mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +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.
|
# Escapes.
|
||||||
color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})"
|
color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})"
|
||||||
# Special words.
|
# 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).
|
# Names (very unlikely to contain a quote).
|
||||||
color brightblue "\"[^"]+\"[[:space:]]*:"
|
color brightblue "\"[^"]+\"[[:space:]]*:"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user