diff options
| author | Stefan Monnier | 2005-03-25 14:23:11 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-25 14:23:11 +0000 |
| commit | b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4 (patch) | |
| tree | fbc3e29cd2788839f6fd7b8fdef20e5a3fb7b0b1 | |
| parent | 126c9dda20f2da364a17ffaa2d952fd79c6cc724 (diff) | |
| download | emacs-b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4.tar.gz emacs-b62c13c2bdc8e1aa4d59515863b8ed8f84ad3eb4.zip | |
(rx-constituents): Add symbol-start and symbol-end.
| -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 @@ | |||
| 1 | ;;; rx.el --- sexp notation for regular expressions | 1 | ;;; rx.el --- sexp notation for regular expressions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2001, 03, 2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Gerd Moellmann <gerd@gnu.org> | 5 | ;; Author: Gerd Moellmann <gerd@gnu.org> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -169,6 +169,8 @@ | |||
| 169 | (eow . word-end) ; SRE | 169 | (eow . word-end) ; SRE |
| 170 | (word-boundary . "\\b") | 170 | (word-boundary . "\\b") |
| 171 | (not-word-boundary . "\\B") ; sregex | 171 | (not-word-boundary . "\\B") ; sregex |
| 172 | (symbol-start . "\\_<") | ||
| 173 | (symbol-end . "\\_>") | ||
| 172 | (syntax . (rx-syntax 1 1)) | 174 | (syntax . (rx-syntax 1 1)) |
| 173 | (not-syntax . (rx-not-syntax 1 1)) ; sregex | 175 | (not-syntax . (rx-not-syntax 1 1)) ; sregex |
| 174 | (category . (rx-category 1 1 rx-check-category)) | 176 | (category . (rx-category 1 1 rx-check-category)) |
| @@ -969,5 +971,5 @@ enclosed in `(and ...)'. | |||
| 969 | 971 | ||
| 970 | (provide 'rx) | 972 | (provide 'rx) |
| 971 | 973 | ||
| 972 | ;;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b | 974 | ;; arch-tag: 12d01a63-0008-42bb-ab8c-1c7d63be370b |
| 973 | ;;; rx.el ends here | 975 | ;;; rx.el ends here |