From 7a4786b01d67c3f9ae5fe2970d04e2b03e083234 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 18 Oct 2016 15:02:24 +0200 Subject: Allow id to contain a pipe "|" For instance in [color](https://github.com/bagage/color/blob/master/tests/CMakeLists.txt#L26) project tests contains a `|` character. --- tools/cmake2meson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index a99ea50be..db405f7b7 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -36,7 +36,7 @@ class Lexer: ('ignore', re.compile(r'[ \t]')), ('string', re.compile(r'"([^\\]|(\\.))*?"', re.M)), ('varexp', re.compile(r'\${[-_0-9a-z/A-Z.]+}')), - ('id', re.compile('''[,-><${}=+_0-9a-z/A-Z@.*]+''')), + ('id', re.compile('''[,-><${}=+_0-9a-z/A-Z|@.*]+''')), ('eol', re.compile(r'\n')), ('comment', re.compile(r'\#.*')), ('lparen', re.compile(r'\(')), -- cgit v1.2.3