updated: [b3315ac] Ticket #2127: updated file extension for "sh"

2 views
Skip to first unread message

Yury V. Zaytsev

unread,
Apr 25, 2010, 8:39:16 AM4/25/10
to mc-co...@googlegroups.com
The following commit has been merged in the master branch:
commit b3315acf55fb967fc9d190a9b457dc1a3617b32e
Author: Michelle Konzack <linux4m...@tamay-dogan.net>
Date: Mon Apr 19 10:53:21 2010 +0200

Ticket #2127: updated file extension for "sh"

I find it realy annoying, if I put something in my BaSH configs and have
NO syntax hilighting so I have changed the line in Syntax which now
coloriser my BaSH configs nicely...

Signed-off-by: Yury V. Zaytsev <yu...@shurup.com>

diff --git a/misc/syntax/Syntax b/misc/syntax/Syntax
index 3ff1c81..0d0c5a2 100644
--- a/misc/syntax/Syntax
+++ b/misc/syntax/Syntax
@@ -37,7 +37,7 @@ include diff.syntax
file ..\*\\.lsm$ LSM\sFile
include lsm.syntax

-file ..\*\\.sh$ Shell\sScript ^#!.\*([\s/]([abd-z]?|ba|pdk)sh|@SH@)
+file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bash_userstuff|bashrc|profile))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
include sh.syntax

file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)

--
Midnight Commander Development


--
Subscription settings: http://groups.google.com/group/mc-commits/subscribe?hl=en-GB

Oswald Buddenhagen

unread,
Apr 25, 2010, 12:21:51 PM4/25/10
to mc-co...@googlegroups.com
On Sun, Apr 25, 2010 at 02:39:16PM +0200, Yury V. Zaytsev wrote:
> +file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bash_userstuff|bashrc|profile))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
>
wtf is bash_userstuff?

a much less scary and probably still specific enough regexp would
involve ^(/etc/|.*/\.)bash.*$ or something like that.
Reply all
Reply to author
Forward
0 new messages