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
commit0d8d02584edd9aed85be19da2a5e46c121769486 (patch)
tree16085aa4fbd6e6eaa1060a843d86c1722d8e2d03 /pygments/lexers/haskell.py
parent35564977ac1be608df6668798b9b44781e84c20f (diff)
downloadpygments-git-0d8d02584edd9aed85be19da2a5e46c121769486.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