-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elm syntax does not compile on master anymore #211
Comments
I wonder if this is related to the regex rewriting for no newlines mode, as it seems to be converting the |
Of course, as Sublime Text syntax grammars only operate on one line at a time, that regex pattern is fairly nonsense anyway and maybe should be fixed in the Elm repo? |
Yeah looks like nonewlines mode. We could tweak the Looks like the line to tweak for the rewriting is here: https://github.com/trishume/syntect/blob/master/src/parsing/yaml_load.rs#L561 |
So the line in the grammar should be |
@Keats Yeah that would make more sense I think. |
Using \n+ in a regex doesn't make any sense for Sublime Text syntaxes, but let's not produce an invalid regex in that case.
I raised #212 to tweak the regex rewriting in syntect. |
Tweak nonewlines regex rewriting (#211)
Can someone confirm the syntax compiles now that the fix is merged? |
It does work |
The syntaxes are located at https://github.com/elm-community/SublimeElmLanguageSupport/tree/master/Syntaxes . I added the repo to the packages folder of master for trying it quickly.
Error message while running
make packs
in syntect masterOffending line: https://github.com/elm-community/SublimeElmLanguageSupport/blob/master/Syntaxes/Elm%20Compile%20Messages.sublime-syntax#L67
The text was updated successfully, but these errors were encountered: