[gtksourceview] latex: no code changes, only fixed indentation and move definition of context id=latex childs outsid



commit 066fb99fcfcb0912b83f125c61a546f4b03c511d
Author: Carnë Draug <carandraug+dev gmail com>
Date:   Tue Mar 26 07:05:21 2013 +0000

    latex: no code changes, only fixed indentation and move definition of context id=latex childs outside

 data/language-specs/latex.lang |  522 ++++++++++++++++++++--------------------
 1 files changed, 262 insertions(+), 260 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index 10319b4..6a9fb67 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -46,284 +46,286 @@
   </styles>
 
   <definitions>
-        <context id="common-commands" style-ref="common-commands" class="no-spell-check">
-            <prefix>\\</prefix>
-            <!-- We need to special case "_" since it is not considered a
-              boundary but it is allowed in latex -->
-            <suffix>(\b|(?=_))</suffix>
-            <keyword>Alpha</keyword>
-            <keyword>Beta</keyword>
-            <keyword>Chi</keyword>
-            <keyword>Delta</keyword>
-            <keyword>Epsilon</keyword>
-            <keyword>Eta</keyword>
-            <keyword>Gamma</keyword>
-            <keyword>Iota</keyword>
-            <keyword>Kappa</keyword>
-            <keyword>Lambda</keyword>
-            <keyword>Leftarrow</keyword>
-            <keyword>Leftrightarrow</keyword>
-            <keyword>Mu</keyword>
-            <keyword>Nu</keyword>
-            <keyword>Omega</keyword>
-            <keyword>Phi</keyword>
-            <keyword>Pi</keyword>
-            <keyword>Psi</keyword>
-            <keyword>Rho</keyword>
-            <keyword>Rightarrow</keyword>
-            <keyword>Sigma</keyword>
-            <keyword>Tau</keyword>
-            <keyword>Zeta</keyword>
-            <keyword>alpha</keyword>
-            <keyword>appendix</keyword>
-            <keyword>begin</keyword>
-            <keyword>beta</keyword>
-            <keyword>bigcap</keyword>
-            <keyword>bigcup</keyword>
-            <keyword>cap</keyword>
-            <keyword>cdot</keyword>
-            <keyword>chapter</keyword>
-            <keyword>chi</keyword>
-            <keyword>cite</keyword>
-            <keyword>cup</keyword>
-            <keyword>delta</keyword>
-            <keyword>documentclass</keyword>
-            <keyword>end</keyword>
-            <keyword>enumi</keyword>
-            <keyword>enumii</keyword>
-            <keyword>enumiii</keyword>
-            <keyword>enumiv</keyword>
-            <keyword>epsilon</keyword>
-            <keyword>equation</keyword>
-            <keyword>eta</keyword>
-            <keyword>exists</keyword>
-            <keyword>figure</keyword>
-            <keyword>footnote</keyword>
-            <keyword>footnotemark</keyword>
-            <keyword>footnotetext</keyword>
-            <keyword>forall</keyword>
-            <keyword>gamma</keyword>
-            <keyword>geq</keyword>
-            <keyword>in</keyword>
-            <keyword>int</keyword>
-            <keyword>iota</keyword>
-            <keyword>kappa</keyword>
-            <keyword>label</keyword>
-            <keyword>lambda</keyword>
-            <keyword>ldots</keyword>
-            <keyword>leftarrow</keyword>
-            <keyword>leq</keyword>
-            <keyword>mpfootnote</keyword>
-            <keyword>mu</keyword>
-            <keyword>neq</keyword>
-            <keyword>newcommand</keyword>
-            <keyword>newenvironment</keyword>
-            <keyword>newfont</keyword>
-            <keyword>newtheorem</keyword>
-            <keyword>not</keyword>
-            <keyword>notin</keyword>
-            <keyword>nu</keyword>
-            <keyword>omega</keyword>
-            <keyword>onecolumn</keyword>
-            <keyword>page</keyword>
-            <keyword>pageref</keyword>
-            <keyword>paragraph</keyword>
-            <keyword>part</keyword>
-            <keyword>phi</keyword>
-            <keyword>pi</keyword>
-            <keyword>prod</keyword>
-            <keyword>psi</keyword>
-            <keyword>qquad</keyword>
-            <keyword>quad</keyword>
-            <keyword>ref</keyword>
-            <keyword>rho</keyword>
-            <keyword>rightarrow</keyword>
-            <keyword>section</keyword>
-            <keyword>setminus</keyword>
-            <keyword>sigma</keyword>
-            <keyword>subparagraph</keyword>
-            <keyword>subsection</keyword>
-            <keyword>subset</keyword>
-            <keyword>subseteq</keyword>
-            <keyword>subsetneq</keyword>
-            <keyword>subsubsection</keyword>
-            <keyword>subsubsubsection</keyword>
-            <keyword>sum</keyword>
-            <keyword>supset</keyword>
-            <keyword>supseteq</keyword>
-            <keyword>supsetneq</keyword>
-            <keyword>table</keyword>
-            <keyword>tau</keyword>
-            <keyword>times</keyword>
-            <keyword>twocolumn</keyword>
-            <keyword>varepsilon</keyword>
-            <keyword>varphi</keyword>
-            <keyword>zeta</keyword>
-        </context>
+    <context id="common-commands" style-ref="common-commands" class="no-spell-check">
+      <prefix>\\</prefix>
+      <!-- We need to special case "_" since it is not considered a
+        boundary but it is allowed in latex -->
+      <suffix>(\b|(?=_))</suffix>
+      <keyword>Alpha</keyword>
+      <keyword>Beta</keyword>
+      <keyword>Chi</keyword>
+      <keyword>Delta</keyword>
+      <keyword>Epsilon</keyword>
+      <keyword>Eta</keyword>
+      <keyword>Gamma</keyword>
+      <keyword>Iota</keyword>
+      <keyword>Kappa</keyword>
+      <keyword>Lambda</keyword>
+      <keyword>Leftarrow</keyword>
+      <keyword>Leftrightarrow</keyword>
+      <keyword>Mu</keyword>
+      <keyword>Nu</keyword>
+      <keyword>Omega</keyword>
+      <keyword>Phi</keyword>
+      <keyword>Pi</keyword>
+      <keyword>Psi</keyword>
+      <keyword>Rho</keyword>
+      <keyword>Rightarrow</keyword>
+      <keyword>Sigma</keyword>
+      <keyword>Tau</keyword>
+      <keyword>Zeta</keyword>
+      <keyword>alpha</keyword>
+      <keyword>appendix</keyword>
+      <keyword>begin</keyword>
+      <keyword>beta</keyword>
+      <keyword>bigcap</keyword>
+      <keyword>bigcup</keyword>
+      <keyword>cap</keyword>
+      <keyword>cdot</keyword>
+      <keyword>chapter</keyword>
+      <keyword>chi</keyword>
+      <keyword>cite</keyword>
+      <keyword>cup</keyword>
+      <keyword>delta</keyword>
+      <keyword>documentclass</keyword>
+      <keyword>end</keyword>
+      <keyword>enumi</keyword>
+      <keyword>enumii</keyword>
+      <keyword>enumiii</keyword>
+      <keyword>enumiv</keyword>
+      <keyword>epsilon</keyword>
+      <keyword>equation</keyword>
+      <keyword>eta</keyword>
+      <keyword>exists</keyword>
+      <keyword>figure</keyword>
+      <keyword>footnote</keyword>
+      <keyword>footnotemark</keyword>
+      <keyword>footnotetext</keyword>
+      <keyword>forall</keyword>
+      <keyword>gamma</keyword>
+      <keyword>geq</keyword>
+      <keyword>in</keyword>
+      <keyword>int</keyword>
+      <keyword>iota</keyword>
+      <keyword>kappa</keyword>
+      <keyword>label</keyword>
+      <keyword>lambda</keyword>
+      <keyword>ldots</keyword>
+      <keyword>leftarrow</keyword>
+      <keyword>leq</keyword>
+      <keyword>mpfootnote</keyword>
+      <keyword>mu</keyword>
+      <keyword>neq</keyword>
+      <keyword>newcommand</keyword>
+      <keyword>newenvironment</keyword>
+      <keyword>newfont</keyword>
+      <keyword>newtheorem</keyword>
+      <keyword>not</keyword>
+      <keyword>notin</keyword>
+      <keyword>nu</keyword>
+      <keyword>omega</keyword>
+      <keyword>onecolumn</keyword>
+      <keyword>page</keyword>
+      <keyword>pageref</keyword>
+      <keyword>paragraph</keyword>
+      <keyword>part</keyword>
+      <keyword>phi</keyword>
+      <keyword>pi</keyword>
+      <keyword>prod</keyword>
+      <keyword>psi</keyword>
+      <keyword>qquad</keyword>
+      <keyword>quad</keyword>
+      <keyword>ref</keyword>
+      <keyword>rho</keyword>
+      <keyword>rightarrow</keyword>
+      <keyword>section</keyword>
+      <keyword>setminus</keyword>
+      <keyword>sigma</keyword>
+      <keyword>subparagraph</keyword>
+      <keyword>subsection</keyword>
+      <keyword>subset</keyword>
+      <keyword>subseteq</keyword>
+      <keyword>subsetneq</keyword>
+      <keyword>subsubsection</keyword>
+      <keyword>subsubsubsection</keyword>
+      <keyword>sum</keyword>
+      <keyword>supset</keyword>
+      <keyword>supseteq</keyword>
+      <keyword>supsetneq</keyword>
+      <keyword>table</keyword>
+      <keyword>tau</keyword>
+      <keyword>times</keyword>
+      <keyword>twocolumn</keyword>
+      <keyword>varepsilon</keyword>
+      <keyword>varphi</keyword>
+      <keyword>zeta</keyword>
+    </context>
 
