Skip to content

Commit ed22aaa

Browse files
Leeftpokey
andauthored
Include tree-sitter-perl to add Perl support (not yet tested) (#61)
* Include tree-sitter-perl to add Perl support (not yet tested) * Fixes --------- Co-authored-by: Pokey Rule <[email protected]>
1 parent 304cfeb commit ed22aaa

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 kotlin latex markdown 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 kotlin latex markdown perl php python query ruby rust scala scss sparql talon tsx typescript yaml
44

55

66
# NOTE: Update the version number in the filepath for web-tree-sitter in package.json,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"onLanguage:kotlin",
4242
"onLanguage:latex",
4343
"onLanguage:markdown",
44+
"onLanguage:perl",
4445
"onLanguage:php",
4546
"onLanguage:python",
4647
"onLanguage:ruby",
@@ -103,6 +104,7 @@
103104
"tree-sitter-kotlin": "github:fwcd/tree-sitter-kotlin#a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569",
104105
"tree-sitter-latex": "github:latex-lsp/tree-sitter-latex#1666e9780de42a31b1376d32fbe8332e8dd5850f",
105106
"tree-sitter-markdown": "github:MDeiml/tree-sitter-markdown#272e080bca0efd19a06a7f4252d746417224959e",
107+
"tree-sitter-perl": "github:ganezdragon/tree-sitter-perl#c43bae0090cfcfc62d9904312599ded1b645a66d",
106108
"tree-sitter-php": "github:tree-sitter/tree-sitter-php#0ce134234214427b6aeb2735e93a307881c6cd6f",
107109
"tree-sitter-python": "github:tree-sitter/tree-sitter-python#de221eccf9a221f5b85474a553474a69b4b5784d",
108110
"tree-sitter-ruby": "github:tree-sitter/tree-sitter-ruby#1ebfdb288842dae5a9233e2509a135949023dd82",

src/extension.ts

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

yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,6 +2510,12 @@ tree-sitter-json@^0.19.0:
25102510
nan "^2.14.0"
25112511
node-pre-gyp "^0.17.0"
25122512

2513+
"tree-sitter-perl@github:ganezdragon/tree-sitter-perl#c43bae0090cfcfc62d9904312599ded1b645a66d":
2514+
version "0.3.0"
2515+
resolved "https://codeload.github.com/ganezdragon/tree-sitter-perl/tar.gz/c43bae0090cfcfc62d9904312599ded1b645a66d"
2516+
dependencies:
2517+
nan "^2.14.1"
2518+
25132519
"tree-sitter-php@github:tree-sitter/tree-sitter-php#0ce134234214427b6aeb2735e93a307881c6cd6f":
25142520
version "0.19.0"
25152521
resolved "https://codeload.github.com/tree-sitter/tree-sitter-php/tar.gz/0ce134234214427b6aeb2735e93a307881c6cd6f"

0 commit comments

Comments
 (0)