Commit graph

7 commits

Author SHA1 Message Date
Frank Dana
f04b8a8058
Fix if*/elif* highlighting (#5)
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.
2023-03-01 17:39:58 -05:00
Frank Dana
78f00fcef1
Add 'name' property
Since highlightjs/highlight.js#2400 (merged as highlightjs/highlight.js@65d46b3),
a 'name' attribute is supported for language grammars.
2023-02-15 23:09:48 -05:00
Josh Goebel
921ef57449
(chore) hljs.highlightAll(); 2022-02-25 16:14:22 -05:00
David Auer
1b204bd2e1
Remove apostrophe highlighting (#3)
Highlighting on apostrophes seems to cause more problems
than it solves, and it seems unlikely that it will be missed, as
it's much more common to use quotes for strings rather than
apostrophes.

Fixes: https://pagure.io/pagure/issue/5103
2021-01-27 09:12:09 -05:00
Neal Gompa
73713ed7c9 Add BuildConflicts recognition and fix some matching rules
BuildConflicts is a valid key in a spec file, so it should obviously
be recognized.

A number of the regex statements for recognizing camel case words
were not correctly specified (e.g. BuildArch vs buildArch), and those
are now fixed to be recognized.
2019-08-08 23:19:05 -04:00
Marcos Cáceres
01f43f4ca0 docs(README): remove type from script tags 2019-07-09 13:16:32 +10:00
Neal Gompa
68e385c4d5 Initial commit of RPM Specfile syntax definition and demo sample
Co-authored-by: Neal Gompa <ngompa13@gmail.com>
Co-authored-by: Ryan Lerch <rlerch@redhat.com>
2019-07-08 22:14:21 -04:00