From 2001a9a087b3d05d9f1f22fa84c33ebe087dee5d Mon Sep 17 00:00:00 2001 From: Delapouite Date: Wed, 6 Sep 2017 12:08:49 +0200 Subject: [PATCH] =?UTF-8?q?css.kak:=C2=A0add=20hl=20to=20more=20common=20C?= =?UTF-8?q?SS=20length=20units?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc/base/css.kak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/base/css.kak b/rc/base/css.kak index d995b1b0..095835de 100644 --- a/rc/base/css.kak +++ b/rc/base/css.kak @@ -23,7 +23,9 @@ add-highlighter -group /css/declaration regions content \ add-highlighter -group /css/declaration/content/string fill string -add-highlighter -group /css/declaration regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(em|px)) 0:value +# https://developer.mozilla.org/en-US/docs/Web/CSS/length +add-highlighter -group /css/declaration regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(ch|cm|em|ex|mm|pc|pt|px|rem|vh|vmax|vmin|vw)) 0:value + add-highlighter -group /css/declaration regex ([A-Za-z][A-Za-z0-9_-]*)\h*: 1:keyword add-highlighter -group /css/declaration regex :(before|after) 0:attribute add-highlighter -group /css/declaration regex !important 0:keyword