]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Parser: Accept -, =, ==, |, ||, and ^ in runs
authorDidier 'Ptitjes <ptitjes at free dot fr>
Sat, 31 Oct 2009 12:34:49 +0000 (13:34 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Sat, 31 Oct 2009 14:46:40 +0000 (15:46 +0100)
src/libvaladoc/content/sourcecode.vala
src/libvaladoc/documentation/documentationparser.vala

index 1841413a0b823d9dc0286517ca24b729202f0824..18a3f395ff1c7420a6c564b8186a94a4243e66f5 100755 (executable)
@@ -22,7 +22,7 @@
 
 using Gee;
 
-public class Valadoc.Content.SourceCode : ContentElement, Inline {
+public class Valadoc.Content.SourceCode : ContentElement, Inline{
        public enum Language {
                GENIE,
                VALA,
index 7da33e6b2db16a0f5219ea94bcbeb2ea725a639a..7450f83fe32c86667269fe20e1302aef947f54ea 100644 (file)
@@ -238,6 +238,12 @@ public class Valadoc.DocumentationParser : Object, ResourceLocator {
                                                Rule.one_of ({
                                                        word,
                                                        TokenType.BREAK.action ((token) => { add_content_string ("\n"); }),
+                                                       TokenType.MINUS.action (add_text),
+                                                       TokenType.EQUAL_1.action (add_text),
+                                                       TokenType.EQUAL_2.action (add_text),
+                                                       TokenType.PIPE.action (add_text),
+                                                       TokenType.DOUBLE_PIPE.action (add_text),
+                                                       TokenType.ALIGN_TOP.action (add_text),
                                                        TokenType.LESS_THAN.action (add_text),
                                                        TokenType.GREATER_THAN.action (add_text),
                                                        TokenType.ALIGN_RIGHT.action (add_text),