fstirlitz / luaparse

A Lua parser written in JavaScript
https://fstirlitz.github.io/luaparse/
MIT License
459 stars 91 forks source link

Parse error syntax does not raise an error #80

Closed liwangqian closed 4 years ago

liwangqian commented 4 years ago

When parse the expression like:

local xxx = true
if ~xxx then
   print("xxxx")
end

The parser does not report an syntax error.

fstirlitz commented 4 years ago

Can you reproduce with latest git master?

fstirlitz commented 4 years ago

The report provides very little context, but I believe the actual problem was fixed in af602e14ef887f735f64663fd722c6a44729c72c. Closing.