[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8910447308 1/2: Fix regex errors in csharp-mode
From: |
Mattias Engdegård |
Subject: |
master 8910447308 1/2: Fix regex errors in csharp-mode |
Date: |
Fri, 25 Nov 2022 05:10:15 -0500 (EST) |
branch: master
commit 8910447308fa97eaa224b76629bd37b706f62fe1
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Mattias Engdegård <mattiase@acm.org>
Fix regex errors in csharp-mode
* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax):
Repetition errors in regex.
(csharp-compilation-re-xbuild-warning): Make regex match regex for
xbuild-error.
---
lisp/progmodes/csharp-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index af8a4a8106..af3a4d86da 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -482,7 +482,7 @@ compilation and evaluation time conflicts."
(save-excursion
;; 'new' should be part of the line
(goto-char (c-point 'iopl))
- (looking-at ".*\\s *new\\s *.*"))
+ (looking-at ".*new.*"))
;; Line should not already be terminated
(save-excursion
(goto-char (c-point 'eopl))
@@ -614,7 +614,7 @@ compilation and evaluation time conflicts."
"\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?"
;; handle weird devenv output format with 4 numbers, not 2 by having
optional
;; extra capture-groups.
- "\\(?:,\\([0-9]+\\)\\)?*): "
+ "\\(?:,\\([0-9]+\\)\\)*): "
"warning [[:alnum:]]+: .+$")
"Regexp to match compilation warning from xbuild.")