aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/rx.el
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2005-03-25 14:23:11 +0000
committerStefan Monnier <[email protected]>2005-03-25 14:23:11 +0000
commitb62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4 (patch)
treefbc3e29cd2788839f6fd7b8fdef20e5a3fb7b0b1 /lisp/emacs-lisp/rx.el
parent126c9dda20f2da364a17ffaa2d952fd79c6cc724 (diff)
(rx-constituents): Add symbol-start and symbol-end.
Diffstat (limited to 'lisp/emacs-lisp/rx.el')
-rw-r--r--lisp/emacs-lisp/rx.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index d4a10104ee..49196f17ef 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 <[email protected]>
;; 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