Skip to content

Commit 263b200

Browse files
author
Damien Nadé
committed
doxygen-bash.sed: forgotten '.' in second pattern
1 parent 36ff023 commit 263b200

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎doxygen-bash.sed

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Here, we-reinsert param names into the <funcname>()
1414
s/\(@fn [^(\n]\+\)(\([^(]*\))\(.*\)\(@param \)\([^ \n]\+\(\.\.\.\)\?\)\([^\n]*\)$/\1(\2, \5)\3\4\5\7/
1515
}
16-
/ *\(function *\)\?[a-z:A-Z0-9_]\+ *() *{ *$/!{
16+
/ *\(function *\)\?[a-z:.A-Z0-9_]\+ *() *{ *$/!{
1717
N
1818
b step
1919
}
@@ -22,7 +22,8 @@
2222
# Here, we should have @fn (, param1, param2, param3), we remove
2323
# the first extra ", ".
2424
s/\(@fn[^(]\+\)(, /\1(/
25-
# Remove the function body to avoid interference.
25+
# Remove the function body to avoid interference, and re-introduce
26+
# list of parameters in the funcname(<here>).
2627
s/\(@fn \([^(]\+\)(\)\([^)]*\)\().*\)\n\2() *{/\1\3\4\n\2(\3) { }/
2728
# Replace all '## ' to '//! ' at beginning-of-line.
2829
s/\(^\|\n\)## /\1\/\/! /g

0 commit comments

Comments
 (0)