summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-14 21:46:33 +0100
committerGeorg Brandl <georg@python.org>2016-02-14 21:46:33 +0100
commit5cc92cf8771627278cdb7b374ba0a101fad72bd2 (patch)
tree664f36e5262beeeda1cb40554b44e4a1d457e3d3
parente085fca74e08b166ad7d448c96558547d93b3806 (diff)
downloadpygments-5cc92cf8771627278cdb7b374ba0a101fad72bd2.tar.gz
Add back VCL snippet lexer analyse_text.
-rw-r--r--pygments/lexers/varnish.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pygments/lexers/varnish.py b/pygments/lexers/varnish.py
index 437913e9..e64a601b 100644
--- a/pygments/lexers/varnish.py
+++ b/pygments/lexers/varnish.py
@@ -169,6 +169,10 @@ class VCLSnippetLexer(VCLLexer):
mimetypes = ['text/x-vclsnippet']
filenames = []
+ def analyse_text(text):
+ # override method inherited from VCLLexer
+ return 0
+
tokens = {
'snippetspre': [
(r'\.\.\.+', Comment),