summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-03 19:02:30 +0200
committerMartin Mares <mj@ucw.cz>2000-06-03 19:02:30 +0200
commit2e130b5cadb970b7f4f743e69cd459b5b42cf208 (patch)
tree4c411814477e19f9fcaf451ee4f8898471e1b977
parentc0b2f6463fd7464ce6fe4d9dc67f37e61bface11 (diff)
downloadbird-2e130b5cadb970b7f4f743e69cd459b5b42cf208.tar
bird-2e130b5cadb970b7f4f743e69cd459b5b42cf208.zip
Recognize `|xxxx|' as verbatim text and typeset it using <tt>.
-rwxr-xr-xdoc/kernel-doc5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/kernel-doc b/doc/kernel-doc
index 50a6803..f4f85c1 100755
--- a/doc/kernel-doc
+++ b/doc/kernel-doc
@@ -79,6 +79,7 @@
# '&struct_name' - name of a structure
# '@parameter' - name of a parameter
# '%CONST' - name of a constant.
+# '|code|' - literal string
# match expressions used to find embedded type information
$type_constant = "\\\%(\\w+)";
@@ -86,6 +87,7 @@ $type_func = "(\\w+\\(\\))";
$type_param = "\\\@(\\w+)";
$type_struct = "\\\\\\\\\\\\amp;(\\w+)";
$type_env = "(\\\$\\w+)";
+$type_code = "\\|(.*)\\|";
# Output conversion substitutions.
@@ -118,7 +120,8 @@ $blankline_gnome = "</para><para>\n";
%highlights_bird = ( $type_constant, "<const/\$1/",
$type_func, "<func/\$1/",
$type_struct, "<struct/\$1/",
- $type_param, "<param/\$1/" );
+ $type_param, "<param/\$1/",
+ $type_code, "<tt>\$1</tt>");
$blankline_bird = "<p>";
# these are pretty rough