change of syntax files



I would like to simplify some of the syntax files in the way the attached Perl example shows.

[ ] Do it
[ ] Don't do it
[ ] I don't care

Roland
? perl.syntax.patch
Index: perl.syntax
===================================================================
RCS file: /cvsroot/mc/mc/syntax/perl.syntax,v
retrieving revision 1.12
diff -u -p -r1.12 perl.syntax
--- perl.syntax	3 Jul 2005 11:47:07 -0000	1.12
+++ perl.syntax	3 Jul 2005 20:11:29 -0000
@@ -1,10 +1,4 @@
 context default
-    keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/perl brightcyan black
-    keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/perl brightcyan black
-    keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/perl brightcyan black
-    keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/perl brightcyan black
-    keyword whole linestart #!\[\s\]/bin/perl brightcyan black
-
     keyword $_ red
     keyword $. red
     keyword $/ red
@@ -342,6 +336,9 @@ context default
     keyword whole setprotoent yellow
 
 context exclusive whole <\[\s\\\]EOF EOF green
+
+context linestart #! \n brightcyan black
+
 context # \n brown
     spellcheck
 context exclusive linestart = linestart =cut brown


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