Skip to content

Commit

Permalink
fix 'grammar is in an endless loop' on vscode
Browse files Browse the repository at this point in the history
Using the json file with vscode, the following error appears:

    [4] - Grammar is in an endless loop - Grammar is not advancing,
    nor is it pushing/popping

The 'why' for this error is documented here in [1]. I found out it was
because of the 'number' pattern thanks to the repo grammar-debug [2];
I basically did a 'bisect', removing one by one each include in the
koka.JSON-tmLanguage file.

[1]: microsoft/vscode-textmate#9
[2]: https://github.com/alexandrudima/grammar-debug
  • Loading branch information
maelvls committed May 15, 2017
1 parent a456d9e commit b07d5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/sublime-text/Koka/koka.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
},

"number" :
{ "match": "0[xX][\\da-fA-F]+|\\d+(\\.\\d+([eE][\\-+]?\\d+)?)?|"
{ "match": "0[xX][\\da-fA-F]+|\\d+(\\.\\d+([eE][\\-+]?\\d+)?)?"
, "name": "constant.numeric.koka"
},

Expand Down

0 comments on commit b07d5ef

Please sign in to comment.