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 | b9fd619bbc2855c6a4b447cf4f2d5626bef0f034 (patch) | |
tree | 327652fc4dc662bdf356dd8e3bedc58256676a7f /tests/test_sql.py | |
parent | ba0e7cd8ba5f803e73fc0f86dee1f7266aaaa366 (diff) | |
download | pygments-git-b9fd619bbc2855c6a4b447cf4f2d5626bef0f034.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) |