diff options
-rw-r--r-- | pygments/lexers/c_like.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/c_like.py b/pygments/lexers/c_like.py index ae61e32b..622fa869 100644 --- a/pygments/lexers/c_like.py +++ b/pygments/lexers/c_like.py @@ -200,9 +200,10 @@ class ValaLexer(RegexLexer): (r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment.Multiline), ], 'statements': [ - (r'L?"', String, 'string'), + (r'[L@]?"', String, 'string'), (r"L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char), + (r'(?s)""".*?"""', String), # verbatim strings (r'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[lL]?', Number.Float), (r'(\d+\.\d*|\.\d+|\d+[fF])[fF]?', Number.Float), (r'0x[0-9a-fA-F]+[Ll]?', Number.Hex), |