summaryrefslogtreecommitdiff
path: root/pygments/lexers/csound.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/csound.py')
-rw-r--r--pygments/lexers/csound.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/csound.py b/pygments/lexers/csound.py
index ac4e16ad..831f0f71 100644
--- a/pygments/lexers/csound.py
+++ b/pygments/lexers/csound.py
@@ -241,7 +241,7 @@ class CsoundOrchestraLexer(CsoundLexer):
'root': [
(r'\n', Text),
- (r'^([ \t]*)(\w+)(:)(?:[ \t]+|$)', bygroups(Text, Name.Label, Punctuation)),
+ (r'^([ \t]*)(\w+)(:)([ \t]+|$)', bygroups(Text, Name.Label, Punctuation, Text)),
include('whitespace and macro uses'),
include('preprocessor directives'),
@@ -347,7 +347,7 @@ class CsoundOrchestraLexer(CsoundLexer):
# but accept %s specifiers.
# See https://github.com/csound/csound/issues/747 for more information.
'format specifiers': [
- (r'%[#0\- +]*\d*(?:\.\d+)?[diuoxXfFeEgGaAcs]', String.Interpol),
+ (r'%[#0\- +]*\d*(?:\.\d+)?[AE-GXac-giosux]', String.Interpol),
(r'%%', String.Escape)
],