summaryrefslogtreecommitdiff
path: root/pygments/lexers/c_like.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2018-11-28 16:42:15 +0100
committerGeorg Brandl <georg@python.org>2018-11-28 16:42:15 +0100
commitcd850106ed356cd56c2bf19e0eebd75c42780556 (patch)
tree44484ae1e497b8a27117ec7c0288ddeb97807167 /pygments/lexers/c_like.py
parent42bcf76904ad6ccf1005296a8d1688ebe1bc562d (diff)
downloadpygments-cd850106ed356cd56c2bf19e0eebd75c42780556.tar.gz
Fix more instances of invalid string escapes
Also, raise on warnings from Pygments only.
Diffstat (limited to 'pygments/lexers/c_like.py')
-rw-r--r--pygments/lexers/c_like.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/c_like.py b/pygments/lexers/c_like.py
index 38827219..fd147a8a 100644
--- a/pygments/lexers/c_like.py
+++ b/pygments/lexers/c_like.py
@@ -245,7 +245,7 @@ class ValaLexer(RegexLexer):
'ulong', 'unichar', 'ushort'), suffix=r'\b'),
Keyword.Type),
(r'(true|false|null)\b', Name.Builtin),
- ('[a-zA-Z_]\w*', Name),
+ (r'[a-zA-Z_]\w*', Name),
],
'root': [
include('whitespace'),
@@ -344,7 +344,7 @@ class SwigLexer(CppLexer):
# SWIG directives
(r'(%[a-z_][a-z0-9_]*)', Name.Function),
# Special variables
- ('\$\**\&?\w+', Name),
+ (r'\$\**\&?\w+', Name),
# Stringification / additional preprocessor directives
(r'##*[a-zA-Z_]\w*', Comment.Preproc),
inherit,