diff options
author | Georg Brandl <georg@python.org> | 2014-11-08 15:15:51 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-08 15:15:51 +0100 |
commit | 0709cd8b978937725382d83953bdad97b78e7b8b (patch) | |
tree | 400c387c9f8e0685f040882aff3f5dfed7555b5b /pygments/lexers/php.py | |
parent | f46cc61a3ef609baea88aae3869081a741fc6e69 (diff) | |
download | pygments-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.py | 2 |
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 |