-        <context id="specials-symbol" style-ref="command" class="no-spell-check">
-            <prefix>\\</prefix>
-            <suffix></suffix>
+    <context id="specials-symbol" style-ref="command" class="no-spell-check">
+      <prefix>\\</prefix>
+      <suffix></suffix>
 
-            <keyword>\$</keyword>
-            <keyword>&amp;</keyword>
-            <keyword>%</keyword>
-            <keyword>#</keyword>
-            <keyword>_</keyword>
-            <keyword>\{</keyword>
-            <keyword>\}</keyword>
-            <keyword>~</keyword>
-            <keyword>\^</keyword>
-            <keyword>\\</keyword>
-        </context>
+      <keyword>\$</keyword>
+      <keyword>&amp;</keyword>
+      <keyword>%</keyword>
+      <keyword>#</keyword>
+      <keyword>_</keyword>
+      <keyword>\{</keyword>
+      <keyword>\}</keyword>
+      <keyword>~</keyword>
+      <keyword>\^</keyword>
+      <keyword>\\</keyword>
+    </context>
 
-        <context id="command" style-ref="command" class="no-spell-check">
-            <match>\\[a-zA-Z]+</match>
-        </context>
+    <context id="command" style-ref="command" class="no-spell-check">
+      <match>\\[a-zA-Z]+</match>
+    </context>
 
