diff options
author | Georg Brandl <georg@python.org> | 2018-11-28 16:42:15 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2018-11-28 16:42:15 +0100 |
commit | cd850106ed356cd56c2bf19e0eebd75c42780556 (patch) | |
tree | 44484ae1e497b8a27117ec7c0288ddeb97807167 /pygments/lexers/haskell.py | |
parent | 42bcf76904ad6ccf1005296a8d1688ebe1bc562d (diff) | |
download | pygments-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.py | 4 |
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 |