summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-07 23:55:49 +0200
committerGeorg Brandl <georg@python.org>2014-10-07 23:55:49 +0200
commit91a1dc56d38e918f69bf690675583f60a0b6425d (patch)
tree9ed0fd4e59b5fbf1f63fe67f33bde565d14fd0a6 /pygments
parentdb4740faa0833a6af6a2e55b8353f5d6ac430b43 (diff)
downloadpygments-91a1dc56d38e918f69bf690675583f60a0b6425d.tar.gz
Vala: add verbatim strings and template strings
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/c_like.py3
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),