Skip to content

Add .gitattributes to mark grammars as generated - #1668

Closed
kidonng wants to merge 1 commit into
colbymchenry:mainfrom
kidonng:patch-2
Closed

kidonng wants to merge 1 commit into
colbymchenry:mainfrom
kidonng:patch-2

Conversation

@kidonng

@kidonng kidonng commented Sep 1, 2026

Copy link
Copy Markdown

The project is currently incorrectly recognized as C project on GitHub. This PR fixes that by marking generated tree sitter grammars as generated. See GitHub docs: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

Screenshot 2026-09-01 at 11 48 12 PM

@colbymchenry

Copy link
Copy Markdown
Owner

Thanks for raising the language-statistics problem early on, @kidonng. It turned out that an attributes pattern naming a directory doesn't reach the files inside it, so the pattern needed a trailing /**. With that, #3045 now marks the vendored grammars as vendored, and credits you. Closing this in favor of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants