diff options
Diffstat (limited to 'pygments/lexers/csound.py')
-rw-r--r-- | pygments/lexers/csound.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pygments/lexers/csound.py b/pygments/lexers/csound.py index b86de091..161e1576 100644 --- a/pygments/lexers/csound.py +++ b/pygments/lexers/csound.py @@ -228,6 +228,13 @@ class CsoundOrchestraLexer(CsoundLexer): else: yield match.start(), Name, name + # If there's a trailing :V, for example, we want to keep this around + # and emit it as well, otherwise this lexer will not pass round-trip + # testing + if match.group(2): + yield match.start(2), Punctuation, match.group(2) + yield match.start(3), Name, match.group(3) + tokens = { 'root': [ (r'\n', Text), |