You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/02/10 12:28:24 UTC

svn commit: r1242745 - /incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj

Author: andy
Date: Fri Feb 10 11:28:24 2012
New Revision: 1242745

URL: http://svn.apache.org/viewvc?rev=1242745&view=rev
Log:
C-style comments (doisabled - for the record - would be ARQ extended language only)

Modified:
    incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj

Modified: incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj?rev=1242745&r1=1242744&r2=1242745&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj (original)
+++ incubator/jena/Jena2/ARQ/trunk/Grammar/master.jj Fri Feb 10 11:28:24 2012
@@ -1994,6 +1994,20 @@ SKIP : { " " | "\t" | "\n" | "\r" | "\f"
 SPECIAL_TOKEN :
 { <SINGLE_LINE_COMMENT: "#" (~["\n","\r"])* ("\n"|"\r"|"\r\n")? > }
 
+#ifdef 0
+// DSSABLED
+// C-style comments (they don't nest /* /*...*/ */ is a syntax error)
+// When a /* is seen in the DEFAULT state, skip it and switch to the IN_COMMENT state
+SKIP : { "/*": IN_COMMENT }
+      
+// When any other character is seen in the IN_COMMENT state, skip it.
+< IN_COMMENT > SKIP : { < ~[] > }
+      
+// When a */ is seen in the IN_COMMENT state, skip it and switch back to the DEFAULT state
+< IN_COMMENT > SKIP : { "*/": DEFAULT } 
+#endif
+
+
 TOKEN: { 
   <#WS: " " | "\t" | "\n" | "\r" | "\f">
 |