[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate] part/syntax/data: HTML doctypes are case-insensitive.
From: Milian Wolff <mail () milianw ! de>
Date: 2014-05-31 15:19:22
Message-ID: E1Wql46-0006JW-Gv () scm ! kde ! org
[Download RAW message or body]
Git commit 90b64beb1a4e60928a21bda1be9af8697244be79 by Milian Wolff.
Committed on 31/05/2014 at 15:18.
Pushed by mwolff into branch 'master'.
HTML doctypes are case-insensitive.
Lowercase doctypes are being used in many places and work just fine.
Currently, we would highlight that as an error. This is now fixed.
See also:
http://stackoverflow.com/questions/7020961/uppercase-or-lowercase-doctype
M +2 -2 part/syntax/data/html.xml
http://commits.kde.org/kate/90b64beb1a4e60928a21bda1be9af8697244be79
diff --git a/part/syntax/data/html.xml b/part/syntax/data/html.xml
index 5d1dc2d..9bdd4b7 100644
--- a/part/syntax/data/html.xml
+++ b/part/syntax/data/html.xml
@@ -4,7 +4,7 @@
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
-<language name="HTML" version="2.0" kateversion="2.4" section="Markup" \
extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert \
Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> +<language name="HTML" \
version="2.1" kateversion="2.4" section="Markup" \
extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert \
Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
<highlighting>
<contexts>
@@ -17,7 +17,7 @@
<DetectIdentifier/>
<StringDetect attribute="Comment" context="Comment" String="<!--" \
beginRegion="comment" />
<StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" \
beginRegion="cdata" />
- <RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" \
beginRegion="doctype" /> + <RegExpr attribute="Doctype" context="Doctype" \
String="<!DOCTYPE\s+" insensitive="TRUE" beginRegion="doctype" />
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" \
beginRegion="pi" />
<RegExpr attribute="Element" context="CSS" String="<style\b" \
insensitive="TRUE" beginRegion="style" />
<RegExpr attribute="Element" context="JS" String="<script\b" \
insensitive="TRUE" beginRegion="script" />
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic