From b1f6dfe4da2dffa560548b11edd3458dc49250f9 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Tue, 15 Dec 2015 19:15:29 +0300 Subject: [PATCH] Correctly process empty declaration --- src/mapcss/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapcss/__init__.py b/src/mapcss/__init__.py index 97a4972..43ac589 100644 --- a/src/mapcss/__init__.py +++ b/src/mapcss/__init__.py @@ -34,7 +34,7 @@ ZOOM = re.compile(r'^ \| \s* z([\d\-]+) \s* ', re.I | re.S | re.X) GROUP = re.compile(r'^ , \s* ', re.I | re.S | re.X) CONDITION = re.compile(r'^ \[(.+?)\] \s* ', re.S | re.X) OBJECT = re.compile(r'^ (\*|[\w]+) \s* ', re.S | re.X) -DECLARATION = re.compile(r'^ \{(.+?)\} \s* ', re.S | re.X) +DECLARATION = re.compile(r'^ \{(.*?)\} \s* ', re.S | re.X) IMPORT = re.compile(r'^@import\("(.+?)"\); \s* ', re.S | re.X) VARIABLE_SET = re.compile(r'^@([a-z][\w\d]*) \s* : \s* (.+?) \s* ; \s* ', re.S | re.X | re.I) UNKNOWN = re.compile(r'^ (\S+) \s* ', re.S | re.X)