Fix if*/elif* highlighting
A regular expression with alternation will take the first match that succeeds, so if 'if' comes before 'ifarch', 'ifos', etc. then the longer matches will never even be checked.
This commit is contained in:
parent
921ef57449
commit
f947d54902
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function hljsDefineRpmSpecfile(hljs) {
|
|||
},
|
||||
{
|
||||
className: "link",
|
||||
begin: /(%)(if|ifarch|ifnarch|ifos|ifnos|elif|elifarch|elifos|else|endif)/,
|
||||
begin: /(%)(ifarch|ifnarch|ifos|ifnos|if|elifarch|elifos|elif|else|endif)/,
|
||||
},
|
||||
{
|
||||
className: "link",
|
||||
|
|
Loading…
Add table
Reference in a new issue