Skip to content

Commit

Permalink
Merge pull request terrastruct#122 from terrastruct/not-amper
Browse files Browse the repository at this point in the history
syntax: Add not ampersand syntax support
  • Loading branch information
alixander authored Aug 30, 2023
2 parents 0c0c8af + 73fb66b commit 4f0717d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syntaxes/d2.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@
"name": "keyword.operator.ampersand.d2",
"match": "&"
},
{
"name": "keyword.operator.not_ampersand.d2",
"match": "!&"
},
{
"name": "entity.name.tag.unquoted.d2",
"begin": "(?=[^[:space:]\\n#;\\[\\]{}|$'\":.<>*&()])(?!-+-)(?!-+>)(?!-+\\*)",
Expand Down
2 changes: 2 additions & 0 deletions syntaxes/d2.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ repository:
match: '\*\*'
- name: keyword.operator.ampersand.d2
match: "&"
- name: keyword.operator.not_ampersand.d2
match: "!&"
- name: entity.name.tag.unquoted.d2
begin: '(?=[^[:space:]\n#;\[\]{}|$''":.<>*&()])(?!-+-)(?!-+>)(?!-+\*)'
end: '(?=\s*[\n#;\[\]{}|$:.<>*&()]|-+-|-+>|-+\*)'
Expand Down

0 comments on commit 4f0717d

Please sign in to comment.