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.
pull/933/head
Gautier Pelloux-Prayer 8 years ago committed by Jussi Pakkanen
parent 07a53eeebb
commit 7a4786b01d
  1. 2
      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'\(')),

Loading…
Cancel
Save