Trevoke / sqlup-mode.el

An emacs minor mode to upcase SQL keyword and functions
GNU General Public License v3.0
88 stars 15 forks source link

variable name with "_" get capitalized. #50

Closed adouzzy closed 8 years ago

adouzzy commented 8 years ago

original:

select max(peer_group) as peer_group
from apple

becomes

SELECT MAX(PEER_GROUP) AS PEER_GROUP
FROM apple
Trevoke commented 8 years ago

I can reproduce the problem when simply typing into emacs.

Now I just need to figure out how to write a properly failing test so I can figure out what the bug is!

adouzzy commented 8 years ago

One possibility is that _ in emacs is usually treated as a symbol. But here, _ is only a part of a word, not a separation of two words.