use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
''
|
||||
'fo\'obar'
|
||||
'foo
|
||||
bar'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["atom", "''"],
|
||||
["atom", "'fo\\'obar'"],
|
||||
["atom", "'foo\r\nbar'"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for atoms.
|
@ -0,0 +1,14 @@
|
||||
menubutton(text:'Test' underline:0)
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "menubutton"], ["punctuation", "("],
|
||||
["attr-name", "text"], ["punctuation", ":"], ["atom", "'Test'"],
|
||||
["attr-name", "underline"], ["punctuation", ":"], ["number", "0"],
|
||||
["punctuation", ")"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for parameter names.
|
@ -0,0 +1,18 @@
|
||||
%
|
||||
% Foobar
|
||||
/**/
|
||||
/* Foo
|
||||
bar */
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "%"],
|
||||
["comment", "% Foobar"],
|
||||
["comment", "/**/"],
|
||||
["comment", "/* Foo\r\nbar */"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,13 @@
|
||||
foobar()
|
||||
{Foobar}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
|
||||
["punctuation", "{"], ["function", "Foobar"], ["punctuation", "}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions and procedures.
|
103
docs/_style/prism-master/tests/languages/oz/keyword_feature.test
Normal file
103
docs/_style/prism-master/tests/languages/oz/keyword_feature.test
Normal file
@ -0,0 +1,103 @@
|
||||
$
|
||||
_
|
||||
[]
|
||||
at
|
||||
attr
|
||||
case
|
||||
catch
|
||||
choice
|
||||
class
|
||||
cond
|
||||
declare
|
||||
define
|
||||
dis
|
||||
else
|
||||
elsecase
|
||||
elseif
|
||||
end
|
||||
export
|
||||
fail
|
||||
false
|
||||
feat
|
||||
finally
|
||||
from
|
||||
fun
|
||||
functor
|
||||
if
|
||||
import
|
||||
in
|
||||
local
|
||||
lock
|
||||
meth
|
||||
nil
|
||||
not
|
||||
of
|
||||
or
|
||||
prepare
|
||||
proc
|
||||
prop
|
||||
raise
|
||||
require
|
||||
self
|
||||
skip
|
||||
then
|
||||
thread
|
||||
true
|
||||
try
|
||||
unit
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "$"],
|
||||
["keyword", "_"],
|
||||
["keyword", "[]"],
|
||||
["keyword", "at"],
|
||||
["keyword", "attr"],
|
||||
["keyword", "case"],
|
||||
["keyword", "catch"],
|
||||
["keyword", "choice"],
|
||||
["keyword", "class"],
|
||||
["keyword", "cond"],
|
||||
["keyword", "declare"],
|
||||
["keyword", "define"],
|
||||
["keyword", "dis"],
|
||||
["keyword", "else"],
|
||||
["keyword", "elsecase"],
|
||||
["keyword", "elseif"],
|
||||
["keyword", "end"],
|
||||
["keyword", "export"],
|
||||
["keyword", "fail"],
|
||||
["keyword", "false"],
|
||||
["keyword", "feat"],
|
||||
["keyword", "finally"],
|
||||
["keyword", "from"],
|
||||
["keyword", "fun"],
|
||||
["keyword", "functor"],
|
||||
["keyword", "if"],
|
||||
["keyword", "import"],
|
||||
["keyword", "in"],
|
||||
["keyword", "local"],
|
||||
["keyword", "lock"],
|
||||
["keyword", "meth"],
|
||||
["keyword", "nil"],
|
||||
["keyword", "not"],
|
||||
["keyword", "of"],
|
||||
["keyword", "or"],
|
||||
["keyword", "prepare"],
|
||||
["keyword", "proc"],
|
||||
["keyword", "prop"],
|
||||
["keyword", "raise"],
|
||||
["keyword", "require"],
|
||||
["keyword", "self"],
|
||||
["keyword", "skip"],
|
||||
["keyword", "then"],
|
||||
["keyword", "thread"],
|
||||
["keyword", "true"],
|
||||
["keyword", "try"],
|
||||
["keyword", "unit"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keywords.
|
@ -0,0 +1,35 @@
|
||||
0
|
||||
42
|
||||
0154
|
||||
0xBadFace
|
||||
0B0101
|
||||
3.14159
|
||||
2e8
|
||||
3.E~7
|
||||
4.8E12
|
||||
&0
|
||||
&a
|
||||
&\n
|
||||
&\124
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "0"],
|
||||
["number", "42"],
|
||||
["number", "0154"],
|
||||
["number", "0xBadFace"],
|
||||
["number", "0B0101"],
|
||||
["number", "3.14159"],
|
||||
["number", "2e8"],
|
||||
["number", "3.E~7"],
|
||||
["number", "4.8E12"],
|
||||
["number", "&0"],
|
||||
["number", "&a"],
|
||||
["number", "&\\n"],
|
||||
["number", "&\\124"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
@ -0,0 +1,35 @@
|
||||
:= :: :::
|
||||
< <- <: <=
|
||||
= == =: =< =<:
|
||||
> >= >: >=:
|
||||
\= \=:
|
||||
! !!
|
||||
| # + -
|
||||
* / , ~
|
||||
^ @
|
||||
andthen
|
||||
div
|
||||
mod
|
||||
orelse
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", ":="], ["operator", "::"], ["operator", ":::"],
|
||||
["operator", "<"], ["operator", "<-"], ["operator", "<:"], ["operator", "<="],
|
||||
["operator", "="], ["operator", "=="], ["operator", "=:"], ["operator", "=<"], ["operator", "=<:"],
|
||||
["operator", ">"], ["operator", ">="], ["operator", ">:"], ["operator", ">=:"],
|
||||
["operator", "\\="], ["operator", "\\=:"],
|
||||
["operator", "!"], ["operator", "!!"],
|
||||
["operator", "|"], ["operator", "#"], ["operator", "+"], ["operator", "-"],
|
||||
["operator", "*"], ["operator", "/"], ["operator", ","], ["operator", "~"],
|
||||
["operator", "^"], ["operator", "@"],
|
||||
["operator", "andthen"],
|
||||
["operator", "div"],
|
||||
["operator", "mod"],
|
||||
["operator", "orelse"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for operators.
|
@ -0,0 +1,16 @@
|
||||
""
|
||||
"Fo\"obar"
|
||||
"Foo
|
||||
bar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "\"Fo\\\"obar\""],
|
||||
["string", "\"Foo\r\nbar\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
@ -0,0 +1,15 @@
|
||||
A
|
||||
Foobar
|
||||
Foo42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "A"],
|
||||
["variable", "Foobar"],
|
||||
["variable", "Foo42"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
Reference in New Issue
Block a user