Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hack to languages supported #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For generating .wasm files for parsers
# See https://www.npmjs.com/package/web-tree-sitter
LANGUAGES = agda bash c c-sharp clojure cpp css elm go haskell html java javascript json kotlin latex markdown php python query ruby rust scala scss sparql talon tsx typescript yaml
LANGUAGES = agda bash c c-sharp clojure cpp css elm go hack haskell html java javascript json kotlin latex markdown php python query ruby rust scala scss sparql talon tsx typescript yaml


# NOTE: Update the version number in the filepath for web-tree-sitter in package.json,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"onLanguage:csharp",
"onLanguage:elm",
"onLanguage:go",
"onLanguage:hack",
"onLanguage:haskell",
"onLanguage:html",
"onLanguage:java",
Expand Down Expand Up @@ -93,6 +94,7 @@
"tree-sitter-cpp": "^0.19.0",
"@elm-tooling/tree-sitter-elm": "github:elm-tooling/tree-sitter-elm#0aecfbf69f0c9bcdfada0f6f2c5398235c23949f",
"tree-sitter-go": "^0.19.0",
"tree-sitter-hack": "github:slackhq/tree-sitter-hack#b7bd6928532ada34dddb1dece4a158ab62c6e783",
"tree-sitter-haskell": "github:tree-sitter/tree-sitter-haskell#d6ccd2d9c40bdec29fee0027ef04fe5ff1ae4ceb",
"tree-sitter-html": "^0.19.0",
"tree-sitter-java": "github:tree-sitter/tree-sitter-java#ac14b4b1884102839455d32543ab6d53ae089ab7",
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const languages: {
css: { module: "tree-sitter-css" },
elm: { module: "tree-sitter-elm" },
go: { module: "tree-sitter-go" },
hack: { module: "tree-sitter-hack"},
haskell: { module: "tree-sitter-haskell" },
html: { module: "tree-sitter-html" },
java: { module: "tree-sitter-java" },
Expand Down
6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2341,6 +2341,12 @@ tree-sitter-go@^0.19.0:
dependencies:
nan "^2.14.0"

"tree-sitter-hack@github:slackhq/tree-sitter-hack#b7bd6928532ada34dddb1dece4a158ab62c6e783":
version "0.0.4"
resolved "https://codeload.github.com/slackhq/tree-sitter-hack/tar.gz/b7bd6928532ada34dddb1dece4a158ab62c6e783"
dependencies:
nan "^2.14.1"

"tree-sitter-haskell@github:tree-sitter/tree-sitter-haskell#d6ccd2d9c40bdec29fee0027ef04fe5ff1ae4ceb":
version "0.14.0"
resolved "https://codeload.github.com/tree-sitter/tree-sitter-haskell/tar.gz/d6ccd2d9c40bdec29fee0027ef04fe5ff1ae4ceb"
Expand Down