atom-language-r
atom-language-r copied to clipboard
Include source.sql for embedded SQL
trafficstars
From @kylebarron on November 1, 2017 22:46
As in the DBI package's dbSendQuery(), for example. Or take the Python approach and color all strings starting with "(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|WITH)..." as SQL strings.
Copied from original issue: REditorSupport/atom-language-r-legacy#8
not a bad idea indeed.
From @kylebarron on November 2, 2017 0:50
It would probably be easier to take the Python approach and color as SQL all strings that start with one of those keywords in upper case. I can't image there would be too many false positives.