-- 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 --
Logged In: YES user\_id=300591 Originator: YES 2 and 3 are fixed in SVN. 1 and 4 remain to be dealt with.