From 564b76f12fe57af0c19101b903a6646435327be5 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Thu, 19 Nov 2015 12:05:47 +0300 Subject: [PATCH] Correctly process empty comments like /**/ --- 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 41149f6..97a4972 100644 --- a/src/mapcss/__init__.py +++ b/src/mapcss/__init__.py @@ -27,7 +27,7 @@ NEEDED_KEYS = set(["width", "casing-width", "fill-color", "fill-image", "icon-im WHITESPACE = re.compile(r'^ \s+ ', re.S | re.X) -COMMENT = re.compile(r'^ \/\* .+? \*\/ \s* ', re.S | re.X) +COMMENT = re.compile(r'^ \/\* .*? \*\/ \s* ', re.S | re.X) CLASS = re.compile(r'^ ([\.:]:?[*\w]+) \s* ', re.S | re.X) #NOT_CLASS = re.compile(r'^ !([\.:]\w+) \s* ', re.S | re.X) ZOOM = re.compile(r'^ \| \s* z([\d\-]+) \s* ', re.I | re.S | re.X)