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

28 lines
903 B
Plaintext
Raw Normal View History

2019-08-30 19:30:19 +02:00
### JAVASCRIPT LANGUAGE ###
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
NAME JavaScript
VERSION 1.8
COMMENT (?default)
STRING (?default)
REGEX:COMMENT /([^/]|(?<=\\)/)+/[gmiys]
STATEMENT (?default)
RESERVED (?default)|\b(?<![:\.])(?-i:(?alt:reserved.txt))(?![:\.])\b
TYPE (?default)
MODIFIER (?default)
# For the <script> tag
ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
TAG </?\s*script\s*>?
ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
ENTITY (?default)
VARIABLE (?default)|\b\s*[A-Za-z_]\w*\s*\:
IDENTIFIER (?default)
CONSTANT (?default)
OPERATOR (?default)
SYMBOL (?default)