crayon-syntax-highlighter/langs/css/css.txt
2019-08-30 19:30:19 +02:00

22 lines
667 B
Plaintext

### 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)