branch: elpa/inf-ruby
commit b45b05700645b8aae1fe36a44ccc5d012624c9ed
Author: Cornelius Mika <[email protected]>
Commit: Cornelius Mika <[email protected]>
Fix syntax error highlighting
Updated for Ruby >= 1.9
---
inf-ruby.el | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 74eec5d503..ec8eb6101a 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -20,12 +20,6 @@
;; (eval-after-load 'ruby-mode
;; '(add-hook 'ruby-mode-hook 'inf-ruby-setup-keybindings))
-;;; TODO:
-;;
-;; inferior-ruby-error-regexp-alist doesn't match this example
-;; SyntaxError: /home/eschulte/united/org/work/arf/arf/lib/cluster.rb:35:
syntax error, unexpected '~', expecting kEND
-;; similarity = comparison_cache[m][n] ||= clusters[m] ~
clusters[n]
-
(require 'comint)
(require 'compile)
(require 'ruby-mode)
@@ -73,7 +67,7 @@ next one.")
(defvar inf-ruby-at-top-level-prompt-p t)
(defconst inf-ruby-error-regexp-alist
- '(("SyntaxError: compile error\n^\\([^\(].*\\):\\([1-9][0-9]*\\):" 1 2)
+ '(("SyntaxError: \\(?:compile error\n\\)?\\([^\(].*\\):\\([1-9][0-9]*\\):" 1
2)
("^\tfrom \\([^\(].*\\):\\([1-9][0-9]*\\)\\(:in `.*'\\)?$" 1 2)))
;;;###autoload