mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
fix(hcl): only highlight keywords when they're actually keywords
This commit is contained in:
parent
1aa64a86cf
commit
4b0dc65aaa
|
@ -17,9 +17,9 @@ color green ":[[:space:]]*\"#[0-9abcdefABCDEF]+\""
|
|||
# Escapes.
|
||||
color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})"
|
||||
# Special words.
|
||||
color green "(true|false|null|output|path|vault|description|default|value)"
|
||||
color green "\<(true|false|null|output|path|vault|description|default|value)\>"
|
||||
|
||||
color brightgreen "(variable|terraform|resource|provider|module)"
|
||||
color brightgreen "\<(variable|terraform|resource|provider|module)\>"
|
||||
|
||||
# Names (very unlikely to contain a quote).
|
||||
color brightblue "\"[^"]+\"[[:space:]]*:"
|
||||
|
|
Loading…
Reference in New Issue
Block a user