Imported test cases from pygments

This commit is contained in:
2024-08-03 07:36:47 -03:00
parent c9df4be879
commit 99e1e2b0cb
692 changed files with 37403 additions and 0 deletions

View File

@ -85,9 +85,11 @@ module Tartrazine
raise Exception.new "Can't have a token without a match" if match.nil?
[Token.new(type: xml["type"], value: match[0])]
when "push"
puts "Pushing state #{xml["state"]}"
lexer.state_stack << xml["state"]
[] of Token
when "pop"
puts "Popping #{xml["depth"]} states"
lexer.state_stack.pop(xml["depth"].to_i)
[] of Token
else