# HG changeset patch # User Stefan Monnier # Date 1111760591 0 # Node ID a6ae354aa8ef85a6b762a96705aa1b36a613dcfb # Parent 165f967d87e09ab6839a913f963a745744bba4a6 (rx-constituents): Add symbol-start and symbol-end. diff -r 165f967d87e0 -r a6ae354aa8ef lisp/emacs-lisp/rx.el --- a/lisp/emacs-lisp/rx.el Fri Mar 25 13:33:31 2005 +0000 +++ b/lisp/emacs-lisp/rx.el Fri Mar 25 14:23:11 2005 +0000 @@ -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 ;; 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 @@ (provide 'rx) -;;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b +;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b ;;; rx.el ends here