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,29 @@
@load-sigs
@load-plugin
@unload
@prefixes
@ifndef
@ifdef
@else
&redef
&priority
redef
----------------------------------------------------
[
["builtin", "@load-sigs"],
["builtin", "@load-plugin"],
["builtin", "@unload"],
["builtin", "@prefixes"],
["builtin", "@ifndef"],
["builtin", "@ifdef"],
["builtin", "@else"],
["builtin", "&redef"],
["builtin", "&priority"],
["builtin", "redef"]
]
----------------------------------------------------
Checks for the builtins

View File

@ -0,0 +1,17 @@
## comment
#TODO
## FIXME
# XXX
----------------------------------------------------
[
["comment", [ "## comment"]],
["comment", [ "#", ["italic", "TODO"]]],
["comment", [ "## ", ["italic", "FIXME"]]],
["comment", [ "# ", ["italic", "XXX"]]]
]
----------------------------------------------------
Checks for the highlighting of comments

View File

@ -0,0 +1,21 @@
function foo
hook foo
event foo
function foo::bar
hook foo::bar
event foo::bar
----------------------------------------------------
[
["function", [["keyword", "function"], " foo"]],
["function", [["keyword", "hook"], " foo"]],
["function", [["keyword", "event"], " foo"]],
["function", [["keyword", "function"], " foo::bar"]],
["function", [["keyword", "hook"], " foo::bar"]],
["function", [["keyword", "event"], " foo::bar"]]
]
----------------------------------------------------
Checks for the function feature

View File

@ -0,0 +1,87 @@
break
next
continue
alarm
using
of
add
delete
export
print
return
schedule
when
timeout
addr
any
bool
count
double
enum
file
int
interval
pattern
opaque
port
record
set
string
subnet
table
time
vector
for
if
else
in
module
function
----------------------------------------------------
[
["keyword", "break"],
["keyword", "next"],
["keyword", "continue"],
["keyword", "alarm"],
["keyword", "using"],
["keyword", "of"],
["keyword", "add"],
["keyword", "delete"],
["keyword", "export"],
["keyword", "print"],
["keyword", "return"],
["keyword", "schedule"],
["keyword", "when"],
["keyword", "timeout"],
["keyword", "addr"],
["keyword", "any"],
["keyword", "bool"],
["keyword", "count"],
["keyword", "double"],
["keyword", "enum"],
["keyword", "file"],
["keyword", "int"],
["keyword", "interval"],
["keyword", "pattern"],
["keyword", "opaque"],
["keyword", "port"],
["keyword", "record"],
["keyword", "set"],
["keyword", "string"],
["keyword", "subnet"],
["keyword", "table"],
["keyword", "time"],
["keyword", "vector"],
["keyword", "for"],
["keyword", "if"],
["keyword", "else"],
["keyword", "in"],
["keyword", "module"],
["keyword", "function"]
]
----------------------------------------------------
Checks for the builtins

View File

@ -0,0 +1,23 @@
""
''
"foo"
'foo'
"'foo'"
'"bar"'
" # comment "
----------------------------------------------------
[
["string", "\"\""],
["string", "''"],
["string", "\"foo\""],
["string", "'foo'"],
["string", "\"'foo'\""],
["string", "'\"bar\"'"],
["string", "\" # comment \""]
]
----------------------------------------------------
Checks for single-quoted and double-quoted strings.

View File

@ -0,0 +1,25 @@
local foo
global foo
local bool = T;
const bar
local baz = 66;
----------------------------------------------------
[
["variable", [["keyword", "local"], " foo"]],
["variable", [["keyword", "global"], " foo"]],
["variable", [["keyword", "local"], " bool"]],
["operator", "="],
["boolean", "T"],
["punctuation", ";"],
["constant", [["keyword", "const"], " bar"]],
["variable", [["keyword", "local"], " baz"]],
["operator", "="],
["number", "66"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for the highlighting of variables