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