edje: edje_cc_parse should check pair of parens.
authorNak-Gyeong Kim <nakkyong.kim@samsung.com>
Fri, 29 May 2015 16:11:49 +0000 (18:11 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 29 May 2015 16:22:09 +0000 (18:22 +0200)
commit7d33ae501b2263ff1450c6351dea181573afe517
treecd46ff3b8749c8206e433f68a8847e414db3d4f6
parent7056b2f6e4af9c1ef9445472c018655a19a54e71
edje: edje_cc_parse should check pair of parens.

Summary:
Fix parens bug.
((x + y)-z) is OK.
((x + y) - z) is NOT OK. This patch can cover this case.

@fix

Signed-off-by: Nak-Gyeong Kim <nakkyong.kim@samsung.com>
Test Plan:
Test in edc.

((x + y)-z) is OK.
((x + y) - z) is NOT OK. This patch can cover this case.
If parens are not paired, it will notify.

Reviewers: raster, Hermet, cedric

Subscribers: kimcinoo, jaehwan

Differential Revision: https://phab.enlightenment.org/D2554

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/Makefile_Edje.am
src/bin/edje/edje_cc_parse.c
src/tests/edje/data/test_parens.edc [new file with mode: 0644]
src/tests/edje/edje_test_edje.c