From b172d4dfb95e4c0ccd4ae6ba4a67ceebe8e399c8 Mon Sep 17 00:00:00 2001 From: Frank Dana Date: Thu, 14 Apr 2022 07:49:46 -0400 Subject: [PATCH] Style heading-like markers as 'section' --- rpm-specfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm-specfile.js b/rpm-specfile.js index 6d5e5e6..7ff106e 100644 --- a/rpm-specfile.js +++ b/rpm-specfile.js @@ -31,7 +31,7 @@ function hljsDefineRpmSpecfile(hljs) { begin: /^(Name|BuildRequires|BuildConflicts|Version|Release|Epoch|Summary|Group|License|Packager|Vendor|Icon|URL|Distribution|Prefix|Patch[0-9]*|Source[0-9]*|Requires\(?[a-z]*\)?|[a-zA-Z]+Req|Obsoletes|Recommends|Suggests|Supplements|Enhances|Provides|Conflicts|RemovePathPostfixes|Build[a-zA-Z]+|[a-zA-Z]+Arch|Auto[a-zA-Z]+)(:)/, }, { - className: "keyword", + className: "section", begin: /(%)(?:package|prep|generate_buildrequires|sourcelist|patchlist|build|description|install|verifyscript|clean|changelog|check|pre[a-z]*|post[a-z]*|trigger[a-z]*|files)/, }, {