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
commit0874c59522678a9b49a0c0a58a1d13902bc5647f (patch)
tree63c8bb62d5e63252145298e168592892433623f5 /pygments/lexers/rebol.py
parent52b6c00fcf8a20501aa1cf812a0d6b25feeef2dd (diff)
downloadpygments-git-0874c59522678a9b49a0c0a58a1d13902bc5647f.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