-        <context id="in-math" class="no-spell-check">
-            <include>
-                <context ref="common-commands"/>
-                <context ref="specials-symbol"/>
-                <context ref="command"/>
-            </include>
-        </context>
+    <context id="in-math" class="no-spell-check">
+      <include>
+        <context ref="common-commands"/>
+        <context ref="specials-symbol"/>
+        <context ref="command"/>
+      </include>
+    </context>
 
-        <context id="in-inline-math" class="no-spell-check">
-            <include>
-                <context ref="common-commands"/>
-                <context ref="specials-symbol"/>
-                <context ref="command"/>
-            </include>
-        </context>
+    <context id="in-inline-math" class="no-spell-check">
+      <include>
+        <context ref="common-commands"/>
+        <context ref="specials-symbol"/>
+        <context ref="command"/>
+      </include>
+    </context>
 
-        <context id="latex">
-            <include>
+    <context id="comment" style-ref="comment">
+      <start>%</start>
+      <end>$</end>
+      <include>
+        <context ref="def:in-comment"/>
+      </include>
+    </context>
 
-                <context id="comment" style-ref="comment">
-                    <start>%</start>
-                    <end>$</end>
-                    <include>
-                        <context ref="def:in-comment"/>
-                    </include>
-                </context>
+    <context id="verbatim-comment" style-ref="comment" class="no-spell-check">
+      <start>\\begin\{comment\}</start>
+      <end>\\end\{comment\}</end>
+      <include>
+        <context ref="def:in-comment"/>
+      </include>
+    </context>
 
