File tree Expand file tree Collapse file tree
java/src/processing/mode/java/preproc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -299,8 +299,13 @@ literal
299299 | NULL_LITERAL
300300 ;
301301
302- baseStringLiteral : STRING_LITERAL ;
303- multilineStringLiteral : MULTI_STRING_LIT ;
302+ baseStringLiteral
303+ : STRING_LITERAL
304+ ;
305+
306+ multilineStringLiteral
307+ : MULTI_STRING_LIT
308+ ;
304309
305310stringLiteral
306311 : baseStringLiteral
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ processingSketch
2323 : javaProcessingSketch
2424 | staticProcessingSketch
2525 | activeProcessingSketch
26- | warnMixedModes
26+ | warnMixedModes
2727 ;
2828
2929// java mode, is a compilation unit
@@ -44,8 +44,8 @@ activeProcessingSketch
4444// User incorrectly mixing modes. Included to allow for kind error message.
4545warnMixedModes
4646 : (importDeclaration | classBodyDeclaration | blockStatement)* blockStatement classBodyDeclaration (importDeclaration | classBodyDeclaration | blockStatement)*
47- | (importDeclaration | classBodyDeclaration | blockStatement)* classBodyDeclaration blockStatement (importDeclaration | classBodyDeclaration | blockStatement)*
48- ;
47+ | (importDeclaration | classBodyDeclaration | blockStatement)* classBodyDeclaration blockStatement (importDeclaration | classBodyDeclaration | blockStatement)*
48+ ;
4949
5050variableDeclaratorId
5151 : warnTypeAsVariableName
@@ -73,12 +73,12 @@ methodCall
7373// "color" is a special Processing primitive (== int)
7474functionWithPrimitiveTypeName
7575 : ( ' boolean'
76- | ' byte'
77- | ' char'
78- | ' float'
79- | ' int'
76+ | ' byte'
77+ | ' char'
78+ | ' float'
79+ | ' int'
8080 | ' color'
81- ) ' (' expressionList? ' )'
81+ ) ' (' expressionList? ' )'
8282 ;
8383
8484// adding support for "color" primitive
You can’t perform that action at this time.
0 commit comments