mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
CSS: improve constant detection and fix bugs
This commit is contained in:
parent
2cb18336ee
commit
78dda67321
19
css.jsf
19
css.jsf
@ -118,18 +118,31 @@
|
|||||||
:style_value Idle
|
:style_value Idle
|
||||||
* style_value
|
* style_value
|
||||||
";" style_block
|
";" style_block
|
||||||
|
# treat } without previous ; like ;}
|
||||||
|
"}" style_block noeat
|
||||||
"#" color recolor=-1
|
"#" color recolor=-1
|
||||||
"-0-9" decimal recolor=-1
|
"0-9" decimal recolor=-1
|
||||||
|
"." maybe_float
|
||||||
"a-zA-Z_" ident
|
"a-zA-Z_" ident
|
||||||
|
|
||||||
:color Constant
|
:color Constant
|
||||||
* style_value noeat
|
* style_value noeat
|
||||||
"0-9a-f" color
|
"0-9a-fA-F" color
|
||||||
|
|
||||||
:decimal Constant
|
:decimal Constant
|
||||||
* style_value noeat
|
* style_value noeat
|
||||||
"0-9" decimal
|
"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
|
:decimal_unit Constant
|
||||||
* style_value noeat
|
* style_value noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user