Skip to content

Commit

Permalink
Added a little documentation related to #290.
Browse files Browse the repository at this point in the history
  • Loading branch information
sampottinger committed Jan 29, 2022
1 parent 0f9b290 commit 5385daf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions java/src/processing/mode/java/preproc/Processing.g4
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ activeProcessingSketch
: (importDeclaration | classBodyDeclaration)* EOF
;

variableDeclaratorId
: warnTypeAsVariableName
| IDENTIFIER ('[' ']')*
;

// User incorrectly mixing modes. Included to allow for kind error message.
warnMixedModes
: (importDeclaration | classBodyDeclaration | blockStatement)* blockStatement classBodyDeclaration (importDeclaration | classBodyDeclaration | blockStatement)*
| (importDeclaration | classBodyDeclaration | blockStatement)* classBodyDeclaration blockStatement (importDeclaration | classBodyDeclaration | blockStatement)*
;

variableDeclaratorId
: warnTypeAsVariableName
| IDENTIFIER ('[' ']')*
;

// bug #93
// https://github.com/processing/processing/issues/93
// prevent from types being used as variable names
Expand Down

0 comments on commit 5385daf

Please sign in to comment.