diff --git a/hcl.nanorc b/hcl.nanorc index b839d87..f02308b 100644 --- a/hcl.nanorc +++ b/hcl.nanorc @@ -4,7 +4,7 @@ # Original author: John Boero # License: GPLv3 or newer -syntax hcl "\.(tf|hcl)$" +syntax "hcl" "\.(tf|hcl)$" # No comments are permitted in JSON. comment "" diff --git a/prolog.nanorc b/prolog.nanorc index 8475ab6..c834991 100644 --- a/prolog.nanorc +++ b/prolog.nanorc @@ -1,10 +1,10 @@ ## Here is a prolog example. -syntax prolog "\.pl" +syntax "prolog" "\.pl" comment "%" # Reset everything -color normal ".*" +color white ".*" # Integers and floats color yellow "(^| |=)[0-9]+\.?[0-9]*" @@ -18,7 +18,7 @@ color yellow "(^|[[:blank:]]|\(|,)_($|[[:blank:]]|,|\))" # Functions color cyan "(^|[[:blank:]])\w+\(" -color normal "\(|\)|\[|\]|,|=|\\=" +color white "\(|\)|\[|\]|,|=|\\=" # Atoms color green start="\"" end="\""