Skip to content

Commit

Permalink
Add syntax highlight for double-bracketed parameters (#68)
Browse files Browse the repository at this point in the history
* Add syntax highlight for double-bracketed parameters

* Add lookbehind to double-bracket begin rule
  • Loading branch information
mint-thompson authored Aug 14, 2023
1 parent 0a3c00f commit d696fdd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion syntaxes/fsh.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}
},
{
"begin": "\\b(insert)\\s+(\\S+)\\s*\\(",
"begin": "\\b(insert)\\s+(\\S*?)\\s*\\(",
"beginCaptures": {
"1": {
"name": "keyword.reserved.fsh"
Expand All @@ -98,6 +98,11 @@
},
"end": "(?<!\\\\)\\)",
"patterns": [
{
"name": "string.quoted.other.bracketed.fsh",
"begin": "(?<=[^\\\\][,\\(]\\s*)\\[\\[",
"end": "\\]\\](?=\\s*[,)])"
},
{
"name": "variable.parameter.fsh",
"match": "([^\\s\\),]+)"
Expand Down

0 comments on commit d696fdd

Please sign in to comment.