[gtksourceview] sweave.lang: allow spaces before R block delimiter



commit 592921b2ad38d4c0e9b1d724ceafc87579069b96
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Feb 8 16:50:21 2014 +0100

    sweave.lang: allow spaces before R block delimiter
    
    So the R block delimiter can be indented.

 data/language-specs/sweave.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/sweave.lang b/data/language-specs/sweave.lang
index 84f75a0..dc231d0 100644
--- a/data/language-specs/sweave.lang
+++ b/data/language-specs/sweave.lang
@@ -44,7 +44,7 @@
     </context>
 
     <context id="R-block" class="no-spell-check">
-      <start>^&lt;&lt;.*&gt;&gt;=</start>
+      <start>^\s*&lt;&lt;.*&gt;&gt;=</start>
       <end>@</end>
       <include>
         <context sub-pattern="0" where="start" style-ref="command"/>


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