Skip to content

Commit

Permalink
Highlight strings in Context values
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-thompson committed Sep 12, 2023
1 parent 4848f2b commit b325ae0
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion syntaxes/fsh.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,56 @@
"patterns": [
{
"name": "keyword.control.fsh",
"match": "\\b(Alias|Characteristics|Context|Expression|Description|Mixins|Severity|Target|Title|Usage|XPath)(?=\\s*:)\\b"
"match": "\\b(Alias|Characteristics|Expression|Description|Mixins|Severity|Target|Title|Usage|XPath)(?=\\s*:)\\b"
},
{
"begin": "\\b(Context)\\s?(:)\\s+",
"beginCaptures": {
"1": {
"name": "keyword.reserved.fsh"
},
"2": {
"name": "keyword.tokens.fsh"
}
},
"end": "((\"(?:\\\\.|[^\\\\\"])*\")|([^\"][^\\s,]+))\\s+(?!,)",
"endCaptures": {
"2": {
"name": "string.quoted.double.final.fsh"
},
"3": {
"name": "entity.name.path.final.fsh"
}
},
"patterns": [
{
"name": "string.quoted.double.fsh",
"begin": "\"",
"end": "\"(\\s*,\\s)",
"endCaptures": {
"1": {
"name": "keyword.tokens.fsh"
}
},
"patterns": [
{
"name": "constant.character.escape.fsh",
"match": "\\\\."
}
]
},
{
"match": "([^\\s,]+)\\s*(,)\\s*",
"captures": {
"1": {
"name": "entity.name.path.fsh"
},
"2": {
"name": "keyword.tokens.fsh"
}
}
}
]
},
{
"match": "\\b(CodeSystem|Extension|Id|Instance|InstanceOf|Invariant|Logical|Mapping|Parent|Profile|Resource|RuleSet|Source|ValueSet)\\s?(:)\\s+([A-Za-z0-9_.:/-]+)\\b",
Expand Down

0 comments on commit b325ae0

Please sign in to comment.