From 8910447308fa97eaa224b76629bd37b706f62fe1 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Thu, 24 Nov 2022 23:12:40 +0100 Subject: [PATCH] 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 af8a4a81061..af3a4d86da2 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.") -- 2.39.2