lua-users home
lua-l archive

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


> gg = re.compile [[
> 	Chunk      <- ( <Word> <Space> )+ -> {}
> 	Word       <- { [a-d]+ }
> 	Space      <- { ( " " / "\n" )* }
> ]]

The escape sequence \n is not interpreted inside [[...]] strings. You
should use the predefined pattern %nl instead.

-- Roberto