on master help sign in
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.

commit0d986fce76f2089322d07b4b37b7914c826713cc authorRoss Manchester <33374742+rossmanch@users.noreply.github.com> dateSun 10 Sep 2023, 19:53 (3 years ago) parentb959162
1 file changed+1−1
languages.toml+1−1
languages.toml+1−1
@@ -1380,7 +1380,7 @@ source = { git = "https://github.com/mtoohey31/tree-sitter-gitattributes", rev =
13801380name = "git-ignore"
13811381scope = "source.gitignore"
13821382roots = []
1383−file-types = [".gitignore", ".gitignore_global"]
1383+file-types = [".gitignore", ".gitignore_global", ".ignore", ".prettierignore", ".eslintignore", ".npmignore", "CODEOWNERS"]
13841384injection-regex = "git-ignore"
13851385comment-token = "#"
13861386grammar = "gitignore"