-
Notifications
You must be signed in to change notification settings - Fork 120
Add tree-sitter PHP grammar #303
base: master
Are you sure you want to change the base?
Conversation
@maxbrunsfeld Will this PR be merged ? |
It will, but there is still a bit of work to do and it's not on my immediate roadmap for the next month. If anyone is interested in picking this up, I would probably have time for assistance and code review. I added a task list to the body. |
Seems like tree-sitter is going to be enabled by default with the next release (after 1.31) of Atom. Maybe it's time to get this PR rolling. I may be able to contribute a little but how would one be able to see the effect their changes are making locally? |
b0b57ab
to
41ff847
Compare
Also remove scope for variable and for syntax-error
Fixes scopes of anonymous nodes Scopes constant.language.php for language constants Scope the class of catch expressions as a class name Change object_creation_expression to scope as entity.name.type.class
Tree sitter has version |
Is anyone available to offer guidance on this? I don't have any previous XP w/ grammars and such, but I have been tinkering w/ this a little bit and I would love to help move it along. Right now I have a branch that:
This leaves me w/ a few questions:
I know that these are just minor, pretty easy updates, but I'd love to be able to bump this PR forward a little bit. Having someone to bounce questions off of as I work on it would be great, if anyone is available. /cc @sadick254 |
I'm maintaining textmate grammar, but I can help with some questions. |
Yup, Thank you! I'll be tinkering w/ this on and off for a while. Thanks for your quick reply! |
Most of the scopes appear to be pretty straightforward and easy to set up w/i the
Trees sitter is parsing this as
(Note that the My read here is that I would need to select everything from As currently implemented, this TS grammar just applies Aside from these, getting the more specific syntax scopes in place seems to be pretty straightforward; just time consuming. I'll keep chipping away at it, but having some guidance on these two scopes would be helpful. Thank you! |
With limited confidence With rest maybe @maxbrunsfeld could help? |
This adds an alternative PHP grammar that uses tree-sitter-php for parsing instead of first-mate.
Depends on atom/atom#16299
support.function
?entity.other.implemented-interface
in core syntax themes?/cc @joshvera