[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode d01f22f 149/459: Imenu: fix interface-prefi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode d01f22f 149/459: Imenu: fix interface-prefixed members |
Date: |
Sun, 22 Aug 2021 13:59:15 -0400 (EDT) |
branch: externals/csharp-mode
commit d01f22f67515469f11023b2567c1e53afd467b41
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Imenu: fix interface-prefixed members
Make interface-prefixed properties and methods report the same way:
using interface-prefix in imenu index-name.
---
csharp-mode-tests.el | 5 +++--
csharp-mode.el | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index dde2d32..099d54f 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -209,7 +209,7 @@
(class-entry (cl-caddr imenu-index))
(class-entries (cdr class-entry))
(imenu-items (mapconcat 'car class-entries " ")))
- (should (string-match-p "prop IImenuTest.InterfaceString" imenu-items))
+ (should (string-match-p "prop IIMenuTest.InterfaceString" imenu-items))
(kill-buffer buffer)))
(ert-deftest imenu-parsing-supports-explicit-interface-methods ()
@@ -219,8 +219,9 @@
(class-entry (cl-caddr imenu-index))
(class-entries (cdr class-entry))
(imenu-items (mapconcat 'car class-entries " ")))
- (should (string-match-p "method string MethodName" imenu-items))
+ (should (string-match-p "method string IIMenuTest.MethodName" imenu-items))
(kill-buffer buffer)))
+
(ert-deftest imenu-parsing-supports-namespace ()
(let* ((find-file-hook nil) ;; avoid vc-mode file-hooks when opening!
(buffer (find-file-read-only
"./test-files/imenu-namespace-test.cs"))
diff --git a/csharp-mode.el b/csharp-mode.el
index 3987c1b..aa22c24 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -1485,8 +1485,9 @@ Most other csharp functions are not instrumented.
"\\(?:override[ \t\n\r\f\v]+\\)?" ;; optional
"\\([[:alpha:]_][^\t\(\n]+\\)" ;; 2. return type -
possibly generic
"[ \t\n\r\f\v]+"
+ "\\(" ;; 3. begin name of func
"\\(?:[A-Za-z_][[:alnum:]_]*\\.\\)*" ;; possible prefix
interface
- "\\([[:alpha:]_][[:alnum:]_]*" ;; 3. begin name of func
+ "[[:alpha:]_][[:alnum:]_]*" ;; actual func name
"\\(?:<\\(?:[[:alpha:]][[:alnum:]]*\\)\\(?:[,
]+[[:alpha:]][[:alnum:]]*\\)*>\\)?" ;; (with optional generic type parameter(s)
"\\)" ;; 3. end of name of func
"[ \t\n\r\f\v]*"
- [elpa] externals/csharp-mode 26e2430 082/459: Updated readme and feature-list. Bump version., (continued)
- [elpa] externals/csharp-mode 26e2430 082/459: Updated readme and feature-list. Bump version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d4c7a5c 086/459: Support compilation output from msbuild /maxcpucount (/m)., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e277562 084/459: Set all as the default Makefile target., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 165d1f2 206/459: Fix indexing of generic methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 26737de 211/459: Fix build by cheating., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7ced65e 225/459: Require cc-fonts, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 571c4c7 240/459: Stop misleading our poor users., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d72e5c6 242/459: Revert changes in changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0f39f84 122/459: Apply bug#18845 workaround, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 73e7ed6 125/459: Merge pull request #53 from ymarkovitch/master, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d01f22f 149/459: Imenu: fix interface-prefixed members,
ELPA Syncer <=
- [elpa] externals/csharp-mode b8073ed 151/459: Imenu: correctly report namespace for all types, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ed030e7 152/459: Ensure test-cases don't overlap., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c7932f9 156/459: Remove useless autoloads, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ee9125d 163/459: Fix looking-back warnings., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f9e95d1 167/459: Ensure tests reproduce fontification bugs., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ca394f1 188/459: imenu: Fix indexing of methods in test-file., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c206dbc 191/459: extern is a modifier-keyword, not "other" keyword., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a8d8ef8 195/459: imenu: Index delegates, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 897c85a 197/459: imenu: Fix indexing of delegates., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fe3ca7e 200/459: Inline square-parenthesis detection., ELPA Syncer, 2021/08/22