branch: master
commit 203059a95e320b031ac0d2cabe9c1de68604baec
Author: Noam Postavsky <[email protected]>
Commit: Noam Postavsky <[email protected]>
* yasnippet.el (yas-key-syntaxes): Prefer the longest key.
---
yasnippet.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index 56e2377..a12baf9 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -406,8 +406,8 @@ It must be set to nil before loading yasnippet to take
effect."
map)
"The active keymap while a snippet expansion is in progress.")
-(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()"
- #'yas-try-key-from-whitespace)
+(defvar yas-key-syntaxes (list #'yas-try-key-from-whitespace
+ "w_.()" "w_." "w_" "w")
"Syntaxes and functions to help look for trigger keys before point.
Each element in this list specifies how to skip buffer positions