The “keyword.operator.logical” rule should contain ||, |, && and &. Also rewrote the regexp to remove the many backslashes. Changed: U trunk/Bundles/R.tmbundle/Syntaxes/R.plist