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,12 @@
{| foo : string |}
----------------------------------------------------
[
["flow-punctuation", "{|"], " foo ", ["punctuation", ":"],
["type", "string"], ["flow-punctuation", "|}"]
]
----------------------------------------------------
Checks for Flow specific punctuation.

View File

@ -0,0 +1,20 @@
foo = (a: number) : number => {}
bar = () : string => {}
----------------------------------------------------
[
["function-variable", "foo"], ["operator", "="],
["punctuation", "("], "a", ["punctuation", ":"],
["type", "number"], ["punctuation", ")"],
["punctuation", ":"], ["type", "number"],
["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"],
["function-variable", "bar"], ["operator", "="],
["punctuation", "("], ["punctuation", ")"],
["punctuation", ":"], ["type", "string"],
["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for function variables containing types.

View File

@ -0,0 +1,39 @@
type
opaque
declare
Class
$await
$Diff
$Exact
$Keys
$ObjMap
$PropertyType
$Shape
$Record
$Supertype
$Subtype
$Enum
----------------------------------------------------
[
["keyword", "type"],
["keyword", "opaque"],
["keyword", "declare"],
["keyword", "Class"],
["keyword", "$await"],
["keyword", "$Diff"],
["keyword", "$Exact"],
["keyword", "$Keys"],
["keyword", "$ObjMap"],
["keyword", "$PropertyType"],
["keyword", "$Shape"],
["keyword", "$Record"],
["keyword", "$Supertype"],
["keyword", "$Subtype"],
["keyword", "$Enum"]
]
----------------------------------------------------
Checks for keywords.

View File

@ -0,0 +1,31 @@
Number
number
String
string
Boolean
boolean
Function
any
mixed
null
void
----------------------------------------------------
[
["type", "Number"],
["type", "number"],
["type", "String"],
["type", "string"],
["type", "Boolean"],
["type", "boolean"],
["type", "Function"],
["type", "any"],
["type", "mixed"],
["type", "null"],
["type", "void"]
]
----------------------------------------------------
Checks for types.