[gtksourceview] Sweave.lang: Handle R S4 slots (@) correctly



commit 672d8b73f8dfe64f5e03c4e953b6c1bd01e66e7c
Author: Mathias Moser <matmoser wu ac at>
Date:   Sun Apr 20 20:59:53 2014 +0200

    Sweave.lang: Handle R S4 slots (@) correctly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728614

 data/language-specs/sweave.lang |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/sweave.lang b/data/language-specs/sweave.lang
index dc231d0..02bd44a 100644
--- a/data/language-specs/sweave.lang
+++ b/data/language-specs/sweave.lang
@@ -50,6 +50,9 @@
         <context sub-pattern="0" where="start" style-ref="command"/>
         <context sub-pattern="0" where="end" style-ref="command"/>
         <context ref="r:r"/>
+        <context id="R-slot" class="no-spell-check">
+          <match>[[:alnum:]] [[:alnum:]]</match>
+        </context>
       </include>
     </context>
 


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