1 Commits

Author SHA1 Message Date
8d7faf2098 0.3.0 2024-08-13 11:06:06 -03:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: tartrazine
version: 0.2.0
version: 0.3.0
authors:
- Roberto Alsina <roberto.alsina@gmail.com>

View File

@@ -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.size == 0
return false, pos, [] of Token if match.nil? || match.end == 0
# Log.trace { "#{match}, #{pattern.inspect}, #{text}, #{pos}" }
tokens = [] of Token
# Emit the tokens

View File

@@ -11,7 +11,7 @@ require "xml"
module Tartrazine
extend self
VERSION = "0.2.0"
VERSION = {{ `shards version #{__DIR__}`.chomp.stringify }}
Log = ::Log.for("tartrazine")
end