Fix parsing of C strings

Fixes #29
This commit is contained in:
Mikaël Bouillot 2017-07-20 13:22:49 +02:00
parent 09c29afe32
commit 661f32fa12

View file

@ -149,7 +149,7 @@ case $cmd in
git cat-file blob $ref 2>/dev/null |
tr '\n' '\1' |
perl -pe 's%((/\*.*?\*/|//.*?\001|"(\\"|.)*?"|# *include *<.*?>|\W)+)(\w+)?%\1\n\4\n%g' |
perl -pe 's%((/\*.*?\*/|//.*?\001|"(\\.|.)*?"|# *include *<.*?>|\W)+)(\w+)?%\1\n\4\n%g' |
head -n -1
;;