Allow token definition with no pattern
This commit is contained in:
parent
39f164a7db
commit
cf8718b69c
@ -21,7 +21,7 @@ module Imbecile
|
||||
@modulename = $1
|
||||
elsif line =~ /^\s*class\s+(\S+)$/
|
||||
@classname = $1
|
||||
elsif line =~ /^\s*token\s+(\S+)\s+(.*)$/
|
||||
elsif line =~ /^\s*token\s+(\S+)(?:\s+(.*))?$/
|
||||
name, expr = $1, $2
|
||||
if expr == ""
|
||||
expr = name
|
||||
|
Loading…
x
Reference in New Issue
Block a user