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,19 @@
//
// Foobar
#!/usr/bin/env io
/* multiline
comment
*/
----------------------------------------------------
[
["comment", "//"],
["comment", "// Foobar"],
["comment", "#!/usr/bin/env io"],
["comment", "/* multiline\ncomment\n*/"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,23 @@
123
123.456
0.456
123e-4
123e4
123.456e-7
123.456e2
------------------------------
[
["number", "123"],
["number", "123.456"],
["number", "0.456"],
["number", "123e-4"],
["number", "123e4"],
["number", "123.456e-7"],
["number", "123.456e2"]
]
------------------------------
Check numbers.

View File

@ -0,0 +1,26 @@
::= := =
== != >= <=
&& and || or not
..
+ - / * **
%= &= *= += -= /= <<= >>= ^= |=
? ?? @ @@
return
-------------------------------------------------------------------------------------------------------------------------
[
["operator", "::=" ] , ["operator", ":=" ] , ["operator", "=" ] ,
["operator", "==" ] , ["operator", "!=" ] , ["operator", ">=" ] , ["operator", "<=" ] ,
["operator", "&&" ] , ["operator", "and" ] , ["operator", "||" ] , ["operator", "or" ] , ["operator", "not" ] ,
["operator", ".." ] ,
["operator", "+" ] , ["operator", "-" ] , ["operator", "/" ] , ["operator", "*" ] , ["operator", "**" ] ,
["operator", "%=" ] , ["operator", "&=" ] , ["operator", "*=" ] , ["operator", "+=" ] , ["operator", "-=" ] ,
["operator", "/=" ] , ["operator", "<<=" ] , ["operator", ">>=" ] , ["operator", "^=" ] , ["operator", "|=" ] ,
["operator", "?" ] , ["operator", "??" ] , ["operator", "@" ] , ["operator", "@@" ] ,
["operator", "return" ]
]
-------------------------------------------------------------------------------------------------------------------------
Check operators.

View File

@ -0,0 +1,18 @@
""
""""""
"this is a \"test\".\nThis is only a test."
"""this is a "test".
This is only a test."""
-------------------------------------------------------------------------
[
["string", "\"\""],
["triple-quoted-string", "\"\"\"\"\"\""],
["string", "\"this is a \\\"test\\\".\\nThis is only a test.\""],
["triple-quoted-string", "\"\"\"this is a \"test\".\nThis is only a test.\"\"\""]
]
-------------------------------------------------------------------------
Check strings.