diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2015-01-16 21:45:32 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-01-16 21:45:32 +0100 |
| commit | a17db7a7557056728acf5506d3dea6841ad55fa9 (patch) | |
| tree | 07b9ef8495bbfef326cd4c92676cdcc11498fd12 /sqlparse/engine | |
| parent | c8f2febb01bc6d5c5a1973881bf3c48f80a3d3d1 (diff) | |
| download | sqlparse-a17db7a7557056728acf5506d3dea6841ad55fa9.tar.gz | |
Improve parsing of inline comments for identifiers (fixes #163).
Diffstat (limited to 'sqlparse/engine')
| -rw-r--r-- | sqlparse/engine/grouping.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index a048128..5189f7e 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -172,6 +172,8 @@ def group_identifier(tlist): if next(x)(t): yield t else: + if isinstance(t, sql.Comment) and t.is_multiline(): + yield t raise StopIteration def _next_token(tl, i): |
