aboutsummaryrefslogtreecommitdiff
path: root/mparser.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-10 01:37:20 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-10 01:37:20 +0200
commit27d39fe6056a1bf8af12a41065bd01cc809ebd83 (patch)
treed6542cf3764bbb1b244462f3581fae746ab086e0 /mparser.py
parentf45645388363372f77e0d63523383e07dcdacd82 (diff)
downloadmeson-27d39fe6056a1bf8af12a41065bd01cc809ebd83.zip
meson-27d39fe6056a1bf8af12a41065bd01cc809ebd83.tar.gz
meson-27d39fe6056a1bf8af12a41065bd01cc809ebd83.tar.bz2
A few fixes.
Diffstat (limited to 'mparser.py')
-rw-r--r--mparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mparser.py b/mparser.py
index 75ab035..8954a9f 100644
--- a/mparser.py
+++ b/mparser.py
@@ -147,6 +147,10 @@ def p_statement_array(t):
def p_statement_array2(t):
'''statement : LBRACKET args EOL RBRACKET
| LBRACKET EOL args EOL RBRACKET'''
+ if len(t) == 5:
+ t[0] = nodes.ArrayStatement(t[2], t.lineno(1))
+ else:
+ t[0] = nodes.ArrayStatement(t[3], t.lineno(1))
def p_statement_func_call(t):
'statement : expression LPAREN args RPAREN'