Skip to content

Commit

Permalink
update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
ul committed Aug 11, 2019
1 parent eac7331 commit e65acf8
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 16 deletions.
14 changes: 12 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,19 @@ fn main() {
] {
let mut build = cc::Build::new();

let tree_sitter: PathBuf = ["vendor", &format!("tree-sitter-{}", lang), "src"]
let tree_sitter: PathBuf = match *lang {
"typescript" => [
"vendor",
&format!("tree-sitter-{}", lang),
"typescript",
"src",
]
.iter()
.collect();
.collect(),
_ => ["vendor", &format!("tree-sitter-{}", lang), "src"]
.iter()
.collect(),
};

build
.include(&tree_sitter)
Expand Down
2 changes: 1 addition & 1 deletion vendor/tree-sitter-bash
2 changes: 1 addition & 1 deletion vendor/tree-sitter-c
2 changes: 1 addition & 1 deletion vendor/tree-sitter-cpp
2 changes: 1 addition & 1 deletion vendor/tree-sitter-css
2 changes: 1 addition & 1 deletion vendor/tree-sitter-go
2 changes: 1 addition & 1 deletion vendor/tree-sitter-html
2 changes: 1 addition & 1 deletion vendor/tree-sitter-python
2 changes: 1 addition & 1 deletion vendor/tree-sitter-ruby
2 changes: 1 addition & 1 deletion vendor/tree-sitter-rust
2 changes: 1 addition & 1 deletion vendor/tree-sitter-scala
Submodule tree-sitter-scala updated 1 files
+21 −0 LICENSE

0 comments on commit e65acf8

Please sign in to comment.