diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-03-25 14:23:11 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-03-25 14:23:11 +0000 |
commit | b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4 (patch) | |
tree | fbc3e29cd2788839f6fd7b8fdef20e5a3fb7b0b1 /lisp/emacs-lisp/rx.el | |
parent | 126c9dda20f2da364a17ffaa2d952fd79c6cc724 (diff) | |
download | emacs-b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4.tar.gz emacs-b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4.tar.bz2 emacs-b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4.zip |
(rx-constituents): Add symbol-start and symbol-end.
Diffstat (limited to 'lisp/emacs-lisp/rx.el')
-rw-r--r-- | lisp/emacs-lisp/rx.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index d4a10104eea..49196f17ef0 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -1,6 +1,6 @@ ;;; rx.el --- sexp notation for regular expressions -;; Copyright (C) 2001, 03, 2004 Free Software Foundation, Inc. +;; Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. ;; Author: Gerd Moellmann <gerd@gnu.org> ;; Maintainer: FSF @@ -169,6 +169,8 @@ (eow . word-end) ; SRE (word-boundary . "\\b") (not-word-boundary . "\\B") ; sregex + (symbol-start . "\\_<") + (symbol-end . "\\_>") (syntax . (rx-syntax 1 1)) (not-syntax . (rx-not-syntax 1 1)) ; sregex (category . (rx-category 1 1 rx-check-category)) @@ -969,5 +971,5 @@ enclosed in `(and ...)'. (provide 'rx) -;;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b +;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b ;;; rx.el ends here |