fork
This commit is contained in:
21
langs/css/css.txt
Normal file
21
langs/css/css.txt
Normal file
@ -0,0 +1,21 @@
|
||||
### CSS LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME CSS
|
||||
VERSION 1.9.1
|
||||
|
||||
COMMENT (/\*.*?\*/)
|
||||
STRING (?default)
|
||||
NOTATION \@[\w-]+[^;\{]*;?
|
||||
|
||||
# For the <style> tag
|
||||
ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
|
||||
TAG (</?\s*[^<\s>]+\s*>?)|(\s*>)
|
||||
ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
|
||||
|
||||
SELECTOR:KEYWORD [^\s\;\{\}][^\;\{\}]*(?=\{)
|
||||
PROPERTY:ENTITY [\w-]+(?=\s*:)
|
||||
IMP:CONSTANT !important
|
||||
VALUE:IDENTIFIER [^\s\{\}\;\:\!\(\)]+
|
||||
SYMBOL (?default)
|
Reference in New Issue
Block a user