[valadoc] Parser: Accept -, =, ==, |, ||, and ^ in runs
- From: Florian Brosch <flobrosch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [valadoc] Parser: Accept -, =, ==, |, ||, and ^ in runs
- Date: Sun, 1 Nov 2009 00:47:03 +0000 (UTC)
commit e192d410aba9ead5d5d2329903960f81e6b4e84e
Author: Didier 'Ptitjes <ptitjes at free dot fr>
Date: Sat Oct 31 13:34:49 2009 +0100
Parser: Accept -, =, ==, |, ||, and ^ in runs
src/libvaladoc/content/sourcecode.vala | 2 +-
.../documentation/documentationparser.vala | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/libvaladoc/content/sourcecode.vala b/src/libvaladoc/content/sourcecode.vala
index 1841413..18a3f39 100755
--- a/src/libvaladoc/content/sourcecode.vala
+++ b/src/libvaladoc/content/sourcecode.vala
@@ -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,
diff --git a/src/libvaladoc/documentation/documentationparser.vala b/src/libvaladoc/documentation/documentationparser.vala
index 7da33e6..7450f83 100644
--- a/src/libvaladoc/documentation/documentationparser.vala
+++ b/src/libvaladoc/documentation/documentationparser.vala
@@ -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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]