summaryrefslogtreecommitdiff
path: root/pygments/lexers/text.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-05-28 22:44:29 +0200
committergbrandl <devnull@localhost>2007-05-28 22:44:29 +0200
commitf560d7092ae5e408ffa0820246753fb308803669 (patch)
tree48561e122909abb3f0c9b3da4169f3512358eca8 /pygments/lexers/text.py
parent8296a00a9bc50d9fd5b19931625c18350d62bafc (diff)
downloadpygments-f560d7092ae5e408ffa0820246753fb308803669.tar.gz
[svn] Apply patches by Tim, add MiniD lexer from Jarrett and new example files.
Diffstat (limited to 'pygments/lexers/text.py')
-rw-r--r--pygments/lexers/text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index b2a553c9..d585cead 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -139,9 +139,12 @@ class MakefileLexer(RegexLexer):
(r'[^\\\n]+', String),
],
'block-header': [
- (r'[^,\n#]+', Number),
+ (r'[^,\\\n#]+', Number),
(r',', Punctuation),
(r'#.*?\n', Comment),
+ # line continuation
+ (r'\\\n', Text),
+ (r'\\', Text),
(r'\n[\t ]+', Text, 'block'),
(r'\n', Text, '#pop')
],