[gtksourceview/wip/font-scaling] html.lang fixes (squash into html.lang-patch)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/font-scaling] html.lang fixes (squash into html.lang-patch)
- Date: Sun, 5 Jan 2014 12:21:31 +0000 (UTC)
commit 922e516fab9cf37c04777455d2029bbe7feb9e2e
Author: Andreas Fuchs <anduchs gmail com>
Date: Sun Jan 5 11:33:57 2014 +0100
html.lang fixes (squash into html.lang-patch)
data/language-specs/html.lang | 188 ++++++++++++++++++++--------------------
1 files changed, 94 insertions(+), 94 deletions(-)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index df7c3b0..8d98b2b 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -71,6 +71,99 @@
<end></end>
</context>
+ <context id="headings">
+ <include>
+ <context id="title" style-inside="true" style-ref="title" end-at-line-end="true">
+ <start><title></start>
+ <end></title></end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ </include>
+ </context>
+ <context id="h1" end-at-line-end="true">
+ <start><\s*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>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ <!-- We cannot match any further here, because matching to tag will override
our end-match -->
+ </include>
+ </context>
+ </include>
+ </context>
+ <context id="h2" end-at-line-end="true">
+ <start><\s*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>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ <!-- We cannot match any further here, because matching to tag will override
our end-match -->
+ </include>
+ </context>
+ </include>
+ </context>
+ <context id="h3" end-at-line-end="true">
+ <start><\s*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>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ <!-- We cannot match any further here, because matching to tag will override
our end-match -->
+ </include>
+ </context>
+ </include>
+ </context>
+ <context id="h4" end-at-line-end="true">
+ <start><\s*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>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ <!-- We cannot match any further here, because matching to tag will override
our end-match -->
+ </include>
+ </context>
+ </include>
+ </context>
+ <context id="h5" end-at-line-end="true">
+ <start><\s*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>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="tag"/>
+ <context sub-pattern="0" where="end" style-ref="tag"/>
+ <!-- We cannot match any further here, because matching to tag will override
our end-match -->
+ </include>
+ </context>
+ </include>
+ </context>
+ </include>
+ </context>
+
<context id="generic-tag">
<include>
@@ -168,99 +261,6 @@
</include>
</context>
- <context id="headings">
- <include>
- <context id="title" style-inside="true" style-ref="title" end-at-line-end="true">
- <start><title></start>
- <end></title></end>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- </include>
- </context>
- <context id="h1" end-at-line-end="true">
- <start><\s*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>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- <!-- We cannot match any further here, because matching to tag will override
our end-match -->
- </include>
- </context>
- </include>
- </context>
- <context id="h2" end-at-line-end="true">
- <start><\s*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>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- <!-- We cannot match any further here, because matching to tag will override
our end-match -->
- </include>
- </context>
- </include>
- </context>
- <context id="h3" end-at-line-end="true">
- <start><\s*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>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- <!-- We cannot match any further here, because matching to tag will override
our end-match -->
- </include>
- </context>
- </include>
- </context>
- <context id="h4" end-at-line-end="true">
- <start><\s*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>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- <!-- We cannot match any further here, because matching to tag will override
our end-match -->
- </include>
- </context>
- </include>
- </context>
- <context id="h5" end-at-line-end="true">
- <start><\s*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>
- <include>
- <context sub-pattern="0" where="start" style-ref="tag"/>
- <context sub-pattern="0" where="end" style-ref="tag"/>
- <!-- We cannot match any further here, because matching to tag will override
our end-match -->
- </include>
- </context>
- </include>
- </context>
- </include>
- </context>
-
<context id="html">
<include>
<context ref="xml:doctype"/>
@@ -269,10 +269,10 @@
<context ref="xml:cdata"/>
<context ref="comment"/>
<context ref="dtd"/>
+ <context ref="headings"/>
<context ref="style"/>
<context ref="script"/>
<context ref="tag"/>
- <context ref="headings"/>
</include>
</context>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]