-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
The following is a detailed list of all the outstanding issues in the grammars that GitHub.com uses for syntax highlighting the code in our website.
These issues are detected by our grammars compiler (#3915) and are probably causing minor rendering bugs in the website.
Help is very much welcome! If you're seeing bugs or rendering issues in your source code in GitHub, please start by taking a look at this list to make sure we're not detecting any issues in your language's grammar.
Feel free to ask any questions about any given issue and what would be the appropriate way to fix it. I'll keep the issue up-to-date as I work through grammar fixes myself.
cc @github/linguist @pchaigno @Alhadis
Last updated: 17 Mar 2025
-
repository
vendor/grammars/MATLAB-Language-grammar(from https://github.com/mathworks/MATLAB-Language-grammar) (16 errors)- Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\)|(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 15)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\)|(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 15)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<=\))|(?>(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 22)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\}|(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 15)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\)|(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 15)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=([,;])(?![^(]*...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=[,;](?![^(]*\)...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=([,;])(?![^(]*...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=([,;])(?![^(]*...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=([,;])(?![^(]*...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=[,;](?![^(]*\)...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=([,;])(?![^(]*...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?<!\.{3}.*)(?:(?=[,;](?![^(]*\)...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\)|(?<!\.{3}.*)\n)": lookbehind assertion is not fixed length (at offset 15)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(?=;|,|(?<!(?:\.{3}.*))\n|%)": lookbehind assertion is not fixed length (at offset 22)) - Invalid regex in grammar:
source.matlab(inMatlab.tmbundle/Syntaxes/MATLAB.tmLanguage) contains a malformed regex (regex "(\))?[^\S\n]*(?=;|,|(?<!(?:\.{3}...": lookbehind assertion is not fixed length (at offset 35))
- Invalid regex in grammar:
-
repository
vendor/grammars/NovaGrammars(from https://github.com/Nixinova/NovaGrammars) (1 errors)- Invalid regex in grammar:
source.git-revlist(ingrammars/git-revlist.yaml-tmLanguage) contains a malformed regex (regex "(?<=^\s*)[0-9a-fA-F]{40}(?=\s*(#...": lookbehind assertion is not fixed length (at offset 8))
- Invalid regex in grammar:
-
repository
vendor/grammars/TypeScript-TmLanguage(from https://github.com/Microsoft/TypeScript-TmLanguage) (2 errors)- Invalid regex in grammar:
source.ts(inTypeScript.tmLanguage) contains a malformed regex (regex "(?!(?<![_$[:alnum:]])(?:(?<=\.\....": lookbehind assertion is not fixed length (at offset 731)) - Invalid regex in grammar:
source.tsx(inTypeScriptReact.tmLanguage) contains a malformed regex (regex "(?!(?<![_$[:alnum:]])(?:(?<=\.\....": lookbehind assertion is not fixed length (at offset 731))
- Invalid regex in grammar:
-
repository
vendor/grammars/abl-tmlanguage(from https://github.com/chriscamicas/abl-tmlanguage) (2 errors)- Invalid regex in grammar:
source.abl(inabl.tmLanguage.json) contains a malformed regex (regex "(?i)(?<=\s+|^)(for|preselect)[\s...": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.abl(inabl.tmLanguage.json) contains a malformed regex (regex "(?i)(?<=^|\s*)(today|now)(?!\w|-...": lookbehind assertion is not fixed length (at offset 13))
- Invalid regex in grammar:
-
repository
vendor/grammars/atom-language-julia(from https://github.com/JuliaEditorSupport/atom-language-julia) (1 errors)- Invalid regex in grammar:
source.julia(ingrammars/julia.cson) contains a malformed regex (regex "(?<=\S\s+)\b(as)\b(?=\s+\S)": lookbehind assertion is not fixed length (at offset 9))
- Invalid regex in grammar:
-
repository
vendor/grammars/atom-language-purescript(from https://github.com/purescript-contrib/atom-language-purescript) (1 errors)- Invalid regex in grammar:
source.purescript(ingrammars/purescript.cson) contains a malformed regex (regex "(?<=(\||=)\s*)([\p{Lu}\p{Lt}][\p...": lookbehind assertion is not fixed length (at offset 13))
- Invalid regex in grammar:
-
repository
vendor/grammars/c.tmbundle(from https://github.com/textmate/c.tmbundle) (4 errors)- Invalid regex in grammar:
source.c.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "\b(?:A(?:APNot(?:CreatedErr|Foun...": definition too long (282084 bytes)) - Invalid regex in grammar:
source.c.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "\b(?:A(?:E(?:A(?:ddressDesc|rray...": definition too long (52248 bytes)) - Invalid regex in grammar:
source.c.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "\b(?:CATransform3DIdentity|KERNE...": definition too long (33340 bytes)) - Invalid regex in grammar:
source.c.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "(\s*)(\b(?:A(?:E(?:Build(?:Apple...": definition too long (58589 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/csharp-tmLanguage(from https://github.com/dotnet/csharp-tmLanguage) (4 errors)- Invalid regex in grammar:
source.cs(ingrammars/csharp.tmLanguage) contains a malformed regex (regex "(?<!\.\s*)\b(await)\b": lookbehind assertion is not fixed length (at offset 9)) - Invalid regex in grammar:
source.cs(ingrammars/csharp.tmLanguage) contains a malformed regex (regex "(?<!\.\s*)\b(await)\b": lookbehind assertion is not fixed length (at offset 9)) - Invalid regex in grammar:
source.cs(ingrammars/csharp.tmLanguage) contains a malformed regex (regex "\G(?=(?~\*/)$)": unrecognized character after (? or (?- (at offset 7)) - Invalid regex in grammar:
source.cs(ingrammars/csharp.tmLanguage) contains a malformed regex (regex "^(\s*+)(\*(?!/))?(?=(?~\*/)$)": unrecognized character after (? or (?- (at offset 22))
- Invalid regex in grammar:
-
repository
vendor/grammars/gap-tmbundle(from https://github.com/dhowden/gap-tmbundle) (3 errors)- Invalid regex in grammar:
source.gap(inSyntaxes/GAP.tmLanguage) contains a malformed regex (regex "\b(16Bits_AssocWord|16Bits_Depth...": definition too long (65523 bytes)) - Invalid regex in grammar:
source.gap(inSyntaxes/GAP.tmLanguage) contains a malformed regex (regex "\b(IndicesChiefNormalSteps|Indic...": definition too long (65529 bytes)) - Invalid regex in grammar:
source.gap(inSyntaxes/GAP.tmLanguage) contains a malformed regex (regex "\b(SMTX_GoodElementGModule|SMTX_...": definition too long (42470 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/godot-vscode-plugin(from https://github.com/godotengine/godot-vscode-plugin) (1 errors)- Invalid regex in grammar:
source.gdscript(insyntaxes/GDScript.tmLanguage.json) contains a malformed regex (regex "(?<!/\s*)(\$\s*|%|\$%\s*)(/\s*)?...": lookbehind assertion is not fixed length (at offset 8))
- Invalid regex in grammar:
-
repository
vendor/grammars/linter-lilypond(from https://github.com/nwhetsell/linter-lilypond) (1 errors)- Invalid regex in grammar:
source.lilypond(ingrammars/lilypond.cson) contains a malformed regex (regex "(?<!-)\b(!=|\*(?:(?:location|par...": definition too long (35491 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/mathematica-tmbundle(from https://github.com/shadanan/mathematica-tmbundle) (1 errors)- Invalid regex in grammar:
source.mathematica(inSyntaxes/Mathematica.tmLanguage) contains a malformed regex (regex "(\b|(?<=_))(Abort|AbortKernels|A...": definition too long (54020 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/nu-grammar(from https://github.com/hustcer/nu-grammar.git) (1 errors)- Invalid regex in grammar:
source.nushell(ingrammars/tmLanguage.json) contains a malformed regex (regex "(?<=]\s*)(:)\s+(\[)": lookbehind assertion is not fixed length (at offset 8))
- Invalid regex in grammar:
-
repository
vendor/grammars/objective-c.tmbundle(from https://github.com/textmate/objective-c.tmbundle) (2 errors)- Invalid regex in grammar:
source.objc.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "\b(?:AB(?:AddRecordsError|Multip...": definition too long (32854 bytes)) - Invalid regex in grammar:
source.objc.platform(inSyntaxes/Platform.tmLanguage) contains a malformed regex (regex "\b(?:A(?:M(?:Action(?:A(?:pplica...": definition too long (44404 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/rascal-syntax-highlighting(from https://github.com/usethesource/rascal-syntax-highlighting) (1 errors)- Invalid regex in grammar:
source.rascal(intextmate/Rascal.tmbundle/Syntaxes/Rascal.tmLanguage) contains a malformed regex (regex "/(?!/|*)": nothing to repeat (at offset 6))
- Invalid regex in grammar:
-
repository
vendor/grammars/sublime-autoit(from https://github.com/AutoIt/SublimeAutoItScript) (2 errors)- Invalid regex in grammar:
source.autoit(inAutoIt.tmLanguage) contains a malformed regex (regex "\b(?i:_array1dtohistogram|_array...": definition too long (39591 bytes)) - Invalid regex in grammar:
source.autoit(inAutoIt.tmLanguage) contains a malformed regex (regex "\b(?i:_guictrltoolbar_getbuttoni...": definition too long (39600 bytes))
- Invalid regex in grammar:
-
repository
vendor/grammars/turtle.tmbundle(from https://github.com/peta/turtle.tmbundle) (5 errors)- Invalid regex in grammar:
source.turtle(inSyntaxes/Turtle.tmLanguage) contains a malformed regex (regex "(?x)( (?: [\p{L}\p{M}] | [:0...": PCRE does not support \L, \l, \N{name}, \U, or \u (at offset 121)) - Invalid regex in grammar:
source.turtle(inSyntaxes/Turtle.tmLanguage) contains a malformed regex (regex "(?x) (?<PNAME_NS> (?: (?: [\...": PCRE does not support \L, \l, \N{name}, \U, or \u (at offset 68)) - Invalid regex in grammar:
source.turtle(inSyntaxes/Turtle.tmLanguage) contains a malformed regex (regex "(?x) (?<PN_CHARS_U>[\p{L}\p{M...": PCRE does not support \L, \l, \N{name}, \U, or \u (at offset 73)) - Invalid regex in grammar:
source.turtle(inSyntaxes/Turtle.tmLanguage) contains a malformed regex (regex "\[[\u20\u9\uD\uA]*\]": PCRE does not support \L, \l, \N{name}, \U, or \u (at offset 4)) - Invalid regex in grammar:
source.turtle(inSyntaxes/Turtle.tmLanguage) contains a malformed regex (regex "(?x)((?<=\s|^|_)(?:[\p{L}\p{M}]...": PCRE does not support \L, \l, \N{name}, \U, or \u (at offset 57))
- Invalid regex in grammar:
-
repository
vendor/grammars/vscode-bitbake(from https://github.com/yoctoproject/vscode-bitbake.git) (1 errors)- Invalid regex in grammar:
source.bb(inclient/syntaxes/bitbake.tmLanguage.json) contains a malformed regex (regex "(?<=^|^fakeroot +)\b(python|def)...": lookbehind assertion is not fixed length (at offset 17))
- Invalid regex in grammar:
-
repository
vendor/grammars/vscode-jest(from https://github.com/jest-community/vscode-jest) (1 errors)- Grammar conversion failed. File
syntaxes/ExtSettingsSchema.jsonfailed to parse: Undeclared scope in grammar:syntaxes/ExtSettingsSchema.jsonhas no scope name
- Grammar conversion failed. File
-
repository
vendor/grammars/vscode-just(from https://github.com/nefrob/vscode-just.git) (5 errors)- Invalid regex in grammar:
source.just(insyntaxes/just.tmLanguage.json) contains a malformed regex (regex "(?<=^[^\s]+)": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.just(insyntaxes/just.tmLanguage.json) contains a malformed regex (regex "(?<=^[^\s]+)": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.just(insyntaxes/just.tmLanguage.json) contains a malformed regex (regex "(?<=^[^\s]+)": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.just(insyntaxes/just.tmLanguage.json) contains a malformed regex (regex "(?<=^[^\s]+)": lookbehind assertion is not fixed length (at offset 11)) - Invalid regex in grammar:
source.just(insyntaxes/just.tmLanguage.json) contains a malformed regex (regex "(?<=^[^\s]+)": lookbehind assertion is not fixed length (at offset 11))
- Invalid regex in grammar:
-
repository
vendor/grammars/vscode-yara(from https://github.com/infosec-intern/vscode-yara.git) (1 errors)- Invalid regex in grammar:
source.yara(inyara/syntaxes/yara.tmLanguage.json) contains a malformed regex (regex "(?<=(^|[\)]|\b(?:them)\b))(?:\s*...": lookbehind assertion is not fixed length (at offset 25))
- Invalid regex in grammar:
Other
vendor/grammars/Sublime-QML- skozlovf/Sublime-QML - the project has been restructured and rewritten and only provides a Sublime 3 compatible grammar which is not supported.
This grammar will need to be replaced and will no longer be updated.vendor/grammars/cds-textmate-grammarrecently introduced changes that resulted in over 20unknown property name after \P or \perrors so we've not updated that grammar.