Add support for systemd unit files
An attempt on systemd unit files.
Some Features
- The highlighting definition file is formatted using
xmllint --format
. - Highlighting of comments, supporting existing
Alerts
. - Styles for section headers and option names are similar to existing INI-file highlighting.
- Support for folding of sections.
- Only valid sections are highlighted. Invalid sections are ignored as a whole.
- Sections starting with
X-
are recognized as extension section and highlighted in a specific style as a whole. - Only options valid within a specific section are highlighted. Invalid options are ignored, including options only valid in some other section.
- Options starting with
X-
are recognized as extension option and highlighted in a specific style as a whole. - Highlighting of globs/wildcards where applicable.
- Highlighting of specifiers like
%h
,%U
where applicable. - Highlighting of escapes like
\,
,\b
,\x0A
,\012
in command lines. - Highlighting of valid values for many options.
- Valid option names within a specific section, values for specific option types, valid specifiers, escapes, ... are extracted from systemd source files.