summaryrefslogtreecommitdiff
path: root/lisp/progmodes/ebnf-yac.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-09-24 17:43:45 +0000
committerGerd Moellmann <gerd@gnu.org>2001-09-24 17:43:45 +0000
commita1548b10da9be0103706e2c2304689f4b4c59c87 (patch)
treef4f11ef9d030ddfa6442b7bc3db592d0537ec143 /lisp/progmodes/ebnf-yac.el
parent8a1e4eebeb0528ee7dcc9c95a9a685901db50bf5 (diff)
downloademacs-a1548b10da9be0103706e2c2304689f4b4c59c87.tar.gz
Fix character range regexp. Doc fix.
(ebnf-yac-skip-chars): New internal const. (ebnf-yac-skip-code): Fix code.
Diffstat (limited to 'lisp/progmodes/ebnf-yac.el')
-rw-r--r--lisp/progmodes/ebnf-yac.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/progmodes/ebnf-yac.el b/lisp/progmodes/ebnf-yac.el
index bff241a5e49..22984d58fb2 100644
--- a/lisp/progmodes/ebnf-yac.el
+++ b/lisp/progmodes/ebnf-yac.el
@@ -5,8 +5,8 @@
;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br>
;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br>
;; Keywords: wp, ebnf, PostScript
-;; Time-stamp: <2001/08/15 17:15:15 vinicius>
-;; Version: 1.1
+;; Time-stamp: <2001/09/24 10:17:13 vinicius>
+;; Version: 1.2
;; This file is part of GNU Emacs.
@@ -383,14 +383,16 @@ See documentation for variable `ebnf-yac-lex'."
(< (point) ebnf-limit))
+;; replace the range "\177-\377" (see `ebnf-range-regexp').
+(defconst ebnf-yac-skip-chars
+ (ebnf-range-regexp "^{}/'\"\000-\010\013\016-\037" ?\177 ?\377))
+
+
(defun ebnf-yac-skip-code ()
(forward-char)
(let ((pair 1))
(while (> pair 0)
- ;; replace the range "\177-\377" (see `ebnf-range-regexp').
- (skip-chars-forward (ebnf-range-regexp "^{}/'\"\000-\010\013\016-\037"
- ?\177 ?\377)
- ebnf-limit)
+ (skip-chars-forward ebnf-yac-skip-chars ebnf-limit)
(cond
((= (following-char) ?{)
(forward-char)