-                <context id="verbatim-comment" style-ref="comment" class="no-spell-check">
-                    <start>\\begin\{comment\}</start>
-                    <end>\\end\{comment\}</end>
-                    <include>
-                        <context ref="def:in-comment"/>
-                    </include>
-                </context>
+    <context id="math-1" style-ref="math" class="no-spell-check">
+      <start>\$\$</start>
+      <end>\$\$</end>
+      <include>
+        <context sub-pattern="0" where="start" style-ref="math-bound"/>
+        <context sub-pattern="0" where="end" style-ref="math-bound"/>
+        <context ref="in-math"/>
+      </include>
+    </context>
 
-                <context id="math-1" style-ref="math" class="no-spell-check">
-                    <start>\$\$</start>
-                    <end>\$\$</end>
-                    <include>
-                        <context sub-pattern="0" where="start" style-ref="math-bound"/>
-                        <context sub-pattern="0" where="end" style-ref="math-bound"/>
-                        <context ref="in-math"/>
-                    </include>
-                </context>
+    <context id="math-2" style-ref="math" class="no-spell-check">
+      <start>\\\[</start>
+      <end>\\\]</end>
+      <include>
+        <context sub-pattern="0" where="start" style-ref="math-bound"/>
+        <context sub-pattern="0" where="end" style-ref="math-bound"/>
+        <context ref="in-math"/>
+      </include>
+    </context>
 
-                <context id="math-2" style-ref="math" class="no-spell-check">
-                    <start>\\\[</start>
-                    <end>\\\]</end>
-                    <include>
-                        <context sub-pattern="0" where="start" style-ref="math-bound"/>
-                        <context sub-pattern="0" where="end" style-ref="math-bound"/>
-                        <context ref="in-math"/>
-                    </include>
-                </context>
+    <context id="inline-math-1" style-ref="inline-math" class="no-spell-check">
+      <start>\$</start>
+      <end>\$</end>
+      <include>
+        <context sub-pattern="0" where="start" style-ref="math-bound"/>
+        <context sub-pattern="0" where="end" style-ref="math-bound"/>
+        <context ref="in-inline-math"/>
+      </include>
+    </context>
 
-                <context id="inline-math-1" style-ref="inline-math" class="no-spell-check">
-                    <start>\$</start>
-                    <end>\$</end>
-                    <include>
-                        <context sub-pattern="0" where="start" style-ref="math-bound"/>
-                        <context sub-pattern="0" where="end" style-ref="math-bound"/>
-                        <context ref="in-inline-math"/>
-                    </include>
-                </context>
+    <context id="inline-math-2" style-ref="inline-math" class="no-spell-check">
+      <start>\\\(</start>
+      <end>\\\)</end>
+      <include>
+        <context sub-pattern="0" where="start" style-ref="math-bound"/>
+        <context sub-pattern="0" where="end" style-ref="math-bound"/>
+        <context ref="in-inline-math"/>
+      </include>
+    </context>
 
-                <context id="inline-math-2" style-ref="inline-math" class="no-spell-check">
-                    <start>\\\(</start>
-                    <end>\\\)</end>
-                    <include>
-                        <context sub-pattern="0" where="start" style-ref="math-bound"/>
-                        <context sub-pattern="0" where="end" style-ref="math-bound"/>
-                        <context ref="in-inline-math"/>
-                    </include>
-                </context>
+    <context id="verbatim-env" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
+      <start>(\\begin)\{(verbatim\*?|lstlisting|alltt)\}</start>
+      <end>(\\end)\{\%{2 start}\}</end>
+      <include>
+        <context sub-pattern="1" where="start" style-ref="common-commands" class="no-spell-check"/>
+        <context sub-pattern="1" where="end" style-ref="common-commands" class="no-spell-check"/>
+      </include>
+    </context>
 
-                <context id="verbatim-env" style-inside="true" style-ref="verbatim" 
class-disabled="no-spell-check">
-                    <start extended="true">
-                        (\\begin)\{
-                            (
-                                verbatim\*?|
-                                lstlisting|
-                                alltt
-                            )
-                        \}
-                    </start>
-                    <end>(\\end)\{\%{2 start}\}</end>
-                    <include>
-                      <context sub-pattern="1" where="start" style-ref="common-commands" 
class="no-spell-check"/>
-                      <context sub-pattern="1" where="end" style-ref="common-commands" 
class="no-spell-check"/>
-                    </include>
-                </context>
+    <!--using brackets is an experimental feature from the listings package. The
+        following must support these cases:
 
