[gtksourceview/wip/latex: 10/11] latex.lang: better command regex



commit e93eaa3ff0242375e551d591f03a7daed88da5b2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Nov 25 21:23:16 2013 +0100

    latex.lang: better command regex
    
    Some commands end with *, like \chapter*{}.

 data/language-specs/latex.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index 9bcee12..a68204d 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -206,7 +206,7 @@
     </context>
 
     <context id="command" style-ref="command" class="no-spell-check">
-      <match>\\[a-zA-Z]+</match>
+      <match>\\[a-zA-Z]+\*?</match>
     </context>
 
     <context id="in-math" class="no-spell-check">


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