From a9f9b6054445a839cecdb10949adbd9dccbd7682 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 23 Mar 2017 03:11:36 +0100 Subject: [PATCH] digraphs: mark new vim entries by comparing to v7.4 copy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Vim version 8.0 introduced «.,» so save the old output to be able to distinguish such new features, as a lot of users are unlikely to upgrade for a while yet. Reported-by: Skef Iterum --- base.css | 4 +++- digraphs.plp | 1 + tools/mkdigraphlist | 11 ++++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/base.css b/base.css index 3b196fc..4d8d12f 100644 --- a/base.css +++ b/base.css @@ -399,6 +399,7 @@ table.dimap { /* foreground representation */ #digraphs .u-l3 {color: #080} /* partial */ +#digraphs .u-l3.ex {color: #4C0} /* experimental */ #digraphs .u-l2 {color: #A44; color: rgba(128, 0, 0, .6)} /* unofficial proposal */ #digraphs .u-l1 {color: #D00; color: rgba(255, 0, 0, .8)} /* minimal or invalid */ @@ -469,7 +470,8 @@ table.dimap { .l3:hover {background: #FF8} .l4:hover {background: #CF8} .l5:hover {background: #8F8} -.u-l3:hover {outline: 1px solid #0F0} +.u-l3:hover {outline: 1px solid #080} +.u-l3.ex:hover {outline: 1px solid #8F0} .u-l2:hover {outline: 1px solid #800} .u-l1:hover {outline: 1px solid #F00} diff --git a/digraphs.plp b/digraphs.plp index 4fff67d..e66ec8f 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -171,6 +171,7 @@ if ($mode) {
full support vim extension + vim v8.0 proposal not in vim
diff --git a/tools/mkdigraphlist b/tools/mkdigraphlist index ab0c2f9..a0c5ab2 100755 --- a/tools/mkdigraphlist +++ b/tools/mkdigraphlist @@ -15,6 +15,8 @@ my $extra = do 'data/digraphs-shiar.inc.pl' or warn "could not include shiar proposals: ", $@ // $!; my $vim = do 'data/digraphs-vim.inc.pl' or warn "could not include vim extensions ", $@ // $!; +my $vimold = do 'data/digraphs-vim-74.inc.pl' + or warn "could not include vim compatibility ", $@ // $!; my $di = { %{$vim // {}}, %{$rfc}, %{$extra // {}} }; # optionally get unicode character information @@ -34,9 +36,12 @@ printf "q{%s}=>[%s],\n", s/(?=[\\}])/\\/gr, join(',', ord $di->{$_}, # original code point map {"'$_'"} $uninfo->{ $di->{$_} }->[1] // '', # name - $rfc->{$_} - ? $vim->{$_} ? 'l4' : 'l1' # vim+rfc or rfc only - : $vim->{$_} ? 'l3' : 'l2', # vim only or neither + join(' ', + $rfc->{$_} + ? $vim->{$_} ? 'l4' : 'l1' # vim+rfc or rfc only + : $vim->{$_} ? 'l3' : 'l2', # vim only or neither + $vimold && $vim->{$_} && !$vimold->{$_} ? 'ex' : (), # new vim feature + ), ($uninfo->{ $di->{$_} }->[0] // '') =~ s/ u-di| u-prop| ex//gr, # class $uninfo->{ $di->{$_} }->[4] // (), # string ) for sort keys %{$di}; -- 2.30.0