vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ee93bd03a0d50fc01956bc208144565b4b37641b
parent 9d33301fbcdabf8b1656eb42aeb56c8103a87840
Author: Christian Hesse <mail@eworm.de>
Date:   Sat,  7 May 2016 21:44:59 +0200

lexer: add systemd service types

Diffstat:
Mlexers/systemd.lua | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lexers/systemd.lua b/lexers/systemd.lua @@ -39,7 +39,7 @@ local number = token(l.NUMBER, (l.float + integer)) -- Keywords. local keyword = token(l.KEYWORD, word_match({ - -- values + -- boolean values 'true', 'false', 'on', @@ -47,6 +47,14 @@ local keyword = token(l.KEYWORD, word_match({ 'yes', 'no', + -- service types + 'forking', + 'simple', + 'oneshot', + 'dbus', + 'notify', + 'idle', + -- special system units 'basic.target', 'ctrl-alt-del.target',