From 5bb10d25efef96a48462017975b5848550d3cb3e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 30 Nov 2014 12:05:13 +0000 Subject: [PATCH] =?utf8?q?Colorizing=20the=20section=20headers=20%pretrans?= =?utf8?q?=20and=20%posttrans=20fully.=20Original=20patch=20from=20Savanna?= =?utf8?q?h=20patch=20#8573=20by=20Daniel=20Vr=C3=A1til.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5096 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ doc/syntax/spec.nanorc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 645438ee..3ce23af0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-30 Benno Schulenberg + * doc/syntax/spec.nanorc: Colorize %pretrans and %posttrans fully. + Original patch from Savannah patch #8573 by Daniel Vrátil. + 2014-09-21 Benno Schulenberg * doc/syntax/{perl,python,ruby,sh}.nanorc: Recognize also header lines of the form "#!/usr/bin/env thing" besides "#!/bin/thing". diff --git a/doc/syntax/spec.nanorc b/doc/syntax/spec.nanorc index a0fff88a..47de211a 100644 --- a/doc/syntax/spec.nanorc +++ b/doc/syntax/spec.nanorc @@ -24,8 +24,8 @@ color yellow start="%__" end="\ " color magenta start="%\{" end="\}" color yellow start="%\{__" end="\}" # Sections. -color red "^%(build$|changelog|check$|clean$|description|files|install$|package|pre|prep$|preun|post|postun)" -color red "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" +color red "^%(build$|changelog|check$|clean$|description|files|install$|package|pre|prep$|pretrans|preun)" +color red "^%(post|posttrans|postun|trigger|triggerin|triggerpostun|triggerun|verifyscript)" # Conditionals and defines. color brightred "%(if|else|endif|define|global|undefine)" -- 2.39.5