-                <!--using brackets is an experimental feature from the listings package. The
-                    following must support these cases:
+          \lstinline[]{code in here}
+          \lstinline[key=val, key=val]{code in here}
+          \lstinline[key=val, key=val]!code in here!
+          \lstinline[]!code in here!
+          \lstinline{code in here}
+          \lstinline{code in {here} but not in here}  % brackets do not nest
+          \lstinline!code in here!
+          \lstinline=code in here=
 
-                      \lstinline[]{code in here}
-                      \lstinline[key=val, key=val]{code in here}
-                      \lstinline[key=val, key=val]!code in here!
-                      \lstinline[]!code in here!
-                      \lstinline{code in here}
-                      \lstinline{code in {here} but not in here}  % brackets do not nest
-                      \lstinline!code in here!
-                      \lstinline=code in here=
+          If using \verb instead of \lstinline, the brackets annot be used
+        -->
+    <context id="lstinline-brackets" style-inside="true" style-ref="verbatim" 
class-disabled="no-spell-check">
+      <start>(\\lstinline)(\[.*?\])?{</start>
+      <end>}</end>
+      <include>
+        <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
+      </include>
+    </context>
+    <context id="lstinline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
+      <start>(\\lstinline)(\[.*?\])?(\S)</start>
+      <end>\%{3 start}</end>
+      <include>
+        <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
+      </include>
+    </context>
+    <!-- If using \verb instead of \lstinline, the brackets cannot be used -->
+    <context id="verbatim-inline" style-inside="true" style-ref="verbatim" class-disabled="no-spell-check">
+      <start>(\\verb)\*?(\S)</start>
+      <end>\%{2 start}</end>
+      <include>
+        <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
+      </include>
+    </context>
 
-                      If using \verb instead of \lstinline, the brackets annot be used
-                    -->
-                <context id="lstinline-brackets" style-inside="true" style-ref="verbatim" 
class-disabled="no-spell-check">
-                    <start>(\\lstinline)(\[.*?\])?{</start>
-                    <end>}</end>
-                    <include>
-                      <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
-                    </include>
-                </context>
-                <context id="lstinline" style-inside="true" style-ref="verbatim" 
class-disabled="no-spell-check">
-                    <start>(\\lstinline)(\[.*?\])?(\S)</start>
-                    <end>\%{3 start}</end>
-                    <include>
-                      <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
-                    </include>
-                </context>
-                <!-- If using \verb instead of \lstinline, the brackets cannot be used -->
-                <context id="verbatim-inline" style-inside="true" style-ref="verbatim" 
class-disabled="no-spell-check">
-                    <start>(\\verb)\*?(\S)</start>
-                    <end>\%{2 start}</end>
-                    <include>
-                      <context sub-pattern="1" where="start" style-ref="command" class="no-spell-check"/>
-                    </include>
-                </context>
 
+  <context id="include" style-ref="include" class="no-spell-check">
+    <prefix>\\</prefix>
 
-                <context id="include" style-ref="include" class="no-spell-check">
-                    <prefix>\\</prefix>
+    <keyword>input</keyword>
+    <keyword>include</keyword>
+    <keyword>includeonly</keyword>
+    <keyword>usepackage</keyword>
+  </context>
 
-                    <keyword>input</keyword>
-                    <keyword>include</keyword>
-                    <keyword>includeonly</keyword>
-                    <keyword>usepackage</keyword>
-                </context>
-
-                <context ref="common-commands"/>
-                <context ref="specials-symbol"/>
-                <context ref="command"/>
-            </include>
-        </context>
+    <context id="latex">
+      <include>
+        <context ref="comment"/>
+        <context ref="verbatim-comment"/>
+        <context ref="math-1"/>
+        <context ref="math-2"/>
+        <context ref="inline-math-1"/>
+        <context ref="inline-math-2"/>
+        <context ref="verbatim-env"/>
+        <context ref="lstinline-brackets"/>
+        <context ref="lstinline"/>
+        <context ref="verbatim-inline"/>
+        <context ref="include"/>
+        <context ref="common-commands"/>
+        <context ref="specials-symbol"/>
+        <context ref="command"/>
+      </include>
+    </context>
   </definitions>
 </language>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]