From 5d5bb0109f6a84c0c191559ab71670fae4650e6a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 21 Feb 2020 00:42:38 -0500 Subject: font-lock: Adjust python-font-lock-keywords handling for Emacs 27 In Emacs 27, specifically 36b64e087e (Add 'font-lock-maximum-decoration' levels for Python, 2018-07-19), python-font-lock-keywords was changed to a list of symbols that define different fontification levels, so we can no longer simply tack snakemake-font-lock-keywords onto it. Instead define a set of levels that mirrors Python mode's. For Snakemake mode, the same decoration is used for all levels, but at least we will honor the level of decoration that the user has set for Python. Reported-by: Nicholas Knoblauch Closes #29. --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index bc2fc12..8b7e817 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,9 @@ NEWS -- history of user-visible changes -*- mode: org; -*- - The 'multiext' built-in (new in Snakemake v5.8.2) is now recognized. +- The font-lock handling has been updated to be compatible with + python.el changes in Emacs 27. + * v1.6.0 - Checkpoints (new in Snakemake v5.4) are now recognized. -- cgit v1.2.3