[gtksourceview] latex.lang: simplify specific-commands



commit ba41910c44420e890bd830b60aa71e74d43c57f3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jul 29 13:31:29 2016 +0200

    latex.lang: simplify specific-commands
    
    The part between curly braces is no longer highlighted, so no need to
    check carefully what it contains.

 data/language-specs/latex.lang |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index f58e981..fa33caf 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -291,21 +291,21 @@
     <context id="specific-commands">
       <include>
         <context id="documentclass" class="no-spell-check">
-          <match>(\\documentclass)(\[.*\])?(\{[a-zA-Z]+\})?</match>
+          <match>(\\documentclass)(\[.*\])?(\{.*\})?</match>
           <include>
             <context sub-pattern="1" style-ref="common-commands"/>
           </include>
         </context>
 
         <context id="usepackage" class="no-spell-check">
-          <match>(\\usepackage)(\[.*\])?(\{[0-9a-zA-Z,\s]+\})?</match>
+          <match>(\\usepackage)(\[.*\])?(\{.*\})?</match>
           <include>
             <context sub-pattern="1" style-ref="include"/>
           </include>
         </context>
 
         <context id="begin-end-command" class="no-spell-check">
-          <match>(\\(begin|end))\{[a-zA-Z0-9]+\*?\}</match>
+          <match>(\\(begin|end))\{.*\}</match>
           <include>
             <context sub-pattern="1" style-ref="common-commands"/>
           </include>


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