boolangery / py-lua-parser

A Lua parser and AST builder written in Python.
MIT License
117 stars 36 forks source link

Comments in the end of Node will be skipped #28

Closed DoooReyn closed 1 year ago

DoooReyn commented 2 years ago

Examples:

Chunk Tail

local x = 1
-- comments will never be visited

or Function Tail

function ok()
  --print('comments will never be visited')
end

or Just Comments

-- comments will never be visited