[gtksourceview/wip/font-scaling] html.lang fixes (squash into html.lang-patch)



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>&lt;title&gt;</start>
+                    <end>&lt;/title&gt;</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>&lt;\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>&gt;</start>
+                            <end>&lt;\s*/h1\s*&gt;</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>&lt;\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>&gt;</start>
+                            <end>&lt;\s*/h2\s*&gt;</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>&lt;\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>&gt;</start>
+                            <end>&lt;\s*/h3\s*&gt;</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>&lt;\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>&gt;</start>
+                            <end>&lt;\s*/h4\s*&gt;</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>&lt;\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>&gt;</start>
+                            <end>&lt;\s*/h5\s*&gt;</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>&lt;title&gt;</start>
-                    <end>&lt;/title&gt;</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>&lt;\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>&gt;</start>
-                            <end>&lt;\s*/h1\s*&gt;</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>&lt;\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>&gt;</start>
-                            <end>&lt;\s*/h2\s*&gt;</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>&lt;\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>&gt;</start>
-                            <end>&lt;\s*/h3\s*&gt;</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>&lt;\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>&gt;</start>
-                            <end>&lt;\s*/h4\s*&gt;</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>&lt;\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>&gt;</start>
-                            <end>&lt;\s*/h5\s*&gt;</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]