diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-31 19:31:32 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-31 19:31:32 +0300 |
commit | f64ba790334351c165550403961458b263eabf33 (patch) | |
tree | 23da0e91e6833af246e8b0c65f5c167fd639246a /tools | |
parent | 4fe17f484f91f0ba4be086db420087c4723bcb9c (diff) | |
download | meson-f64ba790334351c165550403961458b263eabf33.zip meson-f64ba790334351c165550403961458b263eabf33.tar.gz meson-f64ba790334351c165550403961458b263eabf33.tar.bz2 |
Regexp fine tuning, can not parse LLVM yet.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cmake2meson.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index b2784bf..790f6aa 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -34,12 +34,12 @@ class Lexer: self.token_specification = [ # Need to be sorted longest to shortest. ('ignore', re.compile(r'[ \t]')), - ('id', re.compile('[-+_0-9a-z/A-Z.@]+')), + ('string', re.compile('"[^"]*?"')), + ('id', re.compile('''[-+_0-9a-z/A-Z@.]+''')), ('eol', re.compile(r'\n')), ('comment', re.compile(r'\#.*')), ('lparen', re.compile(r'\(')), ('rparen', re.compile(r'\)')), - ('string', re.compile('"[^"]*?"')), ('varexp', re.compile(r'\${[-_0-9a-z/A-Z.]+}')), ] |