use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
{| foo : string |}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["flow-punctuation", "{|"], " foo ", ["punctuation", ":"],
|
||||
["type", "string"], ["flow-punctuation", "|}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for Flow specific punctuation.
|
@ -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.
|
@ -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.
|
@ -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.
|
Reference in New Issue
Block a user