[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-CVS ] plugins/Beauty/src/beauty/parsers/javacc JavaCC.jj,1.1,1.2
From:       Dale Anson <daleanson () users ! sourceforge ! net>
Date:       2006-04-24 15:03:16
Message-ID: E1FY2au-0006P9-CN () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/jedit/plugins/Beauty/src/beauty/parsers/javacc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1541

Modified Files:
	JavaCC.jj 
Log Message:
added fix to allow single line comment without trailing line separator at the end of \
a file.



Index: JavaCC.jj
===================================================================
RCS file: /cvsroot/jedit/plugins/Beauty/src/beauty/parsers/javacc/JavaCC.jj,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- JavaCC.jj	20 Apr 2006 03:27:45 -0000	1.1
+++ JavaCC.jj	24 Apr 2006 15:03:14 -0000	1.2
@@ -473,7 +473,9 @@
 
 SPECIAL_TOKEN :
 {
-  <SINGLE_LINE_COMMENT: "//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")>  { \
writeComment(matchedToken.image); } +  /* the "?" at the end of the single line \
comment allows a single line comment at the  +  end of the file without a trailing \
line separator. */ +  <SINGLE_LINE_COMMENT: "//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")?> \
{ writeComment(matchedToken.image); }  | <FORMAL_COMMENT: "/**" (~["*"])* "*" ("*" | \
(~["*","/"] (~["*"])* "*"))* "/">  { writeComment(matchedToken.image); }    | \
<MULTI_LINE_COMMENT: "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/">  { \
writeComment(matchedToken.image); }   }



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic