mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
Fix comment
This commit is contained in:
parent
1f01146b1f
commit
788577b226
@ -122,7 +122,7 @@ module Tartrazine
|
|||||||
new_lexer = lexer.copy
|
new_lexer = lexer.copy
|
||||||
new_lexer.tokenize(String.new(match[match_group].value), secondary: true)
|
new_lexer.tokenize(String.new(match[match_group].value), secondary: true)
|
||||||
when ActionType::Combined
|
when ActionType::Combined
|
||||||
# Combine two states into one anonymous state
|
# Combine two or more states into one anonymous state
|
||||||
new_state = @states.map { |name|
|
new_state = @states.map { |name|
|
||||||
lexer.states[name]
|
lexer.states[name]
|
||||||
}.reduce { |state1, state2|
|
}.reduce { |state1, state2|
|
||||||
|
Loading…
Reference in New Issue
Block a user