Use Go regex word boundaries

This commit is contained in:
Zachary Yedidia
2017-03-01 17:08:56 -05:00
parent 995a910f6a
commit 3c192c2fb5
27 changed files with 101 additions and 96 deletions

View File

@@ -11,16 +11,17 @@ color default "salt:"
# Numbers, etc
color constant.number "/*[0-9]/*"
color constant "\<(True|False)\>"
color constant "\b(True|False)\b"
# Anything between two single quotes
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
# Matching keywords
color special "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>"
color special "\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\b"
# Comments
color comment "^#.*"
# Logic keywords
color statement "\<(if|elif|else|or|not|and|endif|end)\>"
color statement "\b(if|elif|else|or|not|and|endif|end)\b"