diff options
author | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-03-23 00:25:43 +0100 |
---|---|---|
committer | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-03-23 00:25:43 +0100 |
commit | ff5c922c8350df619a109efd25484d89bb3cdd49 (patch) | |
tree | 8b91bb926f84cb0074fa4e702d1dcb8c9ebbefde /tests/test_sql.py | |
parent | e5cc188142bfdbfe60dc2968db47316d13d447f5 (diff) | |
download | pygments-ff5c922c8350df619a109efd25484d89bb3cdd49.tar.gz |
Fixed that regex to detect Number.Float shadowed regex for Number.Integer for Transact-SQL.
Diffstat (limited to 'tests/test_sql.py')
-rw-r--r-- | tests/test_sql.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_sql.py b/tests/test_sql.py index f4016918..674d0426 100644 --- a/tests/test_sql.py +++ b/tests/test_sql.py @@ -48,6 +48,10 @@ class TransactSqlLexerTest(unittest.TestCase): ((Number.Float, '1e2'), (Number.Float, '.1e2')) ) + def test_can_lex_integer(self): + self._assertAreTokensOfType( + '1 23 456', Number.Integer) + def test_can_lex_names(self): self._assertAreTokensOfType( u'thingy thingy123 _thingy _ _123 Ähnliches Müll #temp1 ##temp2', Name) |