branch: externals/csharp-mode commit 878c671c791e17836c8884eab47e08aa15c51018 Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Try add better support for interfaces. --- csharp-mode.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/csharp-mode.el b/csharp-mode.el index ef33c69..dee37e3 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -171,7 +171,7 @@ '(["using" "namespace" "class" "if" "else" "throw" "new" "for" "return" "await" "struct" "enum" "switch" "case" "default" "typeof" "try" "catch" "finally" "break" - "foreach" "in" "yield" "get" "set" + "foreach" "in" "yield" "get" "set" "interface" ] @keyword) "Patterns for keywords in csharp-mode." :type 'list @@ -244,6 +244,13 @@ :type 'list :group 'csharp) +(defcustom csharp-mode-interface + '((interface_declaration + name: (identifier) @type)) + "Patterns for interfaces in csharp-mode." + :type 'list + :group 'csharp) + (defcustom csharp-mode-method '((method_declaration (identifier) @type (identifier) @function) (method_declaration (nullable_type) @type (identifier) @function) @@ -343,6 +350,7 @@ csharp-mode-struct csharp-mode-namespace csharp-mode-class + csharp-mode-interface csharp-mode-method csharp-mode-parameter csharp-mode-array