aboutsummaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r--snakemake-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index e87c25a..8694762 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -75,8 +75,9 @@
(eval-and-compile
(defconst snakemake-rx-constituents
- `((named-rule . ,(rx (and (group symbol-start
- (or "checkpoint" "rule" "subworkflow"))
+ `((named-rule . ,(rx (and (group
+ symbol-start
+ (or "checkpoint" "module" "rule" "subworkflow"))
" "
(group (one-or-more
(or (syntax word) (syntax symbol)))))))
@@ -452,6 +453,7 @@ embedded R, you need to set mmm-global-mode to a non-nil value such as 'maybe.")
(group sm-command)
(zero-or-more space) ":")
1 font-lock-keyword-face)
+ (,(rx line-start (group "use rule ")) 1 font-lock-keyword-face)
(,(snakemake-rx (group sm-builtin)) 1 font-lock-builtin-face)))
(if (bound-and-true-p python-font-lock-keywords-level-1)