Skip to content

fix: invalid value for grammars.0.name#7

Open
jfly wants to merge 1 commit intotree-sitter:mainfrom
jfly:fix-name
Open

fix: invalid value for grammars.0.name#7
jfly wants to merge 1 commit intotree-sitter:mainfrom
jfly:fix-name

Conversation

@jfly
Copy link

@jfly jfly commented Feb 9, 2026

name is not allowed to contain -'s, see
https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17.

Alternatively, would it be better to relax the regex upstream?

jfly added a commit to jfly/tree-sitter-embedded-template that referenced this pull request Feb 9, 2026
`name` is not allowed to contain `-`'s, see
https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17.

Alternatively, would it be better to relax the regex upstream? This
isn't the only repo with this issue, see
<tree-sitter/tree-sitter-ql-dbscheme#7>.
`name` is not allowed to contain `-`'s, see
<https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17>.

Alternatively, would it be better to relax the regex upstream?
jfly added a commit to jfly/tree-sitter-embedded-template that referenced this pull request Feb 9, 2026
`name` is not allowed to contain `-`'s, see
https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17.

Alternatively, would it be better to relax the regex upstream? This
isn't the only repo with this issue, see
<tree-sitter/tree-sitter-ql-dbscheme#7>.
jfly added a commit to jfly/tree-sitter-c-sharp that referenced this pull request Feb 9, 2026
`name` is not allowed to contain `-`'s, see
<https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17>.

Alternatively, would it be better to relax the regex upstream? This is
not the only repo with this issue, see
<tree-sitter/tree-sitter-ql-dbscheme#7>.
jfly added a commit to jfly/tree-sitter-janet-simple that referenced this pull request Feb 9, 2026
`name` is not allowed to contain `-`'s, see
<https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17>.

Alternatively, would it be better to relax the regex upstream? This is
not the only repo with this issue, see
<tree-sitter/tree-sitter-ql-dbscheme#7>.
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
Copy link
Author

jfly commented Feb 10, 2026

Update: - is now allowed, but is discouraged. Please advise what you'd like!

jfly added a commit to jfly/tree-sitter-janet-simple that referenced this pull request Feb 10, 2026
`name` is not allowed to contain `-`'s, see
<https://github.com/tree-sitter/tree-sitter/blob/v0.26.5/docs/src/assets/schemas/config.schema.json#L13-L17>.

Alternatively, would it be better to relax the regex upstream? This is
not the only repo with this issue, see
<tree-sitter/tree-sitter-ql-dbscheme#7>.
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.

1 participant