Skip to content

Commit

Permalink
Add backtick to list of quote characters for syntax highlighting. (RE…
Browse files Browse the repository at this point in the history
…ditorSupport#859)

* Add backtick to list of quote characters for syntax highlighting.

* backticks denote nonstandard variable names and should therefore be coloured like variables
  • Loading branch information
jan-imbi authored and ElianHugh committed May 12, 2022
1 parent 9947208 commit 1706790
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions syntax/r.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,27 @@
"name": "constant.character.escape.r"
}
]
},
{
"begin": "`",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.r"
}
},
"end": "`",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.r"
}
},
"name": "variable.parameter.r",
"patterns": [
{
"match": "\\\\.",
"name": "variable.parameter.r"
}
]
}
]
},
Expand Down

0 comments on commit 1706790

Please sign in to comment.