mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Use Go regex word boundaries
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user