S-Plus / R lexer: missing operators, constants, and single-quoted strings

Issue #411 resolved
Anonymous created an issue

S-plus/R should include:

  • operators: {{{|}}} and {{{||}}}

  • constants: {{{NaN}}}, {{{T}}}, {{{F}}}

  • single-quoted strings

{{{ "foo" 'foo' # Not recognized as string a && b || c # AND works, OR doesn't a & b | c

c(TRUE,FALSE,T,F) # T and F aren't recognized

NULL # recognized NA # recognized NaN # not recognized }}}

It turns out that T and F are actually variables (but not constants) that contain the values TRUE and FALSE. They are defined in the R base package; however, it means that they don't really count as special built-in values.

Reported by guest

Comments (5)

  1. Log in to comment