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,14 @@
${42}
----------------------------------------------------
[
["antiquotation", "$"],
["punctuation", "{"],
["number", "42"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for antiquotations outside of strings.

View File

@ -0,0 +1,13 @@
true
false
----------------------------------------------------
[
["boolean", "true"],
["boolean", "false"]
]
----------------------------------------------------
Checks for booleans.

View File

@ -0,0 +1,18 @@
#
# foobar
/**/
/* foo
bar */
----------------------------------------------------
[
["comment", "#"],
["comment", "# foobar"],
["comment", "/**/"],
["comment", "/* foo\r\nbar */"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,133 @@
abort
add
all
any
attrNames
attrValues
baseNameOf
compareVersions
concatLists
currentSystem
deepSeq
derivation
dirOf
div
elem
elemAt
fetchurl
fetchTarball
filter
filterSource
fromJSON
genList
getAttr
getEnv
hasAttr
hashString
head
import
intersectAttrs
isAttrs
isBool
isFunction
isInt
isList
isNull
isString
length
lessThan
listToAttrs
map
mul
parseDrvName
pathExists
readDir
readFile
removeAttrs
replaceStrings
seq
sort
stringLength
sub
substring
tail
throw
toFile
toJSON
toPath
toString
toXML
trace
typeOf
foldl'
----------------------------------------------------
[
["function", "abort"],
["function", "add"],
["function", "all"],
["function", "any"],
["function", "attrNames"],
["function", "attrValues"],
["function", "baseNameOf"],
["function", "compareVersions"],
["function", "concatLists"],
["function", "currentSystem"],
["function", "deepSeq"],
["function", "derivation"],
["function", "dirOf"],
["function", "div"],
["function", "elem"],
["function", "elemAt"],
["function", "fetchurl"],
["function", "fetchTarball"],
["function", "filter"],
["function", "filterSource"],
["function", "fromJSON"],
["function", "genList"],
["function", "getAttr"],
["function", "getEnv"],
["function", "hasAttr"],
["function", "hashString"],
["function", "head"],
["function", "import"],
["function", "intersectAttrs"],
["function", "isAttrs"],
["function", "isBool"],
["function", "isFunction"],
["function", "isInt"],
["function", "isList"],
["function", "isNull"],
["function", "isString"],
["function", "length"],
["function", "lessThan"],
["function", "listToAttrs"],
["function", "map"],
["function", "mul"],
["function", "parseDrvName"],
["function", "pathExists"],
["function", "readDir"],
["function", "readFile"],
["function", "removeAttrs"],
["function", "replaceStrings"],
["function", "seq"],
["function", "sort"],
["function", "stringLength"],
["function", "sub"],
["function", "substring"],
["function", "tail"],
["function", "throw"],
["function", "toFile"],
["function", "toJSON"],
["function", "toPath"],
["function", "toString"],
["function", "toXML"],
["function", "trace"],
["function", "typeOf"],
["function", "foldl'"]
]
----------------------------------------------------
Checks for built-in functions.

View File

@ -0,0 +1,15 @@
assert builtins else if
in inherit let null
or then with
----------------------------------------------------
[
["keyword", "assert"], ["keyword", "builtins"], ["keyword", "else"], ["keyword", "if"],
["keyword", "in"], ["keyword", "inherit"], ["keyword", "let"], ["keyword", "null"],
["keyword", "or"], ["keyword", "then"], ["keyword", "with"]
]
----------------------------------------------------
Checks for keywords.

View File

@ -0,0 +1,15 @@
0
42
120457
----------------------------------------------------
[
["number", "0"],
["number", "42"],
["number", "120457"]
]
----------------------------------------------------
Checks for integers.

View File

@ -0,0 +1,25 @@
= ==
! !=
< <=
> >=
+ ++
- ->
|| && //
? @
----------------------------------------------------
[
["operator", "="], ["operator", "=="],
["operator", "!"], ["operator", "!="],
["operator", "<"], ["operator", "<="],
["operator", ">"], ["operator", ">="],
["operator", "+"], ["operator", "++"],
["operator", "-"], ["operator", "->"],
["operator", "||"], ["operator", "&&"], ["operator", "//"],
["operator", "?"], ["operator", "@"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,56 @@
""
"foo\"b\\ar"
"f''o'o'\"bar"
"foo
bar"
"foo ${ 42 } baz"
"foo \${ 42 } baz"
''''
''
foo
bar
''
''
f'oo'''ba'r
foo ${ 42 } baz
foo ''${ 42 } baz
''
----------------------------------------------------
[
["string", ["\"\""]],
["string", ["\"foo\\\"b\\\\ar\""]],
["string", ["\"f''o'o'\\\"bar\""]],
["string", ["\"foo\r\nbar\""]],
["string", [
"\"foo ",
["interpolation", [
["antiquotation", "$"],
["punctuation", "{"],
["number", "42"],
["punctuation", "}"]
]],
" baz\""
]],
["string", ["\"foo \\${ 42 } baz\""]],
["string", ["''''"]],
["string", ["''\r\nfoo\r\nbar\r\n''"]],
["string", [
"''\r\nf'oo'''ba'r\r\nfoo ",
["interpolation", [
["antiquotation", "$"],
["punctuation", "{"],
["number", "42"],
["punctuation", "}"]
]],
" baz\r\nfoo ''${ 42 } baz\r\n''"
]]
]
----------------------------------------------------
Checks for strings and string interpolation.
Also checks that escaped interpolations are not interpreted.

View File

@ -0,0 +1,21 @@
http://example.org/foo.tar.bz2
ftp://ftp.nluug.nl/pub/gnu/hello/hello-2.1.1.tar.gz
/bin/sh
./builder.sh
~/foo.bar
----------------------------------------------------
[
["url", "http://example.org/foo.tar.bz2"],
["url", "ftp://ftp.nluug.nl/pub/gnu/hello/hello-2.1.1.tar.gz"],
["url", "/bin/sh"],
["url", "./builder.sh"],
["url", "~/foo.bar"]
]
----------------------------------------------------
Checks for URLs and paths.