projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f7724a
)
sql_tokenizer: allow idents starting with underscore
author
Marko Kreen
<markokr@gmail.com>
Tue, 3 Jul 2012 08:54:39 +0000
(11:54 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 3 Jul 2012 08:54:39 +0000
(11:54 +0300)
python/skytools/parsing.py
patch
|
blob
|
blame
|
history
diff --git
a/python/skytools/parsing.py
b/python/skytools/parsing.py
index c7061ed42f54921d24f23b17626fd502bdc980ef..decc7e7e764c1dff492a245ab875c1153769eab0 100644
(file)
--- a/
python/skytools/parsing.py
+++ b/
python/skytools/parsing.py
@@
-248,7
+248,7
@@
def parse_tabbed_table(txt):
_extstr = r""" ['] (?: [^'\\]+ | \\. | [']['] )* ['] """
_stdstr = r""" ['] (?: [^']+ | [']['] )* ['] """
-_name = r""" (?: [a-z][a-z0-9_$]* | " (?: [^"]+ | "" )* " ) """
+_name = r""" (?: [a-z
_
][a-z0-9_$]* | " (?: [^"]+ | "" )* " ) """
_ident = r""" (?P<ident> %s ) """ % _name
_fqident = r""" (?P<ident> %s (?: \. %s )* ) """ % (_name, _name)