[valadoc] gtkdoc-scanner: Add support for , ", '
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] gtkdoc-scanner: Add support for , ", '
- Date: Thu, 29 Nov 2012 00:09:09 +0000 (UTC)
commit 78cd19e253c72260935fc04610f7f22784c957a3
Author: Florian Brosch <flo brosch gmail com>
Date: Tue Nov 27 00:49:52 2012 +0100
gtkdoc-scanner: Add support for , ", '
.../documentation/gtkdoccommentscanner.vala | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/documentation/gtkdoccommentscanner.vala b/src/libvaladoc/documentation/gtkdoccommentscanner.vala
index 7cbc06a..8f97416 100644
--- a/src/libvaladoc/documentation/gtkdoccommentscanner.vala
+++ b/src/libvaladoc/documentation/gtkdoccommentscanner.vala
@@ -157,6 +157,21 @@ public class Valadoc.Gtkdoc.Scanner {
start = (string) ((char*) pos + 8);
pos = (string) ((char*) pos + 7);
builder.append_c ('@');
+ } else if (pos.has_prefix (" ")) {
+ builder.append_len (start, (ssize_t) ((char*) pos - (char*) start));
+ start = (string) ((char*) pos + 6);
+ pos = (string) ((char*) pos + 5);
+ builder.append_c (' ');
+ } else if (pos.has_prefix (""")) {
+ builder.append_len (start, (ssize_t) ((char*) pos - (char*) start));
+ start = (string) ((char*) pos + 6);
+ pos = (string) ((char*) pos + 5);
+ builder.append_c ('"');
+ } else if (pos.has_prefix ("'")) {
+ builder.append_len (start, (ssize_t) ((char*) pos - (char*) start));
+ start = (string) ((char*) pos + 6);
+ pos = (string) ((char*) pos + 5);
+ builder.append_c ('\'');
} else if (pos.has_prefix ("(")) {
builder.append_len (start, (ssize_t) ((char*) pos - (char*) start));
start = (string) ((char*) pos + 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]