Skip to content

Commit

Permalink
fix: Only highlight valid string escapes (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Jun 6, 2022
1 parent 43d2cba commit d82dea3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor-extensions/vscode/syntaxes/grain.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,11 @@
"patterns": [
{
"name": "constant.character.escape.grain",
"match": "(\\\\\\d{1,3}|\\\\x[A-Fa-f0-9]{1,2}|\\\\u[A-Fa-f0-9]{4}|\\\\u\\{[A-Fa-f0-9]{1,6}\\}|\\\\.)"
"match": "(\\\\\\d{1,3}|\\\\x[A-Fa-f0-9]{1,2}|\\\\u[A-Fa-f0-9]{4}|\\\\u\\{[A-Fa-f0-9]{1,6}\\}|\\\\[bftvrn'\"\\\\])"
},
{
"name": "invalid.illegal.grain",
"match": "\\\\."
}
]
},
Expand Down

0 comments on commit d82dea3

Please sign in to comment.