lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Dear all,

It seems that a string capture within a function capture breaks the latter.


local  re=  require  "re"
local str= 'abaababbb'
local  captured
local  function  func(s)  captured=  send
local  g	=  re.compile("( 'b' / ( 'a' -> 'A' ) )* -> func",  {func=  func})

print captured --> prints "A" but "AbAAbAbbb" expected

Is this a bug or a feature?

Alexander Mashin