use prism-tomorrow.css
This commit is contained in:
@ -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
|
@ -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.
|
Reference in New Issue
Block a user