[valadoc] gtkdoc-scanner: Add support for  , ", '



commit 78cd19e253c72260935fc04610f7f22784c957a3
Author: Florian Brosch <flo brosch gmail com>
Date:   Tue Nov 27 00:49:52 2012 +0100

    gtkdoc-scanner: Add support for &nbsp;, &quot;, &apos;

 .../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 ("&nbsp;")) {
+					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 ("&quot;")) {
+					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 ("&apos;")) {
+					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 ("&lpar;")) {
 					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]