This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145375 - Shell (Bash, Korn) editor enhacements necessary
Summary: Shell (Bash, Korn) editor enhacements necessary
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: sh (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 04:56 UTC by dmvg
Modified: 2012-10-18 14:46 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dmvg 2008-08-28 04:56:18 UTC
I use NetBeans daily for my development, and noticed that
Netbeans - for quite some time now - provides facilities to edit
UNIX shell scripts (Bash is the primary in my case.)
Specifically nice highlighting for Bash shell scripts is provided.

However NetBeans stops a tiny bit short from being great...
Here is a quick example (Bash and Korn shell snippet):

    filesToPull=${files[@]##*/}

NetBeans would think that the double pound sign (##) is a comment,
however in this case it is not, and display the above line in wrong ways.

"vim" - the ol' good vi editor - works much better/perfect here
and I wonder if you guys have interest to improve Netbeans?

Nice Bash shell scripting editor is
 not (definitely not) what I would consider a problem
 or defect or anything serious... I think you have real defects in NetBeans 6.5
it's just if you do something - it is worth doing it great
    :-)

PS  If you guys are already under stress fixing real stuff - just feel free to close this one.
    it's more like a wish from a spoiled user :-)
Comment 1 Vitezslav Stejskal 2008-08-28 15:54:25 UTC
> I wonder if you guys have interest to improve Netbeans?

Yes, we have. Have you? If so, have a look in languages.sh/src/org/netbeans/modules/languages/sh/sh.nbs. It's a text
file, which describes how shell files should be handled. Among other things it also define what is a line comment. This
is defined by a regular expression called 'TOKEN:line_comment:' (hmm, I hope so anyway). If you fix it you will step to
the hall of the courageous. :-)
Comment 2 dmvg 2008-08-29 04:53:50 UTC
OK, I will try; can start next week.