aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Manchester2023-09-10 18:53:15 +0000
committerGitHub2023-09-10 18:53:15 +0000
commit0d986fce76f2089322d07b4b37b7914c826713cc (patch)
tree5ae398b24d80fe58f9bb1b5d9db41ebb058c8e9a
parentb959162ceb41d891c8b5fad6145ca5d1a4964a54 (diff)
chore: add additional ignore file highlights (#8220)
* chore: add additional ignore file highlights Various files use the same syntax highlighting as `.gitignore` and similarly tell different tools what files/folders to ignore. Update the languages file so that other ignore type files use the same highlighting as gitignore. The files added are: - `.ignore` - `.prettierignore` - `.eslintignore` - `.npmignore` * chore: add highlighting for codeowners files Add `CODEOWNERS` as an additional file type for `git-ignore` in the language file. `CODEOWNERS`'s grammar is close enough to that of `.gitignore`, this can be used to avoid making a new grammar specifically for `CODEOWNERS` files.
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index b23cb448..d9cf7ef2 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1380,7 +1380,7 @@ source = { git = "https://github.com/mtoohey31/tree-sitter-gitattributes", rev =
name = "git-ignore"
scope = "source.gitignore"
roots = []
-file-types = [".gitignore", ".gitignore_global"]
+file-types = [".gitignore", ".gitignore_global", ".ignore", ".prettierignore", ".eslintignore", ".npmignore", "CODEOWNERS"]
injection-regex = "git-ignore"
comment-token = "#"
grammar = "gitignore"