Skip to content

chore: add schema link to tree-sitter.json#408

Open
jfly wants to merge 1 commit intotree-sitter:masterfrom
jfly:fix-tree-sitter-json
Open

chore: add schema link to tree-sitter.json#408
jfly wants to merge 1 commit intotree-sitter:masterfrom
jfly:fix-tree-sitter-json

Conversation

@jfly
Copy link

@jfly jfly commented Feb 9, 2026

No description provided.

jfly added a commit to jfly/tree-sitter that referenced this pull request Feb 9, 2026
A number of grammars in the wild have this character in their name:

- sogaiu/tree-sitter-janet-simple#7
- tree-sitter/tree-sitter-c-sharp#408
- tree-sitter/tree-sitter-embedded-template#45
- tree-sitter/tree-sitter-ql-dbscheme#7

I read through tree-sitter#3700 and
tree-sitter#3637, and it doesn't
look like there was much discussion about this name regex, so hopefully
this is an acceptable change?
@jfly
Copy link
Author

jfly commented Feb 9, 2026

Asked upstream: tree-sitter/tree-sitter#5315

WillLillis pushed a commit to tree-sitter/tree-sitter that referenced this pull request Feb 10, 2026
A number of grammars in the wild have this character in their name:

- sogaiu/tree-sitter-janet-simple#7
- tree-sitter/tree-sitter-c-sharp#408
- tree-sitter/tree-sitter-embedded-template#45
- tree-sitter/tree-sitter-ql-dbscheme#7

I read through #3700 and
#3637, and it doesn't
look like there was much discussion about this name regex, so hopefully
this is an acceptable change?
github-actions bot pushed a commit to tree-sitter/tree-sitter that referenced this pull request Feb 10, 2026
A number of grammars in the wild have this character in their name:

- sogaiu/tree-sitter-janet-simple#7
- tree-sitter/tree-sitter-c-sharp#408
- tree-sitter/tree-sitter-embedded-template#45
- tree-sitter/tree-sitter-ql-dbscheme#7

I read through #3700 and
#3637, and it doesn't
look like there was much discussion about this name regex, so hopefully
this is an acceptable change?

(cherry picked from commit 7d3c321)
WillLillis pushed a commit to tree-sitter/tree-sitter that referenced this pull request Feb 10, 2026
A number of grammars in the wild have this character in their name:

- sogaiu/tree-sitter-janet-simple#7
- tree-sitter/tree-sitter-c-sharp#408
- tree-sitter/tree-sitter-embedded-template#45
- tree-sitter/tree-sitter-ql-dbscheme#7

I read through #3700 and
#3637, and it doesn't
look like there was much discussion about this name regex, so hopefully
this is an acceptable change?

(cherry picked from commit 7d3c321)
@jfly jfly force-pushed the fix-tree-sitter-json branch from b2260d9 to e1d315b Compare February 10, 2026 03:13
@jfly jfly changed the title fix: tree-sitter.json now obeys upstream schema chore: add schema link to tree-sitter.json Feb 10, 2026
@jfly
Copy link
Author

jfly commented Feb 10, 2026

Upstream now allows for - characters in name, so this PR just adds the schema link so other tooling understands the rules of this file.

Edit: actually, - is discouraged. See discussion here: tree-sitter/tree-sitter#5321. Please advise what you'd like!

@tris203
Copy link
Collaborator

tris203 commented Feb 11, 2026

I think the best path would be to merge this as is to ensure we conform going forward.

Re the naming, i see that it should match the name in grammar.js, in this case c_sharp, although im not sure if changing this would break consumers.
So probably best to open an issue for that so that we can bike shed 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