gtksourceview r1965 - in trunk: . gtksourceview/language-specs



Author: muntyan
Date: Wed Jun 18 18:31:41 2008
New Revision: 1965
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=1965&view=rev

Log:
2008-06-18  Yevgen Muntyan  <muntyan tamu edu>

	* gtksourceview/language-specs/perl.lang: try to avoid problems
        with pattern rules, bugs 507075 and 535703.



Modified:
   trunk/ChangeLog
   trunk/gtksourceview/language-specs/perl.lang

Modified: trunk/gtksourceview/language-specs/perl.lang
==============================================================================
--- trunk/gtksourceview/language-specs/perl.lang	(original)
+++ trunk/gtksourceview/language-specs/perl.lang	Wed Jun 18 18:31:41 2008
@@ -164,8 +164,11 @@
     <!-- this assertion is shared by all the regex contexts to avoid wrong
          highlighing of function calls, etc.
          \b can't be used because of $var, @var, &func, %func.              -->
+    <!-- FIXME I added { and ( to the list to fix #507075 and #535703. Someone
+         please look at it, it seems wrong. It probably should be a positive
+         look-behind. -->
     <define-regex id="pattern-before" extended="true">
-      (?&lt;![a-zA-Z0-9 %])
+      (?&lt;![a-zA-Z0-9 %{(])
     </define-regex>
 
     <context id="in-pattern">



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