Skip to content

Commit d2614d5

Browse files
jakobnissenCiaranOMara
authored andcommitted
Fix parser ambiguity
1 parent 3e56ded commit d2614d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reader.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ const record_machine, body_machine = (function ()
189189
opt = Automa.RegExp.opt
190190

191191
feature = let
192-
seqid = re"[a-zA-Z0-9.:^*$@!+_?\-|%]*"
192+
seqid = re"[a-zA-Z0-9.:^*$@!+_?\-|%]+"
193193
seqid.actions[:enter] = [:pos]
194194
seqid.actions[:exit] = [:feature_seqid]
195195

196-
source = re"[ -~]*"
196+
source = re"[ -~]+"
197197
source.actions[:enter] = [:pos]
198198
source.actions[:exit] = [:feature_source]
199199

200-
type_ = re"[ -~]*"
200+
type_ = re"[ -~]+"
201201
type_.actions[:enter] = [:pos]
202202
type_.actions[:exit] = [:feature_type_]
203203

0 commit comments

Comments
 (0)