Bug 380578

Summary: syntax highlighting buglets / wishes
Product: [Applications] rkward Reporter: Thomas Friedrichsmeier <thomas.friedrichsmeier>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

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.