From 8888b8d5618a65fb82bf8a6a75508bd0f90641be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez?= Date: Tue, 12 Apr 2022 08:27:47 -0400 Subject: [PATCH] only highlight html tags (1:keyword), fix typo in pseudo --- rc/filetype/css.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/css.kak b/rc/filetype/css.kak index 8a1d4a10..1615c2da 100644 --- a/rc/filetype/css.kak +++ b/rc/filetype/css.kak @@ -77,7 +77,7 @@ evaluate-commands %sh{ # order below matters printf %s " - add-highlighter shared/css/code/tag_selectors regex \b($(join "${html_tags}"))((:[a-z:])|[\h.#,]) 0:keyword + add-highlighter shared/css/code/tag_selectors regex \b($(join "${html_tags}"))((:[a-z:])|[\h.#,]) 1:keyword add-highlighter shared/css/code/functional_notation regex ([a-zA-Z0-9-_]+[a-zA-Z0-9])\( 1:keyword @@ -86,7 +86,7 @@ evaluate-commands %sh{ add-highlighter shared/css/code/media_types regex \b($(join "${media_types}"))\b 1:+i # (after functional notation as they may contain paranthesis) - add-highlighter shared/css/code/psudo regex (:{1,2})([a-z-]+) 2:attribute 2:+a + add-highlighter shared/css/code/pseudo regex (:{1,2})([a-z-]+) 2:attribute 2:+a add-highlighter shared/css/code/at_rules regex @[a-z-]+ 0:function