aboutsummaryrefslogtreecommitdiff
path: root/book/src/guides
diff options
context:
space:
mode:
authorath32021-11-08 15:19:44 +0000
committerGitHub2021-11-08 15:19:44 +0000
commit77dbbc73f9c9b6599bc39b18625285685fe2e4b1 (patch)
treeaddc76d4c1ca00d108c689da3a114609bab38e1e /book/src/guides
parent29e684941389f949491efe4d9807a0edd1facee3 (diff)
Detect filetype from shebang line (#1001)
Diffstat (limited to 'book/src/guides')
-rw-r--r--book/src/guides/adding_languages.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/book/src/guides/adding_languages.md b/book/src/guides/adding_languages.md
index c606f8fc..446eb479 100644
--- a/book/src/guides/adding_languages.md
+++ b/book/src/guides/adding_languages.md
@@ -33,10 +33,11 @@ These are the available keys and descriptions for the file.
| scope | A string like `source.js` that identifies the language. Currently, we strive to match the scope names used by popular TextMate grammars and by the Linguist library. Usually `source.<name>` or `text.<name>` in case of markup languages |
| injection-regex | regex pattern that will be tested against a language name in order to determine whether this language should be used for a potential [language injection][treesitter-language-injection] site. |
| file-types | The filetypes of the language, for example `["yml", "yaml"]` |
+| shebangs | The interpreters from the shebang line, for example `["sh", "bash"]` |
| roots | A set of marker files to look for when trying to find the workspace root. For example `Cargo.lock`, `yarn.lock` |
| auto-format | Whether to autoformat this language when saving |
| comment-token | The token to use as a comment-token |
-| indent | The indent to use. Has sub keys `tab-width` and `unit` |
+| indent | The indent to use. Has sub keys `tab-width` and `unit` |
| config | Language server configuration |
## Queries