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,16 @@
''
'fo\'obar'
'foo
bar'
----------------------------------------------------
[
["atom", "''"],
["atom", "'fo\\'obar'"],
["atom", "'foo\r\nbar'"]
]
----------------------------------------------------
Checks for atoms.

View File

@ -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.

View File

@ -0,0 +1,18 @@
%
% Foobar
/**/
/* Foo
bar */
----------------------------------------------------
[
["comment", "%"],
["comment", "% Foobar"],
["comment", "/**/"],
["comment", "/* Foo\r\nbar */"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,13 @@
foobar()
{Foobar}
----------------------------------------------------
[
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["punctuation", "{"], ["function", "Foobar"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for functions and procedures.

View 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.

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,16 @@
""
"Fo\"obar"
"Foo
bar"
----------------------------------------------------
[
["string", "\"\""],
["string", "\"Fo\\\"obar\""],
["string", "\"Foo\r\nbar\""]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,15 @@
A
Foobar
Foo42
----------------------------------------------------
[
["variable", "A"],
["variable", "Foobar"],
["variable", "Foo42"]
]
----------------------------------------------------
Checks for variables.