lang/csharp: include +chsarp-sp-point-in-type-p

This commit is contained in:
Henrik Lissner 2019-02-19 01:28:07 -05:00
parent d6d67ac568
commit 3d99ae8562
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -0,0 +1,10 @@
;;; lang/csharp/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +csharp-sp-point-in-type-p (id action context)
"Return t if point is in the right place for C# angle-brackets."
(and (sp-in-code-p id action context)
(cond ((eq action 'insert)
(sp-point-after-word-p id action context))
((eq action 'autoskip)
(/= (char-before) 32)))))