This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/peg/test_modified_strings.txt
2022-12-04 16:06:01 +01:00

21 lines
603 B
Text

# see for example:
# - http://textx.github.io/Arpeggio/
# - https://nim-lang.org/docs/pegs.html
# - https://github.com/erikrose/parsimonious
# can't handle parsimonious-style regex while ~ is a cut operator
---input---
~"regex" i"insensitive" "multimod"ilx ("not modified")
---tokens---
'~' Operator
'"regex"' Literal.String.Double
' ' Text
'i"insensitive"' Literal.String.Double
' ' Text
'"multimod"ilx' Literal.String.Double
' ' Text
'(' Punctuation
'"not modified"' Literal.String.Double
')' Punctuation
'\n' Text.Whitespace