Skip to content

Commit c7b2ca8

Browse files
fidgetingbitsfidgetingbitspokey
authored
Add tree-sitter-lua (#67)
* Add tree-sitter-lua * Switch tree-sitter-lua parser --------- Co-authored-by: fidgetingbits <[email protected]> Co-authored-by: Pokey Rule <[email protected]>
1 parent 61bb7e5 commit c7b2ca8

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# For generating .wasm files for parsers
22
# See https://www.npmjs.com/package/web-tree-sitter
3-
LANGUAGES = agda bash c c-sharp clojure cpp css elm elixir go haskell html java javascript json julia kotlin latex markdown nix perl php python query ruby rust scala scss sparql talon tsx typescript yaml
3+
LANGUAGES = agda bash c c-sharp clojure cpp css elm elixir go haskell html java javascript json julia kotlin latex lua markdown nix perl php python query ruby rust scala scss sparql talon tsx typescript yaml
44

55
# Build web-tree-sitter parsers for $(LANGUAGES)
66

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"onLanguage:julia",
4242
"onLanguage:kotlin",
4343
"onLanguage:latex",
44+
"onLanguage:lua",
4445
"onLanguage:markdown",
4546
"onLanguage:nix",
4647
"onLanguage:perl",
@@ -108,6 +109,7 @@
108109
"tree-sitter-julia": "github:tree-sitter/tree-sitter-julia#e2f449e2bcc95f1d07ceb62d67f986005f73a6be",
109110
"tree-sitter-kotlin": "github:fwcd/tree-sitter-kotlin#a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569",
110111
"tree-sitter-latex": "github:latex-lsp/tree-sitter-latex#1666e9780de42a31b1376d32fbe8332e8dd5850f",
112+
"tree-sitter-lua": "github:MunifTanjim/tree-sitter-lua#9668709211b2e683f27f414454a8b51bf0a6bda1",
111113
"tree-sitter-markdown": "github:MDeiml/tree-sitter-markdown#272e080bca0efd19a06a7f4252d746417224959e",
112114
"tree-sitter-nix": "github:nix-community/tree-sitter-nix#66e3e9ce9180ae08fc57372061006ef83f0abde7",
113115
"tree-sitter-perl": "github:ganezdragon/tree-sitter-perl#3d3a95ee6645d7bcd993e77b252ffd33fd297c8e",

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const languages: {
3131
julia: { module: "tree-sitter-julia" },
3232
kotlin: { module: "tree-sitter-kotlin" },
3333
latex: { module: "tree-sitter-latex" },
34+
lua: { module: "tree-sitter-lua" },
3435
markdown: { module: "tree-sitter-markdown" },
3536
nix: { module: "tree-sitter-nix" },
3637
perl: { module: "tree-sitter-perl" },

yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,6 +2507,12 @@ tree-sitter-json@^0.19.0:
25072507
dependencies:
25082508
nan "^2.15.0"
25092509

2510+
"tree-sitter-lua@github:MunifTanjim/tree-sitter-lua#9668709211b2e683f27f414454a8b51bf0a6bda1":
2511+
version "0.0.19"
2512+
resolved "https://codeload.github.com/MunifTanjim/tree-sitter-lua/tar.gz/9668709211b2e683f27f414454a8b51bf0a6bda1"
2513+
dependencies:
2514+
nan "^2.17.0"
2515+
25102516
"tree-sitter-markdown@github:MDeiml/tree-sitter-markdown#272e080bca0efd19a06a7f4252d746417224959e":
25112517
version "0.1.1"
25122518
resolved "https://codeload.github.com/MDeiml/tree-sitter-markdown/tar.gz/272e080bca0efd19a06a7f4252d746417224959e"

0 commit comments

Comments
 (0)