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 | 0d8d02584edd9aed85be19da2a5e46c121769486 (patch) | |
tree | 16085aa4fbd6e6eaa1060a843d86c1722d8e2d03 /pygments/lexers/haskell.py | |
parent | 35564977ac1be608df6668798b9b44781e84c20f (diff) | |
download | pygments-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.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 |