summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--snakemake-mode.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e96fb89..3bef2db 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,8 @@ NEWS -- history of user-visible changes -*- mode: org; -*-
highlight string-embedded R code. (Contributed by Endre Bakken
Stovner.)
+- ".rules" has been added as a suffix for Snakemake files.
+
* v0.4.0
** New features
diff --git a/snakemake-mode.el b/snakemake-mode.el
index cb8f672..93e42e6 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -402,7 +402,7 @@ embedded R, you need to set mmm-global-mode to a non-nil value such as 'maybe.")
;;;###autoload
(add-to-list 'auto-mode-alist '("Snakefile\\'" . snakemake-mode))
;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.smrules\\'" . snakemake-mode))
+(add-to-list 'auto-mode-alist '("\\.\\(?:sm\\)?rules\\'" . snakemake-mode))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.snakefile\\'" . snakemake-mode))