c2man: fix parameter higlighting
Markus Amsler
markus.amsler at oribi.org
Thu Nov 10 03:57:42 CST 2005
If a function parameter name is class, the html attribute 'class' is
also replaced by the parameter highlighting regex. See
http://source.winehq.org/WineAPI/NtQueryInformationFile.html for a example.
Log Message
Markus Amsler <markus.amsler at oribi.org>
Make parameter higlighting regex less "hungry".
-------------- next part --------------
Index: tools/c2man.pl
===================================================================
RCS file: /home/wine/wine/tools/c2man.pl,v
retrieving revision 1.22
diff -u -r1.22 c2man.pl
--- tools/c2man.pl 7 May 2005 18:39:05 -0000 1.22
+++ tools/c2man.pl 10 Nov 2005 10:03:10 -0000
@@ -1721,7 +1721,7 @@
# Format parameter names where they appear in the comment
for my $parameter_name (@parameter_names)
{
- s/(^|[ \.\,\(\-\*])($parameter_name)($|[ \.\)\,\-\=\/])/$1$fmt[8]$2$fmt[9]$3/g;
+ s/(^|[ \.\,\(\-\*])($parameter_name)($|[ \.\)\,\-\/]|(\=[^"]))/$1$fmt[8]$2$fmt[9]$3/g;
}
# Structure dereferences include the dereferenced member
s/(\-\>[A-Za-z_]+)/$fmt[8]$1$fmt[9]/g;
More information about the wine-patches
mailing list