diff options
author | Theodor Thornhill <theo@thornhill.no> | 2022-11-24 23:12:40 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-11-25 10:54:54 +0100 |
commit | 8910447308fa97eaa224b76629bd37b706f62fe1 (patch) | |
tree | 2f1b9c36102c29cf27a4f2a9a06b9cebe6ea2d12 | |
parent | 639adf26a1b43445eaf52e4246cf1f5b46b5e12d (diff) | |
download | emacs-8910447308fa97eaa224b76629bd37b706f62fe1.tar.gz |
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.
-rw-r--r-- | lisp/progmodes/csharp-mode.el | 4 |
1 files 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.") |