Skip to content

Commit

Permalink
fix: lookbehind assertion with malformed regex (#11)
Browse files Browse the repository at this point in the history
This will fix the issue reported by the Linguist grammar validation:
> Invalid regex in grammar: `source.wit` (in
`syntaxes/wit.tmLanguage.json`) contains a malformed regex (regex
"`(?<=\s*\n)`": lookbehind assertion is not fixed length (at offset 9))
  • Loading branch information
eduardomourar authored Apr 14, 2023
1 parent 3585bde commit 8787a0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions syntaxes/wit.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"include": "#extern"
}
],
"end": "(?<=\\s*\\n)",
"end": "\\s*(?<=\\n)",
"applyEndPatternLast": 1
},
{
Expand All @@ -193,7 +193,7 @@
"include": "#extern"
}
],
"end": "(?<=\\s*\\n)",
"end": "\\s*(?<=\\n)",
"applyEndPatternLast": 1
},
{
Expand Down Expand Up @@ -404,7 +404,7 @@
"include": "#types"
}
],
"end": "(?<=\\s*\\n)",
"end": "\\s*(?<=\\n)",
"applyEndPatternLast": 1
},
"record": {
Expand Down Expand Up @@ -945,7 +945,7 @@
"include": "#function-definition"
}
],
"end": "(?<=\\s*\\n)",
"end": "\\s*(?<=\\n)",
"applyEndPatternLast": 1
},
"function-definition": {
Expand Down

0 comments on commit 8787a0a

Please sign in to comment.