From: Mischa POSLAWSKY Date: Tue, 31 Oct 2023 21:25:20 +0000 (+0100) Subject: source: highlight perl signatures as Type instead of Error X-Git-Tag: v1.15~23 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/b27b281bae08c81b79217a6f7ed5dfa2654f4239 source: highlight perl signatures as Type instead of Error Enable Vim option for experimental code feature used in perl.plp, and distinguish it from adjacent Identifiers. --- diff --git a/base.css b/base.css index 7cafc57..ffa59a5 100644 --- a/base.css +++ b/base.css @@ -504,10 +504,10 @@ table.dimap { /* code syntax */ .sy-comment { color: #888 } .sy-constant { color: #008 } -.sy-type, .sy-identifier { color: #804 } .sy-statement { } .sy-preProc { } +.sy-type, .sy-special { color: #408 } .sy-error { font-weight: bold; background-color: #F00; color: #FFF } .sy-todo { background-color: #FF0 } diff --git a/source.plp b/source.plp index b586dbe..e07087d 100644 --- a/source.plp +++ b/source.plp @@ -99,7 +99,10 @@ else { delete $Text::VimColor::SYNTAX_TYPE{Underlined}; return Text::VimColor->new( file => $path, - vim_options => [@Text::VimColor::VIM_OPTIONS, '+:set enc=utf-8'], + vim_options => [@Text::VimColor::VIM_OPTIONS, + '+:set enc=utf-8', + '+:let perl_sub_signatures=1', + ], )->marked; }) { my %TYPETAG = (