summaryrefslogtreecommitdiff
path: root/pygments/lexers/php.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-08 15:15:51 +0100
committerGeorg Brandl <georg@python.org>2014-11-08 15:15:51 +0100
commit0709cd8b978937725382d83953bdad97b78e7b8b (patch)
tree400c387c9f8e0685f040882aff3f5dfed7555b5b /pygments/lexers/php.py
parentf46cc61a3ef609baea88aae3869081a741fc6e69 (diff)
downloadpygments-0709cd8b978937725382d83953bdad97b78e7b8b.tar.gz
Closes #1055: fixup guessing routines for HTML/XML related markup
* remove too broad recognition for Lasso lexer * recognize XML declaration (<?xml ...?>) as XML * make HTML doctype recognition more general (HTML5 only requires <!DOCTYPE html>) * fix PHP not to recognize XML declarations
Diffstat (limited to 'pygments/lexers/php.py')
-rw-r--r--pygments/lexers/php.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py
index 06aa3718..08dfa6a5 100644
--- a/pygments/lexers/php.py
+++ b/pygments/lexers/php.py
@@ -242,6 +242,4 @@ class PhpLexer(RegexLexer):
rv = 0.0
if re.search(r'<\?(?!xml)', text):
rv += 0.3
- if '?>' in text:
- rv += 0.1
return rv