Skip to content

Commit 26da99f

Browse files
committed
Add two patterns to C# AutoCompleteRegexes
This adds auto-complete/dictionary entries for the commit message text box based on `new` and `using` patterns. As an example, in a recent commit message: > Use ArgumentBuilder and move SmartFormat reference Before this change, both ArgumentBuilder and SmartFormat were flagged as spelling mistakes. These symbols were present in code resembling `new ArgumentBuilder` and `using SmartFormat;`.
1 parent 62c97a4 commit 26da99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitExtensions/AutoCompleteRegexes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.build = \sname\s*=\s*\"(\w+)\"
66
.cbl, .cpy = ^.{6} ([A-Z][A-Z0-9-]*)(?: SECTION)?\.
77
.c, .cc, .cpp, .cxx = \s(?:[\w]+)::([\w]+)|[ \t:.>]([\w]+)\s?\([\w\s,.)]*\);|^#\s*define\s+(\w+)
8-
.asp, .aspx, .cs = (?:(?:(?:public|protected|private|internal)\s+(?:[\w.]+(?:\s*<[<>\w\s.,]+>)?\s+)*([\w.]+)(?:\s*<[<>\w\s.,]+>)?)|(?:namespace\s+([\w.]+)))
8+
.asp, .aspx, .cs = (?:(?:(?:public|protected|private|internal)\s+(?:[\w.]+(?:\s*<[<>\w\s.,]+>)?\s+)*([\w.]+)(?:\s*<[<>\w\s.,]+>)?)|(?:namespace\s+([\w.]+))|(?:new\s+([\w]+))|(?:using\s+([\w.]+)))
99
.h, .hpp, .hxx = ^\s*(?:class|struct)\s+([\w]+)|^\s+(?:\w+\s+)*([\w]+)\s*\(|^#define\s+(\w+)
1010
.html = \"#(\w+)\"
1111
.java = (?:public|protected|private|internal)\s+(?:[\w.]+\s+)*([\w.]+)|class\s+([\w]+)(?:(?:\s+)?(?:extends|implements)(?:\s+)?([\w]+)?)

0 commit comments

Comments
 (0)