Style builtins as 'built_in', expand list

- Change styling for fundamental spec syntax to 'built_in'
- Add more commands, like %define/%global and
 %bcond*
This commit is contained in:
Frank Dana 2022-04-14 07:34:07 -04:00 committed by GitHub
parent 921ef57449
commit 5e12abc73c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",