diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 23:55:49 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 23:55:49 +0200 |
commit | 91a1dc56d38e918f69bf690675583f60a0b6425d (patch) | |
tree | 9ed0fd4e59b5fbf1f63fe67f33bde565d14fd0a6 /pygments/lexers | |
parent | db4740faa0833a6af6a2e55b8353f5d6ac430b43 (diff) | |
download | pygments-91a1dc56d38e918f69bf690675583f60a0b6425d.tar.gz |
Vala: add verbatim strings and template strings
Diffstat (limited to 'pygments/lexers')
-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), |