update luaparse

pull/11/head
teoxoy 2 years ago
parent 210fecb11e
commit e79971fa30

@ -31,11 +31,11 @@
"lint:fix": "eslint . --ignore-path .gitignore --ext .ts --fix" "lint:fix": "eslint . --ignore-path .gitignore --ext .ts --fix"
}, },
"dependencies": { "dependencies": {
"luaparse": "^0.2.1", "luaparse": "^0.3.1",
"printj": "^1.2.2" "printj": "^1.2.2"
}, },
"devDependencies": { "devDependencies": {
"@types/luaparse": "^0.2.6", "@types/luaparse": "^0.2.9",
"@types/node": "^12.12.11", "@types/node": "^12.12.11",
"@typescript-eslint/eslint-plugin": "^2.8.0", "@typescript-eslint/eslint-plugin": "^2.8.0",
"@typescript-eslint/parser": "^2.8.0", "@typescript-eslint/parser": "^2.8.0",

@ -742,7 +742,8 @@ const parse = (data: string): string => {
const ast = luaparse.parse(data.replace(/^#.*/, ''), { const ast = luaparse.parse(data.replace(/^#.*/, ''), {
scope: false, scope: false,
comments: false, comments: false,
luaVersion: '5.3' luaVersion: '5.3',
encodingMode: 'x-user-defined'
}) })
checkGoto(ast) checkGoto(ast)
setExtraInfo(ast) setExtraInfo(ast)

Loading…
Cancel
Save