[gtksourceview] Add a "path" class for contexts with a file name



commit 3aa77e9755b1f6a56462f95a1ba44f57aa1f4917
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Mar 26 22:46:55 2015 +0100

    Add a "path" class for contexts with a file name
    
    This is useful to avoid treating filenames as other text. For instance
    it could be used to implment linking.

 data/language-specs/c.lang       |    2 +-
 data/language-specs/fortran.lang |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index 03892fd..17e3a28 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -106,7 +106,7 @@
         (".*?"|&lt;.*&gt;)
       </match>
       <include>
-        <context id="included-file" sub-pattern="2" style-ref="included-file"/>
+        <context id="included-file" sub-pattern="2" style-ref="included-file" class="path"/>
       </include>
     </context>
 
diff --git a/data/language-specs/fortran.lang b/data/language-specs/fortran.lang
index 927f971..134c8c3 100644
--- a/data/language-specs/fortran.lang
+++ b/data/language-specs/fortran.lang
@@ -81,7 +81,7 @@
         (".*?"|&lt;.*&gt;)
       </match>
       <include>
-        <context id="included-file" sub-pattern="2" style-ref="included-file"/>
+        <context id="included-file" sub-pattern="2" style-ref="included-file" class="path"/>
       </include>
     </context>
 


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