summaryrefslogtreecommitdiff
path: root/src/sp_config_scanner.re
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-12-20 19:51:45 +0100
committerBen Fuhrmannek2021-12-20 19:51:45 +0100
commit3045f5adb916d4ef8520a2c88d82ff8c38ee6328 (patch)
treed4a4c6d8e9243a91f7d4b508a759244c78211409 /src/sp_config_scanner.re
parent578f879e26ce4e3f1cd7693cb9d9a8a6f35cc389 (diff)
allow '@set' as a synonym for 'set' in rules files
Diffstat (limited to 'src/sp_config_scanner.re')
-rw-r--r--src/sp_config_scanner.re2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_config_scanner.re b/src/sp_config_scanner.re
index 6b52b20..d7c9884 100644
--- a/src/sp_config_scanner.re
+++ b/src/sp_config_scanner.re
@@ -181,7 +181,7 @@ zend_result sp_config_scan(char *data, zend_result (*process_rule)(sp_parsed_key
181 <init> nl { lineno++; goto yyc_init; } 181 <init> nl { lineno++; goto yyc_init; }
182 <init> "sp" { kw_i = 0; goto yyc_rule; } 182 <init> "sp" { kw_i = 0; goto yyc_rule; }
183 <init> end { ret = SUCCESS; goto out; } 183 <init> end { ret = SUCCESS; goto out; }
184 <init> "set" ws+ @t1 keyword @t2 ws+ @t3 string @t4 ws* ";"? { 184 <init> "@"? "set" ws+ @t1 keyword @t2 ws+ @t3 string @t4 ws* ";"? {
185 if (!cond_res[0]) { goto yyc_init; } 185 if (!cond_res[0]) { goto yyc_init; }
186 char *key = (char*)t1; 186 char *key = (char*)t1;
187 int keylen = t2-t1; 187 int keylen = t2-t1;