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

24 lines
720 B
Plaintext

### LESS CSS LANGUAGE ###
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
NAME LESS
VERSION 1.0
COMMENT (/\*.*?\*/)
STRING (?default)
NOTATION \@(?alt:notation.txt)[^;]*;?
VARIABLE \@[\w-]+\b
# 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)