* Add Macaulay2 lexer * Update symbols for Macaulay2 1.18 * Match whitespace characters in Macaulay2 lexer * Add states for strings/comments in Macaulay2 lexer * Update Macaulay2 lexer tests for string/comment edge cases * Improve comment and string matching in Macaulay2 lexer Instead of matching each character one at a time, we match all characters without special meaning together. * Update Macaulay2 test output * Update Macaulay2 lexer symbols for 1.19 release * Move "auto-generated" comment in Macaulay2 lexer down a few lines * Fix underline length in Macaulay2 lexer docstring * Add url field for Macaulay2 lexer * Bump copyright year for Macaulay2 lexer
23 lines
409 B
Text
23 lines
409 B
Text
"this is a string"
|
|
|
|
"this is how we \"escape quotes\" in a string"
|
|
|
|
"this is how " | "we concatenate strings"
|
|
|
|
///this is also
|
|
a string///
|
|
|
|
///to escape forward slashes (/) in a string, we
|
|
use an even number in the middle //// or an odd number
|
|
(at least 3) at the end///
|
|
|
|
-- this is a comment
|
|
|
|
-* this is
|
|
also a comment *-
|
|
|
|
-* two comments *- 2 + 2 -* on the same line *-
|
|
|
|
for i from 0 to 10 do print QQ
|
|
|
|
end
|