-
-
Save dcluna/c7b9be4e71b5ea0993cd056fa48283f5 to your computer and use it in GitHub Desktop.
ruby-trace-mode for Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-derived-mode ruby-trace-mode grep-mode "RbTrace" | |
"Highlights matches from a Tracer run." | |
(setq-local compilation-error-regexp-alist '(ruby-trace)) | |
(setq-local compilation-error-regexp-alist-alist '((ruby-trace "^\\(?:#[0-9]+:\\)?\\(.*?[^/\n]\\):[ ]*\\([1-9][0-9]*\\)[ ]*:" 1 2))) | |
) | |
(add-to-list 'auto-mode-alist '("\\.rb_trace\\'" . ruby-trace-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment