R: Fix keywords and wordchars
commitf32b6f3b93df96026fc9ff233458949e97a5a7b9
authorlandroni <landroni@users.noreply.github.com>
Tue, 20 May 2014 00:56:14 +0000 (20 02:56 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 5 Jan 2015 16:00:37 +0000 (5 17:00 +0100)
treeafd994b98386f4ac059bf75565b57dd909693370
parente06f47d774bd296ed406378c6748ff12d3bd0fb6
R: Fix keywords and wordchars

Currently the R filetype has a rather random collection of keywords.

This commit fixes the primary keywords (as used in RStudio, an IDE
specialized for R), and also adds the appropriate list of built-in
constants.
See https://github.com/rstudio/rstudio/blob/master/src/gwt/acesupport/acemode/r_highlight_rules.js
for the list of keywords used in RStudio.

Furthermore, the commit adds the `.` (dot) to `wordchars`.  In R the
set of symbols which can be used in object names is `[A-Za-z0-9_.]`
(with code portability and platform compatibility in mind).  For more
gruesome details see:
http://cran.r-project.org/doc/manuals/r-release/R-intro.html#R-commands_003b-case-sensitivity-etc
RStudio also treats the dot as part of the "word".

For some background see:
http://landroni.wordpress.com/2013/07/27/using-geany-for-programming-in-r/

Closes #273.
data/filetypes.r