mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Allow static to take precedent over java sketch.
This commit is contained in:
@@ -20,8 +20,8 @@ import JavaParser;
|
||||
|
||||
// main entry point, select sketch type
|
||||
processingSketch
|
||||
: javaProcessingSketch
|
||||
| staticProcessingSketch
|
||||
: staticProcessingSketch
|
||||
| javaProcessingSketch
|
||||
| activeProcessingSketch
|
||||
// | warnMixedModes
|
||||
;
|
||||
@@ -33,7 +33,7 @@ javaProcessingSketch
|
||||
|
||||
// No method declarations, just statements
|
||||
staticProcessingSketch
|
||||
: (importDeclaration | blockStatement)* EOF
|
||||
: (importDeclaration | blockStatement | typeDeclaration)* EOF
|
||||
;
|
||||
|
||||
// active mode, has function definitions
|
||||
|
||||
Reference in New Issue
Block a user