[gtksourceview] Improve fortran syntax highlighting



commit b292cbe7ec512da7650fdfc55df2d4e4c62ccee2
Author: Toon Verstraelen <Toon Verstraelen UGent be>
Date:   Thu Oct 22 06:17:19 2009 +0200

    Improve fortran syntax highlighting

 gtksourceview/language-specs/fortran.lang |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/language-specs/fortran.lang b/gtksourceview/language-specs/fortran.lang
index 4f82d8c..d41cf52 100644
--- a/gtksourceview/language-specs/fortran.lang
+++ b/gtksourceview/language-specs/fortran.lang
@@ -93,6 +93,7 @@
       <keyword>if</keyword>
       <keyword>implicit none</keyword>
       <keyword>include</keyword>
+      <keyword>interface</keyword>
       <keyword>intrinsic</keyword>
       <keyword>kind</keyword>
       <keyword>len</keyword>
@@ -374,6 +375,7 @@
       <keyword>dimension</keyword>
       <keyword>parameter</keyword>
       <keyword>intent</keyword>
+      <keyword>public</keyword>
       <keyword>private</keyword>
       <keyword>optional</keyword>
       <keyword>pointer</keyword>
@@ -387,6 +389,7 @@
         [+-]?
         ((\.[0-9]+ | [0-9]+\.[0-9]*) ([ed][+-]?[0-9]*)? |
          ([0-9]+[ed][+-]?[0-9]*))
+         ([_]([0-9]+|[a-z][\w_]*))?
         (?![\w\.])
       </match>
     </context>
@@ -395,6 +398,7 @@
       <match extended="true">
         (?&lt;![\w\.])
         [+-]? ([1-9][0-9]*|0)
+        ([_]([0-9]+|[a-z][\w_]*))?
         (?![\w\.])
       </match>
     </context>



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