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,34 @@
class Foo
interface BarBaz
class Foo : Bar
[Foobar]
void Foo(Bar bar, Baz baz)
----------------------------------------------------
[
["keyword", "class"],
["class-name", ["Foo"]],
["keyword", "interface"],
["class-name", ["BarBaz"]],
["keyword", "class"],
["class-name", ["Foo"]],
["punctuation", ":"],
["class-name", ["Bar"]],
["punctuation", "["],
["class-name", ["Foobar"]],
["punctuation", "]"],
["keyword", "void"],
["function", "Foo"],
["punctuation", "("],
["class-name", ["Bar"]],
" bar",
["punctuation", ","],
["class-name", ["Baz"]],
" baz",
["punctuation", ")"]
]
----------------------------------------------------
Checks for class names.

View File

@ -0,0 +1,34 @@
void method<T, U>();
method<int, char>();
----------------------------------------------------
[
["keyword", "void"],
["generic-method", [
["function", "method"],
["punctuation", "<"],
["class-name", ["T"]],
["punctuation", ","],
["class-name", ["U"]],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["generic-method", [
["function", "method"],
["punctuation", "<"],
["keyword", "int"],
["punctuation", ","],
["keyword", "char"],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for generic methods

View File

@ -0,0 +1,12 @@
@"file:///"
----------------------------------------------------
[
["string", "@\"file:///\""]
]
----------------------------------------------------
Checks that three slashes inside a string do not break highlighting.
See #1091.

View File

@ -0,0 +1,39 @@
interface ILogger {
void Init(SomeClass file);
void LogInfo(string message);
}
public class SomeClass : BaseClass {}
----------------------------------------------------
[
["keyword", "interface"],
["class-name", ["ILogger"]],
["punctuation", "{"],
["keyword", "void"],
["function", "Init"],
["punctuation", "("],
["class-name", ["SomeClass"]],
" file",
["punctuation", ")"],
["punctuation", ";"],
["keyword", "void"],
["function", "LogInfo"],
["punctuation", "("],
["keyword", "string"],
" message",
["punctuation", ")"],
["punctuation", ";"],
["punctuation", "}"],
["keyword", "public"],
["keyword", "class"],
["class-name", ["SomeClass"]],
["punctuation", ":"],
["class-name", ["BaseClass"]],
["punctuation", "{"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for class names. See #1365

View File

@ -0,0 +1,144 @@
container.Register<Car>();
container.Register<IJuice, Juice>();
var container = new Container(f =>
{
f.For<IFoo>().Use<Foo>();
});
class LandAnimal {
public void Move() => Run(); }
class Dog : LandAnimal {
public new void Move() => Run(); }
class Works : LandAnimal {
public override void Move() => Run(); }
[Required]
[RequiredAttribute()]
[Range(1, 10)]
----------------------------------------------------
[
"container",
["punctuation", "."],
["generic-method", [
["function", "Register"],
["punctuation", "<"],
["class-name", ["Car"]],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
"\r\ncontainer",
["punctuation", "."],
["generic-method", [
["function", "Register"],
["punctuation", "<"],
["class-name", ["IJuice"]],
["punctuation", ","],
["class-name", ["Juice"]],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["keyword", "var"],
" container ",
["operator", "="],
["keyword", "new"],
["class-name", ["Container"]],
["punctuation", "("],
"f ",
["operator", "=>"],
["punctuation", "{"],
"\r\n f",
["punctuation", "."],
["generic-method", [
["function", "For"],
["punctuation", "<"],
["class-name", ["IFoo"]],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "."],
["generic-method", [
["function", "Use"],
["punctuation", "<"],
["class-name", ["Foo"]],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["punctuation", "}"],
["punctuation", ")"],
["punctuation", ";"],
["keyword", "class"],
["class-name", ["LandAnimal"]],
["punctuation", "{"],
["keyword", "public"],
["keyword", "void"],
["function", "Move"],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"],
["function", "Run"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["punctuation", "}"],
["keyword", "class"],
["class-name", ["Dog"]],
["punctuation", ":"],
["class-name", ["LandAnimal"]],
["punctuation", "{"],
["keyword", "public"],
["keyword", "new"],
["keyword", "void"],
["function", "Move"],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"],
["function", "Run"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["punctuation", "}"],
["keyword", "class"],
["class-name", ["Works"]],
["punctuation", ":"],
["class-name", ["LandAnimal"]],
["punctuation", "{"],
["keyword", "public"],
["keyword", "override"],
["keyword", "void"],
["function", "Move"],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"],
["function", "Run"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["punctuation", "}"],
["punctuation", "["],
["class-name", ["Required"]],
["punctuation", "]"],
["punctuation", "["],
["class-name", ["RequiredAttribute"]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "]"],
["punctuation", "["],
["class-name", ["Range"]],
["punctuation", "("],
["number", "1"],
["punctuation", ","],
["number", "10"],
["punctuation", ")"],
["punctuation", "]"]
]
----------------------------------------------------
Checks for various cases of class names. See #1371

View File

@ -0,0 +1,12 @@
0.3f
----------------------------------------------------
[
["number", "0.3f"]
]
----------------------------------------------------
Checks that "f" prefix is properly highlighted as part of the number.
See #806.

View File

@ -0,0 +1,209 @@
abstract
add
alias
as
ascending
async
await
base
bool
break
byte
case
catch
char
checked
class;
const
continue
decimal
default
delegate
descending
do
double
dynamic
else
enum
event
explicit
extern
false
finally
fixed
float
for
foreach
from
get
global
goto
group
if
implicit
in
int
interface;
internal
into
is
join
let
lock
long
namespace
new;
null
object
operator
orderby
out
override
params
partial
private
protected
public
readonly
ref
remove
return
sbyte
sealed
select
set
short
sizeof
stackalloc
static
string
struct
switch
this
throw
true
try
typeof
uint
ulong
unchecked
unsafe
ushort
using
value
var
virtual
void
volatile
where
while
yield
----------------------------------------------------
[
["keyword", "abstract"],
["keyword", "add"],
["keyword", "alias"],
["keyword", "as"],
["keyword", "ascending"],
["keyword", "async"],
["keyword", "await"],
["keyword", "base"],
["keyword", "bool"],
["keyword", "break"],
["keyword", "byte"],
["keyword", "case"],
["keyword", "catch"],
["keyword", "char"],
["keyword", "checked"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "const"],
["keyword", "continue"],
["keyword", "decimal"],
["keyword", "default"],
["keyword", "delegate"],
["keyword", "descending"],
["keyword", "do"],
["keyword", "double"],
["keyword", "dynamic"],
["keyword", "else"],
["keyword", "enum"],
["keyword", "event"],
["keyword", "explicit"],
["keyword", "extern"],
["keyword", "false"],
["keyword", "finally"],
["keyword", "fixed"],
["keyword", "float"],
["keyword", "for"],
["keyword", "foreach"],
["keyword", "from"],
["keyword", "get"],
["keyword", "global"],
["keyword", "goto"],
["keyword", "group"],
["keyword", "if"],
["keyword", "implicit"],
["keyword", "in"],
["keyword", "int"],
["keyword", "interface"], ["punctuation", ";"],
["keyword", "internal"],
["keyword", "into"],
["keyword", "is"],
["keyword", "join"],
["keyword", "let"],
["keyword", "lock"],
["keyword", "long"],
["keyword", "namespace"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "null"],
["keyword", "object"],
["keyword", "operator"],
["keyword", "orderby"],
["keyword", "out"],
["keyword", "override"],
["keyword", "params"],
["keyword", "partial"],
["keyword", "private"],
["keyword", "protected"],
["keyword", "public"],
["keyword", "readonly"],
["keyword", "ref"],
["keyword", "remove"],
["keyword", "return"],
["keyword", "sbyte"],
["keyword", "sealed"],
["keyword", "select"],
["keyword", "set"],
["keyword", "short"],
["keyword", "sizeof"],
["keyword", "stackalloc"],
["keyword", "static"],
["keyword", "string"],
["keyword", "struct"],
["keyword", "switch"],
["keyword", "this"],
["keyword", "throw"],
["keyword", "true"],
["keyword", "try"],
["keyword", "typeof"],
["keyword", "uint"],
["keyword", "ulong"],
["keyword", "unchecked"],
["keyword", "unsafe"],
["keyword", "ushort"],
["keyword", "using"],
["keyword", "value"],
["keyword", "var"],
["keyword", "virtual"],
["keyword", "void"],
["keyword", "volatile"],
["keyword", "where"],
["keyword", "while"],
["keyword", "yield"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,17 @@
42
3.14159
0xbabe
0XBABE
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "0xbabe"],
["number", "0XBABE"]
]
----------------------------------------------------
Checks for decimal and hexadecimal numbers.

View File

@ -0,0 +1,60 @@
+ - * / % -- ++
>> <<
~ & | ^
+= -= *= /= %= >>= <<= &= |= ^=
! && ||
-> =>
= == != < > <= >=
??
----------------------------------------------------
[
["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", "!="],
["operator", "<"],
["operator", ">"],
["operator", "<="],
["operator", ">="],
["operator", "??"]
]
----------------------------------------------------
Checks for all operators.

View File

@ -0,0 +1,35 @@
#define DEBUG
#if DEBUG
#endif
#elif
#else
#endregion
#error
#line
#pragma
#region
#undef
#warning
----------------------------------------------------
[
["preprocessor", ["#", ["directive", "define"], " DEBUG"]],
["preprocessor", ["#", ["directive", "if"], " DEBUG"]],
["preprocessor", ["#", ["directive", "endif"]]],
["preprocessor", ["#", ["directive", "elif"]]],
["preprocessor", ["#", ["directive", "else"]]],
["preprocessor", ["#", ["directive", "endregion"]]],
["preprocessor", ["#", ["directive", "error"]]],
["preprocessor", ["#", ["directive", "line"]]],
["preprocessor", ["#", ["directive", "pragma"]]],
["preprocessor", ["#", ["directive", "region"]]],
["preprocessor", ["#", ["directive", "undef"]]],
["preprocessor", ["#", ["directive", "warning"]]]
]
----------------------------------------------------
Checks for preprocessor directives.

View File

@ -0,0 +1,27 @@
. , ; : ::
? ?.
[ ] { } ( )
----------------------------------------------------
[
["punctuation", "."],
["punctuation", ","],
["punctuation", ";"],
["punctuation", ":"],
["punctuation", "::"],
["punctuation", "?"],
["punctuation", "?."],
["punctuation", "["],
["punctuation", "]"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "("],
["punctuation", ")"]
]
----------------------------------------------------
Checks for punctuation.

View File

@ -0,0 +1,32 @@
""
"fo\"o"
@""
@"foo"
@"fo""o"
@"foo
bar"
'a'
'\''
'\\'
----------------------------------------------------
[
["string", "\"\""],
["string", "\"fo\\\"o\""],
["string", "@\"\""],
["string", "@\"foo\""],
["string", "@\"fo\"\"o\""],
["string", "@\"foo\r\nbar\""],
["string", "'a'"],
["string", "'\\''"],
["string", "'\\\\'"]
]
----------------------------------------------------
Checks for normal and verbatim strings.
Also checks for single quoted characters.