diff options
author | Miikka Salminen <miikka.salminen@gmail.com> | 2016-02-08 15:22:51 +0200 |
---|---|---|
committer | Miikka Salminen <miikka.salminen@gmail.com> | 2016-02-08 15:22:51 +0200 |
commit | 0497d3d825c7f144c50e8f3566dc19e01618bcc9 (patch) | |
tree | de1004cec0d0b874163bcd441bc269923c3157a3 /pygments/lexers/c_cpp.py | |
parent | 995aa30dfb51621a017833258654d35ec3fc2c30 (diff) | |
download | pygments-0497d3d825c7f144c50e8f3566dc19e01618bcc9.tar.gz |
Parentheses are now lexed as part of the delimiter in C++ raw strings.
Diffstat (limited to 'pygments/lexers/c_cpp.py')
-rw-r--r-- | pygments/lexers/c_cpp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/c_cpp.py b/pygments/lexers/c_cpp.py index 7f061539..2f77158b 100644 --- a/pygments/lexers/c_cpp.py +++ b/pygments/lexers/c_cpp.py @@ -218,9 +218,9 @@ class CppLexer(CFamilyLexer): (r'char(16_t|32_t)\b', Keyword.Type), (r'(class)(\s+)', bygroups(Keyword, Text), 'classname'), # C++11 raw strings - (r'(R)(")([^\\()\s]{,16})(\((?:.|\n)*?\))(\3)(")', - bygroups(String.Affix, String, String.Delimiter, String, - String.Delimiter, String)), + (r'(R)(")([^\\()\s]{,16})(\()((?:.|\n)*?)(\)\3)(")', + bygroups(String.Affix, String, String.Delimiter, String.Delimiter, + String, String.Delimiter, String)), # C++11 UTF-8/16/32 strings (r'(u8|u|U)(")', bygroups(String.Affix, String), 'string'), inherit, |