wenkokke / tree-sitter-talon

Tree Sitter parser for Talon files.
MIT License
8 stars 5 forks source link

separate key and sleep action name from opening parentheses #26

Closed AndreasArvidsson closed 1 year ago

AndreasArvidsson commented 1 year ago

For Cursorless we really need the name as a separate child/node so that we can extract it. This will work adequately until we have #13 and can unify all the implementations

wenkokke commented 1 year ago

This unfortunately allows spaces between key and the parenthesis, which makes the grammar ambiguous.

AndreasArvidsson commented 1 year ago

Oh. Do you have another suggestion on how we could solve this?

wenkokke commented 1 year ago

I've tried separating them in the past. They're stuck together because I couldn't get it to work. :(

AndreasArvidsson commented 1 year ago

Ok, I will solve this cursorless side with a post processing regex :)