summaryrefslogtreecommitdiff
path: root/lisp/progmodes/ebnf-yac.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-12-21 21:24:03 +0000
committerGerd Moellmann <gerd@gnu.org>2000-12-21 21:24:03 +0000
commit647a066c8d2a8d596fdbecc68e53934efec1506d (patch)
tree3de04086ba1c2f70b2636a1662e01a2de2950153 /lisp/progmodes/ebnf-yac.el
parente4dec765ecde99c3338f14539a24fdc7591ef6f5 (diff)
downloademacs-647a066c8d2a8d596fdbecc68e53934efec1506d.tar.gz
Fix the same problem as described on ebnf2ps.el log
entry. Doc fix. (ebnf-yac-skip-code): Code fix. (ebnf-yac-comment-chars): Const fix.
Diffstat (limited to 'lisp/progmodes/ebnf-yac.el')
-rw-r--r--lisp/progmodes/ebnf-yac.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/progmodes/ebnf-yac.el b/lisp/progmodes/ebnf-yac.el
index 5301f409654..a0a7f7048b9 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: <99/11/20 18:02:43 vinicius>
-;; Version: 1.0
+;; Time-stamp: <2000/12/19 15:47:23 vinicius>
+;; Version: 1.1
;; This file is part of GNU Emacs.
@@ -387,7 +387,10 @@ See documentation for variable `ebnf-yac-lex'."
(forward-char)
(let ((pair 1))
(while (> pair 0)
- (skip-chars-forward "^{}/'\"\000-\010\013\016-\037\177-\377" ebnf-limit)
+ ;; replace the range "\177-\377" (see `ebnf-range-regexp').
+ (skip-chars-forward (ebnf-range-regexp "^{}/'\"\000-\010\013\016-\037"
+ ?\177 ?\377)
+ ebnf-limit)
(cond
((= (following-char) ?{)
(forward-char)
@@ -423,7 +426,9 @@ See documentation for variable `ebnf-yac-lex'."
))
-(defconst ebnf-yac-comment-chars "^*\000-\010\013\016-\037\177-\237")
+;; replace the range "\177-\237" (see `ebnf-range-regexp').
+(defconst ebnf-yac-comment-chars
+ (ebnf-range-regexp "^*\000-\010\013\016-\037" ?\177 ?\237))
(defun ebnf-yac-skip-comment ()