[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode ca394f1 188/459: imenu: Fix indexing of met
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode ca394f1 188/459: imenu: Fix indexing of methods in test-file. |
Date: |
Sun, 22 Aug 2021 13:59:24 -0400 (EDT) |
branch: externals/csharp-mode
commit ca394f1ae70e489f2e9a428169524153315af90b
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
imenu: Fix indexing of methods in test-file.
---
csharp-mode.el | 16 +++++++++++++++-
test-files/imenu-method-test.cs | 4 ++--
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 6e620e5..3829cd5 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -1754,7 +1754,7 @@ to the beginning of the prior namespace.
(space (concat single-space "+"))
(access-modifier (regexp-opt '( "public" "private" "protected"
"internal"
"static" "sealed" "partial"
"override" "virtual"
- "abstract")))
+ "abstract" "async" "new" "unsafe")))
;; this will allow syntactically invalid combinations of modifiers
;; but that's a compiler problem, not a imenu-problem
(access-modifier-list (concat "\\(?:" access-modifier space "\\)"))
@@ -1841,6 +1841,19 @@ to the beginning of the prior namespace.
"\\(?:[ \t]*/[/*].*\\)?"
optional-space
"{") 1)
+ (list "method-abs-ext"
+ (concat bol
+ access-modifier-list "+"
+ (regexp-opt '("extern" "abstract")) space
+ return-type space
+ "\\("
+ generic-identifier
+ optional-space
+ parameter-list
+ "\\)"
+ optional-space
+ ;; abstract/extern methods are terminated with ;
+ ";") 1)
(list "prop"
(concat bol
;; must require access modifiers, or else we
@@ -2038,6 +2051,7 @@ to the beginning of the prior namespace.
(dolist (type '(("ctor")
("method")
("method-inf" "method")
+ ("method-abs-ext" "method")
("prop")
("prop-inf" "prop")
("field")
diff --git a/test-files/imenu-method-test.cs b/test-files/imenu-method-test.cs
index 77b2f9e..0b3b24b 100644
--- a/test-files/imenu-method-test.cs
+++ b/test-files/imenu-method-test.cs
@@ -24,9 +24,9 @@ public class MethodTest
}
- public abstract string SubClassMethod();
+ public abstract string AbstractMethod();
- public unsafe static void FastCopy(byte[] src, byte[] dst, int count)
+ public unsafe static void UnsafeCopy(byte[] src, byte[] dst, int count)
{
}
- [elpa] externals/csharp-mode 571c4c7 240/459: Stop misleading our poor users., (continued)
- [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, 2021/08/22
- [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 <=
- [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
- [elpa] externals/csharp-mode f9122bb 208/459: Fix indentation for array collection initializers., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ebd67a1 209/459: Correctly indent nested generic object initializers, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5b89db2 088/459: Imenu: Correctly handle default-values in param-lists., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8ccafbc 092/459: remove unused rule and documentation, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0e333c3 090/459: fontify else, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f96cf8b 089/459: remove fontification of accessors and constructors, ELPA Syncer, 2021/08/22