tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

Allow GenericType to accept QualifiedType #92

Closed kawaemon closed 2 years ago

kawaemon commented 2 years ago

Current parser does not accept this code since GenericType does not accept QualifiedType:

func g2(a foo.bar[int]) {}

This PR fixes this behaviour.

Checklist:

aryx commented 2 years ago

@dcreager @maxbrunsfeld something changed recently regarding CI? There's no CI check jobs running anymore ...

kawaemon commented 2 years ago

@aryx ~~Looks like current CI doesn't run against pull requests. This file is written about 2 years ago, so this is not recent change. It's not running on other PRs as well.~~ Never mind, it was running until this april. From this May it stopped to run on PRs. It is weird indeed. Maybe GitHub changed the event specs?

kawaemon commented 2 years ago

I think adding "pull_request" event here will fix this problem anyway. https://github.com/tree-sitter/tree-sitter-go/blob/13418148805c8cb50abbdfae779a59bde8fec901/.github/workflows/ci.yml#L2-L5

aryx commented 2 years ago

@dcreager @maxbrunsfeld any idea why CI does not kick in anymore for those PRs? This seriously limit our ability to merge external PRs.

aryx commented 2 years ago

I need this fix in semgrep, so I'll merge, but someone need to figure out why the CI checks do not run here anymore.