* yasnippet.el (yas-key-syntaxes): Prefer the longest key.

This commit is contained in:
Noam Postavsky 2018-01-01 15:42:48 -05:00
parent ad3a4d192d
commit 203059a95e

View File

@ -406,8 +406,8 @@ It must be set to nil before loading yasnippet to take effect."
map) map)
"The active keymap while a snippet expansion is in progress.") "The active keymap while a snippet expansion is in progress.")
(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" (defvar yas-key-syntaxes (list #'yas-try-key-from-whitespace
#'yas-try-key-from-whitespace) "w_.()" "w_." "w_" "w")
"Syntaxes and functions to help look for trigger keys before point. "Syntaxes and functions to help look for trigger keys before point.
Each element in this list specifies how to skip buffer positions Each element in this list specifies how to skip buffer positions