summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2011-01-16 10:27:02 +0100
committerJürg Billeter <j@bitron.ch>2011-01-16 10:29:44 +0100
commite3ff3da25f86b931a3e39d91d9eac5b2fa11e7e7 (patch)
tree004310362adde443fcb5cb19ba5614fbd72da901 /vapigen
parentce605f8a5dbd16b63e15368c7c87e66f13c5c691 (diff)
downloadvala-e3ff3da25f86b931a3e39d91d9eac5b2fa11e7e7.tar.gz
vapigen: Fix metadata pattern handling
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 16c95dbec..46bb28334 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;
}