1# language definition file for R programming language (ess-like style) 2 3comment start "#" 4 5keyword = "if|else|for|while||repeat|break|next" 6 7libsource = "library|source" 8 9special_fun = "function" 10 11costant = "TRUE", "FALSE", "NA", "NaN", "NULL", "Inf" 12 13include "c_string.lang" 14 15assignment = "<-","<<-" 16 17symbol = '%.*%' # Operators %foo%-like are colored by ess 18 19 20 21 22# Being a stat oriented language in a typical session with many 23# numbers and many operators it's better not to color too much 24# include "number.lang" 25# symbol= # numeric 26# "*", 27# "-", 28# "+", 29# "/", 30# "^", 31# # logical 32# "&", 33# "\|", 34# "!", 35# # assignment (old style pays!) 36# "<-", # it would be light green 37# "<<-", # it would be light green 38# # Formulas 39# # "%", 40# "~" 41 42 43 44