on master help sign in
support Bazel languages (#2903)
64cf4c8Michael Davis
book/src/generated/lang-support.md+1
@@ -85,6 +85,7 @@
85| solidity | ✓ | | | `solc` |
85| solidity | ✓ | | | `solc` |
86| sql | ✓ | | | |
86| sql | ✓ | | | |
87| sshclientconfig | ✓ | | | |
87| sshclientconfig | ✓ | | | |
88+| starlark | ✓ | ✓ | | |
88| svelte | ✓ | | ✓ | `svelteserver` |
89| svelte | ✓ | | ✓ | `svelteserver` |
89| swift | ✓ | | | `sourcekit-lsp` |
90| swift | ✓ | | | `sourcekit-lsp` |
90| tablegen | ✓ | ✓ | ✓ | |
91| tablegen | ✓ | ✓ | ✓ | |
languages.toml+11−1
@@ -461,7 +461,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-ruby", rev = "dfff6
461name = "bash"
461name = "bash"
462scope = "source.bash"
462scope = "source.bash"
463injection-regex = "bash"
463injection-regex = "bash"
464−file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild"]
464+file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild", "bazelrc"]
465shebangs = ["sh", "bash", "dash"]
465shebangs = ["sh", "bash", "dash"]
466roots = []
466roots = []
467comment-token = "#"
467comment-token = "#"
@@ -1478,3 +1478,13 @@ indent = { tab-width = 2, unit = " " }
1478[[grammar]]
1478[[grammar]]
1479name = "clojure"
1479name = "clojure"
1480source = { git = "https://github.com/sogaiu/tree-sitter-clojure", rev = "e57c569ae332ca365da623712ae1f50f84daeae2" }
1480source = { git = "https://github.com/sogaiu/tree-sitter-clojure", rev = "e57c569ae332ca365da623712ae1f50f84daeae2" }
1481+
1482+[[language]]
1483+name = "starlark"
1484+scope = "source.starlark"
1485+injection-regex = "(starlark|bzl|bazel)"
1486+file-types = ["bzl", "bazel", "BUILD"]
1487+roots = []
1488+comment-token = "#"
1489+indent = { tab-width = 4, unit = " " }
1490+grammar = "python"
runtime/queries/starlark/highlights.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: python
runtime/queries/starlark/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/starlark/textobjects.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: python