Hi,
One of the many features I love in Tinn-R is the visual helper which indicates which opening parenthesis the closing parenthesis at current cursor location corresponds to. It's quite difficult to write in words here, but here is a simple example you can test to see the bug for yourself. If you copy-paste the following line of R code in Tinn-R Editor...:
x = c("I love Tinn-R (and R")
...then if you place the text cursor around the closing parenthesis (at line end), the helper associates it with the opening parenthesis inside the text constant ".....".
In my Editor, it looks like this then:
x = c("I love Tinn-R (and R")
Obviously, it's a mistake that can be confusing for more complex codes, as the "(" which effectively acts as the opening parenthesis is not the the emphasized one, but the one just after "c".
Another example with more parentheses in it:
y = c("I'm a bit confused here ((( :("))))) #too many parentheses here, because I followed the helper's "advice"
y = c("I'm a bit confused here ((( :(") #corrected code so that it works, though the visual matching of parentheses by the helper is not right
This second example shows how confusing that can be when many text parentheses are present. As a consequence of this "bug", the user is tempted to put 4 ")" too many.
In short, could you improve the behavior of this helper so that it ignores the parentheses (as well as square brackets, and braces: [], {}) that are within character constants, when helping the user to locate the effective parenthesis associations?
Thanks a lot!
Nice day to you.
Marc (alias marQIsoft)