crayon-syntax-highlighter/langs/css/css.txt

22 lines
667 B
Plaintext
Raw Permalink Normal View History

2019-08-30 19:30:19 +02:00
### 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)