Skip to content

Commit

Permalink
Выражения тела модуля по умолчанию должны попадать в FileCodeBlock, а…
Browse files Browse the repository at this point in the history
… не FileCodeBlockBeforeSub
  • Loading branch information
nixel2007 committed Nov 9, 2019
1 parent 177369c commit cd88791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/antlr/BSLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ options {
}

// ROOT
file: shebang? preprocessor* moduleVars? preprocessor* fileCodeBlockBeforeSub subs? fileCodeBlock EOF;
file: shebang? preprocessor* moduleVars? preprocessor* (fileCodeBlockBeforeSub subs)? fileCodeBlock EOF;

// preprocessor
shebang : HASH PREPROC_EXCLAMATION_MARK (PREPROC_ANY | PREPROC_IDENTIFIER)*;
Expand Down

0 comments on commit cd88791

Please sign in to comment.