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,40 @@
message Point {
required int32 x = 1;
required int32 y = 2;
optional string label = 3;
}
----------------------------------------------------
[
["keyword", "message"],
" Point ",
["punctuation", "{"],
["builtin", "required"],
["primitive", "int32"],
" x ",
["operator", "="],
["number", "1"],
["punctuation", ";"],
["builtin", "required"],
["primitive", "int32"],
" y ",
["operator", "="],
["number", "2"],
["punctuation", ";"],
["builtin", "optional"],
["primitive", "string"],
" label ",
["operator", "="],
["number", "3"],
["punctuation", ";"],
["punctuation", "}"]
]
----------------------------------------------------
Check for keywords and builtins

View File

@ -0,0 +1,23 @@
""
''
"foo"
'foo'
"'foo'"
'"bar"'
" // comment "
----------------------------------------------------
[
["string", "\"\""],
["string", "''"],
["string", "\"foo\""],
["string", "'foo'"],
["string", "\"'foo'\""],
["string", "'\"bar\"'"],
["string", "\" // comment \""]
]
----------------------------------------------------
Checks for single-quoted and double-quoted strings.