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

20 lines
575 B
Plaintext

### YAML LANGUAGE ###
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
NAME YAML
VERSION 1.8.1
ALLOW_MIXED NO
COMMENT #.*?$
QUOTED:IDENTIFIER ("[^"]*")|('[^']*')
VALUES:IDENTIFIER \[[^\]]*\]
DEFAULT (:([^\{\}<>:,\n]*))
LIST_KEY:STRING ((\-\s*)?[\w-\\]+(?=\s*:))|(\-\s*(?=\{))
TAG %(\w+)
ANCHOR:CONSTANT &\w+
REF:ENTITY \*\w+
OPERATOR (?alt:operator.txt)
SYMBOL (?default)