[gtksourceview] Fixes on prolog language. Fixes partially #602788



commit ec6f1e265068616d0797e50328a56314d165fca1
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Nov 29 13:33:06 2009 +0100

    Fixes on prolog language. Fixes partially #602788
    
    Highlight variables that word starts with capital letter and
    highlight _ only if it is not in a word.

 gtksourceview/language-specs/prolog.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/language-specs/prolog.lang b/gtksourceview/language-specs/prolog.lang
index 0972361..47ac6b4 100644
--- a/gtksourceview/language-specs/prolog.lang
+++ b/gtksourceview/language-specs/prolog.lang
@@ -60,7 +60,7 @@
     </context>
 
     <context id="variable" style-ref="variable">
-      <match>(_|[A-Z][A-Za-z0-9_]*)</match>
+      <match>\b(_|[A-Z][A-Za-z0-9_]*)\b</match>
     </context>
     
     <context id="operators" style-ref="operator">



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