use prism-tomorrow.css
This commit is contained in:
@ -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.
|
@ -0,0 +1,19 @@
|
||||
'a'
|
||||
'\''
|
||||
'\n'
|
||||
'\23'
|
||||
'\xFE'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["char", "'a'"],
|
||||
["char", "'\\''"],
|
||||
["char", "'\\n'"],
|
||||
["char", "'\\23'"],
|
||||
["char", "'\\xFE'"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for chars.
|
@ -0,0 +1,14 @@
|
||||
-- foo
|
||||
{- foo
|
||||
bar -}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "-- foo"],
|
||||
["comment", "{- foo\r\nbar -}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for single-line and multi-line comments.
|
@ -0,0 +1,15 @@
|
||||
Foo
|
||||
Foo.Bar
|
||||
Baz.Foobar_42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["constant", "Foo"],
|
||||
["constant", "Foo.Bar"],
|
||||
["constant", "Baz.Foobar_42"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for constants.
|
@ -0,0 +1,15 @@
|
||||
foo
|
||||
Foo.bar
|
||||
Baz.foobar_42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["hvariable", "foo"],
|
||||
["hvariable", "Foo.bar"],
|
||||
["hvariable", "Baz.foobar_42"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for hvariables.
|
@ -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.
|
@ -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.
|
@ -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.
|
@ -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.
|
@ -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.
|
Reference in New Issue
Block a user