branch: externals/csharp-mode commit be5af571e34c012c36b46680eef395dbc5c9ff96 Author: Theodor Thornhill <theodor.thornh...@frende.no> Commit: Theodor Thornhill <theodor.thornh...@frende.no>
Fix optional type suffix regex --- csharp-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/csharp-mode.el b/csharp-mode.el index e9e9882..a680f69 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -25,6 +25,7 @@ ;;; Code: + (when (version< emacs-version "25.1") (require 'cl)) (require 'cc-mode) @@ -56,6 +57,9 @@ (c-lang-defconst c-symbol-start csharp (concat "[" c-alpha "_@]")) +(c-lang-defconst c-opt-type-suffix-key + csharp "\\(\\?\\)") + (c-lang-defconst c-identifier-ops csharp '((left-assoc "."))) @@ -178,9 +182,6 @@ (c-lang-defconst c-decl-prefix-re csharp "\\([{}(;,<]+\\)") -(c-lang-defconst c-opt-type-suffix-key - csharp (concat "\\(\\[" (c-lang-const c-simple-ws) "*\\]\\|\\.\\.\\.\\)")) - (c-lang-defconst c-recognize-typeless-decls csharp t)