[vala] xmlparser: Support single quotes for attributes
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] xmlparser: Support single quotes for attributes
- Date: Fri, 21 Jun 2013 21:38:24 +0000 (UTC)
commit 435d8630d6fd2148b6501655b4c9f56377ff0525
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Jun 17 21:10:47 2013 +0200
xmlparser: Support single quotes for attributes
vala/valamarkupreader.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vala/valamarkupreader.vala b/vala/valamarkupreader.vala
index 7f50c2d..556853d 100644
--- a/vala/valamarkupreader.vala
+++ b/vala/valamarkupreader.vala
@@ -161,15 +161,15 @@ public class Vala.MarkupReader : Object {
// error
}
current++;
- // FIXME allow single quotes
- if (current >= end || current[0] != '"') {
+ if (current >= end || current[0] != '"' || current[0] != '\'') {
// error
}
+ char quote = current[0];
current++;
- string attr_value = text ('"', false);
+ string attr_value = text (quote, false);
- if (current >= end || current[0] != '"') {
+ if (current >= end || current[0] != quote) {
// error
}
current++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]