summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/compiled.py7
-rw-r--r--pygments/lexers/text.py3
2 files changed, 6 insertions, 4 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 072974bd..6d53351b 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -751,9 +751,9 @@ class DylanLexer(RegexLexer):
aliases = ['dylan']
filenames = ['*.dylan']
mimetypes = ['text/x-dylan']
-
+
flags = re.DOTALL
-
+
tokens = {
'root': [
(r'\b(subclass|abstract|block|c(on(crete|stant)|lass)|domain'
@@ -768,7 +768,8 @@ class DylanLexer(RegexLexer):
(r'\'.*?\'', String.Single),
(r'=>|\b(a(bove|fterwards)|b(e(gin|low)|y)|c(ase|leanup|reate)'
r'|define|else(|if)|end|f(inally|or|rom)|i[fn]|l(et|ocal)|otherwise'
- r'|rename|s(elect|ignal)|t(hen|o)|u(n(less|til)|se)|wh(en|ile))\b', Keyword),
+ r'|rename|s(elect|ignal)|t(hen|o)|u(n(less|til)|se)|wh(en|ile))\b',
+ Keyword),
(r'([ \t])([!\$%&\*\/:<=>\?~_^a-zA-Z0-9.+\-]*:)',
bygroups(Text, Name.Variable)),
(r'([ \t]*)(\S+[^:])([ \t]*)(\()([ \t]*)',
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index 89bddc65..e25cb3bb 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -462,7 +462,8 @@ class RstLexer(RegexLexer):
'root': [
# Heading with overline
(r'^(=+|-+|`+|:+|\.+|\'+|"+|~+|\^+|_+|\*+|\++|#+)(\n)(.+)(\n)(\1)(\n)',
- bygroups(Generic.Heading, Text, using(this, state='inline'), Text, Generic.Heading, Text)),
+ bygroups(Generic.Heading, Text, using(this, state='inline'),
+ Text, Generic.Heading, Text)),
# Plain heading
(r'^(\S.*)(\n)(=+|-+|`+|:+|\.+|\'+|"+|~+|\^+|_+|\*+|\++|#+)(\n)',
bygroups(Generic.Heading, Text, Generic.Heading, Text)),