luaparse-rs 0.1.1

Multi-version Lua parser supporting Lua 5.1-5.4 and Luau
Documentation
1
2
3
4
5
6
7
8
use luaparse_rs::{Lua51};

#[test]
fn test_lex_dash_bracket() {
    let input = "--[not a block\nlocal x = 1";
    let result = luaparse_rs::lexer::lex(input);
    assert!(result.is_ok(), "Lexer should handle --[: {:?}", result.err());
}