ScottyB / ac-js2

Javascript auto-completion in Emacs using Js2-mode's parser and Skewer-mode.
123 stars 8 forks source link

Doesn’t work with variable names with underscores #29

Open dpk opened 2 years ago

dpk commented 2 years ago

ac-js2 thinks an underscore isn’t part of a variable name. Changing (bounds-of-thing-at-point 'word) to (bounds-of-thing-at-point 'sexp) in ac-js2-completion-function fixes this, but I don’t know what potential other problems it might introduce.