Skip to content

Commit

Permalink
syntaxes: Attempt fix of #113
Browse files Browse the repository at this point in the history
Closes #116
  • Loading branch information
nhooyr committed Aug 15, 2023
1 parent 1b44cce commit cf42bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions syntaxes/d2.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
}
},
"begin": "\\$\\{",
"end": "}(?=\\s*[\\n#;\\[\\]{}|$])",
"end": "\\}(?=\\s*[\\n#;\\[\\]{}|$])",
"patterns": [
{
"include": "#key"
Expand Down Expand Up @@ -387,7 +387,7 @@
}
},
"begin": "\\.\\.\\.\\$\\{",
"end": "}(?=\\s*[\\n#;\\[\\]{}|$])",
"end": "\\}(?=\\s*[\\n#;\\[\\]{}|$])",
"patterns": [
{
"include": "#key"
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/d2.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ repository:
name: meta.operator.substitution.d2
captures: { 0: { name: keyword.operator.substitution.d2 } }
begin: '\$\{'
end: '}(?=\s*[\n#;\[\]{}|$])'
end: '\}(?=\s*[\n#;\[\]{}|$])'
patterns:
- include: "#key"
import:
Expand All @@ -201,7 +201,7 @@ repository:
name: meta.operator.substitution.d2
captures: { 0: { name: keyword.operator.substitution.d2 } }
begin: '\.\.\.\$\{'
end: '}(?=\s*[\n#;\[\]{}|$])'
end: '\}(?=\s*[\n#;\[\]{}|$])'
patterns:
- include: "#key"
spread_import:
Expand Down

0 comments on commit cf42bc0

Please sign in to comment.