summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 22:22:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 22:22:12 (GMT)
commita02116de1290b1f5c7deda43071df762cebc9b84 (patch)
treec58be0b9376d340088cf6c786c8daa358fa14b55 /src
parentdbe05c349a0892306d7317d3c26a56e9b19eca92 (diff)
Make the "condition" section mandatory in a rule.
Diffstat (limited to 'src')
-rw-r--r--src/analysis/scan/grammar.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/analysis/scan/grammar.y b/src/analysis/scan/grammar.y
index 19a4257..9c3b08b 100644
--- a/src/analysis/scan/grammar.y
+++ b/src/analysis/scan/grammar.y
@@ -301,8 +301,7 @@ string_decl : IDENTIFIER ASSIGN PLAIN_STRING
}
;
- condition : /* empty */
- | CONDITION COLON cexpression
+ condition : CONDITION COLON cexpression
{
g_scan_rule_set_match_condition(*built_rule, $3);
g_object_unref(G_OBJECT($3));