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 186586 - shell lexer limitations
Summary: shell lexer limitations
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: sh (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 08:45 UTC by Alexey Vladykin
Modified: 2013-05-07 11:20 UTC (History)
0 users

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 Alexey Vladykin 2010-05-24 08:45:33 UTC
Current ShLexer has the following limitations:
- it does not allow highlighting of variable usages, e.g. ${FOO}
- it splits integral objects into several tokens, e.g. gnome-session (split by -), mkfs.ext2 (split by .), --help (split by -)
- it parses numbers (integers and floats), that does not make much sense since numbers have no special meaning for the shell
- it does not highlight some keywords in some positions, e.g.
-- for f in foo bar ...   # "in" is not highlighted
-- case f in ... # "in" is not highlighted
-- test 1 && echo ok # "echo" is not highlighted
Comment 1 nnnnnk 2011-10-20 13:54:08 UTC
fixed:
- it does not highlight some keywords in some positions, e.g.
-- for f in foo bar ...   # "in" is not highlighted
-- case f in ... # "in" is not highlighted
-- test 1 && echo ok # "echo" is not highlighted

other items look like enhancement.

http://hg.netbeans.org/cnd-main/rev/25131dacd269
http://hg.netbeans.org/cnd-main/rev/8162843e428f