diff options
author | Gautier Pelloux-Prayer <bagage@users.noreply.github.com> | 2016-10-18 15:02:24 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-10-19 00:53:28 +0300 |
commit | 7a4786b01d67c3f9ae5fe2970d04e2b03e083234 (patch) | |
tree | d8991ddb5f731f936c5cb086e83b803cb0a4cd41 /tools | |
parent | 07a53eeebbe0e27decd820e03cfb4f466c2b3a51 (diff) | |
download | meson-7a4786b01d67c3f9ae5fe2970d04e2b03e083234.zip meson-7a4786b01d67c3f9ae5fe2970d04e2b03e083234.tar.gz meson-7a4786b01d67c3f9ae5fe2970d04e2b03e083234.tar.bz2 |
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.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cmake2meson.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index a99ea50..db405f7 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'\(')), |