Skip to content

Commit

Permalink
Merge pull request #1 from pickoba/escaped-space-in-math
Browse files Browse the repository at this point in the history
Support escaped space in math mode
  • Loading branch information
monaqa committed Apr 8, 2023
2 parents 751bf58 + 4fed2b4 commit 5519c54
Show file tree
Hide file tree
Showing 3 changed files with 23,644 additions and 22,351 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ module.exports = grammar({
/[A-Za-z0-9]/,
/\\[!"#$%&'()*+,./0-9:;<=>?@^_`{|}~-]/,
"\\\\",
"\\ ",
/[+*/:=<>~'.,?`-]/,
$.math_cmd,
$.math_embedding,
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5036,6 +5036,10 @@
"type": "STRING",
"value": "\\\\"
},
{
"type": "STRING",
"value": "\\ "
},
{
"type": "PATTERN",
"value": "[+*/:=<>~'.,?`-]"
Expand Down
Loading

0 comments on commit 5519c54

Please sign in to comment.