diff --git a/README.md b/README.md index df68dd78..3ec38fcd 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/syntaxes/hubl.json b/syntaxes/hubl.json index 502803f2..3f8352e8 100644 --- a/syntaxes/hubl.json +++ b/syntaxes/hubl.json @@ -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": { @@ -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": { @@ -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"