Skip to content

Commit 25da0c9

Browse files
author
A Samuel Pottinger
committed
Allow static to take precedent over java sketch.
1 parent 9ea128c commit 25da0c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/processing/mode/java/preproc/Processing.g4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import JavaParser;
2020

2121
// main entry point, select sketch type
2222
processingSketch
23-
: javaProcessingSketch
24-
| staticProcessingSketch
23+
: staticProcessingSketch
24+
| javaProcessingSketch
2525
| activeProcessingSketch
2626
// | warnMixedModes
2727
;
@@ -33,7 +33,7 @@ javaProcessingSketch
3333

3434
// No method declarations, just statements
3535
staticProcessingSketch
36-
: (importDeclaration | blockStatement)* EOF
36+
: (importDeclaration | blockStatement | typeDeclaration)* EOF
3737
;
3838

3939
// active mode, has function definitions

0 commit comments

Comments
 (0)