From 3383c003fd07f3b3dcbcb66d7d74cd22b2e33d15 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Tue, 12 Jul 2005 18:30:54 +0000 Subject: [PATCH] * perl.syntax: #! lines are marked as contexts instead of keywords. * sh.syntax: Likewise. --- syntax/ChangeLog | 6 ++++++ syntax/perl.syntax | 8 ++------ syntax/sh.syntax | 7 ++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/syntax/ChangeLog b/syntax/ChangeLog index bb752d011..5ba38033f 100644 --- a/syntax/ChangeLog +++ b/syntax/ChangeLog @@ -1,3 +1,9 @@ +2005-07-12 Roland Illig + + * perl.syntax: #! lines are marked as contexts instead of + keywords. + * sh.syntax: Likewise. + 2005-07-05 Roland Illig * html.syntax: Attribute values may also be delimited by single diff --git a/syntax/perl.syntax b/syntax/perl.syntax index b447716d6..c4120a8a6 100644 --- a/syntax/perl.syntax +++ b/syntax/perl.syntax @@ -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 @@ -341,6 +335,8 @@ context default keyword whole getprotoent yellow keyword whole setprotoent yellow +context linestart #! \n brightcyan black + context exclusive whole <\[\s\\\]EOF EOF green context # \n brown spellcheck diff --git a/syntax/sh.syntax b/syntax/sh.syntax index 860dafb24..c03b7dcc6 100644 --- a/syntax/sh.syntax +++ b/syntax/sh.syntax @@ -1,4 +1,3 @@ - context default keyword ;; brightred keyword \\@ brightred @@ -14,8 +13,6 @@ context default keyword { brightcyan keyword } brightcyan - keyword whole linestart #!\[\s\]*\n brightcyan black - keyword $\* brightred keyword $@ brightred keyword $# brightred @@ -164,6 +161,8 @@ wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ +context linestart #! \n brightcyan black + context # \n brown spellcheck @@ -335,5 +334,3 @@ wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ keyword whole ypdomainname cyan keyword whole zcat cyan keyword whole zsh cyan - -