summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-24 14:25:35 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-06-24 14:25:42 (GMT)
commit30d8ead3cb1fd0446ef1961d3db54414fe7682b5 (patch)
treec46034bbfced8c2155fbe39d89d030c7085d58c1
parentf9393aaeba23c74afde1f11a460c97d9291ba8ee (diff)
parent3ecf6bd1b1bf860f803519bd9084d71e15d7b3c1 (diff)
downloadCMake-30d8ead3cb1fd0446ef1961d3db54414fe7682b5.zip
CMake-30d8ead3cb1fd0446ef1961d3db54414fe7682b5.tar.gz
CMake-30d8ead3cb1fd0446ef1961d3db54414fe7682b5.tar.bz2
Merge topic 'emacs-bracket-syntax-fix' into release-3.30
3ecf6bd1b1 cmake-mode.el: fix bracket string/comment syntax-propertize Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9621
-rw-r--r--Auxiliary/cmake-mode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index cfa0173..893c0d4 100644
--- a/Auxiliary/cmake-mode.el
+++ b/Auxiliary/cmake-mode.el
@@ -279,7 +279,7 @@ Return t unless search stops due to end of buffer."
;------------------------------------------------------------------------------
-(defun cmake--syntax-propertize-until-bracket-close (syntax)
+(defun cmake--syntax-propertize-until-bracket-close (syntax end)
;; This function assumes that a previous search has matched the
;; beginning of a bracket_comment or bracket_argument and that the
;; second capture group has matched the equal signs between the two
@@ -307,10 +307,10 @@ Return t unless search stops due to end of buffer."
(syntax-propertize-rules
("\\(#\\)\\[\\(=*\\)\\["
(1
- (prog1 "!" (cmake--syntax-propertize-until-bracket-close "!"))))
+ (prog1 "!" (cmake--syntax-propertize-until-bracket-close "!" end))))
("\\(\\[\\)\\(=*\\)\\["
(1
- (prog1 "|" (cmake--syntax-propertize-until-bracket-close "|"))))))
+ (prog1 "|" (cmake--syntax-propertize-until-bracket-close "|" end))))))
;; Syntax table for this mode.
(defvar cmake-mode-syntax-table nil