aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-30 23:53:50 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-30 23:53:50 +0300
commite440f343b8c2d94f9ff41b64c493644512135651 (patch)
treef0bdf7c30e443c47f86144b9c356b36a182e082d
parenta569807766bff160f2c35f6a22dee8c53482df73 (diff)
downloadmeson-e440f343b8c2d94f9ff41b64c493644512135651.zip
meson-e440f343b8c2d94f9ff41b64c493644512135651.tar.gz
meson-e440f343b8c2d94f9ff41b64c493644512135651.tar.bz2
Variable names can begin with an underscore.
-rw-r--r--mparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mparser.py b/mparser.py
index e9cad0f..ee0f22f 100644
--- a/mparser.py
+++ b/mparser.py
@@ -78,7 +78,7 @@ precedence = (
)
def t_ATOM(t):
- '[a-zA-Z][_0-9a-zA-Z]*'
+ '[_a-zA-Z][_0-9a-zA-Z]*'
t.type = reserved.get(t.value, 'ATOM')
return t