Skip to content

Problem with new LPeg #5

@stuta

Description

@stuta

Hello.

I tried to test this with new lpeg in osx, but I get this error:

./lxsh/lexers/init.lua:38: bad argument #1 to 'B' (pattern may not have fixed length)

test code:

require 'lxsh'
-- Run the lexer on a string of source code.
for kind, text, lnum, cnum in lxsh.lexers.lua.gmatch 'i = i + 1\n-- example' do
print(string.format('%s: %q (%i:%i)', kind, text, lnum, cnum))
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions