on master help sign in
Modify env language to extend bash (#5720)

Additionally, add `.envrc` to the `env`-supported file types.

commit447909e4d0b865a1177babe2214536979fdbeb7c authorEric Crosson <EricCrosson@users.noreply.github.com> dateMon 30 Jan 2023, 08:56 (4 years ago) parent8b25f44
2 files changed+3−24
languages.toml+2−5 runtime/queries/env/highlights.scm+1−19
languages.toml+2−5
@@ -2007,15 +2007,12 @@ source = { git = "https://github.com/hh9527/tree-sitter-wit", rev = "c917790ab9a
20072007[[language]]
20082008name = "env"
20092009scope = "source.env"
2010−file-types = [".env", ".env.local", ".env.development", ".env.production"]
2010+file-types = [".env", ".env.local", ".env.development", ".env.production", ".envrc"]
20112011injection-regex = "env"
20122012comment-token = "#"
20132013indent = { tab-width = 4, unit = "\t" }
20142014roots = []
2015−
2016−[[grammar]]
2017−name = "env"
2018−source = { git = "https://github.com/seshotake/tree-sitter-env", rev = "e6c6bb1e7b51d481cba463fe949f083cf22d81f7" }
2015+grammar = "bash"
20192016
20202017[[language]]
20212018name = "ini"
runtime/queries/env/highlights.scm+1−19
@@ -1,19 +1 @@
1−(env_variable (quoted_string)) @string
2−(env_variable (unquoted_string)) @string
3−
4−(env_key) @keyword
5−
6−((variable) @keyword
7− (#match? @keyword "^([A-Z][A-Z_0-9]*)$"))
8−
9−[
10− "{"
11− "}"
12−] @punctuation.bracket
13−
14−[
15− "$"
16− "="
17−] @operator
18−
19−(comment) @comment
1+; inherits: bash