emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby b45b057006 044/265: Fix syntax error highlighting


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby b45b057006 044/265: Fix syntax error highlighting
Date: Sat, 9 Jul 2022 21:59:12 -0400 (EDT)

branch: elpa/inf-ruby
commit b45b05700645b8aae1fe36a44ccc5d012624c9ed
Author: Cornelius Mika <cornelius.mika@gmail.com>
Commit: Cornelius Mika <cornelius.mika@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]