Dan Orzechowski
Dan Orzechowski
this looks like https://github.com/tree-sitter/tree-sitter-javascript/issues/200 , which would make sense as tree-sitter-typescript derives from tree-sitter-javascript and your snippet is also valid javascript. that issue has a status of closed/fixed, but if...
no, you're absolutely right. I was trying some other things but that path became more complex and less correct. your patch seems to work fine for me as well so...
ah, yes, that makes sense. I don't use code-folding outside of CSS-in-JS and so didn't think of this use case, but you're right. this shouldn't be too hard to fix.
that wasn't too bad. have a look at the `28/origami` branch and see if that addresses your concerns.
fixed by #29 .
FWIW I think this is best solved by using a tree-sitter grammar which understands CSS-in-JS. I've forked the existing tree-sitter CSS grammar repo and have something which mostly works, but...
thanks to the existing tree-sitter TS grammar we already know if point is inside a string template substitution, and if so then we enable TS autocompletion instead of CSS even...
I'm happy with the current state of that CSS-in-JS grammar, and I've a new branch of tsx-mode (`feature/css-in-js`) which incorporates it and tells tree-sitter to use it. please add the...
`tree-sitter-debug-mode` for your first case gives me this: ``` stylesheet: rule_set: selectors: tag_name: ERROR: ERROR: block: ERROR: pseudo_class_selector: descendant_selector: tag_name: ERROR: tag_name: class_name: ``` setting `tsi-debug` to `t` and attempting...
I've applied a band-aid to indentation for this particular case (a string interpolation as the contents of the first line of a CSS-in-JS templated string). it's not perfect but it...