From 5e12abc73cd0b804ef30f7a05b9f541e6a8ce86c Mon Sep 17 00:00:00 2001 From: Frank Dana Date: Thu, 14 Apr 2022 07:34:07 -0400 Subject: [PATCH] Style builtins as 'built_in', expand list - Change styling for fundamental spec syntax to 'built_in' - Add more commands, like %define/%global and %bcond* --- rpm-specfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm-specfile.js b/rpm-specfile.js index 6d5e5e6..7dc9d0f 100644 --- a/rpm-specfile.js +++ b/rpm-specfile.js @@ -35,8 +35,8 @@ function hljsDefineRpmSpecfile(hljs) { begin: /(%)(?:package|prep|generate_buildrequires|sourcelist|patchlist|build|description|install|verifyscript|clean|changelog|check|pre[a-z]*|post[a-z]*|trigger[a-z]*|files)/, }, { - className: "link", - begin: /(%)(if|ifarch|ifnarch|ifos|ifnos|elif|elifarch|elifos|else|endif)/, + className: "built_in", + begin: /(%)(if|ifarch|ifnarch|ifos|ifnos|elif|elifarch|elifos|else|endif|bcond_(with|without)|bcond|define|global)/, }, { className: "link",