diff options
author | Jharrod LaFon <jharrod.lafon@gmail.com> | 2014-04-14 13:40:07 -0400 |
---|---|---|
committer | Jharrod LaFon <jharrod.lafon@gmail.com> | 2014-04-14 13:40:07 -0400 |
commit | a88ed45d9bdc2e158fe7d69be8e01f798ded7b8e (patch) | |
tree | 70af23b9f13f62250fc4e97e3816499f40668b7e /pygments | |
parent | e18a7d9fd3a55bd4bb341b5b014a9ee3ac7eba54 (diff) | |
download | pygments-a88ed45d9bdc2e158fe7d69be8e01f798ded7b8e.tar.gz |
Make regular expressions with newlines raw strings for Java compat
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/text.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index 67f9c643..e4c5656b 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -1972,7 +1972,7 @@ class TodotxtLexer(RegexLexer): # Parse a complete task 'complete': [ # Newline indicates end of task, should return to root - ('\s*\n', CompleteTaskText, '#pop'), + (r'\s*\n', CompleteTaskText, '#pop'), # Tokenize contexts and projects (context_regex, Context), (project_regex, Project), @@ -1985,7 +1985,7 @@ class TodotxtLexer(RegexLexer): # Parse an incomplete task 'incomplete': [ # Newline indicates end of task, should return to root - ('\s*\n', IncompleteTaskText, '#pop'), + (r'\s*\n', IncompleteTaskText, '#pop'), # Tokenize contexts and projects (context_regex, Context), (project_regex, Project), |