From 78dda6732164e2dbed46aadd2db13a3d05854461 Mon Sep 17 00:00:00 2001 From: cn Date: Mon, 7 Nov 2011 23:01:06 +0100 Subject: [PATCH] CSS: improve constant detection and fix bugs --- css.jsf | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/css.jsf b/css.jsf index 5055044..6d00642 100644 --- a/css.jsf +++ b/css.jsf @@ -118,18 +118,31 @@ :style_value Idle * style_value ";" style_block + # treat } without previous ; like ;} + "}" style_block noeat "#" color recolor=-1 - "-0-9" decimal recolor=-1 + "0-9" decimal recolor=-1 + "." maybe_float "a-zA-Z_" ident :color Constant * style_value noeat - "0-9a-f" color + "0-9a-fA-F" color :decimal Constant * style_value noeat "0-9" decimal - "a-zA-Z" decimal_unit + "." float + "a-zA-Z%" decimal_unit + +:maybe_float Constant + * style_value noeat recolor=-2 + "0-9" float recolor=-2 + +:float Constant + * style_value noeat + "0-9" float + "a-zA-Z%" decimal_unit :decimal_unit Constant * style_value noeat