use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
`ls -selection`
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["code", [
|
||||
["delimiter", "`"],
|
||||
["function", "ls"],
|
||||
["flag", "-selection"],
|
||||
["delimiter", "`"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for code.
|
@ -0,0 +1,13 @@
|
||||
//
|
||||
// Foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "//"],
|
||||
["comment", "// Foobar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,15 @@
|
||||
-d
|
||||
-foo
|
||||
-foo42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["flag", "-d"],
|
||||
["flag", "-foo"],
|
||||
["flag", "-foo42"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for flags.
|
2453
docs/_style/prism-master/tests/languages/mel/function_feature.test
Normal file
2453
docs/_style/prism-master/tests/languages/mel/function_feature.test
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,47 @@
|
||||
break
|
||||
case
|
||||
continue
|
||||
default
|
||||
do
|
||||
else
|
||||
float
|
||||
for
|
||||
global
|
||||
if
|
||||
in
|
||||
int
|
||||
matrix
|
||||
proc
|
||||
return
|
||||
string
|
||||
switch
|
||||
vector
|
||||
while
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "break"],
|
||||
["keyword", "case"],
|
||||
["keyword", "continue"],
|
||||
["keyword", "default"],
|
||||
["keyword", "do"],
|
||||
["keyword", "else"],
|
||||
["keyword", "float"],
|
||||
["keyword", "for"],
|
||||
["keyword", "global"],
|
||||
["keyword", "if"],
|
||||
["keyword", "in"],
|
||||
["keyword", "int"],
|
||||
["keyword", "matrix"],
|
||||
["keyword", "proc"],
|
||||
["keyword", "return"],
|
||||
["keyword", "string"],
|
||||
["keyword", "switch"],
|
||||
["keyword", "vector"],
|
||||
["keyword", "while"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keywords.
|
@ -0,0 +1,15 @@
|
||||
0xBadFace
|
||||
42
|
||||
3.14159
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "0xBadFace"],
|
||||
["number", "42"],
|
||||
["number", "3.14159"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
@ -0,0 +1,33 @@
|
||||
+ ++ +=
|
||||
- -- -=
|
||||
* *=
|
||||
/ /=
|
||||
! !=
|
||||
= ==
|
||||
&&
|
||||
||
|
||||
< <=
|
||||
> >=
|
||||
%
|
||||
^
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["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,13 @@
|
||||
""
|
||||
"fo\"obar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "\"fo\\\"obar\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
@ -0,0 +1,15 @@
|
||||
$x
|
||||
$foo42
|
||||
$Foo_Bar_42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "$x"],
|
||||
["variable", "$foo42"],
|
||||
["variable", "$Foo_Bar_42"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
Reference in New Issue
Block a user