From: ABE Yasushi (=?ISO-2022-JP?B?GyRCMCRJdBsoQiAbJEJMdztKGyhC?=) Date: 2000-12-04T20:50:07+09:00 Subject: [ruby-list:26314] ruby-mode on Emacs 21 --Multipart_Mon_Dec_04_20:50:06_2000-1 Content-Type: text/plain; charset=ISO-2022-JP 阿部です。 Emacs21から、正規表現に >`\{N,M\}' > is another postfix operator that specifies an interval of > iteration: the preceding regular expression must match between N > and M times. If M is omitted, then there is no upper bound and if > `,M' is omitted, then the regular expression must match exactly N > times. が追加されたため、このパッチのようにしないと以下のようになります。 ====例==== ARGF.each do |line| <<<ここでTABを押すと "Unmatched \\{" と出る>>> ========== ただ、これで他に影響がでないかどうか、追跡できてません。 取り急ぎ報告まで ---- 阿部靖司 --Multipart_Mon_Dec_04_20:50:06_2000-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="ruby-mode.21.patch" Content-Transfer-Encoding: 7bit --- ruby/misc/ruby-mode.el Mon Nov 20 16:31:55 2000 +++ /home/yasushi/root/share/emacs/site-lisp/ruby-mode/ruby-mode.el Mon Dec 4 20:36:10 2000 @@ -52,7 +52,7 @@ (defconst ruby-negative (concat "^[ \t]*\\(\\(" ruby-block-mid-re "\\)\\>\\|\\(" - ruby-block-end-re "\\)\\>\\|\\}\\|\\]\\)") + ruby-block-end-re "\\)\\>\\|}\\|\\]\\)") ) (defconst ruby-operator-chars "-,.+*/%&|^~=<>:") @@ -549,7 +549,7 @@ (and (not (eolp)) (progn (forward-char -1) - (not (looking-at "\\{"))) + (not (looking-at "{"))) (progn (forward-word -1) (not (looking-at "do\\>[^_]"))))) --Multipart_Mon_Dec_04_20:50:06_2000-1--