css.kak: Highlight comment inside declaration

This commit is contained in:
Gaeulbyul 2019-07-18 01:33:57 +09:00
parent be3d0f8b33
commit bd257ceb7d

View File

@ -41,6 +41,7 @@ add-highlighter shared/css/comment region /[*] [*]/ fill comment
add-highlighter shared/css/declaration/base default-region group add-highlighter shared/css/declaration/base default-region group
add-highlighter shared/css/declaration/double_string region '"' (?<!\\)(\\\\)*" fill string add-highlighter shared/css/declaration/double_string region '"' (?<!\\)(\\\\)*" fill string
add-highlighter shared/css/declaration/single_string region "'" "'" fill string add-highlighter shared/css/declaration/single_string region "'" "'" fill string
add-highlighter shared/css/declaration/comment region /[*] [*]/ fill comment
# https://developer.mozilla.org/en-US/docs/Web/CSS/length # https://developer.mozilla.org/en-US/docs/Web/CSS/length
add-highlighter shared/css/declaration/base/ regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(ch|cm|em|ex|mm|pc|pt|px|rem|vh|vmax|vmin|vw)) 0:value add-highlighter shared/css/declaration/base/ regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(ch|cm|em|ex|mm|pc|pt|px|rem|vh|vmax|vmin|vw)) 0:value