use prism-tomorrow.css

This commit is contained in:
CyC2018
2018-12-19 14:09:39 +08:00
parent 0f00bcacaf
commit e9e604e6a7
1747 changed files with 100462 additions and 0 deletions

View File

@ -0,0 +1,33 @@
///foo[bar]///
///foo
[bar]///
///foo
b#{ar}baz///
///foo #bar
baz///
----------------------------------------------------
[
["block-regex", [
"///foo[bar]///"
]],
["block-regex", [
"///foo\r\n[bar]///"
]],
["block-regex", [
"///foo\r\nb",
["interpolation", "#{ar}"],
"baz///"
]],
["block-regex", [
"///foo ",
["comment", "#bar"],
"\r\nbaz///"
]]
]
----------------------------------------------------
Checks for block regex.
Also checks for comments and interpolations inside block regex.

View File

@ -0,0 +1,13 @@
@name
@foo_bar
----------------------------------------------------
[
["class-member", "@name"],
["class-member", "@foo_bar"]
]
----------------------------------------------------
Checks for class members.

View File

@ -0,0 +1,16 @@
#foo
# foo bar
### foo bar
baz ###
----------------------------------------------------
[
["comment", "#foo"],
["comment", "# foo bar"],
["multiline-comment", "### foo bar\r\nbaz ###"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.

View File

@ -0,0 +1,22 @@
`/* JS here */`
`/*
JS here */`
----------------------------------------------------
[
["inline-javascript", [
["delimiter", "`"],
["comment", "/* JS here */"],
["delimiter", "`"]
]],
["inline-javascript", [
["delimiter", "`"],
["comment", "/*\r\nJS here */"],
["delimiter", "`"]
]]
]
----------------------------------------------------
Checks for inline JavaScript.

View File

@ -0,0 +1,41 @@
and break by catch
class;
continue debugger delete
do each else extend
extends;
false finally for if in
instanceof;
is isnt let
loop namespace
new;
no not null of off on
or own return super
switch then this throw
true try typeof undefined
unless until when while
window with yes yield
----------------------------------------------------
[
["keyword", "and"], ["keyword", "break"], ["keyword", "by"], ["keyword", "catch"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "continue"], ["keyword", "debugger"], ["keyword", "delete"],
["keyword", "do"], ["keyword", "each"], ["keyword", "else"], ["keyword", "extend"],
["keyword", "extends"], ["punctuation", ";"],
["keyword", "false"], ["keyword", "finally"], ["keyword", "for"], ["keyword", "if"], ["keyword", "in"],
["keyword", "instanceof"], ["punctuation", ";"],
["keyword", "is"], ["keyword", "isnt"], ["keyword", "let"],
["keyword", "loop"], ["keyword", "namespace"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "no"], ["keyword", "not"], ["keyword", "null"], ["keyword", "of"], ["keyword", "off"], ["keyword", "on"],
["keyword", "or"], ["keyword", "own"], ["keyword", "return"], ["keyword", "super"],
["keyword", "switch"], ["keyword", "then"], ["keyword", "this"], ["keyword", "throw"],
["keyword", "true"], ["keyword", "try"], ["keyword", "typeof"], ["keyword", "undefined"],
["keyword", "unless"], ["keyword", "until"], ["keyword", "when"], ["keyword", "while"],
["keyword", "window"], ["keyword", "with"], ["keyword", "yes"], ["keyword", "yield"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,15 @@
foo:
foo_bar :
----------------------------------------------------
[
["property", "foo"],
["punctuation", ":"],
["property", "foo_bar"],
["punctuation", ":"]
]
----------------------------------------------------
Checks for object properties.

View File

@ -0,0 +1,64 @@
''
'foo'
'foo\
bar'
""
"foo"
"foo\
bar"
"foo #{interpolation} bar"
''''''
'''foo'''
'''foo
bar'''
""""""
"""foo"""
"""foo
bar"""
"""foo #{interpolation} bar"""
"foo # comment bar"
'foo # bar'
"""foo
#comment
bar"""
'''foo
#comment
bar'''
----------------------------------------------------
[
["string", "''"],
["string", "'foo'"],
["string", "'foo\\\r\nbar'"],
["string", ["\"\""]],
["string", ["\"foo\""]],
["string", ["\"foo\\\r\nbar\""]],
["string", [
"\"foo ",
["interpolation", "#{interpolation}"],
" bar\""
]],
["multiline-string", "''''''"],
["multiline-string", "'''foo'''"],
["multiline-string", "'''foo\r\nbar'''"],
["multiline-string", ["\"\"\"\"\"\""]],
["multiline-string", ["\"\"\"foo\"\"\""]],
["multiline-string", ["\"\"\"foo\r\nbar\"\"\""]],
["multiline-string", [
"\"\"\"foo ",
["interpolation", "#{interpolation}"],
" bar\"\"\""
]],
["string", ["\"foo # comment bar\""]],
["string", "'foo # bar'"],
["multiline-string", ["\"\"\"foo\r\n#comment\r\nbar\"\"\""]],
["multiline-string", "'''foo\r\n#comment\r\nbar'''"]
]
----------------------------------------------------
Checks for single-line and multi-line strings and block strings.
Also checks for string interpolation inside double-quoted strings.