mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 20:11:57 +02:00
editorial revert of a change, remove trailing whitespace
Now the regular expression is back to what it was and align with how it is in other languages. Also it aligns with the commented description of the regular expression.
This commit is contained in:
@@ -305,7 +305,7 @@ filename: learn-emacs-lisp.el
|
||||
(defun boldify-names ()
|
||||
(switch-to-buffer-other-window "*test*")
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "Bonjour \\([^!]+\\)!" nil 't)
|
||||
(while (re-search-forward "Bonjour \\(.+\\)!" nil 't)
|
||||
(add-text-properties (match-beginning 1)
|
||||
(match-end 1)
|
||||
(list 'face 'bold)))
|
||||
@@ -318,7 +318,7 @@ filename: learn-emacs-lisp.el
|
||||
;; The regular expression is "Bonjour \\(.+\\)!" and it reads:
|
||||
;; the string "Bonjour ", and
|
||||
;; a group of | this is the \\( ... \\) construct
|
||||
;; any character not ! | this is the [^!]
|
||||
;; any character | this is the .
|
||||
;; possibly repeated | this is the +
|
||||
;; and the "!" string.
|
||||
|
||||
|
Reference in New Issue
Block a user