Skip to content

Commit

Permalink
feat: syntactic string interpolation highlighting (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Trebor-Huang <[email protected]>
  • Loading branch information
mhuisi and Trebor-Huang authored Mar 12, 2024
1 parent 212cbd4 commit 5bba180
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vscode-lean4/syntaxes/lean4.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@
"name": "keyword.other.lean4"
},
{ "begin": "«", "end": "»", "contentName": "entity.name.lean4" },
{
"begin": "(s!)\"", "end": "\"",
"name": "string.interpolated.lean4",
"beginCaptures": {
"1": { "name": "keyword.other.lean4" }
},
"patterns": [
{
"begin": "(\\{)", "end": "(\\})",
"beginCaptures": { "1": { "name": "keyword.other.lean4" } },
"endCaptures": { "1": { "name": "keyword.other.lean4" } },
"patterns": [ {"include": "$self"} ] },
{ "match": "\\\\[\\\\\"ntr']", "name": "constant.character.escape.lean4" },
{ "match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]", "name": "constant.character.escape.lean4" },
{ "match": "\\\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]", "name": "constant.character.escape.lean4" }
]
},
{
"begin": "\"", "end": "\"",
"name": "string.quoted.double.lean4",
Expand Down

0 comments on commit 5bba180

Please sign in to comment.