handle common comments

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23517 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-09-15 06:02:41 +00:00
parent 1fd53fc322
commit cde62cdb70

View file

@ -137,8 +137,12 @@ main(int argc, char** argv, char **env)
/* Now repair any excess space round operators.
*/
[line replaceString: @"+ +" withString: @"++"];
[line replaceString: @"+ +" withString: @"++"];
[line replaceString: @"+ =" withString: @"+="];
[line replaceString: @"- -" withString: @"--"];
[line replaceString: @"- -" withString: @"--"];
[line replaceString: @"= =" withString: @"=="];
[line replaceString: @"= =" withString: @"=="];
[line replaceString: @"- =" withString: @"-="];
[line replaceString: @"/ /" withString: @"//"];
[line replaceString: @"/ =" withString: @"/="];
@ -160,6 +164,9 @@ main(int argc, char** argv, char **env)
[line replaceString: @"- >" withString: @"->"];
[line replaceString: @"-> " withString: @"->"];
[line replaceString: @" ->" withString: @"->"];
[line replaceString: @"/ *" withString: @"/*"];
[line replaceString: @"* /" withString: @"*/"];
[line replaceString: @"/ /" withString: @"//"];
[line replaceString: @" ," withString: @","];
[line replaceString: @"! " withString: @"!"];