summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/extra/gen/grammar.y
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-10-25 17:23:51 +0200
committerHaru <haru@dotalux.com>2013-10-25 17:43:35 +0200
commit5f6f1d66834b8328496c1678f0ce4f90a001b3fb (patch)
tree06ae5740c13135ac65f48c606deaa6ceb61a1140 /3rdparty/libconfig/extra/gen/grammar.y
parent8629562655cfcbd6aef97307e3e0c078235619ff (diff)
downloadhercules-5f6f1d66834b8328496c1678f0ce4f90a001b3fb.tar.gz
hercules-5f6f1d66834b8328496c1678f0ce4f90a001b3fb.tar.bz2
hercules-5f6f1d66834b8328496c1678f0ce4f90a001b3fb.tar.xz
hercules-5f6f1d66834b8328496c1678f0ce4f90a001b3fb.zip
Added support for trailing commas within libconfig lists
- Follow-up to 62c5e65d28833c1068d195778c0e3a710acaa104, special thanks to Ind - A trailing comma in a libconfig list (enclosed in parentheses) will no longer cause a parse error. - Updated config files where it makes sense to put a trailing comma Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty/libconfig/extra/gen/grammar.y')
-rw-r--r--3rdparty/libconfig/extra/gen/grammar.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/3rdparty/libconfig/extra/gen/grammar.y b/3rdparty/libconfig/extra/gen/grammar.y
index 576241c01..026547a17 100644
--- a/3rdparty/libconfig/extra/gen/grammar.y
+++ b/3rdparty/libconfig/extra/gen/grammar.y
@@ -354,9 +354,13 @@ simple_value:
}
;
-value_list:
+value_list_sub:
value
- | value_list TOK_COMMA value
+ | value_list_sub TOK_COMMA value
+ ;
+
+value_list:
+ value_list_sub comma_optional
;
value_list_optional: