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,33 @@
@IBOutlet
@IBDesignable
@IBAction
@IBInspectable
@class_protocol
@exported
@noreturn
@NSCopying
@NSManaged
@objc
@UIApplicationMain
@auto_closure
----------------------------------------------------
[
["atrule", "@IBOutlet"],
["atrule", "@IBDesignable"],
["atrule", "@IBAction"],
["atrule", "@IBInspectable"],
["atrule", "@class_protocol"],
["atrule", "@exported"],
["atrule", "@noreturn"],
["atrule", "@NSCopying"],
["atrule", "@NSManaged"],
["atrule", "@objc"],
["atrule", "@UIApplicationMain"],
["atrule", "@auto_closure"]
]
----------------------------------------------------
Checks for at-rules.

View File

@ -0,0 +1,53 @@
Foo
Bar
abs advance alignof alignofValue
assert contains count countElements
debugPrint debugPrintln distance
dropFirst dropLast dump enumerate
equal filter find first getVaList
indices isEmpty join last
lexicographicalCompare map max
maxElement min minElement numericCast
overlaps partition print
println reduce reflect reverse
sizeof sizeofValue sort sorted
split startsWith stride strideof
strideofValue suffix swap toDebugString
toString transcode underestimateCount
unsafeBitCast withExtendedLifetime
withUnsafeMutablePointer
withUnsafeMutablePointers
withUnsafePointer withUnsafePointers
withVaList
----------------------------------------------------
[
["builtin", "Foo"],
["builtin", "Bar"],
["builtin", "abs"], ["builtin", "advance"], ["builtin", "alignof"], ["builtin", "alignofValue"],
["builtin", "assert"], ["builtin", "contains"], ["builtin", "count"], ["builtin", "countElements"],
["builtin", "debugPrint"], ["builtin", "debugPrintln"], ["builtin", "distance"],
["builtin", "dropFirst"], ["builtin", "dropLast"], ["builtin", "dump"], ["builtin", "enumerate"],
["builtin", "equal"], ["builtin", "filter"], ["builtin", "find"], ["builtin", "first"], ["builtin", "getVaList"],
["builtin", "indices"], ["builtin", "isEmpty"], ["builtin", "join"], ["builtin", "last"],
["builtin", "lexicographicalCompare"], ["builtin", "map"], ["builtin", "max"],
["builtin", "maxElement"], ["builtin", "min"], ["builtin", "minElement"], ["builtin", "numericCast"],
["builtin", "overlaps"], ["builtin", "partition"], ["builtin", "print"],
["builtin", "println"], ["builtin", "reduce"], ["builtin", "reflect"], ["builtin", "reverse"],
["builtin", "sizeof"], ["builtin", "sizeofValue"], ["builtin", "sort"], ["builtin", "sorted"],
["builtin", "split"], ["builtin", "startsWith"], ["builtin", "stride"], ["builtin", "strideof"],
["builtin", "strideofValue"], ["builtin", "suffix"], ["builtin", "swap"], ["builtin", "toDebugString"],
["builtin", "toString"], ["builtin", "transcode"], ["builtin", "underestimateCount"],
["builtin", "unsafeBitCast"], ["builtin", "withExtendedLifetime"],
["builtin", "withUnsafeMutablePointer"],
["builtin", "withUnsafeMutablePointers"],
["builtin", "withUnsafePointer"], ["builtin", "withUnsafePointers"],
["builtin", "withVaList"]
]
----------------------------------------------------
Checks for builtins.

View File

@ -0,0 +1,19 @@
nil
AB
FOO_BAR
kAb
kFoo_bar
----------------------------------------------------
[
["constant", "nil"],
["constant", "AB"],
["constant", "FOO_BAR"],
["constant", "kAb"],
["constant", "kFoo_bar"]
]
----------------------------------------------------
Checks for constants.

View File

