tartrazine/spec/unsupported_lexers/peg/test_basic.txt

18 lines
405 B
Plaintext

---input---
rule<-("terminal"/nonterminal/[cls])*
---tokens---
'rule' Name.Class
'<-' Operator
'(' Punctuation
'"terminal"' Literal.String.Double
'/' Operator
'nonterminal' Name.Class
'/' Operator
'[' Punctuation
'cls' Literal.String
']' Punctuation
')' Punctuation
'*' Operator
'\n' Text.Whitespace