mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-09-17 18:58:12 +00:00
Compare commits
1 Commits
v0.3.0
...
56e49328fb
Author | SHA1 | Date | |
---|---|---|---|
56e49328fb |
@@ -19,7 +19,7 @@ module Tartrazine
|
||||
match = pattern.match(text, pos)
|
||||
# We don't match if the match doesn't move the cursor
|
||||
# because that causes infinite loops
|
||||
return false, pos, [] of Token if match.nil? || match.end == 0
|
||||
return false, pos, [] of Token if match.nil? || match.size == 0
|
||||
# Log.trace { "#{match}, #{pattern.inspect}, #{text}, #{pos}" }
|
||||
tokens = [] of Token
|
||||
# Emit the tokens
|
||||
|
Reference in New Issue
Block a user