Skip to content

Commit a38b45f

Browse files
fix: fix lua testing
1 parent 8cad263 commit a38b45f

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

packages/lua/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6+
treeSitterPackage: '@tree-sitter-grammars/tree-sitter-lua',
67
extensions: ['lua'],
78
languageSymbol: 'tree_sitter_lua',
89
expandoChar: '$',

packages/lua/nursery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const languageRegistration = require('./index')
55
setup({
66
dirname: __dirname,
77
name: 'lua',
8-
treeSitterPackage: 'tree-sitter-lua',
8+
treeSitterPackage: '@tree-sitter-grammars/tree-sitter-lua',
99
languageRegistration,
1010
testRunner: parse => {
1111
const sg = parse('print("Hello World")')

packages/lua/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"devDependencies": {
3939
"@ast-grep/nursery": "0.0.3",
4040
"tree-sitter-cli": "0.24.6",
41-
"tree-sitter-lua": "2.1.3"
41+
"@tree-sitter-grammars/tree-sitter-lua": "0.2.0"
4242
},
4343
"publishConfig": {
4444
"access": "public",

pnpm-lock.yaml

Lines changed: 18 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)