diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2019-02-12 16:28:16 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2019-02-12 16:28:16 +0100 |
commit | 53a39c2b6dc9d2e7b73943c842f698ce8f60258d (patch) | |
tree | 9173aaea7291b6052c11b6b55bdded1515f03571 /tests | |
parent | 4c3606b87d8af193003e30a2b6ad699ef9434469 (diff) | |
download | pygments-53a39c2b6dc9d2e7b73943c842f698ce8f60258d.tar.gz |
Improve CSound name handling.
This should fix the last of the spurious errors we're seeing in CI.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_csound.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_csound.py b/tests/test_csound.py index 4d10c267..d493bd04 100644 --- a/tests/test_csound.py +++ b/tests/test_csound.py @@ -478,3 +478,14 @@ class CsoundOrchestraTest(unittest.TestCase): (Text, u'\n') ] self.assertEqual(tokens, list(self.lexer.get_tokens(fragment))) + + def testName(self): + fragment = 'kG:V' + tokens = [ + (Keyword.Type, 'k'), + (Name, 'G'), + (Punctuation, ':'), + (Name, 'V'), + (Text, '\n') + ] + self.assertEqual(tokens, list(self.lexer.get_tokens(fragment))) |