[gtksourceview] latex.lang: support *-forms headings



commit db5d30f275c32666511686bc31a79434115db53b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu May 22 16:01:28 2014 +0200

    latex.lang: support *-forms headings
    
    Example:
    \section*{text}
    
    The section won't be numbered, and won't appear in the table of
    contents.

 data/language-specs/latex.lang |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index 88a8250..f9fa603 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -378,7 +378,7 @@
     <context id="headings">
       <include>
         <context id="part" style-inside="true" style-ref="part" end-at-line-end="true">
-          <start>(\\part)\{</start>
+          <start>(\\part\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -388,7 +388,7 @@
         </context>
 
         <context id="chapter" style-inside="true" style-ref="chapter" end-at-line-end="true">
-          <start>(\\chapter)\{</start>
+          <start>(\\chapter\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -398,7 +398,7 @@
         </context>
 
         <context id="section" style-inside="true" style-ref="section" end-at-line-end="true">
-          <start>(\\section)\{</start>
+          <start>(\\section\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -408,7 +408,7 @@
         </context>
 
         <context id="subsection" style-inside="true" style-ref="subsection" end-at-line-end="true">
-          <start>(\\subsection)\{</start>
+          <start>(\\subsection\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -418,7 +418,7 @@
         </context>
 
         <context id="subsubsection" style-inside="true" style-ref="subsubsection" end-at-line-end="true">
-          <start>(\\subsubsection)\{</start>
+          <start>(\\subsubsection\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -428,7 +428,7 @@
         </context>
 
         <context id="paragraph" style-inside="true" style-ref="paragraph" end-at-line-end="true">
-          <start>(\\paragraph)\{</start>
+          <start>(\\paragraph\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>
@@ -438,7 +438,7 @@
         </context>
 
         <context id="subparagraph" style-inside="true" style-ref="subparagraph" end-at-line-end="true">
-          <start>(\\subparagraph)\{</start>
+          <start>(\\subparagraph\*?)\{</start>
           <end>\}</end>
           <include>
             <context sub-pattern="1" where="start" style-ref="common-commands"/>


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