comby-tools / comby

A code rewrite tool for structural search and replace that supports ~every language.
https://comby.dev
Apache License 2.0
2.4k stars 62 forks source link

How to match expression with spaces function parameters #354

Closed smit-onshape closed 1 year ago

smit-onshape commented 1 year ago

Describe the bug In typescript code, :[var:e] is not matching the expression if expression have spaces in middle of it

Reproducing bit.ly/3HFVumG

Expected behavior when using :e in holes, it matches whole expression which has spaces as single argument of a function

smit-onshape commented 1 year ago

Sorry my bad I did missed the part where it says contiguous non-whitespace