gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
230 stars 21 forks source link

ignore `$` in julia-snail--identifier-at-point #32

Closed orialb closed 4 years ago

orialb commented 4 years ago

This is a small fix to prevent julia-snail--identifier-at-point from capturing $. If the $ is captured it breaks julia-snail--repl-completions because it will send a command of the form:

"JuliaSnail.replcompletion(\"$identifier\",ModuleName)"

and Julia will try to interpolate the variable identifier, which is of course undefined.

One could also escape the $ in the command sent, but since I don't think it can be a part of a name of a valid symbol I think we can just ignore it.