[gtksourceview] Revert "html.lang: Require end tags for <style> and <script>"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Revert "html.lang: Require end tags for <style> and <script>"
- Date: Sun, 4 Aug 2019 22:27:04 +0000 (UTC)
commit 8d676465717d71c0a54626246d5ac3bfab0697dc
Author: Jeffery To <jeffery to gmail com>
Date: Mon Aug 5 04:26:18 2019 +0800
Revert "html.lang: Require end tags for <style> and <script>"
This reverts commit 600229589eabdcab70cd86016a6d387d9e7f67c2.
Inline SVG can include style and script elements, and like other XML
elements they can be self-closed.
data/language-specs/html.lang | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index 94fdf287..30145c2a 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -297,6 +297,10 @@
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
+ <context end-parent="true" style-ref="tag">
+ <match>/></match>
+ </context>
+
<context id="style-code" end-parent="true">
<start>></start>
<end></style\s*></end>
@@ -316,6 +320,10 @@
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
+ <context end-parent="true" style-ref="tag">
+ <match>/></match>
+ </context>
+
<context id="js-code" end-parent="true">
<start>></start>
<end></script\s*></end>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]