From b27b281bae08c81b79217a6f7ed5dfa2654f4239 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 31 Oct 2023 22:25:20 +0100 Subject: [PATCH] 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. --- base.css | 2 +- source.plp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 = ( -- 2.30.0