Bug 380578 - syntax highlighting buglets / wishes
Summary: syntax highlighting buglets / wishes
Status: REPORTED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 21:55 UTC by Thomas Friedrichsmeier
Modified: 2007-09-17 13:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2007-09-16 21:55:08 UTC
-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/44 on 2017-05-31 14:48:55 +0100 --
Pointed out by Ben Goodrich:

1\) For x^-1, the "^-" is marked in red as an error, even though it is legal. So,
an override is needed to mark ^- as an operator rather than an error.

2\) Similarly, for stats:::lm, the ":::" is improperly marked in red as an error.

3\) Also, help\(NA\) indicates that NA\_integer\_, NA\_real\_, NA\_complex\_ and
NA\_character\_ are now available, so they should probably be marked in the same
color as NA is now.

4\) Finally, maybe rkward could do something with the syntaxes for imaginary
numbers and integers? For example, in \(0+1i\)^2 the "0" is in blue, the "+" is
in orange, the "1" is in blue, and the "i" is in black, which looks sort of
funny. Maybe the whole "0+1i" should be in some exotic color to clearly
indicate that this is a complex number? Also, as.integer\(3L\) marks the "3" in
blue but the "L" in black, but they should probably both be blue.

\--------

ad 1: In general, + and - are legal after operators \(as signs\). E.g. even the following are legal:
1+-2
1\*-----2
1/+++2
etc.

ad 2 and 3: should be trivial

ad 4: Seems reasonable, but may be difficult to do.-- Labels: syntax highlighting --
Comment 1 Thomas Friedrichsmeier 2007-09-17 13:06:25 UTC
Logged In: YES 
user\_id=300591
Originator: YES

2 and 3 are fixed in SVN. 1 and 4 remain to be dealt with.