atom-language-r icon indicating copy to clipboard operation
atom-language-r copied to clipboard

Include source.sql for embedded SQL

Open randy3k opened this issue 7 years ago • 2 comments
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

randy3k avatar Feb 12 '18 05:02 randy3k

not a bad idea indeed.

randy3k avatar Feb 12 '18 05:02 randy3k

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.

randy3k avatar Feb 12 '18 05:02 randy3k