Add syntax definition for Adblock Plus filter lists
ClosedPublic

Authored by vkrause on Sep 2 2017, 5:56 PM.

Details

Summary

This will allow us to replace the handwritten highlighter in the KDE PIM
adblocker plugin.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Sep 2 2017, 5:56 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 2 2017, 5:56 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dhaumann accepted this revision.Sep 2 2017, 7:37 PM
dhaumann added a subscriber: dhaumann.

I guess this looks good.

I was pondering whether we need #pop#pop in the lineEndContext of context option-context, but if it works, it is probably fine...

This revision is now accepted and ready to land.Sep 2 2017, 7:37 PM
dhaumann added a comment.EditedSep 2 2017, 7:38 PM

Ah, one question though: the .syntax file exists only for us as hint, or is it read by the unit test to specify the used highlighting ?

The .syntax files are read by the tests, for files that cannot be auto-detected.

Hm, and I thought I had used #pop!option-context for switching from exception to option context, but it indeed doesn't seem to make any difference.

This revision was automatically updated to reflect the committed changes.