comby-tools/comby

Checking the matching of white-space characters after a line break

elfring opened this issue · 2 comments

I tried another search pattern out.

[Markus_Elfring@fedora lokal]$ printf 'else:\n  X\n' | ./comby -stdin -diff -matcher .py 'else::[_\n]:[ ]X' Z

💭 May I expect that such a command should generate a simple transformation result?

Do you find another search approach reasonable for such an use case?

[Markus_Elfring@fedora lokal]$ printf 'else:\n  X\n' | ./comby -stdin -stdout -matcher .py 'else::[_\n]:[~\s+]X' Success
Success

Will the following test result trigger also any further software development considerations? 🤔

[Markus_Elfring@fedora lokal]$ printf '    if active:\n  X\n' | ./comby -stdin -stdout -matcher .py ':[ indentation]:[check~if active]::[_\n]:[ ]X' Surprise
    if active:
  X