use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
[ :i |
|
||||
]
|
||||
[ :a :b |
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "["],
|
||||
["block-arguments", [
|
||||
["variable", ":i"],
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["punctuation", "]"],
|
||||
["punctuation", "["],
|
||||
["block-arguments", [
|
||||
["variable", ":a"],
|
||||
["variable", ":b"],
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for block arguments.
|
@ -0,0 +1,17 @@
|
||||
$a
|
||||
$4
|
||||
$.
|
||||
$^
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["character", "$a"],
|
||||
["character", "$4"],
|
||||
["character", "$."],
|
||||
["character", "$^"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for characters.
|
@ -0,0 +1,14 @@
|
||||
"foobar"
|
||||
"foo""bar
|
||||
baz"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "\"foobar\""],
|
||||
["comment", "\"foo\"\"bar\r\nbaz\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,13 @@
|
||||
nil true false
|
||||
self super new
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "nil"], ["keyword", "true"], ["keyword", "false"],
|
||||
["keyword", "self"], ["keyword", "super"], ["keyword", "new"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keywords.
|
@ -0,0 +1,23 @@
|
||||
42
|
||||
3.14159
|
||||
3e8
|
||||
0.2e-4
|
||||
2r10001111
|
||||
2r10.1111e4
|
||||
16rBADFACE
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "3e8"],
|
||||
["number", "0.2e-4"],
|
||||
["number", "2r10001111"],
|
||||
["number", "2r10.1111e4"],
|
||||
["number", "16rBADFACE"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
@ -0,0 +1,29 @@
|
||||
:=
|
||||
= ==
|
||||
~= ~~
|
||||
< <=
|
||||
> >> >=
|
||||
/ //
|
||||
\\
|
||||
! ^ +
|
||||
- * &
|
||||
| , @
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", ":="],
|
||||
["operator", "="], ["operator", "=="],
|
||||
["operator", "~="], ["operator", "~~"],
|
||||
["operator", "<"], ["operator", "<="],
|
||||
["operator", ">"], ["operator", ">>"], ["operator", ">="],
|
||||
["operator", "/"], ["operator", "//"],
|
||||
["operator", "\\\\"],
|
||||
["operator", "!"], ["operator", "^"], ["operator", "+"],
|
||||
["operator", "-"], ["operator", "*"], ["operator", "&"],
|
||||
["operator", "|"], ["operator", ","], ["operator", "@"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all operators.
|
@ -0,0 +1,14 @@
|
||||
'foobar'
|
||||
'foo''bar
|
||||
baz'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "'foobar'"],
|
||||
["string", "'foo''bar\r\nbaz'"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
@ -0,0 +1,21 @@
|
||||
#foo
|
||||
#Foo42
|
||||
#-
|
||||
#+
|
||||
#**
|
||||
#(
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["symbol", "#foo"],
|
||||
["symbol", "#Foo42"],
|
||||
["symbol", "#-"],
|
||||
["symbol", "#+"],
|
||||
["symbol", "#**"],
|
||||
["symbol", "#"], ["punctuation", "("]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for symbols.
|
@ -0,0 +1,25 @@
|
||||
| foo |
|
||||
| x y myVar z cnt |
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["temporary-variables", [
|
||||
["punctuation", "|"],
|
||||
["variable", "foo"],
|
||||
["punctuation", "|"]
|
||||
]],
|
||||
["temporary-variables", [
|
||||
["punctuation", "|"],
|
||||
["variable", "x"],
|
||||
["variable", "y"],
|
||||
["variable", "myVar"],
|
||||
["variable", "z"],
|
||||
["variable", "cnt"],
|
||||
["punctuation", "|"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for temporary variables.
|
Reference in New Issue
Block a user