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,17 @@
=label foo
bar
=cut
#
# foobar
----------------------------------------------------
[
["comment", "=label foo\r\nbar\r\n=cut"],
["comment", "#"],
["comment", "# foobar"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,17 @@
_
<>
<STDIN>
<FOOBAR>
----------------------------------------------------
[
["filehandle", "_"],
["filehandle", "<>"],
["filehandle", "<STDIN>"],
["filehandle", "<FOOBAR>"]
]
----------------------------------------------------
Checks for file handles.

View File

@ -0,0 +1,13 @@
sub foo
sub Foo_Bar42
----------------------------------------------------
[
["function", [["keyword", "sub"], " foo"]],
["function", [["keyword", "sub"], " Foo_Bar42"]]
]
----------------------------------------------------
Checks for functions.

View File

@ -0,0 +1,29 @@
any break continue
default delete die
do else elsif eval
for foreach given
goto if last local
my next our package
print redo require
say state sub
switch undef unless
until use when while
----------------------------------------------------
[
["keyword", "any"], ["keyword", "break"], ["keyword", "continue"],
["keyword", "default"], ["keyword", "delete"], ["keyword", "die"],
["keyword", "do"], ["keyword", "else"], ["keyword", "elsif"], ["keyword", "eval"],
["keyword", "for"], ["keyword", "foreach"], ["keyword", "given"],
["keyword", "goto"], ["keyword", "if"], ["keyword", "last"], ["keyword", "local"],
["keyword", "my"], ["keyword", "next"], ["keyword", "our"], ["keyword", "package"],
["keyword", "print"], ["keyword", "redo"], ["keyword", "require"],
["keyword", "say"], ["keyword", "state"], ["keyword", "sub"],
["keyword", "switch"], ["keyword", "undef"], ["keyword", "unless"],
["keyword", "until"], ["keyword", "use"], ["keyword", "when"], ["keyword", "while"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,33 @@
0xFF
0xBad_Face
0b1100
0b1111_0000
42
42_000
3.14_15_9
1.2e4
1_423.6E-2
0.8E+12
----------------------------------------------------
[
["number", "0xFF"],
["number", "0xBad_Face"],
["number", "0b1100"],
["number", "0b1111_0000"],
["number", "42"],
["number", "42_000"],
["number", "3.14_15_9"],
["number", "1.2e4"],
["number", "1_423.6E-2"],
["number", "0.8E+12"]
]
----------------------------------------------------
Checks for hexadecimal, binary and decimal numbers.

View File

@ -0,0 +1,71 @@
-r -w -x -o -R
-W -X -O -e -z
-s -f -d -l -p
-S -b -c -t -u
-g -k -T -B -M
-A -C
+ ++ +=
- -- -= ->
* ** *= **=
1 / 2
1 // 2
$a /= 2
$a //= 2
= == =~ =>
~ ~~ ~=
| || |= ||=
& && &= &&=
< <= << <<= <=>
> >= >> >>=
! !~ !=
% %=
^ ^=
. .= .. ...
\ ?
lt gt le ge
eq ne cmp not
and or xor
x x=
----------------------------------------------------
[
["operator", "-r"], ["operator", "-w"], ["operator", "-x"], ["operator", "-o"], ["operator", "-R"],
["operator", "-W"], ["operator", "-X"], ["operator", "-O"], ["operator", "-e"], ["operator", "-z"],
["operator", "-s"], ["operator", "-f"], ["operator", "-d"], ["operator", "-l"], ["operator", "-p"],
["operator", "-S"], ["operator", "-b"], ["operator", "-c"], ["operator", "-t"], ["operator", "-u"],
["operator", "-g"], ["operator", "-k"], ["operator", "-T"], ["operator", "-B"], ["operator", "-M"],
["operator", "-A"], ["operator", "-C"],
["operator", "+"], ["operator", "++"], ["operator", "+="],
["operator", "-"], ["operator", "--"], ["operator", "-="], ["operator", "->"],
["operator", "*"], ["operator", "**"], ["operator", "*="], ["operator", "**="],
["number", "1"], ["operator", "/"], ["number", "2"],
["number", "1"], ["operator", "//"], ["number", "2"],
["variable", "$a"], ["operator", "/="], ["number", "2"],
["variable", "$a"], ["operator", "//="], ["number", "2"],
["operator", "="], ["operator", "=="], ["operator", "=~"], ["operator", "=>"],
["operator", "~"], ["operator", "~~"], ["operator", "~="],
["operator", "|"], ["operator", "||"], ["operator", "|="], ["operator", "||="],
["operator", "&"], ["operator", "&&"], ["operator", "&="], ["operator", "&&="],
["operator", "<"], ["operator", "<="], ["operator", "<<"], ["operator", "<<="], ["operator", "<=>"],
["operator", ">"], ["operator", ">="], ["operator", ">>"], ["operator", ">>="],
["operator", "!"], ["operator", "!~"], ["operator", "!="],
["operator", "%"], ["operator", "%="],
["operator", "^"], ["operator", "^="],
["operator", "."], ["operator", ".="], ["operator", ".."], ["operator", "..."],
["operator", "\\"], ["operator", "?"],
["operator", "lt"], ["operator", "gt"], ["operator", "le"], ["operator", "ge"],
["operator", "eq"], ["operator", "ne"], ["operator", "cmp"], ["operator", "not"],
["operator", "and"], ["operator", "or"], ["operator", "xor"],
["operator", "x"], ["operator", "x="]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,129 @@
m//
qr!foo\!bar!msix
m,foo
bar,aa
qr aa
m afoob\araaa
qr pfoo
barpxpn
m()c
qr(foo\(\)bar)u
m(foo
bar)l
qr{}d
m{foo\{\}bar}
qr{foo
bar}
m[]
qr[foo\[\]bar]
m[foo
bar]
qr<>s
m<foo\<\>bar>i
qr<foo
bar>x
s///
tr%foo\%bar%baz%c
y!foo
bar!foo
baz!d
s kkkmsix
tr afoob\arab\azas
y pfoo
barpfoo
bazpr
s()()
tr(foo\(bar)(ba\)z)
y(foo
bar)(foo
baz)csr
s{}{}
tr{foo\{bar}{ba\}z}
y{foo
bar}{foo
baz}
y[][]
s[foo\[bar][ba\]z]u
y[foo
bar][foo
baz]
tr<><>c
y<foo\<bar><ba\>a>
s<foo
bar><foo
baz>
//
/foo/gsx
/foo\/bar/n
----------------------------------------------------
[
["regex", "m//"],
["regex", "qr!foo\\!bar!msix"],
["regex", "m,foo\r\nbar,aa"],
["regex", "qr aa"],
["regex", "m afoob\\araaa"],
["regex", "qr pfoo\r\nbarpxpn"],
["regex", "m()c"],
["regex", "qr(foo\\(\\)bar)u"],
["regex", "m(foo\r\nbar)l"],
["regex", "qr{}d"],
["regex", "m{foo\\{\\}bar}"],
["regex", "qr{foo\r\nbar}"],
["regex", "m[]"],
["regex", "qr[foo\\[\\]bar]"],
["regex", "m[foo\r\nbar]"],
["regex", "qr<>s"],
["regex", "m<foo\\<\\>bar>i"],
["regex", "qr<foo\r\nbar>x"],
["regex", "s///"],
["regex", "tr%foo\\%bar%baz%c"],
["regex", "y!foo\r\nbar!foo\r\nbaz!d"],
["regex", "s kkkmsix"],
["regex", "tr afoob\\arab\\azas"],
["regex", "y pfoo\r\nbarpfoo\r\nbazpr"],
["regex", "s()()"],
["regex", "tr(foo\\(bar)(ba\\)z)"],
["regex", "y(foo\r\nbar)(foo\r\nbaz)csr"],
["regex", "s{}{}"],
["regex", "tr{foo\\{bar}{ba\\}z}"],
["regex", "y{foo\r\nbar}{foo\r\nbaz}"],
["regex", "y[][]"],
["regex", "s[foo\\[bar][ba\\]z]u"],
["regex", "y[foo\r\nbar][foo\r\nbaz]"],
["regex", "tr<><>c"],
["regex", "y<foo\\<bar><ba\\>a>"],
["regex", "s<foo\r\nbar><foo\r\nbaz>"],
["regex", "//"],
["regex", "/foo/gsx"],
["regex", "/foo\\/bar/n"]
]
----------------------------------------------------
Checks for regex and regex quote-like operators.

View File

@ -0,0 +1,130 @@
q//
q/foobar/
q/foo\/bar/
q/foo
bar/
qq!!
qq!foobar!
qq!foo\!bar!
qq!foo
bar!
qw__
qx_foobar_
qx_foo\_bar_
qw_foo
bar_
qw??
qw?foobar?
qw?foo\?bar?
qw?foo
bar?
q aa
q afoob\ara
q 4foobar4
q pfoo
barp
qq()
qq(foobar)
qq(foo\(\)bar)
qq(foo
bar)
qx{}
qx{foobar}
qx{foo\{\}bar}
qx{foo
bar}
qw[]
qw[foobar]
qw[foo\[\]bar]
qw[foo
bar]
q<>
q<foobar>
q<foo\<\>bar>
q<foo
bar>
""
"foo\"bar"
"foo
bar"
''
'foo\'bar'
``
`foo\`bar`
`foo
bar`
----------------------------------------------------
[
["string", "q//"],
["string", "q/foobar/"],
["string", "q/foo\\/bar/"],
["string", "q/foo\r\nbar/"],
["string", "qq!!"],
["string", "qq!foobar!"],
["string", "qq!foo\\!bar!"],
["string", "qq!foo\r\nbar!"],
["string", "qw__"],
["string", "qx_foobar_"],
["string", "qx_foo\\_bar_"],
["string", "qw_foo\r\nbar_"],
["string", "qw??"],
["string", "qw?foobar?"],
["string", "qw?foo\\?bar?"],
["string", "qw?foo\r\nbar?"],
["string", "q aa"],
["string", "q afoob\\ara"],
["string", "q 4foobar4"],
["string", "q pfoo\r\nbarp"],
["string", "qq()"],
["string", "qq(foobar)"],
["string", "qq(foo\\(\\)bar)"],
["string", "qq(foo\r\nbar)"],
["string", "qx{}"],
["string", "qx{foobar}"],
["string", "qx{foo\\{\\}bar}"],
["string", "qx{foo\r\nbar}"],
["string", "qw[]"],
["string", "qw[foobar]"],
["string", "qw[foo\\[\\]bar]"],
["string", "qw[foo\r\nbar]"],
["string", "q<>"],
["string", "q<foobar>"],
["string", "q<foo\\<\\>bar>"],
["string", "q<foo\r\nbar>"],
["string", "\"\""],
["string", "\"foo\\\"bar\""],
["string", "\"foo\r\nbar\""],
["string", "''"],
["string", "'foo\\'bar'"],
["string", "``"],
["string", "`foo\\`bar`"],
["string", "`foo\r\nbar`"]
]
----------------------------------------------------
Checks for strings and quote operators.

View File

@ -0,0 +1,47 @@
$foo
$#foo
${^POSTMATCH}
$^V
@1
$42
$$
$_
%!
%'foo
$foo'bar
$::::'foo
$foo::'bar
----------------------------------------------------
[
["variable", "$foo"],
["variable", "$#foo"],
["variable", "${^POSTMATCH}"],
["variable", "$^V"],
["variable", "@1"],
["variable", "$42"],
["variable", "$$"],
["variable", "$_"],
["variable", "%!"],
["variable", "%'foo"],
["variable", "$foo'bar"],
["variable", "$::::'foo"],
["variable", "$foo::'bar"]
]
----------------------------------------------------
Checks for variables.

View File

@ -0,0 +1,13 @@
v1.2
1.2.3
----------------------------------------------------
[
["vstring", "v1.2"],
["vstring", "1.2.3"]
]
----------------------------------------------------
Checks for vstrings.