summaryrefslogtreecommitdiff
path: root/pygments/lexers/typoscript.py
diff options
context:
space:
mode:
authorChristian Hammond <christian@beanbaginc.com>2017-01-22 12:30:00 -0800
committerChristian Hammond <christian@beanbaginc.com>2017-01-22 12:30:00 -0800
commit7b0550d47360d0b7b814cbb2a82c83584ca83c3c (patch)
tree42fdba82264bf29579616c351913b0eb4a111691 /pygments/lexers/typoscript.py
parent4a6c8b3897134e768c66f96f8351fef28198d235 (diff)
downloadpygments-git-7b0550d47360d0b7b814cbb2a82c83584ca83c3c.tar.gz
Remove the fallback values from the new analyse_text changes.
These values would trigger problems when guessing content without a filename, and really aren't needed. They've been removed, allowing the standard behavior to take place. On top of this, the regex for TypeScript has been slightly altered to include a whitespace match after "export" to be within the group for the "export" text.
Diffstat (limited to 'pygments/lexers/typoscript.py')
-rw-r--r--pygments/lexers/typoscript.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/pygments/lexers/typoscript.py b/pygments/lexers/typoscript.py
index d1f09d90..ff53490a 100644
--- a/pygments/lexers/typoscript.py
+++ b/pygments/lexers/typoscript.py
@@ -226,7 +226,3 @@ class TypoScriptLexer(RegexLexer):
def analyse_text(text):
if '<INCLUDE_TYPOSCRIPT:' in text:
return 1.0
- else:
- # Slightly higher than TypeScript, since there's less to rely
- # on in TypoScript content.
- return 0.9