Browse Source

Merge branch 'emacs-mode-underscore-in-symbol' into release

Brad King 11 năm trước cách đây
mục cha
commit
5d1fe90ed1
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 1 2
      Auxiliary/cmake-mode.el
  2. 4 0
      Help/release/3.1.0.rst

+ 1 - 2
Auxiliary/cmake-mode.el

@@ -202,7 +202,7 @@ the indentation.  Otherwise it retains the same position on the line"
 ;; Keyword highlighting regex-to-face map.
 ;; Keyword highlighting regex-to-face map.
 ;;
 ;;
 (defconst cmake-font-lock-keywords
 (defconst cmake-font-lock-keywords
-  (list '("^[ \t]*\\(\\w+\\)[ \t]*(" 1 font-lock-function-name-face))
+  (list '("^[ \t]*\\([[:word:]_]+\\)[ \t]*(" 1 font-lock-function-name-face))
   "Highlighting expressions for CMAKE mode."
   "Highlighting expressions for CMAKE mode."
   )
   )
 
 
@@ -241,7 +241,6 @@ the indentation.  Otherwise it retains the same position on the line"
   ; Create the syntax table
   ; Create the syntax table
   (setq cmake-mode-syntax-table (make-syntax-table))
   (setq cmake-mode-syntax-table (make-syntax-table))
   (set-syntax-table cmake-mode-syntax-table)
   (set-syntax-table cmake-mode-syntax-table)
-  (modify-syntax-entry ?_  "w" cmake-mode-syntax-table)
   (modify-syntax-entry ?\(  "()" cmake-mode-syntax-table)
   (modify-syntax-entry ?\(  "()" cmake-mode-syntax-table)
   (modify-syntax-entry ?\)  ")(" cmake-mode-syntax-table)
   (modify-syntax-entry ?\)  ")(" cmake-mode-syntax-table)
   (modify-syntax-entry ?# "<" cmake-mode-syntax-table)
   (modify-syntax-entry ?# "<" cmake-mode-syntax-table)

+ 4 - 0
Help/release/3.1.0.rst

@@ -386,3 +386,7 @@ Other Changes
   the Open Watcom external version numbering.  The external
   the Open Watcom external version numbering.  The external
   version numbers are lower than the internal version number
   version numbers are lower than the internal version number
   by 11.
   by 11.
+
+* The ``cmake-mode.el`` major Emacs editing mode no longer
+  treats ``_`` as part of words, making it more consistent
+  with other major modes.