Skip to content

Syntax highlighting and outline support for empirical fun definitions#196

Open
joeldrapper wants to merge 1 commit intozed-extensions:mainfrom
joeldrapper:push-rpuwplpkxxop
Open

Syntax highlighting and outline support for empirical fun definitions#196
joeldrapper wants to merge 1 commit intozed-extensions:mainfrom
joeldrapper:push-rpuwplpkxxop

Conversation

@joeldrapper
Copy link
Contributor

I realise this is a very unusual use of Ruby so completely understand if you’d rather not merge it here. I’ve written TreeSitter queries to support fun definitions from Empirical with syntax highlighting and outline support.

https://github.com/yippee-fun/empirical

These queries are so specific, it’s extremely unlikely that they would be triggered for anyone who isn’t using Empirical. You would need to have a call pattern like this in your code.

fun foo => void do
end

@vitallium
Copy link
Collaborator

@joeldrapper Sorry for being extremely late. Is this something that you'd still like to see in the Ruby extension? Since changes here are purely tree-sitter queries I think we can merge this PR. Thanks.

@joeldrapper
Copy link
Contributor Author

I would love to see this here as long as it doesn't negatively impact anyone else. I think the queries I write here are specific enough that is very unlikely to cause improper highlighting for people not using empirical.

@vitallium
Copy link
Collaborator

I would love to see this here as long as it doesn't negatively impact anyone else. I think the queries I write here are specific enough that is very unlikely to cause improper highlighting for people not using empirical.

Awesome. Could you please resolve merge conflicts to get this merged? :-)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants