Skip to content

Commit

Permalink
Upgraded the used ANTLR4 grammar
Browse files Browse the repository at this point in the history
The upgrade required a lot of changes.
Also fixed a number of linter errors and updated tests.

Fixes #150 Language server fails to accept 'fail' option after semantic predicate.

Signed-off-by: Mike Lischke <mike@lischke-online.de>
  • Loading branch information
mike-lischke committed Nov 12, 2023
1 parent 3cacf2e commit cd756b3
Show file tree
Hide file tree
Showing 46 changed files with 9,704 additions and 9,000 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"plugin:jsdoc/recommended"
],
"ignorePatterns": [
"**/generated/*",
"**/parser/ANTLRv4*.ts",
"**/parser/LexBasic.ts",
"jest.config.ts"
],
"parser": "@typescript-eslint/parser",
Expand Down
1 change: 1 addition & 0 deletions doc/extension-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This is a settings object named **antlr4.generation** with the following members

This is a settings object named **antlr4.format** with the following members:

* **disabled**: boolean (default: false), if true disables formatting
* **alignTrailingComments**: boolean (default: false), if true, aligns trailing comments
* **allowShortBlocksOnASingleLine**: boolean (default: true), allows contracting short blocks to a single line
* **breakBeforeBraces**: boolean (default: false), when true start predicates and actions on a new line
Expand Down
Loading

0 comments on commit cd756b3

Please sign in to comment.