Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add highlighting for codeowners files
Browse files Browse the repository at this point in the history
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.

Resolves: #8091
rossmanch committed Sep 9, 2023
1 parent 01dbcd9 commit e43dfda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
@@ -1380,7 +1380,8 @@ source = { git = "https://github.com/mtoohey31/tree-sitter-gitattributes", rev =
name = "git-ignore"
scope = "source.gitignore"
roots = []
file-types = [".gitignore", ".gitignore_global", ".ignore", "prettierignore", ".eslintignore", ".npmignore"]
file-types = [".gitignore", ".gitignore_global", ".ignore", "prettierignore",
".eslintignore", ".npmignore", "CODEOWNERS"]
injection-regex = "git-ignore"
comment-token = "#"
grammar = "gitignore"

0 comments on commit e43dfda

Please sign in to comment.