From d49c6580e5e01a5e80198f4026caf1d5a717f8a0 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 11 Apr 2019 22:23:03 -0400 Subject: mode: Add checkpoint support --- NEWS | 6 ++++++ snakemake-mode.el | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 805c974..a8baf33 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ NEWS -- history of user-visible changes -*- mode: org; -*- +* master (unreleased) + +** New features + +- Checkpoints (new in Snakemake v5.4) are now recognized. + * v1.5.0 ** New features diff --git a/snakemake-mode.el b/snakemake-mode.el index 23acc5c..e8fe45f 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -75,7 +75,8 @@ (eval-and-compile (defconst snakemake-rx-constituents - `((named-rule . ,(rx (and (group symbol-start (or "rule" "subworkflow")) + `((named-rule . ,(rx (and (group symbol-start + (or "checkpoint" "rule" "subworkflow")) " " (group (one-or-more (or (syntax word) (syntax symbol))))))) @@ -120,6 +121,7 @@ symbol-end)) (sm-builtin . ,(rx symbol-start (or "ancient" + "checkpoints" "directory" "dynamic" "expand" -- cgit v1.2.3