Fix highlighting of rgba colors in kakrc

This commit is contained in:
Maxime Coste 2020-07-18 13:45:27 +10:00
parent 60dda1a597
commit 3aef55be73

View File

@ -80,7 +80,7 @@ evaluate-commands %sh{
add-highlighter shared/kakrc/code/values regex (?:\s|\A)\K($(join "${values}" '|'))(?:(?=\s)|\z) 0:value"
}
add-highlighter shared/kakrc/code/colors regex \brgb:[0-9a-fA-F]{6}\b 0:value
add-highlighter shared/kakrc/code/colors regex \b(rgb:[0-9a-fA-F]{6}|rgba:[0-9a-fA-F]{8})\b 0:value
add-highlighter shared/kakrc/double_string/fill fill string
add-highlighter shared/kakrc/double_string/escape regex '""' 0:default+b