summaryrefslogtreecommitdiff
path: root/tests/test_sql.py
diff options
context:
space:
mode:
authorThomas Aglassinger <roskakori@users.sourceforge.net>2016-03-23 00:25:43 +0100
committerThomas Aglassinger <roskakori@users.sourceforge.net>2016-03-23 00:25:43 +0100
commitff5c922c8350df619a109efd25484d89bb3cdd49 (patch)
tree8b91bb926f84cb0074fa4e702d1dcb8c9ebbefde /tests/test_sql.py
parente5cc188142bfdbfe60dc2968db47316d13d447f5 (diff)
downloadpygments-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.py4
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)