diff options
| author | Ben Fuhrmannek | 2021-12-20 19:51:45 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-12-20 19:51:45 +0100 |
| commit | 3045f5adb916d4ef8520a2c88d82ff8c38ee6328 (patch) | |
| tree | d4a4c6d8e9243a91f7d4b508a759244c78211409 /src/sp_config_scanner.re | |
| parent | 578f879e26ce4e3f1cd7693cb9d9a8a6f35cc389 (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.re | 2 |
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; |