@ -0,0 +1,165 @@
as
associativity
break
case
catch
class;
continue
convenience
default
defer
deinit
didSet
do
dynamic
dynamicType
else
enum
extension
fallthrough
final
for
func
get
guard
if
import
in
infix
init
inout
internal
is
lazy
left
let
mutating
new;
none
nonmutating
operator
optional
override
postfix
precedence
prefix
private
protocol
public
repeat
required
rethrows
return
right
safe
self
Self
set
static
struct
subscript
super
switch
throw
throws
try
Type
typealias
unowned
unsafe
var
weak
where
while
willSet
__COLUMN__
__FILE__
__FUNCTION__
__LINE__
----------------------------------------------------
[
["keyword", "as"],
["keyword", "associativity"],
["keyword", "break"],
["keyword", "case"],
["keyword", "catch"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "continue"],
["keyword", "convenience"],
["keyword", "default"],
["keyword", "defer"],
["keyword", "deinit"],
["keyword", "didSet"],
["keyword", "do"],
["keyword", "dynamic"],
["keyword", "dynamicType"],
["keyword", "else"],
["keyword", "enum"],
["keyword", "extension"],
["keyword", "fallthrough"],
["keyword", "final"],
["keyword", "for"],
["keyword", "func"],
["keyword", "get"],
["keyword", "guard"],
["keyword", "if"],
["keyword", "import"],
["keyword", "in"],
["keyword", "infix"],
["keyword", "init"],
["keyword", "inout"],
["keyword", "internal"],
["keyword", "is"],
["keyword", "lazy"],
["keyword", "left"],
["keyword", "let"],
["keyword", "mutating"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "none"],
["keyword", "nonmutating"],
["keyword", "operator"],
["keyword", "optional"],
["keyword", "override"],
["keyword", "postfix"],
["keyword", "precedence"],
["keyword", "prefix"],
["keyword", "private"],
["keyword", "protocol"],
["keyword", "public"],
["keyword", "repeat"],
["keyword", "required"],
["keyword", "rethrows"],
["keyword", "return"],
["keyword", "right"],
["keyword", "safe"],
["keyword", "self"],
["keyword", "Self"],
["keyword", "set"],
["keyword", "static"],
["keyword", "struct"],
["keyword", "subscript"],
["keyword", "super"],
["keyword", "switch"],
["keyword", "throw"],
["keyword", "throws"],
["keyword", "try"],
["keyword", "Type"],
["keyword", "typealias"],
["keyword", "unowned"],
["keyword", "unsafe"],
["keyword", "var"],
["keyword", "weak"],
["keyword", "where"],
["keyword", "while"],
["keyword", "willSet"],
["keyword", "__COLUMN__"],
["keyword", "__FILE__"],
["keyword", "__FUNCTION__"],
["keyword", "__LINE__"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,25 @@
42
42_000
3.1415_9
4.2e14
0xBaf_Face
0xFF47.AB_61p2
0b0000_1111
0o147_654
----------------------------------------------------
[
["number", "42"],
["number", "42_000"],
["number", "3.1415_9"],
["number", "4.2e14"],
["number", "0xBaf_Face"],
["number", "0xFF47.AB_61p2"],
["number", "0b0000_1111"],
["number", "0o147_654"]
]
----------------------------------------------------
Checks for decimal, hexadecimal, octal and binary numbers.

View File

@ -0,0 +1,47 @@
""
"fo\"o"
"foo\
bar"
"foo \(42)"
"foo \(f("bar"))"
"foo /* comment */ bar"
'foo // bar'
"foo\
/* comment */\
bar"
----------------------------------------------------
[
["string", ["\"\""]],
["string", ["\"fo\\\"o\""]],
["string", ["\"foo\\\r\nbar\""]],
["string", [
"\"foo ",
["interpolation", [
["delimiter", "\\("],
["number", "42"],
["delimiter", ")"]
]],
"\""
]],
["string", [
"\"foo ",
["interpolation", [
["delimiter", "\\("],
["function", "f"],
["punctuation", "("],
["string", ["\"bar\""]],
["punctuation", ")"],
["delimiter", ")"]
]],
"\""
]],
["string", ["\"foo /* comment */ bar\""]],
["string", ["'foo // bar'"]],
["string", ["\"foo\\\r\n/* comment */\\\r\nbar\""]]
]
----------------------------------------------------
Checks for strings and string interpolation.