squaresLab / Rooibos

2 stars 0 forks source link

Small whitespace preservation bug #30

Open rvantonder opened 6 years ago

rvantonder commented 6 years ago
rooibos -i ":[1] = 1;" "char * foo = 1;" ":[1]"

gives

char* foo

expect

char * foo
rvantonder commented 6 years ago

It's only the first whitespace after matching starts:

rooibos -i ":[1] = 1;" "char * foo * bar = 1;" ":[1]"                                                                                       

gives

char* foo * bar