summaryrefslogtreecommitdiff
path: root/pygments/lexers/haskell.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/haskell.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/haskell.py')
-rw-r--r--pygments/lexers/haskell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/haskell.py b/pygments/lexers/haskell.py
index 1a2f2217..e3604ed8 100644
--- a/pygments/lexers/haskell.py
+++ b/pygments/lexers/haskell.py
@@ -677,10 +677,10 @@ class KokaLexer(RegexLexer):
symbols = r'[$%&*+@!/\\^~=.:\-?|<>]+'
# symbol boundary: an operator keyword should not be followed by any of these
- sboundary = '(?!'+symbols+')'
+ sboundary = '(?!' + symbols + ')'
# name boundary: a keyword should not be followed by any of these
- boundary = '(?![\w/])'
+ boundary = r'(?![\w/])'
# koka token abstractions
tokenType = Name.Attribute