summaryrefslogtreecommitdiff
path: root/pygments/lexers/rebol.py
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2017-02-20 12:45:58 +0100
committerJakub Wilk <jwilk@jwilk.net>2017-02-20 12:45:58 +0100
commitba01dca635a1d141f26aa4f1d11cc2326c988769 (patch)
tree07b26fc8a17d7fa261d9c2d6d1a1786733814d86 /pygments/lexers/rebol.py
parent1e51d66103e6bf3cb1f510687f99f84c467482b6 (diff)
downloadpygments-ba01dca635a1d141f26aa4f1d11cc2326c988769.tar.gz
Fix syntax error in a regexp.
Diffstat (limited to 'pygments/lexers/rebol.py')
-rw-r--r--pygments/lexers/rebol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/rebol.py b/pygments/lexers/rebol.py
index f3d00200..eff3fce0 100644
--- a/pygments/lexers/rebol.py
+++ b/pygments/lexers/rebol.py
@@ -239,7 +239,7 @@ class RebolLexer(RegexLexer):
if re.match(r'^\s*REBOL\s*\[', text, re.IGNORECASE):
# The code starts with REBOL header
return 1.0
- elif re.search(r'\s*REBOL\s*[', text, re.IGNORECASE):
+ elif re.search(r'\s*REBOL\s*\[', text, re.IGNORECASE):
# The code contains REBOL header but also some text before it
return 0.5