Skip to content

Commit

Permalink
Fix #1573 (#1869)
Browse files Browse the repository at this point in the history
Allow $ sign in C# language for interpolated strings.
  • Loading branch information
AndreasBilke committed Jul 27, 2021
1 parent d7477d1 commit 08d3545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/dotnet.py
Expand Up @@ -87,7 +87,7 @@ class CSharpLexer(RegexLexer):
(r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation),
(r'[{}]', Punctuation),
(r'@"(""|[^"])*"', String),
(r'"(\\\\|\\[^\\]|[^"\\\n])*["\n]', String),
(r'\$?"(\\\\|\\[^\\]|[^"\\\n])*["\n]', String),
(r"'\\.'|'[^\\]'", String.Char),
(r"[0-9](\.[0-9]*)?([eE][+-][0-9]+)?"
r"[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?", Number),
Expand Down

0 comments on commit 08d3545

Please sign in to comment.