aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-05-31 19:31:32 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-05-31 19:31:32 +0300
commitf64ba790334351c165550403961458b263eabf33 (patch)
tree23da0e91e6833af246e8b0c65f5c167fd639246a /tools
parent4fe17f484f91f0ba4be086db420087c4723bcb9c (diff)
downloadmeson-f64ba790334351c165550403961458b263eabf33.zip
meson-f64ba790334351c165550403961458b263eabf33.tar.gz
meson-f64ba790334351c165550403961458b263eabf33.tar.bz2
Regexp fine tuning, can not parse LLVM yet.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cmake2meson.py4
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.]+}')),
]