Skip to content

Commit

Permalink
support Bazel languages
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jun 28, 2022
1 parent 3108a11 commit 7b004a4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-ruby", rev = "dfff6
name = "bash"
scope = "source.bash"
injection-regex = "bash"
file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild"]
file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild", "bazelrc"]
shebangs = ["sh", "bash", "dash"]
roots = []
comment-token = "#"
Expand Down Expand Up @@ -1478,3 +1478,13 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "clojure"
source = { git = "https://github.com/sogaiu/tree-sitter-clojure", rev = "e57c569ae332ca365da623712ae1f50f84daeae2" }

[[language]]
name = "starlark"
scope = "source.starlark"
injection-regex = "(starlark|bzl|bazel)"
file-types = ["bzl", "bazel", "BUILD"]
roots = []
comment-token = "#"
indent = { tab-width = 4, unit = " " }
grammar = "python"
1 change: 1 addition & 0 deletions runtime/queries/starlark/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: python
2 changes: 2 additions & 0 deletions runtime/queries/starlark/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
1 change: 1 addition & 0 deletions runtime/queries/starlark/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: python

0 comments on commit 7b004a4

Please sign in to comment.