[vala] vapigen: Fix metadata pattern handling
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapigen: Fix metadata pattern handling
- Date: Sun, 16 Jan 2011 09:29:57 +0000 (UTC)
commit e3ff3da25f86b931a3e39d91d9eac5b2fa11e7e7
Author: Jürg Billeter <j bitron ch>
Date: Sun Jan 16 10:27:02 2011 +0100
vapigen: Fix metadata pattern handling
vapigen/valagidlparser.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 16c95db..46bb283 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -2628,8 +2628,8 @@ public class Vala.GIdlParser : CodeVisitor {
foreach (PatternSpec* pattern in pattern_specs) {
var pspec = codenode_attributes_patterns[pattern];
- if ((dot_required && -1 != pspec.index_of_char ('.')) ||
- (colon_required && -1 != pspec.index_of_char (':'))) {
+ if ((dot_required && -1 == pspec.index_of_char ('.')) ||
+ (colon_required && -1 == pspec.index_of_char (':'))) {
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]