Skip to content

Commit

Permalink
Allow static to take precedent over java sketch.
Browse files Browse the repository at this point in the history
  • Loading branch information
A Samuel Pottinger committed Nov 12, 2022
1 parent 9ea128c commit 25da0c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/processing/mode/java/preproc/Processing.g4
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import JavaParser;

// main entry point, select sketch type
processingSketch
: javaProcessingSketch
| staticProcessingSketch
: staticProcessingSketch
| javaProcessingSketch
| activeProcessingSketch
// | warnMixedModes
;
Expand All @@ -33,7 +33,7 @@ javaProcessingSketch

// No method declarations, just statements
staticProcessingSketch
: (importDeclaration | blockStatement)* EOF
: (importDeclaration | blockStatement | typeDeclaration)* EOF
;

// active mode, has function definitions
Expand Down

0 comments on commit 25da0c9

Please sign in to comment.