Skip to content

Commit

Permalink
Highlight non-.rb files created by rails generate
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Apr 17, 2013
1 parent 76a8d12 commit 5dde9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rinari.el
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Use `font-lock-add-keywords' in case of `ruby-mode' or
(script (or script (jump-completing-read "Script: " completions)))
(ruby-compilation-error-regexp-alist ;; for jumping to newly created files
(if (equal script "generate")
'(("^ +\\(exists\\|create\\) +\\([^[:space:]]+\\.rb\\)" 2 3 nil 0 2))
'(("^ +\\(exists\\|create\\) +\\([^[:space:]]+\\)" 2 3 nil 0 2))
ruby-compilation-error-regexp-alist))
(script (concat (rinari--wrap-rails-command script) " ")))
(ruby-compilation-run (concat script (read-from-minibuffer script)))))
Expand Down

0 comments on commit 5dde9c4

Please sign in to comment.