diff options
author | Anteru <bitbucket@ca.sh13.net> | 2018-12-21 16:23:58 +0000 |
---|---|---|
committer | Anteru <bitbucket@ca.sh13.net> | 2018-12-21 16:23:58 +0000 |
commit | 5e5f02aa70471bafc6f4b61101e2099514596b91 (patch) | |
tree | df0cc3084d797532d585780b3b9f4793da1b263b /pygments/lexers/textfmts.py | |
parent | ead0ddfe75a8ae8e051d3c4cbc780a472e107654 (diff) | |
parent | 2fcf07e09ccb72b7b2e73cffa8492fa0d5cb23db (diff) | |
download | pygments-5e5f02aa70471bafc6f4b61101e2099514596b91.tar.gz |
Merged in bgcook/pygments-main (pull request #760)
add Slurm script parser
Diffstat (limited to 'pygments/lexers/textfmts.py')
-rw-r--r-- | pygments/lexers/textfmts.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/textfmts.py b/pygments/lexers/textfmts.py index bb8124ef..b70c2ad6 100644 --- a/pygments/lexers/textfmts.py +++ b/pygments/lexers/textfmts.py @@ -266,7 +266,7 @@ class TodotxtLexer(RegexLexer): # 5. Leading project (project_regex, Project, 'incomplete'), # 6. Non-whitespace catch-all - ('\S+', IncompleteTaskText, 'incomplete'), + (r'\S+', IncompleteTaskText, 'incomplete'), ], # Parse a complete task @@ -277,9 +277,9 @@ class TodotxtLexer(RegexLexer): (context_regex, Context), (project_regex, Project), # Tokenize non-whitespace text - ('\S+', CompleteTaskText), + (r'\S+', CompleteTaskText), # Tokenize whitespace not containing a newline - ('\s+', CompleteTaskText), + (r'\s+', CompleteTaskText), ], # Parse an incomplete task @@ -290,8 +290,8 @@ class TodotxtLexer(RegexLexer): (context_regex, Context), (project_regex, Project), # Tokenize non-whitespace text - ('\S+', IncompleteTaskText), + (r'\S+', IncompleteTaskText), # Tokenize whitespace not containing a newline - ('\s+', IncompleteTaskText), + (r'\s+', IncompleteTaskText), ], } |