From de5210bfebc0526f19860fb93d4750b313745125 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 17 Jan 2016 16:50:39 -0500 Subject: Highlight Snakefile errors in compilation buffers --- snakemake-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'snakemake-mode.el') diff --git a/snakemake-mode.el b/snakemake-mode.el index 7233d65..d219442 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -41,6 +41,7 @@ ;;; Code: +(require 'compile) (require 'python) @@ -325,6 +326,12 @@ command." (call-interactively #'compile))) ("subworkflow" (user-error "Cannot compile a subworkflow")))))) +(add-to-list 'compilation-error-regexp-alist 'snakemake) +(add-to-list + 'compilation-error-regexp-alist-alist + '(snakemake . ("^SyntaxError in line \\([0-9]+\\) of \\(.*[^A-z]Snakefile\\):$" + 2 1))) + ;;; Imenu -- cgit v1.2.3