summaryrefslogtreecommitdiff
path: root/tests/test_mysql.py
diff options
context:
space:
mode:
authorSebastian Engel <dev@sebastianengel.eu>2021-10-06 21:23:51 +0200
committerGitHub <noreply@github.com>2021-10-06 21:23:51 +0200
commit0ef9b78ecc196745272060b1051fdf9808301c2a (patch)
tree0aace4faf295e99095aa7687c554b182d6664fbd /tests/test_mysql.py
parent339ad2b31f5359dc0e554399a35a464ec839c62b (diff)
downloadpygments-git-0ef9b78ecc196745272060b1051fdf9808301c2a.tar.gz
lexer SQL to use whitespace token - regarding #1905 (#1908)
* SQL whitespaces - regarding #1905 * Sqlite prompt ungrouped from trailing space * sqlite prompt with Explicit trailing whitespace token * Fix insertion of sqlite trail space token
Diffstat (limited to 'tests/test_mysql.py')
-rw-r--r--tests/test_mysql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_mysql.py b/tests/test_mysql.py
index 845440b9..6701ab36 100644
--- a/tests/test_mysql.py
+++ b/tests/test_mysql.py
@@ -11,7 +11,7 @@ import pytest
from pygments.lexers.sql import MySqlLexer
from pygments.token import Comment, Keyword, Literal, Name, Number, Operator, \
- Punctuation, String, Text
+ Punctuation, String, Whitespace
@pytest.fixture(scope='module')
@@ -161,9 +161,9 @@ def test_optimizer_hints(lexer, text):
('SET', (Keyword,)),
('SET abc = 1;', (Keyword,)),
('SET @abc = 1;', (Keyword,)),
- ('CHARACTER SET latin1', (Keyword, Text, Keyword)),
+ ('CHARACTER SET latin1', (Keyword, Whitespace, Keyword,)),
('SET("r", "g", "b")', (Keyword.Type, Punctuation)),
- ('SET ("r", "g", "b")', (Keyword.Type, Text, Punctuation)),
+ ('SET ("r", "g", "b")', (Keyword.Type, Whitespace, Punctuation)),
),
)
def test_exceptions(lexer, text, expected_types):