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,21 @@
@Deprecated(SUBSYSTEM_DEPRECATED)
@SetUp
@Suppress
@field:Ann
@file:JvmName
@set:[Inject VisibleForTesting]
----------------------------------------------------
[
["annotation", "@Deprecated"], ["punctuation", "("], "SUBSYSTEM_DEPRECATED", ["punctuation", ")"],
["annotation", "@SetUp"],
["annotation", "@Suppress"],
["annotation", "@field:Ann"],
["annotation", "@file:JvmName"],
["annotation", "@set:[Inject VisibleForTesting]"]
]
----------------------------------------------------
Checks for annotations.

View File

@ -0,0 +1,16 @@
foo()
foo_Bar_42()
list.filter {}
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_Bar_42"], ["punctuation", "("], ["punctuation", ")"],
"\r\nlist", ["punctuation", "."],
["function", "filter"], ["punctuation", "{"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for functions.

View File

@ -0,0 +1,46 @@
"$foo ${bar} ${'$'} ${foobar()}"
"""
$foo ${bar}
${'$'} ${foobar()}
"""
----------------------------------------------------
[
["string", [
"\"",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", ["'$'"]], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\""
]],
["raw-string", [
"\"\"\"\r\n",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", ["'$'"]], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\r\n\"\"\""
]]
]
----------------------------------------------------
Checks for string interpolation.

View File

@ -0,0 +1,137 @@
abstract
actual
annotation
as
break
by
catch
class
companion
const
constructor
continue
crossinline
data
do
dynamic
else
enum
expect
external
final
finally
for
fun
get
if
import
in
infix
init
inline
inner
interface
internal
is
lateinit
noinline
null
object
open
operator
out
override
package
private
protected
public
reified
return
sealed
set
super
suspend
tailrec
this
throw
try
typealias
val
var
vararg
when
where
while
----------------------------------------------------
[
["keyword", "abstract"],
["keyword", "actual"],
["keyword", "annotation"],
["keyword", "as"],
["keyword", "break"],
["keyword", "by"],
["keyword", "catch"],
["keyword", "class"],
["keyword", "companion"],
["keyword", "const"],
["keyword", "constructor"],
["keyword", "continue"],
["keyword", "crossinline"],
["keyword", "data"],
["keyword", "do"],
["keyword", "dynamic"],
["keyword", "else"],
["keyword", "enum"],
["keyword", "expect"],
["keyword", "external"],
["keyword", "final"],
["keyword", "finally"],
["keyword", "for"],
["keyword", "fun"],
["keyword", "get"],
["keyword", "if"],
["keyword", "import"],
["keyword", "in"],
["keyword", "infix"],
["keyword", "init"],
["keyword", "inline"],
["keyword", "inner"],
["keyword", "interface"],
["keyword", "internal"],
["keyword", "is"],
["keyword", "lateinit"],
["keyword", "noinline"],
["keyword", "null"],
["keyword", "object"],
["keyword", "open"],
["keyword", "operator"],
["keyword", "out"],
["keyword", "override"],
["keyword", "package"],
["keyword", "private"],
["keyword", "protected"],
["keyword", "public"],
["keyword", "reified"],
["keyword", "return"],
["keyword", "sealed"],
["keyword", "set"],
["keyword", "super"],
["keyword", "suspend"],
["keyword", "tailrec"],
["keyword", "this"],
["keyword", "throw"],
["keyword", "try"],
["keyword", "typealias"],
["keyword", "val"],
["keyword", "var"],
["keyword", "vararg"],
["keyword", "when"],
["keyword", "where"],
["keyword", "while"]
]
----------------------------------------------------
Checks for keywords.

View File

@ -0,0 +1,15 @@
loop@
break@loop
return@forEach
----------------------------------------------------
[
["label", "loop@"],
["keyword", "break"], ["label", "@loop"],
["keyword", "return"], ["label", "@forEach"]
]
----------------------------------------------------
Checks for labels.

View File

@ -0,0 +1,39 @@
123
123L
0x0F
0b00001011
123.5
123.5e10
123.5e-10
123.5e+10
123.5f
123.5F
123_456
123_456L
0X01AB_23CD
0B1001_1101
12E34_56
----------------------------------------------------
[
["number", "123"],
["number", "123L"],
["number", "0x0F"],
["number", "0b00001011"],
["number", "123.5"],
["number", "123.5e10"],
["number", "123.5e-10"],
["number", "123.5e+10"],
["number", "123.5f"],
["number", "123.5F"],
["number", "123_456"],
["number", "123_456L"],
["number", "0X01AB_23CD"],
["number", "0B1001_1101"],
["number", "12E34_56"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,31 @@
+ ++ +=
- -- -= ->
= == ===
! !! != !==
/ /= * *=
% %=
< <= > >=
? ?: : ::
.. && ||
and inv or
shl shr ushr xor
----------------------------------------------------
[
["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", "and"], ["operator", "inv"], ["operator", "or"],
["operator", "shl"], ["operator", "shr"], ["operator", "ushr"], ["operator", "xor"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,18 @@
""""""
"""Foo "bar"" baz"""
"""
"Foo"
bar
"""
----------------------------------------------------
[
["raw-string", ["\"\"\"\"\"\""]],
["raw-string", ["\"\"\"Foo \"bar\"\" baz\"\"\""]],
["raw-string", ["\"\"\"\r\n\"Foo\"\r\nbar\r\n\"\"\""]]
]
----------------------------------------------------
Checks for raw strings.