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,25 @@
abs acos always asin atan atan2
ceiling clamp compare cos curry
degrees e flip floor fromPolar
identity isInfinite isNaN
logBase max min negate never
not pi radians rem round sin
sqrt tan toFloat toPolar toString
truncate turns uncurry xor
----------------------------------------------------
[
["builtin", "abs"], ["builtin", "acos"], ["builtin", "always"], ["builtin", "asin"], ["builtin", "atan"], ["builtin", "atan2"],
["builtin", "ceiling"], ["builtin", "clamp"], ["builtin", "compare"], ["builtin", "cos"], ["builtin", "curry"],
["builtin", "degrees"], ["builtin", "e"], ["builtin", "flip"], ["builtin", "floor"], ["builtin", "fromPolar"],
["builtin", "identity"], ["builtin", "isInfinite"], ["builtin", "isNaN"],
["builtin", "logBase"], ["builtin", "max"], ["builtin", "min"], ["builtin", "negate"], ["builtin", "never"],
["builtin", "not"], ["builtin", "pi"], ["builtin", "radians"], ["builtin", "rem"], ["builtin", "round"], ["builtin", "sin"],
["builtin", "sqrt"], ["builtin", "tan"], ["builtin", "toFloat"], ["builtin", "toPolar"], ["builtin", "toString"],
["builtin", "truncate"], ["builtin", "turns"], ["builtin", "uncurry"], ["builtin", "xor"]
]
----------------------------------------------------
Checks for all builtin.

View File

@ -0,0 +1,19 @@
'a'
'\''
'\n'
'\23'
'\xFE'
----------------------------------------------------
[
["char", "'a'"],
["char", "'\\''"],
["char", "'\\n'"],
["char", "'\\23'"],
["char", "'\\xFE'"]
]
----------------------------------------------------
Checks for chars.

View File

@ -0,0 +1,14 @@
-- foo
{- foo
bar -}
----------------------------------------------------
[
["comment", "-- foo"],
["comment", "{- foo\r\nbar -}"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.

View File

@ -0,0 +1,15 @@
Foo
Foo.Bar
Baz.Foobar_42
----------------------------------------------------
[
["constant", "Foo"],
["constant", "Foo.Bar"],
["constant", "Baz.Foobar_42"]
]
----------------------------------------------------
Checks for constants.

View File

@ -0,0 +1,15 @@
foo
Foo.bar
Baz.foobar_42
----------------------------------------------------
[
["hvariable", "foo"],
["hvariable", "Foo.bar"],
["hvariable", "Baz.foobar_42"]
]
----------------------------------------------------
Checks for hvariables.

View File

@ -0,0 +1,48 @@
import Foo
import Foo_42.Bar as Foobar
import Foo.Bar as Foo.Baz
import List exposing (map)
import Json.Decode as Json exposing (Decoder)
----------------------------------------------------
[
["import_statement", [
["keyword", "import"],
" Foo"
]],
["import_statement", [
["keyword", "import"],
" Foo_42.Bar ",
["keyword", "as"],
" Foobar"
]],
["import_statement", [
["keyword", "import"],
" Foo.Bar ",
["keyword", "as"],
" Foo.Baz"
]],
["import_statement", [
["keyword", "import"],
" List ",
["keyword", "exposing"]
]],
["punctuation", "("],
["hvariable", "map"],
["punctuation", ")"],
["import_statement", [
["keyword", "import"],
" Json.Decode ",
["keyword", "as"],
" Json ",
["keyword", "exposing"]
]],
["punctuation", "("],
["constant", "Decoder"],
["punctuation", ")"]
]
----------------------------------------------------
Checks for import statement.

View File

@ -0,0 +1,19 @@
alias as case else
exposing if in
infixl infixr let
module of then
type
----------------------------------------------------
[
["keyword", "alias"], ["keyword", "as"], ["keyword", "case"], ["keyword", "else"],
["keyword", "exposing"], ["keyword", "if"], ["keyword", "in"],
["keyword", "infixl"], ["keyword", "infixr"], ["keyword", "let"],
["keyword", "module"], ["keyword", "of"], ["keyword", "then"],
["keyword", "type"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,21 @@
42
3.14159
2E3
1.2e-4
0.9e+1
0xBadFace
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "2E3"],
["number", "1.2e-4"],
["number", "0.9e+1"],
["number", "0xBadFace"]
]
----------------------------------------------------
Checks for decimal and hexadecimal numbers.

View File

@ -0,0 +1,33 @@
..
reverse . sort
+ - * /
^ ^^ **
&& ||
< <= == /=
>= > |
++ : !!
<- ->
= :: =>
>> >>= >@>
~ ! @
----------------------------------------------------
[
["operator", ".."],
["hvariable", "reverse"], ["operator", " . "], ["hvariable", "sort"],
["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", "@"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,21 @@
""
"regular string"
"fo\"o"
"""foo
bar"""
"""foo -- comment
bar"""
----------------------------------------------------
[
["string", "\"\""],
["string", "\"regular string\""],
["string", "\"fo\\\"o\""],
["string", "\"\"\"foo\r\n bar\"\"\""],
["string", "\"\"\"foo -- comment\r\n bar\"\"\""]
]
----------------------------------------------------
Checks for strings.