[gtksourceview] html.lang: Remove unallowed whitespace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] html.lang: Remove unallowed whitespace
- Date: Thu, 11 Oct 2018 21:49:05 +0000 (UTC)
commit d09d8b92f3c15d2dbf30d7e585bf56289abaa56e
Author: Jeffery To <jeffery to gmail com>
Date: Tue Aug 14 20:23:25 2018 +0800
html.lang: Remove unallowed whitespace
* In start tags, there cannot be whitespace between the less-than and
the tag name
* In end tags, there cannot be whitespace between the less-than, slash,
and the tag name
* Comments must end with "-->" (no space allowed between "--" and ">")
https://html.spec.whatwg.org/multipage/syntax.html#start-tags
https://html.spec.whatwg.org/multipage/syntax.html#end-tags
https://html.spec.whatwg.org/multipage/syntax.html#comments
data/language-specs/html.lang | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index 5db6baaa..af1ffeaf 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -50,7 +50,7 @@
<!-- Html comments are more permissive than xml comments -->
<context id="comment" style-ref="comment" class="comment">
<start><!--</start>
- <end>--\s*></end>
+ <end>--></end>
<include>
<context ref="def:in-comment"/>
</include>
@@ -82,13 +82,13 @@
</include>
</context>
<context id="h1" end-at-line-end="true">
- <start><\s*h1</start>
+ <start><h1</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context id="h1-inside" style-inside="true" style-ref="h1" end-at-line-end="true"
end-parent="true">
<start>></start>
- <end><\s*/h1\s*></end>
+ <end></h1\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -99,13 +99,13 @@
</include>
</context>
<context id="h2" end-at-line-end="true">
- <start><\s*h2</start>
+ <start><h2</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context id="h2-inside" style-inside="true" style-ref="h2" end-at-line-end="true"
end-parent="true">
<start>></start>
- <end><\s*/h2\s*></end>
+ <end></h2\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -116,13 +116,13 @@
</include>
</context>
<context id="h3" end-at-line-end="true">
- <start><\s*h3</start>
+ <start><h3</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context id="h3-inside" style-inside="true" style-ref="h3" end-at-line-end="true"
end-parent="true">
<start>></start>
- <end><\s*/h3\s*></end>
+ <end></h3\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -133,13 +133,13 @@
</include>
</context>
<context id="h4" end-at-line-end="true">
- <start><\s*h4</start>
+ <start><h4</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context id="h4-inside" style-inside="true" style-ref="h4" end-at-line-end="true"
end-parent="true">
<start>></start>
- <end><\s*/h4\s*></end>
+ <end></h4\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -150,13 +150,13 @@
</include>
</context>
<context id="h5" end-at-line-end="true">
- <start><\s*h5</start>
+ <start><h5</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context id="h5-inside" style-inside="true" style-ref="h5" end-at-line-end="true"
end-parent="true">
<start>></start>
- <end><\s*/h5\s*></end>
+ <end></h5\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -213,18 +213,18 @@
</context>
<context id="style" class="no-spell-check">
- <start><\s*style\%]</start>
+ <start><style\%]</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context end-parent="true" style-ref="tag">
- <match>/\s*></match>
+ <match>/></match>
</context>
<context id="style-code" end-parent="true">
<start>></start>
- <end><\s*/\s*style\s*></end>
+ <end></style\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -236,18 +236,18 @@
</context>
<context id="script" class="no-spell-check">
- <start><\s*script\%]</start>
+ <start><script\%]</start>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context ref="generic-tag"/>
<context end-parent="true" style-ref="tag">
- <match>/\s*></match>
+ <match>/></match>
</context>
<context id="js-code" end-parent="true">
<start>></start>
- <end><\s*/\s*script\s*></end>
+ <end></script\s*></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
@@ -259,8 +259,8 @@
</context>
<context id="tag" class="no-spell-check">
- <start><\s*/?\s*[a-z0-9_-]+</start>
- <end>/?\s*></end>
+ <start></?[a-z0-9_-]+</start>
+ <end>/?></end>
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]