aureliojargas / sedsed

Debugger and code formatter for sed scripts
https://aurelio.net/projects/sedsed/
GNU General Public License v3.0
115 stars 10 forks source link

Bug: ";" char should not be special inside comments #49

Closed aureliojargas closed 5 years ago

aureliojargas commented 5 years ago

All of the following should be a d command and a single comment:

$ ./sedsed.py -e "d # foobar"
d                                      ;# foobar
$ ./sedsed.py -e "d # foo;bar"
d                                      ;# foo
b ar
$ ./sedsed.py -e "d; # foo;bar"
d
# foo
b ar
$
aureliojargas commented 5 years ago

Fixed by the new sedparse parser, see #52.

$ ./sedsed.py -e "d # foobar"
d                                      ;# foobar
$ ./sedsed.py -e "d # foo;bar"
d                                      ;# foo;bar
$ ./sedsed.py -e "d; # foo;bar"
d                                      ;# foo;bar