Skip to content

Commit

Permalink
Merge pull request #260 from HubSpot/jm/issue-257
Browse files Browse the repository at this point in the history
Fix `is not` syntax highlighting
  • Loading branch information
j-malt authored Jan 29, 2024
2 parents afd9baf + 0fbf50d commit 2629b84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To enable Emmet on your `html-hubl` files, you can map `html-hubl` to `html` in

### IntelliSense Suggestions

If you are would like to get IntelliSense suggestions when in snippet placeholders, you will need to add the following to your user settings:
If you would like to get IntelliSense suggestions when in snippet placeholders, you will need to add the following to your user settings:

`"editor.suggest.snippetsPreventQuickSuggestions": false`

Expand Down
10 changes: 5 additions & 5 deletions syntaxes/hubl.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
},
"match": "\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"match": "\\b(and|else|if|in|import|(is )?not|or|recursive|with(out)?\\s+context)\\b",
"name": "keyword.control.hubl"
},
{
"captures": {
"1": {
Expand All @@ -115,7 +119,7 @@
"name": "variable.other.hubl.test"
}
},
"match": "\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
"match": "\\s*\\b(is)(?!\\s+not)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
},
{
"captures": {
Expand All @@ -125,10 +129,6 @@
},
"match": "(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"
},
{
"match": "\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",
"name": "keyword.control.hubl"
},
{
"match": "\\b(true|false|none)\\b",
"name": "constant.language.hubl"
Expand Down

0 comments on commit 2629b84

Please sign in to comment.