move-syntax icon indicating copy to clipboard operation
move-syntax copied to clipboard

Invalid regular expressions in grammar

Open lildude opened this issue 1 year ago • 0 comments

👋 from github-linguist/linguist which uses this grammar for syntax highlighting Move files on GitHub.com.

I'm in the process of creating the next release and I've seen our grammar compiler has detected the grammar has two invalid regular expressions which may impact the highlighting of some Move files:

  • repository vendor/grammars/vscode-move-syntax (from https://github.com/damirka/vscode-move-syntax.git) (2 errors)
    • Invalid regex in grammar: source.move (in syntaxes/move.tmLanguage.json) contains a malformed regex (regex "(?<=(module|spec))": lookbehind assertion is not fixed length (at offset 17))
    • Invalid regex in grammar: source.move (in syntaxes/move.tmLanguage.json) contains a malformed regex (regex "(?<=(module|spec))": lookbehind assertion is not fixed length (at offset 17))

I won't hold back the release for this to be fixed, but I will be adding this to the list of known grammar issues: https://github.com/github-linguist/linguist/issues/3924. Any fixes you make to this grammar will be pulled in when the next release is made.

lildude avatar Jun 19 '23 09:06 lildude