From: Stefan Monnier Date: Fri, 10 Oct 2014 04:03:27 +0000 (-0400) Subject: * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix \\<_ typo. X-Git-Tag: emacs-24.4-rc1~23 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b9d951ee1abd65dd6335300e764d0d8a368871f;p=emacs.git * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix \\<_ typo. Reported by Arni Magnusson . * lisp/progmodes/prolog.el (prolog-electric--underscore): Same. Fixes: debbugs:18622 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6831c0efb42..2abbf728ba5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-10-10 Stefan Monnier + + * progmodes/bat-mode.el (bat-font-lock-keywords): Fix \\<_ typo + (bug#18622). Reported by Arni Magnusson . + * progmodes/prolog.el (prolog-electric--underscore): Same. + 2014-10-09 Glenn Morris * frame.el (display-monitor-attributes-list): Doc tweaks. diff --git a/lisp/progmodes/bat-mode.el b/lisp/progmodes/bat-mode.el index e328cfa0d8b..266c24adcca 100644 --- a/lisp/progmodes/bat-mode.el +++ b/lisp/progmodes/bat-mode.el @@ -78,11 +78,11 @@ "goto" "gtr" "if" "in" "leq" "lss" "neq" "not" "start")) (UNIX '("bash" "cat" "cp" "fgrep" "grep" "ls" "sed" "sh" "mv" "rm"))) - `(("\\<_\\(call\\|goto\\)\\_>[ \t]+%?\\([A-Za-z0-9-_\\:.]+\\)%?" + `(("\\_<\\(call\\|goto\\)\\_>[ \t]+%?\\([A-Za-z0-9-_\\:.]+\\)%?" (2 font-lock-constant-face t)) ("^:[^:].*" . 'bat-label-face) - ("\\<_\\(defined\\|set\\)\\_>[ \t]*\\(\\w+\\)" + ("\\_<\\(defined\\|set\\)\\_>[ \t]*\\(\\w+\\)" (2 font-lock-variable-name-face)) ("%\\(\\w+\\)%?" (1 font-lock-variable-name-face)) diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 07d88b3f0fb..42904720d63 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el @@ -3139,7 +3139,7 @@ the following comma and whitespace, if any." (eq (char-before) ?_) (save-excursion (skip-chars-backward "[:alpha:]_") - (looking-at "\\<_[_[:upper:]][[:alnum:]_]*\\_>"))) + (looking-at "\\_<[_[:upper:]][[:alnum:]_]*\\_>"))) (replace-match "_") (skip-chars-forward ", \t\n")))))