diff --git a/git/usr/share/perl5/core_perl/AnyDBM_File.pm b/git/usr/share/perl5/core_perl/AnyDBM_File.pm new file mode 100644 index 0000000000000000000000000000000000000000..4153af2de2d8e4524b6f75d3cde65fb9cd0f588f --- /dev/null +++ b/git/usr/share/perl5/core_perl/AnyDBM_File.pm @@ -0,0 +1,96 @@ +package AnyDBM_File; +use warnings; +use strict; + +use 5.006_001; +our $VERSION = '1.01'; +our @ISA = qw(NDBM_File DB_File GDBM_File SDBM_File ODBM_File) unless @ISA; + +my $mod; +for $mod (@ISA) { + if (eval "require $mod") { + @ISA = ($mod); # if we leave @ISA alone, warnings abound + return 1; + } +} + +die "No DBM package was successfully found or installed"; + +__END__ + +=head1 NAME + +AnyDBM_File - provide framework for multiple DBMs + +NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File - various DBM implementations + +=head1 SYNOPSIS + + use AnyDBM_File; + +=head1 DESCRIPTION + +This module is a "pure virtual base class"--it has nothing of its own. +It's just there to inherit from one of the various DBM packages. It +prefers ndbm for compatibility reasons with Perl 4, then Berkeley DB (See +L), GDBM, SDBM (which is always there--it comes with Perl), and +finally ODBM. This way old programs that used to use NDBM via dbmopen() +can still do so, but new ones can reorder @ISA: + + BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) } + use AnyDBM_File; + +Having multiple DBM implementations makes it trivial to copy database formats: + + use Fcntl; use NDBM_File; use DB_File; + tie %newhash, 'DB_File', $new_filename, O_CREAT|O_RDWR; + tie %oldhash, 'NDBM_File', $old_filename, 1, 0; + %newhash = %oldhash; + +=head2 DBM Comparisons + +Here's a partial table of features the different packages offer: + + odbm ndbm sdbm gdbm bsd-db + ---- ---- ---- ---- ------ + Linkage comes w/ perl yes yes yes yes yes + Src comes w/ perl no no yes no no + Comes w/ many unix os yes yes[0] no no no + Builds ok on !unix ? ? yes yes ? + Code Size ? ? small big big + Database Size ? ? small big? ok[1] + Speed ? ? slow ok fast + FTPable no no yes yes yes + Easy to build N/A N/A yes yes ok[2] + Size limits 1k 4k 1k[3] none none + Byte-order independent no no no no yes + Licensing restrictions ? ? no yes no + + +=over 4 + +=item [0] + +on mixed universe machines, may be in the bsd compat library, +which is often shunned. + +=item [1] + +Can be trimmed if you compile for one access method. + +=item [2] + +See L. +Requires symbolic links. + +=item [3] + +By default, but can be redefined. + +=back + +=head1 SEE ALSO + +dbm(3), ndbm(3), DB_File(3), L + +=cut diff --git a/git/usr/share/perl5/core_perl/AutoLoader.pm b/git/usr/share/perl5/core_perl/AutoLoader.pm new file mode 100644 index 0000000000000000000000000000000000000000..5546f9e995333cedc818b8dcc8757e64b86ded54 --- /dev/null +++ b/git/usr/share/perl5/core_perl/AutoLoader.pm @@ -0,0 +1,453 @@ +package AutoLoader; + +use strict; +use 5.006_001; + +our($VERSION, $AUTOLOAD); + +my $is_dosish; +my $is_epoc; +my $is_vms; +my $is_macos; + +BEGIN { + $is_dosish = $^O eq 'dos' || $^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'NetWare'; + $is_epoc = $^O eq 'epoc'; + $is_vms = $^O eq 'VMS'; + $is_macos = $^O eq 'MacOS'; + $VERSION = '5.74'; +} + +AUTOLOAD { + my $sub = $AUTOLOAD; + autoload_sub($sub); + goto &$sub; +} + +sub autoload_sub { + my $sub = shift; + + my $filename = AutoLoader::find_filename( $sub ); + + my $save = $@; + local $!; # Do not munge the value. + eval { local $SIG{__DIE__}; require $filename }; + if ($@) { + if (substr($sub,-9) eq '::DESTROY') { + no strict 'refs'; + *$sub = sub {}; + $@ = undef; + } elsif ($@ =~ /^Can't locate/) { + # The load might just have failed because the filename was too + # long for some old SVR3 systems which treat long names as errors. + # If we can successfully truncate a long name then it's worth a go. + # There is a slight risk that we could pick up the wrong file here + # but autosplit should have warned about that when splitting. + if ($filename =~ s/(\w{12,})\.al$/substr($1,0,11).".al"/e){ + eval { local $SIG{__DIE__}; require $filename }; + } + } + if ($@){ + $@ =~ s/ at .*\n//; + my $error = $@; + require Carp; + Carp::croak($error); + } + } + $@ = $save; + + return 1; +} + +sub find_filename { + my $sub = shift; + my $filename; + # Braces used to preserve $1 et al. + { + # Try to find the autoloaded file from the package-qualified + # name of the sub. e.g., if the sub needed is + # Getopt::Long::GetOptions(), then $INC{Getopt/Long.pm} is + # something like '/usr/lib/perl5/Getopt/Long.pm', and the + # autoload file is '/usr/lib/perl5/auto/Getopt/Long/GetOptions.al'. + # + # However, if @INC is a relative path, this might not work. If, + # for example, @INC = ('lib'), then $INC{Getopt/Long.pm} is + # 'lib/Getopt/Long.pm', and we want to require + # 'auto/Getopt/Long/GetOptions.al' (without the leading 'lib'). + # In this case, we simple prepend the 'auto/' and let the + # C take care of the searching for us. + + my ($pkg,$func) = ($sub =~ /(.*)::([^:]+)$/); + $pkg =~ s#::#/#g; + if (defined($filename = $INC{"$pkg.pm"})) { + if ($is_macos) { + $pkg =~ tr#/#:#; + $filename = undef + unless $filename =~ s#^(.*)$pkg\.pm\z#$1auto:$pkg:$func.al#s; + } else { + $filename = undef + unless $filename =~ s#^(.*)$pkg\.pm\z#$1auto/$pkg/$func.al#s; + } + + # if the file exists, then make sure that it is a + # a fully anchored path (i.e either '/usr/lib/auto/foo/bar.al', + # or './lib/auto/foo/bar.al'. This avoids C searching + # (and failing) to find the 'lib/auto/foo/bar.al' because it + # looked for 'lib/lib/auto/foo/bar.al', given @INC = ('lib'). + + if (defined $filename and -r $filename) { + unless ($filename =~ m|^/|s) { + if ($is_dosish) { + unless ($filename =~ m{^([a-z]:)?[\\/]}is) { + if ($^O ne 'NetWare') { + $filename = "./$filename"; + } else { + $filename = "$filename"; + } + } + } + elsif ($is_epoc) { + unless ($filename =~ m{^([a-z?]:)?[\\/]}is) { + $filename = "./$filename"; + } + } + elsif ($is_vms) { + # XXX todo by VMSmiths + $filename = "./$filename"; + } + elsif (!$is_macos) { + $filename = "./$filename"; + } + } + } + else { + $filename = undef; + } + } + unless (defined $filename) { + # let C do the searching + $filename = "auto/$sub.al"; + $filename =~ s#::#/#g; + } + } + return $filename; +} + +sub import { + my $pkg = shift; + my $callpkg = caller; + + # + # Export symbols, but not by accident of inheritance. + # + + if ($pkg eq 'AutoLoader') { + if ( @_ and $_[0] =~ /^&?AUTOLOAD$/ ) { + no strict 'refs'; + *{ $callpkg . '::AUTOLOAD' } = \&AUTOLOAD; + } + } + + # + # Try to find the autosplit index file. Eg., if the call package + # is POSIX, then $INC{POSIX.pm} is something like + # '/usr/local/lib/perl5/POSIX.pm', and the autosplit index file is in + # '/usr/local/lib/perl5/auto/POSIX/autosplit.ix', so we require that. + # + # However, if @INC is a relative path, this might not work. If, + # for example, @INC = ('lib'), then + # $INC{POSIX.pm} is 'lib/POSIX.pm', and we want to require + # 'auto/POSIX/autosplit.ix' (without the leading 'lib'). + # + + (my $calldir = $callpkg) =~ s#::#/#g; + my $path = $INC{$calldir . '.pm'}; + if (defined($path)) { + # Try absolute path name, but only eval it if the + # transformation from module path to autosplit.ix path + # succeeded! + my $replaced_okay; + if ($is_macos) { + (my $malldir = $calldir) =~ tr#/#:#; + $replaced_okay = ($path =~ s#^(.*)$malldir\.pm\z#$1auto:$malldir:autosplit.ix#s); + } else { + $replaced_okay = ($path =~ s#^(.*)$calldir\.pm\z#$1auto/$calldir/autosplit.ix#); + } + + eval { require $path; } if $replaced_okay; + # If that failed, try relative path with normal @INC searching. + if (!$replaced_okay or $@) { + $path ="auto/$calldir/autosplit.ix"; + eval { require $path; }; + } + if ($@) { + my $error = $@; + require Carp; + Carp::carp($error); + } + } +} + +sub unimport { + my $callpkg = caller; + + no strict 'refs'; + + for my $exported (qw( AUTOLOAD )) { + my $symname = $callpkg . '::' . $exported; + undef *{ $symname } if \&{ $symname } == \&{ $exported }; + *{ $symname } = \&{ $symname }; + } +} + +1; + +__END__ + +=head1 NAME + +AutoLoader - load subroutines only on demand + +=head1 SYNOPSIS + + package Foo; + use AutoLoader 'AUTOLOAD'; # import the default AUTOLOAD subroutine + + package Bar; + use AutoLoader; # don't import AUTOLOAD, define our own + sub AUTOLOAD { + ... + $AutoLoader::AUTOLOAD = "..."; + goto &AutoLoader::AUTOLOAD; + } + +=head1 DESCRIPTION + +The B module works with the B module and the +C<__END__> token to defer the loading of some subroutines until they are +used rather than loading them all at once. + +To use B, the author of a module has to place the +definitions of subroutines to be autoloaded after an C<__END__> token. +(See L.) The B module can then be run manually to +extract the definitions into individual files F. + +B implements an AUTOLOAD subroutine. When an undefined +subroutine in is called in a client module of B, +B's AUTOLOAD subroutine attempts to locate the subroutine in a +file with a name related to the location of the file from which the +client module was read. As an example, if F is located in +F, B will look for perl +subroutines B in F, where +the C<.al> file has the same name as the subroutine, sans package. If +such a file exists, AUTOLOAD will read and evaluate it, +thus (presumably) defining the needed subroutine. AUTOLOAD will then +C the newly defined subroutine. + +Once this process completes for a given function, it is defined, so +future calls to the subroutine will bypass the AUTOLOAD mechanism. + +=head2 Subroutine Stubs + +In order for object method lookup and/or prototype checking to operate +correctly even when methods have not yet been defined it is necessary to +"forward declare" each subroutine (as in C). See +L. Such forward declaration creates "subroutine +stubs", which are place holders with no code. + +The AutoSplit and B modules automate the creation of forward +declarations. The AutoSplit module creates an 'index' file containing +forward declarations of all the AutoSplit subroutines. When the +AutoLoader module is 'use'd it loads these declarations into its callers +package. + +Because of this mechanism it is important that B is always +Cd and not Cd. + +=head2 Using B's AUTOLOAD Subroutine + +In order to use B's AUTOLOAD subroutine you I +explicitly import it: + + use AutoLoader 'AUTOLOAD'; + +=head2 Overriding B's AUTOLOAD Subroutine + +Some modules, mainly extensions, provide their own AUTOLOAD subroutines. +They typically need to check for some special cases (such as constants) +and then fallback to B's AUTOLOAD for the rest. + +Such modules should I import B's AUTOLOAD subroutine. +Instead, they should define their own AUTOLOAD subroutines along these +lines: + + use AutoLoader; + use Carp; + + sub AUTOLOAD { + my $sub = $AUTOLOAD; + (my $constname = $sub) =~ s/.*:://; + my $val = constant($constname, @_ ? $_[0] : 0); + if ($! != 0) { + if ($! =~ /Invalid/ || $!{EINVAL}) { + $AutoLoader::AUTOLOAD = $sub; + goto &AutoLoader::AUTOLOAD; + } + else { + croak "Your vendor has not defined constant $constname"; + } + } + *$sub = sub { $val }; # same as: eval "sub $sub { $val }"; + goto &$sub; + } + +If any module's own AUTOLOAD subroutine has no need to fallback to the +AutoLoader's AUTOLOAD subroutine (because it doesn't have any AutoSplit +subroutines), then that module should not use B at all. + +=head2 Package Lexicals + +Package lexicals declared with C in the main block of a package +using B will not be visible to auto-loaded subroutines, due to +the fact that the given scope ends at the C<__END__> marker. A module +using such variables as package globals will not work properly under the +B. + +The C pragma (see L) may be used in such +situations as an alternative to explicitly qualifying all globals with +the package namespace. Variables pre-declared with this pragma will be +visible to any autoloaded routines (but will not be invisible outside +the package, unfortunately). + +=head2 Not Using AutoLoader + +You can stop using AutoLoader by simply + + no AutoLoader; + +=head2 B vs. B + +The B is similar in purpose to B: both delay the +loading of subroutines. + +B uses the C<__DATA__> marker rather than C<__END__>. +While this avoids the use of a hierarchy of disk files and the +associated open/close for each routine loaded, B suffers a +startup speed disadvantage in the one-time parsing of the lines after +C<__DATA__>, after which routines are cached. B can also +handle multiple packages in a file. + +B only reads code as it is requested, and in many cases +should be faster, but requires a mechanism like B be used to +create the individual files. L will invoke +B automatically if B is used in a module source +file. + +=head2 Forcing AutoLoader to Load a Function + +Sometimes, it can be necessary or useful to make sure that a certain +function is fully loaded by AutoLoader. This is the case, for example, +when you need to wrap a function to inject debugging code. It is also +helpful to force early loading of code before forking to make use of +copy-on-write as much as possible. + +Starting with AutoLoader 5.73, you can call the +C function with the fully-qualified name of +the function to load from its F<.al> file. The behaviour is exactly +the same as if you called the function, triggering the regular +C mechanism, but it does not actually execute the +autoloaded function. + +=head1 CAVEATS + +AutoLoaders prior to Perl 5.002 had a slightly different interface. Any +old modules which use B should be changed to the new calling +style. Typically this just means changing a require to a use, adding +the explicit C<'AUTOLOAD'> import if needed, and removing B +from C<@ISA>. + +On systems with restrictions on file name length, the file corresponding +to a subroutine may have a shorter name that the routine itself. This +can lead to conflicting file names. The I package warns of +these potential conflicts when used to split a module. + +AutoLoader may fail to find the autosplit files (or even find the wrong +ones) in cases where C<@INC> contains relative paths, B the program +does C. + +=head1 SEE ALSO + +L - an autoloader that doesn't use external files. + +=head1 AUTHOR + +C is maintained by the perl5-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the CPAN release can be sent to its maintainer, +though. + +Author and Maintainer: The Perl5-Porters + +Maintainer of the CPAN release: Steffen Mueller + +=head1 COPYRIGHT AND LICENSE + +This package has been part of the perl core since the first release +of perl5. It has been released separately to CPAN so older installations +can benefit from bug fixes. + +This package has the same copyright and license as the perl core: + + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, + 2011, 2012, 2013 + by Larry Wall and others + + All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of either: + + a) the GNU General Public License as published by the Free + Software Foundation; either version 1, or (at your option) any + later version, or + + b) the "Artistic License" which comes with this Kit. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either + the GNU General Public License or the Artistic License for more details. + + You should have received a copy of the Artistic License with this + Kit, in the file named "Artistic". If not, I'll be glad to provide one. + + You should also have received a copy of the GNU General Public License + along with this program in the file named "Copying". If not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA or visit their web page on the internet at + http://www.gnu.org/copyleft/gpl.html. + + For those of you that choose to use the GNU General Public License, + my interpretation of the GNU General Public License is that no Perl + script falls under the terms of the GPL unless you explicitly put + said script under the terms of the GPL yourself. Furthermore, any + object code linked with perl does not automatically fall under the + terms of the GPL, provided such object code only adds definitions + of subroutines and variables, and does not otherwise impair the + resulting interpreter from executing any standard Perl script. I + consider linking in C subroutines in this manner to be the moral + equivalent of defining subroutines in the Perl language itself. You + may sell such an object file as proprietary provided that you provide + or offer to provide the Perl source, as specified by the GNU General + Public License. (This is merely an alternate way of specifying input + to the program.) You may also sell a binary produced by the dumping of + a running Perl script that belongs to you, provided that you provide or + offer to provide the Perl source as specified by the GPL. (The + fact that a Perl interpreter and your code are in the same binary file + is, in this case, a form of mere aggregation.) This is my interpretation + of the GPL. If you still have concerns or difficulties understanding + my intent, feel free to contact me. Of course, the Artistic License + spells all this out for your protection, so you may prefer to use that. + +=cut diff --git a/git/usr/share/perl5/core_perl/AutoSplit.pm b/git/usr/share/perl5/core_perl/AutoSplit.pm new file mode 100644 index 0000000000000000000000000000000000000000..c093f2dd24ba841f3bf2cbfe401c56a0c60942f6 --- /dev/null +++ b/git/usr/share/perl5/core_perl/AutoSplit.pm @@ -0,0 +1,592 @@ +package AutoSplit; + +use Exporter (); +use Config qw(%Config); +use File::Basename (); +use File::Path qw(mkpath); +use File::Spec::Functions qw(curdir catfile catdir); +use strict; +our($VERSION, @ISA, @EXPORT, @EXPORT_OK, $Verbose, $Keep, $Maxlen, + $CheckForAutoloader, $CheckModTime); + +$VERSION = "1.06"; +@ISA = qw(Exporter); +@EXPORT = qw(&autosplit &autosplit_lib_modules); +@EXPORT_OK = qw($Verbose $Keep $Maxlen $CheckForAutoloader $CheckModTime); + +=head1 NAME + +AutoSplit - split a package for autoloading + +=head1 SYNOPSIS + + autosplit($file, $dir, $keep, $check, $modtime); + + autosplit_lib_modules(@modules); + +=head1 DESCRIPTION + +This function will split up your program into files that the AutoLoader +module can handle. It is used by both the standard perl libraries and by +the MakeMaker utility, to automatically configure libraries for autoloading. + +The C interface splits the specified file into a hierarchy +rooted at the directory C<$dir>. It creates directories as needed to reflect +class hierarchy, and creates the file F. This file acts as +both forward declaration of all package routines, and as timestamp for the +last update of the hierarchy. + +The remaining three arguments to C govern other options to +the autosplitter. + +=over 2 + +=item $keep + +If the third argument, I<$keep>, is false, then any +pre-existing C<*.al> files in the autoload directory are removed if +they are no longer part of the module (obsoleted functions). +$keep defaults to 0. + +=item $check + +The +fourth argument, I<$check>, instructs C to check the module +currently being split to ensure that it includes a C +specification for the AutoLoader module, and skips the module if +AutoLoader is not detected. +$check defaults to 1. + +=item $modtime + +Lastly, the I<$modtime> argument specifies +that C is to check the modification time of the module +against that of the C file, and only split the module if +it is newer. +$modtime defaults to 1. + +=back + +Typical use of AutoSplit in the perl MakeMaker utility is via the command-line +with: + + perl -e 'use AutoSplit; autosplit($ARGV[0], $ARGV[1], 0, 1, 1)' + +Defined as a Make macro, it is invoked with file and directory arguments; +C will split the specified file into the specified directory and +delete obsolete C<.al> files, after checking first that the module does use +the AutoLoader, and ensuring that the module is not already currently split +in its current form (the modtime test). + +The C form is used in the building of perl. It takes +as input a list of files (modules) that are assumed to reside in a directory +B relative to the current directory. Each file is sent to the +autosplitter one at a time, to be split into the directory B. + +In both usages of the autosplitter, only subroutines defined following the +perl I<__END__> token are split out into separate files. Some +routines may be placed prior to this marker to force their immediate loading +and parsing. + +=head2 Multiple packages + +As of version 1.01 of the AutoSplit module it is possible to have +multiple packages within a single file. Both of the following cases +are supported: + + package NAME; + __END__ + sub AAA { ... } + package NAME::option1; + sub BBB { ... } + package NAME::option2; + sub BBB { ... } + + package NAME; + __END__ + sub AAA { ... } + sub NAME::option1::BBB { ... } + sub NAME::option2::BBB { ... } + +=head1 DIAGNOSTICS + +C will inform the user if it is necessary to create the +top-level directory specified in the invocation. It is preferred that +the script or installation process that invokes C have +created the full directory path ahead of time. This warning may +indicate that the module is being split into an incorrect path. + +C will warn the user of all subroutines whose name causes +potential file naming conflicts on machines with drastically limited +(8 characters or less) file name length. Since the subroutine name is +used as the file name, these warnings can aid in portability to such +systems. + +Warnings are issued and the file skipped if C cannot locate +either the I<__END__> marker or a "package Name;"-style specification. + +C will also emit general diagnostics for inability to +create directories or files. + +=head1 AUTHOR + +C is maintained by the perl5-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the CPAN release can be sent to its maintainer, +though. + +Author and Maintainer: The Perl5-Porters + +Maintainer of the CPAN release: Steffen Mueller + +=head1 COPYRIGHT AND LICENSE + +This package has been part of the perl core since the first release +of perl5. It has been released separately to CPAN so older installations +can benefit from bug fixes. + +This package has the same copyright and license as the perl core: + + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + by Larry Wall and others + + All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of either: + + a) the GNU General Public License as published by the Free + Software Foundation; either version 1, or (at your option) any + later version, or + + b) the "Artistic License" which comes with this Kit. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either + the GNU General Public License or the Artistic License for more details. + + You should have received a copy of the Artistic License with this + Kit, in the file named "Artistic". If not, I'll be glad to provide one. + + You should also have received a copy of the GNU General Public License + along with this program in the file named "Copying". If not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307, USA or visit their web page on the internet at + http://www.gnu.org/copyleft/gpl.html. + + For those of you that choose to use the GNU General Public License, + my interpretation of the GNU General Public License is that no Perl + script falls under the terms of the GPL unless you explicitly put + said script under the terms of the GPL yourself. Furthermore, any + object code linked with perl does not automatically fall under the + terms of the GPL, provided such object code only adds definitions + of subroutines and variables, and does not otherwise impair the + resulting interpreter from executing any standard Perl script. I + consider linking in C subroutines in this manner to be the moral + equivalent of defining subroutines in the Perl language itself. You + may sell such an object file as proprietary provided that you provide + or offer to provide the Perl source, as specified by the GNU General + Public License. (This is merely an alternate way of specifying input + to the program.) You may also sell a binary produced by the dumping of + a running Perl script that belongs to you, provided that you provide or + offer to provide the Perl source as specified by the GPL. (The + fact that a Perl interpreter and your code are in the same binary file + is, in this case, a form of mere aggregation.) This is my interpretation + of the GPL. If you still have concerns or difficulties understanding + my intent, feel free to contact me. Of course, the Artistic License + spells all this out for your protection, so you may prefer to use that. + +=cut + +# for portability warn about names longer than $maxlen +$Maxlen = 8; # 8 for dos, 11 (14-".al") for SYSVR3 +$Verbose = 1; # 0=none, 1=minimal, 2=list .al files +$Keep = 0; +$CheckForAutoloader = 1; +$CheckModTime = 1; + +my $IndexFile = "autosplit.ix"; # file also serves as timestamp +my $maxflen = 255; +$maxflen = 14 if $Config{'d_flexfnam'} ne 'define'; +if (defined (&Dos::UseLFN)) { + $maxflen = Dos::UseLFN() ? 255 : 11; +} +my $Is_VMS = ($^O eq 'VMS'); + +# allow checking for valid ': attrlist' attachments. +# extra jugglery required to support both 5.8 and 5.9/5.10 features +# (support for 5.8 required for cross-compiling environments) + +my $attr_list = + $] >= 5.009005 ? + eval <<'__QR__' + qr{ + \s* : \s* + (?: + # one attribute + (?> # no backtrack + (?! \d) \w+ + (? \( (?: [^()]++ | (?&nested)++ )*+ \) ) ? + ) + (?: \s* : \s* | \s+ (?! :) ) + )* + }x +__QR__ + : + do { + # In pre-5.9.5 world we have to do dirty tricks. + # (we use 'our' rather than 'my' here, due to the rather complex and buggy + # behaviour of lexicals with qr// and (??{$lex}) ) + our $trick1; # yes, cannot our and assign at the same time. + $trick1 = qr{ \( (?: (?> [^()]+ ) | (??{ $trick1 }) )* \) }x; + our $trick2 = qr{ (?> (?! \d) \w+ (?:$trick1)? ) (?:\s*\:\s*|\s+(?!\:)) }x; + qr{ \s* : \s* (?: $trick2 )* }x; + }; + +sub autosplit{ + my($file, $autodir, $keep, $ckal, $ckmt) = @_; + # $file - the perl source file to be split (after __END__) + # $autodir - the ".../auto" dir below which to write split subs + # Handle optional flags: + $keep = $Keep unless defined $keep; + $ckal = $CheckForAutoloader unless defined $ckal; + $ckmt = $CheckModTime unless defined $ckmt; + autosplit_file($file, $autodir, $keep, $ckal, $ckmt); +} + +sub carp{ + require Carp; + goto &Carp::carp; +} + +# This function is used during perl building/installation +# ./miniperl -e 'use AutoSplit; autosplit_lib_modules(@ARGV)' ... + +sub autosplit_lib_modules { + my(@modules) = @_; # list of Module names + local $_; # Avoid clobber. + while (defined($_ = shift @modules)) { + while (m#([^:]+)::([^:].*)#) { # in case specified as ABC::XYZ + $_ = catfile($1, $2); + } + s|\\|/|g; # bug in ksh OS/2 + s#^lib/##s; # incase specified as lib/*.pm + my($lib) = catfile(curdir(), "lib"); + if ($Is_VMS) { # may need to convert VMS-style filespecs + $lib =~ s#^\[\]#.\/#; + } + s#^$lib\W+##s; # incase specified as ./lib/*.pm + if ($Is_VMS && /[:>\]]/) { # may need to convert VMS-style filespecs + my ($dir,$name) = (/(.*])(.*)/s); + $dir =~ s/.*lib[\.\]]//s; + $dir =~ s#[\.\]]#/#g; + $_ = $dir . $name; + } + autosplit_file(catfile($lib, $_), catfile($lib, "auto"), + $Keep, $CheckForAutoloader, $CheckModTime); + } + 0; +} + + +# private functions + +my $self_mod_time = (stat __FILE__)[9]; + +sub autosplit_file { + my($filename, $autodir, $keep, $check_for_autoloader, $check_mod_time) + = @_; + my(@outfiles); + local($_); + local($/) = "\n"; + + # where to write output files + $autodir ||= catfile(curdir(), "lib", "auto"); + if ($Is_VMS) { + ($autodir = VMS::Filespec::unixpath($autodir)) =~ s|/\z||; + $filename = VMS::Filespec::unixify($filename); # may have dirs + } + unless (-d $autodir){ + mkpath($autodir,0,0755); + # We should never need to create the auto dir + # here. installperl (or similar) should have done + # it. Expecting it to exist is a valuable sanity check against + # autosplitting into some random directory by mistake. + print "Warning: AutoSplit had to create top-level " . + "$autodir unexpectedly.\n"; + } + + # allow just a package name to be used + $filename .= ".pm" unless ($filename =~ m/\.pm\z/); + + open(my $in, "<$filename") or die "AutoSplit: Can't open $filename: $!\n"; + my($pm_mod_time) = (stat($filename))[9]; + my($autoloader_seen) = 0; + my($in_pod) = 0; + my($def_package,$last_package,$this_package,$fnr); + while (<$in>) { + # Skip pod text. + $fnr++; + $in_pod = 1 if /^=\w/; + $in_pod = 0 if /^=cut/; + next if ($in_pod || /^=cut/); + next if /^\s*#/; + + # record last package name seen + $def_package = $1 if (m/^\s*package\s+([\w:]+)\s*;/); + ++$autoloader_seen if m/^\s*(use|require)\s+AutoLoader\b/; + ++$autoloader_seen if m/\bISA\s*=.*\bAutoLoader\b/; + last if /^__END__/; + } + if ($check_for_autoloader && !$autoloader_seen){ + print "AutoSplit skipped $filename: no AutoLoader used\n" + if ($Verbose>=2); + return 0; + } + $_ or die "Can't find __END__ in $filename\n"; + + $def_package or die "Can't find 'package Name;' in $filename\n"; + + my($modpname) = _modpname($def_package); + + # this _has_ to match so we have a reasonable timestamp file + die "Package $def_package ($modpname.pm) does not ". + "match filename $filename" + unless ($filename =~ m/\Q$modpname.pm\E$/ or + ($^O eq 'dos') or ($^O eq 'MSWin32') or ($^O eq 'NetWare') or + $Is_VMS && $filename =~ m/$modpname.pm/i); + + my($al_idx_file) = catfile($autodir, $modpname, $IndexFile); + + if ($check_mod_time){ + my($al_ts_time) = (stat("$al_idx_file"))[9] || 1; + if ($al_ts_time >= $pm_mod_time and + $al_ts_time >= $self_mod_time){ + print "AutoSplit skipped ($al_idx_file newer than $filename)\n" + if ($Verbose >= 2); + return undef; # one undef, not a list + } + } + + my($modnamedir) = catdir($autodir, $modpname); + print "AutoSplitting $filename ($modnamedir)\n" + if $Verbose; + + unless (-d $modnamedir){ + mkpath($modnamedir,0,0777); + } + + # We must try to deal with some SVR3 systems with a limit of 14 + # characters for file names. Sadly we *cannot* simply truncate all + # file names to 14 characters on these systems because we *must* + # create filenames which exactly match the names used by AutoLoader.pm. + # This is a problem because some systems silently truncate the file + # names while others treat long file names as an error. + + my $Is83 = $maxflen==11; # plain, case INSENSITIVE dos filenames + + my(@subnames, $subname, %proto, %package); + my @cache = (); + my $caching = 1; + $last_package = ''; + my $out; + while (<$in>) { + $fnr++; + $in_pod = 1 if /^=\w/; + $in_pod = 0 if /^=cut/; + next if ($in_pod || /^=cut/); + # the following (tempting) old coding gives big troubles if a + # cut is forgotten at EOF: + # next if /^=\w/ .. /^=cut/; + if (/^package\s+([\w:]+)\s*;/) { + $this_package = $def_package = $1; + } + + if (/^sub\s+([\w:]+)(\s*(?:\(.*?\))?(?:$attr_list)?)/) { + print $out "# end of $last_package\::$subname\n1;\n" + if $last_package; + $subname = $1; + my $proto = $2 || ''; + if ($subname =~ s/(.*):://){ + $this_package = $1; + } else { + $this_package = $def_package; + } + my $fq_subname = "$this_package\::$subname"; + $package{$fq_subname} = $this_package; + $proto{$fq_subname} = $proto; + push(@subnames, $fq_subname); + my($lname, $sname) = ($subname, substr($subname,0,$maxflen-3)); + $modpname = _modpname($this_package); + my($modnamedir) = catdir($autodir, $modpname); + mkpath($modnamedir,0,0777); + my($lpath) = catfile($modnamedir, "$lname.al"); + my($spath) = catfile($modnamedir, "$sname.al"); + my $path; + + if (!$Is83 and open($out, ">$lpath")){ + $path=$lpath; + print " writing $lpath\n" if ($Verbose>=2); + } else { + open($out, ">$spath") or die "Can't create $spath: $!\n"; + $path=$spath; + print " writing $spath (with truncated name)\n" + if ($Verbose>=1); + } + push(@outfiles, $path); + my $lineno = $fnr - @cache; + print $out < lc($_) } @outfiles; + } else { + @outfiles{@outfiles} = @outfiles; + } + my(%outdirs,@outdirs); + for (@outfiles) { + $outdirs{File::Basename::dirname($_)}||=1; + } + for my $dir (keys %outdirs) { + opendir(my $outdir,$dir); + foreach (sort readdir($outdir)){ + next unless /\.al\z/; + my($file) = catfile($dir, $_); + $file = lc $file if $Is83 or $Is_VMS; + next if $outfiles{$file}; + print " deleting $file\n" if ($Verbose>=2); + my($deleted,$thistime); # catch all versions on VMS + do { $deleted += ($thistime = unlink $file) } while ($thistime); + carp ("Unable to delete $file: $!") unless $deleted; + } + closedir($outdir); + } + } + + open(my $ts,">$al_idx_file") or + carp ("AutoSplit: unable to create timestamp file ($al_idx_file): $!"); + print $ts "# Index created by AutoSplit for $filename\n"; + print $ts "# (file acts as timestamp)\n"; + $last_package = ''; + for my $fqs (@subnames) { + my($subname) = $fqs; + $subname =~ s/.*:://; + print $ts "package $package{$fqs};\n" + unless $last_package eq $package{$fqs}; + print $ts "sub $subname $proto{$fqs};\n"; + $last_package = $package{$fqs}; + } + print $ts "1;\n"; + close($ts); + + _check_unique($filename, $Maxlen, 1, @outfiles); + + @outfiles; +} + +sub _modpname ($) { + my($package) = @_; + my $modpname = $package; + if ($^O eq 'MSWin32') { + $modpname =~ s#::#\\#g; + } else { + my @modpnames = (); + while ($modpname =~ m#(.*?[^:])::([^:].*)#) { + push @modpnames, $1; + $modpname = $2; + } + $modpname = catfile(@modpnames, $modpname); + } + if ($Is_VMS) { + $modpname = VMS::Filespec::unixify($modpname); # may have dirs + } + $modpname; +} + +sub _check_unique { + my($filename, $maxlen, $warn, @outfiles) = @_; + my(%notuniq) = (); + my(%shorts) = (); + my(@toolong) = grep( + length(File::Basename::basename($_)) + > $maxlen, + @outfiles + ); + + foreach (@toolong){ + my($dir) = File::Basename::dirname($_); + my($file) = File::Basename::basename($_); + my($trunc) = substr($file,0,$maxlen); + $notuniq{$dir}{$trunc} = 1 if $shorts{$dir}{$trunc}; + $shorts{$dir}{$trunc} = $shorts{$dir}{$trunc} ? + "$shorts{$dir}{$trunc}, $file" : $file; + } + if (%notuniq && $warn){ + print "$filename: some names are not unique when " . + "truncated to $maxlen characters:\n"; + foreach my $dir (sort keys %notuniq){ + print " directory $dir:\n"; + foreach my $trunc (sort keys %{$notuniq{$dir}}) { + print " $shorts{$dir}{$trunc} truncate to $trunc\n"; + } + } + } +} + +1; +__END__ + +# test functions so AutoSplit.pm can be applied to itself: +sub test1 ($) { "test 1\n"; } +sub test2 ($$) { "test 2\n"; } +sub test3 ($$$) { "test 3\n"; } +sub testtesttesttest4_1 { "test 4\n"; } +sub testtesttesttest4_2 { "duplicate test 4\n"; } +sub Just::Another::test5 { "another test 5\n"; } +sub test6 { return join ":", __FILE__,__LINE__; } +package Yet::Another::AutoSplit; +sub testtesttesttest4_1 ($) { "another test 4\n"; } +sub testtesttesttest4_2 ($$) { "another duplicate test 4\n"; } +package Yet::More::Attributes; +sub test_a1 ($) : locked :locked { 1; } +sub test_a2 : locked { 1; } diff --git a/git/usr/share/perl5/core_perl/Benchmark.pm b/git/usr/share/perl5/core_perl/Benchmark.pm new file mode 100644 index 0000000000000000000000000000000000000000..e63d3b88844e1ad6172eeae26ac26271dfcb84c4 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Benchmark.pm @@ -0,0 +1,1122 @@ +package Benchmark; + +use strict; + + +=head1 NAME + +Benchmark - Benchmark running times of Perl code + +=head1 SYNOPSIS + + use Benchmark qw(:all); + + timethis($count, "code"); + + # Use Perl code in strings... + timethese($count, { + 'Name1' => '...code1...', + 'Name2' => '...code2...', + }); + + # ... or use subroutine references. + timethese($count, { + 'Name1' => sub { ...code1... }, + 'Name2' => sub { ...code2... }, + }); + + # cmpthese can be used both ways as well + cmpthese($count, { + 'Name1' => '...code1...', + 'Name2' => '...code2...', + }); + + cmpthese($count, { + 'Name1' => sub { ...code1... }, + 'Name2' => sub { ...code2... }, + }); + + # ...or in two stages + $results = timethese($count, + { + 'Name1' => sub { ...code1... }, + 'Name2' => sub { ...code2... }, + }, + 'none' + ); + cmpthese( $results ); + + my $t1 = timeit($count, '...other code...'); + print "$count loops of other code took:", timestr($t1),"\n"; + + my $t2 = countit($time, '...other code...'); + $count = $t2->iters; + print "$count loops of other code took:", timestr($t2),"\n"; + + # Enable hires wallclock timing if possible + use Benchmark ':hireswallclock'; + +=head1 DESCRIPTION + +The C module encapsulates a number of routines to +help you figure out how long it takes to execute some code. + +C - Run a chunk of code several times + +C - Run several chunks of code several times + +C - Print results of C as a comparison chart + +C - Run a chunk of code and see how long it goes + +C - See how many times a chunk of code runs in a given time + + +=head2 Methods + +=over 10 + +=item new + +Returns the current time. Example: + + use Benchmark; + my $t0 = Benchmark->new; + # ... your code here ... + my $t1 = Benchmark->new; + my $td = timediff($t1, $t0); + print "the code took:",timestr($td),"\n"; + +=item debug + +Enables or disable debugging by setting the C<$Benchmark::Debug> flag: + + Benchmark->debug(1); + my $t = timeit(10, ' 5 ** $Global '); + Benchmark->debug(0); + +=item iters + +Returns the number of iterations. + +=back + +=head2 Standard Exports + +The following routines will be exported into your namespace +if you use the Benchmark module: + +=over 10 + +=item timeit(COUNT, CODE) + +Arguments: COUNT is the number of times to run the loop, and CODE is +the code to run. CODE may be either a code reference or a string to +be eval'd; either way it will be run in the caller's package. + +Returns: a Benchmark object. + +=item timethis ( COUNT, CODE, [ TITLE, [ STYLE ]] ) + +Time COUNT iterations of CODE. CODE may be a string to eval or a +code reference; either way the CODE will run in the caller's package. +Results will be printed to STDOUT as TITLE followed by the times. +TITLE defaults to "timethis COUNT" if none is provided. STYLE +determines the format of the output, as described for timestr() below. + +The COUNT can be zero or negative: this means the I to run. A zero signifies the default of 3 seconds. For +example to run at least for 10 seconds: + + timethis(-10, $code); + +or to run two pieces of code tests for at least 3 seconds: + + timethese(0, { test1 => '...', test2 => '...'}); + +CPU seconds is, in UNIX terms, the user time plus the system time of +the process itself, as opposed to the real (wallclock) time and the +time spent by the child processes. Less than 0.1 seconds is not +accepted (-0.01 as the count, for example, will cause a fatal runtime +exception). + +Note that the CPU seconds is the B time: CPU scheduling and +other operating system factors may complicate the attempt so that a +little bit more time is spent. The benchmark output will, however, +also tell the number of C<$code> runs/second, which should be a more +interesting number than the actually spent seconds. + +Returns a Benchmark object. + +=item timethese ( COUNT, CODEHASHREF, [ STYLE ] ) + +The CODEHASHREF is a reference to a hash containing names as keys +and either a string to eval or a code reference for each value. +For each (KEY, VALUE) pair in the CODEHASHREF, this routine will +call + + timethis(COUNT, VALUE, KEY, STYLE); + +The routines are called in string comparison order of KEY. + +The COUNT can be zero or negative, see timethis(). + +Returns a hash reference of Benchmark objects, keyed by name. + +=item timediff ( T1, T2 ) + +Returns the difference between two Benchmark times as a Benchmark +object suitable for passing to timestr(). + +=item timestr ( TIMEDIFF, [ STYLE, [ FORMAT ] ] ) + +Returns a string that formats the times in the TIMEDIFF object in +the requested STYLE. TIMEDIFF is expected to be a Benchmark object +similar to that returned by timediff(). + +STYLE can be any of 'all', 'none', 'noc', 'nop' or 'auto'. 'all' shows +each of the 5 times available ('wallclock' time, user time, system time, +user time of children, and system time of children). 'noc' shows all +except the two children times. 'nop' shows only wallclock and the +two children times. 'auto' (the default) will act as 'all' unless +the children times are both zero, in which case it acts as 'noc'. +'none' prevents output. + +FORMAT is the L-style format specifier (without the +leading '%') to use to print the times. It defaults to '5.2f'. + +=back + +=head2 Optional Exports + +The following routines will be exported into your namespace +if you specifically ask that they be imported: + +=over 10 + +=item clearcache ( COUNT ) + +Clear the cached time for COUNT rounds of the null loop. + +=item clearallcache ( ) + +Clear all cached times. + +=item cmpthese ( COUNT, CODEHASHREF, [ STYLE ] ) + +=item cmpthese ( RESULTSHASHREF, [ STYLE ] ) + +Optionally calls timethese(), then outputs comparison chart. This: + + cmpthese( -1, { a => "++\$i", b => "\$i *= 2" } ); + +outputs a chart like: + + Rate b a + b 2831802/s -- -61% + a 7208959/s 155% -- + +This chart is sorted from slowest to fastest, and shows the percent speed +difference between each pair of tests. + +C can also be passed the data structure that timethese() returns: + + my $results = timethese( -1, + { a => "++\$i", b => "\$i *= 2" } ); + cmpthese( $results ); + +in case you want to see both sets of results. +If the first argument is an unblessed hash reference, +that is RESULTSHASHREF; otherwise that is COUNT. + +Returns a reference to an ARRAY of rows, each row is an ARRAY of cells from the +above chart, including labels. This: + + my $rows = cmpthese( -1, + { a => '++$i', b => '$i *= 2' }, "none" ); + +returns a data structure like: + + [ + [ '', 'Rate', 'b', 'a' ], + [ 'b', '2885232/s', '--', '-59%' ], + [ 'a', '7099126/s', '146%', '--' ], + ] + +B: This result value differs from previous versions, which returned +the C result structure. If you want that, just use the two +statement C...C idiom shown above. + +Incidentally, note the variance in the result values between the two examples; +this is typical of benchmarking. If this were a real benchmark, you would +probably want to run a lot more iterations. + +=item countit(TIME, CODE) + +Arguments: TIME is the minimum length of time to run CODE for, and CODE is +the code to run. CODE may be either a code reference or a string to +be eval'd; either way it will be run in the caller's package. + +TIME is I negative. countit() will run the loop many times to +calculate the speed of CODE before running it for TIME. The actual +time run for will usually be greater than TIME due to system clock +resolution, so it's best to look at the number of iterations divided +by the times that you are concerned with, not just the iterations. + +Returns: a Benchmark object. + +=item disablecache ( ) + +Disable caching of timings for the null loop. This will force Benchmark +to recalculate these timings for each new piece of code timed. + +=item enablecache ( ) + +Enable caching of timings for the null loop. The time taken for COUNT +rounds of the null loop will be calculated only once for each +different COUNT used. + +=item timesum ( T1, T2 ) + +Returns the sum of two Benchmark times as a Benchmark object suitable +for passing to timestr(). + +=back + +=head2 :hireswallclock + +If the Time::HiRes module has been installed, you can specify the +special tag C<:hireswallclock> for Benchmark (if Time::HiRes is not +available, the tag will be silently ignored). This tag will cause the +wallclock time to be measured in microseconds, instead of integer +seconds. Note though that the speed computations are still conducted +in CPU time, not wallclock time. + +=head1 Benchmark Object + +Many of the functions in this module return a Benchmark object, +or in the case of C, a reference to a hash, the values of +which are Benchmark objects. This is useful if you want to store or +further process results from Benchmark functions. + +Internally the Benchmark object holds timing values, +described in L below. +The following methods can be used to access them: + +=over 4 + +=item cpu_p + +Total CPU (User + System) of the main (parent) process. + +=item cpu_c + +Total CPU (User + System) of any children processes. + +=item cpu_a + +Total CPU of parent and any children processes. + +=item real + +Real elapsed time "wallclock seconds". + +=item iters + +Number of iterations run. + +=back + +The following illustrates use of the Benchmark object: + + my $result = timethis(100000, sub { ... }); + print "total CPU = ", $result->cpu_a, "\n"; + +=head1 NOTES + +The data is stored as a list of values from the time and times +functions: + + ($real, $user, $system, $children_user, $children_system, $iters) + +in seconds for the whole loop (not divided by the number of rounds). + +The timing is done using time(3) and times(3). + +Code is executed in the caller's package. + +The time of the null loop (a loop with the same +number of rounds but empty loop body) is subtracted +from the time of the real loop. + +The null loop times can be cached, the key being the +number of rounds. The caching can be controlled using +calls like these: + + clearcache($key); + clearallcache(); + + disablecache(); + enablecache(); + +Caching is off by default, as it can (usually slightly) decrease +accuracy and does not usually noticeably affect runtimes. + +=head1 EXAMPLES + +For example, + + use Benchmark qw( cmpthese ) ; + my $x = 3; + cmpthese( -5, { + a => sub{$x*$x}, + b => sub{$x**2}, + } ); + +outputs something like this: + + Benchmark: running a, b, each for at least 5 CPU seconds... + Rate b a + b 1559428/s -- -62% + a 4152037/s 166% -- + + +while + + use Benchmark qw( timethese cmpthese ) ; + my $x = 3; + my $r = timethese( -5, { + a => sub{$x*$x}, + b => sub{$x**2}, + } ); + cmpthese $r; + +outputs something like this: + + Benchmark: running a, b, each for at least 5 CPU seconds... + a: 10 wallclock secs ( 5.14 usr + 0.13 sys = 5.27 CPU) @ 3835055.60/s (n=20210743) + b: 5 wallclock secs ( 5.41 usr + 0.00 sys = 5.41 CPU) @ 1574944.92/s (n=8520452) + Rate b a + b 1574945/s -- -59% + a 3835056/s 144% -- + + +=head1 INHERITANCE + +Benchmark inherits from no other class, except of course +from Exporter. + +=head1 CAVEATS + +Comparing eval'd strings with code references will give you +inaccurate results: a code reference will show a slightly slower +execution time than the equivalent eval'd string. + +The real time timing is done using time(2) and +the granularity is therefore only one second. + +Short tests may produce negative figures because perl +can appear to take longer to execute the empty loop +than a short test; try: + + timethis(100,'1'); + +The system time of the null loop might be slightly +more than the system time of the loop with the actual +code and therefore the difference might end up being E 0. + +=head1 SEE ALSO + +L - a Perl code profiler + +=head1 AUTHORS + +Jarkko Hietaniemi >, Tim Bunce > + +=head1 MODIFICATION HISTORY + +September 8th, 1994; by Tim Bunce. + +March 28th, 1997; by Hugo van der Sanden: added support for code +references and the already documented 'debug' method; revamped +documentation. + +April 04-07th, 1997: by Jarkko Hietaniemi, added the run-for-some-time +functionality. + +September, 1999; by Barrie Slaymaker: math fixes and accuracy and +efficiency tweaks. Added cmpthese(). A result is now returned from +timethese(). Exposed countit() (was runfor()). + +December, 2001; by Nicholas Clark: make timestr() recognise the style 'none' +and return an empty string. If cmpthese is calling timethese, make it pass the +style in. (so that 'none' will suppress output). Make sub new dump its +debugging output to STDERR, to be consistent with everything else. +All bugs found while writing a regression test. + +September, 2002; by Jarkko Hietaniemi: add ':hireswallclock' special tag. + +February, 2004; by Chia-liang Kao: make cmpthese and timestr use time +statistics for children instead of parent when the style is 'nop'. + +November, 2007; by Christophe Grosjean: make cmpthese and timestr compute +time consistently with style argument, default is 'all' not 'noc' any more. + +=cut + +# evaluate something in a clean lexical environment +sub _doeval { no strict; eval shift } + +# +# put any lexicals at file scope AFTER here +# + +use Carp; +use Exporter; + +our(@ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $VERSION); + +@ISA=qw(Exporter); +@EXPORT=qw(timeit timethis timethese timediff timestr); +@EXPORT_OK=qw(timesum cmpthese countit + clearcache clearallcache disablecache enablecache); +%EXPORT_TAGS=( all => [ @EXPORT, @EXPORT_OK ] ) ; + +$VERSION = 1.27; + +# --- ':hireswallclock' special handling + +my $hirestime; + +sub mytime () { time } + +init(); + +BEGIN { + if (eval { require Time::HiRes }) { + $hirestime = \&Time::HiRes::time; + } +} + +sub import { + my $class = shift; + if (grep { $_ eq ":hireswallclock" } @_) { + @_ = grep { $_ ne ":hireswallclock" } @_; + local $^W=0; + *mytime = $hirestime if defined $hirestime; + } + Benchmark->export_to_level(1, $class, @_); +} + +our($Debug, $Min_Count, $Min_CPU, $Default_Format, $Default_Style, + %_Usage, %Cache, $Do_Cache); + +sub init { + $Debug = 0; + $Min_Count = 4; + $Min_CPU = 0.4; + $Default_Format = '5.2f'; + $Default_Style = 'auto'; + # The cache can cause a slight loss of sys time accuracy. If a + # user does many tests (>10) with *very* large counts (>10000) + # or works on a very slow machine the cache may be useful. + disablecache(); + clearallcache(); +} + +sub debug { $Debug = ($_[1] != 0); } + +sub usage { + my $calling_sub = (caller(1))[3]; + $calling_sub =~ s/^Benchmark:://; + return $_Usage{$calling_sub} || ''; +} + +# The cache needs two branches: 's' for strings and 'c' for code. The +# empty loop is different in these two cases. + +$_Usage{clearcache} = <<'USAGE'; +usage: clearcache($count); +USAGE + +sub clearcache { + die usage unless @_ == 1; + delete $Cache{"$_[0]c"}; delete $Cache{"$_[0]s"}; +} + +$_Usage{clearallcache} = <<'USAGE'; +usage: clearallcache(); +USAGE + +sub clearallcache { + die usage if @_; + %Cache = (); +} + +$_Usage{enablecache} = <<'USAGE'; +usage: enablecache(); +USAGE + +sub enablecache { + die usage if @_; + $Do_Cache = 1; +} + +$_Usage{disablecache} = <<'USAGE'; +usage: disablecache(); +USAGE + +sub disablecache { + die usage if @_; + $Do_Cache = 0; +} + + +# --- Functions to process the 'time' data type + +sub new { my @t = (mytime, times, @_ == 2 ? $_[1] : 0); + print STDERR "new=@t\n" if $Debug; + bless \@t; } + +sub cpu_p { my($r,$pu,$ps,$cu,$cs) = @{$_[0]}; $pu+$ps ; } +sub cpu_c { my($r,$pu,$ps,$cu,$cs) = @{$_[0]}; $cu+$cs ; } +sub cpu_a { my($r,$pu,$ps,$cu,$cs) = @{$_[0]}; $pu+$ps+$cu+$cs ; } +sub real { my($r,$pu,$ps,$cu,$cs) = @{$_[0]}; $r ; } +sub iters { $_[0]->[5] ; } + +# return the sum of various times: which ones depending on $style + +sub elapsed { + my ($self, $style) = @_; + $style = "" unless defined $style; + + return $self->cpu_c if $style eq 'nop'; + return $self->cpu_p if $style eq 'noc'; + return $self->cpu_a; +} + + +$_Usage{timediff} = <<'USAGE'; +usage: $result_diff = timediff($result1, $result2); +USAGE + +sub timediff { + my($a, $b) = @_; + + die usage unless ref $a and ref $b; + + my @r; + for (my $i=0; $i < @$a; ++$i) { + push(@r, $a->[$i] - $b->[$i]); + } + #die "Bad timediff(): ($r[1] + $r[2]) <= 0 (@$a[1,2]|@$b[1,2])\n" + # if ($r[1] + $r[2]) < 0; + bless \@r; +} + +$_Usage{timesum} = <<'USAGE'; +usage: $sum = timesum($result1, $result2); +USAGE + +sub timesum { + my($a, $b) = @_; + + die usage unless ref $a and ref $b; + + my @r; + for (my $i=0; $i < @$a; ++$i) { + push(@r, $a->[$i] + $b->[$i]); + } + bless \@r; +} + + +$_Usage{timestr} = <<'USAGE'; +usage: $formatted_result = timestr($result1); +USAGE + +sub timestr { + my($tr, $style, $f) = @_; + + die usage unless ref $tr; + + my @t = @$tr; + warn "bad time value (@t)" unless @t==6; + my($r, $pu, $ps, $cu, $cs, $n) = @t; + my($pt, $ct, $tt) = ($tr->cpu_p, $tr->cpu_c, $tr->cpu_a); + $f = $Default_Format unless defined $f; + # format a time in the required style, other formats may be added here + $style ||= $Default_Style; + return '' if $style eq 'none'; + $style = ($ct>0) ? 'all' : 'noc' if $style eq 'auto'; + my $s = "@t $style"; # default for unknown style + my $w = $hirestime ? "%2g" : "%2d"; + $s = sprintf("$w wallclock secs (%$f usr %$f sys + %$f cusr %$f csys = %$f CPU)", + $r,$pu,$ps,$cu,$cs,$tt) if $style eq 'all'; + $s = sprintf("$w wallclock secs (%$f usr + %$f sys = %$f CPU)", + $r,$pu,$ps,$pt) if $style eq 'noc'; + $s = sprintf("$w wallclock secs (%$f cusr + %$f csys = %$f CPU)", + $r,$cu,$cs,$ct) if $style eq 'nop'; + my $elapsed = $tr->elapsed($style); + $s .= sprintf(" @ %$f/s (n=$n)",$n/($elapsed)) if $n && $elapsed; + $s; +} + +sub timedebug { + my($msg, $t) = @_; + print STDERR "$msg",timestr($t),"\n" if $Debug; +} + +# --- Functions implementing low-level support for timing loops + +$_Usage{runloop} = <<'USAGE'; +usage: runloop($number, [$string | $coderef]) +USAGE + +sub runloop { + my($n, $c) = @_; + + $n+=0; # force numeric now, so garbage won't creep into the eval + croak "negative loopcount $n" if $n<0; + confess usage unless defined $c; + my($t0, $t1, $td); # before, after, difference + + # find package of caller so we can execute code there + my $curpack = caller(0); + my($i, $pack)= 0; + while ($pack = caller(++$i)) { + last if $pack ne $curpack; + } + + my ($subcode, $subref); + if (ref $c eq 'CODE') { + $subcode = "sub { for (1 .. $n) { local \$_; package $pack; &\$c; } }"; + $subref = eval $subcode; + } + else { + $subcode = "sub { for (1 .. $n) { local \$_; package $pack; $c;} }"; + $subref = _doeval($subcode); + } + croak "runloop unable to compile '$c': $@\ncode: $subcode\n" if $@; + print STDERR "runloop $n '$subcode'\n" if $Debug; + + # Wait for the user timer to tick. This makes the error range more like + # -0.01, +0. If we don't wait, then it's more like -0.01, +0.01. This + # may not seem important, but it significantly reduces the chances of + # getting a too low initial $n in the initial, 'find the minimum' loop + # in &countit. This, in turn, can reduce the number of calls to + # &runloop a lot, and thus reduce additive errors. + # + # Note that its possible for the act of reading the system clock to + # burn lots of system CPU while we burn very little user clock in the + # busy loop, which can cause the loop to run for a very long wall time. + # So gradually ramp up the duration of the loop. See RT #122003 + # + my $tbase = Benchmark->new(0)->[1]; + my $limit = 1; + while ( ( $t0 = Benchmark->new(0) )->[1] == $tbase ) { + for (my $i=0; $i < $limit; $i++) { my $x = $i / 1.5 } # burn user CPU + $limit *= 1.1; + } + $subref->(); + $t1 = Benchmark->new($n); + $td = &timediff($t1, $t0); + timedebug("runloop:",$td); + $td; +} + +$_Usage{timeit} = <<'USAGE'; +usage: $result = timeit($count, 'code' ); or + $result = timeit($count, sub { code } ); +USAGE + +sub timeit { + my($n, $code) = @_; + my($wn, $wc, $wd); + + die usage unless defined $code and + (!ref $code or ref $code eq 'CODE'); + + printf STDERR "timeit $n $code\n" if $Debug; + my $cache_key = $n . ( ref( $code ) ? 'c' : 's' ); + if ($Do_Cache && exists $Cache{$cache_key} ) { + $wn = $Cache{$cache_key}; + } else { + $wn = &runloop($n, ref( $code ) ? sub { } : '' ); + # Can't let our baseline have any iterations, or they get subtracted + # out of the result. + $wn->[5] = 0; + $Cache{$cache_key} = $wn; + } + + $wc = &runloop($n, $code); + + $wd = timediff($wc, $wn); + timedebug("timeit: ",$wc); + timedebug(" - ",$wn); + timedebug(" = ",$wd); + + $wd; +} + + +my $default_for = 3; +my $min_for = 0.1; + + +$_Usage{countit} = <<'USAGE'; +usage: $result = countit($time, 'code' ); or + $result = countit($time, sub { code } ); +USAGE + +sub countit { + my ( $tmax, $code ) = @_; + + die usage unless @_; + + if ( not defined $tmax or $tmax == 0 ) { + $tmax = $default_for; + } elsif ( $tmax < 0 ) { + $tmax = -$tmax; + } + + die "countit($tmax, ...): timelimit cannot be less than $min_for.\n" + if $tmax < $min_for; + + my ($n, $tc); + + # First find the minimum $n that gives a significant timing. + my $zeros=0; + for ($n = 1; ; $n *= 2 ) { + my $t0 = Benchmark->new(0); + my $td = timeit($n, $code); + my $t1 = Benchmark->new(0); + $tc = $td->[1] + $td->[2]; + if ( $tc <= 0 and $n > 1024 ) { + my $d = timediff($t1, $t0); + # note that $d is the total CPU time taken to call timeit(), + # while $tc is the difference in CPU secs between the empty run + # and the code run. If the code is trivial, its possible + # for $d to get large while $tc is still zero (or slightly + # negative). Bail out once timeit() starts taking more than a + # few seconds without noticeable difference. + if ($d->[1] + $d->[2] > 8 + || ++$zeros > 16) + { + die "Timing is consistently zero in estimation loop, cannot benchmark. N=$n\n"; + } + } else { + $zeros = 0; + } + last if $tc > 0.1; + } + + my $nmin = $n; + + # Get $n high enough that we can guess the final $n with some accuracy. + my $tpra = 0.1 * $tmax; # Target/time practice. + while ( $tc < $tpra ) { + # The 5% fudge is to keep us from iterating again all + # that often (this speeds overall responsiveness when $tmax is big + # and we guess a little low). This does not noticeably affect + # accuracy since we're not counting these times. + $n = int( $tpra * 1.05 * $n / $tc ); # Linear approximation. + my $td = timeit($n, $code); + my $new_tc = $td->[1] + $td->[2]; + # Make sure we are making progress. + $tc = $new_tc > 1.2 * $tc ? $new_tc : 1.2 * $tc; + } + + # Now, do the 'for real' timing(s), repeating until we exceed + # the max. + my $ntot = 0; + my $rtot = 0; + my $utot = 0.0; + my $stot = 0.0; + my $cutot = 0.0; + my $cstot = 0.0; + my $ttot = 0.0; + + # The 5% fudge is because $n is often a few % low even for routines + # with stable times and avoiding extra timeit()s is nice for + # accuracy's sake. + $n = int( $n * ( 1.05 * $tmax / $tc ) ); + $zeros=0; + while () { + my $td = timeit($n, $code); + $ntot += $n; + $rtot += $td->[0]; + $utot += $td->[1]; + $stot += $td->[2]; + $cutot += $td->[3]; + $cstot += $td->[4]; + $ttot = $utot + $stot; + last if $ttot >= $tmax; + if ( $ttot <= 0 ) { + ++$zeros > 16 + and die "Timing is consistently zero, cannot benchmark. N=$n\n"; + } else { + $zeros = 0; + } + $ttot = 0.01 if $ttot < 0.01; + my $r = $tmax / $ttot - 1; # Linear approximation. + $n = int( $r * $ntot ); + $n = $nmin if $n < $nmin; + } + + return bless [ $rtot, $utot, $stot, $cutot, $cstot, $ntot ]; +} + +# --- Functions implementing high-level time-then-print utilities + +sub n_to_for { + my $n = shift; + return $n == 0 ? $default_for : $n < 0 ? -$n : undef; +} + +$_Usage{timethis} = <<'USAGE'; +usage: $result = timethis($time, 'code' ); or + $result = timethis($time, sub { code } ); +USAGE + +sub timethis{ + my($n, $code, $title, $style) = @_; + my($t, $forn); + + die usage unless defined $code and + (!ref $code or ref $code eq 'CODE'); + + if ( $n > 0 ) { + croak "non-integer loopcount $n, stopped" if int($n)<$n; + $t = timeit($n, $code); + $title = "timethis $n" unless defined $title; + } else { + my $fort = n_to_for( $n ); + $t = countit( $fort, $code ); + $title = "timethis for $fort" unless defined $title; + $forn = $t->[-1]; + } + local $| = 1; + $style = "" unless defined $style; + printf("%10s: ", $title) unless $style eq 'none'; + print timestr($t, $style, $Default_Format),"\n" unless $style eq 'none'; + + $n = $forn if defined $forn; + + if ($t->elapsed($style) < 0) { + # due to clock granularity and variable CPU speed and load, + # on quick code with a small number of loops, it's possible for + # the empty loop to appear to take longer than the real loop + # (e.g. 1 tick versus 0 ticks). This leads to a negative elapsed + # time. In this case, floor it at zero, to stop bizarre results. + print " (warning: too few iterations for a reliable count)\n"; + $t->[$_] = 0 for 1..4; + } + + # A conservative warning to spot very silly tests. + # Don't assume that your benchmark is ok simply because + # you don't get this warning! + print " (warning: too few iterations for a reliable count)\n" + if $n < $Min_Count + || ($t->real < 1 && $n < 1000) + || $t->cpu_a < $Min_CPU; + $t; +} + + +$_Usage{timethese} = <<'USAGE'; +usage: timethese($count, { Name1 => 'code1', ... }); or + timethese($count, { Name1 => sub { code1 }, ... }); +USAGE + +sub timethese{ + my($n, $alt, $style) = @_; + die usage unless ref $alt eq 'HASH'; + + my @names = sort keys %$alt; + $style = "" unless defined $style; + print "Benchmark: " unless $style eq 'none'; + if ( $n > 0 ) { + croak "non-integer loopcount $n, stopped" if int($n)<$n; + print "timing $n iterations of" unless $style eq 'none'; + } else { + print "running" unless $style eq 'none'; + } + print " ", join(', ',@names) unless $style eq 'none'; + unless ( $n > 0 ) { + my $for = n_to_for( $n ); + print ", each" if $n > 1 && $style ne 'none'; + print " for at least $for CPU seconds" unless $style eq 'none'; + } + print "...\n" unless $style eq 'none'; + + # we could save the results in an array and produce a summary here + # sum, min, max, avg etc etc + my %results; + foreach my $name (@names) { + $results{$name} = timethis ($n, $alt -> {$name}, $name, $style); + } + + return \%results; +} + + +$_Usage{cmpthese} = <<'USAGE'; +usage: cmpthese($count, { Name1 => 'code1', ... }); or + cmpthese($count, { Name1 => sub { code1 }, ... }); or + cmpthese($result, $style); +USAGE + +sub cmpthese{ + my ($results, $style); + + # $count can be a blessed object. + if ( ref $_[0] eq 'HASH' ) { + ($results, $style) = @_; + } + else { + my($count, $code) = @_[0,1]; + $style = $_[2] if defined $_[2]; + + die usage unless ref $code eq 'HASH'; + + $results = timethese($count, $code, ($style || "none")); + } + + $style = "" unless defined $style; + + # Flatten in to an array of arrays with the name as the first field + my @vals = map{ [ $_, @{$results->{$_}} ] } keys %$results; + + for (@vals) { + # recreate the pre-flattened Benchmark object + my $tmp_bm = bless [ @{$_}[1..$#$_] ]; + my $elapsed = $tmp_bm->elapsed($style); + # The epsilon fudge here is to prevent div by 0. Since clock + # resolutions are much larger, it's below the noise floor. + my $rate = $_->[6]/(($elapsed)+0.000000000000001); + $_->[7] = $rate; + } + + # Sort by rate + @vals = sort { $a->[7] <=> $b->[7] } @vals; + + # If more than half of the rates are greater than one... + my $display_as_rate = @vals ? ($vals[$#vals>>1]->[7] > 1) : 0; + + my @rows; + my @col_widths; + + my @top_row = ( + '', + $display_as_rate ? 'Rate' : 's/iter', + map { $_->[0] } @vals + ); + + push @rows, \@top_row; + @col_widths = map { length( $_ ) } @top_row; + + # Build the data rows + # We leave the last column in even though it never has any data. Perhaps + # it should go away. Also, perhaps a style for a single column of + # percentages might be nice. + for my $row_val ( @vals ) { + my @row; + + # Column 0 = test name + push @row, $row_val->[0]; + $col_widths[0] = length( $row_val->[0] ) + if length( $row_val->[0] ) > $col_widths[0]; + + # Column 1 = performance + my $row_rate = $row_val->[7]; + + # We assume that we'll never get a 0 rate. + my $rate = $display_as_rate ? $row_rate : 1 / $row_rate; + + # Only give a few decimal places before switching to sci. notation, + # since the results aren't usually that accurate anyway. + my $format = + $rate >= 100 ? + "%0.0f" : + $rate >= 10 ? + "%0.1f" : + $rate >= 1 ? + "%0.2f" : + $rate >= 0.1 ? + "%0.3f" : + "%0.2e"; + + $format .= "/s" + if $display_as_rate; + + my $formatted_rate = sprintf( $format, $rate ); + push @row, $formatted_rate; + $col_widths[1] = length( $formatted_rate ) + if length( $formatted_rate ) > $col_widths[1]; + + # Columns 2..N = performance ratios + my $skip_rest = 0; + for ( my $col_num = 0 ; $col_num < @vals ; ++$col_num ) { + my $col_val = $vals[$col_num]; + my $out; + if ( $skip_rest ) { + $out = ''; + } + elsif ( $col_val->[0] eq $row_val->[0] ) { + $out = "--"; + # $skip_rest = 1; + } + else { + my $col_rate = $col_val->[7]; + $out = sprintf( "%.0f%%", 100*$row_rate/$col_rate - 100 ); + } + push @row, $out; + $col_widths[$col_num+2] = length( $out ) + if length( $out ) > $col_widths[$col_num+2]; + + # A little weirdness to set the first column width properly + $col_widths[$col_num+2] = length( $col_val->[0] ) + if length( $col_val->[0] ) > $col_widths[$col_num+2]; + } + push @rows, \@row; + } + + return \@rows if $style eq "none"; + + # Equalize column widths in the chart as much as possible without + # exceeding 80 characters. This does not use or affect cols 0 or 1. + my @sorted_width_refs = + sort { $$a <=> $$b } map { \$_ } @col_widths[2..$#col_widths]; + my $max_width = ${$sorted_width_refs[-1]}; + + my $total = @col_widths - 1 ; + for ( @col_widths ) { $total += $_ } + + STRETCHER: + while ( $total < 80 ) { + my $min_width = ${$sorted_width_refs[0]}; + last + if $min_width == $max_width; + for ( @sorted_width_refs ) { + last + if $$_ > $min_width; + ++$$_; + ++$total; + last STRETCHER + if $total >= 80; + } + } + + # Dump the output + my $format = join( ' ', map { "%${_}s" } @col_widths ) . "\n"; + substr( $format, 1, 0 ) = '-'; + for ( @rows ) { + printf $format, @$_; + } + + return \@rows ; +} + + +1; diff --git a/git/usr/share/perl5/core_perl/CPAN.pm b/git/usr/share/perl5/core_perl/CPAN.pm new file mode 100644 index 0000000000000000000000000000000000000000..93f1208841f4ead7ef09f44a2bd544c9359bc05b --- /dev/null +++ b/git/usr/share/perl5/core_perl/CPAN.pm @@ -0,0 +1,4163 @@ +# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*- +# vim: ts=4 sts=4 sw=4: +use strict; +package CPAN; +$CPAN::VERSION = '2.38'; +$CPAN::VERSION =~ s/_//; + +# we need to run chdir all over and we would get at wrong libraries +# there +use File::Spec (); +BEGIN { + if (File::Spec->can("rel2abs")) { + for my $inc (@INC) { + $inc = File::Spec->rel2abs($inc) unless ref $inc; + } + } + $SIG{WINCH} = 'IGNORE' if exists $SIG{WINCH}; +} +use CPAN::Author; +use CPAN::HandleConfig; +use CPAN::Version; +use CPAN::Bundle; +use CPAN::CacheMgr; +use CPAN::Complete; +use CPAN::Debug; +use CPAN::Distribution; +use CPAN::Distrostatus; +use CPAN::FTP; +use CPAN::Index 1.93; # https://rt.cpan.org/Ticket/Display.html?id=43349 +use CPAN::InfoObj; +use CPAN::Module; +use CPAN::Prompt; +use CPAN::URL; +use CPAN::Queue; +use CPAN::Tarzip; +use CPAN::DeferredCode; +use CPAN::Shell; +use CPAN::LWP::UserAgent; +use CPAN::Exception::RecursiveDependency; +use CPAN::Exception::yaml_not_installed; +use CPAN::Exception::yaml_process_error; + +use Carp (); +use Config (); +use Cwd qw(chdir); +use DirHandle (); +use Exporter (); +use ExtUtils::MakeMaker qw(prompt); # for some unknown reason, + # 5.005_04 does not work without + # this +use File::Basename (); +use File::Copy (); +use File::Find; +use File::Path (); +use FileHandle (); +use Fcntl qw(:flock); +use Safe (); +use Sys::Hostname qw(hostname); +use Text::ParseWords (); +use Text::Wrap (); + +# protect against "called too early" +sub find_perl (); +sub anycwd (); +sub _uniq; + +no lib "."; + +require Mac::BuildTools if $^O eq 'MacOS'; +if ($ENV{PERL5_CPAN_IS_RUNNING} && $$ != $ENV{PERL5_CPAN_IS_RUNNING}) { + $ENV{PERL5_CPAN_IS_RUNNING_IN_RECURSION} ||= $ENV{PERL5_CPAN_IS_RUNNING}; + my @rec = _uniq split(/,/, $ENV{PERL5_CPAN_IS_RUNNING_IN_RECURSION}), $$; + $ENV{PERL5_CPAN_IS_RUNNING_IN_RECURSION} = join ",", @rec; + # warn "# Note: Recursive call of CPAN.pm detected\n"; + my $w = sprintf "# Note: CPAN.pm is running in process %d now", pop @rec; + my %sleep = ( + 5 => 30, + 6 => 60, + 7 => 120, + ); + my $sleep = @rec > 7 ? 300 : ($sleep{scalar @rec}||0); + my $verbose = @rec >= 4; + while (@rec) { + $w .= sprintf " which has been called by process %d", pop @rec; + } + if ($sleep) { + $w .= ".\n\n# Sleeping $sleep seconds to protect other processes\n"; + } + if ($verbose) { + warn $w; + } + local $| = 1; + my $have_been_sleeping = 0; + while ($sleep > 0) { + printf "\r#%5d", --$sleep; + sleep 1; + ++$have_been_sleeping; + } + print "\n" if $have_been_sleeping; +} +$ENV{PERL5_CPAN_IS_RUNNING}=$$; +$ENV{PERL5_CPANPLUS_IS_RUNNING}=$$; # https://rt.cpan.org/Ticket/Display.html?id=23735 + +END { $CPAN::End++; &cleanup; } + +$CPAN::Signal ||= 0; +$CPAN::Frontend ||= "CPAN::Shell"; +unless (@CPAN::Defaultsites) { + @CPAN::Defaultsites = map { + CPAN::URL->new(TEXT => $_, FROM => "DEF") + } + "http://www.perl.org/CPAN/", + "ftp://ftp.perl.org/pub/CPAN/"; +} +# $CPAN::iCwd (i for initial) +$CPAN::iCwd ||= CPAN::anycwd(); +$CPAN::Perl ||= CPAN::find_perl(); +$CPAN::Defaultdocs ||= "http://search.cpan.org/perldoc?"; +$CPAN::Defaultrecent ||= "http://search.cpan.org/uploads.rdf"; +$CPAN::Defaultrecent ||= "http://cpan.uwinnipeg.ca/htdocs/cpan.xml"; + +# our globals are getting a mess +use vars qw( + $AUTOLOAD + $Be_Silent + $CONFIG_DIRTY + $Defaultdocs + $Echo_readline + $Frontend + $GOTOSHELL + $HAS_USABLE + $Have_warned + $MAX_RECURSION + $META + $RUN_DEGRADED + $Signal + $SQLite + $Suppress_readline + $VERSION + $autoload_recursion + $term + @Defaultsites + @EXPORT + ); + +$MAX_RECURSION = 32; + +@CPAN::ISA = qw(CPAN::Debug Exporter); + +# note that these functions live in CPAN::Shell and get executed via +# AUTOLOAD when called directly +@EXPORT = qw( + autobundle + bundle + clean + cvs_import + expand + force + fforce + get + install + install_tested + is_tested + make + mkmyconfig + notest + perldoc + readme + recent + recompile + report + shell + smoke + test + upgrade + ); + +sub soft_chdir_with_alternatives ($); + +{ + $autoload_recursion ||= 0; + + #-> sub CPAN::AUTOLOAD ; + sub AUTOLOAD { ## no critic + $autoload_recursion++; + my($l) = $AUTOLOAD; + $l =~ s/.*:://; + if ($CPAN::Signal) { + warn "Refusing to autoload '$l' while signal pending"; + $autoload_recursion--; + return; + } + if ($autoload_recursion > 1) { + my $fullcommand = join " ", map { "'$_'" } $l, @_; + warn "Refusing to autoload $fullcommand in recursion\n"; + $autoload_recursion--; + return; + } + my(%export); + @export{@EXPORT} = ''; + CPAN::HandleConfig->load unless $CPAN::Config_loaded++; + if (exists $export{$l}) { + CPAN::Shell->$l(@_); + } else { + die(qq{Unknown CPAN command "$AUTOLOAD". }. + qq{Type ? for help.\n}); + } + $autoload_recursion--; + } +} + +{ + my $x = *SAVEOUT; # avoid warning + open($x,">&STDOUT") or die "dup failed"; + my $redir = 0; + sub _redirect(@) { + #die if $redir; + local $_; + push(@_,undef); + while(defined($_=shift)) { + if (s/^\s*>//){ + my ($m) = s/^>// ? ">" : ""; + s/\s+//; + $_=shift unless length; + die "no dest" unless defined; + open(STDOUT,">$m$_") or die "open:$_:$!\n"; + $redir=1; + } elsif ( s/^\s*\|\s*// ) { + my $pipe="| $_"; + while(defined($_[0])){ + $pipe .= ' ' . shift; + } + open(STDOUT,$pipe) or die "open:$pipe:$!\n"; + $redir=1; + } else { + push(@_,$_); + } + } + return @_; + } + sub _unredirect { + return unless $redir; + $redir = 0; + ## redirect: unredirect and propagate errors. explicit close to wait for pipe. + close(STDOUT); + open(STDOUT,">&SAVEOUT"); + die "$@" if "$@"; + ## redirect: done + } +} + +sub _uniq { + my(@list) = @_; + my %seen; + return grep { !$seen{$_}++ } @list; +} + +#-> sub CPAN::shell ; +sub shell { + my($self) = @_; + $Suppress_readline = ! -t STDIN unless defined $Suppress_readline; + CPAN::HandleConfig->load unless $CPAN::Config_loaded++; + + my $oprompt = shift || CPAN::Prompt->new; + my $prompt = $oprompt; + my $commandline = shift || ""; + $CPAN::CurrentCommandId ||= 1; + + local($^W) = 1; + unless ($Suppress_readline) { + require Term::ReadLine; + if (! $term + or + $term->ReadLine eq "Term::ReadLine::Stub" + ) { + $term = Term::ReadLine->new('CPAN Monitor'); + } + if ($term->ReadLine eq "Term::ReadLine::Gnu") { + my $attribs = $term->Attribs; + $attribs->{attempted_completion_function} = sub { + &CPAN::Complete::gnu_cpl; + } + } else { + $readline::rl_completion_function = + $readline::rl_completion_function = 'CPAN::Complete::cpl'; + } + if (my $histfile = $CPAN::Config->{'histfile'}) {{ + unless ($term->can("AddHistory")) { + $CPAN::Frontend->mywarn("Terminal does not support AddHistory.\n"); + unless ($CPAN::META->has_inst('Term::ReadLine::Perl')) { + $CPAN::Frontend->mywarn("\nTo fix that, maybe try> install Term::ReadLine::Perl\n\n"); + } + last; + } + $META->readhist($term,$histfile); + }} + for ($CPAN::Config->{term_ornaments}) { # alias + local $Term::ReadLine::termcap_nowarn = 1; + $term->ornaments($_) if defined; + } + # $term->OUT is autoflushed anyway + my $odef = select STDERR; + $| = 1; + select STDOUT; + $| = 1; + select $odef; + } + + $META->checklock(); + my @cwd = grep { defined $_ and length $_ } + CPAN::anycwd(), + File::Spec->can("tmpdir") ? File::Spec->tmpdir() : (), + File::Spec->rootdir(); + my $try_detect_readline; + $try_detect_readline = $term->ReadLine eq "Term::ReadLine::Stub" if $term; + unless ($CPAN::Config->{inhibit_startup_message}) { + my $rl_avail = $Suppress_readline ? "suppressed" : + ($term->ReadLine ne "Term::ReadLine::Stub") ? "enabled" : + "available (maybe install Bundle::CPAN or Bundle::CPANxxl?)"; + $CPAN::Frontend->myprint( + sprintf qq{ +cpan shell -- CPAN exploration and modules installation (v%s) +Enter 'h' for help. + +}, + $CPAN::VERSION, + ) + } + my($continuation) = ""; + my $last_term_ornaments; + SHELLCOMMAND: while () { + if ($Suppress_readline) { + if ($Echo_readline) { + $|=1; + } + print $prompt; + last SHELLCOMMAND unless defined ($_ = <> ); + if ($Echo_readline) { + # backdoor: I could not find a way to record sessions + print $_; + } + chomp; + } else { + last SHELLCOMMAND unless + defined ($_ = $term->readline($prompt, $commandline)); + } + $_ = "$continuation$_" if $continuation; + s/^\s+//; + next SHELLCOMMAND if /^$/; + s/^\s*\?\s*/help /; + if (/^(?:q(?:uit)?|bye|exit)\s*$/i) { + last SHELLCOMMAND; + } elsif (s/\\$//s) { + chomp; + $continuation = $_; + $prompt = " > "; + } elsif (/^\!/) { + s/^\!//; + my($eval) = $_; + package + CPAN::Eval; # hide from the indexer + use strict; + use vars qw($import_done); + CPAN->import(':DEFAULT') unless $import_done++; + CPAN->debug("eval[$eval]") if $CPAN::DEBUG; + eval($eval); + warn $@ if $@; + $continuation = ""; + $prompt = $oprompt; + } elsif (/./) { + my(@line); + eval { @line = Text::ParseWords::shellwords($_) }; + warn($@), next SHELLCOMMAND if $@; + warn("Text::Parsewords could not parse the line [$_]"), + next SHELLCOMMAND unless @line; + $CPAN::META->debug("line[".join("|",@line)."]") if $CPAN::DEBUG; + my $command = shift @line; + eval { + local (*STDOUT)=*STDOUT; + @line = _redirect(@line); + CPAN::Shell->$command(@line) + }; + my $command_error = $@; + _unredirect; + my $reported_error; + if ($command_error) { + my $err = $command_error; + if (ref $err and $err->isa('CPAN::Exception::blocked_urllist')) { + $CPAN::Frontend->mywarn("Client not fully configured, please proceed with configuring.$err"); + $reported_error = ref $err; + } else { + # I'd prefer never to arrive here and make all errors exception objects + if ($err =~ /\S/) { + require Carp; + require Dumpvalue; + my $dv = Dumpvalue->new(tick => '"'); + Carp::cluck(sprintf "Catching error: %s", $dv->stringify($err)); + } + } + } + if ($command =~ /^( + # classic commands + make + |test + |install + |clean + + # pragmas for classic commands + |ff?orce + |notest + + # compounds + |report + |smoke + |upgrade + )$/x) { + # only commands that tell us something about failed distros + # eval necessary for people without an urllist + eval {CPAN::Shell->failed($CPAN::CurrentCommandId,1);}; + if (my $err = $@) { + unless (ref $err and $reported_error eq ref $err) { + die $@; + } + } + } + soft_chdir_with_alternatives(\@cwd); + $CPAN::Frontend->myprint("\n"); + $continuation = ""; + $CPAN::CurrentCommandId++; + $prompt = $oprompt; + } + } continue { + $commandline = ""; # I do want to be able to pass a default to + # shell, but on the second command I see no + # use in that + $Signal=0; + CPAN::Queue->nullify_queue; + if ($try_detect_readline) { + if ($CPAN::META->has_inst("Term::ReadLine::Gnu") + || + $CPAN::META->has_inst("Term::ReadLine::Perl") + ) { + delete $INC{"Term/ReadLine.pm"}; + my $redef = 0; + local($SIG{__WARN__}) = CPAN::Shell::paintdots_onreload(\$redef); + require Term::ReadLine; + $CPAN::Frontend->myprint("\n$redef subroutines in ". + "Term::ReadLine redefined\n"); + $GOTOSHELL = 1; + } + } + if ($term and $term->can("ornaments")) { + for ($CPAN::Config->{term_ornaments}) { # alias + if (defined $_) { + if (not defined $last_term_ornaments + or $_ != $last_term_ornaments + ) { + local $Term::ReadLine::termcap_nowarn = 1; + $term->ornaments($_); + $last_term_ornaments = $_; + } + } else { + undef $last_term_ornaments; + } + } + } + for my $class (qw(Module Distribution)) { + # again unsafe meta access? + for my $dm (sort keys %{$CPAN::META->{readwrite}{"CPAN::$class"}}) { + next unless $CPAN::META->{readwrite}{"CPAN::$class"}{$dm}{incommandcolor}; + CPAN->debug("BUG: $class '$dm' was in command state, resetting"); + delete $CPAN::META->{readwrite}{"CPAN::$class"}{$dm}{incommandcolor}; + } + } + if ($GOTOSHELL) { + $GOTOSHELL = 0; # not too often + $META->savehist if $CPAN::term && $CPAN::term->can("GetHistory"); + @_ = ($oprompt,""); + goto &shell; + } + } + soft_chdir_with_alternatives(\@cwd); +} + +#-> CPAN::soft_chdir_with_alternatives ; +sub soft_chdir_with_alternatives ($) { + my($cwd) = @_; + unless (@$cwd) { + my $root = File::Spec->rootdir(); + $CPAN::Frontend->mywarn(qq{Warning: no good directory to chdir to! +Trying '$root' as temporary haven. +}); + push @$cwd, $root; + } + while () { + if (chdir "$cwd->[0]") { + return; + } else { + if (@$cwd>1) { + $CPAN::Frontend->mywarn(qq{Could not chdir to "$cwd->[0]": $! +Trying to chdir to "$cwd->[1]" instead. +}); + shift @$cwd; + } else { + $CPAN::Frontend->mydie(qq{Could not chdir to "$cwd->[0]": $!}); + } + } + } +} + +sub _flock { + my($fh,$mode) = @_; + if ( $Config::Config{d_flock} || $Config::Config{d_fcntl_can_lock} ) { + return flock $fh, $mode; + } elsif (!$Have_warned->{"d_flock"}++) { + $CPAN::Frontend->mywarn("Your OS does not seem to support locking; continuing and ignoring all locking issues\n"); + $CPAN::Frontend->mysleep(5); + return 1; + } else { + return 1; + } +} + +sub _yaml_module () { + my $yaml_module = $CPAN::Config->{yaml_module} || "YAML"; + if ( + $yaml_module ne "YAML" + && + !$CPAN::META->has_inst($yaml_module) + ) { + # $CPAN::Frontend->mywarn("'$yaml_module' not installed, falling back to 'YAML'\n"); + $yaml_module = "YAML"; + } + if ($yaml_module eq "YAML" + && + $CPAN::META->has_inst($yaml_module) + && + $YAML::VERSION < 0.60 + && + !$Have_warned->{"YAML"}++ + ) { + $CPAN::Frontend->mywarn("Warning: YAML version '$YAML::VERSION' is too low, please upgrade!\n". + "I'll continue but problems are *very* likely to happen.\n" + ); + $CPAN::Frontend->mysleep(5); + } + return $yaml_module; +} + +# CPAN::_yaml_loadfile +sub _yaml_loadfile { + my($self,$local_file,$opt) = @_; + return +[] unless -s $local_file; + my $opt_loadblessed = $opt->{loadblessed} || $CPAN::Config->{yaml_load_code} || 0; + my $yaml_module = _yaml_module; + if ($CPAN::META->has_inst($yaml_module)) { + # temporarily enable yaml code deserialisation + no strict 'refs'; + # 5.6.2 could not do the local() with the reference + # so we do it manually instead + my $old_loadcode = ${"$yaml_module\::LoadCode"}; + my $old_loadblessed = ${"$yaml_module\::LoadBlessed"}; + ${ "$yaml_module\::LoadCode" } = $CPAN::Config->{yaml_load_code} || 0; + ${ "$yaml_module\::LoadBlessed" } = $opt_loadblessed ? 1 : 0; + + my ($code, @yaml); + if ($code = UNIVERSAL::can($yaml_module, "LoadFile")) { + eval { @yaml = $code->($local_file); }; + if ($@) { + # this shall not be done by the frontend + die CPAN::Exception::yaml_process_error->new($yaml_module,$local_file,"parse",$@); + } + } elsif ($code = UNIVERSAL::can($yaml_module, "Load")) { + local *FH; + if (open FH, $local_file) { + local $/; + my $ystream = ; + eval { @yaml = $code->($ystream); }; + if ($@) { + # this shall not be done by the frontend + die CPAN::Exception::yaml_process_error->new($yaml_module,$local_file,"parse",$@); + } + } else { + $CPAN::Frontend->mywarn("Could not open '$local_file': $!"); + } + } + ${"$yaml_module\::LoadCode"} = $old_loadcode; + ${"$yaml_module\::LoadBlessed"} = $old_loadblessed; + return \@yaml; + } else { + # this shall not be done by the frontend + die CPAN::Exception::yaml_not_installed->new($yaml_module, $local_file, "parse"); + } + return +[]; +} + +# CPAN::_yaml_dumpfile +sub _yaml_dumpfile { + my($self,$local_file,@what) = @_; + my $yaml_module = _yaml_module; + if ($CPAN::META->has_inst($yaml_module)) { + my $code; + if (UNIVERSAL::isa($local_file, "FileHandle")) { + $code = UNIVERSAL::can($yaml_module, "Dump"); + eval { print $local_file $code->(@what) }; + } elsif ($code = UNIVERSAL::can($yaml_module, "DumpFile")) { + eval { $code->($local_file,@what); }; + } elsif ($code = UNIVERSAL::can($yaml_module, "Dump")) { + local *FH; + open FH, ">$local_file" or die "Could not open '$local_file': $!"; + print FH $code->(@what); + } + if ($@) { + die CPAN::Exception::yaml_process_error->new($yaml_module,$local_file,"dump",$@); + } + } else { + if (UNIVERSAL::isa($local_file, "FileHandle")) { + # I think this case does not justify a warning at all + } else { + die CPAN::Exception::yaml_not_installed->new($yaml_module, $local_file, "dump"); + } + } +} + +sub _init_sqlite () { + unless ($CPAN::META->has_inst("CPAN::SQLite")) { + $CPAN::Frontend->mywarn(qq{CPAN::SQLite not installed, trying to work without\n}) + unless $Have_warned->{"CPAN::SQLite"}++; + return; + } + require CPAN::SQLite::META; # not needed since CVS version of 2006-12-17 + $CPAN::SQLite ||= CPAN::SQLite::META->new($CPAN::META); +} + +{ + my $negative_cache = {}; + sub _sqlite_running { + if ($negative_cache->{time} && time < $negative_cache->{time} + 60) { + # need to cache the result, otherwise too slow + return $negative_cache->{fact}; + } else { + $negative_cache = {}; # reset + } + my $ret = $CPAN::Config->{use_sqlite} && ($CPAN::SQLite || _init_sqlite()); + return $ret if $ret; # fast anyway + $negative_cache->{time} = time; + return $negative_cache->{fact} = $ret; + } +} + +$META ||= CPAN->new; # In case we re-eval ourselves we need the || + +# from here on only subs. +################################################################################ + +sub _perl_fingerprint { + my($self,$other_fingerprint) = @_; + my $dll = eval {OS2::DLLname()}; + my $mtime_dll = 0; + if (defined $dll) { + $mtime_dll = (-f $dll ? (stat(_))[9] : '-1'); + } + my $mtime_perl = (-f CPAN::find_perl ? (stat(_))[9] : '-1'); + my $this_fingerprint = { + '$^X' => CPAN::find_perl, + sitearchexp => $Config::Config{sitearchexp}, + 'mtime_$^X' => $mtime_perl, + 'mtime_dll' => $mtime_dll, + }; + if ($other_fingerprint) { + if (exists $other_fingerprint->{'stat($^X)'}) { # repair fp from rev. 1.88_57 + $other_fingerprint->{'mtime_$^X'} = $other_fingerprint->{'stat($^X)'}[9]; + } + # mandatory keys since 1.88_57 + for my $key (qw($^X sitearchexp mtime_dll mtime_$^X)) { + return unless $other_fingerprint->{$key} eq $this_fingerprint->{$key}; + } + return 1; + } else { + return $this_fingerprint; + } +} + +sub suggest_myconfig () { + SUGGEST_MYCONFIG: if(!$INC{'CPAN/MyConfig.pm'}) { + $CPAN::Frontend->myprint("You don't seem to have a user ". + "configuration (MyConfig.pm) yet.\n"); + my $new = CPAN::Shell::colorable_makemaker_prompt("Do you want to create a ". + "user configuration now? (Y/n)", + "yes"); + if($new =~ m{^y}i) { + CPAN::Shell->mkmyconfig(); + return &checklock; + } else { + $CPAN::Frontend->mydie("OK, giving up."); + } + } +} + +#-> sub CPAN::all_objects ; +sub all_objects { + my($mgr,$class) = @_; + CPAN::HandleConfig->load unless $CPAN::Config_loaded++; + CPAN->debug("mgr[$mgr] class[$class]") if $CPAN::DEBUG; + CPAN::Index->reload; + values %{ $META->{readwrite}{$class} }; # unsafe meta access, ok +} + +# Called by shell, not in batch mode. In batch mode I see no risk in +# having many processes updating something as installations are +# continually checked at runtime. In shell mode I suspect it is +# unintentional to open more than one shell at a time + +#-> sub CPAN::checklock ; +sub checklock { + my($self) = @_; + my $lockfile = File::Spec->catfile($CPAN::Config->{cpan_home},".lock"); + if (-f $lockfile && -M _ > 0) { + my $fh = FileHandle->new($lockfile) or + $CPAN::Frontend->mydie("Could not open lockfile '$lockfile': $!"); + my $otherpid = <$fh>; + my $otherhost = <$fh>; + $fh->close; + if (defined $otherpid && length $otherpid) { + chomp $otherpid; + } + if (defined $otherhost && length $otherhost) { + chomp $otherhost; + } + my $thishost = hostname(); + my $ask_if_degraded_wanted = 0; + if (defined $otherhost && defined $thishost && + $otherhost ne '' && $thishost ne '' && + $otherhost ne $thishost) { + $CPAN::Frontend->mydie(sprintf("CPAN.pm panic: Lockfile '$lockfile'\n". + "reports other host $otherhost and other ". + "process $otherpid.\n". + "Cannot proceed.\n")); + } elsif ($RUN_DEGRADED) { + $CPAN::Frontend->mywarn("Running in downgraded mode (experimental)\n"); + } elsif (defined $otherpid && $otherpid) { + return if $$ == $otherpid; # should never happen + $CPAN::Frontend->mywarn( + qq{ +There seems to be running another CPAN process (pid $otherpid). Contacting... +}); + if (kill 0, $otherpid or $!{EPERM}) { + $CPAN::Frontend->mywarn(qq{Other job is running.\n}); + $ask_if_degraded_wanted = 1; + } elsif (-w $lockfile) { + my($ans) = + CPAN::Shell::colorable_makemaker_prompt + (qq{Other job not responding. Shall I overwrite }. + qq{the lockfile '$lockfile'? (Y/n)},"y"); + $CPAN::Frontend->myexit("Ok, bye\n") + unless $ans =~ /^y/i; + } else { + Carp::croak( + qq{Lockfile '$lockfile' not writable by you. }. + qq{Cannot proceed.\n}. + qq{ On UNIX try:\n}. + qq{ rm '$lockfile'\n}. + qq{ and then rerun us.\n} + ); + } + } elsif ($^O eq "MSWin32") { + $CPAN::Frontend->mywarn( + qq{ +There seems to be running another CPAN process according to '$lockfile'. +}); + $ask_if_degraded_wanted = 1; + } else { + $CPAN::Frontend->mydie(sprintf("CPAN.pm panic: Found invalid lockfile ". + "'$lockfile', please remove. Cannot proceed.\n")); + } + if ($ask_if_degraded_wanted) { + my($ans) = + CPAN::Shell::colorable_makemaker_prompt + (qq{Shall I try to run in downgraded }. + qq{mode? (Y/n)},"y"); + if ($ans =~ /^y/i) { + $CPAN::Frontend->mywarn("Running in downgraded mode (experimental). +Please report if something unexpected happens\n"); + $RUN_DEGRADED = 1; + for ($CPAN::Config) { + # XXX + # $_->{build_dir_reuse} = 0; # 2006-11-17 akoenig Why was that? + $_->{commandnumber_in_prompt} = 0; # visibility + $_->{histfile} = ""; # who should win otherwise? + $_->{cache_metadata} = 0; # better would be a lock? + $_->{use_sqlite} = 0; # better would be a write lock! + $_->{auto_commit} = 0; # we are violent, do not persist + $_->{test_report} = 0; # Oliver Paukstadt had sent wrong reports in degraded mode + } + } else { + my $msg = "You may want to kill the other job and delete the lockfile."; + if (defined $otherpid) { + $msg .= " Something like: + kill $otherpid + rm $lockfile +"; + } + $CPAN::Frontend->mydie("\n$msg"); + } + } + } + my $dotcpan = $CPAN::Config->{cpan_home}; + eval { File::Path::mkpath($dotcpan);}; + if ($@) { + # A special case at least for Jarkko. + my $firsterror = $@; + my $seconderror; + my $symlinkcpan; + if (-l $dotcpan) { + $symlinkcpan = readlink $dotcpan; + die "readlink $dotcpan failed: $!" unless defined $symlinkcpan; + eval { File::Path::mkpath($symlinkcpan); }; + if ($@) { + $seconderror = $@; + } else { + $CPAN::Frontend->mywarn(qq{ +Working directory $symlinkcpan created. +}); + } + } + unless (-d $dotcpan) { + my $mess = qq{ +Your configuration suggests "$dotcpan" as your +CPAN.pm working directory. I could not create this directory due +to this error: $firsterror\n}; + $mess .= qq{ +As "$dotcpan" is a symlink to "$symlinkcpan", +I tried to create that, but I failed with this error: $seconderror +} if $seconderror; + $mess .= qq{ +Please make sure the directory exists and is writable. +}; + $CPAN::Frontend->mywarn($mess); + return suggest_myconfig; + } + } # $@ after eval mkpath $dotcpan + if (0) { # to test what happens when a race condition occurs + for (reverse 1..10) { + print $_, "\n"; + sleep 1; + } + } + # locking + if (!$RUN_DEGRADED && !$self->{LOCKFH}) { + my $fh; + unless ($fh = FileHandle->new("+>>$lockfile")) { + $CPAN::Frontend->mywarn(qq{ + +Your configuration suggests that CPAN.pm should use a working +directory of + $CPAN::Config->{cpan_home} +Unfortunately we could not create the lock file + $lockfile +due to '$!'. + +Please make sure that the configuration variable + \$CPAN::Config->{cpan_home} +points to a directory where you can write a .lock file. You can set +this variable in either a CPAN/MyConfig.pm or a CPAN/Config.pm in your +\@INC path; +}); + return suggest_myconfig; + } + my $sleep = 1; + while (!CPAN::_flock($fh, LOCK_EX|LOCK_NB)) { + my $err = $! || "unknown error"; + if ($sleep>3) { + $CPAN::Frontend->mydie("Could not lock '$lockfile' with flock: $err; giving up\n"); + } + $CPAN::Frontend->mysleep($sleep+=0.1); + $CPAN::Frontend->mywarn("Could not lock '$lockfile' with flock: $err; retrying\n"); + } + + seek $fh, 0, 0; + truncate $fh, 0; + $fh->autoflush(1); + $fh->print($$, "\n"); + $fh->print(hostname(), "\n"); + $self->{LOCK} = $lockfile; + $self->{LOCKFH} = $fh; + } + $SIG{TERM} = sub { + my $sig = shift; + &cleanup; + $CPAN::Frontend->mydie("Got SIG$sig, leaving"); + }; + $SIG{INT} = sub { + # no blocks!!! + my $sig = shift; + &cleanup if $Signal; + die "Got yet another signal" if $Signal > 1; + $CPAN::Frontend->mydie("Got another SIG$sig") if $Signal; + $CPAN::Frontend->mywarn("Caught SIG$sig, trying to continue\n"); + $Signal++; + }; + +# From: Larry Wall +# Subject: Re: deprecating SIGDIE +# To: perl5-porters@perl.org +# Date: Thu, 30 Sep 1999 14:58:40 -0700 (PDT) +# +# The original intent of __DIE__ was only to allow you to substitute one +# kind of death for another on an application-wide basis without respect +# to whether you were in an eval or not. As a global backstop, it should +# not be used any more lightly (or any more heavily :-) than class +# UNIVERSAL. Any attempt to build a general exception model on it should +# be politely squashed. Any bug that causes every eval {} to have to be +# modified should be not so politely squashed. +# +# Those are my current opinions. It is also my opinion that polite +# arguments degenerate to personal arguments far too frequently, and that +# when they do, it's because both people wanted it to, or at least didn't +# sufficiently want it not to. +# +# Larry + + # global backstop to cleanup if we should really die + $SIG{__DIE__} = \&cleanup; + $self->debug("Signal handler set.") if $CPAN::DEBUG; +} + +#-> sub CPAN::DESTROY ; +sub DESTROY { + &cleanup; # need an eval? +} + +#-> sub CPAN::anycwd ; +sub anycwd () { + my $getcwd; + $getcwd = $CPAN::Config->{'getcwd'} || 'cwd'; + CPAN->$getcwd(); +} + +#-> sub CPAN::cwd ; +sub cwd {Cwd::cwd();} + +#-> sub CPAN::getcwd ; +sub getcwd {Cwd::getcwd();} + +#-> sub CPAN::fastcwd ; +sub fastcwd {Cwd::fastcwd();} + +#-> sub CPAN::getdcwd ; +sub getdcwd {Cwd::getdcwd();} + +#-> sub CPAN::backtickcwd ; +sub backtickcwd {my $cwd = `cwd`; chomp $cwd; $cwd} + +# Adapted from Probe::Perl +#-> sub CPAN::_perl_is_same +sub _perl_is_same { + my ($perl) = @_; + return MM->maybe_command($perl) + && `$perl -MConfig=myconfig -e print -e myconfig` eq Config->myconfig; +} + +# Adapted in part from Probe::Perl +#-> sub CPAN::find_perl ; +sub find_perl () { + if ( File::Spec->file_name_is_absolute($^X) ) { + return $^X; + } + else { + my $exe = $Config::Config{exe_ext}; + my @candidates = ( + File::Spec->catfile($CPAN::iCwd,$^X), + $Config::Config{'perlpath'}, + ); + for my $perl_name ($^X, 'perl', 'perl5', "perl$]") { + for my $path (File::Spec->path(), $Config::Config{'binexp'}) { + if ( defined($path) && length $path && -d $path ) { + my $perl = File::Spec->catfile($path,$perl_name); + push @candidates, $perl; + # try with extension if not provided already + if ($^O eq 'VMS') { + # VMS might have a file version at the end + push @candidates, $perl . $exe + unless $perl =~ m/$exe(;\d+)?$/i; + } elsif (defined $exe && length $exe) { + push @candidates, $perl . $exe + unless $perl =~ m/$exe$/i; + } + } + } + } + for my $perl ( @candidates ) { + if (MM->maybe_command($perl) && _perl_is_same($perl)) { + $^X = $perl; + return $perl; + } + } + } + return $^X; # default fall back +} + +#-> sub CPAN::exists ; +sub exists { + my($mgr,$class,$id) = @_; + CPAN::HandleConfig->load unless $CPAN::Config_loaded++; + CPAN::Index->reload; + ### Carp::croak "exists called without class argument" unless $class; + $id ||= ""; + $id =~ s/:+/::/g if $class eq "CPAN::Module"; + my $exists; + if (CPAN::_sqlite_running) { + $exists = (exists $META->{readonly}{$class}{$id} or + $CPAN::SQLite->set($class, $id)); + } else { + $exists = exists $META->{readonly}{$class}{$id}; + } + $exists ||= exists $META->{readwrite}{$class}{$id}; # unsafe meta access, ok +} + +#-> sub CPAN::delete ; +sub delete { + my($mgr,$class,$id) = @_; + delete $META->{readonly}{$class}{$id}; # unsafe meta access, ok + delete $META->{readwrite}{$class}{$id}; # unsafe meta access, ok +} + +#-> sub CPAN::has_usable +# has_inst is sometimes too optimistic, we should replace it with this +# has_usable whenever a case is given +sub has_usable { + my($self,$mod,$message) = @_; + return 1 if $HAS_USABLE->{$mod}; + my $has_inst = $self->has_inst($mod,$message); + return unless $has_inst; + my $usable; + $usable = { + + # + # most of these subroutines warn on the frontend, then + # die if the installed version is unusable for some + # reason; has_usable() then returns false when it caught + # an exception, otherwise returns true and caches that; + # + 'CPAN::Meta' => [ + sub { + require CPAN::Meta; + unless (CPAN::Version->vge(CPAN::Meta->VERSION, 2.110350)) { + for ("Will not use CPAN::Meta, need version 2.110350\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + + 'CPAN::Meta::Requirements' => [ + sub { + if (defined $CPAN::Meta::Requirements::VERSION + && CPAN::Version->vlt($CPAN::Meta::Requirements::VERSION, "2.120920") + ) { + delete $INC{"CPAN/Meta/Requirements.pm"}; + } + require CPAN::Meta::Requirements; + unless (CPAN::Version->vge(CPAN::Meta::Requirements->VERSION, 2.120920)) { + for ("Will not use CPAN::Meta::Requirements, need version 2.120920\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + + 'CPAN::Reporter' => [ + sub { + if (defined $CPAN::Reporter::VERSION + && CPAN::Version->vlt($CPAN::Reporter::VERSION, "1.2011") + ) { + delete $INC{"CPAN/Reporter.pm"}; + } + require CPAN::Reporter; + unless (CPAN::Version->vge(CPAN::Reporter->VERSION, "1.2011")) { + for ("Will not use CPAN::Reporter, need version 1.2011\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + + LWP => [ # we frequently had "Can't locate object + # method "new" via package "LWP::UserAgent" at + # (eval 69) line 2006 + sub {require LWP}, + sub {require LWP::UserAgent}, + sub {require HTTP::Request}, + sub {require URI::URL; + unless (CPAN::Version->vge(URI::URL::->VERSION,0.08)) { + for ("Will not use URI::URL, need 0.08\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + 'Net::FTP' => [ + sub { + my $var = $CPAN::Config->{ftp_proxy} || $ENV{ftp_proxy}; + if ($var and $var =~ /^http:/i) { + # rt #110833 + for ("Net::FTP cannot handle http proxy") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + sub {require Net::FTP}, + sub {require Net::Config}, + ], + 'IO::Socket::SSL' => [ + sub { + require IO::Socket::SSL; + unless (CPAN::Version->vge(IO::Socket::SSL::->VERSION,1.56)) { + for ("Will not use IO::Socket::SSL, need 1.56\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + } + ], + 'Net::SSLeay' => [ + sub { + require Net::SSLeay; + unless (CPAN::Version->vge(Net::SSLeay::->VERSION,1.49)) { + for ("Will not use Net::SSLeay, need 1.49\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + } + ], + 'HTTP::Tiny' => [ + sub { + require HTTP::Tiny; + unless (CPAN::Version->vge(HTTP::Tiny->VERSION, 0.005)) { + for ("Will not use HTTP::Tiny, need version 0.005\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + 'File::HomeDir' => [ + sub {require File::HomeDir; + unless (CPAN::Version->vge(File::HomeDir::->VERSION, 0.52)) { + for ("Will not use File::HomeDir, need 0.52\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ], + 'Archive::Tar' => [ + sub {require Archive::Tar; + my $demand = "1.50"; + unless (CPAN::Version->vge(Archive::Tar::->VERSION, $demand)) { + my $atv = Archive::Tar->VERSION; + for ("You have Archive::Tar $atv, but $demand or later is recommended. Please upgrade.\n") { + $CPAN::Frontend->mywarn($_); + # don't die, because we may need + # Archive::Tar to upgrade + } + + } + }, + ], + 'File::Temp' => [ + # XXX we should probably delete from + # %INC too so we can load after we + # installed a new enough version -- + # I'm not sure. + sub {require File::Temp; + unless (CPAN::Version->vge(File::Temp::->VERSION,0.16)) { + for ("Will not use File::Temp, need 0.16\n") { + $CPAN::Frontend->mywarn($_); + die $_; + } + } + }, + ] + }; + if ($usable->{$mod}) { + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + for my $c (0..$#{$usable->{$mod}}) { + my $code = $usable->{$mod}[$c]; + my $ret = eval { &$code() }; + $ret = "" unless defined $ret; + if ($@) { + # warn "DEBUG: c[$c]\$\@[$@]ret[$ret]"; + return; + } + } + } + return $HAS_USABLE->{$mod} = 1; +} + +sub frontend { + shift; + $CPAN::Frontend = shift if @_; + $CPAN::Frontend; +} + +sub use_inst { + my ($self, $module) = @_; + + unless ($self->has_inst($module)) { + $self->frontend->mydie("$module not installed, cannot continue"); + } +} + +#-> sub CPAN::has_inst +sub has_inst { + my($self,$mod,$message) = @_; + Carp::croak("CPAN->has_inst() called without an argument") + unless defined $mod; + my %dont = map { $_ => 1 } keys %{$CPAN::META->{dontload_hash}||{}}, + keys %{$CPAN::Config->{dontload_hash}||{}}, + @{$CPAN::Config->{dontload_list}||[]}; + if (defined $message && $message eq "no" # as far as I remember only used by Nox + || + $dont{$mod} + ) { + $CPAN::META->{dontload_hash}{$mod}||=1; # unsafe meta access, ok + return 0; + } + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + my $file = $mod; + my $obj; + $file =~ s|::|/|g; + $file .= ".pm"; + if ($INC{$file}) { + # checking %INC is wrong, because $INC{LWP} may be true + # although $INC{"URI/URL.pm"} may have failed. But as + # I really want to say "blah loaded OK", I have to somehow + # cache results. + ### warn "$file in %INC"; #debug + return 1; + } elsif (eval { require $file }) { + # eval is good: if we haven't yet read the database it's + # perfect and if we have installed the module in the meantime, + # it tries again. The second require is only a NOOP returning + # 1 if we had success, otherwise it's retrying + + my $mtime = (stat $INC{$file})[9]; + # privileged files loaded by has_inst; Note: we use $mtime + # as a proxy for a checksum. + $CPAN::Shell::reload->{$file} = $mtime; + my $v = eval "\$$mod\::VERSION"; + $v = $v ? " (v$v)" : ""; + CPAN::Shell->optprint("load_module","CPAN: $mod loaded ok$v\n"); + if ($mod eq "CPAN::WAIT") { + push @CPAN::Shell::ISA, 'CPAN::WAIT'; + } + return 1; + } elsif ($mod eq "Net::FTP") { + $CPAN::Frontend->mywarn(qq{ + Please, install Net::FTP as soon as possible. CPAN.pm installs it for you + if you just type + install Bundle::libnet + +}) unless $Have_warned->{"Net::FTP"}++; + $CPAN::Frontend->mysleep(3); + } elsif ($mod eq "Digest::SHA") { + if ($Have_warned->{"Digest::SHA"}++) { + $CPAN::Frontend->mywarn(qq{CPAN: checksum security checks disabled }. + qq{because Digest::SHA not installed.\n}); + } else { + $CPAN::Frontend->mywarn(qq{ + CPAN: checksum security checks disabled because Digest::SHA not installed. + Please consider installing the Digest::SHA module. + +}); + $CPAN::Frontend->mysleep(2); + } + } elsif ($mod eq "Module::Signature") { + # NOT prefs_lookup, we are not a distro + my $check_sigs = $CPAN::Config->{check_sigs}; + if (not $check_sigs) { + # they do not want us:-( + } elsif (not $Have_warned->{"Module::Signature"}++) { + # No point in complaining unless the user can + # reasonably install and use it. + if (eval { require Crypt::OpenPGP; 1 } || + ( + defined $CPAN::Config->{'gpg'} + && + $CPAN::Config->{'gpg'} =~ /\S/ + ) + ) { + $CPAN::Frontend->mywarn(qq{ + CPAN: Module::Signature security checks disabled because Module::Signature + not installed. Please consider installing the Module::Signature module. + You may also need to be able to connect over the Internet to the public + key servers like pool.sks-keyservers.net or pgp.mit.edu. + +}); + $CPAN::Frontend->mysleep(2); + } + } + } else { + delete $INC{$file}; # if it inc'd LWP but failed during, say, URI + } + return 0; +} + +#-> sub CPAN::instance ; +sub instance { + my($mgr,$class,$id) = @_; + CPAN::Index->reload; + $id ||= ""; + # unsafe meta access, ok? + return $META->{readwrite}{$class}{$id} if exists $META->{readwrite}{$class}{$id}; + $META->{readwrite}{$class}{$id} ||= $class->new(ID => $id); +} + +#-> sub CPAN::new ; +sub new { + bless {}, shift; +} + +#-> sub CPAN::_exit_messages ; +sub _exit_messages { + my ($self) = @_; + $self->{exit_messages} ||= []; +} + +#-> sub CPAN::cleanup ; +sub cleanup { + # warn "cleanup called with arg[@_] End[$CPAN::End] Signal[$Signal]"; + local $SIG{__DIE__} = ''; + my($message) = @_; + my $i = 0; + my $ineval = 0; + my($subroutine); + while ((undef,undef,undef,$subroutine) = caller(++$i)) { + $ineval = 1, last if + $subroutine eq '(eval)'; + } + return if $ineval && !$CPAN::End; + return unless defined $META->{LOCK}; + return unless -f $META->{LOCK}; + $META->savehist; + $META->{cachemgr} ||= CPAN::CacheMgr->new('atexit'); + close $META->{LOCKFH}; + unlink $META->{LOCK}; + # require Carp; + # Carp::cluck("DEBUGGING"); + if ( $CPAN::CONFIG_DIRTY ) { + $CPAN::Frontend->mywarn("Warning: Configuration not saved.\n"); + } + $CPAN::Frontend->myprint("Lockfile removed.\n"); + for my $msg ( @{ $META->_exit_messages } ) { + $CPAN::Frontend->myprint($msg); + } +} + +#-> sub CPAN::readhist +sub readhist { + my($self,$term,$histfile) = @_; + my $histsize = $CPAN::Config->{'histsize'} || 100; + $term->Attribs->{'MaxHistorySize'} = $histsize if (defined($term->Attribs->{'MaxHistorySize'})); + my($fh) = FileHandle->new; + open $fh, "<$histfile" or return; + local $/ = "\n"; + while (<$fh>) { + chomp; + $term->AddHistory($_); + } + close $fh; +} + +#-> sub CPAN::savehist +sub savehist { + my($self) = @_; + my($histfile,$histsize); + unless ($histfile = $CPAN::Config->{'histfile'}) { + $CPAN::Frontend->mywarn("No history written (no histfile specified).\n"); + return; + } + $histsize = $CPAN::Config->{'histsize'} || 100; + if ($CPAN::term) { + unless ($CPAN::term->can("GetHistory")) { + $CPAN::Frontend->mywarn("Terminal does not support GetHistory.\n"); + return; + } + } else { + return; + } + my @h = $CPAN::term->GetHistory; + splice @h, 0, @h-$histsize if @h>$histsize; + my($fh) = FileHandle->new; + open $fh, ">$histfile" or $CPAN::Frontend->mydie("Couldn't open >$histfile: $!"); + local $\ = local $, = "\n"; + print $fh @h; + close $fh; +} + +#-> sub CPAN::is_tested +sub is_tested { + my($self,$what,$when) = @_; + unless ($what) { + Carp::cluck("DEBUG: empty what"); + return; + } + $self->{is_tested}{$what} = $when; +} + +#-> sub CPAN::reset_tested +# forget all distributions tested -- resets what gets included in PERL5LIB +sub reset_tested { + my ($self) = @_; + $self->{is_tested} = {}; +} + +#-> sub CPAN::is_installed +# unsets the is_tested flag: as soon as the thing is installed, it is +# not needed in set_perl5lib anymore +sub is_installed { + my($self,$what) = @_; + delete $self->{is_tested}{$what}; +} + +sub _list_sorted_descending_is_tested { + my($self) = @_; + my $foul = 0; + my @sorted = sort + { ($self->{is_tested}{$b}||0) <=> ($self->{is_tested}{$a}||0) } + grep + { if ($foul){ 0 } elsif (-e) { 1 } else { $foul = $_; 0 } } + keys %{$self->{is_tested}}; + if ($foul) { + $CPAN::Frontend->mywarn("Lost build_dir detected ($foul), giving up all cached test results of currently running session.\n"); + for my $dbd (sort keys %{$self->{is_tested}}) { # distro-build-dir + SEARCH: for my $d (sort { $a->id cmp $b->id } $CPAN::META->all_objects("CPAN::Distribution")) { + if ($d->{build_dir} && $d->{build_dir} eq $dbd) { + $CPAN::Frontend->mywarn(sprintf "Flushing cache for %s\n", $d->pretty_id); + $d->fforce(""); + last SEARCH; + } + } + delete $self->{is_tested}{$dbd}; + } + return (); + } else { + return @sorted; + } +} + +#-> sub CPAN::set_perl5lib +# Notes on max environment variable length: +# - Win32 : XP or later, 8191; Win2000 or NT4, 2047 +{ +my $fh; +sub set_perl5lib { + my($self,$for) = @_; + unless ($for) { + (undef,undef,undef,$for) = caller(1); + $for =~ s/.*://; + } + $self->{is_tested} ||= {}; + return unless %{$self->{is_tested}}; + my $env = $ENV{PERL5LIB}; + $env = $ENV{PERLLIB} unless defined $env; + my @env; + push @env, split /\Q$Config::Config{path_sep}\E/, $env if defined $env and length $env; + #my @dirs = map {("$_/blib/arch", "$_/blib/lib")} keys %{$self->{is_tested}}; + #$CPAN::Frontend->myprint("Prepending @dirs to PERL5LIB.\n"); + + my @dirs = map {("$_/blib/arch", "$_/blib/lib")} $self->_list_sorted_descending_is_tested; + return if !@dirs; + + if (@dirs < 12) { + $CPAN::Frontend->optprint('perl5lib', "Prepending @dirs to PERL5LIB for '$for'\n"); + $ENV{PERL5LIB} = join $Config::Config{path_sep}, @dirs, @env; + } elsif (@dirs < 24 ) { + my @d = map {my $cp = $_; + $cp =~ s/^\Q$CPAN::Config->{build_dir}\E/%BUILDDIR%/; + $cp + } @dirs; + $CPAN::Frontend->optprint('perl5lib', "Prepending @d to PERL5LIB; ". + "%BUILDDIR%=$CPAN::Config->{build_dir} ". + "for '$for'\n" + ); + $ENV{PERL5LIB} = join $Config::Config{path_sep}, @dirs, @env; + } else { + my $cnt = keys %{$self->{is_tested}}; + my $newenv = join $Config::Config{path_sep}, @dirs, @env; + $CPAN::Frontend->optprint('perl5lib', sprintf ("Prepending blib/arch and blib/lib of ". + "%d build dirs to PERL5LIB, reaching size %d; ". + "for '%s'\n", $cnt, length($newenv), $for) + ); + $ENV{PERL5LIB} = $newenv; + } +}} + + +1; + + +__END__ + +=head1 NAME + +CPAN - query, download and build perl modules from CPAN sites + +=head1 SYNOPSIS + +Interactive mode: + + perl -MCPAN -e shell + +--or-- + + cpan + +Basic commands: + + # Modules: + + cpan> install Acme::Meta # in the shell + + CPAN::Shell->install("Acme::Meta"); # in perl + + # Distributions: + + cpan> install NWCLARK/Acme-Meta-0.02.tar.gz # in the shell + + CPAN::Shell-> + install("NWCLARK/Acme-Meta-0.02.tar.gz"); # in perl + + # module objects: + + $mo = CPAN::Shell->expandany($mod); + $mo = CPAN::Shell->expand("Module",$mod); # same thing + + # distribution objects: + + $do = CPAN::Shell->expand("Module",$mod)->distribution; + $do = CPAN::Shell->expandany($distro); # same thing + $do = CPAN::Shell->expand("Distribution", + $distro); # same thing + +=head1 DESCRIPTION + +The CPAN module automates or at least simplifies the make and install +of perl modules and extensions. It includes some primitive searching +capabilities and knows how to use LWP, HTTP::Tiny, Net::FTP and certain +external download clients to fetch distributions from the net. + +These are fetched from one or more mirrored CPAN (Comprehensive +Perl Archive Network) sites and unpacked in a dedicated directory. + +The CPAN module also supports named and versioned +I of modules. Bundles simplify handling of sets of +related modules. See Bundles below. + +The package contains a session manager and a cache manager. The +session manager keeps track of what has been fetched, built, and +installed in the current session. The cache manager keeps track of the +disk space occupied by the make processes and deletes excess space +using a simple FIFO mechanism. + +All methods provided are accessible in a programmer style and in an +interactive shell style. + +=head2 CPAN::shell([$prompt, $command]) Starting Interactive Mode + +Enter interactive mode by running + + perl -MCPAN -e shell + +or + + cpan + +which puts you into a readline interface. If C and +either of C or C are installed, +history and command completion are supported. + +Once at the command line, type C for one-page help +screen; the rest should be self-explanatory. + +The function call C takes two optional arguments: one the +prompt, the second the default initial command line (the latter +only works if a real ReadLine interface module is installed). + +The most common uses of the interactive modes are + +=over 2 + +=item Searching for authors, bundles, distribution files and modules + +There are corresponding one-letter commands C, C, C, and C +for each of the four categories and another, C for any of the +mentioned four. Each of the four entities is implemented as a class +with slightly differing methods for displaying an object. + +Arguments to these commands are either strings exactly matching +the identification string of an object, or regular expressions +matched case-insensitively against various attributes of the +objects. The parser only recognizes a regular expression when you +enclose it with slashes. + +The principle is that the number of objects found influences how an +item is displayed. If the search finds one item, the result is +displayed with the rather verbose method C, but if +more than one is found, each object is displayed with the terse method +C. + +Examples: + + cpan> m Acme::MetaSyntactic + Module id = Acme::MetaSyntactic + CPAN_USERID BOOK (Philippe Bruhat (BooK) <[...]>) + CPAN_VERSION 0.99 + CPAN_FILE B/BO/BOOK/Acme-MetaSyntactic-0.99.tar.gz + UPLOAD_DATE 2006-11-06 + MANPAGE Acme::MetaSyntactic - Themed metasyntactic variables names + INST_FILE /usr/local/lib/perl/5.10.0/Acme/MetaSyntactic.pm + INST_VERSION 0.99 + cpan> a BOOK + Author id = BOOK + EMAIL [...] + FULLNAME Philippe Bruhat (BooK) + cpan> d BOOK/Acme-MetaSyntactic-0.99.tar.gz + Distribution id = B/BO/BOOK/Acme-MetaSyntactic-0.99.tar.gz + CPAN_USERID BOOK (Philippe Bruhat (BooK) <[...]>) + CONTAINSMODS Acme::MetaSyntactic Acme::MetaSyntactic::Alias [...] + UPLOAD_DATE 2006-11-06 + cpan> m /lorem/ + Module = Acme::MetaSyntactic::loremipsum (BOOK/Acme-MetaSyntactic-0.99.tar.gz) + Module Text::Lorem (ADEOLA/Text-Lorem-0.3.tar.gz) + Module Text::Lorem::More (RKRIMEN/Text-Lorem-More-0.12.tar.gz) + Module Text::Lorem::More::Source (RKRIMEN/Text-Lorem-More-0.12.tar.gz) + cpan> i /berlin/ + Distribution BEATNIK/Filter-NumberLines-0.02.tar.gz + Module = DateTime::TimeZone::Europe::Berlin (DROLSKY/DateTime-TimeZone-0.7904.tar.gz) + Module Filter::NumberLines (BEATNIK/Filter-NumberLines-0.02.tar.gz) + Author [...] + +The examples illustrate several aspects: the first three queries +target modules, authors, or distros directly and yield exactly one +result. The last two use regular expressions and yield several +results. The last one targets all of bundles, modules, authors, and +distros simultaneously. When more than one result is available, they +are printed in one-line format. + +=item C, C, C, C, C modules or distributions + +These commands take any number of arguments and investigate what is +necessary to perform the action. Argument processing is as follows: + + known module name in format Foo/Bar.pm module + other embedded slash distribution + - with trailing slash dot directory + enclosing slashes regexp + known module name in format Foo::Bar module + +If the argument is a distribution file name (recognized by embedded +slashes), it is processed. If it is a module, CPAN determines the +distribution file in which this module is included and processes that, +following any dependencies named in the module's META.yml or +Makefile.PL (this behavior is controlled by the configuration +parameter C). If an argument is enclosed in +slashes it is treated as a regular expression: it is expanded and if +the result is a single object (distribution, bundle or module), this +object is processed. + +Example: + + install Dummy::Perl # installs the module + install AUXXX/Dummy-Perl-3.14.tar.gz # installs that distribution + install /Dummy-Perl-3.14/ # same if the regexp is unambiguous + +C downloads a distribution file and untars or unzips it, C +builds it, C runs the test suite, and C installs it. + +Any C or C is run unconditionally. An + + install + +is also run unconditionally. But for + + install + +CPAN checks whether an install is needed and prints +I if the distribution file containing +the module doesn't need updating. + +CPAN also keeps track of what it has done within the current session +and doesn't try to build a package a second time regardless of whether it +succeeded or not. It does not repeat a test run if the test +has been run successfully before. Same for install runs. + +The C pragma may precede another command (currently: C, +C, C, or C) to execute the command from scratch +and attempt to continue past certain errors. See the section below on +the C and the C pragma. + +The C pragma skips the test part in the build +process. + +Example: + + cpan> notest install Tk + +A C command results in a + + make clean + +being executed within the distribution file's working directory. + +=item C, C, C module or distribution + +C displays the README file of the associated distribution. +C gets and untars (if not yet done) the distribution file, +changes to the appropriate directory and opens a subshell process in +that directory. C displays the module's pod documentation +in html or plain text format. + +=item C author + +=item C globbing_expression + +The first form lists all distribution files in and below an author's +CPAN directory as stored in the CHECKSUMS files distributed on +CPAN. The listing recurses into subdirectories. + +The second form limits or expands the output with shell +globbing as in the following examples: + + ls JV/make* + ls GSAR/*make* + ls */*make* + +The last example is very slow and outputs extra progress indicators +that break the alignment of the result. + +Note that globbing only lists directories explicitly asked for, for +example FOO/* will not list FOO/bar/Acme-Sthg-n.nn.tar.gz. This may be +regarded as a bug that may be changed in some future version. + +=item C + +The C command reports all distributions that failed on one of +C, C or C for some reason in the currently +running shell session. + +=item Persistence between sessions + +If the C or the C module is installed a record of +the internal state of all modules is written to disk after each step. +The files contain a signature of the currently running perl version +for later perusal. + +If the configurations variable C is set to a true +value, then CPAN.pm reads the collected YAML files. If the stored +signature matches the currently running perl, the stored state is +loaded into memory such that persistence between sessions +is effectively established. + +=item The C and the C pragma + +To speed things up in complex installation scenarios, CPAN.pm keeps +track of what it has already done and refuses to do some things a +second time. A C, a C, and an C are not repeated. +A C is repeated only if the previous test was unsuccessful. The +diagnostic message when CPAN.pm refuses to do something a second time +is one of IC or +something similar. Another situation where CPAN refuses to act is an +C if the corresponding C was not successful. + +In all these cases, the user can override this stubborn behaviour by +prepending the command with the word force, for example: + + cpan> force get Foo + cpan> force make AUTHOR/Bar-3.14.tar.gz + cpan> force test Baz + cpan> force install Acme::Meta + +Each I command is executed with the corresponding part of its +memory erased. + +The C pragma is a variant that emulates a C which +erases the entire memory followed by the action specified, effectively +restarting the whole get/make/test/install procedure from scratch. + +=item Lockfile + +Interactive sessions maintain a lockfile, by default C<~/.cpan/.lock>. +Batch jobs can run without a lockfile and not disturb each other. + +The shell offers to run in I when another process is +holding the lockfile. This is an experimental feature that is not yet +tested very well. This second shell then does not write the history +file, does not use the metadata file, and has a different prompt. + +=item Signals + +CPAN.pm installs signal handlers for SIGINT and SIGTERM. While you are +in the cpan-shell, it is intended that you can press C<^C> anytime and +return to the cpan-shell prompt. A SIGTERM will cause the cpan-shell +to clean up and leave the shell loop. You can emulate the effect of a +SIGTERM by sending two consecutive SIGINTs, which usually means by +pressing C<^C> twice. + +CPAN.pm ignores SIGPIPE. If the user sets C, a +SIGALRM is used during the run of the C or C subprocess. A SIGALRM is also used during module version +parsing, and is controlled by C. + +=back + +=head2 CPAN::Shell + +The commands available in the shell interface are methods in +the package CPAN::Shell. If you enter the shell command, your +input is split by the Text::ParseWords::shellwords() routine, which +acts like most shells do. The first word is interpreted as the +method to be invoked, and the rest of the words are treated as the method's arguments. +Continuation lines are supported by ending a line with a +literal backslash. + +=head2 autobundle + +C writes a bundle file into the +C<$CPAN::Config-E{cpan_home}/Bundle> directory. The file contains +a list of all modules that are both available from CPAN and currently +installed within @INC. Duplicates of each distribution are suppressed. +The name of the bundle file is based on the current date and a +counter, e.g. F. This is installed +again by running C, or installing +C from the CPAN shell. + +Return value: path to the written file. + +=head2 hosts + +Note: this feature is still in alpha state and may change in future +versions of CPAN.pm + +This commands provides a statistical overview over recent download +activities. The data for this is collected in the YAML file +C in your C directory. If no YAML module is +configured or YAML not installed, or if C is set to a +value C<< <=0 >>, no stats are provided. + +=head2 install_tested + +Install all distributions that have been tested successfully but have +not yet been installed. See also C. + +=head2 is_tested + +List all build directories of distributions that have been tested +successfully but have not yet been installed. See also +C. + +=head2 mkmyconfig + +mkmyconfig() writes your own CPAN::MyConfig file into your C<~/.cpan/> +directory so that you can save your own preferences instead of the +system-wide ones. + +=head2 r [Module|/Regexp/]... + +scans current perl installation for modules that have a newer version +available on CPAN and provides a list of them. If called without +argument, all potential upgrades are listed; if called with arguments +the list is filtered to the modules and regexps given as arguments. + +The listing looks something like this: + + Package namespace installed latest in CPAN file + CPAN 1.94_64 1.9600 ANDK/CPAN-1.9600.tar.gz + CPAN::Reporter 1.1801 1.1902 DAGOLDEN/CPAN-Reporter-1.1902.tar.gz + YAML 0.70 0.73 INGY/YAML-0.73.tar.gz + YAML::Syck 1.14 1.17 AVAR/YAML-Syck-1.17.tar.gz + YAML::Tiny 1.44 1.50 ADAMK/YAML-Tiny-1.50.tar.gz + CGI 3.43 3.55 MARKSTOS/CGI.pm-3.55.tar.gz + Module::Build::YAML 1.40 1.41 DAGOLDEN/Module-Build-0.3800.tar.gz + TAP::Parser::Result::YAML 3.22 3.23 ANDYA/Test-Harness-3.23.tar.gz + YAML::XS 0.34 0.35 INGY/YAML-LibYAML-0.35.tar.gz + +It suppresses duplicates in the column C such that +distributions with many upgradeable modules are listed only once. + +Note that the list is not sorted. + +=head2 recent ***EXPERIMENTAL COMMAND*** + +The C command downloads a list of recent uploads to CPAN and +displays them I. While the command is running, a $SIG{INT} +exits the loop after displaying the current item. + +B: This command requires XML::LibXML installed. + +B: This whole command currently is just a hack and will +probably change in future versions of CPAN.pm, but the general +approach will likely remain. + +B: See also L + +=head2 recompile + +recompile() is a special command that takes no argument and +runs the make/test/install cycle with brute force over all installed +dynamically loadable extensions (a.k.a. XS modules) with 'force' in +effect. The primary purpose of this command is to finish a network +installation. Imagine you have a common source tree for two different +architectures. You decide to do a completely independent fresh +installation. You start on one architecture with the help of a Bundle +file produced earlier. CPAN installs the whole Bundle for you, but +when you try to repeat the job on the second architecture, CPAN +responds with a C<"Foo up to date"> message for all modules. So you +invoke CPAN's recompile on the second architecture and you're done. + +Another popular use for C is to act as a rescue in case your +perl breaks binary compatibility. If one of the modules that CPAN uses +is in turn depending on binary compatibility (so you cannot run CPAN +commands), then you should try the CPAN::Nox module for recovery. + +=head2 report Bundle|Distribution|Module + +The C command temporarily turns on the C config +variable, then runs the C command with the given +arguments. The C pragma reruns the tests and repeats +every step that might have failed before. + +=head2 smoke ***EXPERIMENTAL COMMAND*** + +B<*** WARNING: this command downloads and executes software from CPAN to +your computer of completely unknown status. You should never do +this with your normal account and better have a dedicated well +separated and secured machine to do this. ***> + +The C command takes the list of recent uploads to CPAN as +provided by the C command and tests them all. While the +command is running $SIG{INT} is defined to mean that the current item +shall be skipped. + +B: This whole command currently is just a hack and will +probably change in future versions of CPAN.pm, but the general +approach will likely remain. + +B: See also L + +=head2 upgrade [Module|/Regexp/]... + +The C command first runs an C command with the given +arguments and then installs the newest versions of all modules that +were listed by that. + +=head2 The four C Classes: Author, Bundle, Module, Distribution + +Although it may be considered internal, the class hierarchy does matter +for both users and programmer. CPAN.pm deals with the four +classes mentioned above, and those classes all share a set of methods. Classical +single polymorphism is in effect. A metaclass object registers all +objects of all kinds and indexes them with a string. The strings +referencing objects have a separated namespace (well, not completely +separated): + + Namespace Class + + words containing a "/" (slash) Distribution + words starting with Bundle:: Bundle + everything else Module or Author + +Modules know their associated Distribution objects. They always refer +to the most recent official release. Developers may mark their releases +as unstable development versions (by inserting an underscore into the +module version number which will also be reflected in the distribution +name when you run 'make dist'), so the really hottest and newest +distribution is not always the default. If a module Foo circulates +on CPAN in both version 1.23 and 1.23_90, CPAN.pm offers a convenient +way to install version 1.23 by saying + + install Foo + +This would install the complete distribution file (say +BAR/Foo-1.23.tar.gz) with all accompanying material. But if you would +like to install version 1.23_90, you need to know where the +distribution file resides on CPAN relative to the authors/id/ +directory. If the author is BAR, this might be BAR/Foo-1.23_90.tar.gz; +so you would have to say + + install BAR/Foo-1.23_90.tar.gz + +The first example will be driven by an object of the class +CPAN::Module, the second by an object of class CPAN::Distribution. + +=head2 Integrating local directories + +Note: this feature is still in alpha state and may change in future +versions of CPAN.pm + +Distribution objects are normally distributions from the CPAN, but +there is a slightly degenerate case for Distribution objects, too, of +projects held on the local disk. These distribution objects have the +same name as the local directory and end with a dot. A dot by itself +is also allowed for the current directory at the time CPAN.pm was +used. All actions such as C, C, and C are applied +directly to that directory. This gives the command C an +interesting touch: while the normal mantra of installing a CPAN module +without CPAN.pm is one of + + perl Makefile.PL perl Build.PL + ( go and get prerequisites ) + make ./Build + make test ./Build test + make install ./Build install + +the command C does all of this at once. It figures out which +of the two mantras is appropriate, fetches and installs all +prerequisites, takes care of them recursively, and finally finishes the +installation of the module in the current directory, be it a CPAN +module or not. + +The typical usage case is for private modules or working copies of +projects from remote repositories on the local disk. + +=head2 Redirection + +The usual shell redirection symbols C< | > and C<< > >> are recognized +by the cpan shell B. So piping to +pager or redirecting output into a file works somewhat as in a normal +shell, with the stipulation that you must type extra spaces. + +=head2 Plugin support ***EXPERIMENTAL*** + +Plugins are objects that implement any of currently eight methods: + + pre_get + post_get + pre_make + post_make + pre_test + post_test + pre_install + post_install + +The C configuration parameter holds a list of strings of +the form + + Modulename=arg0,arg1,arg2,arg3,... + +eg: + + CPAN::Plugin::Flurb=dir,/opt/pkgs/flurb/raw,verbose,1 + +At run time, each listed plugin is instantiated as a singleton object +by running the equivalent of this pseudo code: + + my $plugin = ; + ; + my $p = $instance{$plugin} ||= Modulename->new($arg0,$arg1,...); + +The generated singletons are kept around from instantiation until the +end of the shell session. can be reconfigured at any +time at run time. While the cpan shell is running, it checks all +activated plugins at each of the 8 reference points listed above and +runs the respective method if it is implemented for that object. The +method is called with the active CPAN::Distribution object passed in +as an argument. + +=head1 CONFIGURATION + +When the CPAN module is used for the first time, a configuration +dialogue tries to determine a couple of site specific options. The +result of the dialog is stored in a hash reference C< $CPAN::Config > +in a file CPAN/Config.pm. + +Default values defined in the CPAN/Config.pm file can be +overridden in a user specific file: CPAN/MyConfig.pm. Such a file is +best placed in C<$HOME/.cpan/CPAN/MyConfig.pm>, because C<$HOME/.cpan> is +added to the search path of the CPAN module before the use() or +require() statements. The mkmyconfig command writes this file for you. + +If you want to keep your own CPAN/MyConfig.pm somewhere else, you +should load it before loading CPAN.pm, e.g.: + + perl -I/tmp/somewhere -MCPAN::MyConfig -MCPAN -eshell + + --or-- + + perl -I/tmp/somewhere -MCPAN::MyConfig -S cpan + +Once you are in the shell you can change your configuration as follows. + +The C command has various bells and whistles: + +=over + +=item completion support + +If you have a ReadLine module installed, you can hit TAB at any point +of the commandline and C will offer you completion for the +built-in subcommands and/or config variable names. + +=item displaying some help: o conf help + +Displays a short help + +=item displaying current values: o conf [KEY] + +Displays the current value(s) for this config variable. Without KEY, +displays all subcommands and config variables. + +Example: + + o conf shell + +If KEY starts and ends with a slash, the string in between is +treated as a regular expression and only keys matching this regexp +are displayed + +Example: + + o conf /color/ + +=item changing of scalar values: o conf KEY VALUE + +Sets the config variable KEY to VALUE. The empty string can be +specified as usual in shells, with C<''> or C<""> + +Example: + + o conf wget /usr/bin/wget + +=item changing of list values: o conf KEY SHIFT|UNSHIFT|PUSH|POP|SPLICE|LIST + +If a config variable name ends with C, it is a list. C removes the first element of the list, C +removes the last element of the list. C +prepends a list of values to the list, C +appends a list of valued to the list. + +Likewise, C passes the LIST to the corresponding +splice command. + +Finally, any other list of arguments is taken as a new list value for +the KEY variable discarding the previous value. + +Examples: + + o conf urllist unshift http://cpan.dev.local/CPAN + o conf urllist splice 3 1 + o conf urllist http://cpan1.local http://cpan2.local ftp://ftp.perl.org + +=item reverting to saved: o conf defaults + +Reverts all config variables to the state in the saved config file. + +=item saving the config: o conf commit + +Saves all config variables to the current config file (CPAN/Config.pm +or CPAN/MyConfig.pm that was loaded at start). + +=back + +The configuration dialog can be started any time later again by +issuing the command C< o conf init > in the CPAN shell. A subset of +the configuration dialog can be run by issuing C +where WORD is any valid config variable or a regular expression. + +=head2 Config Variables + +The following keys in the hash reference $CPAN::Config are +currently defined: + + allow_installing_module_downgrades + allow or disallow installing module downgrades + allow_installing_outdated_dists + allow or disallow installing modules that are + indexed in the cpan index pointing to a distro + with a higher distro-version number + applypatch path to external prg + auto_commit commit all changes to config variables to disk + build_cache size of cache for directories to build modules + build_dir locally accessible directory to build modules + build_dir_reuse boolean if distros in build_dir are persistent + build_requires_install_policy + to install or not to install when a module is + only needed for building. yes|no|ask/yes|ask/no + bzip2 path to external prg + cache_metadata use serializer to cache metadata + check_sigs if signatures should be verified + cleanup_after_install + remove build directory immediately after a + successful install and remember that for the + duration of the session + colorize_debug Term::ANSIColor attributes for debugging output + colorize_output boolean if Term::ANSIColor should colorize output + colorize_print Term::ANSIColor attributes for normal output + colorize_warn Term::ANSIColor attributes for warnings + commandnumber_in_prompt + boolean if you want to see current command number + commands_quote preferred character to use for quoting external + commands when running them. Defaults to double + quote on Windows, single tick everywhere else; + can be set to space to disable quoting + connect_to_internet_ok + whether to ask if opening a connection is ok before + urllist is specified + cpan_home local directory reserved for this package + curl path to external prg + dontload_hash DEPRECATED + dontload_list arrayref: modules in the list will not be + loaded by the CPAN::has_inst() routine + ftp path to external prg + ftp_passive if set, the environment variable FTP_PASSIVE is set + for downloads + ftp_proxy proxy host for ftp requests + ftpstats_period max number of days to keep download statistics + ftpstats_size max number of items to keep in the download statistics + getcwd see below + gpg path to external prg + gzip location of external program gzip + halt_on_failure stop processing after the first failure of queued + items or dependencies + histfile file to maintain history between sessions + histsize maximum number of lines to keep in histfile + http_proxy proxy host for http requests + inactivity_timeout breaks interactive Makefile.PLs or Build.PLs + after this many seconds inactivity. Set to 0 to + disable timeouts. + index_expire refetch index files after this many days + inhibit_startup_message + if true, suppress the startup message + keep_source_where directory in which to keep the source (if we do) + load_module_verbosity + report loading of optional modules used by CPAN.pm + lynx path to external prg + make location of external make program + make_arg arguments that should always be passed to 'make' + make_install_make_command + the make command for running 'make install', for + example 'sudo make' + make_install_arg same as make_arg for 'make install' + makepl_arg arguments passed to 'perl Makefile.PL' + mbuild_arg arguments passed to './Build' + mbuild_install_arg arguments passed to './Build install' + mbuild_install_build_command + command to use instead of './Build' when we are + in the install stage, for example 'sudo ./Build' + mbuildpl_arg arguments passed to 'perl Build.PL' + ncftp path to external prg + ncftpget path to external prg + no_proxy don't proxy to these hosts/domains (comma separated list) + pager location of external program more (or any pager) + password your password if you CPAN server wants one + patch path to external prg + patches_dir local directory containing patch files + perl5lib_verbosity verbosity level for PERL5LIB additions + plugin_list list of active hooks (see Plugin support above + and the CPAN::Plugin module) + prefer_external_tar + per default all untar operations are done with + Archive::Tar; by setting this variable to true + the external tar command is used if available + prefer_installer legal values are MB and EUMM: if a module comes + with both a Makefile.PL and a Build.PL, use the + former (EUMM) or the latter (MB); if the module + comes with only one of the two, that one will be + used no matter the setting + prerequisites_policy + what to do if you are missing module prerequisites + ('follow' automatically, 'ask' me, or 'ignore') + For 'follow', also sets PERL_AUTOINSTALL and + PERL_EXTUTILS_AUTOINSTALL for "--defaultdeps" if + not already set + prefs_dir local directory to store per-distro build options + proxy_user username for accessing an authenticating proxy + proxy_pass password for accessing an authenticating proxy + pushy_https use https to cpan.org when possible, otherwise use http + to cpan.org and issue a warning + randomize_urllist add some randomness to the sequence of the urllist + recommends_policy whether recommended prerequisites should be included + scan_cache controls scanning of cache ('atstart', 'atexit' or 'never') + shell your favorite shell + show_unparsable_versions + boolean if r command tells which modules are versionless + show_upload_date boolean if commands should try to determine upload date + show_zero_versions boolean if r command tells for which modules $version==0 + suggests_policy whether suggested prerequisites should be included + tar location of external program tar + tar_verbosity verbosity level for the tar command + term_is_latin deprecated: if true Unicode is translated to ISO-8859-1 + (and nonsense for characters outside latin range) + term_ornaments boolean to turn ReadLine ornamenting on/off + test_report email test reports (if CPAN::Reporter is installed) + trust_test_report_history + skip testing when previously tested ok (according to + CPAN::Reporter history) + unzip location of external program unzip + urllist arrayref to nearby CPAN sites (or equivalent locations) + urllist_ping_external + use external ping command when autoselecting mirrors + urllist_ping_verbose + increase verbosity when autoselecting mirrors + use_prompt_default set PERL_MM_USE_DEFAULT for configure/make/test/install + use_sqlite use CPAN::SQLite for metadata storage (fast and lean) + username your username if you CPAN server wants one + version_timeout stops version parsing after this many seconds. + Default is 15 secs. Set to 0 to disable. + wait_list arrayref to a wait server to try (See CPAN::WAIT) + wget path to external prg + yaml_load_code enable YAML code deserialisation via CPAN::DeferredCode + yaml_module which module to use to read/write YAML files + +You can set and query each of these options interactively in the cpan +shell with the C or the C command as specified below. + +=over 2 + +=item Cscalar optionE> + +prints the current value of the I + +=item Cscalar optionE EvalueE> + +Sets the value of the I to I + +=item Clist optionE> + +prints the current value of the I in MakeMaker's +neatvalue format. + +=item Clist optionE [shift|pop]> + +shifts or pops the array in the I variable + +=item Clist optionE [unshift|push|splice] ElistE> + +works like the corresponding perl commands. + +=item interactive editing: o conf init [MATCH|LIST] + +Runs an interactive configuration dialog for matching variables. +Without argument runs the dialog over all supported config variables. +To specify a MATCH the argument must be enclosed by slashes. + +Examples: + + o conf init ftp_passive ftp_proxy + o conf init /color/ + +Note: this method of setting config variables often provides more +explanation about the functioning of a variable than the manpage. + +=back + +=head2 CPAN::anycwd($path): Note on config variable getcwd + +CPAN.pm changes the current working directory often and needs to +determine its own current working directory. By default it uses +Cwd::cwd, but if for some reason this doesn't work on your system, +configure alternatives according to the following table: + +=over 4 + +=item cwd + +Calls Cwd::cwd + +=item getcwd + +Calls Cwd::getcwd + +=item fastcwd + +Calls Cwd::fastcwd + +=item getdcwd + +Calls Cwd::getdcwd + +=item backtickcwd + +Calls the external command cwd. + +=back + +=head2 Note on the format of the urllist parameter + +urllist parameters are URLs according to RFC 1738. We do a little +guessing if your URL is not compliant, but if you have problems with +C URLs, please try the correct format. Either: + + file://localhost/whatever/ftp/pub/CPAN/ + +or + + file:///home/ftp/pub/CPAN/ + +=head2 The urllist parameter has CD-ROM support + +The C parameter of the configuration table contains a list of +URLs used for downloading. If the list contains any +C URLs, CPAN always tries there first. This +feature is disabled for index files. So the recommendation for the +owner of a CD-ROM with CPAN contents is: include your local, possibly +outdated CD-ROM as a C URL at the end of urllist, e.g. + + o conf urllist push file://localhost/CDROM/CPAN + +CPAN.pm will then fetch the index files from one of the CPAN sites +that come at the beginning of urllist. It will later check for each +module to see whether there is a local copy of the most recent version. + +Another peculiarity of urllist is that the site that we could +successfully fetch the last file from automatically gets a preference +token and is tried as the first site for the next request. So if you +add a new site at runtime it may happen that the previously preferred +site will be tried another time. This means that if you want to disallow +a site for the next transfer, it must be explicitly removed from +urllist. + +=head2 Maintaining the urllist parameter + +If you have YAML.pm (or some other YAML module configured in +C) installed, CPAN.pm collects a few statistical data +about recent downloads. You can view the statistics with the C +command or inspect them directly by looking into the C +file in your C directory. + +To get some interesting statistics, it is recommended that +C be set; this introduces some amount of +randomness into the URL selection. + +=head2 The C and C dependency declarations + +Since CPAN.pm version 1.88_51 modules declared as C by +a distribution are treated differently depending on the config +variable C. By setting +C to C, such a module is not +installed. It is only built and tested, and then kept in the list of +tested but uninstalled modules. As such, it is available during the +build of the dependent module by integrating the path to the +C and C directories in the environment variable +PERL5LIB. If C is set to C, then +both modules declared as C and those declared as +C are treated alike. By setting to C or +C, CPAN.pm asks the user and sets the default accordingly. + +=head2 Configuration of the allow_installing_* parameters + +The C parameters are evaluated during +the C phase. If set to C, they allow the testing and the installation of +the current distro and otherwise have no effect. If set to C, they +may abort the build (preventing testing and installing), depending on the contents of the +C directory. The C directory is the directory that holds +all the files that would usually be installed in the C phase. + +C compares the C directory with the CPAN index. +If it finds something there that belongs, according to the index, to a different +dist, it aborts the current build. + +C compares the C directory +with already installed modules, actually their version numbers, as +determined by ExtUtils::MakeMaker or equivalent. If a to-be-installed +module would downgrade an already installed module, the current build +is aborted. + +An interesting twist occurs when a distroprefs document demands the +installation of an outdated dist via goto while +C forbids it. Without additional +provisions, this would let the C +win and the distroprefs lose. So the proper arrangement in such a case +is to write a second distroprefs document for the distro that C +points to and overrule the C there. E.g.: + + --- + match: + distribution: "^MAUKE/Keyword-Simple-0.04.tar.gz" + goto: "MAUKE/Keyword-Simple-0.03.tar.gz" + --- + match: + distribution: "^MAUKE/Keyword-Simple-0.03.tar.gz" + cpanconfig: + allow_installing_outdated_dists: yes + +=head2 Configuration for individual distributions (I) + +(B This feature has been introduced in CPAN.pm 1.8854) + +Distributions on CPAN usually behave according to what we call the +CPAN mantra. Or since the advent of Module::Build we should talk about +two mantras: + + perl Makefile.PL perl Build.PL + make ./Build + make test ./Build test + make install ./Build install + +But some modules cannot be built with this mantra. They try to get +some extra data from the user via the environment, extra arguments, or +interactively--thus disturbing the installation of large bundles like +Phalanx100 or modules with many dependencies like Plagger. + +The distroprefs system of C addresses this problem by +allowing the user to specify extra informations and recipes in YAML +files to either + +=over + +=item + +pass additional arguments to one of the four commands, + +=item + +set environment variables + +=item + +instantiate an Expect object that reads from the console, waits for +some regular expressions and enters some answers + +=item + +temporarily override assorted C configuration variables + +=item + +specify dependencies the original maintainer forgot + +=item + +disable the installation of an object altogether + +=back + +See the YAML and Data::Dumper files that come with the C +distribution in the C directory for examples. + +=head2 Filenames + +The YAML files themselves must have the C<.yml> extension; all other +files are ignored (for two exceptions see I below). The containing directory can be specified in +C in the C config variable. Try C in the CPAN shell to set and activate the distroprefs +system. + +Every YAML file may contain arbitrary documents according to the YAML +specification, and every document is treated as an entity that +can specify the treatment of a single distribution. + +Filenames can be picked arbitrarily; C always reads +all files (in alphabetical order) and takes the key C (see +below in I) as a hashref containing match criteria +that determine if the current distribution matches the YAML document +or not. + +=head2 Fallback Data::Dumper and Storable + +If neither your configured C nor YAML.pm is installed, +CPAN.pm falls back to using Data::Dumper and Storable and looks for +files with the extensions C<.dd> or C<.st> in the C +directory. These files are expected to contain one or more hashrefs. +For Data::Dumper generated files, this is expected to be done with by +defining C<$VAR1>, C<$VAR2>, etc. The YAML shell would produce these +with the command + + ysh < somefile.yml > somefile.dd + +For Storable files the rule is that they must be constructed such that +C returns an array reference and the array +elements represent one distropref object each. The conversion from +YAML would look like so: + + perl -MYAML=LoadFile -MStorable=nstore -e ' + @y=LoadFile(shift); + nstore(\@y, shift)' somefile.yml somefile.st + +In bootstrapping situations it is usually sufficient to translate only +a few YAML files to Data::Dumper for crucial modules like +C, C and C. If you prefer Storable +over Data::Dumper, remember to pull out a Storable version that writes +an older format than all the other Storable versions that will need to +read them. + +=head2 Blueprint + +The following example contains all supported keywords and structures +with the exception of C which can be used instead of +C. + + --- + comment: "Demo" + match: + module: "Dancing::Queen" + distribution: "^CHACHACHA/Dancing-" + not_distribution: "\.zip$" + perl: "/usr/local/cariba-perl/bin/perl" + perlconfig: + archname: "freebsd" + not_cc: "gcc" + env: + DANCING_FLOOR: "Shubiduh" + disabled: 1 + cpanconfig: + make: gmake + pl: + args: + - "--somearg=specialcase" + + env: {} + + expect: + - "Which is your favorite fruit" + - "apple\n" + + make: + args: + - all + - extra-all + + env: {} + + expect: [] + + commandline: "echo SKIPPING make" + + test: + args: [] + + env: {} + + expect: [] + + install: + args: [] + + env: + WANT_TO_INSTALL: YES + + expect: + - "Do you really want to install" + - "y\n" + + patches: + - "ABCDE/Fedcba-3.14-ABCDE-01.patch" + + depends: + configure_requires: + LWP: 5.8 + build_requires: + Test::Exception: 0.25 + requires: + Spiffy: 0.30 + + +=head2 Language Specs + +Every YAML document represents a single hash reference. The valid keys +in this hash are as follows: + +=over + +=item comment [scalar] + +A comment + +=item cpanconfig [hash] + +Temporarily override assorted C configuration variables. + +Supported are: C, C, +C, C, C, +C. Please report as a bug when you need another one +supported. + +=item depends [hash] *** EXPERIMENTAL FEATURE *** + +All three types, namely C, C, and +C are supported in the way specified in the META.yml +specification. The current implementation I the specified +dependencies with those declared by the package maintainer. In a +future implementation this may be changed to override the original +declaration. + +=item disabled [boolean] + +Specifies that this distribution shall not be processed at all. + +=item features [array] *** EXPERIMENTAL FEATURE *** + +Experimental implementation to deal with optional_features from +META.yml. Still needs coordination with installer software and +currently works only for META.yml declaring C. Use +with caution. + +=item goto [string] + +The canonical name of a delegate distribution to install +instead. Useful when a new version, although it tests OK itself, +breaks something else or a developer release or a fork is already +uploaded that is better than the last released version. + +=item install [hash] + +Processing instructions for the C or C<./Build install> +phase of the CPAN mantra. See below under I. + +=item make [hash] + +Processing instructions for the C or C<./Build> phase of the +CPAN mantra. See below under I. + +=item match [hash] + +A hashref with one or more of the keys C, C, +C, C, and C that specify whether a document is +targeted at a specific CPAN distribution or installation. +Keys prefixed with C negates the corresponding match. + +The corresponding values are interpreted as regular expressions. The +C related one will be matched against the canonical +distribution name, e.g. "AUTHOR/Foo-Bar-3.14.tar.gz". + +The C related one will be matched against I modules +contained in the distribution until one module matches. + +The C related one will be matched against C<$^X> (but with the +absolute path). + +The value associated with C is itself a hashref that is +matched against corresponding values in the C<%Config::Config> hash +living in the C module. +Keys prefixed with C negates the corresponding match. + +The value associated with C is itself a hashref that is +matched against corresponding values in the C<%ENV> hash. +Keys prefixed with C negates the corresponding match. + +If more than one restriction of C, C, etc. is +specified, the results of the separately computed match values must +all match. If so, the hashref represented by the +YAML document is returned as the preference structure for the current +distribution. + +=item patches [array] + +An array of patches on CPAN or on the local disk to be applied in +order via an external patch program. If the value for the C<-p> +parameter is C<0> or C<1> is determined by reading the patch +beforehand. The path to each patch is either an absolute path on the +local filesystem or relative to a patch directory specified in the +C configuration variable or in the format of a canonical +distro name. For examples please consult the distroprefs/ directory in +the CPAN.pm distribution (these examples are not installed by +default). + +Note: if the C program is installed and C +knows about it B a patch is written by the C program, +then C lets C apply the patch. Both C +and C are available from CPAN in the C +distribution. + +=item pl [hash] + +Processing instructions for the C or C phase of the CPAN mantra. See below under I. + +=item test [hash] + +Processing instructions for the C or C<./Build test> phase +of the CPAN mantra. See below under I. + +=back + +=head2 Processing Instructions + +=over + +=item args [array] + +Arguments to be added to the command line + +=item commandline + +A full commandline to run via C. +During execution, the environment variable PERL is set +to $^X (but with an absolute path). If C is specified, +C is not used. + +=item eexpect [hash] + +Extended C. This is a hash reference with four allowed keys, +C, C, C, and C. + +You must install the C module to use C. CPAN.pm +does not install it for you. + +C may have the values C for the case where all +questions come in the order written down and C for the case +where the questions may come in any order. The default mode is +C. + +C denotes a timeout in seconds. Floating-point timeouts are +OK. With C, the timeout denotes the +timeout per question; with C it denotes the +timeout per byte received from the stream or questions. + +C is a reference to an array that contains alternating questions +and answers. Questions are regular expressions and answers are literal +strings. The Expect module watches the stream from the +execution of the external program (C, C, C, etc.). + +For C, the CPAN.pm injects the +corresponding answer as soon as the stream matches the regular expression. + +For C CPAN.pm answers a question as soon +as the timeout is reached for the next byte in the input stream. In +this mode you can use the C parameter to decide what will +happen with a question-answer pair after it has been used. In the +default case (reuse=0) it is removed from the array, avoiding being +used again accidentally. If you want to answer the +question C several times, then it must +be included in the array at least as often as you want this answer to +be given. Setting the parameter C to 1 makes this repetition +unnecessary. + +=item env [hash] + +Environment variables to be set during the command + +=item expect [array] + +You must install the C module to use C. CPAN.pm +does not install it for you. + +C<< expect: >> is a short notation for this C: + + eexpect: + mode: deterministic + timeout: 15 + talk: + +=back + +=head2 Schema verification with C + +If you have the C module installed (which is part of the +Bundle::CPANxxl), then all your distroprefs files are checked for +syntactic correctness. + +=head2 Example Distroprefs Files + +C comes with a collection of example YAML files. Note that these +are really just examples and should not be used without care because +they cannot fit everybody's purpose. After all, the authors of the +packages that ask questions had a need to ask, so you should watch +their questions and adjust the examples to your environment and your +needs. You have been warned:-) + +=head1 PROGRAMMER'S INTERFACE + +If you do not enter the shell, shell commands are +available both as methods (Cinstall(...)>) and as +functions in the calling package (C). Before calling low-level +commands, it makes sense to initialize components of CPAN you need, e.g.: + + CPAN::HandleConfig->load; + CPAN::Shell::setup_output; + CPAN::Index->reload; + +High-level commands do such initializations automatically. + +There's currently only one class that has a stable interface - +CPAN::Shell. All commands that are available in the CPAN shell are +methods of the class CPAN::Shell. The arguments on the commandline are +passed as arguments to the method. + +So if you take for example the shell command + + notest install A B C + +the actually executed command is + + CPAN::Shell->notest("install","A","B","C"); + +Each of the commands that produce listings of modules (C, +C, C) also return a list of the IDs of all modules +within the list. + +=over 2 + +=item expand($type,@things) + +The IDs of all objects available within a program are strings that can +be expanded to the corresponding real objects with the +Cexpand("Module",@things)> method. Expand returns a +list of CPAN::Module objects according to the C<@things> arguments +given. In scalar context, it returns only the first element of the +list. + +=item expandany(@things) + +Like expand, but returns objects of the appropriate type, i.e. +CPAN::Bundle objects for bundles, CPAN::Module objects for modules, and +CPAN::Distribution objects for distributions. Note: it does not expand +to CPAN::Author objects. + +=item Programming Examples + +This enables the programmer to do operations that combine +functionalities that are available in the shell. + + # install everything that is outdated on my disk: + perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)' + + # install my favorite programs if necessary: + for $mod (qw(Net::FTP Digest::SHA Data::Dumper)) { + CPAN::Shell->install($mod); + } + + # list all modules on my disk that have no VERSION number + for $mod (CPAN::Shell->expand("Module","/./")) { + next unless $mod->inst_file; + # MakeMaker convention for undefined $VERSION: + next unless $mod->inst_version eq "undef"; + print "No VERSION in ", $mod->id, "\n"; + } + + # find out which distribution on CPAN contains a module: + print CPAN::Shell->expand("Module","Apache::Constants")->cpan_file + +Or if you want to schedule a I job to watch CPAN, you could list +all modules that need updating. First a quick and dirty way: + + perl -e 'use CPAN; CPAN::Shell->r;' + +If you don't want any output should all modules be +up to date, parse the output of above command for the regular +expression C and decide to mail the output +only if it doesn't match. + +If you prefer to do it more in a programmerish style in one single +process, something like this may better suit you: + + # list all modules on my disk that have newer versions on CPAN + for $mod (CPAN::Shell->expand("Module","/./")) { + next unless $mod->inst_file; + next if $mod->uptodate; + printf "Module %s is installed as %s, could be updated to %s from CPAN\n", + $mod->id, $mod->inst_version, $mod->cpan_version; + } + +If that gives too much output every day, you may want to +watch only for three modules. You can write + + for $mod (CPAN::Shell->expand("Module","/Apache|LWP|CGI/")) { + +as the first line instead. Or you can combine some of the above +tricks: + + # watch only for a new mod_perl module + $mod = CPAN::Shell->expand("Module","mod_perl"); + exit if $mod->uptodate; + # new mod_perl arrived, let me know all update recommendations + CPAN::Shell->r; + +=back + +=head2 Methods in the other Classes + +=over 4 + +=item CPAN::Author::as_glimpse() + +Returns a one-line description of the author + +=item CPAN::Author::as_string() + +Returns a multi-line description of the author + +=item CPAN::Author::email() + +Returns the author's email address + +=item CPAN::Author::fullname() + +Returns the author's name + +=item CPAN::Author::name() + +An alias for fullname + +=item CPAN::Bundle::as_glimpse() + +Returns a one-line description of the bundle + +=item CPAN::Bundle::as_string() + +Returns a multi-line description of the bundle + +=item CPAN::Bundle::clean() + +Recursively runs the C method on all items contained in the bundle. + +=item CPAN::Bundle::contains() + +Returns a list of objects' IDs contained in a bundle. The associated +objects may be bundles, modules or distributions. + +=item CPAN::Bundle::force($method,@args) + +Forces CPAN to perform a task that it normally would have refused to +do. Force takes as arguments a method name to be called and any number +of additional arguments that should be passed to the called method. +The internals of the object get the needed changes so that CPAN.pm +does not refuse to take the action. The C is passed recursively +to all contained objects. See also the section above on the C +and the C pragma. + +=item CPAN::Bundle::get() + +Recursively runs the C method on all items contained in the bundle + +=item CPAN::Bundle::inst_file() + +Returns the highest installed version of the bundle in either @INC or +C<< $CPAN::Config->{cpan_home} >>. Note that this is different from +CPAN::Module::inst_file. + +=item CPAN::Bundle::inst_version() + +Like CPAN::Bundle::inst_file, but returns the $VERSION + +=item CPAN::Bundle::uptodate() + +Returns 1 if the bundle itself and all its members are up-to-date. + +=item CPAN::Bundle::install() + +Recursively runs the C method on all items contained in the bundle + +=item CPAN::Bundle::make() + +Recursively runs the C method on all items contained in the bundle + +=item CPAN::Bundle::readme() + +Recursively runs the C method on all items contained in the bundle + +=item CPAN::Bundle::test() + +Recursively runs the C method on all items contained in the bundle + +=item CPAN::Distribution::as_glimpse() + +Returns a one-line description of the distribution + +=item CPAN::Distribution::as_string() + +Returns a multi-line description of the distribution + +=item CPAN::Distribution::author + +Returns the CPAN::Author object of the maintainer who uploaded this +distribution + +=item CPAN::Distribution::pretty_id() + +Returns a string of the form "AUTHORID/TARBALL", where AUTHORID is the +author's PAUSE ID and TARBALL is the distribution filename. + +=item CPAN::Distribution::base_id() + +Returns the distribution filename without any archive suffix. E.g +"Foo-Bar-0.01" + +=item CPAN::Distribution::clean() + +Changes to the directory where the distribution has been unpacked and +runs C there. + +=item CPAN::Distribution::containsmods() + +Returns a list of IDs of modules contained in a distribution file. +Works only for distributions listed in the 02packages.details.txt.gz +file. This typically means that just most recent version of a +distribution is covered. + +=item CPAN::Distribution::cvs_import() + +Changes to the directory where the distribution has been unpacked and +runs something like + + cvs -d $cvs_root import -m $cvs_log $cvs_dir $userid v$version + +there. + +=item CPAN::Distribution::dir() + +Returns the directory into which this distribution has been unpacked. + +=item CPAN::Distribution::force($method,@args) + +Forces CPAN to perform a task that it normally would have refused to +do. Force takes as arguments a method name to be called and any number +of additional arguments that should be passed to the called method. +The internals of the object get the needed changes so that CPAN.pm +does not refuse to take the action. See also the section above on the +C and the C pragma. + +=item CPAN::Distribution::get() + +Downloads the distribution from CPAN and unpacks it. Does nothing if +the distribution has already been downloaded and unpacked within the +current session. + +=item CPAN::Distribution::install() + +Changes to the directory where the distribution has been unpacked and +runs the external command C there. If C has not +yet been run, it will be run first. A C is issued in +any case and if this fails, the install is cancelled. The +cancellation can be avoided by letting C run the C for +you. + +This install method only has the power to install the distribution if +there are no dependencies in the way. To install an object along with all +its dependencies, use CPAN::Shell->install. + +Note that install() gives no meaningful return value. See uptodate(). + +=item CPAN::Distribution::isa_perl() + +Returns 1 if this distribution file seems to be a perl distribution. +Normally this is derived from the file name only, but the index from +CPAN can contain a hint to achieve a return value of true for other +filenames too. + +=item CPAN::Distribution::look() + +Changes to the directory where the distribution has been unpacked and +opens a subshell there. Exiting the subshell returns. + +=item CPAN::Distribution::make() + +First runs the C method to make sure the distribution is +downloaded and unpacked. Changes to the directory where the +distribution has been unpacked and runs the external commands C or C and C there. + +=item CPAN::Distribution::perldoc() + +Downloads the pod documentation of the file associated with a +distribution (in HTML format) and runs it through the external +command I specified in C<< $CPAN::Config->{lynx} >>. If I +isn't available, it converts it to plain text with the external +command I and runs it through the pager specified +in C<< $CPAN::Config->{pager} >>. + +=item CPAN::Distribution::prefs() + +Returns the hash reference from the first matching YAML file that the +user has deposited in the C directory. The first +succeeding match wins. The files in the C are processed +alphabetically, and the canonical distro name (e.g. +AUTHOR/Foo-Bar-3.14.tar.gz) is matched against the regular expressions +stored in the $root->{match}{distribution} attribute value. +Additionally all module names contained in a distribution are matched +against the regular expressions in the $root->{match}{module} attribute +value. The two match values are ANDed together. Each of the two +attributes are optional. + +=item CPAN::Distribution::prereq_pm() + +Returns the hash reference that has been announced by a distribution +as the C and C elements. These can be +declared either by the C (if authoritative) or can be +deposited after the run of C in the file C<./_build/prereqs> +or after the run of C written as the C hash in +a comment in the produced C. I: this method only works +after an attempt has been made to C the distribution. Returns +undef otherwise. + +=item CPAN::Distribution::readme() + +Downloads the README file associated with a distribution and runs it +through the pager specified in C<< $CPAN::Config->{pager} >>. + +=item CPAN::Distribution::reports() + +Downloads report data for this distribution from www.cpantesters.org +and displays a subset of them. + +=item CPAN::Distribution::read_yaml() + +Returns the content of the META.yml of this distro as a hashref. Note: +works only after an attempt has been made to C the distribution. +Returns undef otherwise. Also returns undef if the content of META.yml +is not authoritative. (The rules about what exactly makes the content +authoritative are still in flux.) + +=item CPAN::Distribution::test() + +Changes to the directory where the distribution has been unpacked and +runs C there. + +=item CPAN::Distribution::uptodate() + +Returns 1 if all the modules contained in the distribution are +up-to-date. Relies on containsmods. + +=item CPAN::Index::force_reload() + +Forces a reload of all indices. + +=item CPAN::Index::reload() + +Reloads all indices if they have not been read for more than +C<< $CPAN::Config->{index_expire} >> days. + +=item CPAN::InfoObj::dump() + +CPAN::Author, CPAN::Bundle, CPAN::Module, and CPAN::Distribution +inherit this method. It prints the data structure associated with an +object. Useful for debugging. Note: the data structure is considered +internal and thus subject to change without notice. + +=item CPAN::Module::as_glimpse() + +Returns a one-line description of the module in four columns: The +first column contains the word C, the second column consists +of one character: an equals sign if this module is already installed +and up-to-date, a less-than sign if this module is installed but can be +upgraded, and a space if the module is not installed. The third column +is the name of the module and the fourth column gives maintainer or +distribution information. + +=item CPAN::Module::as_string() + +Returns a multi-line description of the module + +=item CPAN::Module::clean() + +Runs a clean on the distribution associated with this module. + +=item CPAN::Module::cpan_file() + +Returns the filename on CPAN that is associated with the module. + +=item CPAN::Module::cpan_version() + +Returns the latest version of this module available on CPAN. + +=item CPAN::Module::cvs_import() + +Runs a cvs_import on the distribution associated with this module. + +=item CPAN::Module::description() + +Returns a 44 character description of this module. Only available for +modules listed in The Module List (CPAN/modules/00modlist.long.html +or 00modlist.long.txt.gz) + +=item CPAN::Module::distribution() + +Returns the CPAN::Distribution object that contains the current +version of this module. + +=item CPAN::Module::dslip_status() + +Returns a hash reference. The keys of the hash are the letters C, +C, C, C, and

, for development status, support level, +language, interface and public licence respectively. The data for the +DSLIP status are collected by pause.perl.org when authors register +their namespaces. The values of the 5 hash elements are one-character +words whose meaning is described in the table below. There are also 5 +hash elements C, C, C, C, and that carry a more +verbose value of the 5 status variables. + +Where the 'DSLIP' characters have the following meanings: + + D - Development Stage (Note: *NO IMPLIED TIMESCALES*): + i - Idea, listed to gain consensus or as a placeholder + c - under construction but pre-alpha (not yet released) + a/b - Alpha/Beta testing + R - Released + M - Mature (no rigorous definition) + S - Standard, supplied with Perl 5 + + S - Support Level: + m - Mailing-list + d - Developer + u - Usenet newsgroup comp.lang.perl.modules + n - None known, try comp.lang.perl.modules + a - abandoned; volunteers welcome to take over maintenance + + L - Language Used: + p - Perl-only, no compiler needed, should be platform independent + c - C and perl, a C compiler will be needed + h - Hybrid, written in perl with optional C code, no compiler needed + + - C++ and perl, a C++ compiler will be needed + o - perl and another language other than C or C++ + + I - Interface Style + f - plain Functions, no references used + h - hybrid, object and function interfaces available + n - no interface at all (huh?) + r - some use of unblessed References or ties + O - Object oriented using blessed references and/or inheritance + + P - Public License + p - Standard-Perl: user may choose between GPL and Artistic + g - GPL: GNU General Public License + l - LGPL: "GNU Lesser General Public License" (previously known as + "GNU Library General Public License") + b - BSD: The BSD License + a - Artistic license alone + 2 - Artistic license 2.0 or later + o - open source: approved by www.opensource.org + d - allows distribution without restrictions + r - restricted distribution + n - no license at all + +=item CPAN::Module::force($method,@args) + +Forces CPAN to perform a task it would normally refuse to +do. Force takes as arguments a method name to be invoked and any number +of additional arguments to pass that method. +The internals of the object get the needed changes so that CPAN.pm +does not refuse to take the action. See also the section above on the +C and the C pragma. + +=item CPAN::Module::get() + +Runs a get on the distribution associated with this module. + +=item CPAN::Module::inst_file() + +Returns the filename of the module found in @INC. The first file found +is reported, just as perl itself stops searching @INC once it finds a +module. + +=item CPAN::Module::available_file() + +Returns the filename of the module found in PERL5LIB or @INC. The +first file found is reported. The advantage of this method over +C is that modules that have been tested but not yet +installed are included because PERL5LIB keeps track of tested modules. + +=item CPAN::Module::inst_version() + +Returns the version number of the installed module in readable format. + +=item CPAN::Module::available_version() + +Returns the version number of the available module in readable format. + +=item CPAN::Module::install() + +Runs an C on the distribution associated with this module. + +=item CPAN::Module::look() + +Changes to the directory where the distribution associated with this +module has been unpacked and opens a subshell there. Exiting the +subshell returns. + +=item CPAN::Module::make() + +Runs a C on the distribution associated with this module. + +=item CPAN::Module::manpage_headline() + +If module is installed, peeks into the module's manpage, reads the +headline, and returns it. Moreover, if the module has been downloaded +within this session, does the equivalent on the downloaded module even +if it hasn't been installed yet. + +=item CPAN::Module::perldoc() + +Runs a C on this module. + +=item CPAN::Module::readme() + +Runs a C on the distribution associated with this module. + +=item CPAN::Module::reports() + +Calls the reports() method on the associated distribution object. + +=item CPAN::Module::test() + +Runs a C on the distribution associated with this module. + +=item CPAN::Module::uptodate() + +Returns 1 if the module is installed and up-to-date. + +=item CPAN::Module::userid() + +Returns the author's ID of the module. + +=back + +=head2 Cache Manager + +Currently the cache manager only keeps track of the build directory +($CPAN::Config->{build_dir}). It is a simple FIFO mechanism that +deletes complete directories below C as soon as the size of +all directories there gets bigger than $CPAN::Config->{build_cache} +(in MB). The contents of this cache may be used for later +re-installations that you intend to do manually, but will never be +trusted by CPAN itself. This is due to the fact that the user might +use these directories for building modules on different architectures. + +There is another directory ($CPAN::Config->{keep_source_where}) where +the original distribution files are kept. This directory is not +covered by the cache manager and must be controlled by the user. If +you choose to have the same directory as build_dir and as +keep_source_where directory, then your sources will be deleted with +the same fifo mechanism. + +=head2 Bundles + +A bundle is just a perl module in the namespace Bundle:: that does not +define any functions or methods. It usually only contains documentation. + +It starts like a perl module with a package declaration and a $VERSION +variable. After that the pod section looks like any other pod with the +only difference being that I exists starting with +(verbatim): + + =head1 CONTENTS + +In this pod section each line obeys the format + + Module_Name [Version_String] [- optional text] + +The only required part is the first field, the name of a module +(e.g. Foo::Bar, i.e. I the name of the distribution file). The rest +of the line is optional. The comment part is delimited by a dash just +as in the man page header. + +The distribution of a bundle should follow the same convention as +other distributions. + +Bundles are treated specially in the CPAN package. If you say 'install +Bundle::Tkkit' (assuming such a bundle exists), CPAN will install all +the modules in the CONTENTS section of the pod. You can install your +own Bundles locally by placing a conformant Bundle file somewhere into +your @INC path. The autobundle() command which is available in the +shell interface does that for you by including all currently installed +modules in a snapshot bundle file. + +=head1 PREREQUISITES + +The CPAN program is trying to depend on as little as possible so the +user can use it in hostile environment. It works better the more goodies +the environment provides. For example if you try in the CPAN shell + + install Bundle::CPAN + +or + + install Bundle::CPANxxl + +you will find the shell more convenient than the bare shell before. + +If you have a local mirror of CPAN and can access all files with +"file:" URLs, then you only need a perl later than perl5.003 to run +this module. Otherwise Net::FTP is strongly recommended. LWP may be +required for non-UNIX systems, or if your nearest CPAN site is +associated with a URL that is not C. + +If you have neither Net::FTP nor LWP, there is a fallback mechanism +implemented for an external ftp command or for an external lynx +command. + +=head1 UTILITIES + +=head2 Finding packages and VERSION + +This module presumes that all packages on CPAN + +=over 2 + +=item * + +declare their $VERSION variable in an easy to parse manner. This +prerequisite can hardly be relaxed because it consumes far too much +memory to load all packages into the running program just to determine +the $VERSION variable. Currently all programs that are dealing with +version use something like this + + perl -MExtUtils::MakeMaker -le \ + 'print MM->parse_version(shift)' filename + +If you are author of a package and wonder if your $VERSION can be +parsed, please try the above method. + +=item * + +come as compressed or gzipped tarfiles or as zip files and contain a +C or C (well, we try to handle a bit more, but +with little enthusiasm). + +=back + +=head2 Debugging + +Debugging this module is more than a bit complex due to interference from +the software producing the indices on CPAN, the mirroring process on CPAN, +packaging, configuration, synchronicity, and even (gasp!) due to bugs +within the CPAN.pm module itself. + +For debugging the code of CPAN.pm itself in interactive mode, some +debugging aid can be turned on for most packages within +CPAN.pm with one of + +=over 2 + +=item o debug package... + +sets debug mode for packages. + +=item o debug -package... + +unsets debug mode for packages. + +=item o debug all + +turns debugging on for all packages. + +=item o debug number + +=back + +which sets the debugging packages directly. Note that C +turns debugging off. + +What seems a successful strategy is the combination of C and the debugging switches. Add a new debug statement while +running in the shell and then issue a C and see the new +debugging messages immediately without losing the current context. + +C without an argument lists the valid package names and the +current set of packages in debugging mode. C has built-in +completion support. + +For debugging of CPAN data there is the C command which takes +the same arguments as make/test/install and outputs each object's +Data::Dumper dump. If an argument looks like a perl variable and +contains one of C<$>, C<@> or C<%>, it is eval()ed and fed to +Data::Dumper directly. + +=head2 Floppy, Zip, Offline Mode + +CPAN.pm works nicely without network access, too. If you maintain machines +that are not networked at all, you should consider working with C +URLs. You'll have to collect your modules somewhere first. So +you might use CPAN.pm to put together all you need on a networked +machine. Then copy the $CPAN::Config->{keep_source_where} (but not +$CPAN::Config->{build_dir}) directory on a floppy. This floppy is kind +of a personal CPAN. CPAN.pm on the non-networked machines works nicely +with this floppy. See also below the paragraph about CD-ROM support. + +=head2 Basic Utilities for Programmers + +=over 2 + +=item has_inst($module) + +Returns true if the module is installed. Used to load all modules into +the running CPAN.pm that are considered optional. The config variable +C intercepts the C call such +that an optional module is not loaded despite being available. For +example, the following command will prevent C from being +loaded: + + cpan> o conf dontload_list push YAML + +See the source for details. + +=item use_inst($module) + +Similary to L tries to load optional library but also dies if +library is not available + +=item has_usable($module) + +Returns true if the module is installed and in a usable state. Only +useful for a handful of modules that are used internally. See the +source for details. + +=item instance($module) + +The constructor for all the singletons used to represent modules, +distributions, authors, and bundles. If the object already exists, this +method returns the object; otherwise, it calls the constructor. + +=item frontend() + +=item frontend($new_frontend) + +Getter/setter for frontend object. Method just allows to subclass CPAN.pm. + +=back + +=head1 SECURITY + +There's no strong security layer in CPAN.pm. CPAN.pm helps you to +install foreign, unmasked, unsigned code on your machine. We compare +to a checksum that comes from the net just as the distribution file +itself. But we try to make it easy to add security on demand: + +=head2 Cryptographically signed modules + +Since release 1.77, CPAN.pm has been able to verify cryptographically +signed module distributions using Module::Signature. The CPAN modules +can be signed by their authors, thus giving more security. The simple +unsigned MD5 checksums that were used before by CPAN protect mainly +against accidental file corruption. + +You will need to have Module::Signature installed, which in turn +requires that you have at least one of Crypt::OpenPGP module or the +command-line F tool installed. + +You will also need to be able to connect over the Internet to the public +key servers, like pgp.mit.edu, and their port 11731 (the HKP protocol). + +The configuration parameter check_sigs is there to turn signature +checking on or off. + +=head1 EXPORT + +Most functions in package CPAN are exported by default. The reason +for this is that the primary use is intended for the cpan shell or for +one-liners. + +=head1 ENVIRONMENT + +When the CPAN shell enters a subshell via the look command, it sets +the environment CPAN_SHELL_LEVEL to 1, or increments that variable if it is +already set. + +When CPAN runs, it sets the environment variable PERL5_CPAN_IS_RUNNING +to the ID of the running process. It also sets +PERL5_CPANPLUS_IS_RUNNING to prevent runaway processes which could +happen with older versions of Module::Install. + +When running C, the environment variable +C is set to the full path of the +C that is being executed. This prevents runaway processes +with newer versions of Module::Install. + +When the config variable ftp_passive is set, all downloads will be run +with the environment variable FTP_PASSIVE set to this value. This is +in general a good idea as it influences both Net::FTP and LWP based +connections. The same effect can be achieved by starting the cpan +shell with this environment variable set. For Net::FTP alone, one can +also always set passive mode by running libnetcfg. + +=head1 POPULATE AN INSTALLATION WITH LOTS OF MODULES + +Populating a freshly installed perl with one's favorite modules is pretty +easy if you maintain a private bundle definition file. To get a useful +blueprint of a bundle definition file, the command autobundle can be used +on the CPAN shell command line. This command writes a bundle definition +file for all modules installed for the current perl +interpreter. It's recommended to run this command once only, and from then +on maintain the file manually under a private name, say +Bundle/my_bundle.pm. With a clever bundle file you can then simply say + + cpan> install Bundle::my_bundle + +then answer a few questions and go out for coffee (possibly +even in a different city). + +Maintaining a bundle definition file means keeping track of two +things: dependencies and interactivity. CPAN.pm sometimes fails on +calculating dependencies because not all modules define all MakeMaker +attributes correctly, so a bundle definition file should specify +prerequisites as early as possible. On the other hand, it's +annoying that so many distributions need some interactive configuring. So +what you can try to accomplish in your private bundle file is to have the +packages that need to be configured early in the file and the gentle +ones later, so you can go out for coffee after a few minutes and leave CPAN.pm +to churn away unattended. + +=head1 WORKING WITH CPAN.pm BEHIND FIREWALLS + +Thanks to Graham Barr for contributing the following paragraphs about +the interaction between perl, and various firewall configurations. For +further information on firewalls, it is recommended to consult the +documentation that comes with the I program. If you are unable to +go through the firewall with a simple Perl setup, it is likely +that you can configure I so that it works through your firewall. + +=head2 Three basic types of firewalls + +Firewalls can be categorized into three basic types. + +=over 4 + +=item http firewall + +This is when the firewall machine runs a web server, and to access the +outside world, you must do so via that web server. If you set environment +variables like http_proxy or ftp_proxy to values beginning with http://, +or in your web browser you've proxy information set, then you know +you are running behind an http firewall. + +To access servers outside these types of firewalls with perl (even for +ftp), you need LWP or HTTP::Tiny. + +=item ftp firewall + +This where the firewall machine runs an ftp server. This kind of +firewall will only let you access ftp servers outside the firewall. +This is usually done by connecting to the firewall with ftp, then +entering a username like "user@outside.host.com". + +To access servers outside these type of firewalls with perl, you +need Net::FTP. + +=item One-way visibility + +One-way visibility means these firewalls try to make themselves +invisible to users inside the firewall. An FTP data connection is +normally created by sending your IP address to the remote server and then +listening for the return connection. But the remote server will not be able to +connect to you because of the firewall. For these types of firewall, +FTP connections need to be done in a passive mode. + +There are two that I can think off. + +=over 4 + +=item SOCKS + +If you are using a SOCKS firewall, you will need to compile perl and link +it with the SOCKS library. This is what is normally called a 'socksified' +perl. With this executable you will be able to connect to servers outside +the firewall as if it were not there. + +=item IP Masquerade + +This is when the firewall implemented in the kernel (via NAT, or networking +address translation), it allows you to hide a complete network behind one +IP address. With this firewall no special compiling is needed as you can +access hosts directly. + +For accessing ftp servers behind such firewalls you usually need to +set the environment variable C or the config variable +ftp_passive to a true value. + +=back + +=back + +=head2 Configuring lynx or ncftp for going through a firewall + +If you can go through your firewall with e.g. lynx, presumably with a +command such as + + /usr/local/bin/lynx -pscott:tiger + +then you would configure CPAN.pm with the command + + o conf lynx "/usr/local/bin/lynx -pscott:tiger" + +That's all. Similarly for ncftp or ftp, you would configure something +like + + o conf ncftp "/usr/bin/ncftp -f /home/scott/ncftplogin.cfg" + +Your mileage may vary... + +=head1 FAQ + +=over 4 + +=item 1) + +I installed a new version of module X but CPAN keeps saying, +I have the old version installed + +Probably you B have the old version installed. This can +happen if a module installs itself into a different directory in the +@INC path than it was previously installed. This is not really a +CPAN.pm problem, you would have the same problem when installing the +module manually. The easiest way to prevent this behaviour is to add +the argument C to the C call, and that is why +many people add this argument permanently by configuring + + o conf make_install_arg UNINST=1 + +=item 2) + +So why is UNINST=1 not the default? + +Because there are people who have their precise expectations about who +may install where in the @INC path and who uses which @INC array. In +fine tuned environments C can cause damage. + +=item 3) + +I want to clean up my mess, and install a new perl along with +all modules I have. How do I go about it? + +Run the autobundle command for your old perl and optionally rename the +resulting bundle file (e.g. Bundle/mybundle.pm), install the new perl +with the Configure option prefix, e.g. + + ./Configure -Dprefix=/usr/local/perl-5.6.78.9 + +Install the bundle file you produced in the first step with something like + + cpan> install Bundle::mybundle + +and you're done. + +=item 4) + +When I install bundles or multiple modules with one command +there is too much output to keep track of. + +You may want to configure something like + + o conf make_arg "| tee -ai /root/.cpan/logs/make.out" + o conf make_install_arg "| tee -ai /root/.cpan/logs/make_install.out" + +so that STDOUT is captured in a file for later inspection. + + +=item 5) + +I am not root, how can I install a module in a personal directory? + +As of CPAN 1.9463, if you do not have permission to write the default perl +library directories, CPAN's configuration process will ask you whether +you want to bootstrap , which makes keeping a personal +perl library directory easy. + +Another thing you should bear in mind is that the UNINST parameter can +be dangerous when you are installing into a private area because you +might accidentally remove modules that other people depend on that are +not using the private area. + +=item 6) + +How to get a package, unwrap it, and make a change before building it? + +Have a look at the C (!) command. + +=item 7) + +I installed a Bundle and had a couple of fails. When I +retried, everything resolved nicely. Can this be fixed to work +on first try? + +The reason for this is that CPAN does not know the dependencies of all +modules when it starts out. To decide about the additional items to +install, it just uses data found in the META.yml file or the generated +Makefile. An undetected missing piece breaks the process. But it may +well be that your Bundle installs some prerequisite later than some +depending item and thus your second try is able to resolve everything. +Please note, CPAN.pm does not know the dependency tree in advance and +cannot sort the queue of things to install in a topologically correct +order. It resolves perfectly well B all modules declare the +prerequisites correctly with the PREREQ_PM attribute to MakeMaker or +the C stanza of Module::Build. For bundles which fail and +you need to install often, it is recommended to sort the Bundle +definition file manually. + +=item 8) + +In our intranet, we have many modules for internal use. How +can I integrate these modules with CPAN.pm but without uploading +the modules to CPAN? + +Have a look at the CPAN::Site module. + +=item 9) + +When I run CPAN's shell, I get an error message about things in my +C (or C<~/.inputrc>) file. + +These are readline issues and can only be fixed by studying readline +configuration on your architecture and adjusting the referenced file +accordingly. Please make a backup of the C or C<~/.inputrc> +and edit them. Quite often harmless changes like uppercasing or +lowercasing some arguments solves the problem. + +=item 10) + +Some authors have strange characters in their names. + +Internally CPAN.pm uses the UTF-8 charset. If your terminal is +expecting ISO-8859-1 charset, a converter can be activated by setting +term_is_latin to a true value in your config file. One way of doing so +would be + + cpan> o conf term_is_latin 1 + +If other charset support is needed, please file a bug report against +CPAN.pm at rt.cpan.org and describe your needs. Maybe we can extend +the support or maybe UTF-8 terminals become widely available. + +Note: this config variable is deprecated and will be removed in a +future version of CPAN.pm. It will be replaced with the conventions +around the family of $LANG and $LC_* environment variables. + +=item 11) + +When an install fails for some reason and then I correct the error +condition and retry, CPAN.pm refuses to install the module, saying +C. + +You could use the force pragma like so + + force install Foo::Bar + +Or, to avoid a force install (which would install even if the tests +fail), you can force only the test and then install: + + force test Foo::Bar + install Foo::Bar + +Or you can use + + look Foo::Bar + +and then C directly in the subshell. + +=item 12) + +How do I install a "DEVELOPER RELEASE" of a module? + +By default, CPAN will install the latest non-developer release of a +module. If you want to install a dev release, you have to specify the +partial path starting with the author id to the tarball you wish to +install, like so: + + cpan> install KWILLIAMS/Module-Build-0.27_07.tar.gz + +Note that you can use the C command to get this path listed. + +=item 13) + +How do I install a module and all its dependencies from the commandline, +without being prompted for anything, despite my CPAN configuration +(or lack thereof)? + +CPAN uses ExtUtils::MakeMaker's prompt() function to ask its questions, so +if you set the PERL_MM_USE_DEFAULT environment variable, you shouldn't be +asked any questions at all (assuming the modules you are installing are +nice about obeying that variable as well): + + % PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install My::Module' + +=item 14) + +How do I create a Module::Build based Build.PL derived from an +ExtUtils::MakeMaker focused Makefile.PL? + +http://search.cpan.org/dist/Module-Build-Convert/ + +=item 15) + +I'm frequently irritated with the CPAN shell's inability to help me +select a good mirror. + +CPAN can now help you select a "good" mirror, based on which ones have the +lowest 'ping' round-trip times. From the shell, use the command 'o conf init +urllist' and allow CPAN to automatically select mirrors for you. + +Beyond that help, the urllist config parameter is yours. You can add and remove +sites at will. You should find out which sites have the best up-to-dateness, +bandwidth, reliability, etc. and are topologically close to you. Some people +prefer fast downloads, others up-to-dateness, others reliability. You decide +which to try in which order. + +Henk P. Penning maintains a site that collects data about CPAN sites: + + http://mirrors.cpan.org/ + +Also, feel free to play with experimental features. Run + + o conf init randomize_urllist ftpstats_period ftpstats_size + +and choose your favorite parameters. After a few downloads running the +C command will probably assist you in choosing the best mirror +sites. + +=item 16) + +Why do I get asked the same questions every time I start the shell? + +You can make your configuration changes permanent by calling the +command C. Alternatively set the C +variable to true by running C and answering +the following question with yes. + +=item 17) + +Older versions of CPAN.pm had the original root directory of all +tarballs in the build directory. Now there are always random +characters appended to these directory names. Why was this done? + +The random characters are provided by File::Temp and ensure that each +module's individual build directory is unique. This makes running +CPAN.pm in concurrent processes simultaneously safe. + +=item 18) + +Speaking of the build directory. Do I have to clean it up myself? + +You have the choice to set the config variable C to +C. Then you must clean it up yourself. The other possible +values, C and C clean up the build directory when you +start (or more precisely, after the first extraction into the build +directory) or exit the CPAN shell, respectively. If you never start up +the CPAN shell, you probably also have to clean up the build directory +yourself. + +=item 19) + +How can I switch to sudo instead of local::lib? + +The following 5 environment veriables need to be reset to the previous +values: PATH, PERL5LIB, PERL_LOCAL_LIB_ROOT, PERL_MB_OPT, PERL_MM_OPT; +and these two CPAN.pm config variables must be reconfigured: +make_install_make_command and mbuild_install_build_command. The five +env variables have probably been overwritten in your $HOME/.bashrc or +some equivalent. You either find them there and delete their traces +and logout/login or you override them temporarily, depending on your +exact desire. The two cpanpm config variables can be set with: + + o conf init /install_.*_command/ + +probably followed by + + o conf commit + +=item 20) + +How do recommends_policy and suggests_policy work, exactly? + +The terms C and C have been standardized in +https://metacpan.org/pod/CPAN::Meta::Spec + +In CPAN.pm, if you set C to a true value, that +means: if you then install a distribution C that I a +module C, both C and C will be tested and potentially +installed. + +Similarly, if you set C to a true value, it means: if +you install a distribution C that I a module C, +both C and C will be tested and potentially installed. + +In either case, when C passes its tests and C does not pass +its tests, C will be installed nontheless. But if C does not +pass its tests, neither will be installed. + +This also works recursively for all recommends and suggests of the +module C. + +This has also been illustrated by a cpan tester, who wrote: + +I just tested Starlink-AST-3.03 which recommends Tk::Zinc; +Tk-Zinc-3.306 fails with +http://www.cpantesters.org/cpan/report/a2de7c38-810d-11ee-9ad4-e2167316189a +; nonetheless Starlink-AST-3.03 succeeds with +http://www.cpantesters.org/cpan/report/9352e754-810d-11ee-90e9-46117316189a + +=back + +=head1 COMPATIBILITY + +=head2 OLD PERL VERSIONS + +CPAN.pm is regularly tested to run under 5.005 and assorted +newer versions. It is getting more and more difficult to get the +minimal prerequisites working on older perls. It is close to +impossible to get the whole Bundle::CPAN working there. If you're in +the position to have only these old versions, be advised that CPAN is +designed to work fine without the Bundle::CPAN installed. + +To get things going, note that GBARR/Scalar-List-Utils-1.18.tar.gz is +compatible with ancient perls and that File::Temp is listed as a +prerequisite but CPAN has reasonable workarounds if it is missing. + +=head2 CPANPLUS + +This module and its competitor, the CPANPLUS module, are both much +cooler than the other. CPAN.pm is older. CPANPLUS was designed to be +more modular, but it was never intended to be compatible with CPAN.pm. + +=head2 CPANMINUS + +In the year 2010 App::cpanminus was launched as a new approach to a +cpan shell with a considerably smaller footprint. Very cool stuff. + +=head1 SECURITY ADVICE + +This software enables you to upgrade software on your computer and so +is inherently dangerous because the newly installed software may +contain bugs and may alter the way your computer works or even make it +unusable. Please consider backing up your data before every upgrade. + +=head1 BUGS + +Please report bugs via L + +Before submitting a bug, please make sure that the traditional method +of building a Perl module package from a shell by following the +installation instructions of that package still works in your +environment. + +=head1 AUTHOR + +Andreas Koenig C<< >> + +=head1 LICENSE + +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +See L + +=head1 TRANSLATIONS + +Kawai,Takanori provides a Japanese translation of a very old version +of this manpage at +L + +=head1 SEE ALSO + +Many people enter the CPAN shell by running the L utility +program which is installed in the same directory as perl itself. So if +you have this directory in your PATH variable (or some equivalent in +your operating system) then typing C in a console window will +work for you as well. Above that the utility provides several +commandline shortcuts. + +melezhik (Alexey) sent me a link where he published a chef recipe to +work with CPAN.pm: http://community.opscode.com/cookbooks/cpan. + + +=cut diff --git a/git/usr/share/perl5/core_perl/Carp.pm b/git/usr/share/perl5/core_perl/Carp.pm new file mode 100644 index 0000000000000000000000000000000000000000..20b970800abc0546a9c5e7e7486374961c5d6608 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Carp.pm @@ -0,0 +1,1072 @@ +package Carp; + +{ use 5.006; } +use strict; +use warnings; +BEGIN { + # Very old versions of warnings.pm load Carp. This can go wrong due + # to the circular dependency. If warnings is invoked before Carp, + # then warnings starts by loading Carp, then Carp (above) tries to + # invoke warnings, and gets nothing because warnings is in the process + # of loading and hasn't defined its import method yet. If we were + # only turning on warnings ("use warnings" above) this wouldn't be too + # bad, because Carp would just gets the state of the -w switch and so + # might not get some warnings that it wanted. The real problem is + # that we then want to turn off Unicode warnings, but "no warnings + # 'utf8'" won't be effective if we're in this circular-dependency + # situation. So, if warnings.pm is an affected version, we turn + # off all warnings ourselves by directly setting ${^WARNING_BITS}. + # On unaffected versions, we turn off just Unicode warnings, via + # the proper API. + if(!defined($warnings::VERSION) || eval($warnings::VERSION) < 1.06) { + ${^WARNING_BITS} = ""; + } else { + "warnings"->unimport("utf8"); + } +} + +sub _fetch_sub { # fetch sub without autovivifying + my($pack, $sub) = @_; + $pack .= '::'; + # only works with top-level packages + return unless exists($::{$pack}); + for ($::{$pack}) { + return unless ref \$_ eq 'GLOB' && *$_{HASH} && exists $$_{$sub}; + for ($$_{$sub}) { + return ref \$_ eq 'GLOB' ? *$_{CODE} : undef + } + } +} + +# UTF8_REGEXP_PROBLEM is a compile-time constant indicating whether Carp +# must avoid applying a regular expression to an upgraded (is_utf8) +# string. There are multiple problems, on different Perl versions, +# that require this to be avoided. All versions prior to 5.13.8 will +# load utf8_heavy.pl for the swash system, even if the regexp doesn't +# use character classes. Perl 5.6 and Perls [5.11.2, 5.13.11) exhibit +# specific problems when Carp is being invoked in the aftermath of a +# syntax error. +BEGIN { + if("$]" < 5.013011) { + *UTF8_REGEXP_PROBLEM = sub () { 1 }; + } else { + *UTF8_REGEXP_PROBLEM = sub () { 0 }; + } +} + +# is_utf8() is essentially the utf8::is_utf8() function, which indicates +# whether a string is represented in the upgraded form (using UTF-8 +# internally). As utf8::is_utf8() is only available from Perl 5.8 +# onwards, extra effort is required here to make it work on Perl 5.6. +BEGIN { + if(defined(my $sub = _fetch_sub utf8 => 'is_utf8')) { + *is_utf8 = $sub; + } else { + # black magic for perl 5.6 + *is_utf8 = sub { unpack("C", "\xaa".$_[0]) != 170 }; + } +} + +# The downgrade() function defined here is to be used for attempts to +# downgrade where it is acceptable to fail. It must be called with a +# second argument that is a true value. +BEGIN { + if(defined(my $sub = _fetch_sub utf8 => 'downgrade')) { + *downgrade = \&{"utf8::downgrade"}; + } else { + *downgrade = sub { + my $r = ""; + my $l = length($_[0]); + for(my $i = 0; $i != $l; $i++) { + my $o = ord(substr($_[0], $i, 1)); + return if $o > 255; + $r .= chr($o); + } + $_[0] = $r; + }; + } +} + +# is_safe_printable_codepoint() indicates whether a character, specified +# by integer codepoint, is OK to output literally in a trace. Generally +# this is if it is a printable character in the ancestral character set +# (ASCII or EBCDIC). This is used on some Perls in situations where a +# regexp can't be used. +BEGIN { + *is_safe_printable_codepoint = + "$]" >= 5.007_003 ? + eval(q(sub ($) { + my $u = utf8::native_to_unicode($_[0]); + $u >= 0x20 && $u <= 0x7e; + })) + : ord("A") == 65 ? + sub ($) { $_[0] >= 0x20 && $_[0] <= 0x7e } + : + sub ($) { + # Early EBCDIC + # 3 EBCDIC code pages supported then; all controls but one + # are the code points below SPACE. The other one is 0x5F on + # POSIX-BC; FF on the other two. + # FIXME: there are plenty of unprintable codepoints other + # than those that this code and the comment above identifies + # as "controls". + $_[0] >= ord(" ") && $_[0] <= 0xff && + $_[0] != (ord ("^") == 106 ? 0x5f : 0xff); + } + ; +} + +sub _univ_mod_loaded { + return 0 unless exists($::{"UNIVERSAL::"}); + for ($::{"UNIVERSAL::"}) { + return 0 unless ref \$_ eq "GLOB" && *$_{HASH} && exists $$_{"$_[0]::"}; + for ($$_{"$_[0]::"}) { + return 0 unless ref \$_ eq "GLOB" && *$_{HASH} && exists $$_{"VERSION"}; + for ($$_{"VERSION"}) { + return 0 unless ref \$_ eq "GLOB"; + return ${*$_{SCALAR}}; + } + } + } +} + +# _maybe_isa() is usually the UNIVERSAL::isa function. We have to avoid +# the latter if the UNIVERSAL::isa module has been loaded, to avoid infi- +# nite recursion; in that case _maybe_isa simply returns true. +my $isa; +BEGIN { + if (_univ_mod_loaded('isa')) { + *_maybe_isa = sub { 1 } + } + else { + # Since we have already done the check, record $isa for use below + # when defining _StrVal. + *_maybe_isa = $isa = _fetch_sub(UNIVERSAL => "isa"); + } +} + + +# We need an overload::StrVal or equivalent function, but we must avoid +# loading any modules on demand, as Carp is used from __DIE__ handlers and +# may be invoked after a syntax error. +# We can copy recent implementations of overload::StrVal and use +# overloading.pm, which is the fastest implementation, so long as +# overloading is available. If it is not available, we use our own pure- +# Perl StrVal. We never actually use overload::StrVal, for various rea- +# sons described below. +# overload versions are as follows: +# undef-1.00 (up to perl 5.8.0) uses bless (avoid!) +# 1.01-1.17 (perl 5.8.1 to 5.14) uses Scalar::Util +# 1.18+ (perl 5.16+) uses overloading +# The ancient 'bless' implementation (that inspires our pure-Perl version) +# blesses unblessed references and must be avoided. Those using +# Scalar::Util use refaddr, possibly the pure-Perl implementation, which +# has the same blessing bug, and must be avoided. Also, Scalar::Util is +# loaded on demand. Since we avoid the Scalar::Util implementations, we +# end up having to implement our own overloading.pm-based version for perl +# 5.10.1 to 5.14. Since it also works just as well in more recent ver- +# sions, we use it there, too. +BEGIN { + if (eval { require "overloading.pm" }) { + *_StrVal = eval 'sub { no overloading; "$_[0]" }' + } + else { + # Work around the UNIVERSAL::can/isa modules to avoid recursion. + + # _mycan is either UNIVERSAL::can, or, in the presence of an + # override, overload::mycan. + *_mycan = _univ_mod_loaded('can') + ? do { require "overload.pm"; _fetch_sub overload => 'mycan' } + : \&UNIVERSAL::can; + + # _blessed is either UNIVERSAL::isa(...), or, in the presence of an + # override, a hideous, but fairly reliable, workaround. + *_blessed = $isa + ? sub { &$isa($_[0], "UNIVERSAL") } + : sub { + my $probe = "UNIVERSAL::Carp_probe_" . rand; + no strict 'refs'; + local *$probe = sub { "unlikely string" }; + local $@; + local $SIG{__DIE__} = sub{}; + (eval { $_[0]->$probe } || '') eq 'unlikely string' + }; + + *_StrVal = sub { + my $pack = ref $_[0]; + # Perl's overload mechanism uses the presence of a special + # "method" named "((" or "()" to signal it is in effect. + # This test seeks to see if it has been set up. "((" post- + # dates overloading.pm, so we can skip it. + return "$_[0]" unless _mycan($pack, "()"); + # Even at this point, the invocant may not be blessed, so + # check for that. + return "$_[0]" if not _blessed($_[0]); + bless $_[0], "Carp"; + my $str = "$_[0]"; + bless $_[0], $pack; + $pack . substr $str, index $str, "="; + } + } +} + + +our $VERSION = '1.54'; +$VERSION =~ tr/_//d; + +our $MaxEvalLen = 0; +our $Verbose = 0; +our $CarpLevel = 0; +our $MaxArgLen = 64; # How much of each argument to print. 0 = all. +our $MaxArgNums = 8; # How many arguments to print. 0 = all. +our $RefArgFormatter = undef; # allow caller to format reference arguments + +require Exporter; +our @ISA = ('Exporter'); +our @EXPORT = qw(confess croak carp); +our @EXPORT_OK = qw(cluck verbose longmess shortmess); +our @EXPORT_FAIL = qw(verbose); # hook to enable verbose mode + +# The members of %Internal are packages that are internal to perl. +# Carp will not report errors from within these packages if it +# can. The members of %CarpInternal are internal to Perl's warning +# system. Carp will not report errors from within these packages +# either, and will not report calls *to* these packages for carp and +# croak. They replace $CarpLevel, which is deprecated. The +# $Max(EvalLen|(Arg(Len|Nums)) variables are used to specify how the eval +# text and function arguments should be formatted when printed. + +our %CarpInternal; +our %Internal; + +# disable these by default, so they can live w/o require Carp +$CarpInternal{Carp}++; +$CarpInternal{warnings}++; +$Internal{Exporter}++; +$Internal{'Exporter::Heavy'}++; + +# if the caller specifies verbose usage ("perl -MCarp=verbose script.pl") +# then the following method will be called by the Exporter which knows +# to do this thanks to @EXPORT_FAIL, above. $_[1] will contain the word +# 'verbose'. + +sub export_fail { shift; $Verbose = shift if $_[0] eq 'verbose'; @_ } + +sub _cgc { + no strict 'refs'; + return \&{"CORE::GLOBAL::caller"} if defined &{"CORE::GLOBAL::caller"}; + return; +} + +sub longmess { + local($!, $^E); + # Icky backwards compatibility wrapper. :-( + # + # The story is that the original implementation hard-coded the + # number of call levels to go back, so calls to longmess were off + # by one. Other code began calling longmess and expecting this + # behaviour, so the replacement has to emulate that behaviour. + my $cgc = _cgc(); + my $call_pack = $cgc ? $cgc->() : caller(); + if ( $Internal{$call_pack} or $CarpInternal{$call_pack} ) { + return longmess_heavy(@_); + } + else { + local $CarpLevel = $CarpLevel + 1; + return longmess_heavy(@_); + } +} + +our @CARP_NOT; + +sub shortmess { + local($!, $^E); + my $cgc = _cgc(); + + # Icky backwards compatibility wrapper. :-( + local @CARP_NOT = scalar( $cgc ? $cgc->() : caller() ); + shortmess_heavy(@_); +} + +sub croak { die shortmess @_ } +sub confess { die longmess @_ } +sub carp { warn shortmess @_ } +sub cluck { warn longmess @_ } + +BEGIN { + if("$]" >= 5.015002 || ("$]" >= 5.014002 && "$]" < 5.015) || + ("$]" >= 5.012005 && "$]" < 5.013)) { + *CALLER_OVERRIDE_CHECK_OK = sub () { 1 }; + } else { + *CALLER_OVERRIDE_CHECK_OK = sub () { 0 }; + } +} + +sub caller_info { + my $i = shift(@_) + 1; + my %call_info; + my $cgc = _cgc(); + { + # Some things override caller() but forget to implement the + # @DB::args part of it, which we need. We check for this by + # pre-populating @DB::args with a sentinel which no-one else + # has the address of, so that we can detect whether @DB::args + # has been properly populated. However, on earlier versions + # of perl this check tickles a bug in CORE::caller() which + # leaks memory. So we only check on fixed perls. + @DB::args = \$i if CALLER_OVERRIDE_CHECK_OK; + package DB; + @call_info{ + qw(pack file line sub has_args wantarray evaltext is_require) } + = $cgc ? $cgc->($i) : caller($i); + } + + unless ( defined $call_info{file} ) { + return (); + } + + my $sub_name = Carp::get_subname( \%call_info ); + if ( $call_info{has_args} ) { + # Guard our serialization of the stack from stack refcounting bugs + # NOTE this is NOT a complete solution, we cannot 100% guard against + # these bugs. However in many cases Perl *is* capable of detecting + # them and throws an error when it does. Unfortunately serializing + # the arguments on the stack is a perfect way of finding these bugs, + # even when they would not affect normal program flow that did not + # poke around inside the stack. Inside of Carp.pm it makes little + # sense reporting these bugs, as Carp's job is to report the callers + # errors, not the ones it might happen to tickle while doing so. + # See: https://rt.perl.org/Public/Bug/Display.html?id=131046 + # and: https://rt.perl.org/Public/Bug/Display.html?id=52610 + # for more details and discussion. - Yves + my @args = map { + my $arg; + local $@= $@; + eval { + $arg = $_; + 1; + } or do { + $arg = '** argument not available anymore **'; + }; + $arg; + } @DB::args; + if (CALLER_OVERRIDE_CHECK_OK && @args == 1 + && ref $args[0] eq ref \$i + && $args[0] == \$i ) { + @args = (); # Don't let anyone see the address of $i + local $@; + my $where = eval { + my $func = $cgc or return ''; + my $gv = + (_fetch_sub B => 'svref_2object' or return '') + ->($func)->GV; + my $package = $gv->STASH->NAME; + my $subname = $gv->NAME; + return unless defined $package && defined $subname; + + # returning CORE::GLOBAL::caller isn't useful for tracing the cause: + return if $package eq 'CORE::GLOBAL' && $subname eq 'caller'; + " in &${package}::$subname"; + } || ''; + @args + = "** Incomplete caller override detected$where; \@DB::args were not set **"; + } + else { + my $overflow; + if ( $MaxArgNums and @args > $MaxArgNums ) + { # More than we want to show? + $#args = $MaxArgNums - 1; + $overflow = 1; + } + + @args = map { Carp::format_arg($_) } @args; + + if ($overflow) { + push @args, '...'; + } + } + + # Push the args onto the subroutine + $sub_name .= '(' . join( ', ', @args ) . ')'; + } + $call_info{sub_name} = $sub_name; + return wantarray() ? %call_info : \%call_info; +} + +# Transform an argument to a function into a string. +our $in_recurse; +sub format_arg { + my $arg = shift; + + if ( my $pack= ref($arg) ) { + + # legitimate, let's not leak it. + if (!$in_recurse && _maybe_isa( $arg, 'UNIVERSAL' ) && + do { + local $@; + local $in_recurse = 1; + local $SIG{__DIE__} = sub{}; + eval {$arg->can('CARP_TRACE') } + }) + { + return $arg->CARP_TRACE(); + } + elsif (!$in_recurse && + defined($RefArgFormatter) && + do { + local $@; + local $in_recurse = 1; + local $SIG{__DIE__} = sub{}; + eval {$arg = $RefArgFormatter->($arg); 1} + }) + { + return $arg; + } + else + { + # Argument may be blessed into a class with overloading, and so + # might have an overloaded stringification. We don't want to + # risk getting the overloaded stringification, so we need to + # use _StrVal, our overload::StrVal()-equivalent. + return _StrVal $arg; + } + } + return "undef" if !defined($arg); + downgrade($arg, 1); + return $arg if !(UTF8_REGEXP_PROBLEM && is_utf8($arg)) && + $arg =~ /\A-?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?\z/; + my $suffix = ""; + if ( 2 < $MaxArgLen and $MaxArgLen < length($arg) ) { + substr ( $arg, $MaxArgLen - 3 ) = ""; + $suffix = "..."; + } + if(UTF8_REGEXP_PROBLEM && is_utf8($arg)) { + for(my $i = length($arg); $i--; ) { + my $c = substr($arg, $i, 1); + my $x = substr($arg, 0, 0); # work around bug on Perl 5.8.{1,2} + if($c eq "\"" || $c eq "\\" || $c eq "\$" || $c eq "\@") { + substr $arg, $i, 0, "\\"; + next; + } + my $o = ord($c); + substr $arg, $i, 1, sprintf("\\x{%x}", $o) + unless is_safe_printable_codepoint($o); + } + } else { + $arg =~ s/([\"\\\$\@])/\\$1/g; + # This is all the ASCII printables spelled-out. It is portable to all + # Perl versions and platforms (such as EBCDIC). There are other more + # compact ways to do this, but may not work everywhere every version. + $arg =~ s/([^ !"#\$\%\&'()*+,\-.\/0123456789:;<=>?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]^_`abcdefghijklmnopqrstuvwxyz\{|}~])/sprintf("\\x{%x}",ord($1))/eg; + } + downgrade($arg, 1); + return "\"".$arg."\"".$suffix; +} + +sub Regexp::CARP_TRACE { + my $arg = "$_[0]"; + downgrade($arg, 1); + if(UTF8_REGEXP_PROBLEM && is_utf8($arg)) { + for(my $i = length($arg); $i--; ) { + my $o = ord(substr($arg, $i, 1)); + my $x = substr($arg, 0, 0); # work around bug on Perl 5.8.{1,2} + substr $arg, $i, 1, sprintf("\\x{%x}", $o) + unless is_safe_printable_codepoint($o); + } + } else { + # See comment in format_arg() about this same regex. + $arg =~ s/([^ !"#\$\%\&'()*+,\-.\/0123456789:;<=>?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]^_`abcdefghijklmnopqrstuvwxyz\{|}~])/sprintf("\\x{%x}",ord($1))/eg; + } + downgrade($arg, 1); + my $suffix = ""; + if($arg =~ /\A\(\?\^?([a-z]*)(?:-[a-z]*)?:(.*)\)\z/s) { + ($suffix, $arg) = ($1, $2); + } + if ( 2 < $MaxArgLen and $MaxArgLen < length($arg) ) { + substr ( $arg, $MaxArgLen - 3 ) = ""; + $suffix = "...".$suffix; + } + return "qr($arg)$suffix"; +} + +# Takes an inheritance cache and a package and returns +# an anon hash of known inheritances and anon array of +# inheritances which consequences have not been figured +# for. +sub get_status { + my $cache = shift; + my $pkg = shift; + $cache->{$pkg} ||= [ { $pkg => $pkg }, [ trusts_directly($pkg) ] ]; + return @{ $cache->{$pkg} }; +} + +# Takes the info from caller() and figures out the name of +# the sub/require/eval +sub get_subname { + my $info = shift; + if ( defined( $info->{evaltext} ) ) { + my $eval = $info->{evaltext}; + if ( $info->{is_require} ) { + return "require $eval"; + } + else { + $eval =~ s/([\\\'])/\\$1/g; + return "eval '" . str_len_trim( $eval, $MaxEvalLen ) . "'"; + } + } + + # this can happen on older perls when the sub (or the stash containing it) + # has been deleted + if ( !defined( $info->{sub} ) ) { + return '__ANON__::__ANON__'; + } + + return ( $info->{sub} eq '(eval)' ) ? 'eval {...}' : $info->{sub}; +} + +# Figures out what call (from the point of view of the caller) +# the long error backtrace should start at. +sub long_error_loc { + my $i; + my $lvl = $CarpLevel; + { + ++$i; + my $cgc = _cgc(); + my @caller = $cgc ? $cgc->($i) : caller($i); + my $pkg = $caller[0]; + unless ( defined($pkg) ) { + + # This *shouldn't* happen. + if (%Internal) { + local %Internal; + $i = long_error_loc(); + last; + } + elsif (defined $caller[2]) { + # this can happen when the stash has been deleted + # in that case, just assume that it's a reasonable place to + # stop (the file and line data will still be intact in any + # case) - the only issue is that we can't detect if the + # deleted package was internal (so don't do that then) + # -doy + redo unless 0 > --$lvl; + last; + } + else { + return 2; + } + } + redo if $CarpInternal{$pkg}; + redo unless 0 > --$lvl; + redo if $Internal{$pkg}; + } + return $i - 1; +} + +sub longmess_heavy { + if ( ref( $_[0] ) ) { # don't break references as exceptions + return wantarray ? @_ : $_[0]; + } + my $i = long_error_loc(); + return ret_backtrace( $i, @_ ); +} + +BEGIN { + if("$]" >= 5.017004) { + # The LAST_FH constant is a reference to the variable. + $Carp::{LAST_FH} = \eval '\${^LAST_FH}'; + } else { + eval '*LAST_FH = sub () { 0 }'; + } +} + +# Returns a full stack backtrace starting from where it is +# told. +sub ret_backtrace { + my ( $i, @error ) = @_; + my $mess; + my $err = join '', @error; + $i++; + + my $tid_msg = ''; + if ( defined &threads::tid ) { + my $tid = threads->tid; + $tid_msg = " thread $tid" if $tid; + } + + my %i = caller_info($i); + $mess = "$err at $i{file} line $i{line}$tid_msg"; + if( $. ) { + # Use ${^LAST_FH} if available. + if (LAST_FH) { + if (${+LAST_FH}) { + $mess .= sprintf ", <%s> %s %d", + *${+LAST_FH}{NAME}, + ($/ eq "\n" ? "line" : "chunk"), $. + } + } + else { + local $@ = ''; + local $SIG{__DIE__}; + eval { + CORE::die; + }; + if($@ =~ /^Died at .*(, <.*?> (?:line|chunk) \d+).$/ ) { + $mess .= $1; + } + } + } + $mess .= "\.\n"; + + while ( my %i = caller_info( ++$i ) ) { + $mess .= "\t$i{sub_name} called at $i{file} line $i{line}$tid_msg\n"; + } + + return $mess; +} + +sub ret_summary { + my ( $i, @error ) = @_; + my $err = join '', @error; + $i++; + + my $tid_msg = ''; + if ( defined &threads::tid ) { + my $tid = threads->tid; + $tid_msg = " thread $tid" if $tid; + } + + my %i = caller_info($i); + return "$err at $i{file} line $i{line}$tid_msg\.\n"; +} + +sub short_error_loc { + # You have to create your (hash)ref out here, rather than defaulting it + # inside trusts *on a lexical*, as you want it to persist across calls. + # (You can default it on $_[2], but that gets messy) + my $cache = {}; + my $i = 1; + my $lvl = $CarpLevel; + { + my $cgc = _cgc(); + my $called = $cgc ? $cgc->($i) : caller($i); + $i++; + my $caller = $cgc ? $cgc->($i) : caller($i); + + if (!defined($caller)) { + my @caller = $cgc ? $cgc->($i) : caller($i); + if (@caller) { + # if there's no package but there is other caller info, then + # the package has been deleted - treat this as a valid package + # in this case + redo if defined($called) && $CarpInternal{$called}; + redo unless 0 > --$lvl; + last; + } + else { + return 0; + } + } + redo if $Internal{$caller}; + redo if $CarpInternal{$caller}; + redo if $CarpInternal{$called}; + redo if trusts( $called, $caller, $cache ); + redo if trusts( $caller, $called, $cache ); + redo unless 0 > --$lvl; + } + return $i - 1; +} + +sub shortmess_heavy { + return longmess_heavy(@_) if $Verbose; + return @_ if ref( $_[0] ); # don't break references as exceptions + my $i = short_error_loc(); + if ($i) { + ret_summary( $i, @_ ); + } + else { + longmess_heavy(@_); + } +} + +# If a string is too long, trims it with ... +sub str_len_trim { + my $str = shift; + my $max = shift || 0; + if ( 2 < $max and $max < length($str) ) { + substr( $str, $max - 3 ) = '...'; + } + return $str; +} + +# Takes two packages and an optional cache. Says whether the +# first inherits from the second. +# +# Recursive versions of this have to work to avoid certain +# possible endless loops, and when following long chains of +# inheritance are less efficient. +sub trusts { + my $child = shift; + my $parent = shift; + my $cache = shift; + my ( $known, $partial ) = get_status( $cache, $child ); + + # Figure out consequences until we have an answer + while ( @$partial and not exists $known->{$parent} ) { + my $anc = shift @$partial; + next if exists $known->{$anc}; + $known->{$anc}++; + my ( $anc_knows, $anc_partial ) = get_status( $cache, $anc ); + my @found = keys %$anc_knows; + @$known{@found} = (); + push @$partial, @$anc_partial; + } + return exists $known->{$parent}; +} + +# Takes a package and gives a list of those trusted directly +sub trusts_directly { + my $class = shift; + no strict 'refs'; + my $stash = \%{"$class\::"}; + for my $var (qw/ CARP_NOT ISA /) { + # Don't try using the variable until we know it exists, + # to avoid polluting the caller's namespace. + if ( $stash->{$var} && ref \$stash->{$var} eq 'GLOB' + && *{$stash->{$var}}{ARRAY} && @{$stash->{$var}} ) { + return @{$stash->{$var}} + } + } + return; +} + +if(!defined($warnings::VERSION) || + do { no warnings "numeric"; $warnings::VERSION < 1.03 }) { + # Very old versions of warnings.pm import from Carp. This can go + # wrong due to the circular dependency. If Carp is invoked before + # warnings, then Carp starts by loading warnings, then warnings + # tries to import from Carp, and gets nothing because Carp is in + # the process of loading and hasn't defined its import method yet. + # So we work around that by manually exporting to warnings here. + no strict "refs"; + *{"warnings::$_"} = \&$_ foreach @EXPORT; +} + +1; + +__END__ + +=head1 NAME + +Carp - alternative warn and die for modules + +=head1 SYNOPSIS + + use Carp; + + # warn user (from perspective of caller) + carp "string trimmed to 80 chars"; + + # die of errors (from perspective of caller) + croak "We're outta here!"; + + # die of errors with stack backtrace + confess "not implemented"; + + # cluck, longmess and shortmess not exported by default + use Carp qw(cluck longmess shortmess); + cluck "This is how we got here!"; # warn with stack backtrace + my $long_message = longmess( "message from cluck() or confess()" ); + my $short_message = shortmess( "message from carp() or croak()" ); + +=head1 DESCRIPTION + +The Carp routines are useful in your own modules because +they act like C or C, but with a message which is more +likely to be useful to a user of your module. In the case of +C and C, that context is a summary of every +call in the call-stack; C returns the contents of the error +message. + +For a shorter message you can use C or C which report the +error as being from where your module was called. C returns the +contents of this error message. There is no guarantee that that is where the +error was, but it is a good educated guess. + +C takes care not to clobber the status variables C<$!> and C<$^E> +in the course of assembling its error messages. This means that a +C<$SIG{__DIE__}> or C<$SIG{__WARN__}> handler can capture the error +information held in those variables, if it is required to augment the +error message, and if the code calling C left useful values there. +Of course, C can't guarantee the latter. + +You can also alter the way the output and logic of C works, by +changing some global variables in the C namespace. See the +section on L below. + +Here is a more complete description of how C and C work. +What they do is search the call-stack for a function call stack where +they have not been told that there shouldn't be an error. If every +call is marked safe, they give up and give a full stack backtrace +instead. In other words they presume that the first likely looking +potential suspect is guilty. Their rules for telling whether +a call shouldn't generate errors work as follows: + +=over 4 + +=item 1. + +Any call from a package to itself is safe. + +=item 2. + +Packages claim that there won't be errors on calls to or from +packages explicitly marked as safe by inclusion in C<@CARP_NOT>, or +(if that array is empty) C<@ISA>. The ability to override what +@ISA says is new in 5.8. + +=item 3. + +The trust in item 2 is transitive. If A trusts B, and B +trusts C, then A trusts C. So if you do not override C<@ISA> +with C<@CARP_NOT>, then this trust relationship is identical to, +"inherits from". + +=item 4. + +Any call from an internal Perl module is safe. (Nothing keeps +user modules from marking themselves as internal to Perl, but +this practice is discouraged.) + +=item 5. + +Any call to Perl's warning system (eg Carp itself) is safe. +(This rule is what keeps it from reporting the error at the +point where you call C or C.) + +=item 6. + +C<$Carp::CarpLevel> can be set to skip a fixed number of additional +call levels. Using this is not recommended because it is very +difficult to get it to behave correctly. + +=back + +=head2 Forcing a Stack Trace + +As a debugging aid, you can force Carp to treat a croak as a confess +and a carp as a cluck across I modules. In other words, force a +detailed stack trace to be given. This can be very helpful when trying +to understand why, or from where, a warning or error is being generated. + +This feature is enabled by 'importing' the non-existent symbol +'verbose'. You would typically enable it by saying + + perl -MCarp=verbose script.pl + +or by including the string C<-MCarp=verbose> in the PERL5OPT +environment variable. + +Alternately, you can set the global variable C<$Carp::Verbose> to true. +See the L section below. + +=head2 Stack Trace formatting + +At each stack level, the subroutine's name is displayed along with +its parameters. For simple scalars, this is sufficient. For complex +data types, such as objects and other references, this can simply +display C<'HASH(0x1ab36d8)'>. + +Carp gives two ways to control this. + +=over 4 + +=item 1. + +For objects, a method, C, will be called, if it exists. If +this method doesn't exist, or it recurses into C, or it otherwise +throws an exception, this is skipped, and Carp moves on to the next option, +otherwise checking stops and the string returned is used. It is recommended +that the object's type is part of the string to make debugging easier. + +=item 2. + +For any type of reference, C<$Carp::RefArgFormatter> is checked (see below). +This variable is expected to be a code reference, and the current parameter +is passed in. If this function doesn't exist (the variable is undef), or +it recurses into C, or it otherwise throws an exception, this is +skipped, and Carp moves on to the next option, otherwise checking stops +and the string returned is used. + +=item 3. + +Otherwise, if neither C nor C<$Carp::RefArgFormatter> is +available, stringify the value ignoring any overloading. + +=back + +=head1 GLOBAL VARIABLES + +=head2 $Carp::MaxEvalLen + +This variable determines how many characters of a string-eval are to +be shown in the output. Use a value of C<0> to show all text. + +Defaults to C<0>. + +=head2 $Carp::MaxArgLen + +This variable determines how many characters of each argument to a +function to print. Use a value of C<0> to show the full length of the +argument. + +Defaults to C<64>. + +=head2 $Carp::MaxArgNums + +This variable determines how many arguments to each function to show. +Use a false value to show all arguments to a function call. To suppress all +arguments, use C<-1> or C<'0 but true'>. + +Defaults to C<8>. + +=head2 $Carp::Verbose + +This variable makes C and C generate stack backtraces +just like C and C. This is how C +is implemented internally. + +Defaults to C<0>. + +=head2 $Carp::RefArgFormatter + +This variable sets a general argument formatter to display references. +Plain scalars and objects that implement C will not go through +this formatter. Calling C from within this function is not supported. + + local $Carp::RefArgFormatter = sub { + require Data::Dumper; + Data::Dumper->Dump($_[0]); # not necessarily safe + }; + +=head2 @CARP_NOT + +This variable, I, says which packages are I to be +considered as the location of an error. The C and C +functions will skip over callers when reporting where an error occurred. + +NB: This variable must be in the package's symbol table, thus: + + # These work + our @CARP_NOT; # file scope + use vars qw(@CARP_NOT); # package scope + @My::Package::CARP_NOT = ... ; # explicit package variable + + # These don't work + sub xyz { ... @CARP_NOT = ... } # w/o declarations above + my @CARP_NOT; # even at top-level + +Example of use: + + package My::Carping::Package; + use Carp; + our @CARP_NOT; + sub bar { .... or _error('Wrong input') } + sub _error { + # temporary control of where'ness, __PACKAGE__ is implicit + local @CARP_NOT = qw(My::Friendly::Caller); + carp(@_) + } + +This would make C report the error as coming from a caller not +in C, nor from C. + +Also read the L section above, about how C decides +where the error is reported from. + +Use C<@CARP_NOT>, instead of C<$Carp::CarpLevel>. + +Overrides C's use of C<@ISA>. + +=head2 %Carp::Internal + +This says what packages are internal to Perl. C will never +report an error as being from a line in a package that is internal to +Perl. For example: + + $Carp::Internal{ (__PACKAGE__) }++; + # time passes... + sub foo { ... or confess("whatever") }; + +would give a full stack backtrace starting from the first caller +outside of __PACKAGE__. (Unless that package was also internal to +Perl.) + +=head2 %Carp::CarpInternal + +This says which packages are internal to Perl's warning system. For +generating a full stack backtrace this is the same as being internal +to Perl, the stack backtrace will not start inside packages that are +listed in C<%Carp::CarpInternal>. But it is slightly different for +the summary message generated by C or C. There errors +will not be reported on any lines that are calling packages in +C<%Carp::CarpInternal>. + +For example C itself is listed in C<%Carp::CarpInternal>. +Therefore the full stack backtrace from C will not start +inside of C, and the short message from calling C is +not placed on the line where C was called. + +=head2 $Carp::CarpLevel + +This variable determines how many additional call frames are to be +skipped that would not otherwise be when reporting where an error +occurred on a call to one of C's functions. It is fairly easy +to count these call frames on calls that generate a full stack +backtrace. However it is much harder to do this accounting for calls +that generate a short message. Usually people skip too many call +frames. If they are lucky they skip enough that C goes all of +the way through the call stack, realizes that something is wrong, and +then generates a full stack backtrace. If they are unlucky then the +error is reported from somewhere misleading very high in the call +stack. + +Therefore it is best to avoid C<$Carp::CarpLevel>. Instead use +C<@CARP_NOT>, C<%Carp::Internal> and C<%Carp::CarpInternal>. + +Defaults to C<0>. + +=head1 BUGS + +The Carp routines don't handle exception objects currently. +If called with a first argument that is a reference, they simply +call die() or warn(), as appropriate. + +=head1 SEE ALSO + +L, +L + +=head1 CONTRIBUTING + +L is maintained by the perl 5 porters as part of the core perl 5 +version control repository. Please see the L perldoc for how to +submit patches and contribute to it. + +=head1 AUTHOR + +The Carp module first appeared in Larry Wall's perl 5.000 distribution. +Since then it has been modified by several of the perl 5 porters. +Andrew Main (Zefram) divested Carp into an independent +distribution. + +=head1 COPYRIGHT + +Copyright (C) 1994-2013 Larry Wall + +Copyright (C) 2011, 2012, 2013 Andrew Main (Zefram) + +=head1 LICENSE + +This module is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/git/usr/share/perl5/core_perl/DB.pm b/git/usr/share/perl5/core_perl/DB.pm new file mode 100644 index 0000000000000000000000000000000000000000..1ff3f9dea57dfe73ba3230d3d0d3580c432681bc --- /dev/null +++ b/git/usr/share/perl5/core_perl/DB.pm @@ -0,0 +1,802 @@ +# +# Documentation is at the __END__ +# + +package DB; + +# "private" globals + +my ($running, $ready, $deep, $usrctxt, $evalarg, + @stack, @saved, @skippkg, @clients); +my $preeval = {}; +my $posteval = {}; +my $ineval = {}; + +#### +# +# Globals - must be defined at startup so that clients can refer to +# them right after a C +# +#### + +BEGIN { + + # these are hardcoded in perl source (some are magical) + + $DB::sub = ''; # name of current subroutine + %DB::sub = (); # "filename:fromline-toline" for every known sub + $DB::single = 0; # single-step flag (set it to 1 to enable stops in BEGIN/use) + $DB::signal = 0; # signal flag (will cause a stop at the next line) + $DB::trace = 0; # are we tracing through subroutine calls? + @DB::args = (); # arguments of current subroutine or @ARGV array + @DB::dbline = (); # list of lines in currently loaded file + %DB::dbline = (); # actions in current file (keyed by line number) + @DB::ret = (); # return value of last sub executed in list context + $DB::ret = ''; # return value of last sub executed in scalar context + + # other "public" globals + + $DB::package = ''; # current package space + $DB::filename = ''; # current filename + $DB::subname = ''; # currently executing sub (fully qualified name) + $DB::lineno = ''; # current line number + + $DB::VERSION = $DB::VERSION = '1.09'; + + # initialize private globals to avoid warnings + + $running = 1; # are we running, or are we stopped? + @stack = (0); + @clients = (); + $deep = 1000; + $ready = 0; + @saved = (); + @skippkg = (); + $usrctxt = ''; + $evalarg = ''; +} + +#### +# entry point for all subroutine calls +# +sub sub { + push(@stack, $DB::single); + $DB::single &= 1; + $DB::single |= 4 if $#stack == $deep; + if ($DB::sub eq 'DESTROY' or substr($DB::sub, -9) eq '::DESTROY' or not defined wantarray) { + &$DB::sub; + $DB::single |= pop(@stack); + $DB::ret = undef; + } + elsif (wantarray) { + @DB::ret = &$DB::sub; + $DB::single |= pop(@stack); + @DB::ret; + } + else { + $DB::ret = &$DB::sub; + $DB::single |= pop(@stack); + $DB::ret; + } +} + +#### +# this is called by perl for every statement +# +sub DB { + return unless $ready; + &save; + ($DB::package, $DB::filename, $DB::lineno) = caller; + + return if @skippkg and grep { $_ eq $DB::package } @skippkg; + + $usrctxt = "package $DB::package;"; # this won't let them modify, alas + local(*DB::dbline) = "::_<$DB::filename"; + + my ($stop, $action); + if (($stop,$action) = split(/\0/,$DB::dbline{$DB::lineno})) { + if ($stop eq '1') { + $DB::signal |= 1; + } + else { + $stop = 0 unless $stop; # avoid un_init warning + $evalarg = "\$DB::signal |= do { $stop; }"; &eval; + $DB::dbline{$DB::lineno} =~ s/;9($|\0)/$1/; # clear any temp breakpt + } + } + if ($DB::single || $DB::trace || $DB::signal) { + $DB::subname = ($DB::sub =~ /\'|::/) ? $DB::sub : "${DB::package}::$DB::sub"; #'; + DB->loadfile($DB::filename, $DB::lineno); + } + $evalarg = $action, &eval if $action; + if ($DB::single || $DB::signal) { + _outputall($#stack . " levels deep in subroutine calls.\n") if $DB::single & 4; + $DB::single = 0; + $DB::signal = 0; + $running = 0; + + &eval if ($evalarg = DB->prestop); + my $c; + for $c (@clients) { + # perform any client-specific prestop actions + &eval if ($evalarg = $c->cprestop); + + # Now sit in an event loop until something sets $running + do { + $c->idle; # call client event loop; must not block + if ($running == 2) { # client wants something eval-ed + &eval if ($evalarg = $c->evalcode); + $running = 0; + } + } until $running; + + # perform any client-specific poststop actions + &eval if ($evalarg = $c->cpoststop); + } + &eval if ($evalarg = DB->poststop); + } + ($@, $!, $,, $/, $\, $^W) = @saved; + (); +} + +#### +# this takes its argument via $evalarg to preserve current @_ +# +sub eval { + ($@, $!, $,, $/, $\, $^W) = @saved; + eval "$usrctxt $evalarg; &DB::save"; + _outputall($@) if $@; +} + +############################################################################### +# no compile-time subroutine call allowed before this point # +############################################################################### + +use strict; # this can run only after DB() and sub() are defined + +sub save { + @saved = ($@, $!, $,, $/, $\, $^W); + $, = ""; $/ = "\n"; $\ = ""; $^W = 0; +} + +sub catch { + for (@clients) { $_->awaken; } + $DB::signal = 1; + $ready = 1; +} + +#### +# +# Client callable (read inheritable) methods defined after this point +# +#### + +sub register { + my $s = shift; + $s = _clientname($s) if ref($s); + push @clients, $s; +} + +sub done { + my $s = shift; + $s = _clientname($s) if ref($s); + @clients = grep {$_ ne $s} @clients; + $s->cleanup; +# $running = 3 unless @clients; + exit(0) unless @clients; +} + +sub _clientname { + my $name = shift; + "$name" =~ /^(.+)=[A-Z]+\(.+\)$/; + return $1; +} + +sub next { + my $s = shift; + $DB::single = 2; + $running = 1; +} + +sub step { + my $s = shift; + $DB::single = 1; + $running = 1; +} + +sub cont { + my $s = shift; + my $i = shift; + $s->set_tbreak($i) if $i; + for ($i = 0; $i <= $#stack;) { + $stack[$i++] &= ~1; + } + $DB::single = 0; + $running = 1; +} + +#### +# XXX caller must experimentally determine $i (since it depends +# on how many client call frames are between this call and the DB call). +# Such is life. +# +sub ret { + my $s = shift; + my $i = shift; # how many levels to get to DB sub + $i = 0 unless defined $i; + $stack[$#stack-$i] |= 1; + $DB::single = 0; + $running = 1; +} + +#### +# XXX caller must experimentally determine $start (since it depends +# on how many client call frames are between this call and the DB call). +# Such is life. +# +sub backtrace { + my $self = shift; + my $start = shift; + my($p,$f,$l,$s,$h,$w,$e,$r,$a, @a, @ret,$i); + $start = 1 unless $start; + for ($i = $start; ($p,$f,$l,$s,$h,$w,$e,$r) = caller($i); $i++) { + @a = @DB::args; + for (@a) { + s/'/\\'/g; + s/([^\0]*)/'$1'/ unless /^-?[\d.]+$/; + require 'meta_notation.pm'; + $_ = _meta_notation($_) if /[[:^print:]]/a; + } + $w = $w ? '@ = ' : '$ = '; + $a = $h ? '(' . join(', ', @a) . ')' : ''; + $e =~ s/\n\s*\;\s*\Z// if $e; + $e =~ s/[\\\']/\\$1/g if $e; + if ($r) { + $s = "require '$e'"; + } elsif (defined $r) { + $s = "eval '$e'"; + } elsif ($s eq '(eval)') { + $s = "eval {...}"; + } + $f = "file '$f'" unless $f eq '-e'; + push @ret, "$w&$s$a from $f line $l"; + last if $DB::signal; + } + return @ret; +} + +sub _outputall { + my $c; + for $c (@clients) { + $c->output(@_); + } +} + +sub trace_toggle { + my $s = shift; + $DB::trace = !$DB::trace; +} + + +#### +# without args: returns all defined subroutine names +# with subname args: returns a listref [file, start, end] +# +sub subs { + my $s = shift; + if (@_) { + my(@ret) = (); + while (@_) { + my $name = shift; + push @ret, [$DB::sub{$name} =~ /^(.*)\:(\d+)-(\d+)$/] + if exists $DB::sub{$name}; + } + return @ret; + } + return keys %DB::sub; +} + +#### +# first argument is a filename whose subs will be returned +# if a filename is not supplied, all subs in the current +# filename are returned. +# +sub filesubs { + my $s = shift; + my $fname = shift; + $fname = $DB::filename unless $fname; + return grep { $DB::sub{$_} =~ /^$fname/ } keys %DB::sub; +} + +#### +# returns a list of all filenames that DB knows about +# +sub files { + my $s = shift; + my(@f) = grep(m|^_<|, keys %main::); + return map { substr($_,2) } @f; +} + +#### +# returns reference to an array holding the lines in currently +# loaded file +# +sub lines { + my $s = shift; + return \@DB::dbline; +} + +#### +# loadfile($file, $line) +# +sub loadfile { + my $s = shift; + my($file, $line) = @_; + if (!defined $main::{'_<' . $file}) { + my $try; + if (($try) = grep(m|^_<.*$file|, keys %main::)) { + $file = substr($try,2); + } + } + if (defined($main::{'_<' . $file})) { + my $c; +# _outputall("Loading file $file.."); + *DB::dbline = "::_<$file"; + $DB::filename = $file; + for $c (@clients) { +# print "2 ", $file, '|', $line, "\n"; + $c->showfile($file, $line); + } + return $file; + } + return undef; +} + +sub lineevents { + my $s = shift; + my $fname = shift; + my(%ret) = (); + my $i; + $fname = $DB::filename unless $fname; + local(*DB::dbline) = "::_<$fname"; + for ($i = 1; $i <= $#DB::dbline; $i++) { + $ret{$i} = [$DB::dbline[$i], split(/\0/, $DB::dbline{$i})] + if defined $DB::dbline{$i}; + } + return %ret; +} + +sub set_break { + my $s = shift; + my $i = shift; + my $cond = shift; + $i ||= $DB::lineno; + $cond ||= '1'; + $i = _find_subline($i) if ($i =~ /\D/); + $s->output("Subroutine not found.\n") unless $i; + if ($i) { + if ($DB::dbline[$i] == 0) { + $s->output("Line $i not breakable.\n"); + } + else { + $DB::dbline{$i} =~ s/^[^\0]*/$cond/; + } + } +} + +sub set_tbreak { + my $s = shift; + my $i = shift; + $i = _find_subline($i) if ($i =~ /\D/); + $s->output("Subroutine not found.\n") unless $i; + if ($i) { + if ($DB::dbline[$i] == 0) { + $s->output("Line $i not breakable.\n"); + } + else { + $DB::dbline{$i} =~ s/($|\0)/;9$1/; # add one-time-only b.p. + } + } +} + +sub _find_subline { + my $name = shift; + $name =~ s/\'/::/; + $name = "${DB::package}\:\:" . $name if $name !~ /::/; + $name = "main" . $name if substr($name,0,2) eq "::"; + my($fname, $from, $to) = ($DB::sub{$name} =~ /^(.*):(\d+)-(\d+)$/); + if ($from) { + local *DB::dbline = "::_<$fname"; + ++$from while $DB::dbline[$from] == 0 && $from < $to; + return $from; + } + return undef; +} + +sub clr_breaks { + my $s = shift; + my $i; + if (@_) { + while (@_) { + $i = shift; + $i = _find_subline($i) if ($i =~ /\D/); + $s->output("Subroutine not found.\n") unless $i; + if (defined $DB::dbline{$i}) { + $DB::dbline{$i} =~ s/^[^\0]+//; + if ($DB::dbline{$i} =~ s/^\0?$//) { + delete $DB::dbline{$i}; + } + } + } + } + else { + for ($i = 1; $i <= $#DB::dbline ; $i++) { + if (defined $DB::dbline{$i}) { + $DB::dbline{$i} =~ s/^[^\0]+//; + if ($DB::dbline{$i} =~ s/^\0?$//) { + delete $DB::dbline{$i}; + } + } + } + } +} + +sub set_action { + my $s = shift; + my $i = shift; + my $act = shift; + $i = _find_subline($i) if ($i =~ /\D/); + $s->output("Subroutine not found.\n") unless $i; + if ($i) { + if ($DB::dbline[$i] == 0) { + $s->output("Line $i not actionable.\n"); + } + else { + $DB::dbline{$i} =~ s/\0[^\0]*//; + $DB::dbline{$i} .= "\0" . $act; + } + } +} + +sub clr_actions { + my $s = shift; + my $i; + if (@_) { + while (@_) { + my $i = shift; + $i = _find_subline($i) if ($i =~ /\D/); + $s->output("Subroutine not found.\n") unless $i; + if ($i && $DB::dbline[$i] != 0) { + $DB::dbline{$i} =~ s/\0[^\0]*//; + delete $DB::dbline{$i} if $DB::dbline{$i} =~ s/^\0?$//; + } + } + } + else { + for ($i = 1; $i <= $#DB::dbline ; $i++) { + if (defined $DB::dbline{$i}) { + $DB::dbline{$i} =~ s/\0[^\0]*//; + delete $DB::dbline{$i} if $DB::dbline{$i} =~ s/^\0?$//; + } + } + } +} + +sub prestop { + my ($client, $val) = @_; + return defined($val) ? $preeval->{$client} = $val : $preeval->{$client}; +} + +sub poststop { + my ($client, $val) = @_; + return defined($val) ? $posteval->{$client} = $val : $posteval->{$client}; +} + +# +# "pure virtual" methods +# + +# client-specific pre/post-stop actions. +sub cprestop {} +sub cpoststop {} + +# client complete startup +sub awaken {} + +sub skippkg { + my $s = shift; + push @skippkg, @_ if @_; +} + +sub evalcode { + my ($client, $val) = @_; + if (defined $val) { + $running = 2; # hand over to DB() to evaluate in its context + $ineval->{$client} = $val; + } + return $ineval->{$client}; +} + +sub ready { + my $s = shift; + return $ready = 1; +} + +# stubs + +sub init {} +sub stop {} +sub idle {} +sub cleanup {} +sub output {} + +# +# client init +# +for (@clients) { $_->init } + +$SIG{'INT'} = \&DB::catch; + +# disable this if stepping through END blocks is desired +# (looks scary and deconstructivist with Swat) +END { $ready = 0 } + +1; +__END__ + +=head1 NAME + +DB - programmatic interface to the Perl debugging API + +=head1 SYNOPSIS + + package CLIENT; + use DB; + @ISA = qw(DB); + + # these (inherited) methods can be called by the client + + CLIENT->register() # register a client package name + CLIENT->done() # de-register from the debugging API + CLIENT->skippkg('hide::hide') # ask DB not to stop in this package + CLIENT->cont([WHERE]) # run some more (until BREAK or + # another breakpoint) + CLIENT->step() # single step + CLIENT->next() # step over + CLIENT->ret() # return from current subroutine + CLIENT->backtrace() # return the call stack description + CLIENT->ready() # call when client setup is done + CLIENT->trace_toggle() # toggle subroutine call trace mode + CLIENT->subs([SUBS]) # return subroutine information + CLIENT->files() # return list of all files known to DB + CLIENT->lines() # return lines in currently loaded file + CLIENT->loadfile(FILE,LINE) # load a file and let other clients know + CLIENT->lineevents() # return info on lines with actions + CLIENT->set_break([WHERE],[COND]) + CLIENT->set_tbreak([WHERE]) + CLIENT->clr_breaks([LIST]) + CLIENT->set_action(WHERE,ACTION) + CLIENT->clr_actions([LIST]) + CLIENT->evalcode(STRING) # eval STRING in executing code's context + CLIENT->prestop([STRING]) # execute in code context before stopping + CLIENT->poststop([STRING])# execute in code context before resuming + + # These methods will be called at the appropriate times. + # Stub versions provided do nothing. + # None of these can block. + + CLIENT->init() # called when debug API inits itself + CLIENT->stop(FILE,LINE) # when execution stops + CLIENT->idle() # while stopped (can be a client event loop) + CLIENT->cleanup() # just before exit + CLIENT->output(LIST) # called to print any output that + # the API must show + +=head1 DESCRIPTION + +Perl debug information is frequently required not just by debuggers, +but also by modules that need some "special" information to do their +job properly, like profilers. + +This module abstracts and provides all of the hooks into Perl internal +debugging functionality, so that various implementations of Perl debuggers +(or packages that want to simply get at the "privileged" debugging data) +can all benefit from the development of this common code. Currently used +by Swat, the perl/Tk GUI debugger. + +Note that multiple "front-ends" can latch into this debugging API +simultaneously. This is intended to facilitate things like +debugging with a command line and GUI at the same time, debugging +debuggers etc. [Sounds nice, but this needs some serious support -- GSAR] + +In particular, this API does B provide the following functions: + +=over 4 + +=item * + +data display + +=item * + +command processing + +=item * + +command alias management + +=item * + +user interface (tty or graphical) + +=back + +These are intended to be services performed by the clients of this API. + +This module attempts to be squeaky clean w.r.t C and when +warnings are enabled. + + +=head2 Global Variables + +The following "public" global names can be read by clients of this API. +Beware that these should be considered "readonly". + +=over 8 + +=item $DB::sub + +Name of current executing subroutine. + +=item %DB::sub + +The keys of this hash are the names of all the known subroutines. Each value +is an encoded string that has the sprintf(3) format +C<("%s:%d-%d", filename, fromline, toline)>. + +=item $DB::single + +Single-step flag. Will be true if the API will stop at the next statement. + +=item $DB::signal + +Signal flag. Will be set to a true value if a signal was caught. Clients may +check for this flag to abort time-consuming operations. + +=item $DB::trace + +This flag is set to true if the API is tracing through subroutine calls. + +=item @DB::args + +Contains the arguments of current subroutine, or the C<@ARGV> array if in the +toplevel context. + +=item @DB::dbline + +List of lines in currently loaded file. + +=item %DB::dbline + +Actions in current file (keys are line numbers). The values are strings that +have the sprintf(3) format C<("%s\000%s", breakcondition, actioncode)>. + +=item $DB::package + +Package namespace of currently executing code. + +=item $DB::filename + +Currently loaded filename. + +=item $DB::subname + +Fully qualified name of currently executing subroutine. + +=item $DB::lineno + +Line number that will be executed next. + +=back + +=head2 API Methods + +The following are methods in the DB base class. A client must +access these methods by inheritance (*not* by calling them directly), +since the API keeps track of clients through the inheritance +mechanism. + +=over 8 + +=item CLIENT->register() + +register a client object/package + +=item CLIENT->evalcode(STRING) + +eval STRING in executing code context + +=item CLIENT->skippkg('D::hide') + +ask DB not to stop in these packages + +=item CLIENT->run() + +run some more (until a breakpt is reached) + +=item CLIENT->step() + +single step + +=item CLIENT->next() + +step over + +=item CLIENT->done() + +de-register from the debugging API + +=back + +=head2 Client Callback Methods + +The following "virtual" methods can be defined by the client. They will +be called by the API at appropriate points. Note that unless specified +otherwise, the debug API only defines empty, non-functional default versions +of these methods. + +=over 8 + +=item CLIENT->init() + +Called after debug API inits itself. + +=item CLIENT->prestop([STRING]) + +Usually inherited from DB package. If no arguments are passed, +returns the prestop action string. + +=item CLIENT->stop() + +Called when execution stops (w/ args file, line). + +=item CLIENT->idle() + +Called while stopped (can be a client event loop). + +=item CLIENT->poststop([STRING]) + +Usually inherited from DB package. If no arguments are passed, +returns the poststop action string. + +=item CLIENT->evalcode(STRING) + +Usually inherited from DB package. Ask for a STRING to be C-ed +in executing code context. + +=item CLIENT->cleanup() + +Called just before exit. + +=item CLIENT->output(LIST) + +Called when API must show a message (warnings, errors etc.). + + +=back + + +=head1 BUGS + +The interface defined by this module is missing some of the later additions +to perl's debugging functionality. As such, this interface should be considered +highly experimental and subject to change. + +=head1 AUTHOR + +Gurusamy Sarathy gsar@activestate.com + +This code heavily adapted from an early version of perl5db.pl attributable +to Larry Wall and the Perl Porters. + +=cut diff --git a/git/usr/share/perl5/core_perl/DBM_Filter.pm b/git/usr/share/perl5/core_perl/DBM_Filter.pm new file mode 100644 index 0000000000000000000000000000000000000000..094ba5917bb52cdcf40c468c3d9b82562006686b --- /dev/null +++ b/git/usr/share/perl5/core_perl/DBM_Filter.pm @@ -0,0 +1,600 @@ +package DBM_Filter ; + +use strict; +use warnings; + +our $VERSION = '0.07'; + +package + Tie::Hash ; + +use Carp; + + +our %LayerStack = (); +our %origDESTROY = (); + +our %Filters = map { $_, undef } qw( + Fetch_Key + Fetch_Value + Store_Key + Store_Value + ); + +our %Options = map { $_, 1 } qw( + fetch + store + ); + +#sub Filter_Enable +#{ +#} +# +#sub Filter_Disable +#{ +#} + +sub Filtered +{ + my $this = shift; + return defined $LayerStack{$this} ; +} + +sub Filter_Pop +{ + my $this = shift; + my $stack = $LayerStack{$this} || return undef ; + my $filter = pop @{ $stack }; + + # remove the filter hooks if this is the last filter to pop + if ( @{ $stack } == 0 ) { + $this->filter_store_key ( undef ); + $this->filter_store_value( undef ); + $this->filter_fetch_key ( undef ); + $this->filter_fetch_value( undef ); + delete $LayerStack{$this}; + } + + return $filter; +} + +sub Filter_Key_Push +{ + &_do_Filter_Push; +} + +sub Filter_Value_Push +{ + &_do_Filter_Push; +} + + +sub Filter_Push +{ + &_do_Filter_Push; +} + +sub _do_Filter_Push +{ + my $this = shift; + my %callbacks = (); + my $caller = (caller(1))[3]; + $caller =~ s/^.*:://; + + croak "$caller: no parameters present" unless @_ ; + + if ( ! $Options{lc $_[0]} ) { + my $class = shift; + my @params = @_; + + # if $class already contains "::", don't prefix "DBM_Filter::" + $class = "DBM_Filter::$class" unless $class =~ /::/; + + no strict 'refs'; + # does the "DBM_Filter::$class" exist? + if ( ! %{ "${class}::"} ) { + # Nope, so try to load it. + eval " require $class ; " ; + croak "$caller: Cannot Load DBM Filter '$class': $@" if $@; + } + + my $fetch = *{ "${class}::Fetch" }{CODE}; + my $store = *{ "${class}::Store" }{CODE}; + my $filter = *{ "${class}::Filter" }{CODE}; + use strict 'refs'; + + my $count = defined($filter) + defined($store) + defined($fetch) ; + + if ( $count == 0 ) + { croak "$caller: No methods (Filter, Fetch or Store) found in class '$class'" } + elsif ( $count == 1 && ! defined $filter) { + my $need = defined($fetch) ? 'Store' : 'Fetch'; + croak "$caller: Missing method '$need' in class '$class'" ; + } + elsif ( $count >= 2 && defined $filter) + { croak "$caller: Can't mix Filter with Store and Fetch in class '$class'" } + + if (defined $filter) { + my $callbacks = &{ $filter }(@params); + croak "$caller: '${class}::Filter' did not return a hash reference" + unless ref $callbacks && ref $callbacks eq 'HASH'; + %callbacks = %{ $callbacks } ; + } + else { + $callbacks{Fetch} = $fetch; + $callbacks{Store} = $store; + } + } + else { + croak "$caller: not even params" unless @_ % 2 == 0; + %callbacks = @_; + } + + my %filters = %Filters ; + my @got = (); + while (my ($k, $v) = each %callbacks ) + { + my $key = $k; + $k = lc $k; + if ($k eq 'fetch') { + push @got, 'Fetch'; + if ($caller eq 'Filter_Push') + { $filters{Fetch_Key} = $filters{Fetch_Value} = $v } + elsif ($caller eq 'Filter_Key_Push') + { $filters{Fetch_Key} = $v } + elsif ($caller eq 'Filter_Value_Push') + { $filters{Fetch_Value} = $v } + } + elsif ($k eq 'store') { + push @got, 'Store'; + if ($caller eq 'Filter_Push') + { $filters{Store_Key} = $filters{Store_Value} = $v } + elsif ($caller eq 'Filter_Key_Push') + { $filters{Store_Key} = $v } + elsif ($caller eq 'Filter_Value_Push') + { $filters{Store_Value} = $v } + } + else + { croak "$caller: Unknown key '$key'" } + + croak "$caller: value associated with key '$key' is not a code reference" + unless ref $v && ref $v eq 'CODE'; + } + + if ( @got != 2 ) { + push @got, 'neither' if @got == 0 ; + croak "$caller: expected both Store & Fetch - got @got"; + } + + # remember the class + push @{ $LayerStack{$this} }, \%filters ; + + my $str_this = "$this" ; # Avoid a closure with $this in the subs below + + $this->filter_store_key ( sub { store_hook($str_this, 'Store_Key') }); + $this->filter_store_value( sub { store_hook($str_this, 'Store_Value') }); + $this->filter_fetch_key ( sub { fetch_hook($str_this, 'Fetch_Key') }); + $this->filter_fetch_value( sub { fetch_hook($str_this, 'Fetch_Value') }); + + # Hijack the callers DESTROY method + $this =~ /^(.*)=/; + my $type = $1 ; + no strict 'refs'; + if ( *{ "${type}::DESTROY" }{CODE} ne \&MyDESTROY ) + { + $origDESTROY{$type} = *{ "${type}::DESTROY" }{CODE}; + no warnings 'redefine'; + *{ "${type}::DESTROY" } = \&MyDESTROY ; + } +} + +sub store_hook +{ + my $this = shift ; + my $type = shift ; + foreach my $layer (@{ $LayerStack{$this} }) + { + &{ $layer->{$type} }() if defined $layer->{$type} ; + } +} + +sub fetch_hook +{ + my $this = shift ; + my $type = shift ; + foreach my $layer (reverse @{ $LayerStack{$this} }) + { + &{ $layer->{$type} }() if defined $layer->{$type} ; + } +} + +sub MyDESTROY +{ + my $this = shift ; + delete $LayerStack{$this} ; + + # call real DESTROY + $this =~ /^(.*)=/; + &{ $origDESTROY{$1} }($this); +} + +1; + +__END__ + +=head1 NAME + +DBM_Filter -- Filter DBM keys/values + +=head1 SYNOPSIS + + use DBM_Filter ; + use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File + + $db = tie %hash, ... + + $db->Filter_Push(Fetch => sub {...}, + Store => sub {...}); + + $db->Filter_Push('my_filter1'); + $db->Filter_Push('my_filter2', params...); + + $db->Filter_Key_Push(...) ; + $db->Filter_Value_Push(...) ; + + $db->Filter_Pop(); + $db->Filtered(); + + package DBM_Filter::my_filter1; + + sub Store { ... } + sub Fetch { ... } + + 1; + + package DBM_Filter::my_filter2; + + sub Filter + { + my @opts = @_; + ... + return ( + sub Store { ... }, + sub Fetch { ... } ); + } + + 1; + +=head1 DESCRIPTION + +This module provides an interface that allows filters to be applied +to tied Hashes associated with DBM files. It builds on the DBM Filter +hooks that are present in all the *DB*_File modules included with the +standard Perl source distribution from version 5.6.1 onwards. In addition +to the *DB*_File modules distributed with Perl, the BerkeleyDB module, +available on CPAN, supports the DBM Filter hooks. See L +for more details on the DBM Filter hooks. + +=head1 What is a DBM Filter? + +A DBM Filter allows the keys and/or values in a tied hash to be modified +by some user-defined code just before it is written to the DBM file and +just after it is read back from the DBM file. For example, this snippet +of code + + $some_hash{"abc"} = 42; + +could potentially trigger two filters, one for the writing of the key +"abc" and another for writing the value 42. Similarly, this snippet + + my ($key, $value) = each %some_hash + +will trigger two filters, one for the reading of the key and one for +the reading of the value. + +Like the existing DBM Filter functionality, this module arranges for the +C<$_> variable to be populated with the key or value that a filter will +check. This usually means that most DBM filters tend to be very short. + +=head2 So what's new? + +The main enhancements over the standard DBM Filter hooks are: + +=over 4 + +=item * + +A cleaner interface. + +=item * + +The ability to easily apply multiple filters to a single DBM file. + +=item * + +The ability to create "canned" filters. These allow commonly used filters +to be packaged into a stand-alone module. + +=back + +=head1 METHODS + +This module will arrange for the following methods to be available via +the object returned from the C call. + +=head2 $db->Filter_Push() / $db->Filter_Key_Push() / $db->Filter_Value_Push() + +Add a filter to filter stack for the database, C<$db>. The three formats +vary only in whether they apply to the DBM key, the DBM value or both. + +=over 5 + +=item Filter_Push + +The filter is applied to I keys and values. + +=item Filter_Key_Push + +The filter is applied to the key I. + +=item Filter_Value_Push + +The filter is applied to the value I. + +=back + + +=head2 $db->Filter_Pop() + +Removes the last filter that was applied to the DBM file associated with +C<$db>, if present. + +=head2 $db->Filtered() + +Returns TRUE if there are any filters applied to the DBM associated +with C<$db>. Otherwise returns FALSE. + + + +=head1 Writing a Filter + +Filters can be created in two main ways + +=head2 Immediate Filters + +An immediate filter allows you to specify the filter code to be used +at the point where the filter is applied to a dbm. In this mode the +Filter_*_Push methods expects to receive exactly two parameters. + + my $db = tie %hash, 'SDBM_File', ... + $db->Filter_Push( Store => sub { }, + Fetch => sub { }); + +The code reference associated with C will be called before any +key/value is written to the database and the code reference associated +with C will be called after any key/value is read from the +database. + +For example, here is a sample filter that adds a trailing NULL character +to all strings before they are written to the DBM file, and removes the +trailing NULL when they are read from the DBM file + + my $db = tie %hash, 'SDBM_File', ... + $db->Filter_Push( Store => sub { $_ .= "\x00" ; }, + Fetch => sub { s/\x00$// ; }); + + +Points to note: + +=over 5 + +=item 1. + +Both the Store and Fetch filters manipulate C<$_>. + +=back + +=head2 Canned Filters + +Immediate filters are useful for one-off situations. For more generic +problems it can be useful to package the filter up in its own module. + +The usage is for a canned filter is: + + $db->Filter_Push("name", params) + +where + +=over 5 + +=item "name" + +is the name of the module to load. If the string specified does not +contain the package separator characters "::", it is assumed to refer to +the full module name "DBM_Filter::name". This means that the full names +for canned filters, "null" and "utf8", included with this module are: + + DBM_Filter::null + DBM_Filter::utf8 + +=item params + +any optional parameters that need to be sent to the filter. See the +encode filter for an example of a module that uses parameters. + +=back + +The module that implements the canned filter can take one of two +forms. Here is a template for the first + + package DBM_Filter::null ; + + use strict; + use warnings; + + sub Store + { + # store code here + } + + sub Fetch + { + # fetch code here + } + + 1; + + +Notes: + +=over 5 + +=item 1. + +The package name uses the C prefix. + +=item 2. + +The module I have both a Store and a Fetch method. If only one is +present, or neither are present, a fatal error will be thrown. + +=back + +The second form allows the filter to hold state information using a +closure, thus: + + package DBM_Filter::encoding ; + + use strict; + use warnings; + + sub Filter + { + my @params = @_ ; + + ... + return { + Store => sub { $_ = $encoding->encode($_) }, + Fetch => sub { $_ = $encoding->decode($_) } + } ; + } + + 1; + + +In this instance the "Store" and "Fetch" methods are encapsulated inside a +"Filter" method. + + +=head1 Filters Included + +A number of canned filers are provided with this module. They cover a +number of the main areas that filters are needed when interfacing with +DBM files. They also act as templates for your own filters. + +The filter included are: + +=over 5 + +=item * utf8 + +This module will ensure that all data written to the DBM will be encoded +in UTF-8. + +This module needs the Encode module. + +=item * encode + +Allows you to choose the character encoding will be store in the DBM file. + +=item * compress + +This filter will compress all data before it is written to the database +and uncompressed it on reading. + +This module needs Compress::Zlib. + +=item * int32 + +This module is used when interoperating with a C/C++ application that +uses a C int as either the key and/or value in the DBM file. + +=item * null + +This module ensures that all data written to the DBM file is null +terminated. This is useful when you have a perl script that needs +to interoperate with a DBM file that a C program also uses. A fairly +common issue is for the C application to include the terminating null +in a string when it writes to the DBM file. This filter will ensure that +all data written to the DBM file can be read by the C application. + +=back + +=head1 NOTES + +=head2 Maintain Round Trip Integrity + +When writing a DBM filter it is I important to ensure that it is +possible to retrieve all data that you have written when the DBM filter +is in place. In practice, this means that whatever transformation is +applied to the data in the Store method, the I inverse operation +should be applied in the Fetch method. + +If you don't provide an exact inverse transformation, you will find that +code like this will not behave as you expect. + + while (my ($k, $v) = each %hash) + { + ... + } + +Depending on the transformation, you will find that one or more of the +following will happen + +=over 5 + +=item 1 + +The loop will never terminate. + +=item 2 + +Too few records will be retrieved. + +=item 3 + +Too many will be retrieved. + +=item 4 + +The loop will do the right thing for a while, but it will unexpectedly fail. + +=back + +=head2 Don't mix filtered & non-filtered data in the same database file. + +This is just a restatement of the previous section. Unless you are +completely certain you know what you are doing, avoid mixing filtered & +non-filtered data. + +=head1 EXAMPLE + +Say you need to interoperate with a legacy C application that stores +keys as C ints and the values and null terminated UTF-8 strings. Here +is how you would set that up + + my $db = tie %hash, 'SDBM_File', ... + + $db->Filter_Key_Push('int32') ; + + $db->Filter_Value_Push('utf8'); + $db->Filter_Value_Push('null'); + +=head1 SEE ALSO + +, L, L, L, L, L + +=head1 AUTHOR + +Paul Marquess + diff --git a/git/usr/share/perl5/core_perl/Digest.pm b/git/usr/share/perl5/core_perl/Digest.pm new file mode 100644 index 0000000000000000000000000000000000000000..b62ef64d859a356d49e78a03df82d3a23e984518 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Digest.pm @@ -0,0 +1,334 @@ +package Digest; + +use strict; +use warnings; + +our $VERSION = "1.20"; + +our %MMAP = ( + "SHA-1" => [ [ "Digest::SHA", 1 ], "Digest::SHA1", [ "Digest::SHA2", 1 ] ], + "SHA-224" => [ [ "Digest::SHA", 224 ] ], + "SHA-256" => [ [ "Digest::SHA", 256 ], [ "Digest::SHA2", 256 ] ], + "SHA-384" => [ [ "Digest::SHA", 384 ], [ "Digest::SHA2", 384 ] ], + "SHA-512" => [ [ "Digest::SHA", 512 ], [ "Digest::SHA2", 512 ] ], + "SHA3-224" => [ [ "Digest::SHA3", 224 ] ], + "SHA3-256" => [ [ "Digest::SHA3", 256 ] ], + "SHA3-384" => [ [ "Digest::SHA3", 384 ] ], + "SHA3-512" => [ [ "Digest::SHA3", 512 ] ], + "HMAC-MD5" => "Digest::HMAC_MD5", + "HMAC-SHA-1" => "Digest::HMAC_SHA1", + "CRC-16" => [ [ "Digest::CRC", type => "crc16" ] ], + "CRC-32" => [ [ "Digest::CRC", type => "crc32" ] ], + "CRC-CCITT" => [ [ "Digest::CRC", type => "crcccitt" ] ], + "RIPEMD-160" => "Crypt::RIPEMD160", +); + +sub new { + shift; # class ignored + my $algorithm = shift; + my $impl = $MMAP{$algorithm} || do { + $algorithm =~ s/\W+//g; + "Digest::$algorithm"; + }; + $impl = [$impl] unless ref($impl); + local $@; # don't clobber it for our caller + my $err; + for (@$impl) { + my $class = $_; + my @args; + ( $class, @args ) = @$class if ref($class); + no strict 'refs'; + unless ( exists ${"$class\::"}{"VERSION"} ) { + my $pm_file = $class . ".pm"; + $pm_file =~ s{::}{/}g; + eval { + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + require $pm_file + }; + if ($@) { + $err ||= $@; + next; + } + } + return $class->new( @args, @_ ); + } + die $err; +} + +our $AUTOLOAD; + +sub AUTOLOAD { + my $class = shift; + my $algorithm = substr( $AUTOLOAD, rindex( $AUTOLOAD, '::' ) + 2 ); + $class->new( $algorithm, @_ ); +} + +1; + +__END__ + +=head1 NAME + +Digest - Modules that calculate message digests + +=head1 SYNOPSIS + + $md5 = Digest->new("MD5"); + $sha1 = Digest->new("SHA-1"); + $sha256 = Digest->new("SHA-256"); + $sha384 = Digest->new("SHA-384"); + $sha512 = Digest->new("SHA-512"); + + $hmac = Digest->HMAC_MD5($key); + +=head1 DESCRIPTION + +The C modules calculate digests, also called "fingerprints" +or "hashes", of some data, called a message. The digest is (usually) +some small/fixed size string. The actual size of the digest depend of +the algorithm used. The message is simply a sequence of arbitrary +bytes or bits. + +An important property of the digest algorithms is that the digest is +I to change if the message change in some way. Another +property is that digest functions are one-way functions, that is it +should be I to find a message that correspond to some given +digest. Algorithms differ in how "likely" and how "hard", as well as +how efficient they are to compute. + +Note that the properties of the algorithms change over time, as the +algorithms are analyzed and machines grow faster. If your application +for instance depends on it being "impossible" to generate the same +digest for a different message it is wise to make it easy to plug in +stronger algorithms as the one used grow weaker. Using the interface +documented here should make it easy to change algorithms later. + +All C modules provide the same programming interface. A +functional interface for simple use, as well as an object oriented +interface that can handle messages of arbitrary length and which can +read files directly. + +The digest can be delivered in three formats: + +=over 8 + +=item I + +This is the most compact form, but it is not well suited for printing +or embedding in places that can't handle arbitrary data. + +=item I + +A twice as long string of lowercase hexadecimal digits. + +=item I + +A string of portable printable characters. This is the base64 encoded +representation of the digest with any trailing padding removed. The +string will be about 30% longer than the binary version. +L tells you more about this encoding. + +=back + + +The functional interface is simply importable functions with the same +name as the algorithm. The functions take the message as argument and +return the digest. Example: + + use Digest::MD5 qw(md5); + $digest = md5($message); + +There are also versions of the functions with "_hex" or "_base64" +appended to the name, which returns the digest in the indicated form. + +=head1 OO INTERFACE + +The following methods are available for all C modules: + +=over 4 + +=item $ctx = Digest->XXX($arg,...) + +=item $ctx = Digest->new(XXX => $arg,...) + +=item $ctx = Digest::XXX->new($arg,...) + +The constructor returns some object that encapsulate the state of the +message-digest algorithm. You can add data to the object and finally +ask for the digest. The "XXX" should of course be replaced by the proper +name of the digest algorithm you want to use. + +The two first forms are simply syntactic sugar which automatically +load the right module on first use. The second form allow you to use +algorithm names which contains letters which are not legal perl +identifiers, e.g. "SHA-1". If no implementation for the given algorithm +can be found, then an exception is raised. + +To know what arguments (if any) the constructor takes (the C<$args,...> above) +consult the docs for the specific digest implementation. + +If new() is called as an instance method (i.e. $ctx->new) it will just +reset the state the object to the state of a newly created object. No +new object is created in this case, and the return value is the +reference to the object (i.e. $ctx). + +=item $other_ctx = $ctx->clone + +The clone method creates a copy of the digest state object and returns +a reference to the copy. + +=item $ctx->reset + +This is just an alias for $ctx->new. + +=item $ctx->add( $data ) + +=item $ctx->add( $chunk1, $chunk2, ... ) + +The string value of the $data provided as argument is appended to the +message we calculate the digest for. The return value is the $ctx +object itself. + +If more arguments are provided then they are all appended to the +message, thus all these lines will have the same effect on the state +of the $ctx object: + + $ctx->add("a"); $ctx->add("b"); $ctx->add("c"); + $ctx->add("a")->add("b")->add("c"); + $ctx->add("a", "b", "c"); + $ctx->add("abc"); + +Most algorithms are only defined for strings of bytes and this method +might therefore croak if the provided arguments contain chars with +ordinal number above 255. + +=item $ctx->addfile( $io_handle ) + +The $io_handle is read until EOF and the content is appended to the +message we calculate the digest for. The return value is the $ctx +object itself. + +The addfile() method will croak() if it fails reading data for some +reason. If it croaks it is unpredictable what the state of the $ctx +object will be in. The addfile() method might have been able to read +the file partially before it failed. It is probably wise to discard +or reset the $ctx object if this occurs. + +In most cases you want to make sure that the $io_handle is in +"binmode" before you pass it as argument to the addfile() method. + +=item $ctx->add_bits( $data, $nbits ) + +=item $ctx->add_bits( $bitstring ) + +The add_bits() method is an alternative to add() that allow partial +bytes to be appended to the message. Most users can just ignore +this method since typical applications involve only whole-byte data. + +The two argument form of add_bits() will add the first $nbits bits +from $data. For the last potentially partial byte only the high order +C<< $nbits % 8 >> bits are used. If $nbits is greater than C<< +length($data) * 8 >>, then this method would do the same as C<< +$ctx->add($data) >>. + +The one argument form of add_bits() takes a $bitstring of "1" and "0" +chars as argument. It's a shorthand for C<< $ctx->add_bits(pack("B*", +$bitstring), length($bitstring)) >>. + +The return value is the $ctx object itself. + +This example shows two calls that should have the same effect: + + $ctx->add_bits("111100001010"); + $ctx->add_bits("\xF0\xA0", 12); + +Most digest algorithms are byte based and for these it is not possible +to add bits that are not a multiple of 8, and the add_bits() method +will croak if you try. + +=item $ctx->digest + +Return the binary digest for the message. + +Note that the C operation is effectively a destructive, +read-once operation. Once it has been performed, the $ctx object is +automatically C and can be used to calculate another digest +value. Call $ctx->clone->digest if you want to calculate the digest +without resetting the digest state. + +=item $ctx->hexdigest + +Same as $ctx->digest, but will return the digest in hexadecimal form. + +=item $ctx->b64digest + +Same as $ctx->digest, but will return the digest as a base64 encoded +string without padding. + +=item $ctx->base64_padded_digest + +Same as $ctx->digest, but will return the digest as a base64 encoded +string. + +=back + +=head1 Digest speed + +This table should give some indication on the relative speed of +different algorithms. It is sorted by throughput based on a benchmark +done with of some implementations of this API: + + Algorithm Size Implementation MB/s + + MD4 128 Digest::MD4 v1.3 165.0 + MD5 128 Digest::MD5 v2.33 98.8 + SHA-256 256 Digest::SHA2 v1.1.0 66.7 + SHA-1 160 Digest::SHA v4.3.1 58.9 + SHA-1 160 Digest::SHA1 v2.10 48.8 + SHA-256 256 Digest::SHA v4.3.1 41.3 + Haval-256 256 Digest::Haval256 v1.0.4 39.8 + SHA-384 384 Digest::SHA2 v1.1.0 19.6 + SHA-512 512 Digest::SHA2 v1.1.0 19.3 + SHA-384 384 Digest::SHA v4.3.1 19.2 + SHA-512 512 Digest::SHA v4.3.1 19.2 + Whirlpool 512 Digest::Whirlpool v1.0.2 13.0 + MD2 128 Digest::MD2 v2.03 9.5 + + Adler-32 32 Digest::Adler32 v0.03 1.3 + CRC-16 16 Digest::CRC v0.05 1.1 + CRC-32 32 Digest::CRC v0.05 1.1 + MD5 128 Digest::Perl::MD5 v1.5 1.0 + CRC-CCITT 16 Digest::CRC v0.05 0.8 + +These numbers was achieved Apr 2004 with ActivePerl-5.8.3 running +under Linux on a P4 2.8 GHz CPU. The last 5 entries differ by being +pure perl implementations of the algorithms, which explains why they +are so slow. + +=head1 SEE ALSO + +L, L, L, +L, L, L, L, +L, L, L, L + +New digest implementations should consider subclassing from L. + +L + +http://en.wikipedia.org/wiki/Cryptographic_hash_function + +=head1 AUTHOR + +Gisle Aas + +The C interface is based on the interface originally +developed by Neil Winton for his C module. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + + Copyright 1998-2006 Gisle Aas. + Copyright 1995,1996 Neil Winton. + +=cut diff --git a/git/usr/share/perl5/core_perl/DirHandle.pm b/git/usr/share/perl5/core_perl/DirHandle.pm new file mode 100644 index 0000000000000000000000000000000000000000..bebce9f5ce2c36f468d01c64b5fc5d346eef8df3 --- /dev/null +++ b/git/usr/share/perl5/core_perl/DirHandle.pm @@ -0,0 +1,89 @@ +package DirHandle; + +our $VERSION = '1.05'; + +=head1 NAME + +DirHandle - (obsolete) supply object methods for directory handles + +=head1 SYNOPSIS + + # recommended approach since Perl 5.6: do not use DirHandle + if (opendir my $d, '.') { + while (readdir $d) { something($_); } + rewind $d; + while (readdir $d) { something_else($_); } + } + + # how you would use this module if you were going to + use DirHandle; + if (my $d = DirHandle->new(".")) { + while (defined($_ = $d->read)) { something($_); } + $d->rewind; + while (defined($_ = $d->read)) { something_else($_); } + } + +=head1 DESCRIPTION + +B + +The C method provide an alternative interface to the +opendir(), closedir(), readdir(), and rewinddir() functions. + +Up to Perl 5.5, opendir() could not autovivify a directory handle from +C, so using a lexical handle required using a function from L +to create an anonymous glob, which took a separate step. +C encapsulates this, which allowed cleaner code than opendir(). +Since Perl 5.6, opendir() alone has been all you need for lexical handles. + +=cut + +require 5.000; +use Carp; +use Symbol; + +sub new { + @_ >= 1 && @_ <= 2 or croak 'usage: DirHandle->new( [DIRNAME] )'; + my $class = shift; + my $dh = gensym; + if (@_) { + DirHandle::open($dh, $_[0]) + or return undef; + } + bless $dh, $class; +} + +sub DESTROY { + my ($dh) = @_; + # Don't warn about already being closed as it may have been closed + # correctly, or maybe never opened at all. + local($., $@, $!, $^E, $?); + no warnings 'io'; + closedir($dh); +} + +sub open { + @_ == 2 or croak 'usage: $dh->open(DIRNAME)'; + my ($dh, $dirname) = @_; + opendir($dh, $dirname); +} + +sub close { + @_ == 1 or croak 'usage: $dh->close()'; + my ($dh) = @_; + closedir($dh); +} + +sub read { + @_ == 1 or croak 'usage: $dh->read()'; + my ($dh) = @_; + readdir($dh); +} + +sub rewind { + @_ == 1 or croak 'usage: $dh->rewind()'; + my ($dh) = @_; + rewinddir($dh); +} + +1; diff --git a/git/usr/share/perl5/core_perl/Dumpvalue.pm b/git/usr/share/perl5/core_perl/Dumpvalue.pm new file mode 100644 index 0000000000000000000000000000000000000000..5a0d58ade7a0f8555dde7f99b9849a2e07055deb --- /dev/null +++ b/git/usr/share/perl5/core_perl/Dumpvalue.pm @@ -0,0 +1,675 @@ +use 5.006_001; # for (defined ref) and $#$v and our +package Dumpvalue; +use strict; +use warnings; +our $VERSION = '1.21'; +our(%address, $stab, @stab, %stab, %subs); + +sub ASCII { return ord('A') == 65; } + +# This module will give incorrect results for some inputs on EBCDIC platforms +# before v5.8 +*to_native = ($] lt "5.008") + ? sub { return shift } + : sub { return utf8::unicode_to_native(shift) }; + +my $APC = chr to_native(0x9F); +my $backslash_c_question = (ASCII) ? '\177' : $APC; + +# documentation nits, handle complex data structures better by chromatic +# translate control chars to ^X - Randal Schwartz +# Modifications to print types by Peter Gordon v1.0 + +# Ilya Zakharevich -- patches after 5.001 (and some before ;-) + +# Won't dump symbol tables and contents of debugged files by default + +# (IZ) changes for objectification: +# c) quote() renamed to method set_quote(); +# d) unctrlSet() renamed to method set_unctrl(); +# f) Compiles with 'use strict', but in two places no strict refs is needed: +# maybe more problems are waiting... + +my %defaults = ( + globPrint => 0, + printUndef => 1, + tick => "auto", + unctrl => 'quote', + subdump => 1, + dumpReused => 0, + bareStringify => 1, + hashDepth => '', + arrayDepth => '', + dumpDBFiles => '', + dumpPackages => '', + quoteHighBit => '', + usageOnly => '', + compactDump => '', + veryCompact => '', + stopDbSignal => '', + ); + +sub new { + my $class = shift; + my %opt = (%defaults, @_); + bless \%opt, $class; +} + +sub set { + my $self = shift; + my %opt = @_; + @$self{keys %opt} = values %opt; +} + +sub get { + my $self = shift; + wantarray ? @$self{@_} : $$self{pop @_}; +} + +sub dumpValue { + my $self = shift; + die "usage: \$dumper->dumpValue(value)" unless @_ == 1; + local %address; + local $^W=0; + (print "undef\n"), return unless defined $_[0]; + (print $self->stringify($_[0]), "\n"), return unless ref $_[0]; + $self->unwrap($_[0],0); +} + +sub dumpValues { + my $self = shift; + local %address; + local $^W=0; + (print "undef\n"), return if (@_ == 1 and not defined $_[0]); + $self->unwrap(\@_,0); +} + +# This one is good for variable names: + +sub unctrl { + local($_) = @_; + + return \$_ if ref \$_ eq "GLOB"; + s/([\000-\037])/'^' . chr(to_native(ord($1)^64))/eg; + s/ $backslash_c_question /^?/xg; + $_; +} + +sub stringify { + my $self = shift; + local $_ = shift; + my $noticks = shift; + my $tick = $self->{tick}; + + return 'undef' unless defined $_ or not $self->{printUndef}; + $_ = '' if not defined $_; + return $_ . "" if ref \$_ eq 'GLOB'; + { no strict 'refs'; + $_ = &{'overload::StrVal'}($_) + if $self->{bareStringify} and ref $_ + and %overload:: and defined &{'overload::StrVal'}; + } + if ($tick eq 'auto') { + if (/[^[:^cntrl:]\n]/) { # All ASCII controls but \n get '"' + $tick = '"'; + } else { + $tick = "'"; + } + } + if ($tick eq "'") { + s/([\'\\])/\\$1/g; + } elsif ($self->{unctrl} eq 'unctrl') { + s/([\"\\])/\\$1/g ; + $_ = &unctrl($_); + s/([[:^ascii:]])/'\\0x'.sprintf('%2X',ord($1))/eg + if $self->{quoteHighBit}; + } elsif ($self->{unctrl} eq 'quote') { + s/([\"\\\$\@])/\\$1/g if $tick eq '"'; + s/\e/\\e/g; + s/([\000-\037$backslash_c_question])/'\\c'._escaped_ord($1)/eg; + } + s/([[:^ascii:]])/'\\'.sprintf('%3o',ord($1))/eg if $self->{quoteHighBit}; + ($noticks || /^\d+(\.\d*)?\Z/) + ? $_ + : $tick . $_ . $tick; +} + +# Ensure a resulting \ is escaped to be \\ +sub _escaped_ord { + my $chr = shift; + if ($chr eq $backslash_c_question) { + $chr = '?'; + } + else { + $chr = chr(to_native(ord($chr)^64)); + $chr =~ s{\\}{\\\\}g; + } + return $chr; +} + +sub DumpElem { + my ($self, $v) = (shift, shift); + my $short = $self->stringify($v, ref $v); + my $shortmore = ''; + if ($self->{veryCompact} && ref $v + && (ref $v eq 'ARRAY' and !grep(ref $_, @$v) )) { + my $depth = $#$v; + ($shortmore, $depth) = (' ...', $self->{arrayDepth} - 1) + if $self->{arrayDepth} and $depth >= $self->{arrayDepth}; + my @a = map $self->stringify($_), @$v[0..$depth]; + print "0..$#{$v} @a$shortmore\n"; + } elsif ($self->{veryCompact} && ref $v + && (ref $v eq 'HASH') and !grep(ref $_, values %$v)) { + my @a = sort keys %$v; + my $depth = $#a; + ($shortmore, $depth) = (' ...', $self->{hashDepth} - 1) + if $self->{hashDepth} and $depth >= $self->{hashDepth}; + my @b = map {$self->stringify($_) . " => " . $self->stringify($$v{$_})} + @a[0..$depth]; + local $" = ', '; + print "@b$shortmore\n"; + } else { + print "$short\n"; + $self->unwrap($v,shift); + } +} + +sub unwrap { + my $self = shift; + return if $DB::signal and $self->{stopDbSignal}; + my ($v) = shift ; + my ($s) = shift || 0; # extra no of spaces + my $sp; + my (%v,@v,$address,$short,$fileno); + + $sp = " " x $s ; + $s += 3 ; + + # Check for reused addresses + if (ref $v) { + my $val = $v; + { no strict 'refs'; + $val = &{'overload::StrVal'}($v) + if %overload:: and defined &{'overload::StrVal'}; + } + ($address) = $val =~ /(0x[0-9a-f]+)\)$/ ; + if (!$self->{dumpReused} && defined $address) { + $address{$address}++ ; + if ( $address{$address} > 1 ) { + print "${sp}-> REUSED_ADDRESS\n" ; + return ; + } + } + } elsif (ref \$v eq 'GLOB') { + $address = "$v" . ""; # To avoid a bug with globs + $address{$address}++ ; + if ( $address{$address} > 1 ) { + print "${sp}*DUMPED_GLOB*\n" ; + return ; + } + } + + if (ref $v eq 'Regexp') { + my $re = "$v"; + $re =~ s,/,\\/,g; + print "$sp-> qr/$re/\n"; + return; + } + + if ( UNIVERSAL::isa($v, 'HASH') ) { + my @sortKeys = sort keys(%$v) ; + my $more; + my $tHashDepth = $#sortKeys ; + $tHashDepth = $#sortKeys < $self->{hashDepth}-1 ? $#sortKeys : $self->{hashDepth}-1 + unless $self->{hashDepth} eq '' ; + $more = "....\n" if $tHashDepth < $#sortKeys ; + my $shortmore = ""; + $shortmore = ", ..." if $tHashDepth < $#sortKeys ; + $#sortKeys = $tHashDepth ; + if ($self->{compactDump} && !grep(ref $_, values %{$v})) { + $short = $sp; + my @keys; + for (@sortKeys) { + push @keys, $self->stringify($_) . " => " . $self->stringify($v->{$_}); + } + $short .= join ', ', @keys; + $short .= $shortmore; + (print "$short\n"), return if length $short <= $self->{compactDump}; + } + for my $key (@sortKeys) { + return if $DB::signal and $self->{stopDbSignal}; + my $value = $ {$v}{$key} ; + print $sp, $self->stringify($key), " => "; + $self->DumpElem($value, $s); + } + print "$sp empty hash\n" unless @sortKeys; + print "$sp$more" if defined $more ; + } elsif ( UNIVERSAL::isa($v, 'ARRAY') ) { + my $tArrayDepth = $#{$v} ; + my $more ; + $tArrayDepth = $#$v < $self->{arrayDepth}-1 ? $#$v : $self->{arrayDepth}-1 + unless $self->{arrayDepth} eq '' ; + $more = "....\n" if $tArrayDepth < $#{$v} ; + my $shortmore = ""; + $shortmore = " ..." if $tArrayDepth < $#{$v} ; + if ($self->{compactDump} && !grep(ref $_, @{$v})) { + if ($#$v >= 0) { + $short = $sp . "0..$#{$v} " . + join(" ", + map {defined $v->[$_] ? $self->stringify($v->[$_]) : "empty"} (0..$tArrayDepth) + ) . "$shortmore"; + } else { + $short = $sp . "empty array"; + } + (print "$short\n"), return if length $short <= $self->{compactDump}; + } + for my $num (0 .. $tArrayDepth) { + return if $DB::signal and $self->{stopDbSignal}; + print "$sp$num "; + if (defined $v->[$num]) { + $self->DumpElem($v->[$num], $s); + } else { + print "empty slot\n"; + } + } + print "$sp empty array\n" unless @$v; + print "$sp$more" if defined $more ; + } elsif ( UNIVERSAL::isa($v, 'SCALAR') or ref $v eq 'REF' ) { + print "$sp-> "; + $self->DumpElem($$v, $s); + } elsif ( UNIVERSAL::isa($v, 'CODE') ) { + print "$sp-> "; + $self->dumpsub(0, $v); + } elsif ( UNIVERSAL::isa($v, 'GLOB') ) { + print "$sp-> ",$self->stringify($$v,1),"\n"; + if ($self->{globPrint}) { + $s += 3; + $self->dumpglob('', $s, "{$$v}", $$v, 1); + } elsif (defined ($fileno = fileno($v))) { + print( (' ' x ($s+3)) . "FileHandle({$$v}) => fileno($fileno)\n" ); + } + } elsif (ref \$v eq 'GLOB') { + if ($self->{globPrint}) { + $self->dumpglob('', $s, "{$v}", $v, 1); + } elsif (defined ($fileno = fileno(\$v))) { + print( (' ' x $s) . "FileHandle({$v}) => fileno($fileno)\n" ); + } + } +} + +sub matchvar { + $_[0] eq $_[1] or + ($_[1] =~ /^([!~])(.)([\x00-\xff]*)/) and + ($1 eq '!') ^ (eval {($_[2] . "::" . $_[0]) =~ /$2$3/}); +} + +sub compactDump { + my $self = shift; + $self->{compactDump} = shift if @_; + $self->{compactDump} = 6*80-1 + if $self->{compactDump} and $self->{compactDump} < 2; + $self->{compactDump}; +} + +sub veryCompact { + my $self = shift; + $self->{veryCompact} = shift if @_; + $self->compactDump(1) if !$self->{compactDump} and $self->{veryCompact}; + $self->{veryCompact}; +} + +sub set_unctrl { + my $self = shift; + if (@_) { + my $in = shift; + if ($in eq 'unctrl' or $in eq 'quote') { + $self->{unctrl} = $in; + } else { + print "Unknown value for 'unctrl'.\n"; + } + } + $self->{unctrl}; +} + +sub set_quote { + my $self = shift; + if (@_ and $_[0] eq '"') { + $self->{tick} = '"'; + $self->{unctrl} = 'quote'; + } elsif (@_ and $_[0] eq 'auto') { + $self->{tick} = 'auto'; + $self->{unctrl} = 'quote'; + } elsif (@_) { # Need to set + $self->{tick} = "'"; + $self->{unctrl} = 'unctrl'; + } + $self->{tick}; +} + +sub dumpglob { + my $self = shift; + return if $DB::signal and $self->{stopDbSignal}; + my ($package, $off, $key, $val, $all) = @_; + local(*stab) = $val; + my $fileno; + if (($key !~ /^_{dumpDBFiles}) and defined $stab) { + print( (' ' x $off) . "\$", &unctrl($key), " = " ); + $self->DumpElem($stab, 3+$off); + } + if (($key !~ /^_{dumpDBFiles}) and @stab) { + print( (' ' x $off) . "\@$key = (\n" ); + $self->unwrap(\@stab,3+$off) ; + print( (' ' x $off) . ")\n" ); + } + if ($key ne "main::" && $key ne "DB::" && %stab + && ($self->{dumpPackages} or $key !~ /::$/) + && ($key !~ /^_{dumpDBFiles}) + && !($package eq "Dumpvalue" and $key eq "stab")) { + print( (' ' x $off) . "\%$key = (\n" ); + $self->unwrap(\%stab,3+$off) ; + print( (' ' x $off) . ")\n" ); + } + if (defined ($fileno = fileno(*stab))) { + print( (' ' x $off) . "FileHandle($key) => fileno($fileno)\n" ); + } + if ($all) { + if (defined &stab) { + $self->dumpsub($off, $key); + } + } +} + +sub CvGV_name { + my $self = shift; + my $in = shift; + return if $self->{skipCvGV}; # Backdoor to avoid problems if XS broken... + $in = \&$in; # Hard reference... + eval {require Devel::Peek; 1} or return; + my $gv = Devel::Peek::CvGV($in) or return; + *$gv{PACKAGE} . '::' . *$gv{NAME}; +} + +sub dumpsub { + my $self = shift; + my ($off,$sub) = @_; + $off ||= 0; + my $ini = $sub; + my $s; + $sub = $1 if $sub =~ /^\{\*(.*)\}$/; + my $subref = defined $1 ? \&$sub : \&$ini; + my $place = $DB::sub{$sub} || (($s = $subs{"$subref"}) && $DB::sub{$s}) + || (($s = $self->CvGV_name($subref)) && $DB::sub{$s}) + || ($self->{subdump} && ($s = $self->findsubs("$subref")) + && $DB::sub{$s}); + $s = $sub unless defined $s; + $place = '???' unless defined $place; + print( (' ' x $off) . "&$s in $place\n" ); +} + +sub findsubs { + my $self = shift; + return undef unless %DB::sub; + my ($addr, $name, $loc); + while (($name, $loc) = each %DB::sub) { + $addr = \&$name; + $subs{"$addr"} = $name; + } + $self->{subdump} = 0; + $subs{ shift() }; +} + +sub dumpvars { + my $self = shift; + my ($package,@vars) = @_; + local(%address,$^W); + $package .= "::" unless $package =~ /::$/; + *stab = *main::; + + while ($package =~ /(\w+?::)/g) { + *stab = defined ${stab}{$1} ? ${stab}{$1} : ''; + } + $self->{TotalStrings} = 0; + $self->{Strings} = 0; + $self->{CompleteTotal} = 0; + for my $k (keys %stab) { + my ($key,$val) = ($k, $stab{$k}); + return if $DB::signal and $self->{stopDbSignal}; + next if @vars && !grep( matchvar($key, $_), @vars ); + if ($self->{usageOnly}) { + $self->globUsage(\$val, $key) + if ($package ne 'Dumpvalue' or $key ne 'stab') + and ref(\$val) eq 'GLOB'; + } else { + $self->dumpglob($package, 0,$key, $val); + } + } + if ($self->{usageOnly}) { + print <{TotalStrings} bytes in $self->{Strings} strings. +EOP + $self->{CompleteTotal} += $self->{TotalStrings}; + print <{CompleteTotal} bytes (1 level deep) + overhead. +EOP + } +} + +sub scalarUsage { + my $self = shift; + my $size; + if (UNIVERSAL::isa($_[0], 'ARRAY')) { + $size = $self->arrayUsage($_[0]); + } elsif (UNIVERSAL::isa($_[0], 'HASH')) { + $size = $self->hashUsage($_[0]); + } elsif (!ref($_[0])) { + $size = length($_[0]); + } + $self->{TotalStrings} += $size; + $self->{Strings}++; + $size; +} + +sub arrayUsage { # array ref, name + my $self = shift; + my $size = 0; + map {$size += $self->scalarUsage($_)} @{$_[0]}; + my $len = @{$_[0]}; + print "\@$_[1] = $len item", ($len > 1 ? "s" : ""), " (data: $size bytes)\n" + if defined $_[1]; + $self->{CompleteTotal} += $size; + $size; +} + +sub hashUsage { # hash ref, name + my $self = shift; + my @keys = keys %{$_[0]}; + my @values = values %{$_[0]}; + my $keys = $self->arrayUsage(\@keys); + my $values = $self->arrayUsage(\@values); + my $len = @keys; + my $total = $keys + $values; + print "\%$_[1] = $len item", ($len > 1 ? "s" : ""), + " (keys: $keys; values: $values; total: $total bytes)\n" + if defined $_[1]; + $total; +} + +sub globUsage { # glob ref, name + my $self = shift; + local *stab = *{$_[0]}; + my $total = 0; + $total += $self->scalarUsage($stab) if defined $stab; + $total += $self->arrayUsage(\@stab, $_[1]) if @stab; + $total += $self->hashUsage(\%stab, $_[1]) + if %stab and $_[1] ne "main::" and $_[1] ne "DB::"; + #and !($package eq "Dumpvalue" and $key eq "stab")); + $total; +} + +1; + +=head1 NAME + +Dumpvalue - provides screen dump of Perl data. + +=head1 SYNOPSIS + + use Dumpvalue; + my $dumper = Dumpvalue->new; + $dumper->set(globPrint => 1); + $dumper->dumpValue(\*::); + $dumper->dumpvars('main'); + my $dump = $dumper->stringify($some_value); + +=head1 DESCRIPTION + +=head2 Creation + +A new dumper is created by a call + + $d = Dumpvalue->new(option1 => value1, option2 => value2) + +Recognized options: + +=over 4 + +=item C, C + +Print only first N elements of arrays and hashes. If false, prints all the +elements. + +=item C, C + +Change style of array and hash dump. If true, short array +may be printed on one line. + +=item C + +Whether to print contents of globs. + +=item C + +Dump arrays holding contents of debugged files. + +=item C + +Dump symbol tables of packages. + +=item C + +Dump contents of "reused" addresses. + +=item C, C, C + +Change style of string dump. Default value of C is C, one +can enable either double-quotish dump, or single-quotish by setting it +to C<"> or C<'>. By default, characters with high bit set are printed +I. If C is set, they will be quoted. + +=item C + +rudimentary per-package memory usage dump. If set, +C calculates total size of strings in variables in the package. + +=item unctrl + +Changes the style of printout of strings. Possible values are +C and C. + +=item subdump + +Whether to try to find the subroutine name given the reference. + +=item bareStringify + +Whether to write the non-overloaded form of the stringify-overloaded objects. + +=item quoteHighBit + +Whether to print chars with high bit set in binary or "as is". + +=item stopDbSignal + +Whether to abort printing if debugger signal flag is raised. + +=back + +Later in the life of the object the methods may be queries with get() +method and set() method (which accept multiple arguments). + +=head2 Methods + +=over 4 + +=item dumpValue + + $dumper->dumpValue($value); + $dumper->dumpValue([$value1, $value2]); + +Prints a dump to the currently selected filehandle. + +=item dumpValues + + $dumper->dumpValues($value1, $value2); + +Same as C<< $dumper->dumpValue([$value1, $value2]); >>. + +=item stringify + + my $dump = $dumper->stringify($value [,$noticks] ); + +Returns the dump of a single scalar without printing. If the second +argument is true, the return value does not contain enclosing ticks. +Does not handle data structures. + +=item dumpvars + + $dumper->dumpvars('my_package'); + $dumper->dumpvars('my_package', 'foo', '~bar$', '!......'); + +The optional arguments are considered as literal strings unless they +start with C<~> or C, in which case they are interpreted as regular +expressions (possibly negated). + +The second example prints entries with names C, and also entries +with names which ends on C, or are shorter than 5 chars. + +=item set_quote + + $d->set_quote('"'); + +Sets C and C options to suitable values for printout with the +given quote char. Possible values are C, C<'> and C<">. + +=item set_unctrl + + $d->set_unctrl('unctrl'); + +Sets C option with checking for an invalid argument. +Possible values are C and C. + +=item compactDump + + $d->compactDump(1); + +Sets C option. If the value is 1, sets to a reasonable +big number. + +=item veryCompact + + $d->veryCompact(1); + +Sets C and C options simultaneously. + +=item set + + $d->set(option1 => value1, option2 => value2); + +=item get + + @values = $d->get('option1', 'option2'); + +=back + +=cut + diff --git a/git/usr/share/perl5/core_perl/English.pm b/git/usr/share/perl5/core_perl/English.pm new file mode 100644 index 0000000000000000000000000000000000000000..283cd010701aae04accfee82e5968a092b3c0a24 --- /dev/null +++ b/git/usr/share/perl5/core_perl/English.pm @@ -0,0 +1,237 @@ +package English; + +our $VERSION = '1.11'; + +require Exporter; +@ISA = qw(Exporter); + +=head1 NAME + +English - use nice English (or awk) names for ugly punctuation variables + +=head1 SYNOPSIS + + use English; + use English qw( -no_match_vars ) ; # Avoids regex performance + # penalty in perl 5.18 and + # earlier + ... + if ($ERRNO =~ /denied/) { ... } + +=head1 DESCRIPTION + +This module provides aliases for the built-in variables whose +names no one seems to like to read. Variables with side-effects +which get triggered just by accessing them (like $0) will still +be affected. + +For those variables that have an B version, both long +and short English alternatives are provided. For example, +the C<$/> variable can be referred to either $RS or +$INPUT_RECORD_SEPARATOR if you are using the English module. + +See L for a complete list of these. + +=head1 PERFORMANCE + +NOTE: This was fixed in perl 5.20. Mentioning these three variables no +longer makes a speed difference. This section still applies if your code +is to run on perl 5.18 or earlier. + +This module can provoke sizeable inefficiencies for regular expressions, +due to unfortunate implementation details. If performance matters in +your application and you don't need $PREMATCH, $MATCH, or $POSTMATCH, +try doing + + use English qw( -no_match_vars ) ; + +. B + +=cut + +no warnings; + +my $globbed_match ; + +# Grandfather $NAME import +sub import { + my $this = shift; + my @list = grep { ! /^-no_match_vars$/ } @_ ; + local $Exporter::ExportLevel = 1; + if ( @_ == @list ) { + *EXPORT = \@COMPLETE_EXPORT ; + $globbed_match ||= ( + eval q{ + *MATCH = *& ; + *PREMATCH = *` ; + *POSTMATCH = *' ; + 1 ; + } + || do { + require Carp ; + Carp::croak("Can't create English for match leftovers: $@") ; + } + ) ; + } + else { + *EXPORT = \@MINIMAL_EXPORT ; + } + Exporter::import($this,grep {s/^\$/*/} @list); +} + +@MINIMAL_EXPORT = qw( + *ARG + *LAST_PAREN_MATCH + *INPUT_LINE_NUMBER + *NR + *INPUT_RECORD_SEPARATOR + *RS + *OUTPUT_AUTOFLUSH + *OUTPUT_FIELD_SEPARATOR + *OFS + *OUTPUT_RECORD_SEPARATOR + *ORS + *LIST_SEPARATOR + *SUBSCRIPT_SEPARATOR + *SUBSEP + *FORMAT_PAGE_NUMBER + *FORMAT_LINES_PER_PAGE + *FORMAT_LINES_LEFT + *FORMAT_NAME + *FORMAT_TOP_NAME + *FORMAT_LINE_BREAK_CHARACTERS + *FORMAT_FORMFEED + *CHILD_ERROR + *OS_ERROR + *ERRNO + *EXTENDED_OS_ERROR + *EVAL_ERROR + *PROCESS_ID + *PID + *REAL_USER_ID + *UID + *EFFECTIVE_USER_ID + *EUID + *REAL_GROUP_ID + *GID + *EFFECTIVE_GROUP_ID + *EGID + *PROGRAM_NAME + *PERL_VERSION + *OLD_PERL_VERSION + *ACCUMULATOR + *COMPILING + *DEBUGGING + *SYSTEM_FD_MAX + *INPLACE_EDIT + *PERLDB + *BASETIME + *WARNING + *EXECUTABLE_NAME + *OSNAME + *LAST_REGEXP_CODE_RESULT + *EXCEPTIONS_BEING_CAUGHT + *LAST_SUBMATCH_RESULT + @LAST_MATCH_START + @LAST_MATCH_END +); + + +@MATCH_EXPORT = qw( + *MATCH + *PREMATCH + *POSTMATCH +); + +@COMPLETE_EXPORT = ( @MINIMAL_EXPORT, @MATCH_EXPORT ) ; + +# The ground of all being. + + *ARG = *_ ; + +# Matching. + + *LAST_PAREN_MATCH = *+ ; + *LAST_SUBMATCH_RESULT = *^N ; + *LAST_MATCH_START = *-{ARRAY} ; + *LAST_MATCH_END = *+{ARRAY} ; + +# Input. + + *INPUT_LINE_NUMBER = *. ; + *NR = *. ; + *INPUT_RECORD_SEPARATOR = */ ; + *RS = */ ; + +# Output. + + *OUTPUT_AUTOFLUSH = *| ; + *OUTPUT_FIELD_SEPARATOR = *, ; + *OFS = *, ; + *OUTPUT_RECORD_SEPARATOR = *\ ; + *ORS = *\ ; + +# Interpolation "constants". + + *LIST_SEPARATOR = *" ; + *SUBSCRIPT_SEPARATOR = *; ; + *SUBSEP = *; ; + +# Formats + + *FORMAT_PAGE_NUMBER = *% ; + *FORMAT_LINES_PER_PAGE = *= ; + *FORMAT_LINES_LEFT = *-{SCALAR} ; + *FORMAT_NAME = *~ ; + *FORMAT_TOP_NAME = *^ ; + *FORMAT_LINE_BREAK_CHARACTERS = *: ; + *FORMAT_FORMFEED = *^L ; + +# Error status. + + *CHILD_ERROR = *? ; + *OS_ERROR = *! ; + *ERRNO = *! ; + *OS_ERROR = *! ; + *ERRNO = *! ; + *EXTENDED_OS_ERROR = *^E ; + *EVAL_ERROR = *@ ; + +# Process info. + + *PROCESS_ID = *$ ; + *PID = *$ ; + *REAL_USER_ID = *< ; + *UID = *< ; + *EFFECTIVE_USER_ID = *> ; + *EUID = *> ; + *REAL_GROUP_ID = *( ; + *GID = *( ; + *EFFECTIVE_GROUP_ID = *) ; + *EGID = *) ; + *PROGRAM_NAME = *0 ; + +# Internals. + + *PERL_VERSION = *^V ; + *OLD_PERL_VERSION = *] ; + *ACCUMULATOR = *^A ; + *COMPILING = *^C ; + *DEBUGGING = *^D ; + *SYSTEM_FD_MAX = *^F ; + *INPLACE_EDIT = *^I ; + *PERLDB = *^P ; + *LAST_REGEXP_CODE_RESULT = *^R ; + *EXCEPTIONS_BEING_CAUGHT = *^S ; + *BASETIME = *^T ; + *WARNING = *^W ; + *EXECUTABLE_NAME = *^X ; + *OSNAME = *^O ; + +# Deprecated. + +# *ARRAY_BASE = *[ ; +# *OFMT = *# ; + +1; diff --git a/git/usr/share/perl5/core_perl/Env.pm b/git/usr/share/perl5/core_perl/Env.pm new file mode 100644 index 0000000000000000000000000000000000000000..991afddc025a1da174c62926d9743451f31e57cd --- /dev/null +++ b/git/usr/share/perl5/core_perl/Env.pm @@ -0,0 +1,255 @@ +package Env; + +our $VERSION = '1.06'; + +=head1 NAME + +Env - perl module that imports environment variables as scalars or arrays + +=head1 SYNOPSIS + + use Env; + use Env qw(PATH HOME TERM); + use Env qw($SHELL @LD_LIBRARY_PATH); + +=head1 DESCRIPTION + +Perl maintains environment variables in a special hash named C<%ENV>. For +when this access method is inconvenient, the Perl module C allows +environment variables to be treated as scalar or array variables. + +The C function ties environment variables with suitable +names to global Perl variables with the same names. By default it +ties all existing environment variables (C) to scalars. If +the C function receives arguments, it takes them to be a list of +variables to tie; it's okay if they don't yet exist. The scalar type +prefix '$' is inferred for any element of this list not prefixed by '$' +or '@'. Arrays are implemented in terms of C and C, using +C<$Config::Config{path_sep}> as the delimiter. + +After an environment variable is tied, merely use it like a normal variable. +You may access its value + + @path = split(/:/, $PATH); + print join("\n", @LD_LIBRARY_PATH), "\n"; + +or modify it + + $PATH .= ":/any/path"; + push @LD_LIBRARY_PATH, $dir; + +however you'd like. Bear in mind, however, that each access to a tied array +variable requires splitting the environment variable's string anew. + +The code: + + use Env qw(@PATH); + push @PATH, '/any/path'; + +is almost equivalent to: + + use Env qw(PATH); + $PATH .= ":/any/path"; + +except that if C<$ENV{PATH}> started out empty, the second approach leaves +it with the (odd) value "C<:/any/path>", but the first approach leaves it with +"C". + +To remove a tied environment variable from +the environment, assign it the undefined value + + undef $PATH; + undef @LD_LIBRARY_PATH; + +=head1 LIMITATIONS + +On VMS systems, arrays tied to environment variables are read-only. Attempting +to change anything will cause a warning. + +=head1 AUTHOR + +Chip Salzenberg EFE +and +Gregor N. Purdy EFE + +=cut + +sub import { + my $callpack = caller(0); + my $pack = shift; + my @vars = grep /^[\$\@]?[A-Za-z_]\w*$/, (@_ ? @_ : keys(%ENV)); + return unless @vars; + + @vars = map { m/^[\$\@]/ ? $_ : '$'.$_ } @vars; + + eval "package $callpack; use vars qw(" . join(' ', @vars) . ")"; + die $@ if $@; + foreach (@vars) { + my ($type, $name) = m/^([\$\@])(.*)$/; + if ($type eq '$') { + tie ${"${callpack}::$name"}, Env, $name; + } else { + if ($^O eq 'VMS') { + tie @{"${callpack}::$name"}, Env::Array::VMS, $name; + } else { + tie @{"${callpack}::$name"}, Env::Array, $name; + } + } + } +} + +sub TIESCALAR { + bless \($_[1]); +} + +sub FETCH { + my ($self) = @_; + $ENV{$$self}; +} + +sub STORE { + my ($self, $value) = @_; + if (defined($value)) { + $ENV{$$self} = $value; + } else { + delete $ENV{$$self}; + } +} + +###################################################################### + +package Env::Array; + +use Config; +use Tie::Array; + +@ISA = qw(Tie::Array); + +my $sep = $Config::Config{path_sep}; + +sub TIEARRAY { + bless \($_[1]); +} + +sub FETCHSIZE { + my ($self) = @_; + return 1 + scalar(() = $ENV{$$self} =~ /\Q$sep\E/g); +} + +sub STORESIZE { + my ($self, $size) = @_; + my @temp = split($sep, $ENV{$$self}); + $#temp = $size - 1; + $ENV{$$self} = join($sep, @temp); +} + +sub CLEAR { + my ($self) = @_; + $ENV{$$self} = ''; +} + +sub FETCH { + my ($self, $index) = @_; + return (split($sep, $ENV{$$self}))[$index]; +} + +sub STORE { + my ($self, $index, $value) = @_; + my @temp = split($sep, $ENV{$$self}); + $temp[$index] = $value; + $ENV{$$self} = join($sep, @temp); + return $value; +} + +sub EXISTS { + my ($self, $index) = @_; + return $index < $self->FETCHSIZE; +} + +sub DELETE { + my ($self, $index) = @_; + my @temp = split($sep, $ENV{$$self}); + my $value = splice(@temp, $index, 1, ()); + $ENV{$$self} = join($sep, @temp); + return $value; +} + +sub PUSH { + my $self = shift; + my @temp = split($sep, $ENV{$$self}); + push @temp, @_; + $ENV{$$self} = join($sep, @temp); + return scalar(@temp); +} + +sub POP { + my ($self) = @_; + my @temp = split($sep, $ENV{$$self}); + my $result = pop @temp; + $ENV{$$self} = join($sep, @temp); + return $result; +} + +sub UNSHIFT { + my $self = shift; + my @temp = split($sep, $ENV{$$self}); + my $result = unshift @temp, @_; + $ENV{$$self} = join($sep, @temp); + return $result; +} + +sub SHIFT { + my ($self) = @_; + my @temp = split($sep, $ENV{$$self}); + my $result = shift @temp; + $ENV{$$self} = join($sep, @temp); + return $result; +} + +sub SPLICE { + my $self = shift; + my $offset = shift; + my $length = shift; + my @temp = split($sep, $ENV{$$self}); + if (wantarray) { + my @result = splice @temp, $offset, $length, @_; + $ENV{$$self} = join($sep, @temp); + return @result; + } else { + my $result = scalar splice @temp, $offset, $length, @_; + $ENV{$$self} = join($sep, @temp); + return $result; + } +} + +###################################################################### + +package Env::Array::VMS; +use Tie::Array; + +@ISA = qw(Tie::Array); + +sub TIEARRAY { + bless \($_[1]); +} + +sub FETCHSIZE { + my ($self) = @_; + my $i = 0; + while ($i < 127 and defined $ENV{$$self . ';' . $i}) { $i++; }; + return $i; +} + +sub FETCH { + my ($self, $index) = @_; + return $ENV{$$self . ';' . $index}; +} + +sub EXISTS { + my ($self, $index) = @_; + return $index < $self->FETCHSIZE; +} + +sub DELETE { } + +1; diff --git a/git/usr/share/perl5/core_perl/Exporter.pm b/git/usr/share/perl5/core_perl/Exporter.pm new file mode 100644 index 0000000000000000000000000000000000000000..b3f6cb5f8fbdfa858486ef3f3125869e62229e3c --- /dev/null +++ b/git/usr/share/perl5/core_perl/Exporter.pm @@ -0,0 +1,605 @@ +package Exporter; + +use strict; +no strict 'refs'; + +our $Debug = 0; +our $ExportLevel = 0; +our $Verbose ||= 0; +our $VERSION = '5.79'; +our %Cache; + +sub as_heavy { + require Exporter::Heavy; + # Unfortunately, this does not work if the caller is aliased as *name = \&foo + # Thus the need to create a lot of identical subroutines + my $c = (caller(1))[3]; + $c =~ s/.*:://; + \&{"Exporter::Heavy::heavy_$c"}; +} + +sub export { + goto &{as_heavy()}; +} + +sub import { + my $pkg = shift; + my $callpkg = caller($ExportLevel); + + if ($pkg eq "Exporter" and @_ and $_[0] eq "import") { + *{$callpkg."::import"} = \&import; + return; + } + + # We *need* to treat @{"$pkg\::EXPORT_FAIL"} since Carp uses it :-( + my $exports = \@{"$pkg\::EXPORT"}; + # But, avoid creating things if they don't exist, which saves a couple of + # hundred bytes per package processed. + my $fail = ${$pkg . '::'}{EXPORT_FAIL} && \@{"$pkg\::EXPORT_FAIL"}; + return export $pkg, $callpkg, @_ + if $Verbose or $Debug or $fail && @$fail > 1; + my $export_cache = ($Cache{$pkg} ||= {}); + my $args = @_ or @_ = @$exports; + + if ($args and not %$export_cache) { + s/^&//, $export_cache->{$_} = 1 + foreach (@$exports, @{"$pkg\::EXPORT_OK"}); + } + my $heavy; + # Try very hard not to use {} and hence have to enter scope on the foreach + # We bomb out of the loop with last as soon as heavy is set. + if ($args or $fail) { + ($heavy = (/\W/ or $args and not exists $export_cache->{$_} + or $fail and @$fail and $_ eq $fail->[0])) and last + foreach (@_); + } else { + ($heavy = /\W/) and last + foreach (@_); + } + return export $pkg, $callpkg, ($args ? @_ : ()) if $heavy; + local $SIG{__WARN__} = + sub {require Carp; &Carp::carp} if not $SIG{__WARN__}; + # shortcut for the common case of no type character + *{"$callpkg\::$_"} = \&{"$pkg\::$_"} foreach @_; +} + +# Default methods + +sub export_fail { + my $self = shift; + @_; +} + +# Unfortunately, caller(1)[3] "does not work" if the caller is aliased as +# *name = \&foo. Thus the need to create a lot of identical subroutines +# Otherwise we could have aliased them to export(). + +sub export_to_level { + goto &{as_heavy()}; +} + +sub export_tags { + goto &{as_heavy()}; +} + +sub export_ok_tags { + goto &{as_heavy()}; +} + +sub require_version { + goto &{as_heavy()}; +} + +1; +__END__ + +=head1 NAME + +Exporter - Implements default import method for modules + +=head1 SYNOPSIS + +In module F: + + package YourModule; + use Exporter 'import'; + our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request + +or + + package YourModule; + require Exporter; + our @ISA = qw(Exporter); # inherit all of Exporter's methods + our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request + +or + + package YourModule; + use parent 'Exporter'; # inherit all of Exporter's methods + our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request + +In other files which wish to use C: + + use YourModule qw(frobnicate); # import listed symbols + frobnicate ($left, $right) # calls YourModule::frobnicate + +Take a look at L for some variants +you will like to use in modern Perl code. + +=head1 DESCRIPTION + +The Exporter module implements an C method which allows a module +to export functions and variables to its users' namespaces. Many modules +use Exporter rather than implementing their own C method because +Exporter provides a highly flexible interface, with an implementation optimised +for the common case. + +Perl automatically calls the C method when processing a +C statement for a module. Modules and C are documented +in L and L. Understanding the concept of +modules and how the C statement operates is important to +understanding the Exporter. + +=head2 How to Export + +The arrays C<@EXPORT> and C<@EXPORT_OK> in a module hold lists of +symbols that are going to be exported into the users name space by +default, or which they can request to be exported, respectively. The +symbols can represent functions, scalars, arrays, hashes, or typeglobs. +The symbols must be given by full name with the exception that the +ampersand in front of a function is optional, e.g. + + our @EXPORT = qw(afunc $scalar @array); # afunc is a function + our @EXPORT_OK = qw(&bfunc %hash *typeglob); # explicit prefix on &bfunc + +If you are only exporting function names it is recommended to omit the +ampersand, as the implementation is faster this way. + +=head2 Selecting What to Export + +Do B export method names! + +Do B export anything else by default without a good reason! + +Exports pollute the namespace of the module user. If you must export +try to use C<@EXPORT_OK> in preference to C<@EXPORT> and avoid short or +common symbol names to reduce the risk of name clashes. + +Generally anything not exported is still accessible from outside the +module using the C (or C<< $blessed_ref->method >>) +syntax. By convention you can use a leading underscore on names to +informally indicate that they are 'internal' and not for public use. + +(It is actually possible to get private functions by saying: + + my $subref = sub { ... }; + $subref->(@args); # Call it as a function + $obj->$subref(@args); # Use it as a method + +However if you use them for methods it is up to you to figure out +how to make inheritance work.) + +As a general rule, if the module is trying to be object oriented +then export nothing. If it's just a collection of functions then +C<@EXPORT_OK> anything but use C<@EXPORT> with caution. For function and +method names use barewords in preference to names prefixed with +ampersands for the export lists. + +Other module design guidelines can be found in L. + +=head2 How to Import + +In other files which wish to use your module there are three basic ways for +them to load your module and import its symbols: + +=over 4 + +=item C + +This imports all the symbols from YourModule's C<@EXPORT> into the namespace +of the C statement. + +=item C + +This causes perl to load your module but does not import any symbols. + +=item C + +This imports only the symbols listed by the caller into their namespace. +All listed symbols must be in your C<@EXPORT> or C<@EXPORT_OK>, else an error +occurs. The advanced export features of Exporter are accessed like this, +but with list entries that are syntactically distinct from symbol names. + +=back + +Unless you want to use its advanced features, this is probably all you +need to know to use Exporter. + +=head1 Advanced Features + +=head2 Specialised Import Lists + +If any of the entries in an import list begins with !, : or / then +the list is treated as a series of specifications which either add to +or delete from the list of names to import. They are processed left to +right. Specifications are in the form: + + [!]name This name only + [!]:DEFAULT All names in @EXPORT + [!]:tag All names in $EXPORT_TAGS{tag} anonymous array + [!]/pattern/ All names in @EXPORT and @EXPORT_OK which match + +A leading ! indicates that matching names should be deleted from the +list of names to import. If the first specification is a deletion it +is treated as though preceded by :DEFAULT. If you just want to import +extra names in addition to the default set you will still need to +include :DEFAULT explicitly. + +e.g., F defines: + + our @EXPORT = qw(A1 A2 A3 A4 A5); + our @EXPORT_OK = qw(B1 B2 B3 B4 B5); + our %EXPORT_TAGS = (T1 => [qw(A1 A2 B1 B2)], T2 => [qw(A1 A2 B3 B4)]); + +Note that you cannot use tags in @EXPORT or @EXPORT_OK. + +Names in EXPORT_TAGS must also appear in @EXPORT or @EXPORT_OK. + +An application using Module can say something like: + + use Module qw(:DEFAULT :T2 !B3 A3); + +Other examples include: + + use Socket qw(!/^[AP]F_/ !SOMAXCONN !SOL_SOCKET); + use POSIX qw(:errno_h :termios_h !TCSADRAIN !/^EXIT/); + +Remember that most patterns (using //) will need to be anchored +with a leading ^, e.g., C rather than C. + +You can say C to see how the +specifications are being processed and what is actually being imported +into modules. + +=head2 Exporting Without Using Exporter's import Method + +Exporter has a special method, 'export_to_level' which is used in situations +where you can't directly call Exporter's +import method. The export_to_level +method looks like: + + MyPackage->export_to_level( + $where_to_export, $package, @what_to_export + ); + +where C<$where_to_export> is an integer telling how far up the calling stack +to export your symbols, and C<@what_to_export> is an array telling what +symbols *to* export (usually this is C<@_>). The C<$package> argument is +currently unused. + +For example, suppose that you have a module, A, which already has an +import function: + + package A; + + our @ISA = qw(Exporter); + our @EXPORT_OK = qw($b); + + sub import + { + $A::b = 1; # not a very useful import method + } + +and you want to Export symbol C<$A::b> back to the module that called +package A. Since Exporter relies on the import method to work, via +inheritance, as it stands Exporter::import() will never get called. +Instead, say the following: + + package A; + our @ISA = qw(Exporter); + our @EXPORT_OK = qw($b); + + sub import + { + $A::b = 1; + A->export_to_level(1, @_); + } + +This will export the symbols one level 'above' the current package - ie: to +the program or module that used package A. + +Note: Be careful not to modify C<@_> at all before you call export_to_level +- or people using your package will get very unexplained results! + +=head2 Exporting Without Inheriting from Exporter + +By including Exporter in your C<@ISA> you inherit an Exporter's import() method +but you also inherit several other helper methods which you probably don't +want and complicate the inheritance tree. To avoid this you can do: + + package YourModule; + use Exporter qw(import); + +which will export Exporter's own import() method into YourModule. +Everything will work as before but you won't need to include Exporter in +C<@YourModule::ISA>. + +Note: This feature was introduced in version 5.57 +of Exporter, released with perl 5.8.3. + +=head2 Module Version Checking + +The Exporter module will convert an attempt to import a number from a +module into a call to C<< $module_name->VERSION($value) >>. This can +be used to validate that the version of the module being used is +greater than or equal to the required version. + +For historical reasons, Exporter supplies a C method that +simply delegates to C. Originally, before C +existed, Exporter would call C. + +Since the C method treats the C<$VERSION> number as +a simple numeric value it will regard version 1.10 as lower than +1.9. For this reason it is strongly recommended that you use numbers +with at least two decimal places, e.g., 1.09. + +=head2 Managing Unknown Symbols + +In some situations you may want to prevent certain symbols from being +exported. Typically this applies to extensions which have functions +or constants that may not exist on some systems. + +The names of any symbols that cannot be exported should be listed +in the C<@EXPORT_FAIL> array. + +If a module attempts to import any of these symbols the Exporter +will give the module an opportunity to handle the situation before +generating an error. The Exporter will call an export_fail method +with a list of the failed symbols: + + @failed_symbols = $module_name->export_fail(@failed_symbols); + +If the C method returns an empty list then no error is +recorded and all the requested symbols are exported. If the returned +list is not empty then an error is generated for each symbol and the +export fails. The Exporter provides a default C method which +simply returns the list unchanged. + +Uses for the C method include giving better error messages +for some symbols and performing lazy architectural checks (put more +symbols into C<@EXPORT_FAIL> by default and then take them out if someone +actually tries to use them and an expensive check shows that they are +usable on that platform). + +=head2 Tag Handling Utility Functions + +Since the symbols listed within C<%EXPORT_TAGS> must also appear in either +C<@EXPORT> or C<@EXPORT_OK>, two utility functions are provided which allow +you to easily add tagged sets of symbols to C<@EXPORT> or C<@EXPORT_OK>: + + our %EXPORT_TAGS = (foo => [qw(aa bb cc)], bar => [qw(aa cc dd)]); + + Exporter::export_tags('foo'); # add aa, bb and cc to @EXPORT + Exporter::export_ok_tags('bar'); # add aa, cc and dd to @EXPORT_OK + +Any names which are not tags are added to C<@EXPORT> or C<@EXPORT_OK> +unchanged but will trigger a warning (with C<-w>) to avoid misspelt tags +names being silently added to C<@EXPORT> or C<@EXPORT_OK>. Future versions +may make this a fatal error. + +=head2 Generating Combined Tags + +If several symbol categories exist in C<%EXPORT_TAGS>, it's usually +useful to create the utility ":all" to simplify "use" statements. + +The simplest way to do this is: + + our %EXPORT_TAGS = (foo => [qw(aa bb cc)], bar => [qw(aa cc dd)]); + + # add all the other ":class" tags to the ":all" class, + # deleting duplicates + { + my %seen; + + push @{$EXPORT_TAGS{all}}, + grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} foreach keys %EXPORT_TAGS; + } + +F creates an ":all" tag which contains some (but not really +all) of its categories. That could be done with one small +change: + + # add some of the other ":class" tags to the ":all" class, + # deleting duplicates + { + my %seen; + + push @{$EXPORT_TAGS{all}}, + grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} + foreach qw/html2 html3 netscape form cgi internal/; + } + +Note that the tag names in C<%EXPORT_TAGS> don't have the leading ':'. + +=head2 Ced Constants + +Many modules make use of Cing for constant subroutines to +avoid having to compile and waste memory on rarely used values (see +L for details on constant subroutines). Calls to such +constant subroutines are not optimized away at compile time because +they can't be checked at compile time for constancy. + +Even if a prototype is available at compile time, the body of the +subroutine is not (it hasn't been Ced yet). perl needs to +examine both the C<()> prototype and the body of a subroutine at +compile time to detect that it can safely replace calls to that +subroutine with the constant value. + +A workaround for this is to call the constants once in a C block: + + package My ; + + use Socket ; + + foo( SO_LINGER ); ## SO_LINGER NOT optimized away; called at runtime + BEGIN { SO_LINGER } + foo( SO_LINGER ); ## SO_LINGER optimized away at compile time. + +This forces the C for C to take place before +SO_LINGER is encountered later in C package. + +If you are writing a package that Cs, consider forcing +an C for any constants explicitly imported by other packages +or which are usually used when your package is Cd. + +=head1 Good Practices + +=head2 Declaring C<@EXPORT_OK> and Friends + +When using C with the standard C and C +pragmas, the C keyword is needed to declare the package +variables C<@EXPORT_OK>, C<@EXPORT>, C<@ISA>, etc. + + our @ISA = qw(Exporter); + our @EXPORT_OK = qw(munge frobnicate); + +If backward compatibility for Perls B 5.6 is important, +one must write instead a C statement. + + use vars qw(@ISA @EXPORT_OK); + @ISA = qw(Exporter); + @EXPORT_OK = qw(munge frobnicate); + +=head2 Playing Safe + +There are some caveats with the use of runtime statements +like C and the assignment to package +variables, which can be very subtle for the unaware programmer. +This may happen for instance with mutually recursive +modules, which are affected by the time the relevant +constructions are executed. + +The ideal way to never have to think about that is to use +C blocks and the simple import method. So the first part +of the L code could be rewritten as: + + package YourModule; + + use strict; + use warnings; + + use Exporter 'import'; + BEGIN { + our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request + } + +Or if you need to inherit from Exporter: + + package YourModule; + + use strict; + use warnings; + + BEGIN { + require Exporter; + our @ISA = qw(Exporter); # inherit all of Exporter's methods + our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request + } + +The C will assure that the loading of F +and the assignments to C<@ISA> and C<@EXPORT_OK> happen +immediately like C, leaving no room for something to get awry +or just plain wrong. + +With respect to loading C and inheriting, there +are alternatives with the use of modules like C and C. + + use base qw(Exporter); + # or + use parent qw(Exporter); + +Any of these statements are nice replacements for +C +with the same compile-time effect. The basic difference +is that C code interacts with declared C +while C is a streamlined version of the older +C code to just establish the IS-A relationship. + +For more details, see the documentation and code of +L and L. + +Another thorough remedy to that runtime +vs. compile-time trap is to use L, +which is a wrapper of Exporter that allows all +boilerplate code at a single gulp in the +use statement. + + use Exporter::Easy ( + OK => [ qw(munge frobnicate) ], + ); + # @ISA setup is automatic + # all assignments happen at compile time + +=head2 What Not to Export + +You have been warned already in L +to not export: + +=over 4 + +=item * + +method names (because you don't need to +and that's likely to not do what you want), + +=item * + +anything by default (because you don't want to surprise your users... +badly) + +=item * + +anything you don't need to (because less is more) + +=back + +There's one more item to add to this list. Do B +export variable names. Just because C lets you +do that, it does not mean you should. + + @EXPORT_OK = qw($svar @avar %hvar); # DON'T! + +Exporting variables is not a good idea. They can +change under the hood, provoking horrible +effects at-a-distance that are too hard to track +and to fix. Trust me: they are not worth it. + +To provide the capability to set/get class-wide +settings, it is best instead to provide accessors +as subroutines or class methods instead. + +=head1 SEE ALSO + +C is definitely not the only module with +symbol exporter capabilities. At CPAN, you may find +a bunch of them. Some are lighter. Some +provide improved APIs and features. Pick the one +that fits your needs. The following is +a sample list of such modules. + + Exporter::Easy + Exporter::Lite + Exporter::Renaming + Exporter::Tidy + Sub::Exporter / Sub::Installer + Perl6::Export / Perl6::Export::Attrs + +=head1 LICENSE + +This library is free software. You can redistribute it +and/or modify it under the same terms as Perl itself. + +=cut + + + diff --git a/git/usr/share/perl5/core_perl/Fatal.pm b/git/usr/share/perl5/core_perl/Fatal.pm new file mode 100644 index 0000000000000000000000000000000000000000..347167407d345299184870fbc0dfc9fec37129d6 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Fatal.pm @@ -0,0 +1,1872 @@ +package Fatal; + +# ABSTRACT: Replace functions with equivalents which succeed or die + +use 5.008; # 5.8.x needed for autodie +use Carp; +use strict; +use warnings; +use Tie::RefHash; # To cache subroutine refs +use Config; +use Scalar::Util qw(set_prototype looks_like_number); + +use autodie::Util qw( + fill_protos + install_subs + make_core_trampoline + on_end_of_compile_scope +); + +use constant SMARTMATCH_ALLOWED => ( $] >= 5.010 && $] < 5.041 ); +use constant SMARTMATCH_CATEGORY => ( + !SMARTMATCH_ALLOWED || $] < 5.018 ? undef + : exists $warnings::Offsets{'experimental::smartmatch'} ? 'experimental::smartmatch' + : 'deprecated' +); + +use constant LEXICAL_TAG => q{:lexical}; +use constant VOID_TAG => q{:void}; +use constant INSIST_TAG => q{!}; + +# Keys for %Cached_fatalised_sub (used in 3rd level) +use constant CACHE_AUTODIE_LEAK_GUARD => 0; +use constant CACHE_FATAL_WRAPPER => 1; +use constant CACHE_FATAL_VOID => 2; + + +use constant ERROR_NOARGS => 'Cannot use lexical %s with no arguments'; +use constant ERROR_VOID_LEX => VOID_TAG.' cannot be used with lexical scope'; +use constant ERROR_LEX_FIRST => LEXICAL_TAG.' must be used as first argument'; +use constant ERROR_NO_LEX => "no %s can only start with ".LEXICAL_TAG; +use constant ERROR_BADNAME => "Bad subroutine name for %s: %s"; +use constant ERROR_NOTSUB => "%s is not a Perl subroutine"; +use constant ERROR_NOT_BUILT => "%s is neither a builtin, nor a Perl subroutine"; +use constant ERROR_NOHINTS => "No user hints defined for %s"; + +use constant ERROR_CANT_OVERRIDE => "Cannot make the non-overridable builtin %s fatal"; + +use constant ERROR_NO_IPC_SYS_SIMPLE => "IPC::System::Simple required for Fatalised/autodying system()"; + +use constant ERROR_IPC_SYS_SIMPLE_OLD => "IPC::System::Simple version %f required for Fatalised/autodying system(). We only have version %f"; + +use constant ERROR_AUTODIE_CONFLICT => q{"no autodie '%s'" is not allowed while "use Fatal '%s'" is in effect}; + +use constant ERROR_FATAL_CONFLICT => q{"use Fatal '%s'" is not allowed while "no autodie '%s'" is in effect}; + +use constant ERROR_SMARTMATCH_HINTS => q{%s hints for %s must be code, regexp, or undef. Use of other values is deprecated and only supported on Perl 5.10 through 5.40.}; + +use constant WARNING_SMARTMATCH_DEPRECATED => q{%s hints for %s must be code, regexp, or undef. Use of other values is deprecated and will be removed before Perl 5.42.}; + +# Older versions of IPC::System::Simple don't support all the +# features we need. + +use constant MIN_IPC_SYS_SIMPLE_VER => 0.12; + +our $VERSION = '2.37'; # VERSION: Generated by DZP::OurPkg::Version + +our $Debug ||= 0; + +# EWOULDBLOCK values for systems that don't supply their own. +# Even though this is defined with our, that's to help our +# test code. Please don't rely upon this variable existing in +# the future. + +our %_EWOULDBLOCK = ( + MSWin32 => 33, +); + +$Carp::CarpInternal{'Fatal'} = 1; +$Carp::CarpInternal{'autodie'} = 1; +$Carp::CarpInternal{'autodie::exception'} = 1; + +# the linux parisc port has separate EAGAIN and EWOULDBLOCK, +# and the kernel returns EAGAIN +my $try_EAGAIN = ($^O eq 'linux' and $Config{archname} =~ /hppa|parisc/) ? 1 : 0; + +# We have some tags that can be passed in for use with import. +# These are all assumed to be CORE:: + +my %TAGS = ( + ':io' => [qw(:dbm :file :filesys :ipc :socket + read seek sysread syswrite sysseek )], + ':dbm' => [qw(dbmopen dbmclose)], + ':file' => [qw(open close flock sysopen fcntl binmode + ioctl truncate)], + ':filesys' => [qw(opendir closedir chdir link unlink rename mkdir + symlink rmdir readlink chmod chown utime)], + ':ipc' => [qw(:msg :semaphore :shm pipe kill)], + ':msg' => [qw(msgctl msgget msgrcv msgsnd)], + ':threads' => [qw(fork)], + ':semaphore'=>[qw(semctl semget semop)], + ':shm' => [qw(shmctl shmget shmread)], + ':system' => [qw(system exec)], + + # Can we use qw(getpeername getsockname)? What do they do on failure? + # TODO - Can socket return false? + ':socket' => [qw(accept bind connect getsockopt listen recv send + setsockopt shutdown socketpair)], + + # Our defaults don't include system(), because it depends upon + # an optional module, and it breaks the exotic form. + # + # This *may* change in the future. I'd love IPC::System::Simple + # to be a dependency rather than a recommendation, and hence for + # system() to be autodying by default. + + ':default' => [qw(:io :threads)], + + # Everything in v2.07 and before. This was :default less chmod and chown + ':v207' => [qw(:threads :dbm :socket read seek sysread + syswrite sysseek open close flock sysopen fcntl fileno + binmode ioctl truncate opendir closedir chdir link unlink + rename mkdir symlink rmdir readlink umask + :msg :semaphore :shm pipe)], + + # Chmod was added in 2.13 + ':v213' => [qw(:v207 chmod)], + + # chown, utime, kill were added in 2.14 + ':v214' => [qw(:v213 chown utime kill)], + + # umask was removed in 2.26 + ':v225' => [qw(:io :threads umask fileno)], + + # Version specific tags. These allow someone to specify + # use autodie qw(:1.994) and know exactly what they'll get. + + ':1.994' => [qw(:v207)], + ':1.995' => [qw(:v207)], + ':1.996' => [qw(:v207)], + ':1.997' => [qw(:v207)], + ':1.998' => [qw(:v207)], + ':1.999' => [qw(:v207)], + ':1.999_01' => [qw(:v207)], + ':2.00' => [qw(:v207)], + ':2.01' => [qw(:v207)], + ':2.02' => [qw(:v207)], + ':2.03' => [qw(:v207)], + ':2.04' => [qw(:v207)], + ':2.05' => [qw(:v207)], + ':2.06' => [qw(:v207)], + ':2.06_01' => [qw(:v207)], + ':2.07' => [qw(:v207)], # Last release without chmod + ':2.08' => [qw(:v213)], + ':2.09' => [qw(:v213)], + ':2.10' => [qw(:v213)], + ':2.11' => [qw(:v213)], + ':2.12' => [qw(:v213)], + ':2.13' => [qw(:v213)], # Last release without chown + ':2.14' => [qw(:v225)], + ':2.15' => [qw(:v225)], + ':2.16' => [qw(:v225)], + ':2.17' => [qw(:v225)], + ':2.18' => [qw(:v225)], + ':2.19' => [qw(:v225)], + ':2.20' => [qw(:v225)], + ':2.21' => [qw(:v225)], + ':2.22' => [qw(:v225)], + ':2.23' => [qw(:v225)], + ':2.24' => [qw(:v225)], + ':2.25' => [qw(:v225)], + ':2.26' => [qw(:default)], + ':2.27' => [qw(:default)], + ':2.28' => [qw(:default)], + ':2.29' => [qw(:default)], + ':2.30' => [qw(:default)], + ':2.31' => [qw(:default)], + ':2.32' => [qw(:default)], + ':2.33' => [qw(:default)], + ':2.34' => [qw(:default)], + ':2.35' => [qw(:default)], + ':2.36' => [qw(:default)], + ':2.37' => [qw(:default)], +); + + +{ + # Expand :all immediately by expanding and flattening all tags. + # _expand_tag is not really optimised for expanding the ":all" + # case (i.e. keys %TAGS, or values %TAGS for that matter), so we + # just do it here. + # + # NB: The %tag_cache/_expand_tag relies on $TAGS{':all'} being + # pre-expanded. + my %seen; + my @all = grep { + !/^:/ && !$seen{$_}++ + } map { @{$_} } values %TAGS; + $TAGS{':all'} = \@all; +} + +# This hash contains subroutines for which we should +# subroutine() // die() rather than subroutine() || die() + +my %Use_defined_or; + +# CORE::open returns undef on failure. It can legitimately return +# 0 on success, eg: open(my $fh, '-|') || exec(...); + +@Use_defined_or{qw( + CORE::fork + CORE::recv + CORE::send + CORE::open + CORE::fileno + CORE::read + CORE::readlink + CORE::sysread + CORE::syswrite + CORE::sysseek + CORE::umask +)} = (); + +# Some functions can return true because they changed *some* things, but +# not all of them. This is a list of offending functions, and how many +# items to subtract from @_ to determine the "success" value they return. + +my %Returns_num_things_changed = ( + 'CORE::chmod' => 1, + 'CORE::chown' => 2, + 'CORE::kill' => 1, # TODO: Could this return anything on negative args? + 'CORE::unlink' => 0, + 'CORE::utime' => 2, +); + +# Optional actions to take on the return value before returning it. + +my %Retval_action = ( + "CORE::open" => q{ + + # apply the open pragma from our caller + if( defined $retval && !( @_ >= 3 && $_[1] =~ /:/ )) { + # Get the caller's hint hash + my $hints = (caller 0)[10]; + + # Decide if we're reading or writing and apply the appropriate encoding + # These keys are undocumented. + # Match what PerlIO_context_layers() does. Read gets the read layer, + # everything else gets the write layer. + my $encoding = $_[1] =~ /^\+?>/ ? $hints->{"open>"} : $hints->{"open<"}; + + # Apply the encoding, if any. + if( $encoding ) { + binmode $_[0], $encoding; + } + } + +}, + "CORE::sysopen" => q{ + + # apply the open pragma from our caller + if( defined $retval ) { + # Get the caller's hint hash + my $hints = (caller 0)[10]; + + require Fcntl; + + # Decide if we're reading or writing and apply the appropriate encoding. + # Match what PerlIO_context_layers() does. Read gets the read layer, + # everything else gets the write layer. + my $open_read_only = !($_[2] ^ Fcntl::O_RDONLY()); + my $encoding = $open_read_only ? $hints->{"open<"} : $hints->{"open>"}; + + # Apply the encoding, if any. + if( $encoding ) { + binmode $_[0], $encoding; + } + } + +}, +); + +my %reusable_builtins; + +# "Wait!" I hear you cry, "truncate() and chdir() are not reuseable! They can +# take file and directory handles, which are package depedent." +# +# You would be correct, except that prototype() returns signatures which don't +# allow for passing of globs, and nobody's complained about that. You can +# still use \*FILEHANDLE, but that results in a reference coming through, +# and it's already pointing to the filehandle in the caller's packge, so +# it's all okay. + +@reusable_builtins{qw( + CORE::fork + CORE::kill + CORE::truncate + CORE::chdir + CORE::link + CORE::unlink + CORE::rename + CORE::mkdir + CORE::symlink + CORE::rmdir + CORE::readlink + CORE::umask + CORE::chmod + CORE::chown + CORE::utime + CORE::msgctl + CORE::msgget + CORE::msgrcv + CORE::msgsnd + CORE::semctl + CORE::semget + CORE::semop + CORE::shmctl + CORE::shmget + CORE::shmread + CORE::exec + CORE::system +)} = (); + +# Cached_fatalised_sub caches the various versions of our +# fatalised subs as they're produced. This means we don't +# have to build our own replacement of CORE::open and friends +# for every single package that wants to use them. + +my %Cached_fatalised_sub = (); + +# Every time we're called with package scope, we record the subroutine +# (including package or CORE::) in %Package_Fatal. This allows us +# to detect illegal combinations of autodie and Fatal, and makes sure +# we don't accidently make a Fatal function autodying (which isn't +# very useful). + +my %Package_Fatal = (); + +# The first time we're called with a user-sub, we cache it here. +# In the case of a "no autodie ..." we put back the cached copy. + +my %Original_user_sub = (); + +# Is_fatalised_sub simply records a big map of fatalised subroutine +# refs. It means we can avoid repeating work, or fatalising something +# we've already processed. + +my %Is_fatalised_sub = (); +tie %Is_fatalised_sub, 'Tie::RefHash'; + +# Our trampoline cache allows us to cache trampolines which are used to +# bounce leaked wrapped core subroutines to their actual core counterparts. + +my %Trampoline_cache; + +# A cache mapping "CORE::" to their prototype. Turns out that if +# you "use autodie;" enough times, this pays off. +my %CORE_prototype_cache; + +# We use our package in a few hash-keys. Having it in a scalar is +# convenient. The "guard $PACKAGE" string is used as a key when +# setting up lexical guards. + +my $PACKAGE = __PACKAGE__; +my $NO_PACKAGE = "no $PACKAGE"; # Used to detect 'no autodie' + +# Here's where all the magic happens when someone write 'use Fatal' +# or 'use autodie'. + +sub import { + my $class = shift(@_); + my @original_args = @_; + my $void = 0; + my $lexical = 0; + my $insist_hints = 0; + + my ($pkg, $filename) = caller(); + + @_ or return; # 'use Fatal' is a no-op. + + # If we see the :lexical flag, then _all_ arguments are + # changed lexically + + if ($_[0] eq LEXICAL_TAG) { + $lexical = 1; + shift @_; + + # It is currently an implementation detail that autodie is + # implemented as "use Fatal qw(:lexical ...)". For backwards + # compatibility, we allow it - but not without a warning. + # NB: Optimise for autodie as it is quite possibly the most + # freq. consumer of this case. + if ($class ne 'autodie' and not $class->isa('autodie')) { + if ($class eq 'Fatal') { + warnings::warnif( + 'deprecated', + '[deprecated] The "use Fatal qw(:lexical ...)" ' + . 'should be replaced by "use autodie qw(...)". ' + . 'Seen' # warnif appends " at <...>" + ); + } else { + warnings::warnif( + 'deprecated', + "[deprecated] The class/Package $class is a " + . 'subclass of Fatal and used the :lexical. ' + . 'If $class provides lexical error checking ' + . 'it should extend autodie instead of using :lexical. ' + . 'Seen' # warnif appends " at <...>" + ); + } + # "Promote" the call to autodie from here on. This is + # already mostly the case (e.g. use Fatal qw(:lexical ...) + # would throw autodie::exceptions on error rather than the + # Fatal errors. + $class = 'autodie'; + # This requires that autodie is in fact loaded; otherwise + # the "$class->X()" method calls below will explode. + require autodie; + # TODO, when autodie and Fatal are cleanly separated, we + # should go a "goto &autodie::import" here instead. + } + + # If we see no arguments and :lexical, we assume they + # wanted ':default'. + + if (@_ == 0) { + push(@_, ':default'); + } + + # Don't allow :lexical with :void, it's needlessly confusing. + if ( grep { $_ eq VOID_TAG } @_ ) { + croak(ERROR_VOID_LEX); + } + } + + if ( grep { $_ eq LEXICAL_TAG } @_ ) { + # If we see the lexical tag as the non-first argument, complain. + croak(ERROR_LEX_FIRST); + } + + my @fatalise_these = @_; + + # These subs will get unloaded at the end of lexical scope. + my %unload_later; + # These subs are to be installed into callers namespace. + my %install_subs; + + # Use _translate_import_args to expand tags for us. It will + # pass-through unknown tags (i.e. we have to manually handle + # VOID_TAG). + # + # NB: _translate_import_args re-orders everything for us, so + # we don't have to worry about stuff like: + # + # :default :void :io + # + # That will (correctly) translated into + # + # expand(:defaults-without-io) :void :io + # + # by _translate_import_args. + for my $func ($class->_translate_import_args(@fatalise_these)) { + + if ($func eq VOID_TAG) { + + # When we see :void, set the void flag. + $void = 1; + + } elsif ($func eq INSIST_TAG) { + + $insist_hints = 1; + + } else { + + # Otherwise, fatalise it. + + # Check to see if there's an insist flag at the front. + # If so, remove it, and insist we have hints for this sub. + my $insist_this = $insist_hints; + + if (substr($func, 0, 1) eq '!') { + $func = substr($func, 1); + $insist_this = 1; + } + + # We're going to make a subroutine fatalistic. + # However if we're being invoked with 'use Fatal qw(x)' + # and we've already been called with 'no autodie qw(x)' + # in the same scope, we consider this to be an error. + # Mixing Fatal and autodie effects was considered to be + # needlessly confusing on p5p. + + my $sub = $func; + $sub = "${pkg}::$sub" unless $sub =~ /::/; + + # If we're being called as Fatal, and we've previously + # had a 'no X' in scope for the subroutine, then complain + # bitterly. + + if (! $lexical and $^H{$NO_PACKAGE}{$sub}) { + croak(sprintf(ERROR_FATAL_CONFLICT, $func, $func)); + } + + # We're not being used in a confusing way, so make + # the sub fatal. Note that _make_fatal returns the + # old (original) version of the sub, or undef for + # built-ins. + + my $sub_ref = $class->_make_fatal( + $func, $pkg, $void, $lexical, $filename, + $insist_this, \%install_subs, + ); + + $Original_user_sub{$sub} ||= $sub_ref; + + # If we're making lexical changes, we need to arrange + # for them to be cleaned at the end of our scope, so + # record them here. + + $unload_later{$func} = $sub_ref if $lexical; + } + } + + install_subs($pkg, \%install_subs); + + if ($lexical) { + + # Dark magic to have autodie work under 5.8 + # Copied from namespace::clean, that copied it from + # autobox, that found it on an ancient scroll written + # in blood. + + # This magic bit causes %^H to be lexically scoped. + + $^H |= 0x020000; + + # Our package guard gets invoked when we leave our lexical + # scope. + + on_end_of_compile_scope(sub { + install_subs($pkg, \%unload_later); + }); + + # To allow others to determine when autodie was in scope, + # and with what arguments, we also set a %^H hint which + # is how we were called. + + # This feature should be considered EXPERIMENTAL, and + # may change without notice. Please e-mail pjf@cpan.org + # if you're actually using it. + + $^H{autodie} = "$PACKAGE @original_args"; + + } + + return; + +} + +sub unimport { + my $class = shift; + + # Calling "no Fatal" must start with ":lexical" + if ($_[0] ne LEXICAL_TAG) { + croak(sprintf(ERROR_NO_LEX,$class)); + } + + shift @_; # Remove :lexical + + my $pkg = (caller)[0]; + + # If we've been called with arguments, then the developer + # has explicitly stated 'no autodie qw(blah)', + # in which case, we disable Fatalistic behaviour for 'blah'. + + my @unimport_these = @_ ? @_ : ':all'; + my (%uninstall_subs, %reinstall_subs); + + for my $symbol ($class->_translate_import_args(@unimport_these)) { + + my $sub = $symbol; + $sub = "${pkg}::$sub" unless $sub =~ /::/; + + # If 'blah' was already enabled with Fatal (which has package + # scope) then, this is considered an error. + + if (exists $Package_Fatal{$sub}) { + croak(sprintf(ERROR_AUTODIE_CONFLICT,$symbol,$symbol)); + } + + # Record 'no autodie qw($sub)' as being in effect. + # This is to catch conflicting semantics elsewhere + # (eg, mixing Fatal with no autodie) + + $^H{$NO_PACKAGE}{$sub} = 1; + # Record the current sub to be reinstalled at end of scope + # and then restore the original (can be undef for "CORE::" + # subs) + + { + no strict 'refs'; ## no critic # to avoid: Can't use string (...) as a symbol ref ... + $reinstall_subs{$symbol} = \&$sub + if exists ${"${pkg}::"}{$symbol}; + } + $uninstall_subs{$symbol} = $Original_user_sub{$sub}; + + } + + install_subs($pkg, \%uninstall_subs); + on_end_of_compile_scope(sub { + install_subs($pkg, \%reinstall_subs); + }); + + return; + +} + +sub _translate_import_args { + my ($class, @args) = @_; + my @result; + my %seen; + + if (@args < 2) { + # Optimize for this case, as it is fairly common. (e.g. use + # autodie; or use autodie qw(:all); both trigger this). + return unless @args; + + # Not a (known) tag, pass through. + return @args unless exists($TAGS{$args[0]}); + + # Strip "CORE::" from all elements in the list as import and + # unimport does not handle the "CORE::" prefix too well. + # + # NB: we use substr as it is faster than s/^CORE::// and + # it does not change the elements. + return map { substr($_, 6) } @{ $class->_expand_tag($args[0]) }; + } + + # We want to translate + # + # :default :void :io + # + # into (pseudo-ish): + # + # expanded(:threads) :void expanded(:io) + # + # We accomplish this by "reverse, expand + filter, reverse". + for my $a (reverse(@args)) { + if (exists $TAGS{$a}) { + my $expanded = $class->_expand_tag($a); + push(@result, + # Remove duplicates after ... + grep { !$seen{$_}++ } + # we have stripped CORE:: (see above) + map { substr($_, 6) } + # We take the elements in reverse order + # (as @result be reversed later). + reverse(@{$expanded})); + } else { + # pass through - no filtering here for tags. + # + # The reason for not filtering tags cases like: + # + # ":default :void :io :void :threads" + # + # As we have reversed args, we see this as: + # + # ":threads :void :io :void* :default*" + # + # (Entries marked with "*" will be filtered out completely). When + # reversed again, this will be: + # + # ":io :void :threads" + # + # But we would rather want it to be: + # + # ":void :io :threads" or ":void :io :void :threads" + # + + my $letter = substr($a, 0, 1); + if ($letter ne ':' && $a ne INSIST_TAG) { + next if $seen{$a}++; + if ($letter eq '!' and $seen{substr($a, 1)}++) { + my $name = substr($a, 1); + # People are being silly and doing: + # + # use autodie qw(!a a); + # + # Enjoy this little O(n) clean up... + @result = grep { $_ ne $name } @result; + } + } + push @result, $a; + } + } + # Reverse the result to restore the input order + return reverse(@result); +} + + +# NB: Perl::Critic's dump-autodie-tag-contents depends upon this +# continuing to work. + +{ + # We assume that $TAGS{':all'} is pre-expanded and just fill it in + # from the beginning. + my %tag_cache = ( + 'all' => [map { "CORE::$_" } @{$TAGS{':all'}}], + ); + + # Expand a given tag (e.g. ":default") into a listref containing + # all sub names covered by that tag. Each sub is returned as + # "CORE::" (i.e. "CORE::open" rather than "open"). + # + # NB: the listref must not be modified. + sub _expand_tag { + my ($class, $tag) = @_; + + if (my $cached = $tag_cache{$tag}) { + return $cached; + } + + if (not exists $TAGS{$tag}) { + croak "Invalid exception class $tag"; + } + + my @to_process = @{$TAGS{$tag}}; + + # If the tag is basically an alias of another tag (like e.g. ":2.11"), + # then just share the resulting reference with the original content (so + # we only pay for an extra reference for the alias memory-wise). + if (@to_process == 1 && substr($to_process[0], 0, 1) eq ':') { + # We could do this for "non-tags" as well, but that only occurs + # once at the time of writing (":threads" => ["fork"]), so + # probably not worth it. + my $expanded = $class->_expand_tag($to_process[0]); + $tag_cache{$tag} = $expanded; + return $expanded; + } + + my %seen = (); + my @taglist = (); + + for my $item (@to_process) { + # substr is more efficient than m/^:/ for stuff like this, + # at the price of being a bit more verbose/low-level. + if (substr($item, 0, 1) eq ':') { + # Use recursion here to ensure we expand a tag at most once. + + my $expanded = $class->_expand_tag($item); + push @taglist, grep { !$seen{$_}++ } @{$expanded}; + } else { + my $subname = "CORE::$item"; + push @taglist, $subname + unless $seen{$subname}++; + } + } + + $tag_cache{$tag} = \@taglist; + + return \@taglist; + + } + +} + +# This is a backwards compatible version of _write_invocation. It's +# recommended you don't use it. + +sub write_invocation { + my ($core, $call, $name, $void, @args) = @_; + + return Fatal->_write_invocation( + $core, $call, $name, $void, + 0, # Lexical flag + undef, # Sub, unused in legacy mode + undef, # Subref, unused in legacy mode. + @args + ); +} + +# This version of _write_invocation is used internally. It's not +# recommended you call it from external code, as the interface WILL +# change in the future. + +sub _write_invocation { + + my ($class, $core, $call, $name, $void, $lexical, $sub, $sref, @argvs) = @_; + + if (@argvs == 1) { # No optional arguments + + my @argv = @{$argvs[0]}; + shift @argv; + + return $class->_one_invocation($core,$call,$name,$void,$sub,! $lexical, $sref, @argv); + + } else { + my $else = "\t"; + my (@out, @argv, $n); + while (@argvs) { + @argv = @{shift @argvs}; + $n = shift @argv; + + my $condition = "\@_ == $n"; + + if (@argv and $argv[-1] =~ /[#@]_/) { + # This argv ends with '@' in the prototype, so it matches + # any number of args >= the number of expressions in the + # argv. + $condition = "\@_ >= $n"; + } + + push @out, "${else}if ($condition) {\n"; + + $else = "\t} els"; + + push @out, $class->_one_invocation($core,$call,$name,$void,$sub,! $lexical, $sref, @argv); + } + push @out, qq[ + } + die "Internal error: $name(\@_): Do not expect to get ", scalar(\@_), " arguments"; + ]; + + return join '', @out; + } +} + + +# This is a slim interface to ensure backward compatibility with +# anyone doing very foolish things with old versions of Fatal. + +sub one_invocation { + my ($core, $call, $name, $void, @argv) = @_; + + return Fatal->_one_invocation( + $core, $call, $name, $void, + undef, # Sub. Unused in back-compat mode. + 1, # Back-compat flag + undef, # Subref, unused in back-compat mode. + @argv + ); + +} + +# This is the internal interface that generates code. +# NOTE: This interface WILL change in the future. Please do not +# call this subroutine directly. + +# TODO: Whatever's calling this code has already looked up hints. Pass +# them in, rather than look them up a second time. + +sub _one_invocation { + my ($class, $core, $call, $name, $void, $sub, $back_compat, $sref, @argv) = @_; + + + # If someone is calling us directly (a child class perhaps?) then + # they could try to mix void without enabling backwards + # compatibility. We just don't support this at all, so we gripe + # about it rather than doing something unwise. + + if ($void and not $back_compat) { + Carp::confess("Internal error: :void mode not supported with $class"); + } + + # @argv only contains the results of the in-built prototype + # function, and is therefore safe to interpolate in the + # code generators below. + + # TODO - The following clobbers context, but that's what the + # old Fatal did. Do we care? + + if ($back_compat) { + + # Use Fatal qw(system) will never be supported. It generated + # a compile-time error with legacy Fatal, and there's no reason + # to support it when autodie does a better job. + + if ($call eq 'CORE::system') { + return q{ + croak("UNIMPLEMENTED: use Fatal qw(system) not supported."); + }; + } + + local $" = ', '; + + if ($void) { + return qq/return (defined wantarray)?$call(@argv): + $call(@argv) || Carp::croak("Can't $name(\@_)/ . + ($core ? ': $!' : ', \$! is \"$!\"') . '")' + } else { + return qq{return $call(@argv) || Carp::croak("Can't $name(\@_)} . + ($core ? ': $!' : ', \$! is \"$!\"') . '")'; + } + } + + # The name of our original function is: + # $call if the function is CORE + # $sub if our function is non-CORE + + # The reason for this is that $call is what we're actually + # calling. For our core functions, this is always + # CORE::something. However for user-defined subs, we're about to + # replace whatever it is that we're calling; as such, we actually + # calling a subroutine ref. + + my $human_sub_name = $core ? $call : $sub; + + # Should we be testing to see if our result is defined, or + # just true? + + my $use_defined_or; + + my $hints; # All user-sub hints, including list hints. + + if ( $core ) { + + # Core hints are built into autodie. + + $use_defined_or = exists ( $Use_defined_or{$call} ); + + } + else { + + # User sub hints are looked up using autodie::hints, + # since users may wish to add their own hints. + + require autodie::hints; + + $hints = autodie::hints->get_hints_for( $sref ); + + # We'll look up the sub's fullname. This means we + # get better reports of where it came from in our + # error messages, rather than what imported it. + + $human_sub_name = autodie::hints->sub_fullname( $sref ); + + } + + # Checks for special core subs. + + if ($call eq 'CORE::system') { + + # Leverage IPC::System::Simple if we're making an autodying + # system. + + local $" = ", "; + + # We need to stash $@ into $E, rather than using + # local $@ for the whole sub. If we don't then + # any exceptions from internal errors in autodie/Fatal + # will mysteriously disappear before propagating + # upwards. + + return qq{ + my \$retval; + my \$E; + + + { + local \$@; + + eval { + \$retval = IPC::System::Simple::system(@argv); + }; + + \$E = \$@; + } + + if (\$E) { + + # TODO - This can't be overridden in child + # classes! + + die autodie::exception::system->new( + function => q{CORE::system}, args => [ @argv ], + message => "\$E", errno => \$!, + ); + } + + return \$retval; + }; + + } + + local $" = ', '; + + # If we're going to throw an exception, here's the code to use. + my $die = qq{ + die $class->throw( + function => q{$human_sub_name}, args => [ @argv ], + pragma => q{$class}, errno => \$!, + context => \$context, return => \$retval, + eval_error => \$@ + ) + }; + + if ($call eq 'CORE::flock') { + + # flock needs special treatment. When it fails with + # LOCK_UN and EWOULDBLOCK, then it's not really fatal, it just + # means we couldn't get the lock right now. + + require POSIX; # For POSIX::EWOULDBLOCK + + local $@; # Don't blat anyone else's $@. + + # Ensure that our vendor supports EWOULDBLOCK. If they + # don't (eg, Windows), then we use known values for its + # equivalent on other systems. + + my $EWOULDBLOCK = eval { POSIX::EWOULDBLOCK(); } + || $_EWOULDBLOCK{$^O} + || _autocroak("Internal error - can't overload flock - EWOULDBLOCK not defined on this system."); + my $EAGAIN = $EWOULDBLOCK; + if ($try_EAGAIN) { + $EAGAIN = eval { POSIX::EAGAIN(); } + || _autocroak("Internal error - can't overload flock - EAGAIN not defined on this system."); + } + + require Fcntl; # For Fcntl::LOCK_NB + + return qq{ + + my \$context = wantarray() ? "list" : "scalar"; + + # Try to flock. If successful, return it immediately. + + my \$retval = $call(@argv); + return \$retval if \$retval; + + # If we failed, but we're using LOCK_NB and + # returned EWOULDBLOCK, it's not a real error. + + if (\$_[1] & Fcntl::LOCK_NB() and + (\$! == $EWOULDBLOCK or + ($try_EAGAIN and \$! == $EAGAIN ))) { + return \$retval; + } + + # Otherwise, we failed. Die noisily. + + $die; + + }; + } + + if ($call eq 'CORE::kill') { + + return qq[ + + my \$num_things = \@_ - $Returns_num_things_changed{$call}; + my \$context = ! defined wantarray() ? 'void' : 'scalar'; + my \$signal = \$_[0]; + my \$retval = $call(@argv); + my \$sigzero = looks_like_number( \$signal ) && \$signal == 0; + + if ( ( \$sigzero && \$context eq 'void' ) + or ( ! \$sigzero && \$retval != \$num_things ) ) { + + $die; + } + + return \$retval; + ]; + } + + if (exists $Returns_num_things_changed{$call}) { + + # Some things return the number of things changed (like + # chown, kill, chmod, etc). We only consider these successful + # if *all* the things are changed. + + return qq[ + my \$num_things = \@_ - $Returns_num_things_changed{$call}; + my \$retval = $call(@argv); + + if (\$retval != \$num_things) { + + # We need \$context to throw an exception. + # It's *always* set to scalar, because that's how + # autodie calls chown() above. + + my \$context = "scalar"; + $die; + } + + return \$retval; + ]; + } + + # AFAIK everything that can be given an unopned filehandle + # will fail if it tries to use it, so we don't really need + # the 'unopened' warning class here. Especially since they + # then report the wrong line number. + + # Other warnings are disabled because they produce excessive + # complaints from smart-match hints under 5.10.1. + + my $code = qq[ + no warnings qw(unopened uninitialized numeric); + + if (wantarray) { + my \@results = $call(@argv); + my \$retval = \\\@results; + my \$context = "list"; + + ]; + + my $retval_action = $Retval_action{$call} || ''; + + if ( $hints && exists $hints->{list} ) { + my $match; + if ( ref($hints->{list}) eq 'CODE' ) { + # NB: Subroutine hints are passed as a full list. + # This differs from the 5.10.0 smart-match behaviour, + # but means that context unaware subroutines can use + # the same hints in both list and scalar context. + + $match = q[ $hints->{list}->(@results) ]; + } + elsif ( ref($hints->{list}) eq 'Regexp' ) { + $match = q[ grep $_ =~ $hints->{list}, @results ]; + } + elsif ( !defined $hints->{list} ) { + $match = q[ grep !defined, @results ]; + } + elsif ( SMARTMATCH_ALLOWED ) { + $match = q[ @results ~~ $hints->{list} ]; + warnings::warnif('deprecated', sprintf(WARNING_SMARTMATCH_DEPRECATED, 'list', $sub)); + if (SMARTMATCH_CATEGORY) { + $match = sprintf q[ do { no warnings '%s'; %s } ], SMARTMATCH_CATEGORY, $match; + } + } + else { + croak sprintf(ERROR_SMARTMATCH_HINTS, 'list', $sub); + } + + $code .= qq{ + if ( $match ) { $die }; + }; + } + else { + $code .= qq{ + # An empty list, or a single undef is failure + if (! \@results or (\@results == 1 and ! defined \$results[0])) { + $die; + } + } + } + + # Tidy up the end of our wantarray call. + + $code .= qq[ + return \@results; + } + ]; + + + # Otherwise, we're in scalar context. + # We're never in a void context, since we have to look + # at the result. + + $code .= qq{ + my \$retval = $call(@argv); + my \$context = "scalar"; + }; + + if ( $hints && exists $hints->{scalar} ) { + my $match; + + if ( ref($hints->{scalar}) eq 'CODE' ) { + # We always call code refs directly, since that always + # works in 5.8.x, and always works in 5.10.1 + $match = q[ $hints->{scalar}->($retval) ]; + } + elsif ( ref($hints->{scalar}) eq 'Regexp' ) { + $match = q[ $retval =~ $hints->{scalar} ]; + } + elsif ( !defined $hints->{scalar} ) { + $match = q[ !defined $retval ]; + } + elsif (SMARTMATCH_ALLOWED) { + $match = q[ $retval ~~ $hints->{scalar} ]; + warnings::warnif('deprecated', sprintf(WARNING_SMARTMATCH_DEPRECATED, 'scalar', $sub)); + if (SMARTMATCH_CATEGORY) { + $match = sprintf q[ do { no warnings '%s'; %s } ], SMARTMATCH_CATEGORY, $match; + } + } + else { + croak sprintf(ERROR_SMARTMATCH_HINTS, 'scalar', $sub); + } + + return $code . qq{ + if ( $match ) { $die }; + $retval_action + return \$retval; + }; + } + + return $code . + ( $use_defined_or ? qq{ + + $die if not defined \$retval; + $retval_action + return \$retval; + + } : qq{ + + $retval_action + return \$retval || $die; + + } ) ; + +} + +# This returns the old copy of the sub, so we can +# put it back at end of scope. + +# TODO : Check to make sure prototypes are restored correctly. + +# TODO: Taking a huge list of arguments is awful. Rewriting to +# take a hash would be lovely. + +# TODO - BACKCOMPAT - This is not yet compatible with 5.10.0 + +sub _make_fatal { + my($class, $sub, $pkg, $void, $lexical, $filename, $insist, $install_subs) = @_; + my($code, $sref, $proto, $core, $call, $hints, $cache, $cache_type); + my $ini = $sub; + my $name = $sub; + + + if (index($sub, '::') == -1) { + $sub = "${pkg}::$sub"; + if (substr($name, 0, 1) eq '&') { + $name = substr($name, 1); + } + } else { + $name =~ s/.*:://; + } + + + # Figure if we're using lexical or package semantics and + # twiddle the appropriate bits. + + if (not $lexical) { + $Package_Fatal{$sub} = 1; + } + + # TODO - We *should* be able to do skipping, since we know when + # we've lexicalised / unlexicalised a subroutine. + + + warn "# _make_fatal: sub=$sub pkg=$pkg name=$name void=$void\n" if $Debug; + croak(sprintf(ERROR_BADNAME, $class, $name)) unless $name =~ /^\w+$/; + + if (defined(&$sub)) { # user subroutine + + # NOTE: Previously we would localise $@ at this point, so + # the following calls to eval {} wouldn't interfere with anything + # that's already in $@. Unfortunately, it would also stop + # any of our croaks from triggering(!), which is even worse. + + # This could be something that we've fatalised that + # was in core. + + # Store the current sub in case we need to restore it. + $sref = \&$sub; + + if ( $Package_Fatal{$sub} and exists($CORE_prototype_cache{"CORE::$name"})) { + + # Something we previously made Fatal that was core. + # This is safe to replace with an autodying to core + # version. + + $core = 1; + $call = "CORE::$name"; + $proto = $CORE_prototype_cache{$call}; + + # We return our $sref from this subroutine later + # on, indicating this subroutine should be placed + # back when we're finished. + + + + } else { + + # If this is something we've already fatalised or played with, + # then look-up the name of the original sub for the rest of + # our processing. + + if (exists($Is_fatalised_sub{$sref})) { + # $sub is one of our wrappers around a CORE sub or a + # user sub. Instead of wrapping our wrapper, lets just + # generate a new wrapper for the original sub. + # - NB: the current wrapper might be for a different class + # than the one we are generating now (e.g. some limited + # mixing between use Fatal + use autodie can occur). + # - Even for nested autodie, we need this as the leak guards + # differ. + my $s = $Is_fatalised_sub{$sref}; + if (defined($s)) { + # It is a wrapper for a user sub + $sub = $s; + } else { + # It is a wrapper for a CORE:: sub + $core = 1; + $call = "CORE::$name"; + $proto = $CORE_prototype_cache{$call}; + } + } + + # A regular user sub, or a user sub wrapping a + # core sub. + + if (!$core) { + # A non-CORE sub might have hints and such... + $proto = prototype($sref); + $call = '&$sref'; + require autodie::hints; + + $hints = autodie::hints->get_hints_for( $sref ); + + # If we've insisted on hints, but don't have them, then + # bail out! + + if ($insist and not $hints) { + croak(sprintf(ERROR_NOHINTS, $name)); + } + + # Otherwise, use the default hints if we don't have + # any. + + $hints ||= autodie::hints::DEFAULT_HINTS(); + } + + } + + } elsif ($sub eq $ini && $sub !~ /^CORE::GLOBAL::/) { + # Stray user subroutine + croak(sprintf(ERROR_NOTSUB,$sub)); + + } elsif ($name eq 'system') { + + # If we're fatalising system, then we need to load + # helper code. + + # The business with $E is to avoid clobbering our caller's + # $@, and to avoid $@ being localised when we croak. + + my $E; + + { + local $@; + + eval { + require IPC::System::Simple; # Only load it if we need it. + require autodie::exception::system; + }; + $E = $@; + } + + if ($E) { croak ERROR_NO_IPC_SYS_SIMPLE; } + + # Make sure we're using a recent version of ISS that actually + # support fatalised system. + if ($IPC::System::Simple::VERSION < MIN_IPC_SYS_SIMPLE_VER) { + croak sprintf( + ERROR_IPC_SYS_SIMPLE_OLD, MIN_IPC_SYS_SIMPLE_VER, + $IPC::System::Simple::VERSION + ); + } + + $call = 'CORE::system'; + $core = 1; + + } elsif ($name eq 'exec') { + # Exec doesn't have a prototype. We don't care. This + # breaks the exotic form with lexical scope, and gives + # the regular form a "do or die" behavior as expected. + + $call = 'CORE::exec'; + $core = 1; + + } else { # CORE subroutine + $call = "CORE::$name"; + if (exists($CORE_prototype_cache{$call})) { + $proto = $CORE_prototype_cache{$call}; + } else { + my $E; + { + local $@; + $proto = eval { prototype $call }; + $E = $@; + } + croak(sprintf(ERROR_NOT_BUILT,$name)) if $E; + croak(sprintf(ERROR_CANT_OVERRIDE,$name)) if not defined $proto; + $CORE_prototype_cache{$call} = $proto; + } + $core = 1; + } + + # TODO: This caching works, but I don't like using $void and + # $lexical as keys. In particular, I suspect our code may end up + # wrapping already wrapped code when autodie and Fatal are used + # together. + + # NB: We must use '$sub' (the name plus package) and not + # just '$name' (the short name) here. Failing to do so + # results code that's in the wrong package, and hence has + # access to the wrong package filehandles. + + $cache = $Cached_fatalised_sub{$class}{$sub}; + if ($lexical) { + $cache_type = CACHE_AUTODIE_LEAK_GUARD; + } else { + $cache_type = CACHE_FATAL_WRAPPER; + $cache_type = CACHE_FATAL_VOID if $void; + } + + if (my $subref = $cache->{$cache_type}) { + $install_subs->{$name} = $subref; + return $sref; + } + + # If our subroutine is reusable (ie, not package depdendent), + # then check to see if we've got a cached copy, and use that. + # See RT #46984. (Thanks to Niels Thykier for being awesome!) + + if ($core && exists $reusable_builtins{$call}) { + # For non-lexical subs, we can just use this cache directly + # - for lexical variants, we need a leak guard as well. + $code = $reusable_builtins{$call}{$lexical}; + if (!$lexical && defined($code)) { + $install_subs->{$name} = $code; + return $sref; + } + } + + if (!($lexical && $core) && !defined($code)) { + # No code available, generate it now. + my $wrapper_pkg = $pkg; + $wrapper_pkg = undef if (exists($reusable_builtins{$call})); + $code = $class->_compile_wrapper($wrapper_pkg, $core, $call, $name, + $void, $lexical, $sub, $sref, + $hints, $proto); + if (!defined($wrapper_pkg)) { + # cache it so we don't recompile this part again + $reusable_builtins{$call}{$lexical} = $code; + } + } + + # Now we need to wrap our fatalised sub inside an itty bitty + # closure, which can detect if we've leaked into another file. + # Luckily, we only need to do this for lexical (autodie) + # subs. Fatal subs can leak all they want, it's considered + # a "feature" (or at least backwards compatible). + + # TODO: Cache our leak guards! + + # TODO: This is pretty hairy code. A lot more tests would + # be really nice for this. + + my $installed_sub = $code; + + if ($lexical) { + $installed_sub = $class->_make_leak_guard($filename, $code, $sref, $call, + $pkg, $proto); + } + + $cache->{$cache_type} = $code; + + $install_subs->{$name} = $installed_sub; + + # Cache that we've now overridden this sub. If we get called + # again, we may need to find that find subroutine again (eg, for hints). + + $Is_fatalised_sub{$installed_sub} = $sref; + + return $sref; + +} + +# This subroutine exists primarily so that child classes can override +# it to point to their own exception class. Doing this is significantly +# less complex than overriding throw() + +sub exception_class { return "autodie::exception" }; + +{ + my %exception_class_for; + my %class_loaded; + + sub throw { + my ($class, @args) = @_; + + # Find our exception class if we need it. + my $exception_class = + $exception_class_for{$class} ||= $class->exception_class; + + if (not $class_loaded{$exception_class}) { + if ($exception_class =~ /[^\w:']/) { + confess "Bad exception class '$exception_class'.\nThe '$class->exception_class' method wants to use $exception_class\nfor exceptions, but it contains characters which are not word-characters or colons."; + } + + # Alas, Perl does turn barewords into modules unless they're + # actually barewords. As such, we're left doing a string eval + # to make sure we load our file correctly. + + my $E; + + { + local $@; # We can't clobber $@, it's wrong! + my $pm_file = $exception_class . ".pm"; + $pm_file =~ s{ (?: :: | ' ) }{/}gx; + eval { require $pm_file }; + $E = $@; # Save $E despite ending our local. + } + + # We need quotes around $@ to make sure it's stringified + # while still in scope. Without them, we run the risk of + # $@ having been cleared by us exiting the local() block. + + confess "Failed to load '$exception_class'.\nThis may be a typo in the '$class->exception_class' method,\nor the '$exception_class' module may not exist.\n\n $E" if $E; + + $class_loaded{$exception_class}++; + + } + + return $exception_class->new(@args); + } +} + +# Creates and returns a leak guard (with prototype if needed). +sub _make_leak_guard { + my ($class, $filename, $wrapped_sub, $orig_sub, $call, $pkg, $proto) = @_; + + # The leak guard is rather lengthly (in fact it makes up the most + # of _make_leak_guard). It is possible to split it into a large + # "generic" part and a small wrapper with call-specific + # information. This was done in v2.19 and profiling suggested + # that we ended up using a substantial amount of runtime in "goto" + # between the leak guard(s) and the final sub. Therefore, the two + # parts were merged into one to reduce the runtime overhead. + + my $leak_guard = sub { + my $caller_level = 0; + my $caller; + + while ( ($caller = (caller $caller_level)[1]) =~ m{^\(eval \d+\)$} ) { + + # If our filename is actually an eval, and we + # reach it, then go to our autodying code immediatately. + + last if ($caller eq $filename); + $caller_level++; + } + + # We're now out of the eval stack. + + if ($caller eq $filename) { + # No leak, call the wrapper. NB: In this case, it doesn't + # matter if it is a CORE sub or not. + if (!defined($wrapped_sub)) { + # CORE sub that we were too lazy to compile when we + # created this leak guard. + die "$call is not CORE::" + if substr($call, 0, 6) ne 'CORE::'; + + my $name = substr($call, 6); + my $sub = $name; + my $lexical = 1; + my $wrapper_pkg = $pkg; + my $code; + if (exists($reusable_builtins{$call})) { + $code = $reusable_builtins{$call}{$lexical}; + $wrapper_pkg = undef; + } + if (!defined($code)) { + $code = $class->_compile_wrapper($wrapper_pkg, + 1, # core + $call, + $name, + 0, # void + $lexical, + $sub, + undef, # subref (not used for core) + undef, # hints (not used for core) + $proto); + + if (!defined($wrapper_pkg)) { + # cache it so we don't recompile this part again + $reusable_builtins{$call}{$lexical} = $code; + } + } + # As $wrapped_sub is "closed over", updating its value will + # be "remembered" for the next call. + $wrapped_sub = $code; + } + goto $wrapped_sub; + } + + # We leaked, time to call the original function. + # - for non-core functions that will be $orig_sub + # - for CORE functions, $orig_sub may be a trampoline + goto $orig_sub if defined($orig_sub); + + # We are wrapping a CORE sub and we do not have a trampoline + # yet. + # + # If we've cached a trampoline, then use it. Usually only + # resuable subs will have cache hits, but non-reusuably ones + # can get it as well in (very) rare cases. It is mostly in + # cases where a package uses autodie multiple times and leaks + # from multiple places. Possibly something like: + # + # package Pkg::With::LeakyCode; + # sub a { + # use autodie; + # code_that_leaks(); + # } + # + # sub b { + # use autodie; + # more_leaky_code(); + # } + # + # Note that we use "Fatal" as package name for reusable subs + # because A) that allows us to trivially re-use the + # trampolines as well and B) because the reusable sub is + # compiled into "package Fatal" as well. + + $pkg = 'Fatal' if exists $reusable_builtins{$call}; + $orig_sub = $Trampoline_cache{$pkg}{$call}; + + if (not $orig_sub) { + # If we don't have a trampoline, we need to build it. + # + # We only generate trampolines when we need them, and + # we can cache them by subroutine + package. + # + # As $orig_sub is "closed over", updating its value will + # be "remembered" for the next call. + + $orig_sub = make_core_trampoline($call, $pkg, $proto); + + # We still cache it despite remembering it in $orig_sub as + # well. In particularly, we rely on this to avoid + # re-compiling the reusable trampolines. + $Trampoline_cache{$pkg}{$call} = $orig_sub; + } + + # Bounce to our trampoline, which takes us to our core sub. + goto $orig_sub; + }; # <-- end of leak guard + + # If there is a prototype on the original sub, copy it to the leak + # guard. + if (defined $proto) { + # The "\&" may appear to be redundant but set_prototype + # croaks when it is removed. + set_prototype(\&$leak_guard, $proto); + } + + return $leak_guard; +} + +sub _compile_wrapper { + my ($class, $wrapper_pkg, $core, $call, $name, $void, $lexical, $sub, $sref, $hints, $proto) = @_; + my $real_proto = ''; + my @protos; + my $code; + if (defined $proto) { + $real_proto = " ($proto)"; + } else { + $proto = '@'; + } + + @protos = fill_protos($proto); + $code = qq[ + sub$real_proto { + ]; + + if (!$lexical) { + $code .= q[ + local($", $!) = (', ', 0); + ]; + } + + # Don't have perl whine if exec fails, since we'll be handling + # the exception now. + $code .= "no warnings qw(exec);\n" if $call eq "CORE::exec"; + + $code .= $class->_write_invocation($core, $call, $name, $void, $lexical, + $sub, $sref, @protos); + $code .= "}\n"; + warn $code if $Debug; + + # I thought that changing package was a monumental waste of + # time for CORE subs, since they'll always be the same. However + # that's not the case, since they may refer to package-based + # filehandles (eg, with open). + # + # The %reusable_builtins hash defines ones we can aggressively + # cache as they never depend upon package-based symbols. + + my $E; + + { + no strict 'refs'; ## no critic # to avoid: Can't use string (...) as a symbol ref ... + local $@; + if (defined($wrapper_pkg)) { + $code = eval("package $wrapper_pkg; require Carp; $code"); ## no critic + } else { + $code = eval("require Carp; $code"); ## no critic + + } + $E = $@; + } + + if (not $code) { + my $true_name = $core ? $call : $sub; + croak("Internal error in autodie/Fatal processing $true_name: $E"); + } + return $code; +} + +# For some reason, dying while replacing our subs doesn't +# kill our calling program. It simply stops the loading of +# autodie and keeps going with everything else. The _autocroak +# sub allows us to die with a vengeance. It should *only* ever be +# used for serious internal errors, since the results of it can't +# be captured. + +sub _autocroak { + warn Carp::longmess(@_); + exit(255); # Ugh! +} + +1; + +__END__ + +=head1 NAME + +Fatal - Replace functions with equivalents which succeed or die + +=head1 SYNOPSIS + + use Fatal qw(open close); + + open(my $fh, "<", $filename); # No need to check errors! + + use File::Copy qw(move); + use Fatal qw(move); + + move($file1, $file2); # No need to check errors! + + sub juggle { . . . } + Fatal->import('juggle'); + +=head1 BEST PRACTICE + +B pragma.> Please use +L in preference to C. L supports lexical scoping, +throws real exception objects, and provides much nicer error messages. + +The use of C<:void> with Fatal is discouraged. + +=head1 DESCRIPTION + +C provides a way to conveniently replace +functions which normally return a false value when they fail with +equivalents which raise exceptions if they are not successful. This +lets you use these functions without having to test their return +values explicitly on each call. Exceptions can be caught using +C. See L and L for details. + +The do-or-die equivalents are set up simply by calling Fatal's +C routine, passing it the names of the functions to be +replaced. You may wrap both user-defined functions and overridable +CORE operators (except C, C, C, or any other +built-in that cannot be expressed via prototypes) in this way. + +If the symbol C<:void> appears in the import list, then functions +named later in that import list raise an exception only when +these are called in void context--that is, when their return +values are ignored. For example + + use Fatal qw/:void open close/; + + # properly checked, so no exception raised on error + if (not open(my $fh, '<', '/bogotic') { + warn "Can't open /bogotic: $!"; + } + + # not checked, so error raises an exception + close FH; + +The use of C<:void> is discouraged, as it can result in exceptions +not being thrown if you I call a method without +void context. Use L instead if you need to be able to +disable autodying/Fatal behaviour for a small block of code. + +=head1 DIAGNOSTICS + +=over 4 + +=item Bad subroutine name for Fatal: %s + +You've called C with an argument that doesn't look like +a subroutine name, nor a switch that this version of Fatal +understands. + +=item %s is not a Perl subroutine + +You've asked C to try and replace a subroutine which does not +exist, or has not yet been defined. + +=item %s is neither a builtin, nor a Perl subroutine + +You've asked C to replace a subroutine, but it's not a Perl +built-in, and C couldn't find it as a regular subroutine. +It either doesn't exist or has not yet been defined. + +=item Cannot make the non-overridable %s fatal + +You've tried to use C on a Perl built-in that can't be +overridden, such as C or C, which means that +C can't help you, although some other modules might. +See the L section of this documentation. + +=item Internal error: %s + +You've found a bug in C. Please report it using +the C command. + +=back + +=head1 BUGS + +C clobbers the context in which a function is called and always +makes it a scalar context, except when the C<:void> tag is used. +This problem does not exist in L. + +"Used only once" warnings can be generated when C or C +is used with package filehandles (eg, C). It's strongly recommended +you use scalar filehandles instead. + +=head1 AUTHOR + +Original module by Lionel Cons (CERN). + +Prototype updates by Ilya Zakharevich . + +L support, bugfixes, extended diagnostics, C +support, and major overhauling by Paul Fenwick + +=head1 LICENSE + +This module is free software, you may distribute it under the +same terms as Perl itself. + +=head1 SEE ALSO + +L for a nicer way to use lexical Fatal. + +L for a similar idea for calls to C +and backticks. + +=for Pod::Coverage exception_class fill_protos one_invocation throw write_invocation ERROR_NO_IPC_SYS_SIMPLE LEXICAL_TAG + +=cut diff --git a/git/usr/share/perl5/core_perl/FileCache.pm b/git/usr/share/perl5/core_perl/FileCache.pm new file mode 100644 index 0000000000000000000000000000000000000000..0834719d9b9d412853b0ca02b2429f854a9c028e --- /dev/null +++ b/git/usr/share/perl5/core_perl/FileCache.pm @@ -0,0 +1,188 @@ +package FileCache; + +our $VERSION = '1.10'; + +=head1 NAME + +FileCache - keep more files open than the system permits + +=head1 SYNOPSIS + + no strict 'refs'; + + use FileCache; + # or + use FileCache maxopen => 16; + + cacheout $mode, $path; + # or + cacheout $path; + print $path @data; + + $fh = cacheout $mode, $path; + # or + $fh = cacheout $path; + print $fh @data; + +=head1 DESCRIPTION + +The C function will make sure that there's a filehandle open +for reading or writing available as the pathname you give it. It +automatically closes and re-opens files if you exceed your system's +maximum number of file descriptors, or the suggested maximum I. + +=over + +=item cacheout EXPR + +The 1-argument form of cacheout will open a file for writing (C<< '>' >>) +on it's first use, and appending (C<<< '>>' >>>) thereafter. + +Returns EXPR on success for convenience. You may neglect the +return value and manipulate EXPR as the filehandle directly if you prefer. + +=item cacheout MODE, EXPR + +The 2-argument form of cacheout will use the supplied mode for the initial +and subsequent openings. Most valid modes for 3-argument C are supported +namely; C<< '>' >>, C<< '+>' >>, C<< '<' >>, C<< '<+' >>, C<<< '>>' >>>, +C< '|-' > and C< '-|' > + +To pass supplemental arguments to a program opened with C< '|-' > or C< '-|' > +append them to the command string as you would system EXPR. + +Returns EXPR on success for convenience. You may neglect the +return value and manipulate EXPR as the filehandle directly if you prefer. + +=back + +=head1 CAVEATS + +While it is permissible to C a FileCache managed file, +do not do so if you are calling C from a package other +than which it was imported, or with another module which overrides C. +If you must, use C. + +Although FileCache can be used with piped opens ('-|' or '|-') doing so is +strongly discouraged. If FileCache finds it necessary to close and then reopen +a pipe, the command at the far end of the pipe will be reexecuted - the results +of performing IO on FileCache'd pipes is unlikely to be what you expect. The +ability to use FileCache on pipes may be removed in a future release. + +FileCache does not store the current file offset if it finds it necessary to +close a file. When the file is reopened, the offset will be as specified by the +original C file mode. This could be construed to be a bug. + +The module functionality relies on symbolic references, so things will break +under 'use strict' unless 'no strict "refs"' is also specified. + +=head1 BUGS + +F lies with its C define on some systems, +so you may have to set I yourself. + +=cut + +require 5.006; +use Carp; +use strict; +no strict 'refs'; + +# These are not C for legacy reasons. +# Previous versions requested the user set $cacheout_maxopen by hand. +# Some authors fiddled with %saw to overcome the clobber on initial open. +our %saw; +our $cacheout_maxopen = 16; + +use parent 'Exporter'; +our @EXPORT = qw[cacheout cacheout_close]; + + +my %isopen; +my $cacheout_seq = 0; + +sub import { + my ($pkg,%args) = @_; + + # Use Exporter. %args are for us, not Exporter. + # Make sure to up export_to_level, or we will import into ourselves, + # rather than our calling package; + + __PACKAGE__->export_to_level(1); + Exporter::import( $pkg ); + + # Truth is okay here because setting maxopen to 0 would be bad + return $cacheout_maxopen = $args{maxopen} if $args{maxopen}; + + # XXX This code is crazy. Why is it a one element foreach loop? + # Why is it using $param both as a filename and filehandle? + foreach my $param ( '/usr/include/sys/param.h' ){ + if (open($param, '<', $param)) { + local ($_, $.); + while (<$param>) { + if( /^\s*#\s*define\s+NOFILE\s+(\d+)/ ){ + $cacheout_maxopen = $1 - 4; + close($param); + last; + } + } + close $param; + } + } + $cacheout_maxopen ||= 16; +} + +# Open in their package. +sub cacheout_open { + return open(*{caller(1) . '::' . $_[1]}, $_[0], $_[1]) && $_[1]; +} + +# Close in their package. +sub cacheout_close { + # Short-circuit in case the filehandle disappeared + my $pkg = caller($_[1]||0); + defined fileno(*{$pkg . '::' . $_[0]}) && + CORE::close(*{$pkg . '::' . $_[0]}); + delete $isopen{$_[0]}; +} + +# But only this sub name is visible to them. +sub cacheout { + my($mode, $file, $class, $ret, $ref, $narg); + croak "Not enough arguments for cacheout" unless $narg = scalar @_; + croak "Too many arguments for cacheout" if $narg > 2; + + ($mode, $file) = @_; + ($file, $mode) = ($mode, $file) if $narg == 1; + croak "Invalid mode for cacheout" if $mode && + ( $mode !~ /^\s*(?:>>|\+?>|\+?<|\|\-|)|\-\|\s*$/ ); + + # Mode changed? + if( $isopen{$file} && ($mode||'>') ne $isopen{$file}->[1] ){ + &cacheout_close($file, 1); + } + + if( $isopen{$file}) { + $ret = $file; + $isopen{$file}->[0]++; + } + else{ + if( scalar keys(%isopen) > $cacheout_maxopen -1 ) { + my @lru = sort{ $isopen{$a}->[0] <=> $isopen{$b}->[0] } keys(%isopen); + $cacheout_seq = 0; + $isopen{$_}->[0] = $cacheout_seq++ for + splice(@lru, int($cacheout_maxopen / 3)||$cacheout_maxopen); + &cacheout_close($_, 1) for @lru; + } + + unless( $ref ){ + $mode ||= $saw{$file} ? '>>' : ($saw{$file}=1, '>'); + } + #XXX should we just return the value from cacheout_open, no croak? + $ret = cacheout_open($mode, $file) or croak("Can't create $file: $!"); + + $isopen{$file} = [++$cacheout_seq, $mode]; + } + return $ret; +} +1; diff --git a/git/usr/share/perl5/core_perl/FileHandle.pm b/git/usr/share/perl5/core_perl/FileHandle.pm new file mode 100644 index 0000000000000000000000000000000000000000..a4ae1e437c60393f34cbe850bff071934f2b1e3b --- /dev/null +++ b/git/usr/share/perl5/core_perl/FileHandle.pm @@ -0,0 +1,262 @@ +package FileHandle; + +use 5.006; +use strict; +our($VERSION, @ISA, @EXPORT, @EXPORT_OK); + +$VERSION = "2.05"; + +require IO::File; +@ISA = qw(IO::File); + +@EXPORT = qw(_IOFBF _IOLBF _IONBF); + +@EXPORT_OK = qw( + pipe + + autoflush + output_field_separator + output_record_separator + input_record_separator + input_line_number + format_page_number + format_lines_per_page + format_lines_left + format_name + format_top_name + format_line_break_characters + format_formfeed + + print + printf + getline + getlines +); + +# +# Everything we're willing to export, we must first import. +# +IO::Handle->import( grep { !defined(&$_) } @EXPORT, @EXPORT_OK ); + +# +# Some people call "FileHandle::function", so all the functions +# that were in the old FileHandle class must be imported, too. +# +{ + no strict 'refs'; + + my %import = ( + 'IO::Handle' => + [qw(DESTROY new_from_fd fdopen close fileno getc ungetc gets + eof flush error clearerr setbuf setvbuf _open_mode_string)], + 'IO::Seekable' => + [qw(seek tell getpos setpos)], + 'IO::File' => + [qw(new new_tmpfile open)] + ); + for my $pkg (keys %import) { + for my $func (@{$import{$pkg}}) { + my $c = *{"${pkg}::$func"}{CODE} + or die "${pkg}::$func missing"; + *$func = $c; + } + } +} + +# +# Specialized importer for Fcntl magic. +# +sub import { + my $pkg = shift; + my $callpkg = caller; + require Exporter; + Exporter::export($pkg, $callpkg, @_); + + # + # If the Fcntl extension is available, + # export its constants. + # + eval { + require Fcntl; + Exporter::export('Fcntl', $callpkg); + }; +} + +################################################ +# This is the only exported function we define; +# the rest come from other classes. +# + +sub pipe { + my $r = IO::Handle->new; + my $w = IO::Handle->new; + CORE::pipe($r, $w) or return undef; + ($r, $w); +} + +# Rebless standard file handles +bless *STDIN{IO}, "FileHandle" if ref *STDIN{IO} eq "IO::Handle"; +bless *STDOUT{IO}, "FileHandle" if ref *STDOUT{IO} eq "IO::Handle"; +bless *STDERR{IO}, "FileHandle" if ref *STDERR{IO} eq "IO::Handle"; + +1; + +__END__ + +=head1 NAME + +FileHandle - supply object methods for filehandles + +=head1 SYNOPSIS + + use FileHandle; + + my $fh = FileHandle->new; + if ($fh->open("< file")) { + print <$fh>; + $fh->close; + } + + my $fh = FileHandle->new("> FOO"); + if (defined $fh) { + print $fh "bar\n"; + $fh->close; + } + + my $fh = FileHandle->new("file", "r"); + if (defined $fh) { + print <$fh>; + undef $fh; # automatically closes the file + } + + my $fh = FileHandle->new("file", O_WRONLY|O_APPEND); + if (defined $fh) { + print $fh "corge\n"; + undef $fh; # automatically closes the file + } + + my $pos = $fh->getpos; + $fh->setpos($pos); + + $fh->setvbuf(my $buffer_var, _IOLBF, 1024); + + my ($readfh, $writefh) = FileHandle::pipe; + + autoflush STDOUT 1; + +=head1 DESCRIPTION + +NOTE: This class is now a front-end to the IO::* classes. + +C creates a C, which is a reference to a +newly created symbol (see the L package). If it receives any +parameters, they are passed to C; if the open fails, +the C object is destroyed. Otherwise, it is returned to +the caller. + +C creates a C like C does. +It requires two parameters, which are passed to C; +if the fdopen fails, the C object is destroyed. +Otherwise, it is returned to the caller. + +C accepts one parameter or two. With one parameter, +it is just a front end for the built-in C function. With two +parameters, the first parameter is a filename that may include +whitespace or other special characters, and the second parameter is +the open mode, optionally followed by a file permission value. + +If C receives a Perl mode string (">", "+<", etc.) +or a POSIX fopen() mode string ("w", "r+", etc.), it uses the basic +Perl C operator. + +If C is given a numeric mode, it passes that mode +and the optional permissions value to the Perl C operator. +For convenience, C tries to import the O_XXX +constants from the Fcntl module. If dynamic loading is not available, +this may fail, but the rest of FileHandle will still work. + +C is like C except that its first parameter +is not a filename but rather a file handle name, a FileHandle object, +or a file descriptor number. + +If the C functions fgetpos() and fsetpos() are available, then +C returns an opaque value that represents the +current position of the FileHandle, and C uses +that value to return to a previously visited position. + +If the C function setvbuf() is available, then C +sets the buffering policy for the FileHandle. The calling sequence +for the Perl function is the same as its C counterpart, including the +macros C<_IOFBF>, C<_IOLBF>, and C<_IONBF>, except that the buffer +parameter specifies a scalar variable to use as a buffer. WARNING: A +variable used as a buffer by C must not be +modified in any way until the FileHandle is closed or until +C is called again, or memory corruption may +result! + +See L for complete descriptions of each of the following +supported C methods, which are just front ends for the +corresponding built-in functions: + + close + fileno + getc + gets + eof + clearerr + seek + tell + +See L for complete descriptions of each of the following +supported C methods: + + autoflush + output_field_separator + output_record_separator + input_record_separator + input_line_number + format_page_number + format_lines_per_page + format_lines_left + format_name + format_top_name + format_line_break_characters + format_formfeed + +Furthermore, for doing normal I/O you might need these: + +=over 4 + +=item $fh->print + +See L. + +=item $fh->printf + +See L. + +=item $fh->getline + +This works like <$fh> described in L +except that it's more readable and can be safely called in a +list context but still returns just one line. + +=item $fh->getlines + +This works like <$fh> when called in a list context to +read all the remaining lines in a file, except that it's more readable. +It will also croak() if accidentally called in a scalar context. + +=back + +There are many other functions available since FileHandle is descended +from IO::File, IO::Seekable, and IO::Handle. Please see those +respective pages for documentation on more functions. + +=head1 SEE ALSO + +The B extension, +L, +L. + +=cut diff --git a/git/usr/share/perl5/core_perl/FindBin.pm b/git/usr/share/perl5/core_perl/FindBin.pm new file mode 100644 index 0000000000000000000000000000000000000000..a4001564698f189577b570f9b54cf350746c9cf5 --- /dev/null +++ b/git/usr/share/perl5/core_perl/FindBin.pm @@ -0,0 +1,187 @@ +# FindBin.pm +# +# Copyright (c) 1995 Graham Barr & Nick Ing-Simmons. All rights reserved. +# This program is free software; you can redistribute it and/or modify it +# under the same terms as Perl itself. + +=head1 NAME + +FindBin - Locate directory of original Perl script + +=head1 SYNOPSIS + + use FindBin; + use lib "$FindBin::Bin/../lib"; + + use FindBin qw($Bin); + use lib "$Bin/../lib"; + +=head1 DESCRIPTION + +Locates the full path to the script bin directory to allow the use +of paths relative to the bin directory. + +This allows a user to setup a directory tree for some software with +directories C<< /bin >> and C<< /lib >>, and then the above +example will allow the use of modules in the lib directory without knowing +where the software tree is installed. + +If C is invoked using the C<-e> option or the Perl script is read from +C, then C sets both C<$Bin> and C<$RealBin> to the current +directory. + +=head1 EXPORTABLE VARIABLES + +=over + +=item C<$Bin> or C<$Dir> + +Path to the bin B from where script was invoked + +=item C<$Script> + +B of the script from which C was invoked + +=item C<$RealBin> or C<$RealDir> + +C<$Bin> with all links resolved + +=item C<$RealScript> + +C<$Script> with all links resolved + +=back + +You can also use the C tag to export all of the above variables together: + + use FindBin ':ALL'; + +=head1 KNOWN ISSUES + +If there are two modules using C from different directories +under the same interpreter, this won't work. Since C uses a +C block, it'll be executed only once, and only the first caller +will get it right. This is a problem under C and other persistent +Perl environments, where you shouldn't use this module. Which also means +that you should avoid using C in modules that you plan to put +on CPAN. Call the C function to make sure that C will work: + + use FindBin; + FindBin::again(); # or FindBin->again; + +In former versions of C there was no C function. +The workaround was to force the C block to be executed again: + + delete $INC{'FindBin.pm'}; + require FindBin; + +=head1 AUTHORS + +C is supported as part of the core perl distribution. Please submit bug +reports at L. + +Graham Barr EFE +Nick Ing-Simmons EFE + +=head1 COPYRIGHT + +Copyright (c) 1995 Graham Barr & Nick Ing-Simmons. All rights reserved. +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +=cut + +package FindBin; +use strict; +use warnings; + +use Carp; +require Exporter; +use Cwd qw(getcwd cwd abs_path); +use File::Basename; +use File::Spec; + +our ($Bin, $Script, $RealBin, $RealScript, $Dir, $RealDir); +our @EXPORT_OK = qw($Bin $Script $RealBin $RealScript $Dir $RealDir); +our %EXPORT_TAGS = (ALL => [qw($Bin $Script $RealBin $RealScript $Dir $RealDir)]); +our @ISA = qw(Exporter); + +our $VERSION = "1.54"; + +# needed for VMS-specific filename translation +if( $^O eq 'VMS' ) { + require VMS::Filespec; + VMS::Filespec->import; +} + +sub cwd2 { + my $cwd = getcwd(); + # getcwd might fail if it hasn't access to the current directory. + # try harder. + defined $cwd or $cwd = cwd(); + $cwd; +} + +sub init +{ + *Dir = \$Bin; + *RealDir = \$RealBin; + + if($0 eq '-e' || $0 eq '-') + { + # perl invoked with -e or script is on C + $Script = $RealScript = $0; + $Bin = $RealBin = cwd2(); + $Bin = VMS::Filespec::unixify($Bin) if $^O eq 'VMS'; + } + else + { + my $script = $0; + + if ($^O eq 'VMS') + { + ($Bin,$Script) = VMS::Filespec::rmsexpand($0) =~ /(.*[\]>\/]+)(.*)/s; + # C isn't going to work, so unixify first + ($Bin = VMS::Filespec::unixify($Bin)) =~ s/\/\z//; + ($RealBin,$RealScript) = ($Bin,$Script); + } + else + { + croak("Cannot find current script '$0'") unless(-f $script); + + # Ensure $script contains the complete path in case we C + + $script = File::Spec->catfile(cwd2(), $script) + unless File::Spec->file_name_is_absolute($script); + + ($Script,$Bin) = fileparse($script); + + # Resolve $script if it is a link + while(1) + { + my $linktext = readlink($script); + + ($RealScript,$RealBin) = fileparse($script); + last unless defined $linktext; + + $script = (File::Spec->file_name_is_absolute($linktext)) + ? $linktext + : File::Spec->catfile($RealBin, $linktext); + } + + # Get absolute paths to directories + if ($Bin) { + my $BinOld = $Bin; + $Bin = abs_path($Bin); + defined $Bin or $Bin = File::Spec->canonpath($BinOld); + } + $RealBin = abs_path($RealBin) if($RealBin); + } + } +} + +BEGIN { init } + +*again = \&init; + +1; # Keep require happy diff --git a/git/usr/share/perl5/core_perl/Memoize.pm b/git/usr/share/perl5/core_perl/Memoize.pm new file mode 100644 index 0000000000000000000000000000000000000000..bf26cf422a7bb9ebafea4f5ae0a98dc5141341c4 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Memoize.pm @@ -0,0 +1,958 @@ +# -*- mode: perl; perl-indent-level: 2; -*- +# vim: ts=8 sw=2 sts=2 noexpandtab + +# Memoize.pm +# +# Copyright 1998, 1999, 2000, 2001, 2012 M. J. Dominus. +# You may copy and distribute this program under the +# same terms as Perl itself. + +use strict; use warnings; + +package Memoize; +our $VERSION = '1.17'; + +use Carp; +use Scalar::Util 1.11 (); # for set_prototype + +BEGIN { require Exporter; *import = \&Exporter::import } +our @EXPORT = qw(memoize); +our @EXPORT_OK = qw(unmemoize flush_cache); + +my %memotable; + +sub CLONE { + my @info = values %memotable; + %memotable = map +($_->{WRAPPER} => $_), @info; +} + +sub memoize { + my $fn = shift; + my %options = @_; + + unless (defined($fn) && + (ref $fn eq 'CODE' || ref $fn eq '')) { + croak "Usage: memoize 'functionname'|coderef {OPTIONS}"; + } + + my $uppack = caller; # TCL me Elmo! + my $name = (ref $fn ? undef : $fn); + my $cref = _make_cref($fn, $uppack); + + my $normalizer = $options{NORMALIZER}; + if (defined $normalizer && ! ref $normalizer) { + $normalizer = _make_cref($normalizer, $uppack); + } + + my $install_name = exists $options{INSTALL} + ? $options{INSTALL} # use given name (or, if undef: do not install) + : $name; # no INSTALL option provided: default to original name if possible + + if (defined $install_name) { + $install_name = $uppack . '::' . $install_name + unless $install_name =~ /::/; + } + + # convert LIST_CACHE => MERGE to SCALAR_CACHE => MERGE + # to ensure TIE/HASH will always be checked by _check_suitable + if (($options{LIST_CACHE} || '') eq 'MERGE') { + $options{LIST_CACHE} = $options{SCALAR_CACHE}; + $options{SCALAR_CACHE} = 'MERGE'; + } + + # These will be the caches + my %caches; + for my $context (qw(LIST SCALAR)) { # SCALAR_CACHE must be last, to process MERGE + my $fullopt = $options{"${context}_CACHE"} ||= 'MEMORY'; + my ($cache_opt, @cache_opt_args) = ref $fullopt ? @$fullopt : $fullopt; + if ($cache_opt eq 'FAULT') { # no cache + $caches{$context} = undef; + } elsif ($cache_opt eq 'HASH') { # user-supplied hash + my $cache = $cache_opt_args[0]; + _check_suitable($context, ref tied %$cache); + $caches{$context} = $cache; + } elsif ($cache_opt eq 'TIE') { + carp("TIE option to memoize() is deprecated; use HASH instead") + if warnings::enabled('all'); + my $module = shift(@cache_opt_args) || ''; + _check_suitable($context, $module); + my $hash = $caches{$context} = {}; + (my $modulefile = $module . '.pm') =~ s{::}{/}g; + require $modulefile; + tie(%$hash, $module, @cache_opt_args) + or croak "Couldn't tie memoize hash to `$module': $!"; + } elsif ($cache_opt eq 'MEMORY') { + $caches{$context} = {}; + } elsif ($cache_opt eq 'MERGE' and not ref $fullopt) { # ['MERGE'] was never supported + die "cannot MERGE $context\_CACHE" if $context ne 'SCALAR'; # should never happen + die 'bad cache setup order' if not exists $caches{LIST}; # should never happen + $options{MERGED} = 1; + $caches{SCALAR} = $caches{LIST}; + } else { + croak "Unrecognized option to `${context}_CACHE': `$cache_opt' should be one of (MERGE TIE MEMORY FAULT HASH)"; + } + } + + my $wrapper = _wrap($install_name, $cref, $normalizer, $options{MERGED}, \%caches); + + if (defined $install_name) { + no strict; + no warnings 'redefine'; + *{$install_name} = $wrapper; + } + + $memotable{$wrapper} = { + L => $caches{LIST}, + S => $caches{SCALAR}, + U => $cref, + NAME => $install_name, + WRAPPER => $wrapper, + }; + + $wrapper # Return just memoized version +} + +sub flush_cache { + my $func = _make_cref($_[0], scalar caller); + my $info = $memotable{$func}; + die "$func not memoized" unless defined $info; + for my $context (qw(S L)) { + my $cache = $info->{$context}; + if (tied %$cache && ! (tied %$cache)->can('CLEAR')) { + my $funcname = defined($info->{NAME}) ? + "function $info->{NAME}" : "anonymous function $func"; + my $context = {S => 'scalar', L => 'list'}->{$context}; + croak "Tied cache hash for $context-context $funcname does not support flushing"; + } else { + %$cache = (); + } + } +} + +sub _wrap { + my ($name, $orig, $normalizer, $merged, $caches) = @_; + my ($cache_L, $cache_S) = @$caches{qw(LIST SCALAR)}; + undef $caches; # keep the pad from keeping the hash alive forever + Scalar::Util::set_prototype(sub { + my $argstr = do { + no warnings 'uninitialized'; + defined $normalizer + ? ( wantarray ? ( $normalizer->( @_ ) )[0] : $normalizer->( @_ ) ) + . '' # coerce undef to string while the warning is off + : join chr(28), @_; + }; + + if (wantarray) { + _crap_out($name, 'list') unless $cache_L; + exists $cache_L->{$argstr} ? ( + @{$cache_L->{$argstr}} + ) : do { + my @q = do { no warnings 'recursion'; &$orig }; + $cache_L->{$argstr} = \@q; + @q; + }; + } else { + _crap_out($name, 'scalar') unless $cache_S; + exists $cache_S->{$argstr} ? ( + $merged ? $cache_S->{$argstr}[0] : $cache_S->{$argstr} + ) : do { + my $val = do { no warnings 'recursion'; &$orig }; + $cache_S->{$argstr} = $merged ? [$val] : $val; + $val; + }; + } + }, prototype $orig); +} + +sub unmemoize { + my $f = shift; + my $uppack = caller; + my $cref = _make_cref($f, $uppack); + + unless (exists $memotable{$cref}) { + croak "Could not unmemoize function `$f', because it was not memoized to begin with"; + } + + my $tabent = $memotable{$cref}; + unless (defined $tabent) { + croak "Could not figure out how to unmemoize function `$f'"; + } + my $name = $tabent->{NAME}; + if (defined $name) { + no strict; + no warnings 'redefine'; + *{$name} = $tabent->{U}; # Replace with original function + } + delete $memotable{$cref}; + + $tabent->{U}; +} + +sub _make_cref { + my $fn = shift; + my $uppack = shift; + my $cref; + my $name; + + if (ref $fn eq 'CODE') { + $cref = $fn; + } elsif (! ref $fn) { + if ($fn =~ /::/) { + $name = $fn; + } else { + $name = $uppack . '::' . $fn; + } + no strict; + if (defined $name and !defined(&$name)) { + croak "Cannot operate on nonexistent function `$fn'"; + } +# $cref = \&$name; + $cref = *{$name}{CODE}; + } else { + my $parent = (caller(1))[3]; # Function that called _make_cref + croak "Usage: argument 1 to `$parent' must be a function name or reference.\n"; + } + our $DEBUG and warn "${name}($fn) => $cref in _make_cref\n"; + $cref; +} + +sub _crap_out { + my ($funcname, $context) = @_; + if (defined $funcname) { + croak "Function `$funcname' called in forbidden $context context; faulting"; + } else { + croak "Anonymous function called in forbidden $context context; faulting"; + } +} + +# Raise an error if the user tries to specify one of these packages as a +# tie for LIST_CACHE +my %scalar_only = map {($_ => 1)} qw(DB_File GDBM_File SDBM_File ODBM_File), map +($_, "Memoize::$_"), qw(AnyDBM_File NDBM_File); +sub _check_suitable { + my ($context, $package) = @_; + croak "You can't use $package for LIST_CACHE because it can only store scalars" + if $context eq 'LIST' and $scalar_only{$package}; +} + +1; + +__END__ + +=pod + +=head1 NAME + +Memoize - Make functions faster by trading space for time + +=head1 SYNOPSIS + + use Memoize; + memoize('slow_function'); + slow_function(arguments); # Is faster than it was before + + +This is normally all you need to know. However, many options are available: + + memoize(function, options...); + +Options include: + + NORMALIZER => function + INSTALL => new_name + + SCALAR_CACHE => 'MEMORY' + SCALAR_CACHE => ['HASH', \%cache_hash ] + SCALAR_CACHE => 'FAULT' + SCALAR_CACHE => 'MERGE' + + LIST_CACHE => 'MEMORY' + LIST_CACHE => ['HASH', \%cache_hash ] + LIST_CACHE => 'FAULT' + LIST_CACHE => 'MERGE' + +=head1 DESCRIPTION + +I a function makes it faster by trading space for time. It +does this by caching the return values of the function in a table. +If you call the function again with the same arguments, C +jumps in and gives you the value out of the table, instead of letting +the function compute the value all over again. + +=head1 EXAMPLE + +Here is an extreme example. Consider the Fibonacci sequence, defined +by the following function: + + # Compute Fibonacci numbers + sub fib { + my $n = shift; + return $n if $n < 2; + fib($n-1) + fib($n-2); + } + +This function is very slow. Why? To compute fib(14), it first wants +to compute fib(13) and fib(12), and add the results. But to compute +fib(13), it first has to compute fib(12) and fib(11), and then it +comes back and computes fib(12) all over again even though the answer +is the same. And both of the times that it wants to compute fib(12), +it has to compute fib(11) from scratch, and then it has to do it +again each time it wants to compute fib(13). This function does so +much recomputing of old results that it takes a really long time to +run---fib(14) makes 1,200 extra recursive calls to itself, to compute +and recompute things that it already computed. + +This function is a good candidate for memoization. If you memoize the +C function above, it will compute fib(14) exactly once, the first +time it needs to, and then save the result in a table. Then if you +ask for fib(14) again, it gives you the result out of the table. +While computing fib(14), instead of computing fib(12) twice, it does +it once; the second time it needs the value it gets it from the table. +It doesn't compute fib(11) four times; it computes it once, getting it +from the table the next three times. Instead of making 1,200 +recursive calls to C, it makes 15. This makes the function about +150 times faster. + +You could do the memoization yourself, by rewriting the function, like +this: + + # Compute Fibonacci numbers, memoized version + { my @fib; + sub fib { + my $n = shift; + return $fib[$n] if defined $fib[$n]; + return $fib[$n] = $n if $n < 2; + $fib[$n] = fib($n-1) + fib($n-2); + } + } + +Or you could use this module, like this: + + use Memoize; + memoize('fib'); + + # Rest of the fib function just like the original version. + +This makes it easy to turn memoizing on and off. + +Here's an even simpler example: I wrote a simple ray tracer; the +program would look in a certain direction, figure out what it was +looking at, and then convert the C value (typically a string +like C) of that object to a red, green, and blue pixel value, like +this: + + for ($direction = 0; $direction < 300; $direction++) { + # Figure out which object is in direction $direction + $color = $object->{color}; + ($r, $g, $b) = @{&ColorToRGB($color)}; + ... + } + +Since there are relatively few objects in a picture, there are only a +few colors, which get looked up over and over again. Memoizing +C sped up the program by several percent. + +=head1 DETAILS + +This module exports exactly one function, C. The rest of the +functions in this package are None of Your Business. + +You should say + + memoize(function) + +where C is the name of the function you want to memoize, or +a reference to it. C returns a reference to the new, +memoized version of the function, or C on a non-fatal error. +At present, there are no non-fatal errors, but there might be some in +the future. + +If C was the name of a function, then C hides the +old version and installs the new memoized version under the old name, +so that C<&function(...)> actually invokes the memoized version. + +=head1 OPTIONS + +There are some optional options you can pass to C to change +the way it behaves a little. To supply options, invoke C +like this: + + memoize(function, NORMALIZER => function, + INSTALL => newname, + SCALAR_CACHE => option, + LIST_CACHE => option + ); + +Each of these options is optional; you can include some, all, or none +of them. + +=head2 INSTALL + +If you supply a function name with C, memoize will install +the new, memoized version of the function under the name you give. +For example, + + memoize('fib', INSTALL => 'fastfib') + +installs the memoized version of C as C; without the +C option it would have replaced the old C with the +memoized version. + +To prevent C from installing the memoized version anywhere, use +C undef>. + +=head2 NORMALIZER + +Suppose your function looks like this: + + # Typical call: f('aha!', A => 11, B => 12); + sub f { + my $a = shift; + my %hash = @_; + $hash{B} ||= 2; # B defaults to 2 + $hash{C} ||= 7; # C defaults to 7 + + # Do something with $a, %hash + } + +Now, the following calls to your function are all completely equivalent: + + f(OUCH); + f(OUCH, B => 2); + f(OUCH, C => 7); + f(OUCH, B => 2, C => 7); + f(OUCH, C => 7, B => 2); + (etc.) + +However, unless you tell C that these calls are equivalent, +it will not know that, and it will compute the values for these +invocations of your function separately, and store them separately. + +To prevent this, supply a C function that turns the +program arguments into a string in a way that equivalent arguments +turn into the same string. A C function for C above +might look like this: + + sub normalize_f { + my $a = shift; + my %hash = @_; + $hash{B} ||= 2; + $hash{C} ||= 7; + + join(',', $a, map ($_ => $hash{$_}) sort keys %hash); + } + +Each of the argument lists above comes out of the C +function looking exactly the same, like this: + + OUCH,B,2,C,7 + +You would tell C to use this normalizer this way: + + memoize('f', NORMALIZER => 'normalize_f'); + +C knows that if the normalized version of the arguments is +the same for two argument lists, then it can safely look up the value +that it computed for one argument list and return it as the result of +calling the function with the other argument list, even if the +argument lists look different. + +The default normalizer just concatenates the arguments with character +28 in between. (In ASCII, this is called FS or control-\.) This +always works correctly for functions with only one string argument, +and also when the arguments never contain character 28. However, it +can confuse certain argument lists: + + normalizer("a\034", "b") + normalizer("a", "\034b") + normalizer("a\034\034b") + +for example. + +Since hash keys are strings, the default normalizer will not +distinguish between C and the empty string. It also won't work +when the function's arguments are references. For example, consider a +function C which gets two arguments: A number, and a reference to +an array of numbers: + + g(13, [1,2,3,4,5,6,7]); + +The default normalizer will turn this into something like +C<"13\034ARRAY(0x436c1f)">. That would be all right, except that a +subsequent array of numbers might be stored at a different location +even though it contains the same data. If this happens, C +will think that the arguments are different, even though they are +equivalent. In this case, a normalizer like this is appropriate: + + sub normalize { join ' ', $_[0], @{$_[1]} } + +For the example above, this produces the key "13 1 2 3 4 5 6 7". + +Another use for normalizers is when the function depends on data other +than those in its arguments. Suppose you have a function which +returns a value which depends on the current hour of the day: + + sub on_duty { + my ($problem_type) = @_; + my $hour = (localtime)[2]; + open my $fh, "$DIR/$problem_type" or die...; + my $line; + while ($hour-- > 0) + $line = <$fh>; + } + return $line; + } + +At 10:23, this function generates the 10th line of a data file; at +3:45 PM it generates the 15th line instead. By default, C +will only see the $problem_type argument. To fix this, include the +current hour in the normalizer: + + sub normalize { join ' ', (localtime)[2], @_ } + +The calling context of the function (scalar or list context) is +propagated to the normalizer. This means that if the memoized +function will treat its arguments differently in list context than it +would in scalar context, you can have the normalizer function select +its behavior based on the results of C. Even if called in +a list context, a normalizer should still return a single string. + +=head2 C, C + +Normally, C caches your function's return values into an +ordinary Perl hash variable. However, you might like to have the +values cached on the disk, so that they persist from one run of your +program to the next, or you might like to associate some other +interesting semantics with the cached values. + +There's a slight complication under the hood of C: There are +actually I caches, one for scalar values and one for list values. +When your function is called in scalar context, its return value is +cached in one hash, and when your function is called in list context, +its value is cached in the other hash. You can control the caching +behavior of both contexts independently with these options. + +The argument to C or C must either be one of +the following four strings: + + MEMORY + FAULT + MERGE + HASH + +or else it must be a reference to an array whose first element is one of +these four strings, such as C<[HASH, arguments...]>. + +=over 4 + +=item C + +C means that return values from the function will be cached in +an ordinary Perl hash variable. The hash variable will not persist +after the program exits. This is the default. + +=item C + +C allows you to specify that a particular hash that you supply +will be used as the cache. You can tie this hash beforehand to give +it any behavior you want. + +A tied hash can have any semantics at all. It is typically tied to an +on-disk database, so that cached values are stored in the database and +retrieved from it again when needed, and the disk file typically +persists after your program has exited. See C for more +complete details about C. + +A typical example is: + + use DB_File; + tie my %cache => 'DB_File', $filename, O_RDWR|O_CREAT, 0666; + memoize 'function', SCALAR_CACHE => [HASH => \%cache]; + +This has the effect of storing the cache in a C database +whose name is in C<$filename>. The cache will persist after the +program has exited. Next time the program runs, it will find the +cache already populated from the previous run of the program. Or you +can forcibly populate the cache by constructing a batch program that +runs in the background and populates the cache file. Then when you +come to run your real program the memoized function will be fast +because all its results have been precomputed. + +Another reason to use C is to provide your own hash variable. +You can then inspect or modify the contents of the hash to gain finer +control over the cache management. + +=item C + +This option is no longer supported. It is still documented only to +aid in the debugging of old programs that use it. Old programs should +be converted to use the C option instead. + + memoize ... ['TIE', PACKAGE, ARGS...] + +is merely a shortcut for + + require PACKAGE; + { tie my %cache, PACKAGE, ARGS...; + memoize ... [HASH => \%cache]; + } + +=item C + +C means that you never expect to call the function in scalar +(or list) context, and that if C detects such a call, it +should abort the program. The error message is one of + + `foo' function called in forbidden list context at line ... + `foo' function called in forbidden scalar context at line ... + +=item C + +C normally means that the memoized function does not +distinguish between list and scalar context, and that return values in +both contexts should be stored together. Both C +MERGE> and C MERGE> mean the same thing. + +Consider this function: + + sub complicated { + # ... time-consuming calculation of $result + return $result; + } + +The C function will return the same numeric C<$result> +regardless of whether it is called in list or in scalar context. + +Normally, the following code will result in two calls to C, even +if C is memoized: + + $x = complicated(142); + ($y) = complicated(142); + $z = complicated(142); + +The first call will cache the result, say 37, in the scalar cache; the +second will cache the list C<(37)> in the list cache. The third call +doesn't call the real C function; it gets the value 37 +from the scalar cache. + +Obviously, the second call to C is a waste of time, and +storing its return value is a waste of space. Specifying C MERGE> will make C use the same cache for scalar and +list context return values, so that the second call uses the scalar +cache that was populated by the first call. C ends up +being called only once, and both subsequent calls return C<37> from the +cache, regardless of the calling context. + +=back + +=head3 List values in scalar context + +Consider this function: + + sub iota { return reverse (1..$_[0]) } + +This function normally returns a list. Suppose you memoize it and +merge the caches: + + memoize 'iota', SCALAR_CACHE => 'MERGE'; + + @i7 = iota(7); + $i7 = iota(7); + +Here the first call caches the list (1,2,3,4,5,6,7). The second call +does not really make sense. C cannot guess what behavior +C should have in scalar context without actually calling it in +scalar context. Normally C I call C in scalar +context and cache the result, but the C 'MERGE'> +option says not to do that, but to use the cache list-context value +instead. But it cannot return a list of seven elements in a scalar +context. In this case C<$i7> will receive the B of the +cached list value, namely 7. + +=head3 Merged disk caches + +Another use for C is when you want both kinds of return values +stored in the same disk file; this saves you from having to deal with +two disk files instead of one. You can use a normalizer function to +keep the two sets of return values separate. For example: + + local $MLDBM::UseDB = 'DB_File'; + tie my %cache => 'MLDBM', $filename, ...; + + memoize 'myfunc', + NORMALIZER => 'n', + SCALAR_CACHE => [HASH => \%cache], + LIST_CACHE => 'MERGE', + ; + + sub n { + my $context = wantarray() ? 'L' : 'S'; + # ... now compute the hash key from the arguments ... + $hashkey = "$context:$hashkey"; + } + +This normalizer function will store scalar context return values in +the disk file under keys that begin with C, and list context +return values under keys that begin with C. + +=head1 OTHER FACILITIES + +=head2 C + +There's an C function that you can import if you want to. +Why would you want to? Here's an example: Suppose you have your cache +tied to a DBM file, and you want to make sure that the cache is +written out to disk if someone interrupts the program. If the program +exits normally, this will happen anyway, but if someone types +control-C or something then the program will terminate immediately +without synchronizing the database. So what you can do instead is + + $SIG{INT} = sub { unmemoize 'function' }; + +C accepts a reference to, or the name of a previously +memoized function, and undoes whatever it did to provide the memoized +version in the first place, including making the name refer to the +unmemoized version if appropriate. It returns a reference to the +unmemoized version of the function. + +If you ask it to unmemoize a function that was never memoized, it +croaks. + +=head2 C + +C will flush out the caches, discarding I +the cached data. The argument may be a function name or a reference +to a function. For finer control over when data is discarded or +expired, see the documentation for C, included in +this package. + +Note that if the cache is a tied hash, C will attempt to +invoke the C method on the hash. If there is no C +method, this will cause a run-time error. + +An alternative approach to cache flushing is to use the C option +(see above) to request that C use a particular hash variable +as its cache. Then you can examine or modify the hash at any time in +any way you desire. You may flush the cache by using C<%hash = ()>. + +=head1 CAVEATS + +Memoization is not a cure-all: + +=over 4 + +=item * + +Do not memoize a function whose behavior depends on program +state other than its own arguments, such as global variables, the time +of day, or file input. These functions will not produce correct +results when memoized. For a particularly easy example: + + sub f { + time; + } + +This function takes no arguments, and as far as C is +concerned, it always returns the same result. C is wrong, of +course, and the memoized version of this function will call C

throws away the first user on the list and prints the +rest: + + sub main { + my $userlist = getusers(); + shift @$userlist; + foreach $u (@$userlist) { + print "User $u\n"; + } + } + + sub getusers { + my @users; + # Do something to get a list of users; + \@users; # Return reference to list. + } + +If you memoize C here, it will work right exactly once. The +reference to the users list will be stored in the memo table. C
+will discard the first element from the referenced list. The next +time you invoke C
, C will not call C; it will +just return the same reference to the same list it got last time. But +this time the list has already had its head removed; C
will +erroneously remove another element from it. The list will get shorter +and shorter every time you call C
. + +Similarly, this: + + $u1 = getusers(); + $u2 = getusers(); + pop @$u1; + +will modify $u2 as well as $u1, because both variables are references +to the same array. Had C not been memoized, $u1 and $u2 +would have referred to different arrays. + +=item * + +Do not memoize a very simple function. + +Recently someone mentioned to me that the Memoize module made his +program run slower instead of faster. It turned out that he was +memoizing the following function: + + sub square { + $_[0] * $_[0]; + } + +I pointed out that C uses a hash, and that looking up a +number in the hash is necessarily going to take a lot longer than a +single multiplication. There really is no way to speed up the +C function. + +Memoization is not magical. + +=back + +=head1 PERSISTENT CACHE SUPPORT + +You can tie the cache tables to any sort of tied hash that you want +to, as long as it supports C, C, C, and +C. For example, + + tie my %cache => 'GDBM_File', $filename, O_RDWR|O_CREAT, 0666; + memoize 'function', SCALAR_CACHE => [HASH => \%cache]; + +works just fine. For some storage methods, you need a little glue. + +C doesn't supply an C method, so included in this +package is a glue module called C which does +provide one. Use this instead of plain C to store your +cache table on disk in an C database: + + tie my %cache => 'Memoize::SDBM_File', $filename, O_RDWR|O_CREAT, 0666; + memoize 'function', SCALAR_CACHE => [HASH => \%cache]; + +C has the same problem and the same solution. (Use +C) + +C isn't a tied hash class at all. You can use it to store a +hash to disk and retrieve it again, but you can't modify the hash while +it's on the disk. So if you want to store your cache table in a +C database, use C, which puts a hashlike +front-end onto C. The hash table is actually kept in +memory, and is loaded from your C file at the time you +memoize the function, and stored back at the time you unmemoize the +function (or when your program exits): + + tie my %cache => 'Memoize::Storable', $filename; + memoize 'function', SCALAR_CACHE => [HASH => \%cache]; + + tie my %cache => 'Memoize::Storable', $filename, 'nstore'; + memoize 'function', SCALAR_CACHE => [HASH => \%cache]; + +Include the C option to have the C database written +in I. (See L for more details about this.) + +The C function will raise a run-time error unless the +tied package provides a C method. + +=head1 EXPIRATION SUPPORT + +See Memoize::Expire, which is a plug-in module that adds expiration +functionality to Memoize. If you don't like the kinds of policies +that Memoize::Expire implements, it is easy to write your own plug-in +module to implement whatever policy you desire. Memoize comes with +several examples. An expiration manager that implements a LRU policy +is available on CPAN as Memoize::ExpireLRU. + +=head1 BUGS + +The test suite is much better, but always needs improvement. + +There is some problem with the way C works under threaded +Perl, perhaps because of the lexical scoping of C<@_>. This is a bug +in Perl, and until it is resolved, memoized functions will see a +slightly different C and will perform a little more slowly +on threaded perls than unthreaded perls. + +Some versions of C won't let you store data under a key of +length 0. That means that if you have a function C which you +memoized and the cache is in a C database, then the value of +C (C called with no arguments) will not be memoized. If this +is a big problem, you can supply a normalizer function that prepends +C<"x"> to every key. + +=head1 SEE ALSO + +At L there is an article about +memoization and about the internals of Memoize that appeared in The +Perl Journal, issue #13. + +Mark-Jason Dominus's book I (2005, ISBN 1558607013, +published +by Morgan Kaufmann) discusses memoization (and many other +topics) in tremendous detail. It is available on-line for free. +For more information, visit L. + +=head1 THANK YOU + +Many thanks to Florian Ragwitz for administration and packaging +assistance, to John Tromp for bug reports, to Jonathan Roy for bug reports +and suggestions, to Michael Schwern for other bug reports and patches, +to Mike Cariaso for helping me to figure out the Right Thing to Do +About Expiration, to Joshua Gerth, Joshua Chamas, Jonathan Roy +(again), Mark D. Anderson, and Andrew Johnson for more suggestions +about expiration, to Brent Powers for the Memoize::ExpireLRU module, +to Ariel Scolnicov for delightful messages about the Fibonacci +function, to Dion Almaer for thought-provoking suggestions about the +default normalizer, to Walt Mankowski and Kurt Starsinic for much help +investigating problems under threaded Perl, to Alex Dudkevich for +reporting the bug in prototyped functions and for checking my patch, +to Tony Bass for many helpful suggestions, to Jonathan Roy (again) for +finding a use for C, to Philippe Verdret for enlightening +discussion of C, to Nat Torkington for advice I +ignored, to Chris Nandor for portability advice, to Randal Schwartz +for suggesting the 'C function, and to Jenda Krynicky for +being a light in the world. + +Special thanks to Jarkko Hietaniemi, the 5.8.0 pumpking, for including +this module in the core and for his patient and helpful guidance +during the integration process. + +=head1 AUTHOR + +Mark Jason Dominus + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2012 by Mark Jason Dominus. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff --git a/git/usr/share/perl5/core_perl/NEXT.pm b/git/usr/share/perl5/core_perl/NEXT.pm new file mode 100644 index 0000000000000000000000000000000000000000..067929053ad31c9063a2710669fa498dcdd8fc94 --- /dev/null +++ b/git/usr/share/perl5/core_perl/NEXT.pm @@ -0,0 +1,579 @@ +package NEXT; + +use Carp; +use strict; +use warnings; +use overload (); + +our $VERSION = '0.69'; + +sub NEXT::ELSEWHERE::ancestors +{ + my @inlist = shift; + my @outlist = (); + while (my $next = shift @inlist) { + push @outlist, $next; + no strict 'refs'; + unshift @inlist, @{"$outlist[-1]::ISA"}; + } + return @outlist; +} + +sub NEXT::ELSEWHERE::ordered_ancestors +{ + my @inlist = shift; + my @outlist = (); + while (my $next = shift @inlist) { + push @outlist, $next; + no strict 'refs'; + push @inlist, @{"$outlist[-1]::ISA"}; + } + return sort { $a->isa($b) ? -1 + : $b->isa($a) ? +1 + : 0 } @outlist; +} + +sub NEXT::ELSEWHERE::buildAUTOLOAD +{ + my $autoload_name = caller() . '::AUTOLOAD'; + + no strict 'refs'; + *{$autoload_name} = sub { + my ($self) = @_; + my $depth = 1; + until (((caller($depth))[3]||q{}) !~ /^\(eval\)$/) { $depth++ } + my $caller = (caller($depth))[3]; + my $wanted = $NEXT::AUTOLOAD || $autoload_name; + undef $NEXT::AUTOLOAD; + my ($caller_class, $caller_method) = do { $caller =~ m{(.*)::(.*)}g }; + my ($wanted_class, $wanted_method) = do { $wanted =~ m{(.*)::(.*)}g }; + croak "Can't call $wanted from $caller" + unless $caller_method eq $wanted_method; + + my $key = ref $self && overload::Overloaded($self) + ? overload::StrVal($self) : $self; + + local ($NEXT::NEXT{$key,$wanted_method}, $NEXT::SEEN) = + ($NEXT::NEXT{$key,$wanted_method}, $NEXT::SEEN); + + unless ($NEXT::NEXT{$key,$wanted_method}) { + my @forebears = + NEXT::ELSEWHERE::ancestors ref $self || $self, + $wanted_class; + while (@forebears) { + last if shift @forebears eq $caller_class + } + no strict 'refs'; + # Use *{"..."} when first accessing the CODE slot, to make sure + # any typeglob stub is upgraded to a full typeglob. + @{$NEXT::NEXT{$key,$wanted_method}} = + map { + my $stash = \%{"${_}::"}; + ($stash->{$caller_method} && (*{"${_}::$caller_method"}{CODE})) + ? *{$stash->{$caller_method}}{CODE} + : () } @forebears + unless $wanted_method eq 'AUTOLOAD'; + @{$NEXT::NEXT{$key,$wanted_method}} = + map { + my $stash = \%{"${_}::"}; + ($stash->{AUTOLOAD} && (*{"${_}::AUTOLOAD"}{CODE})) + ? "${_}::AUTOLOAD" + : () } @forebears + unless @{$NEXT::NEXT{$key,$wanted_method}||[]}; + $NEXT::SEEN->{$key,*{$caller}{CODE}}++; + } + my $call_method = shift @{$NEXT::NEXT{$key,$wanted_method}}; + while (do { $wanted_class =~ /^NEXT\b.*\b(UNSEEN|DISTINCT)\b/ } + && defined $call_method + && $NEXT::SEEN->{$key,$call_method}++) { + $call_method = shift @{$NEXT::NEXT{$key,$wanted_method}}; + } + unless (defined $call_method) { + return unless do { $wanted_class =~ /^NEXT:.*:ACTUAL/ }; + (local $Carp::CarpLevel)++; + croak qq(Can't locate object method "$wanted_method" ), + qq(via package "$caller_class"); + }; + return $self->$call_method(@_[1..$#_]) if ref $call_method eq 'CODE'; + no strict 'refs'; + do { ($wanted_method=${$caller_class."::AUTOLOAD"}) =~ s/.*::// } + if $wanted_method eq 'AUTOLOAD'; + $$call_method = $caller_class."::NEXT::".$wanted_method; + return $call_method->(@_); + }; +} + +no strict 'vars'; +package NEXT; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::UNSEEN; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::DISTINCT; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::ACTUAL; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::ACTUAL::UNSEEN; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::ACTUAL::DISTINCT; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::UNSEEN::ACTUAL; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); +package NEXT::DISTINCT::ACTUAL; @ISA = 'NEXT'; NEXT::ELSEWHERE::buildAUTOLOAD(); + +package + EVERY; + +sub EVERY::ELSEWHERE::buildAUTOLOAD { + my $autoload_name = caller() . '::AUTOLOAD'; + + no strict 'refs'; + *{$autoload_name} = sub { + my ($self) = @_; + my $depth = 1; + until (((caller($depth))[3]||q{}) !~ /^\(eval\)$/) { $depth++ } + my $caller = (caller($depth))[3]; + my $wanted = $EVERY::AUTOLOAD || $autoload_name; + undef $EVERY::AUTOLOAD; + my ($wanted_class, $wanted_method) = do { $wanted =~ m{(.*)::(.*)}g }; + + my $key = ref($self) && overload::Overloaded($self) + ? overload::StrVal($self) : $self; + + local $NEXT::ALREADY_IN_EVERY{$key,$wanted_method} = + $NEXT::ALREADY_IN_EVERY{$key,$wanted_method}; + + return if $NEXT::ALREADY_IN_EVERY{$key,$wanted_method}++; + + my @forebears = NEXT::ELSEWHERE::ordered_ancestors ref $self || $self, + $wanted_class; + @forebears = reverse @forebears if do { $wanted_class =~ /\bLAST\b/ }; + no strict 'refs'; + my %seen; + my @every = map { my $sub = "${_}::$wanted_method"; + !*{$sub}{CODE} || $seen{$sub}++ ? () : $sub + } @forebears + unless $wanted_method eq 'AUTOLOAD'; + + my $want = wantarray; + if (@every) { + if ($want) { + return map {($_, [$self->$_(@_[1..$#_])])} @every; + } + elsif (defined $want) { + return { map {($_, scalar($self->$_(@_[1..$#_])))} + @every + }; + } + else { + $self->$_(@_[1..$#_]) for @every; + return; + } + } + + @every = map { my $sub = "${_}::AUTOLOAD"; + !*{$sub}{CODE} || $seen{$sub}++ ? () : "${_}::AUTOLOAD" + } @forebears; + if ($want) { + return map { $$_ = ref($self)."::EVERY::".$wanted_method; + ($_, [$self->$_(@_[1..$#_])]); + } @every; + } + elsif (defined $want) { + return { map { $$_ = ref($self)."::EVERY::".$wanted_method; + ($_, scalar($self->$_(@_[1..$#_]))) + } @every + }; + } + else { + for (@every) { + $$_ = ref($self)."::EVERY::".$wanted_method; + $self->$_(@_[1..$#_]); + } + return; + } + }; +} + +package EVERY::LAST; @ISA = 'EVERY'; EVERY::ELSEWHERE::buildAUTOLOAD(); +package + EVERY; @ISA = 'NEXT'; EVERY::ELSEWHERE::buildAUTOLOAD(); + +1; + +__END__ + +=head1 NAME + +NEXT - Provide a pseudo-class NEXT (et al) that allows method redispatch + +=head1 SYNOPSIS + + use NEXT; + + package P; + sub P::method { print "$_[0]: P method\n"; $_[0]->NEXT::method() } + sub P::DESTROY { print "$_[0]: P dtor\n"; $_[0]->NEXT::DESTROY() } + + package Q; + use base qw( P ); + sub Q::AUTOLOAD { print "$_[0]: Q AUTOLOAD\n"; $_[0]->NEXT::AUTOLOAD() } + sub Q::DESTROY { print "$_[0]: Q dtor\n"; $_[0]->NEXT::DESTROY() } + + package R; + sub R::method { print "$_[0]: R method\n"; $_[0]->NEXT::method() } + sub R::AUTOLOAD { print "$_[0]: R AUTOLOAD\n"; $_[0]->NEXT::AUTOLOAD() } + sub R::DESTROY { print "$_[0]: R dtor\n"; $_[0]->NEXT::DESTROY() } + + package S; + use base qw( Q R ); + sub S::method { print "$_[0]: S method\n"; $_[0]->NEXT::method() } + sub S::AUTOLOAD { print "$_[0]: S AUTOLOAD\n"; $_[0]->NEXT::AUTOLOAD() } + sub S::DESTROY { print "$_[0]: S dtor\n"; $_[0]->NEXT::DESTROY() } + + package main; + + my $obj = bless {}, "S"; + + $obj->method(); # Calls S::method, P::method, R::method + $obj->missing_method(); # Calls S::AUTOLOAD, Q::AUTOLOAD, R::AUTOLOAD + + # Clean-up calls S::DESTROY, Q::DESTROY, P::DESTROY, R::DESTROY + + + +=head1 DESCRIPTION + +The C module adds a pseudoclass named C to any program +that uses it. If a method C calls C<$self-ENEXT::m()>, the call to +C is redispatched as if the calling method had not originally been found. + +B before using this module, +you should look at L +in the core L module. +C has been a core module since Perl 5.9.5. + +In other words, a call to C<$self-ENEXT::m()> resumes the depth-first, +left-to-right search of C<$self>'s class hierarchy that resulted in the +original call to C. + +Note that this is not the same thing as C<$self-ESUPER::m()>, which +begins a new dispatch that is restricted to searching the ancestors +of the current class. C<$self-ENEXT::m()> can backtrack +past the current class -- to look for a suitable method in other +ancestors of C<$self> -- whereas C<$self-ESUPER::m()> cannot. + +A typical use would be in the destructors of a class hierarchy, +as illustrated in the SYNOPSIS above. Each class in the hierarchy +has a DESTROY method that performs some class-specific action +and then redispatches the call up the hierarchy. As a result, +when an object of class S is destroyed, the destructors of I +its parent classes are called (in depth-first, left-to-right order). + +Another typical use of redispatch would be in C'ed methods. +If such a method determined that it was not able to handle a +particular call, it might choose to redispatch that call, in the +hope that some other C (above it, or to its left) might +do better. + +By default, if a redispatch attempt fails to find another method +elsewhere in the objects class hierarchy, it quietly gives up and does +nothing (but see L<"Enforcing redispatch">). This gracious acquiescence +is also unlike the (generally annoying) behaviour of C, which +throws an exception if it cannot redispatch. + +Note that it is a fatal error for any method (including C) +to attempt to redispatch any method that does not have the +same name. For example: + + sub S::oops { print "oops!\n"; $_[0]->NEXT::other_method() } + + +=head2 Enforcing redispatch + +It is possible to make C redispatch more demandingly (i.e. like +C does), so that the redispatch throws an exception if it cannot +find a "next" method to call. + +To do this, simple invoke the redispatch as: + + $self->NEXT::ACTUAL::method(); + +rather than: + + $self->NEXT::method(); + +The C tells C that there must actually be a next method to call, +or it should throw an exception. + +C is most commonly used in C methods, as a means to +decline an C request, but preserve the normal exception-on-failure +semantics: + + sub AUTOLOAD { + if ($AUTOLOAD =~ /foo|bar/) { + # handle here + } + else { # try elsewhere + shift()->NEXT::ACTUAL::AUTOLOAD(@_); + } + } + +By using C, if there is no other C to handle the +method call, an exception will be thrown (as usually happens in the absence of +a suitable C). + + +=head2 Avoiding repetitions + +If C redispatching is used in the methods of a "diamond" class hierarchy: + + # A B + # / \ / + # C D + # \ / + # E + + use NEXT; + + package A; + sub foo { print "called A::foo\n"; shift->NEXT::foo() } + + package B; + sub foo { print "called B::foo\n"; shift->NEXT::foo() } + + package C; @ISA = qw( A ); + sub foo { print "called C::foo\n"; shift->NEXT::foo() } + + package D; @ISA = qw(A B); + sub foo { print "called D::foo\n"; shift->NEXT::foo() } + + package E; @ISA = qw(C D); + sub foo { print "called E::foo\n"; shift->NEXT::foo() } + + E->foo(); + +then derived classes may (re-)inherit base-class methods through two or +more distinct paths (e.g. in the way C inherits C twice -- +through C and C). In such cases, a sequence of C redispatches +will invoke the multiply inherited method as many times as it is +inherited. For example, the above code prints: + + called E::foo + called C::foo + called A::foo + called D::foo + called A::foo + called B::foo + +(i.e. C is called twice). + +In some cases this I be the desired effect within a diamond hierarchy, +but in others (e.g. for destructors) it may be more appropriate to +call each method only once during a sequence of redispatches. + +To cover such cases, you can redispatch methods via: + + $self->NEXT::DISTINCT::method(); + +rather than: + + $self->NEXT::method(); + +This causes the redispatcher to only visit each distinct C method +once. That is, to skip any classes in the hierarchy that it has +already visited during redispatch. So, for example, if the +previous example were rewritten: + + package A; + sub foo { print "called A::foo\n"; shift->NEXT::DISTINCT::foo() } + + package B; + sub foo { print "called B::foo\n"; shift->NEXT::DISTINCT::foo() } + + package C; @ISA = qw( A ); + sub foo { print "called C::foo\n"; shift->NEXT::DISTINCT::foo() } + + package D; @ISA = qw(A B); + sub foo { print "called D::foo\n"; shift->NEXT::DISTINCT::foo() } + + package E; @ISA = qw(C D); + sub foo { print "called E::foo\n"; shift->NEXT::DISTINCT::foo() } + + E->foo(); + +then it would print: + + called E::foo + called C::foo + called A::foo + called D::foo + called B::foo + +and omit the second call to C (since it would not be distinct +from the first call to C). + +Note that you can also use: + + $self->NEXT::DISTINCT::ACTUAL::method(); + +or: + + $self->NEXT::ACTUAL::DISTINCT::method(); + +to get both unique invocation I exception-on-failure. + +Note that, for historical compatibility, you can also use +C instead of C. + + +=head2 Invoking all versions of a method with a single call + +Yet another pseudo-class that C provides is C. +Its behaviour is considerably simpler than that of the C family. +A call to: + + $obj->EVERY::foo(); + +calls I method named C that the object in C<$obj> has inherited. +That is: + + use NEXT; + + package A; @ISA = qw(B D X); + sub foo { print "A::foo " } + + package B; @ISA = qw(D X); + sub foo { print "B::foo " } + + package X; @ISA = qw(D); + sub foo { print "X::foo " } + + package D; + sub foo { print "D::foo " } + + package main; + + my $obj = bless {}, 'A'; + $obj->EVERY::foo(); # prints" A::foo B::foo X::foo D::foo + +Prefixing a method call with C causes every method in the +object's hierarchy with that name to be invoked. As the above example +illustrates, they are not called in Perl's usual "left-most-depth-first" +order. Instead, they are called "breadth-first-dependency-wise". + +That means that the inheritance tree of the object is traversed breadth-first +and the resulting order of classes is used as the sequence in which methods +are called. However, that sequence is modified by imposing a rule that the +appropriate method of a derived class must be called before the same method of +any ancestral class. That's why, in the above example, C is called +before C, even though C comes before C in C<@B::ISA>. + +In general, there's no need to worry about the order of calls. They will be +left-to-right, breadth-first, most-derived-first. This works perfectly for +most inherited methods (including destructors), but is inappropriate for +some kinds of methods (such as constructors, cloners, debuggers, and +initializers) where it's more appropriate that the least-derived methods be +called first (as more-derived methods may rely on the behaviour of their +"ancestors"). In that case, instead of using the C pseudo-class: + + $obj->EVERY::foo(); # prints" A::foo B::foo X::foo D::foo + +you can use the C pseudo-class: + + $obj->EVERY::LAST::foo(); # prints" D::foo X::foo B::foo A::foo + +which reverses the order of method call. + +Whichever version is used, the actual methods are called in the same +context (list, scalar, or void) as the original call via C, and return: + +=over + +=item * + +A hash of array references in list context. Each entry of the hash has the +fully qualified method name as its key and a reference to an array containing +the method's list-context return values as its value. + +=item * + +A reference to a hash of scalar values in scalar context. Each entry of the hash has the +fully qualified method name as its key and the method's scalar-context return values as its value. + +=item * + +Nothing in void context (obviously). + +=back + +=head2 Using C methods + +The typical way to use an C call is to wrap it in another base +method, that all classes inherit. For example, to ensure that every +destructor an object inherits is actually called (as opposed to just the +left-most-depth-first-est one): + + package Base; + sub DESTROY { $_[0]->EVERY::Destroy } + + package Derived1; + use base 'Base'; + sub Destroy {...} + + package Derived2; + use base 'Base', 'Derived1'; + sub Destroy {...} + +et cetera. Every derived class than needs its own clean-up +behaviour simply adds its own C method (I a C method), +which the call to C in the inherited destructor +then correctly picks up. + +Likewise, to create a class hierarchy in which every initializer inherited by +a new object is invoked: + + package Base; + sub new { + my ($class, %args) = @_; + my $obj = bless {}, $class; + $obj->EVERY::LAST::Init(\%args); + } + + package Derived1; + use base 'Base'; + sub Init { + my ($argsref) = @_; + ... + } + + package Derived2; + use base 'Base', 'Derived1'; + sub Init { + my ($argsref) = @_; + ... + } + +et cetera. Every derived class than needs some additional initialization +behaviour simply adds its own C method (I a C method), +which the call to C in the inherited constructor +then correctly picks up. + +=head1 SEE ALSO + +L +(in particular L), +which has been a core module since Perl 5.9.5. + +=head1 AUTHOR + +Damian Conway (damian@conway.org) + +=head1 BUGS AND IRRITATIONS + +Because it's a module, not an integral part of the interpreter, C +has to guess where the surrounding call was found in the method +look-up sequence. In the presence of diamond inheritance patterns +it occasionally guesses wrong. + +It's also too slow (despite caching). + +Comment, suggestions, and patches welcome. + +=head1 COPYRIGHT + + Copyright (c) 2000-2001, Damian Conway. All Rights Reserved. + This module is free software. It may be used, redistributed + and/or modified under the same terms as Perl itself. diff --git a/git/usr/share/perl5/core_perl/PerlIO.pm b/git/usr/share/perl5/core_perl/PerlIO.pm new file mode 100644 index 0000000000000000000000000000000000000000..01a02cf6486a976c2e10e405ab1f2b9c1b890687 --- /dev/null +++ b/git/usr/share/perl5/core_perl/PerlIO.pm @@ -0,0 +1,391 @@ +package PerlIO; + +our $VERSION = '1.12'; + +# Map layer name to package that defines it +our %alias; + +sub import +{ + my $class = shift; + while (@_) + { + my $layer = shift; + if (exists $alias{$layer}) + { + $layer = $alias{$layer} + } + else + { + $layer = "${class}::$layer"; + } + eval { require $layer =~ s{::}{/}gr . '.pm' }; + warn $@ if $@; + } +} + +sub F_UTF8 () { 0x8000 } + +1; +__END__ + +=head1 NAME + +PerlIO - On demand loader for PerlIO layers and root of PerlIO::* name space + +=head1 SYNOPSIS + + # support platform-native and CRLF text files + open(my $fh, "<:crlf", "my.txt") or die "open failed: $!"; + + # append UTF-8 encoded text + open(my $fh, ">>:encoding(UTF-8)", "some.log") + or die "open failed: $!"; + + # portably open a binary file for reading + open(my $fh, "<", "his.jpg") or die "open failed: $!"; + binmode($fh) or die "binmode failed: $!"; + + Shell: + PERLIO=:perlio perl .... + +=head1 DESCRIPTION + +When an undefined layer 'foo' is encountered in an C or +C layer specification then C code performs the equivalent of: + + use PerlIO 'foo'; + +The Perl code in PerlIO.pm then attempts to locate a layer by doing + + require PerlIO::foo; + +Otherwise the C package is a place holder for additional +PerlIO related functions. + +=head2 Layers + +Generally speaking, PerlIO layers (previously sometimes referred to as +"disciplines") are an ordered stack applied to a filehandle (specified as +a space- or colon-separated list, conventionally written with a leading +colon). Each layer performs some operation on any input or output, except +when bypassed such as with C or C. Read operations go +through the stack in the order they are set (left to right), and write +operations in the reverse order. + +There are also layers which actually just set flags on lower layers, or +layers that modify the current stack but don't persist on the stack +themselves; these are referred to as pseudo-layers. + +When opening a handle, it will be opened with any layers specified +explicitly in the open() call (or the platform defaults, if specified as +a colon with no following layers). + +If layers are not explicitly specified, the handle will be opened with the +layers specified by the L<${^OPEN}|perlvar/"${^OPEN}"> variable (usually +set by using the L pragma for a lexical scope, or the C<-C> +command-line switch or C environment variable for the main +program scope). + +If layers are not specified in the open() call or C<${^OPEN}> variable, +the handle will be opened with the default layer stack configured for that +architecture; see L. + +Some layers will automatically insert required lower level layers if not +present; for example C<:perlio> will insert C<:unix> below itself for low +level IO, and C<:encoding> will insert the platform defaults for buffered +IO. + +The C function can be called on an opened handle to push +additional layers onto the stack, which may also modify the existing +layers. C called with no layers will remove or unset any +existing layers which transform the byte stream, making the handle +suitable for binary data. + +The following layers are currently defined: + +=over 4 + +=item :unix + +Lowest level layer which provides basic PerlIO operations in terms of +UNIX/POSIX numeric file descriptor calls +(open(), read(), write(), lseek(), close()). +It is used even on non-Unix architectures, and most other layers operate on +top of it. + +=item :stdio + +Layer which calls C, C and C/C etc. Note +that as this is "real" stdio it will ignore any layers beneath it and +go straight to the operating system via the C library as usual. +This layer implements both low level IO and buffering, but is rarely used +on modern architectures. + +=item :perlio + +A from scratch implementation of buffering for PerlIO. Provides fast +access to the buffer for C which implements Perl's readline/EE +and in general attempts to minimize data copying. + +C<:perlio> will insert a C<:unix> layer below itself to do low level IO. + +=item :crlf + +A layer that implements DOS/Windows like CRLF line endings. On read +converts pairs of CR,LF to a single "\n" newline character. On write +converts each "\n" to a CR,LF pair. Note that this layer will silently +refuse to be pushed on top of itself. + +It currently does I mimic MS-DOS as far as treating of Control-Z +as being an end-of-file marker. + +On DOS/Windows like architectures where this layer is part of the defaults, +it also acts like the C<:perlio> layer, and removing the CRLF translation +(such as with C<:raw>) will only unset the CRLF translation flag. Since +Perl 5.14, you can also apply another C<:crlf> layer later, such as when +the CRLF translation must occur after an encoding layer. On other +architectures, it is a mundane CRLF translation layer and can be added and +removed normally. + + # translate CRLF after encoding on Perl 5.14 or newer + binmode $fh, ":raw:encoding(UTF-16LE):crlf" + or die "binmode failed: $!"; + +=item :utf8 + +Pseudo-layer that declares that the stream accepts Perl's I +upgraded encoding of characters, which is approximately UTF-8 on ASCII +machines, but UTF-EBCDIC on EBCDIC machines. This allows any character +Perl can represent to be read from or written to the stream. + +This layer (which actually sets a flag on the preceding layer, and is +implicitly set by any C<:encoding> layer) does not translate or validate +byte sequences. It instead indicates that the byte stream will have been +arranged by other layers to be provided in Perl's internal upgraded +encoding, which Perl code (and correctly written XS code) will interpret +as decoded Unicode characters. + +B: Do not use this layer to translate from UTF-8 bytes, as +invalid UTF-8 or binary data will result in malformed Perl strings. It is +unlikely to produce invalid UTF-8 when used for output, though it will +instead produce UTF-EBCDIC on EBCDIC systems. The C<:encoding(UTF-8)> +layer (hyphen is significant) is preferred as it will ensure translation +between valid UTF-8 bytes and valid Unicode characters. + +=item :bytes + +This is the inverse of the C<:utf8> pseudo-layer. It turns off the flag +on the layer below so that data read from it is considered to +be Perl's internal downgraded encoding, thus interpreted as the native +single-byte encoding of Latin-1 or EBCDIC. Likewise on output Perl will +warn if a "wide" character (a codepoint not in the range 0..255) is +written to a such a stream. + +This is very dangerous to push on a handle using an C<:encoding> layer, +as such a layer assumes to be working with Perl's internal upgraded +encoding, so you will likely get a mangled result. Instead use C<:raw> or +C<:pop> to remove encoding layers. + +=item :raw + +The C<:raw> pseudo-layer is I as being identical to calling +C - the stream is made suitable for passing binary data, +i.e. each byte is passed as-is. The stream will still be buffered +(but this was not always true before Perl 5.14). + +In Perl 5.6 and some books the C<:raw> layer is documented as the inverse +of the C<:crlf> layer. That is no longer the case - other layers which +would alter the binary nature of the stream are also disabled. If you +want UNIX line endings on a platform that normally does CRLF translation, +but still want UTF-8 or encoding defaults, the appropriate thing to do is +to add C<:perlio> to the PERLIO environment variable, or open the handle +explicitly with that layer, to replace the platform default of C<:crlf>. + +The implementation of C<:raw> is as a pseudo-layer which when "pushed" +pops itself and then any layers which would modify the binary data stream. +(Undoing C<:utf8> and C<:crlf> may be implemented by clearing flags +rather than popping layers but that is an implementation detail.) + +As a consequence of the fact that C<:raw> normally pops layers, +it usually only makes sense to have it as the only or first element in +a layer specification. When used as the first element it provides +a known base on which to build e.g. + + open(my $fh,">:raw:encoding(UTF-8)",...) + or die "open failed: $!"; + +will construct a "binary" stream regardless of the platform defaults, +but then enable UTF-8 translation. + +=item :pop + +A pseudo-layer that removes the top-most layer. Gives Perl code a +way to manipulate the layer stack. Note that C<:pop> only works on +real layers and will not undo the effects of pseudo-layers or flags +like C<:utf8>. An example of a possible use might be: + + open(my $fh,...) or die "open failed: $!"; + ... + binmode($fh,":encoding(...)") or die "binmode failed: $!"; + # next chunk is encoded + ... + binmode($fh,":pop") or die "binmode failed: $!"; + # back to un-encoded + +A more elegant (and safer) interface is needed. + +=back + +=head2 Custom Layers + +It is possible to write custom layers in addition to the above builtin +ones, both in C/XS and Perl, as a module named C<< PerlIO:: >>. +Some custom layers come with the Perl distribution. + +=over 4 + +=item :encoding + +Use C<:encoding(ENCODING)> to transparently do character set and encoding +transformations, for example from Shift-JIS to Unicode. Note that an +C<:encoding> also enables C<:utf8>. See L for more +information. + +=item :mmap + +A layer which implements "reading" of files by using C to +make a (whole) file appear in the process's address space, and then +using that as PerlIO's "buffer". This I be faster in certain +circumstances for large files, and may result in less physical memory +use when multiple processes are reading the same file. + +Files which are not C-able revert to behaving like the C<:perlio> +layer. Writes also behave like the C<:perlio> layer, as C for write +needs extra house-keeping (to extend the file) which negates any advantage. + +The C<:mmap> layer will not exist if the platform does not support C. +See L for more information. + +=item :via + +C<:via(MODULE)> allows a transformation to be applied by an arbitrary Perl +module, for example compression / decompression, encryption / decryption. +See L for more information. + +=item :scalar + +A layer implementing "in memory" files using scalar variables, +automatically used in place of the platform defaults for IO when opening +such a handle. As such, the scalar is expected to act like a file, only +containing or storing bytes. See L for more information. + +=back + +=head2 Alternatives to raw + +To get a binary stream an alternate method is to use: + + open(my $fh,"<","whatever") or die "open failed: $!"; + binmode($fh) or die "binmode failed: $!"; + +This has the advantage of being backward compatible with older versions +of Perl that did not use PerlIO or where C<:raw> was buggy (as it was +before Perl 5.14). + +To get an unbuffered stream specify an unbuffered layer (e.g. C<:unix>) +in the open call: + + open(my $fh,"<:unix",$path) or die "open failed: $!"; + +=head2 Defaults and how to override them + +If the platform is MS-DOS like and normally does CRLF to "\n" +translation for text files then the default layers are: + + :unix:crlf + +Otherwise if C found out how to do "fast" IO using the system's +stdio (not common on modern architectures), then the default layers are: + + :stdio + +Otherwise the default layers are + + :unix:perlio + +Note that the "default stack" depends on the operating system and on the +Perl version, and both the compile-time and runtime configurations of +Perl. The default can be overridden by setting the environment variable +PERLIO to a space or colon separated list of layers, however this cannot +be used to set layers that require loading modules like C<:encoding>. + +This can be used to see the effect of/bugs in the various layers e.g. + + cd .../perl/t + PERLIO=:stdio ./perl harness + PERLIO=:perlio ./perl harness + +For the various values of PERLIO see L. + +The following table summarizes the default layers on UNIX-like and +DOS-like platforms and depending on the setting of C<$ENV{PERLIO}>: + + PERLIO UNIX-like DOS-like + ------ --------- -------- + unset / "" :unix:perlio / :stdio [1] :unix:crlf + :stdio :stdio :stdio + :perlio :unix:perlio :unix:perlio + + # [1] ":stdio" if Configure found out how to do "fast stdio" (depends + # on the stdio implementation) and in Perl 5.8, else ":unix:perlio" + +=head2 Querying the layers of filehandles + +The following returns the B of the PerlIO layers on a filehandle. + + my @layers = PerlIO::get_layers($fh); # Or FH, *FH, "FH". + +The layers are returned in the order an open() or binmode() call would +use them, and without colons. + +By default the layers from the input side of the filehandle are +returned; to get the output side, use the optional C argument: + + my @layers = PerlIO::get_layers($fh, output => 1); + +(Usually the layers are identical on either side of a filehandle but +for example with sockets there may be differences.) + +There is no set_layers(), nor does get_layers() return a tied array +mirroring the stack, or anything fancy like that. This is not +accidental or unintentional. The PerlIO layer stack is a bit more +complicated than just a stack (see for example the behaviour of C<:raw>). +You are supposed to use open() and binmode() to manipulate the stack. + +B + +The arguments to layers are by default returned in parentheses after +the name of the layer, and certain layers (like C<:utf8>) are not real +layers but instead flags on real layers; to get all of these returned +separately, use the optional C
argument: + + my @layer_and_args_and_flags = PerlIO::get_layers($fh, details => 1); + +The result will be up to be three times the number of layers: +the first element will be a name, the second element the arguments +(unspecified arguments will be C), the third element the flags, +the fourth element a name again, and so forth. + +B + +=head1 AUTHOR + +Nick Ing-Simmons Enick@ing-simmons.netE + +=head1 SEE ALSO + +L, L, L, L, +L + +=cut diff --git a/git/usr/share/perl5/core_perl/Safe.pm b/git/usr/share/perl5/core_perl/Safe.pm new file mode 100644 index 0000000000000000000000000000000000000000..791fa5750bac37efebbfc554569754a640b84a5c --- /dev/null +++ b/git/usr/share/perl5/core_perl/Safe.pm @@ -0,0 +1,826 @@ +package Safe; + +use 5.003_11; +use Scalar::Util qw(reftype refaddr); + +$Safe::VERSION = "2.47"; + +# *** Don't declare any lexicals above this point *** +# +# This function should return a closure which contains an eval that can't +# see any lexicals in scope (apart from __ExPr__ which is unavoidable) + +sub lexless_anon_sub { + # $_[0] is package; + # $_[1] is strict flag; + my $__ExPr__ = $_[2]; # must be a lexical to create the closure that + # can be used to pass the value into the safe + # world + + # Create anon sub ref in root of compartment. + # Uses a closure (on $__ExPr__) to pass in the code to be executed. + # (eval on one line to keep line numbers as expected by caller) + eval sprintf + 'package %s; %s sub { @_=(); local *SIG; eval q[my $__ExPr__;] . $__ExPr__; }', + $_[0], $_[1] ? 'use strict;' : ''; +} + +use strict; +use Carp; +BEGIN { eval q{ + use Carp::Heavy; +} } + +use B (); +BEGIN { + no strict 'refs'; + if (defined &B::sub_generation) { + *sub_generation = \&B::sub_generation; + } + else { + # fake sub generation changing for perls < 5.8.9 + my $sg; *sub_generation = sub { ++$sg }; + } +} + +use Opcode 1.01, qw( + opset opset_to_ops opmask_add + empty_opset full_opset invert_opset verify_opset + opdesc opcodes opmask define_optag opset_to_hex +); + +*ops_to_opset = \&opset; # Temporary alias for old Penguins + +# Regular expressions and other unicode-aware code may need to call +# utf8->SWASHNEW (via perl's utf8.c). That will fail unless we share the +# SWASHNEW method. +# Sadly we can't just add utf8::SWASHNEW to $default_share because perl's +# utf8.c code does a fetchmethod on SWASHNEW to check if utf8.pm is loaded, +# and sharing makes it look like the method exists. +# The simplest and most robust fix is to ensure the utf8 module is loaded when +# Safe is loaded. Then we can add utf8::SWASHNEW to $default_share. +require utf8; +# we must ensure that utf8_heavy.pl, where SWASHNEW is defined, is loaded +# but without depending on too much knowledge of that implementation detail. +# This code (//i on a unicode string) should ensure utf8 is fully loaded +# and also loads the ToFold SWASH, unless things change so that these +# particular code points don't cause it to load. +# (Swashes are cached internally by perl in PL_utf8_* variables +# independent of being inside/outside of Safe. So once loaded they can be) +do { my $a = pack('U',0x100); $a =~ m/\x{1234}/; $a =~ tr/\x{1234}//; }; +# now we can safely include utf8::SWASHNEW in $default_share defined below. + +my $default_root = 0; +# share *_ and functions defined in universal.c +# Don't share stuff like *UNIVERSAL:: otherwise code from the +# compartment can 0wn functions in UNIVERSAL +my $default_share = [qw[ + *_ + &PerlIO::get_layers + &UNIVERSAL::import + &UNIVERSAL::isa + &UNIVERSAL::can + &UNIVERSAL::unimport + &UNIVERSAL::VERSION + &utf8::is_utf8 + &utf8::valid + &utf8::encode + &utf8::decode + &utf8::upgrade + &utf8::downgrade + &utf8::native_to_unicode + &utf8::unicode_to_native + &utf8::SWASHNEW + $version::VERSION + $version::CLASS + $version::STRICT + $version::LAX + @version::ISA +], ($] < 5.010 && qw[ + &utf8::SWASHGET +]), ($] >= 5.008001 && qw[ + &Regexp::DESTROY +]), ($] >= 5.010 && qw[ + &re::is_regexp + &re::regname + &re::regnames + &re::regnames_count + &UNIVERSAL::DOES + &version::() + &version::new + &version::("" + &version::stringify + &version::(0+ + &version::numify + &version::normal + &version::(cmp + &version::(<=> + &version::vcmp + &version::(bool + &version::boolean + &version::(nomethod + &version::noop + &version::is_alpha + &version::qv + &version::vxs::declare + &version::vxs::qv + &version::vxs::_VERSION + &version::vxs::stringify + &version::vxs::new + &version::vxs::parse + &version::vxs::VCMP +]), ($] >= 5.011 && qw[ + &re::regexp_pattern +]), ($] >= 5.010 && $] < 5.014 && qw[ + &Tie::Hash::NamedCapture::FETCH + &Tie::Hash::NamedCapture::STORE + &Tie::Hash::NamedCapture::DELETE + &Tie::Hash::NamedCapture::CLEAR + &Tie::Hash::NamedCapture::EXISTS + &Tie::Hash::NamedCapture::FIRSTKEY + &Tie::Hash::NamedCapture::NEXTKEY + &Tie::Hash::NamedCapture::SCALAR + &Tie::Hash::NamedCapture::flags +])]; +if (defined $Devel::Cover::VERSION) { + push @$default_share, '&Devel::Cover::use_file'; +} + +sub new { + my($class, $root, $mask) = @_; + my $obj = {}; + bless $obj, $class; + + if (defined($root)) { + croak "Can't use \"$root\" as root name" + if $root =~ /^main\b/ or $root !~ /^\w[:\w]*$/; + $obj->{Root} = $root; + $obj->{Erase} = 0; + } + else { + $obj->{Root} = "Safe::Root".$default_root++; + $obj->{Erase} = 1; + } + + # use permit/deny methods instead till interface issues resolved + # XXX perhaps new Safe 'Root', mask => $mask, foo => bar, ...; + croak "Mask parameter to new no longer supported" if defined $mask; + $obj->permit_only(':default'); + + # We must share $_ and @_ with the compartment or else ops such + # as split, length and so on won't default to $_ properly, nor + # will passing argument to subroutines work (via @_). In fact, + # for reasons I don't completely understand, we need to share + # the whole glob *_ rather than $_ and @_ separately, otherwise + # @_ in non default packages within the compartment don't work. + $obj->share_from('main', $default_share); + + Opcode::_safe_pkg_prep($obj->{Root}) if($Opcode::VERSION > 1.04); + + return $obj; +} + +sub DESTROY { + my $obj = shift; + $obj->erase('DESTROY') if $obj->{Erase}; +} + +sub erase { + my ($obj, $action) = @_; + my $pkg = $obj->root(); + my ($stem, $leaf); + + no strict 'refs'; + $pkg = "main::$pkg\::"; # expand to full symbol table name + ($stem, $leaf) = $pkg =~ m/(.*::)(\w+::)$/; + + # The 'my $foo' is needed! Without it you get an + # 'Attempt to free unreferenced scalar' warning! + my $stem_symtab = *{$stem}{HASH}; + + #warn "erase($pkg) stem=$stem, leaf=$leaf"; + #warn " stem_symtab hash ".scalar(%$stem_symtab)."\n"; + # ", join(', ', %$stem_symtab),"\n"; + +# delete $stem_symtab->{$leaf}; + + my $leaf_glob = $stem_symtab->{$leaf}; + my $leaf_symtab = *{$leaf_glob}{HASH}; +# warn " leaf_symtab ", join(', ', %$leaf_symtab),"\n"; + %$leaf_symtab = (); + #delete $leaf_symtab->{'__ANON__'}; + #delete $leaf_symtab->{'foo'}; + #delete $leaf_symtab->{'main::'}; +# my $foo = undef ${"$stem\::"}{"$leaf\::"}; + + if ($action and $action eq 'DESTROY') { + delete $stem_symtab->{$leaf}; + } else { + $obj->share_from('main', $default_share); + } + 1; +} + + +sub reinit { + my $obj= shift; + $obj->erase; + $obj->share_redo; +} + +sub root { + my $obj = shift; + croak("Safe root method now read-only") if @_; + return $obj->{Root}; +} + + +sub mask { + my $obj = shift; + return $obj->{Mask} unless @_; + $obj->deny_only(@_); +} + +# v1 compatibility methods +sub trap { shift->deny(@_) } +sub untrap { shift->permit(@_) } + +sub deny { + my $obj = shift; + $obj->{Mask} |= opset(@_); +} +sub deny_only { + my $obj = shift; + $obj->{Mask} = opset(@_); +} + +sub permit { + my $obj = shift; + # XXX needs testing + $obj->{Mask} &= invert_opset opset(@_); +} +sub permit_only { + my $obj = shift; + $obj->{Mask} = invert_opset opset(@_); +} + + +sub dump_mask { + my $obj = shift; + print opset_to_hex($obj->{Mask}),"\n"; +} + + +sub share { + my($obj, @vars) = @_; + $obj->share_from(scalar(caller), \@vars); +} + + +sub share_from { + my $obj = shift; + my $pkg = shift; + my $vars = shift; + my $no_record = shift || 0; + my $root = $obj->root(); + croak("vars not an array ref") unless ref $vars eq 'ARRAY'; + no strict 'refs'; + # Check that 'from' package actually exists + croak("Package \"$pkg\" does not exist") + unless keys %{"$pkg\::"}; + my $arg; + foreach $arg (@$vars) { + # catch some $safe->share($var) errors: + my ($var, $type); + $type = $1 if ($var = $arg) =~ s/^(\W)//; + # warn "share_from $pkg $type $var"; + for (1..2) { # assign twice to avoid any 'used once' warnings + *{$root."::$var"} = (!$type) ? \&{$pkg."::$var"} + : ($type eq '&') ? \&{$pkg."::$var"} + : ($type eq '$') ? \${$pkg."::$var"} + : ($type eq '@') ? \@{$pkg."::$var"} + : ($type eq '%') ? \%{$pkg."::$var"} + : ($type eq '*') ? *{$pkg."::$var"} + : croak(qq(Can't share "$type$var" of unknown type)); + } + } + $obj->share_record($pkg, $vars) unless $no_record or !$vars; +} + + +sub share_record { + my $obj = shift; + my $pkg = shift; + my $vars = shift; + my $shares = \%{$obj->{Shares} ||= {}}; + # Record shares using keys of $obj->{Shares}. See reinit. + @{$shares}{@$vars} = ($pkg) x @$vars if @$vars; +} + + +sub share_redo { + my $obj = shift; + my $shares = \%{$obj->{Shares} ||= {}}; + my($var, $pkg); + while(($var, $pkg) = each %$shares) { + # warn "share_redo $pkg\:: $var"; + $obj->share_from($pkg, [ $var ], 1); + } +} + + +sub share_forget { + delete shift->{Shares}; +} + + +sub varglob { + my ($obj, $var) = @_; + no strict 'refs'; + return *{$obj->root()."::$var"}; +} + +sub _clean_stash { + my ($root, $saved_refs) = @_; + $saved_refs ||= []; + no strict 'refs'; + foreach my $hook (qw(DESTROY AUTOLOAD), grep /^\(/, keys %$root) { + push @$saved_refs, \*{$root.$hook}; + delete ${$root}{$hook}; + } + + for (grep /::$/, keys %$root) { + next if \%{$root.$_} eq \%$root; + _clean_stash($root.$_, $saved_refs); + } +} + +sub reval { + my ($obj, $expr, $strict) = @_; + die "Bad Safe object" unless $obj->isa('Safe'); + + my $root = $obj->{Root}; + + my $evalsub = lexless_anon_sub($root, $strict, $expr); + # propagate context + my $sg = sub_generation(); + my @subret; + if (defined wantarray) { + @subret = (wantarray) + ? Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub) + : scalar Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub); + } + else { + Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub); + } + _clean_stash($root.'::') if $sg != sub_generation(); + $obj->wrap_code_refs_within(@subret); + return (wantarray) ? @subret : $subret[0]; +} + +my %OID; + +sub wrap_code_refs_within { + my $obj = shift; + + %OID = (); + $obj->_find_code_refs('wrap_code_ref', @_); +} + + +sub _find_code_refs { + my $obj = shift; + my $visitor = shift; + + for my $item (@_) { + my $reftype = $item && reftype $item + or next; + + # skip references already seen + next if ++$OID{refaddr $item} > 1; + + if ($reftype eq 'ARRAY') { + $obj->_find_code_refs($visitor, @$item); + } + elsif ($reftype eq 'HASH') { + $obj->_find_code_refs($visitor, values %$item); + } + # XXX GLOBs? + elsif ($reftype eq 'CODE') { + $item = $obj->$visitor($item); + } + } +} + + +sub wrap_code_ref { + my ($obj, $sub) = @_; + die "Bad safe object" unless $obj->isa('Safe'); + + # wrap code ref $sub with _safe_call_sv so that, when called, the + # execution will happen with the compartment fully 'in effect'. + + croak "Not a CODE reference" + if reftype $sub ne 'CODE'; + + my $ret = sub { + my @args = @_; # lexical to close over + my $sub_with_args = sub { $sub->(@args) }; + + my @subret; + my $error; + do { + local $@; # needed due to perl_call_sv(sv, G_EVAL|G_KEEPERR) + my $sg = sub_generation(); + @subret = (wantarray) + ? Opcode::_safe_call_sv($obj->{Root}, $obj->{Mask}, $sub_with_args) + : scalar Opcode::_safe_call_sv($obj->{Root}, $obj->{Mask}, $sub_with_args); + $error = $@; + _clean_stash($obj->{Root}.'::') if $sg != sub_generation(); + }; + if ($error) { # rethrow exception + $error =~ s/\t\(in cleanup\) //; # prefix added by G_KEEPERR + die $error; + } + return (wantarray) ? @subret : $subret[0]; + }; + + return $ret; +} + + +sub rdo { + my ($obj, $file) = @_; + die "Bad Safe object" unless $obj->isa('Safe'); + + my $root = $obj->{Root}; + + my $sg = sub_generation(); + my $evalsub = eval + sprintf('package %s; sub { @_ = (); do $file }', $root); + my @subret = (wantarray) + ? Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub) + : scalar Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub); + _clean_stash($root.'::') if $sg != sub_generation(); + $obj->wrap_code_refs_within(@subret); + return (wantarray) ? @subret : $subret[0]; +} + + +1; + +__END__ + +=head1 NAME + +Safe - Compile and execute code in restricted compartments + +=head1 SYNOPSIS + + use Safe; + + $compartment = new Safe; + + $compartment->permit(qw(time sort :browse)); + + $result = $compartment->reval($unsafe_code); + +=head1 DESCRIPTION + +The Safe extension module allows the creation of compartments +in which perl code can be evaluated. Each compartment has + +=over 8 + +=item a new namespace + +The "root" of the namespace (i.e. "main::") is changed to a +different package and code evaluated in the compartment cannot +refer to variables outside this namespace, even with run-time +glob lookups and other tricks. + +Code which is compiled outside the compartment can choose to place +variables into (or I variables with) the compartment's namespace +and only that data will be visible to code evaluated in the +compartment. + +By default, the only variables shared with compartments are the +"underscore" variables $_ and @_ (and, technically, the less frequently +used %_, the _ filehandle and so on). This is because otherwise perl +operators which default to $_ will not work and neither will the +assignment of arguments to @_ on subroutine entry. + +=item an operator mask + +Each compartment has an associated "operator mask". Recall that +perl code is compiled into an internal format before execution. +Evaluating perl code (e.g. via "eval" or "do 'file'") causes +the code to be compiled into an internal format and then, +provided there was no error in the compilation, executed. +Code evaluated in a compartment compiles subject to the +compartment's operator mask. Attempting to evaluate code in a +compartment which contains a masked operator will cause the +compilation to fail with an error. The code will not be executed. + +The default operator mask for a newly created compartment is +the ':default' optag. + +It is important that you read the L module documentation +for more information, especially for detailed definitions of opnames, +optags and opsets. + +Since it is only at the compilation stage that the operator mask +applies, controlled access to potentially unsafe operations can +be achieved by having a handle to a wrapper subroutine (written +outside the compartment) placed into the compartment. For example, + + $cpt = new Safe; + sub wrapper { + # vet arguments and perform potentially unsafe operations + } + $cpt->share('&wrapper'); + +=back + + +=head1 WARNING + +The Safe module does not implement an effective sandbox for +evaluating untrusted code with the perl interpreter. + +Bugs in the perl interpreter that could be abused to bypass +Safe restrictions are not treated as vulnerabilities. See +L for additional information. + +The authors make B, implied or otherwise, about the +suitability of this software for safety or security purposes. + +The authors shall not in any case be liable for special, incidental, +consequential, indirect or other similar damages arising from the use +of this software. + +Your mileage will vary. If in any doubt B. + + +=head1 METHODS + +To create a new compartment, use + + $cpt = new Safe; + +Optional argument is (NAMESPACE), where NAMESPACE is the root namespace +to use for the compartment (defaults to "Safe::Root0", incremented for +each new compartment). + +Note that version 1.00 of the Safe module supported a second optional +parameter, MASK. That functionality has been withdrawn pending deeper +consideration. Use the permit and deny methods described below. + +The following methods can then be used on the compartment +object returned by the above constructor. The object argument +is implicit in each case. + + +=head2 permit (OP, ...) + +Permit the listed operators to be used when compiling code in the +compartment (in I to any operators already permitted). + +You can list opcodes by names, or use a tag name; see +L. + +=head2 permit_only (OP, ...) + +Permit I the listed operators to be used when compiling code in +the compartment (I other operators are permitted). + +=head2 deny (OP, ...) + +Deny the listed operators from being used when compiling code in the +compartment (other operators may still be permitted). + +=head2 deny_only (OP, ...) + +Deny I the listed operators from being used when compiling code +in the compartment (I other operators will be permitted, so you probably +don't want to use this method). + +=head2 trap (OP, ...), untrap (OP, ...) + +The trap and untrap methods are synonyms for deny and permit +respectfully. + +=head2 share (NAME, ...) + +This shares the variable(s) in the argument list with the compartment. +This is almost identical to exporting variables using the L +module. + +Each NAME must be the B of a non-lexical variable, typically +with the leading type identifier included. A bareword is treated as a +function name. + +Examples of legal names are '$foo' for a scalar, '@foo' for an +array, '%foo' for a hash, '&foo' or 'foo' for a subroutine and '*foo' +for a glob (i.e. all symbol table entries associated with "foo", +including scalar, array, hash, sub and filehandle). + +Each NAME is assumed to be in the calling package. See share_from +for an alternative method (which C uses). + +=head2 share_from (PACKAGE, ARRAYREF) + +This method is similar to share() but allows you to explicitly name the +package that symbols should be shared from. The symbol names (including +type characters) are supplied as an array reference. + + $safe->share_from('main', [ '$foo', '%bar', 'func' ]); + +Names can include package names, which are relative to the specified PACKAGE. +So these two calls have the same effect: + + $safe->share_from('Scalar::Util', [ 'reftype' ]); + $safe->share_from('main', [ 'Scalar::Util::reftype' ]); + +=head2 varglob (VARNAME) + +This returns a glob reference for the symbol table entry of VARNAME in +the package of the compartment. VARNAME must be the B of a +variable without any leading type marker. For example: + + ${$cpt->varglob('foo')} = "Hello world"; + +has the same effect as: + + $cpt = new Safe 'Root'; + $Root::foo = "Hello world"; + +but avoids the need to know $cpt's package name. + + +=head2 reval (STRING, STRICT) + +This evaluates STRING as perl code inside the compartment. + +The code can only see the compartment's namespace (as returned by the +B method). The compartment's root package appears to be the +C package to the code inside the compartment. + +Any attempt by the code in STRING to use an operator which is not permitted +by the compartment will cause an error (at run-time of the main program +but at compile-time for the code in STRING). The error is of the form +"'%s' trapped by operation mask...". + +If an operation is trapped in this way, then the code in STRING will +not be executed. If such a trapped operation occurs or any other +compile-time or return error, then $@ is set to the error message, just +as with an eval(). + +If there is no error, then the method returns the value of the last +expression evaluated, or a return statement may be used, just as with +subroutines and B. The context (list or scalar) is determined +by the caller as usual. + +If the return value of reval() is (or contains) any code reference, +those code references are wrapped to be themselves executed always +in the compartment. See L. + +The formerly undocumented STRICT argument sets strictness: if true +'use strict;' is used, otherwise it uses 'no strict;'. B: if +STRICT is omitted 'no strict;' is the default. + +Some points to note: + +If the entereval op is permitted then the code can use eval "..." to +'hide' code which might use denied ops. This is not a major problem +since when the code tries to execute the eval it will fail because the +opmask is still in effect. However this technique would allow clever, +and possibly harmful, code to 'probe' the boundaries of what is +possible. + +Any string eval which is executed by code executing in a compartment, +or by code called from code executing in a compartment, will be eval'd +in the namespace of the compartment. This is potentially a serious +problem. + +Consider a function foo() in package pkg compiled outside a compartment +but shared with it. Assume the compartment has a root package called +'Root'. If foo() contains an eval statement like eval '$foo = 1' then, +normally, $pkg::foo will be set to 1. If foo() is called from the +compartment (by whatever means) then instead of setting $pkg::foo, the +eval will actually set $Root::pkg::foo. + +This can easily be demonstrated by using a module, such as the Socket +module, which uses eval "..." as part of an AUTOLOAD function. You can +'use' the module outside the compartment and share an (autoloaded) +function with the compartment. If an autoload is triggered by code in +the compartment, or by any code anywhere that is called by any means +from the compartment, then the eval in the Socket module's AUTOLOAD +function happens in the namespace of the compartment. Any variables +created or used by the eval'd code are now under the control of +the code in the compartment. + +A similar effect applies to I runtime symbol lookups in code +called from a compartment but not compiled within it. + +=head2 rdo (FILENAME) + +This evaluates the contents of file FILENAME inside the compartment. +It uses the same rules as perl's built-in C to locate the file, +poossibly using C<@INC>. + +See above documentation on the B method for further details. + +=head2 root (NAMESPACE) + +This method returns the name of the package that is the root of the +compartment's namespace. + +Note that this behaviour differs from version 1.00 of the Safe module +where the root module could be used to change the namespace. That +functionality has been withdrawn pending deeper consideration. + +=head2 mask (MASK) + +This is a get-or-set method for the compartment's operator mask. + +With no MASK argument present, it returns the current operator mask of +the compartment. + +With the MASK argument present, it sets the operator mask for the +compartment (equivalent to calling the deny_only method). + +=head2 wrap_code_ref (CODEREF) + +Returns a reference to an anonymous subroutine that, when executed, will call +CODEREF with the Safe compartment 'in effect'. In other words, with the +package namespace adjusted and the opmask enabled. + +Note that the opmask doesn't affect the already compiled code, it only affects +any I compilation that the already compiled code may try to perform. + +This is particularly useful when applied to code references returned from reval(). + +(It also provides a kind of workaround for RT#60374: "Safe.pm sort {} bug with +-Dusethreads". See L +for I more detail.) + +=head2 wrap_code_refs_within (...) + +Wraps any CODE references found within the arguments by replacing each with the +result of calling L on the CODE reference. Any ARRAY or HASH +references in the arguments are inspected recursively. + +Returns nothing. + +=head1 RISKS + +This section is just an outline of some of the things code in a compartment +might do (intentionally or unintentionally) which can have an effect outside +the compartment. + +=over 8 + +=item Memory + +Consuming all (or nearly all) available memory. + +=item CPU + +Causing infinite loops etc. + +=item Snooping + +Copying private information out of your system. Even something as +simple as your user name is of value to others. Much useful information +could be gleaned from your environment variables for example. + +=item Signals + +Causing signals (especially SIGFPE and SIGALARM) to affect your process. + +Setting up a signal handler will need to be carefully considered +and controlled. What mask is in effect when a signal handler +gets called? If a user can get an imported function to get an +exception and call the user's signal handler, does that user's +restricted mask get re-instated before the handler is called? +Does an imported handler get called with its original mask or +the user's one? + +=item State Changes + +Ops such as chdir obviously effect the process as a whole and not just +the code in the compartment. Ops such as rand and srand have a similar +but more subtle effect. + +=back + +=head1 AUTHOR + +Originally designed and implemented by Malcolm Beattie. + +Reworked to use the Opcode module and other changes added by Tim Bunce. + +Currently maintained by the Perl 5 Porters, . + +=cut diff --git a/git/usr/share/perl5/core_perl/SelectSaver.pm b/git/usr/share/perl5/core_perl/SelectSaver.pm new file mode 100644 index 0000000000000000000000000000000000000000..b67adff42bb02a4e0c28a36670b5128335e5c36b --- /dev/null +++ b/git/usr/share/perl5/core_perl/SelectSaver.pm @@ -0,0 +1,54 @@ +package SelectSaver; + +our $VERSION = '1.02'; + +=head1 NAME + +SelectSaver - save and restore selected file handle + +=head1 SYNOPSIS + + use SelectSaver; + + { + my $saver = SelectSaver->new(FILEHANDLE); + # FILEHANDLE is selected + } + # previous handle is selected + + { + my $saver = SelectSaver->new; + # new handle may be selected, or not + } + # previous handle is selected + +=head1 DESCRIPTION + +A C object contains a reference to the file handle that +was selected when it was created. If its C method gets an extra +parameter, then that parameter is selected; otherwise, the selected +file handle remains unchanged. + +When a C is destroyed, it re-selects the file handle +that was selected when it was created. + +=cut + +require 5.000; +use Carp; +use Symbol; + +sub new { + @_ >= 1 && @_ <= 2 or croak 'usage: SelectSaver->new( [FILEHANDLE] )'; + my $fh = select; + my $self = bless \$fh, $_[0]; + select qualify($_[1], caller) if @_ > 1; + $self; +} + +sub DESTROY { + my $self = $_[0]; + select $$self; +} + +1; diff --git a/git/usr/share/perl5/core_perl/SelfLoader.pm b/git/usr/share/perl5/core_perl/SelfLoader.pm new file mode 100644 index 0000000000000000000000000000000000000000..e4b4217c54ea929e336c95377c22591281b54778 --- /dev/null +++ b/git/usr/share/perl5/core_perl/SelfLoader.pm @@ -0,0 +1,453 @@ +package SelfLoader; +use 5.008; +use strict; +use IO::Handle; +our $VERSION = "1.28"; + +# The following bit of eval-magic is necessary to make this work on +# perls < 5.009005. +our $AttrList; +BEGIN { + if ($] > 5.009004) { + eval <<'NEWERPERL'; +use 5.009005; # due to new regexp features +# allow checking for valid ': attrlist' attachments +# see also AutoSplit +$AttrList = qr{ + \s* : \s* + (?: + # one attribute + (?> # no backtrack + (?! \d) \w+ + (? \( (?: [^()]++ | (?&nested)++ )*+ \) ) ? + ) + (?: \s* : \s* | \s+ (?! :) ) + )* +}x; + +NEWERPERL + } + else { + eval <<'OLDERPERL'; +# allow checking for valid ': attrlist' attachments +# (we use 'our' rather than 'my' here, due to the rather complex and buggy +# behaviour of lexicals with qr// and (??{$lex}) ) +our $nested; +$nested = qr{ \( (?: (?> [^()]+ ) | (??{ $nested }) )* \) }x; +our $one_attr = qr{ (?> (?! \d) \w+ (?:$nested)? ) (?:\s*\:\s*|\s+(?!\:)) }x; +$AttrList = qr{ \s* : \s* (?: $one_attr )* }x; +OLDERPERL + } +} +use Exporter; +our @ISA = qw(Exporter); +our @EXPORT = qw(AUTOLOAD); +sub Version {$VERSION} +sub DEBUG () { 0 } + +my %Cache; # private cache for all SelfLoader's client packages + +# in croak and carp, protect $@ from "require Carp;" RT #40216 + +sub croak { { local $@; require Carp; } goto &Carp::croak } +sub carp { { local $@; require Carp; } goto &Carp::carp } + +AUTOLOAD { + our $AUTOLOAD; + print STDERR "SelfLoader::AUTOLOAD for $AUTOLOAD\n" if DEBUG; + my $SL_code = $Cache{$AUTOLOAD}; + my $save = $@; # evals in both AUTOLOAD and _load_stubs can corrupt $@ + unless ($SL_code) { + # Maybe this pack had stubs before __DATA__, and never initialized. + # Or, this maybe an automatic DESTROY method call when none exists. + $AUTOLOAD =~ m/^(.*)::/; + SelfLoader->_load_stubs($1) unless exists $Cache{"${1}::_load_stubs((caller)[0]) } + +sub _load_stubs { + # $endlines is used by Devel::SelfStubber to capture lines after __END__ + my($self, $callpack, $endlines) = @_; + no strict "refs"; + my $fh = \*{"${callpack}::DATA"}; + use strict; + my $currpack = $callpack; + my($line,$name,@lines, @stubs, $protoype); + + print STDERR "SelfLoader::load_stubs($callpack)\n" if DEBUG; + croak("$callpack doesn't contain an __DATA__ token") + unless defined fileno($fh); + # Protect: fork() shares the file pointer between the parent and the kid + if(sysseek($fh, tell($fh), 0)) { + open my $nfh, '<&', $fh or croak "reopen: $!";# dup() the fd + close $fh or die "close: $!"; # autocloses, but be + # paranoid + open $fh, '<&', $nfh or croak "reopen2: $!"; # dup() the fd "back" + close $nfh or die "close after reopen: $!"; # autocloses, but be + # paranoid + $fh->untaint; + } + $Cache{"${currpack}::) and $line !~ m/^__END__/) { + if ($line =~ m/ ^\s* # indentation + sub\s+([\w:]+)\s* # 'sub' and sub name + ( + (?:\([\\\$\@\%\&\*\;]*\))? # optional prototype sigils + (?:$AttrList)? # optional attribute list + )/x) { + push(@stubs, $self->_add_to_cache($name, $currpack, + \@lines, $protoype)); + $protoype = $2; + @lines = ($line); + if (index($1,'::') == -1) { # simple sub name + $name = "${currpack}::$1"; + } else { # sub name with package + $name = $1; + $name =~ m/^(.*)::/; + if (defined(&{"${1}::AUTOLOAD"})) { + \&{"${1}::AUTOLOAD"} == \&SelfLoader::AUTOLOAD || + die 'SelfLoader Error: attempt to specify Selfloading', + " sub $name in non-selfloading module $1"; + } else { + $self->export($1,'AUTOLOAD'); + } + } + } elsif ($line =~ m/^package\s+([\w:]+)/) { # A package declared + push(@stubs, $self->_add_to_cache($name, $currpack, + \@lines, $protoype)); + $self->_package_defined($line); + $name = ''; + @lines = (); + $currpack = $1; + $Cache{"${currpack}::export($currpack,'AUTOLOAD'); + } + } else { + push(@lines,$line); + } + } + if (defined($line) && $line =~ /^__END__/) { # __END__ + unless ($line =~ /^__END__\s*DATA/) { + if ($endlines) { + # Devel::SelfStubber would like us to capture the lines after + # __END__ so it can write out the entire file + @$endlines = <$fh>; + } + close($fh); + } + } + push(@stubs, $self->_add_to_cache($name, $currpack, \@lines, $protoype)); + no strict; + eval join('', @stubs) if @stubs; +} + + +sub _add_to_cache { + my($self,$fullname,$pack,$lines, $protoype) = @_; + return () unless $fullname; + carp("Redefining sub $fullname") + if exists $Cache{$fullname}; + $Cache{$fullname} = join('', + "\n\#line 1 \"sub $fullname\"\npackage $pack; ", + @$lines); + #$Cache{$fullname} = join('', "package $pack; ",@$lines); + print STDERR "SelfLoader cached $fullname: $Cache{$fullname}" if DEBUG; + # return stub to be eval'd + defined($protoype) ? "sub $fullname $protoype;" : "sub $fullname;" +} + +sub _package_defined {} + +1; +__END__ + +=head1 NAME + +SelfLoader - load functions only on demand + +=head1 SYNOPSIS + + package FOOBAR; + use SelfLoader; + + ... (initializing code) + + __DATA__ + sub {.... + + +=head1 DESCRIPTION + +This module tells its users that functions in the FOOBAR package are to be +autoloaded from after the C<__DATA__> token. See also +L. + +=head2 The __DATA__ token + +The C<__DATA__> token tells the perl compiler that the perl code +for compilation is finished. Everything after the C<__DATA__> token +is available for reading via the filehandle FOOBAR::DATA, +where FOOBAR is the name of the current package when the C<__DATA__> +token is reached. This works just the same as C<__END__> does in +package 'main', but for other modules data after C<__END__> is not +automatically retrievable, whereas data after C<__DATA__> is. +The C<__DATA__> token is not recognized in versions of perl prior to +5.001m. + +Note that it is possible to have C<__DATA__> tokens in the same package +in multiple files, and that the last C<__DATA__> token in a given +package that is encountered by the compiler is the one accessible +by the filehandle. This also applies to C<__END__> and main, i.e. if +the 'main' program has an C<__END__>, but a module 'require'd (_not_ 'use'd) +by that program has a 'package main;' declaration followed by an 'C<__DATA__>', +then the C filehandle is set to access the data after the C<__DATA__> +in the module, _not_ the data after the C<__END__> token in the 'main' +program, since the compiler encounters the 'require'd file later. + +=head2 SelfLoader autoloading + +The B works by the user placing the C<__DATA__> +token I perl code which needs to be compiled and +run at 'require' time, but I subroutine declarations +that can be loaded in later - usually because they may never +be called. + +The B will read from the FOOBAR::DATA filehandle to +load in the data after C<__DATA__>, and load in any subroutine +when it is called. The costs are the one-time parsing of the +data after C<__DATA__>, and a load delay for the _first_ +call of any autoloaded function. The benefits (hopefully) +are a speeded up compilation phase, with no need to load +functions which are never used. + +The B will stop reading from C<__DATA__> if +it encounters the C<__END__> token - just as you would expect. +If the C<__END__> token is present, and is followed by the +token DATA, then the B leaves the FOOBAR::DATA +filehandle open on the line after that token. + +The B exports the C subroutine to the +package using the B, and this loads the called +subroutine when it is first called. + +There is no advantage to putting subroutines which will _always_ +be called after the C<__DATA__> token. + +=head2 Autoloading and package lexicals + +A 'my $pack_lexical' statement makes the variable $pack_lexical +local _only_ to the file up to the C<__DATA__> token. Subroutines +declared elsewhere _cannot_ see these types of variables, +just as if you declared subroutines in the package but in another +file, they cannot see these variables. + +So specifically, autoloaded functions cannot see package +lexicals (this applies to both the B and the Autoloader). +The C pragma provides an alternative to defining package-level +globals that will be visible to autoloaded routines. See the documentation +on B in the pragma section of L. + +=head2 SelfLoader and AutoLoader + +The B can replace the AutoLoader - just change 'use AutoLoader' +to 'use SelfLoader' (though note that the B exports +the AUTOLOAD function - but if you have your own AUTOLOAD and +are using the AutoLoader too, you probably know what you're doing), +and the C<__END__> token to C<__DATA__>. You will need perl version 5.001m +or later to use this (version 5.001 with all patches up to patch m). + +There is no need to inherit from the B. + +The B works similarly to the AutoLoader, but picks up the +subs from after the C<__DATA__> instead of in the 'lib/auto' directory. +There is a maintenance gain in not needing to run AutoSplit on the module +at installation, and a runtime gain in not needing to keep opening and +closing files to load subs. There is a runtime loss in needing +to parse the code after the C<__DATA__>. Details of the B and +another view of these distinctions can be found in that module's +documentation. + +=head2 __DATA__, __END__, and the FOOBAR::DATA filehandle + +This section is only relevant if you want to use +the C together with the B. + +Data after the C<__DATA__> token in a module is read using the +FOOBAR::DATA filehandle. C<__END__> can still be used to denote the end +of the C<__DATA__> section if followed by the token DATA - this is supported +by the B. The C filehandle is left open if an +C<__END__> followed by a DATA is found, with the filehandle positioned at +the start of the line after the C<__END__> token. If no C<__END__> token is +present, or an C<__END__> token with no DATA token on the same line, then +the filehandle is closed. + +The B reads from wherever the current +position of the C filehandle is, until the +EOF or C<__END__>. This means that if you want to use +that filehandle (and ONLY if you want to), you should either + +1. Put all your subroutine declarations immediately after +the C<__DATA__> token and put your own data after those +declarations, using the C<__END__> token to mark the end +of subroutine declarations. You must also ensure that the B +reads first by calling 'SelfLoader-Eload_stubs();', or by using a +function which is selfloaded; + +or + +2. You should read the C filehandle first, leaving +the handle open and positioned at the first line of subroutine +declarations. + +You could conceivably do both. + +=head2 Classes and inherited methods + +For modules which are not classes, this section is not relevant. +This section is only relevant if you have methods which could +be inherited. + +A subroutine stub (or forward declaration) looks like + + sub stub; + +i.e. it is a subroutine declaration without the body of the +subroutine. For modules which are not classes, there is no real +need for stubs as far as autoloading is concerned. + +For modules which ARE classes, and need to handle inherited methods, +stubs are needed to ensure that the method inheritance mechanism works +properly. You can load the stubs into the module at 'require' time, by +adding the statement 'SelfLoader-Eload_stubs();' to the module to do +this. + +The alternative is to put the stubs in before the C<__DATA__> token BEFORE +releasing the module, and for this purpose the C +module is available. However this does require the extra step of ensuring +that the stubs are in the module. If this is done I strongly recommend +that this is done BEFORE releasing the module - it should NOT be done +at install time in general. + +=head1 Multiple packages and fully qualified subroutine names + +Subroutines in multiple packages within the same file are supported - but you +should note that this requires exporting the C to +every package which requires it. This is done automatically by the +B when it first loads the subs into the cache, but you should +really specify it in the initialization before the C<__DATA__> by putting +a 'use SelfLoader' statement in each package. + +Fully qualified subroutine names are also supported. For example, + + __DATA__ + sub foo::bar {23} + package baz; + sub dob {32} + +will all be loaded correctly by the B, and the B +will ensure that the packages 'foo' and 'baz' correctly have the +B C method when the data after C<__DATA__> is first +parsed. + +=head1 AUTHOR + +C is maintained by the perl5-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the CPAN release can be sent to its maintainer, +though. + +Author and Maintainer: The Perl5-Porters + +Maintainer of the CPAN release: Steffen Mueller + +=head1 COPYRIGHT AND LICENSE + +This package has been part of the perl core since the first release +of perl5. It has been released separately to CPAN so older installations +can benefit from bug fixes. + +This package has the same copyright and license as the perl core: + +Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, +2000, 2001, 2002, 2003, 2004, 2005, 2006 by Larry Wall and others + +All rights reserved. + +This program is free software; you can redistribute it and/or modify +it under the terms of either: + +=over 4 + +=item a) + +the GNU General Public License as published by the Free Software Foundation; +either version 1, or (at your option) any later version, or + +=item b) + +the "Artistic License" which comes with this Kit. + +=back + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either +the GNU General Public License or the Artistic License for more details. + +You should have received a copy of the Artistic License with this +Kit, in the file named "Artistic". If not, I'll be glad to provide one. + +You should also have received a copy of the GNU General Public License +along with this program in the file named "Copying". If not, see +. + +For those of you that choose to use the GNU General Public License, +my interpretation of the GNU General Public License is that no Perl +script falls under the terms of the GPL unless you explicitly put +said script under the terms of the GPL yourself. Furthermore, any +object code linked with perl does not automatically fall under the +terms of the GPL, provided such object code only adds definitions +of subroutines and variables, and does not otherwise impair the +resulting interpreter from executing any standard Perl script. I +consider linking in C subroutines in this manner to be the moral +equivalent of defining subroutines in the Perl language itself. You +may sell such an object file as proprietary provided that you provide +or offer to provide the Perl source, as specified by the GNU General +Public License. (This is merely an alternate way of specifying input +to the program.) You may also sell a binary produced by the dumping of +a running Perl script that belongs to you, provided that you provide or +offer to provide the Perl source as specified by the GPL. (The +fact that a Perl interpreter and your code are in the same binary file +is, in this case, a form of mere aggregation.) This is my interpretation +of the GPL. If you still have concerns or difficulties understanding +my intent, feel free to contact me. Of course, the Artistic License +spells all this out for your protection, so you may prefer to use that. + +=cut diff --git a/git/usr/share/perl5/core_perl/Symbol.pm b/git/usr/share/perl5/core_perl/Symbol.pm new file mode 100644 index 0000000000000000000000000000000000000000..0ae79a227437fc6819b8b129e3aa9a06bb958bf8 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Symbol.pm @@ -0,0 +1,175 @@ +package Symbol; + +use strict; +use warnings; + +=head1 NAME + +Symbol - manipulate Perl symbols and their names + +=head1 SYNOPSIS + + use Symbol; + + $sym = gensym; + open($sym, '<', "filename"); + $_ = <$sym>; + # etc. + + ungensym $sym; # no effect + + # replace *FOO{IO} handle but not $FOO, %FOO, etc. + *FOO = geniosym; + + print qualify("x"), "\n"; # "main::x" + print qualify("x", "FOO"), "\n"; # "FOO::x" + print qualify("BAR::x"), "\n"; # "BAR::x" + print qualify("BAR::x", "FOO"), "\n"; # "BAR::x" + print qualify("STDOUT", "FOO"), "\n"; # "main::STDOUT" (global) + print qualify(\*x), "\n"; # returns \*x + print qualify(\*x, "FOO"), "\n"; # returns \*x + + use strict refs; + print { qualify_to_ref $fh } "foo!\n"; + $ref = qualify_to_ref $name, $pkg; + + use Symbol qw(delete_package); + delete_package('Foo::Bar'); + print "deleted\n" unless exists $Foo::{'Bar::'}; + +=head1 DESCRIPTION + +C creates an anonymous glob and returns a reference +to it. Such a glob reference can be used as a file or directory +handle. + +For backward compatibility with older implementations that didn't +support anonymous globs, C is also provided. +But it doesn't do anything. + +C creates an anonymous IO handle. This can be +assigned into an existing glob without affecting the non-IO portions +of the glob. + +C turns unqualified symbol names into qualified +variable names (e.g. "myvar" -E "MyPackage::myvar"). If it is given a +second parameter, C uses it as the default package; +otherwise, it uses the package of its caller. Regardless, global +variable names (e.g. "STDOUT", "ENV", "SIG") are always qualified with +"main::". + +Qualification applies only to symbol names (strings). References are +left unchanged under the assumption that they are glob references, +which are qualified by their nature. + +C is just like C except that it +returns a glob ref rather than a symbol name, so you can use the result +even if C is in effect. + +C wipes out a whole package namespace. Note +this routine is not exported by default--you may want to import it +explicitly. + +=head1 BUGS + +C is a bit too powerful. It undefines every symbol that +lives in the specified package. Since perl, for performance reasons, does not +perform a symbol table lookup each time a function is called or a global +variable is accessed, some code that has already been loaded and that makes use +of symbols in package C may stop working after you delete C, even if +you reload the C module afterwards. + +=cut + +require Exporter; +our @ISA = qw(Exporter); +our @EXPORT = qw(gensym ungensym qualify qualify_to_ref); +our @EXPORT_OK = qw(delete_package geniosym); + +our $VERSION = '1.09'; + +my $genpkg = "Symbol::"; +my $genseq = 0; + +my %global = map {$_ => 1} qw(ARGV ARGVOUT ENV INC SIG STDERR STDIN STDOUT); + +# +# Note that we never _copy_ the glob; we just make a ref to it. +# If we did copy it, then SVf_FAKE would be set on the copy, and +# glob-specific behaviors (e.g. C<*$ref = \&func>) wouldn't work. +# +sub gensym () { + my $name = "GEN" . $genseq++; + no strict 'refs'; + my $ref = \*{$genpkg . $name}; + delete $$genpkg{$name}; + $ref; +} + +sub geniosym () { + my $sym = gensym(); + # force the IO slot to be filled + select(select $sym); + *$sym{IO}; +} + +sub ungensym ($) {} + +sub qualify ($;$) { + my ($name) = @_; + if (!ref($name) && index($name, '::') == -1 && index($name, "'") == -1) { + my $pkg; + # Global names: special character, "^xyz", or other. + if ($name =~ /^(([^a-z])|(\^[a-z_]+))\z/i || $global{$name}) { + # RGS 2001-11-05 : translate leading ^X to control-char + $name =~ s/^\^([a-z_])/'qq(\c'.$1.')'/eei; + $pkg = "main"; + } + else { + $pkg = (@_ > 1) ? $_[1] : caller; + } + $name = $pkg . "::" . $name; + } + $name; +} + +sub qualify_to_ref ($;$) { + no strict 'refs'; + return \*{ qualify $_[0], @_ > 1 ? $_[1] : caller }; +} + +# +# of Safe.pm lineage +# +sub delete_package ($) { + my $pkg = shift; + + # expand to full symbol table name if needed + + unless ($pkg =~ /^main::.*::$/) { + $pkg = "main$pkg" if $pkg =~ /^::/; + $pkg = "main::$pkg" unless $pkg =~ /^main::/; + $pkg .= '::' unless $pkg =~ /::$/; + } + + my($stem, $leaf) = $pkg =~ m/(.*::)(\w+::)$/; + no strict 'refs'; + my $stem_symtab = *{$stem}{HASH}; + return unless defined $stem_symtab and exists $stem_symtab->{$leaf}; + + + # free all the symbols in the package + + my $leaf_symtab = *{$stem_symtab->{$leaf}}{HASH}; + foreach my $name (keys %$leaf_symtab) { + undef *{$pkg . $name}; + } + use strict 'refs'; + + # delete the symbol table + + %$leaf_symtab = (); + delete $stem_symtab->{$leaf}; +} + +1; diff --git a/git/usr/share/perl5/core_perl/Test.pm b/git/usr/share/perl5/core_perl/Test.pm new file mode 100644 index 0000000000000000000000000000000000000000..58daf281ac67595ddc2ea3d1d06ad2ffa15e6132 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Test.pm @@ -0,0 +1,985 @@ + +require 5.004; +package Test; + +use strict; + +use Carp; +our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, $ntest, $TestLevel); #public-is +our ($TESTOUT, $TESTERR, %Program_Lines, $told_about_diff, + $ONFAIL, %todo, %history, $planned, @FAILDETAIL); #private-ish + +# In case a test is run in a persistent environment. +sub _reset_globals { + %todo = (); + %history = (); + @FAILDETAIL = (); + $ntest = 1; + $TestLevel = 0; # how many extra stack frames to skip + $planned = 0; +} + +$VERSION = '1.31'; +require Exporter; +@ISA=('Exporter'); + +@EXPORT = qw(&plan &ok &skip); +@EXPORT_OK = qw($ntest $TESTOUT $TESTERR); + +$|=1; +$TESTOUT = *STDOUT{IO}; +$TESTERR = *STDERR{IO}; + +# Use of this variable is strongly discouraged. It is set mainly to +# help test coverage analyzers know which test is running. +$ENV{REGRESSION_TEST} = $0; + + +=head1 NAME + +Test - provides a simple framework for writing test scripts + +=head1 SYNOPSIS + + use strict; + use Test; + + # use a BEGIN block so we print our plan before MyModule is loaded + BEGIN { plan tests => 14, todo => [3,4] } + + # load your module... + use MyModule; + + # Helpful notes. All note-lines must start with a "#". + print "# I'm testing MyModule version $MyModule::VERSION\n"; + + ok(0); # failure + ok(1); # success + + ok(0); # ok, expected failure (see todo list, above) + ok(1); # surprise success! + + ok(0,1); # failure: '0' ne '1' + ok('broke','fixed'); # failure: 'broke' ne 'fixed' + ok('fixed','fixed'); # success: 'fixed' eq 'fixed' + ok('fixed',qr/x/); # success: 'fixed' =~ qr/x/ + + ok(sub { 1+1 }, 2); # success: '2' eq '2' + ok(sub { 1+1 }, 3); # failure: '2' ne '3' + + my @list = (0,0); + ok @list, 3, "\@list=".join(',',@list); #extra notes + ok 'segmentation fault', '/(?i)success/'; #regex match + + skip( + $^O =~ m/MSWin/ ? "Skip if MSWin" : 0, # whether to skip + $foo, $bar # arguments just like for ok(...) + ); + skip( + $^O =~ m/MSWin/ ? 0 : "Skip unless MSWin", # whether to skip + $foo, $bar # arguments just like for ok(...) + ); + +=head1 DESCRIPTION + +This module simplifies the task of writing test files for Perl modules, +such that their output is in the format that +L expects to see. + +=head1 QUICK START GUIDE + +To write a test for your new (and probably not even done) module, create +a new file called F (in a new F directory). If you have +multiple test files, to test the "foo", "bar", and "baz" feature sets, +then feel free to call your files F, F, and +F + +=head2 Functions + +This module defines three public functions, C, C, +and C. By default, all three are exported by +the C statement. + +=over 4 + +=item C + + BEGIN { plan %theplan; } + +This should be the first thing you call in your test script. It +declares your testing plan, how many there will be, if any of them +should be allowed to fail, and so on. + +Typical usage is just: + + use Test; + BEGIN { plan tests => 23 } + +These are the things that you can put in the parameters to plan: + +=over + +=item C I> + +The number of tests in your script. +This means all ok() and skip() calls. + +=item C [I<1,5,14>]> + +A reference to a list of tests which are allowed to fail. +See L. + +=item C sub { ... }> + +=item C \&some_sub> + +A subroutine reference to be run at the end of the test script, if +any of the tests fail. See L. + +=back + +You must call C once and only once. You should call it +in a C block, like so: + + BEGIN { plan tests => 23 } + +=cut + +sub plan { + croak "Test::plan(%args): odd number of arguments" if @_ & 1; + croak "Test::plan(): should not be called more than once" if $planned; + + local($\, $,); # guard against -l and other things that screw with + # print + + _reset_globals(); + + _read_program( (caller)[1] ); + + my $max=0; + while (@_) { + my ($k,$v) = splice(@_, 0, 2); + if ($k =~ /^test(s)?$/) { $max = $v; } + elsif ($k eq 'todo' or + $k eq 'failok') { for (@$v) { $todo{$_}=1; }; } + elsif ($k eq 'onfail') { + ref $v eq 'CODE' or croak "Test::plan(onfail => $v): must be CODE"; + $ONFAIL = $v; + } + else { carp "Test::plan(): skipping unrecognized directive '$k'" } + } + my @todo = sort { $a <=> $b } keys %todo; + if (@todo) { + print $TESTOUT "1..$max todo ".join(' ', @todo).";\n"; + } else { + print $TESTOUT "1..$max\n"; + } + ++$planned; + print $TESTOUT "# Running under perl version $] for $^O", + (chr(65) eq 'A') ? "\n" : " in a non-ASCII world\n"; + + print $TESTOUT "# Win32::BuildNumber ", &Win32::BuildNumber(), "\n" + if defined(&Win32::BuildNumber) and defined &Win32::BuildNumber(); + + print $TESTOUT "# MacPerl version $MacPerl::Version\n" + if defined $MacPerl::Version; + + printf $TESTOUT + "# Current time local: %s\n# Current time GMT: %s\n", + scalar(localtime($^T)), scalar(gmtime($^T)); + + print $TESTOUT "# Using Test.pm version $VERSION\n"; + + # Retval never used: + return undef; +} + +sub _read_program { + my($file) = shift; + return unless defined $file and length $file + and -e $file and -f _ and -r _; + open(SOURCEFILE, '<', $file) || return; + $Program_Lines{$file} = []; + close(SOURCEFILE); + + foreach my $x (@{$Program_Lines{$file}}) + { $x =~ tr/\cm\cj\n\r//d } + + unshift @{$Program_Lines{$file}}, ''; + return 1; +} + +=begin _private + +=item B<_to_value> + + my $value = _to_value($input); + +Converts an C parameter to its value. Typically this just means +running it, if it's a code reference. You should run all inputted +values through this. + +=cut + +sub _to_value { + my ($v) = @_; + return ref $v eq 'CODE' ? $v->() : $v; +} + +sub _quote { + my $str = $_[0]; + return "" unless defined $str; + $str =~ s/\\/\\\\/g; + $str =~ s/"/\\"/g; + $str =~ s/\a/\\a/g; + $str =~ s/[\b]/\\b/g; + $str =~ s/\e/\\e/g; + $str =~ s/\f/\\f/g; + $str =~ s/\n/\\n/g; + $str =~ s/\r/\\r/g; + $str =~ s/\t/\\t/g; + if (defined $^V && $^V ge v5.6) { + $str =~ s/([[:cntrl:]])(?!\d)/sprintf('\\%o',ord($1))/eg; + $str =~ s/([[:^print:]])/sprintf('\\x%02X',ord($1))/eg; + $str =~ s/([[:^ascii:]])/sprintf('\\x{%X}',ord($1))/eg; + } + elsif (ord("A") == 65) { + $str =~ s/([\0-\037])(?!\d)/sprintf('\\%o',ord($1))/eg; + $str =~ s/([\0-\037\177-\377])/sprintf('\\x%02X',ord($1))/eg; + $str =~ s/([^\0-\176])/sprintf('\\x{%X}',ord($1))/eg; + } + else { # Assuming EBCDIC on this ancient Perl + + # The controls except for one are 0-\077, so almost all controls on + # EBCDIC platforms will be expressed in octal, instead of just the C0 + # ones. + $str =~ s/([\0-\077])(?!\d)/sprintf('\\%o',ord($1))/eg; + $str =~ s/([\0-\077])/sprintf('\\x%02X',ord($1))/eg; + + $str =~ s/([^\0-\xFF])/sprintf('\\x{%X}',ord($1))/eg; + + # What remains to be escaped are the non-ASCII-range characters, + # including the one control that isn't in the 0-077 range. + # (We don't escape further any ASCII printables.) + $str =~ s<[^ !"\$\%#'()*+,\-./0123456789:;\<=\>?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~]>eg; + } + #if( $_[1] ) { + # substr( $str , 218-3 ) = "..." + # if length($str) >= 218 and !$ENV{PERL_TEST_NO_TRUNC}; + #} + return qq("$str"); +} + + +=end _private + +=item C + + ok(1 + 1 == 2); + ok($have, $expect); + ok($have, $expect, $diagnostics); + +This function is the reason for C's existence. It's +the basic function that +handles printing "C" or "C", along with the +current test number. (That's what C wants to see.) + +In its most basic usage, C simply takes a single scalar +expression. If its value is true, the test passes; if false, +the test fails. Examples: + + # Examples of ok(scalar) + + ok( 1 + 1 == 2 ); # ok if 1 + 1 == 2 + ok( $foo =~ /bar/ ); # ok if $foo contains 'bar' + ok( baz($x + $y) eq 'Armondo' ); # ok if baz($x + $y) returns + # 'Armondo' + ok( @a == @b ); # ok if @a and @b are the same + # length + +The expression is evaluated in scalar context. So the following will +work: + + ok( @stuff ); # ok if @stuff has any + # elements + ok( !grep !defined $_, @stuff ); # ok if everything in @stuff + # is defined. + +A special case is if the expression is a subroutine reference (in either +C syntax or C<\&foo> syntax). In +that case, it is executed and its value (true or false) determines if +the test passes or fails. For example, + + ok( sub { # See whether sleep works at least passably + my $start_time = time; + sleep 5; + time() - $start_time >= 4 + }); + +In its two-argument form, C, I)> compares the two +scalar values to see if they match. They match if both are undefined, +or if I is a regex that matches I, or if they compare equal +with C. + + # Example of ok(scalar, scalar) + + ok( "this", "that" ); # not ok, 'this' ne 'that' + ok( "", undef ); # not ok, "" is defined + +The second argument is considered a regex if it is either a regex +object or a string that looks like a regex. Regex objects are +constructed with the qr// operator in recent versions of perl. A +string is considered to look like a regex if its first and last +characters are "/", or if the first character is "m" +and its second and last characters are both the +same non-alphanumeric non-whitespace character. These regexp + +Regex examples: + + ok( 'JaffO', '/Jaff/' ); # ok, 'JaffO' =~ /Jaff/ + ok( 'JaffO', 'm|Jaff|' ); # ok, 'JaffO' =~ m|Jaff| + ok( 'JaffO', qr/Jaff/ ); # ok, 'JaffO' =~ qr/Jaff/; + ok( 'JaffO', '/(?i)jaff/ ); # ok, 'JaffO' =~ /jaff/i; + +If either (or both!) is a subroutine reference, it is run and used +as the value for comparing. For example: + + ok sub { + open(OUT, '>', 'x.dat') || die $!; + print OUT "\x{e000}"; + close OUT; + my $bytecount = -s 'x.dat'; + unlink 'x.dat' or warn "Can't unlink : $!"; + return $bytecount; + }, + 4 + ; + +The above test passes two values to C -- the first +a coderef, and the second is the number 4. Before C compares them, +it calls the coderef, and uses its return value as the real value of +this parameter. Assuming that C<$bytecount> returns 4, C ends up +testing C<4 eq 4>. Since that's true, this test passes. + +Finally, you can append an optional third argument, in +C,I, I)>, where I is a string value that +will be printed if the test fails. This should be some useful +information about the test, pertaining to why it failed, and/or +a description of the test. For example: + + ok( grep($_ eq 'something unique', @stuff), 1, + "Something that should be unique isn't!\n". + '@stuff = '.join ', ', @stuff + ); + +Unfortunately, a note cannot be used with the single argument +style of C. That is, if you try C, I)>, then +C will interpret this as C, I)>, and probably +end up testing C eq I> -- and that's not what you want! + +All of the above special cases can occasionally cause some +problems. See L. + +=cut + +# A past maintainer of this module said: +# <> +# + +sub ok ($;$$) { + croak "ok: plan before you test!" if !$planned; + + local($\,$,); # guard against -l and other things that screw with + # print + + my ($pkg,$file,$line) = caller($TestLevel); + my $repetition = ++$history{"$file:$line"}; + my $context = ("$file at line $line". + ($repetition > 1 ? " fail \#$repetition" : '')); + + # Are we comparing two values? + my $compare = 0; + + my $ok=0; + my $result = _to_value(shift); + my ($expected, $isregex, $regex); + if (@_ == 0) { + $ok = $result; + } else { + $compare = 1; + $expected = _to_value(shift); + if (!defined $expected) { + $ok = !defined $result; + } elsif (!defined $result) { + $ok = 0; + } elsif (ref($expected) eq 'Regexp') { + $ok = $result =~ /$expected/; + $regex = $expected; + } elsif (($regex) = ($expected =~ m,^ / (.+) / $,sx) or + (undef, $regex) = ($expected =~ m,^ m([^\w\s]) (.+) \1 $,sx)) { + $ok = $result =~ /$regex/; + } else { + $ok = $result eq $expected; + } + } + my $todo = $todo{$ntest}; + if ($todo and $ok) { + $context .= ' TODO?!' if $todo; + print $TESTOUT "ok $ntest # ($context)\n"; + } else { + # Issuing two seperate prints() causes problems on VMS. + if (!$ok) { + print $TESTOUT "not ok $ntest\n"; + } + else { + print $TESTOUT "ok $ntest\n"; + } + + $ok or _complain($result, $expected, + { + 'repetition' => $repetition, 'package' => $pkg, + 'result' => $result, 'todo' => $todo, + 'file' => $file, 'line' => $line, + 'context' => $context, 'compare' => $compare, + @_ ? ('diagnostic' => _to_value(shift)) : (), + }); + + } + ++ $ntest; + $ok; +} + + +sub _complain { + my($result, $expected, $detail) = @_; + $$detail{expected} = $expected if defined $expected; + + # Get the user's diagnostic, protecting against multi-line + # diagnostics. + my $diag = $$detail{diagnostic}; + $diag =~ s/\n/\n#/g if defined $diag; + + my $out = $$detail{todo} ? $TESTOUT : $TESTERR; + $$detail{context} .= ' *TODO*' if $$detail{todo}; + if (!$$detail{compare}) { + if (!$diag) { + print $out "# Failed test $ntest in $$detail{context}\n"; + } else { + print $out "# Failed test $ntest in $$detail{context}: $diag\n"; + } + } else { + my $prefix = "Test $ntest"; + + print $out "# $prefix got: " . _quote($result) . + " ($$detail{context})\n"; + $prefix = ' ' x (length($prefix) - 5); + my $expected_quoted = (defined $$detail{regex}) + ? 'qr{'.($$detail{regex}).'}' : _quote($expected); + + print $out "# $prefix Expected: $expected_quoted", + $diag ? " ($diag)" : (), "\n"; + + _diff_complain( $result, $expected, $detail, $prefix ) + if defined($expected) and 2 < ($expected =~ tr/\n//); + } + + if(defined $Program_Lines{ $$detail{file} }[ $$detail{line} ]) { + print $out + "# $$detail{file} line $$detail{line} is: $Program_Lines{ $$detail{file} }[ $$detail{line} ]\n" + if $Program_Lines{ $$detail{file} }[ $$detail{line} ] + =~ m/[^\s\#\(\)\{\}\[\]\;]/; # Otherwise it's uninformative + + undef $Program_Lines{ $$detail{file} }[ $$detail{line} ]; + # So we won't repeat it. + } + + push @FAILDETAIL, $detail; + return; +} + + + +sub _diff_complain { + my($result, $expected, $detail, $prefix) = @_; + return _diff_complain_external(@_) if $ENV{PERL_TEST_DIFF}; + return _diff_complain_algdiff(@_) + if eval { + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + require Algorithm::Diff; Algorithm::Diff->VERSION(1.15); + 1; + }; + + $told_about_diff++ or print $TESTERR <<"EOT"; +# $prefix (Install the Algorithm::Diff module to have differences in multiline +# $prefix output explained. You might also set the PERL_TEST_DIFF environment +# $prefix variable to run a diff program on the output.) +EOT + ; + return; +} + + + +sub _diff_complain_external { + my($result, $expected, $detail, $prefix) = @_; + my $diff = $ENV{PERL_TEST_DIFF} || die "WHAAAA?"; + + require File::Temp; + my($got_fh, $got_filename) = File::Temp::tempfile("test-got-XXXXX"); + my($exp_fh, $exp_filename) = File::Temp::tempfile("test-exp-XXXXX"); + unless ($got_fh && $exp_fh) { + warn "Can't get tempfiles"; + return; + } + + print $got_fh $result; + print $exp_fh $expected; + if (close($got_fh) && close($exp_fh)) { + my $diff_cmd = "$diff $exp_filename $got_filename"; + print $TESTERR "#\n# $prefix $diff_cmd\n"; + if (open(DIFF, '-|', $diff_cmd)) { + local $_; + while () { + print $TESTERR "# $prefix $_"; + } + close(DIFF); + } + else { + warn "Can't run diff: $!"; + } + } else { + warn "Can't write to tempfiles: $!"; + } + unlink($got_filename); + unlink($exp_filename); + return; +} + + + +sub _diff_complain_algdiff { + my($result, $expected, $detail, $prefix) = @_; + + my @got = split(/^/, $result); + my @exp = split(/^/, $expected); + + my $diff_kind; + my @diff_lines; + + my $diff_flush = sub { + return unless $diff_kind; + + my $count_lines = @diff_lines; + my $s = $count_lines == 1 ? "" : "s"; + my $first_line = $diff_lines[0][0] + 1; + + print $TESTERR "# $prefix "; + if ($diff_kind eq "GOT") { + print $TESTERR "Got $count_lines extra line$s at line $first_line:\n"; + for my $i (@diff_lines) { + print $TESTERR "# $prefix + " . _quote($got[$i->[0]]) . "\n"; + } + } elsif ($diff_kind eq "EXP") { + if ($count_lines > 1) { + my $last_line = $diff_lines[-1][0] + 1; + print $TESTERR "Lines $first_line-$last_line are"; + } + else { + print $TESTERR "Line $first_line is"; + } + print $TESTERR " missing:\n"; + for my $i (@diff_lines) { + print $TESTERR "# $prefix - " . _quote($exp[$i->[1]]) . "\n"; + } + } elsif ($diff_kind eq "CH") { + if ($count_lines > 1) { + my $last_line = $diff_lines[-1][0] + 1; + print $TESTERR "Lines $first_line-$last_line are"; + } + else { + print $TESTERR "Line $first_line is"; + } + print $TESTERR " changed:\n"; + for my $i (@diff_lines) { + print $TESTERR "# $prefix - " . _quote($exp[$i->[1]]) . "\n"; + print $TESTERR "# $prefix + " . _quote($got[$i->[0]]) . "\n"; + } + } + + # reset + $diff_kind = undef; + @diff_lines = (); + }; + + my $diff_collect = sub { + my $kind = shift; + &$diff_flush() if $diff_kind && $diff_kind ne $kind; + $diff_kind = $kind; + push(@diff_lines, [@_]); + }; + + + Algorithm::Diff::traverse_balanced( + \@got, \@exp, + { + DISCARD_A => sub { &$diff_collect("GOT", @_) }, + DISCARD_B => sub { &$diff_collect("EXP", @_) }, + CHANGE => sub { &$diff_collect("CH", @_) }, + MATCH => sub { &$diff_flush() }, + }, + ); + &$diff_flush(); + + return; +} + + + + +#~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ + + +=item C, I)> + +This is used for tests that under some conditions can be skipped. It's +basically equivalent to: + + if( $skip_if_true ) { + ok(1); + } else { + ok( args... ); + } + +...except that the C emits not just "C>" but +actually "C # I>". + +The arguments after the I are what is fed to C if +this test isn't skipped. + +Example usage: + + my $if_MSWin = + $^O =~ m/MSWin/ ? 'Skip if under MSWin' : ''; + + # A test to be skipped if under MSWin (i.e., run except under + # MSWin) + skip($if_MSWin, thing($foo), thing($bar) ); + +Or, going the other way: + + my $unless_MSWin = + $^O =~ m/MSWin/ ? '' : 'Skip unless under MSWin'; + + # A test to be skipped unless under MSWin (i.e., run only under + # MSWin) + skip($unless_MSWin, thing($foo), thing($bar) ); + +The tricky thing to remember is that the first parameter is true if +you want to I the test, not I it; and it also doubles as a +note about why it's being skipped. So in the first codeblock above, read +the code as "skip if MSWin -- (otherwise) test whether C is +C" or for the second case, "skip unless MSWin...". + +Also, when your I string is true, it really should (for +backwards compatibility with older Test.pm versions) start with the +string "Skip", as shown in the above examples. + +Note that in the above cases, C and C +I evaluated -- but as long as the C is true, +then we C just tosses out their value (i.e., not +bothering to treat them like values to C. But if +you need to I eval the arguments when skipping the +test, use +this format: + + skip( $unless_MSWin, + sub { + # This code returns true if the test passes. + # (But it doesn't even get called if the test is skipped.) + thing($foo) eq thing($bar) + } + ); + +or even this, which is basically equivalent: + + skip( $unless_MSWin, + sub { thing($foo) }, sub { thing($bar) } + ); + +That is, both are like this: + + if( $unless_MSWin ) { + ok(1); # but it actually appends "# $unless_MSWin" + # so that Test::Harness can tell it's a skip + } else { + # Not skipping, so actually call and evaluate... + ok( sub { thing($foo) }, sub { thing($bar) } ); + } + +=cut + +sub skip ($;$$$) { + local($\, $,); # guard against -l and other things that screw with + # print + + my $whyskip = _to_value(shift); + if (!@_ or $whyskip) { + $whyskip = '' if $whyskip =~ m/^\d+$/; + $whyskip =~ s/^[Ss]kip(?:\s+|$)//; # backwards compatibility, old + # versions required the reason + # to start with 'skip' + # We print in one shot for VMSy reasons. + my $ok = "ok $ntest # skip"; + $ok .= " $whyskip" if length $whyskip; + $ok .= "\n"; + print $TESTOUT $ok; + ++ $ntest; + return 1; + } else { + # backwards compatibility (I think). skip() used to be + # called like ok(), which is weird. I haven't decided what to do with + # this yet. +# warn <(\@FAILDETAIL) if @FAILDETAIL && $ONFAIL; +} + +1; +__END__ + +=head1 TEST TYPES + +=over 4 + +=item * NORMAL TESTS + +These tests are expected to succeed. Usually, most or all of your tests +are in this category. If a normal test doesn't succeed, then that +means that something is I. + +=item * SKIPPED TESTS + +The C function is for tests that might or might not be +possible to run, depending +on the availability of platform-specific features. The first argument +should evaluate to true (think "yes, please skip") if the required +feature is I available. After the first argument, C works +exactly the same way as C does. + +=item * TODO TESTS + +TODO tests are designed for maintaining an B. +These tests are I If a TODO test does succeed, +then the feature in question shouldn't be on the TODO list, now +should it? + +Packages should NOT be released with succeeding TODO tests. As soon +as a TODO test starts working, it should be promoted to a normal test, +and the newly working feature should be documented in the release +notes or in the change log. + +=back + +=head1 ONFAIL + + BEGIN { plan test => 4, onfail => sub { warn "CALL 911!" } } + +Although test failures should be enough, extra diagnostics can be +triggered at the end of a test run. C is passed an array ref +of hash refs that describe each test failure. Each hash will contain +at least the following fields: C, C, and +C. (You shouldn't rely on any other fields being present.) If the test +had an expected value or a diagnostic (or "note") string, these will also be +included. + +The I C hook might be used simply to print out the +version of your package and/or how to report problems. It might also +be used to generate extremely sophisticated diagnostics for a +particularly bizarre test failure. However it's not a panacea. Core +dumps or other unrecoverable errors prevent the C hook from +running. (It is run inside an C block.) Besides, C is +probably over-kill in most cases. (Your test code should be simpler +than the code it is testing, yes?) + + +=head1 BUGS and CAVEATS + +=over + +=item * + +C's special handing of strings which look like they might be +regexes can also cause unexpected behavior. An innocent: + + ok( $fileglob, '/path/to/some/*stuff/' ); + +will fail, since Test.pm considers the second argument to be a regex! +The best bet is to use the one-argument form: + + ok( $fileglob eq '/path/to/some/*stuff/' ); + +=item * + +C's use of string C can sometimes cause odd problems +when comparing +numbers, especially if you're casting a string to a number: + + $foo = "1.0"; + ok( $foo, 1 ); # not ok, "1.0" ne 1 + +Your best bet is to use the single argument form: + + ok( $foo == 1 ); # ok "1.0" == 1 + +=item * + +As you may have inferred from the above documentation and examples, +C's prototype is C<($;$$)> (and, incidentally, C's is +C<($;$$$)>). This means, for example, that you can do C +to compare the I of the two arrays. But don't be fooled into +thinking that C means a comparison of the contents of two +arrays -- you're comparing I the number of elements of each. It's +so easy to make that mistake in reading C that you might +want to be very explicit about it, and instead write C. + +=item * + +This almost definitely doesn't do what you expect: + + ok $thingy->can('some_method'); + +Why? Because C returns a coderef to mean "yes it can (and the +method is this...)", and then C sees a coderef and thinks you're +passing a function that you want it to call and consider the truth of +the result of! I.e., just like: + + ok $thingy->can('some_method')->(); + +What you probably want instead is this: + + ok $thingy->can('some_method') && 1; + +If the C returns false, then that is passed to C. If it +returns true, then the larger expression S<< C<< +$thingy->can('some_method') && 1 >> >> returns 1, which C sees as +a simple signal of success, as you would expect. + + +=item * + +The syntax for C is about the only way it can be, but it's still +quite confusing. Just start with the above examples and you'll +be okay. + +Moreover, users may expect this: + + skip $unless_mswin, foo($bar), baz($quux); + +to not evaluate C and C when the test is being +skipped. But in reality, they I evaluated, but C just won't +bother comparing them if C<$unless_mswin> is true. + +You could do this: + + skip $unless_mswin, sub{foo($bar)}, sub{baz($quux)}; + +But that's not terribly pretty. You may find it simpler or clearer in +the long run to just do things like this: + + if( $^O =~ m/MSWin/ ) { + print "# Yay, we're under $^O\n"; + ok foo($bar), baz($quux); + ok thing($whatever), baz($stuff); + ok blorp($quux, $whatever); + ok foo($barzbarz), thang($quux); + } else { + print "# Feh, we're under $^O. Watch me skip some tests...\n"; + for(1 .. 4) { skip "Skip unless under MSWin" } + } + +But be quite sure that C is called exactly as many times in the +first block as C is called in the second block. + +=back + + +=head1 ENVIRONMENT + +If C environment variable is set, it will be used as a +command for comparing unexpected multiline results. If you have GNU +diff installed, you might want to set C to C. +If you don't have a suitable program, you might install the +C module and then set C to be C. If C isn't set +but the C module is available, then it will be used +to show the differences in multiline results. + +=for comment +If C is set, then the initial "Got 'something' but +expected 'something_else'" readings for long multiline output values aren't +truncated at about the 230th column, as they normally could be in some +cases. Normally you won't need to use this, unless you were carefully +parsing the output of your test programs. + + +=head1 NOTE + +A past developer of this module once said that it was no longer being +actively developed. However, rumors of its demise were greatly +exaggerated. Feedback and suggestions are quite welcome. + +Be aware that the main value of this module is its simplicity. Note +that there are already more ambitious modules out there, such as +L and L. + +Some earlier versions of this module had docs with some confusing +typos in the description of C. + + +=head1 SEE ALSO + +L + +L, L, L + +L for building your own testing library. + +L is an interesting XUnit-style testing library. + +L lets you embed tests in code. + + +=head1 AUTHOR + +Copyright (c) 1998-2000 Joshua Nathaniel Pritikin. + +Copyright (c) 2001-2002 Michael G. Schwern. + +Copyright (c) 2002-2004 Sean M. Burke. + +Current maintainer: Jesse Vincent. Ejesse@bestpractical.comE + +This package is free software and is provided "as is" without express +or implied warranty. It may be used, redistributed and/or modified +under the same terms as Perl itself. + +=cut + +# "Your mistake was a hidden intention." +# -- /Oblique Strategies/, Brian Eno and Peter Schmidt diff --git a/git/usr/share/perl5/core_perl/Test2.pm b/git/usr/share/perl5/core_perl/Test2.pm new file mode 100644 index 0000000000000000000000000000000000000000..b3b8f5f8f1a3d57af74571d2b4b8a89343716dd9 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Test2.pm @@ -0,0 +1,213 @@ +package Test2; +use strict; +use warnings; + +our $VERSION = '1.302210'; + + +1; + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Test2 - Framework for writing test tools that all work together. + +=head1 DESCRIPTION + +Test2 is a new testing framework produced by forking L, +completely refactoring it, adding many new features and capabilities. + +=head2 WHAT IS NEW? + +=over 4 + +=item Easier to test new testing tools. + +From the beginning Test2 was built with introspection capabilities. With +Test::Builder it was difficult at best to capture test tool output for +verification. Test2 Makes it easy with C. + +=item Better diagnostics capabilities. + +Test2 uses an L object to track filename, line number, and +tool details. This object greatly simplifies tracking for where errors should +be reported. + +=item Event driven. + +Test2 based tools produce events which get passed through a processing system +before being output by a formatter. This event system allows for rich plugin +and extension support. + +=item More complete API. + +Test::Builder only provided a handful of methods for generating lines of TAP. +Test2 took inventory of everything people were doing with Test::Builder that +required hacking it up. Test2 made public API functions for nearly all the +desired functionality people didn't previously have. + +=item Support for output other than TAP. + +Test::Builder assumed everything would end up as TAP. Test2 makes no such +assumption. Test2 provides ways for you to specify alternative and custom +formatters. + +=item Subtest implementation is more sane. + +The Test::Builder implementation of subtests was certifiably insane. Test2 uses +a stacked event hub system that greatly improves how subtests are implemented. + +=item Support for threading/forking. + +Test2 support for forking and threading can be turned on using L. +Once turned on threading and forking operate sanely and work as one would +expect. + +=back + +=head1 GETTING STARTED + +If you are interested in writing tests using new tools then you should look at +L. L is a separate cpan distribution that contains +many tools implemented on Test2. + +If you are interested in writing new tools you should take a look at +L first. + +=head1 NAMESPACE LAYOUT + +This describes the namespace layout for the Test2 ecosystem. Not all the +namespaces listed here are part of the Test2 distribution, some are implemented +in L. + +=head2 Test2::Tools:: + +This namespace is for sets of tools. Modules in this namespace should export +tools like C and C. Most things written for Test2 should go here. +Modules in this namespace B export subs from other tools. See the +L namespace if you want to do that. + +=head2 Test2::Plugin:: + +This namespace is for plugins. Plugins are modules that change or enhance the +behavior of Test2. An example of a plugin is a module that sets the encoding to +utf8 globally. Another example is a module that causes a bail-out event after +the first test failure. + +=head2 Test2::Bundle:: + +This namespace is for bundles of tools and plugins. Loading one of these may +load multiple tools and plugins. Modules in this namespace should not implement +tools directly. In general modules in this namespace should load tools and +plugins, then re-export things into the consumers namespace. + +=head2 Test2::Require:: + +This namespace is for modules that cause a test to be skipped when conditions +do not allow it to run. Examples would be modules that skip the test on older +perls, or when non-essential modules have not been installed. + +=head2 Test2::Formatter:: + +Formatters live under this namespace. L is the only +formatter currently. It is acceptable for third party distributions to create +new formatters under this namespace. + +=head2 Test2::Event:: + +Events live under this namespace. It is considered acceptable for third party +distributions to add new event types in this namespace. + +=head2 Test2::Hub:: + +Hub subclasses (and some hub utility objects) live under this namespace. It is +perfectly reasonable for third party distributions to add new hub subclasses in +this namespace. + +=head2 Test2::IPC:: + +The IPC subsystem lives in this namespace. There are not many good reasons to +add anything to this namespace, with exception of IPC drivers. + +=head3 Test2::IPC::Driver:: + +IPC drivers live in this namespace. It is fine to create new IPC drivers and to +put them in this namespace. + +=head2 Test2::Util:: + +This namespace is for general utilities used by testing tools. Please be +considerate when adding new modules to this namespace. + +=head2 Test2::API:: + +This is for Test2 API and related packages. + +=head2 Test2:: + +The Test2:: namespace is intended for extensions and frameworks. Tools, +Plugins, etc should not go directly into this namespace. However extensions +that are used to build tools and plugins may go here. + +In short: If the module exports anything that should be run directly by a test +script it should probably NOT go directly into C. + +=head1 SEE ALSO + +L - Primary API functions. + +L - Detailed documentation of the context object. + +L - The IPC system used for threading/fork support. + +L - Formatters such as TAP live here. + +L - Events live in this namespace. + +L - All events eventually funnel through a hub. Custom hubs are how +C and C are implemented. + +=head1 CONTACTING US + +Many Test2 developers and users lurk on L and +L. We also have a slack team that can be joined +by anyone with an C<@cpan.org> email address L +If you do not have an C<@cpan.org> email you can ask for a slack invite by +emailing Chad Granum Eexodist@cpan.orgE. + +=head1 SOURCE + +The source code repository for Test2 can be found at +L. + +=head1 MAINTAINERS + +=over 4 + +=item Chad Granum Eexodist@cpan.orgE + +=back + +=head1 AUTHORS + +=over 4 + +=item Chad Granum Eexodist@cpan.orgE + +=back + +=head1 COPYRIGHT + +Copyright Chad Granum Eexodist@cpan.orgE. + +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +See L + +=cut diff --git a/git/usr/share/perl5/core_perl/Thread.pm b/git/usr/share/perl5/core_perl/Thread.pm new file mode 100644 index 0000000000000000000000000000000000000000..3c1ac9e21bdb2573a3a0b0032576d8a5f37a8572 --- /dev/null +++ b/git/usr/share/perl5/core_perl/Thread.pm @@ -0,0 +1,273 @@ +package Thread; + +use strict; +use warnings; +no warnings 'redefine'; + +our $VERSION = '3.06'; +$VERSION = eval $VERSION; + +BEGIN { + use Config; + if (! $Config{useithreads}) { + die("This Perl not built to support threads\n"); + } +} + +use threads 'yield'; +use threads::shared; + +require Exporter; +our @ISA = qw(Exporter threads); +our @EXPORT = qw(cond_wait cond_broadcast cond_signal); +our @EXPORT_OK = qw(async yield); + +sub async (&;@) { return Thread->new(shift); } + +sub done { return ! shift->is_running(); } + +sub eval { die("'eval' not implemented with 'ithreads'\n"); }; +sub flags { die("'flags' not implemented with 'ithreads'\n"); }; + +1; + +__END__ + +=head1 NAME + +Thread - Manipulate threads in Perl (for old code only) + +=head1 DEPRECATED + +The C module served as the frontend to the old-style thread model, +called I<5005threads>, that was introduced in release 5.005. That model was +deprecated, and has been removed in version 5.10. + +For old code and interim backwards compatibility, the C module has +been reworked to function as a frontend for the new interpreter threads +(I) model. However, some previous functionality is not available. +Further, the data sharing models between the two thread models are completely +different, and anything to do with data sharing has to be thought differently. +With I, you must explicitly C variables between the +threads. + +You are strongly encouraged to migrate any existing threaded code to the new +model (i.e., use the C and C modules) as soon as +possible. + +=head1 HISTORY + +In Perl 5.005, the thread model was that all data is implicitly shared, and +shared access to data has to be explicitly synchronized. This model is called +I<5005threads>. + +In Perl 5.6, a new model was introduced in which all data is thread local and +shared access to data has to be explicitly declared. This model is called +I, for "interpreter threads". + +In Perl 5.6, the I model was not available as a public API; only as +an internal API that was available for extension writers, and to implement +fork() emulation on Win32 platforms. + +In Perl 5.8, the I model became available through the C +module, and the I<5005threads> model was deprecated. + +In Perl 5.10, the I<5005threads> model was removed from the Perl interpreter. + +=head1 SYNOPSIS + + use Thread qw(:DEFAULT async yield); + + my $t = Thread->new(\&start_sub, @start_args); + + $result = $t->join; + $t->detach; + + if ($t->done) { + $t->join; + } + + if($t->equal($another_thread)) { + # ... + } + + yield(); + + my $tid = Thread->self->tid; + + lock($scalar); + lock(@array); + lock(%hash); + + my @list = Thread->list; + +=head1 DESCRIPTION + +The C module provides multithreading support for Perl. + +=head1 FUNCTIONS + +=over 8 + +=item $thread = Thread->new(\&start_sub) + +=item $thread = Thread->new(\&start_sub, LIST) + +C starts a new thread of execution in the referenced subroutine. The +optional list is passed as parameters to the subroutine. Execution +continues in both the subroutine and the code after the C call. + +C<< Thread->new >> returns a thread object representing the newly created +thread. + +=item lock VARIABLE + +C places a lock on a variable until the lock goes out of scope. + +If the variable is locked by another thread, the C call will +block until it's available. C is recursive, so multiple calls +to C are safe--the variable will remain locked until the +outermost lock on the variable goes out of scope. + +Locks on variables only affect C calls--they do I affect normal +access to a variable. (Locks on subs are different, and covered in a bit.) +If you really, I want locks to block access, then go ahead and tie +them to something and manage this yourself. This is done on purpose. +While managing access to variables is a good thing, Perl doesn't force +you out of its living room... + +If a container object, such as a hash or array, is locked, all the +elements of that container are not locked. For example, if a thread +does a C, any other thread doing a C won't +block. + +Finally, C will traverse up references exactly I level. +C is equivalent to C, while C is not. + +=item async BLOCK; + +C creates a thread to execute the block immediately following +it. This block is treated as an anonymous sub, and so must have a +semi-colon after the closing brace. Like C<< Thread->new >>, C +returns a thread object. + +=item Thread->self + +The Cself> function returns a thread object that represents +the thread making the Cself> call. + +=item Thread->list + +Returns a list of all non-joined, non-detached Thread objects. + +=item cond_wait VARIABLE + +The C function takes a B variable as +a parameter, unlocks the variable, and blocks until another thread +does a C or C for that same locked +variable. The variable that C blocked on is relocked +after the C is satisfied. If there are multiple threads +Cing on the same variable, all but one will reblock waiting +to re-acquire the lock on the variable. (So if you're only using +C for synchronization, give up the lock as soon as +possible.) + +=item cond_signal VARIABLE + +The C function takes a locked variable as a parameter and +unblocks one thread that's Cing on that variable. If more than +one thread is blocked in a C on that variable, only one (and +which one is indeterminate) will be unblocked. + +If there are no threads blocked in a C on the variable, +the signal is discarded. + +=item cond_broadcast VARIABLE + +The C function works similarly to C. +C, though, will unblock B the threads that are +blocked in a C on the locked variable, rather than only +one. + +=item yield + +The C function allows another thread to take control of the +CPU. The exact results are implementation-dependent. + +=back + +=head1 METHODS + +=over 8 + +=item join + +C waits for a thread to end and returns any values the thread +exited with. C will block until the thread has ended, though +it won't block if the thread has already terminated. + +If the thread being Ced Cd, the error it died with will +be returned at this time. If you don't want the thread performing +the C to die as well, you should either wrap the C in +an C or use the C thread method instead of C. + +=item detach + +C tells a thread that it is never going to be joined i.e. +that all traces of its existence can be removed once it stops running. +Errors in detached threads will not be visible anywhere - if you want +to catch them, you should use $SIG{__DIE__} or something like that. + +=item equal + +C tests whether two thread objects represent the same thread and +returns true if they do. + +=item tid + +The C method returns the tid of a thread. The tid is +a monotonically increasing integer assigned when a thread is +created. The main thread of a program will have a tid of zero, +while subsequent threads will have tids assigned starting with one. + +=item done + +The C method returns true if the thread you're checking has +finished, and false otherwise. + +=back + +=head1 DEFUNCT + +The following were implemented with I<5005threads>, but are no longer +available with I. + +=over 8 + +=item lock(\&sub) + +With 5005threads, you could also C a sub such that any calls to that sub +from another thread would block until the lock was released. + +Also, subroutines could be declared with the C<:locked> attribute which would +serialize access to the subroutine, but allowed different threads +non-simultaneous access. + +=item eval + +The C method wrapped an C around a C, and so waited for a +thread to exit, passing along any values the thread might have returned and +placing any errors into C<$@>. + +=item flags + +The C method returned the flags for the thread - an integer value +corresponding to the internal flags for the thread. + +=back + +=head1 SEE ALSO + +L, L, L, L + +=cut diff --git a/git/usr/share/perl5/core_perl/UNIVERSAL.pm b/git/usr/share/perl5/core_perl/UNIVERSAL.pm new file mode 100644 index 0000000000000000000000000000000000000000..b4a7a48f421054c868a064fda808153be4042b6f --- /dev/null +++ b/git/usr/share/perl5/core_perl/UNIVERSAL.pm @@ -0,0 +1,196 @@ +package UNIVERSAL; + +our $VERSION = '1.17'; + +# UNIVERSAL.pm should not contain any methods/subs, they +# are all defined in universal.c + +1; +__END__ + +=head1 NAME + +UNIVERSAL - base class for ALL classes (blessed references) + +=head1 SYNOPSIS + + my $obj_is_io = $fd->isa("IO::Handle"); + my $cls_is_io = Class->isa("IO::Handle"); + + my $obj_does_log = $obj->DOES("Logger"); + my $cls_does_log = Class->DOES("Logger"); + + my $obj_sub = $obj->can("print"); + my $cls_sub = Class->can("print"); + + my $eval_sub = eval { $ref->can("fandango") }; + my $ver = $obj->VERSION; + + # but never do this! + my $is_io = UNIVERSAL::isa($fd, "IO::Handle"); + my $sub = UNIVERSAL::can($obj, "print"); + +=head1 DESCRIPTION + +C is the base class from which all blessed references inherit. +See L. + +C provides the following methods: + +=over 4 + +=item C<< $obj->isa( TYPE ) >> + +=item C<< CLASS->isa( TYPE ) >> + +=item C<< eval { VAL->isa( TYPE ) } >> + +Where + +=over 4 + +=item C + +is a package name + +=item C<$obj> + +is a blessed reference or a package name + +=item C + +is a package name + +=item C + +is any of the above or an unblessed reference + +=back + +When used as an instance or class method (C<< $obj->isa( TYPE ) >>), +C returns I if $obj is blessed into package C or +inherits from package C. + +When used as a class method (C<< CLASS->isa( TYPE ) >>, sometimes +referred to as a static method), C returns I if C +inherits from (or is itself) the name of the package C or +inherits from package C. + +If you're not sure what you have (the C case), wrap the method call in an +C block to catch the exception if C is undefined or an unblessed +reference. The L operator|perlop/"Class Instance Operator"> is an +alternative that simply returns false in this case, so the C is not +needed. + +If you want to be sure that you're calling C on an instance, not a class, +check the invocant with C from L first: + + use Scalar::Util 'blessed'; + + if ( blessed( $obj ) && $obj->isa("Some::Class") ) { + ... + } + +=item C<< $obj->DOES( ROLE ) >> + +=item C<< CLASS->DOES( ROLE ) >> + +C checks if the object or class performs the role C. A role is a +named group of specific behavior (often methods of particular names and +signatures), similar to a class, but not necessarily a complete class by +itself. For example, logging or serialization may be roles. + +C and C are similar, in that if either is true, you know that the +object or class on which you call the method can perform specific behavior. +However, C is different from C in that it does not care I the +invocand performs the operations, merely that it does. (C of course +mandates an inheritance relationship. Other relationships include aggregation, +delegation, and mocking.) + +By default, classes in Perl only perform the C role, as well as the +role of all classes in their inheritance. In other words, by default C +responds identically to C. + +There is a relationship between roles and classes, as each class implies the +existence of a role of the same name. There is also a relationship between +inheritance and roles, in that a subclass that inherits from an ancestor class +implicitly performs any roles its parent performs. Thus you can use C in +place of C safely, as it will return true in all places where C will +return true (provided that any overridden C I C methods behave +appropriately). + +=item C<< $obj->can( METHOD ) >> + +=item C<< CLASS->can( METHOD ) >> + +=item C<< eval { VAL->can( METHOD ) } >> + +C checks if the object or class has a method called C. If it does, +then it returns a reference to the sub. If it does not, then it returns +I. This includes methods inherited or imported by C<$obj>, C, or +C. + +C cannot know whether an object will be able to provide a method through +AUTOLOAD (unless the object's class has overridden C appropriately), so a +return value of I does not necessarily mean the object will not be able +to handle the method call. To get around this some module authors use a forward +declaration (see L) for methods they will handle via AUTOLOAD. For +such 'dummy' subs, C will still return a code reference, which, when +called, will fall through to the AUTOLOAD. If no suitable AUTOLOAD is provided, +calling the coderef will cause an error. + +You may call C as a class (static) method or an object method. + +Again, the same rule about having a valid invocand applies -- use an C +block or C if you need to be extra paranoid. + +=item C + +C will return the value of the variable C<$VERSION> in the +package the object is blessed into. If C is given then +it will do a comparison and die if the package version is not +greater than or equal to C, or if either C<$VERSION> or C +is not a "lax" version number (as defined by the L module). + +The return from C will actually be the stringified version object +using the package C<$VERSION> scalar, which is guaranteed to be equivalent +but may not be precisely the contents of the C<$VERSION> scalar. If you want +the actual contents of C<$VERSION>, use C<$CLASS::VERSION> instead. + +C can be called as either a class (static) method or an object +method. + +=back + +=head1 WARNINGS + +B C directly uses Perl's internal code for method lookup, and +C uses a very similar method and cache-ing strategy. This may cause +strange effects if the Perl code dynamically changes @ISA in any package. + +You may add other methods to the UNIVERSAL class via Perl or XS code. +You do not need to C to make these methods +available to your program (and you should not do so). + +=head1 EXPORTS + +None. + +Previous versions of this documentation suggested using C as +a function to determine the type of a reference: + + $yes = UNIVERSAL::isa($h, "HASH"); + $yes = UNIVERSAL::isa("Foo", "Bar"); + +The problem is that this code would I call an overridden C method in +any class. Instead, use C from L for the first case: + + use Scalar::Util 'reftype'; + + $yes = reftype( $h ) eq "HASH"; + +and the method form of C for the second: + + $yes = Foo->isa("Bar"); + +=cut diff --git a/git/usr/share/perl5/core_perl/XSLoader.pm b/git/usr/share/perl5/core_perl/XSLoader.pm new file mode 100644 index 0000000000000000000000000000000000000000..a671f24056d35447b911ee6627dc1e58548511a4 --- /dev/null +++ b/git/usr/share/perl5/core_perl/XSLoader.pm @@ -0,0 +1,375 @@ +# Generated from XSLoader_pm.PL (resolved %Config::Config value) +# This file is unique for every OS + +use strict; +no strict 'refs'; + +package XSLoader; + +our $VERSION = "0.32"; # remember to update version in POD! + +package DynaLoader; + +# No prizes for guessing why we don't say 'bootstrap DynaLoader;' here. +# NOTE: All dl_*.xs (including dl_none.xs) define a dl_error() XSUB +boot_DynaLoader('DynaLoader') if defined(&boot_DynaLoader) && + !defined(&dl_error); +package XSLoader; + +sub load { + package DynaLoader; + + my ($caller, $modlibname) = caller(); + my $module = $caller; + + if (@_) { + $module = $_[0]; + } else { + $_[0] = $module; + } + + # work with static linking too + my $boots = "$module\::bootstrap"; + goto &$boots if defined &$boots; + + goto \&XSLoader::bootstrap_inherit unless $module and defined &dl_load_file; + + my @modparts = split(/::/,$module); + my $modfname = $modparts[-1]; + my $modfname_orig = $modfname; # For .bs file search + + my $modpname = join('/',@modparts); + my $c = () = split(/::/,$caller,-1); + $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename + # Does this look like a relative path? + if ($modlibname !~ m{^(?:[A-Za-z]:)?[\\/]}) { + # Someone may have a #line directive that changes the file name, or + # may be calling XSLoader::load from inside a string eval. We cer- + # tainly do not want to go loading some code that is not in @INC, + # as it could be untrusted. + # + # We could just fall back to DynaLoader here, but then the rest of + # this function would go untested in the perl core, since all @INC + # paths are relative during testing. That would be a time bomb + # waiting to happen, since bugs could be introduced into the code. + # + # So look through @INC to see if $modlibname is in it. A rela- + # tive $modlibname is not a common occurrence, so this block is + # not hot code. + FOUND: { + for (@INC) { + if ($_ eq $modlibname) { + last FOUND; + } + } + # Not found. Fall back to DynaLoader. + goto \&XSLoader::bootstrap_inherit; + } + } + my $file = "$modlibname/auto/$modpname/$modfname.dll"; + +# print STDERR "XSLoader::load for $module ($file)\n" if $dl_debug; + + # N.B. The .bs file does not following the naming convention used + # by mod2fname, so use the unedited version of the name. + + my $bs = "$modlibname/auto/$modpname/$modfname_orig.bs"; + + # This calls DynaLoader::bootstrap, which will load the .bs file if present + goto \&XSLoader::bootstrap_inherit if not -f $file or -s $bs; + + my $bootname = "boot_$module"; + $bootname =~ s/\W/_/g; + @DynaLoader::dl_require_symbols = ($bootname); + + my $boot_symbol_ref; + + # Many dynamic extension loading problems will appear to come from + # this section of code: XYZ failed at line 123 of DynaLoader.pm. + # Often these errors are actually occurring in the initialisation + # C code of the extension XS file. Perl reports the error as being + # in this perl code simply because this was the last perl code + # it executed. + + my $libref = dl_load_file($file, 0) or do { + require Carp; + Carp::croak("Can't load '$file' for module $module: " . dl_error()); + }; + push(@DynaLoader::dl_librefs,$libref); # record loaded object + + $boot_symbol_ref = dl_find_symbol($libref, $bootname) or do { + require Carp; + Carp::croak("Can't find '$bootname' symbol in $file\n"); + }; + + push(@DynaLoader::dl_modules, $module); # record loaded module + + boot: + my $xs = dl_install_xsub($boots, $boot_symbol_ref, $file); + + # See comment block above + push(@DynaLoader::dl_shared_objects, $file); # record files loaded + return &$xs(@_); +} + +# Can't test with DynaLoader->can('bootstrap_inherit') when building in the +# core, as XSLoader gets built before DynaLoader. + +sub bootstrap_inherit { + require DynaLoader; + goto \&DynaLoader::bootstrap_inherit; +} + +1; + +__END__ + +=head1 NAME + +XSLoader - Dynamically load C libraries into Perl code + +=head1 VERSION + +Version 0.32 + +=head1 SYNOPSIS + + package YourPackage; + require XSLoader; + + XSLoader::load(__PACKAGE__, $VERSION); + +=head1 DESCRIPTION + +This module defines a standard I interface to the dynamic +linking mechanisms available on many platforms. Its primary purpose is +to implement cheap automatic dynamic loading of Perl modules. + +For a more complicated interface, see L. Many (most) +features of C are not implemented in C, like for +example the C, not honored by C. + +=head2 Migration from C + +A typical module using L starts like this: + + package YourPackage; + require DynaLoader; + + our @ISA = qw( OnePackage OtherPackage DynaLoader ); + our $VERSION = '0.01'; + __PACKAGE__->bootstrap($VERSION); + +Change this to + + package YourPackage; + use XSLoader; + + our @ISA = qw( OnePackage OtherPackage ); + our $VERSION = '0.01'; + XSLoader::load(__PACKAGE__, $VERSION); + +In other words: replace C by C, remove +C from C<@ISA>, change C by C. Do not +forget to quote the name of your package on the C line, +and add comma (C<,>) before the arguments (C<$VERSION> above). + +Of course, if C<@ISA> contained only C, there is no need to have +the C<@ISA> assignment at all; moreover, if instead of C one uses the +more backward-compatible + + use vars qw($VERSION @ISA); + +one can remove this reference to C<@ISA> together with the C<@ISA> assignment. + +If no C<$VERSION> was specified on the C line, the last line becomes + + XSLoader::load(__PACKAGE__); + +in which case it can be further simplified to + + XSLoader::load(); + +as C will use C to determine the package. + +=head2 Backward compatible boilerplate + +If you want to have your cake and eat it too, you need a more complicated +boilerplate. + + package YourPackage; + + our @ISA = qw( OnePackage OtherPackage ); + our $VERSION = '0.01'; + eval { + require XSLoader; + XSLoader::load(__PACKAGE__, $VERSION); + 1; + } or do { + require DynaLoader; + push @ISA, 'DynaLoader'; + __PACKAGE__->bootstrap($VERSION); + }; + +The parentheses about C arguments are needed since we replaced +C by C, so the compiler does not know that a function +C is present. + +This boilerplate uses the low-overhead C if present; if used with +an antique Perl which has no C, it falls back to using C. + +=head1 Order of initialization: early load() + +I section in your XS file (see L). +What is described here is equally applicable to the L +interface.> + +A sufficiently complicated module using XS would have both Perl code (defined +in F) and XS code (defined in F). If this +Perl code makes calls into this XS code, and/or this XS code makes calls to +the Perl code, one should be careful with the order of initialization. + +The call to C (or C) calls the module's +bootstrap code. For modules build by F (nearly all modules) this +has three side effects: + +=over + +=item * + +A sanity check is done to ensure that the versions of the F<.pm> and the +(compiled) F<.xs> parts are compatible. If C<$VERSION> was specified, this +is used for the check. If not specified, it defaults to +C<$XS_VERSION // $VERSION> (in the module's namespace) + +=item * + +the XSUBs are made accessible from Perl + +=item * + +if a C section was present in the F<.xs> file, the code there is called. + +=back + +Consequently, if the code in the F<.pm> file makes calls to these XSUBs, it is +convenient to have XSUBs installed before the Perl code is defined; for +example, this makes prototypes for XSUBs visible to this Perl code. +Alternatively, if the C section makes calls to Perl functions (or +uses Perl variables) defined in the F<.pm> file, they must be defined prior to +the call to C (or C). + +The first situation being much more frequent, it makes sense to rewrite the +boilerplate as + + package YourPackage; + use XSLoader; + our ($VERSION, @ISA); + + BEGIN { + @ISA = qw( OnePackage OtherPackage ); + $VERSION = '0.01'; + + # Put Perl code used in the BOOT: section here + + XSLoader::load(__PACKAGE__, $VERSION); + } + + # Put Perl code making calls into XSUBs here + +=head2 The most hairy case + +If the interdependence of your C section and Perl code is +more complicated than this (e.g., the C section makes calls to Perl +functions which make calls to XSUBs with prototypes), get rid of the C +section altogether. Replace it with a function C, and call it like +this: + + package YourPackage; + use XSLoader; + our ($VERSION, @ISA); + + BEGIN { + @ISA = qw( OnePackage OtherPackage ); + $VERSION = '0.01'; + XSLoader::load(__PACKAGE__, $VERSION); + } + + # Put Perl code used in onBOOT() function here; calls to XSUBs are + # prototype-checked. + + onBOOT; + + # Put Perl initialization code assuming that XS is initialized here + + +=head1 DIAGNOSTICS + +=over + +=item C + +B<(F)> The bootstrap symbol could not be found in the extension module. + +=item C + +B<(F)> The loading or initialisation of the extension module failed. +The detailed error follows. + +=item C + +B<(W)> As the message says, some symbols stay undefined although the +extension module was correctly loaded and initialised. The list of undefined +symbols follows. + +=back + +=head1 LIMITATIONS + +To reduce the overhead as much as possible, only one possible location +is checked to find the extension DLL (this location is where C +would put the DLL). If not found, the search for the DLL is transparently +delegated to C, which looks for the DLL along the C<@INC> list. + +In particular, this is applicable to the structure of C<@INC> used for testing +not-yet-installed extensions. This means that running uninstalled extensions +may have much more overhead than running the same extensions after +C. + + +=head1 KNOWN BUGS + +The new simpler way to call C with no arguments at all +does not work on Perl 5.8.4 and 5.8.5. + + +=head1 BUGS + +Please report any bugs or feature requests via the perlbug(1) utility. + + +=head1 SEE ALSO + +L + + +=head1 AUTHORS + +Ilya Zakharevich originally extracted C from C. + +CPAN version is currently maintained by SEbastien Aperghis-Tramoni +Esebastien@aperghis.netE. + +Previous maintainer was Michael G Schwern . + + +=head1 COPYRIGHT & LICENSE + +Copyright (C) 1990-2011 by Larry Wall and others. + +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/core_perl/_charnames.pm b/git/usr/share/perl5/core_perl/_charnames.pm new file mode 100644 index 0000000000000000000000000000000000000000..909109d624b2f5d7eaefb5fa795f95108ef23f64 --- /dev/null +++ b/git/usr/share/perl5/core_perl/_charnames.pm @@ -0,0 +1,884 @@ +# !!!!!!! INTERNAL PERL USE ONLY !!!!!!! +# This helper module is for internal use by core Perl only. This module is +# subject to change or removal at any time without notice. Don't use it +# directly. Use the public module instead. + +package _charnames; +use strict; +use warnings; +our $VERSION = '1.50'; +use unicore::Name; # mktables-generated algorithmically-defined names + +use bytes (); # for $bytes::hint_bits +use re "/aa"; # Everything in here should be ASCII + +$Carp::Internal{ (__PACKAGE__) } = 1; + +# Translate between Unicode character names and their code points. This is a +# submodule of package , used to allow \N{...} to be autoloaded, +# but it was decided not to autoload the various functions in charnames; the +# splitting allows this behavior. +# +# The official names with their code points are stored in a table in +# lib/unicore/Name.pl which is read in as a large string (almost 3/4 Mb in +# Unicode 6.0). Each code point sequence appears on a line by itself, with +# its corresponding name occupying the next line in the string. (Some of the +# CJK and the Hangul syllable names are instead determined algorithmically via +# subroutines stored instead in lib/unicore/Name.pm). Because of the large +# size of this table, it isn't converted into hashes for faster lookup. +# +# But, user defined aliases are stored in their own hashes, as are Perl +# extensions to the official names. These are checked first before looking at +# the official table. +# +# Basically, the table is grepped for the input code point (viacode()) or +# name (the other functions), and the corresponding value on the next or +# previous line is returned. The grepping is done by turning the input into a +# regular expression. Thus, the same table does double duty, used by both +# name and code point lookup. (If we were to have hashes, we would need two, +# one for each lookup direction.) +# +# For loose name matching, the logical thing would be to have a table +# with all the ignorable characters squeezed out, and then grep it with the +# similiarly-squeezed input name. (And this is in fact how the lookups are +# done with the small Perl extension hashes.) But since we need to be able to +# go from code point to official name, the original table would still need to +# exist. Due to the large size of the table, it was decided to not read +# another very large string into memory for a second table. Instead, the +# regular expression of the input name is modified to have optional spaces and +# dashes between characters. For example, in strict matching, the regular +# expression would be: +# qr/^DIGIT ONE$/m +# Under loose matching, the blank would be squeezed out, and the re would be: +# qr/^D[- ]?I[- ]?G[- ]?I[- ]?T[- ]?O[- ]?N[- ]?E$/m +# which matches a blank or dash between any characters in the official table. +# +# This is also how script lookup is done. Basically the re looks like +# qr/ (?:LATIN|GREEK|CYRILLIC) (?:SMALL )?LETTER $name/ +# where $name is the loose or strict regex for the remainder of the name. + +# The hashes are stored as utf8 strings. This makes it easier to deal with +# sequences. I (khw) also tried making Name.pl utf8, but it slowed things +# down by a factor of 7. I then tried making Name.pl store the utf8 +# equivalents but not calling them utf8. That led to similar speed as leaving +# it alone, but since that is harder for a human to parse, I left it as-is. + +my %system_aliases = ( + + 'SINGLE-SHIFT 2' => chr utf8::unicode_to_native(0x8E), + 'SINGLE-SHIFT 3' => chr utf8::unicode_to_native(0x8F), + 'PRIVATE USE 1' => chr utf8::unicode_to_native(0x91), + 'PRIVATE USE 2' => chr utf8::unicode_to_native(0x92), +); + +# These are the aliases above that differ under :loose and :full matching +# because the :full versions have blanks or hyphens in them. +#my %loose_system_aliases = ( +#); + +#my %deprecated_aliases; +#$deprecated_aliases{'BELL'} = chr utf8::unicode_to_native(0x07) if $^V lt v5.17.0; + +#my %loose_deprecated_aliases = ( +#); + +# These are special cased in :loose matching, differing only in a medial +# hyphen +my $HANGUL_JUNGSEONG_O_E_utf8 = chr 0x1180; +my $HANGUL_JUNGSEONG_OE_utf8 = chr 0x116C; + + +my $txt; # The table of official character names + +my %full_names_cache; # Holds already-looked-up names, so don't have to +# re-look them up again. The previous versions of charnames had scoping +# bugs. For example if we use script A in one scope and find and cache +# what Z resolves to, we can't use that cache in a different scope that +# uses script B instead of A, as Z might be an entirely different letter +# there; or there might be different aliases in effect in different +# scopes, or :short may be in effect or not effect in different scopes, +# or various combinations thereof. This was solved in this version +# mostly by moving things to %^H. But some things couldn't be moved +# there. One of them was the cache of runtime looked-up names, in part +# because %^H is read-only at runtime. I (khw) don't know why the cache +# was run-time only in the previous versions: perhaps oversight; perhaps +# that compile time looking doesn't happen in a loop so didn't think it +# was worthwhile; perhaps not wanting to make the cache too large. But +# I decided to make it compile time as well; this could easily be +# changed. +# Anyway, this hash is not scoped, and is added to at runtime. It +# doesn't have scoping problems because the data in it is restricted to +# official names, which are always invariant, and we only set it and +# look at it at during :full lookups, so is unaffected by any other +# scoped options. I put this in to maintain parity with the older +# version. If desired, a %short_names cache could also be made, as well +# as one for each script, say in %script_names_cache, with each key +# being a hash for a script named in a 'use charnames' statement. I +# decided not to do that for now, just because it's added complication, +# and because I'm just trying to maintain parity, not extend it. + +# Like %full_names_cache, but for use when :loose is in effect. There needs +# to be two caches because :loose may not be in effect for a scope, and a +# loose name could inappropriately be returned when only exact matching is +# called for. +my %loose_names_cache; + +# Designed so that test decimal first, and then hex. Leading zeros +# imply non-decimal, as do non-[0-9] +my $decimal_qr = qr/^[1-9]\d*$/; + +# Returns the hex number in $1. +my $hex_qr = qr/^(?:[Uu]\+|0[xX])?([[:xdigit:]]+)$/; + +sub croak +{ + require Carp; goto &Carp::croak; +} # croak + +sub carp +{ + require Carp; goto &Carp::carp; +} # carp + +sub populate_txt() +{ + return if $txt; + + $txt = do "unicore/Name.pl"; + Internals::SvREADONLY($txt, 1); +} + +sub alias (@) # Set up a single alias +{ + my @errors; + my $nbsp = chr utf8::unicode_to_native(0xA0); + + my $alias = ref $_[0] ? $_[0] : { @_ }; + foreach my $name (sort keys %$alias) { # Sort only because it helps having + # deterministic output for + # t/lib/charnames/alias + my $value = $alias->{$name}; + next unless defined $value; # Omit if screwed up. + + # Is slightly slower to just after this statement see if it is + # decimal, since we already know it is after having converted from + # hex, but makes the code easier to maintain, and is called + # infrequently, only at compile-time + if ($value !~ $decimal_qr && $value =~ $hex_qr) { + my $temp = CORE::hex $1; + $temp = utf8::unicode_to_native($temp) if $value =~ /^[Uu]\+/; + $value = $temp; + } + if ($value =~ $decimal_qr) { + no warnings qw(non_unicode surrogate nonchar); # Allow any of these + $^H{charnames_ord_aliases}{$name} = chr $value; + + # Use a canonical form. + $^H{charnames_inverse_ords}{sprintf("%05X", $value)} = $name; + } + else { + my $ok_portion = ""; + $ok_portion = $1 if $name =~ / ^ ( + \p{_Perl_Charname_Begin} + \p{_Perl_Charname_Continue}* + ) /x; + + # If the name was fully correct, the above should have matched all of + # it. + if (length $ok_portion < length $name) { + my $first_bad = substr($name, length($ok_portion), 1); + push @errors, "Invalid character in charnames alias definition; " + . "marked by <-- HERE in '$ok_portion$first_bad<-- HERE " + . substr($name, length($ok_portion) + 1) + . "'"; + } + else { + if ($name =~ / ( .* \s ) ( \s* ) $ /x) { + push @errors, "charnames alias definitions may not contain " + . "trailing white-space; marked by <-- HERE in " + . "'$1 <-- HERE " . $2 . "'"; + next; + } + + # Use '+' instead of '*' in this regex, because any trailing + # blanks have already been found + if ($name =~ / ( .*? \s{2} ) ( .+ ) /x) { + push @errors, "charnames alias definitions may not contain a " + . "sequence of multiple spaces; marked by <-- HERE " + . "in '$1 <-- HERE " . $2 . "'"; + next; + } + + $^H{charnames_name_aliases}{$name} = $value; + } + } + } + + # We find and output all errors from this :alias definition, rather than + # failing on the first one, so fewer runs are needed to get it to compile + if (@errors) { + croak join "\n", @errors; + } + + return; +} # alias + +sub not_legal_use_bytes_msg { + my ($name, $utf8) = @_; + my $return; + + if (length($utf8) == 1) { + $return = sprintf("Character 0x%04x with name '%s' is", ord $utf8, $name); + } else { + $return = sprintf("String with name '%s' (and ordinals %s) contains character(s)", $name, join(" ", map { sprintf "0x%04X", ord $_ } split(//, $utf8))); + } + return $return . " above 0xFF with 'use bytes' in effect"; +} + +sub alias_file ($) # Reads a file containing alias definitions +{ + require File::Spec; + my ($arg, $file) = @_; + if (-f $arg && File::Spec->file_name_is_absolute ($arg)) { + $file = $arg; + } + elsif ($arg =~ m/ ^ \p{_Perl_IDStart} \p{_Perl_IDCont}* $/x) { + $file = "unicore/${arg}_alias.pl"; + } + else { + croak "Charnames alias file names can only have identifier characters"; + } + if (my @alias = do $file) { + @alias == 1 && !defined $alias[0] and + croak "$file cannot be used as alias file for charnames"; + @alias % 2 and + croak "$file did not return a (valid) list of alias pairs"; + alias (@alias); + return (1); + } + 0; +} # alias_file + +# For use when don't import anything. This structure must be kept in +# sync with the one that import() fills up. +my %dummy_H = ( + charnames_stringified_names => "", + charnames_stringified_ords => "", + charnames_scripts => "", + charnames_full => 1, + charnames_loose => 0, + charnames_short => 0, + ); + + +sub lookup_name ($$$;$) { + my ($name, $wants_ord, $runtime, $regex_loose) = @_; + $regex_loose //= 0; + + # Lookup the name or sequence $name in the tables. If $wants_ord is false, + # returns the string equivalent of $name; if true, returns the ordinal value + # instead, but in this case $name must not be a sequence; otherwise undef is + # returned and a warning raised. $runtime is 0 if compiletime, otherwise + # gives the number of stack frames to go back to get the application caller + # info. + # If $name is not found, returns undef in runtime with no warning; and in + # compiletime, the Unicode replacement character, with a warning. + + # It looks first in the aliases, then in the large table of official Unicode + # names. + + my $result; # The string result + my $save_input; + + if ($runtime && ! $regex_loose) { + + my $hints_ref = (caller($runtime))[10]; + + # If we didn't import anything (which happens with 'use charnames ()', + # substitute a dummy structure. + $hints_ref = \%dummy_H if ! defined $hints_ref + || (! defined $hints_ref->{charnames_full} + && ! defined $hints_ref->{charnames_loose}); + + # At runtime, but currently not at compile time, %^H gets + # stringified, so un-stringify back to the original data structures. + # These get thrown away by perl before the next invocation + # Also fill in the hash with the non-stringified data. + # N.B. New fields must be also added to %dummy_H + + %{$^H{charnames_name_aliases}} = split ',', + $hints_ref->{charnames_stringified_names}; + %{$^H{charnames_ord_aliases}} = split ',', + $hints_ref->{charnames_stringified_ords}; + $^H{charnames_scripts} = $hints_ref->{charnames_scripts}; + $^H{charnames_full} = $hints_ref->{charnames_full}; + $^H{charnames_loose} = $hints_ref->{charnames_loose}; + $^H{charnames_short} = $hints_ref->{charnames_short}; + } + + my $loose = $regex_loose || $^H{charnames_loose}; + my $lookup_name; # Input name suitably modified for grepping for in the + # table + + # User alias should be checked first or else can't override ours, and if we + # were to add any, could conflict with theirs. + if (! $regex_loose && exists $^H{charnames_ord_aliases}{$name}) { + $result = $^H{charnames_ord_aliases}{$name}; + } + elsif (! $regex_loose && exists $^H{charnames_name_aliases}{$name}) { + $name = $^H{charnames_name_aliases}{$name}; + $save_input = $lookup_name = $name; # Cache the result for any error + # message + # The aliases are documented to not match loosely, so change loose match + # into full. + if ($loose) { + $loose = 0; + $^H{charnames_full} = 1; + } + } + else { + + # Here, not a user alias. That means that loose matching may be in + # effect; will have to modify the input name. + $lookup_name = $name; + if ($loose) { + $lookup_name = uc $lookup_name; + + # Squeeze out all underscores + $lookup_name =~ s/_//g; + + # Remove all medial hyphens + $lookup_name =~ s/ (?<= \S ) - (?= \S )//gx; + + # Squeeze out all spaces + $lookup_name =~ s/\s//g; + } + + # Here, $lookup_name has been modified as necessary for looking in the + # hashes. Check the system alias files next. Most of these aliases are + # the same for both strict and loose matching. To save space, the ones + # which differ are in their own separate hash, which is checked if loose + # matching is selected and the regular match fails. To save time, the + # loose hashes could be expanded to include all aliases, and there would + # only have to be one check. But if someone specifies :loose, they are + # interested in convenience over speed, and the time for this second check + # is miniscule compared to the rest of the routine. + if (exists $system_aliases{$lookup_name}) { + $result = $system_aliases{$lookup_name}; + } + # There are currently no entries in this hash, so don't waste time looking + # for them. But the code is retained for the unlikely possibility that + # some will be added in the future. +# elsif ($loose && exists $loose_system_aliases{$lookup_name}) { +# $result = $loose_system_aliases{$lookup_name}; +# } +# if (exists $deprecated_aliases{$lookup_name}) { +# require warnings; +# warnings::warnif('deprecated', +# "Unicode character name \"$name\" is deprecated, use \"" +# . viacode(ord $deprecated_aliases{$lookup_name}) +# . "\" instead"); +# $result = $deprecated_aliases{$lookup_name}; +# } + # There are currently no entries in this hash, so don't waste time looking + # for them. But the code is retained for the unlikely possibility that + # some will be added in the future. +# elsif ($loose && exists $loose_deprecated_aliases{$lookup_name}) { +# require warnings; +# warnings::warnif('deprecated', +# "Unicode character name \"$name\" is deprecated, use \"" +# . viacode(ord $loose_deprecated_aliases{$lookup_name}) +# . "\" instead"); +# $result = $loose_deprecated_aliases{$lookup_name}; +# } + } + + my @off; # Offsets into table of pattern match begin and end + + # If haven't found it yet... + if (! defined $result) { + + # See if has looked this input up earlier. + if (! $loose && $^H{charnames_full} && exists $full_names_cache{$name}) { + $result = $full_names_cache{$name}; + } + elsif ($loose && exists $loose_names_cache{$name}) { + $result = $loose_names_cache{$name}; + } + else { # Here, must do a look-up + + # If full or loose matching succeeded, points to where to cache the + # result + my $cache_ref; + + ## Suck in the code/name list as a big string. + ## Entries look like: + ## "00052\nLATIN CAPITAL LETTER R\n\n" + # or + # "0052 0303\nLATIN CAPITAL LETTER R WITH TILDE\n\n" + populate_txt() unless $txt; + + ## @off will hold the index into the code/name string of the start and + ## end of the name as we find it. + + ## If :loose, look for a loose match; if :full, look for the name + ## exactly + # First, see if the name is one which is algorithmically determinable. + # The subroutine is included in Name.pl. The table contained in + # $txt doesn't contain these. Experiments show that checking + # for these before checking for the regular names has no + # noticeable impact on performance for the regular names, but + # the other way around slows down finding these immensely. + # Algorithmically determinables are not placed in the cache because + # that uses up memory, and finding these again is fast. + if ( ($loose || $^H{charnames_full}) + && (defined (my $ord = charnames::name_to_code_point_special($lookup_name, $loose)))) + { + $result = chr $ord; + } + else { + + # Not algorithmically determinable; look up in the table. The name + # will be turned into a regex, so quote any meta characters. + $lookup_name = quotemeta $lookup_name; + + if ($loose) { + + # For loose matches, $lookup_name has already squeezed out the + # non-essential characters. We have to add in code to make the + # squeezed version match the non-squeezed equivalent in the table. + # The only remaining hyphens are ones that start or end a word in + # the original. They have been quoted in $lookup_name so they look + # like "\-". Change all other characters except the backslash + # quotes for any metacharacters, and the final character, so that + # e.g., COLON gets transformed into: /C[- ]?O[- ]?L[- ]?O[- ]?N/ + $lookup_name =~ s/ (?! \\ -) # Don't do this to the \- sequence + ( [^-\\] ) # Nor the "-" within that sequence, + # nor the "\" that quotes metachars, + # but otherwise put the char into $1 + (?=.) # And don't do it for the final char + /$1\[- \]?/gx; # And add an optional blank or + # '-' after each $1 char + + # Those remaining hyphens were originally at the beginning or end of + # a word, so they can match either a blank before or after, but not + # both. (Keep in mind that they have been quoted, so are a '\-' + # sequence) + $lookup_name =~ s/\\ -/(?:- | -)/xg; + } + + # Do the lookup in the full table if asked for, and if succeeds + # save the offsets and set where to cache the result. + if (($loose || $^H{charnames_full}) && $txt =~ /^$lookup_name$/m) { + @off = ($-[0], $+[0]); + $cache_ref = ($loose) ? \%loose_names_cache : \%full_names_cache; + } + elsif ($regex_loose) { + # Currently don't allow :short when this is set + return; + } + else { + + # Here, didn't look for, or didn't find the name. + # If :short is allowed, see if input is like "greek:Sigma". + # Keep in mind that $lookup_name has had the metas quoted. + my $scripts_trie = ""; + my $name_has_uppercase; + my @scripts; + if (($^H{charnames_short}) + && $lookup_name =~ /^ (?: \\ \s)* # Quoted space + (.+?) # $1 = the script + (?: \\ \s)* + \\ : # Quoted colon + (?: \\ \s)* + (.+?) # $2 = the name + (?: \\ \s)* $ + /xs) + { + # Even in non-loose matching, the script traditionally has been + # case insensitive + $scripts_trie = "\U$1"; + $lookup_name = $2; + + # Use original name to find its input casing, but ignore the + # script part of that to make the determination. + $save_input = $name if ! defined $save_input; + $name =~ s/.*?://; + $name_has_uppercase = $name =~ /[[:upper:]]/; + } + else { # Otherwise look in allowed scripts + # We want to search first by script name then by letter name, so that + # if the user imported `use charnames qw(arabic hebrew)` and asked for + # \N{alef} they get ARABIC LETTER ALEF, and if they imported + # `... (hebrew arabic)` and ask for \N{alef} they get HEBREW LETTER ALEF. + # We can't rely on the regex engine to preserve ordering like that, so + # pick the pipe-seperated string apart so we can iterate over it. + @scripts = split(/\|/, $^H{charnames_scripts}); + + # Use original name to find its input casing + $name_has_uppercase = $name =~ /[[:upper:]]/; + } + my $case = $name_has_uppercase ? "CAPITAL" : "SMALL"; + + if(@scripts) { + SCRIPTS: foreach my $script (@scripts) { + if($txt =~ /^ (?: $script ) \ (?:$case\ )? LETTER \ \U$lookup_name $/xm) { + @off = ($-[0], $+[0]); + last SCRIPTS; + } + } + return unless(@off); + } + else { + return if (! $scripts_trie || $txt !~ + /^ (?: $scripts_trie ) \ (?:$case\ )? LETTER \ \U$lookup_name $/xm); + @off = ($-[0], $+[0]); + } + } + + # Here, the input name has been found; we haven't set up the output, + # but we know where in the string + # the name starts. The string is set up so that for single characters + # (and not named sequences), the name is on a line by itself, and the + # previous line contains precisely 5 hex digits for its code point. + # Named sequences won't have the 7th preceding character be a \n. + # (Actually, for the very first entry in the table this isn't strictly + # true: subtracting 7 will yield -1, and the substr below will + # therefore yield the very last character in the table, which should + # also be a \n, so the statement works anyway.) + if (substr($txt, $off[0] - 7, 1) eq "\n") { + $result = chr CORE::hex substr($txt, $off[0] - 6, 5); + + # Handle the single loose matching special case, in which two names + # differ only by a single medial hyphen. If the original had a + # hyphen (or more) in the right place, then it is that one. + $result = $HANGUL_JUNGSEONG_O_E_utf8 + if $loose + && $result eq $HANGUL_JUNGSEONG_OE_utf8 + && $name =~ m/O \s* - [-\s]* E/ix; + # Note that this wouldn't work if there were a 2nd + # OE in the name + } + else { + + # Here, is a named sequence. Need to go looking for the beginning, + # which is just after the \n from the previous entry in the table. + # The +1 skips past that newline, or, if the rindex() fails, to put + # us to an offset of zero. + my $charstart = rindex($txt, "\n", $off[0] - 7) + 1; + $result = pack("W*", map { CORE::hex } + split " ", substr($txt, $charstart, $off[0] - $charstart - 1)); + } + } + + # Cache the input so as to not have to search the large table + # again, but only if it came from the one search that we cache. + # (Haven't bothered with the pain of sorting out scoping issues for the + # scripts searches.) + $cache_ref->{$name} = $result if defined $cache_ref; + } + } + + # Here, have the result character. If the return is to be an ord, must be + # any single character. + if ($wants_ord) { + return ord($result) if length $result == 1; + } + elsif (! utf8::is_utf8($result)) { + + # Here isn't UTF-8. That's OK if it is all ASCII, or we are being called + # at compile time where we know we can guarantee that Unicode rules are + # correctly imposed on the result, or under 'bytes' where we don't want + # those rules. But otherwise we have to make it UTF8 to guarantee Unicode + # rules on the returned string. + return $result if ! $runtime + || (caller $runtime)[8] & $bytes::hint_bits + || $result !~ /[[:^ascii:]]/; + utf8::upgrade($result); + return $result; + } + else { + + # Here, wants string output. If utf8 is acceptable, just return what + # we've got; otherwise attempt to convert it to non-utf8 and return that. + my $in_bytes = ! $regex_loose # \p{name=} doesn't currently care if + # in bytes or not + && (($runtime) + ? (caller $runtime)[8] & $bytes::hint_bits + : $^H & $bytes::hint_bits); + return $result if (! $in_bytes || utf8::downgrade($result, 1)) # The 1 arg + # means don't die on failure + } + + # Here, there is an error: either there are too many characters, or the + # result string needs to be non-utf8, and at least one character requires + # utf8. Prefer any official name over the input one for the error message. + if (@off) { + $name = substr($txt, $off[0], $off[1] - $off[0]) if @off; + } + else { + $name = (defined $save_input) ? $save_input : $_[0]; + } + + if ($wants_ord) { + # Only way to get here in this case is if result too long. Message + # assumes that our only caller that requires single char result is + # vianame. + carp "charnames::vianame() doesn't handle named sequences ($name). Use charnames::string_vianame() instead"; + return; + } + + # Only other possible failure here is from use bytes. + if ($runtime) { + carp not_legal_use_bytes_msg($name, $result); + return; + } else { + croak not_legal_use_bytes_msg($name, $result); + } + +} # lookup_name + +sub charnames { + + # For \N{...}. Looks up the character name and returns the string + # representation of it. + + # The first 0 arg means wants a string returned; the second that we are in + # compile time + return lookup_name($_[0], 0, 0); +} + +sub _loose_regcomp_lookup { + # For use only by regcomp.c to compile \p{name=...} + # khw thinks it best to not do :short matching, and only official names. + # But that is only a guess, and if demand warrants, could be changed + return lookup_name($_[0], 0, 1, + 1 # Always use :loose matching + ); +} + +sub _get_names_info { + # For use only by regcomp.c to compile \p{name=/.../} + populate_txt() unless $txt; + + + return ( \$txt, \@charnames::code_points_ending_in_code_point ); +} + +sub import +{ + shift; ## ignore class name + + populate_txt() unless $txt; + + if (not @_) { + carp("'use charnames' needs explicit imports list"); + } + $^H{charnames} = \&charnames ; + $^H{charnames_ord_aliases} = {}; + $^H{charnames_name_aliases} = {}; + $^H{charnames_inverse_ords} = {}; + # New fields must be added to %dummy_H, and the code in lookup_name() + # that copies fields from the runtime structure + + ## + ## fill %h keys with our @_ args. + ## + my ($promote, %h, @args) = (0); + while (my $arg = shift) { + if ($arg eq ":alias") { + @_ or + croak ":alias needs an argument in charnames"; + my $alias = shift; + if (ref $alias) { + ref $alias eq "HASH" or + croak "Only HASH reference supported as argument to :alias"; + alias ($alias); + $promote = 1; + next; + } + if ($alias =~ m{:(\w+)$}) { + $1 eq "full" || $1 eq "loose" || $1 eq "short" and + croak ":alias cannot use existing pragma :$1 (reversed order?)"; + alias_file ($1) and $promote = 1; + next; + } + alias_file ($alias) and $promote = 1; + next; + } + if (substr($arg, 0, 1) eq ':' + and ! ($arg eq ":full" || $arg eq ":short" || $arg eq ":loose")) + { + warn "unsupported special '$arg' in charnames"; + next; + } + push @args, $arg; + } + + @args == 0 && $promote and @args = (":full"); + @h{@args} = (1) x @args; + + # Don't leave these undefined as are tested for in lookup_names + $^H{charnames_full} = delete $h{':full'} || 0; + $^H{charnames_loose} = delete $h{':loose'} || 0; + $^H{charnames_short} = delete $h{':short'} || 0; + my @scripts = map { uc quotemeta } grep { /^[^:]/ } @args; + + ## + ## If utf8? warnings are enabled, and some scripts were given, + ## see if at least we can find one letter from each script. + ## + if (warnings::enabled('utf8') && @scripts) { + for my $script (@scripts) { + if (not $txt =~ m/^$script (?:CAPITAL |SMALL )?LETTER /m) { + warnings::warn('utf8', "No such script: '$script'"); + $script = quotemeta $script; # Escape it, for use in the re. + } + } + } + + # %^H gets stringified, so serialize it ourselves so can extract the + # real data back later. + $^H{charnames_stringified_ords} = join ",", %{$^H{charnames_ord_aliases}}; + $^H{charnames_stringified_names} = join ",", %{$^H{charnames_name_aliases}}; + $^H{charnames_stringified_inverse_ords} = join ",", %{$^H{charnames_inverse_ords}}; + + # Modify the input script names for loose name matching if that is also + # specified, similar to the way the base character name is prepared. They + # don't (currently, and hopefully never will) have dashes. These go into a + # regex, and have already been uppercased and quotemeta'd. Squeeze out all + # input underscores, blanks, and dashes. Then convert so will match a blank + # between any characters. + if ($^H{charnames_loose}) { + for (my $i = 0; $i < @scripts; $i++) { + $scripts[$i] =~ s/[_ -]//g; + $scripts[$i] =~ s/ ( [^\\] ) (?= . ) /$1\\ ?/gx; + } + } + + my %letters_by_script = map { + $_ => [ + ($txt =~ m/$_(?: (?:small|capital))? letter (.*)/ig) + ] + } @scripts; + SCRIPTS: foreach my $this_script (@scripts) { + my @other_scripts = grep { $_ ne $this_script } @scripts; + my @this_script_letters = @{$letters_by_script{$this_script}}; + my @other_script_letters = map { @{$letters_by_script{$_}} } @other_scripts; + foreach my $this_letter (@this_script_letters) { + if(grep { $_ eq $this_letter } @other_script_letters) { + warn "charnames: some short character names may clash in [".join(', ', sort @scripts)."], for example $this_letter\n"; + last SCRIPTS; + } + } + } + + $^H{charnames_scripts} = join "|", @scripts; # Stringifiy them as a trie +} # import + +# Cache of already looked-up values. This is set to only contain +# official values, and user aliases can't override them, so scoping is +# not an issue. +my %viacode; + +my $no_name_code_points_re = join "|", map { sprintf("%05X", + utf8::unicode_to_native($_)) } + 0x80, 0x81, 0x84, 0x99; +$no_name_code_points_re = qr/$no_name_code_points_re/; + +sub viacode { + + # Returns the name of the code point argument + + if (@_ != 1) { + carp "charnames::viacode() expects one argument"; + return; + } + + my $arg = shift; + + # This is derived from Unicode::UCD, where it is nearly the same as the + # function _getcode(), but here it makes sure that even a hex argument + # has the proper number of leading zeros, which is critical in + # matching against $txt below + # Must check if decimal first; see comments at that definition + my $hex; + if ($arg =~ $decimal_qr) { + $hex = sprintf "%05X", $arg; + } elsif ($arg =~ $hex_qr) { + $hex = CORE::hex $1; + $hex = utf8::unicode_to_native($hex) if $arg =~ /^[Uu]\+/; + # Below is the line that differs from the _getcode() source + $hex = sprintf "%05X", $hex; + } else { + carp("unexpected arg \"$arg\" to charnames::viacode()"); + return; + } + + return $viacode{$hex} if exists $viacode{$hex}; + + my $return; + + # If the code point is above the max in the table, there's no point + # looking through it. Checking the length first is slightly faster + if (length($hex) <= 5 || CORE::hex($hex) <= 0x10FFFF) { + populate_txt() unless $txt; + + # See if the name is algorithmically determinable. + my $algorithmic = charnames::code_point_to_name_special(CORE::hex $hex); + if (defined $algorithmic) { + $viacode{$hex} = $algorithmic; + return $algorithmic; + } + + # Return the official name, if exists. It's unclear to me (khw) at + # this juncture if it is better to return a user-defined override, so + # leaving it as is for now. + if ($txt =~ m/^$hex\n/m) { + + # The name starts with the next character and goes up to the + # next new-line. Using capturing parentheses above instead of + # @+ more than doubles the execution time in Perl 5.13 + $return = substr($txt, $+[0], index($txt, "\n", $+[0]) - $+[0]); + + # If not one of these 4 code points, return what we've found. + if ($hex !~ / ^ $no_name_code_points_re $ /x) { + $viacode{$hex} = $return; + return $return; + } + + # For backwards compatibility, we don't return the official name of + # the 4 code points if there are user-defined aliases for them -- so + # continue looking. + } + } + + # See if there is a user name for it, before giving up completely. + # First get the scoped aliases, give up if have none. + my $H_ref = (caller(1))[10]; + return if ! defined $return + && (! defined $H_ref + || ! exists $H_ref->{charnames_stringified_inverse_ords}); + + my %code_point_aliases; + if (defined $H_ref->{charnames_stringified_inverse_ords}) { + %code_point_aliases = split ',', + $H_ref->{charnames_stringified_inverse_ords}; + return $code_point_aliases{$hex} if exists $code_point_aliases{$hex}; + } + + # Here there is no user-defined alias, return any official one. + return $return if defined $return; + + if (CORE::hex($hex) > 0x10FFFF + && warnings::enabled('non_unicode')) + { + carp "Unicode characters only allocated up to U+10FFFF (you asked for U+$hex)"; + } + return; + +} # viacode + +1; + +# ex: set ts=8 sts=2 sw=2 et: diff --git a/git/usr/share/perl5/core_perl/autodie.pm b/git/usr/share/perl5/core_perl/autodie.pm new file mode 100644 index 0000000000000000000000000000000000000000..1a600cc874b843cb0a43462b0e6af21709ddfd7f --- /dev/null +++ b/git/usr/share/perl5/core_perl/autodie.pm @@ -0,0 +1,430 @@ +package autodie; +use 5.008; +use strict; +use warnings; + +use parent qw(Fatal); +our $VERSION; + +# ABSTRACT: Replace functions with ones that succeed or die with lexical scope + +BEGIN { + our $VERSION = '2.37'; # VERSION: Generated by DZP::OurPkg::Version +} + +use constant ERROR_WRONG_FATAL => q{ +Incorrect version of Fatal.pm loaded by autodie. + +The autodie pragma uses an updated version of Fatal to do its +heavy lifting. We seem to have loaded Fatal version %s, which is +probably the version that came with your version of Perl. However +autodie needs version %s, which would have come bundled with +autodie. + +You may be able to solve this problem by adding the following +line of code to your main program, before any use of Fatal or +autodie. + + use lib "%s"; + +}; + +# We have to check we've got the right version of Fatal before we +# try to compile the rest of our code, lest we use a constant +# that doesn't exist. + +BEGIN { + + # If we have the wrong Fatal, then we've probably loaded the system + # one, not our own. Complain, and give a useful hint. ;) + + if (defined($Fatal::VERSION) and defined($VERSION) and $Fatal::VERSION ne $VERSION) { + my $autodie_path = $INC{'autodie.pm'}; + + $autodie_path =~ s/autodie\.pm//; + + require Carp; + + Carp::croak sprintf( + ERROR_WRONG_FATAL, $Fatal::VERSION, $VERSION, $autodie_path + ); + } +} + +# When passing args to Fatal we want to keep the first arg +# (our package) in place. Hence the splice. + +sub import { + splice(@_,1,0,Fatal::LEXICAL_TAG); + goto &Fatal::import; +} + +sub unimport { + splice(@_,1,0,Fatal::LEXICAL_TAG); + goto &Fatal::unimport; +} + +1; + +__END__ + +=head1 NAME + +autodie - Replace functions with ones that succeed or die with lexical scope + +=head1 SYNOPSIS + + use autodie; # Recommended: implies 'use autodie qw(:default)' + + use autodie qw(:all); # Recommended more: defaults and system/exec. + + use autodie qw(open close); # open/close succeed or die + + open(my $fh, "<", $filename); # No need to check! + + { + no autodie qw(open); # open failures won't die + open(my $fh, "<", $filename); # Could fail silently! + no autodie; # disable all autodies + } + + print "Hello World" or die $!; # autodie DOESN'T check print! + +=head1 DESCRIPTION + + bIlujDI' yIchegh()Qo'; yIHegh()! + + It is better to die() than to return() in failure. + + -- Klingon programming proverb. + +The C pragma provides a convenient way to replace functions +that normally return false on failure with equivalents that throw +an exception on failure. + +The C pragma has I, meaning that functions +and subroutines altered with C will only change their behaviour +until the end of the enclosing block, file, or C. + +If C is specified as an argument to C, then it +uses L to do the heavy lifting. See the +description of that module for more information. + +=head1 EXCEPTIONS + +Exceptions produced by the C pragma are members of the +L class. The preferred way to work with +these exceptions under Perl 5.10 is as follows: + + eval { + use autodie; + + open(my $fh, '<', $some_file); + + my @records = <$fh>; + + # Do things with @records... + + close($fh); + }; + + if ($@ and $@->isa('autodie::exception')) { + if ($@->matches('open')) { print "Error from open\n"; } + if ($@->matches(':io' )) { print "Non-open, IO error."; } + } elsif ($@) { + # A non-autodie exception. + } + +See L for further information on interrogating +exceptions. + +=head1 CATEGORIES + +Autodie uses a simple set of categories to group together similar +built-ins. Requesting a category type (starting with a colon) will +enable autodie for all built-ins beneath that category. For example, +requesting C<:file> will enable autodie for C, C, +C and C. + +The categories are currently: + + :all + :default + :io + read + seek + sysread + sysseek + syswrite + :dbm + dbmclose + dbmopen + :file + binmode + close + chmod + chown + fcntl + flock + ioctl + open + sysopen + truncate + :filesys + chdir + closedir + opendir + link + mkdir + readlink + rename + rmdir + symlink + unlink + :ipc + kill + pipe + :msg + msgctl + msgget + msgrcv + msgsnd + :semaphore + semctl + semget + semop + :shm + shmctl + shmget + shmread + :socket + accept + bind + connect + getsockopt + listen + recv + send + setsockopt + shutdown + socketpair + :threads + fork + :system + system + exec + + +Note that while the above category system is presently a strict +hierarchy, this should not be assumed. + +A plain C implies C. Note that +C and C are not enabled by default. C requires +the optional L module to be installed, and enabling +C or C will invalidate their exotic forms. See L +below for more details. + +The syntax: + + use autodie qw(:1.994); + +allows the C<:default> list from a particular version to be used. This +provides the convenience of using the default methods, but the surety +that no behavioral changes will occur if the C module is +upgraded. + +C can be enabled for all of Perl's built-ins, including +C and C with: + + use autodie qw(:all); + +=head1 FUNCTION SPECIFIC NOTES + +=head2 print + +The autodie pragma BZ<>>. + +=head2 flock + +It is not considered an error for C to return false if it fails +due to an C (or equivalent) condition. This means one can +still use the common convention of testing the return value of +C when called with the C option: + + use autodie; + + if ( flock($fh, LOCK_EX | LOCK_NB) ) { + # We have a lock + } + +Autodying C will generate an exception if C returns +false with any other error. + +=head2 system/exec + +The C built-in is considered to have failed in the following +circumstances: + +=over 4 + +=item * + +The command does not start. + +=item * + +The command is killed by a signal. + +=item * + +The command returns a non-zero exit value (but see below). + +=back + +On success, the autodying form of C returns the I +rather than the contents of C<$?>. + +Additional allowable exit values can be supplied as an optional first +argument to autodying C: + + system( [ 0, 1, 2 ], $cmd, @args); # 0,1,2 are good exit values + +C uses the L module to change C. +See its documentation for further information. + +Applying C to C or C causes the exotic +forms C or C +to be considered a syntax error until the end of the lexical scope. +If you really need to use the exotic form, you can call C +or C instead, or use C before +calling the exotic form. + +=head1 GOTCHAS + +Functions called in list context are assumed to have failed if they +return an empty list, or a list consisting only of a single undef +element. + +Some builtins (e.g. C or C) has a call signature that +cannot completely be represented with a Perl prototype. This means +that some valid Perl code will be invalid under autodie. As an example: + + chdir(BAREWORD); + +Without autodie (and assuming BAREWORD is an open +filehandle/dirhandle) this is a valid call to chdir. But under +autodie, C will behave like it had the prototype ";$" and thus +BAREWORD will be a syntax error (under "use strict". Without strict, it +will interpreted as a filename). + +=head1 DIAGNOSTICS + +=over 4 + +=item :void cannot be used with lexical scope + +The C<:void> option is supported in L, but not +C. To workaround this, C may be explicitly disabled until +the end of the current block with C. +To disable autodie for only a single function (eg, open) +use C. + +C performs no checking of called context to determine whether to throw +an exception; the explicitness of error handling with C is a deliberate +feature. + +=item No user hints defined for %s + +You've insisted on hints for user-subroutines, either by pre-pending +a C to the subroutine name itself, or earlier in the list of arguments +to C. However the subroutine in question does not have +any hints available. + +=back + +See also L. + +=head1 Tips and Tricks + +=head2 Importing autodie into another namespace than "caller" + +It is possible to import autodie into a different namespace by using +L. However, you have to pass a "caller depth" (rather +than a package name) for this to work correctly. + +=head1 BUGS + +"Used only once" warnings can be generated when C or C +is used with package filehandles (eg, C). Scalar filehandles are +strongly recommended instead. + +When using C or C with user subroutines, the +declaration of those subroutines must appear before the first use of +C or C, or have been exported from a module. +Attempting to use C or C on other user subroutines will +result in a compile-time error. + +Due to a bug in Perl, C may "lose" any format which has the +same name as an autodying built-in or function. + +C may not work correctly if used inside a file with a +name that looks like a string eval, such as F. + +=head2 autodie and string eval + +Due to the current implementation of C, unexpected results +may be seen when used near or with the string version of eval. +I. + +Under Perl 5.8 only, C I propagate into string C +statements, although it can be explicitly enabled inside a string +C. + +Under Perl 5.10 only, using a string eval when C is in +effect can cause the autodie behaviour to leak into the surrounding +scope. This can be worked around by using a C at the +end of the scope to explicitly remove autodie's effects, or by +avoiding the use of string eval. + +I. The use of +C with block eval is considered good practice. + +=head2 REPORTING BUGS + +Please report bugs via the GitHub Issue Tracker at +L. + +=head1 FEEDBACK + +If you find this module useful, please consider rating it on metacpan at +L . + +The module author loves to hear how C has made your life +better (or worse). Feedback can be sent to +Epjf@perltraining.com.auE. + +=head1 AUTHOR + +Copyright 2008-2009, Paul Fenwick Epjf@perltraining.com.auE + +=head1 LICENSE + +This module is free software. You may distribute it under the +same terms as Perl itself. + +=head1 SEE ALSO + +L, L, L, L + +I at +L + +=head1 ACKNOWLEDGEMENTS + +Mark Reed and Roland Giersig -- Klingon translators. + +See the F file for full credits. The latest version of this +file can be found at +L . + +=cut diff --git a/git/usr/share/perl5/core_perl/autouse.pm b/git/usr/share/perl5/core_perl/autouse.pm new file mode 100644 index 0000000000000000000000000000000000000000..2dd8c1dbd745757cfcb30155771cac56f2773b52 --- /dev/null +++ b/git/usr/share/perl5/core_perl/autouse.pm @@ -0,0 +1,171 @@ +package autouse; + +#use strict; # debugging only +use 5.006; # use warnings + +$autouse::VERSION = '1.11'; + +$autouse::DEBUG ||= 0; + +sub vet_import ($); + +sub croak { + require Carp; + Carp::croak(@_); +} + +sub import { + my $class = @_ ? shift : 'autouse'; + croak "usage: use $class MODULE [,SUBS...]" unless @_; + my $module = shift; + + (my $pm = $module) =~ s{::}{/}g; + $pm .= '.pm'; + if (exists $INC{$pm}) { + vet_import $module; + local $Exporter::ExportLevel = $Exporter::ExportLevel + 1; + # $Exporter::Verbose = 1; + return $module->import(map { (my $f = $_) =~ s/\(.*?\)$//; $f } @_); + } + + # It is not loaded: need to do real work. + my $callpkg = caller(0); + print "autouse called from $callpkg\n" if $autouse::DEBUG; + + my $index; + for my $f (@_) { + my $proto; + $proto = $1 if (my $func = $f) =~ s/\((.*)\)$//; + + my $closure_import_func = $func; # Full name + my $closure_func = $func; # Name inside package + my $index = rindex($func, '::'); + if ($index == -1) { + $closure_import_func = "${callpkg}::$func"; + } else { + $closure_func = substr $func, $index + 2; + croak "autouse into different package attempted" + unless substr($func, 0, $index) eq $module; + } + + my $load_sub = sub { + unless ($INC{$pm}) { + require $pm; + vet_import $module; + } + no warnings qw(redefine prototype); + *$closure_import_func = \&{"${module}::$closure_func"}; + print "autousing $module; " + ."imported $closure_func as $closure_import_func\n" + if $autouse::DEBUG; + goto &$closure_import_func; + }; + + if (defined $proto) { + *$closure_import_func = eval "sub ($proto) { goto &\$load_sub }" + || die; + } else { + *$closure_import_func = $load_sub; + } + } +} + +sub vet_import ($) { + my $module = shift; + if (my $import = $module->can('import')) { + croak "autoused module $module has unique import() method" + unless defined(&Exporter::import) + && ($import == \&Exporter::import || + $import == \&UNIVERSAL::import) + } +} + +1; + +__END__ + +=head1 NAME + +autouse - postpone load of modules until a function is used + +=head1 SYNOPSIS + + use autouse 'Carp' => qw(carp croak); + carp "this carp was predeclared and autoused "; + +=head1 DESCRIPTION + +If the module C is already loaded, then the declaration + + use autouse 'Module' => qw(func1 func2($;$)); + +is equivalent to + + use Module qw(func1 func2); + +if C defines func2() with prototype C<($;$)>, and func1() has +no prototypes. (At least if C uses C's C, +otherwise it is a fatal error.) + +If the module C is not loaded yet, then the above declaration +declares functions func1() and func2() in the current package. When +these functions are called, they load the package C if needed, +and substitute themselves with the correct definitions. + +=begin _deprecated + + use Module qw(Module::func3); + +will work and is the equivalent to: + + use Module qw(func3); + +It is not a very useful feature and has been deprecated. + +=end _deprecated + + +=head1 WARNING + +Using C will move important steps of your program's execution +from compile time to runtime. This can + +=over 4 + +=item * + +Break the execution of your program if the module you Cd has +some initialization which it expects to be done early. + +=item * + +hide bugs in your code since important checks (like correctness of +prototypes) is moved from compile time to runtime. In particular, if +the prototype you specified on C line is wrong, you will not +find it out until the corresponding function is executed. This will be +very unfortunate for functions which are not always called (note that +for such functions Cing gives biggest win, for a workaround +see below). + +=back + +To alleviate the second problem (partially) it is advised to write +your scripts like this: + + use Module; + use autouse Module => qw(carp($) croak(&$)); + carp "this carp was predeclared and autoused "; + +The first line ensures that the errors in your argument specification +are found early. When you ship your application you should comment +out the first line, since it makes the second one useless. + +=head1 AUTHOR + +Ilya Zakharevich (ilya@math.ohio-state.edu) + +=head1 SEE ALSO + +perl(1). + +=cut diff --git a/git/usr/share/perl5/core_perl/base.pm b/git/usr/share/perl5/core_perl/base.pm new file mode 100644 index 0000000000000000000000000000000000000000..fb48fc295b2b1d3772eb8da60bdc4c46dd0fcfcd --- /dev/null +++ b/git/usr/share/perl5/core_perl/base.pm @@ -0,0 +1,327 @@ +use 5.008; +package base; + +use strict 'vars'; +our $VERSION = '2.27'; +$VERSION =~ tr/_//d; + +# simplest way to avoid indexing of the package: no package statement +sub base::__inc::unhook { @INC = grep !(ref eq 'CODE' && $_ == $_[0]), @INC } +# instance is blessed array of coderefs to be removed from @INC at scope exit +sub base::__inc::scope_guard::DESTROY { base::__inc::unhook $_ for @{$_[0]} } + +# constant.pm is slow +sub SUCCESS () { 1 } + +sub PUBLIC () { 2**0 } +sub PRIVATE () { 2**1 } +sub INHERITED () { 2**2 } +sub PROTECTED () { 2**3 } + + +my $Fattr = \%fields::attr; + +sub has_fields { + my($base) = shift; + my $fglob = ${"$base\::"}{FIELDS}; + return( ($fglob && 'GLOB' eq ref($fglob) && *$fglob{HASH}) ? 1 : 0 ); +} + +sub has_attr { + my($proto) = shift; + my($class) = ref $proto || $proto; + return exists $Fattr->{$class}; +} + +sub get_attr { + $Fattr->{$_[0]} = [1] unless $Fattr->{$_[0]}; + return $Fattr->{$_[0]}; +} + +if ($] < 5.009) { + *get_fields = sub { + # Shut up a possible typo warning. + () = \%{$_[0].'::FIELDS'}; + my $f = \%{$_[0].'::FIELDS'}; + + # should be centralized in fields? perhaps + # fields::mk_FIELDS_be_OK. Peh. As long as %{ $package . '::FIELDS' } + # is used here anyway, it doesn't matter. + bless $f, 'pseudohash' if (ref($f) ne 'pseudohash'); + + return $f; + } +} +else { + *get_fields = sub { + # Shut up a possible typo warning. + () = \%{$_[0].'::FIELDS'}; + return \%{$_[0].'::FIELDS'}; + } +} + +if ($] < 5.008) { + *_module_to_filename = sub { + (my $fn = $_[0]) =~ s!::!/!g; + $fn .= '.pm'; + return $fn; + } +} +else { + *_module_to_filename = sub { + (my $fn = $_[0]) =~ s!::!/!g; + $fn .= '.pm'; + utf8::encode($fn); + return $fn; + } +} + + +sub import { + my $class = shift; + + return SUCCESS unless @_; + + # List of base classes from which we will inherit %FIELDS. + my $fields_base; + + my $inheritor = caller(0); + + my @bases; + foreach my $base (@_) { + if ( $inheritor eq $base ) { + warn "Class '$inheritor' tried to inherit from itself\n"; + } + + next if grep $_->isa($base), ($inheritor, @bases); + + # Following blocks help isolate $SIG{__DIE__} and @INC changes + { + my $sigdie; + { + local $SIG{__DIE__}; + my $fn = _module_to_filename($base); + my $dot_hidden; + eval { + my $guard; + if ($INC[-1] eq '.' && %{"$base\::"}) { + # So: the package already exists => this an optional load + # And: there is a dot at the end of @INC => we want to hide it + # However: we only want to hide it during our *own* require() + # (i.e. without affecting nested require()s). + # So we add a hook to @INC whose job is to hide the dot, but which + # first checks checks the callstack depth, because within nested + # require()s the callstack is deeper. + # Since CORE::GLOBAL::require makes it unknowable in advance what + # the exact relevant callstack depth will be, we have to record it + # inside a hook. So we put another hook just for that at the front + # of @INC, where it's guaranteed to run -- immediately. + # The dot-hiding hook does its job by sitting directly in front of + # the dot and removing itself from @INC when reached. This causes + # the dot to move up one index in @INC, causing the loop inside + # pp_require() to skip it. + # Loaded coded may disturb this precise arrangement, but that's OK + # because the hook is inert by that time. It is only active during + # the top-level require(), when @INC is in our control. The only + # possible gotcha is if other hooks already in @INC modify @INC in + # some way during that initial require(). + # Note that this jiggery hookery works just fine recursively: if + # a module loaded via base.pm uses base.pm itself, there will be + # one pair of hooks in @INC per base::import call frame, but the + # pairs from different nestings do not interfere with each other. + my $lvl; + unshift @INC, sub { return if defined $lvl; 1 while defined caller ++$lvl; () }; + splice @INC, -1, 0, sub { return if defined caller $lvl; ++$dot_hidden, &base::__inc::unhook; () }; + $guard = bless [ @INC[0,-2] ], 'base::__inc::scope_guard'; + } + require $fn + }; + if ($dot_hidden && (my @fn = grep -e && !( -d _ || -b _ ), $fn.'c', $fn)) { + require Carp; + Carp::croak(<]*> (?:line|chunk) [0-9]+)?\.\n\z/s + || $@ =~ /Compilation failed in require at .* line [0-9]+(?:, <[^>]*> (?:line|chunk) [0-9]+)?\.\n\z/; + unless (%{"$base\::"}) { + require Carp; + local $" = " "; + Carp::croak(<[0] = @$battr; + + if( keys %$dfields ) { + warn <<"END"; +$derived is inheriting from $base but already has its own fields! +This will cause problems. Be sure you use base BEFORE declaring fields. +END + + } + + # Iterate through the base's fields adding all the non-private + # ones to the derived class. Hang on to the original attribute + # (Public, Private, etc...) and add Inherited. + # This is all too complicated to do efficiently with add_fields(). + while (my($k,$v) = each %$bfields) { + my $fno; + if ($fno = $dfields->{$k} and $fno != $v) { + require Carp; + Carp::croak ("Inherited fields can't override existing fields"); + } + + if( $battr->[$v] & PRIVATE ) { + $dattr->[$v] = PRIVATE | INHERITED; + } + else { + $dattr->[$v] = INHERITED | $battr->[$v]; + $dfields->{$k} = $v; + } + } + + foreach my $idx (1..$#{$battr}) { + next if defined $dattr->[$idx]; + $dattr->[$idx] = $battr->[$idx] & INHERITED; + } +} + + +1; + +__END__ + +=head1 NAME + +base - Establish an ISA relationship with base classes at compile time + +=head1 SYNOPSIS + + package Baz; + use base qw(Foo Bar); + +=head1 DESCRIPTION + +Unless you are using the C pragma, consider this module discouraged +in favor of the lighter-weight C. + +Allows you to both load one or more modules, while setting up inheritance from +those modules at the same time. Roughly similar in effect to + + package Baz; + BEGIN { + require Foo; + require Bar; + push @ISA, qw(Foo Bar); + } + +When C tries to C a module, it will not die if it cannot find +the module's file, but will die on any other error. After all this, should +your base class be empty, containing no symbols, C will die. This is +useful for inheriting from classes in the same file as yourself but where +the filename does not match the base module name, like so: + + # in Bar.pm + package Foo; + sub exclaim { "I can have such a thing?!" } + + package Bar; + use base "Foo"; + +There is no F, but because C defines a symbol (the C +subroutine), C will not die when the C fails to load F. + +C will also initialize the fields if one of the base classes has it. +Multiple inheritance of fields is B supported, if two or more base classes +each have inheritable fields the 'base' pragma will croak. See L +for a description of this feature. + +The base class' C method is B called. + + +=head1 DIAGNOSTICS + +=over 4 + +=item Base class package "%s" is empty. + +base.pm was unable to require the base package, because it was not +found in your path. + +=item Class 'Foo' tried to inherit from itself + +Attempting to inherit from yourself generates a warning. + + package Foo; + use base 'Foo'; + +=back + +=head1 HISTORY + +This module was introduced with Perl 5.004_04. + +=head1 CAVEATS + +Due to the limitations of the implementation, you must use +base I you declare any of your own fields. + + +=head1 SEE ALSO + +L + +=cut diff --git a/git/usr/share/perl5/core_perl/bigfloat.pm b/git/usr/share/perl5/core_perl/bigfloat.pm new file mode 100644 index 0000000000000000000000000000000000000000..a6608e3ce5f24b6b26ab5b8ba9913069d5ea1846 --- /dev/null +++ b/git/usr/share/perl5/core_perl/bigfloat.pm @@ -0,0 +1,847 @@ +package bigfloat; + +use strict; +use warnings; + +use Carp qw< carp croak >; + +our $VERSION = '0.67'; + +use Exporter; +our @ISA = qw( Exporter ); +our @EXPORT_OK = qw( PI e bpi bexp hex oct ); +our @EXPORT = qw( inf NaN ); + +use overload; + +my $obj_class = "Math::BigFloat"; + +############################################################################## + +sub accuracy { + my $self = shift; + $obj_class -> accuracy(@_); +} + +sub precision { + my $self = shift; + $obj_class -> precision(@_); +} + +sub round_mode { + my $self = shift; + $obj_class -> round_mode(@_); +} + +sub div_scale { + my $self = shift; + $obj_class -> div_scale(@_); +} + +sub upgrade { + my $self = shift; + $obj_class -> upgrade(@_); +} + +sub downgrade { + my $self = shift; + $obj_class -> downgrade(@_); +} + +sub in_effect { + my $level = shift || 0; + my $hinthash = (caller($level))[10]; + $hinthash->{bigfloat}; +} + +sub _float_constant { + my $str = shift; + + # See if we can convert the input string to a string using a normalized form + # consisting of the significand as a signed integer, the character "e", and + # the exponent as a signed integer, e.g., "+0e+0", "+314e-2", and "-1e+3". + + my $nstr; + + if ( + # See if it is an octal number. An octal number like '0377' is also + # accepted by the functions parsing decimal and hexadecimal numbers, so + # handle octal numbers before decimal and hexadecimal numbers. + + $str =~ /^0(?:[Oo]|_*[0-7])/ and + $nstr = Math::BigInt -> oct_str_to_dec_flt_str($str) + + or + + # See if it is decimal number. + + $nstr = Math::BigInt -> dec_str_to_dec_flt_str($str) + + or + + # See if it is a hexadecimal number. Every hexadecimal number has a + # prefix, but the functions parsing numbers don't require it, so check + # to see if it actually is a hexadecimal number. + + $str =~ /^0[Xx]/ and + $nstr = Math::BigInt -> hex_str_to_dec_flt_str($str) + + or + + # See if it is a binary numbers. Every binary number has a prefix, but + # the functions parsing numbers don't require it, so check to see if it + # actually is a binary number. + + $str =~ /^0[Bb]/ and + $nstr = Math::BigInt -> bin_str_to_dec_flt_str($str)) + { + return $obj_class -> new($nstr); + } + + # If we get here, there is a bug in the code above this point. + + warn "Internal error: unable to handle literal constant '$str'.", + " This is a bug, so please report this to the module author."; + return $obj_class -> bnan(); +} + +############################################################################# +# the following two routines are for "use bigfloat qw/hex oct/;": + +use constant LEXICAL => $] > 5.009004; + +# Internal function with the same semantics as CORE::hex(). This function is +# not used directly, but rather by other front-end functions. + +sub _hex_core { + my $str = shift; + + # Strip off, clean, and parse as much as we can from the beginning. + + my $x; + if ($str =~ s/ ^ ( 0? [xX] )? ( [0-9a-fA-F]* ( _ [0-9a-fA-F]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_hex($chrs); + } else { + $x = $obj_class -> bzero(); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal hexadecimal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +# Internal function with the same semantics as CORE::oct(). This function is +# not used directly, but rather by other front-end functions. + +sub _oct_core { + my $str = shift; + + $str =~ s/^\s*//; + + # Hexadecimal input. + + return _hex_core($str) if $str =~ /^0?[xX]/; + + my $x; + + # Binary input. + + if ($str =~ /^0?[bB]/) { + + # Strip off, clean, and parse as much as we can from the beginning. + + if ($str =~ s/ ^ ( 0? [bB] )? ( [01]* ( _ [01]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_bin($chrs); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal binary digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; + } + + # Octal input. Strip off, clean, and parse as much as we can from the + # beginning. + + if ($str =~ s/ ^ ( 0? [oO] )? ( [0-7]* ( _ [0-7]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_oct($chrs); + } + + # Warn about trailing garbage. CORE::oct() only warns about 8 and 9, but it + # is more helpful to warn about all invalid digits. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal octal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +{ + my $proto = LEXICAL ? '_' : ';$'; + eval ' +sub hex(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _hex_core($str); +} +. + + eval ' +sub oct(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _oct_core($str); +} +. +} + +############################################################################# +# the following two routines are for Perl 5.9.4 or later and are lexical + +my ($prev_oct, $prev_hex, $overridden); + +if (LEXICAL) { eval <<'.' } +sub _hex(_) { + my $hh = (caller 0)[10]; + return $$hh{bigfloat} ? bigfloat::_hex_core($_[0]) + : $$hh{bigrat} ? bigrat::_hex_core($_[0]) + : $$hh{bigint} ? bigint::_hex_core($_[0]) + : $prev_hex ? &$prev_hex($_[0]) + : CORE::hex($_[0]); +} + +sub _oct(_) { + my $hh = (caller 0)[10]; + return $$hh{bigfloat} ? bigfloat::_oct_core($_[0]) + : $$hh{bigrat} ? bigrat::_oct_core($_[0]) + : $$hh{bigint} ? bigint::_oct_core($_[0]) + : $prev_oct ? &$prev_oct($_[0]) + : CORE::oct($_[0]); +} +. + +sub _override { + return if $overridden; + $prev_oct = *CORE::GLOBAL::oct{CODE}; + $prev_hex = *CORE::GLOBAL::hex{CODE}; + no warnings 'redefine'; + *CORE::GLOBAL::oct = \&_oct; + *CORE::GLOBAL::hex = \&_hex; + $overridden = 1; +} + +sub unimport { + delete $^H{bigfloat}; # no longer in effect + overload::remove_constant('binary', '', 'float', '', 'integer'); +} + +sub import { + my $class = shift; + + $^H{bigfloat} = 1; # we are in effect + delete $^H{bigint}; + delete $^H{bigrat}; + + # for newer Perls always override hex() and oct() with a lexical version: + if (LEXICAL) { + _override(); + } + + my @import = (); + my @a = (); # unrecognized arguments + my $ver; # version? + + while (@_) { + my $param = shift; + + # Accuracy. + + if ($param =~ /^a(ccuracy)?$/) { + push @import, 'accuracy', shift(); + next; + } + + # Precision. + + if ($param =~ /^p(recision)?$/) { + push @import, 'precision', shift(); + next; + } + + # Rounding mode. + + if ($param eq 'round_mode') { + push @import, 'round_mode', shift(); + next; + } + + # Backend library. + + if ($param =~ /^(l|lib|try|only)$/) { + push @import, $param eq 'l' ? 'lib' : $param; + push @import, shift() if @_; + next; + } + + if ($param =~ /^(v|version)$/) { + $ver = 1; + next; + } + + if ($param =~ /^(t|trace)$/) { + $obj_class .= "::Trace"; + eval "require $obj_class"; + die $@ if $@; + next; + } + + if ($param =~ /^(PI|e|bexp|bpi|hex|oct)\z/) { + push @a, $param; + next; + } + + croak("Unknown option '$param'"); + } + + eval "require $obj_class"; + die $@ if $@; + $obj_class -> import(@import); + + if ($ver) { + printf "%-31s v%s\n", $class, $class -> VERSION(); + printf " lib => %-23s v%s\n", + $obj_class -> config("lib"), $obj_class -> config("lib_version"); + printf "%-31s v%s\n", $obj_class, $obj_class -> VERSION(); + exit; + } + + $class -> export_to_level(1, $class, @a); # export inf, NaN, etc. + + overload::constant + + # This takes care each number written as decimal integer and within the + # range of what perl can represent as an integer, e.g., "314", but not + # "3141592653589793238462643383279502884197169399375105820974944592307". + + integer => sub { + #printf "Value '%s' handled by the 'integer' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str); + }, + + # This takes care of each number written with a decimal point and/or + # using floating point notation, e.g., "3.", "3.0", "3.14e+2" (decimal), + # "0b1.101p+2" (binary), "03.14p+2" and "0o3.14p+2" (octal), and + # "0x3.14p+2" (hexadecimal). + + float => sub { + #printf "# Value '%s' handled by the 'float' sub.\n", $_[0]; + _float_constant(shift); + }, + + # Take care of each number written as an integer (no decimal point or + # exponent) using binary, octal, or hexadecimal notation, e.g., "0b101" + # (binary), "0314" and "0o314" (octal), and "0x314" (hexadecimal). + + binary => sub { + #printf "# Value '%s' handled by the 'binary' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str) if $str =~ /^0[XxBb]/; + $obj_class -> from_oct($str); + }; +} + +sub inf () { $obj_class -> binf(); } +sub NaN () { $obj_class -> bnan(); } + +# This should depend on the current accuracy/precision. Fixme! +sub PI () { $obj_class -> new('3.141592653589793238462643383279502884197'); } +sub e () { $obj_class -> new('2.718281828459045235360287471352662497757'); } + +sub bpi ($) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + + my $x = Math::BigFloat -> bpi(@_); + + Math::BigFloat -> upgrade($up); # reset the upgrading + + return $x; +} + +sub bexp ($$) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + + my $x = Math::BigFloat -> new(shift); + $x -> bexp(@_); + + Math::BigFloat -> upgrade($up); # reset the upgrading + + return $x; +} + +1; + +__END__ + +=pod + +=head1 NAME + +bigfloat - transparent big floating point number support for Perl + +=head1 SYNOPSIS + + use bigfloat; + + $x = 2 + 4.5; # Math::BigFloat 6.5 + print 2 ** 512 * 0.1; # Math::BigFloat 134...09.6 + print inf + 42; # Math::BigFloat inf + print NaN * 7; # Math::BigFloat NaN + print hex("0x1234567890123490"); # Perl v5.10.0 or later + + { + no bigfloat; + print 2 ** 256; # a normal Perl scalar now + } + + # for older Perls, import into current package: + use bigfloat qw/hex oct/; + print hex("0x1234567890123490"); + print oct("01234567890123490"); + +=head1 DESCRIPTION + +All numeric literals in the given scope are converted to Math::BigFloat objects. + +All operators (including basic math operations) except the range operator C<..> +are overloaded. + +So, the following: + + use bigfloat; + $x = 1234; + +creates a Math::BigFloat and stores a reference to in $x. This happens +transparently and behind your back, so to speak. + +You can see this with the following: + + perl -Mbigfloat -le 'print ref(1234)' + +Since numbers are actually objects, you can call all the usual methods from +Math::BigFloat on them. This even works to some extent on expressions: + + perl -Mbigfloat -le '$x = 1234; print $x->bdec()' + perl -Mbigfloat -le 'print 1234->copy()->binc();' + perl -Mbigfloat -le 'print 1234->copy()->binc->badd(6);' + perl -Mbigfloat -le 'print +(1234)->copy()->binc()' + +(Note that print doesn't do what you expect if the expression starts with +'(' hence the C<+>) + +You can even chain the operations together as usual: + + perl -Mbigfloat -le 'print 1234->copy()->binc->badd(6);' + 1241 + +Please note the following does not work as expected (prints nothing), since +overloading of '..' is not yet possible in Perl (as of v5.8.0): + + perl -Mbigfloat -le 'for (1..2) { print ref($_); }' + +=head2 Options + +C recognizes some options that can be passed while loading it via via +C. The following options exist: + +=over 4 + +=item a or accuracy + +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's bround() method for details. + + perl -Mbigfloat=a,50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item p or precision + +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, while a +positive value rounds to this digit left from the dot. 0 means round to integer. +See Math::BigInt's bfround() method for details. + + perl -Mbigfloat=p,-50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item t or trace + +This enables a trace mode and is primarily for debugging. + +=item l, lib, try, or only + +Load a different math lib, see L. + + perl -Mbigfloat=l,GMP -e 'print 2 ** 512' + perl -Mbigfloat=lib,GMP -e 'print 2 ** 512' + perl -Mbigfloat=try,GMP -e 'print 2 ** 512' + perl -Mbigfloat=only,GMP -e 'print 2 ** 512' + +=item hex + +Override the built-in hex() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as hex() is lexically overridden in the +current scope whenever the C pragma is active. + +=item oct + +Override the built-in oct() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as oct() is lexically overridden in the +current scope whenever the C pragma is active. + +=item v or version + +this prints out the name and version of the modules and then exits. + + perl -Mbigfloat=v + +=back + +=head2 Math Library + +Math with the numbers is done (by default) by a backend library module called +Math::BigInt::Calc. The default is equivalent to saying: + + use bigfloat lib => 'Calc'; + +you can change this by using: + + use bigfloat lib => 'GMP'; + +The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, +and if this also fails, revert to Math::BigInt::Calc: + + use bigfloat lib => 'Foo,Math::BigInt::Bar'; + +Using c warns if none of the specified libraries can be found and +L fell back to one of the default libraries. To suppress this +warning, use c instead: + + use bigfloat try => 'GMP'; + +If you want the code to die instead of falling back, use C instead: + + use bigfloat only => 'GMP'; + +Please see respective module documentation for further details. + +=head2 Method calls + +Since all numbers are now objects, you can use all methods that are part of the +Math::BigFloat API. + +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. + + $x = 9; $y = $x; + $x = $y = 7; + +Using the copy or the original with overloaded math is okay, e.g., the following +work: + + $x = 9; $y = $x; + print $x + 1, " ", $y,"\n"; # prints 10 9 + +but calling any method that modifies the number directly will result in B +the original and the copy being destroyed: + + $x = 9; $y = $x; + print $x->badd(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->binc(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->bmul(2), " ", $y,"\n"; # prints 18 18 + +Using methods that do not modify, but test that the contents works: + + $x = 9; $y = $x; + $z = 9 if $x->is_zero(); # works fine + +See the documentation about the copy constructor and C<=> in overload, as well +as the documentation in Math::BigFloat for further details. + +=head2 Methods + +=over 4 + +=item inf() + +A shortcut to return Math::BigFloat->binf(). Useful because Perl does not always +handle bareword C properly. + +=item NaN() + +A shortcut to return Math::BigFloat->bnan(). Useful because Perl does not always +handle bareword C properly. + +=item e + + # perl -Mbigfloat=e -wle 'print e' + +Returns Euler's number C, aka exp(1) + +=item PI + + # perl -Mbigfloat=PI -wle 'print PI' + +Returns PI. + +=item bexp() + + bexp($power, $accuracy); + +Returns Euler's number C raised to the appropriate power, to the wanted +accuracy. + +Example: + + # perl -Mbigfloat=bexp -wle 'print bexp(1,80)' + +=item bpi() + + bpi($accuracy); + +Returns PI to the wanted accuracy. + +Example: + + # perl -Mbigfloat=bpi -wle 'print bpi(80)' + +=item accuracy() + +Set or get the accuracy. + +=item precision() + +Set or get the precision. + +=item round_mode() + +Set or get the rounding mode. + +=item div_scale() + +Set or get the division scale. + +=item upgrade() + +Set or get the class that the downgrade class upgrades to, if any. Set the +upgrade class to C to disable upgrading. + +Upgrading is disabled by default. + +=item downgrade() + +Set or get the class that the upgrade class downgrades to, if any. Set the +downgrade class to C to disable upgrading. + +Downgrading is disabled by default. + +=item in_effect() + + use bigfloat; + + print "in effect\n" if bigfloat::in_effect; # true + { + no bigfloat; + print "in effect\n" if bigfloat::in_effect; # false + } + +Returns true or false if C is in effect in the current scope. + +This method only works on Perl v5.9.4 or later. + +=back + +=head1 CAVEATS + +=over 4 + +=item Hexadecimal, octal, and binary floating point literals + +Perl (and this module) accepts hexadecimal, octal, and binary floating point +literals, but use them with care with Perl versions before v5.32.0, because some +versions of Perl silently give the wrong result. + +=item Operator vs literal overloading + +C works by overloading handling of integer and floating point literals, +converting them to L objects. + +This means that arithmetic involving only string values or string literals are +performed using Perl's built-in operators. + +For example: + + use bigrat; + my $x = "900000000000000009"; + my $y = "900000000000000007"; + print $x - $y; + +outputs C<0> on default 32-bit builds, since C never sees the string +literals. To ensure the expression is all treated as C objects, +use a literal number in the expression: + + print +(0+$x) - $y; + +=item Ranges + +Perl does not allow overloading of ranges, so you can neither safely use ranges +with C endpoints, nor is the iterator variable a C. + + use 5.010; + for my $i (12..13) { + for my $j (20..21) { + say $i ** $j; # produces a floating-point number, + # not an object + } + } + +=item in_effect() + +This method only works on Perl v5.9.4 or later. + +=item hex()/oct() + +C overrides these routines with versions that can also handle big +integer values. Under Perl prior to version v5.9.4, however, this will not +happen unless you specifically ask for it with the two import tags "hex" and +"oct" - and then it will be global and cannot be disabled inside a scope with +C: + + use bigfloat qw/hex oct/; + + print hex("0x1234567890123456"); + { + no bigfloat; + print hex("0x1234567890123456"); + } + +The second call to hex() will warn about a non-portable constant. + +Compare this to: + + use bigfloat; + + # will warn only under Perl older than v5.9.4 + print hex("0x1234567890123456"); + +=back + +=head1 EXAMPLES + +Some cool command line examples to impress the Python crowd ;) + + perl -Mbigfloat -le 'print sqrt(33)' + perl -Mbigfloat -le 'print 2**255' + perl -Mbigfloat -le 'print 4.5+2**255' + perl -Mbigfloat -le 'print 3/7 + 5/7 + 8/3' + perl -Mbigfloat -le 'print 123->is_odd()' + perl -Mbigfloat -le 'print log(2)' + perl -Mbigfloat -le 'print exp(1)' + perl -Mbigfloat -le 'print 2 ** 0.5' + perl -Mbigfloat=a,65 -le 'print 2 ** 0.2' + perl -Mbigfloat=l,GMP -le 'print 7 ** 7777' + +=head1 BUGS + +Please report any bugs or feature requests to +C, or through the web interface at +L (requires login). +We will be notified, and then you'll automatically be notified of +progress on your bug as I make changes. + +=head1 SUPPORT + +You can find documentation for this module with the perldoc command. + + perldoc bigfloat + +You can also look for information at: + +=over 4 + +=item * GitHub + +L + +=item * RT: CPAN's request tracker + +L + +=item * MetaCPAN + +L + +=item * CPAN Testers Matrix + +L + +=back + +=head1 LICENSE + +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. + +=head1 SEE ALSO + +L and L. + +L, L, L and L as well as +L, L and L. + +=head1 AUTHORS + +=over 4 + +=item * + +(C) by Tels L in early 2002 - 2007. + +=item * + +Maintained by Peter John Acklam Epjacklam@gmail.comE, 2014-. + +=back + +=cut diff --git a/git/usr/share/perl5/core_perl/bigint.pm b/git/usr/share/perl5/core_perl/bigint.pm new file mode 100644 index 0000000000000000000000000000000000000000..c34432bc996d9958641ef682c152b9368c0a3e60 --- /dev/null +++ b/git/usr/share/perl5/core_perl/bigint.pm @@ -0,0 +1,870 @@ +package bigint; + +use strict; +use warnings; + +use Carp qw< carp croak >; + +our $VERSION = '0.67'; + +use Exporter; +our @ISA = qw( Exporter ); +our @EXPORT_OK = qw( PI e bpi bexp hex oct ); +our @EXPORT = qw( inf NaN ); + +use overload; + +my $obj_class = "Math::BigInt"; + +############################################################################## + +sub accuracy { + my $self = shift; + $obj_class -> accuracy(@_); +} + +sub precision { + my $self = shift; + $obj_class -> precision(@_); +} + +sub round_mode { + my $self = shift; + $obj_class -> round_mode(@_); +} + +sub div_scale { + my $self = shift; + $obj_class -> div_scale(@_); +} + +sub in_effect { + my $level = shift || 0; + my $hinthash = (caller($level))[10]; + $hinthash->{bigint}; +} + +sub _float_constant { + my $str = shift; + + # We can't pass input directly to new() because of the way it handles the + # combination of non-integers with no upgrading. Such cases are by + # Math::BigInt returned as NaN, but we truncate to an integer. + + # See if we can convert the input string to a string using a normalized form + # consisting of the significand as a signed integer, the character "e", and + # the exponent as a signed integer, e.g., "+0e+0", "+314e-2", and "-1e+3". + + my $nstr; + + if ( + # See if it is an octal number. An octal number like '0377' is also + # accepted by the functions parsing decimal and hexadecimal numbers, so + # handle octal numbers before decimal and hexadecimal numbers. + + $str =~ /^0(?:[Oo]|_*[0-7])/ and + $nstr = Math::BigInt -> oct_str_to_dec_flt_str($str) + + or + + # See if it is decimal number. + + $nstr = Math::BigInt -> dec_str_to_dec_flt_str($str) + + or + + # See if it is a hexadecimal number. Every hexadecimal number has a + # prefix, but the functions parsing numbers don't require it, so check + # to see if it actually is a hexadecimal number. + + $str =~ /^0[Xx]/ and + $nstr = Math::BigInt -> hex_str_to_dec_flt_str($str) + + or + + # See if it is a binary numbers. Every binary number has a prefix, but + # the functions parsing numbers don't require it, so check to see if it + # actually is a binary number. + + $str =~ /^0[Bb]/ and + $nstr = Math::BigInt -> bin_str_to_dec_flt_str($str)) + { + my $pos = index($nstr, 'e'); + my $expo_sgn = substr($nstr, $pos + 1, 1); + my $sign = substr($nstr, 0, 1); + my $mant = substr($nstr, 1, $pos - 1); + my $mant_len = CORE::length($mant); + my $expo = substr($nstr, $pos + 2); + + if ($expo_sgn eq '-') { + if ($mant_len <= $expo) { + return $obj_class -> bzero(); # underflow + } else { + $mant = substr $mant, 0, $mant_len - $expo; # truncate + return $obj_class -> new($sign . $mant); + } + } else { + $mant .= "0" x $expo; # pad with zeros + return $obj_class -> new($sign . $mant); + } + } + + # If we get here, there is a bug in the code above this point. + + warn "Internal error: unable to handle literal constant '$str'.", + " This is a bug, so please report this to the module author."; + return $obj_class -> bnan(); +} + +############################################################################# +# the following two routines are for "use bigint qw/hex oct/;": + +use constant LEXICAL => $] > 5.009004; + +# Internal function with the same semantics as CORE::hex(). This function is +# not used directly, but rather by other front-end functions. + +sub _hex_core { + my $str = shift; + + # Strip off, clean, and parse as much as we can from the beginning. + + my $x; + if ($str =~ s/ ^ ( 0? [xX] )? ( [0-9a-fA-F]* ( _ [0-9a-fA-F]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_hex($chrs); + } else { + $x = $obj_class -> bzero(); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal hexadecimal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +# Internal function with the same semantics as CORE::oct(). This function is +# not used directly, but rather by other front-end functions. + +sub _oct_core { + my $str = shift; + + $str =~ s/^\s*//; + + # Hexadecimal input. + + return _hex_core($str) if $str =~ /^0?[xX]/; + + my $x; + + # Binary input. + + if ($str =~ /^0?[bB]/) { + + # Strip off, clean, and parse as much as we can from the beginning. + + if ($str =~ s/ ^ ( 0? [bB] )? ( [01]* ( _ [01]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_bin($chrs); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal binary digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; + } + + # Octal input. Strip off, clean, and parse as much as we can from the + # beginning. + + if ($str =~ s/ ^ ( 0? [oO] )? ( [0-7]* ( _ [0-7]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_oct($chrs); + } + + # Warn about trailing garbage. CORE::oct() only warns about 8 and 9, but it + # is more helpful to warn about all invalid digits. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal octal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +{ + my $proto = LEXICAL ? '_' : ';$'; + eval ' +sub hex(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _hex_core($str); +} +. + + eval ' +sub oct(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _oct_core($str); +} +. +} + +############################################################################# +# the following two routines are for Perl 5.9.4 or later and are lexical + +my ($prev_oct, $prev_hex, $overridden); + +if (LEXICAL) { eval <<'.' } +sub _hex(_) { + my $hh = (caller 0)[10]; + return $$hh{bigint} ? bigint::_hex_core($_[0]) + : $$hh{bigfloat} ? bigfloat::_hex_core($_[0]) + : $$hh{bigrat} ? bigrat::_hex_core($_[0]) + : $prev_hex ? &$prev_hex($_[0]) + : CORE::hex($_[0]); +} + +sub _oct(_) { + my $hh = (caller 0)[10]; + return $$hh{bigint} ? bigint::_oct_core($_[0]) + : $$hh{bigfloat} ? bigfloat::_oct_core($_[0]) + : $$hh{bigrat} ? bigrat::_oct_core($_[0]) + : $prev_oct ? &$prev_oct($_[0]) + : CORE::oct($_[0]); +} +. + +sub _override { + return if $overridden; + $prev_oct = *CORE::GLOBAL::oct{CODE}; + $prev_hex = *CORE::GLOBAL::hex{CODE}; + no warnings 'redefine'; + *CORE::GLOBAL::oct = \&_oct; + *CORE::GLOBAL::hex = \&_hex; + $overridden = 1; +} + +sub unimport { + delete $^H{bigint}; # no longer in effect + overload::remove_constant('binary', '', 'float', '', 'integer'); +} + +sub import { + my $class = shift; + + $^H{bigint} = 1; # we are in effect + delete $^H{bigfloat}; + delete $^H{bigrat}; + + # for newer Perls always override hex() and oct() with a lexical version: + if (LEXICAL) { + _override(); + } + + my @import = (); + my @a = (); # unrecognized arguments + my $ver; # version? trace? + + while (@_) { + my $param = shift; + + # Accuracy. + + if ($param =~ /^a(ccuracy)?$/) { + push @import, 'accuracy', shift(); + next; + } + + # Precision. + + if ($param =~ /^p(recision)?$/) { + push @import, 'precision', shift(); + next; + } + + # Rounding mode. + + if ($param eq 'round_mode') { + push @import, 'round_mode', shift(); + next; + } + + # Backend library. + + if ($param =~ /^(l|lib|try|only)$/) { + push @import, $param eq 'l' ? 'lib' : $param; + push @import, shift() if @_; + next; + } + + if ($param =~ /^(v|version)$/) { + $ver = 1; + next; + } + + if ($param =~ /^(t|trace)$/) { + $obj_class .= "::Trace"; + eval "require $obj_class"; + die $@ if $@; + next; + } + + if ($param =~ /^(PI|e|bexp|bpi|hex|oct)\z/) { + push @a, $param; + next; + } + + croak("Unknown option '$param'"); + } + + eval "require $obj_class"; + die $@ if $@; + $obj_class -> import(@import); + + if ($ver) { + printf "%-31s v%s\n", $class, $class -> VERSION(); + printf " lib => %-23s v%s\n", + $obj_class -> config("lib"), $obj_class -> config("lib_version"); + printf "%-31s v%s\n", $obj_class, $obj_class -> VERSION(); + exit; + } + + $class -> export_to_level(1, $class, @a); # export inf, NaN, etc. + + overload::constant + + # This takes care each number written as decimal integer and within the + # range of what perl can represent as an integer, e.g., "314", but not + # "3141592653589793238462643383279502884197169399375105820974944592307". + + integer => sub { + #printf "Value '%s' handled by the 'integer' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str); + }, + + # This takes care of each number written with a decimal point and/or + # using floating point notation, e.g., "3.", "3.0", "3.14e+2" (decimal), + # "0b1.101p+2" (binary), "03.14p+2" and "0o3.14p+2" (octal), and + # "0x3.14p+2" (hexadecimal). + + float => sub { + #printf "# Value '%s' handled by the 'float' sub.\n", $_[0]; + _float_constant(shift); + }, + + # Take care of each number written as an integer (no decimal point or + # exponent) using binary, octal, or hexadecimal notation, e.g., "0b101" + # (binary), "0314" and "0o314" (octal), and "0x314" (hexadecimal). + + binary => sub { + #printf "# Value '%s' handled by the 'binary' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str) if $str =~ /^0[XxBb]/; + $obj_class -> from_oct($str); + }; +} + +sub inf () { $obj_class -> binf(); } +sub NaN () { $obj_class -> bnan(); } + +sub PI () { $obj_class -> new(3); } +sub e () { $obj_class -> new(2); } + +sub bpi ($) { $obj_class -> new(3); } + +sub bexp ($$) { + my $x = $obj_class -> new(shift); + $x -> bexp(@_); +} + +1; + +__END__ + +=pod + +=head1 NAME + +bigint - transparent big integer support for Perl + +=head1 SYNOPSIS + + use bigint; + + $x = 2 + 4.5; # Math::BigInt 6 + print 2 ** 512; # Math::BigInt 134...096 + print inf + 42; # Math::BigInt inf + print NaN * 7; # Math::BigInt NaN + print hex("0x1234567890123490"); # Perl v5.10.0 or later + + { + no bigint; + print 2 ** 256; # a normal Perl scalar now + } + + # for older Perls, import into current package: + use bigint qw/hex oct/; + print hex("0x1234567890123490"); + print oct("01234567890123490"); + +=head1 DESCRIPTION + +All numeric literal in the given scope are converted to Math::BigInt objects. +Numeric literal that represent non-integers are truncated to an integer. All +results of expressions are also truncated to integer. + +All operators (including basic math operations) except the range operator C<..> +are overloaded. + +Unlike the L pragma, the C pragma creates integers that are +only limited in their size by the available memory. + +So, the following: + + use bigint; + $x = 1234; + +creates a Math::BigInt and stores a reference to in $x. This happens +transparently and behind your back, so to speak. + +You can see this with the following: + + perl -Mbigint -le 'print ref(1234)' + +Since numbers are actually objects, you can call all the usual methods from +Math::BigFloat on them. This even works to some extent on expressions: + + perl -Mbigint -le '$x = 1234; print $x->bdec()' + perl -Mbigint -le 'print 1234->copy()->binc();' + perl -Mbigint -le 'print 1234->copy()->binc->badd(6);' + perl -Mbigint -le 'print +(1234)->copy()->binc()' + +(Note that print doesn't do what you expect if the expression starts with +'(' hence the C<+>) + +You can even chain the operations together as usual: + + perl -Mbigint -le 'print 1234->copy()->binc->badd(6);' + 1241 + +Please note the following does not work as expected (prints nothing), since +overloading of '..' is not yet possible in Perl (as of v5.8.0): + + perl -Mbigint -le 'for (1..2) { print ref($_); }' + +=head2 use integer vs. use bigint + +There are some difference between C and C. + +Whereas C is limited to what can be handled as a Perl scalar, C can handle arbitrarily large integers. + +Also, C does affect assignments to variables and the return value +of some functions. C truncates these results to integer: + + # perl -Minteger -wle 'print 3.2' + 3.2 + # perl -Minteger -wle 'print 3.2 + 0' + 3 + # perl -Mbigint -wle 'print 3.2' + 3 + # perl -Mbigint -wle 'print 3.2 + 0' + 3 + + # perl -Mbigint -wle 'print exp(1) + 0' + 2 + # perl -Mbigint -wle 'print exp(1)' + 2 + # perl -Minteger -wle 'print exp(1)' + 2.71828182845905 + # perl -Minteger -wle 'print exp(1) + 0' + 2 + +In practice this seldom makes a difference for small integers as B of expressions are truncated anyway, but this can, for instance, affect +the return value of subroutines: + + sub three_integer { use integer; return 3.2; } + sub three_bigint { use bigint; return 3.2; } + + print three_integer(), " ", three_bigint(),"\n"; # prints "3.2 3" + +=head2 Options + +C recognizes some options that can be passed while loading it via +C. The following options exist: + +=over 4 + +=item a or accuracy + +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's bround() method for details. + + perl -Mbigint=a,2 -le 'print 12345+1' + +Note that setting precision and accuracy at the same time is not possible. + +=item p or precision + +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, and are +ignored since all operations happen in integer space. A positive value rounds to +this digit left from the dot. 0 means round to integer. See Math::BigInt's +bfround() method for details. + + perl -mbigint=p,5 -le 'print 123456789+123' + +Note that setting precision and accuracy at the same time is not possible. + +=item t or trace + +This enables a trace mode and is primarily for debugging. + +=item l, lib, try, or only + +Load a different math lib, see L. + + perl -Mbigint=l,GMP -e 'print 2 ** 512' + perl -Mbigint=lib,GMP -e 'print 2 ** 512' + perl -Mbigint=try,GMP -e 'print 2 ** 512' + perl -Mbigint=only,GMP -e 'print 2 ** 512' + +=item hex + +Override the built-in hex() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not necessary, as hex() is lexically overridden in the current +scope whenever the C pragma is active. + +=item oct + +Override the built-in oct() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as oct() is lexically overridden in the +current scope whenever the C pragma is active. + +=item v or version + +this prints out the name and version of the modules and then exits. + + perl -Mbigint=v + +=back + +=head2 Math Library + +Math with the numbers is done (by default) by a backend library module called +Math::BigInt::Calc. The default is equivalent to saying: + + use bigint lib => 'Calc'; + +you can change this by using: + + use bigint lib => 'GMP'; + +The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, +and if this also fails, revert to Math::BigInt::Calc: + + use bigint lib => 'Foo,Math::BigInt::Bar'; + +Using c warns if none of the specified libraries can be found and +L fell back to one of the default libraries. To suppress this +warning, use c instead: + + use bigint try => 'GMP'; + +If you want the code to die instead of falling back, use C instead: + + use bigint only => 'GMP'; + +Please see the respective module documentation for further details. + +=head2 Method calls + +Since all numbers are now objects, you can use all methods that are part of the +Math::BigInt API. + +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. + + $x = 9; $y = $x; + $x = $y = 7; + +Using the copy or the original with overloaded math is okay, e.g., the following +work: + + $x = 9; $y = $x; + print $x + 1, " ", $y,"\n"; # prints 10 9 + +but calling any method that modifies the number directly will result in B +the original and the copy being destroyed: + + $x = 9; $y = $x; + print $x->badd(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->binc(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->bmul(2), " ", $y,"\n"; # prints 18 18 + +Using methods that do not modify, but test that the contents works: + + $x = 9; $y = $x; + $z = 9 if $x->is_zero(); # works fine + +See the documentation about the copy constructor and C<=> in overload, as well +as the documentation in Math::BigInt for further details. + +=head2 Methods + +=over 4 + +=item inf() + +A shortcut to return Math::BigInt->binf(). Useful because Perl does not always +handle bareword C properly. + +=item NaN() + +A shortcut to return Math::BigInt->bnan(). Useful because Perl does not always +handle bareword C properly. + +=item e + + # perl -Mbigint=e -wle 'print e' + +Returns Euler's number C, aka exp(1). Note that under C, this is +truncated to an integer, i.e., 2. + +=item PI + + # perl -Mbigint=PI -wle 'print PI' + +Returns PI. Note that under C, this is truncated to an integer, i.e., 3. + +=item bexp() + + bexp($power, $accuracy); + +Returns Euler's number C raised to the appropriate power, to the wanted +accuracy. + +Note that under C, the result is truncated to an integer. + +Example: + + # perl -Mbigint=bexp -wle 'print bexp(1,80)' + +=item bpi() + + bpi($accuracy); + +Returns PI to the wanted accuracy. Note that under C, this is truncated +to an integer, i.e., 3. + +Example: + + # perl -Mbigint=bpi -wle 'print bpi(80)' + +=item accuracy() + +Set or get the accuracy. + +=item precision() + +Set or get the precision. + +=item round_mode() + +Set or get the rounding mode. + +=item div_scale() + +Set or get the division scale. + +=item in_effect() + + use bigint; + + print "in effect\n" if bigint::in_effect; # true + { + no bigint; + print "in effect\n" if bigint::in_effect; # false + } + +Returns true or false if C is in effect in the current scope. + +This method only works on Perl v5.9.4 or later. + +=back + +=head1 CAVEATS + +=over 4 + +=item Hexadecimal, octal, and binary floating point literals + +Perl (and this module) accepts hexadecimal, octal, and binary floating point +literals, but use them with care with Perl versions before v5.32.0, because some +versions of Perl silently give the wrong result. + +=item Operator vs literal overloading + +C works by overloading handling of integer and floating point literals, +converting them to L objects. + +This means that arithmetic involving only string values or string literals are +performed using Perl's built-in operators. + +For example: + + use bigint; + my $x = "900000000000000009"; + my $y = "900000000000000007"; + print $x - $y; + +outputs C<0> on default 32-bit builds, since C never sees the string +literals. To ensure the expression is all treated as C objects, +use a literal number in the expression: + + print +(0+$x) - $y; + +=item Ranges + +Perl does not allow overloading of ranges, so you can neither safely use ranges +with C endpoints, nor is the iterator variable a C. + + use 5.010; + for my $i (12..13) { + for my $j (20..21) { + say $i ** $j; # produces a floating-point number, + # not an object + } + } + +=item in_effect() + +This method only works on Perl v5.9.4 or later. + +=item hex()/oct() + +C overrides these routines with versions that can also handle big +integer values. Under Perl prior to version v5.9.4, however, this will not +happen unless you specifically ask for it with the two import tags "hex" and +"oct" - and then it will be global and cannot be disabled inside a scope with +C: + + use bigint qw/hex oct/; + + print hex("0x1234567890123456"); + { + no bigint; + print hex("0x1234567890123456"); + } + +The second call to hex() will warn about a non-portable constant. + +Compare this to: + + use bigint; + + # will warn only under Perl older than v5.9.4 + print hex("0x1234567890123456"); + +=back + +=head1 EXAMPLES + +Some cool command line examples to impress the Python crowd ;) You might want +to compare them to the results under -Mbigfloat or -Mbigrat: + + perl -Mbigint -le 'print sqrt(33)' + perl -Mbigint -le 'print 2**255' + perl -Mbigint -le 'print 4.5+2**255' + perl -Mbigint -le 'print 123->is_odd()' + perl -Mbigint=l,GMP -le 'print 7 ** 7777' + +=head1 BUGS + +Please report any bugs or feature requests to +C, or through the web interface at +L (requires login). +We will be notified, and then you'll automatically be notified of +progress on your bug as I make changes. + +=head1 SUPPORT + +You can find documentation for this module with the perldoc command. + + perldoc bigint + +You can also look for information at: + +=over 4 + +=item * GitHub + +L + +=item * RT: CPAN's request tracker + +L + +=item * MetaCPAN + +L + +=item * CPAN Testers Matrix + +L + +=back + +=head1 LICENSE + +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. + +=head1 SEE ALSO + +L and L. + +L, L, L and L as well as +L, L and L. + +=head1 AUTHORS + +=over 4 + +=item * + +(C) by Tels L in early 2002 - 2007. + +=item * + +Maintained by Peter John Acklam Epjacklam@gmail.comE, 2014-. + +=back + +=cut diff --git a/git/usr/share/perl5/core_perl/bignum.pm b/git/usr/share/perl5/core_perl/bignum.pm new file mode 100644 index 0000000000000000000000000000000000000000..995d322d9010dec17a8161f28335de4db06f67c6 --- /dev/null +++ b/git/usr/share/perl5/core_perl/bignum.pm @@ -0,0 +1,986 @@ +package bignum; + +use strict; +use warnings; + +use Carp qw< carp croak >; + +our $VERSION = '0.67'; + +use Exporter; +our @ISA = qw( Exporter ); +our @EXPORT_OK = qw( PI e bpi bexp hex oct ); +our @EXPORT = qw( inf NaN ); + +use overload; + +# Defaults: When a constant is an integer, Inf or NaN, it is converted to an +# object of class $int_class. When a constant is a finite non-integer, it is +# converted to an object of class $float_class. + +my $int_class = 'Math::BigInt'; +my $float_class = 'Math::BigFloat'; + +############################################################################## + +sub accuracy { + shift; + $int_class -> accuracy(@_); + $float_class -> accuracy(@_); +} + +sub precision { + shift; + $int_class -> precision(@_); + $float_class -> precision(@_); +} + +sub round_mode { + shift; + $int_class -> round_mode(@_); + $float_class -> round_mode(@_); +} + +sub div_scale { + shift; + $int_class -> div_scale(@_); + $float_class -> div_scale(@_); +} + +sub upgrade { + shift; + $int_class -> upgrade(@_); +} + +sub downgrade { + shift; + $float_class -> downgrade(@_); +} + +sub in_effect { + my $level = shift || 0; + my $hinthash = (caller($level))[10]; + $hinthash->{bignum}; +} + +sub _float_constant { + my $str = shift; + + # See if we can convert the input string to a string using a normalized form + # consisting of the significand as a signed integer, the character "e", and + # the exponent as a signed integer, e.g., "+0e+0", "+314e-2", and "-1e+3". + + my $nstr; + + if ( + # See if it is an octal number. An octal number like '0377' is also + # accepted by the functions parsing decimal and hexadecimal numbers, so + # handle octal numbers before decimal and hexadecimal numbers. + + $str =~ /^0(?:[Oo]|_*[0-7])/ and + $nstr = Math::BigInt -> oct_str_to_dec_flt_str($str) + + or + + # See if it is decimal number. + + $nstr = Math::BigInt -> dec_str_to_dec_flt_str($str) + + or + + # See if it is a hexadecimal number. Every hexadecimal number has a + # prefix, but the functions parsing numbers don't require it, so check + # to see if it actually is a hexadecimal number. + + $str =~ /^0[Xx]/ and + $nstr = Math::BigInt -> hex_str_to_dec_flt_str($str) + + or + + # See if it is a binary numbers. Every binary number has a prefix, but + # the functions parsing numbers don't require it, so check to see if it + # actually is a binary number. + + $str =~ /^0[Bb]/ and + $nstr = Math::BigInt -> bin_str_to_dec_flt_str($str)) + { + my $pos = index($nstr, 'e'); + my $expo_sgn = substr($nstr, $pos + 1, 1); + my $sign = substr($nstr, 0, 1); + my $mant = substr($nstr, 1, $pos - 1); + my $mant_len = CORE::length($mant); + my $expo = substr($nstr, $pos + 2); + + # The number is a non-integer if and only if the exponent is negative. + + if ($expo_sgn eq '-') { + return $float_class -> new($str); + + my $upgrade = $int_class -> upgrade(); + return $upgrade -> new($nstr) if defined $upgrade; + + if ($mant_len <= $expo) { + return $int_class -> bzero(); # underflow + } else { + $mant = substr $mant, 0, $mant_len - $expo; # truncate + return $int_class -> new($sign . $mant); + } + } else { + $mant .= "0" x $expo; # pad with zeros + return $int_class -> new($sign . $mant); + } + } + + # If we get here, there is a bug in the code above this point. + + warn "Internal error: unable to handle literal constant '$str'.", + " This is a bug, so please report this to the module author."; + return $int_class -> bnan(); +} + +############################################################################# +# the following two routines are for "use bignum qw/hex oct/;": + +use constant LEXICAL => $] > 5.009004; + +# Internal function with the same semantics as CORE::hex(). This function is +# not used directly, but rather by other front-end functions. + +sub _hex_core { + my $str = shift; + + # Strip off, clean, and parse as much as we can from the beginning. + + my $x; + if ($str =~ s/ ^ ( 0? [xX] )? ( [0-9a-fA-F]* ( _ [0-9a-fA-F]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $int_class -> from_hex($chrs); + } else { + $x = $int_class -> bzero(); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal hexadecimal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +# Internal function with the same semantics as CORE::oct(). This function is +# not used directly, but rather by other front-end functions. + +sub _oct_core { + my $str = shift; + + $str =~ s/^\s*//; + + # Hexadecimal input. + + return _hex_core($str) if $str =~ /^0?[xX]/; + + my $x; + + # Binary input. + + if ($str =~ /^0?[bB]/) { + + # Strip off, clean, and parse as much as we can from the beginning. + + if ($str =~ s/ ^ ( 0? [bB] )? ( [01]* ( _ [01]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $int_class -> from_bin($chrs); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal binary digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; + } + + # Octal input. Strip off, clean, and parse as much as we can from the + # beginning. + + if ($str =~ s/ ^ ( 0? [oO] )? ( [0-7]* ( _ [0-7]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $int_class -> from_oct($chrs); + } + + # Warn about trailing garbage. CORE::oct() only warns about 8 and 9, but it + # is more helpful to warn about all invalid digits. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal octal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +{ + my $proto = LEXICAL ? '_' : ';$'; + eval ' +sub hex(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _hex_core($str); +} +. + + eval ' +sub oct(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _oct_core($str); +} +. +} + +############################################################################# +# the following two routines are for Perl 5.9.4 or later and are lexical + +my ($prev_oct, $prev_hex, $overridden); + +if (LEXICAL) { eval <<'.' } +sub _hex(_) { + my $hh = (caller 0)[10]; + return $$hh{bignum} ? bignum::_hex_core($_[0]) + : $$hh{bigrat} ? bigrat::_hex_core($_[0]) + : $$hh{bigint} ? bigint::_hex_core($_[0]) + : $prev_hex ? &$prev_hex($_[0]) + : CORE::hex($_[0]); +} + +sub _oct(_) { + my $hh = (caller 0)[10]; + return $$hh{bignum} ? bignum::_oct_core($_[0]) + : $$hh{bigrat} ? bigrat::_oct_core($_[0]) + : $$hh{bigint} ? bigint::_oct_core($_[0]) + : $prev_oct ? &$prev_oct($_[0]) + : CORE::oct($_[0]); +} +. + +sub _override { + return if $overridden; + $prev_oct = *CORE::GLOBAL::oct{CODE}; + $prev_hex = *CORE::GLOBAL::hex{CODE}; + no warnings 'redefine'; + *CORE::GLOBAL::oct = \&_oct; + *CORE::GLOBAL::hex = \&_hex; + $overridden = 1; +} + +sub unimport { + delete $^H{bignum}; # no longer in effect + overload::remove_constant('binary', '', 'float', '', 'integer'); +} + +sub import { + my $class = shift; + + $^H{bignum} = 1; # we are in effect + delete $^H{bigint}; + delete $^H{bigrat}; + + # for newer Perls always override hex() and oct() with a lexical version: + if (LEXICAL) { + _override(); + } + + my @import = (); # common options + my @int_import = (upgrade => $float_class); # int class only options + my @flt_import = (downgrade => $int_class); # float class only options + my @a = (); # unrecognized arguments + my $ver; # display version info? + + while (@_) { + my $param = shift; + + # Upgrading. + + if ($param eq 'upgrade') { + my $arg = shift; + $float_class = $arg if defined $arg; + push @int_import, 'upgrade', $arg; + next; + } + + # Downgrading. + + if ($param eq 'downgrade') { + my $arg = shift; + $int_class = $arg if defined $arg; + push @flt_import, 'downgrade', $arg; + next; + } + + # Accuracy. + + if ($param =~ /^a(ccuracy)?$/) { + push @import, 'accuracy', shift(); + next; + } + + # Precision. + + if ($param =~ /^p(recision)?$/) { + push @import, 'precision', shift(); + next; + } + + # Rounding mode. + + if ($param eq 'round_mode') { + push @import, 'round_mode', shift(); + next; + } + + # Backend library. + + if ($param =~ /^(l|lib|try|only)$/) { + push @import, $param eq 'l' ? 'lib' : $param; + push @import, shift() if @_; + next; + } + + if ($param =~ /^(v|version)$/) { + $ver = 1; + next; + } + + if ($param =~ /^(PI|e|bexp|bpi|hex|oct)\z/) { + push @a, $param; + next; + } + + croak("Unknown option '$param'"); + } + + eval "require $int_class"; + die $@ if $@; + $int_class -> import(@int_import, @import); + + eval "require $float_class"; + die $@ if $@; + $float_class -> import(@flt_import, @import); + + if ($ver) { + printf "%-31s v%s\n", $class, $class -> VERSION(); + printf " lib => %-23s v%s\n", + $int_class -> config("lib"), $int_class -> config("lib_version"); + printf "%-31s v%s\n", $int_class, $int_class -> VERSION(); + exit; + } + + $class -> export_to_level(1, $class, @a); # export inf, NaN, etc. + + overload::constant + + # This takes care each number written as decimal integer and within the + # range of what perl can represent as an integer, e.g., "314", but not + # "3141592653589793238462643383279502884197169399375105820974944592307". + + integer => sub { + #printf "Value '%s' handled by the 'integer' sub.\n", $_[0]; + my $str = shift; + return $int_class -> new($str); + }, + + # This takes care of each number written with a decimal point and/or + # using floating point notation, e.g., "3.", "3.0", "3.14e+2" (decimal), + # "0b1.101p+2" (binary), "03.14p+2" and "0o3.14p+2" (octal), and + # "0x3.14p+2" (hexadecimal). + + float => sub { + #printf "# Value '%s' handled by the 'float' sub.\n", $_[0]; + _float_constant(shift); + }, + + # Take care of each number written as an integer (no decimal point or + # exponent) using binary, octal, or hexadecimal notation, e.g., "0b101" + # (binary), "0314" and "0o314" (octal), and "0x314" (hexadecimal). + + binary => sub { + #printf "# Value '%s' handled by the 'binary' sub.\n", $_[0]; + my $str = shift; + return $int_class -> new($str) if $str =~ /^0[XxBb]/; + $int_class -> from_oct($str); + }; +} + +sub inf () { $int_class -> binf(); } +sub NaN () { $int_class -> bnan(); } + +# This should depend on the current accuracy/precision. Fixme! +sub PI () { $float_class -> new('3.141592653589793238462643383279502884197'); } +sub e () { $float_class -> new('2.718281828459045235360287471352662497757'); } + +sub bpi ($) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + my $x = Math::BigFloat -> bpi(@_); + Math::BigFloat -> upgrade($up); # reset the upgrading + return $x; +} + +sub bexp ($$) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + my $x = Math::BigFloat -> new(shift) -> bexp(@_); + Math::BigFloat -> upgrade($up); # reset the upgrading + return $x; +} + +1; + +__END__ + +=pod + +=head1 NAME + +bignum - transparent big number support for Perl + +=head1 SYNOPSIS + + use bignum; + + $x = 2 + 4.5; # Math::BigFloat 6.5 + print 2 ** 512 * 0.1; # Math::BigFloat 134...09.6 + print 2 ** 512; # Math::BigInt 134...096 + print inf + 42; # Math::BigInt inf + print NaN * 7; # Math::BigInt NaN + print hex("0x1234567890123490"); # Perl v5.10.0 or later + + { + no bignum; + print 2 ** 256; # a normal Perl scalar now + } + + # for older Perls, import into current package: + use bignum qw/hex oct/; + print hex("0x1234567890123490"); + print oct("01234567890123490"); + +=head1 DESCRIPTION + +=head2 Literal numeric constants + +By default, every literal integer becomes a Math::BigInt object, and literal +non-integer becomes a Math::BigFloat object. Whether a numeric literal is +considered an integer or non-integers depends only on the value of the constant, +not on how it is represented. For instance, the constants 3.14e2 and 0x1.3ap8 +become Math::BigInt objects, because they both represent the integer value +decimal 314. + +The default C is equivalent to + + use bignum downgrade => "Math::BigInt", upgrade => "Math::BigFloat"; + +The classes used for integers and non-integers can be set at compile time with +the C and C options, for example + + # use Math::BigInt for integers and Math::BigRat for non-integers + use bignum upgrade => "Math::BigRat"; + +Note that disabling downgrading and upgrading does not affect how numeric +literals are converted to objects + + # disable both downgrading and upgrading + use bignum downgrade => undef, upgrade => undef; + $x = 2.4; # becomes 2.4 as a Math::BigFloat + $y = 2; # becomes 2 as a Math::BigInt + +=head2 Upgrading and downgrading + +By default, when the result of a computation is an integer, an Inf, or a NaN, +the result is downgraded even when all the operands are instances of the upgrade +class. + + use bignum; + $x = 2.4; # becomes 2.4 as a Math::BigFloat + $y = 1.2; # becomes 1.2 as a Math::BigFloat + $z = $x / $y; # becomes 2 as a Math::BigInt due to downgrading + +Equivalently, by default, when the result of a computation is a finite +non-integer, the result is upgraded even when all the operands are instances of +the downgrade class. + + use bignum; + $x = 7; # becomes 7 as a Math::BigInt + $y = 2; # becomes 2 as a Math::BigInt + $z = $x / $y; # becomes 3.5 as a Math::BigFloat due to upgrading + +The classes used for downgrading and upgrading can be set at runtime with the +L and L methods, but see L below. + +The upgrade and downgrade classes don't have to be Math::BigInt and +Math::BigFloat. For example, to use Math::BigRat as the upgrade class, use + + use bignum upgrade => "Math::BigRat"; + $x = 2; # becomes 2 as a Math::BigInt + $y = 3.6; # becomes 18/5 as a Math::BigRat + +The upgrade and downgrade classes can be modified at runtime + + use bignum; + $x = 3; # becomes 3 as a Math::BigInt + $y = 2; # becomes 2 as a Math::BigInt + $z = $x / $y; # becomes 1.5 as a Math::BigFlaot + + bignum -> upgrade("Math::BigRat"); + $w = $x / $y; # becomes 3/2 as a Math::BigRat + +Disabling downgrading doesn't change the fact that literal constant integers are +converted to the downgrade class, it only prevents downgrading as a result of a +computation. E.g., + + use bignum downgrade => undef; + $x = 2; # becomes 2 as a Math::BigInt + $y = 2.4; # becomes 2.4 as a Math::BigFloat + $z = 1.2; # becomes 1.2 as a Math::BigFloat + $w = $x / $y; # becomes 2 as a Math::BigFloat due to no downgrading + +If you want all numeric literals, both integers and non-integers, to become +Math::BigFloat objects, use the L pragma. + +Equivalently, disabling upgrading doesn't change the fact that literal constant +non-integers are converted to the upgrade class, it only prevents upgrading as a +result of a computation. E.g., + + use bignum upgrade => undef; + $x = 2.5; # becomes 2.5 as a Math::BigFloat + $y = 7; # becomes 7 as a Math::BigInt + $z = 2; # becomes 2 as a Math::BigInt + $w = $x / $y; # becomes 3 as a Math::BigInt due to no upgrading + +If you want all numeric literals, both integers and non-integers, to become +Math::BigInt objects, use the L pragma. + +You can even do + + use bignum upgrade => "Math::BigRat", upgrade => undef; + +which converts all integer literals to Math::BigInt objects and all non-integer +literals to Math::BigRat objects. However, when the result of a computation +involving two Math::BigInt objects results in a non-integer (e.g., 7/2), the +result will be truncted to a Math::BigInt rather than being upgraded to a +Math::BigRat, since upgrading is disabled. + +=head2 Overloading + +Since all numeric literals become objects, you can call all the usual methods +from Math::BigInt and Math::BigFloat on them. This even works to some extent on +expressions: + + perl -Mbignum -le '$x = 1234; print $x->bdec()' + perl -Mbignum -le 'print 1234->copy()->binc();' + perl -Mbignum -le 'print 1234->copy()->binc()->badd(6);' + +=head2 Options + +C recognizes some options that can be passed while loading it via via +C. The following options exist: + +=over 4 + +=item a or accuracy + +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's bround() method for details. + + perl -Mbignum=a,50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item p or precision + +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, while a +positive value rounds to this digit left from the dot. 0 means round to integer. +See Math::BigInt's bfround() method for details. + + perl -Mbignum=p,-50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item l, lib, try, or only + +Load a different math lib, see L. + + perl -Mbignum=l,GMP -e 'print 2 ** 512' + perl -Mbignum=lib,GMP -e 'print 2 ** 512' + perl -Mbignum=try,GMP -e 'print 2 ** 512' + perl -Mbignum=only,GMP -e 'print 2 ** 512' + +=item hex + +Override the built-in hex() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as hex() is lexically overridden in the +current scope whenever the C pragma is active. + +=item oct + +Override the built-in oct() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as oct() is lexically overridden in the +current scope whenever the C pragma is active. + +=item v or version + +this prints out the name and version of the modules and then exits. + + perl -Mbignum=v + +=back + +=head2 Math Library + +Math with the numbers is done (by default) by a backend library module called +Math::BigInt::Calc. The default is equivalent to saying: + + use bignum lib => 'Calc'; + +you can change this by using: + + use bignum lib => 'GMP'; + +The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, +and if this also fails, revert to Math::BigInt::Calc: + + use bignum lib => 'Foo,Math::BigInt::Bar'; + +Using c warns if none of the specified libraries can be found and +L and L fell back to one of the default +libraries. To suppress this warning, use C instead: + + use bignum try => 'GMP'; + +If you want the code to die instead of falling back, use C instead: + + use bignum only => 'GMP'; + +Please see respective module documentation for further details. + +=head2 Method calls + +Since all numbers are now objects, you can use the methods that are part of the +Math::BigInt and Math::BigFloat API. + +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. + + $x = 9; $y = $x; + $x = $y = 7; + +Using the copy or the original with overloaded math is okay, e.g., the following +work: + + $x = 9; $y = $x; + print $x + 1, " ", $y,"\n"; # prints 10 9 + +but calling any method that modifies the number directly will result in B +the original and the copy being destroyed: + + $x = 9; $y = $x; + print $x->badd(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->binc(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->bmul(2), " ", $y,"\n"; # prints 18 18 + +Using methods that do not modify, but test that the contents works: + + $x = 9; $y = $x; + $z = 9 if $x->is_zero(); # works fine + +See the documentation about the copy constructor and C<=> in overload, as well +as the documentation in Math::BigFloat for further details. + +=head2 Methods + +=over 4 + +=item inf() + +A shortcut to return C as an object. Useful because Perl does not always +handle bareword C properly. + +=item NaN() + +A shortcut to return C as an object. Useful because Perl does not always +handle bareword C properly. + +=item e + + # perl -Mbignum=e -wle 'print e' + +Returns Euler's number C, aka exp(1) (= 2.7182818284...). + +=item PI + + # perl -Mbignum=PI -wle 'print PI' + +Returns PI (= 3.1415926532..). + +=item bexp() + + bexp($power, $accuracy); + +Returns Euler's number C raised to the appropriate power, to the wanted +accuracy. + +Example: + + # perl -Mbignum=bexp -wle 'print bexp(1,80)' + +=item bpi() + + bpi($accuracy); + +Returns PI to the wanted accuracy. + +Example: + + # perl -Mbignum=bpi -wle 'print bpi(80)' + +=item accuracy() + +Set or get the accuracy. + +=item precision() + +Set or get the precision. + +=item round_mode() + +Set or get the rounding mode. + +=item div_scale() + +Set or get the division scale. + +=item upgrade() + +Set or get the class that the downgrade class upgrades to, if any. Set the +upgrade class to C to disable upgrading. See C below. + +=item downgrade() + +Set or get the class that the upgrade class downgrades to, if any. Set the +downgrade class to C to disable upgrading. See L below. + +=item in_effect() + + use bignum; + + print "in effect\n" if bignum::in_effect; # true + { + no bignum; + print "in effect\n" if bignum::in_effect; # false + } + +Returns true or false if C is in effect in the current scope. + +This method only works on Perl v5.9.4 or later. + +=back + +=head1 CAVEATS + +=over 4 + +=item The upgrade() and downgrade() methods + +Note that setting both the upgrade and downgrade classes at runtime with the +L and L methods, might not do what you expect: + + # Assuming that downgrading and upgrading hasn't been modified so far, so + # the downgrade and upgrade classes are Math::BigInt and Math::BigFloat, + # respectively, the following sets the upgrade class to Math::BigRat, i.e., + # makes Math::BigInt upgrade to Math::BigRat: + + bignum -> upgrade("Math::BigRat"); + + # The following sets the downgrade class to Math::BigInt::Lite, i.e., makes + # the new upgrade class Math::BigRat downgrade to Math::BigInt::Lite + + bignum -> downgrade("Math::BigInt::Lite"); + + # Note that at this point, it is still Math::BigInt, not Math::BigInt::Lite, + # that upgrades to Math::BigRat, so to get Math::BigInt::Lite to upgrade to + # Math::BigRat, we need to do the following (again): + + bignum -> upgrade("Math::BigRat"); + +A simpler way to do this at runtime is to use import(), + + bignum -> import(upgrade => "Math::BigRat", + downgrade => "Math::BigInt::Lite"); + +=item Hexadecimal, octal, and binary floating point literals + +Perl (and this module) accepts hexadecimal, octal, and binary floating point +literals, but use them with care with Perl versions before v5.32.0, because some +versions of Perl silently give the wrong result. + +=item Operator vs literal overloading + +C works by overloading handling of integer and floating point literals, +converting them to L objects. + +This means that arithmetic involving only string values or string literals are +performed using Perl's built-in operators. + +For example: + + use bigrat; + my $x = "900000000000000009"; + my $y = "900000000000000007"; + print $x - $y; + +outputs C<0> on default 32-bit builds, since C never sees the string +literals. To ensure the expression is all treated as C objects, +use a literal number in the expression: + + print +(0+$x) - $y; + +=item Ranges + +Perl does not allow overloading of ranges, so you can neither safely use ranges +with C endpoints, nor is the iterator variable a C. + + use 5.010; + for my $i (12..13) { + for my $j (20..21) { + say $i ** $j; # produces a floating-point number, + # not an object + } + } + +=item in_effect() + +This method only works on Perl v5.9.4 or later. + +=item hex()/oct() + +C overrides these routines with versions that can also handle big +integer values. Under Perl prior to version v5.9.4, however, this will not +happen unless you specifically ask for it with the two import tags "hex" and +"oct" - and then it will be global and cannot be disabled inside a scope with +C: + + use bignum qw/hex oct/; + + print hex("0x1234567890123456"); + { + no bignum; + print hex("0x1234567890123456"); + } + +The second call to hex() will warn about a non-portable constant. + +Compare this to: + + use bignum; + + # will warn only under Perl older than v5.9.4 + print hex("0x1234567890123456"); + +=back + +=head1 EXAMPLES + +Some cool command line examples to impress the Python crowd ;) + + perl -Mbignum -le 'print sqrt(33)' + perl -Mbignum -le 'print 2**255' + perl -Mbignum -le 'print 4.5+2**255' + perl -Mbignum -le 'print 3/7 + 5/7 + 8/3' + perl -Mbignum -le 'print 123->is_odd()' + perl -Mbignum -le 'print log(2)' + perl -Mbignum -le 'print exp(1)' + perl -Mbignum -le 'print 2 ** 0.5' + perl -Mbignum=a,65 -le 'print 2 ** 0.2' + perl -Mbignum=l,GMP -le 'print 7 ** 7777' + +=head1 BUGS + +Please report any bugs or feature requests to +C, or through the web interface at +L (requires login). +We will be notified, and then you'll automatically be notified of +progress on your bug as I make changes. + +=head1 SUPPORT + +You can find documentation for this module with the perldoc command. + + perldoc bignum + +You can also look for information at: + +=over 4 + +=item * GitHub + +L + +=item * RT: CPAN's request tracker + +L + +=item * MetaCPAN + +L + +=item * CPAN Testers Matrix + +L + +=back + +=head1 LICENSE + +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. + +=head1 SEE ALSO + +L and L. + +L, L, L and L as well as +L, L and L. + +=head1 AUTHORS + +=over 4 + +=item * + +(C) by Tels L in early 2002 - 2007. + +=item * + +Maintained by Peter John Acklam Epjacklam@gmail.comE, 2014-. + +=back + +=cut diff --git a/git/usr/share/perl5/core_perl/bigrat.pm b/git/usr/share/perl5/core_perl/bigrat.pm new file mode 100644 index 0000000000000000000000000000000000000000..6aa5531f2672e311b81ddc46292126c9a4e5d0c1 --- /dev/null +++ b/git/usr/share/perl5/core_perl/bigrat.pm @@ -0,0 +1,811 @@ +package bigrat; + +use strict; +use warnings; + +use Carp qw< carp croak >; + +our $VERSION = '0.67'; + +use Exporter; +our @ISA = qw( Exporter ); +our @EXPORT_OK = qw( PI e bpi bexp hex oct ); +our @EXPORT = qw( inf NaN ); + +use overload; + +my $obj_class = "Math::BigRat"; + +############################################################################## + +sub accuracy { + my $self = shift; + $obj_class -> accuracy(@_); +} + +sub precision { + my $self = shift; + $obj_class -> precision(@_); +} + +sub round_mode { + my $self = shift; + $obj_class -> round_mode(@_); +} + +sub div_scale { + my $self = shift; + $obj_class -> div_scale(@_); +} + +sub in_effect { + my $level = shift || 0; + my $hinthash = (caller($level))[10]; + $hinthash->{bigrat}; +} + +sub _float_constant { + my $str = shift; + + # See if we can convert the input string to a string using a normalized form + # consisting of the significand as a signed integer, the character "e", and + # the exponent as a signed integer, e.g., "+0e+0", "+314e-2", and "-1e+3". + + my $nstr; + + if ( + # See if it is an octal number. An octal number like '0377' is also + # accepted by the functions parsing decimal and hexadecimal numbers, so + # handle octal numbers before decimal and hexadecimal numbers. + + $str =~ /^0(?:[Oo]|_*[0-7])/ and + $nstr = Math::BigInt -> oct_str_to_dec_flt_str($str) + + or + + # See if it is decimal number. + + $nstr = Math::BigInt -> dec_str_to_dec_flt_str($str) + + or + + # See if it is a hexadecimal number. Every hexadecimal number has a + # prefix, but the functions parsing numbers don't require it, so check + # to see if it actually is a hexadecimal number. + + $str =~ /^0[Xx]/ and + $nstr = Math::BigInt -> hex_str_to_dec_flt_str($str) + + or + + # See if it is a binary numbers. Every binary number has a prefix, but + # the functions parsing numbers don't require it, so check to see if it + # actually is a binary number. + + $str =~ /^0[Bb]/ and + $nstr = Math::BigInt -> bin_str_to_dec_flt_str($str)) + { + return $obj_class -> new($nstr); + } + + # If we get here, there is a bug in the code above this point. + + warn "Internal error: unable to handle literal constant '$str'.", + " This is a bug, so please report this to the module author."; + return $obj_class -> bnan(); +} + +############################################################################# +# the following two routines are for "use bigrat qw/hex oct/;": + +use constant LEXICAL => $] > 5.009004; + +# Internal function with the same semantics as CORE::hex(). This function is +# not used directly, but rather by other front-end functions. + +sub _hex_core { + my $str = shift; + + # Strip off, clean, and parse as much as we can from the beginning. + + my $x; + if ($str =~ s/ ^ ( 0? [xX] )? ( [0-9a-fA-F]* ( _ [0-9a-fA-F]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_hex($chrs); + } else { + $x = $obj_class -> bzero(); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal hexadecimal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +# Internal function with the same semantics as CORE::oct(). This function is +# not used directly, but rather by other front-end functions. + +sub _oct_core { + my $str = shift; + + $str =~ s/^\s*//; + + # Hexadecimal input. + + return _hex_core($str) if $str =~ /^0?[xX]/; + + my $x; + + # Binary input. + + if ($str =~ /^0?[bB]/) { + + # Strip off, clean, and parse as much as we can from the beginning. + + if ($str =~ s/ ^ ( 0? [bB] )? ( [01]* ( _ [01]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_bin($chrs); + } + + # Warn about trailing garbage. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal binary digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; + } + + # Octal input. Strip off, clean, and parse as much as we can from the + # beginning. + + if ($str =~ s/ ^ ( 0? [oO] )? ( [0-7]* ( _ [0-7]+ )* ) //x) { + my $chrs = $2; + $chrs =~ tr/_//d; + $chrs = '0' unless CORE::length $chrs; + $x = $obj_class -> from_oct($chrs); + } + + # Warn about trailing garbage. CORE::oct() only warns about 8 and 9, but it + # is more helpful to warn about all invalid digits. + + if (CORE::length($str)) { + require Carp; + Carp::carp(sprintf("Illegal octal digit '%s' ignored", + substr($str, 0, 1))); + } + + return $x; +} + +{ + my $proto = LEXICAL ? '_' : ';$'; + eval ' +sub hex(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _hex_core($str); +} +. + + eval ' +sub oct(' . $proto . ') {' . <<'.'; + my $str = @_ ? $_[0] : $_; + _oct_core($str); +} +. +} + +############################################################################# +# the following two routines are for Perl 5.9.4 or later and are lexical + +my ($prev_oct, $prev_hex, $overridden); + +if (LEXICAL) { eval <<'.' } +sub _hex(_) { + my $hh = (caller 0)[10]; + return $$hh{bigrat} ? bigrat::_hex_core($_[0]) + : $$hh{bigfloat} ? bigfloat::_hex_core($_[0]) + : $$hh{bigint} ? bigint::_hex_core($_[0]) + : $prev_hex ? &$prev_hex($_[0]) + : CORE::hex($_[0]); +} + +sub _oct(_) { + my $hh = (caller 0)[10]; + return $$hh{bigrat} ? bigrat::_oct_core($_[0]) + : $$hh{bigfloat} ? bigfloat::_oct_core($_[0]) + : $$hh{bigint} ? bigint::_oct_core($_[0]) + : $prev_oct ? &$prev_oct($_[0]) + : CORE::oct($_[0]); +} +. + +sub _override { + return if $overridden; + $prev_oct = *CORE::GLOBAL::oct{CODE}; + $prev_hex = *CORE::GLOBAL::hex{CODE}; + no warnings 'redefine'; + *CORE::GLOBAL::oct = \&_oct; + *CORE::GLOBAL::hex = \&_hex; + $overridden = 1; +} + +sub unimport { + delete $^H{bigrat}; # no longer in effect + overload::remove_constant('binary', '', 'float', '', 'integer'); +} + +sub import { + my $class = shift; + + $^H{bigrat} = 1; # we are in effect + delete $^H{bigint}; + delete $^H{bigfloat}; + + # for newer Perls always override hex() and oct() with a lexical version: + if (LEXICAL) { + _override(); + } + + my @import = (); + my @a = (); # unrecognized arguments + my $ver; # version? + + while (@_) { + my $param = shift; + + # Accuracy. + + if ($param =~ /^a(ccuracy)?$/) { + push @import, 'accuracy', shift(); + next; + } + + # Precision. + + if ($param =~ /^p(recision)?$/) { + push @import, 'precision', shift(); + next; + } + + # Rounding mode. + + if ($param eq 'round_mode') { + push @import, 'round_mode', shift(); + next; + } + + # Backend library. + + if ($param =~ /^(l|lib|try|only)$/) { + push @import, $param eq 'l' ? 'lib' : $param; + push @import, shift() if @_; + next; + } + + if ($param =~ /^(v|version)$/) { + $ver = 1; + next; + } + + if ($param =~ /^(t|trace)$/) { + $obj_class .= "::Trace"; + eval "require $obj_class"; + die $@ if $@; + next; + } + + if ($param =~ /^(PI|e|bexp|bpi|hex|oct)\z/) { + push @a, $param; + next; + } + + croak("Unknown option '$param'"); + } + + eval "require $obj_class"; + die $@ if $@; + $obj_class -> import(@import); + + if ($ver) { + printf "%-31s v%s\n", $class, $class -> VERSION(); + printf " lib => %-23s v%s\n", + $obj_class -> config("lib"), $obj_class -> config("lib_version"); + printf "%-31s v%s\n", $obj_class, $obj_class -> VERSION(); + exit; + } + + $class -> export_to_level(1, $class, @a); # export inf, NaN, etc. + + overload::constant + + # This takes care each number written as decimal integer and within the + # range of what perl can represent as an integer, e.g., "314", but not + # "3141592653589793238462643383279502884197169399375105820974944592307". + + integer => sub { + #printf "Value '%s' handled by the 'integer' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str); + }, + + # This takes care of each number written with a decimal point and/or + # using floating point notation, e.g., "3.", "3.0", "3.14e+2" (decimal), + # "0b1.101p+2" (binary), "03.14p+2" and "0o3.14p+2" (octal), and + # "0x3.14p+2" (hexadecimal). + + float => sub { + #printf "# Value '%s' handled by the 'float' sub.\n", $_[0]; + _float_constant(shift); + }, + + # Take care of each number written as an integer (no decimal point or + # exponent) using binary, octal, or hexadecimal notation, e.g., "0b101" + # (binary), "0314" and "0o314" (octal), and "0x314" (hexadecimal). + + binary => sub { + #printf "# Value '%s' handled by the 'binary' sub.\n", $_[0]; + my $str = shift; + return $obj_class -> new($str) if $str =~ /^0[XxBb]/; + $obj_class -> from_oct($str); + }; +} + +sub inf () { $obj_class -> binf(); } +sub NaN () { $obj_class -> bnan(); } + +# This should depend on the current accuracy/precision. Fixme! +sub PI () { $obj_class -> new('3.141592653589793238462643383279502884197'); } +sub e () { $obj_class -> new('2.718281828459045235360287471352662497757'); } + +sub bpi ($) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + my $x = Math::BigFloat -> bpi(@_); + Math::BigFloat -> upgrade($up); # reset the upgrading + return $obj_class -> new($x); +} + +sub bexp ($$) { + my $up = Math::BigFloat -> upgrade(); # get current upgrading, if any ... + Math::BigFloat -> upgrade(undef); # ... and disable + my $x = Math::BigFloat -> new(shift); + $x -> bexp(@_); + Math::BigFloat -> upgrade($up); # reset the upgrading + return $obj_class -> new($x); +} + +1; + +__END__ + +=pod + +=head1 NAME + +bigrat - transparent big rational number support for Perl + +=head1 SYNOPSIS + + use bigrat; + + print 2 + 4.5; # Math::BigRat 13/2 + print 1/3 + 1/4; # Math::BigRat 7/12 + print inf + 42; # Math::BigRat inf + print NaN * 7; # Math::BigRat NaN + print hex("0x1234567890123490"); # Perl v5.10.0 or later + + { + no bigrat; + print 1/3; # 0.33333... + } + + # for older Perls, import into current package: + use bigrat qw/hex oct/; + print hex("0x1234567890123490"); + print oct("01234567890123490"); + +=head1 DESCRIPTION + +All numeric literal in the given scope are converted to Math::BigRat objects. + +All operators (including basic math operations) except the range operator C<..> +are overloaded. + +So, the following: + + use bigrat; + $x = 1234; + +creates a Math::BigRat and stores a reference to in $x. This happens +transparently and behind your back, so to speak. + +You can see this with the following: + + perl -Mbigrat -le 'print ref(1234)' + +Since numbers are actually objects, you can call all the usual methods from +Math::BigRat on them. This even works to some extent on expressions: + + perl -Mbigrat -le '$x = 1234; print $x->bdec()' + perl -Mbigrat -le 'print 1234->copy()->binc();' + perl -Mbigrat -le 'print 1234->copy()->binc->badd(6);' + perl -Mbigrat -le 'print +(1234)->copy()->binc()' + +(Note that print doesn't do what you expect if the expression starts with +'(' hence the C<+>) + +You can even chain the operations together as usual: + + perl -Mbigrat -le 'print 1234->copy()->binc->badd(6);' + 1241 + +Please note the following does not work as expected (prints nothing), since +overloading of '..' is not yet possible in Perl (as of v5.8.0): + + perl -Mbigrat -le 'for (1..2) { print ref($_); }' + +=head2 Options + +C recognizes some options that can be passed while loading it via +C. The following options exist: + +=over 4 + +=item a or accuracy + +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's bround() method for details. + + perl -Mbigrat=a,50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item p or precision + +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, while a +positive value rounds to this digit left from the dot. 0 means round to integer. +See Math::BigInt's bfround() method for details. + + perl -Mbigrat=p,-50 -le 'print sqrt(20)' + +Note that setting precision and accuracy at the same time is not possible. + +=item t or trace + +This enables a trace mode and is primarily for debugging. + +=item l, lib, try, or only + +Load a different math lib, see L. + + perl -Mbigrat=l,GMP -e 'print 2 ** 512' + perl -Mbigrat=lib,GMP -e 'print 2 ** 512' + perl -Mbigrat=try,GMP -e 'print 2 ** 512' + perl -Mbigrat=only,GMP -e 'print 2 ** 512' + +=item hex + +Override the built-in hex() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as hex() is lexically overridden in the +current scope whenever the C pragma is active. + +=item oct + +Override the built-in oct() method with a version that can handle big numbers. +This overrides it by exporting it to the current package. Under Perl v5.10.0 and +higher, this is not so necessary, as oct() is lexically overridden in the +current scope whenever the C pragma is active. + +=item v or version + +this prints out the name and version of the modules and then exits. + + perl -Mbigrat=v + +=back + +=head2 Math Library + +Math with the numbers is done (by default) by a backend library module called +Math::BigInt::Calc. The default is equivalent to saying: + + use bigrat lib => 'Calc'; + +you can change this by using: + + use bigrat lib => 'GMP'; + +The following would first try to find Math::BigInt::Foo, then Math::BigInt::Bar, +and if this also fails, revert to Math::BigInt::Calc: + + use bigrat lib => 'Foo,Math::BigInt::Bar'; + +Using c warns if none of the specified libraries can be found and +L fell back to one of the default libraries. To suppress this +warning, use c instead: + + use bigrat try => 'GMP'; + +If you want the code to die instead of falling back, use C instead: + + use bigrat only => 'GMP'; + +Please see the respective module documentation for further details. + +=head2 Method calls + +Since all numbers are now objects, you can use all methods that are part of the +Math::BigRat API. + +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. + + $x = 9; $y = $x; + $x = $y = 7; + +Using the copy or the original with overloaded math is okay, e.g., the following +work: + + $x = 9; $y = $x; + print $x + 1, " ", $y,"\n"; # prints 10 9 + +but calling any method that modifies the number directly will result in B +the original and the copy being destroyed: + + $x = 9; $y = $x; + print $x->badd(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->binc(1), " ", $y,"\n"; # prints 10 10 + + $x = 9; $y = $x; + print $x->bmul(2), " ", $y,"\n"; # prints 18 18 + +Using methods that do not modify, but test that the contents works: + + $x = 9; $y = $x; + $z = 9 if $x->is_zero(); # works fine + +See the documentation about the copy constructor and C<=> in overload, as well +as the documentation in Math::BigFloat for further details. + +=head2 Methods + +=over 4 + +=item inf() + +A shortcut to return Math::BigRat->binf(). Useful because Perl does not always +handle bareword C properly. + +=item NaN() + +A shortcut to return Math::BigRat->bnan(). Useful because Perl does not always +handle bareword C properly. + +=item e + + # perl -Mbigrat=e -wle 'print e' + +Returns Euler's number C, aka exp(1). + +=item PI + + # perl -Mbigrat=PI -wle 'print PI' + +Returns PI. + +=item bexp() + + bexp($power, $accuracy); + +Returns Euler's number C raised to the appropriate power, to the wanted +accuracy. + +Example: + + # perl -Mbigrat=bexp -wle 'print bexp(1,80)' + +=item bpi() + + bpi($accuracy); + +Returns PI to the wanted accuracy. + +Example: + + # perl -Mbigrat=bpi -wle 'print bpi(80)' + +=item accuracy() + +Set or get the accuracy. + +=item precision() + +Set or get the precision. + +=item round_mode() + +Set or get the rounding mode. + +=item div_scale() + +Set or get the division scale. + +=item in_effect() + + use bigrat; + + print "in effect\n" if bigrat::in_effect; # true + { + no bigrat; + print "in effect\n" if bigrat::in_effect; # false + } + +Returns true or false if C is in effect in the current scope. + +This method only works on Perl v5.9.4 or later. + +=back + +=head1 CAVEATS + +=over 4 + +=item Hexadecimal, octal, and binary floating point literals + +Perl (and this module) accepts hexadecimal, octal, and binary floating point +literals, but use them with care with Perl versions before v5.32.0, because some +versions of Perl silently give the wrong result. + +=item Operator vs literal overloading + +C works by overloading handling of integer and floating point literals, +converting them to L objects. + +This means that arithmetic involving only string values or string literals are +performed using Perl's built-in operators. + +For example: + + use bigrat; + my $x = "900000000000000009"; + my $y = "900000000000000007"; + print $x - $y; + +outputs C<0> on default 32-bit builds, since C never sees the string +literals. To ensure the expression is all treated as C objects, +use a literal number in the expression: + + print +(0+$x) - $y; + +=item Ranges + +Perl does not allow overloading of ranges, so you can neither safely use ranges +with C endpoints, nor is the iterator variable a C. + + use 5.010; + for my $i (12..13) { + for my $j (20..21) { + say $i ** $j; # produces a floating-point number, + # not an object + } + } + +=item in_effect() + +This method only works on Perl v5.9.4 or later. + +=item hex()/oct() + +C overrides these routines with versions that can also handle big +integer values. Under Perl prior to version v5.9.4, however, this will not +happen unless you specifically ask for it with the two import tags "hex" and +"oct" - and then it will be global and cannot be disabled inside a scope with +C: + + use bigrat qw/hex oct/; + + print hex("0x1234567890123456"); + { + no bigrat; + print hex("0x1234567890123456"); + } + +The second call to hex() will warn about a non-portable constant. + +Compare this to: + + use bigrat; + + # will warn only under Perl older than v5.9.4 + print hex("0x1234567890123456"); + +=back + +=head1 EXAMPLES + + perl -Mbigrat -le 'print sqrt(33)' + perl -Mbigrat -le 'print 2**255' + perl -Mbigrat -le 'print 4.5+2**255' + perl -Mbigrat -le 'print 3/7 + 5/7 + 8/3' + perl -Mbigrat -le 'print 12->is_odd()'; + perl -Mbigrat=l,GMP -le 'print 7 ** 7777' + +=head1 BUGS + +Please report any bugs or feature requests to +C, or through the web interface at +L (requires login). +We will be notified, and then you'll automatically be notified of +progress on your bug as I make changes. + +=head1 SUPPORT + +You can find documentation for this module with the perldoc command. + + perldoc bigrat + +You can also look for information at: + +=over 4 + +=item * GitHub + +L + +=item * RT: CPAN's request tracker + +L + +=item * MetaCPAN + +L + +=item * CPAN Testers Matrix + +L + +=back + +=head1 LICENSE + +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. + +=head1 SEE ALSO + +L and L. + +L, L, L and L as well as +L, L and L. + +=head1 AUTHORS + +=over 4 + +=item * + +(C) by Tels L in early 2002 - 2007. + +=item * + +Maintained by Peter John Acklam Epjacklam@gmail.comE, 2014-. + +=back + +=cut diff --git a/git/usr/share/perl5/core_perl/blib.pm b/git/usr/share/perl5/core_perl/blib.pm new file mode 100644 index 0000000000000000000000000000000000000000..f8fd500d5e6d31e7152c4b06ddd91082384ceeff --- /dev/null +++ b/git/usr/share/perl5/core_perl/blib.pm @@ -0,0 +1,93 @@ +package blib; + +=head1 NAME + +blib - Use MakeMaker's uninstalled version of a package + +=head1 SYNOPSIS + + perl -Mblib script [args...] + + perl -Mblib=dir script [args...] + +=head1 DESCRIPTION + +Looks for MakeMaker-like I<'blib'> directory structure starting in +I (or current directory) and working back up to five levels of '..'. + +Intended for use on command line with B<-M> option as a way of testing +arbitrary scripts against an uninstalled version of a package. + +However it is possible to : + + use blib; + or + use blib '..'; + +etc. if you really must. + +=head1 BUGS + +Pollutes global name space for development only task. + +=head1 AUTHOR + +Nick Ing-Simmons nik@tiuk.ti.com + +=cut + +use Cwd; +use File::Spec; + +our $VERSION = '1.07'; +our $Verbose = 0; + +sub import +{ + my $package = shift; + my $dir; + if ($^O eq "MSWin32" && -f "Win32.xs") { + # We don't use getcwd() on Windows because it will internally + # call Win32::GetCwd(), which will get the Win32 module loaded. + # That means that it would not be possible to run `make test` + # for the Win32 module because blib.pm would always load the + # installed version before @INC gets updated with the blib path. + chomp($dir = `cd`); + } + else { + $dir = getcwd; + } + if ($^O eq 'VMS') { ($dir = VMS::Filespec::unixify($dir)) =~ s-/\z--; } + if (@_) + { + $dir = shift; + $dir =~ s/blib\z//; + $dir =~ s,/+\z,,; + $dir = File::Spec->curdir unless ($dir); + die "$dir is not a directory\n" unless (-d $dir); + } + + # detaint: if the user asked for blib, s/he presumably knew + # what s/he wanted + $dir = $1 if $dir =~ /^(.*)$/; + + my $i = 5; + my($blib, $blib_lib, $blib_arch); + while ($i--) + { + $blib = File::Spec->catdir($dir, "blib"); + $blib_lib = File::Spec->catdir($blib, "lib"); + $blib_arch = File::Spec->catdir($blib, "arch"); + + if (-d $blib && -d $blib_arch && -d $blib_lib) + { + unshift(@INC,$blib_arch,$blib_lib); + warn "Using $blib\n" if $Verbose; + return; + } + $dir = File::Spec->catdir($dir, File::Spec->updir); + } + die "Cannot find blib even in $dir\n"; +} + +1; diff --git a/git/usr/share/perl5/core_perl/builtin.pm b/git/usr/share/perl5/core_perl/builtin.pm new file mode 100644 index 0000000000000000000000000000000000000000..ddc176f2567836ee5d5f1455d57d97a61b76b6aa --- /dev/null +++ b/git/usr/share/perl5/core_perl/builtin.pm @@ -0,0 +1,491 @@ +package builtin 0.019; + +use v5.40; + +# All code, including &import, is implemented by always-present +# functions in the perl interpreter itself. +# See also `builtin.c` in perl source + +__END__ + +=head1 NAME + +builtin - Perl pragma to import built-in utility functions + +=head1 SYNOPSIS + + use builtin qw( + true false is_bool + inf nan + weaken unweaken is_weak + blessed refaddr reftype + created_as_string created_as_number + stringify + ceil floor + indexed + trim + is_tainted + export_lexically + load_module + ); + + use builtin ':5.40'; # most of the above + +=head1 DESCRIPTION + +Perl provides several utility functions in the C package. These are +plain functions, and look and behave just like regular user-defined functions +do. They do not provide new syntax or require special parsing. These functions +are always present in the interpreter and can be called at any time by their +fully-qualified names. By default they are not available as short names, but +can be requested for convenience. + +Individual named functions can be imported by listing them as import +parameters on the C statement for this pragma. + +The L module from CPAN provides versions of many of these +functions that can be used on Perl versions where C or specific +functions are not yet available. + +B: At present, many of the functions in the C namespace are +experimental. Calling them will trigger warnings of the +C category. + +=head2 Lexical Import + +This pragma module creates I aliases in the currently-compiling scope +to these builtin functions. This is similar to the lexical effect of other +pragmas such as L and L. + + sub classify + { + my $val = shift; + + use builtin 'is_bool'; + return is_bool($val) ? "boolean" : "not a boolean"; + } + + # the is_bool() function is no longer visible here + # but may still be called by builtin::is_bool() + +Because these functions are imported lexically, rather than by package +symbols, the user does not need to take any special measures to ensure they +don't accidentally appear as object methods from a class. + + package An::Object::Class { + use builtin 'true', 'false'; + ... + } + + # does not appear as a method + An::Object::Class->true; + + # Can't locate object method "true" via package "An::Object::Class" + # at ... + +Once imported, a lexical function is much like any other lexical symbol +(such as a variable) in that it cannot be removed again. If you wish to +limit the visiblity of an imported C function, put it inside its +own scope: + + { + use builtin 'refaddr'; + ... + } + +=head2 Version Bundles + +The entire set of builtin functions that were considered non-experimental by a +version of perl can be imported all at once, by requesting a version bundle. +This is done by giving the perl release version (without its subversion +suffix) after a colon character: + + use builtin ':5.40'; + +The following bundles currently exist: + + Version Includes + ------- -------- + + :5.40 true false weaken unweaken is_weak blessed refaddr reftype + ceil floor is_tainted trim indexed + +=head2 Function Optimisations + +There are a number of optimisations that apply to functions in the L +package. If you replace or override these functions (such as by assignment +into glob references) the optimisations may not take effect. Do so with +caution. + +=head1 FUNCTIONS + +=head2 true + + $val = true; + +Returns the boolean truth value. While any scalar value can be tested for +truth and most defined, non-empty and non-zero values are considered "true" +by perl, this one is special in that L considers it to be a +distinguished boolean value. + +This gives an equivalent value to expressions like C or C. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 false + + $val = false; + +Returns the boolean false value. While any non-true scalar value is +considered "false" by perl, this one is special in that L considers +it to be a distinguished boolean value. + +This gives an equivalent value to expressions like C or C. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 is_bool + + $bool = is_bool($val); + +This function is currently B. + +Returns true when given a distinguished boolean value, or false if not. A +distinguished boolean value is the result of any boolean-returning builtin +function (such as C or C itself), boolean-returning operator +(such as the C or C<==> comparison tests or the C negation operator), +or any variable containing one of these results. + +This function used to be named C. A compatibility alias is provided +currently but will be removed in a later version. + +Available starting with Perl 5.36. + +=head2 inf + + $num = inf; + +This function is currently B. + +Returns the floating-point infinity value. If the underlying numeric C type +does not support such a value, it throws a runtime error instead. + +Available starting with Perl 5.40. + +=head2 nan + + $num = nan; + +This function is currently B. + +Returns the floating-point "Not-a-Number" value. If the underlying numeric C +type does not support such a value, it throws a runtime error instead. + +Available starting with Perl 5.40. + +=head2 weaken + + weaken($ref); + +Weakens a reference. A weakened reference does not contribute to the reference +count of its referent. If only weakened references to a referent remain, it +will be disposed of, and all remaining weak references to it will have their +value set to C. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 unweaken + + unweaken($ref); + +Strengthens a reference, undoing the effects of a previous call to L. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 is_weak + + $bool = is_weak($ref); + +Returns true when given a weakened reference, or false if not a reference or +not weak. + +This function used to be named C. A compatibility alias is provided +currently but will be removed in a later version. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 blessed + + $str = blessed($ref); + +Returns the package name for an object reference, or C for a +non-reference or reference that is not an object. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 refaddr + + $num = refaddr($ref); + +Returns the memory address for a reference, or C for a non-reference. +This value is not likely to be very useful for pure Perl code, but is handy as +a means to test for referential identity or uniqueness. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 reftype + + $str = reftype($ref); + +Returns the basic container type of the referent of a reference, or C +for a non-reference. This is returned as a string in all-capitals, such as +C for array references, or C for hash references. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 created_as_string + + $bool = created_as_string($val); + +This function is currently B. + +Returns a boolean representing if the argument value was originally created as +a string. It will return true for any scalar expression whose most recent +assignment or modification was of a string-like nature - such as assignment +from a string literal, or the result of a string operation such as +concatenation or regexp. It will return false for references (including any +object), numbers, booleans and undef. + +It is unlikely that you will want to use this for regular data validation +within Perl, as it will not return true for regular numbers that are still +perfectly usable as strings, nor for any object reference - especially objects +that overload the stringification operator in an attempt to behave more like +strings. For example + + my $val = URI->new( "https://metacpan.org/" ); + + if( created_as_string $val ) { ... } # this will not execute + +Available starting with Perl 5.36. + +=head2 created_as_number + + $bool = created_as_number($val); + +This function is currently B. + +Returns a boolean representing if the argument value was originally created as +a number. It will return true for any scalar expression whose most recent +assignment or modification was of a numerical nature - such as assignment from +a number literal, or the result of a numerical operation such as addition. It +will return false for references (including any object), strings, booleans and +undef. + +It is unlikely that you will want to use this for regular data validation +within Perl, as it will not return true for regular strings of decimal digits +that are still perfectly usable as numbers, nor for any object reference - +especially objects that overload the numification operator in an attempt to +behave more like numbers. For example + + my $val = Math::BigInt->new( 123 ); + + if( created_as_number $val ) { ... } # this will not execute + +While most Perl code should operate on scalar values without needing to know +their creation history, these two functions are intended to be used by data +serialisation modules such as JSON encoders or similar situations, where +language interoperability concerns require making a distinction between values +that are fundamentally stringlike versus numberlike in nature. + +Available starting with Perl 5.36. + +=head2 stringify + + $str = stringify($val); + +This function is currently B. + +Returns a new plain perl string that represents the given argument. + +When given a value that is already a string, a copy of this value is returned +unchanged. False booleans are treated like the empty string. + +Numbers are turned into a decimal representation. True booleans are treated +like the number 1. + +References to objects in classes that have L and define the C<""> +overload entry will use the delegated method to provide a value here. + +Non-object references, or references to objects in classes without a C<""> +overload will return a string that names the underlying container type of +the reference, its memory address, and possibly its class name if it is an +object. + +Available starting with Perl 5.40. + +=head2 ceil + + $num = ceil($num); + +Returns the smallest integer value greater than or equal to the given +numerical argument. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 floor + + $num = floor($num); + +Returns the largest integer value less than or equal to the given numerical +argument. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 indexed + + @ivpairs = indexed(@items) + +Returns an even-sized list of number/value pairs, where each pair is formed +of a number giving an index in the original list followed by the value at that +position in it. I.e. returns a list twice the size of the original, being +equal to + + (0, $items[0], 1, $items[1], 2, $items[2], ...) + +Note that unlike the core C function, this function returns copies of +its original arguments, not aliases to them. Any modifications of these copies +are I reflected in modifications to the original. + + my @x = ...; + $_++ for indexed @x; # The @x array remains unaffected + +This function is primarily intended to be useful combined with multi-variable +C loop syntax; as + + foreach my ($index, $value) (indexed LIST) { + ... + } + +In scalar context this function returns the size of the list that it would +otherwise have returned, and provokes a warning in the C category. + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 trim + + $stripped = trim($string); + +Returns the input string with whitespace stripped from the beginning +and end. trim() will remove these characters: + +" ", an ordinary space. + +"\t", a tab. + +"\n", a new line (line feed). + +"\r", a carriage return. + +and all other Unicode characters that are flagged as whitespace. +A complete list is in L. + + $var = " Hello world "; # "Hello world" + $var = "\t\t\tHello world"; # "Hello world" + $var = "Hello world\n"; # "Hello world" + $var = "\x{2028}Hello world\x{3000}"; # "Hello world" + +C is equivalent to: + + my $trimmed = $str =~ s/\A\s+//ur =~ s/\s+\z//ur; + +Available starting with Perl 5.36. Since Perl 5.40, it is no longer +experimental and it is included in the 5.40 and higher builtin version +bundles. + +=head2 is_tainted + + $bool = is_tainted($var); + +Returns true when given a tainted variable. + +Available starting with Perl 5.38. + +=head2 export_lexically + + export_lexically($name1, $ref1, $name2, $ref2, ...) + +This function is currently B. + +Exports new lexical names into the scope currently being compiled. Names given +by the first of each pair of values will refer to the corresponding item whose +reference is given by the second. Types of item that are permitted are +subroutines, and scalar, array, and hash variables. If the item is a +subroutine, the name may optionally be prefixed with the C<&> sigil, but for +convenience it doesn't have to. For items that are variables the sigil is +required, and must match the type of the variable. + + export_lexically func => \&func, + '&func' => \&func; # same as above + + export_lexically '$scalar' => \my $var; + +Z<> + + # The following are not permitted + export_lexically '$var' => \@arr; # sigil does not match + export_lexically name => \$scalar; # implied '&' sigil does not match + + export_lexically '*name' => \*globref; # globrefs are not supported + +This must be called at compile time; which typically means during a C +block. Usually this would be used as part of an C method of a module, +when invoked as part of a C statement. + +Available starting with Perl 5.38. + +=head2 load_module + + load_module($module_name); + +This function is currently B. + +Loads a named module from the inclusion paths (C<@INC>). C<$module_name> must +be a string that provides a module name. It cannot be omitted, and providing +an invalid module name will result in an exception. Not providing any argument +results in a compilation error. Returns the loaded module's name on success. + +The effect of C-ing a module is mostly the same as C-ing, +down to the same error conditions when the module does not exist, does not +compile, or does not evaluate to a true value. See also +L feature|feature/"The 'module_true' feature">. + +C can't be used to require a particular version of Perl, nor can +it be given a bareword module name as an argument. + +Available starting with Perl 5.40. + +=head1 SEE ALSO + +L, L, L, L diff --git a/git/usr/share/perl5/core_perl/bytes.pm b/git/usr/share/perl5/core_perl/bytes.pm new file mode 100644 index 0000000000000000000000000000000000000000..9b7ddd13e3ff827cdf3ca62473007af329fe65ab --- /dev/null +++ b/git/usr/share/perl5/core_perl/bytes.pm @@ -0,0 +1,109 @@ +package bytes 1.09; + +use v5.38; + +BEGIN { $bytes::hint_bits = 0x0000_0008 } + +sub import { $^H |= $bytes::hint_bits } +sub unimport { $^H &= ~$bytes::hint_bits } + +sub chr :prototype(_) { BEGIN { import() } &CORE::chr } +sub index :prototype($$;$) { BEGIN { import() } &CORE::index } +sub length :prototype(_) { BEGIN { import() } &CORE::length } +sub ord :prototype(_) { BEGIN { import() } &CORE::ord } +sub rindex :prototype($$;$) { BEGIN { import() } &CORE::rindex } +sub substr :prototype($$;$$) { BEGIN { import() } &CORE::substr } + +__END__ + +=head1 NAME + +bytes - Perl pragma to expose the individual bytes of characters + +=head1 NOTICE + +Because the bytes pragma breaks encapsulation (i.e. it exposes the innards of +how the perl executable currently happens to store a string), the byte values +that result are in an unspecified encoding. + +B If you feel that the functions here within +might be useful for your application, this possibly indicates a +mismatch between your mental model of Perl Unicode and the current +reality. In that case, you may wish to read some of the perl Unicode +documentation: L, L, L and +L. + +=head1 SYNOPSIS + + use bytes; + ... chr(...); # or bytes::chr + ... index(...); # or bytes::index + ... length(...); # or bytes::length + ... ord(...); # or bytes::ord + ... rindex(...); # or bytes::rindex + ... substr(...); # or bytes::substr + no bytes; + + +=head1 DESCRIPTION + +Perl's characters are stored internally as sequences of one or more bytes. +This pragma allows for the examination of the individual bytes that together +comprise a character. + +Originally the pragma was designed for the loftier goal of helping incorporate +Unicode into Perl, but the approach that used it was found to be defective, +and the one remaining legitimate use is for debugging when you need to +non-destructively examine characters' individual bytes. Just insert this +pragma temporarily, and remove it after the debugging is finished. + +The original usage can be accomplished by explicit (rather than this pragma's +implicit) encoding using the L module: + + use Encode qw/encode/; + + my $utf8_byte_string = encode "UTF8", $string; + my $latin1_byte_string = encode "Latin1", $string; + +Or, if performance is needed and you are only interested in the UTF-8 +representation: + + utf8::encode(my $utf8_byte_string = $string); + +C can be used to reverse the effect of C within the +current lexical scope. + +As an example, when Perl sees C<$x = chr(400)>, it encodes the character +in UTF-8 and stores it in C<$x>. Then it is marked as character data, so, +for instance, C returns C<1>. However, in the scope of the +C pragma, C<$x> is treated as a series of bytes - the bytes that make +up the UTF8 encoding - and C returns C<2>: + + $x = chr(400); + print "Length is ", length $x, "\n"; # "Length is 1" + printf "Contents are %vd\n", $x; # "Contents are 400" + { + use bytes; # or "require bytes; bytes::length()" + print "Length is ", length $x, "\n"; # "Length is 2" + printf "Contents are %vd\n", $x; # "Contents are 198.144 (on + # ASCII platforms)" + } + +C, C, C, C and C behave similarly. + +For more on the implications, see L and L. + +C is admittedly handy if you need to know the +B of a Perl scalar. But a more modern way is: + + use Encode 'encode'; + length(encode('UTF-8', $scalar)) + +=head1 LIMITATIONS + +C does not work as an I. + +=head1 SEE ALSO + +L, L, L, L diff --git a/git/usr/share/perl5/core_perl/charnames.pm b/git/usr/share/perl5/core_perl/charnames.pm new file mode 100644 index 0000000000000000000000000000000000000000..472773dece4a61dfef746e03370fbbba22da52bd --- /dev/null +++ b/git/usr/share/perl5/core_perl/charnames.pm @@ -0,0 +1,510 @@ +package charnames; +use strict; +use warnings; +our $VERSION = '1.50'; +use unicore::Name; # mktables-generated algorithmically-defined names +use _charnames (); # The submodule for this where most of the work gets done + +use bytes (); # for $bytes::hint_bits +use re "/aa"; # Everything in here should be ASCII + +# Translate between Unicode character names and their code points. +# This is a wrapper around the submodule C<_charnames>. This design allows +# C<_charnames> to be autoloaded to enable use of \N{...}, but requires this +# module to be explicitly requested for the functions API. + +$Carp::Internal{ (__PACKAGE__) } = 1; + +sub import +{ + shift; ## ignore class name + _charnames->import(@_); +} + +# Cache of already looked-up values. This is set to only contain +# official values, and user aliases can't override them, so scoping is +# not an issue. +my %viacode; + +sub viacode { + return _charnames::viacode(@_); +} + +sub vianame +{ + if (@_ != 1) { + _charnames::carp "charnames::vianame() expects one name argument"; + return () + } + + # Looks up the character name and returns its ordinal if + # found, undef otherwise. + + my $arg = shift; + return () unless length $arg; + + if ($arg =~ /^U\+([0-9a-fA-F]+)$/) { + + # khw claims that this is poor interface design. The function should + # return either a an ord or a chr for all inputs; not be bipolar. But + # can't change it because of backward compatibility. New code can use + # string_vianame() instead. + my $ord = CORE::hex $1; + return chr utf8::unicode_to_native($ord) if $ord <= 255 + || ! ((caller 0)[8] & $bytes::hint_bits); + _charnames::carp _charnames::not_legal_use_bytes_msg($arg, chr $ord); + return; + } + + # The first 1 arg means wants an ord returned; the second that we are in + # runtime, and this is the first level routine called from the user + return _charnames::lookup_name($arg, 1, 1); +} # vianame + +sub string_vianame { + + # Looks up the character name and returns its string representation if + # found, undef otherwise. + + if (@_ != 1) { + _charnames::carp "charnames::string_vianame() expects one name argument"; + return; + } + + my $arg = shift; + return () unless length $arg; + + if ($arg =~ /^U\+([0-9a-fA-F]+)$/) { + + my $ord = CORE::hex $1; + return chr utf8::unicode_to_native($ord) if $ord <= 255 + || ! ((caller 0)[8] & $bytes::hint_bits); + + _charnames::carp _charnames::not_legal_use_bytes_msg($arg, chr $ord); + return; + } + + # The 0 arg means wants a string returned; the 1 arg means that we are in + # runtime, and this is the first level routine called from the user + return _charnames::lookup_name($arg, 0, 1); +} # string_vianame + +1; +__END__ + +=encoding utf8 + +=head1 NAME + +charnames - access to Unicode character names and named character sequences; also define character names + +=head1 SYNOPSIS + + use charnames ':full'; + print "\N{GREEK SMALL LETTER SIGMA} is called sigma.\n"; + print "\N{LATIN CAPITAL LETTER E WITH VERTICAL LINE BELOW}", + " is an officially named sequence of two Unicode characters\n"; + + use charnames ':loose'; + print "\N{Greek small-letter sigma}", + "can be used to ignore case, underscores, most blanks," + "and when you aren't sure if the official name has hyphens\n"; + + use charnames ':short'; + print "\N{greek:Sigma} is an upper-case sigma.\n"; + + use charnames qw(cyrillic greek); + print "\N{sigma} is Greek sigma, and \N{be} is Cyrillic b.\n"; + + use utf8; + use charnames ":full", ":alias" => { + e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE", + mychar => 0xE8000, # Private use area + "自転車に乗る人" => "BICYCLIST" + }; + print "\N{e_ACUTE} is a small letter e with an acute.\n"; + print "\N{mychar} allows me to name private use characters.\n"; + print "And I can create synonyms in other languages,", + " such as \N{自転車に乗る人} for "BICYCLIST (U+1F6B4)\n"; + + use charnames (); + print charnames::viacode(0x1234); # prints "ETHIOPIC SYLLABLE SEE" + printf "%04X", charnames::vianame("GOTHIC LETTER AHSA"); # prints + # "10330" + print charnames::vianame("LATIN CAPITAL LETTER A"); # prints 65 on + # ASCII platforms; + # 193 on EBCDIC + print charnames::string_vianame("LATIN CAPITAL LETTER A"); # prints "A" + +=head1 DESCRIPTION + +Pragma C is used to gain access to the names of the +Unicode characters and named character sequences, and to allow you to define +your own character and character sequence names. + +All forms of the pragma enable use of the following 3 functions: + +=over + +=item * + +L)> for run-time lookup of a +either a character name or a named character sequence, returning its string +representation + +=item * + +L)> for run-time lookup of a +character name (but not a named character sequence) to get its ordinal value +(code point) + +=item * + +L)> for run-time lookup of a code point to get its +Unicode name. + +=back + +Starting in Perl v5.16, any occurrence of C<\N{I}> sequences +in a double-quotish string automatically loads this module with arguments +C<:full> and C<:short> (described below) if it hasn't already been loaded with +different arguments, in order to compile the named Unicode character into +position in the string. Prior to v5.16, an explicit S> was +required to enable this usage. (However, prior to v5.16, the form C> did not enable C<\N{I}>.) + +Note that C<\N{U+I<...>}>, where the I<...> is a hexadecimal number, +also inserts a character into a string. +The character it inserts is the one whose Unicode code point +(ordinal value) is equal to the number. For example, C<"\N{U+263a}"> is +the Unicode (white background, black foreground) smiley face +equivalent to C<"\N{WHITE SMILING FACE}">. +Also note, C<\N{I<...>}> can mean a regex quantifier instead of a character +name, when the I<...> is a number (or comma separated pair of numbers +(see L), and is not related to this pragma. + +The C pragma supports arguments C<:full>, C<:loose>, C<:short>, +script names and L. + +If C<:full> is present, for expansion of +C<\N{I}>, the string I is first looked up in the list of +standard Unicode character names. + +C<:loose> is a variant of C<:full> which allows I to be less +precisely specified. Details are in L. + +If C<:short> is present, and +I has the form C:I>, then I is looked up +as a letter in script I variant +is ignored, and both I and I are converted to all +uppercase for look-up. Other than that, both of them follow L rules if C<:loose> is also specified; strict otherwise. + +Note that C<\N{...}> is compile-time; it's a special form of string +constant used inside double-quotish strings; this means that you cannot +use variables inside the C<\N{...}>. If you want similar run-time +functionality, use +L)>. + +Note, starting in Perl 5.18, the name C refers to the Unicode character +U+1F514, instead of the traditional U+0007. For the latter, use C +or C. + +It is a syntax error to use C<\N{NAME}> where C is unknown. + +For C<\N{NAME}>, it is a fatal error if C is in effect and the +input name is that of a character that won't fit into a byte (i.e., whose +ordinal is above 255). + +Otherwise, any string that includes a C<\N{I}> or +C}>> will automatically have Unicode rules (see +L). + +=head1 LOOSE MATCHES + +By specifying C<:loose>, Unicode's L rules are +selected instead of the strict exact match used otherwise. +That means that I doesn't have to be so precisely specified. +Upper/lower case doesn't matter (except with scripts as mentioned above), nor +do any underscores, and the only hyphens that matter are those at the +beginning or end of a word in the name (with one exception: the hyphen in +U+1180 C does matter). +Also, blanks not adjacent to hyphens don't matter. +The official Unicode names are quite variable as to where they use hyphens +versus spaces to separate word-like units, and this option allows you to not +have to care as much. +The reason non-medial hyphens matter is because of cases like +U+0F60 C versus U+0F68 C. +The hyphen here is significant, as is the space before it, and so both must be +included. + +C<:loose> slows down look-ups by a factor of 2 to 3 versus +C<:full>, but the trade-off may be worth it to you. Each individual look-up +takes very little time, and the results are cached, so the speed difference +would become a factor only in programs that do look-ups of many different +spellings, and probably only when those look-ups are through C and +C, since C<\N{...}> look-ups are done at compile time. + +=head1 ALIASES + +Starting in Unicode 6.1 and Perl v5.16, Unicode defines many abbreviations and +names that were formerly Perl extensions, and some additional ones that Perl +did not previously accept. The list is getting too long to reproduce here, +but you can get the complete list from the Unicode web site: +L. + +Earlier versions of Perl accepted almost all the 6.1 names. These were most +extensively documented in the v5.14 version of this pod: +L. + +=head1 CUSTOM ALIASES + +You can add customized aliases to standard (C<:full>) Unicode naming +conventions. The aliases override any standard definitions, so, if +you're twisted enough, you can change C<"\N{LATIN CAPITAL LETTER A}"> to +mean C<"B">, etc. + +Aliases must begin with a character that is alphabetic. After that, each may +contain any combination of word (C<\w>) characters, SPACE (U+0020), +HYPHEN-MINUS (U+002D), LEFT PARENTHESIS (U+0028), and RIGHT PARENTHESIS +(U+0029). These last two should never have been allowed +in names, and are retained for backwards compatibility only, and may be +deprecated and removed in future releases of Perl, so don't use them for new +names. (More precisely, the first character of a name you specify must be +something that matches all of C<\p{ID_Start}>, C<\p{Alphabetic}>, and +C<\p{Gc=Letter}>. This makes sure it is what any reasonable person would view +as an alphabetic character. And, the continuation characters that match C<\w> +must also match C<\p{ID_Continue}>.) Starting with Perl v5.18, any Unicode +characters meeting the above criteria may be used; prior to that only +Latin1-range characters were acceptable. + +An alias can map to either an official Unicode character name (not a loose +matched name) or to a +numeric code point (ordinal). The latter is useful for assigning names +to code points in Unicode private use areas such as U+E800 through +U+F8FF. +A numeric code point must be a non-negative integer, or a string beginning +with C<"U+"> or C<"0x"> with the remainder considered to be a +hexadecimal integer. A literal numeric constant must be unsigned; it +will be interpreted as hex if it has a leading zero or contains +non-decimal hex digits; otherwise it will be interpreted as decimal. +If it begins with C<"U+">, it is interpreted as the Unicode code point; +otherwise it is interpreted as native. (Only code points below 256 can +differ between Unicode and native.) Thus C is always the Latin letter +"A"; but C<0x41> can be "NO-BREAK SPACE" on EBCDIC platforms. + +Aliases are added either by the use of anonymous hashes: + + use charnames ":alias" => { + e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE", + mychar1 => 0xE8000, + }; + my $str = "\N{e_ACUTE}"; + +or by using a file containing aliases: + + use charnames ":alias" => "pro"; + +This will try to read C<"unicore/pro_alias.pl"> from the C<@INC> path. This +file should return a list in plain perl: + + ( + A_GRAVE => "LATIN CAPITAL LETTER A WITH GRAVE", + A_CIRCUM => "LATIN CAPITAL LETTER A WITH CIRCUMFLEX", + A_DIAERES => "LATIN CAPITAL LETTER A WITH DIAERESIS", + A_TILDE => "LATIN CAPITAL LETTER A WITH TILDE", + A_BREVE => "LATIN CAPITAL LETTER A WITH BREVE", + A_RING => "LATIN CAPITAL LETTER A WITH RING ABOVE", + A_MACRON => "LATIN CAPITAL LETTER A WITH MACRON", + mychar2 => "U+E8001", + ); + +Both these methods insert C<":full"> automatically as the first argument (if no +other argument is given), and you can give the C<":full"> explicitly as +well, like + + use charnames ":full", ":alias" => "pro"; + +C<":loose"> has no effect with these. Input names must match exactly, using +C<":full"> rules. + +Also, both these methods currently allow only single characters to be named. +To name a sequence of characters, use a +L (described below). + +=head1 charnames::string_vianame(I) + +This is a runtime equivalent to C<\N{...}>. I can be any expression +that evaluates to a name accepted by C<\N{...}> under the L +option|/DESCRIPTION> to C. In addition, any other options for the +controlling C<"use charnames"> in the same scope apply, like C<:loose> or any +L >> +in a JSON text, with the cost of bloating the size of JSON texts. + +This option may be useful when you embed JSON in HTML, but embedding +arbitrary JSON in HTML (by some HTML template toolkit or by string +interpolation) is risky in general. You must escape necessary +characters in correct order, depending on the context. + +C will not be affected in any way. + +=head2 indent_length + + $json = $json->indent_length($number_of_spaces) + $length = $json->get_indent_length + +This option is only useful when you also enable C or C. + +JSON::XS indents with three spaces when you C (if requested +by C or C), and the number cannot be changed. +JSON::PP allows you to change/get the number of indent spaces with these +mutator/accessor. The default number of spaces is three (the same as +JSON::XS), and the acceptable range is from C<0> (no indentation; +it'd be better to disable indentation by C) to C<15>. + +=head2 sort_by + + $json = $json->sort_by($code_ref) + $json = $json->sort_by($subroutine_name) + +If you just want to sort keys (names) in JSON objects when you +C, enable C option (see above) that allows you to +sort object keys alphabetically. + +If you do need to sort non-alphabetically for whatever reasons, +you can give a code reference (or a subroutine name) to C, +then the argument will be passed to Perl's C built-in function. + +As the sorting is done in the JSON::PP scope, you usually need to +prepend C to the subroutine name, and the special variables +C<$a> and C<$b> used in the subroutine used by C function. + +Example: + + my %ORDER = (id => 1, class => 2, name => 3); + $json->sort_by(sub { + ($ORDER{$JSON::PP::a} // 999) <=> ($ORDER{$JSON::PP::b} // 999) + or $JSON::PP::a cmp $JSON::PP::b + }); + print $json->encode([ + {name => 'CPAN', id => 1, href => 'http://cpan.org'} + ]); + # [{"id":1,"name":"CPAN","href":"http://cpan.org"}] + +Note that C affects all the plain hashes in the data structure. +If you need finer control, C necessary hashes with a module that +implements ordered hash (such as L and L). +C and C don't affect the key order in Cd +hashes. + + use Hash::Ordered; + tie my %hash, 'Hash::Ordered', + (name => 'CPAN', id => 1, href => 'http://cpan.org'); + print $json->encode([\%hash]); + # [{"name":"CPAN","id":1,"href":"http://cpan.org"}] # order is kept + +=head1 INCREMENTAL PARSING + +This section is also taken from JSON::XS. + +In some cases, there is the need for incremental parsing of JSON +texts. While this module always has to keep both JSON text and resulting +Perl data structure in memory at one time, it does allow you to parse a +JSON stream incrementally. It does so by accumulating text until it has +a full JSON object, which it then can decode. This process is similar to +using C to see if a full JSON object is available, but +is much more efficient (and can be implemented with a minimum of method +calls). + +JSON::PP will only attempt to parse the JSON text once it is sure it +has enough text to get a decisive result, using a very simple but +truly incremental parser. This means that it sometimes won't stop as +early as the full parser, for example, it doesn't detect mismatched +parentheses. The only thing it guarantees is that it starts decoding as +soon as a syntactically valid JSON text has been seen. This means you need +to set resource limits (e.g. C) to ensure the parser will stop +parsing in the presence if syntax errors. + +The following methods implement this incremental parser. + +=head2 incr_parse + + $json->incr_parse( [$string] ) # void context + + $obj_or_undef = $json->incr_parse( [$string] ) # scalar context + + @obj_or_empty = $json->incr_parse( [$string] ) # list context + +This is the central parsing function. It can both append new text and +extract objects from the stream accumulated so far (both of these +functions are optional). + +If C<$string> is given, then this string is appended to the already +existing JSON fragment stored in the C<$json> object. + +After that, if the function is called in void context, it will simply +return without doing anything further. This can be used to add more text +in as many chunks as you want. + +If the method is called in scalar context, then it will try to extract +exactly I JSON object. If that is successful, it will return this +object, otherwise it will return C. If there is a parse error, +this method will croak just as C would do (one can then use +C to skip the erroneous part). This is the most common way of +using the method. + +And finally, in list context, it will try to extract as many objects +from the stream as it can find and return them, or the empty list +otherwise. For this to work, there must be no separators (other than +whitespace) between the JSON objects or arrays, instead they must be +concatenated back-to-back. If an error occurs, an exception will be +raised as in the scalar context case. Note that in this case, any +previously-parsed JSON texts will be lost. + +Example: Parse some JSON arrays/objects in a given string and return +them. + + my @objs = JSON::PP->new->incr_parse ("[5][7][1,2]"); + +=head2 incr_text + + $lvalue_string = $json->incr_text + +This method returns the currently stored JSON fragment as an lvalue, that +is, you can manipulate it. This I works when a preceding call to +C in I successfully returned an object. Under +all other circumstances you must not call this function (I mean it. +although in simple tests it might actually work, it I fail under +real world conditions). As a special exception, you can also call this +method before having parsed anything. + +That means you can only use this function to look at or manipulate text +before or after complete JSON objects, not while the parser is in the +middle of parsing a JSON object. + +This function is useful in two cases: a) finding the trailing text after a +JSON object or b) parsing multiple JSON objects separated by non-JSON text +(such as commas). + +=head2 incr_skip + + $json->incr_skip + +This will reset the state of the incremental parser and will remove +the parsed text from the input buffer so far. This is useful after +C died, in which case the input buffer and incremental parser +state is left unchanged, to skip the text parsed so far and to reset the +parse state. + +The difference to C is that only text until the parse error +occurred is removed. + +=head2 incr_reset + + $json->incr_reset + +This completely resets the incremental parser, that is, after this call, +it will be as if the parser had never parsed anything. + +This is useful if you want to repeatedly parse JSON objects and want to +ignore any trailing data, which means you have to reset the parser after +each successful decode. + +=head1 MAPPING + +Most of this section is also taken from JSON::XS. + +This section describes how JSON::PP maps Perl values to JSON values and +vice versa. These mappings are designed to "do the right thing" in most +circumstances automatically, preserving round-tripping characteristics +(what you put in comes out as something equivalent). + +For the more enlightened: note that in the following descriptions, +lowercase I refers to the Perl interpreter, while uppercase I +refers to the abstract Perl language itself. + +=head2 JSON -> PERL + +=over 4 + +=item object + +A JSON object becomes a reference to a hash in Perl. No ordering of object +keys is preserved (JSON does not preserve object key ordering itself). + +=item array + +A JSON array becomes a reference to an array in Perl. + +=item string + +A JSON string becomes a string scalar in Perl - Unicode codepoints in JSON +are represented by the same codepoints in the Perl string, so no manual +decoding is necessary. + +=item number + +A JSON number becomes either an integer, numeric (floating point) or +string scalar in perl, depending on its range and any fractional parts. On +the Perl level, there is no difference between those as Perl handles all +the conversion details, but an integer may take slightly less memory and +might represent more values exactly than floating point numbers. + +If the number consists of digits only, JSON::PP will try to represent +it as an integer value. If that fails, it will try to represent it as +a numeric (floating point) value if that is possible without loss of +precision. Otherwise it will preserve the number as a string value (in +which case you lose roundtripping ability, as the JSON number will be +re-encoded to a JSON string). + +Numbers containing a fractional or exponential part will always be +represented as numeric (floating point) values, possibly at a loss of +precision (in which case you might lose perfect roundtripping ability, but +the JSON number will still be re-encoded as a JSON number). + +Note that precision is not accuracy - binary floating point values cannot +represent most decimal fractions exactly, and when converting from and to +floating point, JSON::PP only guarantees precision up to but not including +the least significant bit. + +When C is enabled, big integer values and any numeric +values will be converted into L and L +objects respectively, without becoming string scalars or losing +precision. + +=item true, false + +These JSON atoms become C and C, +respectively. They are overloaded to act almost exactly like the numbers +C<1> and C<0>. You can check whether a scalar is a JSON boolean by using +the C function. + +=item null + +A JSON null atom becomes C in Perl. + +=item shell-style comments (C<< # I >>) + +As a nonstandard extension to the JSON syntax that is enabled by the +C setting, shell-style comments are allowed. They can start +anywhere outside strings and go till the end of the line. + +=item tagged values (C<< (I)I >>). + +Another nonstandard extension to the JSON syntax, enabled with the +C setting, are tagged values. In this implementation, the +I must be a perl package/class name encoded as a JSON string, and the +I must be a JSON array encoding optional constructor arguments. + +See L, below, for details. + +=back + + +=head2 PERL -> JSON + +The mapping from Perl to JSON is slightly more difficult, as Perl is a +truly typeless language, so we can only guess which JSON type is meant by +a Perl value. + +=over 4 + +=item hash references + +Perl hash references become JSON objects. As there is no inherent +ordering in hash keys (or JSON objects), they will usually be encoded +in a pseudo-random order. JSON::PP can optionally sort the hash keys +(determined by the I flag and/or I property), so +the same data structure will serialise to the same JSON text (given +same settings and version of JSON::PP), but this incurs a runtime +overhead and is only rarely useful, e.g. when you want to compare some +JSON text against another for equality. + +=item array references + +Perl array references become JSON arrays. + +=item other references + +Other unblessed references are generally not allowed and will cause an +exception to be thrown, except for references to the integers C<0> and +C<1>, which get turned into C and C atoms in JSON. You can +also use C and C to improve +readability. + + to_json [\0, JSON::PP::true] # yields [false,true] + +=item JSON::PP::true, JSON::PP::false + +These special values become JSON true and JSON false values, +respectively. You can also use C<\1> and C<\0> directly if you want. + +=item JSON::PP::null + +This special value becomes JSON null. + +=item blessed objects + +Blessed objects are not directly representable in JSON, but C +allows various ways of handling objects. See L, +below, for details. + +=item simple scalars + +Simple Perl scalars (any scalar that is not a reference) are the most +difficult objects to encode: JSON::PP will encode undefined scalars as +JSON C values, scalars that have last been used in a string context +before encoding as JSON strings, and anything else as number value: + + # dump as number + encode_json [2] # yields [2] + encode_json [-3.0e17] # yields [-3e+17] + my $value = 5; encode_json [$value] # yields [5] + + # used as string, so dump as string + print $value; + encode_json [$value] # yields ["5"] + + # undef becomes null + encode_json [undef] # yields [null] + +You can force the type to be a JSON string by stringifying it: + + my $x = 3.1; # some variable containing a number + "$x"; # stringified + $x .= ""; # another, more awkward way to stringify + print $x; # perl does it for you, too, quite often + # (but for older perls) + +You can force the type to be a JSON number by numifying it: + + my $x = "3"; # some variable containing a string + $x += 0; # numify it, ensuring it will be dumped as a number + $x *= 1; # same thing, the choice is yours. + +You can not currently force the type in other, less obscure, ways. + +Since version 2.91_01, JSON::PP uses a different number detection logic +that converts a scalar that is possible to turn into a number safely. +The new logic is slightly faster, and tends to help people who use older +perl or who want to encode complicated data structure. However, this may +results in a different JSON text from the one JSON::XS encodes (and +thus may break tests that compare entire JSON texts). If you do +need the previous behavior for compatibility or for finer control, +set PERL_JSON_PP_USE_B environmental variable to true before you +C JSON::PP (or JSON.pm). + +Note that numerical precision has the same meaning as under Perl (so +binary to decimal conversion follows the same rules as in Perl, which +can differ to other languages). Also, your perl interpreter might expose +extensions to the floating point numbers of your platform, such as +infinities or NaN's - these cannot be represented in JSON, and it is an +error to pass those in. + +JSON::PP (and JSON::XS) trusts what you pass to C method +(or C function) is a clean, validated data structure with +values that can be represented as valid JSON values only, because it's +not from an external data source (as opposed to JSON texts you pass to +C or C, which JSON::PP considers tainted and +doesn't trust). As JSON::PP doesn't know exactly what you and consumers +of your JSON texts want the unexpected values to be (you may want to +convert them into null, or to stringify them with or without +normalisation (string representation of infinities/NaN may vary +depending on platforms), or to croak without conversion), you're advised +to do what you and your consumers need before you encode, and also not +to numify values that may start with values that look like a number +(including infinities/NaN), without validating. + +=back + +=head2 OBJECT SERIALISATION + +As JSON cannot directly represent Perl objects, you have to choose between +a pure JSON representation (without the ability to deserialise the object +automatically again), and a nonstandard extension to the JSON syntax, +tagged values. + +=head3 SERIALISATION + +What happens when C encounters a Perl object depends on the +C, C, C and C +settings, which are used in this order: + +=over 4 + +=item 1. C is enabled and the object has a C method. + +In this case, C creates a tagged JSON value, using a nonstandard +extension to the JSON syntax. + +This works by invoking the C method on the object, with the first +argument being the object to serialise, and the second argument being the +constant string C to distinguish it from other serialisers. + +The C method can return any number of values (i.e. zero or +more). These values and the package/classname of the object will then be +encoded as a tagged JSON value in the following format: + + ("classname")[FREEZE return values...] + +e.g.: + + ("URI")["http://www.google.com/"] + ("MyDate")[2013,10,29] + ("ImageData::JPEG")["Z3...VlCg=="] + +For example, the hypothetical C C method might use the +objects C and C members to encode the object: + + sub My::Object::FREEZE { + my ($self, $serialiser) = @_; + + ($self->{type}, $self->{id}) + } + +=item 2. C is enabled and the object has a C method. + +In this case, the C method of the object is invoked in scalar +context. It must return a single scalar that can be directly encoded into +JSON. This scalar replaces the object in the JSON text. + +For example, the following C method will convert all L +objects to JSON strings when serialised. The fact that these values +originally were L objects is lost. + + sub URI::TO_JSON { + my ($uri) = @_; + $uri->as_string + } + +=item 3. C is enabled and the object is a C or C. + +The object will be serialised as a JSON number value. + +=item 4. C is enabled. + +The object will be serialised as a JSON null value. + +=item 5. none of the above + +If none of the settings are enabled or the respective methods are missing, +C throws an exception. + +=back + +=head3 DESERIALISATION + +For deserialisation there are only two cases to consider: either +nonstandard tagging was used, in which case C decides, +or objects cannot be automatically be deserialised, in which +case you can use postprocessing or the C or +C callbacks to get some real objects our of +your JSON. + +This section only considers the tagged value case: a tagged JSON object +is encountered during decoding and C is disabled, a parse +error will result (as if tagged values were not part of the grammar). + +If C is enabled, C will look up the C method +of the package/classname used during serialisation (it will not attempt +to load the package as a Perl module). If there is no such method, the +decoding will fail with an error. + +Otherwise, the C method is invoked with the classname as first +argument, the constant string C as second argument, and all the +values from the JSON array (the values originally returned by the +C method) as remaining arguments. + +The method must then return the object. While technically you can return +any Perl scalar, you might have to enable the C setting to +make that work in all cases, so better return an actual blessed reference. + +As an example, let's implement a C function that regenerates the +C from the C example earlier: + + sub My::Object::THAW { + my ($class, $serialiser, $type, $id) = @_; + + $class->new (type => $type, id => $id) + } + + +=head1 ENCODING/CODESET FLAG NOTES + +This section is taken from JSON::XS. + +The interested reader might have seen a number of flags that signify +encodings or codesets - C, C and C. There seems to be +some confusion on what these do, so here is a short comparison: + +C controls whether the JSON text created by C (and expected +by C) is UTF-8 encoded or not, while C and C only +control whether C escapes character values outside their respective +codeset range. Neither of these flags conflict with each other, although +some combinations make less sense than others. + +Care has been taken to make all flags symmetrical with respect to +C and C, that is, texts encoded with any combination of +these flag values will be correctly decoded when the same flags are used +- in general, if you use different flag settings while encoding vs. when +decoding you likely have a bug somewhere. + +Below comes a verbose discussion of these flags. Note that a "codeset" is +simply an abstract set of character-codepoint pairs, while an encoding +takes those codepoint numbers and I them, in our case into +octets. Unicode is (among other things) a codeset, UTF-8 is an encoding, +and ISO-8859-1 (= latin 1) and ASCII are both codesets I encodings at +the same time, which can be confusing. + +=over 4 + +=item C flag disabled + +When C is disabled (the default), then C/C generate +and expect Unicode strings, that is, characters with high ordinal Unicode +values (> 255) will be encoded as such characters, and likewise such +characters are decoded as-is, no changes to them will be done, except +"(re-)interpreting" them as Unicode codepoints or Unicode characters, +respectively (to Perl, these are the same thing in strings unless you do +funny/weird/dumb stuff). + +This is useful when you want to do the encoding yourself (e.g. when you +want to have UTF-16 encoded JSON texts) or when some other layer does +the encoding for you (for example, when printing to a terminal using a +filehandle that transparently encodes to UTF-8 you certainly do NOT want +to UTF-8 encode your data first and have Perl encode it another time). + +=item C flag enabled + +If the C-flag is enabled, C/C will encode all +characters using the corresponding UTF-8 multi-byte sequence, and will +expect your input strings to be encoded as UTF-8, that is, no "character" +of the input string must have any value > 255, as UTF-8 does not allow +that. + +The C flag therefore switches between two modes: disabled means you +will get a Unicode string in Perl, enabled means you get an UTF-8 encoded +octet/binary string in Perl. + +=item C or C flags enabled + +With C (or C) enabled, C will escape characters +with ordinal values > 255 (> 127 with C) and encode the remaining +characters as specified by the C flag. + +If C is disabled, then the result is also correctly encoded in those +character sets (as both are proper subsets of Unicode, meaning that a +Unicode string with all character values < 256 is the same thing as a +ISO-8859-1 string, and a Unicode string with all character values < 128 is +the same thing as an ASCII string in Perl). + +If C is enabled, you still get a correct UTF-8-encoded string, +regardless of these flags, just some more characters will be escaped using +C<\uXXXX> then before. + +Note that ISO-8859-1-I strings are not compatible with UTF-8 +encoding, while ASCII-encoded strings are. That is because the ISO-8859-1 +encoding is NOT a subset of UTF-8 (despite the ISO-8859-1 I being +a subset of Unicode), while ASCII is. + +Surprisingly, C will ignore these flags and so treat all input +values as governed by the C flag. If it is disabled, this allows you +to decode ISO-8859-1- and ASCII-encoded strings, as both strict subsets of +Unicode. If it is enabled, you can correctly decode UTF-8 encoded strings. + +So neither C nor C are incompatible with the C flag - +they only govern when the JSON output engine escapes a character or not. + +The main use for C is to relatively efficiently store binary data +as JSON, at the expense of breaking compatibility with most JSON decoders. + +The main use for C is to force the output to not contain characters +with values > 127, which means you can interpret the resulting string +as UTF-8, ISO-8859-1, ASCII, KOI8-R or most about any character set and +8-bit-encoding, and still get the same data structure back. This is useful +when your channel for JSON transfer is not 8-bit clean or the encoding +might be mangled in between (e.g. in mail), and works because ASCII is a +proper subset of most 8-bit and multibyte encodings in use in the world. + +=back + +=head1 BUGS + +Please report bugs on a specific behavior of this module to RT or GitHub +issues (preferred): + +L + +L + +As for new features and requests to change common behaviors, please +ask the author of JSON::XS (Marc Lehmann, Eschmorp[at]schmorp.deE) +first, by email (important!), to keep compatibility among JSON.pm backends. + +Generally speaking, if you need something special for you, you are advised +to create a new module, maybe based on L, which is smaller and +written in a much cleaner way than this module. + +=head1 SEE ALSO + +The F command line utility for quick experiments. + +L, L, and L for faster alternatives. +L and L for easy migration. + +L and L for older perl users. + +RFC4627 (L) + +RFC7159 (L) + +RFC8259 (L) + +=head1 AUTHOR + +Makamaka Hannyaharamitu, Emakamaka[at]cpan.orgE + +=head1 CURRENT MAINTAINER + +Kenichi Ishigaki, Eishigaki[at]cpan.orgE + +=head1 COPYRIGHT AND LICENSE + +Copyright 2007-2016 by Makamaka Hannyaharamitu + +Most of the documentation is taken from JSON::XS by Marc Lehmann + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/JSON/backportPP/Boolean.pm b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Boolean.pm new file mode 100644 index 0000000000000000000000000000000000000000..641f171ac687e103232271869b77408731ba897d --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Boolean.pm @@ -0,0 +1,44 @@ +package # This is JSON::backportPP + JSON::PP::Boolean; + +use strict; +use warnings; +use overload (); +overload::unimport('overload', qw(0+ ++ -- fallback)); +overload::import('overload', + "0+" => sub { ${$_[0]} }, + "++" => sub { $_[0] = ${$_[0]} + 1 }, + "--" => sub { $_[0] = ${$_[0]} - 1 }, + fallback => 1, +); + +our $VERSION = '4.18'; + +1; + +__END__ + +=head1 NAME + +JSON::PP::Boolean - dummy module providing JSON::PP::Boolean + +=head1 SYNOPSIS + + # do not "use" yourself + +=head1 DESCRIPTION + +This module exists only to provide overload resolution for Storable and similar modules. See +L for more info about this class. + +=head1 AUTHOR + +This idea is from L written by Marc Lehmann + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + diff --git a/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5005.pm b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5005.pm new file mode 100644 index 0000000000000000000000000000000000000000..139990edff0a28474e53f882d4c4efeb2ad7d701 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5005.pm @@ -0,0 +1,131 @@ +package # This is JSON::backportPP + JSON::backportPP5005; + +use 5.005; +use strict; + +my @properties; + +$JSON::PP5005::VERSION = '1.10'; + +BEGIN { + + sub utf8::is_utf8 { + 0; # It is considered that UTF8 flag off for Perl 5.005. + } + + sub utf8::upgrade { + } + + sub utf8::downgrade { + 1; # must always return true. + } + + sub utf8::encode { + } + + sub utf8::decode { + } + + *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii; + *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1; + *JSON::PP::JSON_PP_decode_surrogates = \&_decode_surrogates; + *JSON::PP::JSON_PP_decode_unicode = \&_decode_unicode; + + # missing in B module. + sub B::SVp_IOK () { 0x01000000; } + sub B::SVp_NOK () { 0x02000000; } + sub B::SVp_POK () { 0x04000000; } + + $INC{'bytes.pm'} = 1; # dummy +} + + + +sub _encode_ascii { + join('', map { $_ <= 127 ? chr($_) : sprintf('\u%04x', $_) } unpack('C*', $_[0]) ); +} + + +sub _encode_latin1 { + join('', map { chr($_) } unpack('C*', $_[0]) ); +} + + +sub _decode_surrogates { # from http://homepage1.nifty.com/nomenclator/unicode/ucs_utf.htm + my $uni = 0x10000 + (hex($_[0]) - 0xD800) * 0x400 + (hex($_[1]) - 0xDC00); # from perlunicode + my $bit = unpack('B32', pack('N', $uni)); + + if ( $bit =~ /^00000000000(...)(......)(......)(......)$/ ) { + my ($w, $x, $y, $z) = ($1, $2, $3, $4); + return pack('B*', sprintf('11110%s10%s10%s10%s', $w, $x, $y, $z)); + } + else { + Carp::croak("Invalid surrogate pair"); + } +} + + +sub _decode_unicode { + my ($u) = @_; + my ($utf8bit); + + if ( $u =~ /^00([89a-f][0-9a-f])$/i ) { # 0x80-0xff + return pack( 'H2', $1 ); + } + + my $bit = unpack("B*", pack("H*", $u)); + + if ( $bit =~ /^00000(.....)(......)$/ ) { + $utf8bit = sprintf('110%s10%s', $1, $2); + } + elsif ( $bit =~ /^(....)(......)(......)$/ ) { + $utf8bit = sprintf('1110%s10%s10%s', $1, $2, $3); + } + else { + Carp::croak("Invalid escaped unicode"); + } + + return pack('B*', $utf8bit); +} + + +sub JSON::PP::incr_text { + $_[0]->{_incr_parser} ||= JSON::PP::IncrParser->new; + + if ( $_[0]->{_incr_parser}->{incr_parsing} ) { + Carp::croak("incr_text can not be called when the incremental parser already started parsing"); + } + + $_[0]->{_incr_parser}->{incr_text} = $_[1] if ( @_ > 1 ); + $_[0]->{_incr_parser}->{incr_text}; +} + + +1; +__END__ + +=pod + +=head1 NAME + +JSON::PP5005 - Helper module in using JSON::PP in Perl 5.005 + +=head1 DESCRIPTION + +JSON::PP calls internally. + +=head1 AUTHOR + +Makamaka Hannyaharamitu, Emakamaka[at]cpan.orgE + + +=head1 COPYRIGHT AND LICENSE + +Copyright 2007-2012 by Makamaka Hannyaharamitu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + diff --git a/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5006.pm b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5006.pm new file mode 100644 index 0000000000000000000000000000000000000000..7736fd8debcbb47cc38192798de6c3055222d473 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/JSON/backportPP/Compat5006.pm @@ -0,0 +1,173 @@ +package # This is JSON::backportPP + JSON::backportPP56; + +use 5.006; +use strict; + +my @properties; + +$JSON::PP56::VERSION = '1.08'; + +BEGIN { + + sub utf8::is_utf8 { + my $len = length $_[0]; # char length + { + use bytes; # byte length; + return $len != length $_[0]; # if !=, UTF8-flagged on. + } + } + + + sub utf8::upgrade { + ; # noop; + } + + + sub utf8::downgrade ($;$) { + return 1 unless ( utf8::is_utf8( $_[0] ) ); + + if ( _is_valid_utf8( $_[0] ) ) { + my $downgrade; + for my $c ( unpack( "U*", $_[0] ) ) { + if ( $c < 256 ) { + $downgrade .= pack("C", $c); + } + else { + $downgrade .= pack("U", $c); + } + } + $_[0] = $downgrade; + return 1; + } + else { + Carp::croak("Wide character in subroutine entry") unless ( $_[1] ); + 0; + } + } + + + sub utf8::encode ($) { # UTF8 flag off + if ( utf8::is_utf8( $_[0] ) ) { + $_[0] = pack( "C*", unpack( "C*", $_[0] ) ); + } + else { + $_[0] = pack( "U*", unpack( "C*", $_[0] ) ); + $_[0] = pack( "C*", unpack( "C*", $_[0] ) ); + } + } + + + sub utf8::decode ($) { # UTF8 flag on + if ( _is_valid_utf8( $_[0] ) ) { + utf8::downgrade( $_[0] ); + $_[0] = pack( "U*", unpack( "U*", $_[0] ) ); + } + } + + + *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii; + *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1; + *JSON::PP::JSON_PP_decode_surrogates = \&JSON::PP::_decode_surrogates; + *JSON::PP::JSON_PP_decode_unicode = \&JSON::PP::_decode_unicode; + + unless ( defined &B::SVp_NOK ) { # missing in B module. + eval q{ sub B::SVp_NOK () { 0x02000000; } }; + } + +} + + + +sub _encode_ascii { + join('', + map { + $_ <= 127 ? + chr($_) : + $_ <= 65535 ? + sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_)); + } _unpack_emu($_[0]) + ); +} + + +sub _encode_latin1 { + join('', + map { + $_ <= 255 ? + chr($_) : + $_ <= 65535 ? + sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_)); + } _unpack_emu($_[0]) + ); +} + + +sub _unpack_emu { # for Perl 5.6 unpack warnings + return !utf8::is_utf8($_[0]) ? unpack('C*', $_[0]) + : _is_valid_utf8($_[0]) ? unpack('U*', $_[0]) + : unpack('C*', $_[0]); +} + + +sub _is_valid_utf8 { + my $str = $_[0]; + my $is_utf8; + + while ($str =~ /(?: + ( + [\x00-\x7F] + |[\xC2-\xDF][\x80-\xBF] + |[\xE0][\xA0-\xBF][\x80-\xBF] + |[\xE1-\xEC][\x80-\xBF][\x80-\xBF] + |[\xED][\x80-\x9F][\x80-\xBF] + |[\xEE-\xEF][\x80-\xBF][\x80-\xBF] + |[\xF0][\x90-\xBF][\x80-\xBF][\x80-\xBF] + |[\xF1-\xF3][\x80-\xBF][\x80-\xBF][\x80-\xBF] + |[\xF4][\x80-\x8F][\x80-\xBF][\x80-\xBF] + ) + | (.) + )/xg) + { + if (defined $1) { + $is_utf8 = 1 if (!defined $is_utf8); + } + else { + $is_utf8 = 0 if (!defined $is_utf8); + if ($is_utf8) { # eventually, not utf8 + return; + } + } + } + + return $is_utf8; +} + + +1; +__END__ + +=pod + +=head1 NAME + +JSON::PP56 - Helper module in using JSON::PP in Perl 5.6 + +=head1 DESCRIPTION + +JSON::PP calls internally. + +=head1 AUTHOR + +Makamaka Hannyaharamitu, Emakamaka[at]cpan.orgE + + +=head1 COPYRIGHT AND LICENSE + +Copyright 2007-2012 by Makamaka Hannyaharamitu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + diff --git a/git/usr/share/perl5/vendor_perl/LWP.pm b/git/usr/share/perl5/vendor_perl/LWP.pm new file mode 100644 index 0000000000000000000000000000000000000000..8bddf150a63c818a86a9efce9042328b500466d1 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP.pm @@ -0,0 +1,669 @@ +package LWP; + +our $VERSION = '6.82'; + +require LWP::UserAgent; # this should load everything you need + +1; + +__END__ + +=pod + +=encoding utf-8 + +=head1 NAME + +LWP - The World-Wide Web library for Perl + +=head1 SYNOPSIS + + use LWP; + print "This is libwww-perl-$LWP::VERSION\n"; + + +=head1 DESCRIPTION + +The libwww-perl collection is a set of Perl modules which provides a +simple and consistent application programming interface (API) to the +World-Wide Web. The main focus of the library is to provide classes +and functions that allow you to write WWW clients. The library also +contain modules that are of more general use and even classes that +help you implement simple HTTP servers. + +Most modules in this library provide an object oriented API. The user +agent, requests sent and responses received from the WWW server are +all represented by objects. This makes a simple and powerful +interface to these services. The interface is easy to extend +and customize for your own needs. + +The main features of the library are: + +=over 3 + +=item * + +Contains various reusable components (modules) that can be +used separately or together. + +=item * + +Provides an object oriented model of HTTP-style communication. Within +this framework we currently support access to C, C, C, +C, C, C, and C resources. + +=item * + +Provides a full object oriented interface or +a very simple procedural interface. + +=item * + +Supports the basic and digest authorization schemes. + +=item * + +Supports transparent redirect handling. + +=item * + +Supports access through proxy servers. + +=item * + +Provides parser for F files and a framework for constructing robots. + +=item * + +Supports parsing of HTML forms. + +=item * + +Implements HTTP content negotiation algorithm that can +be used both in protocol modules and in server scripts (like CGI +scripts). + +=item * + +Supports HTTP cookies. + +=item * + +Some simple command line clients, for instance C and C. + +=back + + +=head1 HTTP STYLE COMMUNICATION + + +The libwww-perl library is based on HTTP style communication. This +section tries to describe what that means. + +Let us start with this quote from the HTTP specification document +L: + +=over 3 + +=item * + +The HTTP protocol is based on a request/response paradigm. A client +establishes a connection with a server and sends a request to the +server in the form of a request method, URI, and protocol version, +followed by a MIME-like message containing request modifiers, client +information, and possible body content. The server responds with a +status line, including the message's protocol version and a success or +error code, followed by a MIME-like message containing server +information, entity meta-information, and possible body content. + +=back + +What this means to libwww-perl is that communication always take place +through these steps: First a I object is created and +configured. This object is then passed to a server and we get a +I object in return that we can examine. A request is always +independent of any previous requests, i.e. the service is stateless. +The same simple model is used for any kind of service we want to +access. + +For example, if we want to fetch a document from a remote file server, +then we send it a request that contains a name for that document and +the response will contain the document itself. If we access a search +engine, then the content of the request will contain the query +parameters and the response will contain the query result. If we want +to send a mail message to somebody then we send a request object which +contains our message to the mail server and the response object will +contain an acknowledgment that tells us that the message has been +accepted and will be forwarded to the recipient(s). + +It is as simple as that! + + +=head2 The Request Object + +The libwww-perl request object has the class name L. +The fact that the class name uses C as a +prefix only implies that we use the HTTP model of communication. It +does not limit the kind of services we can try to pass this I +to. For instance, we will send Ls both to ftp and +gopher servers, as well as to the local file system. + +The main attributes of the request objects are: + +=over 3 + +=item * + +B is a short string that tells what kind of +request this is. The most common methods are B, B, +B and B. + +=item * + +B is a string denoting the protocol, server and +the name of the "document" we want to access. The B might +also encode various other parameters. + +=item * + +B contains additional information about the +request and can also used to describe the content. The headers +are a set of keyword/value pairs. + +=item * + +B is an arbitrary amount of data. + +=back + +=head2 The Response Object + +The libwww-perl response object has the class name L. +The main attributes of objects of this class are: + +=over 3 + +=item * + +B is a numerical value that indicates the overall +outcome of the request. + +=item * + +B is a short, human readable string that +corresponds to the I. + +=item * + +B contains additional information about the +response and describe the content. + +=item * + +B is an arbitrary amount of data. + +=back + +Since we don't want to handle all possible I values directly in +our programs, a libwww-perl response object has methods that can be +used to query what kind of response this is. The most commonly used +response classification methods are: + +=over 3 + +=item is_success() + +The request was successfully received, understood or accepted. + +=item is_error() + +The request failed. The server or the resource might not be +available, access to the resource might be denied or other things might +have failed for some reason. + +=back + +=head2 The User Agent + +Let us assume that we have created a I object. What do we +actually do with it in order to receive a I? + +The answer is that you pass it to a I object and this +object takes care of all the things that need to be done +(like low-level communication and error handling) and returns +a I object. The user agent represents your +application on the network and provides you with an interface that +can accept I and return I. + +The user agent is an interface layer between +your application code and the network. Through this interface you are +able to access the various servers on the network. + +The class name for the user agent is L. Every +libwww-perl application that wants to communicate should create at +least one object of this class. The main method provided by this +object is request(). This method takes an L object as +argument and (eventually) returns a L object. + +The user agent has many other attributes that let you +configure how it will interact with the network and with your +application. + +=over 3 + +=item * + +B specifies how much time we give remote servers to +respond before the library disconnects and creates an +internal I response. + +=item * + +B specifies the name that your application uses when it +presents itself on the network. + +=item * + +B can be set to the e-mail address of the person +responsible for running the application. If this is set, then the +address will be sent to the servers with every request. + +=item * + +B specifies whether we should initialize response +headers from the C<< >> section of HTML documents. + +=item * + +B and B specify if and when to go through +a proxy server. L + +=item * + +B provides a way to set up user names and +passwords needed to access certain services. + +=back + +Many applications want even more control over how they interact +with the network and they get this by sub-classing +L. The library includes a +sub-class, L, for robot applications. + +=head2 An Example + +This example shows how the user agent, a request and a response are +represented in actual perl code: + + # Create a user agent object + use LWP::UserAgent; + my $ua = LWP::UserAgent->new; + $ua->agent("MyApp/0.1 "); + + # Create a request + my $req = HTTP::Request->new(POST => 'http://search.cpan.org/search'); + $req->content_type('application/x-www-form-urlencoded'); + $req->content('query=libwww-perl&mode=dist'); + + # Pass request to the user agent and get a response back + my $res = $ua->request($req); + + # Check the outcome of the response + if ($res->is_success) { + print $res->content; + } + else { + print $res->status_line, "\n"; + } + +The C<$ua> is created once when the application starts up. New request +objects should normally created for each request sent. + + +=head1 NETWORK SUPPORT + +This section discusses the various protocol schemes and +the HTTP style methods that headers may be used for each. + +For all requests, a "User-Agent" header is added and initialized from +the C<< $ua->agent >> attribute before the request is handed to the network +layer. In the same way, a "From" header is initialized from the +$ua->from attribute. + +For all responses, the library adds a header called "Client-Date". +This header holds the time when the response was received by +your application. The format and semantics of the header are the +same as the server created "Date" header. You may also encounter other +"Client-XXX" headers. They are all generated by the library +internally and are not received from the servers. + +=head2 HTTP Requests + +HTTP requests are just handed off to an HTTP server and it +decides what happens. Few servers implement methods beside the usual +"GET", "HEAD", "POST" and "PUT", but CGI-scripts may implement +any method they like. + +If the server is not available then the library will generate an +internal error response. + +The library automatically adds a "Host" and a "Content-Length" header +to the HTTP request before it is sent over the network. + +For a GET request you might want to add an "If-Modified-Since" or +"If-None-Match" header to make the request conditional. + +For a POST request you should add the "Content-Type" header. When you +try to emulate HTML EFORM> handling you should usually let the value +of the "Content-Type" header be "application/x-www-form-urlencoded". +See L for examples of this. + +The libwww-perl HTTP implementation currently support the HTTP/1.1 +and HTTP/1.0 protocol. + +The library allows you to access proxy server through HTTP. This +means that you can set up the library to forward all types of request +through the HTTP protocol module. See L for +documentation of this. + + +=head2 HTTPS Requests + +HTTPS requests are HTTP requests over an encrypted network connection +using the SSL protocol developed by Netscape. Everything about HTTP +requests above also apply to HTTPS requests. In addition the library +will add the headers "Client-SSL-Cipher", "Client-SSL-Cert-Subject" and +"Client-SSL-Cert-Issuer" to the response. These headers denote the +encryption method used and the name of the server owner. + +The request can contain the header "If-SSL-Cert-Subject" in order to +make the request conditional on the content of the server certificate. +If the certificate subject does not match, no request is sent to the +server and an internally generated error response is returned. The +value of the "If-SSL-Cert-Subject" header is interpreted as a Perl +regular expression. + + +=head2 FTP Requests + +The library currently supports GET, HEAD and PUT requests. GET +retrieves a file or a directory listing from an FTP server. PUT +stores a file on a ftp server. + +You can specify a ftp account for servers that want this in addition +to user name and password. This is specified by including an "Account" +header in the request. + +User name/password can be specified using basic authorization or be +encoded in the URL. Failed logins return an UNAUTHORIZED response with +"WWW-Authenticate: Basic" and can be treated like basic authorization +for HTTP. + +The library supports ftp ASCII transfer mode by specifying the "type=a" +parameter in the URL. It also supports transfer of ranges for FTP transfers +using the "Range" header. + +Directory listings are by default returned unprocessed (as returned +from the ftp server) with the content media type reported to be +"text/ftp-dir-listing". The L module provides methods +for parsing of these directory listing. + +The ftp module is also able to convert directory listings to HTML and +this can be requested via the standard HTTP content negotiation +mechanisms (add an "Accept: text/html" header in the request if you +want this). + +For normal file retrievals, the "Content-Type" is guessed based on the +file name suffix. See L. + +The "If-Modified-Since" request header works for servers that implement +the C command. It will probably not work for directory listings though. + +Example: + + $req = HTTP::Request->new(GET => 'ftp://me:passwd@ftp.some.where.com/'); + $req->header(Accept => "text/html, */*;q=0.1"); + +=head2 News Requests + +Access to the USENET News system is implemented through the NNTP +protocol. The name of the news server is obtained from the +NNTP_SERVER environment variable and defaults to "news". It is not +possible to specify the hostname of the NNTP server in news: URLs. + +The library supports GET and HEAD to retrieve news articles through the +NNTP protocol. You can also post articles to newsgroups by using +(surprise!) the POST method. + +GET on newsgroups is not implemented yet. + +Examples: + + $req = HTTP::Request->new(GET => 'news:abc1234@a.sn.no'); + + $req = HTTP::Request->new(POST => 'news:comp.lang.perl.test'); + $req->header(Subject => 'This is a test', + From => 'me@some.where.org'); + $req->content(<new(GET => 'gopher://gopher.sn.no/'); + + + +=head2 File Request + +The library supports GET and HEAD methods for file requests. The +"If-Modified-Since" header is supported. All other headers are +ignored. The I component of the file URL must be empty or set +to "localhost". Any other I value will be treated as an error. + +Directories are always converted to an HTML document. For normal +files, the "Content-Type" and "Content-Encoding" in the response are +guessed based on the file suffix. + +Example: + + $req = HTTP::Request->new(GET => 'file:/etc/passwd'); + + +=head2 Mailto Request + +You can send (aka "POST") mail messages using the library. All +headers specified for the request are passed on to the mail system. +The "To" header is initialized from the mail address in the URL. + +Example: + + $req = HTTP::Request->new(POST => 'mailto:libwww@perl.org'); + $req->header(Subject => "subscribe"); + $req->content("Please subscribe me to the libwww-perl mailing list!\n"); + +=head2 CPAN Requests + +URLs with scheme C are redirected to a suitable CPAN +mirror. If you have your own local mirror of CPAN you might tell LWP +to use it for C URLs by an assignment like this: + + $LWP::Protocol::cpan::CPAN = "file:/local/CPAN/"; + +Suitable CPAN mirrors are also picked up from the configuration for +the CPAN.pm, so if you have used that module a suitable mirror should +be picked automatically. If neither of these apply, then a redirect +to the generic CPAN http location is issued. + +Example request to download the newest perl: + + $req = HTTP::Request->new(GET => "cpan:src/latest.tar.gz"); + + +=head1 OVERVIEW OF CLASSES AND PACKAGES + +This table should give you a quick overview of the classes provided by the +library. Indentation shows class inheritance. + + LWP::MemberMixin -- Access to member variables of Perl5 classes + LWP::UserAgent -- WWW user agent class + LWP::RobotUA -- When developing a robot applications + LWP::Protocol -- Interface to various protocol schemes + LWP::Protocol::http -- http:// access + LWP::Protocol::file -- file:// access + LWP::Protocol::ftp -- ftp:// access + ... + + LWP::Authen::Basic -- Handle 401 and 407 responses + LWP::Authen::Digest + + HTTP::Headers -- MIME/RFC822 style header (used by HTTP::Message) + HTTP::Message -- HTTP style message + HTTP::Request -- HTTP request + HTTP::Response -- HTTP response + HTTP::Daemon -- A HTTP server class + + WWW::RobotRules -- Parse robots.txt files + WWW::RobotRules::AnyDBM_File -- Persistent RobotRules + + Net::HTTP -- Low level HTTP client + +The following modules provide various functions and definitions. + + LWP -- This file. Library version number and documentation. + LWP::MediaTypes -- MIME types configuration (text/html etc.) + LWP::Simple -- Simplified procedural interface for common functions + HTTP::Status -- HTTP status code (200 OK etc) + HTTP::Date -- Date parsing module for HTTP date formats + HTTP::Negotiate -- HTTP content negotiation calculation + File::Listing -- Parse directory listings + HTML::Form -- Processing for
s in HTML documents + + +=head1 MORE DOCUMENTATION + +All modules contain detailed information on the interfaces they +provide. The L manpage is the libwww-perl cookbook that contain +examples of typical usage of the library. You might want to take a +look at how the scripts L, L, L +and L are implemented. + +=head1 ENVIRONMENT + +The following environment variables are used by LWP: + +=over + +=item HOME + +The L functions will look for the F<.media.types> and +F<.mime.types> files relative to you home directory. + +=item http_proxy + +=item ftp_proxy + +=item xxx_proxy + +=item no_proxy + +These environment variables can be set to enable communication through +a proxy server. See the description of the C method in +L. + +=item PERL_LWP_ENV_PROXY + +If set to a TRUE value, then the L will by default call +C during initialization. This makes LWP honor the proxy variables +described above. + +=item PERL_LWP_SSL_VERIFY_HOSTNAME + +The default C setting for L. If +not set the default will be 1. Set it as 0 to disable hostname +verification (the default prior to libwww-perl 5.840. + +=item PERL_LWP_SSL_CA_FILE + +=item PERL_LWP_SSL_CA_PATH + +The file and/or directory +where the trusted Certificate Authority certificates +is located. See L for details. + +=item PERL_HTTP_URI_CLASS + +Used to decide what URI objects to instantiate. The default is L. +You might want to set it to L for compatibility with old times. + +=back + +=head1 AUTHORS + +LWP was made possible by contributions from Adam Newby, Albert +Dvornik, Alexandre Duret-Lutz, Andreas Gustafsson, Andreas König, +Andrew Pimlott, Andy Lester, Ben Coleman, Benjamin Low, Ben Low, Ben +Tilly, Blair Zajac, Bob Dalgleish, BooK, Brad Hughes, Brian +J. Murrell, Brian McCauley, Charles C. Fu, Charles Lane, Chris Nandor, +Christian Gilmore, Chris W. Unger, Craig Macdonald, Dale Couch, Dan +Kubb, Dave Dunkin, Dave W. Smith, David Coppit, David Dick, David +D. Kilzer, Doug MacEachern, Edward Avis, erik, Gary Shea, Gisle Aas, +Graham Barr, Gurusamy Sarathy, Hans de Graaff, Harald Joerg, Harry +Bochner, Hugo, Ilya Zakharevich, INOUE Yoshinari, Ivan Panchenko, Jack +Shirazi, James Tillman, Jan Dubois, Jared Rhine, Jim Stern, Joao +Lopes, John Klar, Johnny Lee, Josh Kronengold, Josh Rai, Joshua +Chamas, Joshua Hoblitt, Kartik Subbarao, Keiichiro Nagano, Ken +Williams, KONISHI Katsuhiro, Lee T Lindley, Liam Quinn, Marc Hedlund, +Marc Langheinrich, Mark D. Anderson, Marko Asplund, Mark Stosberg, +Markus B Krüger, Markus Laker, Martijn Koster, Martin Thurn, Matthew +Eldridge, Matthew.van.Eerde, Matt Sergeant, Michael A. Chase, Michael +Quaranta, Michael Thompson, Mike Schilli, Moshe Kaminsky, Nathan +Torkington, Nicolai Langfeldt, Norton Allen, Olly Betts, Paul +J. Schinder, peterm, Philip Guenther, Daniel Buenzli, Pon Hwa Lin, +Radoslaw Zielinski, Radu Greab, Randal L. Schwartz, Richard Chen, +Robin Barker, Roy Fielding, Sander van Zoest, Sean M. Burke, +shildreth, Slaven Rezic, Steve A Fink, Steve Hay, Steven Butler, +Steve_Kilbane, Takanori Ugai, Thomas Lotterer, Tim Bunce, Tom Hughes, +Tony Finch, Ville Skyttä, Ward Vandewege, William York, Yale Huang, +and Yitzchak Scott-Thoennes. + +LWP owes a lot in motivation, design, and code, to the libwww-perl +library for Perl4 by Roy Fielding, which included work from Alberto +Accomazzi, James Casey, Brooks Cutter, Martijn Koster, Oscar +Nierstrasz, Mel Melchner, Gertjan van Oosten, Jared Rhine, Jack +Shirazi, Gene Spafford, Marc VanHeyningen, Steven E. Brenner, Marion +Hakanson, Waldemar Kebsch, Tony Sanders, and Larry Wall; see the +libwww-perl-0.40 library for details. + +=head1 COPYRIGHT + + Copyright 1995-2009, Gisle Aas + Copyright 1995, Martijn Koster + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +=head1 AVAILABILITY + +The latest version of this library is likely to be available from CPAN +as well as: + + http://github.com/libwww-perl/libwww-perl + +The best place to discuss this code is on the +mailing list. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Authen/Basic.pm b/git/usr/share/perl5/vendor_perl/LWP/Authen/Basic.pm new file mode 100644 index 0000000000000000000000000000000000000000..f701fe28084c5afe9c78ffca4450aa9d2315b76c --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Authen/Basic.pm @@ -0,0 +1,86 @@ +package LWP::Authen::Basic; + +use strict; + +our $VERSION = '6.82'; + +require Encode; +require MIME::Base64; + +sub auth_header { + my($class, $user, $pass, $request, $ua, $h) = @_; + + my $userpass = "$user:$pass"; + # https://tools.ietf.org/html/rfc7617#section-2.1 + my $charset = uc($h->{auth_param}->{charset} || ""); + $userpass = Encode::encode($charset, $userpass) + if ($charset eq "UTF-8"); + + return "Basic " . MIME::Base64::encode($userpass, ""); +} + +sub _reauth_requested { + return 0; +} + +sub authenticate +{ + my($class, $ua, $proxy, $auth_param, $response, + $request, $arg, $size) = @_; + + my $realm = $auth_param->{realm} || ""; + my $url = $proxy ? $request->{proxy} : $request->uri_canonical; + return $response unless $url; + my $host_port = $url->host_port; + my $auth_header = $proxy ? "Proxy-Authorization" : "Authorization"; + + my @m = $proxy ? (m_proxy => $url) : (m_host_port => $host_port); + push(@m, realm => $realm); + + my $h = $ua->get_my_handler("request_prepare", @m, sub { + $_[0]{callback} = sub { + my($req, $ua, $h) = @_; + my($user, $pass) = $ua->credentials($host_port, $h->{realm}); + if (defined $user) { + my $auth_value = $class->auth_header($user, $pass, $req, $ua, $h); + $req->header($auth_header => $auth_value); + } + }; + }); + $h->{auth_param} = $auth_param; + + my $reauth_requested + = $class->_reauth_requested($auth_param, $ua, $request, $auth_header); + if ( !$proxy + && (!$request->header($auth_header) || $reauth_requested) + && $ua->credentials($host_port, $realm)) + { + # we can make sure this handler applies and retry + add_path($h, $url->path) + unless $reauth_requested; # Do not clobber up path list for retries + return $ua->request($request->clone, $arg, $size, $response); + } + + my($user, $pass) = $ua->get_basic_credentials($realm, $url, $proxy); + unless (defined $user and defined $pass) { + $ua->set_my_handler("request_prepare", undef, @m); # delete handler + return $response; + } + + # check that the password has changed + my ($olduser, $oldpass) = $ua->credentials($host_port, $realm); + return $response if (defined $olduser and defined $oldpass and + $user eq $olduser and $pass eq $oldpass); + + $ua->credentials($host_port, $realm, $user, $pass); + add_path($h, $url->path) unless $proxy; + return $ua->request($request->clone, $arg, $size, $response); +} + +sub add_path { + my($h, $path) = @_; + $path =~ s,[^/]+\z,,; + push(@{$h->{m_path_prefix}}, $path); +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Authen/Digest.pm b/git/usr/share/perl5/vendor_perl/LWP/Authen/Digest.pm new file mode 100644 index 0000000000000000000000000000000000000000..3c8cfab7d52b6eb10468847bd3a79447a3b0f517 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Authen/Digest.pm @@ -0,0 +1,80 @@ +package LWP::Authen::Digest; + +use strict; +use parent 'LWP::Authen::Basic'; + +our $VERSION = '6.82'; + +require Digest::MD5; + +sub _reauth_requested { + my ($class, $auth_param, $ua, $request, $auth_header) = @_; + my $ret = defined($$auth_param{stale}) && lc($$auth_param{stale}) eq 'true'; + if ($ret) { + my $hdr = $request->header($auth_header); + $hdr =~ tr/,/;/; # "," is used to separate auth-params!! + ($hdr) = HTTP::Headers::Util::split_header_words($hdr); + my $nonce = {@$hdr}->{nonce}; + delete $$ua{authen_md5_nonce_count}{$nonce}; + } + return $ret; +} + +sub auth_header { + my($class, $user, $pass, $request, $ua, $h) = @_; + + my $auth_param = $h->{auth_param}; + + my $nc = sprintf "%08X", ++$ua->{authen_md5_nonce_count}{$auth_param->{nonce}}; + my $cnonce = sprintf "%8x", time; + + my $uri = $request->uri->path_query; + $uri = "/" unless length $uri; + + my $md5 = Digest::MD5->new; + + my(@digest); + $md5->add(join(":", $user, $auth_param->{realm}, $pass)); + push(@digest, $md5->hexdigest); + $md5->reset; + + push(@digest, $auth_param->{nonce}); + + if ($auth_param->{qop}) { + push(@digest, $nc, $cnonce, ($auth_param->{qop} =~ m|^auth[,;]auth-int$|) ? 'auth' : $auth_param->{qop}); + } + + $md5->add(join(":", $request->method, $uri)); + push(@digest, $md5->hexdigest); + $md5->reset; + + $md5->add(join(":", @digest)); + my($digest) = $md5->hexdigest; + $md5->reset; + + my %resp = map { $_ => $auth_param->{$_} } qw(realm nonce opaque); + @resp{qw(username uri response algorithm)} = ($user, $uri, $digest, "MD5"); + + if (($auth_param->{qop} || "") =~ m|^auth([,;]auth-int)?$|) { + @resp{qw(qop cnonce nc)} = ("auth", $cnonce, $nc); + } + + my(@order) = qw(username realm qop algorithm uri nonce nc cnonce response opaque); + my @pairs; + for (@order) { + next unless defined $resp{$_}; + + # RFC2617 says that qop-value and nc-value should be unquoted. + if ( $_ eq 'qop' || $_ eq 'nc' ) { + push(@pairs, "$_=" . $resp{$_}); + } + else { + push(@pairs, "$_=" . qq("$resp{$_}")); + } + } + + my $auth_value = "Digest " . join(", ", @pairs); + return $auth_value; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Authen/Ntlm.pm b/git/usr/share/perl5/vendor_perl/LWP/Authen/Ntlm.pm new file mode 100644 index 0000000000000000000000000000000000000000..203829c69d2fa9f05c1893e840c9526f46b7514c --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Authen/Ntlm.pm @@ -0,0 +1,183 @@ +package LWP::Authen::Ntlm; + +use strict; + +our $VERSION = '6.82'; + +use Authen::NTLM "1.02"; +use MIME::Base64 "2.12"; + +sub authenticate { + my($class, $ua, $proxy, $auth_param, $response, + $request, $arg, $size) = @_; + + my($user, $pass) = $ua->get_basic_credentials($auth_param->{realm}, + $request->uri, $proxy); + + unless(defined $user and defined $pass) { + return $response; + } + + if (!$ua->conn_cache()) { + warn "The keep_alive option must be enabled for NTLM authentication to work. NTLM authentication aborted.\n"; + return $response; + } + + my($domain, $username) = split(/\\/, $user); + + ntlm_domain($domain); + ntlm_user($username); + ntlm_password($pass); + + my $auth_header = $proxy ? "Proxy-Authorization" : "Authorization"; + + # my ($challenge) = $response->header('WWW-Authenticate'); + my $challenge; + foreach ($response->header('WWW-Authenticate')) { + last if /^NTLM/ && ($challenge=$_); + } + + if ($challenge eq 'NTLM') { + # First phase, send handshake + my $auth_value = "NTLM " . ntlm(); + ntlm_reset(); + + # Need to check this isn't a repeated fail! + my $r = $response; + my $retry_count = 0; + while ($r) { + my $auth = $r->request->header($auth_header); + ++$retry_count if ($auth && $auth eq $auth_value); + if ($retry_count > 2) { + # here we know this failed before + $response->header("Client-Warning" => + "Credentials for '$user' failed before"); + return $response; + } + $r = $r->previous; + } + + my $referral = $request->clone; + $referral->header($auth_header => $auth_value); + return $ua->request($referral, $arg, $size, $response); + } + + else { + # Second phase, use the response challenge (unless non-401 code + # was returned, in which case, we just send back the response + # object, as is + my $auth_value; + if ($response->code ne '401') { + return $response; + } + else { + my $challenge; + foreach ($response->header('WWW-Authenticate')) { + last if /^NTLM/ && ($challenge=$_); + } + $challenge =~ s/^NTLM //; + ntlm(); + $auth_value = "NTLM " . ntlm($challenge); + ntlm_reset(); + } + + my $referral = $request->clone; + $referral->header($auth_header => $auth_value); + my $response2 = $ua->request($referral, $arg, $size, $response); + return $response2; + } +} + +1; +__END__ + +=pod + +=head1 NAME + +LWP::Authen::Ntlm - Library for enabling NTLM authentication (Microsoft) in LWP + +=head1 SYNOPSIS + + use LWP::UserAgent; + use HTTP::Request::Common; + my $url = 'http://www.company.com/protected_page.html'; + + # Set up the ntlm client and then the base64 encoded ntlm handshake message + my $ua = LWP::UserAgent->new(keep_alive=>1); + $ua->credentials('www.company.com:80', '', "MyDomain\\MyUserCode", 'MyPassword'); + + $request = GET $url; + print "--Performing request now...-----------\n"; + $response = $ua->request($request); + print "--Done with request-------------------\n"; + + if ($response->is_success) {print "It worked!->" . $response->code . "\n"} + else {print "It didn't work!->" . $response->code . "\n"} + +=head1 DESCRIPTION + +L allows LWP to authenticate against servers that are using the +NTLM authentication scheme popularized by Microsoft. This type of authentication is +common on intranets of Microsoft-centric organizations. + +The module takes advantage of the Authen::NTLM module by Mark Bush. Since there +is also another Authen::NTLM module available from CPAN by Yee Man Chan with an +entirely different interface, it is necessary to ensure that you have the correct +NTLM module. + +In addition, there have been problems with incompatibilities between different +versions of L, which Bush's L makes use of. Therefore, it is +necessary to ensure that your Mime::Base64 module supports exporting of the +C and C functions. + +=head1 USAGE + +The module is used indirectly through LWP, rather than including it directly in your +code. The LWP system will invoke the NTLM authentication when it encounters the +authentication scheme while attempting to retrieve a URL from a server. In order +for the NTLM authentication to work, you must have a few things set up in your +code prior to attempting to retrieve the URL: + +=over 4 + +=item * + +Enable persistent HTTP connections + +To do this, pass the C<< "keep_alive=>1" >> option to the L when creating it, like this: + + my $ua = LWP::UserAgent->new(keep_alive=>1); + +=item * + +Set the credentials on the UserAgent object + +The credentials must be set like this: + + $ua->credentials('www.company.com:80', '', "MyDomain\\MyUserCode", 'MyPassword'); + +Note that you cannot use the L object's C method to set +the credentials. Note, too, that the C<'www.company.com:80'> portion only sets credentials +on the specified port AND it is case-sensitive (this is due to the way LWP is coded, and +has nothing to do with LWP::Authen::Ntlm) + +=back + +=head1 AVAILABILITY + +General queries regarding LWP should be made to the LWP Mailing List. + +Questions specific to LWP::Authen::Ntlm can be forwarded to jtillman@bigfoot.com + +=head1 COPYRIGHT + +Copyright (c) 2002 James Tillman. All rights reserved. This +program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +=head1 SEE ALSO + +L, L, L. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/ConnCache.pm b/git/usr/share/perl5/vendor_perl/LWP/ConnCache.pm new file mode 100644 index 0000000000000000000000000000000000000000..e08e7af0c8b83058c5230c74f0f58bbb4e36d9bd --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/ConnCache.pm @@ -0,0 +1,350 @@ +package LWP::ConnCache; + +use strict; + +our $VERSION = '6.82'; +our $DEBUG; + +sub new { + my($class, %cnf) = @_; + + my $total_capacity = 1; + if (exists $cnf{total_capacity}) { + $total_capacity = delete $cnf{total_capacity}; + } + if (%cnf && $^W) { + require Carp; + Carp::carp("Unrecognised options: @{[sort keys %cnf]}") + } + my $self = bless { cc_conns => [] }, $class; + $self->total_capacity($total_capacity); + $self; +} + + +sub deposit { + my($self, $type, $key, $conn) = @_; + push(@{$self->{cc_conns}}, [$conn, $type, $key, time]); + $self->enforce_limits($type); + return; +} + + +sub withdraw { + my($self, $type, $key) = @_; + my $conns = $self->{cc_conns}; + for my $i (0 .. @$conns - 1) { + my $c = $conns->[$i]; + next unless $c->[1] eq $type && $c->[2] eq $key; + splice(@$conns, $i, 1); # remove it + return $c->[0]; + } + return undef; +} + + +sub total_capacity { + my $self = shift; + my $old = $self->{cc_limit_total}; + if (@_) { + $self->{cc_limit_total} = shift; + $self->enforce_limits; + } + $old; +} + + +sub capacity { + my $self = shift; + my $type = shift; + my $old = $self->{cc_limit}{$type}; + if (@_) { + $self->{cc_limit}{$type} = shift; + $self->enforce_limits($type); + } + $old; +} + + +sub enforce_limits { + my($self, $type) = @_; + my $conns = $self->{cc_conns}; + + my @types = $type ? ($type) : ($self->get_types); + for $type (@types) { + next unless $self->{cc_limit}; + my $limit = $self->{cc_limit}{$type}; + next unless defined $limit; + for my $i (reverse 0 .. @$conns - 1) { + next unless $conns->[$i][1] eq $type; + if (--$limit < 0) { + $self->dropping(splice(@$conns, $i, 1), "$type capacity exceeded"); + } + } + } + + if (defined(my $total = $self->{cc_limit_total})) { + while (@$conns > $total) { + $self->dropping(shift(@$conns), "Total capacity exceeded"); + } + } +} + + +sub dropping { + my($self, $c, $reason) = @_; + print "DROPPING @$c [$reason]\n" if $DEBUG; +} + + +sub drop { + my($self, $checker, $reason) = @_; + if (ref($checker) ne "CODE") { + # make it so + if (!defined $checker) { + $checker = sub { 1 }; # drop all of them + } + elsif (_looks_like_number($checker)) { + my $age_limit = $checker; + my $time_limit = time - $age_limit; + $reason ||= "older than $age_limit"; + $checker = sub { $_[3] < $time_limit }; + } + else { + my $type = $checker; + $reason ||= "drop $type"; + $checker = sub { $_[1] eq $type }; # match on type + } + } + $reason ||= "drop"; + + local $SIG{__DIE__}; # don't interfere with eval below + local $@; + my @c; + for (@{$self->{cc_conns}}) { + my $drop; + eval { + if (&$checker(@$_)) { + $self->dropping($_, $reason); + $drop++; + } + }; + push(@c, $_) unless $drop; + } + @{$self->{cc_conns}} = @c; +} + + +sub prune { + my $self = shift; + $self->drop(sub { !shift->ping }, "ping"); +} + + +sub get_types { + my $self = shift; + my %t; + $t{$_->[1]}++ for @{$self->{cc_conns}}; + return keys %t; +} + + +sub get_connections { + my($self, $type) = @_; + my @c; + for (@{$self->{cc_conns}}) { + push(@c, $_->[0]) if !$type || ($type && $type eq $_->[1]); + } + @c; +} + + +sub _looks_like_number { + $_[0] =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/; +} + +1; + + +__END__ + +=pod + +=head1 NAME + +LWP::ConnCache - Connection cache manager + +=head1 NOTE + +This module is experimental. Details of its interface is likely to +change in the future. + +=head1 SYNOPSIS + + use LWP::ConnCache; + my $cache = LWP::ConnCache->new; + $cache->deposit($type, $key, $sock); + $sock = $cache->withdraw($type, $key); + +=head1 DESCRIPTION + +The C class is the standard connection cache manager +for L. + +=head1 METHODS + +The following basic methods are provided: + +=head2 new + + my $cache = LWP::ConnCache->new( %options ) + +This method constructs a new L object. The only +option currently accepted is C. If specified it +initializes the L option. It defaults to C<1>. + +=head2 total_capacity + + my $cap = $cache->total_capacity; + $cache->total_capacity(0); # drop all immediately + $cache->total_capacity(undef); # no limit + $cache->total_capacity($number); + +Get/sets the number of connection that will be cached. Connections +will start to be dropped when this limit is reached. If set to C<0>, +then all connections are immediately dropped. If set to C, +then there is no limit. + +=head2 capacity + + my $http_capacity = $cache->capacity('http'); + $cache->capacity('http', 2 ); + +Get/set a limit for the number of connections of the specified type +that can be cached. The first parameter is a short string like +C<"http"> or C<"ftp">. + +=head2 drop + + $cache->drop(); # Drop ALL connections + # which is just a synonym for: + $cache->drop(sub{1}); # Drop ALL connections + # drop all connections older than 22 seconds and add a reason for it! + $cache->drop(22, "Older than 22 secs dropped"); + # which is just a synonym for: + $cache->drop(sub { + my ($conn, $type, $key, $deposit_time) = @_; + if ($deposit_time < 22) { + # true values drop the connection + return 1; + } + # false values don't drop the connection + return 0; + }, "Older than 22 secs dropped" ); + +Drop connections by some criteria. The $checker argument is a +subroutine that is called for each connection. If the routine returns +a TRUE value then the connection is dropped. The routine is called +with C<($conn, $type, $key, $deposit_time)> as arguments. + +Shortcuts: If the C<$checker> argument is absent (or C) all cached +connections are dropped. If the $checker is a number then all +connections untouched that the given number of seconds or more are +dropped. If $checker is a string then all connections of the given +type are dropped. + +The C is passed on to the L method. + +=head2 prune + + $cache->prune(); + +Calling this method will drop all connections that are dead. This is +tested by calling the L method on the connections. If +the L method exists and returns a false value, then the +connection is dropped. + +=head2 get_types + + my @types = $cache->get_types(); + +This returns all the C fields used for the currently cached +connections. + +=head2 get_connections + + my @conns = $cache->get_connections(); # all connections + my @conns = $cache->get_connections('http'); # connections for http + +This returns all connection objects of the specified type. If no type +is specified then all connections are returned. In scalar context the +number of cached connections of the specified type is returned. + +=head1 PROTOCOL METHODS + +The following methods are called by low-level protocol modules to +try to save away connections and to get them back. + +=head2 deposit + + $cache->deposit($type, $key, $conn); + +This method adds a new connection to the cache. As a result, other +already cached connections might be dropped. Multiple connections with +the same type/key might be added. + +=head2 withdraw + + my $conn = $cache->withdraw($type, $key); + +This method tries to fetch back a connection that was previously +deposited. If no cached connection with the specified $type/$key is +found, then C is returned. There is not guarantee that a +deposited connection can be withdrawn, as the cache manger is free to +drop connections at any time. + +=head1 INTERNAL METHODS + +The following methods are called internally. Subclasses might want to +override them. + +=head2 enforce_limits + + $conn->enforce_limits([$type]) + +This method is called with after a new connection is added (deposited) +in the cache or capacity limits are adjusted. The default +implementation drops connections until the specified capacity limits +are not exceeded. + +=head2 dropping + + $conn->dropping($conn_record, $reason) + +This method is called when a connection is dropped. The record +belonging to the dropped connection is passed as the first argument +and a string describing the reason for the drop is passed as the +second argument. The default implementation makes some noise if the +C<$LWP::ConnCache::DEBUG> variable is set and nothing more. + +=head1 SUBCLASSING + +For specialized cache policy it makes sense to subclass +C and perhaps override the L, +L, and L methods. + +The object itself is a hash. Keys prefixed with C are reserved +for the base class. + +=head1 SEE ALSO + +L + +=head1 COPYRIGHT + +Copyright 2001 Gisle Aas. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Debug.pm b/git/usr/share/perl5/vendor_perl/LWP/Debug.pm new file mode 100644 index 0000000000000000000000000000000000000000..cf89b0c01661cd92fc4da80e1b1b398619da3f65 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Debug.pm @@ -0,0 +1,112 @@ +package LWP::Debug; # legacy + +our $VERSION = '6.82'; + +require Exporter; +our @ISA = qw(Exporter); +our @EXPORT_OK = qw(level trace debug conns); + +use Carp (); + +my @levels = qw(trace debug conns); +our %current_level = (); + +sub import { + my $pack = shift; + my $callpkg = caller(0); + my @symbols = (); + my @levels = (); + for (@_) { + if (/^[-+]/) { + push(@levels, $_); + } + else { + push(@symbols, $_); + } + } + Exporter::export($pack, $callpkg, @symbols); + level(@levels); +} + +sub level { + for (@_) { + if ($_ eq '+') { # all on + # switch on all levels + %current_level = map { $_ => 1 } @levels; + } + elsif ($_ eq '-') { # all off + %current_level = (); + } + elsif (/^([-+])(\w+)$/) { + $current_level{$2} = $1 eq '+'; + } + else { + Carp::croak("Illegal level format $_"); + } + } +} + +sub trace { _log(@_) if $current_level{'trace'}; } +sub debug { _log(@_) if $current_level{'debug'}; } +sub conns { _log(@_) if $current_level{'conns'}; } + +sub _log { + my $msg = shift; + $msg .= "\n" unless $msg =~ /\n$/; # ensure trailing "\n" + + my ($package, $filename, $line, $sub) = caller(2); + print STDERR "$sub: $msg"; +} + +1; + +__END__ + +=pod + +=head1 NAME + +LWP::Debug - deprecated + +=head1 DESCRIPTION + +This module has been deprecated. Please see L for your +debugging needs. + +LWP::Debug is used to provide tracing facilities, but these are not used +by LWP any more. The code in this module is kept around +(undocumented) so that 3rd party code that happens to use the old +interfaces continue to run. + +One useful feature that LWP::Debug provided (in an imprecise and +troublesome way) was network traffic monitoring. The following +section provides some hints about recommended replacements. + +=head2 Network traffic monitoring + +The best way to monitor the network traffic that LWP generates is to +use an external TCP monitoring program. The +L program is highly recommended for this. + +Another approach it to use a debugging HTTP proxy server and make +LWP direct all its traffic via this one. Call C<< $ua->proxy >> to +set it up and then just use LWP as before. + +For less precise monitoring needs just setting up a few simple +handlers might do. The following example sets up handlers to dump the +request and response objects that pass through LWP: + + use LWP::UserAgent; + $ua = LWP::UserAgent->new; + $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()); + + $ua->add_handler("request_send", sub { shift->dump; return }); + $ua->add_handler("response_done", sub { shift->dump; return }); + + $ua->get("http://www.example.com"); + +=head1 SEE ALSO + +L, L, L + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Debug/TraceHTTP.pm b/git/usr/share/perl5/vendor_perl/LWP/Debug/TraceHTTP.pm new file mode 100644 index 0000000000000000000000000000000000000000..a11a4384b4cbe3da1afbb1242e298e53fe2da8b5 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Debug/TraceHTTP.pm @@ -0,0 +1,29 @@ +package LWP::Debug::TraceHTTP; + +# Just call: +# +# require LWP::Debug::TraceHTTP; +# LWP::Protocol::implementor('http', 'LWP::Debug::TraceHTTP'); +# +# to use this module to trace all calls to the HTTP socket object in +# programs that use LWP. + +use strict; +use parent 'LWP::Protocol::http'; + +our $VERSION = '6.82'; + +package # hide from PAUSE + LWP::Debug::TraceHTTP::Socket; + +use Data::Dump 1.13; +use Data::Dump::Trace qw(autowrap mcall); + +autowrap("LWP::Protocol::http::Socket" => "sock"); + +sub new { + my $class = shift; + return mcall("LWP::Protocol::http::Socket" => "new", undef, @_); +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/DebugFile.pm b/git/usr/share/perl5/vendor_perl/LWP/DebugFile.pm new file mode 100644 index 0000000000000000000000000000000000000000..30897903f60a0e80813b5e952983837d40407988 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/DebugFile.pm @@ -0,0 +1,7 @@ +package LWP::DebugFile; + +our $VERSION = '6.82'; + +# legacy stub + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/MediaTypes.pm b/git/usr/share/perl5/vendor_perl/LWP/MediaTypes.pm new file mode 100644 index 0000000000000000000000000000000000000000..22d00e3391b6f6fb2f298e5409d2c98530039321 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/MediaTypes.pm @@ -0,0 +1,292 @@ +package LWP::MediaTypes; + +require Exporter; +@ISA = qw(Exporter); +@EXPORT = qw(guess_media_type media_suffix); +@EXPORT_OK = qw(add_type add_encoding read_media_types); +our $VERSION = '6.04'; + +use strict; +use Scalar::Util qw(blessed); +use Carp qw(croak); + +# note: These hashes will also be filled with the entries found in +# the 'media.types' file. + +my %suffixType = ( + 'txt' => 'text/plain', + 'html' => 'text/html', + 'gif' => 'image/gif', + 'jpg' => 'image/jpeg', + 'xml' => 'text/xml', +); + +my %suffixExt = ( + 'text/plain' => 'txt', + 'text/html' => 'html', + 'image/gif' => 'gif', + 'image/jpeg' => 'jpg', + 'text/xml' => 'xml', +); + +#XXX: there should be some way to define this in the media.types files. +my %suffixEncoding = ( + 'Z' => 'compress', + 'gz' => 'gzip', + 'hqx' => 'x-hqx', + 'uu' => 'x-uuencode', + 'z' => 'x-pack', + 'bz2' => 'x-bzip2', +); + +read_media_types(); + + + +sub guess_media_type +{ + my($file, $header) = @_; + return undef unless defined $file; + + my $fullname; + if (ref $file) { + croak("Unable to determine filetype on unblessed refs") unless blessed($file); + if ($file->can('path')) { + $file = $file->path; + } + elsif ($file->can('filename')) { + $fullname = $file->filename; + } + else { + $fullname = "" . $file; + } + } + else { + $fullname = $file; # enable peek at actual file + } + + my @encoding = (); + my $ct = undef; + for (file_exts($file)) { + # first check this dot part as encoding spec + if (exists $suffixEncoding{$_}) { + unshift(@encoding, $suffixEncoding{$_}); + next; + } + if (exists $suffixEncoding{lc $_}) { + unshift(@encoding, $suffixEncoding{lc $_}); + next; + } + + # check content-type + if (exists $suffixType{$_}) { + $ct = $suffixType{$_}; + last; + } + if (exists $suffixType{lc $_}) { + $ct = $suffixType{lc $_}; + last; + } + + # don't know nothing about this dot part, bail out + last; + } + unless (defined $ct) { + # Take a look at the file + if (defined $fullname) { + $ct = (-T $fullname) ? "text/plain" : "application/octet-stream"; + } + else { + $ct = "application/octet-stream"; + } + } + + if ($header) { + $header->header('Content-Type' => $ct); + $header->header('Content-Encoding' => \@encoding) if @encoding; + } + + wantarray ? ($ct, @encoding) : $ct; +} + + +sub media_suffix { + if (!wantarray && @_ == 1 && $_[0] !~ /\*/) { + return $suffixExt{lc $_[0]}; + } + my(@type) = @_; + my(@suffix, $ext, $type); + foreach (@type) { + if (s/\*/.*/) { + while(($ext,$type) = each(%suffixType)) { + push(@suffix, $ext) if $type =~ /^$_$/i; + } + } + else { + my $ltype = lc $_; + while(($ext,$type) = each(%suffixType)) { + push(@suffix, $ext) if lc $type eq $ltype; + } + } + } + wantarray ? @suffix : $suffix[0]; +} + + +sub file_exts +{ + require File::Basename; + my @parts = reverse split(/\./, File::Basename::basename($_[0])); + pop(@parts); # never consider first part + @parts; +} + + +sub add_type +{ + my($type, @exts) = @_; + for my $ext (@exts) { + $ext =~ s/^\.//; + $suffixType{$ext} = $type; + } + $suffixExt{lc $type} = $exts[0] if @exts; +} + + +sub add_encoding +{ + my($type, @exts) = @_; + for my $ext (@exts) { + $ext =~ s/^\.//; + $suffixEncoding{$ext} = $type; + } +} + + +sub read_media_types +{ + my(@files) = @_; + + local($/, $_) = ("\n", undef); # ensure correct $INPUT_RECORD_SEPARATOR + + my @priv_files = (); + push(@priv_files, "$ENV{HOME}/.media.types", "$ENV{HOME}/.mime.types") + if defined $ENV{HOME}; # Some doesn't have a home (for instance Win32) + + # Try to locate "media.types" file, and initialize %suffixType from it + my $typefile; + unless (@files) { + @files = map {"$_/LWP/media.types"} @INC; + push @files, @priv_files; + } + for $typefile (@files) { + local(*TYPE); + open(TYPE, $typefile) || next; + while () { + next if /^\s*#/; # comment line + next if /^\s*$/; # blank line + s/#.*//; # remove end-of-line comments + my($type, @exts) = split(' ', $_); + add_type($type, @exts); + } + close(TYPE); + } +} + +1; + + +__END__ + +=head1 NAME + +LWP::MediaTypes - guess media type for a file or a URL + +=head1 SYNOPSIS + + use LWP::MediaTypes qw(guess_media_type); + $type = guess_media_type("/tmp/foo.gif"); + +=head1 DESCRIPTION + +This module provides functions for handling media (also known as +MIME) types and encodings. The mapping from file extensions to media +types is defined by the F file. If the F<~/.media.types> +file exists it is used instead. +For backwards compatibility we will also look for F<~/.mime.types>. + +The following functions are exported by default: + +=over 4 + +=item guess_media_type( $filename ) + +=item guess_media_type( $uri ) + +=item guess_media_type( $filename_or_object, $header_to_modify ) + +This function tries to guess media type and encoding for a file or objects that +support the a C or C method, eg, L or L objects. +When an object does not support either method, it will be stringified to +determine the filename. +It returns the content type, which is a string like C<"text/html">. +In array context it also returns any content encodings applied (in the +order used to encode the file). You can pass a URI object +reference, instead of the file name. + +If the type can not be deduced from looking at the file name, +then guess_media_type() will let the C<-T> Perl operator take a look. +If this works (and C<-T> returns a TRUE value) then we return +I as the type, otherwise we return +I as the type. + +The optional second argument should be a reference to a HTTP::Headers +object or any object that implements the $obj->header method in a +similar way. When it is present the values of the +'Content-Type' and 'Content-Encoding' will be set for this header. + +=item media_suffix( $type, ... ) + +This function will return all suffixes that can be used to denote the +specified media type(s). Wildcard types can be used. In a scalar +context it will return the first suffix found. Examples: + + @suffixes = media_suffix('image/*', 'audio/basic'); + $suffix = media_suffix('text/html'); + +=back + +The following functions are only exported by explicit request: + +=over 4 + +=item add_type( $type, @exts ) + +Associate a list of file extensions with the given media type. +Example: + + add_type("x-world/x-vrml" => qw(wrl vrml)); + +=item add_encoding( $type, @ext ) + +Associate a list of file extensions with an encoding type. +Example: + + add_encoding("x-gzip" => "gz"); + +=item read_media_types( @files ) + +Parse media types files and add the type mappings found there. +Example: + + read_media_types("conf/mime.types"); + +=back + +=head1 COPYRIGHT + +Copyright 1995-1999 Gisle Aas. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + diff --git a/git/usr/share/perl5/vendor_perl/LWP/MemberMixin.pm b/git/usr/share/perl5/vendor_perl/LWP/MemberMixin.pm new file mode 100644 index 0000000000000000000000000000000000000000..a6cd31b2e77108c662a88d1e64fb39157d7ad30a --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/MemberMixin.pm @@ -0,0 +1,48 @@ +package LWP::MemberMixin; + +our $VERSION = '6.82'; + +sub _elem { + my $self = shift; + my $elem = shift; + my $old = $self->{$elem}; + $self->{$elem} = shift if @_; + return $old; +} + +1; + +__END__ + +=pod + +=head1 NAME + +LWP::MemberMixin - Member access mixin class + +=head1 SYNOPSIS + + package Foo; + use parent qw(LWP::MemberMixin); + +=head1 DESCRIPTION + +A mixin class to get methods that provide easy access to member +variables in the C<%$self>. +Ideally there should be better Perl language support for this. + +=head1 METHODS + +There is only one method provided: + +=head2 _elem + + _elem($elem [, $val]) + +Internal method to get/set the value of member variable +C<$elem>. If C<$val> is present it is used as the new value +for the member variable. If it is not present the current +value is not touched. In both cases the previous value of +the member variable is returned. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol.pm new file mode 100644 index 0000000000000000000000000000000000000000..e8c63f053eab84c8a64a6ec44a101cac95b5cf40 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol.pm @@ -0,0 +1,326 @@ +package LWP::Protocol; + +use parent 'LWP::MemberMixin'; + +our $VERSION = '6.82'; + +use strict; +use Carp (); +use HTTP::Status (); +use HTTP::Response (); +use Scalar::Util qw(openhandle); +use Try::Tiny qw(try catch); + +my %ImplementedBy = (); # scheme => classname +my %ImplementorAlreadyTested; + +sub new +{ + my($class, $scheme, $ua) = @_; + + my $self = bless { + scheme => $scheme, + ua => $ua, + + # historical/redundant + max_size => $ua->{max_size}, + }, $class; + + $self; +} + + +sub create +{ + my($scheme, $ua) = @_; + my $impclass = LWP::Protocol::implementor($scheme) or + Carp::croak("Protocol scheme '$scheme' is not supported"); + + # hand-off to scheme specific implementation sub-class + my $protocol = $impclass->new($scheme, $ua); + + return $protocol; +} + + +sub implementor +{ + my($scheme, $impclass) = @_; + + if ($impclass) { + $ImplementedBy{$scheme} = $impclass; + } + + my $ic = $ImplementedBy{$scheme}; + # module does not exist + return $ic if $ic || $ImplementorAlreadyTested{$scheme}; + + return '' unless $scheme =~ /^([.+\-\w]+)$/; # check valid URL schemes + $scheme = $1; # untaint + + # scheme not yet known, look for a 'use'd implementation + $ic = $scheme; + $ic =~ tr/.+-/_/; # make it a legal module name + $ic = "LWP::Protocol::$ic"; # default location + $ic = "LWP::Protocol::nntp" if $scheme eq 'news'; #XXX ugly hack + no strict 'refs'; + # check we actually have one for the scheme: + unless (@{"${ic}::ISA"}) { + # try to autoload it + try { + (my $class = $ic) =~ s{::}{/}g; + $class .= '.pm' unless $class =~ /\.pm$/; + require $class; + } + catch { + my $error = $_; + if ($error =~ /Can't locate/) { + $ic = ''; + } + else { + die "$error\n"; + } + }; + } + $ImplementedBy{$scheme} = $ic if $ic; + $ImplementorAlreadyTested{$scheme} = 1; + $ic; +} + + +sub request +{ + my($self, $request, $proxy, $arg, $size, $timeout) = @_; + Carp::croak('LWP::Protocol::request() needs to be overridden in subclasses'); +} + + +# legacy +sub timeout { shift->_elem('timeout', @_); } +sub max_size { shift->_elem('max_size', @_); } + + +sub collect +{ + my ($self, $arg, $response, $collector) = @_; + my $content; + my($ua, $max_size) = @{$self}{qw(ua max_size)}; + + # This can't be moved to Try::Tiny due to the closures within causing + # leaks on any version of Perl prior to 5.18. + # https://perl5.git.perl.org/perl.git/commitdiff/a0d2bbd5c + my $error = do { #catch + local $@; + local $\; # protect the print below from surprises + eval { # try + if (!defined($arg) || !$response->is_success) { + $response->{default_add_content} = 1; + } + elsif (defined(openhandle($arg)) || !ref($arg) && length($arg)) { + my $existing_fh = defined(openhandle($arg)); + my $mode = $existing_fh ? '>&=' : '>'; + open(my $fh, $mode, $arg) or die "Can't write to '$arg': $!"; + binmode($fh); + push(@{$response->{handlers}{response_data}}, { + callback => sub { + print $fh $_[3] or die "Can't write to '$arg': $!"; + 1; + }, + }); + push(@{$response->{handlers}{response_done}}, { + callback => sub { + unless ($existing_fh) { + close($fh) or die "Can't write to '$arg': $!"; + } + undef($fh); + }, + }); + } + elsif (ref($arg) eq 'CODE') { + push(@{$response->{handlers}{response_data}}, { + callback => sub { + &$arg($_[3], $_[0], $self); + 1; + }, + }); + } + else { + die "Unexpected collect argument '$arg'"; + } + + $ua->run_handlers("response_header", $response); + + if (delete $response->{default_add_content}) { + push(@{$response->{handlers}{response_data}}, { + callback => sub { + $_[0]->add_content($_[3]); + 1; + }, + }); + } + + + my $content_size = 0; + my $length = $response->content_length; + my %skip_h; + + while ($content = &$collector, length $$content) { + for my $h ($ua->handlers("response_data", $response)) { + next if $skip_h{$h}; + unless ($h->{callback}->($response, $ua, $h, $$content)) { + # XXX remove from $response->{handlers}{response_data} if present + $skip_h{$h}++; + } + } + $content_size += length($$content); + $ua->progress(($length ? ($content_size / $length) : "tick"), $response); + if (defined($max_size) && $content_size > $max_size) { + $response->push_header("Client-Aborted", "max_size"); + last; + } + } + 1; + }; + $@; + }; + + if ($error) { + chomp($error); + $response->push_header('X-Died' => $error); + $response->push_header("Client-Aborted", "die"); + }; + delete $response->{handlers}{response_data}; + delete $response->{handlers} unless %{$response->{handlers}}; + return $response; +} + + +sub collect_once +{ + my($self, $arg, $response) = @_; + my $content = \ $_[3]; + my $first = 1; + $self->collect($arg, $response, sub { + return $content if $first--; + return \ ""; + }); +} + +1; + + +__END__ + +=pod + +=head1 NAME + +LWP::Protocol - Base class for LWP protocols + +=head1 SYNOPSIS + + package LWP::Protocol::foo; + use parent qw(LWP::Protocol); + +=head1 DESCRIPTION + +This class is used as the base class for all protocol implementations +supported by the LWP library. + +When creating an instance of this class using +C, and you get an initialized subclass +appropriate for that access method. In other words, the +L function calls the constructor for one of its +subclasses. + +All derived C classes need to override the C +method which is used to service a request. The overridden method can +make use of the C method to collect together chunks of data +as it is received. + +=head1 METHODS + +The following methods and functions are provided: + +=head2 new + + my $prot = LWP::Protocol->new(); + +The LWP::Protocol constructor is inherited by subclasses. As this is a +virtual base class this method should B be called directly. + +=head2 create + + my $prot = LWP::Protocol::create($scheme) + +Create an object of the class implementing the protocol to handle the +given scheme. This is a function, not a method. It is more an object +factory than a constructor. This is the function user agents should +use to access protocols. + +=head2 implementor + + my $class = LWP::Protocol::implementor($scheme, [$class]) + +Get and/or set implementor class for a scheme. Returns C<''> if the +specified scheme is not supported. + +=head2 request + + $response = $protocol->request($request, $proxy, undef); + $response = $protocol->request($request, $proxy, '/tmp/sss'); + $response = $protocol->request($request, $proxy, \&callback, 1024); + $response = $protocol->request($request, $proxy, $fh); + +Dispatches a request over the protocol, and returns a response +object. This method needs to be overridden in subclasses. Refer to +L for description of the arguments. + +=head2 collect + + my $res = $prot->collect(undef, $response, $collector); # stored in $response + my $res = $prot->collect($filename, $response, $collector); + my $res = $prot->collect(sub { ... }, $response, $collector); + +Collect the content of a request, and process it appropriately into a scalar, +file, or by calling a callback. If the first parameter is undefined, then the +content is stored within the C<$response>. If it's a simple scalar, then it's +interpreted as a file name and the content is written to this file. If it's a +code reference, then content is passed to this routine. +If it is a filehandle, or similar, such as a L object, +content will be written to it. + +The collector is a routine that will be called and which is +responsible for returning pieces (as ref to scalar) of the content to +process. The C<$collector> signals C by returning a reference to an +empty string. + +The return value is the L object reference. + +B We will only use the callback or file argument if +C<< $response->is_success() >>. This avoids sending content data for +redirects and authentication responses to the callback which would be +confusing. + +=head2 collect_once + + $prot->collect_once($arg, $response, $content) + +Can be called when the whole response content is available as content. This +will invoke L with a collector callback that +returns a reference to C<$content> the first time and an empty string the +next. + +=head1 SEE ALSO + +Inspect the F and F files +for examples of usage. + +=head1 COPYRIGHT + +Copyright 1995-2001 Gisle Aas. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/cpan.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/cpan.pm new file mode 100644 index 0000000000000000000000000000000000000000..ddb58cd5a5390642e7d6bb45126c924ff8a76344 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/cpan.pm @@ -0,0 +1,72 @@ +package LWP::Protocol::cpan; + +use strict; + +use parent qw(LWP::Protocol); + +our $VERSION = '6.82'; + +require URI; +require HTTP::Status; +require HTTP::Response; + +our $CPAN; + +unless ($CPAN) { + # Try to find local CPAN mirror via $CPAN::Config + eval { + require CPAN::Config; + if($CPAN::Config) { + my $urls = $CPAN::Config->{urllist}; + if (ref($urls) eq "ARRAY") { + my $file; + for (@$urls) { + if (/^file:/) { + $file = $_; + last; + } + } + + if ($file) { + $CPAN = $file; + } + else { + $CPAN = $urls->[0]; + } + } + } + }; + + $CPAN ||= "http://cpan.org/"; # last resort +} + +# ensure that we don't chop of last part +$CPAN .= "/" unless $CPAN =~ m,/$,; + + +sub request { + my($self, $request, $proxy, $arg, $size) = @_; + # check proxy + if (defined $proxy) + { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy with cpan'); + } + + # check method + my $method = $request->method; + unless ($method eq 'GET' || $method eq 'HEAD') { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'cpan:' URLs"); + } + + my $path = $request->uri->path; + $path =~ s,^/,,; + + my $response = HTTP::Response->new(HTTP::Status::RC_FOUND); + $response->header("Location" => URI->new_abs($path, $CPAN)); + $response; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/data.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/data.pm new file mode 100644 index 0000000000000000000000000000000000000000..544d95de17e25b1943e98fa80b99e276fed5503a --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/data.pm @@ -0,0 +1,52 @@ +package LWP::Protocol::data; + +# Implements access to data:-URLs as specified in RFC 2397 + +use strict; + +our $VERSION = '6.82'; + +require HTTP::Response; +require HTTP::Status; + +use parent qw(LWP::Protocol); + +use HTTP::Date qw(time2str); +require LWP; # needs version number + +sub request +{ + my($self, $request, $proxy, $arg, $size) = @_; + + # check proxy + if (defined $proxy) + { + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy with data'); + } + + # check method + my $method = $request->method; + unless ($method eq 'GET' || $method eq 'HEAD') { + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'data:' URLs"); + } + + my $url = $request->uri; + my $response = HTTP::Response->new( HTTP::Status::RC_OK, "Document follows"); + + my $media_type = $url->media_type; + + my $data = $url->data; + $response->header('Content-Type' => $media_type, + 'Content-Length' => length($data), + 'Date' => time2str(time), + 'Server' => "libwww-perl-internal/$LWP::VERSION" + ); + + $data = "" if $method eq "HEAD"; + return $self->collect_once($arg, $response, $data); +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/file.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/file.pm new file mode 100644 index 0000000000000000000000000000000000000000..fb5e168947860724bd198825022991e1d7d026d7 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/file.pm @@ -0,0 +1,147 @@ +package LWP::Protocol::file; + +use parent qw(LWP::Protocol); + +use strict; + +our $VERSION = '6.82'; + +require LWP::MediaTypes; +require HTTP::Request; +require HTTP::Response; +require HTTP::Status; +require HTTP::Date; + + +sub request +{ + my($self, $request, $proxy, $arg, $size) = @_; + + $size = 4096 unless defined $size and $size > 0; + + # check proxy + if (defined $proxy) + { + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy through the filesystem'); + } + + # check method + my $method = $request->method; + unless ($method eq 'GET' || $method eq 'HEAD') { + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'file:' URLs"); + } + + # check url + my $url = $request->uri; + + my $scheme = $url->scheme; + if ($scheme ne 'file') { + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "LWP::Protocol::file::request called for '$scheme'"); + } + + # URL OK, look at file + my $path = $url->file; + + # test file exists and is readable + unless (-e $path) { + return HTTP::Response->new( HTTP::Status::RC_NOT_FOUND, + "File `$path' does not exist"); + } + unless (-r _) { + return HTTP::Response->new( HTTP::Status::RC_FORBIDDEN, + 'User does not have read permission'); + } + + # looks like file exists + my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$filesize, + $atime,$mtime,$ctime,$blksize,$blocks) + = stat(_); + + # XXX should check Accept headers? + + # check if-modified-since + my $ims = $request->header('If-Modified-Since'); + if (defined $ims) { + my $time = HTTP::Date::str2time($ims); + if (defined $time and $time >= $mtime) { + return HTTP::Response->new( HTTP::Status::RC_NOT_MODIFIED, + "$method $path"); + } + } + + # Ok, should be an OK response by now... + my $response = HTTP::Response->new( HTTP::Status::RC_OK ); + + # fill in response headers + $response->header('Last-Modified', HTTP::Date::time2str($mtime)); + + if (-d _) { # If the path is a directory, process it + # generate the HTML for directory + opendir(D, $path) or + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Cannot read directory '$path': $!"); + my(@files) = sort readdir(D); + closedir(D); + + # Make directory listing + require URI::Escape; + require HTML::Entities; + my $pathe = $path . ( $^O eq 'MacOS' ? ':' : '/'); + for (@files) { + my $furl = URI::Escape::uri_escape($_); + if ( -d "$pathe$_" ) { + $furl .= '/'; + $_ .= '/'; + } + my $desc = HTML::Entities::encode($_); + $_ = qq{
  • $desc}; + } + # Ensure that the base URL is "/" terminated + my $base = $url->clone; + unless ($base->path =~ m|/$|) { + $base->path($base->path . "/"); + } + my $html = join("\n", + "\n", + "Directory $path", + "", + "\n", + "

    Directory listing of $path

    ", + "
      ", @files, "
    ", + "\n\n"); + + $response->header('Content-Type', 'text/html'); + $response->header('Content-Length', length $html); + $html = "" if $method eq "HEAD"; + + return $self->collect_once($arg, $response, $html); + + } + + # path is a regular file + $response->header('Content-Length', $filesize); + LWP::MediaTypes::guess_media_type($path, $response); + + # read the file + if ($method ne "HEAD") { + open(my $fh, '<', $path) or return new + HTTP::Response(HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Cannot read file '$path': $!"); + binmode($fh); + $response = $self->collect($arg, $response, sub { + my $content = ""; + my $bytes = sysread($fh, $content, $size); + return \$content if $bytes > 0; + return \ ""; + }); + close($fh); + } + + $response; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/ftp.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/ftp.pm new file mode 100644 index 0000000000000000000000000000000000000000..8bd62275d7e1423841b4b570f6ce05252869b91b --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/ftp.pm @@ -0,0 +1,555 @@ +package LWP::Protocol::ftp; + +# Implementation of the ftp protocol (RFC 959). We let the Net::FTP +# package do all the dirty work. +use parent qw(LWP::Protocol); +use strict; + +our $VERSION = '6.82'; + +use Carp (); +use HTTP::Status (); +use HTTP::Negotiate (); +use HTTP::Response (); +use LWP::MediaTypes (); +use File::Listing (); + + +{ + + package # hide from PAUSE + LWP::Protocol::MyFTP; + + use strict; + use parent qw(Net::FTP); + + sub new { + my $class = shift; + + my $self = $class->SUPER::new(@_) || return undef; + + my $mess = $self->message; # welcome message + $mess =~ s|\n.*||s; # only first line left + $mess =~ s|\s*ready\.?$||; + + # Make the version number more HTTP like + $mess =~ s|\s*\(Version\s*|/| and $mess =~ s|\)$||; + ${*$self}{myftp_server} = $mess; + + #$response->header("Server", $mess); + + $self; + } + + sub http_server { + my $self = shift; + ${*$self}{myftp_server}; + } + + sub home { + my $self = shift; + my $old = ${*$self}{myftp_home}; + if (@_) { + ${*$self}{myftp_home} = shift; + } + $old; + } + + sub go_home { + my $self = shift; + $self->cwd(${*$self}{myftp_home}); + } + + sub request_count { + my $self = shift; + ++${*$self}{myftp_reqcount}; + } + + sub ping { + my $self = shift; + return $self->go_home; + } +} + +sub _connect { + my ($self, $host, $port, $user, $account, $password, $timeout) = @_; + + my $key; + my $conn_cache = $self->{ua}{conn_cache}; + if ($conn_cache) { + $key = "$host:$port:$user"; + $key .= ":$account" if defined($account); + if (my $ftp = $conn_cache->withdraw("ftp", $key)) { + if ($ftp->ping) { + + # save it again + $conn_cache->deposit("ftp", $key, $ftp); + return $ftp; + } + } + } + + # try to make a connection + my $ftp = LWP::Protocol::MyFTP->new( + $host, + Port => $port, + Timeout => $timeout, + LocalAddr => $self->{ua}{local_address}, + ); + + # XXX Should be some what to pass on 'Passive' (header??) + unless ($ftp) { + $@ =~ s/^Net::FTP: //; + return HTTP::Response->new(HTTP::Status::RC_INTERNAL_SERVER_ERROR, $@); + } + + unless ($ftp->login($user, $password, $account)) { + + # Unauthorized. Let's fake a RC_UNAUTHORIZED response + my $mess = scalar($ftp->message); + $mess =~ s/\n$//; + my $res = HTTP::Response->new(HTTP::Status::RC_UNAUTHORIZED, $mess); + $res->header("Server", $ftp->http_server); + $res->header("WWW-Authenticate", qq(Basic Realm="FTP login")); + return $res; + } + + my $home = $ftp->pwd; + $ftp->home($home); + + $conn_cache->deposit("ftp", $key, $ftp) if $conn_cache; + + return $ftp; +} + + +sub request { + my ($self, $request, $proxy, $arg, $size, $timeout) = @_; + + $size = 4096 unless $size; + + # check proxy + if (defined $proxy) { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy through the ftp'); + } + + my $url = $request->uri; + if ($url->scheme ne 'ftp') { + my $scheme = $url->scheme; + return HTTP::Response->new(HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "LWP::Protocol::ftp::request called for '$scheme'"); + } + + # check method + my $method = $request->method; + + unless ($method eq 'GET' || $method eq 'HEAD' || $method eq 'PUT') { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . "$method for 'ftp:' URLs"); + } + + my $host = $url->host; + my $port = $url->port; + my $user = $url->user; + my $password = $url->password; + + # If a basic authorization header is present than we prefer these over + # the username/password specified in the URL. + { + my ($u, $p) = $request->authorization_basic; + if (defined $u) { + $user = $u; + $password = $p; + } + } + + # We allow the account to be specified in the "Account" header + my $account = $request->header('Account'); + + my $ftp + = $self->_connect($host, $port, $user, $account, $password, $timeout); + return $ftp if ref($ftp) eq "HTTP::Response"; # ugh! + + # Create an initial response object + my $response = HTTP::Response->new(HTTP::Status::RC_OK, "OK"); + $response->header(Server => $ftp->http_server); + $response->header('Client-Request-Num' => $ftp->request_count); + $response->request($request); + + # Get & fix the path + my @path = grep {length} $url->path_segments; + my $remote_file = pop(@path); + $remote_file = '' unless defined $remote_file; + + my $type; + if (ref $remote_file) { + my @params; + ($remote_file, @params) = @$remote_file; + for (@params) { + $type = $_ if s/^type=//; + } + } + + if ($type && $type eq 'a') { + $ftp->ascii; + } + else { + $ftp->binary; + } + + for (@path) { + unless ($ftp->cwd($_)) { + return HTTP::Response->new(HTTP::Status::RC_NOT_FOUND, + "Can't chdir to $_"); + } + } + + if ($method eq 'GET' || $method eq 'HEAD') { + if (my $mod_time = $ftp->mdtm($remote_file)) { + $response->last_modified($mod_time); + if (my $ims = $request->if_modified_since) { + if ($mod_time <= $ims) { + $response->code(HTTP::Status::RC_NOT_MODIFIED); + $response->message("Not modified"); + return $response; + } + } + } + + # We'll use this later to abort the transfer if necessary. + # if $max_size is defined, we need to abort early. Otherwise, it's + # a normal transfer + my $max_size = undef; + + # Set resume location, if the client requested it + if ($request->header('Range') && $ftp->supported('REST')) { + my $range_info = $request->header('Range'); + + # Change bytes=2772992-6781209 to just 2772992 + my ($start_byte, $end_byte) = $range_info =~ /.*=\s*(\d+)-(\d+)?/; + if (defined $start_byte && !defined $end_byte) { + + # open range -- only the start is specified + + $ftp->restart($start_byte); + + # don't define $max_size, we don't want to abort early + } + elsif (defined $start_byte + && defined $end_byte + && $start_byte >= 0 + && $end_byte >= $start_byte) + { + + $ftp->restart($start_byte); + $max_size = $end_byte - $start_byte; + } + else { + + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'Incorrect syntax for Range request'); + } + } + elsif ($request->header('Range') && !$ftp->supported('REST')) { + return HTTP::Response->new(HTTP::Status::RC_NOT_IMPLEMENTED, + "Server does not support resume." + ); + } + + my $data; # the data handle + if (length($remote_file) and $data = $ftp->retr($remote_file)) { + my ($type, @enc) = LWP::MediaTypes::guess_media_type($remote_file); + $response->header('Content-Type', $type) if $type; + for (@enc) { + $response->push_header('Content-Encoding', $_); + } + my $mess = $ftp->message; + if ($mess =~ /\((\d+)\s+bytes\)/) { + $response->header('Content-Length', "$1"); + } + + if ($method ne 'HEAD') { + + # Read data from server + $response = $self->collect( + $arg, + $response, + sub { + my $content = ''; + my $result = $data->read($content, $size); + + # Stop early if we need to. + if (defined $max_size) { + + # We need an interface to Net::FTP::dataconn for getting + # the number of bytes already read + my $bytes_received = $data->bytes_read(); + + # We were already over the limit. (Should only happen + # once at the end.) + if ($bytes_received - length($content) > $max_size) + { + $content = ''; + } + + # We just went over the limit + elsif ($bytes_received > $max_size) { + + # Trim content + $content = substr($content, 0, + $max_size + - ($bytes_received - length($content))); + } + + # We're under the limit + else { + } + } + + return \$content; + } + ); + } + + # abort is needed for HEAD, it's == close if the transfer has + # already completed. + unless ($data->abort) { + + # Something did not work too well. Note that we treat + # responses to abort() with code 0 in case of HEAD as ok + # (at least wu-ftpd 2.6.1(1) does that). + if ($method ne 'HEAD' || $ftp->code != 0) { + $response->code(HTTP::Status::RC_INTERNAL_SERVER_ERROR); + $response->message("FTP close response: " + . $ftp->code . " " + . $ftp->message); + } + } + } + elsif (!length($remote_file) || ($ftp->code >= 400 && $ftp->code < 600)) + { + # not a plain file, try to list instead + if (length($remote_file) && !$ftp->cwd($remote_file)) { + return HTTP::Response->new(HTTP::Status::RC_NOT_FOUND, + "File '$remote_file' not found" + ); + } + + # It should now be safe to try to list the directory + my @lsl = $ftp->dir; + + # Try to figure out if the user want us to convert the + # directory listing to HTML. + my @variants = ( + ['html', 0.60, 'text/html'], + ['dir', 1.00, 'text/ftp-dir-listing'] + ); + + #$HTTP::Negotiate::DEBUG=1; + my $prefer = HTTP::Negotiate::choose(\@variants, $request); + + my $content = ''; + + if (!defined($prefer)) { + return HTTP::Response->new(HTTP::Status::RC_NOT_ACCEPTABLE, + "Neither HTML nor directory listing wanted"); + } + elsif ($prefer eq 'html') { + $response->header('Content-Type' => 'text/html'); + $content = "File Listing\n"; + my $base = $request->uri->clone; + my $path = $base->path; + $base->path("$path/") unless $path =~ m|/$|; + $content .= qq(\n\n); + $content .= "\n
      \n"; + for (File::Listing::parse_dir(\@lsl, 'GMT')) { + my ($name, $type, $size, $mtime, $mode) = @$_; + $content .= qq(
    • $name); + $content .= " $size bytes" if $type eq 'f'; + $content .= "\n"; + } + $content .= "
    \n"; + } + else { + $response->header('Content-Type', 'text/ftp-dir-listing'); + $content = join("\n", @lsl, ''); + } + + $response->header('Content-Length', length($content)); + + if ($method ne 'HEAD') { + $response = $self->collect_once($arg, $response, $content); + } + } + else { + my $res = HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + "FTP return code " . $ftp->code); + $res->content_type("text/plain"); + $res->content($ftp->message); + return $res; + } + } + elsif ($method eq 'PUT') { + + # method must be PUT + unless (length($remote_file)) { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + "Must have a file name to PUT to" + ); + } + my $data; + if ($data = $ftp->stor($remote_file)) { + my $content = $request->content; + my $bytes = 0; + if (defined $content) { + if (ref($content) eq 'SCALAR') { + $bytes = $data->write($$content, length($$content)); + } + elsif (ref($content) eq 'CODE') { + my ($buf, $n); + while (length($buf = &$content)) { + $n = $data->write($buf, length($buf)); + last unless $n; + $bytes += $n; + } + } + elsif (!ref($content)) { + if (defined $content && length($content)) { + $bytes = $data->write($content, length($content)); + } + } + else { + die "Bad content"; + } + } + $data->close; + + $response->code(HTTP::Status::RC_CREATED); + $response->header('Content-Type', 'text/plain'); + $response->content("$bytes bytes stored as $remote_file on $host\n") + + } + else { + my $res = HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + "FTP return code " . $ftp->code); + $res->content_type("text/plain"); + $res->content($ftp->message); + return $res; + } + } + else { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + "Illegal method $method"); + } + + $response; +} + +1; + +__END__ + +# This is what RFC 1738 has to say about FTP access: +# -------------------------------------------------- +# +# 3.2. FTP +# +# The FTP URL scheme is used to designate files and directories on +# Internet hosts accessible using the FTP protocol (RFC959). +# +# A FTP URL follow the syntax described in Section 3.1. If : is +# omitted, the port defaults to 21. +# +# 3.2.1. FTP Name and Password +# +# A user name and password may be supplied; they are used in the ftp +# "USER" and "PASS" commands after first making the connection to the +# FTP server. If no user name or password is supplied and one is +# requested by the FTP server, the conventions for "anonymous" FTP are +# to be used, as follows: +# +# The user name "anonymous" is supplied. +# +# The password is supplied as the Internet e-mail address +# of the end user accessing the resource. +# +# If the URL supplies a user name but no password, and the remote +# server requests a password, the program interpreting the FTP URL +# should request one from the user. +# +# 3.2.2. FTP url-path +# +# The url-path of a FTP URL has the following syntax: +# +# //...//;type= +# +# Where through and are (possibly encoded) strings +# and is one of the characters "a", "i", or "d". The part +# ";type=" may be omitted. The and parts may be +# empty. The whole url-path may be omitted, including the "/" +# delimiting it from the prefix containing user, password, host, and +# port. +# +# The url-path is interpreted as a series of FTP commands as follows: +# +# Each of the elements is to be supplied, sequentially, as the +# argument to a CWD (change working directory) command. +# +# If the typecode is "d", perform a NLST (name list) command with +# as the argument, and interpret the results as a file +# directory listing. +# +# Otherwise, perform a TYPE command with as the argument, +# and then access the file whose name is (for example, using +# the RETR command.) +# +# Within a name or CWD component, the characters "/" and ";" are +# reserved and must be encoded. The components are decoded prior to +# their use in the FTP protocol. In particular, if the appropriate FTP +# sequence to access a particular file requires supplying a string +# containing a "/" as an argument to a CWD or RETR command, it is +# necessary to encode each "/". +# +# For example, the URL is +# interpreted by FTP-ing to "host.dom", logging in as "myname" +# (prompting for a password if it is asked for), and then executing +# "CWD /etc" and then "RETR motd". This has a different meaning from +# which would "CWD etc" and then +# "RETR motd"; the initial "CWD" might be executed relative to the +# default directory for "myname". On the other hand, +# , would "CWD " with a null +# argument, then "CWD etc", and then "RETR motd". +# +# FTP URLs may also be used for other operations; for example, it is +# possible to update a file on a remote file server, or infer +# information about it from the directory listings. The mechanism for +# doing so is not spelled out here. +# +# 3.2.3. FTP Typecode is Optional +# +# The entire ;type= part of a FTP URL is optional. If it is +# omitted, the client program interpreting the URL must guess the +# appropriate mode to use. In general, the data content type of a file +# can only be guessed from the name, e.g., from the suffix of the name; +# the appropriate type code to be used for transfer of the file can +# then be deduced from the data content of the file. +# +# 3.2.4 Hierarchy +# +# For some file systems, the "/" used to denote the hierarchical +# structure of the URL corresponds to the delimiter used to construct a +# file name hierarchy, and thus, the filename will look similar to the +# URL path. This does NOT mean that the URL is a Unix filename. +# +# 3.2.5. Optimization +# +# Clients accessing resources via FTP may employ additional heuristics +# to optimize the interaction. For some FTP servers, for example, it +# may be reasonable to keep the control connection open while accessing +# multiple URLs from the same server. However, there is no common +# hierarchical model to the FTP protocol, so if a directory change +# command has been given, it is impossible in general to deduce what +# sequence should be given to navigate to another directory for a +# second retrieval, if the paths are different. The only reliable +# algorithm is to disconnect and reestablish the control connection. diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/gopher.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/gopher.pm new file mode 100644 index 0000000000000000000000000000000000000000..8117fdcfe7957e33143e683c53df895852b09610 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/gopher.pm @@ -0,0 +1,213 @@ +package LWP::Protocol::gopher; + +# Implementation of the gopher protocol (RFC 1436) +# +# This code is based on 'wwwgopher.pl,v 0.10 1994/10/17 18:12:34 shelden' +# which in turn is a vastly modified version of Oscar's http'get() +# dated 28/3/94 in +# including contributions from Marc van Heyningen and Martijn Koster. + +use strict; + +our $VERSION = '6.82'; + +require HTTP::Response; +require HTTP::Status; +require IO::Socket; +require IO::Select; + +use parent qw(LWP::Protocol); + + +my %gopher2mimetype = ( + '0' => 'text/plain', # 0 file + '1' => 'text/html', # 1 menu + # 2 CSO phone-book server + # 3 Error + '4' => 'application/mac-binhex40', # 4 BinHexed Macintosh file + '5' => 'application/zip', # 5 DOS binary archive of some sort + '6' => 'application/octet-stream', # 6 UNIX uuencoded file. + '7' => 'text/html', # 7 Index-Search server + # 8 telnet session + '9' => 'application/octet-stream', # 9 binary file + 'h' => 'text/html', # html + 'g' => 'image/gif', # gif + 'I' => 'image/*', # some kind of image +); + +my %gopher2encoding = ( + '6' => 'x_uuencode', # 6 UNIX uuencoded file. +); + +sub request +{ + my($self, $request, $proxy, $arg, $size, $timeout) = @_; + + $size = 4096 unless $size; + + # check proxy + if (defined $proxy) { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy through the gopher'); + } + + my $url = $request->uri; + die "bad scheme" if $url->scheme ne 'gopher'; + + + my $method = $request->method; + unless ($method eq 'GET' || $method eq 'HEAD') { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'gopher:' URLs"); + } + + my $gophertype = $url->gopher_type; + unless (exists $gopher2mimetype{$gophertype}) { + return HTTP::Response->new(HTTP::Status::RC_NOT_IMPLEMENTED, + 'Library does not support gophertype ' . + $gophertype); + } + + my $response = HTTP::Response->new(HTTP::Status::RC_OK, "OK"); + $response->header('Content-type' => $gopher2mimetype{$gophertype} + || 'text/plain'); + $response->header('Content-Encoding' => $gopher2encoding{$gophertype}) + if exists $gopher2encoding{$gophertype}; + + if ($method eq 'HEAD') { + # XXX: don't even try it so we set this header + $response->header('Client-Warning' => 'Client answer only'); + return $response; + } + + if ($gophertype eq '7' && ! $url->search) { + # the url is the prompt for a gopher search; supply boiler-plate + return $self->collect_once($arg, $response, <<"EOT"); + +Gopher Index + + + +

    $url
    Gopher Search

    +This is a searchable Gopher index. +Use the search function of your browser to enter search terms. + +EOT + } + + my $host = $url->host; + my $port = $url->port; + + my $requestLine = ""; + + my $selector = $url->selector; + if (defined $selector) { + $requestLine .= $selector; + my $search = $url->search; + if (defined $search) { + $requestLine .= "\t$search"; + my $string = $url->string; + if (defined $string) { + $requestLine .= "\t$string"; + } + } + } + $requestLine .= "\015\012"; + + # potential request headers are just ignored + + # Ok, lets make the request + my $socket = IO::Socket::INET->new(PeerAddr => $host, + PeerPort => $port, + LocalAddr => $self->{ua}{local_address}, + Proto => 'tcp', + Timeout => $timeout); + die "Can't connect to $host:$port" unless $socket; + my $sel = IO::Select->new($socket); + + { + die "write timeout" if $timeout && !$sel->can_write($timeout); + my $n = syswrite($socket, $requestLine, length($requestLine)); + die $! unless defined($n); + die "short write" if $n != length($requestLine); + } + + my $user_arg = $arg; + + # must handle menus in a special way since they are to be + # converted to HTML. Undefing $arg ensures that the user does + # not see the data before we get a change to convert it. + $arg = undef if $gophertype eq '1' || $gophertype eq '7'; + + # collect response + my $buf = ''; + $response = $self->collect($arg, $response, sub { + die "read timeout" if $timeout && !$sel->can_read($timeout); + my $n = sysread($socket, $buf, $size); + die $! unless defined($n); + return \$buf; + } ); + + # Convert menu to HTML and return data to user. + if ($gophertype eq '1' || $gophertype eq '7') { + my $content = menu2html($response->content); + if (defined $user_arg) { + $response = $self->collect_once($user_arg, $response, $content); + } + else { + $response->content($content); + } + } + + $response; +} + + +sub gopher2url +{ + my($gophertype, $path, $host, $port) = @_; + + my $url; + + if ($gophertype eq '8' || $gophertype eq 'T') { + # telnet session + $url = $HTTP::URI_CLASS->new($gophertype eq '8' ? 'telnet:':'tn3270:'); + $url->user($path) if defined $path; + } + else { + $path = URI::Escape::uri_escape($path); + $url = $HTTP::URI_CLASS->new("gopher:/$gophertype$path"); + } + $url->host($host); + $url->port($port); + $url; +} + +sub menu2html { + my($menu) = @_; + + $menu =~ tr/\015//d; # remove carriage return + my $tmp = <<"EOT"; + + + Gopher menu + + +

    Gopher menu

    +EOT + for (split("\n", $menu)) { + last if /^\./; + my($pretty, $path, $host, $port) = split("\t"); + + $pretty =~ s/^(.)//; + my $type = $1; + + my $url = gopher2url($type, $path, $host, $port)->as_string; + $tmp .= qq{$pretty
    \n}; + } + $tmp .= "\n\n"; + $tmp; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/http.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/http.pm new file mode 100644 index 0000000000000000000000000000000000000000..360b70dba1392e4be7c07c1f0ee7376680efbcd5 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/http.pm @@ -0,0 +1,521 @@ +package LWP::Protocol::http; + +use strict; + +our $VERSION = '6.82'; + +require HTTP::Response; +require HTTP::Status; +require Net::HTTP; +use parent qw(LWP::Protocol); + +our @EXTRA_SOCK_OPTS; +my $CRLF = "\015\012"; + +sub _new_socket +{ + my($self, $host, $port, $timeout) = @_; + + # IPv6 literal IP address should be [bracketed] to remove + # ambiguity between ip address and port number. + if ( ($host =~ /:/) && ($host !~ /^\[/) ) { + $host = "[$host]"; + } + + local($^W) = 0; # IO::Socket::INET can be noisy + my $sock = $self->socket_class->new(PeerAddr => $host, + PeerPort => $port, + LocalAddr => $self->{ua}{local_address}, + Proto => 'tcp', + Timeout => $timeout, + KeepAlive => !!$self->{ua}{conn_cache}, + SendTE => $self->{ua}{send_te}, + $self->_extra_sock_opts($host, $port), + ); + + unless ($sock) { + # IO::Socket::INET leaves additional error messages in $@ + my $status = "Can't connect to $host:$port"; + if ($@ =~ /\bconnect: (.*)/ || + $@ =~ /\b(Bad hostname)\b/ || + $@ =~ /\b(nodename nor servname provided, or not known)\b/ || + $@ =~ /\b(certificate verify failed)\b/ || + $@ =~ /\b(Crypt-SSLeay can't verify hostnames)\b/ + ) { + $status .= " ($1)"; + } elsif ($@) { + $status .= " ($@)"; + } + die "$status\n\n$@"; + } + + $sock->blocking(0); + + $sock; +} + +sub socket_type +{ + return "http"; +} + +sub socket_class +{ + my $self = shift; + (ref($self) || $self) . "::Socket"; +} + +sub _extra_sock_opts # to be overridden by subclass +{ + return @EXTRA_SOCK_OPTS; +} + +sub _check_sock +{ + #my($self, $req, $sock) = @_; +} + +sub _get_sock_info +{ + my($self, $res, $sock) = @_; + if (defined(my $peerhost = $sock->peerhost)) { + $res->header("Client-Peer" => "$peerhost:" . $sock->peerport); + } +} + +sub _fixup_header +{ + my($self, $h, $url, $proxy) = @_; + + # Extract 'Host' header + my $hhost = $url->authority; + if ($hhost =~ s/^([^\@]*)\@//) { # get rid of potential "user:pass@" + # add authorization header if we need them. HTTP URLs do + # not really support specification of user and password, but + # we allow it. + if (defined($1) && not $h->header('Authorization')) { + require URI::Escape; + $h->authorization_basic(map URI::Escape::uri_unescape($_), + split(":", $1, 2)); + } + } + $h->init_header('Host' => $hhost); + + if ($proxy && $url->scheme ne 'https') { + # Check the proxy URI's userinfo() for proxy credentials + # export http_proxy="http://proxyuser:proxypass@proxyhost:port". + # For https only the initial CONNECT requests needs authorization. + my $p_auth = $proxy->userinfo(); + if(defined $p_auth) { + require URI::Escape; + $h->proxy_authorization_basic(map URI::Escape::uri_unescape($_), + split(":", $p_auth, 2)) + } + } +} + +sub hlist_remove { + my($hlist, $k) = @_; + $k = lc $k; + for (my $i = @$hlist - 2; $i >= 0; $i -= 2) { + next unless lc($hlist->[$i]) eq $k; + splice(@$hlist, $i, 2); + } +} + +sub request +{ + my($self, $request, $proxy, $arg, $size, $timeout) = @_; + + $size ||= 4096; + + # check method + my $method = $request->method; + unless ($method =~ /^[A-Za-z0-9_!\#\$%&\'*+\-.^\`|~]+$/) { # HTTP token + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'http:' URLs"); + } + + my $url = $request->uri; + + # Proxying SSL with a http proxy needs issues a CONNECT request to build a + # tunnel and then upgrades the tunnel to SSL. But when doing keep-alive the + # https request does not need to be the first request in the connection, so + # we need to distinguish between + # - not yet connected (create socket and ssl upgrade) + # - connected but not inside ssl tunnel (ssl upgrade) + # - inside ssl tunnel to the target - once we are in the tunnel to the + # target we cannot only reuse the tunnel for more https requests with the + # same target + + my $ssl_tunnel = $proxy && $url->scheme eq 'https' + && $url->host_port(); + + my ($host,$port) = $proxy + ? ($proxy->host,$proxy->port) + : ($url->host,$url->port); + my $fullpath = + $method eq 'CONNECT' ? $url->host_port() : + $proxy && ! $ssl_tunnel ? $url->as_string : + do { + my $path = $url->path_query; + $path = "/$path" if $path !~m{^/}; + $path + }; + + my $socket; + my $conn_cache = $self->{ua}{conn_cache}; + my $cache_key; + if ( $conn_cache ) { + $cache_key = "$host:$port"; + # For https we reuse the socket immediately only if it has an established + # tunnel to the target. Otherwise a CONNECT request followed by an SSL + # upgrade need to be done first. The request itself might reuse an + # existing non-ssl connection to the proxy + $cache_key .= "!".$ssl_tunnel if $ssl_tunnel; + if ( $socket = $conn_cache->withdraw($self->socket_type,$cache_key)) { + if ($socket->can_read(0)) { + # if the socket is readable, then either the peer has closed the + # connection or there are some garbage bytes on it. In either + # case we abandon it. + $socket->close; + $socket = undef; + } # else use $socket + else { + $socket->timeout($timeout); + } + } + } + + if ( ! $socket && $ssl_tunnel ) { + my $proto_https = LWP::Protocol::create('https',$self->{ua}) + or die "no support for scheme https found"; + + # only if ssl socket class is IO::Socket::SSL we can upgrade + # a plain socket to SSL. In case of Net::SSL we fall back to + # the old version + if ( my $upgrade_sub = $proto_https->can('_upgrade_sock')) { + my $response = $self->request( + HTTP::Request->new('CONNECT',"http://$ssl_tunnel"), + $proxy, + undef,$size,$timeout + ); + $response->is_success or die + "establishing SSL tunnel failed: ".$response->status_line; + $socket = $upgrade_sub->($proto_https, + $response->{client_socket},$url) + or die "SSL upgrade failed: $@"; + } else { + $socket = $proto_https->_new_socket($url->host,$url->port,$timeout); + } + } + + if ( ! $socket ) { + # connect to remote site w/o reusing established socket + $socket = $self->_new_socket($host, $port, $timeout ); + } + + my $http_version = ""; + if (my $proto = $request->protocol) { + if ($proto =~ /^(?:HTTP\/)?(1.\d+)$/) { + $http_version = $1; + $socket->http_version($http_version); + $socket->send_te(0) if $http_version eq "1.0"; + } + } + + $self->_check_sock($request, $socket); + + my @h; + my $request_headers = $request->headers->clone; + $self->_fixup_header($request_headers, $url, $proxy); + + $request_headers->scan(sub { + my($k, $v) = @_; + $k =~ s/^://; + $v =~ tr/\n/ /; + push(@h, $k, $v); + }); + + my $content_ref = $request->content_ref; + $content_ref = $$content_ref if ref($$content_ref); + my $chunked; + my $has_content; + + if (ref($content_ref) eq 'CODE') { + my $clen = $request_headers->header('Content-Length'); + $has_content++ if $clen; + unless (defined $clen) { + push(@h, "Transfer-Encoding" => "chunked"); + $has_content++; + $chunked++; + } + } + else { + # Set (or override) Content-Length header + my $clen = $request_headers->header('Content-Length'); + if (defined($$content_ref) && length($$content_ref)) { + $has_content = length($$content_ref); + if (!defined($clen) || $clen ne $has_content) { + if (defined $clen) { + warn "Content-Length header value was wrong, fixed"; + hlist_remove(\@h, 'Content-Length'); + } + push(@h, 'Content-Length' => $has_content); + } + } + elsif ($clen) { + warn "Content-Length set when there is no content, fixed"; + hlist_remove(\@h, 'Content-Length'); + } + } + + my $write_wait = 0; + $write_wait = 2 + if ($request_headers->header("Expect") || "") =~ /100-continue/; + + my $req_buf = $socket->format_request($method, $fullpath, @h); + #print "------\n$req_buf\n------\n"; + + if (!$has_content || $write_wait || $has_content > 8*1024) { + WRITE: + { + # Since this just writes out the header block it should almost + # always succeed to send the whole buffer in a single write call. + my $n = $socket->syswrite($req_buf, length($req_buf)); + unless (defined $n) { + redo WRITE if $!{EINTR}; + if ($!{EWOULDBLOCK} || $!{EAGAIN}) { + select(undef, undef, undef, 0.1); + redo WRITE; + } + die "write failed: $!"; + } + if ($n) { + substr($req_buf, 0, $n, ""); + } + else { + select(undef, undef, undef, 0.5); + } + redo WRITE if length $req_buf; + } + } + + my($code, $mess, @junk); + my $drop_connection; + + if ($has_content) { + my $eof; + my $wbuf; + my $woffset = 0; + INITIAL_READ: + if ($write_wait) { + # skip filling $wbuf when waiting for 100-continue + # because if the response is a redirect or auth required + # the request will be cloned and there is no way + # to reset the input stream + # return here via the label after the 100-continue is read + } + elsif (ref($content_ref) eq 'CODE') { + my $buf = &$content_ref(); + $buf = "" unless defined($buf); + $buf = sprintf "%x%s%s%s", length($buf), $CRLF, $buf, $CRLF + if $chunked; + substr($buf, 0, 0) = $req_buf if $req_buf; + $wbuf = \$buf; + } + else { + if ($req_buf) { + my $buf = $req_buf . $$content_ref; + $wbuf = \$buf; + } + else { + $wbuf = $content_ref; + } + $eof = 1; + } + + my $fbits = ''; + vec($fbits, fileno($socket), 1) = 1; + + WRITE: + while ($write_wait || $woffset < length($$wbuf)) { + + my $sel_timeout = $timeout; + if ($write_wait) { + $sel_timeout = $write_wait if $write_wait < $sel_timeout; + } + my $time_before; + $time_before = time if $sel_timeout; + + my $rbits = $fbits; + my $wbits = $write_wait ? undef : $fbits; + my $sel_timeout_before = $sel_timeout; + SELECT: + { + my $nfound = select($rbits, $wbits, undef, $sel_timeout); + if ($nfound < 0) { + if ($!{EINTR} || $!{EWOULDBLOCK} || $!{EAGAIN}) { + if ($time_before) { + $sel_timeout = $sel_timeout_before - (time - $time_before); + $sel_timeout = 0 if $sel_timeout < 0; + } + redo SELECT; + } + die "select failed: $!"; + } + } + + if ($write_wait) { + $write_wait -= time - $time_before; + $write_wait = 0 if $write_wait < 0; + } + + if (defined($rbits) && $rbits =~ /[^\0]/) { + # readable + my $buf = $socket->_rbuf; + my $n = $socket->sysread($buf, 1024, length($buf)); + unless (defined $n) { + die "read failed: $!" unless $!{EINTR} || $!{EWOULDBLOCK} || $!{EAGAIN}; + # if we get here the rest of the block will do nothing + # and we will retry the read on the next round + } + elsif ($n == 0) { + # the server closed the connection before we finished + # writing all the request content. No need to write any more. + $drop_connection++; + last WRITE; + } + $socket->_rbuf($buf); + if (!$code && $buf =~ /\015?\012\015?\012/) { + # a whole response header is present, so we can read it without blocking + ($code, $mess, @h) = $socket->read_response_headers(laxed => 1, + junk_out => \@junk, + ); + if ($code eq "100") { + $write_wait = 0; + undef($code); + goto INITIAL_READ; + } + else { + $drop_connection++; + last WRITE; + # XXX should perhaps try to abort write in a nice way too + } + } + } + if (defined($wbits) && $wbits =~ /[^\0]/) { + my $n = $socket->syswrite($$wbuf, length($$wbuf), $woffset); + unless (defined $n) { + die "write failed: $!" unless $!{EINTR} || $!{EWOULDBLOCK} || $!{EAGAIN}; + $n = 0; # will retry write on the next round + } + elsif ($n == 0) { + die "write failed: no bytes written"; + } + $woffset += $n; + + if (!$eof && $woffset >= length($$wbuf)) { + # need to refill buffer from $content_ref code + my $buf = &$content_ref(); + $buf = "" unless defined($buf); + $eof++ unless length($buf); + $buf = sprintf "%x%s%s%s", length($buf), $CRLF, $buf, $CRLF + if $chunked; + $wbuf = \$buf; + $woffset = 0; + } + } + } # WRITE + } + + ($code, $mess, @h) = $socket->read_response_headers(laxed => 1, junk_out => \@junk) + unless $code; + ($code, $mess, @h) = $socket->read_response_headers(laxed => 1, junk_out => \@junk) + if $code eq "100"; + + my $response = HTTP::Response->new($code, $mess); + my $peer_http_version = $socket->peer_http_version; + $response->protocol("HTTP/$peer_http_version"); + { + local $HTTP::Headers::TRANSLATE_UNDERSCORE; + $response->push_header(@h); + } + $response->push_header("Client-Junk" => \@junk) if @junk; + + $response->request($request); + $self->_get_sock_info($response, $socket); + + if ($method eq "CONNECT") { + $response->{client_socket} = $socket; # so it can be picked up + return $response; + } + + if (my @te = $response->remove_header('Transfer-Encoding')) { + $response->push_header('Client-Transfer-Encoding', \@te); + } + $response->push_header('Client-Response-Num', scalar $socket->increment_response_count); + + my $complete; + $response = $self->collect($arg, $response, sub { + my $buf = ""; #prevent use of uninitialized value in SSLeay.xs + my $n; + READ: + { + $n = $socket->read_entity_body($buf, $size); + unless (defined $n) { + redo READ if $!{EINTR} || $!{EWOULDBLOCK} || $!{EAGAIN} || $!{ENOTTY}; + die "read failed: $!"; + } + redo READ if $n == -1; + } + $complete++ if !$n; + return \$buf; + } ); + $drop_connection++ unless $complete; + + @h = $socket->get_trailers; + if (@h) { + local $HTTP::Headers::TRANSLATE_UNDERSCORE; + $response->push_header(@h); + } + + # keep-alive support + unless ($drop_connection) { + if ($cache_key) { + my %connection = map { (lc($_) => 1) } + split(/\s*,\s*/, ($response->header("Connection") || "")); + if (($peer_http_version eq "1.1" && !$connection{close}) || + $connection{"keep-alive"}) + { + $conn_cache->deposit($self->socket_type, $cache_key, $socket); + } + } + } + + $response; +} + + +#----------------------------------------------------------- +package # hide from PAUSE + LWP::Protocol::http::SocketMethods; + +sub ping { + my $self = shift; + !$self->can_read(0); +} + +sub increment_response_count { + my $self = shift; + return ++${*$self}{'myhttp_response_count'}; +} + +#----------------------------------------------------------- +package # hide from PAUSE + LWP::Protocol::http::Socket; + +use parent -norequire, qw(LWP::Protocol::http::SocketMethods Net::HTTP); + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/loopback.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/loopback.pm new file mode 100644 index 0000000000000000000000000000000000000000..9dd561024d41f8bd1f903fc1881ec7ad98bb1b32 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/loopback.pm @@ -0,0 +1,27 @@ +package LWP::Protocol::loopback; + +use strict; + +our $VERSION = '6.82'; + +require HTTP::Response; + +use parent qw(LWP::Protocol); + +sub request { + my($self, $request, $proxy, $arg, $size, $timeout) = @_; + + my $response = HTTP::Response->new(200, "OK"); + $response->content_type("message/http; msgtype=request"); + + $response->header("Via", "loopback/1.0 $proxy") + if $proxy; + + $response->header("X-Arg", $arg); + $response->header("X-Read-Size", $size); + $response->header("X-Timeout", $timeout); + + return $self->collect_once($arg, $response, $request->as_string); +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/mailto.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/mailto.pm new file mode 100644 index 0000000000000000000000000000000000000000..a1a18e356e3400cec7a8d6d8447cc7ec23382b3c --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/mailto.pm @@ -0,0 +1,184 @@ +package LWP::Protocol::mailto; + +# This module implements the mailto protocol. It is just a simple +# frontend to the Unix sendmail program except on MacOS, where it uses +# Mail::Internet. + +require HTTP::Request; +require HTTP::Response; +require HTTP::Status; + +use Carp; +use strict; + +our $VERSION = '6.82'; + +use parent qw(LWP::Protocol); +our $SENDMAIL; + +unless ($SENDMAIL = $ENV{SENDMAIL}) { + for my $sm (qw(/usr/sbin/sendmail + /usr/lib/sendmail + /usr/ucblib/sendmail + )) + { + if (-x $sm) { + $SENDMAIL = $sm; + last; + } + } + die "Can't find the 'sendmail' program" unless $SENDMAIL; +} + +sub request +{ + my($self, $request, $proxy, $arg, $size) = @_; + + my ($mail, $addr) if $^O eq "MacOS"; + my @text = () if $^O eq "MacOS"; + + # check proxy + if (defined $proxy) + { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy with mail'); + } + + # check method + my $method = $request->method; + + if ($method ne 'POST') { + return HTTP::Response->new( HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . + "$method for 'mailto:' URLs"); + } + + # check url + my $url = $request->uri; + + my $scheme = $url->scheme; + if ($scheme ne 'mailto') { + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "LWP::Protocol::mailto::request called for '$scheme'"); + } + if ($^O eq "MacOS") { + eval { + require Mail::Internet; + }; + if($@) { + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "You don't have MailTools installed"); + } + unless ($ENV{SMTPHOSTS}) { + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "You don't have SMTPHOSTS defined"); + } + } + else { + unless (-x $SENDMAIL) { + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "You don't have $SENDMAIL"); + } + } + if ($^O eq "MacOS") { + $mail = Mail::Internet->new or + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Can't get a Mail::Internet object"); + } + else { + open(SENDMAIL, "| $SENDMAIL -oi -t") or + return HTTP::Response->new( HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Can't run $SENDMAIL: $!"); + } + if ($^O eq "MacOS") { + $addr = $url->encoded822addr; + } + else { + $request = $request->clone; # we modify a copy + my @h = $url->headers; # URL headers override those in the request + while (@h) { + my $k = shift @h; + my $v = shift @h; + next unless defined $v; + if (lc($k) eq "body") { + $request->content($v); + } + else { + $request->push_header($k => $v); + } + } + } + if ($^O eq "MacOS") { + $mail->add(To => $addr); + $mail->add(split(/[:\n]/,$request->headers_as_string)); + } + else { + print SENDMAIL $request->headers_as_string; + print SENDMAIL "\n"; + } + my $content = $request->content; + if (defined $content) { + my $contRef = ref($content) ? $content : \$content; + if (ref($contRef) eq 'SCALAR') { + if ($^O eq "MacOS") { + @text = split("\n",$$contRef); + foreach (@text) { + $_ .= "\n"; + } + } + else { + print SENDMAIL $$contRef; + } + + } + elsif (ref($contRef) eq 'CODE') { + # Callback provides data + my $d; + if ($^O eq "MacOS") { + my $stuff = ""; + while (length($d = &$contRef)) { + $stuff .= $d; + } + @text = split("\n",$stuff); + foreach (@text) { + $_ .= "\n"; + } + } + else { + print SENDMAIL $d; + } + } + } + if ($^O eq "MacOS") { + $mail->body(\@text); + unless ($mail->smtpsend) { + return HTTP::Response->new(HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Mail::Internet->smtpsend unable to send message to <$addr>"); + } + } + else { + unless (close(SENDMAIL)) { + my $err = $! ? "$!" : "Exit status $?"; + return HTTP::Response->new(HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "$SENDMAIL: $err"); + } + } + + + my $response = HTTP::Response->new(HTTP::Status::RC_ACCEPTED, + "Mail accepted"); + $response->header('Content-Type', 'text/plain'); + if ($^O eq "MacOS") { + $response->header('Server' => "Mail::Internet $Mail::Internet::VERSION"); + $response->content("Message sent to <$addr>\n"); + } + else { + $response->header('Server' => $SENDMAIL); + my $to = $request->header("To"); + $response->content("Message sent to <$to>\n"); + } + + return $response; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/nntp.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/nntp.pm new file mode 100644 index 0000000000000000000000000000000000000000..bcd7e942fa00777ddd24635e48e29749cd82f9bb --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/nntp.pm @@ -0,0 +1,150 @@ +package LWP::Protocol::nntp; + +# Implementation of the Network News Transfer Protocol (RFC 977) + +use parent qw(LWP::Protocol); + +our $VERSION = '6.82'; + +require HTTP::Response; +require HTTP::Status; +require Net::NNTP; + +use strict; + + +sub request { + my ($self, $request, $proxy, $arg, $size, $timeout) = @_; + + $size = 4096 unless $size; + + # Check for proxy + if (defined $proxy) { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'You can not proxy through NNTP'); + } + + # Check that the scheme is as expected + my $url = $request->uri; + my $scheme = $url->scheme; + unless ($scheme eq 'news' || $scheme eq 'nntp') { + return HTTP::Response->new(HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "LWP::Protocol::nntp::request called for '$scheme'"); + } + + # check for a valid method + my $method = $request->method; + unless ($method eq 'GET' || $method eq 'HEAD' || $method eq 'POST') { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + 'Library does not allow method ' . "$method for '$scheme:' URLs"); + } + + # extract the identifier and check against posting to an article + my $groupart = $url->_group; + my $is_art = $groupart =~ /@/; + + if ($is_art && $method eq 'POST') { + return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST, + "Can't post to an article <$groupart>"); + } + + my $nntp = Net::NNTP->new( + $url->host, + + #Port => 18574, + Timeout => $timeout, + + #Debug => 1, + ); + die "Can't connect to nntp server" unless $nntp; + + # Check the initial welcome message from the NNTP server + if ($nntp->status != 2) { + return HTTP::Response->new(HTTP::Status::RC_SERVICE_UNAVAILABLE, + $nntp->message); + } + my $response = HTTP::Response->new(HTTP::Status::RC_OK, "OK"); + + my $mess = $nntp->message; + + # Try to extract server name from greeting message. + # Don't know if this works well for a large class of servers, but + # this works for our server. + $mess =~ s/\s+ready\b.*//; + $mess =~ s/^\S+\s+//; + $response->header(Server => $mess); + + # First we handle posting of articles + if ($method eq 'POST') { + $nntp->quit; + $nntp = undef; + $response->code(HTTP::Status::RC_NOT_IMPLEMENTED); + $response->message("POST not implemented yet"); + return $response; + } + + # The method must be "GET" or "HEAD" by now + if (!$is_art) { + if (!$nntp->group($groupart)) { + $response->code(HTTP::Status::RC_NOT_FOUND); + $response->message($nntp->message); + } + $nntp->quit; + $nntp = undef; + + # HEAD: just check if the group exists + if ($method eq 'GET' && $response->is_success) { + $response->code(HTTP::Status::RC_NOT_IMPLEMENTED); + $response->message("GET newsgroup not implemented yet"); + } + return $response; + } + + # Send command to server to retrieve an article (or just the headers) + my $get = $method eq 'HEAD' ? "head" : "article"; + my $art = $nntp->$get("<$groupart>"); + unless ($art) { + $nntp->quit; + $response->code(HTTP::Status::RC_NOT_FOUND); + $response->message($nntp->message); + $nntp = undef; + return $response; + } + + # Parse headers + my ($key, $val); + local $_; + while ($_ = shift @$art) { + if (/^\s+$/) { + last; # end of headers + } + elsif (/^(\S+):\s*(.*)/) { + $response->push_header($key, $val) if $key; + ($key, $val) = ($1, $2); + } + elsif (/^\s+(.*)/) { + next unless $key; + $val .= $1; + } + else { + unshift(@$art, $_); + last; + } + } + $response->push_header($key, $val) if $key; + + # Ensure that there is a Content-Type header + $response->header("Content-Type", "text/plain") + unless $response->header("Content-Type"); + + # Collect the body + $response = $self->collect_once($arg, $response, join("", @$art)) if @$art; + + # Say goodbye to the server + $nntp->quit; + $nntp = undef; + + $response; +} + +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/Protocol/nogo.pm b/git/usr/share/perl5/vendor_perl/LWP/Protocol/nogo.pm new file mode 100644 index 0000000000000000000000000000000000000000..f56643d8fe478bcd7e0352b0f76940ca90ca918f --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Protocol/nogo.pm @@ -0,0 +1,25 @@ +package LWP::Protocol::nogo; +# If you want to disable access to a particular scheme, use this +# class and then call +# LWP::Protocol::implementor(that_scheme, 'LWP::Protocol::nogo'); +# For then on, attempts to access URLs with that scheme will generate +# a 500 error. + +use strict; + +our $VERSION = '6.82'; + +require HTTP::Response; +require HTTP::Status; +use parent qw(LWP::Protocol); + +sub request { + my($self, $request) = @_; + my $scheme = $request->uri->scheme; + + return HTTP::Response->new( + HTTP::Status::RC_INTERNAL_SERVER_ERROR, + "Access to \'$scheme\' URIs has been disabled" + ); +} +1; diff --git a/git/usr/share/perl5/vendor_perl/LWP/RobotUA.pm b/git/usr/share/perl5/vendor_perl/LWP/RobotUA.pm new file mode 100644 index 0000000000000000000000000000000000000000..723bf134b520a726b9ba0e739ca0ba5ea1cdf80c --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/RobotUA.pm @@ -0,0 +1,312 @@ +package LWP::RobotUA; + +use parent qw(LWP::UserAgent); + +our $VERSION = '6.82'; + +require WWW::RobotRules; +require HTTP::Request; +require HTTP::Response; + +use Carp (); +use HTTP::Status (); +use HTTP::Date qw(time2str); +use strict; + + +# +# Additional attributes in addition to those found in LWP::UserAgent: +# +# $self->{'delay'} Required delay between request to the same +# server in minutes. +# +# $self->{'rules'} A WWW::RobotRules object +# + +sub new +{ + my $class = shift; + my %cnf; + if (@_ < 4) { + # legacy args + @cnf{qw(agent from rules)} = @_; + } + else { + %cnf = @_; + } + + Carp::croak('LWP::RobotUA agent required') unless $cnf{agent}; + Carp::croak('LWP::RobotUA from address required') + unless $cnf{from} && $cnf{from} =~ m/\@/; + + my $delay = delete $cnf{delay} || 1; + my $use_sleep = delete $cnf{use_sleep}; + $use_sleep = 1 unless defined($use_sleep); + my $rules = delete $cnf{rules}; + + my $self = LWP::UserAgent->new(%cnf); + $self = bless $self, $class; + + $self->{'delay'} = $delay; # minutes + $self->{'use_sleep'} = $use_sleep; + + if ($rules) { + $rules->agent($cnf{agent}); + $self->{'rules'} = $rules; + } + else { + $self->{'rules'} = WWW::RobotRules->new($cnf{agent}); + } + + $self; +} + + +sub delay { shift->_elem('delay', @_); } +sub use_sleep { shift->_elem('use_sleep', @_); } + + +sub agent +{ + my $self = shift; + my $old = $self->SUPER::agent(@_); + if (@_) { + # Changing our name means to start fresh + $self->{'rules'}->agent($self->{'agent'}); + } + $old; +} + + +sub rules { + my $self = shift; + my $old = $self->_elem('rules', @_); + $self->{'rules'}->agent($self->{'agent'}) if @_; + $old; +} + + +sub no_visits +{ + my($self, $netloc) = @_; + $self->{'rules'}->no_visits($netloc) || 0; +} + +*host_count = \&no_visits; # backwards compatibility with LWP-5.02 + + +sub host_wait +{ + my($self, $netloc) = @_; + return undef unless defined $netloc; + my $last = $self->{'rules'}->last_visit($netloc); + if ($last) { + my $wait = int($self->{'delay'} * 60 - (time - $last)); + $wait = 0 if $wait < 0; + return $wait; + } + return 0; +} + + +sub simple_request +{ + my($self, $request, $arg, $size) = @_; + + # Do we try to access a new server? + my $allowed = $self->{'rules'}->allowed($request->uri); + + if ($allowed < 0) { + # Host is not visited before, or robots.txt expired; fetch "robots.txt" + my $robot_url = $request->uri->clone; + $robot_url->path("robots.txt"); + $robot_url->query(undef); + + # make access to robot.txt legal since this will be a recursive call + $self->{'rules'}->parse($robot_url, ""); + + my $robot_req = HTTP::Request->new('GET', $robot_url); + my $parse_head = $self->parse_head(0); + my $robot_res = $self->request($robot_req); + $self->parse_head($parse_head); + my $fresh_until = $robot_res->fresh_until; + my $content = ""; + if ($robot_res->is_success && $robot_res->content_is_text) { + $content = $robot_res->decoded_content; + $content = "" unless $content && $content =~ /^\s*Disallow\s*:/mi; + } + $self->{'rules'}->parse($robot_url, $content, $fresh_until); + + # recalculate allowed... + $allowed = $self->{'rules'}->allowed($request->uri); + } + + # Check rules + unless ($allowed) { + my $res = HTTP::Response->new( + HTTP::Status::RC_FORBIDDEN, 'Forbidden by robots.txt'); + $res->request( $request ); # bind it to that request + return $res; + } + + my $netloc = eval { local $SIG{__DIE__}; $request->uri->host_port; }; + my $wait = $self->host_wait($netloc); + + if ($wait) { + if ($self->{'use_sleep'}) { + sleep($wait) + } + else { + my $res = HTTP::Response->new( + HTTP::Status::RC_SERVICE_UNAVAILABLE, 'Please, slow down'); + $res->header('Retry-After', time2str(time + $wait)); + $res->request( $request ); # bind it to that request + return $res; + } + } + + # Perform the request + my $res = $self->SUPER::simple_request($request, $arg, $size); + + $self->{'rules'}->visit($netloc); + + $res; +} + + +sub as_string +{ + my $self = shift; + my @s; + push(@s, "Robot: $self->{'agent'} operated by $self->{'from'} [$self]"); + push(@s, " Minimum delay: " . int($self->{'delay'}*60) . "s"); + push(@s, " Will sleep if too early") if $self->{'use_sleep'}; + push(@s, " Rules = $self->{'rules'}"); + join("\n", @s, ''); +} + +1; + + +__END__ + +=pod + +=head1 NAME + +LWP::RobotUA - a class for well-behaved Web robots + +=head1 SYNOPSIS + + use LWP::RobotUA; + my $ua = LWP::RobotUA->new('my-robot/0.1', 'me@foo.com'); + $ua->delay(10); # be very nice -- max one hit every ten minutes! + ... + + # Then just use it just like a normal LWP::UserAgent: + my $response = $ua->get('http://whatever.int/...'); + ... + +=head1 DESCRIPTION + +This class implements a user agent that is suitable for robot +applications. Robots should be nice to the servers they visit. They +should consult the F file to ensure that they are welcomed +and they should not make requests too frequently. + +But before you consider writing a robot, take a look at +L. + +When you use an I object as your user agent, then you do not +really have to think about these things yourself; C files +are automatically consulted and obeyed, the server isn't queried +too rapidly, and so on. Just send requests +as you do when you are using a normal I +object (using C<< $ua->get(...) >>, C<< $ua->head(...) >>, +C<< $ua->request(...) >>, etc.), and this +special agent will make sure you are nice. + +=head1 METHODS + +The LWP::RobotUA is a sub-class of L and implements the +same methods. In addition the following methods are provided: + +=head2 new + + my $ua = LWP::RobotUA->new( %options ) + my $ua = LWP::RobotUA->new( $agent, $from ) + my $ua = LWP::RobotUA->new( $agent, $from, $rules ) + +The LWP::UserAgent options C and C are mandatory. The +options C, C and C initialize attributes +private to the RobotUA. If C are not provided, then +L is instantiated providing an internal database of +F. + +It is also possible to just pass the value of C, C and +optionally C as plain positional arguments. + +=head2 delay + + my $delay = $ua->delay; + $ua->delay( $minutes ); + +Get/set the minimum delay between requests to the same server, in +I. The default is C<1> minute. Note that this number doesn't +have to be an integer; for example, this sets the delay to C<10> seconds: + + $ua->delay(10/60); + +=head2 use_sleep + + my $bool = $ua->use_sleep; + $ua->use_sleep( $boolean ); + +Get/set a value indicating whether the UA should L if +requests arrive too fast, defined as C<< $ua->delay >> minutes not passed since +last request to the given server. The default is true. If this value is +false then an internal C response will be generated. +It will have a C header that indicates when it is OK to +send another request to this server. + +=head2 rules + + my $rules = $ua->rules; + $ua->rules( $rules ); + +Set/get which I object to use. + +=head2 no_visits + + my $num = $ua->no_visits( $netloc ) + +Returns the number of documents fetched from this server host. Yeah I +know, this method should probably have been named C or +something like that. :-( + +=head2 host_wait + + my $num = $ua->host_wait( $netloc ) + +Returns the number of I (from now) you must wait before you can +make a new request to this host. + +=head2 as_string + + my $string = $ua->as_string; + +Returns a string that describes the state of the UA. +Mainly useful for debugging. + +=head1 SEE ALSO + +L, L + +=head1 COPYRIGHT + +Copyright 1996-2004 Gisle Aas. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/Simple.pm b/git/usr/share/perl5/vendor_perl/LWP/Simple.pm new file mode 100644 index 0000000000000000000000000000000000000000..bf13030f8c4a2e7c88214ea0e5437bfa85522346 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/Simple.pm @@ -0,0 +1,270 @@ +package LWP::Simple; + +use strict; + +our $VERSION = '6.82'; + +require Exporter; + +our @EXPORT = qw(get head getprint getstore mirror); +our @EXPORT_OK = qw($ua); + +# I really hate this. It was a bad idea to do it in the first place. +# Wonder how to get rid of it??? (It even makes LWP::Simple 7% slower +# for trivial tests) +use HTTP::Status; +push(@EXPORT, @HTTP::Status::EXPORT); + +sub import +{ + my $pkg = shift; + my $callpkg = caller; + Exporter::export($pkg, $callpkg, @_); +} + +use LWP::UserAgent (); +use HTTP::Date (); + +our $ua = LWP::UserAgent->new; # we create a global UserAgent object +$ua->agent("LWP::Simple/$VERSION "); +$ua->env_proxy; + +sub get ($) +{ + my $response = $ua->get(shift); + return $response->decoded_content if $response->is_success; + return undef; +} + + +sub head ($) +{ + my($url) = @_; + my $request = HTTP::Request->new(HEAD => $url); + my $response = $ua->request($request); + + if ($response->is_success) { + return $response unless wantarray; + return (scalar $response->header('Content-Type'), + scalar $response->header('Content-Length'), + HTTP::Date::str2time($response->header('Last-Modified')), + HTTP::Date::str2time($response->header('Expires')), + scalar $response->header('Server'), + ); + } + return; +} + + +sub getprint ($) +{ + my($url) = @_; + my $request = HTTP::Request->new(GET => $url); + local($\) = ""; # ensure standard $OUTPUT_RECORD_SEPARATOR + my $callback = sub { print $_[0] }; + if ($^O eq "MacOS") { + $callback = sub { $_[0] =~ s/\015?\012/\n/g; print $_[0] } + } + my $response = $ua->request($request, $callback); + unless ($response->is_success) { + print STDERR $response->status_line, " \n"; + } + $response->code; +} + + +sub getstore ($$) +{ + my($url, $file) = @_; + my $request = HTTP::Request->new(GET => $url); + my $response = $ua->request($request, $file); + + $response->code; +} + + +sub mirror ($$) +{ + my($url, $file) = @_; + my $response = $ua->mirror($url, $file); + $response->code; +} + + +1; + +__END__ + +=pod + +=head1 NAME + +LWP::Simple - simple procedural interface to LWP + +=head1 SYNOPSIS + + perl -MLWP::Simple -e 'getprint "http://www.sn.no"' + + use LWP::Simple; + $content = get("http://www.sn.no/"); + die "Couldn't get it!" unless defined $content; + + if (mirror("http://www.sn.no/", "foo") == RC_NOT_MODIFIED) { + ... + } + + if (is_success(getprint("http://www.sn.no/"))) { + ... + } + +=head1 DESCRIPTION + +This module is meant for people who want a simplified view of the +libwww-perl library. It should also be suitable for one-liners. If +you need more control or access to the header fields in the requests +sent and responses received, then you should use the full object-oriented +interface provided by the L module. + +The module will also export the L object as C<$ua> if you +ask for it explicitly. + +The user agent created by this module will identify itself as +C +and will initialize its proxy defaults from the environment (by +calling C<< $ua->env_proxy >>). + +=head1 FUNCTIONS + +The following functions are provided (and exported) by this module: + +=head2 get + + my $res = get($url); + +The get() function will fetch the document identified by the given URL +and return it. It returns C if it fails. The C<$url> argument can +be either a string or a reference to a L object. + +You will not be able to examine the response code or response headers +(like C) when you are accessing the web using this +function. If you need that information you should use the full OO +interface (see L). + +=head2 head + + my $res = head($url); + +Get document headers. Returns the following 5 values if successful: +($content_type, $document_length, $modified_time, $expires, $server) + +Returns an empty list if it fails. In scalar context returns TRUE if +successful. + +=head2 getprint + + my $code = getprint($url); + +Get and print a document identified by a URL. The document is printed +to the selected default filehandle for output (normally STDOUT) as +data is received from the network. If the request fails, then the +status code and message are printed on STDERR. The return value is +the HTTP response code. + +=head2 getstore + + my $code = getstore($url, $file) + my $code = getstore($url, $filehandle) + +Gets a document identified by a URL and stores it in the file. The +return value is the HTTP response code. +You may also pass a writeable filehandle or similar, +such as a L object. + +=head2 mirror + + my $code = mirror($url, $file); + +Get and store a document identified by a URL, using +I, and checking the I. Returns +the HTTP response code. + +=head1 STATUS CONSTANTS + +This module also exports the L constants and procedures. +You can use them when you check the response code from L, +L or L. The constants are: + + RC_CONTINUE + RC_SWITCHING_PROTOCOLS + RC_OK + RC_CREATED + RC_ACCEPTED + RC_NON_AUTHORITATIVE_INFORMATION + RC_NO_CONTENT + RC_RESET_CONTENT + RC_PARTIAL_CONTENT + RC_MULTIPLE_CHOICES + RC_MOVED_PERMANENTLY + RC_MOVED_TEMPORARILY + RC_SEE_OTHER + RC_NOT_MODIFIED + RC_USE_PROXY + RC_BAD_REQUEST + RC_UNAUTHORIZED + RC_PAYMENT_REQUIRED + RC_FORBIDDEN + RC_NOT_FOUND + RC_METHOD_NOT_ALLOWED + RC_NOT_ACCEPTABLE + RC_PROXY_AUTHENTICATION_REQUIRED + RC_REQUEST_TIMEOUT + RC_CONFLICT + RC_GONE + RC_LENGTH_REQUIRED + RC_PRECONDITION_FAILED + RC_REQUEST_ENTITY_TOO_LARGE + RC_REQUEST_URI_TOO_LARGE + RC_UNSUPPORTED_MEDIA_TYPE + RC_INTERNAL_SERVER_ERROR + RC_NOT_IMPLEMENTED + RC_BAD_GATEWAY + RC_SERVICE_UNAVAILABLE + RC_GATEWAY_TIMEOUT + RC_HTTP_VERSION_NOT_SUPPORTED + +=head1 CLASSIFICATION FUNCTIONS + +The L classification functions are: + +=head2 is_success + + my $bool = is_success($rc); + +True if response code indicated a successful request. + +=head2 is_error + + my $bool = is_error($rc) + +True if response code indicated that an error occurred. + +=head1 CAVEAT + +Note that if you are using both LWP::Simple and the very popular L +module, you may be importing a C function from each module, +producing a warning like C. +Get around this problem by just not importing LWP::Simple's +C function, like so: + + use LWP::Simple qw(!head); + use CGI qw(:standard); # then only CGI.pm defines a head() + +Then if you do need LWP::Simple's C function, you can just call +it as C. + +=head1 SEE ALSO + +L, L, L, L, L, +L + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/UserAgent.pm b/git/usr/share/perl5/vendor_perl/LWP/UserAgent.pm new file mode 100644 index 0000000000000000000000000000000000000000..3bc359c13894c10988389ec5eba3670cfc3b6f12 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/UserAgent.pm @@ -0,0 +1,2256 @@ +package LWP::UserAgent; + +use strict; + +use parent qw(LWP::MemberMixin); + +use Carp (); +use File::Copy (); +use HTTP::Request (); +use HTTP::Response (); +use HTTP::Date (); + +use LWP (); +use HTTP::Status (); +use LWP::Protocol (); +use Module::Load qw( load ); + +use Scalar::Util qw(blessed openhandle); +use Try::Tiny qw(try catch); + +our $VERSION = '6.82'; + +sub new +{ + # Check for common user mistake + Carp::croak("Options to LWP::UserAgent should be key/value pairs, not hash reference") + if ref($_[1]) eq 'HASH'; + + my($class, %cnf) = @_; + + my $agent = delete $cnf{agent}; + my $from = delete $cnf{from}; + my $def_headers = delete $cnf{default_headers}; + my $timeout = delete $cnf{timeout}; + $timeout = 3*60 unless defined $timeout; + my $local_address = delete $cnf{local_address}; + my $ssl_opts = delete $cnf{ssl_opts} || {}; + unless (exists $ssl_opts->{verify_hostname}) { + # The processing of HTTPS_CA_* below is for compatibility with Crypt::SSLeay + if (exists $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}) { + $ssl_opts->{verify_hostname} = $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}; + } + elsif ($ENV{HTTPS_CA_FILE} || $ENV{HTTPS_CA_DIR}) { + # Crypt-SSLeay compatibility (verify peer certificate; but not the hostname) + $ssl_opts->{verify_hostname} = 0; + $ssl_opts->{SSL_verify_mode} = 1; + } + else { + $ssl_opts->{verify_hostname} = 1; + } + } + unless (exists $ssl_opts->{SSL_ca_file}) { + if (my $ca_file = $ENV{PERL_LWP_SSL_CA_FILE} || $ENV{HTTPS_CA_FILE}) { + $ssl_opts->{SSL_ca_file} = $ca_file; + } + } + unless (exists $ssl_opts->{SSL_ca_path}) { + if (my $ca_path = $ENV{PERL_LWP_SSL_CA_PATH} || $ENV{HTTPS_CA_DIR}) { + $ssl_opts->{SSL_ca_path} = $ca_path; + } + } + my $use_eval = delete $cnf{use_eval}; + $use_eval = 1 unless defined $use_eval; + my $parse_head = delete $cnf{parse_head}; + $parse_head = 1 unless defined $parse_head; + my $send_te = delete $cnf{send_te}; + $send_te = 1 unless defined $send_te; + my $show_progress = delete $cnf{show_progress}; + my $max_size = delete $cnf{max_size}; + my $max_redirect = delete $cnf{max_redirect}; + $max_redirect = 7 unless defined $max_redirect; + my $env_proxy = exists $cnf{env_proxy} ? delete $cnf{env_proxy} : $ENV{PERL_LWP_ENV_PROXY}; + my $no_proxy = exists $cnf{no_proxy} ? delete $cnf{no_proxy} : []; + Carp::croak(qq{no_proxy must be an arrayref, not $no_proxy!}) if ref $no_proxy ne 'ARRAY'; + + my $proxy = exists $cnf{proxy} ? delete $cnf{proxy} : []; + + my $cookie_jar = delete $cnf{cookie_jar}; + my $conn_cache = delete $cnf{conn_cache}; + my $keep_alive = delete $cnf{keep_alive}; + + Carp::croak("Can't mix conn_cache and keep_alive") + if $conn_cache && $keep_alive; + + my $protocols_allowed = delete $cnf{protocols_allowed}; + my $protocols_forbidden = delete $cnf{protocols_forbidden}; + + my $requests_redirectable = delete $cnf{requests_redirectable}; + $requests_redirectable = ['GET', 'HEAD'] + unless defined $requests_redirectable; + + my $cookie_jar_class = delete $cnf{cookie_jar_class}; + $cookie_jar_class = 'HTTP::Cookies' + unless defined $cookie_jar_class; + + # Actually ""s are just as good as 0's, but for concision we'll just say: + Carp::croak("protocols_allowed has to be an arrayref or 0, not \"$protocols_allowed\"!") + if $protocols_allowed and ref($protocols_allowed) ne 'ARRAY'; + Carp::croak("protocols_forbidden has to be an arrayref or 0, not \"$protocols_forbidden\"!") + if $protocols_forbidden and ref($protocols_forbidden) ne 'ARRAY'; + Carp::croak("requests_redirectable has to be an arrayref or 0, not \"$requests_redirectable\"!") + if $requests_redirectable and ref($requests_redirectable) ne 'ARRAY'; + + if (%cnf && $^W) { + Carp::carp("Unrecognized LWP::UserAgent options: @{[sort keys %cnf]}"); + } + + my $self = bless { + def_headers => $def_headers, + timeout => $timeout, + local_address => $local_address, + ssl_opts => $ssl_opts, + use_eval => $use_eval, + show_progress => $show_progress, + max_size => $max_size, + max_redirect => $max_redirect, + # We set proxy later as we do validation on the values + proxy => {}, + no_proxy => [ @{ $no_proxy } ], + protocols_allowed => $protocols_allowed, + protocols_forbidden => $protocols_forbidden, + requests_redirectable => $requests_redirectable, + send_te => $send_te, + cookie_jar_class => $cookie_jar_class, + }, $class; + + $self->agent(defined($agent) ? $agent : $class->_agent) + if defined($agent) || !$def_headers || !$def_headers->header("User-Agent"); + $self->from($from) if $from; + $self->cookie_jar($cookie_jar) if $cookie_jar; + $self->parse_head($parse_head); + $self->env_proxy if $env_proxy; + + if ($proxy) { + Carp::croak(qq{proxy must be an arrayref, not $cnf{proxy}!}) + if ref $proxy ne 'ARRAY'; + $self->proxy($proxy); + } + + $self->protocols_allowed( $protocols_allowed ) if $protocols_allowed; + $self->protocols_forbidden($protocols_forbidden) if $protocols_forbidden; + + if ($keep_alive) { + $conn_cache ||= { total_capacity => $keep_alive }; + } + $self->conn_cache($conn_cache) if $conn_cache; + + return $self; +} + + +sub send_request +{ + my($self, $request, $arg, $size) = @_; + my($method, $url) = ($request->method, $request->uri); + my $scheme = $url->scheme; + + local($SIG{__DIE__}); # protect against user defined die handlers + + $self->progress("begin", $request); + + my $response = $self->run_handlers("request_send", $request); + + unless ($response) { + my $protocol; + + { + # Honor object-specific restrictions by forcing protocol objects + # into class LWP::Protocol::nogo. + my $x; + if($x = $self->protocols_allowed) { + if (grep lc($_) eq $scheme, @$x) { + } + else { + require LWP::Protocol::nogo; + $protocol = LWP::Protocol::nogo->new; + } + } + elsif ($x = $self->protocols_forbidden) { + if(grep lc($_) eq $scheme, @$x) { + require LWP::Protocol::nogo; + $protocol = LWP::Protocol::nogo->new; + } + } + # else fall thru and create the protocol object normally + } + + # Locate protocol to use + my $proxy = $request->{proxy}; + if ($proxy) { + $scheme = $proxy->scheme; + } + + unless ($protocol) { + try { + $protocol = LWP::Protocol::create($scheme, $self); + } + catch { + my $error = $_; + $error =~ s/ at .* line \d+.*//s; # remove file/line number + $response = _new_response($request, HTTP::Status::RC_NOT_IMPLEMENTED, $error); + if ($scheme eq "https") { + $response->message($response->message . " (LWP::Protocol::https not installed)"); + $response->content_type("text/plain"); + $response->content(<{use_eval}) { + # we eval, and turn dies into responses below + try { + $response = $protocol->request($request, $proxy, $arg, $size, $self->{timeout}) || die "No response returned by $protocol"; + } + catch { + my $error = $_; + if (blessed($error) && $error->isa("HTTP::Response")) { + $response = $error; + $response->request($request); + } + else { + my $full = $error; + (my $status = $error) =~ s/\n.*//s; + $status =~ s/ at .* line \d+.*//s; # remove file/line number + my $code = ($status =~ s/^(\d\d\d)\s+//) ? $1 : HTTP::Status::RC_INTERNAL_SERVER_ERROR; + $response = _new_response($request, $code, $status, $full); + } + }; + } + elsif (!$response) { + $response = $protocol->request($request, $proxy, + $arg, $size, $self->{timeout}); + # XXX: Should we die unless $response->is_success ??? + } + } + + $response->request($request); # record request for reference + $response->header("Client-Date" => HTTP::Date::time2str(time)); + + $self->run_handlers("response_done", $response); + + $self->progress("end", $response); + return $response; +} + + +sub prepare_request +{ + my($self, $request) = @_; + die "Method missing" unless $request->method; + my $url = $request->uri; + die "URL missing" unless $url; + die "URL must be absolute" unless $url->scheme; + + $self->run_handlers("request_preprepare", $request); + + if (my $def_headers = $self->{def_headers}) { + for my $h ($def_headers->header_field_names) { + $request->init_header($h => [$def_headers->header($h)]); + } + } + + $self->run_handlers("request_prepare", $request); + + return $request; +} + + +sub simple_request +{ + my($self, $request, $arg, $size) = @_; + + # sanity check the request passed in + if (defined $request) { + if (ref $request) { + Carp::croak("You need a request object, not a " . ref($request) . " object") + if ref($request) eq 'ARRAY' or ref($request) eq 'HASH' or + !$request->can('method') or !$request->can('uri'); + } + else { + Carp::croak("You need a request object, not '$request'"); + } + } + else { + Carp::croak("No request object passed in"); + } + + my $error; + try { + $request = $self->prepare_request($request); + } + catch { + $error = $_; + $error =~ s/ at .* line \d+.*//s; # remove file/line number + }; + + if ($error) { + return _new_response($request, HTTP::Status::RC_BAD_REQUEST, $error); + } + return $self->send_request($request, $arg, $size); +} + + +sub request { + my ($self, $request, $arg, $size, $previous) = @_; + + my $response = $self->simple_request($request, $arg, $size); + $response->previous($previous) if $previous; + + if ($response->redirects >= $self->{max_redirect}) { + if ($response->header('Location')) { + $response->header("Client-Warning" => + "Redirect loop detected (max_redirect = $self->{max_redirect})" + ); + } + return $response; + } + + if (my $req = $self->run_handlers("response_redirect", $response)) { + return $self->request($req, $arg, $size, $response); + } + + my $code = $response->code; + + if ( $code == HTTP::Status::RC_MOVED_PERMANENTLY + or $code == HTTP::Status::RC_FOUND + or $code == HTTP::Status::RC_SEE_OTHER + or $code == HTTP::Status::RC_TEMPORARY_REDIRECT + or $code == HTTP::Status::RC_PERMANENT_REDIRECT) + { + my $referral = $request->clone; + + # These headers should never be forwarded + $referral->remove_header('Host', 'Cookie'); + + if ( $referral->header('Referer') + && $request->uri->scheme eq 'https' + && $referral->uri->scheme eq 'http') + { + # RFC 2616, section 15.1.3. + # https -> http redirect, suppressing Referer + $referral->remove_header('Referer'); + } + + if ( $code == HTTP::Status::RC_SEE_OTHER + || $code == HTTP::Status::RC_FOUND) + { + my $method = uc($referral->method); + unless ($method eq "GET" || $method eq "HEAD") { + $referral->method("GET"); + $referral->content(""); + $referral->remove_content_headers; + } + } + + # And then we update the URL based on the Location:-header. + my $referral_uri = $response->header('Location'); + { + # Some servers erroneously return a relative URL for redirects, + # so make it absolute if it not already is. + local $URI::ABS_ALLOW_RELATIVE_SCHEME = 1; + my $base = $response->base; + $referral_uri = "" unless defined $referral_uri; + $referral_uri + = $HTTP::URI_CLASS->new($referral_uri, $base)->abs($base); + } + $referral->uri($referral_uri); + + return $response unless $self->redirect_ok($referral, $response); + return $self->request($referral, $arg, $size, $response); + + } + elsif ($code == HTTP::Status::RC_UNAUTHORIZED + || $code == HTTP::Status::RC_PROXY_AUTHENTICATION_REQUIRED) + { + my $proxy = ($code == HTTP::Status::RC_PROXY_AUTHENTICATION_REQUIRED); + my $ch_header + = $proxy || $request->method eq 'CONNECT' + ? "Proxy-Authenticate" + : "WWW-Authenticate"; + my @challenges = $response->header($ch_header); + unless (@challenges) { + $response->header( + "Client-Warning" => "Missing Authenticate header"); + return $response; + } + + require HTTP::Headers::Util; + CHALLENGE: for my $challenge (@challenges) { + $challenge =~ tr/,/;/; # "," is used to separate auth-params!! + ($challenge) = HTTP::Headers::Util::split_header_words($challenge); + my $scheme = shift(@$challenge); + shift(@$challenge); # no value + $challenge = {@$challenge}; # make rest into a hash + + unless ($scheme =~ /^([a-z]+(?:-[a-z]+)*)$/) { + $response->header( + "Client-Warning" => "Bad authentication scheme '$scheme'"); + return $response; + } + $scheme = $1; # untainted now + my $class = "LWP::Authen::\u$scheme"; + $class =~ tr/-/_/; + + no strict 'refs'; + unless (%{"$class\::"}) { + # try to load it + my $error; + try { + (my $req = $class) =~ s{::}{/}g; + $req .= '.pm' unless $req =~ /\.pm$/; + require $req; + } + catch { + $error = $_; + }; + if ($error) { + if ($error =~ /^Can\'t locate/) { + $response->header("Client-Warning" => + "Unsupported authentication scheme '$scheme'"); + } + else { + $response->header("Client-Warning" => $error); + } + next CHALLENGE; + } + } + unless ($class->can("authenticate")) { + $response->header("Client-Warning" => + "Unsupported authentication scheme '$scheme'"); + next CHALLENGE; + } + my $re = $class->authenticate($self, $proxy, $challenge, $response, + $request, $arg, $size); + + next CHALLENGE if $re->code == HTTP::Status::RC_UNAUTHORIZED; + return $re; + } + return $response; + } + return $response; +} + +# +# Now the shortcuts... +# +sub get { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters,1); + return $self->request( HTTP::Request::Common::GET( @parameters ), @suff ); +} + +sub _maybe_copy_default_content_type { + my $self = shift; + my $req = shift; + + my $default_ct = $self->default_header('Content-Type'); + return unless defined $default_ct; + + # drop url + shift; + + # adapted from HTTP::Request::Common::request_type_with_data + my $content; + $content = shift if @_ and ref $_[0]; + + # We only care about the final value, really + my $ct; + + my ($k, $v); + while (($k, $v) = splice(@_, 0, 2)) { + if (lc($k) eq 'content') { + $content = $v; + } + elsif (lc($k) eq 'content-type') { + $ct = $v; + } + } + + # Content-type provided and truthy? skip + return if $ct; + + # Content is not just a string? Then it must be x-www-form-urlencoded + return if defined $content && ref($content); + + # Provide default + $req->header('Content-Type' => $default_ct); +} + +sub post { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters, (ref($parameters[1]) ? 2 : 1)); + my $req = HTTP::Request::Common::POST(@parameters); + $self->_maybe_copy_default_content_type($req, @parameters); + return $self->request($req, @suff); +} + + +sub head { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters,1); + return $self->request( HTTP::Request::Common::HEAD( @parameters ), @suff ); +} + +sub patch { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters, (ref($parameters[1]) ? 2 : 1)); + + # this work-around is in place as HTTP::Request::Common + # did not implement a patch convenience method until + # version 6.12. Once we can bump the prereq to at least + # that version, we can use ::PATCH instead of this hack + my $req = HTTP::Request::Common::PUT(@parameters); + $req->method('PATCH'); + + $self->_maybe_copy_default_content_type($req, @parameters); + return $self->request($req, @suff); +} + +sub put { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters, (ref($parameters[1]) ? 2 : 1)); + my $req = HTTP::Request::Common::PUT(@parameters); + $self->_maybe_copy_default_content_type($req, @parameters); + return $self->request($req, @suff); +} + + +sub delete { + require HTTP::Request::Common; + my($self, @parameters) = @_; + my @suff = $self->_process_colonic_headers(\@parameters,1); + return $self->request( HTTP::Request::Common::DELETE( @parameters ), @suff ); +} + + +sub _process_colonic_headers { + # Process :content_cb / :content_file / :read_size_hint headers. + my($self, $args, $start_index) = @_; + + my($arg, $size); + for(my $i = $start_index; $i < @$args; $i += 2) { + next unless defined $args->[$i]; + + #printf "Considering %s => %s\n", $args->[$i], $args->[$i + 1]; + + if($args->[$i] eq ':content_cb') { + # Some sanity-checking... + $arg = $args->[$i + 1]; + Carp::croak("A :content_cb value can't be undef") unless defined $arg; + Carp::croak("A :content_cb value must be a coderef") + unless ref $arg and UNIVERSAL::isa($arg, 'CODE'); + + } + elsif ($args->[$i] eq ':content_file') { + $arg = $args->[$i + 1]; + + # Some sanity-checking... + Carp::croak("A :content_file value can't be undef") + unless defined $arg; + + unless ( defined openhandle($arg) ) { + Carp::croak("A :content_file value can't be a reference") + if ref $arg; + Carp::croak("A :content_file value can't be \"\"") + unless length $arg; + } + } + elsif ($args->[$i] eq ':read_size_hint') { + $size = $args->[$i + 1]; + # Bother checking it? + + } + else { + next; + } + splice @$args, $i, 2; + $i -= 2; + } + + # And return a suitable suffix-list for request(REQ,...) + + return unless defined $arg; + return $arg, $size if defined $size; + return $arg; +} + + +sub is_online { + my $self = shift; + return 1 if $self->get("http://www.msftncsi.com/ncsi.txt")->content eq "Microsoft NCSI"; + return 1 if $self->get("http://www.apple.com")->content =~ m,Apple,; + return 0; +} + + +my @ANI = ('-', '\\', '|', '/'); + +sub progress { + my($self, $status, $m) = @_; + return unless $self->{show_progress}; + + local($,, $\); + if ($status eq "begin") { + print STDERR "** ", $m->method, " ", $m->uri, " ==> "; + $self->{progress_start} = time; + $self->{progress_lastp} = ""; + $self->{progress_ani} = 0; + } + elsif ($status eq "end") { + delete $self->{progress_lastp}; + delete $self->{progress_ani}; + print STDERR $m->status_line; + my $t = time - delete $self->{progress_start}; + print STDERR " (${t}s)" if $t; + print STDERR "\n"; + } + elsif ($status eq "tick") { + print STDERR "$ANI[$self->{progress_ani}++]\b"; + $self->{progress_ani} %= @ANI; + } + else { + my $p = sprintf "%3.0f%%", $status * 100; + return if $p eq $self->{progress_lastp}; + print STDERR "$p\b\b\b\b"; + $self->{progress_lastp} = $p; + } + STDERR->flush; +} + + +# +# This whole allow/forbid thing is based on man 1 at's way of doing things. +# +sub is_protocol_supported +{ + my($self, $scheme) = @_; + if (ref $scheme) { + # assume we got a reference to a URI object + $scheme = $scheme->scheme; + } + else { + Carp::croak("Illegal scheme '$scheme' passed to is_protocol_supported") + if $scheme =~ /\W/; + $scheme = lc $scheme; + } + + my $x; + if(ref($self) and $x = $self->protocols_allowed) { + return 0 unless grep lc($_) eq $scheme, @$x; + } + elsif (ref($self) and $x = $self->protocols_forbidden) { + return 0 if grep lc($_) eq $scheme, @$x; + } + + local($SIG{__DIE__}); # protect against user defined die handlers + $x = LWP::Protocol::implementor($scheme); + return 1 if $x and $x ne 'LWP::Protocol::nogo'; + return 0; +} + + +sub protocols_allowed { shift->_elem('protocols_allowed' , @_) } +sub protocols_forbidden { shift->_elem('protocols_forbidden' , @_) } +sub requests_redirectable { shift->_elem('requests_redirectable', @_) } + + +sub redirect_ok +{ + # RFC 2616, section 10.3.2 and 10.3.3 say: + # If the 30[12] status code is received in response to a request other + # than GET or HEAD, the user agent MUST NOT automatically redirect the + # request unless it can be confirmed by the user, since this might + # change the conditions under which the request was issued. + + # Note that this routine used to be just: + # return 0 if $_[1]->method eq "POST"; return 1; + + my($self, $new_request, $response) = @_; + my $method = $response->request->method; + return 0 unless grep $_ eq $method, + @{ $self->requests_redirectable || [] }; + + if ($new_request->uri->scheme eq 'file') { + $response->header("Client-Warning" => + "Can't redirect to a file:// URL!"); + return 0; + } + + # Otherwise it's apparently okay... + return 1; +} + +sub credentials { + my $self = shift; + my $netloc = lc(shift || ''); + my $realm = shift || ""; + my $old = $self->{basic_authentication}{$netloc}{$realm}; + if (@_) { + $self->{basic_authentication}{$netloc}{$realm} = [@_]; + } + return unless $old; + return @$old if wantarray; + return join(":", @$old); +} + +sub get_basic_credentials +{ + my($self, $realm, $uri, $proxy) = @_; + return if $proxy; + return $self->credentials($uri->host_port, $realm); +} + + +sub timeout +{ + my $self = shift; + my $old = $self->{timeout}; + if (@_) { + $self->{timeout} = shift; + if (my $conn_cache = $self->conn_cache) { + for my $conn ($conn_cache->get_connections) { + $conn->timeout($self->{timeout}); + } + } + } + return $old; +} + +sub local_address{ shift->_elem('local_address',@_); } +sub max_size { shift->_elem('max_size', @_); } +sub max_redirect { shift->_elem('max_redirect', @_); } +sub show_progress{ shift->_elem('show_progress', @_); } +sub send_te { shift->_elem('send_te', @_); } + +sub ssl_opts { + my $self = shift; + if (@_ == 1) { + my $k = shift; + return $self->{ssl_opts}{$k}; + } + if (@_) { + my $old; + while (@_) { + my($k, $v) = splice(@_, 0, 2); + $old = $self->{ssl_opts}{$k} unless @_; + if (defined $v) { + $self->{ssl_opts}{$k} = $v; + } + else { + delete $self->{ssl_opts}{$k}; + } + } + %{$self->{ssl_opts}} = (%{$self->{ssl_opts}}, @_); + return $old; + } + + my @opts= sort keys %{$self->{ssl_opts}}; + return @opts; +} + +sub parse_head { + my $self = shift; + if (@_) { + my $flag = shift; + my $parser; + my $old = $self->set_my_handler("response_header", $flag ? sub { + my($response, $ua) = @_; + require HTML::HeadParser; + $parser = HTML::HeadParser->new; + $parser->xml_mode(1) if $response->content_is_xhtml; + $parser->utf8_mode(1) if $HTML::Parser::VERSION >= 3.40; + + push(@{$response->{handlers}{response_data}}, { + callback => sub { + return unless $parser; + unless ($parser->parse($_[3])) { + my $h = $parser->header; + my $r = $_[0]; + for my $f ($h->header_field_names) { + $r->init_header($f, [$h->header($f)]); + } + undef($parser); + } + }, + }); + + } : undef, + m_media_type => "html", + ); + return !!$old; + } + else { + return !!$self->get_my_handler("response_header"); + } +} + +sub cookie_jar { + my $self = shift; + my $old = $self->{cookie_jar}; + + return $old unless @_; + + my $jar = shift; + if (ref($jar) eq "HASH") { + my $class = $self->{cookie_jar_class}; + try { + load($class); + $jar = $class->new(%$jar); + } + catch { + my $error = $_; + if ($error =~ /Can't locate/) { + die "cookie_jar_class '$class' not found\n"; + } + else { + die "$error\n"; + } + }; + } + $self->{cookie_jar} = $jar; + $self->set_my_handler("request_prepare", + $jar ? sub { + return if $_[0]->header("Cookie"); + $jar->add_cookie_header($_[0]); + } : undef, + ); + $self->set_my_handler("response_done", + $jar ? sub { $jar->extract_cookies($_[0]); } : undef, + ); + + return $old; +} + +sub default_headers { + my $self = shift; + my $old = $self->{def_headers} ||= HTTP::Headers->new; + if (@_) { + Carp::croak("default_headers not set to HTTP::Headers compatible object") + unless @_ == 1 && $_[0]->can("header_field_names"); + $self->{def_headers} = shift; + } + return $old; +} + +sub default_header { + my $self = shift; + return $self->default_headers->header(@_); +} + +sub _agent { "libwww-perl/$VERSION" } + +sub agent { + my $self = shift; + if (@_) { + my $agent = shift; + if ($agent) { + $agent .= $self->_agent if $agent =~ /\s+$/; + } + else { + undef($agent) + } + return $self->default_header("User-Agent", $agent); + } + return $self->default_header("User-Agent"); +} + +sub from { # legacy + my $self = shift; + return $self->default_header("From", @_); +} + + +sub conn_cache { + my $self = shift; + my $old = $self->{conn_cache}; + if (@_) { + my $cache = shift; + if ( ref($cache) eq "HASH" ) { + require LWP::ConnCache; + $cache = LWP::ConnCache->new(%$cache); + } + elsif ( defined $cache) { + for my $conn ( $cache->get_connections ) { + $conn->timeout( $self->timeout ); + } + } + $self->{conn_cache} = $cache; + } + return $old; +} + + +sub add_handler { + my($self, $phase, $cb, %spec) = @_; + $spec{line} ||= join(":", (caller)[1,2]); + my $conf = $self->{handlers}{$phase} ||= do { + require HTTP::Config; + HTTP::Config->new; + }; + $conf->add(%spec, callback => $cb); +} + +sub set_my_handler { + my($self, $phase, $cb, %spec) = @_; + $spec{owner} = (caller(1))[3] unless exists $spec{owner}; + $self->remove_handler($phase, %spec); + $spec{line} ||= join(":", (caller)[1,2]); + $self->add_handler($phase, $cb, %spec) if $cb; +} + +sub get_my_handler { + my $self = shift; + my $phase = shift; + my $init = pop if @_ % 2; + my %spec = @_; + my $conf = $self->{handlers}{$phase}; + unless ($conf) { + return unless $init; + require HTTP::Config; + $conf = $self->{handlers}{$phase} = HTTP::Config->new; + } + $spec{owner} = (caller(1))[3] unless exists $spec{owner}; + my @h = $conf->find(%spec); + if (!@h && $init) { + if (ref($init) eq "CODE") { + $init->(\%spec); + } + elsif (ref($init) eq "HASH") { + $spec{$_}= $init->{$_} + for keys %$init; + } + $spec{callback} ||= sub {}; + $spec{line} ||= join(":", (caller)[1,2]); + $conf->add(\%spec); + return \%spec; + } + return wantarray ? @h : $h[0]; +} + +sub remove_handler { + my($self, $phase, %spec) = @_; + if ($phase) { + my $conf = $self->{handlers}{$phase} || return; + my @h = $conf->remove(%spec); + delete $self->{handlers}{$phase} if $conf->empty; + return @h; + } + + return unless $self->{handlers}; + return map $self->remove_handler($_), sort keys %{$self->{handlers}}; +} + +sub handlers { + my($self, $phase, $o) = @_; + my @h; + if ($o->{handlers} && $o->{handlers}{$phase}) { + push(@h, @{$o->{handlers}{$phase}}); + } + if (my $conf = $self->{handlers}{$phase}) { + push(@h, $conf->matching($o)); + } + return @h; +} + +sub run_handlers { + my($self, $phase, $o) = @_; + + # here we pass $_[2] to the callbacks, instead of $o, so that they + # can assign to it; e.g. request_prepare is documented to allow + # that + if (defined(wantarray)) { + for my $h ($self->handlers($phase, $o)) { + my $ret = $h->{callback}->($_[2], $self, $h); + return $ret if $ret; + } + return undef; + } + + for my $h ($self->handlers($phase, $o)) { + $h->{callback}->($_[2], $self, $h); + } +} + + +# deprecated +sub use_eval { shift->_elem('use_eval', @_); } +sub use_alarm +{ + Carp::carp("LWP::UserAgent->use_alarm(BOOL) is a no-op") + if @_ > 1 && $^W; + ""; +} + + +sub clone +{ + my $self = shift; + my $copy = bless { %$self }, ref $self; # copy most fields + + delete $copy->{handlers}; + delete $copy->{conn_cache}; + + # copy any plain arrays and hashes; known not to need recursive copy + for my $k (qw(proxy no_proxy requests_redirectable ssl_opts)) { + next unless $copy->{$k}; + if (ref($copy->{$k}) eq "ARRAY") { + $copy->{$k} = [ @{$copy->{$k}} ]; + } + elsif (ref($copy->{$k}) eq "HASH") { + $copy->{$k} = { %{$copy->{$k}} }; + } + } + + if ($self->{def_headers}) { + $copy->{def_headers} = $self->{def_headers}->clone; + } + + # re-enable standard handlers + $copy->parse_head($self->parse_head); + + # no easy way to clone the cookie jar; so let's just remove it for now + $copy->cookie_jar(undef); + + $copy; +} + + +sub mirror +{ + my($self, $url, $file) = @_; + + die "Local file name is missing" unless defined $file && length $file; + + my $request = HTTP::Request->new('GET', $url); + + # If the file exists, add a cache-related header + if ( -e $file ) { + my ($mtime) = ( stat($file) )[9]; + if ($mtime) { + $request->header( 'If-Modified-Since' => HTTP::Date::time2str($mtime) ); + } + } + + require File::Temp; + my ($tmpfh, $tmpfile) = File::Temp::tempfile("$file-XXXXXX"); + close($tmpfh) or die "Could not close tmpfile '$tmpfile': $!"; + + my $response = $self->request($request, $tmpfile); + if ( $response->header('X-Died') ) { + unlink($tmpfile); + die $response->header('X-Died'); + } + + # Only fetching a fresh copy of the file would be considered success. + # If the file was not modified, "304" would returned, which + # is considered by HTTP::Status to be a "redirect", /not/ "success" + if ( $response->is_success ) { + my @stat = stat($tmpfile) or die "Could not stat tmpfile '$tmpfile': $!"; + my $file_length = $stat[7]; + my ($content_length) = $response->header('Content-length'); + + if ( defined $content_length and $file_length < $content_length ) { + unlink($tmpfile); + die "Transfer truncated: only $file_length out of $content_length bytes received\n"; + } + elsif ( defined $content_length and $file_length > $content_length ) { + unlink($tmpfile); + die "Content-length mismatch: expected $content_length bytes, got $file_length\n"; + } + # The file was the expected length. + else { + # Replace the stale file with a fresh copy + # File::Copy will attempt to do it atomically, + # and fall back to a delete + copy if that fails. + File::Copy::move( $tmpfile, $file ) + or die "Cannot rename '$tmpfile' to '$file': $!\n"; + + # Set standard file permissions if umask is supported. + # If not, leave what File::Temp created in effect. + if ( defined(my $umask = umask()) ) { + my $mode = 0666 &~ $umask; + chmod $mode, $file + or die sprintf("Cannot chmod %o '%s': %s\n", $mode, $file, $!); + } + + # make sure the file has the same last modification time + if ( my $lm = $response->last_modified ) { + utime $lm, $lm, $file + or warn "Cannot update modification time of '$file': $!\n"; + } + } + } + # The local copy is fresh enough, so just delete the temp file + else { + unlink($tmpfile); + } + return $response; +} + + +sub _need_proxy { + my($req, $ua) = @_; + return if exists $req->{proxy}; + my $proxy = $ua->{proxy}{$req->uri->scheme} || return; + if ($ua->{no_proxy}) { + if (my $host = eval { $req->uri->host }) { + for my $domain (@{$ua->{no_proxy}}) { + $domain =~ s/^\.//; + return if $host =~ /(?:^|\.)\Q$domain\E$/; + } + } + } + $req->{proxy} = $HTTP::URI_CLASS->new($proxy); +} + + +sub proxy { + my $self = shift; + my $key = shift; + if (!@_ && ref $key eq 'ARRAY') { + die 'odd number of items in proxy arrayref!' unless @{$key} % 2 == 0; + + # This map reads the elements of $key 2 at a time + return + map { $self->proxy($key->[2 * $_], $key->[2 * $_ + 1]) } + (0 .. @{$key} / 2 - 1); + } + return map { $self->proxy($_, @_) } @$key if ref $key; + + Carp::croak("'$key' is not a valid URI scheme") unless $key =~ /^$URI::scheme_re\z/; + my $old = $self->{'proxy'}{$key}; + if (@_) { + my $url = shift; + if (defined($url) && length($url)) { + Carp::croak("Proxy must be specified as absolute URI; '$url' is not") unless $url =~ /^$URI::scheme_re:/; + Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://[\w[],; + } + $self->{proxy}{$key} = $url; + $self->set_my_handler("request_preprepare", \&_need_proxy) + } + return $old; +} + + +sub env_proxy { + my ($self) = @_; + require Encode; + require Encode::Locale; + my $env_request_method= $ENV{REQUEST_METHOD}; + my %seen; + foreach my $k (sort keys %ENV) { + my $real_key= $k; + my $v= $ENV{$k} + or next; + if ( $env_request_method ) { + # Need to be careful when called in the CGI environment, as + # the HTTP_PROXY variable is under control of that other guy. + next if $k =~ /^HTTP_/; + $k = "HTTP_PROXY" if $k eq "CGI_HTTP_PROXY"; + } + $k = lc($k); + if (my $from_key= $seen{$k}) { + # Only warn about proxy-related env vars, not unrelated ones (GH #372) + if ($k =~ /^(.*)_proxy$/) { + warn "Environment contains multiple differing definitions for '$k'.\n". + "Using value from '$from_key' ($ENV{$from_key}) and ignoring '$real_key' ($v)" + if $v ne $ENV{$from_key}; + } + next; + } else { + $seen{$k}= $real_key; + } + + next unless $k =~ /^(.*)_proxy$/; + $k = $1; + if ($k eq 'no') { + $self->no_proxy(split(/\s*,\s*/, $v)); + } + else { + # Ignore random _proxy variables, allow only valid schemes + next unless $k =~ /^$URI::scheme_re\z/; + # Ignore xxx_proxy variables if xxx isn't a supported protocol + next unless LWP::Protocol::implementor($k); + $self->proxy($k, Encode::decode(locale => $v)); + } + } +} + + +sub no_proxy { + my($self, @no) = @_; + if (@no) { + push(@{ $self->{'no_proxy'} }, @no); + } + else { + $self->{'no_proxy'} = []; + } +} + + +sub _new_response { + my($request, $code, $message, $content) = @_; + $message ||= HTTP::Status::status_message($code); + my $response = HTTP::Response->new($code, $message); + $response->request($request); + $response->header("Client-Date" => HTTP::Date::time2str(time)); + $response->header("Client-Warning" => "Internal response"); + $response->header("Content-Type" => "text/plain"); + $response->content($content || "$code $message\n"); + return $response; +} + + +1; + +__END__ + +=pod + +=head1 NAME + +LWP::UserAgent - Web user agent class + +=head1 SYNOPSIS + + use strict; + use warnings; + + use LWP::UserAgent (); + + my $ua = LWP::UserAgent->new(timeout => 10); + $ua->env_proxy; + + my $response = $ua->get('http://example.com'); + + if ($response->is_success) { + print $response->decoded_content; + } + else { + die $response->status_line; + } + +Extra layers of security (note the C and C): + + use strict; + use warnings; + + use HTTP::CookieJar::LWP (); + use LWP::UserAgent (); + + my $jar = HTTP::CookieJar::LWP->new; + my $ua = LWP::UserAgent->new( + cookie_jar => $jar, + protocols_allowed => ['http', 'https'], + timeout => 10, + ); + + $ua->env_proxy; + + my $response = $ua->get('http://example.com'); + + if ($response->is_success) { + print $response->decoded_content; + } + else { + die $response->status_line; + } + +=head1 DESCRIPTION + +The L is a class implementing a web user agent. +L objects can be used to dispatch web requests. + +In normal use the application creates an L object, and +then configures it with values for timeouts, proxies, name, etc. It +then creates an instance of L for the request that +needs to be performed. This request is then passed to one of the +request method the UserAgent, which dispatches it using the relevant +protocol, and returns a L object. There are +convenience methods for sending the most common request types: +L, L, L, +L and L. When using these +methods, the creation of the request object is hidden as shown in the +synopsis above. + +The basic approach of the library is to use HTTP-style communication +for all protocol schemes. This means that you will construct +L objects and receive L objects even +for non-HTTP resources like I and I. In order to achieve +even more similarity to HTTP-style communications, I menus and +file directories are converted to HTML documents. + +=head1 CONSTRUCTOR METHODS + +The following constructor methods are available: + +=head2 clone + + my $ua2 = $ua->clone; + +Returns a copy of the L object. + +B: Please be aware that the clone method does not copy or clone your +C attribute. Due to the limited restrictions on what can be used +for your cookie jar, there is no way to clone the attribute. The C +attribute will be C in the new object instance. + +=head2 new + + my $ua = LWP::UserAgent->new( %options ) + +This method constructs a new L object and returns it. +Key/value pair arguments may be provided to set up the initial state. +The following options correspond to attribute methods described below: + + KEY DEFAULT + ----------- -------------------- + agent "libwww-perl/#.###" + conn_cache undef + cookie_jar undef + cookie_jar_class HTTP::Cookies + default_headers HTTP::Headers->new + from undef + local_address undef + max_redirect 7 + max_size undef + no_proxy [] + parse_head 1 + protocols_allowed undef + protocols_forbidden undef + proxy {} + requests_redirectable ['GET', 'HEAD'] + send_te 1 + show_progress undef + ssl_opts { verify_hostname => 1 } + timeout 180 + +The following additional options are also accepted: If the C option +is passed in with a true value, then proxy settings are read from environment +variables (see L). If C isn't provided, the +C environment variable controls if +L is called during initialization. If the +C option value is defined and non-zero, then an C is set up (see +L). The C value is passed on as the +C for the connection cache. + +C must be set as an arrayref of key/value pairs. C takes an +arrayref of domains. + +=head1 ATTRIBUTES + +The settings of the configuration attributes modify the behaviour of the +L when it dispatches requests. Most of these can also +be initialized by options passed to the constructor method. + +The following attribute methods are provided. The attribute value is +left unchanged if no argument is given. The return value from each +method is the old attribute value. + +=head2 agent + + my $agent = $ua->agent; + $ua->agent('Checkbot/0.4 '); # append the default to the end + $ua->agent('Mozilla/5.0'); + $ua->agent(""); # don't identify + +Get/set the product token that is used to identify the user agent on +the network. The agent value is sent as the C header in +the requests. + +The default is a string of the form C, where C<#.###> is +substituted with the version number of this library. + +If the provided string ends with space, the default C +string is appended to it. + +The user agent string should be one or more simple product identifiers +with an optional version number separated by the C character. + +=head2 conn_cache + + my $cache_obj = $ua->conn_cache; + $ua->conn_cache( $cache_obj ); + +Get/set the L object to use. See L +for details. + +=head2 cookie_jar + + my $jar = $ua->cookie_jar; + $ua->cookie_jar( $cookie_jar_obj ); + +Get/set the cookie jar object to use. The only requirement is that +the cookie jar object must implement the C and +C methods. These methods will then be +invoked by the user agent as requests are sent and responses are +received. Normally this will be a L object or some +subclass. You are, however, encouraged to use L +instead. See L for more information. + + use HTTP::CookieJar::LWP (); + + my $jar = HTTP::CookieJar::LWP->new; + my $ua = LWP::UserAgent->new( cookie_jar => $jar ); + + # or after object creation + $ua->cookie_jar( $cookie_jar ); + +The default is to have no cookie jar, i.e. never automatically add +C headers to the requests. + +If C<$jar> contains an unblessed hash reference, a new cookie jar object is +created for you automatically. The object is of the class set with the +C constructor argument, which defaults to L. + + $ua->cookie_jar({ file => "$ENV{HOME}/.cookies.txt" }); + +is really just a shortcut for: + + require HTTP::Cookies; + $ua->cookie_jar(HTTP::Cookies->new(file => "$ENV{HOME}/.cookies.txt")); + +As described above and in L, you should set +C to C<"HTTP::CookieJar::LWP"> to get a safer cookie jar. + + my $ua = LWP::UserAgent->new( cookie_jar_class => 'HTTP::CookieJar::LWP' ); + $ua->cookie_jar({}); # HTTP::CookieJar::LWP takes no args + +These can also be combined into the constructor, so a jar is created at +instantiation. + + my $ua = LWP::UserAgent->new( + cookie_jar_class => 'HTTP::CookieJar::LWP', + cookie_jar => {}, + ); + +=head2 credentials + + my $creds = $ua->credentials(); + $ua->credentials( $netloc, $realm ); + $ua->credentials( $netloc, $realm, $uname, $pass ); + $ua->credentials("www.example.com:80", "Some Realm", "foo", "secret"); + +Get/set the user name and password to be used for a realm. + +The C<$netloc> is a string of the form C<< : >>. The username and +password will only be passed to this server. + +=head2 default_header + + $ua->default_header( $field ); + $ua->default_header( $field => $value ); + $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()); + $ua->default_header('Accept-Language' => "no, en"); + +This is just a shortcut for +C<< $ua->default_headers->header( $field => $value ) >>. + +=head2 default_headers + + my $headers = $ua->default_headers; + $ua->default_headers( $headers_obj ); + +Get/set the headers object that will provide default header values for +any requests sent. By default this will be an empty L +object. + +=head2 from + + my $from = $ua->from; + $ua->from('foo@bar.com'); + +Get/set the email address for the human user who controls +the requesting user agent. The address should be machine-usable, as +defined in L. The C value +is sent as the C header in the requests. + +The default is to not send a C header. See +L for the more general interface that allow +any header to be defaulted. + + +=head2 local_address + + my $address = $ua->local_address; + $ua->local_address( $address ); + +Get/set the local interface to bind to for network connections. The interface +can be specified as a hostname or an IP address. This value is passed as the +C argument to L. + +=head2 max_redirect + + my $max = $ua->max_redirect; + $ua->max_redirect( $n ); + +This reads or sets the object's limit of how many times it will obey +redirection responses in a given request cycle. + +By default, the value is C<7>. This means that if you call L +and the response is a redirect elsewhere which is in turn a +redirect, and so on seven times, then LWP gives up after that seventh +request. + +=head2 max_size + + my $size = $ua->max_size; + $ua->max_size( $bytes ); + +Get/set the size limit for response content. The default is C, +which means that there is no limit. If the returned response content +is only partial, because the size limit was exceeded, then a +C header will be added to the response. The content +might end up longer than C as we abort once appending a +chunk of data makes the length exceed the limit. The C +header, if present, will indicate the length of the full content and +will normally not be the same as C<< length($res->content) >>. + +=head2 parse_head + + my $bool = $ua->parse_head; + $ua->parse_head( $boolean ); + +Get/set a value indicating whether we should initialize response +headers from the Ehead> section of HTML documents. The default is +true. I unless you know what you are doing. + +=head2 protocols_allowed + + my $aref = $ua->protocols_allowed; # get allowed protocols + $ua->protocols_allowed( \@protocols ); # allow ONLY these + $ua->protocols_allowed(undef); # delete the list + $ua->protocols_allowed(['http',]); # ONLY allow http + +By default, an object has neither a C list, nor a +L list. + +This reads (or sets) this user agent's list of protocols that the +request methods will exclusively allow. The protocol names are case +insensitive. + +For example: C<< $ua->protocols_allowed( [ 'http', 'https'] ); >> +means that this user agent will I those protocols, +and attempts to use this user agent to access URLs with any other +schemes (like C) will result in a 500 error. + +Note that having a C list causes any +L list to be ignored. + +=head2 protocols_forbidden + + my $aref = $ua->protocols_forbidden; # get the forbidden list + $ua->protocols_forbidden(\@protocols); # do not allow these + $ua->protocols_forbidden(['http',]); # All http reqs get a 500 + $ua->protocols_forbidden(undef); # delete the list + +This reads (or sets) this user agent's list of protocols that the +request method will I allow. The protocol names are case +insensitive. + +For example: C<< $ua->protocols_forbidden( [ 'file', 'mailto'] ); >> +means that this user agent will I allow those protocols, and +attempts to use this user agent to access URLs with those schemes +will result in a 500 error. + +=head2 requests_redirectable + + my $aref = $ua->requests_redirectable; + $ua->requests_redirectable( \@requests ); + $ua->requests_redirectable(['GET', 'HEAD',]); # the default + +This reads or sets the object's list of request names that +L will allow redirection for. By default, this +is C<['GET', 'HEAD']>, as per L. +To change to include C, consider: + + push @{ $ua->requests_redirectable }, 'POST'; + +=head2 send_te + + my $bool = $ua->send_te; + $ua->send_te( $boolean ); + +If true, will send a C header along with the request. The default is +true. Set it to false to disable the C header for systems who can't +handle it. + +=head2 show_progress + + my $bool = $ua->show_progress; + $ua->show_progress( $boolean ); + +Get/set a value indicating whether a progress bar should be displayed +on the terminal as requests are processed. The default is false. + +=head2 ssl_opts + + my @keys = $ua->ssl_opts; + my $val = $ua->ssl_opts( $key ); + $ua->ssl_opts( $key => $value ); + +Get/set the options for SSL connections. Without argument return the list +of options keys currently set. With a single argument return the current +value for the given option. With 2 arguments set the option value and return +the old. Setting an option to the value C removes this option. + +The options that LWP relates to are: + +=over + +=item C => $bool + +When TRUE LWP will for secure protocol schemes ensure it connects to servers +that have a valid certificate matching the expected hostname. If FALSE no +checks are made and you can't be sure that you communicate with the expected peer. +The no checks behaviour was the default for libwww-perl-5.837 and earlier releases. + +This option is initialized from the C environment +variable. If this environment variable isn't set; then C +defaults to 1. + +Please note that recently the overall effect of this option with regards to +SSL handling has changed. As of version 6.11 of L, which is an +external module, SSL certificate verification was harmonized to behave in sync with +L. With this change, setting this option no longer disables all SSL +certificate verification, only the hostname checks. To disable all verification, +use the C option in the C attribute. For example: +C<< $ua->ssl_opts(SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE); >> + +=item C => $path + +The path to a file containing Certificate Authority certificates. +A default setting for this option is provided by checking the environment +variables C and C in order. + +=item C => $path + +The path to a directory containing files containing Certificate Authority +certificates. +A default setting for this option is provided by checking the environment +variables C and C in order. + +=back + +Other options can be set and are processed directly by the SSL Socket implementation +in use. See L or L for details. + +The libwww-perl core no longer bundles protocol plugins for SSL. You will need +to install L separately to enable support for processing +https-URLs. + +=head2 timeout + + my $secs = $ua->timeout; + $ua->timeout( $secs ); + +Get/set the timeout value in seconds. The default value is +180 seconds, i.e. 3 minutes. + +The request is aborted if no activity on the connection to the server +is observed for C seconds. This means that the time it takes +for the complete transaction and the L method to +actually return might be longer. + +When a request times out, a response object is still returned. The response +will have a standard HTTP Status Code (500). This response will have the +"Client-Warning" header set to the value of "Internal response". See the +L method description below for further details. + +Disabling the timeout is not supported, +but it can be set to an arbitrarily large value. + +=head1 PROXY ATTRIBUTES + +The following methods set up when requests should be passed via a +proxy server. + +=head2 env_proxy + + $ua->env_proxy; + +Load proxy settings from C<*_proxy> environment variables. You might +specify proxies like this (sh-syntax): + + gopher_proxy=http://proxy.example.org/ + wais_proxy=http://proxy.example.org/ + no_proxy="localhost,example.com" + export gopher_proxy wais_proxy no_proxy + +csh or tcsh users should use the C command to define these +environment variables. + +On systems with case insensitive environment variables there exists a +name clash between the CGI environment variables and the C +environment variable normally picked up by C. Because of +this C is not honored for CGI scripts. The +C environment variable can be used instead. + +=head2 no_proxy + + $ua->no_proxy( @domains ); + $ua->no_proxy('localhost', 'example.com'); + $ua->no_proxy(); # clear the list + +Do not proxy requests to the given domains, including subdomains. +Calling C without any domains clears the list of domains. + +=head2 proxy + + $ua->proxy(\@schemes, $proxy_url) + $ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/'); + + # For a single scheme: + $ua->proxy($scheme, $proxy_url) + $ua->proxy('gopher', 'http://proxy.sn.no:8001/'); + + # To set multiple proxies at once: + $ua->proxy([ + ftp => 'http://ftp.example.com:8001/', + [ 'http', 'https' ] => 'http://http.example.com:8001/', + ]); + +Set/retrieve proxy URL for a scheme. + +The first form specifies that the URL is to be used as a proxy for +access methods listed in the list in the first method argument, +i.e. C and C. + +The second form shows a shorthand form for specifying +proxy URL for a single access scheme. + +The third form demonstrates setting multiple proxies at once. This is also +the only form accepted by the constructor. + +=head1 HANDLERS + +Handlers are code that injected at various phases during the +processing of requests. The following methods are provided to manage +the active handlers: + +=head2 add_handler + + $ua->add_handler( $phase => \&cb, %matchspec ) + +Add handler to be invoked in the given processing phase. For how to +specify C<%matchspec> see L. + +The possible values C<$phase> and the corresponding callback signatures are as +follows. Note that the handlers are documented in the order in which they will +be run, which is: + + request_preprepare + request_prepare + request_send + response_header + response_data + response_done + response_redirect + +=over + +=item request_preprepare => sub { my($request, $ua, $handler) = @_; ... } + +The handler is called before the C and other standard +initialization of the request. This can be used to set up headers +and attributes that the C handler depends on. Proxy +initialization should take place here; but in general don't register +handlers for this phase. + +=item request_prepare => sub { my($request, $ua, $handler) = @_; ... } + +The handler is called before the request is sent and can modify the +request any way it see fit. This can for instance be used to add +certain headers to specific requests. + +The method can assign a new request object to C<$_[0]> to replace the +request that is sent fully. + +The return value from the callback is ignored. If an exception is +raised it will abort the request and make the request method return a +"400 Bad request" response. + +=item request_send => sub { my($request, $ua, $handler) = @_; ... } + +This handler gets a chance of handling requests before they're sent to the +protocol handlers. It should return an L object if it +wishes to terminate the processing; otherwise it should return nothing. + +The C and C handlers will not be +invoked for this response, but the C will be. + +=item response_header => sub { my($response, $ua, $handler) = @_; ... } + +This handler is called right after the response headers have been +received, but before any content data. The handler might set up +handlers for data and might croak to abort the request. + +The handler might set the C<< $response->{default_add_content} >> value to +control if any received data should be added to the response object +directly. This will initially be false if the C<< $ua->request() >> method +was called with a C<$content_file> or C<$content_cb argument>; otherwise true. + +=item response_data => sub { my($response, $ua, $handler, $data) = @_; ... } + +This handler is called for each chunk of data received for the +response. The handler might croak to abort the request. + +This handler needs to return a TRUE value to be called again for +subsequent chunks for the same request. + +=item response_done => sub { my($response, $ua, $handler) = @_; ... } + +The handler is called after the response has been fully received, but +before any redirect handling is attempted. The handler can be used to +extract information or modify the response. + +=item response_redirect => sub { my($response, $ua, $handler) = @_; ... } + +The handler is called in C<< $ua->request >> after C. If the +handler returns an L object we'll start over with processing +this request instead. + +=back + +For all of these, C<$handler> is a code reference to the handler that +is currently being run. + +=head2 get_my_handler + + $ua->get_my_handler( $phase, %matchspec ); + $ua->get_my_handler( $phase, %matchspec, $init ); + +Will retrieve the matching handler as hash ref. + +If C<$init> is passed as a true value, create and add the +handler if it's not found. If C<$init> is a subroutine reference, then +it's called with the created handler hash as argument. This sub might +populate the hash with extra fields; especially the callback. If +C<$init> is a hash reference, merge the hashes. + +=head2 handlers + + $ua->handlers( $phase, $request ) + $ua->handlers( $phase, $response ) + +Returns the handlers that apply to the given request or response at +the given processing phase. + +=head2 remove_handler + + $ua->remove_handler( undef, %matchspec ); + $ua->remove_handler( $phase, %matchspec ); + $ua->remove_handler(); # REMOVE ALL HANDLERS IN ALL PHASES + +Remove handlers that match the given C<%matchspec>. If C<$phase> is not +provided, remove handlers from all phases. + +Be careful as calling this function with C<%matchspec> that is not +specific enough can remove handlers not owned by you. It's probably +better to use the L method instead. + +The removed handlers are returned. + +=head2 set_my_handler + + $ua->set_my_handler( $phase, $cb, %matchspec ); + $ua->set_my_handler($phase, undef); # remove handler for phase + +Set handlers private to the executing subroutine. Works by defaulting +an C field to the C<%matchspec> that holds the name of the called +subroutine. You might pass an explicit C to override this. + +If C<$cb> is passed as C, remove the handler. + +=head1 REQUEST METHODS + +The methods described in this section are used to dispatch requests +via the user agent. The following request methods are provided: + +=head2 delete + + my $res = $ua->delete( $url ); + my $res = $ua->delete( $url, $field_name => $value, ... ); + +This method will dispatch a C request on the given URL. Additional +headers and content options are the same as for the L +method. + +This method will use the C function from L +to build the request. See L for a details on +how to pass form content and other advanced features. + +=head2 get + + my $res = $ua->get( $url ); + my $res = $ua->get( $url , $field_name => $value, ... ); + +This method will dispatch a C request on the given URL. Further +arguments can be given to initialize the headers of the request. These +are given as separate name/value pairs. The return value is a +response object. See L for a description of the +interface it provides. + +There will still be a response object returned when LWP can't connect to the +server specified in the URL or when other failures in protocol handlers occur. +These internal responses use the standard HTTP status codes, so the responses +can't be differentiated by testing the response status code alone. Error +responses that LWP generates internally will have the "Client-Warning" header +set to the value "Internal response". If you need to differentiate these +internal responses from responses that a remote server actually generates, you +need to test this header value. + +Fields names that start with ":" are special. These will not +initialize headers of the request but will determine how the response +content is treated. The following special field names are recognized: + + ':content_file' => $filename # or $filehandle + ':content_cb' => \&callback + ':read_size_hint' => $bytes + +If a C<$filename> or C<$filehandle> is provided with the C<:content_file> +option, then the response content will be saved here instead of in +the response object. The C<$filehandle> may also be an object with +an open file descriptor, such as a L object. +If a callback is provided with the C<:content_cb> option then +this function will be called for each chunk of the response content as +it is received from the server. If neither of these options are +given, then the response content will accumulate in the response +object itself. This might not be suitable for very large response +bodies. Only one of C<:content_file> or C<:content_cb> can be +specified. The content of unsuccessful responses will always +accumulate in the response object itself, regardless of the +C<:content_file> or C<:content_cb> options passed in. Note that errors +writing to the content file (for example due to permission denied +or the filesystem being full) will be reported via the C +or C response headers, and not the C method. + +The C<:read_size_hint> option is passed to the protocol module which +will try to read data from the server in chunks of this size. A +smaller value for the C<:read_size_hint> will result in a higher +number of callback invocations. + +The callback function is called with 3 arguments: a chunk of data, a +reference to the response object, and a reference to the protocol +object. The callback can abort the request by invoking C. The +exception message will show up as the "X-Died" header field in the +response returned by the C<< $ua->get() >> method. + +=head2 head + + my $res = $ua->head( $url ); + my $res = $ua->head( $url , $field_name => $value, ... ); + +This method will dispatch a C request on the given URL. +Otherwise it works like the L method described above. + +=head2 is_protocol_supported + + my $bool = $ua->is_protocol_supported( $scheme ); + +You can use this method to test whether this user agent object supports the +specified C. (The C might be a string (like C or +C) or it might be an L object reference.) + +Whether a scheme is supported is determined by the user agent's +C or C lists (if any), and by +the capabilities of LWP. I.e., this will return true only if LWP +supports this protocol I it's permitted for this particular +object. + +=head2 is_online + + my $bool = $ua->is_online; + +Tries to determine if you have access to the Internet. Returns C<1> (true) +if the built-in heuristics determine that the user agent is +able to access the Internet (over HTTP) or C<0> (false). + +See also L. + +=head2 mirror + + my $res = $ua->mirror( $url, $filename ); + +This method will get the document identified by URL and store it in +file called C<$filename>. If the file already exists, then the request +will contain an C header matching the modification +time of the file. If the document on the server has not changed since +this time, then nothing happens. If the document has been updated, it +will be downloaded again. The modification time of the file will be +forced to match that of the server. + +Uses L to attempt to atomically replace the C<$filename>. + +The return value is an L object. + +Dies if the response to fetch the document contains an C header. + +=head2 patch + + # Any version of HTTP::Message works with this form: + my $res = $ua->patch( $url, $field_name => $value, Content => $content ); + + # Using hash or array references requires HTTP::Message >= 6.12 + use HTTP::Request 6.12; + my $res = $ua->patch( $url, \%form ); + my $res = $ua->patch( $url, \@form ); + my $res = $ua->patch( $url, \%form, $field_name => $value, ... ); + my $res = $ua->patch( $url, $field_name => $value, Content => \%form ); + my $res = $ua->patch( $url, $field_name => $value, Content => \@form ); + +This method will dispatch a C request on the given URL, with +C<%form> or C<@form> providing the key/value pairs for the fill-in form +content. Additional headers and content options are the same as for +the L method. + +CAVEAT: + +This method can only accept content that is in key-value pairs when using +L prior to version C<6.12>. Any use of hash or array +references will result in an error prior to version C<6.12>. + +This method will use the C function from L +to build the request. See L for a details on +how to pass form content and other advanced features. + +=head2 post + + my $res = $ua->post( $url, \%form ); + my $res = $ua->post( $url, \@form ); + my $res = $ua->post( $url, \%form, $field_name => $value, ... ); + my $res = $ua->post( $url, $field_name => $value, Content => \%form ); + my $res = $ua->post( $url, $field_name => $value, Content => \@form ); + my $res = $ua->post( $url, $field_name => $value, Content => $content ); + +This method will dispatch a C request on the given URL, with +C<%form> or C<@form> providing the key/value pairs for the fill-in form +content. Additional headers and content options are the same as for +the L method. + +This method will use the C function from L +to build the request. See L for a details on +how to pass form content and other advanced features. + +=head2 put + + # Any version of HTTP::Message works with this form: + my $res = $ua->put( $url, $field_name => $value, Content => $content ); + + # Using hash or array references requires HTTP::Message >= 6.07 + use HTTP::Request 6.07; + my $res = $ua->put( $url, \%form ); + my $res = $ua->put( $url, \@form ); + my $res = $ua->put( $url, \%form, $field_name => $value, ... ); + my $res = $ua->put( $url, $field_name => $value, Content => \%form ); + my $res = $ua->put( $url, $field_name => $value, Content => \@form ); + +This method will dispatch a C request on the given URL, with +C<%form> or C<@form> providing the key/value pairs for the fill-in form +content. Additional headers and content options are the same as for +the L method. + +CAVEAT: + +This method can only accept content that is in key-value pairs when using +L prior to version C<6.07>. Any use of hash or array +references will result in an error prior to version C<6.07>. + +This method will use the C function from L +to build the request. See L for a details on +how to pass form content and other advanced features. + +=head2 request + + my $res = $ua->request( $request ); + my $res = $ua->request( $request, $content_file ); + my $res = $ua->request( $request, $content_cb ); + my $res = $ua->request( $request, $content_cb, $read_size_hint ); + +This method will dispatch the given C<$request> object. Normally this +will be an instance of the L class, but any object with +a similar interface will do. The return value is an L object. + +The C method will process redirects and authentication +responses transparently. This means that it may actually send several +simple requests via the L method described below. + +The request methods described above; L, L, +L and L will all dispatch the request +they build via this method. They are convenience methods that simply hide the +creation of the request object for you. + +The C<$content_file>, C<$content_cb> and C<$read_size_hint> all correspond to +options described with the L method above. Note that errors +writing to the content file (for example due to permission denied +or the filesystem being full) will be reported via the C +or C response headers, and not the C method. + +You are allowed to use a CODE reference as C in the request +object passed in. The C function should return the content +when called. The content can be returned in chunks. The content +function will be invoked repeatedly until it return an empty string to +signal that there is no more content. + +=head2 simple_request + + my $request = HTTP::Request->new( ... ); + my $res = $ua->simple_request( $request ); + my $res = $ua->simple_request( $request, $content_file ); + my $res = $ua->simple_request( $request, $content_cb ); + my $res = $ua->simple_request( $request, $content_cb, $read_size_hint ); + +This method dispatches a single request and returns the response +received. Arguments are the same as for the L described above. + +The difference from L is that C will not try to +handle redirects or authentication responses. The L method +will, in fact, invoke this method for each simple request it sends. + +=head1 CALLBACK METHODS + +The following methods will be invoked as requests are processed. These +methods are documented here because subclasses of L +might want to override their behaviour. + +=head2 get_basic_credentials + + # This checks wantarray and can either return an array: + my ($user, $pass) = $ua->get_basic_credentials( $realm, $uri, $isproxy ); + # or a string that looks like "user:pass" + my $creds = $ua->get_basic_credentials($realm, $uri, $isproxy); + +This is called by L to retrieve credentials for documents +protected by Basic or Digest Authentication. The arguments passed in +is the C<$realm> provided by the server, the C<$uri> requested and a +C to indicate if this is authentication against a proxy server. + +The method should return a username and password. It should return an +empty list to abort the authentication resolution attempt. Subclasses +can override this method to prompt the user for the information. An +example of this can be found in C program distributed +with this library. + +The base implementation simply checks a set of pre-stored member +variables, set up with the L method. + +=head2 prepare_request + + $request = $ua->prepare_request( $request ); + +This method is invoked by L. Its task is +to modify the given C<$request> object by setting up various headers based +on the attributes of the user agent. The return value should normally be the +C<$request> object passed in. If a different request object is returned +it will be the one actually processed. + +The headers affected by the base implementation are; C, +C, C and C. + +=head2 progress + + my $prog = $ua->progress( $status, $request_or_response ); + +This is called frequently as the response is received regardless of +how the content is processed. The method is called with C<$status> +"begin" at the start of processing the request and with C<$state> "end" +before the request method returns. In between these C<$status> will be +the fraction of the response currently received or the string "tick" +if the fraction can't be calculated. + +When C<$status> is "begin" the second argument is the L object, +otherwise it is the L object. + +=head2 redirect_ok + + my $bool = $ua->redirect_ok( $prospective_request, $response ); + +This method is called by L before it tries to follow a +redirection to the request in C<$response>. This should return a true +value if this redirection is permissible. The C<$prospective_request> +will be the request to be sent if this method returns true. + +The base implementation will return false unless the method +is in the object's C list, +false if the proposed redirection is to a C +URL, and true otherwise. + +=head1 BEST PRACTICES + +The default settings can get you up and running quickly, but there are settings +you can change in order to make your life easier. + +=head2 Handling Cookies + +You are encouraged to install L and use +L as your cookie jar. L provides a +better security model matching that of current Web browsers when +L is installed. + + use HTTP::CookieJar::LWP (); + + my $jar = HTTP::CookieJar::LWP->new; + my $ua = LWP::UserAgent->new( cookie_jar => $jar ); + +See L for more information. + +=head2 Managing Protocols + +C gives you the ability to allow arbitrary protocols. + + my $ua = LWP::UserAgent->new( + protocols_allowed => [ 'http', 'https' ] + ); + +This will prevent you from inadvertently following URLs like +C. See L. + +C gives you the ability to deny arbitrary protocols. + + my $ua = LWP::UserAgent->new( + protocols_forbidden => [ 'file', 'mailto', 'ssh', ] + ); + +This can also prevent you from inadvertently following URLs like +C. See L. + +=head1 SEE ALSO + +See L for a complete overview of libwww-perl5. See L +and the scripts F and F for examples of +usage. + +See L and L for a description of the +message objects dispatched and received. See L +and L for other ways to build request objects. + +See L and L for examples of more +specialized user agents based on L. + +=head1 COPYRIGHT AND LICENSE + +Copyright 1995-2009 Gisle Aas. + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/LWP/media.types b/git/usr/share/perl5/vendor_perl/LWP/media.types new file mode 100644 index 0000000000000000000000000000000000000000..6a90929c0d2664fa66437c55712e18fd444fab24 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/LWP/media.types @@ -0,0 +1,1479 @@ +# This file maps Internet media types to unique file extension(s). +# Although created for httpd, this file is used by many software systems +# and has been placed in the public domain for unlimited redisribution. +# +# The table below contains both registered and (common) unregistered types. +# A type that has no unique extension can be ignored -- they are listed +# here to guide configurations toward known types and to make it easier to +# identify "new" types. File extensions are also commonly used to indicate +# content languages and encodings, so choose them carefully. +# +# Internet media types should be registered as described in RFC 4288. +# The registry is at . +# +# MIME type (lowercased) Extensions +# ============================================ ========== +# application/1d-interleaved-parityfec +# application/3gpp-ims+xml +# application/activemessage +application/andrew-inset ez +# application/applefile +application/applixware aw +application/atom+xml atom +application/atomcat+xml atomcat +# application/atomicmail +application/atomsvc+xml atomsvc +# application/auth-policy+xml +# application/batch-smtp +# application/beep+xml +# application/cals-1840 +application/ccxml+xml ccxml +application/cdmi-capability cdmia +application/cdmi-container cdmic +application/cdmi-domain cdmid +application/cdmi-object cdmio +application/cdmi-queue cdmiq +# application/cea-2018+xml +# application/cellml+xml +# application/cfw +# application/cnrp+xml +# application/commonground +# application/conference-info+xml +# application/cpl+xml +# application/csta+xml +# application/cstadata+xml +application/cu-seeme cu +# application/cybercash +application/davmount+xml davmount +# application/dca-rft +# application/dec-dx +# application/dialog-info+xml +# application/dicom +# application/dns +# application/dskpp+xml +application/dssc+der dssc +application/dssc+xml xdssc +# application/dvcs +application/ecmascript ecma +# application/edi-consent +# application/edi-x12 +# application/edifact +application/emma+xml emma +# application/epp+xml +application/epub+zip epub +# application/eshop +# application/example +application/exi exi +# application/fastinfoset +# application/fastsoap +# application/fits +application/font-tdpfr pfr +# application/framework-attributes+xml +# application/h224 +# application/held+xml +# application/http +application/hyperstudio stk +# application/ibe-key-request+xml +# application/ibe-pkg-reply+xml +# application/ibe-pp-data +# application/iges +# application/im-iscomposing+xml +# application/index +# application/index.cmd +# application/index.obj +# application/index.response +# application/index.vnd +# application/iotp +application/ipfix ipfix +# application/ipp +# application/isup +application/java-archive jar +application/java-serialized-object ser +application/java-vm class +application/javascript js +application/json json +# application/kpml-request+xml +# application/kpml-response+xml +application/lost+xml lostxml +application/mac-binhex40 hqx +application/mac-compactpro cpt +# application/macwriteii +application/mads+xml mads +application/marc mrc +application/marcxml+xml mrcx +application/mathematica ma nb mb +# application/mathml-content+xml +# application/mathml-presentation+xml +application/mathml+xml mathml +# application/mbms-associated-procedure-description+xml +# application/mbms-deregister+xml +# application/mbms-envelope+xml +# application/mbms-msk+xml +# application/mbms-msk-response+xml +# application/mbms-protection-description+xml +# application/mbms-reception-report+xml +# application/mbms-register+xml +# application/mbms-register-response+xml +# application/mbms-user-service-description+xml +application/mbox mbox +# application/media_control+xml +application/mediaservercontrol+xml mscml +application/metalink4+xml meta4 +application/mets+xml mets +# application/mikey +application/mods+xml mods +# application/moss-keys +# application/moss-signature +# application/mosskey-data +# application/mosskey-request +application/mp21 m21 mp21 +application/mp4 mp4s +# application/mpeg4-generic +# application/mpeg4-iod +# application/mpeg4-iod-xmt +# application/msc-ivr+xml +# application/msc-mixer+xml +application/msword doc dot +application/mxf mxf +# application/nasdata +# application/news-checkgroups +# application/news-groupinfo +# application/news-transmission +# application/nss +# application/ocsp-request +# application/ocsp-response +application/octet-stream bin dms lha lrf lzh so iso dmg dist distz pkg bpk dump elc deploy +application/oda oda +application/oebps-package+xml opf +application/ogg ogx +application/onenote onetoc onetoc2 onetmp onepkg +# application/parityfec +application/patch-ops-error+xml xer +application/pdf pdf +application/pgp-encrypted pgp +# application/pgp-keys +application/pgp-signature asc sig +application/pics-rules prf +# application/pidf+xml +# application/pidf-diff+xml +application/pkcs10 p10 +application/pkcs7-mime p7m p7c +application/pkcs7-signature p7s +application/pkcs8 p8 +application/pkix-attr-cert ac +application/pkix-cert cer +application/pkix-crl crl +application/pkix-pkipath pkipath +application/pkixcmp pki +application/pls+xml pls +# application/poc-settings+xml +application/postscript ai eps ps +# application/prs.alvestrand.titrax-sheet +application/prs.cww cww +# application/prs.nprend +# application/prs.plucker +# application/prs.rdf-xml-crypt +# application/prs.xsf+xml +application/pskc+xml pskcxml +# application/qsig +application/rdf+xml rdf +application/reginfo+xml rif +application/relax-ng-compact-syntax rnc +# application/remote-printing +application/resource-lists+xml rl +application/resource-lists-diff+xml rld +# application/riscos +# application/rlmi+xml +application/rls-services+xml rs +application/rsd+xml rsd +application/rss+xml rss +application/rtf rtf +# application/rtx +# application/samlassertion+xml +# application/samlmetadata+xml +application/sbml+xml sbml +application/scvp-cv-request scq +application/scvp-cv-response scs +application/scvp-vp-request spq +application/scvp-vp-response spp +application/sdp sdp +# application/set-payment +application/set-payment-initiation setpay +# application/set-registration +application/set-registration-initiation setreg +# application/sgml +# application/sgml-open-catalog +application/shf+xml shf +# application/sieve +# application/simple-filter+xml +# application/simple-message-summary +# application/simplesymbolcontainer +# application/slate +# application/smil +application/smil+xml smi smil +# application/soap+fastinfoset +# application/soap+xml +application/sparql-query rq +application/sparql-results+xml srx +# application/spirits-event+xml +application/srgs gram +application/srgs+xml grxml +application/sru+xml sru +application/ssml+xml ssml +# application/tamp-apex-update +# application/tamp-apex-update-confirm +# application/tamp-community-update +# application/tamp-community-update-confirm +# application/tamp-error +# application/tamp-sequence-adjust +# application/tamp-sequence-adjust-confirm +# application/tamp-status-query +# application/tamp-status-response +# application/tamp-update +# application/tamp-update-confirm +application/tei+xml tei teicorpus +application/thraud+xml tfi +# application/timestamp-query +# application/timestamp-reply +application/timestamped-data tsd +# application/tve-trigger +# application/ulpfec +# application/vemmi +# application/vividence.scriptfile +# application/vnd.3gpp.bsf+xml +application/vnd.3gpp.pic-bw-large plb +application/vnd.3gpp.pic-bw-small psb +application/vnd.3gpp.pic-bw-var pvb +# application/vnd.3gpp.sms +# application/vnd.3gpp2.bcmcsinfo+xml +# application/vnd.3gpp2.sms +application/vnd.3gpp2.tcap tcap +application/vnd.3m.post-it-notes pwn +application/vnd.accpac.simply.aso aso +application/vnd.accpac.simply.imp imp +application/vnd.acucobol acu +application/vnd.acucorp atc acutc +application/vnd.adobe.air-application-installer-package+zip air +application/vnd.adobe.fxp fxp fxpl +# application/vnd.adobe.partial-upload +application/vnd.adobe.xdp+xml xdp +application/vnd.adobe.xfdf xfdf +# application/vnd.aether.imp +# application/vnd.ah-barcode +application/vnd.ahead.space ahead +application/vnd.airzip.filesecure.azf azf +application/vnd.airzip.filesecure.azs azs +application/vnd.amazon.ebook azw +application/vnd.americandynamics.acc acc +application/vnd.amiga.ami ami +# application/vnd.amundsen.maze+xml +application/vnd.android.package-archive apk +application/vnd.anser-web-certificate-issue-initiation cii +application/vnd.anser-web-funds-transfer-initiation fti +application/vnd.antix.game-component atx +application/vnd.apple.installer+xml mpkg +application/vnd.apple.mpegurl m3u8 +# application/vnd.arastra.swi +application/vnd.aristanetworks.swi swi +application/vnd.audiograph aep +# application/vnd.autopackage +# application/vnd.avistar+xml +application/vnd.blueice.multipass mpm +# application/vnd.bluetooth.ep.oob +application/vnd.bmi bmi +application/vnd.businessobjects rep +# application/vnd.cab-jscript +# application/vnd.canon-cpdl +# application/vnd.canon-lips +# application/vnd.cendio.thinlinc.clientconf +application/vnd.chemdraw+xml cdxml +application/vnd.chipnuts.karaoke-mmd mmd +application/vnd.cinderella cdy +# application/vnd.cirpack.isdn-ext +application/vnd.claymore cla +application/vnd.cloanto.rp9 rp9 +application/vnd.clonk.c4group c4g c4d c4f c4p c4u +application/vnd.cluetrust.cartomobile-config c11amc +application/vnd.cluetrust.cartomobile-config-pkg c11amz +# application/vnd.commerce-battelle +application/vnd.commonspace csp +application/vnd.contact.cmsg cdbcmsg +application/vnd.cosmocaller cmc +application/vnd.crick.clicker clkx +application/vnd.crick.clicker.keyboard clkk +application/vnd.crick.clicker.palette clkp +application/vnd.crick.clicker.template clkt +application/vnd.crick.clicker.wordbank clkw +application/vnd.criticaltools.wbs+xml wbs +application/vnd.ctc-posml pml +# application/vnd.ctct.ws+xml +# application/vnd.cups-pdf +# application/vnd.cups-postscript +application/vnd.cups-ppd ppd +# application/vnd.cups-raster +# application/vnd.cups-raw +application/vnd.curl.car car +application/vnd.curl.pcurl pcurl +# application/vnd.cybank +application/vnd.data-vision.rdz rdz +application/vnd.dece.data uvf uvvf uvd uvvd +application/vnd.dece.ttml+xml uvt uvvt +application/vnd.dece.unspecified uvx uvvx +application/vnd.denovo.fcselayout-link fe_launch +# application/vnd.dir-bi.plate-dl-nosuffix +application/vnd.dna dna +application/vnd.dolby.mlp mlp +# application/vnd.dolby.mobile.1 +# application/vnd.dolby.mobile.2 +application/vnd.dpgraph dpg +application/vnd.dreamfactory dfac +application/vnd.dvb.ait ait +# application/vnd.dvb.dvbj +# application/vnd.dvb.esgcontainer +# application/vnd.dvb.ipdcdftnotifaccess +# application/vnd.dvb.ipdcesgaccess +# application/vnd.dvb.ipdcesgaccess2 +# application/vnd.dvb.ipdcesgpdd +# application/vnd.dvb.ipdcroaming +# application/vnd.dvb.iptv.alfec-base +# application/vnd.dvb.iptv.alfec-enhancement +# application/vnd.dvb.notif-aggregate-root+xml +# application/vnd.dvb.notif-container+xml +# application/vnd.dvb.notif-generic+xml +# application/vnd.dvb.notif-ia-msglist+xml +# application/vnd.dvb.notif-ia-registration-request+xml +# application/vnd.dvb.notif-ia-registration-response+xml +# application/vnd.dvb.notif-init+xml +# application/vnd.dvb.pfr +application/vnd.dvb.service svc +# application/vnd.dxr +application/vnd.dynageo geo +# application/vnd.easykaraoke.cdgdownload +# application/vnd.ecdis-update +application/vnd.ecowin.chart mag +# application/vnd.ecowin.filerequest +# application/vnd.ecowin.fileupdate +# application/vnd.ecowin.series +# application/vnd.ecowin.seriesrequest +# application/vnd.ecowin.seriesupdate +# application/vnd.emclient.accessrequest+xml +application/vnd.enliven nml +application/vnd.epson.esf esf +application/vnd.epson.msf msf +application/vnd.epson.quickanime qam +application/vnd.epson.salt slt +application/vnd.epson.ssf ssf +# application/vnd.ericsson.quickcall +application/vnd.eszigno3+xml es3 et3 +# application/vnd.etsi.aoc+xml +# application/vnd.etsi.cug+xml +# application/vnd.etsi.iptvcommand+xml +# application/vnd.etsi.iptvdiscovery+xml +# application/vnd.etsi.iptvprofile+xml +# application/vnd.etsi.iptvsad-bc+xml +# application/vnd.etsi.iptvsad-cod+xml +# application/vnd.etsi.iptvsad-npvr+xml +# application/vnd.etsi.iptvservice+xml +# application/vnd.etsi.iptvsync+xml +# application/vnd.etsi.iptvueprofile+xml +# application/vnd.etsi.mcid+xml +# application/vnd.etsi.overload-control-policy-dataset+xml +# application/vnd.etsi.sci+xml +# application/vnd.etsi.simservs+xml +# application/vnd.etsi.tsl+xml +# application/vnd.etsi.tsl.der +# application/vnd.eudora.data +application/vnd.ezpix-album ez2 +application/vnd.ezpix-package ez3 +# application/vnd.f-secure.mobile +application/vnd.fdf fdf +application/vnd.fdsn.mseed mseed +application/vnd.fdsn.seed seed dataless +# application/vnd.ffsns +# application/vnd.fints +application/vnd.flographit gph +application/vnd.fluxtime.clip ftc +# application/vnd.font-fontforge-sfd +application/vnd.framemaker fm frame maker book +application/vnd.frogans.fnc fnc +application/vnd.frogans.ltf ltf +application/vnd.fsc.weblaunch fsc +application/vnd.fujitsu.oasys oas +application/vnd.fujitsu.oasys2 oa2 +application/vnd.fujitsu.oasys3 oa3 +application/vnd.fujitsu.oasysgp fg5 +application/vnd.fujitsu.oasysprs bh2 +# application/vnd.fujixerox.art-ex +# application/vnd.fujixerox.art4 +# application/vnd.fujixerox.hbpl +application/vnd.fujixerox.ddd ddd +application/vnd.fujixerox.docuworks xdw +application/vnd.fujixerox.docuworks.binder xbd +# application/vnd.fut-misnet +application/vnd.fuzzysheet fzs +application/vnd.genomatix.tuxedo txd +# application/vnd.geocube+xml +application/vnd.geogebra.file ggb +application/vnd.geogebra.tool ggt +application/vnd.geometry-explorer gex gre +application/vnd.geonext gxt +application/vnd.geoplan g2w +application/vnd.geospace g3w +# application/vnd.globalplatform.card-content-mgt +# application/vnd.globalplatform.card-content-mgt-response +application/vnd.gmx gmx +application/vnd.google-earth.kml+xml kml +application/vnd.google-earth.kmz kmz +application/vnd.grafeq gqf gqs +# application/vnd.gridmp +application/vnd.groove-account gac +application/vnd.groove-help ghf +application/vnd.groove-identity-message gim +application/vnd.groove-injector grv +application/vnd.groove-tool-message gtm +application/vnd.groove-tool-template tpl +application/vnd.groove-vcard vcg +application/vnd.hal+xml hal +application/vnd.handheld-entertainment+xml zmm +application/vnd.hbci hbci +# application/vnd.hcl-bireports +application/vnd.hhe.lesson-player les +application/vnd.hp-hpgl hpgl +application/vnd.hp-hpid hpid +application/vnd.hp-hps hps +application/vnd.hp-jlyt jlt +application/vnd.hp-pcl pcl +application/vnd.hp-pclxl pclxl +# application/vnd.httphone +application/vnd.hydrostatix.sof-data sfd-hdstx +application/vnd.hzn-3d-crossword x3d +# application/vnd.ibm.afplinedata +# application/vnd.ibm.electronic-media +application/vnd.ibm.minipay mpy +application/vnd.ibm.modcap afp listafp list3820 +application/vnd.ibm.rights-management irm +application/vnd.ibm.secure-container sc +application/vnd.iccprofile icc icm +application/vnd.igloader igl +application/vnd.immervision-ivp ivp +application/vnd.immervision-ivu ivu +# application/vnd.informedcontrol.rms+xml +# application/vnd.informix-visionary +# application/vnd.infotech.project +# application/vnd.infotech.project+xml +application/vnd.insors.igm igm +application/vnd.intercon.formnet xpw xpx +application/vnd.intergeo i2g +# application/vnd.intertrust.digibox +# application/vnd.intertrust.nncp +application/vnd.intu.qbo qbo +application/vnd.intu.qfx qfx +# application/vnd.iptc.g2.conceptitem+xml +# application/vnd.iptc.g2.knowledgeitem+xml +# application/vnd.iptc.g2.newsitem+xml +# application/vnd.iptc.g2.packageitem+xml +application/vnd.ipunplugged.rcprofile rcprofile +application/vnd.irepository.package+xml irp +application/vnd.is-xpr xpr +application/vnd.isac.fcs fcs +application/vnd.jam jam +# application/vnd.japannet-directory-service +# application/vnd.japannet-jpnstore-wakeup +# application/vnd.japannet-payment-wakeup +# application/vnd.japannet-registration +# application/vnd.japannet-registration-wakeup +# application/vnd.japannet-setstore-wakeup +# application/vnd.japannet-verification +# application/vnd.japannet-verification-wakeup +application/vnd.jcp.javame.midlet-rms rms +application/vnd.jisp jisp +application/vnd.joost.joda-archive joda +application/vnd.kahootz ktz ktr +application/vnd.kde.karbon karbon +application/vnd.kde.kchart chrt +application/vnd.kde.kformula kfo +application/vnd.kde.kivio flw +application/vnd.kde.kontour kon +application/vnd.kde.kpresenter kpr kpt +application/vnd.kde.kspread ksp +application/vnd.kde.kword kwd kwt +application/vnd.kenameaapp htke +application/vnd.kidspiration kia +application/vnd.kinar kne knp +application/vnd.koan skp skd skt skm +application/vnd.kodak-descriptor sse +application/vnd.las.las+xml lasxml +# application/vnd.liberty-request+xml +application/vnd.llamagraphics.life-balance.desktop lbd +application/vnd.llamagraphics.life-balance.exchange+xml lbe +application/vnd.lotus-1-2-3 123 +application/vnd.lotus-approach apr +application/vnd.lotus-freelance pre +application/vnd.lotus-notes nsf +application/vnd.lotus-organizer org +application/vnd.lotus-screencam scm +application/vnd.lotus-wordpro lwp +application/vnd.macports.portpkg portpkg +# application/vnd.marlin.drm.actiontoken+xml +# application/vnd.marlin.drm.conftoken+xml +# application/vnd.marlin.drm.license+xml +# application/vnd.marlin.drm.mdcf +application/vnd.mcd mcd +application/vnd.medcalcdata mc1 +application/vnd.mediastation.cdkey cdkey +# application/vnd.meridian-slingshot +application/vnd.mfer mwf +application/vnd.mfmp mfm +application/vnd.micrografx.flo flo +application/vnd.micrografx.igx igx +application/vnd.mif mif +# application/vnd.minisoft-hp3000-save +# application/vnd.mitsubishi.misty-guard.trustweb +application/vnd.mobius.daf daf +application/vnd.mobius.dis dis +application/vnd.mobius.mbk mbk +application/vnd.mobius.mqy mqy +application/vnd.mobius.msl msl +application/vnd.mobius.plc plc +application/vnd.mobius.txf txf +application/vnd.mophun.application mpn +application/vnd.mophun.certificate mpc +# application/vnd.motorola.flexsuite +# application/vnd.motorola.flexsuite.adsi +# application/vnd.motorola.flexsuite.fis +# application/vnd.motorola.flexsuite.gotap +# application/vnd.motorola.flexsuite.kmr +# application/vnd.motorola.flexsuite.ttc +# application/vnd.motorola.flexsuite.wem +# application/vnd.motorola.iprm +application/vnd.mozilla.xul+xml xul +application/vnd.ms-artgalry cil +# application/vnd.ms-asf +application/vnd.ms-cab-compressed cab +application/vnd.ms-excel xls xlm xla xlc xlt xlw +application/vnd.ms-excel.addin.macroenabled.12 xlam +application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb +application/vnd.ms-excel.sheet.macroenabled.12 xlsm +application/vnd.ms-excel.template.macroenabled.12 xltm +application/vnd.ms-fontobject eot +application/vnd.ms-htmlhelp chm +application/vnd.ms-ims ims +application/vnd.ms-lrm lrm +# application/vnd.ms-office.activex+xml +application/vnd.ms-officetheme thmx +application/vnd.ms-pki.seccat cat +application/vnd.ms-pki.stl stl +# application/vnd.ms-playready.initiator+xml +application/vnd.ms-powerpoint ppt pps pot +application/vnd.ms-powerpoint.addin.macroenabled.12 ppam +application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm +application/vnd.ms-powerpoint.slide.macroenabled.12 sldm +application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm +application/vnd.ms-powerpoint.template.macroenabled.12 potm +application/vnd.ms-project mpp mpt +# application/vnd.ms-tnef +# application/vnd.ms-wmdrm.lic-chlg-req +# application/vnd.ms-wmdrm.lic-resp +# application/vnd.ms-wmdrm.meter-chlg-req +# application/vnd.ms-wmdrm.meter-resp +application/vnd.ms-word.document.macroenabled.12 docm +application/vnd.ms-word.template.macroenabled.12 dotm +application/vnd.ms-works wps wks wcm wdb +application/vnd.ms-wpl wpl +application/vnd.ms-xpsdocument xps +application/vnd.mseq mseq +# application/vnd.msign +# application/vnd.multiad.creator +# application/vnd.multiad.creator.cif +# application/vnd.music-niff +application/vnd.musician mus +application/vnd.muvee.style msty +# application/vnd.ncd.control +# application/vnd.ncd.reference +# application/vnd.nervana +# application/vnd.netfpx +application/vnd.neurolanguage.nlu nlu +application/vnd.noblenet-directory nnd +application/vnd.noblenet-sealer nns +application/vnd.noblenet-web nnw +# application/vnd.nokia.catalogs +# application/vnd.nokia.conml+wbxml +# application/vnd.nokia.conml+xml +# application/vnd.nokia.isds-radio-presets +# application/vnd.nokia.iptv.config+xml +# application/vnd.nokia.landmark+wbxml +# application/vnd.nokia.landmark+xml +# application/vnd.nokia.landmarkcollection+xml +# application/vnd.nokia.n-gage.ac+xml +application/vnd.nokia.n-gage.data ngdat +application/vnd.nokia.n-gage.symbian.install n-gage +# application/vnd.nokia.ncd +# application/vnd.nokia.pcd+wbxml +# application/vnd.nokia.pcd+xml +application/vnd.nokia.radio-preset rpst +application/vnd.nokia.radio-presets rpss +application/vnd.novadigm.edm edm +application/vnd.novadigm.edx edx +application/vnd.novadigm.ext ext +# application/vnd.ntt-local.file-transfer +# application/vnd.ntt-local.sip-ta_remote +# application/vnd.ntt-local.sip-ta_tcp_stream +application/vnd.oasis.opendocument.chart odc +application/vnd.oasis.opendocument.chart-template otc +application/vnd.oasis.opendocument.database odb +application/vnd.oasis.opendocument.formula odf +application/vnd.oasis.opendocument.formula-template odft +application/vnd.oasis.opendocument.graphics odg +application/vnd.oasis.opendocument.graphics-template otg +application/vnd.oasis.opendocument.image odi +application/vnd.oasis.opendocument.image-template oti +application/vnd.oasis.opendocument.presentation odp +application/vnd.oasis.opendocument.presentation-template otp +application/vnd.oasis.opendocument.spreadsheet ods +application/vnd.oasis.opendocument.spreadsheet-template ots +application/vnd.oasis.opendocument.text odt +application/vnd.oasis.opendocument.text-master odm +application/vnd.oasis.opendocument.text-template ott +application/vnd.oasis.opendocument.text-web oth +# application/vnd.obn +# application/vnd.oipf.contentaccessdownload+xml +# application/vnd.oipf.contentaccessstreaming+xml +# application/vnd.oipf.cspg-hexbinary +# application/vnd.oipf.dae.svg+xml +# application/vnd.oipf.dae.xhtml+xml +# application/vnd.oipf.mippvcontrolmessage+xml +# application/vnd.oipf.pae.gem +# application/vnd.oipf.spdiscovery+xml +# application/vnd.oipf.spdlist+xml +# application/vnd.oipf.ueprofile+xml +# application/vnd.oipf.userprofile+xml +application/vnd.olpc-sugar xo +# application/vnd.oma-scws-config +# application/vnd.oma-scws-http-request +# application/vnd.oma-scws-http-response +# application/vnd.oma.bcast.associated-procedure-parameter+xml +# application/vnd.oma.bcast.drm-trigger+xml +# application/vnd.oma.bcast.imd+xml +# application/vnd.oma.bcast.ltkm +# application/vnd.oma.bcast.notification+xml +# application/vnd.oma.bcast.provisioningtrigger +# application/vnd.oma.bcast.sgboot +# application/vnd.oma.bcast.sgdd+xml +# application/vnd.oma.bcast.sgdu +# application/vnd.oma.bcast.simple-symbol-container +# application/vnd.oma.bcast.smartcard-trigger+xml +# application/vnd.oma.bcast.sprov+xml +# application/vnd.oma.bcast.stkm +# application/vnd.oma.cab-address-book+xml +# application/vnd.oma.cab-pcc+xml +# application/vnd.oma.dcd +# application/vnd.oma.dcdc +application/vnd.oma.dd2+xml dd2 +# application/vnd.oma.drm.risd+xml +# application/vnd.oma.group-usage-list+xml +# application/vnd.oma.poc.detailed-progress-report+xml +# application/vnd.oma.poc.final-report+xml +# application/vnd.oma.poc.groups+xml +# application/vnd.oma.poc.invocation-descriptor+xml +# application/vnd.oma.poc.optimized-progress-report+xml +# application/vnd.oma.push +# application/vnd.oma.scidm.messages+xml +# application/vnd.oma.xcap-directory+xml +# application/vnd.omads-email+xml +# application/vnd.omads-file+xml +# application/vnd.omads-folder+xml +# application/vnd.omaloc-supl-init +application/vnd.openofficeorg.extension oxt +# application/vnd.openxmlformats-officedocument.custom-properties+xml +# application/vnd.openxmlformats-officedocument.customxmlproperties+xml +# application/vnd.openxmlformats-officedocument.drawing+xml +# application/vnd.openxmlformats-officedocument.drawingml.chart+xml +# application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml +# application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml +# application/vnd.openxmlformats-officedocument.extended-properties+xml +# application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml +# application/vnd.openxmlformats-officedocument.presentationml.comments+xml +# application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml +# application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx +# application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.presprops+xml +application/vnd.openxmlformats-officedocument.presentationml.slide sldx +# application/vnd.openxmlformats-officedocument.presentationml.slide+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml +# application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx +# application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml +# application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml +# application/vnd.openxmlformats-officedocument.presentationml.tags+xml +application/vnd.openxmlformats-officedocument.presentationml.template potx +# application/vnd.openxmlformats-officedocument.presentationml.template.main+xml +# application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx +# application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml +# application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml +# application/vnd.openxmlformats-officedocument.theme+xml +# application/vnd.openxmlformats-officedocument.themeoverride+xml +# application/vnd.openxmlformats-officedocument.vmldrawing +# application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx +# application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml +# application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml +# application/vnd.openxmlformats-package.core-properties+xml +# application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml +# application/vnd.openxmlformats-package.relationships+xml +# application/vnd.quobject-quoxdocument +# application/vnd.osa.netdeploy +application/vnd.osgeo.mapguide.package mgp +# application/vnd.osgi.bundle +application/vnd.osgi.dp dp +# application/vnd.otps.ct-kip+xml +application/vnd.palm pdb pqa oprc +# application/vnd.paos.xml +application/vnd.pawaafile paw +application/vnd.pg.format str +application/vnd.pg.osasli ei6 +# application/vnd.piaccess.application-licence +application/vnd.picsel efif +application/vnd.pmi.widget wg +# application/vnd.poc.group-advertisement+xml +application/vnd.pocketlearn plf +application/vnd.powerbuilder6 pbd +# application/vnd.powerbuilder6-s +# application/vnd.powerbuilder7 +# application/vnd.powerbuilder7-s +# application/vnd.powerbuilder75 +# application/vnd.powerbuilder75-s +# application/vnd.preminet +application/vnd.previewsystems.box box +application/vnd.proteus.magazine mgz +application/vnd.publishare-delta-tree qps +application/vnd.pvi.ptid1 ptid +# application/vnd.pwg-multiplexed +# application/vnd.pwg-xhtml-print+xml +# application/vnd.qualcomm.brew-app-res +application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb +# application/vnd.radisys.moml+xml +# application/vnd.radisys.msml+xml +# application/vnd.radisys.msml-audit+xml +# application/vnd.radisys.msml-audit-conf+xml +# application/vnd.radisys.msml-audit-conn+xml +# application/vnd.radisys.msml-audit-dialog+xml +# application/vnd.radisys.msml-audit-stream+xml +# application/vnd.radisys.msml-conf+xml +# application/vnd.radisys.msml-dialog+xml +# application/vnd.radisys.msml-dialog-base+xml +# application/vnd.radisys.msml-dialog-fax-detect+xml +# application/vnd.radisys.msml-dialog-fax-sendrecv+xml +# application/vnd.radisys.msml-dialog-group+xml +# application/vnd.radisys.msml-dialog-speech+xml +# application/vnd.radisys.msml-dialog-transform+xml +# application/vnd.rainstor.data +# application/vnd.rapid +application/vnd.realvnc.bed bed +application/vnd.recordare.musicxml mxl +application/vnd.recordare.musicxml+xml musicxml +# application/vnd.renlearn.rlprint +application/vnd.rig.cryptonote cryptonote +application/vnd.rim.cod cod +application/vnd.rn-realmedia rm +application/vnd.route66.link66+xml link66 +# application/vnd.ruckus.download +# application/vnd.s3sms +application/vnd.sailingtracker.track st +# application/vnd.sbm.cid +# application/vnd.sbm.mid2 +# application/vnd.scribus +# application/vnd.sealed.3df +# application/vnd.sealed.csf +# application/vnd.sealed.doc +# application/vnd.sealed.eml +# application/vnd.sealed.mht +# application/vnd.sealed.net +# application/vnd.sealed.ppt +# application/vnd.sealed.tiff +# application/vnd.sealed.xls +# application/vnd.sealedmedia.softseal.html +# application/vnd.sealedmedia.softseal.pdf +application/vnd.seemail see +application/vnd.sema sema +application/vnd.semd semd +application/vnd.semf semf +application/vnd.shana.informed.formdata ifm +application/vnd.shana.informed.formtemplate itp +application/vnd.shana.informed.interchange iif +application/vnd.shana.informed.package ipk +application/vnd.simtech-mindmapper twd twds +application/vnd.smaf mmf +# application/vnd.smart.notebook +application/vnd.smart.teacher teacher +# application/vnd.software602.filler.form+xml +# application/vnd.software602.filler.form-xml-zip +application/vnd.solent.sdkm+xml sdkm sdkd +application/vnd.spotfire.dxp dxp +application/vnd.spotfire.sfs sfs +# application/vnd.sss-cod +# application/vnd.sss-dtf +# application/vnd.sss-ntf +application/vnd.stardivision.calc sdc +application/vnd.stardivision.draw sda +application/vnd.stardivision.impress sdd +application/vnd.stardivision.math smf +application/vnd.stardivision.writer sdw vor +application/vnd.stardivision.writer-global sgl +application/vnd.stepmania.stepchart sm +# application/vnd.street-stream +application/vnd.sun.xml.calc sxc +application/vnd.sun.xml.calc.template stc +application/vnd.sun.xml.draw sxd +application/vnd.sun.xml.draw.template std +application/vnd.sun.xml.impress sxi +application/vnd.sun.xml.impress.template sti +application/vnd.sun.xml.math sxm +application/vnd.sun.xml.writer sxw +application/vnd.sun.xml.writer.global sxg +application/vnd.sun.xml.writer.template stw +# application/vnd.sun.wadl+xml +application/vnd.sus-calendar sus susp +application/vnd.svd svd +# application/vnd.swiftview-ics +application/vnd.symbian.install sis sisx +application/vnd.syncml+xml xsm +application/vnd.syncml.dm+wbxml bdm +application/vnd.syncml.dm+xml xdm +# application/vnd.syncml.dm.notification +# application/vnd.syncml.ds.notification +application/vnd.tao.intent-module-archive tao +application/vnd.tmobile-livetv tmo +application/vnd.trid.tpt tpt +application/vnd.triscape.mxs mxs +application/vnd.trueapp tra +# application/vnd.truedoc +# application/vnd.ubisoft.webplayer +application/vnd.ufdl ufd ufdl +application/vnd.uiq.theme utz +application/vnd.umajin umj +application/vnd.unity unityweb +application/vnd.uoml+xml uoml +# application/vnd.uplanet.alert +# application/vnd.uplanet.alert-wbxml +# application/vnd.uplanet.bearer-choice +# application/vnd.uplanet.bearer-choice-wbxml +# application/vnd.uplanet.cacheop +# application/vnd.uplanet.cacheop-wbxml +# application/vnd.uplanet.channel +# application/vnd.uplanet.channel-wbxml +# application/vnd.uplanet.list +# application/vnd.uplanet.list-wbxml +# application/vnd.uplanet.listcmd +# application/vnd.uplanet.listcmd-wbxml +# application/vnd.uplanet.signal +application/vnd.vcx vcx +# application/vnd.vd-study +# application/vnd.vectorworks +# application/vnd.verimatrix.vcas +# application/vnd.vidsoft.vidconference +application/vnd.visio vsd vst vss vsw +application/vnd.visionary vis +# application/vnd.vividence.scriptfile +application/vnd.vsf vsf +# application/vnd.wap.sic +# application/vnd.wap.slc +application/vnd.wap.wbxml wbxml +application/vnd.wap.wmlc wmlc +application/vnd.wap.wmlscriptc wmlsc +application/vnd.webturbo wtb +# application/vnd.wfa.wsc +# application/vnd.wmc +# application/vnd.wmf.bootstrap +# application/vnd.wolfram.mathematica +# application/vnd.wolfram.mathematica.package +application/vnd.wolfram.player nbp +application/vnd.wordperfect wpd +application/vnd.wqd wqd +# application/vnd.wrq-hp3000-labelled +application/vnd.wt.stf stf +# application/vnd.wv.csp+wbxml +# application/vnd.wv.csp+xml +# application/vnd.wv.ssp+xml +application/vnd.xara xar +application/vnd.xfdl xfdl +# application/vnd.xfdl.webform +# application/vnd.xmi+xml +# application/vnd.xmpie.cpkg +# application/vnd.xmpie.dpkg +# application/vnd.xmpie.plan +# application/vnd.xmpie.ppkg +# application/vnd.xmpie.xlim +application/vnd.yamaha.hv-dic hvd +application/vnd.yamaha.hv-script hvs +application/vnd.yamaha.hv-voice hvp +application/vnd.yamaha.openscoreformat osf +application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg +# application/vnd.yamaha.remote-setup +application/vnd.yamaha.smaf-audio saf +application/vnd.yamaha.smaf-phrase spf +# application/vnd.yamaha.tunnel-udpencap +application/vnd.yellowriver-custom-menu cmp +application/vnd.zul zir zirz +application/vnd.zzazz.deck+xml zaz +application/voicexml+xml vxml +# application/vq-rtcpxr +# application/watcherinfo+xml +# application/whoispp-query +# application/whoispp-response +application/widget wgt +application/winhlp hlp +# application/wita +# application/wordperfect5.1 +application/wsdl+xml wsdl +application/wspolicy+xml wspolicy +application/x-7z-compressed 7z +application/x-abiword abw +application/x-ace-compressed ace +application/x-authorware-bin aab x32 u32 vox +application/x-authorware-map aam +application/x-authorware-seg aas +application/x-bcpio bcpio +application/x-bittorrent torrent +application/x-bzip bz +application/x-bzip2 bz2 boz +application/x-cdlink vcd +application/x-chat chat +application/x-chess-pgn pgn +# application/x-compress +application/x-cpio cpio +application/x-csh csh +application/x-debian-package deb udeb +application/x-director dir dcr dxr cst cct cxt w3d fgd swa +application/x-doom wad +application/x-dtbncx+xml ncx +application/x-dtbook+xml dtb +application/x-dtbresource+xml res +application/x-dvi dvi +application/x-font-bdf bdf +# application/x-font-dos +# application/x-font-framemaker +application/x-font-ghostscript gsf +# application/x-font-libgrx +application/x-font-linux-psf psf +application/x-font-otf otf +application/x-font-pcf pcf +application/x-font-snf snf +# application/x-font-speedo +# application/x-font-sunos-news +application/x-font-ttf ttf ttc +application/x-font-type1 pfa pfb pfm afm +application/x-font-woff woff +# application/x-font-vfont +application/x-futuresplash spl +application/x-gnumeric gnumeric +application/x-gtar gtar +# application/x-gzip +application/x-hdf hdf +application/x-java-jnlp-file jnlp +application/x-latex latex +application/x-mobipocket-ebook prc mobi +application/x-ms-application application +application/x-ms-wmd wmd +application/x-ms-wmz wmz +application/x-ms-xbap xbap +application/x-msaccess mdb +application/x-msbinder obd +application/x-mscardfile crd +application/x-msclip clp +application/x-msdownload exe dll com bat msi +application/x-msmediaview mvb m13 m14 +application/x-msmetafile wmf +application/x-msmoney mny +application/x-mspublisher pub +application/x-msschedule scd +application/x-msterminal trm +application/x-mswrite wri +application/x-netcdf nc cdf +application/x-pkcs12 p12 pfx +application/x-pkcs7-certificates p7b spc +application/x-pkcs7-certreqresp p7r +application/x-rar-compressed rar +application/x-sh sh +application/x-shar shar +application/x-shockwave-flash swf +application/x-silverlight-app xap +application/x-stuffit sit +application/x-stuffitx sitx +application/x-sv4cpio sv4cpio +application/x-sv4crc sv4crc +application/x-tar tar +application/x-tcl tcl +application/x-tex tex +application/x-tex-tfm tfm +application/x-texinfo texinfo texi +application/x-ustar ustar +application/x-wais-source src +application/x-x509-ca-cert der crt +application/x-xfig fig +application/x-xpinstall xpi +# application/x400-bp +# application/xcap-att+xml +# application/xcap-caps+xml +application/xcap-diff+xml xdf +# application/xcap-el+xml +# application/xcap-error+xml +# application/xcap-ns+xml +# application/xcon-conference-info-diff+xml +# application/xcon-conference-info+xml +application/xenc+xml xenc +application/xhtml+xml xhtml xht +# application/xhtml-voice+xml +application/xml xml xsl +application/xml-dtd dtd +# application/xml-external-parsed-entity +# application/xmpp+xml +application/xop+xml xop +application/xslt+xml xslt +application/xspf+xml xspf +application/xv+xml mxml xhvml xvml xvm +application/yang yang +application/yin+xml yin +application/zip zip +# audio/1d-interleaved-parityfec +# audio/32kadpcm +# audio/3gpp +# audio/3gpp2 +# audio/ac3 +audio/adpcm adp +# audio/amr +# audio/amr-wb +# audio/amr-wb+ +# audio/asc +# audio/atrac-advanced-lossless +# audio/atrac-x +# audio/atrac3 +audio/basic au snd +# audio/bv16 +# audio/bv32 +# audio/clearmode +# audio/cn +# audio/dat12 +# audio/dls +# audio/dsr-es201108 +# audio/dsr-es202050 +# audio/dsr-es202211 +# audio/dsr-es202212 +# audio/dvi4 +# audio/eac3 +# audio/evrc +# audio/evrc-qcp +# audio/evrc0 +# audio/evrc1 +# audio/evrcb +# audio/evrcb0 +# audio/evrcb1 +# audio/evrcwb +# audio/evrcwb0 +# audio/evrcwb1 +# audio/example +# audio/g719 +# audio/g722 +# audio/g7221 +# audio/g723 +# audio/g726-16 +# audio/g726-24 +# audio/g726-32 +# audio/g726-40 +# audio/g728 +# audio/g729 +# audio/g7291 +# audio/g729d +# audio/g729e +# audio/gsm +# audio/gsm-efr +# audio/gsm-hr-08 +# audio/ilbc +# audio/l16 +# audio/l20 +# audio/l24 +# audio/l8 +# audio/lpc +audio/midi mid midi kar rmi +# audio/mobile-xmf +audio/mp4 mp4a +# audio/mp4a-latm +# audio/mpa +# audio/mpa-robust +audio/mpeg mpga mp2 mp2a mp3 m2a m3a +# audio/mpeg4-generic +audio/ogg oga ogg spx +# audio/parityfec +# audio/pcma +# audio/pcma-wb +# audio/pcmu-wb +# audio/pcmu +# audio/prs.sid +# audio/qcelp +# audio/red +# audio/rtp-enc-aescm128 +# audio/rtp-midi +# audio/rtx +# audio/smv +# audio/smv0 +# audio/smv-qcp +# audio/sp-midi +# audio/speex +# audio/t140c +# audio/t38 +# audio/telephone-event +# audio/tone +# audio/uemclip +# audio/ulpfec +# audio/vdvi +# audio/vmr-wb +# audio/vnd.3gpp.iufp +# audio/vnd.4sb +# audio/vnd.audiokoz +# audio/vnd.celp +# audio/vnd.cisco.nse +# audio/vnd.cmles.radio-events +# audio/vnd.cns.anp1 +# audio/vnd.cns.inf1 +audio/vnd.dece.audio uva uvva +audio/vnd.digital-winds eol +# audio/vnd.dlna.adts +# audio/vnd.dolby.heaac.1 +# audio/vnd.dolby.heaac.2 +# audio/vnd.dolby.mlp +# audio/vnd.dolby.mps +# audio/vnd.dolby.pl2 +# audio/vnd.dolby.pl2x +# audio/vnd.dolby.pl2z +# audio/vnd.dolby.pulse.1 +audio/vnd.dra dra +audio/vnd.dts dts +audio/vnd.dts.hd dtshd +# audio/vnd.everad.plj +# audio/vnd.hns.audio +audio/vnd.lucent.voice lvp +audio/vnd.ms-playready.media.pya pya +# audio/vnd.nokia.mobile-xmf +# audio/vnd.nortel.vbk +audio/vnd.nuera.ecelp4800 ecelp4800 +audio/vnd.nuera.ecelp7470 ecelp7470 +audio/vnd.nuera.ecelp9600 ecelp9600 +# audio/vnd.octel.sbc +# audio/vnd.qcelp +# audio/vnd.rhetorex.32kadpcm +audio/vnd.rip rip +# audio/vnd.sealedmedia.softseal.mpeg +# audio/vnd.vmx.cvsd +# audio/vorbis +# audio/vorbis-config +audio/webm weba +audio/x-aac aac +audio/x-aiff aif aiff aifc +audio/x-mpegurl m3u +audio/x-ms-wax wax +audio/x-ms-wma wma +audio/x-pn-realaudio ram ra +audio/x-pn-realaudio-plugin rmp +audio/x-wav wav +chemical/x-cdx cdx +chemical/x-cif cif +chemical/x-cmdf cmdf +chemical/x-cml cml +chemical/x-csml csml +# chemical/x-pdb +chemical/x-xyz xyz +image/bmp bmp +image/cgm cgm +# image/example +# image/fits +image/g3fax g3 +image/gif gif +image/ief ief +# image/jp2 +image/jpeg jpeg jpg jpe +# image/jpm +# image/jpx +image/ktx ktx +# image/naplps +image/png png +image/prs.btif btif +# image/prs.pti +image/svg+xml svg svgz +# image/t38 +image/tiff tiff tif +# image/tiff-fx +image/vnd.adobe.photoshop psd +# image/vnd.cns.inf2 +image/vnd.dece.graphic uvi uvvi uvg uvvg +image/vnd.dvb.subtitle sub +image/vnd.djvu djvu djv +image/vnd.dwg dwg +image/vnd.dxf dxf +image/vnd.fastbidsheet fbs +image/vnd.fpx fpx +image/vnd.fst fst +image/vnd.fujixerox.edmics-mmr mmr +image/vnd.fujixerox.edmics-rlc rlc +# image/vnd.globalgraphics.pgb +# image/vnd.microsoft.icon +# image/vnd.mix +image/vnd.ms-modi mdi +image/vnd.net-fpx npx +# image/vnd.radiance +# image/vnd.sealed.png +# image/vnd.sealedmedia.softseal.gif +# image/vnd.sealedmedia.softseal.jpg +# image/vnd.svf +image/vnd.wap.wbmp wbmp +image/vnd.xiff xif +image/webp webp +image/x-cmu-raster ras +image/x-cmx cmx +image/x-freehand fh fhc fh4 fh5 fh7 +image/x-icon ico +image/x-pcx pcx +image/x-pict pic pct +image/x-portable-anymap pnm +image/x-portable-bitmap pbm +image/x-portable-graymap pgm +image/x-portable-pixmap ppm +image/x-rgb rgb +image/x-xbitmap xbm +image/x-xpixmap xpm +image/x-xwindowdump xwd +# message/cpim +# message/delivery-status +# message/disposition-notification +# message/example +# message/external-body +# message/feedback-report +# message/global +# message/global-delivery-status +# message/global-disposition-notification +# message/global-headers +# message/http +# message/imdn+xml +# message/news +# message/partial +message/rfc822 eml mime +# message/s-http +# message/sip +# message/sipfrag +# message/tracking-status +# message/vnd.si.simp +# model/example +model/iges igs iges +model/mesh msh mesh silo +model/vnd.collada+xml dae +model/vnd.dwf dwf +# model/vnd.flatland.3dml +model/vnd.gdl gdl +# model/vnd.gs-gdl +# model/vnd.gs.gdl +model/vnd.gtw gtw +# model/vnd.moml+xml +model/vnd.mts mts +# model/vnd.parasolid.transmit.binary +# model/vnd.parasolid.transmit.text +model/vnd.vtu vtu +model/vrml wrl vrml +# multipart/alternative +# multipart/appledouble +# multipart/byteranges +# multipart/digest +# multipart/encrypted +# multipart/example +# multipart/form-data +# multipart/header-set +# multipart/mixed +# multipart/parallel +# multipart/related +# multipart/report +# multipart/signed +# multipart/voice-message +# text/1d-interleaved-parityfec +text/calendar ics ifb +text/css css +text/csv csv +# text/directory +# text/dns +# text/ecmascript +# text/enriched +# text/example +text/html html htm +# text/javascript +text/n3 n3 +# text/parityfec +text/plain txt text conf def list log in +# text/prs.fallenstein.rst +text/prs.lines.tag dsc +# text/vnd.radisys.msml-basic-layout +# text/red +# text/rfc822-headers +text/richtext rtx +# text/rtf +# text/rtp-enc-aescm128 +# text/rtx +text/sgml sgml sgm +# text/t140 +text/tab-separated-values tsv +text/troff t tr roff man me ms +text/turtle ttl +# text/ulpfec +text/uri-list uri uris urls +# text/vnd.abc +text/vnd.curl curl +text/vnd.curl.dcurl dcurl +text/vnd.curl.scurl scurl +text/vnd.curl.mcurl mcurl +# text/vnd.dmclientscript +# text/vnd.esmertec.theme-descriptor +text/vnd.fly fly +text/vnd.fmi.flexstor flx +text/vnd.graphviz gv +text/vnd.in3d.3dml 3dml +text/vnd.in3d.spot spot +# text/vnd.iptc.newsml +# text/vnd.iptc.nitf +# text/vnd.latex-z +# text/vnd.motorola.reflex +# text/vnd.ms-mediapackage +# text/vnd.net2phone.commcenter.command +# text/vnd.si.uricatalogue +text/vnd.sun.j2me.app-descriptor jad +# text/vnd.trolltech.linguist +# text/vnd.wap.si +# text/vnd.wap.sl +text/vnd.wap.wml wml +text/vnd.wap.wmlscript wmls +text/x-asm s asm +text/x-c c cc cxx cpp h hh dic +text/x-fortran f for f77 f90 +text/x-pascal p pas +text/x-java-source java +text/x-setext etx +text/x-uuencode uu +text/x-vcalendar vcs +text/x-vcard vcf +# text/xml +# text/xml-external-parsed-entity +# video/1d-interleaved-parityfec +video/3gpp 3gp +# video/3gpp-tt +video/3gpp2 3g2 +# video/bmpeg +# video/bt656 +# video/celb +# video/dv +# video/example +video/h261 h261 +video/h263 h263 +# video/h263-1998 +# video/h263-2000 +video/h264 h264 +# video/h264-rcdo +# video/h264-svc +video/jpeg jpgv +# video/jpeg2000 +video/jpm jpm jpgm +video/mj2 mj2 mjp2 +# video/mp1s +# video/mp2p +# video/mp2t +video/mp4 mp4 mp4v mpg4 +# video/mp4v-es +video/mpeg mpeg mpg mpe m1v m2v +# video/mpeg4-generic +# video/mpv +# video/nv +video/ogg ogv +# video/parityfec +# video/pointer +video/quicktime qt mov +# video/raw +# video/rtp-enc-aescm128 +# video/rtx +# video/smpte292m +# video/ulpfec +# video/vc1 +# video/vnd.cctv +video/vnd.dece.hd uvh uvvh +video/vnd.dece.mobile uvm uvvm +# video/vnd.dece.mp4 +video/vnd.dece.pd uvp uvvp +video/vnd.dece.sd uvs uvvs +video/vnd.dece.video uvv uvvv +# video/vnd.directv.mpeg +# video/vnd.directv.mpeg-tts +# video/vnd.dlna.mpeg-tts +video/vnd.fvt fvt +# video/vnd.hns.video +# video/vnd.iptvforum.1dparityfec-1010 +# video/vnd.iptvforum.1dparityfec-2005 +# video/vnd.iptvforum.2dparityfec-1010 +# video/vnd.iptvforum.2dparityfec-2005 +# video/vnd.iptvforum.ttsavc +# video/vnd.iptvforum.ttsmpeg2 +# video/vnd.motorola.video +# video/vnd.motorola.videop +video/vnd.mpegurl mxu m4u +video/vnd.ms-playready.media.pyv pyv +# video/vnd.nokia.interleaved-multimedia +# video/vnd.nokia.videovoip +# video/vnd.objectvideo +# video/vnd.sealed.mpeg1 +# video/vnd.sealed.mpeg4 +# video/vnd.sealed.swf +# video/vnd.sealedmedia.softseal.mov +video/vnd.uvvu.mp4 uvu uvvu +video/vnd.vivo viv +video/webm webm +video/x-f4v f4v +video/x-fli fli +video/x-flv flv +video/x-m4v m4v +video/x-ms-asf asf asx +video/x-ms-wm wm +video/x-ms-wmv wmv +video/x-ms-wmx wmx +video/x-ms-wvx wvx +video/x-msvideo avi +video/x-sgi-movie movie +x-conference/x-cooltalk ice diff --git a/git/usr/share/perl5/vendor_perl/MIME/Body.pm b/git/usr/share/perl5/vendor_perl/MIME/Body.pm new file mode 100644 index 0000000000000000000000000000000000000000..c4a84a91deeaf4155dfccddd5b3ee7657de145e2 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Body.pm @@ -0,0 +1,672 @@ +package MIME::Body; + +=head1 NAME + +MIME::Body - the body of a MIME message + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + + +=head2 Obtaining bodies + + ### Get the bodyhandle of a MIME::Entity object: + $body = $entity->bodyhandle; + + ### Create a body which stores data in a disk file: + $body = new MIME::Body::File "/path/to/file"; + + ### Create a body which stores data in an in-core array: + $body = new MIME::Body::InCore \@strings; + + +=head2 Opening, closing, and using IO handles + + ### Write data to the body: + $IO = $body->open("w") || die "open body: $!"; + $IO->print($message); + $IO->close || die "close I/O handle: $!"; + + ### Read data from the body (in this case, line by line): + $IO = $body->open("r") || die "open body: $!"; + while (defined($_ = $IO->getline)) { + ### do stuff + } + $IO->close || die "close I/O handle: $!"; + + +=head2 Other I/O + + ### Dump the ENCODED body data to a filehandle: + $body->print(\*STDOUT); + + ### Slurp all the UNENCODED data in, and put it in a scalar: + $string = $body->as_string; + + ### Slurp all the UNENCODED data in, and put it in an array of lines: + @lines = $body->as_lines; + + +=head2 Working directly with paths to underlying files + + ### Where's the data? + if (defined($body->path)) { ### data is on disk: + print "data is stored externally, in ", $body->path; + } + else { ### data is in core: + print "data is already in core, and is...\n", $body->as_string; + } + + ### Get rid of anything on disk: + $body->purge; + + +=head1 DESCRIPTION + +MIME messages can be very long (e.g., tar files, MPEGs, etc.) or very +short (short textual notes, as in ordinary mail). Long messages +are best stored in files, while short ones are perhaps best stored +in core. + +This class is an attempt to define a common interface for objects +which contain message data, regardless of how the data is +physically stored. The lifespan of a "body" object +usually looks like this: + +=over 4 + +=item 1. + +B +It's at this point that the actual MIME::Body subclass is chosen, +and new() is invoked. (For example: if the body data is going to +a file, then it is at this point that the class MIME::Body::File, +and the filename, is chosen). + +=item 2. + +B (usually by the MIME parser) like this: +The body is opened for writing, via C. This will trash any +previous contents, and return an "I/O handle" opened for writing. +Data is written to this I/O handle, via print(). +Then the I/O handle is closed, via close(). + +=item 3. + +B (usually by the user application) like this: +The body is opened for reading by a user application, via C. +This will return an "I/O handle" opened for reading. +Data is read from the I/O handle, via read(), getline(), or getlines(). +Then the I/O handle is closed, via close(). + +=item 4. + +B + +=back + +You can write your own subclasses, as long as they follow the +interface described below. Implementers of subclasses should assume +that steps 2 and 3 may be repeated any number of times, and in +different orders (e.g., 1-2-2-3-2-3-3-3-3-3-2-4). + +In any case, once a MIME::Body has been created, you ask to open it +for reading or writing, which gets you an "i/o handle": you then use +the same mechanisms for reading from or writing to that handle, no matter +what class it is. + +Beware: unless you know for certain what kind of body you have, you +should I assume that the body has an underlying filehandle. + + +=head1 PUBLIC INTERFACE + +=over 4 + +=cut + + +### Pragmas: +use strict; +use vars qw($VERSION); + +### System modules: +use Carp; +use IO::File; + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + + +#------------------------------ + +=item new ARGS... + +I +Create a new body. Any ARGS are sent to init(). + +=cut + +sub new { + my $self = bless {}, shift; + $self->init(@_); + $self; +} + +#------------------------------ + +=item init ARGS... + +I +This is called automatically by C, with the arguments given +to C. The arguments are optional, and entirely up to the +subclass. The default method does nothing, + +=cut + +sub init { 1 } + +#------------------------------ + +=item as_lines + +I +Return the contents of the body as an array of lines (each terminated +by a newline, with the possible exception of the final one). +Returns empty on failure (NB: indistinguishable from an empty body!). + +Note: the default method gets the data via +repeated getline() calls; your subclass might wish to override this. + +=cut + +sub as_lines { + my $self = shift; + my @lines; + my $io = $self->open("r") || return (); + local $_; + push @lines, $_ while (defined($_ = $io->getline())); + $io->close; + @lines; +} + +#------------------------------ + +=item as_string + +I +Return the body data as a string (slurping it into core if necessary). +Best not to do this unless you're I that the body is reasonably small! +Returns empty string for an empty body, and undef on failure. + +Note: the default method uses print(), which gets the data via +repeated read() calls; your subclass might wish to override this. + +=cut + +sub as_string { + my $self = shift; + my $str = ''; + my $fh = IO::File->new(\$str, '>:') or croak("Cannot open in-memory file: $!"); + $self->print($fh); + close($fh); + return $str; +} +*data = \&as_string; ### silently invoke preferred usage + + +#------------------------------ + +=item binmode [ONOFF] + +I +With argument, flags whether or not open() should return an I/O handle +which has binmode() activated. With no argument, just returns the +current value. + +=cut + +sub binmode { + my ($self, $onoff) = @_; + $self->{MB_Binmode} = $onoff if (@_ > 1); + $self->{MB_Binmode}; +} + +#------------------------------ + +=item is_encoded [ONOFF] + +I +If set to yes, no decoding is applied on output. This flag is set +by MIME::Parser, if the parser runs in decode_bodies(0) mode, so the +content is handled unmodified. + +=cut + +sub is_encoded { + my ($self, $yesno) = @_; + $self->{MB_IsEncoded} = $yesno if (@_ > 1); + $self->{MB_IsEncoded}; +} + +#------------------------------ + +=item dup + +I +Duplicate the bodyhandle. + +I external data in bodyhandles is I copied to new files! +Changing the data in one body's data file, or purging that body, +I affect its duplicate. Bodies with in-core data probably need +not worry. + +=cut + +sub dup { + my $self = shift; + bless { %$self }, ref($self); ### shallow copy ok for ::File and ::Scalar +} + +#------------------------------ + +=item open READWRITE + +I +This should do whatever is necessary to open the body for either +writing (if READWRITE is "w") or reading (if mode is "r"). + +This method is expected to return an "I/O handle" object on success, +and undef on error. An I/O handle can be any object that supports a +small set of standard methods for reading/writing data. +See the IO::Handle class for an example. + +=cut + +sub open { + undef; +} + +#------------------------------ + +=item path [PATH] + +I +If you're storing the body data externally (e.g., in a disk file), you'll +want to give applications the ability to get at that data, for cleanup. +This method should return the path to the data, or undef if there is none. + +Where appropriate, the path I be a simple string, like a filename. +With argument, sets the PATH, which should be undef if there is none. + +=cut + +sub path { + my $self = shift; + $self->{MB_Path} = shift if @_; + $self->{MB_Path}; +} + +#------------------------------ + +=item print FILEHANDLE + +I +Output the body data to the given filehandle, or to the currently-selected +one if none is given. + +=cut + +sub print { + my ($self, $fh) = @_; + my $nread; + + ### Get output filehandle, and ensure that it's a printable object: + $fh ||= select; + + ### Write it: + my $buf = ''; + my $io = $self->open("r") || return undef; + $fh->print($buf) while ($nread = $io->read($buf, 8192)); + $io->close; + return defined($nread); ### how'd we do? +} + +#------------------------------ + +=item purge + +I +Remove any data which resides external to the program (e.g., in disk files). +Immediately after a purge(), the path() should return undef to indicate +that the external data is no longer available. + +=cut + +sub purge { + 1; +} + + + +=back + +=head1 SUBCLASSES + +The following built-in classes are provided: + + Body Stores body When open()ed, + class: data in: returns: + -------------------------------------------------------- + MIME::Body::File disk file IO::Handle + MIME::Body::Scalar scalar IO::Handle + MIME::Body::InCore scalar array IO::Handle + +=cut + + +#------------------------------------------------------------ +package MIME::Body::File; +#------------------------------------------------------------ + +=head2 MIME::Body::File + +A body class that stores the data in a disk file. Invoke the +constructor as: + + $body = new MIME::Body::File "/path/to/file"; + +In this case, the C method would return the given path, +so you I say: + + if (defined($body->path)) { + open BODY, $body->path or die "open: $!"; + while () { + ### do stuff + } + close BODY; + } + +But you're best off not doing this. + +=cut + + +### Pragmas: +use vars qw(@ISA); +use strict; + +### System modules: +use IO::File; + +### Kit modules: +use MIME::Tools qw(whine); + +@ISA = qw(MIME::Body); + + +#------------------------------ +# init PATH +#------------------------------ +sub init { + my ($self, $path) = @_; + $self->path($path); ### use it as-is + $self; +} + +#------------------------------ +# open READWRITE +#------------------------------ +sub open { + my ($self, $mode) = @_; + + my $path = $self->path; + + if( $mode ne 'r' && $mode ne 'w' ) { + die "bad mode: '$mode'"; + } + + my $IO = IO::File->new($path, $mode) || die "MIME::Body::File->open $path: $!"; + + $IO->binmode() if $self->binmode; + + return $IO; +} + +#------------------------------ +# purge +#------------------------------ +# Unlink the path (and undefine it). +# +sub purge { + my $self = shift; + if (defined($self->path)) { + unlink $self->path or whine "couldn't unlink ".$self->path.": $!"; + $self->path(undef); + } + 1; +} + + + + +#------------------------------------------------------------ +package MIME::Body::Scalar; +#------------------------------------------------------------ + +=head2 MIME::Body::Scalar + +A body class that stores the data in-core, in a simple scalar. +Invoke the constructor as: + + $body = new MIME::Body::Scalar \$string; + +A single scalar argument sets the body to that value, exactly as though +you'd opened for the body for writing, written the value, +and closed the body again: + + $body = new MIME::Body::Scalar "Line 1\nLine 2\nLine 3"; + +A single array reference sets the body to the result of joining all the +elements of that array together: + + $body = new MIME::Body::Scalar ["Line 1\n", + "Line 2\n", + "Line 3"]; + +=cut + +use vars qw(@ISA); +use strict; + +use Carp; + +@ISA = qw(MIME::Body); + + +#------------------------------ +# init DATA +#------------------------------ +sub init { + my ($self, $data) = @_; + $data = join('', @$data) if (ref($data) && (ref($data) eq 'ARRAY')); + $self->{MBS_Data} = (defined($data) ? $data : ''); + $self; +} + +#------------------------------ +# as_string +#------------------------------ +sub as_string { + shift->{MBS_Data}; +} + +#------------------------------ +# open READWRITE +#------------------------------ +sub open { + my ($self, $mode) = @_; + $self->{MBS_Data} = '' if ($mode eq 'w'); ### writing + + if ($mode eq 'w') { + $mode = '>:'; + } elsif ($mode eq 'r') { + $mode = '<:'; + } else { + die "bad mode: $mode"; + } + + return IO::File->new(\ $self->{MBS_Data}, $mode); +} + + + + + +#------------------------------------------------------------ +package MIME::Body::InCore; +#------------------------------------------------------------ + +=head2 MIME::Body::InCore + +A body class that stores the data in-core. +Invoke the constructor as: + + $body = new MIME::Body::InCore \$string; + $body = new MIME::Body::InCore $string; + $body = new MIME::Body::InCore \@stringarray + +A simple scalar argument sets the body to that value, exactly as though +you'd opened for the body for writing, written the value, +and closed the body again: + + $body = new MIME::Body::InCore "Line 1\nLine 2\nLine 3"; + +A single array reference sets the body to the concatenation of all +scalars that it holds: + + $body = new MIME::Body::InCore ["Line 1\n", + "Line 2\n", + "Line 3"]; + +=cut + +use vars qw(@ISA); +use strict; + +use Carp; + +@ISA = qw(MIME::Body::Scalar); + + +#------------------------------ +# init DATA +#------------------------------ +sub init { + my ($self, $data) = @_; + if (!defined($data)) { ### nothing + $self->{MBS_Data} = ''; + } + elsif (!ref($data)) { ### simple scalar + $self->{MBS_Data} = $data; + } + elsif (ref($data) eq 'SCALAR') { + $self->{MBS_Data} = $$data; + } + elsif (ref($data) eq 'ARRAY') { + $self->{MBS_Data} = join('', @$data); + } + else { + croak "I can't handle DATA which is a ".ref($data)."\n"; + } + $self; +} + +1; +__END__ + + +#------------------------------ + +=head2 Defining your own subclasses + +So you're not happy with files and scalar-arrays? +No problem: just define your own MIME::Body subclass, and make a subclass +of MIME::Parser or MIME::ParserBase which returns an instance of your +body class whenever appropriate in the C method. + +Your "body" class must inherit from MIME::Body (or some subclass of it), +and it must either provide (or inherit the default for) the following +methods... + +The default inherited method I for all these: + + new + binmode [ONOFF] + path + +The default inherited method I for these, but perhaps +there's a better implementation for your subclass. + + init ARGS... + as_lines + as_string + dup + print + purge + +The default inherited method I for these: + + open + + + +=head1 NOTES + +One reason I didn't just use IO::Handle objects for message bodies was +that I wanted a "body" object to be a form of completely encapsulated +program-persistent storage; that is, I wanted users to be able to write +code like this... + + ### Get body handle from this MIME message, and read its data: + $body = $entity->bodyhandle; + $IO = $body->open("r"); + while (defined($_ = $IO->getline)) { + print STDOUT $_; + } + $IO->close; + +...without requiring that they know anything more about how the +$body object is actually storing its data (disk file, scalar variable, +array variable, or whatever). + +Storing the body of each MIME message in a persistently-open +IO::Handle was a possibility, but it seemed like a bad idea, +considering that a single multipart MIME message could easily suck up +all the available file descriptors on some systems. This risk increases +if the user application is processing more than one MIME entity at a time. + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (F) + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +Thanks to Achim Bohnet for suggesting that MIME::Parser not be restricted +to the use of FileHandles. + +#------------------------------ +1; + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder.pm new file mode 100644 index 0000000000000000000000000000000000000000..3436576eb71be03b02b8e4874ae6d32d6da985f6 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder.pm @@ -0,0 +1,661 @@ +package MIME::Decoder; + + +=head1 NAME + +MIME::Decoder - an object for decoding the body part of a MIME stream + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + + +=head2 Decoding a data stream + +Here's a simple filter program to read quoted-printable data from STDIN +(until EOF) and write the decoded data to STDOUT: + + use MIME::Decoder; + + $decoder = new MIME::Decoder 'quoted-printable' or die "unsupported"; + $decoder->decode(\*STDIN, \*STDOUT); + + +=head2 Encoding a data stream + +Here's a simple filter program to read binary data from STDIN +(until EOF) and write base64-encoded data to STDOUT: + + use MIME::Decoder; + + $decoder = new MIME::Decoder 'base64' or die "unsupported"; + $decoder->encode(\*STDIN, \*STDOUT); + + +=head2 Non-standard encodings + +You can B your own decoders so that +MIME::Decoder will know about them: + + use MyBase64Decoder; + + install MyBase64Decoder 'base64'; + +You can also B if a given encoding is supported: + + if (supported MIME::Decoder 'x-uuencode') { + ### we can uuencode! + } + + +=head1 DESCRIPTION + +This abstract class, and its private concrete subclasses (see below) +provide an OO front end to the actions of... + +=over 4 + +=item * + +Decoding a MIME-encoded stream + +=item * + +Encoding a raw data stream into a MIME-encoded stream. + +=back + +The constructor for MIME::Decoder takes the name of an encoding +(C, C<7bit>, etc.), and returns an instance of a I +of MIME::Decoder whose C method will perform the appropriate +decoding action, and whose C method will perform the appropriate +encoding action. + + +=cut + + +### Pragmas: +use strict; +use vars qw($VERSION %DecoderFor); + +### System modules: +use IPC::Open2; +use IO::Select; +use FileHandle; + +### Kit modules: +use MIME::Tools qw(:config :msgs); +use Carp; + +#------------------------------ +# +# Globals +# +#------------------------------ + +### The stream decoders: +%DecoderFor = ( + + ### Standard... + '7bit' => 'MIME::Decoder::NBit', + '8bit' => 'MIME::Decoder::NBit', + 'base64' => 'MIME::Decoder::Base64', + 'binary' => 'MIME::Decoder::Binary', + 'none' => 'MIME::Decoder::Binary', + 'quoted-printable' => 'MIME::Decoder::QuotedPrint', + + ### Non-standard... + 'binhex' => 'MIME::Decoder::BinHex', + 'binhex40' => 'MIME::Decoder::BinHex', + 'mac-binhex40' => 'MIME::Decoder::BinHex', + 'mac-binhex' => 'MIME::Decoder::BinHex', + 'x-uu' => 'MIME::Decoder::UU', + 'x-uuencode' => 'MIME::Decoder::UU', + + ### This was removed, since I fear that x-gzip != x-gzip64... +### 'x-gzip' => 'MIME::Decoder::Gzip64', + + ### This is no longer installed by default, since not all folks have gzip: +### 'x-gzip64' => 'MIME::Decoder::Gzip64', +); + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### Me: +my $ME = 'MIME::Decoder'; + + +#------------------------------ + +=head1 PUBLIC INTERFACE + +=head2 Standard interface + +If all you are doing is I this class, here's all you'll need... + +=over 4 + +=cut + +#------------------------------ + +=item new ENCODING + +I +Create and return a new decoder object which can handle the +given ENCODING. + + my $decoder = new MIME::Decoder "7bit"; + +Returns the undefined value if no known decoders are appropriate. + +=cut + +sub new { + my ($class, @args) = @_; + my ($encoding) = @args; + + ### Coerce the type to be legit: + $encoding = lc($encoding || ''); + + ### Get the class: + my $concrete_name = $DecoderFor{$encoding}; + + if( ! $concrete_name ) { + carp "no decoder for $encoding"; + return undef; + } + + ### Create the new object (if we can): + my $self = { MD_Encoding => lc($encoding) }; + unless (eval "require $concrete_name;") { + carp $@; + return undef; + } + bless $self, $concrete_name; + $self->init(@args); +} + +#------------------------------ + +=item best ENCODING + +I +Exactly like new(), except that this defaults any unsupported encoding to +"binary", after raising a suitable warning (it's a fatal error if there's +no binary decoder). + + my $decoder = best MIME::Decoder "x-gzip64"; + +Will either return a decoder, or a raise a fatal exception. + +=cut + +sub best { + my ($class, $enc, @args) = @_; + my $self = $class->new($enc, @args); + if (!$self) { + usage "unsupported encoding '$enc': using 'binary'"; + $self = $class->new('binary') || croak "ack! no binary decoder!"; + } + $self; +} + +#------------------------------ + +=item decode INSTREAM,OUTSTREAM + +I +Decode the document waiting in the input handle INSTREAM, +writing the decoded information to the output handle OUTSTREAM. + +Read the section in this document on I/O handles for more information +about the arguments. Note that you can still supply old-style +unblessed filehandles for INSTREAM and OUTSTREAM. + +Returns true on success, throws exception on failure. + +=cut + +sub decode { + my ($self, $in, $out) = @_; + + ### Set up the default input record separator to be CRLF: + ### $in->input_record_separator("\012\015"); + + ### Invoke back-end method to do the work: + $self->decode_it($in, $out) || + die "$ME: ".$self->encoding." decoding failed\n"; + 1; +} + +#------------------------------ + +=item encode INSTREAM,OUTSTREAM + +I +Encode the document waiting in the input filehandle INSTREAM, +writing the encoded information to the output stream OUTSTREAM. + +Read the section in this document on I/O handles for more information +about the arguments. Note that you can still supply old-style +unblessed filehandles for INSTREAM and OUTSTREAM. + +Returns true on success, throws exception on failure. + +=cut + +sub encode { + my ($self, $in, $out, $textual_type) = @_; + + ### Invoke back-end method to do the work: + $self->encode_it($in, $out, $self->encoding eq 'quoted-printable' ? ($textual_type) : ()) || + die "$ME: ".$self->encoding." encoding failed\n"; +} + +#------------------------------ + +=item encoding + +I +Return the encoding that this object was created to handle, +coerced to all lowercase (e.g., C<"base64">). + +=cut + +sub encoding { + shift->{MD_Encoding}; +} + +#------------------------------ + +=item head [HEAD] + +I +Completely optional: some decoders need to know a little about the file +they are encoding/decoding; e.g., x-uu likes to have the filename. +The HEAD is any object which responds to messages like: + + $head->mime_attr('content-disposition.filename'); + +=cut + +sub head { + my ($self, $head) = @_; + $self->{MD_Head} = $head if @_ > 1; + $self->{MD_Head}; +} + +#------------------------------ + +=item supported [ENCODING] + +I +With one arg (an ENCODING name), returns truth if that encoding +is currently handled, and falsity otherwise. The ENCODING will +be automatically coerced to lowercase: + + if (supported MIME::Decoder '7BIT') { + ### yes, we can handle it... + } + else { + ### drop back six and punt... + } + +With no args, returns a reference to a hash of all available decoders, +where the key is the encoding name (all lowercase, like '7bit'), +and the value is true (it happens to be the name of the class +that handles the decoding, but you probably shouldn't rely on that). +You may safely modify this hash; it will I change the way the +module performs its lookups. Only C can do that. + +I + +=cut + +sub supported { + my ($class, $decoder) = @_; + defined($decoder) ? $DecoderFor{lc($decoder)}: { %DecoderFor }; +} + +#------------------------------ + +=back + +=head2 Subclass interface + +If you are writing (or installing) a new decoder subclass, there +are some other methods you'll need to know about: + +=over 4 + +=item decode_it INSTREAM,OUTSTREAM + +I +The back-end of the B method. It takes an input handle +opened for reading (INSTREAM), and an output handle opened for +writing (OUTSTREAM). + +If you are writing your own decoder subclass, you must override this +method in your class. Your method should read from the input +handle via C or C, decode this input, and print the +decoded data to the output handle via C. You may do this +however you see fit, so long as the end result is the same. + +Note that unblessed references and globrefs are automatically turned +into I/O handles for you by C, so you don't need to worry +about it. + +Your method must return either C (to indicate failure), +or C<1> (to indicate success). +It may also throw an exception to indicate failure. + +=cut + +sub decode_it { + die "attempted to use abstract 'decode_it' method!"; +} + +=item encode_it INSTREAM,OUTSTREAM + +I +The back-end of the B method. It takes an input handle +opened for reading (INSTREAM), and an output handle opened for +writing (OUTSTREAM). + +If you are writing your own decoder subclass, you must override this +method in your class. Your method should read from the input +handle via C or C, encode this input, and print the +encoded data to the output handle via C. You may do this +however you see fit, so long as the end result is the same. + +Note that unblessed references and globrefs are automatically turned +into I/O handles for you by C, so you don't need to worry +about it. + +Your method must return either C (to indicate failure), +or C<1> (to indicate success). +It may also throw an exception to indicate failure. + +=cut + +sub encode_it { + die "attempted to use abstract 'encode_it' method!"; +} + +=item filter IN, OUT, COMMAND... + +I +If your decoder involves an external program, you can invoke +them easily through this method. The command must be a "filter": a +command that reads input from its STDIN (which will come from the IN argument) +and writes output to its STDOUT (which will go to the OUT argument). + +For example, here's a decoder that un-gzips its data: + + sub decode_it { + my ($self, $in, $out) = @_; + $self->filter($in, $out, "gzip -d -"); + } + +The usage is similar to IPC::Open2::open2 (which it uses internally), +so you can specify COMMAND as a single argument or as an array. + +=cut + +sub filter +{ + my ($self, $in, $out, @cmd) = @_; + my $buf = ''; + + ### Open pipe: + STDOUT->flush; ### very important, or else we get duplicate output! + + my $kidpid = open2(my $child_out, my $child_in, @cmd) || die "@cmd: open2 failed: $!"; + + ### We have to use select() for doing both reading and writing. + my $rsel = IO::Select->new( $child_out ); + my $wsel = IO::Select->new( $child_in ); + + while (1) { + + ### Wait for one hour; if that fails, it's too bad. + my ($read, $write) = IO::Select->select( $rsel, $wsel, undef, 3600); + + if( !defined $read && !defined $write ) { + kill 1, $kidpid; + waitpid $kidpid, 0; + die "@cmd: select failed: $!"; + } + + ### If can read from child: + if( my $fh = shift @$read ) { + if( $fh->sysread(my $buf, 1024) ) { + $out->print($buf); + } else { + $rsel->remove($fh); + $fh->close(); + } + } + + ### If can write to child: + if( my $fh = shift @$write ) { + if($in->read(my $buf, 1024)) { + local $SIG{PIPE} = sub { + warn "got SIGPIPE from @cmd"; + $wsel->remove($fh); + $fh->close(); + }; + $fh->syswrite( $buf ); + } else { + $wsel->remove($fh); + $fh->close(); + } + } + + ### If both $child_out and $child_in are done: + last unless ($rsel->count() || $wsel->count()); + } + + ### Wait for it: + waitpid($kidpid, 0) == $kidpid or die "@cmd: couldn't reap child $kidpid"; + ### Check if it failed: + $? == 0 or die "@cmd: bad exit status: \$? = $?"; + 1; +} + + +#------------------------------ + +=item init ARGS... + +I +Do any necessary initialization of the new instance, +taking whatever arguments were given to C. +Should return the self object on success, undef on failure. + +=cut + +sub init { + $_[0]; +} + +#------------------------------ + +=item install ENCODINGS... + +I. +Install this class so that each encoding in ENCODINGS is handled by it: + + install MyBase64Decoder 'base64', 'x-base64super'; + +You should not override this method. + +=cut + +sub install { + my $class = shift; + $DecoderFor{lc(shift @_)} = $class while (@_); +} + +#------------------------------ + +=item uninstall ENCODINGS... + +I. +Uninstall support for encodings. This is a way to turn off the decoding +of "experimental" encodings. For safety, always use MIME::Decoder directly: + + uninstall MIME::Decoder 'x-uu', 'x-uuencode'; + +You should not override this method. + +=cut + +sub uninstall { + shift; + $DecoderFor{lc(shift @_)} = undef while (@_); +} + +1; + +__END__ + +#------------------------------ + +=back + +=head1 DECODER SUBCLASSES + +You don't need to C<"use"> any other Perl modules; the +following "standard" subclasses are included as part of MIME::Decoder: + + Class: Handles encodings: + ------------------------------------------------------------ + MIME::Decoder::Binary binary + MIME::Decoder::NBit 7bit, 8bit + MIME::Decoder::Base64 base64 + MIME::Decoder::QuotedPrint quoted-printable + +The following "non-standard" subclasses are also included: + + Class: Handles encodings: + ------------------------------------------------------------ + MIME::Decoder::UU x-uu, x-uuencode + MIME::Decoder::Gzip64 x-gzip64 ** requires gzip! + + + +=head1 NOTES + +=head2 Input/Output handles + +As of MIME-tools 2.0, this class has to play nice with the new MIME::Body +class... which means that input and output routines cannot just assume that +they are dealing with filehandles. + +Therefore, all that MIME::Decoder and its subclasses require (and, thus, +all that they can assume) is that INSTREAMs and OUTSTREAMs are objects +which respond to a subset of the messages defined in the IO::Handle +interface; minimally: + + print + getline + read(BUF,NBYTES) + +I + + +=head2 Writing a decoder + +If you're experimenting with your own encodings, you'll probably want +to write a decoder. Here are the basics: + +=over 4 + +=item 1. + +Create a module, like "MyDecoder::", for your decoder. +Declare it to be a subclass of MIME::Decoder. + +=item 2. + +Create the following instance methods in your class, as described above: + + decode_it + encode_it + init + +=item 3. + +In your application program, activate your decoder for one or +more encodings like this: + + require MyDecoder; + + install MyDecoder "7bit"; ### use MyDecoder to decode "7bit" + install MyDecoder "x-foo"; ### also use MyDecoder to decode "x-foo" + +=back + +To illustrate, here's a custom decoder class for the C +encoding: + + package MyQPDecoder; + + @ISA = qw(MIME::Decoder); + use MIME::Decoder; + use MIME::QuotedPrint; + + ### decode_it - the private decoding method + sub decode_it { + my ($self, $in, $out) = @_; + local $_; + while (defined($_ = $in->getline)) { + my $decoded = decode_qp($_); + $out->print($decoded); + } + 1; + } + + ### encode_it - the private encoding method + sub encode_it { + my ($self, $in, $out) = @_; + + my ($buf, $nread) = ('', 0); + while ($in->read($buf, 60)) { + my $encoded = encode_qp($buf); + $out->print($encoded); + } + 1; + } + +That's it. The task was pretty simple because the C<"quoted-printable"> +encoding can easily be converted line-by-line... as can +even C<"7bit"> and C<"8bit"> (since all these encodings guarantee +short lines, with a max of 1000 characters). +The good news is: it is very likely that it will be similarly-easy to +write a MIME::Decoder for any future standard encodings. + +The C<"binary"> decoder, however, really required block reads and writes: +see L<"MIME::Decoder::Binary"> for details. + +=head1 SEE ALSO + +L, other MIME::Decoder subclasses. + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/Base64.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Base64.pm new file mode 100644 index 0000000000000000000000000000000000000000..a47591a12a48f34c8a4161190281872762894f1f --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Base64.pm @@ -0,0 +1,133 @@ +package MIME::Decoder::Base64; +use strict; +use warnings; + + +=head1 NAME + +MIME::Decoder::Base64 - encode/decode a "base64" stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + + +=head1 DESCRIPTION + +A L subclass for the C<"base64"> encoding. +The name was chosen to jibe with the pre-existing MIME::Base64 +utility package, which this class actually uses to translate each chunk. + +=over 4 + +=item * + +When B, the input is read one line at a time. +The input accumulates in an internal buffer, which is decoded in +multiple-of-4-sized chunks (plus a possible "leftover" input chunk, +of course). + +=item * + +When B, the input is read 6840 (120 * 57) bytes at a time. +Each section of 57 bytes is encoded as a line containing 76 Base64 +characters. + +=back + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + +use vars qw(@ISA $VERSION); +use MIME::Decoder; +use MIME::Base64 2.04; +use MIME::Tools qw(debug); + +@ISA = qw(MIME::Decoder); + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### How many bytes to encode at a time (must be a multiple of 3) +my $EncodeChunkLength = 120 * 57; + +### How many bytes to decode at a time? +my $DecodeChunkLength = 32 * 1024; + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + my $len_4xN; + + ### Create a suitable buffer: + my $buffer = ' ' x (120 + $DecodeChunkLength); $buffer = ''; + debug "in = $in; out = $out"; + + ### Get chunks until done: + local($_) = ' ' x $DecodeChunkLength; + while ($in->read($_, $DecodeChunkLength)) { + tr{A-Za-z0-9+/}{}cd; ### get rid of non-base64 chars + + ### Concat any new input onto any leftover from the last round: + $buffer .= $_; + length($buffer) >= $DecodeChunkLength or next; + + ### Extract substring with highest multiple of 4 bytes: + ### 0 means not enough to work with... get more data! + $len_4xN = length($buffer) & ~3; + + ### Partition into largest-multiple-of-4 (which we decode), + ### and the remainder (which gets handled next time around): + $out->print(decode_base64(substr($buffer, 0, $len_4xN))); + $buffer = substr($buffer, $len_4xN); + } + + ### No more input remains. Dispose of anything left in buffer: + if (length($buffer)) { + + ### Pad to 4-byte multiple, and decode: + $buffer .= "==="; ### need no more than 3 pad chars + $len_4xN = length($buffer) & ~3; + + ### Decode it! + $out->print(decode_base64(substr($buffer, 0, $len_4xN))); + } + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + my $encoded; + + my $nread; + my $buf = ''; + my $nl = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + while ($nread = $in->read($buf, $EncodeChunkLength)) { + $encoded = encode_base64($buf, $nl); + $encoded .= $nl unless ($encoded =~ /$nl\Z/); ### ensure newline! + $out->print($encoded); + } + 1; +} + +#------------------------------ +1; + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/BinHex.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/BinHex.pm new file mode 100644 index 0000000000000000000000000000000000000000..06d80d772f697914f80a7cc338b4989343eac8d5 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/BinHex.pm @@ -0,0 +1,183 @@ +package MIME::Decoder::BinHex; +use strict; +use warnings; + + +=head1 NAME + +MIME::Decoder::BinHex - decode a "binhex" stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + +Also supports a preamble() method to recover text before +the binhexed portion of the stream. + + +=head1 DESCRIPTION + +A MIME::Decoder subclass for a nonstandard encoding whereby +data are binhex-encoded. Common non-standard MIME encodings for this: + + x-uu + x-uuencode + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Julian Field (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + + +require 5.002; +use vars qw(@ISA $VERSION); +use MIME::Decoder; +use MIME::Tools qw(whine); +use Convert::BinHex; + +@ISA = qw(MIME::Decoder); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + my ($mode, $file); + my (@preamble, @data); + my $H2B = Convert::BinHex->hex2bin; + my $line; + + $self->{MDU_Preamble} = \@preamble; + $self->{MDU_Mode} = '600'; + $self->{MDU_File} = undef; + + ### Find beginning... + local $_; + while (defined($_ = $in->getline)) { + if (/^\(This file must be converted/) { + $_ = $in->getline; + last if /^:/; + } + push @preamble, $_; + } + die("binhex decoding: fell off end of file\n") if !defined($_); + + ### Decode: + my $data; + $data = $H2B->next($_); # or whine("Next error is $@ $!\n"); + my $len = unpack("C", $data); + while ($len > length($data)+21 && defined($line = $in->getline)) { + $data .= $H2B->next($line); + } + if (length($data) >= 22+$len) { + $data = substr($data, 22+$len); + } else { + $data = ''; + } + + $out->print($data); + while (defined($_ = $in->getline)) { + $line = $_; + $data = $H2B->next($line); + $out->print($data); + last if $line =~ /:$/; + } + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + my $line; + my $buf = ''; + my $fname = (($self->head && + $self->head->mime_attr('content-disposition.filename')) || + ''); + my $B2H = Convert::BinHex->bin2hex; + $out->print("(This file must be converted with BinHex 4.0)\n"); + + # Sigh... get length of file + $in->seek(0, 2); + my $datalen = $in->tell(); + $in->seek(0, 0); + + # Build header in core: + my @hdrs; + my $flen = length($fname); + push @hdrs, pack("C", $flen); + push @hdrs, pack("a$flen", $fname); + push @hdrs, pack('C', 4); + push @hdrs, pack('a4', '????'); + push @hdrs, pack('a4', '????'); + push @hdrs, pack('n', 0); + push @hdrs, pack('N', $datalen); + push @hdrs, pack('N', 0); # Resource length + my $hdr = join '', @hdrs; + + # Compute the header CRC: + my $crc = Convert::BinHex::binhex_crc("\000\000", + Convert::BinHex::binhex_crc($hdr, 0)); + + # Output the header (plus its CRC): + $out->print($B2H->next($hdr . pack('n', $crc))); + + while ($in->read($buf, 1000)) { + $out->print($B2H->next($buf)); + } + $out->print($B2H->done); + 1; +} + +#------------------------------ +# +# last_preamble +# +# Return the last preamble as ref to array of lines. +# Gets reset by decode_it(). +# +sub last_preamble { + my $self = shift; + return $self->{MDU_Preamble} || []; +} + +#------------------------------ +# +# last_mode +# +# Return the last mode. +# Gets reset to undef by decode_it(). +# +sub last_mode { + shift->{MDU_Mode}; +} + +#------------------------------ +# +# last_filename +# +# Return the last filename. +# Gets reset by decode_it(). +# +sub last_filename { + shift->{MDU_File} || undef; #[]; +} + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/Binary.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Binary.pm new file mode 100644 index 0000000000000000000000000000000000000000..637c76207cfd649909fc79c48c7a5f8f87d5d42e --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Binary.pm @@ -0,0 +1,86 @@ +package MIME::Decoder::Binary; +use strict; +use warnings; + + +=head1 NAME + +MIME::Decoder::Binary - perform no encoding/decoding + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + + +=head1 DESCRIPTION + +A MIME::Decoder subclass for the C<"binary"> encoding (in other words, +no encoding). + +The C<"binary"> decoder is a special case, since it's ill-advised +to read the input line-by-line: after all, an uncompressed image file might +conceivably have loooooooooong stretches of bytes without a C<"\n"> among +them, and we don't want to risk blowing out our core. So, we +read-and-write fixed-size chunks. + +Both the B and B do a simple pass-through of the data +from input to output. + +=head1 SEE ALSO + +L + + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + +use MIME::Decoder; +use vars qw(@ISA $VERSION); + +@ISA = qw(MIME::Decoder); + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### Buffer length: +my $BUFLEN = 8192; + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + + my ($buf, $nread) = ('', 0); + while ($nread = $in->read($buf, $BUFLEN)) { + $out->print($buf); + } + defined($nread) or return undef; ### check for error + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + + my ($buf, $nread) = ('', 0); + while ($nread = $in->read($buf, $BUFLEN)) { + $out->print($buf); + } + defined($nread) or return undef; ### check for error + 1; +} + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/Gzip64.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Gzip64.pm new file mode 100644 index 0000000000000000000000000000000000000000..896b204962761138eba3a7c5e6787e546feb687d --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/Gzip64.pm @@ -0,0 +1,111 @@ +package MIME::Decoder::Gzip64; + + +=head1 NAME + +MIME::Decoder::Gzip64 - decode a "base64" gzip stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + + +=head1 DESCRIPTION + +A MIME::Decoder::Base64 subclass for a nonstandard encoding whereby +data are gzipped, then the gzipped file is base64-encoded. +Common non-standard MIME encodings for this: + + x-gzip64 + +Since this class relies on external programs which may not +exist on your machine, MIME-tools does not "install" it by default. +To use it, you need to say in your main program: + + install MIME::Decoder::Gzip64 'x-gzip64'; + +Note: if this class isn't working for you, you may need to change the +commands it runs. In your main program, you can do so by setting up +the two commands which handle the compression/decompression. + + use MIME::Decoder::Gzip64; + + $MIME::Decoder::Gzip64::GZIP = 'gzip -c'; + $MIME::Decoder::Gzip64::GUNZIP = 'gzip -d -c'; + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + + +=cut + + +require 5.002; +use strict; +use vars qw(@ISA $VERSION $GZIP $GUNZIP); +use MIME::Decoder; +use MIME::Base64; +use MIME::Decoder::Base64; +use MIME::Tools qw(tmpopen whine); + +# Inheritance: +@ISA = qw(MIME::Decoder::Base64); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +# How to compress stdin to stdout: +$GZIP = "gzip -c"; + +# How to UNcompress stdin to stdout: +$GUNZIP = "gzip -d -c"; + + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + + # Open a temp file (assume the worst, that this is a big stream): + my $tmp = tmpopen() || die "can't get temp file"; + + # Stage 1: decode the base64'd stream into zipped data: + $self->SUPER::decode_it($in, $tmp) or die "base64 decoding failed!"; + + # Stage 2: un-zip the zipped data: + $tmp->seek(0, 0); + $self->filter($tmp, $out, $GUNZIP) or die "gzip decoding failed!"; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + whine "Encoding ", $self->encoding, " is not standard MIME!"; + + # Open a temp file (assume the worst, that this is a big stream): + my $tmp = tmpopen() || die "can't get temp file"; + + # Stage 1: zip the raw data: + $self->filter($in, $tmp, $GZIP) or die "gzip encoding failed!"; + + # Stage 2: encode the zipped data via base64: + $tmp->seek(0, 0); + $self->SUPER::encode_it($tmp, $out) or die "base64 encoding failed!"; +} + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/NBit.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/NBit.pm new file mode 100644 index 0000000000000000000000000000000000000000..ca982934f50953464b7b8fc148c8ee1e03520ba9 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/NBit.pm @@ -0,0 +1,160 @@ +package MIME::Decoder::NBit; +use strict; +use warnings; + + +=head1 NAME + +MIME::Decoder::NBit - encode/decode a "7bit" or "8bit" stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + + +=head1 DESCRIPTION + +This is a MIME::Decoder subclass for the C<7bit> and C<8bit> content +transfer encodings. These are not "encodings" per se: rather, they +are simply assertions of the content of the message. +From RFC-2045 Section 6.2.: + + Three transformations are currently defined: identity, the "quoted- + printable" encoding, and the "base64" encoding. The domains are + "binary", "8bit" and "7bit". + + The Content-Transfer-Encoding values "7bit", "8bit", and "binary" all + mean that the identity (i.e. NO) encoding transformation has been + performed. As such, they serve simply as indicators of the domain of + the body data, and provide useful information about the sort of + encoding that might be needed for transmission in a given transport + system. + +In keeping with this: as of MIME-tools 4.x, +I +all it does is attempt to I of the 7bit/8bit assertion, +and issue a warning (one per message) if any are found. + + +=head2 Legal 7bit data + +RFC-2045 Section 2.7 defines legal C<7bit> data: + + "7bit data" refers to data that is all represented as relatively + short lines with 998 octets or less between CRLF line separation + sequences [RFC-821]. No octets with decimal values greater than 127 + are allowed and neither are NULs (octets with decimal value 0). CR + (decimal value 13) and LF (decimal value 10) octets only occur as + part of CRLF line separation sequences. + + +=head2 Legal 8bit data + +RFC-2045 Section 2.8 defines legal C<8bit> data: + + "8bit data" refers to data that is all represented as relatively + short lines with 998 octets or less between CRLF line separation + sequences [RFC-821]), but octets with decimal values greater than 127 + may be used. As with "7bit data" CR and LF octets only occur as part + of CRLF line separation sequences and no NULs are allowed. + + +=head2 How decoding is done + +The B does a line-by-line pass-through from input to output, +leaving the data unchanged I that an end-of-line sequence of +CRLF is converted to a newline "\n". Given the line-oriented nature +of 7bit and 8bit, this seems relatively sensible. + + +=head2 How encoding is done + +The B does a line-by-line pass-through from input to output, +and simply attempts to I violations of the C<7bit>/C<8bit> +domain. The default action is to warn once per encoding if violations +are detected; the warnings may be silenced with the QUIET configuration +of L. + +=head1 SEE ALSO + +L + + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + +use vars qw(@ISA $VERSION); + +use MIME::Decoder; +use MIME::Tools qw(:msgs); + +@ISA = qw(MIME::Decoder); + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### How many bytes to decode at a time? +my $DecodeChunkLength = 8 * 1024; + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + my $and_also; + + ### Allocate a buffer suitable for a chunk and a line: + local $_ = (' ' x ($DecodeChunkLength + 1024)); $_ = ''; + + ### Get chunks until done: + while ($in->read($_, $DecodeChunkLength)) { + $and_also = $in->getline; + $_ .= $and_also if defined($and_also); + + ### Just got a chunk ending in a line. + s/\015\012$/\n/g; + $out->print($_); + } + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + my $saw_8bit = 0; ### warn them ONCE PER ENCODING if 8-bit data exists + my $saw_long = 0; ### warn them ONCE PER ENCODING if long lines exist + my $seven_bit = ($self->encoding eq '7bit'); ### 7bit? + + my $line; + while (defined($line = $in->getline)) { + + ### Whine if encoding is 7bit and it has 8-bit data: + if ($seven_bit && ($line =~ /[\200-\377]/)) { ### oops! saw 8-bit data! + whine "saw 8-bit data while encoding 7bit" unless $saw_8bit++; + } + + ### Whine if long lines detected: + if (length($line) > 998) { + whine "saw long line while encoding 7bit/8bit" unless $saw_long++; + } + + ### Output! + $out->print($line); + } + 1; +} + +1; + + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/QuotedPrint.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/QuotedPrint.pm new file mode 100644 index 0000000000000000000000000000000000000000..52fd7ced19dc9b4714481e3f6826081a5b85af7a --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/QuotedPrint.pm @@ -0,0 +1,160 @@ +package MIME::Decoder::QuotedPrint; +use strict; +use warnings; +use version; + +=head1 NAME + +MIME::Decoder::QuotedPrint - encode/decode a "quoted-printable" stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + + +=head1 DESCRIPTION + +A MIME::Decoder subclass for the C<"quoted-printable"> encoding. +The name was chosen to jibe with the pre-existing MIME::QuotedPrint +utility package, which this class actually uses to translate each line. + +=over 4 + +=item * + +The B does a line-by-line translation from input to output. + +=item * + +The B does a line-by-line translation, breaking lines +so that they fall under the standard 76-character limit for this +encoding. + +=back + + +B just like MIME::QuotedPrint, we currently use the +native C<"\n"> for line breaks, and not C. This may +need to change in future versions. + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + +use vars qw(@ISA $VERSION); +use MIME::Decoder; +use MIME::QuotedPrint; + +@ISA = qw(MIME::Decoder); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +#------------------------------ +# If we have MIME::QuotedPrint 3.03 or later, use the three-argument +# version. If we have an earlier version of MIME::QuotedPrint, we +# may get the wrong results. However, on some systems (RH Linux, +# for example), MIME::QuotedPrint is part of the Perl package and +# upgrading it separately breaks their magic auto-update tools. +# We are supporting older versions of MIME::QuotedPrint even though +# they may give incorrect results simply because it's too painful +# for many people to upgrade. + +# The following code is horrible. I know. Beat me up. --dfs +BEGIN { + if (!defined(&encode_qp_threearg)) { + my $ver = version->parse($::MIME::QuotedPrint::VERSION); + if ($ver >= version->parse(3.03)) { + eval 'sub encode_qp_threearg ( $$$ ) { encode_qp(shift, shift, shift); }'; + } else { + eval 'sub encode_qp_threearg ( $$$ ) { encode_qp(shift); }'; + } + } +} + +#------------------------------ +# +# encode_qp_really STRING TEXTUAL_TYPE_FLAG +# +# Encode QP, and then follow guideline 8 from RFC 2049 (thanks to Denis +# N. Antonioli) whereby we make things a little safer for the transport +# and storage of messages. WARNING: we can only do this if the line won't +# grow beyond 76 characters! +# +sub encode_qp_really { + my $enc = encode_qp_threearg(shift, undef, not shift); + if (length($enc) < 74) { + $enc =~ s/^\.\n/=2E\n/g; # force encoding of /^\.$/ + $enc =~ s/^From /=46rom /g; # force encoding of /^From / + } + $enc; +} + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + my $init = 0; + my $badpdf = 0; + + local $_; + while (defined($_ = $in->getline)) { + # + # Dirty hack to fix QP-Encoded PDFs from MS-Outlook. + # + # Check if we have a PDF file and if it has been encoded + # on Windows. Unix encoded files are fine. If we have + # one encoded CR after the PDF init string but are missing + # an encoded CR before the newline this means the PDF is broken. + # + if (!$init) { + $init = 1; + if ($_ =~ /^%PDF-[0-9\.]+=0D/ && $_ !~ /=0D\n$/) { + $badpdf = 1; + } + } + # + # Decode everything with decode_qp() except corrupted PDFs. + # + if ($badpdf) { + my $output = $_; + $output =~ s/[ \t]+?(\r?\n)/$1/g; + $output =~ s/=\r?\n//g; + $output =~ s/(^|[^\r])\n\Z/$1\r\n/; + $output =~ s/=([\da-fA-F]{2})/pack("C", hex($1))/ge; + $out->print($output); + } else { + $out->print(decode_qp($_)); + } + } + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out, $textual_type) = @_; + + local $_; + while (defined($_ = $in->getline)) { + $out->print(encode_qp_really($_, $textual_type)); + } + 1; +} + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Decoder/UU.pm b/git/usr/share/perl5/vendor_perl/MIME/Decoder/UU.pm new file mode 100644 index 0000000000000000000000000000000000000000..f9284bf5bf67e83557c5e6ea65279cd0e623bd55 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Decoder/UU.pm @@ -0,0 +1,151 @@ +package MIME::Decoder::UU; +use strict; +use warnings; + +=head1 NAME + +MIME::Decoder::UU - decode a "uuencoded" stream + + +=head1 SYNOPSIS + +A generic decoder object; see L for usage. + +Also supports a preamble() method to recover text before +the uuencoded portion of the stream. + + +=head1 DESCRIPTION + +A MIME::Decoder subclass for a nonstandard encoding whereby +data are uuencoded. Common non-standard MIME encodings for this: + + x-uu + x-uuencode + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +UU-decoding code lifted from "uuexplode", a Perl script by an +unknown author... + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut + + +require 5.002; +use vars qw(@ISA $VERSION); +use MIME::Decoder; +use MIME::Tools qw(whine); + +@ISA = qw(MIME::Decoder); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + + +#------------------------------ +# +# decode_it IN, OUT +# +sub decode_it { + my ($self, $in, $out) = @_; + my ($mode, $file); + my @preamble; + + ### Init: + $self->{MDU_Preamble} = \@preamble; + $self->{MDU_Mode} = undef; + $self->{MDU_File} = undef; + + ### Find beginning... + local $_; + while (defined($_ = $in->getline)) { + if (/^begin(.*)/) { ### found it: now decode it... + my $modefile = $1; + if ($modefile =~ /^(\s+(\d+))?(\s+(.*?\S))?\s*\Z/) { + ($mode, $file) = ($2, $4); + } + last; ### decoded or not, we're done + } + push @preamble, $_; + } + die("uu decoding: no begin found\n") if !defined($_); # hit eof! + + ### Store info: + $self->{MDU_Mode} = $mode; + $self->{MDU_File} = $file; + + ### Decode: + while (defined($_ = $in->getline)) { + last if /^end/; + next if /[a-z]/; + next unless int((((ord() - 32) & 077) + 2) / 3) == int(length() / 4); + $out->print(unpack('u', $_)); + } + ### chmod oct($mode), $file; # sheeyeah... right... + whine "file incomplete, no end found\n" if !defined($_); # eof + 1; +} + +#------------------------------ +# +# encode_it IN, OUT +# +sub encode_it { + my ($self, $in, $out) = @_; + my $buf = ''; + + my $fname = (($self->head && + $self->head->mime_attr('content-disposition.filename')) || + ''); + my $nl = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + $out->print("begin 644 $fname$nl"); + while ($in->read($buf, 45)) { $out->print(pack('u', $buf)) } + $out->print("end$nl"); + 1; +} + +#------------------------------ +# +# last_preamble +# +# Return the last preamble as ref to array of lines. +# Gets reset by decode_it(). +# +sub last_preamble { + my $self = shift; + return $self->{MDU_Preamble} || []; +} + +#------------------------------ +# +# last_mode +# +# Return the last mode. +# Gets reset to undef by decode_it(). +# +sub last_mode { + shift->{MDU_Mode}; +} + +#------------------------------ +# +# last_filename +# +# Return the last filename. +# Gets reset by decode_it(). +# +sub last_filename { + shift->{MDU_File} || []; +} + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Entity.pm b/git/usr/share/perl5/vendor_perl/MIME/Entity.pm new file mode 100644 index 0000000000000000000000000000000000000000..865f9971c38b67577b40c3b384432c620390e4ab --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Entity.pm @@ -0,0 +1,2307 @@ +package MIME::Entity; + + +=head1 NAME + +MIME::Entity - class for parsed-and-decoded MIME message + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + + ### Create an entity: + $top = MIME::Entity->build(From => 'me@myhost.com', + To => 'you@yourhost.com', + Subject => "Hello, nurse!", + Data => \@my_message); + + ### Attach stuff to it: + $top->attach(Path => $gif_path, + Type => "image/gif", + Encoding => "base64"); + + ### Sign it: + $top->sign; + + ### Output it: + $top->print(\*STDOUT); + + +=head1 DESCRIPTION + +A subclass of B. + +This package provides a class for representing MIME message entities, +as specified in RFCs 2045, 2046, 2047, 2048 and 2049. + + +=head1 EXAMPLES + +=head2 Construction examples + +Create a document for an ordinary 7-bit ASCII text file (lots of +stuff is defaulted for us): + + $ent = MIME::Entity->build(Path=>"english-msg.txt"); + +Create a document for a text file with 8-bit (Latin-1) characters: + + $ent = MIME::Entity->build(Path =>"french-msg.txt", + Encoding =>"quoted-printable", + From =>'jean.luc@inria.fr', + Subject =>"C'est bon!"); + +Create a document for a GIF file (the description is completely optional; +note that we have to specify content-type and encoding since they're +not the default values): + + $ent = MIME::Entity->build(Description => "A pretty picture", + Path => "./docs/mime-sm.gif", + Type => "image/gif", + Encoding => "base64"); + +Create a document that you already have the text for, using "Data": + + $ent = MIME::Entity->build(Type => "text/plain", + Encoding => "quoted-printable", + Data => ["First line.\n", + "Second line.\n", + "Last line.\n"]); + +Create a multipart message, with the entire structure given +explicitly: + + ### Create the top-level, and set up the mail headers: + $top = MIME::Entity->build(Type => "multipart/mixed", + From => 'me@myhost.com', + To => 'you@yourhost.com', + Subject => "Hello, nurse!"); + + ### Attachment #1: a simple text document: + $top->attach(Path=>"./testin/short.txt"); + + ### Attachment #2: a GIF file: + $top->attach(Path => "./docs/mime-sm.gif", + Type => "image/gif", + Encoding => "base64"); + + ### Attachment #3: text we'll create with text we have on-hand: + $top->attach(Data => $contents); + +Suppose you don't know ahead of time that you'll have attachments? +No problem: you can "attach" to singleparts as well: + + $top = MIME::Entity->build(From => 'me@myhost.com', + To => 'you@yourhost.com', + Subject => "Hello, nurse!", + Data => \@my_message); + if ($GIF_path) { + $top->attach(Path => $GIF_path, + Type => 'image/gif'); + } + +Copy an entity (headers, parts... everything but external body data): + + my $deepcopy = $top->dup; + + + +=head2 Access examples + + ### Get the head, a MIME::Head: + $head = $ent->head; + + ### Get the body, as a MIME::Body; + $bodyh = $ent->bodyhandle; + + ### Get the intended MIME type (as declared in the header): + $type = $ent->mime_type; + + ### Get the effective MIME type (in case decoding failed): + $eff_type = $ent->effective_type; + + ### Get preamble, parts, and epilogue: + $preamble = $ent->preamble; ### ref to array of lines + $num_parts = $ent->parts; + $first_part = $ent->parts(0); ### an entity + $epilogue = $ent->epilogue; ### ref to array of lines + + +=head2 Manipulation examples + +Muck about with the body data: + + ### Read the (unencoded) body data: + if ($io = $ent->open("r")) { + while (defined($_ = $io->getline)) { print $_ } + $io->close; + } + + ### Write the (unencoded) body data: + if ($io = $ent->open("w")) { + foreach (@lines) { $io->print($_) } + $io->close; + } + + ### Delete the files for any external (on-disk) data: + $ent->purge; + +Muck about with the signature: + + ### Sign it (automatically removes any existing signature): + $top->sign(File=>"$ENV{HOME}/.signature"); + + ### Remove any signature within 15 lines of the end: + $top->remove_sig(15); + +Muck about with the headers: + + ### Compute content-lengths for singleparts based on bodies: + ### (Do this right before you print!) + $entity->sync_headers(Length=>'COMPUTE'); + +Muck about with the structure: + + ### If a 0- or 1-part multipart, collapse to a singlepart: + $top->make_singlepart; + + ### If a singlepart, inflate to a multipart with 1 part: + $top->make_multipart; + +Delete parts: + + ### Delete some parts of a multipart message: + my @keep = grep { keep_part($_) } $msg->parts; + $msg->parts(\@keep); + + +=head2 Output examples + +Print to filehandles: + + ### Print the entire message: + $top->print(\*STDOUT); + + ### Print just the header: + $top->print_header(\*STDOUT); + + ### Print just the (encoded) body... includes parts as well! + $top->print_body(\*STDOUT); + +Stringify... note that C can also be written C; +the methods are synonymous, and neither form will be deprecated. + +If you set the variable $MIME::Entity::BOUNDARY_DELIMITER to a string, +that string will be used as the line-end delimiter on output. If it is not set, +the line ending will be a newline character (\n) + +NOTE that $MIME::Entity::BOUNDARY_DELIMITER only applies to structural +parts of the MIME data generated by this package and to the Base64 +encoded output; if a part internally uses a different line-end +delimiter and is output as-is, the line-ending is not changed to match +$MIME::Entity::BOUNDARY_DELIMITER. + + ### Stringify the entire message: + print $top->stringify; ### or $top->as_string + + ### Stringify just the header: + print $top->stringify_header; ### or $top->header_as_string + + ### Stringify just the (encoded) body... includes parts as well! + print $top->stringify_body; ### or $top->body_as_string + +Debug: + + ### Output debugging info: + $entity->dump_skeleton(\*STDERR); + + + +=head1 PUBLIC INTERFACE + +=cut + +#------------------------------ + +### Pragmas: +use vars qw(@ISA $VERSION); +use strict; + +### System modules: +use Carp; + +### Other modules: +use Mail::Internet 1.28 (); +use Mail::Field 1.05 (); + +### Kit modules: +use MIME::Tools qw(:config :msgs :utils); +use MIME::Head; +use MIME::Body; +use MIME::Decoder; + +@ISA = qw(Mail::Internet); + + +#------------------------------ +# +# Globals... +# +#------------------------------ + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### Boundary counter: +my $BCount = 0; + +### Standard "Content-" MIME fields, for scrub(): +my $StandardFields = 'Description|Disposition|Id|Type|Transfer-Encoding'; + +### Known Mail/MIME fields... these, plus some general forms like +### "x-*", are recognized by build(): +my %KnownField = map {$_=>1} +qw( + bcc cc comments date encrypted + from keywords message-id mime-version organization + received references reply-to return-path sender + subject to + ); + +### Fallback preamble and epilogue: +my $DefPreamble = [ "This is a multi-part message in MIME format..." ]; +my $DefEpilogue = [ ]; + +#============================== +# +# Utilities, private +# + +#------------------------------ +# +# known_field FIELDNAME +# +# Is this a recognized Mail/MIME field? +# +sub known_field { + my $field = lc(shift); + $KnownField{$field} or ($field =~ m{^(content|resent|x)-.}); +} + +#------------------------------ +# +# make_boundary +# +# Return a unique boundary string. +# This is used both internally and by MIME::ParserBase, but it is NOT in +# the public interface! Do not use it! +# +# We generate one containing a "=_", as RFC2045 suggests: +# A good strategy is to choose a boundary that includes a character +# sequence such as "=_" which can never appear in a quoted-printable +# body. See the definition of multipart messages in RFC 2046. +# +sub make_boundary { + return "----------=_".scalar(time)."-$$-".$BCount++; +} + + + + + + +#============================== + +=head2 Construction + +=over 4 + +=cut + + +#------------------------------ + +=item new [SOURCE] + +I +Create a new, empty MIME entity. +Basically, this uses the Mail::Internet constructor... + +If SOURCE is an ARRAYREF, it is assumed to be an array of lines +that will be used to create both the header and an in-core body. + +Else, if SOURCE is defined, it is assumed to be a filehandle +from which the header and in-core body is to be read. + +B in either case, the body will not be I merely read! + +=cut + +sub new { + my $class = shift; + my $self = $class->Mail::Internet::new(@_); ### inherited + $self->{ME_Parts} = []; ### no parts extracted + $self; +} + +=item ambiguous_content + +I + +Returns true if this entity I has +a C that indicates ambiguous content. + +Note carefully the difference between: + + $entity->head->ambiguous_content(); + +and + + $entity->ambiguous_content(); + +The first returns true only if this specific entity's headers indicate +ambiguity. The second returns true if this entity +I has headers that indicate ambiguity. + +=cut +sub ambiguous_content { + my ($self) = @_; + + return 1 if $self->head->ambiguous_content; + return 0 unless $self->is_multipart; + + foreach my $part ($self->parts) { + return 1 if $part->ambiguous_content; + } + return 0; +} + +###------------------------------ + +=item add_part ENTITY, [OFFSET] + +I +Assuming we are a multipart message, add a body part (a MIME::Entity) +to the array of body parts. Returns the part that was just added. + +If OFFSET is positive, the new part is added at that offset from the +beginning of the array of parts. If it is negative, it counts from +the end of the array. (An INDEX of -1 will place the new part at the +very end of the array, -2 will place it as the penultimate item in the +array, etc.) If OFFSET is not given, the new part is added to the end +of the array. +I + +B in general, you only want to attach parts to entities +with a content-type of C). + +=cut + +sub add_part { + my ($self, $part, $index) = @_; + defined($index) or $index = -1; + + ### Make $index count from the end if negative: + $index = $#{$self->{ME_Parts}} + 2 + $index if ($index < 0); + splice(@{$self->{ME_Parts}}, $index, 0, $part); + $part; +} + +#------------------------------ + +=item attach PARAMHASH + +I +The real quick-and-easy way to create multipart messages. +The PARAMHASH is used to C a new entity; this method is +basically equivalent to: + + $entity->add_part(ref($entity)->build(PARAMHASH, Top=>0)); + +B normally, you attach to multipart entities; however, if you +attach something to a singlepart (like attaching a GIF to a text +message), the singlepart will be coerced into a multipart automatically. + +=cut + +sub attach { + my $self = shift; + $self->make_multipart; + $self->add_part(ref($self)->build(@_, Top=>0)); +} + +#------------------------------ + +=item build PARAMHASH + +I +A quick-and-easy catch-all way to create an entity. Use it like this +to build a "normal" single-part entity: + + $ent = MIME::Entity->build(Type => "image/gif", + Encoding => "base64", + Path => "/path/to/xyz12345.gif", + Filename => "saveme.gif", + Disposition => "attachment"); + +And like this to build a "multipart" entity: + + $ent = MIME::Entity->build(Type => "multipart/mixed", + Boundary => "---1234567"); + +A minimal MIME header will be created. If you want to add or modify +any header fields afterwards, you can of course do so via the underlying +head object... but hey, there's now a prettier syntax! + + $ent = MIME::Entity->build(Type =>"multipart/mixed", + From => $myaddr, + Subject => "Hi!", + 'X-Certified' => ['SINED', + 'SEELED', + 'DELIVERED']); + +Normally, an C header field is output which contains this +toolkit's name and version (plus this module's RCS version). +This will allow any bad MIME we generate to be traced back to us. +You can of course overwrite that header with your own: + + $ent = MIME::Entity->build(Type => "multipart/mixed", + 'X-Mailer' => "myprog 1.1"); + +Or remove it entirely: + + $ent = MIME::Entity->build(Type => "multipart/mixed", + 'X-Mailer' => undef); + +OK, enough hype. The parameters are: + +=over 4 + +=item (FIELDNAME) + +Any field you want placed in the message header, taken from the +standard list of header fields (you don't need to worry about case): + + Bcc Encrypted Received Sender + Cc From References Subject + Comments Keywords Reply-To To + Content-* Message-ID Resent-* X-* + Date MIME-Version Return-Path + Organization + +To give experienced users some veto power, these fields will be set +I the ones I set... so be careful: I +(like C) unless you know what you're doing! + +To specify a fieldname that's I in the above list, even one that's +identical to an option below, just give it with a trailing C<":">, +like C<"My-field:">. When in doubt, that I signals a mail +field (and it sort of looks like one too). + +=item Boundary + +I +The boundary string. As per RFC-2046, it must consist only +of the characters C<[0-9a-zA-Z'()+_,-./:=?]> and space (you'll be +warned, and your boundary will be ignored, if this is not the case). +If you omit this, a random string will be chosen... which is probably +safer. + +=item Charset + +I +The character set. + +=item Data + +I +An alternative to Path (q.v.): the actual data, either as a scalar +or an array reference (whose elements are joined together to make +the actual scalar). The body is opened on the data using +MIME::Body::InCore. + +Note that for text parts, the Data scalar or array is assumed to be +encoded in a suitable character encoding (as if by C) +rather than a native Perl string. The encoding you use must, of +course, match the C option of the C header. + +=item Description + +I +The text of the content-description. +If you don't specify it, the field is not put in the header. + +=item Disposition + +I +The basic content-disposition (C<"attachment"> or C<"inline">). +If you don't specify it, it defaults to "inline" for backwards +compatibility. I + +=item Encoding + +I +The content-transfer-encoding. +If you don't specify it, a reasonable default is put in. +You can also give the special value '-SUGGEST', to have it chosen for +you in a heavy-duty fashion which scans the data itself. + +=item Filename + +I +The recommended filename. Overrides any name extracted from C. +The information is stored both the deprecated (content-type) and +preferred (content-disposition) locations. If you explicitly want to +I a recommended filename (even when Path is used), supply this +as empty or undef. + +=item Id + +I +Set the content-id. + +=item Path + +I +The path to the file to attach. The body is opened on that file +using MIME::Body::File. + +=item Top + +I +Is this a top-level entity? If so, it must sport a MIME-Version. +The default is true. (NB: look at how C uses it.) + +=item Type + +I +The basic content-type (C<"text/plain">, etc.). +If you don't specify it, it defaults to C<"text/plain"> +as per RFC 2045. I + +=back + +=cut + +sub build { + my ($self, @paramlist) = @_; + my %params = @paramlist; + my ($field, $filename, $boundary); + + ### Create a new entity, if needed: + ref($self) or $self = $self->new; + + + ### GET INFO... + + ### Get sundry field: + my $type = $params{Type} || 'text/plain'; + my $charset = $params{Charset}; + my $is_multipart = ($type =~ m{^multipart/}i); + my $encoding = $params{Encoding} || ''; + my $desc = $params{Description}; + my $top = exists($params{Top}) ? $params{Top} : 1; + my $disposition = $params{Disposition} || 'inline'; + my $id = $params{Id}; + + ### Get recommended filename, allowing explicit no-value value: + my ($path_fname) = (($params{Path}||'') =~ m{([^/]+)\Z}); + $filename = (exists($params{Filename}) ? $params{Filename} : $path_fname); + $filename = undef if (defined($filename) and $filename eq ''); + + ### Type-check sanity: + if ($type =~ m{^(multipart/|message/(rfc822|partial|external-body|delivery-status|disposition-notification|feedback-report)$)}i) { + ($encoding =~ /^(|7bit|8bit|binary|-suggest)$/i) + or croak "can't have encoding $encoding for message type $type!"; + } + + ### Multipart or not? Do sanity check and fixup: + if ($is_multipart) { ### multipart... + + ### Get any supplied boundary, and check it: + if (defined($boundary = $params{Boundary})) { ### they gave us one... + if ($boundary eq '') { + whine "empty string not a legal boundary: I'm ignoring it"; + $boundary = undef; + } + elsif ($boundary =~ m{[^0-9a-zA-Z_\'\(\)\+\,\.\/\:\=\?\- ]}) { + whine "boundary ignored: illegal characters ($boundary)"; + $boundary = undef; + } + } + + ### If we have to roll our own boundary, do so: + defined($boundary) or $boundary = make_boundary(); + } + else { ### single part... + ### Create body: + if ($params{Path}) { + $self->bodyhandle(new MIME::Body::File $params{Path}); + } + elsif (defined($params{Data})) { + $self->bodyhandle(new MIME::Body::InCore $params{Data}); + } + else { + die "can't build entity: no body, and not multipart\n"; + } + + ### Check whether we need to binmode(): [Steve Kilbane] + $self->bodyhandle->binmode(1) unless textual_type($type); + } + + + ### MAKE HEAD... + + ### Create head: + my $head = new MIME::Head; + $self->head($head); + $head->modify(1); + + ### Add content-type field: + $field = new Mail::Field 'Content_type'; ### not a typo :-( + $field->type($type); + $field->charset($charset) if $charset; + $field->name($filename) if defined($filename); + $field->boundary($boundary) if defined($boundary); + $head->replace('Content-type', $field->stringify); + + ### Now that both body and content-type are available, we can suggest + ### content-transfer-encoding (if desired); + if (!$encoding) { + $encoding = $self->suggest_encoding_lite; + } + elsif (lc($encoding) eq '-suggest') { + $encoding = $self->suggest_encoding; + } + + ### Add content-disposition field (if not multipart): + unless ($is_multipart) { + $field = new Mail::Field 'Content_disposition'; ### not a typo :-( + $field->type($disposition); + $field->filename($filename) if defined($filename); + $head->replace('Content-disposition', $field->stringify); + } + + ### Add other MIME fields: + $head->replace('Content-transfer-encoding', $encoding) if $encoding; + $head->replace('Content-description', $desc) if $desc; + + # Content-Id value should be surrounded by < >, but versions before 5.428 + # did not do this. So, we check, and add if the caller has not done so + # already. + if( defined $id ) { + if( $id !~ /^<.*>$/ ) { + $id = "<$id>"; + } + $head->replace('Content-id', $id); + } + $head->replace('MIME-Version', '1.0') if $top; + + ### Add the X-Mailer field, if top level (use default value if not given): + $top and $head->replace('X-Mailer', + "MIME-tools ".(MIME::Tools->version). + " (Entity " .($VERSION).")"); + + ### Add remaining user-specified fields, if any: + while (@paramlist) { + my ($tag, $value) = (shift @paramlist, shift @paramlist); + + ### Get fieldname, if that's what it is: + if ($tag =~ /^-(.*)/s) { $tag = lc($1) } ### old style, b.c. + elsif ($tag =~ /(.*):$/s ) { $tag = lc($1) } ### new style + elsif (known_field(lc($tag))) { 1 } ### known field + else { next; } ### not a field + + ### Clear head, get list of values, and add them: + $head->delete($tag); + foreach $value (ref($value) ? @$value : ($value)) { + (defined($value) && ($value ne '')) or next; + $head->add($tag, $value); + } + } + + ### Done! + $self; +} + +#------------------------------ + +=item dup + +I +Duplicate the entity. Does a deep, recursive copy, I +external data in bodyhandles is I copied to new files! +Changing the data in one entity's data file, or purging that entity, +I affect its duplicate. Entities with in-core data probably need +not worry. + +=cut + +sub dup { + my $self = shift; + local($_); + + ### Self (this will also dup the header): + my $dup = bless $self->SUPER::dup(), ref($self); + + ### Any simple inst vars: + foreach (keys %$self) {$dup->{$_} = $self->{$_} unless ref($self->{$_})}; + + ### Bodyhandle: + $dup->bodyhandle($self->bodyhandle ? $self->bodyhandle->dup : undef); + + ### Preamble and epilogue: + foreach (qw(ME_Preamble ME_Epilogue)) { + $dup->{$_} = [@{$self->{$_}}] if $self->{$_}; + } + + ### Parts: + $dup->{ME_Parts} = []; + foreach (@{$self->{ME_Parts}}) { push @{$dup->{ME_Parts}}, $_->dup } + + ### Done! + $dup; +} + +=back + +=cut + + + + + +#============================== + +=head2 Access + +=over 4 + +=cut + + +#------------------------------ + +=item body [VALUE] + +I +Get the I (transport-ready) body, as an array of lines. +Returns an array reference. Each array entry is a newline-terminated +line. + +This is a read-only data structure: changing its contents will have +no effect. Its contents are identical to what is printed by +L. + +Provided for compatibility with Mail::Internet, so that methods +like C will work. Note however that if VALUE is given, +a fatal exception is thrown, since you cannot use this method to +I the lines of the encoded message. + +If you want the raw (unencoded) body data, use the L +method to get and use a MIME::Body. The content-type of the entity +will tell you whether that body is best read as text (via getline()) +or raw data (via read()). + +=cut + +sub body { + my ($self, $value) = @_; + my $boundary_delimiter = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + if (@_ > 1) { ### setting body line(s)... + croak "you cannot use body() to set the encoded contents\n"; + } else { + my $output = ''; + my $fh = IO::File->new(\$output, '>:') or croak("Cannot open in-memory file: $!"); + $self->print_body($fh); + close($fh); + my @ary = split(/\n/, $output); + # Each line needs the terminating newline + @ary = map { "$_$boundary_delimiter" } @ary; + + return \@ary; + } +} + +#------------------------------ + +=item bodyhandle [VALUE] + +I +Get or set an abstract object representing the body of the message. +The body holds the decoded message data. + +B +An entity will have either a body or parts: not both. +This method will I return an object if this entity can +have a body; otherwise, it will return undefined. +Whether-or-not a given entity can have a body is determined by +(1) its content type, and (2) whether-or-not the parser was told to +extract nested messages: + + Type: | Extract nested? | bodyhandle() | parts() + ----------------------------------------------------------------------- + multipart/* | - | undef | 0 or more MIME::Entity + message/* | true | undef | 0 or 1 MIME::Entity + message/* | false | MIME::Body | empty list + (other) | - | MIME::Body | empty list + +If C I given, the current bodyhandle is returned, +or undef if the entity cannot have a body. + +If C I given, the bodyhandle is set to the new value, +and the previous value is returned. + +See L for more info. + +=cut + +sub bodyhandle { + my ($self, $newvalue) = @_; + my $value = $self->{ME_Bodyhandle}; + $self->{ME_Bodyhandle} = $newvalue if (@_ > 1); + $value; +} + +#------------------------------ + +=item effective_type [MIMETYPE] + +I +Set/get the I MIME type of this entity. This is I +identical to the actual (or defaulted) MIME type, but in some cases +it differs. For example, from RFC-2045: + + Any entity with an unrecognized Content-Transfer-Encoding must be + treated as if it has a Content-Type of "application/octet-stream", + regardless of what the Content-Type header field actually says. + +Why? because if we can't decode the message, then we have to take +the bytes as-is, in their (unrecognized) encoded form. So the +message ceases to be a "text/foobar" and becomes a bunch of undecipherable +bytes -- in other words, an "application/octet-stream". + +Such an entity, if parsed, would have its effective_type() set to +C<"application/octet_stream">, although the mime_type() and the contents +of the header would remain the same. + +If there is no effective type, the method just returns what +mime_type() would. + +B the effective type is "sticky"; once set, that effective_type() +will always be returned even if the conditions that necessitated setting +the effective type become no longer true. + +=cut + +sub effective_type { + my $self = shift; + $self->{ME_EffType} = shift if @_; + return ($self->{ME_EffType} ? lc($self->{ME_EffType}) : $self->mime_type); +} + + +#------------------------------ + +=item epilogue [LINES] + +I +Get/set the text of the epilogue, as an array of newline-terminated LINES. +Returns a reference to the array of lines, or undef if no epilogue exists. + +If there is a epilogue, it is output when printing this entity; otherwise, +a default epilogue is used. Setting the epilogue to undef (not []!) causes +it to fallback to the default. + +=cut + +sub epilogue { + my ($self, $lines) = @_; + $self->{ME_Epilogue} = $lines if @_ > 1; + $self->{ME_Epilogue}; +} + +#------------------------------ + +=item head [VALUE] + +I +Get/set the head. + +If there is no VALUE given, returns the current head. If none +exists, an empty instance of MIME::Head is created, set, and returned. + +B This is a patch over a problem in Mail::Internet, which doesn't +provide a method for setting the head to some given object. + +=cut + +sub head { + my ($self, $value) = @_; + (@_ > 1) and $self->{'mail_inet_head'} = $value; + $self->{'mail_inet_head'} ||= new MIME::Head; ### KLUDGE! +} + +#------------------------------ + +=item is_multipart + +I +Does this entity's effective MIME type indicate that it's a multipart entity? +Returns undef (false) if the answer couldn't be determined, 0 (false) +if it was determined to be false, and true otherwise. +Note that this says nothing about whether or not parts were extracted. + +NOTE: we switched to effective_type so that multiparts with +bad or missing boundaries could be coerced to an effective type +of C. + + +=cut + +sub is_multipart { + my $self = shift; + $self->head or return undef; ### no head, so no MIME type! + my ($type, $subtype) = split('/', $self->effective_type); + (($type eq 'multipart') ? 1 : 0); +} + +#------------------------------ + +=item mime_type + +I +A purely-for-convenience method. This simply relays the request to the +associated MIME::Head object. +If there is no head, returns undef in a scalar context and +the empty array in a list context. + +B consider using effective_type() instead, +especially if you obtained the entity from a MIME::Parser. + +=cut + +sub mime_type { + my $self = shift; + $self->head or return (wantarray ? () : undef); + $self->head->mime_type; +} + +#------------------------------ + +=item open READWRITE + +I +A purely-for-convenience method. This simply relays the request to the +associated MIME::Body object (see MIME::Body::open()). +READWRITE is either 'r' (open for read) or 'w' (open for write). + +If there is no body, returns false. + +=cut + +sub open { + my $self = shift; + $self->bodyhandle and $self->bodyhandle->open(@_); +} + +#------------------------------ + +=item parts + +=item parts INDEX + +=item parts ARRAYREF + +I +Return the MIME::Entity objects which are the sub parts of this +entity (if any). + +I returns the array of all sub parts, +returning the empty array if there are none (e.g., if this is a single +part message, or a degenerate multipart). In a scalar context, this +returns you the number of parts. + +I return the INDEXed part, +or undef if it doesn't exist. + +I then this method I +the parts to a copy of that array, and returns the parts. This can +be used to delete parts, as follows: + + ### Delete some parts of a multipart message: + $msg->parts([ grep { keep_part($_) } $msg->parts ]); + + +B for multipart messages, the preamble and epilogue are I +considered parts. If you need them, use the C and C +methods. + +B there are ways of parsing with a MIME::Parser which cause +certain message parts (such as those of type C) +to be "reparsed" into pseudo-multipart entities. You should read the +documentation for those options carefully: it I possible for +a diddled entity to not be multipart, but still have parts attached to it! + +See L for a discussion of parts vs. bodies. + +=cut + +sub parts { + my $self = shift; + ref($_[0]) and return @{$self->{ME_Parts} = [@{$_[0]}]}; ### set the parts + (@_ ? $self->{ME_Parts}[$_[0]] : @{$self->{ME_Parts}}); +} + +#------------------------------ + +=item parts_DFS + +I +Return the list of all MIME::Entity objects included in the entity, +starting with the entity itself, in depth-first-search order. +If the entity has no parts, it alone will be returned. + +I + +=cut + +sub parts_DFS { + my $self = shift; + return ($self, map { $_->parts_DFS } $self->parts); +} + +#------------------------------ + +=item preamble [LINES] + +I +Get/set the text of the preamble, as an array of newline-terminated LINES. +Returns a reference to the array of lines, or undef if no preamble exists +(e.g., if this is a single-part entity). + +If there is a preamble, it is output when printing this entity; otherwise, +a default preamble is used. Setting the preamble to undef (not []!) causes +it to fallback to the default. + +=cut + +sub preamble { + my ($self, $lines) = @_; + $self->{ME_Preamble} = $lines if @_ > 1; + $self->{ME_Preamble}; +} + + + + + +=back + +=cut + + + + +#============================== + +=head2 Manipulation + +=over 4 + +=cut + +#------------------------------ + +=item make_multipart [SUBTYPE], OPTSHASH... + +I +Force the entity to be a multipart, if it isn't already. +We do this by replacing the original [singlepart] entity with a new +multipart that has the same non-MIME headers ("From", "Subject", etc.), +but all-new MIME headers ("Content-type", etc.). We then create +a copy of the original singlepart, I the non-MIME headers +from that, and make it a part of the new multipart. So this: + + From: me + To: you + Content-type: text/plain + Content-length: 12 + + Hello there! + +Becomes something like this: + + From: me + To: you + Content-type: multipart/mixed; boundary="----abc----" + + ------abc---- + Content-type: text/plain + Content-length: 12 + + Hello there! + ------abc------ + +The actual type of the new top-level multipart will be "multipart/SUBTYPE" +(default SUBTYPE is "mixed"). + +Returns 'DONE' if we really did inflate a singlepart to a multipart. +Returns 'ALREADY' (and does nothing) if entity is I multipart +and Force was not chosen. + +If OPTSHASH contains Force=>1, then we I bump the top-level's +content and content-headers down to a subpart of this entity, even if +this entity is already a multipart. This is apparently of use to +people who are tweaking messages after parsing them. + +=cut + +sub make_multipart { + my ($self, $subtype, %opts) = @_; + my $tag; + $subtype ||= 'mixed'; + my $force = $opts{Force}; + + ### Trap for simple case: already a multipart? + return 'ALREADY' if ($self->is_multipart and !$force); + + ### Rip out our guts, and spew them into our future part: + my $part = bless {%$self}, ref($self); ### part is a shallow copy + %$self = (); ### lobotomize ourselves! + $self->head($part->head->dup); ### dup the header + + ### Remove content headers from top-level, and set it up as a multipart: + foreach $tag (grep {/^content-/i} $self->head->tags) { + $self->head->delete($tag); + } + $self->head->mime_attr('Content-type' => "multipart/$subtype"); + $self->head->mime_attr('Content-type.boundary' => make_boundary()); + + ### Remove NON-content headers from the part: + foreach $tag (grep {!/^content-/i} $part->head->tags) { + $part->head->delete($tag); + } + + ### Add the [sole] part: + $self->{ME_Parts} = []; + $self->add_part($part); + 'DONE'; +} + +#------------------------------ + +=item make_singlepart + +I +If the entity is a multipart message with one part, this tries hard to +rewrite it as a singlepart, by replacing the content (and content headers) +of the top level with those of the part. Also crunches 0-part multiparts +into singleparts. + +Returns 'DONE' if we really did collapse a multipart to a singlepart. +Returns 'ALREADY' (and does nothing) if entity is already a singlepart. +Returns '0' (and does nothing) if it can't be made into a singlepart. + +=cut + +sub make_singlepart { + my $self = shift; + + ### Trap for simple cases: + return 'ALREADY' if !$self->is_multipart; ### already a singlepart? + return '0' if ($self->parts > 1); ### can this even be done? + + # Get rid of all our existing content info + my $tag; + foreach $tag (grep {/^content-/i} $self->head->tags) { + $self->head->delete($tag); + } + + if ($self->parts == 1) { ### one part + my $part = $self->parts(0); + + ### Populate ourselves with any content info from the part: + foreach $tag (grep {/^content-/i} $part->head->tags) { + foreach ($part->head->get($tag)) { $self->head->add($tag, $_) } + } + + ### Save reconstructed header, replace our guts, and restore header: + my $new_head = $self->head; + %$self = %$part; ### shallow copy is ok! + $self->head($new_head); + + ### One more thing: the part *may* have been a multi with 0 or 1 parts! + return $self->make_singlepart(@_) if $self->is_multipart; + } + else { ### no parts! + $self->head->mime_attr('Content-type'=>'text/plain'); ### simple + } + 'DONE'; +} + +#------------------------------ + +=item purge + +I +Recursively purge (e.g., unlink) all external (e.g., on-disk) body parts +in this message. See MIME::Body::purge() for details. + +B this does I delete the directories that those body parts +are contained in; only the actual message data files are deleted. +This is because some parsers may be customized to create intermediate +directories while others are not, and it's impossible for this class +to know what directories are safe to remove. Only your application +program truly knows that. + +B one good way is to +use C, and then do this before parsing +your next message: + + $parser->filer->purge(); + +I wouldn't attempt to read those body files after you do this, for +obvious reasons. As of MIME-tools 4.x, each body's path I undefined +after this operation. I warned you I might do this; truly I did. + +I + +=cut + +sub purge { + my $self = shift; + $self->bodyhandle and $self->bodyhandle->purge; ### purge me + foreach ($self->parts) { $_->purge } ### recurse + 1; +} + +#------------------------------ +# +# _do_remove_sig +# +# Private. Remove a signature within NLINES lines from the end of BODY. +# The signature must be flagged by a line containing only "-- ". + +sub _do_remove_sig { + my ($body, $nlines) = @_; + $nlines ||= 10; + my $i = 0; + + my $line = int(@$body) || return; + while ($i++ < $nlines and $line--) { + if ($body->[$line] =~ /\A--[ \040][\r\n]+\Z/) { + $#{$body} = $line-1; + return; + } + } +} + +#------------------------------ + +=item remove_sig [NLINES] + +I +Attempts to remove a user's signature from the body of a message. + +It does this by looking for a line matching C within the last +C of the message. If found then that line and all lines after +it will be removed. If C is not given, a default value of 10 +will be used. This would be of most use in auto-reply scripts. + +For MIME entity, this method is reasonably cautious: it will only +attempt to un-sign a message with a content-type of C. + +If you send remove_sig() to a multipart entity, it will relay it to +the first part (the others usually being the "attachments"). + +B currently slurps the whole message-part into core as an +array of lines, so you probably don't want to use this on extremely +long messages. + +Returns truth on success, false on error. + +=cut + +sub remove_sig { + my $self = shift; + my $nlines = shift; + + # If multipart, we only attempt to remove the sig from the first + # part. This is usually a good assumption for multipart/mixed, but + # may not always be correct. It is also possibly incorrect on + # multipart/alternative (both may have sigs). + if( $self->is_multipart ) { + my $first_part = $self->parts(0); + if( $first_part ) { + return $first_part->remove_sig(@_); + } + return undef; + } + + ### Refuse non-textual unless forced: + textual_type($self->head->mime_type) + or return error "I won't un-sign a non-text message unless I'm forced"; + + ### Get body data, as an array of newline-terminated lines: + $self->bodyhandle or return undef; + my @body = $self->bodyhandle->as_lines; + + ### Nuke sig: + _do_remove_sig(\@body, $nlines); + + ### Output data back into body: + my $io = $self->bodyhandle->open("w"); + foreach (@body) { $io->print($_) }; ### body data + $io->close; + + ### Done! + 1; +} + +#------------------------------ + +=item sign PARAMHASH + +I +Append a signature to the message. The params are: + +=over 4 + +=item Attach + +Instead of appending the text, add it to the message as an attachment. +The disposition will be C, and the description will indicate +that it is a signature. The default behavior is to append the signature +to the text of the message (or the text of its first part if multipart). +I + +=item File + +Use the contents of this file as the signature. +Fatal error if it can't be read. +I + +=item Force + +Sign it even if the content-type isn't C. Useful for +non-standard types like C, but be careful! +I + +=item Remove + +Normally, we attempt to strip out any existing signature. +If true, this gives us the NLINES parameter of the remove_sig call. +If zero but defined, tells us I to remove any existing signature. +If undefined, removal is done with the default of 10 lines. +I + +=item Signature + +Use this text as the signature. You can supply it as either +a scalar, or as a ref to an array of newline-terminated scalars. +I + +=back + +For MIME messages, this method is reasonably cautious: it will only +attempt to sign a message with a content-type of C, unless +C is specified. + +If you send this message to a multipart entity, it will relay it to +the first part (the others usually being the "attachments"). + +B currently slurps the whole message-part into core as an +array of lines, so you probably don't want to use this on extremely +long messages. + +Returns true on success, false otherwise. + +=cut + +sub sign { + my $self = shift; + my %params = @_; + my $io; + + my $boundary_delimiter = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + ### If multipart and not attaching, try to sign our first part: + if ($self->is_multipart and !$params{Attach}) { + return $self->parts(0)->sign(@_); + } + + ### Get signature: + my $sig; + if (defined($sig = $params{Signature})) { ### scalar or array + $sig = (ref($sig) ? join('', @$sig) : $sig); + } + elsif ($params{File}) { ### file contents + my $fh = IO::File->new( $params{File} ) or croak "can't open $params{File}: $!"; + $sig = join('', $fh->getlines); + $fh->close or croak "can't close $params{File}: $!"; + } + else { + croak "no signature given!"; + } + + ### Add signature to message as appropriate: + if ($params{Attach}) { ### Attach .sig as new part... + return $self->attach(Type => 'text/plain', + Description => 'Signature', + Disposition => 'inline', + Encoding => '-SUGGEST', + Data => $sig); + } + else { ### Add text of .sig to body data... + + ### Refuse non-textual unless forced: + ($self->head->mime_type =~ m{text/}i or $params{Force}) or + return error "I won't sign a non-text message unless I'm forced"; + + ### Get body data, as an array of newline-terminated lines: + $self->bodyhandle or return undef; + my @body = $self->bodyhandle->as_lines; + + ### Nuke any existing sig? + if (!defined($params{Remove}) || ($params{Remove} > 0)) { + _do_remove_sig(\@body, $params{Remove}); + } + + ### Output data back into body, followed by signature: + my $line; + $io = $self->open("w") or croak("open: $!"); + foreach $line (@body) { $io->print($line) }; ### body data + (($body[-1]||'') =~ /\n\Z/) or $io->print($boundary_delimiter); ### ensure final \n + $io->print("-- $boundary_delimiter$sig"); ### separator + sig + $io->close or croak("close: $!"); + return 1; ### done! + } +} + +#------------------------------ + +=item suggest_encoding + +I +Based on the effective content type, return a good suggested encoding. + +C and C types have their bodies scanned line-by-line +for 8-bit characters and long lines; lack of either means that the +message is 7bit-ok. Other types are chosen independent of their body: + + Major type: 7bit ok? Suggested encoding: + ----------------------------------------------------------- + text yes 7bit + text no quoted-printable + message yes 7bit + message no binary + multipart * binary (in case some parts are bad) + image, etc... * base64 + +=cut + +### TO DO: resolve encodings of nested entities (possibly in sync_headers). + +sub suggest_encoding { + my $self = shift; + + my ($type) = split '/', $self->effective_type; + if (($type eq 'text') || ($type eq 'message')) { ### scan message body + $self->bodyhandle || return ($self->parts ? 'binary' : '7bit'); + my ($IO, $unclean); + if ($IO = $self->bodyhandle->open("r")) { + ### Scan message for 7bit-cleanliness + local $_; + while (defined($_ = $IO->getline)) { + last if ($unclean = ((length($_) > 999) or /[\200-\377]/)); + } + + ### Return '7bit' if clean; try and encode if not... + ### Note that encodings are not permitted for messages! + return ($unclean + ? (($type eq 'message') ? 'binary' : 'quoted-printable') + : '7bit'); + } + } + else { + return ($type eq 'multipart') ? 'binary' : 'base64'; + } +} + +sub suggest_encoding_lite { + my $self = shift; + my ($type) = split '/', $self->effective_type; + return (($type =~ /^(text|message|multipart)$/) ? 'binary' : 'base64'); +} + +#------------------------------ + +=item sync_headers OPTIONS + +I +This method does a variety of activities which ensure that +the MIME headers of an entity "tree" are in-synch with the body parts +they describe. It can be as expensive an operation as printing +if it involves pre-encoding the body parts; however, the aim is to +produce fairly clean MIME. B + +The OPTIONS is a hash, which describes what is to be done. + +=over 4 + + +=item Length + +One of the "official unofficial" MIME fields is "Content-Length". +Normally, one doesn't care a whit about this field; however, if +you are preparing output destined for HTTP, you may. The value of +this option dictates what will be done: + +B means to set a C field for every non-multipart +part in the entity, and to blank that field out for every multipart +part in the entity. + +B means that C fields will all +be blanked out. This is fast, painless, and safe. + +B (the default) means to take no action. + + +=item Nonstandard + +Any header field beginning with "Content-" is, according to the RFC, +a MIME field. However, some are non-standard, and may cause problems +with certain MIME readers which interpret them in different ways. + +B means that all such fields will be blanked out. This is +done I the B option (q.v.) is examined and acted upon. + +B (the default) means to take no action. + + +=back + +Returns a true value if everything went okay, a false value otherwise. + +=cut + +sub sync_headers { + my $self = shift; + my $opts = ((int(@_) % 2 == 0) ? {@_} : shift); + my $ENCBODY; ### keep it around until done! + + ### Get options: + my $o_nonstandard = ($opts->{Nonstandard} || 0); + my $o_length = ($opts->{Length} || 0); + + ### Get head: + my $head = $self->head; + + ### What to do with "nonstandard" MIME fields? + if ($o_nonstandard eq 'ERASE') { ### Erase them... + my $tag; + foreach $tag ($head->tags()) { + if (($tag =~ /\AContent-/i) && + ($tag !~ /\AContent-$StandardFields\Z/io)) { + $head->delete($tag); + } + } + } + + ### What to do with the "Content-Length" MIME field? + if ($o_length eq 'COMPUTE') { ### Compute the content length... + my $content_length = ''; + + ### We don't have content-lengths in multiparts... + if ($self->is_multipart) { ### multipart... + $head->delete('Content-length'); + } + else { ### singlepart... + + ### Get the encoded body, if we don't have it already: + unless ($ENCBODY) { + $ENCBODY = tmpopen() || die "can't open tmpfile"; + $self->print_body($ENCBODY); ### write encoded to tmpfile + } + + ### Analyse it: + $ENCBODY->seek(0,2); ### fast-forward + $content_length = $ENCBODY->tell; ### get encoded length + $ENCBODY->seek(0,0); ### rewind + + ### Remember: + $self->head->replace('Content-length', $content_length); + } + } + elsif ($o_length eq 'ERASE') { ### Erase the content-length... + $head->delete('Content-length'); + } + + ### Done with everything for us! + undef($ENCBODY); + + ### Recurse: + my $part; + foreach $part ($self->parts) { $part->sync_headers($opts) or return undef } + 1; +} + +#------------------------------ + +=item tidy_body + +I +Currently unimplemented for MIME messages. Does nothing, returns false. + +=cut + +sub tidy_body { + usage "MIME::Entity::tidy_body currently does nothing"; + 0; +} + +=back + +=cut + + + + + +#============================== + +=head2 Output + +=over 4 + +=cut + +#------------------------------ + +=item dump_skeleton [FILEHANDLE] + +I +Dump the skeleton of the entity to the given FILEHANDLE, or +to the currently-selected one if none given. + +Each entity is output with an appropriate indentation level, +the following selection of attributes: + + Content-type: multipart/mixed + Effective-type: multipart/mixed + Body-file: NONE + Subject: Hey there! + Num-parts: 2 + +This is really just useful for debugging purposes; I make no guarantees +about the consistency of the output format over time. + +=cut + +sub dump_skeleton { + my ($self, $fh, $indent) = @_; + $fh or $fh = select; + defined($indent) or $indent = 0; + my $ind = ' ' x $indent; + my $part; + no strict 'refs'; + + + ### The content type: + print $fh $ind,"Content-type: ", ($self->mime_type||'UNKNOWN'),"\n"; + print $fh $ind,"Effective-type: ", ($self->effective_type||'UNKNOWN'),"\n"; + + ### The name of the file containing the body (if any!): + my $path = ($self->bodyhandle ? $self->bodyhandle->path : undef); + print $fh $ind, "Body-file: ", ($path || 'NONE'), "\n"; + + ### The recommended file name (thanks to Allen Campbell): + my $filename = $self->head->recommended_filename; + print $fh $ind, "Recommended-filename: ", $filename, "\n" if ($filename); + + ### The subject (note: already a newline if 2.x!) + my $subj = $self->head->get('subject',0); + defined($subj) or $subj = ''; + chomp($subj); + print $fh $ind, "Subject: $subj\n" if $subj; + + ### The parts: + my @parts = $self->parts; + print $fh $ind, "Num-parts: ", int(@parts), "\n" if @parts; + print $fh $ind, "--\n"; + foreach $part (@parts) { + $part->dump_skeleton($fh, $indent+1); + } +} + +#------------------------------ + +=item print [OUTSTREAM] + +I +Print the entity to the given OUTSTREAM, or to the currently-selected +filehandle if none given. OUTSTREAM can be a filehandle, or any object +that responds to a print() message. + +The entity is output as a valid MIME stream! This means that the +header is always output first, and the body data (if any) will be +encoded if the header says that it should be. +For example, your output may look like this: + + Subject: Greetings + Content-transfer-encoding: base64 + + SGkgdGhlcmUhCkJ5ZSB0aGVyZSEK + +I +the preamble, parts, and epilogue are all output with appropriate +boundaries separating each. +Any bodyhandle is ignored: + + Content-type: multipart/mixed; boundary="*----*" + Content-transfer-encoding: 7bit + + [Preamble] + --*----* + [Entity: Part 0] + --*----* + [Entity: Part 1] + --*----*-- + [Epilogue] + +I +then we're looking at a normal singlepart entity: the body is output +according to the encoding specified by the header. +If no body exists, a warning is output and the body is treated as empty: + + Content-type: image/gif + Content-transfer-encoding: base64 + + [Encoded body] + +I +then we're probably looking at a "re-parsed" singlepart, usually one +of type C (you can get entities like this if you set the +C option on the parser to true). +In this case, the parts are output with single blank lines separating each, +and any bodyhandle is ignored: + + Content-type: message/rfc822 + Content-transfer-encoding: 7bit + + [Entity: Part 0] + + [Entity: Part 1] + +In all cases, when outputting a "part" of the entity, this method +is invoked recursively. + +B the output is very likely I going to be identical +to any input you parsed to get this entity. If you're building +some sort of email handler, it's up to you to save this information. + +=cut + +use Symbol; +sub print { + my ($self, $out) = @_; + my $boundary_delimiter = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + $out = select if @_ < 2; + $out = Symbol::qualify($out,scalar(caller)) unless ref($out); + + $self->print_header($out); ### the header + $out->print($boundary_delimiter); + $self->print_body($out); ### the "stuff after the header" +} + +#------------------------------ + +=item print_body [OUTSTREAM] + +I +Print the body of the entity to the given OUTSTREAM, or to the +currently-selected filehandle if none given. OUTSTREAM can be a +filehandle, or any object that responds to a print() message. + +The body is output for inclusion in a valid MIME stream; this means +that the body data will be encoded if the header says that it should be. + +B by "body", we mean "the stuff following the header". +A printed multipart body includes the printed representations of its subparts. + +B The body is I in an un-encoded form; however, the idea is that +the transfer encoding is used to determine how it should be I +This means that the C method is always guaranteed to get you +a sendmail-ready stream whose body is consistent with its head. +If you want the I to be output, you can either read it from +the bodyhandle yourself, or use: + + $ent->bodyhandle->print($outstream); + +which uses read() calls to extract the information, and thus will +work with both text and binary bodies. + +B Please supply an OUTSTREAM. This override method differs +from Mail::Internet's behavior, which outputs to the STDOUT if no +filehandle is given: this may lead to confusion. + +=cut + +sub print_body { + my ($self, $out) = @_; + $out ||= select; + my ($type) = split '/', lc($self->mime_type); ### handle by MIME type + my $boundary_delimiter = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + + ### Multipart... + if ($type eq 'multipart') { + my $boundary = $self->head->multipart_boundary; + + ### Preamble: + my $plines = $self->preamble; + if (defined $plines) { + # Defined, so output the preamble if it exists (avoiding additional + # newline as per ticket 60931) + $out->print( join('', @$plines) . $boundary_delimiter) if (@$plines > 0); + } else { + # Undefined, so use default preamble + $out->print( join('', @$DefPreamble) . $boundary_delimiter . $boundary_delimiter ); + } + + ### Parts: + my $part; + foreach $part ($self->parts) { + $out->print("--$boundary$boundary_delimiter"); + $part->print($out); + $out->print($boundary_delimiter); ### needed for next delim/close + } + $out->print("--$boundary--$boundary_delimiter"); + + ### Epilogue: + my $epilogue = join('', @{ $self->epilogue || $DefEpilogue }); + if ($epilogue ne '') { + $out->print($epilogue); + $out->print($boundary_delimiter) if ($epilogue !~ /\n\Z/); ### be nice + } + } + + ### Singlepart type with parts... + ### This makes $ent->print handle message/rfc822 bodies + ### when parse_nested_messages('NEST') is on [idea by Marc Rouleau]. + elsif ($self->parts) { + my $need_sep = 0; + my $part; + foreach $part ($self->parts) { + $out->print("$boundary_delimiter$boundary_delimiter") if $need_sep++; + $part->print($out); + } + } + + ### Singlepart type, or no parts: output body... + else { + $self->bodyhandle ? $self->print_bodyhandle($out) + : whine "missing body; treated as empty"; + } + 1; +} + +#------------------------------ +# +# print_bodyhandle +# +# Instance method, unpublicized. Print just the bodyhandle, *encoded*. +# +# WARNING: $self->print_bodyhandle() != $self->bodyhandle->print()! +# The former encodes, and the latter does not! +# +sub print_bodyhandle { + my ($self, $out) = @_; + $out ||= select; + + my $IO = $self->open("r") || die "open body: $!"; + if ( $self->bodyhandle->is_encoded ) { + ### Transparent mode: data is already encoded, so no + ### need to encode it again + my $buf; + $out->print($buf) while ($IO->read($buf, 8192)); + } else { + ### Get the encoding, defaulting to "binary" if unsupported: + my $encoding = ($self->head->mime_encoding || 'binary'); + my $decoder = best MIME::Decoder $encoding; + $decoder->head($self->head); ### associate with head, if any + $decoder->encode($IO, $out, textual_type($self->head->mime_type) ? 1 : 0) || return error "encoding failed"; + } + + $IO->close; + 1; +} + +#------------------------------ + +=item print_header [OUTSTREAM] + +I +Output the header to the given OUTSTREAM. You really should supply +the OUTSTREAM. + +=cut + +### Inherited. + +#------------------------------ + +=item stringify + +I +Return the entity as a string, exactly as C would print it. +The body will be encoded as necessary, and will contain any subparts. +You can also use C. + +=cut + +sub stringify { + my ($self) = @_; + my $output = ''; + my $fh = IO::File->new( \$output, '>:' ) or croak("Cannot open in-memory file: $!"); + $self->print($fh); + $fh->close; + return $output; +} + +sub as_string { shift->stringify }; ### silent BC + +#------------------------------ + +=item stringify_body + +I +Return the I message body as a string, exactly as C +would print it. You can also use C. + +If you want the I body, and you are dealing with a +singlepart message (like a "text/plain"), use C instead: + + if ($ent->bodyhandle) { + $unencoded_data = $ent->bodyhandle->as_string; + } + else { + ### this message has no body data (but it might have parts!) + } + +=cut + +sub stringify_body { + my ($self) = @_; + my $output = ''; + my $fh = IO::File->new( \$output, '>:' ) or croak("Cannot open in-memory file: $!"); + $self->print_body($fh); + $fh->close; + return $output; +} + +sub body_as_string { shift->stringify_body } + +#------------------------------ + +=item stringify_header + +I +Return the header as a string, exactly as C would print it. +You can also use C. + +=cut + +sub stringify_header { + shift->head->stringify; +} +sub header_as_string { shift->stringify_header } + + +1; +__END__ + +#------------------------------ + +=back + +=head1 NOTES + +=head2 Under the hood + +A B is composed of the following elements: + +=over 4 + +=item * + +A I, which is a reference to a MIME::Head object +containing the header information. + +=item * + +A I, which is a reference to a MIME::Body object +containing the decoded body data. This is only defined if +the message is a "singlepart" type: + + application/* + audio/* + image/* + text/* + video/* + +=item * + +An array of I, where each part is a MIME::Entity object. +The number of parts will only be nonzero if the content-type +is I one of the "singlepart" types: + + message/* (should have exactly one part) + multipart/* (should have one or more parts) + + +=back + + + +=head2 The "two-body problem" + +MIME::Entity and Mail::Internet see message bodies differently, +and this can cause confusion and some inconvenience. Sadly, I can't +change the behavior of MIME::Entity without breaking lots of code already +out there. But let's open up the floor for a few questions... + +=over 4 + +=item What is the difference between a "message" and an "entity"? + +A B is the actual data being sent or received; usually +this means a stream of newline-terminated lines. +An B is the representation of a message as an object. + +This means that you get a "message" when you print an "entity" +I a filehandle, and you get an "entity" when you parse a message +I a filehandle. + + +=item What is a message body? + +B +The portion of the printed message after the header. + +B +The portion of the printed message after the header. + + +=item How is a message body stored in an entity? + +B +As an array of lines. + +B +It depends on the content-type of the message. +For "container" types (C, C), we store the +contained entities as an array of "parts", accessed via the C +method, where each part is a complete MIME::Entity. +For "singlepart" types (C, C, etc.), the unencoded +body data is referenced via a MIME::Body object, accessed via +the C method: + + bodyhandle() parts() + Content-type: returns: returns: + ------------------------------------------------------------ + application/* MIME::Body empty + audio/* MIME::Body empty + image/* MIME::Body empty + message/* undef MIME::Entity list (usually 1) + multipart/* undef MIME::Entity list (usually >0) + text/* MIME::Body empty + video/* MIME::Body empty + x-*/* MIME::Body empty + +As a special case, C is currently ambiguous: depending +on the parser, a C might be treated as a singlepart, +with a MIME::Body and no parts. Use bodyhandle() as the final +arbiter. + + +=item What does the body() method return? + +B +As an array of lines, ready for sending. + +B +As an array of lines, ready for sending. + +=item What's the best way to get at the body data? + +B +Use the body() method. + +B +Depends on what you want... the I data (as it is +transported), or the I data? Keep reading... + + +=item How do I get the "encoded" body data? + +B +Use the body() method. + +B +Use the body() method. You can also use: + + $entity->print_body() + $entity->stringify_body() ### a.k.a. $entity->body_as_string() + + +=item How do I get the "unencoded" body data? + +B +Use the body() method. + +B +Use the I method! +If bodyhandle() method returns true, then that value is a +L which can be used to access the data via +its open() method. If bodyhandle() method returns an undefined value, +then the entity is probably a "container" that has no real body data of +its own (e.g., a "multipart" message): in this case, you should access +the components via the parts() method. Like this: + + if ($bh = $entity->bodyhandle) { + $io = $bh->open; + ...access unencoded data via $io->getline or $io->read... + $io->close; + } + else { + foreach my $part (@parts) { + ...do something with the part... + } + } + +You can also use: + + if ($bh = $entity->bodyhandle) { + $unencoded_data = $bh->as_string; + } + else { + ...do stuff with the parts... + } + + +=item What does the body() method return? + +B +The transport-encoded message body, as an array of lines. + +B +The transport-encoded message body, as an array of lines. + + +=item What does print_body() print? + +B +Exactly what body() would return to you. + +B +Exactly what body() would return to you. + + +=item Say I have an entity which might be either singlepart or multipart. + How do I print out just "the stuff after the header"? + +B +Use print_body(). + +B +Use print_body(). + + +=item Why is MIME::Entity so different from Mail::Internet? + +Because MIME streams are expected to have non-textual data... +possibly, quite a lot of it, such as a tar file. + +Because MIME messages can consist of multiple parts, which are most-easily +manipulated as MIME::Entity objects themselves. + +Because in the simpler world of Mail::Internet, the data of a message +and its printed representation are I... and in the MIME +world, they're not. + +Because parsing multipart bodies on-the-fly, or formatting multipart +bodies for output, is a non-trivial task. + + +=item This is confusing. Can the two classes be made more compatible? + +Not easily; their implementations are necessarily quite different. +Mail::Internet is a simple, efficient way of dealing with a "black box" +mail message... one whose internal data you don't care much about. +MIME::Entity, in contrast, cares I about the message contents: +that's its job! + +=back + + + +=head2 Design issues + +=over 4 + +=item Some things just can't be ignored + +In multipart messages, the I<"preamble"> is the portion that precedes +the first encapsulation boundary, and the I<"epilogue"> is the portion +that follows the last encapsulation boundary. + +According to RFC 2046: + + There appears to be room for additional information prior + to the first encapsulation boundary and following the final + boundary. These areas should generally be left blank, and + implementations must ignore anything that appears before the + first boundary or after the last one. + + NOTE: These "preamble" and "epilogue" areas are generally + not used because of the lack of proper typing of these parts + and the lack of clear semantics for handling these areas at + gateways, particularly X.400 gateways. However, rather than + leaving the preamble area blank, many MIME implementations + have found this to be a convenient place to insert an + explanatory note for recipients who read the message with + pre-MIME software, since such notes will be ignored by + MIME-compliant software. + +In the world of standards-and-practices, that's the standard. +Now for the practice: + +I. +Since we have to parse over the stuff I, in the future I +I allow the parser option of creating special MIME::Entity objects +for the preamble and epilogue, with bogus MIME::Head objects. + +For now, though, we're MIME-compliant, so I probably won't change +how we work. + +=back + +=head1 SEE ALSO + +L, L, L, L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/MIME/Field/ConTraEnc.pm b/git/usr/share/perl5/vendor_perl/MIME/Field/ConTraEnc.pm new file mode 100644 index 0000000000000000000000000000000000000000..8dc18a42f456262f5c3760322433685c956e0745 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Field/ConTraEnc.pm @@ -0,0 +1,63 @@ +package MIME::Field::ConTraEnc; + + +=head1 NAME + +MIME::Field::ConTraEnc - a "Content-transfer-encoding" field + + +=head1 DESCRIPTION + +A subclass of Mail::Field. + +I +Instead, ask Mail::Field for new instances based on the field name! + + +=head1 SYNOPSIS + + use Mail::Field; + use MIME::Head; + + # Create an instance from some text: + $field = Mail::Field->new('Content-transfer-encoding', '7bit'); + + # Get the encoding. + # Possible values: 'binary', '7bit', '8bit', 'quoted-printable', + # 'base64' and '' (unspecified). Note that there can't be a + # single default for this, since it depends on the content type! + $encoding = $field->encoding; + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + +=cut + +require 5.001; +use strict; +use MIME::Field::ParamVal; +use vars qw($VERSION @ISA); + +@ISA = qw(MIME::Field::ParamVal); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +# Install it: +bless([])->register('Content-transfer-encoding'); + +#------------------------------ + +sub encoding { + shift->paramstr('_', @_); +} + +#------------------------------ +1; + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Field/ContDisp.pm b/git/usr/share/perl5/vendor_perl/MIME/Field/ContDisp.pm new file mode 100644 index 0000000000000000000000000000000000000000..72fed8364240c6346a7a3de0887e40f644e4ded3 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Field/ContDisp.pm @@ -0,0 +1,68 @@ +package MIME::Field::ContDisp; + + +=head1 NAME + +MIME::Field::ContDisp - a "Content-disposition" field + + +=head1 DESCRIPTION + +A subclass of Mail::Field. + +I +Instead, ask Mail::Field for new instances based on the field name! + + +=head1 SYNOPSIS + + use Mail::Field; + use MIME::Head; + + # Create an instance from some text: + $field = Mail::Field->new('Content-disposition', $text); + + # Inline or attachment? + $type = $field->type; + + # Recommended filename? + $filename = $field->filename; + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + + +=cut + +require 5.001; +use strict; +use MIME::Field::ParamVal; +use vars qw($VERSION @ISA); + +@ISA = qw(MIME::Field::ParamVal); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +# Install it: +bless([])->register('Content-disposition'); + +#------------------------------ + +sub filename { + shift->paramstr('filename', @_); +} + +sub type { + shift->paramstr('_', @_); +} + +#------------------------------ +1; + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Field/ContType.pm b/git/usr/share/perl5/vendor_perl/MIME/Field/ContType.pm new file mode 100644 index 0000000000000000000000000000000000000000..361b9c4d1404c6cd1484a658e118154f64ad8d7d --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Field/ContType.pm @@ -0,0 +1,196 @@ +package MIME::Field::ContType; + + +=head1 NAME + +MIME::Field::ContType - a "Content-type" field + + +=head1 DESCRIPTION + +A subclass of Mail::Field. + +I +Instead, ask Mail::Field for new instances based on the field name! + + +=head1 SYNOPSIS + + use Mail::Field; + use MIME::Head; + + # Create an instance from some text: + $field = Mail::Field->new('Content-type', + 'text/HTML; charset="US-ASCII"'); + + # Get the MIME type, like 'text/plain' or 'x-foobar'. + # Returns 'text/plain' as default, as per RFC 2045: + my ($type, $subtype) = split('/', $field->type); + + # Get generic information: + print $field->name; + + # Get information related to "message" type: + if ($type eq 'message') { + print $field->id; + print $field->number; + print $field->total; + } + + # Get information related to "multipart" type: + if ($type eq 'multipart') { + print $field->boundary; # the basic value, fixed up + print $field->multipart_boundary; # empty if not a multipart message! + } + + # Get information related to "text" type: + if ($type eq 'text') { + print $field->charset; # returns 'us-ascii' as default + } + + +=head1 PUBLIC INTERFACE + +=over 4 + +=cut + +require 5.001; +use strict; +use MIME::Field::ParamVal; +use vars qw($VERSION @ISA); + +@ISA = qw(MIME::Field::ParamVal); + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +# Install it: +bless([])->register('Content-type'); + +#------------------------------ +# +# Basic access/storage methods... +# +sub charset { + lc(shift->paramstr('charset', @_)) || 'us-ascii'; # RFC 2045 +} +sub id { + shift->paramstr('id', @_); +} +sub name { + shift->paramstr('name', @_); +} +sub number { + shift->paramstr('number', @_); +} +sub total { + shift->paramstr('total', @_); +} + + +#------------------------------ + +=item boundary + +Return the boundary field. The boundary is returned exactly +as given in the C field; that is, the leading +double-hyphen (C<-->) is I prepended. + +(Well, I exactly... from RFC 2046: + + (If a boundary appears to end with white space, the white space + must be presumed to have been added by a gateway, and must be deleted.) + +so we oblige and remove any trailing spaces.) + +Returns the empty string if there is no boundary, or if the boundary is +illegal (e.g., if it is empty after all trailing whitespace has been +removed). + +=cut + +sub boundary { + my $value = shift->param('boundary', @_); + defined($value) || return ''; + $value =~ s/\s+$//; # kill trailing white, per RFC 2046 + $value; +} + +#------------------------------ + +=item multipart_boundary + +Like C, except that this will also return the empty +string if the message is not a multipart message. In other words, +there's an automatic sanity check. + +=cut + +sub multipart_boundary { + my $self = shift; + my ($type) = split('/', $self->type); + return '' if ($type ne 'multipart'); # not multipart! + $self->boundary; # okay, return the boundary +} + +#------------------------------ + +=item type + +Try real hard to determine the content type (e.g., C<"text/plain">, +C<"image/gif">, C<"x-weird-type">, which is returned +in all-lowercase. + +A happy thing: the following code will work just as you would want, +even if there's no subtype (as in C<"x-weird-type">)... in such a case, +the $subtype would simply be the empty string: + + ($type, $subtype) = split('/', $head->mime_type); + +If the content-type information is missing, it defaults to C<"text/plain">, +as per RFC 2045: + + Default RFC 2822 messages are typed by this protocol as plain text in + the US-ASCII character set, which can be explicitly specified as + "Content-type: text/plain; charset=us-ascii". If no Content-Type is + specified, this default is assumed. + +B under the "be liberal in what we accept" principle, this routine +no longer syntax-checks the content type. If it ain't empty, +just downcase and return it. + +=cut + +sub type { + lc(shift->paramstr('_', @_)) || 'text/plain'; # RFC 2045 +} + +#------------------------------ + +=back + + +=head1 NOTES + +Since nearly all (if not all) parameters must have non-empty values +to be considered valid, we just return the empty string to signify +missing fields. If you need to get the I underlying value, +use the inherited C method (which returns undef if the +parameter is missing). + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + +=cut + +1; + + + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Field/ParamVal.pm b/git/usr/share/perl5/vendor_perl/MIME/Field/ParamVal.pm new file mode 100644 index 0000000000000000000000000000000000000000..60db01e759efede5f880188144a8da2f034a5568 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Field/ParamVal.pm @@ -0,0 +1,446 @@ +package MIME::Field::ParamVal; + +use MIME::Words; + +=head1 NAME + +MIME::Field::ParamVal - subclass of Mail::Field, for structured MIME fields + + +=head1 SYNOPSIS + + # Create an object for a content-type field: + $field = new Mail::Field 'Content-type'; + + # Set some attributes: + $field->param('_' => 'text/html'); + $field->param('charset' => 'us-ascii'); + $field->param('boundary' => '---ABC---'); + + # Same: + $field->set('_' => 'text/html', + 'charset' => 'us-ascii', + 'boundary' => '---ABC---'); + + # Get an attribute, or undefined if not present: + print "no id!" if defined($field->param('id')); + + # Same, but use empty string for missing values: + print "no id!" if ($field->paramstr('id') eq ''); + + # Output as string: + print $field->stringify, "\n"; + + +=head1 DESCRIPTION + +This is an abstract superclass of most MIME fields. It handles +fields with a general syntax like this: + + Content-Type: Message/Partial; + number=2; total=3; + id="oc=jpbe0M2Yt4s@thumper.bellcore.com" + +Comments are supported I items, like this: + + Content-Type: Message/Partial; (a comment) + number=2 (another comment) ; (yet another comment) total=3; + id="oc=jpbe0M2Yt4s@thumper.bellcore.com" + + +=head1 PUBLIC INTERFACE + +=over 4 + +=cut + +#------------------------------ + +require 5.001; + +# Pragmas: +use strict; +use re 'taint'; +use vars qw($VERSION @ISA); + + +# Other modules: +use Mail::Field; + +# Kit modules: +use MIME::Tools qw(:config :msgs); + +@ISA = qw(Mail::Field); + + +#------------------------------ +# +# Public globals... +# +#------------------------------ + +# The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + + +#------------------------------ +# +# Private globals... +# +#------------------------------ + +# Pattern to match parameter names (like fieldnames, but = not allowed): +my $PARAMNAME = '[^\x00-\x1f\x80-\xff :=]+'; + +# Pattern to match the first value on the line: +my $FIRST = '[^\s\;\x00-\x1f\x80-\xff]*'; + +# Pattern to match an RFC 2045 token: +# +# token = 1* +# +my $TSPECIAL = '()<>@,;:\VAL,...,KEY=>VAL] + +I Set this field. +The paramhash should contain parameter names +in I, with the special C<"_"> parameter name +signifying the "default" (unnamed) parameter for the field: + + # Set up to be... + # + # Content-type: Message/Partial; number=2; total=3; id="ocj=pbe0M2" + # + $conttype->set('_' => 'Message/Partial', + 'number' => 2, + 'total' => 3, + 'id' => "ocj=pbe0M2"); + +Note that a single argument is taken to be a I to +a paramhash, while multiple args are taken to be the elements +of the paramhash themselves. + +Supplying undef for a hashref, or an empty set of values, effectively +clears the object. + +The self object is returned. + +=cut + +sub set { + my $self = shift; + my $params = ((@_ == 1) ? (shift || {}) : {@_}); + %$self = %$params; # set 'em + $self; +} + +#------------------------------ + +=item parse_params STRING + +I +Extract parameter info from a structured field, and return +it as a hash reference. For example, here is a field with parameters: + + Content-Type: Message/Partial; + number=2; total=3; + id="oc=jpbe0M2Yt4s@thumper.bellcore.com" + +Here is how you'd extract them: + + $params = $class->parse_params('content-type'); + if ($$params{'_'} eq 'message/partial') { + $number = $$params{'number'}; + $total = $$params{'total'}; + $id = $$params{'id'}; + } + +Like field names, parameter names are coerced to lowercase. +The special '_' parameter means the default parameter for the +field. + +B This has been provided as a public method to support backwards +compatibility, but you probably shouldn't use it. + +=cut + +sub rfc2231decode { + my($val) = @_; + my($enc, $lang, $rest); + + local($1,$2,$3); + if ($val =~ m/^([^']*)'([^']*)'(.*)\z/s) { + $enc = $1; + $lang = $2; + $rest = $3; + } elsif ($val =~ m/^([^']*)'([^']*)\z/s) { + $enc = $1; + $rest = $2; + } else { + $rest = $val; + # $enc remains undefined when charset/language info is missing + } + return ($enc, $lang, $rest); +} + +sub rfc2231percent { + # Do percent-substitution + my($str) = @_; + local $1; + $str =~ s/%([0-9a-fA-F]{2})/pack("C", hex($1))/ge; + return $str; +} + +sub parse_params { + my ($self, $raw) = @_; + my %params; + my %dup_params; + my %empty_params; + my %rfc2231params; + my %rfc2231encoding_is_used; + my $param; + my $val; + my $part; + + # Get raw field, and unfold it: + defined($raw) or $raw = ''; + $raw =~ s/\n//g; + $raw =~ s/\s+\z//; # Strip trailing whitespace + + local($1,$2,$3,$4,$5); + # Extract special first parameter: + $raw =~ m/\A$SPCZ($FIRST)$SPCZ/og or return {}; # nada! + $params{'_'} = $1; + + # Extract subsequent parameters. + # No, we can't just "split" on semicolons: they're legal in quoted strings! + while (1) { # keep chopping away until done... + $raw =~ m/\G[^;]*(\;$SPCZ)+/og or last; # skip leading separator + $raw =~ m/\G($PARAMNAME)\s*=\s*/og or last; # give up if not a param + $param = lc($1); + $raw =~ m/\G(?:$QUOTED_STRING|($ENCTOKEN)|($TOKEN)|($BADTOKEN)|())/g or last; + my ($qstr, $enctoken, $token, $badtoken, $empty_value) = ($1, $2, $3, $4, $5); + if (defined($qstr)) { + # unescape + $qstr =~ s/\\(.)/$1/g; + } + if (defined($badtoken)) { + # Strip leading/trailing whitespace from badtoken + $badtoken =~ s/^\s+//; + $badtoken =~ s/\s+\z//; + + # Only keep token parameters in badtoken; + # cut it off at the first non-token char. CPAN RT #105455 + $badtoken =~ /^($TOKEN)*/; + $badtoken = $1; + if (defined($badtoken)) { + # Cut it off at first whitespace too + $badtoken =~ s/\s.*//; + } + } + $val = defined($qstr) ? $qstr : + (defined($enctoken) ? $enctoken : + (defined($badtoken) ? $badtoken : + (defined($token) ? $token : $empty_value))); + + # Do RFC 2231 processing + # Pick out the parts of the parameter + if ($param =~ /\*/ && + $param =~ /^ ([^*]+) (?: \* ([^*]+) )? (\*)? \z/xs) { + # We have param*number* or param*number or param* + my($name, $num) = ($1, $2||0); + if (defined($3)) { + # We have param*number* or param* + # RFC 2231: Asterisks ("*") are reused to provide the + # indicator that language and character set information + # is present and encoding is being used + $val = rfc2231percent($val); + $rfc2231encoding_is_used{$name} = 1; + } + $rfc2231params{$name}{$num} .= $val; + } else { + # Assign non-rfc2231 value directly. If we + # did get a mix of rfc2231 and non-rfc2231 values, + # the non-rfc2231 will be blown away in the + # "extract reconstructed parameters" loop. + if (defined($params{$param})) { + $dup_params{$param} = 1; + } + $params{$param} = $val; + } + if (($val // '') eq '') { + $empty_params{$param} = 1; + } + } + + # Extract reconstructed parameters + foreach $param (keys %rfc2231params) { + # If we got any rfc-2231 parameters, then + # blow away any potential non-rfc-2231 parameter. + if (defined($params{$param})) { + $dup_params{$param} = 1; + } + $params{$param} = ''; + foreach $part (sort { $a <=> $b } keys %{$rfc2231params{$param}}) { + $params{$param} .= $rfc2231params{$param}{$part}; + } + if ($rfc2231encoding_is_used{$param}) { + my($enc, $lang, $val) = rfc2231decode($params{$param}); + if (defined $enc) { + # re-encode as QP, preserving charset and language info + $val =~ s{([=?_\x00-\x1F\x7F-\xFF])} + {sprintf("=%02X", ord($1))}eg; + $val =~ tr/ /_/; + # RFC 2231 section 5: Language specification in Encoded Words + $enc .= '*' . $lang if defined $lang && $lang ne ''; + $params{$param} = '=?' . $enc . '?Q?' . $val . '?='; + } + } + if ($params{$param} eq '') { + $empty_params{$param} = 1; + } + debug " field param <$param> = <$params{$param}>"; + } + + # If there are any duplicate parameters, store them in the + # special key '@duplicate_parameters' which should never be the + # name of a real parameter + if (%dup_params) { + $params{'@duplicate_parameters'} = [ sort(keys(%dup_params)) ]; + } + + # If there are any empty parameters, store them in the + # special key '@empty_parameters' which should never be the + # name of a real parameter + if (%empty_params) { + $params{'@empty_parameters'} = [ sort(keys(%empty_params)) ]; + } + # Done: + \%params; +} + +#------------------------------ + +=item parse STRING + +I +Parse the string into the instance. Any previous information is wiped. +The self object is returned. + +May also be used as a constructor. + +=cut + +sub parse { + my ($self, $string) = @_; + + # Allow use as constructor, for MIME::Head: + ref($self) or $self = bless({}, $self); + + # Get params, and stuff them into the self object: + $self->set($self->parse_params($string)); +} + +#------------------------------ + +=item param PARAMNAME,[VALUE] + +I +Return the given parameter, or undef if it isn't there. +With argument, set the parameter to that VALUE. +The PARAMNAME is case-insensitive. A "_" refers to the "default" parameter. + +=cut + +sub param { + my ($self, $paramname, $value) = @_; + $paramname = lc($paramname); + $self->{$paramname} = $value if (@_ > 2); + $self->{$paramname} +} + +#------------------------------ + +=item paramstr PARAMNAME,[VALUE] + +I +Like param(): return the given parameter, or I if it isn't there. +With argument, set the parameter to that VALUE. +The PARAMNAME is case-insensitive. A "_" refers to the "default" parameter. + +=cut + +sub paramstr { + my $val = shift->param(@_); + (defined($val) ? $val : ''); +} + +#------------------------------ + +=item stringify + +I +Convert the field to a string, and return it. + +=cut + +sub stringify { + my $self = shift; + my ($key, $val); + + my $str = $self->{'_'}; # default subfield + foreach $key (sort keys %$self) { + next if ($key !~ /^[a-z][a-z-_0-9]*$/); # only lowercase ones! + defined($val = $self->{$key}) or next; + $val =~ s/(["\\])/\\$1/g; + $str .= qq{; $key="$val"}; + } + $str; +} + +#------------------------------ + +=item tag + +I +Return the tag for this field. + +=cut + +sub tag { '' } + +=back + +=head1 SEE ALSO + +L + +=cut + +#------------------------------ +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Head.pm b/git/usr/share/perl5/vendor_perl/MIME/Head.pm new file mode 100644 index 0000000000000000000000000000000000000000..1b4008b191e257cd1e740fe31111de66d9d57d7a --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Head.pm @@ -0,0 +1,1031 @@ +package MIME::Head; + +use MIME::WordDecoder; +=head1 NAME + +MIME::Head - MIME message header (a subclass of Mail::Header) + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + +=head2 Construction + + ### Create a new, empty header, and populate it manually: + $head = MIME::Head->new; + $head->replace('content-type', 'text/plain; charset=US-ASCII'); + $head->replace('content-length', $len); + + ### Parse a new header from a filehandle: + $head = MIME::Head->read(\*STDIN); + + ### Parse a new header from a file, or a readable pipe: + $testhead = MIME::Head->from_file("/tmp/test.hdr"); + $a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |"); + + +=head2 Output + + ### Output to filehandle: + $head->print(\*STDOUT); + + ### Output as string: + print STDOUT $head->as_string; + print STDOUT $head->stringify; + + +=head2 Getting field contents + + ### Is this a reply? + $is_reply = 1 if ($head->get('Subject') =~ /^Re: /); + + ### Get receipt information: + print "Last received from: ", $head->get('Received', 0); + @all_received = $head->get('Received'); + + ### Print the subject, or the empty string if none: + print "Subject: ", $head->get('Subject',0); + + ### Too many hops? Count 'em and see! + if ($head->count('Received') > 5) { ... + + ### Test whether a given field exists + warn "missing subject!" if (! $head->count('subject')); + + +=head2 Setting field contents + + ### Declare this to be an HTML header: + $head->replace('Content-type', 'text/html'); + + +=head2 Manipulating field contents + + ### Get rid of internal newlines in fields: + $head->unfold; + + ### Decode any Q- or B-encoded-text in fields (DEPRECATED): + $head->decode; + + +=head2 Getting high-level MIME information + + ### Get/set a given MIME attribute: + unless ($charset = $head->mime_attr('content-type.charset')) { + $head->mime_attr("content-type.charset" => "US-ASCII"); + } + + ### The content type (e.g., "text/html"): + $mime_type = $head->mime_type; + + ### The content transfer encoding (e.g., "quoted-printable"): + $mime_encoding = $head->mime_encoding; + + ### The recommended name when extracted: + $file_name = $head->recommended_filename; + + ### The boundary text, for multipart messages: + $boundary = $head->multipart_boundary; + + +=head1 DESCRIPTION + +A class for parsing in and manipulating RFC-822 message headers, with +some methods geared towards standard (and not so standard) MIME fields +as specified in the various I +RFCs (starting with RFC 2045) + + +=head1 PUBLIC INTERFACE + +=cut + +#------------------------------ + +require 5.002; + +### Pragmas: +use strict; +use vars qw($VERSION @ISA @EXPORT_OK); + +### System modules: +use IO::File; + +### Other modules: +use Mail::Header 1.09 (); +use Mail::Field 1.05 (); + +### Kit modules: +use MIME::Words qw(:all); +use MIME::Tools qw(:config :msgs); +use MIME::Field::ParamVal; +use MIME::Field::ConTraEnc; +use MIME::Field::ContDisp; +use MIME::Field::ContType; + +@ISA = qw(Mail::Header); + +# The presence of more than one of the following headers +# in a given MIME entity could indicate an ambiguous parse +# and hence a security risk + +my $singleton_headers = + [ + 'content-type', + 'content-disposition', + 'content-transfer-encoding', + 'content-id', + ]; + +# The presence of a duplicated or empty parameters in one of the following +# headers in a given MIME entity could indicate an ambiguous parse and +# hence a security risk +my $singleton_parameter_headers = + [ + 'content-type', + 'content-disposition', + ]; + + +#------------------------------ +# +# Public globals... +# +#------------------------------ + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### Sanity (we put this test after our own version, for CPAN::): +use Mail::Header 1.06 (); + + +#------------------------------ + +=head2 Creation, input, and output + +=over 4 + +=cut + +#------------------------------ + + +#------------------------------ + +=item new [ARG],[OPTIONS] + +I +Creates a new header object. Arguments are the same as those in the +superclass. + +=cut + +sub new { + my $class = shift; + bless Mail::Header->new(@_), $class; +} + +=item ambiguous_content + +I + +Returns true if this header has any the following properties: + +=over 4 + +More than one Content-Type, Content-ID, Content-Transfer-Encoding or +Content-Disposition header. + +A Content-Type or Content-Disposition header contains a repeated +parameter. + +=back + +Messages with ambiguous content should be treated as a security risk. +In particular, if MIME-tools is used in an email security tool, +ambiguous messages should not be delivered to end-users. + +=cut +sub ambiguous_content { + my ($self) = @_; + + foreach my $hdr (@$singleton_headers) { + if ($self->count($hdr) > 1) { + return 1; + } + } + + foreach my $hdr (@$singleton_parameter_headers) { + if ($self->mime_attr($hdr . '.@duplicate_parameters')) { + return 1; + } + if ($self->mime_attr($hdr . '.@empty_parameters')) { + return 1; + } + } + return 0; +} +#------------------------------ + +=item from_file EXPR,OPTIONS + +I. +For convenience, you can use this to parse a header object in from EXPR, +which may actually be any expression that can be sent to open() so as to +return a readable filehandle. The "file" will be opened, read, and then +closed: + + ### Create a new header by parsing in a file: + my $head = MIME::Head->from_file("/tmp/test.hdr"); + +Since this method can function as either a class constructor I +an instance initializer, the above is exactly equivalent to: + + ### Create a new header by parsing in a file: + my $head = MIME::Head->new->from_file("/tmp/test.hdr"); + +On success, the object will be returned; on failure, the undefined value. + +The OPTIONS are the same as in new(), and are passed into new() +if this is invoked as a class method. + +B This is really just a convenience front-end onto C, +provided mostly for backwards-compatibility with MIME-parser 1.0. + +=cut + +sub from_file { + my ($self, $file, @opts) = @_; ### at this point, $self is inst. or class! + my $class = ref($self) ? ref($self) : $self; + + ### Parse: + my $fh = IO::File->new($file, '<') or return error("open $file: $!"); + $fh->binmode() or return error("binmode $file: $!"); # we expect to have \r\n at line ends, and want to keep 'em. + $self = $class->new($fh, @opts); ### now, $self is instance or undef + $fh->close or return error("close $file: $!"); + $self; +} + +#------------------------------ + +=item read FILEHANDLE + +I +This initializes a header object by reading it in from a FILEHANDLE, +until the terminating blank line is encountered. +A syntax error or end-of-stream will also halt processing. + +Supply this routine with a reference to a filehandle glob; e.g., C<\*STDIN>: + + ### Create a new header by parsing in STDIN: + $head->read(\*STDIN); + +On success, the self object will be returned; on failure, a false value. + +B in the MIME world, it is perfectly legal for a header to be +empty, consisting of nothing but the terminating blank line. Thus, +we can't just use the formula that "no tags equals error". + +B as of the time of this writing, Mail::Header::read did not flag +either syntax errors or unexpected end-of-file conditions (an EOF +before the terminating blank line). MIME::ParserBase takes this +into account. + +=cut + +sub read { + my $self = shift; ### either instance or class! + ref($self) or $self = $self->new; ### if used as class method, make new + $self->SUPER::read(@_); +} + + + +#------------------------------ + +=back + +=head2 Getting/setting fields + +The following are methods related to retrieving and modifying the header +fields. Some are inherited from Mail::Header, but I've kept the +documentation around for convenience. + +=over 4 + +=cut + +#------------------------------ + + +#------------------------------ + +=item add TAG,TEXT,[INDEX] + +I +Add a new occurrence of the field named TAG, given by TEXT: + + ### Add the trace information: + $head->add('Received', + 'from eryq.pr.mcs.net by gonzo.net with smtp'); + +Normally, the new occurrence will be I to the existing +occurrences. However, if the optional INDEX argument is 0, then the +new occurrence will be I. If you want to be I +about appending, specify an INDEX of -1. + +B: this method always adds new occurrences; it doesn't overwrite +any existing occurrences... so if you just want to I the value +of a field (creating it if necessary), then you probably B want to use +this method: consider using C instead. + +=cut + +### Inherited. + +#------------------------------ +# +# copy +# +# Instance method, DEPRECATED. +# Duplicate the object. +# +sub copy { + usage "deprecated: use dup() instead."; + shift->dup(@_); +} + +#------------------------------ + +=item count TAG + +I +Returns the number of occurrences of a field; in a boolean context, this +tells you whether a given field exists: + + ### Was a "Subject:" field given? + $subject_was_given = $head->count('subject'); + +The TAG is treated in a case-insensitive manner. +This method returns some false value if the field doesn't exist, +and some true value if it does. + +=cut + +### Inherited. + + +#------------------------------ + +=item decode [FORCE] + +I +Go through all the header fields, looking for RFC 1522 / RFC 2047 style +"Q" (quoted-printable, sort of) or "B" (base64) encoding, and decode +them in-place. Fellow Americans, you probably don't know what the hell +I'm talking about. Europeans, Russians, et al, you probably do. +C<:-)>. + +B +See L for the full reasons. +If you absolutely must use it and don't like the warning, then +provide a FORCE: + + "I_NEED_TO_FIX_THIS" + Just shut up and do it. Not recommended. + Provided only for those who need to keep old scripts functioning. + + "I_KNOW_WHAT_I_AM_DOING" + Just shut up and do it. Not recommended. + Provided for those who REALLY know what they are doing. + +B +For an example, let's consider a valid email header you might get: + + From: =?US-ASCII?Q?Keith_Moore?= + To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= + CC: =?ISO-8859-1?Q?Andr=E9_?= Pirard + Subject: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= + =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?= + =?US-ASCII?Q?.._cool!?= + +That basically decodes to (sorry, I can only approximate the +Latin characters with 7 bit sequences /o and 'e): + + From: Keith Moore + To: Keld J/orn Simonsen + CC: Andr'e Pirard + Subject: If you can read this you understand the example... cool! + +B currently, the decodings are done without regard to the +character set: thus, the Q-encoding C<=F8> is simply translated to the +octet (hexadecimal C), period. For piece-by-piece decoding +of a given field, you want the array context of +C. + +B the CRLF+SPACE separator that splits up long encoded words +into shorter sequences (see the Subject: example above) gets lost +when the field is unfolded, and so decoding after unfolding causes +a spurious space to be left in the field. +I + +This method returns the self object. + +I + +=cut + +sub decode { + my $self = shift; + + ### Warn if necessary: + my $force = shift || 0; + unless (($force eq "I_NEED_TO_FIX_THIS") || + ($force eq "I_KNOW_WHAT_I_AM_DOING")) { + usage "decode is deprecated for safety"; + } + + my ($tag, $i, @decoded); + foreach $tag ($self->tags) { + @decoded = map { scalar(decode_mimewords($_, Field=>$tag)) + } $self->get_all($tag); + for ($i = 0; $i < @decoded; $i++) { + $self->replace($tag, $decoded[$i], $i); + } + } + $self->{MH_Decoded} = 1; + $self; +} + +#------------------------------ + +=item delete TAG,[INDEX] + +I +Delete all occurrences of the field named TAG. + + ### Remove some MIME information: + $head->delete('MIME-Version'); + $head->delete('Content-type'); + +=cut + +### Inherited + + +#------------------------------ +# +# exists +# +sub exists { + usage "deprecated; use count() instead"; + shift->count(@_); +} + +#------------------------------ +# +# fields +# +sub fields { + usage "deprecated: use tags() instead", + shift->tags(@_); +} + +#------------------------------ + +=item get TAG,[INDEX] + +I +Get the contents of field TAG. + +If a B is given, returns the occurrence at that index, +or undef if not present: + + ### Print the first and last 'Received:' entries (explicitly): + print "First, or most recent: ", $head->get('received', 0); + print "Last, or least recent: ", $head->get('received',-1); + +If B is given, but invoked in a B context, then +INDEX simply defaults to 0: + + ### Get the first 'Received:' entry (implicitly): + my $most_recent = $head->get('received'); + +If B is given, and invoked in an B context, then +I occurrences of the field are returned: + + ### Get all 'Received:' entries: + my @all_received = $head->get('received'); + +B: The header(s) returned may end with a newline. If you don't +want this, then B the return value. + +=cut + +### Inherited. + + +#------------------------------ + +=item get_all FIELD + +I +Returns the list of I occurrences of the field, or the +empty list if the field is not present: + + ### How did it get here? + @history = $head->get_all('Received'); + +B I had originally experimented with having C return all +occurrences when invoked in an array context... but that causes a lot of +accidents when you get careless and do stuff like this: + + print "\u$field: ", $head->get($field); + +It also made the intuitive behaviour unclear if the INDEX argument +was given in an array context. So I opted for an explicit approach +to asking for all occurrences. + +=cut + +sub get_all { + my ($self, $tag) = @_; + $self->count($tag) or return (); ### empty if doesn't exist + ($self->get($tag)); +} + +#------------------------------ +# +# original_text +# +# Instance method, DEPRECATED. +# Return an approximation of the original text. +# +sub original_text { + usage "deprecated: use stringify() instead"; + shift->stringify(@_); +} + +#------------------------------ + +=item print [OUTSTREAM] + +I +Print the header out to the given OUTSTREAM, or the currently-selected +filehandle if none. The OUTSTREAM may be a filehandle, or any object +that responds to a print() message. + +The override actually lets you print to any object that responds to +a print() method. This is vital for outputting MIME entities to scalars. + +Also, it defaults to the I filehandle if none is given +(not STDOUT!), so I supply a filehandle to prevent confusion. + +=cut + +sub print { + my ($self, $fh) = @_; + $fh ||= select; + $fh->print($self->as_string); +} + +#------------------------------ +# +# set TAG,TEXT +# +# Instance method, DEPRECATED. +# Set the field named TAG to [the single occurrence given by the TEXT. +# +sub set { + my $self = shift; + usage "deprecated: use the replace() method instead."; + $self->replace(@_); +} + +#------------------------------ + +=item stringify + +I +Return the header as a string. You can also invoke it as C. + +If you set the variable $MIME::Entity::BOUNDARY_DELIMITER to a string, +that string will be used as line-end delimiter. If it is not set, +the line ending will be a newline character (\n) + +=cut + +sub stringify { + my $self = shift; ### build clean header, and output... + my @header = grep {defined($_) ? $_ : ()} @{$self->header}; + my $header_delimiter = $MIME::Entity::BOUNDARY_DELIMITER || "\n"; + join "", map { /\n$/ ? substr($_, 0, -1) . $header_delimiter : $_ . $header_delimiter } @header; +} +sub as_string { shift->stringify(@_) } + +#------------------------------ + +=item unfold [FIELD] + +I +Unfold (remove newlines in) the text of all occurrences of the given FIELD. +If the FIELD is omitted, I fields are unfolded. +Returns the "self" object. + +=cut + +### Inherited + + +#------------------------------ + +=back + +=head2 MIME-specific methods + +All of the following methods extract information from the following fields: + + Content-type + Content-transfer-encoding + Content-disposition + +Be aware that they do not just return the raw contents of those fields, +and in some cases they will fill in sensible (I hope) default values. +Use C or C if you need to grab and process the +raw field text. + +B some of these methods are provided both as a convenience and +for backwards-compatibility only, while others (like +recommended_filename()) I since they look for their value in more than one field. +However, if you know that a value is restricted to a single +field, you should really use the Mail::Field interface to get it. + +=over 4 + +=cut + +#------------------------------ + + +#------------------------------ +# +# params TAG +# +# Instance method, DEPRECATED. +# Extract parameter info from a structured field, and return +# it as a hash reference. Provided for 1.0 compatibility only! +# Use the new MIME::Field interface classes (subclasses of Mail::Field). + +sub params { + my ($self, $tag) = @_; + usage "deprecated: use the MIME::Field interface classes from now on!"; + return MIME::Field::ParamVal->parse_params($self->get($tag,0)); +} + +#------------------------------ + +=item mime_attr ATTR,[VALUE] + +A quick-and-easy interface to set/get the attributes in structured +MIME fields: + + $head->mime_attr("content-type" => "text/html"); + $head->mime_attr("content-type.charset" => "US-ASCII"); + $head->mime_attr("content-type.name" => "homepage.html"); + +This would cause the final output to look something like this: + + Content-type: text/html; charset=US-ASCII; name="homepage.html" + +Note that the special empty sub-field tag indicates the anonymous +first sub-field. + +B will cause the contents of the named subfield +to be deleted: + + $head->mime_attr("content-type.charset" => undef); + +B just returns the attribute's value, +or undefined if it isn't there: + + $type = $head->mime_attr("content-type"); ### text/html + $name = $head->mime_attr("content-type.name"); ### homepage.html + +In all cases, the new/current value is returned. + +The special sub-field tag C<@duplicate_parameters> (which can never be +a real tag) returns an arrayref of tags that were duplicated in the header, +or C if no such tags were found. For example, given the header: + + Content-Type: multipart/mixed; boundary="foo"; boundary="bar" + +Then: + + $head->mime_attr('content-type.@duplicate_parameters') + +would return: + + [ 'boundary' ] + +Similarly he special sub-field tag C<@empty_parameters> (which can never be +a real tag) returns an arrayref of tags that had an empty parameter value +in the header, or C if no such tags were found. For example, given +the header: + + Content-Type: multipart/mixed; boundary=; + +Then: + + $head->mime_attr('content-type.@emtpy_parameters') + +would return: + + [ 'boundary' ] + +A duplicate or empty "boundary" tag should be treated as a security risk, as +should duplicate Content-Type headers in a message. Since such messages +cannot be parsed unambiguously, we strongly recommend that they never be +delivered to end-users. + +Note also that a parameter explicitly set to blank via something like: + + Content-Type: application/octet-stream; boundary="" + +I populate C<@empty_parameters> + +=cut + +sub mime_attr { + my ($self, $attr, $value) = @_; + + ### Break attribute name up: + my ($tag, $subtag) = split /\./, $attr; + $subtag ||= '_'; + + ### Set or get? + my $field = MIME::Field::ParamVal->parse($self->get($tag, 0)); + if (@_ > 2) { ### set it: + $field->param($subtag, $value); ### set subfield + $self->replace($tag, $field->stringify); ### replace! + return $value; + } + else { ### get it: + return $field->param($subtag); + } +} + +#------------------------------ + +=item mime_encoding + +I +Try I to determine the content transfer encoding +(e.g., C<"base64">, C<"binary">), which is returned in all-lowercase. + +If no encoding could be found, the default of C<"7bit"> is returned +I quote from RFC 2045 section 6.1: + + This is the default value -- that is, "Content-Transfer-Encoding: 7BIT" + is assumed if the Content-Transfer-Encoding header field is not present. + +I do one other form of fixup: "7_bit", "7-bit", and "7 bit" are +corrected to "7bit"; likewise for "8bit". + +=cut + +sub mime_encoding { + my $self = shift; + my $enc = lc($self->mime_attr('content-transfer-encoding') || '7bit'); + $enc =~ s{^([78])[ _-]bit\Z}{$1bit}; + $enc; +} + +#------------------------------ + +=item mime_type [DEFAULT] + +I +Try C to determine the content type (e.g., C<"text/plain">, +C<"image/gif">, C<"x-weird-type">, which is returned in all-lowercase. +"Real hard" means that if no content type could be found, the default +(usually C<"text/plain">) is returned. From RFC 2045 section 5.2: + + Default RFC 822 messages without a MIME Content-Type header are + taken by this protocol to be plain text in the US-ASCII character + set, which can be explicitly specified as: + + Content-type: text/plain; charset=us-ascii + + This default is assumed if no Content-Type header field is specified. + +Unless this is a part of a "multipart/digest", in which case +"message/rfc822" is the default. Note that you can also I the +default, but you shouldn't: normally only the MIME parser uses this +feature. + +=cut + +sub mime_type { + my ($self, $default) = @_; + $self->{MIH_DefaultType} = $default if @_ > 1; + my $s = $self->mime_attr('content-type') || + $self->{MIH_DefaultType} || + 'text/plain'; + # avoid [perl #87336] bug, lc laundering tainted data + return lc($s) if $] <= 5.008 || $] >= 5.014; + $s =~ tr/A-Z/a-z/; + $s; +} + +#------------------------------ + +=item multipart_boundary + +I +If this is a header for a multipart message, return the +"encapsulation boundary" used to separate the parts. The boundary +is returned exactly as given in the C field; that +is, the leading double-hyphen (C<-->) is I prepended. + +Well, I exactly... this passage from RFC 2046 dictates +that we remove any trailing spaces: + + If a boundary appears to end with white space, the white space + must be presumed to have been added by a gateway, and must be deleted. + +Returns undef (B the empty string) if either the message is not +multipart or if there is no specified boundary. + +=cut + +sub multipart_boundary { + my $self = shift; + my $value = $self->mime_attr('content-type.boundary'); + (!defined($value)) ? undef : $value; +} + +#------------------------------ + +=item recommended_filename + +I +Return the recommended external filename. This is used when +extracting the data from the MIME stream. The filename is always +returned as a string in Perl's internal format (the UTF8 flag may be on!) + +Returns undef if no filename could be suggested. + +=cut + +sub recommended_filename +{ + my $self = shift; + + # Try these headers in order, taking the first defined, + # non-blank one we find. + my $wd = supported MIME::WordDecoder 'UTF-8'; + foreach my $attr_name ( qw( content-disposition.filename content-type.name ) ) { + my $value = $self->mime_attr( $attr_name ); + if ( defined $value + && $value ne '' + && $value =~ /\S/ ) { + return $wd->decode($value); + } + } + + return undef; +} + +#------------------------------ + +=back + +=cut + + +#------------------------------ +# +# tweak_FROM_parsing +# +# DEPRECATED. Use the inherited mail_from() class method now. + +sub tweak_FROM_parsing { + my $self = shift; + usage "deprecated. Use mail_from() instead."; + $self->mail_from(@_); +} + + +__END__ + +#------------------------------ + + +=head1 NOTES + +=over 4 + +=item Why have separate objects for the entity, head, and body? + +See the documentation for the MIME-tools distribution +for the rationale behind this decision. + + +=item Why assume that MIME headers are email headers? + +I quote from Achim Bohnet, who gave feedback on v.1.9 (I think +he's using the word "header" where I would use "field"; e.g., +to refer to "Subject:", "Content-type:", etc.): + + There is also IMHO no requirement [for] MIME::Heads to look + like [email] headers; so to speak, the MIME::Head [simply stores] + the attributes of a complex object, e.g.: + + new MIME::Head type => "text/plain", + charset => ..., + disposition => ..., ... ; + +I agree in principle, but (alas and dammit) RFC 2045 says otherwise. +RFC 2045 [MIME] headers are a syntactic subset of RFC-822 [email] headers. + +In my mind's eye, I see an abstract class, call it MIME::Attrs, which does +what Achim suggests... so you could say: + + my $attrs = new MIME::Attrs type => "text/plain", + charset => ..., + disposition => ..., ... ; + +We could even make it a superclass of MIME::Head: that way, MIME::Head +would have to implement its interface, I allow itself to be +initialized from a MIME::Attrs object. + +However, when you read RFC 2045, you begin to see how much MIME information +is organized by its presence in particular fields. I imagine that we'd +begin to mirror the structure of RFC 2045 fields and subfields to such +a degree that this might not give us a tremendous gain over just +having MIME::Head. + + +=item Why all this "occurrence" and "index" jazz? Isn't every field unique? + +Aaaaaaaaaahh....no. + +Looking at a typical mail message header, it is sooooooo tempting to just +store the fields as a hash of strings, one string per hash entry. +Unfortunately, there's the little matter of the C field, +which (unlike C, C, etc.) will often have multiple +occurrences; e.g.: + + Received: from gsfc.nasa.gov by eryq.pr.mcs.net with smtp + (Linux Smail3.1.28.1 #5) id m0tStZ7-0007X4C; + Thu, 21 Dec 95 16:34 CST + Received: from rhine.gsfc.nasa.gov by gsfc.nasa.gov + (5.65/Ultrix3.0-C) id AA13596; + Thu, 21 Dec 95 17:20:38 -0500 + Received: (from eryq@localhost) by rhine.gsfc.nasa.gov + (8.6.12/8.6.12) id RAA28069; + Thu, 21 Dec 1995 17:27:54 -0500 + Date: Thu, 21 Dec 1995 17:27:54 -0500 + From: Eryq + Message-Id: <199512212227.RAA28069@rhine.gsfc.nasa.gov> + To: eryq@eryq.pr.mcs.net + Subject: Stuff and things + +The C field is used for tracing message routes, and although +it's not generally used for anything other than human debugging, I +didn't want to inconvenience anyone who actually wanted to get at that +information. + +I also didn't want to make this a special case; after all, who +knows what other fields could have multiple occurrences in the +future? So, clearly, multiple entries had to somehow be stored +multiple times... and the different occurrences had to be retrievable. + +=back + +=head1 SEE ALSO + +L, L, L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +The more-comprehensive filename extraction is courtesy of +Lee E. Brotzman, Advanced Data Solutions. + +=cut + +1; diff --git a/git/usr/share/perl5/vendor_perl/MIME/Parser.pm b/git/usr/share/perl5/vendor_perl/MIME/Parser.pm new file mode 100644 index 0000000000000000000000000000000000000000..6936e3274d4496f8466331910cfad26665e33dd8 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Parser.pm @@ -0,0 +1,2052 @@ +package MIME::Parser; + + +=head1 NAME + +MIME::Parser - experimental class for parsing MIME streams + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + +=head2 Basic usage examples + + ### Create a new parser object: + my $parser = new MIME::Parser; + + ### Tell it where to put things: + $parser->output_under("/tmp"); + + ### Parse an input filehandle: + $entity = $parser->parse(\*STDIN); + + ### Congratulations: you now have a (possibly multipart) MIME entity! + $entity->dump_skeleton; # for debugging + + +=head2 Examples of input + + ### Parse from filehandles: + $entity = $parser->parse(\*STDIN); + $entity = $parser->parse(IO::File->new("some command|"); + + ### Parse from any object that supports getline() and read(): + $entity = $parser->parse($myHandle); + + ### Parse an in-core MIME message: + $entity = $parser->parse_data($message); + + ### Parse an MIME message in a file: + $entity = $parser->parse_open("/some/file.msg"); + + ### Parse an MIME message out of a pipeline: + $entity = $parser->parse_open("gunzip - < file.msg.gz |"); + + ### Parse already-split input (as "deliver" would give it to you): + $entity = $parser->parse_two("msg.head", "msg.body"); + + +=head2 Examples of output control + + ### Keep parsed message bodies in core (default outputs to disk): + $parser->output_to_core(1); + + ### Output each message body to a one-per-message directory: + $parser->output_under("/tmp"); + + ### Output each message body to the same directory: + $parser->output_dir("/tmp"); + + ### Change how nameless message-component files are named: + $parser->output_prefix("msg"); + + ### Put temporary files somewhere else + $parser->tmp_dir("/var/tmp/mytmpdir"); + +=head2 Examples of error recovery + + ### Normal mechanism: + eval { $entity = $parser->parse(\*STDIN) }; + if ($@) { + $results = $parser->results; + $decapitated = $parser->last_head; ### get last top-level head + } + + ### Ultra-tolerant mechanism: + $parser->ignore_errors(1); + $entity = eval { $parser->parse(\*STDIN) }; + $error = ($@ || $parser->last_error); + + ### Cleanup all files created by the parse: + eval { $entity = $parser->parse(\*STDIN) }; + ... + $parser->filer->purge; + + +=head2 Examples of parser options + + ### Automatically attempt to RFC 2047-decode the MIME headers? + $parser->decode_headers(1); ### default is false + + ### Parse contained "message/rfc822" objects as nested MIME streams? + $parser->extract_nested_messages(0); ### default is true + + ### Look for uuencode in "text" messages, and extract it? + $parser->extract_uuencode(1); ### default is false + + ### Should we forgive normally-fatal errors? + $parser->ignore_errors(0); ### default is true + + +=head2 Miscellaneous examples + + ### Convert a Mail::Internet object to a MIME::Entity: + my $data = join('', (@{$mail->header}, "\n", @{$mail->body})); + $entity = $parser->parse_data(\$data); + + + +=head1 DESCRIPTION + +You can inherit from this class to create your own subclasses +that parse MIME streams into MIME::Entity objects. + + +=head1 PUBLIC INTERFACE + +=cut + +#------------------------------ + +require 5.004; + +### Pragmas: +use strict; +use vars (qw($VERSION $CAT $CRLF)); + +### core Perl modules +use IO::File; +use File::Spec; +use File::Path; +use Config qw(%Config); +use Carp; + +### Kit modules: +use MIME::Tools qw(:config :utils :msgtypes usage tmpopen ); +use MIME::Head; +use MIME::Body; +use MIME::Entity; +use MIME::Decoder; +use MIME::Parser::Reader; +use MIME::Parser::Filer; +use MIME::Parser::Results; + +#------------------------------ +# +# Globals +# +#------------------------------ + +### The package version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +### How to catenate: +$CAT = '/bin/cat'; + +### The CRLF sequence: +$CRLF = "\015\012"; + +### Who am I? +my $ME = 'MIME::Parser'; + +#------------------------------------------------------------ + +=head2 Construction + +=over 4 + +=cut + +#------------------------------ + +=item new ARGS... + +I +Create a new parser object. +Once you do this, you can then set up various parameters +before doing the actual parsing. For example: + + my $parser = new MIME::Parser; + $parser->output_dir("/tmp"); + $parser->output_prefix("msg1"); + my $entity = $parser->parse(\*STDIN); + +Any arguments are passed into C. +Don't override this in your subclasses; override init() instead. + +=cut + +sub new { + my $self = bless {}, shift; + $self->init(@_); +} + +#------------------------------ + +=item init ARGS... + +I +Initiallize a new MIME::Parser object. +This is automatically sent to a new object; you may want to override it. +If you override this, be sure to invoke the inherited method. + +=cut + +sub init { + my $self = shift; + + $self->{MP5_DecodeHeaders} = 0; + $self->{MP5_DecodeBodies} = 1; + $self->{MP5_Interface} = {}; + $self->{MP5_ParseNested} = 'NEST'; + $self->{MP5_TmpToCore} = 0; + $self->{MP5_IgnoreErrors} = 1; + $self->{MP5_UUDecode} = 0; + $self->{MP5_MaxParts} = -1; + $self->{MP5_TmpDir} = undef; + $self->{MP5_AmbiguousContent} = 0; + + $self->interface(ENTITY_CLASS => 'MIME::Entity'); + $self->interface(HEAD_CLASS => 'MIME::Head'); + + $self->output_dir("."); + + $self; +} + +#------------------------------ + +=item init_parse + +I +Invoked automatically whenever one of the top-level parse() methods +is called, to reset the parser to a "ready" state. + +=cut + +sub init_parse { + my $self = shift; + + $self->{MP5_Results} = new MIME::Parser::Results; + + $self->{MP5_Filer}->results($self->{MP5_Results}); + $self->{MP5_Filer}->purgeable([]); + $self->{MP5_Filer}->init_parse(); + $self->{MP5_NumParts} = 0; + $self->{MP5_AmbiguousContent} = 0; + 1; +} + +=back + +=cut + + + + + +#------------------------------------------------------------ + +=head2 Altering how messages are parsed + +=over 4 + +=cut + +#------------------------------ + +=item decode_headers [YESNO] + +I +Controls whether the parser will attempt to decode all the MIME headers +(as per RFC 2047) the moment it sees them. B + +=over + +=item * + +B +If you fully decode the headers into bytes, you can inadvertently +transform a parseable MIME header like this: + + Content-type: text/plain; filename="=?ISO-8859-1?Q?Hi=22Ho?=" + +into unparseable gobbledygook; in this case: + + Content-type: text/plain; filename="Hi"Ho" + +=item * + +B An encoded string which contains +both Latin-1 and Cyrillic characters will be turned into a binary +mishmosh which simply can't be rendered. + +=back + +B +This method was once the only out-of-the-box way to deal with attachments +whose filenames had non-ASCII characters. However, since MIME-tools 5.4xx +this is no longer necessary. + +B +If YESNO is true, decoding is done. However, you will get a warning +unless you use one of the special "true" values: + + "I_NEED_TO_FIX_THIS" + Just shut up and do it. Not recommended. + Provided only for those who need to keep old scripts functioning. + + "I_KNOW_WHAT_I_AM_DOING" + Just shut up and do it. Not recommended. + Provided for those who REALLY know what they are doing. + +If YESNO is false (the default), no attempt at decoding will be done. +With no argument, just returns the current setting. +B you can always decode the headers I the parsing +has completed (see L), or +decode the words on demand (see L). + +=cut + +sub decode_headers { + my ($self, $yesno) = @_; + if (@_ > 1) { + $self->{MP5_DecodeHeaders} = $yesno; + if ($yesno) { + if (($yesno eq "I_KNOW_WHAT_I_AM_DOING") || + ($yesno eq "I_NEED_TO_FIX_THIS")) { + ### ok + } + else { + $self->whine("as of 5.4xx, decode_headers() should NOT be ". + "set true... if you are doing this to make sure ". + "that non-ASCII filenames are translated, ". + "that's now done automatically; for all else, ". + "use MIME::Words."); + } + } + } + $self->{MP5_DecodeHeaders}; +} + +#------------------------------ + +=item extract_nested_messages OPTION + +I +Some MIME messages will contain a part of type C +,C or C: +literally, the text of an embedded mail/news/whatever message. +This option controls whether (and how) we parse that embedded message. + +If the OPTION is false, we treat such a message just as if it were a +C document, without attempting to decode its contents. + +If the OPTION is true (the default), the body of the C +or C part is parsed by this parser, creating an +entity object. What happens then is determined by the actual OPTION: + +=over 4 + +=item NEST or 1 + +The default setting. +The contained message becomes the sole "part" of the C +entity (as if the containing message were a special kind of +"multipart" message). +You can recover the sub-entity by invoking the L +method on the C entity. + +=item REPLACE + +The contained message replaces the C entity, as though +the C "container" never existed. + +B notice that, with this option, all the header information +in the C header is lost. This might seriously bother +you if you're dealing with a top-level message, and you've just lost +the sender's address and the subject line. C<:-/>. + +=back + +I + +=cut + +sub extract_nested_messages { + my ($self, $option) = @_; + $self->{MP5_ParseNested} = $option if (@_ > 1); + $self->{MP5_ParseNested}; +} + +sub parse_nested_messages { + usage "parse_nested_messages() is now extract_nested_messages()"; + shift->extract_nested_messages(@_); +} + +#------------------------------ + +=item extract_uuencode [YESNO] + +I +If set true, then whenever we are confronted with a message +whose effective content-type is "text/plain" and whose encoding +is 7bit/8bit/binary, we scan the encoded body to see if it contains +uuencoded data (generally given away by a "begin XXX" line). + +If it does, we explode the uuencoded message into a multipart, +where the text before the first "begin XXX" becomes the first part, +and all "begin...end" sections following become the subsequent parts. +The filename (if given) is accessible through the normal means. + +=cut + +sub extract_uuencode { + my ($self, $yesno) = @_; + $self->{MP5_UUDecode} = $yesno if @_ > 1; + $self->{MP5_UUDecode}; +} + +#------------------------------ + +=item ignore_errors [YESNO] + +I +Controls whether the parser will attempt to ignore normally-fatal +errors, treating them as warnings and continuing with the parse. + +If YESNO is true (the default), many syntax errors are tolerated. +If YESNO is false, fatal errors throw exceptions. +With no argument, just returns the current setting. + +=cut + +sub ignore_errors { + my ($self, $yesno) = @_; + $self->{MP5_IgnoreErrors} = $yesno if (@_ > 1); + $self->{MP5_IgnoreErrors}; +} + + +#------------------------------ + +=item decode_bodies [YESNO] + +I +Controls whether the parser should decode entity bodies or not. +If this is set to a false value (default is true), all entity bodies +will be kept as-is in the original content-transfer encoding. + +To prevent double encoding on the output side MIME::Body->is_encoded +is set, which tells MIME::Body not to encode the data again, if encoded +data was requested. This is in particular useful, when it's important that +the content B be modified, e.g. if you want to calculate +OpenPGP signatures from it. + +B: the semantics change significantly if you parse MIME +messages with this option set, because MIME::Entity resp. MIME::Body +*always* see encoded data now, while the default behaviour is +working with *decoded* data (and encoding it only if you request it). +You need to decode the data yourself, if you want to have it decoded. + +So use this option only if you exactly know, what you're doing, and +that you're sure, that you really need it. + +=cut + +sub decode_bodies { + my ($self, $yesno) = @_; + $self->{MP5_DecodeBodies} = $yesno if (@_ > 1); + $self->{MP5_DecodeBodies}; +} + +#------------------------------ +# +# MESSAGES... +# + +#------------------------------ +# +# debug MESSAGE... +# +sub debug { + my $self = shift; + if (MIME::Tools->debugging()) { + if (my $r = $self->{MP5_Results}) { + unshift @_, $r->indent; + $r->msg($M_DEBUG, @_); + } + MIME::Tools::debug(@_); + } +} + +#------------------------------ +# +# whine PROBLEM... +# +sub whine { + my $self = shift; + if (my $r = $self->{MP5_Results}) { + unshift @_, $r->indent; + $r->msg($M_WARNING, @_); + } + &MIME::Tools::whine(@_); +} + +#------------------------------ +# +# error PROBLEM... +# +# Possibly-forgivable parse error occurred. +# Raises a fatal exception unless we are ignoring errors. +# +sub error { + my $self = shift; + if (my $r = $self->{MP5_Results}) { + unshift @_, $r->indent; + $r->msg($M_ERROR, @_); + } + &MIME::Tools::error(@_); + $self->{MP5_IgnoreErrors} ? return undef : die @_; +} + + + + +#------------------------------ +# +# PARSING... +# + +#------------------------------ +# +# process_preamble IN, READER, ENTITY +# +# I +# Dispose of a multipart message's preamble. +# +sub process_preamble { + my ($self, $in, $rdr, $ent) = @_; + + ### Sanity: + ($rdr->depth > 0) or die "$ME: internal logic error"; + + ### Parse preamble: + my @saved; + my $data = ''; + open(my $fh, '>', \$data) or die $!; + $rdr->read_chunk($in, $fh, 1); + close $fh; + + # Ugh. Horrible. If the preamble consists only of CRLF, squash it down + # to the empty string. Else, remove the trailing CRLF. + if( $data =~ m/^[\r\n]\z/ ) { + @saved = (''); + } else { + $data =~ s/[\r\n]\z//; + @saved = split(/^/, $data); + } + $ent->preamble(\@saved); + 1; +} + +#------------------------------ +# +# process_epilogue IN, READER, ENTITY +# +# I +# Dispose of a multipart message's epilogue. +# +sub process_epilogue { + my ($self, $in, $rdr, $ent) = @_; + $self->debug("process_epilogue"); + + ### Parse epilogue: + my @saved; + $rdr->read_lines($in, \@saved); + $ent->epilogue(\@saved); + 1; +} + +#------------------------------ +# +# process_to_bound IN, READER, OUT +# +# I +# Dispose of the next chunk into the given output stream OUT. +# +sub process_to_bound { + my ($self, $in, $rdr, $out) = @_; + + ### Parse: + $rdr->read_chunk($in, $out); + 1; +} + +#------------------------------ +# +# process_header IN, READER +# +# I +# Process and return the next header. +# Return undef if, instead of a header, the encapsulation boundary is found. +# Fatal exception on failure. +# +sub process_header { + my ($self, $in, $rdr) = @_; + $self->debug("process_header"); + + ### Parse and save the (possibly empty) header, up to and including the + ### blank line that terminates it: + my $head = $self->interface('HEAD_CLASS')->new; + + ### Read the lines of the header. + ### We localize IO inside here, so that we can support the IO:: interface + my @headlines; + my $hdr_rdr = $rdr->spawn; + $hdr_rdr->add_terminator(""); + $hdr_rdr->add_terminator("\r"); ### sigh + + my $headstr = ''; + open(my $outfh, '>:scalar', \$headstr) or die $!; + $hdr_rdr->read_chunk($in, $outfh, 0, 1); + close $outfh; + + ### How did we do? + if ($hdr_rdr->eos_type eq 'DELIM') { + $self->whine("bogus part, without CRLF before body"); + return undef; + } + ($hdr_rdr->eos_type eq 'DONE') or + $self->error("unexpected end of header\n"); + + + ### If header line begins with a UTF-8 Byte-Order mark, remove it. + $headstr =~ s/^\x{EF}\x{BB}\x{BF}//; + + ### Extract the header (note that zero-size headers are admissible!): + open(my $readfh, '<:scalar', \$headstr) or die $!; + $head->read( $readfh ); + + unless( $readfh->eof() ) { + # Not entirely correct, since ->read consumes the line it gives up on. + # it's actually the line /before/ the one we get with ->getline + $self->error("couldn't parse head; error near:\n", $readfh->getline()); + } + + + ### If desired, auto-decode the header as per RFC 2047 + ### This shouldn't affect non-encoded headers; however, it will decode + ### headers with international characters. WARNING: currently, the + ### character-set information is LOST after decoding. + $head->decode($self->{MP5_DecodeHeaders}) if $self->{MP5_DecodeHeaders}; + + ### If this is the top-level head, save it: + $self->results->top_head($head) if !$self->results->top_head; + + return $head; +} + +#------------------------------ +# +# process_multipart IN, READER, ENTITY +# +# I +# Process the multipart body, and return the state. +# Fatal exception on failure. +# Invoked by process_part(). +# +sub process_multipart { + my ($self, $in, $rdr, $ent) = @_; + my $head = $ent->head; + + $self->debug("process_multipart..."); + + ### Get actual type and subtype from the header: + my ($type, $subtype) = (split('/', $head->mime_type, -1), ''); + + ### If this was a type "multipart/digest", then the RFCs say we + ### should default the parts to have type "message/rfc822". + ### Thanks to Carsten Heyl for suggesting this... + my $retype = (($subtype eq 'digest') ? 'message/rfc822' : ''); + + ### Get the boundaries for the parts: + my $bound = $head->multipart_boundary; + if (!defined($bound) || ($bound =~ /[\r\n]/)) { + $self->error("multipart boundary is missing, or contains CR or LF\n"); + $ent->effective_type("application/x-unparseable-multipart"); + return $self->process_singlepart($in, $rdr, $ent); + } + my $part_rdr = $rdr->spawn->add_boundary($bound); + + ### Prepare to parse: + my $eos_type; + my $more_parts; + + ### Parse preamble... + $self->process_preamble($in, $part_rdr, $ent); + + ### ...and look at how we finished up: + $eos_type = $part_rdr->eos_type; + if ($eos_type eq 'DELIM'){ $more_parts = 1 } + elsif ($eos_type eq 'CLOSE'){ $self->whine("empty multipart message\n"); + $more_parts = 0; } + else { $self->error("unexpected end of preamble\n"); + return 1; } + + ### Parse parts: + my $partno = 0; + my $part; + while ($more_parts) { + ++$partno; + $self->debug("parsing part $partno..."); + + ### Parse the next part, and add it to the entity... + my $part = $self->process_part($in, $part_rdr, Retype=>$retype); + return undef unless defined($part); + + $ent->add_part($part); + + ### ...and look at how we finished up: + $eos_type = $part_rdr->eos_type; + if ($eos_type eq 'DELIM') { $more_parts = 1 } + elsif ($eos_type eq 'CLOSE') { $more_parts = 0; } + else { $self->error("unexpected end of parts ". + "before epilogue\n"); + return 1; } + } + + ### Parse epilogue... + ### (note that we use the *parent's* reader here, which does not + ### know about the boundaries in this multipart!) + $self->process_epilogue($in, $rdr, $ent); + + ### ...and there's no need to look at how we finished up! + 1; +} + +#------------------------------ +# +# process_singlepart IN, READER, ENTITY +# +# I +# Process the singlepart body. Returns true. +# Fatal exception on failure. +# Invoked by process_part(). +# +sub process_singlepart { + my ($self, $in, $rdr, $ent) = @_; + my $head = $ent->head; + + $self->debug("process_singlepart..."); + + ### Obtain a filehandle for reading the encoded information: + ### We have two different approaches, based on whether or not we + ### have to contend with boundaries. + my $ENCODED; ### handle + my $can_shortcut = (!$rdr->has_bounds and !$self->{MP5_UUDecode}); + if ($can_shortcut) { + $self->debug("taking shortcut"); + + $ENCODED = $in; + $rdr->eos('EOF'); ### be sure to bogus-up the reader state to EOF: + } + else { + + $self->debug("using temp file"); + $ENCODED = $self->new_tmpfile(); + + ### Read encoded body until boundary (or EOF)... + $self->process_to_bound($in, $rdr, $ENCODED); + + ### ...and look at how we finished up. + ### If we have bounds, we want DELIM or CLOSE. + ### Otherwise, we want EOF (and that's all we'd get, anyway!). + if ($rdr->has_bounds) { + ($rdr->eos_type =~ /^(DELIM|CLOSE)$/) or + $self->error("part did not end with expected boundary\n"); + } + + ### Flush and rewind encoded buffer, so we can read it: + $ENCODED->flush or die "$ME: can't flush: $!"; + $ENCODED->seek(0, 0) or die "$ME: can't seek: $!"; + } + + ### Get a content-decoder to decode this part's encoding: + my $encoding = $head->mime_encoding; + my $decoder = new MIME::Decoder $encoding; + if (!$decoder) { + $self->whine("Unsupported encoding '$encoding': using 'binary'... \n". + "The entity will have an effective MIME type of \n". + "application/octet-stream."); ### as per RFC-2045 + $ent->effective_type('application/octet-stream'); + $decoder = new MIME::Decoder 'binary'; + $encoding = 'binary'; + } + + ### Data should be stored encoded / as-is? + if ( !$self->decode_bodies ) { + $decoder = new MIME::Decoder 'binary'; + $encoding = 'binary'; + } + + ### If desired, sidetrack to troll for UUENCODE: + $self->debug("extract uuencode? ", $self->extract_uuencode); + $self->debug("encoding? ", $encoding); + $self->debug("effective type? ", $ent->effective_type); + + if ($self->extract_uuencode and + ($encoding =~ /^(7bit|8bit|binary)\Z/) and + ($ent->effective_type =~ + m{^(?:text/plain|application/mac-binhex40|application/mac-binhex)\Z})) { + ### Hunt for it: + my $uu_ent = eval { $self->hunt_for_uuencode($ENCODED, $ent) }; + if ($uu_ent) { ### snark + %$ent = %$uu_ent; + return 1; + } + else { ### boojum + $self->whine("while hunting for uuencode: $@"); + $ENCODED->seek(0,0) or die "$ME: can't seek: $!"; + } + } + + ### Open a new bodyhandle for outputting the data: + my $body = $self->new_body_for($head) or die "$ME: no body"; # gotta die + $body->binmode(1) or die "$ME: can't set to binmode: $!" + unless textual_type($ent->effective_type) or !$self->decode_bodies; + $body->is_encoded(1) if !$self->decode_bodies; + + ### Decode and save the body (using the decoder): + my $DECODED = $body->open("w") or die "$ME: body not opened: $!"; + eval { $decoder->decode($ENCODED, $DECODED); }; + $@ and $self->error($@); + $DECODED->close or die "$ME: can't close: $!"; + + ### Success! Remember where we put stuff: + $ent->bodyhandle($body); + + ### Done! + 1; +} + +#------------------------------ +# +# hunt_for_uuencode ENCODED, ENTITY +# +# I +# Try to detect and dispatch embedded uuencode as a fake multipart message. +# Returns new entity or undef. +# +sub hunt_for_uuencode { + my ($self, $ENCODED, $ent) = @_; + my ($good, $how_encoded); + local $_; + $self->debug("sniffing around for UUENCODE"); + + ### Heuristic: + $ENCODED->seek(0,0) or die "$ME: can't seek: $!"; + while (defined($_ = $ENCODED->getline)) { + if ($good = /^begin [0-7]{3}/) { + $how_encoded = 'uu'; + last; + } + if ($good = /^\(This file must be converted with/i) { + $how_encoded = 'binhex'; + last; + } + } + $good or do { $self->debug("no one made the cut"); return 0 }; + + # If a decoder doesn't exist for this type, forget it! + my $decoder = MIME::Decoder->new(($how_encoded eq 'uu')?'x-uuencode' + :'binhex'); + unless (defined($decoder)) { + $self->debug("No decoder for $how_encoded attachments"); + return 0; + } + + ### New entity: + my $top_ent = $ent->dup; ### no data yet + $top_ent->make_multipart; + my @parts; + + ### Made the first cut; on to the real stuff: + $ENCODED->seek(0,0) or die "$ME: can't seek: $!"; + $self->whine("Found a $how_encoded attachment"); + my $pre; + while (1) { + my $bin_data = ''; + + ### Try next part: + my $out = IO::File->new(\$bin_data, '>:'); + eval { $decoder->decode($ENCODED, $out) }; last if $@; + my $preamble = $decoder->last_preamble; + my $filename = $decoder->last_filename; + my $mode = $decoder->last_mode; + + ### Get probable type: + my $type = 'application/octet-stream'; + my ($ext) = $filename =~ /\.(\w+)\Z/; $ext = lc($ext || ''); + if ($ext =~ /^(gif|jpe?g|xbm|xpm|png)\Z/) { $type = "image/$1" } + + ### If we got our first preamble, create the text portion: + if (@$preamble and + (grep /\S/, @$preamble) and + !@parts) { + my $txt_ent = $self->interface('ENTITY_CLASS')->new; + + MIME::Entity->build(Type => "text/plain", + Data => ""); + $txt_ent->bodyhandle($self->new_body_for($txt_ent->head)); + my $io = $txt_ent->bodyhandle->open("w") or die "$ME: can't create: $!"; + $io->print(@$preamble) or die "$ME: can't print: $!"; + $io->close or die "$ME: can't close: $!"; + push @parts, $txt_ent; + } + + ### Create the attachment: + ### We use the x-unix-mode convention from "dtmail 1.2.1 SunOS 5.6". + if (1) { + my $bin_ent = MIME::Entity->build(Type=>$type, + Filename=>$filename, + Data=>""); + $bin_ent->head->mime_attr('Content-type.x-unix-mode' => "0$mode"); + $bin_ent->bodyhandle($self->new_body_for($bin_ent->head)); + $bin_ent->bodyhandle->binmode(1) or die "$ME: can't set to binmode: $!"; + my $io = $bin_ent->bodyhandle->open("w") or die "$ME: can't create: $!"; + $io->print($bin_data) or die "$ME: can't print: $!"; + $io->close or die "$ME: can't close: $!"; + push @parts, $bin_ent; + } + } + + ### Did we get anything? + @parts or return undef; + ### Set the parts and a nice preamble: + $top_ent->parts(\@parts); + $top_ent->preamble + (["The following is a multipart MIME message which was extracted\n", + "from a $how_encoded-encoded message.\n"]); + $top_ent; +} + +#------------------------------ +# +# process_message IN, READER, ENTITY +# +# I +# Process the singlepart body, and return true. +# Fatal exception on failure. +# Invoked by process_part(). +# +sub process_message { + my ($self, $in, $rdr, $ent) = @_; + my $head = $ent->head; + + $self->debug("process_message"); + + ### Verify the encoding restrictions: + my $encoding = $head->mime_encoding; + if ($encoding !~ /^(7bit|8bit|binary)$/) { + $self->error("illegal encoding [$encoding] for MIME type ". + $head->mime_type."\n"); + $encoding = 'binary'; + } + + ### Parse the message: + my $msg = $self->process_part($in, $rdr); + return undef unless defined($msg); + + ### How to handle nested messages? + if ($self->extract_nested_messages eq 'REPLACE') { + %$ent = %$msg; ### shallow replace + %$msg = (); + } + else { ### "NEST" or generic 1: + $ent->bodyhandle(undef); + $ent->add_part($msg); + } + 1; +} + +#------------------------------ +# +# process_part IN, READER, [OPTSHASH...] +# +# I +# The real back-end engine. +# See the documentation up top for the overview of the algorithm. +# The OPTSHASH can contain: +# +# Retype => retype this part to the given content-type +# +# Return the entity. +# Fatal exception on failure. Returns undef if message to complex +# +sub process_part { + my ($self, $in, $rdr, %p) = @_; + + if ($self->{MP5_MaxParts} > 0) { + $self->{MP5_NumParts}++; + if ($self->{MP5_NumParts} > $self->{MP5_MaxParts}) { + # Return UNDEF if msg too complex + return undef; + } + } + + $rdr ||= MIME::Parser::Reader->new; + #debug "process_part"; + $self->results->level(+1); + + ### Create a new entity: + my $ent = $self->interface('ENTITY_CLASS')->new; + + ### Parse and add the header: + my $head = $self->process_header($in, $rdr); + if (not defined $head) { + $self->debug("bogus empty part"); + $head = $self->interface('HEAD_CLASS')->new; + $head->mime_type('text/plain'); + $ent->head($head); + $ent->bodyhandle($self->new_body_for($head)); + $ent->bodyhandle->open("w")->close or die "$ME: can't close: $!"; + if (!$self->{MP5_AmbiguousContent}) { + if ($ent->head->ambiguous_content) { + $self->{MP5_AmbiguousContent} = 1; + } + } + $self->results->level(-1); + return $ent; + } + $ent->head($head); + + ### Tweak the content-type based on context from our parent... + ### For example, multipart/digest messages default to type message/rfc822: + $head->mime_type($p{Retype}) if $p{Retype}; + + # We have the header, so that's enough to check for + # ambiguous content... + if (!$self->{MP5_AmbiguousContent}) { + if ($ent->head->ambiguous_content) { + $self->{MP5_AmbiguousContent} = 1; + } + } + ### Get the MIME type and subtype: + my ($type, $subtype) = (split('/', $head->mime_type, -1), ''); + $self->debug("type = $type, subtype = $subtype"); + + ### Handle, according to the MIME type: + if ($type eq 'multipart') { + return undef unless defined($self->process_multipart($in, $rdr, $ent)); + } + elsif (("$type/$subtype" eq "message/rfc822" || + "$type/$subtype" eq "message/external-body" || + ("$type/$subtype" eq "message/partial" && defined($head->mime_attr("content-type.number")) && $head->mime_attr("content-type.number") == 1)) && + $self->extract_nested_messages) { + $self->debug("attempting to process a nested message"); + return undef unless defined($self->process_message($in, $rdr, $ent)); + } + else { + $self->process_singlepart($in, $rdr, $ent); + } + + ### Done (we hope!): + $self->results->level(-1); + return $ent; +} + + + +=back + +=head2 Parsing an input source + +=over 4 + +=cut + +#------------------------------ + +=item parse_data DATA + +I +Parse a MIME message that's already in core. This internally creates an "in +memory" filehandle on a Perl scalar value using PerlIO + +You may supply the DATA in any of a number of ways... + +=over 4 + +=item * + +B which holds the message. A reference to this scalar will be used +internally. + +=item * + +B which holds the message. This reference will be used +internally. + +=item * + +B + +B The array is internally concatenated into a +temporary string, and a reference to the new string is used internally. + +It is much more efficient to pass in a scalar reference, so please consider +refactoring your code to use that interface instead. If you absolutely MUST +pass an array, you may be better off using IO::ScalarArray in the calling code +to generate a filehandle, and passing that filehandle to I + +=back + +Returns the parsed MIME::Entity on success. + +=cut + +sub parse_data { + my ($self, $data) = @_; + + if (!defined($data)) { + croak "parse_data: No data passed"; + } + + ### Get data as a scalar: + my $io; + + if (! ref $data ) { + $io = IO::File->new(\$data, '<:'); + } elsif( ref $data eq 'SCALAR' ) { + $io = IO::File->new($data, '<:'); + } elsif( ref $data eq 'ARRAY' ) { + # Passing arrays is deprecated now that we've nuked IO::ScalarArray + # but for backwards compatibility we still support it by joining the + # array lines to a scalar and doing scalar IO on it. + my $tmp_data = join('', @$data); + $io = IO::File->new(\$tmp_data, '<:'); + } else { + croak "parse_data: wrong argument ref type: ", ref($data); + } + + if (!$io) { + croak "parse_data: unable to open in-memory file handle"; + } + + ### Parse! + return $self->parse($io); +} + +#------------------------------ + +=item parse INSTREAM + +I +Takes a MIME-stream and splits it into its component entities. + +The INSTREAM can be given as an IO::File, a globref filehandle (like +C<\*STDIN>), or as I blessed object conforming to the IO:: +interface (which minimally implements getline() and read()). + +Returns the parsed MIME::Entity on success. +Throws exception on failure. If the message contained too many +parts (as set by I), returns undef. + +=cut + +sub parse { + my $self = shift; + my $in = shift; + my $entity; + local $/ = "\n"; ### just to be safe + + local $\ = undef; # CPAN ticket #71041 + $self->init_parse; + $entity = $self->process_part($in, undef); ### parse! + + $entity; +} + +### Backcompat: +sub read { + shift->parse(@_); +} +sub parse_FH { + shift->parse(@_); +} + +#------------------------------ + +=item parse_open EXPR + +I +Convenience front-end onto C. +Simply give this method any expression that may be sent as the second +argument to open() to open a filehandle for reading. + +Returns the parsed MIME::Entity on success. +Throws exception on failure. + +=cut + +sub parse_open { + my ($self, $expr) = @_; + my $ent; + + my $io = IO::File->new($expr) or die "$ME: couldn't open $expr: $!"; + $ent = $self->parse($io); + $io->close or die "$ME: can't close: $!"; + $ent; +} + +### Backcompat: +sub parse_in { + usage "parse_in() is now parse_open()"; + shift->parse_open(@_); +} + +#------------------------------ + +=item parse_two HEADFILE, BODYFILE + +I +Convenience front-end onto C, intended for programs +running under mail-handlers like B, which splits the incoming +mail message into a header file and a body file. +Simply give this method the paths to the respective files. + +B it is assumed that, once the files are cat'ed together, +there will be a blank line separating the head part and the body part. + +B new implementation slurps files into line array +for portability, instead of using 'cat'. May be an issue if +your messages are large. + +Returns the parsed MIME::Entity on success. +Throws exception on failure. + +=cut + +sub parse_two { + my ($self, $headfile, $bodyfile) = @_; + my $data; + foreach ($headfile, $bodyfile) { + open IN, "<$_" or die "$ME: open $_: $!"; + $data .= do { local $/; }; + close IN or die "$ME: can't close: $!"; + } + return $self->parse_data($data); +} + +=back + +=cut + + + + +#------------------------------------------------------------ + +=head2 Specifying output destination + +B in 5.212 and before, this was done by methods +of MIME::Parser. However, since many users have requested +fine-tuned control over how this is done, the logic has been split +off from the parser into its own class, MIME::Parser::Filer +Every MIME::Parser maintains an instance of a MIME::Parser::Filer +subclass to manage disk output (see L for details.) + +The benefit to this is that the MIME::Parser code won't be +confounded with a lot of garbage related to disk output. +The drawback is that the way you override the default behavior +will change. + +For now, all the normal public-interface methods are still provided, +but many are only stubs which create or delegate to the underlying +MIME::Parser::Filer object. + +=over 4 + +=cut + +#------------------------------ + +=item filer [FILER] + +I +Get/set the FILER object used to manage the output of files to disk. +This will be some subclass of L. + +=cut + +sub filer { + my ($self, $filer) = @_; + if (@_ > 1) { + $self->{MP5_Filer} = $filer; + $filer->results($self->results); ### but we still need in init_parse + } + $self->{MP5_Filer}; +} + +#------------------------------ + +=item output_dir DIRECTORY + +I +Causes messages to be filed directly into the given DIRECTORY. +It does this by setting the underlying L to +a new instance of MIME::Parser::FileInto, and passing the arguments +into that class' new() method. + +B Since this method replaces the underlying +filer, you must invoke it I doing changing any attributes +of the filer, like the output prefix; otherwise those changes +will be lost. + +=cut + +sub output_dir { + my ($self, @init) = @_; + if (@_ > 1) { + $self->filer(MIME::Parser::FileInto->new(@init)); + } + else { + &MIME::Tools::whine("0-arg form of output_dir is deprecated."); + return $self->filer->output_dir; + } +} + +#------------------------------ + +=item output_under BASEDIR, OPTS... + +I +Causes messages to be filed directly into subdirectories of the given +BASEDIR, one subdirectory per message. It does this by setting the +underlying L to a new instance of MIME::Parser::FileUnder, +and passing the arguments into that class' new() method. + +B Since this method replaces the underlying +filer, you must invoke it I doing changing any attributes +of the filer, like the output prefix; otherwise those changes +will be lost. + +=cut + +sub output_under { + my ($self, @init) = @_; + if (@_ > 1) { + $self->filer(MIME::Parser::FileUnder->new(@init)); + } + else { + &MIME::Tools::whine("0-arg form of output_under is deprecated."); + return $self->filer->output_dir; + } +} + +#------------------------------ + +=item output_path HEAD + +I +Given a MIME head for a file to be extracted, come up with a good +output pathname for the extracted file. +Identical to the preferred form: + + $parser->filer->output_path(...args...); + +We just delegate this to the underlying L object. + +=cut + +sub output_path { + my $self = shift; + ### We use it, so don't warn! + ### &MIME::Tools::whine("output_path deprecated in MIME::Parser"); + $self->filer->output_path(@_); +} + +#------------------------------ + +=item output_prefix [PREFIX] + +I +Get/set the short string that all filenames for extracted body-parts +will begin with (assuming that there is no better "recommended filename"). +Identical to the preferred form: + + $parser->filer->output_prefix(...args...); + +We just delegate this to the underlying L object. + +=cut + +sub output_prefix { + my $self = shift; + &MIME::Tools::whine("output_prefix deprecated in MIME::Parser"); + $self->filer->output_prefix(@_); +} + +#------------------------------ + +=item evil_filename NAME + +I +Identical to the preferred form: + + $parser->filer->evil_filename(...args...); + +We just delegate this to the underlying L object. + +=cut + +sub evil_filename { + my $self = shift; + &MIME::Tools::whine("evil_filename deprecated in MIME::Parser"); + $self->filer->evil_filename(@_); +} + +#------------------------------ + +=item max_parts NUM + +I +Limits the number of MIME parts we will parse. + +Normally, instances of this class parse a message to the bitter end. +Messages with many MIME parts can cause excessive memory consumption. +If you invoke this method, parsing will abort with a die() if a message +contains more than NUM parts. + +If NUM is set to -1 (the default), then no maximum limit is enforced. + +With no argument, returns the current setting as an integer + +=cut + +sub max_parts { + my($self, $num) = @_; + if (@_ > 1) { + $self->{MP5_MaxParts} = $num; + } + return $self->{MP5_MaxParts}; +} + +#------------------------------ + +=item output_to_core YESNO + +I +Normally, instances of this class output all their decoded body +data to disk files (via MIME::Body::File). However, you can change +this behaviour by invoking this method before parsing: + +If YESNO is false (the default), then all body data goes +to disk files. + +If YESNO is true, then all body data goes to in-core data structures +This is a little risky (what if someone emails you an MPEG or a tar +file, hmmm?) but people seem to want this bit of noose-shaped rope, +so I'm providing it. +Note that setting this attribute true I mean that parser-internal +temporary files are avoided! Use L for that. + +With no argument, returns the current setting as a boolean. + +=cut + +sub output_to_core { + my ($self, $yesno) = @_; + if (@_ > 1) { + $yesno = 0 if ($yesno and $yesno eq 'NONE'); + $self->{MP5_FilerToCore} = $yesno; + } + $self->{MP5_FilerToCore}; +} + + +=item tmp_recycling + +I + +This method is a no-op to preserve the pre-5.421 API. + +The tmp_recycling() feature was removed in 5.421 because it had never actually +worked. Please update your code to stop using it. + +=cut + +sub tmp_recycling +{ + return; +} + + + +#------------------------------ + +=item tmp_to_core [YESNO] + +I +Should L create real temp files, or +use fake in-core ones? Normally we allow the creation of temporary +disk files, since this allows us to handle huge attachments even when +core is limited. + +If YESNO is true, we implement new_tmpfile() via in-core handles. +If YESNO is false (the default), we use real tmpfiles. +With no argument, just returns the current setting. + +=cut + +sub tmp_to_core { + my ($self, $yesno) = @_; + $self->{MP5_TmpToCore} = $yesno if (@_ > 1); + $self->{MP5_TmpToCore}; +} + +#------------------------------ + +=item use_inner_files [YESNO] + +I. + +I + +MIME::Parser no longer supports IO::InnerFile, but this method is retained for +backwards compatibility. It does nothing. + +The original reasoning for IO::InnerFile was that inner files were faster than +"in-core" temp files. At the time, the "in-core" tempfile support was +implemented with IO::Scalar from the IO-Stringy distribution, which used the +tie() interface to wrap a scalar with the appropriate IO::Handle operations. +The penalty for this was fairly hefty, and IO::InnerFile actually was faster. + +Nowadays, MIME::Parser uses Perl's built in ability to open a filehandle on an +in-memory scalar variable via PerlIO. Benchmarking shows that IO::InnerFile is +slightly slower than using in-memory temporary files, and is slightly faster +than on-disk temporary files. Both measurements are within a few percent of +each other. Since there's no real benefit, and since the IO::InnerFile abuse +was fairly hairy and evil ("writes" to it were faked by extending the size of +the inner file with the assumption that the only data you'd ever ->print() to +it would be the line from the "outer" file, for example) it's been removed. + +=cut + +sub use_inner_files { + return 0; +} + +=back + +=cut + + +#------------------------------------------------------------ + +=head2 Specifying classes to be instantiated + +=over 4 + +=cut + +#------------------------------ + +=item interface ROLE,[VALUE] + +I +During parsing, the parser normally creates instances of certain classes, +like MIME::Entity. However, you may want to create a parser subclass +that uses your own experimental head, entity, etc. classes (for example, +your "head" class may provide some additional MIME-field-oriented methods). + +If so, then this is the method that your subclass should invoke during +init. Use it like this: + + package MyParser; + @ISA = qw(MIME::Parser); + ... + sub init { + my $self = shift; + $self->SUPER::init(@_); ### do my parent's init + $self->interface(ENTITY_CLASS => 'MIME::MyEntity'); + $self->interface(HEAD_CLASS => 'MIME::MyHead'); + $self; ### return + } + +With no VALUE, returns the VALUE currently associated with that ROLE. + +=cut + +sub interface { + my ($self, $role, $value) = @_; + $self->{MP5_Interface}{$role} = $value if (defined($value)); + $self->{MP5_Interface}{$role}; +} + +#------------------------------ + +=item new_body_for HEAD + +I +Based on the HEAD of a part we are parsing, return a new +body object (any desirable subclass of MIME::Body) for +receiving that part's data. + +If you set the C option to false before parsing +(the default), then we call C and create a +new MIME::Body::File on that filename. + +If you set the C option to true before parsing, +then you get a MIME::Body::InCore instead. + +If you want the parser to do something else entirely, you can +override this method in a subclass. + +=cut + +sub new_body_for { + my ($self, $head) = @_; + + if ($self->output_to_core) { + $self->debug("outputting body to core"); + return (new MIME::Body::InCore); + } + else { + my $outpath = $self->output_path($head); + $self->debug("outputting body to disk file: $outpath"); + $self->filer->purgeable($outpath); ### we plan to use it + return (new MIME::Body::File $outpath); + } +} + +#------------------------------ + +=pod + +=back + +=head2 Temporary File Creation + +=over + +=item tmp_dir DIRECTORY + +I +Causes any temporary files created by this parser to be created in the +given DIRECTORY. + +If called without arguments, returns current value. + +The default value is undef, which will cause new_tmpfile() to use the +system default temporary directory. + +=cut + +sub tmp_dir +{ + my ($self, $dirname) = @_; + if ( $dirname ) { + $self->{MP5_TmpDir} = $dirname; + } + + return $self->{MP5_TmpDir}; +} + +=item new_tmpfile + +I +Return an IO handle to be used to hold temporary data during a parse. + +The default uses MIME::Tools::tmpopen() to create a new temporary file, +unless L dictates otherwise, but you can +override this. You shouldn't need to. + +The location for temporary files can be changed on a per-parser basis +with L. + +If you do override this, make certain that the object you return is +set for binmode(), and is able to handle the following methods: + + read(BUF, NBYTES) + getline() + getlines() + print(@ARGS) + flush() + seek(0, 0) + +Fatal exception if the stream could not be established. + +=cut + +sub new_tmpfile { + my ($self) = @_; + + my $io; + if ($self->{MP5_TmpToCore}) { + my $var; + $io = IO::File->new(\$var, '+>:') or die "$ME: Can't open in-core tmpfile: $!"; + } else { + my $args = {}; + if( $self->tmp_dir ) { + $args->{DIR} = $self->tmp_dir; + } + $io = tmpopen( $args ) or die "$ME: can't open tmpfile: $!\n"; + binmode($io) or die "$ME: can't set to binmode: $!"; + } + return $io; +} + +=back + +=cut + + + + + + +#------------------------------------------------------------ + +=head2 Parse results and error recovery + +=over 4 + +=cut + +#------------------------------ + +=item last_error + +I +Return the error (if any) that we ignored in the last parse. + +=cut + +sub last_error { + join '', shift->results->errors; +} + +=item ambiguous_content + +I +Returns true if the most recently parsed message has one or more +entities with ambiguous content. See the documentation of +C's C method for details. + +Note that while these two calls to ambuguous_content return the same +thing: + + $entity = $parser->parse($whatever_stream); + $parser->ambuguous_content(); + $entity->ambuguous_content(); + +the former is faster because it simply returns the results that were +detected during the parse, while the latter actually executes the code +that checks for ambiguous content again. + +Messages with ambiguous content should be treated as a security risk. +In particular, if MIME::Parser is used in an email security tool, +ambiguous messages should not be delivered to end-users. + +=cut +sub ambiguous_content { + my ($self) = @_; + return $self->{MP5_AmbiguousContent}; +} + +#------------------------------ + +=item last_head + +I +Return the top-level MIME header of the last stream we attempted to parse. +This is useful for replying to people who sent us bad MIME messages. + + ### Parse an input stream: + eval { $entity = $parser->parse(\*STDIN) }; + if (!$entity) { ### parse failed! + my $decapitated = $parser->last_head; + ... + } + +=cut + +sub last_head { + shift->results->top_head; +} + +#------------------------------ + +=item results + +I +Return an object containing lots of info from the last entity parsed. +This will be an instance of class +L. + +=cut + +sub results { + shift->{MP5_Results}; +} + + +=back + +=cut + + +#------------------------------ +1; +__END__ + + +=head1 OPTIMIZING YOUR PARSER + + +=head2 Maximizing speed + +Optimum input mechanisms: + + parse() YES (if you give it a globref or a + subclass of IO::File) + parse_open() YES + parse_data() NO (see below) + parse_two() NO (see below) + +Optimum settings: + + decode_headers() *** (no real difference; 0 is slightly faster) + extract_nested_messages() 0 (may be slightly faster, but in + general you want it set to 1) + output_to_core() 0 (will be MUCH faster) + tmp_to_core() 0 (will be MUCH faster) + +B +It's much faster to use E$fooE than $foo-Egetline. +For backwards compatibility, this module must continue to use +object-oriented I/O in most places, but if you use L +with a "real" filehandle (string, globref, or subclass of IO::File) +then MIME::Parser is able to perform some crucial optimizations. + +B +Currently this is just a front-end onto parse_data(). +If your OS supports it, you're I better off doing something like: + + $parser->parse_open("/bin/cat msg.head msg.body |"); + + + + +=head2 Minimizing memory + +Optimum input mechanisms: + + parse() YES + parse_open() YES + parse_data() NO (in-core I/O will burn core) + parse_two() NO (in-core I/O will burn core) + +Optimum settings: + + decode_headers() *** (no real difference) + extract_nested_messages() *** (no real difference) + output_to_core() 0 (will use MUCH less memory) + tmp_to_core is 1) + tmp_to_core() 0 (will use MUCH less memory) + +=head2 Maximizing tolerance of bad MIME + +Optimum input mechanisms: + + parse() *** (doesn't matter) + parse_open() *** (doesn't matter) + parse_data() *** (doesn't matter) + parse_two() *** (doesn't matter) + +Optimum settings: + + decode_headers() 0 (sidesteps problem of bad hdr encodings) + extract_nested_messages() 0 (sidesteps problems of bad nested messages, + but often you want it set to 1 anyway). + output_to_core() *** (doesn't matter) + tmp_to_core() *** (doesn't matter) + + +=head2 Avoiding disk-based temporary files + +Optimum input mechanisms: + + parse() YES (if you give it a seekable handle) + parse_open() YES (becomes a seekable handle) + parse_data() NO (unless you set tmp_to_core(1)) + parse_two() NO (unless you set tmp_to_core(1)) + +Optimum settings: + + decode_headers() *** (doesn't matter) + extract_nested_messages() *** (doesn't matter) + output_to_core() *** (doesn't matter) + tmp_to_core() 1 + +B +You can set L true: this will always +use in-core I/O for the buffering (B this will slow down +the parsing of messages with large attachments). + +B +You can always override L in a subclass. + + + + + + + +=head1 WARNINGS + +=over 4 + +=item Multipart messages are always read line-by-line + +Multipart document parts are read line-by-line, so that the +encapsulation boundaries may easily be detected. However, bad MIME +composition agents (for example, naive CGI scripts) might return +multipart documents where the parts are, say, unencoded bitmap +files... and, consequently, where such "lines" might be +veeeeeeeeery long indeed. + +A better solution for this case would be to set up some form of +state machine for input processing. This will be left for future versions. + + +=item Multipart parts read into temp files before decoding + +In my original implementation, the MIME::Decoder classes had to be aware +of encapsulation boundaries in multipart MIME documents. +While this decode-while-parsing approach obviated the need for +temporary files, it resulted in inflexible and complex decoder +implementations. + +The revised implementation uses a temporary file (a la C) +during parsing to hold the I portion of the current MIME +document or part. This file is deleted automatically after the +current part is decoded and the data is written to the "body stream" +object; you'll never see it, and should never need to worry about it. + +Some folks have asked for the ability to bypass this temp-file +mechanism, I suppose because they assume it would slow down their application. +I considered accommodating this wish, but the temp-file +approach solves a lot of thorny problems in parsing, and it also +protects against hidden bugs in user applications (what if you've +directed the encoded part into a scalar, and someone unexpectedly +sends you a 6 MB tar file?). Finally, I'm just not convinced that +the temp-file use adds significant overhead. + + +=item Fuzzing of CRLF and newline on input + +RFC 2045 dictates that MIME streams have lines terminated by CRLF +(C<"\r\n">). However, it is extremely likely that folks will want to +parse MIME streams where each line ends in the local newline +character C<"\n"> instead. + +An attempt has been made to allow the parser to handle both CRLF +and newline-terminated input. + + +=item Fuzzing of CRLF and newline on output + +The C<"7bit"> and C<"8bit"> decoders will decode both +a C<"\n"> and a C<"\r\n"> end-of-line sequence into a C<"\n">. + +The C<"binary"> decoder (default if no encoding specified) +still outputs stuff verbatim... so a MIME message with CRLFs +and no explicit encoding will be output as a text file +that, on many systems, will have an annoying ^M at the end of +each line... I. + + +=item Inability to handle multipart boundaries that contain newlines + +First, let's get something straight: I +and is incompatible with RFC 2046... hence, it's not valid MIME. + +If your mailer creates multipart boundary strings that contain +newlines I give it two weeks notice +and find another one. If your mail robot receives MIME mail like this, +regard it as syntactically incorrect MIME, which it is. + +Why do I say that? Well, in RFC 2046, the syntax of a boundary is +given quite clearly: + + boundary := 0*69 bcharsnospace + + bchars := bcharsnospace / " " + + bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" / "+" /"_" + / "," / "-" / "." / "/" / ":" / "=" / "?" + +All of which means that a valid boundary string I have +newlines in it, and any newlines in such a string in the message header +are expected to be solely the result of I the string (i.e., +inserting to-be-removed newlines for readability and line-shortening +I). + +Yet, there is at least one brain-damaged user agent out there +that composes mail like this: + + MIME-Version: 1.0 + Content-type: multipart/mixed; boundary="----ABC- + 123----" + Subject: Hi... I'm a dork! + + This is a multipart MIME message (yeah, right...) + + ----ABC- + 123---- + + Hi there! + +We have I to discourage practices like this (and the recent file +upload idiocy where binary files that are part of a multipart MIME +message aren't base64-encoded) if we want MIME to stay relatively +simple, and MIME parsers to be relatively robust. + +I + + +=back + +=head1 SEE ALSO + +L, L, L, L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). +Dianne Skoll (dianne@skoll.ca) + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +=cut diff --git a/git/usr/share/perl5/vendor_perl/MIME/Parser/Filer.pm b/git/usr/share/perl5/vendor_perl/MIME/Parser/Filer.pm new file mode 100644 index 0000000000000000000000000000000000000000..84a6d2b23edaf2d725540abda7a15bfa42352495 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Parser/Filer.pm @@ -0,0 +1,959 @@ +package MIME::Parser::Filer; + +=head1 NAME + +MIME::Parser::Filer - manage file-output of the parser + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... now read L<"DESCRIPTION"> below, and everything else +should make sense. + + +=head2 Public interface + + ### Create a "filer" of the desired class: + my $filer = MIME::Parser::FileInto->new($dir); + my $filer = MIME::Parser::FileUnder->new($basedir); + ... + + ### Want added security? Don't let outsiders name your files: + $filer->ignore_filename(1); + + ### Prepare for the parsing of a new top-level message: + $filer->init_parse; + + ### Return the path where this message's data should be placed: + $path = $filer->output_path($head); + + +=head2 Semi-public interface + +These methods might be overridden or ignored in some subclasses, +so they don't all make sense in all circumstances: + + ### Tweak the mapping from content-type to extension: + $emap = $filer->output_extension_map; + $emap->{"text/html"} = ".htm"; + + + + +=head1 DESCRIPTION + + +=head2 How this class is used when parsing + +When a MIME::Parser decides that it wants to output a file to disk, +it uses its "Filer" object -- an instance of a MIME::Parser::Filer +subclass -- to determine where to put the file. + +Every parser has a single Filer object, which it uses for all +parsing. You can get the Filer for a given $parser like this: + + $filer = $parser->filer; + +At the beginning of each C, the filer's internal state +is reset by the parser: + + $parser->filer->init_parse; + +The parser can then get a path for each entity in the message +by handing that entity's header (a MIME::Head) to the filer +and having it do the work, like this: + + $new_file = $parser->filer->output_path($head); + +Since it's nice to be able to clean up after a parse (especially +a failed parse), the parser tells the filer when it has actually +used a path: + + $parser->filer->purgeable($new_file); + +Then, if you want to clean up the files which were created for a +particular parse (and also any directories that the Filer created), +you would do this: + + $parser->filer->purge; + + + +=head2 Writing your own subclasses + +There are two standard "Filer" subclasses (see below): +B, which throws all files from all parses +into the same directory, and B (preferred), which +creates a subdirectory for each message. Hopefully, these will be +sufficient for most uses, but just in case... + +The only method you have to override is L: + + $filer->output_path($head); + +This method is invoked by MIME::Parser when it wants to put a +decoded message body in an output file. The method should return a +path to the file to create. Failure is indicated by throwing an +exception. + +The path returned by C should be "ready for open()": +any necessary parent directories need to exist at that point. +These directories can be created by the Filer, if course, and they +should be marked as B if a purge should delete them. + +Actually, if your issue is more I the files go than +what they're named, you can use the default L +method and just override one of its components: + + $dir = $filer->output_dir($head); + $name = $filer->output_filename($head); + ... + + + +=head1 PUBLIC INTERFACE + + +=head2 MIME::Parser::Filer + +This is the abstract superclass of all "filer" objects. + +=over 4 + +=cut + +use strict; + +### Kit modules: +use MIME::Tools qw(:msgtypes); +use File::Spec; +use File::Path qw(rmtree); +use MIME::WordDecoder; + +### Output path uniquifiers: +my $GFileNo = 0; +my $GSubdirNo = 0; + +### Map content-type to extension. +### If we can't map "major/minor", we try "major/*", then use "*/*". +my %DefaultTypeToExt = +qw( + +application/andrew-inset .ez +application/octet-stream .bin +application/oda .oda +application/pdf .pdf +application/pgp .pgp +application/postscript .ps +application/rtf .rtf +application/x-bcpio .bcpio +application/x-chess-pgn .pgn +application/x-cpio .cpio +application/x-csh .csh +application/x-dvi .dvi +application/x-gtar .gtar +application/x-gunzip .gz +application/x-hdf .hdf +application/x-latex .latex +application/x-mif .mif +application/x-netcdf .cdf +application/x-netcdf .nc +application/x-sh .sh +application/x-shar .shar +application/x-sv4cpio .sv4cpio +application/x-sv4crc .sv4crc +application/x-tar .tar +application/x-tcl .tcl +application/x-tex .tex +application/x-texinfo .texi +application/x-troff .roff +application/x-troff .tr +application/x-troff-man .man +application/x-troff-me .me +application/x-troff-ms .ms +application/x-ustar .ustar +application/x-wais-source .src +application/zip .zip + +audio/basic .snd +audio/ulaw .au +audio/x-aiff .aiff +audio/x-wav .wav + +image/gif .gif +image/ief .ief +image/jpeg .jpg +image/png .png +image/xbm .xbm +image/tiff .tif +image/x-cmu-raster .ras +image/x-portable-anymap .pnm +image/x-portable-bitmap .pbm +image/x-portable-graymap .pgm +image/x-portable-pixmap .ppm +image/x-rgb .rgb +image/x-xbitmap .xbm +image/x-xpixmap .xpm +image/x-xwindowdump .xwd + +text/* .txt +text/html .html +text/plain .txt +text/richtext .rtx +text/tab-separated-values .tsv +text/x-setext .etx +text/x-vcard .vcf + +video/mpeg .mpg +video/quicktime .mov +video/x-msvideo .avi +video/x-sgi-movie .movie + +message/* .msg + +*/* .dat + +); + +#------------------------------ + +=item new INITARGS... + +I +Create a new outputter for the given parser. +Any subsequent arguments are given to init(), which subclasses should +override for their own use (the default init does nothing). + +=cut + +sub new { + my ($class, @initargs) = @_; + my $self = bless { + MPF_Prefix => "msg", + MPF_Dir => ".", + MPF_Ext => { %DefaultTypeToExt }, + MPF_Purgeable => [], ### files created by the last parse + + MPF_MaxName => 80, ### max filename before treated as evil + MPF_TrimRoot => 14, ### trim root to this length + MPF_TrimExt => 3, ### trim extension to this length + }, $class; + $self->init(@initargs); + $self; +} + +sub init { + ### no-op +} + +#------------------------------ +# My PID, but untainted +# +sub untainted_pid +{ + if ($$ =~ /^(\d+)$/) { + return $1; + } + # Can't happen... + return "0"; +} + +#------------------------------ +# +# cleanup_dir +# +# Instance method, private. +# Cleanup a directory, defaulting empty to "." +# +sub cleanup_dir { + my ($self, $dir) = @_; + $dir = '.' if (!defined($dir) || ($dir eq '')); # coerce empty to "." + $dir = '/.' if ($dir eq '/'); # coerce "/" so "$dir/$filename" works + $dir =~ s|/$||; # be nice: get rid of any trailing "/" + $dir; +} + +#------------------------------ + +=item results RESULTS + +I +Link this filer to a MIME::Parser::Results object which will +tally the messages. Notice that we avoid linking it to the +parser to avoid circular reference! + +=cut + +sub results { + my ($self, $results) = @_; + $self->{MPF_Results} = $results if (@_ > 1); + $self->{MPF_Results}; +} + +### Log debug messages: +sub debug { + my $self = shift; + if (MIME::Tools->debugging()) { + if ($self->{MPF_Results}) { + unshift @_, $self->{MPF_Results}->indent; + $self->{MPF_Results}->msg($M_DEBUG, @_); + } + MIME::Tools::debug(@_); + } +} + +### Log warning messages: +sub whine { + my $self = shift; + if ($self->{MPF_Results}) { + unshift @_, $self->{MPF_Results}->indent; + $self->{MPF_Results}->msg($M_WARNING, @_); + } + MIME::Tools::whine(@_); +} + +#------------------------------ + +=item init_parse + +I +Prepare to start parsing a new message. +Subclasses should always be sure to invoke the inherited method. + +=cut + +sub init_parse { + my $self = shift; + $self->{MPF_Purgeable} = []; +} + +#------------------------------ + +=item evil_filename FILENAME + +I +Is this an evil filename; i.e., one which should not be used +in generating a disk file name? It is if any of these are true: + + * it is empty or entirely whitespace + * it contains leading or trailing whitespace + * it is a string of dots: ".", "..", etc. + * it contains characters not in the set: "A" - "Z", "a" - "z", + "0" - "9", "-", "_", "+", "=", ".", ",", "@", "#", + "$", and " ". + * it is too long + +If you just want to change this behavior, you should override +this method in the subclass of MIME::Parser::Filer that you use. + +B at the time this method is invoked, the FILENAME has +already been unmime'd into the local character set. +If you're using any character set other than ASCII, ISO-8859-*, +or UTF-8, the interpretation of the "path" characters might be +very different, and you will probably need to override this method. +See L for more details. + +B subclasses of MIME::Parser::Filer which override +output_path() might not consult this method; note, however, that +the built-in subclasses do consult it. + +I + +=cut + +sub evil_filename { + my ($self, $name) = @_; + + $self->debug("is this evil? '$name'"); + + return 1 if (!defined($name) or ($name eq '')); ### empty + return 1 if ($name =~ m{(^\s)|(\s+\Z)}); ### leading/trailing whitespace + return 1 if ($name =~ m{^\.+\Z}); ### dots + return 1 if ($name =~ /[^-A-Z0-9_+=.,@\#\$\% ]/i); # Only allow good chars + return 1 if ($self->{MPF_MaxName} and + (length($name) > $self->{MPF_MaxName})); + $self->debug("it's ok"); + 0; +} + +#------------------------------ + +=item exorcise_filename FILENAME + +I +If a given filename is evil (see L) we try to +rescue it by performing some basic operations: shortening it, +removing bad characters, etc., and checking each against +evil_filename(). + +Returns the exorcised filename (which is guaranteed to not +be evil), or undef if it could not be salvaged. + +B at the time this method is invoked, the FILENAME has +already been unmime'd into the local character set. +If you're using anything character set other than ASCII, ISO-8859-*, +or UTF-8, the interpretation of the "path" characters might be very +very different, and you will probably need to override this method. +See L for more details. + +=cut + +sub exorcise_filename { + my ($self, $fname) = @_; + + ### Isolate to last path element: + my $last = $fname; + + ### Path separators are / or \ + $last =~ s{^.*[/\\]}{}; + + ### Convert semi-evil characters to underscores + $last =~ s/[\/\\\[\]:]/_/g; + if ($last and !$self->evil_filename($last)) { + $self->debug("looks like I can use the last path element"); + return $last; + } + + ### Break last element into root and extension, and truncate: + my ($root, $ext) = (($last =~ /^(.*)\.([^\.]+)\Z/) + ? ($1, $2) + : ($last, '')); + ### Delete leading and trailing whitespace + $root =~ s/^\s+//; + $ext =~ s/\s+$//; + $root = substr($root, 0, ($self->{MPF_TrimRoot} || 14)); + $ext = substr($ext, 0, ($self->{MPF_TrimExt} || 3)); + $ext =~ /^\w+$/ or $ext = "dat"; + my $trunc = $root . ($ext ? ".$ext" : ''); + if (!$self->evil_filename($trunc)) { + $self->debug("looks like I can use the truncated last path element"); + return $trunc; + } + + ### Remove all bad characters + $trunc =~ s/([^-A-Z0-9_+=.,@\#\$ ])/sprintf("%%%02X", unpack("C", $1))/ige; + if (!$self->evil_filename($trunc)) { + $self->debug("looks like I can use a munged version of the truncated last path element"); + return $trunc; + } + + ### Hope that works: + undef; +} + +#------------------------------ + +=item find_unused_path DIR, FILENAME + +I +We have decided on an output directory and tentative filename, +but there is a chance that it might already exist. Keep +adding a numeric suffix "-1", "-2", etc. to the filename +until an unused path is found, and then return that path. + +The suffix is actually added before the first "." in the filename +is there is one; for example: + + picture.gif archive.tar.gz readme + picture-1.gif archive-1.tar.gz readme-1 + picture-2.gif archive-2.tar.gz readme-2 + ... ... ... + picture-10.gif + ... + +This can be a costly operation, and risky if you don't want files +renamed, so it is in your best interest to minimize situations +where these kinds of collisions occur. Unfortunately, if +a multipart message gives all of its parts the same recommended +filename, and you are placing them all in the same directory, +this method might be unavoidable. + +=cut + +sub find_unused_path { + my ($self, $dir, $fname) = @_; + my $i = 0; + while (1) { + + ### Create suffixed name (from filename), and see if we can use it: + my $suffix = ($i ? "-$i" : ""); + my $sname = $fname; $sname =~ s/^(.*?)(\.|\Z)/$1$suffix$2/; + my $path = File::Spec->catfile($dir, $sname); + if (! -e $path) { ### it's good! + $i and $self->whine("collision with $fname in $dir: using $path"); + return $path; + } + $self->debug("$path already taken"); + } continue { ++$i; } +} + +#------------------------------ + +=item ignore_filename [YESNO] + +I +Return true if we should always ignore recommended filenames in +messages, choosing instead to always generate our own filenames. +With argument, sets this value. + +B subclasses of MIME::Parser::Filer which override +output_path() might not honor this setting; note, however, that +the built-in subclasses honor it. + +=cut + +sub ignore_filename { + my $self = shift; + $self->{MPF_IgnoreFilename} = $_[0] if @_; + $self->{MPF_IgnoreFilename}; +} + +#------------------------------ + +=item output_dir HEAD + +I +Return the output directory for the given header. +The default method returns ".". + +=cut + +sub output_dir { + my ($self, $head) = @_; + return "."; +} + +#------------------------------ + +=item output_filename HEAD + +I +A given recommended filename was either not given, or it was judged +to be evil. Return a fake name, possibly using information in the +message HEADer. Note that this is just the filename, not the full path. + +Used by L. +If you're using the default C, you probably don't +need to worry about avoiding collisions with existing files; +we take care of that in L. + +=cut + +sub output_filename { + my ($self, $head) = @_; + + ### Get the recommended name: + my $recommended = $head->recommended_filename; + + ### Get content type: + my ($type, $subtype) = split m{/}, $head->mime_type; $subtype ||= ''; + + ### Get recommended extension, being quite conservative: + my $recommended_ext = (($recommended and ($recommended =~ m{(\.\w+)\Z})) + ? $1 + : undef); + + ### Try and get an extension, honoring a given one first: + my $ext = ($recommended_ext || + $self->{MPF_Ext}{"$type/$subtype"} || + $self->{MPF_Ext}{"$type/*"} || + $self->{MPF_Ext}{"*/*"} || + ".dat"); + + ### Get a prefix: + ++$GFileNo; + return ($self->output_prefix . "-" . untainted_pid() . "-$GFileNo$ext"); +} + +#------------------------------ + +=item output_prefix [PREFIX] + +I +Get the short string that all filenames for extracted body-parts +will begin with (assuming that there is no better "recommended filename"). +The default is F<"msg">. + +If PREFIX I given, the current output prefix is returned. +If PREFIX I given, the output prefix is set to the new value, +and the previous value is returned. + +Used by L. + +B subclasses of MIME::Parser::Filer which override +output_path() or output_filename() might not honor this setting; +note, however, that the built-in subclasses honor it. + +=cut + +sub output_prefix { + my ($self, $prefix) = @_; + $self->{MPF_Prefix} = $prefix if (@_ > 1); + $self->{MPF_Prefix}; +} + +#------------------------------ + +=item output_type_ext + +I +Return a reference to the hash used by the default +L for mapping from content-types +to extensions when there is no default extension to use. + + $emap = $filer->output_typemap; + $emap->{'text/plain'} = '.txt'; + $emap->{'text/html'} = '.html'; + $emap->{'text/*'} = '.txt'; + $emap->{'*/*'} = '.dat'; + +B subclasses of MIME::Parser::Filer which override +output_path() or output_filename() might not consult this hash; +note, however, that the built-in subclasses consult it. + +=cut + +sub output_type_ext { + my $self = shift; + return $self->{MPF_Ext}; +} + +#------------------------------ + +=item output_path HEAD + +I +Given a MIME head for a file to be extracted, come up with a good +output pathname for the extracted file. This is the only method +you need to worry about if you are building a custom filer. + +The default implementation does a lot of work; subclass +implementers I should try to just override its components +instead of the whole thing. It works basically as follows: + + $directory = $self->output_dir($head); + + $filename = $head->recommended_filename(); + if (!$filename or + $self->ignore_filename() or + $self->evil_filename($filename)) { + $filename = $self->output_filename($head); + } + + return $self->find_unused_path($directory, $filename); + +B There are many, many, many ways you might want to control +the naming of files, based on your application. If you don't like +the behavior of this function, you can easily define your own subclass +of MIME::Parser::Filer and override it there. + +B Nickolay Saukh pointed out that, given the subjective nature of +what is "evil", this function really shouldn't I about an evil +filename, but maybe just issue a I message. I considered that, +but then I thought: if debugging were off, people wouldn't know why +(or even if) a given filename had been ignored. In mail robots +that depend on externally-provided filenames, this could cause +hard-to-diagnose problems. So, the message is still a warning. + +I + +=cut + +sub output_path { + my ($self, $head) = @_; + + ### Get the output directory: + my $dir = $self->output_dir($head); + + ### Get the output filename as UTF-8 + my $fname = $head->recommended_filename; + + ### Can we use it: + if (!defined($fname)) { + $self->debug("no filename recommended: synthesizing our own"); + $fname = $self->output_filename($head); + } + elsif ($self->ignore_filename) { + $self->debug("ignoring all external filenames: synthesizing our own"); + $fname = $self->output_filename($head); + } + elsif ($self->evil_filename($fname)) { + + ### Can we save it by just taking the last element? + my $ex = $self->exorcise_filename($fname); + if (defined($ex) and !$self->evil_filename($ex)) { + $self->whine("Provided filename '$fname' is regarded as evil, ", + "but I was able to exorcise it and get something ", + "usable."); + $fname = $ex; + } + else { + $self->whine("Provided filename '$fname' is regarded as evil; ", + "I'm ignoring it and supplying my own."); + $fname = $self->output_filename($head); + } + } else { + # Untaint $fname... we know it's not evil + if ($fname =~ /^(.*)$/) { + $fname = $1; + } + } + + $self->debug("planning to use '$fname'"); + + ### Resolve collisions and return final path: + return $self->find_unused_path($dir, $fname); +} + +#------------------------------ + +=item purge + +I +Purge all files/directories created by the last parse. +This method simply goes through the purgeable list in reverse order +(see L) and removes all existing files/directories in it. +You should not need to override this method. + +=cut + +sub purge { + my ($self) = @_; + foreach my $path (reverse @{$self->{MPF_Purgeable}}) { + (-e $path) or next; ### must check: might delete DIR before DIR/FILE + rmtree($path, 0, 1); + (-e $path) and $self->whine("unable to purge: $path"); + } + 1; +} + +#------------------------------ + +=item purgeable [FILE] + +I +Add FILE to the list of "purgeable" files/directories (those which +will be removed if you do a C). +You should not need to override this method. + +If FILE is not given, the "purgeable" list is returned. +This may be used for more-sophisticated purging. + +As a special case, invoking this method with a FILE that is an +arrayref will replace the purgeable list with a copy of the +array's contents, so [] may be used to clear the list. + +Note that the "purgeable" list is cleared when a parser begins a +new parse; therefore, if you want to use purge() to do cleanup, +you I do so I starting a new parse! + +=cut + +sub purgeable { + my ($self, $path) = @_; + return @{$self->{MPF_Purgeable}} if (@_ == 1); + + if (ref($path)) { $self->{MPF_Purgeable} = [ @$path ]; } + else { push @{$self->{MPF_Purgeable}}, $path; } + 1; +} + +=back + +=cut + + +#------------------------------------------------------------ +#------------------------------------------------------------ + +=head2 MIME::Parser::FileInto + +This concrete subclass of MIME::Parser::Filer supports filing +into a given directory. + +=over 4 + +=cut + +package MIME::Parser::FileInto; + +use strict; +use vars qw(@ISA); +@ISA = qw(MIME::Parser::Filer); + +#------------------------------ + +=item init DIRECTORY + +I +Set the directory where all files will go. + +=cut + +sub init { + my ($self, $dir) = @_; + $self->{MPFI_Dir} = $self->cleanup_dir($dir); +} + +#------------------------------ +# +# output_dir HEAD +# +# I +# Return the output directory where the files go. +# +sub output_dir { + shift->{MPFI_Dir}; +} + +=back + +=cut + + + + +#------------------------------------------------------------ +#------------------------------------------------------------ + +=head2 MIME::Parser::FileUnder + +This concrete subclass of MIME::Parser::Filer supports filing under +a given directory, using one subdirectory per message, but with +all message parts in the same directory. + +=over 4 + +=cut + +package MIME::Parser::FileUnder; + +use strict; +use vars qw(@ISA); +@ISA = qw(MIME::Parser::Filer); + +#------------------------------ + +=item init BASEDIR, OPTSHASH... + +I +Set the base directory which will contain the message directories. +If used, then each parse of begins by creating a new subdirectory +of BASEDIR where the actual parts of the message are placed. +OPTSHASH can contain the following: + +=over 4 + +=item DirName + +Explicitly set the name of the subdirectory which is created. +The default is to use the time, process id, and a sequence number, +but you might want a predictable directory. + +=item Purge + +Automatically purge the contents of the directory (including all +subdirectories) before each parse. This is really only needed if +using an explicit DirName, and is provided as a convenience only. +Currently we use the 1-arg form of File::Path::rmtree; you should +familiarize yourself with the caveats therein. + +=back + +The output_dir() will return the path to this message-specific directory +until the next parse is begun, so you can do this: + + use File::Path; + + $parser->output_under("/tmp"); + $ent = eval { $parser->parse_open($msg); }; ### parse + if (!$ent) { ### parse failed + rmtree($parser->output_dir); + die "parse failed: $@"; + } + else { ### parse succeeded + ...do stuff... + } + +=cut + +sub init { + my ($self, $basedir, %opts) = @_; + + $self->{MPFU_Base} = $self->cleanup_dir($basedir); + $self->{MPFU_DirName} = $opts{DirName}; + $self->{MPFU_Purge} = $opts{Purge}; +} + +#------------------------------ +# +# init_parse +# +# I +# Prepare to start parsing a new message. +# +sub init_parse { + my $self = shift; + + ### Invoke inherited method first! + $self->SUPER::init_parse; + + ### Determine the subdirectory of their base to use: + my $subdir = (defined($self->{MPFU_DirName}) + ? $self->{MPFU_DirName} + : ("msg-" . scalar(time) . "-" . + MIME::Parser::Filer::untainted_pid() . "-" . $GSubdirNo++)); + $self->debug("subdir = $subdir"); + + ### Determine full path to the per-message output directory: + $self->{MPFU_Dir} = File::Spec->catfile($self->{MPFU_Base}, $subdir); + + ### Remove and re-create the per-message output directory: + rmtree $self->output_dir if $self->{MPFU_Purge}; + (-d $self->output_dir) or + mkdir $self->output_dir, 0700 or + die "mkdir ".$self->output_dir.": $!\n"; + + ### Add the per-message output directory to the puregables: + $self->purgeable($self->output_dir); + 1; +} + +#------------------------------ +# +# output_dir HEAD +# +# I +# Return the output directory that we used for the last parse. +# +sub output_dir { + shift->{MPFU_Dir}; +} + +=back + +=cut + +1; +__END__ + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Parser/Reader.pm b/git/usr/share/perl5/vendor_perl/MIME/Parser/Reader.pm new file mode 100644 index 0000000000000000000000000000000000000000..bf95aa36451ce9b5c853bda4645422b403b11488 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Parser/Reader.pm @@ -0,0 +1,328 @@ +package MIME::Parser::Reader; + +=head1 NAME + +MIME::Parser::Reader - a line-oriented reader for a MIME::Parser + + +=head1 SYNOPSIS + +This module is used internally by MIME::Parser; you probably +don't need to be looking at it at all. But just in case... + + ### Create a top-level reader, where chunks end at EOF: + $rdr = MIME::Parser::Reader->new(); + + ### Spawn a child reader, where chunks also end at a boundary: + $subrdr = $rdr->spawn->add_boundary($bound); + + ### Spawn a child reader, where chunks also end at a given string: + $subrdr = $rdr->spawn->add_terminator($string); + + ### Read until boundary or terminator: + $subrdr->read_chunk($in, $out); + + +=head1 DESCRIPTION + +A line-oriented reader which can deal with virtual end-of-stream +defined by a collection of boundaries. + +B this is a private class solely for use by MIME::Parser. +This class has no official public interface + +=cut + +use strict; + +### All possible end-of-line sequences. +### Note that "" is included because last line of stream may have no newline! +my @EOLs = ("", "\r", "\n", "\r\n", "\n\r"); + +### Long line: +my $LONGLINE = ' ' x 1000; + + +#------------------------------ +# +# new +# +# I +# Construct an empty (top-level) reader. +# +sub new { + my ($class) = @_; + my $eos; + return bless { + Bounds => [], + BH => {}, + TH => {}, + EOS => \$eos, + }, $class; +} + +#------------------------------ +# +# spawn +# +# I +# Return a reader which is mostly a duplicate, except that the EOS +# accumulator is shared. +# +sub spawn { + my $self = shift; + my $dup = bless {}, ref($self); + $dup->{Bounds} = [ @{$self->{Bounds}} ]; ### deep copy + $dup->{BH} = { %{$self->{BH}} }; ### deep copy + $dup->{TH} = { %{$self->{TH}} }; ### deep copy + $dup->{EOS} = $self->{EOS}; ### shallow copy; same ref! + $dup; +} + +#------------------------------ +# +# add_boundary BOUND +# +# I +# Let BOUND be the new innermost boundary. Returns self. +# +sub add_boundary { + my ($self, $bound) = @_; + unshift @{$self->{Bounds}}, $bound; ### now at index 0 + $self->{BH}{"--$bound"} = "DELIM $bound"; + $self->{BH}{"--$bound--"} = "CLOSE $bound"; + $self; +} + +#------------------------------ +# +# add_terminator LINE +# +# I +# Let LINE be another terminator. Returns self. +# +sub add_terminator { + my ($self, $line) = @_; + foreach (@EOLs) { + $self->{TH}{"$line$_"} = "DONE $line"; + } + $self; +} + +#------------------------------ +# +# has_bounds +# +# I +# Are there boundaries to contend with? +# +sub has_bounds { + scalar(@{shift->{Bounds}}); +} + +#------------------------------ +# +# depth +# +# I +# How many levels are there? +# +sub depth { + scalar(@{shift->{Bounds}}); +} + +#------------------------------ +# +# eos [EOS] +# +# I +# Return the last end-of-stream token seen. +# See read_chunk() for what these might be. +# +sub eos { + my $self = shift; + ${$self->{EOS}} = $_[0] if @_; + ${$self->{EOS}}; +} + +#------------------------------ +# +# eos_type [EOSTOKEN] +# +# I +# Return the high-level type of the given token (defaults to our token). +# +# DELIM saw an innermost boundary like --xyz +# CLOSE saw an innermost boundary like --xyz-- +# DONE callback returned false +# EOF end of file +# EXT saw boundary of some higher-level +# +sub eos_type { + my ($self, $eos) = @_; + $eos = $self->eos if (@_ == 1); + + if ($eos =~ /^(DONE|EOF)/) { + return $1; + } + elsif ($eos =~ /^(DELIM|CLOSE) (.*)$/) { + return (($2 eq $self->{Bounds}[0]) ? $1 : 'EXT'); + } + else { + die("internal error: unable to classify boundary token ($eos)"); + } +} + +#------------------------------ +# +# native_handle HANDLE +# +# I +# Can we do native i/o on HANDLE? If true, returns the handle +# that will respond to native I/O calls; else, returns undef. +# +sub native_handle { + my $fh = shift; + return $fh if ($fh->isa('IO::File') || $fh->isa('IO::Handle')); + return $fh if (ref $fh eq 'GLOB'); + undef; +} + +#------------------------------ +# +# read_chunk INHANDLE, OUTHANDLE +# +# I +# Get lines until end-of-stream. +# Returns the terminating-condition token: +# +# DELIM xyz saw boundary line "--xyz" +# CLOSE xyz saw boundary line "--xyz--" +# DONE xyz saw terminator line "xyz" +# EOF end of file + +# Parse up to (and including) the boundary, and dump output. +# Follows the RFC 2046 specification, that the CRLF immediately preceding +# the boundary is part of the boundary, NOT part of the input! +# +# NOTE: while parsing bodies, we take care to remember the EXACT end-of-line +# sequence. This is because we *may* be handling 'binary' encoded data, and +# in that case we can't just massage \r\n into \n! Don't worry... if the +# data is styled as '7bit' or '8bit', the "decoder" will massage the CRLF +# for us. For now, we're just trying to chop up the data stream. + +# NBK - Oct 12, 1999 +# The CRLF at the end of the current line is considered part +# of the boundary. I buffer the current line and output the +# last. I strip the last CRLF when I hit the boundary. + +sub read_chunk { + my ($self, $in, $out, $keep_newline, $normalize_newlines) = @_; + + # If we're parsing a preamble or epilogue, we need to keep the blank line + # that precedes the boundary line. + $keep_newline ||= 0; + + $normalize_newlines ||= 0; + ### Init: + my %bh = %{$self->{BH}}; + my %th = %{$self->{TH}}; my $thx = keys %th; + local $_ = $LONGLINE; + my $maybe; + my $last = ''; + my $eos = ''; + + ### Determine types: + my $n_in = native_handle($in); + my $n_out = native_handle($out); + + ### Handle efficiently by type: + if ($n_in) { + if ($n_out) { ### native input, native output [fastest] + while (<$n_in>) { + # Normalize line ending + $_ =~ s/(?:\n\r|\r\n|\r)$/\n/ if $normalize_newlines; + if (substr($_, 0, 2) eq '--') { + ($maybe = $_) =~ s/[ \t\r\n]+\Z//; + $bh{$maybe} and do { $eos = $bh{$maybe}; last }; + } + $thx and $th{$_} and do { $eos = $th{$_}; last }; + print $n_out $last; $last = $_; + } + } + else { ### native input, OO output [slower] + while (<$n_in>) { + # Normalize line ending + $_ =~ s/(?:\n\r|\r\n|\r)$/\n/ if $normalize_newlines; + if (substr($_, 0, 2) eq '--') { + ($maybe = $_) =~ s/[ \t\r\n]+\Z//; + $bh{$maybe} and do { $eos = $bh{$maybe}; last }; + } + $thx and $th{$_} and do { $eos = $th{$_}; last }; + $out->print($last); $last = $_; + } + } + } + else { + if ($n_out) { ### OO input, native output [even slower] + while (defined($_ = $in->getline)) { + # Normalize line ending + $_ =~ s/(?:\n\r|\r\n|\r)$/\n/ if $normalize_newlines; + if (substr($_, 0, 2) eq '--') { + ($maybe = $_) =~ s/[ \t\r\n]+\Z//; + $bh{$maybe} and do { $eos = $bh{$maybe}; last }; + } + $thx and $th{$_} and do { $eos = $th{$_}; last }; + print $n_out $last; $last = $_; + } + } + else { ### OO input, OO output [slowest] + while (defined($_ = $in->getline)) { + # Normalize line ending + $_ =~ s/(?:\n\r|\r\n|\r)$/\n/ if $normalize_newlines; + if (substr($_, 0, 2) eq '--') { + ($maybe = $_) =~ s/[ \t\r\n]+\Z//; + $bh{$maybe} and do { $eos = $bh{$maybe}; last }; + } + $thx and $th{$_} and do { $eos = $th{$_}; last }; + $out->print($last); $last = $_; + } + } + } + + # Write out last held line, removing terminating CRLF if ended on bound, + # unless the line consists only of CRLF and we're wanting to keep the + # preceding blank line (as when parsing a preamble) + $last =~ s/[\r\n]+\Z// if ($eos =~ /^(DELIM|CLOSE)/ && !($keep_newline && $last =~ m/^[\r\n]\z/)); + $out->print($last); + + ### Save and return what we finished on: + ${$self->{EOS}} = ($eos || 'EOF'); + 1; +} + +#------------------------------ +# +# read_lines INHANDLE, \@OUTLINES +# +# I +# Read lines into the given array. +# +sub read_lines { + my ($self, $in, $outlines) = @_; + + my $data = ''; + open(my $fh, '>', \$data) or die $!; + $self->read_chunk($in, $fh); + @$outlines = split(/^/, $data); + close $fh; + + 1; +} + +1; +__END__ + +=head1 SEE ALSO + +L, L diff --git a/git/usr/share/perl5/vendor_perl/MIME/Parser/Results.pm b/git/usr/share/perl5/vendor_perl/MIME/Parser/Results.pm new file mode 100644 index 0000000000000000000000000000000000000000..a0c9e2fedb1c052ca74dd7d577e762fcb8ade23a --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Parser/Results.pm @@ -0,0 +1,186 @@ +package MIME::Parser::Results; + +=head1 NAME + +MIME::Parser::Results - results of the last entity parsed + + +=head1 SYNOPSIS + +Before reading further, you should see L to make sure that +you understand where this module fits into the grand scheme of things. +Go on, do it now. I'll wait. + +Ready? Ok... + + ### Do parse, get results: + my $entity = eval { $parser->parse(\*STDIN); }; + my $results = $parser->results; + + ### Get all messages logged: + @msgs = $results->msgs; + + ### Get messages of specific types (also tests if there were problems): + $had_errors = $results->errors; + $had_warnings = $results->warnings; + + ### Get outermost header: + $top_head = $results->top_head; + + +=head1 DESCRIPTION + +Results from the last MIME::Parser parse. + + +=head1 PUBLIC INTERFACE + +=over 4 + +=cut + +use strict; + +### Kit modules: +use MIME::Tools qw(:msgs); + + +#------------------------------ + +=item new + +I + +=cut + +sub new { + bless { + MPI_ID => 'MIME-parser', + MPI_Msgs => [], + MPI_Level => 0, + MPI_TopHead => undef, + }, shift; +} + +#------------------------------ + +=item msgs + +I +Return all messages that we logged, in order. +Every message is a string beginning with its type followed by C<": ">; +the current types are C, C, and C. + +=cut + +sub msgs { + @{shift->{MPI_Msgs}}; +} + +#------------------------------ + +=item errors + +I +Return all error messages that we logged, in order. +A convenience front-end onto msgs(). + +=cut + +sub errors { + grep /^error: /, @{shift->{MPI_Msgs}}; +} + +#------------------------------ + +=item warnings + +I +Return all warning messages that we logged, in order. +A convenience front-end onto msgs(). + +=cut + +sub warnings { + grep /^warning: /, @{shift->{MPI_Msgs}}; +} + +#------------------------------ + +=item top_head + +I +Return the topmost header, if we were able to read it. +This may be useful if the parse fails. + +=cut + +sub top_head { + my ($self, $head) = @_; + $self->{MPI_TopHead} = $head if @_ > 1; + $self->{MPI_TopHead}; +} + + + + +#------------------------------ +# +# PRIVATE: FOR USE DURING PARSING ONLY! +# + +#------------------------------ +# +# msg TYPE, MESSAGE... +# +# Take a message. +# +sub msg { + my $self = shift; + my $type = shift; + my @args = map { defined($_) ? $_ : '<>' } @_; + + push @{$self->{MPI_Msgs}}, ($type.": ".join('', @args)."\n"); +} + +#------------------------------ +# +# level [+1|-1] +# +# Return current parsing level. +# +sub level { + my ($self, $lvl) = @_; + $self->{MPI_Level} += $lvl if @_ > 1; + $self->{MPI_Level}; +} + +#------------------------------ +# +# indent +# +# Return indent for current parsing level. +# +sub indent { + my ($self) = @_; + ' ' x $self->{MPI_Level}; +} + +=back + +=cut + +1; +__END__ + +=head1 SEE ALSO + +L, L + +=head1 AUTHOR + +Eryq (F), ZeeGee Software Inc (F). + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + diff --git a/git/usr/share/perl5/vendor_perl/MIME/Tools.pm b/git/usr/share/perl5/vendor_perl/MIME/Tools.pm new file mode 100644 index 0000000000000000000000000000000000000000..e250a18a9b8fcb69968111a52e365f8d1a140ca6 --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/MIME/Tools.pm @@ -0,0 +1,1043 @@ +package MIME::Tools; + +#------------------------------ +# Because the POD documentation is pretty extensive, it follows +# the __END__ statement below... +#------------------------------ + +use strict; +use vars (qw(@ISA %CONFIG @EXPORT_OK %EXPORT_TAGS $VERSION $ME + $M_DEBUG $M_WARNING $M_ERROR )); + +require Exporter; +use IO::File; +use File::Temp 0.18 (); +use Carp; + +$ME = "MIME-tools"; + +@ISA = qw(Exporter); + +# Exporting (importing should only be done by modules in this toolkit!): +%EXPORT_TAGS = ( + 'config' => [qw(%CONFIG)], + 'msgs' => [qw(usage debug whine error)], + 'msgtypes'=> [qw($M_DEBUG $M_WARNING $M_ERROR)], + 'utils' => [qw(textual_type tmpopen )], + ); +Exporter::export_ok_tags('config', 'msgs', 'msgtypes', 'utils'); + +# The TOOLKIT version, both in 1.23 style *and* usable by MakeMaker: +$VERSION = "5.517"; + +# Configuration (do NOT alter this directly)... +# All legal CONFIG vars *must* be in here, even if only to be set to undef: +%CONFIG = + ( + DEBUGGING => 0, + QUIET => 1, + ); + +# Message-logging constants: +$M_DEBUG = 'debug'; +$M_WARNING = 'warning'; +$M_ERROR = 'error'; + + + +#------------------------------ +# +# CONFIGURATION... (see below) +# +#------------------------------ + +sub config { + my $class = shift; + usage("config() is obsolete"); + + # No args? Just return list: + @_ or return keys %CONFIG; + my $method = lc(shift); + return $class->$method(@_); +} + +sub debugging { + my ($class, $value) = @_; + $CONFIG{'DEBUGGING'} = $value if (@_ > 1); + return $CONFIG{'DEBUGGING'}; +} + +sub quiet { + my ($class, $value) = @_; + $CONFIG{'QUIET'} = $value if (@_ > 1); + return $CONFIG{'QUIET'}; +} + +sub version { + my ($class, $value) = @_; + return $VERSION; +} + + + +#------------------------------ +# +# MESSAGES... +# +#------------------------------ + +#------------------------------ +# +# debug MESSAGE... +# +# Function, private. +# Output a debug message. +# +sub debug { + print STDERR "$ME: $M_DEBUG: ", @_, "\n" if $CONFIG{DEBUGGING}; +} + +#------------------------------ +# +# whine MESSAGE... +# +# Function, private. +# Something doesn't look right: issue a warning. +# Only output if $^W (-w) is true, and we're not being QUIET. +# +sub whine { + my $msg = "$ME: $M_WARNING: ".join('', @_)."\n"; + warn $msg if ($^W && !$CONFIG{QUIET}); + return (wantarray ? () : undef); +} + +#------------------------------ +# +# error MESSAGE... +# +# Function, private. +# Something failed, but not so badly that we want to throw an +# exception. Just report our general unhappiness. +# Only output if $^W (-w) is true, and we're not being QUIET. +# +sub error { + my $msg = "$ME: $M_ERROR: ".join('', @_)."\n"; + warn $msg if ($^W && !$CONFIG{QUIET}); + return (wantarray ? () : undef); +} + +#------------------------------ +# +# usage MESSAGE... +# +# Register unhappiness about usage. +# +sub usage { + my ( $p, $f, $l, $s) = caller(1); + my ($cp, $cf, $cl, $cs) = caller(2); + my $msg = join('', (($s =~ /::/) ? "$s() " : "${p}::$s() "), @_, "\n"); + my $loc = ($cf ? "\tin code called from $cf l.$cl" : ''); + + warn "$msg$loc\n" if ($^W && !$CONFIG{QUIET}); + return (wantarray ? () : undef); +} + + + +#------------------------------ +# +# UTILS... +# +#------------------------------ + +#------------------------------ +# +# textual_type MIMETYPE +# +# Function. Does the given MIME type indicate a textlike document? +# +sub textual_type { + ($_[0] =~ m{^(text|message)(/|\Z)}i); +} + +#------------------------------ +# +# tmpopen +# +# +sub tmpopen +{ + my ($args) = @_; + $args ||= {}; + return File::Temp->new( %{$args} ); +} + +#------------------------------ +1; +__END__ + + +=head1 NAME + +MIME-tools - modules for parsing (and creating!) MIME entities + + +=head1 SYNOPSIS + +Here's some pretty basic code for B and outputting +its decoded components to a given directory: + + use MIME::Parser; + + ### Create parser, and set some parsing options: + my $parser = new MIME::Parser; + $parser->output_under("$ENV{HOME}/mimemail"); + + ### Parse input: + $entity = $parser->parse(\*STDIN) or die "parse failed\n"; + + ### Take a look at the top-level entity (and any parts it has): + $entity->dump_skeleton; + + +Here's some code which B containing +three parts: a text file, an attached GIF, and some more text: + + use MIME::Entity; + + ### Create the top-level, and set up the mail headers: + $top = MIME::Entity->build(Type =>"multipart/mixed", + From => "me\@myhost.com", + To => "you\@yourhost.com", + Subject => "Hello, nurse!"); + + ### Part #1: a simple text document: + $top->attach(Path=>"./testin/short.txt"); + + ### Part #2: a GIF file: + $top->attach(Path => "./docs/mime-sm.gif", + Type => "image/gif", + Encoding => "base64"); + + ### Part #3: some literal text: + $top->attach(Data=>$message); + + ### Send it: + open MAIL, "| /usr/lib/sendmail -t -oi -oem" or die "open: $!"; + $top->print(\*MAIL); + close MAIL; + + +For more examples, look at the scripts in the B directory +of the MIME-tools distribution. + + + +=head1 DESCRIPTION + +MIME-tools is a collection of Perl5 MIME:: modules for parsing, decoding, +I single- or multipart (even nested multipart) MIME +messages. (Yes, kids, that means you can send messages with attached +GIF files). + + +=head1 REQUIREMENTS + +You will need the following installed on your system: + + File::Path + File::Spec + IPC::Open2 (optional) + MIME::Base64 + MIME::QuotedPrint + Net::SMTP + Mail::Internet, ... from the MailTools distribution. + +See the Makefile.PL in your distribution for the most-comprehensive +list of prerequisite modules and their version numbers. + + +=head1 A QUICK TOUR + +=head2 Overview of the classes + +Here are the classes you'll generally be dealing with directly: + + + (START HERE) results() .-----------------. + \ .-------->| MIME:: | + .-----------. / | Parser::Results | + | MIME:: |--' `-----------------' + | Parser |--. .-----------------. + `-----------' \ filer() | MIME:: | + | parse() `-------->| Parser::Filer | + | gives you `-----------------' + | a... | output_path() + | | determines + | | path() of... + | head() .--------. | + | returns... | MIME:: | get() | + V .-------->| Head | etc... | + .--------./ `--------' | + .---> | MIME:: | | + `-----| Entity | .--------. | + parts() `--------'\ | MIME:: | / + returns `-------->| Body |<---------' + sub-entities bodyhandle() `--------' + (if any) returns... | open() + | returns... + | + V + .--------. read() + | IO:: | getline() + | Handle | print() + `--------' etc... + + +To illustrate, parsing works this way: + +=over 4 + +=item * + +B +A parser is an instance of C. +You hand it an input stream (like a filehandle) to parse a message from: +if the parse is successful, the result is an "entity". + +=item * + +B +An entity is an instance of C (a subclass of C). +If the message had "parts" (e.g., attachments), then those parts +are "entities" as well, contained inside the top-level entity. +Each entity has a "head" and a "body". + +=item * + +B +A "head" is an instance of C (a subclass of C). +It contains information from the message header: content type, +sender, subject line, etc. + +=item * + +B +You can ask to "open" this data source for I or I, +and you will get back an "I/O handle". + +=item * + +B +This handle is an object that is basically like an IO::Handle... it +can be any class, so long as it supports a small, standard set of +methods for reading from or writing to the underlying data source. + +=back + +A typical multipart message containing two parts -- a textual greeting +and an "attached" GIF file -- would be a tree of MIME::Entity objects, +each of which would have its own MIME::Head. Like this: + + .--------. + | MIME:: | Content-type: multipart/mixed + | Entity | Subject: Happy Samhaine! + `--------' + | + `----. + parts | + | .--------. + |---| MIME:: | Content-type: text/plain; charset=us-ascii + | | Entity | Content-transfer-encoding: 7bit + | `--------' + | .--------. + |---| MIME:: | Content-type: image/gif + | Entity | Content-transfer-encoding: base64 + `--------' Content-disposition: inline; + filename="hs.gif" + + + +=head2 Parsing messages + +You usually start by creating an instance of B +and setting up certain parsing parameters: what directory to save +extracted files to, how to name the files, etc. + +You then give that instance a readable filehandle on which waits a +MIME message. If all goes well, you will get back a B +object (a subclass of B), which consists of... + +=over 4 + +=item * + +A B (a subclass of B) which holds the MIME +header data. + +=item * + +A B, which is a object that knows where the body data is. +You ask this object to "open" itself for reading, and it +will hand you back an "I/O handle" for reading the data: this could be +of any class, so long as it conforms to a subset of the B +interface. + +=back + +If the original message was a multipart document, the MIME::Entity +object will have a non-empty list of "parts", each of which is in +turn a MIME::Entity (which might also be a multipart entity, etc, +etc...). + +Internally, the parser (in MIME::Parser) asks for instances +of B whenever it needs to decode an encoded file. +MIME::Decoder has a mapping from supported encodings (e.g., 'base64') +to classes whose instances can decode them. You can add to this mapping +to try out new/experiment encodings. You can also use +MIME::Decoder by itself. + + +=head2 Composing messages + +All message composition is done via the B class. +For single-part messages, you can use the B +constructor to create MIME entities very easily. + +For multipart messages, you can start by creating a top-level +C entity with B, and then use +the similar B method to attach parts to +that message. I what most people think of as +"a text message with an attached GIF file" is I a multipart +message with 2 parts: the first being the text message, and the +second being the GIF file. + +When building MIME a entity, you'll have to provide two very important +pieces of information: the I and the +I. The type is usually easy, as it is directly +determined by the file format; e.g., an HTML file is C. +The encoding, however, is trickier... for example, some HTML files are +C<7bit>-compliant, but others might have very long lines and would need to be +sent C for reliability. + +See the section on encoding/decoding for more details, as well as +L<"A MIME PRIMER"> below. + + +=head2 Sending email + +Since MIME::Entity inherits directly from Mail::Internet, +you can use the normal Mail::Internet mechanisms to send +email. For example, + + $entity->smtpsend; + + + +=head2 Encoding/decoding support + +The B class can be used to I as well; this is done +when printing MIME entities. All the standard encodings are supported +(see L<"A MIME PRIMER"> below for details): + + Encoding: | Normally used when message contents are: + ------------------------------------------------------------------- + 7bit | 7-bit data with under 1000 chars/line, or multipart. + 8bit | 8-bit data with under 1000 chars/line. + binary | 8-bit data with some long lines (or no line breaks). + quoted-printable | Text files with some 8-bit chars (e.g., Latin-1 text). + base64 | Binary files. + +Which encoding you choose for a given document depends largely on +(1) what you know about the document's contents (text vs binary), and +(2) whether you need the resulting message to have a reliable encoding +for 7-bit Internet email transport. + +In general, only C and C guarantee reliable +transport of all data; the other three "no-encoding" encodings simply +pass the data through, and are only reliable if that data is 7bit ASCII +with under 1000 characters per line, and has no conflicts with the +multipart boundaries. + +I've considered making it so that the content-type and encoding +can be automatically inferred from the file's path, but that seems +to be asking for trouble... or at least, for Mail::Cap... + + + +=head2 Message-logging + +MIME-tools is a large and complex toolkit which tries to deal with +a wide variety of external input. It's sometimes helpful to see +what's really going on behind the scenes. +There are several kinds of messages logged by the toolkit itself: + +=over 4 + +=item Debug messages + +These are printed directly to the STDERR, with a prefix of +C<"MIME-tools: debug">. + +Debug message are only logged if you have turned +L on in the MIME::Tools configuration. + + +=item Warning messages + +These are logged by the standard Perl warn() mechanism +to indicate an unusual situation. +They all have a prefix of C<"MIME-tools: warning">. + +Warning messages are only logged if C<$^W> is set true +and MIME::Tools is not configured to be L. + + +=item Error messages + +These are logged by the standard Perl warn() mechanism +to indicate that something actually failed. +They all have a prefix of C<"MIME-tools: error">. + +Error messages are only logged if C<$^W> is set true +and MIME::Tools is not configured to be L. + + +=item Usage messages + +Unlike "typical" warnings above, which warn about problems processing +data, usage-warnings are for alerting developers of deprecated methods +and suspicious invocations. + +Usage messages are currently only logged if C<$^W> is set true +and MIME::Tools is not configured to be L. + +=back + +When a MIME::Parser (or one of its internal helper classes) +wants to report a message, it generally does so by recording +the message to the B object +immediately before invoking the appropriate function above. +That means each parsing run has its own trace-log which +can be examined for problems. + + +=head2 Configuring the toolkit + +If you want to tweak the way this toolkit works (for example, to +turn on debugging), use the routines in the B module. + +=over + +=item debugging + +Turn debugging on or off. +Default is false (off). + + MIME::Tools->debugging(1); + + +=item quiet + +Turn the reporting of warning/error messages on or off. +Default is true, meaning that these message are silenced. + + MIME::Tools->quiet(1); + + +=item version + +Return the toolkit version. + + print MIME::Tools->version, "\n"; + +=back + + + + + + + + +=head1 THINGS YOU SHOULD DO + + +=head2 Take a look at the examples + +The MIME-Tools distribution comes with an "examples" directory. +The scripts in there are basically just tossed-together, but +they'll give you some ideas of how to use the parser. + + +=head2 Run with warnings enabled + +I run your Perl script with C<-w>. +If you see a warning about a deprecated method, change your +code ASAP. This will ease upgrades tremendously. + + +=head2 Avoid non-standard encodings + +Don't try to MIME-encode using the non-standard MIME encodings. +It's just not a good practice if you want people to be able to +read your messages. + + +=head2 Plan for thrown exceptions + +For example, if your mail-handling code absolutely must not die, +then perform mail parsing like this: + + $entity = eval { $parser->parse(\*INPUT) }; + +Parsing is a complex process, and some components may throw exceptions +if seriously-bad things happen. Since "seriously-bad" is in the +eye of the beholder, you're better off I possible exceptions +instead of asking me to propagate C up the stack. Use of exceptions in +reusable modules is one of those religious issues we're never all +going to agree upon; thankfully, that's what C is good for. + + +=head2 Check the parser results for warnings/errors + +As of 5.3xx, the parser tries extremely hard to give you a +MIME::Entity. If there were any problems, it logs warnings/errors +to the underlying "results" object (see L). +Look at that object after each parse. +Print out the warnings and errors, I if messages don't +parse the way you thought they would. + + +=head2 Don't plan on printing exactly what you parsed! + +I +Because of things like ambiguities in base64-encoding, the following +is I going to spit out its input unchanged in all cases: + + $entity = $parser->parse(\*STDIN); + $entity->print(\*STDOUT); + +If you're using MIME::Tools to process email, remember to save +the data you parse if you want to send it on unchanged. +This is vital for things like PGP-signed email. + + +=head2 Understand how international characters are represented + +The MIME standard allows for text strings in headers to contain +characters from any character set, by using special sequences +which look like this: + + =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= + +To be consistent with the existing Mail::Field classes, MIME::Tools +does I automatically unencode these strings, since doing so would +lose the character-set information and interfere with the parsing +of fields (see L for a full explanation). +That means you should be prepared to deal with these encoded strings. + +The most common question then is, B +The answer depends on what you want to decode them I: +ASCII, Latin1, UTF-8, etc. Be aware that your "target" representation +may not support all possible character sets you might encounter; +for example, Latin1 (ISO-8859-1) has no way of representing Big5 +(Chinese) characters. A common practice is to represent "untranslateable" +characters as "?"s, or to ignore them completely. + +To unencode the strings into some of the more-popular Western byte +representations (e.g., Latin1, Latin2, etc.), you can use the decoders +in MIME::WordDecoder (see L). +The simplest way is by using C, a function wrapped +around your "default" decoder, as follows: + + use MIME::WordDecoder; + ... + $subject = unmime $entity->head->get('subject'); + +One place this I done automatically is in extracting the recommended +filename for a part while parsing. That's why you should start by +setting up the best "default" decoder if the default target of Latin1 +isn't to your liking. + + + +=head1 THINGS I DO THAT YOU SHOULD KNOW ABOUT + + +=head2 Fuzzing of CRLF and newline on input + +RFC 2045 dictates that MIME streams have lines terminated by CRLF +(C<"\r\n">). However, it is extremely likely that folks will want to +parse MIME streams where each line ends in the local newline +character C<"\n"> instead. + +An attempt has been made to allow the parser to handle both CRLF +and newline-terminated input. + + +=head2 Fuzzing of CRLF and newline when decoding + +The C<"7bit"> and C<"8bit"> decoders will decode both +a C<"\n"> and a C<"\r\n"> end-of-line sequence into a C<"\n">. + +The C<"binary"> decoder (default if no encoding specified) +still outputs stuff verbatim... so a MIME message with CRLFs +and no explicit encoding will be output as a text file +that, on many systems, will have an annoying ^M at the end of +each line... I. + + +=head2 Fuzzing of CRLF and newline when encoding/composing + +TODO FIXME +All encoders currently output the end-of-line sequence as a C<"\n">, +with the assumption that the local mail agent will perform +the conversion from newline to CRLF when sending the mail. +However, there probably should be an option to output CRLF as per RFC 2045 + + +=head2 Inability to handle multipart boundaries with embedded newlines + +Let's get something straight: this is an evil, EVIL practice. +If your mailer creates multipart boundary strings that contain +newlines, give it two weeks notice and find another one. If your +mail robot receives MIME mail like this, regard it as syntactically +incorrect, which it is. + + +=head2 Ignoring non-header headers + +People like to hand the parser raw messages straight from +POP3 or from a mailbox. There is often predictable non-header +information in front of the real headers; e.g., the initial +"From" line in the following message: + + From - Wed Mar 22 02:13:18 2000 + Return-Path: + Subject: Hello + +The parser simply ignores such stuff quietly. Perhaps it +shouldn't, but most people seem to want that behavior. + + +=head2 Fuzzing of empty multipart preambles + +Please note that there is currently an ambiguity in the way +preambles are parsed in. The following message fragments I +are regarded as having an empty preamble (where C<\n> indicates a +newline character): + + Content-type: multipart/mixed; boundary="xyz"\n + Subject: This message (#1) has an empty preamble\n + \n + --xyz\n + ... + + Content-type: multipart/mixed; boundary="xyz"\n + Subject: This message (#2) also has an empty preamble\n + \n + \n + --xyz\n + ... + +In both cases, the I completely-empty line (after the "Subject") +marks the end of the header. + +But we should clearly ignore the I empty line in message #2, +since it fills the role of I<"the newline which is only there to make +sure that the boundary is at the beginning of a line">. +Such newlines are I part of the content preceding the boundary; +thus, there is no preamble "content" in message #2. + +However, it seems clear that message #1 I has no preamble +"content", and is in fact merely a compact representation of an +empty preamble. + + +=head2 Use of a temp file during parsing + +I +Although the amount of core available on even a modest home +system continues to grow, the size of attachments continues +to grow with it. I wanted to make sure that even users with small +systems could deal with decoding multi-megabyte sounds and movie files. +That means not being core-bound. + +As of the released 5.3xx, MIME::Parser gets by with only +one temp file open per parser. This temp file provides +a sort of infinite scratch space for dealing with the current +message part. It's fast and lightweight, but you should know +about it anyway. + + +=head2 Why do I assume that MIME objects are email objects? + +Achim Bohnet once pointed out that MIME headers do nothing more than +store a collection of attributes, and thus could be represented as +objects which don't inherit from Mail::Header. + +I agree in principle, but RFC 2045 says otherwise. +RFC 2045 [MIME] headers are a syntactic subset of RFC-822 [email] headers. +Perhaps a better name for these modules would have been RFC1521:: +instead of MIME::, but we're a little beyond that stage now. + +When I originally wrote these modules for the CPAN, I agonized for a long +time about whether or not they really should subclass from B +(then at version 1.17). Thanks to Graham Barr, who graciously evolved +MailTools 1.06 to be more MIME-friendly, unification was achieved +at MIME-tools release 2.0. +The benefits in reuse alone have been substantial. + + + + +=head1 A MIME PRIMER + +So you need to parse (or create) MIME, but you're not quite up on +the specifics? No problem... + + + +=head2 Glossary + +Here are some definitions adapted from RFC 1521 (predecessor of the +current RFC 204[56789] defining MIME) explaining the terminology we +use; each is accompanied by the equivalent in MIME:: module terms... + +=over 4 + +=item attachment + +An "attachment" is common slang for any part of a multipart message -- +except, perhaps, for the first part, which normally carries a user +message describing the attachments that follow (e.g.: "Hey dude, here's +that GIF file I promised you."). + +In our system, an attachment is just a B under the +top-level entity, probably one of its L. + +=item body + +The "body" of an L is that portion of the entity +which follows the L and which contains the real message +content. For example, if your MIME message has a GIF file attachment, +then the body of that attachment is the base64-encoded GIF file itself. + +A body is represented by an instance of B. You get the +body of an entity by sending it a L +message. + +=item body part + +One of the parts of the body of a multipart B. +A body part has a B and a B, so it makes sense to +speak about the body of a body part. + +Since a body part is just a kind of entity, it's represented by +an instance of B. + +=item entity + +An "entity" means either a B or a B. +All entities have a B and a B. + +An entity is represented by an instance of B. +There are instance methods for recovering the +L (a B) and the +L (a B). + +=item header + +This is the top portion of the MIME message, which contains the +"Content-type", "Content-transfer-encoding", etc. Every MIME entity has +a header, represented by an instance of B. You get the +header of an entity by sending it a head() message. + +=item message + +A "message" generally means the complete (or "top-level") message being +transferred on a network. + +There currently is no explicit package for "messages"; under MIME::, +messages are streams of data which may be read in from files or +filehandles. You can think of the B returned by the +B as representing the full message. + + +=back + + +=head2 Content types + +This indicates what kind of data is in the MIME message, usually +as I. The standard major types are shown below. +A more-comprehensive listing may be found in RFC-2046. + +=over 4 + +=item application + +Data which does not fit in any of the other categories, particularly +data to be processed by some type of application program. +C, C, C... + +=item audio + +Audio data. +C files as specified in +"A Standard for Robot Exclusion", at + +Webmasters can use the F file to forbid conforming +robots from accessing parts of their web site. + +The parsed files are kept in a WWW::RobotRules object, and this object +provides methods to check if access to a given URL is prohibited. The +same WWW::RobotRules object can be used for one or more parsed +F files on any number of hosts. + +The following methods are provided: + +=over 4 + +=item $rules = WWW::RobotRules->new($robot_name) + +This is the constructor for WWW::RobotRules objects. The first +argument given to new() is the name of the robot. + +=item $rules->parse($robot_txt_url, $content, $fresh_until) + +The parse() method takes as arguments the URL that was used to +retrieve the F file, and the contents of the file. + +=item $rules->allowed($uri) + +Returns TRUE if this robot is allowed to retrieve this URL. + +=item $rules->agent([$name]) + +Get/set the agent name. NOTE: Changing the agent name will clear the robots.txt +rules and expire times out of the cache. + +=back + +=head1 ROBOTS.TXT + +The format and semantics of the "/robots.txt" file are as follows +(this is an edited abstract of +): + +The file consists of one or more records separated by one or more +blank lines. Each record contains lines of the form + + : + +The field name is case insensitive. Text after the '#' character on a +line is ignored during parsing. This is used for comments. The +following can be used: + +=over 3 + +=item User-Agent + +The value of this field is the name of the robot the record is +describing access policy for. If more than one I field is +present the record describes an identical access policy for more than +one robot. At least one field needs to be present per record. If the +value is '*', the record describes the default access policy for any +robot that has not not matched any of the other records. + +The I fields must occur before the I fields. If a +record contains a I field after a I field, that +constitutes a malformed record. This parser will assume that a blank +line should have been placed before that I field, and will +break the record into two. All the fields before the I field +will constitute a record, and the I field will be the first +field in a new record. + +=item Disallow + +The value of this field specifies a partial URL that is not to be +visited. This can be a full path, or a partial path; any URL that +starts with this value will not be retrieved + +=back + +Unrecognized records are ignored. + +=head1 ROBOTS.TXT EXAMPLES + +The following example "/robots.txt" file specifies that no robots +should visit any URL starting with "/cyberworld/map/" or "/tmp/": + + User-agent: * + Disallow: /cyberworld/map/ # This is an infinite virtual URL space + Disallow: /tmp/ # these will soon disappear + +This example "/robots.txt" file specifies that no robots should visit +any URL starting with "/cyberworld/map/", except the robot called +"cybermapper": + + User-agent: * + Disallow: /cyberworld/map/ # This is an infinite virtual URL space + + # Cybermapper knows where to go. + User-agent: cybermapper + Disallow: + +This example indicates that no robots should visit this site further: + + # go away + User-agent: * + Disallow: / + +This is an example of a malformed robots.txt file. + + # robots.txt for ancientcastle.example.com + # I've locked myself away. + User-agent: * + Disallow: / + # The castle is your home now, so you can go anywhere you like. + User-agent: Belle + Disallow: /west-wing/ # except the west wing! + # It's good to be the Prince... + User-agent: Beast + Disallow: + +This file is missing the required blank lines between records. +However, the intention is clear. + +=head1 SEE ALSO + +L, L + +=head1 COPYRIGHT + + Copyright 1995-2009, Gisle Aas + Copyright 1995, Martijn Koster + +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/git/usr/share/perl5/vendor_perl/WWW/RobotRules/AnyDBM_File.pm b/git/usr/share/perl5/vendor_perl/WWW/RobotRules/AnyDBM_File.pm new file mode 100644 index 0000000000000000000000000000000000000000..8daa68870f724eb0004785e21b1cb282fdf39b4e --- /dev/null +++ b/git/usr/share/perl5/vendor_perl/WWW/RobotRules/AnyDBM_File.pm @@ -0,0 +1,170 @@ +package WWW::RobotRules::AnyDBM_File; + +require WWW::RobotRules; +@ISA = qw(WWW::RobotRules); +$VERSION = "6.00"; + +use Carp (); +use AnyDBM_File; +use Fcntl; +use strict; + +=head1 NAME + +WWW::RobotRules::AnyDBM_File - Persistent RobotRules + +=head1 SYNOPSIS + + require WWW::RobotRules::AnyDBM_File; + require LWP::RobotUA; + + # Create a robot useragent that uses a diskcaching RobotRules + my $rules = WWW::RobotRules::AnyDBM_File->new( 'my-robot/1.0', 'cachefile' ); + my $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com', $rules ); + + # Then just use $ua as usual + $res = $ua->request($req); + +=head1 DESCRIPTION + +This is a subclass of I that uses the AnyDBM_File +package to implement persistent diskcaching of F and host +visit information. + +The constructor (the new() method) takes an extra argument specifying +the name of the DBM file to use. If the DBM file already exists, then +you can specify undef as agent name as the name can be obtained from +the DBM database. + +=cut + +sub new +{ + my ($class, $ua, $file) = @_; + Carp::croak('WWW::RobotRules::AnyDBM_File filename required') unless $file; + + my $self = bless { }, $class; + $self->{'filename'} = $file; + tie %{$self->{'dbm'}}, 'AnyDBM_File', $file, O_CREAT|O_RDWR, 0640 + or Carp::croak("Can't open $file: $!"); + + if ($ua) { + $self->agent($ua); + } + else { + # Try to obtain name from DBM file + $ua = $self->{'dbm'}{"|ua-name|"}; + Carp::croak("No agent name specified") unless $ua; + } + + $self; +} + +sub agent { + my($self, $newname) = @_; + my $old = $self->{'dbm'}{"|ua-name|"}; + if (defined $newname) { + $newname =~ s!/?\s*\d+.\d+\s*$!!; # loose version + unless ($old && $old eq $newname) { + # Old info is now stale. + my $file = $self->{'filename'}; + untie %{$self->{'dbm'}}; + tie %{$self->{'dbm'}}, 'AnyDBM_File', $file, O_TRUNC|O_RDWR, 0640; + %{$self->{'dbm'}} = (); + $self->{'dbm'}{"|ua-name|"} = $newname; + } + } + $old; +} + +sub no_visits { + my ($self, $netloc) = @_; + my $t = $self->{'dbm'}{"$netloc|vis"}; + return 0 unless $t; + (split(/;\s*/, $t))[0]; +} + +sub last_visit { + my ($self, $netloc) = @_; + my $t = $self->{'dbm'}{"$netloc|vis"}; + return undef unless $t; + (split(/;\s*/, $t))[1]; +} + +sub fresh_until { + my ($self, $netloc, $fresh) = @_; + my $old = $self->{'dbm'}{"$netloc|exp"}; + if ($old) { + $old =~ s/;.*//; # remove cleartext + } + if (defined $fresh) { + $fresh .= "; " . localtime($fresh); + $self->{'dbm'}{"$netloc|exp"} = $fresh; + } + $old; +} + +sub visit { + my($self, $netloc, $time) = @_; + $time ||= time; + + my $count = 0; + my $old = $self->{'dbm'}{"$netloc|vis"}; + if ($old) { + my $last; + ($count,$last) = split(/;\s*/, $old); + $time = $last if $last > $time; + } + $count++; + $self->{'dbm'}{"$netloc|vis"} = "$count; $time; " . localtime($time); +} + +sub push_rules { + my($self, $netloc, @rules) = @_; + my $cnt = 1; + $cnt++ while $self->{'dbm'}{"$netloc|r$cnt"}; + + foreach (@rules) { + $self->{'dbm'}{"$netloc|r$cnt"} = $_; + $cnt++; + } +} + +sub clear_rules { + my($self, $netloc) = @_; + my $cnt = 1; + while ($self->{'dbm'}{"$netloc|r$cnt"}) { + delete $self->{'dbm'}{"$netloc|r$cnt"}; + $cnt++; + } +} + +sub rules { + my($self, $netloc) = @_; + my @rules = (); + my $cnt = 1; + while (1) { + my $rule = $self->{'dbm'}{"$netloc|r$cnt"}; + last unless $rule; + push(@rules, $rule); + $cnt++; + } + @rules; +} + +sub dump +{ +} + +1; + +=head1 SEE ALSO + +L, L + +=head1 AUTHORS + +Hakan Ardo Ehakan@munin.ub2.lu.se>, Gisle Aas Eaas@sn.no> + +=cut + diff --git a/git/usr/share/pki/ca-trust-legacy/ca-bundle.legacy.default.crt b/git/usr/share/pki/ca-trust-legacy/ca-bundle.legacy.default.crt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/git/usr/share/pki/ca-trust-legacy/ca-bundle.legacy.disable.crt b/git/usr/share/pki/ca-trust-legacy/ca-bundle.legacy.disable.crt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/git/usr/share/pki/ca-trust-source/ca-bundle.trust.crt b/git/usr/share/pki/ca-trust-source/ca-bundle.trust.crt new file mode 100644 index 0000000000000000000000000000000000000000..907bfa2af905eb89b6648dc723b64da922d70d02 --- /dev/null +++ b/git/usr/share/pki/ca-trust-source/ca-bundle.trust.crt @@ -0,0 +1,20122 @@ +# This is a bundle of X.509 certificates of public Certificate +# Authorities. It was generated from the Mozilla root CA list. +# These certificates and trust/distrust attributes use the file format accepted +# by the p11-kit-trust module. +# +# Source: nss/lib/ckfw/builtins/certdata.txt +# Source: nss/lib/ckfw/builtins/nssckbi.h +# +# Generated from: +# NSS_BUILTINS_LIBRARY_VERSION "2.74" +# +[p11-kit-object-v1] +label: "AC RAIZ FNMT-RCM" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAunGAekyGbn/IE23Axn0c +AJePLAwjuxCaQKkat4eI+JtWavvme46Lko6nJV1ZEds2LrdRFx+pCB8EFyRYqjdK +GN/lOdRX/dfBLJEBkeIi1APAWPx3R+yPPnRDuqw0jU04dmeOsMhvMDNYcVy09Wtu +1AFQuBN+bEqjSdEgGe68wCkYZafe/u/dCpAh5xpnkkIQmF9PMLw+HEW0ENdoQBTA +QPrndxd65guPZVs82ZpS27W9nkbPPeuRBQLAlrJ2TE0QljuS+px/D5nfviM1RR4C +XP61qJuZJdpe8yLDOfXkKi7Txh/EbKrFHGoBBUov0sXBqDQmXWal0gIh+Ri3BvVO +mW+oq0xR6M9QGMV3yDkJLEmSMpmouxcXebBaxeajxFllRzWDXqnoNQuZu+TNIMab +SgY5tWj8IrruVYwrTurzseP8tpma1UL6cU0Iz4ceanF9+dO06aVxgXvCTkeWpfZ2 +haMoj+mAboFTpW1fuEj5wvk2pi5J/7iWwowHs5uIWPzrGxzeLXDil5IwoYnjvFWo +J9ZL7ZCti/pjJVktqDXdypczvOXNx53R7O9eDkqQBiZjrbnZNS0HunZlLKxXj330 +B5TXgQKWXaMHSdV60Ff5G+dTRnWqsHlCy2hxCOlgvTlpzvSvw1ZAx61Sognkb4ZH +ih/rKCddgyCvBMlsVpqLRvUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AC RAIZ FNMT-RCM" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsx +CzAJBgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJ +WiBGTk1ULVJDTTAeFw0wODEwMjkxNTU5NTZaFw0zMDAxMDEwMDAwMDBaMDsxCzAJ +BgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBG +Tk1ULVJDTTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALpxgHpMhm5/ +yBNtwMZ9HACXjywMI7sQmkCpGreHiPibVmr75nuOi5KOpyVdWRHbNi63URcfqQgf +BBckWKo3Shjf5TnUV/3XwSyRAZHiItQDwFj8d0fsjz50Q7qsNI1NOHZnjrDIbzAz +WHFctPVrbtQBULgTfmxKo0nRIBnuvMApGGWn3v7v3QqQIecaZ5JCEJhfTzC8PhxF +tBDXaEAUwED653cXeuYLj2VbPNmaUtu1vZ5Gzz3rkQUCwJaydkxNEJY7kvqcfw+Z +374jNUUeAlz+taibmSXaXvMiwzn15Cou08YfxGyqxRxqAQVKL9LFwag0Jl1mpdIC +IfkYtwb1TplvqKtMUejPUBjFd8g5CSxJkjKZqLsXF3mwWsXmo8RZZUc1g16p6DUL +mbvkzSDGm0oGObVo/CK67lWMK07q87Hj/LaZmtVC+nFNCM+HHmpxffnTtOmlcYF7 +wk5HlqX2doWjKI/pgG6BU6VtX7hI+cL5NqYuSf+4lsKMB7ObiFj86xsc3i1w4peS +MKGJ47xVqCfWS+2QrYv6YyVZLag13cqXM7zlzced0ezvXg5KkAYmY6252TUtB7p2 +ZSysV4999AeU14ECll2jB0nVetBX+RvnU0Z1qrB5QstocQjpYL05ac70r8NWQMet +UqIJ5G+GR4of6ygnXYMgrwTJbFaai0b1AgMBAAGjgYMwgYAwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFPd9xf3E6Jobd2Sn9R2gzL+H +YJptMD4GA1UdIAQ3MDUwMwYEVR0gADArMCkGCCsGAQUFBwIBFh1odHRwOi8vd3d3 +LmNlcnQuZm5tdC5lcy9kcGNzLzANBgkqhkiG9w0BAQsFAAOCAgEAB5BK3/MjTvDD +nFFlm5wioooMhfNzKWtN/gHiqQxjAb8EZ6WdmF/9ARP67Jpi6Yb+tmLSbkyU+8B1 +RXxlDPiyN8+sD8+Nb/kZ94/sHvJwnvDKuO+3/3Y3dlv2bojzr2IyIpMNOmqOFGYM +LVN0V2Ue1bLdI4E7pWYjJ2cJj+F3qkPNZVEI7VFY/uY5+ctHhKQV8Xa7pO6kO8Rf +77IzlhEYt8llvhjho6Tc+hj507wTmzl6NLrTQfv6MooqtyuGC2mDOL7Nii4LcK2N +JpLuHvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW+YJF1DngoABd15jm +fZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7Ixjp +6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp +1txyM/1d8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B +9kiABdcPUXmsEKvU7ANm5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wok +RqEIr9baRRmW1FMdW4R58MD3R++Lj8UGrp1MYp3/RgT408m2ECVAdf4WqslKYIYv +uu8wd+RU4riEmViAqhOLUTpPSPaLtrM= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5d:93:8d:30:67:36:c8:06:1d:1a:c7:54:84:69:07 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=ES, O=FNMT-RCM, OU=AC RAIZ FNMT-RCM +# Validity +# Not Before: Oct 29 15:59:56 2008 GMT +# Not After : Jan 1 00:00:00 2030 GMT +# Subject: C=ES, O=FNMT-RCM, OU=AC RAIZ FNMT-RCM +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ba:71:80:7a:4c:86:6e:7f:c8:13:6d:c0:c6:7d: +# 1c:00:97:8f:2c:0c:23:bb:10:9a:40:a9:1a:b7:87: +# 88:f8:9b:56:6a:fb:e6:7b:8e:8b:92:8e:a7:25:5d: +# 59:11:db:36:2e:b7:51:17:1f:a9:08:1f:04:17:24: +# 58:aa:37:4a:18:df:e5:39:d4:57:fd:d7:c1:2c:91: +# 01:91:e2:22:d4:03:c0:58:fc:77:47:ec:8f:3e:74: +# 43:ba:ac:34:8d:4d:38:76:67:8e:b0:c8:6f:30:33: +# 58:71:5c:b4:f5:6b:6e:d4:01:50:b8:13:7e:6c:4a: +# a3:49:d1:20:19:ee:bc:c0:29:18:65:a7:de:fe:ef: +# dd:0a:90:21:e7:1a:67:92:42:10:98:5f:4f:30:bc: +# 3e:1c:45:b4:10:d7:68:40:14:c0:40:fa:e7:77:17: +# 7a:e6:0b:8f:65:5b:3c:d9:9a:52:db:b5:bd:9e:46: +# cf:3d:eb:91:05:02:c0:96:b2:76:4c:4d:10:96:3b: +# 92:fa:9c:7f:0f:99:df:be:23:35:45:1e:02:5c:fe: +# b5:a8:9b:99:25:da:5e:f3:22:c3:39:f5:e4:2a:2e: +# d3:c6:1f:c4:6c:aa:c5:1c:6a:01:05:4a:2f:d2:c5: +# c1:a8:34:26:5d:66:a5:d2:02:21:f9:18:b7:06:f5: +# 4e:99:6f:a8:ab:4c:51:e8:cf:50:18:c5:77:c8:39: +# 09:2c:49:92:32:99:a8:bb:17:17:79:b0:5a:c5:e6: +# a3:c4:59:65:47:35:83:5e:a9:e8:35:0b:99:bb:e4: +# cd:20:c6:9b:4a:06:39:b5:68:fc:22:ba:ee:55:8c: +# 2b:4e:ea:f3:b1:e3:fc:b6:99:9a:d5:42:fa:71:4d: +# 08:cf:87:1e:6a:71:7d:f9:d3:b4:e9:a5:71:81:7b: +# c2:4e:47:96:a5:f6:76:85:a3:28:8f:e9:80:6e:81: +# 53:a5:6d:5f:b8:48:f9:c2:f9:36:a6:2e:49:ff:b8: +# 96:c2:8c:07:b3:9b:88:58:fc:eb:1b:1c:de:2d:70: +# e2:97:92:30:a1:89:e3:bc:55:a8:27:d6:4b:ed:90: +# ad:8b:fa:63:25:59:2d:a8:35:dd:ca:97:33:bc:e5: +# cd:c7:9d:d1:ec:ef:5e:0e:4a:90:06:26:63:ad:b9: +# d9:35:2d:07:ba:76:65:2c:ac:57:8f:7d:f4:07:94: +# d7:81:02:96:5d:a3:07:49:d5:7a:d0:57:f9:1b:e7: +# 53:46:75:aa:b0:79:42:cb:68:71:08:e9:60:bd:39: +# 69:ce:f4:af:c3:56:40:c7:ad:52:a2:09:e4:6f:86: +# 47:8a:1f:eb:28:27:5d:83:20:af:04:c9:6c:56:9a: +# 8b:46:f5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# F7:7D:C5:FD:C4:E8:9A:1B:77:64:A7:F5:1D:A0:CC:BF:87:60:9A:6D +# X509v3 Certificate Policies: +# Policy: X509v3 Any Policy +# CPS: http://www.cert.fnmt.es/dpcs/ +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 07:90:4a:df:f3:23:4e:f0:c3:9c:51:65:9b:9c:22:a2:8a:0c: +# 85:f3:73:29:6b:4d:fe:01:e2:a9:0c:63:01:bf:04:67:a5:9d: +# 98:5f:fd:01:13:fa:ec:9a:62:e9:86:fe:b6:62:d2:6e:4c:94: +# fb:c0:75:45:7c:65:0c:f8:b2:37:cf:ac:0f:cf:8d:6f:f9:19: +# f7:8f:ec:1e:f2:70:9e:f0:ca:b8:ef:b7:ff:76:37:76:5b:f6: +# 6e:88:f3:af:62:32:22:93:0d:3a:6a:8e:14:66:0c:2d:53:74: +# 57:65:1e:d5:b2:dd:23:81:3b:a5:66:23:27:67:09:8f:e1:77: +# aa:43:cd:65:51:08:ed:51:58:fe:e6:39:f9:cb:47:84:a4:15: +# f1:76:bb:a4:ee:a4:3b:c4:5f:ef:b2:33:96:11:18:b7:c9:65: +# be:18:e1:a3:a4:dc:fa:18:f9:d3:bc:13:9b:39:7a:34:ba:d3: +# 41:fb:fa:32:8a:2a:b7:2b:86:0b:69:83:38:be:cd:8a:2e:0b: +# 70:ad:8d:26:92:ee:1e:f5:01:2b:0a:d9:d6:97:9b:6e:e0:a8: +# 19:1c:3a:21:8b:0c:1e:40:ad:03:e7:dd:66:7e:f5:b9:20:0d: +# 03:e8:96:f9:82:45:d4:39:e0:a0:00:5d:d7:98:e6:7d:9e:67: +# 73:c3:9a:2a:f7:ab:8b:a1:3a:14:ef:34:bc:52:0e:89:98:9a: +# 04:40:84:1d:7e:45:69:93:57:ce:eb:ce:f8:50:7c:4f:1c:6e: +# 04:43:9b:f9:d6:3b:23:18:e9:ea:8e:d1:4d:46:8d:f1:3b:e4: +# 6a:ca:ba:fb:23:b7:9b:fa:99:01:29:5a:58:5a:2d:e3:f9:d4: +# 6d:0e:26:ad:c1:6e:34:bc:32:f8:0c:05:fa:65:a3:db:3b:37: +# 83:22:e9:d6:dc:72:33:fd:5d:f2:20:bd:76:3c:23:da:28:f7: +# f9:1b:eb:59:64:d5:dc:5f:72:7e:20:fc:cd:89:b5:90:67:4d: +# 62:7a:3f:4e:ad:1d:c3:39:fe:7a:f4:28:16:df:41:f6:48:80: +# 05:d7:0f:51:79:ac:10:ab:d4:ec:03:66:e6:6a:b0:ba:31:92: +# 42:40:6a:be:3a:d3:72:e1:6a:37:55:bc:ac:1d:95:b7:69:61: +# f2:43:91:74:e6:a0:d3:0a:24:46:a1:08:af:d6:da:45:19:96: +# d4:53:1d:5b:84:79:f0:c0:f7:47:ef:8b:8f:c5:06:ae:9d:4c: +# 62:9d:ff:46:04:f8:d3:c9:b6:10:25:40:75:fe:16:aa:c9:4a: +# 60:86:2f:ba:ef:30:77:e4:54:e2:b8:84:99:58:80:aa:13:8b: +# 51:3a:4f:48:f6:8b:b6:b3 + +[p11-kit-object-v1] +label: "AC RAIZ FNMT-RCM SERVIDORES SEGUROS" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE9rpXU8jKq982SlIh5JfSg2ee8GVR0F6H +x0exWfJXR5sAApNEF2nbQsexsjoYDrRdjLNmXaE0+TYsSdvzRvyzRGlEE2b918X9 +rzZNzgNNB3HPr2oF0qJDWgpSbwEDTo6L +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AC RAIZ FNMT-RCM SERVIDORES SEGUROS" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICbjCCAfOgAwIBAgIQYvYybOXE42hcG2LdnC6dlTAKBggqhkjOPQQDAzB4MQsw +CQYDVQQGEwJFUzERMA8GA1UECgwIRk5NVC1SQ00xDjAMBgNVBAsMBUNlcmVzMRgw +FgYDVQRhDA9WQVRFUy1RMjgyNjAwNEoxLDAqBgNVBAMMI0FDIFJBSVogRk5NVC1S +Q00gU0VSVklET1JFUyBTRUdVUk9TMB4XDTE4MTIyMDA5MzczM1oXDTQzMTIyMDA5 +MzczM1oweDELMAkGA1UEBhMCRVMxETAPBgNVBAoMCEZOTVQtUkNNMQ4wDAYDVQQL +DAVDZXJlczEYMBYGA1UEYQwPVkFURVMtUTI4MjYwMDRKMSwwKgYDVQQDDCNBQyBS +QUlaIEZOTVQtUkNNIFNFUlZJRE9SRVMgU0VHVVJPUzB2MBAGByqGSM49AgEGBSuB +BAAiA2IABPa6V1PIyqvfNkpSIeSX0oNnnvBlUdBeh8dHsVnyV0ebAAKTRBdp20LH +sbI6GA60XYyzZl2hNPk2LEnb80b8s0RpRBNm/dfF/a82Tc4DTQdxz69qBdKiQ1oK +Um8BA06Oi6NCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYD +VR0OBBYEFAG5L++/EYZg8k/QQW6rcx/n0m5JMAoGCCqGSM49BAMDA2kAMGYCMQCu +SuMrQMN0EfKVrRYj3k4MGuZdpSRea0R7/DjiT8ucRRcRTBQnJlU5dUoDzBOQn5IC +MQD6SmxgiHPz7riYYqnOK8LZiqZwMR2vsJRM60/G49HzYqc8/5MuB1xJAWdpEgJy +v+c= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 62:f6:32:6c:e5:c4:e3:68:5c:1b:62:dd:9c:2e:9d:95 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=ES, O=FNMT-RCM, OU=Ceres, organizationIdentifier=VATES-Q2826004J, CN=AC RAIZ FNMT-RCM SERVIDORES SEGUROS +# Validity +# Not Before: Dec 20 09:37:33 2018 GMT +# Not After : Dec 20 09:37:33 2043 GMT +# Subject: C=ES, O=FNMT-RCM, OU=Ceres, organizationIdentifier=VATES-Q2826004J, CN=AC RAIZ FNMT-RCM SERVIDORES SEGUROS +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:f6:ba:57:53:c8:ca:ab:df:36:4a:52:21:e4:97: +# d2:83:67:9e:f0:65:51:d0:5e:87:c7:47:b1:59:f2: +# 57:47:9b:00:02:93:44:17:69:db:42:c7:b1:b2:3a: +# 18:0e:b4:5d:8c:b3:66:5d:a1:34:f9:36:2c:49:db: +# f3:46:fc:b3:44:69:44:13:66:fd:d7:c5:fd:af:36: +# 4d:ce:03:4d:07:71:cf:af:6a:05:d2:a2:43:5a:0a: +# 52:6f:01:03:4e:8e:8b +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 01:B9:2F:EF:BF:11:86:60:F2:4F:D0:41:6E:AB:73:1F:E7:D2:6E:49 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:ae:4a:e3:2b:40:c3:74:11:f2:95:ad:16:23: +# de:4e:0c:1a:e6:5d:a5:24:5e:6b:44:7b:fc:38:e2:4f:cb:9c: +# 45:17:11:4c:14:27:26:55:39:75:4a:03:cc:13:90:9f:92:02: +# 31:00:fa:4a:6c:60:88:73:f3:ee:b8:98:62:a9:ce:2b:c2:d9: +# 8a:a6:70:31:1d:af:b0:94:4c:eb:4f:c6:e3:d1:f3:62:a7:3c: +# ff:93:2e:07:5c:49:01:67:69:12:02:72:bf:e7 + +[p11-kit-object-v1] +label: "ACCVRAIZ1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAm6mrv2FKl68vl2aadF/Q +2Zb9z+LkZu8fH0czwkSj35reH7VU3RV8aTURb7vIDI5qGB7Yj9kWvBBINlzwY7OQ +WlwkN9ej1ssJcbnxAXKEsH3bTYDN/NNvyfjatg6C0kWFqBtoqD3o9ERsvaHCywO+ +jD4TAITfSkjA4yIK6Ok3pxhMsQkNI1Z/BE3ZF4QYpcjaQJRz684OVzwDgTqdCqFX +Q2msV215kHjltbQ72LxMjSihp6OnugJOJdEqru2uAyK4ayAPMChUlX/g7s4KZp3R +QC1uIq+dGsEFGdJvwPKf+HuzAkL7UKkdLZMPI6vGwQ+S/9CiFfVTCXEc/0UThOYm +XvjgiBwK/Ba2qHMGuPBjhAKgxlrs53TfcK6jgyXq1seXh5OnxoqKM5dgNxA+lz5u +KRXWoQ/RiCwSn2+qpMZC60Gi45VD0wGFbY67O/MjNsf+O+ChJQdIq8mJdP8Ij4C/ +wJZl8+7sS2i9nYjDMbNA8ejP9ji7nOTRf9TlWJt8+tTzDpt1keS6Ui4ZftH1zVoZ +/LoG9vtSqEuZBN34+bSLUKNOYonwhyT6g0LBh/rVLSkqWnF6ZGrXJ2BjDdvOSfWN +H5CJMhf4c0O40lqThmHW4XUK6nlmdohPcesEJdYKWnqT5blLF0APsba59d5P3OCz +rDsRcGCESkNumSDAKXEKwGUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "ACCVRAIZ1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UE +AwwJQUNDVlJBSVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQsw +CQYDVQQGEwJFUzAeFw0xMTA1MDUwOTM3MzdaFw0zMDEyMzEwOTM3MzdaMEIxEjAQ +BgNVBAMMCUFDQ1ZSQUlaMTEQMA4GA1UECwwHUEtJQUNDVjENMAsGA1UECgwEQUND +VjELMAkGA1UEBhMCRVMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCb +qau/YUqXry+XZpp0X9DZlv3P4uRm7x8fRzPCRKPfmt4ftVTdFXxpNRFvu8gMjmoY +HtiP2Ra8EEg2XPBjs5BaXCQ316PWywlxufEBcoSwfdtNgM3802/J+Nq2DoLSRYWo +G2ioPej0RGy9ocLLA76MPhMAhN9KSMDjIgro6TenGEyxCQ0jVn8ETdkXhBilyNpA +lHPrzg5XPAOBOp0KoVdDaaxXbXmQeOW1tDvYvEyNKKGno6e6Ak4l0Squ7a4DIrhr +IA8wKFSVf+DuzgpmndFALW4ir50awQUZ0m/A8p/4e7MCQvtQqR0tkw8jq8bBD5L/ +0KIV9VMJcRz/RROE5iZe+OCIHAr8Fraocwa48GOEAqDGWuzndN9wrqODJerWx5eH +k6fGioozl2A3ED6XPm4pFdahD9GILBKfb6qkxkLrQaLjlUPTAYVtjrs78yM2x/47 +4KElB0iryYl0/wiPgL/AlmXz7uxLaL2diMMxs0Dx6M/2OLuc5NF/1OVYm3z61PMO +m3WR5LpSLhl+0fXNWhn8ugb2+1KoS5kE3fj5tItQo05iifCHJPqDQsGH+tUtKSpa +cXpkatcnYGMN285J9Y0fkIkyF/hzQ7jSWpOGYdbhdQrqeWZ2iE9x6wQl1gpaepPl +uUsXQA+xtrn13k/c4LOsOxFwYIRKQ26ZIMApcQrAZQIDAQABo4ICyzCCAscwfQYI +KwYBBQUHAQEEcTBvMEwGCCsGAQUFBzAChkBodHRwOi8vd3d3LmFjY3YuZXMvZmls +ZWFkbWluL0FyY2hpdm9zL2NlcnRpZmljYWRvcy9yYWl6YWNjdjEuY3J0MB8GCCsG +AQUFBzABhhNodHRwOi8vb2NzcC5hY2N2LmVzMB0GA1UdDgQWBBTSh7Tj3zcnk1X2 +VuqB5TbMjB4/vTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNKHtOPfNyeT +VfZW6oHlNsyMHj+9MIIBcwYDVR0gBIIBajCCAWYwggFiBgRVHSAAMIIBWDCCASIG +CCsGAQUFBwICMIIBFB6CARAAQQB1AHQAbwByAGkAZABhAGQAIABkAGUAIABDAGUA +cgB0AGkAZgBpAGMAYQBjAGkA8wBuACAAUgBhAO0AegAgAGQAZQAgAGwAYQAgAEEA +QwBDAFYAIAAoAEEAZwBlAG4AYwBpAGEAIABkAGUAIABUAGUAYwBuAG8AbABvAGcA +7QBhACAAeQAgAEMAZQByAHQAaQBmAGkAYwBhAGMAaQDzAG4AIABFAGwAZQBjAHQA +cgDzAG4AaQBjAGEALAAgAEMASQBGACAAUQA0ADYAMAAxADEANQA2AEUAKQAuACAA +QwBQAFMAIABlAG4AIABoAHQAdABwADoALwAvAHcAdwB3AC4AYQBjAGMAdgAuAGUA +czAwBggrBgEFBQcCARYkaHR0cDovL3d3dy5hY2N2LmVzL2xlZ2lzbGFjaW9uX2Mu +aHRtMFUGA1UdHwROMEwwSqBIoEaGRGh0dHA6Ly93d3cuYWNjdi5lcy9maWxlYWRt +aW4vQXJjaGl2b3MvY2VydGlmaWNhZG9zL3JhaXphY2N2MV9kZXIuY3JsMA4GA1Ud +DwEB/wQEAwIBBjAXBgNVHREEEDAOgQxhY2N2QGFjY3YuZXMwDQYJKoZIhvcNAQEF +BQADggIBAJcxAp/n/UNnSEQU5CmH7UwoZtCPNdpNYbdKl02125DgBS4OxnnQ8pdp +D70ER9m+27Up2pvZrqmZ1dM8MJP1jaGo/AaNRPTKFpV8M9xii6g3+CfYCS0b78gU +JyCpZET/LtZ1qmxNYEAZSUNUY9rizLpm5U9EelvZaoErQNV/+QEnWCzI7UiRfD+m +AM/EKXMRNt6GGT6d7hmKG9Ww7Y49nCrADdg9ZuM8Db3VlFzi4qc1GwQA9j9ajepD +vV+JHanBsMyZ4k0ACtrJJ1vnE5Bc5PUzolVt3OAJTS+xJlsndQAJxGJ3KQhfnlms +tn6tn1QwIgPBHnFk/vk4CpYY3QIUrCPLBhwepH2NDd4nQeit2hW3sCPdK6jT2iWH +7ehVRE2I9DZ+hJp4rPcOVkkO1jMl1oRQQmwgEh0q1b688nCBpHBgvgW1m54ERL5h +I6zppSSMEYCUWqKiuUnSwdzRp+0xESyeGabu4VXhwOrPDYTkF7eifKXeVSUG7szA +h1xA2syVP1XgNce4hL60Xc16gwFy7ofmXx2utYXGJt/mwZrpHgJHnyqobalbz+xF +d3+YJ5oyXSrjhO7FmGYvliAd3djDJ9ew+f7Zfc3Qn48LFFhRny+Lwzgt3uiP1o2H +pPVWQxaZLPSkVrQ0uGE3ycJYgBugl6H8WY3pEfbRD0tVNEYqi4Y7 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 6828503384748696800 (0x5ec3b7a6437fa4e0) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: CN=ACCVRAIZ1, OU=PKIACCV, O=ACCV, C=ES +# Validity +# Not Before: May 5 09:37:37 2011 GMT +# Not After : Dec 31 09:37:37 2030 GMT +# Subject: CN=ACCVRAIZ1, OU=PKIACCV, O=ACCV, C=ES +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:9b:a9:ab:bf:61:4a:97:af:2f:97:66:9a:74:5f: +# d0:d9:96:fd:cf:e2:e4:66:ef:1f:1f:47:33:c2:44: +# a3:df:9a:de:1f:b5:54:dd:15:7c:69:35:11:6f:bb: +# c8:0c:8e:6a:18:1e:d8:8f:d9:16:bc:10:48:36:5c: +# f0:63:b3:90:5a:5c:24:37:d7:a3:d6:cb:09:71:b9: +# f1:01:72:84:b0:7d:db:4d:80:cd:fc:d3:6f:c9:f8: +# da:b6:0e:82:d2:45:85:a8:1b:68:a8:3d:e8:f4:44: +# 6c:bd:a1:c2:cb:03:be:8c:3e:13:00:84:df:4a:48: +# c0:e3:22:0a:e8:e9:37:a7:18:4c:b1:09:0d:23:56: +# 7f:04:4d:d9:17:84:18:a5:c8:da:40:94:73:eb:ce: +# 0e:57:3c:03:81:3a:9d:0a:a1:57:43:69:ac:57:6d: +# 79:90:78:e5:b5:b4:3b:d8:bc:4c:8d:28:a1:a7:a3: +# a7:ba:02:4e:25:d1:2a:ae:ed:ae:03:22:b8:6b:20: +# 0f:30:28:54:95:7f:e0:ee:ce:0a:66:9d:d1:40:2d: +# 6e:22:af:9d:1a:c1:05:19:d2:6f:c0:f2:9f:f8:7b: +# b3:02:42:fb:50:a9:1d:2d:93:0f:23:ab:c6:c1:0f: +# 92:ff:d0:a2:15:f5:53:09:71:1c:ff:45:13:84:e6: +# 26:5e:f8:e0:88:1c:0a:fc:16:b6:a8:73:06:b8:f0: +# 63:84:02:a0:c6:5a:ec:e7:74:df:70:ae:a3:83:25: +# ea:d6:c7:97:87:93:a7:c6:8a:8a:33:97:60:37:10: +# 3e:97:3e:6e:29:15:d6:a1:0f:d1:88:2c:12:9f:6f: +# aa:a4:c6:42:eb:41:a2:e3:95:43:d3:01:85:6d:8e: +# bb:3b:f3:23:36:c7:fe:3b:e0:a1:25:07:48:ab:c9: +# 89:74:ff:08:8f:80:bf:c0:96:65:f3:ee:ec:4b:68: +# bd:9d:88:c3:31:b3:40:f1:e8:cf:f6:38:bb:9c:e4: +# d1:7f:d4:e5:58:9b:7c:fa:d4:f3:0e:9b:75:91:e4: +# ba:52:2e:19:7e:d1:f5:cd:5a:19:fc:ba:06:f6:fb: +# 52:a8:4b:99:04:dd:f8:f9:b4:8b:50:a3:4e:62:89: +# f0:87:24:fa:83:42:c1:87:fa:d5:2d:29:2a:5a:71: +# 7a:64:6a:d7:27:60:63:0d:db:ce:49:f5:8d:1f:90: +# 89:32:17:f8:73:43:b8:d2:5a:93:86:61:d6:e1:75: +# 0a:ea:79:66:76:88:4f:71:eb:04:25:d6:0a:5a:7a: +# 93:e5:b9:4b:17:40:0f:b1:b6:b9:f5:de:4f:dc:e0: +# b3:ac:3b:11:70:60:84:4a:43:6e:99:20:c0:29:71: +# 0a:c0:65 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# Authority Information Access: +# CA Issuers - URI:http://www.accv.es/fileadmin/Archivos/certificados/raizaccv1.crt +# OCSP - URI:http://ocsp.accv.es +# X509v3 Subject Key Identifier: +# D2:87:B4:E3:DF:37:27:93:55:F6:56:EA:81:E5:36:CC:8C:1E:3F:BD +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# D2:87:B4:E3:DF:37:27:93:55:F6:56:EA:81:E5:36:CC:8C:1E:3F:BD +# X509v3 Certificate Policies: +# Policy: X509v3 Any Policy +# User Notice: +# Explicit Text: +# CPS: http://www.accv.es/legislacion_c.htm +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://www.accv.es/fileadmin/Archivos/certificados/raizaccv1_der.crl +# +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Alternative Name: +# email:accv@accv.es +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 97:31:02:9f:e7:fd:43:67:48:44:14:e4:29:87:ed:4c:28:66: +# d0:8f:35:da:4d:61:b7:4a:97:4d:b5:db:90:e0:05:2e:0e:c6: +# 79:d0:f2:97:69:0f:bd:04:47:d9:be:db:b5:29:da:9b:d9:ae: +# a9:99:d5:d3:3c:30:93:f5:8d:a1:a8:fc:06:8d:44:f4:ca:16: +# 95:7c:33:dc:62:8b:a8:37:f8:27:d8:09:2d:1b:ef:c8:14:27: +# 20:a9:64:44:ff:2e:d6:75:aa:6c:4d:60:40:19:49:43:54:63: +# da:e2:cc:ba:66:e5:4f:44:7a:5b:d9:6a:81:2b:40:d5:7f:f9: +# 01:27:58:2c:c8:ed:48:91:7c:3f:a6:00:cf:c4:29:73:11:36: +# de:86:19:3e:9d:ee:19:8a:1b:d5:b0:ed:8e:3d:9c:2a:c0:0d: +# d8:3d:66:e3:3c:0d:bd:d5:94:5c:e2:e2:a7:35:1b:04:00:f6: +# 3f:5a:8d:ea:43:bd:5f:89:1d:a9:c1:b0:cc:99:e2:4d:00:0a: +# da:c9:27:5b:e7:13:90:5c:e4:f5:33:a2:55:6d:dc:e0:09:4d: +# 2f:b1:26:5b:27:75:00:09:c4:62:77:29:08:5f:9e:59:ac:b6: +# 7e:ad:9f:54:30:22:03:c1:1e:71:64:fe:f9:38:0a:96:18:dd: +# 02:14:ac:23:cb:06:1c:1e:a4:7d:8d:0d:de:27:41:e8:ad:da: +# 15:b7:b0:23:dd:2b:a8:d3:da:25:87:ed:e8:55:44:4d:88:f4: +# 36:7e:84:9a:78:ac:f7:0e:56:49:0e:d6:33:25:d6:84:50:42: +# 6c:20:12:1d:2a:d5:be:bc:f2:70:81:a4:70:60:be:05:b5:9b: +# 9e:04:44:be:61:23:ac:e9:a5:24:8c:11:80:94:5a:a2:a2:b9: +# 49:d2:c1:dc:d1:a7:ed:31:11:2c:9e:19:a6:ee:e1:55:e1:c0: +# ea:cf:0d:84:e4:17:b7:a2:7c:a5:de:55:25:06:ee:cc:c0:87: +# 5c:40:da:cc:95:3f:55:e0:35:c7:b8:84:be:b4:5d:cd:7a:83: +# 01:72:ee:87:e6:5f:1d:ae:b5:85:c6:26:df:e6:c1:9a:e9:1e: +# 02:47:9f:2a:a8:6d:a9:5b:cf:ec:45:77:7f:98:27:9a:32:5d: +# 2a:e3:84:ee:c5:98:66:2f:96:20:1d:dd:d8:c3:27:d7:b0:f9: +# fe:d9:7d:cd:d0:9f:8f:0b:14:58:51:9f:2f:8b:c3:38:2d:de: +# e8:8f:d6:8d:87:a4:f5:56:43:16:99:2c:f4:a4:56:b4:34:b8: +# 61:37:c9:c2:58:80:1b:a0:97:a1:fc:59:8d:e9:11:f6:d1:0f: +# 4b:55:34:46:2a:8b:86:3b + +[p11-kit-object-v1] +label: "Actalis Authentication Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNv +UTufClrJwkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX +4ay8IMKx4INRimlNAJZaby/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9 +KK3giq0itFZljoZUj5NDKd45RnijMCO6zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/ +gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1fYVEiVRvjRuPjPdA1Yprb +rxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2oxgkg4YQ +51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2F +be8lEfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxe +KF+w6D9Fz8+vm2/7hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4F +v6MGn8i1zeQf1xcGDXqVdFUNaBr8EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbn +fpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5jF66CyCU3nuDuP/jVo23Eek7 +jPKxwV2dpAtMK9myGPW1n0sCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Actalis Authentication Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UE +BhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8w +MzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290 +IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDkyMjExMjIwMlowazELMAkGA1UEBhMC +SVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1 +ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENB +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNv +UTufClrJwkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX +4ay8IMKx4INRimlNAJZaby/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9 +KK3giq0itFZljoZUj5NDKd45RnijMCO6zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/ +gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1fYVEiVRvjRuPjPdA1Yprb +rxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2oxgkg4YQ +51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2F +be8lEfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxe +KF+w6D9Fz8+vm2/7hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4F +v6MGn8i1zeQf1xcGDXqVdFUNaBr8EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbn +fpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5jF66CyCU3nuDuP/jVo23Eek7 +jPKxwV2dpAtMK9myGPW1n0sCAwEAAaNjMGEwHQYDVR0OBBYEFFLYiDrIn3hm7Ynz +ezhwlMkCAjbQMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUUtiIOsifeGbt +ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQAL +e3KHwGCmSUyIWOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70 +jsNjLiNmsGe+b7bAEzlgqqI0JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDz +WochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKxK3JCaKygvU5a2hi/a5iB0P2avl4V +SM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+Xlff1ANATIGk0k9j +pwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC4yyX +X04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+Ok +fcvHlXHo2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7R +K4X9p2jIugErsWx0Hbhzlefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btU +ZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXemOR/qnuOf0GZvBeyqdn6/axag67XH/JJU +LysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9vwGYT7JZVEc+NHt4bVaT +LnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 6271844772424770508 (0x570a119742c4e3cc) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=IT, L=Milan, O=Actalis S.p.A./03358520967, CN=Actalis Authentication Root CA +# Validity +# Not Before: Sep 22 11:22:02 2011 GMT +# Not After : Sep 22 11:22:02 2030 GMT +# Subject: C=IT, L=Milan, O=Actalis S.p.A./03358520967, CN=Actalis Authentication Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a7:c6:c4:a5:29:a4:2c:ef:e5:18:c5:b0:50:a3: +# 6f:51:3b:9f:0a:5a:c9:c2:48:38:0a:c2:1c:a0:18: +# 7f:91:b5:87:b9:40:3f:dd:1d:68:1f:08:83:d5:2d: +# 1e:88:a0:f8:8f:56:8f:6d:99:02:92:90:16:d5:5f: +# 08:6c:89:d7:e1:ac:bc:20:c2:b1:e0:83:51:8a:69: +# 4d:00:96:5a:6f:2f:c0:44:7e:a3:0e:e4:91:cd:58: +# ee:dc:fb:c7:1e:45:47:dd:27:b9:08:01:9f:a6:21: +# 1d:f5:41:2d:2f:4c:fd:28:ad:e0:8a:ad:22:b4:56: +# 65:8e:86:54:8f:93:43:29:de:39:46:78:a3:30:23: +# ba:cd:f0:7d:13:57:c0:5d:d2:83:6b:48:4c:c4:ab: +# 9f:80:5a:5b:3a:bd:c9:a7:22:3f:80:27:33:5b:0e: +# b7:8a:0c:5d:07:37:08:cb:6c:d2:7a:47:22:44:35: +# c5:cc:cc:2e:8e:dd:2a:ed:b7:7d:66:0d:5f:61:51: +# 22:55:1b:e3:46:e3:e3:3d:d0:35:62:9a:db:af:14: +# c8:5b:a1:cc:89:1b:e1:30:26:fc:a0:9b:1f:81:a7: +# 47:1f:04:eb:a3:39:92:06:9f:99:d3:bf:d3:ea:4f: +# 50:9c:19:fe:96:87:1e:3c:65:f6:a3:18:24:83:86: +# 10:e7:54:3e:a8:3a:76:24:4f:81:21:c5:e3:0f:02: +# f8:93:94:47:20:bb:fe:d4:0e:d3:68:b9:dd:c4:7a: +# 84:82:e3:53:54:79:dd:db:9c:d2:f2:07:9b:2e:b6: +# bc:3e:ed:85:6d:ef:25:11:f2:97:1a:42:61:f7:4a: +# 97:e8:8b:b1:10:07:fa:65:81:b2:a2:39:cf:f7:3c: +# ff:18:fb:c6:f1:5a:8b:59:e2:02:ac:7b:92:d0:4e: +# 14:4f:59:45:f6:0c:5e:28:5f:b0:e8:3f:45:cf:cf: +# af:9b:6f:fb:84:d3:77:5a:95:6f:ac:94:84:9e:ee: +# bc:c0:4a:8f:4a:93:f8:44:21:e2:31:45:61:50:4e: +# 10:d8:e3:35:7c:4c:19:b4:de:05:bf:a3:06:9f:c8: +# b5:cd:e4:1f:d7:17:06:0d:7a:95:74:55:0d:68:1a: +# fc:10:1b:62:64:9d:6d:e0:95:a0:c3:94:07:57:0d: +# 14:e6:bd:05:fb:b8:9f:e6:df:8b:e2:c6:e7:7e:96: +# f6:53:c5:80:34:50:28:58:f0:12:50:71:17:30:ba: +# e6:78:63:bc:f4:b2:ad:9b:2b:b2:fe:e1:39:8c:5e: +# ba:0b:20:94:de:7b:83:b8:ff:e3:56:8d:b7:11:e9: +# 3b:8c:f2:b1:c1:5d:9d:a4:0b:4c:2b:d9:b2:18:f5: +# b5:9f:4b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 52:D8:88:3A:C8:9F:78:66:ED:89:F3:7B:38:70:94:C9:02:02:36:D0 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 52:D8:88:3A:C8:9F:78:66:ED:89:F3:7B:38:70:94:C9:02:02:36:D0 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 0b:7b:72:87:c0:60:a6:49:4c:88:58:e6:1d:88:f7:14:64:48: +# a6:d8:58:0a:0e:4f:13:35:df:35:1d:d4:ed:06:31:c8:81:3e: +# 6a:d5:dd:3b:1a:32:ee:90:3d:11:d2:2e:f4:8e:c3:63:2e:23: +# 66:b0:67:be:6f:b6:c0:13:39:60:aa:a2:34:25:93:75:52:de: +# a7:9d:ad:0e:87:89:52:71:6a:16:3c:19:1d:83:f8:9a:29:65: +# be:f4:3f:9a:d9:f0:f3:5a:87:21:71:80:4d:cb:e0:38:9b:3f: +# bb:fa:e0:30:4d:cf:86:d3:65:10:19:18:d1:97:02:b1:2b:72: +# 42:68:ac:a0:bd:4e:5a:da:18:bf:6b:98:81:d0:fd:9a:be:5e: +# 15:48:cd:11:15:b9:c0:29:5c:b4:e8:88:f7:3e:36:ae:b7:62: +# fd:1e:62:de:70:78:10:1c:48:5b:da:bc:a4:38:ba:67:ed:55: +# 3e:5e:57:df:d4:03:40:4c:81:a4:d2:4f:63:a7:09:42:09:14: +# fc:00:a9:c2:80:73:4f:2e:c0:40:d9:11:7b:48:ea:7a:02:c0: +# d3:eb:28:01:26:58:74:c1:c0:73:22:6d:93:95:fd:39:7d:bb: +# 2a:e3:f6:82:e3:2c:97:5f:4e:1f:91:94:fa:fe:2c:a3:d8:76: +# 1a:b8:4d:b2:38:4f:9b:fa:1d:48:60:79:26:e2:f3:fd:a9:d0: +# 9a:e8:70:8f:49:7a:d6:e5:bd:0a:0e:db:2d:f3:8d:bf:eb:e3: +# a4:7d:cb:c7:95:71:e8:da:a3:7c:c5:c2:f8:74:92:04:1b:86: +# ac:a4:22:53:40:b6:ac:fe:4c:76:cf:fb:94:32:c0:35:9f:76: +# 3f:6e:e5:90:6e:a0:a6:26:a2:b8:2c:be:d1:2b:85:fd:a7:68: +# c8:ba:01:2b:b1:6c:74:1d:b8:73:95:e7:ee:b7:c7:25:f0:00: +# 4c:00:b2:7e:b6:0b:8b:1c:f3:c0:50:9e:25:b9:e0:08:de:36: +# 66:ff:37:a5:d1:bb:54:64:2c:c9:27:b5:4b:92:7e:65:ff:d3: +# 2d:e1:b9:4e:bc:7f:a4:41:21:90:41:77:a6:39:1f:ea:9e:e3: +# 9f:d0:66:6f:05:ec:aa:76:7e:bf:6b:16:a0:eb:b5:c7:fc:92: +# 54:2f:2b:11:27:25:37:78:4c:51:6a:b0:f3:cc:58:5d:14:f1: +# 6a:48:15:ff:c2:07:b6:b1:8d:0f:8e:5c:50:46:b3:3d:bf:01: +# 98:4f:b2:59:54:47:3e:34:7b:78:6d:56:93:2e:73:ea:66:28: +# 78:cd:1d:14:bf:a0:8f:2f:2e:b8:2e:8e:f2:14:8a:cc:e9:b5: +# 7c:fb:6c:9d:0c:a5:e1:96 + +[p11-kit-object-v1] +label: "AffirmTrust Commercial" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy +43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6EqdbDuKPHx6GGaeqtS25Xw2Kwq+FNXky +LbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrVC8+a5fBQpIs7R6Uj +W3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6BfO9 +m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWv +RLpUHhwwMmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55 +MQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AffirmTrust Commercial" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UE +BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz +dCBDb21tZXJjaWFsMB4XDTEwMDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDEL +MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp +cm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC +AQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6EqdbDuKP +Hx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yr +ba0F8PrVC8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPAL +MeIrJmqbTFeurCA+ukV6BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1 +yHp52UKqK39c/s4mT6NmgTWvRLpUHhwwMmWd5jyTXlBOeuM61G7MGvv50jeuJCqr +VwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNVHQ4EFgQUnZPGU4teyq8/ +nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ +KoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYG +XUPGhi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNj +vbz4YYCanrHOQnDiqX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivt +Z8SOyUOyXGsViQK8YvxO8rUzqrJv0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9g +N53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0khsUlHRUe072o0EclNmsxZt9YC +nlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 8608355977964138876 (0x7777062726a9b17c) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=AffirmTrust, CN=AffirmTrust Commercial +# Validity +# Not Before: Jan 29 14:06:06 2010 GMT +# Not After : Dec 31 14:06:06 2030 GMT +# Subject: C=US, O=AffirmTrust, CN=AffirmTrust Commercial +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:f6:1b:4f:67:07:2b:a1:15:f5:06:22:cb:1f:01: +# b2:e3:73:45:06:44:49:2c:bb:49:25:14:d6:ce:c3: +# b7:ab:2c:4f:c6:41:32:94:57:fa:12:a7:5b:0e:e2: +# 8f:1f:1e:86:19:a7:aa:b5:2d:b9:5f:0d:8a:c2:af: +# 85:35:79:32:2d:bb:1c:62:37:f2:b1:5b:4a:3d:ca: +# cd:71:5f:e9:42:be:94:e8:c8:de:f9:22:48:64:c6: +# e5:ab:c6:2b:6d:ad:05:f0:fa:d5:0b:cf:9a:e5:f0: +# 50:a4:8b:3b:47:a5:23:5b:7a:7a:f8:33:3f:b8:ef: +# 99:97:e3:20:c1:d6:28:89:cf:94:fb:b9:45:ed:e3: +# 40:17:11:d4:74:f0:0b:31:e2:2b:26:6a:9b:4c:57: +# ae:ac:20:3e:ba:45:7a:05:f3:bd:9b:69:15:ae:7d: +# 4e:20:63:c4:35:76:3a:07:02:c9:37:fd:c7:47:ee: +# e8:f1:76:1d:73:15:f2:97:a4:b5:c8:7a:79:d9:42: +# aa:2b:7f:5c:fe:ce:26:4f:a3:66:81:35:af:44:ba: +# 54:1e:1c:30:32:65:9d:e6:3c:93:5e:50:4e:7a:e3: +# 3a:d4:6e:cc:1a:fb:f9:d2:37:ae:24:2a:ab:57:03: +# 22:28:0d:49:75:7f:b7:28:da:75:bf:8e:e3:dc:0e: +# 79:31 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 9D:93:C6:53:8B:5E:CA:AF:3F:9F:1E:0F:E5:99:95:BC:24:F6:94:8F +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 58:ac:f4:04:0e:cd:c0:0d:ff:0a:fd:d4:ba:16:5f:29:bd:7b: +# 68:99:58:49:d2:b4:1d:37:4d:7f:27:7d:46:06:5d:43:c6:86: +# 2e:3e:73:b2:26:7d:4f:93:a9:b6:c4:2a:9a:ab:21:97:14:b1: +# de:8c:d3:ab:89:15:d8:6b:24:d4:f1:16:ae:d8:a4:5c:d4:7f: +# 51:8e:ed:18:01:b1:93:63:bd:bc:f8:61:80:9a:9e:b1:ce:42: +# 70:e2:a9:7d:06:25:7d:27:a1:fe:6f:ec:b3:1e:24:da:e3:4b: +# 55:1a:00:3b:35:b4:3b:d9:d7:5d:30:fd:81:13:89:f2:c2:06: +# 2b:ed:67:c4:8e:c9:43:b2:5c:6b:15:89:02:bc:62:fc:4e:f2: +# b5:33:aa:b2:6f:d3:0a:a2:50:e3:f6:3b:e8:2e:44:c2:db:66: +# 38:a9:33:56:48:f1:6d:1b:33:8d:0d:8c:3f:60:37:9d:d3:ca: +# 6d:7e:34:7e:0d:9f:72:76:8b:1b:9f:72:fd:52:35:41:45:02: +# 96:2f:1c:b2:9a:73:49:21:b1:49:47:45:47:b4:ef:6a:34:11: +# c9:4d:9a:cc:59:b7:d6:02:9e:5a:4e:65:b5:94:ae:1b:df:29: +# b0:16:f1:bf:00:9e:07:3a:17:64:b5:04:b5:23:21:99:0a:95: +# 3b:97:7c:ef + +[p11-kit-object-v1] +label: "AffirmTrust Networking" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOuj +z3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SEHi3yYJ0wTsyEheIszx6e/jarM3c1 +RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreIdIcMHl+5ni36q1Mr +3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24/PHx +I1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdC +BKNwV6gbh+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20 +FQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AffirmTrust Networking" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UE +BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz +dCBOZXR3b3JraW5nMB4XDTEwMDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDEL +MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp +cm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC +AQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SEHi3y +YJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbua +kCNrmreIdIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRL +QESxG9fhwoXA3hA/Pe24/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp +6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gbh+0t+nvujArjqWaJGctB+d1ENmHP4ndG +yH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNVHQ4EFgQUBx/S55zawm6i +QLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ +KoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfO +tDIuUFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzu +QY0x2+c06lkh1QF612S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZ +Lgo/bNjR9eUJtGxUAArgFU2HdW23WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4u +olu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9/ZFvgrG+CJPbFEfxojfHRZ48 +x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 8957382827206547757 (0x7c4f04391cd4992d) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=AffirmTrust, CN=AffirmTrust Networking +# Validity +# Not Before: Jan 29 14:08:24 2010 GMT +# Not After : Dec 31 14:08:24 2030 GMT +# Subject: C=US, O=AffirmTrust, CN=AffirmTrust Networking +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b4:84:cc:33:17:2e:6b:94:6c:6b:61:52:a0:eb: +# a3:cf:79:94:4c:e5:94:80:99:cb:55:64:44:65:8f: +# 67:64:e2:06:e3:5c:37:49:f6:2f:9b:84:84:1e:2d: +# f2:60:9d:30:4e:cc:84:85:e2:2c:cf:1e:9e:fe:36: +# ab:33:77:35:44:d8:35:96:1a:3d:36:e8:7a:0e:d8: +# d5:47:a1:6a:69:8b:d9:fc:bb:3a:ae:79:5a:d5:f4: +# d6:71:bb:9a:90:23:6b:9a:b7:88:74:87:0c:1e:5f: +# b9:9e:2d:fa:ab:53:2b:dc:bb:76:3e:93:4c:08:08: +# 8c:1e:a2:23:1c:d4:6a:ad:22:ba:99:01:2e:6d:65: +# cb:be:24:66:55:24:4b:40:44:b1:1b:d7:e1:c2:85: +# c0:de:10:3f:3d:ed:b8:fc:f1:f1:23:53:dc:bf:65: +# 97:6f:d9:f9:40:71:8d:7d:bd:95:d4:ce:be:a0:5e: +# 27:23:de:fd:a6:d0:26:0e:00:29:eb:3c:46:f0:3d: +# 60:bf:3f:50:d2:dc:26:41:51:9e:14:37:42:04:a3: +# 70:57:a8:1b:87:ed:2d:fa:7b:ee:8c:0a:e3:a9:66: +# 89:19:cb:41:f9:dd:44:36:61:cf:e2:77:46:c8:7d: +# f6:f4:92:81:36:fd:db:34:f1:72:7e:f3:0c:16:bd: +# b4:15 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 07:1F:D2:E7:9C:DA:C2:6E:A2:40:B4:B0:7A:50:10:50:74:C4:C8:BD +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 89:57:b2:16:7a:a8:c2:fd:d6:d9:9b:9b:34:c2:9c:b4:32:14: +# 4d:a7:a4:df:ec:be:a7:be:f8:43:db:91:37:ce:b4:32:2e:50: +# 55:1a:35:4e:76:43:71:20:ef:93:77:4e:15:70:2e:87:c3:c1: +# 1d:6d:dc:cb:b5:27:d4:2c:56:d1:52:53:3a:44:d2:73:c8:c4: +# 1b:05:65:5a:62:92:9c:ee:41:8d:31:db:e7:34:ea:59:21:d5: +# 01:7a:d7:64:b8:64:39:cd:c9:ed:af:ed:4b:03:48:a7:a0:99: +# 01:80:dc:65:a3:36:ae:65:59:48:4f:82:4b:c8:65:f1:57:1d: +# e5:59:2e:0a:3f:6c:d8:d1:f5:e5:09:b4:6c:54:00:0a:e0:15: +# 4d:87:75:6d:b7:58:96:5a:dd:6d:d2:00:a0:f4:9b:48:be:c3: +# 37:a4:ba:36:e0:7c:87:85:97:1a:15:a2:de:2e:a2:5b:bd:af: +# 18:f9:90:50:cd:70:59:f8:27:67:47:cb:c7:a0:07:3a:7d:d1: +# 2c:5d:6c:19:3a:66:b5:7d:fd:91:6f:82:b1:be:08:93:db:14: +# 47:f1:a2:37:c7:45:9e:3c:c7:77:af:64:a8:93:df:f6:69:83: +# 82:60:f2:49:42:34:ed:5a:00:54:85:1c:16:36:92:0c:5c:fa: +# a6:ad:bf:db + +[p11-kit-object-v1] +label: "AffirmTrust Premium" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxBLfqV/+Qd3d9Z+K4/as +4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtnBKAQJG9dKILBl1fYSCkT +tuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ+jjeRFcV5fiMyNlI +4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrSs8PhaJyJ+HoAVt70 +VZVs+7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5HMQxK9VfvFMSF5yZ +Vylmd2EhMQcuJUmdGPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d770O/Nbua2Plzpyzy +0FfuKE4mX4+QaAkvuPjcBukumj5Rp9EixAqnOEhss/n/fauGV+O61oV4d7pD6kh/ +9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NIS+LI+H+SqHZGnEJlPqQewQcD +WkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S5u046uwBHjxIVkkJ +x0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4IaC1nEWTJ3s7xgaVY5 +/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TXOwF0lkLgAOIua+rF +7nKsu7/+6qqo+Nz2snmKtmcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AffirmTrust Premium" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UE +BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVz +dCBQcmVtaXVtMB4XDTEwMDEyOTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkG +A1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1U +cnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxBLf +qV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtnBKAQ +JG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ ++jjeRFcV5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrS +s8PhaJyJ+HoAVt70VZVs+7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5 +HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmdGPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d7 +70O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5Rp9EixAqnOEhss/n/fauG +V+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NIS+LI+H+S +qHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S +5u046uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4Ia +C1nEWTJ3s7xgaVY5/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TX +OwF0lkLgAOIua+rF7nKsu7/+6qqo+Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYE +FJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/ +BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByvMiPIs0laUZx2 +KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg +Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B +8OWycvpEgjNC6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQ +MKSOyARiqcTtNd56l+0OOF6SL5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc +0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK+4w1IX2COPKpVJEZNZOUbWo6xbLQ +u4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmVBtWVyuEklut89pMF +u+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFgIxpH +YoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8 +GKa1qF60g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaO +RtGdFNrHF+QFlozEJLUbzxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6e +KeC2uAloGRwYQw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 7893706540734352110 (0x6d8c1446b1a60aee) +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=AffirmTrust, CN=AffirmTrust Premium +# Validity +# Not Before: Jan 29 14:10:36 2010 GMT +# Not After : Dec 31 14:10:36 2040 GMT +# Subject: C=US, O=AffirmTrust, CN=AffirmTrust Premium +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c4:12:df:a9:5f:fe:41:dd:dd:f5:9f:8a:e3:f6: +# ac:e1:3c:78:9a:bc:d8:f0:7f:7a:a0:33:2a:dc:8d: +# 20:5b:ae:2d:6f:e7:93:d9:36:70:6a:68:cf:8e:51: +# a3:85:5b:67:04:a0:10:24:6f:5d:28:82:c1:97:57: +# d8:48:29:13:b6:e1:be:91:4d:df:85:0c:53:18:9a: +# 1e:24:a2:4f:8f:f0:a2:85:0b:cb:f4:29:7f:d2:a4: +# 58:ee:26:4d:c9:aa:a8:7b:9a:d9:fa:38:de:44:57: +# 15:e5:f8:8c:c8:d9:48:e2:0d:16:27:1d:1e:c8:83: +# 85:25:b7:ba:aa:55:41:cc:03:22:4b:2d:91:8d:8b: +# e6:89:af:66:c7:e9:ff:2b:e9:3c:ac:da:d2:b3:c3: +# e1:68:9c:89:f8:7a:00:56:de:f4:55:95:6c:fb:ba: +# 64:dd:62:8b:df:0b:77:32:eb:62:cc:26:9a:9b:bb: +# aa:62:83:4c:b4:06:7a:30:c8:29:bf:ed:06:4d:97: +# b9:1c:c4:31:2b:d5:5f:bc:53:12:17:9c:99:57:29: +# 66:77:61:21:31:07:2e:25:49:9d:18:f2:ee:f3:2b: +# 71:8c:b5:ba:39:07:49:77:fc:ef:2e:92:90:05:8d: +# 2d:2f:77:7b:ef:43:bf:35:bb:9a:d8:f9:73:a7:2c: +# f2:d0:57:ee:28:4e:26:5f:8f:90:68:09:2f:b8:f8: +# dc:06:e9:2e:9a:3e:51:a7:d1:22:c4:0a:a7:38:48: +# 6c:b3:f9:ff:7d:ab:86:57:e3:ba:d6:85:78:77:ba: +# 43:ea:48:7f:f6:d8:be:23:6d:1e:bf:d1:36:6c:58: +# 5c:f1:ee:a4:19:54:1a:f5:03:d2:76:e6:e1:8c:bd: +# 3c:b3:d3:48:4b:e2:c8:f8:7f:92:a8:76:46:9c:42: +# 65:3e:a4:1e:c1:07:03:5a:46:2d:b8:97:f3:b7:d5: +# b2:55:21:ef:ba:dc:4c:00:97:fb:14:95:27:33:bf: +# e8:43:47:46:d2:08:99:16:60:3b:9a:7e:d2:e6:ed: +# 38:ea:ec:01:1e:3c:48:56:49:09:c7:4c:37:00:9e: +# 88:0e:c0:73:e1:6f:66:e9:72:47:30:3e:10:e5:0b: +# 03:c9:9a:42:00:6c:c5:94:7e:61:c4:8a:df:7f:82: +# 1a:0b:59:c4:59:32:77:b3:bc:60:69:56:39:fd:b4: +# 06:7b:2c:d6:64:36:d9:bd:48:ed:84:1f:7e:a5:22: +# 8f:2a:b8:42:f4:82:b7:d4:53:90:78:4e:2d:1a:fd: +# 81:6f:44:d7:3b:01:74:96:42:e0:00:e2:2e:6b:ea: +# c5:ee:72:ac:bb:bf:fe:ea:aa:a8:f8:dc:f6:b2:79: +# 8a:b6:67 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 9D:C0:67:A6:0C:22:D9:26:F5:45:AB:A6:65:52:11:27:D8:45:AC:63 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# b3:57:4d:10:62:4e:3a:e4:ac:ea:b8:1c:af:32:23:c8:b3:49: +# 5a:51:9c:76:28:8d:79:aa:57:46:17:d5:f5:52:f6:b7:44:e8: +# 08:44:bf:18:84:d2:0b:80:cd:c5:12:fd:00:55:05:61:87:41: +# dc:b5:24:9e:3c:c4:d8:c8:fb:70:9e:2f:78:96:83:20:36:de: +# 7c:0f:69:13:88:a5:75:36:98:08:a6:c6:df:ac:ce:e3:58:d6: +# b7:3e:de:ba:f3:eb:34:40:d8:a2:81:f5:78:3f:2f:d5:a5:fc: +# d9:a2:d4:5e:04:0e:17:ad:fe:41:f0:e5:b2:72:fa:44:82:33: +# 42:e8:2d:58:f7:56:8c:62:3f:ba:42:b0:9c:0c:5c:7e:2e:65: +# 26:5c:53:4f:00:b2:78:7e:a1:0d:99:2d:8d:b8:1d:8e:a2:c4: +# b0:fd:60:d0:30:a4:8e:c8:04:62:a9:c4:ed:35:de:7a:97:ed: +# 0e:38:5e:92:2f:93:70:a5:a9:9c:6f:a7:7d:13:1d:7e:c6:08: +# 48:b1:5e:67:eb:51:08:25:e9:e6:25:6b:52:29:91:9c:d2:39: +# 73:08:57:de:99:06:b4:5b:9d:10:06:e1:c2:00:a8:b8:1c:4a: +# 02:0a:14:d0:c1:41:ca:fb:8c:35:21:7d:82:38:f2:a9:54:91: +# 19:35:93:94:6d:6a:3a:c5:b2:d0:bb:89:86:93:e8:9b:c9:0f: +# 3a:a7:7a:b8:a1:f0:78:46:fa:fc:37:2f:e5:8a:84:f3:df:fe: +# 04:d9:a1:68:a0:2f:24:e2:09:95:06:d5:95:ca:e1:24:96:eb: +# 7c:f6:93:05:bb:ed:73:e9:2d:d1:75:39:d7:e7:24:db:d8:4e: +# 5f:43:8f:9e:d0:14:39:bf:55:70:48:99:57:31:b4:9c:ee:4a: +# 98:03:96:30:1f:60:06:ee:1b:23:fe:81:60:23:1a:47:62:85: +# a5:cc:19:34:80:6f:b3:ac:1a:e3:9f:f0:7b:48:ad:d5:01:d9: +# 67:b6:a9:72:93:ea:2d:66:b5:b2:b8:e4:3d:3c:b2:ef:4c:8c: +# ea:eb:07:bf:ab:35:9a:55:86:bc:18:a6:b5:a8:5e:b4:83:6c: +# 6b:69:40:d3:9f:dc:f1:c3:69:6b:b9:e1:6d:09:f4:f1:aa:50: +# 76:0a:7a:7d:7a:17:a1:55:96:42:99:31:09:dd:60:11:8d:05: +# 30:7e:e6:8e:46:d1:9d:14:da:c7:17:e4:05:96:8c:c4:24:b5: +# 1b:cf:14:07:b2:40:f8:a3:9e:41:86:bc:04:d0:6b:96:c8:2a: +# 80:34:fd:bf:ef:06:a3:dd:58:c5:85:3d:3e:8f:fe:9e:29:e0: +# b6:b8:09:68:19:1c:18:43 + +[p11-kit-object-v1] +label: "AffirmTrust Premium ECC" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEDTBeGxWdA9CheTW3OjySesoVHM1i85wm +XAc95VT6o9bMEur0FF/ojhmrLy5I5qwYQ3is0DfDvbLNLOZH4hrmY7g9Li94xE/b +9A+kaExVcmuVHU4YQpV4zDc8keKbZSsp +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "AffirmTrust Premium ECC" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMC +VVMxFDASBgNVBAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQ +cmVtaXVtIEVDQzAeFw0xMDAxMjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJ +BgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1UcnVzdDEgMB4GA1UEAwwXQWZmaXJt +VHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQNMF4bFZ0D +0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQN8O9 +ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0G +A1UdDgQWBBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/Vs +aobgxCd05DhT1wV/GzTjxi+zygk8N53X57hG8f2h4nECMEJZh0PUUd+60wkyWs6I +flc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKMeQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 8401224907861490260 (0x7497258ac73f7a54) +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=AffirmTrust, CN=AffirmTrust Premium ECC +# Validity +# Not Before: Jan 29 14:20:24 2010 GMT +# Not After : Dec 31 14:20:24 2040 GMT +# Subject: C=US, O=AffirmTrust, CN=AffirmTrust Premium ECC +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:0d:30:5e:1b:15:9d:03:d0:a1:79:35:b7:3a:3c: +# 92:7a:ca:15:1c:cd:62:f3:9c:26:5c:07:3d:e5:54: +# fa:a3:d6:cc:12:ea:f4:14:5f:e8:8e:19:ab:2f:2e: +# 48:e6:ac:18:43:78:ac:d0:37:c3:bd:b2:cd:2c:e6: +# 47:e2:1a:e6:63:b8:3d:2e:2f:78:c4:4f:db:f4:0f: +# a4:68:4c:55:72:6b:95:1d:4e:18:42:95:78:cc:37: +# 3c:91:e2:9b:65:2b:29 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 9A:AF:29:7A:C0:11:35:35:26:51:30:00:C3:6A:FE:40:D5:AE:D6:3C +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:17:09:f3:87:88:50:5a:af:c8:c0:42:bf:47:5f: +# f5:6c:6a:86:e0:c4:27:74:e4:38:53:d7:05:7f:1b:34:e3:c6: +# 2f:b3:ca:09:3c:37:9d:d7:e7:b8:46:f1:fd:a1:e2:71:02:30: +# 42:59:87:43:d4:51:df:ba:d3:09:32:5a:ce:88:7e:57:3d:9c: +# 5f:42:6b:f5:07:2d:b5:f0:82:93:f9:59:6f:ae:64:fa:58:e5: +# 8b:1e:e3:63:be:b5:81:cd:6f:02:8c:79 + +[p11-kit-object-v1] +label: "Amazon Root CA 1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsniAccp41eNxr0eAUHR9 +btjXiHb0mWj3WCFg+XSEAS+sAi2G06BDek6ypNA2ugG+jdtIyAcXNkz07ogjxz7r +N/W1GfhJaLDe17l2OB1hnqT+gjal5UpW5EXh+f20Fvp02pybNTkv+rAgUAZsetCA +sqb5r+xHGY9QOAfcooc5WPi61an5SGcwlu6UeF5viaNRwDCGZqFFZrpU66PDkflI +3P/R6DAtfS10cDXXiCT3nsRZbrtzhxfyMkYouEP6tx2qyrTynyQOLUv3cVxeaf/q +lQLLOIquUDhv2/stYhvFxx5U4XfgZ8gPnIcj1j9AIH8ggMSATD47JCaOBK5smsiq +DQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Amazon Root CA 1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF +ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6 +b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL +MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv +b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj +ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM +9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw +IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6 +VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L +93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm +jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA +A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI +U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs +N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv +o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU +5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy +rqXRfboQnoZsG4q5WTP468SQvvG5 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 06:6c:9f:cf:99:bf:8c:0a:39:e2:f0:78:8a:43:e6:96:36:5b:ca +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=Amazon, CN=Amazon Root CA 1 +# Validity +# Not Before: May 26 00:00:00 2015 GMT +# Not After : Jan 17 00:00:00 2038 GMT +# Subject: C=US, O=Amazon, CN=Amazon Root CA 1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b2:78:80:71:ca:78:d5:e3:71:af:47:80:50:74: +# 7d:6e:d8:d7:88:76:f4:99:68:f7:58:21:60:f9:74: +# 84:01:2f:ac:02:2d:86:d3:a0:43:7a:4e:b2:a4:d0: +# 36:ba:01:be:8d:db:48:c8:07:17:36:4c:f4:ee:88: +# 23:c7:3e:eb:37:f5:b5:19:f8:49:68:b0:de:d7:b9: +# 76:38:1d:61:9e:a4:fe:82:36:a5:e5:4a:56:e4:45: +# e1:f9:fd:b4:16:fa:74:da:9c:9b:35:39:2f:fa:b0: +# 20:50:06:6c:7a:d0:80:b2:a6:f9:af:ec:47:19:8f: +# 50:38:07:dc:a2:87:39:58:f8:ba:d5:a9:f9:48:67: +# 30:96:ee:94:78:5e:6f:89:a3:51:c0:30:86:66:a1: +# 45:66:ba:54:eb:a3:c3:91:f9:48:dc:ff:d1:e8:30: +# 2d:7d:2d:74:70:35:d7:88:24:f7:9e:c4:59:6e:bb: +# 73:87:17:f2:32:46:28:b8:43:fa:b7:1d:aa:ca:b4: +# f2:9f:24:0e:2d:4b:f7:71:5c:5e:69:ff:ea:95:02: +# cb:38:8a:ae:50:38:6f:db:fb:2d:62:1b:c5:c7:1e: +# 54:e1:77:e0:67:c8:0f:9c:87:23:d6:3f:40:20:7f: +# 20:80:c4:80:4c:3e:3b:24:26:8e:04:ae:6c:9a:c8: +# aa:0d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 84:18:CC:85:34:EC:BC:0C:94:94:2E:08:59:9C:C7:B2:10:4E:0A:08 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 98:f2:37:5a:41:90:a1:1a:c5:76:51:28:20:36:23:0e:ae:e6: +# 28:bb:aa:f8:94:ae:48:a4:30:7f:1b:fc:24:8d:4b:b4:c8:a1: +# 97:f6:b6:f1:7a:70:c8:53:93:cc:08:28:e3:98:25:cf:23:a4: +# f9:de:21:d3:7c:85:09:ad:4e:9a:75:3a:c2:0b:6a:89:78:76: +# 44:47:18:65:6c:8d:41:8e:3b:7f:9a:cb:f4:b5:a7:50:d7:05: +# 2c:37:e8:03:4b:ad:e9:61:a0:02:6e:f5:f2:f0:c5:b2:ed:5b: +# b7:dc:fa:94:5c:77:9e:13:a5:7f:52:ad:95:f2:f8:93:3b:de: +# 8b:5c:5b:ca:5a:52:5b:60:af:14:f7:4b:ef:a3:fb:9f:40:95: +# 6d:31:54:fc:42:d3:c7:46:1f:23:ad:d9:0f:48:70:9a:d9:75: +# 78:71:d1:72:43:34:75:6e:57:59:c2:02:5c:26:60:29:cf:23: +# 19:16:8e:88:43:a5:d4:e4:cb:08:fb:23:11:43:e8:43:29:72: +# 62:a1:a9:5d:5e:08:d4:90:ae:b8:d8:ce:14:c2:d0:55:f2:86: +# f6:c4:93:43:77:66:61:c0:b9:e8:41:d7:97:78:60:03:6e:4a: +# 72:ae:a5:d1:7d:ba:10:9e:86:6c:1b:8a:b9:59:33:f8:eb:c4: +# 90:be:f1:b9 + +[p11-kit-object-v1] +label: "Amazon Root CA 2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArZafLZxKTEqBeVGZ7IrL +a2BRE7xNbQb8sAiN3RkQascmDDXYwG8ghOmUsZuFA8Nb20royPiQdtlbT+NM6AY2 +TcyarD0MkCuS1AYZYKw3RHmFgYKtWjfgDcydpkxSdupDnbcE0VD2VeDV0qZJhek3 +6cp+rlyVTUiaP64gWm2Ildk0uFIaQ5Cwv2wFubZ4t+rQ5Do8ElNi/0rye741BakS +NOPzZHRiLD0ASVoo/jJEu4fdZScCcTvaSvcf2s33IVWQTw/sroLhn2vZRdO78F+H +7TwsOYbaP97sclXreaOt2918sLoczvzeTzV2zw/4eB9qNlFGJ2Fb6Z7P8KJVfXwl +im8vtMXPhC4r/Q1REGz7Xxu8G37FrjuYATGS/wtX9JqyuVfpq+8NdtHw7vTOhqfg +bum0aaHfafYzxmkulxOepYewVxCBN8lTs7t/9pLRnNAY9JJu2oNPpmOZTKX7Xu8h +ZHogX2xkhRXLN+liDAsqFtwBLjLaPkv1njr2F0CU756RCIb6vmOoWjPsy3RDlfls +aVI2xylv/FUDXB/7n71H6+dJR5ULTokiCUng9WEe8b8uinJugFn/Vzr5dTKjTl/s +7Shi2U1z8syBF2Dtzevc26fKxX4CvfJUCFT9tC0JLBdUSpjRVOFRZwjS7W5+bz/S +LYFZKWbLkDmVER50J/7d668CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Amazon Root CA 2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFQTCCAymgAwIBAgITBmyf0pY1hp8KD+WGePhbJruKNzANBgkqhkiG9w0BAQwF +ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6 +b24gUm9vdCBDQSAyMB4XDTE1MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTEL +MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv +b3QgQ0EgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK2Wny2cSkxK +gXlRmeyKy2tgURO8TW0G/LAIjd0ZEGrHJgw12MBvIITplLGbhQPDW9tK6Mj4kHbZ +W0/jTOgGNk3Mmqw9DJArktQGGWCsN0R5hYGCrVo34A3MnaZMUnbqQ523BNFQ9lXg +1dKmSYXpN+nKfq5clU1Imj+uIFptiJXZNLhSGkOQsL9sBbm2eLfq0OQ6PBJTYv9K +8nu+NQWpEjTj82R0Yiw9AElaKP4yRLuH3WUnAnE72kr3H9rN9yFVkE8P7K6C4Z9r +2UXTu/Bfh+08LDmG2j/e7HJV63mjrdvdfLC6HM783k81ds8P+HgfajZRRidhW+me +z/CiVX18JYpvL7TFz4QuK/0NURBs+18bvBt+xa47mAExkv8LV/SasrlX6avvDXbR +8O70zoan4G7ptGmh32n2M8ZpLpcTnqWHsFcQgTfJU7O7f/aS0ZzQGPSSbtqDT6Zj +mUyl+17vIWR6IF9sZIUVyzfpYgwLKhbcAS4y2j5L9Z469hdAlO+ekQiG+r5jqFoz +7Mt0Q5X5bGlSNscpb/xVA1wf+5+9R+vnSUeVC06JIglJ4PVhHvG/LopyboBZ/1c6 ++XUyo05f7O0oYtlNc/LMgRdg7c3r3NunysV+Ar3yVAhU/bQtCSwXVEqY0VThUWcI +0u1ufm8/0i2BWSlmy5A5lREedCf+3euvAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMB +Af8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSwDPBMMPQFWAJI/TPlUq9LhONm +UjANBgkqhkiG9w0BAQwFAAOCAgEAqqiAjw54o+Ci1M3m9Zh6O+oAA7CXDpO8Wqj2 +LIxyh6mx/H9z/WNxeKWHWc8w4Q0QshNabYL1auaAn6AFC2jkR2vHat+2/XcycuUY ++gn0oJMsXdKMdYV2ZZAMA3m3MSNjrXiDCYZohMr/+c8mmpJ5581LxedhpxfL86kS +k5Nrp+gvU5LEYFiwzAJRGFuFjWJZY7attN6a+yb3ACfAXVU3dJnJUH/jWS5E4ywl +7uxMMne0nxrpS10gxdr9HIcWxkPo1LsmmkVwXqkLN1PiRnsn/eBG8om3zEK2yygm +btmlyTrIQRNg91CMFa6ybRoVGld45pIq2WWQgj9sAq+uEjonljYE1x2igGOpm/Hl +urR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbWaQbLU8uz/mtBzUF+ +fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoVYh63 +n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE +76KlXIx3KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H +9jVlpNMKVv/1F2Rs76giJUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT +4PsJYGw= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 06:6c:9f:d2:96:35:86:9f:0a:0f:e5:86:78:f8:5b:26:bb:8a:37 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=Amazon, CN=Amazon Root CA 2 +# Validity +# Not Before: May 26 00:00:00 2015 GMT +# Not After : May 26 00:00:00 2040 GMT +# Subject: C=US, O=Amazon, CN=Amazon Root CA 2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ad:96:9f:2d:9c:4a:4c:4a:81:79:51:99:ec:8a: +# cb:6b:60:51:13:bc:4d:6d:06:fc:b0:08:8d:dd:19: +# 10:6a:c7:26:0c:35:d8:c0:6f:20:84:e9:94:b1:9b: +# 85:03:c3:5b:db:4a:e8:c8:f8:90:76:d9:5b:4f:e3: +# 4c:e8:06:36:4d:cc:9a:ac:3d:0c:90:2b:92:d4:06: +# 19:60:ac:37:44:79:85:81:82:ad:5a:37:e0:0d:cc: +# 9d:a6:4c:52:76:ea:43:9d:b7:04:d1:50:f6:55:e0: +# d5:d2:a6:49:85:e9:37:e9:ca:7e:ae:5c:95:4d:48: +# 9a:3f:ae:20:5a:6d:88:95:d9:34:b8:52:1a:43:90: +# b0:bf:6c:05:b9:b6:78:b7:ea:d0:e4:3a:3c:12:53: +# 62:ff:4a:f2:7b:be:35:05:a9:12:34:e3:f3:64:74: +# 62:2c:3d:00:49:5a:28:fe:32:44:bb:87:dd:65:27: +# 02:71:3b:da:4a:f7:1f:da:cd:f7:21:55:90:4f:0f: +# ec:ae:82:e1:9f:6b:d9:45:d3:bb:f0:5f:87:ed:3c: +# 2c:39:86:da:3f:de:ec:72:55:eb:79:a3:ad:db:dd: +# 7c:b0:ba:1c:ce:fc:de:4f:35:76:cf:0f:f8:78:1f: +# 6a:36:51:46:27:61:5b:e9:9e:cf:f0:a2:55:7d:7c: +# 25:8a:6f:2f:b4:c5:cf:84:2e:2b:fd:0d:51:10:6c: +# fb:5f:1b:bc:1b:7e:c5:ae:3b:98:01:31:92:ff:0b: +# 57:f4:9a:b2:b9:57:e9:ab:ef:0d:76:d1:f0:ee:f4: +# ce:86:a7:e0:6e:e9:b4:69:a1:df:69:f6:33:c6:69: +# 2e:97:13:9e:a5:87:b0:57:10:81:37:c9:53:b3:bb: +# 7f:f6:92:d1:9c:d0:18:f4:92:6e:da:83:4f:a6:63: +# 99:4c:a5:fb:5e:ef:21:64:7a:20:5f:6c:64:85:15: +# cb:37:e9:62:0c:0b:2a:16:dc:01:2e:32:da:3e:4b: +# f5:9e:3a:f6:17:40:94:ef:9e:91:08:86:fa:be:63: +# a8:5a:33:ec:cb:74:43:95:f9:6c:69:52:36:c7:29: +# 6f:fc:55:03:5c:1f:fb:9f:bd:47:eb:e7:49:47:95: +# 0b:4e:89:22:09:49:e0:f5:61:1e:f1:bf:2e:8a:72: +# 6e:80:59:ff:57:3a:f9:75:32:a3:4e:5f:ec:ed:28: +# 62:d9:4d:73:f2:cc:81:17:60:ed:cd:eb:dc:db:a7: +# ca:c5:7e:02:bd:f2:54:08:54:fd:b4:2d:09:2c:17: +# 54:4a:98:d1:54:e1:51:67:08:d2:ed:6e:7e:6f:3f: +# d2:2d:81:59:29:66:cb:90:39:95:11:1e:74:27:fe: +# dd:eb:af +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B0:0C:F0:4C:30:F4:05:58:02:48:FD:33:E5:52:AF:4B:84:E3:66:52 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# aa:a8:80:8f:0e:78:a3:e0:a2:d4:cd:e6:f5:98:7a:3b:ea:00: +# 03:b0:97:0e:93:bc:5a:a8:f6:2c:8c:72:87:a9:b1:fc:7f:73: +# fd:63:71:78:a5:87:59:cf:30:e1:0d:10:b2:13:5a:6d:82:f5: +# 6a:e6:80:9f:a0:05:0b:68:e4:47:6b:c7:6a:df:b6:fd:77:32: +# 72:e5:18:fa:09:f4:a0:93:2c:5d:d2:8c:75:85:76:65:90:0c: +# 03:79:b7:31:23:63:ad:78:83:09:86:68:84:ca:ff:f9:cf:26: +# 9a:92:79:e7:cd:4b:c5:e7:61:a7:17:cb:f3:a9:12:93:93:6b: +# a7:e8:2f:53:92:c4:60:58:b0:cc:02:51:18:5b:85:8d:62:59: +# 63:b6:ad:b4:de:9a:fb:26:f7:00:27:c0:5d:55:37:74:99:c9: +# 50:7f:e3:59:2e:44:e3:2c:25:ee:ec:4c:32:77:b4:9f:1a:e9: +# 4b:5d:20:c5:da:fd:1c:87:16:c6:43:e8:d4:bb:26:9a:45:70: +# 5e:a9:0b:37:53:e2:46:7b:27:fd:e0:46:f2:89:b7:cc:42:b6: +# cb:28:26:6e:d9:a5:c9:3a:c8:41:13:60:f7:50:8c:15:ae:b2: +# 6d:1a:15:1a:57:78:e6:92:2a:d9:65:90:82:3f:6c:02:af:ae: +# 12:3a:27:96:36:04:d7:1d:a2:80:63:a9:9b:f1:e5:ba:b4:7c: +# 14:b0:4e:c9:b1:1f:74:5f:38:f6:51:ea:9b:fa:2c:a2:11:d4: +# a9:2d:27:1a:45:b1:af:b2:4e:71:0d:c0:58:46:d6:69:06:cb: +# 53:cb:b3:fe:6b:41:cd:41:7e:7d:4c:0f:7c:72:79:7a:59:cd: +# 5e:4a:0e:ac:9b:a9:98:73:79:7c:b4:f4:cc:b9:b8:07:0c:b2: +# 74:5c:b8:c7:6f:88:a1:90:a7:f4:aa:f9:bf:67:3a:f4:1a:15: +# 62:1e:b7:9f:be:3d:b1:29:af:67:a1:12:f2:58:10:19:53:03: +# 30:1b:b8:1a:89:f6:9c:bd:97:03:8e:a3:09:f3:1d:8b:21:f1: +# b4:df:e4:1c:d1:9f:65:02:06:ea:5c:d6:13:b3:84:ef:a2:a5: +# 5c:8c:77:29:a7:68:c0:6b:ae:40:d2:a8:b4:ea:cd:f0:8d:4b: +# 38:9c:19:9a:1b:28:54:b8:89:90:ef:ca:75:81:3e:1e:f2:64: +# 24:c7:18:af:4e:ff:47:9e:07:f6:35:65:a4:d3:0a:56:ff:f5: +# 17:64:6c:ef:a8:22:25:49:93:b6:df:00:17:da:58:7e:5d:ee: +# c5:1b:b0:d1:d1:5f:21:10:c7:f9:f3:ba:02:0a:27:07:c5:f1: +# d6:c7:d3:e0:fb:09:60:6c + +[p11-kit-object-v1] +label: "Amazon Root CA 3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEKZenxkF/wA2b6AEbVsbyUqW6LbIS +6NIu1/rJxdiqbR9zgTs7mGs5fDOlxU6GjoAXaGJFV31EWB2zN+VnCOtm3g== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Amazon Root CA 3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5 +MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24g +Um9vdCBDQSAzMB4XDTE1MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkG +A1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJvb3Qg +Q0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZBf8ANm+gBG1bG8lKl +ui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjrZt6j +QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSr +ttvXBp43rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkr +BqWTrBqYaGFy+uGh0PsceGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteM +YyRIHN8wfdVoOw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 06:6c:9f:d5:74:97:36:66:3f:3b:0b:9a:d9:e8:9e:76:03:f2:4a +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=US, O=Amazon, CN=Amazon Root CA 3 +# Validity +# Not Before: May 26 00:00:00 2015 GMT +# Not After : May 26 00:00:00 2040 GMT +# Subject: C=US, O=Amazon, CN=Amazon Root CA 3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (256 bit) +# pub: +# 04:29:97:a7:c6:41:7f:c0:0d:9b:e8:01:1b:56:c6: +# f2:52:a5:ba:2d:b2:12:e8:d2:2e:d7:fa:c9:c5:d8: +# aa:6d:1f:73:81:3b:3b:98:6b:39:7c:33:a5:c5:4e: +# 86:8e:80:17:68:62:45:57:7d:44:58:1d:b3:37:e5: +# 67:08:eb:66:de +# ASN1 OID: prime256v1 +# NIST CURVE: P-256 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# AB:B6:DB:D7:06:9E:37:AC:30:86:07:91:70:C7:9C:C4:19:B1:78:C0 +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:46:02:21:00:e0:85:92:a3:17:b7:8d:f9:2b:06:a5:93:ac: +# 1a:98:68:61:72:fa:e1:a1:d0:fb:1c:78:60:a6:43:99:c5:b8: +# c4:02:21:00:9c:02:ef:f1:94:9c:b3:96:f9:eb:c6:2a:f8:b6: +# 2c:fe:3a:90:14:16:d7:8c:63:24:48:1c:df:30:7d:d5:68:3b + +[p11-kit-object-v1] +label: "Amazon Root CA 4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE0quKN0+jUw3+wYp7S6h7RktjsGL2LRvb +CHEh0gDoY72aJ/vwOW5d6j2lyYGqo1sgmEVdFtv96BBt45zg471fhGLzcGQzoMsk +L3C6iKEqoHX4ga5iBsSB2zluKbAe+i5c +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Amazon Root CA 4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5 +MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24g +Um9vdCBDQSA0MB4XDTE1MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkG +A1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJvb3Qg +Q0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN/sGKe0uoe0ZLY7Bi +9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri83Bk +M6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB +/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WB +MAoGCCqGSM49BAMDA2gAMGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlw +CkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1AE47xDqUEpHJWEadIRNyp4iciuRMStuW +1KyLa2tJElMzrdfkviT8tQp21KW8EA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 06:6c:9f:d7:c1:bb:10:4c:29:43:e5:71:7b:7b:2c:c8:1a:c1:0e +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Amazon, CN=Amazon Root CA 4 +# Validity +# Not Before: May 26 00:00:00 2015 GMT +# Not After : May 26 00:00:00 2040 GMT +# Subject: C=US, O=Amazon, CN=Amazon Root CA 4 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:d2:ab:8a:37:4f:a3:53:0d:fe:c1:8a:7b:4b:a8: +# 7b:46:4b:63:b0:62:f6:2d:1b:db:08:71:21:d2:00: +# e8:63:bd:9a:27:fb:f0:39:6e:5d:ea:3d:a5:c9:81: +# aa:a3:5b:20:98:45:5d:16:db:fd:e8:10:6d:e3:9c: +# e0:e3:bd:5f:84:62:f3:70:64:33:a0:cb:24:2f:70: +# ba:88:a1:2a:a0:75:f8:81:ae:62:06:c4:81:db:39: +# 6e:29:b0:1e:fa:2e:5c +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# D3:EC:C7:3A:65:6E:CC:E1:DA:76:9A:56:FB:9C:F3:86:6D:57:E5:81 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:3a:8b:21:f1:bd:7e:11:ad:d0:ef:58:96:2f:d6: +# eb:9d:7e:90:8d:2b:cf:66:55:c3:2c:e3:28:a9:70:0a:47:0e: +# f0:37:59:12:ff:2d:99:94:28:4e:2a:4f:35:4d:33:5a:02:31: +# 00:ea:75:00:4e:3b:c4:3a:94:12:91:c9:58:46:9d:21:13:72: +# a7:88:9c:8a:e4:4c:4a:db:96:d4:ac:8b:6b:6b:49:12:53:33: +# ad:d7:e4:be:24:fc:b5:0a:76:d4:a5:bc:10 + +[p11-kit-object-v1] +label: "ANF Secure Server Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2+trK+ZkVJWCkKNypBkB +nZwLgV9zSbqnrPMETnuWC+wR4FumHM4b0g2DHCu4nh1+RTJgDwfpd1h+n2rIYU62 +JsFMjf9M7zSyH2XYuXj1ralxue9PWB2l3nQgl6HtaEzekhdLvKv/ZZqe+0fZV3Lz +CaGudkQTbpwtRDm8+cc7pFg9Qb20wkmjyA3Sly8HZVIAp27Ir2js9BSWtlcfVsM5 +nytt5PM+9jVk2gwcoYRLL0tL4iwknW2TQOu1I44yym9F06iJex7PHvpbQ4vNzagP +asoMXrmeR4/w2bYKC1hlFzO5I+R3GX3LSi6Se08vEHexjS9onGLM4FD47JGnVExX +CdV2Y8XoZR7ubWrPCZ36fE+tYAj9VpkPFSx7qYCrjGGPSgd2Qt499N2yJDNbuLWj +RMmsf3c8HSPsgqmm4sgGTAL+rFyZmQsvEIqm9H/Vh3QNWUlF9vBxXDkp1r9KI4v1 +XwFj0odzKLVLCvX4q4IsfnMlMh0LYwoXgQD/tnZe57SxQMohu9WAUeVIUmcs0mGJ +Bw0PzkJ3wERznERQoNsQCi2VHIGv5BzlFB7xNkEBAi99c6feQsxM6YkNVvefkdQD +xmzJj9vYHOBAmF1mmZiAbi3/AcXOy0YfrALGQ+auooQ8xU4ePW3JFEzjLkG7yjm/ +NjwqGapBh06lzksyed2QSX8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "ANF Secure Server Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF7zCCA9egAwIBAgIIDdPjvGz5a7EwDQYJKoZIhvcNAQELBQAwgYQxEjAQBgNV +BAUTCUc2MzI4NzUxMDELMAkGA1UEBhMCRVMxJzAlBgNVBAoTHkFORiBBdXRvcmlk +YWQgZGUgQ2VydGlmaWNhY2lvbjEUMBIGA1UECxMLQU5GIENBIFJhaXoxIjAgBgNV +BAMTGUFORiBTZWN1cmUgU2VydmVyIFJvb3QgQ0EwHhcNMTkwOTA0MTAwMDM4WhcN +MzkwODMwMTAwMDM4WjCBhDESMBAGA1UEBRMJRzYzMjg3NTEwMQswCQYDVQQGEwJF +UzEnMCUGA1UEChMeQU5GIEF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uMRQwEgYD +VQQLEwtBTkYgQ0EgUmFpejEiMCAGA1UEAxMZQU5GIFNlY3VyZSBTZXJ2ZXIgUm9v +dCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANvrayvmZFSVgpCj +cqQZAZ2cC4Ffc0m6p6zzBE57lgvsEeBbphzOG9INgxwruJ4dfkUyYA8H6XdYfp9q +yGFOtibBTI3/TO80sh9l2Ll49a2pcbnvT1gdpd50IJeh7WhM3pIXS7yr/2WanvtH +2Vdy8wmhrnZEE26cLUQ5vPnHO6RYPUG9tMJJo8gN0pcvB2VSAKduyK9o7PQUlrZX +H1bDOZ8rbeTzPvY1ZNoMHKGESy9LS+IsJJ1tk0DrtSOOMspvRdOoiXsezx76W0OL +zc2oD2rKDF65nkeP8Nm2CgtYZRczuSPkdxl9y0oukntPLxB3sY0vaJxizOBQ+OyR +p1RMVwnVdmPF6GUe7m1qzwmd+nxPrWAI/VaZDxUse6mAq4xhj0oHdkLePfTdsiQz +W7i1o0TJrH93PB0j7IKppuLIBkwC/qxcmZkLLxCKpvR/1Yd0DVlJRfbwcVw5Kda/ +SiOL9V8BY9KHcyi1Swr1+KuCLH5zJTIdC2MKF4EA/7Z2Xue0sUDKIbvVgFHlSFJn +LNJhiQcND85Cd8BEc5xEUKDbEAotlRyBr+Qc5RQe8TZBAQIvfXOn3kLMTOmJDVb3 +n5HUA8ZsyY/b2BzgQJhdZpmYgG4t/wHFzstGH6wCxkPmrqKEPMVOHj1tyRRM4y5B +u8o5vzY8KhmqQYdOpc5LMnndkEl/AgMBAAGjYzBhMB8GA1UdIwQYMBaAFJxf0Gxj +o1+TypOYCK2Mh6UsXME3MB0GA1UdDgQWBBScX9BsY6Nfk8qTmAitjIelLFzBNzAO +BgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOC +AgEATh65isagmD9uw2nAalxJUqzLK114OMHVVISfk/CHGT0sZonrDUL8zPB1hT+L +9IBdeeUXZ701guLyPI59WzbLWoAAKfLOKyzxj6ptBZNscsdW699QIyjlRRA96Gej +rw5VD5AJYu9LWaL2U/HANeQvwSS9eS9OICI7/RogsKQOLHDtdD+4E5UGUcjohybK +pFtqFiGS3XNgnhAY3jyB6ugYw3yJ8otQPr0R4hUDqDZ9MwFsSBXXiJCZBMXM5gf0 +vPSQ7RPi6ovDj6MzD8EpTBNO2hVWcXNyglD2mjN8orGoGjR0ZVzO0eurU+AagNjq +OknkJjCb5RyKqKkVMoaZkgoQI1YS4PbOTOK7vtuNknMBZi9iPrJyJ0U27U1W45eZ +/zo1PqVUSlJZS2Db7v54EX9K3BR5YLZrZAPbFYPhor72I5dQ8AkzNqdxliXzuUJ9 +2zg/LFis6ELhDtjTO0wugumDLmsx2d1Hhk9tl5EuT+IocTUW0fJz/iUrB0ckYyfI ++PbZa/wSMVYIwFNCr5zQM378BvAxRAMU8Vjq8moNqRGyg77FGr8H6lnco4g175x2 +MjxNBiLOFeXdntiP2t7SxDnlF4HPOEfrf4htWRvfn0IUrn7PqLBmZdo3r5+qPeoo +tt7VMVgWglvquxl1AnMaykgaIZOQCo6ThKd9OyMYkomgjaw= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 996390341000653745 (0xdd3e3bc6cf96bb1) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: serialNumber=G63287510, C=ES, O=ANF Autoridad de Certificacion, OU=ANF CA Raiz, CN=ANF Secure Server Root CA +# Validity +# Not Before: Sep 4 10:00:38 2019 GMT +# Not After : Aug 30 10:00:38 2039 GMT +# Subject: serialNumber=G63287510, C=ES, O=ANF Autoridad de Certificacion, OU=ANF CA Raiz, CN=ANF Secure Server Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:db:eb:6b:2b:e6:64:54:95:82:90:a3:72:a4:19: +# 01:9d:9c:0b:81:5f:73:49:ba:a7:ac:f3:04:4e:7b: +# 96:0b:ec:11:e0:5b:a6:1c:ce:1b:d2:0d:83:1c:2b: +# b8:9e:1d:7e:45:32:60:0f:07:e9:77:58:7e:9f:6a: +# c8:61:4e:b6:26:c1:4c:8d:ff:4c:ef:34:b2:1f:65: +# d8:b9:78:f5:ad:a9:71:b9:ef:4f:58:1d:a5:de:74: +# 20:97:a1:ed:68:4c:de:92:17:4b:bc:ab:ff:65:9a: +# 9e:fb:47:d9:57:72:f3:09:a1:ae:76:44:13:6e:9c: +# 2d:44:39:bc:f9:c7:3b:a4:58:3d:41:bd:b4:c2:49: +# a3:c8:0d:d2:97:2f:07:65:52:00:a7:6e:c8:af:68: +# ec:f4:14:96:b6:57:1f:56:c3:39:9f:2b:6d:e4:f3: +# 3e:f6:35:64:da:0c:1c:a1:84:4b:2f:4b:4b:e2:2c: +# 24:9d:6d:93:40:eb:b5:23:8e:32:ca:6f:45:d3:a8: +# 89:7b:1e:cf:1e:fa:5b:43:8b:cd:cd:a8:0f:6a:ca: +# 0c:5e:b9:9e:47:8f:f0:d9:b6:0a:0b:58:65:17:33: +# b9:23:e4:77:19:7d:cb:4a:2e:92:7b:4f:2f:10:77: +# b1:8d:2f:68:9c:62:cc:e0:50:f8:ec:91:a7:54:4c: +# 57:09:d5:76:63:c5:e8:65:1e:ee:6d:6a:cf:09:9d: +# fa:7c:4f:ad:60:08:fd:56:99:0f:15:2c:7b:a9:80: +# ab:8c:61:8f:4a:07:76:42:de:3d:f4:dd:b2:24:33: +# 5b:b8:b5:a3:44:c9:ac:7f:77:3c:1d:23:ec:82:a9: +# a6:e2:c8:06:4c:02:fe:ac:5c:99:99:0b:2f:10:8a: +# a6:f4:7f:d5:87:74:0d:59:49:45:f6:f0:71:5c:39: +# 29:d6:bf:4a:23:8b:f5:5f:01:63:d2:87:73:28:b5: +# 4b:0a:f5:f8:ab:82:2c:7e:73:25:32:1d:0b:63:0a: +# 17:81:00:ff:b6:76:5e:e7:b4:b1:40:ca:21:bb:d5: +# 80:51:e5:48:52:67:2c:d2:61:89:07:0d:0f:ce:42: +# 77:c0:44:73:9c:44:50:a0:db:10:0a:2d:95:1c:81: +# af:e4:1c:e5:14:1e:f1:36:41:01:02:2f:7d:73:a7: +# de:42:cc:4c:e9:89:0d:56:f7:9f:91:d4:03:c6:6c: +# c9:8f:db:d8:1c:e0:40:98:5d:66:99:98:80:6e:2d: +# ff:01:c5:ce:cb:46:1f:ac:02:c6:43:e6:ae:a2:84: +# 3c:c5:4e:1e:3d:6d:c9:14:4c:e3:2e:41:bb:ca:39: +# bf:36:3c:2a:19:aa:41:87:4e:a5:ce:4b:32:79:dd: +# 90:49:7f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Authority Key Identifier: +# 9C:5F:D0:6C:63:A3:5F:93:CA:93:98:08:AD:8C:87:A5:2C:5C:C1:37 +# X509v3 Subject Key Identifier: +# 9C:5F:D0:6C:63:A3:5F:93:CA:93:98:08:AD:8C:87:A5:2C:5C:C1:37 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 4e:1e:b9:8a:c6:a0:98:3f:6e:c3:69:c0:6a:5c:49:52:ac:cb: +# 2b:5d:78:38:c1:d5:54:84:9f:93:f0:87:19:3d:2c:66:89:eb: +# 0d:42:fc:cc:f0:75:85:3f:8b:f4:80:5d:79:e5:17:67:bd:35: +# 82:e2:f2:3c:8e:7d:5b:36:cb:5a:80:00:29:f2:ce:2b:2c:f1: +# 8f:aa:6d:05:93:6c:72:c7:56:eb:df:50:23:28:e5:45:10:3d: +# e8:67:a3:af:0e:55:0f:90:09:62:ef:4b:59:a2:f6:53:f1:c0: +# 35:e4:2f:c1:24:bd:79:2f:4e:20:22:3b:fd:1a:20:b0:a4:0e: +# 2c:70:ed:74:3f:b8:13:95:06:51:c8:e8:87:26:ca:a4:5b:6a: +# 16:21:92:dd:73:60:9e:10:18:de:3c:81:ea:e8:18:c3:7c:89: +# f2:8b:50:3e:bd:11:e2:15:03:a8:36:7d:33:01:6c:48:15:d7: +# 88:90:99:04:c5:cc:e6:07:f4:bc:f4:90:ed:13:e2:ea:8b:c3: +# 8f:a3:33:0f:c1:29:4c:13:4e:da:15:56:71:73:72:82:50:f6: +# 9a:33:7c:a2:b1:a8:1a:34:74:65:5c:ce:d1:eb:ab:53:e0:1a: +# 80:d8:ea:3a:49:e4:26:30:9b:e5:1c:8a:a8:a9:15:32:86:99: +# 92:0a:10:23:56:12:e0:f6:ce:4c:e2:bb:be:db:8d:92:73:01: +# 66:2f:62:3e:b2:72:27:45:36:ed:4d:56:e3:97:99:ff:3a:35: +# 3e:a5:54:4a:52:59:4b:60:db:ee:fe:78:11:7f:4a:dc:14:79: +# 60:b6:6b:64:03:db:15:83:e1:a2:be:f6:23:97:50:f0:09:33: +# 36:a7:71:96:25:f3:b9:42:7d:db:38:3f:2c:58:ac:e8:42:e1: +# 0e:d8:d3:3b:4c:2e:82:e9:83:2e:6b:31:d9:dd:47:86:4f:6d: +# 97:91:2e:4f:e2:28:71:35:16:d1:f2:73:fe:25:2b:07:47:24: +# 63:27:c8:f8:f6:d9:6b:fc:12:31:56:08:c0:53:42:af:9c:d0: +# 33:7e:fc:06:f0:31:44:03:14:f1:58:ea:f2:6a:0d:a9:11:b2: +# 83:be:c5:1a:bf:07:ea:59:dc:a3:88:35:ef:9c:76:32:3c:4d: +# 06:22:ce:15:e5:dd:9e:d8:8f:da:de:d2:c4:39:e5:17:81:cf: +# 38:47:eb:7f:88:6d:59:1b:df:9f:42:14:ae:7e:cf:a8:b0:66: +# 65:da:37:af:9f:aa:3d:ea:28:b6:de:d5:31:58:16:82:5b:ea: +# bb:19:75:02:73:1a:ca:48:1a:21:93:90:0a:8e:93:84:a7:7d: +# 3b:23:18:92:89:a0:8d:ac + +[p11-kit-object-v1] +label: "Atos TrustedRoot 2011" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlYU7l28qOy47z6bzKTW+ +zxisPqrZ+E2gPhpHubya3/L+zD5H6HqWwiSONfSpDPyC/W3BcmInvepr6+eKzFQ+ +kFDPgNSV++i1gtQUxbapVSVX27FQ9rBgZFl6ac8Dt28Nvso+b3Ry6qowKnNivkmR +YcgR/g4DKvdqINwCFQ1eFWr844LBtcWdZAlso1mYByfHG5YrYXRxbEPx9zWJEOCe +7FWhNyKihwQFLEd9tBy5YilmKMq34ZP1pJQDmblwhbXmSOqNUPzZ3sxvBw7dC3Kd +gDAWB5U/KA79xXVPU9Z0mrQkLo4Ckc92xZseVXSceCGx8C3xC5/C1ZYYH/BUInqM +BwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Atos TrustedRoot 2011" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UE +AwwVQXRvcyBUcnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQG +EwJERTAeFw0xMTA3MDcxNDU4MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMM +FUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsGA1UECgwEQXRvczELMAkGA1UEBhMC +REUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCVhTuXbyo7LjvPpvMp +Nb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr54rM +VD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+ +SZFhyBH+DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ +4J7sVaE3IqKHBAUsR320HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0L +cp2AMBYHlT8oDv3FdU9T1nSatCQujgKRz3bFmx5VdJx4IbHwLfELn8LVlhgf8FQi +eowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7Rl+lwrrw7GWzbITAPBgNV +HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZbNshMBgG +A1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3 +DQEBCwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8j +vZfza1zv7v1Apt+hk6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kP +DpFrdRbhIfzYJsdHt6bPWHJxfrrhTZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pc +maHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a961qn8FYiqTxlVMYVqL2Gns2D +lmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G3mB/ufNPRJLv +KrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 6643877497813316402 (0x5c33cb622c5fb332) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: CN=Atos TrustedRoot 2011, O=Atos, C=DE +# Validity +# Not Before: Jul 7 14:58:30 2011 GMT +# Not After : Dec 31 23:59:59 2030 GMT +# Subject: CN=Atos TrustedRoot 2011, O=Atos, C=DE +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:95:85:3b:97:6f:2a:3b:2e:3b:cf:a6:f3:29:35: +# be:cf:18:ac:3e:aa:d9:f8:4d:a0:3e:1a:47:b9:bc: +# 9a:df:f2:fe:cc:3e:47:e8:7a:96:c2:24:8e:35:f4: +# a9:0c:fc:82:fd:6d:c1:72:62:27:bd:ea:6b:eb:e7: +# 8a:cc:54:3e:90:50:cf:80:d4:95:fb:e8:b5:82:d4: +# 14:c5:b6:a9:55:25:57:db:b1:50:f6:b0:60:64:59: +# 7a:69:cf:03:b7:6f:0d:be:ca:3e:6f:74:72:ea:aa: +# 30:2a:73:62:be:49:91:61:c8:11:fe:0e:03:2a:f7: +# 6a:20:dc:02:15:0d:5e:15:6a:fc:e3:82:c1:b5:c5: +# 9d:64:09:6c:a3:59:98:07:27:c7:1b:96:2b:61:74: +# 71:6c:43:f1:f7:35:89:10:e0:9e:ec:55:a1:37:22: +# a2:87:04:05:2c:47:7d:b4:1c:b9:62:29:66:28:ca: +# b7:e1:93:f5:a4:94:03:99:b9:70:85:b5:e6:48:ea: +# 8d:50:fc:d9:de:cc:6f:07:0e:dd:0b:72:9d:80:30: +# 16:07:95:3f:28:0e:fd:c5:75:4f:53:d6:74:9a:b4: +# 24:2e:8e:02:91:cf:76:c5:9b:1e:55:74:9c:78:21: +# b1:f0:2d:f1:0b:9f:c2:d5:96:18:1f:f0:54:22:7a: +# 8c:07 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# A7:A5:06:B1:2C:A6:09:60:EE:D1:97:E9:70:AE:BC:3B:19:6C:DB:21 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# A7:A5:06:B1:2C:A6:09:60:EE:D1:97:E9:70:AE:BC:3B:19:6C:DB:21 +# X509v3 Certificate Policies: +# Policy: 1.3.6.1.4.1.6189.3.4.1.1 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 26:77:34:db:94:48:86:2a:41:9d:2c:3e:06:90:60:c4:8c:ac: +# 0b:54:b8:1f:b9:7b:d3:07:39:e4:fa:3e:7b:b2:3d:4e:ed:9f: +# 23:bd:97:f3:6b:5c:ef:ee:fd:40:a6:df:a1:93:a1:0a:86:ac: +# ef:20:d0:79:01:bd:78:f7:19:d8:24:31:34:04:01:a6:ba:15: +# 9a:c3:27:dc:d8:4f:0f:cc:18:63:ff:99:0f:0e:91:6b:75:16: +# e1:21:fc:d8:26:c7:47:b7:a6:cf:58:72:71:7e:ba:e1:4d:95: +# 47:3b:c9:af:6d:a1:b4:c1:ec:89:f6:b4:0f:38:b5:e2:64:dc: +# 25:cf:a6:db:eb:9a:5c:99:a1:c5:08:de:fd:e6:da:d5:d6:5a: +# 45:0c:c4:b7:c2:b5:14:ef:b4:11:ff:0e:15:b5:f5:f5:db:c6: +# bd:eb:5a:a7:f0:56:22:a9:3c:65:54:c6:15:a8:bd:86:9e:cd: +# 83:96:68:7a:71:81:89:e1:0b:e1:ea:11:1b:68:08:cc:69:9e: +# ec:9e:41:9e:44:32:26:7a:e2:87:0a:71:3d:eb:e4:5a:a4:d2: +# db:c5:cd:c6:de:60:7f:b9:f3:4f:44:92:ef:2a:b7:18:3e:a7: +# 19:d9:0b:7d:b1:37:41:42:b0:ba:60:1d:f2:fe:09:11:b0:f0: +# 87:7b:a7:9d + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA ECC G2 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEyFyAyk7CKB9XvzjmYSP80KlblhYWwwxe +FaWQCf84KLR6HgrWUyrBu5BAdDfpgeiNL2gBNXxSLtj0WLMRHFvZhxiTkS3sndps +nm2ESPzCiQXrmBMCAWxTHg5JY1hHsa/C +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA ECC G2 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICMTCCAbagAwIBAgIMC3MoERh0MBzvbwiEMAoGCCqGSM49BAMDMEsxCzAJBgNV +BAYTAkRFMQ0wCwYDVQQKDARBdG9zMS0wKwYDVQQDDCRBdG9zIFRydXN0ZWRSb290 +IFJvb3QgQ0EgRUNDIEcyIDIwMjAwHhcNMjAxMjE1MDgzOTEwWhcNNDAxMjEwMDgz +OTA5WjBLMQswCQYDVQQGEwJERTENMAsGA1UECgwEQXRvczEtMCsGA1UEAwwkQXRv +cyBUcnVzdGVkUm9vdCBSb290IENBIEVDQyBHMiAyMDIwMHYwEAYHKoZIzj0CAQYF +K4EEACIDYgAEyFyAyk7CKB9XvzjmYSP80KlblhYWwwxeFaWQCf84KLR6HgrWUyrB +u5BAdDfpgeiNL2gBNXxSLtj0WLMRHFvZhxiTkS3sndpsnm2ESPzCiQXrmBMCAWxT +Hg5JY1hHsa/Co2MwYTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFFsfxHFs +shufvlwfjP2ztvuzDgmHMB0GA1UdDgQWBBRbH8RxbLIbn75cH4z9s7b7sw4JhzAO +BgNVHQ8BAf8EBAMCAYYwCgYIKoZIzj0EAwMDaQAwZgIxAOzgmf3d5FTByx/oPijX +FVlKgspTMOzrNqW5yM6TR1bIYabhbZJTlY/241VT8N165wIxALCH1RuzYPyRjYDK +ohtRSzhUy6oee9flRJUWLzxEeC4luuqQ5OxS7lfsA4TzXtsWDQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0b:73:28:11:18:74:30:1c:ef:6f:08:84 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=Atos, CN=Atos TrustedRoot Root CA ECC G2 2020 +# Validity +# Not Before: Dec 15 08:39:10 2020 GMT +# Not After : Dec 10 08:39:09 2040 GMT +# Subject: C=DE, O=Atos, CN=Atos TrustedRoot Root CA ECC G2 2020 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:c8:5c:80:ca:4e:c2:28:1f:57:bf:38:e6:61:23: +# fc:d0:a9:5b:96:16:16:c3:0c:5e:15:a5:90:09:ff: +# 38:28:b4:7a:1e:0a:d6:53:2a:c1:bb:90:40:74:37: +# e9:81:e8:8d:2f:68:01:35:7c:52:2e:d8:f4:58:b3: +# 11:1c:5b:d9:87:18:93:91:2d:ec:9d:da:6c:9e:6d: +# 84:48:fc:c2:89:05:eb:98:13:02:01:6c:53:1e:0e: +# 49:63:58:47:b1:af:c2 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 5B:1F:C4:71:6C:B2:1B:9F:BE:5C:1F:8C:FD:B3:B6:FB:B3:0E:09:87 +# X509v3 Subject Key Identifier: +# 5B:1F:C4:71:6C:B2:1B:9F:BE:5C:1F:8C:FD:B3:B6:FB:B3:0E:09:87 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:ec:e0:99:fd:dd:e4:54:c1:cb:1f:e8:3e:28: +# d7:15:59:4a:82:ca:53:30:ec:eb:36:a5:b9:c8:ce:93:47:56: +# c8:61:a6:e1:6d:92:53:95:8f:f6:e3:55:53:f0:dd:7a:e7:02: +# 31:00:b0:87:d5:1b:b3:60:fc:91:8d:80:ca:a2:1b:51:4b:38: +# 54:cb:aa:1e:7b:d7:e5:44:95:16:2f:3c:44:78:2e:25:ba:ea: +# 90:e4:ec:52:ee:57:ec:03:84:f3:5e:db:16:0d + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA ECC TLS 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEloZYKDcKZ9Cg3iQZGeHkBQcfl+3oZIK5 +9sRxUM6KDP/XtXa7oWyTbIOiaG6l2b4siJVBzV3dscqDY4PMwL502eCdpO5KTlbg +mClBk1IQ1SQ4AjJn8ZQSb+/Xxd4u/RmA +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA ECC TLS 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICFTCCAZugAwIBAgIQPZg7pmY9kGP3fiZXOATvADAKBggqhkjOPQQDAzBMMS4w +LAYDVQQDDCVBdG9zIFRydXN0ZWRSb290IFJvb3QgQ0EgRUNDIFRMUyAyMDIxMQ0w +CwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0yMTA0MjIwOTI2MjNaFw00MTA0 +MTcwOTI2MjJaMEwxLjAsBgNVBAMMJUF0b3MgVHJ1c3RlZFJvb3QgUm9vdCBDQSBF +Q0MgVExTIDIwMjExDTALBgNVBAoMBEF0b3MxCzAJBgNVBAYTAkRFMHYwEAYHKoZI +zj0CAQYFK4EEACIDYgAEloZYKDcKZ9Cg3iQZGeHkBQcfl+3oZIK59sRxUM6KDP/X +tXa7oWyTbIOiaG6l2b4siJVBzV3dscqDY4PMwL502eCdpO5KTlbgmClBk1IQ1SQ4 +AjJn8ZQSb+/Xxd4u/RmAo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR2 +KCXWfeBmmnoJsmo7jjPXNtNPojAOBgNVHQ8BAf8EBAMCAYYwCgYIKoZIzj0EAwMD +aAAwZQIwW5kp85wxtolrbNa9d+F851F+uDrNozZffPc8dz7kUK2o59JZDCaOMDtu +CCrCp1rIAjEAmeMM56PDr9NJLkaCI2ZdyQAUEv049OGYa3cpetskz2VAv9LcjBHo +9H1/IISpQuQo +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 3d:98:3b:a6:66:3d:90:63:f7:7e:26:57:38:04:ef:00 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: CN=Atos TrustedRoot Root CA ECC TLS 2021, O=Atos, C=DE +# Validity +# Not Before: Apr 22 09:26:23 2021 GMT +# Not After : Apr 17 09:26:22 2041 GMT +# Subject: CN=Atos TrustedRoot Root CA ECC TLS 2021, O=Atos, C=DE +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:96:86:58:28:37:0a:67:d0:a0:de:24:19:19:e1: +# e4:05:07:1f:97:ed:e8:64:82:b9:f6:c4:71:50:ce: +# 8a:0c:ff:d7:b5:76:bb:a1:6c:93:6c:83:a2:68:6e: +# a5:d9:be:2c:88:95:41:cd:5d:dd:b1:ca:83:63:83: +# cc:c0:be:74:d9:e0:9d:a4:ee:4a:4e:56:e0:98:29: +# 41:93:52:10:d5:24:38:02:32:67:f1:94:12:6f:ef: +# d7:c5:de:2e:fd:19:80 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 76:28:25:D6:7D:E0:66:9A:7A:09:B2:6A:3B:8E:33:D7:36:D3:4F:A2 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:5b:99:29:f3:9c:31:b6:89:6b:6c:d6:bd:77:e1: +# 7c:e7:51:7e:b8:3a:cd:a3:36:5f:7c:f7:3c:77:3e:e4:50:ad: +# a8:e7:d2:59:0c:26:8e:30:3b:6e:08:2a:c2:a7:5a:c8:02:31: +# 00:99:e3:0c:e7:a3:c3:af:d3:49:2e:46:82:23:66:5d:c9:00: +# 14:12:fd:38:f4:e1:98:6b:77:29:7a:db:24:cf:65:40:bf:d2: +# dc:8c:11:e8:f4:7d:7f:20:84:a9:42:e4:28 + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA RSA G2 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAljGFSqoPMv554UOHnPsj +t45/DVS9x2KTd+QcNQR2owOLIu7EhN2lk25uso4JA+tRFjEXqmkVGA5ndCNe6pp9 +tTk+PYKpa+H+qRywrVpNTHiDQYvP8h1impgEnGPpq2X+SB0kZQdHPrmRLumdm38a +Nak0sLflcDPvSnJRtge/YD8qn51U3/PXlElRA1pAqWjdEVlc+HamvFBSEO2s7JXg +1INrSdoKT5mD3jKDSINnlbJ+54GFPc2C98oC7W2IXQiNuDW/KmkwmbtL0UHbRaCT +mVGBkDYIqoq26I+zy+7lRg1ydfVJbOGify+87YSmN+7ewk85Tvae8MnRmzCdSW3h +2v8SEIzW5Zl7BbZ9sAnHpPiyHDmVOTP0Nc4lYnuwXyDzy234bFIUZESP08ipdgfl +r3GZLS0EJUh2r8PnzEPyB7xKJCQ33fpulAlvTF4BtP5U7COWpV7dhv/pRirx6Nzs +pT2vb6oOD7R1+j4IuSZFT2aGTLwZuOHVNe6ChMjTqxLnzXMzYnf0F8u9NHYqBc6V +5Xh5S56wjfk8WDiR6l6HOMC3Qv2qTIcjrQQgsX52Qtq7tha6V8iOE/p11QhMrziR +qu+P+p9JLlR8ClaxevrETi/Uo/oWitCV5Zem/8P8fA5HWPN/B3sS3Fc/LeOhTVtS +TDOHmagJe2x+DvLPVkKe6wUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA RSA G2 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFfzCCA2egAwIBAgIMR7opRlU+FpKXsKtAMA0GCSqGSIb3DQEBDAUAMEsxCzAJ +BgNVBAYTAkRFMQ0wCwYDVQQKDARBdG9zMS0wKwYDVQQDDCRBdG9zIFRydXN0ZWRS +b290IFJvb3QgQ0EgUlNBIEcyIDIwMjAwHhcNMjAxMjE1MDg0MTIzWhcNNDAxMjEw +MDg0MTIyWjBLMQswCQYDVQQGEwJERTENMAsGA1UECgwEQXRvczEtMCsGA1UEAwwk +QXRvcyBUcnVzdGVkUm9vdCBSb290IENBIFJTQSBHMiAyMDIwMIICIjANBgkqhkiG +9w0BAQEFAAOCAg8AMIICCgKCAgEAljGFSqoPMv554UOHnPsjt45/DVS9x2KTd+Qc +NQR2owOLIu7EhN2lk25uso4JA+tRFjEXqmkVGA5ndCNe6pp9tTk+PYKpa+H+qRyw +rVpNTHiDQYvP8h1impgEnGPpq2X+SB0kZQdHPrmRLumdm38aNak0sLflcDPvSnJR +tge/YD8qn51U3/PXlElRA1pAqWjdEVlc+HamvFBSEO2s7JXg1INrSdoKT5mD3jKD +SINnlbJ+54GFPc2C98oC7W2IXQiNuDW/KmkwmbtL0UHbRaCTmVGBkDYIqoq26I+z +y+7lRg1ydfVJbOGify+87YSmN+7ewk85Tvae8MnRmzCdSW3h2v8SEIzW5Zl7BbZ9 +sAnHpPiyHDmVOTP0Nc4lYnuwXyDzy234bFIUZESP08ipdgflr3GZLS0EJUh2r8Pn +zEPyB7xKJCQ33fpulAlvTF4BtP5U7COWpV7dhv/pRirx6NzspT2vb6oOD7R1+j4I +uSZFT2aGTLwZuOHVNe6ChMjTqxLnzXMzYnf0F8u9NHYqBc6V5Xh5S56wjfk8WDiR +6l6HOMC3Qv2qTIcjrQQgsX52Qtq7tha6V8iOE/p11QhMrziRqu+P+p9JLlR8Clax +evrETi/Uo/oWitCV5Zem/8P8fA5HWPN/B3sS3Fc/LeOhTVtSTDOHmagJe2x+DvLP +VkKe6wUCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBQgJfMH +/adv8ZbukRBpzJrvfchoeDAdBgNVHQ4EFgQUICXzB/2nb/GW7pEQacya733IaHgw +DgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBDAUAA4ICAQAkK06Y8h0X7dl2JrYw +M+hpRaFRS1LYejowtuQS6r+fTOAEpPY1xv6hMPdThZKtVAVXX5LlKt42J557E0fJ +anWv/PM35wz1PQFztWlR+L1Z0boL+Lq6ZCdDs3yDlYrnnhOW129KlkFJiw4grRbG +96aHW4gSiYuJyhLSVq8iASFG6auYP6eI3uTLKpp1Gfo5XgkF1wMyGrgXUQjHAEB9 +9L74DFn0aXZu06RYW14mc+RCVQZeeEAP0zif7yZRcHSR8XdiAejZy+uh3zkyHbtr +/XH+68+l5hT9AIATxpoASLCZBemugEj7CT9RFLW552BNTcovgSHuUgxletz1iUlM +MJI0WIAyWbEN/yRhD+cKQtB7vPiOJ0c/cJ0n2bYGPaW7y16Prg5Tx5xqbztMD6NA +cKiaB87UblsHotLiVLa9bzNyY61RmOGPdvFqBzgl/vZizl/bY8Jume8G3LneGRro +VD190nZ12V4+MkinjPKecgz4uFi4FyOlFId1WHoAgQciOWpMlKC1otunLMGw8aOb +wEz3bXDqMZ/xrn0+cyjZod/6k/CbsPDizSUgde/ifTIFyZt27su9MR75lJhLJFhW +SMDeBky9pjRd7RZhY3P7GeL6W9iXddRtnmA5XpSLAizrmc5gKm4bjKdLvP025pgf +ZfJ/8eOPTIBGNli2oWXLzhxEdQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 47:ba:29:46:55:3e:16:92:97:b0:ab:40 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=DE, O=Atos, CN=Atos TrustedRoot Root CA RSA G2 2020 +# Validity +# Not Before: Dec 15 08:41:23 2020 GMT +# Not After : Dec 10 08:41:22 2040 GMT +# Subject: C=DE, O=Atos, CN=Atos TrustedRoot Root CA RSA G2 2020 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:96:31:85:4a:aa:0f:32:fe:79:e1:43:87:9c:fb: +# 23:b7:8e:7f:0d:54:bd:c7:62:93:77:e4:1c:35:04: +# 76:a3:03:8b:22:ee:c4:84:dd:a5:93:6e:6e:b2:8e: +# 09:03:eb:51:16:31:17:aa:69:15:18:0e:67:74:23: +# 5e:ea:9a:7d:b5:39:3e:3d:82:a9:6b:e1:fe:a9:1c: +# b0:ad:5a:4d:4c:78:83:41:8b:cf:f2:1d:62:9a:98: +# 04:9c:63:e9:ab:65:fe:48:1d:24:65:07:47:3e:b9: +# 91:2e:e9:9d:9b:7f:1a:35:a9:34:b0:b7:e5:70:33: +# ef:4a:72:51:b6:07:bf:60:3f:2a:9f:9d:54:df:f3: +# d7:94:49:51:03:5a:40:a9:68:dd:11:59:5c:f8:76: +# a6:bc:50:52:10:ed:ac:ec:95:e0:d4:83:6b:49:da: +# 0a:4f:99:83:de:32:83:48:83:67:95:b2:7e:e7:81: +# 85:3d:cd:82:f7:ca:02:ed:6d:88:5d:08:8d:b8:35: +# bf:2a:69:30:99:bb:4b:d1:41:db:45:a0:93:99:51: +# 81:90:36:08:aa:8a:b6:e8:8f:b3:cb:ee:e5:46:0d: +# 72:75:f5:49:6c:e1:a2:7f:2f:bc:ed:84:a6:37:ee: +# de:c2:4f:39:4e:f6:9e:f0:c9:d1:9b:30:9d:49:6d: +# e1:da:ff:12:10:8c:d6:e5:99:7b:05:b6:7d:b0:09: +# c7:a4:f8:b2:1c:39:95:39:33:f4:35:ce:25:62:7b: +# b0:5f:20:f3:cb:6d:f8:6c:52:14:64:44:8f:d3:c8: +# a9:76:07:e5:af:71:99:2d:2d:04:25:48:76:af:c3: +# e7:cc:43:f2:07:bc:4a:24:24:37:dd:fa:6e:94:09: +# 6f:4c:5e:01:b4:fe:54:ec:23:96:a5:5e:dd:86:ff: +# e9:46:2a:f1:e8:dc:ec:a5:3d:af:6f:aa:0e:0f:b4: +# 75:fa:3e:08:b9:26:45:4f:66:86:4c:bc:19:b8:e1: +# d5:35:ee:82:84:c8:d3:ab:12:e7:cd:73:33:62:77: +# f4:17:cb:bd:34:76:2a:05:ce:95:e5:78:79:4b:9e: +# b0:8d:f9:3c:58:38:91:ea:5e:87:38:c0:b7:42:fd: +# aa:4c:87:23:ad:04:20:b1:7e:76:42:da:bb:b6:16: +# ba:57:c8:8e:13:fa:75:d5:08:4c:af:38:91:aa:ef: +# 8f:fa:9f:49:2e:54:7c:0a:56:b1:7a:fa:c4:4e:2f: +# d4:a3:fa:16:8a:d0:95:e5:97:a6:ff:c3:fc:7c:0e: +# 47:58:f3:7f:07:7b:12:dc:57:3f:2d:e3:a1:4d:5b: +# 52:4c:33:87:99:a8:09:7b:6c:7e:0e:f2:cf:56:42: +# 9e:eb:05 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 20:25:F3:07:FD:A7:6F:F1:96:EE:91:10:69:CC:9A:EF:7D:C8:68:78 +# X509v3 Subject Key Identifier: +# 20:25:F3:07:FD:A7:6F:F1:96:EE:91:10:69:CC:9A:EF:7D:C8:68:78 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 24:2b:4e:98:f2:1d:17:ed:d9:76:26:b6:30:33:e8:69:45:a1: +# 51:4b:52:d8:7a:3a:30:b6:e4:12:ea:bf:9f:4c:e0:04:a4:f6: +# 35:c6:fe:a1:30:f7:53:85:92:ad:54:05:57:5f:92:e5:2a:de: +# 36:27:9e:7b:13:47:c9:6a:75:af:fc:f3:37:e7:0c:f5:3d:01: +# 73:b5:69:51:f8:bd:59:d1:ba:0b:f8:ba:ba:64:27:43:b3:7c: +# 83:95:8a:e7:9e:13:96:d7:6f:4a:96:41:49:8b:0e:20:ad:16: +# c6:f7:a6:87:5b:88:12:89:8b:89:ca:12:d2:56:af:22:01:21: +# 46:e9:ab:98:3f:a7:88:de:e4:cb:2a:9a:75:19:fa:39:5e:09: +# 05:d7:03:32:1a:b8:17:51:08:c7:00:40:7d:f4:be:f8:0c:59: +# f4:69:76:6e:d3:a4:58:5b:5e:26:73:e4:42:55:06:5e:78:40: +# 0f:d3:38:9f:ef:26:51:70:74:91:f1:77:62:01:e8:d9:cb:eb: +# a1:df:39:32:1d:bb:6b:fd:71:fe:eb:cf:a5:e6:14:fd:00:80: +# 13:c6:9a:00:48:b0:99:05:e9:ae:80:48:fb:09:3f:51:14:b5: +# b9:e7:60:4d:4d:ca:2f:81:21:ee:52:0c:65:7a:dc:f5:89:49: +# 4c:30:92:34:58:80:32:59:b1:0d:ff:24:61:0f:e7:0a:42:d0: +# 7b:bc:f8:8e:27:47:3f:70:9d:27:d9:b6:06:3d:a5:bb:cb:5e: +# 8f:ae:0e:53:c7:9c:6a:6f:3b:4c:0f:a3:40:70:a8:9a:07:ce: +# d4:6e:5b:07:a2:d2:e2:54:b6:bd:6f:33:72:63:ad:51:98:e1: +# 8f:76:f1:6a:07:38:25:fe:f6:62:ce:5f:db:63:c2:6e:99:ef: +# 06:dc:b9:de:19:1a:e8:54:3d:7d:d2:76:75:d9:5e:3e:32:48: +# a7:8c:f2:9e:72:0c:f8:b8:58:b8:17:23:a5:14:87:75:58:7a: +# 00:81:07:22:39:6a:4c:94:a0:b5:a2:db:a7:2c:c1:b0:f1:a3: +# 9b:c0:4c:f7:6d:70:ea:31:9f:f1:ae:7d:3e:73:28:d9:a1:df: +# fa:93:f0:9b:b0:f0:e2:cd:25:20:75:ef:e2:7d:32:05:c9:9b: +# 76:ee:cb:bd:31:1e:f9:94:98:4b:24:58:56:48:c0:de:06:4c: +# bd:a6:34:5d:ed:16:61:63:73:fb:19:e2:fa:5b:d8:97:75:d4: +# 6d:9e:60:39:5e:94:8b:02:2c:eb:99:ce:60:2a:6e:1b:8c:a7: +# 4b:bc:fd:36:e6:98:1f:65:f2:7f:f1:e3:8f:4c:80:46:36:58: +# b6:a1:65:cb:ce:1c:44:75 + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA RSA TLS 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtoAOxHm9BYx9sKOdTSJN +y/BBl01Z4NH+VoyX8te9j2y3I49f1cTYQcvyAh5x5en2XssIKl4w8i1mx4QbZFc4 +nXUtVsYvYe+W/CBGvevUez8/fEc4BKkbqlLfEzfTFRVOvV98r61jx3ncCHvVoOX3 +W3WsgFWZkmGbzSoXfduP9LVq6hdKZChmFSlsAvFr1bqjM9xaZ6cF4r9lthawEO3N +UDPJcFDsGY6wx/J0W2tExn2WuZgIWWbeKQGb9Cpt0xU6kGpn8bRrZtkh68rZYnxG +EFzedUlnnkL5/nWpo63/dgpnQOPF943HhZpZnmKaau1Fh5hnstVKPNe0OwANwI8f +4UDErmwh3El+fsqyjW22v5MvoVw+j8rtgI5Y4dtXz4U2OLJxpAmMkokIiEjxQGMY +sluMWuPD0xeqqxmjLBvk1cbiZnrXghmmOxYsL3GHX0WelXOTwkKBIROW1527k2gV ++p2kHYzygeBYBr3JtuP2iV2J+axEoctr+hbxx1A9JNr3w+SH1VbxT5Aw+kUJWdo0 +zuATHAR8ANSbhqRAvNncTFd+rrcztl524WWLZt+NyteYr842mIycg5kDcPOvdO3G +DjbnvezBc6eUWsuSZIKmAMFwoW4sKeFYV+xafJlrJaSQOoD0IJ2azsct+bJLKZWD +6TWNp0lIpw9MGZHQ9b8Q4HECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Atos TrustedRoot Root CA RSA TLS 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFZDCCA0ygAwIBAgIQU9XP5hmTC/srBRLYwiqipDANBgkqhkiG9w0BAQwFADBM +MS4wLAYDVQQDDCVBdG9zIFRydXN0ZWRSb290IFJvb3QgQ0EgUlNBIFRMUyAyMDIx +MQ0wCwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0yMTA0MjIwOTIxMTBaFw00 +MTA0MTcwOTIxMDlaMEwxLjAsBgNVBAMMJUF0b3MgVHJ1c3RlZFJvb3QgUm9vdCBD +QSBSU0EgVExTIDIwMjExDTALBgNVBAoMBEF0b3MxCzAJBgNVBAYTAkRFMIICIjAN +BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtoAOxHm9BYx9sKOdTSJNy/BBl01Z +4NH+VoyX8te9j2y3I49f1cTYQcvyAh5x5en2XssIKl4w8i1mx4QbZFc4nXUtVsYv +Ye+W/CBGvevUez8/fEc4BKkbqlLfEzfTFRVOvV98r61jx3ncCHvVoOX3W3WsgFWZ +kmGbzSoXfduP9LVq6hdKZChmFSlsAvFr1bqjM9xaZ6cF4r9lthawEO3NUDPJcFDs +GY6wx/J0W2tExn2WuZgIWWbeKQGb9Cpt0xU6kGpn8bRrZtkh68rZYnxGEFzedUln +nkL5/nWpo63/dgpnQOPF943HhZpZnmKaau1Fh5hnstVKPNe0OwANwI8f4UDErmwh +3El+fsqyjW22v5MvoVw+j8rtgI5Y4dtXz4U2OLJxpAmMkokIiEjxQGMYsluMWuPD +0xeqqxmjLBvk1cbiZnrXghmmOxYsL3GHX0WelXOTwkKBIROW1527k2gV+p2kHYzy +geBYBr3JtuP2iV2J+axEoctr+hbxx1A9JNr3w+SH1VbxT5Aw+kUJWdo0zuATHAR8 +ANSbhqRAvNncTFd+rrcztl524WWLZt+NyteYr842mIycg5kDcPOvdO3GDjbnvezB +c6eUWsuSZIKmAMFwoW4sKeFYV+xafJlrJaSQOoD0IJ2azsct+bJLKZWD6TWNp0lI +pw9MGZHQ9b8Q4HECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU +dEmZ0f+0emhFdcN+tNzMzjkz2ggwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB +DAUAA4ICAQAjQ1MkYlxt/T7Cz1UAbMVWiLkO3TriJQ2VSpfKgInuKs1l+NsW4AmS +4BjHeJi78+xCUvuppILXTdiK/ORO/auQxDh1MoSf/7OwKwIzNsAQkG8dnK/haZPs +o0UvFJ/1TCplQ3IM98P4lYsU84UgYt1UU90s3BiVaU+DR3BAM1h3Egyi61IxHkzJ +qM7F78PRreBrAwA0JrRUITWXAdxfG/F851X6LWh3e9NpzNMOa7pNdkTWwhWaJuyw +xfW70Xp0wmzNxbVe9kzmWy2B27O3Opee7c9GslA9hGCZcbUztVdF5kJHdWoOsAgM +rr3e97sPWD2PAzHoPYJQyi9eDF20l74gNAf0xBLh7tew2VktafcxBPTy+av5EzH4 +AXcOPUIjJsyacmdRIXrMPIWo6iFqO9taPKU0nprALN+AnCng33eU0aKAQv9qTFsR +0PXNor6uzFFcw9VUewyu1rkGd4Di7wcaaMxZUa1+XGdrudviB0JbuAEFWDlN5LuY +o7Ey7Nmj1m+UI/87tyll5gfp77YZ6ufCOB0yiJA8EytuzO+rdwY0d4RPcuSBhPm5 +dDTedk+SKlOxJTnbPP/lPqYO5Wue/9vsL3SD3460s6neFE3/MaNFcyT6lSnMEpcE +oji2jbDwN/zIIX8/syQbPYtuzE2wFg2WHYMfRsCbvUOZ58SWLs5fyQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 53:d5:cf:e6:19:93:0b:fb:2b:05:12:d8:c2:2a:a2:a4 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: CN=Atos TrustedRoot Root CA RSA TLS 2021, O=Atos, C=DE +# Validity +# Not Before: Apr 22 09:21:10 2021 GMT +# Not After : Apr 17 09:21:09 2041 GMT +# Subject: CN=Atos TrustedRoot Root CA RSA TLS 2021, O=Atos, C=DE +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b6:80:0e:c4:79:bd:05:8c:7d:b0:a3:9d:4d:22: +# 4d:cb:f0:41:97:4d:59:e0:d1:fe:56:8c:97:f2:d7: +# bd:8f:6c:b7:23:8f:5f:d5:c4:d8:41:cb:f2:02:1e: +# 71:e5:e9:f6:5e:cb:08:2a:5e:30:f2:2d:66:c7:84: +# 1b:64:57:38:9d:75:2d:56:c6:2f:61:ef:96:fc:20: +# 46:bd:eb:d4:7b:3f:3f:7c:47:38:04:a9:1b:aa:52: +# df:13:37:d3:15:15:4e:bd:5f:7c:af:ad:63:c7:79: +# dc:08:7b:d5:a0:e5:f7:5b:75:ac:80:55:99:92:61: +# 9b:cd:2a:17:7d:db:8f:f4:b5:6a:ea:17:4a:64:28: +# 66:15:29:6c:02:f1:6b:d5:ba:a3:33:dc:5a:67:a7: +# 05:e2:bf:65:b6:16:b0:10:ed:cd:50:33:c9:70:50: +# ec:19:8e:b0:c7:f2:74:5b:6b:44:c6:7d:96:b9:98: +# 08:59:66:de:29:01:9b:f4:2a:6d:d3:15:3a:90:6a: +# 67:f1:b4:6b:66:d9:21:eb:ca:d9:62:7c:46:10:5c: +# de:75:49:67:9e:42:f9:fe:75:a9:a3:ad:ff:76:0a: +# 67:40:e3:c5:f7:8d:c7:85:9a:59:9e:62:9a:6a:ed: +# 45:87:98:67:b2:d5:4a:3c:d7:b4:3b:00:0d:c0:8f: +# 1f:e1:40:c4:ae:6c:21:dc:49:7e:7e:ca:b2:8d:6d: +# b6:bf:93:2f:a1:5c:3e:8f:ca:ed:80:8e:58:e1:db: +# 57:cf:85:36:38:b2:71:a4:09:8c:92:89:08:88:48: +# f1:40:63:18:b2:5b:8c:5a:e3:c3:d3:17:aa:ab:19: +# a3:2c:1b:e4:d5:c6:e2:66:7a:d7:82:19:a6:3b:16: +# 2c:2f:71:87:5f:45:9e:95:73:93:c2:42:81:21:13: +# 96:d7:9d:bb:93:68:15:fa:9d:a4:1d:8c:f2:81:e0: +# 58:06:bd:c9:b6:e3:f6:89:5d:89:f9:ac:44:a1:cb: +# 6b:fa:16:f1:c7:50:3d:24:da:f7:c3:e4:87:d5:56: +# f1:4f:90:30:fa:45:09:59:da:34:ce:e0:13:1c:04: +# 7c:00:d4:9b:86:a4:40:bc:d9:dc:4c:57:7e:ae:b7: +# 33:b6:5e:76:e1:65:8b:66:df:8d:ca:d7:98:af:ce: +# 36:98:8c:9c:83:99:03:70:f3:af:74:ed:c6:0e:36: +# e7:bd:ec:c1:73:a7:94:5a:cb:92:64:82:a6:00:c1: +# 70:a1:6e:2c:29:e1:58:57:ec:5a:7c:99:6b:25:a4: +# 90:3a:80:f4:20:9d:9a:ce:c7:2d:f9:b2:4b:29:95: +# 83:e9:35:8d:a7:49:48:a7:0f:4c:19:91:d0:f5:bf: +# 10:e0:71 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 74:49:99:D1:FF:B4:7A:68:45:75:C3:7E:B4:DC:CC:CE:39:33:DA:08 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 23:43:53:24:62:5c:6d:fd:3e:c2:cf:55:00:6c:c5:56:88:b9: +# 0e:dd:3a:e2:25:0d:95:4a:97:ca:80:89:ee:2a:cd:65:f8:db: +# 16:e0:09:92:e0:18:c7:78:98:bb:f3:ec:42:52:fb:a9:a4:82: +# d7:4d:d8:8a:fc:e4:4e:fd:ab:90:c4:38:75:32:84:9f:ff:b3: +# b0:2b:02:33:36:c0:10:90:6f:1d:9c:af:e1:69:93:ec:a3:45: +# 2f:14:9f:f5:4c:2a:65:43:72:0c:f7:c3:f8:95:8b:14:f3:85: +# 20:62:dd:54:53:dd:2c:dc:18:95:69:4f:83:47:70:40:33:58: +# 77:12:0c:a2:eb:52:31:1e:4c:c9:a8:ce:c5:ef:c3:d1:ad:e0: +# 6b:03:00:34:26:b4:54:21:35:97:01:dc:5f:1b:f1:7c:e7:55: +# fa:2d:68:77:7b:d3:69:cc:d3:0e:6b:ba:4d:76:44:d6:c2:15: +# 9a:26:ec:b0:c5:f5:bb:d1:7a:74:c2:6c:cd:c5:b5:5e:f6:4c: +# e6:5b:2d:81:db:b3:b7:3a:97:9e:ed:cf:46:b2:50:3d:84:60: +# 99:71:b5:33:b5:57:45:e6:42:47:75:6a:0e:b0:08:0c:ae:bd: +# de:f7:bb:0f:58:3d:8f:03:31:e8:3d:82:50:ca:2f:5e:0c:5d: +# b4:97:be:20:34:07:f4:c4:12:e1:ee:d7:b0:d9:59:2d:69:f7: +# 31:04:f4:f2:f9:ab:f9:13:31:f8:01:77:0e:3d:42:23:26:cc: +# 9a:72:67:51:21:7a:cc:3c:85:a8:ea:21:6a:3b:db:5a:3c:a5: +# 34:9e:9a:c0:2c:df:80:9c:29:e0:df:77:94:d1:a2:80:42:ff: +# 6a:4c:5b:11:d0:f5:cd:a2:be:ae:cc:51:5c:c3:d5:54:7b:0c: +# ae:d6:b9:06:77:80:e2:ef:07:1a:68:cc:59:51:ad:7e:5c:67: +# 6b:b9:db:e2:07:42:5b:b8:01:05:58:39:4d:e4:bb:98:a3:b1: +# 32:ec:d9:a3:d6:6f:94:23:ff:3b:b7:29:65:e6:07:e9:ef:b6: +# 19:ea:e7:c2:38:1d:32:88:90:3c:13:2b:6e:cc:ef:ab:77:06: +# 34:77:84:4f:72:e4:81:84:f9:b9:74:34:de:76:4f:92:2a:53: +# b1:25:39:db:3c:ff:e5:3e:a6:0e:e5:6b:9e:ff:db:ec:2f:74: +# 83:df:8e:b4:b3:a9:de:14:4d:ff:31:a3:45:73:24:fa:95:29: +# cc:12:97:04:a2:38:b6:8d:b0:f0:37:fc:c8:21:7f:3f:b3:24: +# 1b:3d:8b:6e:cc:4d:b0:16:0d:96:1d:83:1f:46:c0:9b:bd:43: +# 99:e7:c4:96:2e:ce:5f:c9 + +[p11-kit-object-v1] +label: "Autoridad de Certificacion Firmaprofesional CIF A62634068" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAypZrjur4+/GiNeB/TNrg +w1LXfbYQyAJes0MqxE9qssocXSiaeBEaaVlXr7UgQuSLD+bfW6YDki/1EeRi1zJx +ONkEDHGrPVF+DwffYwVc6b+Ub8EpgsC02lGwwTy7rTdKXMrxSzYOJKu/w4R3/ahQ +9LHnxi/SLVmNegpOlmlSAqo2mOz8+hSDDDcfyZI3f9eBLeXEueA+NP5n9D5m0dP0 +QM9eYjQPcAY+IBhazvdyGyVsk3QUk6NzsQ6qhxAjWV8gBRlH7WiOkhLKXfzWK7KS +PCDP4V+vIL6gdn925ewahmEzPud7tD+gD46iuWpvuYcmb0FsiKZQ/WpjC/WTFhsZ +j7Ltm5vJkPUBDN8ZPQ8+OCPJL48M0QL+G1XWTtCNPK9PpPP+ryrTBZ15CKHLVzG0 +nMiQsmf0GBaTOvxH2NF4ljEfuisMX12ZrWOJWiQgdtjf/atOpiKqnV7mJ4p9aCmj +54q42hG7Fy2ZnRMkRvfF4tifjn/Hj3RtWrLocvWs7iQQrS8U2v8tmkZxR75C37sB +2/R/0yiPMVlb08kCprRSym6X+0PFCCZvivS7/Z8oqg3VRfMTOh3YwHiPQWc8HpRk +rnsLxejZAYg5GpeGZEHVO4cMbvoPxr1IFL85TdSeQbaPlh1jlpPZlQZ4MWieNwY7 +gIlFYTkjxxtEoxXlHPiSMLsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Autoridad de Certificacion Firmaprofesional CIF A62634068" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UE +BhMCRVMxQjBABgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1h +cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1 +MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg +Q2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBBNjI2MzQwNjgwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDDUtd9 +thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQM +cas9UX4PB99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefG +L9ItWY16Ck6WaVICqjaY7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15i +NA9wBj4gGFrO93IbJWyTdBSTo3OxDqqHECNZXyAFGUftaI6SEspd/NYrspI8IM/h +X68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyIplD9amML9ZMWGxmPsu2b +m8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctXMbScyJCy +Z/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirja +EbsXLZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/T +KI8xWVvTyQKmtFLKbpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF +6NkBiDkal4ZkQdU7hwxu+g/GvUgUvzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVh +OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMB0GA1UdDgQWBBRlzeurNR4APn7VdMAc +tHNHDhpkLzASBgNVHRMBAf8ECDAGAQH/AgEBMIGmBgNVHSAEgZ4wgZswgZgGBFUd +IAAwgY8wLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuZmlybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABC +AG8AbgBhAG4AbwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAw +ADEANzAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9m +iWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL4QjbEwj4KKE1soCzC1HA01aajTNF +Sa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDbLIpgD7dvlAceHabJ +hfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1ilI45P +Vf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZE +EAEeiGaPcjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV +1aUsIC+nmCjuRfzxuIgALI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2t +CsvMo2ebKHTEm9caPARYpoKdrcd7b/+Alun4jWq9GJAd/0kakFI3ky88Al2CdgtR +5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH9IBk9W6VULgRfhVwOEqw +f9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpfNIbnYrX9 +ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNK +GbqEZycPvEJdvSRUDewdcAZfpLz6IHxV +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1977337328857672817 (0x1b70e9d2ffae6c71) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=ES, CN=Autoridad de Certificacion Firmaprofesional CIF A62634068 +# Validity +# Not Before: Sep 23 15:22:07 2014 GMT +# Not After : May 5 15:22:07 2036 GMT +# Subject: C=ES, CN=Autoridad de Certificacion Firmaprofesional CIF A62634068 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ca:96:6b:8e:ea:f8:fb:f1:a2:35:e0:7f:4c:da: +# e0:c3:52:d7:7d:b6:10:c8:02:5e:b3:43:2a:c4:4f: +# 6a:b2:ca:1c:5d:28:9a:78:11:1a:69:59:57:af:b5: +# 20:42:e4:8b:0f:e6:df:5b:a6:03:92:2f:f5:11:e4: +# 62:d7:32:71:38:d9:04:0c:71:ab:3d:51:7e:0f:07: +# df:63:05:5c:e9:bf:94:6f:c1:29:82:c0:b4:da:51: +# b0:c1:3c:bb:ad:37:4a:5c:ca:f1:4b:36:0e:24:ab: +# bf:c3:84:77:fd:a8:50:f4:b1:e7:c6:2f:d2:2d:59: +# 8d:7a:0a:4e:96:69:52:02:aa:36:98:ec:fc:fa:14: +# 83:0c:37:1f:c9:92:37:7f:d7:81:2d:e5:c4:b9:e0: +# 3e:34:fe:67:f4:3e:66:d1:d3:f4:40:cf:5e:62:34: +# 0f:70:06:3e:20:18:5a:ce:f7:72:1b:25:6c:93:74: +# 14:93:a3:73:b1:0e:aa:87:10:23:59:5f:20:05:19: +# 47:ed:68:8e:92:12:ca:5d:fc:d6:2b:b2:92:3c:20: +# cf:e1:5f:af:20:be:a0:76:7f:76:e5:ec:1a:86:61: +# 33:3e:e7:7b:b4:3f:a0:0f:8e:a2:b9:6a:6f:b9:87: +# 26:6f:41:6c:88:a6:50:fd:6a:63:0b:f5:93:16:1b: +# 19:8f:b2:ed:9b:9b:c9:90:f5:01:0c:df:19:3d:0f: +# 3e:38:23:c9:2f:8f:0c:d1:02:fe:1b:55:d6:4e:d0: +# 8d:3c:af:4f:a4:f3:fe:af:2a:d3:05:9d:79:08:a1: +# cb:57:31:b4:9c:c8:90:b2:67:f4:18:16:93:3a:fc: +# 47:d8:d1:78:96:31:1f:ba:2b:0c:5f:5d:99:ad:63: +# 89:5a:24:20:76:d8:df:fd:ab:4e:a6:22:aa:9d:5e: +# e6:27:8a:7d:68:29:a3:e7:8a:b8:da:11:bb:17:2d: +# 99:9d:13:24:46:f7:c5:e2:d8:9f:8e:7f:c7:8f:74: +# 6d:5a:b2:e8:72:f5:ac:ee:24:10:ad:2f:14:da:ff: +# 2d:9a:46:71:47:be:42:df:bb:01:db:f4:7f:d3:28: +# 8f:31:59:5b:d3:c9:02:a6:b4:52:ca:6e:97:fb:43: +# c5:08:26:6f:8a:f4:bb:fd:9f:28:aa:0d:d5:45:f3: +# 13:3a:1d:d8:c0:78:8f:41:67:3c:1e:94:64:ae:7b: +# 0b:c5:e8:d9:01:88:39:1a:97:86:64:41:d5:3b:87: +# 0c:6e:fa:0f:c6:bd:48:14:bf:39:4d:d4:9e:41:b6: +# 8f:96:1d:63:96:93:d9:95:06:78:31:68:9e:37:06: +# 3b:80:89:45:61:39:23:c7:1b:44:a3:15:e5:1c:f8: +# 92:30:bb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 65:CD:EB:AB:35:1E:00:3E:7E:D5:74:C0:1C:B4:73:47:0E:1A:64:2F +# X509v3 Basic Constraints: critical +# CA:TRUE, pathlen:1 +# X509v3 Certificate Policies: +# Policy: X509v3 Any Policy +# CPS: http://www.firmaprofesional.com/cps +# User Notice: +# Explicit Text: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 74:87:28:02:2b:77:1f:66:89:64:ed:8f:74:2e:46:1c:bb:a8: +# f8:f8:0b:1d:83:b6:3a:a7:e8:45:8a:07:b7:e0:3e:20:cb:e1: +# 08:db:13:08:f8:28:a1:35:b2:80:b3:0b:51:c0:d3:56:9a:8d: +# 33:45:49:af:49:f0:e0:3d:07:7a:45:13:5a:ff:c8:97:d8:d3: +# 18:2c:7d:96:f8:dd:a2:65:43:70:93:90:15:ba:90:df:e8:19: +# b0:db:2c:8a:60:0f:b7:6f:94:07:1e:1d:a6:c9:85:f6:bd:34: +# f8:40:78:62:10:70:3a:be:7d:4b:39:81:a9:10:d4:96:41:bb: +# f8:5f:1c:0b:1d:08:f2:b1:b0:89:7a:f2:f7:a0:e0:c4:8f:8b: +# 78:b5:3b:58:a5:23:8e:4f:55:fe:36:3b:e0:0c:b7:ca:2a:30: +# 41:20:b4:80:cd:ae:fc:76:66:73:a8:ae:6e:e1:7c:da:03:e8: +# 94:20:e6:22:a3:d0:1f:90:5d:20:53:14:26:57:da:54:97:df: +# 16:44:10:01:1e:88:66:8f:72:38:93:dd:20:b7:34:be:d7:f1: +# ee:63:8e:47:79:28:06:fc:f3:59:45:25:60:22:33:1b:a3:5f: +# a8:ba:2a:da:1a:3d:cd:40:ea:8c:ee:05:15:95:d5:a5:2c:20: +# 2f:a7:98:28:ee:45:fc:f1:b8:88:00:2c:8f:42:da:51:d5:9c: +# e5:13:68:71:45:43:8b:9e:0b:21:3c:4b:5c:05:dc:1a:9f:98: +# 8e:da:bd:22:9e:72:cd:ad:0a:cb:cc:a3:67:9b:28:74:c4:9b: +# d7:1a:3c:04:58:a6:82:9d:ad:c7:7b:6f:ff:80:96:e9:f8:8d: +# 6a:bd:18:90:1d:ff:49:1a:90:52:37:93:2f:3c:02:5d:82:76: +# 0b:51:e7:16:c7:57:f8:38:f9:a7:cd:9b:22:54:ef:63:b0:15: +# 6d:53:65:03:4a:5e:4a:a0:b2:a7:8e:49:00:59:38:d5:c7:f4: +# 80:64:f5:6e:95:50:b8:11:7e:15:70:38:4a:b0:7f:d0:c4:32: +# 70:c0:19:ff:c9:38:2d:14:2c:66:f4:42:44:e6:55:76:1b:80: +# 15:57:ff:c0:a7:a7:aa:39:aa:d8:d3:70:d0:2e:ba:eb:94:6a: +# fa:5f:34:86:e7:62:b5:fd:8a:f0:30:85:94:c9:af:24:02:2f: +# 6f:d6:dd:67:fe:e3:b0:55:4f:04:98:4f:a4:41:56:e2:93:d0: +# 6a:e8:d6:f3:fb:65:e0:ce:75:c4:31:59:0c:ee:82:c8:0c:60: +# 33:4a:19:ba:84:67:27:0f:bc:42:5d:bd:24:54:0d:ec:1d:70: +# 06:5f:a4:bc:fa:20:7c:55 + +[p11-kit-object-v1] +label: "Baltimore CyberTrust Root" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAowS7IquYPVfoJnKatXnU +KeLh6JWAsbDjW44rKZpk36Fd7bAJBW3bKC7OYqJi/rSI2hLrOOshncBBKwFSe4h3 +0xyPx7q5iLVqCedz6BFAp9HMymKNLeWPC6ZQ0qhQwyjq9aslh4qalhypZ7g/DNX3 ++VITL8Ib1XBw8I/AEsoGy5rh2cozenfW+Oy58WhEQkgT0sDCpK5eYP62pgX8tN0H +WQLUWRiYY/WlY+CQDH1dsgZ684Xq69QDrl6EPl//Fe1pvPk5NnJ1z3dSTfPJkCy5 +PeXJI1M/HySYIVwHmSm9xjrs526GOmuXdGMzvWgYMfB4jXa//J6OXSqGp02Q3Cca +OQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Baltimore CyberTrust Root" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ +RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD +VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX +DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y +ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy +VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr +mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr +IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK +mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu +XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy +dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye +jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1 +BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3 +DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92 +9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx +jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0 +Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz +ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS +R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 33554617 (0x20000b9) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=IE, O=Baltimore, OU=CyberTrust, CN=Baltimore CyberTrust Root +# Validity +# Not Before: May 12 18:46:00 2000 GMT +# Not After : May 12 23:59:00 2025 GMT +# Subject: C=IE, O=Baltimore, OU=CyberTrust, CN=Baltimore CyberTrust Root +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:a3:04:bb:22:ab:98:3d:57:e8:26:72:9a:b5:79: +# d4:29:e2:e1:e8:95:80:b1:b0:e3:5b:8e:2b:29:9a: +# 64:df:a1:5d:ed:b0:09:05:6d:db:28:2e:ce:62:a2: +# 62:fe:b4:88:da:12:eb:38:eb:21:9d:c0:41:2b:01: +# 52:7b:88:77:d3:1c:8f:c7:ba:b9:88:b5:6a:09:e7: +# 73:e8:11:40:a7:d1:cc:ca:62:8d:2d:e5:8f:0b:a6: +# 50:d2:a8:50:c3:28:ea:f5:ab:25:87:8a:9a:96:1c: +# a9:67:b8:3f:0c:d5:f7:f9:52:13:2f:c2:1b:d5:70: +# 70:f0:8f:c0:12:ca:06:cb:9a:e1:d9:ca:33:7a:77: +# d6:f8:ec:b9:f1:68:44:42:48:13:d2:c0:c2:a4:ae: +# 5e:60:fe:b6:a6:05:fc:b4:dd:07:59:02:d4:59:18: +# 98:63:f5:a5:63:e0:90:0c:7d:5d:b2:06:7a:f3:85: +# ea:eb:d4:03:ae:5e:84:3e:5f:ff:15:ed:69:bc:f9: +# 39:36:72:75:cf:77:52:4d:f3:c9:90:2c:b9:3d:e5: +# c9:23:53:3f:1f:24:98:21:5c:07:99:29:bd:c6:3a: +# ec:e7:6e:86:3a:6b:97:74:63:33:bd:68:18:31:f0: +# 78:8d:76:bf:fc:9e:8e:5d:2a:86:a7:4d:90:dc:27: +# 1a:39 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# E5:9D:59:30:82:47:58:CC:AC:FA:08:54:36:86:7B:3A:B5:04:4D:F0 +# X509v3 Basic Constraints: critical +# CA:TRUE, pathlen:3 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 85:0c:5d:8e:e4:6f:51:68:42:05:a0:dd:bb:4f:27:25:84:03: +# bd:f7:64:fd:2d:d7:30:e3:a4:10:17:eb:da:29:29:b6:79:3f: +# 76:f6:19:13:23:b8:10:0a:f9:58:a4:d4:61:70:bd:04:61:6a: +# 12:8a:17:d5:0a:bd:c5:bc:30:7c:d6:e9:0c:25:8d:86:40:4f: +# ec:cc:a3:7e:38:c6:37:11:4f:ed:dd:68:31:8e:4c:d2:b3:01: +# 74:ee:be:75:5e:07:48:1a:7f:70:ff:16:5c:84:c0:79:85:b8: +# 05:fd:7f:be:65:11:a3:0f:c0:02:b4:f8:52:37:39:04:d5:a9: +# 31:7a:18:bf:a0:2a:f4:12:99:f7:a3:45:82:e3:3c:5e:f5:9d: +# 9e:b5:c8:9e:7c:2e:c8:a4:9e:4e:08:14:4b:6d:fd:70:6d:6b: +# 1a:63:bd:64:e6:1f:b7:ce:f0:f2:9f:2e:bb:1b:b7:f2:50:88: +# 73:92:c2:e2:e3:16:8d:9a:32:02:ab:8e:18:dd:e9:10:11:ee: +# 7e:35:ab:90:af:3e:30:94:7a:d0:33:3d:a7:65:0f:f5:fc:8e: +# 9e:62:cf:47:44:2c:01:5d:bb:1d:b5:32:d2:47:d2:38:2e:d0: +# fe:81:dc:32:6a:1e:b5:ee:3c:d5:fc:e7:81:1d:19:c3:24:42: +# ea:63:39:a9 + +[p11-kit-object-v1] +label: "BJCA Global Root CA1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA8WYIvdnFFWHLhARBpWk3 +dx3BsHv6w3dIkBNyZNG4fJA1nRh5iOOXATxHgfIOopgNnj834BmykPJGHJKxOmHO ++rdGngOG1zNu7fdFjHY33m6WkffXfiuHF9WLNe6EkXJX3GDDw7nnx2ckI09jCmP2 +Zn1LVac/eGRJaRKX4EwN0wmgMjA6+p/A8pzFEiouHLUEM9qkOBFq3sYY9kc6IkGH +IvzEiShU2IylMAr4FxbKrDf9eaeRF3g4ma1Y7bLezIl9A5yziWXn4zuxIoaPBm14 +B/2REn+waxyJDfm4y3RbB8LI9DXRZGN66W6aKNYwveYb3RWvhOqcx8r1DuryXSmH +j2lzOb4uJG9FIazF1GklBoOtekiFEywNBrhseVb8o2cygfVXpcpXQmnpXCRh7+Iw +GE5EmFVvesKT2Bm23nxHihFOSUfbKJQCC5RKLPkS0E/oMX5ser+mP5s5PQIWoxiz +Z6xbPyyDK2c5gVy5fpTVZN2ej26u6HxbtNdqR0jXfrPULY5Wdk7PafFuRGzUJOqN +JKEYv71X/qmZNbXbEHe4PUi61sHn8SM+19+FnSc81EC9Cgy99eeNJdaBdIdG1Cl1 +okJs93OJ532/ekof0yLJFVXP3298VdCkiwcRN1+DpiZXpgFbfv5YaAep6XrZuej/ +UB+rwrTAzujq/Q+9jU24vHECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "BJCA Global Root CA1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIQVW9l47TZkGobCdFsPsBsIDANBgkqhkiG9w0BAQsFADBU +MQswCQYDVQQGEwJDTjEmMCQGA1UECgwdQkVJSklORyBDRVJUSUZJQ0FURSBBVVRI +T1JJVFkxHTAbBgNVBAMMFEJKQ0EgR2xvYmFsIFJvb3QgQ0ExMB4XDTE5MTIxOTAz +MTYxN1oXDTQ0MTIxMjAzMTYxN1owVDELMAkGA1UEBhMCQ04xJjAkBgNVBAoMHUJF +SUpJTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZMR0wGwYDVQQDDBRCSkNBIEdsb2Jh +bCBSb290IENBMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAPFmCL3Z +xRVhy4QEQaVpN3cdwbB7+sN3SJATcmTRuHyQNZ0YeYjjlwE8R4HyDqKYDZ4/N+AZ +spDyRhySsTphzvq3Rp4Dhtczbu33RYx2N95ulpH3134rhxfVizXuhJFyV9xgw8O5 +58dnJCNPYwpj9mZ9S1WnP3hkSWkSl+BMDdMJoDIwOvqfwPKcxRIqLhy1BDPapDgR +at7GGPZHOiJBhyL8xIkoVNiMpTAK+BcWyqw3/XmnkRd4OJmtWO2y3syJfQOcs4ll +5+M7sSKGjwZteAf9kRJ/sGsciQ35uMt0WwfCyPQ10WRjeulumijWML3mG90Vr4Tq +nMfK9Q7q8l0ph49pczm+LiRvRSGsxdRpJQaDrXpIhRMsDQa4bHlW/KNnMoH1V6XK +V0Jp6VwkYe/iMBhORJhVb3rCk9gZtt58R4oRTklH2yiUAguUSiz5EtBP6DF+bHq/ +pj+bOT0CFqMYs2esWz8sgytnOYFcuX6U1WTdno9uruh8W7TXakdI136z1C2OVnZO +z2nxbkRs1CTqjSShGL+9V/6pmTW12xB3uD1IutbB5/EjPtffhZ0nPNRAvQoMvfXn +jSXWgXSHRtQpdaJCbPdzied9v3pKH9MiyRVVz99vfFXQpIsHETdfg6YmV6YBW37+ +WGgHqel62bno/1Afq8K0wM7o6v0PvY1NuLxxAgMBAAGjQjBAMB0GA1UdDgQWBBTF +7+3M2I0hxkjk49cULqcWk+WYATAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE +AwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAUoKsITQfI/Ki2Pm4rzc2IInRNwPWaZ+4 +YRC6ojGYWUfo0Q0lHhVBDOAqVdVXUsv45Mdpox1NcQJeXyFFYEhcCY5JEMEE3Kli +awLwQ8hOnThJdMkycFRtwUf8jrQ2ntScvd0g1lPJGKm1Vrl2i5VnZu69mP6u775u ++2D2/VnGKhs/I0qUJDAnyIm860Qkmss9vk/Ves6OF8tiwdneHg56/0OGNFK8YT88 +X7vZdrRTvJez/opMEi4r89fO4aL/3Xtw+zuhTaRjAv04l5U/BXCga99igUOLtFkN +SoxUnMW7gZ/NfaXvCyUeOiDbHPwfmGcCCtRzRBPbUYQaVQNW4AB+dAb/OMRyHdOo +P2gxXdMJxy6MW2Pg6Nwe0uxhHvLe5e/2mXZgLR6UcnHGCyoyx5JO1UbXHfmpGQrI ++pXObSOYqgs4rZpWDW+N8TEAiMEXnM0ZNjX+VVOg4DwzX5Ze4jLp3zO7Bkqp2IRz +znfSxqxx4VyjHQy7Ct9f4qNx2No3WqB4K/TUfet27fJhcKVlmtOJNBir+3I+17Q9 +eVzYH6Eze9mCUAyTF6ps3MKCuwJXNq+YJyo5UOGwifUll35HaBC07HPKs5fRJNz2 +YqAo07WjuGS3iGJCz51TzZm+ZGiPTx4SSPfSKcOYKMryMguTjClPPGAyzQWWYezy +r/6zcCwupvI= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 55:6f:65:e3:b4:d9:90:6a:1b:09:d1:6c:3e:c0:6c:20 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=BEIJING CERTIFICATE AUTHORITY, CN=BJCA Global Root CA1 +# Validity +# Not Before: Dec 19 03:16:17 2019 GMT +# Not After : Dec 12 03:16:17 2044 GMT +# Subject: C=CN, O=BEIJING CERTIFICATE AUTHORITY, CN=BJCA Global Root CA1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:f1:66:08:bd:d9:c5:15:61:cb:84:04:41:a5:69: +# 37:77:1d:c1:b0:7b:fa:c3:77:48:90:13:72:64:d1: +# b8:7c:90:35:9d:18:79:88:e3:97:01:3c:47:81:f2: +# 0e:a2:98:0d:9e:3f:37:e0:19:b2:90:f2:46:1c:92: +# b1:3a:61:ce:fa:b7:46:9e:03:86:d7:33:6e:ed:f7: +# 45:8c:76:37:de:6e:96:91:f7:d7:7e:2b:87:17:d5: +# 8b:35:ee:84:91:72:57:dc:60:c3:c3:b9:e7:c7:67: +# 24:23:4f:63:0a:63:f6:66:7d:4b:55:a7:3f:78:64: +# 49:69:12:97:e0:4c:0d:d3:09:a0:32:30:3a:fa:9f: +# c0:f2:9c:c5:12:2a:2e:1c:b5:04:33:da:a4:38:11: +# 6a:de:c6:18:f6:47:3a:22:41:87:22:fc:c4:89:28: +# 54:d8:8c:a5:30:0a:f8:17:16:ca:ac:37:fd:79:a7: +# 91:17:78:38:99:ad:58:ed:b2:de:cc:89:7d:03:9c: +# b3:89:65:e7:e3:3b:b1:22:86:8f:06:6d:78:07:fd: +# 91:12:7f:b0:6b:1c:89:0d:f9:b8:cb:74:5b:07:c2: +# c8:f4:35:d1:64:63:7a:e9:6e:9a:28:d6:30:bd:e6: +# 1b:dd:15:af:84:ea:9c:c7:ca:f5:0e:ea:f2:5d:29: +# 87:8f:69:73:39:be:2e:24:6f:45:21:ac:c5:d4:69: +# 25:06:83:ad:7a:48:85:13:2c:0d:06:b8:6c:79:56: +# fc:a3:67:32:81:f5:57:a5:ca:57:42:69:e9:5c:24: +# 61:ef:e2:30:18:4e:44:98:55:6f:7a:c2:93:d8:19: +# b6:de:7c:47:8a:11:4e:49:47:db:28:94:02:0b:94: +# 4a:2c:f9:12:d0:4f:e8:31:7e:6c:7a:bf:a6:3f:9b: +# 39:3d:02:16:a3:18:b3:67:ac:5b:3f:2c:83:2b:67: +# 39:81:5c:b9:7e:94:d5:64:dd:9e:8f:6e:ae:e8:7c: +# 5b:b4:d7:6a:47:48:d7:7e:b3:d4:2d:8e:56:76:4e: +# cf:69:f1:6e:44:6c:d4:24:ea:8d:24:a1:18:bf:bd: +# 57:fe:a9:99:35:b5:db:10:77:b8:3d:48:ba:d6:c1: +# e7:f1:23:3e:d7:df:85:9d:27:3c:d4:40:bd:0a:0c: +# bd:f5:e7:8d:25:d6:81:74:87:46:d4:29:75:a2:42: +# 6c:f7:73:89:e7:7d:bf:7a:4a:1f:d3:22:c9:15:55: +# cf:df:6f:7c:55:d0:a4:8b:07:11:37:5f:83:a6:26: +# 57:a6:01:5b:7e:fe:58:68:07:a9:e9:7a:d9:b9:e8: +# ff:50:1f:ab:c2:b4:c0:ce:e8:ea:fd:0f:bd:8d:4d: +# b8:bc:71 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# C5:EF:ED:CC:D8:8D:21:C6:48:E4:E3:D7:14:2E:A7:16:93:E5:98:01 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 52:82:ac:21:34:1f:23:f2:a2:d8:f9:b8:af:37:36:20:89:d1: +# 37:03:d6:69:9f:b8:61:10:ba:a2:31:98:59:47:e8:d1:0d:25: +# 1e:15:41:0c:e0:2a:55:d5:57:52:cb:f8:e4:c7:69:a3:1d:4d: +# 71:02:5e:5f:21:45:60:48:5c:09:8e:49:10:c1:04:dc:a9:62: +# 6b:02:f0:43:c8:4e:9d:38:49:74:c9:32:70:54:6d:c1:47:fc: +# 8e:b4:36:9e:d4:9c:bd:dd:20:d6:53:c9:18:a9:b5:56:b9:76: +# 8b:95:67:66:ee:bd:98:fe:ae:ef:be:6e:fb:60:f6:fd:59:c6: +# 2a:1b:3f:23:4a:94:24:30:27:c8:89:bc:eb:44:24:9a:cb:3d: +# be:4f:d5:7a:ce:8e:17:cb:62:c1:d9:de:1e:0e:7a:ff:43:86: +# 34:52:bc:61:3f:3c:5f:bb:d9:76:b4:53:bc:97:b3:fe:8a:4c: +# 12:2e:2b:f3:d7:ce:e1:a2:ff:dd:7b:70:fb:3b:a1:4d:a4:63: +# 02:fd:38:97:95:3f:05:70:a0:6b:df:62:81:43:8b:b4:59:0d: +# 4a:8c:54:9c:c5:bb:81:9f:cd:7d:a5:ef:0b:25:1e:3a:20:db: +# 1c:fc:1f:98:67:02:0a:d4:73:44:13:db:51:84:1a:55:03:56: +# e0:00:7e:74:06:ff:38:c4:72:1d:d3:a8:3f:68:31:5d:d3:09: +# c7:2e:8c:5b:63:e0:e8:dc:1e:d2:ec:61:1e:f2:de:e5:ef:f6: +# 99:76:60:2d:1e:94:72:71:c6:0b:2a:32:c7:92:4e:d5:46:d7: +# 1d:f9:a9:19:0a:c8:fa:95:ce:6d:23:98:aa:0b:38:ad:9a:56: +# 0d:6f:8d:f1:31:00:88:c1:17:9c:cd:19:36:35:fe:55:53:a0: +# e0:3c:33:5f:96:5e:e2:32:e9:df:33:bb:06:4a:a9:d8:84:73: +# ce:77:d2:c6:ac:71:e1:5c:a3:1d:0c:bb:0a:df:5f:e2:a3:71: +# d8:da:37:5a:a0:78:2b:f4:d4:7d:eb:76:ed:f2:61:70:a5:65: +# 9a:d3:89:34:18:ab:fb:72:3e:d7:b4:3d:79:5c:d8:1f:a1:33: +# 7b:d9:82:50:0c:93:17:aa:6c:dc:c2:82:bb:02:57:36:af:98: +# 27:2a:39:50:e1:b0:89:f5:25:97:7e:47:68:10:b4:ec:73:ca: +# b3:97:d1:24:dc:f6:62:a0:28:d3:b5:a3:b8:64:b7:88:62:42: +# cf:9d:53:cd:99:be:64:68:8f:4f:1e:12:48:f7:d2:29:c3:98: +# 28:ca:f2:32:0b:93:8c:29:4f:3c:60:32:cd:05:96:61:ec:f2: +# af:fe:b3:70:2c:2e:a6:f2 + +[p11-kit-object-v1] +label: "BJCA Global Root CA2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEncuAkY1TZ7W5ULED+OVJH0EiCbBRUljW +KzSPxRJGFMWLLyyE/yxuqNXxCeMDIRTEQz18wSzES2pKzemH4H32Ir76SlG4MIr9 +4d4YEgr2R7fnF78nitRBTJY8YJbB/RUc +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "BJCA Global Root CA2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICJTCCAaugAwIBAgIQLBcIfWQqwP6FGFkGz7RK6zAKBggqhkjOPQQDAzBUMQsw +CQYDVQQGEwJDTjEmMCQGA1UECgwdQkVJSklORyBDRVJUSUZJQ0FURSBBVVRIT1JJ +VFkxHTAbBgNVBAMMFEJKQ0EgR2xvYmFsIFJvb3QgQ0EyMB4XDTE5MTIxOTAzMTgy +MVoXDTQ0MTIxMjAzMTgyMVowVDELMAkGA1UEBhMCQ04xJjAkBgNVBAoMHUJFSUpJ +TkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZMR0wGwYDVQQDDBRCSkNBIEdsb2JhbCBS +b290IENBMjB2MBAGByqGSM49AgEGBSuBBAAiA2IABJ3LgJGNU2e1uVCxA/jlSR9B +IgmwUVJY1is0j8USRhTFiy8shP8sbqjV8QnjAyEUxEM9fMEsxEtqSs3ph+B99iK+ ++kpRuDCK/eHeGBIK9ke35xe/J4rUQUyWPGCWwf0VHKNCMEAwHQYDVR0OBBYEFNJK +sVF/BvDRgh9Obl+rg/xI1LCRMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD +AgEGMAoGCCqGSM49BAMDA2gAMGUCMBq8W9f+qdJUDkpd0m2xQNz0Q9XSSpkZElaA +94M04TVOSG0ED1cxMDAtsaqdAzjbBgIxAMvMh1PLet8gUXOQwKhbYdDFUDn9hf7B +43j4ptZLvZuHjw/l1lOWqzzIQNph91Oj9w== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 2c:17:08:7d:64:2a:c0:fe:85:18:59:06:cf:b4:4a:eb +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=CN, O=BEIJING CERTIFICATE AUTHORITY, CN=BJCA Global Root CA2 +# Validity +# Not Before: Dec 19 03:18:21 2019 GMT +# Not After : Dec 12 03:18:21 2044 GMT +# Subject: C=CN, O=BEIJING CERTIFICATE AUTHORITY, CN=BJCA Global Root CA2 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:9d:cb:80:91:8d:53:67:b5:b9:50:b1:03:f8:e5: +# 49:1f:41:22:09:b0:51:52:58:d6:2b:34:8f:c5:12: +# 46:14:c5:8b:2f:2c:84:ff:2c:6e:a8:d5:f1:09:e3: +# 03:21:14:c4:43:3d:7c:c1:2c:c4:4b:6a:4a:cd:e9: +# 87:e0:7d:f6:22:be:fa:4a:51:b8:30:8a:fd:e1:de: +# 18:12:0a:f6:47:b7:e7:17:bf:27:8a:d4:41:4c:96: +# 3c:60:96:c1:fd:15:1c +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D2:4A:B1:51:7F:06:F0:D1:82:1F:4E:6E:5F:AB:83:FC:48:D4:B0:91 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:1a:bc:5b:d7:fe:a9:d2:54:0e:4a:5d:d2:6d:b1: +# 40:dc:f4:43:d5:d2:4a:99:19:12:56:80:f7:83:34:e1:35:4e: +# 48:6d:04:0f:57:31:30:30:2d:b1:aa:9d:03:38:db:06:02:31: +# 00:cb:cc:87:53:cb:7a:df:20:51:73:90:c0:a8:5b:61:d0:c5: +# 50:39:fd:85:fe:c1:e3:78:f8:a6:d6:4b:bd:9b:87:8f:0f:e5: +# d6:53:96:ab:3c:c8:40:da:61:f7:53:a3:f7 + +[p11-kit-object-v1] +label: "Buypass Class 2 Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA18de98EH1Hf7QyH09PVp +5O4yAdujhh/kWQ2653WDUuvqHGEVSLsdB8qMrrDclp3qw2CShoIoc5xWBv9LZPAM +KjdJteXPDHzu8Uq7czBl89Uvg7Z+4+f1nqtg+dPxnZJ0iuQclqxbgOm19DGHo1H8 +x36hb45Td9SXwVUzkj4YL3XUrYZJy5WvVAZs2AYTjVv/4SYZWcAkuoFxeZBEUGgk +lF+4sxHxKUFho0HLIzbVwfEyUBBOf/SGk+yE0468S79cAU4HPdwUipQKpOpz+wtR +6BMHGPoO8SvRVBV9POH3tBlCZ2Jed+CiVey22WkX1TqvRO1KxZ7keid85XXXqssl +599rCtsPTZNOqKDNey7yWQFqtw24B4F+izgbOOYKV5k97iHoo/UMFt2L7DSOnCoc +ABUXjWiD0nCfGAjNEWjVyWtSzcRGj9y189hXcx7plDkEv9PeON60U+xpHKJ+xI/k +G3Ct8qL5+/cWZGZpn0lRouIVGGcGSn/VbLVNszPgYetdvumYDzLXHUs8LloBUpEJ +8t/qjdgGQGOqEeT+wzeeFFI/9OLM8mGT0f1na9dSrr9oq0BDoFc1U3jwU/hhQgdk +xtdvm0w4DWOsYq82i6JzCg31Ib10qk3qcgNJ28dfHWJjx/3dkewz7vVttG4waN7I +1iawdV57tAcgmKF2MrhNbE8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Buypass Class 2 Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEd +MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3Mg +Q2xhc3MgMiBSb290IENBMB4XDTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1ow +TjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MSAw +HgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEB +BQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1g1Lr +6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPV +L4O2fuPn9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC91 +1K2GScuVr1QGbNgGE41b/+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHx +MlAQTn/0hpPshNOOvEu/XAFOBz3cFIqUCqTqc/sLUegTBxj6DvEr0VQVfTzh97QZ +QmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeffawrbD02TTqigzXsu8lkB +arcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9JwnxgIzRFo1clr +Us3ERo/ctfPYV3Me6ZQ5BL/T3jjetFPsaRyifsSP5BtwrfKi+fv3FmRmaZ9JUaLi +FRhnBkp/1Wy1TbMz4GHrXb7pmA8y1x1LPC5aAVKRCfLf6o3YBkBjqhHk/sM3nhRS +P/TizPJhk9H9Z2vXUq6/aKtAQ6BXNVN48FP4YUIHZMbXb5tMOA1jrGKvNouicwoN +9SG9dKpN6nIDSdvHXx1iY8f93ZHsM+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxP +AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMmAd+BikoL1Rpzz +uvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAU18h +9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s +A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3t +OluwlN5E40EIosHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo ++fsicdl9sz1Gv7SEr5AcD48Saq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7 +KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYdDnkM/crqJIByw5c/8nerQyIKx+u2 +DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWDLfJ6v9r9jv6ly0Us +H8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0oyLQ +I+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK7 +5t98biGCwWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h +3PFaTWwyI0PurKju7koSCTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPz +Y11aWOIv4x3kqdbQCtCev9eBCfHJxyYNrJgWVqA= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 2 (0x2) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=NO, O=Buypass AS-983163327, CN=Buypass Class 2 Root CA +# Validity +# Not Before: Oct 26 08:38:03 2010 GMT +# Not After : Oct 26 08:38:03 2040 GMT +# Subject: C=NO, O=Buypass AS-983163327, CN=Buypass Class 2 Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d7:c7:5e:f7:c1:07:d4:77:fb:43:21:f4:f4:f5: +# 69:e4:ee:32:01:db:a3:86:1f:e4:59:0d:ba:e7:75: +# 83:52:eb:ea:1c:61:15:48:bb:1d:07:ca:8c:ae:b0: +# dc:96:9d:ea:c3:60:92:86:82:28:73:9c:56:06:ff: +# 4b:64:f0:0c:2a:37:49:b5:e5:cf:0c:7c:ee:f1:4a: +# bb:73:30:65:f3:d5:2f:83:b6:7e:e3:e7:f5:9e:ab: +# 60:f9:d3:f1:9d:92:74:8a:e4:1c:96:ac:5b:80:e9: +# b5:f4:31:87:a3:51:fc:c7:7e:a1:6f:8e:53:77:d4: +# 97:c1:55:33:92:3e:18:2f:75:d4:ad:86:49:cb:95: +# af:54:06:6c:d8:06:13:8d:5b:ff:e1:26:19:59:c0: +# 24:ba:81:71:79:90:44:50:68:24:94:5f:b8:b3:11: +# f1:29:41:61:a3:41:cb:23:36:d5:c1:f1:32:50:10: +# 4e:7f:f4:86:93:ec:84:d3:8e:bc:4b:bf:5c:01:4e: +# 07:3d:dc:14:8a:94:0a:a4:ea:73:fb:0b:51:e8:13: +# 07:18:fa:0e:f1:2b:d1:54:15:7d:3c:e1:f7:b4:19: +# 42:67:62:5e:77:e0:a2:55:ec:b6:d9:69:17:d5:3a: +# af:44:ed:4a:c5:9e:e4:7a:27:7c:e5:75:d7:aa:cb: +# 25:e7:df:6b:0a:db:0f:4d:93:4e:a8:a0:cd:7b:2e: +# f2:59:01:6a:b7:0d:b8:07:81:7e:8b:38:1b:38:e6: +# 0a:57:99:3d:ee:21:e8:a3:f5:0c:16:dd:8b:ec:34: +# 8e:9c:2a:1c:00:15:17:8d:68:83:d2:70:9f:18:08: +# cd:11:68:d5:c9:6b:52:cd:c4:46:8f:dc:b5:f3:d8: +# 57:73:1e:e9:94:39:04:bf:d3:de:38:de:b4:53:ec: +# 69:1c:a2:7e:c4:8f:e4:1b:70:ad:f2:a2:f9:fb:f7: +# 16:64:66:69:9f:49:51:a2:e2:15:18:67:06:4a:7f: +# d5:6c:b5:4d:b3:33:e0:61:eb:5d:be:e9:98:0f:32: +# d7:1d:4b:3c:2e:5a:01:52:91:09:f2:df:ea:8d:d8: +# 06:40:63:aa:11:e4:fe:c3:37:9e:14:52:3f:f4:e2: +# cc:f2:61:93:d1:fd:67:6b:d7:52:ae:bf:68:ab:40: +# 43:a0:57:35:53:78:f0:53:f8:61:42:07:64:c6:d7: +# 6f:9b:4c:38:0d:63:ac:62:af:36:8b:a2:73:0a:0d: +# f5:21:bd:74:aa:4d:ea:72:03:49:db:c7:5f:1d:62: +# 63:c7:fd:dd:91:ec:33:ee:f5:6d:b4:6e:30:68:de: +# c8:d6:26:b0:75:5e:7b:b4:07:20:98:a1:76:32:b8: +# 4d:6c:4f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# C9:80:77:E0:62:92:82:F5:46:9C:F3:BA:F7:4C:C3:DE:B8:A3:AD:39 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 53:5f:21:f5:ba:b0:3a:52:39:2c:92:b0:6c:00:c9:ef:ce:20: +# ef:06:f2:96:9e:e9:a4:74:7f:7a:16:fc:b7:f5:b6:fb:15:1b: +# 3f:ab:a6:c0:72:5d:10:b1:71:ee:bc:4f:e3:ad:ac:03:6d:2e: +# 71:2e:af:c4:e3:ad:a3:bd:0c:11:a7:b4:ff:4a:b2:7b:10:10: +# 1f:a7:57:41:b2:c0:ae:f4:2c:59:d6:47:10:88:f3:21:51:29: +# 30:ca:60:86:af:46:ab:1d:ed:3a:5b:b0:94:de:44:e3:41:08: +# a2:c1:ec:1d:d6:fd:4f:b6:d6:47:d0:14:0b:ca:e6:ca:b5:7b: +# 77:7e:41:1f:5e:83:c7:b6:8c:39:96:b0:3f:96:81:41:6f:60: +# 90:e2:e8:f9:fb:22:71:d9:7d:b3:3d:46:bf:b4:84:af:90:1c: +# 0f:8f:12:6a:af:ef:ee:1e:7a:ae:02:4a:8a:17:2b:76:fe:ac: +# 54:89:24:2c:4f:3f:b6:b2:a7:4e:8c:a8:91:97:fb:29:c6:7b: +# 5c:2d:b9:cb:66:b6:b7:a8:5b:12:51:85:b5:09:7e:62:78:70: +# fe:a9:6a:60:b6:1d:0e:79:0c:fd:ca:ea:24:80:72:c3:97:3f: +# f2:77:ab:43:22:0a:c7:eb:b6:0c:84:82:2c:80:6b:41:8a:08: +# c0:eb:a5:6b:df:99:12:cb:8a:d5:5e:80:0c:91:e0:26:08:36: +# 48:c5:fa:38:11:35:ff:25:83:2d:f2:7a:bf:da:fd:8e:fe:a5: +# cb:45:2c:1f:c4:88:53:ae:77:0e:d9:9a:76:c5:8e:2c:1d:a3: +# ba:d5:ec:32:ae:c0:aa:ac:f7:d1:7a:4d:eb:d4:07:e2:48:f7: +# 22:8e:b0:a4:9f:6a:ce:8e:b2:b2:60:f4:a3:22:d0:23:eb:94: +# 5a:7a:69:dd:0f:bf:40:57:ac:6b:59:50:d9:a3:99:e1:6e:fe: +# 8d:01:79:27:23:15:de:92:9d:7b:09:4d:5a:e7:4b:48:30:5a: +# 18:e6:0a:6d:e6:8f:e0:d2:bb:e6:df:7c:6e:21:82:c1:68:39: +# 4d:b4:98:58:66:62:cc:4a:90:5e:c3:fa:27:04:b1:79:15:74: +# 99:cc:be:ad:20:de:26:60:1c:eb:56:51:a6:a3:ea:e4:a3:3f: +# a7:ff:61:dc:f1:5a:4d:6c:32:23:43:ee:ac:a8:ee:ee:4a:12: +# 09:3c:5d:71:c2:be:79:fa:c2:87:68:1d:0b:fd:5c:69:cc:06: +# d0:9a:7d:54:99:2a:c9:39:1a:19:af:4b:2a:43:f3:63:5d:5a: +# 58:e2:2f:e3:1d:e4:a9:d6:d0:0a:d0:9e:bf:d7:81:09:f1:c9: +# c7:26:0d:ac:98:16:56:a0 + +[p11-kit-object-v1] +label: "Buypass Class 3 Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEApdoKlRZQ45XyXp12MQYy +epvxEHa4AJq1UjbNJEewnxhkvJr2+tV52JBiTCIv3jg91uCo6Rws23gR6Y5oURVy +x/Mzh+SgXQtc4FcHKjD1zcQ3dyhNGJHmv9VS/XEtcD7nxsSK4/AoC/R2mKGLh1Wy +OhP8tz4nN44i46hPKu9guz23OcMOAUeZXRJP20P6V6Ht+Z2+EUcmWxOYq10WirA3 +HFedRf+Ilja/u8oHe2+HY9fQMmrWXWwM8bNuOeJrMS45ACcU3jjA7BlmhhLonXIW +E2RSx6k3HP2CMO2EGB30rlz/cBMA67H1M3pL1lX4BY1LabD1syg2XBTEUXNNawvx +NAfbFznX3Ch7a/Wf8y7BTxcqEPPMyujr/WurLpqfLYJuBNRSAZMtPYb8fvzf70Id +pmvvuSDG972gp5X9p+aJJNjMjDRs4iMv2RIaIblVkW8LkXkZDK1AiAtw4nrSDtho +SLuCEzkQWOnYKgfGEttY29I7VRBHBRVnYn4YY6ZGPwkOVDJevw1ieifvgOjb2UsG +WjdaJdAIEnfUbwlQlz3IHcPfjEUwVsbTZKtm88BelpzDxO/DfGuLOnl/s0nPPeKJ +n6AwS4W5nJQkeY99a6lFaA8r0PHaHMtpuMpJYm3I0GNi3WAPWKqPobwFpWaizxt2 +soRksUw5UsAwuvCMSwKwtrcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Buypass Class 3 Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEd +MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3Mg +Q2xhc3MgMyBSb290IENBMB4XDTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFow +TjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MSAw +HgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEB +BQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRHsJ8Y +ZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3E +N3coTRiR5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+JzeOIuOoTyrvYLs9 +tznDDgFHmV0ST9tD+leh7fmdvhFHJlsTmKtdFoqwNxxXnUX/iJY2v7vKB3tvh2PX +0DJq1l1sDPGzbjniazEuOQAnFN44wOwZZoYS6J1yFhNkUsepNxz9gjDthBgd9K5c +/3ATAOux9TN6S9ZV+AWNS2mw9bMoNlwUxFFzTWsL8TQH2xc519woe2v1n/MuwU8X +KhDzzMro6/1rqy6any2CbgTUUgGTLT2G/H783+9CHaZr77kgxve9oKeV/afmiSTY +zIw0bOIjL9kSGiG5VZFvC5F5GQytQIgLcOJ60g7YaEi7ghM5EFjp2CoHxhLbWNvS +O1UQRwUVZ2J+GGOmRj8JDlQyXr8NYnon74Do29lLBlo3WiXQCBJ31G8JUJc9yB3D +34xFMFbG02SrZvPAXpacw8Tvw3xrizp5f7NJzz3iiZ+gMEuFuZyUJHmPfWupRWgP +K9Dx2hzLabjKSWJtyNBjYt1gD1iqj6G8BaVmos8bdrKEZLFMOVLAMLrwjEsCsLa3 +AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFEe4zf/lb+74suwv +Tg75JbCOPGvDMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAACAj +QTUEkMJAYmDv4jVM1z+s4jSQuKFvdvoWFqRINyzpkMLyPPgKn9iB5btb2iUspKdV +cSQy9sgL8rxq+JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXS +IGrs/CIBKM+GuIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2 +HJLw5QY33KbmkJs4j1xrG0aGQ0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsa +O5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8ZORK15FTAaggiG6cX0S5y2CBNOxv +033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2KSb12tjE8nVhz36u +dmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz6MkE +kbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg41 +3OEMXbugUZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvD +u79leNKGef9JOxqDDPDeeOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq +4/g7u9xN12TyUb7mqqta6THuBrxzvxNiCp/HuZc= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 2 (0x2) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=NO, O=Buypass AS-983163327, CN=Buypass Class 3 Root CA +# Validity +# Not Before: Oct 26 08:28:58 2010 GMT +# Not After : Oct 26 08:28:58 2040 GMT +# Subject: C=NO, O=Buypass AS-983163327, CN=Buypass Class 3 Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a5:da:0a:95:16:50:e3:95:f2:5e:9d:76:31:06: +# 32:7a:9b:f1:10:76:b8:00:9a:b5:52:36:cd:24:47: +# b0:9f:18:64:bc:9a:f6:fa:d5:79:d8:90:62:4c:22: +# 2f:de:38:3d:d6:e0:a8:e9:1c:2c:db:78:11:e9:8e: +# 68:51:15:72:c7:f3:33:87:e4:a0:5d:0b:5c:e0:57: +# 07:2a:30:f5:cd:c4:37:77:28:4d:18:91:e6:bf:d5: +# 52:fd:71:2d:70:3e:e7:c6:c4:8a:e3:f0:28:0b:f4: +# 76:98:a1:8b:87:55:b2:3a:13:fc:b7:3e:27:37:8e: +# 22:e3:a8:4f:2a:ef:60:bb:3d:b7:39:c3:0e:01:47: +# 99:5d:12:4f:db:43:fa:57:a1:ed:f9:9d:be:11:47: +# 26:5b:13:98:ab:5d:16:8a:b0:37:1c:57:9d:45:ff: +# 88:96:36:bf:bb:ca:07:7b:6f:87:63:d7:d0:32:6a: +# d6:5d:6c:0c:f1:b3:6e:39:e2:6b:31:2e:39:00:27: +# 14:de:38:c0:ec:19:66:86:12:e8:9d:72:16:13:64: +# 52:c7:a9:37:1c:fd:82:30:ed:84:18:1d:f4:ae:5c: +# ff:70:13:00:eb:b1:f5:33:7a:4b:d6:55:f8:05:8d: +# 4b:69:b0:f5:b3:28:36:5c:14:c4:51:73:4d:6b:0b: +# f1:34:07:db:17:39:d7:dc:28:7b:6b:f5:9f:f3:2e: +# c1:4f:17:2a:10:f3:cc:ca:e8:eb:fd:6b:ab:2e:9a: +# 9f:2d:82:6e:04:d4:52:01:93:2d:3d:86:fc:7e:fc: +# df:ef:42:1d:a6:6b:ef:b9:20:c6:f7:bd:a0:a7:95: +# fd:a7:e6:89:24:d8:cc:8c:34:6c:e2:23:2f:d9:12: +# 1a:21:b9:55:91:6f:0b:91:79:19:0c:ad:40:88:0b: +# 70:e2:7a:d2:0e:d8:68:48:bb:82:13:39:10:58:e9: +# d8:2a:07:c6:12:db:58:db:d2:3b:55:10:47:05:15: +# 67:62:7e:18:63:a6:46:3f:09:0e:54:32:5e:bf:0d: +# 62:7a:27:ef:80:e8:db:d9:4b:06:5a:37:5a:25:d0: +# 08:12:77:d4:6f:09:50:97:3d:c8:1d:c3:df:8c:45: +# 30:56:c6:d3:64:ab:66:f3:c0:5e:96:9c:c3:c4:ef: +# c3:7c:6b:8b:3a:79:7f:b3:49:cf:3d:e2:89:9f:a0: +# 30:4b:85:b9:9c:94:24:79:8f:7d:6b:a9:45:68:0f: +# 2b:d0:f1:da:1c:cb:69:b8:ca:49:62:6d:c8:d0:63: +# 62:dd:60:0f:58:aa:8f:a1:bc:05:a5:66:a2:cf:1b: +# 76:b2:84:64:b1:4c:39:52:c0:30:ba:f0:8c:4b:02: +# b0:b6:b7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 47:B8:CD:FF:E5:6F:EE:F8:B2:EC:2F:4E:0E:F9:25:B0:8E:3C:6B:C3 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 00:20:23:41:35:04:90:c2:40:62:60:ef:e2:35:4c:d7:3f:ac: +# e2:34:90:b8:a1:6f:76:fa:16:16:a4:48:37:2c:e9:90:c2:f2: +# 3c:f8:0a:9f:d8:81:e5:bb:5b:da:25:2c:a4:a7:55:71:24:32: +# f6:c8:0b:f2:bc:6a:f8:93:ac:b2:07:c2:5f:9f:db:cc:c8:8a: +# aa:be:6a:6f:e1:49:10:cc:31:d7:80:bb:bb:c8:d8:a2:0e:64: +# 57:ea:a2:f5:c2:a9:31:15:d2:20:6a:ec:fc:22:01:28:cf:86: +# b8:80:1e:a9:cc:11:a5:3c:f2:16:b3:47:9d:fc:d2:80:21:c4: +# cb:d0:47:70:41:a1:ca:83:19:08:2c:6d:f2:5d:77:9c:8a:14: +# 13:d4:36:1c:92:f0:e5:06:37:dc:a6:e6:90:9b:38:8f:5c:6b: +# 1b:46:86:43:42:5f:3e:01:07:53:54:5d:65:7d:f7:8a:73:a1: +# 9a:54:5a:1f:29:43:14:27:c2:85:0f:b5:88:7b:1a:3b:94:b7: +# 1d:60:a7:b5:9c:e7:29:69:57:5a:9b:93:7a:43:30:1b:03:d7: +# 62:c8:40:a6:aa:fc:64:e4:4a:d7:91:53:01:a8:20:88:6e:9c: +# 5f:44:b9:cb:60:81:34:ec:6f:d3:7d:da:48:5f:eb:b4:90:bc: +# 2d:a9:1c:0b:ac:1c:d5:a2:68:20:80:04:d6:fc:b1:8f:2f:bb: +# 4a:31:0d:4a:86:1c:eb:e2:36:29:26:f5:da:d8:c4:f2:75:61: +# cf:7e:ae:76:63:4a:7a:40:65:93:87:f8:1e:80:8c:86:e5:86: +# d6:8f:0e:fc:53:2c:60:e8:16:61:1a:a2:3e:43:7b:cd:39:60: +# 54:6a:f5:f2:89:26:01:68:83:48:a2:33:e8:c9:04:91:b2:11: +# 34:11:3e:ea:d0:43:19:1f:03:93:90:0c:ff:51:3d:57:f4:41: +# 6e:e1:cb:a0:be:eb:c9:63:cd:6d:cc:e4:f8:36:aa:68:9d:ed: +# bd:5d:97:70:44:0d:b6:0e:35:dc:e1:0c:5d:bb:a0:51:94:cb: +# 7e:16:eb:11:2f:a3:92:45:c8:4c:71:d9:bc:c9:99:52:57:46: +# 2f:50:cf:bd:35:69:f4:3d:15:ce:06:a5:2c:0f:3e:f6:81:ba: +# 94:bb:c3:bb:bf:65:78:d2:86:79:ff:49:3b:1a:83:0c:f0:de: +# 78:ec:c8:f2:4d:4c:1a:de:82:29:f8:c1:5a:da:ed:ee:e6:27: +# 5e:e8:45:d0:9d:1c:51:a8:68:ab:44:e3:d0:8b:6a:e3:f8:3b: +# bb:dc:4d:d7:64:f2:51:be:e6:aa:ab:5a:e9:31:ee:06:bc:73: +# bf:13:62:0a:9f:c7:b9:97 + +[p11-kit-object-v1] +label: "CA Disig Root R2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoqPEAAnWhV0tbRT2wsNz +njXCcVV+gfurRlDgwXxJeOareVg82v98HJ/YlwJ4PmtBBOlBvb4DLEX2L2TUq12j +Rz1km+lomsbMGz+6vrKLNAIumFUZ/Ixvql/aTM5NAyGj2NI0k1aWy0wMABY8XxrN +yMdspq3TMae86OXhZtbS+wO0QWXJEK4OBWPGgGppMP3S7pDvDSffn5Vz9OEl2mwW +3kE4NOqL/NHoBBRhLUF+rMd3TstRVPtekhgbBFpoxsnE+rcToJi3ESu31lfMfJ4X +0csl/oZOJC5WDHhNngESpiunAWVufGIdhITf6sBrtaUqlYPDUxEMcx0LskaQ0UI6 +zkBula3/xpStbpeEjn1vnoqADUltc+J7kh7D88Hz6y4Fb9kbzzd2BMi0WuQXp8vd +dh/QGXboLAWz1pw02JbcYYeRBeRECDPB2rkIZdSusjYN67o4ugzlm57rjWbdmc/W +iUH2BJKKKSltazoc53V9AnEO88DnvcsZ3Z1gssJmYLaxBO7J5oa5mmZAqOcR7YFF +A4v2Z1nowQYRvd3PgAJPZUB4XEdQyJvmH4F75ESoW4Wa4t5a1cf5OkRmS+QyVHzk +bJyzDj0XorI0EtZ+sqhJu9F6KEC+ohYf3+Q3HxFz+5AKZUOiDXz4BgFVM32wDbj0 +9a6lQld8NhGMe17EA52MeZ0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CA Disig Root R2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFaTCCA1GgAwIBAgIJAJK4iNuwisFjMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNV +BAYTAlNLMRMwEQYDVQQHEwpCcmF0aXNsYXZhMRMwEQYDVQQKEwpEaXNpZyBhLnMu +MRkwFwYDVQQDExBDQSBEaXNpZyBSb290IFIyMB4XDTEyMDcxOTA5MTUzMFoXDTQy +MDcxOTA5MTUzMFowUjELMAkGA1UEBhMCU0sxEzARBgNVBAcTCkJyYXRpc2xhdmEx +EzARBgNVBAoTCkRpc2lnIGEucy4xGTAXBgNVBAMTEENBIERpc2lnIFJvb3QgUjIw +ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCio8QACdaFXS1tFPbCw3Oe +NcJxVX6B+6tGUODBfEl45qt5WDza/3wcn9iXAng+a0EE6UG9vgMsRfYvZNSrXaNH +PWSb6WiaxswbP7q+sos0Ai6YVRn8jG+qX9pMzk0DIaPY0jSTVpbLTAwAFjxfGs3I +x2ymrdMxp7zo5eFm1tL7A7RBZckQrg4FY8aAamkw/dLukO8NJ9+flXP04SXabBbe +QTg06ov80egEFGEtQX6sx3dOy1FU+16SGBsEWmjGycT6txOgmLcRK7fWV8x8nhfR +yyX+hk4kLlYMeE2eARKmK6cBZW58Yh2EhN/qwGu1pSqVg8NTEQxzHQuyRpDRQjrO +QG6Vrf/GlK1ul4SOfW+eioANSW1z4nuSHsPzwfPrLgVv2RvPN3YEyLRa5Beny912 +H9AZdugsBbPWnDTYltxhh5EF5EQIM8HauQhl1K6yNg3ruji6DOWbnuuNZt2Zz9aJ +QfYEkoopKW1rOhzndX0CcQ7zwOe9yxndnWCywmZgtrEE7snmhrmaZkCo5xHtgUUD +i/ZnWejBBhG93c+AAk9lQHhcR1DIm+YfgXvkRKhbhZri3lrVx/k6RGZL5DJUfORs +nLMOPReisjQS1n6yqEm70XooQL6iFh/f5DcfEXP7kAplQ6INfPgGAVUzfbANuPT1 +rqVCV3w2EYx7XsQDnYx5nQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1Ud +DwEB/wQEAwIBBjAdBgNVHQ4EFgQUtZn4r7CU9eMg1gqtzk5WpC5uQu0wDQYJKoZI +hvcNAQELBQADggIBACYGXnDnZTPIgm7ZnBc6G3pmsgH2eDtpXi/q/075KMOYKmFM +tCQSin1tERT3nLXK5ryeJ45MGcipvXrA1zYObYVybqjGom32+nNjf7xueQgcnYqf +GopTpti72TVVsRHFqQOzVju5hJMiXn7B9hJSi+osZ7z+Nkz1uM/Rs0mSO9MpDpkb +lvdhuDvEK7Z4bLQjb/D907JedR+Zlais9trhxTF7+9FGs9K8Z7RiVLoJ92Owk6Ka ++elSLotgEqv89WBW7xBci8QaQtyDW2QOy7W81k/BfDxujRNt+3vrMNDcTa/F1bal +TFtxyegxvug4BkihGuLq0t4SOVga/4AOgnXmt8kHbA7v/zjxmHHEt38OFdAlab0i +nSvtBfZGR6ztwPDUO+Ls7pZbkBNOHlY667DvlruWIxG68kOGdGSVyCh13x01utI3 +gzhTODY7z2zp+WsO0PsE6E9312UBeIYMej4hYvF/Y3EMyZ9E26gnonW+boE+18Dr +G5gPcFw0sorMwIUY6256s/daoQe/qUKS82Ail+QUoQebTnbAjn39pCXHR+3/H3Os +zMOl6W8KjptlwlCFtaOgUxLMVYdh84GuEEZhvUQhuMI9dM9+JDX6HAcOmz0iyu8x +L4ysEr3vQCj8KWefshNPZiTEUxnpHikV7+ZtsH8tZ/3zbBt1RqPlShfppNcL +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 92:b8:88:db:b0:8a:c1:63 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=SK, L=Bratislava, O=Disig a.s., CN=CA Disig Root R2 +# Validity +# Not Before: Jul 19 09:15:30 2012 GMT +# Not After : Jul 19 09:15:30 2042 GMT +# Subject: C=SK, L=Bratislava, O=Disig a.s., CN=CA Disig Root R2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a2:a3:c4:00:09:d6:85:5d:2d:6d:14:f6:c2:c3: +# 73:9e:35:c2:71:55:7e:81:fb:ab:46:50:e0:c1:7c: +# 49:78:e6:ab:79:58:3c:da:ff:7c:1c:9f:d8:97:02: +# 78:3e:6b:41:04:e9:41:bd:be:03:2c:45:f6:2f:64: +# d4:ab:5d:a3:47:3d:64:9b:e9:68:9a:c6:cc:1b:3f: +# ba:be:b2:8b:34:02:2e:98:55:19:fc:8c:6f:aa:5f: +# da:4c:ce:4d:03:21:a3:d8:d2:34:93:56:96:cb:4c: +# 0c:00:16:3c:5f:1a:cd:c8:c7:6c:a6:ad:d3:31:a7: +# bc:e8:e5:e1:66:d6:d2:fb:03:b4:41:65:c9:10:ae: +# 0e:05:63:c6:80:6a:69:30:fd:d2:ee:90:ef:0d:27: +# df:9f:95:73:f4:e1:25:da:6c:16:de:41:38:34:ea: +# 8b:fc:d1:e8:04:14:61:2d:41:7e:ac:c7:77:4e:cb: +# 51:54:fb:5e:92:18:1b:04:5a:68:c6:c9:c4:fa:b7: +# 13:a0:98:b7:11:2b:b7:d6:57:cc:7c:9e:17:d1:cb: +# 25:fe:86:4e:24:2e:56:0c:78:4d:9e:01:12:a6:2b: +# a7:01:65:6e:7c:62:1d:84:84:df:ea:c0:6b:b5:a5: +# 2a:95:83:c3:53:11:0c:73:1d:0b:b2:46:90:d1:42: +# 3a:ce:40:6e:95:ad:ff:c6:94:ad:6e:97:84:8e:7d: +# 6f:9e:8a:80:0d:49:6d:73:e2:7b:92:1e:c3:f3:c1: +# f3:eb:2e:05:6f:d9:1b:cf:37:76:04:c8:b4:5a:e4: +# 17:a7:cb:dd:76:1f:d0:19:76:e8:2c:05:b3:d6:9c: +# 34:d8:96:dc:61:87:91:05:e4:44:08:33:c1:da:b9: +# 08:65:d4:ae:b2:36:0d:eb:ba:38:ba:0c:e5:9b:9e: +# eb:8d:66:dd:99:cf:d6:89:41:f6:04:92:8a:29:29: +# 6d:6b:3a:1c:e7:75:7d:02:71:0e:f3:c0:e7:bd:cb: +# 19:dd:9d:60:b2:c2:66:60:b6:b1:04:ee:c9:e6:86: +# b9:9a:66:40:a8:e7:11:ed:81:45:03:8b:f6:67:59: +# e8:c1:06:11:bd:dd:cf:80:02:4f:65:40:78:5c:47: +# 50:c8:9b:e6:1f:81:7b:e4:44:a8:5b:85:9a:e2:de: +# 5a:d5:c7:f9:3a:44:66:4b:e4:32:54:7c:e4:6c:9c: +# b3:0e:3d:17:a2:b2:34:12:d6:7e:b2:a8:49:bb:d1: +# 7a:28:40:be:a2:16:1f:df:e4:37:1f:11:73:fb:90: +# 0a:65:43:a2:0d:7c:f8:06:01:55:33:7d:b0:0d:b8: +# f4:f5:ae:a5:42:57:7c:36:11:8c:7b:5e:c4:03:9d: +# 8c:79:9d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B5:99:F8:AF:B0:94:F5:E3:20:D6:0A:AD:CE:4E:56:A4:2E:6E:42:ED +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 26:06:5e:70:e7:65:33:c8:82:6e:d9:9c:17:3a:1b:7a:66:b2: +# 01:f6:78:3b:69:5e:2f:ea:ff:4e:f9:28:c3:98:2a:61:4c:b4: +# 24:12:8a:7d:6d:11:14:f7:9c:b5:ca:e6:bc:9e:27:8e:4c:19: +# c8:a9:bd:7a:c0:d7:36:0e:6d:85:72:6e:a8:c6:a2:6d:f6:fa: +# 73:63:7f:bc:6e:79:08:1c:9d:8a:9f:1a:8a:53:a6:d8:bb:d9: +# 35:55:b1:11:c5:a9:03:b3:56:3b:b9:84:93:22:5e:7e:c1:f6: +# 12:52:8b:ea:2c:67:bc:fe:36:4c:f5:b8:cf:d1:b3:49:92:3b: +# d3:29:0e:99:1b:96:f7:61:b8:3b:c4:2b:b6:78:6c:b4:23:6f: +# f0:fd:d3:b2:5e:75:1f:99:95:a8:ac:f6:da:e1:c5:31:7b:fb: +# d1:46:b3:d2:bc:67:b4:62:54:ba:09:f7:63:b0:93:a2:9a:f9: +# e9:52:2e:8b:60:12:ab:fc:f5:60:56:ef:10:5c:8b:c4:1a:42: +# dc:83:5b:64:0e:cb:b5:bc:d6:4f:c1:7c:3c:6e:8d:13:6d:fb: +# 7b:eb:30:d0:dc:4d:af:c5:d5:b6:a5:4c:5b:71:c9:e8:31:be: +# e8:38:06:48:a1:1a:e2:ea:d2:de:12:39:58:1a:ff:80:0e:82: +# 75:e6:b7:c9:07:6c:0e:ef:ff:38:f1:98:71:c4:b7:7f:0e:15: +# d0:25:69:bd:22:9d:2b:ed:05:f6:46:47:ac:ed:c0:f0:d4:3b: +# e2:ec:ee:96:5b:90:13:4e:1e:56:3a:eb:b0:ef:96:bb:96:23: +# 11:ba:f2:43:86:74:64:95:c8:28:75:df:1d:35:ba:d2:37:83: +# 38:53:38:36:3b:cf:6c:e9:f9:6b:0e:d0:fb:04:e8:4f:77:d7: +# 65:01:78:86:0c:7a:3e:21:62:f1:7f:63:71:0c:c9:9f:44:db: +# a8:27:a2:75:be:6e:81:3e:d7:c0:eb:1b:98:0f:70:5c:34:b2: +# 8a:cc:c0:85:18:eb:6e:7a:b3:f7:5a:a1:07:bf:a9:42:92:f3: +# 60:22:97:e4:14:a1:07:9b:4e:76:c0:8e:7d:fd:a4:25:c7:47: +# ed:ff:1f:73:ac:cc:c3:a5:e9:6f:0a:8e:9b:65:c2:50:85:b5: +# a3:a0:53:12:cc:55:87:61:f3:81:ae:10:46:61:bd:44:21:b8: +# c2:3d:74:cf:7e:24:35:fa:1c:07:0e:9b:3d:22:ca:ef:31:2f: +# 8c:ac:12:bd:ef:40:28:fc:29:67:9f:b2:13:4f:66:24:c4:53: +# 19:e9:1e:29:15:ef:e6:6d:b0:7f:2d:67:fd:f3:6c:1b:75:46: +# a3:e5:4a:17:e9:a4:d7:0b + +[p11-kit-object-v1] +label: "Certainly Root E1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE3m/4fxzf7flHh4axpMCK+IKXgOqPyEpe +Kn2IaKcBYhSRJHpcnqMXfYqGITQYUBsQ3tA3SybHGWCA6TS9YBk2QNYphwk8kXr2 +vBMj3VlOBF7PyAIcGFPBMdjaIOlEjeR2 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certainly Root E1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIB9zCCAX2gAwIBAgIQBiUzsUcDMydc+Y2aub/M+DAKBggqhkjOPQQDAzA9MQsw +CQYDVQQGEwJVUzESMBAGA1UEChMJQ2VydGFpbmx5MRowGAYDVQQDExFDZXJ0YWlu +bHkgUm9vdCBFMTAeFw0yMTA0MDEwMDAwMDBaFw00NjA0MDEwMDAwMDBaMD0xCzAJ +BgNVBAYTAlVTMRIwEAYDVQQKEwlDZXJ0YWlubHkxGjAYBgNVBAMTEUNlcnRhaW5s +eSBSb290IEUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE3m/4fxzf7flHh4axpMCK ++IKXgOqPyEpeKn2IaKcBYhSRJHpcnqMXfYqGITQYUBsQ3tA3SybHGWCA6TS9YBk2 +QNYphwk8kXr2vBMj3VlOBF7PyAIcGFPBMdjaIOlEjeR2o0IwQDAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU8ygYy2R17ikq6+2uI1g4 +hevIIgcwCgYIKoZIzj0EAwMDaAAwZQIxALGOWiDDshliTd6wT99u0nCK8Z9+aozm +ut6Dacpps6kFtZaSF4fC0urQe87YQVt8rgIwRt7qy12a7DLCZRawTDBcMPPaTnOG +BtjOiQRINzf43TNRnXCve1XYAS59BWQOhriR +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 06:25:33:b1:47:03:33:27:5c:f9:8d:9a:b9:bf:cc:f8 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Certainly, CN=Certainly Root E1 +# Validity +# Not Before: Apr 1 00:00:00 2021 GMT +# Not After : Apr 1 00:00:00 2046 GMT +# Subject: C=US, O=Certainly, CN=Certainly Root E1 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:de:6f:f8:7f:1c:df:ed:f9:47:87:86:b1:a4:c0: +# 8a:f8:82:97:80:ea:8f:c8:4a:5e:2a:7d:88:68:a7: +# 01:62:14:91:24:7a:5c:9e:a3:17:7d:8a:86:21:34: +# 18:50:1b:10:de:d0:37:4b:26:c7:19:60:80:e9:34: +# bd:60:19:36:40:d6:29:87:09:3c:91:7a:f6:bc:13: +# 23:dd:59:4e:04:5e:cf:c8:02:1c:18:53:c1:31:d8: +# da:20:e9:44:8d:e4:76 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# F3:28:18:CB:64:75:EE:29:2A:EB:ED:AE:23:58:38:85:EB:C8:22:07 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:b1:8e:5a:20:c3:b2:19:62:4d:de:b0:4f:df: +# 6e:d2:70:8a:f1:9f:7e:6a:8c:e6:ba:de:83:69:ca:69:b3:a9: +# 05:b5:96:92:17:87:c2:d2:ea:d0:7b:ce:d8:41:5b:7c:ae:02: +# 30:46:de:ea:cb:5d:9a:ec:32:c2:65:16:b0:4c:30:5c:30:f3: +# da:4e:73:86:06:d8:ce:89:04:48:37:37:f8:dd:33:51:9d:70: +# af:7b:55:d8:01:2e:7d:05:64:0e:86:b8:91 + +[p11-kit-object-v1] +label: "Certainly Root R1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0DbUH+rdq+TRtub7IsDd +Ew1qeyITHJc8aGNmMpwDtY2kgYPaeDARz9yyK76Sv47kxBO+pGhM2gJoFnS+st0E +5Gsq3TcfYCzb9fehfJW3DHCGLvE671L3zNOb+Yu+Dt8xt51oXJKm9eXzCjS1/3ui +5Iehxq8XAO8Dke2pHE5xPdKLbIn0eIbmakmgzrXSsKub9vTULuNy+TbG6xW3JYw6 +/CUNsyJzIXTISpZhkvUvCxil9K3i7kG9AXn6loyNFwIwtPmveBqMtDYQEAcFcND0 +MZCKUcWGJnmyEYhexfAKVM1Jpr8CnNJEp+3jeO9GXm1x0XlwHEZfUenJN9xffml7 +Qd80ReA7hPShigo2njfMYlLhiQ0o+XojsQ09PZr9nYHvLJDAe0ROu0ngDkpWkrzL +td15F4mR3mGJdJKo4zKFvk6FpEtZyyvFeI5xVNACN5mM5Unq4FRypBEGLwuMwVu+ +taGwU26cuGCRH1lr+S30lAqXtezFdgNUG2VSukySVlE1oEDYKduuUnY7LTBAm4rQ +Qla0t4gBpIc7U5bNoxaP82aqF7HHYODBQwUM7ptbYG8GXIdbJ/lAEZ6cM8G35TVX +BX8nzhcgjBz88fvaMSlJ7fULhKdPwfZOwiic+u7grwf7MxF6IU8LIRC2QDqrIjoE +nIubhIZymtKnpcS0dZGpKyMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certainly Root R1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFRzCCAy+gAwIBAgIRAI4P+UuQcWhlM1T01EQ5t+AwDQYJKoZIhvcNAQELBQAw +PTELMAkGA1UEBhMCVVMxEjAQBgNVBAoTCUNlcnRhaW5seTEaMBgGA1UEAxMRQ2Vy +dGFpbmx5IFJvb3QgUjEwHhcNMjEwNDAxMDAwMDAwWhcNNDYwNDAxMDAwMDAwWjA9 +MQswCQYDVQQGEwJVUzESMBAGA1UEChMJQ2VydGFpbmx5MRowGAYDVQQDExFDZXJ0 +YWlubHkgUm9vdCBSMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANA2 +1B/q3avk0bbm+yLA3RMNansiExyXPGhjZjKcA7WNpIGD2ngwEc/csiu+kr+O5MQT +vqRoTNoCaBZ0vrLdBORrKt03H2As2/X3oXyVtwxwhi7xOu9S98zTm/mLvg7fMbed +aFySpvXl8wo0tf97ouSHocavFwDvA5HtqRxOcT3Si2yJ9HiG5mpJoM610rCrm/b0 +1C7jcvk2xusVtyWMOvwlDbMicyF0yEqWYZL1LwsYpfSt4u5BvQF5+paMjRcCMLT5 +r3gajLQ2EBAHBXDQ9DGQilHFhiZ5shGIXsXwClTNSaa/ApzSRKft43jvRl5tcdF5 +cBxGX1HpyTfcX35pe0HfNEXgO4T0oYoKNp43zGJS4YkNKPl6I7ENPT2a/Z2B7yyQ +wHtETrtJ4A5KVpK8y7XdeReJkd5hiXSSqOMyhb5OhaRLWcsrxXiOcVTQAjeZjOVJ +6uBUcqQRBi8LjMFbvrWhsFNunLhgkR9Za/kt9JQKl7XsxXYDVBtlUrpMklZRNaBA +2CnbrlJ2Oy0wQJuK0EJWtLeIAaSHO1OWzaMWj/Nmqhexx2DgwUMFDO6bW2BvBlyH +Wyf5QBGenDPBt+U1VwV/J84XIIwc/PH72jEpSe31C4SnT8H2TsIonPru4K8H+zMR +eiFPCyEQtkA6qyI6BJyLm4SGcprSp6XEtHWRqSsjAgMBAAGjQjBAMA4GA1UdDwEB +/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTgqj8ljZ9EXME66C6u +d0yEPmcM9DANBgkqhkiG9w0BAQsFAAOCAgEAuVevuBLaV4OPaAszHQNTVfSVcOQr +PbA56/qJYv331hgELyE03fFo8NWWWt7CgKPBjcZq91l3rhVkz1t5BXdm6ozTaw3d +8VkswTOlMIAVRQdFGjEitpIAq5lNOo93r6kiyi9jyhXWx8bwPWz8HA2YEGGeEaIi +1wrykXprOQ4vMMM2SZ/g6Q8CRFA3lFV96p/2O7qUpUzpvD5RtOjKkjZUbVwlKNrd +rRT90+7iIgXr0PK3aBLXWopBGsaSpVo7Y0VPv+E6dyIvXL9G+VoDhRNCX8reU9di +taY1BMJH/5n9hN9czulegChB8n3nHpDYT3Y+gjwN/KUD+nsa2UUeYNrEjvn8K8l7 +lcUq/6qJ34IxD3L/DCfXCh5WAFAeDJDBlrXYFIW7pw0WwfgHJBu6haEaBQmAupVj +yTrsJZ9/nbqkRxWbRHDxakvWOF5D8xh+UG7pWijmZeZ3Gzr9Hb4DJqPb1OG7fpYn +Kx3upPvaJVQTA945xsMfTZDsjxtK0hzthZU4UHlG1sGQUDGpXJpuHfUzVounmdLy +yCwzk5Iwx06MZTMQZBf9JBeW0Y3COmor6xOLRPIh80oat3df1+2IpHLlOR+Vnb5n +wXARPbv0+Em34yaXOp/SX3z7wJl8OSngex2/DaeP0ik0biQVy96QXr8axGbqwua6 +OV+KmalBWQewLK8= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 8e:0f:f9:4b:90:71:68:65:33:54:f4:d4:44:39:b7:e0 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=Certainly, CN=Certainly Root R1 +# Validity +# Not Before: Apr 1 00:00:00 2021 GMT +# Not After : Apr 1 00:00:00 2046 GMT +# Subject: C=US, O=Certainly, CN=Certainly Root R1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d0:36:d4:1f:ea:dd:ab:e4:d1:b6:e6:fb:22:c0: +# dd:13:0d:6a:7b:22:13:1c:97:3c:68:63:66:32:9c: +# 03:b5:8d:a4:81:83:da:78:30:11:cf:dc:b2:2b:be: +# 92:bf:8e:e4:c4:13:be:a4:68:4c:da:02:68:16:74: +# be:b2:dd:04:e4:6b:2a:dd:37:1f:60:2c:db:f5:f7: +# a1:7c:95:b7:0c:70:86:2e:f1:3a:ef:52:f7:cc:d3: +# 9b:f9:8b:be:0e:df:31:b7:9d:68:5c:92:a6:f5:e5: +# f3:0a:34:b5:ff:7b:a2:e4:87:a1:c6:af:17:00:ef: +# 03:91:ed:a9:1c:4e:71:3d:d2:8b:6c:89:f4:78:86: +# e6:6a:49:a0:ce:b5:d2:b0:ab:9b:f6:f4:d4:2e:e3: +# 72:f9:36:c6:eb:15:b7:25:8c:3a:fc:25:0d:b3:22: +# 73:21:74:c8:4a:96:61:92:f5:2f:0b:18:a5:f4:ad: +# e2:ee:41:bd:01:79:fa:96:8c:8d:17:02:30:b4:f9: +# af:78:1a:8c:b4:36:10:10:07:05:70:d0:f4:31:90: +# 8a:51:c5:86:26:79:b2:11:88:5e:c5:f0:0a:54:cd: +# 49:a6:bf:02:9c:d2:44:a7:ed:e3:78:ef:46:5e:6d: +# 71:d1:79:70:1c:46:5f:51:e9:c9:37:dc:5f:7e:69: +# 7b:41:df:34:45:e0:3b:84:f4:a1:8a:0a:36:9e:37: +# cc:62:52:e1:89:0d:28:f9:7a:23:b1:0d:3d:3d:9a: +# fd:9d:81:ef:2c:90:c0:7b:44:4e:bb:49:e0:0e:4a: +# 56:92:bc:cb:b5:dd:79:17:89:91:de:61:89:74:92: +# a8:e3:32:85:be:4e:85:a4:4b:59:cb:2b:c5:78:8e: +# 71:54:d0:02:37:99:8c:e5:49:ea:e0:54:72:a4:11: +# 06:2f:0b:8c:c1:5b:be:b5:a1:b0:53:6e:9c:b8:60: +# 91:1f:59:6b:f9:2d:f4:94:0a:97:b5:ec:c5:76:03: +# 54:1b:65:52:ba:4c:92:56:51:35:a0:40:d8:29:db: +# ae:52:76:3b:2d:30:40:9b:8a:d0:42:56:b4:b7:88: +# 01:a4:87:3b:53:96:cd:a3:16:8f:f3:66:aa:17:b1: +# c7:60:e0:c1:43:05:0c:ee:9b:5b:60:6f:06:5c:87: +# 5b:27:f9:40:11:9e:9c:33:c1:b7:e5:35:57:05:7f: +# 27:ce:17:20:8c:1c:fc:f1:fb:da:31:29:49:ed:f5: +# 0b:84:a7:4f:c1:f6:4e:c2:28:9c:fa:ee:e0:af:07: +# fb:33:11:7a:21:4f:0b:21:10:b6:40:3a:ab:22:3a: +# 04:9c:8b:9b:84:86:72:9a:d2:a7:a5:c4:b4:75:91: +# a9:2b:23 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# E0:AA:3F:25:8D:9F:44:5C:C1:3A:E8:2E:AE:77:4C:84:3E:67:0C:F4 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# b9:57:af:b8:12:da:57:83:8f:68:0b:33:1d:03:53:55:f4:95: +# 70:e4:2b:3d:b0:39:eb:fa:89:62:fd:f7:d6:18:04:2f:21:34: +# dd:f1:68:f0:d5:96:5a:de:c2:80:a3:c1:8d:c6:6a:f7:59:77: +# ae:15:64:cf:5b:79:05:77:66:ea:8c:d3:6b:0d:dd:f1:59:2c: +# c1:33:a5:30:80:15:45:07:45:1a:31:22:b6:92:00:ab:99:4d: +# 3a:8f:77:af:a9:22:ca:2f:63:ca:15:d6:c7:c6:f0:3d:6c:fc: +# 1c:0d:98:10:61:9e:11:a2:22:d7:0a:f2:91:7a:6b:39:0e:2f: +# 30:c3:36:49:9f:e0:e9:0f:02:44:50:37:94:55:7d:ea:9f:f6: +# 3b:ba:94:a5:4c:e9:bc:3e:51:b4:e8:ca:92:36:54:6d:5c:25: +# 28:da:dd:ad:14:fd:d3:ee:e2:22:05:eb:d0:f2:b7:68:12:d7: +# 5a:8a:41:1a:c6:92:a5:5a:3b:63:45:4f:bf:e1:3a:77:22:2f: +# 5c:bf:46:f9:5a:03:85:13:42:5f:ca:de:53:d7:62:b5:a6:35: +# 04:c2:47:ff:99:fd:84:df:5c:ce:e9:5e:80:28:41:f2:7d:e7: +# 1e:90:d8:4f:76:3e:82:3c:0d:fc:a5:03:fa:7b:1a:d9:45:1e: +# 60:da:c4:8e:f9:fc:2b:c9:7b:95:c5:2a:ff:aa:89:df:82:31: +# 0f:72:ff:0c:27:d7:0a:1e:56:00:50:1e:0c:90:c1:96:b5:d8: +# 14:85:bb:a7:0d:16:c1:f8:07:24:1b:ba:85:a1:1a:05:09:80: +# ba:95:63:c9:3a:ec:25:9f:7f:9d:ba:a4:47:15:9b:44:70:f1: +# 6a:4b:d6:38:5e:43:f3:18:7e:50:6e:e9:5a:28:e6:65:e6:77: +# 1b:3a:fd:1d:be:03:26:a3:db:d4:e1:bb:7e:96:27:2b:1d:ee: +# a4:fb:da:25:54:13:03:de:39:c6:c3:1f:4d:90:ec:8f:1b:4a: +# d2:1c:ed:85:95:38:50:79:46:d6:c1:90:50:31:a9:5c:9a:6e: +# 1d:f5:33:56:8b:a7:99:d2:f2:c8:2c:33:93:92:30:c7:4e:8c: +# 65:33:10:64:17:fd:24:17:96:d1:8d:c2:3a:6a:2b:eb:13:8b: +# 44:f2:21:f3:4a:1a:b7:77:5f:d7:ed:88:a4:72:e5:39:1f:95: +# 9d:be:67:c1:70:11:3d:bb:f4:f8:49:b7:e3:26:97:3a:9f:d2: +# 5f:7c:fb:c0:99:7c:39:29:e0:7b:1d:bf:0d:a7:8f:d2:29:34: +# 6e:24:15:cb:de:90:5e:bf:1a:c4:66:ea:c2:e6:ba:39:5f:8a: +# 99:a9:41:59:07:b0:2c:af + +[p11-kit-object-v1] +label: "Certigna" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyGjxydbWszR1JoIe7LS+ +6lzhJu0RR2HhonwWeEAh5GCeWshj4cSxlpL/GG1pI+ErYvfd4jYvkQe5SM8O7Hm2 +LOc0S3AIJaM8hxsZ8oEHDziQGdMR/oa08tFeHh6WzYBszjsxk7byoNCplRJ9pZrM +a8iEVoozqeciFVMW8MwX7Fdf6aIKmAne41+cb9xI44ULFVqmup+sSOMJsvf0Mt5e +NL4ceF1CW84OIo9NkNd9MhizCyxqv44/FBGJIA53FLU9lAiH9yUe1bJgAOxvKigl +bio+GGMXJT8+RCAW9ibIJa4FSrTnYyzzjBZTflz7ERoIwUZinyK48cKNadz6OlgG +3wIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certigna" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNV +BAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4X +DTA3MDYyOTE1MTMwNVoXDTI3MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQ +BgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwIQ2VydGlnbmEwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7qXOEm7RFHYeGifBZ4 +QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyHGxny +gQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbw +zBfsV1/pogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q +130yGLMLLGq/jj8UEYkgDncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2 +JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKfIrjxwo1p3Po6WAbfAgMBAAGjgbwwgbkw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQtCRZvgHyUtVF9lo53BEw +ZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJBgNVBAYT +AkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzj +AQ/JSP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG +9w0BAQUFAAOCAQEAhQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8h +bV6lUmPOEvjvKtpv6zf+EwLHyzs+ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFnc +fca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1kluPBS1xp81HlDQwY9qcEQCYsuu +HWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY1gkIl2PlwS6w +t0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw +WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# fe:dc:e3:01:0f:c9:48:ff +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=FR, O=Dhimyotis, CN=Certigna +# Validity +# Not Before: Jun 29 15:13:05 2007 GMT +# Not After : Jun 29 15:13:05 2027 GMT +# Subject: C=FR, O=Dhimyotis, CN=Certigna +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:c8:68:f1:c9:d6:d6:b3:34:75:26:82:1e:ec:b4: +# be:ea:5c:e1:26:ed:11:47:61:e1:a2:7c:16:78:40: +# 21:e4:60:9e:5a:c8:63:e1:c4:b1:96:92:ff:18:6d: +# 69:23:e1:2b:62:f7:dd:e2:36:2f:91:07:b9:48:cf: +# 0e:ec:79:b6:2c:e7:34:4b:70:08:25:a3:3c:87:1b: +# 19:f2:81:07:0f:38:90:19:d3:11:fe:86:b4:f2:d1: +# 5e:1e:1e:96:cd:80:6c:ce:3b:31:93:b6:f2:a0:d0: +# a9:95:12:7d:a5:9a:cc:6b:c8:84:56:8a:33:a9:e7: +# 22:15:53:16:f0:cc:17:ec:57:5f:e9:a2:0a:98:09: +# de:e3:5f:9c:6f:dc:48:e3:85:0b:15:5a:a6:ba:9f: +# ac:48:e3:09:b2:f7:f4:32:de:5e:34:be:1c:78:5d: +# 42:5b:ce:0e:22:8f:4d:90:d7:7d:32:18:b3:0b:2c: +# 6a:bf:8e:3f:14:11:89:20:0e:77:14:b5:3d:94:08: +# 87:f7:25:1e:d5:b2:60:00:ec:6f:2a:28:25:6e:2a: +# 3e:18:63:17:25:3f:3e:44:20:16:f6:26:c8:25:ae: +# 05:4a:b4:e7:63:2c:f3:8c:16:53:7e:5c:fb:11:1a: +# 08:c1:46:62:9f:22:b8:f1:c2:8d:69:dc:fa:3a:58: +# 06:df +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 1A:ED:FE:41:39:90:B4:24:59:BE:01:F2:52:D5:45:F6:5A:39:DC:11 +# X509v3 Authority Key Identifier: +# keyid:1A:ED:FE:41:39:90:B4:24:59:BE:01:F2:52:D5:45:F6:5A:39:DC:11 +# DirName:/C=FR/O=Dhimyotis/CN=Certigna +# serial:FE:DC:E3:01:0F:C9:48:FF +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Netscape Cert Type: +# SSL CA, S/MIME CA, Object Signing CA +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 85:03:1e:92:71:f6:42:af:e1:a3:61:9e:eb:f3:c0:0f:f2:a5: +# d4:da:95:e6:d6:be:68:36:3d:7e:6e:1f:4c:8a:ef:d1:0f:21: +# 6d:5e:a5:52:63:ce:12:f8:ef:2a:da:6f:eb:37:fe:13:02:c7: +# cb:3b:3e:22:6b:da:61:2e:7f:d4:72:3d:dd:30:e1:1e:4c:40: +# 19:8c:0f:d7:9c:d1:83:30:7b:98:59:dc:7d:c6:b9:0c:29:4c: +# a1:33:a2:eb:67:3a:65:84:d3:96:e2:ed:76:45:70:8f:b5:2b: +# de:f9:23:d6:49:6e:3c:14:b5:c6:9f:35:1e:50:d0:c1:8f:6a: +# 70:44:02:62:cb:ae:1d:68:41:a7:aa:57:e8:53:aa:07:d2:06: +# f6:d5:14:06:0b:91:03:75:2c:6c:72:b5:61:95:9a:0d:8b:b9: +# 0d:e7:f5:df:54:cd:de:e6:d8:d6:09:08:97:63:e5:c1:2e:b0: +# b7:44:26:c0:26:c0:af:55:30:9e:3b:d5:36:2a:19:04:f4:5c: +# 1e:ff:cf:2c:b7:ff:d0:fd:87:40:11:d5:11:23:bb:48:c0:21: +# a9:a4:28:2d:fd:15:f8:b0:4e:2b:f4:30:5b:21:fc:11:91:34: +# be:41:ef:7b:9d:97:75:ff:97:95:c0:96:58:2f:ea:bb:46:d7: +# bb:e4:d9:2e + +[p11-kit-object-v1] +label: "Certigna Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzRg5ZRpZsepkFg6MlCSV +fIPTxTkm3AzvFleN19iso0J/gsrtzVvbDrct7UUIF7LZs8vWF1JyKNuOTp6Ktgv5 +noSaTXbeIilc0rPSBj4wOal0o5JWHKFvTAogbZ8jerTG2izkHSzcsyjQE/JMTgJJ +oVRAnublBaAthMj/mGzQ64oahAget2gj7iPVcM5tUWkQ7qF6wtEiMcKChdLyVXZQ +fCV6yYRcC6zdQk4r54KiJInLkLLQ7iO6Zky7YqT5U1pke3yY+qNIng+VrqcY9Grs +LgNFr/B0+CrNel3RvkQmMinx8fVszH4CIQufb6Q/vp1T4s99qSx8WBqX4T03Nxhm +KNJAxVGKjMMtzlOIJFhkMBbFquDWCqZA33j29QR8aROEvNHRpwbPAfdowKhXuzph +rQSMk+Ot/PDbRG1Z3ElZrqyamTYwQXt2MyKHo8KShm75cO6uh4eVG8R6vTHz1NLl +mf++SOx19XgWHaZwwX88G6GS+8/IPNbFkwqP9VU6dpXOWZiKCZV3MpqDuiwEOpe9 +1C++12ybosp9bSbJVdXPw3lSCAmZByQtZCVrpiFpm2rddE1rl3pBvasX+ZAXSI82 ++S3VxdvuqoVFQfrNOkWxaOY2TJuQV+wjuYcIwsQJ8ZeGKihN4nTA2sSM29/ioRdZ +ziRZdDHaf/0wbdnc4Wrh/F8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certigna Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIGWzCCBEOgAwIBAgIRAMrpG4nxVQMNo+ZBbcTjpuEwDQYJKoZIhvcNAQELBQAw +WjELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczEcMBoGA1UECwwTMDAw +MiA0ODE0NjMwODEwMDAzNjEZMBcGA1UEAwwQQ2VydGlnbmEgUm9vdCBDQTAeFw0x +MzEwMDEwODMyMjdaFw0zMzEwMDEwODMyMjdaMFoxCzAJBgNVBAYTAkZSMRIwEAYD +VQQKDAlEaGlteW90aXMxHDAaBgNVBAsMEzAwMDIgNDgxNDYzMDgxMDAwMzYxGTAX +BgNVBAMMEENlcnRpZ25hIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw +ggIKAoICAQDNGDllGlmx6mQWDoyUJJV8g9PFOSbcDO8WV43X2KyjQn+Cyu3NW9sO +ty3tRQgXstmzy9YXUnIo245Onoq2C/mehJpNdt4iKVzSs9IGPjA5qXSjklYcoW9M +CiBtnyN6tMbaLOQdLNyzKNAT8kxOAkmhVECe5uUFoC2EyP+YbNDrihqECB63aCPu +I9Vwzm1RaRDuoXrC0SIxwoKF0vJVdlB8JXrJhFwLrN1CTivngqIkicuQstDuI7pm +TLtipPlTWmR7fJj6o0ieD5Wupxj0auwuA0Wv8HT4Ks16XdG+RCYyKfHx9WzMfgIh +C59vpD++nVPiz32pLHxYGpfhPTc3GGYo0kDFUYqMwy3OU4gkWGQwFsWq4NYKpkDf +ePb1BHxpE4S80dGnBs8B92jAqFe7OmGtBIyT46388NtEbVncSVmurJqZNjBBe3Yz +IoejwpKGbvlw7q6Hh5UbxHq9MfPU0uWZ/75I7HX1eBYdpnDBfzwboZL7z8g81sWT +Co/1VTp2lc5ZmIoJlXcymoO6LAQ6l73UL77XbJuiyn1tJslV1c/DeVIICZkHJC1k +JWumIWmbat10TWuXekG9qxf5kBdIjzb5LdXF2+6qhUVB+s06RbFo5jZMm5BX7CO5 +hwjCxAnxl4YqKE3idMDaxIzb3+KhF1nOJFl0Mdp//TBt2dzhauH8XwIDAQABo4IB +GjCCARYwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE +FBiHVuBud+4kNTxOc5of1uHieX4rMB8GA1UdIwQYMBaAFBiHVuBud+4kNTxOc5of +1uHieX4rMEQGA1UdIAQ9MDswOQYEVR0gADAxMC8GCCsGAQUFBwIBFiNodHRwczov +L3d3d3cuY2VydGlnbmEuZnIvYXV0b3JpdGVzLzBtBgNVHR8EZjBkMC+gLaArhilo +dHRwOi8vY3JsLmNlcnRpZ25hLmZyL2NlcnRpZ25hcm9vdGNhLmNybDAxoC+gLYYr +aHR0cDovL2NybC5kaGlteW90aXMuY29tL2NlcnRpZ25hcm9vdGNhLmNybDANBgkq +hkiG9w0BAQsFAAOCAgEAlLieT/DjlQgi581oQfccVdV8AOItOoldaDgvUSILSo3L +6btdPrtcPbEo/uRTVRPPoZAbAh1fZkYJMyjhDSSXcNMQH+pkV5a7XdrnxIxPTGRG +HVyH41neQtGbqH6mid2PHMkwgu07nM3A6RngatgCdTer9zQoKJHyBApPNeNgJgH6 +0BGM+RFq7q89w1DTj18zeTyGqHNFkIwgtnJzFyO+B2XleJINugHA64wcZr+shncB +lA2c5uk5jR+mUYyZDDl34bSb+hxnV29qao6pK0xXeXpXIs/NX2NGjVxZOob4Mkdi +o2cNGJHc+6Zr9UhhcyNZjgKnvETq9Emd8VRY+WCv2hikLyhF3HqgiIZd8zvn/yk1 +gPxkQ5Tm4xxvvq0OKmOZK8l+hfZx6AYDlf7ej0gcWtSS6Cvu5zHbugRqh5jnxV/v +faci9wHYTfmJ0A6aBVmknpjZbyvKcL5kwlWj9Omvw5Ip3IgWJJk8jSaYtlu3zM63 +Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayh +jWZSaX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw +3kAP+HwV96LOPNdeE4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# ca:e9:1b:89:f1:55:03:0d:a3:e6:41:6d:c4:e3:a6:e1 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=FR, O=Dhimyotis, OU=0002 48146308100036, CN=Certigna Root CA +# Validity +# Not Before: Oct 1 08:32:27 2013 GMT +# Not After : Oct 1 08:32:27 2033 GMT +# Subject: C=FR, O=Dhimyotis, OU=0002 48146308100036, CN=Certigna Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:cd:18:39:65:1a:59:b1:ea:64:16:0e:8c:94:24: +# 95:7c:83:d3:c5:39:26:dc:0c:ef:16:57:8d:d7:d8: +# ac:a3:42:7f:82:ca:ed:cd:5b:db:0e:b7:2d:ed:45: +# 08:17:b2:d9:b3:cb:d6:17:52:72:28:db:8e:4e:9e: +# 8a:b6:0b:f9:9e:84:9a:4d:76:de:22:29:5c:d2:b3: +# d2:06:3e:30:39:a9:74:a3:92:56:1c:a1:6f:4c:0a: +# 20:6d:9f:23:7a:b4:c6:da:2c:e4:1d:2c:dc:b3:28: +# d0:13:f2:4c:4e:02:49:a1:54:40:9e:e6:e5:05:a0: +# 2d:84:c8:ff:98:6c:d0:eb:8a:1a:84:08:1e:b7:68: +# 23:ee:23:d5:70:ce:6d:51:69:10:ee:a1:7a:c2:d1: +# 22:31:c2:82:85:d2:f2:55:76:50:7c:25:7a:c9:84: +# 5c:0b:ac:dd:42:4e:2b:e7:82:a2:24:89:cb:90:b2: +# d0:ee:23:ba:66:4c:bb:62:a4:f9:53:5a:64:7b:7c: +# 98:fa:a3:48:9e:0f:95:ae:a7:18:f4:6a:ec:2e:03: +# 45:af:f0:74:f8:2a:cd:7a:5d:d1:be:44:26:32:29: +# f1:f1:f5:6c:cc:7e:02:21:0b:9f:6f:a4:3f:be:9d: +# 53:e2:cf:7d:a9:2c:7c:58:1a:97:e1:3d:37:37:18: +# 66:28:d2:40:c5:51:8a:8c:c3:2d:ce:53:88:24:58: +# 64:30:16:c5:aa:e0:d6:0a:a6:40:df:78:f6:f5:04: +# 7c:69:13:84:bc:d1:d1:a7:06:cf:01:f7:68:c0:a8: +# 57:bb:3a:61:ad:04:8c:93:e3:ad:fc:f0:db:44:6d: +# 59:dc:49:59:ae:ac:9a:99:36:30:41:7b:76:33:22: +# 87:a3:c2:92:86:6e:f9:70:ee:ae:87:87:95:1b:c4: +# 7a:bd:31:f3:d4:d2:e5:99:ff:be:48:ec:75:f5:78: +# 16:1d:a6:70:c1:7f:3c:1b:a1:92:fb:cf:c8:3c:d6: +# c5:93:0a:8f:f5:55:3a:76:95:ce:59:98:8a:09:95: +# 77:32:9a:83:ba:2c:04:3a:97:bd:d4:2f:be:d7:6c: +# 9b:a2:ca:7d:6d:26:c9:55:d5:cf:c3:79:52:08:09: +# 99:07:24:2d:64:25:6b:a6:21:69:9b:6a:dd:74:4d: +# 6b:97:7a:41:bd:ab:17:f9:90:17:48:8f:36:f9:2d: +# d5:c5:db:ee:aa:85:45:41:fa:cd:3a:45:b1:68:e6: +# 36:4c:9b:90:57:ec:23:b9:87:08:c2:c4:09:f1:97: +# 86:2a:28:4d:e2:74:c0:da:c4:8c:db:df:e2:a1:17: +# 59:ce:24:59:74:31:da:7f:fd:30:6d:d9:dc:e1:6a: +# e1:fc:5f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 18:87:56:E0:6E:77:EE:24:35:3C:4E:73:9A:1F:D6:E1:E2:79:7E:2B +# X509v3 Authority Key Identifier: +# 18:87:56:E0:6E:77:EE:24:35:3C:4E:73:9A:1F:D6:E1:E2:79:7E:2B +# X509v3 Certificate Policies: +# Policy: X509v3 Any Policy +# CPS: https://wwww.certigna.fr/autorites/ +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.certigna.fr/certignarootca.crl +# +# Full Name: +# URI:http://crl.dhimyotis.com/certignarootca.crl +# +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 94:b8:9e:4f:f0:e3:95:08:22:e7:cd:68:41:f7:1c:55:d5:7c: +# 00:e2:2d:3a:89:5d:68:38:2f:51:22:0b:4a:8d:cb:e9:bb:5d: +# 3e:bb:5c:3d:b1:28:fe:e4:53:55:13:cf:a1:90:1b:02:1d:5f: +# 66:46:09:33:28:e1:0d:24:97:70:d3:10:1f:ea:64:57:96:bb: +# 5d:da:e7:c4:8c:4f:4c:64:46:1d:5c:87:e3:59:de:42:d1:9b: +# a8:7e:a6:89:dd:8f:1c:c9:30:82:ed:3b:9c:cd:c0:e9:19:e0: +# 6a:d8:02:75:37:ab:f7:34:28:28:91:f2:04:0a:4f:35:e3:60: +# 26:01:fa:d0:11:8c:f9:11:6a:ee:af:3d:c3:50:d3:8f:5f:33: +# 79:3c:86:a8:73:45:90:8c:20:b6:72:73:17:23:be:07:65:e5: +# 78:92:0d:ba:01:c0:eb:8c:1c:66:bf:ac:86:77:01:94:0d:9c: +# e6:e9:39:8d:1f:a6:51:8c:99:0c:39:77:e1:b4:9b:fa:1c:67: +# 57:6f:6a:6a:8e:a9:2b:4c:57:79:7a:57:22:cf:cd:5f:63:46: +# 8d:5c:59:3a:86:f8:32:47:62:a3:67:0d:18:91:dc:fb:a6:6b: +# f5:48:61:73:23:59:8e:02:a7:bc:44:ea:f4:49:9d:f1:54:58: +# f9:60:af:da:18:a4:2f:28:45:dc:7a:a0:88:86:5d:f3:3b:e7: +# ff:29:35:80:fc:64:43:94:e6:e3:1c:6f:be:ad:0e:2a:63:99: +# 2b:c9:7e:85:f6:71:e8:06:03:95:fe:de:8f:48:1c:5a:d4:92: +# e8:2b:ee:e7:31:db:ba:04:6a:87:98:e7:c5:5f:ef:7d:a7:22: +# f7:01:d8:4d:f9:89:d0:0e:9a:05:59:a4:9e:98:d9:6f:2b:ca: +# 70:be:64:c2:55:a3:f4:e9:af:c3:92:29:dc:88:16:24:99:3c: +# 8d:26:98:b6:5b:b7:cc:ce:b7:37:07:fd:26:d9:98:85:24:ff: +# 59:23:03:9a:ed:9d:9d:a8:e4:5e:38:ce:d7:52:0d:6f:d2:3f: +# 6d:b1:05:6b:49:ce:8a:91:46:73:f4:f6:2f:f0:a8:73:77:0e: +# 65:ac:a1:8d:66:52:69:7e:4b:68:0c:c7:1e:37:27:83:a5:8c: +# c7:02:e4:14:cd:49:01:b0:73:b3:fd:c6:90:3a:6f:d2:6c:ed: +# 3b:ee:ec:91:be:a2:43:5d:8b:00:4a:66:25:44:70:de:40:0f: +# f8:7c:15:f7:a2:ce:3c:d7:5e:13:8c:81:17:18:17:d1:bd:f1: +# 77:10:3a:d4:65:39:c1:27:ac:57:2c:25:54:ff:a2:da:4f:8a: +# 61:39:5e:ae:3d:4a:8c:bd + +[p11-kit-object-v1] +label: "certSIGN ROOT CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtzO5fsglSo6127QoG6pX +kOjRItNkutOT6NSshmFAamBXaFSETbxqVAIF/9+bmiquXQePSsMof+/7K/p58cet +8BBTJJCLZsmoiKuvWqMA6b66Ru5bc3ssF4KBXmIsoQJls73FKwB+xPwDM1cN7eL6 +zl1F1jjNNbaywdCcgUqq5LIBXB2PX5nEsa3biCHrkAiCgPMwo0PmkIKuVShJ7VvX +qRA4Dv6PTFubRupB9bAIdMPQiDO2fNd039yE0UMOdTmhJUAo6njLDiwuOZ2Mi24W +HC8mghDi42WUCgTAXvddW/gQ4tC6ekv73jcAABpbKOPSnHM+MoeYoclRL9ferDOz +TwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "certSIGN ROOT CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYT +AlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBD +QTAeFw0wNjA3MDQxNzIwMDRaFw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJP +MREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTCC +ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7IJUqOtdu0KBuqV5Do +0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHHrfAQ +UySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5d +RdY4zTW2ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQ +OA7+j0xbm0bqQfWwCHTD0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwv +JoIQ4uNllAoEwF73XVv4EOLQunpL+943AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08C +AwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAcYwHQYDVR0O +BBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IBAQA+0hyJ +LjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecY +MnQ8SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ +44gx+FkagQnIl6Z0x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6I +Jd1hJyMctTEHBDa0GpC9oHRxUIltvBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNw +i/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7NzTogVZ96edhBiIL5VaZVDADlN +9u6wWk5JRFRYX0KD +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 35210227249154 (0x200605167002) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=RO, O=certSIGN, OU=certSIGN ROOT CA +# Validity +# Not Before: Jul 4 17:20:04 2006 GMT +# Not After : Jul 4 17:20:04 2031 GMT +# Subject: C=RO, O=certSIGN, OU=certSIGN ROOT CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b7:33:b9:7e:c8:25:4a:8e:b5:db:b4:28:1b:aa: +# 57:90:e8:d1:22:d3:64:ba:d3:93:e8:d4:ac:86:61: +# 40:6a:60:57:68:54:84:4d:bc:6a:54:02:05:ff:df: +# 9b:9a:2a:ae:5d:07:8f:4a:c3:28:7f:ef:fb:2b:fa: +# 79:f1:c7:ad:f0:10:53:24:90:8b:66:c9:a8:88:ab: +# af:5a:a3:00:e9:be:ba:46:ee:5b:73:7b:2c:17:82: +# 81:5e:62:2c:a1:02:65:b3:bd:c5:2b:00:7e:c4:fc: +# 03:33:57:0d:ed:e2:fa:ce:5d:45:d6:38:cd:35:b6: +# b2:c1:d0:9c:81:4a:aa:e4:b2:01:5c:1d:8f:5f:99: +# c4:b1:ad:db:88:21:eb:90:08:82:80:f3:30:a3:43: +# e6:90:82:ae:55:28:49:ed:5b:d7:a9:10:38:0e:fe: +# 8f:4c:5b:9b:46:ea:41:f5:b0:08:74:c3:d0:88:33: +# b6:7c:d7:74:df:dc:84:d1:43:0e:75:39:a1:25:40: +# 28:ea:78:cb:0e:2c:2e:39:9d:8c:8b:6e:16:1c:2f: +# 26:82:10:e2:e3:65:94:0a:04:c0:5e:f7:5d:5b:f8: +# 10:e2:d0:ba:7a:4b:fb:de:37:00:00:1a:5b:28:e3: +# d2:9c:73:3e:32:87:98:a1:c9:51:2f:d7:de:ac:33: +# b3:4f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Non Repudiation, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# E0:8C:9B:DB:25:49:B3:F1:7C:86:D6:B2:42:87:0B:D0:6B:A0:D9:E4 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 3e:d2:1c:89:2e:35:fc:f8:75:dd:e6:7f:65:88:f4:72:4c:c9: +# 2c:d7:32:4e:f3:dd:19:79:47:bd:8e:3b:5b:93:0f:50:49:24: +# 13:6b:14:06:72:ef:09:d3:a1:a1:e3:40:84:c9:e7:18:32:74: +# 3c:48:6e:0f:9f:4b:d4:f7:1e:d3:93:86:64:54:97:63:72:50: +# d5:55:cf:fa:20:93:02:a2:9b:c3:23:93:4e:16:55:76:a0:70: +# 79:6d:cd:21:1f:cf:2f:2d:bc:19:e3:88:31:f8:59:1a:81:09: +# c8:97:a6:74:c7:60:c4:5b:cc:57:8e:b2:75:fd:1b:02:09:db: +# 59:6f:72:93:69:f7:31:41:d6:88:38:bf:87:b2:bd:16:79:f9: +# aa:e4:be:88:25:dd:61:27:23:1c:b5:31:07:04:36:b4:1a:90: +# bd:a0:74:71:50:89:6d:bc:14:e3:0f:86:ae:f1:ab:3e:c7:a0: +# 09:cc:a3:48:d1:e0:db:64:e7:92:b5:cf:af:72:43:70:8b:f9: +# c3:84:3c:13:aa:7e:92:9b:57:53:93:fa:70:c2:91:0e:31:f9: +# 9b:67:5d:e9:96:38:5e:5f:b3:73:4e:88:15:67:de:9e:76:10: +# 62:20:be:55:69:95:43:00:39:4d:f6:ee:b0:5a:4e:49:44:54: +# 58:5f:42:83 + +[p11-kit-object-v1] +label: "certSIGN Root CA G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwMV1GZF9RHR0h/4OO5bc +2AEWzO5jkecLb847CmkafMLjr4KOhtdej1fr0yFZ/Tk3QjC+UOq2D6mI2C4taSHn +0TcYTn2R1RZfa1sAwjlDDTaFUrlTZQ8dQuWPzwXT7twMGtm4i3giZ+RpsGjFPORs +Wkbnzcf678TsS71qpKz9zChR75K0KaurNZpM5MQIxibM+Gmf5JzwKdNc+cYWJZ4j +wyDBPQ8/OECw/oJEOKpaGoprY1g4tBXTthFpex5U7owaIqxylz8jWZvJIoTBB0/M +f+JXyhJwu6Zl82l1Y72V+xuXzeSor/bRTqjZinEkzTY9vJbE8WypruXPDW4oDbAO +tcpRe3gUwyAvf/sUVeERmf3VCqGeAuNiX+s1Syy4cug+PU+sLLsuhuKjdo/lkyrP +pavIXI1LBv8SRqx4yxQHNeCp34vprxVPFolbvfaNxlmuiIUOwYnrH2fFRY7/bTc2 +K3hmg5FRKz3/UXd2YqHsZz4+gYPgVqlQHx96matjv4QXd/ENO9/3nGGzNZiKOrLs +PBo3P36Pks/ZEhRk2hACFUH/T8TrHKPJ+pn3RunhGNmxuDItyxQMUNiDZYPuuVzP +ywVaTPoZl2vWXRPTwlxUvDJzoHj18W0ey5+lpp8i3NFRnoJ5ZGApEz6j/U9yaqvi +1OW4JFUsREuKiEScyoTTKjsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "certSIGN Root CA G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFRzCCAy+gAwIBAgIJEQA0tk7GNi02MA0GCSqGSIb3DQEBCwUAMEExCzAJBgNV +BAYTAlJPMRQwEgYDVQQKEwtDRVJUU0lHTiBTQTEcMBoGA1UECxMTY2VydFNJR04g +Uk9PVCBDQSBHMjAeFw0xNzAyMDYwOTI3MzVaFw00MjAyMDYwOTI3MzVaMEExCzAJ +BgNVBAYTAlJPMRQwEgYDVQQKEwtDRVJUU0lHTiBTQTEcMBoGA1UECxMTY2VydFNJ +R04gUk9PVCBDQSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMDF +dRmRfUR0dIf+DjuW3NgBFszuY5HnC2/OOwppGnzC46+CjobXXo9X69MhWf05N0Iw +vlDqtg+piNguLWkh59E3GE59kdUWX2tbAMI5Qw02hVK5U2UPHULlj88F0+7cDBrZ +uIt4ImfkabBoxTzkbFpG583H+u/E7Eu9aqSs/cwoUe+StCmrqzWaTOTECMYmzPhp +n+Sc8CnTXPnGFiWeI8MgwT0PPzhAsP6CRDiqWhqKa2NYOLQV07YRaXseVO6MGiKs +cpc/I1mbySKEwQdPzH/iV8oScLumZfNpdWO9lfsbl83kqK/20U6o2YpxJM02PbyW +xPFsqa7lzw1uKA2wDrXKUXt4FMMgL3/7FFXhEZn91QqhngLjYl/rNUssuHLoPj1P +rCy7Lobio3aP5ZMqz6WryFyNSwb/EkaseMsUBzXgqd+L6a8VTxaJW732jcZZroiF +DsGJ6x9nxUWO/203Nit4ZoORUSs9/1F3dmKh7Gc+PoGD4FapUB8fepmrY7+EF3fx +DTvf95xhszWYijqy7DwaNz9+j5LP2RIUZNoQAhVB/0/E6xyjyfqZ90bp4RjZsbgy +LcsUDFDYg2WD7rlcz8sFWkz6GZdr1l0T08JcVLwyc6B49fFtHsufpaafItzRUZ6C +eWRgKRM+o/1Pcmqr4tTluCRVLERLiohEnMqE0yo7AgMBAAGjQjBAMA8GA1UdEwEB +/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSCIS1mxteg4BXrzkwJ +d8RgnlRuAzANBgkqhkiG9w0BAQsFAAOCAgEAYN4auOfyYILVAzOBywaK8SJJ6ejq +kX/GM15oGQOGO0MBzwdw5AgeZYWR5hEit/UCI46uuR59H35s5r0l1ZUa8gWmr4UC +b6741jH/JclKyMeKqdmfS0mbEVeZkkMR3rYzpMzXjWR91M08KCy0mpbqTfXERMQl +qiCA2ClV9+BB/AYm/7k29UMUA2Z44RGx2iBfRgB4ACGlHgAoYXhvqAEBj500mv/0 +OJD7uNGzcgbJceaBxXntC6Z58hMLnPddDnskk7RI24Zf3lCGeOdA5jGokHZwYa+c +NywRtYK3qq4kNFtyDGkNzVmf9nGvnAvRCjj5BiKDUyUM/FHE5r7iOZULJK2v0ZXk +ltd0ZGtxTgI8qoXzIKNDOXZbbFD+mpwUHmUUihW9o4JFWklWatKcsWMy5WHgUyIO +pwpJ6st+H6jiYoD2EEVSmAYY3qXNL3+q1Ok+CHLsIwMCPKaq2LxndD0UF/tUSxfj +03k9bWtJySgOLnRQvwzZRjoQhsmnP+mg7H/rpXdYaXHmgwo38oZJar55CJD2AhZk +PuXaTH4MNMn5X7azKFGnpyuqSfqNZSlO42sTp5SjLVFteAxEy9/eCG/Oo2Sr05WE +1LlSVHJ7liXMvGnjSG4N0MedJ5qq+BOS3R7fY581qRY27Iy4g/Q9iY/NtBde17MX +QRBdJ3NghVdJIgc= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 11:00:34:b6:4e:c6:36:2d:36 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=RO, O=CERTSIGN SA, OU=certSIGN ROOT CA G2 +# Validity +# Not Before: Feb 6 09:27:35 2017 GMT +# Not After : Feb 6 09:27:35 2042 GMT +# Subject: C=RO, O=CERTSIGN SA, OU=certSIGN ROOT CA G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c0:c5:75:19:91:7d:44:74:74:87:fe:0e:3b:96: +# dc:d8:01:16:cc:ee:63:91:e7:0b:6f:ce:3b:0a:69: +# 1a:7c:c2:e3:af:82:8e:86:d7:5e:8f:57:eb:d3:21: +# 59:fd:39:37:42:30:be:50:ea:b6:0f:a9:88:d8:2e: +# 2d:69:21:e7:d1:37:18:4e:7d:91:d5:16:5f:6b:5b: +# 00:c2:39:43:0d:36:85:52:b9:53:65:0f:1d:42:e5: +# 8f:cf:05:d3:ee:dc:0c:1a:d9:b8:8b:78:22:67:e4: +# 69:b0:68:c5:3c:e4:6c:5a:46:e7:cd:c7:fa:ef:c4: +# ec:4b:bd:6a:a4:ac:fd:cc:28:51:ef:92:b4:29:ab: +# ab:35:9a:4c:e4:c4:08:c6:26:cc:f8:69:9f:e4:9c: +# f0:29:d3:5c:f9:c6:16:25:9e:23:c3:20:c1:3d:0f: +# 3f:38:40:b0:fe:82:44:38:aa:5a:1a:8a:6b:63:58: +# 38:b4:15:d3:b6:11:69:7b:1e:54:ee:8c:1a:22:ac: +# 72:97:3f:23:59:9b:c9:22:84:c1:07:4f:cc:7f:e2: +# 57:ca:12:70:bb:a6:65:f3:69:75:63:bd:95:fb:1b: +# 97:cd:e4:a8:af:f6:d1:4e:a8:d9:8a:71:24:cd:36: +# 3d:bc:96:c4:f1:6c:a9:ae:e5:cf:0d:6e:28:0d:b0: +# 0e:b5:ca:51:7b:78:14:c3:20:2f:7f:fb:14:55:e1: +# 11:99:fd:d5:0a:a1:9e:02:e3:62:5f:eb:35:4b:2c: +# b8:72:e8:3e:3d:4f:ac:2c:bb:2e:86:e2:a3:76:8f: +# e5:93:2a:cf:a5:ab:c8:5c:8d:4b:06:ff:12:46:ac: +# 78:cb:14:07:35:e0:a9:df:8b:e9:af:15:4f:16:89: +# 5b:bd:f6:8d:c6:59:ae:88:85:0e:c1:89:eb:1f:67: +# c5:45:8e:ff:6d:37:36:2b:78:66:83:91:51:2b:3d: +# ff:51:77:76:62:a1:ec:67:3e:3e:81:83:e0:56:a9: +# 50:1f:1f:7a:99:ab:63:bf:84:17:77:f1:0d:3b:df: +# f7:9c:61:b3:35:98:8a:3a:b2:ec:3c:1a:37:3f:7e: +# 8f:92:cf:d9:12:14:64:da:10:02:15:41:ff:4f:c4: +# eb:1c:a3:c9:fa:99:f7:46:e9:e1:18:d9:b1:b8:32: +# 2d:cb:14:0c:50:d8:83:65:83:ee:b9:5c:cf:cb:05: +# 5a:4c:fa:19:97:6b:d6:5d:13:d3:c2:5c:54:bc:32: +# 73:a0:78:f5:f1:6d:1e:cb:9f:a5:a6:9f:22:dc:d1: +# 51:9e:82:79:64:60:29:13:3e:a3:fd:4f:72:6a:ab: +# e2:d4:e5:b8:24:55:2c:44:4b:8a:88:44:9c:ca:84: +# d3:2a:3b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 82:21:2D:66:C6:D7:A0:E0:15:EB:CE:4C:09:77:C4:60:9E:54:6E:03 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 60:de:1a:b8:e7:f2:60:82:d5:03:33:81:cb:06:8a:f1:22:49: +# e9:e8:ea:91:7f:c6:33:5e:68:19:03:86:3b:43:01:cf:07:70: +# e4:08:1e:65:85:91:e6:11:22:b7:f5:02:23:8e:ae:b9:1e:7d: +# 1f:7e:6c:e6:bd:25:d5:95:1a:f2:05:a6:af:85:02:6f:ae:f8: +# d6:31:ff:25:c9:4a:c8:c7:8a:a9:d9:9f:4b:49:9b:11:57:99: +# 92:43:11:de:b6:33:a4:cc:d7:8d:64:7d:d4:cd:3c:28:2c:b4: +# 9a:96:ea:4d:f5:c4:44:c4:25:aa:20:80:d8:29:55:f7:e0:41: +# fc:06:26:ff:b9:36:f5:43:14:03:66:78:e1:11:b1:da:20:5f: +# 46:00:78:00:21:a5:1e:00:28:61:78:6f:a8:01:01:8f:9d:34: +# 9a:ff:f4:38:90:fb:b8:d1:b3:72:06:c9:71:e6:81:c5:79:ed: +# 0b:a6:79:f2:13:0b:9c:f7:5d:0e:7b:24:93:b4:48:db:86:5f: +# de:50:86:78:e7:40:e6:31:a8:90:76:70:61:af:9c:37:2c:11: +# b5:82:b7:aa:ae:24:34:5b:72:0c:69:0d:cd:59:9f:f6:71:af: +# 9c:0b:d1:0a:38:f9:06:22:83:53:25:0c:fc:51:c4:e6:be:e2: +# 39:95:0b:24:ad:af:d1:95:e4:96:d7:74:64:6b:71:4e:02:3c: +# aa:85:f3:20:a3:43:39:76:5b:6c:50:fe:9a:9c:14:1e:65:14: +# 8a:15:bd:a3:82:45:5a:49:56:6a:d2:9c:b1:63:32:e5:61:e0: +# 53:22:0e:a7:0a:49:ea:cb:7e:1f:a8:e2:62:80:f6:10:45:52: +# 98:06:18:de:a5:cd:2f:7f:aa:d4:e9:3e:08:72:ec:23:03:02: +# 3c:a6:aa:d8:bc:67:74:3d:14:17:fb:54:4b:17:e3:d3:79:3d: +# 6d:6b:49:c9:28:0e:2e:74:50:bf:0c:d9:46:3a:10:86:c9:a7: +# 3f:e9:a0:ec:7f:eb:a5:77:58:69:71:e6:83:0a:37:f2:86:49: +# 6a:be:79:08:90:f6:02:16:64:3e:e5:da:4c:7e:0c:34:c9:f9: +# 5f:b6:b3:28:51:a7:a7:2b:aa:49:fa:8d:65:29:4e:e3:6b:13: +# a7:94:a3:2d:51:6d:78:0c:44:cb:df:de:08:6f:ce:a3:64:ab: +# d3:95:84:d4:b9:52:54:72:7b:96:25:cc:bc:69:e3:48:6e:0d: +# d0:c7:9d:27:9a:aa:f8:13:92:dd:1e:df:63:9f:35:a9:16:36: +# ec:8c:b8:83:f4:3d:89:8f:cd:b4:17:5e:d7:b3:17:41:10:5d: +# 27:73:60:85:57:49:22:07 + +[p11-kit-object-v1] +label: "Certum EC-384 CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAExCiOqxhbar5uZDdj5M3sqzr3zKG4DoJJ +14Ypn6GU8uNgeJiBeAZN8uyaDldgg5+05hcvGrNdAluJIzzCEQUqp4gTGPNQhNe9 +NCwniVX/zkzn36YfKMTwVMO5fLdTrevC +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certum EC-384 CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICZTCCAeugAwIBAgIQeI8nXIESUiClBNAt3bpz9DAKBggqhkjOPQQDAzB0MQsw +CQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScw +JQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxGTAXBgNVBAMT +EENlcnR1bSBFQy0zODQgQ0EwHhcNMTgwMzI2MDcyNDU0WhcNNDMwMzI2MDcyNDU0 +WjB0MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBT +LkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxGTAX +BgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATE +KI6rGFtqvm5kN2PkzeyrOvfMobgOgknXhimfoZTy42B4mIF4Bk3y7JoOV2CDn7Tm +Fy8as10CW4kjPMIRBSqniBMY81CE1700LCeJVf/OTOffph8oxPBUw7l8t1Ot68Kj +QjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFI0GZnQkdjrzife81r1HfS+8 +EF9LMA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNoADBlAjADVS2m5hjEfO/J +UG7BJw+ch69u1RsIGL2SKcHvlJF40jocVYli5RsJHrpka/F2tNQCMQC0QoSZ/6vn +nvuRlydd3LBbMHHOXjgaatkl5+r3YZJW+OraNsKHZZYuciUvf9/DE8k= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 78:8f:27:5c:81:12:52:20:a5:04:d0:2d:dd:ba:73:f4 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=PL, O=Asseco Data Systems S.A., OU=Certum Certification Authority, CN=Certum EC-384 CA +# Validity +# Not Before: Mar 26 07:24:54 2018 GMT +# Not After : Mar 26 07:24:54 2043 GMT +# Subject: C=PL, O=Asseco Data Systems S.A., OU=Certum Certification Authority, CN=Certum EC-384 CA +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:c4:28:8e:ab:18:5b:6a:be:6e:64:37:63:e4:cd: +# ec:ab:3a:f7:cc:a1:b8:0e:82:49:d7:86:29:9f:a1: +# 94:f2:e3:60:78:98:81:78:06:4d:f2:ec:9a:0e:57: +# 60:83:9f:b4:e6:17:2f:1a:b3:5d:02:5b:89:23:3c: +# c2:11:05:2a:a7:88:13:18:f3:50:84:d7:bd:34:2c: +# 27:89:55:ff:ce:4c:e7:df:a6:1f:28:c4:f0:54:c3: +# b9:7c:b7:53:ad:eb:c2 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 8D:06:66:74:24:76:3A:F3:89:F7:BC:D6:BD:47:7D:2F:BC:10:5F:4B +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:03:55:2d:a6:e6:18:c4:7c:ef:c9:50:6e:c1:27: +# 0f:9c:87:af:6e:d5:1b:08:18:bd:92:29:c1:ef:94:91:78:d2: +# 3a:1c:55:89:62:e5:1b:09:1e:ba:64:6b:f1:76:b4:d4:02:31: +# 00:b4:42:84:99:ff:ab:e7:9e:fb:91:97:27:5d:dc:b0:5b:30: +# 71:ce:5e:38:1a:6a:d9:25:e7:ea:f7:61:92:56:f8:ea:da:36: +# c2:87:65:96:2e:72:25:2f:7f:df:c3:13:c9 + +[p11-kit-object-v1] +label: "Certum Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzrHBLtNPfM0lzhg+T8SM +b4Bqc8hbUfib0ty7AFyxoPx1A+6B8IjuI1Lp5hUzjawtCcV2+Ss5gInkl0uQpah4 ++HNDe6RhsNhYzOFsZn6c8wleVWOE1ajv87EuMGizxDzYrG6NmVqQTjTcNpqPgYhQ +t22WQgnz15WDDUFLsGpr+PwPfmKfZ8TtJl8QJg8IT/CkVyjOj7jtRfZu7iVdqm45 +vuSTL9lHoHLr+qZbr8pTP+IOxpZWEW736WapJth/lVPtCoWIuk8ppUKMXrb8hSAA +qmgLoRqFAZzERmOCiLYise7+qkZZfs81LNW22l33SDMUVLbr2W/OzYjWqxvaljsd +WQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certum Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDDDCCAfSgAwIBAgIDAQAgMA0GCSqGSIb3DQEBBQUAMD4xCzAJBgNVBAYTAlBM +MRswGQYDVQQKExJVbml6ZXRvIFNwLiB6IG8uby4xEjAQBgNVBAMTCUNlcnR1bSBD +QTAeFw0wMjA2MTExMDQ2MzlaFw0yNzA2MTExMDQ2MzlaMD4xCzAJBgNVBAYTAlBM +MRswGQYDVQQKExJVbml6ZXRvIFNwLiB6IG8uby4xEjAQBgNVBAMTCUNlcnR1bSBD +QTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6xwS7TT3zNJc4YPk/E +jG+AanPIW1H4m9LcuwBcsaD8dQPugfCI7iNS6eYVM42sLQnFdvkrOYCJ5JdLkKWo +ePhzQ3ukYbDYWMzhbGZ+nPMJXlVjhNWo7/OxLjBos8Q82KxujZlakE403Daaj4GI +ULdtlkIJ89eVgw1BS7Bqa/j8D35in2fE7SZfECYPCE/wpFcozo+47UX2bu4lXapu +Ob7kky/ZR6By6/qmW6/KUz/iDsaWVhFu9+lmqSbYf5VT7QqFiLpPKaVCjF62/IUg +AKpoC6EahQGcxEZjgoi2IrHu/qpGWX7PNSzVttpd90gzFFS269lvzs2I1qsb2pY7 +HVkCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEA +uI3O7+cUus/usESSbLQ5PqKEbq24IXfS1HeCh+YgQYHu4vgRt2PRFze+GXYkHAQa +TOs9qmdvLdTN/mUxcMUbpgIKumB7bVjCmkn+YzILa+M6wKyrO7Do0wlRjBCDxjTg +xSvgGrZgFCdsMneMvLJymM/NzD+5yCRCFNZX/OYmQ6kd5YCQzgNUKD73P9P4Te1q +CjqTE5s7FCMTY5w/0YcneeVMUeMBrYVdGjux1XMQpNPyvG5k9VpWkKjHDkx0Dy5x +O/fIR/RpbxXyEV6DHpx8Uq79AtoSqFlnGNu8cN2bsWntgM6JQEhqDjXKKWYVIZQs +6GAqm4VKQPNriiTsBhYscw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 65568 (0x10020) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=PL, O=Unizeto Sp. z o.o., CN=Certum CA +# Validity +# Not Before: Jun 11 10:46:39 2002 GMT +# Not After : Jun 11 10:46:39 2027 GMT +# Subject: C=PL, O=Unizeto Sp. z o.o., CN=Certum CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ce:b1:c1:2e:d3:4f:7c:cd:25:ce:18:3e:4f:c4: +# 8c:6f:80:6a:73:c8:5b:51:f8:9b:d2:dc:bb:00:5c: +# b1:a0:fc:75:03:ee:81:f0:88:ee:23:52:e9:e6:15: +# 33:8d:ac:2d:09:c5:76:f9:2b:39:80:89:e4:97:4b: +# 90:a5:a8:78:f8:73:43:7b:a4:61:b0:d8:58:cc:e1: +# 6c:66:7e:9c:f3:09:5e:55:63:84:d5:a8:ef:f3:b1: +# 2e:30:68:b3:c4:3c:d8:ac:6e:8d:99:5a:90:4e:34: +# dc:36:9a:8f:81:88:50:b7:6d:96:42:09:f3:d7:95: +# 83:0d:41:4b:b0:6a:6b:f8:fc:0f:7e:62:9f:67:c4: +# ed:26:5f:10:26:0f:08:4f:f0:a4:57:28:ce:8f:b8: +# ed:45:f6:6e:ee:25:5d:aa:6e:39:be:e4:93:2f:d9: +# 47:a0:72:eb:fa:a6:5b:af:ca:53:3f:e2:0e:c6:96: +# 56:11:6e:f7:e9:66:a9:26:d8:7f:95:53:ed:0a:85: +# 88:ba:4f:29:a5:42:8c:5e:b6:fc:85:20:00:aa:68: +# 0b:a1:1a:85:01:9c:c4:46:63:82:88:b6:22:b1:ee: +# fe:aa:46:59:7e:cf:35:2c:d5:b6:da:5d:f7:48:33: +# 14:54:b6:eb:d9:6f:ce:cd:88:d6:ab:1b:da:96:3b: +# 1d:59 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# b8:8d:ce:ef:e7:14:ba:cf:ee:b0:44:92:6c:b4:39:3e:a2:84: +# 6e:ad:b8:21:77:d2:d4:77:82:87:e6:20:41:81:ee:e2:f8:11: +# b7:63:d1:17:37:be:19:76:24:1c:04:1a:4c:eb:3d:aa:67:6f: +# 2d:d4:cd:fe:65:31:70:c5:1b:a6:02:0a:ba:60:7b:6d:58:c2: +# 9a:49:fe:63:32:0b:6b:e3:3a:c0:ac:ab:3b:b0:e8:d3:09:51: +# 8c:10:83:c6:34:e0:c5:2b:e0:1a:b6:60:14:27:6c:32:77:8c: +# bc:b2:72:98:cf:cd:cc:3f:b9:c8:24:42:14:d6:57:fc:e6:26: +# 43:a9:1d:e5:80:90:ce:03:54:28:3e:f7:3f:d3:f8:4d:ed:6a: +# 0a:3a:93:13:9b:3b:14:23:13:63:9c:3f:d1:87:27:79:e5:4c: +# 51:e3:01:ad:85:5d:1a:3b:b1:d5:73:10:a4:d3:f2:bc:6e:64: +# f5:5a:56:90:a8:c7:0e:4c:74:0f:2e:71:3b:f7:c8:47:f4:69: +# 6f:15:f2:11:5e:83:1e:9c:7c:52:ae:fd:02:da:12:a8:59:67: +# 18:db:bc:70:dd:9b:b1:69:ed:80:ce:89:40:48:6a:0e:35:ca: +# 29:66:15:21:94:2c:e8:60:2a:9b:85:4a:40:f3:6b:8a:24:ec: +# 06:16:2c:73 + +[p11-kit-object-v1] +label: "Certum Trusted Network CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO +4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jACl/jXaVehGDldamR5xgFZrDwx +Sjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88JJ7ysbnKDHDBy +3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4 +fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv ++XLTOcr+H9g0cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5 +SQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certum Trusted Network CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBM +MSIwIAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5D +ZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBU +cnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIyMTIwNzM3WhcNMjkxMjMxMTIwNzM3 +WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMg +Uy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSIw +IAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0B +AQEFAAOCAQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rH +UV+rpDKmYYe2bg+G0jACl/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LM +TXPb865Px1bVWqeWifrzq2jUI4ZZJ88JJ7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVU +BBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4fOQtf/WsX+sWn7Et0brM +kUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0cvW0QM8x +AcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNV +HRMBAf8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNV +HQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15y +sHhE49wcrwn9I0j6vSrEuVUEtRCjjSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfL +I9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1mS1FhIrlQgnXdAIv94nYmem8 +J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5ajZt3hrvJBW8qY +VoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI +03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 279744 (0x444c0) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=PL, O=Unizeto Technologies S.A., OU=Certum Certification Authority, CN=Certum Trusted Network CA +# Validity +# Not Before: Oct 22 12:07:37 2008 GMT +# Not After : Dec 31 12:07:37 2029 GMT +# Subject: C=PL, O=Unizeto Technologies S.A., OU=Certum Certification Authority, CN=Certum Trusted Network CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:e3:fb:7d:a3:72:ba:c2:f0:c9:14:87:f5:6b:01: +# 4e:e1:6e:40:07:ba:6d:27:5d:7f:f7:5b:2d:b3:5a: +# c7:51:5f:ab:a4:32:a6:61:87:b6:6e:0f:86:d2:30: +# 02:97:f8:d7:69:57:a1:18:39:5d:6a:64:79:c6:01: +# 59:ac:3c:31:4a:38:7c:d2:04:d2:4b:28:e8:20:5f: +# 3b:07:a2:cc:4d:73:db:f3:ae:4f:c7:56:d5:5a:a7: +# 96:89:fa:f3:ab:68:d4:23:86:59:27:cf:09:27:bc: +# ac:6e:72:83:1c:30:72:df:e0:a2:e9:d2:e1:74:75: +# 19:bd:2a:9e:7b:15:54:04:1b:d7:43:39:ad:55:28: +# c5:e2:1a:bb:f4:c0:e4:ae:38:49:33:cc:76:85:9f: +# 39:45:d2:a4:9e:f2:12:8c:51:f8:7c:e4:2d:7f:f5: +# ac:5f:eb:16:9f:b1:2d:d1:ba:cc:91:42:77:4c:25: +# c9:90:38:6f:db:f0:cc:fb:8e:1e:97:59:3e:d5:60: +# 4e:e6:05:28:ed:49:79:13:4b:ba:48:db:2f:f9:72: +# d3:39:ca:fe:1f:d8:34:72:f5:b4:40:cf:31:01:c3: +# ec:de:11:2d:17:5d:1f:b8:50:d1:5e:19:a7:69:de: +# 07:33:28:ca:50:95:f9:a7:54:cb:54:86:50:45:a9: +# f9:49 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 08:76:CD:CB:07:FF:24:F6:C5:CD:ED:BB:90:BC:E2:84:37:46:75:F7 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# a6:a8:ad:22:ce:01:3d:a6:a3:ff:62:d0:48:9d:8b:5e:72:b0: +# 78:44:e3:dc:1c:af:09:fd:23:48:fa:bd:2a:c4:b9:55:04:b5: +# 10:a3:8d:27:de:0b:82:63:d0:ee:de:0c:37:79:41:5b:22:b2: +# b0:9a:41:5c:a6:70:e0:d4:d0:77:cb:23:d3:00:e0:6c:56:2f: +# e1:69:0d:0d:d9:aa:bf:21:81:50:d9:06:a5:a8:ff:95:37:d0: +# aa:fe:e2:b3:f5:99:2d:45:84:8a:e5:42:09:d7:74:02:2f:f7: +# 89:d8:99:e9:bc:27:d4:47:8d:ba:0d:46:1c:77:cf:14:a4:1c: +# b9:a4:31:c4:9c:28:74:03:34:ff:33:19:26:a5:e9:0d:74:b7: +# 3e:97:c6:76:e8:27:96:a3:66:dd:e1:ae:f2:41:5b:ca:98:56: +# 83:73:70:e4:86:1a:d2:31:41:ba:2f:be:2d:13:5a:76:6f:4e: +# e8:4e:81:0e:3f:5b:03:22:a0:12:be:66:58:11:4a:cb:03:c4: +# b4:2a:2a:2d:96:17:e0:39:54:bc:48:d3:76:27:9d:9a:2d:06: +# a6:c9:ec:39:d2:ab:db:9f:9a:0b:27:02:35:29:b1:40:95:e7: +# f9:e8:9c:55:88:19:46:d6:b7:34:f5:7e:ce:39:9a:d9:38:f1: +# 51:f7:4f:2c + +[p11-kit-object-v1] +label: "Certum Trusted Network CA 2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvfl4+ObVgAxknYYblmRn +PyI6HnUBfe/7XGeMycxca6mR5rlC5SBLm9qbe7mZXdmbgEvXhEArJ9PoujC7Pgka +p0mV7ytAJMKXx6fumyXvqAoAl4Vaqp3cKcniNQfrcE1K1sGzVrihQTib0fsxf4/g +X+GxPw+OFklg1waNGPmqJhCrKtPQ0WeNG0a+RzDVLnLRxWPa52N5RH5LYySJhi40 +PylMUosqp8DikSiJucBb+R3Z5yet/5oCl8HGUJKbAiy9qbk0WQq/hEr/3/6zn+vZ +nuCYI+yma3cWKtvMrTscpIfcRnNeGWJoRVfkkIJCu0LW8GHgwaM9ZqNd9BjuiMmN +F0UpmTJ1AjHuKSbIawLmtWJFfzcVWiNoidQ+3k4nsPBADLxNF8tNorMe0AZa3faT +z1d1mfX6hhpneLO/lv403L3nUlbls+V1e9dBkQXcXWnjlQ1DufyDljmVe2yAWk8T +csbXfSl6RLpSpCrVQUYJIP4ioLZbMI28iQzV13D4h1L92u+sUS4Hs07+0AnacO+Y ++lbmbdu1V0vc5SwlFcieLnhO+NqcnoYsylfzGuXIkosagpZ6w7xQEmnYDlpGizrr +Jvojybawgb5CAKT41v4wLsfSRvbljnX98sy50IdbzAYQYLuDNbdeZ95H7JlI8aSh +Ff6tjGKOOVVPORa5sWOd/7cCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certum Trusted Network CA 2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCB +gDELMAkGA1UEBhMCUEwxIjAgBgNVBAoTGVVuaXpldG8gVGVjaG5vbG9naWVzIFMu +QS4xJzAlBgNVBAsTHkNlcnR1bSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIG +A1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0d29yayBDQSAyMCIYDzIwMTExMDA2MDgz +OTU2WhgPMjA0NjEwMDYwODM5NTZaMIGAMQswCQYDVQQGEwJQTDEiMCAGA1UEChMZ +VW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRp +ZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3 +b3JrIENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC9+Xj45tWA +DGSdhhuWZGc/IjoedQF97/tcZ4zJzFxrqZHmuULlIEub2pt7uZld2ZuAS9eEQCsn +0+i6MLs+CRqnSZXvK0AkwpfHp+6bJe+oCgCXhVqqndwpyeI1B+twTUrWwbNWuKFB +OJvR+zF/j+Bf4bE/D44WSWDXBo0Y+aomEKsq09DRZ40bRr5HMNUuctHFY9rnY3lE +fktjJImGLjQ/KUxSiyqnwOKRKIm5wFv5HdnnJ63/mgKXwcZQkpsCLL2puTRZCr+E +Sv/f/rOf69me4Jgj7KZrdxYq28ytOxykh9xGc14ZYmhFV+SQgkK7QtbwYeDBoz1m +o130GO6IyY0XRSmZMnUCMe4pJshrAua1YkV/NxVaI2iJ1D7eTiew8EAMvE0Xy02i +sx7QBlrd9pPPV3WZ9fqGGmd4s7+W/jTcvedSVuWz5XV710GRBdxdaeOVDUO5/IOW +OZV7bIBaTxNyxtd9KXpEulKkKtVBRgkg/iKgtlswjbyJDNXXcPiHUv3a76xRLgez +Tv7QCdpw75j6VuZt27VXS9zlLCUVyJ4ueE742pyehizKV/Ma5ciSixqClnrDvFAS +adgOWkaLOusm+iPJtrCBvkIApPjW/jAux9JG9uWOdf3yzLnQh1vMBhBgu4M1t15n +3kfsmUjxpKEV/q2MYo45VU85FrmxY53/twIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MB0GA1UdDgQWBBS2oVQ5AsOgP46KvPrU+Bym0ToO/TAOBgNVHQ8BAf8EBAMC +AQYwDQYJKoZIhvcNAQENBQADggIBAHGlDs7k6b8/ONWJWsQCYftMxRQXLYtPU2sQ +F/xlhMcQSZDe28cmk4gmb3DWAl45oPePq5a1pRNcgRRtDoGCERuKTsZPpd1iHkTf +CVn0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuAL55MYIR4PSFk1vtBHxgP58l1cb29 +XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMoclm2q8KMZiYcdywm +djWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tMpkT/ +WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jb +AoJnwTnbw3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksq +P/ujmv5zMnHCnsZy4YpoJ/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Ko +b7a6bINDd82Kkhehnlt4Fj1F4jNy3eFmypnTycUm/Q1oBEauttmbjL4ZvrHG8hnj +XALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLXis7VmFxWlgPF7ncGNf/P +5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7zAYspsbi +DrW5viSP +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 21:d6:d0:4a:4f:25:0f:c9:32:37:fc:aa:5e:12:8d:e9 +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=PL, O=Unizeto Technologies S.A., OU=Certum Certification Authority, CN=Certum Trusted Network CA 2 +# Validity +# Not Before: Oct 6 08:39:56 2011 GMT +# Not After : Oct 6 08:39:56 2046 GMT +# Subject: C=PL, O=Unizeto Technologies S.A., OU=Certum Certification Authority, CN=Certum Trusted Network CA 2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:bd:f9:78:f8:e6:d5:80:0c:64:9d:86:1b:96:64: +# 67:3f:22:3a:1e:75:01:7d:ef:fb:5c:67:8c:c9:cc: +# 5c:6b:a9:91:e6:b9:42:e5:20:4b:9b:da:9b:7b:b9: +# 99:5d:d9:9b:80:4b:d7:84:40:2b:27:d3:e8:ba:30: +# bb:3e:09:1a:a7:49:95:ef:2b:40:24:c2:97:c7:a7: +# ee:9b:25:ef:a8:0a:00:97:85:5a:aa:9d:dc:29:c9: +# e2:35:07:eb:70:4d:4a:d6:c1:b3:56:b8:a1:41:38: +# 9b:d1:fb:31:7f:8f:e0:5f:e1:b1:3f:0f:8e:16:49: +# 60:d7:06:8d:18:f9:aa:26:10:ab:2a:d3:d0:d1:67: +# 8d:1b:46:be:47:30:d5:2e:72:d1:c5:63:da:e7:63: +# 79:44:7e:4b:63:24:89:86:2e:34:3f:29:4c:52:8b: +# 2a:a7:c0:e2:91:28:89:b9:c0:5b:f9:1d:d9:e7:27: +# ad:ff:9a:02:97:c1:c6:50:92:9b:02:2c:bd:a9:b9: +# 34:59:0a:bf:84:4a:ff:df:fe:b3:9f:eb:d9:9e:e0: +# 98:23:ec:a6:6b:77:16:2a:db:cc:ad:3b:1c:a4:87: +# dc:46:73:5e:19:62:68:45:57:e4:90:82:42:bb:42: +# d6:f0:61:e0:c1:a3:3d:66:a3:5d:f4:18:ee:88:c9: +# 8d:17:45:29:99:32:75:02:31:ee:29:26:c8:6b:02: +# e6:b5:62:45:7f:37:15:5a:23:68:89:d4:3e:de:4e: +# 27:b0:f0:40:0c:bc:4d:17:cb:4d:a2:b3:1e:d0:06: +# 5a:dd:f6:93:cf:57:75:99:f5:fa:86:1a:67:78:b3: +# bf:96:fe:34:dc:bd:e7:52:56:e5:b3:e5:75:7b:d7: +# 41:91:05:dc:5d:69:e3:95:0d:43:b9:fc:83:96:39: +# 95:7b:6c:80:5a:4f:13:72:c6:d7:7d:29:7a:44:ba: +# 52:a4:2a:d5:41:46:09:20:fe:22:a0:b6:5b:30:8d: +# bc:89:0c:d5:d7:70:f8:87:52:fd:da:ef:ac:51:2e: +# 07:b3:4e:fe:d0:09:da:70:ef:98:fa:56:e6:6d:db: +# b5:57:4b:dc:e5:2c:25:15:c8:9e:2e:78:4e:f8:da: +# 9c:9e:86:2c:ca:57:f3:1a:e5:c8:92:8b:1a:82:96: +# 7a:c3:bc:50:12:69:d8:0e:5a:46:8b:3a:eb:26:fa: +# 23:c9:b6:b0:81:be:42:00:a4:f8:d6:fe:30:2e:c7: +# d2:46:f6:e5:8e:75:fd:f2:cc:b9:d0:87:5b:cc:06: +# 10:60:bb:83:35:b7:5e:67:de:47:ec:99:48:f1:a4: +# a1:15:fe:ad:8c:62:8e:39:55:4f:39:16:b9:b1:63: +# 9d:ff:b7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# B6:A1:54:39:02:C3:A0:3F:8E:8A:BC:FA:D4:F8:1C:A6:D1:3A:0E:FD +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 71:a5:0e:ce:e4:e9:bf:3f:38:d5:89:5a:c4:02:61:fb:4c:c5: +# 14:17:2d:8b:4f:53:6b:10:17:fc:65:84:c7:10:49:90:de:db: +# c7:26:93:88:26:6f:70:d6:02:5e:39:a0:f7:8f:ab:96:b5:a5: +# 13:5c:81:14:6d:0e:81:82:11:1b:8a:4e:c6:4f:a5:dd:62:1e: +# 44:df:09:59:f4:5b:77:0b:37:e9:8b:20:c6:f8:0a:4e:2e:58: +# 1c:eb:33:d0:cf:86:60:c9:da:fb:80:2f:9e:4c:60:84:78:3d: +# 21:64:d6:fb:41:1f:18:0f:e7:c9:75:71:bd:bd:5c:de:34:87: +# 3e:41:b0:0e:f6:b9:d6:3f:09:13:96:14:2f:de:9a:1d:5a:b9: +# 56:ce:35:3a:b0:5f:70:4d:5e:e3:29:f1:23:28:72:59:b6:ab: +# c2:8c:66:26:1c:77:2c:26:76:35:8b:28:a7:69:a0:f9:3b:f5: +# 23:dd:85:10:74:c9:90:03:56:91:e7:af:ba:47:d4:12:97:11: +# 22:e3:a2:49:94:6c:e7:b7:94:4b:ba:2d:a4:da:33:8b:4c:a6: +# 44:ff:5a:3c:c6:1d:64:d8:b5:31:e4:a6:3c:7a:a8:57:0b:db: +# ed:61:1a:cb:f1:ce:73:77:63:a4:87:6f:4c:51:38:d6:e4:5f: +# c7:9f:b6:81:2a:e4:85:48:79:58:5e:3b:f8:db:02:82:67:c1: +# 39:db:c3:74:4b:3d:36:1e:f9:29:93:88:68:5b:a8:44:19:21: +# f0:a7:e8:81:0d:2c:e8:93:36:b4:37:b2:ca:b0:1b:26:7a:9a: +# 25:1f:9a:9a:80:9e:4b:2a:3f:fb:a3:9a:fe:73:32:71:c2:9e: +# c6:72:e1:8a:68:27:f1:e4:0f:b4:c4:4c:a5:61:93:f8:97:10: +# 07:2a:30:25:a9:b9:c8:71:b8:ef:68:cc:2d:7e:f5:e0:7e:0f: +# 82:a8:6f:b6:ba:6c:83:43:77:cd:8a:92:17:a1:9e:5b:78:16: +# 3d:45:e2:33:72:dd:e1:66:ca:99:d3:c9:c5:26:fd:0d:68:04: +# 46:ae:b6:d9:9b:8c:be:19:be:b1:c6:f2:19:e3:5c:02:ca:2c: +# d8:6f:4a:07:d9:c9:35:da:40:75:f2:c4:a7:19:6f:9e:42:10: +# 98:75:e6:95:8b:60:bc:ed:c5:12:d7:8a:ce:d5:98:5c:56:96: +# 03:c5:ee:77:06:35:ff:cf:e4:ee:3f:13:61:ee:db:da:2d:85: +# f0:cd:ae:9d:b2:18:09:45:c3:92:a1:72:17:fc:47:b6:a0:0b: +# 2c:f1:c4:de:43:68:08:6a:5f:3b:f0:76:63:fb:cc:06:2c:a6: +# c6:e2:0e:b5:b9:be:24:8f + +[p11-kit-object-v1] +label: "Certum Trusted Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0S2Ou7c26m03kZ9Ok6cF +5CkDJc4cgvd8mZ9BBs3to7rA2wkswXzfKX5LZS+Tp9QBawMoGKPYnQXBKthF8ZHe +3zvQgAKMzzgP6qdceBGkwciFXCXT07LnJc8RVJerNcAedhzvAFOfOdwUpSwiJbNy +cvyNs+U+CB4UKjcLiDzKsPTIwqGuvMG+KWdV4vytWVz+vVcssJCNwu03tnyZiLXV +A5o9FQ09OqioRfCVTiVZHc2YabvTzDLJje+B/q19ibu6YBPKZZVnoPMZ9gNW1GrT +J+KhrYPwShIidxwFc+IZcULA7HVGmpBY4GqOK6VGMASOGbIX476pun9W8SQD17Ih +KHYONjBMedVBmpqouDW6DDryRBsgiPfFJdc9xuM+Q92H/sTq9VM+TGX/O0rLeFpr +F18Nx8NPTpoqou1XTSLiRpo/D5E0JH1V44yVN9Ma8AkrLNLJjbQNAKtnKSjYAfUZ +BLYdvnb+clzEhcrSgEHfBaij1YSQTwvz4D+bGdI3iT/ye1IcjPbh9zwHl4wOolmB +DLKQPdPjWUbtD6mn3oBrWqoHthnLvFfzlyF6DLErdD7r2qdnLUzEmJ42CXZmZvwa +P+pIVBy+ML2AUL98tc4A9gxh2eckA+DjAYEOvdiFNIi9sjaoe1wI5USAjG/4L9Uh +yh0c0PvEtYfROk7HdrU1SLUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Certum Trusted Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFwDCCA6igAwIBAgIQHr9ZULjJgDdMBvfrVU+17TANBgkqhkiG9w0BAQ0FADB6 +MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEu +MScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxHzAdBgNV +BAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0EwHhcNMTgwMzE2MTIxMDEzWhcNNDMw +MzE2MTIxMDEzWjB6MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEg +U3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRo +b3JpdHkxHzAdBgNVBAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0EwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQDRLY67tzbqbTeRn06TpwXkKQMlzhyC93yZ +n0EGze2jusDbCSzBfN8pfktlL5On1AFrAygYo9idBcEq2EXxkd7fO9CAAozPOA/q +p1x4EaTByIVcJdPTsuclzxFUl6s1wB52HO8AU5853BSlLCIls3Jy/I2z5T4IHhQq +NwuIPMqw9MjCoa68wb4pZ1Xi/K1ZXP69VyywkI3C7Te2fJmItdUDmj0VDT06qKhF +8JVOJVkdzZhpu9PMMsmN74H+rX2Ju7pgE8pllWeg8xn2A1bUatMn4qGtg/BKEiJ3 +HAVz4hlxQsDsdUaakFjgao4rpUYwBI4Zshfjvqm6f1bxJAPXsiEodg42MEx51UGa +mqi4NboMOvJEGyCI98Ul1z3G4z5D3Yf+xOr1Uz5MZf87Sst4WmsXXw3Hw09Omiqi +7VdNIuJGmj8PkTQkfVXjjJU30xrwCSss0smNtA0Aq2cpKNgB9RkEth2+dv5yXMSF +ytKAQd8FqKPVhJBPC/PgP5sZ0jeJP/J7UhyM9uH3PAeXjA6iWYEMspA90+NZRu0P +qafegGtaqge2Gcu8V/OXIXoMsSt0Puvap2ctTMSYnjYJdmZm/Bo/6khUHL4wvYBQ +v3y1zgD2DGHZ5yQD4OMBgQ692IU0iL2yNqh7XAjlRICMb/gv1SHKHRzQ+8S1h9E6 +Tsd2tTVItQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSM+xx1 +vALTn04uSNn5YFSqxLNP+jAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQAD +ggIBAEii1QALLtA/vBzVtVRJHlpr9OTy4EA34MwUe7nJ+jW1dReTagVphZzNTxl4 +WxmB82M+w85bj/UvXgF2Ez8sALnNllI5SW0ETsXpD4YN4fqzX4IS8TrOZgYkNCvo +zMrnadyHncI013nR03e4qllY/p0m+jiGPp2Kh2RX5Rc64vmNueMzeMGQ2Ljdt4NR +5MTMI9UGfOZR0800McD2RrsLrfw9EAUqO0qRJe6M1ISHgCq8CYyqOhNf6DR5UMEQ +GfnTKB7U0VEwKbOukGfWHwpjscWpxkIxYxeU72nLL/qMFH3EQxiJ2fAyQOaA4kZf +5ePBAFmo+eggvIksDkc0C+pXwlM2/KfUrzHN/gLldfq5Jwn58/U7yn2fqSLLiMmq +0Uc9NneoWWRrJ8/vJ8HjJLWG965+Mk2weWjROeiQWMODvA8s1pfrzgzhIMfatz7D +P78v3DSk+yshzWePS/Tj6tQ/50+6uaWTRRxmHyH6ZF5v4HaUMst19W7l9o/HuKTM +qJZ9ZPskWkoDbGs4xugDQ5r3V7mzKWmTOPQD8rv7gmsHINFSH5pkAnuYZttcTVoP +0ISVoDwUQwbKytu4QTbaakRnh6+v40URFWkIsr4WOZckbxJF0WddCajJFdr60qZf +E2Efv4WstK2tBZQIgx51F9NxO5NQI1mg7TyRVJ12AMXDuDjb +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 1e:bf:59:50:b8:c9:80:37:4c:06:f7:eb:55:4f:b5:ed +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=PL, O=Asseco Data Systems S.A., OU=Certum Certification Authority, CN=Certum Trusted Root CA +# Validity +# Not Before: Mar 16 12:10:13 2018 GMT +# Not After : Mar 16 12:10:13 2043 GMT +# Subject: C=PL, O=Asseco Data Systems S.A., OU=Certum Certification Authority, CN=Certum Trusted Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d1:2d:8e:bb:b7:36:ea:6d:37:91:9f:4e:93:a7: +# 05:e4:29:03:25:ce:1c:82:f7:7c:99:9f:41:06:cd: +# ed:a3:ba:c0:db:09:2c:c1:7c:df:29:7e:4b:65:2f: +# 93:a7:d4:01:6b:03:28:18:a3:d8:9d:05:c1:2a:d8: +# 45:f1:91:de:df:3b:d0:80:02:8c:cf:38:0f:ea:a7: +# 5c:78:11:a4:c1:c8:85:5c:25:d3:d3:b2:e7:25:cf: +# 11:54:97:ab:35:c0:1e:76:1c:ef:00:53:9f:39:dc: +# 14:a5:2c:22:25:b3:72:72:fc:8d:b3:e5:3e:08:1e: +# 14:2a:37:0b:88:3c:ca:b0:f4:c8:c2:a1:ae:bc:c1: +# be:29:67:55:e2:fc:ad:59:5c:fe:bd:57:2c:b0:90: +# 8d:c2:ed:37:b6:7c:99:88:b5:d5:03:9a:3d:15:0d: +# 3d:3a:a8:a8:45:f0:95:4e:25:59:1d:cd:98:69:bb: +# d3:cc:32:c9:8d:ef:81:fe:ad:7d:89:bb:ba:60:13: +# ca:65:95:67:a0:f3:19:f6:03:56:d4:6a:d3:27:e2: +# a1:ad:83:f0:4a:12:22:77:1c:05:73:e2:19:71:42: +# c0:ec:75:46:9a:90:58:e0:6a:8e:2b:a5:46:30:04: +# 8e:19:b2:17:e3:be:a9:ba:7f:56:f1:24:03:d7:b2: +# 21:28:76:0e:36:30:4c:79:d5:41:9a:9a:a8:b8:35: +# ba:0c:3a:f2:44:1b:20:88:f7:c5:25:d7:3d:c6:e3: +# 3e:43:dd:87:fe:c4:ea:f5:53:3e:4c:65:ff:3b:4a: +# cb:78:5a:6b:17:5f:0d:c7:c3:4f:4e:9a:2a:a2:ed: +# 57:4d:22:e2:46:9a:3f:0f:91:34:24:7d:55:e3:8c: +# 95:37:d3:1a:f0:09:2b:2c:d2:c9:8d:b4:0d:00:ab: +# 67:29:28:d8:01:f5:19:04:b6:1d:be:76:fe:72:5c: +# c4:85:ca:d2:80:41:df:05:a8:a3:d5:84:90:4f:0b: +# f3:e0:3f:9b:19:d2:37:89:3f:f2:7b:52:1c:8c:f6: +# e1:f7:3c:07:97:8c:0e:a2:59:81:0c:b2:90:3d:d3: +# e3:59:46:ed:0f:a9:a7:de:80:6b:5a:aa:07:b6:19: +# cb:bc:57:f3:97:21:7a:0c:b1:2b:74:3e:eb:da:a7: +# 67:2d:4c:c4:98:9e:36:09:76:66:66:fc:1a:3f:ea: +# 48:54:1c:be:30:bd:80:50:bf:7c:b5:ce:00:f6:0c: +# 61:d9:e7:24:03:e0:e3:01:81:0e:bd:d8:85:34:88: +# bd:b2:36:a8:7b:5c:08:e5:44:80:8c:6f:f8:2f:d5: +# 21:ca:1d:1c:d0:fb:c4:b5:87:d1:3a:4e:c7:76:b5: +# 35:48:b5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 8C:FB:1C:75:BC:02:D3:9F:4E:2E:48:D9:F9:60:54:AA:C4:B3:4F:FA +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 48:a2:d5:00:0b:2e:d0:3f:bc:1c:d5:b5:54:49:1e:5a:6b:f4: +# e4:f2:e0:40:37:e0:cc:14:7b:b9:c9:fa:35:b5:75:17:93:6a: +# 05:69:85:9c:cd:4f:19:78:5b:19:81:f3:63:3e:c3:ce:5b:8f: +# f5:2f:5e:01:76:13:3f:2c:00:b9:cd:96:52:39:49:6d:04:4e: +# c5:e9:0f:86:0d:e1:fa:b3:5f:82:12:f1:3a:ce:66:06:24:34: +# 2b:e8:cc:ca:e7:69:dc:87:9d:c2:34:d7:79:d1:d3:77:b8:aa: +# 59:58:fe:9d:26:fa:38:86:3e:9d:8a:87:64:57:e5:17:3a:e2: +# f9:8d:b9:e3:33:78:c1:90:d8:b8:dd:b7:83:51:e4:c4:cc:23: +# d5:06:7c:e6:51:d3:cd:34:31:c0:f6:46:bb:0b:ad:fc:3d:10: +# 05:2a:3b:4a:91:25:ee:8c:d4:84:87:80:2a:bc:09:8c:aa:3a: +# 13:5f:e8:34:79:50:c1:10:19:f9:d3:28:1e:d4:d1:51:30:29: +# b3:ae:90:67:d6:1f:0a:63:b1:c5:a9:c6:42:31:63:17:94:ef: +# 69:cb:2f:fa:8c:14:7d:c4:43:18:89:d9:f0:32:40:e6:80:e2: +# 46:5f:e5:e3:c1:00:59:a8:f9:e8:20:bc:89:2c:0e:47:34:0b: +# ea:57:c2:53:36:fc:a7:d4:af:31:cd:fe:02:e5:75:fa:b9:27: +# 09:f9:f3:f5:3b:ca:7d:9f:a9:22:cb:88:c9:aa:d1:47:3d:36: +# 77:a8:59:64:6b:27:cf:ef:27:c1:e3:24:b5:86:f7:ae:7e:32: +# 4d:b0:79:68:d1:39:e8:90:58:c3:83:bc:0f:2c:d6:97:eb:ce: +# 0c:e1:20:c7:da:b7:3e:c3:3f:bf:2f:dc:34:a4:fb:2b:21:cd: +# 67:8f:4b:f4:e3:ea:d4:3f:e7:4f:ba:b9:a5:93:45:1c:66:1f: +# 21:fa:64:5e:6f:e0:76:94:32:cb:75:f5:6e:e5:f6:8f:c7:b8: +# a4:cc:a8:96:7d:64:fb:24:5a:4a:03:6c:6b:38:c6:e8:03:43: +# 9a:f7:57:b9:b3:29:69:93:38:f4:03:f2:bb:fb:82:6b:07:20: +# d1:52:1f:9a:64:02:7b:98:66:db:5c:4d:5a:0f:d0:84:95:a0: +# 3c:14:43:06:ca:ca:db:b8:41:36:da:6a:44:67:87:af:af:e3: +# 45:11:15:69:08:b2:be:16:39:97:24:6f:12:45:d1:67:5d:09: +# a8:c9:15:da:fa:d2:a6:5f:13:61:1f:bf:85:ac:b4:ad:ad:05: +# 94:08:83:1e:75:17:d3:71:3b:93:50:23:59:a0:ed:3c:91:54: +# 9d:76:00:c5:c3:b8:38:db + +[p11-kit-object-v1] +label: "CFCA EV ROOT" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA111rzRA/HwVZ1QVNN7EO +7JgrjhUd+pNLF4IhcRBS11FkcBbCVWlNjhVtn78MG8Lgo2fWDKzPIq6vd1QqS0yK +U1J6w+4u3rNxJcHpXT3uoS+j9yo8ySMdaqsdoafx8+yg1UTPFc9yLx1jl+iZ+f2T +pFSATFLUUqsuSd+Qzbhfvj/eocpNINQl6IQpU7exiB//+tqQnwqpLUE/sfEYKe4W +WSw0SRqoBteoiNIDcnoy4upoTW4slmV7yln68uLd7jAs+8xGrMRj629/Nis0cxKU +f9/MJp7xcl1QZVmPabOHXjJvwxiKtZWPsHo33lpFO8c24e9n0TnTl1tzYhlILYcc +Bvt0mCBJc/AF0huxoKO3G3DTiGm5WtY49GLcJYt4v/jofrhcyZVPX6ctuSBrz2vd +9Q30grf0smYuECj2l1p7lhaPARktbG5/OVgGZIMBg4PDTZLdMsaHpDfpFs6qLWiv +CoFlOnDBm61NbVTKKi1LhRuzgOZwRQ1rXjXwfzu4nOQEcIkSJZPaCpkiYGpjYE52 +BphOvYOtHViKJYXSx2UeLY7G37bG4X+KBCEVKXTwPpyQnQwu8Yo+WqoMCR7H1Tyj +7ZfDHjT6OPkIDuPAXSuD0VZqybaoVFMueDJnPYJ/dND74bYFYLlw244L+RNYb3Fg +EFIQucFBCe9yH2cxeP+WBY0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CFCA EV ROOT" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJD +TjEwMC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9y +aXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkx +MjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEwMC4GA1UECgwnQ2hpbmEgRmluYW5j +aWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJP +T1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnVBU03 +sQ7smCuOFR36k0sXgiFxEFLXUWRwFsJVaU2OFW2fvwwbwuCjZ9YMrM8irq93VCpL +TIpTUnrD7i7es3ElweldPe6hL6P3KjzJIx1qqx2hp/Hz7KDVRM8Vz3IvHWOX6Jn5 +/ZOkVIBMUtRSqy5J35DNuF++P96hyk0g1CXohClTt7GIH//62pCfCqktQT+x8Rgp +7hZZLDRJGqgG16iI0gNyejLi6mhNbiyWZXvKWfry4t3uMCz7zEasxGPrb382KzRz +EpR/38wmnvFyXVBlWY9ps4deMm/DGIq1lY+wejfeWkU7xzbh72fROdOXW3NiGUgt +hxwG+3SYIElz8AXSG7Ggo7cbcNOIabla1jj0Ytwli3i/+Oh+uFzJlU9fpy25IGvP +a931DfSCt/SyZi4QKPaXWnuWFo8BGS1sbn85WAZkgwGDg8NNkt0yxoekN+kWzqot +aK8KgWU6cMGbrU1tVMoqLUuFG7OA5nBFDWteNfB/O7ic5ARwiRIlk9oKmSJgamNg +TnYGmE69g60dWIolhdLHZR4tjsbftsbhf4oEIRUpdPA+nJCdDC7xij5aqgwJHsfV +PKPtl8MeNPo4+QgO48BdK4PRVmrJtqhUUy54Mmc9gn900PvhtgVguXDbjgv5E1hv +cWAQUhC5wUEJ73IfZzF4/5YFjQIDAQABo2MwYTAfBgNVHSMEGDAWgBTj/i39KNAL +tbq2osS/BqoFjJP7LzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAd +BgNVHQ4EFgQU4/4t/SjQC7W6tqLEvwaqBYyT+y8wDQYJKoZIhvcNAQELBQADggIB +ACXGumvrh8vegjmWPfBEp2uEcwPenStPuiB/vHiyz5ewG5zz13ku9Ui20vsXiObT +ej/tUxPQ4i9qecsAIyjmHjdXNYmEwnZPNDatZ8POQQaIxffu2Bq41gt/UP+TqhdL +jOztUmCypAbqTuv0axn96/Ua4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBS +ESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sGE5uPhnEFtC+NiWYzKXZUmhH4J/qy +P5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfXBDrDMlI1Dlb4pd19 +xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjnaH9d +Ci77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN +5mydLIhyPDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe +/v5WOaHIz16eGWRGENoXkbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+Z +AAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3CekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ +5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 407555286 (0x184accd6) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=China Financial Certification Authority, CN=CFCA EV ROOT +# Validity +# Not Before: Aug 8 03:07:01 2012 GMT +# Not After : Dec 31 03:07:01 2029 GMT +# Subject: C=CN, O=China Financial Certification Authority, CN=CFCA EV ROOT +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d7:5d:6b:cd:10:3f:1f:05:59:d5:05:4d:37:b1: +# 0e:ec:98:2b:8e:15:1d:fa:93:4b:17:82:21:71:10: +# 52:d7:51:64:70:16:c2:55:69:4d:8e:15:6d:9f:bf: +# 0c:1b:c2:e0:a3:67:d6:0c:ac:cf:22:ae:af:77:54: +# 2a:4b:4c:8a:53:52:7a:c3:ee:2e:de:b3:71:25:c1: +# e9:5d:3d:ee:a1:2f:a3:f7:2a:3c:c9:23:1d:6a:ab: +# 1d:a1:a7:f1:f3:ec:a0:d5:44:cf:15:cf:72:2f:1d: +# 63:97:e8:99:f9:fd:93:a4:54:80:4c:52:d4:52:ab: +# 2e:49:df:90:cd:b8:5f:be:3f:de:a1:ca:4d:20:d4: +# 25:e8:84:29:53:b7:b1:88:1f:ff:fa:da:90:9f:0a: +# a9:2d:41:3f:b1:f1:18:29:ee:16:59:2c:34:49:1a: +# a8:06:d7:a8:88:d2:03:72:7a:32:e2:ea:68:4d:6e: +# 2c:96:65:7b:ca:59:fa:f2:e2:dd:ee:30:2c:fb:cc: +# 46:ac:c4:63:eb:6f:7f:36:2b:34:73:12:94:7f:df: +# cc:26:9e:f1:72:5d:50:65:59:8f:69:b3:87:5e:32: +# 6f:c3:18:8a:b5:95:8f:b0:7a:37:de:5a:45:3b:c7: +# 36:e1:ef:67:d1:39:d3:97:5b:73:62:19:48:2d:87: +# 1c:06:fb:74:98:20:49:73:f0:05:d2:1b:b1:a0:a3: +# b7:1b:70:d3:88:69:b9:5a:d6:38:f4:62:dc:25:8b: +# 78:bf:f8:e8:7e:b8:5c:c9:95:4f:5f:a7:2d:b9:20: +# 6b:cf:6b:dd:f5:0d:f4:82:b7:f4:b2:66:2e:10:28: +# f6:97:5a:7b:96:16:8f:01:19:2d:6c:6e:7f:39:58: +# 06:64:83:01:83:83:c3:4d:92:dd:32:c6:87:a4:37: +# e9:16:ce:aa:2d:68:af:0a:81:65:3a:70:c1:9b:ad: +# 4d:6d:54:ca:2a:2d:4b:85:1b:b3:80:e6:70:45:0d: +# 6b:5e:35:f0:7f:3b:b8:9c:e4:04:70:89:12:25:93: +# da:0a:99:22:60:6a:63:60:4e:76:06:98:4e:bd:83: +# ad:1d:58:8a:25:85:d2:c7:65:1e:2d:8e:c6:df:b6: +# c6:e1:7f:8a:04:21:15:29:74:f0:3e:9c:90:9d:0c: +# 2e:f1:8a:3e:5a:aa:0c:09:1e:c7:d5:3c:a3:ed:97: +# c3:1e:34:fa:38:f9:08:0e:e3:c0:5d:2b:83:d1:56: +# 6a:c9:b6:a8:54:53:2e:78:32:67:3d:82:7f:74:d0: +# fb:e1:b6:05:60:b9:70:db:8e:0b:f9:13:58:6f:71: +# 60:10:52:10:b9:c1:41:09:ef:72:1f:67:31:78:ff: +# 96:05:8d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Authority Key Identifier: +# E3:FE:2D:FD:28:D0:0B:B5:BA:B6:A2:C4:BF:06:AA:05:8C:93:FB:2F +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# E3:FE:2D:FD:28:D0:0B:B5:BA:B6:A2:C4:BF:06:AA:05:8C:93:FB:2F +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 25:c6:ba:6b:eb:87:cb:de:82:39:96:3d:f0:44:a7:6b:84:73: +# 03:de:9d:2b:4f:ba:20:7f:bc:78:b2:cf:97:b0:1b:9c:f3:d7: +# 79:2e:f5:48:b6:d2:fb:17:88:e6:d3:7a:3f:ed:53:13:d0:e2: +# 2f:6a:79:cb:00:23:28:e6:1e:37:57:35:89:84:c2:76:4f:34: +# 36:ad:67:c3:ce:41:06:88:c5:f7:ee:d8:1a:b8:d6:0b:7f:50: +# ff:93:aa:17:4b:8c:ec:ed:52:60:b2:a4:06:ea:4e:eb:f4:6b: +# 19:fd:eb:f5:1a:e0:25:2a:9a:dc:c7:41:36:f7:c8:74:05:84: +# 39:95:39:d6:0b:3b:a4:27:fa:08:d8:5c:1e:f8:04:60:52:11: +# 28:28:03:ff:ef:53:66:00:a5:4a:34:16:66:7c:fd:09:a4:ae: +# 9e:67:1a:6f:41:0b:6b:06:13:9b:8f:86:71:05:b4:2f:8d:89: +# 66:33:29:76:54:9a:11:f8:27:fa:b2:3f:91:e0:ce:0d:1b:f3: +# 30:1a:ad:bf:22:5d:1b:d3:bf:25:05:4d:e1:92:1a:7f:99:9f: +# 3c:44:93:ca:d4:40:49:6c:80:87:d7:04:3a:c3:32:52:35:0e: +# 56:f8:a5:dd:7d:c4:8b:0d:11:1f:53:cb:1e:b2:17:b6:68:77: +# 5a:e0:d4:cb:c8:07:ae:f5:3a:2e:8e:37:b7:d0:01:4b:43:29: +# 77:8c:39:97:8f:82:5a:f8:51:e5:89:a0:18:e7:68:7f:5d:0a: +# 2e:fb:a3:47:0e:3d:a6:23:7a:c6:01:c7:8f:c8:5e:bf:6d:80: +# 56:be:8a:24:ba:33:ea:9f:e1:32:11:9e:f1:d2:4f:80:f6:1b: +# 40:af:38:9e:11:50:79:73:12:12:cd:e6:6c:9d:2c:88:72:3c: +# 30:81:06:91:22:ea:59:ad:da:19:2e:22:c2:8d:b9:8c:87:e0: +# 66:bc:73:23:5f:21:64:63:80:48:f5:a0:3c:18:3d:94:c8:48: +# 41:1d:40:ba:5e:fe:fe:56:39:a1:c8:cf:5e:9e:19:64:46:10: +# da:17:91:b7:05:80:ac:8b:99:92:7d:e7:a2:d8:07:0b:36:27: +# e7:48:79:60:8a:c3:d7:13:5c:f8:72:40:df:4a:cb:cf:99:00: +# 0a:00:0b:11:95:da:56:45:03:88:0a:9f:67:d0:d5:79:b1:a8: +# 8d:40:6d:0d:c2:7a:40:fa:f3:5f:64:47:92:cb:53:b9:bb:59: +# ce:4f:fd:d0:15:53:01:d8:df:eb:d9:e6:76:ef:d0:23:bb:3b: +# a9:79:b3:d5:02:29:cd:89:a3:96:0f:4a:35:e7:4e:42:c0:75: +# cd:07:cf:e6:2c:eb:7b:2e + +[p11-kit-object-v1] +label: "CommScope Public Trust ECC Root-01" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAESzbprldeqHDX0I90YnfDXnqq5bai8Xj9 +An5X3ZF5nGy5UohUvC8EvrjN9hDRKey10KDD8IlwGbtRZcVDnMObY50ggz4GC6ZC +RIURp0o6LenWaC9ITlMrBz9NvbmsdzlX +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CommScope Public Trust ECC Root-01" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICHTCCAaOgAwIBAgIUQ3CCd89NXTTxyq4yLzf39H91oJ4wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMTAeFw0yMTA0MjgxNzM1NDNa +Fw00NjA0MjgxNzM1NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDEw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAARLNumuV16ocNfQj3Rid8NeeqrltqLxeP0C +flfdkXmcbLlSiFS8LwS+uM32ENEp7LXQoMPwiXAZu1FlxUOcw5tjnSCDPgYLpkJE +hRGnSjot6dZoL0hOUysHP029uax3OVejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSOB2LAUN3GGQYARnQE9/OufXVNMDAKBggq +hkjOPQQDAwNoADBlAjEAnDPfQeMjqEI2Jpc1XHvr20v4qotzVRVcrHgpD7oh2MSg +2NED3W3ROT3Ek2DS43KyAjB8xX6I01D1HiXo+k515liWpDVfG2XqYZpwI7UNo5uS +Um9poIyNStDuiw7LR47QjRE= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 43:70:82:77:cf:4d:5d:34:f1:ca:ae:32:2f:37:f7:f4:7f:75:a0:9e +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=CommScope, CN=CommScope Public Trust ECC Root-01 +# Validity +# Not Before: Apr 28 17:35:43 2021 GMT +# Not After : Apr 28 17:35:42 2046 GMT +# Subject: C=US, O=CommScope, CN=CommScope Public Trust ECC Root-01 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:4b:36:e9:ae:57:5e:a8:70:d7:d0:8f:74:62:77: +# c3:5e:7a:aa:e5:b6:a2:f1:78:fd:02:7e:57:dd:91: +# 79:9c:6c:b9:52:88:54:bc:2f:04:be:b8:cd:f6:10: +# d1:29:ec:b5:d0:a0:c3:f0:89:70:19:bb:51:65:c5: +# 43:9c:c3:9b:63:9d:20:83:3e:06:0b:a6:42:44:85: +# 11:a7:4a:3a:2d:e9:d6:68:2f:48:4e:53:2b:07:3f: +# 4d:bd:b9:ac:77:39:57 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 8E:07:62:C0:50:DD:C6:19:06:00:46:74:04:F7:F3:AE:7D:75:4D:30 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:9c:33:df:41:e3:23:a8:42:36:26:97:35:5c: +# 7b:eb:db:4b:f8:aa:8b:73:55:15:5c:ac:78:29:0f:ba:21:d8: +# c4:a0:d8:d1:03:dd:6d:d1:39:3d:c4:93:60:d2:e3:72:b2:02: +# 30:7c:c5:7e:88:d3:50:f5:1e:25:e8:fa:4e:75:e6:58:96:a4: +# 35:5f:1b:65:ea:61:9a:70:23:b5:0d:a3:9b:92:52:6f:69:a0: +# 8c:8d:4a:d0:ee:8b:0e:cb:47:8e:d0:8d:11 + +[p11-kit-object-v1] +label: "CommScope Public Trust ECC Root-02" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEeDCB6GMe5etxUQ/3BwfKOZl8TtUPzDAw +C49mkz7PvcWGvfmxt7Q+tAfI85Yx8+2kT/ijTo0pFVi41W9/7mwitbCvSEUKvahJ +lL+EQ7DbhEoDIxlnam/BbrwGOTfRiCL3 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CommScope Public Trust ECC Root-02" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICHDCCAaOgAwIBAgIUKP2ZYEFHpgE6yhR7H+/5aAiDXX0wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMjAeFw0yMTA0MjgxNzQ0NTRa +Fw00NjA0MjgxNzQ0NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDIw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAR4MIHoYx7l63FRD/cHB8o5mXxO1Q/MMDAL +j2aTPs+9xYa9+bG3tD60B8jzljHz7aRP+KNOjSkVWLjVb3/ubCK1sK9IRQq9qEmU +v4RDsNuESgMjGWdqb8FuvAY5N9GIIvejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTmGHX/72DehKT1RsfeSlXjMjZ59TAKBggq +hkjOPQQDAwNnADBkAjAmc0l6tqvmSfR9Uj/UQQSugEODZXW5hYA4O9Zv5JOGq4/n +ich/m35rChJVYaoR4HkCMHfoMXGsPHED1oQmHhS48zs73u1Z/GtMMH9ZzkXpc2AV +mkzw5l4lIhVtwodZ0LKOag== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 28:fd:99:60:41:47:a6:01:3a:ca:14:7b:1f:ef:f9:68:08:83:5d:7d +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=CommScope, CN=CommScope Public Trust ECC Root-02 +# Validity +# Not Before: Apr 28 17:44:54 2021 GMT +# Not After : Apr 28 17:44:53 2046 GMT +# Subject: C=US, O=CommScope, CN=CommScope Public Trust ECC Root-02 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:78:30:81:e8:63:1e:e5:eb:71:51:0f:f7:07:07: +# ca:39:99:7c:4e:d5:0f:cc:30:30:0b:8f:66:93:3e: +# cf:bd:c5:86:bd:f9:b1:b7:b4:3e:b4:07:c8:f3:96: +# 31:f3:ed:a4:4f:f8:a3:4e:8d:29:15:58:b8:d5:6f: +# 7f:ee:6c:22:b5:b0:af:48:45:0a:bd:a8:49:94:bf: +# 84:43:b0:db:84:4a:03:23:19:67:6a:6f:c1:6e:bc: +# 06:39:37:d1:88:22:f7 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# E6:18:75:FF:EF:60:DE:84:A4:F5:46:C7:DE:4A:55:E3:32:36:79:F5 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:26:73:49:7a:b6:ab:e6:49:f4:7d:52:3f:d4:41: +# 04:ae:80:43:83:65:75:b9:85:80:38:3b:d6:6f:e4:93:86:ab: +# 8f:e7:89:c8:7f:9b:7e:6b:0a:12:55:61:aa:11:e0:79:02:30: +# 77:e8:31:71:ac:3c:71:03:d6:84:26:1e:14:b8:f3:3b:3b:de: +# ed:59:fc:6b:4c:30:7f:59:ce:45:e9:73:60:15:9a:4c:f0:e6: +# 5e:25:22:15:6d:c2:87:59:d0:b2:8e:6a + +[p11-kit-object-v1] +label: "CommScope Public Trust RSA Root-01" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsEhlow0dQuORbZ2EpGGW +EsLtw9ojNBl29ur9VVr2VQFTD/LMjJdPuVDLswFEVpb9myjse3QL50JrVc7JYbLo +rUA8urlBCgVPGyaFj0O1QLWF0dRx3INB8/ZFx4CihFCXRs6gDMRgVgQdB1tGpQ6y +S6QOpXzu+NRiA7mTaooUuHD4LoJGOCMOdMdrQbfQKaOdgLB+d5NjQvs0gztzo1oh +NutH+hgX2bpmwpOkj/xdpK38UGqVrLwkM9G9iH+G9fWycyqPfK8I8hqYP6mBZT/B +jInFljCaCs/01Mg07Z0vvI04hlPul5+psmOUF40P3GYqfFJRdcuZjug9XL+eOyiN +gwIPqZ9y4iwrs9xmlwBA0KRUjptde0U2JtZyQ+vPwOoN3M4S5n04nwUnqJc+6VHG +bAUowQIP6Rht7L2cBtSnSfRUBWtsMPHrA9XqPWp2wssaKElNf2Tg+ivac4OB/5ED +vZS75LiOnDJjzZ+7aIGxhFuvNr937h1/90mbUuzSd1p9kZ1Nwjkt5LqC+G/yTh4P +TuY/WaUj3D2HqChYKNHxGzbbT8T/4YxbcozHJgMnozkKAarAsjFggyKhTxIJARGv +NNTP165i0wUHtDF14A1tV09ph/lXqboV9shSbaHLnB/l/HioNZqfQRTOpbTOlAgc +Ca1W5dq2SZpK6mMYU5wsLsMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CommScope Public Trust RSA Root-01" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUPgNJgXUWdDGOTKvVxZAplsU5EN0wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMTAeFw0yMTA0MjgxNjQ1 +NTRaFw00NjA0MjgxNjQ1NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwSGWjDR1C45FtnYSk +YZYSwu3D2iM0GXb26v1VWvZVAVMP8syMl0+5UMuzAURWlv2bKOx7dAvnQmtVzslh +suitQDy6uUEKBU8bJoWPQ7VAtYXR1HHcg0Hz9kXHgKKEUJdGzqAMxGBWBB0HW0al +DrJLpA6lfO741GIDuZNqihS4cPgugkY4Iw50x2tBt9Apo52AsH53k2NC+zSDO3Oj +WiE260f6GBfZumbCk6SP/F2krfxQapWsvCQz0b2If4b19bJzKo98rwjyGpg/qYFl +P8GMicWWMJoKz/TUyDTtnS+8jTiGU+6Xn6myY5QXjQ/cZip8UlF1y5mO6D1cv547 +KI2DAg+pn3LiLCuz3GaXAEDQpFSOm117RTYm1nJD68/A6g3czhLmfTifBSeolz7p +UcZsBSjBAg/pGG3svZwG1KdJ9FQFa2ww8esD1eo9anbCyxooSU1/ZOD6K9pzg4H/ +kQO9lLvkuI6cMmPNn7togbGEW682v3fuHX/3SZtS7NJ3Wn2RnU3COS3kuoL4b/JO +Hg9O5j9ZpSPcPYeoKFgo0fEbNttPxP/hjFtyjMcmAyejOQoBqsCyMWCDIqFPEgkB +Ea801M/XrmLTBQe0MXXgDW1XT2mH+VepuhX2yFJtocucH+X8eKg1mp9BFM6ltM6U +CBwJrVbl2rZJmkrqYxhTnCwuwwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUN12mmnQywsL5x6YVEFm45P3luG0wDQYJ +KoZIhvcNAQELBQADggIBAK+nz97/4L1CjU3lIpbfaOp9TSp90K09FlxD533Ahuh6 +NWPxzIHIxgvoLlI1pKZJkGNRrDSsBTtXAOnTYtPZKdVUvhwQkZyybf5Z/Xn36lbQ +nmhUQo8mUuJM3y+Xpi/SB5io82BdS5pYV4jvguX6r2yBS5KPQJqTRlnLX3gWsWc+ +QgvfKNmwrZggvkN80V4aCRckjXtdlemrwWCrWxhkgPut4AZ9HcpZuPN4KWfGVh2v +trV0KnahP/t1MJ+UXjulYPPLXAziDslg+MkfFoom3ecnf+slpoq9uC02EJqxWE2a +aE9gVOX2RhOOiKy8IUISrcZKiX2bwdgt6ZYD9KJ0DLwAHb/WNyVntHKLr4W96ioD +j8z7PEQkguIBpQtZtjSNMgsSDesnwv1B10A8ckYpwIzqug/xBpMu95yo9GA+o/E4 +Xo4TwbM6l4c/ksp4qRyv0LAbJh6+cOx69TOY6lz/KwsETkPdY34Op054A5U+1C0w +lREQKC6/oAI+/15Z0wUOlV9TRe9rh9VIzRamloPh37MG88EU26fsHItdkJANclHn +YfkUyq+Dj7+vsQpZXdxc1+SWrVtgHdqul7I52Qb1dgAT+GhMIbA1xNxVssnBQVoc +icCMb3SgazNNtQEo/a2tiRc7ppqEvOuM6sRxJKi6KfkIsidWNTJf6jn7MZrVGczw +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 3e:03:49:81:75:16:74:31:8e:4c:ab:d5:c5:90:29:96:c5:39:10:dd +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=CommScope, CN=CommScope Public Trust RSA Root-01 +# Validity +# Not Before: Apr 28 16:45:54 2021 GMT +# Not After : Apr 28 16:45:53 2046 GMT +# Subject: C=US, O=CommScope, CN=CommScope Public Trust RSA Root-01 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b0:48:65:a3:0d:1d:42:e3:91:6d:9d:84:a4:61: +# 96:12:c2:ed:c3:da:23:34:19:76:f6:ea:fd:55:5a: +# f6:55:01:53:0f:f2:cc:8c:97:4f:b9:50:cb:b3:01: +# 44:56:96:fd:9b:28:ec:7b:74:0b:e7:42:6b:55:ce: +# c9:61:b2:e8:ad:40:3c:ba:b9:41:0a:05:4f:1b:26: +# 85:8f:43:b5:40:b5:85:d1:d4:71:dc:83:41:f3:f6: +# 45:c7:80:a2:84:50:97:46:ce:a0:0c:c4:60:56:04: +# 1d:07:5b:46:a5:0e:b2:4b:a4:0e:a5:7c:ee:f8:d4: +# 62:03:b9:93:6a:8a:14:b8:70:f8:2e:82:46:38:23: +# 0e:74:c7:6b:41:b7:d0:29:a3:9d:80:b0:7e:77:93: +# 63:42:fb:34:83:3b:73:a3:5a:21:36:eb:47:fa:18: +# 17:d9:ba:66:c2:93:a4:8f:fc:5d:a4:ad:fc:50:6a: +# 95:ac:bc:24:33:d1:bd:88:7f:86:f5:f5:b2:73:2a: +# 8f:7c:af:08:f2:1a:98:3f:a9:81:65:3f:c1:8c:89: +# c5:96:30:9a:0a:cf:f4:d4:c8:34:ed:9d:2f:bc:8d: +# 38:86:53:ee:97:9f:a9:b2:63:94:17:8d:0f:dc:66: +# 2a:7c:52:51:75:cb:99:8e:e8:3d:5c:bf:9e:3b:28: +# 8d:83:02:0f:a9:9f:72:e2:2c:2b:b3:dc:66:97:00: +# 40:d0:a4:54:8e:9b:5d:7b:45:36:26:d6:72:43:eb: +# cf:c0:ea:0d:dc:ce:12:e6:7d:38:9f:05:27:a8:97: +# 3e:e9:51:c6:6c:05:28:c1:02:0f:e9:18:6d:ec:bd: +# 9c:06:d4:a7:49:f4:54:05:6b:6c:30:f1:eb:03:d5: +# ea:3d:6a:76:c2:cb:1a:28:49:4d:7f:64:e0:fa:2b: +# da:73:83:81:ff:91:03:bd:94:bb:e4:b8:8e:9c:32: +# 63:cd:9f:bb:68:81:b1:84:5b:af:36:bf:77:ee:1d: +# 7f:f7:49:9b:52:ec:d2:77:5a:7d:91:9d:4d:c2:39: +# 2d:e4:ba:82:f8:6f:f2:4e:1e:0f:4e:e6:3f:59:a5: +# 23:dc:3d:87:a8:28:58:28:d1:f1:1b:36:db:4f:c4: +# ff:e1:8c:5b:72:8c:c7:26:03:27:a3:39:0a:01:aa: +# c0:b2:31:60:83:22:a1:4f:12:09:01:11:af:34:d4: +# cf:d7:ae:62:d3:05:07:b4:31:75:e0:0d:6d:57:4f: +# 69:87:f9:57:a9:ba:15:f6:c8:52:6d:a1:cb:9c:1f: +# e5:fc:78:a8:35:9a:9f:41:14:ce:a5:b4:ce:94:08: +# 1c:09:ad:56:e5:da:b6:49:9a:4a:ea:63:18:53:9c: +# 2c:2e:c3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 37:5D:A6:9A:74:32:C2:C2:F9:C7:A6:15:10:59:B8:E4:FD:E5:B8:6D +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# af:a7:cf:de:ff:e0:bd:42:8d:4d:e5:22:96:df:68:ea:7d:4d: +# 2a:7d:d0:ad:3d:16:5c:43:e7:7d:c0:86:e8:7a:35:63:f1:cc: +# 81:c8:c6:0b:e8:2e:52:35:a4:a6:49:90:63:51:ac:34:ac:05: +# 3b:57:00:e9:d3:62:d3:d9:29:d5:54:be:1c:10:91:9c:b2:6d: +# fe:59:fd:79:f7:ea:56:d0:9e:68:54:42:8f:26:52:e2:4c:df: +# 2f:97:a6:2f:d2:07:98:a8:f3:60:5d:4b:9a:58:57:88:ef:82: +# e5:fa:af:6c:81:4b:92:8f:40:9a:93:46:59:cb:5f:78:16:b1: +# 67:3e:42:0b:df:28:d9:b0:ad:98:20:be:43:7c:d1:5e:1a:09: +# 17:24:8d:7b:5d:95:e9:ab:c1:60:ab:5b:18:64:80:fb:ad:e0: +# 06:7d:1d:ca:59:b8:f3:78:29:67:c6:56:1d:af:b6:b5:74:2a: +# 76:a1:3f:fb:75:30:9f:94:5e:3b:a5:60:f3:cb:5c:0c:e2:0e: +# c9:60:f8:c9:1f:16:8a:26:dd:e7:27:7f:eb:25:a6:8a:bd:b8: +# 2d:36:10:9a:b1:58:4d:9a:68:4f:60:54:e5:f6:46:13:8e:88: +# ac:bc:21:42:12:ad:c6:4a:89:7d:9b:c1:d8:2d:e9:96:03:f4: +# a2:74:0c:bc:00:1d:bf:d6:37:25:67:b4:72:8b:af:85:bd:ea: +# 2a:03:8f:cc:fb:3c:44:24:82:e2:01:a5:0b:59:b6:34:8d:32: +# 0b:12:0d:eb:27:c2:fd:41:d7:40:3c:72:46:29:c0:8c:ea:ba: +# 0f:f1:06:93:2e:f7:9c:a8:f4:60:3e:a3:f1:38:5e:8e:13:c1: +# b3:3a:97:87:3f:92:ca:78:a9:1c:af:d0:b0:1b:26:1e:be:70: +# ec:7a:f5:33:98:ea:5c:ff:2b:0b:04:4e:43:dd:63:7e:0e:a7: +# 4e:78:03:95:3e:d4:2d:30:95:11:10:28:2e:bf:a0:02:3e:ff: +# 5e:59:d3:05:0e:95:5f:53:45:ef:6b:87:d5:48:cd:16:a6:96: +# 83:e1:df:b3:06:f3:c1:14:db:a7:ec:1c:8b:5d:90:90:0d:72: +# 51:e7:61:f9:14:ca:af:83:8f:bf:af:b1:0a:59:5d:dc:5c:d7: +# e4:96:ad:5b:60:1d:da:ae:97:b2:39:d9:06:f5:76:00:13:f8: +# 68:4c:21:b0:35:c4:dc:55:b2:c9:c1:41:5a:1c:89:c0:8c:6f: +# 74:a0:6b:33:4d:b5:01:28:fd:ad:ad:89:17:3b:a6:9a:84:bc: +# eb:8c:ea:c4:71:24:a8:ba:29:f9:08:b2:27:56:35:32:5f:ea: +# 39:fb:31:9a:d5:19:cc:f0 + +[p11-kit-object-v1] +label: "CommScope Public Trust RSA Root-02" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4foO+2gAEshN1awixDUB +O8VU5Vl2Y6V/68HEapi9Mo0XgOtdutFiPSUjGTUU6X+JpxtiPNZQ5zSVAzKxtJMi +Pafise3me04uh5sNM3UK3qo1537lNpiiriWelbMylqQrWB7vP/5iNEhR0bSNQq1g +2klqlXDd0gDizFdjAnuW3UmXW5JOldP5yykfGEr4ASrSYwluJOmJ0uXHIkzcc4ZH +AKoNiI6uhX1K6bszTw5ScJ2V43xtllstPV+hg0ZdtuMluHynGYAc6mVD3JF5Nix0 +fPJnBsmJydu/2mi/I+3ca60og3kv7DilDTcBZyea6TPZM183ocXwqz36eLDnLJ/2 +Pp9g4O9I6ZBFHgVReBosEixcKKwNoiOeNI8F5qIzzhF3E9QOpB5CH4bNcP7ZLhU9 +Hbu48lNX28zGdCmcGLM2dTguD1Sh+JIfiZZPu9Tunek7NkK1Cjsq1GR5NhDh+ZED +K3sgVM0NGRrIQTI00bCZ4ZAeAUA2tbf6qeV3daQigV2wi+QnEg9UiMbbhXTmt8DX +pin6297zk5cnBFUvCm83xT0TrwoAqSyLHIEo1++GMamu8m64ymosVEfYKogur8EH +EHisEaIvQvA3xfK4Vt0OYi3OLVZ+VfKnRPYrMvQjqEfo1CoBeM9qwzeonmXSLOX6 +ujPBBkT25s+lDadmCDSKLPMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "CommScope Public Trust RSA Root-02" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUVBa/O345lXGN0aoApYYNK496BU4wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMjAeFw0yMTA0MjgxNzE2 +NDNaFw00NjA0MjgxNzE2NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDh+g77aAASyE3VrCLE +NQE7xVTlWXZjpX/rwcRqmL0yjReA61260WI9JSMZNRTpf4mnG2I81lDnNJUDMrG0 +kyI9p+Kx7eZ7Ti6Hmw0zdQreqjXnfuU2mKKuJZ6VszKWpCtYHu8//mI0SFHRtI1C +rWDaSWqVcN3SAOLMV2MCe5bdSZdbkk6V0/nLKR8YSvgBKtJjCW4k6YnS5cciTNxz +hkcAqg2Ijq6FfUrpuzNPDlJwnZXjfG2WWy09X6GDRl224yW4fKcZgBzqZUPckXk2 +LHR88mcGyYnJ27/aaL8j7dxrrSiDeS/sOKUNNwFnJ5rpM9kzXzehxfCrPfp4sOcs +n/Y+n2Dg70jpkEUeBVF4GiwSLFworA2iI540jwXmojPOEXcT1A6kHkIfhs1w/tku +FT0du7jyU1fbzMZ0KZwYszZ1OC4PVKH4kh+Jlk+71O6d6Ts2QrUKOyrUZHk2EOH5 +kQMreyBUzQ0ZGshBMjTRsJnhkB4BQDa1t/qp5Xd1pCKBXbCL5CcSD1SIxtuFdOa3 +wNemKfrb3vOTlycEVS8KbzfFPROvCgCpLIscgSjX74Yxqa7ybrjKaixUR9gqiC6v +wQcQeKwRoi9C8DfF8rhW3Q5iLc4tVn5V8qdE9isy9COoR+jUKgF4z2rDN6ieZdIs +5fq6M8EGRPbmz6UNp2YINIos8wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUR9DnsSL/nSz12Vdgs7GxcJXvYXowDQYJ +KoZIhvcNAQELBQADggIBAIZpsU0v6Z9PIpNojuQhmaPORVMbc0RTAIFhzTHjCLqB +KCh6krm2qMhDnscTJk3C2OVVnJJdUNjCK9v+5qiXz1I6JMNlZFxHMaNlNRPDk7n3 ++VGXu6TwYofF1gbTl4MgqX67tiHCpQ2EAOHyJxCDut0DgdXdaMNmEMjRdrSzbyme +APnCKfWxkxlSaRosTKCL4BWaMS/TiJVZbuXEs1DIFAhKm4sTg7GkcrI7djNB3Nyq +pgdvHSQSn8h2vS/ZjvQs7rfSOBAkNlEv41xdgSGn2rtO/+YHqP65DSdsu3BaVXoT +6fEqSWnHX4dXTEN5bTpl6TBcQe7rd6VzEojov32u5cSoHw2OHG1QAk8mGEPej1WF +sQs3BWDJVTkSBKEqz3EWnzZRSb9wO55nnPt7eck5HHisd5FUmrh1CoFSl+NmYWvt +PjgelmFV4ZFUjO2MJB+ByRCac5krFk5yAD9UG/iNuovnFNa2RU9g7Jauwy8CTl2d +lklyALKrdVwPaFsdZcJfMw8eD/A7hvWwTruc9+olBdytoptLFwG+Qt81IR2tq670 +v64fG9PiO/yzcnMcmyiQiRM9HcEARwmWmjgb3bHPDcK0RPOWlc4yOo80nOAXx17O +rg3bhzjlP1v9mxnhMUF6cKojawHhRUzNlM47ni3niAIi9G7oyOzWPPO5std3eqx7 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 54:16:bf:3b:7e:39:95:71:8d:d1:aa:00:a5:86:0d:2b:8f:7a:05:4e +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=CommScope, CN=CommScope Public Trust RSA Root-02 +# Validity +# Not Before: Apr 28 17:16:43 2021 GMT +# Not After : Apr 28 17:16:42 2046 GMT +# Subject: C=US, O=CommScope, CN=CommScope Public Trust RSA Root-02 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:e1:fa:0e:fb:68:00:12:c8:4d:d5:ac:22:c4:35: +# 01:3b:c5:54:e5:59:76:63:a5:7f:eb:c1:c4:6a:98: +# bd:32:8d:17:80:eb:5d:ba:d1:62:3d:25:23:19:35: +# 14:e9:7f:89:a7:1b:62:3c:d6:50:e7:34:95:03:32: +# b1:b4:93:22:3d:a7:e2:b1:ed:e6:7b:4e:2e:87:9b: +# 0d:33:75:0a:de:aa:35:e7:7e:e5:36:98:a2:ae:25: +# 9e:95:b3:32:96:a4:2b:58:1e:ef:3f:fe:62:34:48: +# 51:d1:b4:8d:42:ad:60:da:49:6a:95:70:dd:d2:00: +# e2:cc:57:63:02:7b:96:dd:49:97:5b:92:4e:95:d3: +# f9:cb:29:1f:18:4a:f8:01:2a:d2:63:09:6e:24:e9: +# 89:d2:e5:c7:22:4c:dc:73:86:47:00:aa:0d:88:8e: +# ae:85:7d:4a:e9:bb:33:4f:0e:52:70:9d:95:e3:7c: +# 6d:96:5b:2d:3d:5f:a1:83:46:5d:b6:e3:25:b8:7c: +# a7:19:80:1c:ea:65:43:dc:91:79:36:2c:74:7c:f2: +# 67:06:c9:89:c9:db:bf:da:68:bf:23:ed:dc:6b:ad: +# 28:83:79:2f:ec:38:a5:0d:37:01:67:27:9a:e9:33: +# d9:33:5f:37:a1:c5:f0:ab:3d:fa:78:b0:e7:2c:9f: +# f6:3e:9f:60:e0:ef:48:e9:90:45:1e:05:51:78:1a: +# 2c:12:2c:5c:28:ac:0d:a2:23:9e:34:8f:05:e6:a2: +# 33:ce:11:77:13:d4:0e:a4:1e:42:1f:86:cd:70:fe: +# d9:2e:15:3d:1d:bb:b8:f2:53:57:db:cc:c6:74:29: +# 9c:18:b3:36:75:38:2e:0f:54:a1:f8:92:1f:89:96: +# 4f:bb:d4:ee:9d:e9:3b:36:42:b5:0a:3b:2a:d4:64: +# 79:36:10:e1:f9:91:03:2b:7b:20:54:cd:0d:19:1a: +# c8:41:32:34:d1:b0:99:e1:90:1e:01:40:36:b5:b7: +# fa:a9:e5:77:75:a4:22:81:5d:b0:8b:e4:27:12:0f: +# 54:88:c6:db:85:74:e6:b7:c0:d7:a6:29:fa:db:de: +# f3:93:97:27:04:55:2f:0a:6f:37:c5:3d:13:af:0a: +# 00:a9:2c:8b:1c:81:28:d7:ef:86:31:a9:ae:f2:6e: +# b8:ca:6a:2c:54:47:d8:2a:88:2e:af:c1:07:10:78: +# ac:11:a2:2f:42:f0:37:c5:f2:b8:56:dd:0e:62:2d: +# ce:2d:56:7e:55:f2:a7:44:f6:2b:32:f4:23:a8:47: +# e8:d4:2a:01:78:cf:6a:c3:37:a8:9e:65:d2:2c:e5: +# fa:ba:33:c1:06:44:f6:e6:cf:a5:0d:a7:66:08:34: +# 8a:2c:f3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 47:D0:E7:B1:22:FF:9D:2C:F5:D9:57:60:B3:B1:B1:70:95:EF:61:7A +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 86:69:b1:4d:2f:e9:9f:4f:22:93:68:8e:e4:21:99:a3:ce:45: +# 53:1b:73:44:53:00:81:61:cd:31:e3:08:ba:81:28:28:7a:92: +# b9:b6:a8:c8:43:9e:c7:13:26:4d:c2:d8:e5:55:9c:92:5d:50: +# d8:c2:2b:db:fe:e6:a8:97:cf:52:3a:24:c3:65:64:5c:47:31: +# a3:65:35:13:c3:93:b9:f7:f9:51:97:bb:a4:f0:62:87:c5:d6: +# 06:d3:97:83:20:a9:7e:bb:b6:21:c2:a5:0d:84:00:e1:f2:27: +# 10:83:ba:dd:03:81:d5:dd:68:c3:66:10:c8:d1:76:b4:b3:6f: +# 29:9e:00:f9:c2:29:f5:b1:93:19:52:69:1a:2c:4c:a0:8b:e0: +# 15:9a:31:2f:d3:88:95:59:6e:e5:c4:b3:50:c8:14:08:4a:9b: +# 8b:13:83:b1:a4:72:b2:3b:76:33:41:dc:dc:aa:a6:07:6f:1d: +# 24:12:9f:c8:76:bd:2f:d9:8e:f4:2c:ee:b7:d2:38:10:24:36: +# 51:2f:e3:5c:5d:81:21:a7:da:bb:4e:ff:e6:07:a8:fe:b9:0d: +# 27:6c:bb:70:5a:55:7a:13:e9:f1:2a:49:69:c7:5f:87:57:4c: +# 43:79:6d:3a:65:e9:30:5c:41:ee:eb:77:a5:73:12:88:e8:bf: +# 7d:ae:e5:c4:a8:1f:0d:8e:1c:6d:50:02:4f:26:18:43:de:8f: +# 55:85:b1:0b:37:05:60:c9:55:39:12:04:a1:2a:cf:71:16:9f: +# 36:51:49:bf:70:3b:9e:67:9c:fb:7b:79:c9:39:1c:78:ac:77: +# 91:54:9a:b8:75:0a:81:52:97:e3:66:61:6b:ed:3e:38:1e:96: +# 61:55:e1:91:54:8c:ed:8c:24:1f:81:c9:10:9a:73:99:2b:16: +# 4e:72:00:3f:54:1b:f8:8d:ba:8b:e7:14:d6:b6:45:4f:60:ec: +# 96:ae:c3:2f:02:4e:5d:9d:96:49:72:00:b2:ab:75:5c:0f:68: +# 5b:1d:65:c2:5f:33:0f:1e:0f:f0:3b:86:f5:b0:4e:bb:9c:f7: +# ea:25:05:dc:ad:a2:9b:4b:17:01:be:42:df:35:21:1d:ad:ab: +# ae:f4:bf:ae:1f:1b:d3:e2:3b:fc:b3:72:73:1c:9b:28:90:89: +# 13:3d:1d:c1:00:47:09:96:9a:38:1b:dd:b1:cf:0d:c2:b4:44: +# f3:96:95:ce:32:3a:8f:34:9c:e0:17:c7:5e:ce:ae:0d:db:87: +# 38:e5:3f:5b:fd:9b:19:e1:31:41:7a:70:aa:23:6b:01:e1:45: +# 4c:cd:94:ce:3b:9e:2d:e7:88:02:22:f4:6e:e8:c8:ec:d6:3c: +# f3:b9:b2:d7:77:7a:ac:7b + +[p11-kit-object-v1] +label: "Comodo AAA Services root" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvkCd9G7h6naHHE1FRI6+ +RsiDBp3BKv4YH47kAvrzq11QihYxC5oG0MVwIs1JLVRjzLZuaEYLU+rLTCTAvHJO +6vEVrvRUmhIKw3qyM2Di2olV8yJY897cz++DhqKMlE+faPKYkEaEJ8d2v+PMNSyL +XgdkZYLASLCokflhn3YgUKiRx2a163hiA1bwihoT6jGjHqCZ/Tj29icyWG8H9Wu4 ++xQrr7eqzNZjX3OM2gWZqDioyxd4NlGs6Z70eDqNzw/ZQuKYDKsvnw4B3u+fmUnx +Ld+sdE0bmLVHxeUp0fmQGMdinL6DxyZ7Poolx8DdneY1aBAgnY/Y3tLDhJwNXugv +yQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Comodo AAA Services root" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEb +MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow +GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmlj +YXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAwMFoXDTI4MTIzMTIzNTk1OVowezEL +MAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE +BwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMM +GEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEP +ADCCAQoCggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQua +BtDFcCLNSS1UY8y2bmhGC1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe +3M/vg4aijJRPn2jymJBGhCfHdr/jzDUsi14HZGWCwEiwqJH5YZ92IFCokcdmtet4 +YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszWY19zjNoFmag4qMsXeDZR +rOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjHYpy+g8cm +ez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQU +oBEKIz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF +MAMBAf8wewYDVR0fBHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20v +QUFBQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29t +b2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2VzLmNybDANBgkqhkiG9w0BAQUF +AAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm7l3sAg9g1o1Q +GE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz +Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2 +G9w84FoVxp7Z8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsi +l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3 +smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1 (0x1) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=GB, ST=Greater Manchester, L=Salford, O=Comodo CA Limited, CN=AAA Certificate Services +# Validity +# Not Before: Jan 1 00:00:00 2004 GMT +# Not After : Dec 31 23:59:59 2028 GMT +# Subject: C=GB, ST=Greater Manchester, L=Salford, O=Comodo CA Limited, CN=AAA Certificate Services +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:be:40:9d:f4:6e:e1:ea:76:87:1c:4d:45:44:8e: +# be:46:c8:83:06:9d:c1:2a:fe:18:1f:8e:e4:02:fa: +# f3:ab:5d:50:8a:16:31:0b:9a:06:d0:c5:70:22:cd: +# 49:2d:54:63:cc:b6:6e:68:46:0b:53:ea:cb:4c:24: +# c0:bc:72:4e:ea:f1:15:ae:f4:54:9a:12:0a:c3:7a: +# b2:33:60:e2:da:89:55:f3:22:58:f3:de:dc:cf:ef: +# 83:86:a2:8c:94:4f:9f:68:f2:98:90:46:84:27:c7: +# 76:bf:e3:cc:35:2c:8b:5e:07:64:65:82:c0:48:b0: +# a8:91:f9:61:9f:76:20:50:a8:91:c7:66:b5:eb:78: +# 62:03:56:f0:8a:1a:13:ea:31:a3:1e:a0:99:fd:38: +# f6:f6:27:32:58:6f:07:f5:6b:b8:fb:14:2b:af:b7: +# aa:cc:d6:63:5f:73:8c:da:05:99:a8:38:a8:cb:17: +# 78:36:51:ac:e9:9e:f4:78:3a:8d:cf:0f:d9:42:e2: +# 98:0c:ab:2f:9f:0e:01:de:ef:9f:99:49:f1:2d:df: +# ac:74:4d:1b:98:b5:47:c5:e5:29:d1:f9:90:18:c7: +# 62:9c:be:83:c7:26:7b:3e:8a:25:c7:c0:dd:9d:e6: +# 35:68:10:20:9d:8f:d8:de:d2:c3:84:9c:0d:5e:e8: +# 2f:c9 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# A0:11:0A:23:3E:96:F1:07:EC:E2:AF:29:EF:82:A5:7F:D0:30:A4:B4 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.comodoca.com/AAACertificateServices.crl +# +# Full Name: +# URI:http://crl.comodo.net/AAACertificateServices.crl +# +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 08:56:fc:02:f0:9b:e8:ff:a4:fa:d6:7b:c6:44:80:ce:4f:c4: +# c5:f6:00:58:cc:a6:b6:bc:14:49:68:04:76:e8:e6:ee:5d:ec: +# 02:0f:60:d6:8d:50:18:4f:26:4e:01:e3:e6:b0:a5:ee:bf:bc: +# 74:54:41:bf:fd:fc:12:b8:c7:4f:5a:f4:89:60:05:7f:60:b7: +# 05:4a:f3:f6:f1:c2:bf:c4:b9:74:86:b6:2d:7d:6b:cc:d2:f3: +# 46:dd:2f:c6:e0:6a:c3:c3:34:03:2c:7d:96:dd:5a:c2:0e:a7: +# 0a:99:c1:05:8b:ab:0c:2f:f3:5c:3a:cf:6c:37:55:09:87:de: +# 53:40:6c:58:ef:fc:b6:ab:65:6e:04:f6:1b:dc:3c:e0:5a:15: +# c6:9e:d9:f1:59:48:30:21:65:03:6c:ec:e9:21:73:ec:9b:03: +# a1:e0:37:ad:a0:15:18:8f:fa:ba:02:ce:a7:2c:a9:10:13:2c: +# d4:e5:08:26:ab:22:97:60:f8:90:5e:74:d4:a2:9a:53:bd:f2: +# a9:68:e0:a2:6e:c2:d7:6c:b1:a3:0f:9e:bf:eb:68:e7:56:f2: +# ae:f2:e3:2b:38:3a:09:81:b5:6b:85:d7:be:2d:ed:3f:1a:b7: +# b2:63:e2:f5:62:2c:82:d4:6a:00:41:50:f1:39:83:9f:95:e9: +# 36:96:98:6e + +[p11-kit-object-v1] +label: "COMODO Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY +06m/weaKXTuH+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7 +WWaXUF601CxwRM/aN5VCaTwwxHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7eu +NJH+1GImGEaaP+vB+fGQV+useg2L23IwambV4EajcNxo2f8ESIl33rXp+2dtQem8 +Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA1KGzqSX+DT+nHbrT +UcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVIrLsm +9wIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "COMODO Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCB +gTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G +A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNV +BAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjEyMDEwMDAw +MDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3Jl +YXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01P +RE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0 +aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3 +UcEbVASY06m/weaKXTuH+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI +2GqGd0S7WWaXUF601CxwRM/aN5VCaTwwxHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8 +Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV4EajcNxo2f8ESIl33rXp ++2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA1KGzqSX+ +DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5O +nKVIrLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW +/zAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6g +PKA6hjhodHRwOi8vY3JsLmNvbW9kb2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9u +QXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOCAQEAPpiem/Yb6dc5t3iuHXIY +SdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CPOGEIqB6BCsAv +IC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/ +RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4 +zJVSk/BwJVmcIGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5dd +BA6+C4OmF4O5MBKgxTMVBbkN+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IB +ZQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 4e:81:2d:8a:82:65:e0:0b:02:ee:3e:35:02:46:e5:3d +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO Certification Authority +# Validity +# Not Before: Dec 1 00:00:00 2006 GMT +# Not After : Dec 31 23:59:59 2029 GMT +# Subject: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d0:40:8b:8b:72:e3:91:1b:f7:51:c1:1b:54:04: +# 98:d3:a9:bf:c1:e6:8a:5d:3b:87:fb:bb:88:ce:0d: +# e3:2f:3f:06:96:f0:a2:29:50:99:ae:db:3b:a1:57: +# b0:74:51:71:cd:ed:42:91:4d:41:fe:a9:c8:d8:6a: +# 86:77:44:bb:59:66:97:50:5e:b4:d4:2c:70:44:cf: +# da:37:95:42:69:3c:30:c4:71:b3:52:f0:21:4d:a1: +# d8:ba:39:7c:1c:9e:a3:24:9d:f2:83:16:98:aa:16: +# 7c:43:9b:15:5b:b7:ae:34:91:fe:d4:62:26:18:46: +# 9a:3f:eb:c1:f9:f1:90:57:eb:ac:7a:0d:8b:db:72: +# 30:6a:66:d5:e0:46:a3:70:dc:68:d9:ff:04:48:89: +# 77:de:b5:e9:fb:67:6d:41:e9:bc:39:bd:32:d9:62: +# 02:f1:b1:a8:3d:6e:37:9c:e2:2f:e2:d3:a2:26:8b: +# c6:b8:55:43:88:e1:23:3e:a5:d2:24:39:6a:47:ab: +# 00:d4:a1:b3:a9:25:fe:0d:3f:a7:1d:ba:d3:51:c1: +# 0b:a4:da:ac:38:ef:55:50:24:05:65:46:93:34:4f: +# 2d:8d:ad:c6:d4:21:19:d2:8e:ca:05:61:71:07:73: +# 47:e5:8a:19:12:bd:04:4d:ce:4e:9c:a5:48:ac:bb: +# 26:f7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 0B:58:E5:8B:C6:4C:15:37:A4:40:A9:30:A9:21:BE:47:36:5A:56:FF +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.comodoca.com/COMODOCertificationAuthority.crl +# +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 3e:98:9e:9b:f6:1b:e9:d7:39:b7:78:ae:1d:72:18:49:d3:87: +# e4:43:82:eb:3f:c9:aa:f5:a8:b5:ef:55:7c:21:52:65:f9:d5: +# 0d:e1:6c:f4:3e:8c:93:73:91:2e:02:c4:4e:07:71:6f:c0:8f: +# 38:61:08:a8:1e:81:0a:c0:2f:20:2f:41:8b:91:dc:48:45:bc: +# f1:c6:de:ba:76:6b:33:c8:00:2d:31:46:4c:ed:e7:9d:cf:88: +# 94:ff:33:c0:56:e8:24:86:26:b8:d8:38:38:df:2a:6b:dd:12: +# cc:c7:3f:47:17:4c:a2:c2:06:96:09:d6:db:fe:3f:3c:46:41: +# df:58:e2:56:0f:3c:3b:c1:1c:93:35:d9:38:52:ac:ee:c8:ec: +# 2e:30:4e:94:35:b4:24:1f:4b:78:69:da:f2:02:38:cc:95:52: +# 93:f0:70:25:59:9c:20:67:c4:ee:f9:8b:57:61:f4:92:76:7d: +# 3f:84:8d:55:b7:e8:e5:ac:d5:f1:f5:19:56:a6:5a:fb:90:1c: +# af:93:eb:e5:1c:d4:67:97:5d:04:0e:be:0b:83:a6:17:83:b9: +# 30:12:a0:c5:33:15:05:b9:0d:fb:c7:05:76:e3:d8:4a:8d:fc: +# 34:17:a3:c6:21:28:be:30:45:31:1e:c7:78:be:58:61:38:ac: +# 3b:e2:01:65 + +[p11-kit-object-v1] +label: "COMODO ECC Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEA0d7L3XJghWF+3XkkRbUq2KZ9T5SCwbO +QQB/l+EKJDwdAQTuPdKNCZcM4HXk+vt3iir1A2BLNosWIxatCXH0SvQoULT+iBxu +P2wvLwlZW6VbCzOZ4sM9iflqLO+y0wbp +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "COMODO ECC Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTEL +MAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE +BxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMT +IkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDgwMzA2MDAw +MDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdy +ZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09N +T0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSR +FtSrYpn1PlILBs5BAH+X4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0J +cfRK9ChQtP6IHG4/bC8vCVlbpVsLM5niwz2J+Wos77LTBumjQjBAMB0GA1UdDgQW +BBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ +BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VGFAkK+qDm +fQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdv +GDeAU/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 1f:47:af:aa:62:00:70:50:54:4c:01:9e:9b:63:99:2a +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO ECC Certification Authority +# Validity +# Not Before: Mar 6 00:00:00 2008 GMT +# Not After : Jan 18 23:59:59 2038 GMT +# Subject: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO ECC Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:03:47:7b:2f:75:c9:82:15:85:fb:75:e4:91:16: +# d4:ab:62:99:f5:3e:52:0b:06:ce:41:00:7f:97:e1: +# 0a:24:3c:1d:01:04:ee:3d:d2:8d:09:97:0c:e0:75: +# e4:fa:fb:77:8a:2a:f5:03:60:4b:36:8b:16:23:16: +# ad:09:71:f4:4a:f4:28:50:b4:fe:88:1c:6e:3f:6c: +# 2f:2f:09:59:5b:a5:5b:0b:33:99:e2:c3:3d:89:f9: +# 6a:2c:ef:b2:d3:06:e9 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 75:71:A7:19:48:19:BC:9D:9D:EA:41:47:DF:94:C4:48:77:99:D3:79 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:ef:03:5b:7a:ac:b7:78:0a:72:b7:88:df:ff: +# b5:46:14:09:0a:fa:a0:e6:7d:08:c6:1a:87:bd:18:a8:73:bd: +# 26:ca:60:0c:9d:ce:99:9f:cf:5c:0f:30:e1:be:14:31:ea:02: +# 30:14:f4:93:3c:49:a7:33:7a:90:46:47:b3:63:7d:13:9b:4e: +# b7:6f:18:37:80:53:fe:dd:20:e0:35:9a:36:d1:c7:01:b9:e6: +# dc:dd:f3:ff:1d:2c:3a:16:57:d9:92:39:d6 + +[p11-kit-object-v1] +label: "COMODO RSA Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAkehUktIKVrGsDSTdxc9E +Z3SZKzejfSNwAHG8U9/E+ioSj0t/EFa9n3Byt2F/yUsPF6c947AEYe7/EZfH9IY+ +Cvo+XPmT5jR62RRr55yzhaCCenavcZDX7P0N+pxs+t+wgvQUfvm+xKYvT3+Zf7X8 +Z0NyvQwA1onrayzT7Y+YHBSrfuXjbvzYqOSSJNpDa2K4Vf3qwbxstovzDo2a5Jts +aZn4eEgwRdWt4Q08RWD8MpZRJ7xnw8outmvqRsfHIKCxH2XeSAi6pE6p8oNGN4Tr +6MyBSENnTnIqm1y9TBsoilwie7SrmNnu4FGDwwlGTm0+mfqVF9p8M1dBPI1R7Qu2 +XK8sYxrfV8g/vOldxJuvRZnio1oktLqpVj3Pb6r/SVi+8Kj/9Lit6Tf7urj0Czr5 +6ENCHonYhMsT8dm74YlguIwoVqwUHZwK53Hrzw7dPamWoUi9PPevtQ0iTMARgexW +O/bTouJbt7IEIlKVgJNp6I5MZfGRAy1wdALqi2cVKWlSArvX31BqVUa/oKMoYX9w +0MOiqiwhqkfOKJwGRXa/ghgntNWutMtQ5mv0TIZxMOmm3xaG4Nj/QN370EKIf6Mz +Oi5cHkERgWPOGHFrK+ymircxXDpqR+DDeVnWIBqv8mqYqnK8V0rSS527EPywTEHl +7R09XiidnMy/s1Hap0flhFMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "COMODO RSA Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCB +hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G +A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV +BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMTE5 +MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgT +EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR +Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR +6FSS0gpWsawNJN3Fz0RndJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8X +pz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZFGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC +9BR++b7Epi9Pf5l/tfxnQ3K9DADWietrLNPtj5gcFKt+5eNu/Nio5JIk2kNrYrhV +/erBvGy2i/MOjZrkm2xpmfh4SDBF1a3hDTxFYPwyllEnvGfDyi62a+pGx8cgoLEf +Zd5ICLqkTqnyg0Y3hOvozIFIQ2dOciqbXL1MGyiKXCJ7tKuY2e7gUYPDCUZObT6Z ++pUX2nwzV0E8jVHtC7ZcryxjGt9XyD+86V3Em69FmeKjWiS0uqlWPc9vqv9JWL7w +qP/0uK3pN/u6uPQLOvnoQ0IeidiEyxPx2bvhiWC4jChWrBQdnArncevPDt09qZah +SL0896+1DSJMwBGB7FY79tOi4lu3sgQiUpWAk2nojkxl8ZEDLXB0AuqLZxUpaVIC +u9ffUGpVRr+goyhhf3DQw6KqLCGqR84onAZFdr+CGCe01a60y1Dma/RMhnEw6abf +Fobg2P9A3fvQQoh/ozM6LlweQRGBY84YcWsr7KaKtzFcOmpH4MN5WdYgGq/yapiq +crxXStJLnbsQ/LBMQeXtHT1eKJ2czL+zUdqnR+WEUwIDAQABo0IwQDAdBgNVHQ4E +FgQUu69+Aj36pvE8hI6t7jiY7NkyMtQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB +/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAArx1UaEt65Ru2yyTUEUAJNMnMvl +wFTPoCWOAvn9sKIN9SCYPBMtrFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM +4dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+nq6PK7o9mfjYcwlYRm6mnPTXJ9OV +2jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSgtZx8jb8uk2Intzna +FxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwWsRqZ +CuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiK +boHGhfKppC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmcke +jkk9u+UJueBPSZI9FoJAzMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yL +S0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHqZJx64SIDqZxubw5lT2yHh17zbqD5daWb +QOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk527RH89elWsn2/x20Kk4yl +0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7ILaZRfyHB +NVOFBkpdn627G190 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 4c:aa:f9:ca:db:63:6f:e0:1f:f7:4e:d8:5b:03:86:9d +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority +# Validity +# Not Before: Jan 19 00:00:00 2010 GMT +# Not After : Jan 18 23:59:59 2038 GMT +# Subject: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:91:e8:54:92:d2:0a:56:b1:ac:0d:24:dd:c5:cf: +# 44:67:74:99:2b:37:a3:7d:23:70:00:71:bc:53:df: +# c4:fa:2a:12:8f:4b:7f:10:56:bd:9f:70:72:b7:61: +# 7f:c9:4b:0f:17:a7:3d:e3:b0:04:61:ee:ff:11:97: +# c7:f4:86:3e:0a:fa:3e:5c:f9:93:e6:34:7a:d9:14: +# 6b:e7:9c:b3:85:a0:82:7a:76:af:71:90:d7:ec:fd: +# 0d:fa:9c:6c:fa:df:b0:82:f4:14:7e:f9:be:c4:a6: +# 2f:4f:7f:99:7f:b5:fc:67:43:72:bd:0c:00:d6:89: +# eb:6b:2c:d3:ed:8f:98:1c:14:ab:7e:e5:e3:6e:fc: +# d8:a8:e4:92:24:da:43:6b:62:b8:55:fd:ea:c1:bc: +# 6c:b6:8b:f3:0e:8d:9a:e4:9b:6c:69:99:f8:78:48: +# 30:45:d5:ad:e1:0d:3c:45:60:fc:32:96:51:27:bc: +# 67:c3:ca:2e:b6:6b:ea:46:c7:c7:20:a0:b1:1f:65: +# de:48:08:ba:a4:4e:a9:f2:83:46:37:84:eb:e8:cc: +# 81:48:43:67:4e:72:2a:9b:5c:bd:4c:1b:28:8a:5c: +# 22:7b:b4:ab:98:d9:ee:e0:51:83:c3:09:46:4e:6d: +# 3e:99:fa:95:17:da:7c:33:57:41:3c:8d:51:ed:0b: +# b6:5c:af:2c:63:1a:df:57:c8:3f:bc:e9:5d:c4:9b: +# af:45:99:e2:a3:5a:24:b4:ba:a9:56:3d:cf:6f:aa: +# ff:49:58:be:f0:a8:ff:f4:b8:ad:e9:37:fb:ba:b8: +# f4:0b:3a:f9:e8:43:42:1e:89:d8:84:cb:13:f1:d9: +# bb:e1:89:60:b8:8c:28:56:ac:14:1d:9c:0a:e7:71: +# eb:cf:0e:dd:3d:a9:96:a1:48:bd:3c:f7:af:b5:0d: +# 22:4c:c0:11:81:ec:56:3b:f6:d3:a2:e2:5b:b7:b2: +# 04:22:52:95:80:93:69:e8:8e:4c:65:f1:91:03:2d: +# 70:74:02:ea:8b:67:15:29:69:52:02:bb:d7:df:50: +# 6a:55:46:bf:a0:a3:28:61:7f:70:d0:c3:a2:aa:2c: +# 21:aa:47:ce:28:9c:06:45:76:bf:82:18:27:b4:d5: +# ae:b4:cb:50:e6:6b:f4:4c:86:71:30:e9:a6:df:16: +# 86:e0:d8:ff:40:dd:fb:d0:42:88:7f:a3:33:3a:2e: +# 5c:1e:41:11:81:63:ce:18:71:6b:2b:ec:a6:8a:b7: +# 31:5c:3a:6a:47:e0:c3:79:59:d6:20:1a:af:f2:6a: +# 98:aa:72:bc:57:4a:d2:4b:9d:bb:10:fc:b0:4c:41: +# e5:ed:1d:3d:5e:28:9d:9c:cc:bf:b3:51:da:a7:47: +# e5:84:53 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 0a:f1:d5:46:84:b7:ae:51:bb:6c:b2:4d:41:14:00:93:4c:9c: +# cb:e5:c0:54:cf:a0:25:8e:02:f9:fd:b0:a2:0d:f5:20:98:3c: +# 13:2d:ac:56:a2:b0:d6:7e:11:92:e9:2e:ba:9e:2e:9a:72:b1: +# bd:19:44:6c:61:35:a2:9a:b4:16:12:69:5a:8c:e1:d7:3e:a4: +# 1a:e8:2f:03:f4:ae:61:1d:10:1b:2a:a4:8b:7a:c5:fe:05:a6: +# e1:c0:d6:c8:fe:9e:ae:8f:2b:ba:3d:99:f8:d8:73:09:58:46: +# 6e:a6:9c:f4:d7:27:d3:95:da:37:83:72:1c:d3:73:e0:a2:47: +# 99:03:38:5d:d5:49:79:00:29:1c:c7:ec:9b:20:1c:07:24:69: +# 57:78:b2:39:fc:3a:84:a0:b5:9c:7c:8d:bf:2e:93:62:27:b7: +# 39:da:17:18:ae:bd:3c:09:68:ff:84:9b:3c:d5:d6:0b:03:e3: +# 57:9e:14:f7:d1:eb:4f:c8:bd:87:23:b7:b6:49:43:79:85:5c: +# ba:eb:92:0b:a1:c6:e8:68:a8:4c:16:b1:1a:99:0a:e8:53:2c: +# 92:bb:a1:09:18:75:0c:65:a8:7b:cb:23:b7:1a:c2:28:85:c3: +# 1b:ff:d0:2b:62:ef:a4:7b:09:91:98:67:8c:14:01:cd:68:06: +# 6a:63:21:75:03:80:88:8a:6e:81:c6:85:f2:a9:a4:2d:e7:f4: +# a5:24:10:47:83:ca:cd:f4:8d:79:58:b1:06:9b:e7:1a:2a:d9: +# 9d:01:d7:94:7d:ed:03:4a:ca:f0:db:e8:a9:01:3e:f5:56:99: +# c9:1e:8e:49:3d:bb:e5:09:b9:e0:4f:49:92:3d:16:82:40:cc: +# cc:59:c6:e6:3a:ed:12:2e:69:3c:6c:95:b1:fd:aa:1d:7b:7f: +# 86:be:1e:0e:32:46:fb:fb:13:8f:75:7f:4c:8b:4b:46:63:fe: +# 00:34:40:70:c1:c3:b9:a1:dd:a6:70:e2:04:b3:41:bc:e9:80: +# 91:ea:64:9c:7a:e1:22:03:a9:9c:6e:6f:0e:65:4f:6c:87:87: +# 5e:f3:6e:a0:f9:75:a5:9b:40:e8:53:b2:27:9d:4a:b9:c0:77: +# 21:8d:ff:87:f2:de:bc:8c:ef:17:df:b7:49:0b:d1:f2:6e:30: +# 0b:1a:0e:4e:76:ed:11:fc:f5:e9:56:b2:7d:bf:c7:6d:0a:93: +# 8c:a5:d0:c0:b6:1d:be:3a:4e:94:a2:d7:6e:6c:0b:c2:8a:7c: +# fa:20:f3:c4:e4:e5:cd:0d:a8:cb:91:92:b1:7c:85:ec:b5:14: +# 69:66:0e:82:e7:cd:ce:c8:2d:a6:51:7f:21:c1:35:53:85:06: +# 4a:5d:9f:ad:bb:1b:5f:74 + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArQ4VzuRDgFyxh/O3YPlx +EqWu3CaUiKr0zvUgOShYYAz4gNqpFZUyYTy1sSiEiorcnwoMgxd6j5Csiud5U1wx +hCr2D5gyNnbM3t08qKLvavsh8lJh358g1x/isdn+GGTSEltf+VgYNbxHzaE2+Wt/ +1LA4PsEbw4wz2dgvGP4oD7Ong9bDbkTAYTWWFv5ZnIt2bdfxoksNK/8LctqeYNCO +kDXGeFWHIKHP5W0KyEl8MZgzbCLph9AyWqK6E4IR7TkXnZk6cqHm+qTZ1Rcxda6F +fSKuPwFGhvYoecix2uRXF8R+HA6wtJKmVrO9spftqqfwt8WoP5UW0P+hlusIXxh3 +TwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBl +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv +b3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzExMTEwMDAwMDAwWjBlMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl +cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7c +JpSIqvTO9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYP +mDI2dsze3Tyoou9q+yHyUmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+ +wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4 +VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpyoeb6pNnVFzF1roV9Iq4/ +AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whfGHdPAgMB +AAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW +BBRF66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYun +pyGd823IDzANBgkqhkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRC +dWKuh+vy1dneVrOfzM4UKLkNl2BcEkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTf +fwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38FnSbNd67IJKusm7Xi+fT8r87cm +NW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i8b5QZ7dsvfPx +H2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe ++o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0c:e7:e0:e5:17:d8:46:fe:8f:e5:60:fc:1b:f0:30:39 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root CA +# Validity +# Not Before: Nov 10 00:00:00 2006 GMT +# Not After : Nov 10 00:00:00 2031 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ad:0e:15:ce:e4:43:80:5c:b1:87:f3:b7:60:f9: +# 71:12:a5:ae:dc:26:94:88:aa:f4:ce:f5:20:39:28: +# 58:60:0c:f8:80:da:a9:15:95:32:61:3c:b5:b1:28: +# 84:8a:8a:dc:9f:0a:0c:83:17:7a:8f:90:ac:8a:e7: +# 79:53:5c:31:84:2a:f6:0f:98:32:36:76:cc:de:dd: +# 3c:a8:a2:ef:6a:fb:21:f2:52:61:df:9f:20:d7:1f: +# e2:b1:d9:fe:18:64:d2:12:5b:5f:f9:58:18:35:bc: +# 47:cd:a1:36:f9:6b:7f:d4:b0:38:3e:c1:1b:c3:8c: +# 33:d9:d8:2f:18:fe:28:0f:b3:a7:83:d6:c3:6e:44: +# c0:61:35:96:16:fe:59:9c:8b:76:6d:d7:f1:a2:4b: +# 0d:2b:ff:0b:72:da:9e:60:d0:8e:90:35:c6:78:55: +# 87:20:a1:cf:e5:6d:0a:c8:49:7c:31:98:33:6c:22: +# e9:87:d0:32:5a:a2:ba:13:82:11:ed:39:17:9d:99: +# 3a:72:a1:e6:fa:a4:d9:d5:17:31:75:ae:85:7d:22: +# ae:3f:01:46:86:f6:28:79:c8:b1:da:e4:57:17:c4: +# 7e:1c:0e:b0:b4:92:a6:56:b3:bd:b2:97:ed:aa:a7: +# f0:b7:c5:a8:3f:95:16:d0:ff:a1:96:eb:08:5f:18: +# 77:4f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 45:EB:A2:AF:F4:92:CB:82:31:2D:51:8B:A7:A7:21:9D:F3:6D:C8:0F +# X509v3 Authority Key Identifier: +# 45:EB:A2:AF:F4:92:CB:82:31:2D:51:8B:A7:A7:21:9D:F3:6D:C8:0F +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# a2:0e:bc:df:e2:ed:f0:e3:72:73:7a:64:94:bf:f7:72:66:d8: +# 32:e4:42:75:62:ae:87:eb:f2:d5:d9:de:56:b3:9f:cc:ce:14: +# 28:b9:0d:97:60:5c:12:4c:58:e4:d3:3d:83:49:45:58:97:35: +# 69:1a:a8:47:ea:56:c6:79:ab:12:d8:67:81:84:df:7f:09:3c: +# 94:e6:b8:26:2c:20:bd:3d:b3:28:89:f7:5f:ff:22:e2:97:84: +# 1f:e9:65:ef:87:e0:df:c1:67:49:b3:5d:eb:b2:09:2a:eb:26: +# ed:78:be:7d:3f:2b:f3:b7:26:35:6d:5f:89:01:b6:49:5b:9f: +# 01:05:9b:ab:3d:25:c1:cc:b6:7f:c2:f1:6f:86:c6:fa:64:68: +# eb:81:2d:94:eb:42:b7:fa:8c:1e:dd:62:f1:be:50:67:b7:6c: +# bd:f3:f1:1f:6b:0c:36:07:16:7f:37:7c:a9:5b:6d:7a:f1:12: +# 46:60:83:d7:27:04:be:4b:ce:97:be:c3:67:2a:68:11:df:80: +# e7:0c:33:66:bf:13:0d:14:6e:f3:7f:1f:63:10:1e:fa:8d:1b: +# 25:6d:6c:8f:a5:b7:61:01:b1:d2:a3:26:a1:10:71:9d:ad:e2: +# c3:f9:c3:99:51:b7:2b:07:08:ce:2e:e6:50:b2:a7:fa:0a:45: +# 2f:a2:f0:f2 + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ecoL1I/NnJJiJM08/hq +HjFUgJ+tVEG1R9+WqNSvgC25Cs91/YmlfST64yIMK7yVFwszvxlNQQaQAL0MTRD+ +B7XnHG4iVTFll73TF9IeYvPb6mxQjD+EDJbPt8sD4MptoRRMG4nd7QCwUnyvkWyx +OBPR6RIIwACwHCsR2ndwNpuuznmH3IJw5gl0cFVpr6Non7/dtnmz8p1wKVX0q/+V +YfPJQG8d0b6Tu9OIKrudv3JaVnE7P9Tz0Qr+KO+j7tmZrwPTj2C38pKhsb2JiR8w +zcOmLmIzrhYCd0Ra54EKPKdELnm4PwS8XKCH4RuvUY7N7Cz6+P5t8Dp8qovkZ5Ux +jQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBl +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv +b3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl +cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSA +n61UQbVH35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4Htecc +biJVMWWXvdMX0h5i89vqbFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9Hp +EgjAALAcKxHad3A2m67OeYfcgnDmCXRwVWmvo2ifv922ebPynXApVfSr/5Vh88lA +bx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OPYLfykqGxvYmJHzDNw6Yu +YjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+RnlTGNAgMB +AAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQW +BBTOw0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPI +QW5pJ6d1Ee88hjZv0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I +0jJmwYrA8y8678Dj1JGG0VDjA9tzd29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4Gni +lmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAWhsI6yLETcDbYz+70CjTVW0z9 +B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0MjomZmWzwPDCv +ON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo +IhNzbM8m9Yop5w== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0b:93:1c:3a:d6:39:67:ea:67:23:bf:c3:af:9a:f4:4b +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root G2 +# Validity +# Not Before: Aug 1 12:00:00 2013 GMT +# Not After : Jan 15 12:00:00 2038 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d9:e7:28:2f:52:3f:36:72:49:88:93:34:f3:f8: +# 6a:1e:31:54:80:9f:ad:54:41:b5:47:df:96:a8:d4: +# af:80:2d:b9:0a:cf:75:fd:89:a5:7d:24:fa:e3:22: +# 0c:2b:bc:95:17:0b:33:bf:19:4d:41:06:90:00:bd: +# 0c:4d:10:fe:07:b5:e7:1c:6e:22:55:31:65:97:bd: +# d3:17:d2:1e:62:f3:db:ea:6c:50:8c:3f:84:0c:96: +# cf:b7:cb:03:e0:ca:6d:a1:14:4c:1b:89:dd:ed:00: +# b0:52:7c:af:91:6c:b1:38:13:d1:e9:12:08:c0:00: +# b0:1c:2b:11:da:77:70:36:9b:ae:ce:79:87:dc:82: +# 70:e6:09:74:70:55:69:af:a3:68:9f:bf:dd:b6:79: +# b3:f2:9d:70:29:55:f4:ab:ff:95:61:f3:c9:40:6f: +# 1d:d1:be:93:bb:d3:88:2a:bb:9d:bf:72:5a:56:71: +# 3b:3f:d4:f3:d1:0a:fe:28:ef:a3:ee:d9:99:af:03: +# d3:8f:60:b7:f2:92:a1:b1:bd:89:89:1f:30:cd:c3: +# a6:2e:62:33:ae:16:02:77:44:5a:e7:81:0a:3c:a7: +# 44:2e:79:b8:3f:04:bc:5c:a0:87:e1:1b:af:51:8e: +# cd:ec:2c:fa:f8:fe:6d:f0:3a:7c:aa:8b:e4:67:95: +# 31:8d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# CE:C3:4A:B9:99:55:F2:B8:DB:60:BF:A9:7E:BD:56:B5:97:36:A7:D6 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# ca:a5:55:8c:e3:c8:41:6e:69:27:a7:75:11:ef:3c:86:36:6f: +# d2:9d:c6:78:38:1d:69:96:a2:92:69:2e:38:6c:9b:7d:04:d4: +# 89:a5:b1:31:37:8a:c9:21:cc:ab:6c:cd:8b:1c:9a:d6:bf:48: +# d2:32:66:c1:8a:c0:f3:2f:3a:ef:c0:e3:d4:91:86:d1:50:e3: +# 03:db:73:77:6f:4a:39:53:ed:de:26:c7:b5:7d:af:2b:42:d1: +# 75:62:e3:4a:2b:02:c7:50:4b:e0:69:e2:96:6c:0e:44:66:10: +# 44:8f:ad:05:eb:f8:79:ac:a6:1b:e8:37:34:9d:53:c9:61:aa: +# a2:52:af:4a:70:16:86:c2:3a:c8:b1:13:70:36:d8:cf:ee:f4: +# 0a:34:d5:5b:4c:fd:07:9c:a2:ba:d9:01:72:5c:f3:4d:c1:dd: +# 0e:b1:1c:0d:c4:63:be:ad:f4:14:fb:89:ec:a2:41:0e:4c:cc: +# c8:57:40:d0:6e:03:aa:cd:0c:8e:89:99:99:6c:f0:3c:30:af: +# 38:df:6f:bc:a3:be:29:20:27:ab:74:ff:13:22:78:de:97:52: +# 55:1e:83:b5:54:20:03:ee:ae:c0:4f:56:de:37:cc:c3:7f:aa: +# 04:27:bb:d3:77:b8:62:db:17:7c:9c:28:22:13:73:6c:cf:26: +# f5:8a:29:e7 + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEGee8rERl7c24P1j7jbFXqUQtBRXy7wv/ +EHSftWJSX2Z+H+XcG0V5C8zGUwqdjV0C2alZ3gJa9pUqDo04SopJxrzGAzgHX1Xa +fglu4n9e0EUgD1l2ENagJPAt3jbybCk5 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Assured ID Root G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQsw +CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu +ZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3Qg +RzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu +Y29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJf +Zn4f5dwbRXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17Q +RSAPWXYQ1qAk8C3eNvJsKTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/ +BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgFUaFNN6KDec6NHSrkhDAKBggqhkjOPQQD +AwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5FyYZ5eEJJZVrmDxxDnOOlY +JjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy1vUhZscv +6pZjamVFkpUBtA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0b:a1:5a:fa:1d:df:a0:b5:49:44:af:cd:24:a0:6c:ec +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root G3 +# Validity +# Not Before: Aug 1 12:00:00 2013 GMT +# Not After : Jan 15 12:00:00 2038 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Assured ID Root G3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:19:e7:bc:ac:44:65:ed:cd:b8:3f:58:fb:8d:b1: +# 57:a9:44:2d:05:15:f2:ef:0b:ff:10:74:9f:b5:62: +# 52:5f:66:7e:1f:e5:dc:1b:45:79:0b:cc:c6:53:0a: +# 9d:8d:5d:02:d9:a9:59:de:02:5a:f6:95:2a:0e:8d: +# 38:4a:8a:49:c6:bc:c6:03:38:07:5f:55:da:7e:09: +# 6e:e2:7f:5e:d0:45:20:0f:59:76:10:d6:a0:24:f0: +# 2d:de:36:f2:6c:29:39 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# CB:D0:BD:A9:E1:98:05:51:A1:4D:37:A2:83:79:CE:8D:1D:2A:E4:84 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:25:a4:81:45:02:6b:12:4b:75:74:4f:c8:23:e3: +# 70:f2:75:72:de:7c:89:f0:cf:91:72:61:9e:5e:10:92:59:56: +# b9:83:c7:10:e7:38:e9:58:26:36:7d:d5:e4:34:86:39:02:30: +# 7c:36:53:f0:30:e5:62:63:3a:99:e2:b6:a3:3b:9b:34:fa:1e: +# da:10:92:71:5e:91:13:a7:dd:a4:6e:92:cc:32:d6:f5:21:66: +# c7:2f:ea:96:63:6a:65:45:92:95:01:b4 + +[p11-kit-object-v1] +label: "DigiCert Global Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKP +C3eQyaKl7hLOllsBCSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtx +RuLWZscFs3YnFo97nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmF +aG5cIzJLv07A6Fpt43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvU +X7Q6hL+hqkpMfT7PT19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y7vrT +C0LUq7dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOv +JwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Global Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBh +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD +QTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAwMDAwMDBaMGExCzAJBgNVBAYTAlVT +MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j +b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkqhkiG +9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsB +CSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97 +nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt +43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7P +T19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y7vrTC0LUq7dBMtoM1O/4 +gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQABo2MwYTAO +BgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbR +TLtm8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUw +DQYJKoZIhvcNAQEFBQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/Esr +hMAtudXH/vTBH1jLuG2cenTnmCmrEbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg +06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF +PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls +YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk +CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 08:3b:e0:56:90:42:46:b1:a1:75:6a:c9:59:91:c7:4a +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root CA +# Validity +# Not Before: Nov 10 00:00:00 2006 GMT +# Not After : Nov 10 00:00:00 2031 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:e2:3b:e1:11:72:de:a8:a4:d3:a3:57:aa:50:a2: +# 8f:0b:77:90:c9:a2:a5:ee:12:ce:96:5b:01:09:20: +# cc:01:93:a7:4e:30:b7:53:f7:43:c4:69:00:57:9d: +# e2:8d:22:dd:87:06:40:00:81:09:ce:ce:1b:83:bf: +# df:cd:3b:71:46:e2:d6:66:c7:05:b3:76:27:16:8f: +# 7b:9e:1e:95:7d:ee:b7:48:a3:08:da:d6:af:7a:0c: +# 39:06:65:7f:4a:5d:1f:bc:17:f8:ab:be:ee:28:d7: +# 74:7f:7a:78:99:59:85:68:6e:5c:23:32:4b:bf:4e: +# c0:e8:5a:6d:e3:70:bf:77:10:bf:fc:01:f6:85:d9: +# a8:44:10:58:32:a9:75:18:d5:d1:a2:be:47:e2:27: +# 6a:f4:9a:33:f8:49:08:60:8b:d4:5f:b4:3a:84:bf: +# a1:aa:4a:4c:7d:3e:cf:4f:5f:6c:76:5e:a0:4b:37: +# 91:9e:dc:22:e6:6d:ce:14:1a:8e:6a:cb:fe:cd:b3: +# 14:64:17:c7:5b:29:9e:32:bf:f2:ee:fa:d3:0b:42: +# d4:ab:b7:41:32:da:0c:d4:ef:f8:81:d5:bb:8d:58: +# 3f:b5:1b:e8:49:28:a2:70:da:31:04:dd:f7:b2:16: +# f2:4c:0a:4e:07:a8:ed:4a:3d:5e:b5:7f:a3:90:c3: +# af:27 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 03:DE:50:35:56:D1:4C:BB:66:F0:A3:E2:1B:1B:C3:97:B2:3D:D1:55 +# X509v3 Authority Key Identifier: +# 03:DE:50:35:56:D1:4C:BB:66:F0:A3:E2:1B:1B:C3:97:B2:3D:D1:55 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# cb:9c:37:aa:48:13:12:0a:fa:dd:44:9c:4f:52:b0:f4:df:ae: +# 04:f5:79:79:08:a3:24:18:fc:4b:2b:84:c0:2d:b9:d5:c7:fe: +# f4:c1:1f:58:cb:b8:6d:9c:7a:74:e7:98:29:ab:11:b5:e3:70: +# a0:a1:cd:4c:88:99:93:8c:91:70:e2:ab:0f:1c:be:93:a9:ff: +# 63:d5:e4:07:60:d3:a3:bf:9d:5b:09:f1:d5:8e:e3:53:f4:8e: +# 63:fa:3f:a7:db:b4:66:df:62:66:d6:d1:6e:41:8d:f2:2d:b5: +# ea:77:4a:9f:9d:58:e2:2b:59:c0:40:23:ed:2d:28:82:45:3e: +# 79:54:92:26:98:e0:80:48:a8:37:ef:f0:d6:79:60:16:de:ac: +# e8:0e:cd:6e:ac:44:17:38:2f:49:da:e1:45:3e:2a:b9:36:53: +# cf:3a:50:06:f7:2e:e8:c4:57:49:6c:61:21:18:d5:04:ad:78: +# 3c:2c:3a:80:6b:a7:eb:af:15:14:e9:d8:89:c1:b9:38:6c:e2: +# 91:6c:8a:ff:64:b9:77:25:57:30:c0:1b:24:a3:e1:dc:e9:df: +# 47:7c:b5:b4:24:08:05:30:ec:2d:bd:0b:bf:45:bf:50:b9:a9: +# f3:eb:98:01:12:ad:c8:88:c6:98:34:5f:8d:0a:3c:c6:e9:d5: +# 95:95:6d:de + +[p11-kit-object-v1] +label: "DigiCert Global Root G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/ +RrohCgiN9RlUyfuI2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWs +ULecYxpsMNzaHxmx1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6Ztr +AGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd13 +4/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGP +Hgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4Mp +hQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Global Root G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH +MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT +MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j +b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG +9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI +2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx +1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ +q2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz +tCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ +vIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP +BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV +5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY +1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4 +NeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG +Fdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91 +8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe +pLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl +MrY= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 03:3a:f1:e6:a7:11:a9:a0:bb:28:64:b1:1d:09:fa:e5 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root G2 +# Validity +# Not Before: Aug 1 12:00:00 2013 GMT +# Not After : Jan 15 12:00:00 2038 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:bb:37:cd:34:dc:7b:6b:c9:b2:68:90:ad:4a:75: +# ff:46:ba:21:0a:08:8d:f5:19:54:c9:fb:88:db:f3: +# ae:f2:3a:89:91:3c:7a:e6:ab:06:1a:6b:cf:ac:2d: +# e8:5e:09:24:44:ba:62:9a:7e:d6:a3:a8:7e:e0:54: +# 75:20:05:ac:50:b7:9c:63:1a:6c:30:dc:da:1f:19: +# b1:d7:1e:de:fd:d7:e0:cb:94:83:37:ae:ec:1f:43: +# 4e:dd:7b:2c:d2:bd:2e:a5:2f:e4:a9:b8:ad:3a:d4: +# 99:a4:b6:25:e9:9b:6b:00:60:92:60:ff:4f:21:49: +# 18:f7:67:90:ab:61:06:9c:8f:f2:ba:e9:b4:e9:92: +# 32:6b:b5:f3:57:e8:5d:1b:cd:8c:1d:ab:95:04:95: +# 49:f3:35:2d:96:e3:49:6d:dd:77:e3:fb:49:4b:b4: +# ac:55:07:a9:8f:95:b3:b4:23:bb:4c:6d:45:f0:f6: +# a9:b2:95:30:b4:fd:4c:55:8c:27:4a:57:14:7c:82: +# 9d:cd:73:92:d3:16:4a:06:0c:8c:50:d1:8f:1e:09: +# be:17:a1:e6:21:ca:fd:83:e5:10:bc:83:a5:0a:c4: +# 67:28:f6:73:14:14:3d:46:76:c3:87:14:89:21:34: +# 4d:af:0f:45:0c:a6:49:a1:ba:bb:9c:c5:b1:33:83: +# 29:85 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 4E:22:54:20:18:95:E6:E3:6E:E6:0F:FA:FA:B9:12:ED:06:17:8F:39 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 60:67:28:94:6f:0e:48:63:eb:31:dd:ea:67:18:d5:89:7d:3c: +# c5:8b:4a:7f:e9:be:db:2b:17:df:b0:5f:73:77:2a:32:13:39: +# 81:67:42:84:23:f2:45:67:35:ec:88:bf:f8:8f:b0:61:0c:34: +# a4:ae:20:4c:84:c6:db:f8:35:e1:76:d9:df:a6:42:bb:c7:44: +# 08:86:7f:36:74:24:5a:da:6c:0d:14:59:35:bd:f2:49:dd:b6: +# 1f:c9:b3:0d:47:2a:3d:99:2f:bb:5c:bb:b5:d4:20:e1:99:5f: +# 53:46:15:db:68:9b:f0:f3:30:d5:3e:31:e2:8d:84:9e:e3:8a: +# da:da:96:3e:35:13:a5:5f:f0:f9:70:50:70:47:41:11:57:19: +# 4e:c0:8f:ae:06:c4:95:13:17:2f:1b:25:9f:75:f2:b1:8e:99: +# a1:6f:13:b1:41:71:fe:88:2a:c8:4f:10:20:55:d7:f3:14:45: +# e5:e0:44:f4:ea:87:95:32:93:0e:fe:53:46:fa:2c:9d:ff:8b: +# 22:b9:4b:d9:09:45:a4:de:a4:b8:9a:58:dd:1b:7d:52:9f:8e: +# 59:43:88:81:a4:9e:26:d5:6f:ad:dd:0d:c6:37:7d:ed:03:92: +# 1b:e5:77:5f:76:ee:3c:8d:c4:5d:56:5b:a2:d9:66:6e:b3:35: +# 37:e5:32:b6 + +[p11-kit-object-v1] +label: "DigiCert Global Root G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOre +xpu80JX28MzQC7phW1FGfp4tn+6OYwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0D +Q+4QE2xy3q6Ip6FrtUPOZ9wj/wMco+I+ +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Global Root G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQsw +CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu +ZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAe +Fw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVTMRUw +EwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20x +IDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0CAQYF +K4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FG +fp4tn+6OYwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPO +Z9wj/wMco+I+o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAd +BgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNpYim8S8YwCgYIKoZIzj0EAwMDaAAwZQIx +AK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y3maTD/HMsQmP3Wyr+mt/ +oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34VOKa5Vt8 +sycX +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 05:55:56:bc:f2:5e:a4:35:35:c3:a4:0f:d5:ab:45:72 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root G3 +# Validity +# Not Before: Aug 1 12:00:00 2013 GMT +# Not After : Jan 15 12:00:00 2038 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Global Root G3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:dd:a7:d9:bb:8a:b8:0b:fb:0b:7f:21:d2:f0:be: +# be:73:f3:33:5d:1a:bc:34:ea:de:c6:9b:bc:d0:95: +# f6:f0:cc:d0:0b:ba:61:5b:51:46:7e:9e:2d:9f:ee: +# 8e:63:0c:17:ec:07:70:f5:cf:84:2e:40:83:9c:e8: +# 3f:41:6d:3b:ad:d3:a4:14:59:36:78:9d:03:43:ee: +# 10:13:6c:72:de:ae:88:a7:a1:6b:b5:43:ce:67:dc: +# 23:ff:03:1c:a3:e2:3e +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B3:DB:48:A4:F9:A1:C5:D8:AE:36:41:CC:11:63:69:62:29:BC:4B:C6 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:ad:bc:f2:6c:3f:12:4a:d1:2d:39:c3:0a:09: +# 97:73:f4:88:36:8c:88:27:bb:e6:88:8d:50:85:a7:63:f9:9e: +# 32:de:66:93:0f:f1:cc:b1:09:8f:dd:6c:ab:fa:6b:7f:a0:02: +# 30:39:66:5b:c2:64:8d:b8:9e:50:dc:a8:d5:49:a2:ed:c7:dc: +# d1:49:7f:17:01:b8:c8:86:8f:4e:8c:88:2b:a8:9a:a9:8a:c5: +# d1:00:bd:f8:54:e2:9a:e5:5b:7c:b3:27:17 + +[p11-kit-object-v1] +label: "DigiCert High Assurance EV Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxszlc+b71LvlLS0ypt/l +gT/JzSVJtnEqw9WUNGeiChywX2mmQLHEt7KP0JikqUFZOtPclNY823Q4pErMTSWC +90qlUxI47vNJbXGRfmO2q6Zfw6SE+E9iUb74xezbOJLjBuUIkQzEKEFV+8taiRV+ +ceg1v01yCT2+OjhQW3cxG42zxyRFmqesbQAUWgS3uhPrUQqYQUEiTmVhh4FBUKZ5 +XIneGUpX1S7mXRxTLH6YzRoGFqRoc9A0BBNcoXHTWnxV215k4TeHMFYE5RG0KYAS +8Xk5iKICEXwnZreIt3jyygqoOKsKZMK/Zl2VhMGhJR6HXRpQCyASzEG7bgtROLhL +ywIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert High Assurance EV Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j +ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL +MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 +LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug +RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm ++9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW +PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM +xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB +Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3 +hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg +EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA +FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec +nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z +eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF +hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2 +Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe +vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep ++OkuE6N36B9K +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:ac:5c:26:6a:0b:40:9b:8f:0b:79:f2:ae:46:25:77 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert High Assurance EV Root CA +# Validity +# Not Before: Nov 10 00:00:00 2006 GMT +# Not After : Nov 10 00:00:00 2031 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert High Assurance EV Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:c6:cc:e5:73:e6:fb:d4:bb:e5:2d:2d:32:a6:df: +# e5:81:3f:c9:cd:25:49:b6:71:2a:c3:d5:94:34:67: +# a2:0a:1c:b0:5f:69:a6:40:b1:c4:b7:b2:8f:d0:98: +# a4:a9:41:59:3a:d3:dc:94:d6:3c:db:74:38:a4:4a: +# cc:4d:25:82:f7:4a:a5:53:12:38:ee:f3:49:6d:71: +# 91:7e:63:b6:ab:a6:5f:c3:a4:84:f8:4f:62:51:be: +# f8:c5:ec:db:38:92:e3:06:e5:08:91:0c:c4:28:41: +# 55:fb:cb:5a:89:15:7e:71:e8:35:bf:4d:72:09:3d: +# be:3a:38:50:5b:77:31:1b:8d:b3:c7:24:45:9a:a7: +# ac:6d:00:14:5a:04:b7:ba:13:eb:51:0a:98:41:41: +# 22:4e:65:61:87:81:41:50:a6:79:5c:89:de:19:4a: +# 57:d5:2e:e6:5d:1c:53:2c:7e:98:cd:1a:06:16:a4: +# 68:73:d0:34:04:13:5c:a1:71:d3:5a:7c:55:db:5e: +# 64:e1:37:87:30:56:04:e5:11:b4:29:80:12:f1:79: +# 39:88:a2:02:11:7c:27:66:b7:88:b7:78:f2:ca:0a: +# a8:38:ab:0a:64:c2:bf:66:5d:95:84:c1:a1:25:1e: +# 87:5d:1a:50:0b:20:12:cc:41:bb:6e:0b:51:38:b8: +# 4b:cb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# B1:3E:C3:69:03:F8:BF:47:01:D4:98:26:1A:08:02:EF:63:64:2B:C3 +# X509v3 Authority Key Identifier: +# B1:3E:C3:69:03:F8:BF:47:01:D4:98:26:1A:08:02:EF:63:64:2B:C3 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 1c:1a:06:97:dc:d7:9c:9f:3c:88:66:06:08:57:21:db:21:47: +# f8:2a:67:aa:bf:18:32:76:40:10:57:c1:8a:f3:7a:d9:11:65: +# 8e:35:fa:9e:fc:45:b5:9e:d9:4c:31:4b:b8:91:e8:43:2c:8e: +# b3:78:ce:db:e3:53:79:71:d6:e5:21:94:01:da:55:87:9a:24: +# 64:f6:8a:66:cc:de:9c:37:cd:a8:34:b1:69:9b:23:c8:9e:78: +# 22:2b:70:43:e3:55:47:31:61:19:ef:58:c5:85:2f:4e:30:f6: +# a0:31:16:23:c8:e7:e2:65:16:33:cb:bf:1a:1b:a0:3d:f8:ca: +# 5e:8b:31:8b:60:08:89:2d:0c:06:5c:52:b7:c4:f9:0a:98:d1: +# 15:5f:9f:12:be:7c:36:63:38:bd:44:a4:7f:e4:26:2b:0a:c4: +# 97:69:0d:e9:8c:e2:c0:10:57:b8:c8:76:12:91:55:f2:48:69: +# d8:bc:2a:02:5b:0f:44:d4:20:31:db:f4:ba:70:26:5d:90:60: +# 9e:bc:4b:17:09:2f:b4:cb:1e:43:68:c9:07:27:c1:d2:5c:f7: +# ea:21:b9:68:12:9c:3c:9c:bf:9e:fc:80:5c:9b:63:cd:ec:47: +# aa:25:27:67:a0:37:f3:00:82:7d:54:d7:a9:f8:e9:2e:13:a3: +# 77:e8:1f:4a + +[p11-kit-object-v1] +label: "DigiCert SMIME ECC P384 Root G5" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEFp1V5bbU+/tnaxrUoarSd5U+iOUHn7Zw +ZiAopIjscDWvszL/NxNKnrwBA96EwbjG5mVHifITVb/NpR4IYH+tf+hhkinPCUde +CxzAH6S/8lu8mO+ZTMxwa7a60Cgdv74E +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert SMIME ECC P384 Root G5" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICHDCCAaOgAwIBAgIQBT9uoAYBcn3tP8OjtqPW7zAKBggqhkjOPQQDAzBQMQsw +CQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xKDAmBgNVBAMTH0Rp +Z2lDZXJ0IFNNSU1FIEVDQyBQMzg0IFJvb3QgRzUwHhcNMjEwMTE1MDAwMDAwWhcN +NDYwMTE0MjM1OTU5WjBQMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQs +IEluYy4xKDAmBgNVBAMTH0RpZ2lDZXJ0IFNNSU1FIEVDQyBQMzg0IFJvb3QgRzUw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAQWnVXlttT7+2drGtShqtJ3lT6I5QeftnBm +ICikiOxwNa+zMv83E0qevAED3oTBuMbmZUeJ8hNVv82lHghgf61/6GGSKc8JR14L +HMAfpL/yW7yY75lMzHBrtrrQKB2/vgSjQjBAMB0GA1UdDgQWBBRzemuW20IHi1Jm +wmQyF/7gZ5AurTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAKBggq +hkjOPQQDAwNnADBkAjA3RPUygONx6/Rtz3zMkZrDbnHY0iNdkk2CQm1cYZX2kfWn +CPZql+mclC2YcP0ztgkCMAc8L7lYgl4Po2Kok2fwIMNpvwMsO1CnO69BOMlSSJHW +Dvu8YDB8ZD8SHkV/UT70pg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 05:3f:6e:a0:06:01:72:7d:ed:3f:c3:a3:b6:a3:d6:ef +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=DigiCert, Inc., CN=DigiCert SMIME ECC P384 Root G5 +# Validity +# Not Before: Jan 15 00:00:00 2021 GMT +# Not After : Jan 14 23:59:59 2046 GMT +# Subject: C=US, O=DigiCert, Inc., CN=DigiCert SMIME ECC P384 Root G5 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:16:9d:55:e5:b6:d4:fb:fb:67:6b:1a:d4:a1:aa: +# d2:77:95:3e:88:e5:07:9f:b6:70:66:20:28:a4:88: +# ec:70:35:af:b3:32:ff:37:13:4a:9e:bc:01:03:de: +# 84:c1:b8:c6:e6:65:47:89:f2:13:55:bf:cd:a5:1e: +# 08:60:7f:ad:7f:e8:61:92:29:cf:09:47:5e:0b:1c: +# c0:1f:a4:bf:f2:5b:bc:98:ef:99:4c:cc:70:6b:b6: +# ba:d0:28:1d:bf:be:04 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 73:7A:6B:96:DB:42:07:8B:52:66:C2:64:32:17:FE:E0:67:90:2E:AD +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:37:44:f5:32:80:e3:71:eb:f4:6d:cf:7c:cc:91: +# 9a:c3:6e:71:d8:d2:23:5d:92:4d:82:42:6d:5c:61:95:f6:91: +# f5:a7:08:f6:6a:97:e9:9c:94:2d:98:70:fd:33:b6:09:02:30: +# 07:3c:2f:b9:58:82:5e:0f:a3:62:a8:93:67:f0:20:c3:69:bf: +# 03:2c:3b:50:a7:3b:af:41:38:c9:52:48:91:d6:0e:fb:bc:60: +# 30:7c:64:3f:12:1e:45:7f:51:3e:f4:a6 + +[p11-kit-object-v1] +label: "DigiCert SMIME RSA4096 Root G5" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4Gpb2fj5fey1e+9f3Vw0 +2Npd0ctldashfFsA1IJvRYVBiqkSAnIy8BT1A3W7Y5dJD0CZCxoeVqfS0OGr3eUE +G+MfFBICiPWggAn2J5pQ8LrjouCsahSRtWs4EHqiMeGRG7e58CtbyHcJdrdRxDYK +mVNURCW3CTWGFwVWkz1BtwLXYh+KkhGH6hFt6ggR3LF4SEmS9rRRgHgj2P7hVho6 +kBNWNInV4pWLX96yzPs/OLeF9+qevy6hLi9NfWoRLjag/xEIBJVV4Bs7Z5OplFXq +Mu0GOn/Cf+OtEyfRNEGzMMO/tIj4A4Kk3z6reHegWZNx593rAAR7zEg5KOAeoxVp +yDayoQuX31XW75GcpPYW91EK7gMjkdwE/+DdOPYiAwDCB3EaEsnXRiqUG83Wuxvu +v75NUFiwC80wdin1z+W2ai92sLBpatBtZRg1fpO8chfBVULNL8Ilu/T9HaFkIlRd +4p5yQYRucZbqRQe2XnpKhp1zZHc4A9IPU6VVIMRN/2hvVanq3XHkT9mFo3xOKQKe +CwnyGlPMAKbd0TT2DcEwsZwCZKw17aWwKbHSlTMP0iAzvewjS/IZ+dqYZOQsMR8u +4Y0cBJUoTYxYzUvlc4KGjOyo1nlc+2S73AxMKPYXr+Jo1haGmNv8AdwxuvicDvko +Rkrh/ZYGRXkRaBdlXIsmh1sCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert SMIME RSA4096 Root G5" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFajCCA1KgAwIBAgIQBfa6BCODRst9XOa5W7ocVTANBgkqhkiG9w0BAQwFADBP +MQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJzAlBgNVBAMT +HkRpZ2lDZXJ0IFNNSU1FIFJTQTQwOTYgUm9vdCBHNTAeFw0yMTAxMTUwMDAwMDBa +Fw00NjAxMTQyMzU5NTlaME8xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2Vy +dCwgSW5jLjEnMCUGA1UEAxMeRGlnaUNlcnQgU01JTUUgUlNBNDA5NiBSb290IEc1 +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4Gpb2fj5fey1e+9f3Vw0 +2Npd0ctldashfFsA1IJvRYVBiqkSAnIy8BT1A3W7Y5dJD0CZCxoeVqfS0OGr3eUE +G+MfFBICiPWggAn2J5pQ8LrjouCsahSRtWs4EHqiMeGRG7e58CtbyHcJdrdRxDYK +mVNURCW3CTWGFwVWkz1BtwLXYh+KkhGH6hFt6ggR3LF4SEmS9rRRgHgj2P7hVho6 +kBNWNInV4pWLX96yzPs/OLeF9+qevy6hLi9NfWoRLjag/xEIBJVV4Bs7Z5OplFXq +Mu0GOn/Cf+OtEyfRNEGzMMO/tIj4A4Kk3z6reHegWZNx593rAAR7zEg5KOAeoxVp +yDayoQuX31XW75GcpPYW91EK7gMjkdwE/+DdOPYiAwDCB3EaEsnXRiqUG83Wuxvu +v75NUFiwC80wdin1z+W2ai92sLBpatBtZRg1fpO8chfBVULNL8Ilu/T9HaFkIlRd +4p5yQYRucZbqRQe2XnpKhp1zZHc4A9IPU6VVIMRN/2hvVanq3XHkT9mFo3xOKQKe +CwnyGlPMAKbd0TT2DcEwsZwCZKw17aWwKbHSlTMP0iAzvewjS/IZ+dqYZOQsMR8u +4Y0cBJUoTYxYzUvlc4KGjOyo1nlc+2S73AxMKPYXr+Jo1haGmNv8AdwxuvicDvko +Rkrh/ZYGRXkRaBdlXIsmh1sCAwEAAaNCMEAwHQYDVR0OBBYEFNGj1FcdT1XbdUxc +Qp5jFs60xjsfMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MA0GCSqG +SIb3DQEBDAUAA4ICAQAHpwreU7ua63C/sjaQzeSnuPEM5F1aHXhl/Mm4HiMRV3xp +NW0B/1NQvwcOuscBP1gqlHUDqxwLI9wbih43PR1Yj3PZsypv3xCgWwynyrB/uSSi +ATUy5V5GQevYf3PnQumkUSZ3gQqo6w8KUJ1+iiBn/AuOOhHTxYxgGNlLsfzU8bRJ +Tq6H4dH7dqFf8wbPl5YM6Z51gVxTDSL8NuZJbnTbAIWNfCKgjvsQTNRiE1vvS3Im +i/xOio/+lxBTxXiLQmQbX+CJ/bsJf1DgVIUmEWodZflJKdx8Nt/7PffSrO4yjW6m +fTmcRcTKDfU7tHlTpS9Wx1HFikxkXZBDI45rTBd4zOi/9TvkqEjPrZsM3zJK09kS +jiN4DS2vn6+ePAnClwDtOmkccT8539OPxGb17zaUD/PdkraWX5Cm3XOqpiCUlCVq +CQxy5BMjYEyjyhcue2cA29DN6nofOSZXiTB3y07llUVPX/s2XD35ILU6ECVPkzJa +7sGW6OlWBLBJYU3seKidGMH/2OovVu+VK3sEXmfjVUDtOQT5C3n1aoxcD4makMfN +i97bJjWhbs2zQvKiDzsMjpP/FM/895P35EEIbhlSEQ9TGXN4DM/YhYH4rVXIsJ5G +Y6+cUu5cv/DAWzceCSDSPiPGoRVKDjZ+MMV5arwiiNkMUkAf3U4PZyYW0q0XHA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 05:f6:ba:04:23:83:46:cb:7d:5c:e6:b9:5b:ba:1c:55 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=DigiCert, Inc., CN=DigiCert SMIME RSA4096 Root G5 +# Validity +# Not Before: Jan 15 00:00:00 2021 GMT +# Not After : Jan 14 23:59:59 2046 GMT +# Subject: C=US, O=DigiCert, Inc., CN=DigiCert SMIME RSA4096 Root G5 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:e0:6a:5b:d9:f8:f9:7d:ec:b5:7b:ef:5f:dd:5c: +# 34:d8:da:5d:d1:cb:65:75:ab:21:7c:5b:00:d4:82: +# 6f:45:85:41:8a:a9:12:02:72:32:f0:14:f5:03:75: +# bb:63:97:49:0f:40:99:0b:1a:1e:56:a7:d2:d0:e1: +# ab:dd:e5:04:1b:e3:1f:14:12:02:88:f5:a0:80:09: +# f6:27:9a:50:f0:ba:e3:a2:e0:ac:6a:14:91:b5:6b: +# 38:10:7a:a2:31:e1:91:1b:b7:b9:f0:2b:5b:c8:77: +# 09:76:b7:51:c4:36:0a:99:53:54:44:25:b7:09:35: +# 86:17:05:56:93:3d:41:b7:02:d7:62:1f:8a:92:11: +# 87:ea:11:6d:ea:08:11:dc:b1:78:48:49:92:f6:b4: +# 51:80:78:23:d8:fe:e1:56:1a:3a:90:13:56:34:89: +# d5:e2:95:8b:5f:de:b2:cc:fb:3f:38:b7:85:f7:ea: +# 9e:bf:2e:a1:2e:2f:4d:7d:6a:11:2e:36:a0:ff:11: +# 08:04:95:55:e0:1b:3b:67:93:a9:94:55:ea:32:ed: +# 06:3a:7f:c2:7f:e3:ad:13:27:d1:34:41:b3:30:c3: +# bf:b4:88:f8:03:82:a4:df:3e:ab:78:77:a0:59:93: +# 71:e7:dd:eb:00:04:7b:cc:48:39:28:e0:1e:a3:15: +# 69:c8:36:b2:a1:0b:97:df:55:d6:ef:91:9c:a4:f6: +# 16:f7:51:0a:ee:03:23:91:dc:04:ff:e0:dd:38:f6: +# 22:03:00:c2:07:71:1a:12:c9:d7:46:2a:94:1b:cd: +# d6:bb:1b:ee:bf:be:4d:50:58:b0:0b:cd:30:76:29: +# f5:cf:e5:b6:6a:2f:76:b0:b0:69:6a:d0:6d:65:18: +# 35:7e:93:bc:72:17:c1:55:42:cd:2f:c2:25:bb:f4: +# fd:1d:a1:64:22:54:5d:e2:9e:72:41:84:6e:71:96: +# ea:45:07:b6:5e:7a:4a:86:9d:73:64:77:38:03:d2: +# 0f:53:a5:55:20:c4:4d:ff:68:6f:55:a9:ea:dd:71: +# e4:4f:d9:85:a3:7c:4e:29:02:9e:0b:09:f2:1a:53: +# cc:00:a6:dd:d1:34:f6:0d:c1:30:b1:9c:02:64:ac: +# 35:ed:a5:b0:29:b1:d2:95:33:0f:d2:20:33:bd:ec: +# 23:4b:f2:19:f9:da:98:64:e4:2c:31:1f:2e:e1:8d: +# 1c:04:95:28:4d:8c:58:cd:4b:e5:73:82:86:8c:ec: +# a8:d6:79:5c:fb:64:bb:dc:0c:4c:28:f6:17:af:e2: +# 68:d6:16:86:98:db:fc:01:dc:31:ba:f8:9c:0e:f9: +# 28:46:4a:e1:fd:96:06:45:79:11:68:17:65:5c:8b: +# 26:87:5b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D1:A3:D4:57:1D:4F:55:DB:75:4C:5C:42:9E:63:16:CE:B4:C6:3B:1F +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 07:a7:0a:de:53:bb:9a:eb:70:bf:b2:36:90:cd:e4:a7:b8:f1: +# 0c:e4:5d:5a:1d:78:65:fc:c9:b8:1e:23:11:57:7c:69:35:6d: +# 01:ff:53:50:bf:07:0e:ba:c7:01:3f:58:2a:94:75:03:ab:1c: +# 0b:23:dc:1b:8a:1e:37:3d:1d:58:8f:73:d9:b3:2a:6f:df:10: +# a0:5b:0c:a7:ca:b0:7f:b9:24:a2:01:35:32:e5:5e:46:41:eb: +# d8:7f:73:e7:42:e9:a4:51:26:77:81:0a:a8:eb:0f:0a:50:9d: +# 7e:8a:20:67:fc:0b:8e:3a:11:d3:c5:8c:60:18:d9:4b:b1:fc: +# d4:f1:b4:49:4e:ae:87:e1:d1:fb:76:a1:5f:f3:06:cf:97:96: +# 0c:e9:9e:75:81:5c:53:0d:22:fc:36:e6:49:6e:74:db:00:85: +# 8d:7c:22:a0:8e:fb:10:4c:d4:62:13:5b:ef:4b:72:26:8b:fc: +# 4e:8a:8f:fe:97:10:53:c5:78:8b:42:64:1b:5f:e0:89:fd:bb: +# 09:7f:50:e0:54:85:26:11:6a:1d:65:f9:49:29:dc:7c:36:df: +# fb:3d:f7:d2:ac:ee:32:8d:6e:a6:7d:39:9c:45:c4:ca:0d:f5: +# 3b:b4:79:53:a5:2f:56:c7:51:c5:8a:4c:64:5d:90:43:23:8e: +# 6b:4c:17:78:cc:e8:bf:f5:3b:e4:a8:48:cf:ad:9b:0c:df:32: +# 4a:d3:d9:12:8e:23:78:0d:2d:af:9f:af:9e:3c:09:c2:97:00: +# ed:3a:69:1c:71:3f:39:df:d3:8f:c4:66:f5:ef:36:94:0f:f3: +# dd:92:b6:96:5f:90:a6:dd:73:aa:a6:20:94:94:25:6a:09:0c: +# 72:e4:13:23:60:4c:a3:ca:17:2e:7b:67:00:db:d0:cd:ea:7a: +# 1f:39:26:57:89:30:77:cb:4e:e5:95:45:4f:5f:fb:36:5c:3d: +# f9:20:b5:3a:10:25:4f:93:32:5a:ee:c1:96:e8:e9:56:04:b0: +# 49:61:4d:ec:78:a8:9d:18:c1:ff:d8:ea:2f:56:ef:95:2b:7b: +# 04:5e:67:e3:55:40:ed:39:04:f9:0b:79:f5:6a:8c:5c:0f:89: +# 9a:90:c7:cd:8b:de:db:26:35:a1:6e:cd:b3:42:f2:a2:0f:3b: +# 0c:8e:93:ff:14:cf:fc:f7:93:f7:e4:41:08:6e:19:52:11:0f: +# 53:19:73:78:0c:cf:d8:85:81:f8:ad:55:c8:b0:9e:46:63:af: +# 9c:52:ee:5c:bf:f0:c0:5b:37:1e:09:20:d2:3e:23:c6:a1:15: +# 4a:0e:36:7e:30:c5:79:6a:bc:22:88:d9:0c:52:40:1f:dd:4e: +# 0f:67:26:16:d2:ad:17:1c + +[p11-kit-object-v1] +label: "DigiCert TLS ECC P384 Root G5" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEwUShzxGXUJreI4I1B83Qyxid0vF/dzVP +O92UclLtwjv47Pp7a1gg7Jmuyfxos3W52wnsyBP1TsYKHWYwTLsfRwo8YRBCKXyl +CA7gIunTNWjOm2OfhLWZTVigjvVU55XJ +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert TLS ECC P384 Root G5" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICGTCCAZ+gAwIBAgIQCeCTZaz32ci5PhwLBCou8zAKBggqhkjOPQQDAzBOMQsw +CQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJjAkBgNVBAMTHURp +Z2lDZXJ0IFRMUyBFQ0MgUDM4NCBSb290IEc1MB4XDTIxMDExNTAwMDAwMFoXDTQ2 +MDExNDIzNTk1OVowTjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJ +bmMuMSYwJAYDVQQDEx1EaWdpQ2VydCBUTFMgRUNDIFAzODQgUm9vdCBHNTB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABMFEoc8Rl1Ca3iOCNQfN0MsYndLxf3c1TzvdlHJS +7cI7+Oz6e2tYIOyZrsn8aLN1udsJ7MgT9U7GCh1mMEy7H0cKPGEQQil8pQgO4CLp +0zVozptjn4S1mU1YoI71VOeVyaNCMEAwHQYDVR0OBBYEFMFRRVBZqz7nLFr6ICIS +B4CIfBFqMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49 +BAMDA2gAMGUCMQCJao1H5+z8blUD2WdsJk6Dxv3J+ysTvLd6jLRl0mlpYxNjOyZQ +LgGheQaRnUi/wr4CMEfDFXuxoJGZSZOoPHzoRgaLLPIxAJSdYsiJvRmEFOml+wG4 +DXZDjC5Ty3zfDBeWUA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 09:e0:93:65:ac:f7:d9:c8:b9:3e:1c:0b:04:2a:2e:f3 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=DigiCert, Inc., CN=DigiCert TLS ECC P384 Root G5 +# Validity +# Not Before: Jan 15 00:00:00 2021 GMT +# Not After : Jan 14 23:59:59 2046 GMT +# Subject: C=US, O=DigiCert, Inc., CN=DigiCert TLS ECC P384 Root G5 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:c1:44:a1:cf:11:97:50:9a:de:23:82:35:07:cd: +# d0:cb:18:9d:d2:f1:7f:77:35:4f:3b:dd:94:72:52: +# ed:c2:3b:f8:ec:fa:7b:6b:58:20:ec:99:ae:c9:fc: +# 68:b3:75:b9:db:09:ec:c8:13:f5:4e:c6:0a:1d:66: +# 30:4c:bb:1f:47:0a:3c:61:10:42:29:7c:a5:08:0e: +# e0:22:e9:d3:35:68:ce:9b:63:9f:84:b5:99:4d:58: +# a0:8e:f5:54:e7:95:c9 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# C1:51:45:50:59:AB:3E:E7:2C:5A:FA:20:22:12:07:80:88:7C:11:6A +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:89:6a:8d:47:e7:ec:fc:6e:55:03:d9:67:6c: +# 26:4e:83:c6:fd:c9:fb:2b:13:bc:b7:7a:8c:b4:65:d2:69:69: +# 63:13:63:3b:26:50:2e:01:a1:79:06:91:9d:48:bf:c2:be:02: +# 30:47:c3:15:7b:b1:a0:91:99:49:93:a8:3c:7c:e8:46:06:8b: +# 2c:f2:31:00:94:9d:62:c8:89:bd:19:84:14:e9:a5:fb:01:b8: +# 0d:76:43:8c:2e:53:cb:7c:df:0c:17:96:50 + +[p11-kit-object-v1] +label: "DigiCert TLS RSA4096 Root G5" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAs9D0yXkRnf38ZoHnzNXk +vOyBPmo1ji63596v+QdNzzCd6gkLmb1sV9oYSrh4rDo5qKZIrC5y5b3r8RrN56QD +qT8RtNgviRb7lAE9uy/4EwWheByOKOBF4IP0WRuVs65+A0XlvsJC/u7yPLaFE5gy +nRaoKcILHDjcnzF3XL8no/wnrLcrvXSbFy3ygdpdsOEjFz6IShIj0OrPnd4DF7FC +SqAWTKRtk+k/Ou46fJ1YnfROj/w7I8htuOIF2szr7MMx9NenKVSAz0RbTG8wnvPM +3R+UQ51Nf3BwDdQ60TfwbJ2bwBSTWO/NQTh1vBMDlXx/41zp1Q3V4nwQYqpr8D12 +8z+j6LDB/e+qV02shqcYtCnBLA6/ZL4pjNgCLc1cL/J/7xX0DBWsCrDx0w1Pak13 +lwGg8Wa3t87vzuzspXXKrOPhY/e4oQTIvHs/XS0WIlbtSEn+py95MCWbumstP507 +xBfnHS778s+m/OMULJaYIYy0kekZYIPyMCsGc1DVmDsG6ceKDGCMKPhSm27h9k27 +BiSb1ysmP/0qL3H11iS+fzGeD23oj09Noz//NerfSV5Bj4b58Xd5Sxu0o14v+0YC +0GYTXl6FT87YcIh7zgG1lpfXzX39gvjCJMHKATlPjaLBFEAfnGbVDAlG1vLQ0Uh2 +VjpDy7YKETm6jBNsBrWez+sCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert TLS RSA4096 Root G5" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCPm0eKj6ftpqMzeJ3nzPijANBgkqhkiG9w0BAQwFADBN +MQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJTAjBgNVBAMT +HERpZ2lDZXJ0IFRMUyBSU0E0MDk2IFJvb3QgRzUwHhcNMjEwMTE1MDAwMDAwWhcN +NDYwMTE0MjM1OTU5WjBNMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQs +IEluYy4xJTAjBgNVBAMTHERpZ2lDZXJ0IFRMUyBSU0E0MDk2IFJvb3QgRzUwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz0PTJeRGd/fxmgefM1eS87IE+ +ajWOLrfn3q/5B03PMJ3qCQuZvWxX2hhKuHisOjmopkisLnLlvevxGs3npAOpPxG0 +2C+JFvuUAT27L/gTBaF4HI4o4EXgg/RZG5Wzrn4DReW+wkL+7vI8toUTmDKdFqgp +wgscONyfMXdcvyej/Cestyu9dJsXLfKB2l2w4SMXPohKEiPQ6s+d3gMXsUJKoBZM +pG2T6T867jp8nVid9E6P/DsjyG244gXazOvswzH016cpVIDPRFtMbzCe88zdH5RD +nU1/cHAN1DrRN/BsnZvAFJNY781BOHW8EwOVfH/jXOnVDdXifBBiqmvwPXbzP6Po +sMH976pXTayGpxi0KcEsDr9kvimM2AItzVwv8n/vFfQMFawKsPHTDU9qTXeXAaDx +Zre3zu/O7Oyldcqs4+Fj97ihBMi8ez9dLRYiVu1ISf6nL3kwJZu6ay0/nTvEF+cd +Lvvyz6b84xQslpghjLSR6Rlgg/IwKwZzUNWYOwbpx4oMYIwo+FKbbuH2TbsGJJvX +KyY//SovcfXWJL5/MZ4PbeiPT02jP/816t9JXkGPhvnxd3lLG7SjXi/7RgLQZhNe +XoVPzthwiHvOAbWWl9fNff2C+MIkwcoBOU+NosEUQB+cZtUMCUbW8tDRSHZWOkPL +tgoRObqME2wGtZ7P6wIDAQABo0IwQDAdBgNVHQ4EFgQUUTMc7TZArxfTJc1paPKv +TiM+s0EwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcN +AQEMBQADggIBAGCmr1tfV9qJ20tQqcQjNSH/0GEwhJG3PxDPJY7Jv0Y02cEhJhxw +GXIeo8mH/qlDZJY6yFMECrZBu8RHANmfGBg7sg7zNOok992vIGCukihfNudd5N7H +PNtQOa27PShNlnx2xlv0wdsUpasZYgcYQF+Xkdycx6u1UQ3maVNVzDl92sURVXLF +O4uJ+DQtpBflF+aZfTCIITfNMBc9uPK8qHWgQ9w+iUuQrm0D4ByjoJYJu32jtyoQ +REtGBzRj7TG5BO6jm5qu5jF49OokYTurWGT/u4cnYiWB39yhL/btp/96j1EuMPik +AdKFOV8BmZZvWltwGUb+hmA+rYAQCd05JS9Yf7vSdPD3Rh9GOUrYU9DzLjtxpdRv +/PNn5AeP3SYZ4Y1b+qOTEZvpyDrDVWiakuFSdjjo4bq9+0/V77PnSIMx8IIh47a+ +p6tv75/fTM8BuGJqIz3nCU2AG3swpMPdB380vqQmsvZB6Akd4yCYqjdP//fx4ilw +MUc/dNAUFvohigLVigmUdy7yWSiLfFCSCmZ4OIN1xLVaqBHG5cGdZlXPU8Sv13WF +qUITVuwhd4GTWgzqltlJyqEI8pc7bZsEGCREjnwB8twl2F6GmrE52/WRMmrRpnCK +ovfepEWFJqgejF0pW8hL2JpqA15w8oVPbEtoL8pU9ozaMv7Da4M/OMZ+ +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 08:f9:b4:78:a8:fa:7e:da:6a:33:37:89:de:7c:cf:8a +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=DigiCert, Inc., CN=DigiCert TLS RSA4096 Root G5 +# Validity +# Not Before: Jan 15 00:00:00 2021 GMT +# Not After : Jan 14 23:59:59 2046 GMT +# Subject: C=US, O=DigiCert, Inc., CN=DigiCert TLS RSA4096 Root G5 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b3:d0:f4:c9:79:11:9d:fd:fc:66:81:e7:cc:d5: +# e4:bc:ec:81:3e:6a:35:8e:2e:b7:e7:de:af:f9:07: +# 4d:cf:30:9d:ea:09:0b:99:bd:6c:57:da:18:4a:b8: +# 78:ac:3a:39:a8:a6:48:ac:2e:72:e5:bd:eb:f1:1a: +# cd:e7:a4:03:a9:3f:11:b4:d8:2f:89:16:fb:94:01: +# 3d:bb:2f:f8:13:05:a1:78:1c:8e:28:e0:45:e0:83: +# f4:59:1b:95:b3:ae:7e:03:45:e5:be:c2:42:fe:ee: +# f2:3c:b6:85:13:98:32:9d:16:a8:29:c2:0b:1c:38: +# dc:9f:31:77:5c:bf:27:a3:fc:27:ac:b7:2b:bd:74: +# 9b:17:2d:f2:81:da:5d:b0:e1:23:17:3e:88:4a:12: +# 23:d0:ea:cf:9d:de:03:17:b1:42:4a:a0:16:4c:a4: +# 6d:93:e9:3f:3a:ee:3a:7c:9d:58:9d:f4:4e:8f:fc: +# 3b:23:c8:6d:b8:e2:05:da:cc:eb:ec:c3:31:f4:d7: +# a7:29:54:80:cf:44:5b:4c:6f:30:9e:f3:cc:dd:1f: +# 94:43:9d:4d:7f:70:70:0d:d4:3a:d1:37:f0:6c:9d: +# 9b:c0:14:93:58:ef:cd:41:38:75:bc:13:03:95:7c: +# 7f:e3:5c:e9:d5:0d:d5:e2:7c:10:62:aa:6b:f0:3d: +# 76:f3:3f:a3:e8:b0:c1:fd:ef:aa:57:4d:ac:86:a7: +# 18:b4:29:c1:2c:0e:bf:64:be:29:8c:d8:02:2d:cd: +# 5c:2f:f2:7f:ef:15:f4:0c:15:ac:0a:b0:f1:d3:0d: +# 4f:6a:4d:77:97:01:a0:f1:66:b7:b7:ce:ef:ce:ec: +# ec:a5:75:ca:ac:e3:e1:63:f7:b8:a1:04:c8:bc:7b: +# 3f:5d:2d:16:22:56:ed:48:49:fe:a7:2f:79:30:25: +# 9b:ba:6b:2d:3f:9d:3b:c4:17:e7:1d:2e:fb:f2:cf: +# a6:fc:e3:14:2c:96:98:21:8c:b4:91:e9:19:60:83: +# f2:30:2b:06:73:50:d5:98:3b:06:e9:c7:8a:0c:60: +# 8c:28:f8:52:9b:6e:e1:f6:4d:bb:06:24:9b:d7:2b: +# 26:3f:fd:2a:2f:71:f5:d6:24:be:7f:31:9e:0f:6d: +# e8:8f:4f:4d:a3:3f:ff:35:ea:df:49:5e:41:8f:86: +# f9:f1:77:79:4b:1b:b4:a3:5e:2f:fb:46:02:d0:66: +# 13:5e:5e:85:4f:ce:d8:70:88:7b:ce:01:b5:96:97: +# d7:cd:7d:fd:82:f8:c2:24:c1:ca:01:39:4f:8d:a2: +# c1:14:40:1f:9c:66:d5:0c:09:46:d6:f2:d0:d1:48: +# 76:56:3a:43:cb:b6:0a:11:39:ba:8c:13:6c:06:b5: +# 9e:cf:eb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 51:33:1C:ED:36:40:AF:17:D3:25:CD:69:68:F2:AF:4E:23:3E:B3:41 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 60:a6:af:5b:5f:57:da:89:db:4b:50:a9:c4:23:35:21:ff:d0: +# 61:30:84:91:b7:3f:10:cf:25:8e:c9:bf:46:34:d9:c1:21:26: +# 1c:70:19:72:1e:a3:c9:87:fe:a9:43:64:96:3a:c8:53:04:0a: +# b6:41:bb:c4:47:00:d9:9f:18:18:3b:b2:0e:f3:34:ea:24:f7: +# dd:af:20:60:ae:92:28:5f:36:e7:5d:e4:de:c7:3c:db:50:39: +# ad:bb:3d:28:4d:96:7c:76:c6:5b:f4:c1:db:14:a5:ab:19:62: +# 07:18:40:5f:97:91:dc:9c:c7:ab:b5:51:0d:e6:69:53:55:cc: +# 39:7d:da:c5:11:55:72:c5:3b:8b:89:f8:34:2d:a4:17:e5:17: +# e6:99:7d:30:88:21:37:cd:30:17:3d:b8:f2:bc:a8:75:a0:43: +# dc:3e:89:4b:90:ae:6d:03:e0:1c:a3:a0:96:09:bb:7d:a3:b7: +# 2a:10:44:4b:46:07:34:63:ed:31:b9:04:ee:a3:9b:9a:ae:e6: +# 31:78:f4:ea:24:61:3b:ab:58:64:ff:bb:87:27:62:25:81:df: +# dc:a1:2f:f6:ed:a7:ff:7a:8f:51:2e:30:f8:a4:01:d2:85:39: +# 5f:01:99:96:6f:5a:5b:70:19:46:fe:86:60:3e:ad:80:10:09: +# dd:39:25:2f:58:7f:bb:d2:74:f0:f7:46:1f:46:39:4a:d8:53: +# d0:f3:2e:3b:71:a5:d4:6f:fc:f3:67:e4:07:8f:dd:26:19:e1: +# 8d:5b:fa:a3:93:11:9b:e9:c8:3a:c3:55:68:9a:92:e1:52:76: +# 38:e8:e1:ba:bd:fb:4f:d5:ef:b3:e7:48:83:31:f0:82:21:e3: +# b6:be:a7:ab:6f:ef:9f:df:4c:cf:01:b8:62:6a:23:3d:e7:09: +# 4d:80:1b:7b:30:a4:c3:dd:07:7f:34:be:a4:26:b2:f6:41:e8: +# 09:1d:e3:20:98:aa:37:4f:ff:f7:f1:e2:29:70:31:47:3f:74: +# d0:14:16:fa:21:8a:02:d5:8a:09:94:77:2e:f2:59:28:8b:7c: +# 50:92:0a:66:78:38:83:75:c4:b5:5a:a8:11:c6:e5:c1:9d:66: +# 55:cf:53:c4:af:d7:75:85:a9:42:13:56:ec:21:77:81:93:5a: +# 0c:ea:96:d9:49:ca:a1:08:f2:97:3b:6d:9b:04:18:24:44:8e: +# 7c:01:f2:dc:25:d8:5e:86:9a:b1:39:db:f5:91:32:6a:d1:a6: +# 70:8a:a2:f7:de:a4:45:85:26:a8:1e:8c:5d:29:5b:c8:4b:d8: +# 9a:6a:03:5e:70:f2:85:4f:6c:4b:68:2f:ca:54:f6:8c:da:32: +# fe:c3:6b:83:3f:38:c6:7e + +[p11-kit-object-v1] +label: "DigiCert Trusted Root G4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAv+aQc2jeu+RdSjwwIjBp +M+zCpyUuySE98orYWcLhKac9WKt2ms2uexuEDcQwH/MbpDgW61bGl20dq7J58soR +0uRf1gU8Ug9SH8aeFaV+vp+pVxZZVXKvaJNwwrK6dZlqczKU0RBEEC7fgvMHhOZ0 +O21x4i0MG+4g1ckgHWMpLc7sXk7Ik/ghYZs06wXGXuxbGrzryc/NrDRAX7F6Zu53 +yEioZldXn1RYjgwrt0+nMNlW7sp7XeOtyU9e5TXnMcvak17cjo+A2raRmECQecN4 +x7axxLVqGDgDEI3Y1DekLgV9iPWCPhCRcKtVgkEy19sEcypukQF8IUzUvK4bA3Vd +eGbZOjFEmjNAvwjXWkmkwuapoGfdpCe8oU85tRFYF/ckXEaPZPfBaYh2mHY9WV1C +doeJl2l6SPDgohIbZpp0yt5LHucOY67m1O+SkjqePdwA5EUlibaaRBkrfsCUtNJh +besz2cXfSwQAzH0clcOP9yGyshG3u3/y1YxwLEFgqrFjGESVGnZifvaAsPvoZKYz +0YkH4b235kOkGLimdwHhD5QMIR2yVCkliWzlDlJRR3S+Jqy2QXXeeqxfjT/JvNNB +ERJb5RBQ6zHFynIWIgnffEx1P2PsIV/EIFFrb7GrhotPwtZFX50g/KEexcCPorF+ +CiaZ9eRpL5gdLfXZqbId5RsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DigiCert Trusted Root G4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBi +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3Qg +RzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBiMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu +Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3y +ithZwuEppz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1If +xp4VpX6+n6lXFllVcq9ok3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDV +ySAdYyktzuxeTsiT+CFhmzTrBcZe7FsavOvJz82sNEBfsXpm7nfISKhmV1efVFiO +DCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGYQJB5w3jHtrHEtWoYOAMQ +jdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6MUSaM0C/ +CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1ZXUJ2h4mXaXpI8OCi +EhtmmnTK3kse5w5jrubU75KSOp493ADkRSWJtppEGSt+wJS00mFt6zPZxd9LBADM +fRyVw4/3IbKyEbe7f/LVjHAsQWCqsWMYRJUadmJ+9oCw++hkpjPRiQfhvbfmQ6QY +uKZ3AeEPlAwhHbJUKSWJbOUOUlFHdL4mrLZBdd56rF+NP8m800ERElvlEFDrMcXK +chYiCd98THU/Y+whX8QgUWtvsauGi0/C1kVfnSD8oR7FwI+isX4KJpn15GkvmB0t +9dmpsh3lGwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB +hjAdBgNVHQ4EFgQU7NfjgtJxXWRM3y5nP+e6mK4cD08wDQYJKoZIhvcNAQEMBQAD +ggIBALth2X2pbL4XxJEbw6GiAI3jZGgPVs93rnD5/ZpKmbnJeFwMDF/k5hQpVgs2 +SV1EY+CtnJYYZhsjDT156W1r1lT40jzBQ0CuHVD1UvyQO7uYmWlrx8GnqGikJ9yd ++SeuMIW59mdNOj6PWTkiU0TryF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWc +fFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy7zBZLq7gcfJW5GqXb5JQbZaNaHqa +sjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iahixTXTBmyUEFxPT9N +cCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN5r5N +0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie +4u1Ki7wb/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mI +r/OSmbaz5mEP0oUA51Aa5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1 +/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tKG48BtieVU+i2iW1bvGjUI+iLUaJW+fCm +gKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP82Z+ +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 05:9b:1b:57:9e:8e:21:32:e2:39:07:bd:a7:77:75:5c +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Trusted Root G4 +# Validity +# Not Before: Aug 1 12:00:00 2013 GMT +# Not After : Jan 15 12:00:00 2038 GMT +# Subject: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert Trusted Root G4 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:bf:e6:90:73:68:de:bb:e4:5d:4a:3c:30:22:30: +# 69:33:ec:c2:a7:25:2e:c9:21:3d:f2:8a:d8:59:c2: +# e1:29:a7:3d:58:ab:76:9a:cd:ae:7b:1b:84:0d:c4: +# 30:1f:f3:1b:a4:38:16:eb:56:c6:97:6d:1d:ab:b2: +# 79:f2:ca:11:d2:e4:5f:d6:05:3c:52:0f:52:1f:c6: +# 9e:15:a5:7e:be:9f:a9:57:16:59:55:72:af:68:93: +# 70:c2:b2:ba:75:99:6a:73:32:94:d1:10:44:10:2e: +# df:82:f3:07:84:e6:74:3b:6d:71:e2:2d:0c:1b:ee: +# 20:d5:c9:20:1d:63:29:2d:ce:ec:5e:4e:c8:93:f8: +# 21:61:9b:34:eb:05:c6:5e:ec:5b:1a:bc:eb:c9:cf: +# cd:ac:34:40:5f:b1:7a:66:ee:77:c8:48:a8:66:57: +# 57:9f:54:58:8e:0c:2b:b7:4f:a7:30:d9:56:ee:ca: +# 7b:5d:e3:ad:c9:4f:5e:e5:35:e7:31:cb:da:93:5e: +# dc:8e:8f:80:da:b6:91:98:40:90:79:c3:78:c7:b6: +# b1:c4:b5:6a:18:38:03:10:8d:d8:d4:37:a4:2e:05: +# 7d:88:f5:82:3e:10:91:70:ab:55:82:41:32:d7:db: +# 04:73:2a:6e:91:01:7c:21:4c:d4:bc:ae:1b:03:75: +# 5d:78:66:d9:3a:31:44:9a:33:40:bf:08:d7:5a:49: +# a4:c2:e6:a9:a0:67:dd:a4:27:bc:a1:4f:39:b5:11: +# 58:17:f7:24:5c:46:8f:64:f7:c1:69:88:76:98:76: +# 3d:59:5d:42:76:87:89:97:69:7a:48:f0:e0:a2:12: +# 1b:66:9a:74:ca:de:4b:1e:e7:0e:63:ae:e6:d4:ef: +# 92:92:3a:9e:3d:dc:00:e4:45:25:89:b6:9a:44:19: +# 2b:7e:c0:94:b4:d2:61:6d:eb:33:d9:c5:df:4b:04: +# 00:cc:7d:1c:95:c3:8f:f7:21:b2:b2:11:b7:bb:7f: +# f2:d5:8c:70:2c:41:60:aa:b1:63:18:44:95:1a:76: +# 62:7e:f6:80:b0:fb:e8:64:a6:33:d1:89:07:e1:bd: +# b7:e6:43:a4:18:b8:a6:77:01:e1:0f:94:0c:21:1d: +# b2:54:29:25:89:6c:e5:0e:52:51:47:74:be:26:ac: +# b6:41:75:de:7a:ac:5f:8d:3f:c9:bc:d3:41:11:12: +# 5b:e5:10:50:eb:31:c5:ca:72:16:22:09:df:7c:4c: +# 75:3f:63:ec:21:5f:c4:20:51:6b:6f:b1:ab:86:8b: +# 4f:c2:d6:45:5f:9d:20:fc:a1:1e:c5:c0:8f:a2:b1: +# 7e:0a:26:99:f5:e4:69:2f:98:1d:2d:f5:d9:a9:b2: +# 1d:e5:1b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# EC:D7:E3:82:D2:71:5D:64:4C:DF:2E:67:3F:E7:BA:98:AE:1C:0F:4F +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# bb:61:d9:7d:a9:6c:be:17:c4:91:1b:c3:a1:a2:00:8d:e3:64: +# 68:0f:56:cf:77:ae:70:f9:fd:9a:4a:99:b9:c9:78:5c:0c:0c: +# 5f:e4:e6:14:29:56:0b:36:49:5d:44:63:e0:ad:9c:96:18:66: +# 1b:23:0d:3d:79:e9:6d:6b:d6:54:f8:d2:3c:c1:43:40:ae:1d: +# 50:f5:52:fc:90:3b:bb:98:99:69:6b:c7:c1:a7:a8:68:a4:27: +# dc:9d:f9:27:ae:30:85:b9:f6:67:4d:3a:3e:8f:59:39:22:53: +# 44:eb:c8:5d:03:ca:ed:50:7a:7d:62:21:0a:80:c8:73:66:d1: +# a0:05:60:5f:e8:a5:b4:a7:af:a8:f7:6d:35:9c:7c:5a:8a:d6: +# a2:38:99:f3:78:8b:f4:4d:d2:20:0b:de:04:ee:8c:9b:47:81: +# 72:0d:c0:14:32:ef:30:59:2e:ae:e0:71:f2:56:e4:6a:97:6f: +# 92:50:6d:96:8d:68:7a:9a:b2:36:14:7a:06:f2:24:b9:09:11: +# 50:d7:08:b1:b8:89:7a:84:23:61:42:29:e5:a3:cd:a2:20:41: +# d7:d1:9c:64:d9:ea:26:a1:8b:14:d7:4c:19:b2:50:41:71:3d: +# 3f:4d:70:23:86:0c:4a:dc:81:d2:cc:32:94:84:0d:08:09:97: +# 1c:4f:c0:ee:6b:20:74:30:d2:e0:39:34:10:85:21:15:01:08: +# e8:55:32:de:71:49:d9:28:17:50:4d:e6:be:4d:d1:75:ac:d0: +# ca:fb:41:b8:43:a5:aa:d3:c3:05:44:4f:2c:36:9b:e2:fa:e2: +# 45:b8:23:53:6c:06:6f:67:55:7f:46:b5:4c:3f:6e:28:5a:79: +# 26:d2:a4:a8:62:97:d2:1e:e2:ed:4a:8b:bc:1b:fd:47:4a:0d: +# df:67:66:7e:b2:5b:41:d0:3b:e4:f4:3b:f4:04:63:e9:ef:c2: +# 54:00:51:a0:8a:2a:c9:ce:78:cc:d5:ea:87:04:18:b3:ce:af: +# 49:88:af:f3:92:99:b6:b3:e6:61:0f:d2:85:00:e7:50:1a:e4: +# 1b:95:9d:19:a1:b9:9c:b1:9b:b1:00:1e:ef:d0:0f:4f:42:6c: +# c9:0a:bc:ee:43:fa:3a:71:a5:c8:4d:26:a5:35:fd:89:5d:bc: +# 85:62:1d:32:d2:a0:2b:54:ed:9a:57:c1:db:fa:10:cf:19:b7: +# 8b:4a:1b:8f:01:b6:27:95:53:e8:b6:89:6d:5b:bc:68:d4:23: +# e8:8b:51:a2:56:f9:f0:a6:80:a0:d6:1e:b3:bc:0f:0f:53:75: +# 29:aa:ea:13:77:e4:de:8c:81:21:ad:07:10:47:11:ad:87:3d: +# 07:d1:75:bc:cf:f3:66:7e + +[p11-kit-object-v1] +label: "DIGITALSIGN GLOBAL ROOT ECDSA CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEbgujqzNNHOpK6PwEjRSgffAILF+Dq5PR +0nu610l9j+wSUF/Uucvl8PkzYx/JV+xA2BELl+hSFswpjvQGhh443D1XxO6qvchU +BCZaJxNRRz0fHxqOqJWkM9DMR8xtuPxI +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DIGITALSIGN GLOBAL ROOT ECDSA CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICajCCAfCgAwIBAgIUNi2PcoiiKCfkAP8kxi3k6/qdtuEwCgYIKoZIzj0EAwMw +ZDELMAkGA1UEBhMCUFQxKjAoBgNVBAoMIURpZ2l0YWxTaWduIENlcnRpZmljYWRv +cmEgRGlnaXRhbDEpMCcGA1UEAwwgRElHSVRBTFNJR04gR0xPQkFMIFJPT1QgRUNE +U0EgQ0EwHhcNMjEwMTIxMTEwNzUwWhcNNDYwMTE1MTEwNzUwWjBkMQswCQYDVQQG +EwJQVDEqMCgGA1UECgwhRGlnaXRhbFNpZ24gQ2VydGlmaWNhZG9yYSBEaWdpdGFs +MSkwJwYDVQQDDCBESUdJVEFMU0lHTiBHTE9CQUwgUk9PVCBFQ0RTQSBDQTB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABG4Lo6szTRzqSuj8BI0UoH3wCCxfg6uT0dJ7utdJ +fY/sElBf1LnL5fD5M2MfyVfsQNgRC5foUhbMKY70BoYeONw9V8Tuqr3IVAQmWicT +UUc9Hx8ajqiVpDPQzEfMbbj8SKNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSME +GDAWgBTOr0qLGnXi8TjnAvAWrV7qZNV7tDAdBgNVHQ4EFgQUzq9Kixp14vE45wLw +Fq1e6mTVe7QwDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2gAMGUCMAqIxHGc +RANNjbTHvKiu2TAnNWprFmPX/OdZ4aeJG0wxmiNVRObzQyHVRydvbVcBqgIxAPuy +6uKXf1G1n0jrvG81iahkcKtXds3AxhRgyn/iggBz98w16o4km+UIWccEjHN4/g== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 36:2d:8f:72:88:a2:28:27:e4:00:ff:24:c6:2d:e4:eb:fa:9d:b6:e1 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=PT, O=DigitalSign Certificadora Digital, CN=DIGITALSIGN GLOBAL ROOT ECDSA CA +# Validity +# Not Before: Jan 21 11:07:50 2021 GMT +# Not After : Jan 15 11:07:50 2046 GMT +# Subject: C=PT, O=DigitalSign Certificadora Digital, CN=DIGITALSIGN GLOBAL ROOT ECDSA CA +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:6e:0b:a3:ab:33:4d:1c:ea:4a:e8:fc:04:8d:14: +# a0:7d:f0:08:2c:5f:83:ab:93:d1:d2:7b:ba:d7:49: +# 7d:8f:ec:12:50:5f:d4:b9:cb:e5:f0:f9:33:63:1f: +# c9:57:ec:40:d8:11:0b:97:e8:52:16:cc:29:8e:f4: +# 06:86:1e:38:dc:3d:57:c4:ee:aa:bd:c8:54:04:26: +# 5a:27:13:51:47:3d:1f:1f:1a:8e:a8:95:a4:33:d0: +# cc:47:cc:6d:b8:fc:48 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# CE:AF:4A:8B:1A:75:E2:F1:38:E7:02:F0:16:AD:5E:EA:64:D5:7B:B4 +# X509v3 Subject Key Identifier: +# CE:AF:4A:8B:1A:75:E2:F1:38:E7:02:F0:16:AD:5E:EA:64:D5:7B:B4 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:0a:88:c4:71:9c:44:03:4d:8d:b4:c7:bc:a8:ae: +# d9:30:27:35:6a:6b:16:63:d7:fc:e7:59:e1:a7:89:1b:4c:31: +# 9a:23:55:44:e6:f3:43:21:d5:47:27:6f:6d:57:01:aa:02:31: +# 00:fb:b2:ea:e2:97:7f:51:b5:9f:48:eb:bc:6f:35:89:a8:64: +# 70:ab:57:76:cd:c0:c6:14:60:ca:7f:e2:82:00:73:f7:cc:35: +# ea:8e:24:9b:e5:08:59:c7:04:8c:73:78:fe + +[p11-kit-object-v1] +label: "DIGITALSIGN GLOBAL ROOT RSA CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAyIe2ONMc8N4S+IPHxIri +ibi0Inp4+AxmUWh2NwrVT8JaCLgWXPdyAQk3hIEqVGvXktBs+qinQxI06w7bNw8p +/ooxUULoS5yQqMgsEdP9oCl+zt6U9oLgWLRORSXxIvI90w97VBrcMrbWUU5+QbRX +uCzGuQ4uylfx1cjTWOel6UIRrtMgJZRp14/Kog3D058HaD8V0mcuU/12gpsLc6kp +DZ4RkxQImOyeVBJKVqIGFexrbC6SYC6GDa6CH1FN47IH1xAZVyL2qWlEhPPZPaAG +v8yIfn/1zlulwipqdELqb6b/+Wix0F+9kdJVbzNXTB6d5OKLwYVloOBqnAAAiJLd +WAgW8nAxqBzh3r1OcenWvn61oVrDTfe/m72UpP31qlOTRskmAQRwxKBxus4lZvuR +flVw7kkKTWJ/wlCacvIYZ53pRag0hOj4gfbRWiIeB087s3/dEaVz3L6pGTppqW0b +MuKJqqUnC1p+dOIPZDldfly5wRf8x41eyewk7dLyP3qERTcCvj5rWcTmWxZtwKqe +qrVZLixwVZzMmZaYJFTRjtrKtBG0t3BDH2+QCyCgqHYTZdvbI1p1S6ELMXcK7n1o +YRoTjOpRflxWo1dMXaHrE2W/VBTM8+7c1+w8l/J4Vrjfclxw/M4G3Z/SBzHv51KR +ns2618AYRAcxZUkyaRNK648CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "DIGITALSIGN GLOBAL ROOT RSA CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFtTCCA52gAwIBAgIUXVnIyqsJV/XmtdoplARq/8XUlYcwDQYJKoZIhvcNAQEN +BQAwYjELMAkGA1UEBhMCUFQxKjAoBgNVBAoMIURpZ2l0YWxTaWduIENlcnRpZmlj +YWRvcmEgRGlnaXRhbDEnMCUGA1UEAwweRElHSVRBTFNJR04gR0xPQkFMIFJPT1Qg +UlNBIENBMB4XDTIxMDEyMTEwNTAzNFoXDTQ2MDExNTEwNTAzNFowYjELMAkGA1UE +BhMCUFQxKjAoBgNVBAoMIURpZ2l0YWxTaWduIENlcnRpZmljYWRvcmEgRGlnaXRh +bDEnMCUGA1UEAwweRElHSVRBTFNJR04gR0xPQkFMIFJPT1QgUlNBIENBMIICIjAN +BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAyIe2ONMc8N4S+IPHxIriibi0Inp4 ++AxmUWh2NwrVT8JaCLgWXPdyAQk3hIEqVGvXktBs+qinQxI06w7bNw8p/ooxUULo +S5yQqMgsEdP9oCl+zt6U9oLgWLRORSXxIvI90w97VBrcMrbWUU5+QbRXuCzGuQ4u +ylfx1cjTWOel6UIRrtMgJZRp14/Kog3D058HaD8V0mcuU/12gpsLc6kpDZ4RkxQI +mOyeVBJKVqIGFexrbC6SYC6GDa6CH1FN47IH1xAZVyL2qWlEhPPZPaAGv8yIfn/1 +zlulwipqdELqb6b/+Wix0F+9kdJVbzNXTB6d5OKLwYVloOBqnAAAiJLdWAgW8nAx +qBzh3r1OcenWvn61oVrDTfe/m72UpP31qlOTRskmAQRwxKBxus4lZvuRflVw7kkK +TWJ/wlCacvIYZ53pRag0hOj4gfbRWiIeB087s3/dEaVz3L6pGTppqW0bMuKJqqUn +C1p+dOIPZDldfly5wRf8x41eyewk7dLyP3qERTcCvj5rWcTmWxZtwKqeqrVZLixw +VZzMmZaYJFTRjtrKtBG0t3BDH2+QCyCgqHYTZdvbI1p1S6ELMXcK7n1oYRoTjOpR +flxWo1dMXaHrE2W/VBTM8+7c1+w8l/J4Vrjfclxw/M4G3Z/SBzHv51KRns2618AY +RAcxZUkyaRNK648CAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAW +gBS1Nrw8jBqrLPZZGS2DFNqTJRXWhjAdBgNVHQ4EFgQUtTa8PIwaqyz2WRktgxTa +kyUV1oYwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDQUAA4ICAQAU+zElODH4 +ygiyI3Y4rfjTWfXMtFcl4US+fvwW7K76Jp9PZxZKVvD97ccZATSOkFot1oBc7HHS +gSWCHgBx35rR1R0iu9Gl82IPtOvcJHP+plbNmhTFBDUWMaIH66UA4rb4X3L9P2FJ +jt5+TTjXeh50N2xR3L4ABLg4FPMgwe2bpyP9DUKEHX/yc8PQeGPxn+zXW+nxvmyg +SwOejWnhFNqIEIEjU//aVCsLxrmWlQQYRvN7qJfYW2ik5DgcDkXlmNMJrppe7LN5 +DTly8vSUnQ6eYCLmqPZMhc0HgjpoOc09X+M49LavO2tKn2BRRaJAAuWqDOM+0XjU +onScJroFmihwSj6mC9AdSfC6+K5BEH6kBxK9qM8pPVe7x/FDRwA+rnAYWiB7Ccs6 +OnCA5UxgmMEVwR1K98jwm+FyreddaFgLBLGMvJ+3+26LWwRV++sjVdd4UNoly74n +NrskGnkcUdH+E7v/eCzcpL4v9sVLU8+nTJlecKxZiASuZAS/e6Z6TdPod72hflAV +8+9JMIVNIVeq2yx1l62BAYeisXCdHgZaA2CxP6ZtgizUFLGBpeg9iB20cixYN4qO +OJS4c92p4Lj2d6KzfFjermk6tYulGrvy2HQGnP1icyAhdrF+cJ4Z1OsXYhk4mc02 +K0f+McvfueSsCNPYpuvUnn5LZKRVXSsXyQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5d:59:c8:ca:ab:09:57:f5:e6:b5:da:29:94:04:6a:ff:c5:d4:95:87 +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=PT, O=DigitalSign Certificadora Digital, CN=DIGITALSIGN GLOBAL ROOT RSA CA +# Validity +# Not Before: Jan 21 10:50:34 2021 GMT +# Not After : Jan 15 10:50:34 2046 GMT +# Subject: C=PT, O=DigitalSign Certificadora Digital, CN=DIGITALSIGN GLOBAL ROOT RSA CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c8:87:b6:38:d3:1c:f0:de:12:f8:83:c7:c4:8a: +# e2:89:b8:b4:22:7a:78:f8:0c:66:51:68:76:37:0a: +# d5:4f:c2:5a:08:b8:16:5c:f7:72:01:09:37:84:81: +# 2a:54:6b:d7:92:d0:6c:fa:a8:a7:43:12:34:eb:0e: +# db:37:0f:29:fe:8a:31:51:42:e8:4b:9c:90:a8:c8: +# 2c:11:d3:fd:a0:29:7e:ce:de:94:f6:82:e0:58:b4: +# 4e:45:25:f1:22:f2:3d:d3:0f:7b:54:1a:dc:32:b6: +# d6:51:4e:7e:41:b4:57:b8:2c:c6:b9:0e:2e:ca:57: +# f1:d5:c8:d3:58:e7:a5:e9:42:11:ae:d3:20:25:94: +# 69:d7:8f:ca:a2:0d:c3:d3:9f:07:68:3f:15:d2:67: +# 2e:53:fd:76:82:9b:0b:73:a9:29:0d:9e:11:93:14: +# 08:98:ec:9e:54:12:4a:56:a2:06:15:ec:6b:6c:2e: +# 92:60:2e:86:0d:ae:82:1f:51:4d:e3:b2:07:d7:10: +# 19:57:22:f6:a9:69:44:84:f3:d9:3d:a0:06:bf:cc: +# 88:7e:7f:f5:ce:5b:a5:c2:2a:6a:74:42:ea:6f:a6: +# ff:f9:68:b1:d0:5f:bd:91:d2:55:6f:33:57:4c:1e: +# 9d:e4:e2:8b:c1:85:65:a0:e0:6a:9c:00:00:88:92: +# dd:58:08:16:f2:70:31:a8:1c:e1:de:bd:4e:71:e9: +# d6:be:7e:b5:a1:5a:c3:4d:f7:bf:9b:bd:94:a4:fd: +# f5:aa:53:93:46:c9:26:01:04:70:c4:a0:71:ba:ce: +# 25:66:fb:91:7e:55:70:ee:49:0a:4d:62:7f:c2:50: +# 9a:72:f2:18:67:9d:e9:45:a8:34:84:e8:f8:81:f6: +# d1:5a:22:1e:07:4f:3b:b3:7f:dd:11:a5:73:dc:be: +# a9:19:3a:69:a9:6d:1b:32:e2:89:aa:a5:27:0b:5a: +# 7e:74:e2:0f:64:39:5d:7e:5c:b9:c1:17:fc:c7:8d: +# 5e:c9:ec:24:ed:d2:f2:3f:7a:84:45:37:02:be:3e: +# 6b:59:c4:e6:5b:16:6d:c0:aa:9e:aa:b5:59:2e:2c: +# 70:55:9c:cc:99:96:98:24:54:d1:8e:da:ca:b4:11: +# b4:b7:70:43:1f:6f:90:0b:20:a0:a8:76:13:65:db: +# db:23:5a:75:4b:a1:0b:31:77:0a:ee:7d:68:61:1a: +# 13:8c:ea:51:7e:5c:56:a3:57:4c:5d:a1:eb:13:65: +# bf:54:14:cc:f3:ee:dc:d7:ec:3c:97:f2:78:56:b8: +# df:72:5c:70:fc:ce:06:dd:9f:d2:07:31:ef:e7:52: +# 91:9e:cd:ba:d7:c0:18:44:07:31:65:49:32:69:13: +# 4a:eb:8f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# B5:36:BC:3C:8C:1A:AB:2C:F6:59:19:2D:83:14:DA:93:25:15:D6:86 +# X509v3 Subject Key Identifier: +# B5:36:BC:3C:8C:1A:AB:2C:F6:59:19:2D:83:14:DA:93:25:15:D6:86 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 14:fb:31:25:38:31:f8:ca:08:b2:23:76:38:ad:f8:d3:59:f5: +# cc:b4:57:25:e1:44:be:7e:fc:16:ec:ae:fa:26:9f:4f:67:16: +# 4a:56:f0:fd:ed:c7:19:01:34:8e:90:5a:2d:d6:80:5c:ec:71: +# d2:81:25:82:1e:00:71:df:9a:d1:d5:1d:22:bb:d1:a5:f3:62: +# 0f:b4:eb:dc:24:73:fe:a6:56:cd:9a:14:c5:04:35:16:31:a2: +# 07:eb:a5:00:e2:b6:f8:5f:72:fd:3f:61:49:8e:de:7e:4d:38: +# d7:7a:1e:74:37:6c:51:dc:be:00:04:b8:38:14:f3:20:c1:ed: +# 9b:a7:23:fd:0d:42:84:1d:7f:f2:73:c3:d0:78:63:f1:9f:ec: +# d7:5b:e9:f1:be:6c:a0:4b:03:9e:8d:69:e1:14:da:88:10:81: +# 23:53:ff:da:54:2b:0b:c6:b9:96:95:04:18:46:f3:7b:a8:97: +# d8:5b:68:a4:e4:38:1c:0e:45:e5:98:d3:09:ae:9a:5e:ec:b3: +# 79:0d:39:72:f2:f4:94:9d:0e:9e:60:22:e6:a8:f6:4c:85:cd: +# 07:82:3a:68:39:cd:3d:5f:e3:38:f4:b6:af:3b:6b:4a:9f:60: +# 51:45:a2:40:02:e5:aa:0c:e3:3e:d1:78:d4:a2:74:9c:26:ba: +# 05:9a:28:70:4a:3e:a6:0b:d0:1d:49:f0:ba:f8:ae:41:10:7e: +# a4:07:12:bd:a8:cf:29:3d:57:bb:c7:f1:43:47:00:3e:ae:70: +# 18:5a:20:7b:09:cb:3a:3a:70:80:e5:4c:60:98:c1:15:c1:1d: +# 4a:f7:c8:f0:9b:e1:72:ad:e7:5d:68:58:0b:04:b1:8c:bc:9f: +# b7:fb:6e:8b:5b:04:55:fb:eb:23:55:d7:78:50:da:25:cb:be: +# 27:36:bb:24:1a:79:1c:51:d1:fe:13:bb:ff:78:2c:dc:a4:be: +# 2f:f6:c5:4b:53:cf:a7:4c:99:5e:70:ac:59:88:04:ae:64:04: +# bf:7b:a6:7a:4d:d3:e8:77:bd:a1:7e:50:15:f3:ef:49:30:85: +# 4d:21:57:aa:db:2c:75:97:ad:81:01:87:a2:b1:70:9d:1e:06: +# 5a:03:60:b1:3f:a6:6d:82:2c:d4:14:b1:81:a5:e8:3d:88:1d: +# b4:72:2c:58:37:8a:8e:38:94:b8:73:dd:a9:e0:b8:f6:77:a2: +# b3:7c:58:de:ae:69:3a:b5:8b:a5:1a:bb:f2:d8:74:06:9c:fd: +# 62:73:20:21:76:b1:7e:70:9e:19:d4:eb:17:62:19:38:99:cd: +# 36:2b:47:fe:31:cb:df:b9:e4:ac:08:d3:d8:a6:eb:d4:9e:7e: +# 4b:64:a4:55:5d:2b:17:c9 + +[p11-kit-object-v1] +label: "D-TRUST BR Root CA 1 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAExsvHKNH7hPWa70IUIOFDa251rfwrA4TU +dpMl11k7QWVrHuY0Krt09hLO6G3nq+Q8Tj9ECIvNFnHLv5KZ9KTXPFBUUpCFg3iU +Z2ejHAkZPXU0hd7tYH3HDLRBUrlu5e5C +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST BR Root CA 1 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQfMmPK4TX3+oPyWWa00tNljAKBggqhkjOPQQDAzBIMQsw +CQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRS +VVNUIEJSIFJvb3QgQ0EgMSAyMDIwMB4XDTIwMDIxMTA5NDUwMFoXDTM1MDIxMTA5 +NDQ1OVowSDELMAkGA1UEBhMCREUxFTATBgNVBAoTDEQtVHJ1c3QgR21iSDEiMCAG +A1UEAxMZRC1UUlVTVCBCUiBSb290IENBIDEgMjAyMDB2MBAGByqGSM49AgEGBSuB +BAAiA2IABMbLxyjR+4T1mu9CFCDhQ2tuda38KwOE1HaTJddZO0Flax7mNCq7dPYS +zuht56vkPE4/RAiLzRZxy7+SmfSk1zxQVFKQhYN4lGdnoxwJGT11NIXe7WB9xwy0 +QVK5buXuQqOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFHOREKv/ +VbNafAkl1bK6CKBrqx9tMA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6g +PKA6hjhodHRwOi8vY3JsLmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X2JyX3Jvb3Rf +Y2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVjdG9yeS5kLXRydXN0Lm5l +dC9DTj1ELVRSVVNUJTIwQlIlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxPPUQtVHJ1 +c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjO +PQQDAwNpADBmAjEAlJAtE/rhY/hhY+ithXhUkZy4kzg+GkHaQBZTQgjKL47xPoFW +wKrY7RjEsK70PvomAjEA8yjixtsrmfu3Ubgko6SUeho/5jbiA1czijDLgsfWFBHV +dWNbFJWcHwHP2NVypw87 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 7c:c9:8f:2b:84:d7:df:ea:0f:c9:65:9a:d3:4b:4d:96 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST BR Root CA 1 2020 +# Validity +# Not Before: Feb 11 09:45:00 2020 GMT +# Not After : Feb 11 09:44:59 2035 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST BR Root CA 1 2020 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:c6:cb:c7:28:d1:fb:84:f5:9a:ef:42:14:20:e1: +# 43:6b:6e:75:ad:fc:2b:03:84:d4:76:93:25:d7:59: +# 3b:41:65:6b:1e:e6:34:2a:bb:74:f6:12:ce:e8:6d: +# e7:ab:e4:3c:4e:3f:44:08:8b:cd:16:71:cb:bf:92: +# 99:f4:a4:d7:3c:50:54:52:90:85:83:78:94:67:67: +# a3:1c:09:19:3d:75:34:85:de:ed:60:7d:c7:0c:b4: +# 41:52:b9:6e:e5:ee:42 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 73:91:10:AB:FF:55:B3:5A:7C:09:25:D5:B2:BA:08:A0:6B:AB:1F:6D +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_br_root_ca_1_2020.crl +# +# Full Name: +# URI:ldap://directory.d-trust.net/CN=D-TRUST%20BR%20Root%20CA%201%202020,O=D-Trust%20GmbH,C=DE?certificaterevocationlist +# +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:94:90:2d:13:fa:e1:63:f8:61:63:e8:ad:85: +# 78:54:91:9c:b8:93:38:3e:1a:41:da:40:16:53:42:08:ca:2f: +# 8e:f1:3e:81:56:c0:aa:d8:ed:18:c4:b0:ae:f4:3e:fa:26:02: +# 31:00:f3:28:e2:c6:db:2b:99:fb:b7:51:b8:24:a3:a4:94:7a: +# 1a:3f:e6:36:e2:03:57:33:8a:30:cb:82:c7:d6:14:11:d5:75: +# 63:5b:14:95:9c:1f:01:cf:d8:d5:72:a7:0f:3b + +[p11-kit-object-v1] +label: "D-TRUST BR Root CA 2 2023" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArv8JWZGACkpo5iQ/uKfk +yDoKOhbNySNhoJNx8quLc4+gZ2Vg0lRrY1FvSTPgcgcTfTjNBpIHKVJrTndsBNOV ++t1MjNldwWF9S+cos0SBe1Gv3TOxaHzWTkz+K2i5ymZpxOxeV3/3DcecNjblB2Cs +wEzqCGzvBnxPWyh6CPyTXZv2nLSLhrohufTw6FlaKKE0hBolkba1j++y+YD6+T08 +EXLY4y+GdsV5LMGpkJNGmGfLg2qgUCOnO/aBOeDt8Lm/ZfHYy3r773MDzgD0fdfg +XTtmuNyOuoPLh3YD/CXZ5yNvBv1n8+D/hLxHv7UWGEZpFMwF99vTSaxrzKvktQtD +JF5La01n39a1Pk94H5RxJOrecPzxk/6ek1rklFqXVAw1e19s7gAfJOwDugL1dvSf +1JrthSw4Ii/H2C92EU/9bFzo9Y4nh38ZSiFHkB15jRxb+M9KheTts1uNvsRkKF1B +xG6sOFpPI3R0qRLD9tK5ERUzB5HYOzc6YzAG0cUiNihiIxDgRsyXrNYrXWQk1e4c +Dt77CFp1KvZjbc4LQr7RunAcnCHlDzFpF9f8CrTe7YCcy5K0i/XeWaJYCaVjRwvh +QTI0QdmasdmosBta3g0N9OKyXTWAuYHUhGmRAst10I3FtT0JkQmPFKEUdHk+1skV +HaRZWSLc9opFPTwS1j5dMi8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST BR Root CA 2 2023" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFqTCCA5GgAwIBAgIQczswBEhb2U14LnNLyaHcZjANBgkqhkiG9w0BAQ0FADBI +MQswCQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlE +LVRSVVNUIEJSIFJvb3QgQ0EgMiAyMDIzMB4XDTIzMDUwOTA4NTYzMVoXDTM4MDUw +OTA4NTYzMFowSDELMAkGA1UEBhMCREUxFTATBgNVBAoTDEQtVHJ1c3QgR21iSDEi +MCAGA1UEAxMZRC1UUlVTVCBCUiBSb290IENBIDIgMjAyMzCCAiIwDQYJKoZIhvcN +AQEBBQADggIPADCCAgoCggIBAK7/CVmRgApKaOYkP7in5Mg6CjoWzckjYaCTcfKr +i3OPoGdlYNJUa2NRb0kz4HIHE304zQaSBylSa053bATTlfrdTIzZXcFhfUvnKLNE +gXtRr90zsWh81k5M/itoucpmacTsXld/9w3HnDY25QdgrMBM6ghs7wZ8T1soegj8 +k12b9py0i4a6Ibn08OhZWiihNIQaJZG2tY/vsvmA+vk9PBFy2OMvhnbFeSzBqZCT +Rphny4NqoFAjpzv2gTng7fC5v2Xx2Mt6++9zA84A9H3X4F07ZrjcjrqDy4d2A/wl +2ecjbwb9Z/Pg/4S8R7+1FhhGaRTMBffb00msa8yr5LULQyReS2tNZ9/WtT5PeB+U +cSTq3nD88ZP+npNa5JRal1QMNXtfbO4AHyTsA7oC9Xb0n9Sa7YUsOCIvx9gvdhFP +/Wxc6PWOJ4d/GUohR5AdeY0cW/jPSoXk7bNbjb7EZChdQcRurDhaTyN0dKkSw/bS +uREVMweR2Ds3OmMwBtHFIjYoYiMQ4EbMl6zWK11kJNXuHA7e+whadSr2Y23OC0K+ +0bpwHJwh5Q8xaRfX/Aq03u2AnMuStIv13lmiWAmlY0cL4UEyNEHZmrHZqLAbWt4N +DfTisl01gLmB1IRpkQLLddCNxbU9CZEJjxShFHR5PtbJFR2kWVki3PaKRT08EtY+ +XTIvAgMBAAGjgY4wgYswDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ5Dw1t61 +GNVGKX5cq/ieCLxklRAwDgYDVR0PAQH/BAQDAgEGMEkGA1UdHwRCMEAwPqA8oDqG +OGh0dHA6Ly9jcmwuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3RfYnJfcm9vdF9jYV8y +XzIwMjMuY3JsMA0GCSqGSIb3DQEBDQUAA4ICAQA097N3U9swFrktpSHxQCF16+tI +FoE9c+CeJyrrd6kTpGoKWloUMz1oH4Guaf2Mn2VsNELZLdB/eBaxOqwjMa1ef67n +riv6uvw8l5VAk1/DLQOj7aRvU9f6QA4w9QAgLABMjDu0ox+2v5Eyq6+SmNMW5tTR +VFxDWy6u71cqqLRvpO8NVhTaIasgdp4D/Ca4nj8+AybmTNudX0KEPUUDAxxZiMrc +LmEkWqTqJwtzEr5SswrPMhfiHocaFpVIbVrg0M8JkiZmkdijYQ6qgYF/6FKC0ULn +4B0Y+qSFNueG4A3rvNTJ1jxD8V1Jbn6Bm2m1iWKPiFLY1/4nwSPFyysCu7Ff/vtD +hQNGvl3GyiEm/9cCnnRK3PgTFbGBVzbLZVzRHTF36SXDw7IyN9XxmAnkbWOACKsG +koHU6XCPpz+y7YaMgmo1yEJagtFSGkUPFaUA8JR7ZSdXOUPPfH/mvTWze/EZTN46 +ls/pdu4D58JDUjxqgejBWoC9EV2Ta/vH5mQ/u2kc6d0li690yVRAysuTEwrt+2aS +Ecr1wPrYg1UDfNPFIkZ1cGt5SAYqgpq/5usWDiJFAbzdNpQ0qTUmiteXue4Icr80 +knCDgKs4qllo3UCkGJCy89UDyibK79XH4I9TjvAA46jtn/mtd+ArY0+ew+43u3gJ +hJ65bvspmZDogNOfJA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 73:3b:30:04:48:5b:d9:4d:78:2e:73:4b:c9:a1:dc:66 +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST BR Root CA 2 2023 +# Validity +# Not Before: May 9 08:56:31 2023 GMT +# Not After : May 9 08:56:30 2038 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST BR Root CA 2 2023 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ae:ff:09:59:91:80:0a:4a:68:e6:24:3f:b8:a7: +# e4:c8:3a:0a:3a:16:cd:c9:23:61:a0:93:71:f2:ab: +# 8b:73:8f:a0:67:65:60:d2:54:6b:63:51:6f:49:33: +# e0:72:07:13:7d:38:cd:06:92:07:29:52:6b:4e:77: +# 6c:04:d3:95:fa:dd:4c:8c:d9:5d:c1:61:7d:4b:e7: +# 28:b3:44:81:7b:51:af:dd:33:b1:68:7c:d6:4e:4c: +# fe:2b:68:b9:ca:66:69:c4:ec:5e:57:7f:f7:0d:c7: +# 9c:36:36:e5:07:60:ac:c0:4c:ea:08:6c:ef:06:7c: +# 4f:5b:28:7a:08:fc:93:5d:9b:f6:9c:b4:8b:86:ba: +# 21:b9:f4:f0:e8:59:5a:28:a1:34:84:1a:25:91:b6: +# b5:8f:ef:b2:f9:80:fa:f9:3d:3c:11:72:d8:e3:2f: +# 86:76:c5:79:2c:c1:a9:90:93:46:98:67:cb:83:6a: +# a0:50:23:a7:3b:f6:81:39:e0:ed:f0:b9:bf:65:f1: +# d8:cb:7a:fb:ef:73:03:ce:00:f4:7d:d7:e0:5d:3b: +# 66:b8:dc:8e:ba:83:cb:87:76:03:fc:25:d9:e7:23: +# 6f:06:fd:67:f3:e0:ff:84:bc:47:bf:b5:16:18:46: +# 69:14:cc:05:f7:db:d3:49:ac:6b:cc:ab:e4:b5:0b: +# 43:24:5e:4b:6b:4d:67:df:d6:b5:3e:4f:78:1f:94: +# 71:24:ea:de:70:fc:f1:93:fe:9e:93:5a:e4:94:5a: +# 97:54:0c:35:7b:5f:6c:ee:00:1f:24:ec:03:ba:02: +# f5:76:f4:9f:d4:9a:ed:85:2c:38:22:2f:c7:d8:2f: +# 76:11:4f:fd:6c:5c:e8:f5:8e:27:87:7f:19:4a:21: +# 47:90:1d:79:8d:1c:5b:f8:cf:4a:85:e4:ed:b3:5b: +# 8d:be:c4:64:28:5d:41:c4:6e:ac:38:5a:4f:23:74: +# 74:a9:12:c3:f6:d2:b9:11:15:33:07:91:d8:3b:37: +# 3a:63:30:06:d1:c5:22:36:28:62:23:10:e0:46:cc: +# 97:ac:d6:2b:5d:64:24:d5:ee:1c:0e:de:fb:08:5a: +# 75:2a:f6:63:6d:ce:0b:42:be:d1:ba:70:1c:9c:21: +# e5:0f:31:69:17:d7:fc:0a:b4:de:ed:80:9c:cb:92: +# b4:8b:f5:de:59:a2:58:09:a5:63:47:0b:e1:41:32: +# 34:41:d9:9a:b1:d9:a8:b0:1b:5a:de:0d:0d:f4:e2: +# b2:5d:35:80:b9:81:d4:84:69:91:02:cb:75:d0:8d: +# c5:b5:3d:09:91:09:8f:14:a1:14:74:79:3e:d6:c9: +# 15:1d:a4:59:59:22:dc:f6:8a:45:3d:3c:12:d6:3e: +# 5d:32:2f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 67:90:F0:D6:DE:B5:18:D5:46:29:7E:5C:AB:F8:9E:08:BC:64:95:10 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_br_root_ca_2_2023.crl +# +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 34:f7:b3:77:53:db:30:16:b9:2d:a5:21:f1:40:21:75:eb:eb: +# 48:16:81:3d:73:e0:9e:27:2a:eb:77:a9:13:a4:6a:0a:5a:5a: +# 14:33:3d:68:1f:81:ae:69:fd:8c:9f:65:6c:34:42:d9:2d:d0: +# 7f:78:16:b1:3a:ac:23:31:ad:5e:7f:ae:e7:ae:2b:fa:ba:fc: +# 3c:97:95:40:93:5f:c3:2d:03:a3:ed:a4:6f:53:d7:fa:40:0e: +# 30:f5:00:20:2c:00:4c:8c:3b:b4:a3:1f:b6:bf:91:32:ab:af: +# 92:98:d3:16:e6:d4:d1:54:5c:43:5b:2e:ae:ef:57:2a:a8:b4: +# 6f:a4:ef:0d:56:14:da:21:ab:20:76:9e:03:fc:26:b8:9e:3f: +# 3e:03:26:e6:4c:db:9d:5f:42:84:3d:45:03:03:1c:59:88:ca: +# dc:2e:61:24:5a:a4:ea:27:0b:73:12:be:52:b3:0a:cf:32:17: +# e2:1e:87:1a:16:95:48:6d:5a:e0:d0:cf:09:92:26:66:91:d8: +# a3:61:0e:aa:81:81:7f:e8:52:82:d1:42:e7:e0:1d:18:fa:a4: +# 85:36:e7:86:e0:0d:eb:bc:d4:c9:d6:3c:43:f1:5d:49:6e:7e: +# 81:9b:69:b5:89:62:8f:88:52:d8:d7:fe:27:c1:23:c5:cb:2b: +# 02:bb:b1:5f:fe:fb:43:85:03:46:be:5d:c6:ca:21:26:ff:d7: +# 02:9e:74:4a:dc:f8:13:15:b1:81:57:36:cb:65:5c:d1:1d:31: +# 77:e9:25:c3:c3:b2:32:37:d5:f1:98:09:e4:6d:63:80:08:ab: +# 06:92:81:d4:e9:70:8f:a7:3f:b2:ed:86:8c:82:6a:35:c8:42: +# 5a:82:d1:52:1a:45:0f:15:a5:00:f0:94:7b:65:27:57:39:43: +# cf:7c:7f:e6:bd:35:b3:7b:f1:19:4c:de:3a:96:cf:e9:76:ee: +# 03:e7:c2:43:52:3c:6a:81:e8:c1:5a:80:bd:11:5d:93:6b:fb: +# c7:e6:64:3f:bb:69:1c:e9:dd:25:8b:af:74:c9:54:40:ca:cb: +# 93:13:0a:ed:fb:66:92:11:ca:f5:c0:fa:d8:83:55:03:7c:d3: +# c5:22:46:75:70:6b:79:48:06:2a:82:9a:bf:e6:eb:16:0e:22: +# 45:01:bc:dd:36:94:34:a9:35:26:8a:d7:97:b9:ee:08:72:bf: +# 34:92:70:83:80:ab:38:aa:59:68:dd:40:a4:18:90:b2:f3:d5: +# 03:ca:26:ca:ef:d5:c7:e0:8f:53:8e:f0:00:e3:a8:ed:9f:f9: +# ad:77:e0:2b:63:4f:9e:c3:ee:37:bb:78:09:84:9e:b9:6e:fb: +# 29:99:90:e8:80:d3:9f:24 + +[p11-kit-object-v1] +label: "D-TRUST EV Root CA 1 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8QvdhkMgGd+XhegiSpvPnZi/tAUmycvj +ptKPxZ54ezGJqYmtJzxlEIL838OdTvAzI8TSMvUcsN8zF13F8LGK+e+5txTKKUrC +D6l/dWVJKjBn9GT31hp32sPCl2FCe0mt +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST EV Root CA 1 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQXwJB13qHfEwDo6yWjfv/0DAKBggqhkjOPQQDAzBIMQsw +CQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRS +VVNUIEVWIFJvb3QgQ0EgMSAyMDIwMB4XDTIwMDIxMTEwMDAwMFoXDTM1MDIxMTA5 +NTk1OVowSDELMAkGA1UEBhMCREUxFTATBgNVBAoTDEQtVHJ1c3QgR21iSDEiMCAG +A1UEAxMZRC1UUlVTVCBFViBSb290IENBIDEgMjAyMDB2MBAGByqGSM49AgEGBSuB +BAAiA2IABPEL3YZDIBnfl4XoIkqbz52Yv7QFJsnL46bSj8WeeHsxiamJrSc8ZRCC +/N/DnU7wMyPE0jL1HLDfMxddxfCxivnvubcUyilKwg+pf3VlSSowZ/Rk99Yad9rD +wpdhQntJraOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFH8QARY3 +OqQo5FD4pPfsazK2/umLMA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6g +PKA6hjhodHRwOi8vY3JsLmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X2V2X3Jvb3Rf +Y2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVjdG9yeS5kLXRydXN0Lm5l +dC9DTj1ELVRSVVNUJTIwRVYlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxPPUQtVHJ1 +c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjO +PQQDAwNpADBmAjEAyjzGKnXCXnViOTYAYFqLwZOZzNnbQTs7h5kXO9XMT8oi96CA +y/m0sRtW9XLS/BnRAjEAkfcwkz8QRitxpNA7RJvAKQIFskF3UfN5Wp6OFKBOQtJb +gfM0agPnIjhQW+0ZT0MW +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5f:02:41:d7:7a:87:7c:4c:03:a3:ac:96:8d:fb:ff:d0 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST EV Root CA 1 2020 +# Validity +# Not Before: Feb 11 10:00:00 2020 GMT +# Not After : Feb 11 09:59:59 2035 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST EV Root CA 1 2020 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:f1:0b:dd:86:43:20:19:df:97:85:e8:22:4a:9b: +# cf:9d:98:bf:b4:05:26:c9:cb:e3:a6:d2:8f:c5:9e: +# 78:7b:31:89:a9:89:ad:27:3c:65:10:82:fc:df:c3: +# 9d:4e:f0:33:23:c4:d2:32:f5:1c:b0:df:33:17:5d: +# c5:f0:b1:8a:f9:ef:b9:b7:14:ca:29:4a:c2:0f:a9: +# 7f:75:65:49:2a:30:67:f4:64:f7:d6:1a:77:da:c3: +# c2:97:61:42:7b:49:ad +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 7F:10:01:16:37:3A:A4:28:E4:50:F8:A4:F7:EC:6B:32:B6:FE:E9:8B +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_ev_root_ca_1_2020.crl +# +# Full Name: +# URI:ldap://directory.d-trust.net/CN=D-TRUST%20EV%20Root%20CA%201%202020,O=D-Trust%20GmbH,C=DE?certificaterevocationlist +# +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:ca:3c:c6:2a:75:c2:5e:75:62:39:36:00:60: +# 5a:8b:c1:93:99:cc:d9:db:41:3b:3b:87:99:17:3b:d5:cc:4f: +# ca:22:f7:a0:80:cb:f9:b4:b1:1b:56:f5:72:d2:fc:19:d1:02: +# 31:00:91:f7:30:93:3f:10:46:2b:71:a4:d0:3b:44:9b:c0:29: +# 02:05:b2:41:77:51:f3:79:5a:9e:8e:14:a0:4e:42:d2:5b:81: +# f3:34:6a:03:e7:22:38:50:5b:ed:19:4f:43:16 + +[p11-kit-object-v1] +label: "D-TRUST EV Root CA 2 2023" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2I6jiYALsldS3KlTTDe5 +f2MXE++nWyNbaXWwmQoXwYvE26jgzDG6wvLNXem3+B2vasSVh9dHyZXYggRQPYEI +/+Q9s7HWxbL9iAnbnITsJRcUh38weJtqWMm2cyg8NPeZ93/TpvgcRXytLIyUP9hn +EFN+Is1OJVHwJSQ1EV4QxuyHZomBaLrMK51Hcx+9zZGkcmqcohsYoG/sUPR9QMKo +MM+9c8gTKxATHouaqDqUc9MYaQpK/8EBA/95f7VIf3vu6ClvNkyVYYbY+aJziu6u +L5buaM09TShC+UUrMhtGVRZqpksp+buVVr9GHewdkx3AZbIfoUOuVp6gsY9rErdg +bXgLyopc7R6WDoOmSJWNO6MhxK5YxgCyhLQjpJaGNbjYntisNEmYY5XFy21IR+Ly +Lhge0DGr3XTs+dyMuByOaCO60PNQ3M9lj3M6Msd8/sqCIk++jmJHZuXNh+Lo1Q8Y +n+UEcktGPBDyRMJkVnFOdeicySZ0xX1Z0QpbD23+nnUcGMYaOnzYDQTMzbdFZXqx +j7iuhEg+s3pNqAPi4n4BFlloGEMzsNLcsBpDNe6l2qlGXK6GgUEBSnQm7J8Gv8IF +N2R1eClo/cX16/5H+eSFsOF7MZ2mf3KjucQsLsyZVw4hDEUBlGXrZQnGYyILM0mS +SDz8zc6wPo6ei/j+ScU1ckcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST EV Root CA 2 2023" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFqTCCA5GgAwIBAgIQaSYJfoBLTKCnjHhiU19abzANBgkqhkiG9w0BAQ0FADBI +MQswCQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlE +LVRSVVNUIEVWIFJvb3QgQ0EgMiAyMDIzMB4XDTIzMDUwOTA5MTAzM1oXDTM4MDUw +OTA5MTAzMlowSDELMAkGA1UEBhMCREUxFTATBgNVBAoTDEQtVHJ1c3QgR21iSDEi +MCAGA1UEAxMZRC1UUlVTVCBFViBSb290IENBIDIgMjAyMzCCAiIwDQYJKoZIhvcN +AQEBBQADggIPADCCAgoCggIBANiOo4mAC7JXUtypU0w3uX9jFxPvp1sjW2l1sJkK +F8GLxNuo4MwxusLyzV3pt/gdr2rElYfXR8mV2IIEUD2BCP/kPbOx1sWy/YgJ25yE +7CUXFId/MHibaljJtnMoPDT3mfd/06b4HEV8rSyMlD/YZxBTfiLNTiVR8CUkNRFe +EMbsh2aJgWi6zCudR3Mfvc2RpHJqnKIbGKBv7FD0fUDCqDDPvXPIEysQEx6Lmqg6 +lHPTGGkKSv/BAQP/eX+1SH977ugpbzZMlWGG2Pmic4ruri+W7mjNPU0oQvlFKzIb +RlUWaqZLKfm7lVa/Rh3sHZMdwGWyH6FDrlaeoLGPaxK3YG14C8qKXO0elg6DpkiV +jTujIcSuWMYAsoS0I6SWhjW42J7YrDRJmGOVxcttSEfi8i4YHtAxq9107PncjLgc +jmgjutDzUNzPZY9zOjLHfP7KgiJPvo5iR2blzYfi6NUPGJ/lBHJLRjwQ8kTCZFZx +TnXonMkmdMV9WdEKWw9t/p51HBjGGjp82A0EzM23RWV6sY+4roRIPrN6TagD4uJ+ +ARZZaBhDM7DS3LAaQzXupdqpRlyuhoFBAUp0JuyfBr/CBTdkdXgpaP3F9ev+R/nk +hbDhezGdpn9yo7nELC7MmVcOIQxFAZRl62UJxmMiCzNJkkg8/M3OsD6Onov4/knF +NXJHAgMBAAGjgY4wgYswDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUqvyREBuH +kV8Wub9PS5FeAByxMoAwDgYDVR0PAQH/BAQDAgEGMEkGA1UdHwRCMEAwPqA8oDqG +OGh0dHA6Ly9jcmwuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3RfZXZfcm9vdF9jYV8y +XzIwMjMuY3JsMA0GCSqGSIb3DQEBDQUAA4ICAQCTy6UfmRHsmg1fLBWTxj++EI14 +QvBukEdHjqOSMo1wj/Zbjb6JzkcBahsgIIlbyIIQbODnmaprxiqgYzWRaoUlrRc4 +pZt+UPJ26oUFKidBK7GB0aL2QHWpDsvxVUjY7NHss+jOFKE17MJeNRqrphYBBo7q +3C+jisosketSjl8MmxfPy3MHGcRqwnNU73xDUmPBEcrCRbH0O1P1aa4846XerOhU +t7KR/aypH/KH5BfGSah82ApB9PI+53c0BFLd6IHyTS9URZ0V4U/M5d40VxDJI3IX +cI1QcB9WbMy5/zpaT2N6w25lBx2Eof+pDGOJbbJAiDnXH3dotfyc1dZnaVuodNv8 +ifYbMvekJKZ2t0dT741Jj6m2g1qllpBFYfXeA08mD6iL8AOWsKwV0HFaanuU5nCT +2vFp4LJiTZ6P/4mdm13NRemUAiKN4DV/6PEEeXFsVIP4M7kFMhtYVRFP0OUnR3Hs +7dpn1mKmS00PaaLJvOwiS5THaJQXfuKOKD62xur1NGyfN4gHONuGcfrNlUhDbqNP +gofXNJhuS5N5YHVpD/Aa1VP6IQzCP+k/HxiMkl14p3ZnGbuy6n/pcAlWVqOwDAst +Nl7F6cTVg8uGF5csbBNvh1qvSaYd2804BC5f4ko1Di1L+KIkBI3Y4WNeApI02phh +XBxvWHZks/wCuPWdCg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 69:26:09:7e:80:4b:4c:a0:a7:8c:78:62:53:5f:5a:6f +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST EV Root CA 2 2023 +# Validity +# Not Before: May 9 09:10:33 2023 GMT +# Not After : May 9 09:10:32 2038 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST EV Root CA 2 2023 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d8:8e:a3:89:80:0b:b2:57:52:dc:a9:53:4c:37: +# b9:7f:63:17:13:ef:a7:5b:23:5b:69:75:b0:99:0a: +# 17:c1:8b:c4:db:a8:e0:cc:31:ba:c2:f2:cd:5d:e9: +# b7:f8:1d:af:6a:c4:95:87:d7:47:c9:95:d8:82:04: +# 50:3d:81:08:ff:e4:3d:b3:b1:d6:c5:b2:fd:88:09: +# db:9c:84:ec:25:17:14:87:7f:30:78:9b:6a:58:c9: +# b6:73:28:3c:34:f7:99:f7:7f:d3:a6:f8:1c:45:7c: +# ad:2c:8c:94:3f:d8:67:10:53:7e:22:cd:4e:25:51: +# f0:25:24:35:11:5e:10:c6:ec:87:66:89:81:68:ba: +# cc:2b:9d:47:73:1f:bd:cd:91:a4:72:6a:9c:a2:1b: +# 18:a0:6f:ec:50:f4:7d:40:c2:a8:30:cf:bd:73:c8: +# 13:2b:10:13:1e:8b:9a:a8:3a:94:73:d3:18:69:0a: +# 4a:ff:c1:01:03:ff:79:7f:b5:48:7f:7b:ee:e8:29: +# 6f:36:4c:95:61:86:d8:f9:a2:73:8a:ee:ae:2f:96: +# ee:68:cd:3d:4d:28:42:f9:45:2b:32:1b:46:55:16: +# 6a:a6:4b:29:f9:bb:95:56:bf:46:1d:ec:1d:93:1d: +# c0:65:b2:1f:a1:43:ae:56:9e:a0:b1:8f:6b:12:b7: +# 60:6d:78:0b:ca:8a:5c:ed:1e:96:0e:83:a6:48:95: +# 8d:3b:a3:21:c4:ae:58:c6:00:b2:84:b4:23:a4:96: +# 86:35:b8:d8:9e:d8:ac:34:49:98:63:95:c5:cb:6d: +# 48:47:e2:f2:2e:18:1e:d0:31:ab:dd:74:ec:f9:dc: +# 8c:b8:1c:8e:68:23:ba:d0:f3:50:dc:cf:65:8f:73: +# 3a:32:c7:7c:fe:ca:82:22:4f:be:8e:62:47:66:e5: +# cd:87:e2:e8:d5:0f:18:9f:e5:04:72:4b:46:3c:10: +# f2:44:c2:64:56:71:4e:75:e8:9c:c9:26:74:c5:7d: +# 59:d1:0a:5b:0f:6d:fe:9e:75:1c:18:c6:1a:3a:7c: +# d8:0d:04:cc:cd:b7:45:65:7a:b1:8f:b8:ae:84:48: +# 3e:b3:7a:4d:a8:03:e2:e2:7e:01:16:59:68:18:43: +# 33:b0:d2:dc:b0:1a:43:35:ee:a5:da:a9:46:5c:ae: +# 86:81:41:01:4a:74:26:ec:9f:06:bf:c2:05:37:64: +# 75:78:29:68:fd:c5:f5:eb:fe:47:f9:e4:85:b0:e1: +# 7b:31:9d:a6:7f:72:a3:b9:c4:2c:2e:cc:99:57:0e: +# 21:0c:45:01:94:65:eb:65:09:c6:63:22:0b:33:49: +# 92:48:3c:fc:cd:ce:b0:3e:8e:9e:8b:f8:fe:49:c5: +# 35:72:47 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# AA:FC:91:10:1B:87:91:5F:16:B9:BF:4F:4B:91:5E:00:1C:B1:32:80 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_ev_root_ca_2_2023.crl +# +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 93:cb:a5:1f:99:11:ec:9a:0d:5f:2c:15:93:c6:3f:be:10:8d: +# 78:42:f0:6e:90:47:47:8e:a3:92:32:8d:70:8f:f6:5b:8d:be: +# 89:ce:47:01:6a:1b:20:20:89:5b:c8:82:10:6c:e0:e7:99:aa: +# 6b:c6:2a:a0:63:35:91:6a:85:25:ad:17:38:a5:9b:7e:50:f2: +# 76:ea:85:05:2a:27:41:2b:b1:81:d1:a2:f6:40:75:a9:0e:cb: +# f1:55:48:d8:ec:d1:ec:b3:e8:ce:14:a1:35:ec:c2:5e:35:1a: +# ab:a6:16:01:06:8e:ea:dc:2f:a3:8a:ca:2c:91:eb:52:8e:5f: +# 0c:9b:17:cf:cb:73:07:19:c4:6a:c2:73:54:ef:7c:43:52:63: +# c1:11:ca:c2:45:b1:f4:3b:53:f5:69:ae:3c:e3:a5:de:ac:e8: +# 54:b7:b2:91:fd:ac:a9:1f:f2:87:e4:17:c6:49:a8:7c:d8:0a: +# 41:f4:f2:3e:e7:77:34:04:52:dd:e8:81:f2:4d:2f:54:45:9d: +# 15:e1:4f:cc:e5:de:34:57:10:c9:23:72:17:70:8d:50:70:1f: +# 56:6c:cc:b9:ff:3a:5a:4f:63:7a:c3:6e:65:07:1d:84:a1:ff: +# a9:0c:63:89:6d:b2:40:88:39:d7:1f:77:68:b5:fc:9c:d5:d6: +# 67:69:5b:a8:74:db:fc:89:f6:1b:32:f7:a4:24:a6:76:b7:47: +# 53:ef:8d:49:8f:a9:b6:83:5a:a5:96:90:45:61:f5:de:03:4f: +# 26:0f:a8:8b:f0:03:96:b0:ac:15:d0:71:5a:6a:7b:94:e6:70: +# 93:da:f1:69:e0:b2:62:4d:9e:8f:ff:89:9d:9b:5d:cd:45:e9: +# 94:02:22:8d:e0:35:7f:e8:f1:04:79:71:6c:54:83:f8:33:b9: +# 05:32:1b:58:55:11:4f:d0:e5:27:47:71:ec:ed:da:67:d6:62: +# a6:4b:4d:0f:69:a2:c9:bc:ec:22:4b:94:c7:68:94:17:7e:e2: +# 8e:28:3e:b6:c6:ea:f5:34:6c:9f:37:88:07:38:db:86:71:fa: +# cd:95:48:43:6e:a3:4f:82:87:d7:34:98:6e:4b:93:79:60:75: +# 69:0f:f0:1a:d5:53:fa:21:0c:c2:3f:e9:3f:1f:18:8c:92:5d: +# 78:a7:76:67:19:bb:b2:ea:7f:e9:70:09:56:56:a3:b0:0c:0b: +# 2d:36:5e:c5:e9:c4:d5:83:cb:86:17:97:2c:6c:13:6f:87:5a: +# af:49:a6:1d:db:cd:38:04:2e:5f:e2:4a:35:0e:2d:4b:f8:a2: +# 24:04:8d:d8:e1:63:5e:02:92:34:da:98:61:5c:1c:6f:58:76: +# 64:b3:fc:02:b8:f5:9d:0a + +[p11-kit-object-v1] +label: "D-TRUST Root CA 3 2013" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxHtCkoIf7O1UmI4SwMoJ +35NuOpNcG+QQd55OaYhs9uFp8vabomGxvQcgdJhl8YwmCM2oNcqANtFjbehEeoLD +bF7eu+g20sRoNoyfMr2EIuDcwu4QRjltr5M5rofmw7wJySxrZ1vZm3Z1TAvgu8XX +vD558l++0ZBX+a72Zl8xv9Ntj6e6SvMjZbu376Ml1wrqWLbviPr6ebJSWNXwrIyh +UXQplapRO5AyA58ccnSQ3j3tYdLl4/1kR+W5t0qp9x+uloYErC/jpIF3t1oW/9gP +P/a3eMykr/pbPBJbqFKJcu+I89VEgYaVI5973bzZNO98lDyqwEHC451QGsDkGSL8 +swIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST Root CA 3 2013" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEDjCCAvagAwIBAgIDD92sMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNVBAYTAkRF +MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxHzAdBgNVBAMMFkQtVFJVU1QgUm9vdCBD +QSAzIDIwMTMwHhcNMTMwOTIwMDgyNTUxWhcNMjgwOTIwMDgyNTUxWjBFMQswCQYD +VQQGEwJERTEVMBMGA1UECgwMRC1UcnVzdCBHbWJIMR8wHQYDVQQDDBZELVRSVVNU +IFJvb3QgQ0EgMyAyMDEzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA +xHtCkoIf7O1UmI4SwMoJ35NuOpNcG+QQd55OaYhs9uFp8vabomGxvQcgdJhl8Ywm +CM2oNcqANtFjbehEeoLDbF7eu+g20sRoNoyfMr2EIuDcwu4QRjltr5M5rofmw7wJ +ySxrZ1vZm3Z1TAvgu8XXvD558l++0ZBX+a72Zl8xv9Ntj6e6SvMjZbu376Ml1wrq +WLbviPr6ebJSWNXwrIyhUXQplapRO5AyA58ccnSQ3j3tYdLl4/1kR+W5t0qp9x+u +loYErC/jpIF3t1oW/9gPP/a3eMykr/pbPBJbqFKJcu+I89VEgYaVI5973bzZNO98 +lDyqwEHC451QGsDkGSL8swIDAQABo4IBBTCCAQEwDwYDVR0TAQH/BAUwAwEB/zAd +BgNVHQ4EFgQUP5DIfccVb/Mkj6nDL0uiDyGyL+cwDgYDVR0PAQH/BAQDAgEGMIG+ +BgNVHR8EgbYwgbMwdKByoHCGbmxkYXA6Ly9kaXJlY3RvcnkuZC10cnVzdC5uZXQv +Q049RC1UUlVTVCUyMFJvb3QlMjBDQSUyMDMlMjAyMDEzLE89RC1UcnVzdCUyMEdt +YkgsQz1ERT9jZXJ0aWZpY2F0ZXJldm9jYXRpb25saXN0MDugOaA3hjVodHRwOi8v +Y3JsLmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2FfM18yMDEzLmNybDAN +BgkqhkiG9w0BAQsFAAOCAQEADlkOWOR0SCNEzzQhtZwUGq2aS7eziG1cqRdw8Cqf +jXv5e4X6xznoEAiwNStfzwLS05zICx7uBVSuN5MECX1sj8J0vPgclL4xAUAt8yQg +t4RVLFzI9XRKEBmLo8ftNdYJSNMOwLo5qLBGArDbxohZwr78e7Erz35ih1WWzAFv +m2chlTWL+BD8cRu3SzdppjvW7IvuwbDzJcmPkn2h6sPKRL8mpXSSnON065102ctN +h9j8tGlsi6BDB2B4l+nZk3zCRrybN1Kj7Yo8E6l7U0tJmhEFLAtuVqwfLoJs4Gln +tQ5tLdnkwBXxP/oYcuEVbSdbLTAoK59ImmQrme/ydUlfXA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1039788 (0xfddac) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST Root CA 3 2013 +# Validity +# Not Before: Sep 20 08:25:51 2013 GMT +# Not After : Sep 20 08:25:51 2028 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST Root CA 3 2013 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:c4:7b:42:92:82:1f:ec:ed:54:98:8e:12:c0:ca: +# 09:df:93:6e:3a:93:5c:1b:e4:10:77:9e:4e:69:88: +# 6c:f6:e1:69:f2:f6:9b:a2:61:b1:bd:07:20:74:98: +# 65:f1:8c:26:08:cd:a8:35:ca:80:36:d1:63:6d:e8: +# 44:7a:82:c3:6c:5e:de:bb:e8:36:d2:c4:68:36:8c: +# 9f:32:bd:84:22:e0:dc:c2:ee:10:46:39:6d:af:93: +# 39:ae:87:e6:c3:bc:09:c9:2c:6b:67:5b:d9:9b:76: +# 75:4c:0b:e0:bb:c5:d7:bc:3e:79:f2:5f:be:d1:90: +# 57:f9:ae:f6:66:5f:31:bf:d3:6d:8f:a7:ba:4a:f3: +# 23:65:bb:b7:ef:a3:25:d7:0a:ea:58:b6:ef:88:fa: +# fa:79:b2:52:58:d5:f0:ac:8c:a1:51:74:29:95:aa: +# 51:3b:90:32:03:9f:1c:72:74:90:de:3d:ed:61:d2: +# e5:e3:fd:64:47:e5:b9:b7:4a:a9:f7:1f:ae:96:86: +# 04:ac:2f:e3:a4:81:77:b7:5a:16:ff:d8:0f:3f:f6: +# b7:78:cc:a4:af:fa:5b:3c:12:5b:a8:52:89:72:ef: +# 88:f3:d5:44:81:86:95:23:9f:7b:dd:bc:d9:34:ef: +# 7c:94:3c:aa:c0:41:c2:e3:9d:50:1a:c0:e4:19:22: +# fc:b3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 3F:90:C8:7D:C7:15:6F:F3:24:8F:A9:C3:2F:4B:A2:0F:21:B2:2F:E7 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:ldap://directory.d-trust.net/CN=D-TRUST%20Root%20CA%203%202013,O=D-Trust%20GmbH,C=DE?certificaterevocationlist +# +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_root_ca_3_2013.crl +# +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 0e:59:0e:58:e4:74:48:23:44:cf:34:21:b5:9c:14:1a:ad:9a: +# 4b:b7:b3:88:6d:5c:a9:17:70:f0:2a:9f:8d:7b:f9:7b:85:fa: +# c7:39:e8:10:08:b0:35:2b:5f:cf:02:d2:d3:9c:c8:0b:1e:ee: +# 05:54:ae:37:93:04:09:7d:6c:8f:c2:74:bc:f8:1c:94:be:31: +# 01:40:2d:f3:24:20:b7:84:55:2c:5c:c8:f5:74:4a:10:19:8b: +# a3:c7:ed:35:d6:09:48:d3:0e:c0:ba:39:a8:b0:46:02:b0:db: +# c6:88:59:c2:be:fc:7b:b1:2b:cf:7e:62:87:55:96:cc:01:6f: +# 9b:67:21:95:35:8b:f8:10:fc:71:1b:b7:4b:37:69:a6:3b:d6: +# ec:8b:ee:c1:b0:f3:25:c9:8f:92:7d:a1:ea:c3:ca:44:bf:26: +# a5:74:92:9c:e3:74:eb:9d:74:d9:cb:4d:87:d8:fc:b4:69:6c: +# 8b:a0:43:07:60:78:97:e9:d9:93:7c:c2:46:bc:9b:37:52:a3: +# ed:8a:3c:13:a9:7b:53:4b:49:9a:11:05:2c:0b:6e:56:ac:1f: +# 2e:82:6c:e0:69:67:b5:0e:6d:2d:d9:e4:c0:15:f1:3f:fa:18: +# 72:e1:15:6d:27:5b:2d:30:28:2b:9f:48:9a:64:2b:99:ef:f2: +# 75:49:5f:5c + +[p11-kit-object-v1] +label: "D-TRUST Root Class 3 CA 2 2009" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA07JKz3pH73WbI/o6L9ZQ +RYk1OsZr2/7bAGio4AMRHTdQCJ9NSmiUNbNT0ZRjpyBWr95ReOwqPfNISFA+Ct9G +VYsnbcMQTQ2RUkPYh+BdTja1IcpfOUAEX1t+zKPGK6lAHtk2hNZI85IeNEYgJMGk +UY5KGu9QP2ldGX9Fw8cBj1HJI+hyrrS8Vgl/Esscsa8pkArJVcwP07Qa7Uc1Wkrt +nHMEIdCqvQwTtQDKJmzEawyUWpWU2lCa8f+lK2YxpMk4oN8dH7gJLvOn6GdSq5Uf +4EY+2KTDylrFMYDoSJqflGn+Gd3Yc3yBypbeju2zMgVlhDTm5v1XELVfdr8vsBAN +xQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST Root Class 3 CA 2 2009" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRF +MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBD +bGFzcyAzIENBIDIgMjAwOTAeFw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NTha +ME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJzAlBgNVBAMM +HkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTCCASIwDQYJKoZIhvcNAQEB +BQADggEPADCCAQoCggEBANOySs96R+91myP6Oi/WUEWJNTrGa9v+2wBoqOADER03 +UAifTUpolDWzU9GUY6cgVq/eUXjsKj3zSEhQPgrfRlWLJ23DEE0NkVJD2IfgXU42 +tSHKXzlABF9bfsyjxiupQB7ZNoTWSPOSHjRGICTBpFGOShrvUD9pXRl/RcPHAY9R +ySPocq60vFYJfxLLHLGvKZAKyVXMD9O0Gu1HNVpK7ZxzBCHQqr0ME7UAyiZsxGsM +lFqVlNpQmvH/pStmMaTJOKDfHR+4CS7zp+hnUquVH+BGPtikw8paxTGA6Eian5Rp +/hnd2HN8gcqW3o7tszIFZYQ05ub9VxC1X3a/L7AQDcUCAwEAAaOCARowggEWMA8G +A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP3aFMSfMN4hvR5COfyrYyNJ4PGEMA4G +A1UdDwEB/wQEAwIBBjCB0wYDVR0fBIHLMIHIMIGAoH6gfIZ6bGRhcDovL2RpcmVj +dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwUm9vdCUyMENsYXNzJTIwMyUy +MENBJTIwMiUyMDIwMDksTz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRl +cmV2b2NhdGlvbmxpc3QwQ6BBoD+GPWh0dHA6Ly93d3cuZC10cnVzdC5uZXQvY3Js +L2QtdHJ1c3Rfcm9vdF9jbGFzc18zX2NhXzJfMjAwOS5jcmwwDQYJKoZIhvcNAQEL +BQADggEBAH+X2zDI36ScfSF6gHDOFBJpiBSVYEQBrLLpME+bUMJm2H6NMLVwMeni +acfzcNsgFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0 +o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4K +zCUqNQT4YJEVdT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8 +PIWmawomDeCTmGCufsYkl4phX5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3Y +Johw1+qRzT65ysCQblrGXnRl11z+o+I= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 623603 (0x983f3) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST Root Class 3 CA 2 2009 +# Validity +# Not Before: Nov 5 08:35:58 2009 GMT +# Not After : Nov 5 08:35:58 2029 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST Root Class 3 CA 2 2009 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d3:b2:4a:cf:7a:47:ef:75:9b:23:fa:3a:2f:d6: +# 50:45:89:35:3a:c6:6b:db:fe:db:00:68:a8:e0:03: +# 11:1d:37:50:08:9f:4d:4a:68:94:35:b3:53:d1:94: +# 63:a7:20:56:af:de:51:78:ec:2a:3d:f3:48:48:50: +# 3e:0a:df:46:55:8b:27:6d:c3:10:4d:0d:91:52:43: +# d8:87:e0:5d:4e:36:b5:21:ca:5f:39:40:04:5f:5b: +# 7e:cc:a3:c6:2b:a9:40:1e:d9:36:84:d6:48:f3:92: +# 1e:34:46:20:24:c1:a4:51:8e:4a:1a:ef:50:3f:69: +# 5d:19:7f:45:c3:c7:01:8f:51:c9:23:e8:72:ae:b4: +# bc:56:09:7f:12:cb:1c:b1:af:29:90:0a:c9:55:cc: +# 0f:d3:b4:1a:ed:47:35:5a:4a:ed:9c:73:04:21:d0: +# aa:bd:0c:13:b5:00:ca:26:6c:c4:6b:0c:94:5a:95: +# 94:da:50:9a:f1:ff:a5:2b:66:31:a4:c9:38:a0:df: +# 1d:1f:b8:09:2e:f3:a7:e8:67:52:ab:95:1f:e0:46: +# 3e:d8:a4:c3:ca:5a:c5:31:80:e8:48:9a:9f:94:69: +# fe:19:dd:d8:73:7c:81:ca:96:de:8e:ed:b3:32:05: +# 65:84:34:e6:e6:fd:57:10:b5:5f:76:bf:2f:b0:10: +# 0d:c5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# FD:DA:14:C4:9F:30:DE:21:BD:1E:42:39:FC:AB:63:23:49:E0:F1:84 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:ldap://directory.d-trust.net/CN=D-TRUST%20Root%20Class%203%20CA%202%202009,O=D-Trust%20GmbH,C=DE?certificaterevocationlist +# +# Full Name: +# URI:http://www.d-trust.net/crl/d-trust_root_class_3_ca_2_2009.crl +# +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 7f:97:db:30:c8:df:a4:9c:7d:21:7a:80:70:ce:14:12:69:88: +# 14:95:60:44:01:ac:b2:e9:30:4f:9b:50:c2:66:d8:7e:8d:30: +# b5:70:31:e9:e2:69:c7:f3:70:db:20:15:86:d0:0d:f0:be:ac: +# 01:75:84:ce:7e:9f:4d:bf:b7:60:3b:9c:f3:ca:1d:e2:5e:68: +# d8:a3:9d:97:e5:40:60:d2:36:21:fe:d0:b4:b8:17:da:74:a3: +# 7f:d4:df:b0:98:02:ac:6f:6b:6b:2c:25:24:72:a1:65:ee:25: +# 5a:e5:e6:32:e7:f2:df:ab:49:fa:f3:90:69:23:db:04:d9:e7: +# 5c:58:fc:65:d4:97:be:cc:fc:2e:0a:cc:25:2a:35:04:f8:60: +# 91:15:75:3d:41:ff:23:1f:19:c8:6c:eb:82:53:04:a6:e4:4c: +# 22:4d:8d:8c:ba:ce:5b:73:ec:64:54:50:6d:d1:9c:55:fb:69: +# c3:36:c3:8c:bc:3c:85:a6:6b:0a:26:0d:e0:93:98:60:ae:7e: +# c6:24:97:8a:61:5f:91:8e:66:92:09:87:36:cd:8b:9b:2d:3e: +# f6:51:d4:50:d4:59:28:bd:83:f2:cc:28:7b:53:86:6d:d8:26: +# 88:70:d7:ea:91:cd:3e:b9:ca:c0:90:6e:5a:c6:5e:74:65:d7: +# 5c:fe:a3:e2 + +[p11-kit-object-v1] +label: "D-TRUST Root Class 3 CA 2 EV 2009" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmfGENHC6L7cwoI69fATP +vmK8mf2Cl9J6CmeWOAn2EE6VInOZjdoVLecF/BlzIreOmAC8PD2soWz71nklS63w +zGTaiD4puA8J0zTdM/Vi0eHNGenuGE9MWK7iHtYMWxVa2Dq4xBhkHuMzsrWJd04M +v9mUaxOXbxKj/pmpBMwV7GBoNu0Ie7f1v5PtZjGDjMZxNIdOF+qvi5GNHFZBriI3 +XjfyHdnRLQ0vaVGnvmamijoqvccaseEU8L46HbnPW7Fq/rSxRiCi+x47cO+TmH2M +c5byxe+FcK0pJvweBD4coNgPy1KDYnzui1OVkKlXouphBdj5TcQn+m6t7fnXUfdr +pQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-TRUST Root Class 3 CA 2 EV 2009" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRF +MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBD +bGFzcyAzIENBIDIgRVYgMjAwOTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUw +NDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxELVRydXN0IEdtYkgxKjAoBgNV +BAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAwOTCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfSegpn +ljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM0 +3TP1YtHhzRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6Z +qQTMFexgaDbtCHu39b+T7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lR +p75mpoo6Kr3HGrHhFPC+Oh25z1uxav60sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8 +HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure3511H3a6UCAwEAAaOCASQw +ggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyvcop9Ntea +HNxnMA4GA1UdDwEB/wQEAwIBBjCB3QYDVR0fBIHVMIHSMIGHoIGEoIGBhn9sZGFw +Oi8vZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NOPUQtVFJVU1QlMjBSb290JTIwQ2xh +c3MlMjAzJTIwQ0ElMjAyJTIwRVYlMjAyMDA5LE89RC1UcnVzdCUyMEdtYkgsQz1E +RT9jZXJ0aWZpY2F0ZXJldm9jYXRpb25saXN0MEagRKBChkBodHRwOi8vd3d3LmQt +dHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2xhc3NfM19jYV8yX2V2XzIwMDku +Y3JsMA0GCSqGSIb3DQEBCwUAA4IBAQA07XtaPKSUiO8aEXUHL7P+PPoeUSbrh/Yp +3uDx1MYkCenBz1UbtDDZzhr+BlGmFaQt77JLvyAoJUnRpjZ3NOhk31KxEcdzes05 +nsKtjHEh8lprr988TlWvsoRlFIm5d8sqMb7Po23Pb0iUMkZv53GMoKaEGTcH8gNF +CSuGdXzfX2lXANtu2KZyIktQ1HWYVt+3GP9DQ1CuekR78HlR10M9p9OB0/DJT7na +xpeG0ILD5EJt/rDiZE4OJudANCa1CInXCGNjOCd1HjPqbqjdn5lPdE2BiYBL3ZqX +KVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVvw9y4AyHqnxbxLFS1 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 623604 (0x983f4) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-TRUST Root Class 3 CA 2 EV 2009 +# Validity +# Not Before: Nov 5 08:50:46 2009 GMT +# Not After : Nov 5 08:50:46 2029 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-TRUST Root Class 3 CA 2 EV 2009 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:99:f1:84:34:70:ba:2f:b7:30:a0:8e:bd:7c:04: +# cf:be:62:bc:99:fd:82:97:d2:7a:0a:67:96:38:09: +# f6:10:4e:95:22:73:99:8d:da:15:2d:e7:05:fc:19: +# 73:22:b7:8e:98:00:bc:3c:3d:ac:a1:6c:fb:d6:79: +# 25:4b:ad:f0:cc:64:da:88:3e:29:b8:0f:09:d3:34: +# dd:33:f5:62:d1:e1:cd:19:e9:ee:18:4f:4c:58:ae: +# e2:1e:d6:0c:5b:15:5a:d8:3a:b8:c4:18:64:1e:e3: +# 33:b2:b5:89:77:4e:0c:bf:d9:94:6b:13:97:6f:12: +# a3:fe:99:a9:04:cc:15:ec:60:68:36:ed:08:7b:b7: +# f5:bf:93:ed:66:31:83:8c:c6:71:34:87:4e:17:ea: +# af:8b:91:8d:1c:56:41:ae:22:37:5e:37:f2:1d:d9: +# d1:2d:0d:2f:69:51:a7:be:66:a6:8a:3a:2a:bd:c7: +# 1a:b1:e1:14:f0:be:3a:1d:b9:cf:5b:b1:6a:fe:b4: +# b1:46:20:a2:fb:1e:3b:70:ef:93:98:7d:8c:73:96: +# f2:c5:ef:85:70:ad:29:26:fc:1e:04:3e:1c:a0:d8: +# 0f:cb:52:83:62:7c:ee:8b:53:95:90:a9:57:a2:ea: +# 61:05:d8:f9:4d:c4:27:fa:6e:ad:ed:f9:d7:51:f7: +# 6b:a5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# D3:94:8A:4C:62:13:2A:19:2E:CC:AF:72:8A:7D:36:D7:9A:1C:DC:67 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:ldap://directory.d-trust.net/CN=D-TRUST%20Root%20Class%203%20CA%202%20EV%202009,O=D-Trust%20GmbH,C=DE?certificaterevocationlist +# +# Full Name: +# URI:http://www.d-trust.net/crl/d-trust_root_class_3_ca_2_ev_2009.crl +# +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 34:ed:7b:5a:3c:a4:94:88:ef:1a:11:75:07:2f:b3:fe:3c:fa: +# 1e:51:26:eb:87:f6:29:de:e0:f1:d4:c6:24:09:e9:c1:cf:55: +# 1b:b4:30:d9:ce:1a:fe:06:51:a6:15:a4:2d:ef:b2:4b:bf:20: +# 28:25:49:d1:a6:36:77:34:e8:64:df:52:b1:11:c7:73:7a:cd: +# 39:9e:c2:ad:8c:71:21:f2:5a:6b:af:df:3c:4e:55:af:b2:84: +# 65:14:89:b9:77:cb:2a:31:be:cf:a3:6d:cf:6f:48:94:32:46: +# 6f:e7:71:8c:a0:a6:84:19:37:07:f2:03:45:09:2b:86:75:7c: +# df:5f:69:57:00:db:6e:d8:a6:72:22:4b:50:d4:75:98:56:df: +# b7:18:ff:43:43:50:ae:7a:44:7b:f0:79:51:d7:43:3d:a7:d3: +# 81:d3:f0:c9:4f:b9:da:c6:97:86:d0:82:c3:e4:42:6d:fe:b0: +# e2:64:4e:0e:26:e7:40:34:26:b5:08:89:d7:08:63:63:38:27: +# 75:1e:33:ea:6e:a8:dd:9f:99:4f:74:4d:81:89:80:4b:dd:9a: +# 97:29:5c:2f:be:81:41:b9:8c:ff:ea:7d:60:06:9e:cd:d7:3d: +# d3:2e:a3:15:bc:a8:e6:26:e5:6f:c3:dc:b8:03:21:ea:9f:16: +# f1:2c:54:b5 + +[p11-kit-object-v1] +label: "D-Trust SBR Root CA 1 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWZM59oxJZijXYQzIq38Moy3foqR8kito +1S5+HkDLtGhJfxKhq39XnxkuYy5b/mZxDDMPud5rxIjDse/sOUDjlqvb5XuuH9z5 +r0aaakYGL8c3ZIsXYv6Ww6LuhOCwlzm8 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-Trust SBR Root CA 1 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICXjCCAeOgAwIBAgIQUs/kjG2gSvc/gpcMgAmMlTAKBggqhkjOPQQDAzBJMQsw +CQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSMwIQYDVQQDExpELVRy +dXN0IFNCUiBSb290IENBIDEgMjAyMjAeFw0yMjA3MDYxMTMwMDBaFw0zNzA3MDYx +MTI5NTlaMEkxCzAJBgNVBAYTAkRFMRUwEwYDVQQKEwxELVRydXN0IEdtYkgxIzAh +BgNVBAMTGkQtVHJ1c3QgU0JSIFJvb3QgQ0EgMSAyMDIyMHYwEAYHKoZIzj0CAQYF +K4EEACIDYgAEWZM59oxJZijXYQzIq38Moy3foqR8kito1S5+HkDLtGhJfxKhq39X +nxkuYy5b/mZxDDMPud5rxIjDse/sOUDjlqvb5XuuH9z5r0aaakYGL8c3ZIsXYv6W +w6LuhOCwlzm8o4GPMIGMMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFPEpox4B +Eh09dVZNx1B8xRmqDxi3MA4GA1UdDwEB/wQEAwIBBjBKBgNVHR8EQzBBMD+gPaA7 +hjlodHRwOi8vY3JsLmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X3Nicl9yb290X2Nh +XzFfMjAyMi5jcmwwCgYIKoZIzj0EAwMDaQAwZgIxAJf53q5Lj5i1HkB/Mn1NVEPa +ic3CqpI80YIec8/6TJIg+2MnxfVzPQk996dhhozzagIxAOcvfLj1JYw7OR82q431 +hqIu4Xpk2mc5Av7+Mz/Zc7ZYWzr8sqTZYHh3zHmnpq5VvQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 52:cf:e4:8c:6d:a0:4a:f7:3f:82:97:0c:80:09:8c:95 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=D-Trust GmbH, CN=D-Trust SBR Root CA 1 2022 +# Validity +# Not Before: Jul 6 11:30:00 2022 GMT +# Not After : Jul 6 11:29:59 2037 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-Trust SBR Root CA 1 2022 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:59:93:39:f6:8c:49:66:28:d7:61:0c:c8:ab:7f: +# 0c:a3:2d:df:a2:a4:7c:92:2b:68:d5:2e:7e:1e:40: +# cb:b4:68:49:7f:12:a1:ab:7f:57:9f:19:2e:63:2e: +# 5b:fe:66:71:0c:33:0f:b9:de:6b:c4:88:c3:b1:ef: +# ec:39:40:e3:96:ab:db:e5:7b:ae:1f:dc:f9:af:46: +# 9a:6a:46:06:2f:c7:37:64:8b:17:62:fe:96:c3:a2: +# ee:84:e0:b0:97:39:bc +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# F1:29:A3:1E:01:12:1D:3D:75:56:4D:C7:50:7C:C5:19:AA:0F:18:B7 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_sbr_root_ca_1_2022.crl +# +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:97:f9:de:ae:4b:8f:98:b5:1e:40:7f:32:7d: +# 4d:54:43:da:89:cd:c2:aa:92:3c:d1:82:1e:73:cf:fa:4c:92: +# 20:fb:63:27:c5:f5:73:3d:09:3d:f7:a7:61:86:8c:f3:6a:02: +# 31:00:e7:2f:7c:b8:f5:25:8c:3b:39:1f:36:ab:8d:f5:86:a2: +# 2e:e1:7a:64:da:67:39:02:fe:fe:33:3f:d9:73:b6:58:5b:3a: +# fc:b2:a4:d9:60:78:77:cc:79:a7:a6:ae:55:bd + +[p11-kit-object-v1] +label: "D-Trust SBR Root CA 2 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAryy8jjaM62SvUWrWbjxe +kTrqmsPKbPuqJ55kIqlA37koRVrsU2EWKJjCiqR1eFCE3fogSJIHZUE1ZlESdGGd +BwaFOTFXeyg/1Zyl7FrpHEsnn84nBvM39VLYETMWQTof9WN4ZWOGyb/IAQQfbu7i +7KwM7oKS4vYaDT85+Z1lk634uQXBPfg3gVbDoP4F7OCUFjojFgTapgqThXJtYTuh +jUXW43++Fb02hAj2C4NrJqqiveCw56rgrmfE04KlDKmk8DN5DVA/8O+QPSS5f9Ig +bOqX87+c3EfeCWG9lHmVWgJ2NWDERyIN93ZjA9PG+4PGXaut7WklKwNbTSUAQeOM +hxdSqOAFK0NNFBPK5z9DIrw3pHXx9r867zIeru5YhpByugSsQEjvXMR4p6mPJ1rL +euxY8sIIWJBtTQOFeXEVBQ5OPvnfDwX3XxRIViENM5KxrIzlGP6/D+7gBKq9IfJY +tlyJCosYCSIaszXGZsL1MxWZgOAI+ZYvE4zu2reIxOk3tddq1zqETatwjNNOFFWg +ohD8ZNpn6PHLM93JmoqPli9Ygdn4mgBDzJD7VXb7huM3ASgMb/TpWU0Vd1FCSsw0 +uIBDUIHvV6UT26eUeQ9Lyn4Xfa+jIWTocVVWjwawR+xZD11wWywWQvCGnnXea01I +mITiVxi2nIKZZTqLgHhXDEkCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "D-Trust SBR Root CA 2 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFrDCCA5SgAwIBAgIQVNWjlR49lbpyG5rQMSFKujANBgkqhkiG9w0BAQ0FADBJ +MQswCQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSMwIQYDVQQDExpE +LVRydXN0IFNCUiBSb290IENBIDIgMjAyMjAeFw0yMjA3MDcwNzMwMDBaFw0zNzA3 +MDcwNzI5NTlaMEkxCzAJBgNVBAYTAkRFMRUwEwYDVQQKEwxELVRydXN0IEdtYkgx +IzAhBgNVBAMTGkQtVHJ1c3QgU0JSIFJvb3QgQ0EgMiAyMDIyMIICIjANBgkqhkiG +9w0BAQEFAAOCAg8AMIICCgKCAgEAryy8jjaM62SvUWrWbjxekTrqmsPKbPuqJ55k +IqlA37koRVrsU2EWKJjCiqR1eFCE3fogSJIHZUE1ZlESdGGdBwaFOTFXeyg/1Zyl +7FrpHEsnn84nBvM39VLYETMWQTof9WN4ZWOGyb/IAQQfbu7i7KwM7oKS4vYaDT85 ++Z1lk634uQXBPfg3gVbDoP4F7OCUFjojFgTapgqThXJtYTuhjUXW43++Fb02hAj2 +C4NrJqqiveCw56rgrmfE04KlDKmk8DN5DVA/8O+QPSS5f9IgbOqX87+c3EfeCWG9 +lHmVWgJ2NWDERyIN93ZjA9PG+4PGXaut7WklKwNbTSUAQeOMhxdSqOAFK0NNFBPK +5z9DIrw3pHXx9r867zIeru5YhpByugSsQEjvXMR4p6mPJ1rLeuxY8sIIWJBtTQOF +eXEVBQ5OPvnfDwX3XxRIViENM5KxrIzlGP6/D+7gBKq9IfJYtlyJCosYCSIaszXG +ZsL1MxWZgOAI+ZYvE4zu2reIxOk3tddq1zqETatwjNNOFFWgohD8ZNpn6PHLM93J +moqPli9Ygdn4mgBDzJD7VXb7huM3ASgMb/TpWU0Vd1FCSsw0uIBDUIHvV6UT26eU +eQ9Lyn4Xfa+jIWTocVVWjwawR+xZD11wWywWQvCGnnXea01ImITiVxi2nIKZZTqL +gHhXDEkCAwEAAaOBjzCBjDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRds4CU +G+WGv2i6FDSk9u5t8t3f5zAOBgNVHQ8BAf8EBAMCAQYwSgYDVR0fBEMwQTA/oD2g +O4Y5aHR0cDovL2NybC5kLXRydXN0Lm5ldC9jcmwvZC10cnVzdF9zYnJfcm9vdF9j +YV8yXzIwMjIuY3JsMA0GCSqGSIb3DQEBDQUAA4ICAQA0VC5YGFbNSr2X0/V9K9yv +D1HhTbwhS5P0AEQTBxALJRg+SFmW96Hhk5B4Zho9I+siqwGmjgxRM+ZtjDHurKQB +cDlI3sdmLGsNy3Ofh5LpPkcfuO8v7rdWjEiJ8DinFTmy7sA/F6RzAgicvAaKpMK3 +YWH5w9vE0Hp8Yd6xWJH13WVMLwv46z217Yq+dxy6WQISZnHlmCfODj2vUaJF+YL7 +WqWUcPeLhMNMZSWbe+IfMHCzQI467r3052jFnckpR3EOk8i1SE71ZrsHiHFpa3tI +jm/wEcS0yXAUmCC97afqAdpupZsS/j5EMLPw63VSwPTD+ncmpHeCLW/zKB5OlfAw +94n4LKJQW/K+Mn5sVNtyySpa4By2C9hSmlmh47ABJ8WgFlBm3OuubfSbWz2EbVuH +56mJu2644JtTicD/LkAaiUQuGENnOOR8cl/ZoyklQUE9HHcbZKjDVe5jcWZig/R/ +JpmgVDuhEm1wYs7T+bi9IvzUmtS74jgWL7d9OcKwqQPpnM9+GI123F8Ru+tC7FAJ +PlzskDHYGnK6P2kH7pg0wjSk1toT1qmE8gCGwFS6HhGw4rnEB7SR56rmMVZvsUTE +KmK8ybBlnDT8DBpT3yEXu8JtoQrm8bCqRAlQSTh6XXHiMS4ZsN+VQgR9hIjOCiNn +azidFt4G/ihwOKVarvyD7Q== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 54:d5:a3:95:1e:3d:95:ba:72:1b:9a:d0:31:21:4a:ba +# Signature Algorithm: sha512WithRSAEncryption +# Issuer: C=DE, O=D-Trust GmbH, CN=D-Trust SBR Root CA 2 2022 +# Validity +# Not Before: Jul 7 07:30:00 2022 GMT +# Not After : Jul 7 07:29:59 2037 GMT +# Subject: C=DE, O=D-Trust GmbH, CN=D-Trust SBR Root CA 2 2022 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:af:2c:bc:8e:36:8c:eb:64:af:51:6a:d6:6e:3c: +# 5e:91:3a:ea:9a:c3:ca:6c:fb:aa:27:9e:64:22:a9: +# 40:df:b9:28:45:5a:ec:53:61:16:28:98:c2:8a:a4: +# 75:78:50:84:dd:fa:20:48:92:07:65:41:35:66:51: +# 12:74:61:9d:07:06:85:39:31:57:7b:28:3f:d5:9c: +# a5:ec:5a:e9:1c:4b:27:9f:ce:27:06:f3:37:f5:52: +# d8:11:33:16:41:3a:1f:f5:63:78:65:63:86:c9:bf: +# c8:01:04:1f:6e:ee:e2:ec:ac:0c:ee:82:92:e2:f6: +# 1a:0d:3f:39:f9:9d:65:93:ad:f8:b9:05:c1:3d:f8: +# 37:81:56:c3:a0:fe:05:ec:e0:94:16:3a:23:16:04: +# da:a6:0a:93:85:72:6d:61:3b:a1:8d:45:d6:e3:7f: +# be:15:bd:36:84:08:f6:0b:83:6b:26:aa:a2:bd:e0: +# b0:e7:aa:e0:ae:67:c4:d3:82:a5:0c:a9:a4:f0:33: +# 79:0d:50:3f:f0:ef:90:3d:24:b9:7f:d2:20:6c:ea: +# 97:f3:bf:9c:dc:47:de:09:61:bd:94:79:95:5a:02: +# 76:35:60:c4:47:22:0d:f7:76:63:03:d3:c6:fb:83: +# c6:5d:ab:ad:ed:69:25:2b:03:5b:4d:25:00:41:e3: +# 8c:87:17:52:a8:e0:05:2b:43:4d:14:13:ca:e7:3f: +# 43:22:bc:37:a4:75:f1:f6:bf:3a:ef:32:1e:ae:ee: +# 58:86:90:72:ba:04:ac:40:48:ef:5c:c4:78:a7:a9: +# 8f:27:5a:cb:7a:ec:58:f2:c2:08:58:90:6d:4d:03: +# 85:79:71:15:05:0e:4e:3e:f9:df:0f:05:f7:5f:14: +# 48:56:21:0d:33:92:b1:ac:8c:e5:18:fe:bf:0f:ee: +# e0:04:aa:bd:21:f2:58:b6:5c:89:0a:8b:18:09:22: +# 1a:b3:35:c6:66:c2:f5:33:15:99:80:e0:08:f9:96: +# 2f:13:8c:ee:da:b7:88:c4:e9:37:b5:d7:6a:d7:3a: +# 84:4d:ab:70:8c:d3:4e:14:55:a0:a2:10:fc:64:da: +# 67:e8:f1:cb:33:dd:c9:9a:8a:8f:96:2f:58:81:d9: +# f8:9a:00:43:cc:90:fb:55:76:fb:86:e3:37:01:28: +# 0c:6f:f4:e9:59:4d:15:77:51:42:4a:cc:34:b8:80: +# 43:50:81:ef:57:a5:13:db:a7:94:79:0f:4b:ca:7e: +# 17:7d:af:a3:21:64:e8:71:55:56:8f:06:b0:47:ec: +# 59:0f:5d:70:5b:2c:16:42:f0:86:9e:75:de:6b:4d: +# 48:98:84:e2:57:18:b6:9c:82:99:65:3a:8b:80:78: +# 57:0c:49 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 5D:B3:80:94:1B:E5:86:BF:68:BA:14:34:A4:F6:EE:6D:F2:DD:DF:E7 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.d-trust.net/crl/d-trust_sbr_root_ca_2_2022.crl +# +# Signature Algorithm: sha512WithRSAEncryption +# Signature Value: +# 34:54:2e:58:18:56:cd:4a:bd:97:d3:f5:7d:2b:dc:af:0f:51: +# e1:4d:bc:21:4b:93:f4:00:44:13:07:10:0b:25:18:3e:48:59: +# 96:f7:a1:e1:93:90:78:66:1a:3d:23:eb:22:ab:01:a6:8e:0c: +# 51:33:e6:6d:8c:31:ee:ac:a4:01:70:39:48:de:c7:66:2c:6b: +# 0d:cb:73:9f:87:92:e9:3e:47:1f:b8:ef:2f:ee:b7:56:8c:48: +# 89:f0:38:a7:15:39:b2:ee:c0:3f:17:a4:73:02:08:9c:bc:06: +# 8a:a4:c2:b7:61:61:f9:c3:db:c4:d0:7a:7c:61:de:b1:58:91: +# f5:dd:65:4c:2f:0b:f8:eb:3d:b5:ed:8a:be:77:1c:ba:59:02: +# 12:66:71:e5:98:27:ce:0e:3d:af:51:a2:45:f9:82:fb:5a:a5: +# 94:70:f7:8b:84:c3:4c:65:25:9b:7b:e2:1f:30:70:b3:40:8e: +# 3a:ee:bd:f4:e7:68:c5:9d:c9:29:47:71:0e:93:c8:b5:48:4e: +# f5:66:bb:07:88:71:69:6b:7b:48:8e:6f:f0:11:c4:b4:c9:70: +# 14:98:20:bd:ed:a7:ea:01:da:6e:a5:9b:12:fe:3e:44:30:b3: +# f0:eb:75:52:c0:f4:c3:fa:77:26:a4:77:82:2d:6f:f3:28:1e: +# 4e:95:f0:30:f7:89:f8:2c:a2:50:5b:f2:be:32:7e:6c:54:db: +# 72:c9:2a:5a:e0:1c:b6:0b:d8:52:9a:59:a1:e3:b0:01:27:c5: +# a0:16:50:66:dc:eb:ae:6d:f4:9b:5b:3d:84:6d:5b:87:e7:a9: +# 89:bb:6e:b8:e0:9b:53:89:c0:ff:2e:40:1a:89:44:2e:18:43: +# 67:38:e4:7c:72:5f:d9:a3:29:25:41:41:3d:1c:77:1b:64:a8: +# c3:55:ee:63:71:66:62:83:f4:7f:26:99:a0:54:3b:a1:12:6d: +# 70:62:ce:d3:f9:b8:bd:22:fc:d4:9a:d4:bb:e2:38:16:2f:b7: +# 7d:39:c2:b0:a9:03:e9:9c:cf:7e:18:8d:76:dc:5f:11:bb:eb: +# 42:ec:50:09:3e:5c:ec:90:31:d8:1a:72:ba:3f:69:07:ee:98: +# 34:c2:34:a4:d6:da:13:d6:a9:84:f2:00:86:c0:54:ba:1e:11: +# b0:e2:b9:c4:07:b4:91:e7:aa:e6:31:56:6f:b1:44:c4:2a:62: +# bc:c9:b0:65:9c:34:fc:0c:1a:53:df:21:17:bb:c2:6d:a1:0a: +# e6:f1:b0:aa:44:09:50:49:38:7a:5d:71:e2:31:2e:19:b0:df: +# 95:42:04:7d:84:88:ce:0a:23:67:6b:38:9d:16:de:06:fe:28: +# 70:38:a5:5a:ae:fc:83:ed + +[p11-kit-object-v1] +label: "emSign ECC Root CA - C3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE/aVhrnsmEB3ptyIwrgb0gbOxQnGVObzT +UuOvr/nylzWSNkYOh5WNuTla6bvf0P7IB0E8u1Vvg6Nq+2KwgYkCcH1IxUrj6SJU +Ik2Tu0IMr3ecI6Z912ERzmXH+H/+9fKp +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "emSign ECC Root CA - C3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQG +EwJVUzETMBEGA1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMx +IDAeBgNVBAMTF2VtU2lnbiBFQ0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAw +MFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UEBhMCVVMxEzARBgNVBAsTCmVtU2ln +biBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQDExdlbVNpZ24gRUND +IFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd6bci +MK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4Ojavti +sIGJAnB9SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0O +BBYEFPtaSNCAIEDyqOkAB2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMB +Af8EBTADAQH/MAoGCCqGSM49BAMDA2gAMGUCMQC02C8Cif22TGK6Q04ThHK1rt0c +3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwUZOR8loMRnLDRWmFLpg9J +0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 7b:71:b6:82:56:b8:12:7c:9c:a8 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign ECC Root CA - C3 +# Validity +# Not Before: Feb 18 18:30:00 2018 GMT +# Not After : Feb 18 18:30:00 2043 GMT +# Subject: C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign ECC Root CA - C3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:fd:a5:61:ae:7b:26:10:1d:e9:b7:22:30:ae:06: +# f4:81:b3:b1:42:71:95:39:bc:d3:52:e3:af:af:f9: +# f2:97:35:92:36:46:0e:87:95:8d:b9:39:5a:e9:bb: +# df:d0:fe:c8:07:41:3c:bb:55:6f:83:a3:6a:fb:62: +# b0:81:89:02:70:7d:48:c5:4a:e3:e9:22:54:22:4d: +# 93:bb:42:0c:af:77:9c:23:a6:7d:d7:61:11:ce:65: +# c7:f8:7f:fe:f5:f2:a9 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# FB:5A:48:D0:80:20:40:F2:A8:E9:00:07:69:19:77:A7:E6:C3:F4:CF +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:b4:d8:2f:02:89:fd:b6:4c:62:ba:43:4e:13: +# 84:72:b5:ae:dd:1c:de:d6:b5:dc:56:8f:58:40:5a:2d:de:20: +# 4c:22:83:ca:93:a8:7e:ee:12:40:c7:d6:87:4f:f8:df:85:02: +# 30:1c:14:64:e4:7c:96:83:11:9c:b0:d1:5a:61:4b:a6:0f:49: +# d3:00:fc:a1:fc:e4:a5:ff:7f:ad:d7:30:d0:c7:77:7f:be:81: +# 07:55:30:50:20:14:f5:57:38:0a:a8:31:51 + +[p11-kit-object-v1] +label: "emSign ECC Root CA - G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEI6UMuC0S9SjzsbLd4gISgJ45X0lNn8kl +NFl07LsGHOfAcq/ori/hQVSHFKhKsuh8guZbarXcs3XOiwbQhiO/RtWODz8E9Ncc +kn72pWPC9V+OLk+hGBkCKzIKgmR9FpPR +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "emSign ECC Root CA - G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQG +EwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNo +bm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g +RzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4MTgzMDAwWjBrMQswCQYDVQQGEwJJ +TjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9s +b2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0 +WXTsuwYc58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xyS +fvalY8L1X44uT6EYGQIrMgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuB +zhccLikenEhjQjAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggq +hkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+DCBeQyh+KTOgNG3qxrdWB +CUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7jHvrZQnD ++JbNR6iC8hZVdyR+EhCVBCyj +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 3c:f6:07:a9:68:70:0e:da:8b:84 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3 +# Validity +# Not Before: Feb 18 18:30:00 2018 GMT +# Not After : Feb 18 18:30:00 2043 GMT +# Subject: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:23:a5:0c:b8:2d:12:f5:28:f3:b1:b2:dd:e2:02: +# 12:80:9e:39:5f:49:4d:9f:c9:25:34:59:74:ec:bb: +# 06:1c:e7:c0:72:af:e8:ae:2f:e1:41:54:87:14:a8: +# 4a:b2:e8:7c:82:e6:5b:6a:b5:dc:b3:75:ce:8b:06: +# d0:86:23:bf:46:d5:8e:0f:3f:04:f4:d7:1c:92:7e: +# f6:a5:63:c2:f5:5f:8e:2e:4f:a1:18:19:02:2b:32: +# 0a:82:64:7d:16:93:d1 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 7C:5D:02:84:13:D4:CC:8A:9B:81:CE:17:1C:2E:29:1E:9C:48:63:42 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:be:f3:61:cf:02:10:1d:64:95:07:b8:18:6e: +# 88:85:05:2f:83:08:17:90:ca:1f:8a:4c:e8:0d:1b:7a:b1:ad: +# d5:81:09:47:ef:3b:ac:08:04:7c:5c:99:b1:ed:47:07:d2:02: +# 31:00:9d:ba:55:fc:a9:4a:e8:ed:ed:e6:76:01:42:7b:c8:f8: +# 60:d9:8d:51:8b:55:3b:fb:8c:7b:eb:65:09:c3:f8:96:cd:47: +# a8:82:f2:16:55:77:24:7e:12:10:95:04:2c:a3 + +[p11-kit-object-v1] +label: "emSign Root CA - C1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+upufGZBczYKCFK83M0 +UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZHdPIWoU/Xse2 +B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH3DspVpNqs8Fq +Op099cGXOFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvHGPMF0Ybzhe3n +udkyrVWIzqa2kbBPrH4VI5b2P/AgNBbeCsbEBEV5f6f9vtKppa+cxSMq9zwhbL2v +j07FOrLzNBL834AaSaTUqZX3noleoomslMuoaJuvimUnzYnu3Yy1aylwQ6BpC+S5 +DwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "emSign Root CA - C1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkG +A1UEBhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEg +SW5jMRwwGgYDVQQDExNlbVNpZ24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAw +MFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UEBhMCVVMxEzARBgNVBAsTCmVtU2ln +biBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNpZ24gUm9v +dCBDQSAtIEMxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+upufGZ +BczYKCFK83M0UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZ +HdPIWoU/Xse2B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH +3DspVpNqs8FqOp099cGXOFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvH +GPMF0Ybzhe3nudkyrVWIzqa2kbBPrH4VI5b2P/AgNBbeCsbEBEV5f6f9vtKppa+c +xSMq9zwhbL2vj07FOrLzNBL834AaSaTUqZX3noleoomslMuoaJuvimUnzYnu3Yy1 +aylwQ6BpC+S5DwIDAQABo0IwQDAdBgNVHQ4EFgQU/qHgcB4qAzlSWkK+XJGFehiq +TbUwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEL +BQADggEBAMJKVvoVIXsoounlHfv4LcQ5lkFMOycsxGwYFYDGrK9HWS8mC+M2sO87 +/kOXSTKZEhVb3xEp/6tT+LvBeA+snFOvV71ojD1pM/CjoCNjO2RnIkSt1XHLVip4 +kqNPEjE2NuLe/gDEo2APJ62gsIq1NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrG +YQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9wC68AivTxEDkigcxHpvOJpkT ++xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQBmIMMMAVSKeo +WXzhriKi4gp6D/piq1JM4fHfyr6DDUI= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# ae:cf:00:ba:c4:cf:32:f8:43:b2 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign Root CA - C1 +# Validity +# Not Before: Feb 18 18:30:00 2018 GMT +# Not After : Feb 18 18:30:00 2043 GMT +# Subject: C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign Root CA - C1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:cf:eb:a9:b9:f1:99:05:cc:d8:28:21:4a:f3:73: +# 34:51:84:56:10:f5:a0:4f:2c:12:e3:fa:13:9a:27: +# d0:cf:f9:79:1a:74:5f:1d:79:39:fc:5b:f8:70:8e: +# e0:92:52:f7:e4:25:f9:54:83:d9:1d:d3:c8:5a:85: +# 3f:5e:c7:b6:07:ee:3e:c0:ce:9a:af:ac:56:42:2a: +# 39:25:70:d6:bf:b5:7b:36:ad:ac:f6:73:dc:cd:d7: +# 1d:8a:83:a5:fb:2b:90:15:37:6b:1c:26:47:dc:3b: +# 29:56:93:6a:b3:c1:6a:3a:9d:3d:f5:c1:97:38:58: +# 05:8b:1c:11:e3:e4:b4:b8:5d:85:1d:83:fe:78:5f: +# 0b:45:68:18:48:a5:46:73:34:3b:fe:0f:c8:76:bb: +# c7:18:f3:05:d1:86:f3:85:ed:e7:b9:d9:32:ad:55: +# 88:ce:a6:b6:91:b0:4f:ac:7e:15:23:96:f6:3f:f0: +# 20:34:16:de:0a:c6:c4:04:45:79:7f:a7:fd:be:d2: +# a9:a5:af:9c:c5:23:2a:f7:3c:21:6c:bd:af:8f:4e: +# c5:3a:b2:f3:34:12:fc:df:80:1a:49:a4:d4:a9:95: +# f7:9e:89:5e:a2:89:ac:94:cb:a8:68:9b:af:8a:65: +# 27:cd:89:ee:dd:8c:b5:6b:29:70:43:a0:69:0b:e4: +# b9:0f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# FE:A1:E0:70:1E:2A:03:39:52:5A:42:BE:5C:91:85:7A:18:AA:4D:B5 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# c2:4a:56:fa:15:21:7b:28:a2:e9:e5:1d:fb:f8:2d:c4:39:96: +# 41:4c:3b:27:2c:c4:6c:18:15:80:c6:ac:af:47:59:2f:26:0b: +# e3:36:b0:ef:3b:fe:43:97:49:32:99:12:15:5b:df:11:29:ff: +# ab:53:f8:bb:c1:78:0f:ac:9c:53:af:57:bd:68:8c:3d:69:33: +# f0:a3:a0:23:63:3b:64:67:22:44:ad:d5:71:cb:56:2a:78:92: +# a3:4f:12:31:36:36:e2:de:fe:00:c4:a3:60:0f:27:ad:a0:b0: +# 8a:b5:36:7a:52:a1:bd:27:f4:20:27:62:e8:4d:94:24:13:e4: +# 0a:04:e9:3c:ab:2e:c8:43:09:4a:c6:61:04:e5:49:34:7e:d3: +# c4:c8:f5:0f:c0:aa:e9:ba:54:5e:f3:63:2b:4f:4f:50:d4:fe: +# b9:7b:99:8c:3d:c0:2e:bc:02:2b:d3:c4:40:e4:8a:07:31:1e: +# 9b:ce:26:99:13:fb:11:ea:9a:22:0c:11:19:c7:5e:1b:81:50: +# 30:c8:96:12:6e:e7:cb:41:7f:91:3b:a2:47:b7:54:80:1b:dc: +# 00:cc:9a:90:ea:c3:c3:50:06:62:0c:30:c0:15:48:a7:a8:59: +# 7c:e1:ae:22:a2:e2:0a:7a:0f:fa:62:ab:52:4c:e1:f1:df:ca: +# be:83:0d:42 + +[p11-kit-object-v1] +label: "emSign Root CA - G1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk0u76WaK7p1b1TST0Bse +w+eeuGQzf2N4aLTNLnF115sgxk0pvLZoYIr3IZpWNVrzdr3YzZr/k1ZLpVkGoZM0 +Kd0WNHVO8oG0x5ZOrRkVUkr+PHB1cM2vK6sVmjM8qrOLqs1D/fXqcP/tzxE7lM5O +MhbTI0Aqd7OvPAEsbO2ZLIvZTmmYsvePQbAyeGHWDV/D+qJAkh1cF+ZwPjXnorfC +YuKrpDhMtTk1b+oDafo6VGiFbdbyL0NVHpENDtjVaqSW0RM8LHhQ6DqS0hdW5TUa +QBw+jSztOd9C4INBdN+jzcKGYEho42kLVACL5HZpIQ15TjQIXhTCzLG3rdd8cIrH +hQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "emSign Root CA - G1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0BAQsFADBnMQswCQYD +VQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBU +ZWNobm9sb2dpZXMgTGltaXRlZDEcMBoGA1UEAxMTZW1TaWduIFJvb3QgQ0EgLSBH +MTAeFw0xODAyMTgxODMwMDBaFw00MzAyMTgxODMwMDBaMGcxCzAJBgNVBAYTAklO +MRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVkaHJhIFRlY2hub2xv +Z2llcyBMaW1pdGVkMRwwGgYDVQQDExNlbVNpZ24gUm9vdCBDQSAtIEcxMIIBIjAN +BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk0u76WaK7p1b1TST0Bsew+eeuGQz +f2N4aLTNLnF115sgxk0pvLZoYIr3IZpWNVrzdr3YzZr/k1ZLpVkGoZM0Kd0WNHVO +8oG0x5ZOrRkVUkr+PHB1cM2vK6sVmjM8qrOLqs1D/fXqcP/tzxE7lM5OMhbTI0Aq +d7OvPAEsbO2ZLIvZTmmYsvePQbAyeGHWDV/D+qJAkh1cF+ZwPjXnorfCYuKrpDhM +tTk1b+oDafo6VGiFbdbyL0NVHpENDtjVaqSW0RM8LHhQ6DqS0hdW5TUaQBw+jSzt +Od9C4INBdN+jzcKGYEho42kLVACL5HZpIQ15TjQIXhTCzLG3rdd8cIrHhQIDAQAB +o0IwQDAdBgNVHQ4EFgQU++8Nhp6w492pufEhF38+/PB3KxowDgYDVR0PAQH/BAQD +AgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFn/8oz1h31x +PaOfG1vR2vjTnGs2vZupYeveFix0PZ7mddrXuqe8QhfnPZHr5X3dPpzxz5KsbEjM +wiI/aTvFthUvozXGaCocV685743QNcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6d +GNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q+Mri/Tm3R7nrft8EI6/6nAYH +6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeihU80Bv2noWgby +RQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx +iN66zB+Afko= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 31:f5:e4:62:0c:6c:58:ed:d6:d8 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign Root CA - G1 +# Validity +# Not Before: Feb 18 18:30:00 2018 GMT +# Not After : Feb 18 18:30:00 2043 GMT +# Subject: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign Root CA - G1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:93:4b:bb:e9:66:8a:ee:9d:5b:d5:34:93:d0:1b: +# 1e:c3:e7:9e:b8:64:33:7f:63:78:68:b4:cd:2e:71: +# 75:d7:9b:20:c6:4d:29:bc:b6:68:60:8a:f7:21:9a: +# 56:35:5a:f3:76:bd:d8:cd:9a:ff:93:56:4b:a5:59: +# 06:a1:93:34:29:dd:16:34:75:4e:f2:81:b4:c7:96: +# 4e:ad:19:15:52:4a:fe:3c:70:75:70:cd:af:2b:ab: +# 15:9a:33:3c:aa:b3:8b:aa:cd:43:fd:f5:ea:70:ff: +# ed:cf:11:3b:94:ce:4e:32:16:d3:23:40:2a:77:b3: +# af:3c:01:2c:6c:ed:99:2c:8b:d9:4e:69:98:b2:f7: +# 8f:41:b0:32:78:61:d6:0d:5f:c3:fa:a2:40:92:1d: +# 5c:17:e6:70:3e:35:e7:a2:b7:c2:62:e2:ab:a4:38: +# 4c:b5:39:35:6f:ea:03:69:fa:3a:54:68:85:6d:d6: +# f2:2f:43:55:1e:91:0d:0e:d8:d5:6a:a4:96:d1:13: +# 3c:2c:78:50:e8:3a:92:d2:17:56:e5:35:1a:40:1c: +# 3e:8d:2c:ed:39:df:42:e0:83:41:74:df:a3:cd:c2: +# 86:60:48:68:e3:69:0b:54:00:8b:e4:76:69:21:0d: +# 79:4e:34:08:5e:14:c2:cc:b1:b7:ad:d7:7c:70:8a: +# c7:85 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# FB:EF:0D:86:9E:B0:E3:DD:A9:B9:F1:21:17:7F:3E:FC:F0:77:2B:1A +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 59:ff:f2:8c:f5:87:7d:71:3d:a3:9f:1b:5b:d1:da:f8:d3:9c: +# 6b:36:bd:9b:a9:61:eb:de:16:2c:74:3d:9e:e6:75:da:d7:ba: +# a7:bc:42:17:e7:3d:91:eb:e5:7d:dd:3e:9c:f1:cf:92:ac:6c: +# 48:cc:c2:22:3f:69:3b:c5:b6:15:2f:a3:35:c6:68:2a:1c:57: +# af:39:ef:8d:d0:35:c3:18:0c:7b:00:56:1c:cd:8b:19:74:de: +# be:0f:12:e0:d0:aa:a1:3f:02:34:b1:70:ce:9d:18:d6:08:03: +# 09:46:ee:60:e0:7e:b6:c4:49:04:51:7d:70:60:bc:aa:b2:ff: +# 79:72:7a:a6:1d:3d:5f:2a:f8:ca:e2:fd:39:b7:47:b9:eb:7e: +# df:04:23:af:fa:9c:06:07:e9:fb:63:93:80:40:b5:c6:6c:0a: +# 31:28:ce:0c:9f:cf:b3:23:35:80:41:8d:6c:c4:37:7b:81:2f: +# 80:a1:40:42:85:e9:d9:38:8d:e8:a1:53:cd:01:bf:69:e8:5a: +# 06:f2:45:0b:90:fa:ae:e1:bf:9d:f2:ae:57:3c:a5:ae:b2:56: +# f4:8b:65:40:e9:fd:31:81:2c:f4:39:09:d8:ee:6b:a7:b4:a6: +# 1d:15:a5:98:f7:01:81:d8:85:7d:f3:51:5c:71:88:de:ba:cc: +# 1f:80:7e:4a + +[p11-kit-object-v1] +label: "Entrust.net Premium 2048 Secure Server CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqjIAcVFmQq +K0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOLGp18EzoOH1u3Hs/lJBQe +sYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSGlVuX +MlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVT +XTzWnLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/ +HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH +4QIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Entrust.net Premium 2048 Secure Server CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChML +RW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBp +bmNvcnAuIGJ5IHJlZi4gKGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5 +IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVudHJ1c3QubmV0IENlcnRp +ZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0yOTA3 +MjQxNDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3d3d3 +LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxp +YWIuKTElMCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEG +A1UEAxMqRW50cnVzdC5uZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgp +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqjIAcVFmQq +K0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOLGp18EzoOH1u3Hs/lJBQe +sYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSGlVuX +MlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVT +XTzWnLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/ +HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH +4QIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV +HQ4EFgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJKoZIhvcNAQEFBQADggEBADub +j1abMOdTmXx6eadNl9cZlZD7Bh/KM3xGY4+WZiT6QBshJ8rmcnPyT/4xmf3IDExo +U8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf +zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5b +u/8j72gZyxKTJ1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+ +bYQLCIt+jerXmCHG8+c8eS9enNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/Er +fF6adulZkMV8gzURZVE= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 946069240 (0x3863def8) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: O=Entrust.net, OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), OU=(c) 1999 Entrust.net Limited, CN=Entrust.net Certification Authority (2048) +# Validity +# Not Before: Dec 24 17:50:51 1999 GMT +# Not After : Jul 24 14:15:12 2029 GMT +# Subject: O=Entrust.net, OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), OU=(c) 1999 Entrust.net Limited, CN=Entrust.net Certification Authority (2048) +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ad:4d:4b:a9:12:86:b2:ea:a3:20:07:15:16:64: +# 2a:2b:4b:d1:bf:0b:4a:4d:8e:ed:80:76:a5:67:b7: +# 78:40:c0:73:42:c8:68:c0:db:53:2b:dd:5e:b8:76: +# 98:35:93:8b:1a:9d:7c:13:3a:0e:1f:5b:b7:1e:cf: +# e5:24:14:1e:b1:81:a9:8d:7d:b8:cc:6b:4b:03:f1: +# 02:0c:dc:ab:a5:40:24:00:7f:74:94:a1:9d:08:29: +# b3:88:0b:f5:87:77:9d:55:cd:e4:c3:7e:d7:6a:64: +# ab:85:14:86:95:5b:97:32:50:6f:3d:c8:ba:66:0c: +# e3:fc:bd:b8:49:c1:76:89:49:19:fd:c0:a8:bd:89: +# a3:67:2f:c6:9f:bc:71:19:60:b8:2d:e9:2c:c9:90: +# 76:66:7b:94:e2:af:78:d6:65:53:5d:3c:d6:9c:b2: +# cf:29:03:f9:2f:a4:50:b2:d4:48:ce:05:32:55:8a: +# fd:b2:64:4c:0e:e4:98:07:75:db:7f:df:b9:08:55: +# 60:85:30:29:f9:7b:48:a4:69:86:e3:35:3f:1e:86: +# 5d:7a:7a:15:bd:ef:00:8e:15:22:54:17:00:90:26: +# 93:bc:0e:49:68:91:bf:f8:47:d3:9d:95:42:c1:0e: +# 4d:df:6f:26:cf:c3:18:21:62:66:43:70:d6:d5:c0: +# 07:e1 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 55:E4:81:D1:11:80:BE:D8:89:B9:08:A3:31:F9:A1:24:09:16:B9:70 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 3b:9b:8f:56:9b:30:e7:53:99:7c:7a:79:a7:4d:97:d7:19:95: +# 90:fb:06:1f:ca:33:7c:46:63:8f:96:66:24:fa:40:1b:21:27: +# ca:e6:72:73:f2:4f:fe:31:99:fd:c8:0c:4c:68:53:c6:80:82: +# 13:98:fa:b6:ad:da:5d:3d:f1:ce:6e:f6:15:11:94:82:0c:ee: +# 3f:95:af:11:ab:0f:d7:2f:de:1f:03:8f:57:2c:1e:c9:bb:9a: +# 1a:44:95:eb:18:4f:a6:1f:cd:7d:57:10:2f:9b:04:09:5a:84: +# b5:6e:d8:1d:3a:e1:d6:9e:d1:6c:79:5e:79:1c:14:c5:e3:d0: +# 4c:93:3b:65:3c:ed:df:3d:be:a6:e5:95:1a:c3:b5:19:c3:bd: +# 5e:5b:bb:ff:23:ef:68:19:cb:12:93:27:5c:03:2d:6f:30:d0: +# 1e:b6:1a:ac:de:5a:f7:d1:aa:a8:27:a6:fe:79:81:c4:79:99: +# 33:57:ba:12:b0:a9:e0:42:6c:93:ca:56:de:fe:6d:84:0b:08: +# 8b:7e:8d:ea:d7:98:21:c6:f3:e7:3c:79:2f:5e:9c:d1:4c:15: +# 8d:e1:ec:22:37:cc:9a:43:0b:97:dc:80:90:8d:b3:67:9b:6f: +# 48:08:15:56:cf:bf:f1:2b:7c:5e:9a:76:e9:59:90:c5:7c:83: +# 35:11:65:51 + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtpW2Q0L6xm0qb0jflEw5 +VwXuw3kRQWg27ez+mgGPoTgo/PcQRmYuTR4asRpOxtHAlYiwyf8xizMD27eDez4g +hF7tslYop/jguUBxN8XLRw6XKmjAIpViFdtH2fXQK/+CS8mtPt5M25CAUD8JioQA +7DAKPRjN+/0qWZojlRcsRZ4fbkN5bQxcmP5Ip8UjR1xe/W7nHrT2aEXRhoNbooqN +seMpgP4lcYitvryPrFKWS6pRjeQTMRnoTk2f26yzatW8OVRxynp6f5DdfR2A2YG7 +WSbCEf7mk+L3gORl+zQ3DimAcE2vOIYunn9Xr54XruscyyghX7Yc2OeiBCL509rY +ywIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMC +VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0 +Lm5ldC9DUFMgaXMgaW5jb3Jwb3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMW +KGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsGA1UEAxMkRW50cnVzdCBSb290IENl +cnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0MloXDTI2MTEyNzIw +NTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMTkw +NwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSBy +ZWZlcmVuY2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNV +BAMTJEVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJ +KoZIhvcNAQEBBQADggEPADCCAQoCggEBALaVtkNC+sZtKm9I35RMOVcF7sN5EUFo +Nu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYszA9u3g3s+IIRe7bJWKKf4 +4LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOwwCj0Yzfv9 +KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGI +rb68j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi +94DkZfs0Nw4pgHBNrziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOB +sDCBrTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAi +gA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1MzQyWjAfBgNVHSMEGDAWgBRo +kORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DHhmak8fdLQ/uE +vW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA +A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9t +O1KzKtvn1ISMY/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6Zua +AGAT/3B+XxFNSRuzFVJ7yVTav52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP +9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTSW3iDVuycNsMm4hH2Z0kdkquM++v/ +eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0tHuu2guQOHXvgR1m +0vdXcDazv/wor3ElhVsT/h5/WrQ8 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1164660820 (0x456b5054) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=Entrust, Inc., OU=www.entrust.net/CPS is incorporated by reference, OU=(c) 2006 Entrust, Inc., CN=Entrust Root Certification Authority +# Validity +# Not Before: Nov 27 20:23:42 2006 GMT +# Not After : Nov 27 20:53:42 2026 GMT +# Subject: C=US, O=Entrust, Inc., OU=www.entrust.net/CPS is incorporated by reference, OU=(c) 2006 Entrust, Inc., CN=Entrust Root Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b6:95:b6:43:42:fa:c6:6d:2a:6f:48:df:94:4c: +# 39:57:05:ee:c3:79:11:41:68:36:ed:ec:fe:9a:01: +# 8f:a1:38:28:fc:f7:10:46:66:2e:4d:1e:1a:b1:1a: +# 4e:c6:d1:c0:95:88:b0:c9:ff:31:8b:33:03:db:b7: +# 83:7b:3e:20:84:5e:ed:b2:56:28:a7:f8:e0:b9:40: +# 71:37:c5:cb:47:0e:97:2a:68:c0:22:95:62:15:db: +# 47:d9:f5:d0:2b:ff:82:4b:c9:ad:3e:de:4c:db:90: +# 80:50:3f:09:8a:84:00:ec:30:0a:3d:18:cd:fb:fd: +# 2a:59:9a:23:95:17:2c:45:9e:1f:6e:43:79:6d:0c: +# 5c:98:fe:48:a7:c5:23:47:5c:5e:fd:6e:e7:1e:b4: +# f6:68:45:d1:86:83:5b:a2:8a:8d:b1:e3:29:80:fe: +# 25:71:88:ad:be:bc:8f:ac:52:96:4b:aa:51:8d:e4: +# 13:31:19:e8:4e:4d:9f:db:ac:b3:6a:d5:bc:39:54: +# 71:ca:7a:7a:7f:90:dd:7d:1d:80:d9:81:bb:59:26: +# c2:11:fe:e6:93:e2:f7:80:e4:65:fb:34:37:0e:29: +# 80:70:4d:af:38:86:2e:9e:7f:57:af:9e:17:ae:eb: +# 1c:cb:28:21:5f:b6:1c:d8:e7:a2:04:22:f9:d3:da: +# d8:cb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Private Key Usage Period: +# Not Before: Nov 27 20:23:42 2006 GMT, Not After: Nov 27 20:53:42 2026 GMT +# X509v3 Authority Key Identifier: +# 68:90:E4:67:A4:A6:53:80:C7:86:66:A4:F1:F7:4B:43:FB:84:BD:6D +# X509v3 Subject Key Identifier: +# 68:90:E4:67:A4:A6:53:80:C7:86:66:A4:F1:F7:4B:43:FB:84:BD:6D +# 1.2.840.113533.7.65.0: +# 0...V7.1:4.0.... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 93:d4:30:b0:d7:03:20:2a:d0:f9:63:e8:91:0c:05:20:a9:5f: +# 19:ca:7b:72:4e:d4:b1:db:d0:96:fb:54:5a:19:2c:0c:08:f7: +# b2:bc:85:a8:9d:7f:6d:3b:52:b3:2a:db:e7:d4:84:8c:63:f6: +# 0f:cb:26:01:91:50:6c:f4:5f:14:e2:93:74:c0:13:9e:30:3a: +# 50:e3:b4:60:c5:1c:f0:22:44:8d:71:47:ac:c8:1a:c9:e9:9b: +# 9a:00:60:13:ff:70:7e:5f:11:4d:49:1b:b3:15:52:7b:c9:54: +# da:bf:9d:95:af:6b:9a:d8:9e:e9:f1:e4:43:8d:e2:11:44:3a: +# bf:af:bd:83:42:73:52:8b:aa:bb:a7:29:cf:f5:64:1c:0a:4d: +# d1:bc:aa:ac:9f:2a:d0:ff:7f:7f:da:7d:ea:b1:ed:30:25:c1: +# 84:da:34:d2:5b:78:83:56:ec:9c:36:c3:26:e2:11:f6:67:49: +# 1d:92:ab:8c:fb:eb:ff:7a:ee:85:4a:a7:50:80:f0:a7:5c:4a: +# 94:2e:5f:05:99:3c:52:41:e0:cd:b4:63:cf:01:43:ba:9c:83: +# dc:8f:60:3b:f3:5a:b4:b4:7b:ae:da:0b:90:38:75:ef:81:1d: +# 66:d2:f7:57:70:36:b3:bf:fc:28:af:71:25:85:5b:13:fe:1e: +# 7f:5a:b4:3c + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - EC1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEhBPJ0LptQXvibNDrVV9mAhok9FuJaUfj +uMJ98fICxZ+g9lvViwYZhk9TEG0HJCehoPjVRxlhTH3KkyfqdAzvb5YJ/mPscF02 +rWd3rsmdfFVEOqJjUR/142LUqUcHPswg +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - EC1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkG +A1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3 +d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVu +dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEzMDEGA1UEAxMq +RW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRUMxMB4XDTEy +MTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYwFAYD +VQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0 +L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0g +Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBD +ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEVDMTB2MBAGByqGSM49AgEGBSuBBAAi +A2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHyAsWfoPZb1YsGGYZPUxBt +ByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef9eNi1KlH +Bz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O +BBYEFLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVC +R98crlOZF7ZvHH3hvxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nX +hTcGtXsI/esni0qU+eH6p44mCOh8kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# a6:8b:79:29:00:00:00:00:50:d0:91:f9 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2012 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - EC1 +# Validity +# Not Before: Dec 18 15:25:36 2012 GMT +# Not After : Dec 18 15:55:36 2037 GMT +# Subject: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2012 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - EC1 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:84:13:c9:d0:ba:6d:41:7b:e2:6c:d0:eb:55:5f: +# 66:02:1a:24:f4:5b:89:69:47:e3:b8:c2:7d:f1:f2: +# 02:c5:9f:a0:f6:5b:d5:8b:06:19:86:4f:53:10:6d: +# 07:24:27:a1:a0:f8:d5:47:19:61:4c:7d:ca:93:27: +# ea:74:0c:ef:6f:96:09:fe:63:ec:70:5d:36:ad:67: +# 77:ae:c9:9d:7c:55:44:3a:a2:63:51:1f:f5:e3:62: +# d4:a9:47:07:3e:cc:20 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# B7:63:E7:1A:DD:8D:E9:08:A6:55:83:A4:E0:6A:50:41:65:11:42:49 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:61:79:d8:e5:42:47:df:1c:ae:53:99:17:b6:6f: +# 1c:7d:e1:bf:11:94:d1:03:88:75:e4:8d:89:a4:8a:77:46:de: +# 6d:61:ef:02:f5:fb:b5:df:cc:fe:4e:ff:fe:a9:e6:a7:02:30: +# 5b:99:d7:85:37:06:b5:7b:08:fd:eb:27:8b:4a:94:f9:e1:fa: +# a7:8e:26:08:e8:7c:92:68:6d:73:d8:6f:26:ac:21:02:b8:99: +# b7:26:41:5b:25:60:ae:d0:48:1a:ee:06 + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuoS2ctueDGvimekwAad2 +6jK4lUEaydphTlhyz/72gnm/c2EGCqUn2LNf00VOHHLWTjLycooP94MZ0GqAgABF +HrDH55q/ElcnHKNoLwqHvWprDl5l8xx31dSFjXAhtLMy54ui1YY5ArG40kfO5MlJ +xDun3vtUfVe+8OhuwnmyOgtV4lCYFjITXC94VsHClLPyWuQnmp8k18bs0JslguPM +wsRFxYyXegZrKhGfqQpuSDtv29QRGUL3jwe/9VNfnD70FyzmaaxOMkxid+q36OW7 +NLwZi66cUee3frVTsTMi5W3PcDwa+uKbZ7aD9I2lr2JMTeBYrGQ0EgP4to2UYySk +cQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMC +VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50 +cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3Qs +IEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVz +dCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwHhcNMDkwNzA3MTcy +NTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVu +dHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwt +dGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0 +aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmlj +YXRpb24gQXV0aG9yaXR5IC0gRzIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK +AoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP/vaCeb9zYQYKpSfYs1/T +RU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXzHHfV1IWN +cCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hW +wcKUs/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1 +U1+cPvQXLOZprE4yTGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0 +jaWvYkxN4FisZDQSA/i2jZRjJKRxAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAP +BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ60B7vfec7aVHUbI2fkBJmqzAN +BgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5ZiXMRrEPR9RP/ +jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ +Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v +1fN2D807iDginWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4R +nAuknZoh8/CbCzB428Hch0P+vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmH +VHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xOe4pIb4tF9g== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1246989352 (0x4a538c28) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2009 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - G2 +# Validity +# Not Before: Jul 7 17:25:54 2009 GMT +# Not After : Dec 7 17:55:54 2030 GMT +# Subject: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2009 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ba:84:b6:72:db:9e:0c:6b:e2:99:e9:30:01:a7: +# 76:ea:32:b8:95:41:1a:c9:da:61:4e:58:72:cf:fe: +# f6:82:79:bf:73:61:06:0a:a5:27:d8:b3:5f:d3:45: +# 4e:1c:72:d6:4e:32:f2:72:8a:0f:f7:83:19:d0:6a: +# 80:80:00:45:1e:b0:c7:e7:9a:bf:12:57:27:1c:a3: +# 68:2f:0a:87:bd:6a:6b:0e:5e:65:f3:1c:77:d5:d4: +# 85:8d:70:21:b4:b3:32:e7:8b:a2:d5:86:39:02:b1: +# b8:d2:47:ce:e4:c9:49:c4:3b:a7:de:fb:54:7d:57: +# be:f0:e8:6e:c2:79:b2:3a:0b:55:e2:50:98:16:32: +# 13:5c:2f:78:56:c1:c2:94:b3:f2:5a:e4:27:9a:9f: +# 24:d7:c6:ec:d0:9b:25:82:e3:cc:c2:c4:45:c5:8c: +# 97:7a:06:6b:2a:11:9f:a9:0a:6e:48:3b:6f:db:d4: +# 11:19:42:f7:8f:07:bf:f5:53:5f:9c:3e:f4:17:2c: +# e6:69:ac:4e:32:4c:62:77:ea:b7:e8:e5:bb:34:bc: +# 19:8b:ae:9c:51:e7:b7:7e:b5:53:b1:33:22:e5:6d: +# cf:70:3c:1a:fa:e2:9b:67:b6:83:f4:8d:a5:af:62: +# 4c:4d:e0:58:ac:64:34:12:03:f8:b6:8d:94:63:24: +# a4:71 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 6A:72:26:7A:D0:1E:EF:7D:E7:3B:69:51:D4:6C:8D:9F:90:12:66:AB +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 79:9f:1d:96:c6:b6:79:3f:22:8d:87:d3:87:03:04:60:6a:6b: +# 9a:2e:59:89:73:11:ac:43:d1:f5:13:ff:8d:39:2b:c0:f2:bd: +# 4f:70:8c:a9:2f:ea:17:c4:0b:54:9e:d4:1b:96:98:33:3c:a8: +# ad:62:a2:00:76:ab:59:69:6e:06:1d:7e:c4:b9:44:8d:98:af: +# 12:d4:61:db:0a:19:46:47:f3:eb:f7:63:c1:40:05:40:a5:d2: +# b7:f4:b5:9a:36:bf:a9:88:76:88:04:55:04:2b:9c:87:7f:1a: +# 37:3c:7e:2d:a5:1a:d8:d4:89:5e:ca:bd:ac:3d:6c:d8:6d:af: +# d5:f3:76:0f:cd:3b:88:38:22:9d:6c:93:9a:c4:3d:bf:82:1b: +# 65:3f:a6:0f:5d:aa:fc:e5:b2:15:ca:b5:ad:c6:bc:3d:d0:84: +# e8:ea:06:72:b0:4d:39:32:78:bf:3e:11:9c:0b:a4:9d:9a:21: +# f3:f0:9b:0b:30:78:db:c1:dc:87:43:fe:bc:63:9a:ca:c5:c2: +# 1c:c9:c7:8d:ff:3b:12:58:08:e6:b6:3d:ec:7a:2c:4e:fb:83: +# 96:ce:0c:3c:69:87:54:73:a4:73:c2:93:ff:51:10:ac:15:54: +# 01:d8:fc:05:b1:89:a1:7f:74:83:9a:49:d7:dc:4e:7b:8a:48: +# 6f:8b:45:f6 + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - G4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsewsQu7i0TD/pZJH4i3D +umSXbcr3DbVZwbPLqGgZ2K+EbTBwXX7zLtJTmeH+H17ZSK9dE43b/2MzTdMAArzE ++NEGCJR5WIoV3imz/f3ET+iq4qA7ec2/a0My3dl0ELn39GjUu9CH1apLiipvKgS1 +sqbHoHrmSKvS0VnM1n4j5pds8ELl3FFLFUHtSUrJ3hCX1nbB76W1NhSXNdh4IjVS +70O92yfbYVaCNNzLiGAMC1rlLAHGVK/XqsEQe9IFWrhAnoanw5CGAlZSCXqc0ieC +U0plUmr1POeo8pyvi73TDtTUXm6Hnmo9RR3RXRv06QqsYJn7ibT/mCzPfB3pAqoE +mh643IhuJbNsZvc8kPNXwbMv9W3y+8qh+CmdRouzavbmZwe+LGcKKh9asj5XxNMh +IWNlUpEbsZmOeX7m640A2Vqq6nPopIICR5b+W45UYaPrL0swsIsjdXJ8ITzI9vF0 +1Bx7owVV7rtNOzK+mndmnqxpkCIHH2E6lr7lmk/MBTwoWdPBDFSoWWG9yHJM6Nyf +h3+9nEg2XpWjDrk4JFX8dWbrAuMINClKxuMrLzOg2qOGpRKX/YAr2hRC45K9PvJd +Xmd0LhyIRyk0X+IyqJwlN4y6mACXi0mWHv0liqzc2thddG5msP9E36EYxr5ILzeU +ePiVSj9/E15dWf10hkNjc0kCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Entrust Root Certification Authority - G4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIGSzCCBDOgAwIBAgIRANm1Q3+vqTkPAAAAAFVlrVgwDQYJKoZIhvcNAQELBQAw +gb4xCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQL +Ex9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykg +MjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxMjAw +BgNVBAMTKUVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEc0 +MB4XDTE1MDUyNzExMTExNloXDTM3MTIyNzExNDExNlowgb4xCzAJBgNVBAYTAlVT +MRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1 +c3QubmV0L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJ +bmMuIC0gZm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxMjAwBgNVBAMTKUVudHJ1c3Qg +Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEc0MIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEAsewsQu7i0TD/pZJH4i3DumSXbcr3DbVZwbPLqGgZ +2K+EbTBwXX7zLtJTmeH+H17ZSK9dE43b/2MzTdMAArzE+NEGCJR5WIoV3imz/f3E +T+iq4qA7ec2/a0My3dl0ELn39GjUu9CH1apLiipvKgS1sqbHoHrmSKvS0VnM1n4j +5pds8ELl3FFLFUHtSUrJ3hCX1nbB76W1NhSXNdh4IjVS70O92yfbYVaCNNzLiGAM +C1rlLAHGVK/XqsEQe9IFWrhAnoanw5CGAlZSCXqc0ieCU0plUmr1POeo8pyvi73T +DtTUXm6Hnmo9RR3RXRv06QqsYJn7ibT/mCzPfB3pAqoEmh643IhuJbNsZvc8kPNX +wbMv9W3y+8qh+CmdRouzavbmZwe+LGcKKh9asj5XxNMhIWNlUpEbsZmOeX7m640A +2Vqq6nPopIICR5b+W45UYaPrL0swsIsjdXJ8ITzI9vF01Bx7owVV7rtNOzK+mndm +nqxpkCIHH2E6lr7lmk/MBTwoWdPBDFSoWWG9yHJM6Nyfh3+9nEg2XpWjDrk4JFX8 +dWbrAuMINClKxuMrLzOg2qOGpRKX/YAr2hRC45K9PvJdXmd0LhyIRyk0X+IyqJwl +N4y6mACXi0mWHv0liqzc2thddG5msP9E36EYxr5ILzeUePiVSj9/E15dWf10hkNj +c0kCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYD +VR0OBBYEFJ84xFYjwznooHFs6FRM5Og6sb9nMA0GCSqGSIb3DQEBCwUAA4ICAQAS +5UKme4sPDORGpbZgQIeMJX6tuGguW8ZAdjwD+MlZ9POrYs4QjbRaZIxowLByQzTS +Gwv2LFPSypBLhmb8qoMi9IsabyZIrHZ3CL/FmFz0Jomee8O5ZDIBf9PD3Vht7LGr +hFV0d4QEJ1JrhkzO3bll/9bGXp+aEJlLdWr+aumXIOTkdnrG0CSqkM0gkLpHZPt/ +B7NTeLUKYvJzQ85BK4FqLoUWlFPUa19yIqtRLULVAJyZv967lDtX/Zr1hstWO1uI +AeV8KEsD+UmDfLJ/fOPtjqF/YFOOVZ1QNBIPt5d7bIdKROf1beyAN/BYGW5KaHbw +H5Lk6rWS02FREAutp9lfx1/cH6NcjKF+m7ee01ZvZl4HliDtC3T7Zk6LERXpgUl+ +b7DUUH8i119lAg2m9IUe2K4GS0qn0jFmwvjO5QimpAKWRGhXxNUzzxkvFMSUHHuk +2fCfDrGA4tGeEWSpiBE6doLlYsKA2KSD7ZPvfC+QsDJMlhVoSFLUmQjAJOgc47Ol +IQ6SwJAfzyBfyjs4x7dtOvPmRLgOMWuIjnDrnBdSqEGULoe256YSxXXfW8AKbnuk +5F6G+TaU33fD6Q3AOfF5u0aOq0NZJ7cguyPpVkAh7DE9ZapD8j3fcEThuk0mEDuY +n/PIjhs4ViFqUZPTkcpG2om3PVODLAgfi49T3f+sHw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# d9:b5:43:7f:af:a9:39:0f:00:00:00:00:55:65:ad:58 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2015 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - G4 +# Validity +# Not Before: May 27 11:11:16 2015 GMT +# Not After : Dec 27 11:41:16 2037 GMT +# Subject: C=US, O=Entrust, Inc., OU=See www.entrust.net/legal-terms, OU=(c) 2015 Entrust, Inc. - for authorized use only, CN=Entrust Root Certification Authority - G4 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b1:ec:2c:42:ee:e2:d1:30:ff:a5:92:47:e2:2d: +# c3:ba:64:97:6d:ca:f7:0d:b5:59:c1:b3:cb:a8:68: +# 19:d8:af:84:6d:30:70:5d:7e:f3:2e:d2:53:99:e1: +# fe:1f:5e:d9:48:af:5d:13:8d:db:ff:63:33:4d:d3: +# 00:02:bc:c4:f8:d1:06:08:94:79:58:8a:15:de:29: +# b3:fd:fd:c4:4f:e8:aa:e2:a0:3b:79:cd:bf:6b:43: +# 32:dd:d9:74:10:b9:f7:f4:68:d4:bb:d0:87:d5:aa: +# 4b:8a:2a:6f:2a:04:b5:b2:a6:c7:a0:7a:e6:48:ab: +# d2:d1:59:cc:d6:7e:23:e6:97:6c:f0:42:e5:dc:51: +# 4b:15:41:ed:49:4a:c9:de:10:97:d6:76:c1:ef:a5: +# b5:36:14:97:35:d8:78:22:35:52:ef:43:bd:db:27: +# db:61:56:82:34:dc:cb:88:60:0c:0b:5a:e5:2c:01: +# c6:54:af:d7:aa:c1:10:7b:d2:05:5a:b8:40:9e:86: +# a7:c3:90:86:02:56:52:09:7a:9c:d2:27:82:53:4a: +# 65:52:6a:f5:3c:e7:a8:f2:9c:af:8b:bd:d3:0e:d4: +# d4:5e:6e:87:9e:6a:3d:45:1d:d1:5d:1b:f4:e9:0a: +# ac:60:99:fb:89:b4:ff:98:2c:cf:7c:1d:e9:02:aa: +# 04:9a:1e:b8:dc:88:6e:25:b3:6c:66:f7:3c:90:f3: +# 57:c1:b3:2f:f5:6d:f2:fb:ca:a1:f8:29:9d:46:8b: +# b3:6a:f6:e6:67:07:be:2c:67:0a:2a:1f:5a:b2:3e: +# 57:c4:d3:21:21:63:65:52:91:1b:b1:99:8e:79:7e: +# e6:eb:8d:00:d9:5a:aa:ea:73:e8:a4:82:02:47:96: +# fe:5b:8e:54:61:a3:eb:2f:4b:30:b0:8b:23:75:72: +# 7c:21:3c:c8:f6:f1:74:d4:1c:7b:a3:05:55:ee:bb: +# 4d:3b:32:be:9a:77:66:9e:ac:69:90:22:07:1f:61: +# 3a:96:be:e5:9a:4f:cc:05:3c:28:59:d3:c1:0c:54: +# a8:59:61:bd:c8:72:4c:e8:dc:9f:87:7f:bd:9c:48: +# 36:5e:95:a3:0e:b9:38:24:55:fc:75:66:eb:02:e3: +# 08:34:29:4a:c6:e3:2b:2f:33:a0:da:a3:86:a5:12: +# 97:fd:80:2b:da:14:42:e3:92:bd:3e:f2:5d:5e:67: +# 74:2e:1c:88:47:29:34:5f:e2:32:a8:9c:25:37:8c: +# ba:98:00:97:8b:49:96:1e:fd:25:8a:ac:dc:da:d8: +# 5d:74:6e:66:b0:ff:44:df:a1:18:c6:be:48:2f:37: +# 94:78:f8:95:4a:3f:7f:13:5e:5d:59:fd:74:86:43: +# 63:73:49 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 9F:38:C4:56:23:C3:39:E8:A0:71:6C:E8:54:4C:E4:E8:3A:B1:BF:67 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 12:e5:42:a6:7b:8b:0f:0c:e4:46:a5:b6:60:40:87:8c:25:7e: +# ad:b8:68:2e:5b:c6:40:76:3c:03:f8:c9:59:f4:f3:ab:62:ce: +# 10:8d:b4:5a:64:8c:68:c0:b0:72:43:34:d2:1b:0b:f6:2c:53: +# d2:ca:90:4b:86:66:fc:aa:83:22:f4:8b:1a:6f:26:48:ac:76: +# 77:08:bf:c5:98:5c:f4:26:89:9e:7b:c3:b9:64:32:01:7f:d3: +# c3:dd:58:6d:ec:b1:ab:84:55:74:77:84:04:27:52:6b:86:4c: +# ce:dd:b9:65:ff:d6:c6:5e:9f:9a:10:99:4b:75:6a:fe:6a:e9: +# 97:20:e4:e4:76:7a:c6:d0:24:aa:90:cd:20:90:ba:47:64:fb: +# 7f:07:b3:53:78:b5:0a:62:f2:73:43:ce:41:2b:81:6a:2e:85: +# 16:94:53:d4:6b:5f:72:22:ab:51:2d:42:d5:00:9c:99:bf:de: +# bb:94:3b:57:fd:9a:f5:86:cb:56:3b:5b:88:01:e5:7c:28:4b: +# 03:f9:49:83:7c:b2:7f:7c:e3:ed:8e:a1:7f:60:53:8e:55:9d: +# 50:34:12:0f:b7:97:7b:6c:87:4a:44:e7:f5:6d:ec:80:37:f0: +# 58:19:6e:4a:68:76:f0:1f:92:e4:ea:b5:92:d3:61:51:10:0b: +# ad:a7:d9:5f:c7:5f:dc:1f:a3:5c:8c:a1:7e:9b:b7:9e:d3:56: +# 6f:66:5e:07:96:20:ed:0b:74:fb:66:4e:8b:11:15:e9:81:49: +# 7e:6f:b0:d4:50:7f:22:d7:5f:65:02:0d:a6:f4:85:1e:d8:ae: +# 06:4b:4a:a7:d2:31:66:c2:f8:ce:e5:08:a6:a4:02:96:44:68: +# 57:c4:d5:33:cf:19:2f:14:c4:94:1c:7b:a4:d9:f0:9f:0e:b1: +# 80:e2:d1:9e:11:64:a9:88:11:3a:76:82:e5:62:c2:80:d8:a4: +# 83:ed:93:ef:7c:2f:90:b0:32:4c:96:15:68:48:52:d4:99:08: +# c0:24:e8:1c:e3:b3:a5:21:0e:92:c0:90:1f:cf:20:5f:ca:3b: +# 38:c7:b7:6d:3a:f3:e6:44:b8:0e:31:6b:88:8e:70:eb:9c:17: +# 52:a8:41:94:2e:87:b6:e7:a6:12:c5:75:df:5b:c0:0a:6e:7b: +# a4:e4:5e:86:f9:36:94:df:77:c3:e9:0d:c0:39:f1:79:bb:46: +# 8e:ab:43:59:27:b7:20:bb:23:e9:56:40:21:ec:31:3d:65:aa: +# 43:f2:3d:df:70:44:e1:ba:4d:26:10:3b:98:9f:f3:c8:8e:1b: +# 38:56:21:6a:51:93:d3:91:ca:46:da:89:b7:3d:53:83:2c:08: +# 1f:8b:8f:53:dd:ff:ac:1f + +[p11-kit-object-v1] +label: "ePKI Root Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306 +Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNsIZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy +4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKilTza6We/CKBk49ZCt0Xv +l/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDivqOx4UXCK +XBCDUSH3ET00hl7lSM2XgYI1TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+X +PNjX12ruOzjjK9SXDrkb5wdJfzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZ +v3I4sjZsN/+Z0V0OWQqraffAsgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcG +lBSBVcYn5AGPF8Fqcde+S/uUWH1+ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8i +QkEeb5mKPtf5P0B6ebClAZLSnT0IFaUQAS2zMnaolQ2zepr7BxB4EW/hj8e6DyUa +dCrlHJhBmd8hh+iVBmoKs2pHdmX2Os+PYhcZewoozRrSgx4hxyy/vv9haLdnG7t4 +TY3OZ+XkwY63I2binZB1NJipNiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXi +Zo1jDiVN1Rmy5nk3pyKdVDECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "ePKI Root Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBe +MQswCQYDVQQGEwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0 +ZC4xKjAoBgNVBAsMIWVQS0kgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAe +Fw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMxMjdaMF4xCzAJBgNVBAYTAlRXMSMw +IQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEqMCgGA1UECwwhZVBL +SSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEF +AAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAH +SyZbCUNsIZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAh +ijHyl3SJCRImHJ7K2RKilTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3X +DZoTM1PRYfl61dd4s5oz9wCGzh1NlDivqOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1 +TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX12ruOzjjK9SXDrkb5wdJ +fzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZv3I4sjZsN/+Z0V0OWQqraffA +sgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcGlBSBVcYn5AGPF8Fqcde+S/uU +WH1+ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8iQkEeb5mKPtf5P0B6ebClAZLS +nT0IFaUQAS2zMnaolQ2zepr7BxB4EW/hj8e6DyUadCrlHJhBmd8hh+iVBmoKs2pH +dmX2Os+PYhcZewoozRrSgx4hxyy/vv9haLdnG7t4TY3OZ+XkwY63I2binZB1NJip +NiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXiZo1jDiVN1Rmy5nk3pyKdVDEC +AwEAAaNqMGgwHQYDVR0OBBYEFB4M97Zn8uGSJglFwFU5Lnc/QkqiMAwGA1UdEwQF +MAMBAf8wOQYEZyoHAAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH +ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGB +uvl2ICO1J2B01GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6Yl +PwZpVnPDimZI+ymBV3QGypzqKOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkP +JXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdVxrsStZf0X4OFunHB2WyBEXYKCrC/ +gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEPNXubrjlpC2JgQCA2 +j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+rGNm6 +5ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUB +o2M3IUxExJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS +/jQ6fbjpKdx2qcgw+BRxgMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2z +Gp1iro2C6pSe3VkQw63d4k3jMdXH7OjysP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTE +W9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmODBCEIZ43ygknQW/2xzQ+D +hNQ+IIX3Sj0rnP0qCglN6oH4EZw= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 15:c8:bd:65:47:5c:af:b8:97:00:5e:e4:06:d2:bc:9d +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=TW, O=Chunghwa Telecom Co., Ltd., OU=ePKI Root Certification Authority +# Validity +# Not Before: Dec 20 02:31:27 2004 GMT +# Not After : Dec 20 02:31:27 2034 GMT +# Subject: C=TW, O=Chunghwa Telecom Co., Ltd., OU=ePKI Root Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:e1:25:0f:ee:8d:db:88:33:75:67:cd:ad:1f:7d: +# 3a:4e:6d:9d:d3:2f:14:f3:63:74:cb:01:21:6a:37: +# ea:84:50:07:4b:26:5b:09:43:6c:21:9e:6a:c8:d5: +# 03:f5:60:69:8f:cc:f0:22:e4:1f:e7:f7:6a:22:31: +# b7:2c:15:f2:e0:fe:00:6a:43:ff:87:65:c6:b5:1a: +# c1:a7:4c:6d:22:70:21:8a:31:f2:97:74:89:09:12: +# 26:1c:9e:ca:d9:12:a2:95:3c:da:e9:67:bf:08:a0: +# 64:e3:d6:42:b7:45:ef:97:f4:f6:f5:d7:b5:4a:15: +# 02:58:7d:98:58:4b:60:bc:cd:d7:0d:9a:13:33:53: +# d1:61:f9:7a:d5:d7:78:b3:9a:33:f7:00:86:ce:1d: +# 4d:94:38:af:a8:ec:78:51:70:8a:5c:10:83:51:21: +# f7:11:3d:34:86:5e:e5:48:cd:97:81:82:35:4c:19: +# ec:65:f6:6b:c5:05:a1:ee:47:13:d6:b3:21:27:94: +# 10:0a:d9:24:3b:ba:be:44:13:46:30:3f:97:3c:d8: +# d7:d7:6a:ee:3b:38:e3:2b:d4:97:0e:b9:1b:e7:07: +# 49:7f:37:2a:f9:77:78:cf:54:ed:5b:46:9d:a3:80: +# 0e:91:43:c1:d6:5b:5f:14:ba:9f:a6:8d:24:47:40: +# 59:bf:72:38:b2:36:6c:37:ff:99:d1:5d:0e:59:0a: +# ab:69:f7:c0:b2:04:45:7a:54:00:ae:be:53:f6:b5: +# e7:e1:f8:3c:a3:31:d2:a9:fe:21:52:64:c5:a6:67: +# f0:75:07:06:94:14:81:55:c6:27:e4:01:8f:17:c1: +# 6a:71:d7:be:4b:fb:94:58:7d:7e:11:33:b1:42:f7: +# 62:6c:18:d6:cf:09:68:3e:7f:6c:f6:1e:8f:62:ad: +# a5:63:db:09:a7:1f:22:42:41:1e:6f:99:8a:3e:d7: +# f9:3f:40:7a:79:b0:a5:01:92:d2:9d:3d:08:15:a5: +# 10:01:2d:b3:32:76:a8:95:0d:b3:7a:9a:fb:07:10: +# 78:11:6f:e1:8f:c7:ba:0f:25:1a:74:2a:e5:1c:98: +# 41:99:df:21:87:e8:95:06:6a:0a:b3:6a:47:76:65: +# f6:3a:cf:8f:62:17:19:7b:0a:28:cd:1a:d2:83:1e: +# 21:c7:2c:bf:be:ff:61:68:b7:67:1b:bb:78:4d:8d: +# ce:67:e5:e4:c1:8e:b7:23:66:e2:9d:90:75:34:98: +# a9:36:2b:8a:9a:94:b9:9d:ec:cc:8a:b1:f8:25:89: +# 5c:5a:b6:2f:8c:1f:6d:79:24:a7:52:68:c3:84:35: +# e2:66:8d:63:0e:25:4d:d5:19:b2:e6:79:37:a7:22: +# 9d:54:31 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 1E:0C:F7:B6:67:F2:E1:92:26:09:45:C0:55:39:2E:77:3F:42:4A:A2 +# X509v3 Basic Constraints: +# CA:TRUE +# setCext-hashedRoot: +# 0/0-...0...+......0...g*.....E... +#V|.[x....S..... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 09:b3:83:53:59:01:3e:95:49:b9:f1:81:ba:f9:76:20:23:b5: +# 27:60:74:d4:6a:99:34:5e:6c:00:53:d9:9f:f2:a6:b1:24:07: +# 44:6a:2a:c6:a5:8e:78:12:e8:47:d9:58:1b:13:2a:5e:79:9b: +# 9f:0a:2a:67:a6:25:3f:06:69:56:73:c3:8a:66:48:fb:29:81: +# 57:74:06:ca:9c:ea:28:e8:38:67:26:2b:f1:d5:b5:3f:65:93: +# f8:36:5d:8e:8d:8d:40:20:87:19:ea:ef:27:c0:3d:b4:39:0f: +# 25:7b:68:50:74:55:9c:0c:59:7d:5a:3d:41:94:25:52:08:e0: +# 47:2c:15:31:19:d5:bf:07:55:c6:bb:12:b5:97:f4:5f:83:85: +# ba:71:c1:d9:6c:81:11:76:0a:0a:b0:bf:82:97:f7:ea:3d:fa: +# fa:ec:2d:a9:28:94:3b:56:dd:d2:51:2e:ae:c0:bd:08:15:8c: +# 77:52:34:96:d6:9b:ac:d3:1d:8e:61:0f:35:7b:9b:ae:39:69: +# 0b:62:60:40:20:36:8f:af:fb:36:ee:2d:08:4a:1d:b8:bf:9b: +# 5c:f8:ea:a5:1b:a0:73:a6:d8:f8:6e:e0:33:04:5f:68:aa:27: +# 87:ed:d9:c1:90:9c:ed:bd:e3:6a:35:af:63:df:ab:18:d9:ba: +# e6:e9:4a:ea:50:8a:0f:61:93:1e:e2:2d:19:e2:30:94:35:92: +# 5d:0e:b6:07:af:19:80:8f:47:90:51:4b:2e:4d:dd:85:e2:d2: +# 0a:52:0a:17:9a:fc:1a:b0:50:02:e5:01:a3:63:37:21:4c:44: +# c4:9b:51:99:11:0e:73:9c:06:8f:54:2e:a7:28:5e:44:39:87: +# 56:2d:37:bd:85:44:94:e1:0c:4b:2c:9c:c3:92:85:34:61:cb: +# 0f:b8:9b:4a:43:52:fe:34:3a:7d:b8:e9:29:dc:76:a9:c8:30: +# f8:14:71:80:c6:1e:36:48:74:22:41:5c:87:82:e8:18:71:8b: +# 41:89:44:e7:7e:58:5b:a8:b8:8d:13:e9:a7:6c:c3:47:ed:b3: +# 1a:9d:62:ae:8d:82:ea:94:9e:dd:59:10:c3:ad:dd:e2:4d:e3: +# 31:d5:c7:ec:e8:f2:b0:fe:92:1e:16:0a:1a:fc:d9:f3:f8:27: +# b6:c9:be:1d:b4:6c:64:90:7f:f4:e4:c4:5b:d7:37:ae:42:0e: +# dd:a4:1a:6f:7c:88:54:c5:16:6e:e1:7a:68:2e:f8:3a:bf:0d: +# a4:3c:89:3b:78:a7:4e:63:83:04:21:08:67:8d:f2:82:49:d0: +# 5b:fd:b1:cd:0f:83:84:d4:3e:20:85:f7:4a:3d:2b:9c:fd:2a: +# 0a:09:4d:ea:81:f8:11:9c + +[p11-kit-object-v1] +label: "e-Szigno Root CA 2017" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEltw9itiwe2/GJ75EkLGzVhV7jkMk +fRqEWe5jaLLGXofQFUgeqJCtvVOi2t46kKZgX2gytYZB34dbLHvF/nx62g== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "e-Szigno Root CA 2017" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICQDCCAeWgAwIBAgIMAVRI7yH9l1kN9QQKMAoGCCqGSM49BAMCMHExCzAJBgNV +BAYTAkhVMREwDwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UECgwNTWljcm9zZWMgTHRk +LjEXMBUGA1UEYQwOVkFUSFUtMjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3ppZ25vIFJv +b3QgQ0EgMjAxNzAeFw0xNzA4MjIxMjA3MDZaFw00MjA4MjIxMjA3MDZaMHExCzAJ +BgNVBAYTAkhVMREwDwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UECgwNTWljcm9zZWMg +THRkLjEXMBUGA1UEYQwOVkFUSFUtMjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3ppZ25v +IFJvb3QgQ0EgMjAxNzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJbcPYrYsHtv +xie+RJCxs1YVe45DJH0ahFnuY2iyxl6H0BVIHqiQrb1TotreOpCmYF9oMrWGQd+H +Wyx7xf58etqjYzBhMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0G +A1UdDgQWBBSHERUI0arBeAyxr87GyZDvvzAEwDAfBgNVHSMEGDAWgBSHERUI0arB +eAyxr87GyZDvvzAEwDAKBggqhkjOPQQDAgNJADBGAiEAtVfd14pVCzbhhkT61Nlo +jbjcI4qKDdQvfepz7L9NbKgCIQDLpbQS+ue16M9+k/zzNY9vTlp8tLxOsvxyqltZ ++efcMQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 01:54:48:ef:21:fd:97:59:0d:f5:04:0a +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=HU, L=Budapest, O=Microsec Ltd., organizationIdentifier=VATHU-23584497, CN=e-Szigno Root CA 2017 +# Validity +# Not Before: Aug 22 12:07:06 2017 GMT +# Not After : Aug 22 12:07:06 2042 GMT +# Subject: C=HU, L=Budapest, O=Microsec Ltd., organizationIdentifier=VATHU-23584497, CN=e-Szigno Root CA 2017 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (256 bit) +# pub: +# 04:96:dc:3d:8a:d8:b0:7b:6f:c6:27:be:44:90:b1: +# b3:56:15:7b:8e:43:24:7d:1a:84:59:ee:63:68:b2: +# c6:5e:87:d0:15:48:1e:a8:90:ad:bd:53:a2:da:de: +# 3a:90:a6:60:5f:68:32:b5:86:41:df:87:5b:2c:7b: +# c5:fe:7c:7a:da +# ASN1 OID: prime256v1 +# NIST CURVE: P-256 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 87:11:15:08:D1:AA:C1:78:0C:B1:AF:CE:C6:C9:90:EF:BF:30:04:C0 +# X509v3 Authority Key Identifier: +# 87:11:15:08:D1:AA:C1:78:0C:B1:AF:CE:C6:C9:90:EF:BF:30:04:C0 +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:46:02:21:00:b5:57:dd:d7:8a:55:0b:36:e1:86:44:fa:d4: +# d9:68:8d:b8:dc:23:8a:8a:0d:d4:2f:7d:ea:73:ec:bf:4d:6c: +# a8:02:21:00:cb:a5:b4:12:fa:e7:b5:e8:cf:7e:93:fc:f3:35: +# 8f:6f:4e:5a:7c:b4:bc:4e:b2:fc:72:aa:5b:59:f9:e7:dc:31 + +[p11-kit-object-v1] +label: "Explicitly Distrust DigiNotar Root CA" +class: certificate +certificate-type: x-509 +modifiable: false +issuer: "0_1%0B0%09%06%03U%04%06%13%02NL1%120%10%06%03U%04%0A%13%09DigiNotar1%1A0%18%06%03U%04%03%13%11DigiNotar%20Root%20CA1%200%1E%06%09%2A%86H%86%F7%0D%01%09%01%16%11info%40diginotar.nl" +serial-number: "%02%10%0F%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF" +x-distrusted: true + + +[p11-kit-object-v1] +label: "FIRMAPROFESIONAL CA ROOT-A WEB" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER1PqLBGkd8cq6vPWX3vTBJFc+ojGIrmD +EGJ3hDMt6QOI1OAz9+13LEpg6uRvrW20+EyKpOQfyupPOEougnMrx2abCoxAnHyK +9vI5YLLey+y45G/qm123U5AYMlXFILeU +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "FIRMAPROFESIONAL CA ROOT-A WEB" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICejCCAgCgAwIBAgIQMZch7a+JQn81QYehZ1ZMbTAKBggqhkjOPQQDAzBuMQsw +CQYDVQQGEwJFUzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25hbCBTQTEYMBYGA1UE +YQwPVkFURVMtQTYyNjM0MDY4MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFMIENB +IFJPT1QtQSBXRUIwHhcNMjIwNDA2MDkwMTM2WhcNNDcwMzMxMDkwMTM2WjBuMQsw +CQYDVQQGEwJFUzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25hbCBTQTEYMBYGA1UE +YQwPVkFURVMtQTYyNjM0MDY4MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFMIENB +IFJPT1QtQSBXRUIwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARHU+osEaR3xyrq89Zf +e9MEkVz6iMYiuYMQYneEMy3pA4jU4DP37XcsSmDq5G+tbbT4TIqk5B/K6k84Si6C +cyvHZpsKjECcfIr28jlgst7L7Ljkb+qbXbdTkBgyVcUgt5SjYzBhMA8GA1UdEwEB +/wQFMAMBAf8wHwYDVR0jBBgwFoAUk+FDY1w8ndYn81LsF7Kpryz3dvgwHQYDVR0O +BBYEFJPhQ2NcPJ3WJ/NS7Beyqa8s93b4MA4GA1UdDwEB/wQEAwIBBjAKBggqhkjO +PQQDAwNoADBlAjAdfKR7w4l1M+E7qUW/Runpod3JIha3RxEL2Jq68cgLcFBTApFw +hVmpHqTm6iMxoAACMQD94vizrxa5HnPEluPBMBnYfubDl94cT7iJLzPrSA8Z94dG +XSaQpYXFuXqUPoeovQA= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 31:97:21:ed:af:89:42:7f:35:41:87:a1:67:56:4c:6d +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=ES, O=Firmaprofesional SA, organizationIdentifier=VATES-A62634068, CN=FIRMAPROFESIONAL CA ROOT-A WEB +# Validity +# Not Before: Apr 6 09:01:36 2022 GMT +# Not After : Mar 31 09:01:36 2047 GMT +# Subject: C=ES, O=Firmaprofesional SA, organizationIdentifier=VATES-A62634068, CN=FIRMAPROFESIONAL CA ROOT-A WEB +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:47:53:ea:2c:11:a4:77:c7:2a:ea:f3:d6:5f:7b: +# d3:04:91:5c:fa:88:c6:22:b9:83:10:62:77:84:33: +# 2d:e9:03:88:d4:e0:33:f7:ed:77:2c:4a:60:ea:e4: +# 6f:ad:6d:b4:f8:4c:8a:a4:e4:1f:ca:ea:4f:38:4a: +# 2e:82:73:2b:c7:66:9b:0a:8c:40:9c:7c:8a:f6:f2: +# 39:60:b2:de:cb:ec:b8:e4:6f:ea:9b:5d:b7:53:90: +# 18:32:55:c5:20:b7:94 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 93:E1:43:63:5C:3C:9D:D6:27:F3:52:EC:17:B2:A9:AF:2C:F7:76:F8 +# X509v3 Subject Key Identifier: +# 93:E1:43:63:5C:3C:9D:D6:27:F3:52:EC:17:B2:A9:AF:2C:F7:76:F8 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:1d:7c:a4:7b:c3:89:75:33:e1:3b:a9:45:bf:46: +# e9:e9:a1:dd:c9:22:16:b7:47:11:0b:d8:9a:ba:f1:c8:0b:70: +# 50:53:02:91:70:85:59:a9:1e:a4:e6:ea:23:31:a0:00:02:31: +# 00:fd:e2:f8:b3:af:16:b9:1e:73:c4:96:e3:c1:30:19:d8:7e: +# e6:c3:97:de:1c:4f:b8:89:2f:33:eb:48:0f:19:f7:87:46:5d: +# 26:90:a5:85:c5:b9:7a:94:3e:87:a8:bd:00 + +[p11-kit-object-v1] +label: "GDCA TrustAUTH R5 ROOT" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2aMW8Mh0dHeb7zMNOwZ+ +Vfy1YI92hhJCfVZmPoiC7XJjDp6L3TQsAlFRwxn9WVSEyfFrs0yw6ehGXTjGoqcu +EVe6ghWinI9tsJlKCvLriXBjTnnEt1u9ol2x8kECK62pOqPseQrsXzrj/e+APK00 +mxqriCZ7VqKChh/rNYmDf1+uKU49tm7srsHwJ5uu4/Ts765/94Y9cnrrpftZTqfr +lYwiOXnhLQiPzLyRuEH3FMEjqcOtmkVEs7LXLM3GKeJQEK5cy4KOFxg2fZfmiJqw +TTQJ9Cy5WmYqsBebnh52nUpmMUHfP/vFBu8btn4aRjb3ZGM74zkYI+dndRTVdVeS +N72+ahsmUPI2JgaQxXABZG12ZuGR224HwGGALrIuL4xwp9E7PLOR5G62xDtw8myS +lwnNR30YwPO7ng/Wi64HtloPzgsMR6flPri9fcebNaBhlzpBdRfMK5Z3KpIhHtmV +diBnaM8Nvd/WHwlqmuLMc3GkL30SgLdTMEZeS1SZD2fJpcjyIMGC7J0R38IC+xo7 +0e0gmu9lZJIQDSri3nDxGGeCjGHeuLzRL5z7D9Ar7Rt2ueQ5Vfj4oR24qoAATILn +sn8JuLwwoC8N9VKejveSswoAHQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx +9hoh49pwBiFYFIeFd3mqgnkCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GDCA TrustAUTH R5 ROOT" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFiDCCA3CgAwIBAgIIfQmX/vBH6nowDQYJKoZIhvcNAQELBQAwYjELMAkGA1UE +BhMCQ04xMjAwBgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZ +IENPLixMVEQuMR8wHQYDVQQDDBZHRENBIFRydXN0QVVUSCBSNSBST09UMB4XDTE0 +MTEyNjA1MTMxNVoXDTQwMTIzMTE1NTk1OVowYjELMAkGA1UEBhMCQ04xMjAwBgNV +BAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZIENPLixMVEQuMR8w +HQYDVQQDDBZHRENBIFRydXN0QVVUSCBSNSBST09UMIICIjANBgkqhkiG9w0BAQEF +AAOCAg8AMIICCgKCAgEA2aMW8Mh0dHeb7zMNOwZ+Vfy1YI92hhJCfVZmPoiC7XJj +Dp6L3TQsAlFRwxn9WVSEyfFrs0yw6ehGXTjGoqcuEVe6ghWinI9tsJlKCvLriXBj +TnnEt1u9ol2x8kECK62pOqPseQrsXzrj/e+APK00mxqriCZ7VqKChh/rNYmDf1+u +KU49tm7srsHwJ5uu4/Ts765/94Y9cnrrpftZTqfrlYwiOXnhLQiPzLyRuEH3FMEj +qcOtmkVEs7LXLM3GKeJQEK5cy4KOFxg2fZfmiJqwTTQJ9Cy5WmYqsBebnh52nUpm +MUHfP/vFBu8btn4aRjb3ZGM74zkYI+dndRTVdVeSN72+ahsmUPI2JgaQxXABZG12 +ZuGR224HwGGALrIuL4xwp9E7PLOR5G62xDtw8mySlwnNR30YwPO7ng/Wi64HtloP +zgsMR6flPri9fcebNaBhlzpBdRfMK5Z3KpIhHtmVdiBnaM8Nvd/WHwlqmuLMc3Gk +L30SgLdTMEZeS1SZD2fJpcjyIMGC7J0R38IC+xo70e0gmu9lZJIQDSri3nDxGGeC +jGHeuLzRL5z7D9Ar7Rt2ueQ5Vfj4oR24qoAATILnsn8JuLwwoC8N9VKejveSswoA +HQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx9hoh49pwBiFYFIeFd3mqgnkC +AwEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlRMA8GA1UdEwEB +/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg +p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZm +DRd9FBUb1Ov9H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5 +COmSdI31R9KrO9b7eGZONn356ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ry +L3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd+PwyvzeG5LuOmCd+uh8W4XAR8gPf +JWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQHtZa37dG/OaG+svg +IHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBDF8Io +2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV +09tL7ECQ8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQ +XR4EzzffHqhmsYzmIGrv/EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrq +T8p+ck0LcIymSLumoRT2+1hEmRSuqguTaaApJUqlyyvdimYHFngVV3Eb7PVHhPOe +MTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 9009899650740120186 (0x7d0997fef047ea7a) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=GUANG DONG CERTIFICATE AUTHORITY CO.,LTD., CN=GDCA TrustAUTH R5 ROOT +# Validity +# Not Before: Nov 26 05:13:15 2014 GMT +# Not After : Dec 31 15:59:59 2040 GMT +# Subject: C=CN, O=GUANG DONG CERTIFICATE AUTHORITY CO.,LTD., CN=GDCA TrustAUTH R5 ROOT +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d9:a3:16:f0:c8:74:74:77:9b:ef:33:0d:3b:06: +# 7e:55:fc:b5:60:8f:76:86:12:42:7d:56:66:3e:88: +# 82:ed:72:63:0e:9e:8b:dd:34:2c:02:51:51:c3:19: +# fd:59:54:84:c9:f1:6b:b3:4c:b0:e9:e8:46:5d:38: +# c6:a2:a7:2e:11:57:ba:82:15:a2:9c:8f:6d:b0:99: +# 4a:0a:f2:eb:89:70:63:4e:79:c4:b7:5b:bd:a2:5d: +# b1:f2:41:02:2b:ad:a9:3a:a3:ec:79:0a:ec:5f:3a: +# e3:fd:ef:80:3c:ad:34:9b:1a:ab:88:26:7b:56:a2: +# 82:86:1f:eb:35:89:83:7f:5f:ae:29:4e:3d:b6:6e: +# ec:ae:c1:f0:27:9b:ae:e3:f4:ec:ef:ae:7f:f7:86: +# 3d:72:7a:eb:a5:fb:59:4e:a7:eb:95:8c:22:39:79: +# e1:2d:08:8f:cc:bc:91:b8:41:f7:14:c1:23:a9:c3: +# ad:9a:45:44:b3:b2:d7:2c:cd:c6:29:e2:50:10:ae: +# 5c:cb:82:8e:17:18:36:7d:97:e6:88:9a:b0:4d:34: +# 09:f4:2c:b9:5a:66:2a:b0:17:9b:9e:1e:76:9d:4a: +# 66:31:41:df:3f:fb:c5:06:ef:1b:b6:7e:1a:46:36: +# f7:64:63:3b:e3:39:18:23:e7:67:75:14:d5:75:57: +# 92:37:bd:be:6a:1b:26:50:f2:36:26:06:90:c5:70: +# 01:64:6d:76:66:e1:91:db:6e:07:c0:61:80:2e:b2: +# 2e:2f:8c:70:a7:d1:3b:3c:b3:91:e4:6e:b6:c4:3b: +# 70:f2:6c:92:97:09:cd:47:7d:18:c0:f3:bb:9e:0f: +# d6:8b:ae:07:b6:5a:0f:ce:0b:0c:47:a7:e5:3e:b8: +# bd:7d:c7:9b:35:a0:61:97:3a:41:75:17:cc:2b:96: +# 77:2a:92:21:1e:d9:95:76:20:67:68:cf:0d:bd:df: +# d6:1f:09:6a:9a:e2:cc:73:71:a4:2f:7d:12:80:b7: +# 53:30:46:5e:4b:54:99:0f:67:c9:a5:c8:f2:20:c1: +# 82:ec:9d:11:df:c2:02:fb:1a:3b:d1:ed:20:9a:ef: +# 65:64:92:10:0d:2a:e2:de:70:f1:18:67:82:8c:61: +# de:b8:bc:d1:2f:9c:fb:0f:d0:2b:ed:1b:76:b9:e4: +# 39:55:f8:f8:a1:1d:b8:aa:80:00:4c:82:e7:b2:7f: +# 09:b8:bc:30:a0:2f:0d:f5:52:9e:8e:f7:92:b3:0a: +# 00:1d:00:54:97:06:e0:b1:07:d9:c7:0f:5c:65:7d: +# 3c:6d:59:57:e4:ed:a5:8d:e9:40:53:9f:15:4b:a0: +# 71:f6:1a:21:e3:da:70:06:21:58:14:87:85:77:79: +# aa:82:79 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# E2:C9:40:9F:4D:CE:E8:9A:A1:7C:CF:0E:3F:65:C5:29:88:6A:19:51 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# d1:49:57:e0:a7:cc:68:58:ba:01:0f:2b:19:cd:8d:b0:61:45: +# ac:11:ed:63:50:69:f8:1f:7f:be:16:8f:fd:9d:eb:0b:aa:32: +# 47:76:d2:67:24:ed:bd:7c:33:32:97:2a:c7:05:86:66:0d:17: +# 7d:14:15:1b:d4:eb:fd:1f:9a:f6:5e:97:69:b7:1a:25:a4:0a: +# b3:91:3f:5f:36:ac:8b:ec:57:a8:3e:e7:81:8a:18:57:39:85: +# 74:1a:42:c7:e9:5b:13:5f:8f:f9:08:e9:92:74:8d:f5:47:d2: +# ab:3b:d6:fb:78:66:4e:36:7d:f9:e9:92:e9:04:de:fd:49:63: +# fc:6d:fb:14:71:93:67:2f:47:4a:b7:b9:ff:1e:2a:73:70:46: +# 30:bf:5a:f2:2f:79:a5:e1:8d:0c:d9:f9:b2:63:37:8c:37:65: +# 85:70:6a:5c:5b:09:72:b9:ad:63:3c:b1:dd:f8:fc:32:bf:37: +# 86:e4:bb:8e:98:27:7e:ba:1f:16:e1:70:11:f2:03:df:25:62: +# 32:27:26:18:32:84:9f:ff:00:3a:13:ba:9a:4d:f4:4f:b8:14: +# 70:22:b1:ca:2b:90:ce:29:c1:70:f4:2f:9d:7f:f2:90:1e:d6: +# 5a:df:b7:46:fc:e6:86:fa:cb:e0:20:76:7a:ba:a6:cb:f5:7c: +# de:62:a5:b1:8b:ee:de:82:66:8a:4e:3a:30:1f:3f:80:cb:ad: +# 27:ba:0c:5e:d7:d0:b1:56:ca:77:71:b2:b5:75:a1:50:a9:40: +# 43:17:c2:28:d9:cf:52:8b:5b:c8:63:d4:42:3e:a0:33:7a:46: +# 2e:f7:0a:20:46:54:7e:6a:4f:31:f1:81:7e:42:74:38:65:73: +# 27:ee:c6:7c:b8:8e:d7:a5:3a:d7:98:a1:9c:8c:10:55:d3:db: +# 4b:ec:40:90:f2:cd:6e:57:d2:62:0e:7c:57:93:b1:a7:6d:cd: +# 9d:83:bb:2a:e7:e5:b6:3b:71:58:ad:fd:d1:45:bc:5a:91:ee: +# 53:15:6f:d3:45:09:75:6e:ba:90:5d:1e:04:cf:37:df:1e:a8: +# 66:b1:8c:e6:20:6a:ef:fc:48:4e:74:98:42:af:29:6f:2e:6a: +# c7:fb:7d:d1:66:31:22:cc:86:00:7e:66:83:0c:42:f4:bd:34: +# 92:c3:1a:ea:4f:ca:7e:72:4d:0b:70:8c:a6:48:bb:a6:a1:14: +# f6:fb:58:44:99:14:ae:aa:0b:93:69:a0:29:25:4a:a5:cb:2b: +# dd:8a:66:07:16:78:15:57:71:1b:ec:f5:47:84:f3:9e:31:37: +# 7a:d5:7f:24:ad:e4:bc:fd:fd:cc:6e:83:e8:0c:a8:b7:41:6c: +# 07:dd:bd:3c:86:97:2f:d2 + +[p11-kit-object-v1] +label: "GlobalSign ECC Root CA - R4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprlOQcJ +FspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign ECC Root CA - R4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIB3DCCAYOgAwIBAgINAgPlfvU/k/2lCSGypjAKBggqhkjOPQQDAjBQMSQwIgYD +VQQLExtHbG9iYWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2Jh +bFNpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMTIxMTEzMDAwMDAwWhcNMzgw +MTE5MDMxNDA3WjBQMSQwIgYDVQQLExtHbG9iYWxTaWduIEVDQyBSb290IENBIC0g +UjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wWTAT +BgcqhkjOPQIBBggqhkjOPQMBBwNCAAS4xnnTj2wlDp8uORkcA6SumuU5BwkWymOx +uYb4ilfBV85C+nOh92VC/x7BALJucw7/xyHlGKSq2XE/qNS5zowdo0IwQDAOBgNV +HQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVLB7rUW44kB/ ++wpu+74zyTyjhNUwCgYIKoZIzj0EAwIDRwAwRAIgIk90crlgr/HmnKAWBVBfw147 +bmF0774BxL4YSFlhgjICICadVGNA3jdgUM/I2O2dgq43mLyjj0xMqTQrbO/7lZsm +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:03:e5:7e:f5:3f:93:fd:a5:09:21:b2:a6 +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: OU=GlobalSign ECC Root CA - R4, O=GlobalSign, CN=GlobalSign +# Validity +# Not Before: Nov 13 00:00:00 2012 GMT +# Not After : Jan 19 03:14:07 2038 GMT +# Subject: OU=GlobalSign ECC Root CA - R4, O=GlobalSign, CN=GlobalSign +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (256 bit) +# pub: +# 04:b8:c6:79:d3:8f:6c:25:0e:9f:2e:39:19:1c:03: +# a4:ae:9a:e5:39:07:09:16:ca:63:b1:b9:86:f8:8a: +# 57:c1:57:ce:42:fa:73:a1:f7:65:42:ff:1e:c1:00: +# b2:6e:73:0e:ff:c7:21:e5:18:a4:aa:d9:71:3f:a8: +# d4:b9:ce:8c:1d +# ASN1 OID: prime256v1 +# NIST CURVE: P-256 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 54:B0:7B:AD:45:B8:E2:40:7F:FB:0A:6E:FB:BE:33:C9:3C:A3:84:D5 +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:44:02:20:22:4f:74:72:b9:60:af:f1:e6:9c:a0:16:05:50: +# 5f:c3:5e:3b:6e:61:74:ef:be:01:c4:be:18:48:59:61:82:32: +# 02:20:26:9d:54:63:40:de:37:60:50:cf:c8:d8:ed:9d:82:ae: +# 37:98:bc:a3:8f:4c:4c:a9:34:2b:6c:ef:fb:95:9b:26 + +[p11-kit-object-v1] +label: "GlobalSign ECC Root CA - R5" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6SFkc +8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8ke +hOvRnkmSh5SHDDqFSmafnVmTTZdhBoZK +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign ECC Root CA - R5" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEk +MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpH +bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX +DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD +QSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6SFkc +8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8ke +hOvRnkmSh5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYI +KoZIzj0EAwMDaAAwZQIxAOVpEslu28YxuglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg +515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7yFz9SO8NdCKoCOJuxUnO +xwy8p2Fp8fc74SrL+SvzZpA3 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 60:59:49:e0:26:2e:bb:55:f9:0a:77:8a:71:f9:4a:d8:6c +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: OU=GlobalSign ECC Root CA - R5, O=GlobalSign, CN=GlobalSign +# Validity +# Not Before: Nov 13 00:00:00 2012 GMT +# Not After : Jan 19 03:14:07 2038 GMT +# Subject: OU=GlobalSign ECC Root CA - R5, O=GlobalSign, CN=GlobalSign +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:47:45:0e:96:fb:7d:5d:bf:e9:39:d1:21:f8:9f: +# 0b:b6:d5:7b:1e:92:3a:48:59:1c:f0:62:31:2d:c0: +# 7a:28:fe:1a:a7:5c:b3:b6:cc:97:e7:45:d4:58:fa: +# d1:77:6d:43:a2:c0:87:65:34:0a:1f:7a:dd:eb:3c: +# 33:a1:c5:9d:4d:a4:6f:41:95:38:7f:c9:1e:84:eb: +# d1:9e:49:92:87:94:87:0c:3a:85:4a:66:9f:9d:59: +# 93:4d:97:61:06:86:4a +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 3D:E6:29:48:9B:EA:07:CA:21:44:4A:26:DE:6E:DE:D2:83:D0:9F:59 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:e5:69:12:c9:6e:db:c6:31:ba:09:41:e1:97: +# f8:fb:fd:9a:e2:7d:12:c9:ed:7c:64:d3:cb:05:25:8b:56:d9: +# a0:e7:5e:5d:4e:0b:83:9c:5b:76:29:a0:09:26:21:6a:62:02: +# 30:71:d2:b5:8f:5c:ea:3b:e1:78:09:85:a8:75:92:3b:c8:5c: +# fd:48:ef:0d:74:22:a8:08:e2:6e:c5:49:ce:c7:0c:bc:a7:61: +# 69:f1:f7:3b:e1:2a:cb:f9:2b:f3:66:90:37 + +[p11-kit-object-v1] +label: "GlobalSign Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2g7mmY3Oo+NPin778YuD +JWvqSB/xKrC5lREEvfBj0eJnZs8c3c8bSCvujYmOmq8pgGWr6cctEsurHExwB6E9 +CjDNFY1P+N3UjFAVHO9Q7sQu9/zpUvKRfeBt1TUwjl5Dc/JB6dVq47KJOlY5OG8G +PIhpWypNxadUuGyJzJv5PMrl/Yn1EjySeJbW3HRuk0Rh0Y3HRrJ1DoboGYrVbWzV +eBaVounICjjr8iQTT3NUkxOFOhu8HjS1iwWMuXeLsdsfIJGrCVNukM57N3S5cEeR +IlFjFnmusa5BJgjIGSvRRqpI1mQq14M0/ywqwWwZQ0oHhefTfPYhaO/q8lKff5OQ +zwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG +A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv +b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw +MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i +YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT +aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ +jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp +xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp +1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG +snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ +U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8 +9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E +BTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0B +AQUFAAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOz +yj1hTdNGCbM+w6DjY1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE +38NflNUVyRRBnMRddWQVDf9VMOyGj/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymP +AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad +DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME +HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 04:00:00:00:00:01:15:4b:5a:c3:94 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA +# Validity +# Not Before: Sep 1 12:00:00 1998 GMT +# Not After : Jan 28 12:00:00 2028 GMT +# Subject: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:da:0e:e6:99:8d:ce:a3:e3:4f:8a:7e:fb:f1:8b: +# 83:25:6b:ea:48:1f:f1:2a:b0:b9:95:11:04:bd:f0: +# 63:d1:e2:67:66:cf:1c:dd:cf:1b:48:2b:ee:8d:89: +# 8e:9a:af:29:80:65:ab:e9:c7:2d:12:cb:ab:1c:4c: +# 70:07:a1:3d:0a:30:cd:15:8d:4f:f8:dd:d4:8c:50: +# 15:1c:ef:50:ee:c4:2e:f7:fc:e9:52:f2:91:7d:e0: +# 6d:d5:35:30:8e:5e:43:73:f2:41:e9:d5:6a:e3:b2: +# 89:3a:56:39:38:6f:06:3c:88:69:5b:2a:4d:c5:a7: +# 54:b8:6c:89:cc:9b:f9:3c:ca:e5:fd:89:f5:12:3c: +# 92:78:96:d6:dc:74:6e:93:44:61:d1:8d:c7:46:b2: +# 75:0e:86:e8:19:8a:d5:6d:6c:d5:78:16:95:a2:e9: +# c8:0a:38:eb:f2:24:13:4f:73:54:93:13:85:3a:1b: +# bc:1e:34:b5:8b:05:8c:b9:77:8b:b1:db:1f:20:91: +# ab:09:53:6e:90:ce:7b:37:74:b9:70:47:91:22:51: +# 63:16:79:ae:b1:ae:41:26:08:c8:19:2b:d1:46:aa: +# 48:d6:64:2a:d7:83:34:ff:2c:2a:c1:6c:19:43:4a: +# 07:85:e7:d3:7c:f6:21:68:ef:ea:f2:52:9f:7f:93: +# 90:cf +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 60:7B:66:1A:45:0D:97:CA:89:50:2F:7D:04:CD:34:A8:FF:FC:FD:4B +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# d6:73:e7:7c:4f:76:d0:8d:bf:ec:ba:a2:be:34:c5:28:32:b5: +# 7c:fc:6c:9c:2c:2b:bd:09:9e:53:bf:6b:5e:aa:11:48:b6:e5: +# 08:a3:b3:ca:3d:61:4d:d3:46:09:b3:3e:c3:a0:e3:63:55:1b: +# f2:ba:ef:ad:39:e1:43:b9:38:a3:e6:2f:8a:26:3b:ef:a0:50: +# 56:f9:c6:0a:fd:38:cd:c4:0b:70:51:94:97:98:04:df:c3:5f: +# 94:d5:15:c9:14:41:9c:c4:5d:75:64:15:0d:ff:55:30:ec:86: +# 8f:ff:0d:ef:2c:b9:63:46:f6:aa:fc:df:bc:69:fd:2e:12:48: +# 64:9a:e0:95:f0:a6:ef:29:8f:01:b1:15:b5:0c:1d:a5:fe:69: +# 2c:69:24:78:1e:b3:a7:1c:71:62:ee:ca:c8:97:ac:17:5d:8a: +# c2:f8:47:86:6e:2a:c4:56:31:95:d0:67:89:85:2b:f9:6c:a6: +# 5d:46:9d:0c:aa:82:e4:99:51:dd:70:b7:db:56:3d:61:e4:6a: +# e1:5c:d6:f6:fe:3d:de:41:cc:07:ae:63:52:bf:53:53:f4:2b: +# e9:c7:fd:b6:f7:82:5f:85:d2:41:18:db:81:b3:04:1c:c5:1f: +# a4:80:6f:15:20:c9:de:0c:88:0a:1d:d6:66:55:e2:fc:48:c9: +# 29:26:69:e0 + +[p11-kit-object-v1] +label: "GlobalSign Root CA - R3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzCV2kHkGeCIW9cCDtoTK +KJ79BXYRxa2IcvxGAkPHsoqdBF8kyy5L4WCCRuFSqwyBR3Bs3WTR6/Usow+CPQwr +rpfXthSGEHm7OxOAd4wI4UnSamIvH176lmjfiSeVOJ8G1z7JyyZZDXPesMjpJg6D +FcbvW4vSBGDKSaYo9mk79svIKJHlnYphVzesdBTcdOA67nIvLpz70Lu/9T0A4QYz +6IIrrlOmOhZzjN1BDiA6wLSnoemyT5AuMmDpV8u5BJJoaOU4JmB1sp93/5EU764g +SfytQBVI0QIxYRleuJfvrXe3ZJp6v1/BE++bYvsNbOBUaRapA9pu6YOTcXbGaYWC +FwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Root CA - R3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G +A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp +Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4 +MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG +A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8 +RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT +gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmm +KPZpO/bLyCiR5Z2KYVc3rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zd +QQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjlOCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZ +XriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2xmmFghcCAwEAAaNCMEAw +DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFI/wS3+o +LkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZU +RUm7lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMp +jjM5RcOO5LlXbKr8EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK +6fBdRoyV3XpYKBovHd7NADdBj+1EbddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQX +mcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18YIvDQVETI53O9zJrlAGomecs +Mx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7rkpeDMdmztcpH +WD9f +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 04:00:00:00:00:01:21:58:53:08:a2 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: OU=GlobalSign Root CA - R3, O=GlobalSign, CN=GlobalSign +# Validity +# Not Before: Mar 18 10:00:00 2009 GMT +# Not After : Mar 18 10:00:00 2029 GMT +# Subject: OU=GlobalSign Root CA - R3, O=GlobalSign, CN=GlobalSign +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:cc:25:76:90:79:06:78:22:16:f5:c0:83:b6:84: +# ca:28:9e:fd:05:76:11:c5:ad:88:72:fc:46:02:43: +# c7:b2:8a:9d:04:5f:24:cb:2e:4b:e1:60:82:46:e1: +# 52:ab:0c:81:47:70:6c:dd:64:d1:eb:f5:2c:a3:0f: +# 82:3d:0c:2b:ae:97:d7:b6:14:86:10:79:bb:3b:13: +# 80:77:8c:08:e1:49:d2:6a:62:2f:1f:5e:fa:96:68: +# df:89:27:95:38:9f:06:d7:3e:c9:cb:26:59:0d:73: +# de:b0:c8:e9:26:0e:83:15:c6:ef:5b:8b:d2:04:60: +# ca:49:a6:28:f6:69:3b:f6:cb:c8:28:91:e5:9d:8a: +# 61:57:37:ac:74:14:dc:74:e0:3a:ee:72:2f:2e:9c: +# fb:d0:bb:bf:f5:3d:00:e1:06:33:e8:82:2b:ae:53: +# a6:3a:16:73:8c:dd:41:0e:20:3a:c0:b4:a7:a1:e9: +# b2:4f:90:2e:32:60:e9:57:cb:b9:04:92:68:68:e5: +# 38:26:60:75:b2:9f:77:ff:91:14:ef:ae:20:49:fc: +# ad:40:15:48:d1:02:31:61:19:5e:b8:97:ef:ad:77: +# b7:64:9a:7a:bf:5f:c1:13:ef:9b:62:fb:0d:6c:e0: +# 54:69:16:a9:03:da:6e:e9:83:93:71:76:c6:69:85: +# 82:17 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 8F:F0:4B:7F:A8:2E:45:24:AE:4D:50:FA:63:9A:8B:DE:E2:DD:1B:BC +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 4b:40:db:c0:50:aa:fe:c8:0c:ef:f7:96:54:45:49:bb:96:00: +# 09:41:ac:b3:13:86:86:28:07:33:ca:6b:e6:74:b9:ba:00:2d: +# ae:a4:0a:d3:f5:f1:f1:0f:8a:bf:73:67:4a:83:c7:44:7b:78: +# e0:af:6e:6c:6f:03:29:8e:33:39:45:c3:8e:e4:b9:57:6c:aa: +# fc:12:96:ec:53:c6:2d:e4:24:6c:b9:94:63:fb:dc:53:68:67: +# 56:3e:83:b8:cf:35:21:c3:c9:68:fe:ce:da:c2:53:aa:cc:90: +# 8a:e9:f0:5d:46:8c:95:dd:7a:58:28:1a:2f:1d:de:cd:00:37: +# 41:8f:ed:44:6d:d7:53:28:97:7e:f3:67:04:1e:15:d7:8a:96: +# b4:d3:de:4c:27:a4:4c:1b:73:73:76:f4:17:99:c2:1f:7a:0e: +# e3:2d:08:ad:0a:1c:2c:ff:3c:ab:55:0e:0f:91:7e:36:eb:c3: +# 57:49:be:e1:2e:2d:7c:60:8b:c3:41:51:13:23:9d:ce:f7:32: +# 6b:94:01:a8:99:e7:2c:33:1f:3a:3b:25:d2:86:40:ce:3b:2c: +# 86:78:c9:61:2f:14:ba:ee:db:55:6f:df:84:ee:05:09:4d:bd: +# 28:d8:72:ce:d3:62:50:65:1e:eb:92:97:83:31:d9:b3:b5:ca: +# 47:58:3f:5f + +[p11-kit-object-v1] +label: "GlobalSign Root CA - R6" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAlQfoc8pm+ewUyns89w0I +8bRFCyyCtEjG61s8roO4QZIzFKRvf+kqzMawiGvFtonRxrL/FM5RFCHsSt0bWsbW +h+5NOhUG7WRmC5KAykTec5RO86eJf094YwjIElBtQmYvTbl5KE1SGooagLcZgQ5+ +xIq8ZEwhHENo1z08isWyZtWQmrcxBsW+4m0yBqYe+bnrqqO4v76CY1DQ8BiJ3+QP +efXqoh8q0nAue+e8k7ttU+JIfIwQBzj/ZrJ3YX7g6ow8qrSk9vOVShIHbf2MsonP +0KBhd8hYdLDUIzr3XTrKotudCd5dRC2Q8YHNV5L6frxQBGM032uTGL5rNrI55Kwk +Nrfw77YcE1eTtt6y+OKFt3OiuDWqRfLgnTahb1SK8XJWbi6IxVFCRBWU7qPFOJab +Tk5aC0fzBjZJdzC8cTflpuwhCHX85mEWP3fV2ZGXhAps1AJNdMAU7f05+4PyXhSh +BLAL6f7uj+FuC7IIs2FmCWqxBjplllnA8DX9ydoojRoRh3CBCqiadR2eOoYFAJ7b +gNYl+dwFnidZTHY5W+r5paHYgw/R/98wEfmFzzNI9cptZBQselhP00sIScWVZBpj +Dnk99bOMylitnEJFeW4OhxlcVLFltr+Mm9wT6Q1vuC7cZ27JixG1hBSKABlwg3mR +l5HUGie/Nx4yB9gUYzwoTK8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Root CA - R6" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEg +MB4GA1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2Jh +bFNpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQx +MjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSNjET +MBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQssgrRI +xutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu1k +ZguSgMpE3nOUTvOniX9PeGMIyBJQbUJmL025eShNUhqKGoC3GYEOfsSKvGRMIRxD +aNc9PIrFsmbVkJq3MQbFvuJtMgamHvm566qjuL++gmNQ0PAYid/kD3n16qIfKtJw +LnvnvJO7bVPiSHyMEAc4/2ayd2F+4OqMPKq0pPbzlUoSB239jLKJz9CgYXfIWHSw +1CM69106yqLbnQneXUQtkPGBzVeS+n68UARjNN9rkxi+azayOeSsJDa38O+2HBNX +k7besvjihbdzorg1qkXy4J02oW9UivFyVm4uiMVRQkQVlO6jxTiWm05OWgtH8wY2 +SXcwvHE35absIQh1/OZhFj931dmRl4QKbNQCTXTAFO39OfuD8l4UoQSwC+n+7o/h +bguyCLNhZglqsQY6ZZZZwPA1/cnaKI0aEYdwgQqomnUdnjqGBQCe24DWJfncBZ4n +WUx2OVvq+aWh2IMP0f/fMBH5hc8zSPXKbWQULHpYT9NLCEnFlWQaYw55PfWzjMpY +rZxCRXluDocZXFSxZba/jJvcE+kNb7gu3GduyYsRtYQUigAZcIN5kZeR1Bonvzce +MgfYFGM8KEyvAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTAD +AQH/MB0GA1UdDgQWBBSubAWjkxPioufi1xzWx/B/yGdToDAfBgNVHSMEGDAWgBSu +bAWjkxPioufi1xzWx/B/yGdToDANBgkqhkiG9w0BAQwFAAOCAgEAgyXt6NH9lVLN +nsAEoJFp5lzQhN7craJP6Ed41mWYqVuoPId8AorRbrcWc+ZfwFSY1XS+wc3iEZGt +Ixg93eFyRJa0lV7Ae46ZeBZDE1ZXs6KzO7V33EByrKPrmzU+sQghoefEQzd5Mr61 +55wsTLxDKZmOMNOsIeDjHfrYBzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLj +vUYAGm0CuiVdjaExUd1URhxN25mW7xocBFymFe944Hn+Xds+qkxV/ZoVqW/hpvvf +cDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr3TsTjxKM4kEaSHpz +oHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB10jZp +nOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfs +pA9MRf/TuTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+v +JJUEeKgDu+6B5dpffItKoZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R +8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+tJDfLRVpOoERIyNiwmcUVhAn21klJwGW4 +5hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 45:e6:bb:03:83:33:c3:85:65:48:e6:ff:45:51 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: OU=GlobalSign Root CA - R6, O=GlobalSign, CN=GlobalSign +# Validity +# Not Before: Dec 10 00:00:00 2014 GMT +# Not After : Dec 10 00:00:00 2034 GMT +# Subject: OU=GlobalSign Root CA - R6, O=GlobalSign, CN=GlobalSign +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:95:07:e8:73:ca:66:f9:ec:14:ca:7b:3c:f7:0d: +# 08:f1:b4:45:0b:2c:82:b4:48:c6:eb:5b:3c:ae:83: +# b8:41:92:33:14:a4:6f:7f:e9:2a:cc:c6:b0:88:6b: +# c5:b6:89:d1:c6:b2:ff:14:ce:51:14:21:ec:4a:dd: +# 1b:5a:c6:d6:87:ee:4d:3a:15:06:ed:64:66:0b:92: +# 80:ca:44:de:73:94:4e:f3:a7:89:7f:4f:78:63:08: +# c8:12:50:6d:42:66:2f:4d:b9:79:28:4d:52:1a:8a: +# 1a:80:b7:19:81:0e:7e:c4:8a:bc:64:4c:21:1c:43: +# 68:d7:3d:3c:8a:c5:b2:66:d5:90:9a:b7:31:06:c5: +# be:e2:6d:32:06:a6:1e:f9:b9:eb:aa:a3:b8:bf:be: +# 82:63:50:d0:f0:18:89:df:e4:0f:79:f5:ea:a2:1f: +# 2a:d2:70:2e:7b:e7:bc:93:bb:6d:53:e2:48:7c:8c: +# 10:07:38:ff:66:b2:77:61:7e:e0:ea:8c:3c:aa:b4: +# a4:f6:f3:95:4a:12:07:6d:fd:8c:b2:89:cf:d0:a0: +# 61:77:c8:58:74:b0:d4:23:3a:f7:5d:3a:ca:a2:db: +# 9d:09:de:5d:44:2d:90:f1:81:cd:57:92:fa:7e:bc: +# 50:04:63:34:df:6b:93:18:be:6b:36:b2:39:e4:ac: +# 24:36:b7:f0:ef:b6:1c:13:57:93:b6:de:b2:f8:e2: +# 85:b7:73:a2:b8:35:aa:45:f2:e0:9d:36:a1:6f:54: +# 8a:f1:72:56:6e:2e:88:c5:51:42:44:15:94:ee:a3: +# c5:38:96:9b:4e:4e:5a:0b:47:f3:06:36:49:77:30: +# bc:71:37:e5:a6:ec:21:08:75:fc:e6:61:16:3f:77: +# d5:d9:91:97:84:0a:6c:d4:02:4d:74:c0:14:ed:fd: +# 39:fb:83:f2:5e:14:a1:04:b0:0b:e9:fe:ee:8f:e1: +# 6e:0b:b2:08:b3:61:66:09:6a:b1:06:3a:65:96:59: +# c0:f0:35:fd:c9:da:28:8d:1a:11:87:70:81:0a:a8: +# 9a:75:1d:9e:3a:86:05:00:9e:db:80:d6:25:f9:dc: +# 05:9e:27:59:4c:76:39:5b:ea:f9:a5:a1:d8:83:0f: +# d1:ff:df:30:11:f9:85:cf:33:48:f5:ca:6d:64:14: +# 2c:7a:58:4f:d3:4b:08:49:c5:95:64:1a:63:0e:79: +# 3d:f5:b3:8c:ca:58:ad:9c:42:45:79:6e:0e:87:19: +# 5c:54:b1:65:b6:bf:8c:9b:dc:13:e9:0d:6f:b8:2e: +# dc:67:6e:c9:8b:11:b5:84:14:8a:00:19:70:83:79: +# 91:97:91:d4:1a:27:bf:37:1e:32:07:d8:14:63:3c: +# 28:4c:af +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# AE:6C:05:A3:93:13:E2:A2:E7:E2:D7:1C:D6:C7:F0:7F:C8:67:53:A0 +# X509v3 Authority Key Identifier: +# AE:6C:05:A3:93:13:E2:A2:E7:E2:D7:1C:D6:C7:F0:7F:C8:67:53:A0 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 83:25:ed:e8:d1:fd:95:52:cd:9e:c0:04:a0:91:69:e6:5c:d0: +# 84:de:dc:ad:a2:4f:e8:47:78:d6:65:98:a9:5b:a8:3c:87:7c: +# 02:8a:d1:6e:b7:16:73:e6:5f:c0:54:98:d5:74:be:c1:cd:e2: +# 11:91:ad:23:18:3d:dd:e1:72:44:96:b4:95:5e:c0:7b:8e:99: +# 78:16:43:13:56:57:b3:a2:b3:3b:b5:77:dc:40:72:ac:a3:eb: +# 9b:35:3e:b1:08:21:a1:e7:c4:43:37:79:32:be:b5:e7:9c:2c: +# 4c:bc:43:29:99:8e:30:d3:ac:21:e0:e3:1d:fa:d8:07:33:76: +# 54:00:22:2a:b9:4d:20:2e:70:68:da:e5:53:fc:83:5c:d3:9d: +# f2:ff:44:0c:44:66:f2:d2:e3:bd:46:00:1a:6d:02:ba:25:5d: +# 8d:a1:31:51:dd:54:46:1c:4d:db:99:96:ef:1a:1c:04:5c:a6: +# 15:ef:78:e0:79:fe:5d:db:3e:aa:4c:55:fd:9a:15:a9:6f:e1: +# a6:fb:df:70:30:e9:c3:ee:42:46:ed:c2:93:05:89:fa:7d:63: +# 7b:3f:d0:71:81:7c:00:e8:98:ae:0e:78:34:c3:25:fb:af:0a: +# 9f:20:6b:dd:3b:13:8f:12:8c:e2:41:1a:48:7a:73:a0:77:69: +# c7:b6:5c:7f:82:c8:1e:fe:58:1b:28:2b:a8:6c:ad:5e:6d:c0: +# 05:d2:7b:b7:eb:80:fe:25:37:fe:02:9b:68:ac:42:5d:c3:ee: +# f5:cc:dc:f0:50:75:d2:36:69:9c:e6:7b:04:df:6e:06:69:b6: +# de:0a:09:48:59:87:eb:7b:14:60:7a:64:aa:69:43:ef:91:c7: +# 4c:ec:18:dd:6c:ef:53:2d:8c:99:e1:5e:f2:72:3e:cf:54:c8: +# bd:67:ec:a4:0f:4c:45:ff:d3:b9:30:23:07:4c:8f:10:bf:86: +# 96:d9:99:5a:b4:99:57:1c:a4:cc:bb:15:89:53:ba:2c:05:0f: +# e4:c4:9e:19:b1:18:34:d5:4c:9d:ba:ed:f7:1f:af:24:95:04: +# 78:a8:03:bb:ee:81:e5:da:5f:7c:8b:4a:a1:90:74:25:a7:b3: +# 3e:4b:c8:2c:56:bd:c7:c8:ef:38:e2:5c:92:f0:79:f7:9c:84: +# ba:74:2d:61:01:20:7e:7e:d1:f2:4f:07:59:5f:8b:2d:43:52: +# eb:46:0c:94:e1:f5:66:47:79:77:d5:54:5b:1f:ad:24:37:cb: +# 45:5a:4e:a0:44:48:c8:d8:b0:99:c5:15:84:09:f6:d6:49:49: +# c0:65:b8:e6:1a:71:6e:a0:a8:f1:82:e8:45:3e:6c:d6:02:d7: +# 0a:67:83:05:5a:c9:a4:10 + +[p11-kit-object-v1] +label: "GlobalSign Root E46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEnA6xz7fonlJ3dTT6pUanrTIZMrQHqSfK +lLsM0goQx9qJsJcMcBMJAY7Y6kfqvrKAK838KA3brLykhjftcAgAdeqTC3suUpwj +aCMGQ+ySL1OE2/tHFAfoX5RnXcl6gTwg +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Root E46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICCzCCAZGgAwIBAgISEdK7ujNu1LzmJGjFDYQdmOhDMAoGCCqGSM49BAMDMEYx +CzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRwwGgYDVQQD +ExNHbG9iYWxTaWduIFJvb3QgRTQ2MB4XDTE5MDMyMDAwMDAwMFoXDTQ2MDMyMDAw +MDAwMFowRjELMAkGA1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2Ex +HDAaBgNVBAMTE0dsb2JhbFNpZ24gUm9vdCBFNDYwdjAQBgcqhkjOPQIBBgUrgQQA +IgNiAAScDrHPt+ieUnd1NPqlRqetMhkytAepJ8qUuwzSChDH2omwlwxwEwkBjtjq +R+q+soArzfwoDdusvKSGN+1wCAB16pMLey5SnCNoIwZD7JIvU4Tb+0cUB+hflGdd +yXqBPCCjQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud +DgQWBBQxCpCPtsad0kRLgLWi5h+xEk8blTAKBggqhkjOPQQDAwNoADBlAjEA31SQ +7Zvvi5QCkxeCmb6zniz2C5GMn0oUsfZkvLtoURMMA/cVi4RguYv/Uo7njLwcAjA8 ++RHUjE7AwWHCFUyqqx0LMV87HOIAl0Qx5v5zli/altP+CAezNIm8BZ/3Hobui3A= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 11:d2:bb:ba:33:6e:d4:bc:e6:24:68:c5:0d:84:1d:98:e8:43 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Root E46 +# Validity +# Not Before: Mar 20 00:00:00 2019 GMT +# Not After : Mar 20 00:00:00 2046 GMT +# Subject: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Root E46 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:9c:0e:b1:cf:b7:e8:9e:52:77:75:34:fa:a5:46: +# a7:ad:32:19:32:b4:07:a9:27:ca:94:bb:0c:d2:0a: +# 10:c7:da:89:b0:97:0c:70:13:09:01:8e:d8:ea:47: +# ea:be:b2:80:2b:cd:fc:28:0d:db:ac:bc:a4:86:37: +# ed:70:08:00:75:ea:93:0b:7b:2e:52:9c:23:68:23: +# 06:43:ec:92:2f:53:84:db:fb:47:14:07:e8:5f:94: +# 67:5d:c9:7a:81:3c:20 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 31:0A:90:8F:B6:C6:9D:D2:44:4B:80:B5:A2:E6:1F:B1:12:4F:1B:95 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:df:54:90:ed:9b:ef:8b:94:02:93:17:82:99: +# be:b3:9e:2c:f6:0b:91:8c:9f:4a:14:b1:f6:64:bc:bb:68:51: +# 13:0c:03:f7:15:8b:84:60:b9:8b:ff:52:8e:e7:8c:bc:1c:02: +# 30:3c:f9:11:d4:8c:4e:c0:c1:61:c2:15:4c:aa:ab:1d:0b:31: +# 5f:3b:1c:e2:00:97:44:31:e6:fe:73:96:2f:da:96:d3:fe:08: +# 07:b3:34:89:bc:05:9f:f7:1e:86:ee:8b:70 + +[p11-kit-object-v1] +label: "GlobalSign Root R46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArKx0MuizZeW67UMmHaaJ +DUW6KYiypB1j3dPBLAlXiTmhVelnNHcMbuRVHVIl0hNrXuEdqbd9iTJfDZ6fLHpj +YEAfprC2eI+ZVJYIWK7kBrxiBQIWv6+oIwO2lA+8bmzCy9Wmuwzp9sEC+yHeZt0X +q3RC7/B0LyX06mtVW5Dbnd9ehwpA+60Za/v3ymCI3trBj9au1X/UPIPu1xZMg0Uz +ayfQhtAcLWvzq33xhan1KNKt7/OESxyH/BOjOnKiWhEr1idxJ+2BLW1mgZKHtBtY +esw/CvpGT014XPgrSOMEhMtd9rRqs2X8Qp5RJiMgyz0U+YHtZRYATxpkl2YIz4x7 +4yvAnfkU8hvxVmoWvyyFhc14OJrrQmoCNBiDF06UVvi2grXzlt09875/IHc+exkj +ayzUcnNDV33g+NdpTxc2BPnAkGA3Rd7mDNh0ja6com10XUK+BvXZZG4CEKyJsEw7 +B01AfiTFipiCeY6kp4IgjSP6J3HJ38ZBdKBN9pEW3EaMXyljMVlxDNhvwrYyffvm +XVOmfhX8u3V8Xez49hcc7MdrGcvze/ArB6XZbHlUdmydHKZuDul5DKgjaqPfGzAx +n7FUe/5qy2aq3GXQop5Kmgcha4GP28RZ+t4iwASc46pbNpPoPb16oZ0LdrELx539 +z5ioBsL4KqOhg6C3JXKlAuMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Root R46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgISEdK7udcjGJ5AXwqdLdDfJWfRMA0GCSqGSIb3DQEBDAUA +MEYxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRwwGgYD +VQQDExNHbG9iYWxTaWduIFJvb3QgUjQ2MB4XDTE5MDMyMDAwMDAwMFoXDTQ2MDMy +MDAwMDAwMFowRjELMAkGA1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYt +c2ExHDAaBgNVBAMTE0dsb2JhbFNpZ24gUm9vdCBSNDYwggIiMA0GCSqGSIb3DQEB +AQUAA4ICDwAwggIKAoICAQCsrHQy6LNl5brtQyYdpokNRbopiLKkHWPd08EsCVeJ +OaFV6Wc0dwxu5FUdUiXSE2te4R2pt32JMl8Nnp8semNgQB+msLZ4j5lUlghYruQG +vGIFAha/r6gjA7aUD7xubMLL1aa7DOn2wQL7Id5m3RerdELv8HQvJfTqa1VbkNud +316HCkD7rRlr+/fKYIje2sGP1q7Vf9Q8g+7XFkyDRTNrJ9CG0Bwta/OrffGFqfUo +0q3v84RLHIf8E6M6cqJaESvWJ3En7YEtbWaBkoe0G1h6zD8K+kZPTXhc+CtI4wSE +y132tGqzZfxCnlEmIyDLPRT5ge1lFgBPGmSXZgjPjHvjK8Cd+RTyG/FWaha/LIWF +zXg4mutCagI0GIMXTpRW+LaCtfOW3T3zvn8gdz57GSNrLNRyc0NXfeD412lPFzYE ++cCQYDdF3uYM2HSNrpyibXRdQr4G9dlkbgIQrImwTDsHTUB+JMWKmIJ5jqSngiCN +I/onccnfxkF0oE32kRbcRoxfKWMxWXEM2G/CtjJ9++ZdU6Z+Ffy7dXxd7Pj2Fxzs +x2sZy/N78CsHpdlseVR2bJ0cpm4O6XkMqCNqo98bMDGfsVR7/mrLZqrcZdCinkqa +ByFrgY/bxFn63iLABJzjqls2k+g9vXqhnQt2sQvHnf3PmKgGwvgqo6GDoLclcqUC +4wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV +HQ4EFgQUA1yrc4GHqMywptWU4jaWSf8FmSwwDQYJKoZIhvcNAQEMBQADggIBAHx4 +7PYCLLtbfpIrXTncvtgdokIzTfnvpCo7RGkerNlFo048p9gkUbJUHJNOxO97k4Vg +JuoJSOD1u8fpaNK7ajFxzHmuEajwmf3lH7wvqMxX63bEIaZHU1VNaL8FpO7XJqti +2kM3S+LGteWygxk6x9PbTZ4IevPuzz5i+6zoYMzRx6Fcg0XERczzF2sUyQQCPtIk +pnnpHs6i58FZFZ8d4kuaPp92CC1r2LpXFNqD6v6MVenQTqnMdzGxRBF6XLE+0xRF +FRhiJBPSy03OXIPBNvIQtQ6IbbjhVp+J3pZmOUdkLG5NrmJ7v2B0GbhWrJKsFjLt +rWhV/pi60zTe9Mlhww6G9kuEYO4Ne7UyWHmRVSyBQ7N0H3qqJZ4d16GLuc1CLgSk +ZoNNiTW2bKg2SnkheCLQQrzRQDGQob4Ez8pn7fXwgNNgyYMqIgXQBztSvwyeqiv5 +u+YfjyW6hY0XHgL+XVAEV8/+LbzvXMAaq7afJMbfc2hIkCwU9D9SGuTSyxTDYWnP +4vkYxboznxSjBF25cfe1lNj2M8FawTSLfJvdkzrnE6JwYZ+vj+vYxXX4M2bUdGc6 +N3ec592kD3ZDZopD8p/7DEJ4Y9HiD2971KE9dJeFt0g5QdYg/NA6s/rob8SKunE3 +vouXsXgxT7PntgMTzlSdriVZzH81Xwj3QEUxeCp6 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 11:d2:bb:b9:d7:23:18:9e:40:5f:0a:9d:2d:d0:df:25:67:d1 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Root R46 +# Validity +# Not Before: Mar 20 00:00:00 2019 GMT +# Not After : Mar 20 00:00:00 2046 GMT +# Subject: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Root R46 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ac:ac:74:32:e8:b3:65:e5:ba:ed:43:26:1d:a6: +# 89:0d:45:ba:29:88:b2:a4:1d:63:dd:d3:c1:2c:09: +# 57:89:39:a1:55:e9:67:34:77:0c:6e:e4:55:1d:52: +# 25:d2:13:6b:5e:e1:1d:a9:b7:7d:89:32:5f:0d:9e: +# 9f:2c:7a:63:60:40:1f:a6:b0:b6:78:8f:99:54:96: +# 08:58:ae:e4:06:bc:62:05:02:16:bf:af:a8:23:03: +# b6:94:0f:bc:6e:6c:c2:cb:d5:a6:bb:0c:e9:f6:c1: +# 02:fb:21:de:66:dd:17:ab:74:42:ef:f0:74:2f:25: +# f4:ea:6b:55:5b:90:db:9d:df:5e:87:0a:40:fb:ad: +# 19:6b:fb:f7:ca:60:88:de:da:c1:8f:d6:ae:d5:7f: +# d4:3c:83:ee:d7:16:4c:83:45:33:6b:27:d0:86:d0: +# 1c:2d:6b:f3:ab:7d:f1:85:a9:f5:28:d2:ad:ef:f3: +# 84:4b:1c:87:fc:13:a3:3a:72:a2:5a:11:2b:d6:27: +# 71:27:ed:81:2d:6d:66:81:92:87:b4:1b:58:7a:cc: +# 3f:0a:fa:46:4f:4d:78:5c:f8:2b:48:e3:04:84:cb: +# 5d:f6:b4:6a:b3:65:fc:42:9e:51:26:23:20:cb:3d: +# 14:f9:81:ed:65:16:00:4f:1a:64:97:66:08:cf:8c: +# 7b:e3:2b:c0:9d:f9:14:f2:1b:f1:56:6a:16:bf:2c: +# 85:85:cd:78:38:9a:eb:42:6a:02:34:18:83:17:4e: +# 94:56:f8:b6:82:b5:f3:96:dd:3d:f3:be:7f:20:77: +# 3e:7b:19:23:6b:2c:d4:72:73:43:57:7d:e0:f8:d7: +# 69:4f:17:36:04:f9:c0:90:60:37:45:de:e6:0c:d8: +# 74:8d:ae:9c:a2:6d:74:5d:42:be:06:f5:d9:64:6e: +# 02:10:ac:89:b0:4c:3b:07:4d:40:7e:24:c5:8a:98: +# 82:79:8e:a4:a7:82:20:8d:23:fa:27:71:c9:df:c6: +# 41:74:a0:4d:f6:91:16:dc:46:8c:5f:29:63:31:59: +# 71:0c:d8:6f:c2:b6:32:7d:fb:e6:5d:53:a6:7e:15: +# fc:bb:75:7c:5d:ec:f8:f6:17:1c:ec:c7:6b:19:cb: +# f3:7b:f0:2b:07:a5:d9:6c:79:54:76:6c:9d:1c:a6: +# 6e:0e:e9:79:0c:a8:23:6a:a3:df:1b:30:31:9f:b1: +# 54:7b:fe:6a:cb:66:aa:dc:65:d0:a2:9e:4a:9a:07: +# 21:6b:81:8f:db:c4:59:fa:de:22:c0:04:9c:e3:aa: +# 5b:36:93:e8:3d:bd:7a:a1:9d:0b:76:b1:0b:c7:9d: +# fd:cf:98:a8:06:c2:f8:2a:a3:a1:83:a0:b7:25:72: +# a5:02:e3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 03:5C:AB:73:81:87:A8:CC:B0:A6:D5:94:E2:36:96:49:FF:05:99:2C +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 7c:78:ec:f6:02:2c:bb:5b:7e:92:2b:5d:39:dc:be:d8:1d:a2: +# 42:33:4d:f9:ef:a4:2a:3b:44:69:1e:ac:d9:45:a3:4e:3c:a7: +# d8:24:51:b2:54:1c:93:4e:c4:ef:7b:93:85:60:26:ea:09:48: +# e0:f5:bb:c7:e9:68:d2:bb:6a:31:71:cc:79:ae:11:a8:f0:99: +# fd:e5:1f:bc:2f:a8:cc:57:eb:76:c4:21:a6:47:53:55:4d:68: +# bf:05:a4:ee:d7:26:ab:62:da:43:37:4b:e2:c6:b5:e5:b2:83: +# 19:3a:c7:d3:db:4d:9e:08:7a:f3:ee:cf:3e:62:fb:ac:e8:60: +# cc:d1:c7:a1:5c:83:45:c4:45:cc:f3:17:6b:14:c9:04:02:3e: +# d2:24:a6:79:e9:1e:ce:a2:e7:c1:59:15:9f:1d:e2:4b:9a:3e: +# 9f:76:08:2d:6b:d8:ba:57:14:da:83:ea:fe:8c:55:e9:d0:4e: +# a9:cc:77:31:b1:44:11:7a:5c:b1:3e:d3:14:45:15:18:62:24: +# 13:d2:cb:4d:ce:5c:83:c1:36:f2:10:b5:0e:88:6d:b8:e1:56: +# 9f:89:de:96:66:39:47:64:2c:6e:4d:ae:62:7b:bf:60:74:19: +# b8:56:ac:92:ac:16:32:ed:ad:68:55:fe:98:ba:d3:34:de:f4: +# c9:61:c3:0e:86:f6:4b:84:60:ee:0d:7b:b5:32:58:79:91:55: +# 2c:81:43:b3:74:1f:7a:aa:25:9e:1d:d7:a1:8b:b9:cd:42:2e: +# 04:a4:66:83:4d:89:35:b6:6c:a8:36:4a:79:21:78:22:d0:42: +# bc:d1:40:31:90:a1:be:04:cf:ca:67:ed:f5:f0:80:d3:60:c9: +# 83:2a:22:05:d0:07:3b:52:bf:0c:9e:aa:2b:f9:bb:e6:1f:8f: +# 25:ba:85:8d:17:1e:02:fe:5d:50:04:57:cf:fe:2d:bc:ef:5c: +# c0:1a:ab:b6:9f:24:c6:df:73:68:48:90:2c:14:f4:3f:52:1a: +# e4:d2:cb:14:c3:61:69:cf:e2:f9:18:c5:ba:33:9f:14:a3:04: +# 5d:b9:71:f7:b5:94:d8:f6:33:c1:5a:c1:34:8b:7c:9b:dd:93: +# 3a:e7:13:a2:70:61:9f:af:8f:eb:d8:c5:75:f8:33:66:d4:74: +# 67:3a:37:77:9c:e7:dd:a4:0f:76:43:66:8a:43:f2:9f:fb:0c: +# 42:78:63:d1:e2:0f:6f:7b:d4:a1:3d:74:97:85:b7:48:39:41: +# d6:20:fc:d0:3a:b3:fa:e8:6f:c4:8a:ba:71:37:be:8b:97:b1: +# 78:31:4f:b3:e7:b6:03:13:ce:54:9d:ae:25:59:cc:7f:35:5f: +# 08:f7:40:45:31:78:2a:7a + +[p11-kit-object-v1] +label: "GlobalSign Secure Mail Root E45" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE+XmLgUc3iZY/RUlQfxomC5Myfi7AwKcI +msNuj5s+CyLsN1O3b4qwvCc3S22pRjvZH/+loUS7LXO/nkEHXFObUQg6WrtvOMcW +kXjCShNpHYLfWi8AiJaiLhx0+Z1+ZjeK +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Secure Mail Root E45" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICITCCAaegAwIBAgIQdlP+qicdlUZd1vGe5biQCjAKBggqhkjOPQQDAzBSMQsw +CQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEoMCYGA1UEAxMf +R2xvYmFsU2lnbiBTZWN1cmUgTWFpbCBSb290IEU0NTAeFw0yMDAzMTgwMDAwMDBa +Fw00NTAzMTgwMDAwMDBaMFIxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxT +aWduIG52LXNhMSgwJgYDVQQDEx9HbG9iYWxTaWduIFNlY3VyZSBNYWlsIFJvb3Qg +RTQ1MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE+XmLgUc3iZY/RUlQfxomC5Myfi7A +wKcImsNuj5s+CyLsN1O3b4qwvCc3S22pRjvZH/+loUS7LXO/nkEHXFObUQg6Wrtv +OMcWkXjCShNpHYLfWi8AiJaiLhx0+Z1+ZjeKo0IwQDAOBgNVHQ8BAf8EBAMCAYYw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU3xNei1/CQAL9VreUTLYe1aaxFJYw +CgYIKoZIzj0EAwMDaAAwZQIwE7C+13EgPuSrnM42En1fTB8qtWlFM1/TLVqy5IjH +3go2QjJ5naZruuH5RCp7isMSAjEAoGYcToedh8ntmUwbCu4tYMM3xx3NtXKw2cbv +vPL/P/BS3QjnqmR5w+RpV5EvpMt8 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 76:53:fe:aa:27:1d:95:46:5d:d6:f1:9e:e5:b8:90:0a +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Secure Mail Root E45 +# Validity +# Not Before: Mar 18 00:00:00 2020 GMT +# Not After : Mar 18 00:00:00 2045 GMT +# Subject: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Secure Mail Root E45 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:f9:79:8b:81:47:37:89:96:3f:45:49:50:7f:1a: +# 26:0b:93:32:7e:2e:c0:c0:a7:08:9a:c3:6e:8f:9b: +# 3e:0b:22:ec:37:53:b7:6f:8a:b0:bc:27:37:4b:6d: +# a9:46:3b:d9:1f:ff:a5:a1:44:bb:2d:73:bf:9e:41: +# 07:5c:53:9b:51:08:3a:5a:bb:6f:38:c7:16:91:78: +# c2:4a:13:69:1d:82:df:5a:2f:00:88:96:a2:2e:1c: +# 74:f9:9d:7e:66:37:8a +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# DF:13:5E:8B:5F:C2:40:02:FD:56:B7:94:4C:B6:1E:D5:A6:B1:14:96 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:13:b0:be:d7:71:20:3e:e4:ab:9c:ce:36:12:7d: +# 5f:4c:1f:2a:b5:69:45:33:5f:d3:2d:5a:b2:e4:88:c7:de:0a: +# 36:42:32:79:9d:a6:6b:ba:e1:f9:44:2a:7b:8a:c3:12:02:31: +# 00:a0:66:1c:4e:87:9d:87:c9:ed:99:4c:1b:0a:ee:2d:60:c3: +# 37:c7:1d:cd:b5:72:b0:d9:c6:ef:bc:f2:ff:3f:f0:52:dd:08: +# e7:aa:64:79:c3:e4:69:57:91:2f:a4:cb:7c + +[p11-kit-object-v1] +label: "GlobalSign Secure Mail Root R45" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA3HnMbQb5bbvgVgRsf+B1 +zC0FSehL3FTsW3eVcr9/Yp2FqYokUF9T5dt0b6QpWxMqCa2axS/C93Y7oUVGqkPm +JP4rsG8ycBlGWnkmL/w9fV9ky1fMYWGo2ZVu45Wgbn9HEhjW7wPJ+4r6mr2CFalV +d0sRT1nga8Nx8wzYVNWBaD4TuRUuh4o8RCc2YiRu+CwFcjBhvUKRI8SdJafZVJoU +ozGtgHkMp2NsmKOsV0czH2WW4dDSNdr5cfehpiW1QV3fPmDY0fafpfK4zBOqj/my +buGDLZPdPoUa3eixXCYBy0mF/PzS1H+FYoZ0+cvsNSKiDDCPO6t561by+kLz7fkf +RYlAKa3qknTqUv1WtCvaou11wm6rzlKQS/be8EmPmkjUiBltRebMjLndZGBgAkD4 +uc+8WOs9hbnGCtOcB2aPxxg5I0bhPB6jL1Bhkgs9K2zxo0c4V5GrDY/GnU0E0iZS +XOWl/SotFioBaeepfeE2t7Eqxdmxjb25i87Mi6E+C0jNUJU0xNgIWdhrJvS+9dQi +FwBXya6bBDAznwv731aiyW5Udtqxl2InWQ8RiiIbZJY/qPG3JEqNPFN8bYN2PbIm +SHP1RBYBLQkqjhaWUNBzBl27IkiCTApGWj+A/1zy8pqsLAjg1urwEjiBT6YQ7Uar +zBacC89kppkChURnRq39TecCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GlobalSign Secure Mail Root R45" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFcDCCA1igAwIBAgIQdlP+qExQq5+NMrUdA49X3DANBgkqhkiG9w0BAQwFADBS +MQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEoMCYGA1UE +AxMfR2xvYmFsU2lnbiBTZWN1cmUgTWFpbCBSb290IFI0NTAeFw0yMDAzMTgwMDAw +MDBaFw00NTAzMTgwMDAwMDBaMFIxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i +YWxTaWduIG52LXNhMSgwJgYDVQQDEx9HbG9iYWxTaWduIFNlY3VyZSBNYWlsIFJv +b3QgUjQ1MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA3HnMbQb5bbvg +VgRsf+B1zC0FSehL3FTsW3eVcr9/Yp2FqYokUF9T5dt0b6QpWxMqCa2axS/C93Y7 +oUVGqkPmJP4rsG8ycBlGWnkmL/w9fV9ky1fMYWGo2ZVu45Wgbn9HEhjW7wPJ+4r6 +mr2CFalVd0sRT1nga8Nx8wzYVNWBaD4TuRUuh4o8RCc2YiRu+CwFcjBhvUKRI8Sd +JafZVJoUozGtgHkMp2NsmKOsV0czH2WW4dDSNdr5cfehpiW1QV3fPmDY0fafpfK4 +zBOqj/mybuGDLZPdPoUa3eixXCYBy0mF/PzS1H+FYoZ0+cvsNSKiDDCPO6t561by ++kLz7fkfRYlAKa3qknTqUv1WtCvaou11wm6rzlKQS/be8EmPmkjUiBltRebMjLnd +ZGBgAkD4uc+8WOs9hbnGCtOcB2aPxxg5I0bhPB6jL1Bhkgs9K2zxo0c4V5GrDY/G +nU0E0iZSXOWl/SotFioBaeepfeE2t7Eqxdmxjb25i87Mi6E+C0jNUJU0xNgIWdhr +JvS+9dQiFwBXya6bBDAznwv731aiyW5Udtqxl2InWQ8RiiIbZJY/qPG3JEqNPFN8 +bYN2PbImSHP1RBYBLQkqjhaWUNBzBl27IkiCTApGWj+A/1zy8pqsLAjg1urwEjiB +T6YQ7UarzBacC89kppkChURnRq39TecCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgGG +MA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFKCTFShu7o8IsjXGnmJ5dKexDit7 +MA0GCSqGSIb3DQEBDAUAA4ICAQBFCvjRXKxigdAE17b/V1GJCwzL3iRlN/urnu1m +9OoMGWmJuBmxMFa02fb3vsaul8tF9hGMOjBkTMGfWcBGQggGR2QXeOCVBwbWjKKs +qdk/03tWT/zEhyjftisWI8CfH1vj1kReIk8jBIw1FrV5B4ZcL5fi9ghkptzbqIrj +pHt3DdEpkyggtFOjS05f3sH2dSP8Hzx4T3AxeC+iNVRxBKzIxG3D9pGx/s3uRG6B +9kDFPioBv6tMsQM/DRHkD9Ik4yKIm59fRz1RSeAJN34XITF2t2dxSChLJdcQ6J9h +WRbFPjJOHwzOo8wP5McRByIvOAjdW5frQmxZmpruetCd38XbCUMuCqoZPWvoajB6 +V+a/s2o5qY/j8U9laLa9nyiPoRZaCVA6Mi4dL0QRQqYA5jGY/y2hD+akYFbPedey +Ttew+m4MVyPHzh+lsUxtGUmeDn9wj3E/WCifdd1h4Dq3Obbul9Q1UfuLSWDIPGau +l+6NJllXu3jwelAwCbBgqp9O3Mk+HjrcYpMzsDpUdG8sMUXRaxEyamh29j32ahNe +JJjn6h2az3iCB2D3TRDTgZpFjZ6vm9yAx0OylWikww7oCkcVv1Qz3AHn1aYec9h6 +sr8vreNVMJ7fDkG84BH1oQyoIuHjAKNOcHyS4wTRekKKdZBZ45vRTKJkvXN5m2/y +s8H2PA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 76:53:fe:a8:4c:50:ab:9f:8d:32:b5:1d:03:8f:57:dc +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Secure Mail Root R45 +# Validity +# Not Before: Mar 18 00:00:00 2020 GMT +# Not After : Mar 18 00:00:00 2045 GMT +# Subject: C=BE, O=GlobalSign nv-sa, CN=GlobalSign Secure Mail Root R45 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:dc:79:cc:6d:06:f9:6d:bb:e0:56:04:6c:7f:e0: +# 75:cc:2d:05:49:e8:4b:dc:54:ec:5b:77:95:72:bf: +# 7f:62:9d:85:a9:8a:24:50:5f:53:e5:db:74:6f:a4: +# 29:5b:13:2a:09:ad:9a:c5:2f:c2:f7:76:3b:a1:45: +# 46:aa:43:e6:24:fe:2b:b0:6f:32:70:19:46:5a:79: +# 26:2f:fc:3d:7d:5f:64:cb:57:cc:61:61:a8:d9:95: +# 6e:e3:95:a0:6e:7f:47:12:18:d6:ef:03:c9:fb:8a: +# fa:9a:bd:82:15:a9:55:77:4b:11:4f:59:e0:6b:c3: +# 71:f3:0c:d8:54:d5:81:68:3e:13:b9:15:2e:87:8a: +# 3c:44:27:36:62:24:6e:f8:2c:05:72:30:61:bd:42: +# 91:23:c4:9d:25:a7:d9:54:9a:14:a3:31:ad:80:79: +# 0c:a7:63:6c:98:a3:ac:57:47:33:1f:65:96:e1:d0: +# d2:35:da:f9:71:f7:a1:a6:25:b5:41:5d:df:3e:60: +# d8:d1:f6:9f:a5:f2:b8:cc:13:aa:8f:f9:b2:6e:e1: +# 83:2d:93:dd:3e:85:1a:dd:e8:b1:5c:26:01:cb:49: +# 85:fc:fc:d2:d4:7f:85:62:86:74:f9:cb:ec:35:22: +# a2:0c:30:8f:3b:ab:79:eb:56:f2:fa:42:f3:ed:f9: +# 1f:45:89:40:29:ad:ea:92:74:ea:52:fd:56:b4:2b: +# da:a2:ed:75:c2:6e:ab:ce:52:90:4b:f6:de:f0:49: +# 8f:9a:48:d4:88:19:6d:45:e6:cc:8c:b9:dd:64:60: +# 60:02:40:f8:b9:cf:bc:58:eb:3d:85:b9:c6:0a:d3: +# 9c:07:66:8f:c7:18:39:23:46:e1:3c:1e:a3:2f:50: +# 61:92:0b:3d:2b:6c:f1:a3:47:38:57:91:ab:0d:8f: +# c6:9d:4d:04:d2:26:52:5c:e5:a5:fd:2a:2d:16:2a: +# 01:69:e7:a9:7d:e1:36:b7:b1:2a:c5:d9:b1:8d:bd: +# b9:8b:ce:cc:8b:a1:3e:0b:48:cd:50:95:34:c4:d8: +# 08:59:d8:6b:26:f4:be:f5:d4:22:17:00:57:c9:ae: +# 9b:04:30:33:9f:0b:fb:df:56:a2:c9:6e:54:76:da: +# b1:97:62:27:59:0f:11:8a:22:1b:64:96:3f:a8:f1: +# b7:24:4a:8d:3c:53:7c:6d:83:76:3d:b2:26:48:73: +# f5:44:16:01:2d:09:2a:8e:16:96:50:d0:73:06:5d: +# bb:22:48:82:4c:0a:46:5a:3f:80:ff:5c:f2:f2:9a: +# ac:2c:08:e0:d6:ea:f0:12:38:81:4f:a6:10:ed:46: +# ab:cc:16:9c:0b:cf:64:a6:99:02:85:44:67:46:ad: +# fd:4d:e7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# A0:93:15:28:6E:EE:8F:08:B2:35:C6:9E:62:79:74:A7:B1:0E:2B:7B +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 45:0a:f8:d1:5c:ac:62:81:d0:04:d7:b6:ff:57:51:89:0b:0c: +# cb:de:24:65:37:fb:ab:9e:ed:66:f4:ea:0c:19:69:89:b8:19: +# b1:30:56:b4:d9:f6:f7:be:c6:ae:97:cb:45:f6:11:8c:3a:30: +# 64:4c:c1:9f:59:c0:46:42:08:06:47:64:17:78:e0:95:07:06: +# d6:8c:a2:ac:a9:d9:3f:d3:7b:56:4f:fc:c4:87:28:df:b6:2b: +# 16:23:c0:9f:1f:5b:e3:d6:44:5e:22:4f:23:04:8c:35:16:b5: +# 79:07:86:5c:2f:97:e2:f6:08:64:a6:dc:db:a8:8a:e3:a4:7b: +# 77:0d:d1:29:93:28:20:b4:53:a3:4b:4e:5f:de:c1:f6:75:23: +# fc:1f:3c:78:4f:70:31:78:2f:a2:35:54:71:04:ac:c8:c4:6d: +# c3:f6:91:b1:fe:cd:ee:44:6e:81:f6:40:c5:3e:2a:01:bf:ab: +# 4c:b1:03:3f:0d:11:e4:0f:d2:24:e3:22:88:9b:9f:5f:47:3d: +# 51:49:e0:09:37:7e:17:21:31:76:b7:67:71:48:28:4b:25:d7: +# 10:e8:9f:61:59:16:c5:3e:32:4e:1f:0c:ce:a3:cc:0f:e4:c7: +# 11:07:22:2f:38:08:dd:5b:97:eb:42:6c:59:9a:9a:ee:7a:d0: +# 9d:df:c5:db:09:43:2e:0a:aa:19:3d:6b:e8:6a:30:7a:57:e6: +# bf:b3:6a:39:a9:8f:e3:f1:4f:65:68:b6:bd:9f:28:8f:a1:16: +# 5a:09:50:3a:32:2e:1d:2f:44:11:42:a6:00:e6:31:98:ff:2d: +# a1:0f:e6:a4:60:56:cf:79:d7:b2:4e:d7:b0:fa:6e:0c:57:23: +# c7:ce:1f:a5:b1:4c:6d:19:49:9e:0e:7f:70:8f:71:3f:58:28: +# 9f:75:dd:61:e0:3a:b7:39:b6:ee:97:d4:35:51:fb:8b:49:60: +# c8:3c:66:ae:97:ee:8d:26:59:57:bb:78:f0:7a:50:30:09:b0: +# 60:aa:9f:4e:dc:c9:3e:1e:3a:dc:62:93:33:b0:3a:54:74:6f: +# 2c:31:45:d1:6b:11:32:6a:68:76:f6:3d:f6:6a:13:5e:24:98: +# e7:ea:1d:9a:cf:78:82:07:60:f7:4d:10:d3:81:9a:45:8d:9e: +# af:9b:dc:80:c7:43:b2:95:68:a4:c3:0e:e8:0a:47:15:bf:54: +# 33:dc:01:e7:d5:a6:1e:73:d8:7a:b2:bf:2f:ad:e3:55:30:9e: +# df:0e:41:bc:e0:11:f5:a1:0c:a8:22:e1:e3:00:a3:4e:70:7c: +# 92:e3:04:d1:7a:42:8a:75:90:59:e3:9b:d1:4c:a2:64:bd:73: +# 79:9b:6f:f2:b3:c1:f6:3c + +[p11-kit-object-v1] +label: "GLOBALTRUST 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAri5WrRsc7/aVj6B3GyvT +Y4+ETUWiD59bRatZe1E0+eyLinjF3WuvvcTfk0Uev5E4C64OFudBc/jbu9G4UeDL +gztzOG53ig9ZYybNpyrOVPu44sB8R85gfD+yc/LAGbaKkoc1DZAoouQVBGM+uq/u +fF7MpotQsjj3QWPKzv9pj2gOlTblzLmMCcpL3TGQlsjMH/1WljTbjhzqLL6FLmPd +qqmV0/0plRPwyJiT2S0WR5ARg6I6IqIoV6Lr/sCMKKCmfecqQjuCgGOlYx8ZzHyy +ZqjC0203b+J+BlHZRYQfEs4kUmSFC0iAToexIiIwquuuvuAC4EDosEKAA1GqtH6q +RNdDYfOiaxaJSaSjpCuKAsR49GiKweR6NrFvG5Ybd0mN1MkGco/PU+PcF4UgStyY +J9ORJitHHmkHr96i5OTUawuzXnzUJIBHKWk7buis/UDr2O1xcSvy6Fgd60GXIsUf +1DnQJ4+H4xj04KlGDfV0OoIu0G4skaMxXDtG6nsEEFZegB31pWXogvziB4xiRfUg +3kZwhqG8k9MedKZssCz3AwyIDMvUclOGvGBG85hqwvG/Q/lwIHfKN0F5VVJjjVsS +n8VoxIidrPIwq7ejMZdnrY8XD2zHc+0klGvIg5rQmjdJBKuxFshsSUktq6HQjJLy +QUp5ISXbY9e2nKd+Qmn7OmMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GLOBALTRUST 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFgjCCA2qgAwIBAgILWku9WvtPilv6ZeUwDQYJKoZIhvcNAQELBQAwTTELMAkG +A1UEBhMCQVQxIzAhBgNVBAoTGmUtY29tbWVyY2UgbW9uaXRvcmluZyBHbWJIMRkw +FwYDVQQDExBHTE9CQUxUUlVTVCAyMDIwMB4XDTIwMDIxMDAwMDAwMFoXDTQwMDYx +MDAwMDAwMFowTTELMAkGA1UEBhMCQVQxIzAhBgNVBAoTGmUtY29tbWVyY2UgbW9u +aXRvcmluZyBHbWJIMRkwFwYDVQQDExBHTE9CQUxUUlVTVCAyMDIwMIICIjANBgkq +hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAri5WrRsc7/aVj6B3GyvTY4+ETUWiD59b +RatZe1E0+eyLinjF3WuvvcTfk0Uev5E4C64OFudBc/jbu9G4UeDLgztzOG53ig9Z +YybNpyrOVPu44sB8R85gfD+yc/LAGbaKkoc1DZAoouQVBGM+uq/ufF7MpotQsjj3 +QWPKzv9pj2gOlTblzLmMCcpL3TGQlsjMH/1WljTbjhzqLL6FLmPdqqmV0/0plRPw +yJiT2S0WR5ARg6I6IqIoV6Lr/sCMKKCmfecqQjuCgGOlYx8ZzHyyZqjC0203b+J+ +BlHZRYQfEs4kUmSFC0iAToexIiIwquuuvuAC4EDosEKAA1GqtH6qRNdDYfOiaxaJ +SaSjpCuKAsR49GiKweR6NrFvG5Ybd0mN1MkGco/PU+PcF4UgStyYJ9ORJitHHmkH +r96i5OTUawuzXnzUJIBHKWk7buis/UDr2O1xcSvy6Fgd60GXIsUf1DnQJ4+H4xj0 +4KlGDfV0OoIu0G4skaMxXDtG6nsEEFZegB31pWXogvziB4xiRfUg3kZwhqG8k9Me +dKZssCz3AwyIDMvUclOGvGBG85hqwvG/Q/lwIHfKN0F5VVJjjVsSn8VoxIidrPIw +q7ejMZdnrY8XD2zHc+0klGvIg5rQmjdJBKuxFshsSUktq6HQjJLyQUp5ISXbY9e2 +nKd+Qmn7OmMCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwHQYDVR0OBBYEFNwuH9FhN3nkq9XVsxJxaD1qaJwiMB8GA1UdIwQYMBaAFNwu +H9FhN3nkq9XVsxJxaD1qaJwiMA0GCSqGSIb3DQEBCwUAA4ICAQCR8EICaEDuw2jA +VC/f7GLDw56KoDEoqoOOpFaWEhCGVrqXctJUMHytGdUdaG/7FELYjQ7ztdGl4wJC +XtzoRlgHNQIw4Lx0SsFDKv/bGtCwr2zD/cuz9X9tAy5ZVp0tLTWMstZDFyySCstd +6IwPS3BD0IL/qMy/pJTAvoe9iuOTe8aPmxadJ2W8esVCgmxcB9CpwYhgROmYhRZf ++I/KARDOJcP5YBugxZfD0yyIMaK9MOzQ0MAS8cE54+X1+NZK3TTN+2/BT+MAi1bi +kvcoskJ3ciNnxz8RFbLEAwW+uxF7Cr+obuf/WEPPm2eggAe2HcqtbepBEX4tdJP7 +wry+UUTF72glJ4DjyKDUEuzZpTcdN3y0kcra1LGWge9oXHYQSa9+pTeAsRxSvTOB +TI/53WXZFM2KJVj04sWDpQmQ1GwUY7VA3+vA/MRYfg0UFodUJ25W5HCEuGwyEn6C +MUO+1918oa2u1qsgEu8KwxCMSZY13At1XrFP1U80DhEgB3VDRemjEdqso5nCtnkn +4rnvyOL2NSl6dPrFf4IFYqYK6miyeUcGbvJXqBUzxvd4Sj1Ce2t+/vdG6tHrju+I +aFvowdlxfv1k7/9nR4hYJS8+hge9+6jlgqispdNpQ80xiEmEU5LAsTkbOYMBMMTy +qfrQA71yN2BWHzZ8vTmR9W0Nv3vXkg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5a:4b:bd:5a:fb:4f:8a:5b:fa:65:e5 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=AT, O=e-commerce monitoring GmbH, CN=GLOBALTRUST 2020 +# Validity +# Not Before: Feb 10 00:00:00 2020 GMT +# Not After : Jun 10 00:00:00 2040 GMT +# Subject: C=AT, O=e-commerce monitoring GmbH, CN=GLOBALTRUST 2020 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ae:2e:56:ad:1b:1c:ef:f6:95:8f:a0:77:1b:2b: +# d3:63:8f:84:4d:45:a2:0f:9f:5b:45:ab:59:7b:51: +# 34:f9:ec:8b:8a:78:c5:dd:6b:af:bd:c4:df:93:45: +# 1e:bf:91:38:0b:ae:0e:16:e7:41:73:f8:db:bb:d1: +# b8:51:e0:cb:83:3b:73:38:6e:77:8a:0f:59:63:26: +# cd:a7:2a:ce:54:fb:b8:e2:c0:7c:47:ce:60:7c:3f: +# b2:73:f2:c0:19:b6:8a:92:87:35:0d:90:28:a2:e4: +# 15:04:63:3e:ba:af:ee:7c:5e:cc:a6:8b:50:b2:38: +# f7:41:63:ca:ce:ff:69:8f:68:0e:95:36:e5:cc:b9: +# 8c:09:ca:4b:dd:31:90:96:c8:cc:1f:fd:56:96:34: +# db:8e:1c:ea:2c:be:85:2e:63:dd:aa:a9:95:d3:fd: +# 29:95:13:f0:c8:98:93:d9:2d:16:47:90:11:83:a2: +# 3a:22:a2:28:57:a2:eb:fe:c0:8c:28:a0:a6:7d:e7: +# 2a:42:3b:82:80:63:a5:63:1f:19:cc:7c:b2:66:a8: +# c2:d3:6d:37:6f:e2:7e:06:51:d9:45:84:1f:12:ce: +# 24:52:64:85:0b:48:80:4e:87:b1:22:22:30:aa:eb: +# ae:be:e0:02:e0:40:e8:b0:42:80:03:51:aa:b4:7e: +# aa:44:d7:43:61:f3:a2:6b:16:89:49:a4:a3:a4:2b: +# 8a:02:c4:78:f4:68:8a:c1:e4:7a:36:b1:6f:1b:96: +# 1b:77:49:8d:d4:c9:06:72:8f:cf:53:e3:dc:17:85: +# 20:4a:dc:98:27:d3:91:26:2b:47:1e:69:07:af:de: +# a2:e4:e4:d4:6b:0b:b3:5e:7c:d4:24:80:47:29:69: +# 3b:6e:e8:ac:fd:40:eb:d8:ed:71:71:2b:f2:e8:58: +# 1d:eb:41:97:22:c5:1f:d4:39:d0:27:8f:87:e3:18: +# f4:e0:a9:46:0d:f5:74:3a:82:2e:d0:6e:2c:91:a3: +# 31:5c:3b:46:ea:7b:04:10:56:5e:80:1d:f5:a5:65: +# e8:82:fc:e2:07:8c:62:45:f5:20:de:46:70:86:a1: +# bc:93:d3:1e:74:a6:6c:b0:2c:f7:03:0c:88:0c:cb: +# d4:72:53:86:bc:60:46:f3:98:6a:c2:f1:bf:43:f9: +# 70:20:77:ca:37:41:79:55:52:63:8d:5b:12:9f:c5: +# 68:c4:88:9d:ac:f2:30:ab:b7:a3:31:97:67:ad:8f: +# 17:0f:6c:c7:73:ed:24:94:6b:c8:83:9a:d0:9a:37: +# 49:04:ab:b1:16:c8:6c:49:49:2d:ab:a1:d0:8c:92: +# f2:41:4a:79:21:25:db:63:d7:b6:9c:a7:7e:42:69: +# fb:3a:63 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# DC:2E:1F:D1:61:37:79:E4:AB:D5:D5:B3:12:71:68:3D:6A:68:9C:22 +# X509v3 Authority Key Identifier: +# DC:2E:1F:D1:61:37:79:E4:AB:D5:D5:B3:12:71:68:3D:6A:68:9C:22 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 91:f0:42:02:68:40:ee:c3:68:c0:54:2f:df:ec:62:c3:c3:9e: +# 8a:a0:31:28:aa:83:8e:a4:56:96:12:10:86:56:ba:97:72:d2: +# 54:30:7c:ad:19:d5:1d:68:6f:fb:14:42:d8:8d:0e:f3:b5:d1: +# a5:e3:02:42:5e:dc:e8:46:58:07:35:02:30:e0:bc:74:4a:c1: +# 43:2a:ff:db:1a:d0:b0:af:6c:c3:fd:cb:b3:f5:7f:6d:03:2e: +# 59:56:9d:2d:2d:35:8c:b2:d6:43:17:2c:92:0a:cb:5d:e8:8c: +# 0f:4b:70:43:d0:82:ff:a8:cc:bf:a4:94:c0:be:87:bd:8a:e3: +# 93:7b:c6:8f:9b:16:9d:27:65:bc:7a:c5:42:82:6c:5c:07:d0: +# a9:c1:88:60:44:e9:98:85:16:5f:f8:8f:ca:01:10:ce:25:c3: +# f9:60:1b:a0:c5:97:c3:d3:2c:88:31:a2:bd:30:ec:d0:d0:c0: +# 12:f1:c1:39:e3:e5:f5:f8:d6:4a:dd:34:cd:fb:6f:c1:4f:e3: +# 00:8b:56:e2:92:f7:28:b2:42:77:72:23:67:c7:3f:11:15:b2: +# c4:03:05:be:bb:11:7b:0a:bf:a8:6e:e7:ff:58:43:cf:9b:67: +# a0:80:07:b6:1d:ca:ad:6d:ea:41:11:7e:2d:74:93:fb:c2:bc: +# be:51:44:c5:ef:68:25:27:80:e3:c8:a0:d4:12:ec:d9:a5:37: +# 1d:37:7c:b4:91:ca:da:d4:b1:96:81:ef:68:5c:76:10:49:af: +# 7e:a5:37:80:b1:1c:52:bd:33:81:4c:8f:f9:dd:65:d9:14:cd: +# 8a:25:58:f4:e2:c5:83:a5:09:90:d4:6c:14:63:b5:40:df:eb: +# c0:fc:c4:58:7e:0d:14:16:87:54:27:6e:56:e4:70:84:b8:6c: +# 32:12:7e:82:31:43:be:d7:dd:7c:a1:ad:ae:d6:ab:20:12:ef: +# 0a:c3:10:8c:49:96:35:dc:0b:75:5e:b1:4f:d5:4f:34:0e:11: +# 20:07:75:43:45:e9:a3:11:da:ac:a3:99:c2:b6:79:27:e2:b9: +# ef:c8:e2:f6:35:29:7a:74:fa:c5:7f:82:05:62:a6:0a:ea:68: +# b2:79:47:06:6e:f2:57:a8:15:33:c6:f7:78:4a:3d:42:7b:6b: +# 7e:fe:f7:46:ea:d1:eb:8e:ef:88:68:5b:e8:c1:d9:71:7e:fd: +# 64:ef:ff:67:47:88:58:25:2f:3e:86:07:bd:fb:a8:e5:82:a8: +# ac:a5:d3:69:43:cd:31:88:49:84:53:92:c0:b1:39:1b:39:83: +# 01:30:c4:f2:a9:fa:d0:03:bd:72:37:60:56:1f:36:7c:bd:39: +# 91:f5:6d:0d:bf:7b:d7:92 + +[p11-kit-object-v1] +label: "Go Daddy Class 2 CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEA3p3X6lcYSaFb69dfSIbq +vt3/5O9nHPRlaLNXcaBed7vtm0npcIA9VhhjCG/a8szQP38CVCJUENiygdTAdT1L +f8d3wz54qxoDtSBrL2orscWIfsS7HrDB2EUnb6o3WPeHJtfYLfapF7cfcjZOphc/ +ZZiS2ypuXaL+iOAL3n/ljRXh68s61eISohMt2I6vXxI9oAgFCLZcpWU4BEWZHqNg +YHTFQaVyYhtixR9vXxpCvgJRZaiuIxhq/HgDqU1/gMP6q1r8oUCkyhkW/rLI715z +De53vZr2eZi8sQdnohUN3aBYxkR7Cj5iKF+6QQdTWM8Rfjh0xfj/tWmQj4R06pcb +rwIBAw== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Go Daddy Class 2 CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEh +MB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBE +YWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3 +MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkGA1UEBhMCVVMxITAfBgNVBAoTGFRo +ZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28gRGFkZHkgQ2xhc3Mg +MiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQADggEN +ADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCA +PVYYYwhv2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6w +wdhFJ2+qN1j3hybX2C32qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXi +EqITLdiOr18SPaAIBQi2XKVlOARFmR6jYGB0xUGlcmIbYsUfb18aQr4CUWWoriMY +avx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmYvLEHZ6IVDd2gWMZEewo+ +YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0OBBYEFNLE +sNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h +/t2oatTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5 +IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmlj +YXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD +ggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wimPQoZ+YeAEW5p5JYXMP80kWNy +OO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKtI3lpjbi2Tc7P +TMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ +HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mER +dEr/VxqHD3VILs9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5Cuf +ReYNnyicsbkqWletNw+vHX/bvZ8= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=The Go Daddy Group, Inc., OU=Go Daddy Class 2 Certification Authority +# Validity +# Not Before: Jun 29 17:06:20 2004 GMT +# Not After : Jun 29 17:06:20 2034 GMT +# Subject: C=US, O=The Go Daddy Group, Inc., OU=Go Daddy Class 2 Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:de:9d:d7:ea:57:18:49:a1:5b:eb:d7:5f:48:86: +# ea:be:dd:ff:e4:ef:67:1c:f4:65:68:b3:57:71:a0: +# 5e:77:bb:ed:9b:49:e9:70:80:3d:56:18:63:08:6f: +# da:f2:cc:d0:3f:7f:02:54:22:54:10:d8:b2:81:d4: +# c0:75:3d:4b:7f:c7:77:c3:3e:78:ab:1a:03:b5:20: +# 6b:2f:6a:2b:b1:c5:88:7e:c4:bb:1e:b0:c1:d8:45: +# 27:6f:aa:37:58:f7:87:26:d7:d8:2d:f6:a9:17:b7: +# 1f:72:36:4e:a6:17:3f:65:98:92:db:2a:6e:5d:a2: +# fe:88:e0:0b:de:7f:e5:8d:15:e1:eb:cb:3a:d5:e2: +# 12:a2:13:2d:d8:8e:af:5f:12:3d:a0:08:05:08:b6: +# 5c:a5:65:38:04:45:99:1e:a3:60:60:74:c5:41:a5: +# 72:62:1b:62:c5:1f:6f:5f:1a:42:be:02:51:65:a8: +# ae:23:18:6a:fc:78:03:a9:4d:7f:80:c3:fa:ab:5a: +# fc:a1:40:a4:ca:19:16:fe:b2:c8:ef:5e:73:0d:ee: +# 77:bd:9a:f6:79:98:bc:b1:07:67:a2:15:0d:dd:a0: +# 58:c6:44:7b:0a:3e:62:28:5f:ba:41:07:53:58:cf: +# 11:7e:38:74:c5:f8:ff:b5:69:90:8f:84:74:ea:97: +# 1b:af +# Exponent: 3 (0x3) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D2:C4:B0:D2:91:D4:4C:11:71:B3:61:CB:3D:A1:FE:DD:A8:6A:D4:E3 +# X509v3 Authority Key Identifier: +# keyid:D2:C4:B0:D2:91:D4:4C:11:71:B3:61:CB:3D:A1:FE:DD:A8:6A:D4:E3 +# DirName:/C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority +# serial:00 +# X509v3 Basic Constraints: +# CA:TRUE +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 32:4b:f3:b2:ca:3e:91:fc:12:c6:a1:07:8c:8e:77:a0:33:06: +# 14:5c:90:1e:18:f7:08:a6:3d:0a:19:f9:87:80:11:6e:69:e4: +# 96:17:30:ff:34:91:63:72:38:ee:cc:1c:01:a3:1d:94:28:a4: +# 31:f6:7a:c4:54:d7:f6:e5:31:58:03:a2:cc:ce:62:db:94:45: +# 73:b5:bf:45:c9:24:b5:d5:82:02:ad:23:79:69:8d:b8:b6:4d: +# ce:cf:4c:ca:33:23:e8:1c:88:aa:9d:8b:41:6e:16:c9:20:e5: +# 89:9e:cd:3b:da:70:f7:7e:99:26:20:14:54:25:ab:6e:73:85: +# e6:9b:21:9d:0a:6c:82:0e:a8:f8:c2:0c:fa:10:1e:6c:96:ef: +# 87:0d:c4:0f:61:8b:ad:ee:83:2b:95:f8:8e:92:84:72:39:eb: +# 20:ea:83:ed:83:cd:97:6e:08:bc:eb:4e:26:b6:73:2b:e4:d3: +# f6:4c:fe:26:71:e2:61:11:74:4a:ff:57:1a:87:0f:75:48:2e: +# cf:51:69:17:a0:02:12:61:95:d5:d1:40:b2:10:4c:ee:c4:ac: +# 10:43:a6:a5:9e:0a:d5:95:62:9a:0d:cf:88:82:c5:32:0c:e4: +# 2b:9f:45:e6:0d:9f:28:9c:b1:b9:2a:5a:57:ad:37:0f:af:1d: +# 7f:db:bd:9f + +[p11-kit-object-v1] +label: "Go Daddy Root Certificate Authority - G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv3FiCPH6WTT3G8kYo/eA +SVjpIoMTpsUgQwE7hPHmhUmfJ+r2hBtOoLTbcJjHMgGxBT4HTu70+k8vWTAi56sZ +VmvigAf88xZ1gDlRe+X5NbZ0TqmNghPktj+pA4P6or6KFWp/3gvDthkUBcrqw6gE +lDtGfDIN8wBmIsiNaW02jBEYt9OyHGC0OPoCjM7T3UYH3go+6118yHz7sCtTpJJi +aVElBWEaRIGMLKlDliPfrDqBmg4pxRyp6V0etp6eMAo5zvGIgPtLXcwy7IViQyU0 +AlYnAZG0O3AqP26x6JyIAX2f1PnbU21gnb8s51iruF9G/M7EGwM8CetJMVxpRrPg +RwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Go Daddy Root Certificate Authority - G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMx +EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoT +EUdvRGFkZHkuY29tLCBJbmMuMTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRp +ZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIz +NTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQH +EwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8GA1UE +AxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIw +DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKD +E6bFIEMBO4Tx5oVJnyfq9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH +/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD+qK+ihVqf94Lw7YZFAXK6sOoBJQ7Rnwy +DfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutdfMh8+7ArU6SSYmlRJQVh +GkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMlNAJWJwGR +tDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEA +AaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE +FDqahQcQZyi27/a9BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmX +WWcDYfF+OwYxdS2hII5PZYe096acvNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu +9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r5N9ss4UXnT3ZJE95kTXWXwTr +gIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYVN8Gb5DKj7Tjo +2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO +LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI +4uJEvlz36hz1 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Arizona, L=Scottsdale, O=GoDaddy.com, Inc., CN=Go Daddy Root Certificate Authority - G2 +# Validity +# Not Before: Sep 1 00:00:00 2009 GMT +# Not After : Dec 31 23:59:59 2037 GMT +# Subject: C=US, ST=Arizona, L=Scottsdale, O=GoDaddy.com, Inc., CN=Go Daddy Root Certificate Authority - G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:bf:71:62:08:f1:fa:59:34:f7:1b:c9:18:a3:f7: +# 80:49:58:e9:22:83:13:a6:c5:20:43:01:3b:84:f1: +# e6:85:49:9f:27:ea:f6:84:1b:4e:a0:b4:db:70:98: +# c7:32:01:b1:05:3e:07:4e:ee:f4:fa:4f:2f:59:30: +# 22:e7:ab:19:56:6b:e2:80:07:fc:f3:16:75:80:39: +# 51:7b:e5:f9:35:b6:74:4e:a9:8d:82:13:e4:b6:3f: +# a9:03:83:fa:a2:be:8a:15:6a:7f:de:0b:c3:b6:19: +# 14:05:ca:ea:c3:a8:04:94:3b:46:7c:32:0d:f3:00: +# 66:22:c8:8d:69:6d:36:8c:11:18:b7:d3:b2:1c:60: +# b4:38:fa:02:8c:ce:d3:dd:46:07:de:0a:3e:eb:5d: +# 7c:c8:7c:fb:b0:2b:53:a4:92:62:69:51:25:05:61: +# 1a:44:81:8c:2c:a9:43:96:23:df:ac:3a:81:9a:0e: +# 29:c5:1c:a9:e9:5d:1e:b6:9e:9e:30:0a:39:ce:f1: +# 88:80:fb:4b:5d:cc:32:ec:85:62:43:25:34:02:56: +# 27:01:91:b4:3b:70:2a:3f:6e:b1:e8:9c:88:01:7d: +# 9f:d4:f9:db:53:6d:60:9d:bf:2c:e7:58:ab:b8:5f: +# 46:fc:ce:c4:1b:03:3c:09:eb:49:31:5c:69:46:b3: +# e0:47 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 3A:9A:85:07:10:67:28:B6:EF:F6:BD:05:41:6E:20:C1:94:DA:0F:DE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 99:db:5d:79:d5:f9:97:59:67:03:61:f1:7e:3b:06:31:75:2d: +# a1:20:8e:4f:65:87:b4:f7:a6:9c:bc:d8:e9:2f:d0:db:5a:ee: +# cf:74:8c:73:b4:38:42:da:05:7b:f8:02:75:b8:fd:a5:b1:d7: +# ae:f6:d7:de:13:cb:53:10:7e:8a:46:d1:97:fa:b7:2e:2b:11: +# ab:90:b0:27:80:f9:e8:9f:5a:e9:37:9f:ab:e4:df:6c:b3:85: +# 17:9d:3d:d9:24:4f:79:91:35:d6:5f:04:eb:80:83:ab:9a:02: +# 2d:b5:10:f4:d8:90:c7:04:73:40:ed:72:25:a0:a9:9f:ec:9e: +# ab:68:12:99:57:c6:8f:12:3a:09:a4:bd:44:fd:06:15:37:c1: +# 9b:e4:32:a3:ed:38:e8:d8:64:f3:2c:7e:14:fc:02:ea:9f:cd: +# ff:07:68:17:db:22:90:38:2d:7a:8d:d1:54:f1:69:e3:5f:33: +# ca:7a:3d:7b:0a:e3:ca:7f:5f:39:e5:e2:75:ba:c5:76:18:33: +# ce:2c:f0:2f:4c:ad:f7:b1:e7:ce:4f:a8:c4:9b:4a:54:06:c5: +# 7f:7d:d5:08:0f:e2:1c:fe:7e:17:b8:ac:5e:f6:d4:16:b2:43: +# 09:0c:4d:f6:a7:6b:b4:99:84:65:ca:7a:88:e2:e2:44:be:5c: +# f7:ea:1c:f5 + +[p11-kit-object-v1] +label: "GTS Root R1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAthECix7joXebO9y/lD63 +ladAPKH9gvl9MgaCcfb2jH/76Nu8ai6Xl6OMS/kr9rH5zoQdsfnFl97vufKj6bwS +iV6nqlKr+CMny6SxnGPb15l+8Ape62im9MZaRw1NEDPjTrETo8gYbEvs/AmQ351k +KSUjB6G00j0uYODP0gmHu81I8E3CwnqIiru6z1kZ1q+PsAewnjHxgsHA3y6mbWwZ +DrXYfiYaRQM9sHmklCitD38m5agI/pboPGiUU+6DOogrFZYJsuB6jC511pzrp1Zk +j5ZPaK49l8KEj8C8QMALXL32h7M1bKwYUH+E4EzNktMg6TO8UpmvMrUpsyUqtEj5 +cuHKZPfmghCN6J3Cioj6OGaK/GP5Afl4/Xtcd/p2h/rs37EOeZVXtL0m79YB0esW +CruOC7XFxYpVq9Os6pFLKcwZpDIlTirxZUTQAs6qzkm06p98g7BAe+dDq6dso499 +iYH6TKX/1Y7DzkvgtdizjkXPdsDtQCv9Uw+wp9U7DbGKogPeMa3Md+pvez7W35Ei +Eua++tgy/BBjFFFy3l3WFpO9KWgz7zpm7AeKJt8T11dleCfeXkkUAKIAf5qoIbap +sZWwpbkNFhHax2xIPEDgfg1azVY80ZcFuctL7TlLnMQ/0lUTbiSw1nH69MG6zO0b +9f6BQdgAmD06yK56mDcYBZUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GTS Root R1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFVzCCAz+gAwIBAgINAgPlk28xsBNJiGuiFzANBgkqhkiG9w0BAQwFADBHMQsw +CQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEU +MBIGA1UEAxMLR1RTIFJvb3QgUjEwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAw +MDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZp +Y2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjEwggIiMA0GCSqGSIb3DQEBAQUA +A4ICDwAwggIKAoICAQC2EQKLHuOhd5s73L+UPreVp0A8of2C+X0yBoJx9vaMf/vo +27xqLpeXo4xL+Sv2sfnOhB2x+cWX3u+58qPpvBKJXqeqUqv4IyfLpLGcY9vXmX7w +Cl7raKb0xlpHDU0QM+NOsROjyBhsS+z8CZDfnWQpJSMHobTSPS5g4M/SCYe7zUjw +TcLCeoiKu7rPWRnWr4+wB7CeMfGCwcDfLqZtbBkOtdh+JhpFAz2weaSUKK0Pfybl +qAj+lug8aJRT7oM6iCsVlgmy4HqMLnXWnOunVmSPlk9orj2XwoSPwLxAwAtcvfaH +szVsrBhQf4TgTM2S0yDpM7xSma8ytSmzJSq0SPly4cpk9+aCEI3oncKKiPo4Zor8 +Y/kB+Xj9e1x3+naH+uzfsQ55lVe0vSbv1gHR6xYKu44LtcXFilWr06zqkUspzBmk +MiVOKvFlRNACzqrOSbTqn3yDsEB750Orp2yjj32JgfpMpf/VjsPOS+C12LOORc92 +wO1AK/1TD7Cn1TsNsYqiA94xrcx36m97PtbfkSIS5r762DL8EGMUUXLeXdYWk70p +aDPvOmbsB4om3xPXV2V4J95eSRQAogB/mqghtqmxlbCluQ0WEdrHbEg8QOB+DVrN +VjzRlwW5y0vtOUucxD/SVRNuJLDWcfr0wbrM7Rv1/oFB2ACYPTrIrnqYNxgFlQID +AQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E +FgQU5K8rJnEaK0gnhS9SZizv8IkTcT4wDQYJKoZIhvcNAQEMBQADggIBAJ+qQibb +C5u+/x6Wki4+omVKapi6Ist9wTrYggoGxval3sBOh2Z5ofmmWJyq+bXmYOfg6LEe +QkEzCzc9zolwFcq1JKjPa7XSQCGYzyI0zzvFIoTgxQ6KfF2I5DUkzps+GlQebtuy +h6f88/qBVRRiClmpIgUxPoLW7ttXNLwzldMXG+gnoot7TiYaelpkttGsN/H9oPM4 +7HLwEXWdyzRSjeZ2axfG34arJ45JK3VmgRAhpuo+9K4l/3wV3s6MJT/KYnAK9y8J +ZgfIPxz88NtFMN9iiMG1D53Dn0reWVlHxYciNuaCp+0KueIHoI17eko8cdLiA6Ef +MgfdG+RCzgwARWGAtQsgWSl4vflVy2PFPEz0tv/bal8xa5meLMFrUKTX5hgUvYU/ +Z6tGn6D/Qqc6f1zLXbBwHSs09dR2CQzreExZBfMzQsNhFRAbd03OIozUhfJFfbdT +6u9AWpQKXCBfTkBdYiJ23//OYb2MI3jSNwLgjt7RETeJ9r/tSQdirpLsQBqvFAnZ +0E6yove+7u7Y/9waLd64NnHi/Hm3lCXRSHNboTXns5lndcEZOitHTtNCjv0xyBZm +2tIMPNuzjsmhDYAPexZ3FL//2wmUspO8IFgV6dtxQ/PeEMMA3KgqlbbC1j+Qa3bb +bP6MvPJwNQzcmRk13NfIRmPVNnGuV/u3gm3c +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:03:e5:93:6f:31:b0:13:49:88:6b:a2:17 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=Google Trust Services LLC, CN=GTS Root R1 +# Validity +# Not Before: Jun 22 00:00:00 2016 GMT +# Not After : Jun 22 00:00:00 2036 GMT +# Subject: C=US, O=Google Trust Services LLC, CN=GTS Root R1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b6:11:02:8b:1e:e3:a1:77:9b:3b:dc:bf:94:3e: +# b7:95:a7:40:3c:a1:fd:82:f9:7d:32:06:82:71:f6: +# f6:8c:7f:fb:e8:db:bc:6a:2e:97:97:a3:8c:4b:f9: +# 2b:f6:b1:f9:ce:84:1d:b1:f9:c5:97:de:ef:b9:f2: +# a3:e9:bc:12:89:5e:a7:aa:52:ab:f8:23:27:cb:a4: +# b1:9c:63:db:d7:99:7e:f0:0a:5e:eb:68:a6:f4:c6: +# 5a:47:0d:4d:10:33:e3:4e:b1:13:a3:c8:18:6c:4b: +# ec:fc:09:90:df:9d:64:29:25:23:07:a1:b4:d2:3d: +# 2e:60:e0:cf:d2:09:87:bb:cd:48:f0:4d:c2:c2:7a: +# 88:8a:bb:ba:cf:59:19:d6:af:8f:b0:07:b0:9e:31: +# f1:82:c1:c0:df:2e:a6:6d:6c:19:0e:b5:d8:7e:26: +# 1a:45:03:3d:b0:79:a4:94:28:ad:0f:7f:26:e5:a8: +# 08:fe:96:e8:3c:68:94:53:ee:83:3a:88:2b:15:96: +# 09:b2:e0:7a:8c:2e:75:d6:9c:eb:a7:56:64:8f:96: +# 4f:68:ae:3d:97:c2:84:8f:c0:bc:40:c0:0b:5c:bd: +# f6:87:b3:35:6c:ac:18:50:7f:84:e0:4c:cd:92:d3: +# 20:e9:33:bc:52:99:af:32:b5:29:b3:25:2a:b4:48: +# f9:72:e1:ca:64:f7:e6:82:10:8d:e8:9d:c2:8a:88: +# fa:38:66:8a:fc:63:f9:01:f9:78:fd:7b:5c:77:fa: +# 76:87:fa:ec:df:b1:0e:79:95:57:b4:bd:26:ef:d6: +# 01:d1:eb:16:0a:bb:8e:0b:b5:c5:c5:8a:55:ab:d3: +# ac:ea:91:4b:29:cc:19:a4:32:25:4e:2a:f1:65:44: +# d0:02:ce:aa:ce:49:b4:ea:9f:7c:83:b0:40:7b:e7: +# 43:ab:a7:6c:a3:8f:7d:89:81:fa:4c:a5:ff:d5:8e: +# c3:ce:4b:e0:b5:d8:b3:8e:45:cf:76:c0:ed:40:2b: +# fd:53:0f:b0:a7:d5:3b:0d:b1:8a:a2:03:de:31:ad: +# cc:77:ea:6f:7b:3e:d6:df:91:22:12:e6:be:fa:d8: +# 32:fc:10:63:14:51:72:de:5d:d6:16:93:bd:29:68: +# 33:ef:3a:66:ec:07:8a:26:df:13:d7:57:65:78:27: +# de:5e:49:14:00:a2:00:7f:9a:a8:21:b6:a9:b1:95: +# b0:a5:b9:0d:16:11:da:c7:6c:48:3c:40:e0:7e:0d: +# 5a:cd:56:3c:d1:97:05:b9:cb:4b:ed:39:4b:9c:c4: +# 3f:d2:55:13:6e:24:b0:d6:71:fa:f4:c1:ba:cc:ed: +# 1b:f5:fe:81:41:d8:00:98:3d:3a:c8:ae:7a:98:37: +# 18:05:95 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# E4:AF:2B:26:71:1A:2B:48:27:85:2F:52:66:2C:EF:F0:89:13:71:3E +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 9f:aa:42:26:db:0b:9b:be:ff:1e:96:92:2e:3e:a2:65:4a:6a: +# 98:ba:22:cb:7d:c1:3a:d8:82:0a:06:c6:f6:a5:de:c0:4e:87: +# 66:79:a1:f9:a6:58:9c:aa:f9:b5:e6:60:e7:e0:e8:b1:1e:42: +# 41:33:0b:37:3d:ce:89:70:15:ca:b5:24:a8:cf:6b:b5:d2:40: +# 21:98:cf:22:34:cf:3b:c5:22:84:e0:c5:0e:8a:7c:5d:88:e4: +# 35:24:ce:9b:3e:1a:54:1e:6e:db:b2:87:a7:fc:f3:fa:81:55: +# 14:62:0a:59:a9:22:05:31:3e:82:d6:ee:db:57:34:bc:33:95: +# d3:17:1b:e8:27:a2:8b:7b:4e:26:1a:7a:5a:64:b6:d1:ac:37: +# f1:fd:a0:f3:38:ec:72:f0:11:75:9d:cb:34:52:8d:e6:76:6b: +# 17:c6:df:86:ab:27:8e:49:2b:75:66:81:10:21:a6:ea:3e:f4: +# ae:25:ff:7c:15:de:ce:8c:25:3f:ca:62:70:0a:f7:2f:09:66: +# 07:c8:3f:1c:fc:f0:db:45:30:df:62:88:c1:b5:0f:9d:c3:9f: +# 4a:de:59:59:47:c5:87:22:36:e6:82:a7:ed:0a:b9:e2:07:a0: +# 8d:7b:7a:4a:3c:71:d2:e2:03:a1:1f:32:07:dd:1b:e4:42:ce: +# 0c:00:45:61:80:b5:0b:20:59:29:78:bd:f9:55:cb:63:c5:3c: +# 4c:f4:b6:ff:db:6a:5f:31:6b:99:9e:2c:c1:6b:50:a4:d7:e6: +# 18:14:bd:85:3f:67:ab:46:9f:a0:ff:42:a7:3a:7f:5c:cb:5d: +# b0:70:1d:2b:34:f5:d4:76:09:0c:eb:78:4c:59:05:f3:33:42: +# c3:61:15:10:1b:77:4d:ce:22:8c:d4:85:f2:45:7d:b7:53:ea: +# ef:40:5a:94:0a:5c:20:5f:4e:40:5d:62:22:76:df:ff:ce:61: +# bd:8c:23:78:d2:37:02:e0:8e:de:d1:11:37:89:f6:bf:ed:49: +# 07:62:ae:92:ec:40:1a:af:14:09:d9:d0:4e:b2:a2:f7:be:ee: +# ee:d8:ff:dc:1a:2d:de:b8:36:71:e2:fc:79:b7:94:25:d1:48: +# 73:5b:a1:35:e7:b3:99:67:75:c1:19:3a:2b:47:4e:d3:42:8e: +# fd:31:c8:16:66:da:d2:0c:3c:db:b3:8e:c9:a1:0d:80:0f:7b: +# 16:77:14:bf:ff:db:09:94:b2:93:bc:20:58:15:e9:db:71:43: +# f3:de:10:c3:00:dc:a8:2a:95:b6:c2:d6:3f:90:6b:76:db:6c: +# fe:8c:bc:f2:70:35:0c:dc:99:19:35:dc:d7:c8:46:63:d5:36: +# 71:ae:57:fb:b7:82:6d:dc + +[p11-kit-object-v1] +label: "GTS Root R2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzt79pvvs7BQ0PAcGWmxZ +9xk13ffBnVWq0807pJNy7wr6bZ328IWAW6FIUp85xbfuKKzvy3ZoFLnfrQFsmR/E +Ih2f/nJ34Cxbr+QEv09yoBo0mOg5aOyVJXt2oeZpuYUZvYmM/q3tNupzvP+D4st9 +wdLOSrONBZ6LSZPfwVvQbl7wLjAugvz6vLQXCkjliJvFm2vesMq0A/Da9JC4ZWT3 +XEyt6H5mXpnXuMI+yNATna3u5EV7iVX3ih9iUoQSs8JAl+OKH0eRpnRa0vixYygQ +uLMJuFZ3QKImmHnG/t8l7j7loH/UYQ9RSzw/jNrhcHTYwmih+cEM6aHif7tVPHYG +7mpOzJKIME2avU8LSJqEtZij1ftzwVdh3ShWdROuh47nDFEJEHWITLyN+Xs81CJI +Hyrc62u7RLHLM3EyRq+tSvGM6HQ6rOcaInOA0jD3JULHIjs7Eq2WLsbDdgeqILc1 +SVfpkknodhZyMWcrln6Ko8eUViK/akt+ASGyIzLf5JpEbVlbXfUAoBybxniXjZD/ +m8iqtK8RUTle2ftnrdVbEZ0ymhu91bpbpcnLJWlTVSdc4Mo2y4hh+x630MvuFvvT +pkzekqXU4t/1BlTeLp1LtJMwqoHO3RrcUXMNT3Dp5bYWIRl5suaJC3VkytWrvAnB +GKH/1FShhTz9FCQDsofTpLcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GTS Root R2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFVzCCAz+gAwIBAgINAgPlrsWNBCUaqxElqjANBgkqhkiG9w0BAQwFADBHMQsw +CQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEU +MBIGA1UEAxMLR1RTIFJvb3QgUjIwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAw +MDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZp +Y2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjIwggIiMA0GCSqGSIb3DQEBAQUA +A4ICDwAwggIKAoICAQDO3v2m++zsFDQ8BwZabFn3GTXd98GdVarTzTukk3LvCvpt +nfbwhYBboUhSnznFt+4orO/LdmgUud+tAWyZH8QiHZ/+cnfgLFuv5AS/T3KgGjSY +6Dlo7JUle3ah5mm5hRm9iYz+re026nO8/4Piy33B0s5Ks40FnotJk9/BW9BuXvAu +MC6C/Pq8tBcKSOWIm8Wba96wyrQD8Nr0kLhlZPdcTK3ofmZemde4wj7I0BOdre7k +RXuJVfeKH2JShBKzwkCX44ofR5GmdFrS+LFjKBC4swm4VndAoiaYecb+3yXuPuWg +f9RhD1FLPD+M2uFwdNjCaKH5wQzpoeJ/u1U8dgbuak7MkogwTZq9TwtImoS1mKPV ++3PBV2HdKFZ1E66HjucMUQkQdYhMvI35ezzUIkgfKtzra7tEscszcTJGr61K8Yzo +dDqs5xoic4DSMPclQsciOzsSrZYuxsN2B6ogtzVJV+mSSeh2FnIxZyuWfoqjx5RW +Ir9qS34BIbIjMt/kmkRtWVtd9QCgHJvGeJeNkP+byKq0rxFROV7Z+2et1VsRnTKa +G73VululycslaVNVJ1zgyjbLiGH7HrfQy+4W+9OmTN6SpdTi3/UGVN4unUu0kzCq +gc7dGtxRcw1PcOnlthYhGXmy5okLdWTK1au8CcEYof/UVKGFPP0UJAOyh9OktwID +AQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E +FgQUu//KjiOfT5nK2+JopqUVJxce2Q4wDQYJKoZIhvcNAQEMBQADggIBAB/Kzt3H +vqGf2SdMC9wXmBFqiN495nFWcrKeGk6c1SuYJF2ba3uwM4IJvd8lRuqYnrYb/oM8 +0mJhwQTtzuDFycgTE1XnqGOtjHsB/ncw4c5omwX4Eu55MaBBRTUoCnGkJE+M3DyC +B19m3H0Q/gxhswWV7uGugQ+o+MePTagjAiZrHYNSVc61LwDKgEDg4XSsYPWHgJ2u +NmSRXbBoGOqKYcl3qJfEycel/FVL8/B/uWU9J2jQzGv6U53hkRrJXRqWbTKH7QMg +yALOWr7Z6v2yTcQvG99fevX4i8buMTolUVVnjWQye+mew4K6Ki3pHrTgSAai/Gev +HyICc/sgCq+dVEuhzf9gR7A/Xe8bVr2XIZYtCtFenTgCR2y59PYjJbigapordwj6 +xLEokCZYCDzifqrXPW+6MYgKBesntaFJ7qBFVHvmJ2WZICGoo7z7GJa7Um8M7YNR +TOlZ4iBgxcJlkoKM8xAfDoqXvneCbT+PHV28SSe9zE8P4c52hgQjxcCMElv924Sg +JPFI/2R80L5cFtHvma3AH/vLrrw4IgYmZNralw4/KBVEqE8AyvCazM90arQ+POuV +7LXTWtiBmelDGDfrs7vRWGJB82bSj6p4lVQgw1oudCvV0b4YacCs1aTPObpRhANl +6WLAYv7YTVWW4tAR+kg0Eeye7QUd5MjWHYbL +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:03:e5:ae:c5:8d:04:25:1a:ab:11:25:aa +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=Google Trust Services LLC, CN=GTS Root R2 +# Validity +# Not Before: Jun 22 00:00:00 2016 GMT +# Not After : Jun 22 00:00:00 2036 GMT +# Subject: C=US, O=Google Trust Services LLC, CN=GTS Root R2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ce:de:fd:a6:fb:ec:ec:14:34:3c:07:06:5a:6c: +# 59:f7:19:35:dd:f7:c1:9d:55:aa:d3:cd:3b:a4:93: +# 72:ef:0a:fa:6d:9d:f6:f0:85:80:5b:a1:48:52:9f: +# 39:c5:b7:ee:28:ac:ef:cb:76:68:14:b9:df:ad:01: +# 6c:99:1f:c4:22:1d:9f:fe:72:77:e0:2c:5b:af:e4: +# 04:bf:4f:72:a0:1a:34:98:e8:39:68:ec:95:25:7b: +# 76:a1:e6:69:b9:85:19:bd:89:8c:fe:ad:ed:36:ea: +# 73:bc:ff:83:e2:cb:7d:c1:d2:ce:4a:b3:8d:05:9e: +# 8b:49:93:df:c1:5b:d0:6e:5e:f0:2e:30:2e:82:fc: +# fa:bc:b4:17:0a:48:e5:88:9b:c5:9b:6b:de:b0:ca: +# b4:03:f0:da:f4:90:b8:65:64:f7:5c:4c:ad:e8:7e: +# 66:5e:99:d7:b8:c2:3e:c8:d0:13:9d:ad:ee:e4:45: +# 7b:89:55:f7:8a:1f:62:52:84:12:b3:c2:40:97:e3: +# 8a:1f:47:91:a6:74:5a:d2:f8:b1:63:28:10:b8:b3: +# 09:b8:56:77:40:a2:26:98:79:c6:fe:df:25:ee:3e: +# e5:a0:7f:d4:61:0f:51:4b:3c:3f:8c:da:e1:70:74: +# d8:c2:68:a1:f9:c1:0c:e9:a1:e2:7f:bb:55:3c:76: +# 06:ee:6a:4e:cc:92:88:30:4d:9a:bd:4f:0b:48:9a: +# 84:b5:98:a3:d5:fb:73:c1:57:61:dd:28:56:75:13: +# ae:87:8e:e7:0c:51:09:10:75:88:4c:bc:8d:f9:7b: +# 3c:d4:22:48:1f:2a:dc:eb:6b:bb:44:b1:cb:33:71: +# 32:46:af:ad:4a:f1:8c:e8:74:3a:ac:e7:1a:22:73: +# 80:d2:30:f7:25:42:c7:22:3b:3b:12:ad:96:2e:c6: +# c3:76:07:aa:20:b7:35:49:57:e9:92:49:e8:76:16: +# 72:31:67:2b:96:7e:8a:a3:c7:94:56:22:bf:6a:4b: +# 7e:01:21:b2:23:32:df:e4:9a:44:6d:59:5b:5d:f5: +# 00:a0:1c:9b:c6:78:97:8d:90:ff:9b:c8:aa:b4:af: +# 11:51:39:5e:d9:fb:67:ad:d5:5b:11:9d:32:9a:1b: +# bd:d5:ba:5b:a5:c9:cb:25:69:53:55:27:5c:e0:ca: +# 36:cb:88:61:fb:1e:b7:d0:cb:ee:16:fb:d3:a6:4c: +# de:92:a5:d4:e2:df:f5:06:54:de:2e:9d:4b:b4:93: +# 30:aa:81:ce:dd:1a:dc:51:73:0d:4f:70:e9:e5:b6: +# 16:21:19:79:b2:e6:89:0b:75:64:ca:d5:ab:bc:09: +# c1:18:a1:ff:d4:54:a1:85:3c:fd:14:24:03:b2:87: +# d3:a4:b7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# BB:FF:CA:8E:23:9F:4F:99:CA:DB:E2:68:A6:A5:15:27:17:1E:D9:0E +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 1f:ca:ce:dd:c7:be:a1:9f:d9:27:4c:0b:dc:17:98:11:6a:88: +# de:3d:e6:71:56:72:b2:9e:1a:4e:9c:d5:2b:98:24:5d:9b:6b: +# 7b:b0:33:82:09:bd:df:25:46:ea:98:9e:b6:1b:fe:83:3c:d2: +# 62:61:c1:04:ed:ce:e0:c5:c9:c8:13:13:55:e7:a8:63:ad:8c: +# 7b:01:fe:77:30:e1:ce:68:9b:05:f8:12:ee:79:31:a0:41:45: +# 35:28:0a:71:a4:24:4f:8c:dc:3c:82:07:5f:66:dc:7d:10:fe: +# 0c:61:b3:05:95:ee:e1:ae:81:0f:a8:f8:c7:8f:4d:a8:23:02: +# 26:6b:1d:83:52:55:ce:b5:2f:00:ca:80:40:e0:e1:74:ac:60: +# f5:87:80:9d:ae:36:64:91:5d:b0:68:18:ea:8a:61:c9:77:a8: +# 97:c4:c9:c7:a5:fc:55:4b:f3:f0:7f:b9:65:3d:27:68:d0:cc: +# 6b:fa:53:9d:e1:91:1a:c9:5d:1a:96:6d:32:87:ed:03:20:c8: +# 02:ce:5a:be:d9:ea:fd:b2:4d:c4:2f:1b:df:5f:7a:f5:f8:8b: +# c6:ee:31:3a:25:51:55:67:8d:64:32:7b:e9:9e:c3:82:ba:2a: +# 2d:e9:1e:b4:e0:48:06:a2:fc:67:af:1f:22:02:73:fb:20:0a: +# af:9d:54:4b:a1:cd:ff:60:47:b0:3f:5d:ef:1b:56:bd:97:21: +# 96:2d:0a:d1:5e:9d:38:02:47:6c:b9:f4:f6:23:25:b8:a0:6a: +# 9a:2b:77:08:fa:c4:b1:28:90:26:58:08:3c:e2:7e:aa:d7:3d: +# 6f:ba:31:88:0a:05:eb:27:b5:a1:49:ee:a0:45:54:7b:e6:27: +# 65:99:20:21:a8:a3:bc:fb:18:96:bb:52:6f:0c:ed:83:51:4c: +# e9:59:e2:20:60:c5:c2:65:92:82:8c:f3:10:1f:0e:8a:97:be: +# 77:82:6d:3f:8f:1d:5d:bc:49:27:bd:cc:4f:0f:e1:ce:76:86: +# 04:23:c5:c0:8c:12:5b:fd:db:84:a0:24:f1:48:ff:64:7c:d0: +# be:5c:16:d1:ef:99:ad:c0:1f:fb:cb:ae:bc:38:22:06:26:64: +# da:da:97:0e:3f:28:15:44:a8:4f:00:ca:f0:9a:cc:cf:74:6a: +# b4:3e:3c:eb:95:ec:b5:d3:5a:d8:81:99:e9:43:18:37:eb:b3: +# bb:d1:58:62:41:f3:66:d2:8f:aa:78:95:54:20:c3:5a:2e:74: +# 2b:d5:d1:be:18:69:c0:ac:d5:a4:cf:39:ba:51:84:03:65:e9: +# 62:c0:62:fe:d8:4d:55:96:e2:d0:11:fa:48:34:11:ec:9e:ed: +# 05:1d:e4:c8:d6:1d:86:cb + +[p11-kit-object-v1] +label: "GTS Root R3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEH08zhzMpiqGE3svHIVhBiepWnStLhcYd +TCe8fyZRcm/in9ajysxFFEaLre9+hozssX4v/6lxnRiERQRBVW4r6iZ/u5AB40sZ +uuRUlkUJsdVskUSthBOOmowNgAwy9uAn +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GTS Root R3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICCTCCAY6gAwIBAgINAgPluILrIPglJ209ZjAKBggqhkjOPQQDAzBHMQswCQYD +VQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIG +A1UEAxMLR1RTIFJvb3QgUjMwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAw +WjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2Vz +IExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMwdjAQBgcqhkjOPQIBBgUrgQQAIgNi +AAQfTzOHMymKoYTey8chWEGJ6ladK0uFxh1MJ7x/JlFyb+Kf1qPKzEUURout736G +jOyxfi//qXGdGIRFBEFVbivqJn+7kAHjSxm65FSWRQmx1WyRRK2EE46ajA2ADDL2 +4CejQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW +BBTB8Sa6oC2uhYHP0/EqEr24Cmf9vDAKBggqhkjOPQQDAwNpADBmAjEA9uEglRR7 +VKOQFhG/hMjqb2sXnh5GmCCbn9MN2azTL818+FsuVbu/3ZL3pAzcMeGiAjEA/Jdm +ZuVDFhOD3cffL74UOO0BzrEXGhF16b0DjyZ+hOXJYKaV11RZt+cRLInUue4X +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:03:e5:b8:82:eb:20:f8:25:27:6d:3d:66 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Google Trust Services LLC, CN=GTS Root R3 +# Validity +# Not Before: Jun 22 00:00:00 2016 GMT +# Not After : Jun 22 00:00:00 2036 GMT +# Subject: C=US, O=Google Trust Services LLC, CN=GTS Root R3 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:1f:4f:33:87:33:29:8a:a1:84:de:cb:c7:21:58: +# 41:89:ea:56:9d:2b:4b:85:c6:1d:4c:27:bc:7f:26: +# 51:72:6f:e2:9f:d6:a3:ca:cc:45:14:46:8b:ad:ef: +# 7e:86:8c:ec:b1:7e:2f:ff:a9:71:9d:18:84:45:04: +# 41:55:6e:2b:ea:26:7f:bb:90:01:e3:4b:19:ba:e4: +# 54:96:45:09:b1:d5:6c:91:44:ad:84:13:8e:9a:8c: +# 0d:80:0c:32:f6:e0:27 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# C1:F1:26:BA:A0:2D:AE:85:81:CF:D3:F1:2A:12:BD:B8:0A:67:FD:BC +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:f6:e1:20:95:14:7b:54:a3:90:16:11:bf:84: +# c8:ea:6f:6b:17:9e:1e:46:98:20:9b:9f:d3:0d:d9:ac:d3:2f: +# cd:7c:f8:5b:2e:55:bb:bf:dd:92:f7:a4:0c:dc:31:e1:a2:02: +# 31:00:fc:97:66:66:e5:43:16:13:83:dd:c7:df:2f:be:14:38: +# ed:01:ce:b1:17:1a:11:75:e9:bd:03:8f:26:7e:84:e5:c9:60: +# a6:95:d7:54:59:b7:e7:11:2c:89:d4:b9:ee:17 + +[p11-kit-object-v1] +label: "GTS Root R4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE83Rzp2iLYK5DuDXFgTB7S0md+8Fhzube +Rr1r1WEYNa5A3XP3iZEwWus87oV8okB2O6nGuEfYKueSkWpz6bFyOZ8pn6KY019e +WIZlD6GEZQbR3IvJx3PIjGov5cSr0R2K +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "GTS Root R4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYD +VQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIG +A1UEAxMLR1RTIFJvb3QgUjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAw +WjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2Vz +IExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjOPQIBBgUrgQQAIgNi +AATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzuhXyi +QHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvR +HYqjQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW +BBSATNbrdP9JNqPV2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D +9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/Cr8deVl5c1RxYIigL9zC2L7F8AjEA8GE8 +p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh4rsUecrNIdSUtUlD +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 02:03:e5:c0:68:ef:63:1a:9c:72:90:50:52 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Google Trust Services LLC, CN=GTS Root R4 +# Validity +# Not Before: Jun 22 00:00:00 2016 GMT +# Not After : Jun 22 00:00:00 2036 GMT +# Subject: C=US, O=Google Trust Services LLC, CN=GTS Root R4 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:f3:74:73:a7:68:8b:60:ae:43:b8:35:c5:81:30: +# 7b:4b:49:9d:fb:c1:61:ce:e6:de:46:bd:6b:d5:61: +# 18:35:ae:40:dd:73:f7:89:91:30:5a:eb:3c:ee:85: +# 7c:a2:40:76:3b:a9:c6:b8:47:d8:2a:e7:92:91:6a: +# 73:e9:b1:72:39:9f:29:9f:a2:98:d3:5f:5e:58:86: +# 65:0f:a1:84:65:06:d1:dc:8b:c9:c7:73:c8:8c:6a: +# 2f:e5:c4:ab:d1:1d:8a +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 80:4C:D6:EB:74:FF:49:36:A3:D5:D8:FC:B5:3E:C5:6A:F0:94:1D:8C +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:66:02:31:00:e8:40:ff:83:de:03:f4:9f:ae:1d:7a:a7:2e: +# b9:af:4f:f6:83:1d:0e:2d:85:01:1d:d1:d9:6a:ec:0f:c2:af: +# c7:5e:56:5e:5c:d5:1c:58:22:28:0b:f7:30:b6:2f:b1:7c:02: +# 31:00:f0:61:3c:a7:f4:a0:82:e3:21:d5:84:1d:73:86:9c:2d: +# af:ca:34:9b:f1:9f:b9:23:36:e2:bc:60:03:9d:80:b3:9a:56: +# c8:e1:e2:bb:14:79:ca:cd:21:d4:94:b5:49:43 + +[p11-kit-object-v1] +label: "HARICA Client ECC Root CA 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEBxitlZaU0FwPgvcqQPoCyck9NqajBGrB +bZUBiGASVGxcoituEzqIlQwcJoY2SokZtxjeO+ioUB/K31u/SYAV2+Mw4R1axyqK +AQf+bSw07ygol7zB+VeGlYs1z55a0WiV +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "HARICA Client ECC Root CA 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICWjCCAeGgAwIBAgIQMWjZ2OFiVx7SGUSI5hB98DAKBggqhkjOPQQDAzBvMQsw +CQYDVQQGEwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2Vh +cmNoIEluc3RpdHV0aW9ucyBDQTEnMCUGA1UEAwweSEFSSUNBIENsaWVudCBFQ0Mg +Um9vdCBDQSAyMDIxMB4XDTIxMDIxOTExMDMzNFoXDTQ1MDIxMzExMDMzM1owbzEL +MAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl +YXJjaCBJbnN0aXR1dGlvbnMgQ0ExJzAlBgNVBAMMHkhBUklDQSBDbGllbnQgRUND +IFJvb3QgQ0EgMjAyMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABAcYrZWWlNBcD4L3 +KkD6AsnJPTamowRqwW2VAYhgElRsXKIrbhM6iJUMHCaGNkqJGbcY3jvoqFAfyt9b +v0mAFdvjMOEdWscqigEH/m0sNO8oKJe8wflXhpWLNc+eWtFolaNCMEAwDwYDVR0T +AQH/BAUwAwEB/zAdBgNVHQ4EFgQUUgjSvjKBJf31GpfsTl8au1PNkK0wDgYDVR0P +AQH/BAQDAgGGMAoGCCqGSM49BAMDA2cAMGQCMEwxRUZPqOa+w3eyGhhLLYh7WOar +lGtEA7AX/9+Cc0RRLP2THQZ7FNKJ7EAM7yEBLgIwL8kuWmwsHdmV4J6wuVxSfPb4 +OMou8dQd8qJJopX4wVheT/5zCu8xsKsjWBOMi947 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 31:68:d9:d8:e1:62:57:1e:d2:19:44:88:e6:10:7d:f0 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client ECC Root CA 2021 +# Validity +# Not Before: Feb 19 11:03:34 2021 GMT +# Not After : Feb 13 11:03:33 2045 GMT +# Subject: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client ECC Root CA 2021 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:07:18:ad:95:96:94:d0:5c:0f:82:f7:2a:40:fa: +# 02:c9:c9:3d:36:a6:a3:04:6a:c1:6d:95:01:88:60: +# 12:54:6c:5c:a2:2b:6e:13:3a:88:95:0c:1c:26:86: +# 36:4a:89:19:b7:18:de:3b:e8:a8:50:1f:ca:df:5b: +# bf:49:80:15:db:e3:30:e1:1d:5a:c7:2a:8a:01:07: +# fe:6d:2c:34:ef:28:28:97:bc:c1:f9:57:86:95:8b: +# 35:cf:9e:5a:d1:68:95 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 52:08:D2:BE:32:81:25:FD:F5:1A:97:EC:4E:5F:1A:BB:53:CD:90:AD +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:4c:31:45:46:4f:a8:e6:be:c3:77:b2:1a:18:4b: +# 2d:88:7b:58:e6:ab:94:6b:44:03:b0:17:ff:df:82:73:44:51: +# 2c:fd:93:1d:06:7b:14:d2:89:ec:40:0c:ef:21:01:2e:02:30: +# 2f:c9:2e:5a:6c:2c:1d:d9:95:e0:9e:b0:b9:5c:52:7c:f6:f8: +# 38:ca:2e:f1:d4:1d:f2:a2:49:a2:95:f8:c1:58:5e:4f:fe:73: +# 0a:ef:31:b0:ab:23:58:13:8c:8b:de:3b + +[p11-kit-object-v1] +label: "HARICA Client RSA Root CA 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAgdtXQpAsdDX0+Lh0GU2r +CVp3RYFzYrA1n/jQtzMAhxO2lqsOVBIwB7ybt0jX0RmDro7YqfGpAISwjF6e6AyP +VGm/9tQITyZw/hhBYxqzMotA+AerVzHwxhZ2Z5q03S/y0WvF0JKEkXFuDy5j6R9T +pN1SE8wJgymBDMVTdUSxDmdTGNDDH4hLn5QktCm8u+hO/W/SFR1J3I1w8hEaIFFV +EbqIb8T3UHnWqjHihD1eMsh3KlBx5Qsv6bbq76sKMzkO/Y+lZ0OCjphpCQkbQM04 +Z0fqyeyXcRLeJPVyPNH3Q0wm95CyielFS1U9MQV6QeKVukPAF8W2hT0ZjWRw81us +zZ/TKXWHS5Vnaqb40d28kIaJQympN1v1XbAmWlNCdpArz55WbCtUz1yaZd9bi0hg +OHz7xQvPdgRjAjMqffWDZ+f6xkP9Kw/UJi93pDLBJOpknb+zOHExRPJHuKJmQaH7 +m3u8x0Zqdb9aoozoakTBuJa1wDIILXt0NXOyysb+rxFyGPbnyMLPpSrqe9ZZ6Hyg +smpACWkOpZbb0QC58YhuNvCIsp3xUvLDfL8wiTwKafkipGXhm+B0xrGFl5YsrpSP +UKY5Eh++R/KBeNN1Np59WiCX4lKumZ/GfJtm8/7Yz+69lwYdLYXcPjZTlnsguujI +4a2WYj4RfLMAhJ6nTHGrSjcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "HARICA Client RSA Root CA 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFqjCCA5KgAwIBAgIQVVL4HtsbJCyeu5YYzQIoPjANBgkqhkiG9w0BAQsFADBv +MQswCQYDVQQGEwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJl +c2VhcmNoIEluc3RpdHV0aW9ucyBDQTEnMCUGA1UEAwweSEFSSUNBIENsaWVudCBS +U0EgUm9vdCBDQSAyMDIxMB4XDTIxMDIxOTEwNTg0NloXDTQ1MDIxMzEwNTg0NVow +bzELMAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWljIGFuZCBS +ZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ0ExJzAlBgNVBAMMHkhBUklDQSBDbGllbnQg +UlNBIFJvb3QgQ0EgMjAyMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB +AIHbV0KQLHQ19Pi4dBlNqwlad0WBc2KwNZ/40LczAIcTtparDlQSMAe8m7dI19EZ +g66O2KnxqQCEsIxenugMj1Rpv/bUCE8mcP4YQWMaszKLQPgHq1cx8MYWdmeatN0v +8tFrxdCShJFxbg8uY+kfU6TdUhPMCYMpgQzFU3VEsQ5nUxjQwx+IS5+UJLQpvLvo +Tv1v0hUdSdyNcPIRGiBRVRG6iG/E91B51qox4oQ9XjLIdypQceULL+m26u+rCjM5 +Dv2PpWdDgo6YaQkJG0DNOGdH6snsl3ES3iT1cjzR90NMJveQsonpRUtVPTEFekHi +lbpDwBfFtoU9GY1kcPNbrM2f0yl1h0uVZ2qm+NHdvJCGiUMpqTdb9V2wJlpTQnaQ +K8+eVmwrVM9cmmXfW4tIYDh8+8ULz3YEYwIzKn31g2fn+sZD/SsP1CYvd6QywSTq +ZJ2/szhxMUTyR7iiZkGh+5t7vMdGanW/WqKM6GpEwbiWtcAyCC17dDVzssrG/q8R +chj258jCz6Uq6nvWWeh8oLJqQAlpDqWW29EAufGIbjbwiLKd8VLyw3y/MIk8Cmn5 +IqRl4ZvgdMaxhZeWLK6Uj1CmORIfvkfygXjTdTaefVogl+JSrpmfxnybZvP+2M/u +vZcGHS2F3D42U5Z7ILroyOGtlmI+EXyzAISep0xxq0o3AgMBAAGjQjBAMA8GA1Ud +EwEB/wQFMAMBAf8wHQYDVR0OBBYEFKDWBz1eJPd7oEQuJFINGaorBJGnMA4GA1Ud +DwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEADUf5CWYxUux57sKo8mg+7ZZF +yzqmmGM/6itNTgPQHILhy9Pl1qtbZyi8nf4MmQqAVafOGyNhDbBX8P7gyr7mkNuD +LL6DjvR5tv7QDUKnWB9p6oH1BaX+RmjrbHjJ4Orn5t4xxdLVLIJjKJ1dqBp+iObn +K/Es1dAFntwtvTdm1ASip62/OsKoO63/jZ0z4LmahKGHH3b0gnTXDvkwSD5biD6q +XGvWLwzojnPCGJGDObZmWtAfYCddTeP2Og1mUJx4e6vzExCuDy+r6GSzGCCdRjVk +JXPqmxBcWDWJsUZIp/Ss1B2eW8yppRoTTyRQqtkbbbFA+53dWHTEwm8UcuzbNZ+4 +VHVFw6bIGig1Oq5l8qmYzq9byTiMMTt/zNyW/eJb1tBZ9Ha6C8tPgxDHQNAdYOkq +5UhYdwxFab4ZcQQk4uMkH0rIwT6Z9ZaYOEgloRWwG9fihBhb9nE1mmh7QMwYXAwk +ndSV9ZmqRuqurL/0FBkk6Izs4/W8BmiKKgwFXwqXdafcfsD913oY3zDROEsfsJhw +v8x8c/BuxDGlpJcdrL/ObCFKvicjZ/MGVoEKkY624QMFMyzaNAhNTlAjrR+lxdR6 +/uoJ7KcoYItGfLXqm91P+edrFcaIz0Pb5SfcBFZub0YV8VYt6FwMc8MjgTggy8kM +ac8sqzuEYDMZUv1pFDM= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 55:52:f8:1e:db:1b:24:2c:9e:bb:96:18:cd:02:28:3e +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client RSA Root CA 2021 +# Validity +# Not Before: Feb 19 10:58:46 2021 GMT +# Not After : Feb 13 10:58:45 2045 GMT +# Subject: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client RSA Root CA 2021 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:81:db:57:42:90:2c:74:35:f4:f8:b8:74:19:4d: +# ab:09:5a:77:45:81:73:62:b0:35:9f:f8:d0:b7:33: +# 00:87:13:b6:96:ab:0e:54:12:30:07:bc:9b:b7:48: +# d7:d1:19:83:ae:8e:d8:a9:f1:a9:00:84:b0:8c:5e: +# 9e:e8:0c:8f:54:69:bf:f6:d4:08:4f:26:70:fe:18: +# 41:63:1a:b3:32:8b:40:f8:07:ab:57:31:f0:c6:16: +# 76:67:9a:b4:dd:2f:f2:d1:6b:c5:d0:92:84:91:71: +# 6e:0f:2e:63:e9:1f:53:a4:dd:52:13:cc:09:83:29: +# 81:0c:c5:53:75:44:b1:0e:67:53:18:d0:c3:1f:88: +# 4b:9f:94:24:b4:29:bc:bb:e8:4e:fd:6f:d2:15:1d: +# 49:dc:8d:70:f2:11:1a:20:51:55:11:ba:88:6f:c4: +# f7:50:79:d6:aa:31:e2:84:3d:5e:32:c8:77:2a:50: +# 71:e5:0b:2f:e9:b6:ea:ef:ab:0a:33:39:0e:fd:8f: +# a5:67:43:82:8e:98:69:09:09:1b:40:cd:38:67:47: +# ea:c9:ec:97:71:12:de:24:f5:72:3c:d1:f7:43:4c: +# 26:f7:90:b2:89:e9:45:4b:55:3d:31:05:7a:41:e2: +# 95:ba:43:c0:17:c5:b6:85:3d:19:8d:64:70:f3:5b: +# ac:cd:9f:d3:29:75:87:4b:95:67:6a:a6:f8:d1:dd: +# bc:90:86:89:43:29:a9:37:5b:f5:5d:b0:26:5a:53: +# 42:76:90:2b:cf:9e:56:6c:2b:54:cf:5c:9a:65:df: +# 5b:8b:48:60:38:7c:fb:c5:0b:cf:76:04:63:02:33: +# 2a:7d:f5:83:67:e7:fa:c6:43:fd:2b:0f:d4:26:2f: +# 77:a4:32:c1:24:ea:64:9d:bf:b3:38:71:31:44:f2: +# 47:b8:a2:66:41:a1:fb:9b:7b:bc:c7:46:6a:75:bf: +# 5a:a2:8c:e8:6a:44:c1:b8:96:b5:c0:32:08:2d:7b: +# 74:35:73:b2:ca:c6:fe:af:11:72:18:f6:e7:c8:c2: +# cf:a5:2a:ea:7b:d6:59:e8:7c:a0:b2:6a:40:09:69: +# 0e:a5:96:db:d1:00:b9:f1:88:6e:36:f0:88:b2:9d: +# f1:52:f2:c3:7c:bf:30:89:3c:0a:69:f9:22:a4:65: +# e1:9b:e0:74:c6:b1:85:97:96:2c:ae:94:8f:50:a6: +# 39:12:1f:be:47:f2:81:78:d3:75:36:9e:7d:5a:20: +# 97:e2:52:ae:99:9f:c6:7c:9b:66:f3:fe:d8:cf:ee: +# bd:97:06:1d:2d:85:dc:3e:36:53:96:7b:20:ba:e8: +# c8:e1:ad:96:62:3e:11:7c:b3:00:84:9e:a7:4c:71: +# ab:4a:37 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# A0:D6:07:3D:5E:24:F7:7B:A0:44:2E:24:52:0D:19:AA:2B:04:91:A7 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 0d:47:f9:09:66:31:52:ec:79:ee:c2:a8:f2:68:3e:ed:96:45: +# cb:3a:a6:98:63:3f:ea:2b:4d:4e:03:d0:1c:82:e1:cb:d3:e5: +# d6:ab:5b:67:28:bc:9d:fe:0c:99:0a:80:55:a7:ce:1b:23:61: +# 0d:b0:57:f0:fe:e0:ca:be:e6:90:db:83:2c:be:83:8e:f4:79: +# b6:fe:d0:0d:42:a7:58:1f:69:ea:81:f5:05:a5:fe:46:68:eb: +# 6c:78:c9:e0:ea:e7:e6:de:31:c5:d2:d5:2c:82:63:28:9d:5d: +# a8:1a:7e:88:e6:e7:2b:f1:2c:d5:d0:05:9e:dc:2d:bd:37:66: +# d4:04:a2:a7:ad:bf:3a:c2:a8:3b:ad:ff:8d:9d:33:e0:b9:9a: +# 84:a1:87:1f:76:f4:82:74:d7:0e:f9:30:48:3e:5b:88:3e:aa: +# 5c:6b:d6:2f:0c:e8:8e:73:c2:18:91:83:39:b6:66:5a:d0:1f: +# 60:27:5d:4d:e3:f6:3a:0d:66:50:9c:78:7b:ab:f3:13:10:ae: +# 0f:2f:ab:e8:64:b3:18:20:9d:46:35:64:25:73:ea:9b:10:5c: +# 58:35:89:b1:46:48:a7:f4:ac:d4:1d:9e:5b:cc:a9:a5:1a:13: +# 4f:24:50:aa:d9:1b:6d:b1:40:fb:9d:dd:58:74:c4:c2:6f:14: +# 72:ec:db:35:9f:b8:54:75:45:c3:a6:c8:1a:28:35:3a:ae:65: +# f2:a9:98:ce:af:5b:c9:38:8c:31:3b:7f:cc:dc:96:fd:e2:5b: +# d6:d0:59:f4:76:ba:0b:cb:4f:83:10:c7:40:d0:1d:60:e9:2a: +# e5:48:58:77:0c:45:69:be:19:71:04:24:e2:e3:24:1f:4a:c8: +# c1:3e:99:f5:96:98:38:48:25:a1:15:b0:1b:d7:e2:84:18:5b: +# f6:71:35:9a:68:7b:40:cc:18:5c:0c:24:9d:d4:95:f5:99:aa: +# 46:ea:ae:ac:bf:f4:14:19:24:e8:8c:ec:e3:f5:bc:06:68:8a: +# 2a:0c:05:5f:0a:97:75:a7:dc:7e:c0:fd:d7:7a:18:df:30:d1: +# 38:4b:1f:b0:98:70:bf:cc:7c:73:f0:6e:c4:31:a5:a4:97:1d: +# ac:bf:ce:6c:21:4a:be:27:23:67:f3:06:56:81:0a:91:8e:b6: +# e1:03:05:33:2c:da:34:08:4d:4e:50:23:ad:1f:a5:c5:d4:7a: +# fe:ea:09:ec:a7:28:60:8b:46:7c:b5:ea:9b:dd:4f:f9:e7:6b: +# 15:c6:88:cf:43:db:e5:27:dc:04:56:6e:6f:46:15:f1:56:2d: +# e8:5c:0c:73:c3:23:81:38:20:cb:c9:0c:69:cf:2c:ab:3b:84: +# 60:33:19:52:fd:69:14:33 + +[p11-kit-object-v1] +label: "HARICA TLS ECC Root CA 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEOAj+saCW0nqsr0k60MDgwzsoqvFybWUA +R4iE/Joma6pLumwECoheF/JVh/wwsDTiNFhXGoRT6TDZqfKWdMNRH1hJMcyYTmAR +h3XTcpSQT5sQJSqoeC2+kEFYkBVyp6G3 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "HARICA TLS ECC Root CA 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICVDCCAdugAwIBAgIQZ3SdjXfYO2rbIvT/WeK/zjAKBggqhkjOPQQDAzBsMQsw +CQYDVQQGEwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2Vh +cmNoIEluc3RpdHV0aW9ucyBDQTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBFQ0MgUm9v +dCBDQSAyMDIxMB4XDTIxMDIxOTExMDExMFoXDTQ1MDIxMzExMDEwOVowbDELMAkG +A1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj +aCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgRUNDIFJvb3Qg +Q0EgMjAyMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABDgI/rGgltJ6rK9JOtDA4MM7 +KKrxcm1lAEeIhPyaJmuqS7psBAqIXhfyVYf8MLA04jRYVxqEU+kw2anylnTDUR9Y +STHMmE5gEYd103KUkE+bECUqqHgtvpBBWJAVcqeht6NCMEAwDwYDVR0TAQH/BAUw +AwEB/zAdBgNVHQ4EFgQUyRtTgRL+BNUW0aq8mm+3oJUZbsowDgYDVR0PAQH/BAQD +AgGGMAoGCCqGSM49BAMDA2cAMGQCMBHervjcToiwqfAircJRQO9gcS3ujwLEXQNw +SaSS6sUUiHCm0w2wqsosQJz76YJumgIwK0eaB8bRwoF8yguWGEEbo/QwCZ61IygN +nxS2PFOiTAZpffpskcYqSUXm7LcT4Tps +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 67:74:9d:8d:77:d8:3b:6a:db:22:f4:ff:59:e2:bf:ce +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS ECC Root CA 2021 +# Validity +# Not Before: Feb 19 11:01:10 2021 GMT +# Not After : Feb 13 11:01:09 2045 GMT +# Subject: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS ECC Root CA 2021 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:38:08:fe:b1:a0:96:d2:7a:ac:af:49:3a:d0:c0: +# e0:c3:3b:28:aa:f1:72:6d:65:00:47:88:84:fc:9a: +# 26:6b:aa:4b:ba:6c:04:0a:88:5e:17:f2:55:87:fc: +# 30:b0:34:e2:34:58:57:1a:84:53:e9:30:d9:a9:f2: +# 96:74:c3:51:1f:58:49:31:cc:98:4e:60:11:87:75: +# d3:72:94:90:4f:9b:10:25:2a:a8:78:2d:be:90:41: +# 58:90:15:72:a7:a1:b7 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# C9:1B:53:81:12:FE:04:D5:16:D1:AA:BC:9A:6F:B7:A0:95:19:6E:CA +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:11:de:ae:f8:dc:4e:88:b0:a9:f0:22:ad:c2:51: +# 40:ef:60:71:2d:ee:8f:02:c4:5d:03:70:49:a4:92:ea:c5:14: +# 88:70:a6:d3:0d:b0:aa:ca:2c:40:9c:fb:e9:82:6e:9a:02:30: +# 2b:47:9a:07:c6:d1:c2:81:7c:ca:0b:96:18:41:1b:a3:f4:30: +# 09:9e:b5:23:28:0d:9f:14:b6:3c:53:a2:4c:06:69:7d:fa:6c: +# 91:c6:2a:49:45:e6:ec:b7:13:e1:3a:6c + +[p11-kit-object-v1] +label: "HARICA TLS RSA Root CA 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAi8Lnr2WbBWeWyQ0kudAO +ZPzO4iQYLIR/d1HLBBE2uF7taXGnnuQlCZdnwUfCz5EWNmI9OAThUYL/rNK0ad0u +7BGjRe5raztMv4yNpB6dEbnpOPl6DgyY4iMd0U5j1Oe4QUT7a69r2h/TxZGIW6SJ +ktGB5ow5WKDWaUOprZhSWG7bCvtrz2j646ReOkVzmAfqXwJy3gyls5+uqR23HbP8 +ilnnbnJlrfUwlCMH84IWSzWYnFO7L8rkWtnHjR38mJn7LKSCa/AqH44LX3FcXK5C +eymJgcsDo5nKiJ4LQAlBM9vmWHr9rplwwFoP1hOGcS92afyQ3dstbtHym/Uaa55v +FYx68EsooCI4gCRsNqQ78jCR83gTz8E/NavxHREjtUMingGStxgC5RHRgtsVAMxh +N8EqfJrh0LqzUEbugqydMfj7I+IDAEhwowkmeRVTYPM4XK046oEAYxS5M17dC9ug +RQcaMwn4TbSnAqZp9MJZBYhlhVauS8vg3jx9LRrI6fsfo2FK1ioTrXdMGhibkQ9Y +2AZUxZf4qj8giqaFpnf2pvwc4u5ulDMqg1CECuVPhvhQRXgAgetbaOMmjcx7XFH0 +FCxAvhpgHXpyYR0fYy2Iqs6iRZAI/Gu+s1AqWv2oSBhG1pBAkpAKhF5oMfjr7Q3T +HcZ9mRhVVidlLo1FxSTszuMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "HARICA TLS RSA Root CA 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFpDCCA4ygAwIBAgIQOcqTHO9D88aOk8f0ZIk4fjANBgkqhkiG9w0BAQsFADBs +MQswCQYDVQQGEwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJl +c2VhcmNoIEluc3RpdHV0aW9ucyBDQTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBSU0Eg +Um9vdCBDQSAyMDIxMB4XDTIxMDIxOTEwNTUzOFoXDTQ1MDIxMzEwNTUzN1owbDEL +MAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl +YXJjaCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgUlNBIFJv +b3QgQ0EgMjAyMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAIvC569l +mwVnlskNJLnQDmT8zuIkGCyEf3dRywQRNrhe7Wlxp57kJQmXZ8FHws+RFjZiPTgE +4VGC/6zStGndLuwRo0Xua2s7TL+MjaQenRG56Tj5eg4MmOIjHdFOY9TnuEFE+2uv +a9of08WRiFukiZLRgeaMOVig1mlDqa2YUlhu2wr7a89o+uOkXjpFc5gH6l8Cct4M +pbOfrqkdtx2z/IpZ525yZa31MJQjB/OCFks1mJxTuy/K5FrZx40d/JiZ+yykgmvw +Kh+OC19xXFyuQnspiYHLA6OZyoieC0AJQTPb5lh6/a6ZcMBaD9YThnEvdmn8kN3b +LW7R8pv1GmuebxWMevBLKKAiOIAkbDakO/IwkfN4E8/BPzWr8R0RI7VDIp4BkrcY +AuUR0YLbFQDMYTfBKnya4dC6s1BG7oKsnTH4+yPiAwBIcKMJJnkVU2DzOFytOOqB +AGMUuTNe3QvboEUHGjMJ+E20pwKmafTCWQWIZYVWrkvL4N48fS0ayOn7H6NhStYq +E613TBoYm5EPWNgGVMWX+Ko/IIqmhaZ39qb8HOLubpQzKoNQhArlT4b4UEV4AIHr +W2jjJo3Me1xR9BQsQL4aYB16cmEdH2MtiKrOokWQCPxrvrNQKlr9qEgYRtaQQJKQ +CoReaDH46+0N0x3GfZkYVVYnZS6NRcUk7M7jAgMBAAGjQjBAMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFApII6ZgpJIKM+qTW8VX6iVNvRLuMA4GA1UdDwEB/wQE +AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAPpBIqm5iFSVmewzVjIuJndftTgfvnNAU +X15QvWiWkKQUEapobQk1OUAJ2vQJLDSle1mESSmXdMgHHkdt8s4cUCbjnj1AUz/3 +f5Z2EMVGpdAgS1D0NTsY9FVqQRtHBmg8uwkIYtlfVUKqrFOFrJVWNlar5AWMxaja +H6NpvVMPxP/cyuN+8kyIhkdGGvMA9YCRotxDQpSbIPDRzbLrLFPCU3hKTwSUQZqP +JzLB5UkZv/HywouoCjkxKLR9YjYsTewfM7Z+d21+UPCfDtcRj88YxeMn/ibvBZ3P +zzfF0HvaO7AWhAw6k9a+F9sPPg4ZeAnHqQJyIkv3N3a6dcSFA1pj1bF1BcK5vZSt +jBWZp5N99sXzqnTPBIWUmAD04vnKJGW/4GKvyMX6ssmeVkjaef2WdhW+o45WxLM0 +/L5H9MG0qPzVMIho7suuyWPEdr6sOBjhXlzPrjoiUevRi7PzKzMHVIf6tLITe7pT +BGIBnfHAT+7hOtSLIBD6Alfm78ELt5BGnBkpjNxvoEppaZS3JGWg/6w/zgH7IS79 +aPib8qXPMThcFarmlwDB31qlpzmq6YR/PFGoOtmUW4y/Twhx5duoXNTSpv4Ao8YW +xw/ogM4cKGR0GQjTQuPOAF1/sdwTsOEFy9EgqoZ0njnnkf3/W9b3raYvAwtt41dU +63ZTGI0RmLo= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 39:ca:93:1c:ef:43:f3:c6:8e:93:c7:f4:64:89:38:7e +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS RSA Root CA 2021 +# Validity +# Not Before: Feb 19 10:55:38 2021 GMT +# Not After : Feb 13 10:55:37 2045 GMT +# Subject: C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS RSA Root CA 2021 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:8b:c2:e7:af:65:9b:05:67:96:c9:0d:24:b9:d0: +# 0e:64:fc:ce:e2:24:18:2c:84:7f:77:51:cb:04:11: +# 36:b8:5e:ed:69:71:a7:9e:e4:25:09:97:67:c1:47: +# c2:cf:91:16:36:62:3d:38:04:e1:51:82:ff:ac:d2: +# b4:69:dd:2e:ec:11:a3:45:ee:6b:6b:3b:4c:bf:8c: +# 8d:a4:1e:9d:11:b9:e9:38:f9:7a:0e:0c:98:e2:23: +# 1d:d1:4e:63:d4:e7:b8:41:44:fb:6b:af:6b:da:1f: +# d3:c5:91:88:5b:a4:89:92:d1:81:e6:8c:39:58:a0: +# d6:69:43:a9:ad:98:52:58:6e:db:0a:fb:6b:cf:68: +# fa:e3:a4:5e:3a:45:73:98:07:ea:5f:02:72:de:0c: +# a5:b3:9f:ae:a9:1d:b7:1d:b3:fc:8a:59:e7:6e:72: +# 65:ad:f5:30:94:23:07:f3:82:16:4b:35:98:9c:53: +# bb:2f:ca:e4:5a:d9:c7:8d:1d:fc:98:99:fb:2c:a4: +# 82:6b:f0:2a:1f:8e:0b:5f:71:5c:5c:ae:42:7b:29: +# 89:81:cb:03:a3:99:ca:88:9e:0b:40:09:41:33:db: +# e6:58:7a:fd:ae:99:70:c0:5a:0f:d6:13:86:71:2f: +# 76:69:fc:90:dd:db:2d:6e:d1:f2:9b:f5:1a:6b:9e: +# 6f:15:8c:7a:f0:4b:28:a0:22:38:80:24:6c:36:a4: +# 3b:f2:30:91:f3:78:13:cf:c1:3f:35:ab:f1:1d:11: +# 23:b5:43:22:9e:01:92:b7:18:02:e5:11:d1:82:db: +# 15:00:cc:61:37:c1:2a:7c:9a:e1:d0:ba:b3:50:46: +# ee:82:ac:9d:31:f8:fb:23:e2:03:00:48:70:a3:09: +# 26:79:15:53:60:f3:38:5c:ad:38:ea:81:00:63:14: +# b9:33:5e:dd:0b:db:a0:45:07:1a:33:09:f8:4d:b4: +# a7:02:a6:69:f4:c2:59:05:88:65:85:56:ae:4b:cb: +# e0:de:3c:7d:2d:1a:c8:e9:fb:1f:a3:61:4a:d6:2a: +# 13:ad:77:4c:1a:18:9b:91:0f:58:d8:06:54:c5:97: +# f8:aa:3f:20:8a:a6:85:a6:77:f6:a6:fc:1c:e2:ee: +# 6e:94:33:2a:83:50:84:0a:e5:4f:86:f8:50:45:78: +# 00:81:eb:5b:68:e3:26:8d:cc:7b:5c:51:f4:14:2c: +# 40:be:1a:60:1d:7a:72:61:1d:1f:63:2d:88:aa:ce: +# a2:45:90:08:fc:6b:be:b3:50:2a:5a:fd:a8:48:18: +# 46:d6:90:40:92:90:0a:84:5e:68:31:f8:eb:ed:0d: +# d3:1d:c6:7d:99:18:55:56:27:65:2e:8d:45:c5:24: +# ec:ce:e3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 0A:48:23:A6:60:A4:92:0A:33:EA:93:5B:C5:57:EA:25:4D:BD:12:EE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 3e:90:48:aa:6e:62:15:25:66:7b:0c:d5:8c:8b:89:9d:d7:ed: +# 4e:07:ef:9c:d0:14:5f:5e:50:bd:68:96:90:a4:14:11:aa:68: +# 6d:09:35:39:40:09:da:f4:09:2c:34:a5:7b:59:84:49:29:97: +# 74:c8:07:1e:47:6d:f2:ce:1c:50:26:e3:9e:3d:40:53:3f:f7: +# 7f:96:76:10:c5:46:a5:d0:20:4b:50:f4:35:3b:18:f4:55:6a: +# 41:1b:47:06:68:3c:bb:09:08:62:d9:5f:55:42:aa:ac:53:85: +# ac:95:56:36:56:ab:e4:05:8c:c5:a8:da:1f:a3:69:bd:53:0f: +# c4:ff:dc:ca:e3:7e:f2:4c:88:86:47:46:1a:f3:00:f5:80:91: +# a2:dc:43:42:94:9b:20:f0:d1:cd:b2:eb:2c:53:c2:53:78:4a: +# 4f:04:94:41:9a:8f:27:32:c1:e5:49:19:bf:f1:f2:c2:8b:a8: +# 0a:39:31:28:b4:7d:62:36:2c:4d:ec:1f:33:b6:7e:77:6d:7e: +# 50:f0:9f:0e:d7:11:8f:cf:18:c5:e3:27:fe:26:ef:05:9d:cf: +# cf:37:c5:d0:7b:da:3b:b0:16:84:0c:3a:93:d6:be:17:db:0f: +# 3e:0e:19:78:09:c7:a9:02:72:22:4b:f7:37:76:ba:75:c4:85: +# 03:5a:63:d5:b1:75:05:c2:b9:bd:94:ad:8c:15:99:a7:93:7d: +# f6:c5:f3:aa:74:cf:04:85:94:98:00:f4:e2:f9:ca:24:65:bf: +# e0:62:af:c8:c5:fa:b2:c9:9e:56:48:da:79:fd:96:76:15:be: +# a3:8e:56:c4:b3:34:fc:be:47:f4:c1:b4:a8:fc:d5:30:88:68: +# ee:cb:ae:c9:63:c4:76:be:ac:38:18:e1:5e:5c:cf:ae:3a:22: +# 51:eb:d1:8b:b3:f3:2b:33:07:54:87:fa:b4:b2:13:7b:ba:53: +# 04:62:01:9d:f1:c0:4f:ee:e1:3a:d4:8b:20:10:fa:02:57:e6: +# ef:c1:0b:b7:90:46:9c:19:29:8c:dc:6f:a0:4a:69:69:94:b7: +# 24:65:a0:ff:ac:3f:ce:01:fb:21:2e:fd:68:f8:9b:f2:a5:cf: +# 31:38:5c:15:aa:e6:97:00:c1:df:5a:a5:a7:39:aa:e9:84:7f: +# 3c:51:a8:3a:d9:94:5b:8c:bf:4f:08:71:e5:db:a8:5c:d4:d2: +# a6:fe:00:a3:c6:16:c7:0f:e8:80:ce:1c:28:64:74:19:08:d3: +# 42:e3:ce:00:5d:7f:b1:dc:13:b0:e1:05:cb:d1:20:aa:86:74: +# 9e:39:e7:91:fd:ff:5b:d6:f7:ad:a6:2f:03:0b:6d:e3:57:54: +# eb:76:53:18:8d:11:98:ba + +[p11-kit-object-v1] +label: "Hellenic Academic and Research Institutions ECC RootCA 2015" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEkqBB6EuChFzi+DERmYZkTgklL51BLwqu +NU90lbJRZGuNa+Y/cJXwBURHpnI4UHaVAlqOriie+S1Ome8sSG9MJSno0XFb3x3B +dTe01/p7ekKcagpWWnxpC6qACSRsfsFG +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Hellenic Academic and Research Institutions ECC RootCA 2015" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzAN +BgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJl +c2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hl +bGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgRUNDIFJv +b3RDQSAyMDE1MB4XDTE1MDcwNzEwMzcxMloXDTQwMDYzMDEwMzcxMlowgaoxCzAJ +BgNVBAYTAkdSMQ8wDQYDVQQHEwZBdGhlbnMxRDBCBgNVBAoTO0hlbGxlbmljIEFj +YWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9yaXR5 +MUQwQgYDVQQDEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0 +dXRpb25zIEVDQyBSb290Q0EgMjAxNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABJKg +QehLgoRc4vgxEZmGZE4JJS+dQS8KrjVPdJWyUWRrjWvmP3CV8AVER6ZyOFB2lQJa +jq4onvktTpnvLEhvTCUp6NFxW98dwXU3tNf6e3pCnGoKVlp8aQuqgAkkbH7BRqNC +MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFLQi +C4KZJAEOnLvkDv2/+5cgk5kqMAoGCCqGSM49BAMCA2cAMGQCMGfOFmI4oqxiRaep +lSTAGiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7Sof +TUwJCA3sS61kFyjndc5FZXIhF8siQQ6ME5g4mlRtm8rifOoCWCKR +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=GR, L=Athens, O=Hellenic Academic and Research Institutions Cert. Authority, CN=Hellenic Academic and Research Institutions ECC RootCA 2015 +# Validity +# Not Before: Jul 7 10:37:12 2015 GMT +# Not After : Jun 30 10:37:12 2040 GMT +# Subject: C=GR, L=Athens, O=Hellenic Academic and Research Institutions Cert. Authority, CN=Hellenic Academic and Research Institutions ECC RootCA 2015 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:92:a0:41:e8:4b:82:84:5c:e2:f8:31:11:99:86: +# 64:4e:09:25:2f:9d:41:2f:0a:ae:35:4f:74:95:b2: +# 51:64:6b:8d:6b:e6:3f:70:95:f0:05:44:47:a6:72: +# 38:50:76:95:02:5a:8e:ae:28:9e:f9:2d:4e:99:ef: +# 2c:48:6f:4c:25:29:e8:d1:71:5b:df:1d:c1:75:37: +# b4:d7:fa:7b:7a:42:9c:6a:0a:56:5a:7c:69:0b:aa: +# 80:09:24:6c:7e:c1:46 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B4:22:0B:82:99:24:01:0E:9C:BB:E4:0E:FD:BF:FB:97:20:93:99:2A +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:64:02:30:67:ce:16:62:38:a2:ac:62:45:a7:a9:95:24:c0: +# 1a:27:9c:32:3b:c0:c0:d5:ba:a9:e7:f8:04:43:53:85:ee:52: +# 21:de:9d:f5:25:83:3e:9e:58:4b:2f:d7:67:13:0e:21:02:30: +# 05:e1:75:01:de:68:ed:2a:1f:4d:4c:09:08:0d:ec:4b:ad:64: +# 17:28:e7:75:ce:45:65:72:21:17:cb:22:41:0e:8c:13:98:38: +# 9a:54:6d:9b:ca:e2:7c:ea:02:58:22:91 + +[p11-kit-object-v1] +label: "Hellenic Academic and Research Institutions RootCA 2015" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwvipPxuJ/Dw8BF09kDaw +kTp5PGZa7205AUkatLfPf00jU7eQAOMTKiimMfGRAOMo7K4hQc4f2v19ElsBgw+5 +sF+Z4fISg4BNBj7frK/noYhrMa/wi9AYM7jbRWo09AKAJCgKAhWVXnYqDZk6FFv2 +y8tTvBNNAYg3lCUbQrwi2I6jll462TLbPujwEGXtdOEvp3yvJzS7KX2bts8JyOXT +CvyIZWV0CtxzHFzNQLEc1LaEjExQz2iOqFmuwidOgqI13RT0H/+yd9WHL6pufSQn +58bLJubl/mcHY9hFDd06WWU5WHqSmXI9nIReiCG41fQs/NlwUk94uL08K4uVmPWz +0WjPIBR+TFxf54vl9TWBGTfXEQi3Zr7TSs6DVwA6w4H4F8uSNl3Ro9h1G+GLJ+p6 +SEH9RRkGrSeZTsFwR921n4FTEuWxjEhdMUMX44zGemOWSykwToROYhlePM6XkKV/ +Aeud4PiLid0lmD2Stn7v2fFRUX0tJshpWWHgrGq4KjYRBHpQvTKEvi/cctXXHRZH +5EdmID/0lsWvjgF6pQ96ZPUNGIfZrojV+oTBOsBpKC3yDWhRquOld8akkA6hN4sx +I0fBCQjrbvd4m9eC/IQgmUkZthJGsftFVRapo2WsnAcP6mvcHy4GcuyGiBLkLdtf +BS/k8APTJjPngMLNQqEXNAsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Hellenic Academic and Research Institutions RootCA 2015" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1Ix +DzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5k +IFJlc2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMT +N0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgUm9v +dENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNjMwMTAxMTIxWjCBpjELMAkG +A1UEBhMCR1IxDzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNh +ZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkx +QDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1 +dGlvbnMgUm9vdENBIDIwMTUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC +AQDC+Kk/G4n8PDwEXT2QNrCROnk8ZlrvbTkBSRq0t89/TSNTt5AA4xMqKKYx8ZEA +4yjsriFBzh/a/X0SWwGDD7mwX5nh8hKDgE0GPt+sr+ehiGsxr/CL0BgzuNtFajT0 +AoAkKAoCFZVedioNmToUW/bLy1O8E00BiDeUJRtCvCLYjqOWXjrZMts+6PAQZe10 +4S+nfK8nNLspfZu2zwnI5dMK/IhlZXQK3HMcXM1AsRzUtoSMTFDPaI6oWa7CJ06C +ojXdFPQf/7J31Ycvqm59JCfnxssm5uX+Zwdj2EUN3TpZZTlYepKZcj2chF6IIbjV +9Cz82XBST3i4vTwri5WY9bPRaM8gFH5MXF/ni+X1NYEZN9cRCLdmvtNKzoNXADrD +gfgXy5I2XdGj2HUb4Ysn6npIQf1FGQatJ5lOwXBH3bWfgVMS5bGMSF0xQxfjjMZ6 +Y5ZLKTBOhE5iGV48zpeQpX8B653g+IuJ3SWYPZK2fu/Z8VFRfS0myGlZYeCsargq +NhEEelC9MoS+L9xy1dcdFkfkR2YgP/SWxa+OAXqlD3pk9Q0Yh9muiNX6hME6wGko +LfINaFGq46V3xqSQDqE3izEjR8EJCOtu93ib14L8hCCZSRm2Ekax+0VVFqmjZayc +Bw/qa9wfLgZy7IaIEuQt218FL+TwA9MmM+eAws1CoRc0CwIDAQABo0IwQDAPBgNV +HRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUcRVnyMjJvXVd +ctA4GGqd83EkVAswDQYJKoZIhvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0I +XtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+D1hYc2Ryx+hFjtyp8iY/xnmMsVMI +M4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrMd/K4kPFox/la/vot +9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+yd+2V +Z5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/ea +j8GsGsVn82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnh +X9izjFk0WaSrT2y7HxjbdavYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQ +l033DlZdwJVqwjbDG2jJ9SrcR5q+ss7FJej6A7na+RZukYT1HCjI/CbM1xyQVqdf +bzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVtJ94Cj8rDtSvK6evIIVM4 +pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGaJI7ZjnHK +e7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0 +vm9qp/UsQu0yrbYhnr68 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=GR, L=Athens, O=Hellenic Academic and Research Institutions Cert. Authority, CN=Hellenic Academic and Research Institutions RootCA 2015 +# Validity +# Not Before: Jul 7 10:11:21 2015 GMT +# Not After : Jun 30 10:11:21 2040 GMT +# Subject: C=GR, L=Athens, O=Hellenic Academic and Research Institutions Cert. Authority, CN=Hellenic Academic and Research Institutions RootCA 2015 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c2:f8:a9:3f:1b:89:fc:3c:3c:04:5d:3d:90:36: +# b0:91:3a:79:3c:66:5a:ef:6d:39:01:49:1a:b4:b7: +# cf:7f:4d:23:53:b7:90:00:e3:13:2a:28:a6:31:f1: +# 91:00:e3:28:ec:ae:21:41:ce:1f:da:fd:7d:12:5b: +# 01:83:0f:b9:b0:5f:99:e1:f2:12:83:80:4d:06:3e: +# df:ac:af:e7:a1:88:6b:31:af:f0:8b:d0:18:33:b8: +# db:45:6a:34:f4:02:80:24:28:0a:02:15:95:5e:76: +# 2a:0d:99:3a:14:5b:f6:cb:cb:53:bc:13:4d:01:88: +# 37:94:25:1b:42:bc:22:d8:8e:a3:96:5e:3a:d9:32: +# db:3e:e8:f0:10:65:ed:74:e1:2f:a7:7c:af:27:34: +# bb:29:7d:9b:b6:cf:09:c8:e5:d3:0a:fc:88:65:65: +# 74:0a:dc:73:1c:5c:cd:40:b1:1c:d4:b6:84:8c:4c: +# 50:cf:68:8e:a8:59:ae:c2:27:4e:82:a2:35:dd:14: +# f4:1f:ff:b2:77:d5:87:2f:aa:6e:7d:24:27:e7:c6: +# cb:26:e6:e5:fe:67:07:63:d8:45:0d:dd:3a:59:65: +# 39:58:7a:92:99:72:3d:9c:84:5e:88:21:b8:d5:f4: +# 2c:fc:d9:70:52:4f:78:b8:bd:3c:2b:8b:95:98:f5: +# b3:d1:68:cf:20:14:7e:4c:5c:5f:e7:8b:e5:f5:35: +# 81:19:37:d7:11:08:b7:66:be:d3:4a:ce:83:57:00: +# 3a:c3:81:f8:17:cb:92:36:5d:d1:a3:d8:75:1b:e1: +# 8b:27:ea:7a:48:41:fd:45:19:06:ad:27:99:4e:c1: +# 70:47:dd:b5:9f:81:53:12:e5:b1:8c:48:5d:31:43: +# 17:e3:8c:c6:7a:63:96:4b:29:30:4e:84:4e:62:19: +# 5e:3c:ce:97:90:a5:7f:01:eb:9d:e0:f8:8b:89:dd: +# 25:98:3d:92:b6:7e:ef:d9:f1:51:51:7d:2d:26:c8: +# 69:59:61:e0:ac:6a:b8:2a:36:11:04:7a:50:bd:32: +# 84:be:2f:dc:72:d5:d7:1d:16:47:e4:47:66:20:3f: +# f4:96:c5:af:8e:01:7a:a5:0f:7a:64:f5:0d:18:87: +# d9:ae:88:d5:fa:84:c1:3a:c0:69:28:2d:f2:0d:68: +# 51:aa:e3:a5:77:c6:a4:90:0e:a1:37:8b:31:23:47: +# c1:09:08:eb:6e:f7:78:9b:d7:82:fc:84:20:99:49: +# 19:b6:12:46:b1:fb:45:55:16:a9:a3:65:ac:9c:07: +# 0f:ea:6b:dc:1f:2e:06:72:ec:86:88:12:e4:2d:db: +# 5f:05:2f:e4:f0:03:d3:26:33:e7:80:c2:cd:42:a1: +# 17:34:0b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 71:15:67:C8:C8:C9:BD:75:5D:72:D0:38:18:6A:9D:F3:71:24:54:0B +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 75:bb:6d:54:4b:aa:10:58:46:34:f2:62:d7:16:36:5d:08:5e: +# d5:6c:c8:87:bd:b4:2e:46:f2:31:f8:7c:ea:42:b5:93:16:55: +# dc:a1:0c:12:a0:da:61:7e:0f:58:58:73:64:72:c7:e8:45:8e: +# dc:a9:f2:26:3f:c6:79:8c:b1:53:08:33:81:b0:56:13:be:e6: +# 51:5c:d8:9b:0a:4f:4b:9c:56:53:02:e9:4f:f6:0d:60:ea:4d: +# 42:55:e8:7c:1b:21:21:d3:1b:3a:cc:77:f2:b8:90:f1:68:c7: +# f9:5a:fe:fa:2d:f4:bf:c9:f5:45:1b:ce:38:10:2a:37:8a:79: +# a3:b4:e3:09:6c:85:86:93:ff:89:96:27:78:81:8f:67:e3:46: +# 74:54:8e:d9:0d:69:e2:4a:f4:4d:74:03:ff:b2:77:ed:95:67: +# 97:e4:b1:c5:ab:bf:6a:23:e8:d4:94:e2:44:28:62:c4:4b:e2: +# f0:d8:e2:29:6b:1a:70:7e:24:61:93:7b:4f:03:32:25:0d:45: +# 24:2b:96:b4:46:6a:bf:4a:0b:f7:9a:8f:c1:ac:1a:c5:67:f3: +# 6f:34:d2:fa:73:63:8c:ef:16:b0:a8:a4:46:2a:f8:eb:12:ec: +# 72:b4:ef:f8:2b:7e:8c:52:c0:8b:84:54:f9:2f:3e:e3:55:a8: +# dc:66:b1:d9:e1:5f:d8:b3:8c:59:34:59:a4:ab:4f:6c:bb:1f: +# 18:db:75:ab:d8:cb:92:cd:94:38:61:0e:07:06:1f:4b:46:10: +# f1:15:be:8d:85:5c:3b:4a:2b:81:79:0f:b4:69:9f:49:50:97: +# 4d:f7:0e:56:5d:c0:95:6a:c2:36:c3:1b:68:c9:f5:2a:dc:47: +# 9a:be:b2:ce:c5:25:e8:fa:03:b9:da:f9:16:6e:91:84:f5:1c: +# 28:c8:fc:26:cc:d7:1c:90:56:a7:5f:6f:3a:04:bc:cd:78:89: +# 0b:8e:0f:2f:a3:aa:4f:a2:1b:12:3d:16:08:40:0f:f1:46:4c: +# d7:aa:7b:08:c1:0a:f5:6d:27:de:02:8f:ca:c3:b5:2b:ca:e9: +# eb:c8:21:53:38:a5:cc:3b:d8:77:37:30:a2:4f:d9:6f:d1:f2: +# 40:ad:41:7a:17:c5:d6:4a:35:89:b7:41:d5:7c:86:7f:55:4d: +# 83:4a:a5:73:20:c0:3a:af:90:f1:9a:24:8e:d9:8e:71:ca:7b: +# b8:86:da:b2:8f:99:3e:1d:13:0d:12:11:ee:d4:ab:f0:e9:15: +# 76:02:e4:e0:df:aa:20:1e:5b:61:85:64:40:a9:90:97:0d:ad: +# 53:d2:5a:1d:87:6a:00:97:65:62:b4:be:6f:6a:a7:f5:2c:42: +# ed:32:ad:b6:21:9e:be:bc + +[p11-kit-object-v1] +label: "HiPKI Root CA - G1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9B5/UnMyDHPkvRN0o9Qw +qNCuS9i233VHZvR85zkEHmpwINJaR3JnVfSl6J3VHiGh8Ge6zCFovkRTv4354twv +Vcg3Px+kwJyz5HdcoEb+d/oaoDjq7Zpy3iu9lFc6uux55199QmQ5eiY29yTw1S+6 +lZgRZq2XNdZ1AYDgr/SEYYwNHl98h5ZeQa/rh+r4XfEuiAU+TCK72h8q3VJGZDnz +Qs7ZngyzsHeXZJzA9KMuH5UHsBffMNsAGJZMoYFL3QRtU6M9/Aes1MU3guvklQgZ +KILSQjqj2FPseYlgSGDIcpJQ3AOPgz+yQlda22rpEZfdhSi8MEyr48KxRURHH+CK +FgeW0iEPU8DtqX7UTuybCeyvQqww1r/REEXgphaypcXTT3OUM3ECoWqj1jOXTyFj +HluP2cFeRXF3D4FdXyGarYPM+l7WjSNfGz1BryB1ZlpK9p/7qxj3ccC2HTHsOyDr +y+K49a6SsvfhhEvyovKTmiKe0xRvNlS9H15ZFblzqMF8b3ti6RZsR1pl8w4Rm0bZ +/W3c1pzAtH2lsN0/Vm+h+fbkEkj9Bn8SV7apI09bA8PgcSojt/ewsTu8mL3WmKgM +a/aOEmem8rJY5AIJEzypuxC00jBF8ez3ABHfZfjcK0NVvxaXxA/VLGGEqnKG/uY6 +fsI/fe78LxQ+5oXdUG+3Se0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "HiPKI Root CA - G1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFajCCA1KgAwIBAgIQLd2szmKXlKFD6LDNdmpeYDANBgkqhkiG9w0BAQsFADBP +MQswCQYDVQQGEwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0 +ZC4xGzAZBgNVBAMMEkhpUEtJIFJvb3QgQ0EgLSBHMTAeFw0xOTAyMjIwOTQ2MDRa +Fw0zNzEyMzExNTU5NTlaME8xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3 +YSBUZWxlY29tIENvLiwgTHRkLjEbMBkGA1UEAwwSSGlQS0kgUm9vdCBDQSAtIEcx +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9B5/UnMyDHPkvRN0o9Qw +qNCuS9i233VHZvR85zkEHmpwINJaR3JnVfSl6J3VHiGh8Ge6zCFovkRTv4354twv +Vcg3Px+kwJyz5HdcoEb+d/oaoDjq7Zpy3iu9lFc6uux55199QmQ5eiY29yTw1S+6 +lZgRZq2XNdZ1AYDgr/SEYYwNHl98h5ZeQa/rh+r4XfEuiAU+TCK72h8q3VJGZDnz +Qs7ZngyzsHeXZJzA9KMuH5UHsBffMNsAGJZMoYFL3QRtU6M9/Aes1MU3guvklQgZ +KILSQjqj2FPseYlgSGDIcpJQ3AOPgz+yQlda22rpEZfdhSi8MEyr48KxRURHH+CK +FgeW0iEPU8DtqX7UTuybCeyvQqww1r/REEXgphaypcXTT3OUM3ECoWqj1jOXTyFj +HluP2cFeRXF3D4FdXyGarYPM+l7WjSNfGz1BryB1ZlpK9p/7qxj3ccC2HTHsOyDr +y+K49a6SsvfhhEvyovKTmiKe0xRvNlS9H15ZFblzqMF8b3ti6RZsR1pl8w4Rm0bZ +/W3c1pzAtH2lsN0/Vm+h+fbkEkj9Bn8SV7apI09bA8PgcSojt/ewsTu8mL3WmKgM +a/aOEmem8rJY5AIJEzypuxC00jBF8ez3ABHfZfjcK0NVvxaXxA/VLGGEqnKG/uY6 +fsI/fe78LxQ+5oXdUG+3Se0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNV +HQ4EFgQU8ncX+l6o/vY9cdVouslGDDjYr7AwDgYDVR0PAQH/BAQDAgGGMA0GCSqG +SIb3DQEBCwUAA4ICAQBQUfB13HAE4/+qddRxosuej6ip0691x1TPOhwEmSKsxBHi +7zNKpiMdDg1H2DfHb680f0+BazVP6XKlMeJ45/dOlBhbQH3PayFUhuaVevvGyuqc +SE5XCV0vrPSltJczWNWseanMX/mF+lLFjfiRFOs6DRfQUsJ748JzjkZ4Bjgs6Fza +ZsT0pPBWGTMpWmWSBUdGSquEwx4noR8RkpkndZMPvDY7l1ePJlsMu5wP1G4wB9Tc +XzZoZjmDlicmisjEOf6aIW/Vcobpf2Lll07QJNBAsNB1CI69aO4I1258EHBGG3zg +iLKecoaZAeO/n0kZtCW+VmWuF2PlHt/o/0elv+EmBYTksMCv5wiZqAxeJoBF1Pho +L5aPruJKHJwWDBNvOIf2u8g0X5IDUXlwpt/L9ZlNec1OvFefQ05rLisY+GpzjLrF +Ne85akEez3GoorKGB1s6yeHvP2UEgEcyRHCVTjFnanRbEEV16rCf0OY1/k6fi8wr +kkVbbiVghUbN0aqwdmaTd5a+g744tiROJgvM7XpWGuDpWsZkrUx6AEhEL7lAuxM+ +vhV4nYWBSipX3tUZQ9rbyltHhoMLP7YNdnhzeSJesYAfz77RP1YQmCuVh6EfnWQU +YDksswBVLuT1sw5XxJFBAJw/6KXf6vb/yPCtbVKoF6ubYfwSUTXkJf2vqmqGOQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 2d:dd:ac:ce:62:97:94:a1:43:e8:b0:cd:76:6a:5e:60 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=TW, O=Chunghwa Telecom Co., Ltd., CN=HiPKI Root CA - G1 +# Validity +# Not Before: Feb 22 09:46:04 2019 GMT +# Not After : Dec 31 15:59:59 2037 GMT +# Subject: C=TW, O=Chunghwa Telecom Co., Ltd., CN=HiPKI Root CA - G1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:f4:1e:7f:52:73:32:0c:73:e4:bd:13:74:a3:d4: +# 30:a8:d0:ae:4b:d8:b6:df:75:47:66:f4:7c:e7:39: +# 04:1e:6a:70:20:d2:5a:47:72:67:55:f4:a5:e8:9d: +# d5:1e:21:a1:f0:67:ba:cc:21:68:be:44:53:bf:8d: +# f9:e2:dc:2f:55:c8:37:3f:1f:a4:c0:9c:b3:e4:77: +# 5c:a0:46:fe:77:fa:1a:a0:38:ea:ed:9a:72:de:2b: +# bd:94:57:3a:ba:ec:79:e7:5f:7d:42:64:39:7a:26: +# 36:f7:24:f0:d5:2f:ba:95:98:11:66:ad:97:35:d6: +# 75:01:80:e0:af:f4:84:61:8c:0d:1e:5f:7c:87:96: +# 5e:41:af:eb:87:ea:f8:5d:f1:2e:88:05:3e:4c:22: +# bb:da:1f:2a:dd:52:46:64:39:f3:42:ce:d9:9e:0c: +# b3:b0:77:97:64:9c:c0:f4:a3:2e:1f:95:07:b0:17: +# df:30:db:00:18:96:4c:a1:81:4b:dd:04:6d:53:a3: +# 3d:fc:07:ac:d4:c5:37:82:eb:e4:95:08:19:28:82: +# d2:42:3a:a3:d8:53:ec:79:89:60:48:60:c8:72:92: +# 50:dc:03:8f:83:3f:b2:42:57:5a:db:6a:e9:11:97: +# dd:85:28:bc:30:4c:ab:e3:c2:b1:45:44:47:1f:e0: +# 8a:16:07:96:d2:21:0f:53:c0:ed:a9:7e:d4:4e:ec: +# 9b:09:ec:af:42:ac:30:d6:bf:d1:10:45:e0:a6:16: +# b2:a5:c5:d3:4f:73:94:33:71:02:a1:6a:a3:d6:33: +# 97:4f:21:63:1e:5b:8f:d9:c1:5e:45:71:77:0f:81: +# 5d:5f:21:9a:ad:83:cc:fa:5e:d6:8d:23:5f:1b:3d: +# 41:af:20:75:66:5a:4a:f6:9f:fb:ab:18:f7:71:c0: +# b6:1d:31:ec:3b:20:eb:cb:e2:b8:f5:ae:92:b2:f7: +# e1:84:4b:f2:a2:f2:93:9a:22:9e:d3:14:6f:36:54: +# bd:1f:5e:59:15:b9:73:a8:c1:7c:6f:7b:62:e9:16: +# 6c:47:5a:65:f3:0e:11:9b:46:d9:fd:6d:dc:d6:9c: +# c0:b4:7d:a5:b0:dd:3f:56:6f:a1:f9:f6:e4:12:48: +# fd:06:7f:12:57:b6:a9:23:4f:5b:03:c3:e0:71:2a: +# 23:b7:f7:b0:b1:3b:bc:98:bd:d6:98:a8:0c:6b:f6: +# 8e:12:67:a6:f2:b2:58:e4:02:09:13:3c:a9:bb:10: +# b4:d2:30:45:f1:ec:f7:00:11:df:65:f8:dc:2b:43: +# 55:bf:16:97:c4:0f:d5:2c:61:84:aa:72:86:fe:e6: +# 3a:7e:c2:3f:7d:ee:fc:2f:14:3e:e6:85:dd:50:6f: +# b7:49:ed +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# F2:77:17:FA:5E:A8:FE:F6:3D:71:D5:68:BA:C9:46:0C:38:D8:AF:B0 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 50:51:f0:75:dc:70:04:e3:ff:aa:75:d4:71:a2:cb:9e:8f:a8: +# a9:d3:af:75:c7:54:cf:3a:1c:04:99:22:ac:c4:11:e2:ef:33: +# 4a:a6:23:1d:0e:0d:47:d8:37:c7:6f:af:34:7f:4f:81:6b:35: +# 4f:e9:72:a5:31:e2:78:e7:f7:4e:94:18:5b:40:7d:cf:6b:21: +# 54:86:e6:95:7a:fb:c6:ca:ea:9c:48:4e:57:09:5d:2f:ac:f4: +# a5:b4:97:33:58:d5:ac:79:a9:cc:5f:f9:85:fa:52:c5:8d:f8: +# 91:14:eb:3a:0d:17:d0:52:c2:7b:e3:c2:73:8e:46:78:06:38: +# 2c:e8:5c:da:66:c4:f4:a4:f0:56:19:33:29:5a:65:92:05:47: +# 46:4a:ab:84:c3:1e:27:a1:1f:11:92:99:27:75:93:0f:bc:36: +# 3b:97:57:8f:26:5b:0c:bb:9c:0f:d4:6e:30:07:d4:dc:5f:36: +# 68:66:39:83:96:27:26:8a:c8:c4:39:fe:9a:21:6f:d5:72:86: +# e9:7f:62:e5:97:4e:d0:24:d0:40:b0:d0:75:08:8e:bd:68:ee: +# 08:d7:6e:7c:10:70:46:1b:7c:e0:88:b2:9e:72:86:99:01:e3: +# bf:9f:49:19:b4:25:be:56:65:ae:17:63:e5:1e:df:e8:ff:47: +# a5:bf:e1:26:05:84:e4:b0:c0:af:e7:08:99:a8:0c:5e:26:80: +# 45:d4:f8:68:2f:96:8f:ae:e2:4a:1c:9c:16:0c:13:6f:38:87: +# f6:bb:c8:34:5f:92:03:51:79:70:a6:df:cb:f5:99:4d:79:cd: +# 4e:bc:57:9f:43:4e:6b:2e:2b:18:f8:6a:73:8c:ba:c5:35:ef: +# 39:6a:41:1e:cf:71:a8:a2:b2:86:07:5b:3a:c9:e1:ef:3f:65: +# 04:80:47:32:44:70:95:4e:31:67:6a:74:5b:10:45:75:ea:b0: +# 9f:d0:e6:35:fe:4e:9f:8b:cc:2b:92:45:5b:6e:25:60:85:46: +# cd:d1:aa:b0:76:66:93:77:96:be:83:be:38:b6:24:4e:26:0b: +# cc:ed:7a:56:1a:e0:e9:5a:c6:64:ad:4c:7a:00:48:44:2f:b9: +# 40:bb:13:3e:be:15:78:9d:85:81:4a:2a:57:de:d5:19:43:da: +# db:ca:5b:47:86:83:0b:3f:b6:0d:76:78:73:79:22:5e:b1:80: +# 1f:cf:be:d1:3f:56:10:98:2b:95:87:a1:1f:9d:64:14:60:39: +# 2c:b3:00:55:2e:e4:f5:b3:0e:57:c4:91:41:00:9c:3f:e8:a5: +# df:ea:f6:ff:c8:f0:ad:6d:52:a8:17:ab:9b:61:fc:12:51:35: +# e4:25:fd:af:aa:6a:86:39 + +[p11-kit-object-v1] +label: "Hongkong Post Root CA 3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAs4jX6s4PIE6+5tYDbe5Z +/MJX3ylooYMOPmjHaFicHGBLiUMMudQVsu7BTnXptafv5ek1meTMHOdLX40zMCAz +U9mmu9U+E47pH4dJrVAtUMoYvgFYohNwlruJiFaAXPi9LDzhTFeIu9O5le/Lx/ba +MXQopuZUifVBMcrlJhrNguBw2jspu9UD9Zm6VfVk0WAOs4lJuIovBdKERSh8j2hQ +Enj8C7VTy8KYHISjnrC+I6Ta3MgrHtpuRR6JmNr5AC4G6Qw7cNVQJYiZy81zYPfV +/zVnxaG8XqvNSrhF68hoHg0NFEYS49JkYopCmLy0xggI+P2oTGScdgG9L6lsMw/Y +Pyi4PGkBQoZ+acHJBsrlekZl6cLWUEEuP7fk7WzXvyYBEaIWKUprNAaQ7BPStvtq +dtI87fDWLd3hFeyjmy8syT4r5Gk7/3IlsTaGW8d/a4tVG0rFIGE9rstQ4Qg6vrCP +Y0FTMAhZPJgdd7pjkXrKEFBgv/DXvJWHj5fF/pdqAZSjfFuFHSo5OtBUodE5cZ39 +Ifm1e/Di4AKPbpYkJSygHiyoxImn7+2ZBi+2CkxP26LMNxqvR4Util/ENDRMAP0Y +k2cT0TfmSLSLBsVXexmGCnnLAMlSr0L/N4/hox56PVCrYwbnFbU/tkU3lDexfvJI +w3/Fdf6XjUWPGqcacigaQA8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Hongkong Post Root CA 3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFzzCCA7egAwIBAgIUCBZfikyl7ADJk0DfxMauI7gcWqQwDQYJKoZIhvcNAQEL +BQAwbzELMAkGA1UEBhMCSEsxEjAQBgNVBAgTCUhvbmcgS29uZzESMBAGA1UEBxMJ +SG9uZyBLb25nMRYwFAYDVQQKEw1Ib25na29uZyBQb3N0MSAwHgYDVQQDExdIb25n +a29uZyBQb3N0IFJvb3QgQ0EgMzAeFw0xNzA2MDMwMjI5NDZaFw00MjA2MDMwMjI5 +NDZaMG8xCzAJBgNVBAYTAkhLMRIwEAYDVQQIEwlIb25nIEtvbmcxEjAQBgNVBAcT +CUhvbmcgS29uZzEWMBQGA1UEChMNSG9uZ2tvbmcgUG9zdDEgMB4GA1UEAxMXSG9u +Z2tvbmcgUG9zdCBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK +AoICAQCziNfqzg8gTr7m1gNt7ln8wlffKWihgw4+aMdoWJwcYEuJQwy51BWy7sFO +dem1p+/l6TWZ5Mwc50tfjTMwIDNT2aa71T4Tjukfh0mtUC1Qyhi+AViiE3CWu4mI +VoBc+L0sPOFMV4i707mV78vH9toxdCim5lSJ9UExyuUmGs2C4HDaOym71QP1mbpV +9WTRYA6ziUm4ii8F0oRFKHyPaFASePwLtVPLwpgchKOesL4jpNrcyCse2m5FHomY +2vkALgbpDDtw1VAliJnLzXNg99X/NWfFobxeq81KuEXryGgeDQ0URhLj0mRiikKY +vLTGCAj4/ahMZJx2Ab0vqWwzD9g/KLg8aQFChn5pwckGyuV6RmXpwtZQQS4/t+Tt +bNe/JgERohYpSms0BpDsE9K2+2p20jzt8NYt3eEV7KObLyzJPivkaTv/ciWxNoZb +x39ri1UbSsUgYT2uy1DhCDq+sI9jQVMwCFk8mB13umOResoQUGC/8Ne8lYePl8X+ +l2oBlKN8W4UdKjk60FSh0Tlxnf0h+bV78OLgAo9uliQlLKAeLKjEiafv7ZkGL7YK +TE/bosw3Gq9HhS2KX8Q0NEwA/RiTZxPRN+ZItIsGxVd7GYYKecsAyVKvQv83j+Gj +Hno9UKtjBucVtT+2RTeUN7F+8kjDf8V1/peNRY8apxpyKBpADwIDAQABo2MwYTAP +BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBQXnc0e +i9Y5K3DTXNSguB+wAPzFYTAdBgNVHQ4EFgQUF53NHovWOStw01zUoLgfsAD8xWEw +DQYJKoZIhvcNAQELBQADggIBAFbVe27mIgHSQpsY1Q7XZiNc4/6gx5LS6ZStS6LG +7BJ8dNVI0lkUmcDrudHr9EgwW62nV3OZqdPlt9EuWSRY3GguLmLYauRwCy0gUCCk +MpXRAJi70/33MvJJrsZ64Ee+bs7Lo3I6LWldy8joRTnU+kLBEUx3XZL7av9YROXr +gZ6voJmtvqkBZss4HTzfQx/0TW60uhdG/H39h4F5ag0zD/ov+BS5gLNdTaqX4fnk +GMX41TiMJjz98iji7lpJiCzfeT2OnpA8vUFKOt1b9pq0zj8lMH8yfaIDlNDceqFS +3m6TjRgm/VWsvY+b0s+v54Ysyx8Jb6NvqYTUc79NoXQbTiNg8swOqn+knEwlqLJm +Ozj/2ZQw9nKEvmhVEA/GcywWaZMH/rFF7buiVWqw2rVKAiUnhde3t4ZEFolsgCs+ +l6mc1X5VTMbeRRAc6uk7nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6c +JfTzPV4e0hz5sy229zdcxsshTrD3mUcYhcErulWuBurQB7Lcq9CClnXO0lD+mefP +L5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB60PZ2Pierc+xYw5F9KBa +LJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fqdBb9HxEG +mpv0 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 08:16:5f:8a:4c:a5:ec:00:c9:93:40:df:c4:c6:ae:23:b8:1c:5a:a4 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=HK, ST=Hong Kong, L=Hong Kong, O=Hongkong Post, CN=Hongkong Post Root CA 3 +# Validity +# Not Before: Jun 3 02:29:46 2017 GMT +# Not After : Jun 3 02:29:46 2042 GMT +# Subject: C=HK, ST=Hong Kong, L=Hong Kong, O=Hongkong Post, CN=Hongkong Post Root CA 3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b3:88:d7:ea:ce:0f:20:4e:be:e6:d6:03:6d:ee: +# 59:fc:c2:57:df:29:68:a1:83:0e:3e:68:c7:68:58: +# 9c:1c:60:4b:89:43:0c:b9:d4:15:b2:ee:c1:4e:75: +# e9:b5:a7:ef:e5:e9:35:99:e4:cc:1c:e7:4b:5f:8d: +# 33:30:20:33:53:d9:a6:bb:d5:3e:13:8e:e9:1f:87: +# 49:ad:50:2d:50:ca:18:be:01:58:a2:13:70:96:bb: +# 89:88:56:80:5c:f8:bd:2c:3c:e1:4c:57:88:bb:d3: +# b9:95:ef:cb:c7:f6:da:31:74:28:a6:e6:54:89:f5: +# 41:31:ca:e5:26:1a:cd:82:e0:70:da:3b:29:bb:d5: +# 03:f5:99:ba:55:f5:64:d1:60:0e:b3:89:49:b8:8a: +# 2f:05:d2:84:45:28:7c:8f:68:50:12:78:fc:0b:b5: +# 53:cb:c2:98:1c:84:a3:9e:b0:be:23:a4:da:dc:c8: +# 2b:1e:da:6e:45:1e:89:98:da:f9:00:2e:06:e9:0c: +# 3b:70:d5:50:25:88:99:cb:cd:73:60:f7:d5:ff:35: +# 67:c5:a1:bc:5e:ab:cd:4a:b8:45:eb:c8:68:1e:0d: +# 0d:14:46:12:e3:d2:64:62:8a:42:98:bc:b4:c6:08: +# 08:f8:fd:a8:4c:64:9c:76:01:bd:2f:a9:6c:33:0f: +# d8:3f:28:b8:3c:69:01:42:86:7e:69:c1:c9:06:ca: +# e5:7a:46:65:e9:c2:d6:50:41:2e:3f:b7:e4:ed:6c: +# d7:bf:26:01:11:a2:16:29:4a:6b:34:06:90:ec:13: +# d2:b6:fb:6a:76:d2:3c:ed:f0:d6:2d:dd:e1:15:ec: +# a3:9b:2f:2c:c9:3e:2b:e4:69:3b:ff:72:25:b1:36: +# 86:5b:c7:7f:6b:8b:55:1b:4a:c5:20:61:3d:ae:cb: +# 50:e1:08:3a:be:b0:8f:63:41:53:30:08:59:3c:98: +# 1d:77:ba:63:91:7a:ca:10:50:60:bf:f0:d7:bc:95: +# 87:8f:97:c5:fe:97:6a:01:94:a3:7c:5b:85:1d:2a: +# 39:3a:d0:54:a1:d1:39:71:9d:fd:21:f9:b5:7b:f0: +# e2:e0:02:8f:6e:96:24:25:2c:a0:1e:2c:a8:c4:89: +# a7:ef:ed:99:06:2f:b6:0a:4c:4f:db:a2:cc:37:1a: +# af:47:85:2d:8a:5f:c4:34:34:4c:00:fd:18:93:67: +# 13:d1:37:e6:48:b4:8b:06:c5:57:7b:19:86:0a:79: +# cb:00:c9:52:af:42:ff:37:8f:e1:a3:1e:7a:3d:50: +# ab:63:06:e7:15:b5:3f:b6:45:37:94:37:b1:7e:f2: +# 48:c3:7f:c5:75:fe:97:8d:45:8f:1a:a7:1a:72:28: +# 1a:40:0f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Authority Key Identifier: +# 17:9D:CD:1E:8B:D6:39:2B:70:D3:5C:D4:A0:B8:1F:B0:00:FC:C5:61 +# X509v3 Subject Key Identifier: +# 17:9D:CD:1E:8B:D6:39:2B:70:D3:5C:D4:A0:B8:1F:B0:00:FC:C5:61 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 56:d5:7b:6e:e6:22:01:d2:42:9b:18:d5:0e:d7:66:23:5c:e3: +# fe:a0:c7:92:d2:e9:94:ad:4b:a2:c6:ec:12:7c:74:d5:48:d2: +# 59:14:99:c0:eb:b9:d1:eb:f4:48:30:5b:ad:a7:57:73:99:a9: +# d3:e5:b7:d1:2e:59:24:58:dc:68:2e:2e:62:d8:6a:e4:70:0b: +# 2d:20:50:20:a4:32:95:d1:00:98:bb:d3:fd:f7:32:f2:49:ae: +# c6:7a:e0:47:be:6e:ce:cb:a3:72:3a:2d:69:5d:cb:c8:e8:45: +# 39:d4:fa:42:c1:11:4c:77:5d:92:fb:6a:ff:58:44:e5:eb:81: +# 9e:af:a0:99:ad:be:a9:01:66:cb:38:1d:3c:df:43:1f:f4:4d: +# 6e:b4:ba:17:46:fc:7d:fd:87:81:79:6a:0d:33:0f:fa:2f:f8: +# 14:b9:80:b3:5d:4d:aa:97:e1:f9:e4:18:c5:f8:d5:38:8c:26: +# 3c:fd:f2:28:e2:ee:5a:49:88:2c:df:79:3d:8e:9e:90:3c:bd: +# 41:4a:3a:dd:5b:f6:9a:b4:ce:3f:25:30:7f:32:7d:a2:03:94: +# d0:dc:7a:a1:52:de:6e:93:8d:18:26:fd:55:ac:bd:8f:9b:d2: +# cf:af:e7:86:2c:cb:1f:09:6f:a3:6f:a9:84:d4:73:bf:4d:a1: +# 74:1b:4e:23:60:f2:cc:0e:aa:7f:a4:9c:4c:25:a8:b2:66:3b: +# 38:ff:d9:94:30:f6:72:84:be:68:55:10:0f:c6:73:2c:16:69: +# 93:07:fe:b1:45:ed:bb:a2:55:6a:b0:da:b5:4a:02:25:27:85: +# d7:b7:b7:86:44:16:89:6c:80:2b:3e:97:a9:9c:d5:7e:55:4c: +# c6:de:45:10:1c:ea:e9:3b:9f:03:53:ee:ee:7a:01:02:16:78: +# d4:e8:c2:be:46:76:88:13:3f:22:bb:48:12:1d:52:00:b4:02: +# 7e:21:1a:1e:9c:25:f4:f3:3d:5e:1e:d2:1c:f9:b3:2d:b6:f7: +# 37:5c:c6:cb:21:4e:b0:f7:99:47:18:85:c1:2b:ba:55:ae:06: +# ea:d0:07:b2:dc:ab:d0:82:96:75:ce:d2:50:fe:99:e7:cf:2f: +# 9f:e7:76:d1:61:2a:fb:21:bb:31:d0:aa:9f:47:a4:b2:22:ca: +# 16:3a:50:57:c4:5b:43:67:c5:65:62:03:49:01:eb:43:d9:d8: +# f8:9e:ad:cf:b1:63:0e:45:f4:a0:5a:2c:9b:2d:c5:a6:c0:ad: +# a8:47:f4:27:4c:38:0d:2e:1b:49:3b:52:f4:e8:88:83:2b:54: +# 28:d4:f2:35:52:b4:32:83:62:69:64:0c:91:9c:9f:97:ea:74: +# 16:fd:1f:11:06:9a:9b:f4 + +[p11-kit-object-v1] +label: "IdenTrust Commercial Root CA 1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp1AZ3j+ZPdQzRvFvUWGC +sqlPj2eJXYTZU90MKNnX8P+ulUNymfm1XXyKwULhMVB00YENfM2bIatD4qytXoZu +8wmKH1oyvaLrlPnoXArs/5jSr3GztFOfTofvkry97E8yMIhLF15XxFPC9gKXjdli +K78kH2KN38O4KUtJeDyTYIgi/JnaNsjCotQsVABnNW5zvwJY8KTd5bCiJnrK4Dal +GRb1/bfvrj9A9W1aBP3ONMok3HQjG10zExJdxAEl9jDdAl2f4NVHvbTrG6G7SUnY +n1sC84rkJJDkYk9Pwa+LDnQXqNFyiGp6AUnMtEZ5xhex2pgeB1n6dSGFZd2QVs77 +q6VgncSd+VKwi72H+Y8rIwojdjv3M+HJAPNp+Uui4E68fpM5hAf3RHB+/gda5bGs +0RjM8jXlSUkIylbJPfsPGH2LO8ETwk2PyU8ON+kfoQ5q32IuyzUGUXksyCU49PpL +p4lcnNLjDTmGSnR81VmHwj9ODFxS9D33UoLx6qOs/Uk0GijzQYg6E+7o3v+ZHV+6 +y+ge8rlQYMAx03Pl776g7TMLdL4gIMRnbPAIA3pVgH9GTpan9B4+4fbYCeEzZCtj +1zJen/nAew94b5e8k5r5nBKQeHqAhxXXcnScVXR4sbrhbnAEuk+gumjDe/8x8HM9 +PZQqsQtBDqD+TYhla3kztNcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "IdenTrust Commercial Root CA 1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBK +MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVu +VHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQw +MTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScw +JQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ldhNlT +3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU ++ehcCuz/mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gp +S0l4PJNgiCL8mdo2yMKi1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1 +bVoE/c40yiTcdCMbXTMTEl3EASX2MN0CXZ/g1Ue9tOsbobtJSdifWwLziuQkkORi +T0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl3ZBWzvurpWCdxJ35UrCL +vYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzyNeVJSQjK +Vsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZK +dHzVWYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHT +c+XvvqDtMwt0viAgxGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hv +l7yTmvmcEpB4eoCHFddydJxVdHixuuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5N +iGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB +/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZIhvcNAQELBQAD +ggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH +6oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwt +LRvM7Kqas6pgghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93 +nAbowacYXVKV7cndJZ5t+qntozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3 ++wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmVYjzlVYA211QC//G5Xc7UI2/YRYRK +W2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUXfeu+h1sXIFRRk0pT +AwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/rokTLq +l1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG +4iZZRHUe2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZ +mUlO+KWA2yUPHGNiiskzZ2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A +7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7RcGzM7vRX+Bi6hG6H +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0a:01:42:80:00:00:01:45:23:c8:44:b5:00:00:00:02 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=IdenTrust, CN=IdenTrust Commercial Root CA 1 +# Validity +# Not Before: Jan 16 18:12:23 2014 GMT +# Not After : Jan 16 18:12:23 2034 GMT +# Subject: C=US, O=IdenTrust, CN=IdenTrust Commercial Root CA 1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a7:50:19:de:3f:99:3d:d4:33:46:f1:6f:51:61: +# 82:b2:a9:4f:8f:67:89:5d:84:d9:53:dd:0c:28:d9: +# d7:f0:ff:ae:95:43:72:99:f9:b5:5d:7c:8a:c1:42: +# e1:31:50:74:d1:81:0d:7c:cd:9b:21:ab:43:e2:ac: +# ad:5e:86:6e:f3:09:8a:1f:5a:32:bd:a2:eb:94:f9: +# e8:5c:0a:ec:ff:98:d2:af:71:b3:b4:53:9f:4e:87: +# ef:92:bc:bd:ec:4f:32:30:88:4b:17:5e:57:c4:53: +# c2:f6:02:97:8d:d9:62:2b:bf:24:1f:62:8d:df:c3: +# b8:29:4b:49:78:3c:93:60:88:22:fc:99:da:36:c8: +# c2:a2:d4:2c:54:00:67:35:6e:73:bf:02:58:f0:a4: +# dd:e5:b0:a2:26:7a:ca:e0:36:a5:19:16:f5:fd:b7: +# ef:ae:3f:40:f5:6d:5a:04:fd:ce:34:ca:24:dc:74: +# 23:1b:5d:33:13:12:5d:c4:01:25:f6:30:dd:02:5d: +# 9f:e0:d5:47:bd:b4:eb:1b:a1:bb:49:49:d8:9f:5b: +# 02:f3:8a:e4:24:90:e4:62:4f:4f:c1:af:8b:0e:74: +# 17:a8:d1:72:88:6a:7a:01:49:cc:b4:46:79:c6:17: +# b1:da:98:1e:07:59:fa:75:21:85:65:dd:90:56:ce: +# fb:ab:a5:60:9d:c4:9d:f9:52:b0:8b:bd:87:f9:8f: +# 2b:23:0a:23:76:3b:f7:33:e1:c9:00:f3:69:f9:4b: +# a2:e0:4e:bc:7e:93:39:84:07:f7:44:70:7e:fe:07: +# 5a:e5:b1:ac:d1:18:cc:f2:35:e5:49:49:08:ca:56: +# c9:3d:fb:0f:18:7d:8b:3b:c1:13:c2:4d:8f:c9:4f: +# 0e:37:e9:1f:a1:0e:6a:df:62:2e:cb:35:06:51:79: +# 2c:c8:25:38:f4:fa:4b:a7:89:5c:9c:d2:e3:0d:39: +# 86:4a:74:7c:d5:59:87:c2:3f:4e:0c:5c:52:f4:3d: +# f7:52:82:f1:ea:a3:ac:fd:49:34:1a:28:f3:41:88: +# 3a:13:ee:e8:de:ff:99:1d:5f:ba:cb:e8:1e:f2:b9: +# 50:60:c0:31:d3:73:e5:ef:be:a0:ed:33:0b:74:be: +# 20:20:c4:67:6c:f0:08:03:7a:55:80:7f:46:4e:96: +# a7:f4:1e:3e:e1:f6:d8:09:e1:33:64:2b:63:d7:32: +# 5e:9f:f9:c0:7b:0f:78:6f:97:bc:93:9a:f9:9c:12: +# 90:78:7a:80:87:15:d7:72:74:9c:55:74:78:b1:ba: +# e1:6e:70:04:ba:4f:a0:ba:68:c3:7b:ff:31:f0:73: +# 3d:3d:94:2a:b1:0b:41:0e:a0:fe:4d:88:65:6b:79: +# 33:b4:d7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# ED:44:19:C0:D3:F0:06:8B:EE:A4:7B:BE:42:E7:26:54:C8:8E:36:76 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 0d:ae:90:32:f6:a6:4b:7c:44:76:19:61:1e:27:28:cd:5e:54: +# ef:25:bc:e3:08:90:f9:29:d7:ae:68:08:e1:94:00:58:ef:2e: +# 2e:7e:53:52:8c:b6:5c:07:ea:88:ba:99:8b:50:94:d7:82:80: +# df:61:09:00:93:ad:0d:14:e6:ce:c1:f2:37:94:78:b0:5f:9c: +# b3:a2:73:b8:8f:05:93:38:cd:8d:3e:b0:b8:fb:c0:cf:b1:f2: +# ec:2d:2d:1b:cc:ec:aa:9a:b3:aa:60:82:1b:2d:3b:c3:84:3d: +# 57:8a:96:1e:9c:75:b8:d3:30:cd:60:08:83:90:d3:8e:54:f1: +# 4d:66:c0:5d:74:03:40:a3:ee:85:7e:c2:1f:77:9c:06:e8:c1: +# a7:18:5d:52:95:ed:c9:dd:25:9e:6d:fa:a9:ed:a3:3a:34:d0: +# 59:7b:da:ed:50:f3:35:bf:ed:eb:14:4d:31:c7:60:f4:da:f1: +# 87:9c:e2:48:e2:c6:c5:37:fb:06:10:fa:75:59:66:31:47:29: +# da:76:9a:1c:e9:82:ae:ef:9a:b9:51:f7:88:23:9a:69:95:62: +# 3c:e5:55:80:36:d7:54:02:ff:f1:b9:5d:ce:d4:23:6f:d8:45: +# 84:4a:5b:65:ef:89:0c:dd:14:a7:20:cb:18:a5:25:b4:0d:f9: +# 01:f0:a2:d2:f4:00:c8:74:8e:a1:2a:48:8e:65:db:13:c4:e2: +# 25:17:7d:eb:be:87:5b:17:20:54:51:93:4a:53:03:0b:ec:5d: +# ca:33:ed:62:fd:45:c7:2f:5b:dc:58:a0:80:39:e6:fa:d7:fe: +# 13:14:a6:ed:3d:94:4a:42:74:d4:c3:77:59:73:cd:8f:46:be: +# 55:38:ef:fa:e8:91:32:ea:97:58:04:22:de:38:c3:cc:bc:6d: +# c9:33:3a:6a:0a:69:3f:a0:c8:ea:72:8f:8c:63:86:23:bd:6d: +# 3c:96:9e:95:e0:49:4c:aa:a2:b9:2a:1b:9c:36:81:78:ed:c3: +# e8:46:e2:26:59:44:75:1e:d9:75:89:51:cd:10:84:9d:61:60: +# cb:5d:f9:97:22:4d:8e:98:e6:e3:7f:f6:5b:bb:ae:cd:ca:4a: +# 81:6b:5e:0b:f3:51:e1:74:2b:e9:7e:27:a7:d9:99:49:4e:f8: +# a5:80:db:25:0f:1c:63:62:8a:c9:33:67:6b:3c:10:83:c6:ad: +# de:a8:cd:16:8e:8d:f0:07:37:71:9f:f2:ab:fc:41:f5:c1:8b: +# ec:00:37:5d:09:e5:4e:80:ef:fa:b1:5c:38:06:a5:1b:4a:e1: +# dc:38:2d:3c:dc:ab:1f:90:1a:d5:4a:9c:ee:d1:70:6c:cc:ee: +# f4:57:f8:18:ba:84:6e:87 + +[p11-kit-object-v1] +label: "IdenTrust Public Sector Root CA 1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtiKU/KRIr+hHawr7J3bk +8j+KO3pKLDEqjI2wqcMxa6h3doQmtqyBQg0I61VYu3r4vGV98qBti6hH6WJ2HhHu +CBTRskQW9OrQ+h4vXtvLc0GuvACwSitAsqzhO0vCLZ3koZvsGjoe8Aiz0OQkNQef +nLTJUm3bB8qPtVvwg/NPxy2lyK3LlSCkMShXWFrkjRuaq54NDPIKMzkiOQqXLvNT +d7lERf2EyzYggVktmm9tSEhhykzfU9GvUrxEn6sva4Ny73WA2gYzG13I2mPGTc2s +ZjHN0d4+hxA24bmkeu9gULLLyqZW4DevqzQTOSXoOWbkmHqqEpicWWaGPq3xsMo+ +Bg978BFLN6BEbXvLqIxx9NW1kTbM8BXGK95RF7GXTFA9sZVZfAV9LSHVAL8BZ6Je +e6Zc8vci8ZANk9uqRFFmzH12A+tqqCo4GZd2DWuKYfm89u52/XAr3Sk8+AoeW0Ic +i1YvVRscoS61xxbm+Ko8ko5ptgHBtYadiQ8LOJRU6Orcnj0lvFMm7dWrOarFQExU +q7K02dn413LbHLxtvWVf74g1KmYv7vazZfAzjXyYQWlGD0McafqbtdBhas3KS9lM +kEarFVmhR1QpLoMoXxzCoqtyFwAGjkXsi+IzPX/aGUTkYnLD3yLG8lbU3V+Vcu1t +X/dIA1v9xSqg9nMjhBAbAecCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "IdenTrust Public Sector Root CA 1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBN +MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVu +VHJ1c3QgUHVibGljIFNlY3RvciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcN +MzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0 +MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBSb290IENBIDEwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTyP4o7 +ekosMSqMjbCpwzFrqHd2hCa2rIFCDQjrVVi7evi8ZX3yoG2LqEfpYnYeEe4IFNGy +RBb06tD6Hi9e28tzQa68ALBKK0CyrOE7S8ItneShm+waOh7wCLPQ5CQ1B5+ctMlS +bdsHyo+1W/CD80/HLaXIrcuVIKQxKFdYWuSNG5qrng0M8gozOSI5Cpcu81N3uURF +/YTLNiCBWS2ab21ISGHKTN9T0a9SvESfqy9rg3LvdYDaBjMbXcjaY8ZNzaxmMc3R +3j6HEDbhuaR672BQssvKplbgN6+rNBM5Jeg5ZuSYeqoSmJxZZoY+rfGwyj4GD3vw +EUs3oERte8uojHH01bWRNszwFcYr3lEXsZdMUD2xlVl8BX0tIdUAvwFnol57plzy +9yLxkA2T26pEUWbMfXYD62qoKjgZl3YNa4ph+bz27nb9cCvdKTz4Ch5bQhyLVi9V +GxyhLrXHFub4qjySjmm2AcG1hp2JDws4lFTo6tyePSW8Uybt1as5qsVATFSrsrTZ +2fjXctscvG29ZV/viDUqZi/u9rNl8DONfJhBaUYPQxxp+pu10GFqzcpL2UyQRqsV +WaFHVCkugyhfHMKiq3IXAAaOReyL4jM9f9oZRORicsPfIsbyVtTdX5Vy7W1f90gD +W/3FKqD2cyOEEBsB5wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ +BAUwAwEB/zAdBgNVHQ4EFgQU43HgntinQtnbcZFrlJPrw6PRFKMwDQYJKoZIhvcN +AQELBQADggIBAEf63QqwEZE4rU1d9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj +t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHV +DRDtfULAj+7AmgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg9 +TaDKQGXSc3z1i9kKlT/YPyNtGtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8G +lwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFtm6/n6J91eEyrRjuazr8FGF1NFTwW +mhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMxNRF4eKLg6TCMf4Df +WN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4Mhn5 ++bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJ +tshquDDIajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhA +GaQdp/lLQzfcaFpPz+vCZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv +8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ3Wl9af0AVqW3rLatt8o+Ae+c +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0a:01:42:80:00:00:01:45:23:cf:46:7c:00:00:00:02 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=IdenTrust, CN=IdenTrust Public Sector Root CA 1 +# Validity +# Not Before: Jan 16 17:53:32 2014 GMT +# Not After : Jan 16 17:53:32 2034 GMT +# Subject: C=US, O=IdenTrust, CN=IdenTrust Public Sector Root CA 1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b6:22:94:fc:a4:48:af:e8:47:6b:0a:fb:27:76: +# e4:f2:3f:8a:3b:7a:4a:2c:31:2a:8c:8d:b0:a9:c3: +# 31:6b:a8:77:76:84:26:b6:ac:81:42:0d:08:eb:55: +# 58:bb:7a:f8:bc:65:7d:f2:a0:6d:8b:a8:47:e9:62: +# 76:1e:11:ee:08:14:d1:b2:44:16:f4:ea:d0:fa:1e: +# 2f:5e:db:cb:73:41:ae:bc:00:b0:4a:2b:40:b2:ac: +# e1:3b:4b:c2:2d:9d:e4:a1:9b:ec:1a:3a:1e:f0:08: +# b3:d0:e4:24:35:07:9f:9c:b4:c9:52:6d:db:07:ca: +# 8f:b5:5b:f0:83:f3:4f:c7:2d:a5:c8:ad:cb:95:20: +# a4:31:28:57:58:5a:e4:8d:1b:9a:ab:9e:0d:0c:f2: +# 0a:33:39:22:39:0a:97:2e:f3:53:77:b9:44:45:fd: +# 84:cb:36:20:81:59:2d:9a:6f:6d:48:48:61:ca:4c: +# df:53:d1:af:52:bc:44:9f:ab:2f:6b:83:72:ef:75: +# 80:da:06:33:1b:5d:c8:da:63:c6:4d:cd:ac:66:31: +# cd:d1:de:3e:87:10:36:e1:b9:a4:7a:ef:60:50:b2: +# cb:ca:a6:56:e0:37:af:ab:34:13:39:25:e8:39:66: +# e4:98:7a:aa:12:98:9c:59:66:86:3e:ad:f1:b0:ca: +# 3e:06:0f:7b:f0:11:4b:37:a0:44:6d:7b:cb:a8:8c: +# 71:f4:d5:b5:91:36:cc:f0:15:c6:2b:de:51:17:b1: +# 97:4c:50:3d:b1:95:59:7c:05:7d:2d:21:d5:00:bf: +# 01:67:a2:5e:7b:a6:5c:f2:f7:22:f1:90:0d:93:db: +# aa:44:51:66:cc:7d:76:03:eb:6a:a8:2a:38:19:97: +# 76:0d:6b:8a:61:f9:bc:f6:ee:76:fd:70:2b:dd:29: +# 3c:f8:0a:1e:5b:42:1c:8b:56:2f:55:1b:1c:a1:2e: +# b5:c7:16:e6:f8:aa:3c:92:8e:69:b6:01:c1:b5:86: +# 9d:89:0f:0b:38:94:54:e8:ea:dc:9e:3d:25:bc:53: +# 26:ed:d5:ab:39:aa:c5:40:4c:54:ab:b2:b4:d9:d9: +# f8:d7:72:db:1c:bc:6d:bd:65:5f:ef:88:35:2a:66: +# 2f:ee:f6:b3:65:f0:33:8d:7c:98:41:69:46:0f:43: +# 1c:69:fa:9b:b5:d0:61:6a:cd:ca:4b:d9:4c:90:46: +# ab:15:59:a1:47:54:29:2e:83:28:5f:1c:c2:a2:ab: +# 72:17:00:06:8e:45:ec:8b:e2:33:3d:7f:da:19:44: +# e4:62:72:c3:df:22:c6:f2:56:d4:dd:5f:95:72:ed: +# 6d:5f:f7:48:03:5b:fd:c5:2a:a0:f6:73:23:84:10: +# 1b:01:e7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# E3:71:E0:9E:D8:A7:42:D9:DB:71:91:6B:94:93:EB:C3:A3:D1:14:A3 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 47:fa:dd:0a:b0:11:91:38:ad:4d:5d:f7:e5:0e:97:54:19:82: +# 48:87:54:8c:aa:64:99:d8:5a:fe:88:01:c5:58:a5:99:b1:23: +# 54:23:b7:6a:1d:20:57:e5:01:62:41:17:d3:09:db:75:cb:6e: +# 54:90:75:fe:1a:9f:81:0a:c2:dd:d7:f7:09:d0:5b:72:15:e4: +# 1e:09:6a:3d:33:f3:21:9a:e6:15:7e:ad:51:d5:0d:10:ed:7d: +# 42:c0:8f:ee:c0:9a:08:d5:41:d6:5c:0e:21:69:6e:80:61:0e: +# 15:c0:b8:cf:c5:49:12:52:cc:be:3a:cc:d4:2e:38:05:de:35: +# fd:1f:6f:b8:80:68:98:3d:4d:a0:ca:40:65:d2:73:7c:f5:8b: +# d9:0a:95:3f:d8:3f:23:6d:1a:d1:2a:24:19:d9:85:b3:17:ef: +# 78:6e:a9:58:d1:23:d3:c7:13:ed:72:25:7f:5d:b1:73:70:d0: +# 7f:06:97:09:84:29:80:61:1d:fa:5e:ff:73:ac:a0:e3:89:b8: +# 1c:71:15:c6:de:31:7f:12:dc:e1:6d:9b:af:e7:e8:9f:75:78: +# 4c:ab:46:3b:9a:ce:bf:05:18:5d:4d:15:3c:16:9a:19:50:04: +# 9a:b2:9a:6f:65:8b:52:5f:3c:58:04:28:25:c0:66:61:31:7e: +# b9:e0:75:b9:1a:a8:81:d6:72:17:b3:c5:03:31:35:11:78:78: +# a2:e0:e9:30:8c:7f:80:df:58:df:3c:ba:27:96:e2:80:34:6d: +# e3:98:d3:64:27:ac:48:7e:28:77:5c:c6:25:61:25:f8:85:0c: +# 65:fa:c4:32:2f:a5:98:05:e4:f8:0b:67:16:16:c6:82:b8:32: +# 19:f9:f9:b9:79:dc:1f:cd:eb:af:ab:0e:dd:1b:db:45:e4:7a: +# e7:02:e2:95:5d:fc:69:f0:53:69:61:95:75:79:0b:5e:55:e6: +# 38:1c:94:a9:59:33:9e:c8:71:74:79:7f:51:89:b6:c8:6a:b8: +# 30:c8:6a:38:c3:6e:9e:e1:37:16:ea:05:62:4c:5b:12:47:ed: +# a7:b4:b3:58:56:c7:49:f3:7f:12:68:09:31:71:f0:6d:f8:4e: +# 47:fb:d6:85:ee:c5:58:40:19:a4:1d:a7:f9:4b:43:37:dc:68: +# 5a:4f:cf:eb:c2:64:74:de:b4:15:d9:f4:54:54:1a:2f:1c:d7: +# 97:71:54:90:8e:d9:20:9d:53:2b:7f:ab:8f:e2:ea:30:bc:50: +# 37:ef:f1:47:b5:7d:7c:2c:04:ec:68:9d:b4:49:44:10:f4:72: +# 4b:1c:64:e7:fc:e6:6b:90:dd:69:7d:69:fd:00:56:a5:b7:ac: +# b6:ad:b7:ca:3e:01:ef:9c + +[p11-kit-object-v1] +label: "ISRG Root X1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAregkc/QUN/ObnitXKByH +vty33ziQjG485legePd1wqL+9Wpu9gBPKNveaIZsRJO2sWP9FBJrvx/S6jGbIX7R +Mzy6SPXded+zuP8S8SGaS8GKhnFpSmZmbI9+PHC/rSkiBvPkwOaAruJLj7eZfpQD +n9NHl3yZSCNT6DiuTwpvgy7RSVeMgHS22i/QOI17A3AhG3XyMDz6j67d2mOr6xZP +wo4RS37PC+j/tXcu9LJ7SuBMEiUMcI0DKaDhUyTsE9nuGb8Qs0qMP4mjYVHerIcH +lPRjcewu4m9bmIHhiVw0eWx27zuQYnnm26SaLybF0BDhDt7ZEI4W+7f3qPfH5QIH +mI82CJXn4jeWDTZ1nvsOcrEdm7wD+UkF2IHdBbQq1kHprAF2lQoP2N/VvRIfNS8o +F2zSmMGoCWR3bkc3us6sWV5onX9y1onFBkEpPlk+3Sb1JMkRp1qjTEAfRqGZtac6 +UW6GO559cqcSBXhZ7T5ReBULA4+N0C8Fsj57ShxLcwUS/Mbq4FATfEOTdLPKdOeO +HwEI0DDUW3E2tAe6wTAwXEi3gjuYpn1giqKjKYLMur2DBBuigwNBodYF8RvCtvCo +fIY7RqhIKojcdpp2vx9qpT0Zj+s482TeyCsNCij/99viFULUItAnXeF5/hjncIit +TubZizrG3SdRbv+8ZPUzQ08CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "ISRG Root X1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw +TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh +cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4 +WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu +ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY +MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc +h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+ +0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U +A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW +T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH +B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC +B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv +KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn +OlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn +jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw +qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI +rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV +HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq +hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL +ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ +3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK +NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5 +ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur +TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC +jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc +oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq +4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA +mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d +emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 82:10:cf:b0:d2:40:e3:59:44:63:e0:bb:63:82:8b:00 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=Internet Security Research Group, CN=ISRG Root X1 +# Validity +# Not Before: Jun 4 11:04:38 2015 GMT +# Not After : Jun 4 11:04:38 2035 GMT +# Subject: C=US, O=Internet Security Research Group, CN=ISRG Root X1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ad:e8:24:73:f4:14:37:f3:9b:9e:2b:57:28:1c: +# 87:be:dc:b7:df:38:90:8c:6e:3c:e6:57:a0:78:f7: +# 75:c2:a2:fe:f5:6a:6e:f6:00:4f:28:db:de:68:86: +# 6c:44:93:b6:b1:63:fd:14:12:6b:bf:1f:d2:ea:31: +# 9b:21:7e:d1:33:3c:ba:48:f5:dd:79:df:b3:b8:ff: +# 12:f1:21:9a:4b:c1:8a:86:71:69:4a:66:66:6c:8f: +# 7e:3c:70:bf:ad:29:22:06:f3:e4:c0:e6:80:ae:e2: +# 4b:8f:b7:99:7e:94:03:9f:d3:47:97:7c:99:48:23: +# 53:e8:38:ae:4f:0a:6f:83:2e:d1:49:57:8c:80:74: +# b6:da:2f:d0:38:8d:7b:03:70:21:1b:75:f2:30:3c: +# fa:8f:ae:dd:da:63:ab:eb:16:4f:c2:8e:11:4b:7e: +# cf:0b:e8:ff:b5:77:2e:f4:b2:7b:4a:e0:4c:12:25: +# 0c:70:8d:03:29:a0:e1:53:24:ec:13:d9:ee:19:bf: +# 10:b3:4a:8c:3f:89:a3:61:51:de:ac:87:07:94:f4: +# 63:71:ec:2e:e2:6f:5b:98:81:e1:89:5c:34:79:6c: +# 76:ef:3b:90:62:79:e6:db:a4:9a:2f:26:c5:d0:10: +# e1:0e:de:d9:10:8e:16:fb:b7:f7:a8:f7:c7:e5:02: +# 07:98:8f:36:08:95:e7:e2:37:96:0d:36:75:9e:fb: +# 0e:72:b1:1d:9b:bc:03:f9:49:05:d8:81:dd:05:b4: +# 2a:d6:41:e9:ac:01:76:95:0a:0f:d8:df:d5:bd:12: +# 1f:35:2f:28:17:6c:d2:98:c1:a8:09:64:77:6e:47: +# 37:ba:ce:ac:59:5e:68:9d:7f:72:d6:89:c5:06:41: +# 29:3e:59:3e:dd:26:f5:24:c9:11:a7:5a:a3:4c:40: +# 1f:46:a1:99:b5:a7:3a:51:6e:86:3b:9e:7d:72:a7: +# 12:05:78:59:ed:3e:51:78:15:0b:03:8f:8d:d0:2f: +# 05:b2:3e:7b:4a:1c:4b:73:05:12:fc:c6:ea:e0:50: +# 13:7c:43:93:74:b3:ca:74:e7:8e:1f:01:08:d0:30: +# d4:5b:71:36:b4:07:ba:c1:30:30:5c:48:b7:82:3b: +# 98:a6:7d:60:8a:a2:a3:29:82:cc:ba:bd:83:04:1b: +# a2:83:03:41:a1:d6:05:f1:1b:c2:b6:f0:a8:7c:86: +# 3b:46:a8:48:2a:88:dc:76:9a:76:bf:1f:6a:a5:3d: +# 19:8f:eb:38:f3:64:de:c8:2b:0d:0a:28:ff:f7:db: +# e2:15:42:d4:22:d0:27:5d:e1:79:fe:18:e7:70:88: +# ad:4e:e6:d9:8b:3a:c6:dd:27:51:6e:ff:bc:64:f5: +# 33:43:4f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 79:B4:59:E6:7B:B6:E5:E4:01:73:80:08:88:C8:1A:58:F6:E9:9B:6E +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 55:1f:58:a9:bc:b2:a8:50:d0:0c:b1:d8:1a:69:20:27:29:08: +# ac:61:75:5c:8a:6e:f8:82:e5:69:2f:d5:f6:56:4b:b9:b8:73: +# 10:59:d3:21:97:7e:e7:4c:71:fb:b2:d2:60:ad:39:a8:0b:ea: +# 17:21:56:85:f1:50:0e:59:eb:ce:e0:59:e9:ba:c9:15:ef:86: +# 9d:8f:84:80:f6:e4:e9:91:90:dc:17:9b:62:1b:45:f0:66:95: +# d2:7c:6f:c2:ea:3b:ef:1f:cf:cb:d6:ae:27:f1:a9:b0:c8:ae: +# fd:7d:7e:9a:fa:22:04:eb:ff:d9:7f:ea:91:2b:22:b1:17:0e: +# 8f:f2:8a:34:5b:58:d8:fc:01:c9:54:b9:b8:26:cc:8a:88:33: +# 89:4c:2d:84:3c:82:df:ee:96:57:05:ba:2c:bb:f7:c4:b7:c7: +# 4e:3b:82:be:31:c8:22:73:73:92:d1:c2:80:a4:39:39:10:33: +# 23:82:4c:3c:9f:86:b2:55:98:1d:be:29:86:8c:22:9b:9e:e2: +# 6b:3b:57:3a:82:70:4d:dc:09:c7:89:cb:0a:07:4d:6c:e8:5d: +# 8e:c9:ef:ce:ab:c7:bb:b5:2b:4e:45:d6:4a:d0:26:cc:e5:72: +# ca:08:6a:a5:95:e3:15:a1:f7:a4:ed:c9:2c:5f:a5:fb:ff:ac: +# 28:02:2e:be:d7:7b:bb:e3:71:7b:90:16:d3:07:5e:46:53:7c: +# 37:07:42:8c:d3:c4:96:9c:d5:99:b5:2a:e0:95:1a:80:48:ae: +# 4c:39:07:ce:cc:47:a4:52:95:2b:ba:b8:fb:ad:d2:33:53:7d: +# e5:1d:4d:6d:d5:a1:b1:c7:42:6f:e6:40:27:35:5c:a3:28:b7: +# 07:8d:e7:8d:33:90:e7:23:9f:fb:50:9c:79:6c:46:d5:b4:15: +# b3:96:6e:7e:9b:0c:96:3a:b8:52:2d:3f:d6:5b:e1:fb:08:c2: +# 84:fe:24:a8:a3:89:da:ac:6a:e1:18:2a:b1:a8:43:61:5b:d3: +# 1f:dc:3b:8d:76:f2:2d:e8:8d:75:df:17:33:6c:3d:53:fb:7b: +# cb:41:5f:ff:dc:a2:d0:61:38:e1:96:b8:ac:5d:8b:37:d7:75: +# d5:33:c0:99:11:ae:9d:41:c1:72:75:84:be:02:41:42:5f:67: +# 24:48:94:d1:9b:27:be:07:3f:b9:b8:4f:81:74:51:e1:7a:b7: +# ed:9d:23:e2:be:e0:d5:28:04:13:3c:31:03:9e:dd:7a:6c:8f: +# c6:07:18:c6:7f:de:47:8e:3f:28:9e:04:06:cf:a5:54:34:77: +# bd:ec:89:9b:e9:17:43:df:5b:db:5f:fe:8e:1e:57:a2:cd:40: +# 9d:7e:62:22:da:de:18:27 + +[p11-kit-object-v1] +label: "ISRG Root X2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEzZvVn4CDCuwJSvMWSj5cz3es3mcFDR0H +ttwW+1qLFNvicWDEukWVEYmO6gbf9yoWHKS5xcUy4APgHoIYOIvXRdgKam7mAHf7 +AlF9ItgKbppbd9/w+kHsOdx1ymgHDB/q +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "ISRG Root X2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICGzCCAaGgAwIBAgIQQdKd0XLq7qeAwSxs6S+HUjAKBggqhkjOPQQDAzBPMQsw +CQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2gg +R3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBYMjAeFw0yMDA5MDQwMDAwMDBaFw00 +MDA5MTcxNjAwMDBaME8xCzAJBgNVBAYTAlVTMSkwJwYDVQQKEyBJbnRlcm5ldCBT +ZWN1cml0eSBSZXNlYXJjaCBHcm91cDEVMBMGA1UEAxMMSVNSRyBSb290IFgyMHYw +EAYHKoZIzj0CAQYFK4EEACIDYgAEzZvVn4CDCuwJSvMWSj5cz3es3mcFDR0HttwW ++1qLFNvicWDEukWVEYmO6gbf9yoWHKS5xcUy4APgHoIYOIvXRdgKam7mAHf7AlF9 +ItgKbppbd9/w+kHsOdx1ymgHDB/qo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0T +AQH/BAUwAwEB/zAdBgNVHQ4EFgQUfEKWrt5LSDv6kviejM9ti6lyN5UwCgYIKoZI +zj0EAwMDaAAwZQIwe3lORlCEwkSHRhtFcP9Ymd70/aTSVaYgLXTWNLxBo1BfASdW +tL4ndQavEi51mI38AjEAi/V3bNTIZargCyzuFJ0nN6T5U6VR5CmD1/iQMVtCnwr1 +/q4AaOeMSQ+2b1tbFfLn +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 41:d2:9d:d1:72:ea:ee:a7:80:c1:2c:6c:e9:2f:87:52 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Internet Security Research Group, CN=ISRG Root X2 +# Validity +# Not Before: Sep 4 00:00:00 2020 GMT +# Not After : Sep 17 16:00:00 2040 GMT +# Subject: C=US, O=Internet Security Research Group, CN=ISRG Root X2 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:cd:9b:d5:9f:80:83:0a:ec:09:4a:f3:16:4a:3e: +# 5c:cf:77:ac:de:67:05:0d:1d:07:b6:dc:16:fb:5a: +# 8b:14:db:e2:71:60:c4:ba:45:95:11:89:8e:ea:06: +# df:f7:2a:16:1c:a4:b9:c5:c5:32:e0:03:e0:1e:82: +# 18:38:8b:d7:45:d8:0a:6a:6e:e6:00:77:fb:02:51: +# 7d:22:d8:0a:6e:9a:5b:77:df:f0:fa:41:ec:39:dc: +# 75:ca:68:07:0c:1f:ea +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 7C:42:96:AE:DE:4B:48:3B:FA:92:F8:9E:8C:CF:6D:8B:A9:72:37:95 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:7b:79:4e:46:50:84:c2:44:87:46:1b:45:70:ff: +# 58:99:de:f4:fd:a4:d2:55:a6:20:2d:74:d6:34:bc:41:a3:50: +# 5f:01:27:56:b4:be:27:75:06:af:12:2e:75:98:8d:fc:02:31: +# 00:8b:f5:77:6c:d4:c8:65:aa:e0:0b:2c:ee:14:9d:27:37:a4: +# f9:53:a5:51:e4:29:83:d7:f8:90:31:5b:42:9f:0a:f5:fe:ae: +# 00:68:e7:8c:49:0f:b6:6f:5b:5b:15:f2:e7 + +[p11-kit-object-v1] +label: "Izenpe.com" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAydN6yg8erKeG6BZlarHC +G0UycZXZ/hBbzK/npXkBj4nDyvJVcfd3vneU83KkLETYnpKbFDqh5ySQCgpWjsXY +JpTh2UjhLT7aCnLdo5kV2oGih/R7biZ3iVit1usMskF6c25t23p4QekIiBJ+hy5m +EWNsVPs8nXLAvC7/wrfdDXbjOtf3tGi+ovXjgW7BRm9djeBNxlRViRozMQqxV7mj +ipjD7Ds0xZVBaX51wjwgxWG6UUegIJCToZBL8058hUVUmtEFJkGwtU0dM77EA8gl +fMFw2zv0CS1UJ0isL+HErD7Iy5JMUzk3I+zTAfngCURNTWTA4Q1ahyK8rRuj/ia1 +FfOn/IQZ6eyhiLREaYSD84nRdAapzAvWwt4nhVAmyhe4yXqHViwaAR5svhOtEKy1 +JPU4kaHWS9rxu9LeR7XxvIH2WWvPGVPpjRXLSsupb0TlG0HP4YanytBqn7xMjQYz +WqKF5ZA1oGJcFk7w46L6Axq0LHGzWCzeewvbGg/r3iEfBncGA7DJ75n8wLlPC4Yo +/tK56uPapcNHaRLg2/D2GYvte3DXAtbthxgoLAQkTHfkSIoaxjua1A/K+nXSAUBa +jXm/i89Lz6oWwZXkrUyKPheR1LFi5YLlgASkA36Nv9p/og+XTwzTDfvX0eVyfhzI +d/9bmg+3rgVG5fGoFuxHpBcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Izenpe.com" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4 +MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6 +ZW5wZS5jb20wHhcNMDcxMjEzMTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYD +VQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5j +b20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ03rKDx6sp4boFmVq +scIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAKClaO +xdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6H +LmYRY2xU+zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFX +uaOKmMPsOzTFlUFpfnXCPCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQD +yCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxTOTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+ +JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbKF7jJeodWLBoBHmy+E60Q +rLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK0GqfvEyN +BjNaooXlkDWgYlwWTvDjovoDGrQscbNYLN57C9saD+veIR8GdwYDsMnvmfzAuU8L +hij+0rnq49qlw0dpEuDb8PYZi+17cNcC1u2HGCgsBCRMd+RIihrGO5rUD8r6ddIB +QFqNeb+Lz0vPqhbBleStTIo+F5HUsWLlguWABKQDfo2/2n+iD5dPDNMN+9fR5XJ+ +HMh3/1uaD7euBUbl8agW7EekFwIDAQABo4H2MIHzMIGwBgNVHREEgagwgaWBD2lu +Zm9AaXplbnBlLmNvbaSBkTCBjjFHMEUGA1UECgw+SVpFTlBFIFMuQS4gLSBDSUYg +QTAxMzM3MjYwLVJNZXJjLlZpdG9yaWEtR2FzdGVpeiBUMTA1NSBGNjIgUzgxQzBB +BgNVBAkMOkF2ZGEgZGVsIE1lZGl0ZXJyYW5lbyBFdG9yYmlkZWEgMTQgLSAwMTAx +MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwHQYDVR0OBBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUA +A4ICAQB4pgwWSp9MiDrAyw6lFn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWb +laQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbgakEyrkgPH7UIBzg/YsfqikuFgba56 +awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8qhT/AQKM6WfxZSzwo +JNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Csg1lw +LDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCT +VyvehQP5aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGk +LhObNA5me0mrZJfQRsN5nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJb +UjWumDqtujWTI6cfSN01RpiyEGjkpTHCClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/ +QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZoQ0iy2+tzJOeRf1SktoA+ +naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1ZWrOZyGls +QyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# b0:b7:5a:16:48:5f:bf:e1:cb:f5:8b:d7:19:e6:7d +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=ES, O=IZENPE S.A., CN=Izenpe.com +# Validity +# Not Before: Dec 13 13:08:28 2007 GMT +# Not After : Dec 13 08:27:25 2037 GMT +# Subject: C=ES, O=IZENPE S.A., CN=Izenpe.com +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c9:d3:7a:ca:0f:1e:ac:a7:86:e8:16:65:6a:b1: +# c2:1b:45:32:71:95:d9:fe:10:5b:cc:af:e7:a5:79: +# 01:8f:89:c3:ca:f2:55:71:f7:77:be:77:94:f3:72: +# a4:2c:44:d8:9e:92:9b:14:3a:a1:e7:24:90:0a:0a: +# 56:8e:c5:d8:26:94:e1:d9:48:e1:2d:3e:da:0a:72: +# dd:a3:99:15:da:81:a2:87:f4:7b:6e:26:77:89:58: +# ad:d6:eb:0c:b2:41:7a:73:6e:6d:db:7a:78:41:e9: +# 08:88:12:7e:87:2e:66:11:63:6c:54:fb:3c:9d:72: +# c0:bc:2e:ff:c2:b7:dd:0d:76:e3:3a:d7:f7:b4:68: +# be:a2:f5:e3:81:6e:c1:46:6f:5d:8d:e0:4d:c6:54: +# 55:89:1a:33:31:0a:b1:57:b9:a3:8a:98:c3:ec:3b: +# 34:c5:95:41:69:7e:75:c2:3c:20:c5:61:ba:51:47: +# a0:20:90:93:a1:90:4b:f3:4e:7c:85:45:54:9a:d1: +# 05:26:41:b0:b5:4d:1d:33:be:c4:03:c8:25:7c:c1: +# 70:db:3b:f4:09:2d:54:27:48:ac:2f:e1:c4:ac:3e: +# c8:cb:92:4c:53:39:37:23:ec:d3:01:f9:e0:09:44: +# 4d:4d:64:c0:e1:0d:5a:87:22:bc:ad:1b:a3:fe:26: +# b5:15:f3:a7:fc:84:19:e9:ec:a1:88:b4:44:69:84: +# 83:f3:89:d1:74:06:a9:cc:0b:d6:c2:de:27:85:50: +# 26:ca:17:b8:c9:7a:87:56:2c:1a:01:1e:6c:be:13: +# ad:10:ac:b5:24:f5:38:91:a1:d6:4b:da:f1:bb:d2: +# de:47:b5:f1:bc:81:f6:59:6b:cf:19:53:e9:8d:15: +# cb:4a:cb:a9:6f:44:e5:1b:41:cf:e1:86:a7:ca:d0: +# 6a:9f:bc:4c:8d:06:33:5a:a2:85:e5:90:35:a0:62: +# 5c:16:4e:f0:e3:a2:fa:03:1a:b4:2c:71:b3:58:2c: +# de:7b:0b:db:1a:0f:eb:de:21:1f:06:77:06:03:b0: +# c9:ef:99:fc:c0:b9:4f:0b:86:28:fe:d2:b9:ea:e3: +# da:a5:c3:47:69:12:e0:db:f0:f6:19:8b:ed:7b:70: +# d7:02:d6:ed:87:18:28:2c:04:24:4c:77:e4:48:8a: +# 1a:c6:3b:9a:d4:0f:ca:fa:75:d2:01:40:5a:8d:79: +# bf:8b:cf:4b:cf:aa:16:c1:95:e4:ad:4c:8a:3e:17: +# 91:d4:b1:62:e5:82:e5:80:04:a4:03:7e:8d:bf:da: +# 7f:a2:0f:97:4f:0c:d3:0d:fb:d7:d1:e5:72:7e:1c: +# c8:77:ff:5b:9a:0f:b7:ae:05:46:e5:f1:a8:16:ec: +# 47:a4:17 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Alternative Name: +# email:info@izenpe.com, DirName:/O=IZENPE S.A. - CIF A01337260-RMerc.Vitoria-Gasteiz T1055 F62 S8/street=Avda del Mediterraneo Etorbidea 14 - 01010 Vitoria-Gasteiz +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 1D:1C:65:0E:A8:F2:25:7B:B4:91:CF:E4:B1:B1:E6:BD:55:74:6C:05 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 78:a6:0c:16:4a:9f:4c:88:3a:c0:cb:0e:a5:16:7d:9f:b9:48: +# 5f:18:8f:0d:62:36:f6:cd:19:6b:ac:ab:d5:f6:91:7d:ae:71: +# f3:3f:b3:0e:78:85:9b:95:a4:27:21:47:42:4a:7c:48:3a:f5: +# 45:7c:b3:0c:8e:51:78:ac:95:13:de:c6:fd:7d:b8:1a:90:4c: +# ab:92:03:c7:ed:42:01:ce:0f:d8:b1:fa:a2:92:e1:60:6d:ae: +# 7a:6b:09:aa:c6:29:ee:68:49:67:30:80:24:7a:31:16:39:5b: +# 7e:f1:1c:2e:dd:6c:09:ad:f2:31:c1:82:4e:b9:bb:f9:be:bf: +# 2a:85:3f:c0:40:a3:3a:59:fc:59:4b:3c:28:24:db:b4:15:75: +# ae:0d:88:ba:2e:73:c0:bd:58:87:e5:42:f2:eb:5e:ee:1e:30: +# 22:99:cb:37:d1:c4:21:6c:81:ec:be:6d:26:e6:1c:e4:42:20: +# 9e:47:b0:ac:83:59:70:2c:35:d6:af:36:34:b4:cd:3b:f8:32: +# a8:ef:e3:78:89:fb:8d:45:2c:da:9c:b8:7e:40:1c:61:e7:3e: +# a2:92:2c:4b:f2:cd:fa:98:b6:29:ff:f3:f2:7b:a9:1f:2e:a0: +# 93:57:2b:de:85:03:f9:69:37:cb:9e:78:6a:05:b4:c5:31:78: +# 89:ec:7a:a7:85:e1:b9:7b:3c:de:be:1e:79:84:ce:9f:70:0e: +# 59:c2:35:2e:90:2a:31:d9:e4:45:7a:41:a4:2e:13:9b:34:0e: +# 66:7b:49:ab:64:97:d0:46:c3:79:9d:72:50:63:a6:98:5b:06: +# bd:48:6d:d8:39:83:70:e8:35:f0:05:d1:aa:bc:e3:db:c8:02: +# ea:7c:fd:82:da:c2:5b:52:35:ae:98:3a:ad:ba:35:93:23:a7: +# 1f:48:dd:35:46:98:b2:10:68:e4:a5:31:c2:0a:58:2e:19:81: +# 10:c9:50:75:fc:ea:5a:16:ce:11:d7:ee:ef:50:88:2d:61:ff: +# 3f:42:73:05:94:43:d5:8e:3c:4e:01:3a:19:a5:1f:46:4e:77: +# d0:5d:e5:81:22:21:87:fe:94:7d:84:d8:93:ad:d6:68:43:48: +# b2:db:eb:73:24:e7:91:7f:54:a4:b6:80:3e:9d:a3:3c:4c:72: +# c2:57:c4:a0:d4:cc:38:27:ce:d5:06:9e:a2:48:d9:e9:9f:ce: +# 82:70:36:93:9a:3b:df:96:21:e3:59:b7:0c:da:91:37:f0:fd: +# 59:5a:b3:99:c8:69:6c:43:26:01:35:63:60:55:89:03:3a:75: +# d8:ba:4a:d9:54:ff:ee:de:80:d8:2d:d1:38:d5:5e:2d:0b:98: +# 7d:3e:6c:db:fc:26:88:c7 + +[p11-kit-object-v1] +label: "LAWtrust Root CA2 (4096)" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzBfLK0O6bPnJk4plDRJM +7CcUtxN54NTVLRhW8fnqKhAWTmxEx2plRvOaiTXRh/gziS+ICRqSEJGQwWufDm5/ +JooTXRisaAENEHhlcNiOj4RalzAY0BEOSo1SEKWBK1Eo9WPEtuxAswHlrXe95Tjv +vI2z3Rmgew2NtNtq+yUzWvqRr8RxRTD4iCl7y7/VuicEjt2yAPfKXJk1FOr9dQYV +CLvKV2j7P/u0NHNj0dXjyDhaaX1qekQMDYpO7ZIdEI87Iiy23+3FxvCJeVRlXl8b +vY9937m37evkxQfRZzyVO5H+QnpSQIAE0jlXS/SSff+b7+WdyQmykRI4pikIO67r +ysztTedOIQEH/G8yzmmMhFLGd+onMArepa8wK2gfrNTsIa0iSXbOD8LyByr5ahKD +mjsErhl6/qGGJPpBXiV8QKwntuMpNm814lfQGVjf/2T2wwFJdtsrvry5TxQK1RtY +IfYcLgB8+JS1yzcaFOQyuRbUYOwFql8y+mojEqzUELvSooK0Sw6LcCeq1gfBZ4j6 +hMMIyYqEyNI3coEPjRZK5Nc1UaU4D4yES5U2wPXXneBdj6uR7gAIuZ1SH+z4mbt5 +VrFJ2tLl2GGLW6/wqzfFexqOhr5+xXsVHmFo6AuHi3NJoRdzfil4jsrgQS91c3Si +lzp/9y50CbhMYItGNhkQLZ0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "LAWtrust Root CA2 (4096)" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFmDCCA4CgAwIBAgIEVRpusTANBgkqhkiG9w0BAQsFADBDMQswCQYDVQQGEwJa +QTERMA8GA1UEChMITEFXdHJ1c3QxITAfBgNVBAMTGExBV3RydXN0IFJvb3QgQ0Ey +ICg0MDk2KTAgFw0yMzAyMTQwOTE5MzhaGA8yMDUzMDIxNDA5NDkzOFowQzELMAkG +A1UEBhMCWkExETAPBgNVBAoTCExBV3RydXN0MSEwHwYDVQQDExhMQVd0cnVzdCBS +b290IENBMiAoNDA5NikwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDM +F8srQ7ps+cmTimUNEkzsJxS3E3ng1NUtGFbx+eoqEBZObETHamVG85qJNdGH+DOJ +L4gJGpIQkZDBa58Obn8mihNdGKxoAQ0QeGVw2I6PhFqXMBjQEQ5KjVIQpYErUSj1 +Y8S27ECzAeWtd73lOO+8jbPdGaB7DY2022r7JTNa+pGvxHFFMPiIKXvLv9W6JwSO +3bIA98pcmTUU6v11BhUIu8pXaPs/+7Q0c2PR1ePIOFppfWp6RAwNik7tkh0Qjzsi +LLbf7cXG8Il5VGVeXxu9j33fubft6+TFB9FnPJU7kf5CelJAgATSOVdL9JJ9/5vv +5Z3JCbKREjimKQg7ruvKzO1N504hAQf8bzLOaYyEUsZ36icwCt6lrzAraB+s1Owh +rSJJds4PwvIHKvlqEoOaOwSuGXr+oYYk+kFeJXxArCe24yk2bzXiV9AZWN//ZPbD +AUl22yu+vLlPFArVG1gh9hwuAHz4lLXLNxoU5DK5FtRg7AWqXzL6aiMSrNQQu9Ki +grRLDotwJ6rWB8FniPqEwwjJioTI0jdygQ+NFkrk1zVRpTgPjIRLlTbA9ded4F2P +q5HuAAi5nVIf7PiZu3lWsUna0uXYYYtbr/CrN8V7Go6Gvn7FexUeYWjoC4eLc0mh +F3N+KXiOyuBBL3VzdKKXOn/3LnQJuExgi0Y2GRAtnQIDAQABo4GRMIGOMA8GA1Ud +EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMCsGA1UdEAQkMCKADzIwMjMwMjE0 +MDkxOTM4WoEPMjA1MzAyMTQwOTQ5MzhaMB8GA1UdIwQYMBaAFNfWVmJcPxeB5nNE +KfVRBe8LYDesMB0GA1UdDgQWBBTX1lZiXD8XgeZzRCn1UQXvC2A3rDANBgkqhkiG +9w0BAQsFAAOCAgEASZwp/j3snkV/qz48/iNvNz53p1P/eJ/8SUSAV2acbtp5/81F +rUyTv7VZxukQt+X4jPuHxR6L2LM/ApYKu4qO79e0wIMgOJdZRWT89ncT8gnXocg4 +dAjq+UhM+h8EnLT/7G5WNnKTbJU+LF/eDwurycwVPhaPZvyyELih0bTewGMZzO9T +qnU2IoslH7+byNfBX+ymNwmqe2K89iIt8dZY3Yy7UvQLp3apensajdytmoFiLoYF +kHJHL6HJZ4SwDWywuJsWt9CZFC+cEpsjqI2mQx7p5S3leKcfZJRktneyqFz7Casp +6x5tddH20MWlwx2fHvMaLbLIH+UoCm7zX/3a5iOhdpBcS5gBgizuRy0CGl9/NMVp +tXKtPvPPnm34KegRJyvgWQsbYetKymmlpNXNURuUjnnN3/audF2xLBuGU/7RMAZB +NAdigkz0fseHdA6wIR4JIIDBsxU9Rm3T8QaSP++glYocbncxtut4KQx77oKlT36k +KV6eqi34jsDz/A0GhZtO3PfiCXzQFFEeerMjr/rRYSpltQHZuOMHyiR20vBKvu+G +BIBCFXARaH7Xx7v+506bnJWlHEqkydAJjKrOSNIekpfXEentZsw33PXXG3SbpupC +rF0y4Fj0gUf/0hLifhzcSXaWwx2fS8pcKjdbPYrROJsh2uO/RUPT4Fh3Hyg= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1427795633 (0x551a6eb1) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=ZA, O=LAWtrust, CN=LAWtrust Root CA2 (4096) +# Validity +# Not Before: Feb 14 09:19:38 2023 GMT +# Not After : Feb 14 09:49:38 2053 GMT +# Subject: C=ZA, O=LAWtrust, CN=LAWtrust Root CA2 (4096) +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:cc:17:cb:2b:43:ba:6c:f9:c9:93:8a:65:0d:12: +# 4c:ec:27:14:b7:13:79:e0:d4:d5:2d:18:56:f1:f9: +# ea:2a:10:16:4e:6c:44:c7:6a:65:46:f3:9a:89:35: +# d1:87:f8:33:89:2f:88:09:1a:92:10:91:90:c1:6b: +# 9f:0e:6e:7f:26:8a:13:5d:18:ac:68:01:0d:10:78: +# 65:70:d8:8e:8f:84:5a:97:30:18:d0:11:0e:4a:8d: +# 52:10:a5:81:2b:51:28:f5:63:c4:b6:ec:40:b3:01: +# e5:ad:77:bd:e5:38:ef:bc:8d:b3:dd:19:a0:7b:0d: +# 8d:b4:db:6a:fb:25:33:5a:fa:91:af:c4:71:45:30: +# f8:88:29:7b:cb:bf:d5:ba:27:04:8e:dd:b2:00:f7: +# ca:5c:99:35:14:ea:fd:75:06:15:08:bb:ca:57:68: +# fb:3f:fb:b4:34:73:63:d1:d5:e3:c8:38:5a:69:7d: +# 6a:7a:44:0c:0d:8a:4e:ed:92:1d:10:8f:3b:22:2c: +# b6:df:ed:c5:c6:f0:89:79:54:65:5e:5f:1b:bd:8f: +# 7d:df:b9:b7:ed:eb:e4:c5:07:d1:67:3c:95:3b:91: +# fe:42:7a:52:40:80:04:d2:39:57:4b:f4:92:7d:ff: +# 9b:ef:e5:9d:c9:09:b2:91:12:38:a6:29:08:3b:ae: +# eb:ca:cc:ed:4d:e7:4e:21:01:07:fc:6f:32:ce:69: +# 8c:84:52:c6:77:ea:27:30:0a:de:a5:af:30:2b:68: +# 1f:ac:d4:ec:21:ad:22:49:76:ce:0f:c2:f2:07:2a: +# f9:6a:12:83:9a:3b:04:ae:19:7a:fe:a1:86:24:fa: +# 41:5e:25:7c:40:ac:27:b6:e3:29:36:6f:35:e2:57: +# d0:19:58:df:ff:64:f6:c3:01:49:76:db:2b:be:bc: +# b9:4f:14:0a:d5:1b:58:21:f6:1c:2e:00:7c:f8:94: +# b5:cb:37:1a:14:e4:32:b9:16:d4:60:ec:05:aa:5f: +# 32:fa:6a:23:12:ac:d4:10:bb:d2:a2:82:b4:4b:0e: +# 8b:70:27:aa:d6:07:c1:67:88:fa:84:c3:08:c9:8a: +# 84:c8:d2:37:72:81:0f:8d:16:4a:e4:d7:35:51:a5: +# 38:0f:8c:84:4b:95:36:c0:f5:d7:9d:e0:5d:8f:ab: +# 91:ee:00:08:b9:9d:52:1f:ec:f8:99:bb:79:56:b1: +# 49:da:d2:e5:d8:61:8b:5b:af:f0:ab:37:c5:7b:1a: +# 8e:86:be:7e:c5:7b:15:1e:61:68:e8:0b:87:8b:73: +# 49:a1:17:73:7e:29:78:8e:ca:e0:41:2f:75:73:74: +# a2:97:3a:7f:f7:2e:74:09:b8:4c:60:8b:46:36:19: +# 10:2d:9d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Private Key Usage Period: +# Not Before: Feb 14 09:19:38 2023 GMT, Not After: Feb 14 09:49:38 2053 GMT +# X509v3 Authority Key Identifier: +# D7:D6:56:62:5C:3F:17:81:E6:73:44:29:F5:51:05:EF:0B:60:37:AC +# X509v3 Subject Key Identifier: +# D7:D6:56:62:5C:3F:17:81:E6:73:44:29:F5:51:05:EF:0B:60:37:AC +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 49:9c:29:fe:3d:ec:9e:45:7f:ab:3e:3c:fe:23:6f:37:3e:77: +# a7:53:ff:78:9f:fc:49:44:80:57:66:9c:6e:da:79:ff:cd:45: +# ad:4c:93:bf:b5:59:c6:e9:10:b7:e5:f8:8c:fb:87:c5:1e:8b: +# d8:b3:3f:02:96:0a:bb:8a:8e:ef:d7:b4:c0:83:20:38:97:59: +# 45:64:fc:f6:77:13:f2:09:d7:a1:c8:38:74:08:ea:f9:48:4c: +# fa:1f:04:9c:b4:ff:ec:6e:56:36:72:93:6c:95:3e:2c:5f:de: +# 0f:0b:ab:c9:cc:15:3e:16:8f:66:fc:b2:10:b8:a1:d1:b4:de: +# c0:63:19:cc:ef:53:aa:75:36:22:8b:25:1f:bf:9b:c8:d7:c1: +# 5f:ec:a6:37:09:aa:7b:62:bc:f6:22:2d:f1:d6:58:dd:8c:bb: +# 52:f4:0b:a7:76:a9:7a:7b:1a:8d:dc:ad:9a:81:62:2e:86:05: +# 90:72:47:2f:a1:c9:67:84:b0:0d:6c:b0:b8:9b:16:b7:d0:99: +# 14:2f:9c:12:9b:23:a8:8d:a6:43:1e:e9:e5:2d:e5:78:a7:1f: +# 64:94:64:b6:77:b2:a8:5c:fb:09:ab:29:eb:1e:6d:75:d1:f6: +# d0:c5:a5:c3:1d:9f:1e:f3:1a:2d:b2:c8:1f:e5:28:0a:6e:f3: +# 5f:fd:da:e6:23:a1:76:90:5c:4b:98:01:82:2c:ee:47:2d:02: +# 1a:5f:7f:34:c5:69:b5:72:ad:3e:f3:cf:9e:6d:f8:29:e8:11: +# 27:2b:e0:59:0b:1b:61:eb:4a:ca:69:a5:a4:d5:cd:51:1b:94: +# 8e:79:cd:df:f6:ae:74:5d:b1:2c:1b:86:53:fe:d1:30:06:41: +# 34:07:62:82:4c:f4:7e:c7:87:74:0e:b0:21:1e:09:20:80:c1: +# b3:15:3d:46:6d:d3:f1:06:92:3f:ef:a0:95:8a:1c:6e:77:31: +# b6:eb:78:29:0c:7b:ee:82:a5:4f:7e:a4:29:5e:9e:aa:2d:f8: +# 8e:c0:f3:fc:0d:06:85:9b:4e:dc:f7:e2:09:7c:d0:14:51:1e: +# 7a:b3:23:af:fa:d1:61:2a:65:b5:01:d9:b8:e3:07:ca:24:76: +# d2:f0:4a:be:ef:86:04:80:42:15:70:11:68:7e:d7:c7:bb:fe: +# e7:4e:9b:9c:95:a5:1c:4a:a4:c9:d0:09:8c:aa:ce:48:d2:1e: +# 92:97:d7:11:e9:ed:66:cc:37:dc:f5:d7:1b:74:9b:a6:ea:42: +# ac:5d:32:e0:58:f4:81:47:ff:d2:12:e2:7e:1c:dc:49:76:96: +# c3:1d:9f:4b:ca:5c:2a:37:5b:3d:8a:d1:38:9b:21:da:e3:bf: +# 45:43:d3:e0:58:77:1f:28 + +[p11-kit-object-v1] +label: "Microsec e-Szigno Root CA 2009" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6fiP82Ot2obYp+BC+8+R +3qYm+JmlY3Ctm67KM0B9bZZuoQ5E7uETnZRCUpq9dYV0LKgOHZO2GLeMLKjP+1xx +udrs/uh+j+QvHbKodYfYt6HlO8+ZSkbQgxl9wKESHJVtSvTYx6VNMy6FOUB1fhR8 +gBKYUMdBZ7iggGFUpmxOH+CdDgfpyboz5/7AVSgsAoCnGfWe3FVTA5d7B0j/mfs3 +iiTEWcxQEGOOqqkasIQahvlfu7FQbqTRCszVcX4fpxt89VNuIl/LK+bUfF2u1sLG +TOUFAdntV/zBI3n8+sgkg5XztWpRAdB31ukSofkag/uCG7mwl/R2BjNDSaD/C7X6 +tQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Microsec e-Szigno Root CA 2009" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYD +VQQGEwJIVTERMA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0 +ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0G +CSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5odTAeFw0wOTA2MTYxMTMwMThaFw0y +OTEyMzAxMTMwMThaMIGCMQswCQYDVQQGEwJIVTERMA8GA1UEBwwIQnVkYXBlc3Qx +FjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUtU3pp +Z25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5o +dTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOn4j/NjrdqG2KfgQvvP +kd6mJviZpWNwrZuuyjNAfW2WbqEORO7hE52UQlKavXWFdCyoDh2Tthi3jCyoz/tc +cbna7P7ofo/kLx2yqHWH2Leh5TvPmUpG0IMZfcChEhyVbUr02MelTTMuhTlAdX4U +fIASmFDHQWe4oIBhVKZsTh/gnQ4H6cm6M+f+wFUoLAKApxn1ntxVUwOXewdI/5n7 +N4okxFnMUBBjjqqpGrCEGob5X7uxUG6k0QrM1XF+H6cbfPVTbiJfyyvm1HxdrtbC +xkzlBQHZ7Vf8wSN5/PrIJIOV87VqUQHQd9bpEqH5GoP7ghu5sJf0dgYzQ0mg/wu1 ++rUCAwEAAaOBgDB+MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0G +A1UdDgQWBBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAfBgNVHSMEGDAWgBTLD8bfQkPM +Pcu1SCOhGnqmKrs0aDAbBgNVHREEFDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqG +SIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0olZMEyL/azXm4Q5DwpL7v8u8h +mLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfXI/OMn74dseGk +ddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775 +tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c +2Pm2G2JwCz02yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5t +HMN1Rq41Bab2XD0h7lbwyYIiLXpUq3DDfSJlgnCW +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# c2:7e:43:04:4e:47:3f:19 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=HU, L=Budapest, O=Microsec Ltd., CN=Microsec e-Szigno Root CA 2009, emailAddress=info@e-szigno.hu +# Validity +# Not Before: Jun 16 11:30:18 2009 GMT +# Not After : Dec 30 11:30:18 2029 GMT +# Subject: C=HU, L=Budapest, O=Microsec Ltd., CN=Microsec e-Szigno Root CA 2009, emailAddress=info@e-szigno.hu +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:e9:f8:8f:f3:63:ad:da:86:d8:a7:e0:42:fb:cf: +# 91:de:a6:26:f8:99:a5:63:70:ad:9b:ae:ca:33:40: +# 7d:6d:96:6e:a1:0e:44:ee:e1:13:9d:94:42:52:9a: +# bd:75:85:74:2c:a8:0e:1d:93:b6:18:b7:8c:2c:a8: +# cf:fb:5c:71:b9:da:ec:fe:e8:7e:8f:e4:2f:1d:b2: +# a8:75:87:d8:b7:a1:e5:3b:cf:99:4a:46:d0:83:19: +# 7d:c0:a1:12:1c:95:6d:4a:f4:d8:c7:a5:4d:33:2e: +# 85:39:40:75:7e:14:7c:80:12:98:50:c7:41:67:b8: +# a0:80:61:54:a6:6c:4e:1f:e0:9d:0e:07:e9:c9:ba: +# 33:e7:fe:c0:55:28:2c:02:80:a7:19:f5:9e:dc:55: +# 53:03:97:7b:07:48:ff:99:fb:37:8a:24:c4:59:cc: +# 50:10:63:8e:aa:a9:1a:b0:84:1a:86:f9:5f:bb:b1: +# 50:6e:a4:d1:0a:cc:d5:71:7e:1f:a7:1b:7c:f5:53: +# 6e:22:5f:cb:2b:e6:d4:7c:5d:ae:d6:c2:c6:4c:e5: +# 05:01:d9:ed:57:fc:c1:23:79:fc:fa:c8:24:83:95: +# f3:b5:6a:51:01:d0:77:d6:e9:12:a1:f9:1a:83:fb: +# 82:1b:b9:b0:97:f4:76:06:33:43:49:a0:ff:0b:b5: +# fa:b5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# CB:0F:C6:DF:42:43:CC:3D:CB:B5:48:23:A1:1A:7A:A6:2A:BB:34:68 +# X509v3 Authority Key Identifier: +# CB:0F:C6:DF:42:43:CC:3D:CB:B5:48:23:A1:1A:7A:A6:2A:BB:34:68 +# X509v3 Subject Alternative Name: +# email:info@e-szigno.hu +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# c9:d1:0e:5e:2e:d5:cc:b3:7c:3e:cb:fc:3d:ff:0d:28:95:93: +# 04:c8:bf:da:cd:79:b8:43:90:f0:a4:be:ef:f2:ef:21:98:bc: +# d4:d4:5d:06:f6:ee:42:ec:30:6c:a0:aa:a9:ca:f1:af:8a:fa: +# 3f:0b:73:6a:3e:ea:2e:40:7e:1f:ae:54:61:79:eb:2e:08:37: +# d7:23:f3:8c:9f:be:1d:b1:e1:a4:75:db:a0:e2:54:14:b1:ba: +# 1c:29:a4:18:f6:12:ba:a2:14:14:e3:31:35:c8:40:ff:b7:e0: +# 05:76:57:c1:1c:59:f2:f8:bf:e4:ed:25:62:5c:84:f0:7e:7e: +# 1f:b3:be:f9:b7:21:11:cc:03:01:56:70:a7:10:92:1e:1b:34: +# 81:1e:ad:9c:1a:c3:04:3c:ed:02:61:d6:1e:06:f3:5f:3a:87: +# f2:2b:f1:45:87:e5:3d:ac:d1:c7:57:84:bd:6b:ae:dc:d8:f9: +# b6:1b:62:70:0b:3d:36:c9:42:f2:32:d7:7a:61:e6:d2:db:3d: +# cf:c8:a9:c9:9b:dc:db:58:44:d7:6f:38:af:7f:78:d3:a3:ad: +# 1a:75:ba:1c:c1:36:7c:8f:1e:6d:1c:c3:75:46:ae:35:05:a6: +# f6:5c:3d:21:ee:56:f0:c9:82:22:2d:7a:54:ab:70:c3:7d:22: +# 65:82:70:96 + +[p11-kit-object-v1] +label: "Microsoft ECC Root Certificate Authority 2017" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE1Lw9AkJ1QRMjzYAEhgJRL2qogWILZcz2 +yp0eb0pmUaID2Z2R+rYWsYxu3nzN23mmL867znEv5aWrKOxjBGaZ+PrykxAF4YEo +QuPGaPTmG4RgSomv7XkPO87x9kT1AXjA +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Microsoft ECC Root Certificate Authority 2017" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICWTCCAd+gAwIBAgIQZvI9r4fei7FK6gxXMQHC7DAKBggqhkjOPQQDAzBlMQsw +CQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYD +VQQDEy1NaWNyb3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIw +MTcwHhcNMTkxMjE4MjMwNjQ1WhcNNDIwNzE4MjMxNjA0WjBlMQswCQYDVQQGEwJV +UzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNy +b3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAATUvD0CQnVBEyPNgASGAlEvaqiBYgtlzPbKnR5vSmZR +ogPZnZH6thaxjG7efM3beaYvzrvOcS/lpaso7GMEZpn4+vKTEAXhgShC48Zo9OYb +hGBKia/teQ87zvH2RPUBeMCjVDBSMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8E +BTADAQH/MB0GA1UdDgQWBBTIy5lycFIM+Oa+sgRXKSrPQhDtNTAQBgkrBgEEAYI3 +FQEEAwIBADAKBggqhkjOPQQDAwNoADBlAjBY8k3qDPlfXu5gKcs68tvWMoQZP3zV +L8KxzJOuULsJMsbG7X7JNpQS5GiFBqIb0C8CMQCZ6Ra0DvpWSNSkMBaReNtUjGUB +iudQZsIxtzm6uBoiB078a1QWIP8rtedMDE2mT3M= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 66:f2:3d:af:87:de:8b:b1:4a:ea:0c:57:31:01:c2:ec +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=Microsoft Corporation, CN=Microsoft ECC Root Certificate Authority 2017 +# Validity +# Not Before: Dec 18 23:06:45 2019 GMT +# Not After : Jul 18 23:16:04 2042 GMT +# Subject: C=US, O=Microsoft Corporation, CN=Microsoft ECC Root Certificate Authority 2017 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:d4:bc:3d:02:42:75:41:13:23:cd:80:04:86:02: +# 51:2f:6a:a8:81:62:0b:65:cc:f6:ca:9d:1e:6f:4a: +# 66:51:a2:03:d9:9d:91:fa:b6:16:b1:8c:6e:de:7c: +# cd:db:79:a6:2f:ce:bb:ce:71:2f:e5:a5:ab:28:ec: +# 63:04:66:99:f8:fa:f2:93:10:05:e1:81:28:42:e3: +# c6:68:f4:e6:1b:84:60:4a:89:af:ed:79:0f:3b:ce: +# f1:f6:44:f5:01:78:c0 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# C8:CB:99:72:70:52:0C:F8:E6:BE:B2:04:57:29:2A:CF:42:10:ED:35 +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:58:f2:4d:ea:0c:f9:5f:5e:ee:60:29:cb:3a:f2: +# db:d6:32:84:19:3f:7c:d5:2f:c2:b1:cc:93:ae:50:bb:09:32: +# c6:c6:ed:7e:c9:36:94:12:e4:68:85:06:a2:1b:d0:2f:02:31: +# 00:99:e9:16:b4:0e:fa:56:48:d4:a4:30:16:91:78:db:54:8c: +# 65:01:8a:e7:50:66:c2:31:b7:39:ba:b8:1a:22:07:4e:fc:6b: +# 54:16:20:ff:2b:b5:e7:4c:0c:4d:a6:4f:73 + +[p11-kit-object-v1] +label: "Microsoft RSA Root Certificate Authority 2017" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAylu+lDOMKZWRFgqVvUdi +wYnzmTbfRpDJpe14am9HkWj4J2dQMx2hpvvg5UOjhAJXAV2cSECCUxC8v8c7aJC2 +gi3l9GXQzG0ZzJX5e6xKlK0O3ktDHYcHkhOQgINkNTkE/OXpbLO2H1CUOGVQXBdG +ubaFtRy1F+jWRZ3YsiawysRwSq5gpN2z2ez8O9VXcrw/yMmy3ktr+CNsA8AFvZXH +zXM7ZoBk4xqsLvlHBfIGtptz9XgzW8eh+ycqobSakYyR0zqCPnZAtM1SYVFwKD/F +xVryyYxJuxRbTcj/Z01MEpat9f54qJeH1/1eIIDcoUsi+9SJrbrOR5dHVXuPRchn +KISVHGgw7+9J4DV7ZOeYsJTaTYU7PlXEKK9X854T20Ynnx6iXkSDpKXK1ROzSz/E +48LmhmGkUjC5eiBPbw84U8szDBMrj9aavSrILbEcfUtRykfRSCdyXYfr1UXmSGWd +r1KQuluiGGVXEp9oudQVa5TEaSKY9DPg7flRjkFQyTRPdpCs/DjB2OF7uePjlOFG +acsOClBrE7qsDzdatxK1kIEeVq5XIobZydLR11HjqzvGVf0eDtN0CtHaquppuJco +j0jEB/hSQzr0ylU1LLCmasCc+fKB4RJqwEXZZ7PO/yOiiQpU1BS5KqjX7PmrzSVY +MnmPkFuYOcQIBsGsfw49AKUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Microsoft RSA Root Certificate Authority 2017" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFqDCCA5CgAwIBAgIQHtOXCV/YtLNHcB6qvn9FszANBgkqhkiG9w0BAQwFADBl +MQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYw +NAYDVQQDEy1NaWNyb3NvZnQgUlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5 +IDIwMTcwHhcNMTkxMjE4MjI1MTIyWhcNNDIwNzE4MjMwMDIzWjBlMQswCQYDVQQG +EwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1N +aWNyb3NvZnQgUlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKW76UM4wplZEWCpW9R2LBifOZ +Nt9GkMml7Xhqb0eRaPgnZ1AzHaGm++DlQ6OEAlcBXZxIQIJTELy/xztokLaCLeX0 +ZdDMbRnMlfl7rEqUrQ7eS0MdhweSE5CAg2Q1OQT85elss7YfUJQ4ZVBcF0a5toW1 +HLUX6NZFndiyJrDKxHBKrmCk3bPZ7Pw71VdyvD/IybLeS2v4I2wDwAW9lcfNcztm +gGTjGqwu+UcF8ga2m3P1eDNbx6H7JyqhtJqRjJHTOoI+dkC0zVJhUXAoP8XFWvLJ +jEm7FFtNyP9nTUwSlq31/niol4fX/V4ggNyhSyL71Imtus5Hl0dVe49FyGcohJUc +aDDv70ngNXtk55iwlNpNhTs+VcQor1fznhPbRiefHqJeRIOkpcrVE7NLP8TjwuaG +YaRSMLl6IE9vDzhTyzMMEyuP1pq9KsgtsRx9S1HKR9FIJ3Jdh+vVReZIZZ2vUpC6 +W6IYZVcSn2i51BVrlMRpIpj0M+Dt+VGOQVDJNE92kKz8OMHY4Xu54+OU4UZpyw4K +UGsTuqwPN1q3ErWQgR5WrlcihtnJ0tHXUeOrO8ZV/R4O03QK0dqq6mm4lyiPSMQH ++FJDOvTKVTUssKZqwJz58oHhEmrARdlns87/I6KJClTUFLkqqNfs+avNJVgyeY+Q +W5g5xAgGwax/Dj0ApQIDAQABo1QwUjAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/ +BAUwAwEB/zAdBgNVHQ4EFgQUCctZf4aycI8awznjwNnpv7tNsiMwEAYJKwYBBAGC +NxUBBAMCAQAwDQYJKoZIhvcNAQEMBQADggIBAKyvPl3CEZaJjqPnktaXFbgToqZC +LgLNFgVZJ8og6Lq46BrsTaiXVq5lQ7GPAJtSzVXNUzltYkyLDVt8LkS/gxCP81OC +gMNPOsduET/m4xaRhPtthH80dK2Jp86519efhGSSvpWhrQlTM93uCupKUY5vVau6 +tZRGrox/2KJQJWVggEbbMwSubLWYdFQl3JPk+ONVFT24bcMKpBLBaYVu32TxU5nh +SnUgnZUP5NbcA/FZGOhHibJXWpS2qdgXKxdJ5XbLwVaZOjex/2kskZGT4d9Mozd2 +TaGf+G0eHdP67Pv0RR0Tbc/3WeUiJ3IrhvNXuzDtJE3cfVa7o7P4NHmJweDyAmH3 +pvwPuxwXC65B2Xy9J6P9LjrRk5Sxcx0ki69bIImtt2dmefU6xqaWM/5TkshGsRGR +xpl/j8nWZjEgQRCHLQzWwa80mMpkg/sTV9HB8Dx6jKXB/ZUhoHHBk2dxEuqPiApp +GWSZI1b7rCoucL5mxAyE7+WL85MB+GqQk2dLsmijtWKP6T+MejteD+eMuMZ87zf9 +dOLITzNy4ZQ5bb0Sr74MTnB8G2+NszKTc0QWbej09+CVgI+WXTik9KveCjCHk9hN +AHFiRSdLOkKEW39lt2c0Ui2cFmuqqNh7o0JMcccMyj6D5KbvtwEwXlGjefVwaaZB +RA+GsCyRxj3qrg+E +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 1e:d3:97:09:5f:d8:b4:b3:47:70:1e:aa:be:7f:45:b3 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, O=Microsoft Corporation, CN=Microsoft RSA Root Certificate Authority 2017 +# Validity +# Not Before: Dec 18 22:51:22 2019 GMT +# Not After : Jul 18 23:00:23 2042 GMT +# Subject: C=US, O=Microsoft Corporation, CN=Microsoft RSA Root Certificate Authority 2017 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ca:5b:be:94:33:8c:29:95:91:16:0a:95:bd:47: +# 62:c1:89:f3:99:36:df:46:90:c9:a5:ed:78:6a:6f: +# 47:91:68:f8:27:67:50:33:1d:a1:a6:fb:e0:e5:43: +# a3:84:02:57:01:5d:9c:48:40:82:53:10:bc:bf:c7: +# 3b:68:90:b6:82:2d:e5:f4:65:d0:cc:6d:19:cc:95: +# f9:7b:ac:4a:94:ad:0e:de:4b:43:1d:87:07:92:13: +# 90:80:83:64:35:39:04:fc:e5:e9:6c:b3:b6:1f:50: +# 94:38:65:50:5c:17:46:b9:b6:85:b5:1c:b5:17:e8: +# d6:45:9d:d8:b2:26:b0:ca:c4:70:4a:ae:60:a4:dd: +# b3:d9:ec:fc:3b:d5:57:72:bc:3f:c8:c9:b2:de:4b: +# 6b:f8:23:6c:03:c0:05:bd:95:c7:cd:73:3b:66:80: +# 64:e3:1a:ac:2e:f9:47:05:f2:06:b6:9b:73:f5:78: +# 33:5b:c7:a1:fb:27:2a:a1:b4:9a:91:8c:91:d3:3a: +# 82:3e:76:40:b4:cd:52:61:51:70:28:3f:c5:c5:5a: +# f2:c9:8c:49:bb:14:5b:4d:c8:ff:67:4d:4c:12:96: +# ad:f5:fe:78:a8:97:87:d7:fd:5e:20:80:dc:a1:4b: +# 22:fb:d4:89:ad:ba:ce:47:97:47:55:7b:8f:45:c8: +# 67:28:84:95:1c:68:30:ef:ef:49:e0:35:7b:64:e7: +# 98:b0:94:da:4d:85:3b:3e:55:c4:28:af:57:f3:9e: +# 13:db:46:27:9f:1e:a2:5e:44:83:a4:a5:ca:d5:13: +# b3:4b:3f:c4:e3:c2:e6:86:61:a4:52:30:b9:7a:20: +# 4f:6f:0f:38:53:cb:33:0c:13:2b:8f:d6:9a:bd:2a: +# c8:2d:b1:1c:7d:4b:51:ca:47:d1:48:27:72:5d:87: +# eb:d5:45:e6:48:65:9d:af:52:90:ba:5b:a2:18:65: +# 57:12:9f:68:b9:d4:15:6b:94:c4:69:22:98:f4:33: +# e0:ed:f9:51:8e:41:50:c9:34:4f:76:90:ac:fc:38: +# c1:d8:e1:7b:b9:e3:e3:94:e1:46:69:cb:0e:0a:50: +# 6b:13:ba:ac:0f:37:5a:b7:12:b5:90:81:1e:56:ae: +# 57:22:86:d9:c9:d2:d1:d7:51:e3:ab:3b:c6:55:fd: +# 1e:0e:d3:74:0a:d1:da:aa:ea:69:b8:97:28:8f:48: +# c4:07:f8:52:43:3a:f4:ca:55:35:2c:b0:a6:6a:c0: +# 9c:f9:f2:81:e1:12:6a:c0:45:d9:67:b3:ce:ff:23: +# a2:89:0a:54:d4:14:b9:2a:a8:d7:ec:f9:ab:cd:25: +# 58:32:79:8f:90:5b:98:39:c4:08:06:c1:ac:7f:0e: +# 3d:00:a5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 09:CB:59:7F:86:B2:70:8F:1A:C3:39:E3:C0:D9:E9:BF:BB:4D:B2:23 +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# ac:af:3e:5d:c2:11:96:89:8e:a3:e7:92:d6:97:15:b8:13:a2: +# a6:42:2e:02:cd:16:05:59:27:ca:20:e8:ba:b8:e8:1a:ec:4d: +# a8:97:56:ae:65:43:b1:8f:00:9b:52:cd:55:cd:53:39:6d:62: +# 4c:8b:0d:5b:7c:2e:44:bf:83:10:8f:f3:53:82:80:c3:4f:3a: +# c7:6e:11:3f:e6:e3:16:91:84:fb:6d:84:7f:34:74:ad:89:a7: +# ce:b9:d7:d7:9f:84:64:92:be:95:a1:ad:09:53:33:dd:ee:0a: +# ea:4a:51:8e:6f:55:ab:ba:b5:94:46:ae:8c:7f:d8:a2:50:25: +# 65:60:80:46:db:33:04:ae:6c:b5:98:74:54:25:dc:93:e4:f8: +# e3:55:15:3d:b8:6d:c3:0a:a4:12:c1:69:85:6e:df:64:f1:53: +# 99:e1:4a:75:20:9d:95:0f:e4:d6:dc:03:f1:59:18:e8:47:89: +# b2:57:5a:94:b6:a9:d8:17:2b:17:49:e5:76:cb:c1:56:99:3a: +# 37:b1:ff:69:2c:91:91:93:e1:df:4c:a3:37:76:4d:a1:9f:f8: +# 6d:1e:1d:d3:fa:ec:fb:f4:45:1d:13:6d:cf:f7:59:e5:22:27: +# 72:2b:86:f3:57:bb:30:ed:24:4d:dc:7d:56:bb:a3:b3:f8:34: +# 79:89:c1:e0:f2:02:61:f7:a6:fc:0f:bb:1c:17:0b:ae:41:d9: +# 7c:bd:27:a3:fd:2e:3a:d1:93:94:b1:73:1d:24:8b:af:5b:20: +# 89:ad:b7:67:66:79:f5:3a:c6:a6:96:33:fe:53:92:c8:46:b1: +# 11:91:c6:99:7f:8f:c9:d6:66:31:20:41:10:87:2d:0c:d6:c1: +# af:34:98:ca:64:83:fb:13:57:d1:c1:f0:3c:7a:8c:a5:c1:fd: +# 95:21:a0:71:c1:93:67:71:12:ea:8f:88:0a:69:19:64:99:23: +# 56:fb:ac:2a:2e:70:be:66:c4:0c:84:ef:e5:8b:f3:93:01:f8: +# 6a:90:93:67:4b:b2:68:a3:b5:62:8f:e9:3f:8c:7a:3b:5e:0f: +# e7:8c:b8:c6:7c:ef:37:fd:74:e2:c8:4f:33:72:e1:94:39:6d: +# bd:12:af:be:0c:4e:70:7c:1b:6f:8d:b3:32:93:73:44:16:6d: +# e8:f4:f7:e0:95:80:8f:96:5d:38:a4:f4:ab:de:0a:30:87:93: +# d8:4d:00:71:62:45:27:4b:3a:42:84:5b:7f:65:b7:67:34:52: +# 2d:9c:16:6b:aa:a8:d8:7b:a3:42:4c:71:c7:0c:ca:3e:83:e4: +# a6:ef:b7:01:30:5e:51:a3:79:f5:70:69:a6:41:44:0f:86:b0: +# 2c:91:c6:3d:ea:ae:0f:84 + +[p11-kit-object-v1] +label: "NAVER Global Root Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAttTxk1y1QIkKqw2QW1Bj +rpCUdBdFctZ7ZVopS6dWoEu4L0J16dl7JFoxZasXF9EzOtkR3EA2h9/HaukmXlmK +d+PoSJwxFvo+kbHKyaPin84hU6MCNjDLUgLl2jJdw8Xm+e4Rx4vJRB6EkxhKtJ/l +EmRp0CaFYgG2yQIdvoNRu1za+K0Vapn3klT3NFvpv+opgRLUU5GWs5Fa3f6Qcyj7 +MEa1yggHx3FyyWbTNJf2jPQYSuHQPVpFtmmnKfsjzojYEpwASKimD7M7ko1xDnTF +i8hM+fSbjrg8ae1vO1AvWO3EsNAcG2oM4rxEqtjNFF2UeGG/Dm7aKrwvDAtxprMW +P5zm+cyfUzXiA6CgGL+78b701oyHDUL3Brnxbe0ElKj+ttMGxkBh352d81R2zlM6 +AaaSQewEo48NotUJytbLmvHvQ13Aq6VBz1xTcHDJiKYt1Gthc1AmhmEOXxvCK+KM +1budwQNCupTaX6mwysxNCu9HaQMvIvvxKM6/XVBlqJBts3SwCMesqNHrPpz8XRqD +LivLtfNEnTqnF2GWonHTcJYVTbdMc+4ZXMVbPkH+rHVgOxtjzgDd2giQYrTlLe5I +p2sXmVS+h0rjqV4ETOsQbVTW7/Ho8mIWy4Br7T3t9R8wpa5LyRPtigEBybhRWMBm +OrFmS8TVMQJi6XSEDNtNRi0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "NAVER Global Root Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFojCCA4qgAwIBAgIUAZQwHqIL3fXFMyqxQ0Rx+NZQTQ0wDQYJKoZIhvcNAQEM +BQAwaTELMAkGA1UEBhMCS1IxJjAkBgNVBAoMHU5BVkVSIEJVU0lORVNTIFBMQVRG +T1JNIENvcnAuMTIwMAYDVQQDDClOQVZFUiBHbG9iYWwgUm9vdCBDZXJ0aWZpY2F0 +aW9uIEF1dGhvcml0eTAeFw0xNzA4MTgwODU4NDJaFw0zNzA4MTgyMzU5NTlaMGkx +CzAJBgNVBAYTAktSMSYwJAYDVQQKDB1OQVZFUiBCVVNJTkVTUyBQTEFURk9STSBD +b3JwLjEyMDAGA1UEAwwpTkFWRVIgR2xvYmFsIFJvb3QgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC21PGTXLVA +iQqrDZBbUGOukJR0F0Vy1ntlWilLp1agS7gvQnXp2XskWjFlqxcX0TM62RHcQDaH +38dq6SZeWYp34+hInDEW+j6RscrJo+KfziFTowI2MMtSAuXaMl3Dxeb57hHHi8lE +HoSTGEq0n+USZGnQJoViAbbJAh2+g1G7XNr4rRVqmfeSVPc0W+m/6imBEtRTkZaz +kVrd/pBzKPswRrXKCAfHcXLJZtM0l/aM9BhK4dA9WkW2aacp+yPOiNgSnABIqKYP +szuSjXEOdMWLyEz59JuOuDxp7W87UC9Y7cSw0BwbagzivESq2M0UXZR4Yb8Obtoq +vC8MC3GmsxY/nOb5zJ9TNeIDoKAYv7vxvvTWjIcNQvcGufFt7QSUqP620wbGQGHf +nZ3zVHbOUzoBppJB7ASjjw2i1QnK1sua8e9DXcCrpUHPXFNwcMmIpi3Ua2FzUCaG +YQ5fG8Ir4ozVu53BA0K6lNpfqbDKzE0K70dpAy8i+/Eozr9dUGWokG2zdLAIx6yo +0es+nPxdGoMuK8u180SdOqcXYZaicdNwlhVNt0xz7hlcxVs+Qf6sdWA7G2POAN3a +CJBitOUt7kinaxeZVL6HSuOpXgRM6xBtVNbv8ejyYhbLgGvtPe31HzClrkvJE+2K +AQHJuFFYwGY6sWZLxNUxAmLpdIQM201GLQIDAQABo0IwQDAdBgNVHQ4EFgQU0p+I +36HNLL3s9TsBAZMzJ7LrYEswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMB +Af8wDQYJKoZIhvcNAQEMBQADggIBADLKgLOdPVQG3dLSLvCkASELZ0jKbY7gyKoN +qo0hV4/GPnrK21HUUrPUloSlWGB/5QuOH/XcChWB5Tu2tyIvCZwTFrFsDDUIbatj +cu3cvuzHV+YwIHHW1xDBE1UBjCpD5EHxzzp6U5LOogMFDTjfArsQLtk70pt6wKGm ++LUx5vR1yblTmXVHIloUFcd4G7ad6Qz4G3bxhYTeodoS76TiEJd6eN4MUZeoIUCL +hr0N8F5OSza7OyAfikJW4Qsav3vQIkMsRIz75Sq0bBwcupTgE34h5prCy8VCZLQe +lHsIJchxzIdFV4XTnyliIoNRlwAYl3dqmJLJfGBs32x9SuRwTMKeuB330DTHD8z7 +p/8Dvq1wkNoL3chtl1+afwkyQf3NosxabUzyqkn+Zvjp2DXrDige7kgvOtB5CTh8 +piKCk5XQA76+AqAF3SAi428diDRgxuYKuQl1C/AH6GmWNcf7I4GOODm4RStDeKLR +LBT/DShycpWbXgnbiUSYqqFJu3FS8r/2/yehNq+4tneI3TqkbZs0kNwUXTC/t+sX +5Ie3cdCh13cV1ELX8vMxmV2b3RZtP+oGI/hGoiLtk/bdmuYqh7GYVPEi92tF4+KO +dh2ajcQGjTa3FPOdVGm3jjzVpG2Tgbet9r1ke8LJaDmgkpzNNIaRkPpkUZ3+/uul +9XXeifdy +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 01:94:30:1e:a2:0b:dd:f5:c5:33:2a:b1:43:44:71:f8:d6:50:4d:0d +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=KR, O=NAVER BUSINESS PLATFORM Corp., CN=NAVER Global Root Certification Authority +# Validity +# Not Before: Aug 18 08:58:42 2017 GMT +# Not After : Aug 18 23:59:59 2037 GMT +# Subject: C=KR, O=NAVER BUSINESS PLATFORM Corp., CN=NAVER Global Root Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b6:d4:f1:93:5c:b5:40:89:0a:ab:0d:90:5b:50: +# 63:ae:90:94:74:17:45:72:d6:7b:65:5a:29:4b:a7: +# 56:a0:4b:b8:2f:42:75:e9:d9:7b:24:5a:31:65:ab: +# 17:17:d1:33:3a:d9:11:dc:40:36:87:df:c7:6a:e9: +# 26:5e:59:8a:77:e3:e8:48:9c:31:16:fa:3e:91:b1: +# ca:c9:a3:e2:9f:ce:21:53:a3:02:36:30:cb:52:02: +# e5:da:32:5d:c3:c5:e6:f9:ee:11:c7:8b:c9:44:1e: +# 84:93:18:4a:b4:9f:e5:12:64:69:d0:26:85:62:01: +# b6:c9:02:1d:be:83:51:bb:5c:da:f8:ad:15:6a:99: +# f7:92:54:f7:34:5b:e9:bf:ea:29:81:12:d4:53:91: +# 96:b3:91:5a:dd:fe:90:73:28:fb:30:46:b5:ca:08: +# 07:c7:71:72:c9:66:d3:34:97:f6:8c:f4:18:4a:e1: +# d0:3d:5a:45:b6:69:a7:29:fb:23:ce:88:d8:12:9c: +# 00:48:a8:a6:0f:b3:3b:92:8d:71:0e:74:c5:8b:c8: +# 4c:f9:f4:9b:8e:b8:3c:69:ed:6f:3b:50:2f:58:ed: +# c4:b0:d0:1c:1b:6a:0c:e2:bc:44:aa:d8:cd:14:5d: +# 94:78:61:bf:0e:6e:da:2a:bc:2f:0c:0b:71:a6:b3: +# 16:3f:9c:e6:f9:cc:9f:53:35:e2:03:a0:a0:18:bf: +# bb:f1:be:f4:d6:8c:87:0d:42:f7:06:b9:f1:6d:ed: +# 04:94:a8:fe:b6:d3:06:c6:40:61:df:9d:9d:f3:54: +# 76:ce:53:3a:01:a6:92:41:ec:04:a3:8f:0d:a2:d5: +# 09:ca:d6:cb:9a:f1:ef:43:5d:c0:ab:a5:41:cf:5c: +# 53:70:70:c9:88:a6:2d:d4:6b:61:73:50:26:86:61: +# 0e:5f:1b:c2:2b:e2:8c:d5:bb:9d:c1:03:42:ba:94: +# da:5f:a9:b0:ca:cc:4d:0a:ef:47:69:03:2f:22:fb: +# f1:28:ce:bf:5d:50:65:a8:90:6d:b3:74:b0:08:c7: +# ac:a8:d1:eb:3e:9c:fc:5d:1a:83:2e:2b:cb:b5:f3: +# 44:9d:3a:a7:17:61:96:a2:71:d3:70:96:15:4d:b7: +# 4c:73:ee:19:5c:c5:5b:3e:41:fe:ac:75:60:3b:1b: +# 63:ce:00:dd:da:08:90:62:b4:e5:2d:ee:48:a7:6b: +# 17:99:54:be:87:4a:e3:a9:5e:04:4c:eb:10:6d:54: +# d6:ef:f1:e8:f2:62:16:cb:80:6b:ed:3d:ed:f5:1f: +# 30:a5:ae:4b:c9:13:ed:8a:01:01:c9:b8:51:58:c0: +# 66:3a:b1:66:4b:c4:d5:31:02:62:e9:74:84:0c:db: +# 4d:46:2d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D2:9F:88:DF:A1:CD:2C:BD:EC:F5:3B:01:01:93:33:27:B2:EB:60:4B +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 32:ca:80:b3:9d:3d:54:06:dd:d2:d2:2e:f0:a4:01:21:0b:67: +# 48:ca:6d:8e:e0:c8:aa:0d:aa:8d:21:57:8f:c6:3e:7a:ca:db: +# 51:d4:52:b3:d4:96:84:a5:58:60:7f:e5:0b:8e:1f:f5:dc:0a: +# 15:81:e5:3b:b6:b7:22:2f:09:9c:13:16:b1:6c:0c:35:08:6d: +# ab:63:72:ed:dc:be:ec:c7:57:e6:30:20:71:d6:d7:10:c1:13: +# 55:01:8c:2a:43:e4:41:f1:cf:3a:7a:53:92:ce:a2:03:05:0d: +# 38:df:02:bb:10:2e:d9:3b:d2:9b:7a:c0:a1:a6:f8:b5:31:e6: +# f4:75:c9:b9:53:99:75:47:22:5a:14:15:c7:78:1b:b6:9d:e9: +# 0c:f8:1b:76:f1:85:84:de:a1:da:12:ef:a4:e2:10:97:7a:78: +# de:0c:51:97:a8:21:40:8b:86:bd:0d:f0:5e:4e:4b:36:bb:3b: +# 20:1f:8a:42:56:e1:0b:1a:bf:7b:d0:22:43:2c:44:8c:fb:e5: +# 2a:b4:6c:1c:1c:ba:94:e0:13:7e:21:e6:9a:c2:cb:c5:42:64: +# b4:1e:94:7b:08:25:c8:71:cc:87:45:57:85:d3:9f:29:62:22: +# 83:51:97:00:18:97:77:6a:98:92:c9:7c:60:6c:df:6c:7d:4a: +# e4:70:4c:c2:9e:b8:1d:f7:d0:34:c7:0f:cc:fb:a7:ff:03:be: +# ad:70:90:da:0b:dd:c8:6d:97:5f:9a:7f:09:32:41:fd:cd:a2: +# cc:5a:6d:4c:f2:aa:49:fe:66:f8:e9:d8:35:eb:0e:28:1e:ee: +# 48:2f:3a:d0:79:09:38:7c:a6:22:82:93:95:d0:03:be:be:02: +# a0:05:dd:20:22:e3:6f:1d:88:34:60:c6:e6:0a:b9:09:75:0b: +# f0:07:e8:69:96:35:c7:fb:23:81:8e:38:39:b8:45:2b:43:78: +# a2:d1:2c:14:ff:0d:28:72:72:95:9b:5e:09:db:89:44:98:aa: +# a1:49:bb:71:52:f2:bf:f6:ff:27:a1:36:af:b8:b6:77:88:dd: +# 3a:a4:6d:9b:34:90:dc:14:5d:30:bf:b7:eb:17:e4:87:b7:71: +# d0:a1:d7:77:15:d4:42:d7:f2:f3:31:99:5d:9b:dd:16:6d:3f: +# ea:06:23:f8:46:a2:22:ed:93:f6:dd:9a:e6:2a:87:b1:98:54: +# f1:22:f7:6b:45:e3:e2:8e:76:1d:9a:8d:c4:06:8d:36:b7:14: +# f3:9d:54:69:b7:8e:3c:d5:a4:6d:93:81:b7:ad:f6:bd:64:7b: +# c2:c9:68:39:a0:92:9c:cd:34:86:91:90:fa:64:51:9d:fe:fe: +# eb:a5:f5:75:de:89:f7:72 + +[p11-kit-object-v1] +label: "NetLock Arany (Class Gold) Főtanúsítvány" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCRec75LbRTDofTjl5Bu +0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrTlF8afFttvzBPhCf2nx9JvMaZCpDyD/V/ +Q4Q3Y1GLeqVw/HpYzY6b7cNGbIRwXdrzAZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/ +sLj916jAwJRDC7bVWaaeVtAkH3B5r9s5VA1lddkVQZQBr17s9o3x/61k/iCa11zr +/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRGILdwfzzeSNuWU7c5d+Qa4scWhHaXWy+7 +GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2BJtr+UBdADTHLpl1neWIA6pN+APSQnbA +GwIDAKiL +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "NetLock Arany (Class Gold) Főtanúsítvány" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQG +EwJIVTERMA8GA1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3 +MDUGA1UECwwuVGFuw7pzw610dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNl +cnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBBcmFueSAoQ2xhc3MgR29sZCkgRsWR +dGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgxMjA2MTUwODIxWjCB +pzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxOZXRM +b2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlm +aWNhdGlvbiBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNz +IEdvbGQpIEbFkXRhbsO6c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEAxCRec75LbRTDofTjl5Bu0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrT +lF8afFttvzBPhCf2nx9JvMaZCpDyD/V/Q4Q3Y1GLeqVw/HpYzY6b7cNGbIRwXdrz +AZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/sLj916jAwJRDC7bVWaaeVtAkH3B5r9s5 +VA1lddkVQZQBr17s9o3x/61k/iCa11zr/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRG +ILdwfzzeSNuWU7c5d+Qa4scWhHaXWy+7GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2 +BJtr+UBdADTHLpl1neWIA6pN+APSQnbAGwIDAKiLo0UwQzASBgNVHRMBAf8ECDAG +AQH/AgEEMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUzPpnk/C2uNClwB7zU/2M +U9+D15YwDQYJKoZIhvcNAQELBQADggEBAKt/7hwWqZw8UQCgwBEIBaeZ5m8BiFRh +bvG5GK1Krf6BQCOUL/t1fC8oS2IkgYIL9WHxHG64YTjrgfpioTtaYtOUZcTh5m2C ++C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC +bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2F +uLjbvrW5KfnaNwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2 +XjG4Kvte9nHfRCaexOYNkbQudZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 80544274841616 (0x49412ce40010) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=HU, L=Budapest, O=NetLock Kft., OU=Tanúsítványkiadók (Certification Services), CN=NetLock Arany (Class Gold) Főtanúsítvány +# Validity +# Not Before: Dec 11 15:08:21 2008 GMT +# Not After : Dec 6 15:08:21 2028 GMT +# Subject: C=HU, L=Budapest, O=NetLock Kft., OU=Tanúsítványkiadók (Certification Services), CN=NetLock Arany (Class Gold) Főtanúsítvány +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:c4:24:5e:73:be:4b:6d:14:c3:a1:f4:e3:97:90: +# 6e:d2:30:45:1e:3c:ee:67:d9:64:e0:1a:8a:7f:ca: +# 30:ca:83:e3:20:c1:e3:f4:3a:d3:94:5f:1a:7c:5b: +# 6d:bf:30:4f:84:27:f6:9f:1f:49:bc:c6:99:0a:90: +# f2:0f:f5:7f:43:84:37:63:51:8b:7a:a5:70:fc:7a: +# 58:cd:8e:9b:ed:c3:46:6c:84:70:5d:da:f3:01:90: +# 23:fc:4e:30:a9:7e:e1:27:63:e7:ed:64:3c:a0:b8: +# c9:33:63:fe:16:90:ff:b0:b8:fd:d7:a8:c0:c0:94: +# 43:0b:b6:d5:59:a6:9e:56:d0:24:1f:70:79:af:db: +# 39:54:0d:65:75:d9:15:41:94:01:af:5e:ec:f6:8d: +# f1:ff:ad:64:fe:20:9a:d7:5c:eb:fe:a6:1f:08:64: +# a3:8b:76:55:ad:1e:3b:28:60:2e:87:25:e8:aa:af: +# 1f:c6:64:46:20:b7:70:7f:3c:de:48:db:96:53:b7: +# 39:77:e4:1a:e2:c7:16:84:76:97:5b:2f:bb:19:15: +# 85:f8:69:85:f5:99:a7:a9:f2:34:a7:a9:b6:a6:03: +# fc:6f:86:3d:54:7c:76:04:9b:6b:f9:40:5d:00:34: +# c7:2e:99:75:9d:e5:88:03:aa:4d:f8:03:d2:42:76: +# c0:1b +# Exponent: 43147 (0xa88b) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE, pathlen:4 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# CC:FA:67:93:F0:B6:B8:D0:A5:C0:1E:F3:53:FD:8C:53:DF:83:D7:96 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# ab:7f:ee:1c:16:a9:9c:3c:51:00:a0:c0:11:08:05:a7:99:e6: +# 6f:01:88:54:61:6e:f1:b9:18:ad:4a:ad:fe:81:40:23:94:2f: +# fb:75:7c:2f:28:4b:62:24:81:82:0b:f5:61:f1:1c:6e:b8:61: +# 38:eb:81:fa:62:a1:3b:5a:62:d3:94:65:c4:e1:e6:6d:82:f8: +# 2f:25:70:b2:21:26:c1:72:51:1f:8c:2c:c3:84:90:c3:5a:8f: +# ba:cf:f4:a7:65:a5:eb:98:d1:fb:05:b2:46:75:15:23:6a:6f: +# 85:63:30:80:f0:d5:9e:1f:29:1c:c2:6c:b0:50:59:5d:90:5b: +# 3b:a8:0d:30:cf:bf:7d:7f:ce:f1:9d:83:bd:c9:46:6e:20:a6: +# f9:61:51:ba:21:2f:7b:be:a5:15:63:a1:d4:95:87:f1:9e:b9: +# f3:89:f3:3d:85:b8:b8:db:be:b5:b9:29:f9:da:37:05:00:49: +# 94:03:84:44:e7:bf:43:31:cf:75:8b:25:d1:f4:a6:64:f5:92: +# f6:ab:05:eb:3d:e9:a5:0b:36:62:da:cc:06:5f:36:8b:b6:5e: +# 31:b8:2a:fb:5e:f6:71:df:44:26:9e:c4:e6:0d:91:b4:2e:75: +# 95:80:51:6a:4b:30:a6:b0:62:a1:93:f1:9b:d8:ce:c4:63:75: +# 3f:59:47:b1 + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GA CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy0+zAJs9Nt350UlqaxBJ +H+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxRVVuuk+g3/ytr6dTqvirdqFEr12bDYVxg +Asj1znJ7O7jyTmUIms2kahnBAbtzptf2w93NvKSLtZlhuAGio9RN1AU9ka34tAhx +ZK9w8RxrfvbDd50kc3vkDIzh2TbhmYsFmQvtRTEJysIA2/dyoJaqlYfQjse2YXMN +dmaM3Bu0Y6Kff5MTMPGhJ9vZ/yxViJGg4E8HsChWjBgbl0SOid3gF27nKu+POQox +hILYQBRJLnpB5Kf+42TMwVlxSywhp1t94B3RLoGbw9ho972WG6xwsRYUC9tguSYB +BQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GA CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCB +ijELMAkGA1UEBhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHly +aWdodCAoYykgMjAwNTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl +ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQSBDQTAeFw0w +NTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYDVQQGEwJDSDEQMA4G +A1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIwIAYD +VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBX +SVNlS2V5IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEAy0+zAJs9Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxR +VVuuk+g3/ytr6dTqvirdqFEr12bDYVxgAsj1znJ7O7jyTmUIms2kahnBAbtzptf2 +w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbDd50kc3vkDIzh2TbhmYsF +mQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ/yxViJGg +4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t9 +4B3RLoGbw9ho972WG6xwsRYUC9tguSYBBQIDAQABo1EwTzALBgNVHQ8EBAMCAYYw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUswN+rja8sHnR3JQmthG+IbJphpQw +EAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBAEuh/wuHbrP5wUOx +SPMowB0uyQlB+pQAHKSkq0lPjz0e701vvbyk9vImMMkQyh2I+3QZH4VFvbBsUfk2 +ftv1TDI6QU9bR8/oCy22xBmddMVHxjtqD6wU2zz0c5ypBd8A3HR4+vg1YFkCExh8 +vPtNsCBtQ7tgMHpnM1zFmdH4LTlSc/uMqpclXHLZCB6rTjzjgTGfA6b7wP4piFXa +hNVQA7bihKOmNqoROgHhGEvWRGizPflTdISzRpFGlgC3gCy24eMQ4tui5yiPAZZi +Fj4A4xylNoEYokxSdsARo27mHbrjWr42U8U+dY+GaSlYU7Wcu2+fXMUY7N0v4ZjJ +/L7fCg0= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 41:3d:72:c7:f4:6b:1f:81:43:7d:f1:d2:28:54:df:9a +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=CH, O=WISeKey, OU=Copyright (c) 2005, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GA CA +# Validity +# Not Before: Dec 11 16:03:44 2005 GMT +# Not After : Dec 11 16:09:51 2037 GMT +# Subject: C=CH, O=WISeKey, OU=Copyright (c) 2005, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GA CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:cb:4f:b3:00:9b:3d:36:dd:f9:d1:49:6a:6b:10: +# 49:1f:ec:d8:2b:b2:c6:f8:32:81:29:43:95:4c:9a: +# 19:23:21:15:45:de:e3:c8:1c:51:55:5b:ae:93:e8: +# 37:ff:2b:6b:e9:d4:ea:be:2a:dd:a8:51:2b:d7:66: +# c3:61:5c:60:02:c8:f5:ce:72:7b:3b:b8:f2:4e:65: +# 08:9a:cd:a4:6a:19:c1:01:bb:73:a6:d7:f6:c3:dd: +# cd:bc:a4:8b:b5:99:61:b8:01:a2:a3:d4:4d:d4:05: +# 3d:91:ad:f8:b4:08:71:64:af:70:f1:1c:6b:7e:f6: +# c3:77:9d:24:73:7b:e4:0c:8c:e1:d9:36:e1:99:8b: +# 05:99:0b:ed:45:31:09:ca:c2:00:db:f7:72:a0:96: +# aa:95:87:d0:8e:c7:b6:61:73:0d:76:66:8c:dc:1b: +# b4:63:a2:9f:7f:93:13:30:f1:a1:27:db:d9:ff:2c: +# 55:88:91:a0:e0:4f:07:b0:28:56:8c:18:1b:97:44: +# 8e:89:dd:e0:17:6e:e7:2a:ef:8f:39:0a:31:84:82: +# d8:40:14:49:2e:7a:41:e4:a7:fe:e3:64:cc:c1:59: +# 71:4b:2c:21:a7:5b:7d:e0:1d:d1:2e:81:9b:c3:d8: +# 68:f7:bd:96:1b:ac:70:b1:16:14:0b:db:60:b9:26: +# 01:05 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# B3:03:7E:AE:36:BC:B0:79:D1:DC:94:26:B6:11:BE:21:B2:69:86:94 +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 4b:a1:ff:0b:87:6e:b3:f9:c1:43:b1:48:f3:28:c0:1d:2e:c9: +# 09:41:fa:94:00:1c:a4:a4:ab:49:4f:8f:3d:1e:ef:4d:6f:bd: +# bc:a4:f6:f2:26:30:c9:10:ca:1d:88:fb:74:19:1f:85:45:bd: +# b0:6c:51:f9:36:7e:db:f5:4c:32:3a:41:4f:5b:47:cf:e8:0b: +# 2d:b6:c4:19:9d:74:c5:47:c6:3b:6a:0f:ac:14:db:3c:f4:73: +# 9c:a9:05:df:00:dc:74:78:fa:f8:35:60:59:02:13:18:7c:bc: +# fb:4d:b0:20:6d:43:bb:60:30:7a:67:33:5c:c5:99:d1:f8:2d: +# 39:52:73:fb:8c:aa:97:25:5c:72:d9:08:1e:ab:4e:3c:e3:81: +# 31:9f:03:a6:fb:c0:fe:29:88:55:da:84:d5:50:03:b6:e2:84: +# a3:a6:36:aa:11:3a:01:e1:18:4b:d6:44:68:b3:3d:f9:53:74: +# 84:b3:46:91:46:96:00:b7:80:2c:b6:e1:e3:10:e2:db:a2:e7: +# 28:8f:01:96:62:16:3e:00:e3:1c:a5:36:81:18:a2:4c:52:76: +# c0:11:a3:6e:e6:1d:ba:e3:5a:be:36:53:c5:3e:75:8f:86:69: +# 29:58:53:b5:9c:bb:6f:9f:5c:c5:18:ec:dd:2f:e1:98:c9:fc: +# be:df:0a:0d + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GB CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3HEokKtaXscriHvt9 +OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGxWuR51jIjK+FTzJlF +XHtPrby/h0oLS5daqPZI7H17Dc0hBt+eFf1Biki3IPShehtX1F1Q/7pn2COZH8g/ +497/b1t3sWtuuMlk9+HKQUYOKXHQuSP8yYFfTvdv37+ErXNku7dCjmn21HYdfp2n +uFeKUWdy19SouJVUQHMD9ur06/4oQnc/nSMbsrY9gBQHTC5P99UKFg29ZkM3fiND +ecNAhvVMKdqOmq0NpQSHiB6F4+lT1ZvIiwNjeOvgGUpuuy9rM2RYk61pv48b74JI +xwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GB CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBt +MQswCQYDVQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUg +Rm91bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9i +YWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAwMzJaFw0zOTEyMDExNTEwMzFaMG0x +CzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQLExlPSVNURSBG +b3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh +bCBSb290IEdCIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3 +HEokKtaXscriHvt9OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGx +WuR51jIjK+FTzJlFXHtPrby/h0oLS5daqPZI7H17Dc0hBt+eFf1Biki3IPShehtX +1F1Q/7pn2COZH8g/497/b1t3sWtuuMlk9+HKQUYOKXHQuSP8yYFfTvdv37+ErXNk +u7dCjmn21HYdfp2nuFeKUWdy19SouJVUQHMD9ur06/4oQnc/nSMbsrY9gBQHTC5P +99UKFg29ZkM3fiNDecNAhvVMKdqOmq0NpQSHiB6F4+lT1ZvIiwNjeOvgGUpuuy9r +M2RYk61pv48b74JIxwIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUw +AwEB/zAdBgNVHQ4EFgQUNQ/INmNe4qPs+TtmFc5RUuORmj0wEAYJKwYBBAGCNxUB +BAMCAQAwDQYJKoZIhvcNAQELBQADggEBAEBM+4eymYGQfp3FsLAmzYh7KzKNbrgh +cViXfa43FK8+5/ea4n32cZiZBKpDdHij40lhPnOMTZTg+XHEthYOU3gf1qKHLwI5 +gSk8rxWYITD+KJAAjNHhy/peyP34EEY7onhCkRd0VQreUGdNZtGn//3ZwLWoo4rO +ZvUPQ82nK1d7Y0Zqqi5S2PTt4W2tKZB4SLrhI6qjiey1q5bAtEuiHZeeevJuQHHf +aPFlTc58Bd9TZaml8LGXBHAVRgOY1NK/VLSgWH1Sb9pWJmLU2NuJMW8c8CLC02Ic +Nc1MaRVUGpCY3useX8p3x8uOPUNpnJpY0CQ73xtAln41rYHHTnG6iBM= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 76:b1:20:52:74:f0:85:87:46:b3:f8:23:1a:f6:c2:c0 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CH, O=WISeKey, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GB CA +# Validity +# Not Before: Dec 1 15:00:32 2014 GMT +# Not After : Dec 1 15:10:31 2039 GMT +# Subject: C=CH, O=WISeKey, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GB CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d8:17:b7:1c:4a:24:2a:d6:97:b1:ca:e2:1e:fb: +# 7d:38:ef:98:f5:b2:39:98:4e:27:b8:11:5d:7b:d2: +# 25:94:88:82:15:26:6a:1b:31:bb:a8:5b:21:21:2b: +# d8:0f:4e:9f:5a:f1:b1:5a:e4:79:d6:32:23:2b:e1: +# 53:cc:99:45:5c:7b:4f:ad:bc:bf:87:4a:0b:4b:97: +# 5a:a8:f6:48:ec:7d:7b:0d:cd:21:06:df:9e:15:fd: +# 41:8a:48:b7:20:f4:a1:7a:1b:57:d4:5d:50:ff:ba: +# 67:d8:23:99:1f:c8:3f:e3:de:ff:6f:5b:77:b1:6b: +# 6e:b8:c9:64:f7:e1:ca:41:46:0e:29:71:d0:b9:23: +# fc:c9:81:5f:4e:f7:6f:df:bf:84:ad:73:64:bb:b7: +# 42:8e:69:f6:d4:76:1d:7e:9d:a7:b8:57:8a:51:67: +# 72:d7:d4:a8:b8:95:54:40:73:03:f6:ea:f4:eb:fe: +# 28:42:77:3f:9d:23:1b:b2:b6:3d:80:14:07:4c:2e: +# 4f:f7:d5:0a:16:0d:bd:66:43:37:7e:23:43:79:c3: +# 40:86:f5:4c:29:da:8e:9a:ad:0d:a5:04:87:88:1e: +# 85:e3:e9:53:d5:9b:c8:8b:03:63:78:eb:e0:19:4a: +# 6e:bb:2f:6b:33:64:58:93:ad:69:bf:8f:1b:ef:82: +# 48:c7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 35:0F:C8:36:63:5E:E2:A3:EC:F9:3B:66:15:CE:51:52:E3:91:9A:3D +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 40:4c:fb:87:b2:99:81:90:7e:9d:c5:b0:b0:26:cd:88:7b:2b: +# 32:8d:6e:b8:21:71:58:97:7d:ae:37:14:af:3e:e7:f7:9a:e2: +# 7d:f6:71:98:99:04:aa:43:74:78:a3:e3:49:61:3e:73:8c:4d: +# 94:e0:f9:71:c4:b6:16:0e:53:78:1f:d6:a2:87:2f:02:39:81: +# 29:3c:af:15:98:21:30:fe:28:90:00:8c:d1:e1:cb:fa:5e:c8: +# fd:f8:10:46:3b:a2:78:42:91:17:74:55:0a:de:50:67:4d:66: +# d1:a7:ff:fd:d9:c0:b5:a8:a3:8a:ce:66:f5:0f:43:cd:a7:2b: +# 57:7b:63:46:6a:aa:2e:52:d8:f4:ed:e1:6d:ad:29:90:78:48: +# ba:e1:23:aa:a3:89:ec:b5:ab:96:c0:b4:4b:a2:1d:97:9e:7a: +# f2:6e:40:71:df:68:f1:65:4d:ce:7c:05:df:53:65:a9:a5:f0: +# b1:97:04:70:15:46:03:98:d4:d2:bf:54:b4:a0:58:7d:52:6f: +# da:56:26:62:d4:d8:db:89:31:6f:1c:f0:22:c2:d3:62:1c:35: +# cd:4c:69:15:54:1a:90:98:de:eb:1e:5f:ca:77:c7:cb:8e:3d: +# 43:69:9c:9a:58:d0:24:3b:df:1b:40:96:7e:35:ad:81:c7:4e: +# 71:ba:88:13 + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GC CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdrVCTb +Uf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4Wp2OQ0jnUsYd4 +XxiWD1AbNTcPasbc2RNNpI6QN+a9WzGR +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "OISTE WISeKey Global Root GC CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQsw +CQYDVQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91 +bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwg +Um9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRaFw00MjA1MDkwOTU4MzNaMG0xCzAJ +BgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQLExlPSVNURSBGb3Vu +ZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2JhbCBS +b290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4ni +eUqjFqdrVCTbUf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4W +p2OQ0jnUsYd4XxiWD1AbNTcPasbc2RNNpI6QN+a9WzGRo1QwUjAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUSIcUrOPDnpBgOtfKie7T +rYy0UGYwEAYJKwYBBAGCNxUBBAMCAQAwCgYIKoZIzj0EAwMDaAAwZQIwJsdpW9zV +57LnyAyMjMPdeYwbY9XJUpROTYJKcx6ygISpJcBMWm1JKWB4E+J+SOtkAjEA2zQg +Mgj/mkkCtojeFK9dbJlxjRo/i9fgojaGHAeCOnZT/cKi7e97sIBPWA9LUzm9 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 21:2a:56:0c:ae:da:0c:ab:40:45:bf:2b:a2:2d:3a:ea +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=CH, O=WISeKey, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GC CA +# Validity +# Not Before: May 9 09:48:34 2017 GMT +# Not After : May 9 09:58:33 2042 GMT +# Subject: C=CH, O=WISeKey, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GC CA +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:4c:e9:50:c0:c6:0f:72:18:bc:d8:f1:ba:b3:89: +# e2:79:4a:a3:16:a7:6b:54:24:db:51:ff:ea:f4:09: +# 24:c3:0b:22:9f:cb:6a:27:82:81:0d:d2:c0:af:31: +# e4:74:82:6e:ca:25:d9:8c:75:9d:f1:db:d0:9a:a2: +# 4b:21:7e:16:a7:63:90:d2:39:d4:b1:87:78:5f:18: +# 96:0f:50:1b:35:37:0f:6a:c6:dc:d9:13:4d:a4:8e: +# 90:37:e6:bd:5b:31:91 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 48:87:14:AC:E3:C3:9E:90:60:3A:D7:CA:89:EE:D3:AD:8C:B4:50:66 +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:26:c7:69:5b:dc:d5:e7:b2:e7:c8:0c:8c:8c:c3: +# dd:79:8c:1b:63:d5:c9:52:94:4e:4d:82:4a:73:1e:b2:80:84: +# a9:25:c0:4c:5a:6d:49:29:60:78:13:e2:7e:48:eb:64:02:31: +# 00:db:34:20:32:08:ff:9a:49:02:b6:88:de:14:af:5d:6c:99: +# 71:8d:1a:3f:8b:d7:e0:a2:36:86:1c:07:82:3a:76:53:fd:c2: +# a2:ed:ef:7b:b0:80:4f:58:0f:4b:53:39:bd + +[p11-kit-object-v1] +label: "QuoVadis Root CA 1 G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoL5QEI7p8mxAtASchbkx +ytwt5BGpBDwbVcHnWDAdJLTD74XejCzhwT3fguZPrUeHbOxbScFK1buP7Iesf4Ka +huw9A5lSAdI1nqza8FPJZjzUrAIB2iTTO6gCRq+kHOP4c1h2t/YOkA218M/M+vnG +TOXDhjAKjRd+NevF37sOnMCNh+OIOIVn+j7Hq+ATnAUYmM+T9bGStPwj08/VxCdJ +4J48mwiji10qIeD8OapT2n1+zxoJU7xdBQTPoUqPi3aCDaH40scUd1uQNgeBmz4G ++lJeY8WmAP6l6VIbUrWSOXIDCWK9sGAWbqbdJcIDZt3zBNFA4k6LhvRv5YOgJ4Re +BMH1kL0wPcTvqGm8OJukpJbRYtppwAGWrsvEUTTqDKr/IY5Zj0pc5GGap9LpKniN +UT06Fe6iWY6pXN7F+ZAi5YhFcd2RmWx6nz09mHxe9r4WaKBergsj/FoPqiJ2Lcmh +EB3k00QjkIifxirm1/Was1geLzCJCBtUorWYI+wIdxyVXWHRy4mcX6JKkZrvIapJ +FgiovWEoMcl0rYX22cWxi9HlEDJNX4sgOjxJHzOFWQ3bywl1Q2lz+2txffDfxEx9 +xqMuyJV5y3Oijk5NJPte5AS+chumJy1JWpl611wJILd/lLlP8Q0cXohCGxG355Hb +nmz0at+MBpgDrcwo76VH81MCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "QuoVadis Root CA 1 G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQEL +BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc +BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw00 +MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM +aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEgRzMwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakEPBtV +wedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWe +rNrwU8lmPNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF341 +68Xfuw6cwI2H44g4hWf6Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh +4Pw5qlPafX7PGglTvF0FBM+hSo+LdoINofjSxxR3W5A2B4GbPgb6Ul5jxaYA/qXp +UhtStZI5cgMJYr2wYBZupt0lwgNm3fME0UDiTouG9G/lg6AnhF4EwfWQvTA9xO+o +abw4m6SkltFi2mnAAZauy8RRNOoMqv8hjlmPSlzkYZqn0ukqeI1RPToV7qJZjqlc +3sX5kCLliEVx3ZGZbHqfPT2YfF72vhZooF6uCyP8Wg+qInYtyaEQHeTTRCOQiJ/G +KubX9ZqzWB4vMIkIG1SitZgj7Ah3HJVdYdHLiZxfokqRmu8hqkkWCKi9YSgxyXSt +hfbZxbGL0eUQMk1fiyA6PEkfM4VZDdvLCXVDaXP7a3F98N/ETH3Goy7IlXnLc6KO +Tk0k+17kBL5yG6YnLUlamXrXXAkgt3+UuU/xDRxeiEIbEbfnkduebPRq34wGmAOt +zCjvpUfzUwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB +BjAdBgNVHQ4EFgQUo5fW816iEOGrRZ88F2Q87gFwnMwwDQYJKoZIhvcNAQELBQAD +ggIBABj6W3X8PnrHX3fHyt/PX8MSxEBd1DKquGrX1RUVRpgjpeaQWxiZTOOtQqOC +MTaIzen7xASWSIsBx40Bz1szBpZGZnQdT+3Btrm0DWHMY37XLneMlhwqI2hrhVd2 +cDMT/uFPpiN3GPoajOi9ZcnPP/TJF9zrx7zABC4tRi9pZsMbj/7sPtPKlL92CiUN +qXsCHKnQO18LwIE6PWThv6ctTr1NxNgpxiIY0MWscgKCP6o6ojoilzHdCGPDdRS5 +YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP+V04ikkwj+3x6xn0dxoxGE1nVGwv +b2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh3jRJjehZrJ3ydlo2 +8hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fawx/k +NSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNj +ZgKAvQU6O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhp +q1467HxpvMc7hU6eFbm0FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFt +nh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOVhMJKzRwuJIczYOXD +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 78:58:5f:2e:ad:2c:19:4b:e3:37:07:35:34:13:28:b5:96:d4:65:93 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 1 G3 +# Validity +# Not Before: Jan 12 17:27:44 2012 GMT +# Not After : Jan 12 17:27:44 2042 GMT +# Subject: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 1 G3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a0:be:50:10:8e:e9:f2:6c:40:b4:04:9c:85:b9: +# 31:ca:dc:2d:e4:11:a9:04:3c:1b:55:c1:e7:58:30: +# 1d:24:b4:c3:ef:85:de:8c:2c:e1:c1:3d:df:82:e6: +# 4f:ad:47:87:6c:ec:5b:49:c1:4a:d5:bb:8f:ec:87: +# ac:7f:82:9a:86:ec:3d:03:99:52:01:d2:35:9e:ac: +# da:f0:53:c9:66:3c:d4:ac:02:01:da:24:d3:3b:a8: +# 02:46:af:a4:1c:e3:f8:73:58:76:b7:f6:0e:90:0d: +# b5:f0:cf:cc:fa:f9:c6:4c:e5:c3:86:30:0a:8d:17: +# 7e:35:eb:c5:df:bb:0e:9c:c0:8d:87:e3:88:38:85: +# 67:fa:3e:c7:ab:e0:13:9c:05:18:98:cf:93:f5:b1: +# 92:b4:fc:23:d3:cf:d5:c4:27:49:e0:9e:3c:9b:08: +# a3:8b:5d:2a:21:e0:fc:39:aa:53:da:7d:7e:cf:1a: +# 09:53:bc:5d:05:04:cf:a1:4a:8f:8b:76:82:0d:a1: +# f8:d2:c7:14:77:5b:90:36:07:81:9b:3e:06:fa:52: +# 5e:63:c5:a6:00:fe:a5:e9:52:1b:52:b5:92:39:72: +# 03:09:62:bd:b0:60:16:6e:a6:dd:25:c2:03:66:dd: +# f3:04:d1:40:e2:4e:8b:86:f4:6f:e5:83:a0:27:84: +# 5e:04:c1:f5:90:bd:30:3d:c4:ef:a8:69:bc:38:9b: +# a4:a4:96:d1:62:da:69:c0:01:96:ae:cb:c4:51:34: +# ea:0c:aa:ff:21:8e:59:8f:4a:5c:e4:61:9a:a7:d2: +# e9:2a:78:8d:51:3d:3a:15:ee:a2:59:8e:a9:5c:de: +# c5:f9:90:22:e5:88:45:71:dd:91:99:6c:7a:9f:3d: +# 3d:98:7c:5e:f6:be:16:68:a0:5e:ae:0b:23:fc:5a: +# 0f:aa:22:76:2d:c9:a1:10:1d:e4:d3:44:23:90:88: +# 9f:c6:2a:e6:d7:f5:9a:b3:58:1e:2f:30:89:08:1b: +# 54:a2:b5:98:23:ec:08:77:1c:95:5d:61:d1:cb:89: +# 9c:5f:a2:4a:91:9a:ef:21:aa:49:16:08:a8:bd:61: +# 28:31:c9:74:ad:85:f6:d9:c5:b1:8b:d1:e5:10:32: +# 4d:5f:8b:20:3a:3c:49:1f:33:85:59:0d:db:cb:09: +# 75:43:69:73:fb:6b:71:7d:f0:df:c4:4c:7d:c6:a3: +# 2e:c8:95:79:cb:73:a2:8e:4e:4d:24:fb:5e:e4:04: +# be:72:1b:a6:27:2d:49:5a:99:7a:d7:5c:09:20:b7: +# 7f:94:b9:4f:f1:0d:1c:5e:88:42:1b:11:b7:e7:91: +# db:9e:6c:f4:6a:df:8c:06:98:03:ad:cc:28:ef:a5: +# 47:f3:53 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# A3:97:D6:F3:5E:A2:10:E1:AB:45:9F:3C:17:64:3C:EE:01:70:9C:CC +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 18:fa:5b:75:fc:3e:7a:c7:5f:77:c7:ca:df:cf:5f:c3:12:c4: +# 40:5d:d4:32:aa:b8:6a:d7:d5:15:15:46:98:23:a5:e6:90:5b: +# 18:99:4c:e3:ad:42:a3:82:31:36:88:cd:e9:fb:c4:04:96:48: +# 8b:01:c7:8d:01:cf:5b:33:06:96:46:66:74:1d:4f:ed:c1:b6: +# b9:b4:0d:61:cc:63:7e:d7:2e:77:8c:96:1c:2a:23:68:6b:85: +# 57:76:70:33:13:fe:e1:4f:a6:23:77:18:fa:1a:8c:e8:bd:65: +# c9:cf:3f:f4:c9:17:dc:eb:c7:bc:c0:04:2e:2d:46:2f:69:66: +# c3:1b:8f:fe:ec:3e:d3:ca:94:bf:76:0a:25:0d:a9:7b:02:1c: +# a9:d0:3b:5f:0b:c0:81:3a:3d:64:e1:bf:a7:2d:4e:bd:4d:c4: +# d8:29:c6:22:18:d0:c5:ac:72:02:82:3f:aa:3a:a2:3a:22:97: +# 31:dd:08:63:c3:75:14:b9:60:28:2d:5b:68:e0:16:a9:66:82: +# 23:51:f5:eb:53:d8:31:9b:7b:e9:b7:9d:4b:eb:88:16:cf:f9: +# 5d:38:8a:49:30:8f:ed:f1:eb:19:f4:77:1a:31:18:4d:67:54: +# 6c:2f:6f:65:f9:db:3d:ec:21:ec:5e:f4:f4:8b:ca:60:65:54: +# d1:71:64:f4:f9:a6:a3:81:33:36:33:71:f0:a4:78:5f:4e:ad: +# 83:21:de:34:49:8d:e8:59:ac:9d:f2:76:5a:36:f2:13:f4:af: +# e0:09:c7:61:2a:6c:f7:e0:9d:ae:bb:86:4a:28:6f:2e:ee:b4: +# 79:cd:90:33:c3:b3:76:fa:f5:f0:6c:9d:01:90:fa:9e:90:f6: +# 9c:72:cf:47:da:c3:1f:e4:35:20:53:f2:54:d1:df:61:83:a6: +# 02:e2:25:38:de:85:32:2d:5e:73:90:52:5d:42:c4:ce:3d:4b: +# e1:f9:19:84:1d:d5:a2:50:cc:41:fb:41:14:c3:bd:d6:c9:5a: +# a3:63:66:02:80:bd:05:3a:3b:47:9c:ec:00:26:4c:f5:88:51: +# bf:a8:23:7f:18:07:b0:0b:ed:8b:26:a1:64:d3:61:4a:eb:5c: +# 9f:de:b3:af:67:03:b3:1f:dd:6d:5d:69:68:69:ab:5e:3a:ec: +# 7c:69:bc:c7:3b:85:4e:9e:15:b9:b4:15:4f:c3:95:7a:58:d7: +# c9:6c:e9:6c:b9:f3:29:63:5e:b4:2c:f0:2d:3d:ed:5a:65:e0: +# a9:5b:40:c2:48:99:81:6d:9e:1f:06:2a:3c:12:b4:8b:0f:9b: +# a2:24:f0:a6:8d:d6:7a:e0:4b:b6:64:96:63:95:84:c2:4a:cd: +# 1c:2e:24:87:33:60:e5:c3 + +[p11-kit-object-v1] +label: "QuoVadis Root CA 2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmhjKS5QNAC2vAymK8A+B +yK5MGYUdCJ+rKUSF8y+BrTIekEa/o4YmGh7+fhwYOlycYBcqOnSDMzB9YVQRy+2r +4ObSon71a28YtwoLLf3pPu8KxrMQ6dzCRhf4Xf2k2v+eSVqc5jPmJJb3P7pbKxx6 +NcLWZ/6rZlCLbShgK+/XYMPHk7yNNpHzf/jbERPEnHd2wa63AmqBeqlFg+IF5rlW +wZQ3j0hxYyLsF2UHlYpL34/GWgrlsONfXmsRqwz5hetE6fgEc/Lp/lyYjPVzr2u0 +fs3UXAIrTDnhspWVLUKH19WzkEO3bBPx3t32xPiJP9F19ZLDkdWKiNCQ7Nxt3onC +ZXGWiw0D/Zy/Wxasktvq/nl8reuv9xbL280lK+Uf+5qf4lHMOlMMSOYOvcm0dgZS +5hEThXJjAwTgBDYrIBkC6HSnH7bJVmbwdSXcZ8EOYWCIsz7RqPyj2h2w0bEjVN9E +dm3tQdjBsiK2UxzfNR3coXcqMeQt9eXl28jg/+WA1wtjoP8zoQ+6LBUV6pez0qK1 +vvKMlh4ajx1spGE3uYZzM9eXlp4jfYKkTIHiodG6Z1+VB6MnEe4WEHu8RUpMsgTS +q+/V/QxRzlBqCDH5kdoMj2RcA8M6iyA/bo1nPTrW/n1biMle+8xh3Iszd9NEMjUJ +YgSSFhDYnidH+zsh4/jrHVsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "QuoVadis Root CA 2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0x +GTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJv +b3QgQ0EgMjAeFw0wNjExMjQxODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNV +BAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMRswGQYDVQQDExJRdW9W +YWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCa +GMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6XJxg +Fyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55J +WpzmM+Yklvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bB +rrcCaoF6qUWD4gXmuVbBlDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp ++ARz8un+XJiM9XOva7R+zdRcAitMOeGylZUtQofX1bOQQ7dsE/He3fbE+Ik/0XX1 +ksOR1YqI0JDs3G3eicJlcZaLDQP9nL9bFqyS2+r+eXyt66/3FsvbzSUr5R/7mp/i +Ucw6UwxI5g69ybR2BlLmEROFcmMDBOAENisgGQLodKcftslWZvB1JdxnwQ5hYIiz +PtGo/KPaHbDRsSNU30R2be1B2MGyIrZTHN81Hdyhdyox5C315eXbyOD/5YDXC2Og +/zOhD7osFRXql7PSorW+8oyWHhqPHWykYTe5hnMz15eWniN9gqRMgeKh0bpnX5UH +oycR7hYQe7xFSkyyBNKr79X9DFHOUGoIMfmR2gyPZFwDwzqLID9ujWc9Otb+fVuI +yV77zGHcizN300QyNQliBJIWENieJ0f7OyHj+OsdWwIDAQABo4GwMIGtMA8GA1Ud +EwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1UdDgQWBBQahGK8SEwzJQTU7tD2 +A8QZRtGUazBuBgNVHSMEZzBlgBQahGK8SEwzJQTU7tD2A8QZRtGUa6FJpEcwRTEL +MAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMT +ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2f +BluornFdLwUvZ+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzn +g/iN/Ae42l9NLmeyhP3ZRPx3UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2Bl +fF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodmVjB3pjd4M1IQWK4/YY7yarHvGH5K +WWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK+JDSV6IZUaUtl0Ha +B0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrWIozc +hLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPR +TUIZ3Ph1WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWD +mbA4CD/pXvk1B+TJYm5Xf6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0Z +ohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y +4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8VCLAAVBpQ570su9t+Oza +8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1289 (0x509) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2 +# Validity +# Not Before: Nov 24 18:27:00 2006 GMT +# Not After : Nov 24 18:23:33 2031 GMT +# Subject: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:9a:18:ca:4b:94:0d:00:2d:af:03:29:8a:f0:0f: +# 81:c8:ae:4c:19:85:1d:08:9f:ab:29:44:85:f3:2f: +# 81:ad:32:1e:90:46:bf:a3:86:26:1a:1e:fe:7e:1c: +# 18:3a:5c:9c:60:17:2a:3a:74:83:33:30:7d:61:54: +# 11:cb:ed:ab:e0:e6:d2:a2:7e:f5:6b:6f:18:b7:0a: +# 0b:2d:fd:e9:3e:ef:0a:c6:b3:10:e9:dc:c2:46:17: +# f8:5d:fd:a4:da:ff:9e:49:5a:9c:e6:33:e6:24:96: +# f7:3f:ba:5b:2b:1c:7a:35:c2:d6:67:fe:ab:66:50: +# 8b:6d:28:60:2b:ef:d7:60:c3:c7:93:bc:8d:36:91: +# f3:7f:f8:db:11:13:c4:9c:77:76:c1:ae:b7:02:6a: +# 81:7a:a9:45:83:e2:05:e6:b9:56:c1:94:37:8f:48: +# 71:63:22:ec:17:65:07:95:8a:4b:df:8f:c6:5a:0a: +# e5:b0:e3:5f:5e:6b:11:ab:0c:f9:85:eb:44:e9:f8: +# 04:73:f2:e9:fe:5c:98:8c:f5:73:af:6b:b4:7e:cd: +# d4:5c:02:2b:4c:39:e1:b2:95:95:2d:42:87:d7:d5: +# b3:90:43:b7:6c:13:f1:de:dd:f6:c4:f8:89:3f:d1: +# 75:f5:92:c3:91:d5:8a:88:d0:90:ec:dc:6d:de:89: +# c2:65:71:96:8b:0d:03:fd:9c:bf:5b:16:ac:92:db: +# ea:fe:79:7c:ad:eb:af:f7:16:cb:db:cd:25:2b:e5: +# 1f:fb:9a:9f:e2:51:cc:3a:53:0c:48:e6:0e:bd:c9: +# b4:76:06:52:e6:11:13:85:72:63:03:04:e0:04:36: +# 2b:20:19:02:e8:74:a7:1f:b6:c9:56:66:f0:75:25: +# dc:67:c1:0e:61:60:88:b3:3e:d1:a8:fc:a3:da:1d: +# b0:d1:b1:23:54:df:44:76:6d:ed:41:d8:c1:b2:22: +# b6:53:1c:df:35:1d:dc:a1:77:2a:31:e4:2d:f5:e5: +# e5:db:c8:e0:ff:e5:80:d7:0b:63:a0:ff:33:a1:0f: +# ba:2c:15:15:ea:97:b3:d2:a2:b5:be:f2:8c:96:1e: +# 1a:8f:1d:6c:a4:61:37:b9:86:73:33:d7:97:96:9e: +# 23:7d:82:a4:4c:81:e2:a1:d1:ba:67:5f:95:07:a3: +# 27:11:ee:16:10:7b:bc:45:4a:4c:b2:04:d2:ab:ef: +# d5:fd:0c:51:ce:50:6a:08:31:f9:91:da:0c:8f:64: +# 5c:03:c3:3a:8b:20:3f:6e:8d:67:3d:3a:d6:fe:7d: +# 5b:88:c9:5e:fb:cc:61:dc:8b:33:77:d3:44:32:35: +# 09:62:04:92:16:10:d8:9e:27:47:fb:3b:21:e3:f8: +# eb:1d:5b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 1A:84:62:BC:48:4C:33:25:04:D4:EE:D0:F6:03:C4:19:46:D1:94:6B +# X509v3 Authority Key Identifier: +# keyid:1A:84:62:BC:48:4C:33:25:04:D4:EE:D0:F6:03:C4:19:46:D1:94:6B +# DirName:/C=BM/O=QuoVadis Limited/CN=QuoVadis Root CA 2 +# serial:05:09 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 3e:0a:16:4d:9f:06:5b:a8:ae:71:5d:2f:05:2f:67:e6:13:45: +# 83:c4:36:f6:f3:c0:26:0c:0d:b5:47:64:5d:f8:b4:72:c9:46: +# a5:03:18:27:55:89:78:7d:76:ea:96:34:80:17:20:dc:e7:83: +# f8:8d:fc:07:b8:da:5f:4d:2e:67:b2:84:fd:d9:44:fc:77:50: +# 81:e6:7c:b4:c9:0d:0b:72:53:f8:76:07:07:41:47:96:0c:fb: +# e0:82:26:93:55:8c:fe:22:1f:60:65:7c:5f:e7:26:b3:f7:32: +# 90:98:50:d4:37:71:55:f6:92:21:78:f7:95:79:fa:f8:2d:26: +# 87:66:56:30:77:a6:37:78:33:52:10:58:ae:3f:61:8e:f2:6a: +# b1:ef:18:7e:4a:59:63:ca:8d:a2:56:d5:a7:2f:bc:56:1f:cf: +# 39:c1:e2:fb:0a:a8:15:2c:7d:4d:7a:63:c6:6c:97:44:3c:d2: +# 6f:c3:4a:17:0a:f8:90:d2:57:a2:19:51:a5:2d:97:41:da:07: +# 4f:a9:50:da:90:8d:94:46:e1:3e:f0:94:fd:10:00:38:f5:3b: +# e8:40:e1:b4:6e:56:1a:20:cc:6f:58:8d:ed:2e:45:8f:d6:e9: +# 93:3f:e7:b1:2c:df:3a:d6:22:8c:dc:84:bb:22:6f:d0:f8:e4: +# c6:39:e9:04:88:3c:c3:ba:eb:55:7a:6d:80:99:24:f5:6c:01: +# fb:f8:97:b0:94:5b:eb:fd:d2:6f:f1:77:68:0d:35:64:23:ac: +# b8:55:a1:03:d1:4d:42:19:dc:f8:75:59:56:a3:f9:a8:49:79: +# f8:af:0e:b9:11:a0:7c:b7:6a:ed:34:d0:b6:26:62:38:1a:87: +# 0c:f8:e8:fd:2e:d3:90:7f:07:91:2a:1d:d6:7e:5c:85:83:99: +# b0:38:08:3f:e9:5e:f9:35:07:e4:c9:62:6e:57:7f:a7:50:95: +# f7:ba:c8:9b:e6:8e:a2:01:c5:d6:66:bf:79:61:f3:3c:1c:e1: +# b9:82:5c:5d:a0:c3:e9:d8:48:bd:19:a2:11:14:19:6e:b2:86: +# 1b:68:3e:48:37:1a:88:b7:5d:96:5e:9c:c7:ef:27:62:08:e2: +# 91:19:5c:d2:f1:21:dd:ba:17:42:82:97:71:81:53:31:a9:9f: +# f6:7d:62:bf:72:e1:a3:93:1d:cc:8a:26:5a:09:38:d0:ce:d7: +# 0d:80:16:b4:78:a5:3a:87:4c:8d:8a:a5:d5:46:97:f2:2c:10: +# b9:bc:54:22:c0:01:50:69:43:9e:f4:b2:ef:6d:f8:ec:da:f1: +# e3:b1:ef:df:91:8f:54:2a:0b:25:c1:26:19:c4:52:10:05:65: +# d5:82:10:ea:c2:31:cd:2e + +[p11-kit-object-v1] +label: "QuoVadis Root CA 2 G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoa4lsgEY3FeIP0br+a/i +6yNx4prRYWYhX6qvJ1HlbhsW1C19ULBTd714OmDiZAKbfIab1hqOrf8fFX/VlR4S +y+YUhATB3zazFp+K48nbmDTO2DMXKEb8p8nw0rTVTQlySfnyh+Op2n2hfWuyOiWp +bVJErPi+bvvcpnORkGGmAxQg8ueHo4itraCM/6YLJVIl5xYB1cu4NYEMozvw4eH8 +Wl3OgHFt+EmrPju6uNeAAful61uzxV5gKjGgrzfoIDqfqDIsDMwJHdOejl28TJju +xRpoe+xTpukUNaPfzYCfDEj7HPTxv0q4+tWMcUrHH63+QZqzg13yhFbvpVdDzimt +jKtVv8T7WwHdIyGhWACOw9BqE+0T4xIrgNxn5pWyzR4ibir4QdTyyhQHjYpVEsZp +9biGaC9TXrDSqiHBmOYw42dVx5turBmoVaZFBtAjOtvrZV0qERHwO0/KbfQ0xHHk +/wBa9lyuI2CFc/HkELElrtWSuxPBDOA52rQ5V7WrNapyITuDNecx33ohbrgyCH0d +MpEVSmJyz+N3obzVERt2AWcI4EELw+sVbvikGdmiq6/iJ1JWKwKKLBQk+b9CAr8m +yMaP4G44fVMt5e2Ys5VjaH/5NfTfiMVgNZLAfGkcYZUW0OveC68+BBBFZVhQOK9I +8lm2FvI8DZACxnAuAa08FdcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "QuoVadis Root CA 2 G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQEL +BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc +BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00 +MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM +aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIgRzMwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFhZiFf +qq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMW +n4rjyduYNM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ym +c5GQYaYDFCDy54ejiK2toIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+ +O7q414AB+6XrW7PFXmAqMaCvN+ggOp+oMiwMzAkd056OXbxMmO7FGmh77FOm6RQ1 +o9/NgJ8MSPsc9PG/Srj61YxxSscfrf5BmrODXfKEVu+lV0POKa2Mq1W/xPtbAd0j +IaFYAI7D0GoT7RPjEiuA3GfmlbLNHiJuKvhB1PLKFAeNilUSxmn1uIZoL1NesNKq +IcGY5jDjZ1XHm26sGahVpkUG0CM62+tlXSoREfA7T8pt9DTEceT/AFr2XK4jYIVz +8eQQsSWu1ZK7E8EM4DnatDlXtas1qnIhO4M15zHfeiFuuDIIfR0ykRVKYnLP43eh +vNURG3YBZwjgQQvD6xVu+KQZ2aKrr+InUlYrAoosFCT5v0ICvybIxo/gbjh9Uy3l +7ZizlWNof/k19N+IxWA1ksB8aRxhlRbQ694Lrz4EEEVlWFA4r0jyWbYW8jwNkALG +cC4BrTwV1wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB +BjAdBgNVHQ4EFgQU7edvdlq/YOxJW8ald7tyFnGbxD0wDQYJKoZIhvcNAQELBQAD +ggIBAJHfgD9DCX5xwvfrs4iP4VGyvD11+ShdyLyZm3tdquXK4Qr36LLTn91nMX66 +AarHakE7kNQIXLJgapDwyM4DYvmL7ftuKtwGTTwpD4kWilhMSA/ohGHqPHKmd+RC +roijQ1h5fq7KpVMNqT1wvSAZYaRsOPxDMuHBR//47PERIjKWnML2W2mWeyAMQ0Ga +W/ZZGYjeVYg3UQt4XAoeo0L9x52ID8DyeAIkVJOviYeIyUqAHerQbj5hLja7NQ4n +lv1mNDthcnPxFlxHBlRJAHpYErAK74X9sbgzdWqTHBLmYF5vHX/JHyPLhGGfHoJE ++V+tYlUkmlKY7VHnoX6XOuYvHxHaU4AshZ6rNRDbIl9qxV6XU/IyAgkwo1jwDQHV +csaxfGl7w/U2Rcxhbl5MlMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+NwmNtd +dbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNg +KCLjsZWDzYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeM +HVOyToV7BjjHLPj4sHKNJeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa4 +WSr2Rz0ZiC3oheGe7IUIarFsNMkd7EgrO3jtZsSOeWmD3n+M +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 44:57:34:24:5b:81:89:9b:35:f2:ce:b8:2b:3b:5b:a7:26:f0:75:28 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2 G3 +# Validity +# Not Before: Jan 12 18:59:32 2012 GMT +# Not After : Jan 12 18:59:32 2042 GMT +# Subject: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2 G3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a1:ae:25:b2:01:18:dc:57:88:3f:46:eb:f9:af: +# e2:eb:23:71:e2:9a:d1:61:66:21:5f:aa:af:27:51: +# e5:6e:1b:16:d4:2d:7d:50:b0:53:77:bd:78:3a:60: +# e2:64:02:9b:7c:86:9b:d6:1a:8e:ad:ff:1f:15:7f: +# d5:95:1e:12:cb:e6:14:84:04:c1:df:36:b3:16:9f: +# 8a:e3:c9:db:98:34:ce:d8:33:17:28:46:fc:a7:c9: +# f0:d2:b4:d5:4d:09:72:49:f9:f2:87:e3:a9:da:7d: +# a1:7d:6b:b2:3a:25:a9:6d:52:44:ac:f8:be:6e:fb: +# dc:a6:73:91:90:61:a6:03:14:20:f2:e7:87:a3:88: +# ad:ad:a0:8c:ff:a6:0b:25:52:25:e7:16:01:d5:cb: +# b8:35:81:0c:a3:3b:f0:e1:e1:fc:5a:5d:ce:80:71: +# 6d:f8:49:ab:3e:3b:ba:b8:d7:80:01:fb:a5:eb:5b: +# b3:c5:5e:60:2a:31:a0:af:37:e8:20:3a:9f:a8:32: +# 2c:0c:cc:09:1d:d3:9e:8e:5d:bc:4c:98:ee:c5:1a: +# 68:7b:ec:53:a6:e9:14:35:a3:df:cd:80:9f:0c:48: +# fb:1c:f4:f1:bf:4a:b8:fa:d5:8c:71:4a:c7:1f:ad: +# fe:41:9a:b3:83:5d:f2:84:56:ef:a5:57:43:ce:29: +# ad:8c:ab:55:bf:c4:fb:5b:01:dd:23:21:a1:58:00: +# 8e:c3:d0:6a:13:ed:13:e3:12:2b:80:dc:67:e6:95: +# b2:cd:1e:22:6e:2a:f8:41:d4:f2:ca:14:07:8d:8a: +# 55:12:c6:69:f5:b8:86:68:2f:53:5e:b0:d2:aa:21: +# c1:98:e6:30:e3:67:55:c7:9b:6e:ac:19:a8:55:a6: +# 45:06:d0:23:3a:db:eb:65:5d:2a:11:11:f0:3b:4f: +# ca:6d:f4:34:c4:71:e4:ff:00:5a:f6:5c:ae:23:60: +# 85:73:f1:e4:10:b1:25:ae:d5:92:bb:13:c1:0c:e0: +# 39:da:b4:39:57:b5:ab:35:aa:72:21:3b:83:35:e7: +# 31:df:7a:21:6e:b8:32:08:7d:1d:32:91:15:4a:62: +# 72:cf:e3:77:a1:bc:d5:11:1b:76:01:67:08:e0:41: +# 0b:c3:eb:15:6e:f8:a4:19:d9:a2:ab:af:e2:27:52: +# 56:2b:02:8a:2c:14:24:f9:bf:42:02:bf:26:c8:c6: +# 8f:e0:6e:38:7d:53:2d:e5:ed:98:b3:95:63:68:7f: +# f9:35:f4:df:88:c5:60:35:92:c0:7c:69:1c:61:95: +# 16:d0:eb:de:0b:af:3e:04:10:45:65:58:50:38:af: +# 48:f2:59:b6:16:f2:3c:0d:90:02:c6:70:2e:01:ad: +# 3c:15:d7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# ED:E7:6F:76:5A:BF:60:EC:49:5B:C6:A5:77:BB:72:16:71:9B:C4:3D +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 91:df:80:3f:43:09:7e:71:c2:f7:eb:b3:88:8f:e1:51:b2:bc: +# 3d:75:f9:28:5d:c8:bc:99:9b:7b:5d:aa:e5:ca:e1:0a:f7:e8: +# b2:d3:9f:dd:67:31:7e:ba:01:aa:c7:6a:41:3b:90:d4:08:5c: +# b2:60:6a:90:f0:c8:ce:03:62:f9:8b:ed:fb:6e:2a:dc:06:4d: +# 3c:29:0f:89:16:8a:58:4c:48:0f:e8:84:61:ea:3c:72:a6:77: +# e4:42:ae:88:a3:43:58:79:7e:ae:ca:a5:53:0d:a9:3d:70:bd: +# 20:19:61:a4:6c:38:fc:43:32:e1:c1:47:ff:f8:ec:f1:11:22: +# 32:96:9c:c2:f6:5b:69:96:7b:20:0c:43:41:9a:5b:f6:59:19: +# 88:de:55:88:37:51:0b:78:5c:0a:1e:a3:42:fd:c7:9d:88:0f: +# c0:f2:78:02:24:54:93:af:89:87:88:c9:4a:80:1d:ea:d0:6e: +# 3e:61:2e:36:bb:35:0e:27:96:fd:66:34:3b:61:72:73:f1:16: +# 5c:47:06:54:49:00:7a:58:12:b0:0a:ef:85:fd:b1:b8:33:75: +# 6a:93:1c:12:e6:60:5e:6f:1d:7f:c9:1f:23:cb:84:61:9f:1e: +# 82:44:f9:5f:ad:62:55:24:9a:52:98:ed:51:e7:a1:7e:97:3a: +# e6:2f:1f:11:da:53:80:2c:85:9e:ab:35:10:db:22:5f:6a:c5: +# 5e:97:53:f2:32:02:09:30:a3:58:f0:0d:01:d5:72:c6:b1:7c: +# 69:7b:c3:f5:36:45:cc:61:6e:5e:4c:94:c5:5e:ae:e8:0e:5e: +# 8b:bf:f7:cd:e0:ed:a1:0e:1b:33:ee:54:18:fe:0f:be:ef:7e: +# 84:6b:43:e3:70:98:db:5d:75:b2:0d:59:07:85:15:23:39:d6: +# f1:df:a9:26:0f:d6:48:c7:b3:a6:22:f5:33:37:5a:95:47:9f: +# 7b:ba:18:15:6f:ff:d6:14:64:83:49:d2:0a:67:21:db:0f:35: +# 63:60:28:22:e3:b1:95:83:cd:85:a6:dd:2f:0f:e7:67:52:6e: +# bb:2f:85:7c:f5:4a:73:e7:c5:3e:c0:bd:21:12:05:3f:fc:b7: +# 03:49:02:5b:c8:25:e6:e2:54:38:f5:79:87:8c:1d:53:b2:4e: +# 85:7b:06:38:c7:2c:f8:f8:b0:72:8d:25:e5:77:52:f4:03:1c: +# 48:a6:50:5f:88:20:30:6e:f2:82:43:ab:3d:97:84:e7:53:fb: +# 21:c1:4f:0f:22:9a:86:b8:59:2a:f6:47:3d:19:88:2d:e8:85: +# e1:9e:ec:85:08:6a:b1:6c:34:c9:1d:ec:48:2b:3b:78:ed:66: +# c4:8e:79:69:83:de:7f:8c + +[p11-kit-object-v1] +label: "QuoVadis Root CA 3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzFdCFlSc5pjT003u/u3H +n0M5SmWz6BaINNsNWZF0z5K4BECtAksxq7yNkWjYIA4aAeIae04XXeKKtz+ZGs3r +YavCZaYft7e9t4/8/XCPC6BnvgGiWc9x5g8pdv+xVnlFKx+eelTooyk1aKQBTw+k +LjfvG7/jjxCocqtYV+dUhsjJ81vaLNpdjm48oz7a+4Ll3fJcsgUzb4o2ztATTv+/ +Sgw0TKbDIb1QBFXrsbud+0UeZBXeVQGMAna1y6E/Qmm8L71oQxZWiSo3YZH9pq5O +wMsUZZQ3S5IG7wTQyJyI2wt7ga+xPSrEZTp4tu7cgLHS05mcOu5rWmuzjbfVzpzC +vqVLLxaxnmg7Bm+ufZ/43uzMKaeYoyVDL+/xXybhiE34Xm7X2RRuGTNppzuEiZPE +U1UToVF4QPi4yaLue7pSQoOeFO0FUlpZVqeX/J0/CinY3E+RDhO83pWk34uZvqyb +M4jvtYGvG8YiU8j2x+6XFLDFfHhSyPDObndghKbpKnYg7VgBFzCT6RqL4HNj2WqS +lElOtK1KhcSjIjD8Ce1oInOmiAxVIVjF4TqfKt3K4ZDg2XOrbIC46Atkk6CcjBn/ +s9IM7JEmh4qzouFwjywK5c1taFHr2j8Ff4sy5hNca/5fQOIiyLS0ZE/Wun1IPqhp +DNe7hnHJc7g/O50lS9r/QOsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "QuoVadis Root CA 3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0x +GTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJv +b3QgQ0EgMzAeFw0wNjExMjQxOTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNV +BAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMRswGQYDVQQDExJRdW9W +YWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDM +V0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNggDhoB +4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUr +H556VOijKTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd +8lyyBTNvijbO0BNO/79KDDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9Cabwv +vWhDFlaJKjdhkf2mrk7AyxRllDdLkgbvBNDInIjbC3uBr7E9KsRlOni27tyAsdLT +mZw67mtaa7ONt9XOnMK+pUsvFrGeaDsGb659n/je7Mwpp5ijJUMv7/FfJuGITfhe +btfZFG4ZM2mnO4SJk8RTVROhUXhA+LjJou57ulJCg54U7QVSWllWp5f8nT8KKdjc +T5EOE7zelaTfi5m+rJsziO+1ga8bxiJTyPbH7pcUsMV8eFLI8M5ud2CEpukqdiDt +WAEXMJPpGovgc2PZapKUSU60rUqFxKMiMPwJ7Wgic6aIDFUhWMXhOp8q3crhkODZ +c6tsgLjoC2SToJyMGf+z0gzskSaHirOi4XCPLArlzW1oUevaPwV/izLmE1xr/l9A +4iLItLRkT9a6fUg+qGkM17uGcclzuD87nSVL2v9A6wIDAQABo4IBlTCCAZEwDwYD +VR0TAQH/BAUwAwEB/zCB4QYDVR0gBIHZMIHWMIHTBgkrBgEEAb5YAAMwgcUwgZMG +CCsGAQUFBwICMIGGGoGDQW55IHVzZSBvZiB0aGlzIENlcnRpZmljYXRlIGNvbnN0 +aXR1dGVzIGFjY2VwdGFuY2Ugb2YgdGhlIFF1b1ZhZGlzIFJvb3QgQ0EgMyBDZXJ0 +aWZpY2F0ZSBQb2xpY3kgLyBDZXJ0aWZpY2F0aW9uIFByYWN0aWNlIFN0YXRlbWVu +dC4wLQYIKwYBBQUHAgEWIWh0dHA6Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2Nw +czALBgNVHQ8EBAMCAQYwHQYDVR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4G +A1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4ywLQoUmkRzBFMQswCQYDVQQGEwJC +TTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UEAxMSUXVvVmFkaXMg +Um9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZVqyM0 +7ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSem +d1o417+shvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd ++LJ2w/w4E6oM3kJpK27zPOuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B +4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadN +t54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp8kokUvd0/bpO5qgdAm6x +DYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBCbjPsMZ57 +k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6s +zHXug/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0j +Wy10QJLZYxkNc91pvGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeT +mJlglFwjz1onl14LBQaTNx47aTbrqZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK +4SVhM7JZG+Ju1zdXtg2pEto= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1478 (0x5c6) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3 +# Validity +# Not Before: Nov 24 19:11:23 2006 GMT +# Not After : Nov 24 19:06:44 2031 GMT +# Subject: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:cc:57:42:16:54:9c:e6:98:d3:d3:4d:ee:fe:ed: +# c7:9f:43:39:4a:65:b3:e8:16:88:34:db:0d:59:91: +# 74:cf:92:b8:04:40:ad:02:4b:31:ab:bc:8d:91:68: +# d8:20:0e:1a:01:e2:1a:7b:4e:17:5d:e2:8a:b7:3f: +# 99:1a:cd:eb:61:ab:c2:65:a6:1f:b7:b7:bd:b7:8f: +# fc:fd:70:8f:0b:a0:67:be:01:a2:59:cf:71:e6:0f: +# 29:76:ff:b1:56:79:45:2b:1f:9e:7a:54:e8:a3:29: +# 35:68:a4:01:4f:0f:a4:2e:37:ef:1b:bf:e3:8f:10: +# a8:72:ab:58:57:e7:54:86:c8:c9:f3:5b:da:2c:da: +# 5d:8e:6e:3c:a3:3e:da:fb:82:e5:dd:f2:5c:b2:05: +# 33:6f:8a:36:ce:d0:13:4e:ff:bf:4a:0c:34:4c:a6: +# c3:21:bd:50:04:55:eb:b1:bb:9d:fb:45:1e:64:15: +# de:55:01:8c:02:76:b5:cb:a1:3f:42:69:bc:2f:bd: +# 68:43:16:56:89:2a:37:61:91:fd:a6:ae:4e:c0:cb: +# 14:65:94:37:4b:92:06:ef:04:d0:c8:9c:88:db:0b: +# 7b:81:af:b1:3d:2a:c4:65:3a:78:b6:ee:dc:80:b1: +# d2:d3:99:9c:3a:ee:6b:5a:6b:b3:8d:b7:d5:ce:9c: +# c2:be:a5:4b:2f:16:b1:9e:68:3b:06:6f:ae:7d:9f: +# f8:de:ec:cc:29:a7:98:a3:25:43:2f:ef:f1:5f:26: +# e1:88:4d:f8:5e:6e:d7:d9:14:6e:19:33:69:a7:3b: +# 84:89:93:c4:53:55:13:a1:51:78:40:f8:b8:c9:a2: +# ee:7b:ba:52:42:83:9e:14:ed:05:52:5a:59:56:a7: +# 97:fc:9d:3f:0a:29:d8:dc:4f:91:0e:13:bc:de:95: +# a4:df:8b:99:be:ac:9b:33:88:ef:b5:81:af:1b:c6: +# 22:53:c8:f6:c7:ee:97:14:b0:c5:7c:78:52:c8:f0: +# ce:6e:77:60:84:a6:e9:2a:76:20:ed:58:01:17:30: +# 93:e9:1a:8b:e0:73:63:d9:6a:92:94:49:4e:b4:ad: +# 4a:85:c4:a3:22:30:fc:09:ed:68:22:73:a6:88:0c: +# 55:21:58:c5:e1:3a:9f:2a:dd:ca:e1:90:e0:d9:73: +# ab:6c:80:b8:e8:0b:64:93:a0:9c:8c:19:ff:b3:d2: +# 0c:ec:91:26:87:8a:b3:a2:e1:70:8f:2c:0a:e5:cd: +# 6d:68:51:eb:da:3f:05:7f:8b:32:e6:13:5c:6b:fe: +# 5f:40:e2:22:c8:b4:b4:64:4f:d6:ba:7d:48:3e:a8: +# 69:0c:d7:bb:86:71:c9:73:b8:3f:3b:9d:25:4b:da: +# ff:40:eb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Certificate Policies: +# Policy: 1.3.6.1.4.1.8024.0.3 +# User Notice: +# Explicit Text: Any use of this Certificate constitutes acceptance of the QuoVadis Root CA 3 Certificate Policy / Certification Practice Statement. +# CPS: http://www.quovadisglobal.com/cps +# X509v3 Key Usage: +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# F2:C0:13:E0:82:43:3E:FB:EE:2F:67:32:96:35:5C:DB:B8:CB:02:D0 +# X509v3 Authority Key Identifier: +# keyid:F2:C0:13:E0:82:43:3E:FB:EE:2F:67:32:96:35:5C:DB:B8:CB:02:D0 +# DirName:/C=BM/O=QuoVadis Limited/CN=QuoVadis Root CA 3 +# serial:05:C6 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 4f:ad:a0:2c:4c:fa:c0:f2:6f:f7:66:55:ab:23:34:ee:e7:29: +# da:c3:5b:b6:b0:83:d9:d0:d0:e2:21:fb:f3:60:a7:3b:5d:60: +# 53:27:a2:9b:f6:08:22:2a:e7:bf:a0:72:e5:9c:24:6a:31:b1: +# 90:7a:27:db:84:11:89:27:a6:77:5a:38:d7:bf:ac:86:fc:ee: +# 5d:83:bc:06:c6:d1:77:6b:0f:6d:24:2f:4b:7a:6c:a7:07:96: +# ca:e3:84:9f:ad:88:8b:1d:ab:16:8d:5b:66:17:d9:16:f4:8b: +# 80:d2:dd:f8:b2:76:c3:fc:38:13:aa:0c:de:42:69:2b:6e:f3: +# 3c:eb:80:27:db:f5:a6:44:0d:9f:5a:55:59:0b:d5:0d:52:48: +# c5:ae:9f:f2:2f:80:c5:ea:32:50:35:12:97:2e:c1:e1:ff:f1: +# 23:88:51:38:9f:f2:66:56:76:e7:0f:51:97:a5:52:0c:4d:49: +# 51:95:36:3d:bf:a2:4b:0c:10:1d:86:99:4c:aa:f3:72:11:93: +# e4:ea:f6:9b:da:a8:5d:a7:4d:b7:9e:02:ae:73:00:c8:da:23: +# 03:e8:f9:ea:19:74:62:00:94:cb:22:20:be:94:a7:59:b5:82: +# 6a:be:99:79:7a:a9:f2:4a:24:52:f7:74:fd:ba:4e:e6:a8:1d: +# 02:6e:b1:0d:80:44:c1:ae:d3:23:37:5f:bb:85:7c:2b:92:2e: +# e8:7e:a5:8b:dd:99:e1:bf:27:6f:2d:5d:aa:7b:87:fe:0a:dd: +# 4b:fc:8e:f5:26:e4:6e:70:42:6e:33:ec:31:9e:7b:93:c1:e4: +# c9:69:1a:3d:c0:6b:4e:22:6d:ee:ab:58:4d:c6:d0:41:c1:2b: +# ea:4f:12:87:5e:eb:45:d8:6c:f5:98:02:d3:a0:d8:55:8a:06: +# 99:19:a2:a0:77:d1:30:9e:ac:cc:75:ee:83:f5:b0:62:39:cf: +# 6c:57:e2:4c:d2:91:0b:0e:75:28:1b:9a:bf:fd:1a:43:f1:ca: +# 77:fb:3b:8f:61:b8:69:28:16:42:04:5e:70:2a:1c:21:d8:8f: +# e1:bd:23:5b:2d:74:40:92:d9:63:19:0d:73:dd:69:bc:62:47: +# bc:e0:74:2b:b2:eb:7d:be:41:1b:b5:c0:46:c5:a1:22:cb:5f: +# 4e:c1:28:92:de:18:ba:d5:2a:28:bb:11:8b:17:93:98:99:60: +# 94:5c:23:cf:5a:27:97:5e:0b:05:06:93:37:1e:3b:69:36:eb: +# a9:9e:61:1d:8f:32:da:8e:0c:d6:74:3e:7b:09:24:da:01:77: +# 47:c4:3b:cd:34:8c:99:f5:ca:e1:25:61:33:b2:59:1b:e2:6e: +# d7:37:57:b6:0d:a9:12:da + +[p11-kit-object-v1] +label: "QuoVadis Root CA 3 G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAs8sOEGeO6hSXpzIqClY2 +f2hMx7NvOiMUkf8Zf6XKrO6zdp166Ysbq2sx2/oLU0yvxaUaeTyKTP+s3yXeTtmC +MgtE3srbjKyjbhaDO6ZkSzKJ+xYWOH7rQ+LTdErCYgpzCt1Js1fSsAqFnXE83qPL +wDLzATkgQxs10VOzse7Fk2mCPha1KEah3uqJCe1DuAVGiob1WUe+G28BIRC5/anS +KMoQOQnKEzbPnK2tQHR5KwI/NP/6IGl90+5h9bqz5zDQNyOGcmFFKUhZaG93pi6B +vgdNb6/OxEUTkRRwBo8fn/iHabEO78OJGevqHGH8emyK3NYDC54muhLd1FQ5qyaj +M+p1gdotzQ9P5APR7xWXG2uQxQKQk2YCIbFH3ouaSoC5VY+1oi/A1jNn2n7Ep7QE +ROtH++ZYufcM8HsrscBwKcNAYi07SGncIzxI63sJealt2qgwmM+AcgOIpltGrnJ5 +fAgDIWWut+EcpbEqojHeZgT3wHTocd7/PVnMliYSi4WVVxqra3ULRD0RKDx7Ybfi +j2dP5ew8TGCAaVc4HgFbjVXox9/AzHcjNEl1fPaYEest3u1BLhQFAn/g/iDrNecR +rCLOVz3eyTBtEAOFzfH/jBa1wbI+iGxgf5BPlff2La0BOQcE+nWAfb9JUO3vycR8 +HOuAftu20N0T/snTnNeyl6kCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "QuoVadis Root CA 3 G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQEL +BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc +BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw00 +MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM +aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMgRzMwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286IxSR +/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNu +FoM7pmRLMon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXR +U7Ox7sWTaYI+FrUoRqHe6okJ7UO4BUaKhvVZR74bbwEhELn9qdIoyhA5CcoTNs+c +ra1AdHkrAj80//ogaX3T7mH1urPnMNA3I4ZyYUUpSFlob3emLoG+B01vr87ERROR +FHAGjx+f+IdpsQ7vw4kZ6+ocYfx6bIrc1gMLnia6Et3UVDmrJqMz6nWB2i3ND0/k +A9HvFZcba5DFApCTZgIhsUfei5pKgLlVj7WiL8DWM2fafsSntARE60f75li59wzw +eyuxwHApw0BiLTtIadwjPEjrewl5qW3aqDCYz4ByA4imW0aucnl8CAMhZa634Ryl +sSqiMd5mBPfAdOhx3v89WcyWJhKLhZVXGqtrdQtEPREoPHtht+KPZ0/l7DxMYIBp +VzgeAVuNVejH38DMdyM0SXV89pgR6y3e7UEuFAUCf+D+IOs15xGsIs5XPd7JMG0Q +A4XN8f+MFrXBsj6IbGB/kE+V9/YtrQE5BwT6dYB9v0lQ7e/JxHwc64B+27bQ3RP+ +ydOc17KXqQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB +BjAdBgNVHQ4EFgQUxhfQvKjqAkPyGwaZXSuQILnXnOQwDQYJKoZIhvcNAQELBQAD +ggIBADRh2Va1EodVTd2jNTFGu6QHcrxfYWLopfsLN7E8trP6KZ1/AvWkyaiTt3px +KGmPc+FSkNrVvjrlt3ZqVoAh313m6Tqe5T72omnHKgqwGEfcIHB9UqM+WXzBusnI +FUBhynLWcKzSt/Ac5IYp8M7vaGPQtSCKFWGafoaYtMnCdvvMujAWzKNhxnQT5Wvv +oxXqA/4Ti2Tk08HS6IT7SdEQTXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFg +u/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9DuDcpmvJRPpq3t/O5jrFc/ZSXPsoaP +0Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGibIh6BJpsQBJFxwAYf +3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmDhPbl +8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+ +DhcI00iX0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HN +PlopNLk9hM6xZdRZkZFWdSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ +ywaZWWDYWGWVjUTR939+J399roD1B0y2PpxxVJkES/1Y+Zj0 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 2e:f5:9b:02:28:a7:db:7a:ff:d5:a3:a9:ee:bd:03:a0:cf:12:6a:1d +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3 G3 +# Validity +# Not Before: Jan 12 20:26:32 2012 GMT +# Not After : Jan 12 20:26:32 2042 GMT +# Subject: C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3 G3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b3:cb:0e:10:67:8e:ea:14:97:a7:32:2a:0a:56: +# 36:7f:68:4c:c7:b3:6f:3a:23:14:91:ff:19:7f:a5: +# ca:ac:ee:b3:76:9d:7a:e9:8b:1b:ab:6b:31:db:fa: +# 0b:53:4c:af:c5:a5:1a:79:3c:8a:4c:ff:ac:df:25: +# de:4e:d9:82:32:0b:44:de:ca:db:8c:ac:a3:6e:16: +# 83:3b:a6:64:4b:32:89:fb:16:16:38:7e:eb:43:e2: +# d3:74:4a:c2:62:0a:73:0a:dd:49:b3:57:d2:b0:0a: +# 85:9d:71:3c:de:a3:cb:c0:32:f3:01:39:20:43:1b: +# 35:d1:53:b3:b1:ee:c5:93:69:82:3e:16:b5:28:46: +# a1:de:ea:89:09:ed:43:b8:05:46:8a:86:f5:59:47: +# be:1b:6f:01:21:10:b9:fd:a9:d2:28:ca:10:39:09: +# ca:13:36:cf:9c:ad:ad:40:74:79:2b:02:3f:34:ff: +# fa:20:69:7d:d3:ee:61:f5:ba:b3:e7:30:d0:37:23: +# 86:72:61:45:29:48:59:68:6f:77:a6:2e:81:be:07: +# 4d:6f:af:ce:c4:45:13:91:14:70:06:8f:1f:9f:f8: +# 87:69:b1:0e:ef:c3:89:19:eb:ea:1c:61:fc:7a:6c: +# 8a:dc:d6:03:0b:9e:26:ba:12:dd:d4:54:39:ab:26: +# a3:33:ea:75:81:da:2d:cd:0f:4f:e4:03:d1:ef:15: +# 97:1b:6b:90:c5:02:90:93:66:02:21:b1:47:de:8b: +# 9a:4a:80:b9:55:8f:b5:a2:2f:c0:d6:33:67:da:7e: +# c4:a7:b4:04:44:eb:47:fb:e6:58:b9:f7:0c:f0:7b: +# 2b:b1:c0:70:29:c3:40:62:2d:3b:48:69:dc:23:3c: +# 48:eb:7b:09:79:a9:6d:da:a8:30:98:cf:80:72:03: +# 88:a6:5b:46:ae:72:79:7c:08:03:21:65:ae:b7:e1: +# 1c:a5:b1:2a:a2:31:de:66:04:f7:c0:74:e8:71:de: +# ff:3d:59:cc:96:26:12:8b:85:95:57:1a:ab:6b:75: +# 0b:44:3d:11:28:3c:7b:61:b7:e2:8f:67:4f:e5:ec: +# 3c:4c:60:80:69:57:38:1e:01:5b:8d:55:e8:c7:df: +# c0:cc:77:23:34:49:75:7c:f6:98:11:eb:2d:de:ed: +# 41:2e:14:05:02:7f:e0:fe:20:eb:35:e7:11:ac:22: +# ce:57:3d:de:c9:30:6d:10:03:85:cd:f1:ff:8c:16: +# b5:c1:b2:3e:88:6c:60:7f:90:4f:95:f7:f6:2d:ad: +# 01:39:07:04:fa:75:80:7d:bf:49:50:ed:ef:c9:c4: +# 7c:1c:eb:80:7e:db:b6:d0:dd:13:fe:c9:d3:9c:d7: +# b2:97:a9 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# C6:17:D0:BC:A8:EA:02:43:F2:1B:06:99:5D:2B:90:20:B9:D7:9C:E4 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 34:61:d9:56:b5:12:87:55:4d:dd:a3:35:31:46:bb:a4:07:72: +# bc:5f:61:62:e8:a5:fb:0b:37:b1:3c:b6:b3:fa:29:9d:7f:02: +# f5:a4:c9:a8:93:b7:7a:71:28:69:8f:73:e1:52:90:da:d5:be: +# 3a:e5:b7:76:6a:56:80:21:df:5d:e6:e9:3a:9e:e5:3e:f6:a2: +# 69:c7:2a:0a:b0:18:47:dc:20:70:7d:52:a3:3e:59:7c:c1:ba: +# c9:c8:15:40:61:ca:72:d6:70:ac:d2:b7:f0:1c:e4:86:29:f0: +# ce:ef:68:63:d0:b5:20:8a:15:61:9a:7e:86:98:b4:c9:c2:76: +# fb:cc:ba:30:16:cc:a3:61:c6:74:13:e5:6b:ef:a3:15:ea:03: +# fe:13:8b:64:e4:d3:c1:d2:e8:84:fb:49:d1:10:4d:79:66:eb: +# aa:fd:f4:8d:31:1e:70:14:ad:dc:de:67:13:4c:81:15:61:bc: +# b7:d9:91:77:71:19:81:60:bb:f0:58:a5:b5:9c:0b:f7:8f:22: +# 55:27:c0:4b:01:6d:3b:99:0d:d4:1d:9b:63:67:2f:d0:ee:0d: +# ca:66:bc:94:4f:a6:ad:ed:fc:ee:63:ac:57:3f:65:25:cf:b2: +# 86:8f:d0:08:ff:b8:76:14:6e:de:e5:27:ec:ab:78:b5:53:b9: +# b6:3f:e8:20:f9:d2:a8:be:61:46:ca:87:8c:84:f3:f9:f1:a0: +# 68:9b:22:1e:81:26:9b:10:04:91:71:c0:06:1f:dc:a0:d3:b9: +# 56:a7:e3:98:2d:7f:83:9d:df:8c:2b:9c:32:8e:32:94:f0:01: +# 3c:22:2a:9f:43:c2:2e:c3:98:39:07:38:7b:fc:5e:00:42:1f: +# f3:32:26:79:83:84:f6:e5:f0:c1:51:12:c0:0b:1e:04:23:0c: +# 54:a5:4c:2f:49:c5:4a:d1:b6:6e:60:0d:6b:fc:6b:8b:85:24: +# 64:b7:89:0e:ab:25:47:5b:3c:cf:7e:49:bd:c7:e9:0a:c6:da: +# f7:7e:0e:17:08:d3:48:97:d0:71:92:f0:0f:39:3e:34:6a:1c: +# 7d:d8:f2:22:ae:bb:69:f4:33:b4:a6:48:55:d1:0f:0e:26:e8: +# ec:b6:0b:2d:a7:85:35:cd:fd:59:c8:9f:d1:cd:3e:5a:29:34: +# b9:3d:84:ce:b1:65:d4:59:91:91:56:75:21:c1:77:9e:f9:7a: +# e1:60:9d:d3:ad:04:18:f4:7c:eb:5e:93:8f:53:4a:22:29:f8: +# 48:2b:3e:4d:86:ac:5b:7f:cb:06:99:59:60:d8:58:65:95:8d: +# 44:d1:f7:7f:7e:27:7f:7d:ae:80:f5:07:4c:b6:3e:9c:71:54: +# 99:04:4b:fd:58:f9:98:f4 + +[p11-kit-object-v1] +label: "Sectigo Public Email Protection Root E46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEuKdSlPU+BbAb9h+x03655AVmVIDObKVo +feRTUtuC+sSG30N498itFrw/eDLLa9NJ1kTls36fe6bGLPLittOJsJo8S86JS8bG +yzpJYA9GvG1OepzJm4V7CrawR8KI49TR +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Sectigo Public Email Protection Root E46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICMTCCAbegAwIBAgIQbvXTp0GOoFlApzBr0kBlVjAKBggqhkjOPQQDAzBaMQsw +CQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTEwLwYDVQQDEyhT +ZWN0aWdvIFB1YmxpYyBFbWFpbCBQcm90ZWN0aW9uIFJvb3QgRTQ2MB4XDTIxMDMy +MjAwMDAwMFoXDTQ2MDMyMTIzNTk1OVowWjELMAkGA1UEBhMCR0IxGDAWBgNVBAoT +D1NlY3RpZ28gTGltaXRlZDExMC8GA1UEAxMoU2VjdGlnbyBQdWJsaWMgRW1haWwg +UHJvdGVjdGlvbiBSb290IEU0NjB2MBAGByqGSM49AgEGBSuBBAAiA2IABLinUpT1 +PgWwG/YfsdN+ueQFZlSAzmylaH3kU1LbgvrEht9DePfIrRa8P3gyy2vTSdZE5bN+ +n3umxizy4rbTibCaPEvOiUvGxss6SWAPRrxtTnqcyZuFewq2sEfCiOPU0aNCMEAw +HQYDVR0OBBYEFC1OjKfCI7JXqQZrPmsrifPDXkfOMA4GA1UdDwEB/wQEAwIBhjAP +BgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gAMGUCMQCSnRpZY0VYjhsW5H16 +bDZIMB8rcueQMzT9JKLGBoxvOzJXWvj+xkkSU5rZELKZUXICMAUlKjMh/JPmIqLM +cFUoNVaiB8QhhCMaTEyZUJmSFMtK3Fb79dOPaiz1cTr4izsDng== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 6e:f5:d3:a7:41:8e:a0:59:40:a7:30:6b:d2:40:65:56 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=GB, O=Sectigo Limited, CN=Sectigo Public Email Protection Root E46 +# Validity +# Not Before: Mar 22 00:00:00 2021 GMT +# Not After : Mar 21 23:59:59 2046 GMT +# Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Email Protection Root E46 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:b8:a7:52:94:f5:3e:05:b0:1b:f6:1f:b1:d3:7e: +# b9:e4:05:66:54:80:ce:6c:a5:68:7d:e4:53:52:db: +# 82:fa:c4:86:df:43:78:f7:c8:ad:16:bc:3f:78:32: +# cb:6b:d3:49:d6:44:e5:b3:7e:9f:7b:a6:c6:2c:f2: +# e2:b6:d3:89:b0:9a:3c:4b:ce:89:4b:c6:c6:cb:3a: +# 49:60:0f:46:bc:6d:4e:7a:9c:c9:9b:85:7b:0a:b6: +# b0:47:c2:88:e3:d4:d1 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 2D:4E:8C:A7:C2:23:B2:57:A9:06:6B:3E:6B:2B:89:F3:C3:5E:47:CE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:92:9d:1a:59:63:45:58:8e:1b:16:e4:7d:7a: +# 6c:36:48:30:1f:2b:72:e7:90:33:34:fd:24:a2:c6:06:8c:6f: +# 3b:32:57:5a:f8:fe:c6:49:12:53:9a:d9:10:b2:99:51:72:02: +# 30:05:25:2a:33:21:fc:93:e6:22:a2:cc:70:55:28:35:56:a2: +# 07:c4:21:84:23:1a:4c:4c:99:50:99:92:14:cb:4a:dc:56:fb: +# f5:d3:8f:6a:2c:f5:71:3a:f8:8b:3b:03:9e + +[p11-kit-object-v1] +label: "Sectigo Public Email Protection Root R46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAkeUb+qptNyt1xy5fFKXb +LJe2LEaPadnsli3zHVq+0x0j5mgJ/0oRcxquZ592mtLn7LjZXyv5JlZRr3adqfwX +7zIK0CM8uixPR4PsnQVoQl4G4NXoK2hIl7L686RxNX00mxeLf00N29xPBUyUYr81 ++i/Ipxxm2XFf5eZaVcqr9Lh3GUVQRU5Kq9ueZsEZtzdCyFalQBL5M+g4RTrGhKMC +ji8ksMNBhQdJnM/c0fImb+0zHDNnKkU32YVlIhqxtRBSCWsDxh9wPZHEfZA97Wb4 +kP8l4O2SoosxKa2cEmZ4Y51X7PsL3o7ci8s6qXf0uuXsOIyL5hNmp2lYw4IaGs3x +n9hTkk5JfalF5/FDIVq3PkDNY4nP2b/HUAvhvOeIlq2e1BfaXc/gkf2mENS5A4Gb +aaz7hKiBNesb62hsfGA+w9/JtK50HUit3W4RhuEqajYWrsjOvNtY/ECTQNiOU5fC +rCI45Ygxsy6h7+zgQg3q/5NWSgakm0wCaGSPVlDBgQX9y9vF1xXya7V2w6P5Ms7K +tUqpG30Z3H/Han6V7La4jf2VSpyjK22L8XDlRysAXOS5ntT42Vgp0MvgKGJsrpxi +4sy8NpNB9e/+RmKVsFdKdCxHUimd3aKhT0LCks4tUFJejAqh99idxfj9NodOV/1o +oV+Zgxzwtd3oktNlQFXKloUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Sectigo Public Email Protection Root R46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFgDCCA2igAwIBAgIQHUSeuQ2DkXSu3fLriLemozANBgkqhkiG9w0BAQwFADBa +MQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTEwLwYDVQQD +EyhTZWN0aWdvIFB1YmxpYyBFbWFpbCBQcm90ZWN0aW9uIFJvb3QgUjQ2MB4XDTIx +MDMyMjAwMDAwMFoXDTQ2MDMyMTIzNTk1OVowWjELMAkGA1UEBhMCR0IxGDAWBgNV +BAoTD1NlY3RpZ28gTGltaXRlZDExMC8GA1UEAxMoU2VjdGlnbyBQdWJsaWMgRW1h +aWwgUHJvdGVjdGlvbiBSb290IFI0NjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCC +AgoCggIBAJHlG/qqbTcrdccuXxSl2yyXtixGj2nZ7JYt8x1avtMdI+ZoCf9KEXMa +rmefdprS5+y42V8r+SZWUa92nan8F+8yCtAjPLosT0eD7J0FaEJeBuDV6CtoSJey ++vOkcTV9NJsXi39NDdvcTwVMlGK/NfovyKccZtlxX+XmWlXKq/S4dxlFUEVOSqvb +nmbBGbc3QshWpUAS+TPoOEU6xoSjAo4vJLDDQYUHSZzP3NHyJm/tMxwzZypFN9mF +ZSIasbUQUglrA8YfcD2RxH2QPe1m+JD/JeDtkqKLMSmtnBJmeGOdV+z7C96O3IvL +Oql39Lrl7DiMi+YTZqdpWMOCGhrN8Z/YU5JOSX2pRefxQyFatz5AzWOJz9m/x1AL +4bzniJatntQX2l3P4JH9phDUuQOBm2ms+4SogTXrG+tobHxgPsPfybSudB1Ird1u +EYbhKmo2Fq7IzrzbWPxAk0DYjlOXwqwiOOWIMbMuoe/s4EIN6v+TVkoGpJtMAmhk +j1ZQwYEF/cvbxdcV8mu1dsOj+TLOyrVKqRt9Gdx/x2p+ley2uI39lUqcoytti/Fw +5UcrAFzkuZ7U+NlYKdDL4ChibK6cYuLMvDaTQfXv/kZilbBXSnQsR1Ipnd2ioU9C +wpLOLVBSXowKoffYncX4/TaHTlf9aKFfmYMc8LXd6JLTZUBVypaFAgMBAAGjQjBA +MB0GA1UdDgQWBBSn15V360rDJ82TvjdMJoQhFH1dmDAOBgNVHQ8BAf8EBAMCAYYw +DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQwFAAOCAgEANNLxFfOTAdRyi/Cr +CB8TPHO0sKvoeNlsupqvJuwQgOUNUzHd4/qMUSIkMze4GH46+ljoNOWM4KEfCUHS +Nz/Mywk1Qojp/BHXz0KqpHC2ccFTvcV0r8QiJGPPYoJ9yctRwYiQbVtcvvuZqLq2 +hrDpZgvlG2uv6iuGp9+oI0yWP09XQhgVg0Pxhia3KgPOC53opWgejG+9heMbUY/n +Fy8r0NZ4wi3dcojUZZ76mdR+55cKkgGapamEOgwqdD0zGMiH9+ik9YZCOf1rdSn8 +AAasoqUaVI7pUEkXZq9LBC2blIClVKuMVxdEnw/WaGRytEseAcfZm5TZg5mvEgUR +o5gi0vJXyiT5ujgVEki6Yzv8i5V41nIHVszN/J0c0MVkO2M0zwSZircweXq28sbV +2VR6hwt+TveE7BTziBYS8dWuChoJ7oat5av9rsMpeXTDAV8Rm991mcZK95uPbEns +IS+0AlmzLdBykLoLFHR4S8/BX1VyjlQrE876WAzTuyzZqZFh+PjxtnvevKnMkgTM +S2tfc4C2Ie1QT9d2h27O39K3vWKhfVhiaEVStj/eEtvtBGmedoiqAW3ahsdgG8NS +rDfsUHGAciohRQpTRzwZ643SWQTeJbDrHzVvYH3Xtca7CyeN4E1U5c8dJgFuOzXI +IBKJg/DS7Vg7NJ27MfUy/THzVho= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 1d:44:9e:b9:0d:83:91:74:ae:dd:f2:eb:88:b7:a6:a3 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=GB, O=Sectigo Limited, CN=Sectigo Public Email Protection Root R46 +# Validity +# Not Before: Mar 22 00:00:00 2021 GMT +# Not After : Mar 21 23:59:59 2046 GMT +# Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Email Protection Root R46 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:91:e5:1b:fa:aa:6d:37:2b:75:c7:2e:5f:14:a5: +# db:2c:97:b6:2c:46:8f:69:d9:ec:96:2d:f3:1d:5a: +# be:d3:1d:23:e6:68:09:ff:4a:11:73:1a:ae:67:9f: +# 76:9a:d2:e7:ec:b8:d9:5f:2b:f9:26:56:51:af:76: +# 9d:a9:fc:17:ef:32:0a:d0:23:3c:ba:2c:4f:47:83: +# ec:9d:05:68:42:5e:06:e0:d5:e8:2b:68:48:97:b2: +# fa:f3:a4:71:35:7d:34:9b:17:8b:7f:4d:0d:db:dc: +# 4f:05:4c:94:62:bf:35:fa:2f:c8:a7:1c:66:d9:71: +# 5f:e5:e6:5a:55:ca:ab:f4:b8:77:19:45:50:45:4e: +# 4a:ab:db:9e:66:c1:19:b7:37:42:c8:56:a5:40:12: +# f9:33:e8:38:45:3a:c6:84:a3:02:8e:2f:24:b0:c3: +# 41:85:07:49:9c:cf:dc:d1:f2:26:6f:ed:33:1c:33: +# 67:2a:45:37:d9:85:65:22:1a:b1:b5:10:52:09:6b: +# 03:c6:1f:70:3d:91:c4:7d:90:3d:ed:66:f8:90:ff: +# 25:e0:ed:92:a2:8b:31:29:ad:9c:12:66:78:63:9d: +# 57:ec:fb:0b:de:8e:dc:8b:cb:3a:a9:77:f4:ba:e5: +# ec:38:8c:8b:e6:13:66:a7:69:58:c3:82:1a:1a:cd: +# f1:9f:d8:53:92:4e:49:7d:a9:45:e7:f1:43:21:5a: +# b7:3e:40:cd:63:89:cf:d9:bf:c7:50:0b:e1:bc:e7: +# 88:96:ad:9e:d4:17:da:5d:cf:e0:91:fd:a6:10:d4: +# b9:03:81:9b:69:ac:fb:84:a8:81:35:eb:1b:eb:68: +# 6c:7c:60:3e:c3:df:c9:b4:ae:74:1d:48:ad:dd:6e: +# 11:86:e1:2a:6a:36:16:ae:c8:ce:bc:db:58:fc:40: +# 93:40:d8:8e:53:97:c2:ac:22:38:e5:88:31:b3:2e: +# a1:ef:ec:e0:42:0d:ea:ff:93:56:4a:06:a4:9b:4c: +# 02:68:64:8f:56:50:c1:81:05:fd:cb:db:c5:d7:15: +# f2:6b:b5:76:c3:a3:f9:32:ce:ca:b5:4a:a9:1b:7d: +# 19:dc:7f:c7:6a:7e:95:ec:b6:b8:8d:fd:95:4a:9c: +# a3:2b:6d:8b:f1:70:e5:47:2b:00:5c:e4:b9:9e:d4: +# f8:d9:58:29:d0:cb:e0:28:62:6c:ae:9c:62:e2:cc: +# bc:36:93:41:f5:ef:fe:46:62:95:b0:57:4a:74:2c: +# 47:52:29:9d:dd:a2:a1:4f:42:c2:92:ce:2d:50:52: +# 5e:8c:0a:a1:f7:d8:9d:c5:f8:fd:36:87:4e:57:fd: +# 68:a1:5f:99:83:1c:f0:b5:dd:e8:92:d3:65:40:55: +# ca:96:85 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# A7:D7:95:77:EB:4A:C3:27:CD:93:BE:37:4C:26:84:21:14:7D:5D:98 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 34:d2:f1:15:f3:93:01:d4:72:8b:f0:ab:08:1f:13:3c:73:b4: +# b0:ab:e8:78:d9:6c:ba:9a:af:26:ec:10:80:e5:0d:53:31:dd: +# e3:fa:8c:51:22:24:33:37:b8:18:7e:3a:fa:58:e8:34:e5:8c: +# e0:a1:1f:09:41:d2:37:3f:cc:cb:09:35:42:88:e9:fc:11:d7: +# cf:42:aa:a4:70:b6:71:c1:53:bd:c5:74:af:c4:22:24:63:cf: +# 62:82:7d:c9:cb:51:c1:88:90:6d:5b:5c:be:fb:99:a8:ba:b6: +# 86:b0:e9:66:0b:e5:1b:6b:af:ea:2b:86:a7:df:a8:23:4c:96: +# 3f:4f:57:42:18:15:83:43:f1:86:26:b7:2a:03:ce:0b:9d:e8: +# a5:68:1e:8c:6f:bd:85:e3:1b:51:8f:e7:17:2f:2b:d0:d6:78: +# c2:2d:dd:72:88:d4:65:9e:fa:99:d4:7e:e7:97:0a:92:01:9a: +# a5:a9:84:3a:0c:2a:74:3d:33:18:c8:87:f7:e8:a4:f5:86:42: +# 39:fd:6b:75:29:fc:00:06:ac:a2:a5:1a:54:8e:e9:50:49:17: +# 66:af:4b:04:2d:9b:94:80:a5:54:ab:8c:57:17:44:9f:0f:d6: +# 68:64:72:b4:4b:1e:01:c7:d9:9b:94:d9:83:99:af:12:05:11: +# a3:98:22:d2:f2:57:ca:24:f9:ba:38:15:12:48:ba:63:3b:fc: +# 8b:95:78:d6:72:07:56:cc:cd:fc:9d:1c:d0:c5:64:3b:63:34: +# cf:04:99:8a:b7:30:79:7a:b6:f2:c6:d5:d9:54:7a:87:0b:7e: +# 4e:f7:84:ec:14:f3:88:16:12:f1:d5:ae:0a:1a:09:ee:86:ad: +# e5:ab:fd:ae:c3:29:79:74:c3:01:5f:11:9b:df:75:99:c6:4a: +# f7:9b:8f:6c:49:ec:21:2f:b4:02:59:b3:2d:d0:72:90:ba:0b: +# 14:74:78:4b:cf:c1:5f:55:72:8e:54:2b:13:ce:fa:58:0c:d3: +# bb:2c:d9:a9:91:61:f8:f8:f1:b6:7b:de:bc:a9:cc:92:04:cc: +# 4b:6b:5f:73:80:b6:21:ed:50:4f:d7:76:87:6e:ce:df:d2:b7: +# bd:62:a1:7d:58:62:68:45:52:b6:3f:de:12:db:ed:04:69:9e: +# 76:88:aa:01:6d:da:86:c7:60:1b:c3:52:ac:37:ec:50:71:80: +# 72:2a:21:45:0a:53:47:3c:19:eb:8d:d2:59:04:de:25:b0:eb: +# 1f:35:6f:60:7d:d7:b5:c6:bb:0b:27:8d:e0:4d:54:e5:cf:1d: +# 26:01:6e:3b:35:c8:20:12:89:83:f0:d2:ed:58:3b:34:9d:bb: +# 31:f5:32:fd:31:f3:56:1a + +[p11-kit-object-v1] +label: "Sectigo Public Server Authentication Root E46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEdvqZqW4g7fnXd+MHO6jbPV846KtVplZP +1kjq7H8tqsOyxXnsmWF/EHnHAlr5BDf1NDUrd85/II9SowCJ7NWnom1b40uSk6CA +9QGU3PBoBx7N7v4lUrUgQxwb/usZzkOj +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Sectigo Public Server Authentication Root E46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICOjCCAcGgAwIBAgIQQvLM2htpN0RfFf51KBC49DAKBggqhkjOPQQDAzBfMQsw +CQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1T +ZWN0aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwHhcN +MjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1OTU5WjBfMQswCQYDVQQGEwJHQjEYMBYG +A1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1YmxpYyBT +ZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwdjAQBgcqhkjOPQIBBgUrgQQA +IgNiAAR2+pmpbiDt+dd34wc7qNs9Xzjoq1WmVk/WSOrsfy2qw7LFeeyZYX8QeccC +WvkEN/U0NSt3zn8gj1KjAIns1aeibVvjS5KToID1AZTc8GgHHs3u/iVStSBDHBv+ +6xnOQ6OjQjBAMB0GA1UdDgQWBBTRItpMWfFLXyY4qp3W7usNw/upYTAOBgNVHQ8B +Af8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNnADBkAjAn7qRa +qCG76UeXlImldCBteU/IvZNeWBj7LRoAasm4PdCkT0RHlAFWovgzJQxC36oCMB3q +4S6ILuH5px0CMk7yn2xVdOOurvulGu7t0vzCAxHrRVxgED1cf5kDW21USAGKcw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 42:f2:cc:da:1b:69:37:44:5f:15:fe:75:28:10:b8:f4 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication Root E46 +# Validity +# Not Before: Mar 22 00:00:00 2021 GMT +# Not After : Mar 21 23:59:59 2046 GMT +# Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication Root E46 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:76:fa:99:a9:6e:20:ed:f9:d7:77:e3:07:3b:a8: +# db:3d:5f:38:e8:ab:55:a6:56:4f:d6:48:ea:ec:7f: +# 2d:aa:c3:b2:c5:79:ec:99:61:7f:10:79:c7:02:5a: +# f9:04:37:f5:34:35:2b:77:ce:7f:20:8f:52:a3:00: +# 89:ec:d5:a7:a2:6d:5b:e3:4b:92:93:a0:80:f5:01: +# 94:dc:f0:68:07:1e:cd:ee:fe:25:52:b5:20:43:1c: +# 1b:fe:eb:19:ce:43:a3 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D1:22:DA:4C:59:F1:4B:5F:26:38:AA:9D:D6:EE:EB:0D:C3:FB:A9:61 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:27:ee:a4:5a:a8:21:bb:e9:47:97:94:89:a5:74: +# 20:6d:79:4f:c8:bd:93:5e:58:18:fb:2d:1a:00:6a:c9:b8:3d: +# d0:a4:4f:44:47:94:01:56:a2:f8:33:25:0c:42:df:aa:02:30: +# 1d:ea:e1:2e:88:2e:e1:f9:a7:1d:02:32:4e:f2:9f:6c:55:74: +# e3:ae:ae:fb:a5:1a:ee:ed:d2:fc:c2:03:11:eb:45:5c:60:10: +# 3d:5c:7f:99:03:5b:6d:54:48:01:8a:73 + +[p11-kit-object-v1] +label: "Sectigo Public Server Authentication Root R46" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAk77VNlJ12AEjoBxHQknu +Y7a3If3EldVIKyZ8FFMQ2nn9K7ctpNQs+uoy3UnCub0PSD17WphUr55dMXRPB/xQ +Id2kz2hPGxJjbSWZTCqZ80gwYfqBfB6nCErcPiscHxhMcao1jK34bug7StnllALW +iYQTqm3ITzPMUJY3kjPcX4jnn1TZSPCYQ9Zm/Z8XOEPFAVEL1+MjDxRdWxTnS77d +9MjaAzfR1jmhIVEwg7Bt1zBOlluR8HAkq79FgWRDDb0hOi886Z4NyyC1QifM2m+b +7mQwkDnNk2WBITG1I1AzNyLjOO34MTDMRf5i+dFdMnlCh99qzFYZQE3Oqrv5tXZJ +lPEn+JGlg+UGs2MOgNzgElWApjtmtDmHLcjw0NEU6eQNTQ72XVdyxTscR1ad4tX7 +gWGMzE2AkDRbt9cUddzYBEifwMEoiLTpHMqnsfFWt3tJTFnlIBWohAIp+jiUaZpJ +Bo/NH3kUFxIMg3reH7GX7vmXeCikyESS6X0mBaZYcpt5E9gRX67FOGI0aLKGMI74 +kGGeMmz1BzbNokxu7Io27fLmmRVEcMN8vJw5wLTha/eDJSNX2RKA5UnwdQ/vjesc +m1QotCE8/HwK/+97a3X/ix2gGQWr+vgrgULoOLq7+6r9PeDzyt9Ol5cp7fMYVuml +lqy9w5CYsuD5otSmR0N8bc8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Sectigo Public Server Authentication Root R46" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFijCCA3KgAwIBAgIQdY39i658BwD6qSWn4cetFDANBgkqhkiG9w0BAQwFADBf +MQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQD +Ey1TZWN0aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBSNDYw +HhcNMjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1OTU5WjBfMQswCQYDVQQGEwJHQjEY +MBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1Ymxp +YyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBSNDYwggIiMA0GCSqGSIb3DQEB +AQUAA4ICDwAwggIKAoICAQCTvtU2UnXYASOgHEdCSe5jtrch/cSV1UgrJnwUUxDa +ef0rty2k1Cz66jLdScK5vQ9IPXtamFSvnl0xdE8H/FAh3aTPaE8bEmNtJZlMKpnz +SDBh+oF8HqcIStw+KxwfGExxqjWMrfhu6DtK2eWUAtaJhBOqbchPM8xQljeSM9xf +iOefVNlI8JhD1mb9nxc4Q8UBUQvX4yMPFF1bFOdLvt30yNoDN9HWOaEhUTCDsG3X +ME6WW5HwcCSrv0WBZEMNvSE6Lzzpng3LILVCJ8zab5vuZDCQOc2TZYEhMbUjUDM3 +IuM47fgxMMxF/mL50V0yeUKH32rMVhlATc6qu/m1dkmU8Sf4kaWD5QazYw6A3OAS +VYCmO2a0OYctyPDQ0RTp5A1NDvZdV3LFOxxHVp3i1fuBYYzMTYCQNFu31xR13NgE +SJ/AwSiItOkcyqex8Va3e0lMWeUgFaiEAin6OJRpmkkGj80feRQXEgyDet4fsZfu ++Zd4KKTIRJLpfSYFplhym3kT2BFfrsU4YjRosoYwjviQYZ4ybPUHNs2iTG7sijbt +8uaZFURww3y8nDnAtOFr94MlI1fZEoDlSfB1D++N6xybVCi0ITz8fAr/73trdf+L +HaAZBav6+CuBQug4urv7qv094PPK306Xlynt8xhW6aWWrL3DkJiy4Pmi1KZHQ3xt +zwIDAQABo0IwQDAdBgNVHQ4EFgQUVnNYZJX5khqwEioEYnmhQBWIIUkwDgYDVR0P +AQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAC9c +mTz8Bl6MlC5w6tIyMY208FHVvArzZJ8HXtXBc2hkeqK5Duj5XYUtqDdFqij0lgVQ +YKlJfp/imTYpE0RHap1VIDzYm/EDMrraQKFz6oOht0SmDpkBm+S8f74TlH7Kph52 +gDY9hAaLMyZlbcp+nv4fjFg4exqDsQ+8FxG75gbMY/qB8oFM2gsQa6H61SilzwZA +Fv97fRheORKkU55+MkIQpiGRqRxOF3yEvJ+M0ejf5lG5Nkc/kLnHvALcWxxPDkjB +JYOcCj+esQMzEhonrPcibCTRAUH4WAP+JWgiH5paPHxsnnVI84HxZmduTILA7rpX +DhjvLpr3Etiga+kFpaHpaPi8TD8SHkXoUsCjvxInebnMMTzD9joiFgOgyY9mpFui +TdaBJQbpdqQACj7LzTWb4OE4y2BThihCQRxEV+ioratF4yUQvNs+ZUH7G6aXD+u5 +dHn5HrwdVw1Hr8Mvn4dGp+smWg9WY7ViYG4A++MnESLn/pmPNPW56MORcr3Ywx65 +LvKRRFHQV80MNNVIIb/bE/FmJUNS0nAiNs2fxBx1IK1jcmMGDw4nztJqDby1ORrp +0XZ60Vzk50lJLVU3aPAaOpg+VBeHVOmmJ1CJeyAvP/+/oYtKR5j/K3tJPsMpRmAY +QqszKbrAKbkTidOIijlBO8n9pu0f9GBj39ItVQGL +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 75:8d:fd:8b:ae:7c:07:00:fa:a9:25:a7:e1:c7:ad:14 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication Root R46 +# Validity +# Not Before: Mar 22 00:00:00 2021 GMT +# Not After : Mar 21 23:59:59 2046 GMT +# Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication Root R46 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:93:be:d5:36:52:75:d8:01:23:a0:1c:47:42:49: +# ee:63:b6:b7:21:fd:c4:95:d5:48:2b:26:7c:14:53: +# 10:da:79:fd:2b:b7:2d:a4:d4:2c:fa:ea:32:dd:49: +# c2:b9:bd:0f:48:3d:7b:5a:98:54:af:9e:5d:31:74: +# 4f:07:fc:50:21:dd:a4:cf:68:4f:1b:12:63:6d:25: +# 99:4c:2a:99:f3:48:30:61:fa:81:7c:1e:a7:08:4a: +# dc:3e:2b:1c:1f:18:4c:71:aa:35:8c:ad:f8:6e:e8: +# 3b:4a:d9:e5:94:02:d6:89:84:13:aa:6d:c8:4f:33: +# cc:50:96:37:92:33:dc:5f:88:e7:9f:54:d9:48:f0: +# 98:43:d6:66:fd:9f:17:38:43:c5:01:51:0b:d7:e3: +# 23:0f:14:5d:5b:14:e7:4b:be:dd:f4:c8:da:03:37: +# d1:d6:39:a1:21:51:30:83:b0:6d:d7:30:4e:96:5b: +# 91:f0:70:24:ab:bf:45:81:64:43:0d:bd:21:3a:2f: +# 3c:e9:9e:0d:cb:20:b5:42:27:cc:da:6f:9b:ee:64: +# 30:90:39:cd:93:65:81:21:31:b5:23:50:33:37:22: +# e3:38:ed:f8:31:30:cc:45:fe:62:f9:d1:5d:32:79: +# 42:87:df:6a:cc:56:19:40:4d:ce:aa:bb:f9:b5:76: +# 49:94:f1:27:f8:91:a5:83:e5:06:b3:63:0e:80:dc: +# e0:12:55:80:a6:3b:66:b4:39:87:2d:c8:f0:d0:d1: +# 14:e9:e4:0d:4d:0e:f6:5d:57:72:c5:3b:1c:47:56: +# 9d:e2:d5:fb:81:61:8c:cc:4d:80:90:34:5b:b7:d7: +# 14:75:dc:d8:04:48:9f:c0:c1:28:88:b4:e9:1c:ca: +# a7:b1:f1:56:b7:7b:49:4c:59:e5:20:15:a8:84:02: +# 29:fa:38:94:69:9a:49:06:8f:cd:1f:79:14:17:12: +# 0c:83:7a:de:1f:b1:97:ee:f9:97:78:28:a4:c8:44: +# 92:e9:7d:26:05:a6:58:72:9b:79:13:d8:11:5f:ae: +# c5:38:62:34:68:b2:86:30:8e:f8:90:61:9e:32:6c: +# f5:07:36:cd:a2:4c:6e:ec:8a:36:ed:f2:e6:99:15: +# 44:70:c3:7c:bc:9c:39:c0:b4:e1:6b:f7:83:25:23: +# 57:d9:12:80:e5:49:f0:75:0f:ef:8d:eb:1c:9b:54: +# 28:b4:21:3c:fc:7c:0a:ff:ef:7b:6b:75:ff:8b:1d: +# a0:19:05:ab:fa:f8:2b:81:42:e8:38:ba:bb:fb:aa: +# fd:3d:e0:f3:ca:df:4e:97:97:29:ed:f3:18:56:e9: +# a5:96:ac:bd:c3:90:98:b2:e0:f9:a2:d4:a6:47:43: +# 7c:6d:cf +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 56:73:58:64:95:F9:92:1A:B0:12:2A:04:62:79:A1:40:15:88:21:49 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 2f:5c:99:3c:fc:06:5e:8c:94:2e:70:ea:d2:32:31:8d:b4:f0: +# 51:d5:bc:0a:f3:64:9f:07:5e:d5:c1:73:68:64:7a:a2:b9:0e: +# e8:f9:5d:85:2d:a8:37:45:aa:28:f4:96:05:50:60:a9:49:7e: +# 9f:e2:99:36:29:13:44:47:6a:9d:55:20:3c:d8:9b:f1:03:32: +# ba:da:40:a1:73:ea:83:a1:b7:44:a6:0e:99:01:9b:e4:bc:7f: +# be:13:94:7e:ca:a6:1e:76:80:36:3d:84:06:8b:33:26:65:6d: +# ca:7e:9e:fe:1f:8c:58:38:7b:1a:83:b1:0f:bc:17:11:bb:e6: +# 06:cc:63:fa:81:f2:81:4c:da:0b:10:6b:a1:fa:d5:28:a5:cf: +# 06:40:16:ff:7b:7d:18:5e:39:12:a4:53:9e:7e:32:42:10:a6: +# 21:91:a9:1c:4e:17:7c:84:bc:9f:8c:d1:e8:df:e6:51:b9:36: +# 47:3f:90:b9:c7:bc:02:dc:5b:1c:4f:0e:48:c1:25:83:9c:0a: +# 3f:9e:b1:03:33:12:1a:27:ac:f7:22:6c:24:d1:01:41:f8:58: +# 03:fe:25:68:22:1f:9a:5a:3c:7c:6c:9e:75:48:f3:81:f1:66: +# 67:6e:4c:82:c0:ee:ba:57:0e:18:ef:2e:9a:f7:12:d8:a0:6b: +# e9:05:a5:a1:e9:68:f8:bc:4c:3f:12:1e:45:e8:52:c0:a3:bf: +# 12:27:79:b9:cc:31:3c:c3:f6:3a:22:16:03:a0:c9:8f:66:a4: +# 5b:a2:4d:d6:81:25:06:e9:76:a4:00:0a:3e:cb:cd:35:9b:e0: +# e1:38:cb:60:53:86:28:42:41:1c:44:57:e8:a8:ad:ab:45:e3: +# 25:10:bc:db:3e:65:41:fb:1b:a6:97:0f:eb:b9:74:79:f9:1e: +# bc:1d:57:0d:47:af:c3:2f:9f:87:46:a7:eb:26:5a:0f:56:63: +# b5:62:60:6e:00:fb:e3:27:11:22:e7:fe:99:8f:34:f5:b9:e8: +# c3:91:72:bd:d8:c3:1e:b9:2e:f2:91:44:51:d0:57:cd:0c:34: +# d5:48:21:bf:db:13:f1:66:25:43:52:d2:70:22:36:cd:9f:c4: +# 1c:75:20:ad:63:72:63:06:0f:0e:27:ce:d2:6a:0d:bc:b5:39: +# 1a:e9:d1:76:7a:d1:5c:e4:e7:49:49:2d:55:37:68:f0:1a:3a: +# 98:3e:54:17:87:54:e9:a6:27:50:89:7b:20:2f:3f:ff:bf:a1: +# 8b:4a:47:98:ff:2b:7b:49:3e:c3:29:46:60:18:42:ab:33:29: +# ba:c0:29:b9:13:89:d3:88:8a:39:41:3b:c9:fd:a6:ed:1f:f4: +# 60:63:df:d2:2d:55:01:8b + +[p11-kit-object-v1] +label: "Secure Global CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArzUu2KxsVWkGceUTaCSz +T9jMIUf48WA4iYkD6b3qXkZTCdxc9Vro90UqAusxYdcpM0zOx3wKN34PujKY4R2X +r4/H3Mk4lvPbGvxR7WjG0G6kfCTRrkLIllBjLuD+df6Yp19JLpXjOTNkjh6kX5DS +Zzyy2f5BuVWnCY5yBR6L3USFgkLQScAdYPDRFyyV6/alwZKjxcKnCGANYAQQlnme +FjTmqbb6JUU5yB5l+ZP1qvFS3JmYPaWGGgw1M/pLpQQGFRwxgO+qGGvCe9fazvkz +INX1vWozLYEE+7Bc1Jyj4lwd46lCdV571HfvOVS6yQoYGxKZSS+IS/1QYtFz5496 +QwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Secure Global CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBK +MQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x +GTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwgQ0EwHhcNMDYxMTA3MTk0MjI4WhcNMjkx +MjMxMTk1MjA2WjBKMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3Qg +Q29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwgQ0EwggEiMA0GCSqG +SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvNS7YrGxVaQZx5RNoJLNP2MwhR/jxYDiJ +iQPpvepeRlMJ3Fz1Wuj3RSoC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa +/FHtaMbQbqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJ +jnIFHovdRIWCQtBJwB1g8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnI +HmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYVHDGA76oYa8J719rO+TMg1fW9ajMtgQT7 +sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi0XPnj3pDAgMBAAGjgZ0w +gZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCsw +KaAnoCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsG +AQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0L +URYD7xh8yOOvaliTFGCRsoTciE6+OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXO +H0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cnCDpOGR86p1hcF895P4vkp9Mm +I50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/53CYNv6ZHdAbY +iNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc +f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 07:56:22:a4:e8:d4:8a:89:4d:f4:13:c8:f0:f8:ea:a5 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=SecureTrust Corporation, CN=Secure Global CA +# Validity +# Not Before: Nov 7 19:42:28 2006 GMT +# Not After : Dec 31 19:52:06 2029 GMT +# Subject: C=US, O=SecureTrust Corporation, CN=Secure Global CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:af:35:2e:d8:ac:6c:55:69:06:71:e5:13:68:24: +# b3:4f:d8:cc:21:47:f8:f1:60:38:89:89:03:e9:bd: +# ea:5e:46:53:09:dc:5c:f5:5a:e8:f7:45:2a:02:eb: +# 31:61:d7:29:33:4c:ce:c7:7c:0a:37:7e:0f:ba:32: +# 98:e1:1d:97:af:8f:c7:dc:c9:38:96:f3:db:1a:fc: +# 51:ed:68:c6:d0:6e:a4:7c:24:d1:ae:42:c8:96:50: +# 63:2e:e0:fe:75:fe:98:a7:5f:49:2e:95:e3:39:33: +# 64:8e:1e:a4:5f:90:d2:67:3c:b2:d9:fe:41:b9:55: +# a7:09:8e:72:05:1e:8b:dd:44:85:82:42:d0:49:c0: +# 1d:60:f0:d1:17:2c:95:eb:f6:a5:c1:92:a3:c5:c2: +# a7:08:60:0d:60:04:10:96:79:9e:16:34:e6:a9:b6: +# fa:25:45:39:c8:1e:65:f9:93:f5:aa:f1:52:dc:99: +# 98:3d:a5:86:1a:0c:35:33:fa:4b:a5:04:06:15:1c: +# 31:80:ef:aa:18:6b:c2:7b:d7:da:ce:f9:33:20:d5: +# f5:bd:6a:33:2d:81:04:fb:b0:5c:d4:9c:a3:e2:5c: +# 1d:e3:a9:42:75:5e:7b:d4:77:ef:39:54:ba:c9:0a: +# 18:1b:12:99:49:2f:88:4b:fd:50:62:d1:73:e7:8f: +# 7a:43 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# 1.3.6.1.4.1.311.20.2: +# ...C.A +# X509v3 Key Usage: +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# AF:44:04:C2:41:7E:48:83:DB:4E:39:02:EC:EC:84:7A:E6:CE:C9:A4 +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.securetrust.com/SGCA.crl +# +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 63:1a:08:40:7d:a4:5e:53:0d:77:d8:7a:ae:1f:0d:0b:51:16: +# 03:ef:18:7c:c8:e3:af:6a:58:93:14:60:91:b2:84:dc:88:4e: +# be:39:8a:3a:f3:e6:82:89:5d:01:37:b3:ab:24:a4:15:0e:92: +# 35:5a:4a:44:5e:4e:57:fa:75:ce:1f:48:ce:66:f4:3c:40:26: +# 92:98:6c:1b:ee:24:46:0c:17:b3:52:a5:db:a5:91:91:cf:37: +# d3:6f:e7:27:08:3a:4e:19:1f:3a:a7:58:5c:17:cf:79:3f:8b: +# e4:a7:d3:26:23:9d:26:0f:58:69:fc:47:7e:b2:d0:8d:8b:93: +# bf:29:4f:43:69:74:76:67:4b:cf:07:8c:e6:02:f7:b5:e1:b4: +# 43:b5:4b:2d:14:9f:f9:dc:26:0d:bf:a6:47:74:06:d8:88:d1: +# 3a:29:30:84:ce:d2:39:80:62:1b:a8:c7:57:49:bc:6a:55:51: +# 67:15:4a:be:35:07:e4:d5:75:98:37:79:30:14:db:29:9d:6c: +# c5:69:cc:47:55:a2:30:f7:cc:5c:7f:c2:c3:98:1c:6b:4e:16: +# 80:eb:7a:78:65:45:a2:00:1a:af:0c:0d:55:64:34:48:b8:92: +# b9:f1:b4:50:29:f2:4f:23:1f:da:6c:ac:1f:44:e1:dd:23:78: +# 51:5b:c7:16 + +[p11-kit-object-v1] +label: "SecureSign Root CA12" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAujnBN3poRSsUtOvkE+tX +dSNNjyQtFuiujsl9pFc7KnYlM4Ns6jKKlJtOPJbk/VG/mcmTfr/5raeySCsHHCf1 +TLxwEnekhVS1/ZB65KPkUVgDzRB5ee5rkx9kjmtkq6MT43H+fauc3SdTN7OqGMJZ +JuxbH9LmZXzvk73YWFwLwONlbzzHylnj/m5frIO+/V0lTiopO9YLqxcyeKThPpRG +vmJum95GqLEW54Vu9AhARRGgnlREhPfYNs71UEfcLDCb7sD1ltL+CYbHBlmuT66O +EZh78wtSqmImqiHfjiUzeZcWSY31PtVHnzcxSTNyBU0MtlWM8VePiofRrcUREjmg +rQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SecureSign Root CA12" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDcjCCAlqgAwIBAgIUZvnHwa/swlG07VOX5uaCwysckBYwDQYJKoZIhvcNAQEL +BQAwUTELMAkGA1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28u +LCBMdGQuMR0wGwYDVQQDExRTZWN1cmVTaWduIFJvb3QgQ0ExMjAeFw0yMDA0MDgw +NTM2NDZaFw00MDA0MDgwNTM2NDZaMFExCzAJBgNVBAYTAkpQMSMwIQYDVQQKExpD +eWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2VjdXJlU2lnbiBS +b290IENBMTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6OcE3emhF +KxS06+QT61d1I02PJC0W6K6OyX2kVzsqdiUzg2zqMoqUm048luT9Ub+ZyZN+v/mt +p7JIKwccJ/VMvHASd6SFVLX9kHrko+RRWAPNEHl57muTH2SOa2SroxPjcf59q5zd +J1M3s6oYwlkm7Fsf0uZlfO+TvdhYXAvA42VvPMfKWeP+bl+sg779XSVOKik71gur +FzJ4pOE+lEa+Ym6b3kaosRbnhW70CEBFEaCeVESE99g2zvVQR9wsMJvuwPWW0v4J +hscGWa5Pro4RmHvzC1KqYiaqId+OJTN5lxZJjfU+1UefNzFJM3IFTQy2VYzxV4+K +h9GtxRESOaCtAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD +AgEGMB0GA1UdDgQWBBRXNPN0zwRL1SXm8UC2LEzZLemgrTANBgkqhkiG9w0BAQsF +AAOCAQEAPrvbFxbS8hQBICw4g0utvsqFepq2m2um4fylOqyttCg6r9cBg0krY6Ld +mmQOmFxv3Y67ilQiLUoT865AQ9tPkbeGGuwAtEGBpE/6aouIs3YIcipJQMPTw4WJ +mBClnW8Zt7vPemVV2zfrPIpyMpcemik+rY3moxtt9XUa5rBouVui7mlHJzWhhpmA +8zNL4WukJsPvdFlseqJkth5Ew1DgDzk9qTPxpfPSvWKErI4cqc1avTc7bgoitPQV +55FYxTpE05Uo2cBl6XLK0A+9H7MV2anjpEcJnuDLN/v9vZfVvhgaaaI5gdka9at/ +yOPiZwud9AzqVN/Ssq+xIvEg37xEHA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 66:f9:c7:c1:af:ec:c2:51:b4:ed:53:97:e6:e6:82:c3:2b:1c:90:16 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA12 +# Validity +# Not Before: Apr 8 05:36:46 2020 GMT +# Not After : Apr 8 05:36:46 2040 GMT +# Subject: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA12 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ba:39:c1:37:7a:68:45:2b:14:b4:eb:e4:13:eb: +# 57:75:23:4d:8f:24:2d:16:e8:ae:8e:c9:7d:a4:57: +# 3b:2a:76:25:33:83:6c:ea:32:8a:94:9b:4e:3c:96: +# e4:fd:51:bf:99:c9:93:7e:bf:f9:ad:a7:b2:48:2b: +# 07:1c:27:f5:4c:bc:70:12:77:a4:85:54:b5:fd:90: +# 7a:e4:a3:e4:51:58:03:cd:10:79:79:ee:6b:93:1f: +# 64:8e:6b:64:ab:a3:13:e3:71:fe:7d:ab:9c:dd:27: +# 53:37:b3:aa:18:c2:59:26:ec:5b:1f:d2:e6:65:7c: +# ef:93:bd:d8:58:5c:0b:c0:e3:65:6f:3c:c7:ca:59: +# e3:fe:6e:5f:ac:83:be:fd:5d:25:4e:2a:29:3b:d6: +# 0b:ab:17:32:78:a4:e1:3e:94:46:be:62:6e:9b:de: +# 46:a8:b1:16:e7:85:6e:f4:08:40:45:11:a0:9e:54: +# 44:84:f7:d8:36:ce:f5:50:47:dc:2c:30:9b:ee:c0: +# f5:96:d2:fe:09:86:c7:06:59:ae:4f:ae:8e:11:98: +# 7b:f3:0b:52:aa:62:26:aa:21:df:8e:25:33:79:97: +# 16:49:8d:f5:3e:d5:47:9f:37:31:49:33:72:05:4d: +# 0c:b6:55:8c:f1:57:8f:8a:87:d1:ad:c5:11:12:39: +# a0:ad +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 57:34:F3:74:CF:04:4B:D5:25:E6:F1:40:B6:2C:4C:D9:2D:E9:A0:AD +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 3e:bb:db:17:16:d2:f2:14:01:20:2c:38:83:4b:ad:be:ca:85: +# 7a:9a:b6:9b:6b:a6:e1:fc:a5:3a:ac:ad:b4:28:3a:af:d7:01: +# 83:49:2b:63:a2:dd:9a:64:0e:98:5c:6f:dd:8e:bb:8a:54:22: +# 2d:4a:13:f3:ae:40:43:db:4f:91:b7:86:1a:ec:00:b4:41:81: +# a4:4f:fa:6a:8b:88:b3:76:08:72:2a:49:40:c3:d3:c3:85:89: +# 98:10:a5:9d:6f:19:b7:bb:cf:7a:65:55:db:37:eb:3c:8a:72: +# 32:97:1e:9a:29:3e:ad:8d:e6:a3:1b:6d:f5:75:1a:e6:b0:68: +# b9:5b:a2:ee:69:47:27:35:a1:86:99:80:f3:33:4b:e1:6b:a4: +# 26:c3:ef:74:59:6c:7a:a2:64:b6:1e:44:c3:50:e0:0f:39:3d: +# a9:33:f1:a5:f3:d2:bd:62:84:ac:8e:1c:a9:cd:5a:bd:37:3b: +# 6e:0a:22:b4:f4:15:e7:91:58:c5:3a:44:d3:95:28:d9:c0:65: +# e9:72:ca:d0:0f:bd:1f:b3:15:d9:a9:e3:a4:47:09:9e:e0:cb: +# 37:fb:fd:bd:97:d5:be:18:1a:69:a2:39:81:d9:1a:f5:ab:7f: +# c8:e3:e2:67:0b:9d:f4:0c:ea:54:df:d2:b2:af:b1:22:f1:20: +# df:bc:44:1c + +[p11-kit-object-v1] +label: "SecureSign Root CA14" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxdJ6odaKvxYx0JjROpT8 +WrhuIsFi96cKJ+9Q9i6xnmgS8GwkYznx8N8Qxt63UiDVUltCmZ7zoL5SH1/MZ22n +LlCiwZeNtviV9bC63J3gvsvf9zjyR/WmmpKVKmJZUAuisTXnZbJhsuqScWnkKfBP +gYEEPLKlW9TFqFlne1UcSat6ncLnc03vzQnCxFcS2wEOI3kJBzui6PyKz4/ARiSc +OCfgg50boL94FRDrhk4KWv3f2iyCfu7K9inh+nGh94honJzwjb4PSZHY6jr5/dBo +cdvptStOgpJvZh/g8NxM7MrR6rp0BvmzhJCU0V+OcxkQXQLlcKXAENAQfG/FWEm0 +sG6a2n2V9czaAq+4LH15j75D8fkoKI0JQ/gI3WvIiywksY1SB714m8vKaLKk3QxM +eWDGmdGT8TAaB9OuIsLqzvGECczgFG5/P37SgoWs3KkWToWgYMv2nNfIs47txpuY +dQ1V6F/llYsCpK5DKSgRpOYSMAFLdWseZp15L6V2Lx1AtG3JfXkI7NFqtl0qsqVm +vWuF9HRWw/XndVIoLKX/Zkel1P7+nlS/ZX4B1jCPpTacolAc7jiAAUjGx3T0xqzD +QEkWYXQsr4xvNe17GABbNjycUA3KkjMQ8SZJbd91JDeCItfolv0VSwKWPgdylX6r +PUwu18rw3+BYPy0vBJo4owECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SecureSign Root CA14" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFcjCCA1qgAwIBAgIUZNtaDCBO6Ncpd8hQJ6JaJ90t8sswDQYJKoZIhvcNAQEM +BQAwUTELMAkGA1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28u +LCBMdGQuMR0wGwYDVQQDExRTZWN1cmVTaWduIFJvb3QgQ0ExNDAeFw0yMDA0MDgw +NzA2MTlaFw00NTA0MDgwNzA2MTlaMFExCzAJBgNVBAYTAkpQMSMwIQYDVQQKExpD +eWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2VjdXJlU2lnbiBS +b290IENBMTQwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDF0nqh1oq/ +FjHQmNE6lPxauG4iwWL3pwon71D2LrGeaBLwbCRjOfHw3xDG3rdSINVSW0KZnvOg +vlIfX8xnbacuUKLBl422+JX1sLrcneC+y9/3OPJH9aaakpUqYllQC6KxNedlsmGy +6pJxaeQp8E+BgQQ8sqVb1MWoWWd7VRxJq3qdwudzTe/NCcLEVxLbAQ4jeQkHO6Lo +/IrPj8BGJJw4J+CDnRugv3gVEOuGTgpa/d/aLIJ+7sr2KeH6caH3iGicnPCNvg9J +kdjqOvn90Ghx2+m1K06Ckm9mH+Dw3EzsytHqunQG+bOEkJTRX45zGRBdAuVwpcAQ +0BB8b8VYSbSwbprafZX1zNoCr7gsfXmPvkPx+SgojQlD+Ajda8iLLCSxjVIHvXib +y8posqTdDEx5YMaZ0ZPxMBoH064iwurO8YQJzOAUbn8/ftKChazcqRZOhaBgy/ac +18izju3Gm5h1DVXoX+WViwKkrkMpKBGk5hIwAUt1ax5mnXkvpXYvHUC0bcl9eQjs +0Wq2XSqypWa9a4X0dFbD9ed1Uigspf9mR6XU/v6eVL9lfgHWMI+lNpyiUBzuOIAB +SMbHdPTGrMNASRZhdCyvjG817XsYAFs2PJxQDcqSMxDxJklt33UkN4Ii1+iW/RVL +ApY+B3KVfqs9TC7XyvDf4Fg/LS8EmjijAQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUBpOjCl4oaTeqYR3r6/wtbyPk +86AwDQYJKoZIhvcNAQEMBQADggIBAJaAcgkGfpzMkwQWu6A6jZJOtxEaCnFxEM0E +rX+lRVAQZk5KQaID2RFPeje5S+LGjzJmdSX7684/AykmjbgWHfYfM25I5uj4V7Ib +ed87hwriZLoAymzvftAj63iP/2SbNDefNWWipAA9EiOWWF3KY4fGoweITedpdopT +zfFP7ELyk+OZpDc8h7hi2/DsHzc/N19DzFGdtfCXwreFamgLRB7lUe6TzktuhsHS +DCRZNhqfLJGP4xjblJUK7ZGqDpncllPjYYPGFrojutzdfhrGe0K22VoF3Jpf1d+4 +2kd92jjbrDnVHmtsKheMYc2xbXIBw8MgAGJoFjHVdqqGuw6qnsb58Nn4DSEC5MUo +FlkRudlpcyqSeLiSV5sI8jrlL5WwWLdrIBRtFO8KvH7YVdiI2i/6GaX7i+B/OfVy +K4XELKzvGUWSTLNhB9xNH27SgRNcmvMSZ4PPmz+Ln52kuaiWA3rF7iDeM9ovnhp6 +dB7h7sxaOgTdsxoEqBRjrLdHEoOabPXm6RUVkRqEGQ6UROcSjiVbgGcZ3GOTEAtl +Lor6CZpO2oYofaphNdgOpygau1LgePhsumywbrmHXumZNTfxPWQrqaA0k89jL9WB +365jJ6UeTo3cKXhZ+PmhIIynJkBugnLNeLLIjzwec+fBH7/PzqUqm9tEZDKgu39c +JRNItX+S +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 64:db:5a:0c:20:4e:e8:d7:29:77:c8:50:27:a2:5a:27:dd:2d:f2:cb +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA14 +# Validity +# Not Before: Apr 8 07:06:19 2020 GMT +# Not After : Apr 8 07:06:19 2045 GMT +# Subject: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA14 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c5:d2:7a:a1:d6:8a:bf:16:31:d0:98:d1:3a:94: +# fc:5a:b8:6e:22:c1:62:f7:a7:0a:27:ef:50:f6:2e: +# b1:9e:68:12:f0:6c:24:63:39:f1:f0:df:10:c6:de: +# b7:52:20:d5:52:5b:42:99:9e:f3:a0:be:52:1f:5f: +# cc:67:6d:a7:2e:50:a2:c1:97:8d:b6:f8:95:f5:b0: +# ba:dc:9d:e0:be:cb:df:f7:38:f2:47:f5:a6:9a:92: +# 95:2a:62:59:50:0b:a2:b1:35:e7:65:b2:61:b2:ea: +# 92:71:69:e4:29:f0:4f:81:81:04:3c:b2:a5:5b:d4: +# c5:a8:59:67:7b:55:1c:49:ab:7a:9d:c2:e7:73:4d: +# ef:cd:09:c2:c4:57:12:db:01:0e:23:79:09:07:3b: +# a2:e8:fc:8a:cf:8f:c0:46:24:9c:38:27:e0:83:9d: +# 1b:a0:bf:78:15:10:eb:86:4e:0a:5a:fd:df:da:2c: +# 82:7e:ee:ca:f6:29:e1:fa:71:a1:f7:88:68:9c:9c: +# f0:8d:be:0f:49:91:d8:ea:3a:f9:fd:d0:68:71:db: +# e9:b5:2b:4e:82:92:6f:66:1f:e0:f0:dc:4c:ec:ca: +# d1:ea:ba:74:06:f9:b3:84:90:94:d1:5f:8e:73:19: +# 10:5d:02:e5:70:a5:c0:10:d0:10:7c:6f:c5:58:49: +# b4:b0:6e:9a:da:7d:95:f5:cc:da:02:af:b8:2c:7d: +# 79:8f:be:43:f1:f9:28:28:8d:09:43:f8:08:dd:6b: +# c8:8b:2c:24:b1:8d:52:07:bd:78:9b:cb:ca:68:b2: +# a4:dd:0c:4c:79:60:c6:99:d1:93:f1:30:1a:07:d3: +# ae:22:c2:ea:ce:f1:84:09:cc:e0:14:6e:7f:3f:7e: +# d2:82:85:ac:dc:a9:16:4e:85:a0:60:cb:f6:9c:d7: +# c8:b3:8e:ed:c6:9b:98:75:0d:55:e8:5f:e5:95:8b: +# 02:a4:ae:43:29:28:11:a4:e6:12:30:01:4b:75:6b: +# 1e:66:9d:79:2f:a5:76:2f:1d:40:b4:6d:c9:7d:79: +# 08:ec:d1:6a:b6:5d:2a:b2:a5:66:bd:6b:85:f4:74: +# 56:c3:f5:e7:75:52:28:2c:a5:ff:66:47:a5:d4:fe: +# fe:9e:54:bf:65:7e:01:d6:30:8f:a5:36:9c:a2:50: +# 1c:ee:38:80:01:48:c6:c7:74:f4:c6:ac:c3:40:49: +# 16:61:74:2c:af:8c:6f:35:ed:7b:18:00:5b:36:3c: +# 9c:50:0d:ca:92:33:10:f1:26:49:6d:df:75:24:37: +# 82:22:d7:e8:96:fd:15:4b:02:96:3e:07:72:95:7e: +# ab:3d:4c:2e:d7:ca:f0:df:e0:58:3f:2d:2f:04:9a: +# 38:a3:01 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 06:93:A3:0A:5E:28:69:37:AA:61:1D:EB:EB:FC:2D:6F:23:E4:F3:A0 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 96:80:72:09:06:7e:9c:cc:93:04:16:bb:a0:3a:8d:92:4e:b7: +# 11:1a:0a:71:71:10:cd:04:ad:7f:a5:45:50:10:66:4e:4a:41: +# a2:03:d9:11:4f:7a:37:b9:4b:e2:c6:8f:32:66:75:25:fb:eb: +# ce:3f:03:29:26:8d:b8:16:1d:f6:1f:33:6e:48:e6:e8:f8:57: +# b2:1b:79:df:3b:87:0a:e2:64:ba:00:ca:6c:ef:7e:d0:23:eb: +# 78:8f:ff:64:9b:34:37:9f:35:65:a2:a4:00:3d:12:23:96:58: +# 5d:ca:63:87:c6:a3:07:88:4d:e7:69:76:8a:53:cd:f1:4f:ec: +# 42:f2:93:e3:99:a4:37:3c:87:b8:62:db:f0:ec:1f:37:3f:37: +# 5f:43:cc:51:9d:b5:f0:97:c2:b7:85:6a:68:0b:44:1e:e5:51: +# ee:93:ce:4b:6e:86:c1:d2:0c:24:59:36:1a:9f:2c:91:8f:e3: +# 18:db:94:95:0a:ed:91:aa:0e:99:dc:96:53:e3:61:83:c6:16: +# ba:23:ba:dc:dd:7e:1a:c6:7b:42:b6:d9:5a:05:dc:9a:5f:d5: +# df:b8:da:47:7d:da:38:db:ac:39:d5:1e:6b:6c:2a:17:8c:61: +# cd:b1:6d:72:01:c3:c3:20:00:62:68:16:31:d5:76:aa:86:bb: +# 0e:aa:9e:c6:f9:f0:d9:f8:0d:21:02:e4:c5:28:16:59:11:b9: +# d9:69:73:2a:92:78:b8:92:57:9b:08:f2:3a:e5:2f:95:b0:58: +# b7:6b:20:14:6d:14:ef:0a:bc:7e:d8:55:d8:88:da:2f:fa:19: +# a5:fb:8b:e0:7f:39:f5:72:2b:85:c4:2c:ac:ef:19:45:92:4c: +# b3:61:07:dc:4d:1f:6e:d2:81:13:5c:9a:f3:12:67:83:cf:9b: +# 3f:8b:9f:9d:a4:b9:a8:96:03:7a:c5:ee:20:de:33:da:2f:9e: +# 1a:7a:74:1e:e1:ee:cc:5a:3a:04:dd:b3:1a:04:a8:14:63:ac: +# b7:47:12:83:9a:6c:f5:e6:e9:15:15:91:1a:84:19:0e:94:44: +# e7:12:8e:25:5b:80:67:19:dc:63:93:10:0b:65:2e:8a:fa:09: +# 9a:4e:da:86:28:7d:aa:61:35:d8:0e:a7:28:1a:bb:52:e0:78: +# f8:6c:ba:6c:b0:6e:b9:87:5e:e9:99:35:37:f1:3d:64:2b:a9: +# a0:34:93:cf:63:2f:d5:81:df:ae:63:27:a5:1e:4e:8d:dc:29: +# 78:59:f8:f9:a1:20:8c:a7:26:40:6e:82:72:cd:78:b2:c8:8f: +# 3c:1e:73:e7:c1:1f:bf:cf:ce:a5:2a:9b:db:44:64:32:a0:bb: +# 7f:5c:25:13:48:b5:7f:92 + +[p11-kit-object-v1] +label: "SecureSign Root CA15" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEC1B0jWQymZmz0mAIuCKORnQseMArRC1t +Xx3JrktSIIM9uBRtU4dgnl9shdsGFJXgxyj/nV/kqvGzi23tTy9LyUqUkWR1/gHs +wdjrepR4VhhDX2uBy/a82rQMtimTCGmP +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SecureSign Root CA15" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICIzCCAamgAwIBAgIUFhXHw9hJp75pDIqI7fBw+d23PocwCgYIKoZIzj0EAwMw +UTELMAkGA1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBM +dGQuMR0wGwYDVQQDExRTZWN1cmVTaWduIFJvb3QgQ0ExNTAeFw0yMDA0MDgwODMy +NTZaFw00NTA0MDgwODMyNTZaMFExCzAJBgNVBAYTAkpQMSMwIQYDVQQKExpDeWJl +cnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2VjdXJlU2lnbiBSb290 +IENBMTUwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQLUHSNZDKZmbPSYAi4Io5GdCx4 +wCtELW1fHcmuS1Iggz24FG1Th2CeX2yF2wYUleDHKP+dX+Sq8bOLbe1PL0vJSpSR +ZHX+AezB2Ot6lHhWGENfa4HL9rzatAy2KZMIaY+jQjBAMA8GA1UdEwEB/wQFMAMB +Af8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTrQciu/NWeUUj1vYv0hyCTQSvT +9DAKBggqhkjOPQQDAwNoADBlAjEA2S6Jfl5OpBEHvVnCB96rMjhTKkZEBhd6zlHp +4P9mLQlO4E/0BdGF9jVg3PVys0Z9AjBEmEYagoUeYWmJSwdLZrWeqrqgHkHZAXQ6 +bkU6iYAZezKYVWOr62Nuk22rGwlgMU4= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 16:15:c7:c3:d8:49:a7:be:69:0c:8a:88:ed:f0:70:f9:dd:b7:3e:87 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA15 +# Validity +# Not Before: Apr 8 08:32:56 2020 GMT +# Not After : Apr 8 08:32:56 2045 GMT +# Subject: C=JP, O=Cybertrust Japan Co., Ltd., CN=SecureSign Root CA15 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:0b:50:74:8d:64:32:99:99:b3:d2:60:08:b8:22: +# 8e:46:74:2c:78:c0:2b:44:2d:6d:5f:1d:c9:ae:4b: +# 52:20:83:3d:b8:14:6d:53:87:60:9e:5f:6c:85:db: +# 06:14:95:e0:c7:28:ff:9d:5f:e4:aa:f1:b3:8b:6d: +# ed:4f:2f:4b:c9:4a:94:91:64:75:fe:01:ec:c1:d8: +# eb:7a:94:78:56:18:43:5f:6b:81:cb:f6:bc:da:b4: +# 0c:b6:29:93:08:69:8f +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# EB:41:C8:AE:FC:D5:9E:51:48:F5:BD:8B:F4:87:20:93:41:2B:D3:F4 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:d9:2e:89:7e:5e:4e:a4:11:07:bd:59:c2:07: +# de:ab:32:38:53:2a:46:44:06:17:7a:ce:51:e9:e0:ff:66:2d: +# 09:4e:e0:4f:f4:05:d1:85:f6:35:60:dc:f5:72:b3:46:7d:02: +# 30:44:98:46:1a:82:85:1e:61:69:89:4b:07:4b:66:b5:9e:aa: +# ba:a0:1e:41:d9:01:74:3a:6e:45:3a:89:80:19:7b:32:98:55: +# 63:ab:eb:63:6e:93:6d:ab:1b:09:60:31:4e + +[p11-kit-object-v1] +label: "SecureTrust CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq6SB5ZXN9fYUjsJPytTi +eJVYnEHhDZlAJBc5kTNm6b7hg69iXInR/CRbYbPgERFBHB1u8Li7+N6ngbqmSMaf +Hb2+jqlBPriU7Ska1I7SAx0D720NZxxX1watysj1/g6vZiVIBJYLXaO6FsMIT9FG ++BRc8sheAZlt/YjMhqjBbzFCbFI+aMvzGTTfu4cYVoAmxNDcwG/f3qDCkRagZBFL +RLwe9uf6Y95mrHakcaPsNpRoeneksecOL4F64rVyhu+ia4vwD9vTWT+6crxEJJzj +c7P3r1cvQiadqXS6AFLyS81TfEcLNoUOZqkIlxY0V8Fm94Dj7XBUx5PgLigVWYe6 +uwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SecureTrust CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBI +MQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x +FzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIz +MTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENv +cnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCCASIwDQYJKoZIhvcN +AQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQXOZEz +Zum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO +0gMdA+9tDWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIao +wW8xQmxSPmjL8xk037uHGFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj +7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b01k/unK8RCSc43Oz969XL0Imnal0ugBS +8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmHursCAwEAAaOBnTCBmjAT +BgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB +/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCeg +JYYjaHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGC +NxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt3 +6Z3q059c4EVlew3KW+JwULKUBRSuSceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/ +3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHfmbx8IVQr5Fiiu1cprp6poxkm +D5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZnMUFdAvnZyPS +CPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR +3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0c:f0:8e:5c:08:16:a5:ad:42:7f:f0:eb:27:18:59:d0 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=SecureTrust Corporation, CN=SecureTrust CA +# Validity +# Not Before: Nov 7 19:31:18 2006 GMT +# Not After : Dec 31 19:40:55 2029 GMT +# Subject: C=US, O=SecureTrust Corporation, CN=SecureTrust CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:ab:a4:81:e5:95:cd:f5:f6:14:8e:c2:4f:ca:d4: +# e2:78:95:58:9c:41:e1:0d:99:40:24:17:39:91:33: +# 66:e9:be:e1:83:af:62:5c:89:d1:fc:24:5b:61:b3: +# e0:11:11:41:1c:1d:6e:f0:b8:bb:f8:de:a7:81:ba: +# a6:48:c6:9f:1d:bd:be:8e:a9:41:3e:b8:94:ed:29: +# 1a:d4:8e:d2:03:1d:03:ef:6d:0d:67:1c:57:d7:06: +# ad:ca:c8:f5:fe:0e:af:66:25:48:04:96:0b:5d:a3: +# ba:16:c3:08:4f:d1:46:f8:14:5c:f2:c8:5e:01:99: +# 6d:fd:88:cc:86:a8:c1:6f:31:42:6c:52:3e:68:cb: +# f3:19:34:df:bb:87:18:56:80:26:c4:d0:dc:c0:6f: +# df:de:a0:c2:91:16:a0:64:11:4b:44:bc:1e:f6:e7: +# fa:63:de:66:ac:76:a4:71:a3:ec:36:94:68:7a:77: +# a4:b1:e7:0e:2f:81:7a:e2:b5:72:86:ef:a2:6b:8b: +# f0:0f:db:d3:59:3f:ba:72:bc:44:24:9c:e3:73:b3: +# f7:af:57:2f:42:26:9d:a9:74:ba:00:52:f2:4b:cd: +# 53:7c:47:0b:36:85:0e:66:a9:08:97:16:34:57:c1: +# 66:f7:80:e3:ed:70:54:c7:93:e0:2e:28:15:59:87: +# ba:bb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# 1.3.6.1.4.1.311.20.2: +# ...C.A +# X509v3 Key Usage: +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 42:32:B6:16:FA:04:FD:FE:5D:4B:7A:C3:FD:F7:4C:40:1D:5A:43:AF +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.securetrust.com/STCA.crl +# +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 30:ed:4f:4a:e1:58:3a:52:72:5b:b5:a6:a3:65:18:a6:bb:51: +# 3b:77:e9:9d:ea:d3:9f:5c:e0:45:65:7b:0d:ca:5b:e2:70:50: +# b2:94:05:14:ae:49:c7:8d:41:07:12:73:94:7e:0c:23:21:fd: +# bc:10:7f:60:10:5a:72:f5:98:0e:ac:ec:b9:7f:dd:7a:6f:5d: +# d3:1c:f4:ff:88:05:69:42:a9:05:71:c8:b7:ac:26:e8:2e:b4: +# 8c:6a:ff:71:dc:b8:b1:df:99:bc:7c:21:54:2b:e4:58:a2:bb: +# 57:29:ae:9e:a9:a3:19:26:0f:99:2e:08:b0:ef:fd:69:cf:99: +# 1a:09:8d:e3:a7:9f:2b:c9:36:34:7b:24:b3:78:4c:95:17:a4: +# 06:26:1e:b6:64:52:36:5f:60:67:d9:9c:c5:05:74:0b:e7:67: +# 23:d2:08:fc:88:e9:ae:8b:7f:e1:30:f4:37:7e:fd:c6:32:da: +# 2d:9e:44:30:30:6c:ee:07:de:d2:34:fc:d2:ff:40:f6:4b:f4: +# 66:46:06:54:a6:f2:32:0a:63:26:30:6b:9b:d1:dc:8b:47:ba: +# e1:b9:d5:62:d0:a2:a0:f4:67:05:78:29:63:1a:6f:04:d6:f8: +# c6:4c:a3:9a:b1:37:b4:8d:e5:28:4b:1d:9e:2c:c2:b8:68:bc: +# ed:02:ee:31 + +[p11-kit-object-v1] +label: "Security Communication ECC RootCA1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEpKVvYAMDw70x9NMXnCuEdazl/T1Xbtdj +v+YEiZKOgZzj6UduypASyBPgp533ZXQfbBCy6OTp722FMplEsV79zHYQ2Fu9osb5 +1kLkV3bckMI1qUuIPBJHbVz/SU8aSlCx +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Security Communication ECC RootCA1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICODCCAb6gAwIBAgIJANZdm7N4gS7rMAoGCCqGSM49BAMDMGExCzAJBgNVBAYT +AkpQMSUwIwYDVQQKExxTRUNPTSBUcnVzdCBTeXN0ZW1zIENPLixMVEQuMSswKQYD +VQQDEyJTZWN1cml0eSBDb21tdW5pY2F0aW9uIEVDQyBSb290Q0ExMB4XDTE2MDYx +NjA1MTUyOFoXDTM4MDExODA1MTUyOFowYTELMAkGA1UEBhMCSlAxJTAjBgNVBAoT +HFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xKzApBgNVBAMTIlNlY3VyaXR5 +IENvbW11bmljYXRpb24gRUNDIFJvb3RDQTEwdjAQBgcqhkjOPQIBBgUrgQQAIgNi +AASkpW9gAwPDvTH00xecK4R1rOX9PVdu12O/5gSJko6BnOPpR27KkBLIE+Cnnfdl +dB9sELLo5OnvbYUymUSxXv3MdhDYW72ixvnWQuRXdtyQwjWpS4g8EkdtXP9JTxpK +ULGjQjBAMB0GA1UdDgQWBBSGHOf+LaVKiwj+KBH6vqNm+GBZLzAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjAVXUI9/Lbu +9zuxNuie9sRGKEkz0FhDKmMpzE2xtHqiuQ04pV1IKv3LsnNdo4gIxwwCMQDAqy0O +be0YottT6SXbVQjgUMzfRGEWgqtJsLKB7HOHeLRMsmIbEvoWTSVLY70eN9k= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# d6:5d:9b:b3:78:81:2e:eb +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=JP, O=SECOM Trust Systems CO.,LTD., CN=Security Communication ECC RootCA1 +# Validity +# Not Before: Jun 16 05:15:28 2016 GMT +# Not After : Jan 18 05:15:28 2038 GMT +# Subject: C=JP, O=SECOM Trust Systems CO.,LTD., CN=Security Communication ECC RootCA1 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:a4:a5:6f:60:03:03:c3:bd:31:f4:d3:17:9c:2b: +# 84:75:ac:e5:fd:3d:57:6e:d7:63:bf:e6:04:89:92: +# 8e:81:9c:e3:e9:47:6e:ca:90:12:c8:13:e0:a7:9d: +# f7:65:74:1f:6c:10:b2:e8:e4:e9:ef:6d:85:32:99: +# 44:b1:5e:fd:cc:76:10:d8:5b:bd:a2:c6:f9:d6:42: +# e4:57:76:dc:90:c2:35:a9:4b:88:3c:12:47:6d:5c: +# ff:49:4f:1a:4a:50:b1 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 86:1C:E7:FE:2D:A5:4A:8B:08:FE:28:11:FA:BE:A3:66:F8:60:59:2F +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:15:5d:42:3d:fc:b6:ee:f7:3b:b1:36:e8:9e:f6: +# c4:46:28:49:33:d0:58:43:2a:63:29:cc:4d:b1:b4:7a:a2:b9: +# 0d:38:a5:5d:48:2a:fd:cb:b2:73:5d:a3:88:08:c7:0c:02:31: +# 00:c0:ab:2d:0e:6d:ed:18:a2:db:53:e9:25:db:55:08:e0:50: +# cc:df:44:61:16:82:ab:49:b0:b2:81:ec:73:87:78:b4:4c:b2: +# 62:1b:12:fa:16:4d:25:4b:63:bd:1e:37:d9 + +[p11-kit-object-v1] +label: "Security Communication RootCA2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0BU5UrFSs7rFWYLEXVKu +OkNlgEvH8pa82zaX1qZkjKhe8OMKHPfflz1LrvZd7CG1QavNuX52n775PjY0oDvB +9jERRXSTPVeAxfmJmcrlq2rUtdpBkBDB1tZCicK/9DgSlUxUBfc25EWDexRl1twM +TdHefgyrO8QVvjpWplpvdmlSqXq5yOtqml1S0C0KazUWCRCE0GrKOgYAN0fkfldP +P4vrZ7iIqsW+U1WykcR9ubCFGQZ4LtthGvqF9UqRoecW1Y6iOd+UuHAfKD+L/EBe +Y4M8gyoamWvP3llqO/xvFtcf/UoQ606CFjqsJwxT8a3VJLBrA1DBLTwW3UQ0Jxp1 ++wIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Security Communication RootCA2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDEl +MCMGA1UEChMcU0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMe +U2VjdXJpdHkgQ29tbXVuaWNhdGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoX +DTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMCSlAxJTAjBgNVBAoTHFNFQ09NIFRy +dXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3VyaXR5IENvbW11bmlj +YXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANAV +OVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGr +zbl+dp+++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVM +VAX3NuRFg3sUZdbcDE3R3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQ +hNBqyjoGADdH5H5XTz+L62e4iKrFvlNVspHEfbmwhRkGeC7bYRr6hfVKkaHnFtWO +ojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1KEOtOghY6rCcMU/Gt1SSw +awNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8QIH4D5cs +OPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3 +DQEBCwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpF +coJxDjrSzG+ntKEju/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXc +okgfGT+Ok+vx+hfuzU7jBBJV1uXk3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8 +t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6qtnRGEmyR7jTV7JqR50S+kDFy +1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29mvVXIwAHIRc/ +SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=JP, O=SECOM Trust Systems CO.,LTD., OU=Security Communication RootCA2 +# Validity +# Not Before: May 29 05:00:39 2009 GMT +# Not After : May 29 05:00:39 2029 GMT +# Subject: C=JP, O=SECOM Trust Systems CO.,LTD., OU=Security Communication RootCA2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d0:15:39:52:b1:52:b3:ba:c5:59:82:c4:5d:52: +# ae:3a:43:65:80:4b:c7:f2:96:bc:db:36:97:d6:a6: +# 64:8c:a8:5e:f0:e3:0a:1c:f7:df:97:3d:4b:ae:f6: +# 5d:ec:21:b5:41:ab:cd:b9:7e:76:9f:be:f9:3e:36: +# 34:a0:3b:c1:f6:31:11:45:74:93:3d:57:80:c5:f9: +# 89:99:ca:e5:ab:6a:d4:b5:da:41:90:10:c1:d6:d6: +# 42:89:c2:bf:f4:38:12:95:4c:54:05:f7:36:e4:45: +# 83:7b:14:65:d6:dc:0c:4d:d1:de:7e:0c:ab:3b:c4: +# 15:be:3a:56:a6:5a:6f:76:69:52:a9:7a:b9:c8:eb: +# 6a:9a:5d:52:d0:2d:0a:6b:35:16:09:10:84:d0:6a: +# ca:3a:06:00:37:47:e4:7e:57:4f:3f:8b:eb:67:b8: +# 88:aa:c5:be:53:55:b2:91:c4:7d:b9:b0:85:19:06: +# 78:2e:db:61:1a:fa:85:f5:4a:91:a1:e7:16:d5:8e: +# a2:39:df:94:b8:70:1f:28:3f:8b:fc:40:5e:63:83: +# 3c:83:2a:1a:99:6b:cf:de:59:6a:3b:fc:6f:16:d7: +# 1f:fd:4a:10:eb:4e:82:16:3a:ac:27:0c:53:f1:ad: +# d5:24:b0:6b:03:50:c1:2d:3c:16:dd:44:34:27:1a: +# 75:fb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 0A:85:A9:77:65:05:98:7C:40:81:F8:0F:97:2C:38:F1:0A:EC:3C:CF +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 4c:3a:a3:44:ac:b9:45:b1:c7:93:7e:c8:0b:0a:42:df:64:ea: +# 1c:ee:59:6c:08:ba:89:5f:6a:ca:4a:95:9e:7a:8f:07:c5:da: +# 45:72:82:71:0e:3a:d2:cc:6f:a7:b4:a1:23:bb:f6:24:9f:cb: +# 17:fe:8c:a6:ce:c2:d2:db:cc:8d:fc:71:fc:03:29:c1:6c:5d: +# 33:5f:64:b6:65:3b:89:6f:18:76:78:f5:dc:a2:48:1f:19:3f: +# 8e:93:eb:f1:fa:17:ee:cd:4e:e3:04:12:55:d6:e5:e4:dd:fb: +# 3e:05:7c:e2:1d:5e:c6:a7:bc:97:4f:68:3a:f5:e9:2e:0a:43: +# b6:af:57:5c:62:68:7c:b7:fd:a3:8a:84:a0:ac:62:be:2b:09: +# 87:34:f0:6a:01:bb:9b:29:56:3c:fe:00:37:cf:23:6c:f1:4e: +# aa:b6:74:46:12:6c:91:ee:34:d5:ec:9a:91:e7:44:be:90:31: +# 72:d5:49:02:f6:02:e5:f4:1f:eb:7c:d9:96:55:a9:ff:ec:8a: +# f9:99:47:ff:35:5a:02:aa:04:cb:8a:5b:87:71:29:91:bd:a4: +# b4:7a:0d:bd:9a:f5:57:23:00:07:21:17:3f:4a:39:d1:05:49: +# 0b:a7:b6:37:81:a5:5d:8c:aa:33:5e:81:28:7c:a7:7d:27:eb: +# 00:ae:8d:37 + +[p11-kit-object-v1] +label: "SSL.com Client ECC Root CA 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAELVN+n4s+sza6UOLM69y6JorTjAY/Zw/v +9Rfl1K6aRipBAQdp52dx8cIDNsbwK1KOzxSSaKQ+cFESaY14ooLKKRTA5JQiskSS +YG/IBKRn1aLQ89DX6o48D7rSQEeQNO59 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com Client ECC Root CA 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICQDCCAcagAwIBAgIQdvhIHq7wPHAf4D8lVAGD1TAKBggqhkjOPQQDAzBRMQsw +CQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSgwJgYDVQQDDB9T +U0wuY29tIENsaWVudCBFQ0MgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzAzMloX +DTQ2MDgxOTE2MzAzMVowUTELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBDb3Jw +b3JhdGlvbjEoMCYGA1UEAwwfU1NMLmNvbSBDbGllbnQgRUNDIFJvb3QgQ0EgMjAy +MjB2MBAGByqGSM49AgEGBSuBBAAiA2IABC1Tfp+LPrM2ulDizOvcuiaK04wGP2cP +7/UX5dSumkYqQQEHaedncfHCAzbG8CtSjs8UkmikPnBREmmNeKKCyikUwOSUIrJE +kmBvyASkZ9Wi0PPQ1+qOPA+60kBHkDTufaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAf +BgNVHSMEGDAWgBS3/i1ixYFTzVIaL11goMNd+7IcHDAdBgNVHQ4EFgQUt/4tYsWB +U81SGi9dYKDDXfuyHBwwDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2gAMGUC +ME0HES0R+7kmwyHdcuEX/MHPFOpJznGHjtZT3BHNXVSKr9kt9IxR6rxmR+J/lYNg +ZQIxAIwhTE+75bBQ35BiSebMkdv4P11xkQiOT5LJf6Zc6hN+7W3E6MMqb1wR4aXz +alqaTQ== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 76:f8:48:1e:ae:f0:3c:70:1f:e0:3f:25:54:01:83:d5 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=SSL Corporation, CN=SSL.com Client ECC Root CA 2022 +# Validity +# Not Before: Aug 25 16:30:32 2022 GMT +# Not After : Aug 19 16:30:31 2046 GMT +# Subject: C=US, O=SSL Corporation, CN=SSL.com Client ECC Root CA 2022 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:2d:53:7e:9f:8b:3e:b3:36:ba:50:e2:cc:eb:dc: +# ba:26:8a:d3:8c:06:3f:67:0f:ef:f5:17:e5:d4:ae: +# 9a:46:2a:41:01:07:69:e7:67:71:f1:c2:03:36:c6: +# f0:2b:52:8e:cf:14:92:68:a4:3e:70:51:12:69:8d: +# 78:a2:82:ca:29:14:c0:e4:94:22:b2:44:92:60:6f: +# c8:04:a4:67:d5:a2:d0:f3:d0:d7:ea:8e:3c:0f:ba: +# d2:40:47:90:34:ee:7d +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# B7:FE:2D:62:C5:81:53:CD:52:1A:2F:5D:60:A0:C3:5D:FB:B2:1C:1C +# X509v3 Subject Key Identifier: +# B7:FE:2D:62:C5:81:53:CD:52:1A:2F:5D:60:A0:C3:5D:FB:B2:1C:1C +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:4d:07:11:2d:11:fb:b9:26:c3:21:dd:72:e1:17: +# fc:c1:cf:14:ea:49:ce:71:87:8e:d6:53:dc:11:cd:5d:54:8a: +# af:d9:2d:f4:8c:51:ea:bc:66:47:e2:7f:95:83:60:65:02:31: +# 00:8c:21:4c:4f:bb:e5:b0:50:df:90:62:49:e6:cc:91:db:f8: +# 3f:5d:71:91:08:8e:4f:92:c9:7f:a6:5c:ea:13:7e:ed:6d:c4: +# e8:c3:2a:6f:5c:11:e1:a5:f3:6a:5a:9a:4d + +[p11-kit-object-v1] +label: "SSL.com Client RSA Root CA 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuFjbRjD7yT/jyPABMzTi +2kioGOkgbprXAeHVKY8wtCNq5MtisL7inyC9PlSgOWjHhjdmdAYG73Qr2tyfhKlS +L5DS7n58+6UirW9wRmeWPSnUo7tWexQEWcEhY0Qesh8SXJCHZQ2I9h6IIuJjVLvz +NvjWf9za/yk1qcZuDmlbP9i+gocVcF2wx1wSD2OmOM3Pc7nDDokmNxs/YhwyadGb +2f9VkDHesWPdz8V0d/zviCFTvwAxGiYsADClX2zj5PYAisqYh5x0A3qLZux+/aOP +NSVceKWzpPs9bamK8GyIgov9StBv5NejtI40STi+zkXl0hzKXsI3FIvNZlYzN53l +a+xDkmSgQtp1b8AV7PlpvTS5inv6FvtV/lIg6AQEVlZl9TdEmMiKRum3rLjovmKO +VDZb9ztwv13uLbpf3kIZhvB/i+sIy9i+6g5CQqA2c1cX7TLq0I3oBxubmejEmmIE +Dkj3PBK691jBmozpx7AjNlY0Hcts2roHhB390ayf5sKJ78O5bBizaYdXX7UMOFun +ISQqO6c0kZ60VOooT9PBo4vk5ivV8p2/m2EAIt3WS0QfP11W/t6ceMyZW6rkvbrb +Q0utTCZMo000imx0NhPbYvybsgWB/64/DM32G6L0OefK9Uxc+1R3NYBawBKhEwEz +Zz2dgaGp9YUkWIh45/TjaFUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com Client RSA Root CA 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFjzCCA3egAwIBAgIQdq/uiJMVRbZQU5uAnKTfmjANBgkqhkiG9w0BAQsFADBR +MQswCQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSgwJgYDVQQD +DB9TU0wuY29tIENsaWVudCBSU0EgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzEw +N1oXDTQ2MDgxOTE2MzEwNlowUTELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBD +b3Jwb3JhdGlvbjEoMCYGA1UEAwwfU1NMLmNvbSBDbGllbnQgUlNBIFJvb3QgQ0Eg +MjAyMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALhY20Yw+8k/48jw +ATM04tpIqBjpIG6a1wHh1SmPMLQjauTLYrC+4p8gvT5UoDlox4Y3ZnQGBu90K9rc +n4SpUi+Q0u5+fPulIq1vcEZnlj0p1KO7VnsUBFnBIWNEHrIfElyQh2UNiPYeiCLi +Y1S78zb41n/c2v8pNanGbg5pWz/YvoKHFXBdsMdcEg9jpjjNz3O5ww6JJjcbP2Ic +MmnRm9n/VZAx3rFj3c/FdHf874ghU78AMRomLAAwpV9s4+T2AIrKmIecdAN6i2bs +fv2jjzUlXHils6T7PW2pivBsiIKL/UrQb+TXo7SONEk4vs5F5dIcyl7CNxSLzWZW +Mzed5WvsQ5JkoELadW/AFez5ab00uYp7+hb7Vf5SIOgEBFZWZfU3RJjIikbpt6y4 +6L5ijlQ2W/c7cL9d7i26X95CGYbwf4vrCMvYvuoOQkKgNnNXF+0y6tCN6Acbm5no +xJpiBA5I9zwSuvdYwZqM6cewIzZWNB3LbNq6B4Qd/dGsn+bCie/DuWwYs2mHV1+1 +DDhbpyEkKjunNJGetFTqKE/TwaOL5OYr1fKdv5thACLd1ktEHz9dVv7enHjMmVuq +5L2620NLrUwmTKNNNIpsdDYT22L8m7IFgf+uPwzN9hui9DnnyvVMXPtUdzWAWsAS +oRMBM2c9nYGhqfWFJFiIeOf042hVAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8w +HwYDVR0jBBgwFoAU8DhClDSpPAB/Uu45pfdLDbxqfSMwHQYDVR0OBBYEFPA4QpQ0 +qTwAf1LuOaX3Sw28an0jMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOC +AgEAmU/b8OrWEfoq/cirbeQOc2LSQp8V/nxwUj9kh4IxP0VALuEinwZmKfyW0y2N +tjjH2fMnwVkpoIz2cyQPKCLXTmHdE93bnzJSk/tPzOo4PJhqA6sWryHRQq59RSvq +xM+KWZ+CcHY6+GImyRCXWEAkpC25LymAJ+GJa3LKSQhxN1MF8YDO00IC0vzC0ZQG +7gfi9oPif5/nu1bDW7/dlZMJHiTBzybNraSuwrRp56q17TeU6d3RY4VrmnpKVnbc +GYUo1OTGpNi4lkF30LRZ8UYFh4cCH2m5ghjQQ9km2hpnqNZ1durybQ5C/4gmom6E +/n5iG/DGPe3AHGrHkda4ADdJm7mEBaHNbjHWROpTi7pTmB2hkIrphfgb8pNYw8jc +miZPPiDPT0PzEIx/EGF6NsqqC33Mn0dEWa6llcaZU+MHaz1JELAY/10OhUMUS+dr +00q1smBh3GlJAiNd6JJxw5yfRWd5HtwyhrqqVTxkbzK1EEAV3nJAeOBucLtu6wno +OdmsupJ13UPKugGVrRqBKzrw48UvDBhNEMauwO3+BVJ/GQXLqa81CAw4IuT+VuVT +Pr/k1rPZCMM91TMygSTFqeFlEbgyMzBxGEkdGkXGmhSKWDkobvPLUblJJmR4A8eR +EYOpuZA0tm+qBZ6FKFeZvn8nBkliTaH8CeErRglMFJtWj0U= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 76:af:ee:88:93:15:45:b6:50:53:9b:80:9c:a4:df:9a +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=SSL Corporation, CN=SSL.com Client RSA Root CA 2022 +# Validity +# Not Before: Aug 25 16:31:07 2022 GMT +# Not After : Aug 19 16:31:06 2046 GMT +# Subject: C=US, O=SSL Corporation, CN=SSL.com Client RSA Root CA 2022 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b8:58:db:46:30:fb:c9:3f:e3:c8:f0:01:33:34: +# e2:da:48:a8:18:e9:20:6e:9a:d7:01:e1:d5:29:8f: +# 30:b4:23:6a:e4:cb:62:b0:be:e2:9f:20:bd:3e:54: +# a0:39:68:c7:86:37:66:74:06:06:ef:74:2b:da:dc: +# 9f:84:a9:52:2f:90:d2:ee:7e:7c:fb:a5:22:ad:6f: +# 70:46:67:96:3d:29:d4:a3:bb:56:7b:14:04:59:c1: +# 21:63:44:1e:b2:1f:12:5c:90:87:65:0d:88:f6:1e: +# 88:22:e2:63:54:bb:f3:36:f8:d6:7f:dc:da:ff:29: +# 35:a9:c6:6e:0e:69:5b:3f:d8:be:82:87:15:70:5d: +# b0:c7:5c:12:0f:63:a6:38:cd:cf:73:b9:c3:0e:89: +# 26:37:1b:3f:62:1c:32:69:d1:9b:d9:ff:55:90:31: +# de:b1:63:dd:cf:c5:74:77:fc:ef:88:21:53:bf:00: +# 31:1a:26:2c:00:30:a5:5f:6c:e3:e4:f6:00:8a:ca: +# 98:87:9c:74:03:7a:8b:66:ec:7e:fd:a3:8f:35:25: +# 5c:78:a5:b3:a4:fb:3d:6d:a9:8a:f0:6c:88:82:8b: +# fd:4a:d0:6f:e4:d7:a3:b4:8e:34:49:38:be:ce:45: +# e5:d2:1c:ca:5e:c2:37:14:8b:cd:66:56:33:37:9d: +# e5:6b:ec:43:92:64:a0:42:da:75:6f:c0:15:ec:f9: +# 69:bd:34:b9:8a:7b:fa:16:fb:55:fe:52:20:e8:04: +# 04:56:56:65:f5:37:44:98:c8:8a:46:e9:b7:ac:b8: +# e8:be:62:8e:54:36:5b:f7:3b:70:bf:5d:ee:2d:ba: +# 5f:de:42:19:86:f0:7f:8b:eb:08:cb:d8:be:ea:0e: +# 42:42:a0:36:73:57:17:ed:32:ea:d0:8d:e8:07:1b: +# 9b:99:e8:c4:9a:62:04:0e:48:f7:3c:12:ba:f7:58: +# c1:9a:8c:e9:c7:b0:23:36:56:34:1d:cb:6c:da:ba: +# 07:84:1d:fd:d1:ac:9f:e6:c2:89:ef:c3:b9:6c:18: +# b3:69:87:57:5f:b5:0c:38:5b:a7:21:24:2a:3b:a7: +# 34:91:9e:b4:54:ea:28:4f:d3:c1:a3:8b:e4:e6:2b: +# d5:f2:9d:bf:9b:61:00:22:dd:d6:4b:44:1f:3f:5d: +# 56:fe:de:9c:78:cc:99:5b:aa:e4:bd:ba:db:43:4b: +# ad:4c:26:4c:a3:4d:34:8a:6c:74:36:13:db:62:fc: +# 9b:b2:05:81:ff:ae:3f:0c:cd:f6:1b:a2:f4:39:e7: +# ca:f5:4c:5c:fb:54:77:35:80:5a:c0:12:a1:13:01: +# 33:67:3d:9d:81:a1:a9:f5:85:24:58:88:78:e7:f4: +# e3:68:55 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# F0:38:42:94:34:A9:3C:00:7F:52:EE:39:A5:F7:4B:0D:BC:6A:7D:23 +# X509v3 Subject Key Identifier: +# F0:38:42:94:34:A9:3C:00:7F:52:EE:39:A5:F7:4B:0D:BC:6A:7D:23 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 99:4f:db:f0:ea:d6:11:fa:2a:fd:c8:ab:6d:e4:0e:73:62:d2: +# 42:9f:15:fe:7c:70:52:3f:64:87:82:31:3f:45:40:2e:e1:22: +# 9f:06:66:29:fc:96:d3:2d:8d:b6:38:c7:d9:f3:27:c1:59:29: +# a0:8c:f6:73:24:0f:28:22:d7:4e:61:dd:13:dd:db:9f:32:52: +# 93:fb:4f:cc:ea:38:3c:98:6a:03:ab:16:af:21:d1:42:ae:7d: +# 45:2b:ea:c4:cf:8a:59:9f:82:70:76:3a:f8:62:26:c9:10:97: +# 58:40:24:a4:2d:b9:2f:29:80:27:e1:89:6b:72:ca:49:08:71: +# 37:53:05:f1:80:ce:d3:42:02:d2:fc:c2:d1:94:06:ee:07:e2: +# f6:83:e2:7f:9f:e7:bb:56:c3:5b:bf:dd:95:93:09:1e:24:c1: +# cf:26:cd:ad:a4:ae:c2:b4:69:e7:aa:b5:ed:37:94:e9:dd:d1: +# 63:85:6b:9a:7a:4a:56:76:dc:19:85:28:d4:e4:c6:a4:d8:b8: +# 96:41:77:d0:b4:59:f1:46:05:87:87:02:1f:69:b9:82:18:d0: +# 43:d9:26:da:1a:67:a8:d6:75:76:ea:f2:6d:0e:42:ff:88:26: +# a2:6e:84:fe:7e:62:1b:f0:c6:3d:ed:c0:1c:6a:c7:91:d6:b8: +# 00:37:49:9b:b9:84:05:a1:cd:6e:31:d6:44:ea:53:8b:ba:53: +# 98:1d:a1:90:8a:e9:85:f8:1b:f2:93:58:c3:c8:dc:9a:26:4f: +# 3e:20:cf:4f:43:f3:10:8c:7f:10:61:7a:36:ca:aa:0b:7d:cc: +# 9f:47:44:59:ae:a5:95:c6:99:53:e3:07:6b:3d:49:10:b0:18: +# ff:5d:0e:85:43:14:4b:e7:6b:d3:4a:b5:b2:60:61:dc:69:49: +# 02:23:5d:e8:92:71:c3:9c:9f:45:67:79:1e:dc:32:86:ba:aa: +# 55:3c:64:6f:32:b5:10:40:15:de:72:40:78:e0:6e:70:bb:6e: +# eb:09:e8:39:d9:ac:ba:92:75:dd:43:ca:ba:01:95:ad:1a:81: +# 2b:3a:f0:e3:c5:2f:0c:18:4d:10:c6:ae:c0:ed:fe:05:52:7f: +# 19:05:cb:a9:af:35:08:0c:38:22:e4:fe:56:e5:53:3e:bf:e4: +# d6:b3:d9:08:c3:3d:d5:33:32:81:24:c5:a9:e1:65:11:b8:32: +# 33:30:71:18:49:1d:1a:45:c6:9a:14:8a:58:39:28:6e:f3:cb: +# 51:b9:49:26:64:78:03:c7:91:11:83:a9:b9:90:34:b6:6f:aa: +# 05:9e:85:28:57:99:be:7f:27:06:49:62:4d:a1:fc:09:e1:2b: +# 46:09:4c:14:9b:56:8f:45 + +[p11-kit-object-v1] +label: "SSL.com EV Root Certification Authority ECC" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEqhJHkJgb++/DQAeDIE7xMIKiBtHykoZh +8vYhaMoAxMfqQwBUhtz9H98AuEFiXNxwFjLeH5nUzMUHyAgfYRYHUT19XAdT4zU4 +jN/Nn9kuDUq2GS5acFoG7b7wobDK0Akp +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com EV Root Certification Authority ECC" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMC +VVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9T +U0wgQ29ycG9yYXRpb24xNDAyBgNVBAMMK1NTTC5jb20gRVYgUm9vdCBDZXJ0aWZp +Y2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEyMTgxNTIzWhcNNDEwMjEyMTgx +NTIzWjB/MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hv +dXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwrU1NMLmNv +bSBFViBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABKoSR5CYG/vvw0AHgyBO8TCCogbR8pKGYfL2IWjKAMTH6kMA +VIbc/R/fALhBYlzccBYy3h+Z1MzFB8gIH2EWB1E9fVwHU+M1OIzfzZ/ZLg1Kthku +WnBaBu2+8KGwytAJKaNjMGEwHQYDVR0OBBYEFFvKXuXe0oGqzagtZFG22XKbl+ZP +MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe5d7SgarNqC1kUbbZcpuX +5k8wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2gAMGUCMQCK5kCJN+vp1RPZ +ytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZg +h5Mmm7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 3182246526754555285 (0x2c299c5b16ed0595) +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com EV Root Certification Authority ECC +# Validity +# Not Before: Feb 12 18:15:23 2016 GMT +# Not After : Feb 12 18:15:23 2041 GMT +# Subject: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com EV Root Certification Authority ECC +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:aa:12:47:90:98:1b:fb:ef:c3:40:07:83:20:4e: +# f1:30:82:a2:06:d1:f2:92:86:61:f2:f6:21:68:ca: +# 00:c4:c7:ea:43:00:54:86:dc:fd:1f:df:00:b8:41: +# 62:5c:dc:70:16:32:de:1f:99:d4:cc:c5:07:c8:08: +# 1f:61:16:07:51:3d:7d:5c:07:53:e3:35:38:8c:df: +# cd:9f:d9:2e:0d:4a:b6:19:2e:5a:70:5a:06:ed:be: +# f0:a1:b0:ca:d0:09:29 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 5B:CA:5E:E5:DE:D2:81:AA:CD:A8:2D:64:51:B6:D9:72:9B:97:E6:4F +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 5B:CA:5E:E5:DE:D2:81:AA:CD:A8:2D:64:51:B6:D9:72:9B:97:E6:4F +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:65:02:31:00:8a:e6:40:89:37:eb:e9:d5:13:d9:ca:d4:6b: +# 24:f3:b0:3d:87:46:58:1a:ec:b1:df:6f:fb:56:ba:70:6b:c7: +# 38:cc:e8:b1:8c:4f:0f:f7:f1:67:76:0e:83:d0:1e:51:8f:02: +# 30:3d:f6:23:28:26:4c:c6:60:87:93:26:9b:b2:35:1e:ba:d6: +# f7:3c:d1:1c:ce:fa:25:3c:a6:1a:81:15:5b:f3:12:0f:6c:ee: +# 65:8a:c9:87:a8:f9:07:e0:62:9a:8c:5c:4a + +[p11-kit-object-v1] +label: "SSL.com EV Root Certification Authority RSA R2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjzZlQOHWTcDXtOlG2mvq +M0fNTPl9fb69LT3w23jhhqXZuglXaO1XPqDQCEGD5yhBJB/jchXQARr7XnAjssuf +OePPxU7Gkm0mxnu7s9onnQqG6YE3Bf7wcXHswxzpY6IXFJ3vG2fThVUCAtZJycxa +4bH3bzKfydQ7iEGonL3Lq9ttewkfokxykNorCPzPPFTOZw+oz12WGQvE43LrrdF9 +HSfvkusQv1vrO6/PgN3B0pYEW3p+pKk8OHakYo6gOV7qd89dAFmPZiw+B6KjBSYR +aZfqhbcPlgtLyEDhULouisv3D5oi53+aNxPN8k0TayHRwMwi8qFG9kRpnMphNQcA +b9ZhCBHqurj26bNg5U257J8UZslXWNvNh2n4ioYSA0e/ZhN2rHd9NCSFg83XqpyQ +Gp8hLH94t2S42Oim9HizVcuE0jLEeK6jj2HdzghTreyI/BXkmg3mnxp3zkyPuBQV +PWKchjgGAGYS5Fl2WlPAApiiECtoRHuOec4zSnaqW4EWG7WK2NAAe15itAnWhmMO +pgWVSbooi4iTsjQc2KRVbrcc0N6ZVTsj9CLg+SlmJuwgUHfbSguPvuUCYHBBXtSu +UDkiFCbLsjtzdFVHB3mBOagwE0TlBIqulhMlQg+5U8Sb/M3kHN48+qvWBkofZ6aY +MBzdLNvcGJVXZsb/XItW9XcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com EV Root Certification Authority RSA R2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNV +BAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UE +CgwPU1NMIENvcnBvcmF0aW9uMTcwNQYDVQQDDC5TU0wuY29tIEVWIFJvb3QgQ2Vy +dGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIyMB4XDTE3MDUzMTE4MTQzN1oXDTQy +MDUzMDE4MTQzN1owgYIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4G +A1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMTcwNQYDVQQD +DC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIy +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjzZlQOHWTcDXtOlG2mvq +M0fNTPl9fb69LT3w23jhhqXZuglXaO1XPqDQCEGD5yhBJB/jchXQARr7XnAjssuf +OePPxU7Gkm0mxnu7s9onnQqG6YE3Bf7wcXHswxzpY6IXFJ3vG2fThVUCAtZJycxa +4bH3bzKfydQ7iEGonL3Lq9ttewkfokxykNorCPzPPFTOZw+oz12WGQvE43LrrdF9 +HSfvkusQv1vrO6/PgN3B0pYEW3p+pKk8OHakYo6gOV7qd89dAFmPZiw+B6KjBSYR +aZfqhbcPlgtLyEDhULouisv3D5oi53+aNxPN8k0TayHRwMwi8qFG9kRpnMphNQcA +b9ZhCBHqurj26bNg5U257J8UZslXWNvNh2n4ioYSA0e/ZhN2rHd9NCSFg83XqpyQ +Gp8hLH94t2S42Oim9HizVcuE0jLEeK6jj2HdzghTreyI/BXkmg3mnxp3zkyPuBQV +PWKchjgGAGYS5Fl2WlPAApiiECtoRHuOec4zSnaqW4EWG7WK2NAAe15itAnWhmMO +pgWVSbooi4iTsjQc2KRVbrcc0N6ZVTsj9CLg+SlmJuwgUHfbSguPvuUCYHBBXtSu +UDkiFCbLsjtzdFVHB3mBOagwE0TlBIqulhMlQg+5U8Sb/M3kHN48+qvWBkofZ6aY +MBzdLNvcGJVXZsb/XItW9XcCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNV +HSMEGDAWgBT5YLvU49U09rj1BoAlp3PbRmmonjAdBgNVHQ4EFgQU+WC71OPVNPa4 +9QaAJadz20ZpqJ4wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBW +s47LCp1Jjr+kxJG7ZhcFUZh1++VQLHqe8RT6q9OKPv+RKY9ji9i0qVQBDb6Thi/5 +Sm3HXvVX+cpVHBK+Rw82xd9qt9t1wkclf7nxY/hoLVUE0fKNsKTPvDxeH3jnpaAg +cLAExbf3cqfeIg29MyVGjGSSJuM+LmOW2puMPfgYCdcDzH2GguDKBAdRUNf/ktUM +79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDzOFSz +/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXt +ll9ldDz7CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEm +Kf7GUmG6sXP/wwyc5WxqlD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKK +QbNmC1r7fSOl8hqw/96bg5Qu0T/fkreRrwU7ZcegbLHNYhLDkBvjJc40vG93drEQ +w/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1hlMYegouCRw2n5H9gooi +S9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX9hwJ1C07 +mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 6248227494352943350 (0x56b629cd34bc78f6) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com EV Root Certification Authority RSA R2 +# Validity +# Not Before: May 31 18:14:37 2017 GMT +# Not After : May 30 18:14:37 2042 GMT +# Subject: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com EV Root Certification Authority RSA R2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:8f:36:65:40:e1:d6:4d:c0:d7:b4:e9:46:da:6b: +# ea:33:47:cd:4c:f9:7d:7d:be:bd:2d:3d:f0:db:78: +# e1:86:a5:d9:ba:09:57:68:ed:57:3e:a0:d0:08:41: +# 83:e7:28:41:24:1f:e3:72:15:d0:01:1a:fb:5e:70: +# 23:b2:cb:9f:39:e3:cf:c5:4e:c6:92:6d:26:c6:7b: +# bb:b3:da:27:9d:0a:86:e9:81:37:05:fe:f0:71:71: +# ec:c3:1c:e9:63:a2:17:14:9d:ef:1b:67:d3:85:55: +# 02:02:d6:49:c9:cc:5a:e1:b1:f7:6f:32:9f:c9:d4: +# 3b:88:41:a8:9c:bd:cb:ab:db:6d:7b:09:1f:a2:4c: +# 72:90:da:2b:08:fc:cf:3c:54:ce:67:0f:a8:cf:5d: +# 96:19:0b:c4:e3:72:eb:ad:d1:7d:1d:27:ef:92:eb: +# 10:bf:5b:eb:3b:af:cf:80:dd:c1:d2:96:04:5b:7a: +# 7e:a4:a9:3c:38:76:a4:62:8e:a0:39:5e:ea:77:cf: +# 5d:00:59:8f:66:2c:3e:07:a2:a3:05:26:11:69:97: +# ea:85:b7:0f:96:0b:4b:c8:40:e1:50:ba:2e:8a:cb: +# f7:0f:9a:22:e7:7f:9a:37:13:cd:f2:4d:13:6b:21: +# d1:c0:cc:22:f2:a1:46:f6:44:69:9c:ca:61:35:07: +# 00:6f:d6:61:08:11:ea:ba:b8:f6:e9:b3:60:e5:4d: +# b9:ec:9f:14:66:c9:57:58:db:cd:87:69:f8:8a:86: +# 12:03:47:bf:66:13:76:ac:77:7d:34:24:85:83:cd: +# d7:aa:9c:90:1a:9f:21:2c:7f:78:b7:64:b8:d8:e8: +# a6:f4:78:b3:55:cb:84:d2:32:c4:78:ae:a3:8f:61: +# dd:ce:08:53:ad:ec:88:fc:15:e4:9a:0d:e6:9f:1a: +# 77:ce:4c:8f:b8:14:15:3d:62:9c:86:38:06:00:66: +# 12:e4:59:76:5a:53:c0:02:98:a2:10:2b:68:44:7b: +# 8e:79:ce:33:4a:76:aa:5b:81:16:1b:b5:8a:d8:d0: +# 00:7b:5e:62:b4:09:d6:86:63:0e:a6:05:95:49:ba: +# 28:8b:88:93:b2:34:1c:d8:a4:55:6e:b7:1c:d0:de: +# 99:55:3b:23:f4:22:e0:f9:29:66:26:ec:20:50:77: +# db:4a:0b:8f:be:e5:02:60:70:41:5e:d4:ae:50:39: +# 22:14:26:cb:b2:3b:73:74:55:47:07:79:81:39:a8: +# 30:13:44:e5:04:8a:ae:96:13:25:42:0f:b9:53:c4: +# 9b:fc:cd:e4:1c:de:3c:fa:ab:d6:06:4a:1f:67:a6: +# 98:30:1c:dd:2c:db:dc:18:95:57:66:c6:ff:5c:8b: +# 56:f5:77 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# F9:60:BB:D4:E3:D5:34:F6:B8:F5:06:80:25:A7:73:DB:46:69:A8:9E +# X509v3 Subject Key Identifier: +# F9:60:BB:D4:E3:D5:34:F6:B8:F5:06:80:25:A7:73:DB:46:69:A8:9E +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 56:b3:8e:cb:0a:9d:49:8e:bf:a4:c4:91:bb:66:17:05:51:98: +# 75:fb:e5:50:2c:7a:9e:f1:14:fa:ab:d3:8a:3e:ff:91:29:8f: +# 63:8b:d8:b4:a9:54:01:0d:be:93:86:2f:f9:4a:6d:c7:5e:f5: +# 57:f9:ca:55:1c:12:be:47:0f:36:c5:df:6a:b7:db:75:c2:47: +# 25:7f:b9:f1:63:f8:68:2d:55:04:d1:f2:8d:b0:a4:cf:bc:3c: +# 5e:1f:78:e7:a5:a0:20:70:b0:04:c5:b7:f7:72:a7:de:22:0d: +# bd:33:25:46:8c:64:92:26:e3:3e:2e:63:96:da:9b:8c:3d:f8: +# 18:09:d7:03:cc:7d:86:82:e0:ca:04:07:51:50:d7:ff:92:d5: +# 0c:ef:da:86:9f:99:d7:eb:b7:af:68:e2:39:26:94:ba:68:b7: +# bf:83:d3:ea:7a:67:3d:62:67:ae:25:e5:72:e8:e2:e4:ec:ae: +# 12:f6:4b:2b:3c:9f:e9:b0:40:f3:38:54:b3:fd:b7:68:c8:da: +# c6:8f:51:3c:b2:fb:91:dc:1c:e7:9b:9d:e1:b7:0d:72:8f:e2: +# a4:c4:a9:78:f9:eb:14:ac:c6:43:05:c2:65:39:28:18:02:c3: +# 82:b2:9d:05:be:65:ed:96:5f:65:74:3c:fb:09:35:2e:7b:9c: +# 13:fd:1b:0f:5d:c7:6d:81:3a:56:0f:cc:3b:e1:af:02:2f:22: +# ac:46:ca:46:3c:a0:1c:4c:d6:44:b4:5e:2e:5c:15:66:09:e1: +# 26:29:fe:c6:52:61:ba:b1:73:ff:c3:0c:9c:e5:6c:6a:94:3f: +# 14:ca:40:16:95:84:f3:59:a9:ac:5f:4c:61:93:6d:d1:3b:cc: +# a2:95:0c:22:a6:67:67:44:2e:b9:d9:d2:8a:41:b3:66:0b:5a: +# fb:7d:23:a5:f2:1a:b0:ff:de:9b:83:94:2e:d1:3f:df:92:b7: +# 91:af:05:3b:65:c7:a0:6c:b1:cd:62:12:c3:90:1b:e3:25:ce: +# 34:bc:6f:77:76:b1:10:c3:f7:05:1a:c0:d6:af:74:62:48:17: +# 77:92:69:90:61:1c:de:95:80:74:54:8f:18:1c:c3:f3:03:d0: +# bf:a4:43:75:86:53:18:7a:0a:2e:09:1c:36:9f:91:fd:82:8a: +# 22:4b:d1:0e:50:25:dd:cb:03:0c:17:c9:83:00:08:4e:35:4d: +# 8a:8b:ed:f0:02:94:66:2c:44:7f:cb:95:27:96:17:ad:09:30: +# ac:b6:71:17:6e:8b:17:f6:1c:09:d4:2d:3b:98:a5:71:d3:54: +# 13:d9:60:f3:f5:4b:66:4f:fa:f1:ee:20:12:8d:b4:ac:57:b1: +# 45:63:a1:ac:76:a9:c2:fb + +[p11-kit-object-v1] +label: "SSL.com Root Certification Authority ECC" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAERW6pUMSmIzaeXyiNF8uWImQ/3HqOHcwI +s6JxJLqOSbkEG0eWWKstlcjtngg1yCfriYxTWOtiiv7wWw9rMVJjQTuJzezsto0Z +0zQH3LvGBn/CRZXsy3+oI+AJ6YH680fT +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com Root Certification Authority ECC" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMC +VVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9T +U0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0 +aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEyMTgxNDAzWhcNNDEwMjEyMTgxNDAz +WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0 +b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNvbSBS +b290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB +BAAiA2IABEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI +7Z4INcgn64mMU1jrYor+8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPg +CemB+vNH06NjMGEwHQYDVR0OBBYEFILRhXMw5zUE044CkvvlpNHEIejNMA8GA1Ud +EwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTTjgKS++Wk0cQh6M0wDgYD +VR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCWe+0F+S8T +kdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+ +gA0z5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 8495723813297216424 (0x75e6dfcbc1685ba8) +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com Root Certification Authority ECC +# Validity +# Not Before: Feb 12 18:14:03 2016 GMT +# Not After : Feb 12 18:14:03 2041 GMT +# Subject: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com Root Certification Authority ECC +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:45:6e:a9:50:c4:a6:23:36:9e:5f:28:8d:17:cb: +# 96:22:64:3f:dc:7a:8e:1d:cc:08:b3:a2:71:24:ba: +# 8e:49:b9:04:1b:47:96:58:ab:2d:95:c8:ed:9e:08: +# 35:c8:27:eb:89:8c:53:58:eb:62:8a:fe:f0:5b:0f: +# 6b:31:52:63:41:3b:89:cd:ec:ec:b6:8d:19:d3:34: +# 07:dc:bb:c6:06:7f:c2:45:95:ec:cb:7f:a8:23:e0: +# 09:e9:81:fa:f3:47:d3 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 82:D1:85:73:30:E7:35:04:D3:8E:02:92:FB:E5:A4:D1:C4:21:E8:CD +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 82:D1:85:73:30:E7:35:04:D3:8E:02:92:FB:E5:A4:D1:C4:21:E8:CD +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:64:02:30:6f:e7:eb:59:11:a4:60:cf:61:b0:96:7b:ed:05: +# f9:2f:13:91:dc:ed:e5:fc:50:6b:11:46:46:b3:1c:21:00:62: +# bb:be:c3:e7:e8:cd:07:99:f9:0d:0b:5d:72:3e:c4:aa:02:30: +# 1f:bc:ba:0b:e2:30:24:fb:7c:6d:80:55:0a:99:3e:80:0d:33: +# e5:66:a3:b3:a3:bb:a5:d5:8b:8f:09:2c:a6:5d:7e:e2:f0:07: +# 08:68:6d:d2:7c:69:6e:5f:df:e5:6a:65 + +[p11-kit-object-v1] +label: "SSL.com Root Certification Authority RSA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA+Q/doyt9y9Aq/uxnhabn +Lhu6d+Hj9a+k7PpKXZHEV0drGHdrdvL9k+Q9D8IWngtmw1aUnheDhc5W7/IW/QBi +9SIJVOhlF05BueBPRpeqG8i4bmJeabFf2yoCfvxsyvNB2O3Q6Pw/YUjtsAMUHRAO +Sxngu07shmX/NvNeZwILnYZVYf16OO3+4hkAt2+hUGJ1dDyg+sglkrRueiLH+B6h +47LdkTGrKx0E/6VKBDfphaQzK/3i1lU0fBmkSmjHsqjTt8qhk4jrwZe8jPkd2SKE +JHTHBD1qqSmTzOu4W+H+XyWqNFjIwSNUnRuYEcM4nH49hmylD0CGfAL0XAJPKMuu +cZ8POsgz/hElNer8usVgPdl8GNWyqdN1eANyIso6wx/vLOUuqfqeLLZRRv2vA9bq +YGjqhRY2a4XpHsCz3cQk3IAqgUFtlD7I4MmBQQCeXr9/xQiYohgsQkCz+W84J0tO +gPQ9gUfgiHzqHM61dVxRLhwrfxpyKOcAtdF0xtfkn60Hk7ZTNTX8N+TD9l0WviFz +3pIK+KBjaryWkmo++LxlVZve9Q2JJgT8JRqmJWnLwm3KfOJZX5es6+8uyLzXG1k8 +K8zyGciTaydjGc/86Sb4ynGbf5P+NGeETpnr/LN4CTNwumamdu0bc+sapQ3EIhMg +lFYKTixsTrH9z5wJuqIz7YcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com Root Certification Authority RSA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UE +BhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQK +DA9TU0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZp +Y2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYwMjEyMTczOTM5WhcNNDEwMjEyMTcz +OTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hv +dXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv +bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFJTQTCCAiIwDQYJKoZIhvcN +AQEBBQADggIPADCCAgoCggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2R +xFdHaxh3a3by/ZPkPQ/CFp4LZsNWlJ4Xg4XOVu/yFv0AYvUiCVToZRdOQbngT0aX +qhvIuG5iXmmxX9sqAn78bMrzQdjt0Oj8P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcC +C52GVWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/geoeOy3ZExqysdBP+lSgQ3 +6YWkMyv94tZVNHwZpEpox7Ko07fKoZOI68GXvIz5HdkihCR0xwQ9aqkpk8zruFvh +/l8lqjRYyMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrIM/4RJTXq/LrF +YD3ZfBjVsqnTdXgDciLKOsMf7yzlLqn6niy2UUb9rwPW6mBo6oUWNmuF6R7As93E +JNyAKoFBbZQ+yODJgUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih86hzOtXVc +US4cK38acijnALXRdMbX5J+tB5O2UzU1/Dfkw/ZdFr4hc96SCvigY2q8lpJqPvi8 +ZVWb3vUNiSYE/CUapiVpy8JtynziWV+XrOvvLsi81xtZPCvM8hnIk2snYxnP/Okm ++Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUNxCITIJRWCk4sbE6x/c+cCbqi +M+2HAgMBAAGjYzBhMB0GA1UdDgQWBBTdBAkHovV6fVJTEpKV7jiAJQ2mWTAPBgNV +HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXuOIAlDaZZMA4G +A1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAIBgRlCn7Jp0cHh5wYfGV +cpNxJK1ok1iOMq8bs3AD/CUrdIWQPXhq9LmLpZc7tRiRux6n+UBbkflVma8eEdBc +Hadm47GUBwwyOabqG7B52B2ccETjit3E+ZUfijhDPwGFpUenPUayvOUiaPd7nNgs +PgohyC0zrL/FgZkxdMF1ccW+sfAjRfSda/wZY52jvATGGAslu1OJD7OAUN5F7kR/ +q5R4ZJjT9ijdh9hwZXT7DrkT66cPYakylszeu+1jTBi7qUD3oFRuIIhxdRjqerQ0 +cuAjJ3dctpDqhiVAq+8zD8ufgr6iIPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jr +a6x+3uxjMxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90I +H37hVZkLId6Tngr75qNJvTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/Y +K9f1JmzJBjSWFupwWRoyeXkLtoh/D1JIPb9s2KJELtFOt3JY04kTlf5Eq/jXixtu +nLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406ywKBjYZC6VWg3dGq2ktuf +oYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NIWuuA8ShY +Ic2wBlX7Jz9TkHCpBB5XJ7k= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 8875640296558310041 (0x7b2c9bd316803299) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com Root Certification Authority RSA +# Validity +# Not Before: Feb 12 17:39:39 2016 GMT +# Not After : Feb 12 17:39:39 2041 GMT +# Subject: C=US, ST=Texas, L=Houston, O=SSL Corporation, CN=SSL.com Root Certification Authority RSA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:f9:0f:dd:a3:2b:7d:cb:d0:2a:fe:ec:67:85:a6: +# e7:2e:1b:ba:77:e1:e3:f5:af:a4:ec:fa:4a:5d:91: +# c4:57:47:6b:18:77:6b:76:f2:fd:93:e4:3d:0f:c2: +# 16:9e:0b:66:c3:56:94:9e:17:83:85:ce:56:ef:f2: +# 16:fd:00:62:f5:22:09:54:e8:65:17:4e:41:b9:e0: +# 4f:46:97:aa:1b:c8:b8:6e:62:5e:69:b1:5f:db:2a: +# 02:7e:fc:6c:ca:f3:41:d8:ed:d0:e8:fc:3f:61:48: +# ed:b0:03:14:1d:10:0e:4b:19:e0:bb:4e:ec:86:65: +# ff:36:f3:5e:67:02:0b:9d:86:55:61:fd:7a:38:ed: +# fe:e2:19:00:b7:6f:a1:50:62:75:74:3c:a0:fa:c8: +# 25:92:b4:6e:7a:22:c7:f8:1e:a1:e3:b2:dd:91:31: +# ab:2b:1d:04:ff:a5:4a:04:37:e9:85:a4:33:2b:fd: +# e2:d6:55:34:7c:19:a4:4a:68:c7:b2:a8:d3:b7:ca: +# a1:93:88:eb:c1:97:bc:8c:f9:1d:d9:22:84:24:74: +# c7:04:3d:6a:a9:29:93:cc:eb:b8:5b:e1:fe:5f:25: +# aa:34:58:c8:c1:23:54:9d:1b:98:11:c3:38:9c:7e: +# 3d:86:6c:a5:0f:40:86:7c:02:f4:5c:02:4f:28:cb: +# ae:71:9f:0f:3a:c8:33:fe:11:25:35:ea:fc:ba:c5: +# 60:3d:d9:7c:18:d5:b2:a9:d3:75:78:03:72:22:ca: +# 3a:c3:1f:ef:2c:e5:2e:a9:fa:9e:2c:b6:51:46:fd: +# af:03:d6:ea:60:68:ea:85:16:36:6b:85:e9:1e:c0: +# b3:dd:c4:24:dc:80:2a:81:41:6d:94:3e:c8:e0:c9: +# 81:41:00:9e:5e:bf:7f:c5:08:98:a2:18:2c:42:40: +# b3:f9:6f:38:27:4b:4e:80:f4:3d:81:47:e0:88:7c: +# ea:1c:ce:b5:75:5c:51:2e:1c:2b:7f:1a:72:28:e7: +# 00:b5:d1:74:c6:d7:e4:9f:ad:07:93:b6:53:35:35: +# fc:37:e4:c3:f6:5d:16:be:21:73:de:92:0a:f8:a0: +# 63:6a:bc:96:92:6a:3e:f8:bc:65:55:9b:de:f5:0d: +# 89:26:04:fc:25:1a:a6:25:69:cb:c2:6d:ca:7c:e2: +# 59:5f:97:ac:eb:ef:2e:c8:bc:d7:1b:59:3c:2b:cc: +# f2:19:c8:93:6b:27:63:19:cf:fc:e9:26:f8:ca:71: +# 9b:7f:93:fe:34:67:84:4e:99:eb:fc:b3:78:09:33: +# 70:ba:66:a6:76:ed:1b:73:eb:1a:a5:0d:c4:22:13: +# 20:94:56:0a:4e:2c:6c:4e:b1:fd:cf:9c:09:ba:a2: +# 33:ed:87 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# DD:04:09:07:A2:F5:7A:7D:52:53:12:92:95:EE:38:80:25:0D:A6:59 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# DD:04:09:07:A2:F5:7A:7D:52:53:12:92:95:EE:38:80:25:0D:A6:59 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 20:18:11:94:29:fb:26:9d:1c:1e:1e:70:61:f1:95:72:93:71: +# 24:ad:68:93:58:8e:32:af:1b:b3:70:03:fc:25:2b:74:85:90: +# 3d:78:6a:f4:b9:8b:a5:97:3b:b5:18:91:bb:1e:a7:f9:40:5b: +# 91:f9:55:99:af:1e:11:d0:5c:1d:a7:66:e3:b1:94:07:0c:32: +# 39:a6:ea:1b:b0:79:d8:1d:9c:70:44:e3:8a:dd:c4:f9:95:1f: +# 8a:38:43:3f:01:85:a5:47:a7:3d:46:b2:bc:e5:22:68:f7:7b: +# 9c:d8:2c:3e:0a:21:c8:2d:33:ac:bf:c5:81:99:31:74:c1:75: +# 71:c5:be:b1:f0:23:45:f4:9d:6b:fc:19:63:9d:a3:bc:04:c6: +# 18:0b:25:bb:53:89:0f:b3:80:50:de:45:ee:44:7f:ab:94:78: +# 64:98:d3:f6:28:dd:87:d8:70:65:74:fb:0e:b9:13:eb:a7:0f: +# 61:a9:32:96:cc:de:bb:ed:63:4c:18:bb:a9:40:f7:a0:54:6e: +# 20:88:71:75:18:ea:7a:b4:34:72:e0:23:27:77:5c:b6:90:ea: +# 86:25:40:ab:ef:33:0f:cb:9f:82:be:a2:20:fb:f6:b5:2d:1a: +# e6:c2:85:b1:74:0f:fb:c8:65:02:a4:52:01:47:dd:49:22:c1: +# bf:d8:eb:6b:ac:7e:de:ec:63:33:15:b7:23:08:8f:c6:0f:8d: +# 41:5a:dd:8e:c5:b9:8f:e5:45:3f:78:db:ba:d2:1b:40:b1:fe: +# 71:4d:3f:e0:81:a2:ba:5e:b4:ec:15:e0:93:dd:08:1f:7e:e1: +# 55:99:0b:21:de:93:9e:0a:fb:e6:a3:49:bd:36:30:fe:e7:77: +# b2:a0:75:97:b5:2d:81:88:17:65:20:f7:da:90:00:9f:c9:52: +# cc:32:ca:35:7c:f5:3d:0f:d8:2b:d7:f5:26:6c:c9:06:34:96: +# 16:ea:70:59:1a:32:79:79:0b:b6:88:7f:0f:52:48:3d:bf:6c: +# d8:a2:44:2e:d1:4e:b7:72:58:d3:89:13:95:fe:44:ab:f8:d7: +# 8b:1b:6e:9c:bc:2c:a0:5b:d5:6a:00:af:5f:37:e1:d5:fa:10: +# 0b:98:9c:86:e7:26:8f:ce:f0:ec:6e:8a:57:0b:80:e3:4e:b2: +# c0:a0:63:61:90:ba:55:68:37:74:6a:b6:92:db:9f:a1:86:22: +# b6:65:27:0e:ec:b6:9f:42:60:e4:67:c2:b5:da:41:0b:c4:d3: +# 8b:61:1b:bc:fa:1f:91:2b:d7:44:07:5e:ba:29:ac:d9:c5:e9: +# ef:53:48:5a:eb:80:f1:28:58:21:cd:b0:06:55:fb:27:3f:53: +# 90:70:a9:04:1e:57:27:b9 + +[p11-kit-object-v1] +label: "SSL.com TLS ECC Root CA 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAERSk1c/rCuCPOFH2osU2gWzbuKixTw2AJ +NbIkZiZpwLOV1l2SQBkOxqUTcPTvElEoXefMvfk8hcHPlJDJK86SQlhZZ/2UJxBk +jE8EsU1J5HtPm/XnCPgDiPenw5JLGVSB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com TLS ECC Root CA 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICOjCCAcCgAwIBAgIQFAP1q/s3ixdAW+JDsqXRxDAKBggqhkjOPQQDAzBOMQsw +CQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxT +U0wuY29tIFRMUyBFQ0MgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzM0OFoXDTQ2 +MDgxOTE2MzM0N1owTjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBDb3Jwb3Jh +dGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgRUNDIFJvb3QgQ0EgMjAyMjB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABEUpNXP6wrgjzhR9qLFNoFs27iosU8NgCTWyJGYm +acCzldZdkkAZDsalE3D07xJRKF3nzL35PIXBz5SQySvOkkJYWWf9lCcQZIxPBLFN +SeR7T5v15wj4A4j3p8OSSxlUgaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSME +GDAWgBSJjy+j6CugFFR781a4Jl9nOAuc0DAdBgNVHQ4EFgQUiY8vo+groBRUe/NW +uCZfZzgLnNAwDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2gAMGUCMFXjIlbp +15IkWE8elDIPDAI2wv2sdDJO4fscgIijzPvX6yv/N33w7deedWo1dlJF4AIxAMeN +b0Igj762TVntd00pxCAgRWSGOlDGxK0tk/UYfXLtqc/ErFc2KAhl3zx5Zn6g6g== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 14:03:f5:ab:fb:37:8b:17:40:5b:e2:43:b2:a5:d1:c4 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, O=SSL Corporation, CN=SSL.com TLS ECC Root CA 2022 +# Validity +# Not Before: Aug 25 16:33:48 2022 GMT +# Not After : Aug 19 16:33:47 2046 GMT +# Subject: C=US, O=SSL Corporation, CN=SSL.com TLS ECC Root CA 2022 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:45:29:35:73:fa:c2:b8:23:ce:14:7d:a8:b1:4d: +# a0:5b:36:ee:2a:2c:53:c3:60:09:35:b2:24:66:26: +# 69:c0:b3:95:d6:5d:92:40:19:0e:c6:a5:13:70:f4: +# ef:12:51:28:5d:e7:cc:bd:f9:3c:85:c1:cf:94:90: +# c9:2b:ce:92:42:58:59:67:fd:94:27:10:64:8c:4f: +# 04:b1:4d:49:e4:7b:4f:9b:f5:e7:08:f8:03:88:f7: +# a7:c3:92:4b:19:54:81 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 89:8F:2F:A3:E8:2B:A0:14:54:7B:F3:56:B8:26:5F:67:38:0B:9C:D0 +# X509v3 Subject Key Identifier: +# 89:8F:2F:A3:E8:2B:A0:14:54:7B:F3:56:B8:26:5F:67:38:0B:9C:D0 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:55:e3:22:56:e9:d7:92:24:58:4f:1e:94:32:0f: +# 0c:02:36:c2:fd:ac:74:32:4e:e1:fb:1c:80:88:a3:cc:fb:d7: +# eb:2b:ff:37:7d:f0:ed:d7:9e:75:6a:35:76:52:45:e0:02:31: +# 00:c7:8d:6f:42:20:8f:be:b6:4d:59:ed:77:4d:29:c4:20:20: +# 45:64:86:3a:50:c6:c4:ad:2d:93:f5:18:7d:72:ed:a9:cf:c4: +# ac:57:36:28:08:65:df:3c:79:66:7e:a0:ea + +[p11-kit-object-v1] +label: "SSL.com TLS RSA Root CA 2022" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0KQJck9AiBJhPjUjnu72 +dM8ve1g9zjwNECiQL5f3jEjYoNglsUywEUwXc1DQIkpju4HTKW7VtQk+Jhh/shJ/ +k5i3r/A2v/LuGJ6cO1LFRxlddPNkZtVdx2i0vxscBqO8j0Ajth7GhL1RxBs5wZXS +KexLrnstvzn9tGLelntBxpyg4AZy+/AHlwk5gXSv9zRZEVcKwlvBJPQxczCCxp26 +Avc+fERfgw3z8d0gaRYJUOLUVbbggHJ2bkxHt3VVWbRTdNmUxkGtWIoxZg8eohsp +QE4v33vmFiwt/L/s87T6vhj2m0nU7gVu2TTznPHsAYvRIMYPoLW8F05Ie1HC/Olc +aTdHZrNo+BUo8LnTpBXMWk+6UnCjEkXdxrpO+8LQ96hSJ21uebWM/HuMwRZM7oB/ +vvB2vkFTEjOuWjhCq9cPPkGNdgcy1auJ9k5n2bFCdSNu881CsvxV9VOHFzvAM1jx +UtL5gKTw6PA7izjMpMaQfw+c/YvRo8/ag6dpyVA21VwF0gpBdNtjETfBpaCWSx6M +FhJ3rpQ0ex5/wmYA5KqD6oqQrc42RE3RUem8H/NqBf3AdB8lGUBRbuqCUUDfm7kI +KgYC1SMcE9bp29vGsHrLeyeb++DVRiTtEEtjS6UFj7q4HSum+pHiklK97Otnl22a +LZ+BMgVnMvtICD/ZJbgEJS8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SSL.com TLS RSA Root CA 2022" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFiTCCA3GgAwIBAgIQb77arXO9CEDii02+1PdbkTANBgkqhkiG9w0BAQsFADBO +MQswCQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQD +DBxTU0wuY29tIFRMUyBSU0EgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzQyMloX +DTQ2MDgxOTE2MzQyMVowTjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBDb3Jw +b3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgUlNBIFJvb3QgQ0EgMjAyMjCC +AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANCkCXJPQIgSYT41I57u9nTP +L3tYPc48DRAokC+X94xI2KDYJbFMsBFMF3NQ0CJKY7uB0ylu1bUJPiYYf7ISf5OY +t6/wNr/y7hienDtSxUcZXXTzZGbVXcdotL8bHAajvI9AI7YexoS9UcQbOcGV0ins +S657Lb85/bRi3pZ7QcacoOAGcvvwB5cJOYF0r/c0WRFXCsJbwST0MXMwgsadugL3 +PnxEX4MN8/HdIGkWCVDi1FW24IBydm5MR7d1VVm0U3TZlMZBrViKMWYPHqIbKUBO +L9975hYsLfy/7PO0+r4Y9ptJ1O4Fbtk085zx7AGL0SDGD6C1vBdOSHtRwvzpXGk3 +R2azaPgVKPC506QVzFpPulJwoxJF3ca6TvvC0PeoUidtbnm1jPx7jMEWTO6Af77w +dr5BUxIzrlo4QqvXDz5BjXYHMtWrifZOZ9mxQnUjbvPNQrL8VfVThxc7wDNY8VLS ++YCk8OjwO4s4zKTGkH8PnP2L0aPP2oOnaclQNtVcBdIKQXTbYxE3waWglksejBYS +d66UNHsef8JmAOSqg+qKkK3ONkRN0VHpvB/zagX9wHQfJRlAUW7qglFA35u5CCoG +AtUjHBPW6dvbxrB6y3snm/vg1UYk7RBLY0ulBY+6uB0rpvqR4pJSvezrZ5dtmi2f +gTIFZzL7SAg/2SW4BCUvAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0j +BBgwFoAU+y437uOEeicuzRk1sTN8/9REQrkwHQYDVR0OBBYEFPsuN+7jhHonLs0Z +NbEzfP/UREK5MA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAjYlt +hEUY8U+zoO9opMAdrDC8Z2awms22qyIZZtM7QbUQnRC6cm4pJCAcAZli05bg4vsM +QtfhWsSWTVTNj8pDU/0quOr4ZcoBwq1gaAafORpR2eCNJvkLTqVTJXojpBzOCBvf +R4iyrT7gJ4eLSYwfqUdYe5byiB0YrrPRpgqU+tvT5TgKa3kSM/tKWTcWQA673vWJ +DPFs0/dRa1419dvAJuoSc06pkZCmF8NsLzjUo3KUQyxi4U5cMj29TH0ZR6LDSeeW +P4+a0zvkEdiLA9z2tmBVGKaBUfPhqBVq6+AL8BQx1rmMRTqoENjwuSfr98t67wVy +lrXEj5ZzxOhWc5y8aVFjvO9nHEMaX3cZHxj4HCUp+UmZKbaSPaKDN7EgkaibMOlq +bLQjk2UEqxHzDh1TJElTHaE/nUiSEeJ9DU/1172iWD54nR4fK/4huxoTtrEoZP2w +AgDHbICivRZQIA9ygV/MlP+7mea6kMvq+cYMwq7FGc4zoWtcu358NFcXrfA/rs3q +r5nsLFR+jM4uElZI7xc7P0peYNLcdDa8pUNjyw9bowJWCZ4kLOGGgYz+qxcs+sji +Mho6/4UIyYOf8kpIEFR3N+2ivEC+5BB09+Rbu7nzifmPQdjH5FCQNYA+HLhNkNPU +98OwoX6EyneSMSy4kLGCenROmxMmtNVQZlR4rmA= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 6f:be:da:ad:73:bd:08:40:e2:8b:4d:be:d4:f7:5b:91 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, O=SSL Corporation, CN=SSL.com TLS RSA Root CA 2022 +# Validity +# Not Before: Aug 25 16:34:22 2022 GMT +# Not After : Aug 19 16:34:21 2046 GMT +# Subject: C=US, O=SSL Corporation, CN=SSL.com TLS RSA Root CA 2022 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:d0:a4:09:72:4f:40:88:12:61:3e:35:23:9e:ee: +# f6:74:cf:2f:7b:58:3d:ce:3c:0d:10:28:90:2f:97: +# f7:8c:48:d8:a0:d8:25:b1:4c:b0:11:4c:17:73:50: +# d0:22:4a:63:bb:81:d3:29:6e:d5:b5:09:3e:26:18: +# 7f:b2:12:7f:93:98:b7:af:f0:36:bf:f2:ee:18:9e: +# 9c:3b:52:c5:47:19:5d:74:f3:64:66:d5:5d:c7:68: +# b4:bf:1b:1c:06:a3:bc:8f:40:23:b6:1e:c6:84:bd: +# 51:c4:1b:39:c1:95:d2:29:ec:4b:ae:7b:2d:bf:39: +# fd:b4:62:de:96:7b:41:c6:9c:a0:e0:06:72:fb:f0: +# 07:97:09:39:81:74:af:f7:34:59:11:57:0a:c2:5b: +# c1:24:f4:31:73:30:82:c6:9d:ba:02:f7:3e:7c:44: +# 5f:83:0d:f3:f1:dd:20:69:16:09:50:e2:d4:55:b6: +# e0:80:72:76:6e:4c:47:b7:75:55:59:b4:53:74:d9: +# 94:c6:41:ad:58:8a:31:66:0f:1e:a2:1b:29:40:4e: +# 2f:df:7b:e6:16:2c:2d:fc:bf:ec:f3:b4:fa:be:18: +# f6:9b:49:d4:ee:05:6e:d9:34:f3:9c:f1:ec:01:8b: +# d1:20:c6:0f:a0:b5:bc:17:4e:48:7b:51:c2:fc:e9: +# 5c:69:37:47:66:b3:68:f8:15:28:f0:b9:d3:a4:15: +# cc:5a:4f:ba:52:70:a3:12:45:dd:c6:ba:4e:fb:c2: +# d0:f7:a8:52:27:6d:6e:79:b5:8c:fc:7b:8c:c1:16: +# 4c:ee:80:7f:be:f0:76:be:41:53:12:33:ae:5a:38: +# 42:ab:d7:0f:3e:41:8d:76:07:32:d5:ab:89:f6:4e: +# 67:d9:b1:42:75:23:6e:f3:cd:42:b2:fc:55:f5:53: +# 87:17:3b:c0:33:58:f1:52:d2:f9:80:a4:f0:e8:f0: +# 3b:8b:38:cc:a4:c6:90:7f:0f:9c:fd:8b:d1:a3:cf: +# da:83:a7:69:c9:50:36:d5:5c:05:d2:0a:41:74:db: +# 63:11:37:c1:a5:a0:96:4b:1e:8c:16:12:77:ae:94: +# 34:7b:1e:7f:c2:66:00:e4:aa:83:ea:8a:90:ad:ce: +# 36:44:4d:d1:51:e9:bc:1f:f3:6a:05:fd:c0:74:1f: +# 25:19:40:51:6e:ea:82:51:40:df:9b:b9:08:2a:06: +# 02:d5:23:1c:13:d6:e9:db:db:c6:b0:7a:cb:7b:27: +# 9b:fb:e0:d5:46:24:ed:10:4b:63:4b:a5:05:8f:ba: +# b8:1d:2b:a6:fa:91:e2:92:52:bd:ec:eb:67:97:6d: +# 9a:2d:9f:81:32:05:67:32:fb:48:08:3f:d9:25:b8: +# 04:25:2f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# FB:2E:37:EE:E3:84:7A:27:2E:CD:19:35:B1:33:7C:FF:D4:44:42:B9 +# X509v3 Subject Key Identifier: +# FB:2E:37:EE:E3:84:7A:27:2E:CD:19:35:B1:33:7C:FF:D4:44:42:B9 +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 8d:89:6d:84:45:18:f1:4f:b3:a0:ef:68:a4:c0:1d:ac:30:bc: +# 67:66:b0:9a:cd:b6:ab:22:19:66:d3:3b:41:b5:10:9d:10:ba: +# 72:6e:29:24:20:1c:01:99:62:d3:96:e0:e2:fb:0c:42:d7:e1: +# 5a:c4:96:4d:54:cd:8f:ca:43:53:fd:2a:b8:ea:f8:65:ca:01: +# c2:ad:60:68:06:9f:39:1a:51:d9:e0:8d:26:f9:0b:4e:a5:53: +# 25:7a:23:a4:1c:ce:08:1b:df:47:88:b2:ad:3e:e0:27:87:8b: +# 49:8c:1f:a9:47:58:7b:96:f2:88:1d:18:ae:b3:d1:a6:0a:94: +# fa:db:d3:e5:38:0a:6b:79:12:33:fb:4a:59:37:16:40:0e:bb: +# de:f5:89:0c:f1:6c:d3:f7:51:6b:5e:35:f5:db:c0:26:ea:12: +# 73:4e:a9:91:90:a6:17:c3:6c:2f:38:d4:a3:72:94:43:2c:62: +# e1:4e:5c:32:3d:bd:4c:7d:19:47:a2:c3:49:e7:96:3f:8f:9a: +# d3:3b:e4:11:d8:8b:03:dc:f6:b6:60:55:18:a6:81:51:f3:e1: +# a8:15:6a:eb:e0:0b:f0:14:31:d6:b9:8c:45:3a:a8:10:d8:f0: +# b9:27:eb:f7:cb:7a:ef:05:72:96:b5:c4:8f:96:73:c4:e8:56: +# 73:9c:bc:69:51:63:bc:ef:67:1c:43:1a:5f:77:19:1f:18:f8: +# 1c:25:29:f9:49:99:29:b6:92:3d:a2:83:37:b1:20:91:a8:9b: +# 30:e9:6a:6c:b4:23:93:65:04:ab:11:f3:0e:1d:53:24:49:53: +# 1d:a1:3f:9d:48:92:11:e2:7d:0d:4f:f5:d7:bd:a2:58:3e:78: +# 9d:1e:1f:2b:fe:21:bb:1a:13:b6:b1:28:64:fd:b0:02:00:c7: +# 6c:80:a2:bd:16:50:20:0f:72:81:5f:cc:94:ff:bb:99:e6:ba: +# 90:cb:ea:f9:c6:0c:c2:ae:c5:19:ce:33:a1:6b:5c:bb:7e:7c: +# 34:57:17:ad:f0:3f:ae:cd:ea:af:99:ec:2c:54:7e:8c:ce:2e: +# 12:56:48:ef:17:3b:3f:4a:5e:60:d2:dc:74:36:bc:a5:43:63: +# cb:0f:5b:a3:02:56:09:9e:24:2c:e1:86:81:8c:fe:ab:17:2c: +# fa:c8:e2:32:1a:3a:ff:85:08:c9:83:9f:f2:4a:48:10:54:77: +# 37:ed:a2:bc:40:be:e4:10:74:f7:e4:5b:bb:b9:f3:89:f9:8f: +# 41:d8:c7:e4:50:90:35:80:3e:1c:b8:4d:90:d3:d4:f7:c3:b0: +# a1:7e:84:ca:77:92:31:2c:b8:90:b1:82:7a:74:4e:9b:13:26: +# b4:d5:50:66:54:78:ae:60 + +[p11-kit-object-v1] +label: "Staat der Nederlanden Root CA - G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvjKiVA9w+yxcWetsxKRR +6IUqs8xKNPKwX/MOxxw9Ux6ICGjYbz2twp7MgmcHJ4docTqfdZYiRgWw7a3HW54q +3pz8OsaVp/UXZxjnL0kIDFzP5sw07Xj7ULHcazLwov62POTsWpfHPx5wCDCg3MWz +bW/QgnIRq9KBaFmCF7d4kmD6zN4/hOuNODOQCnIj+jXMJnEx0XIoktlbI21mtW0H +QuumM86S28D2bGN4zcpOPbXlUpvxvjvmVGCwZh4Jqwf+VIkRQtH3JLpgeBqY98kR +/RbBNRpUde9D0+WuTs7ne8PGTmFRS6uaRUuhH0G9SFMVcWQLhrPlLr7OpBvBKYSi +tcsII3ZDIiQfFwTUbpzG/H8rZhrsiuXWz031Ywm3FTnWe6zr43zpTvx1QsjtWJUM +BkKinPfkcLPfcm9aN0CJ2IWk1/EL3kMZ1EpYLIyKOZ6/hIfxFjs2DOnTtMpsGUFS +CaEdsGq/gu9wUSEy3AV2jMv3ZOQDUK+MkWerxfLuWNjevvfnMc9syTtxwdWItWW8 +wOgXFwcStVzSqyCTtOaCg3A2xc2jja2L7KPBQ4fmQ+I0vpWLNe0HOdqoHXqfNp4S +sAxlEpAVYNkmQETjVmClENRqPP1B3A5aR7bvl2F1T9n+x7Id1O1dSbOpastmhBPV +XKDc3253BtFxdchXb68Pd1sCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Staat der Nederlanden Root CA - G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJO +TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFh +dCBkZXIgTmVkZXJsYW5kZW4gUm9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloX +DTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMCTkwxHjAcBgNVBAoMFVN0YWF0IGRl +ciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5lZGVybGFuZGVuIFJv +b3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4yolQP +cPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WW +IkYFsO2tx1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqX +xz8ecAgwoNzFs21v0IJyEavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFy +KJLZWyNtZrVtB0LrpjPOktvA9mxjeM3KTj215VKb8b475lRgsGYeCasH/lSJEULR +9yS6YHgamPfJEf0WwTUaVHXvQ9Plrk7O53vDxk5hUUurmkVLoR9BvUhTFXFkC4az +5S6+zqQbwSmEorXLCCN2QyIkHxcE1G6cxvx/K2Ya7Irl1s9N9WMJtxU51nus6+N8 +6U78dULI7ViVDAZCopz35HCz33JvWjdAidiFpNfxC95DGdRKWCyMijmev4SH8RY7 +Ngzp07TKbBlBUgmhHbBqv4LvcFEhMtwFdozL92TkA1CvjJFnq8Xy7ljY3r735zHP +bMk7ccHViLVlvMDoFxcHErVc0qsgk7TmgoNwNsXNo42ti+yjwUOH5kPiNL6VizXt +BznaqB16nzaeErAMZRKQFWDZJkBE41ZgpRDUajz9QdwOWke275dhdU/Z/seyHdTt +XUmzqWrLZoQT1Vyg3N9udwbRcXXIV2+vD3dbAgMBAAGjQjBAMA8GA1UdEwEB/wQF +MAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRUrfrHkleuyjWcLhL75Lpd +INyUVzANBgkqhkiG9w0BAQsFAAOCAgEAMJmdBTLIXg47mAE6iqTnB/d6+Oea31BD +U5cqPco8R5gu4RV78ZLzYdqQJRZlwJ9UXQ4DO1t3ApyEtg2YXzTdO2PCwyiBwpwp +LiniyMMB8jPqKqrMCQj3ZWfGzd/TtiunvczRDnBfuCPRy5FOCvTIeuXZYzbB1N/8 +Ipf3YF3qKS9Ysr1YvY2WTxB1v0h7PVGHoTx0IsL8B3+A3MSs/mrBcDCw6Y5p4ixp +gZQJut3+TcCDjJRYwEYgr5wfAvg1VUkvRtTA8KCWAg8zxXHzniN9lLf9OtMJgwYh +/WA9rjLA0u6NpvDntIJ8CsxwyXmA+P5M9zWEGYox+wrZ13+b8KKaa8MFSu1BYBQw +0aoRQm7TIwIEC8Zl3d1Sd9qBa7Ko+gE4uZbqKmxnl4mUnrzhVNXkanjvSr0rmj1A +fsbAddJu+2gw7OyLnflJNZoaLNmzlTnVHpL3prllL+U9bTpITAjc5CgSKL59NVzq +4BZ+Extq1z7XnvwtdbLBFNUjA9tbbws+eC8N3jONFrdI54OagQ97wUNNVQQXOEpR +1VmiiXTTn74eS9fGbbeIJG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/ +QFH1T/U67cjF68IeHRaVesd+QnGTbksVtzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM +94B7IWcnMFk= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 10003001 (0x98a239) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=NL, O=Staat der Nederlanden, CN=Staat der Nederlanden Root CA - G3 +# Validity +# Not Before: Nov 14 11:28:42 2013 GMT +# Not After : Nov 13 23:00:00 2028 GMT +# Subject: C=NL, O=Staat der Nederlanden, CN=Staat der Nederlanden Root CA - G3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:be:32:a2:54:0f:70:fb:2c:5c:59:eb:6c:c4:a4: +# 51:e8:85:2a:b3:cc:4a:34:f2:b0:5f:f3:0e:c7:1c: +# 3d:53:1e:88:08:68:d8:6f:3d:ad:c2:9e:cc:82:67: +# 07:27:87:68:71:3a:9f:75:96:22:46:05:b0:ed:ad: +# c7:5b:9e:2a:de:9c:fc:3a:c6:95:a7:f5:17:67:18: +# e7:2f:49:08:0c:5c:cf:e6:cc:34:ed:78:fb:50:b1: +# dc:6b:32:f0:a2:fe:b6:3c:e4:ec:5a:97:c7:3f:1e: +# 70:08:30:a0:dc:c5:b3:6d:6f:d0:82:72:11:ab:d2: +# 81:68:59:82:17:b7:78:92:60:fa:cc:de:3f:84:eb: +# 8d:38:33:90:0a:72:23:fa:35:cc:26:71:31:d1:72: +# 28:92:d9:5b:23:6d:66:b5:6d:07:42:eb:a6:33:ce: +# 92:db:c0:f6:6c:63:78:cd:ca:4e:3d:b5:e5:52:9b: +# f1:be:3b:e6:54:60:b0:66:1e:09:ab:07:fe:54:89: +# 11:42:d1:f7:24:ba:60:78:1a:98:f7:c9:11:fd:16: +# c1:35:1a:54:75:ef:43:d3:e5:ae:4e:ce:e7:7b:c3: +# c6:4e:61:51:4b:ab:9a:45:4b:a1:1f:41:bd:48:53: +# 15:71:64:0b:86:b3:e5:2e:be:ce:a4:1b:c1:29:84: +# a2:b5:cb:08:23:76:43:22:24:1f:17:04:d4:6e:9c: +# c6:fc:7f:2b:66:1a:ec:8a:e5:d6:cf:4d:f5:63:09: +# b7:15:39:d6:7b:ac:eb:e3:7c:e9:4e:fc:75:42:c8: +# ed:58:95:0c:06:42:a2:9c:f7:e4:70:b3:df:72:6f: +# 5a:37:40:89:d8:85:a4:d7:f1:0b:de:43:19:d4:4a: +# 58:2c:8c:8a:39:9e:bf:84:87:f1:16:3b:36:0c:e9: +# d3:b4:ca:6c:19:41:52:09:a1:1d:b0:6a:bf:82:ef: +# 70:51:21:32:dc:05:76:8c:cb:f7:64:e4:03:50:af: +# 8c:91:67:ab:c5:f2:ee:58:d8:de:be:f7:e7:31:cf: +# 6c:c9:3b:71:c1:d5:88:b5:65:bc:c0:e8:17:17:07: +# 12:b5:5c:d2:ab:20:93:b4:e6:82:83:70:36:c5:cd: +# a3:8d:ad:8b:ec:a3:c1:43:87:e6:43:e2:34:be:95: +# 8b:35:ed:07:39:da:a8:1d:7a:9f:36:9e:12:b0:0c: +# 65:12:90:15:60:d9:26:40:44:e3:56:60:a5:10:d4: +# 6a:3c:fd:41:dc:0e:5a:47:b6:ef:97:61:75:4f:d9: +# fe:c7:b2:1d:d4:ed:5d:49:b3:a9:6a:cb:66:84:13: +# d5:5c:a0:dc:df:6e:77:06:d1:71:75:c8:57:6f:af: +# 0f:77:5b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 54:AD:FA:C7:92:57:AE:CA:35:9C:2E:12:FB:E4:BA:5D:20:DC:94:57 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 30:99:9d:05:32:c8:5e:0e:3b:98:01:3a:8a:a4:e7:07:f7:7a: +# f8:e7:9a:df:50:43:53:97:2a:3d:ca:3c:47:98:2e:e1:15:7b: +# f1:92:f3:61:da:90:25:16:65:c0:9f:54:5d:0e:03:3b:5b:77: +# 02:9c:84:b6:0d:98:5f:34:dd:3b:63:c2:c3:28:81:c2:9c:29: +# 2e:29:e2:c8:c3:01:f2:33:ea:2a:aa:cc:09:08:f7:65:67:c6: +# cd:df:d3:b6:2b:a7:bd:cc:d1:0e:70:5f:b8:23:d1:cb:91:4e: +# 0a:f4:c8:7a:e5:d9:63:36:c1:d4:df:fc:22:97:f7:60:5d:ea: +# 29:2f:58:b2:bd:58:bd:8d:96:4f:10:75:bf:48:7b:3d:51:87: +# a1:3c:74:22:c2:fc:07:7f:80:dc:c4:ac:fe:6a:c1:70:30:b0: +# e9:8e:69:e2:2c:69:81:94:09:ba:dd:fe:4d:c0:83:8c:94:58: +# c0:46:20:af:9c:1f:02:f8:35:55:49:2f:46:d4:c0:f0:a0:96: +# 02:0f:33:c5:71:f3:9e:23:7d:94:b7:fd:3a:d3:09:83:06:21: +# fd:60:3d:ae:32:c0:d2:ee:8d:a6:f0:e7:b4:82:7c:0a:cc:70: +# c9:79:80:f8:fe:4c:f7:35:84:19:8a:31:fb:0a:d9:d7:7f:9b: +# f0:a2:9a:6b:c3:05:4a:ed:41:60:14:30:d1:aa:11:42:6e:d3: +# 23:02:04:0b:c6:65:dd:dd:52:77:da:81:6b:b2:a8:fa:01:38: +# b9:96:ea:2a:6c:67:97:89:94:9e:bc:e1:54:d5:e4:6a:78:ef: +# 4a:bd:2b:9a:3d:40:7e:c6:c0:75:d2:6e:fb:68:30:ec:ec:8b: +# 9d:f9:49:35:9a:1a:2c:d9:b3:95:39:d5:1e:92:f7:a6:b9:65: +# 2f:e5:3d:6d:3a:48:4c:08:dc:e4:28:12:28:be:7d:35:5c:ea: +# e0:16:7e:13:1b:6a:d7:3e:d7:9e:fc:2d:75:b2:c1:14:d5:23: +# 03:db:5b:6f:0b:3e:78:2f:0d:de:33:8d:16:b7:48:e7:83:9a: +# 81:0f:7b:c1:43:4d:55:04:17:38:4a:51:d5:59:a2:89:74:d3: +# 9f:be:1e:4b:d7:c6:6d:b7:88:24:6f:60:91:a4:82:85:5b:56: +# 41:bc:d0:44:ab:6a:13:be:d1:2c:58:b7:12:33:58:b2:37:63: +# dc:13:f5:94:1d:3f:40:51:f5:4f:f5:3a:ed:c8:c5:eb:c2:1e: +# 1d:16:95:7a:c7:7e:42:71:93:6e:4b:15:b7:30:df:aa:ed:57: +# 85:48:ac:1d:6a:dd:39:69:e4:e1:79:78:be:ce:05:bf:a1:0c: +# f7:80:7b:21:67:27:30:59 + +[p11-kit-object-v1] +label: "Starfield Class 2 CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEAtzLI/ulxpgSFrQwRZN/O +Te/IAxiHP6Gr+zymn/DDodrU2G4rU5D7JKQ+hPCe6F/s5SdE9SimP3ve4CrwyK9T +L57KBQGTHo9mHDmnTfpatnMEJWbrd3/nWcZKmSUUVOsmx/N/GdUwcI+vsEYq/63r +Ke3Xn6oEh6PU+YmlNF/bQ5GCNtlmPLG4uYL9nDo+EMg77wZlZnqbGRg9/3FRPDAu +X749d3OyXQZswyNWmiuFJpIcpwKz5D8Nrwh5grg2Peqc0zWzvGnK9cyd6P1kjReA +M25eSl2ZyR6HtJ0awNVuEzUjXt+bXz3v1vd2wuo+u3gNHEJnawTY+Nbab4vyRKAB +qwIBAw== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Starfield Class 2 CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzEl +MCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMp +U3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQw +NjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBoMQswCQYDVQQGEwJVUzElMCMGA1UE +ChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZp +ZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqGSIb3 +DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf +8MOh2tTYbitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN ++lq2cwQlZut3f+dZxkqZJRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0 +X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVmepsZGD3/cVE8MC5fvj13c7JdBmzDI1aa +K4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSNF4Azbl5KXZnJHoe0nRrA +1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HFMIHCMB0G +A1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR +zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0 +YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD +bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w +DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3 +L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D +eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl +xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp +VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY +WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority +# Validity +# Not Before: Jun 29 17:39:16 2004 GMT +# Not After : Jun 29 17:39:16 2034 GMT +# Subject: C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b7:32:c8:fe:e9:71:a6:04:85:ad:0c:11:64:df: +# ce:4d:ef:c8:03:18:87:3f:a1:ab:fb:3c:a6:9f:f0: +# c3:a1:da:d4:d8:6e:2b:53:90:fb:24:a4:3e:84:f0: +# 9e:e8:5f:ec:e5:27:44:f5:28:a6:3f:7b:de:e0:2a: +# f0:c8:af:53:2f:9e:ca:05:01:93:1e:8f:66:1c:39: +# a7:4d:fa:5a:b6:73:04:25:66:eb:77:7f:e7:59:c6: +# 4a:99:25:14:54:eb:26:c7:f3:7f:19:d5:30:70:8f: +# af:b0:46:2a:ff:ad:eb:29:ed:d7:9f:aa:04:87:a3: +# d4:f9:89:a5:34:5f:db:43:91:82:36:d9:66:3c:b1: +# b8:b9:82:fd:9c:3a:3e:10:c8:3b:ef:06:65:66:7a: +# 9b:19:18:3d:ff:71:51:3c:30:2e:5f:be:3d:77:73: +# b2:5d:06:6c:c3:23:56:9a:2b:85:26:92:1c:a7:02: +# b3:e4:3f:0d:af:08:79:82:b8:36:3d:ea:9c:d3:35: +# b3:bc:69:ca:f5:cc:9d:e8:fd:64:8d:17:80:33:6e: +# 5e:4a:5d:99:c9:1e:87:b4:9d:1a:c0:d5:6e:13:35: +# 23:5e:df:9b:5f:3d:ef:d6:f7:76:c2:ea:3e:bb:78: +# 0d:1c:42:67:6b:04:d8:f8:d6:da:6f:8b:f2:44:a0: +# 01:ab +# Exponent: 3 (0x3) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# BF:5F:B7:D1:CE:DD:1F:86:F4:5B:55:AC:DC:D7:10:C2:0E:A9:88:E7 +# X509v3 Authority Key Identifier: +# keyid:BF:5F:B7:D1:CE:DD:1F:86:F4:5B:55:AC:DC:D7:10:C2:0E:A9:88:E7 +# DirName:/C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority +# serial:00 +# X509v3 Basic Constraints: +# CA:TRUE +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 05:9d:3f:88:9d:d1:c9:1a:55:a1:ac:69:f3:f3:59:da:9b:01: +# 87:1a:4f:57:a9:a1:79:09:2a:db:f7:2f:b2:1e:cc:c7:5e:6a: +# d8:83:87:a1:97:ef:49:35:3e:77:06:41:58:62:bf:8e:58:b8: +# 0a:67:3f:ec:b3:dd:21:66:1f:c9:54:fa:72:cc:3d:4c:40:d8: +# 81:af:77:9e:83:7a:bb:a2:c7:f5:34:17:8e:d9:11:40:f4:fc: +# 2c:2a:4d:15:7f:a7:62:5d:2e:25:d3:00:0b:20:1a:1d:68:f9: +# 17:b8:f4:bd:8b:ed:28:59:dd:4d:16:8b:17:83:c8:b2:65:c7: +# 2d:7a:a5:aa:bc:53:86:6d:dd:57:a4:ca:f8:20:41:0b:68:f0: +# f4:fb:74:be:56:5d:7a:79:f5:f9:1d:85:e3:2d:95:be:f5:71: +# 90:43:cc:8d:1f:9a:00:0a:87:29:e9:55:22:58:00:23:ea:e3: +# 12:43:29:5b:47:08:dd:8c:41:6a:65:06:a8:e5:21:aa:41:b4: +# 95:21:95:b9:7d:d1:34:ab:13:d6:ad:bc:dc:e2:3d:39:cd:bd: +# 3e:75:70:a1:18:59:03:c9:22:b4:8f:9c:d5:5e:2a:d7:a5:b6: +# d4:0a:6d:f8:b7:40:11:46:9a:1f:79:0e:62:bf:0f:97:ec:e0: +# 2f:1f:17:94 + +[p11-kit-object-v1] +label: "Starfield Root Certificate Authority - G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAve3BA/z2j/wCsW9bn0jZ +nXniorcDYVYYw0e218o9NS6JQ/ehaZveihr9EyCctEl3MilW/bnsjN0i+nLcJ2GX +7vZahOxuGbmJLNyEW9V0+2tfxYmlEFKJRlX0uHUc5n/kVK5L+FVyVwIZ+BdxWese +KAd0xZ1Ivmy09KSw82Q3eZLA7EZef+FtU0xir80fC2O7Op37/HkAmGF0zyaCQGPz +snJqGQ2ZytQOdcw3+4uJwVnxYn9fs19lMPint012Wh52XjTA6JZWmYqz8H+kzb3c +MjF8kc/gXxH4a6pJXNGZlNGi42NbCXa1VmLhS3QdltQm1AgEWdCYDg7m3vzD7B+Q +8QIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Starfield Root Certificate Authority - G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMx +EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT +HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVs +ZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAw +MFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6 +b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQgVGVj +aG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZp +Y2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC +ggEBAL3twQP89o/8ArFvW59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMg +nLRJdzIpVv257IzdIvpy3Cdhl+72WoTsbhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1 +HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNkN3mSwOxGXn/hbVNMYq/N +Hwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7NfZTD4p7dN +dloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0 +HZbUJtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAO +BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0G +CSqGSIb3DQEBCwUAA4IBAQARWfolTwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjU +sHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx4mcujJUDJi5DnUox9g61DLu3 +4jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUwF5okxBDgBPfg +8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K +pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1 +mMpYjn0q7pBZc2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Root Certificate Authority - G2 +# Validity +# Not Before: Sep 1 00:00:00 2009 GMT +# Not After : Dec 31 23:59:59 2037 GMT +# Subject: C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Root Certificate Authority - G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:bd:ed:c1:03:fc:f6:8f:fc:02:b1:6f:5b:9f:48: +# d9:9d:79:e2:a2:b7:03:61:56:18:c3:47:b6:d7:ca: +# 3d:35:2e:89:43:f7:a1:69:9b:de:8a:1a:fd:13:20: +# 9c:b4:49:77:32:29:56:fd:b9:ec:8c:dd:22:fa:72: +# dc:27:61:97:ee:f6:5a:84:ec:6e:19:b9:89:2c:dc: +# 84:5b:d5:74:fb:6b:5f:c5:89:a5:10:52:89:46:55: +# f4:b8:75:1c:e6:7f:e4:54:ae:4b:f8:55:72:57:02: +# 19:f8:17:71:59:eb:1e:28:07:74:c5:9d:48:be:6c: +# b4:f4:a4:b0:f3:64:37:79:92:c0:ec:46:5e:7f:e1: +# 6d:53:4c:62:af:cd:1f:0b:63:bb:3a:9d:fb:fc:79: +# 00:98:61:74:cf:26:82:40:63:f3:b2:72:6a:19:0d: +# 99:ca:d4:0e:75:cc:37:fb:8b:89:c1:59:f1:62:7f: +# 5f:b3:5f:65:30:f8:a7:b7:4d:76:5a:1e:76:5e:34: +# c0:e8:96:56:99:8a:b3:f0:7f:a4:cd:bd:dc:32:31: +# 7c:91:cf:e0:5f:11:f8:6b:aa:49:5c:d1:99:94:d1: +# a2:e3:63:5b:09:76:b5:56:62:e1:4b:74:1d:96:d4: +# 26:d4:08:04:59:d0:98:0e:0e:e6:de:fc:c3:ec:1f: +# 90:f1 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 7C:0C:32:1F:A7:D9:30:7F:C4:7D:68:A3:62:A8:A1:CE:AB:07:5B:27 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 11:59:fa:25:4f:03:6f:94:99:3b:9a:1f:82:85:39:d4:76:05: +# 94:5e:e1:28:93:6d:62:5d:09:c2:a0:a8:d4:b0:75:38:f1:34: +# 6a:9d:e4:9f:8a:86:26:51:e6:2c:d1:c6:2d:6e:95:20:4a:92: +# 01:ec:b8:8a:67:7b:31:e2:67:2e:8c:95:03:26:2e:43:9d:4a: +# 31:f6:0e:b5:0c:bb:b7:e2:37:7f:22:ba:00:a3:0e:7b:52:fb: +# 6b:bb:3b:c4:d3:79:51:4e:cd:90:f4:67:07:19:c8:3c:46:7a: +# 0d:01:7d:c5:58:e7:6d:e6:85:30:17:9a:24:c4:10:e0:04:f7: +# e0:f2:7f:d4:aa:0a:ff:42:1d:37:ed:94:e5:64:59:12:20:77: +# 38:d3:32:3e:38:81:75:96:73:fa:68:8f:b1:cb:ce:1f:c5:ec: +# fa:9c:7e:cf:7e:b1:f1:07:2d:b6:fc:bf:ca:a4:bf:d0:97:05: +# 4a:bc:ea:18:28:02:90:bd:54:78:09:21:71:d3:d1:7d:1d:d9: +# 16:b0:a9:61:3d:d0:0a:00:22:fc:c7:7b:cb:09:64:45:0b:3b: +# 40:81:f7:7d:7c:32:f5:98:ca:58:8e:7d:2a:ee:90:59:73:64: +# f9:36:74:5e:25:a1:f5:66:05:2e:7f:39:15:a9:2a:fb:50:8b: +# 8e:85:69:f4 + +[p11-kit-object-v1] +label: "Starfield Services Root Certificate Authority - G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1Qw6xCr5TuL1vhmXX46I +U7EfP8vPnyATbSk6yA99PPdrdjhj2TZgqJteXACAsi9Zf/aH+SVDhudpG1KakOFx +49gtDU5v9shJ2bbzGlauK7Z0FOvP+ybjGrodli5qO1iUiUdW/yWgk3BTg9qEdBTD +Z54EaDrfjkBaHUpOz0ORO+dW1gBwy1Lue32uOue8MflF9sJgzxNZAiuAzDRH37ne +kGVtAs8skaam596FGEl8Zk6jOm2pte40LroNA7gz30frsWuNJdmbzoHRRUYylnCH +3gIOSUOFtmxzu2TqYUGsydRU34cvxyKyJsyfWVRon/y+Ki/EVRx1QGAXhQJVOYt/ +BQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Starfield Services Root Certificate Authority - G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMx +EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT +HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVs +ZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5 +MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNVBAYTAlVTMRAwDgYD +VQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFy +ZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2Vy +dmljZXMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20p +OsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm2 +8xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4PahHQUw2eeBGg6345AWh1K +Ts9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLPLJGmpufe +hRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk +6mFBrMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAw +DwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+q +AdcwKziIorhtSpzyEZGDMA0GCSqGSIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMI +bw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPPE95Dz+I0swSdHynVv/heyNXB +ve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTyxQGjhdByPq1z +qwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd +iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn +0q23KXB56jzaYyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCN +sSi6 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 0 (0x0) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2 +# Validity +# Not Before: Sep 1 00:00:00 2009 GMT +# Not After : Dec 31 23:59:59 2037 GMT +# Subject: C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:d5:0c:3a:c4:2a:f9:4e:e2:f5:be:19:97:5f:8e: +# 88:53:b1:1f:3f:cb:cf:9f:20:13:6d:29:3a:c8:0f: +# 7d:3c:f7:6b:76:38:63:d9:36:60:a8:9b:5e:5c:00: +# 80:b2:2f:59:7f:f6:87:f9:25:43:86:e7:69:1b:52: +# 9a:90:e1:71:e3:d8:2d:0d:4e:6f:f6:c8:49:d9:b6: +# f3:1a:56:ae:2b:b6:74:14:eb:cf:fb:26:e3:1a:ba: +# 1d:96:2e:6a:3b:58:94:89:47:56:ff:25:a0:93:70: +# 53:83:da:84:74:14:c3:67:9e:04:68:3a:df:8e:40: +# 5a:1d:4a:4e:cf:43:91:3b:e7:56:d6:00:70:cb:52: +# ee:7b:7d:ae:3a:e7:bc:31:f9:45:f6:c2:60:cf:13: +# 59:02:2b:80:cc:34:47:df:b9:de:90:65:6d:02:cf: +# 2c:91:a6:a6:e7:de:85:18:49:7c:66:4e:a3:3a:6d: +# a9:b5:ee:34:2e:ba:0d:03:b8:33:df:47:eb:b1:6b: +# 8d:25:d9:9b:ce:81:d1:45:46:32:96:70:87:de:02: +# 0e:49:43:85:b6:6c:73:bb:64:ea:61:41:ac:c9:d4: +# 54:df:87:2f:c7:22:b2:26:cc:9f:59:54:68:9f:fc: +# be:2a:2f:c4:55:1c:75:40:60:17:85:02:55:39:8b: +# 7f:05 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 9C:5F:00:DF:AA:01:D7:30:2B:38:88:A2:B8:6D:4A:9C:F2:11:91:83 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 4b:36:a6:84:77:69:dd:3b:19:9f:67:23:08:6f:0e:61:c9:fd: +# 84:dc:5f:d8:36:81:cd:d8:1b:41:2d:9f:60:dd:c7:1a:68:d9: +# d1:6e:86:e1:88:23:cf:13:de:43:cf:e2:34:b3:04:9d:1f:29: +# d5:bf:f8:5e:c8:d5:c1:bd:ee:92:6f:32:74:f2:91:82:2f:bd: +# 82:42:7a:ad:2a:b7:20:7d:4d:bc:7a:55:12:c2:15:ea:bd:f7: +# 6a:95:2e:6c:74:9f:cf:1c:b4:f2:c5:01:a3:85:d0:72:3e:ad: +# 73:ab:0b:9b:75:0c:6d:45:b7:8e:94:ac:96:37:b5:a0:d0:8f: +# 15:47:0e:e3:e8:83:dd:8f:fd:ef:41:01:77:cc:27:a9:62:85: +# 33:f2:37:08:ef:71:cf:77:06:de:c8:19:1d:88:40:cf:7d:46: +# 1d:ff:1e:c7:e1:ce:ff:23:db:c6:fa:8d:55:4e:a9:02:e7:47: +# 11:46:3e:f4:fd:bd:7b:29:26:bb:a9:61:62:37:28:b6:2d:2a: +# f6:10:86:64:c9:70:a7:d2:ad:b7:29:70:79:ea:3c:da:63:25: +# 9f:fd:68:b7:30:ec:70:fb:75:8a:b7:6d:60:67:b2:1e:c8:b9: +# e9:d8:a8:6f:02:8b:67:0d:4d:26:57:71:da:20:fc:c1:4a:50: +# 8d:b1:28:ba + +[p11-kit-object-v1] +label: "SwissSign Gold CA - G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7 +kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUqt2/876LQwB8CJEoTlo8jE+YoWACjR8cG +p4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5CjCA12UNNhPqE21Is8w4n +dwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpgvd21mWRT +uKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbLtK/t +REDFylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpKxVKJ+STn +nXepgv9VHKVxaSvRAiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdVxVu1yzSJkvGd +Jo+hB9TGsnhQ2wwMC3wLjEHXuendjIj3o02yMszYF9rNt85mndT9Xv+9lz4pded+ +p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkOpeUDDniOJihC8AcLYiAQZzlG ++qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59je883WX0XaxR7ySArqpWl2/5 +rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxMgI93e2CaHt+28kgeDrpOVG2Y4OGi +GqJ3UM/EY5LsRxmd6+ZrzsECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SwissSign Gold CA - G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV +BAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2ln +biBHb2xkIENBIC0gRzIwHhcNMDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBF +MQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFHMR8wHQYDVQQDExZT +d2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC +CgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUqt2/8 +76LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+ +bbqBHH5CjCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c +6bM8K8vzARO/Ws/BtQpgvd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqE +emA8atufK+ze3gE/bk3lUIbLtK/tREDFylqM2tIrfKjuvqblCqoOpd8FUrdVxyJd +MmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvRAiTysybUa9oEVeXBCsdt +MDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuendjIj3o02y +MszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69y +FGkOpeUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPi +aG59je883WX0XaxR7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxM +gI93e2CaHt+28kgeDrpOVG2Y4OGiGqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOBrDCB +qTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUWyV7 +lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64OfPAeGZe6Drn +8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov +L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe6 +45R88a7A3hfm5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczO +UYrHUDFu4Up+GC9pWbY9ZIEr44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5 +O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOfMke6UiI0HTJ6CVanfCU2qT1L2sCC +bwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6mGu6uLftIdxf+u+yv +GPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxpmo/a +77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCC +hdiDyyJkvC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid3 +92qgQmwLOM7XdVAyksLfKzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEpp +Ld6leNcG2mqeSz53OiATIgHQv2ieY2BrNU0LbbqhPcCT4H8js1WtciVORvnSFu+w +ZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6LqjviOvrv1vA+ACOzB2+htt +Qc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# bb:40:1c:43:f5:5e:4f:b0 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=CH, O=SwissSign AG, CN=SwissSign Gold CA - G2 +# Validity +# Not Before: Oct 25 08:30:35 2006 GMT +# Not After : Oct 25 08:30:35 2036 GMT +# Subject: C=CH, O=SwissSign AG, CN=SwissSign Gold CA - G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:af:e4:ee:7e:8b:24:0e:12:6e:a9:50:2d:16:44: +# 3b:92:92:5c:ca:b8:5d:84:92:42:13:2a:bc:65:57: +# 82:40:3e:57:24:cd:50:8b:25:2a:b7:6f:fc:ef:a2: +# d0:c0:1f:02:24:4a:13:96:8f:23:13:e6:28:58:00: +# a3:47:c7:06:a7:84:23:2b:bb:bd:96:2b:7f:55:cc: +# 8b:c1:57:1f:0e:62:65:0f:dd:3d:56:8a:73:da:ae: +# 7e:6d:ba:81:1c:7e:42:8c:20:35:d9:43:4d:84:fa: +# 84:db:52:2c:f3:0e:27:77:0b:6b:bf:11:2f:72:78: +# 9f:2e:d8:3e:e6:18:37:5a:2a:72:f9:da:62:90:92: +# 95:ca:1f:9c:e9:b3:3c:2b:cb:f3:01:13:bf:5a:cf: +# c1:b5:0a:60:bd:dd:b5:99:64:53:b8:a0:96:b3:6f: +# e2:26:77:91:8c:e0:62:10:02:9f:34:0f:a4:d5:92: +# 33:51:de:be:8d:ba:84:7a:60:3c:6a:db:9f:2b:ec: +# de:de:01:3f:6e:4d:e5:50:86:cb:b4:af:ed:44:40: +# c5:ca:5a:8c:da:d2:2b:7c:a8:ee:be:a6:e5:0a:aa: +# 0e:a5:df:05:52:b7:55:c7:22:5d:32:6a:97:97:63: +# 13:db:c9:db:79:36:7b:85:3a:4a:c5:52:89:f9:24: +# e7:9d:77:a9:82:ff:55:1c:a5:71:69:2b:d1:02:24: +# f2:b3:26:d4:6b:da:04:55:e5:c1:0a:c7:6d:30:37: +# 90:2a:e4:9e:14:33:5e:16:17:55:c5:5b:b5:cb:34: +# 89:92:f1:9d:26:8f:a1:07:d4:c6:b2:78:50:db:0c: +# 0c:0b:7c:0b:8c:41:d7:b9:e9:dd:8c:88:f7:a3:4d: +# b2:32:cc:d8:17:da:cd:b7:ce:66:9d:d4:fd:5e:ff: +# bd:97:3e:29:75:e7:7e:a7:62:58:af:25:34:a5:41: +# c7:3d:bc:0d:50:ca:03:03:0f:08:5a:1f:95:73:78: +# 62:bf:af:72:14:69:0e:a5:e5:03:0e:78:8e:26:28: +# 42:f0:07:0b:62:20:10:67:39:46:fa:a9:03:cc:04: +# 38:7a:66:ef:20:83:b5:8c:4a:56:8e:91:00:fc:8e: +# 5c:82:de:88:a0:c3:e2:68:6e:7d:8d:ef:3c:dd:65: +# f4:5d:ac:51:ef:24:80:ae:aa:56:97:6f:f9:ad:7d: +# da:61:3f:98:77:3c:a5:91:b6:1c:8c:26:da:65:a2: +# 09:6d:c1:e2:54:e3:b9:ca:4c:4c:80:8f:77:7b:60: +# 9a:1e:df:b6:f2:48:1e:0e:ba:4e:54:6d:98:e0:e1: +# a2:1a:a2:77:50:cf:c4:63:92:ec:47:19:9d:eb:e6: +# 6b:ce:c1 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 5B:25:7B:96:A4:65:51:7E:B8:39:F3:C0:78:66:5E:E8:3A:E7:F0:EE +# X509v3 Authority Key Identifier: +# 5B:25:7B:96:A4:65:51:7E:B8:39:F3:C0:78:66:5E:E8:3A:E7:F0:EE +# X509v3 Certificate Policies: +# Policy: 2.16.756.1.89.1.2.1.1 +# CPS: http://repository.swisssign.com/ +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 27:ba:e3:94:7c:f1:ae:c0:de:17:e6:e5:d8:d5:f5:54:b0:83: +# f4:bb:cd:5e:05:7b:4f:9f:75:66:af:3c:e8:56:7e:fc:72:78: +# 38:03:d9:2b:62:1b:00:b9:f8:e9:60:cd:cc:ce:51:8a:c7:50: +# 31:6e:e1:4a:7e:18:2f:69:59:b6:3d:64:81:2b:e3:83:84:e6: +# 22:87:8e:7d:e0:ee:02:99:61:b8:1e:f4:b8:2b:88:12:16:84: +# c2:31:93:38:96:31:a6:b9:3b:53:3f:c3:24:93:56:5b:69:92: +# ec:c5:c1:bb:38:00:e3:ec:17:a9:b8:dc:c7:7c:01:83:9f:32: +# 47:ba:52:22:34:1d:32:7a:09:56:a7:7c:25:36:a9:3d:4b:da: +# c0:82:6f:0a:bb:12:c8:87:4b:27:11:f9:1e:2d:c7:93:3f:9e: +# db:5f:26:6b:52:d9:2e:8a:f1:14:c6:44:8d:15:a9:b7:bf:bd: +# de:a6:1a:ee:ae:2d:fb:48:77:17:fe:bb:ec:af:18:f5:2a:51: +# f0:39:84:97:95:6c:6e:1b:c3:2b:c4:74:60:79:25:b0:0a:27: +# df:df:5e:d2:39:cf:45:7d:42:4b:df:b3:2c:1e:c5:c6:5d:ca: +# 55:3a:a0:9c:69:9a:8f:da:ef:b2:b0:3c:9f:87:6c:12:2b:65: +# 70:15:52:31:1a:24:cf:6f:31:23:50:1f:8c:4f:8f:23:c3:74: +# 41:63:1c:55:a8:14:dd:3e:e0:51:50:cf:f1:1b:30:56:0e:92: +# b0:82:85:d8:83:cb:22:64:bc:2d:b8:25:d5:54:a2:b8:06:ea: +# ad:92:a4:24:a0:c1:86:b5:4a:13:6a:47:cf:2e:0b:56:95:54: +# cb:ce:9a:db:6a:b4:a6:b2:db:41:08:86:27:77:f7:6a:a0:42: +# 6c:0b:38:ce:d7:75:50:32:92:c2:df:2b:30:22:48:d0:d5:41: +# 38:25:5d:a4:e9:5d:9f:c6:94:75:d0:45:fd:30:97:43:8f:90: +# ab:0a:c7:86:73:60:4a:69:2d:de:a5:78:d7:06:da:6a:9e:4b: +# 3e:77:3a:20:13:22:01:d0:bf:68:9e:63:60:6b:35:4d:0b:6d: +# ba:a1:3d:c0:93:e0:7f:23:b3:55:ad:72:25:4e:46:f9:d2:16: +# ef:b0:64:c1:01:9e:e9:ca:a0:6a:98:0e:cf:d8:60:f2:2f:49: +# b8:e4:42:e1:38:35:16:f4:c8:6e:4f:f7:81:56:e8:ba:a3:be: +# 23:af:ae:fd:6f:03:e0:02:3b:30:76:fa:1b:6d:41:cf:01:b1: +# e9:b8:c9:66:f4:db:26:f3:3a:a4:74:f2:49:24:5b:c9:b0:d0: +# 57:c1:fa:3e:7a:e1:97:c9 + +[p11-kit-object-v1] +label: "SZAFIR ROOT CA2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt7w+UKhLzUC1zmHnlsq0 +odoMIrD6tXt2AHeMC899qIbMJlHkID2FDNZY4+f0Khid2tGuJu7rU9z0kNYTSgyQ +PMP02tKODZI63LGx/zjew7otX4C5Ar1KnRsPtMPCwWcD3dwbnD2zsN4AHqg0R7ua +6/4LFL02hNoNIL/6W8upFiCtOWDuL3W255ec+T79fk1vTS/viA1q+t3xPW4gpaAS +tE1wuc7XcjuJk6eAhBwnSXJJtf87lZ7BzMgB7OgOigqW57Omh+XW+QUrDZdAcDy6 +rHVanNVNnQIK0kubZktGBxdlrZ9siADcIong4WTUZ7wxeWE8u8pBzVxqAMg8OI5Y +rwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "SZAFIR ROOT CA2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDcjCCAlqgAwIBAgIUPopdB+xV0jLVt+O2XwHrLdzk1uQwDQYJKoZIhvcNAQEL +BQAwUTELMAkGA1UEBhMCUEwxKDAmBgNVBAoMH0tyYWpvd2EgSXpiYSBSb3psaWN6 +ZW5pb3dhIFMuQS4xGDAWBgNVBAMMD1NaQUZJUiBST09UIENBMjAeFw0xNTEwMTkw +NzQzMzBaFw0zNTEwMTkwNzQzMzBaMFExCzAJBgNVBAYTAlBMMSgwJgYDVQQKDB9L +cmFqb3dhIEl6YmEgUm96bGljemVuaW93YSBTLkEuMRgwFgYDVQQDDA9TWkFGSVIg +Uk9PVCBDQTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3vD5QqEvN +QLXOYeeWyrSh2gwisPq1e3YAd4wLz32ohswmUeQgPYUM1ljj5/QqGJ3a0a4m7utT +3PSQ1hNKDJA8w/Ta0o4NkjrcsbH/ON7Dui1fgLkCvUqdGw+0w8LBZwPd3BucPbOw +3gAeqDRHu5rr/gsUvTaE2g0gv/pby6kWIK05YO4vdbbnl5z5Pv1+TW9NL++IDWr6 +3fE9biCloBK0TXC5ztdyO4mTp4CEHCdJckm1/zuVnsHMyAHs6A6KCpbns6aH5db5 +BSsNl0BwPLqsdVqc1U2dAgrSS5tmS0YHF2Wtn2yIANwiieDhZNRnvDF5YTy7ykHN +XGoAyDw4jlivAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD +AgEGMB0GA1UdDgQWBBQuFqlKGLXLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsF +AAOCAQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw +8PRBEew/R40/cof5O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOG +nXkZ7/e7DDWQw4rtTw/1zBLZpD67oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCP +oky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul4+vJhaAlIDf7js4MNIThPIGy +d05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6+/NNIxuZMzSg +LvWpCz/UXeHPhJ/iGcJfitYgHuNztw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 3e:8a:5d:07:ec:55:d2:32:d5:b7:e3:b6:5f:01:eb:2d:dc:e4:d6:e4 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=PL, O=Krajowa Izba Rozliczeniowa S.A., CN=SZAFIR ROOT CA2 +# Validity +# Not Before: Oct 19 07:43:30 2015 GMT +# Not After : Oct 19 07:43:30 2035 GMT +# Subject: C=PL, O=Krajowa Izba Rozliczeniowa S.A., CN=SZAFIR ROOT CA2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b7:bc:3e:50:a8:4b:cd:40:b5:ce:61:e7:96:ca: +# b4:a1:da:0c:22:b0:fa:b5:7b:76:00:77:8c:0b:cf: +# 7d:a8:86:cc:26:51:e4:20:3d:85:0c:d6:58:e3:e7: +# f4:2a:18:9d:da:d1:ae:26:ee:eb:53:dc:f4:90:d6: +# 13:4a:0c:90:3c:c3:f4:da:d2:8e:0d:92:3a:dc:b1: +# b1:ff:38:de:c3:ba:2d:5f:80:b9:02:bd:4a:9d:1b: +# 0f:b4:c3:c2:c1:67:03:dd:dc:1b:9c:3d:b3:b0:de: +# 00:1e:a8:34:47:bb:9a:eb:fe:0b:14:bd:36:84:da: +# 0d:20:bf:fa:5b:cb:a9:16:20:ad:39:60:ee:2f:75: +# b6:e7:97:9c:f9:3e:fd:7e:4d:6f:4d:2f:ef:88:0d: +# 6a:fa:dd:f1:3d:6e:20:a5:a0:12:b4:4d:70:b9:ce: +# d7:72:3b:89:93:a7:80:84:1c:27:49:72:49:b5:ff: +# 3b:95:9e:c1:cc:c8:01:ec:e8:0e:8a:0a:96:e7:b3: +# a6:87:e5:d6:f9:05:2b:0d:97:40:70:3c:ba:ac:75: +# 5a:9c:d5:4d:9d:02:0a:d2:4b:9b:66:4b:46:07:17: +# 65:ad:9f:6c:88:00:dc:22:89:e0:e1:64:d4:67:bc: +# 31:79:61:3c:bb:ca:41:cd:5c:6a:00:c8:3c:38:8e: +# 58:af +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 2E:16:A9:4A:18:B5:CB:CC:F5:6F:50:F3:23:5F:F8:5D:E7:AC:F0:C8 +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# b5:73:f8:03:dc:59:5b:1d:76:e9:a3:2a:7b:90:28:b2:4d:c0: +# 33:4f:aa:9a:b1:d4:b8:e4:27:ff:a9:96:99:ce:46:e0:6d:7c: +# 4c:a2:38:a4:06:70:f0:f4:41:11:ec:3f:47:8d:3f:72:87:f9: +# 3b:fd:a4:6f:2b:53:00:e0:ff:39:b9:6a:07:0e:eb:1d:1c:f6: +# a2:72:90:cb:82:3d:11:82:8b:d2:bb:9f:2a:af:21:e6:63:86: +# 9d:79:19:ef:f7:bb:0c:35:90:c3:8a:ed:4f:0f:f5:cc:12:d9: +# a4:3e:bb:a0:fc:20:95:5f:4f:26:2f:11:23:83:4e:75:07:0f: +# bf:9b:d1:b4:1d:e9:10:04:fe:ca:60:8f:a2:4c:b8:ad:cf:e1: +# 90:0f:cd:ae:0a:c7:5d:7b:b7:50:d2:d4:61:fa:d5:15:db:d7: +# 9f:87:51:54:eb:a5:e3:eb:c9:85:a0:25:20:37:fb:8e:ce:0c: +# 34:84:e1:3c:81:b2:77:4e:43:a5:88:5f:86:67:a1:3d:e6:b4: +# 5c:61:b6:3e:db:fe:b7:28:c5:a2:07:ae:b5:ca:ca:8d:2a:12: +# ef:97:ed:c2:30:a4:c9:2a:7a:fb:f3:4d:23:1b:99:33:34:a0: +# 2e:f5:a9:0b:3f:d4:5d:e1:cf:84:9f:e2:19:c2:5f:8a:d6:20: +# 1e:e3:73:b7 + +[p11-kit-object-v1] +label: "Telekom Security SMIME ECC Root 2021" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEsBmPomu1x80PMJk3DMNgW/HxJyBVPcCS +i6tXoW9zgyHCQxMMXomqxwU1eZNikNZdEx/ReqC8nhCnZnxGCrBXbL/mVDk4IWwS +XHHM01pfbbenht+z3+7C54lBljX2L0q1 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Telekom Security SMIME ECC Root 2021" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICRzCCAc2gAwIBAgIQFSrdFMkY0aRWQIamJa8HXzAKBggqhkjOPQQDAzBlMQsw +CQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBH +bWJIMS0wKwYDVQQDDCRUZWxla29tIFNlY3VyaXR5IFNNSU1FIEVDQyBSb290IDIw +MjEwHhcNMjEwMzE4MTEwODMwWhcNNDYwMzE3MjM1OTU5WjBlMQswCQYDVQQGEwJE +RTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBHbWJIMS0wKwYD +VQQDDCRUZWxla29tIFNlY3VyaXR5IFNNSU1FIEVDQyBSb290IDIwMjEwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAASwGY+ia7XHzQ8wmTcMw2Bb8fEnIFU9wJKLq1ehb3OD +IcJDEwxeiarHBTV5k2KQ1l0TH9F6oLyeEKdmfEYKsFdsv+ZUOTghbBJccczTWl9t +t6eG37Pf7sLniUGWNfYvSrWjQjBAMB0GA1UdDgQWBBQrywEMY8NTEqWoV6/QnIP7 +vZA6SzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQD +AwNoADBlAjEA1rxIkodHA8dwOyW2H65GZ3N0ACdL5KUEogPfXiitbl4DyN1onLa/ +lBBIlS8P/xiLAjABQDOel5dNBfJ0VAzNOf1qawnBJD9hjjiht+jXRBURYv8OYTdH +S0B/Sl+yZ1pzdcI= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 15:2a:dd:14:c9:18:d1:a4:56:40:86:a6:25:af:07:5f +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security SMIME ECC Root 2021 +# Validity +# Not Before: Mar 18 11:08:30 2021 GMT +# Not After : Mar 17 23:59:59 2046 GMT +# Subject: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security SMIME ECC Root 2021 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:b0:19:8f:a2:6b:b5:c7:cd:0f:30:99:37:0c:c3: +# 60:5b:f1:f1:27:20:55:3d:c0:92:8b:ab:57:a1:6f: +# 73:83:21:c2:43:13:0c:5e:89:aa:c7:05:35:79:93: +# 62:90:d6:5d:13:1f:d1:7a:a0:bc:9e:10:a7:66:7c: +# 46:0a:b0:57:6c:bf:e6:54:39:38:21:6c:12:5c:71: +# cc:d3:5a:5f:6d:b7:a7:86:df:b3:df:ee:c2:e7:89: +# 41:96:35:f6:2f:4a:b5 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 2B:CB:01:0C:63:C3:53:12:A5:A8:57:AF:D0:9C:83:FB:BD:90:3A:4B +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:31:00:d6:bc:48:92:87:47:03:c7:70:3b:25:b6:1f: +# ae:46:67:73:74:00:27:4b:e4:a5:04:a2:03:df:5e:28:ad:6e: +# 5e:03:c8:dd:68:9c:b6:bf:94:10:48:95:2f:0f:ff:18:8b:02: +# 30:01:40:33:9e:97:97:4d:05:f2:74:54:0c:cd:39:fd:6a:6b: +# 09:c1:24:3f:61:8e:38:a1:b7:e8:d7:44:15:11:62:ff:0e:61: +# 37:47:4b:40:7f:4a:5f:b2:67:5a:73:75:c2 + +[p11-kit-object-v1] +label: "Telekom Security SMIME RSA Root 2023" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA78UOi74y0mdH/wpMZ7Mq +v8jDxZHrtccekeFmqIiLVSCAH1Fed5eeGQpcx2s3IXwDNgH0iCXZqC5BqvzYJuCW +QGJ5rleeAzgaHLJ3FD7poXLQ5OA30RdG7VBceljF+Cv3dS/PgZ5aLLc6rKBZmARR +DP9JxVD9HtNHhUszT6I3ta8EmicynVbVP1Vh44tvrlH+l/5pB/piWybmFHkVpRM4 +rl83vpRK1g2AFmmkkbI6SZh1nUYQilx6f4Sl6K8ex6uzWka1o0v1piM2AEax2wW2 +G86eejJcmtVyw52GTSuE0x61iNoQeJwiwzsjtesTB71vU+yb7JvTZfUHCeNdp5m1 +foaO1QL/t4UJ40cU3ZZmGDTeCNXfyxiZYgsr7ABdUkTTxpb8MlYlkc/NGTuVOT4C +h5ljttU+NHoPEXWBvH0EymC0KHXXAlHdUgAux/2J8Vzzy6QnEjiPu/uJ8OTEOCy+ +gqBxYWKRj0gMLyupsPHLEATndL83kO9PKkM1lxLGKnAN3ixVR3ljKfXKH2oGUhyu +LSQigyKv0Kowtyof/2UjWGWTyI59QBAxhnjZVcs8MPDeUSoANtInRV/Y6KEhPX5G +VjspRfEdBQnOtkMw3EWQEDBMpGuGiz89LzGRce8mufa+nbBs3xHuWD9DeYY5gPEm +FweY8JmqMCxDWRTO7eJAE4UCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Telekom Security SMIME RSA Root 2023" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFtzCCA5+gAwIBAgIQDH5i9XlzO51Djotj7ZGVuDANBgkqhkiG9w0BAQwFADBl +MQswCQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0 +eSBHbWJIMS0wKwYDVQQDDCRUZWxla29tIFNlY3VyaXR5IFNNSU1FIFJTQSBSb290 +IDIwMjMwHhcNMjMwMzI4MTIwOTIyWhcNNDgwMzI3MjM1OTU5WjBlMQswCQYDVQQG +EwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBHbWJIMS0w +KwYDVQQDDCRUZWxla29tIFNlY3VyaXR5IFNNSU1FIFJTQSBSb290IDIwMjMwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDvxQ6LvjLSZ0f/Ckxnsyq/yMPF +keu1xx6R4WaoiItVIIAfUV53l54ZClzHazchfAM2AfSIJdmoLkGq/Ngm4JZAYnmu +V54DOBocsncUPumhctDk4DfRF0btUFx6WMX4K/d1L8+BnlostzqsoFmYBFEM/0nF +UP0e00eFSzNPoje1rwSaJzKdVtU/VWHji2+uUf6X/mkH+mJbJuYUeRWlEziuXze+ +lErWDYAWaaSRsjpJmHWdRhCKXHp/hKXorx7Hq7NaRrWjS/WmIzYARrHbBbYbzp56 +Mlya1XLDnYZNK4TTHrWI2hB4nCLDOyO16xMHvW9T7Jvsm9Nl9QcJ412nmbV+ho7V +Av+3hQnjRxTdlmYYNN4I1d/LGJliCyvsAF1SRNPGlvwyViWRz80ZO5U5PgKHmWO2 +1T40eg8RdYG8fQTKYLQoddcCUd1SAC7H/YnxXPPLpCcSOI+7+4nw5MQ4LL6CoHFh +YpGPSAwvK6mw8csQBOd0vzeQ708qQzWXEsYqcA3eLFVHeWMp9cofagZSHK4tJCKD +Iq/QqjC3Kh//ZSNYZZPIjn1AEDGGeNlVyzww8N5RKgA20idFX9jooSE9fkZWOylF +8R0FCc62QzDcRZAQMEyka4aLPz0vMZFx7ya59r6dsGzfEe5YP0N5hjmA8SYXB5jw +maowLENZFM7t4kAThQIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE +FJrOrCrsAfplcN6XnfHSAIylo2S7MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgw +FoAUms6sKuwB+mVw3ped8dIAjKWjZLswDQYJKoZIhvcNAQEMBQADggIBAONQ/fVA +FiIJljoNqe+B5y4y8KHxSV57iA0Ecte+Z6i6He5Qu3JuetG7DHIwRsjV1wISFplO +Ht9alu6Pkb6uhvgQd6XEbkdhwPIm2U9haAVIdQgVpaF71biziXnm7fHzYQCGey4x +/qNc+Hk9tFuIe+Ajuw2hF/rLaA2Yd3EI4m1DdGvENsWUQaQA1lctmYqLIBIVAjIO +0knsgUjFaidS17JzVVOWPJ5PTLWg0E9X0GcoSGS+xri67GTPyHvFaucq5llXttbU +1sBnXNmeKAlAv/OpNTFlYAPLGWyClQMeXz/hvepJceVbtwtHFhsgiW2UmQx+iGwd +DfS3IRpZl6zL6L4XH5V8U5uvUFKqjQsur1rXYPIqaSq57lRwGKq99aE/0t2hYxkA ++KcM66N58nBZo/iiEgPsE//kAoY218HDpLXUpMI3RbaUcD3FveujFR3jNnoVaSpW +NDnPpZo2qsjtebzP9s4EUwvaslAjfLw+Jq3wDkO7JsuuwkDeNx8KoFHNY522T9jG +R3y82LTtnovzEeKotT7srnA+fiK7NUgXYGIUkTCjdj2mUTaLHw3dajEcpe3dlqNu +cg8TTaqnqVx4+QMSGJM3RRKJPfi+yr3ZvgzZGGSnyEE+dYIhOH1l9KDUE0sHeCn5 +nX7Mhz/E2i6I3eML3FpRWunZEk+eAtv3BSVR +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0c:7e:62:f5:79:73:3b:9d:43:8e:8b:63:ed:91:95:b8 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security SMIME RSA Root 2023 +# Validity +# Not Before: Mar 28 12:09:22 2023 GMT +# Not After : Mar 27 23:59:59 2048 GMT +# Subject: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security SMIME RSA Root 2023 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ef:c5:0e:8b:be:32:d2:67:47:ff:0a:4c:67:b3: +# 2a:bf:c8:c3:c5:91:eb:b5:c7:1e:91:e1:66:a8:88: +# 8b:55:20:80:1f:51:5e:77:97:9e:19:0a:5c:c7:6b: +# 37:21:7c:03:36:01:f4:88:25:d9:a8:2e:41:aa:fc: +# d8:26:e0:96:40:62:79:ae:57:9e:03:38:1a:1c:b2: +# 77:14:3e:e9:a1:72:d0:e4:e0:37:d1:17:46:ed:50: +# 5c:7a:58:c5:f8:2b:f7:75:2f:cf:81:9e:5a:2c:b7: +# 3a:ac:a0:59:98:04:51:0c:ff:49:c5:50:fd:1e:d3: +# 47:85:4b:33:4f:a2:37:b5:af:04:9a:27:32:9d:56: +# d5:3f:55:61:e3:8b:6f:ae:51:fe:97:fe:69:07:fa: +# 62:5b:26:e6:14:79:15:a5:13:38:ae:5f:37:be:94: +# 4a:d6:0d:80:16:69:a4:91:b2:3a:49:98:75:9d:46: +# 10:8a:5c:7a:7f:84:a5:e8:af:1e:c7:ab:b3:5a:46: +# b5:a3:4b:f5:a6:23:36:00:46:b1:db:05:b6:1b:ce: +# 9e:7a:32:5c:9a:d5:72:c3:9d:86:4d:2b:84:d3:1e: +# b5:88:da:10:78:9c:22:c3:3b:23:b5:eb:13:07:bd: +# 6f:53:ec:9b:ec:9b:d3:65:f5:07:09:e3:5d:a7:99: +# b5:7e:86:8e:d5:02:ff:b7:85:09:e3:47:14:dd:96: +# 66:18:34:de:08:d5:df:cb:18:99:62:0b:2b:ec:00: +# 5d:52:44:d3:c6:96:fc:32:56:25:91:cf:cd:19:3b: +# 95:39:3e:02:87:99:63:b6:d5:3e:34:7a:0f:11:75: +# 81:bc:7d:04:ca:60:b4:28:75:d7:02:51:dd:52:00: +# 2e:c7:fd:89:f1:5c:f3:cb:a4:27:12:38:8f:bb:fb: +# 89:f0:e4:c4:38:2c:be:82:a0:71:61:62:91:8f:48: +# 0c:2f:2b:a9:b0:f1:cb:10:04:e7:74:bf:37:90:ef: +# 4f:2a:43:35:97:12:c6:2a:70:0d:de:2c:55:47:79: +# 63:29:f5:ca:1f:6a:06:52:1c:ae:2d:24:22:83:22: +# af:d0:aa:30:b7:2a:1f:ff:65:23:58:65:93:c8:8e: +# 7d:40:10:31:86:78:d9:55:cb:3c:30:f0:de:51:2a: +# 00:36:d2:27:45:5f:d8:e8:a1:21:3d:7e:46:56:3b: +# 29:45:f1:1d:05:09:ce:b6:43:30:dc:45:90:10:30: +# 4c:a4:6b:86:8b:3f:3d:2f:31:91:71:ef:26:b9:f6: +# be:9d:b0:6c:df:11:ee:58:3f:43:79:86:39:80:f1: +# 26:17:07:98:f0:99:aa:30:2c:43:59:14:ce:ed:e2: +# 40:13:85 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 9A:CE:AC:2A:EC:01:FA:65:70:DE:97:9D:F1:D2:00:8C:A5:A3:64:BB +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 9A:CE:AC:2A:EC:01:FA:65:70:DE:97:9D:F1:D2:00:8C:A5:A3:64:BB +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# e3:50:fd:f5:40:16:22:09:96:3a:0d:a9:ef:81:e7:2e:32:f0: +# a1:f1:49:5e:7b:88:0d:04:72:d7:be:67:a8:ba:1d:ee:50:bb: +# 72:6e:7a:d1:bb:0c:72:30:46:c8:d5:d7:02:12:16:99:4e:1e: +# df:5a:96:ee:8f:91:be:ae:86:f8:10:77:a5:c4:6e:47:61:c0: +# f2:26:d9:4f:61:68:05:48:75:08:15:a5:a1:7b:d5:b8:b3:89: +# 79:e6:ed:f1:f3:61:00:86:7b:2e:31:fe:a3:5c:f8:79:3d:b4: +# 5b:88:7b:e0:23:bb:0d:a1:17:fa:cb:68:0d:98:77:71:08:e2: +# 6d:43:74:6b:c4:36:c5:94:41:a4:00:d6:57:2d:99:8a:8b:20: +# 12:15:02:32:0e:d2:49:ec:81:48:c5:6a:27:52:d7:b2:73:55: +# 53:96:3c:9e:4f:4c:b5:a0:d0:4f:57:d0:67:28:48:64:be:c6: +# b8:ba:ec:64:cf:c8:7b:c5:6a:e7:2a:e6:59:57:b6:d6:d4:d6: +# c0:67:5c:d9:9e:28:09:40:bf:f3:a9:35:31:65:60:03:cb:19: +# 6c:82:95:03:1e:5f:3f:e1:bd:ea:49:71:e5:5b:b7:0b:47:16: +# 1b:20:89:6d:94:99:0c:7e:88:6c:1d:0d:f4:b7:21:1a:59:97: +# ac:cb:e8:be:17:1f:95:7c:53:9b:af:50:52:aa:8d:0b:2e:af: +# 5a:d7:60:f2:2a:69:2a:b9:ee:54:70:18:aa:bd:f5:a1:3f:d2: +# dd:a1:63:19:00:f8:a7:0c:eb:a3:79:f2:70:59:a3:f8:a2:12: +# 03:ec:13:ff:e4:02:86:36:d7:c1:c3:a4:b5:d4:a4:c2:37:45: +# b6:94:70:3d:c5:bd:eb:a3:15:1d:e3:36:7a:15:69:2a:56:34: +# 39:cf:a5:9a:36:aa:c8:ed:79:bc:cf:f6:ce:04:53:0b:da:b2: +# 50:23:7c:bc:3e:26:ad:f0:0e:43:bb:26:cb:ae:c2:40:de:37: +# 1f:0a:a0:51:cd:63:9d:b6:4f:d8:c6:47:7c:bc:d8:b4:ed:9e: +# 8b:f3:11:e2:a8:b5:3e:ec:ae:70:3e:7e:22:bb:35:48:17:60: +# 62:14:91:30:a3:76:3d:a6:51:36:8b:1f:0d:dd:6a:31:1c:a5: +# ed:dd:96:a3:6e:72:0f:13:4d:aa:a7:a9:5c:78:f9:03:12:18: +# 93:37:45:12:89:3d:f8:be:ca:bd:d9:be:0c:d9:18:64:a7:c8: +# 41:3e:75:82:21:38:7d:65:f4:a0:d4:13:4b:07:78:29:f9:9d: +# 7e:cc:87:3f:c4:da:2e:88:dd:e3:0b:dc:5a:51:5a:e9:d9:12: +# 4f:9e:02:db:f7:05:25:51 + +[p11-kit-object-v1] +label: "Telekom Security TLS ECC Root 2020" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEzr/+V6i/1ar3EJrNvNERor1nQsyQ6xUY +kNmizQwqJes+T8610o8P8zXaQ4sCgL5vUSQdD2sryp/Cb1Ay5TcgtiD/iA0PbUm7 +2wakh5CSlPQJ0M9/yIALwZezuzUnycIb +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Telekom Security TLS ECC Root 2020" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICQjCCAcmgAwIBAgIQNjqWjMlcsljN0AFdxeVXADAKBggqhkjOPQQDAzBjMQsw +CQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBH +bWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBFQ0MgUm9vdCAyMDIw +MB4XDTIwMDgyNTA3NDgyMFoXDTQ1MDgyNTIzNTk1OVowYzELMAkGA1UEBhMCREUx +JzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkGA1UE +AwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgRUNDIFJvb3QgMjAyMDB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABM6//leov9Wq9xCazbzREaK9Z0LMkOsVGJDZos0MKiXrPk/O +tdKPD/M12kOLAoC+b1EkHQ9rK8qfwm9QMuU3ILYg/4gND21Ju9sGpIeQkpT0CdDP +f8iAC8GXs7s1J8nCG6NCMEAwHQYDVR0OBBYEFONyzG6VmUex5rNhTNHLq+O6zd6f +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cA +MGQCMHVSi7ekEE+uShCLsoRbQuHmKjYC2qBuGT8lv9pZMo7k+5Dck2TOrbRBR2Di +z6fLHgIwN0GMZt9Ba9aDAEH9L1r3ULRn0SyocddDypwnJJGDSA3PzfdUga/sf+Rn +27iQ7t0l +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 36:3a:96:8c:c9:5c:b2:58:cd:d0:01:5d:c5:e5:57:00 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security TLS ECC Root 2020 +# Validity +# Not Before: Aug 25 07:48:20 2020 GMT +# Not After : Aug 25 23:59:59 2045 GMT +# Subject: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security TLS ECC Root 2020 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:ce:bf:fe:57:a8:bf:d5:aa:f7:10:9a:cd:bc:d1: +# 11:a2:bd:67:42:cc:90:eb:15:18:90:d9:a2:cd:0c: +# 2a:25:eb:3e:4f:ce:b5:d2:8f:0f:f3:35:da:43:8b: +# 02:80:be:6f:51:24:1d:0f:6b:2b:ca:9f:c2:6f:50: +# 32:e5:37:20:b6:20:ff:88:0d:0f:6d:49:bb:db:06: +# a4:87:90:92:94:f4:09:d0:cf:7f:c8:80:0b:c1:97: +# b3:bb:35:27:c9:c2:1b +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# E3:72:CC:6E:95:99:47:B1:E6:B3:61:4C:D1:CB:AB:E3:BA:CD:DE:9F +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:75:52:8b:b7:a4:10:4f:ae:4a:10:8b:b2:84:5b: +# 42:e1:e6:2a:36:02:da:a0:6e:19:3f:25:bf:da:59:32:8e:e4: +# fb:90:dc:93:64:ce:ad:b4:41:47:60:e2:cf:a7:cb:1e:02:30: +# 37:41:8c:66:df:41:6b:d6:83:00:41:fd:2f:5a:f7:50:b4:67: +# d1:2c:a8:71:d7:43:ca:9c:27:24:91:83:48:0d:cf:cd:f7:54: +# 81:af:ec:7f:e4:67:db:b8:90:ee:dd:25 + +[p11-kit-object-v1] +label: "Telekom Security TLS RSA Root 2023" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA7TWhgYDzy0ppW8L7UYOu +Jv3hbvOBEn1xQP+HdUIpIe2BUizfEsEZhInBvcUo1dVLbETWTNsHlkpVeso2ggQ2 +qKX8J/ZJ8dVynpH5I9Zwe7v1m8Hsk88Z6mV+iHCgc/z2/7VWYuFzajSYPoK4rJVT +9AGgJwdyowBToOSyq4M4VzMllJ++SB2Y4aO6nlzNBHFRfXV4q/NZqsTgYL6Pg1K4 +dRpBNe288zpj6akURdfmUtFu0t684/ULO+bgxL1DZBOmzvSYN2yKlaiXyEcP8F4Q +i+cdHP6xO6AFM2gFQYLBAysByOePTavotfbNa0S1592L7OoltAAiV02wsbIxwRbO +//0UhLdH+rLxcN7bi2w2WKR8sxHRw3d/X7Yl4A3F0rP5uLh32zdxcUfjYBhPJLZ1 +N3i5o2Kvvclyji/Mu67b5BVSGQcz+2q3LUuQKIJz/hiLNY3bpwRqvurBTTY7FjaR +Mu+2QImRQ+DyoqsELubyTA4WNCCsh8EtfslmRxcUEaTz96EkiavYGsihXLGj94xt +yAHJT8nsxPysUTPRyIPRyZ8d1Ec0KT7LsA76gwsoWOUp3D98qJ/Jtgq7puhGFg+W +5XvkanpIbXaYBaXcbR5CHkLaGuBS97WDwBp7eDUsOPUf/UmjLtJZY7+AsIyTc8s1 +ppmVImFlA2D7L5NL+pqcgDsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Telekom Security TLS RSA Root 2023" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIQIZxULej27HF3+k7ow3BXlzANBgkqhkiG9w0BAQwFADBj +MQswCQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0 +eSBHbWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBSU0EgUm9vdCAy +MDIzMB4XDTIzMDMyODEyMTY0NVoXDTQ4MDMyNzIzNTk1OVowYzELMAkGA1UEBhMC +REUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkG +A1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgUlNBIFJvb3QgMjAyMzCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAO01oYGA88tKaVvC+1GDrib94W7zgRJ9 +cUD/h3VCKSHtgVIs3xLBGYSJwb3FKNXVS2xE1kzbB5ZKVXrKNoIENqil/Cf2SfHV +cp6R+SPWcHu79ZvB7JPPGeplfohwoHP89v+1VmLhc2o0mD6CuKyVU/QBoCcHcqMA +U6DksquDOFczJZSfvkgdmOGjup5czQRxUX11eKvzWarE4GC+j4NSuHUaQTXtvPM6 +Y+mpFEXX5lLRbtLevOP1Czvm4MS9Q2QTps70mDdsipWol8hHD/BeEIvnHRz+sTug +BTNoBUGCwQMrAcjnj02r6LX2zWtEtefdi+zqJbQAIldNsLGyMcEWzv/9FIS3R/qy +8XDe24tsNlikfLMR0cN3f1+2JeANxdKz+bi4d9s3cXFH42AYTyS2dTd4uaNir73J +co4vzLuu2+QVUhkHM/tqty1LkCiCc/4YizWN26cEar7qwU02OxY2kTLvtkCJkUPg +8qKrBC7m8kwOFjQgrIfBLX7JZkcXFBGk8/ehJImr2BrIoVyxo/eMbcgByU/J7MT8 +rFEz0ciD0cmfHdRHNCk+y7AO+oMLKFjlKdw/fKifybYKu6boRhYPluV75Gp6SG12 +mAWl3G0eQh5C2hrgUve1g8Aae3g1LDj1H/1Joy7SWWO/gLCMk3PLNaaZlSJhZQNg ++y+TS/qanIA7AgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtqeX +gj10hZv3PJ+TmpV5dVKMbUcwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBS2 +p5eCPXSFm/c8n5OalXl1UoxtRzANBgkqhkiG9w0BAQwFAAOCAgEAqMxhpr51nhVQ +pGv7qHBFfLp+sVr8WyP6Cnf4mHGCDG3gXkaqk/QeoMPhk9tLrbKmXauw1GLLXrtm +9S3ul0A8Yute1hTWjOKWi0FpkzXmuZlrYrShF2Y0pmtjxrlO8iLpWA1WQdH6DErw +M807u20hOq6OcrXDSvvpfeWxm4bu4uB9tPcy/SKE8YXJN3nptT+/XOR0so8RYgDd +GGah2XsjX/GO1WfoVNpbOms2b/mBsTNHM3dA+VKq3dSDz4V4mZqTuXNnQkYRIer+ +CqkbGmVps4+uFrb2S1ayLfmlyOw7YqPta9BO1UAJpB+Y1zqlklkg5LB9zVtzaL1t +xKITDmcZuI1CfmwMmm6gJC3VRRvcxAIU/oVbZZfKTpBQCHpCNfnqwmbU+AGuHrS+ +w6jv/naaoqYfRvaE7fzbzsQCzndILIyy7MMAo+wsVRjBfhnu4S/yrYObnqsZ38aK +L4x35bcF7DvB7L6Gs4a8wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+lj +X273CXE2whJdV/LItM3z7gLfEdxquVeEHVlNjM7IDiPCtyaaEBRx/pOyiriA8A4Q +ntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0o82bNSQ3+pCTE4FCxpgm +dTdmQRCsu/WU48IxK63nI1bMNSWSs1A= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 21:9c:54:2d:e8:f6:ec:71:77:fa:4e:e8:c3:70:57:97 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security TLS RSA Root 2023 +# Validity +# Not Before: Mar 28 12:16:45 2023 GMT +# Not After : Mar 27 23:59:59 2048 GMT +# Subject: C=DE, O=Deutsche Telekom Security GmbH, CN=Telekom Security TLS RSA Root 2023 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:ed:35:a1:81:80:f3:cb:4a:69:5b:c2:fb:51:83: +# ae:26:fd:e1:6e:f3:81:12:7d:71:40:ff:87:75:42: +# 29:21:ed:81:52:2c:df:12:c1:19:84:89:c1:bd:c5: +# 28:d5:d5:4b:6c:44:d6:4c:db:07:96:4a:55:7a:ca: +# 36:82:04:36:a8:a5:fc:27:f6:49:f1:d5:72:9e:91: +# f9:23:d6:70:7b:bb:f5:9b:c1:ec:93:cf:19:ea:65: +# 7e:88:70:a0:73:fc:f6:ff:b5:56:62:e1:73:6a:34: +# 98:3e:82:b8:ac:95:53:f4:01:a0:27:07:72:a3:00: +# 53:a0:e4:b2:ab:83:38:57:33:25:94:9f:be:48:1d: +# 98:e1:a3:ba:9e:5c:cd:04:71:51:7d:75:78:ab:f3: +# 59:aa:c4:e0:60:be:8f:83:52:b8:75:1a:41:35:ed: +# bc:f3:3a:63:e9:a9:14:45:d7:e6:52:d1:6e:d2:de: +# bc:e3:f5:0b:3b:e6:e0:c4:bd:43:64:13:a6:ce:f4: +# 98:37:6c:8a:95:a8:97:c8:47:0f:f0:5e:10:8b:e7: +# 1d:1c:fe:b1:3b:a0:05:33:68:05:41:82:c1:03:2b: +# 01:c8:e7:8f:4d:ab:e8:b5:f6:cd:6b:44:b5:e7:dd: +# 8b:ec:ea:25:b4:00:22:57:4d:b0:b1:b2:31:c1:16: +# ce:ff:fd:14:84:b7:47:fa:b2:f1:70:de:db:8b:6c: +# 36:58:a4:7c:b3:11:d1:c3:77:7f:5f:b6:25:e0:0d: +# c5:d2:b3:f9:b8:b8:77:db:37:71:71:47:e3:60:18: +# 4f:24:b6:75:37:78:b9:a3:62:af:bd:c9:72:8e:2f: +# cc:bb:ae:db:e4:15:52:19:07:33:fb:6a:b7:2d:4b: +# 90:28:82:73:fe:18:8b:35:8d:db:a7:04:6a:be:ea: +# c1:4d:36:3b:16:36:91:32:ef:b6:40:89:91:43:e0: +# f2:a2:ab:04:2e:e6:f2:4c:0e:16:34:20:ac:87:c1: +# 2d:7e:c9:66:47:17:14:11:a4:f3:f7:a1:24:89:ab: +# d8:1a:c8:a1:5c:b1:a3:f7:8c:6d:c8:01:c9:4f:c9: +# ec:c4:fc:ac:51:33:d1:c8:83:d1:c9:9f:1d:d4:47: +# 34:29:3e:cb:b0:0e:fa:83:0b:28:58:e5:29:dc:3f: +# 7c:a8:9f:c9:b6:0a:bb:a6:e8:46:16:0f:96:e5:7b: +# e4:6a:7a:48:6d:76:98:05:a5:dc:6d:1e:42:1e:42: +# da:1a:e0:52:f7:b5:83:c0:1a:7b:78:35:2c:38:f5: +# 1f:fd:49:a3:2e:d2:59:63:bf:80:b0:8c:93:73:cb: +# 35:a6:99:95:22:61:65:03:60:fb:2f:93:4b:fa:9a: +# 9c:80:3b +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# a8:cc:61:a6:be:75:9e:15:50:a4:6b:fb:a8:70:45:7c:ba:7e: +# b1:5a:fc:5b:23:fa:0a:77:f8:98:71:82:0c:6d:e0:5e:46:aa: +# 93:f4:1e:a0:c3:e1:93:db:4b:ad:b2:a6:5d:ab:b0:d4:62:cb: +# 5e:bb:66:f5:2d:ee:97:40:3c:62:eb:5e:d6:14:d6:8c:e2:96: +# 8b:41:69:93:35:e6:b9:99:6b:62:b4:a1:17:66:34:a6:6b:63: +# c6:b9:4e:f2:22:e9:58:0d:56:41:d1:fa:0c:4a:f0:33:cd:3b: +# bb:6d:21:3a:ae:8e:72:b5:c3:4a:fb:e9:7d:e5:b1:9b:86:ee: +# e2:e0:7d:b4:f7:32:fd:22:84:f1:85:c9:37:79:e9:b5:3f:bf: +# 5c:e4:74:b2:8f:11:62:00:dd:18:66:a1:d9:7b:23:5f:f1:8e: +# d5:67:e8:54:da:5b:3a:6b:36:6f:f9:81:b1:33:47:33:77:40: +# f9:52:aa:dd:d4:83:cf:85:78:99:9a:93:b9:73:67:42:46:11: +# 21:ea:fe:0a:a9:1b:1a:65:69:b3:8f:ae:16:b6:f6:4b:56:b2: +# 2d:f9:a5:c8:ec:3b:62:a3:ed:6b:d0:4e:d5:40:09:a4:1f:98: +# d7:3a:a5:92:59:20:e4:b0:7d:cd:5b:73:68:bd:6d:c4:a2:13: +# 0e:67:19:b8:8d:42:7e:6c:0c:9a:6e:a0:24:2d:d5:45:1b:dc: +# c4:02:14:fe:85:5b:65:97:ca:4e:90:50:08:7a:42:35:f9:ea: +# c2:66:d4:f8:01:ae:1e:b4:be:c3:a8:ef:fe:76:9a:a2:a6:1f: +# 46:f6:84:ed:fc:db:ce:c4:02:ce:77:48:2c:8c:b2:ec:c3:00: +# a3:ec:2c:55:18:c1:7e:19:ee:e1:2f:f2:ad:83:9b:9e:ab:19: +# df:c6:8a:2f:8c:77:e5:b7:05:ec:3b:c1:ec:be:86:b3:86:bc: +# c0:f7:dc:e7:ea:5b:ae:b2:cc:b5:35:86:4b:d0:e2:3f:b6:d8: +# f8:0e:00:ee:5d:e3:f7:8d:58:ff:cf:8b:37:e9:63:5f:6e:f7: +# 09:71:36:c2:12:5d:57:f2:c8:b4:cd:f3:ee:02:df:11:dc:6a: +# b9:57:84:1d:59:4d:8c:ce:c8:0e:23:c2:b7:26:9a:10:14:71: +# fe:93:b2:8a:b8:80:f0:0e:10:9e:d3:a8:50:0c:37:82:2f:ea: +# e0:8a:9d:e1:2c:39:ff:b5:b4:73:00:e4:f7:48:a6:73:ac:bf: +# b2:de:77:04:87:b4:a3:cd:9b:35:24:37:fa:90:93:13:81:42: +# c6:98:26:75:37:66:41:10:ac:bb:f5:94:e3:c2:31:2b:ad:e7: +# 23:56:cc:35:25:92:b3:50 + +[p11-kit-object-v1] +label: "Telia Root CA v2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAstA/B7zie9Brmfjid2nn +zp2kA7yCbaH+gWUfTCesjgC6FnvrMGoAwLN0aH6yr8fVYrN6P1DKjDZEJGPSNukM +hfZDdtVMoWByZ+IoM6XLMbg6IiM0uH29ViJAner0ewOtaPyygU+Y0HTqjeV9zWPD +o/beksJYGeCWu8XEqT2ldJb+r/mJqr2VF1TYeETxDHcVkuCYQqek1qogks3BoLOW +sjqEQo191ZXk1tvpYsRYs3nFjNM1M4OfdaFSJ2E48Vk9jlDgvXk852yW/l7ZAmW0 +jlzQETTfXb9Sp4EAw3+ZRZkV1RfIClPsY/OZfcxpEobCF/ABnr+EvNFSyxuSZs6k +U+Whv8TbCdbmiVYryON83uP/ieU1bijobAsjUaklBetI+N2xyvpsCFHvtxhsRMom +4XPGiQaB5YqssOIpxrkks2tEEfSlQ8JMQ+VwNoy2M1d6lS6CoPRcELNhg/YCBYYu +fC1s3ANGbjWT1XqVL94g2Ft+lJAEarpZPQQFdZ03og4uPevBpFKD/tBr1GaO3Mbp +Ek4dKleqELx8XoJ9pqbJ8i259RcnrdEOiVQrlfrArR2YFHgzQoYKqXO1+3QNtxsw +GcRaDhwnt9oY0P+KyAW68aocoje35kikRiyU6qh2YkeLEFMHSFds4pJNtq4Fy9zB +Sl6PrD0ZTsLtYHUr28HKQtUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Telia Root CA v2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIPAWdfJ9b+euPkrL4JWwWeMA0GCSqGSIb3DQEBCwUAMEQx +CzAJBgNVBAYTAkZJMRowGAYDVQQKDBFUZWxpYSBGaW5sYW5kIE95ajEZMBcGA1UE +AwwQVGVsaWEgUm9vdCBDQSB2MjAeFw0xODExMjkxMTU1NTRaFw00MzExMjkxMTU1 +NTRaMEQxCzAJBgNVBAYTAkZJMRowGAYDVQQKDBFUZWxpYSBGaW5sYW5kIE95ajEZ +MBcGA1UEAwwQVGVsaWEgUm9vdCBDQSB2MjCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBALLQPwe84nvQa5n44ndp586dpAO8gm2h/oFlH0wnrI4AuhZ76zBq +AMCzdGh+sq/H1WKzej9Qyow2RCRj0jbpDIX2Q3bVTKFgcmfiKDOlyzG4OiIjNLh9 +vVYiQJ3q9HsDrWj8soFPmNB06o3lfc1jw6P23pLCWBnglrvFxKk9pXSW/q/5iaq9 +lRdU2HhE8Qx3FZLgmEKnpNaqIJLNwaCzlrI6hEKNfdWV5Nbb6WLEWLN5xYzTNTOD +n3WhUidhOPFZPY5Q4L15POdslv5e2QJltI5c0BE0312/UqeBAMN/mUWZFdUXyApT +7GPzmX3MaRKGwhfwAZ6/hLzRUssbkmbOpFPlob/E2wnW5olWK8jjfN7j/4nlNW4o +6GwLI1GpJQXrSPjdscr6bAhR77cYbETKJuFzxokGgeWKrLDiKca5JLNrRBH0pUPC +TEPlcDaMtjNXepUugqD0XBCzYYP2AgWGLnwtbNwDRm41k9V6lS/eINhbfpSQBGq6 +WT0EBXWdN6IOLj3rwaRSg/7Qa9RmjtzG6RJOHSpXqhC8fF6CfaamyfItufUXJ63R +DolUK5X6wK0dmBR4M0KGCqlztft0DbcbMBnEWg4cJ7faGND/isgFuvGqHKI3t+ZI +pEYslOqodmJHixBTB0hXbOKSTbauBcvcwUpej6w9GU7C7WB1K9vBykLVAgMBAAGj +YzBhMB8GA1UdIwQYMBaAFHKs5DN5qkWH9v2sHZ7Wxy+G2CQ5MB0GA1UdDgQWBBRy +rOQzeapFh/b9rB2e1scvhtgkOTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw +AwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAoDtZpwmUPjaE0n4vOaWWl/oRrfxn83EJ +8rKJhGdEr7nv7ZbsnGTbMjBvZ5qsfl+yqwE2foH65IRe0qw24GtixX1LDoJt0nZi +0f6X+J8wfBj5tFJ3gh1229MdqfDBmgC9bXXYfef6xzijnHDoRnkDry5023X4blMM +A8iZGok1GTzTyVR8qPAs5m4HeW9q4ebqkYJpCh3DflminmtGFZhb069GHWLIzoBS +SRE/yQQSwxN8PzuKlts8oB4KtItUsiRnDe+Cy748fdHif64W1lZYudogsYMVoe+K +TTJvQS8TUoKU1xrBeKJR3Stwbbca+few4GeXVtt8YVMJAygCQMez2P2ccGrGKMOF +6eLtGpOg3kuYooQ+BXcBlj37tCAPnHICehIv1aO6UXivKitEZU61/Qrowc15h2Er +3oBXRb9n8ZuRXqWk7FlIEA04x7D6w0RtBPV4UBySllva9bguulvP5fBqnUsvWHMt +Ty3EHD70sz+rFQ47GUGKpMFXEmZxTPpT41frYpUJnlTd0cI8Vzy9OK2YZLe4A5pT +VmBds9hCG1xLEooc6+t9xnppxyd/pPiL8uSUZodL6ZQHCRJ5irLrdATczvREWeAW +ysUsWNc8e89ihmpQfTU2Zqf7N+cox9jQraVplI/owd8k+BsHMYeB2F326CjYSlKA +rBPuUBQemMc= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 01:67:5f:27:d6:fe:7a:e3:e4:ac:be:09:5b:05:9e +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=FI, O=Telia Finland Oyj, CN=Telia Root CA v2 +# Validity +# Not Before: Nov 29 11:55:54 2018 GMT +# Not After : Nov 29 11:55:54 2043 GMT +# Subject: C=FI, O=Telia Finland Oyj, CN=Telia Root CA v2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b2:d0:3f:07:bc:e2:7b:d0:6b:99:f8:e2:77:69: +# e7:ce:9d:a4:03:bc:82:6d:a1:fe:81:65:1f:4c:27: +# ac:8e:00:ba:16:7b:eb:30:6a:00:c0:b3:74:68:7e: +# b2:af:c7:d5:62:b3:7a:3f:50:ca:8c:36:44:24:63: +# d2:36:e9:0c:85:f6:43:76:d5:4c:a1:60:72:67:e2: +# 28:33:a5:cb:31:b8:3a:22:23:34:b8:7d:bd:56:22: +# 40:9d:ea:f4:7b:03:ad:68:fc:b2:81:4f:98:d0:74: +# ea:8d:e5:7d:cd:63:c3:a3:f6:de:92:c2:58:19:e0: +# 96:bb:c5:c4:a9:3d:a5:74:96:fe:af:f9:89:aa:bd: +# 95:17:54:d8:78:44:f1:0c:77:15:92:e0:98:42:a7: +# a4:d6:aa:20:92:cd:c1:a0:b3:96:b2:3a:84:42:8d: +# 7d:d5:95:e4:d6:db:e9:62:c4:58:b3:79:c5:8c:d3: +# 35:33:83:9f:75:a1:52:27:61:38:f1:59:3d:8e:50: +# e0:bd:79:3c:e7:6c:96:fe:5e:d9:02:65:b4:8e:5c: +# d0:11:34:df:5d:bf:52:a7:81:00:c3:7f:99:45:99: +# 15:d5:17:c8:0a:53:ec:63:f3:99:7d:cc:69:12:86: +# c2:17:f0:01:9e:bf:84:bc:d1:52:cb:1b:92:66:ce: +# a4:53:e5:a1:bf:c4:db:09:d6:e6:89:56:2b:c8:e3: +# 7c:de:e3:ff:89:e5:35:6e:28:e8:6c:0b:23:51:a9: +# 25:05:eb:48:f8:dd:b1:ca:fa:6c:08:51:ef:b7:18: +# 6c:44:ca:26:e1:73:c6:89:06:81:e5:8a:ac:b0:e2: +# 29:c6:b9:24:b3:6b:44:11:f4:a5:43:c2:4c:43:e5: +# 70:36:8c:b6:33:57:7a:95:2e:82:a0:f4:5c:10:b3: +# 61:83:f6:02:05:86:2e:7c:2d:6c:dc:03:46:6e:35: +# 93:d5:7a:95:2f:de:20:d8:5b:7e:94:90:04:6a:ba: +# 59:3d:04:05:75:9d:37:a2:0e:2e:3d:eb:c1:a4:52: +# 83:fe:d0:6b:d4:66:8e:dc:c6:e9:12:4e:1d:2a:57: +# aa:10:bc:7c:5e:82:7d:a6:a6:c9:f2:2d:b9:f5:17: +# 27:ad:d1:0e:89:54:2b:95:fa:c0:ad:1d:98:14:78: +# 33:42:86:0a:a9:73:b5:fb:74:0d:b7:1b:30:19:c4: +# 5a:0e:1c:27:b7:da:18:d0:ff:8a:c8:05:ba:f1:aa: +# 1c:a2:37:b7:e6:48:a4:46:2c:94:ea:a8:76:62:47: +# 8b:10:53:07:48:57:6c:e2:92:4d:b6:ae:05:cb:dc: +# c1:4a:5e:8f:ac:3d:19:4e:c2:ed:60:75:2b:db:c1: +# ca:42:d5 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Authority Key Identifier: +# 72:AC:E4:33:79:AA:45:87:F6:FD:AC:1D:9E:D6:C7:2F:86:D8:24:39 +# X509v3 Subject Key Identifier: +# 72:AC:E4:33:79:AA:45:87:F6:FD:AC:1D:9E:D6:C7:2F:86:D8:24:39 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# a0:3b:59:a7:09:94:3e:36:84:d2:7e:2f:39:a5:96:97:fa:11: +# ad:fc:67:f3:71:09:f2:b2:89:84:67:44:af:b9:ef:ed:96:ec: +# 9c:64:db:32:30:6f:67:9a:ac:7e:5f:b2:ab:01:36:7e:81:fa: +# e4:84:5e:d2:ac:36:e0:6b:62:c5:7d:4b:0e:82:6d:d2:76:62: +# d1:fe:97:f8:9f:30:7c:18:f9:b4:52:77:82:1d:76:db:d3:1d: +# a9:f0:c1:9a:00:bd:6d:75:d8:7d:e7:fa:c7:38:a3:9c:70:e8: +# 46:79:03:af:2e:74:db:75:f8:6e:53:0c:03:c8:99:1a:89:35: +# 19:3c:d3:c9:54:7c:a8:f0:2c:e6:6e:07:79:6f:6a:e1:e6:ea: +# 91:82:69:0a:1d:c3:7e:59:a2:9e:6b:46:15:98:5b:d3:af:46: +# 1d:62:c8:ce:80:52:49:11:3f:c9:04:12:c3:13:7c:3f:3b:8a: +# 96:db:3c:a0:1e:0a:b4:8b:54:b2:24:67:0d:ef:82:cb:be:3c: +# 7d:d1:e2:7f:ae:16:d6:56:58:b9:da:20:b1:83:15:a1:ef:8a: +# 4d:32:6f:41:2f:13:52:82:94:d7:1a:c1:78:a2:51:dd:2b:70: +# 6d:b7:1a:f9:f7:b0:e0:67:97:56:db:7c:61:53:09:03:28:02: +# 40:c7:b3:d8:fd:9c:70:6a:c6:28:c3:85:e9:e2:ed:1a:93:a0: +# de:4b:98:a2:84:3e:05:77:01:96:3d:fb:b4:20:0f:9c:72:02: +# 7a:12:2f:d5:a3:ba:51:78:af:2a:2b:44:65:4e:b5:fd:0a:e8: +# c1:cd:79:87:61:2b:de:80:57:45:bf:67:f1:9b:91:5e:a5:a4: +# ec:59:48:10:0d:38:c7:b0:fa:c3:44:6d:04:f5:78:50:1c:92: +# 96:5b:da:f5:b8:2e:ba:5b:cf:e5:f0:6a:9d:4b:2f:58:73:2d: +# 4f:2d:c4:1c:3e:f4:b3:3f:ab:15:0e:3b:19:41:8a:a4:c1:57: +# 12:66:71:4c:fa:53:e3:57:eb:62:95:09:9e:54:dd:d1:c2:3c: +# 57:3c:bd:38:ad:98:64:b7:b8:03:9a:53:56:60:5d:b3:d8:42: +# 1b:5c:4b:12:8a:1c:eb:eb:7d:c6:7a:69:c7:27:7f:a4:f8:8b: +# f2:e4:94:66:87:4b:e9:94:07:09:12:79:8a:b2:eb:74:04:dc: +# ce:f4:44:59:e0:16:ca:c5:2c:58:d7:3c:7b:cf:62:86:6a:50: +# 7d:35:36:66:a7:fb:37:e7:28:c7:d8:d0:ad:a5:69:94:8f:e8: +# c1:df:24:f8:1b:07:31:87:81:d8:5d:f6:e8:28:d8:4a:52:80: +# ac:13:ee:50:14:1e:98:c7 + +[p11-kit-object-v1] +label: "TeliaSonera Root CA v1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwr7rJ/Aho/NpJlV+ncVV +FpFc/e8hv1OAei3SkYxjMfDsJPDDpdJyfBBt9De35eZ8eeqMtYKLrki2rADcZXXs +Kk1fwYf1IGUrgahHPokjlTAWkH/oVwdI5xmuv0VnsTcbBir+3vmsfYP7Xrrkj5dn +vkuOjWQHVzhVaTQ2PRNI70/i02YepM8at142M9S0Br0YAf13hFAARfWMXegjvH7+ +NeHtUHupMI0Z0wmOaGddvzyXGFO7KWLFyl5ywceW1NstoLQfaQPs6uJQ8Qw88Kzz +Uy3wHPXtbDk5c4AWyFKwI83gPtzdPEeguzWK4phoi77lv3Lu0vql7RLt/JgYqSZ2 +3ChLECAc038Wdy3tb4D3SbtTBbtdaMfUyHUWP4lai/cXR9RM8dKJeT5NPZioYd46 +HtL4XgPgwckcjNONTdOVNrM3X2NjmzMU8C0ma1N8iYwywm7sPSEAOcmhaOJQgy6w +OivzNqCsL+RvYcJRCTk+i1O5u2fa3FO5dlk2nUPlIOA9MmCFIlG3xzO73RUvpHim +B3uBRjYEht15NceVLDuwoxc15XMftFxZ79rqEGV7etB/n7O0Kjc7cIubW7krt+yy +URKXUyla1PASENxPArsSki9i1D9pQ3wN1vxYdQGInVgWS966kP9HAYkGavZfspBq +swKmAoi/s0d+KtnV+mh4NU0CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TeliaSonera Root CA v1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAw +NzEUMBIGA1UECgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJv +b3QgQ0EgdjEwHhcNMDcxMDE4MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYD +VQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwWVGVsaWFTb25lcmEgUm9vdCBDQSB2 +MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+6yfwIaPzaSZVfp3F +VRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA3GV1 +7CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+X +Z75Ljo1kB1c4VWk0Nj0TSO9P4tNmHqTPGrdeNjPUtAa9GAH9d4RQAEX1jF3oI7x+ +/jXh7VB7qTCNGdMJjmhnXb88lxhTuylixcpecsHHltTbLaC0H2kD7OriUPEMPPCs +81Mt8Bz17Ww5OXOAFshSsCPN4D7c3TxHoLs1iuKYaIu+5b9y7tL6pe0S7fyYGKkm +dtwoSxAgHNN/Fnct7W+A90m7UwW7XWjH1Mh1Fj+JWov3F0fUTPHSiXk+TT2YqGHe +Oh7S+F4D4MHJHIzTjU3TlTazN19jY5szFPAtJmtTfImMMsJu7D0hADnJoWjiUIMu +sDor8zagrC/kb2HCUQk5PotTubtn2txTuXZZNp1D5SDgPTJghSJRt8czu90VL6R4 +pgd7gUY2BIbdeTXHlSw7sKMXNeVzH7RcWe/a6hBle3rQf5+ztCo3O3CLm1u5K7fs +slESl1MpWtTwEhDcTwK7EpIvYtQ/aUN8Ddb8WHUBiJ1YFkveupD/RwGJBmr2X7KQ +arMCpgKIv7NHfirZ1fpoeDVNAgMBAAGjPzA9MA8GA1UdEwEB/wQFMAMBAf8wCwYD +VR0PBAQDAgEGMB0GA1UdDgQWBBTwj1k4ALP1j5qWDNXr+nuqF+gTEjANBgkqhkiG +9w0BAQUFAAOCAgEAvuRcYk4k9AwI//DTDGjkk0kiP0Qnb7tt3oNmzqjMDfz1mgbl +dxSR651Be5kqhOX//CHBXfDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx +0GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1Tj +TQpgcmLNkQfWpb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBed +Y2gea+zDTYa4EzAvXUYNR0PVG6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB7 +Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpcc41teyWRyu5FrgZLAMzTsVlQ2jqI +OylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOTJsjrDNYmiLbAJM+7 +vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2qReW +t88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcn +HL/EVlP6Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVx +SK236thZiNSQvxaz2emsWWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 95:be:16:a0:f7:2e:46:f1:7b:39:82:72:fa:8b:cd:96 +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: O=TeliaSonera, CN=TeliaSonera Root CA v1 +# Validity +# Not Before: Oct 18 12:00:50 2007 GMT +# Not After : Oct 18 12:00:50 2032 GMT +# Subject: O=TeliaSonera, CN=TeliaSonera Root CA v1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c2:be:eb:27:f0:21:a3:f3:69:26:55:7e:9d:c5: +# 55:16:91:5c:fd:ef:21:bf:53:80:7a:2d:d2:91:8c: +# 63:31:f0:ec:24:f0:c3:a5:d2:72:7c:10:6d:f4:37: +# b7:e5:e6:7c:79:ea:8c:b5:82:8b:ae:48:b6:ac:00: +# dc:65:75:ec:2a:4d:5f:c1:87:f5:20:65:2b:81:a8: +# 47:3e:89:23:95:30:16:90:7f:e8:57:07:48:e7:19: +# ae:bf:45:67:b1:37:1b:06:2a:fe:de:f9:ac:7d:83: +# fb:5e:ba:e4:8f:97:67:be:4b:8e:8d:64:07:57:38: +# 55:69:34:36:3d:13:48:ef:4f:e2:d3:66:1e:a4:cf: +# 1a:b7:5e:36:33:d4:b4:06:bd:18:01:fd:77:84:50: +# 00:45:f5:8c:5d:e8:23:bc:7e:fe:35:e1:ed:50:7b: +# a9:30:8d:19:d3:09:8e:68:67:5d:bf:3c:97:18:53: +# bb:29:62:c5:ca:5e:72:c1:c7:96:d4:db:2d:a0:b4: +# 1f:69:03:ec:ea:e2:50:f1:0c:3c:f0:ac:f3:53:2d: +# f0:1c:f5:ed:6c:39:39:73:80:16:c8:52:b0:23:cd: +# e0:3e:dc:dd:3c:47:a0:bb:35:8a:e2:98:68:8b:be: +# e5:bf:72:ee:d2:fa:a5:ed:12:ed:fc:98:18:a9:26: +# 76:dc:28:4b:10:20:1c:d3:7f:16:77:2d:ed:6f:80: +# f7:49:bb:53:05:bb:5d:68:c7:d4:c8:75:16:3f:89: +# 5a:8b:f7:17:47:d4:4c:f1:d2:89:79:3e:4d:3d:98: +# a8:61:de:3a:1e:d2:f8:5e:03:e0:c1:c9:1c:8c:d3: +# 8d:4d:d3:95:36:b3:37:5f:63:63:9b:33:14:f0:2d: +# 26:6b:53:7c:89:8c:32:c2:6e:ec:3d:21:00:39:c9: +# a1:68:e2:50:83:2e:b0:3a:2b:f3:36:a0:ac:2f:e4: +# 6f:61:c2:51:09:39:3e:8b:53:b9:bb:67:da:dc:53: +# b9:76:59:36:9d:43:e5:20:e0:3d:32:60:85:22:51: +# b7:c7:33:bb:dd:15:2f:a4:78:a6:07:7b:81:46:36: +# 04:86:dd:79:35:c7:95:2c:3b:b0:a3:17:35:e5:73: +# 1f:b4:5c:59:ef:da:ea:10:65:7b:7a:d0:7f:9f:b3: +# b4:2a:37:3b:70:8b:9b:5b:b9:2b:b7:ec:b2:51:12: +# 97:53:29:5a:d4:f0:12:10:dc:4f:02:bb:12:92:2f: +# 62:d4:3f:69:43:7c:0d:d6:fc:58:75:01:88:9d:58: +# 16:4b:de:ba:90:ff:47:01:89:06:6a:f6:5f:b2:90: +# 6a:b3:02:a6:02:88:bf:b3:47:7e:2a:d9:d5:fa:68: +# 78:35:4d +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# F0:8F:59:38:00:B3:F5:8F:9A:96:0C:D5:EB:FA:7B:AA:17:E8:13:12 +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# be:e4:5c:62:4e:24:f4:0c:08:ff:f0:d3:0c:68:e4:93:49:22: +# 3f:44:27:6f:bb:6d:de:83:66:ce:a8:cc:0d:fc:f5:9a:06:e5: +# 77:14:91:eb:9d:41:7b:99:2a:84:e5:ff:fc:21:c1:5d:f0:e4: +# 1f:57:b7:75:a9:a1:5f:02:26:ff:d7:c7:f7:4e:de:4f:f8:f7: +# 1c:46:c0:7a:4f:40:2c:22:35:f0:19:b1:d0:6b:67:2c:b0:a8: +# e0:c0:40:37:35:f6:84:5c:5c:e3:af:42:78:fe:a7:c9:0d:50: +# ea:0d:84:76:f6:51:ef:83:53:c6:7a:ff:0e:56:49:2e:8f:7a: +# d6:0c:e6:27:54:e3:4d:0a:60:72:62:cd:91:07:d6:a5:bf:c8: +# 99:6b:ed:c4:19:e6:ab:4c:11:38:c5:6f:31:e2:6e:49:c8:3f: +# 76:80:26:03:26:29:e0:36:f6:f6:20:53:e3:17:70:34:17:9d: +# 63:68:1e:6b:ec:c3:4d:86:b8:13:30:2f:5d:46:0d:47:43:d5: +# 1b:aa:59:0e:b9:5c:8d:06:48:ad:74:87:5f:c7:fc:31:54:41: +# 13:e2:c7:21:0e:9e:e0:1e:0d:e1:c0:7b:43:85:90:c5:8a:58: +# c6:65:0a:78:57:f2:c6:23:0f:01:d9:20:4b:de:0f:fb:92:85: +# 75:2a:5c:73:8d:6d:7b:25:91:ca:ee:45:ae:06:4b:00:cc:d3: +# b1:59:50:da:3a:88:3b:29:43:46:5e:97:2b:54:ce:53:6f:8d: +# 4a:e7:96:fa:bf:71:0e:42:8b:7c:fd:28:a0:d0:48:ca:da:c4: +# 81:4c:bb:a2:73:93:26:c8:eb:0c:d6:26:88:b6:c0:24:cf:bb: +# bd:5b:eb:75:7d:e9:08:8e:86:33:2c:79:77:09:69:a5:89:fc: +# b3:70:90:87:76:8f:d3:22:bb:42:ce:bd:73:0b:20:26:2a:d0: +# 9b:3d:70:1e:24:6c:cd:87:76:a9:17:96:b7:cf:0d:92:fb:8e: +# 18:a9:98:49:d1:9e:fe:60:44:72:21:b9:19:ed:c2:f5:31:f1: +# 39:48:88:90:24:75:54:16:ad:ce:f4:f8:69:14:64:39:fb:a3: +# b8:ba:70:40:c7:27:1c:bf:c4:56:53:fa:63:65:d0:f3:1c:0e: +# 16:f5:6b:86:58:4d:18:d4:e4:0d:8e:a5:9d:5b:91:dc:76:24: +# 50:3f:c6:2a:fb:d9:b7:9c:b5:d6:e6:d0:d9:e8:19:8b:15:71: +# 48:ad:b7:ea:d8:59:88:d4:90:bf:16:b3:d9:e9:ac:59:61:54: +# c8:1c:ba:ca:c1:ca:e1:b9:20:4c:8f:3a:93:89:a5:a0:cc:bf: +# d3:f6:75:a4:75:96:6d:56 + +[p11-kit-object-v1] +label: "TrustAsia Global Root CA G3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwDGCYZLklBsKKmXQvgap +hztREupwQa7i+3TqCo25s0zcj7cTUk9UGOEsc5WRxWY7as+sY22HU/D38Tm3oENj +sMQDXVep50TOxKGDZfZQPrF+Frg6igLQlh8AzQUh7wZt3SGcGUNFocXogMrCrUBi +FwbGqrzz1ub8UH5mQh88i6Z5eYZANZ8g7z/ri0cfj47F1I62LMlEBOPUQ3U/1T+v +HMx+Rl+s32QQiu9G8JDwDy30iAuxKaqvhapJWKi/Y6A4keaz5ndoxPkqGYS7DuH1 +r4nspS9QIHQeEkFzHiTZys4soVk1wMgdRidhWo/5TdNyeWYenxWQIS397YtWcANK +ST5/aTESacceXMp6E4vo5vVgD8yTLIR/8fxq/JtHndutiD3zdnUz10ukyIv59UNY +T8vIA1SPpYV4BBrzc/LXhx1Bn+fYF84anA9K/NxEaFRo4kE8/iyEhjc8zT8votvn +91QDX1nT95F4x4t3ahblSYWQRXJwL5Fd+D5lQAsZmckmIFpowTW/T6dR8dgRK1vg +mp4oOwo6Ch/BgeUu8Ka5aaWIlOZrE3/RZD89nHBG5aKFe1iEJ9zEgD5nmprHmjEO +MOzmF0CV2UXtAZaqvwzzS9Fj9xNYwLjz+mfdm31tSv8yTLUlO/8cZw+FIlkFkZFB +d4HQhUyHEHH/nkMbrpV1LYECAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TrustAsia Global Root CA G3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFpTCCA42gAwIBAgIUZPYOZXdhaqs7tOqFhLuxibhxkw8wDQYJKoZIhvcNAQEM +BQAwWjELMAkGA1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dp +ZXMsIEluYy4xJDAiBgNVBAMMG1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHMzAe +Fw0yMTA1MjAwMjEwMTlaFw00NjA1MTkwMjEwMTlaMFoxCzAJBgNVBAYTAkNOMSUw +IwYDVQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQwIgYDVQQDDBtU +cnVzdEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDAMYJhkuSUGwoqZdC+BqmHO1ES6nBBruL7dOoKjbmzTNyPtxNS +T1QY4SxzlZHFZjtqz6xjbYdT8PfxObegQ2OwxANdV6nnRM7EoYNl9lA+sX4WuDqK +AtCWHwDNBSHvBm3dIZwZQ0WhxeiAysKtQGIXBsaqvPPW5vxQfmZCHzyLpnl5hkA1 +nyDvP+uLRx+PjsXUjrYsyUQE49RDdT/VP68czH5GX6zfZBCK70bwkPAPLfSIC7Ep +qq+FqklYqL9joDiR5rPmd2jE+SoZhLsO4fWvieylL1AgdB4SQXMeJNnKziyhWTXA +yB1GJ2Faj/lN03J5Zh6fFZAhLf3ti1ZwA0pJPn9pMRJpxx5cynoTi+jm9WAPzJMs +hH/x/Gr8m0ed262IPfN2dTPXS6TIi/n1Q1hPy8gDVI+lhXgEGvNz8teHHUGf59gX +zhqcD0r83ERoVGjiQTz+LISGNzzNPy+i2+f3VANfWdP3kXjHi3dqFuVJhZBFcnAv +kV34PmVACxmZySYgWmjBNb9Pp1Hx2BErW+Canig7CjoKH8GB5S7wprlppYiU5msT +f9FkPz2ccEblooV7WIQn3MSAPmeamseaMQ4w7OYXQJXZRe0Blqq/DPNL0WP3E1jA +uPP6Z92bfW1K/zJMtSU7/xxnD4UiWQWRkUF3gdCFTIcQcf+eQxuulXUtgQIDAQAB +o2MwYTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFEDk5PIj7zjKsK5Xf/Ih +MBY027ySMB0GA1UdDgQWBBRA5OTyI+84yrCuV3/yITAWNNu8kjAOBgNVHQ8BAf8E +BAMCAQYwDQYJKoZIhvcNAQEMBQADggIBACY7UeFNOPMyGLS0XuFlXsSUT9SnYaP4 +wM8zAQLpw6o1D/GUE3d3NZ4tVlFEbuHGLige/9rsR82XRBf34EzC4Xx8MnpmyFq2 +XFNFV1pF1AWZLy4jVe5jaN/TG3inEpQGAHUNcoTpLrxaatXeL1nHo+zSh2bbt1S1 +JKv0Q3jbSwTEb93mPmY+KfJLaHEih6D4sTNjduMNhXJEIlU/HHzp/LgV6FL6qj6j +ITk1dImmasI5+njPtqzn59ZW/yOSLlALqbUHM/Q4X6RJpstlcHboCoWASzY9M/eV +VHUl2qzEc4Jl6VL1XP04lQJqaTDFHApXB64ipCz5xUG3uOyfT0gA+QEEVcys+TIx +xHWVBqB/0Y0n3bOppHKH/lmLmnp0Ft0WpWIp6zqW3IunaFnT63eROfjXy9mPX1on +AX1daBli2MjN9LdyR75bl87yraKZk62Uy5P2EgmVtqvXO9A/EcswFi55gORngS1d +7XB4tmBZrOFdRWOPyN9yaFvqHbgB8X7754qz41SgOAngPN5C8sLtLpvzHzW2Ntjj +gKGLzZlkD8Kqq7HK9W+eQ42EVJmzbsASZthwEPEGNTNDqJwuuhQxzhB/HIbjj9LV ++Hfsm6vxL2PZQl/gZ4FkkfGXL/xuJvYz+NO1+MRiqzFRJQJ6+N1rZdVtTTDIZbpo +FGWsJwt0ivKH +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 64:f6:0e:65:77:61:6a:ab:3b:b4:ea:85:84:bb:b1:89:b8:71:93:0f +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=CN, O=TrustAsia Technologies, Inc., CN=TrustAsia Global Root CA G3 +# Validity +# Not Before: May 20 02:10:19 2021 GMT +# Not After : May 19 02:10:19 2046 GMT +# Subject: C=CN, O=TrustAsia Technologies, Inc., CN=TrustAsia Global Root CA G3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c0:31:82:61:92:e4:94:1b:0a:2a:65:d0:be:06: +# a9:87:3b:51:12:ea:70:41:ae:e2:fb:74:ea:0a:8d: +# b9:b3:4c:dc:8f:b7:13:52:4f:54:18:e1:2c:73:95: +# 91:c5:66:3b:6a:cf:ac:63:6d:87:53:f0:f7:f1:39: +# b7:a0:43:63:b0:c4:03:5d:57:a9:e7:44:ce:c4:a1: +# 83:65:f6:50:3e:b1:7e:16:b8:3a:8a:02:d0:96:1f: +# 00:cd:05:21:ef:06:6d:dd:21:9c:19:43:45:a1:c5: +# e8:80:ca:c2:ad:40:62:17:06:c6:aa:bc:f3:d6:e6: +# fc:50:7e:66:42:1f:3c:8b:a6:79:79:86:40:35:9f: +# 20:ef:3f:eb:8b:47:1f:8f:8e:c5:d4:8e:b6:2c:c9: +# 44:04:e3:d4:43:75:3f:d5:3f:af:1c:cc:7e:46:5f: +# ac:df:64:10:8a:ef:46:f0:90:f0:0f:2d:f4:88:0b: +# b1:29:aa:af:85:aa:49:58:a8:bf:63:a0:38:91:e6: +# b3:e6:77:68:c4:f9:2a:19:84:bb:0e:e1:f5:af:89: +# ec:a5:2f:50:20:74:1e:12:41:73:1e:24:d9:ca:ce: +# 2c:a1:59:35:c0:c8:1d:46:27:61:5a:8f:f9:4d:d3: +# 72:79:66:1e:9f:15:90:21:2d:fd:ed:8b:56:70:03: +# 4a:49:3e:7f:69:31:12:69:c7:1e:5c:ca:7a:13:8b: +# e8:e6:f5:60:0f:cc:93:2c:84:7f:f1:fc:6a:fc:9b: +# 47:9d:db:ad:88:3d:f3:76:75:33:d7:4b:a4:c8:8b: +# f9:f5:43:58:4f:cb:c8:03:54:8f:a5:85:78:04:1a: +# f3:73:f2:d7:87:1d:41:9f:e7:d8:17:ce:1a:9c:0f: +# 4a:fc:dc:44:68:54:68:e2:41:3c:fe:2c:84:86:37: +# 3c:cd:3f:2f:a2:db:e7:f7:54:03:5f:59:d3:f7:91: +# 78:c7:8b:77:6a:16:e5:49:85:90:45:72:70:2f:91: +# 5d:f8:3e:65:40:0b:19:99:c9:26:20:5a:68:c1:35: +# bf:4f:a7:51:f1:d8:11:2b:5b:e0:9a:9e:28:3b:0a: +# 3a:0a:1f:c1:81:e5:2e:f0:a6:b9:69:a5:88:94:e6: +# 6b:13:7f:d1:64:3f:3d:9c:70:46:e5:a2:85:7b:58: +# 84:27:dc:c4:80:3e:67:9a:9a:c7:9a:31:0e:30:ec: +# e6:17:40:95:d9:45:ed:01:96:aa:bf:0c:f3:4b:d1: +# 63:f7:13:58:c0:b8:f3:fa:67:dd:9b:7d:6d:4a:ff: +# 32:4c:b5:25:3b:ff:1c:67:0f:85:22:59:05:91:91: +# 41:77:81:d0:85:4c:87:10:71:ff:9e:43:1b:ae:95: +# 75:2d:81 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 +# X509v3 Subject Key Identifier: +# 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 26:3b:51:e1:4d:38:f3:32:18:b4:b4:5e:e1:65:5e:c4:94:4f: +# d4:a7:61:a3:f8:c0:cf:33:01:02:e9:c3:aa:35:0f:f1:94:13: +# 77:77:35:9e:2d:56:51:44:6e:e1:c6:2e:28:1e:ff:da:ec:47: +# cd:97:44:17:f7:e0:4c:c2:e1:7c:7c:32:7a:66:c8:5a:b6:5c: +# 53:45:57:5a:45:d4:05:99:2f:2e:23:55:ee:63:68:df:d3:1b: +# 78:a7:12:94:06:00:75:0d:72:84:e9:2e:bc:5a:6a:d5:de:2f: +# 59:c7:a3:ec:d2:87:66:db:b7:54:b5:24:ab:f4:43:78:db:4b: +# 04:c4:6f:dd:e6:3e:66:3e:29:f2:4b:68:71:22:87:a0:f8:b1: +# 33:63:76:e3:0d:85:72:44:22:55:3f:1c:7c:e9:fc:b8:15:e8: +# 52:fa:aa:3e:a3:21:39:35:74:89:a6:6a:c2:39:fa:78:cf:b6: +# ac:e7:e7:d6:56:ff:23:92:2e:50:0b:a9:b5:07:33:f4:38:5f: +# a4:49:a6:cb:65:70:76:e8:0a:85:80:4b:36:3d:33:f7:95:54: +# 75:25:da:ac:c4:73:82:65:e9:52:f5:5c:fd:38:95:02:6a:69: +# 30:c5:1c:0a:57:07:ae:22:a4:2c:f9:c5:41:b7:b8:ec:9f:4f: +# 48:00:f9:01:04:55:cc:ac:f9:32:31:c4:75:95:06:a0:7f:d1: +# 8d:27:dd:b3:a9:a4:72:87:fe:59:8b:9a:7a:74:16:dd:16:a5: +# 62:29:eb:3a:96:dc:8b:a7:68:59:d3:eb:77:91:39:f8:d7:cb: +# d9:8f:5f:5a:27:01:7d:5d:68:19:62:d8:c8:cd:f4:b7:72:47: +# be:5b:97:ce:f2:ad:a2:99:93:ad:94:cb:93:f6:12:09:95:b6: +# ab:d7:3b:d0:3f:11:cb:30:16:2e:79:80:e4:67:81:2d:5d:ed: +# 70:78:b6:60:59:ac:e1:5d:45:63:8f:c8:df:72:68:5b:ea:1d: +# b8:01:f1:7e:fb:e7:8a:b3:e3:54:a0:38:09:e0:3c:de:42:f2: +# c2:ed:2e:9b:f3:1f:35:b6:36:d8:e3:80:a1:8b:cd:99:64:0f: +# c2:aa:ab:b1:ca:f5:6f:9e:43:8d:84:54:99:b3:6e:c0:12:66: +# d8:70:10:f1:06:35:33:43:a8:9c:2e:ba:14:31:ce:10:7f:1c: +# 86:e3:8f:d2:d5:f8:77:ec:9b:ab:f1:2f:63:d9:42:5f:e0:67: +# 81:64:91:f1:97:2f:fc:6e:26:f6:33:f8:d3:b5:f8:c4:62:ab: +# 31:51:25:02:7a:f8:dd:6b:65:d5:6d:4d:30:c8:65:ba:68:14: +# 65:ac:27:0b:74:8a:f2:87 + +[p11-kit-object-v1] +label: "TrustAsia Global Root CA G4" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8bPNOOQlQ+XeGQm7gXmiFV8VYwHewqvd +s6YbZ0uAg6+Zy6wX2yuWynxSVeIa4T1W8C8WCPoVvJu7R+Y/7qjhTIz10zb5OF2r +cJpHDeKBQQbrSfmwKd0z7FClf3kpuCCY +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TrustAsia Global Root CA G4" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICVTCCAdygAwIBAgIUTyNkuI6XY57GU4HBdk7LKnQV1tcwCgYIKoZIzj0EAwMw +WjELMAkGA1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dpZXMs +IEluYy4xJDAiBgNVBAMMG1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHNDAeFw0y +MTA1MjAwMjEwMjJaFw00NjA1MTkwMjEwMjJaMFoxCzAJBgNVBAYTAkNOMSUwIwYD +VQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQwIgYDVQQDDBtUcnVz +dEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATx +s8045CVD5d4ZCbuBeaIVXxVjAd7Cq92zphtnS4CDr5nLrBfbK5bKfFJV4hrhPVbw +LxYI+hW8m7tH5j/uqOFMjPXTNvk4XatwmkcN4oFBButJ+bAp3TPsUKV/eSm4IJij +YzBhMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUpbtKl86zK3+kMd6Xg1mD +pm9xy94wHQYDVR0OBBYEFKW7SpfOsyt/pDHel4NZg6ZvccveMA4GA1UdDwEB/wQE +AwIBBjAKBggqhkjOPQQDAwNnADBkAjBe8usGzEkxn0AAbbd+NvBNEU/zy4k6LHiR +UKNbwMp1JvK/kF0LgoxgKJ/GcJpo5PECMFxYDlZ2z1jD1xCMuo6u47xkdUfFVZDj +/bpV6wfEU6s3qe4hsiFbYI89MvHVI5TWWA== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 4f:23:64:b8:8e:97:63:9e:c6:53:81:c1:76:4e:cb:2a:74:15:d6:d7 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=CN, O=TrustAsia Technologies, Inc., CN=TrustAsia Global Root CA G4 +# Validity +# Not Before: May 20 02:10:22 2021 GMT +# Not After : May 19 02:10:22 2046 GMT +# Subject: C=CN, O=TrustAsia Technologies, Inc., CN=TrustAsia Global Root CA G4 +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:f1:b3:cd:38:e4:25:43:e5:de:19:09:bb:81:79: +# a2:15:5f:15:63:01:de:c2:ab:dd:b3:a6:1b:67:4b: +# 80:83:af:99:cb:ac:17:db:2b:96:ca:7c:52:55:e2: +# 1a:e1:3d:56:f0:2f:16:08:fa:15:bc:9b:bb:47:e6: +# 3f:ee:a8:e1:4c:8c:f5:d3:36:f9:38:5d:ab:70:9a: +# 47:0d:e2:81:41:06:eb:49:f9:b0:29:dd:33:ec:50: +# a5:7f:79:29:b8:20:98 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# A5:BB:4A:97:CE:B3:2B:7F:A4:31:DE:97:83:59:83:A6:6F:71:CB:DE +# X509v3 Subject Key Identifier: +# A5:BB:4A:97:CE:B3:2B:7F:A4:31:DE:97:83:59:83:A6:6F:71:CB:DE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:5e:f2:eb:06:cc:49:31:9f:40:00:6d:b7:7e:36: +# f0:4d:11:4f:f3:cb:89:3a:2c:78:91:50:a3:5b:c0:ca:75:26: +# f2:bf:90:5d:0b:82:8c:60:28:9f:c6:70:9a:68:e4:f1:02:30: +# 5c:58:0e:56:76:cf:58:c3:d7:10:8c:ba:8e:ae:e3:bc:64:75: +# 47:c5:55:90:e3:fd:ba:55:eb:07:c4:53:ab:37:a9:ee:21:b2: +# 21:5b:60:8f:3d:32:f1:d5:23:94:d6:58 + +[p11-kit-object-v1] +label: "Trustwave Global Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuV1RKEs8N5LRgs69Hb3N +3birzwo+4V3l3KoJuVcCPuZjYd/yD4JjrqP3rHPRfOezC68IAAlZf80pKoiThxcY +gO2IsrS2EB8t1l9VohNd0cbrBlaJiP6sMp39XMMFx27uhom6iAOdciGGkK6PA6Xc +n4goy6OSSQ/s0A/ibURPgGqy1OegClMBuo6XkXZuvPzVazbmQIjWey9fBegsbRHz +57K+kkRM0pek/tJygUMHnOkRPvWLGll9H2hY3QQALJbzQ7N+mBl02Zxz2Ri+Qcc0 +edn0YsJDubMnsCLL+T1SxzBHs8k+uGri5+iBcF5Ci08mpf46wiBuu/gWjs0MqbQb +bHYQ4Vh5Rj5UzoCoVwk3KRuZE48MyNYsHPsF6AiVPWVG3O7NaeJNj4coTjQLPs8U +2bvdtlCarXfUGdbaGojIThsnddiyCPGugzC5EQ7Nh/CEjRVyfKHvzPKIYbr0absM +jAt1VwS4TioULj0PHB4ypmI27mbiIrgFQGMQIvMzHXRyiiz1OSmg0+cbgIQtxT3j +TbH9Gm+6ZQc7WOxCRSb72NolcsT2ALEieb3jfFliSpwFbz3O5tZHY5nGJG9yEsis +f5C0C5Fw6LfmFhBxF87eBk9IQX01SqOJ8slLe0ERbWe3CJhM5REZrkKA3PuQBdT4 +UMq+5K3HwpTXFp3mF4+vNvsCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Trustwave Global Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF2jCCA8KgAwIBAgIMBfcOhtpJ80Y1LrqyMA0GCSqGSIb3DQEBCwUAMIGIMQsw +CQYDVQQGEwJVUzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28x +ITAfBgNVBAoMGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1 +c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMx +OTM0MTJaFw00MjA4MjMxOTM0MTJaMIGIMQswCQYDVQQGEwJVUzERMA8GA1UECAwI +SWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2ZSBI +b2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZp +Y2F0aW9uIEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB +ALldUShLPDeS0YLOvR29zd24q88KPuFd5dyqCblXAj7mY2Hf8g+CY66j96xz0Xzn +swuvCAAJWX/NKSqIk4cXGIDtiLK0thAfLdZfVaITXdHG6wZWiYj+rDKd/VzDBcdu +7oaJuogDnXIhhpCujwOl3J+IKMujkkkP7NAP4m1ET4BqstTnoApTAbqOl5F2brz8 +1Ws25kCI1nsvXwXoLG0R8+eyvpJETNKXpP7ScoFDB5zpET71ixpZfR9oWN0EACyW +80OzfpgZdNmcc9kYvkHHNHnZ9GLCQ7mzJ7Aiy/k9UscwR7PJPrhq4ufogXBeQotP +JqX+OsIgbrv4Fo7NDKm0G2x2EOFYeUY+VM6AqFcJNykbmROPDMjWLBz7BegIlT1l +RtzuzWniTY+HKE40Cz7PFNm73bZQmq131BnW2hqIyE4bJ3XYsgjxroMwuREOzYfw +hI0Vcnyh78zyiGG69Gm7DIwLdVcEuE4qFC49DxweMqZiNu5m4iK4BUBjECLzMx10 +coos9TkpoNPnG4CELcU9402x/RpvumUHO1jsQkUm+9jaJXLE9gCxInm943xZYkqc +BW89zubWR2OZxiRvchLIrH+QtAuRcOi35hYQcRfO3gZPSEF9NUqjifLJS3tBEW1n +twiYTOURGa5CgNz7kAXU+FDKvuStx8KU1xad5hePrzb7AgMBAAGjQjBAMA8GA1Ud +EwEB/wQFMAMBAf8wHQYDVR0OBBYEFJngGWcNYtt2s9o9uFvo/ULSMQ6HMA4GA1Ud +DwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAmHNw4rDT7TnsTGDZqRKGFx6W +0OhUKDtkLSGm+J1WE2pIPU/HPinbbViDVD2HfSMF1OQc3Og4ZYbFdada2zUFvXfe +uyk3QAUHw5RSn8pk3fEbK9xGChACMf1KaA0HZJDmHvUqoai7PF35owgLEQzxPy0Q +lG/+4jSHg9bP5Rs1bdID4bANqKCqRieCNqcVtgimQlRXtpla4gt5kNdXElE1GYhB +aCXUNxeEFfsBctyV3lImIJgm4nb1J2/6ADtKYdkNy1GTKv0WBpanI5ojSP5RvbbE +sLFUzt5sQa0WZ37b/TjNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPT +MaCm/zjdzyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qe +qu5AvzSxnI9O4fKSTx+O856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxh +VicGaeVyQYHTtgGJoC86cnn+OjC/QezHYj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8 +h6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu3R3y4G5OBVixwJAWKqQ9 +EEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP29FpHOTK +yeC2nOnOcXHebD8WpHk= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 05:f7:0e:86:da:49:f3:46:35:2e:ba:b2 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global Certification Authority +# Validity +# Not Before: Aug 23 19:34:12 2017 GMT +# Not After : Aug 23 19:34:12 2042 GMT +# Subject: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b9:5d:51:28:4b:3c:37:92:d1:82:ce:bd:1d:bd: +# cd:dd:b8:ab:cf:0a:3e:e1:5d:e5:dc:aa:09:b9:57: +# 02:3e:e6:63:61:df:f2:0f:82:63:ae:a3:f7:ac:73: +# d1:7c:e7:b3:0b:af:08:00:09:59:7f:cd:29:2a:88: +# 93:87:17:18:80:ed:88:b2:b4:b6:10:1f:2d:d6:5f: +# 55:a2:13:5d:d1:c6:eb:06:56:89:88:fe:ac:32:9d: +# fd:5c:c3:05:c7:6e:ee:86:89:ba:88:03:9d:72:21: +# 86:90:ae:8f:03:a5:dc:9f:88:28:cb:a3:92:49:0f: +# ec:d0:0f:e2:6d:44:4f:80:6a:b2:d4:e7:a0:0a:53: +# 01:ba:8e:97:91:76:6e:bc:fc:d5:6b:36:e6:40:88: +# d6:7b:2f:5f:05:e8:2c:6d:11:f3:e7:b2:be:92:44: +# 4c:d2:97:a4:fe:d2:72:81:43:07:9c:e9:11:3e:f5: +# 8b:1a:59:7d:1f:68:58:dd:04:00:2c:96:f3:43:b3: +# 7e:98:19:74:d9:9c:73:d9:18:be:41:c7:34:79:d9: +# f4:62:c2:43:b9:b3:27:b0:22:cb:f9:3d:52:c7:30: +# 47:b3:c9:3e:b8:6a:e2:e7:e8:81:70:5e:42:8b:4f: +# 26:a5:fe:3a:c2:20:6e:bb:f8:16:8e:cd:0c:a9:b4: +# 1b:6c:76:10:e1:58:79:46:3e:54:ce:80:a8:57:09: +# 37:29:1b:99:13:8f:0c:c8:d6:2c:1c:fb:05:e8:08: +# 95:3d:65:46:dc:ee:cd:69:e2:4d:8f:87:28:4e:34: +# 0b:3e:cf:14:d9:bb:dd:b6:50:9a:ad:77:d4:19:d6: +# da:1a:88:c8:4e:1b:27:75:d8:b2:08:f1:ae:83:30: +# b9:11:0e:cd:87:f0:84:8d:15:72:7c:a1:ef:cc:f2: +# 88:61:ba:f4:69:bb:0c:8c:0b:75:57:04:b8:4e:2a: +# 14:2e:3d:0f:1c:1e:32:a6:62:36:ee:66:e2:22:b8: +# 05:40:63:10:22:f3:33:1d:74:72:8a:2c:f5:39:29: +# a0:d3:e7:1b:80:84:2d:c5:3d:e3:4d:b1:fd:1a:6f: +# ba:65:07:3b:58:ec:42:45:26:fb:d8:da:25:72:c4: +# f6:00:b1:22:79:bd:e3:7c:59:62:4a:9c:05:6f:3d: +# ce:e6:d6:47:63:99:c6:24:6f:72:12:c8:ac:7f:90: +# b4:0b:91:70:e8:b7:e6:16:10:71:17:ce:de:06:4f: +# 48:41:7d:35:4a:a3:89:f2:c9:4b:7b:41:11:6d:67: +# b7:08:98:4c:e5:11:19:ae:42:80:dc:fb:90:05:d4: +# f8:50:ca:be:e4:ad:c7:c2:94:d7:16:9d:e6:17:8f: +# af:36:fb +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 99:E0:19:67:0D:62:DB:76:B3:DA:3D:B8:5B:E8:FD:42:D2:31:0E:87 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 98:73:70:e2:b0:d3:ed:39:ec:4c:60:d9:a9:12:86:17:1e:96: +# d0:e8:54:28:3b:64:2d:21:a6:f8:9d:56:13:6a:48:3d:4f:c7: +# 3e:29:db:6d:58:83:54:3d:87:7d:23:05:d4:e4:1c:dc:e8:38: +# 65:86:c5:75:a7:5a:db:35:05:bd:77:de:bb:29:37:40:05:07: +# c3:94:52:9f:ca:64:dd:f1:1b:2b:dc:46:0a:10:02:31:fd:4a: +# 68:0d:07:64:90:e6:1e:f5:2a:a1:a8:bb:3c:5d:f9:a3:08:0b: +# 11:0c:f1:3f:2d:10:94:6f:fe:e2:34:87:83:d6:cf:e5:1b:35: +# 6d:d2:03:e1:b0:0d:a8:a0:aa:46:27:82:36:a7:15:b6:08:a6: +# 42:54:57:b6:99:5a:e2:0b:79:90:d7:57:12:51:35:19:88:41: +# 68:25:d4:37:17:84:15:fb:01:72:dc:95:de:52:26:20:98:26: +# e2:76:f5:27:6f:fa:00:3b:4a:61:d9:0d:cb:51:93:2a:fd:16: +# 06:96:a7:23:9a:23:48:fe:51:bd:b6:c4:b0:b1:54:ce:de:6c: +# 41:ad:16:67:7e:db:fd:38:cd:b9:38:4e:b2:c1:60:cb:9d:17: +# df:58:9e:7a:62:b2:26:8f:74:95:9b:e4:5b:1d:d2:0f:dd:98: +# 1c:9b:59:b9:23:d3:31:a0:a6:ff:38:dd:cf:20:4f:e9:58:56: +# 3a:67:c3:d1:f6:99:99:9d:ba:36:b6:80:2f:88:47:4f:86:bf: +# 44:3a:80:e4:37:1c:a6:ba:ea:97:98:11:d0:84:62:47:64:1e: +# aa:ee:40:bf:34:b1:9c:8f:4e:e1:f2:92:4f:1f:8e:f3:9e:97: +# de:f3:a6:79:6a:89:71:4f:4b:27:17:48:fe:ec:f4:50:0f:4f: +# 49:7d:cc:45:e3:bd:7a:40:c5:41:dc:61:56:27:06:69:e5:72: +# 41:81:d3:b6:01:89:a0:2f:3a:72:79:fe:3a:30:bf:41:ec:c7: +# 62:3e:91:4b:c7:d9:31:76:42:f9:f7:3c:63:ec:26:8c:73:0c: +# 7d:1a:1d:ea:a8:7c:87:a8:c2:27:7c:e1:33:41:0f:cf:cf:fc: +# 00:a0:22:80:9e:4a:a7:6f:00:b0:41:45:b7:22:ca:68:48:c5: +# 42:a2:ae:dd:1d:f2:e0:6e:4e:05:58:b1:c0:90:16:2a:a4:3d: +# 10:40:be:8f:62:63:83:a9:9c:82:7d:2d:02:e9:83:30:7c:cb: +# 27:c9:fd:1e:66:00:b0:2e:d3:21:2f:8e:33:16:6c:98:ed:10: +# a8:07:d6:cc:93:cf:db:d1:69:1c:e4:ca:c9:e0:b6:9c:e9:ce: +# 71:71:de:6c:3f:16:a4:79 + +[p11-kit-object-v1] +label: "Trustwave Global ECC P256 Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfvts5iPjczIIymDmU5y6dI0YsHiQ +UoDdOMBKHdGozJOklwY4yg0VYsaOASplnarfNJEugcHkM5IxxP0JOqY/rQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Trustwave Global ECC P256 Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYD +VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf +BgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3 +YXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0x +NzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYDVQQGEwJVUzERMA8G +A1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0 +d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBF +Q0MgUDI1NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTBZMBMGByqGSM49AgEGCCqG +SM49AwEHA0IABH77bOYj43MyCMpg5lOcunSNGLB4kFKA3TjASh3RqMyTpJcGOMoN +FWLGjgEqZZ2q3zSRLoHB5DOSMcT9CTqmP62jQzBBMA8GA1UdEwEB/wQFMAMBAf8w +DwYDVR0PAQH/BAUDAwcGADAdBgNVHQ4EFgQUo0EGrJBt0UrrdaVKEJmzsaGLSvcw +CgYIKoZIzj0EAwIDRwAwRAIgB+ZU2g6gWrKuEZ+Hxbb/ad4lvvigtwjzRM4q3wgh +DDcCIC0mA6AFvWvR9lz4ZcyGbbOcNEhjhAnFjXca4syc4XR7 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 0d:6a:5f:08:3f:28:5c:3e:51:95:df:5d +# Signature Algorithm: ecdsa-with-SHA256 +# Issuer: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global ECC P256 Certification Authority +# Validity +# Not Before: Aug 23 19:35:10 2017 GMT +# Not After : Aug 23 19:35:10 2042 GMT +# Subject: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global ECC P256 Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (256 bit) +# pub: +# 04:7e:fb:6c:e6:23:e3:73:32:08:ca:60:e6:53:9c: +# ba:74:8d:18:b0:78:90:52:80:dd:38:c0:4a:1d:d1: +# a8:cc:93:a4:97:06:38:ca:0d:15:62:c6:8e:01:2a: +# 65:9d:aa:df:34:91:2e:81:c1:e4:33:92:31:c4:fd: +# 09:3a:a6:3f:ad +# ASN1 OID: prime256v1 +# NIST CURVE: P-256 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# A3:41:06:AC:90:6D:D1:4A:EB:75:A5:4A:10:99:B3:B1:A1:8B:4A:F7 +# Signature Algorithm: ecdsa-with-SHA256 +# Signature Value: +# 30:44:02:20:07:e6:54:da:0e:a0:5a:b2:ae:11:9f:87:c5:b6: +# ff:69:de:25:be:f8:a0:b7:08:f3:44:ce:2a:df:08:21:0c:37: +# 02:20:2d:26:03:a0:05:bd:6b:d1:f6:5c:f8:65:cc:86:6d:b3: +# 9c:34:48:63:84:09:c5:8d:77:1a:e2:cc:9c:e1:74:7b + +[p11-kit-object-v1] +label: "Trustwave Global ECC P384 Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEa9oNdTUIMUcFrkWZVfEREy5K+BAxI6N+ +g9N/KAg6Jho6z5eCH4C3JwmP0Y4wxAqbDqxYBKv3Nn2UI6SbCoqLq+v9OSVm8V7+ +jK6NQXmdCWDOKKnTim3z1kXU8piEOGWg +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "Trustwave Global ECC P384 Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICnTCCAiSgAwIBAgIMCL2Fl2yZJ6SAaEc7MAoGCCqGSM49BAMDMIGRMQswCQYD +VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf +BgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3 +YXZlIEdsb2JhbCBFQ0MgUDM4NCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0x +NzA4MjMxOTM2NDNaFw00MjA4MjMxOTM2NDNaMIGRMQswCQYDVQQGEwJVUzERMA8G +A1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0 +d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBF +Q0MgUDM4NCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTB2MBAGByqGSM49AgEGBSuB +BAAiA2IABGvaDXU1CDFHBa5FmVXxERMuSvgQMSOjfoPTfygIOiYaOs+Xgh+AtycJ +j9GOMMQKmw6sWASr9zZ9lCOkmwqKi6vr/TklZvFe/oyujUF5nQlgziip04pt89ZF +1PKYhDhloKNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNVHQ8BAf8EBQMDBwYAMB0G +A1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNnADBkAjA3 +AZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsC +MGclCrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVu +Sw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 08:bd:85:97:6c:99:27:a4:80:68:47:3b +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global ECC P384 Certification Authority +# Validity +# Not Before: Aug 23 19:36:43 2017 GMT +# Not After : Aug 23 19:36:43 2042 GMT +# Subject: C=US, ST=Illinois, L=Chicago, O=Trustwave Holdings, Inc., CN=Trustwave Global ECC P384 Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:6b:da:0d:75:35:08:31:47:05:ae:45:99:55:f1: +# 11:13:2e:4a:f8:10:31:23:a3:7e:83:d3:7f:28:08: +# 3a:26:1a:3a:cf:97:82:1f:80:b7:27:09:8f:d1:8e: +# 30:c4:0a:9b:0e:ac:58:04:ab:f7:36:7d:94:23:a4: +# 9b:0a:8a:8b:ab:eb:fd:39:25:66:f1:5e:fe:8c:ae: +# 8d:41:79:9d:09:60:ce:28:a9:d3:8a:6d:f3:d6:45: +# d4:f2:98:84:38:65:a0 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# 55:A9:84:89:D2:C1:32:BD:18:CB:6C:A6:07:4E:C8:E7:9D:BE:82:90 +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:64:02:30:37:01:92:97:45:12:7e:a0:f3:3e:ad:19:3a:72: +# dd:f4:50:93:03:12:be:44:d2:4f:41:a4:8c:9c:9d:1f:a3:f6: +# c2:92:e7:48:14:fe:4e:9b:a5:91:57:ae:c6:37:72:bb:02:30: +# 67:25:0a:b1:0c:5e:ee:a9:63:92:6f:e5:90:0b:fe:66:22:ca: +# 47:fd:8a:31:f7:83:fe:7a:bf:10:be:18:2b:1e:8f:f6:29:1e: +# 94:59:ef:8e:21:37:cb:51:98:a5:6e:4b + +[p11-kit-object-v1] +label: "T-TeleSec GlobalRoot Class 2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAql/aG1/oc5Hl2lz0ouZH +5fNoVWAFHQKks5tZ8x6KrzSt/A3C2UgZ7mmPySD8IaoHGe2wXKxlx1/tAnx7fC0b +1rq5gMIYghaE+mawCMZUI4HkzblJP/ZPbjdIKDgPxb7naHD9OZdN0seYkVCqxESz +I305R+lSYtYSk163MZZCBft2px6j9cL86XrFbKlxT+rLeLxgr8fe9NnLvn4zpW6U +g/A0+iGr6o5yoD+k3jBb74ZNapVbQ0SoEBUc5QFXxZjx5gYokaogxbdTJlFDsgsR +lVjhwA922cCNfIHzcnCeb/4ajtlfNcaybzR8vkhP4lo519ideJ6fhj4DXhmLRKLV +xwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "T-TeleSec GlobalRoot Class 2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx +KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd +BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl +YyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgxMDAxMTA0MDE0WhcNMzMxMDAxMjM1 +OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy +aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50 +ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0G +CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUd +AqSzm1nzHoqvNK38DcLZSBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiC +FoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/FvudocP05l03Sx5iRUKrERLMjfTlH6VJi +1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx9702cu+fjOlbpSD8DT6Iavq +jnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGVWOHAD3bZ +wI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGj +QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/ +WSA2AHmgoCJrjNXyYdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhy +NsZt+U2e+iKo4YFWz827n+qrkRk4r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPAC +uvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNfvNoBYimipidx5joifsFvHZVw +IEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR3p1m0IvVVGb6 +g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN +9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlP +BSeOE6Fuwg== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1 (0x1) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=DE, O=T-Systems Enterprise Services GmbH, OU=T-Systems Trust Center, CN=T-TeleSec GlobalRoot Class 2 +# Validity +# Not Before: Oct 1 10:40:14 2008 GMT +# Not After : Oct 1 23:59:59 2033 GMT +# Subject: C=DE, O=T-Systems Enterprise Services GmbH, OU=T-Systems Trust Center, CN=T-TeleSec GlobalRoot Class 2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:aa:5f:da:1b:5f:e8:73:91:e5:da:5c:f4:a2:e6: +# 47:e5:f3:68:55:60:05:1d:02:a4:b3:9b:59:f3:1e: +# 8a:af:34:ad:fc:0d:c2:d9:48:19:ee:69:8f:c9:20: +# fc:21:aa:07:19:ed:b0:5c:ac:65:c7:5f:ed:02:7c: +# 7b:7c:2d:1b:d6:ba:b9:80:c2:18:82:16:84:fa:66: +# b0:08:c6:54:23:81:e4:cd:b9:49:3f:f6:4f:6e:37: +# 48:28:38:0f:c5:be:e7:68:70:fd:39:97:4d:d2:c7: +# 98:91:50:aa:c4:44:b3:23:7d:39:47:e9:52:62:d6: +# 12:93:5e:b7:31:96:42:05:fb:76:a7:1e:a3:f5:c2: +# fc:e9:7a:c5:6c:a9:71:4f:ea:cb:78:bc:60:af:c7: +# de:f4:d9:cb:be:7e:33:a5:6e:94:83:f0:34:fa:21: +# ab:ea:8e:72:a0:3f:a4:de:30:5b:ef:86:4d:6a:95: +# 5b:43:44:a8:10:15:1c:e5:01:57:c5:98:f1:e6:06: +# 28:91:aa:20:c5:b7:53:26:51:43:b2:0b:11:95:58: +# e1:c0:0f:76:d9:c0:8d:7c:81:f3:72:70:9e:6f:fe: +# 1a:8e:d9:5f:35:c6:b2:6f:34:7c:be:48:4f:e2:5a: +# 39:d7:d8:9d:78:9e:9f:86:3e:03:5e:19:8b:44:a2: +# d5:c7 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# BF:59:20:36:00:79:A0:A0:22:6B:8C:D5:F2:61:D2:B8:2C:CB:82:4A +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 31:03:a2:61:0b:1f:74:e8:72:36:c6:6d:f9:4d:9e:fa:22:a8: +# e1:81:56:cf:cd:bb:9f:ea:ab:91:19:38:af:aa:7c:15:4d:f3: +# b6:a3:8d:a5:f4:8e:f6:44:a9:a7:e8:21:95:ad:3e:00:62:16: +# 88:f0:02:ba:fc:61:23:e6:33:9b:30:7a:6b:36:62:7b:ad:04: +# 23:84:58:65:e2:db:2b:8a:e7:25:53:37:62:53:5f:bc:da:01: +# 62:29:a2:a6:27:71:e6:3a:22:7e:c1:6f:1d:95:70:20:4a:07: +# 34:df:ea:ff:15:80:e5:ba:d7:7a:d8:5b:75:7c:05:7a:29:47: +# 7e:40:a8:31:13:77:cd:40:3b:b4:51:47:7a:2e:11:e3:47:11: +# de:9d:66:d0:8b:d5:54:66:fa:83:55:ea:7c:c2:29:89:1b:e9: +# 6f:b3:ce:e2:05:84:c9:2f:3e:78:85:62:6e:c9:5f:c1:78:63: +# 74:58:c0:48:18:0c:99:39:eb:a4:cc:1a:b5:79:5a:8d:15:9c: +# d8:14:0d:f6:7a:07:57:c7:22:83:05:2d:3c:9b:25:26:3d:18: +# b3:a9:43:7c:c8:c8:ab:64:8f:0e:a3:bf:9c:1b:9d:30:db:da: +# d0:19:2e:aa:3c:f1:fb:33:80:76:e4:cd:ad:19:4f:05:27:8e: +# 13:a1:6e:c2 + +[p11-kit-object-v1] +label: "T-TeleSec GlobalRoot Class 3" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvXWT8GIibySu4Hp2rH29 +2STVuLf8zfBC4Ot4iFZem5pUHU0MivbTz3D0UrXYkwTjRoZxQUor8CosVQPWSMPg +OTjt8lw8P0S8kz1hq07NDb7wICdYDkR/BBqHpdeWFDaQ0El7oXX7GmtzsfjOqQks +8lPVwxREuIal9osrOdqjM1TZ+nIa9yIVHIiRa39m5cNqgLAk89+GRYj9GX91hx8f +sRsKcyRbuWXgLFTIYNNmFz/hzFQzc5ECOqZ/e3Y5oh+WtjiutciTdB2eubTlYJ0v +VtHg615bTBJwDGxEIKsR2PQZ9tKcUjfn+rbCMTtK1BSZrcca9V1f+ge4fA0f1oMe +swIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "T-TeleSec GlobalRoot Class 3" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx +KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd +BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl +YyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgxMDAxMTAyOTU2WhcNMzMxMDAxMjM1 +OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy +aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50 +ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0G +CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN +8ELg63iIVl6bmlQdTQyK9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/ +RLyTPWGrTs0NvvAgJ1gORH8EGoel15YUNpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4 +hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZFiP0Zf3WHHx+xGwpzJFu5 +ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W0eDrXltM +EnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGj +QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1 +A/d2O2GCahKqGFPrAyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOy +WL6ukK2YJ5f+AbGwUgC4TeQbIXQbfsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ +1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzTucpH9sry9uetuUg/vBa3wW30 +6gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7hP0HHRwA11fXT +91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml +e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4p +TpPDpFQUWw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1 (0x1) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=DE, O=T-Systems Enterprise Services GmbH, OU=T-Systems Trust Center, CN=T-TeleSec GlobalRoot Class 3 +# Validity +# Not Before: Oct 1 10:29:56 2008 GMT +# Not After : Oct 1 23:59:59 2033 GMT +# Subject: C=DE, O=T-Systems Enterprise Services GmbH, OU=T-Systems Trust Center, CN=T-TeleSec GlobalRoot Class 3 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:bd:75:93:f0:62:22:6f:24:ae:e0:7a:76:ac:7d: +# bd:d9:24:d5:b8:b7:fc:cd:f0:42:e0:eb:78:88:56: +# 5e:9b:9a:54:1d:4d:0c:8a:f6:d3:cf:70:f4:52:b5: +# d8:93:04:e3:46:86:71:41:4a:2b:f0:2a:2c:55:03: +# d6:48:c3:e0:39:38:ed:f2:5c:3c:3f:44:bc:93:3d: +# 61:ab:4e:cd:0d:be:f0:20:27:58:0e:44:7f:04:1a: +# 87:a5:d7:96:14:36:90:d0:49:7b:a1:75:fb:1a:6b: +# 73:b1:f8:ce:a9:09:2c:f2:53:d5:c3:14:44:b8:86: +# a5:f6:8b:2b:39:da:a3:33:54:d9:fa:72:1a:f7:22: +# 15:1c:88:91:6b:7f:66:e5:c3:6a:80:b0:24:f3:df: +# 86:45:88:fd:19:7f:75:87:1f:1f:b1:1b:0a:73:24: +# 5b:b9:65:e0:2c:54:c8:60:d3:66:17:3f:e1:cc:54: +# 33:73:91:02:3a:a6:7f:7b:76:39:a2:1f:96:b6:38: +# ae:b5:c8:93:74:1d:9e:b9:b4:e5:60:9d:2f:56:d1: +# e0:eb:5e:5b:4c:12:70:0c:6c:44:20:ab:11:d8:f4: +# 19:f6:d2:9c:52:37:e7:fa:b6:c2:31:3b:4a:d4:14: +# 99:ad:c7:1a:f5:5d:5f:fa:07:b8:7c:0d:1f:d6:83: +# 1e:b3 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Subject Key Identifier: +# B5:03:F7:76:3B:61:82:6A:12:AA:18:53:EB:03:21:94:BF:FE:CE:CA +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 56:3d:ef:94:d5:bd:da:73:b2:58:be:ae:90:ad:98:27:97:fe: +# 01:b1:b0:52:00:b8:4d:e4:1b:21:74:1b:7e:c0:ee:5e:69:2a: +# 25:af:5c:d6:1d:da:d2:79:c9:f3:97:29:e0:86:87:de:04:59: +# 0f:f1:59:d4:64:85:4b:99:af:25:04:1e:c9:46:a9:97:de:82: +# b2:1b:70:9f:9c:f6:af:71:31:dd:7b:05:a5:2c:d3:b9:ca:47: +# f6:ca:f2:f6:e7:ad:b9:48:3f:bc:16:b7:c1:6d:f4:ea:09:af: +# ec:f3:b5:e7:05:9e:a6:1e:8a:53:51:d6:93:81:cc:74:93:f6: +# b9:da:a6:25:05:74:79:5a:7e:40:3e:82:4b:26:11:30:6e:e1: +# 3f:41:c7:47:00:35:d5:f5:d3:f7:54:3e:81:3d:da:49:6a:9a: +# b3:ef:10:3d:e6:eb:6f:d1:c8:22:47:cb:cc:cf:01:31:92:d9: +# 18:e3:22:be:09:1e:1a:3e:5a:b2:e4:6b:0c:54:7a:7d:43:4e: +# b8:89:a5:7b:d7:a2:3d:96:86:cc:f2:26:34:2d:6a:92:9d:9a: +# 1a:d0:30:e2:5d:4e:04:b0:5f:8b:20:7e:77:c1:3d:95:82:d1: +# 46:9a:3b:3c:78:b8:6f:a1:d0:0d:64:a2:78:1e:29:4e:93:c3: +# a4:54:14:5b + +[p11-kit-object-v1] +label: "TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr3UwM6q7a9OZLBI3hNmN +e5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y86Ij5iySrLqP1N+RAjhgl +eYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INrN3wcwv61A+xX +zry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2XYacQuFWQfw4t +Jzh03+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/iSIzL+aFCr2l +qBs23tPcLG07xxO9WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4fAJNG4e7p+exP +FwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIx +GDAWBgNVBAcTD0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxp +bXNlbCB2ZSBUZWtub2xvamlrIEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0w +KwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24gTWVya2V6aSAtIEthbXUgU00xNjA0 +BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRpZmlrYXNpIC0gU3Vy +dW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYDVQQG +EwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2NhZWxpMUIwQAYDVQQKEzlUdXJraXll +IEJpbGltc2VsIHZlIFRla25vbG9qaWsgQXJhc3Rpcm1hIEt1cnVtdSAtIFRVQklU +QUsxLTArBgNVBAsTJEthbXUgU2VydGlmaWthc3lvbiBNZXJrZXppIC0gS2FtdSBT +TTE2MDQGA1UEAxMtVFVCSVRBSyBLYW11IFNNIFNTTCBLb2sgU2VydGlmaWthc2kg +LSBTdXJ1bSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr3UwM6q7 +a9OZLBI3hNmNe5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y86Ij5iySr +LqP1N+RAjhgleYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INr +N3wcwv61A+xXzry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2X +YacQuFWQfw4tJzh03+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/ +iSIzL+aFCr2lqBs23tPcLG07xxO9WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4f +AJNG4e7p+exPFwIDAQABo0IwQDAdBgNVHQ4EFgQUZT/HiobGPN08VFw1+DrtUgxH +V8gwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEL +BQADggEBACo/4fEyjq7hmFxLXs9rHmoJ0iKpEsdeV31zVmSAhHqT5Am5EM2fKifh +AHe+SMg1qIGf5LgsyX8OsNJLN13qudULXjS99HMpw+0mFZx+CFOKWI3QSyjfwbPf +IPP54+M638yclNhOT8NrF7f3cuitZjO1JVOr4PhMqZ398g26rrnZqsZr+ZO7rqu4 +lzwDGrpDxpa5RXI4s6ehlj2Re37AIVNMh+3yC1SVUZPVIqUNivGTDj5UDrDYyU7c +8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0jq5Rm+K37DwhuJi1/FwcJsoz7UMCf +lo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1 (0x1) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=TR, L=Gebze - Kocaeli, O=Turkiye Bilimsel ve Teknolojik Arastirma Kurumu - TUBITAK, OU=Kamu Sertifikasyon Merkezi - Kamu SM, CN=TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1 +# Validity +# Not Before: Nov 25 08:25:55 2013 GMT +# Not After : Oct 25 08:25:55 2043 GMT +# Subject: C=TR, L=Gebze - Kocaeli, O=Turkiye Bilimsel ve Teknolojik Arastirma Kurumu - TUBITAK, OU=Kamu Sertifikasyon Merkezi - Kamu SM, CN=TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:af:75:30:33:aa:bb:6b:d3:99:2c:12:37:84:d9: +# 8d:7b:97:80:d3:6e:e7:ff:9b:50:95:3e:90:95:56: +# 42:d7:19:7c:26:84:8d:92:fa:01:1d:3a:0f:e2:64: +# 38:b7:8c:bc:e8:88:f9:8b:24:ab:2e:a3:f5:37:e4: +# 40:8e:18:25:79:83:75:1f:3b:ff:6c:a8:c5:c6:56: +# f8:b4:ed:8a:44:a3:ab:6c:4c:fc:1d:d0:dc:ef:68: +# bd:cf:e4:aa:ce:f0:55:f7:a2:34:d4:83:6b:37:7c: +# 1c:c2:fe:b5:03:ec:57:ce:bc:b4:b5:c5:ed:00:0f: +# 53:37:2a:4d:f4:4f:0c:83:fb:86:cf:cb:fe:8c:4e: +# bd:87:f9:a7:8b:21:57:9c:7a:df:03:67:89:2c:9d: +# 97:61:a7:10:b8:55:90:7f:0e:2d:27:38:74:df:e7: +# fd:da:4e:12:e3:4d:15:22:02:c8:e0:e0:fc:0f:ad: +# 8a:d7:c9:54:50:cc:3b:0f:ca:16:80:84:d0:51:56: +# c3:8e:56:7f:89:22:33:2f:e6:85:0a:bd:a5:a8:1b: +# 36:de:d3:dc:2c:6d:3b:c7:13:bd:59:23:2c:e6:e5: +# a4:f7:d8:0b:ed:ea:90:40:44:a8:95:bb:93:d5:d0: +# 80:34:b6:46:78:0e:1f:00:93:46:e1:ee:e9:f9:ec: +# 4f:17 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 65:3F:C7:8A:86:C6:3C:DD:3C:54:5C:35:F8:3A:ED:52:0C:47:57:C8 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 2a:3f:e1:f1:32:8e:ae:e1:98:5c:4b:5e:cf:6b:1e:6a:09:d2: +# 22:a9:12:c7:5e:57:7d:73:56:64:80:84:7a:93:e4:09:b9:10: +# cd:9f:2a:27:e1:00:77:be:48:c8:35:a8:81:9f:e4:b8:2c:c9: +# 7f:0e:b0:d2:4b:37:5d:ea:b9:d5:0b:5e:34:bd:f4:73:29:c3: +# ed:26:15:9c:7e:08:53:8a:58:8d:d0:4b:28:df:c1:b3:df:20: +# f3:f9:e3:e3:3a:df:cc:9c:94:d8:4e:4f:c3:6b:17:b7:f7:72: +# e8:ad:66:33:b5:25:53:ab:e0:f8:4c:a9:9d:fd:f2:0d:ba:ae: +# b9:d9:aa:c6:6b:f9:93:bb:ae:ab:b8:97:3c:03:1a:ba:43:c6: +# 96:b9:45:72:38:b3:a7:a1:96:3d:91:7b:7e:c0:21:53:4c:87: +# ed:f2:0b:54:95:51:93:d5:22:a5:0d:8a:f1:93:0e:3e:54:0e: +# b0:d8:c9:4e:dc:f2:31:32:56:ea:64:f9:ea:b5:9d:16:66:42: +# 72:f3:7f:d3:b1:31:43:fc:a4:8e:17:f1:6d:23:ab:94:66:f8: +# ad:fb:0f:08:6e:26:2d:7f:17:07:09:b2:8c:fb:50:c0:9f:96: +# 8d:cf:b6:fd:00:9d:5a:14:9a:bf:02:44:f5:c1:c2:9f:22:5e: +# a2:0f:a1:e3 + +[p11-kit-object-v1] +label: "TunTrust Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAw83T/L0EU90MIDrViC4F +S0H1g4J+91mfnp5j6HPa9gapTx+0+QsfOYyaINB+BtTsNNmGvHVbh4jw0tnUowqy +bBvrSSw+rF3YlAOg7DTlMMQ1ffsmTRtuMFTY9YBFnDmtnMklBE2akD5OQG6Ka80p +Z8bMLeB06AVXCkhQ+npD2n7sW5oOYnb+6p0dhXLsEbs16B8nv8Ghx7tIFt1W18xO +oOG5rNvVgxkahdGUl9fKo2UL8zj5Aq7d9mfPyT/1iixHGplvBQ390B2CMfwpzABY +l5FMgAAcM4WWL8tBwosQhMMJJIkftQ/Z2XdHGJKUYFzHmQM8/veVp31QoYDCqYOt +WJZVIduGWdSvxrzdgW4H22Bi/uwQbtpoAfSDG6k+olsj12TG39yifdhLuoLSUfhm +vwZG5HkqJjZ5jx9OmR2yjwwOHP/JXcD9kBCmsTfzzTokbrSFkL+AuQyM1ZvWyPFW +PxqAiXqp4hsyUSw+8t979l16KRmO5ci9NnGLXUzCHT+tWKLPPXBNplCYJdwj+bhY +QQhxv0+4hKCPAFQV/JFtWKeWO+tLlifNa6KhhqwNfFTmZkxmX5C+IZoCRi3kg8KA +uc9LPuh/PAHsj17Nf9IoQgGViuKXPRAhffadHMU0oewsDgpSLBJVcCQ9y8IUNUNd +J06+wL2qfJbn/J5hrUTTAJcCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TunTrust Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIUEwLV4kBMkkaGFmddtLu7sms+/BMwDQYJKoZIhvcNAQEL +BQAwYTELMAkGA1UEBhMCVE4xNzA1BgNVBAoMLkFnZW5jZSBOYXRpb25hbGUgZGUg +Q2VydGlmaWNhdGlvbiBFbGVjdHJvbmlxdWUxGTAXBgNVBAMMEFR1blRydXN0IFJv +b3QgQ0EwHhcNMTkwNDI2MDg1NzU2WhcNNDQwNDI2MDg1NzU2WjBhMQswCQYDVQQG +EwJUTjE3MDUGA1UECgwuQWdlbmNlIE5hdGlvbmFsZSBkZSBDZXJ0aWZpY2F0aW9u +IEVsZWN0cm9uaXF1ZTEZMBcGA1UEAwwQVHVuVHJ1c3QgUm9vdCBDQTCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAMPN0/y9BFPdDCA61YguBUtB9YOCfvdZ +n56eY+hz2vYGqU8ftPkLHzmMmiDQfgbU7DTZhrx1W4eI8NLZ1KMKsmwb60ksPqxd +2JQDoOw05TDENX37Jk0bbjBU2PWARZw5rZzJJQRNmpA+TkBuimvNKWfGzC3gdOgF +VwpIUPp6Q9p+7FuaDmJ2/uqdHYVy7BG7NegfJ7/Boce7SBbdVtfMTqDhuazb1YMZ +GoXRlJfXyqNlC/M4+QKu3fZnz8k/9YosRxqZbwUN/dAdgjH8KcwAWJeRTIAAHDOF +li/LQcKLEITDCSSJH7UP2dl3RxiSlGBcx5kDPP73lad9UKGAwqmDrViWVSHbhlnU +r8a83YFuB9tgYv7sEG7aaAH0gxupPqJbI9dkxt/con3YS7qC0lH4Zr8GRuR5KiY2 +eY8fTpkdso8MDhz/yV3A/ZAQprE38806JG60hZC/gLkMjNWb1sjxVj8agIl6qeIb +MlEsPvLfe/ZdeikZjuXIvTZxi11Mwh0/rViizz1wTaZQmCXcI/m4WEEIcb9PuISg +jwBUFfyRbVinljvrS5YnzWuioYasDXxU5mZMZl+QviGaAkYt5IPCgLnPSz7ofzwB +7I9ezX/SKEIBlYrilz0QIX32nRzFNKHsLA4KUiwSVXAkPcvCFDVDXSdOvsC9qnyW +5/yeYa1E0wCXAgMBAAGjYzBhMB0GA1UdDgQWBBQGmpsfU33x9aTI04Y+oXNZtPdE +ITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFAaamx9TffH1pMjThj6hc1m0 +90QhMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAqgVutt0Vyb+z +xiD2BkewhpMl0425yAA/l/VSJ4hxyXT968pk21vvHl26v9Hr7lxpuhbI87mP0zYu +QEkHDVneixCwSQXi/5E/S7fdAo74gShczNxtr18UnH1YeA32gAm56Q6XKRm4t+v4 +FstVEuTGfbvE7Pi1HE4+Z7/FXxttbUcoqgRYYdZ2vyJ/0Adqp2RT8JeNnYA/u8EH +22Wv5psymsNUk8QcCMNE+3tjEUPRahphanltkE8pjkcFwRJpadbGNjHh/PqAulxP +xOu3Mqz4dWEX1xAZufHSCe96Qp1bWgvUxpVOKs7/B9dPfhgGiPEZtdmYu65xxBzn +dFlY7wyJz4sfdZMaBBSSSFCp61cpABbjNhzI+L/wM9VBD8TMPN3pM0MBkRArHtG5 +Xc0yGYuPjCB31yLEQtyEFpslbei0VXF/sHyz03FJuc9SpAQ/3D2gu68zngowYI7b +nV2UqL1g52KAdoGDDIzMMEZJ4gzSqK/rYXHv5yJiqfdcZGyfFoxnNidF9Ql7v/YQ +CvGwjVRDjAS6oz/v4jXH+XTgbzRB0L9zZVcg+ZtnemZoJE6AZb0QmQZZ8mWvuMZH +u/2QeItBcy6vVR/cO5JyboTT0GFMDcx2V+IthSIVNg3rAZ3r2OvEhJn7wAzMMujj +d9qDRIueVSjAi1jTkD5OGwDxFa2DK5o= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 13:02:d5:e2:40:4c:92:46:86:16:67:5d:b4:bb:bb:b2:6b:3e:fc:13 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=TN, O=Agence Nationale de Certification Electronique, CN=TunTrust Root CA +# Validity +# Not Before: Apr 26 08:57:56 2019 GMT +# Not After : Apr 26 08:57:56 2044 GMT +# Subject: C=TN, O=Agence Nationale de Certification Electronique, CN=TunTrust Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c3:cd:d3:fc:bd:04:53:dd:0c:20:3a:d5:88:2e: +# 05:4b:41:f5:83:82:7e:f7:59:9f:9e:9e:63:e8:73: +# da:f6:06:a9:4f:1f:b4:f9:0b:1f:39:8c:9a:20:d0: +# 7e:06:d4:ec:34:d9:86:bc:75:5b:87:88:f0:d2:d9: +# d4:a3:0a:b2:6c:1b:eb:49:2c:3e:ac:5d:d8:94:03: +# a0:ec:34:e5:30:c4:35:7d:fb:26:4d:1b:6e:30:54: +# d8:f5:80:45:9c:39:ad:9c:c9:25:04:4d:9a:90:3e: +# 4e:40:6e:8a:6b:cd:29:67:c6:cc:2d:e0:74:e8:05: +# 57:0a:48:50:fa:7a:43:da:7e:ec:5b:9a:0e:62:76: +# fe:ea:9d:1d:85:72:ec:11:bb:35:e8:1f:27:bf:c1: +# a1:c7:bb:48:16:dd:56:d7:cc:4e:a0:e1:b9:ac:db: +# d5:83:19:1a:85:d1:94:97:d7:ca:a3:65:0b:f3:38: +# f9:02:ae:dd:f6:67:cf:c9:3f:f5:8a:2c:47:1a:99: +# 6f:05:0d:fd:d0:1d:82:31:fc:29:cc:00:58:97:91: +# 4c:80:00:1c:33:85:96:2f:cb:41:c2:8b:10:84:c3: +# 09:24:89:1f:b5:0f:d9:d9:77:47:18:92:94:60:5c: +# c7:99:03:3c:fe:f7:95:a7:7d:50:a1:80:c2:a9:83: +# ad:58:96:55:21:db:86:59:d4:af:c6:bc:dd:81:6e: +# 07:db:60:62:fe:ec:10:6e:da:68:01:f4:83:1b:a9: +# 3e:a2:5b:23:d7:64:c6:df:dc:a2:7d:d8:4b:ba:82: +# d2:51:f8:66:bf:06:46:e4:79:2a:26:36:79:8f:1f: +# 4e:99:1d:b2:8f:0c:0e:1c:ff:c9:5d:c0:fd:90:10: +# a6:b1:37:f3:cd:3a:24:6e:b4:85:90:bf:80:b9:0c: +# 8c:d5:9b:d6:c8:f1:56:3f:1a:80:89:7a:a9:e2:1b: +# 32:51:2c:3e:f2:df:7b:f6:5d:7a:29:19:8e:e5:c8: +# bd:36:71:8b:5d:4c:c2:1d:3f:ad:58:a2:cf:3d:70: +# 4d:a6:50:98:25:dc:23:f9:b8:58:41:08:71:bf:4f: +# b8:84:a0:8f:00:54:15:fc:91:6d:58:a7:96:3b:eb: +# 4b:96:27:cd:6b:a2:a1:86:ac:0d:7c:54:e6:66:4c: +# 66:5f:90:be:21:9a:02:46:2d:e4:83:c2:80:b9:cf: +# 4b:3e:e8:7f:3c:01:ec:8f:5e:cd:7f:d2:28:42:01: +# 95:8a:e2:97:3d:10:21:7d:f6:9d:1c:c5:34:a1:ec: +# 2c:0e:0a:52:2c:12:55:70:24:3d:cb:c2:14:35:43: +# 5d:27:4e:be:c0:bd:aa:7c:96:e7:fc:9e:61:ad:44: +# d3:00:97 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 06:9A:9B:1F:53:7D:F1:F5:A4:C8:D3:86:3E:A1:73:59:B4:F7:44:21 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 06:9A:9B:1F:53:7D:F1:F5:A4:C8:D3:86:3E:A1:73:59:B4:F7:44:21 +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# aa:05:6e:b6:dd:15:c9:bf:b3:c6:20:f6:06:47:b0:86:93:25: +# d3:8d:b9:c8:00:3f:97:f5:52:27:88:71:c9:74:fd:eb:ca:64: +# db:5b:ef:1e:5d:ba:bf:d1:eb:ee:5c:69:ba:16:c8:f3:b9:8f: +# d3:36:2e:40:49:07:0d:59:de:8b:10:b0:49:05:e2:ff:91:3f: +# 4b:b7:dd:02:8e:f8:81:28:5c:cc:dc:6d:af:5f:14:9c:7d:58: +# 78:0d:f6:80:09:b9:e9:0e:97:29:19:b8:b7:eb:f8:16:cb:55: +# 12:e4:c6:7d:bb:c4:ec:f8:b5:1c:4e:3e:67:bf:c5:5f:1b:6d: +# 6d:47:28:aa:04:58:61:d6:76:bf:22:7f:d0:07:6a:a7:64:53: +# f0:97:8d:9d:80:3f:bb:c1:07:db:65:af:e6:9b:32:9a:c3:54: +# 93:c4:1c:08:c3:44:fb:7b:63:11:43:d1:6a:1a:61:6a:79:6d: +# 90:4f:29:8e:47:05:c1:12:69:69:d6:c6:36:31:e1:fc:fa:80: +# ba:5c:4f:c4:eb:b7:32:ac:f8:75:61:17:d7:10:19:b9:f1:d2: +# 09:ef:7a:42:9d:5b:5a:0b:d4:c6:95:4e:2a:ce:ff:07:d7:4f: +# 7e:18:06:88:f1:19:b5:d9:98:bb:ae:71:c4:1c:e7:74:59:58: +# ef:0c:89:cf:8b:1f:75:93:1a:04:14:92:48:50:a9:eb:57:29: +# 00:16:e3:36:1c:c8:f8:bf:f0:33:d5:41:0f:c4:cc:3c:dd:e9: +# 33:43:01:91:10:2b:1e:d1:b9:5d:cd:32:19:8b:8f:8c:20:77: +# d7:22:c4:42:dc:84:16:9b:25:6d:e8:b4:55:71:7f:b0:7c:b3: +# d3:71:49:b9:cf:52:a4:04:3f:dc:3d:a0:bb:af:33:9e:0a:30: +# 60:8e:db:9d:5d:94:a8:bd:60:e7:62:80:76:81:83:0c:8c:cc: +# 30:46:49:e2:0c:d2:a8:af:eb:61:71:ef:e7:22:62:a9:f7:5c: +# 64:6c:9f:16:8c:67:36:27:45:f5:09:7b:bf:f6:10:0a:f1:b0: +# 8d:54:43:8c:04:ba:a3:3f:ef:e2:35:c7:f9:74:e0:6f:34:41: +# d0:bf:73:65:57:20:f9:9b:67:7a:66:68:24:4e:80:65:bd:10: +# 99:06:59:f2:65:af:b8:c6:47:bb:fd:90:78:8b:41:73:2e:af: +# 55:1f:dc:3b:92:72:6e:84:d3:d0:61:4c:0d:cc:76:57:e2:2d: +# 85:22:15:36:0d:eb:01:9d:eb:d8:eb:c4:84:99:fb:c0:0c:cc: +# 32:e8:e3:77:da:83:44:8b:9e:55:28:c0:8b:58:d3:90:3e:4e: +# 1b:00:f1:15:ad:83:2b:9a + +[p11-kit-object-v1] +label: "TWCA CYBER Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxvjKHtkJIH4dbE7Oj+NH +M0Scx8lpqjpbeO5w0pL4BLNSUh1nciih34tdlQr+6s3t9ynO8G9/rM0977McRWr3 +KJDxYVfFDMSjUF3e1LXLGcqAuXXOKc7ShSLsAmPMRDAg2uqRW1bmHRzVnWbHP9+G +yktTxNmNsh3q+NwnU6NH4WHMfbWw+O5zkcXOc2/O7hAfGgbP6SdgxU8Z5OvOIiZF +12CZ3c5PN+B/52OtsLhZuNAGaDVg0zaucUME8WlleHzzH/PKKJ9aIJVmtM237o94 +pEUY6SYvjZspKLGktzptudQcOHJFWLFe6/Aom7eCyv3P1jMPn/uXnrEcnJ7qX17b +qt1U6TAhKG2OefN1kowm/tzF9sOw30RZQ6O2Ayj2CDCqDTPh75ypByLjWVtAj9qI +t2kIqLcjLkQJWTdbx+MX8iLrbjlSxd5Up5jJSyCV3EaJX7QS+YUpjuvIJxUgwEvU +zHwMbDQMJpsmMaY8p/bZ0EuiZP87mUFyweBwl/EkuyvEdCKxrGsiMiTTeCrAwKEv +8VIFyT/vdmbiRdgNPa2VyMeJJsgPrqcDLvvBX/og4XCtsGUgNzNgsNWv1wwcwpBw +10oYvH4BsLDrFR5EBs2kT+gM0cMgEOFUZZ62UdAadmtCWlh2NOq3NxmuLnX5luXB +WfeUVykljTpMq02aQdBfJgMCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TWCA CYBER Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFjTCCA3WgAwIBAgIQQAE0jMIAAAAAAAAAATzyxjANBgkqhkiG9w0BAQwFADBQ +MQswCQYDVQQGEwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb290 +IENBMRswGQYDVQQDExJUV0NBIENZQkVSIFJvb3QgQ0EwHhcNMjIxMTIyMDY1NDI5 +WhcNNDcxMTIyMTU1OTU5WjBQMQswCQYDVQQGEwJUVzESMBAGA1UEChMJVEFJV0FO +LUNBMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJUV0NBIENZQkVSIFJvb3Qg +Q0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDG+Moe2Qkgfh1sTs6P +40czRJzHyWmqOlt47nDSkvgEs1JSHWdyKKHfi12VCv7qze33Kc7wb3+szT3vsxxF +avcokPFhV8UMxKNQXd7UtcsZyoC5dc4pztKFIuwCY8xEMCDa6pFbVuYdHNWdZsc/ +34bKS1PE2Y2yHer43CdTo0fhYcx9tbD47nORxc5zb87uEB8aBs/pJ2DFTxnk684i +JkXXYJndzk834H/nY62wuFm40AZoNWDTNq5xQwTxaWV4fPMf88oon1oglWa0zbfu +j3ikRRjpJi+NmykosaS3Om251Bw4ckVYsV7r8Cibt4LK/c/WMw+f+5eesRycnupf +Xtuq3VTpMCEobY5583WSjCb+3MX2w7DfRFlDo7YDKPYIMKoNM+HvnKkHIuNZW0CP +2oi3aQiotyMuRAlZN1vH4xfyIutuOVLF3lSnmMlLIJXcRolftBL5hSmO68gnFSDA +S9TMfAxsNAwmmyYxpjyn9tnQS6Jk/zuZQXLB4HCX8SS7K8R0IrGsayIyJNN4KsDA +oS/xUgXJP+92ZuJF2A09rZXIx4kmyA+upwMu+8Ff+iDhcK2wZSA3M2Cw1a/XDBzC +kHDXShi8fgGwsOsVHkQGzaRP6AzRwyAQ4VRlnrZR0Bp2a0JaWHY06rc3Ga4udfmW +5cFZ95RXKSWNOkyrTZpB0F8mAwIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBSdhWEUfMFib5do5E83QOGt4A1WNzAd +BgNVHQ4EFgQUnYVhFHzBYm+XaORPN0DhreANVjcwDQYJKoZIhvcNAQEMBQADggIB +AGSPesRiDrWIzLjHhg6hShbNcAu3p4ULs3a2D6f/CIsLJc+o1IN1KriWiLb73y0t +tGlTITVX1olNc79pj3CjYcya2x6a4CD4bLubIp1dhDGaLIrdaqHXKGnK/nZVekZn +68xDiBaiA9a5F/gZbG0jAn/xX9AKKSM70aoK7akXJlQKTcKlTfjF/biBzysseKNn +TKkHmvPfXvt89YnNdJdhEGoHK4Fa0o635yDRIG4kqIQnoVesqlVYL9zZyvpoBJ7t +RCT5dEA7IzOrg1oYJkK2bVS1FmAwbLGg+LhBoF1JSdJlBTrq/p1hvIbZv97Tujqx +f36SNI7JAG7cmL3c7IAFrQI932XtCwP39xaEBDG6k5TY8hL4iuO/Qq+n1M0RFxbI +Qh0UqEL20kCGoE8jypZFVmAGzbdVAaYBlGX+bgUJurSkquLvWL69J1bY73NxW0Qz +8ppy6rBePm6pUlvscG21h483XjyMnM7k8M4MZ0HMzvaAq07MTFb1wWFZk7Q+ptq4 +NxKfKjLji7gh7MMrZQzvIt6IKTtM1/r+t+FHvpw+PoP7UV31aPcuIYXcv/Fa4nzX +xeSDwWrruoBa3lwtcHb4yOWHh8qgnaHlIhInD0Q9HWzq1MKLL295q39QpsQZp6F6 +t5b5wR9iWqJDB0BeJsas7a5wFsWqynKKTbDPAYsDP27X +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 40:01:34:8c:c2:00:00:00:00:00:00:00:01:3c:f2:c6 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA CYBER Root CA +# Validity +# Not Before: Nov 22 06:54:29 2022 GMT +# Not After : Nov 22 15:59:59 2047 GMT +# Subject: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA CYBER Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c6:f8:ca:1e:d9:09:20:7e:1d:6c:4e:ce:8f:e3: +# 47:33:44:9c:c7:c9:69:aa:3a:5b:78:ee:70:d2:92: +# f8:04:b3:52:52:1d:67:72:28:a1:df:8b:5d:95:0a: +# fe:ea:cd:ed:f7:29:ce:f0:6f:7f:ac:cd:3d:ef:b3: +# 1c:45:6a:f7:28:90:f1:61:57:c5:0c:c4:a3:50:5d: +# de:d4:b5:cb:19:ca:80:b9:75:ce:29:ce:d2:85:22: +# ec:02:63:cc:44:30:20:da:ea:91:5b:56:e6:1d:1c: +# d5:9d:66:c7:3f:df:86:ca:4b:53:c4:d9:8d:b2:1d: +# ea:f8:dc:27:53:a3:47:e1:61:cc:7d:b5:b0:f8:ee: +# 73:91:c5:ce:73:6f:ce:ee:10:1f:1a:06:cf:e9:27: +# 60:c5:4f:19:e4:eb:ce:22:26:45:d7:60:99:dd:ce: +# 4f:37:e0:7f:e7:63:ad:b0:b8:59:b8:d0:06:68:35: +# 60:d3:36:ae:71:43:04:f1:69:65:78:7c:f3:1f:f3: +# ca:28:9f:5a:20:95:66:b4:cd:b7:ee:8f:78:a4:45: +# 18:e9:26:2f:8d:9b:29:28:b1:a4:b7:3a:6d:b9:d4: +# 1c:38:72:45:58:b1:5e:eb:f0:28:9b:b7:82:ca:fd: +# cf:d6:33:0f:9f:fb:97:9e:b1:1c:9c:9e:ea:5f:5e: +# db:aa:dd:54:e9:30:21:28:6d:8e:79:f3:75:92:8c: +# 26:fe:dc:c5:f6:c3:b0:df:44:59:43:a3:b6:03:28: +# f6:08:30:aa:0d:33:e1:ef:9c:a9:07:22:e3:59:5b: +# 40:8f:da:88:b7:69:08:a8:b7:23:2e:44:09:59:37: +# 5b:c7:e3:17:f2:22:eb:6e:39:52:c5:de:54:a7:98: +# c9:4b:20:95:dc:46:89:5f:b4:12:f9:85:29:8e:eb: +# c8:27:15:20:c0:4b:d4:cc:7c:0c:6c:34:0c:26:9b: +# 26:31:a6:3c:a7:f6:d9:d0:4b:a2:64:ff:3b:99:41: +# 72:c1:e0:70:97:f1:24:bb:2b:c4:74:22:b1:ac:6b: +# 22:32:24:d3:78:2a:c0:c0:a1:2f:f1:52:05:c9:3f: +# ef:76:66:e2:45:d8:0d:3d:ad:95:c8:c7:89:26:c8: +# 0f:ae:a7:03:2e:fb:c1:5f:fa:20:e1:70:ad:b0:65: +# 20:37:33:60:b0:d5:af:d7:0c:1c:c2:90:70:d7:4a: +# 18:bc:7e:01:b0:b0:eb:15:1e:44:06:cd:a4:4f:e8: +# 0c:d1:c3:20:10:e1:54:65:9e:b6:51:d0:1a:76:6b: +# 42:5a:58:76:34:ea:b7:37:19:ae:2e:75:f9:96:e5: +# c1:59:f7:94:57:29:25:8d:3a:4c:ab:4d:9a:41:d0: +# 5f:26:03 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 9D:85:61:14:7C:C1:62:6F:97:68:E4:4F:37:40:E1:AD:E0:0D:56:37 +# X509v3 Subject Key Identifier: +# 9D:85:61:14:7C:C1:62:6F:97:68:E4:4F:37:40:E1:AD:E0:0D:56:37 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 64:8f:7a:c4:62:0e:b5:88:cc:b8:c7:86:0e:a1:4a:16:cd:70: +# 0b:b7:a7:85:0b:b3:76:b6:0f:a7:ff:08:8b:0b:25:cf:a8:d4: +# 83:75:2a:b8:96:88:b6:fb:df:2d:2d:b4:69:53:21:35:57:d6: +# 89:4d:73:bf:69:8f:70:a3:61:cc:9a:db:1e:9a:e0:20:f8:6c: +# bb:9b:22:9d:5d:84:31:9a:2c:8a:dd:6a:a1:d7:28:69:ca:fe: +# 76:55:7a:46:67:eb:cc:43:88:16:a2:03:d6:b9:17:f8:19:6c: +# 6d:23:02:7f:f1:5f:d0:0a:29:23:3b:d1:aa:0a:ed:a9:17:26: +# 54:0a:4d:c2:a5:4d:f8:c5:fd:b8:81:cf:2b:2c:78:a3:67:4c: +# a9:07:9a:f3:df:5e:fb:7c:f5:89:cd:74:97:61:10:6a:07:2b: +# 81:5a:d2:8e:b7:e7:20:d1:20:6e:24:a8:84:27:a1:57:ac:aa: +# 55:58:2f:dc:d9:ca:fa:68:04:9e:ed:44:24:f9:74:40:3b:23: +# 33:ab:83:5a:18:26:42:b6:6d:54:b5:16:60:30:6c:b1:a0:f8: +# b8:41:a0:5d:49:49:d2:65:05:3a:ea:fe:9d:61:bc:86:d9:bf: +# de:d3:ba:3a:b1:7f:7e:92:34:8e:c9:00:6e:dc:98:bd:dc:ec: +# 80:05:ad:02:3d:df:65:ed:0b:03:f7:f7:16:84:04:31:ba:93: +# 94:d8:f2:12:f8:8a:e3:bf:42:af:a7:d4:cd:11:17:16:c8:42: +# 1d:14:a8:42:f6:d2:40:86:a0:4f:23:ca:96:45:56:60:06:cd: +# b7:55:01:a6:01:94:65:fe:6e:05:09:ba:b4:a4:aa:e2:ef:58: +# be:bd:27:56:d8:ef:73:71:5b:44:33:f2:9a:72:ea:b0:5e:3e: +# 6e:a9:52:5b:ec:70:6d:b5:87:8f:37:5e:3c:8c:9c:ce:e4:f0: +# ce:0c:67:41:cc:ce:f6:80:ab:4e:cc:4c:56:f5:c1:61:59:93: +# b4:3e:a6:da:b8:37:12:9f:2a:32:e3:8b:b8:21:ec:c3:2b:65: +# 0c:ef:22:de:88:29:3b:4c:d7:fa:fe:b7:e1:47:be:9c:3e:3e: +# 83:fb:51:5d:f5:68:f7:2e:21:85:dc:bf:f1:5a:e2:7c:d7:c5: +# e4:83:c1:6a:eb:ba:80:5a:de:5c:2d:70:76:f8:c8:e5:87:87: +# ca:a0:9d:a1:e5:22:12:27:0f:44:3d:1d:6c:ea:d4:c2:8b:2f: +# 6f:79:ab:7f:50:a6:c4:19:a7:a1:7a:b7:96:f9:c1:1f:62:5a: +# a2:43:07:40:5e:26:c6:ac:ed:ae:70:16:c5:aa:ca:72:8a:4d: +# b0:cf:01:8b:03:3f:6e:d7 + +[p11-kit-object-v1] +label: "TWCA Global Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsAXbyOuMxG6KIe+OTZxx +Ch9ScO1tgpyXxddMTkVJy0BCtRI0bBnCdKQxX4UCl+xDMwpT0pyMjre4edsr1Wry +jmbE7isBB5LUs9AC31D2Va9mDsvgR2AvKzI5NVI6KIP4exbGGLhi1kclkc7wGRJN +rWP10z91XynwoTAcKqCYphW97v0ZNvDikUOP+srWECdJTO/dwfGFcJvK6qhaQ/xt +hm9z6TdFqfA2x8yIdR67bAb/m2s+F+xhqnF8xh2i90npFbU81qFh9RH3BW8d/RG+ +0DAHwimwCU4m3OOiqJFqH8KRRYhc5Zi4caUVGcl8dRHMcHRPLZsdkUT9Viig/ruG +asj6XAtY3MZLdsirItlzD6X0WgKJP0+eIoLuonRTKj1TJ2kdbI4yLGQAJmNhNk6j +Rrc/fbMtrG2QopWizs/agucHNBmW6bghqil+pji+jilKIWZ5H7PDtQln3tbUB0bz +KtrmIjdgy4G2D6AP6ciVf79VkQV6zz0VwG/eCZQBg9c0G8xApfC4m2fVmJE7p4R4 +lSakWgj4K3S0AAQ837gUjujfqY1sZ5IzHcC30uySyL4JvywpBW8Ca57vvL8qvFvA +UI9BcHGHsk23BKmEozKvru5rF4uysf5s4ZCMiKiXSM7ITcvzBs9fagpCsR4edy+O +oOaSDgb8BSLSJuExUX0y3A8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TWCA Global Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFQTCCAymgAwIBAgICDL4wDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCVFcx +EjAQBgNVBAoTCVRBSVdBTi1DQTEQMA4GA1UECxMHUm9vdCBDQTEcMBoGA1UEAxMT +VFdDQSBHbG9iYWwgUm9vdCBDQTAeFw0xMjA2MjcwNjI4MzNaFw0zMDEyMzExNTU5 +NTlaMFExCzAJBgNVBAYTAlRXMRIwEAYDVQQKEwlUQUlXQU4tQ0ExEDAOBgNVBAsT +B1Jvb3QgQ0ExHDAaBgNVBAMTE1RXQ0EgR2xvYmFsIFJvb3QgQ0EwggIiMA0GCSqG +SIb3DQEBAQUAA4ICDwAwggIKAoICAQCwBdvI64zEbooh745NnHEKH1Jw7W2CnJfF +10xORUnLQEK1EjRsGcJ0pDFfhQKX7EMzClPSnIyOt7h52yvVavKOZsTuKwEHktSz +0ALfUPZVr2YOy+BHYC8rMjk1Ujoog/h7FsYYuGLWRyWRzvAZEk2tY/XTP3VfKfCh +MBwqoJimFb3u/Rk28OKRQ4/6ytYQJ0lM793B8YVwm8rqqFpD/G2Gb3PpN0Wp8DbH +zIh1HrtsBv+baz4X7GGqcXzGHaL3SekVtTzWoWH1EfcFbx39Eb7QMAfCKbAJTibc +46KokWofwpFFiFzlmLhxpRUZyXx1EcxwdE8tmx2RRP1WKKD+u4ZqyPpcC1jcxkt2 +yKsi2XMPpfRaAok/T54igu6idFMqPVMnaR1sjjIsZAAmY2E2TqNGtz99sy2sbZCi +laLOz9qC5wc0GZbpuCGqKX6mOL6OKUohZnkfs8O1CWfe1tQHRvMq2uYiN2DLgbYP +oA/pyJV/v1WRBXrPPRXAb94JlAGD1zQbzECl8LibZ9WYkTunhHiVJqRaCPgrdLQA +BDzfuBSO6N+pjWxnkjMdwLfS7JLIvgm/LCkFbwJrnu+8vyq8W8BQj0FwcYeyTbcE +qYSjMq+u7msXi7Kx/mzhkIyIqJdIzshNy/MGz19qCkKxHh53L46g5pIOBvwFItIm +4TFRfTLcDwIDAQABoyMwITAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB +/zANBgkqhkiG9w0BAQsFAAOCAgEAXzSBdu+WHdXltdkCY4QWwa6gcFGn90xHNcgL +1yg9iXHZqjNB6hQbbCEAwGxCGX6faVsgQt+i0trEfJdLjbDorMjupWkEmQqSpqsn +LhpNgb+E1HAerUf+/UqdM+DyucRFCCEK2mlpc3INvjT+lIutwx4116KD7+U4x6WF +H6vPNOw/KP4M8VeGTslV9xzU2KV9Bnpv1d8Q34FOIWWxtuEXeZVFBs5fzNxGiWNo +RI2T9GRwoD2dKAXDOXC4Ynsg/eTb6QihuJ49CcdP+yz4k3ZB3lLg4VfSnQO8d57+ +nile98FRYB/e2guyLXW3Q0iT5/Z5xoRdgFlglPx4mI88k1HtQJAH32RjJMtOcQWh +15QaiDLxInQirqWm2BJpTGCjAu4r7NRjkgtevi92a6O2JryPA9gK8kxkRr05YuWW +6zRjESjMlfGt7+/cgFhI6Uu46mWs6fyAtbXIRfmswZ/ZuepiiI7E8UuDEq3mi4TW +nsLrgxifarsbJGAzcMzs9zLzXNl5fe+epP7JI8Mk7hWSsT2RTyaGvWZzJBPqpK5j +wa19hAM8EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWz +aGHQRiapIVJpLesux+t3zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmy +KwbQBM0= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 3262 (0xcbe) +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Global Root CA +# Validity +# Not Before: Jun 27 06:28:33 2012 GMT +# Not After : Dec 31 15:59:59 2030 GMT +# Subject: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Global Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:b0:05:db:c8:eb:8c:c4:6e:8a:21:ef:8e:4d:9c: +# 71:0a:1f:52:70:ed:6d:82:9c:97:c5:d7:4c:4e:45: +# 49:cb:40:42:b5:12:34:6c:19:c2:74:a4:31:5f:85: +# 02:97:ec:43:33:0a:53:d2:9c:8c:8e:b7:b8:79:db: +# 2b:d5:6a:f2:8e:66:c4:ee:2b:01:07:92:d4:b3:d0: +# 02:df:50:f6:55:af:66:0e:cb:e0:47:60:2f:2b:32: +# 39:35:52:3a:28:83:f8:7b:16:c6:18:b8:62:d6:47: +# 25:91:ce:f0:19:12:4d:ad:63:f5:d3:3f:75:5f:29: +# f0:a1:30:1c:2a:a0:98:a6:15:bd:ee:fd:19:36:f0: +# e2:91:43:8f:fa:ca:d6:10:27:49:4c:ef:dd:c1:f1: +# 85:70:9b:ca:ea:a8:5a:43:fc:6d:86:6f:73:e9:37: +# 45:a9:f0:36:c7:cc:88:75:1e:bb:6c:06:ff:9b:6b: +# 3e:17:ec:61:aa:71:7c:c6:1d:a2:f7:49:e9:15:b5: +# 3c:d6:a1:61:f5:11:f7:05:6f:1d:fd:11:be:d0:30: +# 07:c2:29:b0:09:4e:26:dc:e3:a2:a8:91:6a:1f:c2: +# 91:45:88:5c:e5:98:b8:71:a5:15:19:c9:7c:75:11: +# cc:70:74:4f:2d:9b:1d:91:44:fd:56:28:a0:fe:bb: +# 86:6a:c8:fa:5c:0b:58:dc:c6:4b:76:c8:ab:22:d9: +# 73:0f:a5:f4:5a:02:89:3f:4f:9e:22:82:ee:a2:74: +# 53:2a:3d:53:27:69:1d:6c:8e:32:2c:64:00:26:63: +# 61:36:4e:a3:46:b7:3f:7d:b3:2d:ac:6d:90:a2:95: +# a2:ce:cf:da:82:e7:07:34:19:96:e9:b8:21:aa:29: +# 7e:a6:38:be:8e:29:4a:21:66:79:1f:b3:c3:b5:09: +# 67:de:d6:d4:07:46:f3:2a:da:e6:22:37:60:cb:81: +# b6:0f:a0:0f:e9:c8:95:7f:bf:55:91:05:7a:cf:3d: +# 15:c0:6f:de:09:94:01:83:d7:34:1b:cc:40:a5:f0: +# b8:9b:67:d5:98:91:3b:a7:84:78:95:26:a4:5a:08: +# f8:2b:74:b4:00:04:3c:df:b8:14:8e:e8:df:a9:8d: +# 6c:67:92:33:1d:c0:b7:d2:ec:92:c8:be:09:bf:2c: +# 29:05:6f:02:6b:9e:ef:bc:bf:2a:bc:5b:c0:50:8f: +# 41:70:71:87:b2:4d:b7:04:a9:84:a3:32:af:ae:ee: +# 6b:17:8b:b2:b1:fe:6c:e1:90:8c:88:a8:97:48:ce: +# c8:4d:cb:f3:06:cf:5f:6a:0a:42:b1:1e:1e:77:2f: +# 8e:a0:e6:92:0e:06:fc:05:22:d2:26:e1:31:51:7d: +# 32:dc:0f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 5f:34:81:76:ef:96:1d:d5:e5:b5:d9:02:63:84:16:c1:ae:a0: +# 70:51:a7:f7:4c:47:35:c8:0b:d7:28:3d:89:71:d9:aa:33:41: +# ea:14:1b:6c:21:00:c0:6c:42:19:7e:9f:69:5b:20:42:df:a2: +# d2:da:c4:7c:97:4b:8d:b0:e8:ac:c8:ee:a5:69:04:99:0a:92: +# a6:ab:27:2e:1a:4d:81:bf:84:d4:70:1e:ad:47:fe:fd:4a:9d: +# 33:e0:f2:b9:c4:45:08:21:0a:da:69:69:73:72:0d:be:34:fe: +# 94:8b:ad:c3:1e:35:d7:a2:83:ef:e5:38:c7:a5:85:1f:ab:cf: +# 34:ec:3f:28:fe:0c:f1:57:86:4e:c9:55:f7:1c:d4:d8:a5:7d: +# 06:7a:6f:d5:df:10:df:81:4e:21:65:b1:b6:e1:17:79:95:45: +# 06:ce:5f:cc:dc:46:89:63:68:44:8d:93:f4:64:70:a0:3d:9d: +# 28:05:c3:39:70:b8:62:7b:20:fd:e4:db:e9:08:a1:b8:9e:3d: +# 09:c7:4f:fb:2c:f8:93:76:41:de:52:e0:e1:57:d2:9d:03:bc: +# 77:9e:fe:9e:29:5e:f7:c1:51:60:1f:de:da:0b:b2:2d:75:b7: +# 43:48:93:e7:f6:79:c6:84:5d:80:59:60:94:fc:78:98:8f:3c: +# 93:51:ed:40:90:07:df:64:63:24:cb:4e:71:05:a1:d7:94:1a: +# 88:32:f1:22:74:22:ae:a5:a6:d8:12:69:4c:60:a3:02:ee:2b: +# ec:d4:63:92:0b:5e:be:2f:76:6b:a3:b6:26:bc:8f:03:d8:0a: +# f2:4c:64:46:bd:39:62:e5:96:eb:34:63:11:28:cc:95:f1:ad: +# ef:ef:dc:80:58:48:e9:4b:b8:ea:65:ac:e9:fc:80:b5:b5:c8: +# 45:f9:ac:c1:9f:d9:b9:ea:62:88:8e:c4:f1:4b:83:12:ad:e6: +# 8b:84:d6:9e:c2:eb:83:18:9f:6a:bb:1b:24:60:33:70:cc:ec: +# f7:32:f3:5c:d9:79:7d:ef:9e:a4:fe:c9:23:c3:24:ee:15:92: +# b1:3d:91:4f:26:86:bd:66:73:24:13:ea:a4:ae:63:c1:ad:7d: +# 84:03:3c:10:78:86:1b:79:e3:c4:f3:f2:04:95:20:ae:23:82: +# c4:b3:3a:00:62:bf:e6:36:24:e1:57:ba:c7:1e:90:75:d5:5f: +# 3f:95:61:2b:c1:3b:cd:e5:b3:68:61:d0:46:26:a9:21:52:69: +# 2d:eb:2e:c7:eb:77:ce:a6:3a:b5:03:33:4f:76:d1:e7:5c:54: +# 01:5d:cb:78:f4:c9:0c:bf:cf:12:8e:17:2d:23:68:94:e7:ab: +# fe:a9:b2:2b:06:d0:04:cd + +[p11-kit-object-v1] +label: "TWCA Global Root CA G2" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%04" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqg7VIJIBrYL5DAiRNGuK +FtBGFv8DuNiN6pM0+/8rvf1uqtyb8oaBVfWJHMSNdWpYeJETHgITcD3vvgrnAI+4 +MeV0xTC+/33WmeXCQqPPIdazCH+R1WHmopUQDe9elwtJONUisNeLWW+fNZt/0pHM +en+7oJ/eVTP2S40K6n0JwHncvUTi/hznZCEozwRK4rS/hnkquw6TyY9erDA5UpAH +ueqcJkIUxGdG/tEaaKE+UBmjJgonKZDC9rTrc5p4HuGY9GUMNSEG+AveYuVNwbNd +2bn6YZcq4+rHRFUkkv4Spz/Ed+AtAoEH1ft95hCeOrSo7+z7UOo1z8x+u0K5RGxS +6b8qch8/3ptw6dxaxTu7v/BZha8vwbAUeQWsdZ8l9REnBmAhx21lvqiJnOWsRt/4 +XUQDjWC997ENzC/vQVQv7muVuU58NN87+Xedfc0HPRwGMxKA7HKc8i2C2tU7xMf5 +BMNkAnz1NWCntEYpLhvvpViALnqJUTg2PP2hd7iAMNCK3o2nNCbsI7sYVRg2Re7t +AQaqTb9kDMqYlxoxAmb4eGhbiN8JqOeb+jRtcBwhrQiL8qG2rHZqv/GAJQC+PB5N +rrk8tpVjvWt+RxKQVUURjewXH8G+J4GTV2NpACZ3i8NZ5XvRDUTyqPD3hZoF98Iu +cJqThdiVkDGQVKbsC583RQ8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TWCA Global Root CA G2" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFlTCCA32gAwIBAgIQQAE0jMIAAAAAAAAAAZdY9DANBgkqhkiG9w0BAQwFADBU +MQswCQYDVQQGEwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb290 +IENBMR8wHQYDVQQDExZUV0NBIEdsb2JhbCBSb290IENBIEcyMB4XDTIyMTEyMjA2 +NDIyMVoXDTQ3MTEyMjE1NTk1OVowVDELMAkGA1UEBhMCVFcxEjAQBgNVBAoTCVRB +SVdBTi1DQTEQMA4GA1UECxMHUm9vdCBDQTEfMB0GA1UEAxMWVFdDQSBHbG9iYWwg +Um9vdCBDQSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKoO1SCS +Aa2C+QwIkTRrihbQRhb/A7jYjeqTNPv/K739bqrcm/KGgVX1iRzEjXVqWHiREx4C +E3A9774K5wCPuDHldMUwvv991pnlwkKjzyHWswh/kdVh5qKVEA3vXpcLSTjVIrDX +i1lvnzWbf9KRzHp/u6Cf3lUz9kuNCup9CcB53L1E4v4c52QhKM8ESuK0v4Z5KrsO +k8mPXqwwOVKQB7nqnCZCFMRnRv7RGmihPlAZoyYKJymQwva063OaeB7hmPRlDDUh +BvgL3mLlTcGzXdm5+mGXKuPqx0RVJJL+Eqc/xHfgLQKBB9X7feYQnjq0qO/s+1Dq +Nc/MfrtCuURsUum/KnIfP96bcOncWsU7u7/wWYWvL8GwFHkFrHWfJfURJwZgIcdt +Zb6oiZzlrEbf+F1EA41gvfexDcwv70FUL+5rlblOfDTfO/l3nX3NBz0cBjMSgOxy +nPItgtrVO8TH+QTDZAJ89TVgp7RGKS4b76VYgC56iVE4Njz9oXe4gDDQit6NpzQm +7CO7GFUYNkXu7QEGqk2/ZAzKmJcaMQJm+HhoW4jfCajnm/o0bXAcIa0Ii/Khtqx2 +ar/xgCUAvjweTa65PLaVY71rfkcSkFVFEY3sFx/BvieBk1djaQAmd4vDWeV70Q1E +8qjw94WaBffCLnCak4XYlZAxkFSm7AufN0UPAgMBAAGjYzBhMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFJKM1DbRW0dTxHENhN1k +KvU2ZEDnMB0GA1UdDgQWBBSSjNQ20VtHU8RxDYTdZCr1NmRA5zANBgkqhkiG9w0B +AQwFAAOCAgEAJfxL2pC02nXnQTqB0ab+oGrzGHFiaiQIi6l6TclVzs8QKC4EGZYF +z10CICo7s1U/Ac1CzbJ37f9183x325alz4xnBvSkm3L2IUkJmKMyXndaYwnvYkOX +Aji16jwYUGj8WVvZedTx5FZIE1bY03ELXniUOBFF+gUX9Q51HmJSYUa6LhmthrSI +D7FQ5kAANBqVnZPgUfnUVUbplTwlhi6X1wExGETsHGDpfWmvMviXQCUkto0aVTzF +t/e8BlI7cTBwPnEXfvFmBF5dvIoxQ6aSHXtU0qU2i2+N1l7a1MMuHd85VWCCMJ4n +/46A3WNMplU12NAzqYBtPl6dzKhngGb6mVcMUsoZdbA4NVUqgcWMHlbXX5DyINja +4GZx6bJ4q2e5JG5rNnL8b439f3I5KGdSkQUfV2XSo6cNYfqh59U1RpXJBof2MOwy +UamsVsAhTqMUdAU6vOO/bT1OP16lpG0pv4RRdVOOhhr1UXAqDRxOQOH9o+OlK2eQ +ksdsroW/OpsXFcqcKpPUTTkNvCAIo42IbAkNjK5EIU3JcezYJtcXni0RGDyjIn24 +J1S/aMg7QsyPXk7n3MLF+mpED41WiHrfiYRsoLM+PfFlAAmI6irrQM6zXawyF67B +m+nQwfVJlN2nznxaB+uuIJwXMJJpk3Lzmltxm/5q33owaY6zLtsPLN0= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 40:01:34:8c:c2:00:00:00:00:00:00:00:01:97:58:f4 +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Global Root CA G2 +# Validity +# Not Before: Nov 22 06:42:21 2022 GMT +# Not After : Nov 22 15:59:59 2047 GMT +# Subject: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Global Root CA G2 +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:aa:0e:d5:20:92:01:ad:82:f9:0c:08:91:34:6b: +# 8a:16:d0:46:16:ff:03:b8:d8:8d:ea:93:34:fb:ff: +# 2b:bd:fd:6e:aa:dc:9b:f2:86:81:55:f5:89:1c:c4: +# 8d:75:6a:58:78:91:13:1e:02:13:70:3d:ef:be:0a: +# e7:00:8f:b8:31:e5:74:c5:30:be:ff:7d:d6:99:e5: +# c2:42:a3:cf:21:d6:b3:08:7f:91:d5:61:e6:a2:95: +# 10:0d:ef:5e:97:0b:49:38:d5:22:b0:d7:8b:59:6f: +# 9f:35:9b:7f:d2:91:cc:7a:7f:bb:a0:9f:de:55:33: +# f6:4b:8d:0a:ea:7d:09:c0:79:dc:bd:44:e2:fe:1c: +# e7:64:21:28:cf:04:4a:e2:b4:bf:86:79:2a:bb:0e: +# 93:c9:8f:5e:ac:30:39:52:90:07:b9:ea:9c:26:42: +# 14:c4:67:46:fe:d1:1a:68:a1:3e:50:19:a3:26:0a: +# 27:29:90:c2:f6:b4:eb:73:9a:78:1e:e1:98:f4:65: +# 0c:35:21:06:f8:0b:de:62:e5:4d:c1:b3:5d:d9:b9: +# fa:61:97:2a:e3:ea:c7:44:55:24:92:fe:12:a7:3f: +# c4:77:e0:2d:02:81:07:d5:fb:7d:e6:10:9e:3a:b4: +# a8:ef:ec:fb:50:ea:35:cf:cc:7e:bb:42:b9:44:6c: +# 52:e9:bf:2a:72:1f:3f:de:9b:70:e9:dc:5a:c5:3b: +# bb:bf:f0:59:85:af:2f:c1:b0:14:79:05:ac:75:9f: +# 25:f5:11:27:06:60:21:c7:6d:65:be:a8:89:9c:e5: +# ac:46:df:f8:5d:44:03:8d:60:bd:f7:b1:0d:cc:2f: +# ef:41:54:2f:ee:6b:95:b9:4e:7c:34:df:3b:f9:77: +# 9d:7d:cd:07:3d:1c:06:33:12:80:ec:72:9c:f2:2d: +# 82:da:d5:3b:c4:c7:f9:04:c3:64:02:7c:f5:35:60: +# a7:b4:46:29:2e:1b:ef:a5:58:80:2e:7a:89:51:38: +# 36:3c:fd:a1:77:b8:80:30:d0:8a:de:8d:a7:34:26: +# ec:23:bb:18:55:18:36:45:ee:ed:01:06:aa:4d:bf: +# 64:0c:ca:98:97:1a:31:02:66:f8:78:68:5b:88:df: +# 09:a8:e7:9b:fa:34:6d:70:1c:21:ad:08:8b:f2:a1: +# b6:ac:76:6a:bf:f1:80:25:00:be:3c:1e:4d:ae:b9: +# 3c:b6:95:63:bd:6b:7e:47:12:90:55:45:11:8d:ec: +# 17:1f:c1:be:27:81:93:57:63:69:00:26:77:8b:c3: +# 59:e5:7b:d1:0d:44:f2:a8:f0:f7:85:9a:05:f7:c2: +# 2e:70:9a:93:85:d8:95:90:31:90:54:a6:ec:0b:9f: +# 37:45:0f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Authority Key Identifier: +# 92:8C:D4:36:D1:5B:47:53:C4:71:0D:84:DD:64:2A:F5:36:64:40:E7 +# X509v3 Subject Key Identifier: +# 92:8C:D4:36:D1:5B:47:53:C4:71:0D:84:DD:64:2A:F5:36:64:40:E7 +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 25:fc:4b:da:90:b4:da:75:e7:41:3a:81:d1:a6:fe:a0:6a:f3: +# 18:71:62:6a:24:08:8b:a9:7a:4d:c9:55:ce:cf:10:28:2e:04: +# 19:96:05:cf:5d:02:20:2a:3b:b3:55:3f:01:cd:42:cd:b2:77: +# ed:ff:75:f3:7c:77:db:96:a5:cf:8c:67:06:f4:a4:9b:72:f6: +# 21:49:09:98:a3:32:5e:77:5a:63:09:ef:62:43:97:02:38:b5: +# ea:3c:18:50:68:fc:59:5b:d9:79:d4:f1:e4:56:48:13:56:d8: +# d3:71:0b:5e:78:94:38:11:45:fa:05:17:f5:0e:75:1e:62:52: +# 61:46:ba:2e:19:ad:86:b4:88:0f:b1:50:e6:40:00:34:1a:95: +# 9d:93:e0:51:f9:d4:55:46:e9:95:3c:25:86:2e:97:d7:01:31: +# 18:44:ec:1c:60:e9:7d:69:af:32:f8:97:40:25:24:b6:8d:1a: +# 55:3c:c5:b7:f7:bc:06:52:3b:71:30:70:3e:71:17:7e:f1:66: +# 04:5e:5d:bc:8a:31:43:a6:92:1d:7b:54:d2:a5:36:8b:6f:8d: +# d6:5e:da:d4:c3:2e:1d:df:39:55:60:82:30:9e:27:ff:8e:80: +# dd:63:4c:a6:55:35:d8:d0:33:a9:80:6d:3e:5e:9d:cc:a8:67: +# 80:66:fa:99:57:0c:52:ca:19:75:b0:38:35:55:2a:81:c5:8c: +# 1e:56:d7:5f:90:f2:20:d8:da:e0:66:71:e9:b2:78:ab:67:b9: +# 24:6e:6b:36:72:fc:6f:8d:fd:7f:72:39:28:67:52:91:05:1f: +# 57:65:d2:a3:a7:0d:61:fa:a1:e7:d5:35:46:95:c9:06:87:f6: +# 30:ec:32:51:a9:ac:56:c0:21:4e:a3:14:74:05:3a:bc:e3:bf: +# 6d:3d:4e:3f:5e:a5:a4:6d:29:bf:84:51:75:53:8e:86:1a:f5: +# 51:70:2a:0d:1c:4e:40:e1:fd:a3:e3:a5:2b:67:90:92:c7:6c: +# ae:85:bf:3a:9b:17:15:ca:9c:2a:93:d4:4d:39:0d:bc:20:08: +# a3:8d:88:6c:09:0d:8c:ae:44:21:4d:c9:71:ec:d8:26:d7:17: +# 9e:2d:11:18:3c:a3:22:7d:b8:27:54:bf:68:c8:3b:42:cc:8f: +# 5e:4e:e7:dc:c2:c5:fa:6a:44:0f:8d:56:88:7a:df:89:84:6c: +# a0:b3:3e:3d:f1:65:00:09:88:ea:2a:eb:40:ce:b3:5d:ac:32: +# 17:ae:c1:9b:e9:d0:c1:f5:49:94:dd:a7:ce:7c:5a:07:eb:ae: +# 20:9c:17:30:92:69:93:72:f3:9a:5b:71:9b:fe:6a:df:7a:30: +# 69:8e:b3:2e:db:0f:2c:dd + +[p11-kit-object-v1] +label: "TWCA Root Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsH5yuKQDlOan3gk4kUoR +QIenfFlkFHu1ERDd/r/VwLtW4oUl9DVyD/hT0EHhRAHCtBzDMUIWR4UzInayCm8P +5SVQT4WGvr+YLhBnHr4RBYYFkMRZ0Hx4ELCAXLfhxyt1y3yfrrXRnSM3Y6fcQqIt +kgQbUMF7uD4byVYEiy9Sm62pVunB/62pWIcwtoH3l0X8GVc7K2/kR/SZRf4d8fiX +o4gdNxxcj+B2JZpQ+KBU/0SQdiPSMsbDqwa//Pu/8619kmICWynTNaOTmkNkYF2y ++jL/OwSvTUBq+cfj7yP9a8vlD4s4De4K/P4PmJ8wMd1sUmX5i4G+IuEcWAO6kRuJ +BwIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "TWCA Root Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzES +MBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFU +V0NBIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMz +WhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJVEFJV0FO +LUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlm +aWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB +AQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFE +AcK0HMMxQhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HH +K3XLfJ+utdGdIzdjp9xCoi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeX +RfwZVzsrb+RH9JlF/h3x+JejiB03HFyP4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/z +rX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1ry+UPizgN7gr8/g+YnzAx +3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV +HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkq +hkiG9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeC +MErJk/9q56YAf4lCmtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdls +XebQ79NqZp4VKIV66IIArB6nCWlWQtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62D +lhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVYT0bf+215WfKEIlKuD8z7fDvn +aspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocnyYh0igzyXxfkZ +YiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: 1 (0x1) +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Root Certification Authority +# Validity +# Not Before: Aug 28 07:24:33 2008 GMT +# Not After : Dec 31 15:59:59 2030 GMT +# Subject: C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Root Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:b0:7e:72:b8:a4:03:94:e6:a7:de:09:38:91:4a: +# 11:40:87:a7:7c:59:64:14:7b:b5:11:10:dd:fe:bf: +# d5:c0:bb:56:e2:85:25:f4:35:72:0f:f8:53:d0:41: +# e1:44:01:c2:b4:1c:c3:31:42:16:47:85:33:22:76: +# b2:0a:6f:0f:e5:25:50:4f:85:86:be:bf:98:2e:10: +# 67:1e:be:11:05:86:05:90:c4:59:d0:7c:78:10:b0: +# 80:5c:b7:e1:c7:2b:75:cb:7c:9f:ae:b5:d1:9d:23: +# 37:63:a7:dc:42:a2:2d:92:04:1b:50:c1:7b:b8:3e: +# 1b:c9:56:04:8b:2f:52:9b:ad:a9:56:e9:c1:ff:ad: +# a9:58:87:30:b6:81:f7:97:45:fc:19:57:3b:2b:6f: +# e4:47:f4:99:45:fe:1d:f1:f8:97:a3:88:1d:37:1c: +# 5c:8f:e0:76:25:9a:50:f8:a0:54:ff:44:90:76:23: +# d2:32:c6:c3:ab:06:bf:fc:fb:bf:f3:ad:7d:92:62: +# 02:5b:29:d3:35:a3:93:9a:43:64:60:5d:b2:fa:32: +# ff:3b:04:af:4d:40:6a:f9:c7:e3:ef:23:fd:6b:cb: +# e5:0f:8b:38:0d:ee:0a:fc:fe:0f:98:9f:30:31:dd: +# 6c:52:65:f9:8b:81:be:22:e1:1c:58:03:ba:91:1b: +# 89:07 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 6A:38:5B:26:8D:DE:8B:5A:F2:4F:7A:54:83:19:18:E3:08:35:A6:BA +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 3c:d5:77:3d:da:df:89:ba:87:0c:08:54:6a:20:50:92:be:b0: +# 41:3d:b9:26:64:83:0a:2f:e8:40:c0:97:28:27:82:30:4a:c9: +# 93:ff:6a:e7:a6:00:7f:89:42:9a:d6:11:e5:53:ce:2f:cc:f2: +# da:05:c4:fe:e2:50:c4:3a:86:7d:cc:da:7e:10:09:3b:92:35: +# 2a:53:b2:fe:eb:2b:05:d9:6c:5d:e6:d0:ef:d3:6a:66:9e:15: +# 28:85:7a:e8:82:00:ac:1e:a7:09:69:56:42:d3:68:51:18:be: +# 54:9a:bf:44:41:ba:49:be:20:ba:69:5c:ee:b8:77:cd:ce:6c: +# 1f:ad:83:96:18:7d:0e:b5:14:39:84:f1:28:e9:2d:a3:9e:7b: +# 1e:7a:72:5a:83:b3:79:6f:ef:b4:fc:d0:0a:a5:58:4f:46:df: +# fb:6d:79:59:f2:84:22:52:ae:0f:cc:fb:7c:3b:e7:6a:ca:47: +# 61:c3:7a:f8:d3:92:04:1f:b8:20:84:e1:36:54:16:c7:40:de: +# 3b:8a:73:dc:df:c6:09:4c:df:ec:da:ff:d4:53:42:a1:c9:f2: +# 62:1d:22:83:3c:97:c5:f9:19:62:27:ac:65:22:d7:d3:3c:c6: +# e5:8e:b2:53:cc:49:ce:bc:30:fe:7b:0e:33:90:fb:ed:d2:14: +# 91:1f:07:af + +[p11-kit-object-v1] +label: "UCA Extended Validation Root" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqQkHKBMCsJngZKoeQxZ6 +c7GRoHU+qPrjOAB67IlqIA+LxbCbMwNahsZYhtXBhbtPxpxATcq+7mmWuK2BMJp8 +kgXrBSuaSNC4dj6WyCC70rDxj9isRUb/qmdgtHd+ah88GlJ6BD0HPIUNhNAfdgr3 +ahTfcuM0fFdOVgE+efGqKTts+viPbU3INd+u69wk7nlFp4W2BYjeiF0lfJdkZwnZ +v1oVBYbzCR7sWDIzEfN3ZLB2H+QQNRcb8g6xbKQqo3P8CR8eMhlTEefZsywudi6h +o95+aogJ6PIHiviyzRDn4nNAk7sI0T/h/AuUsyXvfKbX0a+f/5aa9ZF7mAt31H7o +B9JitZU54/PxbQ8OZYSKY1TFgLbgnkt9RyanAQhd0Yie18MyRPqCSgpoVH84UwPM +pAAzZFFZC6OCkXpe7BbC8yrmYtoq21liECVKKoELRwdDBnCH0vqTESl6SE3rlMdw +Ta9n1VGxgCABAbR6CKaQf07g7wdBh69qpV6L+89QsppUr8OJulgt9TCYsTZyOX5J +BP0pp0x55AVX25S5FlONRrMdlWFXVn+v8BZbYVhvNlARC9isK5UWGg4fCM02NGUQ +YmbVgF8UIF8tDKB4CmjWLNfpbyvSSgWT/J5va2f/iPFOpWlKUjcF6sYWjdLEmdGC +Kzu6NXX3UVFY88gH3eS0A38CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "UCA Extended Validation Root" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBH +MQswCQYDVQQGEwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBF +eHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMx +MDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNV +BAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwggIiMA0GCSqGSIb3DQEB +AQUAA4ICDwAwggIKAoICAQCpCQcoEwKwmeBkqh5DFnpzsZGgdT6o+uM4AHrsiWog +D4vFsJszA1qGxliG1cGFu0/GnEBNyr7uaZa4rYEwmnySBesFK5pI0Lh2PpbIILvS +sPGP2KxFRv+qZ2C0d35qHzwaUnoEPQc8hQ2E0B92CvdqFN9y4zR8V05WAT558aop +O2z6+I9tTcg1367r3CTueUWnhbYFiN6IXSV8l2RnCdm/WhUFhvMJHuxYMjMR83dk +sHYf5BA1FxvyDrFspCqjc/wJHx4yGVMR59mzLC52LqGj3n5qiAno8geK+LLNEOfi +c0CTuwjRP+H8C5SzJe98ptfRr5//lpr1kXuYC3fUfugH0mK1lTnj8/FtDw5lhIpj +VMWAtuCeS31HJqcBCF3RiJ7XwzJE+oJKCmhUfzhTA8ykADNkUVkLo4KRel7sFsLz +KuZi2irbWWIQJUoqgQtHB0MGcIfS+pMRKXpITeuUx3BNr2fVUbGAIAEBtHoIppB/ +TuDvB0GHr2qlXov7z1CymlSvw4m6WC31MJixNnI5fkkE/SmnTHnkBVfblLkWU41G +sx2VYVdWf6/wFlthWG82UBEL2KwrlRYaDh8IzTY0ZRBiZtWAXxQgXy0MoHgKaNYs +1+lvK9JKBZP8nm9rZ/+I8U6laUpSNwXqxhaN0sSZ0YIrO7o1dfdRUVjzyAfd5LQD +fwIDAQABo0IwQDAdBgNVHQ4EFgQU2XQ65DA9DfcS3H5aBZ8eNJr34RQwDwYDVR0T +AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQELBQADggIBADaN +l8xCFWQpN5smLNb7rhVpLGsaGvdftvkHTFnq88nIua7Mui563MD1sC3AO6+fcAUR +ap8lTwEpcOPlDOHqWnzcSbvBHiqB9RZLcpHIojG5qtr8nR/zXUACE/xOHAbKsxSQ +VBcZEhrxH9cMaVr2cXj0lH2RC47skFSOvG+hTKv8dGT9cZr4QQehzZHkPJrgmzI5 +c6sq1WnIeJEmMX3ixzDx/BR4dxIOE/TdFpS/S2d7cFOFyrC78zhNLJA5wA3CXWvp +4uXViI3WLL+rG761KIcSF3Ru/H38j9CHJrAb+7lsq+KePRXBOy5nAliRn+/4Qh8s +t2j1da3Ptfb/EX3C8CSlrdP6oDyp+l3cpaDvRKS+1ujl5BOWF3sGPjLtx7dCvHaj +2GU4Kzg1USEODm8uNBNA4StnDG1KQTAYI1oyVZnJF+A83vbsea0rWBmirSwiGpWO +vpaQXUJXxPkUAzUrHC1RVwinOt4/5Mi0A3PCwSaAuwtCH60NryZy2sy+s6ODWA2C +xR9GUeOcGMyNm43sSet1UNWMKFnKdDTajAshqx7qG+XH/RU+wBeq+yNuJkbL+vmx +cmtpzyKEC2IPrNkZAJSidjzULZrtBJ4tBmIQN1IchXIbJ+XMxjHsN+xjWZsLHXbM +fjKaiJUINlK73nZfdklJrX+9ZSCyycErdhh2n1ax +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 4f:d2:2b:8f:f5:64:c8:33:9e:4f:34:58:66:23:70:60 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=UniTrust, CN=UCA Extended Validation Root +# Validity +# Not Before: Mar 13 00:00:00 2015 GMT +# Not After : Dec 31 00:00:00 2038 GMT +# Subject: C=CN, O=UniTrust, CN=UCA Extended Validation Root +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:a9:09:07:28:13:02:b0:99:e0:64:aa:1e:43:16: +# 7a:73:b1:91:a0:75:3e:a8:fa:e3:38:00:7a:ec:89: +# 6a:20:0f:8b:c5:b0:9b:33:03:5a:86:c6:58:86:d5: +# c1:85:bb:4f:c6:9c:40:4d:ca:be:ee:69:96:b8:ad: +# 81:30:9a:7c:92:05:eb:05:2b:9a:48:d0:b8:76:3e: +# 96:c8:20:bb:d2:b0:f1:8f:d8:ac:45:46:ff:aa:67: +# 60:b4:77:7e:6a:1f:3c:1a:52:7a:04:3d:07:3c:85: +# 0d:84:d0:1f:76:0a:f7:6a:14:df:72:e3:34:7c:57: +# 4e:56:01:3e:79:f1:aa:29:3b:6c:fa:f8:8f:6d:4d: +# c8:35:df:ae:eb:dc:24:ee:79:45:a7:85:b6:05:88: +# de:88:5d:25:7c:97:64:67:09:d9:bf:5a:15:05:86: +# f3:09:1e:ec:58:32:33:11:f3:77:64:b0:76:1f:e4: +# 10:35:17:1b:f2:0e:b1:6c:a4:2a:a3:73:fc:09:1f: +# 1e:32:19:53:11:e7:d9:b3:2c:2e:76:2e:a1:a3:de: +# 7e:6a:88:09:e8:f2:07:8a:f8:b2:cd:10:e7:e2:73: +# 40:93:bb:08:d1:3f:e1:fc:0b:94:b3:25:ef:7c:a6: +# d7:d1:af:9f:ff:96:9a:f5:91:7b:98:0b:77:d4:7e: +# e8:07:d2:62:b5:95:39:e3:f3:f1:6d:0f:0e:65:84: +# 8a:63:54:c5:80:b6:e0:9e:4b:7d:47:26:a7:01:08: +# 5d:d1:88:9e:d7:c3:32:44:fa:82:4a:0a:68:54:7f: +# 38:53:03:cc:a4:00:33:64:51:59:0b:a3:82:91:7a: +# 5e:ec:16:c2:f3:2a:e6:62:da:2a:db:59:62:10:25: +# 4a:2a:81:0b:47:07:43:06:70:87:d2:fa:93:11:29: +# 7a:48:4d:eb:94:c7:70:4d:af:67:d5:51:b1:80:20: +# 01:01:b4:7a:08:a6:90:7f:4e:e0:ef:07:41:87:af: +# 6a:a5:5e:8b:fb:cf:50:b2:9a:54:af:c3:89:ba:58: +# 2d:f5:30:98:b1:36:72:39:7e:49:04:fd:29:a7:4c: +# 79:e4:05:57:db:94:b9:16:53:8d:46:b3:1d:95:61: +# 57:56:7f:af:f0:16:5b:61:58:6f:36:50:11:0b:d8: +# ac:2b:95:16:1a:0e:1f:08:cd:36:34:65:10:62:66: +# d5:80:5f:14:20:5f:2d:0c:a0:78:0a:68:d6:2c:d7: +# e9:6f:2b:d2:4a:05:93:fc:9e:6f:6b:67:ff:88:f1: +# 4e:a5:69:4a:52:37:05:ea:c6:16:8d:d2:c4:99:d1: +# 82:2b:3b:ba:35:75:f7:51:51:58:f3:c8:07:dd:e4: +# b4:03:7f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# D9:74:3A:E4:30:3D:0D:F7:12:DC:7E:5A:05:9F:1E:34:9A:F7:E1:14 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Digital Signature, Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 36:8d:97:cc:42:15:64:29:37:9b:26:2c:d6:fb:ae:15:69:2c: +# 6b:1a:1a:f7:5f:b6:f9:07:4c:59:ea:f3:c9:c8:b9:ae:cc:ba: +# 2e:7a:dc:c0:f5:b0:2d:c0:3b:af:9f:70:05:11:6a:9f:25:4f: +# 01:29:70:e3:e5:0c:e1:ea:5a:7c:dc:49:bb:c1:1e:2a:81:f5: +# 16:4b:72:91:c8:a2:31:b9:aa:da:fc:9d:1f:f3:5d:40:02:13: +# fc:4e:1c:06:ca:b3:14:90:54:17:19:12:1a:f1:1f:d7:0c:69: +# 5a:f6:71:78:f4:94:7d:91:0b:8e:ec:90:54:8e:bc:6f:a1:4c: +# ab:fc:74:64:fd:71:9a:f8:41:07:a1:cd:91:e4:3c:9a:e0:9b: +# 32:39:73:ab:2a:d5:69:c8:78:91:26:31:7d:e2:c7:30:f1:fc: +# 14:78:77:12:0e:13:f4:dd:16:94:bf:4b:67:7b:70:53:85:ca: +# b0:bb:f3:38:4d:2c:90:39:c0:0d:c2:5d:6b:e9:e2:e5:d5:88: +# 8d:d6:2c:bf:ab:1b:be:b5:28:87:12:17:74:6e:fc:7d:fc:8f: +# d0:87:26:b0:1b:fb:b9:6c:ab:e2:9e:3d:15:c1:3b:2e:67:02: +# 58:91:9f:ef:f8:42:1f:2c:b7:68:f5:75:ad:cf:b5:f6:ff:11: +# 7d:c2:f0:24:a5:ad:d3:fa:a0:3c:a9:fa:5d:dc:a5:a0:ef:44: +# a4:be:d6:e8:e5:e4:13:96:17:7b:06:3e:32:ed:c7:b7:42:bc: +# 76:a3:d8:65:38:2b:38:35:51:21:0e:0e:6f:2e:34:13:40:e1: +# 2b:67:0c:6d:4a:41:30:18:23:5a:32:55:99:c9:17:e0:3c:de: +# f6:ec:79:ad:2b:58:19:a2:ad:2c:22:1a:95:8e:be:96:90:5d: +# 42:57:c4:f9:14:03:35:2b:1c:2d:51:57:08:a7:3a:de:3f:e4: +# c8:b4:03:73:c2:c1:26:80:bb:0b:42:1f:ad:0d:af:26:72:da: +# cc:be:b3:a3:83:58:0d:82:c5:1f:46:51:e3:9c:18:cc:8d:9b: +# 8d:ec:49:eb:75:50:d5:8c:28:59:ca:74:34:da:8c:0b:21:ab: +# 1e:ea:1b:e5:c7:fd:15:3e:c0:17:aa:fb:23:6e:26:46:cb:fa: +# f9:b1:72:6b:69:cf:22:84:0b:62:0f:ac:d9:19:00:94:a2:76: +# 3c:d4:2d:9a:ed:04:9e:2d:06:62:10:37:52:1c:85:72:1b:27: +# e5:cc:c6:31:ec:37:ec:63:59:9b:0b:1d:76:cc:7e:32:9a:88: +# 95:08:36:52:bb:de:76:5f:76:49:49:ad:7f:bd:65:20:b2:c9: +# c1:2b:76:18:76:9f:56:b1 + +[p11-kit-object-v1] +label: "UCA Global G2 Root" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxeYrb3zvJgUno4Ek2m/L +AfmZmqkywiKHYUGRO8vDaBsGxUypK8FnFyIdK+35KYmToni9kmugow2ifsqTs6bR +jDXVdfkX9s9FxeV67HeToI8jrg4aA3++1NDtLnurRiNb/yzmVHqUwCoV8MmNsHo7 +JOHXaOIxPAYzRrZUEaalLyJUKlgNAQLx+hVRZ2zA+te2G3/RVogvGjqNO7uCEeBH +ANBSh6v7hn4PJGtAnTRnvI3HLYZveT6OqTwXS3+wmeOwcWDcC/Vkw85DvG1xudLe +J1uK6NjGruFZfc8oLTW4lVYa8bJYS7cSN8h8s+1LgOGN+jIjtm+3SJUIsUROhYw6 +AlQgL9+/V087OpAh18EmNVQg7Mc/R+zvWr9LesGtOxdQXGLYD0tK3Cv6brxzks3s +x1DoQZbXqX5t2Okdj4q1uViSukqSKwxW/YDrCPBeKW4bHAyvj5OJrdu9o54hyokZ +7N+1wxrrFv54NkzWbtA+FxyQF2smuvt6L78RHBgOLXMDj6DlNaBa4kx1HXHhOThT +eEDMg5PXCp6dW4+K5OXgSORIskfNTip1KnvyIvbJvgmRlld6iIis7nCs+dwp4wwc +OxJORNanTrAmyPPZGpeRaOrvjUYG0lZFWJo8DA+DuAUlwznPO6Q0ibd5Ei9Hxeep +l2n8pndntd978XplFeRhVmUCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "UCA Global G2 Root" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFRjCCAy6gAwIBAgIQXd+x2lqj7V2+WmUgZQOQ7zANBgkqhkiG9w0BAQsFADA9 +MQswCQYDVQQGEwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxGzAZBgNVBAMMElVDQSBH +bG9iYWwgRzIgUm9vdDAeFw0xNjAzMTEwMDAwMDBaFw00MDEyMzEwMDAwMDBaMD0x +CzAJBgNVBAYTAkNOMREwDwYDVQQKDAhVbmlUcnVzdDEbMBkGA1UEAwwSVUNBIEds +b2JhbCBHMiBSb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxeYr +b3zvJgUno4Ek2m/LAfmZmqkywiKHYUGRO8vDaBsGxUypK8FnFyIdK+35KYmToni9 +kmugow2ifsqTs6bRjDXVdfkX9s9FxeV67HeToI8jrg4aA3++1NDtLnurRiNb/yzm +VHqUwCoV8MmNsHo7JOHXaOIxPAYzRrZUEaalLyJUKlgNAQLx+hVRZ2zA+te2G3/R +VogvGjqNO7uCEeBHANBSh6v7hn4PJGtAnTRnvI3HLYZveT6OqTwXS3+wmeOwcWDc +C/Vkw85DvG1xudLeJ1uK6NjGruFZfc8oLTW4lVYa8bJYS7cSN8h8s+1LgOGN+jIj +tm+3SJUIsUROhYw6AlQgL9+/V087OpAh18EmNVQg7Mc/R+zvWr9LesGtOxdQXGLY +D0tK3Cv6brxzks3sx1DoQZbXqX5t2Okdj4q1uViSukqSKwxW/YDrCPBeKW4bHAyv +j5OJrdu9o54hyokZ7N+1wxrrFv54NkzWbtA+FxyQF2smuvt6L78RHBgOLXMDj6Dl +NaBa4kx1HXHhOThTeEDMg5PXCp6dW4+K5OXgSORIskfNTip1KnvyIvbJvgmRlld6 +iIis7nCs+dwp4wwcOxJORNanTrAmyPPZGpeRaOrvjUYG0lZFWJo8DA+DuAUlwznP +O6Q0ibd5Ei9Hxeepl2n8pndntd978XplFeRhVmUCAwEAAaNCMEAwDgYDVR0PAQH/ +BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFIHEjMz15DD/pQwIX4wV +ZyF0Ad/fMA0GCSqGSIb3DQEBCwUAA4ICAQATZSL1jiutROTL/7lo5sOASD0Ee/oj +L3rtNtqyzm325p7lX1iPyzcyochltq44PTUbPrw7tgTQvPlJ9Zv3hcU2tsu8+Mg5 +1eRfB70VVJd0ysrtT7q6ZHafgbiERUlMjW+i67HM0cOU2kTC5uLqGOiiHycFutfl +1qnN3e92mI0ADs0b+gO3joBYDic/UvuUospeZcnWhNq5NXHzJsBPd+aBJ9J3O5oU +b3n09tDh05S60FdRvScFDcH9yBIw7m+NESsIndTUv4BFFJqIRNow6rSn4+7vW4LV +PtateJLbXDzz2K36uGt/xDYotgIVilQsnLAXc47QN6MUPJiVAAwpBVueSUmxX8fj +y88nZY41F7dXyDDZQVu5FLbowg+UMaeUmMxq67XhJ/UQqAHojhJi6IjMtX9Gl8Cb +EGY4GjZGXyJoPd/JxhMnq1MGrKI8hgZlb7F+sSlEmqO6SWkoaY/X5V+tBIZkbxqg +DMUIYs6Ao9Dz7GjevjPHF1t/gMRMTLGmhIrDO7gJzRSBuhjjVFc2/tsvfEehOjPI ++Vg7RE+xygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGy +YiGqhkCyLmTTX8jjfhFnRR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bX +UB+K+wb1whnw0A== +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5d:df:b1:da:5a:a3:ed:5d:be:5a:65:20:65:03:90:ef +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=UniTrust, CN=UCA Global G2 Root +# Validity +# Not Before: Mar 11 00:00:00 2016 GMT +# Not After : Dec 31 00:00:00 2040 GMT +# Subject: C=CN, O=UniTrust, CN=UCA Global G2 Root +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:c5:e6:2b:6f:7c:ef:26:05:27:a3:81:24:da:6f: +# cb:01:f9:99:9a:a9:32:c2:22:87:61:41:91:3b:cb: +# c3:68:1b:06:c5:4c:a9:2b:c1:67:17:22:1d:2b:ed: +# f9:29:89:93:a2:78:bd:92:6b:a0:a3:0d:a2:7e:ca: +# 93:b3:a6:d1:8c:35:d5:75:f9:17:f6:cf:45:c5:e5: +# 7a:ec:77:93:a0:8f:23:ae:0e:1a:03:7f:be:d4:d0: +# ed:2e:7b:ab:46:23:5b:ff:2c:e6:54:7a:94:c0:2a: +# 15:f0:c9:8d:b0:7a:3b:24:e1:d7:68:e2:31:3c:06: +# 33:46:b6:54:11:a6:a5:2f:22:54:2a:58:0d:01:02: +# f1:fa:15:51:67:6c:c0:fa:d7:b6:1b:7f:d1:56:88: +# 2f:1a:3a:8d:3b:bb:82:11:e0:47:00:d0:52:87:ab: +# fb:86:7e:0f:24:6b:40:9d:34:67:bc:8d:c7:2d:86: +# 6f:79:3e:8e:a9:3c:17:4b:7f:b0:99:e3:b0:71:60: +# dc:0b:f5:64:c3:ce:43:bc:6d:71:b9:d2:de:27:5b: +# 8a:e8:d8:c6:ae:e1:59:7d:cf:28:2d:35:b8:95:56: +# 1a:f1:b2:58:4b:b7:12:37:c8:7c:b3:ed:4b:80:e1: +# 8d:fa:32:23:b6:6f:b7:48:95:08:b1:44:4e:85:8c: +# 3a:02:54:20:2f:df:bf:57:4f:3b:3a:90:21:d7:c1: +# 26:35:54:20:ec:c7:3f:47:ec:ef:5a:bf:4b:7a:c1: +# ad:3b:17:50:5c:62:d8:0f:4b:4a:dc:2b:fa:6e:bc: +# 73:92:cd:ec:c7:50:e8:41:96:d7:a9:7e:6d:d8:e9: +# 1d:8f:8a:b5:b9:58:92:ba:4a:92:2b:0c:56:fd:80: +# eb:08:f0:5e:29:6e:1b:1c:0c:af:8f:93:89:ad:db: +# bd:a3:9e:21:ca:89:19:ec:df:b5:c3:1a:eb:16:fe: +# 78:36:4c:d6:6e:d0:3e:17:1c:90:17:6b:26:ba:fb: +# 7a:2f:bf:11:1c:18:0e:2d:73:03:8f:a0:e5:35:a0: +# 5a:e2:4c:75:1d:71:e1:39:38:53:78:40:cc:83:93: +# d7:0a:9e:9d:5b:8f:8a:e4:e5:e0:48:e4:48:b2:47: +# cd:4e:2a:75:2a:7b:f2:22:f6:c9:be:09:91:96:57: +# 7a:88:88:ac:ee:70:ac:f9:dc:29:e3:0c:1c:3b:12: +# 4e:44:d6:a7:4e:b0:26:c8:f3:d9:1a:97:91:68:ea: +# ef:8d:46:06:d2:56:45:58:9a:3c:0c:0f:83:b8:05: +# 25:c3:39:cf:3b:a4:34:89:b7:79:12:2f:47:c5:e7: +# a9:97:69:fc:a6:77:67:b5:df:7b:f1:7a:65:15:e4: +# 61:56:65 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# 81:C4:8C:CC:F5:E4:30:FF:A5:0C:08:5F:8C:15:67:21:74:01:DF:DF +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 13:65:22:f5:8e:2b:ad:44:e4:cb:ff:b9:68:e6:c3:80:48:3d: +# 04:7b:fa:23:2f:7a:ed:36:da:b2:ce:6d:f6:e6:9e:e5:5f:58: +# 8f:cb:37:32:a1:c8:65:b6:ae:38:3d:35:1b:3e:bc:3b:b6:04: +# d0:bc:f9:49:f5:9b:f7:85:c5:36:b6:cb:bc:f8:c8:39:d5:e4: +# 5f:07:bd:15:54:97:74:ca:ca:ed:4f:ba:ba:64:76:9f:81:b8: +# 84:45:49:4c:8d:6f:a2:eb:b1:cc:d1:c3:94:da:44:c2:e6:e2: +# ea:18:e8:a2:1f:27:05:ba:d7:e5:d6:a9:cd:dd:ef:76:98:8d: +# 00:0e:cd:1b:fa:03:b7:8e:80:58:0e:27:3f:52:fb:94:a2:ca: +# 5e:65:c9:d6:84:da:b9:35:71:f3:26:c0:4f:77:e6:81:27:d2: +# 77:3b:9a:14:6f:79:f4:f6:d0:e1:d3:94:ba:d0:57:51:bd:27: +# 05:0d:c1:fd:c8:12:30:ee:6f:8d:11:2b:08:9d:d4:d4:bf:80: +# 45:14:9a:88:44:da:30:ea:b4:a7:e3:ee:ef:5b:82:d5:3e:d6: +# ad:78:92:db:5c:3c:f3:d8:ad:fa:b8:6b:7f:c4:36:28:b6:02: +# 15:8a:54:2c:9c:b0:17:73:8e:d0:37:a3:14:3c:98:95:00:0c: +# 29:05:5b:9e:49:49:b1:5f:c7:e3:cb:cf:27:65:8e:35:17:b7: +# 57:c8:30:d9:41:5b:b9:14:b6:e8:c2:0f:94:31:a7:94:98:cc: +# 6a:eb:b5:e1:27:f5:10:a8:01:e8:8e:12:62:e8:88:cc:b5:7f: +# 46:97:c0:9b:10:66:38:1a:36:46:5f:22:68:3d:df:c9:c6:13: +# 27:ab:53:06:ac:a2:3c:86:06:65:6f:b1:7e:b1:29:44:9a:a3: +# ba:49:69:28:69:8f:d7:e5:5f:ad:04:86:64:6f:1a:a0:0c:c5: +# 08:62:ce:80:a3:d0:f3:ec:68:de:be:33:c7:17:5b:7f:80:c4: +# 4c:4c:b1:a6:84:8a:c3:3b:b8:09:cd:14:81:ba:18:e3:54:57: +# 36:fe:db:2f:7c:47:a1:3a:33:c8:f9:58:3b:44:4f:b1:ca:02: +# 89:04:96:28:68:c5:4b:b8:26:89:bb:d6:33:2f:50:d5:fe:9a: +# 89:ba:18:32:92:54:c6:5b:e0:9d:f9:5e:e5:0d:22:9b:f6:da: +# e2:c8:21:b2:62:21:aa:86:40:b2:2e:64:d3:5f:c8:e3:7e:11: +# 67:45:1f:05:fe:e3:a2:ef:b3:a8:b3:f3:7d:8f:f8:0c:1f:22: +# 1f:2d:70:b4:b8:01:34:76:30:00:e5:23:78:a7:56:d7:50:1f: +# 8a:fb:06:f5:c2:19:f0:d0 + +[p11-kit-object-v1] +label: "USERTrust ECC Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEGqxUWqn5aCPnetUkb1PGWthLq8bVttHm +c3Gu3ZzWDGH926CJA7gFFOxXzu5dP+Ihs8731Ip54KODfi2X0GHE8ZncJZFjq38w +o7Rw4sehM5zzvy5cU7Ffs30yf4o043l5 +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "USERTrust ECC Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDEL +MAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNl +eSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMT +JVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMjAx +MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNVBAgT +Ck5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVUaGUg +VVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlm +aWNhdGlvbiBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqflo +I+d61SRvU8Za2EurxtW20eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinng +o4N+LZfQYcTxmdwlkWOrfzCjtHDix6EznPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0G +A1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBBHU6+4WMB +zzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbW +RNZu9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 5c:8b:99:c5:5a:94:c5:d2:71:56:de:cd:89:80:cc:26 +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust ECC Certification Authority +# Validity +# Not Before: Feb 1 00:00:00 2010 GMT +# Not After : Jan 18 23:59:59 2038 GMT +# Subject: C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust ECC Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:1a:ac:54:5a:a9:f9:68:23:e7:7a:d5:24:6f:53: +# c6:5a:d8:4b:ab:c6:d5:b6:d1:e6:73:71:ae:dd:9c: +# d6:0c:61:fd:db:a0:89:03:b8:05:14:ec:57:ce:ee: +# 5d:3f:e2:21:b3:ce:f7:d4:8a:79:e0:a3:83:7e:2d: +# 97:d0:61:c4:f1:99:dc:25:91:63:ab:7f:30:a3:b4: +# 70:e2:c7:a1:33:9c:f3:bf:2e:5c:53:b1:5f:b3:7d: +# 32:7f:8a:34:e3:79:79 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 3A:E1:09:86:D4:CF:19:C2:96:76:74:49:76:DC:E0:35:C6:63:63:9A +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:36:67:a1:16:08:dc:e4:97:00:41:1d:4e:be:e1: +# 63:01:cf:3b:aa:42:11:64:a0:9d:94:39:02:11:79:5c:7b:1d: +# fa:64:b9:ee:16:42:b3:bf:8a:c2:09:c4:ec:e4:b1:4d:02:31: +# 00:e9:2a:61:47:8c:52:4a:4b:4e:18:70:f6:d6:44:d6:6e:f5: +# 83:ba:6d:58:bd:24:d9:56:48:ea:ef:c4:a2:46:81:88:6a:3a: +# 46:d1:a9:9b:4d:c9:61:da:d1:5d:57:6a:18 + +[p11-kit-object-v1] +label: "USERTrust RSA Certification Authority" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAgBJlFzYOw9sIs9CsVw12 +7c0n00ytUINh4qogTQktZAnczomfzD2p7PbPwdzx07HWezcoEStH2jnGvDoZtF+m +vX2do2NCtnbyqTsrkfjib9DsFiCQCT7i6HTJGLSR1GJk23+jBvGIGGqQIjy8/hPw +hxR79uQfjtTkUcYRZ0YIUcuGFFQ/vDP+fmyc/xadGL1RjjWmp2bIcmfbIWax1Jt4 +A8BQOujM8Ny8nkz+rwWWNR9XWrf/zvk9tyy29lTdyOcSOk2uTIq3XJq0tyA9yn8i +NK5+O2hmAUTnAU5GU5szYPeUvlM3kHND8zLDU+/bqv50TmnHa4xgk97Exwzf4TKu +zJM7UXiVZ4vuPVb+DNBpDxsP8yUmazNt925H+nND5X4OpWaxKXwyhGNVicQNwZNU +MBkTrNN9N6frXTpsNVzbQdcS2qlJC9/YgIoJk2KOtWbPJYjNhLixP6Q5D9kCnusS +TJV882sFqV4Wg8y4Z+LoE53MW4LTTLPtW//e5XOsIzstAL81VXQJSdhJWBp/kjbm +UZIO8yZ9HE0XvMnsQybQv0FfQKlERPSZ51eHnlAfV1SoPv10Yy+xUGUJ5lhCLkMa +TLTwJUdZ+gQek9QmRkpQgbLevni3/GcV4clXhB4PY9bpYrrWX1Uu6lzGKAgEJTm4 +Diup8kyXHAc/DVL17e8vgg8CAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "USERTrust RSA Certification Authority" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB +iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl +cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV +BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAw +MjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNV +BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU +aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2Vy +dGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK +AoICAQCAEmUXNg7D2wiz0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B +3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2jY0K2dvKpOyuR+OJv0OwWIJAJPuLodMkY +tJHUYmTbf6MG8YgYapAiPLz+E/CHFHv25B+O1ORRxhFnRghRy4YUVD+8M/5+bJz/ +Fp0YvVGONaanZshyZ9shZrHUm3gDwFA66Mzw3LyeTP6vBZY1H1dat//O+T23LLb2 +VN3I5xI6Ta5MirdcmrS3ID3KfyI0rn47aGYBROcBTkZTmzNg95S+UzeQc0PzMsNT +79uq/nROacdrjGCT3sTHDN/hMq7MkztReJVni+49Vv4M0GkPGw/zJSZrM233bkf6 +c0Plfg6lZrEpfDKEY1WJxA3Bk1QwGROs0303p+tdOmw1XNtB1xLaqUkL39iAigmT +Yo61Zs8liM2EuLE/pDkP2QKe6xJMlXzzawWpXhaDzLhn4ugTncxbgtNMs+1b/97l +c6wjOy0AvzVVdAlJ2ElYGn+SNuZRkg7zJn0cTRe8yexDJtC/QV9AqURE9JnnV4ee +UB9XVKg+/XRjL7FQZQnmWEIuQxpMtPAlR1n6BB6T1CZGSlCBst6+eLf8ZxXhyVeE +Hg9j1uliutZfVS7qXMYoCAQlObgOK6nyTJccBz8NUvXt7y+CDwIDAQABo0IwQDAd +BgNVHQ4EFgQUU3m/WqorSs9UgOHYm8Cd8rIDZsswDgYDVR0PAQH/BAQDAgEGMA8G +A1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPF +Up/L+M+ZBn8b2kMVn54CVVeWFPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KO +VWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ7l8wXEskEVX/JJpuXior7gtNn3/3 +ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQEg9zKC7F4iRO/Fjs +8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM8WcR +iQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYze +Sf7dNXGiFSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZ +XHlKYC6SQK5MNyosycdiyA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/ +qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9cJ2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRB +VXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGwsAvgnEzDHNb842m1R0aB +L6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gxQ+6IHdfG +jjxDah2nGN59PRbxYvnKkKj9 +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 01:fd:6d:30:fc:a3:ca:51:a8:1b:bc:64:0e:35:03:2d +# Signature Algorithm: sha384WithRSAEncryption +# Issuer: C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust RSA Certification Authority +# Validity +# Not Before: Feb 1 00:00:00 2010 GMT +# Not After : Jan 18 23:59:59 2038 GMT +# Subject: C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust RSA Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:80:12:65:17:36:0e:c3:db:08:b3:d0:ac:57:0d: +# 76:ed:cd:27:d3:4c:ad:50:83:61:e2:aa:20:4d:09: +# 2d:64:09:dc:ce:89:9f:cc:3d:a9:ec:f6:cf:c1:dc: +# f1:d3:b1:d6:7b:37:28:11:2b:47:da:39:c6:bc:3a: +# 19:b4:5f:a6:bd:7d:9d:a3:63:42:b6:76:f2:a9:3b: +# 2b:91:f8:e2:6f:d0:ec:16:20:90:09:3e:e2:e8:74: +# c9:18:b4:91:d4:62:64:db:7f:a3:06:f1:88:18:6a: +# 90:22:3c:bc:fe:13:f0:87:14:7b:f6:e4:1f:8e:d4: +# e4:51:c6:11:67:46:08:51:cb:86:14:54:3f:bc:33: +# fe:7e:6c:9c:ff:16:9d:18:bd:51:8e:35:a6:a7:66: +# c8:72:67:db:21:66:b1:d4:9b:78:03:c0:50:3a:e8: +# cc:f0:dc:bc:9e:4c:fe:af:05:96:35:1f:57:5a:b7: +# ff:ce:f9:3d:b7:2c:b6:f6:54:dd:c8:e7:12:3a:4d: +# ae:4c:8a:b7:5c:9a:b4:b7:20:3d:ca:7f:22:34:ae: +# 7e:3b:68:66:01:44:e7:01:4e:46:53:9b:33:60:f7: +# 94:be:53:37:90:73:43:f3:32:c3:53:ef:db:aa:fe: +# 74:4e:69:c7:6b:8c:60:93:de:c4:c7:0c:df:e1:32: +# ae:cc:93:3b:51:78:95:67:8b:ee:3d:56:fe:0c:d0: +# 69:0f:1b:0f:f3:25:26:6b:33:6d:f7:6e:47:fa:73: +# 43:e5:7e:0e:a5:66:b1:29:7c:32:84:63:55:89:c4: +# 0d:c1:93:54:30:19:13:ac:d3:7d:37:a7:eb:5d:3a: +# 6c:35:5c:db:41:d7:12:da:a9:49:0b:df:d8:80:8a: +# 09:93:62:8e:b5:66:cf:25:88:cd:84:b8:b1:3f:a4: +# 39:0f:d9:02:9e:eb:12:4c:95:7c:f3:6b:05:a9:5e: +# 16:83:cc:b8:67:e2:e8:13:9d:cc:5b:82:d3:4c:b3: +# ed:5b:ff:de:e5:73:ac:23:3b:2d:00:bf:35:55:74: +# 09:49:d8:49:58:1a:7f:92:36:e6:51:92:0e:f3:26: +# 7d:1c:4d:17:bc:c9:ec:43:26:d0:bf:41:5f:40:a9: +# 44:44:f4:99:e7:57:87:9e:50:1f:57:54:a8:3e:fd: +# 74:63:2f:b1:50:65:09:e6:58:42:2e:43:1a:4c:b4: +# f0:25:47:59:fa:04:1e:93:d4:26:46:4a:50:81:b2: +# de:be:78:b7:fc:67:15:e1:c9:57:84:1e:0f:63:d6: +# e9:62:ba:d6:5f:55:2e:ea:5c:c6:28:08:04:25:39: +# b8:0e:2b:a9:f2:4c:97:1c:07:3f:0d:52:f5:ed:ef: +# 2f:82:0f +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 53:79:BF:5A:AA:2B:4A:CF:54:80:E1:D8:9B:C0:9D:F2:B2:03:66:CB +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# Signature Algorithm: sha384WithRSAEncryption +# Signature Value: +# 5c:d4:7c:0d:cf:f7:01:7d:41:99:65:0c:73:c5:52:9f:cb:f8: +# cf:99:06:7f:1b:da:43:15:9f:9e:02:55:57:96:14:f1:52:3c: +# 27:87:94:28:ed:1f:3a:01:37:a2:76:fc:53:50:c0:84:9b:c6: +# 6b:4e:ba:8c:21:4f:a2:8e:55:62:91:f3:69:15:d8:bc:88:e3: +# c4:aa:0b:fd:ef:a8:e9:4b:55:2a:06:20:6d:55:78:29:19:ee: +# 5f:30:5c:4b:24:11:55:ff:24:9a:6e:5e:2a:2b:ee:0b:4d:9f: +# 7f:f7:01:38:94:14:95:43:07:09:fb:60:a9:ee:1c:ab:12:8c: +# a0:9a:5e:a7:98:6a:59:6d:8b:3f:08:fb:c8:d1:45:af:18:15: +# 64:90:12:0f:73:28:2e:c5:e2:24:4e:fc:58:ec:f0:f4:45:fe: +# 22:b3:eb:2f:8e:d2:d9:45:61:05:c1:97:6f:a8:76:72:8f:8b: +# 8c:36:af:bf:0d:05:ce:71:8d:e6:a6:6f:1f:6c:a6:71:62:c5: +# d8:d0:83:72:0c:f1:67:11:89:0c:9c:13:4c:72:34:df:bc:d5: +# 71:df:aa:71:dd:e1:b9:6c:8c:3c:12:5d:65:da:bd:57:12:b6: +# 43:6b:ff:e5:de:4d:66:11:51:cf:99:ae:ec:17:b6:e8:71:91: +# 8c:de:49:fe:dd:35:71:a2:15:27:94:1c:cf:61:e3:26:bb:6f: +# a3:67:25:21:5d:e6:dd:1d:0b:2e:68:1b:3b:82:af:ec:83:67: +# 85:d4:98:51:74:b1:b9:99:80:89:ff:7f:78:19:5c:79:4a:60: +# 2e:92:40:ae:4c:37:2a:2c:c9:c7:62:c8:0e:5d:f7:36:5b:ca: +# e0:25:25:01:b4:dd:1a:07:9c:77:00:3f:d0:dc:d5:ec:3d:d4: +# fa:bb:3f:cc:85:d6:6f:7f:a9:2d:df:b9:02:f7:f5:97:9a:b5: +# 35:da:c3:67:b0:87:4a:a9:28:9e:23:8e:ff:5c:27:6b:e1:b0: +# 4f:f3:07:ee:00:2e:d4:59:87:cb:52:41:95:ea:f4:47:d7:ee: +# 64:41:55:7c:8d:59:02:95:dd:62:9d:c2:b9:ee:5a:28:74:84: +# a5:9b:b7:90:c7:0c:07:df:f5:89:36:74:32:d6:28:c1:b0:b0: +# 0b:e0:9c:4c:c3:1c:d6:fc:e3:69:b5:47:46:81:2f:a2:82:ab: +# d3:63:44:70:c4:8d:ff:2d:33:ba:ad:8f:7b:b5:70:88:ae:3e: +# 19:cf:40:28:d8:fc:c8:90:bb:5d:99:22:f5:52:e6:58:c5:1f: +# 88:31:43:ee:88:1d:d7:c6:8e:3c:43:6a:1d:a7:18:de:7d:3d: +# 16:f1:62:f9:ca:90:a8:fd + +[p11-kit-object-v1] +label: "vTrus ECC Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEZVBKrox5lkqqHAjDo6LN/llWQXf9JpRC +ux3NCNtzslt188+cToL0v/hhJoVs1oVbcnDS/dtitN9Ti72xRFhiQgnH+n9bEOf+ +QP3A2MMrMudwpremIFUde4BdS49nTPEQ +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "vTrus ECC Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIICDzCCAZWgAwIBAgIUbmq8WapTvpg5Z6LSa6Q75m0c1towCgYIKoZIzj0EAwMw +RzELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28uLEx0ZC4xGjAY +BgNVBAMTEXZUcnVzIEVDQyBSb290IENBMB4XDTE4MDczMTA3MjY0NFoXDTQzMDcz +MTA3MjY0NFowRzELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28u +LEx0ZC4xGjAYBgNVBAMTEXZUcnVzIEVDQyBSb290IENBMHYwEAYHKoZIzj0CAQYF +K4EEACIDYgAEZVBKrox5lkqqHAjDo6LN/llWQXf9JpRCux3NCNtzslt188+cToL0 +v/hhJoVs1oVbcnDS/dtitN9Ti72xRFhiQgnH+n9bEOf+QP3A2MMrMudwpremIFUd +e4BdS49nTPEQo0IwQDAdBgNVHQ4EFgQUmDnNvtiyjPeyq+GtJK97fKHbH88wDwYD +VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwCgYIKoZIzj0EAwMDaAAwZQIw +V53dVvHH4+m4SVBrm2nDb+zDfSXkV5UTQJtS0zvzQBm8JsctBp61ezaf9SXUY2sA +AjEA6dPGnlaaKsyh2j/IZivTWJwghfqrkYpwcBE4YGQLYgmRWAD5Tfs0aNoJrSEG +GJTO +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 6e:6a:bc:59:aa:53:be:98:39:67:a2:d2:6b:a4:3b:e6:6d:1c:d6:da +# Signature Algorithm: ecdsa-with-SHA384 +# Issuer: C=CN, O=iTrusChina Co.,Ltd., CN=vTrus ECC Root CA +# Validity +# Not Before: Jul 31 07:26:44 2018 GMT +# Not After : Jul 31 07:26:44 2043 GMT +# Subject: C=CN, O=iTrusChina Co.,Ltd., CN=vTrus ECC Root CA +# Subject Public Key Info: +# Public Key Algorithm: id-ecPublicKey +# Public-Key: (384 bit) +# pub: +# 04:65:50:4a:ae:8c:79:96:4a:aa:1c:08:c3:a3:a2: +# cd:fe:59:56:41:77:fd:26:94:42:bb:1d:cd:08:db: +# 73:b2:5b:75:f3:cf:9c:4e:82:f4:bf:f8:61:26:85: +# 6c:d6:85:5b:72:70:d2:fd:db:62:b4:df:53:8b:bd: +# b1:44:58:62:42:09:c7:fa:7f:5b:10:e7:fe:40:fd: +# c0:d8:c3:2b:32:e7:70:a6:b7:a6:20:55:1d:7b:80: +# 5d:4b:8f:67:4c:f1:10 +# ASN1 OID: secp384r1 +# NIST CURVE: P-384 +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 98:39:CD:BE:D8:B2:8C:F7:B2:AB:E1:AD:24:AF:7B:7C:A1:DB:1F:CF +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: ecdsa-with-SHA384 +# Signature Value: +# 30:65:02:30:57:9d:dd:56:f1:c7:e3:e9:b8:49:50:6b:9b:69: +# c3:6f:ec:c3:7d:25:e4:57:95:13:40:9b:52:d3:3b:f3:40:19: +# bc:26:c7:2d:06:9e:b5:7b:36:9f:f5:25:d4:63:6b:00:02:31: +# 00:e9:d3:c6:9e:56:9a:2a:cc:a1:da:3f:c8:66:2b:d3:58:9c: +# 20:85:fa:ab:91:8a:70:70:11:38:60:64:0b:62:09:91:58:00: +# f9:4d:fb:34:68:da:09:ad:21:06:18:94:ce + +[p11-kit-object-v1] +label: "vTrus Root CA" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0%16%06%03U%1d%25%01%01%ff%04%0c0%0a%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvVV8YdO4HQRiBaCubLdw +tEHqSwNeED+QWhyLO7Bmi2xIphwiutVAku4zsiNZyY68WNqLntAZ8i9ZxoxjWrqf +owuws5pcuhG4EukMu89ubICHKRQDLI0kmshkg7VqrBMsM/Gf3CxhPBo/cFWbrQBS +f88Euf42+pzAFq5i/pZMQ35VFL4as9Jtwq92ZpVrKrCUd4VeBA9iHWN192vny1ua +cOw+ZwXw/gcIgM8o2wXGFCcvhn3wJ97/5n4zSOcLHljRJytTDldKZdf7ooBg/Ey8 +NVMBapdygq/xHXDonPXvXsJsx0d+WpSFJk07uutM6LAJwmXCnZ0Jm061lwWs9Qag +9zYFfvSQsmvEtPlk6ukaCsgNqO0nydTns7mrgiKQJz0q6HyQ77xP/eIKJKfeZSSk +XerAdjDTd1D4DQSblDYBc8oGWKbTO9z6BEYTVYrJREe4UTkaLug04nnLWUoKf7ym +7x8DZ2pZKyVik9lTGWY8J2Iphk2ka+7/1E661bTijkhaABkJ8QXZzpGx9+vpOU/2 +bwRDmlX1PgUUvb+zWbTYjjOEo5BSqrMClWD5DExo+e7VFw34cVe1JeQp7mVdr9Hu +PBcLWkPFpYbqJJ7iBQfcNEISkdY5dK5MQYLb8qZI0bOb8zOq86bAxU719J12Y+YC +xiJLwZU/UGQsVOW28Dwpz1cCAwEAAQ== +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "vTrus Root CA" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIFVjCCAz6gAwIBAgIUQ+NxE9izWRRdt86M/TX9b7wFjUUwDQYJKoZIhvcNAQEL +BQAwQzELMAkGA1UEBhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28uLEx0ZC4x +FjAUBgNVBAMTDXZUcnVzIFJvb3QgQ0EwHhcNMTgwNzMxMDcyNDA1WhcNNDMwNzMx +MDcyNDA1WjBDMQswCQYDVQQGEwJDTjEcMBoGA1UEChMTaVRydXNDaGluYSBDby4s +THRkLjEWMBQGA1UEAxMNdlRydXMgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQAD +ggIPADCCAgoCggIBAL1VfGHTuB0EYgWgrmy3cLRB6ksDXhA/kFocizuwZotsSKYc +IrrVQJLuM7IjWcmOvFjai57QGfIvWcaMY1q6n6MLsLOaXLoRuBLpDLvPbmyAhykU +AyyNJJrIZIO1aqwTLDPxn9wsYTwaP3BVm60AUn/PBLn+NvqcwBauYv6WTEN+VRS+ +GrPSbcKvdmaVayqwlHeFXgQPYh1jdfdr58tbmnDsPmcF8P4HCIDPKNsFxhQnL4Z9 +8Cfe/+Z+M0jnCx5Y0ScrUw5XSmXX+6KAYPxMvDVTAWqXcoKv8R1w6Jz1717CbMdH +flqUhSZNO7rrTOiwCcJlwp2dCZtOtZcFrPUGoPc2BX70kLJrxLT5ZOrpGgrIDajt +J8nU57O5q4IikCc9Kuh8kO+8T/3iCiSn3mUkpF3qwHYw03dQ+A0Em5Q2AXPKBlim +0zvc+gRGE1WKyURHuFE5Gi7oNOJ5y1lKCn+8pu8fA2dqWSslYpPZUxlmPCdiKYZN +pGvu/9ROutW04o5IWgAZCfEF2c6Rsffr6TlP9m8EQ5pV9T4FFL2/s1m02I4zhKOQ +UqqzApVg+QxMaPnu1RcN+HFXtSXkKe5lXa/R7jwXC1pDxaWG6iSe4gUH3DRCEpHW +OXSuTEGC2/KmSNGzm/MzqvOmwMVO9fSddmPmAsYiS8GVP1BkLFTltvA8Kc9XAgMB +AAGjQjBAMB0GA1UdDgQWBBRUYnBj8XWEQ1iO0RYgscasGrz2iTAPBgNVHRMBAf8E +BTADAQH/MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAKbqSSaet +8PFww+SX8J+pJdVrnjT+5hpk9jprUrIQeBqfTNqK2uwcN1LgQkv7bHbKJAs5EhWd +nxEt/Hlk3ODg9d3gV8mlsnZwUKT+twpw1aA08XXXTUm6EdGz2OyC/+sOxL9kLX1j +bhd47F18iMjrjld22VkE+rxSH0Ws8HqA7Oxvdq6R2xCOBNyS36D25q5J08FsEhvM +Kar5CKXiNxTKsbhm7xqC5PD48acWabfbqWE8n/Uxy+QARsIvdLGx14HuqCaVvIiv +TDUHKgLKeBRtRytAVunLKmChZwOgzoy8sHJnxDHO2zTlJQNgJXtxmOTAGytfdELS +S8VZCAeHvsXDf+eW2eHcKJfWjwXj9ZtOyh1QRwVTsMo554WgicEFOwE30z9J4nfr +I8iIZjs9OXYhRvHsXyO466JmdXTBQPfYaJqT4i2pLr0cox7IdMakLXogqzu4sEb9 +b91fUlV1YvCXoHzXOP0l382gmxDPi7g4Xl7FtKYCNqEeXxzP4padKar9mK5S4fNB +UvupLnKWnyfjqnN9+BojZns7q2WwMgFLFT49ok8MKzWixtlnEjUwzXYuFrOZnk1P +Ti07NEPhmg4NpGaXutIcSkwsKouLgU9xGqndXHt7CMUADTdA43x7VF8vhV929ven +sBxXVsFy6K2ir40zSbofitzmdHxghm+Hl3s= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 43:e3:71:13:d8:b3:59:14:5d:b7:ce:8c:fd:35:fd:6f:bc:05:8d:45 +# Signature Algorithm: sha256WithRSAEncryption +# Issuer: C=CN, O=iTrusChina Co.,Ltd., CN=vTrus Root CA +# Validity +# Not Before: Jul 31 07:24:05 2018 GMT +# Not After : Jul 31 07:24:05 2043 GMT +# Subject: C=CN, O=iTrusChina Co.,Ltd., CN=vTrus Root CA +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (4096 bit) +# Modulus: +# 00:bd:55:7c:61:d3:b8:1d:04:62:05:a0:ae:6c:b7: +# 70:b4:41:ea:4b:03:5e:10:3f:90:5a:1c:8b:3b:b0: +# 66:8b:6c:48:a6:1c:22:ba:d5:40:92:ee:33:b2:23: +# 59:c9:8e:bc:58:da:8b:9e:d0:19:f2:2f:59:c6:8c: +# 63:5a:ba:9f:a3:0b:b0:b3:9a:5c:ba:11:b8:12:e9: +# 0c:bb:cf:6e:6c:80:87:29:14:03:2c:8d:24:9a:c8: +# 64:83:b5:6a:ac:13:2c:33:f1:9f:dc:2c:61:3c:1a: +# 3f:70:55:9b:ad:00:52:7f:cf:04:b9:fe:36:fa:9c: +# c0:16:ae:62:fe:96:4c:43:7e:55:14:be:1a:b3:d2: +# 6d:c2:af:76:66:95:6b:2a:b0:94:77:85:5e:04:0f: +# 62:1d:63:75:f7:6b:e7:cb:5b:9a:70:ec:3e:67:05: +# f0:fe:07:08:80:cf:28:db:05:c6:14:27:2f:86:7d: +# f0:27:de:ff:e6:7e:33:48:e7:0b:1e:58:d1:27:2b: +# 53:0e:57:4a:65:d7:fb:a2:80:60:fc:4c:bc:35:53: +# 01:6a:97:72:82:af:f1:1d:70:e8:9c:f5:ef:5e:c2: +# 6c:c7:47:7e:5a:94:85:26:4d:3b:ba:eb:4c:e8:b0: +# 09:c2:65:c2:9d:9d:09:9b:4e:b5:97:05:ac:f5:06: +# a0:f7:36:05:7e:f4:90:b2:6b:c4:b4:f9:64:ea:e9: +# 1a:0a:c8:0d:a8:ed:27:c9:d4:e7:b3:b9:ab:82:22: +# 90:27:3d:2a:e8:7c:90:ef:bc:4f:fd:e2:0a:24:a7: +# de:65:24:a4:5d:ea:c0:76:30:d3:77:50:f8:0d:04: +# 9b:94:36:01:73:ca:06:58:a6:d3:3b:dc:fa:04:46: +# 13:55:8a:c9:44:47:b8:51:39:1a:2e:e8:34:e2:79: +# cb:59:4a:0a:7f:bc:a6:ef:1f:03:67:6a:59:2b:25: +# 62:93:d9:53:19:66:3c:27:62:29:86:4d:a4:6b:ee: +# ff:d4:4e:ba:d5:b4:e2:8e:48:5a:00:19:09:f1:05: +# d9:ce:91:b1:f7:eb:e9:39:4f:f6:6f:04:43:9a:55: +# f5:3e:05:14:bd:bf:b3:59:b4:d8:8e:33:84:a3:90: +# 52:aa:b3:02:95:60:f9:0c:4c:68:f9:ee:d5:17:0d: +# f8:71:57:b5:25:e4:29:ee:65:5d:af:d1:ee:3c:17: +# 0b:5a:43:c5:a5:86:ea:24:9e:e2:05:07:dc:34:42: +# 12:91:d6:39:74:ae:4c:41:82:db:f2:a6:48:d1:b3: +# 9b:f3:33:aa:f3:a6:c0:c5:4e:f5:f4:9d:76:63:e6: +# 02:c6:22:4b:c1:95:3f:50:64:2c:54:e5:b6:f0:3c: +# 29:cf:57 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# X509v3 Subject Key Identifier: +# 54:62:70:63:F1:75:84:43:58:8E:D1:16:20:B1:C6:AC:1A:BC:F6:89 +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Key Usage: critical +# Certificate Sign, CRL Sign +# Signature Algorithm: sha256WithRSAEncryption +# Signature Value: +# 29:ba:92:49:a7:ad:f0:f1:70:c3:e4:97:f0:9f:a9:25:d5:6b: +# 9e:34:fe:e6:1a:64:f6:3a:6b:52:b2:10:78:1a:9f:4c:da:8a: +# da:ec:1c:37:52:e0:42:4b:fb:6c:76:ca:24:0b:39:12:15:9d: +# 9f:11:2d:fc:79:64:dc:e0:e0:f5:dd:e0:57:c9:a5:b2:76:70: +# 50:a4:fe:b7:0a:70:d5:a0:34:f1:75:d7:4d:49:ba:11:d1:b3: +# d8:ec:82:ff:eb:0e:c4:bf:64:2d:7d:63:6e:17:78:ec:5d:7c: +# 88:c8:eb:8e:57:76:d9:59:04:fa:bc:52:1f:45:ac:f0:7a:80: +# ec:ec:6f:76:ae:91:db:10:8e:04:dc:92:df:a0:f6:e6:ae:49: +# d3:c1:6c:12:1b:cc:29:aa:f9:08:a5:e2:37:14:ca:b1:b8:66: +# ef:1a:82:e4:f0:f8:f1:a7:16:69:b7:db:a9:61:3c:9f:f5:31: +# cb:e4:00:46:c2:2f:74:b1:b1:d7:81:ee:a8:26:95:bc:88:af: +# 4c:35:07:2a:02:ca:78:14:6d:47:2b:40:56:e9:cb:2a:60:a1: +# 67:03:a0:ce:8c:bc:b0:72:67:c4:31:ce:db:34:e5:25:03:60: +# 25:7b:71:98:e4:c0:1b:2b:5f:74:42:d2:4b:c5:59:08:07:87: +# be:c5:c3:7f:e7:96:d9:e1:dc:28:97:d6:8f:05:e3:f5:9b:4e: +# ca:1d:50:47:05:53:b0:ca:39:e7:85:a0:89:c1:05:3b:01:37: +# d3:3f:49:e2:77:eb:23:c8:88:66:3b:3d:39:76:21:46:f1:ec: +# 5f:23:b8:eb:a2:66:75:74:c1:40:f7:d8:68:9a:93:e2:2d:a9: +# 2e:bd:1c:a3:1e:c8:74:c6:a4:2d:7a:20:ab:3b:b8:b0:46:fd: +# 6f:dd:5f:52:55:75:62:f0:97:a0:7c:d7:38:fd:25:df:cd:a0: +# 9b:10:cf:8b:b8:38:5e:5e:c5:b4:a6:02:36:a1:1e:5f:1c:cf: +# e2:96:9d:29:aa:fd:98:ae:52:e1:f3:41:52:fb:a9:2e:72:96: +# 9f:27:e3:aa:73:7d:f8:1a:23:66:7b:3b:ab:65:b0:32:01:4b: +# 15:3e:3d:a2:4f:0c:2b:35:a2:c6:d9:67:12:35:30:cd:76:2e: +# 16:b3:99:9e:4d:4f:4e:2d:3b:34:43:e1:9a:0e:0d:a4:66:97: +# ba:d2:1c:4a:4c:2c:2a:8b:8b:81:4f:71:1a:a9:dd:5c:7b:7b: +# 08:c5:00:0d:37:40:e3:7c:7b:54:5f:2f:85:5f:76:f6:f7:a7: +# b0:1c:57:56:c1:72:e8:ad:a2:af:8d:33:49:ba:1f:8a:dc:e6: +# 74:7c:60:86:6f:87:97:7b + +[p11-kit-object-v1] +label: "XRamp Global CA Root" +class: x-certificate-extension +object-id: 2.5.29.37 +value: "0 %06%03U%1d%25%01%01%ff%04%160%14%06%08%2b%06%01%05%05%07%03%04%06%08%2b%06%01%05%05%07%03%01" +modifiable: false +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmCQevRW0ut/HjKUntjgL +afO2TqgsLiEdXETfIV1+I3T+Xn60SremrR+u4AYW4ptb2Wd0a12AjymdhhvZnA2Y +bXYQKFjkZbB/Sph5n+DDMX6AK7WMwEA7EYbQy6KGNmCk1TCCbdlu0A8SBDOXX09h +WvDk+ZGr5x07vOjP9GstNHziSGEcjvNhRMxvoEqplLBN2uepNHpyOKhBzDyUEX3r +yKaMt4bLyjM72T03i/t6PoYs53PXClesZJsZ6/QPBAiKrAMXGWT0WiUijTQssvZo +HRJt04oeFNrEj6biI4XVeg29auDp7OwXu0IbZ6ol7UWDIfzByXzVYj768sUt0/3U +ZQIDAQAB +-----END PUBLIC KEY----- + +[p11-kit-object-v1] +label: "XRamp Global CA Root" +trusted: true +nss-mozilla-ca-policy: true +modifiable: false +-----BEGIN CERTIFICATE----- +MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCB +gjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEk +MCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRY +UmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQxMTAxMTcx +NDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3 +dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2Vy +dmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS6 +38eMpSe2OAtp87ZOqCwuIR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCP +KZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMxfoArtYzAQDsRhtDLooY2YKTVMIJt2W7Q +DxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FEzG+gSqmUsE3a56k0enI4 +qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqsAxcZZPRa +JSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNVi +PvryxS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0P +BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASs +jVy16bYbMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0 +eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQEwDQYJKoZIhvcNAQEFBQAD +ggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc/Kh4ZzXxHfAR +vbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt +qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLa +IR9NmXmd4c8nnxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSy +i6mx5O+aGtA9aZnuqCij4Tyz8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQ +O+7ETPTsJ3xCwnR8gooJybQDJbw= +-----END CERTIFICATE----- +#Certificate: +# Data: +# Version: 3 (0x2) +# Serial Number: +# 50:94:6c:ec:18:ea:d5:9c:4d:d5:97:ef:75:8f:a0:ad +# Signature Algorithm: sha1WithRSAEncryption +# Issuer: C=US, OU=www.xrampsecurity.com, O=XRamp Security Services Inc, CN=XRamp Global Certification Authority +# Validity +# Not Before: Nov 1 17:14:04 2004 GMT +# Not After : Jan 1 05:37:19 2035 GMT +# Subject: C=US, OU=www.xrampsecurity.com, O=XRamp Security Services Inc, CN=XRamp Global Certification Authority +# Subject Public Key Info: +# Public Key Algorithm: rsaEncryption +# Public-Key: (2048 bit) +# Modulus: +# 00:98:24:1e:bd:15:b4:ba:df:c7:8c:a5:27:b6:38: +# 0b:69:f3:b6:4e:a8:2c:2e:21:1d:5c:44:df:21:5d: +# 7e:23:74:fe:5e:7e:b4:4a:b7:a6:ad:1f:ae:e0:06: +# 16:e2:9b:5b:d9:67:74:6b:5d:80:8f:29:9d:86:1b: +# d9:9c:0d:98:6d:76:10:28:58:e4:65:b0:7f:4a:98: +# 79:9f:e0:c3:31:7e:80:2b:b5:8c:c0:40:3b:11:86: +# d0:cb:a2:86:36:60:a4:d5:30:82:6d:d9:6e:d0:0f: +# 12:04:33:97:5f:4f:61:5a:f0:e4:f9:91:ab:e7:1d: +# 3b:bc:e8:cf:f4:6b:2d:34:7c:e2:48:61:1c:8e:f3: +# 61:44:cc:6f:a0:4a:a9:94:b0:4d:da:e7:a9:34:7a: +# 72:38:a8:41:cc:3c:94:11:7d:eb:c8:a6:8c:b7:86: +# cb:ca:33:3b:d9:3d:37:8b:fb:7a:3e:86:2c:e7:73: +# d7:0a:57:ac:64:9b:19:eb:f4:0f:04:08:8a:ac:03: +# 17:19:64:f4:5a:25:22:8d:34:2c:b2:f6:68:1d:12: +# 6d:d3:8a:1e:14:da:c4:8f:a6:e2:23:85:d5:7a:0d: +# bd:6a:e0:e9:ec:ec:17:bb:42:1b:67:aa:25:ed:45: +# 83:21:fc:c1:c9:7c:d5:62:3e:fa:f2:c5:2d:d3:fd: +# d4:65 +# Exponent: 65537 (0x10001) +# X509v3 extensions: +# 1.3.6.1.4.1.311.20.2: +# ...C.A +# X509v3 Key Usage: +# Digital Signature, Certificate Sign, CRL Sign +# X509v3 Basic Constraints: critical +# CA:TRUE +# X509v3 Subject Key Identifier: +# C6:4F:A2:3D:06:63:84:09:9C:CE:62:E4:04:AC:8D:5C:B5:E9:B6:1B +# X509v3 CRL Distribution Points: +# Full Name: +# URI:http://crl.xrampsecurity.com/XGCA.crl +# +# 1.3.6.1.4.1.311.21.1: +# ... +# Signature Algorithm: sha1WithRSAEncryption +# Signature Value: +# 91:15:39:03:01:1b:67:fb:4a:1c:f9:0a:60:5b:a1:da:4d:97: +# 62:f9:24:53:27:d7:82:64:4e:90:2e:c3:49:1b:2b:9a:dc:fc: +# a8:78:67:35:f1:1d:f0:11:bd:b7:48:e3:10:f6:0d:df:3f:d2: +# c9:b6:aa:55:a4:48:ba:02:db:de:59:2e:15:5b:3b:9d:16:7d: +# 47:d7:37:ea:5f:4d:76:12:36:bb:1f:d7:a1:81:04:46:20:a3: +# 2c:6d:a9:9e:01:7e:3f:29:ce:00:93:df:fd:c9:92:73:89:89: +# 64:9e:e7:2b:e4:1c:91:2c:d2:b9:ce:7d:ce:6f:31:99:d3:e6: +# be:d2:1e:90:f0:09:14:79:5c:23:ab:4d:d2:da:21:1f:4d:99: +# 79:9d:e1:cf:27:9f:10:9b:1c:88:0d:b0:8a:64:41:31:b8:0e: +# 6c:90:24:a4:9b:5c:71:8f:ba:bb:7e:1c:1b:db:6a:80:0f:21: +# bc:e9:db:a6:b7:40:f4:b2:8b:a9:b1:e4:ef:9a:1a:d0:3d:69: +# 99:ee:a8:28:a3:e1:3c:b3:f0:b2:11:9c:cf:7c:40:e6:dd:e7: +# 43:7d:a2:d8:3a:b5:a9:8d:f2:34:99:c4:d4:10:e1:06:fd:09: +# 84:10:3b:ee:c4:4c:f4:ec:27:7c:42:c2:74:7c:82:8a:09:c9: +# b4:03:25:bc + diff --git a/git/usr/share/terminfo/63/cygwin b/git/usr/share/terminfo/63/cygwin new file mode 100644 index 0000000000000000000000000000000000000000..8219fa6afcc04edd1faa74328c19026b2bb50071 Binary files /dev/null and b/git/usr/share/terminfo/63/cygwin differ diff --git a/git/usr/share/terminfo/64/dumb b/git/usr/share/terminfo/64/dumb new file mode 100644 index 0000000000000000000000000000000000000000..fd4091a9946019db595d9b4ac2a6b935fe42dd20 Binary files /dev/null and b/git/usr/share/terminfo/64/dumb differ diff --git a/git/usr/share/terminfo/6d/ms-terminal b/git/usr/share/terminfo/6d/ms-terminal new file mode 100644 index 0000000000000000000000000000000000000000..8e4ed6d4bcc4a764d25215d1f26c7673eb291fbe Binary files /dev/null and b/git/usr/share/terminfo/6d/ms-terminal differ diff --git a/git/usr/share/terminfo/73/screen b/git/usr/share/terminfo/73/screen new file mode 100644 index 0000000000000000000000000000000000000000..f7de39541cd935a771316bf9497c936bdf4d06e9 Binary files /dev/null and b/git/usr/share/terminfo/73/screen differ diff --git a/git/usr/share/terminfo/73/screen+fkeys b/git/usr/share/terminfo/73/screen+fkeys new file mode 100644 index 0000000000000000000000000000000000000000..a3564ab154d525b9d3cea7eb70485cf0b10400f9 Binary files /dev/null and b/git/usr/share/terminfo/73/screen+fkeys differ diff --git a/git/usr/share/terminfo/73/screen+italics b/git/usr/share/terminfo/73/screen+italics new file mode 100644 index 0000000000000000000000000000000000000000..efbdd64e18596cec43adac058c688bac9079c5ec Binary files /dev/null and b/git/usr/share/terminfo/73/screen+italics differ diff --git a/git/usr/share/terminfo/73/screen-16color b/git/usr/share/terminfo/73/screen-16color new file mode 100644 index 0000000000000000000000000000000000000000..4eecda2d6b25d077010b424d62547718d1df1cbd Binary files /dev/null and b/git/usr/share/terminfo/73/screen-16color differ diff --git a/git/usr/share/terminfo/73/screen-16color-bce b/git/usr/share/terminfo/73/screen-16color-bce new file mode 100644 index 0000000000000000000000000000000000000000..77a97b4969339b98776255a4a383cb333f5c680a Binary files /dev/null and b/git/usr/share/terminfo/73/screen-16color-bce differ diff --git a/git/usr/share/terminfo/73/screen-16color-bce-s b/git/usr/share/terminfo/73/screen-16color-bce-s new file mode 100644 index 0000000000000000000000000000000000000000..6c4e271142cc1e94434fabf73d69929ba46e86a6 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-16color-bce-s differ diff --git a/git/usr/share/terminfo/73/screen-16color-s b/git/usr/share/terminfo/73/screen-16color-s new file mode 100644 index 0000000000000000000000000000000000000000..34373f07b04b84aae02a0343d465b1e89005fc38 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-16color-s differ diff --git a/git/usr/share/terminfo/73/screen-256color b/git/usr/share/terminfo/73/screen-256color new file mode 100644 index 0000000000000000000000000000000000000000..ee1f3c063d4ef25ed1cdfc62c2865cca1d256f36 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-256color differ diff --git a/git/usr/share/terminfo/73/screen-256color-bce b/git/usr/share/terminfo/73/screen-256color-bce new file mode 100644 index 0000000000000000000000000000000000000000..aec969a46b23d3090e1e88f1575271dbc60eea59 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-256color-bce differ diff --git a/git/usr/share/terminfo/73/screen-256color-bce-s b/git/usr/share/terminfo/73/screen-256color-bce-s new file mode 100644 index 0000000000000000000000000000000000000000..110a4203f2716537fe41e06b5697ca6521b889d8 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-256color-bce-s differ diff --git a/git/usr/share/terminfo/73/screen-256color-s b/git/usr/share/terminfo/73/screen-256color-s new file mode 100644 index 0000000000000000000000000000000000000000..5bc9ee60c0e0ab13468d17c13eb75d3820da8f97 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-256color-s differ diff --git a/git/usr/share/terminfo/73/screen-base b/git/usr/share/terminfo/73/screen-base new file mode 100644 index 0000000000000000000000000000000000000000..8079c3c06ef2a57fa5f4787a8cd05de1ff560c11 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-base differ diff --git a/git/usr/share/terminfo/73/screen-bce b/git/usr/share/terminfo/73/screen-bce new file mode 100644 index 0000000000000000000000000000000000000000..7de45e16391054c7ec15a1bc3ec53cc2a60eaeb4 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce differ diff --git a/git/usr/share/terminfo/73/screen-bce.Eterm b/git/usr/share/terminfo/73/screen-bce.Eterm new file mode 100644 index 0000000000000000000000000000000000000000..36ac7eaf978d3a1b2a0aa446d5bec88e9fe8da17 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.Eterm differ diff --git a/git/usr/share/terminfo/73/screen-bce.gnome b/git/usr/share/terminfo/73/screen-bce.gnome new file mode 100644 index 0000000000000000000000000000000000000000..70ad28cbcf06fca1f5ccb229b5e7e14808fb67ad Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.gnome differ diff --git a/git/usr/share/terminfo/73/screen-bce.konsole b/git/usr/share/terminfo/73/screen-bce.konsole new file mode 100644 index 0000000000000000000000000000000000000000..f4a855692983e8f1c04dff4ce3d19f28bc998cac Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.konsole differ diff --git a/git/usr/share/terminfo/73/screen-bce.linux b/git/usr/share/terminfo/73/screen-bce.linux new file mode 100644 index 0000000000000000000000000000000000000000..1a7d6e5aab6c0c38491f67c61656a71a69fa81bd Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.linux differ diff --git a/git/usr/share/terminfo/73/screen-bce.mrxvt b/git/usr/share/terminfo/73/screen-bce.mrxvt new file mode 100644 index 0000000000000000000000000000000000000000..80e1fe5e6000222e8f3d5ffff2ce714f2ec6b0cb Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.mrxvt differ diff --git a/git/usr/share/terminfo/73/screen-bce.rxvt b/git/usr/share/terminfo/73/screen-bce.rxvt new file mode 100644 index 0000000000000000000000000000000000000000..5f647972865cd9d2380be27cf008700982a1f2b9 Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.rxvt differ diff --git a/git/usr/share/terminfo/73/screen-bce.xterm-new b/git/usr/share/terminfo/73/screen-bce.xterm-new new file mode 100644 index 0000000000000000000000000000000000000000..31b8ab5f3e613099534455b0632a16f05d6efc0a Binary files /dev/null and b/git/usr/share/terminfo/73/screen-bce.xterm-new differ diff --git a/git/usr/share/terminfo/73/screen-s b/git/usr/share/terminfo/73/screen-s new file mode 100644 index 0000000000000000000000000000000000000000..d21f98fd4d448a5ec4bacbc1e3f14d2b66f5a5da Binary files /dev/null and b/git/usr/share/terminfo/73/screen-s differ diff --git a/git/usr/share/terminfo/73/screen-w b/git/usr/share/terminfo/73/screen-w new file mode 100644 index 0000000000000000000000000000000000000000..d66e446a1d9a171e101419fde4d847d03bd1339b Binary files /dev/null and b/git/usr/share/terminfo/73/screen-w differ diff --git a/git/usr/share/terminfo/73/screen.Eterm b/git/usr/share/terminfo/73/screen.Eterm new file mode 100644 index 0000000000000000000000000000000000000000..8ed159d35a476aeed062d3783b6c7a82790ebfee Binary files /dev/null and b/git/usr/share/terminfo/73/screen.Eterm differ diff --git a/git/usr/share/terminfo/73/screen.gnome b/git/usr/share/terminfo/73/screen.gnome new file mode 100644 index 0000000000000000000000000000000000000000..b701f72a0d9796476aabf24b13d114fdf3bf097a Binary files /dev/null and b/git/usr/share/terminfo/73/screen.gnome differ diff --git a/git/usr/share/terminfo/73/screen.konsole b/git/usr/share/terminfo/73/screen.konsole new file mode 100644 index 0000000000000000000000000000000000000000..33bf8a7c8800327328319f980343bf2b0a665875 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.konsole differ diff --git a/git/usr/share/terminfo/73/screen.konsole-256color b/git/usr/share/terminfo/73/screen.konsole-256color new file mode 100644 index 0000000000000000000000000000000000000000..d493913a1b7feec4c859eaaece373638cb084b37 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.konsole-256color differ diff --git a/git/usr/share/terminfo/73/screen.linux b/git/usr/share/terminfo/73/screen.linux new file mode 100644 index 0000000000000000000000000000000000000000..fd38773fe5a930e3871bd6e50236cdb5a83970fa Binary files /dev/null and b/git/usr/share/terminfo/73/screen.linux differ diff --git a/git/usr/share/terminfo/73/screen.linux-m1 b/git/usr/share/terminfo/73/screen.linux-m1 new file mode 100644 index 0000000000000000000000000000000000000000..2fe7a63b466c99b2745a467e0f56bec1dcdebb50 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.linux-m1 differ diff --git a/git/usr/share/terminfo/73/screen.linux-m1b b/git/usr/share/terminfo/73/screen.linux-m1b new file mode 100644 index 0000000000000000000000000000000000000000..9619338c0c30a88478c600c4e56cfff4ab964f5d Binary files /dev/null and b/git/usr/share/terminfo/73/screen.linux-m1b differ diff --git a/git/usr/share/terminfo/73/screen.linux-m2 b/git/usr/share/terminfo/73/screen.linux-m2 new file mode 100644 index 0000000000000000000000000000000000000000..c30fce2b818c98d287c3e9af7c73d41110b8ce82 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.linux-m2 differ diff --git a/git/usr/share/terminfo/73/screen.linux-s b/git/usr/share/terminfo/73/screen.linux-s new file mode 100644 index 0000000000000000000000000000000000000000..fd38773fe5a930e3871bd6e50236cdb5a83970fa Binary files /dev/null and b/git/usr/share/terminfo/73/screen.linux-s differ diff --git a/git/usr/share/terminfo/73/screen.minitel1 b/git/usr/share/terminfo/73/screen.minitel1 new file mode 100644 index 0000000000000000000000000000000000000000..6f0ee3108bc6ceeeb3be46b15ae46c8a3b1a2043 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel1 differ diff --git a/git/usr/share/terminfo/73/screen.minitel1-nb b/git/usr/share/terminfo/73/screen.minitel1-nb new file mode 100644 index 0000000000000000000000000000000000000000..d48356fd877d3cf8a966f7c635889a98a9343aec Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel1-nb differ diff --git a/git/usr/share/terminfo/73/screen.minitel12-80 b/git/usr/share/terminfo/73/screen.minitel12-80 new file mode 100644 index 0000000000000000000000000000000000000000..b395a0127eb2959002abe701a0bce9ff95f12481 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel12-80 differ diff --git a/git/usr/share/terminfo/73/screen.minitel1b b/git/usr/share/terminfo/73/screen.minitel1b new file mode 100644 index 0000000000000000000000000000000000000000..e0b8a95a7efa35808cb8618b7a138d5de89bfea5 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel1b differ diff --git a/git/usr/share/terminfo/73/screen.minitel1b-80 b/git/usr/share/terminfo/73/screen.minitel1b-80 new file mode 100644 index 0000000000000000000000000000000000000000..b395a0127eb2959002abe701a0bce9ff95f12481 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel1b-80 differ diff --git a/git/usr/share/terminfo/73/screen.minitel1b-nb b/git/usr/share/terminfo/73/screen.minitel1b-nb new file mode 100644 index 0000000000000000000000000000000000000000..792a38e3c879ec42ac5fa02b0047e795ed206b09 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel1b-nb differ diff --git a/git/usr/share/terminfo/73/screen.minitel2-80 b/git/usr/share/terminfo/73/screen.minitel2-80 new file mode 100644 index 0000000000000000000000000000000000000000..b395a0127eb2959002abe701a0bce9ff95f12481 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.minitel2-80 differ diff --git a/git/usr/share/terminfo/73/screen.mlterm b/git/usr/share/terminfo/73/screen.mlterm new file mode 100644 index 0000000000000000000000000000000000000000..ae616e730021ddeccc4130f20204a46fd9a32bd5 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.mlterm differ diff --git a/git/usr/share/terminfo/73/screen.mlterm-256color b/git/usr/share/terminfo/73/screen.mlterm-256color new file mode 100644 index 0000000000000000000000000000000000000000..7d78a74f18104d5dac029703f4411e391a060889 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.mlterm-256color differ diff --git a/git/usr/share/terminfo/73/screen.mrxvt b/git/usr/share/terminfo/73/screen.mrxvt new file mode 100644 index 0000000000000000000000000000000000000000..7ce35ef264d0f5ceec289ad55de922435214f7ba Binary files /dev/null and b/git/usr/share/terminfo/73/screen.mrxvt differ diff --git a/git/usr/share/terminfo/73/screen.putty b/git/usr/share/terminfo/73/screen.putty new file mode 100644 index 0000000000000000000000000000000000000000..017b12b2d9019f6aada5eee2b9642089540b48d8 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.putty differ diff --git a/git/usr/share/terminfo/73/screen.putty-256color b/git/usr/share/terminfo/73/screen.putty-256color new file mode 100644 index 0000000000000000000000000000000000000000..e98e3644d9dd019263bff80696db7f7a5dd4830b Binary files /dev/null and b/git/usr/share/terminfo/73/screen.putty-256color differ diff --git a/git/usr/share/terminfo/73/screen.putty-m1 b/git/usr/share/terminfo/73/screen.putty-m1 new file mode 100644 index 0000000000000000000000000000000000000000..72ea291f12a8aea341ef37c648d7b53c8e6de9b9 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.putty-m1 differ diff --git a/git/usr/share/terminfo/73/screen.putty-m1b b/git/usr/share/terminfo/73/screen.putty-m1b new file mode 100644 index 0000000000000000000000000000000000000000..aaa59a08bb4061c16d04ead0745e4abca1c73d42 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.putty-m1b differ diff --git a/git/usr/share/terminfo/73/screen.putty-m2 b/git/usr/share/terminfo/73/screen.putty-m2 new file mode 100644 index 0000000000000000000000000000000000000000..3479b22d6e53589bedaf6a1624a0e38de14da3b1 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.putty-m2 differ diff --git a/git/usr/share/terminfo/73/screen.rxvt b/git/usr/share/terminfo/73/screen.rxvt new file mode 100644 index 0000000000000000000000000000000000000000..a69d058f7865f81c07f1e4e5db5759f9545788ab Binary files /dev/null and b/git/usr/share/terminfo/73/screen.rxvt differ diff --git a/git/usr/share/terminfo/73/screen.teraterm b/git/usr/share/terminfo/73/screen.teraterm new file mode 100644 index 0000000000000000000000000000000000000000..a308063c9440de656ced707174ebc8e1835f0a0b Binary files /dev/null and b/git/usr/share/terminfo/73/screen.teraterm differ diff --git a/git/usr/share/terminfo/73/screen.vte b/git/usr/share/terminfo/73/screen.vte new file mode 100644 index 0000000000000000000000000000000000000000..f3d78678b737c81daaec6ba01f8e12762ec54c39 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.vte differ diff --git a/git/usr/share/terminfo/73/screen.vte-256color b/git/usr/share/terminfo/73/screen.vte-256color new file mode 100644 index 0000000000000000000000000000000000000000..7a96c0ed62a7992e057bdaabe40c1e39b004f22d Binary files /dev/null and b/git/usr/share/terminfo/73/screen.vte-256color differ diff --git a/git/usr/share/terminfo/73/screen.xterm-256color b/git/usr/share/terminfo/73/screen.xterm-256color new file mode 100644 index 0000000000000000000000000000000000000000..96c3896c2a3cbc3031f34196914270c258efc34f Binary files /dev/null and b/git/usr/share/terminfo/73/screen.xterm-256color differ diff --git a/git/usr/share/terminfo/73/screen.xterm-new b/git/usr/share/terminfo/73/screen.xterm-new new file mode 100644 index 0000000000000000000000000000000000000000..0650c9617eaafb15a0e9bedf9101bd20c0e41414 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.xterm-new differ diff --git a/git/usr/share/terminfo/73/screen.xterm-r6 b/git/usr/share/terminfo/73/screen.xterm-r6 new file mode 100644 index 0000000000000000000000000000000000000000..934308f0f915c23e85c75a731833ba5bcfa71239 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.xterm-r6 differ diff --git a/git/usr/share/terminfo/73/screen.xterm-xfree86 b/git/usr/share/terminfo/73/screen.xterm-xfree86 new file mode 100644 index 0000000000000000000000000000000000000000..0650c9617eaafb15a0e9bedf9101bd20c0e41414 Binary files /dev/null and b/git/usr/share/terminfo/73/screen.xterm-xfree86 differ diff --git a/git/usr/share/terminfo/73/screen2 b/git/usr/share/terminfo/73/screen2 new file mode 100644 index 0000000000000000000000000000000000000000..ccc66853dd3df37dbc2a996a07946e16c2a7bca2 Binary files /dev/null and b/git/usr/share/terminfo/73/screen2 differ diff --git a/git/usr/share/terminfo/73/screen3 b/git/usr/share/terminfo/73/screen3 new file mode 100644 index 0000000000000000000000000000000000000000..a1f00e06ba5c7227d0ce4836ce8b4bfd6643a5be Binary files /dev/null and b/git/usr/share/terminfo/73/screen3 differ diff --git a/git/usr/share/terminfo/73/screen4 b/git/usr/share/terminfo/73/screen4 new file mode 100644 index 0000000000000000000000000000000000000000..026dde616c03902e6942b626ad47d54f5ec0d257 Binary files /dev/null and b/git/usr/share/terminfo/73/screen4 differ diff --git a/git/usr/share/terminfo/73/screen5 b/git/usr/share/terminfo/73/screen5 new file mode 100644 index 0000000000000000000000000000000000000000..ce5f7ecd6a7ec4901f9c74343e5fd5a51ae32fe4 Binary files /dev/null and b/git/usr/share/terminfo/73/screen5 differ diff --git a/git/usr/share/terminfo/78/xterm b/git/usr/share/terminfo/78/xterm new file mode 100644 index 0000000000000000000000000000000000000000..9f634500641efa107c01c25c329ad0fb5e77b868 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm differ diff --git a/git/usr/share/terminfo/78/xterm+256color b/git/usr/share/terminfo/78/xterm+256color new file mode 100644 index 0000000000000000000000000000000000000000..a173456727acc6d5c7b503881b120218a8785eff Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+256color differ diff --git a/git/usr/share/terminfo/78/xterm+256color2 b/git/usr/share/terminfo/78/xterm+256color2 new file mode 100644 index 0000000000000000000000000000000000000000..d71cead30026011843335a53e342f8f736e1098b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+256color2 differ diff --git a/git/usr/share/terminfo/78/xterm+256setaf b/git/usr/share/terminfo/78/xterm+256setaf new file mode 100644 index 0000000000000000000000000000000000000000..12785d46c62f5fd5b298fc5e6d2542691d0f2ef2 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+256setaf differ diff --git a/git/usr/share/terminfo/78/xterm+256setaf2 b/git/usr/share/terminfo/78/xterm+256setaf2 new file mode 100644 index 0000000000000000000000000000000000000000..da0a0e57dcd6eba3625159275275e7f8c38c17b6 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+256setaf2 differ diff --git a/git/usr/share/terminfo/78/xterm+88color b/git/usr/share/terminfo/78/xterm+88color new file mode 100644 index 0000000000000000000000000000000000000000..4e3b92ea93704b099529715e7f5b3bcd0b3833ce Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+88color differ diff --git a/git/usr/share/terminfo/78/xterm+88color2 b/git/usr/share/terminfo/78/xterm+88color2 new file mode 100644 index 0000000000000000000000000000000000000000..5bd479df186bb7a80b69d442063986e4b68f6194 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+88color2 differ diff --git a/git/usr/share/terminfo/78/xterm+acs b/git/usr/share/terminfo/78/xterm+acs new file mode 100644 index 0000000000000000000000000000000000000000..10be2438220985e474e2a7e20f69cdb757f65fbd Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+acs differ diff --git a/git/usr/share/terminfo/78/xterm+alt+title b/git/usr/share/terminfo/78/xterm+alt+title new file mode 100644 index 0000000000000000000000000000000000000000..c3a2a19fbce74d4a671b5bc29ba81cca3516974d Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+alt+title differ diff --git a/git/usr/share/terminfo/78/xterm+alt1049 b/git/usr/share/terminfo/78/xterm+alt1049 new file mode 100644 index 0000000000000000000000000000000000000000..a3912c1487f3699afb3305a17517a979ebd6c251 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+alt1049 differ diff --git a/git/usr/share/terminfo/78/xterm+alt47 b/git/usr/share/terminfo/78/xterm+alt47 new file mode 100644 index 0000000000000000000000000000000000000000..9b82deea41cd3a337455fd32036e45526e18a635 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+alt47 differ diff --git a/git/usr/share/terminfo/78/xterm+app b/git/usr/share/terminfo/78/xterm+app new file mode 100644 index 0000000000000000000000000000000000000000..0df7c394e41e7869148d19aae00502a58613c86d Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+app differ diff --git a/git/usr/share/terminfo/78/xterm+app+pc b/git/usr/share/terminfo/78/xterm+app+pc new file mode 100644 index 0000000000000000000000000000000000000000..970e20df2dcf6afa981e5e45a3fe328a9744f136 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+app+pc differ diff --git a/git/usr/share/terminfo/78/xterm+decedit b/git/usr/share/terminfo/78/xterm+decedit new file mode 100644 index 0000000000000000000000000000000000000000..a3fa820c53e9ae15799940171c52d74c5e59c79e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+decedit differ diff --git a/git/usr/share/terminfo/78/xterm+direct b/git/usr/share/terminfo/78/xterm+direct new file mode 100644 index 0000000000000000000000000000000000000000..3f00ab2f9f0f1dc2076088941b0150bdc274194c Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+direct differ diff --git a/git/usr/share/terminfo/78/xterm+direct16 b/git/usr/share/terminfo/78/xterm+direct16 new file mode 100644 index 0000000000000000000000000000000000000000..90783be9e810783b5e945777a3b17a8a1e73bf5e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+direct16 differ diff --git a/git/usr/share/terminfo/78/xterm+direct2 b/git/usr/share/terminfo/78/xterm+direct2 new file mode 100644 index 0000000000000000000000000000000000000000..8a5e08fcb62de93efab69b138bb6f6a6937fcfac Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+direct2 differ diff --git a/git/usr/share/terminfo/78/xterm+direct256 b/git/usr/share/terminfo/78/xterm+direct256 new file mode 100644 index 0000000000000000000000000000000000000000..fff23218e5dca0fe2cc21bb801ea95c0bd83d462 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+direct256 differ diff --git a/git/usr/share/terminfo/78/xterm+edit b/git/usr/share/terminfo/78/xterm+edit new file mode 100644 index 0000000000000000000000000000000000000000..9371ad3d6f87aa73d7446d1509329cfe1256838e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+edit differ diff --git a/git/usr/share/terminfo/78/xterm+focus b/git/usr/share/terminfo/78/xterm+focus new file mode 100644 index 0000000000000000000000000000000000000000..3c36cd06a65f56e0a342002c03adabcef20227a3 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+focus differ diff --git a/git/usr/share/terminfo/78/xterm+indirect b/git/usr/share/terminfo/78/xterm+indirect new file mode 100644 index 0000000000000000000000000000000000000000..6f6931b0923a821b7d795febefd17b0a693b2751 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+indirect differ diff --git a/git/usr/share/terminfo/78/xterm+kbs b/git/usr/share/terminfo/78/xterm+kbs new file mode 100644 index 0000000000000000000000000000000000000000..64bcf69c698b87317cc74cb4a7252dc5e1906fea Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+kbs differ diff --git a/git/usr/share/terminfo/78/xterm+keypad b/git/usr/share/terminfo/78/xterm+keypad new file mode 100644 index 0000000000000000000000000000000000000000..65ef9e6b5915d1b4ebf416eb0eaac4deffeb1591 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+keypad differ diff --git a/git/usr/share/terminfo/78/xterm+meta b/git/usr/share/terminfo/78/xterm+meta new file mode 100644 index 0000000000000000000000000000000000000000..9864a0c3c10c8a25929a00c7a00e284895fb8bcc Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+meta differ diff --git a/git/usr/share/terminfo/78/xterm+noalt b/git/usr/share/terminfo/78/xterm+noalt new file mode 100644 index 0000000000000000000000000000000000000000..edd97e65f1e4be6c22fa68c26d512ac52f544b53 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+noalt differ diff --git a/git/usr/share/terminfo/78/xterm+noapp b/git/usr/share/terminfo/78/xterm+noapp new file mode 100644 index 0000000000000000000000000000000000000000..590fd84323fbce6d014277c271a0c469a812960b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+noapp differ diff --git a/git/usr/share/terminfo/78/xterm+nofkeys b/git/usr/share/terminfo/78/xterm+nofkeys new file mode 100644 index 0000000000000000000000000000000000000000..4b0bab55efdac37c51eb50e6a23051a7c498cd16 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+nofkeys differ diff --git a/git/usr/share/terminfo/78/xterm+nopcfkeys b/git/usr/share/terminfo/78/xterm+nopcfkeys new file mode 100644 index 0000000000000000000000000000000000000000..6101caecb199ebb75316beedae2b764a57f117ce Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+nopcfkeys differ diff --git a/git/usr/share/terminfo/78/xterm+osc104 b/git/usr/share/terminfo/78/xterm+osc104 new file mode 100644 index 0000000000000000000000000000000000000000..97132d947ea530f0b52dde319baf70a8f3247006 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+osc104 differ diff --git a/git/usr/share/terminfo/78/xterm+pc+edit b/git/usr/share/terminfo/78/xterm+pc+edit new file mode 100644 index 0000000000000000000000000000000000000000..0872437abb72c7bc0473fba099ffb0b394cf420b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pc+edit differ diff --git a/git/usr/share/terminfo/78/xterm+pcc0 b/git/usr/share/terminfo/78/xterm+pcc0 new file mode 100644 index 0000000000000000000000000000000000000000..ad2b3c972921d591cb729935f0ee12c17192b1ba Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcc0 differ diff --git a/git/usr/share/terminfo/78/xterm+pcc1 b/git/usr/share/terminfo/78/xterm+pcc1 new file mode 100644 index 0000000000000000000000000000000000000000..537312cc9ee4eb3a7e62cdad87fbdc98745ff887 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcc1 differ diff --git a/git/usr/share/terminfo/78/xterm+pcc2 b/git/usr/share/terminfo/78/xterm+pcc2 new file mode 100644 index 0000000000000000000000000000000000000000..07656973448a8482e495b868e287cb1315ecd299 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcc2 differ diff --git a/git/usr/share/terminfo/78/xterm+pcc3 b/git/usr/share/terminfo/78/xterm+pcc3 new file mode 100644 index 0000000000000000000000000000000000000000..980da82e3f64bec3b07d8caf3f752b3ee472e029 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcc3 differ diff --git a/git/usr/share/terminfo/78/xterm+pce2 b/git/usr/share/terminfo/78/xterm+pce2 new file mode 100644 index 0000000000000000000000000000000000000000..50e6a8843f91fd2dc98fc03c577725ea2c133117 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pce2 differ diff --git a/git/usr/share/terminfo/78/xterm+pcf0 b/git/usr/share/terminfo/78/xterm+pcf0 new file mode 100644 index 0000000000000000000000000000000000000000..3c91b63e3d6e751db1481947774be37f491701dc Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcf0 differ diff --git a/git/usr/share/terminfo/78/xterm+pcf2 b/git/usr/share/terminfo/78/xterm+pcf2 new file mode 100644 index 0000000000000000000000000000000000000000..5d691cd1c5ac0152f9c91a798f45e08e96ea447e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcf2 differ diff --git a/git/usr/share/terminfo/78/xterm+pcfkeys b/git/usr/share/terminfo/78/xterm+pcfkeys new file mode 100644 index 0000000000000000000000000000000000000000..2938bc0ad96ac03050f4e6d6b37d3831bb689fbf Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+pcfkeys differ diff --git a/git/usr/share/terminfo/78/xterm+r5+fkeys b/git/usr/share/terminfo/78/xterm+r5+fkeys new file mode 100644 index 0000000000000000000000000000000000000000..97e46a756d8ea70ed9ebf0921ab741b453f82924 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+r5+fkeys differ diff --git a/git/usr/share/terminfo/78/xterm+r5+lockeys b/git/usr/share/terminfo/78/xterm+r5+lockeys new file mode 100644 index 0000000000000000000000000000000000000000..5d1c83981512daf8cd80c14b61bca86567c007c7 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+r5+lockeys differ diff --git a/git/usr/share/terminfo/78/xterm+r6f2 b/git/usr/share/terminfo/78/xterm+r6f2 new file mode 100644 index 0000000000000000000000000000000000000000..9b4847e0d7fbe683675891999c6f4698410cdee0 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+r6f2 differ diff --git a/git/usr/share/terminfo/78/xterm+sl b/git/usr/share/terminfo/78/xterm+sl new file mode 100644 index 0000000000000000000000000000000000000000..080146e8d6e2025b30e02c612e22514f95a372dd Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sl differ diff --git a/git/usr/share/terminfo/78/xterm+sl-alt b/git/usr/share/terminfo/78/xterm+sl-alt new file mode 100644 index 0000000000000000000000000000000000000000..b5fe48629ffb28d1f5f40133f04df83a17786217 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sl-alt differ diff --git a/git/usr/share/terminfo/78/xterm+sl-twm b/git/usr/share/terminfo/78/xterm+sl-twm new file mode 100644 index 0000000000000000000000000000000000000000..67e954bb8dc0bd5418f035c38a941371626e5448 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sl-twm differ diff --git a/git/usr/share/terminfo/78/xterm+sm+1002 b/git/usr/share/terminfo/78/xterm+sm+1002 new file mode 100644 index 0000000000000000000000000000000000000000..7cb0931d16d93de75cf245041b5a3896fd8ef7d1 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sm+1002 differ diff --git a/git/usr/share/terminfo/78/xterm+sm+1003 b/git/usr/share/terminfo/78/xterm+sm+1003 new file mode 100644 index 0000000000000000000000000000000000000000..995040bc0f1bdf8f355d0c17478d4dc1f00ea3db Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sm+1003 differ diff --git a/git/usr/share/terminfo/78/xterm+sm+1005 b/git/usr/share/terminfo/78/xterm+sm+1005 new file mode 100644 index 0000000000000000000000000000000000000000..76f7a5be365b0a79c55023daf7f34a86fcd516a8 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sm+1005 differ diff --git a/git/usr/share/terminfo/78/xterm+sm+1006 b/git/usr/share/terminfo/78/xterm+sm+1006 new file mode 100644 index 0000000000000000000000000000000000000000..846985c72c7712f045b93a8b2ccef0cc3a1a8460 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+sm+1006 differ diff --git a/git/usr/share/terminfo/78/xterm+titlestack b/git/usr/share/terminfo/78/xterm+titlestack new file mode 100644 index 0000000000000000000000000000000000000000..0d2111f05cc7d9be58387888e513426bd1ebc76d Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+titlestack differ diff --git a/git/usr/share/terminfo/78/xterm+tmux b/git/usr/share/terminfo/78/xterm+tmux new file mode 100644 index 0000000000000000000000000000000000000000..6c6cfa6a24f53d78f24319837a1d227af33d6ec0 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+tmux differ diff --git a/git/usr/share/terminfo/78/xterm+tmux2 b/git/usr/share/terminfo/78/xterm+tmux2 new file mode 100644 index 0000000000000000000000000000000000000000..fff7553eea356f0307db837559bb479f28f5dce4 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+tmux2 differ diff --git a/git/usr/share/terminfo/78/xterm+vt+edit b/git/usr/share/terminfo/78/xterm+vt+edit new file mode 100644 index 0000000000000000000000000000000000000000..dd5960ce35da399d54564c38d3afd64728fe734b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+vt+edit differ diff --git a/git/usr/share/terminfo/78/xterm+x10mouse b/git/usr/share/terminfo/78/xterm+x10mouse new file mode 100644 index 0000000000000000000000000000000000000000..2c7e61339b9967b6c0b5b439e0f2857d0f24378e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+x10mouse differ diff --git a/git/usr/share/terminfo/78/xterm+x11hilite b/git/usr/share/terminfo/78/xterm+x11hilite new file mode 100644 index 0000000000000000000000000000000000000000..305a2472567ef9639eb93e4a90ead0ce6a13c088 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+x11hilite differ diff --git a/git/usr/share/terminfo/78/xterm+x11mouse b/git/usr/share/terminfo/78/xterm+x11mouse new file mode 100644 index 0000000000000000000000000000000000000000..05e4e866f19af8ed8c7dc7036586569b913777be Binary files /dev/null and b/git/usr/share/terminfo/78/xterm+x11mouse differ diff --git a/git/usr/share/terminfo/78/xterm-1002 b/git/usr/share/terminfo/78/xterm-1002 new file mode 100644 index 0000000000000000000000000000000000000000..b977a1eb490118a06ce34d50aac27a9122c9b77f Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-1002 differ diff --git a/git/usr/share/terminfo/78/xterm-1003 b/git/usr/share/terminfo/78/xterm-1003 new file mode 100644 index 0000000000000000000000000000000000000000..ee148149c814d1754c75554b8d4dbfe4633c190c Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-1003 differ diff --git a/git/usr/share/terminfo/78/xterm-1005 b/git/usr/share/terminfo/78/xterm-1005 new file mode 100644 index 0000000000000000000000000000000000000000..ecdcf1dd6323216f575059204fdccefa0d58daa6 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-1005 differ diff --git a/git/usr/share/terminfo/78/xterm-1006 b/git/usr/share/terminfo/78/xterm-1006 new file mode 100644 index 0000000000000000000000000000000000000000..a3de66ea113a673f50d7ac9a0039a66d3fa8fe84 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-1006 differ diff --git a/git/usr/share/terminfo/78/xterm-16color b/git/usr/share/terminfo/78/xterm-16color new file mode 100644 index 0000000000000000000000000000000000000000..f3fc2976172213dedb4322de37ad852e7c4b5c3a Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-16color differ diff --git a/git/usr/share/terminfo/78/xterm-24 b/git/usr/share/terminfo/78/xterm-24 new file mode 100644 index 0000000000000000000000000000000000000000..a27c00ae9ff16a2372887368b2475e06f89c0c47 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-24 differ diff --git a/git/usr/share/terminfo/78/xterm-256color b/git/usr/share/terminfo/78/xterm-256color new file mode 100644 index 0000000000000000000000000000000000000000..dbbaccfc95f88ac8ed570696c9e9c5793f941e35 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-256color differ diff --git a/git/usr/share/terminfo/78/xterm-88color b/git/usr/share/terminfo/78/xterm-88color new file mode 100644 index 0000000000000000000000000000000000000000..ed55d6b346c750807194eed31b51a4c2776f0773 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-88color differ diff --git a/git/usr/share/terminfo/78/xterm-8bit b/git/usr/share/terminfo/78/xterm-8bit new file mode 100644 index 0000000000000000000000000000000000000000..f09ef7a31b9493c41457128dfb2a837f3379695c Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-8bit differ diff --git a/git/usr/share/terminfo/78/xterm-basic b/git/usr/share/terminfo/78/xterm-basic new file mode 100644 index 0000000000000000000000000000000000000000..fc6f1378588fc6eeeac41caef0e3de4f82207819 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-basic differ diff --git a/git/usr/share/terminfo/78/xterm-bold b/git/usr/share/terminfo/78/xterm-bold new file mode 100644 index 0000000000000000000000000000000000000000..812388ea3138380fbdc570f12d1f2d8ac9d2db30 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-bold differ diff --git a/git/usr/share/terminfo/78/xterm-color b/git/usr/share/terminfo/78/xterm-color new file mode 100644 index 0000000000000000000000000000000000000000..cce1d1315d5a9f5aae0cc039ae2f0d74e69e412b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-color differ diff --git a/git/usr/share/terminfo/78/xterm-direct b/git/usr/share/terminfo/78/xterm-direct new file mode 100644 index 0000000000000000000000000000000000000000..2ae0b2ba3dbd1c49bd301345ee507201299026bf Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-direct differ diff --git a/git/usr/share/terminfo/78/xterm-direct16 b/git/usr/share/terminfo/78/xterm-direct16 new file mode 100644 index 0000000000000000000000000000000000000000..3ab03d728c35bb596073d6e849d51f2dc2690989 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-direct16 differ diff --git a/git/usr/share/terminfo/78/xterm-direct2 b/git/usr/share/terminfo/78/xterm-direct2 new file mode 100644 index 0000000000000000000000000000000000000000..89569321fb7c4a650f5357ad016d61e2ffbc1a18 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-direct2 differ diff --git a/git/usr/share/terminfo/78/xterm-direct256 b/git/usr/share/terminfo/78/xterm-direct256 new file mode 100644 index 0000000000000000000000000000000000000000..64471dfb205297d5ce2eae0c9f6509f83671b10a Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-direct256 differ diff --git a/git/usr/share/terminfo/78/xterm-hp b/git/usr/share/terminfo/78/xterm-hp new file mode 100644 index 0000000000000000000000000000000000000000..ab8bf01cce3d2c44efcaf0304c1a82095927627b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-hp differ diff --git a/git/usr/share/terminfo/78/xterm-mono b/git/usr/share/terminfo/78/xterm-mono new file mode 100644 index 0000000000000000000000000000000000000000..1ff1e218b48a36b18c2a891d57c90a06d537f154 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-mono differ diff --git a/git/usr/share/terminfo/78/xterm-new b/git/usr/share/terminfo/78/xterm-new new file mode 100644 index 0000000000000000000000000000000000000000..c09d9aef35fd311074177537fa58a599543ced9f Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-new differ diff --git a/git/usr/share/terminfo/78/xterm-nic b/git/usr/share/terminfo/78/xterm-nic new file mode 100644 index 0000000000000000000000000000000000000000..b88c282a37f9ec425056d2c5338a8a361f85f45d Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-nic differ diff --git a/git/usr/share/terminfo/78/xterm-noapp b/git/usr/share/terminfo/78/xterm-noapp new file mode 100644 index 0000000000000000000000000000000000000000..91222715a811c5aa923d1f19ba6a7150b58e9f6e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-noapp differ diff --git a/git/usr/share/terminfo/78/xterm-old b/git/usr/share/terminfo/78/xterm-old new file mode 100644 index 0000000000000000000000000000000000000000..1863d0120e8f871d45e04e1b1f612ba224779e0b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-old differ diff --git a/git/usr/share/terminfo/78/xterm-p370 b/git/usr/share/terminfo/78/xterm-p370 new file mode 100644 index 0000000000000000000000000000000000000000..57b46e19707c9ceb976a72b0598aa38ef7061d35 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-p370 differ diff --git a/git/usr/share/terminfo/78/xterm-p371 b/git/usr/share/terminfo/78/xterm-p371 new file mode 100644 index 0000000000000000000000000000000000000000..e0937e3e33e9b9ef1770f5b7235a00b26e19d3ae Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-p371 differ diff --git a/git/usr/share/terminfo/78/xterm-pcolor b/git/usr/share/terminfo/78/xterm-pcolor new file mode 100644 index 0000000000000000000000000000000000000000..7f96d3b344805b6e4cfb4bdca0cbbc46d403c598 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-pcolor differ diff --git a/git/usr/share/terminfo/78/xterm-r5 b/git/usr/share/terminfo/78/xterm-r5 new file mode 100644 index 0000000000000000000000000000000000000000..f63aa2f576ceabe5771cb354a8ea2cc4bfb67ca0 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-r5 differ diff --git a/git/usr/share/terminfo/78/xterm-r6 b/git/usr/share/terminfo/78/xterm-r6 new file mode 100644 index 0000000000000000000000000000000000000000..91c4f5d390954c164ed09ad04f86b470d1e7acda Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-r6 differ diff --git a/git/usr/share/terminfo/78/xterm-sco b/git/usr/share/terminfo/78/xterm-sco new file mode 100644 index 0000000000000000000000000000000000000000..93ca43f7e39299d5925af323e717d8ca2face301 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-sco differ diff --git a/git/usr/share/terminfo/78/xterm-sun b/git/usr/share/terminfo/78/xterm-sun new file mode 100644 index 0000000000000000000000000000000000000000..c246d0f0b5ac6b99760dff8cdbce5690f2567a24 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-sun differ diff --git a/git/usr/share/terminfo/78/xterm-utf8 b/git/usr/share/terminfo/78/xterm-utf8 new file mode 100644 index 0000000000000000000000000000000000000000..6305b75a1efadb60e3a60db3effee068d87be200 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-utf8 differ diff --git a/git/usr/share/terminfo/78/xterm-vt220 b/git/usr/share/terminfo/78/xterm-vt220 new file mode 100644 index 0000000000000000000000000000000000000000..569531172bf736dfdc373f20e63c48102ca8065a Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-vt220 differ diff --git a/git/usr/share/terminfo/78/xterm-vt52 b/git/usr/share/terminfo/78/xterm-vt52 new file mode 100644 index 0000000000000000000000000000000000000000..b592e42dbed3c1630c73158c78a5c52e2d164058 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-vt52 differ diff --git a/git/usr/share/terminfo/78/xterm-x10mouse b/git/usr/share/terminfo/78/xterm-x10mouse new file mode 100644 index 0000000000000000000000000000000000000000..c0e29c3d5288d02cdc92604bff0ff22eb713a3cb Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-x10mouse differ diff --git a/git/usr/share/terminfo/78/xterm-x11hilite b/git/usr/share/terminfo/78/xterm-x11hilite new file mode 100644 index 0000000000000000000000000000000000000000..c201cc77b1bac306629a974ee3b1fd1b8ece8bce Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-x11hilite differ diff --git a/git/usr/share/terminfo/78/xterm-x11mouse b/git/usr/share/terminfo/78/xterm-x11mouse new file mode 100644 index 0000000000000000000000000000000000000000..918b22b2bcb26dd8b83ebe8ce80b6c9923aee171 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-x11mouse differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v32 b/git/usr/share/terminfo/78/xterm-xf86-v32 new file mode 100644 index 0000000000000000000000000000000000000000..0ae81a83a3da140d4f40c54c6d4ac91781f1eb8e Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v32 differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v33 b/git/usr/share/terminfo/78/xterm-xf86-v33 new file mode 100644 index 0000000000000000000000000000000000000000..cd636247d2a71909fcef2eb1ce5515088b891934 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v33 differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v333 b/git/usr/share/terminfo/78/xterm-xf86-v333 new file mode 100644 index 0000000000000000000000000000000000000000..117837264015c1ef745c1c666e9dc33f6a8e0e18 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v333 differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v40 b/git/usr/share/terminfo/78/xterm-xf86-v40 new file mode 100644 index 0000000000000000000000000000000000000000..8b022032e1efa334ea3ee763643634cf049b5dae Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v40 differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v43 b/git/usr/share/terminfo/78/xterm-xf86-v43 new file mode 100644 index 0000000000000000000000000000000000000000..416ebe9c3c6e195e9973bfcfc9546bcee3ae3235 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v43 differ diff --git a/git/usr/share/terminfo/78/xterm-xf86-v44 b/git/usr/share/terminfo/78/xterm-xf86-v44 new file mode 100644 index 0000000000000000000000000000000000000000..d607c2539aabb52ac03617353e22df3e7473f304 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xf86-v44 differ diff --git a/git/usr/share/terminfo/78/xterm-xfree86 b/git/usr/share/terminfo/78/xterm-xfree86 new file mode 100644 index 0000000000000000000000000000000000000000..38ff566a95c285deba0ed928126497b3e3ae3841 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xfree86 differ diff --git a/git/usr/share/terminfo/78/xterm-xi b/git/usr/share/terminfo/78/xterm-xi new file mode 100644 index 0000000000000000000000000000000000000000..81c2f78400b3a7718061560667948188f871bed3 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm-xi differ diff --git a/git/usr/share/terminfo/78/xterm.js b/git/usr/share/terminfo/78/xterm.js new file mode 100644 index 0000000000000000000000000000000000000000..4c14b0fd59dbc6076933abb65a3a5d15f95517a0 Binary files /dev/null and b/git/usr/share/terminfo/78/xterm.js differ diff --git a/git/usr/share/terminfo/78/xterm1 b/git/usr/share/terminfo/78/xterm1 new file mode 100644 index 0000000000000000000000000000000000000000..7b0486adc30c03f3dcd22f4c73bc2455106dae6b Binary files /dev/null and b/git/usr/share/terminfo/78/xterm1 differ diff --git a/git/usr/share/terminfo/78/xtermc b/git/usr/share/terminfo/78/xtermc new file mode 100644 index 0000000000000000000000000000000000000000..f8854240ebc7fd4fce1de4ff50b07b81376d1cca Binary files /dev/null and b/git/usr/share/terminfo/78/xtermc differ diff --git a/git/usr/share/terminfo/78/xtermm b/git/usr/share/terminfo/78/xtermm new file mode 100644 index 0000000000000000000000000000000000000000..988f4218cfaf37aaa93513a4674eccda81a75cc0 Binary files /dev/null and b/git/usr/share/terminfo/78/xtermm differ diff --git a/git/usr/share/terminfo/78/xterms b/git/usr/share/terminfo/78/xterms new file mode 100644 index 0000000000000000000000000000000000000000..a27c00ae9ff16a2372887368b2475e06f89c0c47 Binary files /dev/null and b/git/usr/share/terminfo/78/xterms differ diff --git a/git/usr/share/terminfo/78/xterms-sun b/git/usr/share/terminfo/78/xterms-sun new file mode 100644 index 0000000000000000000000000000000000000000..054537227996cc3d844390f97dbeb322b37e7314 Binary files /dev/null and b/git/usr/share/terminfo/78/xterms-sun differ diff --git a/git/usr/share/vim/vim92/autoload/cargo/quickfix.vim b/git/usr/share/vim/vim92/autoload/cargo/quickfix.vim new file mode 100644 index 0000000000000000000000000000000000000000..f2a006f6c52db6a90586a2235b88766709adab3a --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/cargo/quickfix.vim @@ -0,0 +1,29 @@ +" Last Modified: 2023-09-11 + +function! cargo#quickfix#CmdPre() abort + if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' && + \ &makeprg =~ '\V\^cargo\ \.\*' + " Preserve the current directory, and 'lcd' to the nearest Cargo file. + let b:rust_compiler_cargo_qf_has_lcd = haslocaldir() + let b:rust_compiler_cargo_qf_prev_cd = getcwd() + let b:rust_compiler_cargo_qf_prev_cd_saved = 1 + let l:nearest = fnamemodify(cargo#nearestRootCargo(0), ':h') + execute 'lchdir! '.l:nearest + else + let b:rust_compiler_cargo_qf_prev_cd_saved = 0 + endif +endfunction + +function! cargo#quickfix#CmdPost() abort + if exists("b:rust_compiler_cargo_qf_prev_cd_saved") && b:rust_compiler_cargo_qf_prev_cd_saved + " Restore the current directory. + if b:rust_compiler_cargo_qf_has_lcd + execute 'lchdir! '.b:rust_compiler_cargo_qf_prev_cd + else + execute 'chdir! '.b:rust_compiler_cargo_qf_prev_cd + endif + let b:rust_compiler_cargo_qf_prev_cd_saved = 0 + endif +endfunction + +" vim: set et sw=4 sts=4 ts=8: diff --git a/git/usr/share/vim/vim92/autoload/dist/ft.vim b/git/usr/share/vim/vim92/autoload/dist/ft.vim new file mode 100644 index 0000000000000000000000000000000000000000..f0330c205cc12dc3581b5866fc325e5dfc9094ee --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/ft.vim @@ -0,0 +1,3452 @@ +vim9script + +# Vim functions for file type detection +# +# Maintainer: The Vim Project +# Last Change: 2026 Apr 15 +# Former Maintainer: Bram Moolenaar + +# These functions are moved here from runtime/filetype.vim to make startup +# faster. + +var prolog_pattern = '^\s*\(:-\|%\+\(\s\|$\)\|\/\*\)\|\.\s*$' + +def IsObjectScriptRoutine(): bool + var line1 = getline(1) + line1 = substitute(line1, '^\ufeff', '', '') + if line1 =~? '^\s*routine\>' + return true + endif + if line1 =~? '\' + return true + endif + return join(getline(1, 3), '') =~# '%RO' +enddef + +export def Check_inp() + if getline(1) =~ '%%' + setf tex + elseif getline(1) =~ '^\*' + setf abaqus + else + var n = 1 + var nmax = line("$") > 500 ? 500 : line("$") + while n <= nmax + if getline(n) =~? "^header surface data" + setf trasys + break + endif + n += 1 + endwhile + endif +enddef + +# Erlang Application Resource Files (*.app.src is matched by extension) +# See: https://erlang.org/doc/system/applications +export def FTapp() + if exists("g:filetype_app") + exe "setf " .. g:filetype_app + return + endif + const pat = '^\s*{\s*application\s*,\s*\(''\=\)' .. expand("%:t:r:r") .. '\1\s*,' + var line: string + for lnum in range(1, min([line("$"), 100])) + line = getline(lnum) + # skip Erlang comments, might be something else + if line =~ '^\s*%' || line =~ '^\s*$' + continue + elseif line =~ '^\s*{' && + getline(lnum, lnum + 9)->filter((_, v) => v !~ '^\s*%')->join(' ') =~# pat + setf erlang + endif + return + endfor +enddef + +# This function checks for the kind of assembly that is wanted by the user, or +# can be detected from the beginning of the file. +export def FTasm() + # make sure b:asmsyntax exists + if !exists("b:asmsyntax") + b:asmsyntax = "" + endif + + if b:asmsyntax == "" + FTasmsyntax() + endif + + # if b:asmsyntax still isn't set, default to asmsyntax or GNU + if b:asmsyntax == "" + if exists("g:asmsyntax") + b:asmsyntax = g:asmsyntax + else + b:asmsyntax = "asm" + endif + endif + + exe "setf " .. fnameescape(b:asmsyntax) +enddef + +export def FTmac() + if exists("g:filetype_mac") + exe "setf " .. g:filetype_mac + else + if IsObjectScriptRoutine() + setf objectscript_routine + else + FTasm() + endif + endif +enddef + +export def FTasmsyntax() + # see if the file contains any asmsyntax=foo overrides. If so, change + # b:asmsyntax appropriately + var head = " " .. getline(1) .. " " .. getline(2) .. " " + .. getline(3) .. " " .. getline(4) .. " " .. getline(5) .. " " + var match = matchstr(head, '\sasmsyntax=\zs[a-zA-Z0-9]\+\ze\s') + if match != '' + b:asmsyntax = match + return + endif + # Use heuristics + var is_slash_star_encountered = false + var i = 1 + const n = min([50, line("$")]) + while i <= n + const line = getline(i) + if line =~ '^/\*' + is_slash_star_encountered = true + endif + if line =~# '^; Listing generated by Microsoft' || line =~? '^\%(\%(CONST\|_BSS\|_DATA\|_TEXT\)\s\+SEGMENT\>\)\|\s*\.[2-6]86P\?\>\|\s*\.XMM\>' + b:asmsyntax = "masm" + return + elseif line =~ 'Texas Instruments Incorporated' || (line =~ '^\*' && !is_slash_star_encountered) + # tiasm uses `* comment`, but detection is unreliable if '/*' is seen + b:asmsyntax = "tiasm" + return + elseif ((line =~? '\.title\>\|\.ident\>\|\.macro\>\|\.subtitle\>\|\.library\>')) + b:asmsyntax = "vmasm" + return + endif + i += 1 + endwhile +enddef + +var ft_visual_basic_content = '\c^\s*\%(Attribute\s\+VB_Name\|Begin\s\+\%(VB\.\|{\%(\x\+-\)\+\x\+}\)\)' + +# See FTfrm() for Visual Basic form file detection +export def FTbas() + if exists("g:filetype_bas") + exe "setf " .. g:filetype_bas + return + endif + + # most frequent FreeBASIC-specific keywords in distro files + var fb_keywords = '\c^\s*\%(extern\|var\|enum\|private\|scope\|union\|byref\|operator\|constructor\|delete\|namespace\|public\|property\|with\|destructor\|using\)\>\%(\s*[:=(]\)\@!' + var fb_preproc = '\c^\s*\%(' .. + # preprocessor + '#\s*\a\+\|' .. + # compiler option + 'option\s\+\%(byval\|dynamic\|escape\|\%(no\)\=gosub\|nokeyword\|private\|static\)\>\|' .. + # metacommand + '\%(''\|rem\)\s*\$lang\>\|' .. + # default datatype + 'def\%(byte\|longint\|short\|ubyte\|uint\|ulongint\|ushort\)\>' .. + '\)' + var fb_comment = "^\\s*/'" + + # OPTION EXPLICIT, without the leading underscore, is common to many dialects + var qb64_preproc = '\c^\s*\%($\a\+\|option\s\+\%(_explicit\|_\=explicitarray\)\>\)' + + for lnum in range(1, min([line("$"), 100])) + var line = getline(lnum) + if line =~ ft_visual_basic_content + setf vb + return + elseif line =~ fb_preproc || line =~ fb_comment || line =~ fb_keywords + setf freebasic + return + elseif line =~ qb64_preproc + setf qb64 + return + endif + endfor + setf basic +enddef + +export def FTbtm() + if exists("g:dosbatch_syntax_for_btm") && g:dosbatch_syntax_for_btm + setf dosbatch + else + setf btm + endif +enddef + +export def BindzoneCheck(default = '') + if getline(1) .. getline(2) .. getline(3) .. getline(4) + =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA' + setf bindzone + elseif default != '' + exe 'setf ' .. default + endif +enddef + +# Returns true if file content looks like RAPID +def IsRapid(sChkExt: string = ""): bool + if sChkExt == "cfg" + return getline(1) =~? '\v^%(EIO|MMC|MOC|PROC|SIO|SYS):CFG' + endif + # called from FTmod, FTprg or FTsys + return getline(nextnonblank(1)) =~? '\v^\s*%(\%{3}|module\s+\k+\s*%(\(|$))' +enddef + +export def FTcfg() + if exists("g:filetype_cfg") + exe "setf " .. g:filetype_cfg + elseif IsRapid("cfg") + setf rapid + else + setf cfg + endif +enddef + +export def FTcl() + if join(getline(1, 4), '') =~ '/\*' + setf opencl + else + setf lisp + endif +enddef + +# Determines whether a *.cls file is ObjectScript, TeX, Rexx, Visual Basic, or Smalltalk. +export def FTcls() + if exists("g:filetype_cls") + exe "setf " .. g:filetype_cls + return + endif + + var line1 = getline(1) + if line1 =~ '^#!.*\<\%(rexx\|regina\)\>' + setf rexx + return + elseif line1 == 'VERSION 1.0 CLASS' + setf vb + return + endif + + var nonblank1 = getline(nextnonblank(1)) + var lnum = nextnonblank(1) + while lnum > 0 && lnum <= line("$") + var line = getline(lnum) + if line =~? '^\s*\%(import\|include\|includegenerator\)\>' + lnum = nextnonblank(lnum + 1) + else + nonblank1 = line + break + endif + endwhile + + if nonblank1 =~? '^\s*class\>\s\+[%A-Za-z][%A-Za-z0-9_.]*\%(\s\+extends\>\|\s*\[\|\s*{\|$\)' + setf objectscript + elseif nonblank1 =~ '^\v%(\%|\\)' + setf tex + elseif nonblank1 =~ '^\s*\%(/\*\|::\w\)' + setf rexx + else + setf st + endif +enddef + +export def FTll() + if getline(1) =~ ';\|\\|\' + setf llvm + return + endif + var n = 1 + while n < 100 && n <= line("$") + var line = getline(n) + if line =~ '^\s*%' + setf lex + return + endif + n += 1 + endwhile + setf lifelines +enddef + +export def FTlpc() + if exists("g:lpc_syntax_for_c") + var lnum = 1 + while lnum <= 12 + if getline(lnum) =~# '^\(//\|inherit\|private\|protected\|nosave\|string\|object\|mapping\|mixed\)' + setf lpc + return + endif + lnum += 1 + endwhile + endif + setf c +enddef + +# Searches within the first `maxlines` lines of the file for distinctive +# Objective-C or C++ syntax and returns the appropriate filetype. Returns a +# null_string if the search was inconclusive. +def CheckObjCOrCpp(maxlines = 100): string + var n = 1 + while n < maxlines && n <= line('$') + const line = getline(n) + if line =~ '\v^\s*\@%(class|interface|end)>' + return 'objcpp' + elseif line =~ '\v^\s*%(class|namespace|template|using)>' + return 'cpp' + endif + ++n + endwhile + return null_string +enddef + +# Determines whether a *.h file is C, C++, Ch, or Objective-C/Objective-C++. +export def FTheader() + if exists('g:filetype_h') + execute $'setf {g:filetype_h}' + elseif exists('g:c_syntax_for_h') + setf c + elseif exists('g:ch_syntax_for_h') + setf ch + else + # Search the first 100 lines of the file for distinctive Objective-C or C++ + # syntax and set the filetype accordingly. Otherwise, use C as the default + # filetype. + execute $'setf {CheckObjCOrCpp() ?? 'c'}' + endif +enddef + +# This function checks if one of the first ten lines start with a '@'. In +# that case it is probably a change file. +# If the first line starts with # or ! it's probably a ch file. +# If a line has "main", "include", "//" or "/*" it's probably ch. +# Otherwise CHILL is assumed. +export def FTchange() + var lnum = 1 + while lnum <= 10 + if getline(lnum)[0] == '@' + setf change + return + endif + if lnum == 1 && (getline(1)[0] == '#' || getline(1)[0] == '!') + setf ch + return + endif + if getline(lnum) =~ "MODULE" + setf chill + return + endif + if getline(lnum) =~ 'main\s*(\|#\s*include\|//' + setf ch + return + endif + lnum += 1 + endwhile + setf chill +enddef + +export def FTent() + # This function checks for valid cl syntax in the first five lines. + # Look for either an opening comment, '#', or a block start, '{'. + # If not found, assume SGML. + var lnum = 1 + while lnum < 6 + var line = getline(lnum) + if line =~ '^\s*[#{]' + setf cl + return + elseif line !~ '^\s*$' + # Not a blank line, not a comment, and not a block start, + # so doesn't look like valid cl code. + break + endif + lnum += 1 + endwhile + setf dtd +enddef + +export def ExCheck() + var lines = getline(1, min([line("$"), 100])) + if exists('g:filetype_euphoria') + exe 'setf ' .. g:filetype_euphoria + elseif match(lines, '^--\|^ifdef\>\|^include\>') > -1 + setf euphoria3 + else + setf elixir + endif +enddef + +export def EuphoriaCheck() + if exists('g:filetype_euphoria') + exe 'setf ' .. g:filetype_euphoria + else + setf euphoria3 + endif +enddef + +export def DtraceCheck() + if did_filetype() + # Filetype was already detected + return + endif + var lines = getline(1, min([line("$"), 100])) + if match(lines, '^module\>\|^import\>') > -1 + # D files often start with a module and/or import statement. + setf d + elseif match(lines, '^#!\S\+dtrace\|#pragma\s\+D\s\+option\|:\S\{-}:\S\{-}:') > -1 + setf dtrace + else + setf d + endif +enddef + +export def FTdef() + # LaTeX def files are usually generated by docstrip, which will output '%%' in first line + if getline(1) =~ '%%' + setf tex + endif + if get(g:, "filetype_def", "") == "modula2" || IsModula2() + SetFiletypeModula2() + return + endif + + if exists("g:filetype_def") + exe "setf " .. g:filetype_def + else + setf def + endif +enddef + +export def FTe() + if exists('g:filetype_euphoria') + exe 'setf ' .. g:filetype_euphoria + else + var n = 1 + while n < 100 && n <= line("$") + if getline(n) =~ "^\\s*\\(<'\\|'>\\)\\s*$" + setf specman + return + endif + n += 1 + endwhile + setf eiffel + endif +enddef + +def IsForth(): bool + var first_line = nextnonblank(1) + + # SwiftForth block comment (line is usually filled with '-' or '=') or + # OPTIONAL (sometimes precedes the header comment) + if getline(first_line) =~? '^\%({\%(\s\|$\)\|OPTIONAL\s\)' + return true + endif + + var n = first_line + while n < 100 && n <= line("$") + # Forth comments and colon definitions + if getline(n) =~ '^[:(\\] ' + return true + endif + n += 1 + endwhile + return false +enddef + +# Distinguish between Forth and Fortran +export def FTf() + if exists("g:filetype_f") + exe "setf " .. g:filetype_f + elseif IsForth() + setf forth + else + setf fortran + endif +enddef + +export def FTfrm() + if exists("g:filetype_frm") + exe "setf " .. g:filetype_frm + return + endif + + if getline(1) == "VERSION 5.00" + setf vb + return + endif + + var lines = getline(1, min([line("$"), 5])) + + if match(lines, ft_visual_basic_content) > -1 + setf vb + else + setf form + endif +enddef + +# Distinguish between Forth and F# +export def FTfs() + if exists("g:filetype_fs") + exe "setf " .. g:filetype_fs + elseif IsForth() + setf forth + else + setf fsharp + endif +enddef + +# Recursively searches for Hare source files within a directory, up to a given +# depth. +def IsHareModule(dir: string, depth: number): bool + if depth < 1 + return false + elseif depth == 1 + return !glob(dir .. '/*.ha')->empty() + endif + + # Check all files in the directory before recursing into subdirectories. + const items = glob(dir .. '/*', true, true) + ->sort((a, b) => isdirectory(a) - isdirectory(b)) + for n in items + if isdirectory(n) + if IsHareModule(n, depth - 1) + return true + endif + elseif n =~ '\.ha$' + return true + endif + endfor + + return false +enddef + +# Determines whether a README file is inside a Hare module and should receive +# the 'haredoc' filetype. +export def FTharedoc() + if IsHareModule(':h', get(g:, 'filetype_haredoc', 1)) + setf haredoc + endif +enddef + +# Distinguish between HTML, XHTML, Django and Angular +export def FThtml() + var n = 1 + + # Test if the filename follows the Angular component template convention + # Disabled for the reasons mentioned here: #13594 + # if expand('%:t') =~ '^.*\.component\.html$' + # setf htmlangular + # return + # endif + + while n < 40 && n <= line("$") + # Check for Angular + if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content' + setf htmlangular + return + endif + # Check for XHTML + if getline(n) =~ '\\|{#\s\+' + setf htmldjango + return + endif + # Check for SuperHTML + if getline(n) =~ '' + setf superhtml + return + endif + n += 1 + endwhile + setf FALLBACK html +enddef + +# Distinguish between standard IDL and MS-IDL +export def FTidl() + var n = 1 + while n < 50 && n <= line("$") + if getline(n) =~ '^\s*import\s\+"\(unknwn\|objidl\)\.idl"' + setf msidl + return + endif + n += 1 + endwhile + setf idl +enddef + +# Distinguish between "default", Prolog, zsh module's C and Cproto prototype file. +export def ProtoCheck(default: string) + # zsh modules use '#include "*.pro"' + # https://github.com/zsh-users/zsh/blob/63f086d167960a27ecdbcb762179e2c2bf8a29f5/Src/Modules/example.c#L31 + if getline(1) =~ '/* Generated automatically */' + setf c + # Cproto files have a comment in the first line and a function prototype in + # the second line, it always ends in ";". Indent files may also have + # comments, thus we can't match comments to see the difference. + # IDL files can have a single ';' in the second line, require at least one + # chacter before the ';'. + elseif getline(2) =~ '.;$' + setf cpp + else + # recognize Prolog by specific text in the first non-empty line + # require a blank after the '%' because Perl uses "%list" and "%translate" + var lnum = getline(nextnonblank(1)) + if lnum =~ '\' || lnum =~ prolog_pattern + setf prolog + else + exe 'setf ' .. default + endif + endif +enddef + +export def FTm() + if exists("g:filetype_m") + exe "setf " .. g:filetype_m + return + endif + + # excluding end(for|function|if|switch|while) common to Murphi + var octave_block_terminators = '\' + + var objc_preprocessor = '^\s*#\s*\%(import\|include\|define\|if\|ifn\=def\|undef\|line\|error\|pragma\)\>' + + var n = 1 + var saw_comment = 0 # Whether we've seen a multiline comment leader. + while n < 100 + var line = getline(n) + if line =~ '^\s*/\*' + # /* ... */ is a comment in Objective C and Murphi, so we can't conclude + # it's either of them yet, but track this as a hint in case we don't see + # anything more definitive. + saw_comment = 1 + endif + if line =~ '^\s*//' || line =~ '^\s*@import\>' || line =~ objc_preprocessor + setf objc + return + endif + if line =~ '^\s*\%(#\|%!\)' || line =~ '^\s*unwind_protect\>' || + \ line =~ '\%(^\|;\)\s*' .. octave_block_terminators + setf octave + return + endif + # TODO: could be Matlab or Octave + if line =~ '^\s*%' + setf matlab + return + endif + if line =~ '^\s*(\*' + setf mma + return + endif + if line =~ '^\c\s*\(\(type\|var\)\>\|--\)' + setf murphi + return + endif + n += 1 + endwhile + + if saw_comment + # We didn't see anything definitive, but this looks like either Objective C + # or Murphi based on the comment leader. Assume the former as it is more + # common. + setf objc + else + # Default is Matlab + setf matlab + endif +enddef + +# For files ending in *.m4, distinguish: +# – *.html.m4 files +# - *fvwm2rc*.m4 files +# – files in the Autoconf M4 dialect +# – files in POSIX M4 +export def FTm4() + var fname = expand('%:t') + var path = expand('%:p:h') + + if fname =~# 'html\.m4$' + setf htmlm4 + return + endif + + if fname =~# 'fvwm2rc' + setf fvwm2m4 + return + endif + + # Canonical Autoconf file + if fname ==# 'aclocal.m4' + setf config + return + endif + + # Repo heuristic for Autoconf M4 (nearby configure.ac) + if filereadable(path .. '/../configure.ac') || filereadable(path .. '/configure.ac') + setf config + return + endif + + # Content heuristic for Autoconf M4 (scan first ~200 lines) + # Signals: + # - Autoconf macro prefixes: AC_/AM_/AS_/AU_/AT_ + var n = 1 + var max = min([200, line('$')]) + while n <= max + var line = getline(n) + if line =~# '^\s*A[CMSUT]_' + setf config + return + endif + n += 1 + endwhile + + # Default to POSIX M4 + setf m4 +enddef + +export def FTmake() + # Check if it is a BSD, GNU, or Microsoft Makefile + unlet! b:make_flavor + + # 1. filename + if expand('%:t') == 'BSDmakefile' + b:make_flavor = 'bsd' + setf make + return + elseif expand('%:t') == 'GNUmakefile' + b:make_flavor = 'gnu' + setf make + return + endif + + # 2. user's setting + if exists('g:make_flavor') + b:make_flavor = g:make_flavor + setf make + return + elseif get(g:, 'make_microsoft') + echom "make_microsoft is deprecated; try g:make_flavor = 'microsoft' instead" + b:make_flavor = 'microsoft' + setf make + return + endif + + # 3. try to detect a flavor from file content + var n = 1 + while n < 1000 && n <= line('$') + var line = getline(n) + if line =~? '^\s*!\s*\(ifn\=\(def\)\=\|include\|message\|error\)\>' + b:make_flavor = 'microsoft' + break + elseif line =~ '^\.\%(export\|error\|for\|if\%(n\=\%(def\|make\)\)\=\|info\|warning\)\>' + b:make_flavor = 'bsd' + break + elseif line =~ '^ *\%(ifn\=\%(eq\|def\)\|define\|override\)\>' + b:make_flavor = 'gnu' + break + elseif line =~ '\$[({][a-z-]\+\s\+\S\+' # a function call, e.g. $(shell pwd) + b:make_flavor = 'gnu' + break + endif + n += 1 + endwhile + setf make +enddef + +export def FTmms() + var n = 1 + while n < 20 + var line = getline(n) + if line =~ '^\s*\(%\|//\)' || line =~ '^\*' + setf mmix + return + endif + if line =~ '^\s*#' + setf make + return + endif + n += 1 + endwhile + setf mmix +enddef + +# This function checks if one of the first five lines start with a typical +# nroff pattern in man files. In that case it is probably an nroff file: +# 'filetype' is set and 1 is returned. +export def FTnroff(): number + var n = 1 + while n <= 5 + var line = getline(n) + if line =~ '^\%([.'']\s*\%(TH\|D[dt]\|S[Hh]\|d[es]1\?\|so\)\s\+\S\|[.'']\s*ig\>\|\%([.'']\s*\)\?\\"\)' + setf nroff + return 1 + endif + n += 1 + endwhile + return 0 +enddef + +export def FTmm() + var n = 1 + while n < 20 + if getline(n) =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' + setf objcpp + return + endif + n += 1 + endwhile + setf nroff +enddef + +# Returns true if file content looks like LambdaProlog module +def IsLProlog(): bool + # skip apparent comments and blank lines, what looks like + # LambdaProlog comment may be RAPID header + var lnum: number = nextnonblank(1) + while lnum > 0 && lnum < line('$') && getline(lnum) =~ '^\s*%' # LambdaProlog comment + lnum = nextnonblank(lnum + 1) + endwhile + # this pattern must not catch a go.mod file + return getline(lnum) =~ '\= 0 + dialect = matches[1] + endif + if index(KNOWN_EXTENSIONS, matches[2]) >= 0 + extension = matches[2] + endif + break + endif + endfor + + modula2#SetDialect(dialect, extension) + + setf modula2 +enddef + +# Determine if *.mod is ABB RAPID, LambdaProlog, Modula-2, Modsim III or go.mod +export def FTmod() + if get(g:, "filetype_mod", "") == "modula2" || IsModula2() + SetFiletypeModula2() + return + endif + + if exists("g:filetype_mod") + exe "setf " .. g:filetype_mod + elseif expand("") =~ '\' || line =~ prolog_pattern + setf prolog + else + setf perl + endif + endif +enddef + +export def FTinc() + if exists("g:filetype_inc") + exe "setf " .. g:filetype_inc + else + if IsObjectScriptRoutine() + setf objectscript_routine + return + endif + for lnum in range(1, min([line("$"), 20])) + var line = getline(lnum) + if line =~? "perlscript" + setf aspperl + return + elseif line =~ "<%" + setf aspvbs + return + elseif line =~ "' || line =~# '[A-Z][A-Za-z0-9_:${}/]*\(\[[A-Za-z0-9_:/]\+\]\)*\s\+\%(??\|[?:+.]\)\?=.\? ' + setf bitbake + return + endif + endfor + FTasmsyntax() + if exists("b:asmsyntax") + exe "setf " .. fnameescape(b:asmsyntax) + else + setf pov + endif + endif +enddef + +export def FTprogress_cweb() + if exists("g:filetype_w") + exe "setf " .. g:filetype_w + return + endif + if getline(1) =~ '&ANALYZE' || getline(3) =~ '&GLOBAL-DEFINE' + setf progress + else + setf cweb + endif +enddef + +# These include the leading '%' sign +var ft_swig_keywords = '^\s*%\%(addmethods\|apply\|beginfile\|clear\|constant\|define\|echo\|enddef\|endoffile\|extend\|feature\|fragment\|ignore\|import\|importfile\|include\|includefile\|inline\|insert\|keyword\|module\|name\|namewarn\|native\|newobject\|parms\|pragma\|rename\|template\|typedef\|typemap\|types\|varargs\|warn\)' +# This is the start/end of a block that is copied literally to the processor file (C/C++) +var ft_swig_verbatim_block_start = '^\s*%{' + +export def FTi() + if exists("g:filetype_i") + exe "setf " .. g:filetype_i + return + endif + # This function checks for an assembly comment or a SWIG keyword or verbatim block in the first 50 lines. + # If not found, assume Progress. + var lnum = 1 + while lnum <= 50 && lnum < line('$') + var line = getline(lnum) + if line =~ '^\s*;' || line =~ '^\*' + FTasm() + return + elseif line =~ ft_swig_keywords || line =~ ft_swig_verbatim_block_start + setf swig + return + endif + lnum += 1 + endwhile + setf progress +enddef + +export def FTint() + if exists("g:filetype_int") + exe "setf " .. g:filetype_int + elseif IsObjectScriptRoutine() + setf objectscript_routine + else + setf hex + endif +enddef + +var ft_pascal_comments = '^\s*\%({\|(\*\|//\)' +var ft_pascal_keywords = '^\s*\%(program\|unit\|library\|uses\|begin\|procedure\|function\|const\|type\|var\)\>' + +export def FTprogress_pascal() + if exists("g:filetype_p") + exe "setf " .. g:filetype_p + return + endif + # This function checks for valid Pascal syntax in the first ten lines. + # Look for either an opening comment or a program start. + # If not found, assume Progress. + var lnum = 1 + while lnum <= 10 && lnum < line('$') + var line = getline(lnum) + if line =~ ft_pascal_comments || line =~? ft_pascal_keywords + setf pascal + return + elseif line !~ '^\s*$' || line =~ '^/\*' + # Not an empty line: Doesn't look like valid Pascal code. + # Or it looks like a Progress /* comment + break + endif + lnum += 1 + endwhile + setf progress +enddef + +export def FTpp() + if exists("g:filetype_pp") + exe "setf " .. g:filetype_pp + else + var line = getline(nextnonblank(1)) + if line =~ ft_pascal_comments || line =~? ft_pascal_keywords + setf pascal + else + setf puppet + endif + endif +enddef + +# Determine if *.prg is ABB RAPID. Can also be Clipper, FoxPro or eviews +export def FTprg() + if exists("g:filetype_prg") + exe "setf " .. g:filetype_prg + elseif IsRapid() + setf rapid + else + # Nothing recognized, assume Clipper + setf clipper + endif +enddef + +export def FTr() + var max = line("$") > 50 ? 50 : line("$") + + for n in range(1, max) + # Rebol is easy to recognize, check for that first + if getline(n) =~? '\' + setf rebol + return + endif + endfor + + for n in range(1, max) + # R has # comments + if getline(n) =~ '^\s*#' + setf r + return + endif + # Rexx has /* comments */ + if getline(n) =~ '^\s*/\*' + setf rexx + return + endif + endfor + + # Nothing recognized, use user default or assume Rexx + if exists("g:filetype_r") + exe "setf " .. g:filetype_r + else + # Rexx used to be the default, but R appears to be much more popular. + setf r + endif +enddef + +export def McSetf() + # Rely on the file to start with a comment. + # MS message text files use ';', Sendmail files use '#' or 'dnl' + for lnum in range(1, min([line("$"), 20])) + var line = getline(lnum) + if line =~ '^\s*\(#\|dnl\)' + setf m4 # Sendmail .mc file + return + elseif line =~ '^\s*;' + setf msmessages # MS Message text file + return + endif + endfor + setf m4 # Default: Sendmail .mc file +enddef + +# Called from filetype.vim and scripts.vim. +# When "setft" is passed and false then the 'filetype' option is not set. +export def SetFileTypeSH(name: string, setft = true): string + if setft && did_filetype() + # Filetype was already detected + return '' + endif + if setft && expand("") =~ g:ft_ignore_pat + return '' + endif + if name =~ '^csh$' || name =~ '^#!.\{-2,}\' + # Some .sh scripts contain #!/bin/csh. + return SetFileTypeShell("csh", setft) + elseif name =~ '^tcsh$' || name =~ '^#!.\{-2,}\' + # Some .sh scripts contain #!/bin/tcsh. + return SetFileTypeShell("tcsh", setft) + elseif name =~ '^zsh$' || name =~ '^#!.\{-2,}\' + # Some .sh scripts contain #!/bin/zsh. + return SetFileTypeShell("zsh", setft) + elseif name =~ '^ksh$' || name =~ '^#!.\{-2,}\' + b:is_kornshell = 1 + if exists("b:is_bash") + unlet b:is_bash + endif + if exists("b:is_sh") + unlet b:is_sh + endif + elseif exists("g:bash_is_sh") || name =~ '^bash2\=$' || + \ name =~ '^#!.\{-2,}\' + b:is_bash = 1 + if exists("b:is_kornshell") + unlet b:is_kornshell + endif + if exists("b:is_sh") + unlet b:is_sh + endif + elseif name =~ '^\%(da\)\=sh$' || name =~ '^#!.\{-2,}\<\%(da\)\=sh\>' + # Ubuntu links "sh" to "dash", thus it is expected to work the same way + b:is_sh = 1 + if exists("b:is_kornshell") + unlet b:is_kornshell + endif + if exists("b:is_bash") + unlet b:is_bash + endif + endif + + return SetFileTypeShell("sh", setft) +enddef + +# For shell-like file types, check for an "exec" command hidden in a comment, +# as used for Tcl. +# When "setft" is passed and false then the 'filetype' option is not set. +# Also called from scripts.vim, thus can't be local to this script. +export def SetFileTypeShell(name: string, setft = true): string + if setft && did_filetype() + # Filetype was already detected + return '' + endif + if setft && expand("") =~ g:ft_ignore_pat + return '' + endif + + var lnum = 2 + while lnum < 20 && lnum < line("$") && getline(lnum) =~ '^\s*\(#\|$\)' + # Skip empty and comment lines. + lnum += 1 + endwhile + if lnum < line("$") && getline(lnum) =~ '\s*exec\s' && getline(lnum - 1) =~ '^\s*#.*\\$' + # Found an "exec" line after a comment with continuation + var n = substitute(getline(lnum), '\s*exec\s\+\([^ ]*/\)\=', '', '') + if n =~ '\:p') + if path =~ '/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' + setf udevrules + return + endif + if path =~ '^/etc/ufw/' + setf conf # Better than hog + return + endif + if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d' + setf javascript + return + endif + var config_lines: list + try + config_lines = readfile('/etc/udev/udev.conf') + catch /^Vim\%((\a\+)\)\=:E484/ + setf hog + return + endtry + var dir = expand(':p:h') + for line in config_lines + if line =~ ft_rules_udev_rules_pattern + var udev_rules = substitute(line, ft_rules_udev_rules_pattern, '\1', "") + if dir == udev_rules + setf udevrules + endif + break + endif + endfor + setf hog +enddef + +export def SQL() + if exists("g:filetype_sql") + exe "setf " .. g:filetype_sql + else + setf sql + endif +enddef + +export def FTsa() + if join(getline(1, 4), "\n") =~# '\%(^\|\n\);' + setf tiasm + return + endif + setf sather +enddef + +# This function checks the first 25 lines of file extension "sc" to resolve +# detection between scala and SuperCollider. +# NOTE: We don't check for 'Class : Method', as this can easily be confused +# with valid Scala like `val x : Int = 3`. So we instead only rely on +# checks that can't be confused. +export def FTsc() + for lnum in range(1, min([line("$"), 25])) + if getline(lnum) =~# 'var\s<\|classvar\s<\|\^this.*\||\w\+|\|+\s\w*\s{\|\*ar\s' + setf supercollider + return + endif + endfor + setf scala +enddef + +# This function checks the first line of file extension "scd" to resolve +# detection between scdoc and SuperCollider +export def FTscd() + if getline(1) =~# '\%^\S\+(\d[0-9A-Za-z]*)\%(\s\+\"[^"]*\"\%(\s\+\"[^"]*\"\)\=\)\=$' + setf scdoc + else + setf supercollider + endif +enddef + +# If the file has an extension of 't' and is in a directory 't' or 'xt' then +# it is almost certainly a Perl test file. +# If the first line starts with '#' and contains 'perl' it's probably a Perl +# file. +# (Slow test) If a file contains a 'use' statement then it is almost certainly +# a Perl file. +export def FTperl(): number + var dirname = expand("%:p:h:t") + if expand("%:e") == 't' && (dirname == 't' || dirname == 'xt') + setf perl + return 1 + endif + if getline(1)[0] == '#' && getline(1) =~ 'perl' + setf perl + return 1 + endif + var save_cursor = getpos('.') + call cursor(1, 1) + var has_use = search('^use\s\s*\k', 'c', 30) > 0 + call setpos('.', save_cursor) + if has_use + setf perl + return 1 + endif + return 0 +enddef + +# LambdaProlog and Standard ML signature files +export def FTsig() + if exists("g:filetype_sig") + exe "setf " .. g:filetype_sig + return + endif + + var lprolog_comment = '^\s*\%(/\*\|%\)' + var lprolog_keyword = '^\s*sig\s\+\a' + var sml_comment = '^\s*(\*' + var sml_keyword = '^\s*\%(signature\|structure\)\s\+\a' + + var line = getline(nextnonblank(1)) + + if line =~ lprolog_comment || line =~# lprolog_keyword + setf lprolog + elseif line =~ sml_comment || line =~# sml_keyword + setf sml + endif +enddef + +# This function checks the first 100 lines of files matching "*.sil" to +# resolve detection between Swift Intermediate Language and SILE. +export def FTsil() + for lnum in range(1, [line('$'), 100]->min()) + var line: string = getline(lnum) + if line =~ '^\s*[\\%]' + setf sile + return + elseif line =~ '^\s*\S' + setf sil + return + endif + endfor + # no clue, default to "sil" + setf sil +enddef + +export def FTsys() + if exists("g:filetype_sys") + exe "setf " .. g:filetype_sys + elseif IsRapid() + setf rapid + else + setf bat + endif +enddef + +# Choose context, plaintex, or tex (LaTeX) based on these rules: +# 1. Check the first line of the file for "%&". +# 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords. +# 3. Default to "plain" or to g:tex_flavor, can be set in user's vimrc. +export def FTtex() + var firstline = getline(1) + var format: string + if firstline =~ '^%&\s*\a\+' + format = tolower(matchstr(firstline, '\a\+')) + format = substitute(format, 'pdf', '', '') + if format == 'tex' + format = 'latex' + elseif format == 'plaintex' + format = 'plain' + endif + elseif expand('%') =~ 'tex/context/.*/.*.tex' + format = 'context' + else + # Default value, may be changed later: + format = exists("g:tex_flavor") ? g:tex_flavor : 'plain' + # Save position, go to the top of the file, find first non-comment line. + var save_cursor = getpos('.') + call cursor(1, 1) + var firstNC = search('^\s*[^[:space:]%]', 'c', 1000) + if firstNC > 0 + # Check the next thousand lines for a LaTeX or ConTeXt keyword. + var lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>' + var cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>' + var kwline = search('^\s*\\\%(' .. lpat .. '\)\|^\s*\\\(' .. cpat .. '\)', + 'cnp', firstNC + 1000) + if kwline == 1 # lpat matched + format = 'latex' + elseif kwline == 2 # cpat matched + format = 'context' + endif # If neither matched, keep default set above. + # let lline = search('^\s*\\\%(' . lpat . '\)', 'cn', firstNC + 1000) + # let cline = search('^\s*\\\%(' . cpat . '\)', 'cn', firstNC + 1000) + # if cline > 0 + # let format = 'context' + # endif + # if lline > 0 && (cline == 0 || cline > lline) + # let format = 'tex' + # endif + endif # firstNC + call setpos('.', save_cursor) + endif # firstline =~ '^%&\s*\a\+' + + # Translation from formats to file types. TODO: add AMSTeX, RevTex, others? + if format == 'plain' + setf plaintex + elseif format == 'context' + setf context + else # probably LaTeX + setf tex + endif + return +enddef + +export def FTxml() + var n = 1 + while n < 100 && n <= line("$") + var line = getline(n) + # DocBook 4 or DocBook 5. + var is_docbook4 = line =~ '\)' && getline(n) !~ '^\s*#\s*include' + setf racc + return + endif + n += 1 + endwhile + setf yacc +enddef + +export def Redif() + var lnum = 1 + while lnum <= 5 && lnum < line('$') + if getline(lnum) =~ "^\ctemplate-type:" + setf redif + return + endif + lnum += 1 + endwhile +enddef + +# This function is called for all files under */debian/patches/*, make sure not +# to non-dep3patch files, such as README and other text files. +export def Dep3patch() + if expand('%:t') ==# 'series' + return + endif + + for ln in getline(1, 100) + if ln =~# '^\%(Description\|Subject\|Origin\|Bug\|Forwarded\|Author\|From\|Reviewed-by\|Acked-by\|Last-Updated\|Applied-Upstream\):' + setf dep3patch + return + elseif ln =~# '^---' + # end of headers found. stop processing + return + endif + endfor +enddef + +# This function checks the first 15 lines for appearance of 'FoamFile' +# and then 'object' in a following line. +# In that case, it's probably an OpenFOAM file +export def FTfoam() + var ffile = 0 + var lnum = 1 + while lnum <= 15 + if getline(lnum) =~# '^FoamFile' + ffile = 1 + elseif ffile == 1 && getline(lnum) =~# '^\s*object' + setf foam + return + endif + lnum += 1 + endwhile +enddef + +# Determine if a *.tf file is TF mud client or terraform +export def FTtf() + var numberOfLines = line('$') + for i in range(1, numberOfLines) + var currentLine = trim(getline(i)) + var firstCharacter = currentLine[0] + if firstCharacter !=? ";" && firstCharacter !=? "/" && firstCharacter !=? "" + setf terraform + return + endif + endfor + setf tf +enddef + +var ft_krl_header = '\&\w+' +# Determine if a *.src file is Kuka Robot Language +export def FTsrc() + var ft_krl_def_or_deffct = '%(global\s+)?def%(fct)?>' + if exists("g:filetype_src") + exe "setf " .. g:filetype_src + elseif getline(nextnonblank(1)) =~? '\v^\s*%(' .. ft_krl_header .. '|' .. ft_krl_def_or_deffct .. ')' + setf krl + endif +enddef + +# Determine if a *.dat file is Kuka Robot Language +export def FTdat() + var ft_krl_defdat = 'defdat>' + if exists("g:filetype_dat") + exe "setf " .. g:filetype_dat + elseif getline(nextnonblank(1)) =~? '\v^\s*%(' .. ft_krl_header .. '|' .. ft_krl_defdat .. ')' + setf krl + endif +enddef + +export def FTlsl() + if exists("g:filetype_lsl") + exe "setf " .. g:filetype_lsl + endif + + var line = getline(nextnonblank(1)) + if line =~ '^\s*%' || line =~# ':\s*trait\s*$' + setf larch + else + setf lsl + endif +enddef + +export def FTtyp() + if exists("g:filetype_typ") + exe "setf " .. g:filetype_typ + return + endif + + # Look for SQL type definition syntax + for line in getline(1, 200) + # SQL type files may define the casing + if line =~ '^CASE\s\==\s\=\(SAME\|LOWER\|UPPER\|OPPOSITE\)$' + setf sql + return + endif + + # SQL type files may define some types as follows + if line =~ '^TYPE\s.*$' + setf sql + return + endif + endfor + + # Otherwise, affect the typst filetype + setf typst +enddef + +# Detect Microsoft Developer Studio Project files (Makefile) or Faust DSP +# files. +export def FTdsp() + if exists("g:filetype_dsp") + exe "setf " .. g:filetype_dsp + return + endif + + # Test the filename + if expand('%:t') =~ '^[mM]akefile.*$' + setf make + return + endif + + # Test the file contents + for line in getline(1, 200) + # Check for comment style + if line =~ '^#.*' + setf make + return + endif + + # Check for common lines + if line =~ '^.*Microsoft Developer Studio Project File.*$' + setf make + return + endif + + if line =~ '^!MESSAGE This is not a valid makefile\..+$' + setf make + return + endif + + # Check for keywords + if line =~ '^!(IF,ELSEIF,ENDIF).*$' + setf make + return + endif + + # Check for common assignments + if line =~ '^SOURCE=.*$' + setf make + return + endif + endfor + + # Otherwise, assume we have a Faust file + setf faust +enddef + +# Set the filetype of a *.v file to Verilog, V or Cog based on the first 500 +# lines. +export def FTv() + if did_filetype() + # ":setf" will do nothing, bail out early + return + endif + if exists("g:filetype_v") + exe "setf " .. g:filetype_v + return + endif + + var in_comment = 0 + for lnum in range(1, min([line("$"), 500])) + var line = getline(lnum) + # Skip Verilog and V comments (lines and blocks). + if line =~ '^\s*/\*' + # start comment block + in_comment = 1 + endif + if in_comment == 1 + if line =~ '\*/' + # end comment block + in_comment = 0 + endif + # skip comment-block line + continue + endif + if line =~ '^\s*//' + # skip comment line + continue + endif + + # Coq: line ends with a '.' followed by an optional variable number of + # spaces or contains the start of a comment, but not inside a Verilog or V + # comment. + # Example: "Definition x := 10. (*". + if (line =~ '\.\s*$' && line !~ '/[/*]') || (line =~ '(\*' && line !~ '/[/*].*(\*') + setf coq + return + endif + + # Verilog: line ends with ';' followed by an optional variable number of + # spaces and an optional start of a comment. + # Example: " b <= a + 1; // Add 1". + # Alternatively: a module is defined: " module MyModule ( input )" + if line =~ ';\s*\(/[/*].*\)\?$' || line =~ '\C^\s*module\s\+\w\+\s*(' + setf verilog + return + endif + endfor + + # No line matched, fall back to "v". + setf v +enddef + +export def FTvba() + if getline(1) =~ '^["#] Vimball Archiver' + setf vim + else + setf vb + endif +enddef + +export def Detect_UCI_statements(): bool + # Match a config or package statement at the start of the line. + const config_or_package_statement = '^\s*\(\(c\|config\)\|\(p\|package\)\)\s\+\S' + # Match a line that is either all blank or blank followed by a comment + const comment_or_blank = '^\s*\(#.*\)\?$' + + # Return true iff the file has a config or package statement near the + # top of the file and all preceding lines were comments or blank. + return getline(1) =~# config_or_package_statement + \ || getline(1) =~# comment_or_blank + \ && ( getline(2) =~# config_or_package_statement + \ || getline(2) =~# comment_or_blank + \ && getline(3) =~# config_or_package_statement + \ ) +enddef + +export def DetectFromName() + const amatch = expand("") + const name = fnamemodify(amatch, ':t') + const ft = get(ft_from_name, name, '') + if ft != '' + execute "setf " .. ft + endif +enddef + +export def DetectFromExt() + const amatch = expand("") + var ext = fnamemodify(amatch, ':e') + const name = fnamemodify(amatch, ':t') + if ext == '' && name[0] == '.' + ext = name[1 : ] + endif + const ft = get(ft_from_ext, ext, '') + if ft != '' + execute "setf " .. ft + endif +enddef + +# Key: extension of the file name. without `.` +# Value: filetype +const ft_from_ext = { + # 8th (Firth-derivative) + "8th": "8th", + # A-A-P recipe + "aap": "aap", + # ABAB/4 + "abap": "abap", + # ABC music notation + "abc": "abc", + # ABEL + "abl": "abel", + # ABNF + "abnf": "abnf", + # AceDB + "wrm": "acedb", + # Ada (83, 9X, 95) + "adb": "ada", + "ads": "ada", + "ada": "ada", + # AHDL + "tdf": "ahdl", + # AIDL + "aidl": "aidl", + # AMPL + "run": "ampl", + # ANTLR / PCCTS + "g": "pccts", + # ANTLR 4 + "g4": "antlr4", + # Arduino + "ino": "arduino", + "pde": "arduino", + # Asymptote + "asy": "asy", + # XA65 MOS6510 cross assembler + "a65": "a65", + # Applescript + "applescript": "applescript", + "scpt": "applescript", + # Applix ELF + "am": "elf", + # Arc Macro Language + "aml": "aml", + # ART*Enterprise (formerly ART-IM) + "art": "art", + # AsciiDoc + "asciidoc": "asciidoc", + "adoc": "asciidoc", + # ASN.1 + "asn": "asn", + "asn1": "asn", + # Assembly - Netwide + "nasm": "nasm", + # Assembly - Microsoft + "masm": "masm", + # Assembly - Macro (VAX) + "mar": "vmasm", + # Astro + "astro": "astro", + # Atlas + "atl": "atlas", + "as": "atlas", + # Atom is based on XML + "atom": "xml", + # Authzed + "zed": "authzed", + # Autoit v3 + "au3": "autoit", + # Autohotkey + "ahk": "autohotkey", + # Autotest .at files are actually Autoconf M4 + "at": "config", + # Avenue + "ave": "ave", + # Awk + "awk": "awk", + "gawk": "awk", + # B + "mch": "b", + "ref": "b", + "imp": "b", + # Bass + "bass": "bass", + # IBasic file (similar to QBasic) + "iba": "ibasic", + "ibi": "ibasic", + # FreeBasic file (similar to QBasic) + "fb": "freebasic", + # Batch file for MSDOS. See dist#ft#FTsys for *.sys + "bat": "dosbatch", + # BC calculator + "bc": "bc", + # BDF font + "bdf": "bdf", + # Beancount + "beancount": "beancount", + # BibTeX bibliography database file + "bib": "bib", + # BibTeX Bibliography Style + "bst": "bst", + # Bicep + "bicep": "bicep", + "bicepparam": "bicep-params", + # BIND zone + "zone": "bindzone", + # Blank + "bl": "blank", + # Brighterscript + "bs": "brighterscript", + # Brightscript + "brs": "brightscript", + # BSDL + "bsd": "bsdl", + "bsdl": "bsdl", + # Bpftrace + "bt": "bpftrace", + # C3 + "c3": "c3", + "c3i": "c3", + "c3t": "c3", + # Cairo + "cairo": "cairo", + # Cap'n Proto + "capnp": "capnp", + # Common Package Specification + "cps": "json", + # C# + "cs": "cs", + "csx": "cs", + "cake": "cs", + # CSDL + "csdl": "csdl", + # Ctags + "ctags": "conf", + # Cabal + "cabal": "cabal", + # Cedar + "cedar": "cedar", + # ChaiScript + "chai": "chaiscript", + # Chatito + "chatito": "chatito", + # Chuck + "ck": "chuck", + # Comshare Dimension Definition Language + "cdl": "cdl", + # Conary Recipe + "recipe": "conaryrecipe", + # Corn config file + "corn": "corn", + # ChainPack Object Notation (CPON) + "cpon": "cpon", + # Controllable Regex Mutilator + "crm": "crm", + # Cyn++ + "cyn": "cynpp", + # Cypher query language + "cypher": "cypher", + # C++ + "cxx": "cpp", + "c++": "cpp", + "hh": "cpp", + "hxx": "cpp", + "hpp": "cpp", + "ipp": "cpp", + "moc": "cpp", + "tcc": "cpp", + "inl": "cpp", + # MS files (ixx: C++ module interface file, Microsoft Project file) + "ixx": "cpp", + "mpp": "cpp", + # C++ 20 modules (clang) + # https://clang.llvm.org/docs/StandardCPlusPlusModules.html#file-name-requirement + "cppm": "cpp", + "ccm": "cpp", + "cxxm": "cpp", + "c++m": "cpp", + # Ch (CHscript) + "chf": "ch", + # TLH files are C++ headers generated by Visual C++'s #import from typelibs + "tlh": "cpp", + # Cascading Style Sheets + "css": "css", + # Common Expression Language (CEL) - https://cel.dev + "cel": "cel", + # Century Term Command Scripts (*.cmd too) + "con": "cterm", + # ChordPro + "chopro": "chordpro", + "crd": "chordpro", + "cho": "chordpro", + "crdpro": "chordpro", + "chordpro": "chordpro", + # Clean + "dcl": "clean", + "icl": "clean", + # Clever + "eni": "cl", + # Clojure + "clj": "clojure", + "cljs": "clojure", + "cljx": "clojure", + "cljc": "clojure", + # Cobol + "cbl": "cobol", + "cob": "cobol", + # Coco/R + "atg": "coco", + # Cold Fusion + "cfm": "cf", + "cfi": "cf", + "cfc": "cf", + # Cooklang + "cook": "cook", + # Clinical Quality Language (CQL) + # .cql is also mentioned as the 'XDCC Catcher queue list' file extension. + # If support for XDCC Catcher is needed in the future, the contents of the file + # needs to be inspected. + "cql": "cqlang", + # Crystal + "cr": "crystal", + # CSV Files + "csv": "csv", + # Concertor + "cto": "concerto", + # CUDA Compute Unified Device Architecture + "cu": "cuda", + "cuh": "cuda", + # Cue + "cue": "cue", + # DAX + "dax": "dax", + # WildPackets EtherPeek Decoder + "dcd": "dcd", + # Elvish + "elv": "elvish", + # Faust + "lib": "faust", + # Fennel + "fnl": "fennel", + "fnlm": "fennel", + # Libreoffice config files + "xcu": "xml", + "xlb": "xml", + "xlc": "xml", + "xba": "xml", + # Libtool files + "lo": "sh", + "la": "sh", + "lai": "sh", + # LyRiCs + "lrc": "lyrics", + # MLIR + "mlir": "mlir", + # Quake C + "qc": "c", + # Cucumber + "feature": "cucumber", + # Communicating Sequential Processes + "csp": "csp", + "fdr": "csp", + # CUPL logic description and simulation + "pld": "cupl", + "si": "cuplsim", + # Dafny + "dfy": "dafny", + # Dart + "dart": "dart", + "drt": "dart", + # Dhall + "dhall": "dhall", + # ROCKLinux package description + "desc": "desc", + # Desktop files + "desktop": "desktop", + "directory": "desktop", + # Diff files + "diff": "diff", + "rej": "diff", + # Djot + "dj": "djot", + "djot": "djot", + # DOT + "dot": "dot", + "gv": "dot", + # Dylan - lid files + "lid": "dylanlid", + # Dylan - intr files (melange) + "intr": "dylanintr", + # Dylan + "dylan": "dylan", + # Dracula + "drac": "dracula", + "drc": "dracula", + "lvs": "dracula", + "lpe": "dracula", + # Datascript + "ds": "datascript", + # DTD (Document Type Definition for XML) + "dtd": "dtd", + # Devicetree (.its for U-Boot Flattened Image Trees, .keymap for ZMK keymap, and + # .overlay for Zephyr overlay) + "dts": "dts", + "dtsi": "dts", + "dtso": "dts", + "its": "dts", + "keymap": "dts", + "overlay": "dts", + # Embedix Component Description + "ecd": "ecd", + # ERicsson LANGuage; Yaws is erlang too + "erl": "erlang", + "hrl": "erlang", + "yaws": "erlang", + # Elm + "elm": "elm", + # Elsa - https://github.com/ucsd-progsys/elsa + "lc": "elsa", + # EdgeDB Schema Definition Language + "esdl": "esdl", + # ESQL-C + "ec": "esqlc", + "EC": "esqlc", + # Esterel + "strl": "esterel", + # Essbase script + "csc": "csc", + # Expect + "exp": "expect", + # Falcon + "fal": "falcon", + # Fantom + "fan": "fan", + "fwt": "fan", + # Factor + "factor": "factor", + # FGA + "fga": "fga", + # FIRRTL - Flexible Internal Representation for RTL + "fir": "firrtl", + # Fish shell + "fish": "fish", + # Flix + "flix": "flix", + # Fluent + "ftl": "fluent", + # Focus Executable + "fex": "focexec", + "focexec": "focexec", + # Focus Master file (but not for auto.master) + "mas": "master", + "master": "master", + # Forth + "ft": "forth", + "fth": "forth", + "4th": "forth", + # Reva Forth + "frt": "reva", + # Framescript + "fsl": "framescript", + # Func + "fc": "func", + # Fusion + "fusion": "fusion", + # FHIR Shorthand (FSH) + "fsh": "fsh", + # F# + "fsi": "fsharp", + "fsx": "fsharp", + # GDMO + "mo": "gdmo", + "gdmo": "gdmo", + # GDscript + "gd": "gdscript", + # Godot resource + "tscn": "gdresource", + "tres": "gdresource", + # Godot shader + "gdshader": "gdshader", + "shader": "gdshader", + # Gemtext + "gmi": "gemtext", + "gemini": "gemtext", + # Gift (Moodle) + "gift": "gift", + # Gleam + "gleam": "gleam", + # GLSL + # Extensions supported by Khronos reference compiler (with one exception, ".glsl") + # https://github.com/KhronosGroup/glslang + "vert": "glsl", + "tesc": "glsl", + "tese": "glsl", + "glsl": "glsl", + "geom": "glsl", + "frag": "glsl", + "comp": "glsl", + "rgen": "glsl", + "rmiss": "glsl", + "rchit": "glsl", + "rahit": "glsl", + "rint": "glsl", + "rcall": "glsl", + # GN (generate ninja) files + "gn": "gn", + "gni": "gn", + # Glimmer-flavored TypeScript and JavaScript + "gts": "typescript.glimmer", + "gjs": "javascript.glimmer", + # Go (Google) + "go": "go", + # GrADS scripts + "gs": "grads", + # GraphQL + "graphql": "graphql", + "graphqls": "graphql", + "gql": "graphql", + # Gretl + "gretl": "gretl", + # GNU Server Pages + "gsp": "gsp", + # GYP + "gyp": "gyp", + "gypi": "gyp", + # Hack + "hack": "hack", + "hackpartial": "hack", + # Haml + "haml": "haml", + # Hamster Classic | Playground files + "hsm": "hamster", + # Handlebars + "hbs": "handlebars", + # Hare + "ha": "hare", + # Haskell + "hs": "haskell", + "hsc": "haskell", + "hs-boot": "haskell", + "hsig": "haskell", + "lhs": "lhaskell", + "chs": "chaskell", + # Haste + "ht": "haste", + "htpp": "hastepreproc", + # Haxe + "hx": "haxe", + # HCL + "hcl": "hcl", + # Hercules + "vc": "hercules", + "ev": "hercules", + "sum": "hercules", + "errsum": "hercules", + # HEEx + "heex": "heex", + # HEX (Intel) + "hex": "hex", + "ihex": "hex", + "int": "hex", + "ihe": "hex", + "ihx": "hex", + "mcs": "hex", + "h32": "hex", + "h80": "hex", + "h86": "hex", + "a43": "hex", + "a90": "hex", + # Hjson + "hjson": "hjson", + # HLS Playlist (or another form of playlist) + "m3u": "hlsplaylist", + "m3u8": "hlsplaylist", + # Hollywood + "hws": "hollywood", + # Hoon + "hoon": "hoon", + # TI Code Composer Studio General Extension Language + "gel": "gel", + # HTTP request files + "http": "http", + # HTML with Ruby - eRuby + "erb": "eruby", + "rhtml": "eruby", + # Some template. Used to be HTML Cheetah. + "tmpl": "template", + # Hurl + "hurl": "hurl", + # Hylo + "hylo": "hylo", + # Hyper Builder + "hb": "hb", + # Httest + "htt": "httest", + "htb": "httest", + # Icon + "icn": "icon", + # Microsoft IDL (Interface Description Language) Also *.idl + # MOF = WMI (Windows Management Instrumentation) Managed Object Format + "odl": "msidl", + "mof": "msidl", + # Idris2 + "idr": "idris2", + "lidr": "lidris2", + # Inform + "inf": "inform", + "INF": "inform", + # Ipkg for Idris 2 language + "ipkg": "ipkg", + # Informix 4GL (source - canonical, include file, I4GL+M4 preproc.) + "4gl": "fgl", + "4gh": "fgl", + "m4gl": "fgl", + # .INI file for MSDOS + "ini": "dosini", + "INI": "dosini", + # Inko + "inko": "inko", + # Inno Setup + "iss": "iss", + # J + "ijs": "j", + # JAL + "jal": "jal", + "JAL": "jal", + # Jam + "jpl": "jam", + "jpr": "jam", + # Janet + "janet": "janet", + # Java + "java": "java", + "jav": "java", + "jsh": "java", + # JavaCC + "jj": "javacc", + "jjt": "javacc", + # JavaScript, ECMAScript, ES module script, CommonJS script + "js": "javascript", + "jsm": "javascript", + "javascript": "javascript", + "es": "javascript", + "mjs": "javascript", + "cjs": "javascript", + # JavaScript with React + "jsx": "javascriptreact", + # Java Server Pages + "jsp": "jsp", + # Jess + "clp": "jess", + # Jgraph + "jgr": "jgraph", + # Jinja + "jinja": "jinja", + # Jujutsu + "jjdescription": "jjdescription", + # Jovial + "jov": "jovial", + "j73": "jovial", + "jovial": "jovial", + # Jq + "jq": "jq", + # JSON5 + "json5": "json5", + # JSON Patch (RFC 6902) + "json-patch": "json", + # Geojson is also json + "geojson": "json", + # Jupyter Notebook and jupyterlab config is also json + "ipynb": "json", + "jupyterlab-settings": "json", + # Sublime config + "sublime-project": "json", + "sublime-settings": "json", + "sublime-workspace": "json", + # JSON + "json": "json", + "jsonp": "json", + "webmanifest": "json", + # JSON Lines + "jsonl": "jsonl", + # Jsonnet + "jsonnet": "jsonnet", + "libsonnet": "jsonnet", + # Julia + "jl": "julia", + # KAREL + "kl": "karel", + "KL": "karel", + # KDL + "kdl": "kdl", + # KerML + "kerml": "kerml", + # Kixtart + "kix": "kix", + # Kimwitu[++] + "k": "kwt", + # Kivy + "kv": "kivy", + # Koka + "kk": "koka", + # Kos + "kos": "kos", + # Kotlin + "kt": "kotlin", + "ktm": "kotlin", + "kts": "kotlin", + # KDE script + "ks": "kscript", + # Kyaml + "kyaml": "yaml", + "kyml": "yaml", + # Lace (ISE) + "ace": "lace", + "ACE": "lace", + # Latte + "latte": "latte", + "lte": "latte", + # LDAP LDIF + "ldif": "ldif", + # Lean + "lean": "lean", + # Ledger + "ldg": "ledger", + "ledger": "ledger", + "journal": "ledger", + # Leex + "xrl": "leex", + # Leo + "leo": "leo", + # Less + "less": "less", + # Lex + "lex": "lex", + "l": "lex", + "lxx": "lex", + "l++": "lex", + # Lilypond + "ly": "lilypond", + "ily": "lilypond", + # Liquidsoap + "liq": "liquidsoap", + # Liquid + "liquid": "liquid", + # Lite + "lite": "lite", + "lt": "lite", + # Livebook + "livemd": "livebook", + # Logtalk + "lgt": "logtalk", + # LOTOS + "lotos": "lotos", + # Lout (also: *.lt) + "lou": "lout", + "lout": "lout", + # Luau + "luau": "luau", + # Lynx style file (or LotusScript!) + "lss": "lss", + # MaGic Point + "mgp": "mgp", + # MakeIndex + "ist": "ist", + "mst": "ist", + # Mallard + "page": "mallard", + # Manpage + "man": "man", + # Maple V + "mv": "maple", + "mpl": "maple", + "mws": "maple", + # Mason (it used to include *.comp, are those Mason files?) + "mason": "mason", + "mhtml": "mason", + # Mathematica notebook and package files + "nb": "mma", + "wl": "mma", + # Maya Extension Language + "mel": "mel", + # mcmeta + "mcmeta": "json", + # MediaWiki + "mw": "mediawiki", + "wiki": "mediawiki", + # Mermaid + "mmd": "mermaid", + "mmdc": "mermaid", + "mermaid": "mermaid", + # Meson Build system config + "wrap": "dosini", + # Metafont + "mf": "mf", + # MetaPost + "mp": "mp", + # MGL + "mgl": "mgl", + # MIX - Knuth assembly + "mix": "mix", + "mixal": "mix", + # Symbian meta-makefile definition (MMP) + "mmp": "mmp", + # Larch/Modula-3 + "lm3": "modula3", + # Monk + "isc": "monk", + "monk": "monk", + "ssc": "monk", + "tsc": "monk", + # MOO + "moo": "moo", + # Moonscript + "moon": "moonscript", + # Move language + "move": "move", + # MPD is based on XML + "mpd": "xml", + # Motorola S record + "s19": "srec", + "s28": "srec", + "s37": "srec", + "mot": "srec", + "srec": "srec", + # Msql + "msql": "msql", + # MuPAD source + "mu": "mupad", + # Mush + "mush": "mush", + # Mustache + "mustache": "mustache", + # N1QL + "n1ql": "n1ql", + "nql": "n1ql", + # Neon + "neon": "neon", + # NetLinx + "axs": "netlinx", + "axi": "netlinx", + # Nickel + "ncl": "nickel", + # Nim file + "nim": "nim", + "nims": "nim", + "nimble": "nim", + # Ninja file + "ninja": "ninja", + # Nix + "nix": "nix", + # Norg + "norg": "norg", + # Novell netware batch files + "ncf": "ncf", + # N-Quads + "nq": "nq", + # Not Quite C + "nqc": "nqc", + # NSE - Nmap Script Engine - uses Lua syntax + "nse": "lua", + # NSIS + "nsi": "nsis", + "nsh": "nsis", + # N-Triples + "nt": "ntriples", + # Nu + "nu": "nu", + # Numbat + "nbt": "numbat", + # Oblivion Language and Oblivion Script Extender + "obl": "obse", + "obse": "obse", + "oblivion": "obse", + "obscript": "obse", + # Objdump + "objdump": "objdump", + "cppobjdump": "objdump", + # Occam + "occ": "occam", + # Odin + "odin": "odin", + # Omnimark + "xom": "omnimark", + "xin": "omnimark", + # OpenROAD + "or": "openroad", + # OpenSCAD + "scad": "openscad", + # Oracle config file + "ora": "ora", + # Org (Emacs' org-mode) + "org": "org", + "org_archive": "org", + # PApp + "papp": "papp", + "pxml": "papp", + "pxsl": "papp", + # Pascal (also *.p, *.pp, *.inc) + "pas": "pascal", + # Delphi + "dpr": "pascal", + # Free Pascal makefile definition file + "fpc": "fpcmake", + # Path of Exile item filter + "filter": "poefilter", + # PDF + "pdf": "pdf", + # PCMK - HAE - crm configure edit + "pcmk": "pcmk", + # PEM (Privacy-Enhanced Mail) + "pem": "pem", + "cer": "pem", + "crt": "pem", + "csr": "pem", + # Perl POD + "pod": "pod", + # Pike and Cmod + "pike": "pike", + "pmod": "pike", + "cmod": "cmod", + # Palm Resource compiler + "rcp": "pilrc", + # Pip requirements + "pip": "requirements", + # PL/1, PL/I + "pli": "pli", + "pl1": "pli", + # PL/M (also: *.inp) + "plm": "plm", + "p36": "plm", + "pac": "plm", + # PL/SQL + "pls": "plsql", + "plsql": "plsql", + # PLP + "plp": "plp", + # PO and PO template (GNU gettext) + "po": "po", + "pot": "po", + # Pony + "pony": "pony", + # PostScript (+ font files, encapsulated PostScript, Adobe Illustrator) + "ps": "postscr", + "pfa": "postscr", + "afm": "postscr", + "eps": "postscr", + "epsf": "postscr", + "epsi": "postscr", + "ai": "postscr", + # PostScript Printer Description + "ppd": "ppd", + # Povray + "pov": "pov", + # Power Query M + "pq": "pq", + # Prisma + "prisma": "prisma", + # PPWizard + "it": "ppwiz", + "ih": "ppwiz", + # Pug + "pug": "pug", + # Embedded Puppet + "epp": "epuppet", + # Obj 3D file format + # TODO: is there a way to avoid MS-Windows Object files? + "obj": "obj", + # Oracle Pro*C/C++ + "pc": "proc", + # Privoxy actions file + "action": "privoxy", + # Software Distributor Product Specification File (POSIX 1387.2-1995) + "psf": "psf", + # Prolog + "pdb": "prolog", + # Promela + "pml": "promela", + # Property Specification Language (PSL) + "psl": "psl", + # Google protocol buffers + "proto": "proto", + "txtpb": "pbtxt", + "textproto": "pbtxt", + "textpb": "pbtxt", + "pbtxt": "pbtxt", + "aconfig": "pbtxt", # Android aconfig files + # Poke + "pk": "poke", + # Nvidia PTX (Parallel Thread Execution) + # See https://docs.nvidia.com/cuda/parallel-thread-execution/ + "ptx": "ptx", + # Purescript + "purs": "purescript", + # Pyret + "arr": "pyret", + # Pyrex/Cython + "pyx": "pyrex", + "pyx+": "pyrex", + "pxd": "pyrex", + "pxi": "pyrex", + # QL + "ql": "ql", + "qll": "ql", + # QML + "qml": "qml", + "qbs": "qml", + # Quarto + "qmd": "quarto", + # QuickBms + "bms": "quickbms", + # Racket (formerly detected as "scheme") + "rkt": "racket", + "rktd": "racket", + "rktl": "racket", + # Radiance + "rad": "radiance", + "mat": "radiance", + # Raku (formerly Perl6) + "pm6": "raku", + "p6": "raku", + "t6": "raku", + "pod6": "raku", + "raku": "raku", + "rakumod": "raku", + "rakudoc": "raku", + "rakutest": "raku", + # Razor + "cshtml": "razor", + "razor": "razor", + # Renderman Interface Bytestream + "rib": "rib", + # Rego Policy Language + "rego": "rego", + # Rexx + "rex": "rexx", + "orx": "rexx", + "rxo": "rexx", + "rxj": "rexx", + "jrexx": "rexx", + "rexxj": "rexx", + "rexx": "rexx", + "testGroup": "rexx", + "testUnit": "rexx", + # RSS looks like XML + "rss": "xml", + # ReScript + "res": "rescript", + "resi": "rescript", + # Relax NG Compact + "rnc": "rnc", + # Relax NG XML + "rng": "rng", + # ILE RPG + "rpgle": "rpgle", + "rpgleinc": "rpgle", + # RPL/2 + "rpl": "rpl", + # Robot Framework + "robot": "robot", + "resource": "robot", + # Roc + "roc": "roc", + # RON (Rusty Object Notation) + "ron": "ron", + # MikroTik RouterOS script + "rsc": "routeros", + # Rpcgen + "x": "rpcgen", + # reStructuredText Documentation Format + "rst": "rst", + # RTF + "rtf": "rtf", + # ObjectScript Routine + "rtn": "objectscript_routine", + # Ruby + "rb": "ruby", + "rbw": "ruby", + # RubyGems + "gemspec": "ruby", + # RBS (Ruby Signature) + "rbs": "rbs", + # Rackup + "ru": "ruby", + # Ruby on Rails + "builder": "ruby", + "rxml": "ruby", + "rjs": "ruby", + # Sorbet (Ruby typechecker) + "rbi": "ruby", + # Rust + "rs": "rust", + # S-lang + "sl": "slang", + # Sage + "sage": "sage", + # SAS script + "sas": "sas", + # Sass + "sass": "sass", + # Scala + "scala": "scala", + "mill": "scala", + # SBT - Scala Build Tool + "sbt": "sbt", + # Slang Shading Language + "slang": "shaderslang", + # Slint + "slint": "slint", + # Scilab + "sci": "scilab", + "sce": "scilab", + # SCSS + "scss": "scss", + # SD: Streaming Descriptors + "sd": "sd", + # SDL + "sdl": "sdl", + "pr": "sdl", + # sed + "sed": "sed", + # SubRip + "srt": "srt", + # SubStation Alpha + "ass": "ssa", + "ssa": "ssa", + # svelte + "svelte": "svelte", + # Sieve (RFC 3028, 5228) + "siv": "sieve", + "sieve": "sieve", + # TriG + "trig": "trig", + # Zig and Zig Object Notation (ZON) + "zig": "zig", + "zon": "zig", + # Ziggy and Ziggy Schema + "ziggy": "ziggy", + "ziggy-schema": "ziggy_schema", + # Zserio + "zs": "zserio", + # Salt state files + "sls": "salt", + # Sexplib + "sexp": "sexplib", + # Simula + "sim": "simula", + # SINDA + "sin": "sinda", + "s85": "sinda", + # SiSU + "sst": "sisu", + "ssm": "sisu", + "ssi": "sisu", + "-sst": "sisu", + "_sst": "sisu", + # SKILL + "il": "skill", + "ils": "skill", + "cdf": "skill", + # Cadence + "cdc": "cdc", + # Cangjie + "cj": "cangjie", + # SLRN + "score": "slrnsc", + # Smali + "smali": "smali", + # Smalltalk + "st": "st", + # Smarty templates + "tpl": "smarty", + # SMITH + "smt": "smith", + "smith": "smith", + # Smithy + "smithy": "smithy", + # Snobol4 and spitbol + "sno": "snobol4", + "spt": "snobol4", + # SNMP MIB files + "mib": "mib", + "my": "mib", + # Solidity + "sol": "solidity", + # SPARQL queries + "rq": "sparql", + "sparql": "sparql", + # Spec (Linux RPM) + "spec": "spec", + # Speedup (AspenTech plant simulator) + "speedup": "spup", + "spdata": "spup", + "spd": "spup", + # Slice + "ice": "slice", + # Microsoft Visual Studio Solution + "sln": "solution", + "slnf": "json", + "slnx": "xml", + # Spice + "sp": "spice", + "spice": "spice", + # Spyce + "spy": "spyce", + "spi": "spyce", + # SQL for Oracle Designer + "tyb": "sql", + "tyc": "sql", + "pkb": "sql", + "pks": "sql", + # SQLJ + "sqlj": "sqlj", + # PRQL + "prql": "prql", + # SQR + "sqr": "sqr", + "sqi": "sqr", + # Squirrel + "nut": "squirrel", + # Starlark + "ipd": "starlark", + "sky": "starlark", + "star": "starlark", + "starlark": "starlark", + # OpenVPN configuration + "ovpn": "openvpn", + # Stata + "ado": "stata", + "do": "stata", + "imata": "stata", + "mata": "stata", + # SMCL + "hlp": "smcl", + "ihlp": "smcl", + "smcl": "smcl", + # Soy + "soy": "soy", + # Stored Procedures + "stp": "stp", + # Standard ML + "sml": "sml", + # Sratus VOS command macro + "cm": "voscm", + # Sway (programming language) + "sw": "sway", + # Swift + "swift": "swift", + "swiftinterface": "swift", + # Swig + "swg": "swig", + "swig": "swig", + # Synopsys Design Constraints + "sdc": "sdc", + # SVG (Scalable Vector Graphics) + "svg": "svg", + # Surface + "sface": "surface", + # SysML + "sysml": "sysml", + # LLVM TableGen + "td": "tablegen", + # TAK + "tak": "tak", + # Unx Tal + "tal": "tal", + # templ + "templ": "templ", + # Teal + "tl": "teal", + # TealInfo + "tli": "tli", + # Telix Salt + "slt": "tsalt", + # Terminfo + "ti": "terminfo", + # Tera + "tera": "tera", + # Terraform variables + "tfvars": "terraform-vars", + # TeX + "latex": "tex", + "sty": "tex", + "dtx": "tex", + "ltx": "tex", + "bbl": "tex", + # LaTeX files generated by Inkscape + "pdf_tex": "tex", + # ConTeXt + "mkii": "context", + "mkiv": "context", + "mkvi": "context", + "mkxl": "context", + "mklx": "context", + # Texinfo + "texinfo": "texinfo", + "texi": "texinfo", + "txi": "texinfo", + # Thrift (Apache) + "thrift": "thrift", + # Tiger + "tig": "tiger", + # TLA+ + "tla": "tla", + # TPP - Text Presentation Program + "tpp": "tpp", + # TRACE32 Script Language + "cmm": "trace32", + "cmmt": "trace32", + "t32": "trace32", + # Treetop + "treetop": "treetop", + # TSS - Geometry + "tssgm": "tssgm", + # TSS - Optics + "tssop": "tssop", + # TSS - Command Line (temporary) + "tsscl": "tsscl", + # TSV Files + "tsv": "tsv", + # Tutor mode + "tutor": "tutor", + # TWIG files + "twig": "twig", + # TypeScript module and common + "mts": "typescript", + "cts": "typescript", + # TypeScript with React + "tsx": "typescriptreact", + # TypeSpec files + "tsp": "typespec", + # Motif UIT/UIL files + "uit": "uil", + "uil": "uil", + # Ungrammar, AKA Un-grammar + "ungram": "ungrammar", + # UnrealScript + "uc": "uc", + # URL shortcut + "url": "urlshortcut", + # V + "vsh": "v", + "vv": "v", + # Vala + "vala": "vala", + # VDF + "vdf": "vdf", + # VDM + "vdmpp": "vdmpp", + "vpp": "vdmpp", + "vdmrt": "vdmrt", + "vdmsl": "vdmsl", + "vdm": "vdmsl", + # Vento + "vto": "vento", + # Vera + "vr": "vera", + "vri": "vera", + "vrh": "vera", + # Verilog-AMS HDL + "va": "verilogams", + "vams": "verilogams", + # SystemVerilog + "sv": "systemverilog", + "svh": "systemverilog", + # VHS tape + # .tape is also used by TapeCalc, which we do not support ATM. If TapeCalc + # support is needed the contents of the file needs to be inspected. + "tape": "vhs", + # VHDL + "hdl": "vhdl", + "vhd": "vhdl", + "vhdl": "vhdl", + "vbe": "vhdl", + "vst": "vhdl", + "vho": "vhdl", + # Visual Basic + # user control, ActiveX document form, active designer, property page + "ctl": "vb", + "dob": "vb", + "dsr": "vb", + "pag": "vb", + # Visual Basic Project + "vbp": "dosini", + # VBScript (close to Visual Basic) + "vbs": "vb", + # Visual Basic .NET (close to Visual Basic) + "vb": "vb", + # Visual Studio Macro + "dsm": "vb", + # SaxBasic (close to Visual Basic) + "sba": "vb", + # VRML V1.0c + "wrl": "vrml", + # Vroom (vim testing and executable documentation) + "vroom": "vroom", + # Vue.js Single File Component + "vue": "vue", + # WebAssembly + "wat": "wat", + "wast": "wat", + # WebAssembly Interface Type (WIT) + "wit": "wit", + # Webmacro + "wm": "webmacro", + # WebGPU Shading Language (WGSL) + "wgsl": "wgsl", + # Website MetaLanguage + "wml": "wml", + # Winbatch + "wbt": "winbatch", + # WSML + "wsml": "wsml", + # WPL + "wpl": "xml", + # XHTML + "xhtml": "xhtml", + "xht": "xhtml", + # Xilinx Vivado/Vitis project files and block design files + "xpr": "xml", + "xpfm": "xml", + "spfm": "xml", + "bxml": "xml", + "mmi": "xml", + "bd": "json", + "bda": "json", + "xci": "json", + "mss": "mss", + # XS Perl extension interface language + "xs": "xs", + # Xmath + "msc": "xmath", + "msf": "xmath", + # XMI (holding UML models) is also XML + "xmi": "xml", + # Unison Language + "u": "unison", + "uu": "unison", + # Qt Linguist translation source and Qt User Interface Files are XML + # However, for .ts TypeScript is more common. + "ui": "xml", + # TPM's are RDF-based descriptions of TeX packages (Nikolai Weibull) + "tpm": "xml", + # Web Services Description Language (WSDL) + "wsdl": "xml", + # Workflow Description Language (WDL) + "wdl": "wdl", + # XLIFF (XML Localisation Interchange File Format) is also XML + "xlf": "xml", + "xliff": "xml", + # XML User Interface Language + "xul": "xml", + # Xquery + "xq": "xquery", + "xql": "xquery", + "xqm": "xquery", + "xquery": "xquery", + "xqy": "xquery", + # XSD + "xsd": "xsd", + # Xslt + "xsl": "xslt", + "xslt": "xslt", + # Yacc + "yy": "yacc", + "yxx": "yacc", + "y++": "yacc", + # Yaml + "yaml": "yaml", + "yml": "yaml", + "eyaml": "yaml", + # Raml + "raml": "raml", + # YANG + "yang": "yang", + # YARA, YARA-X + "yara": "yara", + "yar": "yara", + # Yuck + "yuck": "yuck", + # Zimbu + "zu": "zimbu", + # Zimbu Templates + "zut": "zimbutempl", + # Z80 assembler asz80 + "z8a": "z8a", + # Stylus + "styl": "stylus", + "stylus": "stylus", + # Universal Scene Description + "usda": "usd", + "usd": "usd", + # Rofi stylesheet + "rasi": "rasi", + "rasinc": "rasi", + # Zsh module + # mdd: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L285-L288 + # mdh, pro: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L268-L271 + # *.mdd will generate *.mdh, *.pro and *.epro. + # module's *.c will #include *.mdh containing module dependency information and + # *.pro containing all static declarations of *.c + # *.epro contains all external declarations of *.c + "mdh": "c", + "epro": "c", + "mdd": "sh", + # Blueprint markup files + "blp": "blueprint", + # Blueprint build system file + "bp": "bp", + # Tiltfile + "Tiltfile": "tiltfile", + "tiltfile": "tiltfile" +} +# Key: file name (the final path component, excluding the drive and root) +# Value: filetype +const ft_from_name = { + # Ant + "build.xml": "ant", + # Ash of busybox + ".ash_history": "sh", + # Automake (must be before the *.am pattern) + "makefile.am": "automake", + "Makefile.am": "automake", + "GNUmakefile.am": "automake", + # APT config file + "apt.conf": "aptconf", + # BIND zone + "named.root": "bindzone", + # Brewfile (uses Ruby syntax) + "Brewfile": "ruby", + # Busted (Lua unit testing framework - configuration files) + ".busted": "lua", + # Bun history + ".bun_repl_history": "javascript", + # Calendar + "calendar": "calendar", + # Cgdb config file + "cgdbrc": "cgdbrc", + # Cfengine + "cfengine.conf": "cfengine", + # Chktex + ".chktexrc": "conf", + # Codeowners + "CODEOWNERS": "codeowners", + # Clangd + ".clangd": "yaml", + # Conda configuration file + ".condarc": "yaml", + "condarc": "yaml", + # Cling + ".cling_history": "cpp", + # CmakeCache + "CMakeCache.txt": "cmakecache", + # Configure scripts + "configure.in": "config", + "configure.ac": "config", + # Debian devscripts + "devscripts.conf": "sh", + ".devscripts": "sh", + # Fontconfig config files + "fonts.conf": "xml", + # Libreoffice config files + "psprint.conf": "dosini", + "sofficerc": "dosini", + # Lynx config files + "lynx.cfg": "lynx", + # Mamba configuration file + ".mambarc": "yaml", + "mambarc": "yaml", + # XDG mimeapps.list + "mimeapps.list": "dosini", + # Many tools written in Python use dosini as their config + # like setuptools, pudb, coverage, pypi, gitlint, oelint-adv, pylint, bpython, mypy + # (must be before *.cfg) + "pip.conf": "dosini", + "setup.cfg": "dosini", + "pudb.cfg": "dosini", + ".coveragerc": "dosini", + ".pypirc": "dosini", + ".gitlint": "dosini", + ".oelint.cfg": "dosini", + # Many tools written in Python use toml as their config, like black + ".black": "toml", + # Wakatime config + ".wakatime.cfg": "dosini", + # Deno history + "deno_history.txt": "javascript", + # Deny hosts + "denyhosts.conf": "denyhosts", + # Dict config + "dict.conf": "dictconf", + ".dictrc": "dictconf", + # Earthfile + "Earthfile": "earthfile", + # EditorConfig + ".editorconfig": "editorconfig", + # Elinks configuration + "elinks.conf": "elinks", + # Erlang + "rebar.config": "erlang", + # Exim + "exim.conf": "exim", + # Exports + "exports": "exports", + # Fetchmail RC file + ".fetchmailrc": "fetchmail", + # Focus Master file (but not for auto.master) + "auto.master": "conf", + # FStab + "fstab": "fstab", + "mtab": "fstab", + # Git + "COMMIT_EDITMSG": "gitcommit", + "MERGE_MSG": "gitcommit", + "TAG_EDITMSG": "gitcommit", + "NOTES_EDITMSG": "gitcommit", + "EDIT_DESCRIPTION": "gitcommit", + # gnash(1) configuration files + "gnashrc": "gnash", + ".gnashrc": "gnash", + "gnashpluginrc": "gnash", + ".gnashpluginrc": "gnash", + # Gitolite + "gitolite.conf": "gitolite", + # Go (Google) + "Gopkg.lock": "toml", + "go.work": "gowork", + # GoAccess configuration + "goaccess.conf": "goaccess", + # GTK RC + ".gtkrc": "gtkrc", + "gtkrc": "gtkrc", + # Haskell + "cabal.project": "cabalproject", + # Go checksum file (must be before *.sum Hercules) + "go.sum": "gosum", + "go.work.sum": "gosum", + # Indent profile (must come before IDL *.pro!) + ".indent.pro": "indent", + # Indent RC + "indentrc": "indent", + # Ipfilter + "ipf.conf": "ipfilter", + "ipf6.conf": "ipfilter", + "ipf.rules": "ipfilter", + # SysV Inittab + "inittab": "inittab", + # JavaScript, ECMAScript, ES module script, CommonJS script + ".node_repl_history": "javascript", + # Other files that look like json + ".prettierrc": "json", + ".firebaserc": "json", + ".stylelintrc": "json", + ".lintstagedrc": "json", + "flake.lock": "json", + "deno.lock": "json", + ".swcrc": "json", + "composer.lock": "json", + "symfony.lock": "json", + # Kconfig + "Kconfig": "kconfig", + "Kconfig.debug": "kconfig", + "Config.in": "kconfig", + # Latexmkrc + ".latexmkrc": "perl", + "latexmkrc": "perl", + # LDAP configuration + "ldaprc": "ldapconf", + ".ldaprc": "ldapconf", + "ldap.conf": "ldapconf", + # Luadoc, Ldoc (must be before *.ld) + "config.ld": "lua", + # lf configuration (lfrc) + "lfrc": "lf", + # Lilo: Linux loader + "lilo.conf": "lilo", + # SBCL implementation of Common Lisp + "sbclrc": "lisp", + ".sbclrc": "lisp", + # Luau config + ".luaurc": "jsonc", + # Luacheck + ".luacheckrc": "lua", + # Mailcap configuration file + ".mailcap": "mailcap", + "mailcap": "mailcap", + # Meson Build system config + "meson.build": "meson", + "meson.options": "meson", + "meson_options.txt": "meson", + # msmtp + ".msmtprc": "msmtp", + # Mrxvtrc + "mrxvtrc": "mrxvtrc", + ".mrxvtrc": "mrxvtrc", + # Noemutt setup file + "Neomuttrc": "neomuttrc", + # Netrc + ".netrc": "netrc", + # NPM RC file + "npmrc": "dosini", + ".npmrc": "dosini", + # ondir + ".ondirrc": "ondir", + # OpenAL Soft config files + ".alsoftrc": "dosini", + "alsoft.conf": "dosini", + "alsoft.ini": "dosini", + "alsoftrc.sample": "dosini", + # Packet filter conf + "pf.conf": "pf", + # ini style config files, using # comments + "pacman.conf": "confini", + "mpv.conf": "confini", + # Pam environment + "pam_env.conf": "pamenv", + ".pam_environment": "pamenv", + # Perl Reply + ".replyrc": "dosini", + # Pine config + ".pinerc": "pine", + "pinerc": "pine", + ".pinercex": "pine", + "pinercex": "pine", + # Pip requirements + "requirements.txt": "requirements", + # Pipenv Pipfiles + "Pipfile": "toml", + "Pipfile.lock": "json", + # Pixi lock + "pixi.lock": "yaml", + # Postfix main config + "main.cf": "pfmain", + "main.cf.proto": "pfmain", + # Povray configuration + ".povrayrc": "povini", + # Puppet + "Puppetfile": "ruby", + # Procmail + ".procmail": "procmail", + ".procmailrc": "procmail", + # PyPA manifest files + "MANIFEST.in": "pymanifest", + # QMLdir + "qmldir": "qmldir", + # Ratpoison config/command files + ".ratpoisonrc": "ratpoison", + "ratpoisonrc": "ratpoison", + # Readline + ".inputrc": "readline", + "inputrc": "readline", + # R profile file + ".Rhistory": "r", + ".Rprofile": "r", + "Rprofile": "r", + "Rprofile.site": "r", + # Resolv.conf + "resolv.conf": "resolv", + # Robots.txt + "robots.txt": "robots", + # Interactive Ruby shell + ".irbrc": "ruby", + "irbrc": "ruby", + ".irb_history": "ruby", + "irb_history": "ruby", + # Bundler + "Gemfile": "ruby", + # Samba config + "smb.conf": "samba", + # Sendmail + "sendmail.cf": "sm", + # SGML catalog file + "catalog": "catalog", + # Alpine Linux APKBUILDs are actually POSIX sh scripts with special treatment. + "APKBUILD": "apkbuild", + # Screen RC + ".screenrc": "screen", + "screenrc": "screen", + # skhd (simple hotkey daemon for macOS) + ".skhdrc": "skhd", + "skhdrc": "skhd", + # SLRN + ".slrnrc": "slrnrc", + # Squid + "squid.conf": "squid", + # OpenSSH server configuration + "sshd_config": "sshdconfig", + # Tags + "tags": "tags", + # Xilinx's xsct and xsdb use tcl + ".xsctcmdhistory": "tcl", + ".xsdbcmdhistory": "tcl", + # TeX configuration + "texmf.cnf": "texmf", + # Tidy config + ".tidyrc": "tidy", + "tidyrc": "tidy", + "tidy.conf": "tidy", + # TF (TinyFugue) mud client + ".tfrc": "tf", + "tfrc": "tf", + # Tilefile + "Tiltfile": "tiltfile", + "tiltfile": "tiltfile", + # Trustees + "trustees.conf": "trustees", + # Vagrant (uses Ruby syntax) + "Vagrantfile": "ruby", + # Viminfo file + ".viminfo": "viminfo", + "_viminfo": "viminfo", + # Vgrindefs file + "vgrindefs": "vgrindefs", + # Wget config + ".wgetrc": "wget", + "wgetrc": "wget", + # Wget2 config + ".wget2rc": "wget2", + "wget2rc": "wget2", + # WvDial + "wvdial.conf": "wvdial", + ".wvdialrc": "wvdial", + # CVS RC file + ".cvsrc": "cvsrc", + # X11vnc + ".x11vncrc": "conf", + # Xprofile + ".xprofile": "sh", + # X compose file + ".XCompose": "xcompose", + "Compose": "xcompose", + # MSBUILD configuration files are also XML + "Directory.Packages.props": "xml", + "Directory.Build.targets": "xml", + "Directory.Build.props": "xml", + # ATI graphics driver configuration + "fglrxrc": "xml", + # Nfs + "nfs.conf": "dosini", + "nfsmount.conf": "dosini", + # Yarn lock + "yarn.lock": "yaml", + # Zathurarc + "zathurarc": "zathurarc", +} + +# Uncomment this line to check for compilation errors early +# defcompile diff --git a/git/usr/share/vim/vim92/autoload/dist/json.vim b/git/usr/share/vim/vim92/autoload/dist/json.vim new file mode 100644 index 0000000000000000000000000000000000000000..9faa88ace3d448bb22bde6e92b3125e4f9afe6d5 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/json.vim @@ -0,0 +1,182 @@ +vim9script + +# Maintainer: Maxim Kim +# Last update: 2023-12-10 +# +# Set of functions to format/beautify JSON data structures. +# +# Could be used to reformat a minified json in a buffer (put it into ~/.vim/ftplugin/json.vim): +# import autoload 'dist/json.vim' +# setl formatexpr=json.FormatExpr() +# +# Or to get a formatted string out of vim's dict/list/string: +# vim9script +# import autoload 'dist/json.vim' +# echo json.Format({ +# "widget": { "debug": "on", "window": { "title": "Sample \"Konfabulator\" Widget", +# "name": "main_window", "width": 500, "height": 500 +# }, +# "image": { "src": "Images/Sun.png", "name": "sun1", "hOffset": 250, +# "vOffset": 250, "alignment": "center" }, +# "text": { "data": "Click Here", "size": 36, "style": "bold", "name": "text1", +# "hOffset": 250, "vOffset": 100, "alignment": "center", +# "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" } } +# }) +# +# Should output: +# { +# "widget": { +# "debug": "on", +# "window": { +# "title": "Sample \"Konfabulator\" Widget", +# "name": "main_window", +# "width": 500, +# "height": 500 +# }, +# "image": { +# "src": "Images/Sun.png", +# "name": "sun1", +# "hOffset": 250, +# "vOffset": 250, +# "alignment": "center" +# }, +# "text": { +# "data": "Click Here", +# "size": 36, +# "style": "bold", +# "name": "text1", +# "hOffset": 250, +# "vOffset": 100, +# "alignment": "center", +# "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" +# } +# } +# } +# +# NOTE: order of `key: value` pairs is not kept. +# +# You can also use a JSON string instead of vim's dict/list to maintain order: +# echo json.Format('{"hello": 1, "world": 2}') +# { +# "hello": 1, +# "world": 2 +# } + + +# To be able to reformat with `gq` add following to `~/.vim/ftplugin/json.vim`: +# import autoload 'dist/json.vim' +# setl formatexpr=json.FormatExpr() +export def FormatExpr(): number + FormatRange(v:lnum, v:lnum + v:count - 1) + return 0 +enddef + + +# import autoload 'dist/json.vim' +# command -range=% JSONFormat json.FormatRange(, ) +export def FormatRange(line1: number, line2: number) + var indent_base = matchstr(getline(line1), '^\s*') + var indent = &expandtab ? repeat(' ', &shiftwidth) : "\t" + + var [l1, l2] = line1 > line2 ? [line2, line1] : [line1, line2] + + var json_src = getline(l1, l2)->join() + var json_fmt = Format(json_src, {use_tabs: !&et, indent: &sw, indent_base: indent_base})->split("\n") + + exe $":{l1},{l2}d" + + if line('$') == 1 && getline(1) == '' + setline(l1, json_fmt[0]) + append(l1, json_fmt[1 : ]) + else + append(l1 - 1, json_fmt) + endif +enddef + + +# Format JSON string or dict/list as JSON +# import autoload 'dist/json.vim' +# echo json.Format('{"hello": "world"}', {use_tabs: false, indent: 2, indent_base: 0}) + +# { +# "hello": "world" +# } + +# echo json.Format({'hello': 'world'}, {use_tabs: false, indent: 2, indent_base: 0}) +# { +# "hello": "world" +# } +# +# Note, when `obj` is dict, order of the `key: value` pairs might be different: +# echo json.Format({'hello': 1, 'world': 2}) +# { +# "world": 2, +# "hello": 1 +# } +export def Format(obj: any, params: dict = {}): string + var obj_str = '' + if type(obj) == v:t_string + obj_str = obj + else + obj_str = json_encode(obj) + endif + + var indent_lvl = 0 + var indent_base = get(params, "indent_base", "") + var indent = get(params, "use_tabs", false) ? "\t" : repeat(' ', get(params, "indent", 2)) + var json_line = indent_base + var json = "" + var state = "" + for char in obj_str + if state == "" + if char =~ '[{\[]' + json_line ..= char + json ..= json_line .. "\n" + indent_lvl += 1 + json_line = indent_base .. repeat(indent, indent_lvl) + elseif char =~ '[}\]]' + if json_line !~ '^\s*$' + json ..= json_line .. "\n" + indent_lvl -= 1 + if indent_lvl < 0 + json_line = strpart(indent_base, -indent_lvl * len(indent)) + else + json_line = indent_base .. repeat(indent, indent_lvl) + endif + elseif json =~ '[{\[]\n$' + json = json[ : -2] + json_line = substitute(json_line, '^\s*', '', '') + indent_lvl -= 1 + endif + json_line ..= char + elseif char == ':' + json_line ..= char .. ' ' + elseif char == '"' + json_line ..= char + state = 'QUOTE' + elseif char == ',' + json_line ..= char + json ..= json_line .. "\n" + json_line = indent_base .. repeat(indent, indent_lvl) + elseif char !~ '\s' + json_line ..= char + endif + elseif state == "QUOTE" + json_line ..= char + if char == '\' + state = "ESCAPE" + elseif char == '"' + state = "" + endif + elseif state == "ESCAPE" + state = "QUOTE" + json_line ..= char + else + json_line ..= char + endif + endfor + if json_line !~ '^\s*$' + json ..= json_line .. "\n" + endif + return json +enddef diff --git a/git/usr/share/vim/vim92/autoload/dist/man.vim b/git/usr/share/vim/vim92/autoload/dist/man.vim new file mode 100644 index 0000000000000000000000000000000000000000..32bf80c765b7049e29f333e82e8a85734cdba0ad --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/man.vim @@ -0,0 +1,337 @@ +" Vim filetype plugin autoload file +" Language: man +" Maintainer: Jason Franklin +" Maintainer: SungHyun Nam +" Autoload Split: Bram Moolenaar +" Last Change: 2024 Jan 17 (make it work on AIX, see #13847) +" 2024 Jul 06 (honor command modifiers, #15117) +" 2025 Mar 05 (add :keepjumps, #16791) +" 2025 Mar 09 (improve :Man completion for man-db, #16843) + +let s:cpo_save = &cpo +set cpo-=C + +let s:man_tag_depth = 0 + +let s:man_sect_arg = "" +let s:man_find_arg = "-w" +try + if !has("win32") && $OSTYPE !~ 'cygwin\|linux' + " cache the value + let uname_s = system('uname -s') + + if uname_s =~ "SunOS" && system('uname -r') =~ "^5" + " Special Case for Man on SunOS + let s:man_sect_arg = "-s" + let s:man_find_arg = "-l" + elseif uname_s =~? 'AIX' + " Special Case for Man on AIX + let s:man_sect_arg = "" + let s:man_find_arg = "" + endif + endif +catch /E145:/ + " Ignore the error in restricted mode +endtry + +unlet! uname_s + +let s:man_db_pages_by_section = v:null +func! s:ManDbPagesBySection() abort + if s:man_db_pages_by_section isnot v:null + return s:man_db_pages_by_section + endif + let s:man_db_pages_by_section = {} + let list_command = 'apropos --long .' + let unparsed_lines = [] + for line in systemlist(list_command) + " Typical lines: + " vim (1) - Vi IMproved, a programmer's text editor + " + " Unusual lines: + " pgm_read_ T _ (3avr) - (unknown subject) + " + " Code that shows the line's format: + " https://gitlab.com/man-db/man-db/-/blob/2607d203472efb036d888e9e7997724a41a53876/src/whatis.c#L409 + let match = matchlist(line, '^\(.\{-1,}\) (\(\S\+\)) ') + if empty(match) + call add(unparsed_lines, line) + continue + endif + let [page, section] = match[1:2] + if !has_key(s:man_db_pages_by_section, section) + let s:man_db_pages_by_section[section] = [] + endif + call add(s:man_db_pages_by_section[section], page) + endfor + if !empty(unparsed_lines) + echomsg 'Unable to parse ' .. string(len(unparsed_lines)) .. ' lines ' .. + \ 'from the output of `' .. list_command .. '`. Example lines:' + for line in unparsed_lines[:9] + echomsg line + endfor + endif + return s:man_db_pages_by_section +endfunc + +func! dist#man#Reload() abort + if g:ft_man_implementation ==# 'man-db' + let s:man_db_pages_by_section = v:null + call s:ManDbPagesBySection() + endif +endfunc + +func! s:StartsWithCaseInsensitive(haystack, needle) abort + if empty(a:needle) + return v:true + endif + return a:haystack[:len(a:needle)-1] ==? a:needle +endfunc + +func! dist#man#ManDbComplete(arg_lead, cmd_line, cursor_pos) abort + let args = split(trim(a:cmd_line[: a:cursor_pos - 1], '', 1), '', v:true) + let pages_by_section = s:ManDbPagesBySection() + if len(args) > 2 + " Page in the section args[1]. At least on Debian testing as of + " 2025-03-06, man seems to match sections case-insensitively and match any + " prefix of the section. E.g., `man 3 sigprocmask` and `man 3PoSi + " sigprocmask` with both load sigprocmask(3posix) even though the 3 in the + " first command is also the name of a different section. + let results = [] + for [section, pages] in items(pages_by_section) + if s:StartsWithCaseInsensitive(section, args[1]) + call extend(results, pages) + endif + endfor + else + " Could be a section, or a page in any section. Add space after sections + " since there has to be a second argument in that case. + let results = flattennew(values(pages_by_section), 1) + for section in keys(pages_by_section) + call add(results, section .. ' ') + endfor + endif + call sort(results) + call uniq(results) + call filter(results, + \ {_, val -> s:StartsWithCaseInsensitive(val, a:arg_lead)}) + return results +endfunc + +func s:ParseIntoPageAndSection() + " Accommodate a reference that terminates in a hyphen. + " + " See init_charset_table() at + " https://git.savannah.gnu.org/cgit/groff.git/tree/src/roff/troff/input.cpp?h=1.22.4#n6794 + " + " See can_break_after() at + " https://git.savannah.gnu.org/cgit/groff.git/tree/src/roff/troff/charinfo.h?h=1.22.4#n140 + " + " Assumptions and limitations: + " 1) Manual-page references (in consequence of command-related filenames) + " do not contain non-ASCII HYPHENs (0x2010), any terminating HYPHEN + " must have been introduced to mark division of a word at the end of + " a line and can be discarded; whereas similar references may contain + " ASCII HYPHEN-MINUSes (0x002d) and any terminating HYPHEN-MINUS forms + " a compound word in addition to marking word division. + " 2) Well-formed manual-page references always have a section suffix, e.g. + " "git-commit(1)", therefore suspended hyphenated compounds are not + " determined, e.g. [V] (With cursor at _git-merge-_ below...) + " ".................... git-merge- and git-merge-base. (See git-cherry- + " pick(1) and git-cherry(1).)" (... look up "git-merge-pick(1)".) + " + " Note that EM DASH (0x2014), a third stooge from init_charset_table(), + " neither connects nor divides parts of a word. + let str = expand("") + + if str =~ '\%u2010$' " HYPHEN (-1). + let str = strpart(str, 0, strridx(str, "\u2010")) + + " Append the leftmost WORD (or an empty string) from the line below. + let str .= get(split(get(getbufline(bufnr('%'), line('.') + 1), 0, '')), 0, '') + elseif str =~ '-$' " HYPHEN-MINUS. + " Append the leftmost WORD (or an empty string) from the line below. + let str .= get(split(get(getbufline(bufnr('%'), line('.') + 1), 0, '')), 0, '') + endif + + " According to man(1), section name formats vary (MANSECT): + " 1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7 + let parts = matchlist(str, '\(\k\+\)(\(\k\+\))') + return (len(parts) > 2) + \ ? {'page': parts[1], 'section': parts[2]} + \ : {'page': matchstr(str, '\k\+'), 'section': ''} +endfunc + +func dist#man#PreGetPage(cnt) + if a:cnt == 0 + let what = s:ParseIntoPageAndSection() + let sect = what.section + let page = what.page + else + let what = s:ParseIntoPageAndSection() + let sect = a:cnt + let page = what.page + endif + + call dist#man#GetPage('', sect, page) +endfunc + +func s:GetCmdArg(sect, page) + if empty(a:sect) + return shellescape(a:page) + endif + + return s:man_sect_arg . ' ' . shellescape(a:sect) . ' ' . shellescape(a:page) +endfunc + +func s:FindPage(sect, page) + let l:cmd = printf('man %s %s', s:man_find_arg, s:GetCmdArg(a:sect, a:page)) + call system(l:cmd) + + if v:shell_error + return 0 + endif + + return 1 +endfunc + +func dist#man#GetPage(cmdmods, ...) + if a:0 >= 2 + let sect = a:1 + let page = a:2 + elseif a:0 >= 1 + let sect = "" + let page = a:1 + else + return + endif + + " To support: nmap K :Man + if page ==? '' + let what = s:ParseIntoPageAndSection() + let sect = what.section + let page = what.page + endif + + if !exists('g:ft_man_no_sect_fallback') || (g:ft_man_no_sect_fallback == 0) + if sect != "" && s:FindPage(sect, page) == 0 + let sect = "" + endif + endif + if s:FindPage(sect, page) == 0 + let msg = 'man.vim: no manual entry for "' . page . '"' + if !empty(sect) + let msg .= ' in section ' . sect + endif + echomsg msg + return + endif + exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") + exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".") + exec "let s:man_tag_col_".s:man_tag_depth." = ".col(".") + let s:man_tag_depth = s:man_tag_depth + 1 + + let open_cmd = 'edit' + + " Use an existing "man" window if it exists, otherwise open a new one. + if &filetype != "man" + let thiswin = winnr() + exe "norm! \b" + if winnr() > 1 + exe "norm! " . thiswin . "\w" + while 1 + if &filetype == "man" + break + endif + exe "norm! \w" + if thiswin == winnr() + break + endif + endwhile + endif + if &filetype != "man" + if a:cmdmods =~ '\<\(tab\|vertical\|horizontal\)\>' + let open_cmd = a:cmdmods . ' split' + elseif exists("g:ft_man_open_mode") + if g:ft_man_open_mode == 'vert' + let open_cmd = 'vsplit' + elseif g:ft_man_open_mode == 'tab' + let open_cmd = 'tabedit' + else + let open_cmd = 'split' + endif + else + let open_cmd = 'split' + endif + endif + endif + + silent execute open_cmd . " $HOME/" . page . '.' . sect . '~' + + " Avoid warning for editing the dummy file twice + setl buftype=nofile noswapfile + + setl fdc=0 ma nofen nonu nornu + keepjumps %delete _ + let unsetwidth = 0 + if empty($MANWIDTH) + let $MANWIDTH = winwidth(0) + let unsetwidth = 1 + endif + + " Ensure Vim is not recursively invoked (man-db does this) when doing ctrl-[ + " on a man page reference by unsetting MANPAGER. + " Some versions of env(1) do not support the '-u' option, and in such case + " we set MANPAGER=cat. + if !exists('s:env_has_u') + call system('env -u x true') + let s:env_has_u = (v:shell_error == 0) + endif + let env_cmd = s:env_has_u ? 'env -u MANPAGER' : 'env MANPAGER=cat' + let env_cmd .= ' GROFF_NO_SGR=1' + let man_cmd = env_cmd . ' man ' . s:GetCmdArg(sect, page) + + silent exec "r !" . man_cmd + + " Emulate piping the buffer through the "col -b" command. + " Ref: https://github.com/vim/vim/issues/12301 + exe 'silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//e' .. (&gdefault ? '' : 'g') + + if unsetwidth + let $MANWIDTH = '' + endif + " Remove blank lines from top and bottom. + while line('$') > 1 && getline(1) =~ '^\s*$' + keepjumps 1delete _ + endwhile + while line('$') > 1 && getline('$') =~ '^\s*$' + keepjumps $delete _ + endwhile + 1 + setl ft=man nomod + setl bufhidden=hide + setl nobuflisted + setl noma +endfunc + +func dist#man#PopPage() + if s:man_tag_depth > 0 + let s:man_tag_depth = s:man_tag_depth - 1 + exec "let s:man_tag_buf=s:man_tag_buf_".s:man_tag_depth + exec "let s:man_tag_lin=s:man_tag_lin_".s:man_tag_depth + exec "let s:man_tag_col=s:man_tag_col_".s:man_tag_depth + + exec s:man_tag_buf."b" + call cursor(s:man_tag_lin, s:man_tag_col) + + exec "unlet s:man_tag_buf_".s:man_tag_depth + exec "unlet s:man_tag_lin_".s:man_tag_depth + exec "unlet s:man_tag_col_".s:man_tag_depth + unlet s:man_tag_buf s:man_tag_lin s:man_tag_col + endif +endfunc + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: set sw=2 ts=8 noet: diff --git a/git/usr/share/vim/vim92/autoload/dist/script.vim b/git/usr/share/vim/vim92/autoload/dist/script.vim new file mode 100644 index 0000000000000000000000000000000000000000..0106900f8f54e00e2f94dfdb6d85c9c5f4cff1ab --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/script.vim @@ -0,0 +1,490 @@ +vim9script + +# Vim function for detecting a filetype from the file contents. +# Invoked from "scripts.vim" in 'runtimepath' +# +# Maintainer: The Vim Project +# Last Change: 2026 Apr 09 +# Former Maintainer: Bram Moolenaar + +export def DetectFiletype() + var line1 = getline(1) + if line1[0] == '#' && line1[1] == '!' + # File that starts with "#!". + DetectFromHashBang(line1) + else + # File does not start with "#!". + DetectFromText(line1) + endif +enddef + +# Called for a script that has "#!" in the first line. +def DetectFromHashBang(firstline: string) + var line1 = firstline + + # Check for a line like "#!/usr/bin/env {options} bash". Turn it into + # "#!/usr/bin/bash" to make matching easier. + # Recognize only a few {options} that are commonly used. + if line1 =~ '^#!\s*\S*\' + name = substitute(line1, '^#!.*\\s\+\(\i\+\).*', '\1', '') + elseif line1 =~ '^#!\s*[^/\\ ]*\>\([^/\\]\|$\)' + name = substitute(line1, '^#!\s*\([^/\\ ]*\>\).*', '\1', '') + else + name = substitute(line1, '^#!\s*\S*[/\\]\(\f\+\).*', '\1', '') + endif + + # tcl scripts may have #!/bin/sh in the first line and "exec wish" in the + # third line. Suggested by Steven Atkinson. + if getline(3) =~ '^exec wish' + name = 'wish' + endif + + var ft = Exe2filetype(name, line1) + if ft != '' + exe 'setl ft=' .. ft + endif +enddef + +# Returns the filetype name associated with program "name". +# "line1" is the #! line at the top of the file. Use the same as "name" if +# not available. +# Returns an empty string when not recognized. +export def Exe2filetype(name: string, line1: string): string + # Bourne-like shell scripts: bash bash2 dash ksh ksh93 sh + if name =~ '^\(bash\d*\|dash\|ksh\d*\|sh\)\>' + return dist#ft#SetFileTypeSH(line1, false) + + # csh scripts + elseif name =~ '^csh\>' + return dist#ft#SetFileTypeShell(exists("g:filetype_csh") ? g:filetype_csh : 'csh', false) + + # tcsh scripts + elseif name =~ '^tcsh\>' + return dist#ft#SetFileTypeShell("tcsh", false) + + # Z shell scripts + elseif name =~ '^zsh\>' + return 'zsh' + + # TCL scripts + elseif name =~ '^\(tclsh\|wish\|expectk\|itclsh\|itkwish\)\>' + return 'tcl' + + # Expect scripts + elseif name =~ '^expect\>' + return 'expect' + + # Gnuplot scripts + elseif name =~ '^gnuplot\>' + return 'gnuplot' + + # Makefiles + elseif name =~ 'make\>' + return 'make' + + # Pike + elseif name =~ '^pike\%(\>\|[0-9]\)' + return 'pike' + + # Lua + elseif name =~ 'lua' + return 'lua' + + # Perl + elseif name =~ 'perl' + return 'perl' + + # PHP + elseif name =~ 'php' + return 'php' + + # Python + elseif name =~ 'python' || (name == 'uv' && line1 =~ '\') + return 'python' + + # Groovy + elseif name =~ '^groovy\>' + return 'groovy' + + # Raku + elseif name =~ 'raku' + return 'raku' + + # Ruby + elseif name =~ 'ruby' + return 'ruby' + + # JavaScript + elseif name =~ 'node\(js\)\=\>\|js\>' || name =~ 'rhino\>' + return 'javascript' + + elseif name =~# 'just' + return 'just' + + # BC calculator + elseif name =~ '^bc\>' + return 'bc' + + # sed + elseif name =~ 'sed\>' + return 'sed' + + # OCaml-scripts + elseif name =~ 'ocaml' + return 'ocaml' + + # Awk scripts; also finds "gawk" + elseif name =~ 'awk\>' + return 'awk' + + # Website MetaLanguage + elseif name =~ 'wml' + return 'wml' + + # Scheme scripts + elseif name =~ 'scheme' + return 'scheme' + + # CFEngine scripts + elseif name =~ 'cfengine' + return 'cfengine' + + # Erlang scripts + elseif name =~ 'escript' + return 'erlang' + + # Haskell + elseif name =~ 'haskell' + return 'haskell' + + # Scala + elseif name =~ 'scala\>' + return 'scala' + + # Clojure + elseif name =~ 'clojure' + return 'clojure' + + # Free Pascal + elseif name =~ 'instantfpc\>' + return 'pascal' + + # Fennel + elseif name =~ 'fennel\>' + return 'fennel' + + # MikroTik RouterOS script + elseif name =~ 'rsc\>' + return 'routeros' + + # Fish shell + elseif name =~ 'fish\>' + return 'fish' + + # Gforth + elseif name =~ 'gforth\>' + return 'forth' + + # Icon + elseif name =~ 'icon\>' + return 'icon' + + # Guile + elseif name =~ 'guile' + return 'scheme' + + # Nix + elseif name =~ 'nix-shell' + return 'nix' + + # Crystal + elseif name =~ '^crystal\>' + return 'crystal' + + # Rexx + elseif name =~ '^\%(rexx\|regina\)\>' + return 'rexx' + + # Janet + elseif name =~ '^janet\>' + return 'janet' + + # Dart + elseif name =~ '^dart\>' + return 'dart' + + # Execline (s6) + elseif name =~ '^execlineb\>' + return 'execline' + + # Bpftrace + elseif name =~ '^bpftrace\>' + return 'bpftrace' + + # Vim + elseif name =~ '^vim\>' + return 'vim' + + endif + + return '' +enddef + + +# Called for a script that does not have "#!" in the first line. +def DetectFromText(line1: string) + var line2 = getline(2) + var line3 = getline(3) + var line4 = getline(4) + var line5 = getline(5) + + # Bourne-like shell scripts: sh ksh bash bash2 + if line1 =~ '^:$' + call dist#ft#SetFileTypeSH(line1) + + # Z shell scripts + elseif line1 =~ '^#compdef\>' + || line1 =~ '^#autoload\>' + || "\n" .. line1 .. "\n" .. line2 .. "\n" .. line3 .. + "\n" .. line4 .. "\n" .. line5 + =~ '\n\s*emulate\s\+\%(-[LR]\s\+\)\=[ckz]\=sh\>' + setl ft=zsh + + # ELM Mail files + elseif line1 =~ '^From \([a-zA-Z][a-zA-Z_0-9\.=-]*\(@[^ ]*\)\=\|-\) .* \(19\|20\)\d\d$' + || line1 =~ '^\creturn-path:\s<.*@.*>$' + setl ft=mail + + # Mason + elseif line1 =~ '^<[%&].*>' + setl ft=mason + + # Vim scripts (must have '" vim' as the first line to trigger this) + elseif line1 =~ '^" *[vV]im$' + setl ft=vim + + # libcxx and libstdc++ standard library headers like "iostream" do not have + # an extension, recognize the Emacs file mode. + elseif line1 =~? '-\*-.*C++.*-\*-' + setl ft=cpp + + # MOO + elseif line1 =~ '^\*\* LambdaMOO Database, Format Version \%([1-3]\>\)\@!\d\+ \*\*$' + setl ft=moo + + # Diff file: + # - "diff" in first line (context diff) + # - "Only in " in first line + # - "34,35c34,35" normal diff format output + # - "--- " in first line and "+++ " in second line (unified diff). + # - "*** " in first line and "--- " in second line (context diff). + # - "# It was generated by makepatch " in the second line (makepatch diff). + # - "Index: " in the first line (CVS file) + # - "=== ", line of "=", "---", "+++ " (SVK diff) + # - "=== ", "--- ", "+++ " (bzr diff, common case) + # - "=== (removed|added|renamed|modified)" (bzr diff, alternative) + # - "# HG changeset patch" in first line (Mercurial export format) + elseif line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\(,\d\+\)\=\>$\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\|# HG changeset patch\)' + || (line1 =~ '^--- ' && line2 =~ '^+++ ') + || (line1 =~ '^\* looking for ' && line2 =~ '^\* comparing to ') + || (line1 =~ '^\*\*\* ' && line2 =~ '^--- ') + || (line1 =~ '^=== ' && ((line2 =~ '^=\{66\}' && line3 =~ '^--- ' && line4 =~ '^+++') || (line2 =~ '^--- ' && line3 =~ '^+++ '))) + || (line1 =~ '^=== \(removed\|added\|renamed\|modified\)') + setl ft=diff + + # PostScript Files (must have %!PS as the first line, like a2ps output) + elseif line1 =~ '^%![ \t]*PS' + setl ft=postscr + + # M4 scripts: Guess there is a line that starts with "dnl". + elseif line1 =~ '^\s*dnl\>' + || line2 =~ '^\s*dnl\>' + || line3 =~ '^\s*dnl\>' + || line4 =~ '^\s*dnl\>' + || line5 =~ '^\s*dnl\>' + setl ft=m4 + + # AmigaDos scripts + elseif $TERM == "amiga" && (line1 =~ "^;" || line1 =~? '^\.bra') + setl ft=amiga + + # SiCAD scripts (must have procn or procd as the first line to trigger this) + elseif line1 =~? '^ *proc[nd] *$' + setl ft=sicad + + # Purify log files start with "**** Purify" + elseif line1 =~ '^\*\*\*\* Purify' + setl ft=purifylog + + # XML + elseif line1 =~ '' + setl ft=xml + + # XHTML (e.g.: PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN") + elseif line1 =~ '\' + setl ft=html + + # PDF + elseif line1 =~ '^%PDF-' + setl ft=pdf + + # XXD output + elseif line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} ' + setl ft=xxd + + # RCS/CVS log output + elseif line1 =~ '^RCS file:' || line2 =~ '^RCS file:' + setl ft=rcslog + + # CVS commit + elseif line2 =~ '^CVS:' || getline("$") =~ '^CVS: ' + setl ft=cvs + + # Prescribe + elseif line1 =~ '^!R!' + setl ft=prescribe + + # Send-pr + elseif line1 =~ '^SEND-PR:' + setl ft=sendpr + + # SNNS files + elseif line1 =~ '^SNNS network definition file' + setl ft=snnsnet + elseif line1 =~ '^SNNS pattern definition file' + setl ft=snnspat + elseif line1 =~ '^SNNS result file' + setl ft=snnsres + + # Virata + elseif line1 =~ '^%.\{-}[Vv]irata' + || line2 =~ '^%.\{-}[Vv]irata' + || line3 =~ '^%.\{-}[Vv]irata' + || line4 =~ '^%.\{-}[Vv]irata' + || line5 =~ '^%.\{-}[Vv]irata' + setl ft=virata + + # Strace + # inaccurate fast match first, then use accurate slow match + elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:. ]*execve(') + || line1 =~ '^__libc_start_main' + setl ft=strace + + # VSE JCL + elseif line1 =~ '^\* $$ JOB\>' || line1 =~ '^// *JOB\>' + setl ft=vsejcl + + # TAK and SINDA + elseif line4 =~ 'K & K Associates' || line2 =~ 'TAK 2000' + setl ft=takout + elseif line3 =~ 'S Y S T E M S I M P R O V E D ' + setl ft=sindaout + elseif getline(6) =~ 'Run Date: ' + setl ft=takcmp + elseif getline(9) =~ 'Node File 1' + setl ft=sindacmp + + # DNS zone files + elseif line1 .. line2 .. line3 .. line4 =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA' + setl ft=bindzone + + # BAAN + elseif line1 =~ '|\*\{1,80}' && line2 =~ 'VRC ' + || line2 =~ '|\*\{1,80}' && line3 =~ 'VRC ' + setl ft=baan + + # Valgrind + elseif line1 =~ '^==\d\+== valgrind' || line3 =~ '^==\d\+== Using valgrind' + setl ft=valgrind + + # Go docs + elseif line1 =~ '^PACKAGE DOCUMENTATION$' + setl ft=godoc + + # Renderman Interface Bytestream + elseif line1 =~ '^##RenderMan' + setl ft=rib + + # Scheme scripts + elseif line1 =~ 'exec\s\+\S*scheme' || line2 =~ 'exec\s\+\S*scheme' + setl ft=scheme + + # Git output + elseif line1 =~ '^\(commit\|tree\|object\) \x\{40,\}\>\|^tag \S\+$' + setl ft=git + + # Gprof (gnu profiler) + elseif line1 == 'Flat profile:' + && line2 == '' + && line3 =~ '^Each sample counts as .* seconds.$' + setl ft=gprof + + # Erlang terms + # (See also: http://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html#Choosing-Modes) + elseif line1 =~? '-\*-.*erlang.*-\*-' + setl ft=erlang + + # YAML + elseif line1 =~ '^%YAML' + setl ft=yaml + + # MikroTik RouterOS script + elseif line1 =~ '^#.*by RouterOS.*$' + setl ft=routeros + + # Sed scripts + # #ncomment is allowed but most likely a false positive so require a space + # before any trailing comment text + elseif line1 =~ '^#n\%($\|\s\)' + setl ft=sed + + elseif line1 =~ '^#\s\+Reconstructed via infocmp from file:' + setl ft=terminfo + + elseif line1 =~ '^File: .*\.info, Node: .*, \%(Next\|Prev\): .*, Up: \|This is the top of the INFO tree.' + setl ft=info + + else + var lnum = 1 + while getline(lnum) =~ "^? " && lnum < line("$") + lnum += 1 + endwhile + if getline(lnum) =~ '^Index:\s\+\f\+$' + # CVS diff + setl ft=diff + + # locale input files: Formal Definitions of Cultural Conventions + # filename must be like en_US, fr_FR@euro or en_US.UTF-8 + elseif expand("%") =~ '\a\a_\a\a\($\|[.@]\)\|i18n$\|POSIX$\|translit_' + lnum = 1 + while lnum < 100 && lnum < line("$") + if getline(lnum) =~ '^LC_\(IDENTIFICATION\|CTYPE\|COLLATE\|MONETARY\|NUMERIC\|TIME\|MESSAGES\|PAPER\|TELEPHONE\|MEASUREMENT\|NAME\|ADDRESS\)$' + setf fdcc + break + endif + lnum += 1 + endwhile + endif + endif +enddef diff --git a/git/usr/share/vim/vim92/autoload/dist/vim.vim b/git/usr/share/vim/vim92/autoload/dist/vim.vim new file mode 100644 index 0000000000000000000000000000000000000000..5a0f350537440f1be16903d4f471513d2d27782e --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/vim.vim @@ -0,0 +1,35 @@ +" Vim runtime support library, +" runs the Vim9 script version or legacy script version +" on demand (mostly for Neovim compatibility) +" +" Maintainer: The Vim Project +" Last Change: 2026 Jan 11 + + +" enable the zip and gzip plugin by default, if not set +if !exists('g:zip_exec') + let g:zip_exec = 1 +endif + +if !exists('g:gzip_exec') + let g:gzip_exec = 1 +endif + +if !has('vim9script') + function dist#vim#IsSafeExecutable(filetype, executable) + let cwd = getcwd() + if empty(exepath(a:executable)) + return v:false + endif + return get(g:, a:filetype .. '_exec', get(g:, 'plugin_exec', 0)) && + \ (fnamemodify(exepath(a:executable), ':p:h') !=# cwd + \ || (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 && + \ cwd != '.')) + endfunction + + finish +endif + +def dist#vim#IsSafeExecutable(filetype: string, executable: string): bool + return dist#vim9#IsSafeExecutable(filetype, executable) +enddef diff --git a/git/usr/share/vim/vim92/autoload/dist/vim9.vim b/git/usr/share/vim/vim92/autoload/dist/vim9.vim new file mode 100644 index 0000000000000000000000000000000000000000..d824673912e8dec355c75c5e09b6bd1d53ee4205 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/vim9.vim @@ -0,0 +1,148 @@ +vim9script + +# Vim runtime support library +# +# Maintainer: The Vim Project +# Last Change: 2026 Apr 06 + +export def IsSafeExecutable(filetype: string, executable: string): bool + if empty(exepath(executable)) + return v:false + endif + var cwd = getcwd() + return get(g:, filetype .. '_exec', get(g:, 'plugin_exec', 0)) + && (fnamemodify(exepath(executable), ':p:h') !=# cwd + || (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 + && cwd != '.')) +enddef + +def Redir(): string + if get(g:, 'netrw_suppress_gx_mesg', true) + if &srr =~# "%s" + return printf(&srr, has("win32") ? "nul" : "/dev/null") + elseif &srr =~# '>&\?$' + return &srr .. (has("win32") ? "nul" : "/dev/null") + else + return &srr .. (has("win32") ? "> nul" : "> /dev/null") + endif + endif + return '' +enddef + +if has('unix') + if has('win32unix') + # Cygwin provides cygstart + if executable('cygstart') + export def Launch(args: string) + execute $'silent ! cygstart --hide {args} {Redir()}' | redraw! + enddef + elseif !empty($MSYSTEM) && executable('start') + # MSYS2/Git Bash comes by default without cygstart; see + # https://www.msys2.org/wiki/How-does-MSYS2-differ-from-Cygwin + # Instead it provides /usr/bin/start script running `cmd.exe //c start` + # Adding "" //b` sets void title, hides cmd window and blocks path conversion + # of /b to \b\ " by MSYS2; see https://www.msys2.org/docs/filesystem-paths/ + export def Launch(args: string) + execute $'silent !start "" //b {args} {Redir()}' | redraw! + enddef + else + # imitate /usr/bin/start script for other environments and hope for the best + export def Launch(args: string) + execute $'silent !cmd /c start "" /b {args} {Redir()}' | redraw! + enddef + endif + elseif exists('$WSL_DISTRO_NAME') # use cmd.exe to start GUI apps in WSL + export def Launch(args: string) + const command = (args =~? '\v<\f+\.(exe|com|bat|cmd)>') + ? $'cmd.exe /c start /b {args} {Redir()}' + : $'nohup {args} {Redir()} &' + execute $'silent ! {command}' | redraw! + enddef + else + export def Launch(args: string) + # Use job_start, because using !xdg-open is known not to work with zsh + # ignore signals on exit + job_start(['sh', '-c', args], {'stoponexit': '', 'in_io': 'null', 'out_io': 'null', 'err_io': 'null'}) + enddef + endif +elseif has('win32') + export def Launch(args: string) + try + execute ':silent !start' args | redraw! + catch /^Vim(!):E371:/ + echohl ErrorMsg + echom "dist#vim9#Launch(): can not start" args + echohl None + endtry + enddef +else + export def Launch(dummy: string) + echom 'No common launcher found' + enddef +endif + +var os_viewer = null_string +# Git Bash +if has('win32unix') + # (cyg)start suffices + os_viewer = '' +# Windows +elseif has('win32') + os_viewer = '' # Use :!start +# WSL +elseif executable('explorer.exe') + os_viewer = 'explorer.exe' +# Linux / BSD +elseif executable('xdg-open') + os_viewer = 'xdg-open' +# MacOS +elseif executable('open') + os_viewer = 'open' +endif + +def Viewer(): string + # g:Openprg could be a string of program + its arguments, test if first + # argument is executable + var user_viewer = get(g:, "Openprg", get(g:, "netrw_browsex_viewer", "")) + + # Take care of an off-by-one check for "for" too + if executable(trim(user_viewer)) + return user_viewer + endif + + var args = split(user_viewer, '\s\+\zs') + var viewer = get(args, 0, '') + + for arg in args[1 :] + if executable(trim(viewer)) + return user_viewer + endif + + viewer ..= arg + endfor + + if os_viewer == null + echoerr "No program to open this path found. See :help Open for more information." + endif + + return os_viewer +enddef + +export def Open(file: string) + # disable shellslash for shellescape, required on Windows #17995 + if exists('+shellslash') && &shellslash + &shellslash = false + defer setbufvar('%', '&shellslash', true) + endif + if &shell == 'pwsh' || &shell == 'powershell' + const shell = &shell + setlocal shell& + defer setbufvar('%', '&shell', shell) + endif + Launch($"{Viewer()} {shellescape(file, 1)}") +enddef + +# Uncomment this line to check for compilation errors early +# defcompile + +# vim: ts=8 sts=2 sw=2 et diff --git a/git/usr/share/vim/vim92/autoload/dist/vimindent.vim b/git/usr/share/vim/vim92/autoload/dist/vimindent.vim new file mode 100644 index 0000000000000000000000000000000000000000..ec148235580f12396953d564c00474ac5369e013 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/dist/vimindent.vim @@ -0,0 +1,1277 @@ +vim9script + +# Language: Vim script +# Maintainer: github user lacygoill +# Last Change: 2025 Oct 09 +# +# Includes changes from The Vim Project: + +# NOTE: Whenever you change the code, make sure the tests are still passing: +# +# $ cd runtime/indent/ +# $ make clean; make test || vimdiff testdir/vim.{ok,fail} + +# Config {{{1 + +const TIMEOUT: number = get(g:, 'vim_indent', {}) + ->get('searchpair_timeout', 100) + +def IndentMoreInBracketBlock(): number # {{{2 + if get(g:, 'vim_indent', {}) + ->get('more_in_bracket_block', false) + return shiftwidth() + endif + return 0 +enddef + +def IndentMoreLineContinuation(): number # {{{2 + var n: any = get(g:, 'vim_indent', {}) + # We inspect `g:vim_indent_cont` to stay backward compatible. + ->get('line_continuation', get(g:, 'vim_indent_cont', shiftwidth() * 3)) + + if n->typename() == 'string' + return n->eval() + endif + return n +enddef +# }}}2 + +# Init {{{1 +var patterns: list +# Tokens {{{2 +# BAR_SEPARATION {{{3 + +const BAR_SEPARATION: string = '[^|\\]\@1<=|' + +# OPENING_BRACKET {{{3 + +const OPENING_BRACKET: string = '[[{(]' + +# CLOSING_BRACKET {{{3 + +const CLOSING_BRACKET: string = '[]})]' + +# NON_BRACKET {{{3 + +const NON_BRACKET: string = '[^[\]{}()]' + +# LIST_OR_DICT_CLOSING_BRACKET {{{3 + +const LIST_OR_DICT_CLOSING_BRACKET: string = '[]}]' + +# LIST_OR_DICT_OPENING_BRACKET {{{3 + +const LIST_OR_DICT_OPENING_BRACKET: string = '[[{]' + +# CHARACTER_UNDER_CURSOR {{{3 + +const CHARACTER_UNDER_CURSOR: string = '\%.c.' + +# INLINE_COMMENT {{{3 + +# TODO: It is not required for an inline comment to be surrounded by whitespace. +# But it might help against false positives. +# To be more reliable, we should inspect the syntax, and only require whitespace +# before the `#` comment leader. But that might be too costly (because of +# `synstack()`). +const INLINE_COMMENT: string = '\s[#"]\%(\s\|[{}]\{3}\)' + +# INLINE_VIM9_COMMENT {{{3 + +const INLINE_VIM9_COMMENT: string = '\s#' + +# COMMENT {{{3 + +# TODO: Technically, `"\s` is wrong. +# +# First, whitespace is not required. +# Second, in Vim9, a string might appear at the start of the line. +# To be sure, we should also inspect the syntax. +# We can't use `INLINE_COMMENT` here. {{{ +# +# const COMMENT: string = $'^\s*{INLINE_COMMENT}' +# ^------------^ +# ✘ +# +# Because `INLINE_COMMENT` asserts the presence of a whitespace before the +# comment leader. This assertion is not satisfied for a comment starting at the +# start of the line. +#}}} +const COMMENT: string = '^\s*\%(#\|"\\\=\s\).*$' + +# DICT_KEY {{{3 + +const DICT_KEY: string = '^\s*\%(' + .. '\%(\w\|-\)\+' + .. '\|' + .. '"[^"]*"' + .. '\|' + .. "'[^']*'" + .. '\|' + .. '\[[^]]\+\]' + .. '\)' + .. ':\%(\s\|$\)' + +# END_OF_COMMAND {{{3 + +const END_OF_COMMAND: string = $'\s*\%($\|||\@!\|{INLINE_COMMENT}\)' + +# END_OF_LINE {{{3 + +const END_OF_LINE: string = $'\s*\%($\|{INLINE_COMMENT}\)' + +# END_OF_VIM9_LINE {{{3 + +const END_OF_VIM9_LINE: string = $'\s*\%($\|{INLINE_VIM9_COMMENT}\)' + +# OPERATOR {{{3 + +const OPERATOR: string = '\%(^\|\s\)\%([-+*/%]\|\.\.\|||\|&&\|??\|?\|<<\|>>\|\%([=!]=\|[<>]=\=\|[=!]\~\|is\|isnot\)[?#]\=\)\%(\s\|$\)\@=\%(\s*[|<]\)\@!' + # assignment operators + .. '\|' .. '\s\%([-+*/%]\|\.\.\)\==\%(\s\|$\)\@=' + # support `:` when used inside conditional operator `?:` + .. '\|' .. '\%(\s\|^\):\%(\s\|$\)' + +# HEREDOC_OPERATOR {{{3 + +const HEREDOC_OPERATOR: string = '\s=<<\s\@=\%(\s\+\%(trim\|eval\)\)\{,2}' + +# PATTERN_DELIMITER {{{3 + +# A better regex would be: +# +# [^-+*/%.:#[:blank:][:alnum:]\"|]\|->\@!\%(=\s\)\@!\|[+*/%]\%(=\s\)\@! +# +# But sometimes, it can be too costly and cause `E363` to be given. +const PATTERN_DELIMITER: string = '[-+*/%]\%(=\s\)\@!' +# }}}2 +# Syntaxes {{{2 +# BLOCKS {{{3 + +const BLOCKS: list> = [ + ['if', 'el\%[se]', 'elseif\=', 'en\%[dif]'], + ['for', 'endfor\='], + ['wh\%[ile]', 'endw\%[hile]'], + ['try', 'cat\%[ch]', 'fina\|finally\=', 'endt\%[ry]'], + ['def', 'enddef'], + ['fu\%[nction](\@!', 'endf\%[unction]'], + ['class', 'endclass'], + ['interface', 'endinterface'], + ['enum', 'endenum'], + ['aug\%[roup]\%(\s\+[eE][nN][dD]\)\@!\s\+\S\+', 'aug\%[roup]\s\+[eE][nN][dD]'], +] + +# MODIFIERS {{{3 + +# some keywords can be prefixed by modifiers (e.g. `def` can be prefixed by `export`) +const MODIFIERS: dict = { + def: ['export', 'static'], + class: ['export', 'abstract', 'export abstract'], + interface: ['export'], + enum: ['export'], +} +# ... +# class: ['export', 'abstract', 'export abstract'], +# ... +# → +# ... +# class: '\%(export\|abstract\|export\s\+abstract\)\s\+', +# ... +->map((_, mods: list): string => + '\%(' .. mods + ->join('\|') + ->substitute('\s\+', '\\s\\+', 'g') + .. '\)' .. '\s\+') + +# HIGHER_ORDER_COMMAND {{{3 + +patterns =<< trim eval END + argdo\>!\= + bufdo\>!\= + [cl]f\=do\>!\= + folddoc\%[losed]\> + foldd\%[oopen]\> + tabdo\=\> + windo\> + au\%[tocmd]\>!\=.* + com\%[mand]\>!\=.* + g\%[lobal]!\={PATTERN_DELIMITER}.* + v\%[global]!\={PATTERN_DELIMITER}.* +END + +const HIGHER_ORDER_COMMAND: string = $'\%(^\|{BAR_SEPARATION}\)\s*\<\%({patterns->join('\|')}\)\%(\s\|$\)\@=' + +# START_MIDDLE_END {{{3 + +# Let's derive this constant from `BLOCKS`: +# +# [['if', 'el\%[se]', 'elseif\=', 'en\%[dif]'], +# ['for', 'endfor\='], +# ..., +# [...]] +# → +# { +# 'for': ['for', '', 'endfor\='], +# 'endfor': ['for', '', 'endfor\='], +# 'if': ['if', 'el\%[se]\|elseif\=', 'en\%[dif]'], +# 'else': ['if', 'el\%[se]\|elseif\=', 'en\%[dif]'], +# 'elseif': ['if', 'el\%[se]\|elseif\=', 'en\%[dif]'], +# 'endif': ['if', 'el\%[se]\|elseif\=', 'en\%[dif]'], +# ... +# } +var START_MIDDLE_END: dict> + +def Unshorten(kwd: string): string + return BlockStartKeyword(kwd) +enddef + +def BlockStartKeyword(line: string): string + var kwd: string = line->matchstr('\l\+') + return fullcommand(kwd, false) +enddef + +{ + for kwds: list in BLOCKS + var [start: string, middle: string, end: string] = [kwds[0], '', kwds[-1]] + if MODIFIERS->has_key(start->Unshorten()) + start = $'\%({MODIFIERS[start]}\)\={start}' + endif + if kwds->len() > 2 + middle = kwds[1 : -2]->join('\|') + endif + for kwd: string in kwds + START_MIDDLE_END->extend({[kwd->Unshorten()]: [start, middle, end]}) + endfor + endfor +} + +START_MIDDLE_END = START_MIDDLE_END + ->map((_, kwds: list) => + kwds->map((_, kwd: string) => kwd == '' + ? '' + : $'\%(^\|{BAR_SEPARATION}\|\\%(\s\|$\|!\)\@=\%(\s*{OPERATOR}\)\@!')) + +lockvar! START_MIDDLE_END + +# ENDS_BLOCK {{{3 + +const ENDS_BLOCK: string = '^\s*\%(' + .. BLOCKS + ->copy() + ->map((_, kwds: list): string => kwds[-1]) + ->join('\|') + .. '\|' .. CLOSING_BRACKET + .. $'\){END_OF_COMMAND}' + +# ENDS_BLOCK_OR_CLAUSE {{{3 + +patterns = BLOCKS + ->copy() + ->map((_, kwds: list) => kwds[1 :]) + ->flattennew() + # `catch` and `elseif` need to be handled as special cases + ->filter((_, pat: string): bool => pat->Unshorten() !~ '^\%(catch\|elseif\)\>') + +const ENDS_BLOCK_OR_CLAUSE: string = '^\s*\%(' .. patterns->join('\|') .. $'\){END_OF_COMMAND}' + .. $'\|^\s*cat\%[ch]\%(\s\+\({PATTERN_DELIMITER}\).*\1\)\={END_OF_COMMAND}' + .. $'\|^\s*elseif\=\>\%(\s\|$\)\@=\%(\s*{OPERATOR}\)\@!' + +# STARTS_NAMED_BLOCK {{{3 + +patterns = [] +{ + for kwds: list in BLOCKS + for kwd: string in kwds[0 : -2] + if MODIFIERS->has_key(kwd->Unshorten()) + patterns->add($'\%({MODIFIERS[kwd]}\)\={kwd}') + else + patterns->add(kwd) + endif + endfor + endfor +} + +const STARTS_NAMED_BLOCK: string = $'^\s*\%(sil\%[ent]!\=\s\+\)\=\%({patterns->join('\|')}\)\>\%(\s\|$\|!\)\@=' + +# STARTS_CURLY_BLOCK {{{3 + +# TODO: `{` alone on a line is not necessarily the start of a block. +# It could be a dictionary if the previous line ends with a binary/ternary +# operator. This can cause an issue whenever we use `STARTS_CURLY_BLOCK` or +# `LINE_CONTINUATION_AT_EOL`. +const STARTS_CURLY_BLOCK: string = '\%(' + .. '^\s*{' + .. '\|' .. '^.*\zs\s=>\s\+{' + .. '\|' .. $'^\%(\s*\|.*{BAR_SEPARATION}\s*\)\%(com\%[mand]\|au\%[tocmd]\).*\zs\s{{' + .. '\)' .. END_OF_COMMAND + +# STARTS_FUNCTION {{{3 + +const STARTS_FUNCTION: string = $'^\s*\%({MODIFIERS.def}\)\=def\>!\=\s\@=' + +# ENDS_FUNCTION {{{3 + +const ENDS_FUNCTION: string = $'^\s*enddef\>{END_OF_COMMAND}' + +# ASSIGNS_HEREDOC {{{3 + +const ASSIGNS_HEREDOC: string = $'^\%({COMMENT}\)\@!.*\%({HEREDOC_OPERATOR}\)\s\+\zs[A-Z]\+{END_OF_LINE}' + +# PLUS_MINUS_COMMAND {{{3 + +# In legacy, the `:+` and `:-` commands are not required to be preceded by a colon. +# As a result, when `+` or `-` is alone on a line, there is ambiguity. +# It might be an operator or a command. +# To not break the indentation in legacy scripts, we might need to consider such +# lines as commands. +const PLUS_MINUS_COMMAND: string = '^\s*[+-]\s*$' + +# TRICKY_COMMANDS {{{3 + +# Some commands are tricky because they accept an argument which can be +# conflated with an operator. Examples: +# +# argdelete * +# cd - +# normal! == +# nunmap ( +# +# TODO: Other commands might accept operators as argument. Handle them too. +patterns =<< trim eval END + {'\'}.*,$ + {PLUS_MINUS_COMMAND} +END + +const TRICKY_COMMANDS: string = patterns->join('\|') +# }}}2 +# EOL {{{2 +# OPENING_BRACKET_AT_EOL {{{3 + +const OPENING_BRACKET_AT_EOL: string = OPENING_BRACKET .. END_OF_VIM9_LINE + +# CLOSING_BRACKET_AT_EOL {{{3 + +const CLOSING_BRACKET_AT_EOL: string = CLOSING_BRACKET .. END_OF_VIM9_LINE + +# COMMA_AT_EOL {{{3 + +const COMMA_AT_EOL: string = $',{END_OF_VIM9_LINE}' + +# COMMA_OR_DICT_KEY_AT_EOL {{{3 + +const COMMA_OR_DICT_KEY_AT_EOL: string = $'\%(,\|{DICT_KEY}\){END_OF_VIM9_LINE}' + +# LAMBDA_ARROW_AT_EOL {{{3 + +const LAMBDA_ARROW_AT_EOL: string = $'\s=>{END_OF_VIM9_LINE}' + +# LINE_CONTINUATION_AT_EOL {{{3 + +const LINE_CONTINUATION_AT_EOL: string = '\%(' + .. ',' + .. '\|' .. OPERATOR + .. '\|' .. '\s=>' + .. '\|' .. '[^=]\zs[[(]' + .. '\|' .. DICT_KEY + # `{` is ambiguous. + # It can be the start of a dictionary or a block. + # We only want to match the former. + .. '\|' .. $'^\%({STARTS_CURLY_BLOCK}\)\@!.*\zs{{' + .. '\)\s*\%(\s#[^{].*\)\=$' +# }}}2 +# SOL {{{2 +# BACKSLASH_AT_SOL {{{3 + +const BACKSLASH_AT_SOL: string = '^\s*\%(\\\|[#"]\\ \)' + +# CLOSING_BRACKET_AT_SOL {{{3 + +const CLOSING_BRACKET_AT_SOL: string = $'^\s*{CLOSING_BRACKET}' + +# LINE_CONTINUATION_AT_SOL {{{3 + +const LINE_CONTINUATION_AT_SOL: string = '^\s*\%(' + .. '\\' + .. '\|' .. '[#"]\\ ' + .. '\|' .. OPERATOR + .. '\|' .. '->\s*\h' + .. '\|' .. '->\s*(' # lambda call: ->((v) => v ? "ON" : "OFF")() + .. '\|' .. '\.\h' # dict member + .. '\|' .. '|' + # TODO: `}` at the start of a line is not necessarily a line continuation. + # Could be the end of a block. + .. '\|' .. CLOSING_BRACKET + .. '\)' + +# RANGE_AT_SOL {{{3 + +const RANGE_AT_SOL: string = '^\s*:\S' +# }}}1 +# Interface {{{1 +export def Expr(lnum = v:lnum): number # {{{2 + # line which is indented + var line_A: dict = {text: getline(lnum), lnum: lnum} + # line above, on which we'll base the indent of line A + var line_B: dict + + if line_A->AtStartOf('HereDoc') + line_A->CacheHeredoc() + elseif line_A.lnum->IsInside('HereDoc') + return line_A.text->HereDocIndent() + elseif line_A.lnum->IsRightBelow('HereDoc') + var ind: number = b:vimindent.startindent + unlet! b:vimindent + if line_A.text =~ ENDS_BLOCK_OR_CLAUSE + return ind - shiftwidth() + endif + return ind + endif + + # Don't move this block after the function header one. + # Otherwise, we might clear the cache too early if the line following the + # header is a comment. + if line_A.text =~ COMMENT + return CommentIndent() + endif + + line_B = PrevCodeLine(line_A.lnum) + if line_A.text =~ BACKSLASH_AT_SOL + if line_B.text =~ BACKSLASH_AT_SOL + return Indent(line_B.lnum) + endif + return Indent(line_B.lnum) + IndentMoreLineContinuation() + endif + + if line_A->AtStartOf('FuncHeader') + && !IsInInterface() + line_A.lnum->CacheFuncHeader() + elseif line_A.lnum->IsInside('FuncHeader') + return b:vimindent.startindent + 2 * shiftwidth() + elseif line_A.lnum->IsRightBelow('FuncHeader') + var startindent: number = b:vimindent.startindent + unlet! b:vimindent + if line_A.text =~ ENDS_FUNCTION + return startindent + endif + return startindent + shiftwidth() + endif + + var past_bracket_block: dict + if exists('b:vimindent') + && b:vimindent->has_key('is_BracketBlock') + past_bracket_block = RemovePastBracketBlock(line_A) + endif + if line_A->AtStartOf('BracketBlock') + line_A->CacheBracketBlock() + endif + if line_A.lnum->IsInside('BracketBlock') + var is_in_curly_block: bool = IsInCurlyBlock() + for block: dict in b:vimindent.block_stack + if line_A.lnum <= block.startlnum + continue + endif + if !block->has_key('startindent') + block.startindent = Indent(block.startlnum) + endif + if !is_in_curly_block + return BracketBlockIndent(line_A, block) + endif + endfor + endif + if line_A.text->ContinuesBelowBracketBlock(line_B, past_bracket_block) + && line_A.text !~ CLOSING_BRACKET_AT_SOL + return past_bracket_block.startindent + + (past_bracket_block.startline =~ STARTS_NAMED_BLOCK ? 2 * shiftwidth() : 0) + endif + + # Problem: If we press `==` on the line right below the start of a multiline + # lambda (split after its arrow `=>`), the indent is not correct. + # Solution: Indent relative to the line above. + if line_B->EndsWithLambdaArrow() + return Indent(line_B.lnum) + shiftwidth() + IndentMoreInBracketBlock() + endif + # FIXME: Similar issue here: + # + # var x = [] + # ->filter((_, _) => + # true) + # ->items() + # + # Press `==` on last line. + # Expected: The `->items()` line is indented like `->filter(...)`. + # Actual: It's indented like `true)`. + # Is it worth fixing? `=ip` gives the correct indentation, because then the + # cache is used. + + # Don't move this block before the heredoc one.{{{ + # + # A heredoc might be assigned on the very first line. + # And if it is, we need to cache some info. + #}}} + # Don't move it before the function header and bracket block ones either.{{{ + # + # You could, because these blocks of code deal with construct which can only + # appear in a Vim9 script. And in a Vim9 script, the first line is + # `vim9script`. Or maybe some legacy code/comment (see `:help vim9-mix`). + # But you can't find a Vim9 function header or Vim9 bracket block on the + # first line. + # + # Anyway, even if you could, don't. First, it would be inconsistent. + # Second, it could give unexpected results while we're trying to fix some + # failing test. + #}}} + if line_A.lnum == 1 + return 0 + endif + + # Don't do that: + # if line_A.text !~ '\S' + # return -1 + # endif + # It would prevent a line from being automatically indented when using the + # normal command `o`. + # TODO: Can we write a test for this? + + if line_B.text =~ STARTS_CURLY_BLOCK + return Indent(line_B.lnum) + shiftwidth() + IndentMoreInBracketBlock() + endif + + if line_A.text =~ CLOSING_BRACKET_AT_SOL + var start: number = MatchingOpenBracket(line_A) + if start <= 0 + return -1 + endif + return Indent(start) + IndentMoreInBracketBlock() + + elseif line_A.text =~ ENDS_BLOCK_OR_CLAUSE + && !line_B->EndsWithLineContinuation() + var kwd: string = BlockStartKeyword(line_A.text) + if !START_MIDDLE_END->has_key(kwd) + return -1 + endif + + # If the cursor is after the match for the end pattern, we won't find + # the start of the block. Let's make sure that doesn't happen. + cursor(line_A.lnum, 1) + + var [start: string, middle: string, end: string] = START_MIDDLE_END[kwd] + var block_start: number = SearchPairStart(start, middle, end) + if block_start > 0 + return Indent(block_start) + endif + return -1 + endif + + var base_ind: number + if line_A->IsFirstLineOfCommand(line_B) + line_A.isfirst = true + line_B = line_B->FirstLinePreviousCommand() + base_ind = Indent(line_B.lnum) + + if line_B->EndsWithCurlyBlock() + && !line_A->IsInThisBlock(line_B.lnum) + return base_ind + endif + + else + line_A.isfirst = false + base_ind = Indent(line_B.lnum) + + var line_C: dict = PrevCodeLine(line_B.lnum) + if !line_B->IsFirstLineOfCommand(line_C) || line_C.lnum <= 0 + return base_ind + endif + endif + + return base_ind + Offset(line_A, line_B) +enddef + +def g:GetVimIndent(): number # {{{2 + # for backward compatibility + return Expr() +enddef +# }}}1 +# Core {{{1 +def Offset( # {{{2 + # we indent this line ... + line_A: dict, + # ... relatively to this line + line_B: dict, + ): number + + if line_B->AtStartOf('FuncHeader') + && IsInInterface() + return 0 + endif + + # increase indentation inside a block + if line_B.text =~ STARTS_NAMED_BLOCK + || line_B->EndsWithCurlyBlock() + # But don't indent if the line starting the block also closes it. + if line_B->AlsoClosesBlock() + return 0 + endif + # Indent twice for a line continuation in the block header itself, so that + # we can easily distinguish the end of the block header from the start of + # the block body. + if (line_B->EndsWithLineContinuation() + && !line_A.isfirst) + || (line_A.text =~ LINE_CONTINUATION_AT_SOL + && line_A.text !~ PLUS_MINUS_COMMAND) + || line_A.text->Is_IN_KeywordForLoop(line_B.text) + return 2 * shiftwidth() + endif + return shiftwidth() + endif + + # increase indentation of a line if it's the continuation of a command which + # started on a previous line + if !line_A.isfirst + && (line_B->EndsWithLineContinuation() + || line_A.text =~ LINE_CONTINUATION_AT_SOL) + && !(line_B->EndsWithComma() && line_A.lnum->IsInside('EnumBlock')) + return shiftwidth() + endif + + return 0 +enddef + +def HereDocIndent(line_A: string): number # {{{2 + # at the end of a heredoc + if line_A =~ $'^\s*{b:vimindent.endmarker}$' + # `END` must be at the very start of the line if the heredoc is not trimmed + if !b:vimindent.is_trimmed + # We can't invalidate the cache just yet. + # The indent of `END` is meaningless; it's always 0. The next line + # will need to be indented relative to the start of the heredoc. It + # must know where it starts; it needs the cache. + return 0 + endif + var ind: number = b:vimindent.startindent + # invalidate the cache so that it's not used for the next heredoc + unlet! b:vimindent + return ind + endif + + # In a non-trimmed heredoc, all of leading whitespace is semantic. + # Leave it alone. + if !b:vimindent.is_trimmed + # But do save the indent of the assignment line. + if !b:vimindent->has_key('startindent') + b:vimindent.startindent = b:vimindent.startlnum->Indent() + endif + return -1 + endif + + # In a trimmed heredoc, *some* of the leading whitespace is semantic. + # We want to preserve it, so we can't just indent relative to the assignment + # line. That's because we're dealing with data, not with code. + # Instead, we need to compute by how much the indent of the assignment line + # was increased or decreased. Then, we need to apply that same change to + # every line inside the body. + var offset: number + if !b:vimindent->has_key('offset') + var old_startindent: number = b:vimindent.startindent + var new_startindent: number = b:vimindent.startlnum->Indent() + offset = new_startindent - old_startindent + + # If all the non-empty lines in the body have a higher indentation relative + # to the assignment, there is no need to indent them more. + # But if at least one of them does have the same indentation level (or a + # lower one), then we want to indent it further (and the whole block with it). + # This way, we can clearly distinguish the heredoc block from the rest of + # the code. + var end: number = search($'^\s*{b:vimindent.endmarker}$', 'nW') + var should_indent_more: bool = range(v:lnum, end - 1) + ->indexof((_, lnum: number): bool => Indent(lnum) <= old_startindent && getline(lnum) != '') >= 0 + if should_indent_more + offset += shiftwidth() + endif + + b:vimindent.offset = offset + b:vimindent.startindent = new_startindent + endif + + return Indent(v:lnum) + b:vimindent.offset +enddef + +def CommentIndent(): number # {{{2 + var line_B: dict + line_B.lnum = prevnonblank(v:lnum - 1) + line_B.text = getline(line_B.lnum) + if line_B.text =~ COMMENT + return Indent(line_B.lnum) + endif + + var next: number = NextCodeLine() + if next == 0 + return 0 + endif + var vimindent_save: dict = get(b:, 'vimindent', {})->deepcopy() + var ind: number = next->Expr() + # The previous `Expr()` might have set or deleted `b:vimindent`. + # This could cause issues (e.g. when indenting 2 commented lines above a + # heredoc). Let's make sure the state of the variable is not altered. + if vimindent_save->empty() + unlet! b:vimindent + else + b:vimindent = vimindent_save + endif + if getline(next) =~ ENDS_BLOCK + return ind + shiftwidth() + endif + return ind +enddef + +def BracketBlockIndent(line_A: dict, block: dict): number # {{{2 + var ind: number = block.startindent + + if line_A.text =~ CLOSING_BRACKET_AT_SOL + if b:vimindent.is_on_named_block_line + ind += 2 * shiftwidth() + endif + return ind + IndentMoreInBracketBlock() + endif + + var startline: dict = { + text: block.startline, + lnum: block.startlnum + } + if startline->EndsWithComma() + || startline->EndsWithLambdaArrow() + || (startline->EndsWithOpeningBracket() + # TODO: Is that reliable? + && block.startline !~ + $'^\s*{NON_BRACKET}\+{LIST_OR_DICT_CLOSING_BRACKET},\s\+{LIST_OR_DICT_OPENING_BRACKET}') + ind += shiftwidth() + IndentMoreInBracketBlock() + endif + + if b:vimindent.is_on_named_block_line + ind += shiftwidth() + endif + + if block.is_dict + && line_A.text !~ DICT_KEY + ind += shiftwidth() + endif + + return ind +enddef + +def CacheHeredoc(line_A: dict) # {{{2 + var endmarker: string = line_A.text->matchstr(ASSIGNS_HEREDOC) + var endlnum: number = search($'^\s*{endmarker}$', 'nW') + var is_trimmed: bool = line_A.text =~ $'.*\s\%(trim\%(\s\+eval\)\=\)\s\+[A-Z]\+{END_OF_LINE}' + b:vimindent = { + is_HereDoc: true, + startlnum: line_A.lnum, + endlnum: endlnum, + endmarker: endmarker, + is_trimmed: is_trimmed, + } + if is_trimmed + b:vimindent.startindent = Indent(line_A.lnum) + endif + RegisterCacheInvalidation() +enddef + +def CacheFuncHeader(startlnum: number) # {{{2 + var pos: list = getcurpos() + cursor(startlnum, 1) + if search('(', 'W', startlnum) <= 0 + return + endif + var endlnum: number = SearchPair('(', '', ')', 'nW') + setpos('.', pos) + if endlnum == startlnum + return + endif + + b:vimindent = { + is_FuncHeader: true, + startindent: startlnum->Indent(), + endlnum: endlnum, + } + RegisterCacheInvalidation() +enddef + +def CacheBracketBlock(line_A: dict) # {{{2 + var pos: list = getcurpos() + var opening: string = line_A.text->matchstr(CHARACTER_UNDER_CURSOR) + var closing: string = {'[': ']', '{': '}', '(': ')'}[opening] + var endlnum: number = SearchPair(opening, '', closing, 'nW') + setpos('.', pos) + if endlnum <= line_A.lnum + return + endif + + if !exists('b:vimindent') + b:vimindent = { + is_BracketBlock: true, + is_on_named_block_line: line_A.text =~ STARTS_NAMED_BLOCK, + block_stack: [], + } + endif + + var is_dict: bool + var is_curly_block: bool + if opening == '{' + if line_A.text =~ STARTS_CURLY_BLOCK + [is_dict, is_curly_block] = [false, true] + else + [is_dict, is_curly_block] = [true, false] + endif + endif + b:vimindent.block_stack->insert({ + is_dict: is_dict, + is_curly_block: is_curly_block, + startline: line_A.text, + startlnum: line_A.lnum, + endlnum: endlnum, + }) + + RegisterCacheInvalidation() +enddef + +def RegisterCacheInvalidation() # {{{2 + # invalidate the cache so that it's not used for the next `=` normal command + autocmd_add([{ + cmd: 'unlet! b:vimindent', + event: 'ModeChanged', + group: '__VimIndent__', + once: true, + pattern: '*:n', + replace: true, + }]) +enddef + +def RemovePastBracketBlock(line_A: dict): dict # {{{2 + var stack: list> = b:vimindent.block_stack + + var removed: dict + if line_A.lnum > stack[0].endlnum + removed = stack[0] + endif + + stack->filter((_, block: dict): bool => line_A.lnum <= block.endlnum) + if stack->empty() + unlet! b:vimindent + endif + return removed +enddef +# }}}1 +# Util {{{1 +# Get {{{2 +def Indent(lnum: number): number # {{{3 + if lnum <= 0 + # Don't return `-1`. It could cause `Expr()` to return a non-multiple of `'shiftwidth'`.{{{ + # + # It would be OK if we were always returning `Indent()` directly. But + # we don't. Most of the time, we include it in some computation + # like `Indent(...) + shiftwidth()`. If `'shiftwidth'` is `4`, and + # `Indent()` returns `-1`, `Expr()` will end up returning `3`. + #}}} + return 0 + endif + return indent(lnum) +enddef + +def MatchingOpenBracket(line: dict): number # {{{3 + var end: string = line.text->matchstr(CLOSING_BRACKET) + var start: string = {']': '[', '}': '{', ')': '('}[end] + cursor(line.lnum, 1) + return SearchPairStart(start, '', end) +enddef + +def FirstLinePreviousCommand(line: dict): dict # {{{3 + var line_B: dict = line + + while line_B.lnum > 1 + var code_line_above: dict = PrevCodeLine(line_B.lnum) + + if line_B.text =~ CLOSING_BRACKET_AT_SOL + var n: number = MatchingOpenBracket(line_B) + + if n <= 0 + break + endif + + line_B.lnum = n + line_B.text = getline(line_B.lnum) + continue + + elseif line_B->IsFirstLineOfCommand(code_line_above) + break + endif + + line_B = code_line_above + endwhile + + return line_B +enddef + +def PrevCodeLine(lnum: number): dict # {{{3 + var line: string = getline(lnum) + if line =~ '^\s*[A-Z]\+$' + var endmarker: string = line->matchstr('[A-Z]\+') + var pos: list = getcurpos() + cursor(lnum, 1) + var n: number = search(ASSIGNS_HEREDOC, 'bnW') + setpos('.', pos) + if n > 0 + line = getline(n) + if line =~ $'{HEREDOC_OPERATOR}\s\+{endmarker}' + return {lnum: n, text: line} + endif + endif + endif + + var n: number = prevnonblank(lnum - 1) + line = getline(n) + while line =~ COMMENT && n > 1 + n = prevnonblank(n - 1) + line = getline(n) + endwhile + # If we get back to the first line, we return 1 no matter what; even if it's a + # commented line. That should not cause an issue though. We just want to + # avoid a commented line above which there is a line of code which is more + # relevant. There is nothing above the first line. + return {lnum: n, text: line} +enddef + +def NextCodeLine(): number # {{{3 + var last: number = line('$') + if v:lnum == last + return 0 + endif + + var lnum: number = v:lnum + 1 + while lnum <= last + var line: string = getline(lnum) + if line != '' && line !~ COMMENT + return lnum + endif + ++lnum + endwhile + return 0 +enddef + +def SearchPair( # {{{3 + start: string, + middle: string, + end: string, + flags: string, + stopline = 0, + ): number + + var s: string = start + var e: string = end + if start == '[' || start == ']' + s = s->escape('[]') + endif + if end == '[' || end == ']' + e = e->escape('[]') + endif + # VIM_INDENT_TEST_TRACE_START + return searchpair('\C' .. s, (middle == '' ? '' : '\C' .. middle), '\C' .. e, + flags, (): bool => InCommentOrString(), stopline, TIMEOUT) + # VIM_INDENT_TEST_TRACE_END dist#vimindent#SearchPair +enddef + +def SearchPairStart( # {{{3 + start: string, + middle: string, + end: string, + ): number + return SearchPair(start, middle, end, 'bnW') +enddef + +def SearchPairEnd( # {{{3 + start: string, + middle: string, + end: string, + stopline = 0, + ): number + return SearchPair(start, middle, end, 'nW', stopline) +enddef +# }}}2 +# Test {{{2 +def AtStartOf(line_A: dict, syntax: string): bool # {{{3 + if syntax == 'BracketBlock' + return AtStartOfBracketBlock(line_A) + endif + + var pat: string = { + HereDoc: ASSIGNS_HEREDOC, + FuncHeader: STARTS_FUNCTION + }[syntax] + return line_A.text =~ pat + && (!exists('b:vimindent') || !b:vimindent->has_key('is_HereDoc')) +enddef + +def AtStartOfBracketBlock(line_A: dict): bool # {{{3 + # We ignore bracket blocks while we're indenting a function header + # because it makes the logic simpler. It might mean that we don't + # indent correctly a multiline bracket block inside a function header, + # but that's a corner case for which it doesn't seem worth making the + # code more complex. + if exists('b:vimindent') + && !b:vimindent->has_key('is_BracketBlock') + return false + endif + + var pos: list = getcurpos() + cursor(line_A.lnum, [line_A.lnum, '$']->col()) + + if SearchPair(OPENING_BRACKET, '', CLOSING_BRACKET, 'bcW', line_A.lnum) <= 0 + setpos('.', pos) + return false + endif + # Don't restore the cursor position. + # It needs to be on a bracket for `CacheBracketBlock()` to work as intended. + + return line_A->EndsWithOpeningBracket() + || line_A->EndsWithCommaOrDictKey() + || line_A->EndsWithLambdaArrow() +enddef + +def ContinuesBelowBracketBlock( # {{{3 + line_A: string, + line_B: dict, + block: dict + ): bool + + return !block->empty() + && (line_A =~ LINE_CONTINUATION_AT_SOL + || line_B->EndsWithLineContinuation()) +enddef + +def IsInside(lnum: number, syntax: string): bool # {{{3 + if syntax == 'EnumBlock' + var cur_pos = getpos('.') + cursor(lnum, 1) + var enum_pos = search('^\C\s*\%(export\s\)\=\s*enum\s\+\S\+', 'bnW') + var endenum_pos = search('^\C\s*endenum\>', 'bnW') + setpos('.', cur_pos) + + if enum_pos == 0 && endenum_pos == 0 + return false + endif + if (enum_pos > 0 && (endenum_pos == 0 || enum_pos > endenum_pos)) + return true + endif + return false + endif + + if !exists('b:vimindent') + || !b:vimindent->has_key($'is_{syntax}') + return false + endif + + if syntax == 'BracketBlock' + if !b:vimindent->has_key('block_stack') + || b:vimindent.block_stack->empty() + return false + endif + return lnum <= b:vimindent.block_stack[0].endlnum + endif + + return lnum <= b:vimindent.endlnum +enddef + +def IsRightBelow(lnum: number, syntax: string): bool # {{{3 + return exists('b:vimindent') + && b:vimindent->has_key($'is_{syntax}') + && lnum > b:vimindent.endlnum +enddef + +def IsInCurlyBlock(): bool # {{{3 + return b:vimindent.block_stack + ->indexof((_, block: dict): bool => block.is_curly_block) >= 0 +enddef + +def IsInThisBlock(line_A: dict, lnum: number): bool # {{{3 + var pos: list = getcurpos() + cursor(lnum, [lnum, '$']->col()) + var end: number = SearchPairEnd('{', '', '}') + setpos('.', pos) + + return line_A.lnum <= end +enddef + +def IsInInterface(): bool # {{{3 + return SearchPair('interface', '', 'endinterface', 'nW') > 0 +enddef + +def IsFirstLineOfCommand(line_1: dict, line_2: dict): bool # {{{3 + if line_1.text->Is_IN_KeywordForLoop(line_2.text) + return false + endif + + if line_1.text =~ RANGE_AT_SOL + || line_1.text =~ PLUS_MINUS_COMMAND + return true + endif + + if line_2.text =~ DICT_KEY + && !line_1->IsInThisBlock(line_2.lnum) + return true + endif + + var line_1_is_good: bool = line_1.text !~ COMMENT + && line_1.text !~ DICT_KEY + && line_1.text !~ LINE_CONTINUATION_AT_SOL + + var line_2_is_good: bool = !line_2->EndsWithLineContinuation() + + return line_1_is_good && line_2_is_good +enddef + +def Is_IN_KeywordForLoop(line_1: string, line_2: string): bool # {{{3 + return line_2 =~ '^\s*for\s' + && line_1 =~ '^\s*in\s' +enddef + +def InCommentOrString(): bool # {{{3 + return synstack('.', col('.')) + ->indexof((_, id: number): bool => synIDattr(id, 'name') =~ '\ccomment\|string\|heredoc') >= 0 +enddef + +def AlsoClosesBlock(line_B: dict): bool # {{{3 + # We know that `line_B` opens a block. + # Let's see if it also closes that block. + var kwd: string = BlockStartKeyword(line_B.text) + if !START_MIDDLE_END->has_key(kwd) + return false + endif + + var [start: string, middle: string, end: string] = START_MIDDLE_END[kwd] + var pos: list = getcurpos() + cursor(line_B.lnum, 1) + var block_end: number = SearchPairEnd(start, middle, end, line_B.lnum) + setpos('.', pos) + + return block_end > 0 +enddef + +def EndsWithComma(line: dict): bool # {{{3 + return NonCommentedMatch(line, COMMA_AT_EOL) +enddef + +def EndsWithCommaOrDictKey(line_A: dict): bool # {{{3 + return NonCommentedMatch(line_A, COMMA_OR_DICT_KEY_AT_EOL) +enddef + +def EndsWithCurlyBlock(line_B: dict): bool # {{{3 + return NonCommentedMatch(line_B, STARTS_CURLY_BLOCK) +enddef + +def EndsWithLambdaArrow(line_A: dict): bool # {{{3 + return NonCommentedMatch(line_A, LAMBDA_ARROW_AT_EOL) +enddef + +def EndsWithLineContinuation(line_B: dict): bool # {{{3 + return NonCommentedMatch(line_B, LINE_CONTINUATION_AT_EOL) +enddef + +def EndsWithOpeningBracket(line: dict): bool # {{{3 + return NonCommentedMatch(line, OPENING_BRACKET_AT_EOL) +enddef + +def EndsWithClosingBracket(line: dict): bool # {{{3 + return NonCommentedMatch(line, CLOSING_BRACKET_AT_EOL) +enddef + +def NonCommentedMatch(line: dict, pat: string): bool # {{{3 + # Could happen if there is no code above us, and we're not on the 1st line. + # In that case, `PrevCodeLine()` returns `{lnum: 0, line: ''}`. + if line.lnum == 0 + return false + endif + + # Technically, that's wrong. A line might start with a range and end with a + # line continuation symbol. But it's unlikely. And it's useful to assume the + # opposite because it prevents us from conflating a mark with an operator or + # the start of a list: + # + # not a comparison operator + # v + # :'< mark < + # :'< mark [ + # ^ + # not the start of a list + if line.text =~ RANGE_AT_SOL + return false + endif + + # that's not an arithmetic operator + # v + # catch /pattern / + # + # When `/` is used as a pattern delimiter, it's always present twice. + # And usually, the first occurrence is in the middle of a sequence of + # non-whitespace characters. If we can find such a `/`, we assume that the + # trailing `/` is not an operator. + # Warning: Here, don't use a too complex pattern.{{{ + # + # In particular, avoid backreferences. + # For example, this would be too costly: + # + # if line.text =~ $'\%(\S*\({PATTERN_DELIMITER}\)\S\+\|\S\+\({PATTERN_DELIMITER}\)\S*\)' + # .. $'\s\+\1{END_OF_COMMAND}' + # + # Sometimes, it could even give `E363`. + #}}} + var delim: string = line.text + ->matchstr($'\s\+\zs{PATTERN_DELIMITER}\ze{END_OF_COMMAND}') + if !delim->empty() + delim = $'\V{delim}\m' + if line.text =~ $'\%(\S*{delim}\S\+\|\S\+{delim}\S*\)\s\+{delim}{END_OF_COMMAND}' + return false + endif + endif + # TODO: We might still miss some corner cases:{{{ + # + # conflated with arithmetic division + # v + # substitute/pat / rep / + # echo + # ^--^ + # ✘ + # + # A better way to handle all these corner cases, would be to inspect the top + # of the syntax stack: + # + # :echo synID('.', col('.'), v:false)->synIDattr('name') + # + # Unfortunately, the legacy syntax plugin is not accurate enough. + # For example, it doesn't highlight a slash as an operator. + # }}} + + # `%` at the end of a line is tricky. + # It might be the modulo operator or the current file (e.g. `edit %`). + # Let's assume it's the latter. + if line.text =~ $'%{END_OF_COMMAND}' + return false + endif + + if line.text =~ TRICKY_COMMANDS + return false + endif + + var pos: list = getcurpos() + cursor(line.lnum, 1) + # VIM_INDENT_TEST_TRACE_START + var match_lnum: number = search(pat, 'cnW', line.lnum, TIMEOUT, (): bool => InCommentOrString()) + # VIM_INDENT_TEST_TRACE_END dist#vimindent#NonCommentedMatch + setpos('.', pos) + return match_lnum > 0 +enddef +# }}}1 +# vim:sw=4 diff --git a/git/usr/share/vim/vim92/autoload/rust/debugging.vim b/git/usr/share/vim/vim92/autoload/rust/debugging.vim new file mode 100644 index 0000000000000000000000000000000000000000..0e84183172d21b1c68a8692917cb565da1172d6b --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/rust/debugging.vim @@ -0,0 +1,105 @@ +" Last Modified: 2023-09-11 + +" For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim + +let s:global_variable_list = [ + \ '_rustfmt_autosave_because_of_config', + \ 'ftplugin_rust_source_path', + \ 'loaded_syntastic_rust_cargo_checker', + \ 'loaded_syntastic_rust_filetype', + \ 'loaded_syntastic_rust_rustc_checker', + \ 'rust_bang_comment_leader', + \ 'rust_cargo_avoid_whole_workspace', + \ 'rust_clip_command', + \ 'rust_conceal', + \ 'rust_conceal_mod_path', + \ 'rust_conceal_pub', + \ 'rust_fold', + \ 'rust_last_args', + \ 'rust_last_rustc_args', + \ 'rust_original_delimitMate_excluded_regions', + \ 'rust_playpen_url', + \ 'rust_prev_delimitMate_quotes', + \ 'rust_recent_nearest_cargo_tol', + \ 'rust_recent_root_cargo_toml', + \ 'rust_recommended_style', + \ 'rust_set_conceallevel', + \ 'rust_set_conceallevel=1', + \ 'rust_set_foldmethod', + \ 'rust_set_foldmethod=1', + \ 'rust_shortener_url', + \ 'rustc_makeprg_no_percent', + \ 'rustc_path', + \ 'rustfmt_autosave', + \ 'rustfmt_autosave_if_config_present', + \ 'rustfmt_command', + \ 'rustfmt_emit_files', + \ 'rustfmt_fail_silently', + \ 'rustfmt_options', + \ 'syntastic_extra_filetypes', + \ 'syntastic_rust_cargo_fname', + \] + +function! s:Echo(message) abort + execute 'echo a:message' +endfunction + +function! s:EchoGlobalVariables() abort + for l:key in s:global_variable_list + if l:key !~# '^_' + call s:Echo('let g:' . l:key . ' = ' . string(get(g:, l:key, v:null))) + endif + + if has_key(b:, l:key) + call s:Echo('let b:' . l:key . ' = ' . string(b:[l:key])) + endif + endfor +endfunction + +function! rust#debugging#Info() abort + call cargo#Load() + call rust#Load() + call rustfmt#Load() + call s:Echo('rust.vim Global Variables:') + call s:Echo('') + call s:EchoGlobalVariables() + + silent let l:output = system(g:rustfmt_command . ' --version') + echo l:output + + let l:rustc = exists("g:rustc_path") ? g:rustc_path : "rustc" + silent let l:output = system(l:rustc . ' --version') + echo l:output + + silent let l:output = system('cargo --version') + echo l:output + + version + + if exists(":SyntasticInfo") + echo "----" + echo "Info from Syntastic:" + execute "SyntasticInfo" + endif +endfunction + +function! rust#debugging#InfoToClipboard() abort + redir @" + silent call rust#debugging#Info() + redir END + + call s:Echo('RustInfo copied to your clipboard') +endfunction + +function! rust#debugging#InfoToFile(filename) abort + let l:expanded_filename = expand(a:filename) + + redir => l:output + silent call rust#debugging#Info() + redir END + + call writefile(split(l:output, "\n"), l:expanded_filename) + call s:Echo('RustInfo written to ' . l:expanded_filename) +endfunction + +" vim: set et sw=4 sts=4 ts=8: diff --git a/git/usr/share/vim/vim92/autoload/xml/html32.vim b/git/usr/share/vim/vim92/autoload/xml/html32.vim new file mode 100644 index 0000000000000000000000000000000000000000..242f52b1ab7ed8463e2218d4c317524fef896ed7 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html32.vim @@ -0,0 +1,383 @@ +let g:xmldata_html32 = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Aring', 'Atilde', 'Auml', 'Ccedil', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Euml', 'Iacute', 'Icirc', 'Igrave', 'Iuml', 'Ntilde', 'Oacute', 'Ocirc', 'Ograve', 'Oslash', 'Otilde', 'Ouml', 'THORN', 'Uacute', 'Ucirc', 'Ugrave', 'Uuml', 'Yacute', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'amp', 'aring', 'atilde', 'auml', 'brvbar', 'ccedil', 'cedil', 'cent', 'copy', 'curren', 'deg', 'divide', 'eacute', 'ecirc', 'egrave', 'eth', 'euml', 'frac12', 'frac14', 'frac34', 'gt', 'iacute', 'icirc', 'iexcl', 'igrave', 'iquest', 'iuml', 'laquo', 'lt', 'macr', 'micro', 'middot', 'nbsp', 'not', 'ntilde', 'oacute', 'ocirc', 'ograve', 'ordf', 'ordm', 'oslash', 'otilde', 'ouml', 'para', 'plusmn', 'pound', 'raquo', 'reg', 'sect', 'shy', 'sup1', 'sup2', 'sup3', 'szlig', 'thorn', 'times', 'uacute', 'ucirc', 'ugrave', 'uml', 'uuml', 'yacute', 'yen', 'yuml'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'rel': [], 'href': [], 'name': [], 'rev': [], 'title': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p'], +\ { } +\ ], +\ 'applet': [ +\ ['param', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'width': [], 'vspace': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'height': [], 'hspace': [], 'codebase': [], 'code': []} +\ ], +\ 'area': [ +\ [], +\ { 'alt': [], 'coords': [], 'nohref': ['BOOL'], 'href': [], 'shape': ['rect', 'circle', 'poly']} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'base': [ +\ [], +\ { 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'blockquote': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { } +\ ], +\ 'body': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'link': [], 'vlink': [], 'background': [], 'alink': [], 'bgcolor': [], 'text': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['top', 'bottom']} +\ ], +\ 'center': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { } +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'dd': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table'], +\ { } +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'dir': [ +\ ['li'], +\ { 'compact': ['BOOL']} +\ ], +\ 'div': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'compact': ['BOOL']} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'size': [], 'color': []} +\ ], +\ 'form': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'isindex', 'hr', 'table', 'address'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'action': [], 'method': ['GET', 'POST']} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base', 'script', 'style', 'meta', 'link'], +\ { } +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'align': ['left', 'right', 'center'], 'size': [], 'noshade': ['BOOL']} +\ ], +\ 'html': [ +\ ['head', 'body', 'plaintext'], +\ { 'version': ['-//W3C//DTD HTML 3.2 Final//EN']} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'vspace': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'usemap': [], 'ismap': ['BOOL'], 'src': [], 'height': [], 'border': [], 'hspace': []} +\ ], +\ 'input': [ +\ [], +\ { 'maxlength': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'size': [], 'checked': ['BOOL'], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE']} +\ ], +\ 'isindex': [ +\ [], +\ { 'prompt': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'li': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table'], +\ { 'value': [], 'type': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'href': [], 'rev': [], 'title': []} +\ ], +\ 'listing': [ +\ [], +\ { } +\ ], +\ 'map': [ +\ ['area'], +\ { 'name': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'compact': ['BOOL']} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'name': [], 'content': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'compact': ['BOOL'], 'type': [], 'start': []} +\ ], +\ 'option': [ +\ [''], +\ { 'value': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'param': [ +\ [], +\ { 'value': [], 'name': []} +\ ], +\ 'plaintext': [ +\ [], +\ { } +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'applet', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'width': ['#implied']} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'script': [ +\ [], +\ { } +\ ], +\ 'select': [ +\ ['option'], +\ { 'name': [], 'size': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'style': [ +\ [], +\ { } +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'table': [ +\ ['caption', 'tr'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'border': [], 'cellspacing': [], 'cellpadding': []} +\ ], +\ 'td': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'nowrap': ['BOOL'], 'valign': ['top', 'middle', 'bottom'], 'height': [], 'rowspan': ['1'], 'colspan': ['1']} +\ ], +\ 'textarea': [ +\ [''], +\ { 'name': [], 'rows': [], 'cols': []} +\ ], +\ 'th': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'nowrap': ['BOOL'], 'valign': ['top', 'middle', 'bottom'], 'height': [], 'rowspan': ['1'], 'colspan': ['1']} +\ ], +\ 'title': [ +\ [''], +\ { } +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'align': ['left', 'center', 'right'], 'valign': ['top', 'middle', 'bottom']} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'ul': [ +\ ['li'], +\ { 'compact': ['BOOL'], 'type': ['disc', 'square', 'circle']} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'xmp': [ +\ [], +\ { } +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html401f.vim b/git/usr/share/vim/vim92/autoload/xml/html401f.vim new file mode 100644 index 0000000000000000000000000000000000000000..1797a5a07848ff4e914dc94f045f976dd24b9dd9 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html401f.vim @@ -0,0 +1,468 @@ +let g:xmldata_html401t = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'noshade': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'html': [ +\ ['head', 'frameset'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'frameset': [ +\ ['frameset', 'frame', 'noframes'], +\ { 'rows': [], 'cols': [], 'id': [], 'style': [], 'onunload': [], 'onload': [], 'class': [], 'title': []} +\ ], +\ 'frame': [ +\ [], +\ { 'scrolling': ['auto', 'yes', 'no', 'auto'], 'noresize': ['BOOL'], 'marginwidth': [], 'id': [], 'marginheight': [], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'ismap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'tabindex': [], 'accept': [], 'alt': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'class': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noframes': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'width': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 's': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html401s.vim b/git/usr/share/vim/vim92/autoload/xml/html401s.vim new file mode 100644 index 0000000000000000000000000000000000000000..37f581ba2b1d87a0bbbe5914ade6fdea34194776 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html401s.vim @@ -0,0 +1,410 @@ +let g:xmldata_html401s = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'name': [], 'style': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'href': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'script', 'ins', 'del'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'hr', 'table', 'fieldset', 'address', 'script'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'head': [ +\ ['title', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'alt': [], 'lang': [], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'height': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'ismap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'alt': [], 'tabindex': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'archive': [], 'standby': [], 'tabindex': [], 'classid': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'codetype': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL']} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html401t.vim b/git/usr/share/vim/vim92/autoload/xml/html401t.vim new file mode 100644 index 0000000000000000000000000000000000000000..ae6c63f60fb23435920d894f948f4a37837d9d42 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html401t.vim @@ -0,0 +1,460 @@ +let g:xmldata_html401t = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'noshade': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'dir': ['ltr', 'rtl'], 'lang': [], 'version': ['-//W3C//DTD HTML 4.01 Transitional//EN']} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'ismap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'tabindex': [], 'accept': [], 'alt': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'class': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noframes': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'width': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 's': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html40f.vim b/git/usr/share/vim/vim92/autoload/xml/html40f.vim new file mode 100644 index 0000000000000000000000000000000000000000..b5ba99f8f6cfa6b237236aca98b4ff00b484cabe --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html40f.vim @@ -0,0 +1,468 @@ +let g:xmldata_html40t = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'noshade': ['BOOL'], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'frameset'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'frameset': [ +\ ['frameset', 'frame', 'noframes'], +\ { 'rows': [], 'cols': [], 'id': [], 'style': [], 'onunload': [], 'onload': [], 'class': [], 'title': []} +\ ], +\ 'frame': [ +\ [], +\ { 'scrolling': ['auto', 'yes', 'no', 'auto'], 'noresize': ['BOOL'], 'marginwidth': [], 'id': [], 'marginheight': [], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'alt': [], 'tabindex': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'class': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noframes': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'width': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 's': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html40s.vim b/git/usr/share/vim/vim92/autoload/xml/html40s.vim new file mode 100644 index 0000000000000000000000000000000000000000..bb3a45b55c6afd6913ce6a515a34a5596f2c7110 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html40s.vim @@ -0,0 +1,410 @@ +let g:xmldata_html40s = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'name': [], 'style': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'href': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'script', 'ins', 'del'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'hr', 'table', 'fieldset', 'address', 'script'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'head': [ +\ ['title', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'alt': [], 'lang': [], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'alt': [], 'tabindex': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'archive': [], 'standby': [], 'tabindex': [], 'classid': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'codetype': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL']} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'pre', 'dl', 'div', 'noscript', 'blockquote', 'form', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'object', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/html40t.vim b/git/usr/share/vim/vim92/autoload/xml/html40t.vim new file mode 100644 index 0000000000000000000000000000000000000000..2d732465231c4a11ecaff7a71c4b0587a6a4ba13 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/html40t.vim @@ -0,0 +1,460 @@ +let g:xmldata_html40t = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'rel': [], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'nohref': ['BOOL'], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'shape': ['rect', 'circle', 'poly', 'default'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'hr', 'table', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['GET', 'POST'], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'noshade': ['BOOL'], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'dir': ['ltr', 'rtl'], 'lang': [], 'version': ['-//W3C//DTD HTML 4.0 Transitional//EN']} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE', 'BUTTON'], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'alt': [], 'tabindex': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'class': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'label': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'legend': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'noframes': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['DATA', 'REF', 'OBJECT']} +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'br', 'script', 'map', 'q', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'width': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'q': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 's': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'script': [ +\ [], +\ { 'src': [], 'for': [], 'charset': [], 'event': [], 'type': [], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'span': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'style': [ +\ [], +\ { 'media': [], 'lang': [], 'type': [], 'title': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'datapagesize': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dir', 'menu', 'pre', 'dl', 'div', 'center', 'noscript', 'noframes', 'blockquote', 'form', 'isindex', 'hr', 'table', 'fieldset', 'address', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'lang': [], 'dir': ['ltr', 'rtl']} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'char': []} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': []} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'a', 'img', 'applet', 'object', 'font', 'basefont', 'br', 'script', 'map', 'q', 'sub', 'sup', 'span', 'bdo', 'iframe', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xhtml10f.vim b/git/usr/share/vim/vim92/autoload/xml/xhtml10f.vim new file mode 100644 index 0000000000000000000000000000000000000000..0bfa30ce9d2428813eb20b8456282067a3d206e6 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xhtml10f.vim @@ -0,0 +1,469 @@ +let g:xmldata_xhtml10f = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'rel': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'xml:lang': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'nohref': ['BOOL'], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'alt': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'b': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': [], 'id': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'big': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'xml:lang': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'table', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'noscript', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'value': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'xml:lang': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['get', 'post'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'frame': [ +\ [], +\ { 'scrolling': ['auto', 'yes', 'no', 'auto'], 'noresize': ['BOOL'], 'marginwidth': [], 'id': [], 'marginheight': [], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'frameset': [ +\ ['frameset', 'frame', 'noframes'], +\ { 'rows': [], 'cols': [], 'id': [], 'style': [], 'onunload': [], 'onload': [], 'class': [], 'title': []} +\ ], +\ 'h1': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['script', 'style', 'meta', 'link', 'object', 'isindex', 'title', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'title', 'script', 'style', 'meta', 'link', 'object', 'isindex'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'noshade': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'html': [ +\ ['head', 'frameset'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'i': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'size': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'tabindex': [], 'alt': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'xml:lang': []} +\ ], +\ 'kbd': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'label': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'legend': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'onclick': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmouseout': [], 'onmousemove': [], 'xml:lang': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'id': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'noframes': [ +\ ['body'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'xml:lang': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['data', 'ref', 'object']} +\ ], +\ 'pre': [ +\ ['a', 'br', 'span', 'bdo', 'tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'xml:space': ['preserve'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'q': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 's': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'samp': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'script': [ +\ [''], +\ { 'id': [], 'src': [], 'charset': [], 'xml:space': ['preserve'], 'type': ['text/javascript'], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'span': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'strike': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'strong': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'style': [ +\ [''], +\ { 'media': [], 'id': [], 'lang': [], 'xml:space': ['preserve'], 'title': [], 'type': ['text/css'], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'sub': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'sup': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody', 'tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'id': [], 'lang': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'tt': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'u': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'var': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'frame': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xhtml10s.vim b/git/usr/share/vim/vim92/autoload/xml/xhtml10s.vim new file mode 100644 index 0000000000000000000000000000000000000000..3fb7cf8c44aef5950723eb5283a61e18541a03a4 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xhtml10s.vim @@ -0,0 +1,410 @@ +let g:xmldata_xhtml10s = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'rel': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'name': [], 'style': [], 'charset': [], 'xml:lang': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'nohref': ['BOOL'], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'alt': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'b': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'href': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'big': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'table', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'noscript', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'value': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'noscript', 'ins', 'del', 'script'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['get', 'post'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h2': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h3': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h4': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h5': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h6': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'head': [ +\ ['script', 'style', 'meta', 'link', 'object', 'title', 'script', 'style', 'meta', 'link', 'object', 'base', 'script', 'style', 'meta', 'link', 'object', 'base', 'script', 'style', 'meta', 'link', 'object', 'title', 'script', 'style', 'meta', 'link', 'object'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'i': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'alt': [], 'lang': [], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'size': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'tabindex': [], 'alt': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'kbd': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'label': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'legend': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'onclick': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmouseout': [], 'onmousemove': [], 'xml:lang': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'id': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'archive': [], 'standby': [], 'tabindex': [], 'classid': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'codetype': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['data', 'ref', 'object']} +\ ], +\ 'pre': [ +\ ['a', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'br', 'span', 'bdo', 'map', 'ins', 'del', 'script', 'input', 'select', 'textarea', 'label', 'button'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'xml:space': ['preserve'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'q': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'samp': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'script': [ +\ [''], +\ { 'id': [], 'src': [], 'charset': [], 'xml:space': ['preserve'], 'type': ['text/javascript'], 'defer': ['BOOL']} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'span': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'strong': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'style': [ +\ [''], +\ { 'media': [], 'id': [], 'lang': [], 'xml:space': ['preserve'], 'title': [], 'type': ['text/css'], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'sub': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'sup': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody', 'tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'pre', 'hr', 'blockquote', 'address', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'headers': [], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'id': [], 'lang': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'tt': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'var': [ +\ ['a', 'br', 'span', 'bdo', 'map', 'object', 'img', 'tt', 'i', 'b', 'big', 'small', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xhtml10t.vim b/git/usr/share/vim/vim92/autoload/xml/xhtml10t.vim new file mode 100644 index 0000000000000000000000000000000000000000..0e857ac9b2501e1c536c9bbdb0c625072b2b4ff4 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xhtml10t.vim @@ -0,0 +1,460 @@ +let g:xmldata_xhtml10t = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'rel': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'target': [], 'onfocus': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'charset': [], 'xml:lang': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'acronym': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script', 'p'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'applet': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'width': [], 'object': [], 'id': [], 'code': [], 'vspace': [], 'archive': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'style': [], 'name': [], 'height': [], 'hspace': [], 'title': [], 'class': [], 'codebase': []} +\ ], +\ 'area': [ +\ [], +\ { 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'nohref': ['BOOL'], 'target': [], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'alt': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'b': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'target': [], 'href': [], 'id': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': [], 'face': [], 'color': [], 'id': []} +\ ], +\ 'bdo': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'big': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'vlink': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'alink': [], 'onkeyup': [], 'bgcolor': [], 'text': [], 'onmouseup': [], 'id': [], 'link': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'background': [], 'xml:lang': [], 'onunload': [], 'onkeypress': [], 'onmousedown': [], 'onload': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'table', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'noscript', 'ins', 'del', 'script'], +\ { 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onkeydown': [], 'onfocus': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'lang': [], 'value': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'center': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dir': [ +\ ['li'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'font': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'dir': ['ltr', 'rtl'], 'size': [], 'face': [], 'color': [], 'id': [], 'lang': [], 'style': [], 'xml:lang': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'onsubmit': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'target': [], 'onkeyup': [], 'onmouseup': [], 'onreset': [], 'id': [], 'method': ['get', 'post'], 'onmouseover': [], 'lang': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h2': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h3': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h4': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h5': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h6': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'head': [ +\ ['script', 'style', 'meta', 'link', 'object', 'isindex', 'title', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'base', 'script', 'style', 'meta', 'link', 'object', 'isindex', 'title', 'script', 'style', 'meta', 'link', 'object', 'isindex'], +\ { 'profile': [], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right'], 'lang': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'noshade': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'lang': [], 'xml:lang': []} +\ ], +\ 'i': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'iframe': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'width': [], 'scrolling': ['auto', 'yes', 'no', 'auto'], 'marginwidth': [], 'id': [], 'marginheight': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'longdesc': [], 'src': [], 'style': [], 'name': [], 'height': [], 'frameborder': ['1', '0'], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'usemap': [], 'ismap': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'vspace': [], 'onmouseover': [], 'alt': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'src': [], 'longdesc': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'height': [], 'border': [], 'hspace': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'input': [ +\ [], +\ { 'ondblclick': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'], 'accesskey': [], 'disabled': ['BOOL'], 'usemap': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'size': [], 'onfocus': [], 'maxlength': [], 'onselect': [], 'accept': [], 'tabindex': [], 'alt': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ins': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'cite': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'isindex': [ +\ [], +\ { 'id': [], 'lang': [], 'prompt': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'xml:lang': []} +\ ], +\ 'kbd': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'label': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'for': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'legend': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['top', 'bottom', 'left', 'right'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'li': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'ondblclick': [], 'onkeydown': [], 'target': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'charset': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'map': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'noscript', 'ins', 'del', 'script', 'area'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'onclick': [], 'title': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmouseout': [], 'onmousemove': [], 'xml:lang': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'content': [], 'id': [], 'lang': [], 'name': [], 'scheme': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'noframes': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'noscript': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'object': [ +\ ['param', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'data': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'width': [], 'usemap': [], 'dir': ['ltr', 'rtl'], 'vspace': [], 'tabindex': [], 'standby': [], 'archive': [], 'classid': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'height': [], 'xml:lang': [], 'border': [], 'codetype': [], 'hspace': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': [], 'class': [], 'title': [], 'onclick': [], 'start': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'option': [ +\ [''], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'value': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify'], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'param': [ +\ [], +\ { 'id': [], 'value': [], 'name': [], 'type': [], 'valuetype': ['data', 'ref', 'object']} +\ ], +\ 'pre': [ +\ ['a', 'br', 'span', 'bdo', 'tt', 'i', 'b', 'u', 's', 'strike', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'xml:space': ['preserve'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'q': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'cite': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 's': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'samp': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'script': [ +\ [''], +\ { 'id': [], 'src': [], 'charset': [], 'xml:space': ['preserve'], 'type': ['text/javascript'], 'defer': ['BOOL'], 'language': []} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'ondblclick': [], 'onkeydown': [], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'disabled': ['BOOL'], 'dir': ['ltr', 'rtl'], 'size': [], 'onblur': [], 'onfocus': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'span': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'strike': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'strong': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'style': [ +\ [''], +\ { 'media': [], 'id': [], 'lang': [], 'xml:space': ['preserve'], 'title': [], 'type': ['text/css'], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'sub': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'sup': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody', 'tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'summary': [], 'bgcolor': [], 'cellspacing': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'border': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'td': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'char': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'ondblclick': [], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onchange': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'name': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'accesskey': [], 'disabled': ['BOOL'], 'rows': [], 'dir': ['ltr', 'rtl'], 'onblur': [], 'onfocus': [], 'onselect': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'th': [ +\ ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'ul', 'ol', 'dl', 'menu', 'dir', 'pre', 'hr', 'blockquote', 'address', 'center', 'noframes', 'isindex', 'fieldset', 'table', 'form', 'a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'noscript', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'axis': [], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'lang': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'width': [], 'headers': [], 'nowrap': ['BOOL'], 'dir': ['ltr', 'rtl'], 'rowspan': ['1'], 'colspan': ['1'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'height': [], 'char': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'title': [ +\ [''], +\ { 'id': [], 'lang': [], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'lang': [], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'bgcolor': [], 'charoff': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': []} +\ ], +\ 'tt': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'u': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'compact': ['BOOL'], 'onmouseover': [], 'lang': [], 'onkeypress': [], 'onmousedown': [], 'type': ['disc', 'square', 'circle'], 'class': [], 'title': [], 'onclick': [], 'dir': ['ltr', 'rtl'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': []} +\ ], +\ 'var': [ +\ ['a', 'br', 'span', 'bdo', 'object', 'applet', 'img', 'map', 'iframe', 'tt', 'i', 'b', 'u', 's', 'strike', 'big', 'small', 'font', 'basefont', 'em', 'strong', 'dfn', 'code', 'q', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'sub', 'sup', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script'], +\ { 'ondblclick': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': [], 'dir': ['ltr', 'rtl'], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xhtml11.vim b/git/usr/share/vim/vim92/autoload/xml/xhtml11.vim new file mode 100644 index 0000000000000000000000000000000000000000..ef79fd77140e5df647d0bc0786b117f1f8ff53c1 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xhtml11.vim @@ -0,0 +1,434 @@ +let g:xmldata_xhtml11 = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', 'perp', 'phi', 'pi', 'piv', 'plusmn', 'pound', 'prime', 'prod', 'prop', 'psi', 'quot', 'rArr', 'radic', 'rang', 'raquo', 'rarr', 'rceil', 'rdquo', 'real', 'reg', 'rfloor', 'rho', 'rlm', 'rsaquo', 'rsquo', 'sbquo', 'scaron', 'sdot', 'sect', 'shy', 'sigma', 'sigmaf', 'sim', 'spades', 'sub', 'sube', 'sum', 'sup', 'sup1', 'sup2', 'sup3', 'supe', 'szlig', 'tau', 'there4', 'theta', 'thetasym', 'thinsp', 'thorn', 'tilde', 'times', 'trade', 'uArr', 'uacute', 'uarr', 'ucirc', 'ugrave', 'uml', 'upsih', 'upsilon', 'uuml', 'weierp', 'xi', 'yacute', 'yen', 'yuml', 'zeta', 'zwj', 'zwnj'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'coords': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'abbr': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'onclick': [], 'class': [], 'title': []} +\ ], +\ 'acronym': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'address': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'area': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'coords': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'nohref': ['BOOL'], 'onkeyup': [], 'href': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'alt': [], 'tabindex': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'shape': ['rect', 'circle', 'poly', 'default']} +\ ], +\ 'b': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'base': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'href': []} +\ ], +\ 'bdo': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'id': [], 'style': [], 'xml:lang': [], 'class': [], 'title': []} +\ ], +\ 'big': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'blockquote': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'body': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'br': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'id': [], 'style': [], 'class': [], 'title': []} +\ ], +\ 'button': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'ins', 'del', 'script', 'noscript', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'img', 'map', 'object'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'value': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': ['submit', 'button', 'submit', 'reset']} +\ ], +\ 'caption': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'cite': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'code': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'col': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'colgroup': [ +\ ['col'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'span': ['1'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dd': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'del': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'dfn': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'div': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'dt': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'em': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'fieldset': [ +\ ['legend', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'form': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'ins', 'del', 'script', 'noscript', 'fieldset'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'enctype': ['application/x-www-form-urlencoded'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'method': ['get', 'post'], 'onmouseover': [], 'accept': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'accept-charset': [], 'onkeypress': [], 'onmousedown': [], 'action': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'h1': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h2': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h3': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h4': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h5': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'h6': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'head': [ +\ ['script', 'style', 'meta', 'link', 'object', 'title', 'script', 'style', 'meta', 'link', 'object', 'base', 'script', 'style', 'meta', 'link', 'object', 'base', 'script', 'style', 'meta', 'link', 'object', 'title', 'script', 'style', 'meta', 'link', 'object'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'profile': [''], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'hr': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'html': [ +\ ['head', 'body'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'version': ['-//W3C//DTD XHTML 1.1//EN'], 'xml:lang': []} +\ ], +\ 'i': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'img': [ +\ [], +\ { 'ismap': ['BOOL']} +\ ], +\ 'input': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onkeyup': [], 'onmouseup': [], 'id': [], 'maxlength': [], 'onmouseover': [], 'alt': [], 'tabindex': [], 'accept': [], 'value': [], 'src': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'xml:lang': [], 'checked': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'type': ['text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'ins': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'datetime': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'kbd': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'label': [ +\ ['input', 'select', 'textarea', 'button', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'bdo', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'a', 'img', 'map', 'object', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'for': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'legend': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'li': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'link': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'rel': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'href': [], 'media': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'charset': [], 'xml:lang': [], 'hreflang': [], 'onkeypress': [], 'onmousedown': [], 'rev': [], 'class': [], 'title': [], 'onclick': [], 'type': []} +\ ], +\ 'map': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'ins', 'del', 'script', 'noscript', 'area'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'meta': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'http-equiv': [], 'content': [], 'dir': ['ltr', 'rtl'], 'name': [], 'scheme': [], 'xml:lang': []} +\ ], +\ 'noscript': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'object': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript', 'param'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'width': [], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'archive': [], 'standby': [], 'tabindex': [], 'classid': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'name': [], 'data': [], 'xml:lang': [], 'height': [], 'codetype': [], 'declare': ['BOOL'], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'type': [], 'codebase': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'optgroup': [ +\ ['option'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': []} +\ ], +\ 'option': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'value': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'label': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'param': [ +\ [], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'id': [], 'value': [], 'name': [], 'valuetype': ['data', 'ref', 'object'], 'type': []} +\ ], +\ 'pre': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'bdo', 'a', 'script', 'map'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:space': ['preserve'], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'q': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'cite': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'rb': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'rbc': [ +\ ['rb'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'rp': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'rt': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'rtc': [ +\ ['rt'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'ruby': [ +\ ['rb', 'rt', 'rp', 'rt', 'rp', 'rbc', 'rtc'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'samp': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'script': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'defer': ['BOOL'], 'src': [], 'charset': [], 'xml:space': ['preserve'], 'type': ['text/javascript']} +\ ], +\ 'select': [ +\ ['optgroup', 'option'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'disabled': ['BOOL'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'size': [], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'span': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'strong': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'style': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'media': [], 'xml:lang': [], 'xml:space': ['preserve'], 'title': [], 'type': ['text/css']} +\ ], +\ 'sub': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'sup': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'table': [ +\ ['caption', 'col', 'colgroup', 'thead', 'tfoot', 'tbody', 'tr'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'width': [], 'ondblclick': [], 'frame': ['void', 'above', 'below', 'hsides', 'lhs', 'rhs', 'vsides', 'box', 'border'], 'rules': ['none', 'groups', 'rows', 'cols', 'all'], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'summary': [], 'onmouseup': [], 'cellspacing': [], 'id': [], 'onmouseover': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'border': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': [], 'cellpadding': []} +\ ], +\ 'tbody': [ +\ ['tr'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'td': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'headers': [], 'ondblclick': [], 'axis': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'rowspan': ['1'], 'colspan': ['1'], 'onmouseup': [], 'id': [], 'charoff': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'textarea': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'accesskey': [], 'disabled': ['BOOL'], 'ondblclick': [], 'rows': [], 'dir': ['ltr', 'rtl'], 'cols': [], 'onkeydown': [], 'readonly': ['BOOL'], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'tabindex': [], 'name': [], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'tfoot': [ +\ ['tr'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'th': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'dl', 'p', 'div', 'pre', 'blockquote', 'address', 'hr', 'table', 'form', 'fieldset', 'br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'headers': [], 'ondblclick': [], 'axis': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'abbr': [], 'onkeyup': [], 'rowspan': ['1'], 'colspan': ['1'], 'onmouseup': [], 'id': [], 'charoff': [], 'scope': ['row', 'col', 'rowgroup', 'colgroup'], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'onkeypress': [], 'onmousedown': [], 'char': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'thead': [ +\ ['tr'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'title': [ +\ [''], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'dir': ['ltr', 'rtl'], 'xml:lang': []} +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'charoff': [], 'onmouseover': [], 'align': ['left', 'center', 'right', 'justify', 'char'], 'valign': ['top', 'middle', 'bottom', 'baseline'], 'onmouseout': [], 'onmousemove': [], 'style': [], 'xml:lang': [], 'char': [], 'onkeypress': [], 'onmousedown': [], 'class': [], 'title': [], 'onclick': []} +\ ], +\ 'tt': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'ul': [ +\ ['li'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'var': [ +\ ['br', 'span', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'tt', 'i', 'b', 'big', 'small', 'sub', 'sup', 'bdo', 'a', 'img', 'map', 'object', 'input', 'select', 'textarea', 'label', 'button', 'ruby', 'ins', 'del', 'script', 'noscript'], +\ { 'xmlns': ['http://www.w3.org/1999/xhtml'], 'ondblclick': [], 'dir': ['ltr', 'rtl'], 'onkeydown': [], 'onkeyup': [], 'onmouseup': [], 'id': [], 'onmouseover': [], 'style': [], 'onmousemove': [], 'onmouseout': [], 'xml:lang': [], 'onmousedown': [], 'onkeypress': [], 'onclick': [], 'title': [], 'class': []} +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', ''], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'br': ['/>', ''], +\ 'col': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xsd.vim b/git/usr/share/vim/vim92/autoload/xml/xsd.vim new file mode 100644 index 0000000000000000000000000000000000000000..8a673ea21e1c503fac60bafb725e826f3f64ddbb --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xsd.vim @@ -0,0 +1,130 @@ +" Author: Thomas Barthel +" Last change: 2007 May 8 +let g:xmldata_xsd = { + \ 'schema': [ + \ [ 'include', 'import', 'redefine', 'annotation', 'simpleType', 'complexType', 'element', 'attribute', 'attributeGroup', 'group', 'notation', 'annotation'], + \ { 'targetNamespace' : [], 'version' : [], 'xmlns' : [], 'finalDefault' : [], 'blockDefault' : [], 'id' : [], 'elementFormDefault' : [], 'attributeFormDefault' : [], 'xml:lang' : [] }], + \ 'redefine' : [ + \ ['annotation', 'simpleType', 'complexType', 'attributeGroup', 'group'], + \ {'schemaLocation' : [], 'id' : []} ], + \ 'include' : [ + \ ['annotation'], + \ {'namespace' : [], 'id' : []} ], + \ 'import' : [ + \ ['annotation'], + \ {'namespace' : [], 'schemaLocation' : [], 'id' : []} ], + \ 'complexType' : [ + \ ['annotation', 'simpleContent', 'complexContent', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'name' : [], 'id' : [], 'abstract' : [], 'final' : [], 'block' : [], 'mixed' : []} ], + \ 'complexContent' : [ + \ ['annotation', 'restriction', 'extension'], + \ {'mixed' : [], 'id' : [] } ], + \ 'simpleType' : [ + \ ['annotation', 'restriction', 'list', 'union'], + \ {'name' : [], 'final' : [], 'id' : []} ], + \ 'simpleContent' : [ + \ ['annotation', 'restriction', 'extension'], + \ {'id' : []} ], + \ 'element' : [ + \ ['annotation', 'complexType', 'simpleType', 'unique', 'key', 'keyref'], + \ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'minOccurs' : [], 'maxOccurs' : [], 'nillable' : [], 'substitutionGroup' : [], 'abstract' : [], 'final' : [], 'block' : [], 'default' : [], 'fixed' : [], 'form' : []} ], + \ 'attribute' : [ + \ ['annotation', 'simpleType'], + \ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'use' : [], 'default' : [], 'fixed' : [], 'form' : []} ], + \ 'group' : [ + \ ['annotation', 'all', 'choice', 'sequence'], + \ {'name' : [], 'ref' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'choice' : [ + \ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'sequence' : [ + \ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'all' : [ + \ ['annotation', 'element'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'any' : [ + \ ['annotation'], + \ {'namespace' : [], 'processContents' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'unique' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'id' : []} ], + \ 'key' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'id' : []} ], + \ 'keyref' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'refer' : [], 'id' : []} ], + \ 'selector' : [ + \ ['annotation'], + \ {'xpath' : [], 'id' : []} ], + \ 'field' : [ + \ ['annotation'], + \ {'xpath' : [], 'id' : []} ], + \ 'restriction' : [ + \ ['annotation', 'simpleType', 'minExclusive', 'maxExclusive', 'minInclusive', 'maxInclusive', 'totalDigits', 'fractionDigits', 'length', 'minLength', 'maxLength', 'enumeration', 'whiteSpace', 'pattern'], + \ {'base' : [], 'id' : []} ], + \ 'minExclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxExclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'minInclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxInclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'totalDigits' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'fractionDigits' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'length' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'minLength' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxLength' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'enumeration' : [ + \ ['annotation'], + \ {'value' : [], 'id' : []}], + \ 'whiteSpace' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'pattern' : [ + \ ['annotation'], + \ {'value' : [], 'id' : []}], + \ 'extension' : [ + \ ['annotation', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'base' : [], 'id' : []} ], + \ 'attributeGroup' : [ + \ ['annotation', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'name' : [], 'id' : [], 'ref' : []} ], + \ 'anyAttribute' : [ + \ ['annotation'], + \ {'namespace' : [], 'processContents' : [], 'id' : []} ], + \ 'list' : [ + \ ['annotation', 'simpleType'], + \ {'itemType' : [], 'id' : []} ], + \ 'union' : [ + \ ['annotation', 'simpleType'], + \ {'id' : [], 'memberTypes' : []} ], + \ 'notation' : [ + \ ['annotation'], + \ {'name' : [], 'id' : [], 'public' : [], 'system' : []} ], + \ 'annotation' : [ + \ ['appinfo', 'documentation'], + \ {} ], + \ 'appinfo' : [ + \ [], + \ {'source' : [], 'id' : []} ], + \ 'documentation' : [ + \ [], + \ {'source' : [], 'id' : [], 'xml' : []} ] + \ } diff --git a/git/usr/share/vim/vim92/autoload/xml/xsl.vim b/git/usr/share/vim/vim92/autoload/xml/xsl.vim new file mode 100644 index 0000000000000000000000000000000000000000..b8aa29daa022f0cd4409c1e439794e14e8d11394 --- /dev/null +++ b/git/usr/share/vim/vim92/autoload/xml/xsl.vim @@ -0,0 +1,38 @@ +" Author: Mikolaj Machowski, Thomas Bartel +" Last change: 2007 May 8 +let g:xmldata_xsl = { + \ 'apply-imports' : [[], {}], + \ 'apply-templates' : [['sort', 'with-param'], {'select' : [], 'mode' : []}], + \ 'attribute' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'name' : [], 'namespace' : []}], + \ 'attribute-set' : [['attribute'], {'name' : [], 'use-attribute-sets' : []}], + \ 'call-template' : [['with-param'], {'name' : []}], + \ 'choose' : [['when', 'otherwise'], {}], + \ 'comment' : [[], {}], + \ 'copy' : [[], {'use-attribute-sets' : []}], + \ 'copy-of' : [[], {'select' : []}], + \ 'decimal-format' : [[], {'name' : [], 'decimal-separator' : [], 'grouping-separator' : [], 'infinity' : [], 'minus-sign' : [], 'NaN' : [], 'percent' : [], 'per-mille' : [], 'zero-digit' : [], 'digit' : [], 'pattern-separator' : []}], + \ 'element' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'name' : [], 'namespace' : [], 'use-attribute-sets' : []}], + \ 'fallback' : [[], {}], + \ 'for-each' : [['sort'], {'select' : []}], + \ 'if' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'test' : []}], + \ 'import' : [[], {'href' : []}], + \ 'include' : [[], {'href' : []}], + \ 'key' : [[], {'name' : [], 'match' : [], 'use' : []}], + \ 'message' : [[], {'terminate' : ['yes', 'no']}], + \ 'namespace-alias' : [[], {'stylesheet-prefix' : ['#default'], 'result-prefix' : ['#default']}], + \ 'number' : [[], {'level' : ['single', 'multiple', 'any'], 'count' : [], 'from' : [], 'value' : [], 'format' : [], 'lang' : [], 'letter-value' : ['alphabetic', 'traditional'], 'grouping-separator' : [], 'grouping-size' : []}], + \ 'otherwise' : [[], {}], + \ 'output' : [[], {'method' : ['xml', 'html', 'text'], 'version' : [], 'encoding' : [], 'omit-xml-declaration' : ['yes', 'no'], 'standalone' : ['yes', 'no'], 'doctype-public' : [], 'doctype-system' : [], 'cdata-section-elements' : [], 'indent' : ['yes', 'no'], 'media-type' : []}], + \ 'param' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'name' : [], 'select' : []}], + \ 'preserve-space' : [[], {'elements' : []}], + \ 'processing-instructionruction' : [[], {'name' : []}], + \ 'sort' : [[], {'select' : [], 'lang' : [], 'data-type' : ['text', 'number'], 'order' : ['ascending', 'descending'], 'case-order' : ['upper-first', 'lower-first']}], + \ 'strip-space' : [[], {'elements' : []}], + \ 'stylesheet' : [['import', 'attribute-set', 'decimal-format', 'include', 'key', 'namespace-alias', 'output', 'param', 'preserve-space', 'strip-space', 'template'], {'id' : [], 'extension-element-prefixes' : [], 'version' : []}], + \ 'template' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'match' : [], 'name' : [], 'priority' : [], 'mode' : []}], + \ 'text' : [[], {'disable-output-escaping' : ['yes', 'no']}], + \ 'transform' : [['import', 'attribute-set', 'decimal-format', 'include', 'key', 'namespace-alias', 'output', 'param', 'preserve-space', 'strip-space', 'template'], {'id' : [], 'extension-element-prefixes' : [], 'exclude-result-prefixes' : [], 'version' : []}], + \ 'value-of' : [[], {'select' : [], 'disable-output-escaping' : ['yes', 'no']}], + \ 'variable' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'name' : [], 'select' : []}], + \ 'when' : [[], {'test' : []}], + \ 'with-param' : [['apply-imports', 'apply-templates', 'attribute', 'call-template', 'choose', 'comment', 'copy', 'copy-of', 'element', 'fallback', 'for-each', 'if', 'message', 'number', 'processing-instruction', 'text', 'value-of', 'variable'], {'name' : [], 'select' : []}]} diff --git a/git/usr/share/vim/vim92/colors/lists/csscolors.vim b/git/usr/share/vim/vim92/colors/lists/csscolors.vim new file mode 100644 index 0000000000000000000000000000000000000000..986333d7793bb333897696117d12d2d1f5691b19 --- /dev/null +++ b/git/usr/share/vim/vim92/colors/lists/csscolors.vim @@ -0,0 +1,176 @@ +" Maintainer: Drew Vogel +" Last Change: 2021 Jul 25 + +" Similar in spirit to rgb.txt, this plugin establishes a human-friendly name +" for every color listed in the CSS standard: +" +" Note: the color names should be in lower case, because Vim will lookup the +" a color by its lower case name. +" +" https://www.w3.org/TR/css-color-3/ + +let s:keepcpo= &cpo +set cpo&vim + +call extend(v:colornames, { + \ 'css_black': '#000000', + \ 'css_silver': '#c0c0c0', + \ 'css_gray': '#808080', + \ 'css_white': '#FFFFFF', + \ 'css_maroon': '#800000', + \ 'css_red': '#FF0000', + \ 'css_purple': '#800080', + \ 'css_fuchsia': '#FF00FF', + \ 'css_green': '#008000', + \ 'css_lime': '#00FF00', + \ 'css_olive': '#808000', + \ 'css_yellow': '#FFFF00', + \ 'css_navy': '#000080', + \ 'css_blue': '#0000FF', + \ 'css_teal': '#008080', + \ 'css_aqua': '#00FFFF', + \ 'css_aliceblue': '#f0f8ff', + \ 'css_antiquewhite': '#faebd7', + \ 'css_aquamarine': '#7fffd4', + \ 'css_azure': '#f0ffff', + \ 'css_beige': '#f5f5dc', + \ 'css_bisque': '#ffe4c4', + \ 'css_blanchedalmond': '#ffebcd', + \ 'css_blueviolet': '#8a2be2', + \ 'css_brown': '#a52a2a', + \ 'css_burlywood': '#deb887', + \ 'css_cadetblue': '#5f9ea0', + \ 'css_chartreuse': '#7fff00', + \ 'css_chocolate': '#d2691e', + \ 'css_coral': '#ff7f50', + \ 'css_cornflowerblue': '#6495ed', + \ 'css_cornsilk': '#fff8dc', + \ 'css_crimson': '#dc143c', + \ 'css_cyan': '#00ffff', + \ 'css_darkblue': '#00008b', + \ 'css_darkcyan': '#008b8b', + \ 'css_darkgoldenrod': '#b8860b', + \ 'css_darkgray': '#a9a9a9', + \ 'css_darkgreen': '#006400', + \ 'css_darkgrey': '#a9a9a9', + \ 'css_darkkhaki': '#bdb76b', + \ 'css_darkmagenta': '#8b008b', + \ 'css_darkolivegreen': '#556b2f', + \ 'css_darkorange': '#ff8c00', + \ 'css_darkorchid': '#9932cc', + \ 'css_darkred': '#8b0000', + \ 'css_darksalmon': '#e9967a', + \ 'css_darkseagreen': '#8fbc8f', + \ 'css_darkslateblue': '#483d8b', + \ 'css_darkslategray': '#2f4f4f', + \ 'css_darkslategrey': '#2f4f4f', + \ 'css_darkturquoise': '#00ced1', + \ 'css_darkviolet': '#9400d3', + \ 'css_deeppink': '#ff1493', + \ 'css_deepskyblue': '#00bfff', + \ 'css_dimgray': '#696969', + \ 'css_dimgrey': '#696969', + \ 'css_dodgerblue': '#1e90ff', + \ 'css_firebrick': '#b22222', + \ 'css_floralwhite': '#fffaf0', + \ 'css_forestgreen': '#228b22', + \ 'css_gainsboro': '#dcdcdc', + \ 'css_ghostwhite': '#f8f8ff', + \ 'css_gold': '#ffd700', + \ 'css_goldenrod': '#daa520', + \ 'css_greenyellow': '#adff2f', + \ 'css_grey': '#808080', + \ 'css_honeydew': '#f0fff0', + \ 'css_hotpink': '#ff69b4', + \ 'css_indianred': '#cd5c5c', + \ 'css_indigo': '#4b0082', + \ 'css_ivory': '#fffff0', + \ 'css_khaki': '#f0e68c', + \ 'css_lavender': '#e6e6fa', + \ 'css_lavenderblush': '#fff0f5', + \ 'css_lawngreen': '#7cfc00', + \ 'css_lemonchiffon': '#fffacd', + \ 'css_lightblue': '#add8e6', + \ 'css_lightcoral': '#f08080', + \ 'css_lightcyan': '#e0ffff', + \ 'css_lightgoldenrodyellow': '#fafad2', + \ 'css_lightgray': '#d3d3d3', + \ 'css_lightgreen': '#90ee90', + \ 'css_lightgrey': '#d3d3d3', + \ 'css_lightpink': '#ffb6c1', + \ 'css_lightsalmon': '#ffa07a', + \ 'css_lightseagreen': '#20b2aa', + \ 'css_lightskyblue': '#87cefa', + \ 'css_lightslategray': '#778899', + \ 'css_lightslategrey': '#778899', + \ 'css_lightsteelblue': '#b0c4de', + \ 'css_lightyellow': '#ffffe0', + \ 'css_limegreen': '#32cd32', + \ 'css_linen': '#faf0e6', + \ 'css_magenta': '#ff00ff', + \ 'css_mediumaquamarine': '#66cdaa', + \ 'css_mediumblue': '#0000cd', + \ 'css_mediumorchid': '#ba55d3', + \ 'css_mediumpurple': '#9370db', + \ 'css_mediumseagreen': '#3cb371', + \ 'css_mediumslateblue': '#7b68ee', + \ 'css_mediumspringgreen': '#00fa9a', + \ 'css_mediumturquoise': '#48d1cc', + \ 'css_mediumvioletred': '#c71585', + \ 'css_midnightblue': '#191970', + \ 'css_mintcream': '#f5fffa', + \ 'css_mistyrose': '#ffe4e1', + \ 'css_moccasin': '#ffe4b5', + \ 'css_navajowhite': '#ffdead', + \ 'css_oldlace': '#fdf5e6', + \ 'css_olivedrab': '#6b8e23', + \ 'css_orange': '#ffa500', + \ 'css_orangered': '#ff4500', + \ 'css_orchid': '#da70d6', + \ 'css_palegoldenrod': '#eee8aa', + \ 'css_palegreen': '#98fb98', + \ 'css_paleturquoise': '#afeeee', + \ 'css_palevioletred': '#db7093', + \ 'css_papayawhip': '#ffefd5', + \ 'css_peachpuff': '#ffdab9', + \ 'css_peru': '#cd853f', + \ 'css_pink': '#ffc0cb', + \ 'css_plum': '#dda0dd', + \ 'css_powderblue': '#b0e0e6', + \ 'css_rosybrown': '#bc8f8f', + \ 'css_royalblue': '#4169e1', + \ 'css_saddlebrown': '#8b4513', + \ 'css_salmon': '#fa8072', + \ 'css_sandybrown': '#f4a460', + \ 'css_seagreen': '#2e8b57', + \ 'css_seashell': '#fff5ee', + \ 'css_sienna': '#a0522d', + \ 'css_skyblue': '#87ceeb', + \ 'css_slateblue': '#6a5acd', + \ 'css_slategray': '#708090', + \ 'css_slategrey': '#708090', + \ 'css_snow': '#fffafa', + \ 'css_springgreen': '#00ff7f', + \ 'css_steelblue': '#4682b4', + \ 'css_tan': '#d2b48c', + \ 'css_thistle': '#d8bfd8', + \ 'css_tomato': '#ff6347', + \ 'css_turquoise': '#40e0d0', + \ 'css_violet': '#ee82ee', + \ 'css_wheat': '#f5deb3', + \ 'css_whitesmoke': '#f5f5f5', + \ 'css_yellowgreen': '#9acd32', + \ }, 'keep') + +" all keys should be in lower case, convert keys that are not yet +for [key, val] in items(filter(copy(v:colornames), { key -> key =~ '\u'})) + call remove(v:colornames, key) + if !has_key(v:colornames, tolower(key)) + call extend(v:colornames, {tolower(key): val}, 'keep') + endif +endfor + +let &cpo= s:keepcpo +unlet s:keepcpo + +"vim: sw=4 diff --git a/git/usr/share/vim/vim92/colors/lists/default.vim b/git/usr/share/vim/vim92/colors/lists/default.vim new file mode 100644 index 0000000000000000000000000000000000000000..c8df0c916721e6f1f69c443f8f3fd5c785e15e57 --- /dev/null +++ b/git/usr/share/vim/vim92/colors/lists/default.vim @@ -0,0 +1,841 @@ +" Maintainer: Drew Vogel +" Last Change: 2024 Mar 20 +" +" Replaced rgb.txt as the source of de facto standard color names. This is +" sourced each time the colorscheme command is run. It is also sourced each +" time the highlight command fails to recognize a gui color. You can override +" these colors by introducing a new colors/lists/default.vim file earlier in +" the runtimepath. +" Note: the color names should be in lower case, because Vim will lookup the +" a color by its lower case name. + +" make sure line continuation works +let s:keepcpo = &cpo +set cpo&vim + +function! s:Cleanup() + let &cpo = s:keepcpo + unlet s:keepcpo +endfunction + +function! s:AddColors(cnames) abort + call extend(v:colornames, a:cnames, 'keep') + + " all keys should be in lower case, convert keys that are not yet + let len_after = len(v:colornames) + if len_after == len(a:cnames) + " after extend(): v:colornames has all the keys of default_cnames + " checked: v:colornames also has no extra keys + " => keys are the same, and keys(default_cnames) are known to be ok + return + endif + + for [key, val] in items(filter(copy(v:colornames), { key -> key =~ '\u'})) + call remove(v:colornames, key) + if !has_key(v:colornames, tolower(key)) + call extend(v:colornames, {tolower(key): val}, 'keep') + endif + endfor +endfunction + +if exists('s:default_cnames') + call s:AddColors(s:default_cnames) + call s:Cleanup() + finish +endif + +let s:default_cnames = { + \ 'snow': '#fffafa', + \ 'ghost white': '#f8f8ff', + \ 'ghostwhite': '#f8f8ff', + \ 'white smoke': '#f5f5f5', + \ 'whitesmoke': '#f5f5f5', + \ 'gainsboro': '#dcdcdc', + \ 'floral white': '#fffaf0', + \ 'floralwhite': '#fffaf0', + \ 'old lace': '#fdf5e6', + \ 'oldlace': '#fdf5e6', + \ 'linen': '#faf0e6', + \ 'antique white': '#faebd7', + \ 'antiquewhite': '#faebd7', + \ 'papaya whip': '#ffefd5', + \ 'papayawhip': '#ffefd5', + \ 'blanched almond': '#ffebcd', + \ 'blanchedalmond': '#ffebcd', + \ 'bisque': '#ffe4c4', + \ 'peach puff': '#ffdab9', + \ 'peachpuff': '#ffdab9', + \ 'navajo white': '#ffdead', + \ 'navajowhite': '#ffdead', + \ 'moccasin': '#ffe4b5', + \ 'cornsilk': '#fff8dc', + \ 'ivory': '#fffff0', + \ 'lemon chiffon': '#fffacd', + \ 'lemonchiffon': '#fffacd', + \ 'seashell': '#fff5ee', + \ 'honeydew': '#f0fff0', + \ 'mint cream': '#f5fffa', + \ 'mintcream': '#f5fffa', + \ 'azure': '#f0ffff', + \ 'alice blue': '#f0f8ff', + \ 'aliceblue': '#f0f8ff', + \ 'lavender': '#e6e6fa', + \ 'lavender blush': '#fff0f5', + \ 'lavenderblush': '#fff0f5', + \ 'misty rose': '#ffe4e1', + \ 'mistyrose': '#ffe4e1', + \ 'white': '#ffffff', + \ 'black': '#000000', + \ 'dark slate gray': '#2f4f4f', + \ 'darkslategray': '#2f4f4f', + \ 'dark slate grey': '#2f4f4f', + \ 'darkslategrey': '#2f4f4f', + \ 'dim gray': '#696969', + \ 'dimgray': '#696969', + \ 'dim grey': '#696969', + \ 'dimgrey': '#696969', + \ 'slate gray': '#708090', + \ 'slategray': '#708090', + \ 'slate grey': '#708090', + \ 'slategrey': '#708090', + \ 'light slate gray': '#778899', + \ 'lightslategray': '#778899', + \ 'light slate grey': '#778899', + \ 'lightslategrey': '#778899', + \ 'gray': '#bebebe', + \ 'grey': '#bebebe', + \ 'x11 gray': '#bebebe', + \ 'x11gray': '#bebebe', + \ 'x11 grey': '#bebebe', + \ 'x11grey': '#bebebe', + \ 'web gray': '#808080', + \ 'webgray': '#808080', + \ 'web grey': '#808080', + \ 'webgrey': '#808080', + \ 'light grey': '#d3d3d3', + \ 'lightgrey': '#d3d3d3', + \ 'light gray': '#d3d3d3', + \ 'lightgray': '#d3d3d3', + \ 'midnight blue': '#191970', + \ 'midnightblue': '#191970', + \ 'navy': '#000080', + \ 'navy blue': '#000080', + \ 'navyblue': '#000080', + \ 'cornflower blue': '#6495ed', + \ 'cornflowerblue': '#6495ed', + \ 'dark slate blue': '#483d8b', + \ 'darkslateblue': '#483d8b', + \ 'slate blue': '#6a5acd', + \ 'slateblue': '#6a5acd', + \ 'medium slate blue': '#7b68ee', + \ 'mediumslateblue': '#7b68ee', + \ 'light slate blue': '#8470ff', + \ 'lightslateblue': '#8470ff', + \ 'medium blue': '#0000cd', + \ 'mediumblue': '#0000cd', + \ 'royal blue': '#4169e1', + \ 'royalblue': '#4169e1', + \ 'blue': '#0000ff', + \ 'dodger blue': '#1e90ff', + \ 'dodgerblue': '#1e90ff', + \ 'deep sky blue': '#00bfff', + \ 'deepskyblue': '#00bfff', + \ 'sky blue': '#87ceeb', + \ 'skyblue': '#87ceeb', + \ 'light sky blue': '#87cefa', + \ 'lightskyblue': '#87cefa', + \ 'steel blue': '#4682b4', + \ 'steelblue': '#4682b4', + \ 'light steel blue': '#b0c4de', + \ 'lightsteelblue': '#b0c4de', + \ 'light blue': '#add8e6', + \ 'lightblue': '#add8e6', + \ 'powder blue': '#b0e0e6', + \ 'powderblue': '#b0e0e6', + \ 'pale turquoise': '#afeeee', + \ 'paleturquoise': '#afeeee', + \ 'dark turquoise': '#00ced1', + \ 'darkturquoise': '#00ced1', + \ 'medium turquoise': '#48d1cc', + \ 'mediumturquoise': '#48d1cc', + \ 'turquoise': '#40e0d0', + \ 'cyan': '#00ffff', + \ 'aqua': '#00ffff', + \ 'light cyan': '#e0ffff', + \ 'lightcyan': '#e0ffff', + \ 'cadet blue': '#5f9ea0', + \ 'cadetblue': '#5f9ea0', + \ 'medium aquamarine': '#66cdaa', + \ 'mediumaquamarine': '#66cdaa', + \ 'aquamarine': '#7fffd4', + \ 'dark green': '#006400', + \ 'darkgreen': '#006400', + \ 'dark olive green': '#556b2f', + \ 'darkolivegreen': '#556b2f', + \ 'dark sea green': '#8fbc8f', + \ 'darkseagreen': '#8fbc8f', + \ 'sea green': '#2e8b57', + \ 'seagreen': '#2e8b57', + \ 'medium sea green': '#3cb371', + \ 'mediumseagreen': '#3cb371', + \ 'light sea green': '#20b2aa', + \ 'lightseagreen': '#20b2aa', + \ 'pale green': '#98fb98', + \ 'palegreen': '#98fb98', + \ 'spring green': '#00ff7f', + \ 'springgreen': '#00ff7f', + \ 'lawn green': '#7cfc00', + \ 'lawngreen': '#7cfc00', + \ 'green': '#00ff00', + \ 'lime': '#00ff00', + \ 'x11 green': '#00ff00', + \ 'x11green': '#00ff00', + \ 'web green': '#008000', + \ 'webgreen': '#008000', + \ 'chartreuse': '#7fff00', + \ 'medium spring green': '#00fa9a', + \ 'mediumspringgreen': '#00fa9a', + \ 'green yellow': '#adff2f', + \ 'greenyellow': '#adff2f', + \ 'lime green': '#32cd32', + \ 'limegreen': '#32cd32', + \ 'yellow green': '#9acd32', + \ 'yellowgreen': '#9acd32', + \ 'forest green': '#228b22', + \ 'forestgreen': '#228b22', + \ 'olive drab': '#6b8e23', + \ 'olivedrab': '#6b8e23', + \ 'dark khaki': '#bdb76b', + \ 'darkkhaki': '#bdb76b', + \ 'khaki': '#f0e68c', + \ 'pale goldenrod': '#eee8aa', + \ 'palegoldenrod': '#eee8aa', + \ 'light goldenrod yellow': '#fafad2', + \ 'lightgoldenrodyellow': '#fafad2', + \ 'light yellow': '#ffffe0', + \ 'lightyellow': '#ffffe0', + \ 'yellow': '#ffff00', + \ 'gold': '#ffd700', + \ 'light goldenrod': '#eedd82', + \ 'lightgoldenrod': '#eedd82', + \ 'goldenrod': '#daa520', + \ 'dark goldenrod': '#b8860b', + \ 'darkgoldenrod': '#b8860b', + \ 'rosy brown': '#bc8f8f', + \ 'rosybrown': '#bc8f8f', + \ 'indian red': '#cd5c5c', + \ 'indianred': '#cd5c5c', + \ 'saddle brown': '#8b4513', + \ 'saddlebrown': '#8b4513', + \ 'sienna': '#a0522d', + \ 'peru': '#cd853f', + \ 'burlywood': '#deb887', + \ 'beige': '#f5f5dc', + \ 'wheat': '#f5deb3', + \ 'sandy brown': '#f4a460', + \ 'sandybrown': '#f4a460', + \ 'tan': '#d2b48c', + \ 'chocolate': '#d2691e', + \ 'firebrick': '#b22222', + \ 'brown': '#a52a2a', + \ 'dark salmon': '#e9967a', + \ 'darksalmon': '#e9967a', + \ 'salmon': '#fa8072', + \ 'light salmon': '#ffa07a', + \ 'lightsalmon': '#ffa07a', + \ 'orange': '#ffa500', + \ 'dark orange': '#ff8c00', + \ 'darkorange': '#ff8c00', + \ 'coral': '#ff7f50', + \ 'light coral': '#f08080', + \ 'lightcoral': '#f08080', + \ 'tomato': '#ff6347', + \ 'orange red': '#ff4500', + \ 'orangered': '#ff4500', + \ 'red': '#ff0000', + \ 'hot pink': '#ff69b4', + \ 'hotpink': '#ff69b4', + \ 'deep pink': '#ff1493', + \ 'deeppink': '#ff1493', + \ 'pink': '#ffc0cb', + \ 'light pink': '#ffb6c1', + \ 'lightpink': '#ffb6c1', + \ 'pale violet red': '#db7093', + \ 'palevioletred': '#db7093', + \ 'maroon': '#b03060', + \ 'x11 maroon': '#b03060', + \ 'x11maroon': '#b03060', + \ 'web maroon': '#800000', + \ 'webmaroon': '#800000', + \ 'medium violet red': '#c71585', + \ 'mediumvioletred': '#c71585', + \ 'violet red': '#d02090', + \ 'violetred': '#d02090', + \ 'magenta': '#ff00ff', + \ 'fuchsia': '#ff00ff', + \ 'violet': '#ee82ee', + \ 'plum': '#dda0dd', + \ 'orchid': '#da70d6', + \ 'medium orchid': '#ba55d3', + \ 'mediumorchid': '#ba55d3', + \ 'dark orchid': '#9932cc', + \ 'darkorchid': '#9932cc', + \ 'dark violet': '#9400d3', + \ 'darkviolet': '#9400d3', + \ 'blue violet': '#8a2be2', + \ 'blueviolet': '#8a2be2', + \ 'purple': '#a020f0', + \ 'x11 purple': '#a020f0', + \ 'x11purple': '#a020f0', + \ 'web purple': '#800080', + \ 'webpurple': '#800080', + \ 'medium purple': '#9370db', + \ 'mediumpurple': '#9370db', + \ 'thistle': '#d8bfd8', + \ 'snow1': '#fffafa', + \ 'snow2': '#eee9e9', + \ 'snow3': '#cdc9c9', + \ 'snow4': '#8b8989', + \ 'seashell1': '#fff5ee', + \ 'seashell2': '#eee5de', + \ 'seashell3': '#cdc5bf', + \ 'seashell4': '#8b8682', + \ 'antiquewhite1': '#ffefdb', + \ 'antiquewhite2': '#eedfcc', + \ 'antiquewhite3': '#cdc0b0', + \ 'antiquewhite4': '#8b8378', + \ 'bisque1': '#ffe4c4', + \ 'bisque2': '#eed5b7', + \ 'bisque3': '#cdb79e', + \ 'bisque4': '#8b7d6b', + \ 'peachpuff1': '#ffdab9', + \ 'peachpuff2': '#eecbad', + \ 'peachpuff3': '#cdaf95', + \ 'peachpuff4': '#8b7765', + \ 'navajowhite1': '#ffdead', + \ 'navajowhite2': '#eecfa1', + \ 'navajowhite3': '#cdb38b', + \ 'navajowhite4': '#8b795e', + \ 'lemonchiffon1': '#fffacd', + \ 'lemonchiffon2': '#eee9bf', + \ 'lemonchiffon3': '#cdc9a5', + \ 'lemonchiffon4': '#8b8970', + \ 'cornsilk1': '#fff8dc', + \ 'cornsilk2': '#eee8cd', + \ 'cornsilk3': '#cdc8b1', + \ 'cornsilk4': '#8b8878', + \ 'ivory1': '#fffff0', + \ 'ivory2': '#eeeee0', + \ 'ivory3': '#cdcdc1', + \ 'ivory4': '#8b8b83', + \ 'honeydew1': '#f0fff0', + \ 'honeydew2': '#e0eee0', + \ 'honeydew3': '#c1cdc1', + \ 'honeydew4': '#838b83', + \ 'lavenderblush1': '#fff0f5', + \ 'lavenderblush2': '#eee0e5', + \ 'lavenderblush3': '#cdc1c5', + \ 'lavenderblush4': '#8b8386', + \ 'mistyrose1': '#ffe4e1', + \ 'mistyrose2': '#eed5d2', + \ 'mistyrose3': '#cdb7b5', + \ 'mistyrose4': '#8b7d7b', + \ 'azure1': '#f0ffff', + \ 'azure2': '#e0eeee', + \ 'azure3': '#c1cdcd', + \ 'azure4': '#838b8b', + \ 'slateblue1': '#836fff', + \ 'slateblue2': '#7a67ee', + \ 'slateblue3': '#6959cd', + \ 'slateblue4': '#473c8b', + \ 'royalblue1': '#4876ff', + \ 'royalblue2': '#436eee', + \ 'royalblue3': '#3a5fcd', + \ 'royalblue4': '#27408b', + \ 'blue1': '#0000ff', + \ 'blue2': '#0000ee', + \ 'blue3': '#0000cd', + \ 'blue4': '#00008b', + \ 'dodgerblue1': '#1e90ff', + \ 'dodgerblue2': '#1c86ee', + \ 'dodgerblue3': '#1874cd', + \ 'dodgerblue4': '#104e8b', + \ 'steelblue1': '#63b8ff', + \ 'steelblue2': '#5cacee', + \ 'steelblue3': '#4f94cd', + \ 'steelblue4': '#36648b', + \ 'deepskyblue1': '#00bfff', + \ 'deepskyblue2': '#00b2ee', + \ 'deepskyblue3': '#009acd', + \ 'deepskyblue4': '#00688b', + \ 'skyblue1': '#87ceff', + \ 'skyblue2': '#7ec0ee', + \ 'skyblue3': '#6ca6cd', + \ 'skyblue4': '#4a708b', + \ 'lightskyblue1': '#b0e2ff', + \ 'lightskyblue2': '#a4d3ee', + \ 'lightskyblue3': '#8db6cd', + \ 'lightskyblue4': '#607b8b', + \ 'slategray1': '#c6e2ff', + \ 'slategray2': '#b9d3ee', + \ 'slategray3': '#9fb6cd', + \ 'slategray4': '#6c7b8b', + \ 'lightsteelblue1': '#cae1ff', + \ 'lightsteelblue2': '#bcd2ee', + \ 'lightsteelblue3': '#a2b5cd', + \ 'lightsteelblue4': '#6e7b8b', + \ 'lightblue1': '#bfefff', + \ 'lightblue2': '#b2dfee', + \ 'lightblue3': '#9ac0cd', + \ 'lightblue4': '#68838b', + \ 'lightcyan1': '#e0ffff', + \ 'lightcyan2': '#d1eeee', + \ 'lightcyan3': '#b4cdcd', + \ 'lightcyan4': '#7a8b8b', + \ 'paleturquoise1': '#bbffff', + \ 'paleturquoise2': '#aeeeee', + \ 'paleturquoise3': '#96cdcd', + \ 'paleturquoise4': '#668b8b', + \ 'cadetblue1': '#98f5ff', + \ 'cadetblue2': '#8ee5ee', + \ 'cadetblue3': '#7ac5cd', + \ 'cadetblue4': '#53868b', + \ 'turquoise1': '#00f5ff', + \ 'turquoise2': '#00e5ee', + \ 'turquoise3': '#00c5cd', + \ 'turquoise4': '#00868b', + \ 'cyan1': '#00ffff', + \ 'cyan2': '#00eeee', + \ 'cyan3': '#00cdcd', + \ 'cyan4': '#008b8b', + \ 'darkslategray1': '#97ffff', + \ 'darkslategray2': '#8deeee', + \ 'darkslategray3': '#79cdcd', + \ 'darkslategray4': '#528b8b', + \ 'aquamarine1': '#7fffd4', + \ 'aquamarine2': '#76eec6', + \ 'aquamarine3': '#66cdaa', + \ 'aquamarine4': '#458b74', + \ 'darkseagreen1': '#c1ffc1', + \ 'darkseagreen2': '#b4eeb4', + \ 'darkseagreen3': '#9bcd9b', + \ 'darkseagreen4': '#698b69', + \ 'seagreen1': '#54ff9f', + \ 'seagreen2': '#4eee94', + \ 'seagreen3': '#43cd80', + \ 'seagreen4': '#2e8b57', + \ 'palegreen1': '#9aff9a', + \ 'palegreen2': '#90ee90', + \ 'palegreen3': '#7ccd7c', + \ 'palegreen4': '#548b54', + \ 'springgreen1': '#00ff7f', + \ 'springgreen2': '#00ee76', + \ 'springgreen3': '#00cd66', + \ 'springgreen4': '#008b45', + \ 'green1': '#00ff00', + \ 'green2': '#00ee00', + \ 'green3': '#00cd00', + \ 'green4': '#008b00', + \ 'chartreuse1': '#7fff00', + \ 'chartreuse2': '#76ee00', + \ 'chartreuse3': '#66cd00', + \ 'chartreuse4': '#458b00', + \ 'olivedrab1': '#c0ff3e', + \ 'olivedrab2': '#b3ee3a', + \ 'olivedrab3': '#9acd32', + \ 'olivedrab4': '#698b22', + \ 'darkolivegreen1': '#caff70', + \ 'darkolivegreen2': '#bcee68', + \ 'darkolivegreen3': '#a2cd5a', + \ 'darkolivegreen4': '#6e8b3d', + \ 'khaki1': '#fff68f', + \ 'khaki2': '#eee685', + \ 'khaki3': '#cdc673', + \ 'khaki4': '#8b864e', + \ 'lightgoldenrod1': '#ffec8b', + \ 'lightgoldenrod2': '#eedc82', + \ 'lightgoldenrod3': '#cdbe70', + \ 'lightgoldenrod4': '#8b814c', + \ 'lightyellow1': '#ffffe0', + \ 'lightyellow2': '#eeeed1', + \ 'lightyellow3': '#cdcdb4', + \ 'lightyellow4': '#8b8b7a', + \ 'yellow1': '#ffff00', + \ 'yellow2': '#eeee00', + \ 'yellow3': '#cdcd00', + \ 'yellow4': '#8b8b00', + \ 'dark yellow': '#8b8b00', + \ 'darkyellow': '#8b8b00', + \ 'gold1': '#ffd700', + \ 'gold2': '#eec900', + \ 'gold3': '#cdad00', + \ 'gold4': '#8b7500', + \ 'goldenrod1': '#ffc125', + \ 'goldenrod2': '#eeb422', + \ 'goldenrod3': '#cd9b1d', + \ 'goldenrod4': '#8b6914', + \ 'darkgoldenrod1': '#ffb90f', + \ 'darkgoldenrod2': '#eead0e', + \ 'darkgoldenrod3': '#cd950c', + \ 'darkgoldenrod4': '#8b6508', + \ 'rosybrown1': '#ffc1c1', + \ 'rosybrown2': '#eeb4b4', + \ 'rosybrown3': '#cd9b9b', + \ 'rosybrown4': '#8b6969', + \ 'indianred1': '#ff6a6a', + \ 'indianred2': '#ee6363', + \ 'indianred3': '#cd5555', + \ 'indianred4': '#8b3a3a', + \ 'sienna1': '#ff8247', + \ 'sienna2': '#ee7942', + \ 'sienna3': '#cd6839', + \ 'sienna4': '#8b4726', + \ 'burlywood1': '#ffd39b', + \ 'burlywood2': '#eec591', + \ 'burlywood3': '#cdaa7d', + \ 'burlywood4': '#8b7355', + \ 'wheat1': '#ffe7ba', + \ 'wheat2': '#eed8ae', + \ 'wheat3': '#cdba96', + \ 'wheat4': '#8b7e66', + \ 'tan1': '#ffa54f', + \ 'tan2': '#ee9a49', + \ 'tan3': '#cd853f', + \ 'tan4': '#8b5a2b', + \ 'chocolate1': '#ff7f24', + \ 'chocolate2': '#ee7621', + \ 'chocolate3': '#cd661d', + \ 'chocolate4': '#8b4513', + \ 'firebrick1': '#ff3030', + \ 'firebrick2': '#ee2c2c', + \ 'firebrick3': '#cd2626', + \ 'firebrick4': '#8b1a1a', + \ 'brown1': '#ff4040', + \ 'brown2': '#ee3b3b', + \ 'brown3': '#cd3333', + \ 'brown4': '#8b2323', + \ 'salmon1': '#ff8c69', + \ 'salmon2': '#ee8262', + \ 'salmon3': '#cd7054', + \ 'salmon4': '#8b4c39', + \ 'lightsalmon1': '#ffa07a', + \ 'lightsalmon2': '#ee9572', + \ 'lightsalmon3': '#cd8162', + \ 'lightsalmon4': '#8b5742', + \ 'orange1': '#ffa500', + \ 'orange2': '#ee9a00', + \ 'orange3': '#cd8500', + \ 'orange4': '#8b5a00', + \ 'darkorange1': '#ff7f00', + \ 'darkorange2': '#ee7600', + \ 'darkorange3': '#cd6600', + \ 'darkorange4': '#8b4500', + \ 'coral1': '#ff7256', + \ 'coral2': '#ee6a50', + \ 'coral3': '#cd5b45', + \ 'coral4': '#8b3e2f', + \ 'tomato1': '#ff6347', + \ 'tomato2': '#ee5c42', + \ 'tomato3': '#cd4f39', + \ 'tomato4': '#8b3626', + \ 'orangered1': '#ff4500', + \ 'orangered2': '#ee4000', + \ 'orangered3': '#cd3700', + \ 'orangered4': '#8b2500', + \ 'light red': '#ff8b8b', + \ 'lightred': '#ff8b8b', + \ 'red1': '#ff0000', + \ 'red2': '#ee0000', + \ 'red3': '#cd0000', + \ 'red4': '#8b0000', + \ 'deeppink1': '#ff1493', + \ 'deeppink2': '#ee1289', + \ 'deeppink3': '#cd1076', + \ 'deeppink4': '#8b0a50', + \ 'hotpink1': '#ff6eb4', + \ 'hotpink2': '#ee6aa7', + \ 'hotpink3': '#cd6090', + \ 'hotpink4': '#8b3a62', + \ 'pink1': '#ffb5c5', + \ 'pink2': '#eea9b8', + \ 'pink3': '#cd919e', + \ 'pink4': '#8b636c', + \ 'lightpink1': '#ffaeb9', + \ 'lightpink2': '#eea2ad', + \ 'lightpink3': '#cd8c95', + \ 'lightpink4': '#8b5f65', + \ 'palevioletred1': '#ff82ab', + \ 'palevioletred2': '#ee799f', + \ 'palevioletred3': '#cd6889', + \ 'palevioletred4': '#8b475d', + \ 'maroon1': '#ff34b3', + \ 'maroon2': '#ee30a7', + \ 'maroon3': '#cd2990', + \ 'maroon4': '#8b1c62', + \ 'violetred1': '#ff3e96', + \ 'violetred2': '#ee3a8c', + \ 'violetred3': '#cd3278', + \ 'violetred4': '#8b2252', + \ 'light magenta': '#ff8bff', + \ 'lightmagenta': '#ff8bff', + \ 'magenta1': '#ff00ff', + \ 'magenta2': '#ee00ee', + \ 'magenta3': '#cd00cd', + \ 'magenta4': '#8b008b', + \ 'orchid1': '#ff83fa', + \ 'orchid2': '#ee7ae9', + \ 'orchid3': '#cd69c9', + \ 'orchid4': '#8b4789', + \ 'plum1': '#ffbbff', + \ 'plum2': '#eeaeee', + \ 'plum3': '#cd96cd', + \ 'plum4': '#8b668b', + \ 'mediumorchid1': '#e066ff', + \ 'mediumorchid2': '#d15fee', + \ 'mediumorchid3': '#b452cd', + \ 'mediumorchid4': '#7a378b', + \ 'darkorchid1': '#bf3eff', + \ 'darkorchid2': '#b23aee', + \ 'darkorchid3': '#9a32cd', + \ 'darkorchid4': '#68228b', + \ 'purple1': '#9b30ff', + \ 'purple2': '#912cee', + \ 'purple3': '#7d26cd', + \ 'purple4': '#551a8b', + \ 'mediumpurple1': '#ab82ff', + \ 'mediumpurple2': '#9f79ee', + \ 'mediumpurple3': '#8968cd', + \ 'mediumpurple4': '#5d478b', + \ 'thistle1': '#ffe1ff', + \ 'thistle2': '#eed2ee', + \ 'thistle3': '#cdb5cd', + \ 'thistle4': '#8b7b8b', + \ 'gray0': '#000000', + \ 'grey0': '#000000', + \ 'gray1': '#030303', + \ 'grey1': '#030303', + \ 'gray2': '#050505', + \ 'grey2': '#050505', + \ 'gray3': '#080808', + \ 'grey3': '#080808', + \ 'gray4': '#0a0a0a', + \ 'grey4': '#0a0a0a', + \ 'gray5': '#0d0d0d', + \ 'grey5': '#0d0d0d', + \ 'gray6': '#0f0f0f', + \ 'grey6': '#0f0f0f', + \ 'gray7': '#121212', + \ 'grey7': '#121212', + \ 'gray8': '#141414', + \ 'grey8': '#141414', + \ 'gray9': '#171717', + \ 'grey9': '#171717', + \ 'gray10': '#1a1a1a', + \ 'grey10': '#1a1a1a', + \ 'gray11': '#1c1c1c', + \ 'grey11': '#1c1c1c', + \ 'gray12': '#1f1f1f', + \ 'grey12': '#1f1f1f', + \ 'gray13': '#212121', + \ 'grey13': '#212121', + \ 'gray14': '#242424', + \ 'grey14': '#242424', + \ 'gray15': '#262626', + \ 'grey15': '#262626', + \ 'gray16': '#292929', + \ 'grey16': '#292929', + \ 'gray17': '#2b2b2b', + \ 'grey17': '#2b2b2b', + \ 'gray18': '#2e2e2e', + \ 'grey18': '#2e2e2e', + \ 'gray19': '#303030', + \ 'grey19': '#303030', + \ 'gray20': '#333333', + \ 'grey20': '#333333', + \ 'gray21': '#363636', + \ 'grey21': '#363636', + \ 'gray22': '#383838', + \ 'grey22': '#383838', + \ 'gray23': '#3b3b3b', + \ 'grey23': '#3b3b3b', + \ 'gray24': '#3d3d3d', + \ 'grey24': '#3d3d3d', + \ 'gray25': '#404040', + \ 'grey25': '#404040', + \ 'gray26': '#424242', + \ 'grey26': '#424242', + \ 'gray27': '#454545', + \ 'grey27': '#454545', + \ 'gray28': '#474747', + \ 'grey28': '#474747', + \ 'gray29': '#4a4a4a', + \ 'grey29': '#4a4a4a', + \ 'gray30': '#4d4d4d', + \ 'grey30': '#4d4d4d', + \ 'gray31': '#4f4f4f', + \ 'grey31': '#4f4f4f', + \ 'gray32': '#525252', + \ 'grey32': '#525252', + \ 'gray33': '#545454', + \ 'grey33': '#545454', + \ 'gray34': '#575757', + \ 'grey34': '#575757', + \ 'gray35': '#595959', + \ 'grey35': '#595959', + \ 'gray36': '#5c5c5c', + \ 'grey36': '#5c5c5c', + \ 'gray37': '#5e5e5e', + \ 'grey37': '#5e5e5e', + \ 'gray38': '#616161', + \ 'grey38': '#616161', + \ 'gray39': '#636363', + \ 'grey39': '#636363', + \ 'gray40': '#666666', + \ 'grey40': '#666666', + \ 'gray41': '#696969', + \ 'grey41': '#696969', + \ 'gray42': '#6b6b6b', + \ 'grey42': '#6b6b6b', + \ 'gray43': '#6e6e6e', + \ 'grey43': '#6e6e6e', + \ 'gray44': '#707070', + \ 'grey44': '#707070', + \ 'gray45': '#737373', + \ 'grey45': '#737373', + \ 'gray46': '#757575', + \ 'grey46': '#757575', + \ 'gray47': '#787878', + \ 'grey47': '#787878', + \ 'gray48': '#7a7a7a', + \ 'grey48': '#7a7a7a', + \ 'gray49': '#7d7d7d', + \ 'grey49': '#7d7d7d', + \ 'gray50': '#7f7f7f', + \ 'grey50': '#7f7f7f', + \ 'gray51': '#828282', + \ 'grey51': '#828282', + \ 'gray52': '#858585', + \ 'grey52': '#858585', + \ 'gray53': '#878787', + \ 'grey53': '#878787', + \ 'gray54': '#8a8a8a', + \ 'grey54': '#8a8a8a', + \ 'gray55': '#8c8c8c', + \ 'grey55': '#8c8c8c', + \ 'gray56': '#8f8f8f', + \ 'grey56': '#8f8f8f', + \ 'gray57': '#919191', + \ 'grey57': '#919191', + \ 'gray58': '#949494', + \ 'grey58': '#949494', + \ 'gray59': '#969696', + \ 'grey59': '#969696', + \ 'gray60': '#999999', + \ 'grey60': '#999999', + \ 'gray61': '#9c9c9c', + \ 'grey61': '#9c9c9c', + \ 'gray62': '#9e9e9e', + \ 'grey62': '#9e9e9e', + \ 'gray63': '#a1a1a1', + \ 'grey63': '#a1a1a1', + \ 'gray64': '#a3a3a3', + \ 'grey64': '#a3a3a3', + \ 'gray65': '#a6a6a6', + \ 'grey65': '#a6a6a6', + \ 'gray66': '#a8a8a8', + \ 'grey66': '#a8a8a8', + \ 'gray67': '#ababab', + \ 'grey67': '#ababab', + \ 'gray68': '#adadad', + \ 'grey68': '#adadad', + \ 'gray69': '#b0b0b0', + \ 'grey69': '#b0b0b0', + \ 'gray70': '#b3b3b3', + \ 'grey70': '#b3b3b3', + \ 'gray71': '#b5b5b5', + \ 'grey71': '#b5b5b5', + \ 'gray72': '#b8b8b8', + \ 'grey72': '#b8b8b8', + \ 'gray73': '#bababa', + \ 'grey73': '#bababa', + \ 'gray74': '#bdbdbd', + \ 'grey74': '#bdbdbd', + \ 'gray75': '#bfbfbf', + \ 'grey75': '#bfbfbf', + \ 'gray76': '#c2c2c2', + \ 'grey76': '#c2c2c2', + \ 'gray77': '#c4c4c4', + \ 'grey77': '#c4c4c4', + \ 'gray78': '#c7c7c7', + \ 'grey78': '#c7c7c7', + \ 'gray79': '#c9c9c9', + \ 'grey79': '#c9c9c9', + \ 'gray80': '#cccccc', + \ 'grey80': '#cccccc', + \ 'gray81': '#cfcfcf', + \ 'grey81': '#cfcfcf', + \ 'gray82': '#d1d1d1', + \ 'grey82': '#d1d1d1', + \ 'gray83': '#d4d4d4', + \ 'grey83': '#d4d4d4', + \ 'gray84': '#d6d6d6', + \ 'grey84': '#d6d6d6', + \ 'gray85': '#d9d9d9', + \ 'grey85': '#d9d9d9', + \ 'gray86': '#dbdbdb', + \ 'grey86': '#dbdbdb', + \ 'gray87': '#dedede', + \ 'grey87': '#dedede', + \ 'gray88': '#e0e0e0', + \ 'grey88': '#e0e0e0', + \ 'gray89': '#e3e3e3', + \ 'grey89': '#e3e3e3', + \ 'gray90': '#e5e5e5', + \ 'grey90': '#e5e5e5', + \ 'gray91': '#e8e8e8', + \ 'grey91': '#e8e8e8', + \ 'gray92': '#ebebeb', + \ 'grey92': '#ebebeb', + \ 'gray93': '#ededed', + \ 'grey93': '#ededed', + \ 'gray94': '#f0f0f0', + \ 'grey94': '#f0f0f0', + \ 'gray95': '#f2f2f2', + \ 'grey95': '#f2f2f2', + \ 'gray96': '#f5f5f5', + \ 'grey96': '#f5f5f5', + \ 'gray97': '#f7f7f7', + \ 'grey97': '#f7f7f7', + \ 'gray98': '#fafafa', + \ 'grey98': '#fafafa', + \ 'gray99': '#fcfcfc', + \ 'grey99': '#fcfcfc', + \ 'gray100': '#ffffff', + \ 'grey100': '#ffffff', + \ 'dark grey': '#a9a9a9', + \ 'darkgrey': '#a9a9a9', + \ 'dark gray': '#a9a9a9', + \ 'darkgray': '#a9a9a9', + \ 'dark blue': '#00008b', + \ 'darkblue': '#00008b', + \ 'dark cyan': '#008b8b', + \ 'darkcyan': '#008b8b', + \ 'dark magenta': '#8b008b', + \ 'darkmagenta': '#8b008b', + \ 'dark red': '#8b0000', + \ 'darkred': '#8b0000', + \ 'light green': '#90ee90', + \ 'lightgreen': '#90ee90', + \ 'crimson': '#dc143c', + \ 'indigo': '#4b0082', + \ 'olive': '#808000', + \ 'rebecca purple': '#663399', + \ 'rebeccapurple': '#663399', + \ 'silver': '#c0c0c0', + \ 'teal': '#008080' + \ } + +call s:AddColors(s:default_cnames) +call s:Cleanup() + +"vim: sw=4 diff --git a/git/usr/share/vim/vim92/colors/tools/check_colors.vim b/git/usr/share/vim/vim92/colors/tools/check_colors.vim new file mode 100644 index 0000000000000000000000000000000000000000..4217de98c720945191f46a05c8b4479694aa2aa7 --- /dev/null +++ b/git/usr/share/vim/vim92/colors/tools/check_colors.vim @@ -0,0 +1,222 @@ +vim9script +# This script tests a color scheme for some errors and lists potential errors. +# Load the scheme and source this script, like this: +# :edit colors/desert.vim | :ru colors/tools/check_colors.vim + +def Test_check_colors() + const savedview = winsaveview() + cursor(1, 1) + + # err is + # { + # colors_name: "message", + # init: "message", + # background: "message", + # ....etc + # highlight: { + # 'Normal': "Missing ...", + # 'Conceal': "Missing ..." + # ....etc + # } + # } + var err: dict = {} + + # 1) Check g:colors_name is existing + if search('\<\%(g:\)\?colors_name\>', 'cnW') == 0 + err['colors_name'] = 'g:colors_name not set' + else + err['colors_name'] = 'OK' + endif + + # 2) Check for some well-defined highlighting groups + const hi_groups = [ + 'ColorColumn', + 'Comment', + 'Conceal', + 'Constant', + 'CurSearch', + 'Cursor', + 'CursorColumn', + 'CursorLine', + 'CursorLineNr', + 'CursorLineFold', + 'CursorLineSign', + 'DiffAdd', + 'DiffChange', + 'DiffDelete', + 'DiffText', + 'Directory', + 'EndOfBuffer', + 'Error', + 'ErrorMsg', + 'FoldColumn', + 'Folded', + 'Identifier', + 'Ignore', + 'IncSearch', + 'LineNr', + 'LineNrAbove', + 'LineNrBelow', + 'MatchParen', + 'ModeMsg', + 'MoreMsg', + 'NonText', + 'Normal', + 'Pmenu', + 'PmenuSbar', + 'PmenuSel', + 'PmenuThumb', + 'PopupNotification', + 'PreProc', + 'Question', + 'QuickFixLine', + 'Search', + 'SignColumn', + 'Special', + 'SpecialKey', + 'SpellBad', + 'SpellCap', + 'SpellLocal', + 'SpellRare', + 'Statement', + 'StatusLine', + 'StatusLineNC', + 'StatusLineTerm', + 'StatusLineTermNC', + 'TabLine', + 'TabLineFill', + 'TabLineSel', + 'Title', + 'Todo', + 'ToolbarButton', + 'ToolbarLine', + 'Type', + 'Underlined', + 'VertSplit', + 'Visual', + 'VisualNOS', + 'WarningMsg', + 'WildMenu', + 'debugPC', + 'debugBreakpoint', + ] + var groups = {} + for group in hi_groups + if search('\c@suppress\s\+\<' .. group .. '\>', 'cnW') != 0 + # skip check, if the script contains a line like + # @suppress Visual: + continue + endif + if search('hi\%[ghlight]!\= \+link \+' .. group, 'cnW') != 0 # Linked group + continue + endif + if search('hi\%[ghlight] \+\<' .. group .. '\>', 'cnW') == 0 + groups[group] = 'No highlight definition for ' .. group + continue + endif + if search('hi\%[ghlight] \+\<' .. group .. '\>.*[bf]g=', 'cnW') == 0 + groups[group] = 'Missing foreground or background color for ' .. group + continue + endif + if search('hi\%[ghlight] \+\<' .. group .. '\>.*guibg=', 'cnW') != 0 + && search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermbg=', 'cnW') == 0 + && group != 'Cursor' + groups[group] = 'Missing bg terminal color for ' .. group + continue + endif + if search('hi\%[ghlight] \+\<' .. group .. '\>.*guifg=', 'cnW') == 0 + && group !~ '^Diff' + groups[group] = 'Missing guifg definition for ' .. group + continue + endif + if search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermfg=', 'cnW') == 0 + && group !~ '^Diff' + && group != 'Cursor' + groups[group] = 'Missing ctermfg definition for ' .. group + continue + endif + # do not check for background colors, they could be intentionally left out + cursor(1, 1) + endfor + err['highlight'] = groups + + # 3) Check, that it does not set background highlighting + # Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes? + const bg_set = '\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)' + const bg_let = 'let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1' + const bg_pat = '\%(' .. bg_set .. '\|' .. bg_let .. '\)' + const line = search(bg_pat, 'cnW') + if search(bg_pat, 'cnW') != 0 + exe ":" .. line + if search('hi \U\w\+\s\+\S', 'cbnW') != 0 + err['background'] = 'Should not set background option after :hi statement' + endif + else + err['background'] = 'OK' + endif + cursor(1, 1) + + # 4) Check, that t_Co is checked + var pat = '[&]t_Co)\?\s*\%(\%([<>=]=\?\)\|??\)\s*\d\+' + if search(pat, 'ncW') == 0 + err['t_Co'] = 'Does not check terminal for capable colors' + endif + + # 5) Initializes correctly, e.g. should have at least: + # hi clear + pat = '^\s*hi\%[ghlight]\s*clear\s*$' + if search(pat, 'cnW') == 0 + err['init'] = 'No initialization' + endif + + # 6) Does not use :syn on + if search('syn\%[tax]\s\+on', 'cnW') != 0 + err['background'] = 'Should not issue :syn on' + endif + + # 7) Normal should be defined first, not use reverse, fg or bg + cursor(1, 1) + pat = 'hi\%[ghlight] \+\%(link\|clear\)\@!\w\+\>' + search(pat, 'cW') # Look for the first hi def, skipping `hi link` and `hi clear` + if getline('.') !~# '\m\' + err['highlight']['Normal'] = 'Should be defined first' + elseif getline('.') =~# '\m\%(=\%(fg\|bg\)\)' + err['highlight']['Normal'] = "Should not use 'fg' or 'bg'" + elseif getline('.') =~# '\m=\%(inv\|rev\)erse' + err['highlight']['Normal'] = 'Should not use reverse mode' + endif + + # 8) TODO: XXX: Check if g:terminal_ansi_colors are defined + + winrestview(savedview) + g:err = err + + Result(err) +enddef + + +def Result(err: dict) + var do_groups: bool = v:false + echohl Title | echomsg "---------------" | echohl Normal + for key in sort(keys(err)) + if key == 'highlight' + do_groups = !empty(err[key]) + continue + else + if err[key] !~ 'OK' + echohl Title + endif + echomsg printf("%15s: %s", key, err[key]) + echohl Normal + endif + endfor + echohl Title | echomsg "---------------" | echohl Normal + if do_groups + echohl Title | echomsg "Groups" | echohl Normal + for v1 in sort(keys(err['highlight'])) + echomsg printf("%25s: %s", v1, err['highlight'][v1]) + endfor + endif +enddef + +Test_check_colors() diff --git a/git/usr/share/vim/vim92/import/dist/vimhelp.vim b/git/usr/share/vim/vim92/import/dist/vimhelp.vim new file mode 100644 index 0000000000000000000000000000000000000000..d053f63041db249f0b18f59bb81b1b3dd83f2981 --- /dev/null +++ b/git/usr/share/vim/vim92/import/dist/vimhelp.vim @@ -0,0 +1,31 @@ +vim9script + +# Extra functionality for displaying Vim help . + +# Called when editing the doc/syntax.txt file +export def HighlightGroups() + var save_cursor = getcurpos() + var buf: number = bufnr('%') + + var start: number = search('\*highlight-groups\*', 'c') + var end: number = search('^======') + for lnum in range(start, end) + var word: string = getline(lnum)->matchstr('^\w\+\ze\t') + if word->hlexists() + var type = 'help-hl-' .. word + if prop_type_list({bufnr: buf})->index(type) != -1 + # was called before, delete existing properties + prop_remove({type: type, bufnr: buf}) + prop_type_delete(type, {bufnr: buf}) + endif + prop_type_add(type, { + bufnr: buf, + highlight: word, + combine: false, + }) + prop_add(lnum, 1, {length: word->strlen(), type: type}) + endif + endfor + + setpos('.', save_cursor) +enddef diff --git a/git/usr/share/vim/vim92/import/dist/vimhighlight.vim b/git/usr/share/vim/vim92/import/dist/vimhighlight.vim new file mode 100644 index 0000000000000000000000000000000000000000..4664961af4258f91161c9dee770240e361132580 --- /dev/null +++ b/git/usr/share/vim/vim92/import/dist/vimhighlight.vim @@ -0,0 +1,119 @@ +vim9script + +# Maintainer: github user lacygoill +# Last Change: 2023 Mar 08 + +# Init {{{1 + +const LINK: string = '->' + +# Interface {{{1 +export def HighlightTest() # {{{2 + # Open a new window if the current one isn't empty + if line('$') != 1 || getline(1) != '' + new + endif + + edit Highlight\ test + + # `:help scratch-buffer` + &l:bufhidden = 'hide' + &l:buftype = 'nofile' + &l:swapfile = false + + var report: list =<< trim END + Highlighting groups for various occasions + ----------------------------------------- + END + + var various_groups: list = GetVariousGroups() + ->filter((_, group: string): bool => group->hlexists() && !group->IsCleared()) + ->sort() + ->uniq() + + report->extend(various_groups->FollowChains()) + + var language_section: list =<< trim END + + Highlighting groups for language syntaxes + ----------------------------------------- + END + report->extend(language_section) + + var syntax_groups: list = getcompletion('', 'highlight') + ->filter((_, group: string): bool => + various_groups->index(group) == -1 + && !group->IsCleared() + && group !~ '^HighlightTest') + + # put the report + report + ->extend(syntax_groups->FollowChains()) + ->setline(1) + + # highlight the group names + execute $'silent! global /^\w\+\%(\%(\s*{LINK}\s*\)\w\+\)*$/ Highlight({bufnr('%')})' + + cursor(1, 1) +enddef +# }}}1 +# Core {{{1 +def Highlight(buf: number) # {{{2 + var lnum: number = line('.') + for group: string in getline('.')->split($'\s*{LINK}\s*') + silent! prop_type_add($'highlight-test-{group}', { + bufnr: buf, + highlight: group, + combine: false, + }) + prop_add(lnum, col('.'), { + length: group->strlen(), + type: $'highlight-test-{group}' + }) + search('\<\w\+\>', '', lnum) + endfor +enddef +# }}}1 +# Util {{{1 +def IsCleared(name: string): bool # {{{2 + return name + ->hlget() + ->get(0, {}) + ->get('cleared') +enddef + +def FollowChains(groups: list): list # {{{2 + # A group might be linked to another, which itself might be linked... + # We want the whole chain, for every group. + var chains: list + for group: string in groups + var target: string = group->LinksTo() + var chain: string = group + while !target->empty() + chain ..= $' {LINK} {target}' + target = target->LinksTo() + endwhile + var a_link_is_cleared: bool = chain + ->split($'\s*{LINK}\s*') + ->indexof((_, g: string): bool => g->IsCleared()) >= 0 + if a_link_is_cleared + continue + endif + chains->add(chain) + endfor + return chains +enddef + +def LinksTo(group: string): string # {{{2 + return group + ->hlget() + ->get(0, {}) + ->get('linksto', '') +enddef + +def GetVariousGroups(): list # {{{2 + return getcompletion('hl-', 'help') + ->filter((_, helptag: string): bool => helptag =~ '^hl-\w\+$') + ->map((_, helptag: string) => helptag->substitute('^hl-', '', '')) + ->extend(range(1, 9)->map((_, n: number) => $'User{n}')) +enddef diff --git a/git/usr/share/vim/vim92/lang/en_GB/LC_MESSAGES/vim.mo b/git/usr/share/vim/vim92/lang/en_GB/LC_MESSAGES/vim.mo new file mode 100644 index 0000000000000000000000000000000000000000..264125a8a9a7ba303cad0e4e576b9822237579f3 Binary files /dev/null and b/git/usr/share/vim/vim92/lang/en_GB/LC_MESSAGES/vim.mo differ diff --git a/git/usr/share/vim/vim92/lang/lv/LC_MESSAGES/vim.mo b/git/usr/share/vim/vim92/lang/lv/LC_MESSAGES/vim.mo new file mode 100644 index 0000000000000000000000000000000000000000..f4085613a4c79e4549a68ab3c481a27ccde7fa84 Binary files /dev/null and b/git/usr/share/vim/vim92/lang/lv/LC_MESSAGES/vim.mo differ diff --git a/git/usr/share/vim/vim92/macros/hanoi/click.me b/git/usr/share/vim/vim92/macros/hanoi/click.me new file mode 100644 index 0000000000000000000000000000000000000000..24f178bfe3c3bb53d11c6b8a67c94f017bf713f6 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/hanoi/click.me @@ -0,0 +1,14 @@ + + +See Vim solve the towers of Hanoi! + +Instructions: + type ":so hanoi.vim" to load the macros + type "g" to start it + +and watch it go. + + to quit type ":q!" +to interrupt type CTRL-C + +(This text will disappear as soon as you type "g") diff --git a/git/usr/share/vim/vim92/macros/hanoi/hanoi.vim b/git/usr/share/vim/vim92/macros/hanoi/hanoi.vim new file mode 100644 index 0000000000000000000000000000000000000000..1d075fa21f8d3358f19e2537db93f8c31bfbacd9 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/hanoi/hanoi.vim @@ -0,0 +1,64 @@ +set remap +set noterse +set wrapscan +" to set the height of the tower, change the digit in the following +" two lines to the height you want (select from 1 to 9) +map t 7 +map! t 7 +map L 1G/t X/^0 $P1GJ$An$BGC0e$X0E0F$X/T @f @h $A1GJ@f0l$Xn$PU +map g IL + +map J /^0[^t]*$ +map X x +map P p +map U L +map A "fyl +map B "hyl +map C "fp +map e "fy2l +map E "hp +map F "hy2l + +" initialisations: +" KM cleanup buffer +" Y create tower of desired height +" NOQ copy it and insert a T +" NO copy this one +" S change last char into a $ +" R change last char in previous line into a n +" T insert two lines containing a zero +" V add a last line containing a backslash +map I KMYNOQNOSkRTV + +"create empty line +map K 1Go + +"delete to end of file +map M dG + +"yank one line +map N yy + +"put +map O p + +"delete more than height-of-tower characters +map q tllD + +"create a tower of desired height +map Y o0123456789Z0q + +"insert a T in column 1 +map Q 0iT + +"substitute last character with a n +map R $rn + +"substitute last character with a $ +map S $r$ + +"insert two lines containing a zero +map T ko0 0  + +"add a backslash at the end +map V Go/ diff --git a/git/usr/share/vim/vim92/macros/hanoi/poster b/git/usr/share/vim/vim92/macros/hanoi/poster new file mode 100644 index 0000000000000000000000000000000000000000..dd03b2613d1d98e84ad44aa9cca9750860df14b4 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/hanoi/poster @@ -0,0 +1,36 @@ +Article 2913 of alt.sources: +Path: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!cluster!swift!softway!otc!gregm +From: gregm@otc.otca.oz.au (Greg McFarlane) +Newsgroups: comp.sources.d,alt.sources,comp.editors +Subject: VI SOLVES HANOI +Message-ID: <2323@otc.otca.oz> +Date: 19 Feb 91 01:32:14 GMT +Sender: news@otc.otca.oz +Reply-To: gregm@otc.otca.oz.au (Greg McFarlane) +Organization: OTC Development Unit, Australia +Lines: 80 +Xref: oce-rd1 comp.sources.d:5702 alt.sources:2913 comp.editors:2313 + +Submitted-by: gregm@otc.otca.oz.au +Archive-name: hanoi.vi.macros/part01 + +Everyone seems to be writing stupid Tower of Hanoi programs. +Well, here is the stupidest of them all: the hanoi solving vi macros. + +Save this article, unshar it, and run uudecode on hanoi.vi.macros.uu. +This will give you the macro file hanoi.vi.macros. +Then run vi (with no file: just type "vi") and type: + :so hanoi.vi.macros + g +and watch it go. + +The default height of the tower is 7 but can be easily changed by editing +the macro file. + +The disks aren't actually shown in this version, only numbers representing +each disk, but I believe it is possible to write some macros to show the +disks moving about as well. Any takers? + +(For maze solving macros, see alt.sources or comp.editors) + +Greg diff --git a/git/usr/share/vim/vim92/macros/life/click.me b/git/usr/share/vim/vim92/macros/life/click.me new file mode 100644 index 0000000000000000000000000000000000000000..c2ed4691aaf39425a50a2eecec4dedebcea4e70e --- /dev/null +++ b/git/usr/share/vim/vim92/macros/life/click.me @@ -0,0 +1,9 @@ + +To run the "Conway's game of life" macros: + + 1. Type ":so life.vim". This loads the macros. + 2. Type "g" to run the macros. + 3. Type CTRL-C to interrupt. + 4. Type ":q!" to get out. + +See life.vim for more advanced usage. diff --git a/git/usr/share/vim/vim92/macros/life/life.vim b/git/usr/share/vim/vim92/macros/life/life.vim new file mode 100644 index 0000000000000000000000000000000000000000..29832f02275e942fd7635ccc4137252aa9d8ae15 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/life/life.vim @@ -0,0 +1,262 @@ +" Macros to play Conway's Game of Life in vi +" Version 1.0m: edges wrap +" by Eli-the-Bearded Benjamin Elijah Griffin +" Sept 1996 +" This file may be free distributed so long as these credits remain unchanged. +" +" Modified by Bram Moolenaar (Bram@vim.org), 1996 Sept 10 +" - Made it quite a bit faster, but now needs search patterns in the text +" - Changed the order of mappings to top-down. +" - Made "g" run the whole thing, "C" run one generation. +" - Added support for any uppercase character instead of 'X' +" +" Rules: +" If a germ has 0 or 1 live neighbors it dies of loneliness +" If a germ has 2 or 3 live neighbors it survives +" If a germ has 4 to 8 live neighbors it dies of starvation +" If an empty box has 3 live neighbors a new germ is born +" +" A new born germ is an "A". Every generation it gets older: B, C, etc. +" A germ dies of old age when it reaches "Z". +" +" Notice the rules do not mention edges. This version has the edges wrap +" around. I have an earlier version that offers the option of live edges or +" dead edges. Email me if you are interested. -Eli- +" +" Note: This is slow! One generation may take up to ten minutes (depends on +" your computer and the vi version). +" +" Quite a lot of the messy stuff is to work around the vi error "Can't yank +" inside global/macro". Still doesn't work for all versions of vi. +" +" To use these macros: +" +" vi start vi/vim +" +" :so life.mac Source this file +" +" g 'g'o! runs everything until interrupted: "IR". +" +" I Initialize everything. A board will be drawn at the end +" of the current buffer. All line references in these macros +" are relative to the end of the file and playing the game +" can be done safely with any file as the current buffer. +" +" Change the left field with spaces and uppercase letters to suit +" your taste. +" +" C 'C'ompute one generation. +" + idem, time running one generation. +" R 'R'un 'C'ompute until interrupted. +" iz Make a number the only thing on the current line and use +" 'z' to time that many generations. +" +" Time to run 30 generations on my 233 AMD K6 (FreeBSD 3.0): +" vim 5.4 xterm 51 sec +" gvim 5.4 Athena 42 sec +" gvim 5.4 Motif 42 sec +" gvim 5.4 GTK 50 sec +" nvi 1.79 xterm 58 sec +" vi 3.7 xterm 2 min 30 sec +" Elvis 2.1 xterm 7 min 50 sec +" Elvis 2.1 X11 6 min 31 sec +" +" Time to run 30 generations on my 850 AMD Duron (FreeBSD 4.2): +" vim 5.8 xterm 21 sec +" vim 6.0 xterm 24 sec +" vim 6.0 Motif 32 sec +" nvi 1.79 xterm 29 sec +" vi 3.7 xterm 32 sec +" elvis 2.1.4 xterm 34 sec +" +" And now the macros, more or less in top-down order. +" +" ----- macros that can be used by the human ----- +" +" 'g'o: 'I'nitialize and then 'R'un 'C'ompute recursively (used by the human) +map g IR +" +" +" 'R'un 'C'ompute recursively (used by the human and 'g'o) +map R CV +" work around "tail recursion" problem in vi, "V" == "R". +map V R +" +" +" 'I'nitialize the board (used by the human and 'g'o) +map I G)0)0)0)0)1)0)0)2)0)0)0)0,ok,-11k,-,R,IIN +" +" +" 'C'ompute next generation (used by the human and others) +map C T>>>>>>>>B& +" +" +" Time running one generation (used by the human) +map + <1C<2 +" +" +" Time running N generations, where N is the number on the current line. +" (used by the human) +map z ,^,&,*,&<1,*<2 +" +" ----- END of macros that can be used by the human ----- +" +" ----- Initialisation ----- +" +map ,- :s/./-/g +map ,o oPut 'X's in the left box, then hit 'C' or 'R' +map ,R 03stop +" +" Write a new line (used by 'I'nitialize board) +" In remembrance of John Conway, 26 December 1937 – 11 April 2020. +map )0 o- --....................--....................- +map )1 o- JOHN CONWAY --....................--....................- +map )2 o- LIVES --....................--....................- +" +" +" Initialisation of the pattern/command to execute for working out a square. +" Pattern is: "#" +" where is " " if the current germ is dead, "X" when living. +" is the number of living neighbours (including current germ) +" expressed in X's +" +map ,Il8 O#XXXXXXXXXX .`a22lr  +map ,Id8 o# XXXXXXXX .`a22lr  +map ,Il7 o#XXXXXXXXX .`a22lr  +map ,Id7 o# XXXXXXX .`a22lr  +map ,Il6 o#XXXXXXXX .`a22lr  +map ,Id6 o# XXXXXX .`a22lr  +map ,Il5 o#XXXXXXX .`a22lr  +map ,Id5 o# XXXXX .`a22lr  +map ,Il4 o#XXXXXX .`a22lr  +map ,Id4 o# XXXX .`a22lr  +map ,Il3 o#XXXXX .,a +map ,Id3 o# XXX .`a22lrA +map ,Il2 o#XXXX .,a +map ,Id2 o# XX .`a22lr  +map ,Il1 o#XXX .`a22lr  +map ,Id1 o# X .`a22lr  +map ,Il0 o#XX .`a22lr  +map ,Id0 o# .`a22lr  +" +" Patterns used to replace a germ with its next generation +map ,Iaa o=AB =BC =CD =DE =EF =FG =GH =HI =IJ =JK =KL =LM =MN =NO =OP =PQ =QR +map ,Iab o=RS =ST =TU =UV =VW =WX =XY =YZ =Z  +" +" Insert the searched patterns above the board +map ,IIN G?^top ,Il8,Id8,Il7,Id7,Il6,Id6,Il5,Id5,Il4,Id4,Il3,Id3,Il2,Id2,Il1,Id1,Il0,Id0,Iaa,Iab +" +" ----- END of Initialisation ----- +" +" ----- Work out one line ----- +" +" Work out 'T'op line (used by show next) +map T G,c2k,!9k,@,#j>2k,$j +" +" Work out 'B'ottom line (used by show next) +map B ,%k>,$ +" +" Work out a line (used by show next, work out top and bottom lines) +map > 0 LWWWWWWWWWWWWWWWWWW,rj +" +" Refresh board (used by show next) +map & :%s/^\(-[ A-Z]*-\)\(-[ A-Z]*-\)\(-[.]*-\)$/\2\3\3/ +" +" +" Work around vi multiple yank/put in a single macro limitation +" (used by work out top and/or bottom line) +map ,$ dd +map ,% "cp +map ,! "byy +map ,@ "cyy +map ,# "bP +map ,c c$ +" +" ----- END of Work out one line ----- +" +" ----- Work out one square ----- +" +" The next three work out a square: put all nine chars around the current +" character on the bottom line (the bottom line must be empty when starting). +" +" 'W'ork out a center square (used by work out line) +map W makh,3`ah,3`ajh,3( +" +" +" Work out a 'L'eft square (used by work out line) +map L makf-h,1`ak,2`af-h,1`a,2`ajf-h,1`aj,2( +" +" +" Work out a 'R'ight square (used by work out line) +map ,r makh,2`akF-l,1`ah,2`aF-l,1`ajh,2`ajF-l,1( +" +" 'M'ove a character to the end of the file (used by all work out square +" macros) +" +map ,1 y G$p +map ,2 2y G$p +map ,3 3y G$p +" +" +" ----- END of Work out one square ----- +" +" ----- Work out one germ ----- +" +" Generate an edit command that depends on the number of living in the last +" line, and then run the edit command. (used by work out square). +" Leaves the cursor on the next character to be processed. +" +map ( ,s,i,X0i?^#A  0,df.l,Y21h +" +" Delete 's'paces (deads); +" The number of remaining characters is the number of living neighbours. +map ,s :.g/ /s///g +" +" Insert current character in the last line +map ,i `ay GP +" +" Replace any uppercase letter with 'X'; +map ,X :.g/[A-Z]/s//X/g +" +" Delete and execute the rest of the line +map ,d "qd$@q +" +" Yank and execute the rest of the line +map ,Y "qy$@q +" +" Yank the character under the cursor +map ,j y +" +" Put the current cut buffer after the cursor +map ,m p +" +" Delete the character under the cursor +map ,n x +" +" Replace a character by its next, A --> B, B --> C, etc. +map ,a `a,jGi?=,ma 0,dll,j`a21l,ml,nh +" +" ----- END of Work out one germ ----- +" +" ----- timing macros ----- +" +" Get current date (used by time a generation) +map << :r!date +map <1 G?^top O<< +map <2 G?^top k<< +" +" +" Turn number on current line into edit command (used by time N generations) +map ,^ AiC +" +" +" Delete current line and save current line (used by time N generations) +map ,& 0"gd$ +" +" +" Run saved line (used by time N generations) +map ,* @g +" +" ----- END of timing macros ----- +" +" End of the macros. diff --git a/git/usr/share/vim/vim92/macros/maze/Makefile b/git/usr/share/vim/vim92/macros/maze/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..c34e115d90f3b412b7431a34225e20c96c0d9043 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/maze/Makefile @@ -0,0 +1,7 @@ +# It's simple... + +maze: mazeansi.c + cc -o maze mazeansi.c + +mazeclean: mazeclean.c + cc -o mazeclean mazeclean.c diff --git a/git/usr/share/vim/vim92/macros/maze/README.txt b/git/usr/share/vim/vim92/macros/maze/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..be8e8ef2047e0f868ee0c33d8f6870e4d5df0ce5 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/maze/README.txt @@ -0,0 +1,49 @@ +To run the maze macros with Vim: + + vim -u maze_mac maze_5.78 + press "g" + +The "-u maze.mac" loads the maze macros and skips loading your .vimrc, which +may contain settings and mappings that get in the way. + + +The original README: + +To prove that you can do anything in vi, I wrote a couple of macros that +allows vi to solve mazes. It will solve any maze produced by maze.c +that was posted to the net recently. + +Just follow this recipe and SEE FOR YOURSELF. + 1. run uudecode on the file "maze.vi.macros.uu" to + produce the file "maze.vi.macros" + (If you can't wait to see the action, jump to step 4) + 2. compile maze.c with "cc -o maze maze.c" + 3. run maze > maze.out and input a small number (for example 10 if + you are on a fast machine, 3-5 if slow) which + is the size of the maze to produce + 4. edit the maze (vi maze.out) + 5. include the macros with the vi command: + :so maze.vi.macros + 6. type the letter "g" (for "go") and watch vi solve the maze + 7. when vi solves the maze, you will see why it lies + 8. now look at maze.vi.macros and all will be revealed + +Tested on a sparc, a sun and a pyramid (although maze.c will not compile +on the pyramid). + +Anyone who can't get the maze.c file to compile, get a new compiler, +try maze.ansi.c which was also posted to the net. +If you can get it to compile but the maze comes out looking like a fence +and not a maze and you are using SysV or DOS replace the "27" on the +last line of maze.c by "11" +Thanks to John Tromp (tromp@piring.cwi.nl) for maze.c. +Thanks to antonyc@nntp-server.caltech.edu (Bill T. Cat) for maze.ansi.c. + +Any donations should be in unmarked small denomination bills :^)=. + + ACSnet: gregm@otc.otca.oz.au +Greg McFarlane UUCP: {uunet,mcvax}!otc.otca.oz.au!gregm +|||| OTC || Snail: OTC R&D GPO Box 7000, Sydney 2001, Australia + Phone: +61 2 287 3139 Fax: +61 2 287 3299 + + diff --git a/git/usr/share/vim/vim92/macros/maze/maze_5.78 b/git/usr/share/vim/vim92/macros/maze/maze_5.78 new file mode 100644 index 0000000000000000000000000000000000000000..dbe3d278b6999d23d43caa14dd444c374891f891 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/maze/maze_5.78 @@ -0,0 +1,16 @@ +._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ +| ._| . . ._| | |_._._. . ._|_._._._._. ._|_. ._|_._. ._| . ._|_. | . ._._. | +| ._|_| |_. | | | | ._._|_._|_._. . |_. | | | ._._| |_._._| | ._. ._| . . |_| +|_._._._. | ._|_. ._._._. | | ._. |_._. . | ._._| |_. | ._._._. |_. | |_|_| | +| | . |_._| . ._._._| ._._. ._._| | | |_| . | |_. . ._|_| ._._. |_._|_| . | | +|_._|_._._._|_._._._|_|_._._._|_._|_._._._|_._._._|_._._._|_._._._._._._|_._| + +See Vim solve a maze! + + type ":so maze_mac" to load the macros + + type "g" to start + +to interrupt type "" + to quit type ":q!" + diff --git a/git/usr/share/vim/vim92/macros/maze/maze_mac b/git/usr/share/vim/vim92/macros/maze/maze_mac new file mode 100644 index 0000000000000000000000000000000000000000..b1e3487a9502515ff6d7a1cf94d7ef2881cdd0a3 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/maze/maze_mac @@ -0,0 +1,271 @@ +" These macros 'solve' any maze produced by the a-maze-ing maze.c program. +" +" First, a bit of maze theory. +" If you were put into a maze, a guaranteed method of finding your way +" out of the maze is to put your left hand onto a wall and just keep walking, +" never taking your hand off the wall. This technique is only guaranteed to +" work if the maze does not have any 'islands', or if the 'exit' is on the +" same island as your starting point. These conditions hold for the mazes +" under consideration. +" +" Assuming that the maze is made up of horizontal and vertical walls spaced +" one step apart and that you can move either north, south, east or west, +" then you can automate this procedure by carrying out the following steps. +" +" 1. Put yourself somewhere in the maze near a wall. +" 2. Check if you have a wall on your left. If so, go to step 4. +" 3. There is no wall on your left, so turn on the spot to your left and step +" forward by one step and repeat step 2. +" 4. Check what is directly in front of you. If it is a wall, turn on the +" spot to your right by 90 degrees and repeat step 4. +" 5. There is no wall in front of you, so step forward one step and +" go to step 2. +" +" In this way you will cover all the corridors of the maze (until you get back +" to where you started from, if you do not stop). +" +" By examining a maze produced by the maze.c program you will see that +" each square of the maze is one character high and two characters wide. +" To go north or south, you move by a one character step, but to move east or +" west you move by a two character step. Also note that in any position +" there are four places where walls could be put - to the north, to the south, +" to the east and to the west. +" A wall exists to the north of you if the character to the north of +" you is a _ (otherwise it is a space). +" A wall exists to the east of you if the character to the east of you +" is a | (otherwise it is a .). +" A wall exists to the west of you if the character to the west of you +" is a | (otherwise it is a .). +" A wall exists to the south of you if the character where you are +" is a _ (otherwise it is a space). +" +" Note the difference for direction south, where we must examine the character +" where the cursor is rather than an adjacent cell. +" +" If you were implementing the above procedure is a normal computer language +" you could use a loop with if statements and continue statements, +" However, these constructs are not available in vi macros so I have used +" a state machine with 8 states. Each state signifies the direction you +" are going in and whether or not you have checked if there is a wall on +" your left. +" +" The transition from state to state and the actions taken on each transition +" are given in the state table below. +" The names of the states are N1, N2, S1, S2, E1, E2, W1, W2, where each letter +" stands for a direction of the compass, the number 1 indicates that the we +" have not yet checked to see if there is a wall on our left and the number 2 +" indicates that we have checked and there is a wall on our left. +" +" For each state we must consider the existence or not of a wall in a +" particular direction. This direction is given in the following table. +" +" NextChar table: +" state direction vi commands +" N1 W hF +" N2 N kF +" S1 E lF +" S2 S F +" E1 N kF +" E2 E lF +" W1 S F +" W2 W hF +" +" where F is a macro which yanks the character under the cursor into +" the NextChar register (n). +" +" State table: +" In the 'vi commands' column is given the actions to carry out when in +" this state and the NextChar is as given. The commands k, j, ll, hh move +" the current position north, south, east and west respectively. The +" command mm is used as a no-op command. +" In the 'next state' column is given the new state of the machine after +" the action is carried out. +" +" current state NextChar vi commands next state +" N1 . hh W1 +" N1 | mm N2 +" N2 _ mm E1 +" N2 space k N1 +" S1 . ll E1 +" S1 | mm S2 +" S2 _ mm W1 +" S2 space j S1 +" E1 space k N1 +" E1 _ mm E2 +" E2 | mm S1 +" E2 . ll E1 +" W1 space j S1 +" W1 _ mm W2 +" W2 | mm N1 +" W2 . hh W1 +" +" +" Complaint about vi macros: +" It seems that you cannot have more than one 'undo-able' vi command +" in the one macro, so you have to make lots of little macros and +" put them together. +" +" I'll explain what I mean by an example. Edit a file and +" type ':map Q rXY'. This should map the Q key to 'replace the +" character under the cursor with X and yank the line'. +" But when I type Q, vi tells me 'Can't yank inside global/macro' and +" goes into ex mode. However if I type ':map Q rXT' and ':map T Y', +" everything is OK. I`m doing all this on a Sparcstation. +" If anyone reading this has an answer to this problem, the author would +" love to find out. Mail to gregm@otc.otca.oz.au. +" +" The macros: +" The macro to run the maze solver is 'g'. This simply calls two other +" macros: I, to initialise everything, and L, to loop forever running +" through the state table. +" Both of these macros are long sequences of calls to other macros. All +" of these other macros are quite simple and so to understand how this +" works, all you need to do is examine macros I and L and learn what they +" do (a simple sequence of vi actions) and how L loops (by calling U, which +" simply calls L again). +" +" Macro I sets up the state table and NextChar table at the end of the file. +" Macro L then searches these tables to find out what actions to perform and +" what state changes to make. +" +" The entries in the state table all begin with a key consisting of the +" letter 's', the current state and the NextChar. After this is the +" action to take in this state and after this is the next state to change to. +" +" The entries in the NextChar table begin with a key consisting of the +" letter 'n' and the current state. After this is the action to take to +" obtain NextChar - the character that must be examined to change state. +" +" One way to see what each part of the macros is doing is to type in the +" body of the macros I and L manually (instead of typing 'g') and see +" what happens at each step. +" +" Good luck. +" +" Registers used by the macros: +" s (State) - holds the state the machine is in +" c (Char) - holds the character under the current position +" m (Macro) - holds a vi command string to be executed later +" n (NextChar) - holds the character we must examine to change state +" r (Second Macro) - holds a second vi command string to be executed later +" +set remap +set nomagic +set noterse +set wrapscan +" +"================================================================ +" g - go runs the whole show +" I - initialise +" L - then loop forever +map g IL +" +"================================================================ +" I - initialise everything before running the loop +" G$?.^M - find the last . in the maze +" ^ - replace it with an X (the goal) +" GYKeDP - print the state table and next char table at the end of the file +" 0S - initialise the state of the machine to E1 +" 2Gl - move to the top left cell of the maze +map I G$?. ^GYKeDP0S2Gl +" +"================================================================ +" L - the loop which is executed forever +" Q - save the current character in the Char register +" A - replace the current character with an 'O' +" ma - mark the current position with mark 'a' +" GNB - on bottom line, create a command to search the NextChar table +" for the current state +" 0M0E@m^M - yank the command into the Macro register and execute it +" wX - we have now found the entry in the table, now yank the +" following word into the Macro register +" `a@m - go back to the current position and execute the macro, this will +" yank the NextChar in register n +" GT$B$R - on bottom line, create a command to search the state table +" for the current state and NextChar +" 0M0E@m^M - yank the command into the Macro register and execute it +" 2WS - we have now found the entry in the table, now yank the +" next state into the State macro +" bX - and yank the action corresponding to this state table entry +" into the Macro register +" GVJ - on bottom line, create a command to restore the current character +" 0H - and save the command into the second Macro register +" `a@r - go back to the current position and execute the macro to restore +" the current character +" @m - execute the action associated with this state +" U - and repeat +map L QAmaGNB0M0E@m wX`a@mGT$B$R0M0E@m 2WSbXGVJ0H`a@r@mU +" +"================================================================ +" U - no tail recursion allowed in vi macros so cheat and set U = L +map U L +" +"================================================================ +" S - yank the next two characters into the State register +map S "sy2l +" +"================================================================ +" Q - save the current character in the Char register +map Q "cyl +" +"================================================================ +" A - replace the current character with an 'O' +map A rO +" +"================================================================ +" N - replace this line with the string 'n' +map N C/n +" +"================================================================ +" B - put the current state +map B "sp +" +"================================================================ +" M - yank this line into the Macro register +map M "my$ +" +"================================================================ +" E - delete to the end of the line +map E d$ +" +"================================================================ +" X - yank this word into the Macro register +map X "myt +" +"================================================================ +" T - replace this line with the string 's' +map T C/s +" +"================================================================ +" R - put NextChar +map R "np +" +"================================================================ +" V - add the letter 'r' (the replace vi command) +map V ar +" +"================================================================ +" J - restore the current character +map J "cp +" +"================================================================ +" H - yank this line into the second Macro register +map H "ry$ +" +"================================================================ +" F - yank NextChar (this macro is called from the Macro register) +map F "nyl +" +"================================================================ +" ^ - replace the current character with an 'X' +map ^ rX +" +"================================================================ +" YKeDP - create the state table, NextChar table and initial state +" Note that you have to escape the bar character, since it is special to +" the map command (it indicates a new line). +map Y osE1 k N1 sE1_ mm E2 sE2| mm S1 sE2. ll E1 +map K osW1 j S1 sW1_ mm W2 sW2| mm N1 sW2. hh W1 +map e osN1. hh W1 sN1| mm N2 sN2 k N1 sN2_ mm E1 +map D osS1. ll E1 sS1| mm S2 sS2 j S1 sS2_ mm W1 +map P onE1 kF nE2 lF nW1 G$JF nW2 hF nN1 hF nN2 kF nS1 lF nS2 G$JF E1 diff --git a/git/usr/share/vim/vim92/macros/maze/poster b/git/usr/share/vim/vim92/macros/maze/poster new file mode 100644 index 0000000000000000000000000000000000000000..9114f598d0ac47bf4db27b1434bbb9fbb8356d51 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/maze/poster @@ -0,0 +1,37 @@ +Article 2846 of alt.sources: +Path: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm +From: gregm@otc.otca.oz.au (Greg McFarlane) +Newsgroups: alt.sources +Subject: VI SOLVES MAZE (commented macros) +Message-ID: <2289@otc.otca.oz> +Date: 10 Feb 91 23:31:02 GMT +Sender: news@otc.otca.oz +Reply-To: gregm@otc.otca.oz.au (Greg McFarlane) +Organization: OTC Development Unit, Australia +Lines: 464 + +Submitted-by: gregm@otc.otca.oz.au +Archive-name: maze_solving_vi_macros + +A real working model. See it walk the maze in front of your very own eyes. + +To prove that you can do anything in vi, I wrote a couple of macros that +allows vi to solve mazes. It will solve any maze produced by maze.c +that was posted to the alt.sources last month. (Maze.c is also included +in this posting as well as an example of its output.) + +The uncommented version of the macros was sent to alt.sources last month. +However, so many people mailed me requesting the commented version of the +macros that I decided to post it. I have made some modifications to the +original macros to make them easier to follow and also after I learnt +that you can escape the special meaning of '|' in macros by using '^V|'. + +Save this article and unshar it. Then read maze.README. + +After studying these macros, anyone who cannot write an emacs emulator +in vi macros should just curl up and :q!. + +Coming soon to a newsgroup near you: "Vi macros solve Tower of Hanoi", +and a repost of the original "Turing Machine implemented in Vi macros" + +Anyone who has a version of these macros for edlin or nroff, please post. diff --git a/git/usr/share/vim/vim92/macros/urm/README.txt b/git/usr/share/vim/vim92/macros/urm/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..39958136890dee3a85d7ccc9efa3f3363ea52d83 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/urm/README.txt @@ -0,0 +1,47 @@ +This is another proof that Vim is perfectly compatible with Vi. +The URM macro package was written by Rudolf Koenig ("Rudi") +(rudolf@koeniglich.de) for hpux-vi in August 1991. + +Getting started: + +type +in your shell: vim urm +in vim: :so urm.vim +in vim: * (to load the registers and boot the URM-machine :-) +in vim: g (for 'go') and watch the fun. Per default, 3 and 4 + are multiplied. Watch the Program counter, it is + visible as a comma moving around. + +This is a "standard URM" (Universal register machine) interpreter. The URM +concept is used in theoretical computer science to aid in theorem proving. +Here it proves that vim is a general problem solver (if you bring enough +patience). + +The interpreter begins with register 1 (not 0), without macros and more-lines +capability. A dot marks the end of a program. (Bug: there must be a space +after the dot.) + +The registers are the first few lines, beginning with a '>' . +The program is the first line after the registers. +You should always initialize the registers required by the program. + +Output register: line 2 +Input registers: line 2 to ... + +Commands: +a increment register +s decrement register +; execute command and then +() execute command while register is nonzero +. ("dot blank") halt the machine. + +Examples: + +Add register 2 to register 3: + (a2;s3)3. +Multiply register 2 with register 3: + (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3. + +There are more (complicated) examples in the file examples. +Note, undo may take a while after a division. + diff --git a/git/usr/share/vim/vim92/macros/urm/examples b/git/usr/share/vim/vim92/macros/urm/examples new file mode 100644 index 0000000000000000000000000000000000000000..9907d4aefe89c2e12a19d774726818678b98c480 --- /dev/null +++ b/git/usr/share/vim/vim92/macros/urm/examples @@ -0,0 +1,16 @@ +Note that enough temporary registers should be provided for each example. +All should be initialised to 0. + +Initial register values for benchmarking: 0,8,3,0,... + +Performed on a Xenix 386/16: +Operation [sec, kbyte tmp space]: program + +Asym. Diff.[ 7, 4]: (s2;s3)3. +Abs. Diff. [90,81]: (a1;a4;s2)2; (a2;s1)1; (a1;a5;s3)3; (a3;s1)1; (s2;s3)3; (s5;s4)4; (a2;s5)5. +Add [ 7, 4]: (a2;s3)3. +Mult [227, 161]: (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3. +Copy [ 48, 25]: (a1;a3;s2)2; (a2;s1)1. +sign [ 30, 17]: (a3;s2)2; (a2;(s3)3)3. +!sign[ 36, 28]: (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3. +Div [630,1522]: (a9;s2)2; (a2;a10;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a2)2;(a2;s9)9;(a3;s10)10; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11; ((a12;a13;s3)3; (a3;s13)13; (s2;s3)3; (a3;s12)12; a14; (s1)1; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11)1; (s2)2; (a2;s14)14. diff --git a/git/usr/share/vim/vim92/macros/urm/urm b/git/usr/share/vim/vim92/macros/urm/urm new file mode 100644 index 0000000000000000000000000000000000000000..9cbefb70aa0135a3a75f68827d40cf53297d065f --- /dev/null +++ b/git/usr/share/vim/vim92/macros/urm/urm @@ -0,0 +1,22 @@ +>0 +>3 +>4 +>0 +>0 +>0 +(a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3. +_________ +O ; =xp ( =x%hp ) @l a @db s @dt . =x0xkdd:ready _end_ +o 0 1 2 3 4 5 6 7 8 9 0 +_________ +INIT main(k), l, b, c, t, u, q, d + "kT "lT "bT "cT "tT "uT "qT "dT +=lF'wa/O fpaw"zdt hp@z0"xD@x@k +=2ldwhp'wiGT'wp0P0"yD@ya =xlwP >0 =x%p I k/>0 ww"ydt 0D@y +'wa/o fwF'wpi`ar`aF'wffp0"vD@v0"vDp03x@v'wa @c 0 0 0I f0w"wdt 0D@w +`ahmaF'wa 'aa1 > @b 0p0f>w"vdt 0D@v +'wa/o wfbF'wpi`ar`aF'wffp0"vD@v0"vDp03x@v'wa @u 9 0 0I f9w"wdt 0D@w +`ahmaF'wa `alr0 > @q 0p0f>w"vdt 0D@v +`ahy2l'wa `ax >1 @t 0p0/>1 ww"idt 0D@i +=xwhpbldwhp'wpaG$ma0"yD@y@ + diff --git a/git/usr/share/vim/vim92/macros/urm/urm.vim b/git/usr/share/vim/vim92/macros/urm/urm.vim new file mode 100644 index 0000000000000000000000000000000000000000..310818078342e75c70ed0d4fb8ca9e432ba1f70e --- /dev/null +++ b/git/usr/share/vim/vim92/macros/urm/urm.vim @@ -0,0 +1,5 @@ +map * 1G/INIT j"iT@i1G/INIT dG +map g 1G/^[(as;.] i >,mkkmw@k +map T y$ +map F yl +map = 'kf, diff --git a/git/usr/share/vim/vim92/pack/dist/opt/cfilter/plugin/cfilter.vim b/git/usr/share/vim/vim92/pack/dist/opt/cfilter/plugin/cfilter.vim new file mode 100644 index 0000000000000000000000000000000000000000..7a71de4764f2f87c134c4bc4a98544cec7df64ac --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/cfilter/plugin/cfilter.vim @@ -0,0 +1,72 @@ +vim9script + +# cfilter.vim: Plugin to filter entries from a quickfix/location list +# Last Change: August 16, 2023 +# Maintainer: Yegappan Lakshmanan (yegappan AT yahoo DOT com) +# Version: 2.0 +# +# Commands to filter the quickfix list: +# :Cfilter[!] /{pat}/ +# Create a new quickfix list from entries matching {pat} in the current +# quickfix list. Both the file name and the text of the entries are +# matched against {pat}. If ! is supplied, then entries not matching +# {pat} are used. The pattern can be optionally enclosed using one of +# the following characters: ', ", /. If the pattern is empty, then the +# last used search pattern is used. +# :Lfilter[!] /{pat}/ +# Same as :Cfilter but operates on the current location list. +# + +def Qf_filter(qf: bool, searchpat: string, bang: string) + var Xgetlist: func + var Xsetlist: func + var cmd: string + var firstchar: string + var lastchar: string + var pat: string + var title: string + var Cond: func + var items: list + + if qf + Xgetlist = function('getqflist') + Xsetlist = function('setqflist') + cmd = $':Cfilter{bang}' + else + Xgetlist = function('getloclist', [0]) + Xsetlist = function('setloclist', [0]) + cmd = $':Lfilter{bang}' + endif + + firstchar = searchpat[0] + lastchar = searchpat[-1 :] + if firstchar == lastchar && + (firstchar == '/' || firstchar == '"' || firstchar == "'") + pat = searchpat[1 : -2] + if pat == '' + # Use the last search pattern + pat = @/ + endif + else + pat = searchpat + endif + + if pat == '' + return + endif + + if bang == '!' + Cond = (_, val) => val.text !~# pat && bufname(val.bufnr) !~# pat + else + Cond = (_, val) => val.text =~# pat || bufname(val.bufnr) =~# pat + endif + + items = filter(Xgetlist(), Cond) + title = $'{cmd} /{pat}/' + Xsetlist([], ' ', {title: title, items: items}) +enddef + +command! -nargs=+ -bang Cfilter Qf_filter(true, , ) +command! -nargs=+ -bang Lfilter Qf_filter(false, , ) + +# vim: shiftwidth=2 sts=2 expandtab diff --git a/git/usr/share/vim/vim92/pack/dist/opt/comment/autoload/comment.vim b/git/usr/share/vim/vim92/pack/dist/opt/comment/autoload/comment.vim new file mode 100644 index 0000000000000000000000000000000000000000..74e091c358d471000a0c35bf6f42f00a973072ef --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/comment/autoload/comment.vim @@ -0,0 +1,166 @@ +vim9script + +# Maintainer: Maxim Kim +# Last Update: 2025-06-13 +# +# Toggle comments +# Usage: +# Add following mappings to vimrc: +# import autoload 'dist/comment.vim' +# nnoremap gc comment.Toggle() +# xnoremap gc comment.Toggle() +# nnoremap gcc comment.Toggle() .. '_' +# nnoremap gC comment.Toggle() .. '$' +export def Toggle(...args: list): string + if len(args) == 0 + &opfunc = matchstr(expand(''), '[^. ]*\ze[') + return 'g@' + endif + if empty(&cms) || !&ma | return '' | endif + var cms = substitute(substitute(&cms, '\S\zs%s\s*', ' %s', ''), '%s\ze\S', '%s ', '') + var [lnum1, lnum2] = [line("'["), line("']")] + var cms_l = split(escape(cms, '*.\^$['), '\s*%s\s*') + + var first_col = indent(lnum1) + var start_col = getpos("'[")[2] - 1 + if len(cms_l) == 1 && lnum1 == lnum2 && first_col < start_col + var line_start = getline(lnum1)[0 : start_col - 1] + var line_end = getline(lnum1)[start_col : -1] + line_end = line_end =~ $'\c^\s*{cms_l[0]}' ? + \ substitute(line_end, $'\c^\s*\zs{cms_l[0]}\s\ze\s*', line_end =~ '^\s' ? ' ' : '', '') : + \ printf(substitute(cms, '%s\@!', '%%', ''), line_end) + setline(lnum1, line_start .. line_end) + return '' + endif + + if len(cms_l) == 0 | return '' | endif + if len(cms_l) == 1 | call add(cms_l, '') | endif + var comment = false + var indent_spaces = false + var indent_tabs = false + var indent_min = indent(lnum1) + var indent_start = matchstr(getline(lnum1), '^\s*') + for lnum in range(lnum1, lnum2) + if getline(lnum) =~ '^\s*$' | continue | endif + var indent_str = matchstr(getline(lnum), '^\s*') + if indent_min > indent(lnum) + indent_min = indent(lnum) + indent_start = indent_str + endif + indent_spaces = indent_spaces || (stridx(indent_str, ' ') != -1) + indent_tabs = indent_tabs || (stridx(indent_str, "\t") != -1) + if getline(lnum) !~ $'\c^\s*{cms_l[0]}.*{cms_l[1]}$' + comment = true + endif + endfor + var mixed_indent = indent_spaces && indent_tabs + var lines = [] + var line = '' + for lnum in range(lnum1, lnum2) + if getline(lnum) =~ '^\s*$' + line = getline(lnum) + elseif comment + if exists("g:comment_first_col") || exists("b:comment_first_col") + line = printf(substitute(cms, '%s\@!', '%%', 'g'), getline(lnum)) + else + # consider different whitespace indenting + var indent_current = mixed_indent ? matchstr(getline(lnum), '^\s*') : indent_start + line = printf(indent_current .. substitute(cms, '%s\@!', '%%', 'g'), + strpart(getline(lnum), strlen(indent_current))) + endif + else + line = substitute(getline(lnum), $'\c^\s*\zs{cms_l[0]} \?\| \?{cms_l[1]}$', '', 'g') + endif + add(lines, line) + endfor + noautocmd keepjumps setline(lnum1, lines) + return '' +enddef + + +# Comment text object +# Usage: +# import autoload 'dist/comment.vim' +# onoremap ic comment.ObjComment(v:true) +# onoremap ac comment.ObjComment(v:false) +# xnoremap ic comment.ObjComment(v:true) +# xnoremap ac comment.ObjComment(v:false) +export def ObjComment(inner: bool) + def IsComment(): bool + var stx = map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')->join() + return stx =~? 'Comment' + enddef + + # requires syntax support + if !exists("g:syntax_on") + return + endif + + var pos_init = getcurpos() + + # If not in comment, search next one, + if !IsComment() + if search('\v\k+', 'W', line(".") + 100, 100, () => !IsComment()) <= 0 + return + endif + endif + + # Search for the beginning of the comment block + if IsComment() + if search('\v%(\S+)|%(^\s*$)', 'bW', 0, 200, IsComment) > 0 + search('\v%(\S)|%(^\s*$)', 'W', 0, 200, () => !IsComment()) + else + cursor(1, 1) + search('\v\S+', 'cW', 0, 200) + endif + endif + + var pos_start = getcurpos() + + if !inner + var col = pos_start[2] + var prefix = getline(pos_start[1])[ : col - 2] + while col > 0 && prefix[col - 2] =~ '\s' + col -= 1 + endwhile + pos_start[2] = col + endif + + # Search for the comment end. + if pos_init[1] > pos_start[1] + cursor(pos_init[1], pos_init[2]) + endif + if search('\v%(\S+)|%(^\s*$)', 'W', 0, 200, IsComment) > 0 + search('\S', 'beW', 0, 200, () => !IsComment()) + else + if search('\%$', 'W', 0, 200) > 0 + search('\ze\S', 'beW', line('.'), 200, () => !IsComment()) + endif + endif + + var pos_end = getcurpos() + + if !inner + var spaces = matchstr(getline(pos_end[1]), '\%>.c\s*') + pos_end[2] += spaces->len() + if getline(pos_end[1])[pos_end[2] : ] =~ '^\s*$' + && (pos_start[2] <= 1 || getline(pos_start[1])[ : pos_start[2]] =~ '^\s*$') + if search('\v\s*\_$(\s*\n)+', 'eW', 0, 200) > 0 + pos_end = getcurpos() + endif + endif + endif + + if (pos_end[2] == (getline(pos_end[1])->len() ?? 1)) && pos_start[2] <= 1 + cursor(pos_end[1], 1) + normal! V + cursor(pos_start[1], 1) + else + cursor(pos_end[1], pos_end[2]) + normal! v + if &selection == 'exclusive' + normal! lo + endif + cursor(pos_start[1], pos_start[2]) + endif +enddef diff --git a/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/comment.txt b/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/comment.txt new file mode 100644 index 0000000000000000000000000000000000000000..2286f07851ab82d43b5f0f74afeb3a237a7a44c3 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/comment.txt @@ -0,0 +1,131 @@ +*comment.txt* For Vim version 9.1. Last change: 2025 Jun 22 + + + VIM REFERENCE MANUAL + +Commenting and un-commenting text. + +============================================================================== + +See |comment-install| on how to activate this package. + +The comment.vim package, allows to toggle comments for a single line, a range +of lines or a selected text object. It defines the following mappings: + + *o_gc* +gc{motion} to toggle comments for the selected motion + *v_gc* +{Visual}gc to comment/uncomment the highlighted lines. + +Since gc operates on a motion, it can be used with any motion, for example _ +to comment the current line, or ip to comment the current paragraph. +Default mappings are defined for `gc_` and `gc$`: + *gcc* +gcc to comment/uncomment current line (same as `gc_`) + + *gC* +gC to comment/uncomment to end of current line (same as `gc$`) + +Commenting to the end of a line using `gC` works whenever the filetype plugin +supports it (that is, whenever the comment marker precedes the code) and falls +back to `gcc` otherwise. + +Note: using `gC` may not always result in valid comment markers depending on +the language used. + +Additionally, the plugin defines a comment text-object which requires syntax +highlighting to be enabled. + *v_ac* *ac* +ac "a comment", select current or next comment. + Leading and trailing white space is included. + Trailing newlines are included too. + *v_ic* *ic* +ic "inner comment", select current or next comment. + +This plugin uses the buffer-local 'commentstring' option value to add or remove +comment markers to the selected lines. Whether it will comment or un-comment +depends on the range of lines to act upon. When all of the lines in range +have comment markers, all lines will be un-commented, if it doesn't, the lines +will be commented out. Blank and empty lines are ignored. + +The value of 'commentstring' is the same for the entire buffer and determined +by its filetype (|filetypes|). To adapt it within the buffer for embedded +languages, you can use a plug-in such as +https://github.com/suy/vim-context-commentstring. + +The comment marker will always be padded with blanks whether or not the +'commentstring' value contains whitespace around "%s". + +If the mapping does not seem to work (or uses wrong comment markers), it might +be because of several reasons: +- the filetype is not detected by Vim, see |new-filetype|, +- filetype plugins are not enabled, see |:filetype-plugin-on| or +- the filetype plugin does not set the (correct) 'commentstring' option. + +You can simply configure this using the following autocommand (e.g. for legacy +Vim script): > + + autocmd Filetype vim :setlocal commentstring="%s + +This example sets the " as start of a comment for legacy Vim script. For Vim9 +script, you would instead use the "#" char: > + + autocmd Filetype vim :setlocal commentstring=#\ %s + +============================================================================== +Options: + +*g:comment_first_col* +*b:comment_first_col* + By default comment chars are added in front of the line, i.e. if the line + was indented, commented line would stay indented as well. + + However some filetypes require a comment char on the first column, use this option + to change default behaviour. + + Use g:comment_first_col to change it globally or b:comment_first_col to + target specific filetype(s). + +*g:comment_mappings* + Set to false to disable the default keyboard mappings, e.g. in your vimrc +> + let g:comment_mappings = v:false +< + This option must be set before the package is activated using |packadd|. + +============================================================================== +Mappings: + +The following || mappings are included, which you can use to customise the +keyboard mappings. + +*(comment-toggle)* + Normal and visual modes, mapped to gc by default + +*(comment-toggle-line)* + Normal mode only, mapped to gcc by default + +*(comment-toggle-end)* + Normal mode only, mapped to gC by default + +*(comment-text-object-inner)* + Operator pending and visual modes, mapped to ic by default + +*(comment-text-object-outer)* + Operator pending and visual modes, mapped to ac by default + +The default keyboard mappings are shown below, you can copy these if you wish +to customise them in your vimrc: +> + nmap gc (comment-toggle) + xmap gc (comment-toggle) + nmap gcc (comment-toggle-line) + nmap gC (comment-toggle-end) + + omap ic (comment-text-object-inner) + omap ac (comment-text-object-outer) + xmap ic (comment-text-object-inner) + xmap ac (comment-text-object-outer) +< +============================================================================== +vim:tw=78:ts=8:fo=tcq2:ft=help: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..6096d114ca9a962a16bd3d9c782bb1314fbec05f --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/comment/doc/tags @@ -0,0 +1,17 @@ +(comment-text-object-inner) comment.txt /*(comment-text-object-inner)* +(comment-text-object-outer) comment.txt /*(comment-text-object-outer)* +(comment-toggle) comment.txt /*(comment-toggle)* +(comment-toggle-end) comment.txt /*(comment-toggle-end)* +(comment-toggle-line) comment.txt /*(comment-toggle-line)* +ac comment.txt /*ac* +b:comment_first_col comment.txt /*b:comment_first_col* +comment.txt comment.txt /*comment.txt* +g:comment_first_col comment.txt /*g:comment_first_col* +g:comment_mappings comment.txt /*g:comment_mappings* +gC comment.txt /*gC* +gcc comment.txt /*gcc* +ic comment.txt /*ic* +o_gc comment.txt /*o_gc* +v_ac comment.txt /*v_ac* +v_gc comment.txt /*v_gc* +v_ic comment.txt /*v_ic* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/comment/plugin/comment.vim b/git/usr/share/vim/vim92/pack/dist/opt/comment/plugin/comment.vim new file mode 100644 index 0000000000000000000000000000000000000000..62817ddfe0e6d394277f28af718b65d16e89e181 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/comment/plugin/comment.vim @@ -0,0 +1,29 @@ +vim9script + +# Maintainer: Maxim Kim +# Last Update: 2025 Mar 21 +# 2025 Jun 22 by Vim Project: add mappings #17563 + +import autoload 'comment.vim' + +nnoremap (comment-toggle) comment.Toggle() +xnoremap (comment-toggle) comment.Toggle() +nnoremap (comment-toggle-line) comment.Toggle() .. '_' +nnoremap (comment-toggle-end) comment.Toggle() .. '$' + +onoremap (comment-text-object-inner) comment.ObjComment(v:true) +onoremap (comment-text-object-outer) comment.ObjComment(v:false) +xnoremap (comment-text-object-inner) comment.ObjComment(v:true) +xnoremap (comment-text-object-outer) comment.ObjComment(v:false) + +if get(g:, 'comment_mappings', true) + nmap gc (comment-toggle) + xmap gc (comment-toggle) + nmap gcc (comment-toggle-line) + nmap gC (comment-toggle-end) + + omap ic (comment-text-object-inner) + omap ac (comment-text-object-outer) + xmap ic (comment-text-object-inner) + xmap ac (comment-text-object-outer) +endif diff --git a/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/disable.vim b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/disable.vim new file mode 100644 index 0000000000000000000000000000000000000000..1e9b0702ff97ab7363f5de94c8a3519e349af31d --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/disable.vim @@ -0,0 +1,72 @@ +" Back to Qwerty keyboard after using Dvorak. + +iunmap a +iunmap b +iunmap c +iunmap d +iunmap e +iunmap f +iunmap g +iunmap h +iunmap i +iunmap j +iunmap k +iunmap l +iunmap m +iunmap n +iunmap o +iunmap p +iunmap q +iunmap r +iunmap s +iunmap t +iunmap u +iunmap v +iunmap w +iunmap x +iunmap y +iunmap z +iunmap ; +iunmap ' +iunmap " +iunmap , +iunmap . +iunmap / +iunmap A +iunmap B +iunmap C +iunmap D +iunmap E +iunmap F +iunmap G +iunmap H +iunmap I +iunmap J +iunmap K +iunmap L +iunmap M +iunmap N +iunmap O +iunmap P +iunmap Q +iunmap R +iunmap S +iunmap T +iunmap U +iunmap V +iunmap W +iunmap X +iunmap Y +iunmap Z +iunmap < +iunmap > +iunmap ? +iunmap : +iunmap [ +iunmap ] +iunmap { +iunmap } +iunmap - +iunmap _ +iunmap = +iunmap + diff --git a/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/enable.vim b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/enable.vim new file mode 100644 index 0000000000000000000000000000000000000000..8ff363fe97e53d35d0a543c0f85aeccd314810e9 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/dvorak/enable.vim @@ -0,0 +1,77 @@ +" Dvorak keyboard, only in Insert mode. +" +" Change "inoremap" to "map!" to also use in Ex mode. +" Also change disable.vim then: "iunmap" to "unmap!". +" +" You may want to add a list of map's too. + +inoremap a a +inoremap b x +inoremap c j +inoremap d e +inoremap e . +inoremap f u +inoremap g i +inoremap h d +inoremap i c +inoremap j h +inoremap k t +inoremap l n +inoremap m m +inoremap n b +inoremap o r +inoremap p l +inoremap q ' +inoremap r p +inoremap s o +inoremap t y +inoremap u g +inoremap v k +inoremap w , +inoremap x q +inoremap y f +inoremap z ; +inoremap ; s +inoremap ' - +inoremap " _ +inoremap , w +inoremap . v +inoremap / z +inoremap A A +inoremap B X +inoremap C J +inoremap D E +inoremap E > +inoremap F U +inoremap G I +inoremap H D +inoremap I C +inoremap J H +inoremap K T +inoremap L N +inoremap M M +inoremap N B +inoremap O R +inoremap P L +inoremap Q " +inoremap R P +inoremap S O +inoremap T Y +inoremap U G +inoremap V K +inoremap W < +inoremap X Q +inoremap Y F +inoremap Z : +inoremap < W +inoremap > V +inoremap ? Z +inoremap : S +inoremap [ / +inoremap ] = +inoremap { ? +inoremap } + +inoremap - [ +inoremap _ { +inoremap = ] +inoremap + } diff --git a/git/usr/share/vim/vim92/pack/dist/opt/dvorak/plugin/dvorak.vim b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/plugin/dvorak.vim new file mode 100644 index 0000000000000000000000000000000000000000..c8d5d5c79fc32babc25503a4b22a3c5cc4a73656 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/dvorak/plugin/dvorak.vim @@ -0,0 +1,16 @@ +" When using a dvorak keyboard this file may be of help to you. +" These mappings have been made by Lawrence Kesteloot . +" What they do is that the most often used keys, like hjkl, are put in a more +" easy to use position. +" It may take some time to learn using this. + +if exists("g:loaded_dvorak_plugin") + finish +endif +let g:loaded_dvorak_plugin = 1 + +" Key to go into dvorak mode: +map ,d :runtime dvorak/enable.vim + +" Key to get out of dvorak mode: +map ,q :runtime dvorak/disable.vim diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editexisting/plugin/editexisting.vim b/git/usr/share/vim/vim92/pack/dist/opt/editexisting/plugin/editexisting.vim new file mode 100644 index 0000000000000000000000000000000000000000..52e80c142ee211353de00006b857a3b8da232cd8 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editexisting/plugin/editexisting.vim @@ -0,0 +1,118 @@ +" Vim Plugin: Edit the file with an existing Vim if possible +" Maintainer: The Vim Project +" Last Change: 2023 Aug 13 + +" To use add ":packadd! editexisting" in your vimrc file. + +" This plugin serves two purposes: +" 1. On startup, if we were invoked with one file name argument and the file +" is not modified then try to find another Vim instance that is editing +" this file. If there is one then bring it to the foreground and exit. +" 2. When a file is edited and a swap file exists for it, try finding that +" other Vim and bring it to the foreground. Requires Vim 7, because it +" uses the SwapExists autocommand event. + +" Function that finds the Vim instance that is editing "filename" and brings +" it to the foreground. +func s:EditElsewhere(filename) + let fname_esc = substitute(a:filename, "'", "''", "g") + + let servers = serverlist() + while servers != '' + " Get next server name in "servername"; remove it from "servers". + let i = match(servers, "\n") + if i == -1 + let servername = servers + let servers = '' + else + let servername = strpart(servers, 0, i) + let servers = strpart(servers, i + 1) + endif + + " Skip ourselves. + if servername ==? v:servername + continue + endif + + " Check if this server is editing our file. + try + if remote_expr(servername, "bufloaded('" . fname_esc . "')") + " Yes, bring it to the foreground. + if has("win32") + call remote_foreground(servername) + endif + call remote_expr(servername, "foreground()") + + if remote_expr(servername, "exists('*EditExisting')") + " Make sure the file is visible in a window (not hidden). + " If v:swapcommand exists and is set, send it to the server. + if exists("v:swapcommand") + let c = substitute(v:swapcommand, "'", "''", "g") + call remote_expr(servername, "EditExisting('" . fname_esc . "', '" . c . "')") + else + call remote_expr(servername, "EditExisting('" . fname_esc . "', '')") + endif + endif + + if !(has('vim_starting') && has('gui_running') && has('gui_win32')) + " Tell the user what is happening. Not when the GUI is starting + " though, it would result in a message box. + echomsg "File is being edited by " . servername + sleep 2 + endif + return 'q' + endif + catch /^Vim\%((\a\+)\)\=:E241:/ + " Unable to send to this server, ignore it. + endtry + endwhile + return '' +endfunc + +" When the plugin is loaded and there is one file name argument: Find another +" Vim server that is editing this file right now. +if argc() == 1 && !&modified + if s:EditElsewhere(expand("%:p")) == 'q' + quit + endif +endif + +" Setup for handling the situation that an existing swap file is found. +try + au! SwapExists * let v:swapchoice = s:EditElsewhere(expand(":p")) +catch + " Without SwapExists we don't do anything for ":edit" commands +endtry + +" Function used on the server to make the file visible and possibly execute a +" command. +func! EditExisting(fname, command) + " Get the window number of the file in the current tab page. + let winnr = bufwinnr(a:fname) + if winnr <= 0 + " Not found, look in other tab pages. + let bufnr = bufnr(a:fname) + for i in range(tabpagenr('$')) + if index(tabpagebuflist(i + 1), bufnr) >= 0 + " Make this tab page the current one and find the window number. + exe 'tabnext ' . (i + 1) + let winnr = bufwinnr(a:fname) + break + endif + endfor + endif + + if winnr > 0 + exe winnr . "wincmd w" + elseif exists('*fnameescape') + exe "split " . fnameescape(a:fname) + else + exe "split " . escape(a:fname, " \t\n*?[{`$\\%#'\"|!<") + endif + + if a:command != '' + exe "normal! " . a:command + endif + + redraw +endfunc diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/.editorconfig b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..7eed9e111df93d8eec95b50fce0e89101579c50a --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/.editorconfig @@ -0,0 +1,27 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +max_line_length = 80 + +[*.{vim,sh}] +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 80 + +[*.rb] +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = 120 + +[*.yml] +indent_style = space +indent_size = 2 + +[*.{bat,vbs,ps1}] +end_of_line = CRLF diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/CONTRIBUTORS b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/CONTRIBUTORS new file mode 100644 index 0000000000000000000000000000000000000000..b799668c8773c71ffd5825bec6a9a782be3b4d4d --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/CONTRIBUTORS @@ -0,0 +1,6 @@ +Contributors to the EditorConfig Vim Plugin: + +Hong Xu +Trey Hunner +Kent Frazier +Chris White diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ed9286e0aa598b3538e955752f48697ab3a275e8 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE @@ -0,0 +1,26 @@ +Unless otherwise stated, all files are distributed under the Simplified BSD +license included below. + +Copyright (c) 2011-2019 EditorConfig Team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE.PSF b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE.PSF new file mode 100644 index 0000000000000000000000000000000000000000..36eb8e0d3b2c79ab344f3242eaabed22c58e60bf --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/LICENSE.PSF @@ -0,0 +1,53 @@ +Some code in editorconfig-vim is derived from code licensed under the +PSF license. The following is the text of that license, retrieved 2019-05-05 +from https://docs.python.org/2.6/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python + +PSF LICENSE AGREEMENT FOR PYTHON 2.6.9 + +1. This LICENSE AGREEMENT is between the Python Software Foundation +(``PSF''), and the Individual or Organization (``Licensee'') accessing and +otherwise using Python 2.6.9 software in source or binary form and its +associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python 2.6.9 +alone or in any derivative version, provided, however, that PSF's +License Agreement and PSF's notice of copyright, i.e., ``Copyright (c) +2001-2010 Python Software Foundation; All Rights Reserved'' are +retained in Python 2.6.9 alone or in any derivative version prepared +by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python 2.6.9 or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python 2.6.9. + +4. PSF is making Python 2.6.9 available to Licensee on an ``AS IS'' +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. +BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY +REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.6.9 WILL NOT INFRINGE +ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +2.6.9 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.6.9, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python 2.6.9, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + +# vi: set ft=: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/README.md b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/README.md new file mode 100644 index 0000000000000000000000000000000000000000..961c9ae2d2ceb1fca75f0f278715c1c0180ed464 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/README.md @@ -0,0 +1,148 @@ +# EditorConfig Vim Plugin + +[![Travis Build Status](https://img.shields.io/travis/cxw42/editorconfig-vim.svg?logo=travis)](https://travis-ci.org/editorconfig/editorconfig-vim) +[![Appveyor Build Status](https://img.shields.io/appveyor/ci/cxw42/editorconfig-vim.svg?logo=appveyor)](https://ci.appveyor.com/project/cxw42/editorconfig-vim) + +This is an [EditorConfig][] plugin for Vim. This plugin can be found on both +[GitHub][] and [Vim online][]. + +## Installation + +To install this plugin, you can use one of the following ways: + +### Install with the archive + +Download the [archive][] and extract it into your Vim runtime directory +(`~/.vim` on UNIX/Linux and `$VIM_INSTALLATION_FOLDER\vimfiles` on windows). +You should have 4 sub-directories in this runtime directory now: "autoload", +"doc", "ftdetect" and "plugin". + +### Install as Vim8 plugin + +Install as a Vim 8 plugin. Note `local` can be any name, but some path +element must be present. On Windows, instead of `~/.vim` use +`$VIM_INSTALLATION_FOLDER\vimfiles`. +```shell +mkdir -p ~/.vim/pack/local/start +cd ~/.vim/pack/local/start +git clone https://github.com/editorconfig/editorconfig-vim.git +``` + +### Install with [pathogen][] + +Use pathogen (the git repository of this plugin is +https://github.com/editorconfig/editorconfig-vim.git) + +### Install with [Vundle][] + +Use Vundle by adding to your `.vimrc` Vundle plugins section: + +```viml +Plugin 'editorconfig/editorconfig-vim' +``` + +Then call `:PluginInstall`. + +### Install with [vim-plug][] + +Use vim-plug by adding to your `.vimrc` in your plugin section: + +```viml +Plug 'editorconfig/editorconfig-vim' +``` + +Source your `.vimrc` by calling `:source $MYVIMRC`. + +Then call `:PlugInstall`. + +### No external editorconfig core library is required + +Previous versions of this plugin also required a Python "core". +The core included the code to parse `.editorconfig` files. +This plugin **includes** the core, so you don't need to download the +core separately. + +## Supported properties + +The EditorConfig Vim plugin supports the following EditorConfig [properties][]: + +* `indent_style` +* `indent_size` +* `tab_width` +* `end_of_line` +* `charset` +* `insert_final_newline` (Feature `+fixendofline`, available on Vim 7.4.785+, + or [PreserveNoEOL][] is required for this property) +* `trim_trailing_whitespace` +* `max_line_length` +* `root` (only used by EditorConfig core) + +## Selected Options + +The supported options are documented in [editorconfig.txt][] +and can be viewed by executing the following: `:help editorconfig`. You may +need to execute `:helptags ALL` so that Vim is aware of editorconfig.txt. + +### Excluded patterns + +To ensure that this plugin works well with [Tim Pope's fugitive][], use the +following patterns array: + +```viml +let g:EditorConfig_exclude_patterns = ['fugitive://.*'] +``` + +If you wanted to avoid loading EditorConfig for any remote files over ssh: + +```viml +let g:EditorConfig_exclude_patterns = ['scp://.*'] +``` + +Of course these two items could be combined into the following: + +```viml +let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] +``` + +### Disable for a specific filetype + +You can disable this plugin for a specific buffer by setting +`b:EditorConfig_disable`. Therefore, you can disable the +plugin for all buffers of a specific filetype. For example, to disable +EditorConfig for all git commit messages (filetype `gitcommit`): + +```viml +au FileType gitcommit let b:EditorConfig_disable = 1 +``` + +### Disable rules + +In very rare cases, +you might need to override some project-specific EditorConfig rules in global +or local vimrc in some cases, e.g., to resolve conflicts of trailing whitespace +trimming and buffer autosaving. This is not recommended, but you can: + +```viml +let g:EditorConfig_disable_rules = ['trim_trailing_whitespace'] +``` + +You are able to disable any supported EditorConfig properties. + +## Bugs and Feature Requests + +Feel free to submit bugs, feature requests, and other issues to the +[issue tracker][]. Be sure you have read the [contribution guidelines][]! + +[EditorConfig]: http://editorconfig.org +[GitHub]: https://github.com/editorconfig/editorconfig-vim +[PreserveNoEOL]: http://www.vim.org/scripts/script.php?script_id=4550 +[Tim Pope's fugitive]: https://github.com/tpope/vim-fugitive +[Vim online]: http://www.vim.org/scripts/script.php?script_id=3934 +[Vundle]: https://github.com/gmarik/Vundle.vim +[archive]: https://github.com/editorconfig/editorconfig-vim/archive/master.zip +[contribution guidelines]: https://github.com/editorconfig/editorconfig/blob/master/CONTRIBUTING.md#submitting-an-issue +[issue tracker]: https://github.com/editorconfig/editorconfig-vim/issues +[pathogen]: https://github.com/tpope/vim-pathogen +[properties]: http://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties +[editorconfig.txt]: https://github.com/editorconfig/editorconfig-vim/blob/master/doc/editorconfig.txt +[vim-plug]: https://github.com/junegunn/vim-plug diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..fd97f69bd2b33c75cf05e6bd66f005e1d471cbdf --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig.vim @@ -0,0 +1,60 @@ +" autoload/editorconfig.vim: EditorConfig native Vim script plugin +" Copyright (c) 2011-2019 EditorConfig Team +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. +" + +if v:version < 700 + finish +endif + +let s:saved_cpo = &cpo +set cpo&vim + +" {{{1 variables +let s:hook_list = [] + +function! editorconfig#AddNewHook(func) " {{{1 + " Add a new hook + + call add(s:hook_list, a:func) +endfunction + +function! editorconfig#ApplyHooks(config) abort " {{{1 + " apply hooks + + for Hook in s:hook_list + let l:hook_ret = Hook(a:config) + + if type(l:hook_ret) != type(0) && l:hook_ret != 0 + " TODO print some debug info here + endif + endfor +endfunction + +" }}} + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vim: fdm=marker fdc=3 diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core.vim new file mode 100644 index 0000000000000000000000000000000000000000..6885e17cf09f6b19ed2beacdd79bd3689d7ebf1f --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core.vim @@ -0,0 +1,147 @@ +" autoload/editorconfig_core.vim: top-level functions for +" editorconfig-core-vimscript and editorconfig-vim. + +" Copyright (c) 2018-2020 EditorConfig Team, including Chris White {{{1 +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. }}}1 + +let s:saved_cpo = &cpo +set cpo&vim + +" Variables {{{1 + +" Note: we create this variable in every script that accesses it. Normally, I +" would put this in plugin/editorconfig.vim. However, in some of my tests, +" the command-line testing environment did not load plugin/* in the normal +" way. Therefore, I do the check everywhere so I don't have to special-case +" the command line. + +if !exists('g:editorconfig_core_vimscript_debug') + let g:editorconfig_core_vimscript_debug = 0 +endif +" }}}1 + +" The latest version of the specification that we support. +" See discussion at https://github.com/editorconfig/editorconfig/issues/395 +function! editorconfig_core#version() + return [0,13,0] +endfunction + +" === CLI =============================================================== {{{1 + +" For use from the command line. Output settings for in_name to +" the buffer named out_name. If an optional argument is provided, it is the +" name of the config file to use (default '.editorconfig'). +" TODO support multiple files +" +" filename (if any) +" @param names {Dictionary} The names of the files to use for this run +" - output [required] Where the editorconfig settings should be written +" - target [required] A string or list of strings to process. Each +" must be a full path. +" - dump [optional] If present, write debug info to this file +" @param job {Dictionary} What to do - same format as the input of +" editorconfig_core#handler#get_configurations(), +" except without the target member. + +function! editorconfig_core#currbuf_cli(names, job) " out_name, in_name, ... + let l:output = [] + + " Preprocess the job + let l:job = deepcopy(a:job) + + if has_key(l:job, 'version') " string to list + let l:ver = split(editorconfig_core#util#strip(l:job.version), '\v\.') + for l:idx in range(len(l:ver)) + let l:ver[l:idx] = str2nr(l:ver[l:idx]) + endfor + + let l:job.version = l:ver + endif + + " TODO provide version output from here instead of the shell script +" if string(a:names) ==? 'version' +" return +" endif +" + if type(a:names) != type({}) || type(a:job) != type({}) + throw 'Need two Dictionary arguments' + endif + + if has_key(a:names, 'dump') + execute 'redir! > ' . fnameescape(a:names.dump) + echom 'Names: ' . string(a:names) + echom 'Job: ' . string(l:job) + let g:editorconfig_core_vimscript_debug = 1 + endif + + if type(a:names['target']) == type([]) + let l:targets = a:names.target + else + let l:targets = [a:names.target] + endif + + for l:target in l:targets + + " Pre-process quoting weirdness so we are more flexible in the face + " of CMake+CTest+BAT+Powershell quoting. + + " Permit wrapping in double-quotes + let l:target = substitute(l:target, '\v^"(.*)"$', '\1', '') + + " Permit empty ('') entries in l:targets + if strlen(l:target)<1 + continue + endif + + if has_key(a:names, 'dump') + echom 'Trying: ' . string(l:target) + endif + + let l:job.target = l:target + let l:options = editorconfig_core#handler#get_configurations(l:job) + + if has_key(a:names, 'dump') + echom 'editorconfig_core#currbuf_cli result: ' . string(l:options) + endif + + if len(l:targets) > 1 + let l:output += [ '[' . l:target . ']' ] + endif + + for [ l:key, l:value ] in items(l:options) + let l:output += [ l:key . '=' . l:value ] + endfor + + endfor "foreach target + + " Write the output file + call writefile(l:output, a:names.output) +endfunction "editorconfig_core#currbuf_cli + +" }}}1 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vi: set fdm=marker fo-=ro: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/fnmatch.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/fnmatch.vim new file mode 100644 index 0000000000000000000000000000000000000000..ef9ced9fdccf1a561675cbd9fd5e0254cbbe9db0 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/fnmatch.vim @@ -0,0 +1,467 @@ +" autoload/editorconfig_core/fnmatch.vim: Globbing for +" editorconfig-vim. Ported from the Python core's fnmatch.py. + +" Copyright (c) 2012-2019 EditorConfig Team {{{1 +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. }}}1 + +"Filename matching with shell patterns. +" +"fnmatch(FILENAME, PATH, PATTERN) matches according to the local convention. +"fnmatchcase(FILENAME, PATH, PATTERN) always takes case in account. +" +"The functions operate by translating the pattern into a regular +"expression. They cache the compiled regular expressions for speed. +" +"The function translate(PATTERN) returns a regular expression +"corresponding to PATTERN. (It does not compile it.) + +let s:saved_cpo = &cpo +set cpo&vim + +" variables {{{1 +if !exists('g:editorconfig_core_vimscript_debug') + let g:editorconfig_core_vimscript_debug = 0 +endif +" }}}1 +" === Regexes =========================================================== {{{1 +let s:LEFT_BRACE = '\v[\\]@8= 128) ? ' . + \ 'printf("%%U%08x", char2nr(submatch(1))) : ' . + \ '("\\" . submatch(1))' . + \ ')' +lockvar s:replacement_expr + +" Escaper for very-magic regexes +function! s:re_escape(text) + return substitute(a:text, '\v([^0-9a-zA-Z_])', s:replacement_expr, 'g') +endfunction + +"def translate(pat, nested=0): +" Translate a shell PATTERN to a regular expression. +" There is no way to quote meta-characters. +function! editorconfig_core#fnmatch#translate(pat, ...) + let l:nested = 0 + if a:0 + let l:nested = a:1 + endif + + if g:editorconfig_core_vimscript_debug + echom '- fnmatch#translate: pattern ' . a:pat + echom printf( + \ '- %d chars', strlen(substitute(a:pat, ".", "x", "g"))) + call s:dump_chars(a:pat) + endif + + let l:pat = a:pat " TODO remove if we wind up not needing this + + " Note: the Python sets MULTILINE and DOTALL, but Vim has \_. + " instead of DOTALL, and \_^ / \_$ instead of MULTILINE. + + let l:is_escaped = 0 + + " Find out whether the pattern has balanced braces. + let l:left_braces=[] + let l:right_braces=[] + call substitute(l:pat, s:LEFT_BRACE, '\=add(l:left_braces, 1)', 'g') + call substitute(l:pat, s:RIGHT_BRACE, '\=add(l:right_braces, 1)', 'g') + " Thanks to http://jeromebelleman.gitlab.io/posts/productivity/vimsub/ + let l:matching_braces = (len(l:left_braces) == len(l:right_braces)) + + " Unicode support (#2). Indexing l:pat[l:index] returns bytes, per + " https://github.com/neovim/neovim/issues/68#issue-28114985 . + " Instead, use split() per vimdoc to break the input string into an + " array of *characters*, and process that. + let l:characters = split(l:pat, '\zs') + + let l:index = 0 " character index + let l:length = len(l:characters) + let l:brace_level = 0 + let l:in_brackets = 0 + + let l:result = '' + let l:numeric_groups = [] + while l:index < l:length + let l:current_char = l:characters[l:index] + let l:index += 1 + +" if g:editorconfig_core_vimscript_debug +" echom ' - fnmatch#translate: ' . l:current_char . '@' . +" \ (l:index-1) . '; result ' . l:result +" endif + + if l:current_char ==# '*' + let l:pos = l:index + if l:pos < l:length && l:characters[l:pos] ==# '*' + let l:result .= '\_.*' + let l:index += 1 " skip the second star + else + let l:result .= '[^/]*' + endif + + elseif l:current_char ==# '?' + let l:result .= '\_[^/]' + + elseif l:current_char ==# '[' + if l:in_brackets + let l:result .= '\[' + else + let l:pos = l:index + let l:has_slash = 0 + while l:pos < l:length && l:characters[l:pos] != ']' + if l:characters[l:pos] ==# '/' && l:characters[l:pos-1] !=# '\' + let has_slash = 1 + break + endif + let l:pos += 1 + endwhile + if l:has_slash + " POSIX IEEE 1003.1-2017 sec. 2.13.3: '/' cannot occur + " in a bracket expression, so [/] matches a literal + " three-character string '[' . '/' . ']'. + let l:result .= '\[' + \ . s:re_escape(join(l:characters[l:index : l:pos-1], '')) + \ . '\/' + " escape the slash + let l:index = l:pos + 1 + " resume after the slash + else + if l:index < l:length && l:characters[l:index] =~# '\v%(\^|\!)' + let l:index += 1 + let l:result .= '[^' + else + let l:result .= '[' + endif + let l:in_brackets = 1 + endif + endif + + elseif l:current_char ==# '-' + if l:in_brackets + let l:result .= l:current_char + else + let l:result .= '\' . l:current_char + endif + + elseif l:current_char ==# ']' + if l:in_brackets && !l:is_escaped + let l:result .= ']' + let l:in_brackets = 0 + elseif l:is_escaped + let l:result .= '\]' + let l:is_escaped = 0 + else + let l:result .= '\]' + endif + + elseif l:current_char ==# '{' + let l:pos = l:index + let l:has_comma = 0 + while l:pos < l:length && (l:characters[l:pos] !=# '}' || l:is_escaped) + if l:characters[l:pos] ==# ',' && ! l:is_escaped + let l:has_comma = 1 + break + endif + let l:is_escaped = l:characters[l:pos] ==# '\' && ! l:is_escaped + let l:pos += 1 + endwhile + if ! l:has_comma && l:pos < l:length + let l:num_range = + \ matchlist(join(l:characters[l:index : l:pos-1], ''), + \ s:NUMERIC_RANGE) + if len(l:num_range) > 0 " Remember the ranges + call add(l:numeric_groups, [ 0+l:num_range[1], 0+l:num_range[2] ]) + let l:result .= '([+-]?\d+)' + else + let l:inner_xlat = editorconfig_core#fnmatch#translate( + \ join(l:characters[l:index : l:pos-1], ''), 1) + let l:inner_result = l:inner_xlat[0] + let l:inner_groups = l:inner_xlat[1] + let l:result .= '\{' . l:inner_result . '\}' + let l:numeric_groups += l:inner_groups + endif + let l:index = l:pos + 1 + elseif l:matching_braces + let l:result .= '%(' + let l:brace_level += 1 + else + let l:result .= '\{' + endif + + elseif l:current_char ==# ',' + if l:brace_level > 0 && ! l:is_escaped + let l:result .= '|' + else + let l:result .= '\,' + endif + + elseif l:current_char ==# '}' + if l:brace_level > 0 && ! l:is_escaped + let l:result .= ')' + let l:brace_level -= 1 + else + let l:result .= '\}' + endif + + elseif l:current_char ==# '/' + if join(l:characters[l:index : (l:index + 2)], '') ==# '**/' + let l:result .= '%(/|/\_.*/)' + let l:index += 3 + else + let l:result .= '\/' + endif + + elseif l:current_char != '\' + let l:result .= s:re_escape(l:current_char) + endif + + if l:current_char ==# '\' + if l:is_escaped + let l:result .= s:re_escape(l:current_char) + endif + let l:is_escaped = ! l:is_escaped + else + let l:is_escaped = 0 + endif + + endwhile + + if ! l:nested + let l:result .= '\_$' + endif + + return [l:result, l:numeric_groups] +endfunction " #editorconfig_core#fnmatch#translate + +let s:_cache = {} +function! s:cached_translate(pat) + if ! has_key(s:_cache, a:pat) + "regex = re.compile(res) + let s:_cache[a:pat] = + \ editorconfig_core#fnmatch#translate(a:pat) + " we don't compile the regex + endif + return s:_cache[a:pat] +endfunction " cached_translate + +" }}}1 +" === Matching functions ================================================ {{{1 + +function! editorconfig_core#fnmatch#fnmatch(name, path, pattern) +"def fnmatch(name, pat): +" """Test whether FILENAME matches PATH/PATTERN. +" +" Patterns are Unix shell style: +" +" - ``*`` matches everything except path separator +" - ``**`` matches everything +" - ``?`` matches any single character +" - ``[seq]`` matches any character in seq +" - ``[!seq]`` matches any char not in seq +" - ``{s1,s2,s3}`` matches any of the strings given (separated by commas) +" +" An initial period in FILENAME is not special. +" Both FILENAME and PATTERN are first case-normalized +" if the operating system requires it. +" If you don't want this, use fnmatchcase(FILENAME, PATTERN). +" """ +" + " Note: This throws away the backslash in '\.txt' on Cygwin, but that + " makes sense since it's Windows under the hood. + " We don't care about shellslash since we're going to change backslashes + " to slashes in just a moment anyway. + let l:localname = fnamemodify(a:name, ':p') + + if editorconfig_core#util#is_win() " normalize + let l:localname = substitute(tolower(l:localname), '\v\\', '/', 'g') + let l:path = substitute(tolower(a:path), '\v\\', '/', 'g') + let l:pattern = tolower(a:pattern) + else + let l:localname = l:localname + let l:path = a:path + let l:pattern = a:pattern + endif + + if g:editorconfig_core_vimscript_debug + echom '- fnmatch#fnmatch testing <' . l:localname . '> against <' . + \ l:pattern . '> wrt <' . l:path . '>' + endif + + return editorconfig_core#fnmatch#fnmatchcase(l:localname, l:path, l:pattern) +endfunction " fnmatch + +function! editorconfig_core#fnmatch#fnmatchcase(name, path, pattern) +"def fnmatchcase(name, pat): +" """Test whether FILENAME matches PATH/PATTERN, including case. +" +" This is a version of fnmatch() which doesn't case-normalize +" its arguments. +" """ +" + let [regex, num_groups] = s:cached_translate(a:pattern) + + let l:escaped_path = s:re_escape(a:path) + let l:regex = '\v' . l:escaped_path . l:regex + + if g:editorconfig_core_vimscript_debug + echom '- fnmatch#fnmatchcase: regex ' . l:regex + call s:dump_chars(l:regex) + echom '- fnmatch#fnmatchcase: checking ' . a:name + call s:dump_chars(a:name) + endif + + let l:match_groups = matchlist(a:name, l:regex)[1:] " [0] = full match + + if g:editorconfig_core_vimscript_debug + echom printf(' Got %d matches', len(l:match_groups)) + endif + + if len(l:match_groups) == 0 + return 0 + endif + + " Check numeric ranges + let pattern_matched = 1 + for l:idx in range(0,len(l:match_groups)) + let l:num = l:match_groups[l:idx] + if l:num ==# '' + break + endif + + let [min_num, max_num] = num_groups[l:idx] + if (min_num > (0+l:num)) || ((0+l:num) > max_num) + let pattern_matched = 0 + break + endif + + " Reject leading zeros without sign. This is very odd --- + " see editorconfig/editorconfig#371. + if match(l:num, '\v^0') != -1 + let pattern_matched = 0 + break + endif + endfor + + if g:editorconfig_core_vimscript_debug + echom '- fnmatch#fnmatchcase: ' . (pattern_matched ? 'matched' : 'did not match') + endif + + return pattern_matched +endfunction " fnmatchcase + +" }}}1 +" === Copyright notices ================================================= {{{1 +" Based on code from fnmatch.py file distributed with Python 2.6. +" Portions Copyright (c) 2001-2010 Python Software Foundation; +" All Rights Reserved. Licensed under PSF License (see LICENSE.PSF file). +" +" Changes to original fnmatch: +" +" - translate function supports ``*`` and ``**`` similarly to fnmatch C library +" }}}1 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vi: set fdm=marker: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/handler.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/handler.vim new file mode 100644 index 0000000000000000000000000000000000000000..c9a66e16943e782d300db314b212538ac3b05f33 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/handler.vim @@ -0,0 +1,183 @@ +" autoload/editorconfig_core/handler.vim: Main worker for +" editorconfig-core-vimscript and editorconfig-vim. +" Modified from the Python core's handler.py. + +" Copyright (c) 2012-2019 EditorConfig Team {{{1 +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. }}}1 + +let s:saved_cpo = &cpo +set cpo&vim + +" Return full filepath for filename in each directory in and above path. {{{1 +" Input path must be an absolute path. +" TODO shellslash/shellescape? +function! s:get_filenames(path, config_filename) + let l:path = a:path + let l:path_list = [] + while 1 + call add(l:path_list, editorconfig_core#util#path_join(l:path, a:config_filename)) + let l:newpath = fnamemodify(l:path, ':h') + if l:path ==? l:newpath || !strlen(l:path) + break + endif + let l:path = l:newpath + endwhile + return l:path_list +endfunction " get_filenames + +" }}}1 +" === Main ============================================================== {{{1 + +" Find EditorConfig files and return all options matching target_filename. +" Throws on failure. +" @param job {Dictionary} required 'target'; optional 'config' and 'version' +function! editorconfig_core#handler#get_configurations(job) + " TODO? support VERSION checks? + +" Special exceptions that may be raised by this function include: +" - ``VersionError``: self.version is invalid EditorConfig version +" - ``PathError``: self.filepath is not a valid absolute filepath +" - ``ParsingError``: improperly formatted EditorConfig file found + + let l:job = deepcopy(a:job) + if has_key(l:job, 'config') + let l:config_filename = l:job.config + else + let l:config_filename = '.editorconfig' + let l:job.config = l:config_filename + endif + + if has_key(l:job, 'version') + let l:version = l:job.version + else + let l:version = editorconfig_core#version() + let l:job.version = l:version + endif + + let l:target_filename = l:job.target + + "echom 'Beginning job ' . string(l:job) + if !s:check_assertions(l:job) + throw "Assertions failed" + endif + + let l:fullpath = fnamemodify(l:target_filename,':p') + let l:path = fnamemodify(l:fullpath, ':h') + let l:conf_files = s:get_filenames(l:path, l:config_filename) + + " echom 'fullpath ' . l:fullpath + " echom 'path ' . l:path + + let l:retval = {} + + " Attempt to find and parse every EditorConfig file in filetree + for l:conf_fn in l:conf_files + "echom 'Trying ' . l:conf_fn + let l:parsed = editorconfig_core#ini#read_ini_file(l:conf_fn, l:target_filename) + if !has_key(l:parsed, 'options') + continue + endif + " echom ' Has options' + + " Merge new EditorConfig file's options into current options + let l:old_options = l:retval + let l:retval = l:parsed.options + " echom 'Old options ' . string(l:old_options) + " echom 'New options ' . string(l:retval) + call extend(l:retval, l:old_options, 'force') + + " Stop parsing if parsed file has a ``root = true`` option + if l:parsed.root + break + endif + endfor + + call s:preprocess_values(l:job, l:retval) + return l:retval +endfunction " get_configurations + +function! s:check_assertions(job) +" TODO +" """Raise error if filepath or version have invalid values""" + +" # Raise ``PathError`` if filepath isn't an absolute path +" if not os.path.isabs(self.filepath): +" raise PathError("Input file must be a full path name.") + + " Throw if version specified is greater than current + let l:v = a:job.version + let l:us = editorconfig_core#version() + " echom 'Comparing requested version ' . string(l:v) . + " \ ' to our version ' . string(l:us) + if l:v[0] > l:us[0] || l:v[1] > l:us[1] || l:v[2] > l:us[2] + throw 'Required version ' . string(l:v) . + \ ' is greater than the current version ' . string(l:us) + endif + + return 1 " All OK if we got here +endfunction " check_assertions + +" }}}1 + +" Preprocess option values for consumption by plugins. {{{1 +" Modifies its argument in place. +function! s:preprocess_values(job, opts) + + " Lowercase option value for certain options + for l:name in ['end_of_line', 'indent_style', 'indent_size', + \ 'insert_final_newline', 'trim_trailing_whitespace', + \ 'charset'] + if has_key(a:opts, l:name) + let a:opts[l:name] = tolower(a:opts[l:name]) + endif + endfor + + " Set indent_size to "tab" if indent_size is unspecified and + " indent_style is set to "tab", provided we are at least v0.10.0. + if get(a:opts, 'indent_style', '') ==? "tab" && + \ !has_key(a:opts, 'indent_size') && + \ ( a:job.version[0]>0 || a:job.version[1] >=10 ) + let a:opts['indent_size'] = 'tab' + endif + + " Set tab_width to indent_size if indent_size is specified and + " tab_width is unspecified + if has_key(a:opts, 'indent_size') && !has_key(a:opts, 'tab_width') && + \ get(a:opts, 'indent_size', '') !=? "tab" + let a:opts['tab_width'] = a:opts['indent_size'] + endif + + " Set indent_size to tab_width if indent_size is "tab" + if has_key(a:opts, 'indent_size') && has_key(a:opts, 'tab_width') && + \ get(a:opts, 'indent_size', '') ==? "tab" + let a:opts['indent_size'] = a:opts['tab_width'] + endif +endfunction " preprocess_values + +" }}}1 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vi: set fdm=marker fdl=1: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/ini.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/ini.vim new file mode 100644 index 0000000000000000000000000000000000000000..73716969e7020ba38403b803270553c23f5dc480 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/ini.vim @@ -0,0 +1,264 @@ +" autoload/editorconfig_core/ini.vim: Config-file parser for +" editorconfig-core-vimscript and editorconfig-vim. +" Modified from the Python core's ini.py. + +" Copyright (c) 2012-2019 EditorConfig Team {{{2 +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. }}}2 + +let s:saved_cpo = &cpo +set cpo&vim + +" variables {{{2 +if !exists('g:editorconfig_core_vimscript_debug') + let g:editorconfig_core_vimscript_debug = 0 +endif +" }}}2 +" === Constants, including regexes ====================================== {{{2 +" Regular expressions for parsing section headers and options. +" Allow ``]`` and escaped ``;`` and ``#`` characters in section headers. +" In fact, allow \ to escape any single character - it needs to cover at +" least \ * ? [ ! ] { }. +unlockvar s:SECTCRE s:OPTCRE s:MAX_SECTION_NAME s:MAX_PROPERTY_NAME s:MAX_PROPERTY_VALUE +let s:SECTCRE = '\v^\s*\[(%([^\\#;]|\\.)+)\]' + +" Regular expression for parsing option name/values. +" Allow any amount of whitespaces, followed by separator +" (either ``:`` or ``=``), followed by any amount of whitespace and then +" any characters to eol +let s:OPTCRE = '\v\s*([^:=[:space:]][^:=]*)\s*([:=])\s*(.*)$' + +let s:MAX_SECTION_NAME = 4096 +let s:MAX_PROPERTY_NAME = 1024 +let s:MAX_PROPERTY_VALUE = 4096 + +lockvar s:SECTCRE s:OPTCRE s:MAX_SECTION_NAME s:MAX_PROPERTY_NAME s:MAX_PROPERTY_VALUE + +" }}}2 +" === Main ============================================================== {{{1 + +" Read \p config_filename and return the options applicable to +" \p target_filename. This is the main entry point in this file. +function! editorconfig_core#ini#read_ini_file(config_filename, target_filename) + if !filereadable(a:config_filename) + return {} + endif + + try + let l:lines = readfile(a:config_filename) + if &encoding !=? 'utf-8' + " strip BOM + if len(l:lines) > 0 && l:lines[0][:2] ==# "\xEF\xBB\xBF" + let l:lines[0] = l:lines[0][3:] + endif + " convert from UTF-8 to 'encoding' + call map(l:lines, 'iconv(v:val, "utf-8", &encoding)') + endif + let result = s:parse(a:config_filename, a:target_filename, l:lines) + catch + " rethrow, but with a prefix since throw 'Vim...' fails. + throw 'Could not read editorconfig file at ' . v:throwpoint . ': ' . string(v:exception) + endtry + + return result +endfunction + +function! s:parse(config_filename, target_filename, lines) +" Parse a sectioned setup file. +" The sections in setup file contains a title line at the top, +" indicated by a name in square brackets (`[]'), plus key/value +" options lines, indicated by `name: value' format lines. +" Continuations are represented by an embedded newline then +" leading whitespace. Blank lines, lines beginning with a '#', +" and just about everything else are ignored. + + let l:in_section = 0 + let l:matching_section = 0 + let l:optname = '' + let l:lineno = 0 + let l:e = [] " Errors, if any + + let l:options = {} " Options applicable to this file + let l:is_root = 0 " Whether a:config_filename declares root=true + + while 1 + if l:lineno == len(a:lines) + break + endif + + let l:line = a:lines[l:lineno] + let l:lineno = l:lineno + 1 + + " comment or blank line? + if editorconfig_core#util#strip(l:line) ==# '' + continue + endif + if l:line =~# '\v^[#;]' + continue + endif + + " is it a section header? + if g:editorconfig_core_vimscript_debug + echom "Header? <" . l:line . ">" + endif + + let l:mo = matchlist(l:line, s:SECTCRE) + if len(l:mo) + let l:sectname = l:mo[1] + let l:in_section = 1 + if strlen(l:sectname) > s:MAX_SECTION_NAME + " Section name too long => ignore the section + let l:matching_section = 0 + else + let l:matching_section = s:matches_filename( + \ a:config_filename, a:target_filename, l:sectname) + endif + + if g:editorconfig_core_vimscript_debug + echom 'In section ' . l:sectname . ', which ' . + \ (l:matching_section ? 'matches' : 'does not match') + \ ' file ' . a:target_filename . ' (config ' . + \ a:config_filename . ')' + endif + + " So sections can't start with a continuation line + let l:optname = '' + + " Is it an option line? + else + let l:mo = matchlist(l:line, s:OPTCRE) + if len(l:mo) + let l:optname = mo[1] + let l:optval = mo[3] + + if g:editorconfig_core_vimscript_debug + echom printf('Saw raw opt <%s>=<%s>', l:optname, l:optval) + endif + + let l:optval = editorconfig_core#util#strip(l:optval) + " allow empty values + if l:optval ==? '""' + let l:optval = '' + endif + let l:optname = s:optionxform(l:optname) + if !l:in_section && optname ==? 'root' + let l:is_root = (optval ==? 'true') + endif + if g:editorconfig_core_vimscript_debug + echom printf('Saw opt <%s>=<%s>', l:optname, l:optval) + endif + + if l:matching_section && + \ strlen(l:optname) <= s:MAX_PROPERTY_NAME && + \ strlen(l:optval) <= s:MAX_PROPERTY_VALUE + let l:options[l:optname] = l:optval + endif + else + " a non-fatal parsing error occurred. set up the + " exception but keep going. the exception will be + " raised at the end of the file and will contain a + " list of all bogus lines + call add(e, "Parse error in '" . a:config_filename . "' at line " . + \ l:lineno . ": '" . l:line . "'") + endif + endif + endwhile + + " if any parsing errors occurred, raise an exception + if len(l:e) + throw string(l:e) + endif + + return {'root': l:is_root, 'options': l:options} +endfunction! + +" }}}1 +" === Helpers =========================================================== {{{1 + +" Preprocess option names +function! s:optionxform(optionstr) + let l:result = substitute(a:optionstr, '\v\s+$', '', 'g') " rstrip + return tolower(l:result) +endfunction + +" Return true if \p glob matches \p target_filename +function! s:matches_filename(config_filename, target_filename, glob) +" config_dirname = normpath(dirname(config_filename)).replace(sep, '/') + let l:config_dirname = fnamemodify(a:config_filename, ':p:h') . '/' + + if editorconfig_core#util#is_win() + " Regardless of whether shellslash is set, make everything slashes + let l:config_dirname = + \ tolower(substitute(l:config_dirname, '\v\\', '/', 'g')) + endif + + let l:glob = substitute(a:glob, '\v\\([#;])', '\1', 'g') + + " Take account of the path to the editorconfig file. + " editorconfig-core-c/src/lib/editorconfig.c says: + " "Pattern would be: /dir/of/editorconfig/file[double_star]/[section] if + " section does not contain '/', or /dir/of/editorconfig/file[section] + " if section starts with a '/', or /dir/of/editorconfig/file/[section] if + " section contains '/' but does not start with '/'." + + if stridx(l:glob, '/') != -1 " contains a slash + if l:glob[0] ==# '/' + let l:glob = l:glob[1:] " trim leading slash + endif +" This will be done by fnmatch +" let l:glob = l:config_dirname . l:glob + else " does not contain a slash + let l:config_dirname = l:config_dirname[:-2] + " Trim trailing slash + let l:glob = '**/' . l:glob + endif + + if g:editorconfig_core_vimscript_debug + echom '- ini#matches_filename: checking <' . a:target_filename . + \ '> against <' . l:glob . '> with respect to config file <' . + \ a:config_filename . '>' + echom '- ini#matches_filename: config_dirname is ' . l:config_dirname + endif + + return editorconfig_core#fnmatch#fnmatch(a:target_filename, + \ l:config_dirname, l:glob) +endfunction " matches_filename + +" }}}1 +" === Copyright notices ================================================= {{{2 +" Based on code from ConfigParser.py file distributed with Python 2.6. +" Portions Copyright (c) 2001-2010 Python Software Foundation; +" All Rights Reserved. Licensed under PSF License (see LICENSE.PSF file). +" +" Changes to original ConfigParser: +" +" - Special characters can be used in section names +" - Octothorpe can be used for comments (not just at beginning of line) +" - Only track INI options in sections that match target filename +" - Stop parsing files with when ``root = true`` is found +" }}}2 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vi: set fdm=marker fdl=1: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/util.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/util.vim new file mode 100644 index 0000000000000000000000000000000000000000..c4df04af17340fa5a6d62134d01ba27e99705bba --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/autoload/editorconfig_core/util.vim @@ -0,0 +1,84 @@ +" util.vim: part of editorconfig-core-vimscript and editorconfig-vim. +" Copyright (c) 2018-2019 EditorConfig Team, including Chris White {{{1 +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. }}}1 + +let s:saved_cpo = &cpo +set cpo&vim + +" A verbatim copy of ingo#fs#path#Separator() {{{1 +" from https://github.com/vim-scripts/ingo-library/blob/558132e2221db3af26dc2f2c6756d092d48a459f/autoload/ingo/fs/path.vim +" distributed under the Vim license. +function! editorconfig_core#util#Separator() + return (exists('+shellslash') && ! &shellslash ? '\' : '/') +endfunction " }}}1 + +" path_join(): ('a','b')->'a/b'; ('a/','b')->'a/b'. {{{1 +function! editorconfig_core#util#path_join(a, b) + " TODO shellescape/shellslash? + "echom 'Joining <' . a:a . '> and <' . a:b . '>' + "echom 'Length is ' . strlen(a:a) + "echom 'Last char is ' . char2nr(a:a[-1]) + if a:a !~# '\v%(\/|\\)$' + return a:a . editorconfig_core#util#Separator() . a:b + else + return a:a . a:b + endif +endfunction " }}}1 + +" is_win() by xolox {{{1 +" The following function is modified from +" https://github.com/xolox/vim-misc/blob/master/autoload/xolox/misc/os.vim +" Copyright (c) 2015 Peter Odding +" +" Permission is hereby granted, free of charge, to any person obtaining a copy +" of this software and associated documentation files (the "Software"), to deal +" in the Software without restriction, including without limitation the rights +" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +" copies of the Software, and to permit persons to whom the Software is +" furnished to do so, subject to the following conditions: +" +" The above copyright notice and this permission notice shall be included in all +" copies or substantial portions of the Software. +" +" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +" SOFTWARE. +function! editorconfig_core#util#is_win() + " Returns 1 (true) when on Microsoft Windows, 0 (false) otherwise. + return has('win16') || has('win32') || has('win64') +endfunction " }}}1 + +" strip() {{{1 +function! editorconfig_core#util#strip(s) + return substitute(a:s, '\v^\s+|\s+$','','g') +endfunction " }}}1 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vi: set fdm=marker: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/editorconfig.txt b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/editorconfig.txt new file mode 100644 index 0000000000000000000000000000000000000000..87355c008e8293166a8a0a1cf5cb88d3cdcb28c4 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/editorconfig.txt @@ -0,0 +1,238 @@ +*editorconfig.txt* EditorConfig plugin for vim. + +File: editorconfig.txt +Version: 1.1.1 +Maintainer: EditorConfig Team +Description: EditorConfig vim plugin + +CONTENTS~ + *editorconfig-contents* +---------------------------------------------------------------------------- +1. Overview |editorconfig-overview| +2. Installation |editorconfig-installation| +3. Commands |editorconfig-commands| +4. Settings |editorconfig-settings| +5. Advanced |editorconfig-advanced| +6. License |editorconfig-license| + + +OVERVIEW~ + *editorconfig-overview* +---------------------------------------------------------------------------- +This is the EditorConfig plugin for vim. + + +INSTALLATION~ + *editorconfig-installation* +---------------------------------------------------------------------------- +Follow the instructions in the README.md file to install this plugin. + +COMMANDS~ + *editorconfig-commands* +---------------------------------------------------------------------------- + + *:EditorConfigReload* +Command: + :EditorConfigReload + +Reload the EditorConfig conf files. When `.editorconfig` files are modified, +this command could prevent you to reload the current edited file to load the +new configuration. + +SETTINGS~ + *editorconfig-settings* +---------------------------------------------------------------------------- + *g:EditorConfig_core_mode* +Specify the mode of EditorConfig core. Generally it is OK to leave this option +empty. Currently, the supported modes are "vim_core" (default) and +"external_command". + + vim_core: Use the included Vim script EditorConfig Core. + external_command: Run external EditorConfig Core. + +If "g:EditorConfig_core_mode" is not specified, this plugin will automatically +choose "vim_core". + +If you choose "external_command" mode, you must also set +|g:EditorConfig_exec_path|. + +Changes to "g:EditorConfig_core_mode" will not take effect until Vim +is restarted. + + *b:EditorConfig_disable* +This is a buffer-local variable that disables the EditorConfig plugin for a +single buffer. + +Example: Disable EditorConfig for the current buffer: +> + let b:EditorConfig_disable = 1 +< +Example: Disable EditorConfig for all git commit messages: +> + au FileType gitcommit let b:EditorConfig_disable = 1 +< + + *g:EditorConfig_exclude_patterns* +This is a list contains file path patterns which will be ignored by +EditorConfig plugin. When the path of the opened buffer (i.e. +"expand('%:p')") matches any of the patterns in the list, EditorConfig will +not load for this file. The default is an empty list. + +Example: Avoid loading EditorConfig for any remote files over ssh +> + let g:EditorConfig_exclude_patterns = ['scp://.*'] +< + + *g:EditorConfig_exec_path* +The file path to the EditorConfig core executable. You can set this value in +your |vimrc| like this: +> + let g:EditorConfig_exec_path = 'Path to your EditorConfig Core executable' +< +The default value is empty. + +If "g:EditorConfig_exec_path" is not set, the plugin will use the "vim_core" +mode regardless of the setting of |g:EditorConfig_core_mode|. + +Changes to "g:EditorConfig_exec_path" will not take effect until Vim +is restarted. + + *g:EditorConfig_max_line_indicator* +The way to show the line where the maximal length is reached. Accepted values +are "line", "fill", "exceeding" and "fillexceeding", otherwise there will be +no max line indicator. + + "line": the right column of the max line length column will be + highlighted on all lines, by adding +1 to 'colorcolumn'. + + "fill": all the columns to the right of the max line length + column will be highlighted on all lines, by setting + 'colorcolumn' to a list starting from "max_line_length + + 1" to the number of columns on the screen. + + "exceeding": the right column of the max line length column will be + highlighted on lines that exceed the max line length, by + adding a match for the ColorColumn group. + + "fillexceeding": all the columns to the right of the max line length + column will be highlighted on lines that exceed the max + line length, by adding a match for the ColorColumn group. + + "none": no max line length indicator will be shown. Recommended + when you do not want any indicator to be shown, but any + value other than those listed above also work as "none". + +To set this option, add any of the following lines to your |vimrc| file: +> + let g:EditorConfig_max_line_indicator = "line" + let g:EditorConfig_max_line_indicator = "fill" + let g:EditorConfig_max_line_indicator = "exceeding" + let g:EditorConfig_max_line_indicator = "fillexceeding" + let g:EditorConfig_max_line_indicator = "none" +< +The default value is "line". + + *g:EditorConfig_enable_for_new_buf* +Set this to 1 if you want EditorConfig plugin to set options +for new empty buffers too. +Path to .editorconfig will be determined based on CWD (see |getcwd()|) +> + let g:EditorConfig_enable_for_new_buf = 1 +< +This option defaults to 0. + + *g:EditorConfig_preserve_formatoptions* +Set this to 1 if you don't want your formatoptions modified when +max_line_length is set: +> + let g:EditorConfig_preserve_formatoptions = 1 +< +This option defaults to 0. + + *g:EditorConfig_softtabstop_space* +When spaces are used for indent, Vim's 'softtabstop' feature will make the +backspace key delete one indent level. If you turn off that feature (by +setting the option to 0), only a single space will be deleted. +This option defaults to 1, which enables 'softtabstop' and uses the +'shiftwidth' value for it. You can also set this to -1 to automatically follow +the current 'shiftwidth' value (since Vim 7.3.693). Or set this to [] if +EditorConfig should not touch 'softtabstop' at all. + + *g:EditorConfig_softtabstop_tab* +When tabs are used for indent, Vim's 'softtabstop' feature only applies to +backspacing over existing runs of spaces. +This option defaults to 1, so backspace will delete one indent level worth of +spaces; -1 does the same but automatically follows the current 'shiftwidth' +value. Set this to 0 to have backspace delete just a single space character. +Or set this to [] if EditorConfig should not touch 'softtabstop' at all. + + *g:EditorConfig_verbose* +Set this to 1 if you want debug info printed: +> + let g:EditorConfig_verbose = 1 +< + +ADVANCED~ + *editorconfig-advanced* +---------------------------------------------------------------------------- + *editorconfig-hook* + *EditorConfig#AddNewHook()* +While this plugin offers several builtin supported properties (as mentioned +here: https://github.com/editorconfig/editorconfig-vim#supported-properties), +we are also able to add our own hooks to support additional EditorConfig +properties, including those not in the EditorConfig standard. For example, we +are working on an Objective-C project, and all our "*.m" files should be +Objective-C source files. However, vim sometimes detect "*.m" files as MATLAB +source files, which causes incorrect syntax highlighting, code indentation, +etc. To solve the case, we could write the following code into the |vimrc| +file: +> + function! FiletypeHook(config) + if has_key(a:config, 'vim_filetype') + let &filetype = a:config['vim_filetype'] + endif + + return 0 " Return 0 to show no error happened + endfunction + + call editorconfig#AddNewHook(function('FiletypeHook')) +< +And add the following code to your .editorconfig file: +> + [*.m] + vim_filetype = objc +< +Then try to open an Objective-C file, you will find the |filetype| is set to +"objc". + +License~ + *editorconfig-license* +---------------------------------------------------------------------------- + +License: + Copyright (c) 2011-2019 EditorConfig Team + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + +vim:ft=help:tw=78:cc= diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..8c8276551d1a5595b5307d77015589043f0d0de8 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/doc/tags @@ -0,0 +1,21 @@ +:EditorConfigReload editorconfig.txt /*:EditorConfigReload* +EditorConfig#AddNewHook() editorconfig.txt /*EditorConfig#AddNewHook()* +b:EditorConfig_disable editorconfig.txt /*b:EditorConfig_disable* +editorconfig-advanced editorconfig.txt /*editorconfig-advanced* +editorconfig-commands editorconfig.txt /*editorconfig-commands* +editorconfig-contents editorconfig.txt /*editorconfig-contents* +editorconfig-hook editorconfig.txt /*editorconfig-hook* +editorconfig-installation editorconfig.txt /*editorconfig-installation* +editorconfig-license editorconfig.txt /*editorconfig-license* +editorconfig-overview editorconfig.txt /*editorconfig-overview* +editorconfig-settings editorconfig.txt /*editorconfig-settings* +editorconfig.txt editorconfig.txt /*editorconfig.txt* +g:EditorConfig_core_mode editorconfig.txt /*g:EditorConfig_core_mode* +g:EditorConfig_enable_for_new_buf editorconfig.txt /*g:EditorConfig_enable_for_new_buf* +g:EditorConfig_exclude_patterns editorconfig.txt /*g:EditorConfig_exclude_patterns* +g:EditorConfig_exec_path editorconfig.txt /*g:EditorConfig_exec_path* +g:EditorConfig_max_line_indicator editorconfig.txt /*g:EditorConfig_max_line_indicator* +g:EditorConfig_preserve_formatoptions editorconfig.txt /*g:EditorConfig_preserve_formatoptions* +g:EditorConfig_softtabstop_space editorconfig.txt /*g:EditorConfig_softtabstop_space* +g:EditorConfig_softtabstop_tab editorconfig.txt /*g:EditorConfig_softtabstop_tab* +g:EditorConfig_verbose editorconfig.txt /*g:EditorConfig_verbose* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/ftdetect/editorconfig.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/ftdetect/editorconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..d1f8e00a580da9df6fdc517cddf73216675d918e --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/ftdetect/editorconfig.vim @@ -0,0 +1 @@ +autocmd BufNewFile,BufRead .editorconfig setfiletype dosini diff --git a/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/plugin/editorconfig.vim b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/plugin/editorconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..914e7788ff43a969c0b38621e5f722db081156ea --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/editorconfig/plugin/editorconfig.vim @@ -0,0 +1,614 @@ +" plugin/editorconfig.vim: EditorConfig native Vim script plugin file +" Copyright (c) 2011-2019 EditorConfig Team +" All rights reserved. +" +" Redistribution and use in source and binary forms, with or without +" modification, are permitted provided that the following conditions are met: +" +" 1. Redistributions of source code must retain the above copyright notice, +" this list of conditions and the following disclaimer. +" 2. Redistributions in binary form must reproduce the above copyright notice, +" this list of conditions and the following disclaimer in the documentation +" and/or other materials provided with the distribution. +" +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +" POSSIBILITY OF SUCH DAMAGE. +" + +" check for Vim versions and duplicate script loading. +if v:version < 700 || exists("g:loaded_EditorConfig") + finish +endif +let g:loaded_EditorConfig = 1 + +let s:saved_cpo = &cpo +set cpo&vim + +" variables {{{1 + +" Make sure the globals all exist +if !exists('g:EditorConfig_exec_path') + let g:EditorConfig_exec_path = '' +endif + +if !exists('g:EditorConfig_verbose') + let g:EditorConfig_verbose = 0 +endif + +if !exists('g:EditorConfig_preserve_formatoptions') + let g:EditorConfig_preserve_formatoptions = 0 +endif + +if !exists('g:EditorConfig_max_line_indicator') + let g:EditorConfig_max_line_indicator = 'line' +endif + +if !exists('g:EditorConfig_exclude_patterns') + let g:EditorConfig_exclude_patterns = [] +endif + +if !exists('g:EditorConfig_disable_rules') + let g:EditorConfig_disable_rules = [] +endif + +if !exists('g:EditorConfig_enable_for_new_buf') + let g:EditorConfig_enable_for_new_buf = 0 +endif + +if !exists('g:EditorConfig_softtabstop_space') + let g:EditorConfig_softtabstop_space = 1 +endif + +if !exists('g:EditorConfig_softtabstop_tab') + let g:EditorConfig_softtabstop_tab = 1 +endif + +" Copy some of the globals into script variables --- changes to these +" globals won't affect the plugin until the plugin is reloaded. +if exists('g:EditorConfig_core_mode') && !empty(g:EditorConfig_core_mode) + let s:editorconfig_core_mode = g:EditorConfig_core_mode +else + let s:editorconfig_core_mode = '' +endif + +if exists('g:EditorConfig_exec_path') && !empty(g:EditorConfig_exec_path) + let s:editorconfig_exec_path = g:EditorConfig_exec_path +else + let s:editorconfig_exec_path = '' +endif + +let s:initialized = 0 + +" }}}1 + +" shellslash handling {{{1 +function! s:DisableShellSlash(bufnr) " {{{2 + " disable shellslash for proper escaping of Windows paths + + " In Windows, 'shellslash' also changes the behavior of 'shellescape'. + " It makes 'shellescape' behave like in UNIX environment. So ':setl + " noshellslash' before evaluating 'shellescape' and restore the + " settings afterwards when 'shell' does not contain 'sh' somewhere. + let l:shell = getbufvar(a:bufnr, '&shell') + if has('win32') && empty(matchstr(l:shell, 'sh')) + let s:old_shellslash = getbufvar(a:bufnr, '&shellslash') + setbufvar(a:bufnr, '&shellslash', 0) + endif +endfunction " }}}2 + +function! s:ResetShellSlash(bufnr) " {{{2 + " reset shellslash to the user-set value, if any + if exists('s:old_shellslash') + setbufvar(a:bufnr, '&shellslash', s:old_shellslash) + unlet! s:old_shellslash + endif +endfunction " }}}2 +" }}}1 + +" Mode initialization functions {{{1 + +function! s:InitializeVimCore() +" Initialize vim core. Returns 1 on failure; 0 on success +" At the moment, all we need to do is to check that it is installed. + try + let l:vim_core_ver = editorconfig_core#version() + catch + return 1 + endtry + return 0 +endfunction + +function! s:InitializeExternalCommand() +" Initialize external_command mode + + if empty(s:editorconfig_exec_path) + echo 'Please specify a g:EditorConfig_exec_path' + return 1 + endif + + if g:EditorConfig_verbose + echo 'Checking for external command ' . s:editorconfig_exec_path . ' ...' + endif + + if !executable(s:editorconfig_exec_path) + echo 'File ' . s:editorconfig_exec_path . ' is not executable.' + return 1 + endif + + return 0 +endfunction +" }}}1 + +function! s:Initialize() " Initialize the plugin. {{{1 + " Returns truthy on error, falsy on success. + + if empty(s:editorconfig_core_mode) + let s:editorconfig_core_mode = 'vim_core' " Default core choice + endif + + if s:editorconfig_core_mode ==? 'external_command' + if s:InitializeExternalCommand() + echohl WarningMsg + echo 'EditorConfig: Failed to initialize external_command mode. ' . + \ 'Falling back to vim_core mode.' + echohl None + let s:editorconfig_core_mode = 'vim_core' + endif + endif + + if s:editorconfig_core_mode ==? 'vim_core' + if s:InitializeVimCore() + echohl ErrorMsg + echo 'EditorConfig: Failed to initialize vim_core mode. ' . + \ 'The plugin will not function.' + echohl None + return 1 + endif + + elseif s:editorconfig_core_mode ==? 'external_command' + " Nothing to do here, but this elseif is required to avoid + " external_command falling into the else clause. + + else " neither external_command nor vim_core + echohl ErrorMsg + echo "EditorConfig: I don't know how to use mode " . s:editorconfig_core_mode + echohl None + return 1 + endif + + let s:initialized = 1 + return 0 +endfunction " }}}1 + +function! s:GetFilenames(path, filename) " {{{1 +" Yield full filepath for filename in each directory in and above path + + let l:path_list = [] + let l:path = a:path + while 1 + let l:path_list += [l:path . '/' . a:filename] + let l:newpath = fnamemodify(l:path, ':h') + if l:path == l:newpath + break + endif + let l:path = l:newpath + endwhile + return l:path_list +endfunction " }}}1 + +function! s:UseConfigFiles(from_autocmd) abort " Apply config to the current buffer {{{1 + " from_autocmd is truthy if called from an autocmd, falsy otherwise. + + " Get the properties of the buffer we are working on + if a:from_autocmd + let l:bufnr = str2nr(expand('')) + let l:buffer_name = expand(':p') + let l:buffer_path = expand(':p:h') + else + let l:bufnr = bufnr('%') + let l:buffer_name = expand('%:p') + let l:buffer_path = expand('%:p:h') + endif + call setbufvar(l:bufnr, 'editorconfig_tried', 1) + + " Only process normal buffers (do not treat help files as '.txt' files) + " When starting Vim with a directory, the buftype might not yet be set: + " Therefore, also check if buffer_name is a directory. + if index(['', 'acwrite'], &buftype) == -1 || isdirectory(l:buffer_name) + return + endif + + if empty(l:buffer_name) + if g:EditorConfig_enable_for_new_buf + let l:buffer_name = getcwd() . "/." + else + if g:EditorConfig_verbose + echo 'Skipping EditorConfig for unnamed buffer' + endif + return + endif + endif + + if getbufvar(l:bufnr, 'EditorConfig_disable', 0) + if g:EditorConfig_verbose + echo 'EditorConfig disabled --- skipping buffer "' . l:buffer_name . '"' + endif + return + endif + + " Ignore specific patterns + for pattern in g:EditorConfig_exclude_patterns + if l:buffer_name =~ pattern + if g:EditorConfig_verbose + echo 'Skipping EditorConfig for buffer "' . l:buffer_name . + \ '" based on pattern "' . pattern . '"' + endif + return + endif + endfor + + " Check if any .editorconfig does exist + let l:conf_files = s:GetFilenames(l:buffer_path, '.editorconfig') + let l:conf_found = 0 + for conf_file in conf_files + if filereadable(conf_file) + let l:conf_found = 1 + break + endif + endfor + if !l:conf_found + return + endif + + if !s:initialized + if s:Initialize() + return + endif + endif + + if g:EditorConfig_verbose + echo 'Applying EditorConfig ' . s:editorconfig_core_mode . + \ ' on file "' . l:buffer_name . '"' + endif + + if s:editorconfig_core_mode ==? 'vim_core' + if s:UseConfigFiles_VimCore(l:bufnr, l:buffer_name) == 0 + call setbufvar(l:bufnr, 'editorconfig_applied', 1) + endif + elseif s:editorconfig_core_mode ==? 'external_command' + call s:UseConfigFiles_ExternalCommand(l:bufnr, l:buffer_name) + call setbufvar(l:bufnr, 'editorconfig_applied', 1) + else + echohl Error | + \ echo "Unknown EditorConfig Core: " . + \ s:editorconfig_core_mode | + \ echohl None + endif +endfunction " }}}1 + +" Custom commands, and autoloading {{{1 + +" Autocommands, and function to enable/disable the plugin {{{2 +function! s:EditorConfigEnable(should_enable) + augroup editorconfig + autocmd! + if a:should_enable + autocmd BufNewFile,BufReadPost,BufFilePost * call s:UseConfigFiles(1) + autocmd VimEnter,BufNew * call s:UseConfigFiles(1) + endif + augroup END +endfunction + +" }}}2 + +" Commands {{{2 +command! EditorConfigEnable call s:EditorConfigEnable(1) +command! EditorConfigDisable call s:EditorConfigEnable(0) + +command! EditorConfigReload call s:UseConfigFiles(0) " Reload EditorConfig files +" }}}2 + +" On startup, enable the autocommands +call s:EditorConfigEnable(1) + +" }}}1 + +" UseConfigFiles function for different modes {{{1 + +function! s:UseConfigFiles_VimCore(bufnr, target) +" Use the Vim script EditorConfig core + try + let l:config = editorconfig_core#handler#get_configurations( + \ { 'target': a:target } ) + call s:ApplyConfig(a:bufnr, l:config) + return 0 " success + catch + return 1 " failure + endtry +endfunction + +function! s:UseConfigFiles_ExternalCommand(bufnr, target) +" Use external EditorConfig core (e.g., the C core) + + call s:DisableShellSlash(a:bufnr) + let l:exec_path = shellescape(s:editorconfig_exec_path) + call s:ResetShellSlash(a:bufnr) + + call s:SpawnExternalParser(a:bufnr, l:exec_path, a:target) +endfunction + +function! s:SpawnExternalParser(bufnr, cmd, target) " {{{2 +" Spawn external EditorConfig. Used by s:UseConfigFiles_ExternalCommand() + + let l:cmd = a:cmd + + if empty(l:cmd) + throw 'No cmd provided' + endif + + let l:config = {} + + call s:DisableShellSlash(a:bufnr) + let l:cmd = l:cmd . ' ' . shellescape(a:target) + call s:ResetShellSlash(a:bufnr) + + let l:parsing_result = split(system(l:cmd), '\v[\r\n]+') + + " if editorconfig core's exit code is not zero, give out an error + " message + if v:shell_error != 0 + echohl ErrorMsg + echo 'Failed to execute "' . l:cmd . '". Exit code: ' . + \ v:shell_error + echo '' + echo 'Message:' + echo l:parsing_result + echohl None + return + endif + + if g:EditorConfig_verbose + echo 'Output from EditorConfig core executable:' + echo l:parsing_result + endif + + for one_line in l:parsing_result + let l:eq_pos = stridx(one_line, '=') + + if l:eq_pos == -1 " = is not found. Skip this line + continue + endif + + let l:eq_left = strpart(one_line, 0, l:eq_pos) + if l:eq_pos + 1 < strlen(one_line) + let l:eq_right = strpart(one_line, l:eq_pos + 1) + else + let l:eq_right = '' + endif + + let l:config[l:eq_left] = l:eq_right + endfor + + call s:ApplyConfig(a:bufnr, l:config) +endfunction " }}}2 + +" }}}1 + +" Set the buffer options {{{1 +function! s:SetCharset(bufnr, charset) abort " apply config['charset'] + + " Remember the buffer's state so we can set `nomodifed` at the end + " if appropriate. + let l:orig_fenc = getbufvar(a:bufnr, "&fileencoding") + let l:orig_enc = getbufvar(a:bufnr, "&encoding") + let l:orig_modified = getbufvar(a:bufnr, "&modified") + + if a:charset == "utf-8" + call setbufvar(a:bufnr, '&fileencoding', 'utf-8') + call setbufvar(a:bufnr, '&bomb', 0) + elseif a:charset == "utf-8-bom" + call setbufvar(a:bufnr, '&fileencoding', 'utf-8') + call setbufvar(a:bufnr, '&bomb', 1) + elseif a:charset == "latin1" + call setbufvar(a:bufnr, '&fileencoding', 'latin1') + call setbufvar(a:bufnr, '&bomb', 0) + elseif a:charset == "utf-16be" + call setbufvar(a:bufnr, '&fileencoding', 'utf-16be') + call setbufvar(a:bufnr, '&bomb', 1) + elseif a:charset == "utf-16le" + call setbufvar(a:bufnr, '&fileencoding', 'utf-16le') + call setbufvar(a:bufnr, '&bomb', 1) + endif + + let l:new_fenc = getbufvar(a:bufnr, "&fileencoding") + + " If all we did was change the fileencoding from the default to a copy + " of the default, we didn't actually modify the file. + if !l:orig_modified && (l:orig_fenc ==# '') && (l:new_fenc ==# l:orig_enc) + if g:EditorConfig_verbose + echo 'Setting nomodified on buffer ' . a:bufnr + endif + call setbufvar(a:bufnr, '&modified', 0) + endif +endfunction + +function! s:ApplyConfig(bufnr, config) abort + if g:EditorConfig_verbose + echo 'Options: ' . string(a:config) + endif + + if s:IsRuleActive('indent_style', a:config) + if a:config["indent_style"] == "tab" + call setbufvar(a:bufnr, '&expandtab', 0) + elseif a:config["indent_style"] == "space" + call setbufvar(a:bufnr, '&expandtab', 1) + endif + endif + + if s:IsRuleActive('tab_width', a:config) + let l:tabstop = str2nr(a:config["tab_width"]) + call setbufvar(a:bufnr, '&tabstop', l:tabstop) + else + " Grab the current ts so we can use it below + let l:tabstop = getbufvar(a:bufnr, '&tabstop') + endif + + if s:IsRuleActive('indent_size', a:config) + " if indent_size is 'tab', set shiftwidth to tabstop; + " if indent_size is a positive integer, set shiftwidth to the integer + " value + if a:config["indent_size"] == "tab" + call setbufvar(a:bufnr, '&shiftwidth', l:tabstop) + if type(g:EditorConfig_softtabstop_tab) != type([]) + call setbufvar(a:bufnr, '&softtabstop', + \ g:EditorConfig_softtabstop_tab > 0 ? + \ l:tabstop : g:EditorConfig_softtabstop_tab) + endif + else + let l:indent_size = str2nr(a:config["indent_size"]) + if l:indent_size > 0 + call setbufvar(a:bufnr, '&shiftwidth', l:indent_size) + if type(g:EditorConfig_softtabstop_space) != type([]) + call setbufvar(a:bufnr, '&softtabstop', + \ g:EditorConfig_softtabstop_space > 0 ? + \ l:indent_size : g:EditorConfig_softtabstop_space) + endif + endif + endif + + endif + + if s:IsRuleActive('end_of_line', a:config) && + \ getbufvar(a:bufnr, '&modifiable') + if a:config["end_of_line"] == "lf" + call setbufvar(a:bufnr, '&fileformat', 'unix') + elseif a:config["end_of_line"] == "crlf" + call setbufvar(a:bufnr, '&fileformat', 'dos') + elseif a:config["end_of_line"] == "cr" + call setbufvar(a:bufnr, '&fileformat', 'mac') + endif + endif + + if s:IsRuleActive('charset', a:config) && + \ getbufvar(a:bufnr, '&modifiable') + call s:SetCharset(a:bufnr, a:config["charset"]) + endif + + augroup editorconfig_trim_trailing_whitespace + autocmd! BufWritePre + if s:IsRuleActive('trim_trailing_whitespace', a:config) && + \ get(a:config, 'trim_trailing_whitespace', 'false') ==# 'true' + execute 'autocmd BufWritePre call s:TrimTrailingWhitespace()' + endif + augroup END + + if s:IsRuleActive('insert_final_newline', a:config) + if exists('+fixendofline') + if a:config["insert_final_newline"] == "false" + call setbufvar(a:bufnr, '&fixendofline', 0) + else + call setbufvar(a:bufnr, '&fixendofline', 1) + endif + elseif exists(':SetNoEOL') == 2 + if a:config["insert_final_newline"] == "false" + silent! SetNoEOL " Use the PreserveNoEOL plugin to accomplish it + endif + endif + endif + + " highlight the columns following max_line_length + if s:IsRuleActive('max_line_length', a:config) && + \ a:config['max_line_length'] != 'off' + let l:max_line_length = str2nr(a:config['max_line_length']) + + if l:max_line_length >= 0 + call setbufvar(a:bufnr, '&textwidth', l:max_line_length) + if g:EditorConfig_preserve_formatoptions == 0 + " setlocal formatoptions+=tc + let l:fo = getbufvar(a:bufnr, '&formatoptions') + if l:fo !~# 't' + let l:fo .= 't' + endif + if l:fo !~# 'c' + let l:fo .= 'c' + endif + call setbufvar(a:bufnr, '&formatoptions', l:fo) + endif + endif + + if exists('+colorcolumn') + if l:max_line_length > 0 + if g:EditorConfig_max_line_indicator == 'line' + " setlocal colorcolumn+=+1 + let l:cocol = getbufvar(a:bufnr, '&colorcolumn') + if !empty(l:cocol) + let l:cocol .= ',' + endif + let l:cocol .= '+1' + call setbufvar(a:bufnr, '&colorcolumn', l:cocol) + elseif g:EditorConfig_max_line_indicator == 'fill' && + \ l:max_line_length < getbufvar(a:bufnr, '&columns') + " Fill only if the columns of screen is large enough + call setbufvar(a:bufnr, '&colorcolumn', + \ join(range(l:max_line_length+1, + \ getbufvar(a:bufnr, '&columns')), + \ ',')) + elseif g:EditorConfig_max_line_indicator == 'exceeding' + call setbufvar(a:bufnr, '&colorcolumn', '') + for l:match in getmatches() + if get(l:match, 'group', '') == 'ColorColumn' + call matchdelete(get(l:match, 'id')) + endif + endfor + call matchadd('ColorColumn', + \ '\%' . (l:max_line_length + 1) . 'v.', 100) + elseif g:EditorConfig_max_line_indicator == 'fillexceeding' + let &l:colorcolumn = '' + for l:match in getmatches() + if get(l:match, 'group', '') == 'ColorColumn' + call matchdelete(get(l:match, 'id')) + endif + endfor + call matchadd('ColorColumn', + \ '\%'. (l:max_line_length + 1) . 'v.\+', -1) + endif + endif + endif + endif + + call editorconfig#ApplyHooks(a:config) +endfunction + +" }}}1 + +function! s:TrimTrailingWhitespace() " {{{1 + " Called from within a buffer-specific autocmd, so we can use '%' + if getbufvar('%', '&modifiable') + " don't lose user position when trimming trailing whitespace + let s:view = winsaveview() + try + silent! keeppatterns keepjumps %s/\s\+$//e + finally + call winrestview(s:view) + endtry + endif +endfunction " }}}1 + +function! s:IsRuleActive(name, config) " {{{1 + return index(g:EditorConfig_disable_rules, a:name) < 0 && + \ has_key(a:config, a:name) +endfunction "}}}1 + +let &cpo = s:saved_cpo +unlet! s:saved_cpo + +" vim: fdm=marker fdc=3 diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/autoload/helpcurwin.vim b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/autoload/helpcurwin.vim new file mode 100644 index 0000000000000000000000000000000000000000..52a2d4f7cf17d26c7ee0702df6165247f35b093e --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/autoload/helpcurwin.vim @@ -0,0 +1,42 @@ +vim9script + +# Open Vim help on {subject} in the current window (rather than a new split) +# +# Maintainer: The Vim Project +# Last change: 2025 Dec 02 + +export def Open(subject: string): void + + const HELPCURWIN: func = (): string => { + if !getcompletion(subject, 'help')->empty() || subject->empty() + if &buftype != 'help' + execute 'silent noautocmd keepalt enew' + setlocal buftype=help noswapfile + endif + endif + return $'help {subject}' + } + + var contmod: bool = true + if &modified + echohl MoreMsg + echo $'Buffer {bufname()} is modified - continue? (y/n)' + echohl None + contmod = (getcharstr() == 'y') + endif + if contmod + try + execute HELPCURWIN() + catch + echohl Error + # {subject} invalid - Echo 'helpcurwin: E149:' (omit 'Vim(help):') + echo $'helpcurwin: {v:exception->substitute("^[^:]\+:", "", "")}' + echohl None + endtry + else + echo $'Aborted opening in current window, :help {subject}' + endif + +enddef + +# vim: ts=8 sts=2 sw=2 et diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/helpcurwin.txt b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/helpcurwin.txt new file mode 100644 index 0000000000000000000000000000000000000000..2bca8d0341fcc27f82c5ffa6758192ddd582698a --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/helpcurwin.txt @@ -0,0 +1,59 @@ +*helpcurwin.txt* For Vim version 9.1. Last change: 2025 Dec 02 + +The helpcurwin optional package enables opening help in the current window. + +1. :HelpCurwin |helpcurwin-command| +2. helpcurwin#Open() |helpcurwin-function| +3. HelpCurwin; |helpcurwin-mapping| + + +============================================================================== +1. :HelpCurwin *:HelpCurwin* *helpcurwin-command* + +:HelpCurwin Use the current window to display the help file, + |help.txt| in read-only mode. It leaves any other + windows as-is (including when there is another + help window(s)). + +:HelpCurwin {subject} Like ":HelpCurwin" but, additionally open the + applicable help file at the tag {subject}. + For example: > + + :HelpCurwin version9.2 +< + It should otherwise behave like :help {subject}. + +You may also want to save typing with a command line abbreviation, +for example: >vi + + cnoreabbrev hc getcmdtype() == ":" && + \ getcmdline() == 'hc' ? 'HelpCurwin' : 'hc' +< + +============================================================================== +2. helpcurwin#Open() *helpcurwin-function* + +The underlying `:def` function may also be used, for example: >vim + + :vim9cmd helpcurwin#Open('version9.2') +< +This may be useful from other scripts where you want to bring up help on +{subject} in the current window. + + +============================================================================== +3. HelpCurwin; *helpcurwin-mapping* + +There may be times when you want to get the help for a WORD, such as when it +is in a Vim9 script. If you want to open it in the same window, you can map +HelpCurwin; to keys of your choosing to enable that. For example: >vim9 + + nnoremap hc HelpCurwin; + +Once sourced (in this instance, when hc is typed), the applicable +help file will be opened in the current window at the tag for (that +is, the |WORD| under the cursor), if it exists. + + +============================================================================== + vim:tw=78:ts=8:noet:ft=help:norl: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..c552ad5fac6928e35fc59634f2ee78ebfac82973 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/doc/tags @@ -0,0 +1,5 @@ +:HelpCurwin helpcurwin.txt /*:HelpCurwin* +helpcurwin-command helpcurwin.txt /*helpcurwin-command* +helpcurwin-function helpcurwin.txt /*helpcurwin-function* +helpcurwin-mapping helpcurwin.txt /*helpcurwin-mapping* +helpcurwin.txt helpcurwin.txt /*helpcurwin.txt* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/plugin/helpcurwin.vim b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/plugin/helpcurwin.vim new file mode 100644 index 0000000000000000000000000000000000000000..e9960954a3bcaf7aea3de9951339932d821c12ad --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helpcurwin/plugin/helpcurwin.vim @@ -0,0 +1,14 @@ +vim9script + +# Open Vim help on {subject} in the current window (rather than a new split) +# +# Maintainer: The Vim Project +# Last change: 2026 Jan 29 + +import autoload '../autoload/helpcurwin.vim' + +command -bar -nargs=? -complete=help HelpCurwin helpcurwin.Open() + +nnoremap HelpCurwin; helpcurwin.Open(expand('')) + +# vim: ts=8 sts=2 sw=2 et diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helptoc/autoload/helptoc.vim b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/autoload/helptoc.vim new file mode 100644 index 0000000000000000000000000000000000000000..f3ce9febf958824c30b694c8b58c79ad2e01447a --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/autoload/helptoc.vim @@ -0,0 +1,1341 @@ +vim9script noclear + +# the Vim HelpTOC plugin, creates a table of contents in a popup +# Maintainer: Vim project +# Original Author: @lacygoill +# Latest Change: 2025 Oct 17 +# +# Config {{{1 +# g:helptoc {{{2 +# Create the g:helptoc dict (used to specify the shell_prompt and other +# options) when it does not exist +g:helptoc = exists('g:helptoc') ? g:helptoc : {} + +# Set the initial shell_prompt pattern matching a default bash prompt +g:helptoc.shell_prompt = get(g:helptoc, 'shell_prompt', '^\w\+@\w\+:\f\+\$\s') + +# Track the prior prompt (used to reset b:toc if 'shell_prompt' changes) +g:helptoc.prior_shell_prompt = g:helptoc.shell_prompt + +def UpdateUserSettings() #{{{2 + + if g:helptoc.shell_prompt != g:helptoc.prior_shell_prompt + # invalidate cache: user config has changed + unlet! b:toc + # reset the prior prompt to the new prompt + g:helptoc.prior_shell_prompt = g:helptoc.shell_prompt + endif + + # helptoc popup presentation options{{{ + # Enable users to choose whether, in toc and help text popups, to have: + # - border (default [], which is a border, so is usually wanted) + # - borderchars (default single box drawing; use [] for Vim's defaults) + # - borderhighlight (default [], but a user may prefer something else) + # - close (default 'none'; mouse users may prefer 'button') + # - drag (default true, which is a popup_menu's default) + # - scrollbar (default false; for long tocs/HELP_TEXT true may be better) + # For example, in a Vim9 script .vimrc, these settings will produce tocs + # with borders that have the same highlight group as the inactive + # statusline, a scrollbar, and an 'X' close button: + # g:helptoc.popup_borderchars = get(g:helptoc, 'popup_borderchars', [' ']) + # g:helptoc.popup_borderhighlight = get(g:helptoc, + # 'popup_borderhighlight', ['StatusLineNC']) + # g:helptoc.popup_close = get(g:helptoc, 'popup_close', 'button') + # g:helptoc.popup_scrollbar = get(g:helptoc, 'popup_scrollbar', true) + # }}} + g:helptoc.popup_border = get(g:helptoc, 'popup_border', []) + g:helptoc.popup_borderchars = get(g:helptoc, 'popup_borderchars', + ['─', '│', '─', '│', '┌', '┐', '┘', '└']) + g:helptoc.popup_borderhighlight = get(g:helptoc, 'popup_borderhighlight', + []) + g:helptoc.popup_drag = get(g:helptoc, 'popup_drag', true) + g:helptoc.popup_close = get(g:helptoc, 'popup_close', 'none') + g:helptoc.popup_scrollbar = get(g:helptoc, 'popup_scrollbar', false) + # For sanitized tocs, allow the user to specify the level indicator + g:helptoc.level_indicator = get(g:helptoc, 'level_indicator', '| ') +enddef + +UpdateUserSettings() + +# Syntax {{{1 + +# Used by sanitized tocs (asciidoc, html, markdown, tex, vim, and xhtml) +def SanitizedTocSyntax(): void + silent execute "syntax match helptocLevel _^\\(" .. + g:helptoc.level_indicator .. "\\)*_ contained" + silent execute "syntax region helptocText start=_^\\(" .. + g:helptoc.level_indicator .. "\\)*_ end=_$_ contains=helptocLevel" + highlight link helptocText Normal + highlight link helptocLevel NonText +enddef + +# Init {{{1 +# Constants {{{2 +# HELP_TEXT {{{3 +const HELP_TEXT: list =<< trim END + normal commands in help window + ────────────────────────────── + ? hide this help window + scroll down one line + scroll up one line + + normal commands in TOC menu + ─────────────────────────── + j select next entry + k select previous entry + J same as j, and jump to corresponding line in main buffer + K same as k, and jump to corresponding line in main buffer + c select nearest entry from cursor position in main buffer + g select first entry + G select last entry + H collapse one level + L expand one level + p print selected entry on command-line + + P same as p but automatically, whenever selection changes + press multiple times to toggle feature on/off + + q quit menu + z redraw menu with selected entry at center + + increase width of popup menu + - decrease width of popup menu + / look for given text with fuzzy algorithm + ? show help window + + scroll down half a page + scroll up half a page + s split window, and jump to selected entry + scroll down a whole page + scroll up a whole page + select first entry + select last entry + + title meaning + ───────────── + example: 12/34 (5/6) + broken down: + + 12 index of selected entry + 34 index of last entry + 5 index of deepest level currently visible + 6 index of maximum possible level + + tip + ─── + after inserting a pattern to look for with the / command, + if you press instead of , you can then get + more context for each remaining entry by pressing J or K +END + +# UPTOINC_H {{{3 +const UPTOINC_H: string = '\v\c^%(%([<][^h][^>]*[>])|\s)*[<]h' + +# MATCH_ENTRY {{{3 +const MATCH_ENTRY: dict> = { + + help: {}, + + # This lets the user get a TOC when piping `info(1)` to Vim:{{{ + # + # $ info coreutils | vim - + #}}} + # But it assumes that they have some heuristics to set the `info` filetype.{{{ + # + # Possibly by inspecting the first line from `scripts.vim`: + # + # if getline(1) =~ '^File: .*\.info, Node: .*, \%(Next\|Prev\): .*, Up: \|This is the top of the INFO tree.' + # setfiletype info + # endif + #}}} + info: { + 1: (l: string, nextline): bool => l =~ '^\d\+\%(\.\d\+\)\+ ' && nextline =~ '^=\+$', + 2: (l: string, nextline): bool => l =~ '^\d\+\%(\.\d\+\)\+ ' && nextline =~ '^-\+$', + }, + + # For asciidoc, these patterns should match: + # https://docs.asciidoctor.org/asciidoc/latest/sections/titles-and-levels/ + asciidoc: { + 1: (l: string, _): bool => l =~ '\v^%(\=|#)\s', + 2: (l: string, _): bool => l =~ '\v^%(\={2}|#{2})\s', + 3: (l: string, _): bool => l =~ '\v^%(\={3}|#{3})\s', + 4: (l: string, _): bool => l =~ '\v^%(\={4}|#{4})\s', + 5: (l: string, _): bool => l =~ '\v^%(\={5}|#{5})\s', + 6: (l: string, _): bool => l =~ '\v^%(\={6}|#{6})\s', + }, + + html: { + 1: (l: string, _): bool => l =~ $"{UPTOINC_H}1", + 2: (l: string, _): bool => l =~ $"{UPTOINC_H}2", + 3: (l: string, _): bool => l =~ $"{UPTOINC_H}3", + 4: (l: string, _): bool => l =~ $"{UPTOINC_H}4", + 5: (l: string, _): bool => l =~ $"{UPTOINC_H}5", + 6: (l: string, _): bool => l =~ $"{UPTOINC_H}6", + }, + + man: { + 1: (l: string, _): bool => l =~ '^\S', + 2: (l: string, _): bool => l =~ '\v^%( {3})=\S', + 3: (l: string, _): bool => l =~ '\v^\s+%(%(\+|-)\S+,\s+)*(\+|-)\S+' + }, + + # For markdown, these patterns should match: + # https://spec.commonmark.org/0.31.2/#atx-headings and + # https://spec.commonmark.org/0.31.2/#setext-headings + markdown: { + 1: (l: string, nextline: string): bool => + (l =~ '\v^ {0,3}#%(\s|$)' || nextline =~ '\v^ {0,3}\=+$') && + l =~ '\S', + 2: (l: string, nextline: string): bool => + (l =~ '\v^ {0,3}##%(\s|$)' || nextline =~ '\v^ {0,3}-+$') && + l =~ '\S', + 3: (l: string, _): bool => l =~ '\v {0,3}#{3}%(\s|$)', + 4: (l: string, _): bool => l =~ '\v {0,3}#{4}%(\s|$)', + 5: (l: string, _): bool => l =~ '\v {0,3}#{5}%(\s|$)', + 6: (l: string, _): bool => l =~ '\v {0,3}#{6}%(\s|$)', + }, + + terminal: { + 1: (l: string, _): bool => l =~ g:helptoc.shell_prompt + }, + + # For LaTeX, this should meet + # https://mirrors.rit.edu/CTAN/info/latex2e-help-texinfo/latex2e.pdf + # including: + # para 6.3: + # \section{Heading} + # \section[Alternative ToC Heading]{Heading} + # para 25.1.2: + # \section*{Not for the TOC heading} + # \addcontentsline{toc}{section}{Alternative ToC Heading} + tex: { + 1: (l: string, _): bool => l =~ '^[\\]\(\%(part\|chapter\)' .. + '\%([\u005B{]\)\|addcontentsline{toc}{\%(part\|chapter\)\)', + 2: (l: string, _): bool => l =~ '^[\\]\%(section' .. + '\%([\u005B{]\)\|addcontentsline{toc}{section}\)', + 3: (l: string, _): bool => l =~ '^[\\]\%(subsection' .. + '\%([\u005B{]\)\|addcontentsline{toc}{subsection}\)', + 4: (l: string, _): bool => l =~ '^[\\]\%(subsubsection' .. + '\%([\u005B{]\)\|addcontentsline{toc}{subsubsection}\)', + }, + + vim: { + 1: (l: string, _): bool => l =~ '\v\{{3}1', + 2: (l: string, _): bool => l =~ '\v\{{3}2', + 3: (l: string, _): bool => l =~ '\v\{{3}3', + 4: (l: string, _): bool => l =~ '\v\{{3}4', + 5: (l: string, _): bool => l =~ '\v\{{3}5', + 6: (l: string, _): bool => l =~ '\v\{{3}6', + }, + + xhtml: { + 1: (l: string, _): bool => l =~ $"{UPTOINC_H}1", + 2: (l: string, _): bool => l =~ $"{UPTOINC_H}2", + 3: (l: string, _): bool => l =~ $"{UPTOINC_H}3", + 4: (l: string, _): bool => l =~ $"{UPTOINC_H}4", + 5: (l: string, _): bool => l =~ $"{UPTOINC_H}5", + 6: (l: string, _): bool => l =~ $"{UPTOINC_H}6", + } +} + +# HELP_RULERS {{{3 +const HELP_RULERS: dict = { + '=': '^=\{40,}$', + '-': '^-\{40,}', +} +const HELP_RULER: string = HELP_RULERS->values()->join('\|') + +# HELP_TAG {{{3 +# The regex is copied from the help syntax plugin +const HELP_TAG: string = '\*[#-)!+-~]\+\*\%(\s\|$\)\@=' + +# Adapted from `$VIMRUNTIME/syntax/help.vim`.{{{ +# +# The original regex is: +# +# ^[-A-Z .][-A-Z0-9 .()_]*\ze\(\s\+\*\|$\) +# +# Allowing a space or a hyphen at the start can give false positives, and is +# useless, so we don't allow them. +#}}} + +# HELP_HEADLINE {{{3 +const HELP_HEADLINE: string = '^\C[A-Z.][-A-Z0-9 .()_]*\%(\s\+\*+\@!\|$\)' +# ^--^ +# To prevent some false positives under `:help feature-list`. +# Others {{{2 +var lvls: dict +def InitHelpLvls() + lvls = { + '*01.1*': 0, + '1.': 0, + '1.2': 0, + '1.2.3': 0, + 'header ~': 0, + HEADLINE: 0, + tag: 0, + } +enddef + +var fuzzy_entries: list> +var help_winid: number +var print_entry: bool +var selected_entry_match: number + +# Interface {{{1 +export def Open() #{{{2 + g:helptoc.type = GetType() + if !MATCH_ENTRY->has_key(g:helptoc.type) + return + endif + if g:helptoc.type == 'terminal' && win_gettype() == 'popup' + # trying to deal with a popup menu on top of a popup terminal seems + # too tricky for now + echomsg 'does not work in a popup window; only in a regular window' + return + endif + + UpdateUserSettings() + + # invalidate the cache if the buffer's contents has changed + if exists('b:toc') && &filetype != 'man' + if b:toc.changedtick != b:changedtick + # in a terminal buffer, `b:changedtick` does not change + || g:helptoc.type == 'terminal' && line('$') > b:toc.linecount + unlet! b:toc + endif + endif + + if !exists('b:toc') + SetToc() + endif + + var winpos: list = winnr()->win_screenpos() + var height: number = winheight(0) - 2 + var width: number = winwidth(0) + b:toc.width = b:toc.width ?? width / 3 + # the popup needs enough space to display the help message in its title + if b:toc.width < 30 + b:toc.width = 30 + endif + # Is `popup_menu()` OK with a list of dictionaries?{{{ + # + # Yes, see `:help popup_create-arguments`. + # Although, it expects dictionaries with the keys `text` and `props`. + # But we use dictionaries with the keys `text` and `lnum`. + # IOW, we abuse the feature which lets us use text properties in a popup. + #}}} + var winid: number = GetTocEntries() + ->popup_menu({ + line: winpos[0], + col: winpos[1] + width - 1, + pos: 'topright', + highlight: g:helptoc.type == 'terminal' ? 'Terminal' : 'Normal', + minheight: height, + maxheight: height, + minwidth: b:toc.width, + maxwidth: b:toc.width, + filter: Filter, + callback: Callback, + border: g:helptoc.popup_border, + borderchars: g:helptoc.popup_borderchars, + borderhighlight: g:helptoc.popup_borderhighlight, + close: g:helptoc.popup_close, + drag: g:helptoc.popup_drag, + scrollbar: g:helptoc.popup_scrollbar, + }) + # Specify filetypes using sanitized toc syntax{{{ + # Those filetypes have a normalized toc structure. The top level is + # unprefixed and levels 2 to 6 are prefixed, by default, with a vertical + # line and space for each level below 1: + # Level 1 + # | Level 2 + # ... + # | | | | | Level 6 }}} + final SanitizedTocSyntaxTypes: list = + ['asciidoc', 'html', 'markdown', 'tex', 'vim', 'xhtml'] + if index(SanitizedTocSyntaxTypes, g:helptoc.type) != -1 + # Specified types' toc popups use a common syntax + Win_execute(winid, 'SanitizedTocSyntax()') + else + # Other types' toc popups use the same syntax as the buffer itself + Win_execute(winid, [$'ownsyntax {&filetype}', '&l:conceallevel = 3']) + endif + # In a help file, we might reduce some noisy tags to a trailing asterisk. + # Hide those. + if g:helptoc.type == 'help' + matchadd('Conceal', '\*$', 0, -1, {window: winid}) + endif + SelectNearestEntryFromCursor(winid) + + # Can't set the title before jumping to the relevant line, otherwise the + # indicator in the title might be wrong + SetTitle(winid) +enddef + +# Core {{{1 +def SetToc() #{{{2 + # Lambdas: + # CHARACTER_REFERENCES_TO_CHARACTERS {{{3 + # These are used for AsciiDoc, Markdown, and [X]HTML, all of which allow + # for decimal, hexadecimal, and XML predefined entities. + # Decimal character references: e.g., § to § + # Hexadecimal character references: e.g., § to § + # XML predefined entities to chars: e.g., < to < + # All HTML5 named character references could be handled, though is that + # warranted for the few that may appear in a toc entry, especially when + # they are often mnemonic? Future: A common Vim dict/enum could be useful? + const CHARACTER_REFERENCES_TO_CHARACTERS = (text: string): string => + text->substitute('\v\�*([1-9]\d{0,6});', + '\=nr2char(str2nr(submatch(1), 10), 1)', 'g') + ->substitute('\c\v\�*([1-9a-f][[:xdigit:]]{1,5});', + '\=nr2char(str2nr(submatch(1), 16), 1)', 'g') + ->substitute('\C&', '\="\u0026"', 'g') + ->substitute('\C'', "\u0027", 'g') + ->substitute('\C>', "\u003E", 'g') + ->substitute('\C<', "\u003C", 'g') + ->substitute('\C"', "\u0022", 'g') + + # SANITIZE_ASCIIDOC {{{3 + # 1 - Substitute the = or # heading markup with the level indicator + # 2 - Substitute XML predefined, dec, and hex char refs in the entry + # AsciiDoc recommends only using named char refs defined in XML: + # https://docs.asciidoctor.org/asciidoc/latest/subs/replacements/ + const SANITIZE_ASCIIDOC = (text: string): string => + text->substitute('\v^(\={1,6}|#{1,6})\s+', + '\=repeat(g:helptoc.level_indicator, len(submatch(1)) - 1)', '') + ->CHARACTER_REFERENCES_TO_CHARACTERS() + + # SANITIZE_HTML {{{3 + # 1 - Remove any leading spaces or tabs + # 2 - Remove any + # 3 - Remove any + # 4 - Remove any leading tags (and any blanks) other than

    + # 7 - Remove trailing content following the + # 8 - Remove the

    , , , etc. + # 11 - Substitute XML predefined, dec and hex character references + const SANITIZE_HTML = (text: string): string => + text->substitute('^\s*', '', '') + ->substitute('[<]!--.\{-}--[>]', '', 'g') + ->substitute('[<]?[^?]\+?[>]', '', 'g') + ->substitute('\v%([<][^Hh][^1-6]?[^>][>])*\s*', '', '') + ->substitute('^\s\+', '', '') + ->substitute('\v[<][Hh]([1-6])\s*[/][>].*', + '\=repeat(g:helptoc.level_indicator, ' .. + 'str2nr(submatch(1)) - 1) ' .. + '.. "[Empty heading " .. submatch(1) .. "]"', '') + ->substitute('[<][/][Hh][1-6][>].*$', '', '') + ->substitute('[<][Hh]1[^>]*[>]', '', '') + ->substitute('\v[<][Hh]([2-6])[^>]*[>]', + '\=repeat(g:helptoc.level_indicator, ' .. + 'str2nr(submatch(1)) - 1)', '') + ->substitute('[<][/]\?[[:alpha:]][^>]*[>]', '', 'g') + ->CHARACTER_REFERENCES_TO_CHARACTERS() + + # SANITIZE_MARKDOWN #{{{3 + # 1 - Hyperlink incl image, e.g. [![Vim The editor](xxx)](\uri), to Vim... + # 2 - Hyperlink [text](/uri) to text + # 3 - Substitute the # ATX heading markup with the level indicator/level + # The omitted markup reflects CommonMark Spec: + # https://spec.commonmark.org/0.31.2/#atx-headings + # 4 - Substitute decimal, hexadecimal, and XML predefined char refs + const SANITIZE_MARKDOWN = (text: string): string => + text->substitute('\v[\u005B]![\u005B]([^\u005D]+)[\u005D]' + .. '[(][^)]+[)][\u005D][(][^)]+[)]', '\1', '') + ->substitute('\v[\u005B]([^\u005D]+)[\u005D][(][^)]+[)]', + '\1', '') + ->substitute('\v^ {0,3}(#{1,6})\s*', + '\=repeat(g:helptoc.level_indicator, len(submatch(1)) - 1)', + '') + ->CHARACTER_REFERENCES_TO_CHARACTERS() + + # SANITIZE_TERMINAL {{{3 + # Omit the prompt, which may be very long and otherwise just adds clutter + const SANITIZE_TERMINAL = (text: string): string => + text->substitute('^' .. g:helptoc.shell_prompt, '', '') + + # SANITIZE_TEX #{{{3 + # 1 - Use any [toc-title] overrides to move its content into the + # {heading} instead of the (non-ToC) heading's text + # 2 - Replace \part{ or \addcontentsline{toc}{part} with '[PART] ' + # 3 - Omit \chapter{ or \addcontentsline{toc}{chapter} + # 4 - Omit \section{ or \addcontentsline{toc}{section} + # 5 - Omit \subsection{ or \addcontentsline{toc}{subsection} + # 6 - Omit \subsubsection{ or \addcontentsline{toc}{subsubsection} + # 7 - Omit the trailing } + # 8 - Unescape common escaped characters &%$_#{}~^\ + const SANITIZE_TEX = (text: string): string => + text->substitute('\v^[\\](part|chapter|%(sub){0,2}section)' .. + '[\u005B]([^\u005D]+).*', '\\\1{\2}', '') + ->substitute('^[\\]\(part\|addcontentsline{toc}{part}\){', + '[PART] ', '') + ->substitute('^[\\]\(chapter\|addcontentsline{toc}{chapter}\){', + '', '') + ->substitute('^[\\]\(section\|addcontentsline{toc}{section}\){', + '\=g:helptoc.level_indicator', '') + ->substitute('^[\\]\(subsection\|' .. + 'addcontentsline{toc}{subsection}\){', + '\=repeat(g:helptoc.level_indicator, 2)', '') + ->substitute('^[\\]\(subsubsection\|' .. + 'addcontentsline{toc}{subsubsection}\){', + '\=repeat(g:helptoc.level_indicator, 3)', '') + ->substitute('}[^}]*$', '', '') + ->substitute('\\\([&%$_#{}~\\^]\)', '\1', 'g') + + # SANITIZE_VIM {{{3 + # #1 - Omit leading Vim9 script # or Vim script " markers and blanks + # #2 - Omit numbered 3x { markers + const SANITIZE_VIM = (text: string): string => + text->substitute('\v^[#[:blank:]"]*(.+)\ze[{]{3}([1-6])', + '\=submatch(2) == "1" ? submatch(1) : ' .. + 'repeat(g:helptoc.level_indicator, str2nr(submatch(2)) - 1)' .. + ' .. submatch(1)', 'g') + ->substitute('[#[:blank:]"]*{\{3}[1-6]', '', '') + #}}}3 + + final toc: dict = {entries: []} + toc.changedtick = b:changedtick + if !toc->has_key('width') + toc.width = 0 + endif + # We cache the toc in `b:toc` to get better performance.{{{ + # + # Without caching, when we press `H`, `L`, `H`, `L`, ... quickly for a few + # seconds, there is some lag if we then try to move with `j` and `k`. + # This can only be perceived in big man pages like with `:Man ffmpeg-all`. + #}}} + b:toc = toc + + if g:helptoc.type == 'help' + SetTocHelp() + return + endif + + if g:helptoc.type == 'terminal' + b:toc.linecount = line('$') + endif + + var curline: string = getline(1) + var nextline: string + var lvl_and_test: list> = MATCH_ENTRY + ->get(g:helptoc.type, {}) + ->items() + ->sort((l: list, ll: list): number => + l[0]->str2nr() - ll[0]->str2nr()) + + var skip_next: bool = false + var skip_fence: bool = false + + # Non-help headings processing + for lnum: number in range(1, line('$')) + if skip_next + skip_next = false + curline = nextline + continue + endif + + nextline = getline(lnum + 1) + + # Special handling for markdown filetype using setext headings + if g:helptoc.type == 'markdown' + # ignore fenced codeblock lines + if curline =~ '^```.' + skip_fence = true + elseif curline =~ '^```$' + skip_fence = !skip_fence + endif + if skip_fence + curline = nextline + continue + endif + # Check for setext formatted headings (= or - underlined) + if nextline =~ '^\s\{0,3}=\+$' && curline =~ '\S' + # Level 1 heading (one or more =, up to three spaces preceding) + b:toc.entries->add({ + lnum: lnum, + lvl: 1, + text: SANITIZE_MARKDOWN('# ' .. trim(curline)), + }) + skip_next = true + curline = nextline + continue + elseif nextline =~ '^\s\{0,3}-\+$' && curline =~ '\S' + # Level 2 heading (one or more -, up to three spaces preceding) + b:toc.entries->add({ + lnum: lnum, + lvl: 2, + text: SANITIZE_MARKDOWN('## ' .. trim(curline)), + }) + skip_next = true + curline = nextline + continue + endif + endif + + # Regular processing for markdown ATX-style headings + other filetypes + for [lvl: string, IsEntry: func: bool] in lvl_and_test + if IsEntry(curline, nextline) + if g:helptoc.type == 'asciidoc' + curline = curline->SANITIZE_ASCIIDOC() + elseif g:helptoc.type == 'html' || g:helptoc.type == 'xhtml' + curline = curline->SANITIZE_HTML() + elseif g:helptoc.type == 'markdown' + curline = curline->SANITIZE_MARKDOWN() + elseif g:helptoc.type == 'terminal' + curline = curline->SANITIZE_TERMINAL() + elseif g:helptoc.type == 'tex' + curline = curline->SANITIZE_TEX() + elseif g:helptoc.type == 'vim' + curline = curline->SANITIZE_VIM() + endif + b:toc.entries->add({ + lnum: lnum, + lvl: lvl->str2nr(), + text: curline, + }) + break + endif + endfor + curline = nextline + endfor + + InitMaxAndCurLvl() +enddef + +def SetTocHelp() #{{{2 + var main_ruler: string + for line: string in getline(1, '$') + if line =~ HELP_RULER + main_ruler = line =~ '=' ? HELP_RULERS['='] : HELP_RULERS['-'] + break + endif + endfor + + var prevline: string + var curline: string = getline(1) + var nextline: string + var in_list: bool + var last_numbered_entry: number + InitHelpLvls() + for lnum: number in range(1, line('$')) + nextline = getline(lnum + 1) + + if main_ruler != '' && curline =~ main_ruler + last_numbered_entry = 0 + # The information gathered in `lvls` might not be applicable to + # all the main sections of a help file. Let's reset it whenever + # we find a ruler. + InitHelpLvls() + endif + + # Do not assume that a list ends on an empty line. + # See the list at `:help gdb` for a counter-example. + if in_list + && curline !~ '^\d\+.\s' + && curline !~ '^\s*$' + && curline !~ '^[<[:blank:]]' + in_list = false + endif + + if prevline =~ '^\d\+\.\s' + && curline !~ '^\s*$' + && curline !~ $'^\s*{HELP_TAG}' + in_list = true + endif + + # 1. + if prevline =~ '^\d\+\.\s' + # Let's assume that the start of a main entry is always followed by an + # empty line, or a line starting with a tag + && (curline =~ '^>\=\s*$' || curline =~ $'^\s*{HELP_TAG}') + # ignore a numbered line in a list + && !in_list + var current_numbered_entry: number = prevline + ->matchstr('^\d\+\ze\.\s') + ->str2nr() + if current_numbered_entry > last_numbered_entry + AddEntryInTocHelp('1.', lnum - 1, prevline) + last_numbered_entry = prevline + ->matchstr('^\d\+\ze\.\s') + ->str2nr() + endif + endif + + # 1.2 + if curline =~ '^\d\+\.\d\+\s' + if curline =~ $'\%({HELP_TAG}\s*\|\~\)$' + || (prevline =~ $'^\s*{HELP_TAG}' || nextline =~ $'^\s*{HELP_TAG}') + || (prevline =~ HELP_RULER || nextline =~ HELP_RULER) + || (prevline =~ '^\s*$' && nextline =~ '^\s*$') + AddEntryInTocHelp('1.2', lnum, curline) + endif + # 1.2.3 + elseif curline =~ '^\s\=\d\+\.\d\+\.\d\+\s' + AddEntryInTocHelp('1.2.3', lnum, curline) + endif + + # HEADLINE + if curline =~ HELP_HEADLINE + && curline !~ '^CTRL-' + && prevline->IsSpecialHelpLine() + && (nextline ->IsSpecialHelpLine() + || nextline =~ '^\s*(\|^\t\|^N[oO][tT][eE]:') + AddEntryInTocHelp('HEADLINE', lnum, curline) + endif + + # header ~ + if curline =~ '\~$' + && curline =~ '\w' + && curline !~ '^[[:blank:]<]\|\t\|---+---\|^NOTE:' + && curline !~ '^\d\+\.\%(\d\+\%(\.\d\+\)\=\)\=\s' + && prevline !~ $'^\s*{HELP_TAG}' + && prevline !~ '\~$' + && nextline !~ '\~$' + AddEntryInTocHelp('header ~', lnum, curline) + endif + + # *some_tag* + if curline =~ HELP_TAG + AddEntryInTocHelp('tag', lnum, curline) + endif + + # In the Vim user manual, a main section is a special case.{{{ + # + # It's not a simple numbered section: + # + # 01.1 + # + # It's used as a tag: + # + # *01.1* Two manuals + # ^ ^ + #}}} + if prevline =~ main_ruler && curline =~ '^\*\d\+\.\d\+\*' + AddEntryInTocHelp('*01.1*', lnum, curline) + endif + + [prevline, curline] = [curline, nextline] + endfor + + # let's ignore the tag on the first line (not really interesting) + if b:toc.entries->get(0, {})->get('lnum') == 1 + b:toc.entries->remove(0) + endif + + # let's also ignore anything before the first `1.` line + var i: number = b:toc.entries + ->copy() + ->map((_, entry: dict) => entry.text) + ->match('^\s*1\.\s') + if i > 0 + b:toc.entries->remove(0, i - 1) + endif + + InitMaxAndCurLvl() + + # set level of tag entries to the deepest level + var has_tag: bool = b:toc.entries + ->copy() + ->map((_, entry: dict) => entry.text) + ->match(HELP_TAG) >= 0 + if has_tag + ++b:toc.maxlvl + endif + b:toc.entries + ->map((_, entry: dict) => entry.lvl == 0 + ? entry->extend({lvl: b:toc.maxlvl}) + : entry) + + # fix indentation + var min_lvl: number = b:toc.entries + ->copy() + ->map((_, entry: dict) => entry.lvl) + ->min() + for entry: dict in b:toc.entries + entry.text = entry.text + ->substitute('^\s*', () => + repeat(' ', (entry.lvl - min_lvl) * 3), '') + endfor +enddef + +def AddEntryInTocHelp(type: string, lnum: number, line: string) #{{{2 + # don't add a duplicate entry + if lnum == b:toc.entries->get(-1, {})->get('lnum') + # For a numbered line containing a tag, *do* add an entry. + # But only for its numbered prefix, not for its tag. + # The former is the line's most meaningful representation. + if b:toc.entries->get(-1, {})->get('type') == 'tag' + b:toc.entries->remove(-1) + else + return + endif + endif + + var text: string = line + if type == 'tag' + var tags: list + text->substitute(HELP_TAG, () => !!tags->add(submatch(0)), 'g') + text = tags + # we ignore errors and warnings because those are meaningless in + # a TOC where no context is available + ->filter((_, tag: string): bool => tag !~ '\*[EW]\d\+\*') + ->join() + if text !~ HELP_TAG + return + endif + endif + + var maxlvl: number = lvls->values()->max() + if type == 'tag' + lvls[type] = 0 + elseif type == '1.2' + lvls[type] = lvls[type] ?? lvls->get('1.', maxlvl) + 1 + elseif type == '1.2.3' + lvls[type] = lvls[type] ?? lvls->get('1.2', maxlvl) + 1 + else + lvls[type] = lvls[type] ?? maxlvl + 1 + endif + + # Ignore noisy tags.{{{ + # + # 14. Linking groups *:hi-link* *:highlight-link* *E412* *E413* + # ^----------------------------------------^ + # ^\s*\d\+\.\%(\d\+\.\=\)*\s\+.\{-}\zs\*.* + # --- + # + # We don't use conceal because then, `matchfuzzypos()` could match + # concealed characters, which would be confusing. + #}}} + # MAKING YOUR OWN SYNTAX FILES *mysyntaxfile* + # ^------------^ + # ^\s*[A-Z].\{-}\*\zs.* + # + var after_HEADLINE: string = '^\s*[A-Z].\{-}\*\zs.*' + # 14. Linking groups *:hi-link* *:highlight-link* *E412* *E413* + # ^----------------------------------------^ + # ^\s*\d\+\.\%(\d\+\.\=\)*\s\+.\{-}\*\zs.* + var after_numbered: string = '^\s*\d\+\.\%(\d\+\.\=\)*\s\+.\{-}\*\zs.*' + # 01.3 Using the Vim tutor *tutor* *vimtutor* + # ^----------------^ + var after_numbered_tutor: string = '^\*\d\+\.\%(\d\+\.\=\)*.\{-}\t\*\zs.*' + var noisy_tags: string = + $'{after_HEADLINE}\|{after_numbered}\|{after_numbered_tutor}' + text = text->substitute(noisy_tags, '', '') + # We don't remove the trailing asterisk, because the help syntax plugin + # might need it to highlight some headlines. + + b:toc.entries->add({ + lnum: lnum, + lvl: lvls[type], + text: text, + type: type, + }) +enddef + +def InitMaxAndCurLvl() #{{{2 + b:toc.maxlvl = b:toc.entries + ->copy() + ->map((_, entry: dict) => entry.lvl) + ->max() + b:toc.curlvl = b:toc.maxlvl +enddef + +def Popup_settext(winid: number, entries: list>) #{{{2 + var text: list + # When we fuzzy search the toc, the dictionaries in `entries` contain a + # `props` key, to highlight each matched character individually. + # We don't want to process those dictionaries further. + # The processing should already have been done by the caller. + if entries->get(0, {})->has_key('props') + text = entries + else + text = entries + ->copy() + ->map((_, entry: dict): string => entry.text) + endif + popup_settext(winid, text) + SetTitle(winid) + redraw +enddef + +def SetTitle(winid: number) #{{{2 + var curlnum: number + var lastlnum: number = line('$', winid) + var is_empty: bool = lastlnum == 1 + && winid->winbufnr()->getbufoneline(1) == '' + if is_empty + [curlnum, lastlnum] = [0, 0] + else + curlnum = line('.', winid) + endif + var newtitle: string = printf(' %*d/%d (%d/%d)', + len(lastlnum), curlnum, + lastlnum, + b:toc.curlvl, + b:toc.maxlvl, + ) + + var width: number = winid->popup_getoptions().minwidth + newtitle = printf('%s%*s', + newtitle, + width - newtitle->strlen(), + 'press ? for help ') + + popup_setoptions(winid, {title: newtitle}) +enddef + +def SelectNearestEntryFromCursor(winid: number) #{{{2 + var lnum: number = line('.') + if lnum == 1 + Win_execute(winid, 'normal! 1G') + return + endif + + if lnum == line('$') + Win_execute(winid, 'normal! G') + return + endif + + var collapsed_entries: list> = b:toc.entries + ->deepcopy() + ->filter((_, entry: dict): bool => entry.lvl <= b:toc.curlvl) + var firstline: number = collapsed_entries + ->reverse() + ->indexof((_, entry: dict): bool => entry.lnum <= lnum) + firstline = len(collapsed_entries) - firstline + + if firstline <= 0 + return + endif + Win_execute(winid, $'normal! {firstline}Gzz') +enddef + +def Filter(winid: number, key: string): bool #{{{2 + # support various normal commands for moving/scrolling + if [ + 'j', 'J', 'k', 'K', "\", "\", "\", "\", + "\", "\", + "\", "\", + 'g', 'G', "\", "\", + 'z' + ]->index(key) >= 0 + var scroll_cmd: string = { + J: 'j', + K: 'k', + g: '1G', + "\": '1G', + "\": 'G', + z: 'zz' + }->get(key, key) + + var old_lnum: number = line('.', winid) + Win_execute(winid, $'normal! {scroll_cmd}') + var new_lnum: number = line('.', winid) + + if print_entry + PrintEntry(winid) + endif + + # wrap around the edges + if new_lnum == old_lnum + scroll_cmd = { + j: '1G', + J: '1G', + k: 'G', + K: 'G', + "\": '1G', + "\": 'G', + "\": '1G', + "\": 'G', + }->get(key, '') + if !scroll_cmd->empty() + Win_execute(winid, $'normal! {scroll_cmd}') + endif + endif + + # move the cursor to the corresponding line in the main buffer + if key == 'J' || key == 'K' + var lnum: number = GetBufLnum(winid) + execute $'normal! 0{lnum}zt' + # Install a match in the regular buffer to highlight the position + # of the entry in the latter + MatchDelete() + selected_entry_match = matchaddpos('IncSearch', [lnum], 0, -1) + endif + SetTitle(winid) + + return true + endif + + if key == 'c' + SelectNearestEntryFromCursor(winid) + return true + endif + + # when we press `p`, print the selected line (useful when it's truncated) + if key == 'p' + PrintEntry(winid) + return true + endif + + # same thing, but automatically + if key == 'P' + print_entry = !print_entry + if print_entry + PrintEntry(winid) + else + echo '' + endif + return true + endif + + if key == 'q' + popup_close(winid, -1) + return true + endif + + if key == '?' + ToggleHelp(winid) + return true + endif + + # scroll help window + if key == "\" || key == "\" + var scroll_cmd: string = {"\": 'j', "\": 'k'}->get(key, key) + if scroll_cmd == 'j' && line('.', help_winid) == line('$', help_winid) + scroll_cmd = '1G' + elseif scroll_cmd == 'k' && line('.', help_winid) == 1 + scroll_cmd = 'G' + endif + Win_execute(help_winid, $'normal! {scroll_cmd}') + return true + endif + + # split main window + if key == 's' + split + return popup_filter_menu(winid, "\") + endif + + # increase/decrease the popup's width + if key == '+' || key == '-' + var width: number = winid->popup_getoptions().minwidth + if key == '-' && width == 1 + || key == '+' && winid->popup_getpos().col == 1 + return true + endif + width = width + (key == '+' ? 1 : -1) + # remember the last width if we close and re-open the TOC later + b:toc.width = width + popup_setoptions(winid, {minwidth: width, maxwidth: width}) + return true + endif + + if key == 'H' && b:toc.curlvl > 1 + || key == 'L' && b:toc.curlvl < b:toc.maxlvl + CollapseOrExpand(winid, key) + return true + endif + + if key == '/' + # This is probably what the user expects if they've started a first + # fuzzy search, press Escape, then start a new one. + DisplayNonFuzzyToc(winid) + + [{ + group: 'HelpToc', + event: 'CmdlineChanged', + pattern: '@', + cmd: $'FuzzySearch({winid})', + replace: true, + }, + { + group: 'HelpToc', + event: 'CmdlineLeave', + pattern: '@', + cmd: 'TearDown()', + replace: true, + }]->autocmd_add() + + # Need to evaluate `winid` right now{{{ + # with an `eval`'ed and `execute()`'ed heredoc because: + # + # - the mappings can only access the script-local namespace + # - `winid` is in the function namespace; not in the script-local one + #}}} + var input_mappings: list =<< trim eval END + cnoremap Filter({winid}, 'j') + cnoremap Filter({winid}, 'k') + cnoremap Filter({winid}, 'j') + cnoremap Filter({winid}, 'k') + END + input_mappings->execute() + + var look_for: string + try + popup_setoptions(winid, {mapping: true}) + look_for = input('look for: ', '', $'custom,{Complete->string()}') + | redraw + | echo '' + catch /Vim:Interrupt/ + TearDown() + finally + popup_setoptions(winid, {mapping: false}) + endtry + return look_for == '' ? true : popup_filter_menu(winid, "\") + endif + + return popup_filter_menu(winid, key) +enddef + +def FuzzySearch(winid: number) #{{{2 + var look_for: string = getcmdline() + if look_for == '' + DisplayNonFuzzyToc(winid) + return + endif + + # We match against *all* entries; not just the currently visible ones. + # Rationale: If we use a (fuzzy) search, we're probably lost. We don't + # know where the info is. + var matches: list> = b:toc.entries + ->copy() + ->matchfuzzypos(look_for, {key: 'text'}) + + fuzzy_entries = matches->get(0, [])->copy() + var pos: list> = matches->get(1, []) + + var text: list> + if !has('textprop') + text = matches->get(0, []) + else + var buf: number = winid->winbufnr() + if prop_type_get('help-fuzzy-toc', {bufnr: buf}) == {} + prop_type_add('help-fuzzy-toc', { + bufnr: buf, + combine: false, + highlight: 'IncSearch', + }) + endif + text = matches + ->get(0, []) + ->map((i: number, match: dict) => ({ + text: match.text, + props: pos[i]->copy()->map((_, col: number) => ({ + col: col + 1, + length: 1, + type: 'help-fuzzy-toc', + }))})) + endif + Win_execute(winid, 'normal! 1Gzt') + Popup_settext(winid, text) +enddef + +def DisplayNonFuzzyToc(winid: number) #{{{2 + fuzzy_entries = null_list + Popup_settext(winid, GetTocEntries()) +enddef + +def PrintEntry(winid: number) #{{{2 + echo GetTocEntries()[line('.', winid) - 1]['text'] +enddef + +def CollapseOrExpand(winid: number, key: string) #{{{2 + # Must be saved before we reset the popup contents, so we can + # automatically select the least unexpected entry in the updated popup. + var buf_lnum: number = GetBufLnum(winid) + + # find the nearest lower level for which the contents of the TOC changes + if key == 'H' + while b:toc.curlvl > 1 + var old: list> = GetTocEntries() + --b:toc.curlvl + var new: list> = GetTocEntries() + # In `:help`, there are only entries in levels 3. + # We don't want to collapse to level 2, nor 1. + # It would clear the TOC which is confusing. + if new->empty() + ++b:toc.curlvl + break + endif + var did_change: bool = new != old + if did_change || b:toc.curlvl == 1 + break + endif + endwhile + # find the nearest upper level for which the contents of the TOC changes + else + while b:toc.curlvl < b:toc.maxlvl + var old: list> = GetTocEntries() + ++b:toc.curlvl + var did_change: bool = GetTocEntries() != old + if did_change || b:toc.curlvl == b:toc.maxlvl + break + endif + endwhile + endif + + # Update the popup contents + var toc_entries: list> = GetTocEntries() + Popup_settext(winid, toc_entries) + + # Try to select the same entry; if it's no longer visible, select its + # direct parent. + var toc_lnum: number = 0 + for entry: dict in toc_entries + if entry.lnum > buf_lnum + break + endif + ++toc_lnum + endfor + Win_execute(winid, $'normal! {toc_lnum ?? 1}Gzz') +enddef + +def MatchDelete() #{{{2 + if selected_entry_match == 0 + return + endif + + selected_entry_match->matchdelete() + selected_entry_match = 0 +enddef + +def Callback(winid: number, choice: number) #{{{2 + MatchDelete() + + if help_winid != 0 + help_winid->popup_close() + help_winid = 0 + endif + + if choice == -1 + fuzzy_entries = null_list + return + endif + if choice == -2 # Button X is clicked (when close: 'button') + return + endif + + var lnum: number = GetTocEntries() + ->get(choice - 1, {}) + ->get('lnum') + + fuzzy_entries = null_list + + if lnum == 0 + return + endif + + # Moving the cursor with `normal! 123G` instead of `cursor()` adds an + # entry in the jumplist (which is useful if you want to come back where + # you were). + execute $'normal! {lnum}Gzvzt' +enddef + +def ToggleHelp(menu_winid: number) #{{{2 + # Show/hide HELP_TEXT in a second popup when '?' is typed{{{ + # (when a helptoc popup is open). A scrollbar on this popup makes sense + # because it is very long and, even if it's not used for scrolling, works + # well as an indicator of how far through the HELP_TEXT popup you are. }}} + if help_winid == 0 + var height: number = [HELP_TEXT->len(), winheight(0) * 2 / 3]->min() + var longest_line: number = HELP_TEXT + ->copy() + ->map((_, line: string) => line->strcharlen()) + ->max() + var width: number = [longest_line, winwidth(0) - 4]->min() + var zindex: number = popup_getoptions(menu_winid).zindex + ++zindex + help_winid = HELP_TEXT->popup_create({ + pos: 'center', + minheight: height, + maxheight: height, + minwidth: width, + maxwidth: width, + highlight: &buftype == 'terminal' ? 'Terminal' : 'Normal', + zindex: zindex, + border: g:helptoc.popup_border, + borderchars: g:helptoc.popup_borderchars, + borderhighlight: g:helptoc.popup_borderhighlight, + close: g:helptoc.popup_close, + scrollbar: true, + }) + + setwinvar(help_winid, '&cursorline', true) + setwinvar(help_winid, '&linebreak', true) + matchadd('Special', '^<\S\+\|^\S\{,2} \@=', 0, -1, + {window: help_winid}) + matchadd('Number', '\d\+', 0, -1, {window: help_winid}) + for lnum: number in HELP_TEXT->len()->range() + if HELP_TEXT[lnum] =~ '^─\+$' + matchaddpos('Title', [lnum], 0, -1, {window: help_winid}) + endif + endfor + + else + if IsVisible(help_winid) + popup_hide(help_winid) + else + popup_show(help_winid) + endif + endif +enddef + +def Win_execute(winid: number, cmd: any) #{{{2 + # wrapper around `win_execute()` to enforce a redraw, which might be necessary + # whenever we change the cursor position + win_execute(winid, cmd) + redraw +enddef + +def TearDown() #{{{2 + autocmd_delete([{group: 'HelpToc'}]) + cunmap + cunmap + cunmap + cunmap +enddef +# Util {{{1 +def GetType(): string #{{{2 + return &buftype == 'terminal' ? 'terminal' : &filetype +enddef + +def GetTocEntries(): list> #{{{2 + return fuzzy_entries ?? b:toc.entries + ->copy() + ->filter((_, entry: dict): bool => entry.lvl <= b:toc.curlvl) +enddef + +def GetBufLnum(winid: number): number #{{{2 + var toc_lnum: number = line('.', winid) + return GetTocEntries() + ->get(toc_lnum - 1, {}) + ->get('lnum') +enddef + +def IsVisible(win: number): bool #{{{2 + return win->popup_getpos()->get('visible') +enddef + +def IsSpecialHelpLine(line: string): bool #{{{2 + return line =~ '^[<>]\=\s*$' + || line =~ '^\s*\*' + || line =~ HELP_RULER + || line =~ HELP_HEADLINE +enddef + +def Complete(..._): string #{{{2 + return b:toc.entries + ->copy() + ->map((_, entry: dict) => + entry.text->trim(' ~')->substitute('*', '', 'g')) + ->filter((_, text: string): bool => text =~ '^[-a-zA-Z0-9_() ]\+$') + ->sort() + ->uniq() + ->join("\n") +enddef #}}}2 +#}}}1 +# vim:et:ft=vim:fdm=marker: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/helptoc.txt b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/helptoc.txt new file mode 100644 index 0000000000000000000000000000000000000000..667dadd2b12fe9ec778039a6aa088f9dff45f497 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/helptoc.txt @@ -0,0 +1,351 @@ +*helptoc.txt* For Vim version 9.1. Last change: 2025 Aug 10 + + + VIM REFERENCE MANUAL + +Interactive table of contents for help buffers and several other filetypes +============================================================================== + + +1. OVERVIEW *HelpToc-overview* + +The helptoc.vim plugin provides one command, :HelpToc, which generates a +hierarchical table of contents in a popup window, which is based on the +structure of a Vim buffer. See |Helptoc-mappings| for a list of supported key +mappings in the popup window. + +It was designed initially for help buffers, but it also works with buffers of +the following types: + - asciidoc + - html + - man + - markdown + - terminal + - tex + - vim Note: only with numbered fold markers, e.g. {{{1 + - xhtml + +1.1 The :HelpToc command *HelpToc-:HelpToc* + +The :HelpToc command takes no arguments and it cannot be executed from an +unsupported filetype. Also, it cannot be used to generate a table of contents +for an inactive buffer. + +For most buffers of the supported types, :HelpToc may be entered directly +in Vim's |Command-line-mode|. How to use it from Vim's |Terminal-Job| mode is +explained in |HelpToc-terminal-buftype|. + +You may choose to map :HelpToc to keys making it easier to use. These are +examples of what could be used: > + + nnoremap ht HelpToc + tnoremap HelpToc +< + +2. DETAILS *HelpToc-details* + +When the :HelpToc command is executed from an active buffer of a supported +type, a popup window is produced. The window contains a hierarchical and +interactive table of contents. The entries are based on the "headings" in +the buffer. + +Jumping to an entry's position in the buffer can be achieved by pressing +enter on the applicable entry. Navigation, and other commands applicable to +the popup window, such as expanding and contracting levels, fuzzy searching, +and jumping to the previous or next entry (leaving the table of contents +itself displayed, using J and K), is provided at |help-TOC|, so that is not +reproduced in this help file. + + +3. TYPES *HelpToc-types* + +Some filetypes have more predictable structures than others. For example, +markdown and asciidoc make the identification of headings (aside from edge +cases, such as when in quotes) straightforward. Some filetypes do not have +such obvious or reliable headings/levels (particularly help buffers). +Further, in some instances, how to enter the :HelpToc command is not +necessarily obvious, e.g., when in a Vim |terminal-window|. So, the following +headings address specific details regarding the in-scope types. + +3.1 asciidoc *HelpToc-asciidoc-filetype* + +The heading levels in asciidoc are typically identified by lines starting +with a "=" (up to six, one per level), one or more blank characters, and the +heading text. :HelpToc will generate a table of contents based on either +that form of heading type or, because asciidoc also allows for ATX heading +level syntax (i.e., using the "#" character), headings using that format too. + +As asciidoc is very structured, its table of contents entries are presented +in a standardized form - see |HelpToc-standardized-toc|. So, the initial +"=" or "#" characters and the following space from the related heading are +not included in the table of contents' entries. + +3.2 html *HelpToc-html-filetype* + +HTML provides for six levels of headings,

    to

    , which may be either +upper or lower case and preceded by all sorts of content like . +:HelpToc will produce a table of contents based on the six heading levels. + +As HTML is very structured, its table of contents entries are presented +in a standardized form - see |HelpToc-standardized-toc|. So, the

    to

    +tags, any preceding content, and any trailing content after the heading text, +is not included in the table of contents' entries. + +3.3 man pages *HelpToc-man-filetype* + +Retrieving man pages is typically performed in the terminal. To use :HelpToc +to generate a table of contents, the |man.vim| filetype plugin is a +prerequisite. It is provided with Vim, and may be sourced with: > + + :runtime ftplugin/man.vim +< +Once sourced, the |:Man| command will open the applicable man page in a new +buffer (of "man" filetype). For example: > + + :Man pwd +< +Once in the man buffer, entering :HelpToc opens the table of contents popup, +with level 1 containing section names like NAME, SYNOPSIS, etc. Levels +below 1 include subsections and options, with the level depending on the +number of spaces preceding the content. + +The table of contents for a man buffer's popup window has the same syntax +highlighting as man pages. This reflects that its content is reproduced +as-is, i.e., no preceding tags, level-indicating data, etc., need be omitted +for optimal presentation. + +3.4 markdown *HelpToc-markdown-filetype* + +The headings and levels in markdown typically are ATX formatted headings +(lines starting with up to three spaces, one to six "#", then (optionally) +one or blank characters and the heading text). The alternate form, +setext, uses up to three spaces, the heading 1 text, followed by a +line of one or more "=". The setext heading 2 is similar, but for one or +more "-" instead of "=". There is no heading 3+ in setext. ATX and setext +headings are supported. + +As markdown is very structured, its table of contents entries are presented +in a standardized form - see |HelpToc-standardized-toc|. So, they do not +include any leading spaces, any initial "#" characters and the following blank +character(s) in the table of contents' entries. + +3.5 terminal *HelpToc-terminal-buftype* + +There are no explicit "headings" for a terminal buffer. However, :HelpToc +displays the history of executed shell commands. Those may be specified +by changing the pattern used to match the Vim terminal's prompt. +See |HelpToc-configuration| for examples. + +To access the terminal's table of contents, from the Vim's |Terminal-Job| mode +enter CTRL-W N to go to |Terminal-Normal| mode. From there, enter :HelpToc to +generate the table of contents. If you use the terminal's table of contents +a lot, an appropriate mapping may make it easier than using CTRL-W N - e.g.: > + + tnoremap HelpToc +< +As the terminal has only "level 1", the table of contents is presented in a +standardized form - see |HelpToc-standardized-toc| - including only the history +list of commands. The prompt itself is also omitted since it adds no value +repeating it for every entry. + +3.6 tex *HelpToc-tex-filetype* + +In LaTeX, a document may be structured hierarchically using part, chapter, +and sectioning commands. Document structure levels are: + \part{} + \chapter{} + \section{} + \subsection{} + \subsubsection{} + +To keep things simpler, \part{} is supported, though treated as being at +the same level as chapter. Consequently, there are four levels displayed +for a tex filetype's table of contents, regardless of the \documentclass{}, +i.e., part and chapter (at level 1), section (level 2), subsection (level 3), +and subsubsection (level 4). + +Also supported are: + - The "*" used to produce unnumbered headings, which are not intended + for reproduction in a table of contents: > + \section*{Unnumbered section heading not produced in the TOC} +< - Manual toc entries using \addcontentsline, for example: > + \addcontentsline{toc}{section}{entry in the TOC only!} +< +The table of contents for a tex filetype is in a standardized form - +see |HelpToc-standardized-toc|. Omitted are: the "\", the part, chapter, +*section, or addcontentsline, and the left and right curly +brackets preceding and following each heading's text. + +3.7 vim *HelpToc-vim-filetype* + +Vim script and Vim9 script do not have headings or levels inherently like +markup languages. However, Vim provides for |folds| defined by markers (|{{{|), +which themselves may be succeeded by a number explicitly indicating the fold +level. This is the structure recognized and supported by helptoc.vim. +So, for example, the following would produce three table of contents entries: > + + vim9script + # Variables {{{1 + var b: bool = true + var s: string = $"Fold markers are great? {b}!" + # Functions {{{1 + def MyFunction(): void #{{{2 + echo s + enddef + MyFunction() +< +The table of contents for that script would appear like this: + Variables + Functions + | MyFunction(): void + +Note: The numbered |{{{| marker structure is the only one supported by + helptoc.vim for the vim filetype. + +As the {{{1 to {{{6 markers make the "headings" explicit, the table of +contents is in a standardized form - see |HelpToc-standardized-toc|. +It does not include any leading comment markers (i.e., either # or ") and +omits the markers themselves. + +3.8 xhtml *HelpToc-xhtml-filetype* + +Although XHTML, being XML, is more strictly structured than HTML/HTML5, +there is no practical difference in treatment required for the xhtml filetype +because, at the heading level, the tags that matter are very similar. +See |HelpToc-html-filetype| for how an xhtml filetype's table of contents is +supported. + + +4. STANDARDIZED TOC *HelpToc-standardized-toc* + +The table of contents for a help buffer, terminal, or man page, make sense +being presented in the form they appear, minus trailing content (such as tags). + +The table of contents for a markdown, asciidoc, [x]html, terminal, or tex +buffer have superfluous content if the entire line was to be returned. +For example: +- Markdown has "#" characters before headings when using ATX heading notation. +- Asciidoc will have either those or, more often, "=" characters before its + headings. +- HTML, aside from the " + vim9 g:helptoc.shell_prompt = '^\$\s' + + + vim9 g:helptoc.level_indicator = '¦ ' +< +popup_border By default, the table of contents border will appear above, + right, below, and left of the popup window. If you prefer + not to have the border on the right and left (for example + only), you can achieve that with: > + vim9 g:helptoc.popup_border = [1, 0, 1, 0] + + vim9 g:helptoc.popup_borderchars = [' '] + + vim9 g:helptoc.popup_borderhighlight = ['Cursor'] + +< Note: Choosing a highlight group that persists when + colorschemes change may be a good idea if you + do choose to customize this. + +popup_drag By default, table of contents popup windows may be dragged + with a mouse. If you want to prevent that from happening, + for whatever reason, you may deactivate it with: > + vim9 g:helptoc.popup_drag = false +< +popup_close Table of contents popups have "none" as the default setting + for this option. If you use a mouse, you may want either + to have the option to close popup windows by clicking on them + or to have a clickable "X" in the top right corner. For the + former, use "click", and for the latter, use "button", e.g.: > + vim9 g:helptoc.popup_close = "button" + + vim9 g:helptoc.popup_scrollbar = true +< +NOTE: Information about the "popup_*" options, above, relate to popup options, +which are explained at the 'second argument' part of |popup_create-arguments|. + + +6. LIMITATIONS *HelpToc-limitations* + +- The help filetype may have edge case formatting patterns. Those may result + in some "headings" not being identified and/or may impact the heading levels + of entries in the table of contents itself. +- Terminal window table of contents may not be active (insofar as jumping to + entries going to the Vim terminal's related command line). For example, if + Vim's terminal is set to Windows PowerShell Core, the table of contents will + display successfully, though the entries go nowhere when Enter, J, or K are + entered on them. +- The tex filetype may have variable sectioning commands depending on the + document class. Consequently, some compromises are made, though they should + have minimal impact. Specifically: + * In instances where \part{} and \chapter{} appear in the same buffer, they + will both present at the top level in the table of contents. This should + be a minor matter because, in many instances, chapters will be in a + separate document using \include{}. + * An article or beamer \documentclass without a \part{} (or any document + with neither any \part{} nor any \chapter{} command) will have no content + at level 1. Consequently, its table of contents entries will all appear + preceded by at least one "| " (by default) because its headings start at + level 2 (presuming \section{} is present). +- The vim filetype is only supported where numbered fold markers are applied. + This is intentional (including not handling unnumbered markers, which, when + used in combination with numbered ones, may be used for folding comments). + helptoc.vim itself provides an exemplar of how to use numbered fold markers, + not only for folds, but to support generating a useful table of contents + using :HelpToc. + +============================================================================== +vim:tw=78:ts=8:fo=tcq2:ft=help: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..cd62dec896d7bf631653d331888caa10f3d0d648 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/doc/tags @@ -0,0 +1,16 @@ +HelpToc-:HelpToc helptoc.txt /*HelpToc-:HelpToc* +HelpToc-asciidoc-filetype helptoc.txt /*HelpToc-asciidoc-filetype* +HelpToc-configuration helptoc.txt /*HelpToc-configuration* +HelpToc-details helptoc.txt /*HelpToc-details* +HelpToc-html-filetype helptoc.txt /*HelpToc-html-filetype* +HelpToc-limitations helptoc.txt /*HelpToc-limitations* +HelpToc-man-filetype helptoc.txt /*HelpToc-man-filetype* +HelpToc-markdown-filetype helptoc.txt /*HelpToc-markdown-filetype* +HelpToc-overview helptoc.txt /*HelpToc-overview* +HelpToc-standardized-toc helptoc.txt /*HelpToc-standardized-toc* +HelpToc-terminal-buftype helptoc.txt /*HelpToc-terminal-buftype* +HelpToc-tex-filetype helptoc.txt /*HelpToc-tex-filetype* +HelpToc-types helptoc.txt /*HelpToc-types* +HelpToc-vim-filetype helptoc.txt /*HelpToc-vim-filetype* +HelpToc-xhtml-filetype helptoc.txt /*HelpToc-xhtml-filetype* +helptoc.txt helptoc.txt /*helptoc.txt* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/helptoc/plugin/helptoc.vim b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/plugin/helptoc.vim new file mode 100644 index 0000000000000000000000000000000000000000..4fb3bc393dc8f89042fd4f164cf7b2306952ed7a --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/helptoc/plugin/helptoc.vim @@ -0,0 +1,5 @@ +vim9script noclear + +import autoload '../autoload/helptoc.vim' + +command -bar HelpToc helptoc.Open() diff --git a/git/usr/share/vim/vim92/pack/dist/opt/hlyank/plugin/hlyank.vim b/git/usr/share/vim/vim92/pack/dist/opt/hlyank/plugin/hlyank.vim new file mode 100644 index 0000000000000000000000000000000000000000..3e0cdb9bfb1e1c510c862e8517bcf37044cc142a --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/hlyank/plugin/hlyank.vim @@ -0,0 +1,43 @@ +vim9script + +# Highlight Yank plugin +# Last Change: 2026 Apr 11 + +def HighlightedYank() + + var hlgroup = get(g:, "hlyank_hlgroup", "IncSearch") + var duration = min([get(g:, "hlyank_duration", 300), 3000]) + var in_visual = get(g:, "hlyank_invisual", true) + + if v:event.operator ==? 'y' + if !in_visual && visualmode() != null_string + visualmode(1) + return + endif + # if clipboard has autoselect (default on linux) exiting from Visual with + # ESC generates bogus event and this highlights previous yank + if &clipboard =~ 'autoselect' && v:event.regname == "*" && v:event.visual + return + endif + var [beg, end] = [getpos("'["), getpos("']")] + var type = v:event.regtype ?? 'v' + var pos = getregionpos(beg, end, {type: type, exclusive: false}) + var m = matchaddpos(hlgroup, pos->mapnew((_, v) => { + var col_beg = v[0][2] + v[0][3] + var col_end = v[1][2] + v[1][3] + 1 + return [v[0][1], col_beg, col_end - col_beg] + })) + var winid = win_getid() + timer_start(duration, (_) => { + if winbufnr(winid) != -1 + m->matchdelete(winid) + endif + }) + endif +enddef + +augroup hlyank + autocmd! + autocmd TextYankPost * HighlightedYank() +augroup END +# vim:sts=2:sw=2:et: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/justify/plugin/justify.vim b/git/usr/share/vim/vim92/pack/dist/opt/justify/plugin/justify.vim new file mode 100644 index 0000000000000000000000000000000000000000..57be790423ddc6c66538ebcdeb3671794a36083d --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/justify/plugin/justify.vim @@ -0,0 +1,316 @@ +" Function to left and right align text. +" +" Written by: Preben "Peppe" Guldberg +" Created: 980806 14:13 (or around that time anyway) +" Revised: 001103 00:36 (See "Revisions" below) + + +" function Justify( [ textwidth [, maxspaces [, indent] ] ] ) +" +" Justify() will left and right align a line by filling in an +" appropriate amount of spaces. Extra spaces are added to existing +" spaces starting from the right side of the line. As an example, the +" following documentation has been justified. +" +" The function takes the following arguments: + +" textwidth argument +" ------------------ +" If not specified, the value of the 'textwidth' option is used. If +" 'textwidth' is zero a value of 80 is used. +" +" Additionally the arguments 'tw' and '' are accepted. The value of +" 'textwidth' will be used. These are handy, if you just want to specify +" the maxspaces argument. + +" maxspaces argument +" ------------------ +" If specified, alignment will only be done, if the longest space run +" after alignment is no longer than maxspaces. +" +" An argument of '' is accepted, should the user like to specify all +" arguments. +" +" To aid user defined commands, negative values are accepted aswell. +" Using a negative value specifies the default behaviour: any length of +" space runs will be used to justify the text. + +" indent argument +" --------------- +" This argument specifies how a line should be indented. The default is +" to keep the current indentation. +" +" Negative values: Keep current amount of leading whitespace. +" Positive values: Indent all lines with leading whitespace using this +" amount of whitespace. +" +" Note that the value 0, needs to be quoted as a string. This value +" leads to a left flushed text. +" +" Additionally units of 'shiftwidth'/'sw' and 'tabstop'/'ts' may be +" added. In this case, if the value of indent is positive, the amount of +" whitespace to be added will be multiplied by the value of the +" 'shiftwidth' and 'tabstop' settings. If these units are used, the +" argument must be given as a string, eg. Justify('','','2sw'). +" +" If the values of 'sw' or 'tw' are negative, they are treated as if +" they were 0, which means that the text is flushed left. There is no +" check if a negative number prefix is used to change the sign of a +" negative 'sw' or 'ts' value. +" +" As with the other arguments, '' may be used to get the default +" behaviour. + + +" Notes: +" +" If the line, adjusted for space runs and leading/trailing whitespace, +" is wider than the used textwidth, the line will be left untouched (no +" whitespace removed). This should be equivalent to the behaviour of +" :left, :right and :center. +" +" If the resulting line is shorter than the used textwidth it is left +" untouched. +" +" All space runs in the line are truncated before the alignment is +" carried out. +" +" If you have set 'noexpandtab', :retab! is used to replace space runs +" with whitespace using the value of 'tabstop'. This should be +" conformant with :left, :right and :center. +" +" If joinspaces is set, an extra space is added after '.', '?' and '!'. +" If 'cpoptions' include 'j', extra space is only added after '.'. +" (This may on occasion conflict with maxspaces.) + + +" Related mappings: +" +" Mappings that will align text using the current text width, using at +" most four spaces in a space run and keeping current indentation. +nmap _j :%call Justify('tw',4) +vmap _j :call Justify('tw',4) +" +" Mappings that will remove space runs and format lines (might be useful +" prior to aligning the text). +nmap ,gq :%s/\s\+/ /ggq1G +vmap ,gq :s/\s\+/ /ggvgq + + +" User defined command: +" +" The following is an ex command that works as a shortcut to the Justify +" function. Arguments to Justify() can be added after the command. +com! -range -nargs=* Justify ,call Justify() +" +" The following commands are all equivalent: +" +" 1. Simplest use of Justify(): +" :call Justify() +" :Justify +" +" 2. The _j mapping above via the ex command: +" :%Justify tw 4 +" +" 3. Justify visualised text at 72nd column while indenting all +" previously indented text two shiftwidths +" :'<,'>call Justify(72,'','2sw') +" :'<,'>Justify 72 -1 2sw +" +" This documentation has been justified using the following command: +":se et|kz|1;/^" function Justify(/+,'z-g/^" /s/^" //|call Justify(70,3)|s/^/" / + +" Revisions: +" 001103: If 'joinspaces' was set, calculations could be wrong. +" Tabs at start of line could also lead to errors. +" Use setline() instead of "exec 's/foo/bar/' - safer. +" Cleaned up the code a bit. +" +" Todo: Convert maps to the new script specific form + +" Error function +function! Justify_error(message) + echohl Error + echo "Justify([tw, [maxspaces [, indent]]]): " . a:message + echohl None +endfunction + + +" Now for the real thing +function! Justify(...) range + + if a:0 > 3 + call Justify_error("Too many arguments (max 3)") + return 1 + endif + + " Set textwidth (accept 'tw' and '' as arguments) + if a:0 >= 1 + if a:1 =~ '^\(tw\)\=$' + let tw = &tw + elseif a:1 =~ '^\d\+$' + let tw = a:1 + else + call Justify_error("tw must be a number (>0), '' or 'tw'") + return 2 + endif + else + let tw = &tw + endif + if tw == 0 + let tw = 80 + endif + + " Set maximum number of spaces between WORDs + if a:0 >= 2 + if a:2 == '' + let maxspaces = tw + elseif a:2 =~ '^-\d\+$' + let maxspaces = tw + elseif a:2 =~ '^\d\+$' + let maxspaces = a:2 + else + call Justify_error("maxspaces must be a number or ''") + return 3 + endif + else + let maxspaces = tw + endif + if maxspaces <= 1 + call Justify_error("maxspaces should be larger than 1") + return 4 + endif + + " Set the indentation style (accept sw and ts units) + let indent_fix = '' + if a:0 >= 3 + if (a:3 == '') || a:3 =~ '^-[1-9]\d*\(shiftwidth\|sw\|tabstop\|ts\)\=$' + let indent = -1 + elseif a:3 =~ '^-\=0\(shiftwidth\|sw\|tabstop\|ts\)\=$' + let indent = 0 + elseif a:3 =~ '^\d\+\(shiftwidth\|sw\|tabstop\|ts\)\=$' + let indent = substitute(a:3, '\D', '', 'g') + elseif a:3 =~ '^\(shiftwidth\|sw\|tabstop\|ts\)$' + let indent = 1 + else + call Justify_error("indent: a number with 'sw'/'ts' unit") + return 5 + endif + if indent >= 0 + while indent > 0 + let indent_fix = indent_fix . ' ' + let indent = indent - 1 + endwhile + let indent_sw = 0 + if a:3 =~ '\(shiftwidth\|sw\)' + let indent_sw = &sw + elseif a:3 =~ '\(tabstop\|ts\)' + let indent_sw = &ts + endif + let indent_fix2 = '' + while indent_sw > 0 + let indent_fix2 = indent_fix2 . indent_fix + let indent_sw = indent_sw - 1 + endwhile + let indent_fix = indent_fix2 + endif + else + let indent = -1 + endif + + " Avoid substitution reports + let save_report = &report + set report=1000000 + + " Check 'joinspaces' and 'cpo' + if &js == 1 + if &cpo =~ 'j' + let join_str = '\(\. \)' + else + let join_str = '\([.!?!] \)' + endif + endif + + let cur = a:firstline + while cur <= a:lastline + + let str_orig = getline(cur) + let save_et = &et + set et + exec cur . "retab" + let &et = save_et + let str = getline(cur) + + let indent_str = indent_fix + let indent_n = strlen(indent_str) + " Shall we remember the current indentation + if indent < 0 + let indent_orig = matchstr(str_orig, '^\s*') + if strlen(indent_orig) > 0 + let indent_str = indent_orig + let indent_n = strlen(matchstr(str, '^\s*')) + endif + endif + + " Trim trailing, leading and running whitespace + let str = substitute(str, '\s\+$', '', '') + let str = substitute(str, '^\s\+', '', '') + let str = substitute(str, '\s\+', ' ', 'g') + let str_n = strdisplaywidth(str) + + " Possible addition of space after punctuation + if exists("join_str") + let str = substitute(str, join_str, '\1 ', 'g') + endif + let join_n = strdisplaywidth(str) - str_n + + " Can extraspaces be added? + " Note that str_n may be less than strlen(str) [joinspaces above] + if strdisplaywidth(str) <= tw - indent_n && str_n > 0 + " How many spaces should be added + let s_add = tw - str_n - indent_n - join_n + let s_nr = strlen(substitute(str, '\S', '', 'g') ) - join_n + let s_dup = s_add / s_nr + let s_mod = s_add % s_nr + + " Test if the changed line fits with tw + if 0 <= (str_n + (maxspaces - 1)*s_nr + indent_n) - tw + + " Duplicate spaces + while s_dup > 0 + let str = substitute(str, '\( \+\)', ' \1', 'g') + let s_dup = s_dup - 1 + endwhile + + " Add extra spaces from the end + while s_mod > 0 + let str = substitute(str, '\(\(\s\+\S\+\)\{' . s_mod . '}\)$', ' \1', '') + let s_mod = s_mod - 1 + endwhile + + " Indent the line + if indent_n > 0 + let str = substitute(str, '^', indent_str, '' ) + endif + + " Replace the line + call setline(cur, str) + + " Convert to whitespace + if &et == 0 + exec cur . 'retab!' + endif + + endif " Change of line + endif " Possible change + + let cur = cur + 1 + endwhile + + norm ^ + + let &report = save_report + +endfunction + +" EOF vim: tw=78 ts=8 sw=4 sts=4 noet ai diff --git a/git/usr/share/vim/vim92/pack/dist/opt/matchit/autoload/matchit.vim b/git/usr/share/vim/vim92/pack/dist/opt/matchit/autoload/matchit.vim new file mode 100644 index 0000000000000000000000000000000000000000..1e660ffd3e0ec8bd0904c78009396088c31a18af --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/matchit/autoload/matchit.vim @@ -0,0 +1,817 @@ +" matchit.vim: (global plugin) Extended "%" matching +" autload script of matchit plugin, see ../plugin/matchit.vim +" Last Change: Jan 09, 2026 + +" Neovim does not support scriptversion +if has("vimscript-4") + scriptversion 4 +endif + +let s:last_mps = "" +let s:last_words = ":" +let s:patBR = "" + +let s:save_cpo = &cpo +set cpo&vim + +" Auto-complete mappings: (not yet "ready for prime time") +" TODO Read :help write-plugin for the "right" way to let the user +" specify a key binding. +" let g:match_auto = '' +" let g:match_autoCR = '' +" if exists("g:match_auto") +" execute "inoremap " . g:match_auto . ' x"=Autocomplete()Pls' +" endif +" if exists("g:match_autoCR") +" execute "inoremap " . g:match_autoCR . ' =Autocomplete()' +" endif +" if exists("g:match_gthhoh") +" execute "inoremap " . g:match_gthhoh . ' :call Gthhoh()' +" endif " gthhoh = "Get the heck out of here!" + +let s:notslash = '\\\@1" + let startpos = [line("."), col(".")] + endif + + " Check for custom match function hook + if exists("b:match_function") + try + let result = call(b:match_function, [a:forward]) + if !empty(result) + call cursor(result) + return s:CleanUp(restore_options, a:mode, startpos) + endif + catch /.*/ + if exists("b:match_debug") + echohl WarningMsg + echom 'matchit: b:match_function error: ' .. v:exception + echohl NONE + endif + return s:CleanUp(restore_options, a:mode, startpos) + endtry + " Empty result: fall through to regular matching + endif + + " First step: if not already done, set the script variables + " s:do_BR flag for whether there are backrefs + " s:pat parsed version of b:match_words + " s:all regexp based on s:pat and the default groups + if !exists("b:match_words") || b:match_words == "" + let match_words = "" + elseif b:match_words =~ ":" + let match_words = b:match_words + else + " Allow b:match_words = "GetVimMatchWords()" . + execute "let match_words =" b:match_words + endif +" Thanks to Preben "Peppe" Guldberg and Bram Moolenaar for this suggestion! + if (match_words != s:last_words) || (&mps != s:last_mps) + \ || exists("b:match_debug") + let s:last_mps = &mps + " quote the special chars in 'matchpairs', replace [,:] with \| and then + " append the builtin pairs (/*, */, #if, #ifdef, #ifndef, #else, #elif, + " #elifdef, #elifndef, #endif) + let default = escape(&mps, '[$^.*~\\/?]') .. (strlen(&mps) ? "," : "") .. + \ '\/\*:\*\/,#\s*if\%(n\=def\)\=:#\s*else\>:#\s*elif\%(n\=def\)\=\>:#\s*endif\>' + " s:all = pattern with all the keywords + let match_words = s:Append(match_words, default) + let s:last_words = match_words + if match_words !~ s:notslash .. '\\\d' + let s:do_BR = 0 + let s:pat = match_words + else + let s:do_BR = 1 + let s:pat = s:ParseWords(match_words) + endif + let s:all = substitute(s:pat, s:notslash .. '\zs[,:]\+', '\\|', 'g') + " un-escape \, and \: to , and : + let s:all = substitute(s:all, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + " Just in case there are too many '\(...)' groups inside the pattern, make + " sure to use \%(...) groups, so that error E872 can be avoided + let s:all = substitute(s:all, '\\(', '\\%(', 'g') + let s:all = '\%(' .. s:all .. '\)' + if exists("b:match_debug") + let b:match_pat = s:pat + endif + " Reconstruct the version with unresolved backrefs. + let s:patBR = substitute(match_words .. ',', + \ s:notslash .. '\zs[,:]*,[,:]*', ',', 'g') + let s:patBR = substitute(s:patBR, s:notslash .. '\zs:\{2,}', ':', 'g') + " un-escape \, to , + let s:patBR = substitute(s:patBR, '\\,', ',', 'g') + endif + + " Second step: set the following local variables: + " matchline = line on which the cursor started + " curcol = number of characters before match + " prefix = regexp for start of line to start of match + " suffix = regexp for end of match to end of line + " Require match to end on or after the cursor and prefer it to + " start on or before the cursor. + let matchline = getline(startpos[0]) + if a:word != '' + " word given + if a:word !~ s:all + echohl WarningMsg|echo 'Missing rule for word:"'.a:word.'"'|echohl NONE + return s:CleanUp(restore_options, a:mode, startpos) + endif + let matchline = a:word + let curcol = 0 + let prefix = '^\%(' + let suffix = '\)$' + " Now the case when "word" is not given + else " Find the match that ends on or after the cursor and set curcol. + let regexp = s:Wholematch(matchline, s:all, startpos[1]-1) + let curcol = match(matchline, regexp) + " If there is no match, give up. + if curcol == -1 + return s:CleanUp(restore_options, a:mode, startpos) + endif + let endcol = matchend(matchline, regexp) + let suf = strlen(matchline) - endcol + let prefix = (curcol ? '^.*\%' .. (curcol + 1) .. 'c\%(' : '^\%(') + let suffix = (suf ? '\)\%' .. (endcol + 1) .. 'c.*$' : '\)$') + endif + if exists("b:match_debug") + let b:match_match = matchstr(matchline, regexp) + let b:match_col = curcol+1 + endif + + " Third step: Find the group and single word that match, and the original + " (backref) versions of these. Then, resolve the backrefs. + " Set the following local variable: + " group = colon-separated list of patterns, one of which matches + " = ini:mid:fin or ini:fin + " + " Now, set group and groupBR to the matching group: 'if:endif' or + " 'while:endwhile' or whatever. A bit of a kluge: s:Choose() returns + " group . "," . groupBR, and we pick it apart. + let group = s:Choose(s:pat, matchline, ",", ":", prefix, suffix, s:patBR) + let i = matchend(group, s:notslash .. ",") + let groupBR = strpart(group, i) + let group = strpart(group, 0, i-1) + " Now, matchline =~ prefix . substitute(group,':','\|','g') . suffix + if s:do_BR " Do the hard part: resolve those backrefs! + let group = s:InsertRefs(groupBR, prefix, group, suffix, matchline) + endif + if exists("b:match_debug") + let b:match_wholeBR = groupBR + let i = matchend(groupBR, s:notslash .. ":") + let b:match_iniBR = strpart(groupBR, 0, i-1) + endif + + " Fourth step: Set the arguments for searchpair(). + let i = matchend(group, s:notslash .. ":") + let j = matchend(group, '.*' .. s:notslash .. ":") + let ini = strpart(group, 0, i-1) + let mid = substitute(strpart(group, i,j-i-1), s:notslash .. '\zs:', '\\|', 'g') + let fin = strpart(group, j) + "Un-escape the remaining , and : characters. + let ini = substitute(ini, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + let mid = substitute(mid, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + let fin = substitute(fin, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + " searchpair() requires that these patterns avoid \(\) groups. + let ini = substitute(ini, s:notslash .. '\zs\\(', '\\%(', 'g') + let mid = substitute(mid, s:notslash .. '\zs\\(', '\\%(', 'g') + let fin = substitute(fin, s:notslash .. '\zs\\(', '\\%(', 'g') + " Set mid. This is optimized for readability, not micro-efficiency! + if a:forward && matchline =~ prefix .. fin .. suffix + \ || !a:forward && matchline =~ prefix .. ini .. suffix + let mid = "" + endif + " Set flag. This is optimized for readability, not micro-efficiency! + if a:forward && matchline =~ prefix .. fin .. suffix + \ || !a:forward && matchline !~ prefix .. ini .. suffix + let flag = "bW" + else + let flag = "W" + endif + " Set skip. + if exists("b:match_skip") + let skip = b:match_skip + elseif exists("b:match_comment") " backwards compatibility and testing! + let skip = "r:" .. b:match_comment + else + let skip = 's:comment\|string' + endif + let skip = s:ParseSkip(skip) + if exists("b:match_debug") + let b:match_ini = ini + let b:match_tail = (strlen(mid) ? mid .. '\|' : '') .. fin + endif + + " Fifth step: actually start moving the cursor and call searchpair(). + " Later, :execute restore_cursor to get to the original screen. + let view = winsaveview() + call cursor(0, curcol + 1) + if skip =~ 'synID' && !(has("syntax") && exists("g:syntax_on")) + let skip = "0" + else + execute "if " .. skip .. "| let skip = '0' | endif" + endif + let sp_return = searchpair(ini, mid, fin, flag, skip) + if &selection isnot# 'inclusive' && a:mode == 'v' + " move cursor one pos to the right, because selection is not inclusive + " add virtualedit=onemore, to make it work even when the match ends the + " line + if !(col('.') < col('$')-1) + let eolmark=1 " flag to set a mark on eol (since we cannot move there) + endif + norm! l + endif + let final_position = "call cursor(" .. line(".") .. "," .. col(".") .. ")" + " Restore cursor position and original screen. + call winrestview(view) + normal! m' + if sp_return > 0 + execute final_position + endif + if exists('eolmark') && eolmark + call setpos("''", [0, line('.'), col('$'), 0]) " set mark on the eol + endif + return s:CleanUp(restore_options, a:mode, startpos, mid .. '\|' .. fin) +endfun + +" Restore options and do some special handling for Operator-pending mode. +" The optional argument is the tail of the matching group. +fun! s:CleanUp(options, mode, startpos, ...) + if strlen(a:options) + execute "set" a:options + endif + " Open folds, if appropriate. + if a:mode != "o" + if &foldopen =~ "percent" + normal! zv + endif + " In Operator-pending mode, we want to include the whole match + " (for example, d%). + " This is only a problem if we end up moving in the forward direction. + elseif (a:startpos[0] < line(".")) || + \ (a:startpos[0] == line(".") && a:startpos[1] < col(".")) + if a:0 + " Check whether the match is a single character. If not, move to the + " end of the match. + let matchline = getline(".") + let currcol = col(".") + let regexp = s:Wholematch(matchline, a:1, currcol-1) + let endcol = matchend(matchline, regexp) + if endcol > currcol " This is NOT off by one! + call cursor(0, endcol) + endif + endif " a:0 + endif " a:mode != "o" && etc. + return 0 +endfun + +" Example (simplified HTML patterns): if +" a:groupBR = '<\(\k\+\)>:' +" a:prefix = '^.\{3}\(' +" a:group = '<\(\k\+\)>:' +" a:suffix = '\).\{2}$' +" a:matchline = "12312" or "12312" +" then extract "tag" from a:matchline and return ":" . +fun! s:InsertRefs(groupBR, prefix, group, suffix, matchline) + if a:matchline !~ a:prefix .. + \ substitute(a:group, s:notslash .. '\zs:', '\\|', 'g') .. a:suffix + return a:group + endif + let i = matchend(a:groupBR, s:notslash .. ':') + let ini = strpart(a:groupBR, 0, i-1) + let tailBR = strpart(a:groupBR, i) + let word = s:Choose(a:group, a:matchline, ":", "", a:prefix, a:suffix, + \ a:groupBR) + let i = matchend(word, s:notslash .. ":") + let wordBR = strpart(word, i) + let word = strpart(word, 0, i-1) + " Now, a:matchline =~ a:prefix . word . a:suffix + if wordBR != ini + let table = s:Resolve(ini, wordBR, "table") + else + let table = "" + let d = 0 + while d < 10 + if tailBR =~ s:notslash .. '\\' .. d + let table = table .. d + else + let table = table .. "-" + endif + let d = d + 1 + endwhile + endif + let d = 9 + while d + if table[d] != "-" + let backref = substitute(a:matchline, a:prefix .. word .. a:suffix, + \ '\' .. table[d], "") + " Are there any other characters that should be escaped? + let backref = escape(backref, '*,:') + execute s:Ref(ini, d, "start", "len") + let ini = strpart(ini, 0, start) .. backref .. strpart(ini, start+len) + let tailBR = substitute(tailBR, s:notslash .. '\zs\\' .. d, + \ escape(backref, '\\&'), 'g') + endif + let d = d-1 + endwhile + if exists("b:match_debug") + if s:do_BR + let b:match_table = table + let b:match_word = word + else + let b:match_table = "" + let b:match_word = "" + endif + endif + return ini .. ":" .. tailBR +endfun + +" String append item2 to item and add ',' in between items +fun! s:Append(item, item2) + if a:item == '' + return a:item2 + endif + " there is already a trailing comma, don't add another one + if a:item[-1:] == ',' + return a:item .. a:item2 + endif + return a:item .. ',' .. a:item2 +endfun + +" Input a comma-separated list of groups with backrefs, such as +" a:groups = '\(foo\):end\1,\(bar\):end\1' +" and return a comma-separated list of groups with backrefs replaced: +" return '\(foo\):end\(foo\),\(bar\):end\(bar\)' +fun! s:ParseWords(groups) + let groups = substitute(a:groups .. ",", s:notslash .. '\zs[,:]*,[,:]*', ',', 'g') + let groups = substitute(groups, s:notslash .. '\zs:\{2,}', ':', 'g') + let parsed = "" + while groups =~ '[^,:]' + let i = matchend(groups, s:notslash .. ':') + let j = matchend(groups, s:notslash .. ',') + let ini = strpart(groups, 0, i-1) + let tail = strpart(groups, i, j-i-1) .. ":" + let groups = strpart(groups, j) + let parsed = parsed .. ini + let i = matchend(tail, s:notslash .. ':') + while i != -1 + " In 'if:else:endif', ini='if' and word='else' and then word='endif'. + let word = strpart(tail, 0, i-1) + let tail = strpart(tail, i) + let i = matchend(tail, s:notslash .. ':') + let parsed = parsed .. ":" .. s:Resolve(ini, word, "word") + endwhile " Now, tail has been used up. + let parsed = parsed .. "," + endwhile " groups =~ '[^,:]' + let parsed = substitute(parsed, ',$', '', '') + return parsed +endfun + +" TODO I think this can be simplified and/or made more efficient. +" TODO What should I do if a:start is out of range? +" Return a regexp that matches all of a:string, such that +" matchstr(a:string, regexp) represents the match for a:pat that starts +" as close to a:start as possible, before being preferred to after, and +" ends after a:start . +" Usage: +" let regexp = s:Wholematch(getline("."), 'foo\|bar', col(".")-1) +" let i = match(getline("."), regexp) +" let j = matchend(getline("."), regexp) +" let match = matchstr(getline("."), regexp) +fun! s:Wholematch(string, pat, start) + let group = '\%(' .. a:pat .. '\)' + let prefix = (a:start ? '\(^.*\%<' .. (a:start + 2) .. 'c\)\zs' : '^') + let len = strlen(a:string) + let suffix = (a:start+1 < len ? '\(\%>' .. (a:start+1) .. 'c.*$\)\@=' : '$') + if a:string !~ prefix .. group .. suffix + let prefix = '' + endif + return prefix .. group .. suffix +endfun + +" No extra arguments: s:Ref(string, d) will +" find the d'th occurrence of '\(' and return it, along with everything up +" to and including the matching '\)'. +" One argument: s:Ref(string, d, "start") returns the index of the start +" of the d'th '\(' and any other argument returns the length of the group. +" Two arguments: s:Ref(string, d, "foo", "bar") returns a string to be +" executed, having the effect of +" :let foo = s:Ref(string, d, "start") +" :let bar = s:Ref(string, d, "len") +fun! s:Ref(string, d, ...) + let len = strlen(a:string) + if a:d == 0 + let start = 0 + else + let cnt = a:d + let match = a:string + while cnt + let cnt = cnt - 1 + let index = matchend(match, s:notslash .. '\\(') + if index == -1 + return "" + endif + let match = strpart(match, index) + endwhile + let start = len - strlen(match) + if a:0 == 1 && a:1 == "start" + return start - 2 + endif + let cnt = 1 + while cnt + let index = matchend(match, s:notslash .. '\\(\|\\)') - 1 + if index == -2 + return "" + endif + " Increment if an open, decrement if a ')': + let cnt = cnt + (match[index]=="(" ? 1 : -1) " ')' + let match = strpart(match, index+1) + endwhile + let start = start - 2 + let len = len - start - strlen(match) + endif + if a:0 == 1 + return len + elseif a:0 == 2 + return "let " .. a:1 .. "=" .. start .. "| let " .. a:2 .. "=" .. len + else + return strpart(a:string, start, len) + endif +endfun + +" Count the number of disjoint copies of pattern in string. +" If the pattern is a literal string and contains no '0' or '1' characters +" then s:Count(string, pattern, '0', '1') should be faster than +" s:Count(string, pattern). +fun! s:Count(string, pattern, ...) + let pat = escape(a:pattern, '\\') + if a:0 > 1 + let foo = substitute(a:string, '[^' .. a:pattern .. ']', "a:1", "g") + let foo = substitute(a:string, pat, a:2, "g") + let foo = substitute(foo, '[^' .. a:2 .. ']', "", "g") + return strlen(foo) + endif + let result = 0 + let foo = a:string + let index = matchend(foo, pat) + while index != -1 + let result = result + 1 + let foo = strpart(foo, index) + let index = matchend(foo, pat) + endwhile + return result +endfun + +" s:Resolve('\(a\)\(b\)', '\(c\)\2\1\1\2') should return table.word, where +" word = '\(c\)\(b\)\(a\)\3\2' and table = '-32-------'. That is, the first +" '\1' in target is replaced by '\(a\)' in word, table[1] = 3, and this +" indicates that all other instances of '\1' in target are to be replaced +" by '\3'. The hard part is dealing with nesting... +" Note that ":" is an illegal character for source and target, +" unless it is preceded by "\". +fun! s:Resolve(source, target, output) + let word = a:target + let i = matchend(word, s:notslash .. '\\\d') - 1 + let table = "----------" + while i != -2 " There are back references to be replaced. + let d = word[i] + let backref = s:Ref(a:source, d) + " The idea is to replace '\d' with backref. Before we do this, + " replace any \(\) groups in backref with :1, :2, ... if they + " correspond to the first, second, ... group already inserted + " into backref. Later, replace :1 with \1 and so on. The group + " number w+b within backref corresponds to the group number + " s within a:source. + " w = number of '\(' in word before the current one + let w = s:Count( + \ substitute(strpart(word, 0, i-1), '\\\\', '', 'g'), '\(', '1') + let b = 1 " number of the current '\(' in backref + let s = d " number of the current '\(' in a:source + while b <= s:Count(substitute(backref, '\\\\', '', 'g'), '\(', '1') + \ && s < 10 + if table[s] == "-" + if w + b < 10 + " let table[s] = w + b + let table = strpart(table, 0, s) .. (w+b) .. strpart(table, s+1) + endif + let b = b + 1 + let s = s + 1 + else + execute s:Ref(backref, b, "start", "len") + let ref = strpart(backref, start, len) + let backref = strpart(backref, 0, start) .. ":" .. table[s] + \ .. strpart(backref, start+len) + let s = s + s:Count(substitute(ref, '\\\\', '', 'g'), '\(', '1') + endif + endwhile + let word = strpart(word, 0, i-1) .. backref .. strpart(word, i+1) + let i = matchend(word, s:notslash .. '\\\d') - 1 + endwhile + let word = substitute(word, s:notslash .. '\zs:', '\\', 'g') + if a:output == "table" + return table + elseif a:output == "word" + return word + else + return table .. word + endif +endfun + +" Assume a:comma = ",". Then the format for a:patterns and a:1 is +" a:patterns = ",,..." +" a:1 = ",,..." +" If is the first pattern that matches a:string then return +" if no optional arguments are given; return , if a:1 is given. +fun! s:Choose(patterns, string, comma, branch, prefix, suffix, ...) + let tail = (a:patterns =~ a:comma .. "$" ? a:patterns : a:patterns .. a:comma) + let i = matchend(tail, s:notslash .. a:comma) + if a:0 + let alttail = (a:1 =~ a:comma .. "$" ? a:1 : a:1 .. a:comma) + let j = matchend(alttail, s:notslash .. a:comma) + endif + let current = strpart(tail, 0, i-1) + if a:branch == "" + let currpat = current + else + let currpat = substitute(current, s:notslash .. a:branch, '\\|', 'g') + endif + " un-escape \, and \: to , and : + let currpat = substitute(currpat, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + while a:string !~ a:prefix .. currpat .. a:suffix + let tail = strpart(tail, i) + let i = matchend(tail, s:notslash .. a:comma) + if i == -1 + return -1 + endif + let current = strpart(tail, 0, i-1) + if a:branch == "" + let currpat = current + else + let currpat = substitute(current, s:notslash .. a:branch, '\\|', 'g') + endif + " un-escape \, and \: to , and : + let currpat = substitute(currpat, s:notslash .. '\zs\\\(:\|,\)', '\1', 'g') + if a:0 + let alttail = strpart(alttail, j) + let j = matchend(alttail, s:notslash .. a:comma) + endif + endwhile + if a:0 + let current = current .. a:comma .. strpart(alttail, 0, j-1) + endif + return current +endfun + +fun! matchit#Match_debug() + let b:match_debug = 1 " Save debugging information. + " pat = all of b:match_words with backrefs parsed + amenu &Matchit.&pat :echo b:match_pat + " match = bit of text that is recognized as a match + amenu &Matchit.&match :echo b:match_match + " curcol = cursor column of the start of the matching text + amenu &Matchit.&curcol :echo b:match_col + " wholeBR = matching group, original version + amenu &Matchit.wh&oleBR :echo b:match_wholeBR + " iniBR = 'if' piece, original version + amenu &Matchit.ini&BR :echo b:match_iniBR + " ini = 'if' piece, with all backrefs resolved from match + amenu &Matchit.&ini :echo b:match_ini + " tail = 'else\|endif' piece, with all backrefs resolved from match + amenu &Matchit.&tail :echo b:match_tail + " fin = 'endif' piece, with all backrefs resolved from match + amenu &Matchit.&word :echo b:match_word + " '\'.d in ini refers to the same thing as '\'.table[d] in word. + amenu &Matchit.t&able :echo '0:' .. b:match_table .. ':9' +endfun + +" Jump to the nearest unmatched "(" or "if" or "" if a:spflag == "bW" +" or the nearest unmatched "" or "endif" or ")" if a:spflag == "W". +" Return a "mark" for the original position, so that +" let m = MultiMatch("bW", "n") ... call winrestview(m) +" will return to the original position. If there is a problem, do not +" move the cursor and return {}, unless a count is given, in which case +" go up or down as many levels as possible and again return {}. +" TODO This relies on the same patterns as % matching. It might be a good +" idea to give it its own matching patterns. +fun! matchit#MultiMatch(spflag, mode) + let restore_options = s:RestoreOptions() + let startpos = [line("."), col(".")] + " save v:count1 variable, might be reset from the restore_cursor command + let level = v:count1 + if a:mode == "o" && mode(1) !~# '[vV]' + exe "norm! v" + endif + + " First step: if not already done, set the script variables + " s:do_BR flag for whether there are backrefs + " s:pat parsed version of b:match_words + " s:all regexp based on s:pat and the default groups + " This part is copied and slightly modified from matchit#Match_wrapper(). + if !exists("b:match_words") || b:match_words == "" + let match_words = "" + " Allow b:match_words = "GetVimMatchWords()" . + elseif b:match_words =~ ":" + let match_words = b:match_words + else + execute "let match_words =" b:match_words + endif + if (match_words != s:last_words) || (&mps != s:last_mps) || + \ exists("b:match_debug") + let default = escape(&mps, '[$^.*~\\/?]') .. (strlen(&mps) ? "," : "") .. + \ '\/\*:\*\/,#\s*if\%(n\=def\)\=:#\s*else\>:#\s*elif\>:#\s*endif\>' + let s:last_mps = &mps + let match_words = s:Append(match_words, default) + let s:last_words = match_words + if match_words !~ s:notslash .. '\\\d' + let s:do_BR = 0 + let s:pat = match_words + else + let s:do_BR = 1 + let s:pat = s:ParseWords(match_words) + endif + let s:all = '\%(' .. substitute(s:pat, '[,:]\+', '\\|', 'g') .. '\)' + if exists("b:match_debug") + let b:match_pat = s:pat + endif + " Reconstruct the version with unresolved backrefs. + let s:patBR = substitute(match_words .. ',', + \ s:notslash .. '\zs[,:]*,[,:]*', ',', 'g') + let s:patBR = substitute(s:patBR, s:notslash .. '\zs:\{2,}', ':', 'g') + endif + + " Second step: figure out the patterns for searchpair() + " and save the screen, cursor position, and 'ignorecase'. + " - TODO: A lot of this is copied from matchit#Match_wrapper(). + " - maybe even more functionality should be split off + " - into separate functions! + let openlist = split(s:pat .. ',', s:notslash .. '\zs:.\{-}' .. s:notslash .. ',') + let midclolist = split(',' .. s:pat, s:notslash .. '\zs,.\{-}' .. s:notslash .. ':') + call map(midclolist, {-> split(v:val, s:notslash .. ':')}) + let closelist = [] + let middlelist = [] + call map(midclolist, {i,v -> [extend(closelist, v[-1 : -1]), + \ extend(middlelist, v[0 : -2])]}) + call map(openlist, {i,v -> v =~# s:notslash .. '\\|' ? '\%(' .. v .. '\)' : v}) + call map(middlelist, {i,v -> v =~# s:notslash .. '\\|' ? '\%(' .. v .. '\)' : v}) + call map(closelist, {i,v -> v =~# s:notslash .. '\\|' ? '\%(' .. v .. '\)' : v}) + let open = join(openlist, ',') + let middle = join(middlelist, ',') + let close = join(closelist, ',') + if exists("b:match_skip") + let skip = b:match_skip + elseif exists("b:match_comment") " backwards compatibility and testing! + let skip = "r:" .. b:match_comment + else + let skip = 's:comment\|string' + endif + let skip = s:ParseSkip(skip) + let view = winsaveview() + + " Third step: call searchpair(). + " Replace '\('--but not '\\('--with '\%(' and ',' with '\|'. + let openpat = substitute(open, '\%(' .. s:notslash .. '\)\@<=\\(', '\\%(', 'g') + let openpat = substitute(openpat, ',', '\\|', 'g') + let closepat = substitute(close, '\%(' .. s:notslash .. '\)\@<=\\(', '\\%(', 'g') + let closepat = substitute(closepat, ',', '\\|', 'g') + let middlepat = substitute(middle, '\%(' .. s:notslash .. '\)\@<=\\(', '\\%(', 'g') + let middlepat = substitute(middlepat, ',', '\\|', 'g') + + if skip =~ 'synID' && !(has("syntax") && exists("g:syntax_on")) + let skip = '0' + else + try + execute "if " .. skip .. "| let skip = '0' | endif" + catch /^Vim\%((\a\+)\)\=:E363/ + " We won't find anything, so skip searching, should keep Vim responsive. + return {} + endtry + endif + mark ' + while level + if searchpair(openpat, middlepat, closepat, a:spflag, skip) < 1 + call s:CleanUp(restore_options, a:mode, startpos) + return {} + endif + let level = level - 1 + endwhile + + " Restore options and return a string to restore the original position. + call s:CleanUp(restore_options, a:mode, startpos) + return view +endfun + +" Search backwards for "if" or "while" or "" or ... +" and return "endif" or "endwhile" or "" or ... . +" For now, this uses b:match_words and the same script variables +" as matchit#Match_wrapper() . Later, it may get its own patterns, +" either from a buffer variable or passed as arguments. +" fun! s:Autocomplete() +" echo "autocomplete not yet implemented :-(" +" if !exists("b:match_words") || b:match_words == "" +" return "" +" end +" let startpos = matchit#MultiMatch("bW") +" +" if startpos == "" +" return "" +" endif +" " - TODO: figure out whether 'if' or '' matched, and construct +" " - the appropriate closing. +" let matchline = getline(".") +" let curcol = col(".") - 1 +" " - TODO: Change the s:all argument if there is a new set of match pats. +" let regexp = s:Wholematch(matchline, s:all, curcol) +" let suf = strlen(matchline) - matchend(matchline, regexp) +" let prefix = (curcol ? '^.\{' . curcol . '}\%(' : '^\%(') +" let suffix = (suf ? '\).\{' . suf . '}$' : '\)$') +" " Reconstruct the version with unresolved backrefs. +" let patBR = substitute(b:match_words.',', '[,:]*,[,:]*', ',', 'g') +" let patBR = substitute(patBR, ':\{2,}', ':', "g") +" " Now, set group and groupBR to the matching group: 'if:endif' or +" " 'while:endwhile' or whatever. +" let group = s:Choose(s:pat, matchline, ",", ":", prefix, suffix, patBR) +" let i = matchend(group, s:notslash . ",") +" let groupBR = strpart(group, i) +" let group = strpart(group, 0, i-1) +" " Now, matchline =~ prefix . substitute(group,':','\|','g') . suffix +" if s:do_BR +" let group = s:InsertRefs(groupBR, prefix, group, suffix, matchline) +" endif +" " let g:group = group +" +" " - TODO: Construct the closing from group. +" let fake = "end" . expand("") +" execute startpos +" return fake +" endfun + +" Close all open structures. "Get the heck out of here!" +" fun! s:Gthhoh() +" let close = s:Autocomplete() +" while strlen(close) +" put=close +" let close = s:Autocomplete() +" endwhile +" endfun + +" Parse special strings as typical skip arguments for searchpair(): +" s:foo becomes (current syntax item) =~ foo +" S:foo becomes (current syntax item) !~ foo +" r:foo becomes (line before cursor) =~ foo +" R:foo becomes (line before cursor) !~ foo +fun! s:ParseSkip(str) + let skip = a:str + if skip[1] == ":" + if skip[0] ==# "s" + let skip = "synIDattr(synID(line('.'),col('.'),1),'name') =~? '" .. + \ strpart(skip,2) .. "'" + elseif skip[0] ==# "S" + let skip = "synIDattr(synID(line('.'),col('.'),1),'name') !~? '" .. + \ strpart(skip,2) .. "'" + elseif skip[0] ==# "r" + let skip = "strpart(getline('.'),0,col('.'))=~'" .. strpart(skip,2) .. "'" + elseif skip[0] ==# "R" + let skip = "strpart(getline('.'),0,col('.'))!~'" .. strpart(skip,2) .. "'" + endif + endif + return skip +endfun + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim:sts=2:sw=2:et: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/matchit.txt b/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/matchit.txt new file mode 100644 index 0000000000000000000000000000000000000000..e82bacdeb03bd46f0c166d4a0ed1cca12debe0a0 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/matchit.txt @@ -0,0 +1,445 @@ +*matchit.txt* Extended "%" matching Last change: 2026 Jan 06 + + VIM REFERENCE MANUAL by Benji Fisher et al + + +*matchit* *matchit.vim* + +1. Extended matching with "%" |matchit-intro| +2. Activation |matchit-activate| +3. Configuration |matchit-configure| +4. Supporting a New Language |matchit-newlang| +5. Known Bugs and Limitations |matchit-bugs| + +The functionality mentioned here is a plugin, see |add-plugin|. +This plugin is only available if 'compatible' is not set. + +============================================================================== +1. Extended matching with "%" *matchit-intro* + + *matchit-%* +% Cycle forward through matching groups, such as "if", "else", "endif", + as specified by |b:match_words|. + + *g%* *v_g%* *o_g%* +g% Cycle backwards through matching groups, as specified by + |b:match_words|. For example, go from "if" to "endif" to "else". + + *[%* *v_[%* *o_[%* +[% Go to [count] previous unmatched group, as specified by + |b:match_words|. Similar to |[{|. + + *]%* *v_]%* *o_]%* +]% Go to [count] next unmatched group, as specified by + |b:match_words|. Similar to |]}|. + + *v_a%* +a% In Visual mode, select the matching group, as specified by + |b:match_words|, containing the cursor. Similar to |v_a[|. + A [count] is ignored, and only the first character of the closing + pattern is selected. + +In Vim, as in plain vi, the percent key, |%|, jumps the cursor from a brace, +bracket, or paren to its match. This can be configured with the 'matchpairs' +option. The matchit plugin extends this in several ways: + + You can match whole words, such as "if" and "endif", not just + single characters. You can also specify a |regular-expression|. + You can define groups with more than two words, such as "if", + "else", "endif". Banging on the "%" key will cycle from the "if" to + the first "else", the next "else", ..., the closing "endif", and back + to the opening "if". Nested structures are skipped. Using |g%| goes + in the reverse direction. + By default, words inside comments and strings are ignored, unless + the cursor is inside a comment or string when you type "%". If the + only thing you want to do is modify the behavior of "%" so that it + behaves this way, you do not have to define |b:match_words|, since the + script uses the 'matchpairs' option as well as this variable. + +See |matchit-details| for details on what the script does, and |b:match_words| +for how to specify matching patterns. + +MODES: *matchit-modes* *matchit-v_%* *matchit-o_%* + +Mostly, % and related motions (|g%| and |[%| and |]%|) should just work like built-in +|motion| commands in |Operator-pending| and |Visual| modes (as of 8.1.648) + +LANGUAGES: *matchit-languages* + +Currently, the following languages are supported: Ada, ASP with VBS, Csh, +DTD, Entity, Essbase, Fortran, HTML, JSP (same as HTML), LaTeX, Lua, Pascal, +SGML, Shell, Tcsh, Vim, XML. Other languages may already have support via +the default |filetype-plugin|s in the standard vim distribution. + +To support a new language, see |matchit-newlang| below. + +DETAILS: *matchit-details* *matchit-parse* + +Here is an outline of what matchit.vim does each time you hit the "%" key. If +there are |backref|s in |b:match_words| then the first step is to produce a +version in which these back references have been eliminated; if there are no +|backref|s then this step is skipped. This step is called parsing. For +example, "\(foo\|bar\):end\1" is parsed to yield +"\(foo\|bar\):end\(foo\|bar\)". This can get tricky, especially if there are +nested groups. If debugging is turned on, the parsed version is saved as +|b:match_pat|. + + *matchit-choose* +Next, the script looks for a word on the current line that matches the pattern +just constructed. It includes the patterns from the 'matchpairs' option. +The goal is to do what you expect, which turns out to be a little complicated. +The script follows these rules: + + Insist on a match that ends on or after the cursor. + Prefer a match that includes the cursor position (that is, one that + starts on or before the cursor). + Prefer a match that starts as close to the cursor as possible. + If more than one pattern in |b:match_words| matches, choose the one + that is listed first. + +Examples: + + Suppose you > + :let b:match_words = '<:>,:' +< and hit "%" with the cursor on or before the "<" in "a is born". + The pattern '<' comes first, so it is preferred over '', which + also matches. If the cursor is on the "t", however, then '' is + preferred, because this matches a bit of text containing the cursor. + If the two groups of patterns were reversed then '<' would never be + preferred. + + Suppose you > + :let b:match_words = 'if:end if' +< (Note the space!) and hit "%" with the cursor at the end of "end if". + Then "if" matches, which is probably not what you want, but if the + cursor starts on the "end " then "end if" is chosen. (You can avoid + this problem by using a more complicated pattern.) + +If there is no match, the cursor does not move. (Before version 1.13 of the +script, it would fall back on the usual behavior of |%|). If debugging is +turned on, the matched bit of text is saved as |b:match_match| and the cursor +column of the start of the match is saved as |b:match_col|. + +Next, the script looks through |b:match_words| (original and parsed versions) +for the group and pattern that match. If debugging is turned on, the group is +saved as |b:match_ini| (the first pattern) and |b:match_tail| (the rest). If +there are |backref|s then, in addition, the matching pattern is saved as +|b:match_word| and a table of translations is saved as |b:match_table|. If +there are |backref|s, these are determined from the matching pattern and +|b:match_match| and substituted into each pattern in the matching group. + +The script decides whether to search forwards or backwards and chooses +arguments for the |searchpair()| function. Then, the cursor is moved to the +start of the match, and |searchpair()| is called. By default, matching +structures inside strings and comments are ignored. This can be changed by +setting |b:match_skip|. + +============================================================================== +2. Activation *matchit-activate* + +To use the matchit plugin add this line to your |vimrc|: > + packadd! matchit + +The script should start working the next time you start Vim. + +To use the matchit plugin after Vim has started, execute this command: > + packadd matchit + +(Earlier versions of the script did nothing unless a |buffer-variable| named +|b:match_words| was defined. Even earlier versions contained autocommands +that set this variable for various file types. Now, |b:match_words| is +defined in many of the default |filetype-plugin|s instead.) + +For a new language, you can add autocommands to the script or to your vimrc +file, but the recommended method is to add a line such as > + let b:match_words = '\:\' +to the |filetype-plugin| for your language. See |b:match_words| below for how +this variable is interpreted. + +TROUBLESHOOTING *matchit-troubleshoot* + +The script should work in most installations of Vim. It may not work if Vim +was compiled with a minimal feature set, for example if the |+syntax| option +was not enabled. If your Vim has support for syntax compiled in, but you do +not have |syntax| highlighting turned on, matchit.vim should work, but it may +fail to skip matching groups in comments and strings. If the |filetype| +mechanism is turned off, the |b:match_words| variable will probably not be +defined automatically. + +2.1 Temporarily disable the matchit plugin *matchit-disable* *:MatchDisable* + +To temporarily disable the matchit plugin, after it has been loaded, +execute this command: > + :MatchDisable + +This will delete all the defined key mappings to the Vim default. +Now the "%" command will work like before loading the plugin |%| + +2.2 Re-enable the matchit plugin *:MatchEnable* + +To re-enable the plugin, after it was disabled, use the following command: > + :MatchEnable + +This will resetup the key mappings. + +============================================================================== +3. Configuration *matchit-configure* + +There are several variables that govern the behavior of matchit.vim. Note +that these are variables local to the buffer, not options, so use |:let| to +define them, not |:set|. Some of these variables have values that matter; for +others, it only matters whether the variable has been defined. All of these +can be defined in the |filetype-plugin| or autocommand that defines +|b:match_words| or "on the fly." + +The main variable is |b:match_words|. It is described in the section below on +supporting a new language. + + *MatchError* *matchit-hl* *matchit-highlight* +MatchError is the highlight group for error messages from the script. By +default, it is linked to WarningMsg. If you do not want to be bothered by +error messages, you can define this to be something invisible. For example, +if you use the GUI version of Vim and your command line is normally white, you +can do > + :hi MatchError guifg=white guibg=white +< + *b:match_ignorecase* +If you > + :let b:match_ignorecase = 1 +then matchit.vim acts as if 'ignorecase' is set: for example, "end" and "END" +are equivalent. If you > + :let b:match_ignorecase = 0 +then matchit.vim treats "end" and "END" differently. (There will be no +b:match_infercase option unless someone requests it.) + + *b:match_debug* +Define b:match_debug if you want debugging information to be saved. See +|matchit-debug|, below. + + *b:match_skip* +If b:match_skip is defined, it is passed as the skip argument to +|searchpair()|. This controls when matching structures are skipped, or +ignored. By default, they are ignored inside comments and strings, as +determined by the |syntax| mechanism. (If syntax highlighting is turned off, +nothing is skipped.) You can set b:match_skip to a string, which evaluates to +a non-zero, numerical value if the match is to be skipped or zero if the match +should not be skipped. In addition, the following special values are +supported by matchit.vim: + s:foo becomes (current syntax item) =~ foo + S:foo becomes (current syntax item) !~ foo + r:foo becomes (line before cursor) =~ foo + R:foo becomes (line before cursor) !~ foo +(The "s" is meant to suggest "syntax", and the "r" is meant to suggest +"regular expression".) + +Examples: + + You can get the default behavior with > + :let b:match_skip = 's:comment\|string' +< + If you want to skip matching structures unless they are at the start + of the line (ignoring whitespace) then you can > + :let b:match_skip = 'R:^\s*' +< Do not do this if strings or comments can span several lines, since + the normal syntax checking will not be done if you set b:match_skip. + + In LaTeX, since "%" is used as the comment character, you can > + :let b:match_skip = 'r:%' +< Unfortunately, this will skip anything after "\%", an escaped "%". To + allow for this, and also "\\%" (an escaped backslash followed by the + comment character) you can > + :let b:match_skip = 'r:\(^\|[^\\]\)\(\\\\\)*%' +< + See the $VIMRUNTIME/ftplugin/vim.vim for an example that uses both + syntax and a regular expression. + + *b:match_function* +If b:match_function is defined, matchit.vim will first call this function to +perform matching. This is useful for languages with an indentation-based block +structure (such as Python) or other complex matching requirements that cannot +be expressed with regular expression patterns. + +The function should accept one argument: + forward - 1 for forward search (% command) + 0 for backward search (g% command) + +The function should return a list with one of these values: + [line, col] - Match found at the specified position + [] - No match found; fall through to regular matching + (|b:match_words|, matchpairs, etc.) + +The cursor position is not changed by the function; matchit handles cursor +movement based on the returned position. + +If the function throws an error, matchit gives up and doesn't continue. +Enable |b:match_debug| to see error messages from custom match functions. + +Python example (simplified): > + let s:keywords = {'if': 'elif\|else', 'elif': 'elif\|else'} + + function! s:PythonMatch(forward) abort + let keyword = matchstr(getline('.'), '^\s*\zs\w\+') + let pattern = get(s:keywords, keyword, '') + if empty(pattern) | return [] | endif + + " Forward-only. Backwards left as an exercise for the reader. + let [lnum, col] = searchpos('^\s*\%(' . pattern . '\)\>', 'nW' 0, 0, + \ 'indent(".") != ' . indent('.')) + return lnum > 0 ? [lnum, col] : [] + endfunction + + let b:match_function = function('s:PythonMatch') +< +See |matchit-newlang| below for more details on supporting new languages. + +============================================================================== +4. Supporting a New Language *matchit-newlang* + *b:match_words* +In order for matchit.vim to support a new language, you must define a suitable +pattern for |b:match_words|. You may also want to set some of the +|matchit-configure| variables, as described above. If your language has a +complicated syntax, or many keywords, you will need to know something about +Vim's |regular-expression|s. + +The format for |b:match_words| is similar to that of the 'matchpairs' option: +it is a comma (,)-separated list of groups; each group is a colon(:)-separated +list of patterns (regular expressions). Commas and colons that are part of a +pattern should be escaped with backslashes ('\:' and '\,'). It is OK to have +only one group; the effect is undefined if a group has only one pattern. +A simple example is > + :let b:match_words = '\:\,' + \ . '\:\:\:\' +(In Vim regular expressions, |\<| and |\>| denote word boundaries. Thus "if" +matches the end of "endif" but "\" does not.) Then banging on the "%" +key will bounce the cursor between "if" and the matching "endif"; and from +"while" to any matching "continue" or "break", then to the matching "endwhile" +and back to the "while". It is almost always easier to use |literal-string|s +(single quotes) as above: '\' rather than "\\" and so on. + +Exception: If the ":" character does not appear in b:match_words, then it is +treated as an expression to be evaluated. For example, > + :let b:match_words = 'GetMatchWords()' +allows you to define a function. This can return a different string depending +on the current syntax, for example. + +Once you have defined the appropriate value of |b:match_words|, you will +probably want to have this set automatically each time you edit the +appropriate file type. The recommended way to do this is by adding the +definition to a |filetype-plugin| file. + +Tips: Be careful that your initial pattern does not match your final pattern. +See the example above for the use of word-boundary expressions. It is usually +better to use ".\{-}" (as many as necessary) instead of ".*" (as many as +possible). See |\{-|. For example, in the string "label", "<.*>" +matches the whole string whereas "<.\{-}>" and "<[^>]*>" match "" and +"". + + *matchit-spaces* *matchit-s:notend* +If "if" is to be paired with "end if" (Note the space!) then word boundaries +are not enough. Instead, define a regular expression s:notend that will match +anything but "end" and use it as follows: > + :let s:notend = '\%(\:\' +< *matchit-s:sol* +This is a simplified version of what is done for Ada. The s:notend is a +|script-variable|. Similarly, you may want to define a start-of-line regular +expression > + :let s:sol = '\%(^\|;\)\s*' +if keywords are only recognized after the start of a line or after a +semicolon (;), with optional white space. + + *matchit-backref* +In any group, the expressions |\1|, |\2|, ..., |\9| refer to parts of the +INITIAL pattern enclosed in |\(|escaped parentheses|\)|. These are referred +to as back references, or backrefs. For example, > + :let b:match_words = '\:\(h\)\1\>' +means that "bo" pairs with "ho" and "boo" pairs with "hoo" and so on. Note +that "\1" does not refer to the "\(h\)" in this example. If you have +"\(nested \(parentheses\)\) then "\d" refers to the d-th "\(" and everything +up to and including the matching "\)": in "\(nested\(parentheses\)\)", "\1" +refers to everything and "\2" refers to "\(parentheses\)". If you use a +variable such as |s:notend| or |s:sol| in the previous paragraph then remember +to count any "\(" patterns in this variable. You do not have to count groups +defined by |\%(\)|. + +It should be possible to resolve back references from any pattern in the +group. For example, > + :let b:match_words = '\(foo\)\(bar\):more\1:and\2:end\1\2' +would not work because "\2" cannot be determined from "morefoo" and "\1" +cannot be determined from "andbar". On the other hand, > + :let b:match_words = '\(\(foo\)\(bar\)\):\3\2:end\1' +should work (and have the same effect as "foobar:barfoo:endfoobar"), although +this has not been thoroughly tested. + +You can use |zero-width| patterns such as |\@<=| and |\zs|. (The latter has +not been thoroughly tested in matchit.vim.) For example, if the keyword "if" +must occur at the start of the line, with optional white space, you might use +the pattern "\(^\s*\)\@<=if" so that the cursor will end on the "i" instead of +at the start of the line. For another example, if HTML had only one tag then +one could > + :let b:match_words = '<:>,<\@<=tag>:<\@<=/tag>' +so that "%" can bounce between matching "<" and ">" pairs or (starting on +"tag" or "/tag") between matching tags. Without the |\@<=|, the script would +bounce from "tag" to the "<" in "", and another "%" would not take you +back to where you started. + +DEBUGGING *matchit-debug* *:MatchDebug* + +If you are having trouble figuring out the appropriate definition of +|b:match_words| then you can take advantage of the same information I use when +debugging the script. This is especially true if you are not sure whether +your patterns or my script are at fault! To make this more convenient, I have +made the command :MatchDebug, which defines the variable |b:match_debug| and +creates a Matchit menu. This menu makes it convenient to check the values of +the variables described below. You will probably also want to read +|matchit-details| above. + +Defining the variable |b:match_debug| causes the script to set the following +variables, each time you hit the "%" key. Several of these are only defined +if |b:match_words| includes |backref|s. + + *b:match_pat* +The b:match_pat variable is set to |b:match_words| with |backref|s parsed. + *b:match_match* +The b:match_match variable is set to the bit of text that is recognized as a +match. + *b:match_col* +The b:match_col variable is set to the cursor column of the start of the +matching text. + *b:match_wholeBR* +The b:match_wholeBR variable is set to the comma-separated group of patterns +that matches, with |backref|s unparsed. + *b:match_iniBR* +The b:match_iniBR variable is set to the first pattern in |b:match_wholeBR|. + *b:match_ini* +The b:match_ini variable is set to the first pattern in |b:match_wholeBR|, +with |backref|s resolved from |b:match_match|. + *b:match_tail* +The b:match_tail variable is set to the remaining patterns in +|b:match_wholeBR|, with |backref|s resolved from |b:match_match|. + *b:match_word* +The b:match_word variable is set to the pattern from |b:match_wholeBR| that +matches |b:match_match|. + *b:match_table* +The back reference '\'.d refers to the same thing as '\'.b:match_table[d] in +|b:match_word|. + +============================================================================== +5. Known Bugs and Limitations *matchit-bugs* + +Repository: https://github.com/chrisbra/matchit/ +Bugs can be reported at the repository and the latest development snapshot can +also be downloaded there. + +Just because I know about a bug does not mean that it is on my todo list. I +try to respond to reports of bugs that cause real problems. If it does not +cause serious problems, or if there is a work-around, a bug may sit there for +a while. Moral: if a bug (known or not) bothers you, let me know. + +It would be nice if "\0" were recognized as the entire pattern. That is, it +would be nice if "foo:\end\0" had the same effect as "\(foo\):\end\1". I may +try to implement this in a future version. (This is not so easy to arrange as +you might think!) + +============================================================================== +vim:tw=78:ts=8:fo=tcq2:ft=help: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..008c5686d119b7935b689d6ae8608a020fa80808 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/matchit/doc/tags @@ -0,0 +1,53 @@ +:MatchDebug matchit.txt /*:MatchDebug* +:MatchDisable matchit.txt /*:MatchDisable* +:MatchEnable matchit.txt /*:MatchEnable* +MatchError matchit.txt /*MatchError* +[% matchit.txt /*[%* +]% matchit.txt /*]%* +b:match_col matchit.txt /*b:match_col* +b:match_debug matchit.txt /*b:match_debug* +b:match_function matchit.txt /*b:match_function* +b:match_ignorecase matchit.txt /*b:match_ignorecase* +b:match_ini matchit.txt /*b:match_ini* +b:match_iniBR matchit.txt /*b:match_iniBR* +b:match_match matchit.txt /*b:match_match* +b:match_pat matchit.txt /*b:match_pat* +b:match_skip matchit.txt /*b:match_skip* +b:match_table matchit.txt /*b:match_table* +b:match_tail matchit.txt /*b:match_tail* +b:match_wholeBR matchit.txt /*b:match_wholeBR* +b:match_word matchit.txt /*b:match_word* +b:match_words matchit.txt /*b:match_words* +g% matchit.txt /*g%* +matchit matchit.txt /*matchit* +matchit-% matchit.txt /*matchit-%* +matchit-activate matchit.txt /*matchit-activate* +matchit-backref matchit.txt /*matchit-backref* +matchit-bugs matchit.txt /*matchit-bugs* +matchit-choose matchit.txt /*matchit-choose* +matchit-configure matchit.txt /*matchit-configure* +matchit-debug matchit.txt /*matchit-debug* +matchit-details matchit.txt /*matchit-details* +matchit-disable matchit.txt /*matchit-disable* +matchit-highlight matchit.txt /*matchit-highlight* +matchit-hl matchit.txt /*matchit-hl* +matchit-intro matchit.txt /*matchit-intro* +matchit-languages matchit.txt /*matchit-languages* +matchit-modes matchit.txt /*matchit-modes* +matchit-newlang matchit.txt /*matchit-newlang* +matchit-o_% matchit.txt /*matchit-o_%* +matchit-parse matchit.txt /*matchit-parse* +matchit-s:notend matchit.txt /*matchit-s:notend* +matchit-s:sol matchit.txt /*matchit-s:sol* +matchit-spaces matchit.txt /*matchit-spaces* +matchit-troubleshoot matchit.txt /*matchit-troubleshoot* +matchit-v_% matchit.txt /*matchit-v_%* +matchit.txt matchit.txt /*matchit.txt* +matchit.vim matchit.txt /*matchit.vim* +o_[% matchit.txt /*o_[%* +o_]% matchit.txt /*o_]%* +o_g% matchit.txt /*o_g%* +v_[% matchit.txt /*v_[%* +v_]% matchit.txt /*v_]%* +v_a% matchit.txt /*v_a%* +v_g% matchit.txt /*v_g%* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/matchit/plugin/matchit.vim b/git/usr/share/vim/vim92/pack/dist/opt/matchit/plugin/matchit.vim new file mode 100644 index 0000000000000000000000000000000000000000..947f530261d5dbda5dbbbb096f53fc8719716cdd --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/matchit/plugin/matchit.vim @@ -0,0 +1,127 @@ +" matchit.vim: (global plugin) Extended "%" matching +" Maintainer: Christian Brabandt +" Version: 1.21 +" Last Change: 2024 May 20 +" Repository: https://github.com/chrisbra/matchit +" Previous URL:http://www.vim.org/script.php?script_id=39 +" Previous Maintainer: Benji Fisher PhD + +" Documentation: +" The documentation is in a separate file: ../doc/matchit.txt + +" Credits: +" Vim editor by Bram Moolenaar (Thanks, Bram!) +" Original script and design by Raul Segura Acevedo +" Support for comments by Douglas Potts +" Support for back references and other improvements by Benji Fisher +" Support for many languages by Johannes Zellner +" Suggestions for improvement, bug reports, and support for additional +" languages by Jordi-Albert Batalla, Neil Bird, Servatius Brandt, Mark +" Collett, Stephen Wall, Dany St-Amant, Yuheng Xie, and Johannes Zellner. + +" Debugging: +" If you'd like to try the built-in debugging commands... +" :MatchDebug to activate debugging for the current buffer +" This saves the values of several key script variables as buffer-local +" variables. See the MatchDebug() function, below, for details. + +" TODO: I should think about multi-line patterns for b:match_words. +" This would require an option: how many lines to scan (default 1). +" This would be useful for Python, maybe also for *ML. +" TODO: Maybe I should add a menu so that people will actually use some of +" the features that I have implemented. +" TODO: Eliminate the MultiMatch function. Add yet another argument to +" Match_wrapper() instead. +" TODO: Allow :let b:match_words = '\(\(foo\)\(bar\)\):\3\2:end\1' +" TODO: Make backrefs safer by using '\V' (very no-magic). +" TODO: Add a level of indirection, so that custom % scripts can use my +" work but extend it. + +" Allow user to prevent loading and prevent duplicate loading. +if exists("g:loaded_matchit") || &cp + finish +endif +let g:loaded_matchit = 1 + +let s:save_cpo = &cpo +set cpo&vim + +fun MatchEnable() + nnoremap (MatchitNormalForward) :call matchit#Match_wrapper('',1,'n') + nnoremap (MatchitNormalBackward) :call matchit#Match_wrapper('',0,'n') + xnoremap (MatchitVisualForward) :call matchit#Match_wrapper('',1,'v') + \:if col("''") != col("$") \| exe ":normal! m'" \| endifgv`` + xnoremap (MatchitVisualBackward) :call matchit#Match_wrapper('',0,'v')m'gv`` + onoremap (MatchitOperationForward) :call matchit#Match_wrapper('',1,'o') + onoremap (MatchitOperationBackward) :call matchit#Match_wrapper('',0,'o') + + " Analogues of [{ and ]} using matching patterns: + nnoremap (MatchitNormalMultiBackward) :call matchit#MultiMatch("bW", "n") + nnoremap (MatchitNormalMultiForward) :call matchit#MultiMatch("W", "n") + xnoremap (MatchitVisualMultiBackward) :call matchit#MultiMatch("bW", "n")m'gv`` + xnoremap (MatchitVisualMultiForward) :call matchit#MultiMatch("W", "n")m'gv`` + onoremap (MatchitOperationMultiBackward) :call matchit#MultiMatch("bW", "o") + onoremap (MatchitOperationMultiForward) :call matchit#MultiMatch("W", "o") + + " text object: + xmap (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) + + if !exists("g:no_plugin_maps") + nmap % (MatchitNormalForward) + nmap g% (MatchitNormalBackward) + xmap % (MatchitVisualForward) + xmap g% (MatchitVisualBackward) + omap % (MatchitOperationForward) + omap g% (MatchitOperationBackward) + + " Analogues of [{ and ]} using matching patterns: + nmap [% (MatchitNormalMultiBackward) + nmap ]% (MatchitNormalMultiForward) + xmap [% (MatchitVisualMultiBackward) + xmap ]% (MatchitVisualMultiForward) + omap [% (MatchitOperationMultiBackward) + omap ]% (MatchitOperationMultiForward) + + " Text object + xmap a% (MatchitVisualTextObject) + endif +endfun + +fun MatchDisable() + " remove all the setup keymappings + nunmap % + nunmap g% + xunmap % + xunmap g% + ounmap % + ounmap g% + + nunmap [% + nunmap ]% + xunmap [% + xunmap ]% + ounmap [% + ounmap ]% + + xunmap a% +endfun + +" Call this function to turn on debugging information. Every time the main +" script is run, buffer variables will be saved. These can be used directly +" or viewed using the menu items below. +if !exists(":MatchDebug") + command! -nargs=0 MatchDebug call matchit#Match_debug() +endif +if !exists(":MatchDisable") + command! -nargs=0 MatchDisable :call MatchDisable() +endif +if !exists(":MatchEnable") + command! -nargs=0 MatchEnable :call MatchEnable() +endif + +call MatchEnable() + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim:sts=2:sw=2:et: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/LICENSE.txt b/git/usr/share/vim/vim92/pack/dist/opt/netrw/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..702c2386ac7919f2ae757bee5ad4fa9a4902a38b --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/LICENSE.txt @@ -0,0 +1,16 @@ +Unless otherwise stated, all files in this directory are distributed under the +Zero-Clause BSD license. + +Zero-Clause BSD +=============== + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/README.md b/git/usr/share/vim/vim92/pack/dist/opt/netrw/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4b139f624967e2ea7613e42c2a7d5fcc726690c5 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/README.md @@ -0,0 +1,544 @@ +# Netrw.vim + +netrw.vim plugin from vim (upstream repository) + +The upstream maintained netrw plugin. The original has been created and +maintained by Charles E Campbell and maintained by the vim project until +v9.1.0988. + +Every major version a snapshot from here will be sent to the main [Vim][1] +upstream for distribution with Vim. + +# License + +To see License information see the LICENSE.txt file included in this +repository. + +# Credits + +Below are stated the contribution made in the past to netrw. + +Changes made to `autoload/netrw.vim`: +- 2023 Nov 21 by Vim Project: ignore wildignore when expanding $COMSPEC (v173a) +- 2023 Nov 22 by Vim Project: fix handling of very long filename on longlist style (v173a) +- 2024 Feb 19 by Vim Project: (announce adoption) +- 2024 Feb 29 by Vim Project: handle symlinks in tree mode correctly +- 2024 Apr 03 by Vim Project: detect filetypes for remote edited files +- 2024 May 08 by Vim Project: cleanup legacy Win9X checks +- 2024 May 09 by Vim Project: remove hard-coded private.ppk +- 2024 May 10 by Vim Project: recursively delete directories by default +- 2024 May 13 by Vim Project: prefer scp over pscp +- 2024 Jun 04 by Vim Project: set bufhidden if buffer changed, nohidden is set and buffer shall be switched (#14915) +- 2024 Jun 13 by Vim Project: glob() on Windows fails when a directory name contains [] (#14952) +- 2024 Jun 23 by Vim Project: save and restore registers when liststyle = WIDELIST (#15077, #15114) +- 2024 Jul 22 by Vim Project: avoid endless recursion (#15318) +- 2024 Jul 23 by Vim Project: escape filename before trying to delete it (#15330) +- 2024 Jul 30 by Vim Project: handle mark-copy to same target directory (#12112) +- 2024 Aug 02 by Vim Project: honor g:netrw_alt{o,v} for :{S,H,V}explore (#15417) +- 2024 Aug 15 by Vim Project: style changes, prevent E121 (#15501) +- 2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551) +- 2024 Aug 22 by Vim Project: adjust echo output of mx command (#15550) +- 2024 Sep 15 by Vim Project: more strict confirmation dialog (#15680) +- 2024 Sep 19 by Vim Project: mf-selection highlight uses wrong pattern (#15700) +- 2024 Sep 21 by Vim Project: remove extraneous closing bracket (#15718) +- 2024 Oct 21 by Vim Project: remove netrwFileHandlers (#15895) +- 2024 Oct 27 by Vim Project: clean up gx mapping (#15721) +- 2024 Oct 30 by Vim Project: fix filetype detection for remote files (#15961) +- 2024 Oct 30 by Vim Project: fix x mapping on cygwin (#13687) +- 2024 Oct 31 by Vim Project: add netrw#Launch() and netrw#Open() (#15962) +- 2024 Oct 31 by Vim Project: fix E874 when browsing remote dir (#15964) +- 2024 Nov 07 by Vim Project: use keeppatterns to prevent polluting the search history +- 2024 Nov 07 by Vim Project: fix a few issues with netrw tree listing (#15996) +- 2024 Nov 10 by Vim Project: directory symlink not resolved in tree view (#16020) +- 2024 Nov 14 by Vim Project: small fixes to netrw#BrowseX (#16056) +- 2024 Nov 23 by Vim Project: update decompress defaults (#16104) +- 2024 Nov 23 by Vim Project: fix powershell escaping issues (#16094) +- 2024 Dec 04 by Vim Project: do not detach for gvim (#16168) +- 2024 Dec 08 by Vim Project: check the first arg of netrw_browsex_viewer for being executable (#16185) +- 2024 Dec 12 by Vim Project: do not pollute the search history (#16206) +- 2024 Dec 19 by Vim Project: change style (#16248) +- 2024 Dec 20 by Vim Project: change style continued (#16266), fix escaping of # in :Open command (#16265) + +General changes made to netrw: + +``` + v172: Sep 02, 2021 * (Bram Moolenaar) Changed "l:go" to "go" + * (Bram Moolenaar) no need for "b" in + netrw-safe guioptions + Nov 15, 2021 * removed netrw_localrm and netrw_localrmdir + references + Aug 18, 2022 * (Miguel Barro) improving compatibility with + powershell + v171: Oct 09, 2020 * included code in s:NetrwOptionsSafe() + to allow |'bh'| to be set to delete when + rather than hide when g:netrw_fastbrowse + was zero. + * Installed |g:netrw_clipboard| setting + * Installed option bypass for |'guioptions'| + a/A settings + * Changed popup_beval() to |popup_atcursor()| + in netrw#ErrorMsg (lacygoill). Apparently + popup_beval doesn't reliably close the + popup when the mouse is moved. + * VimEnter() now using win_execute to examine + buffers for an attempt to open a directory. + Avoids issues with popups/terminal from + command line. (lacygoill) + Jun 28, 2021 * (zeertzjq) provided a patch for use of + xmap,xno instead of vmap,vno in + netrwPlugin.vim. Avoids entanglement with + select mode. + Jul 14, 2021 * Fixed problem addressed by tst976; opening + a file using tree mode, going up a + directory, and opening a file there was + opening the file in the wrong directory. + Jul 28, 2021 * (Ingo Karkat) provided a patch fixing an + E488 error with netrwPlugin.vim + (occurred for vim versions < 8.02) + v170: Mar 11, 2020 * (reported by Reiner Herrmann) netrw+tree + would not hide with the ^\..* pattern + correctly. + * (Marcin Szamotulski) NetrwOptionRestore + did not restore options correctly that + had a single quote in the option string. + Apr 13, 2020 * implemented error handling via popup + windows (see |popup_beval()|) + Apr 30, 2020 * (reported by Manatsu Takahashi) while + using Lexplore, a modified file could + be overwritten. Sol'n: will not overwrite, + but will emit an |E37| (although one cannot + add an ! to override) + Jun 07, 2020 * (reported by Jo Totland) repeatedly invoking + :Lexplore and quitting it left unused + hidden buffers. Netrw will now set netrw + buffers created by :Lexplore to |'bh'|=wipe. + v169: Dec 20, 2019 * (reported by amkarthik) that netrw's x + (|netrw-x|) would throw an error when + attempting to open a local directory. + v168: Dec 12, 2019 * scp timeout error message not reported, + hopefully now fixed (Shane Xb Qian) + v167: Nov 29, 2019 * netrw does a save&restore on @* and @+. + That causes problems with the clipboard. + Now restores occurs only if @* or @+ have + been changed. + * netrw will change @* or @+ less often. + Never if I happen to have caught all the + operations that modify the unnamed + register (which also writes @*). + * Modified hiding behavior so that "s" + will not ignore hiding. + v166: Nov 06, 2019 * Removed a space from a nmap for "-" + * Numerous debugging statement changes + v163: Dec 05, 2017 * (Cristi Balan) reported that a setting ('sel') + was left changed + * (Holger Mitschke) reported a problem with + saving and restoring history. Fixed. + * Hopefully I fixed a nasty bug that caused a + file rename to wipe out a buffer that it + should not have wiped out. + * (Holger Mitschke) amended this help file + with additional |g:netrw_special_syntax| + items + * Prioritized wget over curl for + g:netrw_http_cmd + v162: Sep 19, 2016 * (haya14busa) pointed out two syntax errors + with a patch; these are now fixed. + Oct 26, 2016 * I started using mate-terminal and found that + x and gx (|netrw-x| and |netrw-gx|) were no + longer working. Fixed (using atril when + $DESKTOP_SESSION is "mate"). + Nov 04, 2016 * (Martin Vuille) pointed out that @+ was + being restored with keepregstar rather than + keepregplus. + Nov 09, 2016 * Broke apart the command from the options, + mostly for Windows. Introduced new netrw + settings: |g:netrw_localcopycmdopt| + |g:netrw_localcopydircmdopt| + |g:netrw_localmkdiropt| + |g:netrw_localmovecmdopt| + Nov 21, 2016 * (mattn) provided a patch for preview; swapped + winwidth() with winheight() + Nov 22, 2016 * (glacambre) reported that files containing + spaces weren't being obtained properly via + scp. Fix: apparently using single quotes + such as with 'file name' wasn't enough; the + spaces inside the quotes also had to be + escaped (ie. 'file\ name'). + * Also fixed obtain (|netrw-O|) to be able to + obtain files with spaces in their names + Dec 20, 2016 * (xc1427) Reported that using "I" (|netrw-I|) + when atop "Hiding" in the banner also caused + the active-banner hiding control to occur + Jan 03, 2017 * (Enno Nagel) reported that attempting to + apply netrw to a directory that was without + read permission caused a syntax error. + Jan 13, 2017 * (Ingo Karkat) provided a patch which makes + using netrw#Call() better. Now returns + value of internal routines return, for example. + Jan 13, 2017 * (Ingo Karkat) changed netrw#FileUrlRead to + use |:edit| instead of |:read|. I also + changed the routine name to netrw#FileUrlEdit. + Jan 16, 2017 * (Sayem) reported a problem where :Lexplore + could generate a new listing buffer and + window instead of toggling the netrw display. + Unfortunately, the directions for eliciting + the problem weren't complete, so I may or + may not have fixed that issue. + Feb 06, 2017 * Implemented cb and cB. Changed "c" to "cd". + (see |netrw-cb|, |netrw-cB|, and |netrw-cd|) + Mar 21, 2017 * previously, netrw would specify (safe) settings + even when the setting was already safe for + netrw. Netrw now attempts to leave such + already-netrw-safe settings alone. + (affects s:NetrwOptionRestore() and + s:NetrwSafeOptions(); also introduced + s:NetrwRestoreSetting()) + Jun 26, 2017 * (Christian Brabandt) provided a patch to + allow curl to follow redirects (ie. -L + option) + Jun 26, 2017 * (Callum Howard) reported a problem with + :Lexpore not removing the Lexplore window + after a change-directory + Aug 30, 2017 * (Ingo Karkat) one cannot switch to the + previously edited file (e.g. with CTRL-^) + after editing a file:// URL. Patch to + have a "keepalt" included. + Oct 17, 2017 * (Adam Faryna) reported that gn (|netrw-gn|) + did not work on directories in the current + tree + v157: Apr 20, 2016 * (Nicola) had set up a "nmap ..." with + a function that returned a 0 while silently + invoking a shell command. The shell command + activated a ShellCmdPost event which in turn + called s:LocalBrowseRefresh(). That looks + over all netrw buffers for changes needing + refreshes. However, inside a |:map-|, + tab and window changes are disallowed. Fixed. + (affects netrw's s:LocalBrowseRefresh()) + * g:netrw_localrmdir not used any more, but + the relevant patch that causes |delete()| to + take over was #1107 (not #1109). + * |expand()| is now used on |g:netrw_home|; + consequently, g:netrw_home may now use + environment variables + * s:NetrwLeftmouse and s:NetrwCLeftmouse will + return without doing anything if invoked + when inside a non-netrw window + Jun 15, 2016 * gx now calls netrw#GX() which returns + the word under the cursor. The new + wrinkle: if one is in a netrw buffer, + then netrw's s:NetrwGetWord(). + Jun 22, 2016 * Netrw was executing all its associated + Filetype commands silently; I'm going + to try doing that "noisily" and see if + folks have a problem with that. + Aug 12, 2016 * Changed order of tool selection for + handling http://... viewing. + (Nikolay Aleksandrovich Pavlov) + Aug 21, 2016 * Included hiding/showing/all for tree + listings + * Fixed refresh (^L) for tree listings + v156: Feb 18, 2016 * Changed =~ to =~# where appropriate + Feb 23, 2016 * s:ComposePath(base,subdir) now uses + fnameescape() on the base portion + Mar 01, 2016 * (gt_macki) reported where :Explore would + make file unlisted. Fixed (tst943) + Apr 04, 2016 * (reported by John Little) netrw normally + suppresses browser messages, but sometimes + those "messages" are what is wanted. + See |g:netrw_suppress_gx_mesg| + Apr 06, 2016 * (reported by Carlos Pita) deleting a remote + file was giving an error message. Fixed. + Apr 08, 2016 * (Charles Cooper) had a problem with an + undefined b:netrw_curdir. He also provided + a fix. + Apr 20, 2016 * Changed s:NetrwGetBuffer(); now uses + dictionaries. Also fixed the "No Name" + buffer problem. + v155: Oct 29, 2015 * (Timur Fayzrakhmanov) reported that netrw's + mapping of ctrl-l was not allowing refresh of + other windows when it was done in a netrw + window. + Nov 05, 2015 * Improved s:TreeSqueezeDir() to use search() + instead of a loop + * NetrwBrowse() will return line to + w:netrw_bannercnt if cursor ended up in + banner + Nov 16, 2015 * Added a NetrwTreeSqueeze (|netrw-s-cr|) + Nov 17, 2015 * Commented out imaps -- perhaps someone can + tell me how they're useful and should be + retained? + Nov 20, 2015 * Added |netrw-ma| and |netrw-mA| support + Nov 20, 2015 * gx (|netrw-gx|) on a URL downloaded the + file in addition to simply bringing up the + URL in a browser. Fixed. + Nov 23, 2015 * Added |g:netrw_sizestyle| support + Nov 27, 2015 * Inserted a lot of s into various netrw + maps. + Jan 05, 2016 * |netrw-qL| implemented to mark files based + upon |location-list|s; similar to |netrw-qF|. + Jan 19, 2016 * using - call delete(directoryname,"d") - + instead of using g:netrw_localrmdir if + v7.4 + patch#1107 is available + Jan 28, 2016 * changed to using |winsaveview()| and + |winrestview()| + Jan 28, 2016 * s:NetrwTreePath() now does a save and + restore of view + Feb 08, 2016 * Fixed a tree-listing problem with remote + directories + v154: Feb 26, 2015 * (Yuri Kanivetsky) reported a situation where + a file was not treated properly as a file + due to g:netrw_keepdir == 1 + Mar 25, 2015 * (requested by Ben Friz) one may now sort by + extension + Mar 28, 2015 * (requested by Matt Brooks) netrw has a lot + of buffer-local mappings; however, some + plugins (such as vim-surround) set up + conflicting mappings that cause vim to wait. + The "" modifier has been included + with most of netrw's mappings to avoid that + delay. + Jun 26, 2015 * |netrw-gn| mapping implemented + * :Ntree NotADir resulted in having + the tree listing expand in the error messages + window. Fixed. + Jun 29, 2015 * Attempting to delete a file remotely caused + an error with "keepsol" mentioned; fixed. + Jul 08, 2015 * Several changes to keep the |:jumps| table + correct when working with + |g:netrw_fastbrowse| set to 2 + * wide listing with accented characters fixed + (using %-S instead of %-s with a |printf()| + Jul 13, 2015 * (Daniel Hahler) CheckIfKde() could be true + but kfmclient not installed. Changed order + in netrw#BrowseX(): checks if kde and + kfmclient, then will use xdg-open on a unix + system (if xdg-open is executable) + Aug 11, 2015 * (McDonnell) tree listing mode wouldn't + select a file in a open subdirectory. + * (McDonnell) when multiple subdirectories + were concurrently open in tree listing + mode, a ctrl-L wouldn't refresh properly. + * The netrw:target menu showed duplicate + entries + Oct 13, 2015 * (mattn) provided an exception to handle + windows with shellslash set but no shell + Oct 23, 2015 * if g:netrw_usetab and now used + to control whether NetrwShrink is used + (see |netrw-c-tab|) + v153: May 13, 2014 * added another |g:netrw_ffkeep| usage {{{2 + May 14, 2014 * changed s:PerformListing() so that it + always sets ft=netrw for netrw buffers + (ie. even when syntax highlighting is + off, not available, etc) + May 16, 2014 * introduced the |netrw-ctrl-r| functionality + May 17, 2014 * introduced the |netrw-:NetrwMB| functionality + * mb and mB (|netrw-mb|, |netrw-mB|) will + add/remove marked files from bookmark list + May 20, 2014 * (Enno Nagel) reported that :Lex + wasn't working. Fixed. + May 26, 2014 * restored test to prevent leftmouse window + resizing from causing refresh. + (see s:NetrwLeftmouse()) + * fixed problem where a refresh caused cursor + to go just under the banner instead of + staying put + May 28, 2014 * (László Bimba) provided a patch for opening + the |:Lexplore| window 100% high, optionally + on the right, and will work with remote + files. + May 29, 2014 * implemented :NetrwC (see |netrw-:NetrwC|) + Jun 01, 2014 * Removed some "silent"s from commands used + to implemented scp://... and pscp://... + directory listing. Permits request for + password to appear. + Jun 05, 2014 * (Enno Nagel) reported that user maps "/" + caused problems with "b" and "w", which + are mapped (for wide listings only) to + skip over files rather than just words. + Jun 10, 2014 * |g:netrw_gx| introduced to allow users to + override default "" with the gx + (|netrw-gx|) map + Jun 11, 2014 * gx (|netrw-gx|), with |'autowrite'| set, + will write modified files. s:NetrwBrowseX() + will now save, turn off, and restore the + |'autowrite'| setting. + Jun 13, 2014 * added visual map for gx use + Jun 15, 2014 * (Enno Nagel) reported that with having hls + set and wide listing style in use, that the + b and w maps caused unwanted highlighting. + Jul 05, 2014 * |netrw-mv| and |netrw-mX| commands included + Jul 09, 2014 * |g:netrw_keepj| included, allowing optional + keepj + Jul 09, 2014 * fixing bugs due to previous update + Jul 21, 2014 * (Bruno Sutic) provided an updated + netrw_gitignore.vim + Jul 30, 2014 * (Yavuz Yetim) reported that editing two + remote files of the same name caused the + second instance to have a "temporary" + name. Fixed: now they use the same buffer. + Sep 18, 2014 * (Yasuhiro Matsumoto) provided a patch which + allows scp and windows local paths to work. + Oct 07, 2014 * gx (see |netrw-gx|) when atop a directory, + will now do |gf| instead + Nov 06, 2014 * For cygwin: cygstart will be available for + netrw#BrowseX() to use if its executable. + Nov 07, 2014 * Began support for file://... urls. Will use + |g:netrw_file_cmd| (typically elinks or links) + Dec 02, 2014 * began work on having mc (|netrw-mc|) copy + directories. Works for linux machines, + cygwin+vim, but not for windows+gvim. + Dec 02, 2014 * in tree mode, netrw was not opening + directories via symbolic links. + Dec 02, 2014 * added resolved link information to + thin and tree modes + Dec 30, 2014 * (issue#231) |:ls| was not showing + remote-file buffers reliably. Fixed. + v152: Apr 08, 2014 * uses the |'noswapfile'| option (requires {{{2 + vim 7.4 with patch 213) + * (Enno Nagel) turn |'rnu'| off in netrw + buffers. + * (Quinn Strahl) suggested that netrw + allow regular window splitting to occur, + thereby allowing |'equalalways'| to take + effect. + * (qingtian zhao) normally, netrw will + save and restore the |'fileformat'|; + however, sometimes that isn't wanted + Apr 14, 2014 * whenever netrw marks a buffer as ro, + it will also mark it as nomod. + Apr 16, 2014 * sftp protocol now supported by + netrw#Obtain(); this means that one + may use "mc" to copy a remote file + to a local file using sftp, and that + the |netrw-O| command can obtain remote + files via sftp. + * added [count]C support (see |netrw-C|) + Apr 18, 2014 * when |g:netrw_chgwin| is one more than + the last window, then vertically split + the last window and use it as the + chgwin window. + May 09, 2014 * SavePosn was "saving filename under cursor" + from a non-netrw window when using :Rex. + v151: Jan 22, 2014 * extended :Rexplore to return to buffer {{{2 + prior to Explore or editing a directory + * (Ken Takata) netrw gave error when + clipboard was disabled. Sol'n: Placed + several if has("clipboard") tests in. + * Fixed ftp://X@Y@Z// problem; X@Y now + part of user id, and only Z is part of + hostname. + * (A Loumiotis) reported that completion + using a directory name containing spaces + did not work. Fixed with a retry in + netrw#Explore() which removes the + backslashes vim inserted. + Feb 26, 2014 * :Rexplore now records the current file + using w:netrw_rexfile when returning via + |:Rexplore| + Mar 08, 2014 * (David Kotchan) provided some patches + allowing netrw to work properly with + windows shares. + * Multiple one-liner help messages available + by pressing while atop the "Quick + Help" line + * worked on ShellCmdPost, FocusGained event + handling. + * |:Lexplore| path: will be used to update + a left-side netrw browsing directory. + Mar 12, 2014 * |netrw-s-cr|: use to close + tree directory implemented + Mar 13, 2014 * (Tony Mechylynck) reported that using + the browser with ftp on a directory, + and selecting a gzipped txt file, that + an E19 occurred (which was issued by + gzip.vim). Fixed. + Mar 14, 2014 * Implemented :MF and :MT (see |netrw-:MF| + and |netrw-:MT|, respectively) + Mar 17, 2014 * |:Ntree| [dir] wasn't working properly; fixed + Mar 18, 2014 * Changed all uses of set to setl + Mar 18, 2014 * Commented the netrw_btkeep line in + s:NetrwOptionSave(); the effect is that + netrw buffers will remain as |'bt'|=nofile. + This should prevent swapfiles being created + for netrw buffers. + Mar 20, 2014 * Changed all uses of lcd to use s:NetrwLcd() + instead. Consistent error handling results + and it also handles Window's shares + * Fixed |netrw-d| command when applied with ftp + * https: support included for netrw#NetRead() + v150: Jul 12, 2013 * removed a "keepalt" to allow ":e #" to {{{2 + return to the netrw directory listing + Jul 13, 2013 * (Jonas Diemer) suggested changing + a to . + Jul 21, 2013 * (Yuri Kanivetsky) reported that netrw's + use of mkdir did not produce directories + following the user's umask. + Aug 27, 2013 * introduced |g:netrw_altfile| option + Sep 05, 2013 * s:Strlen() now uses |strdisplaywidth()| + when available, by default + Sep 12, 2013 * (Selyano Baldo) reported that netrw wasn't + opening some directories properly from the + command line. + Nov 09, 2013 * |:Lexplore| introduced + * (Ondrej Platek) reported an issue with + netrw's trees (P15). Fixed. + * (Jorge Solis) reported that "t" in + tree mode caused netrw to forget its + line position. + Dec 05, 2013 * Added file marking + (see |netrw-mf|) + Dec 05, 2013 * (Yasuhiro Matsumoto) Explore should use + strlen() instead s:Strlen() when handling + multibyte chars with strpart() + (ie. strpart() is byte oriented, not + display-width oriented). + Dec 09, 2013 * (Ken Takata) Provided a patch; File sizes + and a portion of timestamps were wrongly + highlighted with the directory color when + setting `:let g:netrw_liststyle=1` on Windows. + * (Paul Domaskis) noted that sometimes + cursorline was activating in non-netrw + windows. All but one setting of cursorline + was done via setl; there was one that was + overlooked. Fixed. + Dec 24, 2013 * (esquifit) asked that netrw allow the + /cygdrive prefix be a user-alterable + parameter. + Jan 02, 2014 * Fixed a problem with netrw-based balloon + evaluation (ie. netrw#NetrwBaloonHelp() + not having been loaded error messages) + Jan 03, 2014 * Fixed a problem with tree listings + * New command installed: |:Ntree| + Jan 06, 2014 * (Ivan Brennan) reported a problem with + |netrw-P|. Fixed. + Jan 06, 2014 * Fixed a problem with |netrw-P| when the + modified file was to be abandoned. + Jan 15, 2014 * (Matteo Cavalleri) reported that when the + banner is suppressed and tree listing is + used, a blank line was left at the top of + the display. Fixed. + Jan 20, 2014 * (Gideon Go) reported that, in tree listing + style, with a previous window open, that + the wrong directory was being used to open + a file. Fixed. (P21) + v149: Apr 18, 2013 * in wide listing format, now have maps for {{{2 + w and b to move to next/previous file + Apr 26, 2013 * one may now copy files in the same + directory; netrw will issue requests for + what names the files should be copied under + Apr 29, 2013 * Trying Benzinger's problem again. Seems + that commenting out the BufEnter and + installing VimEnter (only) works. Weird + problem! (tree listing, vim -O Dir1 Dir2) + May 01, 2013 * :Explore ftp://... wasn't working. Fixed. + May 02, 2013 * introduced |g:netrw_bannerbackslash| as + requested by Paul Domaskis. + Jul 03, 2013 * Explore now avoids splitting when a buffer + will be hidden. + v148: Apr 16, 2013 * changed Netrw's Style menu to allow direct {{{2 + choice of listing style, hiding style, and + sorting style +``` + +[1]: https://github.com/vim/vim diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw.vim new file mode 100644 index 0000000000000000000000000000000000000000..8e5fdb5397f54fdada4c71a2b4ed617c38559070 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw.vim @@ -0,0 +1,9675 @@ +" Creator: Charles E Campbell +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. +" Last Change: +" 2025 Aug 07 by Vim Project (use correct "=~#" for netrw_stylesize option #17901) +" 2025 Aug 07 by Vim Project (netrw#BrowseX() distinguishes remote files #17794) +" 2025 Aug 22 by Vim Project netrw#Explore handle terminal correctly #18069 +" 2025 Sep 05 by Vim Project ensure netrw#fs#Dirname() returns trailing slash #18199 +" 2025 Sep 11 by Vim Project only keep cursor position in tree mode #18275 +" 2025 Sep 17 by Vim Project tighten the regex to handle remote compressed archives #18318 +" 2025 Sep 18 by Vim Project 'equalalways' not always respected #18358 +" 2025 Oct 01 by Vim Project fix navigate to parent folder #18464 +" 2025 Oct 26 by Vim Project fix parsing of remote user names #18611 +" 2025 Oct 27 by Vim Project align comment after #18611 +" 2025 Nov 01 by Vim Project fix NetrwChgPerm #18674 +" 2025 Nov 13 by Vim Project don't wipe unnamed buffers #18740 +" 2025 Nov 18 by Vim Project use UNC paths when using scp and Windows paths #18764 +" 2025 Nov 28 by Vim Project fix undefined variable in *NetrwMenu #18829 +" 2025 Dec 26 by Vim Project fix use of g:netrw_cygwin #19015 +" 2026 Jan 19 by Vim Project do not create swapfiles #18854 +" 2026 Feb 15 by Vim Project fix global variable initialization for MS-Windows #19287 +" 2026 Feb 21 by Vim Project better absolute path detection on MS-Windows #19477 +" 2026 Feb 27 by Vim Project Make the hostname validation more strict +" 2026 Mar 01 by Vim Project include portnumber in hostname checking #19533 +" 2026 Apr 01 by Vim Project use fnameescape() with netrw#FileUrlEdit() +" 2026 Apr 05 by Vim Project Fix netrw#RFC2396() #19913 +" Copyright: Copyright (C) 2016 Charles E. Campbell {{{1 +" Permission is hereby granted to use and distribute this code, +" with or without modifications, provided that this copyright +" notice is copied with it. Like anything else that's free, +" netrw.vim, netrwPlugin.vim, and netrwSettings.vim are provided +" *as is* and come with no warranty of any kind, either +" expressed or implied. By using this plugin, you agree that +" in no event will the copyright holder be liable for any damages +" resulting from the use of this software. +" +" Note: the code here was started in 1999 under a much earlier version of vim. The directory browsing +" code was written using vim v6, which did not have Lists (Lists were first offered with vim-v7). + +" Load Once: {{{1 +if &cp || exists("g:loaded_netrw") + finish +endif + +let g:loaded_netrw = "v184" + +if !has("patch-9.1.1054") && !has('nvim') + echoerr 'netrw needs Vim v9.1.1054' + finish +endif + +let s:keepcpo= &cpo +setl cpo&vim + +" Netrw Variables: {{{1 + +" s:NetrwInit: initializes variables if they haven't been defined {{{2 + +function s:NetrwInit(name, default) + if !exists(a:name) + let {a:name} = a:default + endif +endfunction + +" Netrw Constants: {{{2 +call s:NetrwInit("g:netrw_dirhistcnt",0) +if !exists("s:LONGLIST") + call s:NetrwInit("s:THINLIST",0) + call s:NetrwInit("s:LONGLIST",1) + call s:NetrwInit("s:WIDELIST",2) + call s:NetrwInit("s:TREELIST",3) + call s:NetrwInit("s:MAXLIST" ,4) +endif + +" Default option values: {{{2 +call s:NetrwInit("g:netrw_localcopycmdopt","") +call s:NetrwInit("g:netrw_localcopydircmdopt","") +call s:NetrwInit("g:netrw_localmkdiropt","") +call s:NetrwInit("g:netrw_localmovecmdopt","") + +" Default values for netrw's global protocol variables {{{2 + +if !exists("g:netrw_dav_cmd") + if executable("cadaver") + let g:netrw_dav_cmd = "cadaver" + elseif executable("curl") + let g:netrw_dav_cmd = "curl" + else + let g:netrw_dav_cmd = "" + endif +endif +if !exists("g:netrw_fetch_cmd") + if executable("fetch") + let g:netrw_fetch_cmd = "fetch -o" + else + let g:netrw_fetch_cmd = "" + endif +endif +if !exists("g:netrw_file_cmd") + if executable("elinks") + call s:NetrwInit("g:netrw_file_cmd","elinks") + elseif executable("links") + call s:NetrwInit("g:netrw_file_cmd","links") + endif +endif +if !exists("g:netrw_ftp_cmd") + let g:netrw_ftp_cmd = "ftp" +endif +let s:netrw_ftp_cmd= g:netrw_ftp_cmd +if !exists("g:netrw_ftp_options") + let g:netrw_ftp_options= "-i -n" +endif +if !exists("g:netrw_http_cmd") + if executable("wget") + let g:netrw_http_cmd = "wget" + call s:NetrwInit("g:netrw_http_xcmd","-q -O") + elseif executable("curl") + let g:netrw_http_cmd = "curl" + call s:NetrwInit("g:netrw_http_xcmd","-L -o") + elseif executable("elinks") + let g:netrw_http_cmd = "elinks" + call s:NetrwInit("g:netrw_http_xcmd","-source >") + elseif executable("fetch") + let g:netrw_http_cmd = "fetch" + call s:NetrwInit("g:netrw_http_xcmd","-o") + elseif executable("links") + let g:netrw_http_cmd = "links" + call s:NetrwInit("g:netrw_http_xcmd","-http.extra-header ".shellescape("Accept-Encoding: identity", 1)." -source >") + else + let g:netrw_http_cmd = "" + endif +endif +call s:NetrwInit("g:netrw_http_put_cmd","curl -T") +call s:NetrwInit("g:netrw_keepj","keepj") +call s:NetrwInit("g:netrw_rcp_cmd" , "rcp") +call s:NetrwInit("g:netrw_rsync_cmd", "rsync") +call s:NetrwInit("g:netrw_rsync_sep", "/") +if !exists("g:netrw_scp_cmd") + if executable("scp") + call s:NetrwInit("g:netrw_scp_cmd" , "scp -q") + elseif executable("pscp") + call s:NetrwInit("g:netrw_scp_cmd", 'pscp -q') + else + call s:NetrwInit("g:netrw_scp_cmd" , "scp -q") + endif +endif +call s:NetrwInit("g:netrw_sftp_cmd" , "sftp") +call s:NetrwInit("g:netrw_ssh_cmd" , "ssh") + +if has("win32") + \ && exists("g:netrw_use_nt_rcp") + \ && g:netrw_use_nt_rcp + \ && executable( $SystemRoot .'/system32/rcp.exe') + let s:netrw_has_nt_rcp = 1 + let s:netrw_rcpmode = '-b' +else + let s:netrw_has_nt_rcp = 0 + let s:netrw_rcpmode = '' +endif + +" Default values for netrw's global variables {{{2 +" Cygwin Detection ------- {{{3 +if !exists("g:netrw_cygwin") + if has("win32unix") && &shell =~ '\%(\\|\\)\%(\.exe\)\=$' + let g:netrw_cygwin= 1 + else + let g:netrw_cygwin= 0 + endif +endif +" Default values - a-c ---------- {{{3 +call s:NetrwInit("g:netrw_alto" , &sb) +call s:NetrwInit("g:netrw_altv" , &spr) +call s:NetrwInit("g:netrw_banner" , 1) +call s:NetrwInit("g:netrw_browse_split", 0) +call s:NetrwInit("g:netrw_bufsettings" , "noma nomod nonu nobl nowrap ro nornu") +call s:NetrwInit("g:netrw_chgwin" , -1) +call s:NetrwInit("g:netrw_clipboard" , 1) +call s:NetrwInit("g:netrw_compress" , "gzip") +call s:NetrwInit("g:netrw_ctags" , "ctags") +call s:NetrwInit("g:netrw_cursor" , 2) +let s:netrw_usercul = &cursorline +let s:netrw_usercuc = &cursorcolumn +call s:NetrwInit("g:netrw_cygdrive","/cygdrive") +" Default values - d-g ---------- {{{3 +call s:NetrwInit("s:didstarstar",0) +call s:NetrwInit("g:netrw_dirhistcnt" , 0) +let s:xz_opt = has('unix') ? "XZ_OPT=-T0" : + \ (has("win32") && &shell =~? '\vcmd(\.exe)?$' ? + \ "setx XZ_OPT=-T0 &&" : "") +call s:NetrwInit("g:netrw_decompress", { + \ '.lz4': 'lz4 -d', + \ '.lzo': 'lzop -d', + \ '.lz': 'lzip -dk', + \ '.7z': '7za x', + \ '.001': '7za x', + \ '.zip': 'unzip', + \ '.bz': 'bunzip2 -k', + \ '.bz2': 'bunzip2 -k', + \ '.gz': 'gunzip -k', + \ '.lzma': 'unlzma -T0 -k', + \ '.xz': 'unxz -T0 -k', + \ '.zst': 'zstd -T0 -d', + \ '.Z': 'uncompress -k', + \ '.tar': 'tar -xvf', + \ '.tar.bz': 'tar -xvjf', + \ '.tar.bz2': 'tar -xvjf', + \ '.tbz': 'tar -xvjf', + \ '.tbz2': 'tar -xvjf', + \ '.tar.gz': 'tar -xvzf', + \ '.tgz': 'tar -xvzf', + \ '.tar.lzma': s:xz_opt .. ' tar -xvf --lzma', + \ '.tlz': s:xz_opt .. ' tar -xvf --lzma', + \ '.tar.xz': s:xz_opt .. ' tar -xvfJ', + \ '.txz': s:xz_opt .. ' tar -xvfJ', + \ '.tar.zst': s:xz_opt .. ' tar -xvf --use-compress-program=unzstd', + \ '.tzst': s:xz_opt .. ' tar -xvf --use-compress-program=unzstd', + \ '.rar': (executable("unrar")?"unrar x -ad":"rar x -ad"), + \ }) +unlet s:xz_opt +call s:NetrwInit("g:netrw_dirhistmax" , 10) +call s:NetrwInit("g:netrw_fastbrowse" , 1) +call s:NetrwInit("g:netrw_ftp_browse_reject", '^total\s\+\d\+$\|^Trying\s\+\d\+.*$\|^KERBEROS_V\d rejected\|^Security extensions not\|No such file\|: connect to address [0-9a-fA-F:]*: No route to host$') +if !exists("g:netrw_ftp_list_cmd") + if has("unix") || g:netrw_cygwin + let g:netrw_ftp_list_cmd = "ls -lF" + let g:netrw_ftp_timelist_cmd = "ls -tlF" + let g:netrw_ftp_sizelist_cmd = "ls -slF" + else + let g:netrw_ftp_list_cmd = "dir" + let g:netrw_ftp_timelist_cmd = "dir" + let g:netrw_ftp_sizelist_cmd = "dir" + endif +endif +call s:NetrwInit("g:netrw_ftpmode",'binary') +" Default values - h-lh ---------- {{{3 +call s:NetrwInit("g:netrw_hide",1) +if !exists("g:netrw_ignorenetrc") + if &shell =~ '\c\<\%(cmd\|4nt\)\.exe$' + let g:netrw_ignorenetrc= 1 + else + let g:netrw_ignorenetrc= 0 + endif +endif +call s:NetrwInit("g:netrw_keepdir",1) +if !exists("g:netrw_list_cmd") + if g:netrw_scp_cmd =~ '^pscp' && executable("pscp") + if exists("g:netrw_list_cmd_options") + let g:netrw_list_cmd= g:netrw_scp_cmd." -ls USEPORT HOSTNAME: ".g:netrw_list_cmd_options + else + let g:netrw_list_cmd= g:netrw_scp_cmd." -ls USEPORT HOSTNAME:" + endif + elseif executable(g:netrw_ssh_cmd) + " provide a scp-based default listing command + if exists("g:netrw_list_cmd_options") + let g:netrw_list_cmd= g:netrw_ssh_cmd." USEPORT HOSTNAME ls -FLa ".g:netrw_list_cmd_options + else + let g:netrw_list_cmd= g:netrw_ssh_cmd." USEPORT HOSTNAME ls -FLa" + endif + else + let g:netrw_list_cmd= "" + endif +endif +call s:NetrwInit("g:netrw_list_hide","") +" Default values - lh-lz ---------- {{{3 +if !exists("g:netrw_localcmdshell") + let g:netrw_localcmdshell= "" +endif + +if !exists("g:netrw_localcopycmd") + let g:netrw_localcopycmd = 'cp' + let g:netrw_localcopycmdopt = '' + + if has("win32") && !g:netrw_cygwin + let g:netrw_localcopycmd = $COMSPEC + let g:netrw_localcopycmdopt = ' /c copy' + endif +endif + +if !exists("g:netrw_localcopydircmd") + let g:netrw_localcopydircmd = 'cp' + let g:netrw_localcopydircmdopt = '-R' + + if has("win32") && !g:netrw_cygwin + let g:netrw_localcopydircmd = "xcopy" + let g:netrw_localcopydircmdopt = " /E /I /H /C /Y" + endif +endif + +if !exists("g:netrw_localmkdir") + if has("win32") + if g:netrw_cygwin + let g:netrw_localmkdir= "mkdir" + else + let g:netrw_localmkdir = $COMSPEC + let g:netrw_localmkdiropt= " /c mkdir" + endif + else + let g:netrw_localmkdir= "mkdir" + endif +endif + +if !exists("g:netrw_localmovecmd") + if has("win32") + if g:netrw_cygwin + let g:netrw_localmovecmd= "mv" + else + let g:netrw_localmovecmd = $COMSPEC + let g:netrw_localmovecmdopt= " /c move" + endif + elseif has("unix") || has("macunix") + let g:netrw_localmovecmd= "mv" + else + let g:netrw_localmovecmd= "" + endif +endif + +call s:NetrwInit("g:netrw_liststyle" , s:THINLIST) +" sanity checks +if g:netrw_liststyle < 0 || g:netrw_liststyle >= s:MAXLIST + let g:netrw_liststyle= s:THINLIST +endif +if g:netrw_liststyle == s:LONGLIST && g:netrw_scp_cmd !~ '^pscp' + let g:netrw_list_cmd= g:netrw_list_cmd." -l" +endif +" Default values - m-r ---------- {{{3 +call s:NetrwInit("g:netrw_markfileesc" , '*./[\~') +call s:NetrwInit("g:netrw_maxfilenamelen", 32) +call s:NetrwInit("g:netrw_menu" , 1) +call s:NetrwInit("g:netrw_mkdir_cmd" , g:netrw_ssh_cmd." USEPORT HOSTNAME mkdir") +call s:NetrwInit("g:netrw_mousemaps" , (exists("+mouse") && &mouse =~# '[anh]')) +call s:NetrwInit("g:netrw_retmap" , 0) +if has("unix") || g:netrw_cygwin + call s:NetrwInit("g:netrw_chgperm" , "chmod PERM FILENAME") +elseif has("win32") + call s:NetrwInit("g:netrw_chgperm" , "cacls FILENAME /e /p PERM") +else + call s:NetrwInit("g:netrw_chgperm" , "chmod PERM FILENAME") +endif +call s:NetrwInit("g:netrw_preview" , 0) +call s:NetrwInit("g:netrw_scpport" , "-P") +call s:NetrwInit("g:netrw_servername" , "NETRWSERVER") +call s:NetrwInit("g:netrw_sshport" , "-p") +call s:NetrwInit("g:netrw_rename_cmd" , g:netrw_ssh_cmd." USEPORT HOSTNAME mv") +call s:NetrwInit("g:netrw_rm_cmd" , g:netrw_ssh_cmd." USEPORT HOSTNAME rm") +call s:NetrwInit("g:netrw_rmdir_cmd" , g:netrw_ssh_cmd." USEPORT HOSTNAME rmdir") +call s:NetrwInit("g:netrw_rmf_cmd" , g:netrw_ssh_cmd." USEPORT HOSTNAME rm -f ") +" Default values - q-s ---------- {{{3 +call s:NetrwInit("g:netrw_quickhelp",0) +let s:QuickHelp= ["-:go up dir D:delete R:rename s:sort-by x:special", + \ "(create new) %:file d:directory", + \ "(windows split&open) o:horz v:vert p:preview", + \ "i:style qf:file info O:obtain r:reverse", + \ "(marks) mf:mark file mt:set target mm:move mc:copy", + \ "(bookmarks) mb:make mB:delete qb:list gb:go to", + \ "(history) qb:list u:go up U:go down", + \ "(targets) mt:target Tb:use bookmark Th:use history"] +" g:netrw_sepchr: picking a character that doesn't appear in filenames that can be used to separate priority from filename +call s:NetrwInit("g:netrw_sepchr" , (&enc == "euc-jp")? "\" : "\") +if !exists("g:netrw_keepj") || g:netrw_keepj == "keepj" + call s:NetrwInit("s:netrw_silentxfer" , (exists("g:netrw_silent") && g:netrw_silent != 0)? "sil keepj " : "keepj ") +else + call s:NetrwInit("s:netrw_silentxfer" , (exists("g:netrw_silent") && g:netrw_silent != 0)? "sil " : " ") +endif +call s:NetrwInit("g:netrw_sort_by" , "name") " alternatives: date , size +call s:NetrwInit("g:netrw_sort_options" , "") +call s:NetrwInit("g:netrw_sort_direction", "normal") " alternative: reverse (z y x ...) +if !exists("g:netrw_sort_sequence") + let g:netrw_sort_sequence = !empty(&suffixes) + \ ? printf('[\/]$,*,\%(%s\)[*@]\=$', &suffixes->split(',')->map('escape(v:val, ".*$~")')->join('\|')) + \ : '[\/]$,*' +endif +call s:NetrwInit("g:netrw_special_syntax" , 0) +call s:NetrwInit("g:netrw_ssh_browse_reject", '^total\s\+\d\+$') +call s:NetrwInit("g:netrw_use_noswf" , 1) +call s:NetrwInit("g:netrw_sizestyle" ,"b") +" Default values - t-w ---------- {{{3 +call s:NetrwInit("g:netrw_timefmt","%c") +if !exists("g:netrw_xstrlen") + if exists("g:Align_xstrlen") + let g:netrw_xstrlen= g:Align_xstrlen + elseif exists("g:drawit_xstrlen") + let g:netrw_xstrlen= g:drawit_xstrlen + elseif &enc == "latin1" || !has("multi_byte") + let g:netrw_xstrlen= 0 + else + let g:netrw_xstrlen= 1 + endif +endif +call s:NetrwInit("g:NetrwTopLvlMenu","Netrw.") +call s:NetrwInit("g:netrw_winsize",50) +call s:NetrwInit("g:netrw_wiw",1) +if g:netrw_winsize > 100|let g:netrw_winsize= 100|endif +" Default values for netrw's script variables: {{{2 +call s:NetrwInit("g:netrw_fname_escape",' ?&;%') +if has("win32") + call s:NetrwInit("g:netrw_glob_escape",'*?`{[]$') +else + call s:NetrwInit("g:netrw_glob_escape",'*[]?`{~$\') +endif +call s:NetrwInit("g:netrw_menu_escape",'.&? \') +call s:NetrwInit("g:netrw_tmpfile_escape",' &;') +call s:NetrwInit("s:netrw_map_escape","<|\n\r\\\\"") +if has("gui_running") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') + let s:treedepthstring= "│ " +else + let s:treedepthstring= "| " +endif +call s:NetrwInit("s:netrw_posn", {}) + +" BufEnter event ignored by decho when following variable is true +" Has a side effect that doau BufReadPost doesn't work, so +" files read by network transfer aren't appropriately highlighted. + +" Netrw Initialization: {{{1 + +au WinEnter * if &ft == "netrw" | call s:NetrwInsureWinVars() | endif + +if g:netrw_keepj =~# "keepj" + com! -nargs=* NetrwKeepj keepj +else + let g:netrw_keepj= "" + com! -nargs=* NetrwKeepj +endif + +" Netrw Utility Functions: {{{1 +" netrw#Explore: launch the local browser in the directory of the current file {{{2 +" indx: == -1: Nexplore +" == -2: Pexplore +" == +: this is overloaded: +" * If Nexplore/Pexplore is in use, then this refers to the +" indx'th item in the w:netrw_explore_list[] of items which +" matched the */pattern **/pattern *//pattern **//pattern +" * If Hexplore or Vexplore, then this will override +" g:netrw_winsize to specify the qty of rows or columns the +" newly split window should have. +" dosplit==0: the window will be split iff the current file has been modified and hidden not set +" dosplit==1: the window will be split before running the local browser +" style == 0: Explore style == 1: Explore! +" == 2: Hexplore style == 3: Hexplore! +" == 4: Vexplore style == 5: Vexplore! +" == 6: Texplore +function netrw#Explore(indx,dosplit,style,...) + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + + " record current file for Rexplore's benefit + if &ft != "netrw" + let w:netrw_rexfile= expand("%:p") + endif + + " record current directory + let curdir = simplify(b:netrw_curdir) + if !g:netrw_cygwin && has("win32") + let curdir= substitute(curdir,'\','/','g') + endif + let curfiledir = substitute(expand("%:p"),'^\(.*[/\\]\)[^/\\]*$','\1','e') + if &buftype == "terminal" + let curfiledir = curdir + endif + + " using completion, directories with spaces in their names (thanks, Bill Gates, for a truly dumb idea) + " will end up with backslashes here. Solution: strip off backslashes that precede white space and + " try Explore again. + if a:0 > 0 + if a:1 =~ "\\\s" && !filereadable(s:NetrwFile(a:1)) && !isdirectory(s:NetrwFile(a:1)) + let a1 = substitute(a:1, '\\\(\s\)', '\1', 'g') + if a1 != a:1 + call netrw#Explore(a:indx, a:dosplit, a:style, a1) + return + endif + endif + endif + + " save registers + if has("clipboard") && g:netrw_clipboard + sil! let keepregstar = @* + sil! let keepregplus = @+ + endif + sil! let keepregslash= @/ + + " if dosplit + " -or- buffer is not a terminal AND file has been modified AND file not hidden when abandoned + " -or- Texplore used + if a:dosplit || (&buftype != "terminal" && &modified && &hidden == 0 && &bufhidden != "hide") || a:style == 6 + call s:SaveWinVars() + let winsz= g:netrw_winsize + if a:indx > 0 + let winsz= a:indx + endif + + if a:style == 0 " Explore, Sexplore + let winsz= (winsz > 0)? (winsz*winheight(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "noswapfile ".(g:netrw_alto ? "below " : "above ").winsz."wincmd s" + + elseif a:style == 1 " Explore!, Sexplore! + let winsz= (winsz > 0)? (winsz*winwidth(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "keepalt noswapfile ".(g:netrw_altv ? "rightbelow " : "leftabove ").winsz."wincmd v" + + elseif a:style == 2 " Hexplore + let winsz= (winsz > 0)? (winsz*winheight(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "keepalt noswapfile ".(g:netrw_alto ? "below " : "above ").winsz."wincmd s" + + elseif a:style == 3 " Hexplore! + let winsz= (winsz > 0)? (winsz*winheight(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "keepalt noswapfile ".(!g:netrw_alto ? "below " : "above ").winsz."wincmd s" + + elseif a:style == 4 " Vexplore + let winsz= (winsz > 0)? (winsz*winwidth(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "keepalt noswapfile ".(g:netrw_altv ? "rightbelow " : "leftabove ").winsz."wincmd v" + + elseif a:style == 5 " Vexplore! + let winsz= (winsz > 0)? (winsz*winwidth(0))/100 : -winsz + if winsz == 0|let winsz= ""|endif + exe "keepalt noswapfile ".(!g:netrw_altv ? "rightbelow " : "leftabove ").winsz."wincmd v" + + elseif a:style == 6 " Texplore + call s:SaveBufVars() + exe "keepalt tabnew ".fnameescape(curdir) + call s:RestoreBufVars() + endif + call s:RestoreWinVars() + endif + NetrwKeepj norm! 0 + + if a:0 > 0 + if a:1 =~ '^\~' && (has("unix") || g:netrw_cygwin) + let dirname= simplify(substitute(a:1,'\~',expand("$HOME"),'')) + elseif a:1 == '.' + let dirname= simplify(exists("b:netrw_curdir")? b:netrw_curdir : getcwd()) + if dirname !~ '/$' + let dirname= dirname."/" + endif + elseif a:1 =~ '\$' + let dirname= simplify(expand(a:1)) + elseif a:1 !~ '^\*\{1,2}/' && a:1 !~ '^\a\{3,}://' + let dirname= simplify(a:1) + else + let dirname= a:1 + endif + else + " clear explore + call s:NetrwClearExplore() + return + endif + + if dirname =~ '\.\./\=$' + let dirname= simplify(fnamemodify(dirname,':p:h')) + elseif dirname =~ '\.\.' || dirname == '.' + let dirname= simplify(fnamemodify(dirname,':p')) + endif + + if dirname =~ '^\*//' + " starpat=1: Explore *//pattern (current directory only search for files containing pattern) + let pattern= substitute(dirname,'^\*//\(.*\)$','\1','') + let starpat= 1 + if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif + + elseif dirname =~ '^\*\*//' + " starpat=2: Explore **//pattern (recursive descent search for files containing pattern) + let pattern= substitute(dirname,'^\*\*//','','') + let starpat= 2 + + elseif dirname =~ '/\*\*/' + " handle .../**/.../filepat + let prefixdir= substitute(dirname,'^\(.\{-}\)\*\*.*$','\1','') + if prefixdir =~ '^/' || (prefixdir =~ '^\a:/' && has("win32")) + let b:netrw_curdir = prefixdir + else + let b:netrw_curdir= getcwd().'/'.prefixdir + endif + let dirname= substitute(dirname,'^.\{-}\(\*\*/.*\)$','\1','') + let starpat= 4 + + elseif dirname =~ '^\*/' + " case starpat=3: Explore */filepat (search in current directory for filenames matching filepat) + let starpat= 3 + + elseif dirname=~ '^\*\*/' + " starpat=4: Explore **/filepat (recursive descent search for filenames matching filepat) + let starpat= 4 + + else + let starpat= 0 + endif + + if starpat == 0 && a:indx >= 0 + " [Explore Hexplore Vexplore Sexplore] [dirname] + if dirname == "" + let dirname= curfiledir + endif + if dirname =~# '^scp://' || dirname =~ '^ftp://' + call netrw#Nread(2,dirname) + else + if dirname == "" + let dirname= getcwd() + elseif has("win32") && !g:netrw_cygwin + " Windows : check for a drive specifier, or else for a remote share name ('\\Foo' or '//Foo', + " depending on whether backslashes have been converted to forward slashes by earlier code). + if dirname !~ '^[a-zA-Z]:' && dirname !~ '^\\\\\w\+' && dirname !~ '^//\w\+' + let dirname= b:netrw_curdir."/".dirname + endif + elseif dirname !~ '^/' + let dirname= b:netrw_curdir."/".dirname + endif + call netrw#LocalBrowseCheck(dirname) + endif + if exists("w:netrw_bannercnt") + " done to handle P08-Ingelrest. :Explore will _Always_ go to the line just after the banner. + " If one wants to return the same place in the netrw window, use :Rex instead. + exe w:netrw_bannercnt + endif + + + " starpat=1: Explore *//pattern (current directory only search for files containing pattern) + " starpat=2: Explore **//pattern (recursive descent search for files containing pattern) + " starpat=3: Explore */filepat (search in current directory for filenames matching filepat) + " starpat=4: Explore **/filepat (recursive descent search for filenames matching filepat) + elseif a:indx <= 0 + " Nexplore, Pexplore, Explore: handle starpat + if !mapcheck("","n") && !mapcheck("","n") && exists("b:netrw_curdir") + let s:didstarstar= 1 + nnoremap :Pexplore + nnoremap :Nexplore + endif + + if has("path_extra") + if !exists("w:netrw_explore_indx") + let w:netrw_explore_indx= 0 + endif + + let indx = a:indx + + if indx == -1 + " Nexplore + if !exists("w:netrw_explore_list") " sanity check + call netrw#msg#Notify('WARNING', 'using Nexplore or improperly; see help for netrw-starstar') + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash + return + endif + let indx= w:netrw_explore_indx + if indx < 0 | let indx= 0 | endif + if indx >= w:netrw_explore_listlen | let indx= w:netrw_explore_listlen - 1 | endif + let curfile= w:netrw_explore_list[indx] + while indx < w:netrw_explore_listlen && curfile == w:netrw_explore_list[indx] + let indx= indx + 1 + endwhile + if indx >= w:netrw_explore_listlen | let indx= w:netrw_explore_listlen - 1 | endif + + elseif indx == -2 + " Pexplore + if !exists("w:netrw_explore_list") " sanity check + call netrw#msg#Notify('WARNING', 'using Pexplore or improperly; see help for netrw-starstar') + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash + return + endif + let indx= w:netrw_explore_indx + if indx < 0 | let indx= 0 | endif + if indx >= w:netrw_explore_listlen | let indx= w:netrw_explore_listlen - 1 | endif + let curfile= w:netrw_explore_list[indx] + while indx >= 0 && curfile == w:netrw_explore_list[indx] + let indx= indx - 1 + endwhile + if indx < 0 | let indx= 0 | endif + + else + " Explore -- initialize + " build list of files to Explore with Nexplore/Pexplore + NetrwKeepj keepalt call s:NetrwClearExplore() + let w:netrw_explore_indx= 0 + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + + " switch on starpat to build the w:netrw_explore_list of files + if starpat == 1 + " starpat=1: Explore *//pattern (current directory only search for files containing pattern) + try + exe "NetrwKeepj noautocmd vimgrep /".pattern."/gj ".fnameescape(b:netrw_curdir)."/*" + catch /^Vim\%((\a\+)\)\=:E480/ + call netrw#msg#Notify('WARNING', printf("no match with pattern<%s>", pattern)) + return + endtry + let w:netrw_explore_list = s:NetrwExploreListUniq(map(getqflist(),'bufname(v:val.bufnr)')) + if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif + + elseif starpat == 2 + " starpat=2: Explore **//pattern (recursive descent search for files containing pattern) + try + exe "sil NetrwKeepj noautocmd keepalt vimgrep /".pattern."/gj "."**/*" + catch /^Vim\%((\a\+)\)\=:E480/ + call netrw#msg#Notify('WARNING', printf('no files matched pattern<%s>', pattern)) + if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash + return + endtry + let s:netrw_curdir = b:netrw_curdir + let w:netrw_explore_list = getqflist() + let w:netrw_explore_list = s:NetrwExploreListUniq(map(w:netrw_explore_list,'s:netrw_curdir."/".bufname(v:val.bufnr)')) + if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif + + elseif starpat == 3 + " starpat=3: Explore */filepat (search in current directory for filenames matching filepat) + let filepat= substitute(dirname,'^\*/','','') + let filepat= substitute(filepat,'^[%#<]','\\&','') + let w:netrw_explore_list= s:NetrwExploreListUniq(split(expand(b:netrw_curdir."/".filepat),'\n')) + if &hls | let keepregslash= s:ExplorePatHls(filepat) | endif + + elseif starpat == 4 + " starpat=4: Explore **/filepat (recursive descent search for filenames matching filepat) + let w:netrw_explore_list= s:NetrwExploreListUniq(split(expand(b:netrw_curdir."/".dirname),'\n')) + if &hls | let keepregslash= s:ExplorePatHls(dirname) | endif + endif " switch on starpat to build w:netrw_explore_list + + let w:netrw_explore_listlen = len(w:netrw_explore_list) + + if w:netrw_explore_listlen == 0 || (w:netrw_explore_listlen == 1 && w:netrw_explore_list[0] =~ '\*\*\/') + call netrw#msg#Notify('WARNING', 'no files matched') + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash + return + endif + endif " if indx ... endif + + " NetrwStatusLine support - for exploring support + let w:netrw_explore_indx= indx + + " wrap the indx around, but issue a note + if indx >= w:netrw_explore_listlen || indx < 0 + let indx = (indx < 0)? ( w:netrw_explore_listlen - 1 ) : 0 + let w:netrw_explore_indx= indx + call netrw#msg#Notify('NOTE', 'no more files match Explore pattern') + endif + + exe "let dirfile= w:netrw_explore_list[".indx."]" + let newdir= substitute(dirfile,'/[^/]*$','','e') + + call netrw#LocalBrowseCheck(newdir) + if !exists("w:netrw_liststyle") + let w:netrw_liststyle= g:netrw_liststyle + endif + if w:netrw_liststyle == s:THINLIST || w:netrw_liststyle == s:LONGLIST + keepalt NetrwKeepj call search('^'.substitute(dirfile,"^.*/","","").'\>',"W") + else + keepalt NetrwKeepj call search('\<'.substitute(dirfile,"^.*/","","").'\>',"w") + endif + let w:netrw_explore_mtchcnt = indx + 1 + let w:netrw_explore_bufnr = bufnr("%") + let w:netrw_explore_line = line(".") + keepalt NetrwKeepj call s:SetupNetrwStatusLine('%f %h%m%r%=%9*%{NetrwStatusLine()}') + + else + call netrw#msg#Notify('WARNING', 'your vim needs the +path_extra feature for Exploring with **!') + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash + return + endif + + else + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && dirname =~ '/' + sil! unlet w:netrw_treedict + sil! unlet w:netrw_treetop + endif + let newdir= dirname + if !exists("b:netrw_curdir") + NetrwKeepj call netrw#LocalBrowseCheck(getcwd()) + else + NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,newdir,0)) + endif + endif + + " visual display of **/ **// */ Exploration files + if exists("w:netrw_explore_indx") && exists("b:netrw_curdir") + if !exists("s:explore_prvdir") || s:explore_prvdir != b:netrw_curdir + " only update match list when current directory isn't the same as before + let s:explore_prvdir = b:netrw_curdir + let s:explore_match = "" + let dirlen = strlen(b:netrw_curdir) + if b:netrw_curdir !~ '/$' + let dirlen= dirlen + 1 + endif + let prvfname= "" + for fname in w:netrw_explore_list + if fname =~ '^'.b:netrw_curdir + if s:explore_match == "" + let s:explore_match= '\<'.escape(strpart(fname,dirlen),g:netrw_markfileesc).'\>' + else + let s:explore_match= s:explore_match.'\|\<'.escape(strpart(fname,dirlen),g:netrw_markfileesc).'\>' + endif + elseif fname !~ '^/' && fname != prvfname + if s:explore_match == "" + let s:explore_match= '\<'.escape(fname,g:netrw_markfileesc).'\>' + else + let s:explore_match= s:explore_match.'\|\<'.escape(fname,g:netrw_markfileesc).'\>' + endif + endif + let prvfname= fname + endfor + if has("syntax") && exists("g:syntax_on") && g:syntax_on + exe "2match netrwMarkFile /".s:explore_match."/" + endif + endif + echo "==Pexplore ==Nexplore" + else + 2match none + if exists("s:explore_match") | unlet s:explore_match | endif + if exists("s:explore_prvdir") | unlet s:explore_prvdir | endif + endif + + " since Explore may be used to initialize netrw's browser, + " there's no danger of a late FocusGained event on initialization. + " Consequently, set s:netrw_events to 2. + let s:netrw_events= 2 + if has("clipboard") && g:netrw_clipboard + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + sil! let @/ = keepregslash +endfunction + +" netrw#Lexplore: toggle Explorer window, keeping it on the left of the current tab {{{2 +" Uses g:netrw_chgwin : specifies the window where Lexplore files are to be opened +" t:netrw_lexposn : winsaveview() output (used on Lexplore window) +" t:netrw_lexbufnr: the buffer number of the Lexplore buffer (internal to this function) +" s:lexplore_win : window number of Lexplore window (serves to indicate which window is a Lexplore window) +" w:lexplore_buf : buffer number of Lexplore window (serves to indicate which window is a Lexplore window) +function netrw#Lexplore(count,rightside,...) + let curwin= winnr() + + if a:0 > 0 && a:1 != "" + " if a netrw window is already on the left-side of the tab + " and a directory has been specified, explore with that + " directory. + let a1 = expand(a:1) + exe "1wincmd w" + if &ft == "netrw" + exe "Explore ".fnameescape(a1) + exe curwin."wincmd w" + let s:lexplore_win= curwin + let w:lexplore_buf= bufnr("%") + if exists("t:netrw_lexposn") + unlet t:netrw_lexposn + endif + return + endif + exe curwin."wincmd w" + else + let a1= "" + endif + + if exists("t:netrw_lexbufnr") + " check if t:netrw_lexbufnr refers to a netrw window + let lexwinnr = bufwinnr(t:netrw_lexbufnr) + else + let lexwinnr= 0 + endif + + if lexwinnr > 0 + " close down netrw explorer window + exe lexwinnr."wincmd w" + let g:netrw_winsize = -winwidth(0) + let t:netrw_lexposn = winsaveview() + close + if lexwinnr < curwin + let curwin= curwin - 1 + endif + if lexwinnr != curwin + exe curwin."wincmd w" + endif + unlet t:netrw_lexbufnr + + else + " open netrw explorer window + exe "1wincmd w" + let keep_altv = g:netrw_altv + let g:netrw_altv = 0 + if a:count != 0 + let netrw_winsize = g:netrw_winsize + let g:netrw_winsize = a:count + endif + let curfile= expand("%") + exe (a:rightside? "botright" : "topleft")." vertical ".((g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize) . " new" + if a:0 > 0 && a1 != "" + call netrw#Explore(0,0,0,a1) + exe "Explore ".fnameescape(a1) + elseif curfile =~ '^\a\{3,}://' + call netrw#Explore(0,0,0,substitute(curfile,'[^/\\]*$','','')) + else + call netrw#Explore(0,0,0,".") + endif + if a:count != 0 + let g:netrw_winsize = netrw_winsize + endif + setlocal winfixwidth + let g:netrw_altv = keep_altv + let t:netrw_lexbufnr = bufnr("%") + " done to prevent build-up of hidden buffers due to quitting and re-invocation of :Lexplore. + " Since the intended use of :Lexplore is to have an always-present explorer window, the extra + " effort to prevent mis-use of :Lex is warranted. + set bh=wipe + if exists("t:netrw_lexposn") + call winrestview(t:netrw_lexposn) + unlet t:netrw_lexposn + endif + endif + + " set up default window for editing via + if exists("g:netrw_chgwin") && g:netrw_chgwin == -1 + if a:rightside + let g:netrw_chgwin= 1 + else + let g:netrw_chgwin= 2 + endif + endif + +endfunction + +" netrw#MakeTgt: make a target out of the directory name provided {{{2 +function netrw#MakeTgt(dname) + " simplify the target (eg. /abc/def/../ghi -> /abc/ghi) + let svpos = winsaveview() + let s:netrwmftgt_islocal= (a:dname !~ '^\a\{3,}://') + if s:netrwmftgt_islocal + let netrwmftgt= simplify(a:dname) + else + let netrwmftgt= a:dname + endif + if exists("s:netrwmftgt") && netrwmftgt == s:netrwmftgt + " re-selected target, so just clear it + unlet s:netrwmftgt s:netrwmftgt_islocal + else + let s:netrwmftgt= netrwmftgt + endif + if g:netrw_fastbrowse <= 1 + call s:NetrwRefresh((b:netrw_curdir !~ '\a\{3,}://'),b:netrw_curdir) + endif + call winrestview(svpos) +endfunction + +" netrw#Obtain: {{{2 +" netrw#Obtain(islocal,fname[,tgtdirectory]) +" islocal=0 obtain from remote source +" =1 obtain from local source +" fname : a filename or a list of filenames +" tgtdir : optional place where files are to go (not present, uses getcwd()) +function netrw#Obtain(islocal,fname,...) + " NetrwStatusLine support - for obtaining support + + if type(a:fname) == 1 + let fnamelist= [ a:fname ] + elseif type(a:fname) == 3 + let fnamelist= a:fname + else + call netrw#msg#Notify('ERROR', 'attempting to use NetrwObtain on something not a filename or a list') + return + endif + if a:0 > 0 + let tgtdir= a:1 + else + let tgtdir= getcwd() + endif + + if exists("b:netrw_islocal") && b:netrw_islocal + " obtain a file from local b:netrw_curdir to (local) tgtdir + if exists("b:netrw_curdir") && getcwd() != b:netrw_curdir + let topath = netrw#fs#ComposePath(tgtdir,"") + if has("win32") && !g:netrw_cygwin + " transfer files one at time + for fname in fnamelist + call system(g:netrw_localcopycmd.g:netrw_localcopycmdopt." ".netrw#os#Escape(fname)." ".netrw#os#Escape(topath)) + if v:shell_error != 0 + call netrw#msg#Notify('WARNING', printf('consider setting g:netrw_localcopycmd<%s> to something that works', g:netrw_localcopycmd)) + return + endif + endfor + else + " transfer files with one command + let filelist= join(map(deepcopy(fnamelist),"netrw#os#Escape(v:val)")) + call system(g:netrw_localcopycmd.g:netrw_localcopycmdopt." ".filelist." ".netrw#os#Escape(topath)) + if v:shell_error != 0 + call netrw#msg#Notify('WARNING', printf('consider setting g:netrw_localcopycmd<%s> to something that works', g:netrw_localcopycmd)) + return + endif + endif + elseif !exists("b:netrw_curdir") + call netrw#msg#Notify('ERROR', "local browsing directory doesn't exist!") + else + call netrw#msg#Notify('WARNING', 'local browsing directory and current directory are identical') + endif + + else + " obtain files from remote b:netrw_curdir to local tgtdir + if type(a:fname) == 1 + call s:SetupNetrwStatusLine('%f %h%m%r%=%9*Obtaining '.a:fname) + endif + call s:NetrwMethod(b:netrw_curdir) + if !s:NetrwValidateHostname(g:netrw_machine) + call netrw#msg#Notify('ERROR', 'Rejecting invalid hostname: <%s>', g:netrw_machine) + return + endif + + if b:netrw_method == 4 + " obtain file using scp + if exists("g:netrw_port") && g:netrw_port != "" + let useport= " ".g:netrw_scpport." ".g:netrw_port + else + let useport= "" + endif + if b:netrw_fname =~ '/' + let path= substitute(b:netrw_fname,'^\(.*/\).\{-}$','\1','') + else + let path= "" + endif + let filelist= join(map(deepcopy(fnamelist),'escape(netrw#os#Escape(g:netrw_machine.":".path.v:val,1)," ")')) + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_scp_cmd.netrw#os#Escape(useport,1)." ".filelist." ".netrw#os#Escape(tgtdir,1)) + + elseif b:netrw_method == 2 + " obtain file using ftp + .netrc + call s:SaveBufVars()|sil NetrwKeepj new|call s:RestoreBufVars() + let tmpbufnr= bufnr("%") + setl ff=unix + if exists("g:netrw_ftpmode") && g:netrw_ftpmode != "" + NetrwKeepj put =g:netrw_ftpmode + endif + + if exists("b:netrw_fname") && b:netrw_fname != "" + call setline(line("$")+1,'cd "'.b:netrw_fname.'"') + endif + + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + for fname in fnamelist + call setline(line("$")+1,'get "'.fname.'"') + endfor + if exists("g:netrw_port") && g:netrw_port != "" + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)." ".netrw#os#Escape(g:netrw_port,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)) + endif + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" && getline(1) !~ '^Trying ' + let debugkeep= &debug + setl debug=msg + call netrw#msg#Notify('ERROR', getline(1)) + let &debug= debugkeep + endif + + elseif b:netrw_method == 3 + " obtain with ftp + machine, id, passwd, and fname (ie. no .netrc) + call s:SaveBufVars()|sil NetrwKeepj new|call s:RestoreBufVars() + let tmpbufnr= bufnr("%") + setl ff=unix + + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + + if exists("g:netrw_uid") && g:netrw_uid != "" + if exists("g:netrw_ftp") && g:netrw_ftp == 1 + NetrwKeepj put =g:netrw_uid + if exists("s:netrw_passwd") && s:netrw_passwd != "" + NetrwKeepj put ='\"'.s:netrw_passwd.'\"' + endif + elseif exists("s:netrw_passwd") + NetrwKeepj put ='user \"'.g:netrw_uid.'\" \"'.s:netrw_passwd.'\"' + endif + endif + + if exists("g:netrw_ftpmode") && g:netrw_ftpmode != "" + NetrwKeepj put =g:netrw_ftpmode + endif + + if exists("b:netrw_fname") && b:netrw_fname != "" + NetrwKeepj call setline(line("$")+1,'cd "'.b:netrw_fname.'"') + endif + + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + for fname in fnamelist + NetrwKeepj call setline(line("$")+1,'get "'.fname.'"') + endfor + + " perform ftp: + " -i : turns off interactive prompting from ftp + " -n unix : DON'T use <.netrc>, even though it exists + " -n win32: quit being obnoxious about password + " Note: using "_dd to delete to the black hole register; avoids messing up @@ + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." ".g:netrw_ftp_options) + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" + call netrw#msg#Notify('ERROR', getline(1)) + endif + + elseif b:netrw_method == 9 + " obtain file using sftp + if a:fname =~ '/' + let localfile= substitute(a:fname,'^.*/','','') + else + let localfile= a:fname + endif + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_sftp_cmd." ".netrw#os#Escape(g:netrw_machine.":".b:netrw_fname,1).netrw#os#Escape(localfile)." ".netrw#os#Escape(tgtdir)) + + elseif !exists("b:netrw_method") || b:netrw_method < 0 + " probably a badly formed url; protocol not recognized + return + + else + " protocol recognized but not supported for Obtain (yet?) + call netrw#msg#Notify('ERROR', 'current protocol not supported for obtaining file') + return + endif + + " restore status line + if type(a:fname) == 1 && exists("s:netrw_users_stl") + NetrwKeepj call s:SetupNetrwStatusLine(s:netrw_users_stl) + endif + + endif + + " cleanup + if exists("tmpbufnr") + if bufnr("%") != tmpbufnr + exe tmpbufnr."bw!" + else + q! + endif + endif + +endfunction + +" netrw#Nread: save position, call netrw#NetRead(), and restore position {{{2 +function netrw#Nread(mode,fname) + let svpos= winsaveview() + call netrw#NetRead(a:mode,a:fname) + call winrestview(svpos) + + if exists("w:netrw_liststyle") && w:netrw_liststyle != s:TREELIST + if exists("w:netrw_bannercnt") + " start with cursor just after the banner + exe w:netrw_bannercnt + endif + endif +endfunction + +" s:NetrwOptionsSave: save options prior to setting to "netrw-buffer-standard" form {{{2 +" Options get restored by s:NetrwOptionsRestore() +" +" Option handling: +" * save user's options (s:NetrwOptionsSave) +" * set netrw-safe options (s:NetrwOptionsSafe) +" - change an option only when user option != safe option (s:netrwSetSafeSetting) +" * restore user's options (s:netrwOPtionsRestore) +" - restore a user option when != safe option (s:NetrwRestoreSetting) +" vt: (variable type) normally its either "w:" or "s:" +function s:NetrwOptionsSave(vt) + + if !exists("{a:vt}netrw_optionsave") + let {a:vt}netrw_optionsave= 1 + else + return + endif + + " Save current settings and current directory + let s:yykeep = @@ + if exists("&l:acd")|let {a:vt}netrw_acdkeep = &l:acd|endif + let {a:vt}netrw_aikeep = &l:ai + let {a:vt}netrw_awkeep = &l:aw + let {a:vt}netrw_bhkeep = &l:bh + let {a:vt}netrw_blkeep = &l:bl + let {a:vt}netrw_btkeep = &l:bt + let {a:vt}netrw_bombkeep = &l:bomb + let {a:vt}netrw_cedit = &cedit + let {a:vt}netrw_cikeep = &l:ci + let {a:vt}netrw_cinkeep = &l:cin + let {a:vt}netrw_cinokeep = &l:cino + let {a:vt}netrw_comkeep = &l:com + let {a:vt}netrw_cpokeep = &l:cpo + let {a:vt}netrw_cuckeep = &l:cuc + let {a:vt}netrw_culkeep = &l:cul + let {a:vt}netrw_diffkeep = &l:diff + let {a:vt}netrw_fenkeep = &l:fen + if !exists("g:netrw_ffkeep") || g:netrw_ffkeep + let {a:vt}netrw_ffkeep = &l:ff + endif + let {a:vt}netrw_fokeep = &l:fo " formatoptions + let {a:vt}netrw_gdkeep = &l:gd " gdefault + let {a:vt}netrw_gokeep = &go " guioptions + let {a:vt}netrw_hidkeep = &l:hidden + let {a:vt}netrw_imkeep = &l:im + let {a:vt}netrw_iskkeep = &l:isk + let {a:vt}netrw_lines = &lines + let {a:vt}netrw_lskeep = &l:ls + let {a:vt}netrw_makeep = &l:ma + let {a:vt}netrw_magickeep = &l:magic + let {a:vt}netrw_modkeep = &l:mod + let {a:vt}netrw_nukeep = &l:nu + let {a:vt}netrw_rnukeep = &l:rnu + let {a:vt}netrw_repkeep = &l:report + let {a:vt}netrw_rokeep = &l:ro + let {a:vt}netrw_selkeep = &l:sel + let {a:vt}netrw_spellkeep = &l:spell + if !g:netrw_use_noswf + let {a:vt}netrw_swfkeep = &l:swf + endif + let {a:vt}netrw_tskeep = &l:ts + let {a:vt}netrw_twkeep = &l:tw " textwidth + let {a:vt}netrw_wigkeep = &l:wig " wildignore + let {a:vt}netrw_wrapkeep = &l:wrap + let {a:vt}netrw_writekeep = &l:write + + " save a few selected netrw-related variables + if g:netrw_keepdir + let {a:vt}netrw_dirkeep = getcwd() + endif + if has("clipboard") && g:netrw_clipboard + sil! let {a:vt}netrw_starkeep = @* + sil! let {a:vt}netrw_pluskeep = @+ + endif + sil! let {a:vt}netrw_slashkeep= @/ + +endfunction + +" s:NetrwOptionsSafe: sets options to help netrw do its job {{{2 +" Use s:NetrwSaveOptions() to save user settings +" Use s:NetrwOptionsRestore() to restore user settings +function s:NetrwOptionsSafe(islocal) + if exists("+acd") | call s:NetrwSetSafeSetting("&l:acd",0)|endif + call s:NetrwSetSafeSetting("&l:ai",0) + call s:NetrwSetSafeSetting("&l:aw",0) + call s:NetrwSetSafeSetting("&l:bl",0) + call s:NetrwSetSafeSetting("&l:bomb",0) + if a:islocal + call s:NetrwSetSafeSetting("&l:bt","nofile") + else + call s:NetrwSetSafeSetting("&l:bt","acwrite") + endif + call s:NetrwSetSafeSetting("&l:ci",0) + call s:NetrwSetSafeSetting("&l:cin",0) + if g:netrw_fastbrowse > a:islocal + call s:NetrwSetSafeSetting("&l:bh","hide") + else + call s:NetrwSetSafeSetting("&l:bh","delete") + endif + call s:NetrwSetSafeSetting("&l:cino","") + call s:NetrwSetSafeSetting("&l:com","") + if &cpo =~ 'a' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'a','','g')) | endif + if &cpo =~ 'A' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'A','','g')) | endif + setl fo=nroql2 + if &go =~ 'a' | set go-=a | endif + if &go =~ 'A' | set go-=A | endif + if &go =~ 'P' | set go-=P | endif + call s:NetrwSetSafeSetting("&l:hid",0) + call s:NetrwSetSafeSetting("&l:im",0) + setl isk+=@ isk+=* isk+=/ + call s:NetrwSetSafeSetting("&l:magic",1) + if g:netrw_use_noswf + call s:NetrwSetSafeSetting("swf",0) + endif + call s:NetrwSetSafeSetting("&l:report",10000) + call s:NetrwSetSafeSetting("&l:sel","inclusive") + call s:NetrwSetSafeSetting("&l:spell",0) + call s:NetrwSetSafeSetting("&l:tw",0) + call s:NetrwSetSafeSetting("&l:wig","") + setl cedit& + + " set up cuc and cul based on g:netrw_cursor and listing style + " COMBAK -- cuc cul related + call s:NetrwCursor(0) + + " allow the user to override safe options + if &ft == "netrw" + keepalt NetrwKeepj doau FileType netrw + endif + +endfunction + +" s:NetrwOptionsRestore: restore options (based on prior s:NetrwOptionsSave) {{{2 +function s:NetrwOptionsRestore(vt) + if !exists("{a:vt}netrw_optionsave") + " filereadable() returns zero for remote files (e.g. scp://user@localhost//etc/fstab) + " Note: @ may not be in 'isfname', so '^\w\+://\f\+/' may not match + if filereadable(expand("%")) || expand("%") =~# '^\w\+://\f\+' + filetype detect + else + setl ft=netrw + endif + return + endif + unlet {a:vt}netrw_optionsave + + if exists("+acd") + if exists("{a:vt}netrw_acdkeep") + let curdir = getcwd() + let &l:acd = {a:vt}netrw_acdkeep + unlet {a:vt}netrw_acdkeep + if &l:acd + call s:NetrwLcd(curdir) + endif + endif + endif + call s:NetrwRestoreSetting(a:vt."netrw_aikeep","&l:ai") + call s:NetrwRestoreSetting(a:vt."netrw_awkeep","&l:aw") + call s:NetrwRestoreSetting(a:vt."netrw_blkeep","&l:bl") + call s:NetrwRestoreSetting(a:vt."netrw_btkeep","&l:bt") + call s:NetrwRestoreSetting(a:vt."netrw_bombkeep","&l:bomb") + call s:NetrwRestoreSetting(a:vt."netrw_cedit","&cedit") + call s:NetrwRestoreSetting(a:vt."netrw_cikeep","&l:ci") + call s:NetrwRestoreSetting(a:vt."netrw_cinkeep","&l:cin") + call s:NetrwRestoreSetting(a:vt."netrw_cinokeep","&l:cino") + call s:NetrwRestoreSetting(a:vt."netrw_comkeep","&l:com") + call s:NetrwRestoreSetting(a:vt."netrw_cpokeep","&l:cpo") + call s:NetrwRestoreSetting(a:vt."netrw_diffkeep","&l:diff") + call s:NetrwRestoreSetting(a:vt."netrw_fenkeep","&l:fen") + if exists("g:netrw_ffkeep") && g:netrw_ffkeep + call s:NetrwRestoreSetting(a:vt."netrw_ffkeep")","&l:ff") + endif + call s:NetrwRestoreSetting(a:vt."netrw_fokeep" ,"&l:fo") + call s:NetrwRestoreSetting(a:vt."netrw_gdkeep" ,"&l:gd") + call s:NetrwRestoreSetting(a:vt."netrw_gokeep" ,"&go") + call s:NetrwRestoreSetting(a:vt."netrw_hidkeep" ,"&l:hidden") + call s:NetrwRestoreSetting(a:vt."netrw_imkeep" ,"&l:im") + call s:NetrwRestoreSetting(a:vt."netrw_iskkeep" ,"&l:isk") + call s:NetrwRestoreSetting(a:vt."netrw_lines" ,"&lines") + call s:NetrwRestoreSetting(a:vt."netrw_lskeep" ,"&l:ls") + call s:NetrwRestoreSetting(a:vt."netrw_makeep" ,"&l:ma") + call s:NetrwRestoreSetting(a:vt."netrw_magickeep","&l:magic") + call s:NetrwRestoreSetting(a:vt."netrw_modkeep" ,"&l:mod") + call s:NetrwRestoreSetting(a:vt."netrw_nukeep" ,"&l:nu") + call s:NetrwRestoreSetting(a:vt."netrw_rnukeep" ,"&l:rnu") + call s:NetrwRestoreSetting(a:vt."netrw_repkeep" ,"&l:report") + call s:NetrwRestoreSetting(a:vt."netrw_rokeep" ,"&l:ro") + call s:NetrwRestoreSetting(a:vt."netrw_selkeep" ,"&l:sel") + call s:NetrwRestoreSetting(a:vt."netrw_spellkeep","&l:spell") + call s:NetrwRestoreSetting(a:vt."netrw_twkeep" ,"&l:tw") + call s:NetrwRestoreSetting(a:vt."netrw_wigkeep" ,"&l:wig") + call s:NetrwRestoreSetting(a:vt."netrw_wrapkeep" ,"&l:wrap") + call s:NetrwRestoreSetting(a:vt."netrw_writekeep","&l:write") + call s:NetrwRestoreSetting("s:yykeep","@@") + " former problem: start with liststyle=0; press : result, following line resets l:ts. + " Fixed; in s:PerformListing, when w:netrw_liststyle is s:LONGLIST, will use a printf to pad filename with spaces + " rather than by appending a tab which previously was using "&ts" to set the desired spacing. (Sep 28, 2018) + call s:NetrwRestoreSetting(a:vt."netrw_tskeep","&l:ts") + + if exists("{a:vt}netrw_swfkeep") + if &directory == "" + " user hasn't specified a swapfile directory; + " netrw will temporarily set the swapfile directory + " to the current directory as returned by getcwd(). + let &l:directory= getcwd() + sil! let &l:swf = {a:vt}netrw_swfkeep + setl directory= + unlet {a:vt}netrw_swfkeep + elseif &l:swf != {a:vt}netrw_swfkeep + if !g:netrw_use_noswf + " following line causes a Press ENTER in windows -- can't seem to work around it!!! + sil! let &l:swf= {a:vt}netrw_swfkeep + endif + unlet {a:vt}netrw_swfkeep + endif + endif + if exists("{a:vt}netrw_dirkeep") && isdirectory(s:NetrwFile({a:vt}netrw_dirkeep)) && g:netrw_keepdir + let dirkeep = substitute({a:vt}netrw_dirkeep,'\\','/','g') + if exists("{a:vt}netrw_dirkeep") + call s:NetrwLcd(dirkeep) + unlet {a:vt}netrw_dirkeep + endif + endif + if has("clipboard") && g:netrw_clipboard + call s:NetrwRestoreSetting(a:vt."netrw_starkeep","@*") + call s:NetrwRestoreSetting(a:vt."netrw_pluskeep","@+") + endif + call s:NetrwRestoreSetting(a:vt."netrw_slashkeep","@/") + + " Moved the filetype detect here from NetrwGetFile() because remote files + " were having their filetype detect-generated settings overwritten by + " NetrwOptionRestore. + if &ft != "netrw" + filetype detect + endif +endfunction + +" s:NetrwSetSafeSetting: sets an option to a safe setting {{{2 +" but only when the options' value and the safe setting differ +" Doing this means that netrw will not come up as having changed a +" setting last when it really didn't actually change it. +" +" Called from s:NetrwOptionsSafe +" ex. call s:NetrwSetSafeSetting("&l:sel","inclusive") +function s:NetrwSetSafeSetting(setting,safesetting) + + if a:setting =~ '^&' + exe "let settingval= ".a:setting + + if settingval != a:safesetting + if type(a:safesetting) == 0 + exe "let ".a:setting."=".a:safesetting + elseif type(a:safesetting) == 1 + exe "let ".a:setting."= '".a:safesetting."'" + else + call netrw#msg#Notify('ERROR', printf("(s:NetrwRestoreSetting) doesn't know how to restore %s with a safesetting of type#%s", a:setting, type(a:safesetting))) + endif + endif + endif + +endfunction + +" s:NetrwRestoreSetting: restores specified setting using associated keepvar, {{{2 +" but only if the setting value differs from the associated keepvar. +" Doing this means that netrw will not come up as having changed a +" setting last when it really didn't actually change it. +" +" Used by s:NetrwOptionsRestore() to restore each netrw-sensitive setting +" keepvars are set up by s:NetrwOptionsSave +function s:NetrwRestoreSetting(keepvar,setting) + + " typically called from s:NetrwOptionsRestore + " call s:NetrwRestoreSettings(keep-option-variable-name,'associated-option') + " ex. call s:NetrwRestoreSetting(a:vt."netrw_selkeep","&l:sel") + " Restores option (but only if different) from a:keepvar + if exists(a:keepvar) + exe "let keepvarval= ".a:keepvar + exe "let setting= ".a:setting + + + if setting != keepvarval + if type(a:setting) == 0 + exe "let ".a:setting."= ".keepvarval + elseif type(a:setting) == 1 + exe "let ".a:setting."= '".substitute(keepvarval,"'","''","g")."'" + else + call netrw#msg#Notify('ERROR', printf("(s:NetrwRestoreSetting) doesn't know how to restore %s with a setting of type#%s", a:keepvar, type(a:setting))) + endif + endif + + exe "unlet ".a:keepvar + endif + +endfunction + +" NetrwStatusLine: {{{2 + +function NetrwStatusLine() + if !exists("w:netrw_explore_bufnr") || w:netrw_explore_bufnr != bufnr("%") || !exists("w:netrw_explore_line") || w:netrw_explore_line != line(".") || !exists("w:netrw_explore_list") + let &stl= s:netrw_explore_stl + unlet! w:netrw_explore_bufnr w:netrw_explore_line + return "" + else + return "Match ".w:netrw_explore_mtchcnt." of ".w:netrw_explore_listlen + endif +endfunction + +" Netrw Transfer Functions: {{{1 + +" netrw#NetRead: responsible for reading a file over the net {{{2 +" mode: =0 read remote file and insert before current line +" =1 read remote file and insert after current line +" =2 replace with remote file +" =3 obtain file, but leave in temporary format +function netrw#NetRead(mode,...) + + " NetRead: save options {{{3 + call s:NetrwOptionsSave("w:") + call s:NetrwOptionsSafe(0) + call s:RestoreCursorline() + " NetrwSafeOptions sets a buffer up for a netrw listing, which includes buflisting off. + " However, this setting is not wanted for a remote editing session. The buffer should be "nofile", still. + setl bl + + " NetRead: interpret mode into a readcmd {{{3 + if a:mode == 0 " read remote file before current line + let readcmd = "0r" + elseif a:mode == 1 " read file after current line + let readcmd = "r" + elseif a:mode == 2 " replace with remote file + let readcmd = "%r" + elseif a:mode == 3 " skip read of file (leave as temporary) + let readcmd = "t" + else + exe a:mode + let readcmd = "r" + endif + let ichoice = (a:0 == 0)? 0 : 1 + + " NetRead: get temporary filename {{{3 + let tmpfile= s:GetTempfile("") + if tmpfile == "" + return + endif + + while ichoice <= a:0 + + " attempt to repeat with previous host-file-etc + if exists("b:netrw_lastfile") && a:0 == 0 + let choice = b:netrw_lastfile + let ichoice= ichoice + 1 + + else + exe "let choice= a:" . ichoice + + if match(choice,"?") == 0 + " give help + echomsg 'NetRead Usage:' + echomsg ':Nread machine:path uses rcp' + echomsg ':Nread "machine path" uses ftp with <.netrc>' + echomsg ':Nread "machine id password path" uses ftp' + echomsg ':Nread dav://machine[:port]/path uses cadaver' + echomsg ':Nread fetch://machine/path uses fetch' + echomsg ':Nread ftp://[user@]machine[:port]/path uses ftp autodetects <.netrc>' + echomsg ':Nread http://[user@]machine/path uses http wget' + echomsg ':Nread file:///path uses elinks' + echomsg ':Nread https://[user@]machine/path uses http wget' + echomsg ':Nread rcp://[user@]machine/path uses rcp' + echomsg ':Nread rsync://machine[:port]/path uses rsync' + echomsg ':Nread scp://[user@]machine[[:#]port]/path uses scp' + echomsg ':Nread sftp://[user@]machine[[:#]port]/path uses sftp' + sleep 4 + break + + elseif match(choice,'^"') != -1 + " Reconstruct Choice if choice starts with '"' + if match(choice,'"$') != -1 + " case "..." + let choice= strpart(choice,1,strlen(choice)-2) + else + " case "... ... ..." + let choice = strpart(choice,1,strlen(choice)-1) + let wholechoice = "" + + while match(choice,'"$') == -1 + let wholechoice = wholechoice . " " . choice + let ichoice = ichoice + 1 + if ichoice > a:0 + call netrw#msg#Notify('ERROR', printf('Unbalanced string in filename "%s"', wholechoice)) + return + endif + let choice= a:{ichoice} + endwhile + let choice= strpart(wholechoice,1,strlen(wholechoice)-1) . " " . strpart(choice,0,strlen(choice)-1) + endif + endif + endif + + let ichoice= ichoice + 1 + + " NetRead: Determine method of read (ftp, rcp, etc) {{{3 + call s:NetrwMethod(choice) + if !exists("b:netrw_method") || b:netrw_method < 0 + return + endif + if !s:NetrwValidateHostname(g:netrw_machine) + call netrw#msg#Notify('ERROR', printf('Rejecting invalid hostname: <%s>', g:netrw_machine)) + return + endif + let tmpfile= s:GetTempfile(b:netrw_fname) " apply correct suffix + + " Check whether or not NetrwBrowse() should be handling this request + if choice =~ "^.*[\/]$" && b:netrw_method != 5 && choice !~ '^https\=://' + NetrwKeepj call s:NetrwBrowse(0,choice) + return + endif + + " ============ + " NetRead: Perform Protocol-Based Read {{{3 + " =========================== + if exists("g:netrw_silent") && g:netrw_silent == 0 && &ch >= 1 + echo "(netrw) Processing your read request..." + endif + + "......................................... + " NetRead: (rcp) NetRead Method #1 {{{3 + if b:netrw_method == 1 " read with rcp + " ER: nothing done with g:netrw_uid yet? + " ER: on Win2K" rcp machine[.user]:file tmpfile + " ER: when machine contains '.' adding .user is required (use $USERNAME) + " ER: the tmpfile is full path: rcp sees C:\... as host C + if s:netrw_has_nt_rcp == 1 + if exists("g:netrw_uid") && ( g:netrw_uid != "" ) + let uid_machine = g:netrw_machine .'.'. g:netrw_uid + else + " Any way needed it machine contains a '.' + let uid_machine = g:netrw_machine .'.'. $USERNAME + endif + else + if exists("g:netrw_uid") && ( g:netrw_uid != "" ) + let uid_machine = g:netrw_uid .'@'. g:netrw_machine + else + let uid_machine = g:netrw_machine + endif + endif + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_rcp_cmd." ".s:netrw_rcpmode." ".netrw#os#Escape(uid_machine.":".b:netrw_fname,1)." ".netrw#os#Escape(tmpfile,1)) + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (ftp + <.netrc>) NetRead Method #2 {{{3 + elseif b:netrw_method == 2 " read with ftp + <.netrc> + let netrw_fname= b:netrw_fname + NetrwKeepj call s:SaveBufVars()|new|NetrwKeepj call s:RestoreBufVars() + let filtbuf= bufnr("%") + setl ff=unix + NetrwKeepj put =g:netrw_ftpmode + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + call setline(line("$")+1,'get "'.netrw_fname.'" '.tmpfile) + if exists("g:netrw_port") && g:netrw_port != "" + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)." ".netrw#os#Escape(g:netrw_port,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)) + endif + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" && getline(1) !~ '^Trying ' + let debugkeep = &debug + setl debug=msg + call netrw#msg#Notify('ERROR', getline(1)) + let &debug = debugkeep + endif + call s:SaveBufVars() + keepj bd! + if bufname("%") == "" && getline("$") == "" && line('$') == 1 + " needed when one sources a file in a nolbl setting window via ftp + q! + endif + call s:RestoreBufVars() + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (ftp + machine,id,passwd,filename) NetRead Method #3 {{{3 + elseif b:netrw_method == 3 " read with ftp + machine, id, passwd, and fname + " Construct execution string (four lines) which will be passed through filter + let netrw_fname= escape(b:netrw_fname,g:netrw_fname_escape) + NetrwKeepj call s:SaveBufVars()|new|NetrwKeepj call s:RestoreBufVars() + let filtbuf= bufnr("%") + setl ff=unix + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + + if exists("g:netrw_uid") && g:netrw_uid != "" + if exists("g:netrw_ftp") && g:netrw_ftp == 1 + NetrwKeepj put =g:netrw_uid + if exists("s:netrw_passwd") + NetrwKeepj put ='\"'.s:netrw_passwd.'\"' + endif + elseif exists("s:netrw_passwd") + NetrwKeepj put ='user \"'.g:netrw_uid.'\" \"'.s:netrw_passwd.'\"' + endif + endif + + if exists("g:netrw_ftpmode") && g:netrw_ftpmode != "" + NetrwKeepj put =g:netrw_ftpmode + endif + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + NetrwKeepj put ='get \"'.netrw_fname.'\" '.tmpfile + + " perform ftp: + " -i : turns off interactive prompting from ftp + " -n unix : DON'T use <.netrc>, even though it exists + " -n win32: quit being obnoxious about password + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." ".g:netrw_ftp_options) + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" + call netrw#msg#Notify('ERROR', getline(1)) + endif + call s:SaveBufVars()|keepj bd!|call s:RestoreBufVars() + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (scp) NetRead Method #4 {{{3 + elseif b:netrw_method == 4 " read with scp + if exists("g:netrw_port") && g:netrw_port != "" + let useport= " ".g:netrw_scpport." ".g:netrw_port + else + let useport= "" + endif + " Using UNC notation in windows to get a unix like path. + " This is workaround to avoid mis-handle windows local-path: + if g:netrw_scp_cmd =~ '^scp' && has("win32") + let tmpfile_get = substitute(tr(tmpfile, '\', '/'), '^\(\a\):[/\\]\(.*\)$', '//' .. $COMPUTERNAME .. '/\1$/\2', '') + else + let tmpfile_get = tmpfile + endif + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_scp_cmd.useport." ".escape(netrw#os#Escape(g:netrw_machine.":".b:netrw_fname,1),' ')." ".netrw#os#Escape(tmpfile_get,1)) + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (http) NetRead Method #5 (wget) {{{3 + elseif b:netrw_method == 5 + if g:netrw_http_cmd == "" + call netrw#msg#Notify('ERROR', 'neither the wget nor the fetch command is available') + return + endif + + if match(b:netrw_fname,"#") == -1 || exists("g:netrw_http_xcmd") + " using g:netrw_http_cmd (usually elinks, links, curl, wget, or fetch) + if exists("g:netrw_http_xcmd") + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_http_cmd." ".netrw#os#Escape(b:netrw_http."://".g:netrw_machine.b:netrw_fname,1)." ".g:netrw_http_xcmd." ".netrw#os#Escape(tmpfile,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_http_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(b:netrw_http."://".g:netrw_machine.b:netrw_fname,1)) + endif + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + + else + " wget/curl/fetch plus a jump to an in-page marker (ie. http://abc/def.html#aMarker) + let netrw_html= substitute(b:netrw_fname,"#.*$","","") + let netrw_tag = substitute(b:netrw_fname,"^.*#","","") + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_http_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(b:netrw_http."://".g:netrw_machine.netrw_html,1)) + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + exe 'NetrwKeepj norm! 1G/<\s*a\s*name=\s*"'.netrw_tag.'"/'."\" + endif + let b:netrw_lastfile = choice + setl ro nomod + + "......................................... + " NetRead: (dav) NetRead Method #6 {{{3 + elseif b:netrw_method == 6 + + if !executable(g:netrw_dav_cmd) + call netrw#msg#Notify('ERROR', printf('%s is not executable', g:netrw_dav_cmd)) + return + endif + if g:netrw_dav_cmd =~ "curl" + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_dav_cmd." ".netrw#os#Escape("dav://".g:netrw_machine.b:netrw_fname,1)." ".netrw#os#Escape(tmpfile,1)) + else + " Construct execution string (four lines) which will be passed through filter + let netrw_fname= escape(b:netrw_fname,g:netrw_fname_escape) + new + setl ff=unix + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + if exists("g:netrw_uid") && exists("s:netrw_passwd") && g:netrw_uid != "" + NetrwKeepj put ='user '.g:netrw_uid.' '.s:netrw_passwd + endif + NetrwKeepj put ='get '.netrw_fname.' '.tmpfile + NetrwKeepj put ='quit' + + " perform cadaver operation: + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".g:netrw_dav_cmd) + keepj bd! + endif + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (rsync) NetRead Method #7 {{{3 + elseif b:netrw_method == 7 + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_rsync_cmd." ".netrw#os#Escape(g:netrw_machine.g:netrw_rsync_sep.b:netrw_fname,1)." ".netrw#os#Escape(tmpfile,1)) + let result = s:NetrwGetFile(readcmd,tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (fetch) NetRead Method #8 {{{3 + " fetch://[user@]host[:http]/path + elseif b:netrw_method == 8 + if g:netrw_fetch_cmd == "" + call netrw#msg#Notify('ERROR', "fetch command not available") + return + endif + if exists("g:netrw_option") && g:netrw_option =~ ":https\=" + let netrw_option= "http" + else + let netrw_option= "ftp" + endif + + if exists("g:netrw_uid") && g:netrw_uid != "" && exists("s:netrw_passwd") && s:netrw_passwd != "" + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_fetch_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(netrw_option."://".g:netrw_uid.':'.s:netrw_passwd.'@'.g:netrw_machine."/".b:netrw_fname,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_fetch_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(netrw_option."://".g:netrw_machine."/".b:netrw_fname,1)) + endif + + let result = s:NetrwGetFile(readcmd,tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + setl ro nomod + + "......................................... + " NetRead: (sftp) NetRead Method #9 {{{3 + elseif b:netrw_method == 9 + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_sftp_cmd." ".netrw#os#Escape(g:netrw_machine.":".b:netrw_fname,1)." ".tmpfile) + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: (file) NetRead Method #10 {{{3 + elseif b:netrw_method == 10 && exists("g:netrw_file_cmd") + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_file_cmd." ".netrw#os#Escape(b:netrw_fname,1)." ".tmpfile) + let result = s:NetrwGetFile(readcmd, tmpfile, b:netrw_method) + let b:netrw_lastfile = choice + + "......................................... + " NetRead: Complain {{{3 + else + call netrw#msg#Notify('WARNING', printf('unable to comply with your request<%s>', choice)) + endif + endwhile + + " NetRead: cleanup {{{3 + if exists("b:netrw_method") + unlet b:netrw_method + unlet b:netrw_fname + endif + if s:FileReadable(tmpfile) && tmpfile !~ '.tar.bz2$' && tmpfile !~ '.tar.gz$' && tmpfile !~ '.zip' && tmpfile !~ '.tar' && readcmd != 't' && tmpfile !~ '.tar.xz$' && tmpfile !~ '.txz' + call netrw#fs#Remove(tmpfile) + endif + NetrwKeepj call s:NetrwOptionsRestore("w:") + +endfunction + +" netrw#NetWrite: responsible for writing a file over the net {{{2 +function netrw#NetWrite(...) range + + " NetWrite: option handling {{{3 + let mod= 0 + call s:NetrwOptionsSave("w:") + call s:NetrwOptionsSafe(0) + + " NetWrite: Get Temporary Filename {{{3 + let tmpfile= s:GetTempfile("") + if tmpfile == "" + return + endif + + if a:0 == 0 + let ichoice = 0 + else + let ichoice = 1 + endif + + let curbufname= expand("%") + if &binary + " For binary writes, always write entire file. + " (line numbers don't really make sense for that). + " Also supports the writing of tar and zip files. + exe "sil NetrwKeepj w! ".fnameescape(v:cmdarg)." ".fnameescape(tmpfile) + elseif g:netrw_cygwin + " write (selected portion of) file to temporary + let cygtmpfile= substitute(tmpfile,g:netrw_cygdrive.'/\(.\)','\1:','') + exe "sil NetrwKeepj ".a:firstline."," . a:lastline . "w! ".fnameescape(v:cmdarg)." ".fnameescape(cygtmpfile) + else + " write (selected portion of) file to temporary + exe "sil NetrwKeepj ".a:firstline."," . a:lastline . "w! ".fnameescape(v:cmdarg)." ".fnameescape(tmpfile) + endif + + if curbufname == "" + " when the file is [No Name], and one attempts to Nwrite it, the buffer takes + " on the temporary file's name. Deletion of the temporary file during + " cleanup then causes an error message. + 0file! + endif + + " NetWrite: while choice loop: {{{3 + while ichoice <= a:0 + + " Process arguments: {{{4 + " attempt to repeat with previous host-file-etc + if exists("b:netrw_lastfile") && a:0 == 0 + let choice = b:netrw_lastfile + let ichoice= ichoice + 1 + else + exe "let choice= a:" . ichoice + + " Reconstruct Choice when choice starts with '"' + if match(choice,"?") == 0 + echomsg 'NetWrite Usage:"' + echomsg ':Nwrite machine:path uses rcp' + echomsg ':Nwrite "machine path" uses ftp with <.netrc>' + echomsg ':Nwrite "machine id password path" uses ftp' + echomsg ':Nwrite dav://[user@]machine/path uses cadaver' + echomsg ':Nwrite fetch://[user@]machine/path uses fetch' + echomsg ':Nwrite ftp://machine[#port]/path uses ftp (autodetects <.netrc>)' + echomsg ':Nwrite rcp://machine/path uses rcp' + echomsg ':Nwrite rsync://[user@]machine/path uses rsync' + echomsg ':Nwrite scp://[user@]machine[[:#]port]/path uses scp' + echomsg ':Nwrite sftp://[user@]machine/path uses sftp' + sleep 4 + break + + elseif match(choice,"^\"") != -1 + if match(choice,"\"$") != -1 + " case "..." + let choice=strpart(choice,1,strlen(choice)-2) + else + " case "... ... ..." + let choice = strpart(choice,1,strlen(choice)-1) + let wholechoice = "" + + while match(choice,"\"$") == -1 + let wholechoice= wholechoice . " " . choice + let ichoice = ichoice + 1 + if choice > a:0 + call netrw#msg#Notify('ERROR', printf('Unbalanced string in filename "%s"', wholechoice)) + return + endif + let choice= a:{ichoice} + endwhile + let choice= strpart(wholechoice,1,strlen(wholechoice)-1) . " " . strpart(choice,0,strlen(choice)-1) + endif + endif + endif + let ichoice= ichoice + 1 + + " Determine method of write (ftp, rcp, etc) {{{4 + NetrwKeepj call s:NetrwMethod(choice) + if !exists("b:netrw_method") || b:netrw_method < 0 + return + endif + if !s:NetrwValidateHostname(g:netrw_machine) + call netrw#msg#Notify('ERROR', printf('Rejecting invalid hostname: <%s>', g:netrw_machine)) + return + endif + + " ============= + " NetWrite: Perform Protocol-Based Write {{{3 + " ============================ + if exists("g:netrw_silent") && g:netrw_silent == 0 && &ch >= 1 + echo "(netrw) Processing your write request..." + endif + + "......................................... + " NetWrite: (rcp) NetWrite Method #1 {{{3 + if b:netrw_method == 1 + if s:netrw_has_nt_rcp == 1 + if exists("g:netrw_uid") && ( g:netrw_uid != "" ) + let uid_machine = g:netrw_machine .'.'. g:netrw_uid + else + let uid_machine = g:netrw_machine .'.'. $USERNAME + endif + else + if exists("g:netrw_uid") && ( g:netrw_uid != "" ) + let uid_machine = g:netrw_uid .'@'. g:netrw_machine + else + let uid_machine = g:netrw_machine + endif + endif + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_rcp_cmd." ".s:netrw_rcpmode." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(uid_machine.":".b:netrw_fname,1)) + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: (ftp + <.netrc>) NetWrite Method #2 {{{3 + elseif b:netrw_method == 2 + let netrw_fname = b:netrw_fname + + " formerly just a "new...bd!", that changed the window sizes when equalalways. Using enew workaround instead + let bhkeep = &l:bh + let curbuf = bufnr("%") + setl bh=hide + keepj keepalt enew + + setl ff=unix + NetrwKeepj put =g:netrw_ftpmode + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + NetrwKeepj call setline(line("$")+1,'put "'.tmpfile.'" "'.netrw_fname.'"') + if exists("g:netrw_port") && g:netrw_port != "" + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)." ".netrw#os#Escape(g:netrw_port,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)) + endif + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" + call netrw#msg#Notify('ERROR', getline(1)) + let mod=1 + endif + + " remove enew buffer (quietly) + let filtbuf= bufnr("%") + exe curbuf."b!" + let &l:bh = bhkeep + exe filtbuf."bw!" + + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: (ftp + machine, id, passwd, filename) NetWrite Method #3 {{{3 + elseif b:netrw_method == 3 + " Construct execution string (three or more lines) which will be passed through filter + let netrw_fname = b:netrw_fname + let bhkeep = &l:bh + + " formerly just a "new...bd!", that changed the window sizes when equalalways. Using enew workaround instead + let curbuf = bufnr("%") + setl bh=hide + keepj keepalt enew + setl ff=unix + + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + if exists("g:netrw_uid") && g:netrw_uid != "" + if exists("g:netrw_ftp") && g:netrw_ftp == 1 + NetrwKeepj put =g:netrw_uid + if exists("s:netrw_passwd") && s:netrw_passwd != "" + NetrwKeepj put ='\"'.s:netrw_passwd.'\"' + endif + elseif exists("s:netrw_passwd") && s:netrw_passwd != "" + NetrwKeepj put ='user \"'.g:netrw_uid.'\" \"'.s:netrw_passwd.'\"' + endif + endif + NetrwKeepj put =g:netrw_ftpmode + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + NetrwKeepj put ='put \"'.tmpfile.'\" \"'.netrw_fname.'\"' + " save choice/id/password for future use + let b:netrw_lastfile = choice + + " perform ftp: + " -i : turns off interactive prompting from ftp + " -n unix : DON'T use <.netrc>, even though it exists + " -n win32: quit being obnoxious about password + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." ".g:netrw_ftp_options) + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + if getline(1) !~ "^$" + call netrw#msg#Notify('ERROR', getline(1)) + let mod=1 + endif + + " remove enew buffer (quietly) + let filtbuf= bufnr("%") + exe curbuf."b!" + let &l:bh= bhkeep + exe filtbuf."bw!" + + "......................................... + " NetWrite: (scp) NetWrite Method #4 {{{3 + elseif b:netrw_method == 4 + if exists("g:netrw_port") && g:netrw_port != "" + let useport= " ".g:netrw_scpport." ".fnameescape(g:netrw_port) + else + let useport= "" + endif + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_scp_cmd.useport." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(g:netrw_machine.":".b:netrw_fname,1)) + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: (http) NetWrite Method #5 {{{3 + elseif b:netrw_method == 5 + let curl= substitute(g:netrw_http_put_cmd,'\s\+.*$',"","") + if executable(curl) + let url= g:netrw_choice + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_http_put_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(url,1) ) + else + call netrw#msg#Notify('ERROR', printf("can't write to http using <%s>", g:netrw_http_put_cmd)) + endif + + "......................................... + " NetWrite: (dav) NetWrite Method #6 (cadaver) {{{3 + elseif b:netrw_method == 6 + + " Construct execution string (four lines) which will be passed through filter + let netrw_fname = escape(b:netrw_fname,g:netrw_fname_escape) + let bhkeep = &l:bh + + " formerly just a "new...bd!", that changed the window sizes when equalalways. Using enew workaround instead + let curbuf = bufnr("%") + setl bh=hide + keepj keepalt enew + + setl ff=unix + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + if exists("g:netrw_uid") && exists("s:netrw_passwd") && g:netrw_uid != "" + NetrwKeepj put ='user '.g:netrw_uid.' '.s:netrw_passwd + endif + NetrwKeepj put ='put '.tmpfile.' '.netrw_fname + + " perform cadaver operation: + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".g:netrw_dav_cmd) + + " remove enew buffer (quietly) + let filtbuf= bufnr("%") + exe curbuf."b!" + let &l:bh = bhkeep + exe filtbuf."bw!" + + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: (rsync) NetWrite Method #7 {{{3 + elseif b:netrw_method == 7 + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_rsync_cmd." ".netrw#os#Escape(tmpfile,1)." ".netrw#os#Escape(g:netrw_machine.g:netrw_rsync_sep.b:netrw_fname,1)) + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: (sftp) NetWrite Method #9 {{{3 + elseif b:netrw_method == 9 + let netrw_fname= escape(b:netrw_fname,g:netrw_fname_escape) + if exists("g:netrw_uid") && ( g:netrw_uid != "" ) + let uid_machine = g:netrw_uid .'@'. g:netrw_machine + else + let uid_machine = g:netrw_machine + endif + + " formerly just a "new...bd!", that changed the window sizes when equalalways. Using enew workaround instead + let bhkeep = &l:bh + let curbuf = bufnr("%") + setl bh=hide + keepj keepalt enew + + setl ff=unix + call setline(1,'put "'.escape(tmpfile,'\').'" '.netrw_fname) + let sftpcmd= substitute(g:netrw_sftp_cmd,"%TEMPFILE%",escape(tmpfile,'\'),"g") + call netrw#os#Execute(s:netrw_silentxfer."%!".sftpcmd.' '.netrw#os#Escape(uid_machine,1)) + let filtbuf= bufnr("%") + exe curbuf."b!" + let &l:bh = bhkeep + exe filtbuf."bw!" + let b:netrw_lastfile = choice + + "......................................... + " NetWrite: Complain {{{3 + else + call netrw#msg#Notify('WARNING', printf('unable to comply with your request<%s>', choice)) + let leavemod= 1 + endif + endwhile + + " NetWrite: Cleanup: {{{3 + if s:FileReadable(tmpfile) + call netrw#fs#Remove(tmpfile) + endif + call s:NetrwOptionsRestore("w:") + + if a:firstline == 1 && a:lastline == line("$") + " restore modifiability; usually equivalent to set nomod + let &l:mod= mod + elseif !exists("leavemod") + " indicate that the buffer has not been modified since last written + setl nomod + endif + +endfunction + +" netrw#NetSource: source a remotely hosted Vim script {{{2 +" uses NetRead to get a copy of the file into a temporarily file, +" then sources that file, +" then removes that file. +function netrw#NetSource(...) + if a:0 > 0 && a:1 == '?' + " give help + echomsg 'NetSource Usage:' + echomsg ':Nsource dav://machine[:port]/path uses cadaver' + echomsg ':Nsource fetch://machine/path uses fetch' + echomsg ':Nsource ftp://[user@]machine[:port]/path uses ftp autodetects <.netrc>' + echomsg ':Nsource http[s]://[user@]machine/path uses http wget' + echomsg ':Nsource rcp://[user@]machine/path uses rcp' + echomsg ':Nsource rsync://machine[:port]/path uses rsync' + echomsg ':Nsource scp://[user@]machine[[:#]port]/path uses scp' + echomsg ':Nsource sftp://[user@]machine[[:#]port]/path uses sftp' + sleep 4 + else + let i= 1 + while i <= a:0 + call netrw#NetRead(3,a:{i}) + if s:FileReadable(s:netrw_tmpfile) + exe "so ".fnameescape(s:netrw_tmpfile) + if delete(s:netrw_tmpfile) + call netrw#msg#Notify('ERROR', 'unable to delete directory <%s>', s:netrw_tmpfile) + endif + unlet s:netrw_tmpfile + else + call netrw#msg#Notify('ERROR', printf('unable to source <%s>!', a:{i})) + endif + let i= i + 1 + endwhile + endif +endfunction + +" netrw#SetTreetop: resets the tree top to the current directory/specified directory {{{2 +" (implements the :Ntree command) +function netrw#SetTreetop(iscmd,...) + + " iscmd==0: netrw#SetTreetop called using gn mapping + " iscmd==1: netrw#SetTreetop called using :Ntree from the command line + " clear out the current tree + if exists("w:netrw_treetop") + let inittreetop= w:netrw_treetop + unlet w:netrw_treetop + endif + if exists("w:netrw_treedict") + unlet w:netrw_treedict + endif + + if (a:iscmd == 0 || a:1 == "") && exists("inittreetop") + let treedir = s:NetrwTreePath(inittreetop) + else + if isdirectory(s:NetrwFile(a:1)) + let treedir = a:1 + let s:netrw_treetop = treedir + elseif exists("b:netrw_curdir") && (isdirectory(s:NetrwFile(b:netrw_curdir."/".a:1)) || a:1 =~ '^\a\{3,}://') + let treedir = b:netrw_curdir."/".a:1 + let s:netrw_treetop = treedir + else + " normally the cursor is left in the message window. + " However, here this results in the directory being listed in the message window, which is not wanted. + let netrwbuf= bufnr("%") + call netrw#msg#Notify('ERROR', printf("sorry, %s doesn't seem to be a directory!", a:1)) + exe bufwinnr(netrwbuf)."wincmd w" + let treedir = "." + let s:netrw_treetop = getcwd() + endif + endif + + " determine if treedir is remote or local + let islocal= expand("%") !~ '^\a\{3,}://' + + " browse the resulting directory + if islocal + call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(islocal,treedir,0)) + else + call s:NetrwBrowse(islocal,s:NetrwBrowseChgDir(islocal,treedir,0)) + endif + +endfunction + +" s:NetrwGetFile: Function to read temporary file "tfile" with command "readcmd". {{{2 +" readcmd == %r : replace buffer with newly read file +" == 0r : read file at top of buffer +" == r : read file after current line +" == t : leave file in temporary form (ie. don't read into buffer) +function s:NetrwGetFile(readcmd, tfile, method) + + " readcmd=='t': simply do nothing + if a:readcmd == 't' + return + endif + + " get name of remote filename (ie. url and all) + let rfile= bufname("%") + + if exists("*NetReadFixup") + " for the use of NetReadFixup (not otherwise used internally) + let line2= line("$") + endif + + if a:readcmd[0] == '%' + " get file into buffer + + " rename the current buffer to the temp file (ie. tfile) + if g:netrw_cygwin + let tfile= substitute(a:tfile,g:netrw_cygdrive.'/\(.\)','\1:','') + else + let tfile= a:tfile + endif + call s:NetrwBufRename(tfile) + + " edit temporary file (ie. read the temporary file in) + if rfile =~ '\.zip$' + call zip#Browse(tfile) + elseif rfile =~ '\.tar$' + call tar#Browse(tfile) + elseif rfile =~ '\.tar\.gz$' + call tar#Browse(tfile) + elseif rfile =~ '\.tar\.bz2$' + call tar#Browse(tfile) + elseif rfile =~ '\.tar\.xz$' + call tar#Browse(tfile) + elseif rfile =~ '\.txz$' + call tar#Browse(tfile) + else + NetrwKeepj e! + endif + + " rename buffer back to remote filename + call s:NetrwBufRename(rfile) + + " Jan 19, 2022: COMBAK -- bram problem with https://github.com/vim/vim/pull/9554.diff filetype + " Detect filetype of local version of remote file. + " Note that isk must not include a "/" for scripts.vim + " to process this detection correctly. + " setl ft= + let iskkeep= &isk + setl isk-=/ + filetype detect + let &l:isk= iskkeep + let line1 = 1 + let line2 = line("$") + + elseif !&ma + " attempting to read a file after the current line in the file, but the buffer is not modifiable + call netrw#msg#Notify('WARNING', printf('attempt to read<%s> into a non-modifiable buffer!', a:tfile)) + return + + elseif s:FileReadable(a:tfile) + " read file after current line + let curline = line(".") + let lastline= line("$") + exe "NetrwKeepj ".a:readcmd." ".fnameescape(v:cmdarg)." ".fnameescape(a:tfile) + let line1= curline + 1 + let line2= line("$") - lastline + 1 + + else + " not readable + call netrw#msg#Notify('WARNING', printf('file <%s> not readable', a:tfile)) + return + endif + + " User-provided (ie. optional) fix-it-up command + if exists("*NetReadFixup") + NetrwKeepj call NetReadFixup(a:method, line1, line2) + endif + + if has("gui") && has("menu") && has("gui_running") && &go =~# 'm' && g:netrw_menu + " update the Buffers menu + NetrwKeepj call s:UpdateBuffersMenu() + endif + + + " make sure file is being displayed + " redraw! + +endfunction + +" s:NetrwMethod: determine method of transfer {{{2 +" Input: +" choice = url [protocol:]//[userid@]hostname[:port]/[path-to-file] +" Output: +" b:netrw_method= 1: rcp +" 2: ftp + <.netrc> +" 3: ftp + machine, id, password, and [path]filename +" 4: scp +" 5: http[s] (wget) +" 6: dav +" 7: rsync +" 8: fetch +" 9: sftp +" 10: file +" g:netrw_machine= hostname +" b:netrw_fname = filename +" g:netrw_port = optional port number (for ftp) +" g:netrw_choice = copy of input url (choice) +function s:NetrwMethod(choice) + + " sanity check: choice should have at least three slashes in it + if strlen(substitute(a:choice,'[^/]','','g')) < 3 + call netrw#msg#Notify('ERROR', 'not a netrw-style url; netrw uses protocol://[user@]hostname[:port]/[path])') + let b:netrw_method = -1 + return + endif + + " record current g:netrw_machine, if any + " curmachine used if protocol == ftp and no .netrc + if exists("g:netrw_machine") + let curmachine= g:netrw_machine + else + let curmachine= "N O T A HOST" + endif + if exists("g:netrw_port") + let netrw_port= g:netrw_port + endif + + " insure that netrw_ftp_cmd starts off every method determination + " with the current g:netrw_ftp_cmd + let s:netrw_ftp_cmd= g:netrw_ftp_cmd + + " initialization + let b:netrw_method = 0 + let g:netrw_machine = "" + let b:netrw_fname = "" + let g:netrw_port = "" + let g:netrw_choice = a:choice + + " Patterns: + " mipf : a:machine a:id password filename Use ftp + " mf : a:machine filename Use ftp + <.netrc> or g:netrw_uid s:netrw_passwd + " ftpurm : ftp://[user@]host[[#:]port]/filename Use ftp + <.netrc> or g:netrw_uid s:netrw_passwd + " rcpurm : rcp://[user@]host/filename Use rcp + " rcphf : [user@]host:filename Use rcp + " scpurm : scp://[user@]host[[#:]port]/filename Use scp + " httpurm : http[s]://[user@]host/filename Use wget + " davurm : dav[s]://host[:port]/path Use cadaver/curl + " rsyncurm : rsync://host[:port]/path Use rsync + " fetchurm : fetch://[user@]host[:http]/filename Use fetch (defaults to ftp, override for http) + " sftpurm : sftp://[user@]host/filename Use scp + " fileurm : file://[user@]host/filename Use elinks or links + let mipf = '^\(\S\+\)\s\+\(\S\+\)\s\+\(\S\+\)\s\+\(\S\+\)$' + let mf = '^\(\S\+\)\s\+\(\S\+\)$' + let ftpurm = '^ftp://\(\([^/]*\)@\)\=\([^/#:]\{-}\)\([#:]\d\+\)\=/\(.*\)$' + let rcpurm = '^rcp://\%(\([^/]*\)@\)\=\([^/]\{-}\)/\(.*\)$' + let rcphf = '^\(\(\h\w*\)@\)\=\(\h\w*\):\([^@]\+\)$' + let scpurm = '^scp://\([^/#:]\+\)\%([#:]\(\d\+\)\)\=/\(.*\)$' + let httpurm = '^https\=://\([^/]\{-}\)\(/.*\)\=$' + let davurm = '^davs\=://\([^/]\+\)/\(.*/\)\([-_.~[:alnum:]]\+\)$' + let rsyncurm = '^rsync://\([^/]\{-}\)/\(.*\)\=$' + let fetchurm = '^fetch://\(\([^/]*\)@\)\=\([^/#:]\{-}\)\(:http\)\=/\(.*\)$' + let sftpurm = '^sftp://\([^/]\{-}\)/\(.*\)\=$' + let fileurm = '^file\=://\(.*\)$' + + " Determine Method + " Method#1: rcp://user@hostname/...path-to-file {{{3 + if match(a:choice,rcpurm) == 0 + let b:netrw_method = 1 + let userid = substitute(a:choice,rcpurm,'\1',"") + let g:netrw_machine = substitute(a:choice,rcpurm,'\2',"") + let b:netrw_fname = substitute(a:choice,rcpurm,'\3',"") + if userid != "" + let g:netrw_uid= userid + endif + + " Method#4: scp://user@hostname/...path-to-file {{{3 + elseif match(a:choice,scpurm) == 0 + let b:netrw_method = 4 + let g:netrw_machine = substitute(a:choice,scpurm,'\1',"") + let g:netrw_port = substitute(a:choice,scpurm,'\2',"") + let b:netrw_fname = substitute(a:choice,scpurm,'\3',"") + + " Method#5: http[s]://user@hostname/...path-to-file {{{3 + elseif match(a:choice,httpurm) == 0 + let b:netrw_method = 5 + let g:netrw_machine= substitute(a:choice,httpurm,'\1',"") + let b:netrw_fname = substitute(a:choice,httpurm,'\2',"") + let b:netrw_http = (a:choice =~ '^https:')? "https" : "http" + + " Method#6: dav://hostname[:port]/..path-to-file.. {{{3 + elseif match(a:choice,davurm) == 0 + let b:netrw_method= 6 + if a:choice =~ 'davs:' + let g:netrw_machine= 'https://'.substitute(a:choice,davurm,'\1/\2',"") + else + let g:netrw_machine= 'http://'.substitute(a:choice,davurm,'\1/\2',"") + endif + let b:netrw_fname = substitute(a:choice,davurm,'\3',"") + + " Method#7: rsync://user@hostname/...path-to-file {{{3 + elseif match(a:choice,rsyncurm) == 0 + let b:netrw_method = 7 + let g:netrw_machine= substitute(a:choice,rsyncurm,'\1',"") + let b:netrw_fname = substitute(a:choice,rsyncurm,'\2',"") + + " Methods 2,3: ftp://[user@]hostname[[:#]port]/...path-to-file {{{3 + elseif match(a:choice,ftpurm) == 0 + let userid = substitute(a:choice,ftpurm,'\2',"") + let g:netrw_machine= substitute(a:choice,ftpurm,'\3',"") + let g:netrw_port = substitute(a:choice,ftpurm,'\4',"") + let b:netrw_fname = substitute(a:choice,ftpurm,'\5',"") + if userid != "" + let g:netrw_uid= userid + endif + + if curmachine != g:netrw_machine + if exists("s:netrw_hup[".g:netrw_machine."]") + call netrw#NetUserPass("ftp:".g:netrw_machine) + elseif exists("s:netrw_passwd") + " if there's a change in hostname, require password re-entry + unlet s:netrw_passwd + endif + if exists("netrw_port") + unlet netrw_port + endif + endif + + if exists("g:netrw_uid") && exists("s:netrw_passwd") + let b:netrw_method = 3 + else + let host= substitute(g:netrw_machine,'\..*$','','') + if exists("s:netrw_hup[host]") + call netrw#NetUserPass("ftp:".host) + + elseif has("win32") && s:netrw_ftp_cmd =~# '-[sS]:' + if g:netrw_ftp_cmd =~# '-[sS]:\S*MACHINE\>' + let s:netrw_ftp_cmd= substitute(g:netrw_ftp_cmd,'\',g:netrw_machine,'') + endif + let b:netrw_method= 2 + elseif s:FileReadable(expand("$HOME/.netrc")) && !g:netrw_ignorenetrc + let b:netrw_method= 2 + else + if !exists("g:netrw_uid") || g:netrw_uid == "" + call netrw#NetUserPass() + elseif !exists("s:netrw_passwd") || s:netrw_passwd == "" + call netrw#NetUserPass(g:netrw_uid) + " else just use current g:netrw_uid and s:netrw_passwd + endif + let b:netrw_method= 3 + endif + endif + + " Method#8: fetch {{{3 + elseif match(a:choice,fetchurm) == 0 + let b:netrw_method = 8 + let g:netrw_userid = substitute(a:choice,fetchurm,'\2',"") + let g:netrw_machine= substitute(a:choice,fetchurm,'\3',"") + let b:netrw_option = substitute(a:choice,fetchurm,'\4',"") + let b:netrw_fname = substitute(a:choice,fetchurm,'\5',"") + + " Method#3: Issue an ftp : "machine id password [path/]filename" {{{3 + elseif match(a:choice,mipf) == 0 + let b:netrw_method = 3 + let g:netrw_machine = substitute(a:choice,mipf,'\1',"") + let g:netrw_uid = substitute(a:choice,mipf,'\2',"") + let s:netrw_passwd = substitute(a:choice,mipf,'\3',"") + let b:netrw_fname = substitute(a:choice,mipf,'\4',"") + call netrw#NetUserPass(g:netrw_machine,g:netrw_uid,s:netrw_passwd) + + " Method#3: Issue an ftp: "hostname [path/]filename" {{{3 + elseif match(a:choice,mf) == 0 + if exists("g:netrw_uid") && exists("s:netrw_passwd") + let b:netrw_method = 3 + let g:netrw_machine = substitute(a:choice,mf,'\1',"") + let b:netrw_fname = substitute(a:choice,mf,'\2',"") + + elseif s:FileReadable(expand("$HOME/.netrc")) + let b:netrw_method = 2 + let g:netrw_machine = substitute(a:choice,mf,'\1',"") + let b:netrw_fname = substitute(a:choice,mf,'\2',"") + endif + + " Method#9: sftp://user@hostname/...path-to-file {{{3 + elseif match(a:choice,sftpurm) == 0 + let b:netrw_method = 9 + let g:netrw_machine= substitute(a:choice,sftpurm,'\1',"") + let b:netrw_fname = substitute(a:choice,sftpurm,'\2',"") + + " Method#1: Issue an rcp: hostname:filename" (this one should be last) {{{3 + elseif match(a:choice,rcphf) == 0 + let b:netrw_method = 1 + let userid = substitute(a:choice,rcphf,'\2',"") + let g:netrw_machine = substitute(a:choice,rcphf,'\3',"") + let b:netrw_fname = substitute(a:choice,rcphf,'\4',"") + if userid != "" + let g:netrw_uid= userid + endif + + " Method#10: file://user@hostname/...path-to-file {{{3 + elseif match(a:choice,fileurm) == 0 && exists("g:netrw_file_cmd") + let b:netrw_method = 10 + let b:netrw_fname = substitute(a:choice,fileurm,'\1',"") + + " Cannot Determine Method {{{3 + else + call netrw#msg#Notify('WARNING', 'cannot determine method (format: protocol://[user@]hostname[:port]/[path])') + let b:netrw_method = -1 + endif + "}}}3 + + if g:netrw_port != "" + " remove any leading [:#] from port number + let g:netrw_port = substitute(g:netrw_port,'[#:]\+','','') + elseif exists("netrw_port") + " retain port number as implicit for subsequent ftp operations + let g:netrw_port= netrw_port + endif + +endfunction + +" s:NetrwValidateHostname: Validate that the hostname is valid {{{2 +" Input: +" hostname, may include an optional username and port number, e.g. +" user@hostname:port +" allow a alphanumeric hostname or an IPv(4/6) address +" Output: +" true if g:netrw_machine is valid according to RFC1123 #Section 2 +function s:NetrwValidateHostname(hostname) + " Username: + let user_pat = '\%([a-zA-Z0-9._-]\+@\)\?' + " Hostname: 1-64 chars, alphanumeric/dots/hyphens. + " No underscores. No leading/trailing dots/hyphens. + let host_pat = '[a-zA-Z0-9]\%([-a-zA-Z0-9.]\{0,62}[a-zA-Z0-9]\)\?' + " Port: 16 bit unsigned integer + let port_pat = '\%(:\d\{1,5\}\)\?$' + + " IPv4: 1-3 digits separated by dots + let ipv4_pat = '\%(\d\{1,3}\.\)\{3\}\d\{1,3\}' + + " IPv6: Hex, colons, and optional brackets + let ipv6_pat = '\[\?\%([a-fA-F0-9:]\{2,}\)\+\]\?' + + return a:hostname =~? '^'.user_pat.host_pat.port_pat || + \ a:hostname =~? '^'.user_pat.ipv4_pat.port_pat || + \ a:hostname =~? '^'.user_pat.ipv6_pat.port_pat +endfunction + +" NetUserPass: set username and password for subsequent ftp transfer {{{2 +" Usage: :call netrw#NetUserPass() -- will prompt for userid and password +" :call netrw#NetUserPass("uid") -- will prompt for password +" :call netrw#NetUserPass("uid","password") -- sets global userid and password +" :call netrw#NetUserPass("ftp:host") -- looks up userid and password using hup dictionary +" :call netrw#NetUserPass("host","uid","password") -- sets hup dictionary with host, userid, password +function netrw#NetUserPass(...) + + + if !exists('s:netrw_hup') + let s:netrw_hup= {} + endif + + if a:0 == 0 + " case: no input arguments + + " change host and username if not previously entered; get new password + if !exists("g:netrw_machine") + let g:netrw_machine= input('Enter hostname: ') + endif + if !exists("g:netrw_uid") || g:netrw_uid == "" + " get username (user-id) via prompt + let g:netrw_uid= input('Enter username: ') + endif + " get password via prompting + let s:netrw_passwd= inputsecret("Enter Password: ") + + " set up hup database + let host = substitute(g:netrw_machine,'\..*$','','') + if !exists('s:netrw_hup[host]') + let s:netrw_hup[host]= {} + endif + let s:netrw_hup[host].uid = g:netrw_uid + let s:netrw_hup[host].passwd = s:netrw_passwd + + elseif a:0 == 1 + " case: one input argument + + if a:1 =~ '^ftp:' + " get host from ftp:... url + " access userid and password from hup (host-user-passwd) dictionary + let host = substitute(a:1,'^ftp:','','') + let host = substitute(host,'\..*','','') + if exists("s:netrw_hup[host]") + let g:netrw_uid = s:netrw_hup[host].uid + let s:netrw_passwd = s:netrw_hup[host].passwd + else + let g:netrw_uid = input("Enter UserId: ") + let s:netrw_passwd = inputsecret("Enter Password: ") + endif + + else + " case: one input argument, not an url. Using it as a new user-id. + if exists("g:netrw_machine") + if g:netrw_machine =~ '[0-9.]\+' + let host= g:netrw_machine + else + let host= substitute(g:netrw_machine,'\..*$','','') + endif + else + let g:netrw_machine= input('Enter hostname: ') + endif + let g:netrw_uid = a:1 + if exists("g:netrw_passwd") + " ask for password if one not previously entered + let s:netrw_passwd= g:netrw_passwd + else + let s:netrw_passwd = inputsecret("Enter Password: ") + endif + endif + + if exists("host") + if !exists('s:netrw_hup[host]') + let s:netrw_hup[host]= {} + endif + let s:netrw_hup[host].uid = g:netrw_uid + let s:netrw_hup[host].passwd = s:netrw_passwd + endif + + elseif a:0 == 2 + let g:netrw_uid = a:1 + let s:netrw_passwd = a:2 + + elseif a:0 == 3 + " enter hostname, user-id, and password into the hup dictionary + let host = substitute(a:1,'^\a\+:','','') + let host = substitute(host,'\..*$','','') + if !exists('s:netrw_hup[host]') + let s:netrw_hup[host]= {} + endif + let s:netrw_hup[host].uid = a:2 + let s:netrw_hup[host].passwd = a:3 + let g:netrw_uid = s:netrw_hup[host].uid + let s:netrw_passwd = s:netrw_hup[host].passwd + endif + +endfunction + +" Shared Browsing Support: {{{1 + +" s:ExplorePatHls: converts an Explore pattern into a regular expression search pattern {{{2 +function s:ExplorePatHls(pattern) + let repat= substitute(a:pattern,'^**/\{1,2}','','') + let repat= escape(repat,'][.\') + let repat= '\<'.substitute(repat,'\*','\\(\\S\\+ \\)*\\S\\+','g').'\>' + return repat +endfunction + +" s:NetrwBookHistHandler: {{{2 +" 0: (user: ) bookmark current directory +" 1: (user: ) change to the bookmarked directory +" 2: (user: ) list bookmarks +" 3: (browsing) records current directory history +" 4: (user: ) go up (previous) directory, using history +" 5: (user: ) go down (next) directory, using history +" 6: (user: ) delete bookmark +function s:NetrwBookHistHandler(chg,curdir) + if !exists("g:netrw_dirhistmax") || g:netrw_dirhistmax <= 0 + return + endif + + let ykeep = @@ + let curbufnr = bufnr("%") + + if a:chg == 0 + " bookmark the current directory + if exists("s:netrwmarkfilelist_{curbufnr}") + call s:NetrwBookmark(0) + echo "bookmarked marked files" + else + call s:MakeBookmark(a:curdir) + echo "bookmarked the current directory" + endif + + try + call s:NetrwBookHistSave() + catch + endtry + + elseif a:chg == 1 + " change to the bookmarked directory + if exists("g:netrw_bookmarklist[v:count-1]") + exe "NetrwKeepj e ".fnameescape(g:netrw_bookmarklist[v:count-1]) + else + echomsg "Sorry, bookmark#".v:count." doesn't exist!" + endif + + elseif a:chg == 2 + " redraw! + let didwork= 0 + " list user's bookmarks + if exists("g:netrw_bookmarklist") + let cnt= 1 + for bmd in g:netrw_bookmarklist + echo printf("Netrw Bookmark#%-2d: %s",cnt,g:netrw_bookmarklist[cnt-1]) + let didwork = 1 + let cnt = cnt + 1 + endfor + endif + + " list directory history + " Note: history is saved only when PerformListing is done; + " ie. when netrw can re-use a netrw buffer, the current directory is not saved in the history. + let cnt = g:netrw_dirhistcnt + let first = 1 + let histcnt = 0 + if g:netrw_dirhistmax > 0 + while ( first || cnt != g:netrw_dirhistcnt ) + if exists("g:netrw_dirhist_{cnt}") + echo printf("Netrw History#%-2d: %s",histcnt,g:netrw_dirhist_{cnt}) + let didwork= 1 + endif + let histcnt = histcnt + 1 + let first = 0 + let cnt = ( cnt - 1 ) % g:netrw_dirhistmax + if cnt < 0 + let cnt= cnt + g:netrw_dirhistmax + endif + endwhile + else + let g:netrw_dirhistcnt= 0 + endif + if didwork + call inputsave()|call input("Press to continue")|call inputrestore() + endif + + elseif a:chg == 3 + " saves most recently visited directories (when they differ) + if !exists("g:netrw_dirhistcnt") || !exists("g:netrw_dirhist_{g:netrw_dirhistcnt}") || g:netrw_dirhist_{g:netrw_dirhistcnt} != a:curdir + if g:netrw_dirhistmax > 0 + let g:netrw_dirhistcnt = ( g:netrw_dirhistcnt + 1 ) % g:netrw_dirhistmax + let g:netrw_dirhist_{g:netrw_dirhistcnt} = a:curdir + endif + endif + + elseif a:chg == 4 + " u: change to the previous directory stored on the history list + if g:netrw_dirhistmax > 0 + let g:netrw_dirhistcnt= ( g:netrw_dirhistcnt - v:count1 ) % g:netrw_dirhistmax + if g:netrw_dirhistcnt < 0 + let g:netrw_dirhistcnt= g:netrw_dirhistcnt + g:netrw_dirhistmax + endif + else + let g:netrw_dirhistcnt= 0 + endif + if exists("g:netrw_dirhist_{g:netrw_dirhistcnt}") + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("b:netrw_curdir") + setl ma noro + sil! NetrwKeepj %d _ + setl nomod + endif + exe "NetrwKeepj e! ".fnameescape(g:netrw_dirhist_{g:netrw_dirhistcnt}) + else + if g:netrw_dirhistmax > 0 + let g:netrw_dirhistcnt= ( g:netrw_dirhistcnt + v:count1 ) % g:netrw_dirhistmax + else + let g:netrw_dirhistcnt= 0 + endif + echo "Sorry, no predecessor directory exists yet" + endif + + elseif a:chg == 5 + " U: change to the subsequent directory stored on the history list + if g:netrw_dirhistmax > 0 + let g:netrw_dirhistcnt= ( g:netrw_dirhistcnt + 1 ) % g:netrw_dirhistmax + if exists("g:netrw_dirhist_{g:netrw_dirhistcnt}") + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("b:netrw_curdir") + setl ma noro + sil! NetrwKeepj %d _ + setl nomod + endif + exe "NetrwKeepj e! ".fnameescape(g:netrw_dirhist_{g:netrw_dirhistcnt}) + else + let g:netrw_dirhistcnt= ( g:netrw_dirhistcnt - 1 ) % g:netrw_dirhistmax + if g:netrw_dirhistcnt < 0 + let g:netrw_dirhistcnt= g:netrw_dirhistcnt + g:netrw_dirhistmax + endif + echo "Sorry, no successor directory exists yet" + endif + else + let g:netrw_dirhistcnt= 0 + echo "Sorry, no successor directory exists yet (g:netrw_dirhistmax is ".g:netrw_dirhistmax.")" + endif + + elseif a:chg == 6 + if exists("s:netrwmarkfilelist_{curbufnr}") + call s:NetrwBookmark(1) + echo "removed marked files from bookmarks" + else + " delete the v:count'th bookmark + let iremove = v:count + let dremove = g:netrw_bookmarklist[iremove - 1] + call s:MergeBookmarks() + NetrwKeepj call remove(g:netrw_bookmarklist,iremove-1) + echo "removed ".dremove." from g:netrw_bookmarklist" + endif + + try + call s:NetrwBookHistSave() + catch + endtry + endif + call s:NetrwBookmarkMenu() + call s:NetrwTgtMenu() + let @@= ykeep +endfunction + +" s:NetrwBookHistRead: this function reads bookmarks and history {{{2 +" Will source the history file (.netrwhist) only if the g:netrw_disthistmax is > 0. +" Sister function: s:NetrwBookHistSave() +function s:NetrwBookHistRead() + if !exists("g:netrw_dirhistmax") || g:netrw_dirhistmax <= 0 + return + endif + let ykeep= @@ + + " read bookmarks + if !exists("s:netrw_initbookhist") + let home = s:NetrwHome() + let savefile= home."/.netrwbook" + if filereadable(s:NetrwFile(savefile)) + exe "keepalt NetrwKeepj so ".savefile + endif + + " read history + if g:netrw_dirhistmax > 0 + let savefile= home."/.netrwhist" + if filereadable(s:NetrwFile(savefile)) + exe "keepalt NetrwKeepj so ".savefile + endif + let s:netrw_initbookhist= 1 + au VimLeave * call s:NetrwBookHistSave() + endif + endif + + let @@= ykeep +endfunction + +" s:NetrwBookHistSave: this function saves bookmarks and history to files {{{2 +" Sister function: s:NetrwBookHistRead() +" I used to do this via viminfo but that appears to +" be unreliable for long-term storage +" If g:netrw_dirhistmax is <= 0, no history or bookmarks +" will be saved. +" (s:NetrwBookHistHandler(3,...) used to record history) +function s:NetrwBookHistSave() + if !exists("g:netrw_dirhistmax") || g:netrw_dirhistmax <= 0 + return + endif + + let savefile= s:NetrwHome()."/.netrwhist" + 1split + + " setting up a new buffer which will become .netrwhist + call s:NetrwEnew() + if g:netrw_use_noswf + setl cino= com= cpo-=a cpo-=A fo=nroql2 tw=0 report=10000 noswf + else + setl cino= com= cpo-=a cpo-=A fo=nroql2 tw=0 report=10000 + endif + setl nocin noai noci magic nospell nohid wig= noaw + setl ma noro write + if exists("+acd") | setl noacd | endif + sil! NetrwKeepj keepalt %d _ + + " rename enew'd file: .netrwhist -- no attempt to merge + " record dirhistmax and current dirhistcnt + " save history + sil! keepalt file .netrwhist + call setline(1,"let g:netrw_dirhistmax =".g:netrw_dirhistmax) + call setline(2,"let g:netrw_dirhistcnt =".g:netrw_dirhistcnt) + if g:netrw_dirhistmax > 0 + let lastline = line("$") + let cnt = g:netrw_dirhistcnt + let first = 1 + while ( first || cnt != g:netrw_dirhistcnt ) + let lastline= lastline + 1 + if exists("g:netrw_dirhist_{cnt}") + call setline(lastline,'let g:netrw_dirhist_'.cnt."='".g:netrw_dirhist_{cnt}."'") + endif + let first = 0 + let cnt = ( cnt - 1 ) % g:netrw_dirhistmax + if cnt < 0 + let cnt= cnt + g:netrw_dirhistmax + endif + endwhile + exe "sil! w! ".savefile + endif + + " save bookmarks + sil NetrwKeepj %d _ + if exists("g:netrw_bookmarklist") && g:netrw_bookmarklist != [] + " merge and write .netrwbook + let savefile= s:NetrwHome()."/.netrwbook" + + if filereadable(s:NetrwFile(savefile)) + let booklist= deepcopy(g:netrw_bookmarklist) + exe "sil NetrwKeepj keepalt so ".savefile + for bdm in booklist + if index(g:netrw_bookmarklist,bdm) == -1 + call add(g:netrw_bookmarklist,bdm) + endif + endfor + call sort(g:netrw_bookmarklist) + endif + + " construct and save .netrwbook + call setline(1,"let g:netrw_bookmarklist= ".string(g:netrw_bookmarklist)) + exe "sil! w! ".savefile + endif + + " cleanup -- remove buffer used to construct history + let bgone= bufnr("%") + q! + exe "keepalt ".bgone."bwipe!" + +endfunction + +" s:NetrwBrowse: This function uses the command in g:netrw_list_cmd to provide a {{{2 +" list of the contents of a local or remote directory. It is assumed that the +" g:netrw_list_cmd has a string, USEPORT HOSTNAME, that needs to be substituted +" with the requested remote hostname first. +" Often called via: Explore/e dirname/etc -> netrw#LocalBrowseCheck() -> s:NetrwBrowse() +function s:NetrwBrowse(islocal,dirname) + if !exists("w:netrw_liststyle")|let w:netrw_liststyle= g:netrw_liststyle|endif + + " save alternate-file's filename if w:netrw_rexlocal doesn't exist + " This is useful when one edits a local file, then :e ., then :Rex + if a:islocal && !exists("w:netrw_rexfile") && bufname("#") != "" + let w:netrw_rexfile= bufname("#") + endif + + " s:NetrwBrowse : initialize history {{{3 + if !exists("s:netrw_initbookhist") + NetrwKeepj call s:NetrwBookHistRead() + endif + + " s:NetrwBrowse : simplify the dirname (especially for ".."s in dirnames) {{{3 + if a:dirname !~ '^\a\{3,}://' + let dirname= simplify(a:dirname) + else + let dirname= a:dirname + endif + + " repoint t:netrw_lexbufnr if appropriate + if exists("t:netrw_lexbufnr") && bufnr("%") == t:netrw_lexbufnr + let repointlexbufnr= 1 + endif + + " s:NetrwBrowse : sanity checks: {{{3 + if exists("s:netrw_skipbrowse") + unlet s:netrw_skipbrowse + return + endif + if !exists("*shellescape") + call netrw#msg#Notify('ERROR', "netrw can't run -- your vim is missing shellescape()") + return + endif + if !exists("*fnameescape") + call netrw#msg#Notify('ERROR', "netrw can't run -- your vim is missing fnameescape()") + return + endif + + " s:NetrwBrowse : save options: {{{3 + call s:NetrwOptionsSave("w:") + + " s:NetrwBrowse : re-instate any marked files {{{3 + if has("syntax") && exists("g:syntax_on") && g:syntax_on + if exists("s:netrwmarkfilelist_{bufnr('%')}") + exe "2match netrwMarkFile /".s:netrwmarkfilemtch_{bufnr("%")}."/" + endif + endif + + if a:islocal && exists("w:netrw_acdkeep") && w:netrw_acdkeep + " s:NetrwBrowse : set up "safe" options for local directory/file {{{3 + if s:NetrwLcd(dirname) + return + endif + + elseif !a:islocal && dirname !~ '[\/]$' && dirname !~ '^"' + " s:NetrwBrowse : remote regular file handler {{{3 + if bufname(dirname) != "" + exe "NetrwKeepj b ".bufname(dirname) + else + " attempt transfer of remote regular file + + " remove any filetype indicator from end of dirname, except for the + " "this is a directory" indicator (/). + " There shouldn't be one of those here, anyway. + let path= substitute(dirname,'[*=@|]\r\=$','','e') + call s:RemotePathAnalysis(dirname) + + " s:NetrwBrowse : remote-read the requested file into current buffer {{{3 + call s:NetrwEnew(dirname) + call s:NetrwOptionsSafe(a:islocal) + setl ma noro + let b:netrw_curdir = dirname + let url = s:method."://".((s:user == "")? "" : s:user."@").s:machine.(s:port ? ":".s:port : "")."/".s:path + call s:NetrwBufRename(url) + exe "sil! NetrwKeepj keepalt doau BufReadPre ".fnameescape(s:fname) + sil call netrw#NetRead(2,url) + " netrw.vim and tar.vim have already handled decompression of the tarball; avoiding gzip.vim error + if s:path =~ '\.bz2$' + exe "sil NetrwKeepj keepalt doau BufReadPost ".fnameescape(substitute(s:fname,'\.bz2$','','')) + elseif s:path =~ '\.gz$' + exe "sil NetrwKeepj keepalt doau BufReadPost ".fnameescape(substitute(s:fname,'\.gz$','','')) + elseif s:path =~ '\.xz$' + exe "sil NetrwKeepj keepalt doau BufReadPost ".fnameescape(substitute(s:fname,'\.xz$','','')) + else + exe "sil NetrwKeepj keepalt doau BufReadPost ".fnameescape(s:fname) + endif + endif + + " s:NetrwBrowse : save certain window-oriented variables into buffer-oriented variables {{{3 + call s:SetBufWinVars() + call s:NetrwOptionsRestore("w:") + setl ma nomod noro + return + endif + + " use buffer-oriented WinVars if buffer variables exist but associated window variables don't {{{3 + call s:UseBufWinVars() + + " set up some variables {{{3 + let b:netrw_browser_active = 1 + let dirname = dirname + let s:last_sort_by = g:netrw_sort_by + + " set up menu {{{3 + NetrwKeepj call s:NetrwMenu(1) + + " get/set-up buffer {{{3 + let svpos = winsaveview() + + " NetrwGetBuffer might change buffers but s:rexposn_X was set for the + " previous buffer + let prevbufnr = bufnr('%') + let reusing= s:NetrwGetBuffer(a:islocal,dirname) + if exists("s:rexposn_".prevbufnr) && exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let s:rexposn_{bufnr('%')} = s:rexposn_{prevbufnr} + endif + + " maintain markfile highlighting + if has("syntax") && exists("g:syntax_on") && g:syntax_on + if exists("s:netrwmarkfilemtch_{bufnr('%')}") && s:netrwmarkfilemtch_{bufnr("%")} != "" + exe "2match netrwMarkFile /".s:netrwmarkfilemtch_{bufnr("%")}."/" + else + 2match none + endif + endif + if reusing && line("$") > 1 + call s:NetrwOptionsRestore("w:") + setl noma nomod nowrap + return + endif + + " set b:netrw_curdir to the new directory name {{{3 + let b:netrw_curdir= dirname + if b:netrw_curdir =~ '[/\\]$' + let b:netrw_curdir= substitute(b:netrw_curdir,'[/\\]$','','e') + endif + if b:netrw_curdir =~ '\a:$' && has("win32") + let b:netrw_curdir= b:netrw_curdir."/" + endif + if b:netrw_curdir == '' + if has("amiga") + " On the Amiga, the empty string connotes the current directory + let b:netrw_curdir= getcwd() + else + " under unix, when the root directory is encountered, the result + " from the preceding substitute is an empty string. + let b:netrw_curdir= '/' + endif + endif + if !a:islocal && b:netrw_curdir !~ '/$' + let b:netrw_curdir= b:netrw_curdir.'/' + endif + + " ------------ + " (local only) {{{3 + " ------------ + if a:islocal + " Set up ShellCmdPost handling. Append current buffer to browselist + call s:LocalFastBrowser() + + " handle g:netrw_keepdir: set vim's current directory to netrw's notion of the current directory {{{3 + if !g:netrw_keepdir + if !exists("&l:acd") || !&l:acd + if s:NetrwLcd(b:netrw_curdir) + return + endif + endif + endif + + " -------------------------------- + " remote handling: {{{3 + " -------------------------------- + else + + " analyze dirname and g:netrw_list_cmd {{{3 + if dirname =~# "^NetrwTreeListing\>" + let dirname= b:netrw_curdir + elseif exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("b:netrw_curdir") + let dirname= substitute(b:netrw_curdir,'\\','/','g') + if dirname !~ '/$' + let dirname= dirname.'/' + endif + let b:netrw_curdir = dirname + else + let dirname = substitute(dirname,'\\','/','g') + endif + + let dirpat = '^\(\w\{-}\)://\(\w\+@\)\=\([^/]\+\)/\(.*\)$' + if dirname !~ dirpat + call netrw#msg#Notify('ERROR', printf("netrw doesn't understand your dirname<%s>", dirname)) + NetrwKeepj call s:NetrwOptionsRestore("w:") + setl noma nomod nowrap + return + endif + let b:netrw_curdir= dirname + endif " (additional remote handling) + + " ------------------------------- + " Perform Directory Listing: {{{3 + " ------------------------------- + NetrwKeepj call s:NetrwMaps(a:islocal) + NetrwKeepj call s:NetrwCommands(a:islocal) + NetrwKeepj call s:PerformListing(a:islocal) + + " restore option(s) + call s:NetrwOptionsRestore("w:") + + " If there is a rexposn: restore position with rexposn + " Otherwise : set rexposn + if exists("s:rexposn_".bufnr("%")) + NetrwKeepj call winrestview(s:rexposn_{bufnr('%')}) + if exists("w:netrw_bannercnt") && line(".") < w:netrw_bannercnt + NetrwKeepj exe w:netrw_bannercnt + endif + else + NetrwKeepj call s:SetRexDir(a:islocal,b:netrw_curdir) + endif + + " repoint t:netrw_lexbufnr if appropriate + if exists("repointlexbufnr") + let t:netrw_lexbufnr= bufnr("%") + endif + + " restore position + if reusing + call winrestview(svpos) + endif + + " The s:LocalBrowseRefresh() function is called by an autocmd + " installed by s:LocalFastBrowser() when g:netrw_fastbrowse <= 1 (ie. slow or medium speed). + " However, s:NetrwBrowse() causes the FocusGained event to fire the first time. + return +endfunction + +" s:NetrwFile: because of g:netrw_keepdir, isdirectory(), type(), etc may or {{{2 +" may not apply correctly; ie. netrw's idea of the current directory may +" differ from vim's. This function insures that netrw's idea of the current +" directory is used. +" Returns a path to the file specified by a:fname +function s:NetrwFile(fname) + + " clean up any leading treedepthstring + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let fname= substitute(a:fname,'^'.s:treedepthstring.'\+','','') + else + let fname= a:fname + endif + + if g:netrw_keepdir + " vim's idea of the current directory possibly may differ from netrw's + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + + if !g:netrw_cygwin && has("win32") + if isabsolutepath(fname) + " windows, but full path given + let ret= fname + else + " windows, relative path given + let ret= netrw#fs#ComposePath(b:netrw_curdir,fname) + endif + + elseif fname =~ '^/' + " not windows, full path given + let ret= fname + else + " not windows, relative path given + let ret= netrw#fs#ComposePath(b:netrw_curdir,fname) + endif + else + " vim and netrw agree on the current directory + let ret= fname + endif + + return ret +endfunction + +" s:NetrwFileInfo: supports qf (query for file information) {{{2 +function s:NetrwFileInfo(islocal,fname) + let ykeep= @@ + if a:islocal + let lsopt= "-lsad" + if g:netrw_sizestyle =~# 'H' + let lsopt= "-lsadh" + elseif g:netrw_sizestyle =~# 'h' + let lsopt= "-lsadh --si" + endif + if (has("unix") || has("macunix")) && executable("/bin/ls") + + if getline(".") == "../" + echo system("/bin/ls ".lsopt." ".netrw#os#Escape("..")) + + elseif w:netrw_liststyle == s:TREELIST && getline(".") !~ '^'.s:treedepthstring + echo system("/bin/ls ".lsopt." ".netrw#os#Escape(b:netrw_curdir)) + + elseif exists("b:netrw_curdir") + echo system("/bin/ls ".lsopt." ".netrw#os#Escape(netrw#fs#ComposePath(b:netrw_curdir,a:fname))) + + else + echo system("/bin/ls ".lsopt." ".netrw#os#Escape(s:NetrwFile(a:fname))) + endif + else + " use vim functions to return information about file below cursor + if !isdirectory(s:NetrwFile(a:fname)) && !filereadable(s:NetrwFile(a:fname)) && a:fname =~ '[*@/]' + let fname= substitute(a:fname,".$","","") + else + let fname= a:fname + endif + let t = getftime(s:NetrwFile(fname)) + let sz = getfsize(s:NetrwFile(fname)) + if g:netrw_sizestyle =~# "[hH]" + let sz= s:NetrwHumanReadable(sz) + endif + echo a:fname.": ".sz." ".strftime(g:netrw_timefmt,getftime(s:NetrwFile(fname))) + endif + else + echo "sorry, \"qf\" not supported yet for remote files" + endif + let @@= ykeep +endfunction + +" s:NetrwGetBuffer: [get a new|find an old netrw] buffer for a netrw listing {{{2 +" returns 0=cleared buffer +" 1=re-used buffer (buffer not cleared) +" Nov 09, 2020: tst952 shows that when user does :set hidden that NetrwGetBuffer will come up with a [No Name] buffer (hid fix) +function s:NetrwGetBuffer(islocal,dirname) + let dirname= a:dirname + + " re-use buffer if possible {{{3 + if !exists("s:netrwbuf") + let s:netrwbuf= {} + endif + + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let bufnum = -1 + + if !empty(s:netrwbuf) && has_key(s:netrwbuf,netrw#fs#AbsPath(dirname)) + if has_key(s:netrwbuf,"NetrwTreeListing") + let bufnum= s:netrwbuf["NetrwTreeListing"] + else + let bufnum= s:netrwbuf[netrw#fs#AbsPath(dirname)] + endif + if !bufexists(bufnum) + call remove(s:netrwbuf,"NetrwTreeListing") + let bufnum= -1 + endif + elseif bufnr("NetrwTreeListing") != -1 + let bufnum= bufnr("NetrwTreeListing") + else + let bufnum= -1 + endif + + elseif has_key(s:netrwbuf,netrw#fs#AbsPath(dirname)) + let bufnum= s:netrwbuf[netrw#fs#AbsPath(dirname)] + if !bufexists(bufnum) + call remove(s:netrwbuf,netrw#fs#AbsPath(dirname)) + let bufnum= -1 + endif + + else + let bufnum= -1 + endif + + " highjack the current buffer + " IF the buffer already has the desired name + " AND it is empty + let curbuf = bufname("%") + if curbuf == '.' + let curbuf = getcwd() + endif + if dirname == curbuf && line("$") == 1 && getline("%") == "" + return 0 + else " DEBUG + endif + " Aug 14, 2021: was thinking about looking for a [No Name] buffer here and using it, but that might cause problems + + " get enew buffer and name it -or- re-use buffer {{{3 + if bufnum < 0 " get enew buffer and name it + call s:NetrwEnew(dirname) + " name the buffer + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + " Got enew buffer; transform into a NetrwTreeListing + let w:netrw_treebufnr = bufnr("%") + call s:NetrwBufRename("NetrwTreeListing") + if g:netrw_use_noswf + setl nobl bt=nofile noswf + else + setl nobl bt=nofile + endif + nnoremap [[ :sil call TreeListMove('[[') + nnoremap ]] :sil call TreeListMove(']]') + nnoremap [] :sil call TreeListMove('[]') + nnoremap ][ :sil call TreeListMove('][') + else + call s:NetrwBufRename(dirname) + " enter the new buffer into the s:netrwbuf dictionary + let s:netrwbuf[netrw#fs#AbsPath(dirname)]= bufnr("%") + endif + + else " Re-use the buffer + " ignore all events + let eikeep= &ei + setl ei=all + + if &ft == "netrw" + exe "sil! NetrwKeepj noswapfile b ".bufnum + else + call s:NetrwEditBuf(bufnum) + endif + if bufname("%") == '.' + call s:NetrwBufRename(getcwd()) + endif + + " restore ei + let &ei= eikeep + + if line("$") <= 1 && getline(1) == "" + " empty buffer + NetrwKeepj call s:NetrwListSettings(a:islocal) + return 0 + + elseif g:netrw_fastbrowse == 0 || (a:islocal && g:netrw_fastbrowse == 1) + NetrwKeepj call s:NetrwListSettings(a:islocal) + sil NetrwKeepj %d _ + return 0 + + elseif exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + setl ma + sil NetrwKeepj %d _ + NetrwKeepj call s:NetrwListSettings(a:islocal) + return 0 + + else + return 1 + endif + endif + + " do netrw settings: make this buffer not-a-file, modifiable, not line-numbered, etc {{{3 + " fastbrowse Local Remote Hiding a buffer implies it may be re-used (fast) + " slow 0 D D Deleting a buffer implies it will not be re-used (slow) + " med 1 D H + " fast 2 H H + let fname= expand("%") + NetrwKeepj call s:NetrwListSettings(a:islocal) + call s:NetrwBufRename(fname) + + " delete all lines from buffer {{{3 + sil! keepalt NetrwKeepj %d _ + + return 0 +endfunction + +" s:NetrwGetWord: it gets the directory/file named under the cursor {{{2 +function s:NetrwGetWord() + let keepsol= &l:sol + setl nosol + + call s:UseBufWinVars() + + " insure that w:netrw_liststyle is set up + if !exists("w:netrw_liststyle") + if exists("g:netrw_liststyle") + let w:netrw_liststyle= g:netrw_liststyle + else + let w:netrw_liststyle= s:THINLIST + endif + endif + + if exists("w:netrw_bannercnt") && line(".") < w:netrw_bannercnt + " Active Banner support + NetrwKeepj norm! 0 + let dirname= "./" + let curline= getline('.') + + if curline =~# '"\s*Sorted by\s' + NetrwKeepj norm! "_s + let s:netrw_skipbrowse= 1 + echo 'Pressing "s" also works' + + elseif curline =~# '"\s*Sort sequence:' + let s:netrw_skipbrowse= 1 + echo 'Press "S" to edit sorting sequence' + + elseif curline =~# '"\s*Quick Help:' + NetrwKeepj norm! ? + let s:netrw_skipbrowse= 1 + + elseif curline =~# '"\s*\%(Hiding\|Showing\):' + NetrwKeepj norm! a + let s:netrw_skipbrowse= 1 + echo 'Pressing "a" also works' + + elseif line("$") > w:netrw_bannercnt + exe 'sil NetrwKeepj '.w:netrw_bannercnt + endif + + elseif w:netrw_liststyle == s:THINLIST + NetrwKeepj norm! 0 + let dirname= substitute(getline('.'),'\t -->.*$','','') + + elseif w:netrw_liststyle == s:LONGLIST + NetrwKeepj norm! 0 + let dirname= substitute(getline('.'),'^\(\%(\S\+ \)*\S\+\).\{-}$','\1','e') + + elseif exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let dirname= substitute(getline('.'),'^\('.s:treedepthstring.'\)*','','e') + let dirname= substitute(dirname,'\t -->.*$','','') + + else + let dirname= getline('.') + + if !exists("b:netrw_cpf") + let b:netrw_cpf= 0 + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$g/^./if virtcol("$") > b:netrw_cpf|let b:netrw_cpf= virtcol("$")|endif' + call histdel("/",-1) + endif + + let filestart = (virtcol(".")/b:netrw_cpf)*b:netrw_cpf + if filestart == 0 + NetrwKeepj norm! 0ma + else + call cursor(line("."),filestart+1) + NetrwKeepj norm! ma + endif + + let dict={} + " save the unnamed register and register 0-9 and a + let dict.a=[getreg('a'), getregtype('a')] + for i in range(0, 9) + let dict[i] = [getreg(i), getregtype(i)] + endfor + let dict.unnamed = [getreg(''), getregtype('')] + + let eofname= filestart + b:netrw_cpf + 1 + if eofname <= col("$") + call cursor(line("."),filestart+b:netrw_cpf+1) + NetrwKeepj norm! "ay`a + else + NetrwKeepj norm! "ay$ + endif + + let dirname = @a + call s:RestoreRegister(dict) + + let dirname= substitute(dirname,'\s\+$','','e') + endif + + " symlinks are indicated by a trailing "@". Remove it before further processing. + let dirname= substitute(dirname,"@$","","") + + " executables are indicated by a trailing "*". Remove it before further processing. + let dirname= substitute(dirname,"\*$","","") + + let &l:sol= keepsol + + return dirname +endfunction + +" s:NetrwListSettings: make standard settings for making a netrw listing {{{2 +" g:netrw_bufsettings will be used after the listing is produced. +" Called by s:NetrwGetBuffer() +function s:NetrwListSettings(islocal) + let fname= bufname("%") + " nobl noma nomod nonu noma nowrap ro nornu (std g:netrw_bufsettings) + setl bt=nofile nobl ma nonu nowrap noro nornu + call s:NetrwBufRename(fname) + if g:netrw_use_noswf + setl noswf + endif + exe "setl ts=".(g:netrw_maxfilenamelen+1) + setl isk+=.,~,- + if g:netrw_fastbrowse > a:islocal + setl bh=hide + else + setl bh=delete + endif +endfunction + +" s:NetrwListStyle: change list style (thin - long - wide - tree) {{{2 +" islocal=0: remote browsing +" =1: local browsing +function s:NetrwListStyle(islocal) + let ykeep = @@ + let fname = s:NetrwGetWord() + if !exists("w:netrw_liststyle")|let w:netrw_liststyle= g:netrw_liststyle|endif + let svpos = winsaveview() + let w:netrw_liststyle = (w:netrw_liststyle + 1) % s:MAXLIST + + " repoint t:netrw_lexbufnr if appropriate + if exists("t:netrw_lexbufnr") && bufnr("%") == t:netrw_lexbufnr + let repointlexbufnr= 1 + endif + + if w:netrw_liststyle == s:THINLIST + " use one column listing + let g:netrw_list_cmd = substitute(g:netrw_list_cmd,' -l','','ge') + + elseif w:netrw_liststyle == s:LONGLIST + " use long list + let g:netrw_list_cmd = g:netrw_list_cmd." -l" + + elseif w:netrw_liststyle == s:WIDELIST + " give wide list + let g:netrw_list_cmd = substitute(g:netrw_list_cmd,' -l','','ge') + + elseif exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let g:netrw_list_cmd = substitute(g:netrw_list_cmd,' -l','','ge') + + else + call netrw#msg#Notify('WARNING', printf('bad value for g:netrw_liststyle (=%s)', w:netrw_liststyle)) + let g:netrw_liststyle = s:THINLIST + let w:netrw_liststyle = g:netrw_liststyle + let g:netrw_list_cmd = substitute(g:netrw_list_cmd,' -l','','ge') + endif + setl ma noro + + " clear buffer - this will cause NetrwBrowse/LocalBrowseCheck to do a refresh + sil! NetrwKeepj %d _ + " following prevents tree listing buffer from being marked "modified" + setl nomod + + " refresh the listing + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call s:NetrwCursor(0) + + " repoint t:netrw_lexbufnr if appropriate + if exists("repointlexbufnr") + let t:netrw_lexbufnr= bufnr("%") + endif + + " restore position; keep cursor on the filename + NetrwKeepj call winrestview(svpos) + let @@= ykeep + +endfunction + +" s:NetrwBannerCtrl: toggles the display of the banner {{{2 +function s:NetrwBannerCtrl(islocal) + let ykeep= @@ + " toggle the banner (enable/suppress) + let g:netrw_banner= !g:netrw_banner + + " refresh the listing + let svpos= winsaveview() + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + + " keep cursor on the filename + if g:netrw_banner && exists("w:netrw_bannercnt") && line(".") >= w:netrw_bannercnt + let fname= s:NetrwGetWord() + sil NetrwKeepj $ + let result= search('\%(^\%(|\+\s\)\=\|\s\{2,}\)\zs'.escape(fname,'.\[]*$^').'\%(\s\{2,}\|$\)','bc') + if result <= 0 && exists("w:netrw_bannercnt") + exe "NetrwKeepj ".w:netrw_bannercnt + endif + endif + let @@= ykeep +endfunction + +" s:NetrwBookmark: supports :NetrwMB[!] [file]s {{{2 +" +" No bang: enters files/directories into Netrw's bookmark system +" No argument and in netrw buffer: +" if there are marked files: bookmark marked files +" otherwise : bookmark file/directory under cursor +" No argument and not in netrw buffer: bookmarks current open file +" Has arguments: globs them individually and bookmarks them +" +" With bang: deletes files/directories from Netrw's bookmark system +function s:NetrwBookmark(del,...) + if a:0 == 0 + if &ft == "netrw" + let curbufnr = bufnr("%") + + if exists("s:netrwmarkfilelist_{curbufnr}") + " for every filename in the marked list + let svpos = winsaveview() + let islocal= expand("%") !~ '^\a\{3,}://' + for fname in s:netrwmarkfilelist_{curbufnr} + if a:del|call s:DeleteBookmark(fname)|else|call s:MakeBookmark(fname)|endif + endfor + let curdir = exists("b:netrw_curdir")? b:netrw_curdir : getcwd() + call s:NetrwUnmarkList(curbufnr,curdir) + NetrwKeepj call s:NetrwRefresh(islocal,s:NetrwBrowseChgDir(islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + else + let fname= s:NetrwGetWord() + if a:del|call s:DeleteBookmark(fname)|else|call s:MakeBookmark(fname)|endif + endif + + else + " bookmark currently open file + let fname= expand("%") + if a:del|call s:DeleteBookmark(fname)|else|call s:MakeBookmark(fname)|endif + endif + + else + " bookmark specified files + " attempts to infer if working remote or local + " by deciding if the current file begins with an url + " Globbing cannot be done remotely. + let islocal= expand("%") !~ '^\a\{3,}://' + let i = 1 + while i <= a:0 + if islocal + let mbfiles = glob(fnameescape(a:{i}), 0, 1, 1) + else + let mbfiles = [a:{i}] + endif + for mbfile in mbfiles + if a:del + call s:DeleteBookmark(mbfile) + else + call s:MakeBookmark(mbfile) + endif + endfor + let i= i + 1 + endwhile + endif + + " update the menu + call s:NetrwBookmarkMenu() +endfunction + +" s:NetrwBookmarkMenu: Uses menu priorities {{{2 +" .2.[cnt] for bookmarks, and +" .3.[cnt] for history +" (see s:NetrwMenu()) +function s:NetrwBookmarkMenu() + if !exists("s:netrw_menucnt") + return + endif + + " the following test assures that gvim is running, has menus available, and has menus enabled. + if has("gui") && has("menu") && has("gui_running") && &go =~# 'm' && g:netrw_menu + if exists("g:NetrwTopLvlMenu") + exe 'sil! unmenu '.g:NetrwTopLvlMenu.'Bookmarks' + exe 'sil! unmenu '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Bookmark\ Delete' + endif + if !exists("s:netrw_initbookhist") + call s:NetrwBookHistRead() + endif + + " show bookmarked places + if exists("g:netrw_bookmarklist") && g:netrw_bookmarklist != [] && g:netrw_dirhistmax > 0 + let cnt= 1 + for bmd in g:netrw_bookmarklist + let bmd= escape(bmd,g:netrw_menu_escape) + + " show bookmarks for goto menu + exe 'sil! menu '.g:NetrwMenuPriority.".2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks.'.bmd.' :e '.bmd."\" + + " show bookmarks for deletion menu + exe 'sil! menu '.g:NetrwMenuPriority.".8.2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Bookmark\ Delete.'.bmd.' '.cnt."mB" + let cnt= cnt + 1 + endfor + + endif + + " show directory browsing history + if g:netrw_dirhistmax > 0 + let cnt = g:netrw_dirhistcnt + let first = 1 + let histcnt = 0 + while ( first || cnt != g:netrw_dirhistcnt ) + let histcnt = histcnt + 1 + let priority = g:netrw_dirhistcnt + histcnt + if exists("g:netrw_dirhist_{cnt}") + let histdir= escape(g:netrw_dirhist_{cnt},g:netrw_menu_escape) + exe 'sil! menu '.g:NetrwMenuPriority.".3.".priority." ".g:NetrwTopLvlMenu.'History.'.histdir.' :e '.histdir."\" + endif + let first = 0 + let cnt = ( cnt - 1 ) % g:netrw_dirhistmax + if cnt < 0 + let cnt= cnt + g:netrw_dirhistmax + endif + endwhile + endif + + endif +endfunction + +" s:NetrwBrowseChgDir: constructs a new directory based on the current {{{2 +" directory and a new directory name. Also, if the +" "new directory name" is actually a file, +" NetrwBrowseChgDir() edits the file. +" cursor=0: newdir is relative to b:netrw_curdir +" =1: newdir is relative to the path to the word under the cursor in +" tree view +function s:NetrwBrowseChgDir(islocal, newdir, cursor, ...) + let ykeep= @@ + if !exists("b:netrw_curdir") + let @@= ykeep + return + endif + + " NetrwBrowseChgDir; save options and initialize {{{3 + call s:SavePosn(s:netrw_posn) + NetrwKeepj call s:NetrwOptionsSave("s:") + NetrwKeepj call s:NetrwOptionsSafe(a:islocal) + + let newdir = a:newdir + let dirname = b:netrw_curdir + + if a:cursor && w:netrw_liststyle == s:TREELIST + " dirname is the path to the word under the cursor + let dirname = s:NetrwTreePath(w:netrw_treetop) + " If the word under the cursor is a directory (except for ../), NetrwTreePath + " returns the full path, including the word under the cursor, remove it + if newdir != "../" + let dirname = fnamemodify(dirname, ":h") + endif + endif + + if has("win32") + let dirname = substitute(dirname, '\\', '/', 'ge') + endif + + let dolockout = 0 + let dorestore = 1 + + " ignore s when done in the banner + if g:netrw_banner + if exists("w:netrw_bannercnt") && line(".") < w:netrw_bannercnt && line("$") >= w:netrw_bannercnt + if getline(".") =~# 'Quick Help' + let g:netrw_quickhelp= (g:netrw_quickhelp + 1)%len(s:QuickHelp) + setl ma noro nowrap + NetrwKeepj call setline(line('.'),'" Quick Help: :help '.s:QuickHelp[g:netrw_quickhelp]) + setl noma nomod nowrap + NetrwKeepj call s:NetrwOptionsRestore("s:") + endif + endif + endif + + " set up o/s-dependent directory recognition pattern + let dirpat = has("amiga") ? '[\/:]$' : '[\/]$' + + if newdir !~ dirpat && !(a:islocal && isdirectory(s:NetrwFile(netrw#fs#ComposePath(dirname, newdir)))) + " ------------------------------ + " NetrwBrowseChgDir: edit a file {{{3 + " ------------------------------ + + " save position for benefit of Rexplore + let s:rexposn_{bufnr("%")}= winsaveview() + + let dirname = isabsolutepath(newdir) + \ ? netrw#fs#AbsPath(newdir) + \ : netrw#fs#ComposePath(dirname, newdir) + + " this lets netrw#BrowseX avoid the edit + if a:0 < 1 + NetrwKeepj call s:NetrwOptionsRestore("s:") + let curdir= b:netrw_curdir + if !exists("s:didsplit") + if type(g:netrw_browse_split) == 3 + " open file in server + " Note that g:netrw_browse_split is a List: [servername,tabnr,winnr] + call s:NetrwServerEdit(a:islocal,dirname) + return + + elseif g:netrw_browse_split == 1 + " horizontally splitting the window first + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winheight(0))/100 : -g:netrw_winsize + exe "keepalt ".(g:netrw_alto? "bel " : "abo ").winsz."wincmd s" + if !&ea + keepalt wincmd _ + else + exe "keepalt wincmd =" + endif + call s:SetRexDir(a:islocal,curdir) + + elseif g:netrw_browse_split == 2 + " vertically splitting the window first + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize + exe "keepalt ".(g:netrw_alto? "top " : "bot ")."vert ".winsz."wincmd s" + if !&ea + keepalt wincmd | + else + exe "keepalt wincmd =" + endif + call s:SetRexDir(a:islocal,curdir) + + elseif g:netrw_browse_split == 3 + " open file in new tab + keepalt tabnew + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + call s:SetRexDir(a:islocal,curdir) + + elseif g:netrw_browse_split == 4 + " act like "P" (ie. open previous window) + if s:NetrwPrevWinOpen(2) == 3 + let @@= ykeep + return + endif + call s:SetRexDir(a:islocal,curdir) + + else + " handling a file, didn't split, so remove menu + call s:NetrwMenu(0) + " optional change to window + if g:netrw_chgwin >= 1 + if winnr("$")+1 == g:netrw_chgwin + " if g:netrw_chgwin is set to one more than the last window, then + " vertically split the last window to make that window available. + let curwin= winnr() + exe "NetrwKeepj keepalt ".winnr("$")."wincmd w" + vs + exe "NetrwKeepj keepalt ".g:netrw_chgwin."wincmd ".curwin + endif + exe "NetrwKeepj keepalt ".g:netrw_chgwin."wincmd w" + endif + call s:SetRexDir(a:islocal,curdir) + endif + + endif + + " the point where netrw actually edits the (local) file + " if its local only: LocalBrowseCheck() doesn't edit a file, but NetrwBrowse() will + " use keepalt to support :e # to return to a directory listing + if !&mod + " if e the new file would fail due to &mod, then don't change any of the flags + let dolockout= 1 + endif + + if a:islocal + " some like c-^ to return to the last edited file + " others like c-^ to return to the netrw buffer + " Apr 30, 2020: used to have e! here. That can cause loss of a modified file, + " so emit error E37 instead. + call s:NetrwEditFile("e","",dirname) + call s:NetrwCursor(1) + if &hidden || &bufhidden == "hide" + " file came from vim's hidden storage. Don't "restore" options with it. + let dorestore= 0 + endif + endif + + " handle g:Netrw_funcref -- call external-to-netrw functions + " This code will handle g:Netrw_funcref as an individual function reference + " or as a list of function references. It will ignore anything that's not + " a function reference. See :help Funcref for information about function references. + if exists("g:Netrw_funcref") + if type(g:Netrw_funcref) == 2 + NetrwKeepj call g:Netrw_funcref() + elseif type(g:Netrw_funcref) == 3 + for Fncref in g:Netrw_funcref + if type(Fncref) == 2 + NetrwKeepj call Fncref() + endif + endfor + endif + endif + endif + + elseif newdir =~ '^/' + " ---------------------------------------------------- + " NetrwBrowseChgDir: just go to the new directory spec {{{3 + " ---------------------------------------------------- + let dirname = newdir + NetrwKeepj call s:SetRexDir(a:islocal,dirname) + NetrwKeepj call s:NetrwOptionsRestore("s:") + norm! m` + + elseif newdir == './' + " --------------------------------------------- + " NetrwBrowseChgDir: refresh the directory list {{{3 + " --------------------------------------------- + NetrwKeepj call s:SetRexDir(a:islocal,dirname) + norm! m` + + elseif newdir == '../' + " -------------------------------------- + " NetrwBrowseChgDir: go up one directory {{{3 + " -------------------------------------- + + " The following regexps expect '/' as path separator + let dirname = substitute(netrw#fs#AbsPath(dirname), '\\', '/', 'ge') . '/' + + if w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") + " force a refresh + setl noro ma + NetrwKeepj %d _ + endif + + if has("amiga") + " amiga + if a:islocal + let dirname= substitute(dirname,'^\(.*[/:]\)\([^/]\+$\)','\1','') + let dirname= substitute(dirname,'/$','','') + else + let dirname= substitute(dirname,'^\(.*[/:]\)\([^/]\+/$\)','\1','') + endif + + elseif !g:netrw_cygwin && has("win32") + " windows + if a:islocal + let dirname= substitute(dirname,'^\(.*\)/\([^/]\+\)/$','\1','') + if dirname == "" + let dirname= '/' + endif + else + let dirname= substitute(dirname,'^\(\a\{3,}://.\{-}/\{1,2}\)\(.\{-}\)\([^/]\+\)/$','\1\2','') + endif + if dirname =~ '^\a:$' + let dirname= dirname.'/' + endif + + else + " unix or cygwin + if a:islocal + let dirname= substitute(dirname,'^\(.*\)/\([^/]\+\)/$','\1','') + if dirname == "" + let dirname= '/' + endif + else + let dirname= substitute(dirname,'^\(\a\{3,}://.\{-}/\{1,2}\)\(.\{-}\)\([^/]\+\)/$','\1\2','') + endif + endif + NetrwKeepj call s:SetRexDir(a:islocal,dirname) + norm! m` + + elseif exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") + " -------------------------------------- + " NetrwBrowseChgDir: Handle Tree Listing {{{3 + " -------------------------------------- + " force a refresh (for TREELIST, NetrwTreeDir() will force the refresh) + setl noro ma + if !(exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("b:netrw_curdir")) + NetrwKeepj %d _ + endif + let treedir = s:NetrwTreeDir(a:islocal) + let s:treecurpos = winsaveview() + let haskey = 0 + + " search treedict for tree dir as-is + if has_key(w:netrw_treedict,treedir) + let haskey= 1 + else + endif + + " search treedict for treedir with a [/@] appended + if !haskey && treedir !~ '[/@]$' + if has_key(w:netrw_treedict,treedir."/") + let treedir= treedir."/" + let haskey = 1 + else + endif + endif + + " search treedict for treedir with any trailing / elided + if !haskey && treedir =~ '/$' + let treedir= substitute(treedir,'/$','','') + if has_key(w:netrw_treedict,treedir) + let haskey = 1 + else + endif + endif + + if haskey + " close tree listing for selected subdirectory + call remove(w:netrw_treedict,treedir) + let dirname= w:netrw_treetop + else + " go down one directory + let dirname= substitute(treedir,'/*$','/','') + endif + NetrwKeepj call s:SetRexDir(a:islocal,dirname) + let s:treeforceredraw = 1 + + else + " ---------------------------------------- + " NetrwBrowseChgDir: Go down one directory {{{3 + " ---------------------------------------- + let dirname = netrw#fs#ComposePath(dirname,newdir) + NetrwKeepj call s:SetRexDir(a:islocal,dirname) + norm! m` + endif + + " -------------------------------------- + " NetrwBrowseChgDir: Restore and Cleanup {{{3 + " -------------------------------------- + if dorestore + " dorestore is zero'd when a local file was hidden or bufhidden; + " in such a case, we want to keep whatever settings it may have. + NetrwKeepj call s:NetrwOptionsRestore("s:") + endif + if dolockout && dorestore + if filewritable(dirname) + setl ma noro nomod + else + setl ma ro nomod + endif + endif + call s:RestorePosn(s:netrw_posn) + let @@= ykeep + + return dirname +endfunction + +" s:NetrwBrowseUpDir: implements the "-" mappings {{{2 +" for thin, long, and wide: cursor placed just after banner +" for tree, keeps cursor on current filename +function s:NetrwBrowseUpDir(islocal) + if exists("w:netrw_bannercnt") && line(".") < w:netrw_bannercnt-1 + " this test needed because occasionally this function seems to be incorrectly called + " when multiple leftmouse clicks are taken when atop the one line help in the banner. + " I'm allowing the very bottom line to permit a "-" exit so that one may escape empty + " directories. + return + endif + + norm! 0 + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") + let curline= getline(".") + let swwline= winline() - 1 + if exists("w:netrw_treetop") + let b:netrw_curdir= w:netrw_treetop + elseif exists("b:netrw_curdir") + let w:netrw_treetop= b:netrw_curdir + else + let w:netrw_treetop= getcwd() + let b:netrw_curdir = w:netrw_treetop + endif + let curfile = getline(".") + let curpath = s:NetrwTreePath(w:netrw_treetop) + if a:islocal + call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,'../',0)) + else + call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,'../',0)) + endif + if w:netrw_treetop == '/' + keepj call search('^\M'.curfile,"w") + elseif curfile == '../' + keepj call search('^\M'.curfile,"wb") + else + while 1 + keepj call search('^\M'.s:treedepthstring.curfile,"wb") + let treepath= s:NetrwTreePath(w:netrw_treetop) + if treepath == curpath + break + endif + endwhile + endif + + else + call s:SavePosn(s:netrw_posn) + if exists("b:netrw_curdir") + let curdir= b:netrw_curdir + else + let curdir= expand(getcwd()) + endif + if a:islocal + call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,'../',0)) + else + call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,'../',0)) + endif + call s:RestorePosn(s:netrw_posn) + let curdir= substitute(curdir,'^.*[\/]','','') + let curdir= '\<'. escape(curdir, '~'). '/' + call search(curdir,'wc') + endif +endfunction + +" netrw#BrowseX: (implements "x") executes a special "viewer" script or program for the {{{2 +" given filename; typically this means given their extension. +function netrw#BrowseX(fname) + " special core dump handler + if a:fname =~ '/core\(\.\d\+\)\=$' && exists("g:Netrw_corehandler") + if type(g:Netrw_corehandler) == v:t_func + " g:Netrw_corehandler is a function reference (see :help Funcref) + call g:Netrw_corehandler(s:NetrwFile(a:fname)) + elseif type(g:Netrw_corehandler) == v:t_list + " g:Netrw_corehandler is a List of function references (see :help Funcref) + for Fncref in g:Netrw_corehandler + if type(Fncref) == v:t_func + call Fncref(a:fname) + endif + endfor + endif + return + endif + + let fname = a:fname + " special ~ handler for local + if fname =~ '^\~' && expand("$HOME") != "" + let fname = substitute(fname, '^\~', expand("$HOME"), '') + endif + + if fname =~ '^[a-z]\+://' + " open a remote file + call netrw#os#Open(fname) + else + call netrw#os#Open(s:NetrwFile(fname)) + endif +endfunction + +" s:NetrwBufRename: renames a buffer without the side effect of retaining an unlisted buffer having the old name {{{2 +" Using the file command on a "[No Name]" buffer does not seem to cause the old "[No Name]" buffer +" to become an unlisted buffer, so in that case don't bwipe it. +function s:NetrwBufRename(newname) + let oldbufname= bufname(bufnr("%")) + + if oldbufname != a:newname + let b:junk= 1 + exe 'sil! keepj keepalt file '.fnameescape(a:newname) + let oldbufnr= bufnr(oldbufname) + if oldbufname != "" && oldbufnr != -1 && oldbufnr != bufnr("%") + exe "bwipe! ".oldbufnr + endif + endif + +endfunction + +" netrw#CheckIfRemote: returns 1 if current file looks like an url, 0 else {{{2 +function netrw#CheckIfRemote(...) + if a:0 > 0 + let curfile= a:1 + else + let curfile= expand("%") + endif + if curfile =~ '^\a\{3,}://' + return 1 + else + return 0 + endif +endfunction + +" s:NetrwChgPerm: (implements "gp") change file permission {{{2 +function s:NetrwChgPerm(islocal,curdir) + let ykeep = @@ + call inputsave() + let newperm= input("Enter new permission: ") + call inputrestore() + let fullpath = fnamemodify(netrw#fs#PathJoin(a:curdir, expand("")), ':p') + let chgperm= substitute(g:netrw_chgperm,'\',netrw#os#Escape(fullpath),'') + let chgperm= substitute(chgperm,'\',netrw#os#Escape(newperm),'') + call system(chgperm) + if v:shell_error != 0 + NetrwKeepj call netrw#msg#Notify('WARNING', printf('changing permission on file<%s> seems to have failed', fullpath)) + endif + if a:islocal + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + endif + let @@= ykeep +endfunction + +" s:NetrwClearExplore: clear explore variables (if any) {{{2 +function s:NetrwClearExplore() + 2match none + if exists("s:explore_match") |unlet s:explore_match |endif + if exists("s:explore_indx") |unlet s:explore_indx |endif + if exists("s:netrw_explore_prvdir") |unlet s:netrw_explore_prvdir |endif + if exists("s:dirstarstar") |unlet s:dirstarstar |endif + if exists("s:explore_prvdir") |unlet s:explore_prvdir |endif + if exists("w:netrw_explore_indx") |unlet w:netrw_explore_indx |endif + if exists("w:netrw_explore_listlen")|unlet w:netrw_explore_listlen|endif + if exists("w:netrw_explore_list") |unlet w:netrw_explore_list |endif + if exists("w:netrw_explore_bufnr") |unlet w:netrw_explore_bufnr |endif + " redraw! +endfunction + +" s:NetrwEditBuf: decides whether or not to use keepalt to edit a buffer {{{2 +function s:NetrwEditBuf(bufnum) + if exists("g:netrw_altfile") && g:netrw_altfile && &ft == "netrw" + exe "sil! NetrwKeepj keepalt noswapfile b ".fnameescape(a:bufnum) + else + exe "sil! NetrwKeepj noswapfile b ".fnameescape(a:bufnum) + endif +endfunction + +" s:NetrwEditFile: decides whether or not to use keepalt to edit a file {{{2 +" NetrwKeepj [keepalt] +function s:NetrwEditFile(cmd,opt,fname) + if exists("g:netrw_altfile") && g:netrw_altfile && &ft == "netrw" + exe "NetrwKeepj noswapfile keepalt ".a:opt." ".a:cmd." ".fnameescape(a:fname) + else + if a:cmd =~# 'e\%[new]!' && !&hidden && getbufvar(bufname('%'), '&modified', 0) + call setbufvar(bufname('%'), '&bufhidden', 'hide') + endif + exe "NetrwKeepj noswapfile ".a:opt." ".a:cmd." ".fnameescape(a:fname) + endif +endfunction + +" s:NetrwExploreListUniq: {{{2 +function s:NetrwExploreListUniq(explist) + " this assumes that the list is already sorted + let newexplist= [] + for member in a:explist + if !exists("uniqmember") || member != uniqmember + let uniqmember = member + let newexplist = newexplist + [ member ] + endif + endfor + return newexplist +endfunction + +" s:NetrwForceChgDir: (gd support) Force treatment as a directory {{{2 +function s:NetrwForceChgDir(islocal,newdir) + let ykeep= @@ + if a:newdir !~ '/$' + " ok, looks like force is needed to get directory-style treatment + if a:newdir =~ '@$' + let newdir= substitute(a:newdir,'@$','/','') + elseif a:newdir =~ '[*=|\\]$' + let newdir= substitute(a:newdir,'.$','/','') + else + let newdir= a:newdir.'/' + endif + else + " should already be getting treatment as a directory + let newdir= a:newdir + endif + let newdir= s:NetrwBrowseChgDir(a:islocal,newdir,0) + call s:NetrwBrowse(a:islocal,newdir) + let @@= ykeep +endfunction + +" s:NetrwForceFile: (gf support) Force treatment as a file {{{2 +function s:NetrwForceFile(islocal,newfile) + if a:newfile =~ '[/@*=|\\]$' + let newfile= substitute(a:newfile,'.$','','') + else + let newfile= a:newfile + endif + if a:islocal + call s:NetrwBrowseChgDir(a:islocal,newfile,0) + else + call s:NetrwBrowse(a:islocal,s:NetrwBrowseChgDir(a:islocal,newfile,0)) + endif +endfunction + +" s:NetrwHide: this function is invoked by the "a" map for browsing {{{2 +" and switches the hiding mode. The actual hiding is done by +" s:NetrwListHide(). +" g:netrw_hide= 0: show all +" 1: show not-hidden files +" 2: show hidden files only +function s:NetrwHide(islocal) + let ykeep= @@ + let svpos= winsaveview() + + if exists("s:netrwmarkfilelist_{bufnr('%')}") + + " hide the files in the markfile list + for fname in s:netrwmarkfilelist_{bufnr("%")} + if match(g:netrw_list_hide,'\<'.fname.'\>') != -1 + " remove fname from hiding list + let g:netrw_list_hide= substitute(g:netrw_list_hide,'..\<'.escape(fname,g:netrw_fname_escape).'\>..','','') + let g:netrw_list_hide= substitute(g:netrw_list_hide,',,',',','g') + let g:netrw_list_hide= substitute(g:netrw_list_hide,'^,\|,$','','') + else + " append fname to hiding list + if exists("g:netrw_list_hide") && g:netrw_list_hide != "" + let g:netrw_list_hide= g:netrw_list_hide.',\<'.escape(fname,g:netrw_fname_escape).'\>' + else + let g:netrw_list_hide= '\<'.escape(fname,g:netrw_fname_escape).'\>' + endif + endif + endfor + NetrwKeepj call s:NetrwUnmarkList(bufnr("%"),b:netrw_curdir) + let g:netrw_hide= 1 + + else + + " switch between show-all/show-not-hidden/show-hidden + let g:netrw_hide=(g:netrw_hide+1)%3 + exe "NetrwKeepj norm! 0" + if g:netrw_hide && g:netrw_list_hide == "" + call netrw#msg#Notify('WARNING', 'your hiding list is empty!') + let @@= ykeep + return + endif + endif + + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + let @@= ykeep +endfunction + +" s:NetrwHideEdit: allows user to edit the file/directory hiding list {{{2 +function s:NetrwHideEdit(islocal) + let ykeep= @@ + " save current cursor position + let svpos= winsaveview() + + " get new hiding list from user + call inputsave() + let newhide= input("Edit Hiding List: ",g:netrw_list_hide) + call inputrestore() + let g:netrw_list_hide= newhide + + " refresh the listing + sil NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,"./",0)) + + " restore cursor position + call winrestview(svpos) + let @@= ykeep +endfunction + +" s:NetrwHidden: invoked by "gh" {{{2 +function s:NetrwHidden(islocal) + let ykeep= @@ + " save current position + let svpos = winsaveview() + + if g:netrw_list_hide =~ '\(^\|,\)\\(^\\|\\s\\s\\)\\zs\\.\\S\\+' + " remove .file pattern from hiding list + let g:netrw_list_hide= substitute(g:netrw_list_hide,'\(^\|,\)\\(^\\|\\s\\s\\)\\zs\\.\\S\\+','','') + elseif strdisplaywidth(g:netrw_list_hide) >= 1 + let g:netrw_list_hide= g:netrw_list_hide . ',\(^\|\s\s\)\zs\.\S\+' + else + let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+' + endif + if g:netrw_list_hide =~ '^,' + let g:netrw_list_hide= strpart(g:netrw_list_hide,1) + endif + + " refresh screen and return to saved position + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + let @@= ykeep +endfunction + +" s:NetrwHome: this function determines a "home" for saving bookmarks and history {{{2 +function s:NetrwHome() + if has('nvim') + let home = netrw#fs#PathJoin(stdpath('state'), 'netrw') + elseif exists('g:netrw_home') + let home = expand(g:netrw_home) + elseif exists('$MYVIMDIR') + let home = expand('$MYVIMDIR')->substitute('/$', '', '') + else + " Pick the first redable directory in 'runtimepath' + for path in split(&rtp, ',') + if isdirectory(s:NetrwFile(path)) && filewritable(s:NetrwFile(path)) + let home = path + break + endif + endfor + + if empty(path) + " just pick the first directory + let home = substitute(&rtp, ',.*$', '', '') + endif + endif + + " insure that the home directory exists + if g:netrw_dirhistmax > 0 && !isdirectory(s:NetrwFile(home)) + if exists("g:netrw_mkdir") + call system(g:netrw_mkdir." ".s:ShellEscape(s:NetrwFile(home))) + else + call mkdir(home) + endif + endif + + " Normalize directory if on Windows + if has("win32") + let home = substitute(home, '/', '\\', 'g') + endif + + let g:netrw_home = home + return home +endfunction + +" s:NetrwLeftmouse: handles the when in a netrw browsing window {{{2 +function s:NetrwLeftmouse(islocal) + if exists("s:netrwdrag") + return + endif + if &ft != "netrw" + return + endif + + let ykeep= @@ + " check if the status bar was clicked on instead of a file/directory name + while getchar(0) != 0 + "clear the input stream + endwhile + call feedkeys("\") + let c = getchar() + let mouse_lnum = v:mouse_lnum + let wlastline = line('w$') + let lastline = line('$') + if mouse_lnum >= wlastline + 1 || v:mouse_win != winnr() + " appears to be a status bar leftmouse click + let @@= ykeep + return + endif + " Dec 04, 2013: following test prevents leftmouse selection/deselection of directories and files in treelist mode + " Windows are separated by vertical separator bars - but the mouse seems to be doing what it should when dragging that bar + " without this test when its disabled. + " May 26, 2014: edit file, :Lex, resize window -- causes refresh. Reinstated a modified test. See if problems develop. + if v:mouse_col > virtcol('.') + let @@= ykeep + return + endif + + if a:islocal + if exists("b:netrw_curdir") + NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1)) + endif + else + if exists("b:netrw_curdir") + NetrwKeepj call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,s:NetrwGetWord(),1)) + endif + endif + let @@= ykeep +endfunction + +" s:NetrwCLeftmouse: used to select a file/directory for a target {{{2 +function s:NetrwCLeftmouse(islocal) + if &ft != "netrw" + return + endif + call s:NetrwMarkFileTgt(a:islocal) +endfunction + +" s:NetrwServerEdit: edit file in a server gvim, usually NETRWSERVER (implements ){{{2 +" a:islocal=0 : not used, remote +" a:islocal=1 : not used, local +" a:islocal=2 : used, remote +" a:islocal=3 : used, local +function s:NetrwServerEdit(islocal,fname) + let islocal = a:islocal%2 " =0: remote =1: local + let ctrlr = a:islocal >= 2 " =0: not used =1: used + + if (islocal && isdirectory(s:NetrwFile(a:fname))) || (!islocal && a:fname =~ '/$') + " handle directories in the local window -- not in the remote vim server + " user must have closed the NETRWSERVER window. Treat as normal editing from netrw. + let g:netrw_browse_split= 0 + if exists("s:netrw_browse_split") && exists("s:netrw_browse_split_".winnr()) + let g:netrw_browse_split= s:netrw_browse_split_{winnr()} + unlet s:netrw_browse_split_{winnr()} + endif + call s:NetrwBrowse(islocal,s:NetrwBrowseChgDir(islocal,a:fname,0)) + return + endif + + if has("clientserver") && executable("gvim") + + if exists("g:netrw_browse_split") && type(g:netrw_browse_split) == 3 + let srvrname = g:netrw_browse_split[0] + let tabnum = g:netrw_browse_split[1] + let winnum = g:netrw_browse_split[2] + + if serverlist() !~ '\<'.srvrname.'\>' + if !ctrlr + " user must have closed the server window and the user did not use , but + " used something like . + if exists("g:netrw_browse_split") + unlet g:netrw_browse_split + endif + let g:netrw_browse_split= 0 + if exists("s:netrw_browse_split_".winnr()) + let g:netrw_browse_split= s:netrw_browse_split_{winnr()} + endif + call s:NetrwBrowseChgDir(islocal,a:fname,0) + return + + elseif has("win32") && executable("start") + " start up remote netrw server under windows + call system("start gvim --servername ".srvrname) + + else + " start up remote netrw server under linux + call system("gvim --servername ".srvrname) + endif + endif + + call remote_send(srvrname,":tabn ".tabnum."\") + call remote_send(srvrname,":".winnum."wincmd w\") + call remote_send(srvrname,":e ".fnameescape(s:NetrwFile(a:fname))."\") + else + + if serverlist() !~ '\<'.g:netrw_servername.'\>' + + if !ctrlr + if exists("g:netrw_browse_split") + unlet g:netrw_browse_split + endif + let g:netrw_browse_split= 0 + call s:NetrwBrowse(islocal,s:NetrwBrowseChgDir(islocal,a:fname,0)) + return + + else + if has("win32") && executable("start") + " start up remote netrw server under windows + call system("start gvim --servername ".g:netrw_servername) + else + " start up remote netrw server under linux + call system("gvim --servername ".g:netrw_servername) + endif + endif + endif + + while 1 + try + call remote_send(g:netrw_servername,":e ".fnameescape(s:NetrwFile(a:fname))."\") + break + catch /^Vim\%((\a\+)\)\=:E241/ + sleep 200m + endtry + endwhile + + if exists("g:netrw_browse_split") + if type(g:netrw_browse_split) != 3 + let s:netrw_browse_split_{winnr()}= g:netrw_browse_split + endif + unlet g:netrw_browse_split + endif + let g:netrw_browse_split= [g:netrw_servername,1,1] + endif + + else + call netrw#msg#Notify('ERROR', 'you need a gui-capable vim and client-server to use ') + endif + +endfunction + +" s:NetrwSLeftmouse: marks the file under the cursor. May be dragged to select additional files {{{2 +function s:NetrwSLeftmouse(islocal) + if &ft != "netrw" + return + endif + + let s:ngw= s:NetrwGetWord() + call s:NetrwMarkFile(a:islocal,s:ngw) + +endfunction + +" s:NetrwSLeftdrag: invoked via a shift-leftmouse and dragging {{{2 +" Used to mark multiple files. +function s:NetrwSLeftdrag(islocal) + if !exists("s:netrwdrag") + let s:netrwdrag = winnr() + if a:islocal + nno :call NetrwSLeftrelease(1) + else + nno :call NetrwSLeftrelease(0) + endif + endif + let ngw = s:NetrwGetWord() + if !exists("s:ngw") || s:ngw != ngw + call s:NetrwMarkFile(a:islocal,ngw) + endif + let s:ngw= ngw +endfunction + +" s:NetrwSLeftrelease: terminates shift-leftmouse dragging {{{2 +function s:NetrwSLeftrelease(islocal) + if exists("s:netrwdrag") + nunmap + let ngw = s:NetrwGetWord() + if !exists("s:ngw") || s:ngw != ngw + call s:NetrwMarkFile(a:islocal,ngw) + endif + if exists("s:ngw") + unlet s:ngw + endif + unlet s:netrwdrag + endif +endfunction + +" s:NetrwListHide: uses [range]g~...~d to delete files that match {{{2 +" comma-separated patterns given in g:netrw_list_hide +function s:NetrwListHide() + let ykeep= @@ + + " find a character not in the "hide" string to use as a separator for :g and :v commands + " How-it-works: take the hiding command, convert it into a range. + " Duplicate characters don't matter. + " Remove all such characters from the '/~@#...890' string. + " Use the first character left as a separator character. + let listhide= g:netrw_list_hide + let sep = strpart(substitute('~@#$%^&*{};:,<.>?|1234567890','['.escape(listhide,'-]^\').']','','ge'),1,1) + + while listhide != "" + if listhide =~ ',' + let hide = substitute(listhide,',.*$','','e') + let listhide = substitute(listhide,'^.\{-},\(.*\)$','\1','e') + else + let hide = listhide + let listhide = "" + endif + if g:netrw_sort_by =~ '^[ts]' + if hide =~ '^\^' + let hide= substitute(hide,'^\^','^\(\\d\\+/\)','') + elseif hide =~ '^\\(\^' + let hide= substitute(hide,'^\\(\^','\\(^\\(\\d\\+/\\)','') + endif + endif + + " Prune the list by hiding any files which match + if g:netrw_hide == 1 + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$g'.sep.hide.sep.'d' + elseif g:netrw_hide == 2 + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$g'.sep.hide.sep.'s@^@ /-KEEP-/ @' + endif + endwhile + + if g:netrw_hide == 2 + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$v@^ /-KEEP-/ @d' + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s@^\%( /-KEEP-/ \)\+@@e' + endif + + " remove any blank lines that have somehow remained. + " This seems to happen under Windows. + exe 'sil! NetrwKeepj 1,$g@^\s*$@d' + + let @@= ykeep +endfunction + +" s:NetrwMakeDir: this function makes a directory (both local and remote) {{{2 +" implements the "d" mapping. +function s:NetrwMakeDir(usrhost) + + let ykeep= @@ + " get name of new directory from user. A bare will skip. + " if its currently a directory, also request will be skipped, but with + " a message. + call inputsave() + let newdirname= input("Please give directory name: ") + call inputrestore() + + if newdirname == "" + let @@= ykeep + return + endif + + if a:usrhost == "" + + " Local mkdir: + " sanity checks + let fullnewdir= b:netrw_curdir.'/'.newdirname + if isdirectory(s:NetrwFile(fullnewdir)) + call netrw#msg#Notify('WARNING', printf('<%s> is already a directory!', newdirname)) + let @@= ykeep + return + endif + if s:FileReadable(fullnewdir) + call netrw#msg#Notify('WARNING', printf('<%s> is already a file!', newdirname)) + let @@= ykeep + return + endif + + " requested new local directory is neither a pre-existing file or + " directory, so make it! + if has("unix") + call mkdir(fullnewdir,"p",xor(0777, system("umask"))) + else + call mkdir(fullnewdir,"p") + endif + + " on success refresh listing + let svpos= winsaveview() + call s:NetrwRefresh(1,s:NetrwBrowseChgDir(1,'./',0)) + call winrestview(svpos) + + elseif !exists("b:netrw_method") || b:netrw_method == 4 + " Remote mkdir: using ssh + let mkdircmd = s:MakeSshCmd(g:netrw_mkdir_cmd) + let newdirname= substitute(b:netrw_curdir,'^\%(.\{-}/\)\{3}\(.*\)$','\1','').newdirname + call netrw#os#Execute("sil! !".mkdircmd." ".netrw#os#Escape(newdirname,1)) + if v:shell_error == 0 + " refresh listing + let svpos= winsaveview() + NetrwKeepj call s:NetrwRefresh(0,s:NetrwBrowseChgDir(0,'./',0)) + NetrwKeepj call winrestview(svpos) + else + call netrw#msg#Notify('ERROR', printf('unable to make directory<%s>', newdirname)) + endif + + elseif b:netrw_method == 2 + " Remote mkdir: using ftp+.netrc + let svpos= winsaveview() + if exists("b:netrw_fname") + let remotepath= b:netrw_fname + else + let remotepath= "" + endif + call s:NetrwRemoteFtpCmd(remotepath,g:netrw_remote_mkdir.' "'.newdirname.'"') + NetrwKeepj call s:NetrwRefresh(0,s:NetrwBrowseChgDir(0,'./',0)) + NetrwKeepj call winrestview(svpos) + + elseif b:netrw_method == 3 + " Remote mkdir: using ftp + machine, id, passwd, and fname (ie. no .netrc) + let svpos= winsaveview() + if exists("b:netrw_fname") + let remotepath= b:netrw_fname + else + let remotepath= "" + endif + call s:NetrwRemoteFtpCmd(remotepath,g:netrw_remote_mkdir.' "'.newdirname.'"') + NetrwKeepj call s:NetrwRefresh(0,s:NetrwBrowseChgDir(0,'./',0)) + NetrwKeepj call winrestview(svpos) + endif + + let @@= ykeep +endfunction + +" s:TreeSqueezeDir: allows a shift-cr (gvim only) to squeeze the current tree-listing directory {{{2 +function s:TreeSqueezeDir(islocal) + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") + " its a tree-listing style + let curdepth = substitute(getline('.'),'^\(\%('.s:treedepthstring.'\)*\)[^'.s:treedepthstring.'].\{-}$','\1','e') + let stopline = (exists("w:netrw_bannercnt")? (w:netrw_bannercnt + 1) : 1) + let depth = strchars(substitute(curdepth,' ','','g')) + let srch = -1 + if depth >= 2 + NetrwKeepj norm! 0 + let curdepthm1= substitute(curdepth,'^'.s:treedepthstring,'','') + let srch = search('^'.curdepthm1.'\%('.s:treedepthstring.'\)\@!','bW',stopline) + elseif depth == 1 + NetrwKeepj norm! 0 + let treedepthchr= substitute(s:treedepthstring,' ','','') + let srch = search('^[^'.treedepthchr.']','bW',stopline) + endif + if srch > 0 + call s:NetrwBrowse(a:islocal,s:NetrwBrowseChgDir(a:islocal,s:NetrwGetWord(),1)) + exe srch + endif + endif +endfunction + +" s:NetrwMaps: {{{2 +function s:NetrwMaps(islocal) + + " mouse maps: {{{3 + if g:netrw_mousemaps && g:netrw_retmap + if !hasmapto("NetrwReturn") + if maparg("<2-leftmouse>","n") == "" || maparg("<2-leftmouse>","n") =~ '^-$' + nmap <2-leftmouse> NetrwReturn + elseif maparg("","n") == "" + nmap NetrwReturn + endif + endif + nno NetrwReturn :Rexplore + endif + + " generate default maps {{{3 + if !hasmapto('NetrwHide') |nmap a NetrwHide_a|endif + if !hasmapto('NetrwBrowseUpDir') |nmap - NetrwBrowseUpDir|endif + if !hasmapto('NetrwOpenFile') |nmap % NetrwOpenFile|endif + if !hasmapto('NetrwBadd_cb') |nmap cb NetrwBadd_cb|endif + if !hasmapto('NetrwBadd_cB') |nmap cB NetrwBadd_cB|endif + if !hasmapto('NetrwLcd') |nmap cd NetrwLcd|endif + if !hasmapto('NetrwSetChgwin') |nmap C NetrwSetChgwin|endif + if !hasmapto('NetrwRefresh') |nmap NetrwRefresh|endif + if !hasmapto('NetrwLocalBrowseCheck') |nmap NetrwLocalBrowseCheck|endif + if !hasmapto('NetrwServerEdit') |nmap NetrwServerEdit|endif + if !hasmapto('NetrwMakeDir') |nmap d NetrwMakeDir|endif + if !hasmapto('NetrwBookHistHandler_gb')|nmap gb NetrwBookHistHandler_gb|endif + + if a:islocal + " local normal-mode maps {{{3 + nnoremap NetrwHide_a :call NetrwHide(1) + nnoremap NetrwBrowseUpDir :call NetrwBrowseUpDir(1) + nnoremap NetrwOpenFile :call NetrwOpenFile(1) + nnoremap NetrwBadd_cb :call NetrwBadd(1,0) + nnoremap NetrwBadd_cB :call NetrwBadd(1,1) + nnoremap NetrwLcd :call NetrwLcd(b:netrw_curdir) + nnoremap NetrwSetChgwin :call NetrwSetChgwin() + nnoremap NetrwLocalBrowseCheck :call netrw#LocalBrowseCheck(NetrwBrowseChgDir(1,NetrwGetWord(),1)) + nnoremap NetrwServerEdit :call NetrwServerEdit(3,NetrwGetWord()) + nnoremap NetrwMakeDir :call NetrwMakeDir("") + nnoremap NetrwBookHistHandler_gb :call NetrwBookHistHandler(1,b:netrw_curdir) + " --------------------------------------------------------------------- + nnoremap gd :call NetrwForceChgDir(1,NetrwGetWord()) + nnoremap gf :call NetrwForceFile(1,NetrwGetWord()) + nnoremap gh :call NetrwHidden(1) + nnoremap gn :call netrw#SetTreetop(0,NetrwGetWord()) + nnoremap gp :call NetrwChgPerm(1,b:netrw_curdir) + nnoremap I :call NetrwBannerCtrl(1) + nnoremap i :call NetrwListStyle(1) + nnoremap ma :call NetrwMarkFileArgList(1,0) + nnoremap mA :call NetrwMarkFileArgList(1,1) + nnoremap mb :call NetrwBookHistHandler(0,b:netrw_curdir) + nnoremap mB :call NetrwBookHistHandler(6,b:netrw_curdir) + nnoremap mc :call NetrwMarkFileCopy(1) + nnoremap md :call NetrwMarkFileDiff(1) + nnoremap me :call NetrwMarkFileEdit(1) + nnoremap mf :call NetrwMarkFile(1,NetrwGetWord()) + nnoremap mF :call NetrwUnmarkList(bufnr("%"),b:netrw_curdir) + nnoremap mg :call NetrwMarkFileGrep(1) + nnoremap mh :call NetrwMarkHideSfx(1) + nnoremap mm :call NetrwMarkFileMove(1) + nnoremap mr :call NetrwMarkFileRegexp(1) + nnoremap ms :call NetrwMarkFileSource(1) + nnoremap mT :call NetrwMarkFileTag(1) + nnoremap mt :call NetrwMarkFileTgt(1) + nnoremap mu :call NetrwUnMarkFile(1) + nnoremap mv :call NetrwMarkFileVimCmd(1) + nnoremap mx :call NetrwMarkFileExe(1,0) + nnoremap mX :call NetrwMarkFileExe(1,1) + nnoremap mz :call NetrwMarkFileCompress(1) + nnoremap O :call NetrwObtain(1) + nnoremap o :call NetrwSplit(3) + nnoremap p :call NetrwPreview(NetrwBrowseChgDir(1,NetrwGetWord(),1,1)) + nnoremap P :call NetrwPrevWinOpen(1) + nnoremap qb :call NetrwBookHistHandler(2,b:netrw_curdir) + nnoremap qf :call NetrwFileInfo(1,NetrwGetWord()) + nnoremap qF :call NetrwMarkFileQFEL(1,getqflist()) + nnoremap qL :call NetrwMarkFileQFEL(1,getloclist(v:count)) + nnoremap s :call NetrwSortStyle(1) + nnoremap S :call NetSortSequence(1) + nnoremap Tb :call NetrwSetTgt(1,'b',v:count1) + nnoremap t :call NetrwSplit(4) + nnoremap Th :call NetrwSetTgt(1,'h',v:count) + nnoremap u :call NetrwBookHistHandler(4,expand("%")) + nnoremap U :call NetrwBookHistHandler(5,expand("%")) + nnoremap v :call NetrwSplit(5) + nnoremap x :call netrw#BrowseX(NetrwBrowseChgDir(1,NetrwGetWord(),1,0))" + nnoremap X :call NetrwLocalExecute(expand(""))" + + nnoremap r :let g:netrw_sort_direction= (g:netrw_sort_direction =~# 'n')? 'r' : 'n'exe "norm! 0"call NetrwRefresh(1,NetrwBrowseChgDir(1,'./',0)) + if !hasmapto('NetrwHideEdit') + nmap NetrwHideEdit + endif + nnoremap NetrwHideEdit :call NetrwHideEdit(1) + if !hasmapto('NetrwRefresh') + nmap NetrwRefresh + endif + nnoremap NetrwRefresh :call NetrwRefresh(1,NetrwBrowseChgDir(1,(exists("w:netrw_liststyle") && exists("w:netrw_treetop") && w:netrw_liststyle == 3)? w:netrw_treetop : './',0)) + if s:didstarstar || !mapcheck("","n") + nnoremap :Nexplore + endif + if s:didstarstar || !mapcheck("","n") + nnoremap :Pexplore + endif + if !hasmapto('NetrwTreeSqueeze') + nmap NetrwTreeSqueeze + endif + nnoremap NetrwTreeSqueeze :call TreeSqueezeDir(1) + let mapsafecurdir = escape(b:netrw_curdir, s:netrw_map_escape) + if g:netrw_mousemaps == 1 + nmap NetrwLeftmouse + nmap NetrwCLeftmouse + nmap NetrwMiddlemouse + nmap NetrwSLeftmouse + nmap NetrwSLeftdrag + nmap <2-leftmouse> Netrw2Leftmouse + imap ILeftmouse + imap IMiddlemouse + nno NetrwLeftmouse :exec "norm! \leftmouse>"call NetrwLeftmouse(1) + nno NetrwCLeftmouse :exec "norm! \leftmouse>"call NetrwCLeftmouse(1) + nno NetrwMiddlemouse :exec "norm! \leftmouse>"call NetrwPrevWinOpen(1) + nno NetrwSLeftmouse :exec "norm! \leftmouse>"call NetrwSLeftmouse(1) + nno NetrwSLeftdrag :exec "norm! \leftmouse>"call NetrwSLeftdrag(1) + nmap Netrw2Leftmouse - + exe 'nnoremap :exec "norm! \leftmouse>"call NetrwLocalRm("'.mapsafecurdir.'")' + exe 'vnoremap :exec "norm! \leftmouse>"call NetrwLocalRm("'.mapsafecurdir.'")' + endif + exe 'nnoremap :call NetrwLocalRm("'.mapsafecurdir.'")' + exe 'nnoremap D :call NetrwLocalRm("'.mapsafecurdir.'")' + exe 'nnoremap R :call NetrwLocalRename("'.mapsafecurdir.'")' + exe 'nnoremap d :call NetrwMakeDir("")' + exe 'vnoremap :call NetrwLocalRm("'.mapsafecurdir.'")' + exe 'vnoremap D :call NetrwLocalRm("'.mapsafecurdir.'")' + exe 'vnoremap R :call NetrwLocalRename("'.mapsafecurdir.'")' + nnoremap :he netrw-quickhelp + + " support user-specified maps + call netrw#UserMaps(1) + + else + " remote normal-mode maps {{{3 + call s:RemotePathAnalysis(b:netrw_curdir) + nnoremap NetrwHide_a :call NetrwHide(0) + nnoremap NetrwBrowseUpDir :call NetrwBrowseUpDir(0) + nnoremap NetrwOpenFile :call NetrwOpenFile(0) + nnoremap NetrwBadd_cb :call NetrwBadd(0,0) + nnoremap NetrwBadd_cB :call NetrwBadd(0,1) + nnoremap NetrwLcd :call NetrwLcd(b:netrw_curdir) + nnoremap NetrwSetChgwin :call NetrwSetChgwin() + nnoremap NetrwRefresh :call NetrwRefresh(0,NetrwBrowseChgDir(0,'./',0)) + nnoremap NetrwLocalBrowseCheck :call NetrwBrowse(0,NetrwBrowseChgDir(0,NetrwGetWord(),1)) + nnoremap NetrwServerEdit :call NetrwServerEdit(2,NetrwGetWord()) + nnoremap NetrwBookHistHandler_gb :call NetrwBookHistHandler(1,b:netrw_curdir) + " --------------------------------------------------------------------- + nnoremap gd :call NetrwForceChgDir(0,NetrwGetWord()) + nnoremap gf :call NetrwForceFile(0,NetrwGetWord()) + nnoremap gh :call NetrwHidden(0) + nnoremap gp :call NetrwChgPerm(0,b:netrw_curdir) + nnoremap I :call NetrwBannerCtrl(1) + nnoremap i :call NetrwListStyle(0) + nnoremap ma :call NetrwMarkFileArgList(0,0) + nnoremap mA :call NetrwMarkFileArgList(0,1) + nnoremap mb :call NetrwBookHistHandler(0,b:netrw_curdir) + nnoremap mB :call NetrwBookHistHandler(6,b:netrw_curdir) + nnoremap mc :call NetrwMarkFileCopy(0) + nnoremap md :call NetrwMarkFileDiff(0) + nnoremap me :call NetrwMarkFileEdit(0) + nnoremap mf :call NetrwMarkFile(0,NetrwGetWord()) + nnoremap mF :call NetrwUnmarkList(bufnr("%"),b:netrw_curdir) + nnoremap mg :call NetrwMarkFileGrep(0) + nnoremap mh :call NetrwMarkHideSfx(0) + nnoremap mm :call NetrwMarkFileMove(0) + nnoremap mr :call NetrwMarkFileRegexp(0) + nnoremap ms :call NetrwMarkFileSource(0) + nnoremap mT :call NetrwMarkFileTag(0) + nnoremap mt :call NetrwMarkFileTgt(0) + nnoremap mu :call NetrwUnMarkFile(0) + nnoremap mv :call NetrwMarkFileVimCmd(0) + nnoremap mx :call NetrwMarkFileExe(0,0) + nnoremap mX :call NetrwMarkFileExe(0,1) + nnoremap mz :call NetrwMarkFileCompress(0) + nnoremap O :call NetrwObtain(0) + nnoremap o :call NetrwSplit(0) + nnoremap p :call NetrwPreview(NetrwBrowseChgDir(1,NetrwGetWord(),1,1)) + nnoremap P :call NetrwPrevWinOpen(0) + nnoremap qb :call NetrwBookHistHandler(2,b:netrw_curdir) + nnoremap qf :call NetrwFileInfo(0,NetrwGetWord()) + nnoremap qF :call NetrwMarkFileQFEL(0,getqflist()) + nnoremap qL :call NetrwMarkFileQFEL(0,getloclist(v:count)) + nnoremap r :let g:netrw_sort_direction= (g:netrw_sort_direction =~# 'n')? 'r' : 'n'exe "norm! 0"call NetrwBrowse(0,NetrwBrowseChgDir(0,'./',0)) + nnoremap s :call NetrwSortStyle(0) + nnoremap S :call NetSortSequence(0) + nnoremap Tb :call NetrwSetTgt(0,'b',v:count1) + nnoremap t :call NetrwSplit(1) + nnoremap Th :call NetrwSetTgt(0,'h',v:count) + nnoremap u :call NetrwBookHistHandler(4,b:netrw_curdir) + nnoremap U :call NetrwBookHistHandler(5,b:netrw_curdir) + nnoremap v :call NetrwSplit(2) + if !hasmapto('NetrwHideEdit') + nmap NetrwHideEdit + endif + nnoremap NetrwHideEdit :call NetrwHideEdit(0) + if !hasmapto('NetrwRefresh') + nmap NetrwRefresh + endif + if !hasmapto('NetrwTreeSqueeze') + nmap NetrwTreeSqueeze + endif + nnoremap NetrwTreeSqueeze :call TreeSqueezeDir(0) + + let mapsafepath = escape(s:path, s:netrw_map_escape) + let mapsafeusermach = escape(((s:user == "")? "" : s:user."@").s:machine, s:netrw_map_escape) + + nnoremap NetrwRefresh :call NetrwRefresh(0,NetrwBrowseChgDir(0,'./',0)) + if g:netrw_mousemaps == 1 + nmap NetrwLeftmouse + nno NetrwLeftmouse :exec "norm! \leftmouse>"call NetrwLeftmouse(0) + nmap NetrwCLeftmouse + nno NetrwCLeftmouse :exec "norm! \leftmouse>"call NetrwCLeftmouse(0) + nmap NetrwSLeftmouse + nno NetrwSLeftmouse :exec "norm! \leftmouse>"call NetrwSLeftmouse(0) + nmap NetrwSLeftdrag + nno NetrwSLeftdrag :exec "norm! \leftmouse>"call NetrwSLeftdrag(0) + nmap NetrwMiddlemouse + nno NetrwMiddlemouse :exec "norm! \leftmouse>"call NetrwPrevWinOpen(0) + nmap <2-leftmouse> Netrw2Leftmouse + nmap Netrw2Leftmouse - + imap ILeftmouse + imap IMiddlemouse + imap ISLeftmouse + exe 'nnoremap :exec "norm! \leftmouse>"call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'vnoremap :exec "norm! \leftmouse>"call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + endif + exe 'nnoremap :call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'nnoremap d :call NetrwMakeDir("'.mapsafeusermach.'")' + exe 'nnoremap D :call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'nnoremap R :call NetrwRemoteRename("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'vnoremap :call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'vnoremap D :call NetrwRemoteRm("'.mapsafeusermach.'","'.mapsafepath.'")' + exe 'vnoremap R :call NetrwRemoteRename("'.mapsafeusermach.'","'.mapsafepath.'")' + nnoremap :he netrw-quickhelp + + " support user-specified maps + call netrw#UserMaps(0) + endif " }}}3 +endfunction + +" s:NetrwCommands: set up commands {{{2 +" If -buffer, the command is only available from within netrw buffers +" Otherwise, the command is available from any window, so long as netrw +" has been used at least once in the session. +function s:NetrwCommands(islocal) + + com! -nargs=* -complete=file -bang NetrwMB call s:NetrwBookmark(0,) + com! -nargs=* NetrwC call s:NetrwSetChgwin() + com! Rexplore if exists("w:netrw_rexlocal")|call s:NetrwRexplore(w:netrw_rexlocal,exists("w:netrw_rexdir")? w:netrw_rexdir : ".")|else|call netrw#msg#Notify('WARNING', "win#".winnr()." not a former netrw window")|endif + if a:islocal + com! -buffer -nargs=+ -complete=file MF call s:NetrwMarkFiles(1,) + else + com! -buffer -nargs=+ -complete=file MF call s:NetrwMarkFiles(0,) + endif + com! -buffer -nargs=? -complete=file MT call s:NetrwMarkTarget() + +endfunction + +" s:NetrwMarkFiles: apply s:NetrwMarkFile() to named file(s) {{{2 +" glob()ing only works with local files +function s:NetrwMarkFiles(islocal,...) + let curdir = s:NetrwGetCurdir(a:islocal) + let i = 1 + while i <= a:0 + if a:islocal + let mffiles= glob(a:{i}, 0, 1, 1) + else + let mffiles= [a:{i}] + endif + for mffile in mffiles + call s:NetrwMarkFile(a:islocal,mffile) + endfor + let i= i + 1 + endwhile +endfunction + +" s:NetrwMarkTarget: implements :MT (mark target) {{{2 +function s:NetrwMarkTarget(...) + if a:0 == 0 || (a:0 == 1 && a:1 == "") + let curdir = s:NetrwGetCurdir(1) + let tgt = b:netrw_curdir + else + let curdir = s:NetrwGetCurdir((a:1 =~ '^\a\{3,}://')? 0 : 1) + let tgt = a:1 + endif + let s:netrwmftgt = tgt + let s:netrwmftgt_islocal = tgt !~ '^\a\{3,}://' + let curislocal = b:netrw_curdir !~ '^\a\{3,}://' + let svpos = winsaveview() + call s:NetrwRefresh(curislocal,s:NetrwBrowseChgDir(curislocal,'./',0)) + call winrestview(svpos) +endfunction + +" s:NetrwMarkFile: (invoked by mf) This function is used to both {{{2 +" mark and unmark files. If a markfile list exists, +" then the rename and delete functions will use it instead +" of whatever may happen to be under the cursor at that +" moment. When the mouse and gui are available, +" shift-leftmouse may also be used to mark files. +" +" Creates two lists +" s:netrwmarkfilelist -- holds complete paths to all marked files +" s:netrwmarkfilelist_# -- holds list of marked files in current-buffer's directory (#==bufnr()) +" +" Creates a marked file match string +" s:netrwmarfilemtch_# -- used with 2match to display marked files +" +" Creates a buffer version of islocal +" b:netrw_islocal +function s:NetrwMarkFile(islocal,fname) + + " sanity check + if empty(a:fname) + return + endif + let curdir = s:NetrwGetCurdir(a:islocal) + + let ykeep = @@ + let curbufnr= bufnr("%") + let leader= '\%(^\|\s\)\zs' + if a:fname =~ '\a$' + let trailer = '\>[@=|\/\*]\=\ze\%( \|\t\|$\)' + else + let trailer = '[@=|\/\*]\=\ze\%( \|\t\|$\)' + endif + + if exists("s:netrwmarkfilelist_".curbufnr) + " markfile list pre-exists + let b:netrw_islocal= a:islocal + + if index(s:netrwmarkfilelist_{curbufnr},a:fname) == -1 + " append filename to buffer's markfilelist + call add(s:netrwmarkfilelist_{curbufnr},a:fname) + let s:netrwmarkfilemtch_{curbufnr}= s:netrwmarkfilemtch_{curbufnr}.'\|'.leader.escape(a:fname,g:netrw_markfileesc).trailer + + else + " remove filename from buffer's markfilelist + call filter(s:netrwmarkfilelist_{curbufnr},'v:val != a:fname') + if s:netrwmarkfilelist_{curbufnr} == [] + " local markfilelist is empty; remove it entirely + call s:NetrwUnmarkList(curbufnr,curdir) + else + " rebuild match list to display markings correctly + let s:netrwmarkfilemtch_{curbufnr}= "" + let first = 1 + for fname in s:netrwmarkfilelist_{curbufnr} + if first + let s:netrwmarkfilemtch_{curbufnr}= s:netrwmarkfilemtch_{curbufnr}.leader.escape(fname,g:netrw_markfileesc).trailer + else + let s:netrwmarkfilemtch_{curbufnr}= s:netrwmarkfilemtch_{curbufnr}.'\|'.leader.escape(fname,g:netrw_markfileesc).trailer + endif + let first= 0 + endfor + endif + endif + + else + " initialize new markfilelist + + let s:netrwmarkfilelist_{curbufnr}= [] + call add(s:netrwmarkfilelist_{curbufnr},substitute(a:fname,'[|@]$','','')) + + " build initial markfile matching pattern + if a:fname =~ '/$' + let s:netrwmarkfilemtch_{curbufnr}= leader.escape(a:fname,g:netrw_markfileesc) + else + let s:netrwmarkfilemtch_{curbufnr}= leader.escape(a:fname,g:netrw_markfileesc).trailer + endif + endif + + " handle global markfilelist + if exists("s:netrwmarkfilelist") + let dname= netrw#fs#ComposePath(b:netrw_curdir,a:fname) + if index(s:netrwmarkfilelist,dname) == -1 + " append new filename to global markfilelist + call add(s:netrwmarkfilelist,netrw#fs#ComposePath(b:netrw_curdir,a:fname)) + else + " remove new filename from global markfilelist + call filter(s:netrwmarkfilelist,'v:val != "'.dname.'"') + if s:netrwmarkfilelist == [] + unlet s:netrwmarkfilelist + endif + endif + else + " initialize new global-directory markfilelist + let s:netrwmarkfilelist= [] + call add(s:netrwmarkfilelist,netrw#fs#ComposePath(b:netrw_curdir,a:fname)) + endif + + " set up 2match'ing to netrwmarkfilemtch_# list + if has("syntax") && exists("g:syntax_on") && g:syntax_on + if exists("s:netrwmarkfilemtch_{curbufnr}") && s:netrwmarkfilemtch_{curbufnr} != "" + if exists("g:did_drchip_netrwlist_syntax") + exe "2match netrwMarkFile /".s:netrwmarkfilemtch_{curbufnr}."/" + endif + else + 2match none + endif + endif + let @@= ykeep +endfunction + +" s:NetrwMarkFileArgList: ma: move the marked file list to the argument list (tomflist=0) {{{2 +" mA: move the argument list to marked file list (tomflist=1) +" Uses the global marked file list +function s:NetrwMarkFileArgList(islocal,tomflist) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + if a:tomflist + " mA: move argument list to marked file list + while argc() + let fname= argv(0) + exe "argdel ".fnameescape(fname) + call s:NetrwMarkFile(a:islocal,fname) + endwhile + + else + " ma: move marked file list to argument list + if exists("s:netrwmarkfilelist") + + " for every filename in the marked list + for fname in s:netrwmarkfilelist + exe "argadd ".fnameescape(fname) + endfor " for every file in the marked list + + " unmark list and refresh + call s:NetrwUnmarkList(curbufnr,curdir) + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + endif + endif +endfunction + +" s:NetrwMarkFileCompress: (invoked by mz) This function is used to {{{2 +" compress/decompress files using the programs +" in g:netrw_compress and g:netrw_uncompress, +" using g:netrw_compress_suffix to know which to +" do. By default: +" g:netrw_compress = "gzip" +" g:netrw_decompress = { ".gz" : "gunzip" , ".bz2" : "bunzip2" , ".zip" : "unzip" , ".tar" : "tar -xf", ".xz" : "unxz"} +function s:NetrwMarkFileCompress(islocal) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if exists("s:netrwmarkfilelist_{curbufnr}") && exists("g:netrw_compress") && exists("g:netrw_decompress") + + " for every filename in the marked list + for fname in s:netrwmarkfilelist_{curbufnr} + let sfx= substitute(fname,'^.\{-}\(\.[[:alnum:]]\+\)$','\1','') + if exists("g:netrw_decompress['".sfx."']") + " fname has a suffix indicating that its compressed; apply associated decompression routine + let exe= g:netrw_decompress[sfx] + let exe= netrw#fs#WinPath(exe) + if a:islocal + if g:netrw_keepdir + let fname= netrw#os#Escape(netrw#fs#ComposePath(curdir,fname)) + endif + call system(exe." ".fname) + if v:shell_error + call netrw#msg#Notify('WARNING', printf('unable to apply<%s> to file<%s>', exe, fname)) + endif + else + let fname= netrw#os#Escape(b:netrw_curdir.fname,1) + NetrwKeepj call s:RemoteSystem(exe." ".fname) + endif + + endif + unlet sfx + + if exists("exe") + unlet exe + elseif a:islocal + " fname not a compressed file, so compress it + call system(netrw#fs#WinPath(g:netrw_compress)." ".netrw#os#Escape(netrw#fs#ComposePath(b:netrw_curdir,fname))) + if v:shell_error + call netrw#msg#Notify('WARNING', printf('consider setting g:netrw_compress<%s> to something that works', g:netrw_compress)) + endif + else + " fname not a compressed file, so compress it + NetrwKeepj call s:RemoteSystem(netrw#fs#WinPath(g:netrw_compress)." ".netrw#os#Escape(fname)) + endif + endfor " for every file in the marked list + + call s:NetrwUnmarkList(curbufnr,curdir) + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + endif +endfunction + +" s:NetrwMarkFileCopy: (invoked by mc) copy marked files to target {{{2 +" If no marked files, then set up directory as the +" target. Currently does not support copying entire +" directories. Uses the local-buffer marked file list. +" Returns 1=success (used by NetrwMarkFileMove()) +" 0=failure +function s:NetrwMarkFileCopy(islocal,...) + + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + if !exists("b:netrw_curdir") + let b:netrw_curdir= curdir + endif + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return 0 + endif + + if !exists("s:netrwmftgt") + call netrw#msg#Notify('ERROR', 'your marked file target is empty! (:help netrw-mt)') + return 0 + endif + + if a:islocal && s:netrwmftgt_islocal + " Copy marked files, local directory to local directory + if !executable(g:netrw_localcopycmd) + call netrw#msg#Notify('ERROR', printf('g:netrw_localcopycmd<%s> not executable on your system, aborting', g:netrw_localcopycmd)) + return + endif + + " copy marked files while within the same directory (ie. allow renaming) + if simplify(s:netrwmftgt."/") ==# simplify(b:netrw_curdir."/") + " copy multiple marked files inside the same directory + for oldname in s:netrwmarkfilelist_{curbufnr} + call inputsave() + let newname= input(printf("Copy %s to: ", oldname), oldname, 'file') + call inputrestore() + + if empty(newname) + return 0 + endif + + let tgt = netrw#fs#ComposePath(s:netrwmftgt, newname) + let oldname = netrw#fs#ComposePath(b:netrw_curdir, oldname) + if tgt ==# oldname + continue + endif + + let ret = filecopy(oldname, tgt) + if ret == v:false + call netrw#msg#Notify('ERROR', $'copy failed, unable to filecopy() <{oldname}> to <{tgt}>') + break + endif + endfor + call s:NetrwUnmarkList(curbufnr,curdir) + NetrwKeepj call s:NetrwRefreshDir(a:islocal, b:netrw_curdir) + return ret + else + let args = [] + for arg in s:netrwmarkfilelist_{curbufnr} + call add(args, netrw#fs#ComposePath(b:netrw_curdir, arg)) + endfor + let tgt = s:netrwmftgt + endif + + let copycmd = g:netrw_localcopycmd + let copycmdopt = g:netrw_localcopycmdopt + + " on Windows, no builtin command supports copying multiple files at once + " (powershell's Copy-Item cmdlet does but requires , as file separator) + if len(s:netrwmarkfilelist_{curbufnr}) > 1 && has("win32") && !g:netrw_cygwin + " copy multiple marked files + for file in args + let dest = netrw#fs#ComposePath(tgt, fnamemodify(file, ':t')) + let ret = filecopy(file, dest) + if ret == v:false + call netrw#msg#Notify('ERROR', $'copy failed, unable to filecopy() <{file}> to <{dest}>') + break + endif + endfor + call s:NetrwUnmarkList(curbufnr,curdir) + NetrwKeepj call s:NetrwRefreshDir(a:islocal, b:netrw_curdir) + return ret + endif + + if len(args) == 1 && isdirectory(s:NetrwFile(args[0])) + let copycmd = g:netrw_localcopydircmd + let copycmdopt = g:netrw_localcopydircmdopt + if has('win32') && g:netrw_localcopydircmd == "xcopy" + " window's xcopy doesn't copy a directory to a target properly. Instead, it copies a directory's + " contents to a target. One must append the source directory name to the target to get xcopy to + " do the right thing. + let tgt = netrw#fs#ComposePath(tgt, fnamemodify(simplify(netrw#fs#PathJoin(args[0],".")),":t")) + endif + endif + + " prepare arguments for shell call + let args = join(map(args,'netrw#os#Escape(v:val)')) + let tgt = netrw#os#Escape(tgt) + + " enforce noshellslash for system calls + if exists('+shellslash') && &shellslash + for var in ['copycmd', 'args', 'tgt'] + let {var} = substitute({var}, '/', '\', 'g') + endfor + endif + + " shell call + let shell_cmd = printf("%s %s %s %s", copycmd, copycmdopt, args, tgt) + call system(shell_cmd) + if v:shell_error != 0 + if exists("b:netrw_curdir") && b:netrw_curdir != getcwd() && g:netrw_keepdir + call netrw#msg#Notify('ERROR', printf("copy failed; perhaps due to vim's current directory<%s> not matching netrw's (%s) (see :help netrw-cd)", getcwd(), b:netrw_curdir)) + else + call netrw#msg#Notify('ERROR', printf("tried using g:netrw_localcopycmd<%s>; it doesn't work!", g:netrw_localcopycmd)) + endif + return 0 + endif + + elseif a:islocal && !s:netrwmftgt_islocal + " Copy marked files, local directory to remote directory + NetrwKeepj call s:NetrwUpload(s:netrwmarkfilelist_{curbufnr},s:netrwmftgt) + + elseif !a:islocal && s:netrwmftgt_islocal + " Copy marked files, remote directory to local directory + NetrwKeepj call netrw#Obtain(a:islocal,s:netrwmarkfilelist_{curbufnr},s:netrwmftgt) + + elseif !a:islocal && !s:netrwmftgt_islocal + " Copy marked files, remote directory to remote directory + let curdir = getcwd() + let tmpdir = s:GetTempfile("") + if tmpdir !~ '/' + let tmpdir= curdir."/".tmpdir + endif + call mkdir(tmpdir) + if isdirectory(s:NetrwFile(tmpdir)) + if s:NetrwLcd(tmpdir) + return + endif + NetrwKeepj call netrw#Obtain(a:islocal,s:netrwmarkfilelist_{curbufnr},tmpdir) + let localfiles= map(deepcopy(s:netrwmarkfilelist_{curbufnr}),'substitute(v:val,"^.*/","","")') + NetrwKeepj call s:NetrwUpload(localfiles,s:netrwmftgt) + if getcwd() == tmpdir + for fname in s:netrwmarkfilelist_{curbufnr} + call netrw#fs#Remove(fname) + endfor + if s:NetrwLcd(curdir) + return + endif + if delete(tmpdir,"d") + call netrw#msg#Notify('ERROR', printf('unable to delete directory <%s>!', tmpdir)) + endif + else + if s:NetrwLcd(curdir) + return + endif + endif + endif + endif + + " ------- + " cleanup + " ------- + " remove markings from local buffer + call s:NetrwUnmarkList(curbufnr,curdir) " remove markings from local buffer + " see s:LocalFastBrowser() for g:netrw_fastbrowse interpretation (refreshing done for both slow and medium) + if g:netrw_fastbrowse <= 1 + NetrwKeepj call s:LocalBrowseRefresh() + else + " refresh local and targets for fast browsing + " remove markings from local buffer + NetrwKeepj call s:NetrwUnmarkList(curbufnr,curdir) + + " refresh buffers + if s:netrwmftgt_islocal + NetrwKeepj call s:NetrwRefreshDir(s:netrwmftgt_islocal,s:netrwmftgt) + endif + if a:islocal && s:netrwmftgt != curdir + NetrwKeepj call s:NetrwRefreshDir(a:islocal,curdir) + endif + endif + + return 1 +endfunction + +" s:NetrwMarkFileDiff: (invoked by md) This function is used to {{{2 +" invoke vim's diff mode on the marked files. +" Either two or three files can be so handled. +" Uses the global marked file list. +function s:NetrwMarkFileDiff(islocal) + let curbufnr= bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + let curdir= s:NetrwGetCurdir(a:islocal) + + if exists("s:netrwmarkfilelist_{".curbufnr."}") + let cnt = 0 + for fname in s:netrwmarkfilelist + let cnt= cnt + 1 + if cnt == 1 + exe "NetrwKeepj e ".fnameescape(fname) + diffthis + elseif cnt == 2 || cnt == 3 + below vsplit + exe "NetrwKeepj e ".fnameescape(fname) + diffthis + else + break + endif + endfor + call s:NetrwUnmarkList(curbufnr,curdir) + endif + +endfunction + +" s:NetrwMarkFileEdit: (invoked by me) put marked files on arg list and start editing them {{{2 +" Uses global markfilelist +function s:NetrwMarkFileEdit(islocal) + + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if exists("s:netrwmarkfilelist_{curbufnr}") + call s:SetRexDir(a:islocal,curdir) + let flist= join(map(deepcopy(s:netrwmarkfilelist), "fnameescape(v:val)")) + " unmark markedfile list + " call s:NetrwUnmarkList(curbufnr,curdir) + call s:NetrwUnmarkAll() + exe "sil args ".flist + endif + echo "(use :bn, :bp to navigate files; :Rex to return)" + +endfunction + +" s:NetrwMarkFileQFEL: convert a quickfix-error or location list into a marked file list {{{2 +function s:NetrwMarkFileQFEL(islocal,qfel) + call s:NetrwUnmarkAll() + let curbufnr= bufnr("%") + + if !empty(a:qfel) + for entry in a:qfel + let bufnmbr= entry["bufnr"] + if !exists("s:netrwmarkfilelist_{curbufnr}") + call s:NetrwMarkFile(a:islocal,bufname(bufnmbr)) + elseif index(s:netrwmarkfilelist_{curbufnr},bufname(bufnmbr)) == -1 + " s:NetrwMarkFile will remove duplicate entries from the marked file list. + " So, this test lets two or more hits on the same pattern to be ignored. + call s:NetrwMarkFile(a:islocal,bufname(bufnmbr)) + else + endif + endfor + echo "(use me to edit marked files)" + else + call netrw#msg#Notify('WARNING', "can't convert quickfix error list; its empty!") + endif + +endfunction + +" s:NetrwMarkFileExe: (invoked by mx and mX) execute arbitrary system command on marked files {{{2 +" mx enbloc=0: Uses the local marked-file list, applies command to each file individually +" mX enbloc=1: Uses the global marked-file list, applies command to entire list +function s:NetrwMarkFileExe(islocal,enbloc) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + if a:enbloc == 0 + " individually apply command to files, one at a time + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if exists("s:netrwmarkfilelist_{curbufnr}") + " get the command + call inputsave() + let cmd= input("Enter command: ","","file") + call inputrestore() + if cmd == "" + return + endif + + " apply command to marked files, individually. Substitute: filename -> % + " If no %, then append a space and the filename to the command + for fname in s:netrwmarkfilelist_{curbufnr} + if a:islocal + if g:netrw_keepdir + let fname= netrw#os#Escape(netrw#fs#WinPath(netrw#fs#ComposePath(curdir,fname))) + endif + else + let fname= netrw#os#Escape(netrw#fs#WinPath(b:netrw_curdir.fname)) + endif + if cmd =~ '%' + let xcmd= substitute(cmd,'%',fname,'g') + else + let xcmd= cmd.' '.fname + endif + if a:islocal + let ret= system(xcmd) + else + let ret= s:RemoteSystem(xcmd) + endif + if v:shell_error < 0 + call netrw#msg#Notify('ERROR', printf('command<%s> failed, aborting', xcmd)) + break + else + if ret !=# '' + echo "\n" + " skip trailing new line + echo ret[0:-2] + else + echo ret + endif + endif + endfor + + " unmark marked file list + call s:NetrwUnmarkList(curbufnr,curdir) + + " refresh the listing + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + else + call netrw#msg#Notify('ERROR', 'no files marked!') + endif + + else " apply command to global list of files, en bloc + + call inputsave() + let cmd= input("Enter command: ","","file") + call inputrestore() + if cmd == "" + return + endif + if cmd =~ '%' + let cmd= substitute(cmd,'%',join(map(s:netrwmarkfilelist,'netrw#os#Escape(v:val)'),' '),'g') + else + let cmd= cmd.' '.join(map(s:netrwmarkfilelist,'netrw#os#Escape(v:val)'),' ') + endif + if a:islocal + call system(cmd) + if v:shell_error < 0 + call netrw#msg#Notify('ERROR', printf('command<%s> failed, aborting',xcmd)) + endif + else + let ret= s:RemoteSystem(cmd) + endif + call s:NetrwUnmarkAll() + + " refresh the listing + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + + endif +endfunction + +" s:NetrwMarkHideSfx: (invoked by mh) (un)hide files having same suffix +" as the marked file(s) (toggles suffix presence) +" Uses the local marked file list. +function s:NetrwMarkHideSfx(islocal) + let svpos = winsaveview() + let curbufnr = bufnr("%") + + " s:netrwmarkfilelist_{curbufnr}: the List of marked files + if exists("s:netrwmarkfilelist_{curbufnr}") + + for fname in s:netrwmarkfilelist_{curbufnr} + " construct suffix pattern + if fname =~ '\.' + let sfxpat= "^.*".substitute(fname,'^.*\(\.[^. ]\+\)$','\1','') + else + let sfxpat= '^\%(\%(\.\)\@!.\)*$' + endif + " determine if its in the hiding list or not + let inhidelist= 0 + if g:netrw_list_hide != "" + let itemnum = 0 + let hidelist= split(g:netrw_list_hide,',') + for hidepat in hidelist + if sfxpat == hidepat + let inhidelist= 1 + break + endif + let itemnum= itemnum + 1 + endfor + endif + if inhidelist + " remove sfxpat from list + call remove(hidelist,itemnum) + let g:netrw_list_hide= join(hidelist,",") + elseif g:netrw_list_hide != "" + " append sfxpat to non-empty list + let g:netrw_list_hide= g:netrw_list_hide.",".sfxpat + else + " set hiding list to sfxpat + let g:netrw_list_hide= sfxpat + endif + endfor + + " refresh the listing + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + else + call netrw#msg#Notify('ERROR', 'no files marked!') + endif +endfunction + +" s:NetrwMarkFileVimCmd: (invoked by mv) execute arbitrary vim command on marked files, one at a time {{{2 +" Uses the local marked-file list. +function s:NetrwMarkFileVimCmd(islocal) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if exists("s:netrwmarkfilelist_{curbufnr}") + " get the command + call inputsave() + let cmd= input("Enter vim command: ","","file") + call inputrestore() + if cmd == "" + return + endif + + " apply command to marked files. Substitute: filename -> % + " If no %, then append a space and the filename to the command + for fname in s:netrwmarkfilelist_{curbufnr} + if a:islocal + 1split + exe "sil! NetrwKeepj keepalt e ".fnameescape(fname) + exe cmd + exe "sil! keepalt wq!" + else + echo "sorry, \"mv\" not supported yet for remote files" + endif + endfor + + " unmark marked file list + call s:NetrwUnmarkList(curbufnr,curdir) + + " refresh the listing + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + else + call netrw#msg#Notify('ERROR', 'no files marked!') + endif +endfunction + +" s:NetrwMarkFileGrep: (invoked by mg) This function applies vimgrep to marked files {{{2 +" Uses the global markfilelist +function s:NetrwMarkFileGrep(islocal) + let svpos = winsaveview() + let curbufnr = bufnr("%") + let curdir = s:NetrwGetCurdir(a:islocal) + + if exists("s:netrwmarkfilelist") + let netrwmarkfilelist= join(map(deepcopy(s:netrwmarkfilelist), "fnameescape(v:val)")) + call s:NetrwUnmarkAll() + else + let netrwmarkfilelist= "*" + endif + + " ask user for pattern + call inputsave() + let pat= input("Enter pattern: ","") + call inputrestore() + let patbang = "" + if pat =~ '^!' + let patbang = "!" + let pat = strpart(pat,2) + endif + if pat =~ '^\i' + let pat = escape(pat,'/') + let pat = '/'.pat.'/' + else + let nonisi = pat[0] + endif + + " use vimgrep for both local and remote + try + exe "NetrwKeepj noautocmd vimgrep".patbang." ".pat." ".netrwmarkfilelist + catch /^Vim\%((\a\+)\)\=:E480/ + call netrw#msg#Notify('WARNING', printf('no match with pattern<%s>', pat)) + return + endtry + echo "(use :cn, :cp to navigate, :Rex to return)" + + 2match none + NetrwKeepj call winrestview(svpos) + + if exists("nonisi") + " original, user-supplied pattern did not begin with a character from isident + if pat =~# nonisi.'j$\|'.nonisi.'gj$\|'.nonisi.'jg$' + call s:NetrwMarkFileQFEL(a:islocal,getqflist()) + endif + endif + +endfunction + +" s:NetrwMarkFileMove: (invoked by mm) execute arbitrary command on marked files, one at a time {{{2 +" uses the global marked file list +" s:netrwmfloc= 0: target directory is remote +" = 1: target directory is local +function s:NetrwMarkFileMove(islocal) + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if !exists("s:netrwmftgt") + call netrw#msg#Notify('ERROR', 'your marked file target is empty! (:help netrw-mt)') + return 0 + endif + + if a:islocal && s:netrwmftgt_islocal + " move: local -> local + if !executable(g:netrw_localmovecmd) + call netrw#msg#Notify('ERROR', printf('g:netrw_localmovecmd<%s> not executable on your system, aborting', g:netrw_localmovecmd)) + return + endif + + let tgt = netrw#os#Escape(s:netrwmftgt) + if has("win32") && !g:netrw_cygwin && g:netrw_localmovecmd =~ '\s' && g:netrw_localmovecmdopt == "" + let movecmd = substitute(g:netrw_localmovecmd,'\s.*$','','') + let movecmdargs = substitute(g:netrw_localmovecmd,'^.\{-}\(\s.*\)$','\1','') + else + let movecmd = g:netrw_localmovecmd + let movecmdargs = g:netrw_localmovecmdopt + endif + + " build args list + let args = [] + for fname in s:netrwmarkfilelist_{curbufnr} + if g:netrw_keepdir + " Jul 19, 2022: fixing file move when g:netrw_keepdir is 1 + let fname= netrw#fs#ComposePath(b:netrw_curdir, fname) + endif + call add(args, netrw#os#Escape(fname)) + endfor + + " enforce noshellslash for system calls + if exists('+shellslash') && &shellslash + let tgt = substitute(tgt, '/', '\', 'g') + call map(args, "substitute(v:val, '/', '\\', 'g')") + endif + + for fname in args + let shell_cmd = printf("%s %s %s %s", movecmd, movecmdargs, fname, tgt) + let ret= system(shell_cmd) + if v:shell_error != 0 + if exists("b:netrw_curdir") && b:netrw_curdir != getcwd() && !g:netrw_keepdir + call netrw#msg#Notify('ERROR', printf("move failed; perhaps due to vim's current directory<%s> not matching netrw's (%s) (see :help netrw-cd)", getcwd(), b:netrw_curdir)) + else + call netrw#msg#Notify('ERROR', printf("tried using g:netrw_localmovecmd<%s>; it doesn't work!", g:netrw_localmovecmd)) + endif + break + endif + endfor + + elseif a:islocal && !s:netrwmftgt_islocal + " move: local -> remote + let mflist= s:netrwmarkfilelist_{curbufnr} + NetrwKeepj call s:NetrwMarkFileCopy(a:islocal) + for fname in mflist + let barefname = substitute(fname,'^\(.*/\)\(.\{-}\)$','\2','') + let ok = s:NetrwLocalRmFile(b:netrw_curdir,barefname,1) + endfor + unlet mflist + + elseif !a:islocal && s:netrwmftgt_islocal + " move: remote -> local + let mflist= s:netrwmarkfilelist_{curbufnr} + NetrwKeepj call s:NetrwMarkFileCopy(a:islocal) + for fname in mflist + let barefname = substitute(fname,'^\(.*/\)\(.\{-}\)$','\2','') + let ok = s:NetrwRemoteRmFile(b:netrw_curdir,barefname,1) + endfor + unlet mflist + + elseif !a:islocal && !s:netrwmftgt_islocal + " move: remote -> remote + let mflist= s:netrwmarkfilelist_{curbufnr} + NetrwKeepj call s:NetrwMarkFileCopy(a:islocal) + for fname in mflist + let barefname = substitute(fname,'^\(.*/\)\(.\{-}\)$','\2','') + let ok = s:NetrwRemoteRmFile(b:netrw_curdir,barefname,1) + endfor + unlet mflist + endif + + " ------- + " cleanup + " ------- + + " remove markings from local buffer + call s:NetrwUnmarkList(curbufnr,curdir) " remove markings from local buffer + + " refresh buffers + if !s:netrwmftgt_islocal + NetrwKeepj call s:NetrwRefreshDir(s:netrwmftgt_islocal,s:netrwmftgt) + endif + if a:islocal + NetrwKeepj call s:NetrwRefreshDir(a:islocal,b:netrw_curdir) + endif + if g:netrw_fastbrowse <= 1 + NetrwKeepj call s:LocalBrowseRefresh() + endif + +endfunction + +" s:NetrwMarkFileRegexp: (invoked by mr) This function is used to mark {{{2 +" files when given a regexp (for which a prompt is +" issued) (matches to name of files). +function s:NetrwMarkFileRegexp(islocal) + + " get the regular expression + call inputsave() + let regexp= input("Enter regexp: ","","file") + call inputrestore() + + if a:islocal + let curdir= s:NetrwGetCurdir(a:islocal) + " get the matching list of files using local glob() + let dirname = escape(b:netrw_curdir,g:netrw_glob_escape) + let filelist= glob(netrw#fs#ComposePath(dirname,regexp),0,1,1) + + " mark the list of files + for fname in filelist + if fname =~ '^'.fnameescape(curdir) + NetrwKeepj call s:NetrwMarkFile(a:islocal,substitute(fname,'^'.fnameescape(curdir).'/','','')) + else + NetrwKeepj call s:NetrwMarkFile(a:islocal,substitute(fname,'^.*/','','')) + endif + endfor + + else + + " convert displayed listing into a filelist + let eikeep = &ei + let areg = @a + sil NetrwKeepj %y a + setl ei=all ma + 1split + NetrwKeepj call s:NetrwEnew() + NetrwKeepj call s:NetrwOptionsSafe(a:islocal) + sil NetrwKeepj norm! "ap + NetrwKeepj 2 + let bannercnt= search('^" =====','W') + exe "sil NetrwKeepj 1,".bannercnt."d" + setl bt=nofile + if g:netrw_liststyle == s:LONGLIST + sil NetrwKeepj %s/\s\{2,}\S.*$//e + call histdel("/",-1) + elseif g:netrw_liststyle == s:WIDELIST + sil NetrwKeepj %s/\s\{2,}/\r/ge + call histdel("/",-1) + elseif g:netrw_liststyle == s:TREELIST + exe 'sil NetrwKeepj %s/^'.s:treedepthstring.' //e' + sil! NetrwKeepj g/^ .*$/d + call histdel("/",-1) + call histdel("/",-1) + endif + " convert regexp into the more usual glob-style format + let regexp= substitute(regexp,'\*','.*','g') + exe "sil! NetrwKeepj v/".escape(regexp,'/')."/d" + call histdel("/",-1) + let filelist= getline(1,line("$")) + q! + for filename in filelist + NetrwKeepj call s:NetrwMarkFile(a:islocal,substitute(filename,'^.*/','','')) + endfor + unlet filelist + let @a = areg + let &ei = eikeep + endif + echo " (use me to edit marked files)" + +endfunction + +" s:NetrwMarkFileSource: (invoked by ms) This function sources marked files {{{2 +" Uses the local marked file list. +function s:NetrwMarkFileSource(islocal) + let curbufnr= bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + let curdir= s:NetrwGetCurdir(a:islocal) + + if exists("s:netrwmarkfilelist_{curbufnr}") + let netrwmarkfilelist = s:netrwmarkfilelist_{bufnr("%")} + call s:NetrwUnmarkList(curbufnr,curdir) + for fname in netrwmarkfilelist + if a:islocal + if g:netrw_keepdir + let fname= netrw#fs#ComposePath(curdir,fname) + endif + else + let fname= curdir.fname + endif + " the autocmds will handle sourcing both local and remote files + exe "so ".fnameescape(fname) + endfor + 2match none + endif +endfunction + +" s:NetrwMarkFileTag: (invoked by mT) This function applies g:netrw_ctags to marked files {{{2 +" Uses the global markfilelist +function s:NetrwMarkFileTag(islocal) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let curbufnr = bufnr("%") + + " sanity check + if !exists("s:netrwmarkfilelist_{curbufnr}") || empty(s:netrwmarkfilelist_{curbufnr}) + call netrw#msg#Notify('ERROR', 'there are no marked files in this window (:help netrw-mf)') + return + endif + + if exists("s:netrwmarkfilelist") + let netrwmarkfilelist= join(map(deepcopy(s:netrwmarkfilelist), "netrw#os#Escape(v:val,".!a:islocal.")")) + call s:NetrwUnmarkAll() + + if a:islocal + + call system(g:netrw_ctags." ".netrwmarkfilelist) + if v:shell_error + call netrw#msg#Notify('ERROR', printf('g:netrw_ctags<%s> is not executable!', g:netrw_ctags)) + endif + + else + let cmd = s:RemoteSystem(g:netrw_ctags." ".netrwmarkfilelist) + call netrw#Obtain(a:islocal,"tags") + let curdir= b:netrw_curdir + 1split + NetrwKeepj e tags + let path= substitute(curdir,'^\(.*\)/[^/]*$','\1/','') + exe 'NetrwKeepj %s/\t\(\S\+\)\t/\t'.escape(path,"/\n\r\\").'\1\t/e' + call histdel("/",-1) + wq! + endif + 2match none + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + call winrestview(svpos) + endif +endfunction + +" s:NetrwMarkFileTgt: (invoked by mt) This function sets up a marked file target {{{2 +" Sets up two variables, +" s:netrwmftgt : holds the target directory +" s:netrwmftgt_islocal : 0=target directory is remote +" 1=target directory is local +function s:NetrwMarkFileTgt(islocal) + let svpos = winsaveview() + let curdir = s:NetrwGetCurdir(a:islocal) + let hadtgt = exists("s:netrwmftgt") + if !exists("w:netrw_bannercnt") + let w:netrw_bannercnt= b:netrw_bannercnt + endif + + " set up target + if line(".") < w:netrw_bannercnt + " if cursor in banner region, use b:netrw_curdir for the target unless its already the target + if exists("s:netrwmftgt") && exists("s:netrwmftgt_islocal") && s:netrwmftgt == b:netrw_curdir + unlet s:netrwmftgt s:netrwmftgt_islocal + if g:netrw_fastbrowse <= 1 + call s:LocalBrowseRefresh() + endif + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + call winrestview(svpos) + return + else + let s:netrwmftgt= b:netrw_curdir + endif + + else + " get word under cursor. + " * If directory, use it for the target. + " * If file, use b:netrw_curdir for the target + let curword= s:NetrwGetWord() + let tgtdir = netrw#fs#ComposePath(curdir,curword) + if a:islocal && isdirectory(s:NetrwFile(tgtdir)) + let s:netrwmftgt = tgtdir + elseif !a:islocal && tgtdir =~ '/$' + let s:netrwmftgt = tgtdir + else + let s:netrwmftgt = curdir + endif + endif + if a:islocal + " simplify the target (eg. /abc/def/../ghi -> /abc/ghi) + let s:netrwmftgt= simplify(s:netrwmftgt) + endif + if g:netrw_cygwin + let s:netrwmftgt= substitute(system("cygpath ".netrw#os#Escape(s:netrwmftgt)),'\n$','','') + let s:netrwmftgt= substitute(s:netrwmftgt,'\n$','','') + endif + let s:netrwmftgt_islocal= a:islocal + + " need to do refresh so that the banner will be updated + " s:LocalBrowseRefresh handles all local-browsing buffers when not fast browsing + if g:netrw_fastbrowse <= 1 + call s:LocalBrowseRefresh() + endif + " call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,w:netrw_treetop,0)) + else + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + endif + call winrestview(svpos) + if !hadtgt + sil! NetrwKeepj norm! j + endif +endfunction + +" s:NetrwGetCurdir: gets current directory and sets up b:netrw_curdir if necessary {{{2 +function s:NetrwGetCurdir(islocal) + + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + let b:netrw_curdir = s:NetrwTreePath(w:netrw_treetop) + elseif !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + + if b:netrw_curdir !~ '\<\a\{3,}://' + let curdir= b:netrw_curdir + if g:netrw_keepdir == 0 + call s:NetrwLcd(curdir) + endif + endif + + return b:netrw_curdir +endfunction + +" s:NetrwOpenFile: query user for a filename and open it {{{2 +function s:NetrwOpenFile(islocal) + call inputsave() + let fname = input("Enter filename: ") + call inputrestore() + + if empty(fname) + return + endif + + " save position for benefit of Rexplore + let s:rexposn_{bufnr("%")}= winsaveview() + + execute "NetrwKeepj e " . fnameescape(!isabsolutepath(fname) + \ ? netrw#fs#ComposePath(b:netrw_curdir, fname) + \ : fname) +endfunction + +" netrw#Shrink: shrinks/expands a netrw or Lexplorer window {{{2 +" For the mapping to this function be made via +" netrwPlugin, you'll need to have had +" g:netrw_usetab set to non-zero. +function netrw#Shrink() + let curwin = winnr() + let wiwkeep = &wiw + set wiw=1 + + if &ft == "netrw" + if winwidth(0) > g:netrw_wiw + let t:netrw_winwidth= winwidth(0) + exe "vert resize ".g:netrw_wiw + wincmd l + if winnr() == curwin + wincmd h + endif + else + exe "vert resize ".t:netrw_winwidth + endif + + elseif exists("t:netrw_lexbufnr") + exe bufwinnr(t:netrw_lexbufnr)."wincmd w" + if winwidth(bufwinnr(t:netrw_lexbufnr)) > g:netrw_wiw + let t:netrw_winwidth= winwidth(0) + exe "vert resize ".g:netrw_wiw + wincmd l + if winnr() == curwin + wincmd h + endif + elseif winwidth(bufwinnr(t:netrw_lexbufnr)) >= 0 + exe "vert resize ".t:netrw_winwidth + else + call netrw#Lexplore(0,0) + endif + + else + call netrw#Lexplore(0,0) + endif + let wiw= wiwkeep + +endfunction + +" s:NetSortSequence: allows user to edit the sorting sequence {{{2 +function s:NetSortSequence(islocal) + let ykeep= @@ + let svpos= winsaveview() + call inputsave() + let newsortseq= input("Edit Sorting Sequence: ",g:netrw_sort_sequence) + call inputrestore() + + " refresh the listing + let g:netrw_sort_sequence= newsortseq + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) + let @@= ykeep +endfunction + +" s:NetrwUnmarkList: delete local marked file list and remove their contents from the global marked-file list {{{2 +" User access provided by the mapping. (see :help netrw-mF) +" Used by many MarkFile functions. +function s:NetrwUnmarkList(curbufnr,curdir) + + " remove all files in local marked-file list from global list + if exists("s:netrwmarkfilelist") + for mfile in s:netrwmarkfilelist_{a:curbufnr} + let dfile = netrw#fs#ComposePath(a:curdir,mfile) " prepend directory to mfile + let idx = index(s:netrwmarkfilelist,dfile) " get index in list of dfile + call remove(s:netrwmarkfilelist,idx) " remove from global list + endfor + if s:netrwmarkfilelist == [] + unlet s:netrwmarkfilelist + endif + + " getting rid of the local marked-file lists is easy + unlet s:netrwmarkfilelist_{a:curbufnr} + endif + if exists("s:netrwmarkfilemtch_{a:curbufnr}") + unlet s:netrwmarkfilemtch_{a:curbufnr} + endif + 2match none +endfunction + +" s:NetrwUnmarkAll: remove the global marked file list and all local ones {{{2 +function s:NetrwUnmarkAll() + if exists("s:netrwmarkfilelist") + unlet s:netrwmarkfilelist + endif + sil call s:NetrwUnmarkAll2() + 2match none +endfunction + +" s:NetrwUnmarkAll2: unmark all files from all buffers {{{2 +function s:NetrwUnmarkAll2() + redir => netrwmarkfilelist_let + let + redir END + let netrwmarkfilelist_list= split(netrwmarkfilelist_let,'\n') " convert let string into a let list + call filter(netrwmarkfilelist_list,"v:val =~ '^s:netrwmarkfilelist_'") " retain only those vars that start as s:netrwmarkfilelist_ + call map(netrwmarkfilelist_list,"substitute(v:val,'\\s.*$','','')") " remove what the entries are equal to + for flist in netrwmarkfilelist_list + let curbufnr= substitute(flist,'s:netrwmarkfilelist_','','') + unlet s:netrwmarkfilelist_{curbufnr} + unlet s:netrwmarkfilemtch_{curbufnr} + endfor +endfunction + +" s:NetrwUnMarkFile: called via mu map; unmarks *all* marked files, both global and buffer-local {{{2 +" +" Marked files are in two types of lists: +" s:netrwmarkfilelist -- holds complete paths to all marked files +" s:netrwmarkfilelist_# -- holds list of marked files in current-buffer's directory (#==bufnr()) +" +" Marked files suitable for use with 2match are in: +" s:netrwmarkfilemtch_# -- used with 2match to display marked files +function s:NetrwUnMarkFile(islocal) + let svpos = winsaveview() + let curbufnr = bufnr("%") + + " unmark marked file list + " (although I expect s:NetrwUpload() to do it, I'm just making sure) + if exists("s:netrwmarkfilelist") + unlet s:netrwmarkfilelist + endif + + let ibuf= 1 + while ibuf < bufnr("$") + if exists("s:netrwmarkfilelist_".ibuf) + unlet s:netrwmarkfilelist_{ibuf} + unlet s:netrwmarkfilemtch_{ibuf} + endif + let ibuf = ibuf + 1 + endwhile + 2match none + + " call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + call winrestview(svpos) +endfunction + +" s:NetrwMenu: generates the menu for gvim and netrw {{{2 +function s:NetrwMenu(domenu) + + if !exists("g:NetrwMenuPriority") + let g:NetrwMenuPriority= 80 + endif + + if has("menu") && has("gui_running") && &go =~# 'm' && g:netrw_menu + + if !exists("s:netrw_menu_enabled") && a:domenu + let s:netrw_menu_enabled= 1 + exe 'sil! menu '.g:NetrwMenuPriority.'.1 '.g:NetrwTopLvlMenu.'Help ' + exe 'sil! menu '.g:NetrwMenuPriority.'.5 '.g:NetrwTopLvlMenu.'-Sep1- :' + exe 'sil! menu '.g:NetrwMenuPriority.'.6 '.g:NetrwTopLvlMenu.'Go\ Up\ Directory- -' + exe 'sil! menu '.g:NetrwMenuPriority.'.7 '.g:NetrwTopLvlMenu.'Apply\ Special\ Viewerx x' + if g:netrw_dirhistmax > 0 + exe 'sil! menu '.g:NetrwMenuPriority.'.8.1 '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Bookmark\ Current\ Directorymb mb' + exe 'sil! menu '.g:NetrwMenuPriority.'.8.4 '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Goto\ Prev\ Dir\ (History)u u' + exe 'sil! menu '.g:NetrwMenuPriority.'.8.5 '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Goto\ Next\ Dir\ (History)U U' + exe 'sil! menu '.g:NetrwMenuPriority.'.8.6 '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Listqb qb' + else + exe 'sil! menu '.g:NetrwMenuPriority.'.8 '.g:NetrwTopLvlMenu.'Bookmarks\ and\ History :echo "(disabled)"'."\" + endif + exe 'sil! menu '.g:NetrwMenuPriority.'.9.1 '.g:NetrwTopLvlMenu.'Browsing\ Control.Horizontal\ Splito o' + exe 'sil! menu '.g:NetrwMenuPriority.'.9.2 '.g:NetrwTopLvlMenu.'Browsing\ Control.Vertical\ Splitv v' + exe 'sil! menu '.g:NetrwMenuPriority.'.9.3 '.g:NetrwTopLvlMenu.'Browsing\ Control.New\ Tabt t' + exe 'sil! menu '.g:NetrwMenuPriority.'.9.4 '.g:NetrwTopLvlMenu.'Browsing\ Control.Previewp p' + exe 'sil! menu '.g:NetrwMenuPriority.'.9.5 '.g:NetrwTopLvlMenu.'Browsing\ Control.Edit\ File\ Hiding\ List'." \'" + exe 'sil! menu '.g:NetrwMenuPriority.'.9.6 '.g:NetrwTopLvlMenu.'Browsing\ Control.Edit\ Sorting\ SequenceS S' + exe 'sil! menu '.g:NetrwMenuPriority.'.9.7 '.g:NetrwTopLvlMenu.'Browsing\ Control.Quick\ Hide/Unhide\ Dot\ Files'."gh gh" + exe 'sil! menu '.g:NetrwMenuPriority.'.9.8 '.g:NetrwTopLvlMenu.'Browsing\ Control.Refresh\ Listing'." \" + exe 'sil! menu '.g:NetrwMenuPriority.'.9.9 '.g:NetrwTopLvlMenu.'Browsing\ Control.Settings/Options:NetrwSettings '.":NetrwSettings\" + exe 'sil! menu '.g:NetrwMenuPriority.'.10 '.g:NetrwTopLvlMenu.'Delete\ File/DirectoryD D' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.1 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.Create\ New\ File% %' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.1 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ Current\ Window '."\" + exe 'sil! menu '.g:NetrwMenuPriority.'.11.2 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.Preview\ File/Directoryp p' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.3 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ Previous\ WindowP P' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.4 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ New\ Windowo o' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.5 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ New\ Tabt t' + exe 'sil! menu '.g:NetrwMenuPriority.'.11.5 '.g:NetrwTopLvlMenu.'Edit\ File/Dir.In\ New\ Vertical\ Windowv v' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.1 '.g:NetrwTopLvlMenu.'Explore.Directory\ Name :Explore ' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.2 '.g:NetrwTopLvlMenu.'Explore.Filenames\ Matching\ Pattern\ (curdir\ only):Explore\ */ :Explore */' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.2 '.g:NetrwTopLvlMenu.'Explore.Filenames\ Matching\ Pattern\ (+subdirs):Explore\ **/ :Explore **/' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.3 '.g:NetrwTopLvlMenu.'Explore.Files\ Containing\ String\ Pattern\ (curdir\ only):Explore\ *// :Explore *//' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.4 '.g:NetrwTopLvlMenu.'Explore.Files\ Containing\ String\ Pattern\ (+subdirs):Explore\ **// :Explore **//' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.4 '.g:NetrwTopLvlMenu.'Explore.Next\ Match:Nexplore :Nexplore' + exe 'sil! menu '.g:NetrwMenuPriority.'.12.4 '.g:NetrwTopLvlMenu.'Explore.Prev\ Match:Pexplore :Pexplore' + exe 'sil! menu '.g:NetrwMenuPriority.'.13 '.g:NetrwTopLvlMenu.'Make\ Subdirectoryd d' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.1 '.g:NetrwTopLvlMenu.'Marked\ Files.Mark\ Filemf mf' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.2 '.g:NetrwTopLvlMenu.'Marked\ Files.Mark\ Files\ by\ Regexpmr mr' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.3 '.g:NetrwTopLvlMenu.'Marked\ Files.Hide-Show-List\ Controla a' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.4 '.g:NetrwTopLvlMenu.'Marked\ Files.Copy\ To\ Targetmc mc' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.5 '.g:NetrwTopLvlMenu.'Marked\ Files.DeleteD D' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.6 '.g:NetrwTopLvlMenu.'Marked\ Files.Diffmd md' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.7 '.g:NetrwTopLvlMenu.'Marked\ Files.Editme me' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.8 '.g:NetrwTopLvlMenu.'Marked\ Files.Exe\ Cmdmx mx' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.9 '.g:NetrwTopLvlMenu.'Marked\ Files.Move\ To\ Targetmm mm' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.10 '.g:NetrwTopLvlMenu.'Marked\ Files.ObtainO O' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.11 '.g:NetrwTopLvlMenu.'Marked\ Files.Printmp mp' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.12 '.g:NetrwTopLvlMenu.'Marked\ Files.ReplaceR R' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.13 '.g:NetrwTopLvlMenu.'Marked\ Files.Set\ Targetmt mt' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.14 '.g:NetrwTopLvlMenu.'Marked\ Files.TagmT mT' + exe 'sil! menu '.g:NetrwMenuPriority.'.14.15 '.g:NetrwTopLvlMenu.'Marked\ Files.Zip/Unzip/Compress/Uncompressmz mz' + exe 'sil! menu '.g:NetrwMenuPriority.'.15 '.g:NetrwTopLvlMenu.'Obtain\ FileO O' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.1.1 '.g:NetrwTopLvlMenu.'Style.Listing.thini :let w:netrw_liststyle=0' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.1.1 '.g:NetrwTopLvlMenu.'Style.Listing.longi :let w:netrw_liststyle=1' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.1.1 '.g:NetrwTopLvlMenu.'Style.Listing.widei :let w:netrw_liststyle=2' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.1.1 '.g:NetrwTopLvlMenu.'Style.Listing.treei :let w:netrw_liststyle=3' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.2.1 '.g:NetrwTopLvlMenu.'Style.Normal-Hide-Show.Show\ Alla :let g:netrw_hide=0' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.2.3 '.g:NetrwTopLvlMenu.'Style.Normal-Hide-Show.Normala :let g:netrw_hide=1' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.2.2 '.g:NetrwTopLvlMenu.'Style.Normal-Hide-Show.Hidden\ Onlya :let g:netrw_hide=2' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.3 '.g:NetrwTopLvlMenu.'Style.Reverse\ Sorting\ Order'."r r" + exe 'sil! menu '.g:NetrwMenuPriority.'.16.4.1 '.g:NetrwTopLvlMenu.'Style.Sorting\ Method.Names :let g:netrw_sort_by="name"' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.4.2 '.g:NetrwTopLvlMenu.'Style.Sorting\ Method.Times :let g:netrw_sort_by="time"' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.4.3 '.g:NetrwTopLvlMenu.'Style.Sorting\ Method.Sizes :let g:netrw_sort_by="size"' + exe 'sil! menu '.g:NetrwMenuPriority.'.16.4.3 '.g:NetrwTopLvlMenu.'Style.Sorting\ Method.Extens :let g:netrw_sort_by="exten"' + exe 'sil! menu '.g:NetrwMenuPriority.'.17 '.g:NetrwTopLvlMenu.'Rename\ File/DirectoryR R' + exe 'sil! menu '.g:NetrwMenuPriority.'.18 '.g:NetrwTopLvlMenu.'Set\ Current\ Directoryc c' + let s:netrw_menucnt= 28 + call s:NetrwBookmarkMenu() " provide some history! uses priorities 2,3, reserves 4, 8.2.x + call s:NetrwTgtMenu() " let bookmarks and history be easy targets + + elseif !a:domenu + let s:netrwcnt = 0 + let curwin = winnr() + windo if getline(2) =~# "Netrw" | let s:netrwcnt= s:netrwcnt + 1 | endif + exe curwin."wincmd w" + + if s:netrwcnt <= 1 + exe 'sil! unmenu '.g:NetrwTopLvlMenu + sil! unlet s:netrw_menu_enabled + endif + endif + return + endif + +endfunction + +" s:NetrwObtain: obtain file under cursor or from markfile list {{{2 +" Used by the O maps (as NetrwObtain()) +function s:NetrwObtain(islocal) + + let ykeep= @@ + if exists("s:netrwmarkfilelist_{bufnr('%')}") + let islocal= s:netrwmarkfilelist_{bufnr('%')}[1] !~ '^\a\{3,}://' + call netrw#Obtain(islocal,s:netrwmarkfilelist_{bufnr('%')}) + call s:NetrwUnmarkList(bufnr('%'),b:netrw_curdir) + else + call netrw#Obtain(a:islocal,s:NetrwGetWord()) + endif + let @@= ykeep + +endfunction + +" s:NetrwPrevWinOpen: open file/directory in previous window. {{{2 +" If there's only one window, then the window will first be split. +" Returns: +" choice = 0 : didn't have to choose +" choice = 1 : saved modified file in window first +" choice = 2 : didn't save modified file, opened window +" choice = 3 : cancel open +function s:NetrwPrevWinOpen(islocal) + let ykeep= @@ + " grab a copy of the b:netrw_curdir to pass it along to newly split windows + let curdir = b:netrw_curdir + + " get last window number and the word currently under the cursor + let origwin = winnr() + let lastwinnr = winnr("$") + let curword = s:NetrwGetWord() + let choice = 0 + let s:prevwinopen= 1 " lets s:NetrwTreeDir() know that NetrwPrevWinOpen called it (s:NetrwTreeDir() will unlet s:prevwinopen) + let s:treedir = s:NetrwTreeDir(a:islocal) + let curdir = s:treedir + + let didsplit = 0 + if lastwinnr == 1 + " if only one window, open a new one first + " g:netrw_preview=0: preview window shown in a horizontally split window + " g:netrw_preview=1: preview window shown in a vertically split window + if g:netrw_preview + " vertically split preview window + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize + exe (g:netrw_alto? "top " : "bot ")."vert ".winsz."wincmd s" + else + " horizontally split preview window + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winheight(0))/100 : -g:netrw_winsize + exe (g:netrw_alto? "bel " : "abo ").winsz."wincmd s" + endif + let didsplit = 1 + + else + NetrwKeepj call s:SaveBufVars() + let eikeep= &ei + setl ei=all + wincmd p + + if exists("s:lexplore_win") && s:lexplore_win == winnr() + " whoops -- user trying to open file in the Lexplore window. + " Use Lexplore's opening-file window instead. + " exe g:netrw_chgwin."wincmd w" + wincmd p + call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,s:NetrwGetWord(),1)) + endif + + " prevwinnr: the window number of the "prev" window + " prevbufnr: the buffer number of the buffer in the "prev" window + " bnrcnt : the qty of windows open on the "prev" buffer + let prevwinnr = winnr() + let prevbufnr = bufnr("%") + let prevbufname = bufname("%") + let prevmod = &mod + let bnrcnt = 0 + NetrwKeepj call s:RestoreBufVars() + + " if the previous window's buffer has been changed (ie. its modified flag is set), + " and it doesn't appear in any other extant window, then ask the + " user if s/he wants to abandon modifications therein. + if prevmod + windo if winbufnr(0) == prevbufnr | let bnrcnt=bnrcnt+1 | endif + exe prevwinnr."wincmd w" + + if bnrcnt == 1 && &hidden == 0 + " only one copy of the modified buffer in a window, and + " hidden not set, so overwriting will lose the modified file. Ask first... + let choice = confirm("Save modified buffer<".prevbufname."> first?","&Yes\n&No\n&Cancel") + let &ei= eikeep + + if choice == 1 + " Yes -- write file & then browse + let v:errmsg= "" + sil w + if v:errmsg != "" + call netrw#msg#Notify('ERROR', printf('unable to write <%s>!', (exists("prevbufname") ? prevbufname : 'n/a'))) + exe origwin."wincmd w" + let &ei = eikeep + let @@ = ykeep + return choice + endif + + elseif choice == 2 + " No -- don't worry about changed file, just browse anyway + echomsg "**note** changes to ".prevbufname." abandoned" + + else + " Cancel -- don't do this + exe origwin."wincmd w" + let &ei= eikeep + let @@ = ykeep + return choice + endif + endif + endif + let &ei= eikeep + endif + + " restore b:netrw_curdir (window split/enew may have lost it) + let b:netrw_curdir= curdir + if a:islocal < 2 + if a:islocal + call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(a:islocal,curword,0)) + else + call s:NetrwBrowse(a:islocal,s:NetrwBrowseChgDir(a:islocal,curword,0)) + endif + endif + let @@= ykeep + return choice +endfunction + +" s:NetrwUpload: load fname to tgt (used by NetrwMarkFileCopy()) {{{2 +" Always assumed to be local -> remote +" call s:NetrwUpload(filename, target) +" call s:NetrwUpload(filename, target, fromdirectory) +function s:NetrwUpload(fname,tgt,...) + + if a:tgt =~ '^\a\{3,}://' + let tgtdir= substitute(a:tgt,'^\a\{3,}://[^/]\+/\(.\{-}\)$','\1','') + else + let tgtdir= substitute(a:tgt,'^\(.*\)/[^/]*$','\1','') + endif + + if a:0 > 0 + let fromdir= a:1 + else + let fromdir= getcwd() + endif + + if type(a:fname) == 1 + " handle uploading a single file using NetWrite + 1split + exe "NetrwKeepj e ".fnameescape(s:NetrwFile(a:fname)) + if a:tgt =~ '/$' + let wfname= substitute(a:fname,'^.*/','','') + exe "w! ".fnameescape(a:tgt.wfname) + else + exe "w ".fnameescape(a:tgt) + endif + q! + + elseif type(a:fname) == 3 + " handle uploading a list of files via scp + let curdir= getcwd() + if a:tgt =~ '^scp:' + if s:NetrwLcd(fromdir) + return + endif + let filelist= deepcopy(s:netrwmarkfilelist_{bufnr('%')}) + let args = join(map(filelist,"netrw#os#Escape(v:val, 1)")) + if exists("g:netrw_port") && g:netrw_port != "" + let useport= " ".g:netrw_scpport." ".g:netrw_port + else + let useport= "" + endif + let machine = substitute(a:tgt,'^scp://\([^/:]\+\).*$','\1','') + let tgt = substitute(a:tgt,'^scp://[^/]\+/\(.*\)$','\1','') + call netrw#os#Execute(s:netrw_silentxfer."!".g:netrw_scp_cmd.netrw#os#Escape(useport,1)." ".args." ".netrw#os#Escape(machine.":".tgt,1)) + if s:NetrwLcd(curdir) + return + endif + + elseif a:tgt =~ '^ftp:' + call s:NetrwMethod(a:tgt) + if !s:NetrwValidateHostname(g:netrw_machine) + call netrw#msg#Notify('ERROR', printf('Rejecting invalid hostname: <%s>', g:netrw_machine)) + return + endif + + if b:netrw_method == 2 + " handle uploading a list of files via ftp+.netrc + let netrw_fname = b:netrw_fname + sil NetrwKeepj new + + NetrwKeepj put =g:netrw_ftpmode + + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + + NetrwKeepj call setline(line("$")+1,'lcd "'.fromdir.'"') + + if tgtdir == "" + let tgtdir= '/' + endif + NetrwKeepj call setline(line("$")+1,'cd "'.tgtdir.'"') + + for fname in a:fname + NetrwKeepj call setline(line("$")+1,'put "'.s:NetrwFile(fname).'"') + endfor + + if exists("g:netrw_port") && g:netrw_port != "" + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)." ".netrw#os#Escape(g:netrw_port,1)) + else + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)) + endif + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + sil NetrwKeepj g/Local directory now/d + call histdel("/",-1) + if getline(1) !~ "^$" && getline(1) !~ '^Trying ' + call netrw#msg#Notify('ERROR', getline(1)) + else + bw!|q + endif + + elseif b:netrw_method == 3 + " upload with ftp + machine, id, passwd, and fname (ie. no .netrc) + let netrw_fname= b:netrw_fname + NetrwKeepj call s:SaveBufVars()|sil NetrwKeepj new|NetrwKeepj call s:RestoreBufVars() + let tmpbufnr= bufnr("%") + setl ff=unix + + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + + if exists("g:netrw_uid") && g:netrw_uid != "" + if exists("g:netrw_ftp") && g:netrw_ftp == 1 + NetrwKeepj put =g:netrw_uid + if exists("s:netrw_passwd") + NetrwKeepj call setline(line("$")+1,'"'.s:netrw_passwd.'"') + endif + elseif exists("s:netrw_passwd") + NetrwKeepj put ='user \"'.g:netrw_uid.'\" \"'.s:netrw_passwd.'\"' + endif + endif + + NetrwKeepj call setline(line("$")+1,'lcd "'.fromdir.'"') + + if exists("b:netrw_fname") && b:netrw_fname != "" + NetrwKeepj call setline(line("$")+1,'cd "'.b:netrw_fname.'"') + endif + + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + + for fname in a:fname + NetrwKeepj call setline(line("$")+1,'put "'.fname.'"') + endfor + + " perform ftp: + " -i : turns off interactive prompting from ftp + " -n unix : DON'T use <.netrc>, even though it exists + " -n win32: quit being obnoxious about password + NetrwKeepj norm! 1G"_dd + call netrw#os#Execute(s:netrw_silentxfer."%!".s:netrw_ftp_cmd." ".g:netrw_ftp_options) + " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar) + sil NetrwKeepj g/Local directory now/d + call histdel("/",-1) + if getline(1) !~ "^$" && getline(1) !~ '^Trying ' + let debugkeep= &debug + setl debug=msg + call netrw#msg#Notify('ERROR', getline(1)) + let &debug = debugkeep + let mod = 1 + else + bw!|q + endif + elseif !exists("b:netrw_method") || b:netrw_method < 0 + return + endif + else + call netrw#msg#Notify('ERROR', printf("can't obtain files with protocol from<%s>", a:tgt)) + endif + endif + +endfunction + +" s:NetrwPreview: supports netrw's "p" map {{{2 +function s:NetrwPreview(path) range + let ykeep= @@ + NetrwKeepj call s:NetrwOptionsSave("s:") + if a:path !~ '^\*\{1,2}/' && a:path !~ '^\a\{3,}://' + NetrwKeepj call s:NetrwOptionsSafe(1) + else + NetrwKeepj call s:NetrwOptionsSafe(0) + endif + if has("quickfix") + if !isdirectory(s:NetrwFile(a:path)) + if g:netrw_preview + " vertical split + let pvhkeep = &pvh + let winsz = (g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize + let &pvh = winwidth(0) - winsz + else + " horizontal split + let pvhkeep = &pvh + let winsz = (g:netrw_winsize > 0)? (g:netrw_winsize*winheight(0))/100 : -g:netrw_winsize + let &pvh = winheight(0) - winsz + endif + " g:netrw_preview g:netrw_alto + " 1 : vert 1: top -- preview window is vertically split off and on the left + " 1 : vert 0: bot -- preview window is vertically split off and on the right + " 0 : 1: top -- preview window is horizontally split off and on the top + " 0 : 0: bot -- preview window is horizontally split off and on the bottom + " + " Note that the file being previewed is already known to not be a directory, hence we can avoid doing a LocalBrowseCheck() check via + " the BufEnter event set up in netrwPlugin.vim + let eikeep = &ei + set ei=BufEnter + exe (g:netrw_alto? "top " : "bot ").(g:netrw_preview? "vert " : "")."pedit ".fnameescape(a:path) + let &ei= eikeep + if exists("pvhkeep") + let &pvh= pvhkeep + endif + else + call netrw#msg#Notify('WARNING', printf('sorry, cannot preview a directory such as <%s>', a:path)) + endif + else + call netrw#msg#Notify('WARNING', 'sorry, to preview your vim needs the quickfix feature compiled in') + endif + NetrwKeepj call s:NetrwOptionsRestore("s:") + let @@= ykeep +endfunction + +" s:NetrwRefresh: {{{2 +function s:NetrwRefresh(islocal,dirname) + " at the current time (Mar 19, 2007) all calls to NetrwRefresh() call NetrwBrowseChgDir() first. + setl ma noro + let ykeep = @@ + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + if !exists("w:netrw_treetop") + if exists("b:netrw_curdir") + let w:netrw_treetop= b:netrw_curdir + else + let w:netrw_treetop= getcwd() + endif + endif + NetrwKeepj call s:NetrwRefreshTreeDict(w:netrw_treetop) + endif + + " save the cursor position before refresh. + let screenposn = winsaveview() + + sil! NetrwKeepj %d _ + if a:islocal + NetrwKeepj call netrw#LocalBrowseCheck(a:dirname) + else + NetrwKeepj call s:NetrwBrowse(a:islocal,a:dirname) + endif + + " restore position + NetrwKeepj call winrestview(screenposn) + + " restore file marks + if has("syntax") && exists("g:syntax_on") && g:syntax_on + if exists("s:netrwmarkfilemtch_{bufnr('%')}") && s:netrwmarkfilemtch_{bufnr("%")} != "" + exe "2match netrwMarkFile /".s:netrwmarkfilemtch_{bufnr("%")}."/" + else + 2match none + endif + endif + + " restore + let @@= ykeep +endfunction + +" s:NetrwRefreshDir: refreshes a directory by name {{{2 +" Called by NetrwMarkFileCopy() +" Interfaces to s:NetrwRefresh() and s:LocalBrowseRefresh() +function s:NetrwRefreshDir(islocal,dirname) + if g:netrw_fastbrowse == 0 + " slowest mode (keep buffers refreshed, local or remote) + let tgtwin= bufwinnr(a:dirname) + + if tgtwin > 0 + " tgtwin is being displayed, so refresh it + let curwin= winnr() + exe tgtwin."wincmd w" + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + exe curwin."wincmd w" + + elseif bufnr(a:dirname) > 0 + let bn= bufnr(a:dirname) + exe "sil keepj bd ".bn + endif + + elseif g:netrw_fastbrowse <= 1 + NetrwKeepj call s:LocalBrowseRefresh() + endif +endfunction + +" s:NetrwSetChgwin: set g:netrw_chgwin; a will use the specified +" window number to do its editing in. +" Supports [count]C where the count, if present, is used to specify +" a window to use for editing via the mapping. +function s:NetrwSetChgwin(...) + if a:0 > 0 + if a:1 == "" " :NetrwC win# + let g:netrw_chgwin= winnr() + else " :NetrwC + let g:netrw_chgwin= a:1 + endif + elseif v:count > 0 " [count]C + let g:netrw_chgwin= v:count + else " C + let g:netrw_chgwin= winnr() + endif + echo "editing window now set to window#".g:netrw_chgwin +endfunction + +" s:NetrwSetSort: sets up the sort based on the g:netrw_sort_sequence {{{2 +" What this function does is to compute a priority for the patterns +" in the g:netrw_sort_sequence. It applies a substitute to any +" "files" that satisfy each pattern, putting the priority / in +" front. An "*" pattern handles the default priority. +function s:NetrwSetSort() + let ykeep= @@ + if w:netrw_liststyle == s:LONGLIST + let seqlist = substitute(g:netrw_sort_sequence,'\$','\\%(\t\\|\$\\)','ge') + else + let seqlist = g:netrw_sort_sequence + endif + " sanity check -- insure that * appears somewhere + if seqlist == "" + let seqlist= '*' + elseif seqlist !~ '\*' + let seqlist= seqlist.',*' + endif + let priority = 1 + while seqlist != "" + if seqlist =~ ',' + let seq = substitute(seqlist,',.*$','','e') + let seqlist = substitute(seqlist,'^.\{-},\(.*\)$','\1','e') + else + let seq = seqlist + let seqlist = "" + endif + if priority < 10 + let spriority= "00".priority.g:netrw_sepchr + elseif priority < 100 + let spriority= "0".priority.g:netrw_sepchr + else + let spriority= priority.g:netrw_sepchr + endif + + " sanity check + if w:netrw_bannercnt > line("$") + " apparently no files were left after a Hiding pattern was used + return + endif + if seq == '*' + let starpriority= spriority + else + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$g/'.seq.'/s/^/'.spriority.'/' + call histdel("/",-1) + " sometimes multiple sorting patterns will match the same file or directory. + " The following substitute is intended to remove the excess matches. + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$g/^\d\{3}'.g:netrw_sepchr.'\d\{3}\//s/^\d\{3}'.g:netrw_sepchr.'\(\d\{3}\/\).\@=/\1/e' + NetrwKeepj call histdel("/",-1) + endif + let priority = priority + 1 + endwhile + if exists("starpriority") + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$v/^\d\{3}'.g:netrw_sepchr.'/s/^/'.starpriority.'/e' + NetrwKeepj call histdel("/",-1) + endif + + " Following line associated with priority -- items that satisfy a priority + " pattern get prefixed by ###/ which permits easy sorting by priority. + " Sometimes files can satisfy multiple priority patterns -- only the latest + " priority pattern needs to be retained. So, at this point, these excess + " priority prefixes need to be removed, but not directories that happen to + " be just digits themselves. + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$s/^\(\d\{3}'.g:netrw_sepchr.'\)\%(\d\{3}'.g:netrw_sepchr.'\)\+\ze./\1/e' + NetrwKeepj call histdel("/",-1) + let @@= ykeep + +endfunction + +" s:NetrwSetTgt: sets the target to the specified choice index {{{2 +" Implements [count]Tb (bookhist) +" [count]Th (bookhist) +" See :help netrw-qb for how to make the choice. +function s:NetrwSetTgt(islocal,bookhist,choice) + + if a:bookhist == 'b' + " supports choosing a bookmark as a target using a qb-generated list + let choice= a:choice - 1 + if exists("g:netrw_bookmarklist[".choice."]") + call netrw#MakeTgt(g:netrw_bookmarklist[choice]) + else + echomsg "Sorry, bookmark#".a:choice." doesn't exist!" + endif + + elseif a:bookhist == 'h' + " supports choosing a history stack entry as a target using a qb-generated list + let choice= (a:choice % g:netrw_dirhistmax) + 1 + if exists("g:netrw_dirhist_".choice) + let histentry = g:netrw_dirhist_{choice} + call netrw#MakeTgt(histentry) + else + echomsg "Sorry, history#".a:choice." not available!" + endif + endif + + " refresh the display + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + call s:NetrwRefresh(a:islocal,b:netrw_curdir) + +endfunction + +" s:NetrwSortStyle: change sorting style (name - time - size - exten) and refresh display {{{2 +function s:NetrwSortStyle(islocal) + NetrwKeepj call s:NetrwSaveWordPosn() + let svpos= winsaveview() + + let g:netrw_sort_by= (g:netrw_sort_by =~# '^n')? 'time' : (g:netrw_sort_by =~# '^t')? 'size' : (g:netrw_sort_by =~# '^siz')? 'exten' : 'name' + NetrwKeepj norm! 0 + NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + NetrwKeepj call winrestview(svpos) +endfunction + +" s:NetrwSplit: mode {{{2 +" =0 : net and o +" =1 : net and t +" =2 : net and v +" =3 : local and o +" =4 : local and t +" =5 : local and v +function s:NetrwSplit(mode) + + let ykeep= @@ + call s:SaveWinVars() + + if a:mode == 0 + " remote and o + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winheight(0))/100 : -g:netrw_winsize + if winsz == 0|let winsz= ""|endif + exe (g:netrw_alto? "bel " : "abo ").winsz."wincmd s" + let s:didsplit= 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,s:NetrwGetWord(),1)) + unlet s:didsplit + + elseif a:mode == 1 + " remote and t + let newdir = s:NetrwBrowseChgDir(0,s:NetrwGetWord(),1) + tabnew + let s:didsplit= 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call s:NetrwBrowse(0,newdir) + unlet s:didsplit + + elseif a:mode == 2 + " remote and v + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize + if winsz == 0|let winsz= ""|endif + exe (g:netrw_altv? "rightb " : "lefta ").winsz."wincmd v" + let s:didsplit= 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call s:NetrwBrowse(0,s:NetrwBrowseChgDir(0,s:NetrwGetWord(),1)) + unlet s:didsplit + + elseif a:mode == 3 + " local and o + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winheight(0))/100 : -g:netrw_winsize + if winsz == 0|let winsz= ""|endif + exe (g:netrw_alto? "bel " : "abo ").winsz."wincmd s" + let s:didsplit= 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1)) + unlet s:didsplit + if &ea + exe "keepalt wincmd =" + endif + + elseif a:mode == 4 + " local and t + let cursorword = s:NetrwGetWord() + let eikeep = &ei + let netrw_winnr = winnr() + let netrw_line = line(".") + let netrw_col = virtcol(".") + NetrwKeepj norm! H0 + let netrw_hline = line(".") + setl ei=all + exe "NetrwKeepj norm! ".netrw_hline."G0z\" + exe "NetrwKeepj norm! ".netrw_line."G0".netrw_col."\" + let &ei = eikeep + let netrw_curdir = s:NetrwTreeDir(0) + tabnew + let b:netrw_curdir = netrw_curdir + let s:didsplit = 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,cursorword,0)) + if &ft == "netrw" + setl ei=all + exe "NetrwKeepj norm! ".netrw_hline."G0z\" + exe "NetrwKeepj norm! ".netrw_line."G0".netrw_col."\" + let &ei= eikeep + endif + unlet s:didsplit + + elseif a:mode == 5 + " local and v + let winsz= (g:netrw_winsize > 0)? (g:netrw_winsize*winwidth(0))/100 : -g:netrw_winsize + if winsz == 0|let winsz= ""|endif + exe (g:netrw_altv? "rightb " : "lefta ").winsz."wincmd v" + let s:didsplit= 1 + NetrwKeepj call s:RestoreWinVars() + NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1)) + unlet s:didsplit + if &ea + exe "keepalt wincmd =" + endif + + else + call netrw#msg#Notify('ERROR', '(NetrwSplit) unsupported mode='.a:mode) + endif + + let @@= ykeep +endfunction + +" s:NetrwTgtMenu: {{{2 +function s:NetrwTgtMenu() + if !exists("s:netrw_menucnt") + return + endif + + " the following test assures that gvim is running, has menus available, and has menus enabled. + if has("gui") && has("menu") && has("gui_running") && &go =~# 'm' && g:netrw_menu + if exists("g:NetrwTopLvlMenu") + exe 'sil! unmenu '.g:NetrwTopLvlMenu.'Targets' + endif + if !exists("s:netrw_initbookhist") + call s:NetrwBookHistRead() + endif + + " try to cull duplicate entries + let tgtdict={} + + " target bookmarked places + if exists("g:netrw_bookmarklist") && g:netrw_bookmarklist != [] && g:netrw_dirhistmax > 0 + let cnt= 1 + for bmd in g:netrw_bookmarklist + if has_key(tgtdict,bmd) + let cnt= cnt + 1 + continue + endif + let tgtdict[bmd]= cnt + let ebmd= escape(bmd,g:netrw_menu_escape) + " show bookmarks for goto menu + exe 'sil! menu '.g:NetrwMenuPriority.".19.1.".cnt." ".g:NetrwTopLvlMenu.'Targets.'.ebmd." :call netrw#MakeTgt('".bmd."')\" + let cnt= cnt + 1 + endfor + endif + + " target directory browsing history + if exists("g:netrw_dirhistmax") && g:netrw_dirhistmax > 0 + let histcnt = 1 + while histcnt <= g:netrw_dirhistmax + let priority = g:netrw_dirhistcnt + histcnt + if exists("g:netrw_dirhist_{histcnt}") + let histentry = g:netrw_dirhist_{histcnt} + if has_key(tgtdict,histentry) + let histcnt = histcnt + 1 + continue + endif + let tgtdict[histentry] = histcnt + let ehistentry = escape(histentry,g:netrw_menu_escape) + exe 'sil! menu '.g:NetrwMenuPriority.".19.2.".priority." ".g:NetrwTopLvlMenu.'Targets.'.ehistentry." :call netrw#MakeTgt('".histentry."')\" + endif + let histcnt = histcnt + 1 + endwhile + endif + endif +endfunction + +" s:NetrwTreeDir: determine tree directory given current cursor position {{{2 +" (full path directory with trailing slash returned) +function s:NetrwTreeDir(islocal) + + if exists("s:treedir") && exists("s:prevwinopen") + " s:NetrwPrevWinOpen opens a "previous" window -- and thus needs to and does call s:NetrwTreeDir early + let treedir= s:treedir + unlet s:treedir + unlet s:prevwinopen + return treedir + endif + if exists("s:prevwinopen") + unlet s:prevwinopen + endif + + if !exists("b:netrw_curdir") || b:netrw_curdir == "" + let b:netrw_curdir= getcwd() + endif + let treedir = b:netrw_curdir + let s:treecurpos= winsaveview() + + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + + " extract tree directory if on a line specifying a subdirectory (ie. ends with "/") + let curline= substitute(getline('.'),"\t -->.*$",'','') + if curline =~ '/$' + let treedir= substitute(getline('.'),'^\%('.s:treedepthstring.'\)*\([^'.s:treedepthstring.'].\{-}\)$','\1','e') + elseif curline =~ '@$' + let potentialdir= resolve(s:NetrwTreePath(w:netrw_treetop)) + else + let treedir= "" + endif + + " detect user attempting to close treeroot + if curline !~ '^'.s:treedepthstring && getline('.') != '..' + " now force a refresh + sil! NetrwKeepj %d _ + return b:netrw_curdir + endif + + " COMBAK: a symbolic link may point anywhere -- so it will be used to start a new treetop + " if a:islocal && curline =~ '@$' && isdirectory(s:NetrwFile(potentialdir)) + " let newdir = w:netrw_treetop.'/'.potentialdir + if a:islocal && curline =~ '@$' + if isdirectory(s:NetrwFile(potentialdir)) + let treedir = potentialdir + let w:netrw_treetop = treedir + endif + else + let potentialdir= s:NetrwFile(substitute(curline,'^'.s:treedepthstring.'\+ \(.*\)@$','\1','')) + let treedir = s:NetrwTreePath(w:netrw_treetop) + endif + endif + + " sanity maintenance: keep those //s away... + let treedir= substitute(treedir,'//$','/','') + return treedir +endfunction + +" s:NetrwTreeDisplay: recursive tree display {{{2 +function s:NetrwTreeDisplay(dir,depth) + " ensure that there are no folds + setl nofen + + " install ../ and shortdir + if a:depth == "" + call setline(line("$")+1,'../') + endif + if a:dir =~ '^\a\{3,}://' + if a:dir == w:netrw_treetop + let shortdir= a:dir + else + let shortdir= substitute(a:dir,'^.*/\([^/]\+\)/$','\1/','e') + endif + call setline(line("$")+1,a:depth.shortdir) + else + let shortdir= substitute(a:dir,'^.*/','','e') + call setline(line("$")+1,a:depth.shortdir.'/') + endif + " append a / to dir if its missing one + let dir= a:dir + + " display subtrees (if any) + let depth= s:treedepthstring.a:depth + + " implement g:netrw_hide for tree listings (uses g:netrw_list_hide) + if g:netrw_hide == 1 + " hide given patterns + let listhide= split(g:netrw_list_hide,',') + for pat in listhide + call filter(w:netrw_treedict[dir],'v:val !~ "'.escape(pat,'\\').'"') + endfor + + elseif g:netrw_hide == 2 + " show given patterns (only) + let listhide= split(g:netrw_list_hide,',') + let entries=[] + for entry in w:netrw_treedict[dir] + for pat in listhide + if entry =~ pat + call add(entries,entry) + break + endif + endfor + endfor + let w:netrw_treedict[dir]= entries + endif + if depth != "" + " always remove "." and ".." entries when there's depth + call filter(w:netrw_treedict[dir],'v:val !~ "\\.\\.$"') + call filter(w:netrw_treedict[dir],'v:val !~ "\\.\\./$"') + call filter(w:netrw_treedict[dir],'v:val !~ "\\.$"') + call filter(w:netrw_treedict[dir],'v:val !~ "\\./$"') + endif + + for entry in w:netrw_treedict[dir] + if dir =~ '/$' + let direntry= substitute(dir.entry,'[@/]$','','e') + else + let direntry= substitute(dir.'/'.entry,'[@/]$','','e') + endif + if entry =~ '/$' && has_key(w:netrw_treedict,direntry) + NetrwKeepj call s:NetrwTreeDisplay(direntry,depth) + elseif entry =~ '/$' && has_key(w:netrw_treedict,direntry.'/') + NetrwKeepj call s:NetrwTreeDisplay(direntry.'/',depth) + elseif entry =~ '@$' && has_key(w:netrw_treedict,direntry.'@') + NetrwKeepj call s:NetrwTreeDisplay(direntry.'@',depth) + else + sil! NetrwKeepj call setline(line("$")+1,depth.entry) + endif + endfor +endfunction + +" s:NetrwRefreshTreeDict: updates the contents information for a tree (w:netrw_treedict) {{{2 +function s:NetrwRefreshTreeDict(dir) + if !exists("w:netrw_treedict") + return + endif + + for entry in w:netrw_treedict[a:dir] + let direntry= substitute(a:dir.'/'.entry,'[@/]$','','e') + + if entry =~ '/$' && has_key(w:netrw_treedict,direntry) + NetrwKeepj call s:NetrwRefreshTreeDict(direntry) + let filelist = s:NetrwLocalListingList(direntry,0) + let w:netrw_treedict[direntry] = sort(filelist) + + elseif entry =~ '/$' && has_key(w:netrw_treedict,direntry.'/') + NetrwKeepj call s:NetrwRefreshTreeDict(direntry.'/') + let filelist = s:NetrwLocalListingList(direntry.'/',0) + let w:netrw_treedict[direntry] = sort(filelist) + + elseif entry =~ '@$' && has_key(w:netrw_treedict,direntry.'@') + NetrwKeepj call s:NetrwRefreshTreeDict(direntry.'/') + let liststar = netrw#fs#Glob(direntry.'/','*',1) + let listdotstar= netrw#fs#Glob(direntry.'/','.*',1) + + else + endif + endfor +endfunction + +" s:NetrwTreeListing: displays tree listing from treetop on down, using NetrwTreeDisplay() {{{2 +" Called by s:PerformListing() +function s:NetrwTreeListing(dirname) + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + + " update the treetop + if !exists("w:netrw_treetop") + let w:netrw_treetop= a:dirname + let s:netrw_treetop= w:netrw_treetop + " use \V in case the directory contains specials chars like '$' or '~' + elseif (w:netrw_treetop =~ ('^'.'\V'.a:dirname) + \ && strdisplaywidth(a:dirname) < strdisplaywidth(w:netrw_treetop)) + \ || a:dirname !~ ('^'.'\V'.w:netrw_treetop) + let w:netrw_treetop= a:dirname + let s:netrw_treetop= w:netrw_treetop + endif + if exists("w:netrw_treetop") + let s:netrw_treetop= w:netrw_treetop + else + let w:netrw_treetop= getcwd() + let s:netrw_treetop= w:netrw_treetop + endif + + if !exists("w:netrw_treedict") + " insure that we have a treedict, albeit empty + let w:netrw_treedict= {} + endif + + " update the dictionary for the current directory + exe "sil! NetrwKeepj keepp ".w:netrw_bannercnt.',$g@^\.\.\=/$@d _' + let w:netrw_treedict[a:dirname]= getline(w:netrw_bannercnt,line("$")) + exe "sil! NetrwKeepj ".w:netrw_bannercnt.",$d _" + + " if past banner, record word + if exists("w:netrw_bannercnt") && line(".") > w:netrw_bannercnt + let fname= expand("") + else + let fname= "" + endif + + " display from treetop on down + NetrwKeepj call s:NetrwTreeDisplay(w:netrw_treetop,"") + + " remove any blank line remaining as line#1 (happens in treelisting mode with banner suppressed) + while getline(1) =~ '^\s*$' && byte2line(1) > 0 + 1d + endwhile + + exe "setl ".g:netrw_bufsettings + + return + endif +endfunction + +" s:NetrwTreePath: returns path to current file/directory in tree listing {{{2 +" Normally, treetop is w:netrw_treetop, but a +" user of the function ( netrw#SetTreetop() ) +" wipes that out prior to calling this function +function s:NetrwTreePath(treetop) + if line(".") < w:netrw_bannercnt + 2 + let treedir= a:treetop + if treedir !~ '/$' + let treedir= treedir.'/' + endif + return treedir + endif + + let svpos = winsaveview() + let depth = substitute(getline('.'),'^\(\%('.s:treedepthstring.'\)*\)[^'.s:treedepthstring.'].\{-}$','\1','e') + let depth = substitute(depth,'^'.s:treedepthstring,'','') + let curline= getline('.') + if curline =~ '/$' + let treedir= substitute(curline,'^\%('.s:treedepthstring.'\)*\([^'.s:treedepthstring.'].\{-}\)$','\1','e') + elseif curline =~ '@\s\+-->' + let treedir= substitute(curline,'^\%('.s:treedepthstring.'\)*\([^'.s:treedepthstring.'].\{-}\)$','\1','e') + let treedir= substitute(treedir,'@\s\+-->.*$','','e') + else + let treedir= "" + endif + " construct treedir by searching backwards at correct depth + while depth != "" && search('^'.depth.'[^'.s:treedepthstring.'].\{-}/$','bW') + let dirname= substitute(getline('.'),'^\('.s:treedepthstring.'\)*','','e') + let treedir= dirname.treedir + let depth = substitute(depth,'^'.s:treedepthstring,'','') + endwhile + if a:treetop =~ '/$' + let treedir= a:treetop.treedir + else + let treedir= a:treetop.'/'.treedir + endif + let treedir= substitute(treedir,'//$','/','') + call winrestview(svpos) + return treedir +endfunction + +" s:NetrwWideListing: {{{2 +function s:NetrwWideListing() + + if w:netrw_liststyle == s:WIDELIST + " look for longest filename (cpf=characters per filename) + " cpf: characters per filename + " fpl: filenames per line + " fpc: filenames per column + setl ma noro + let dict={} + " save the unnamed register and register 0-9 and a + let dict.a=[getreg('a'), getregtype('a')] + for i in range(0, 9) + let dict[i] = [getreg(i), getregtype(i)] + endfor + let dict.unnamed = [getreg(''), getregtype('')] + let b:netrw_cpf= 0 + if line("$") >= w:netrw_bannercnt + " determine the maximum filename size; use that to set cpf + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$g/^./if virtcol("$") > b:netrw_cpf|let b:netrw_cpf= virtcol("$")|endif' + NetrwKeepj call histdel("/",-1) + else + " restore stored registers + call s:RestoreRegister(dict) + return + endif + " allow for two spaces to separate columns + let b:netrw_cpf= b:netrw_cpf + 2 + + " determine qty files per line (fpl) + let w:netrw_fpl= winwidth(0)/b:netrw_cpf + if w:netrw_fpl <= 0 + let w:netrw_fpl= 1 + endif + + " make wide display + " fpc: files per column of wide listing + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$s/^.*$/\=escape(printf("%-'.b:netrw_cpf.'S",submatch(0)),"\\")/' + NetrwKeepj call histdel("/",-1) + let fpc = (line("$") - w:netrw_bannercnt + w:netrw_fpl)/w:netrw_fpl + let newcolstart = w:netrw_bannercnt + fpc + let newcolend = newcolstart + fpc - 1 + if has("clipboard") && g:netrw_clipboard + sil! let keepregstar = @* + sil! let keepregplus = @+ + endif + while line("$") >= newcolstart + if newcolend > line("$") | let newcolend= line("$") | endif + let newcolqty= newcolend - newcolstart + exe newcolstart + " COMBAK: both of the visual-mode using lines below are problematic vis-a-vis @* + if newcolqty == 0 + exe "sil! NetrwKeepj norm! 0\$h\"ax".w:netrw_bannercnt."G$\"ap" + else + exe "sil! NetrwKeepj norm! 0\".newcolqty.'j$h"ax'.w:netrw_bannercnt.'G$"ap' + endif + exe "sil! NetrwKeepj ".newcolstart.','.newcolend.'d _' + exe 'sil! NetrwKeepj '.w:netrw_bannercnt + endwhile + if has("clipboard") + if @* != keepregstar | sil! let @* = keepregstar | endif + if @+ != keepregplus | sil! let @+ = keepregplus | endif + endif + exe "sil! NetrwKeepj ".w:netrw_bannercnt.',$s/\s\+$//e' + NetrwKeepj call histdel("/",-1) + exe 'nno w :call search(''^.\\|\s\s\zs\S'',''W'')'."\" + exe 'nno b :call search(''^.\\|\s\s\zs\S'',''bW'')'."\" + exe "setl ".g:netrw_bufsettings + call s:RestoreRegister(dict) + return + else + if hasmapto("w","n") + sil! nunmap w + endif + if hasmapto("b","n") + sil! nunmap b + endif + endif +endfunction + +" s:PerformListing: {{{2 +function s:PerformListing(islocal) + sil! NetrwKeepj %d _ + " call DechoBuf(bufnr("%")) + + " set up syntax highlighting {{{3 + sil! setl ft=netrw + + NetrwKeepj call s:NetrwOptionsSafe(a:islocal) + setl noro ma + + + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") + " force a refresh for tree listings + sil! NetrwKeepj %d _ + endif + + " save current directory on directory history list + NetrwKeepj call s:NetrwBookHistHandler(3,b:netrw_curdir) + + " Set up the banner {{{3 + if g:netrw_banner + NetrwKeepj call setline(1,'" ============================================================================') + if exists("g:netrw_pchk") + " this undocumented option allows pchk to run with different versions of netrw without causing spurious + " failure detections. + NetrwKeepj call setline(2,'" Netrw Directory Listing') + else + NetrwKeepj call setline(2,'" Netrw Directory Listing (netrw '.g:loaded_netrw.')') + endif + if exists("g:netrw_pchk") + let curdir= substitute(b:netrw_curdir,expand("$HOME"),'~','') + else + let curdir= b:netrw_curdir + endif + if exists("g:netrw_bannerbackslash") && g:netrw_bannerbackslash + NetrwKeepj call setline(3,'" '.substitute(curdir,'/','\\','g')) + else + NetrwKeepj call setline(3,'" '.curdir) + endif + let w:netrw_bannercnt= 3 + NetrwKeepj exe "sil! NetrwKeepj ".w:netrw_bannercnt + else + NetrwKeepj 1 + let w:netrw_bannercnt= 1 + endif + + " construct sortby string: [name|time|size|exten] [reversed] + let sortby= g:netrw_sort_by + if g:netrw_sort_direction =~# "^r" + let sortby= sortby." reversed" + endif + + " Sorted by... {{{3 + if g:netrw_banner + if g:netrw_sort_by =~# "^n" + " sorted by name (also includes the sorting sequence in the banner) + NetrwKeepj put ='\" Sorted by '.sortby + NetrwKeepj put ='\" Sort sequence: '.g:netrw_sort_sequence + let w:netrw_bannercnt= w:netrw_bannercnt + 2 + else + " sorted by time, size, exten + NetrwKeepj put ='\" Sorted by '.sortby + let w:netrw_bannercnt= w:netrw_bannercnt + 1 + endif + exe "sil! NetrwKeepj ".w:netrw_bannercnt + endif + + " show copy/move target, if any {{{3 + if g:netrw_banner + if exists("s:netrwmftgt") && exists("s:netrwmftgt_islocal") + NetrwKeepj put ='' + if s:netrwmftgt_islocal + sil! NetrwKeepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (local)') + else + sil! NetrwKeepj call setline(line("."),'" Copy/Move Tgt: '.s:netrwmftgt.' (remote)') + endif + let w:netrw_bannercnt= w:netrw_bannercnt + 1 + else + endif + exe "sil! NetrwKeepj ".w:netrw_bannercnt + endif + + " Hiding... -or- Showing... {{{3 + if g:netrw_banner + if g:netrw_list_hide != "" && g:netrw_hide + if g:netrw_hide == 1 + NetrwKeepj put ='\" Hiding: '.g:netrw_list_hide + else + NetrwKeepj put ='\" Showing: '.g:netrw_list_hide + endif + let w:netrw_bannercnt= w:netrw_bannercnt + 1 + endif + exe "NetrwKeepj ".w:netrw_bannercnt + + let quickhelp = g:netrw_quickhelp%len(s:QuickHelp) + NetrwKeepj put ='\" Quick Help: :help '.s:QuickHelp[quickhelp] + NetrwKeepj put ='\" ==============================================================================' + let w:netrw_bannercnt= w:netrw_bannercnt + 2 + endif + + " bannercnt should index the line just after the banner + if g:netrw_banner + let w:netrw_bannercnt= w:netrw_bannercnt + 1 + exe "sil! NetrwKeepj ".w:netrw_bannercnt + endif + + " get list of files + if a:islocal + let filelist = s:NetrwLocalListingList(b:netrw_curdir, 1) + call append(w:netrw_bannercnt - 1, filelist) + silent! NetrwKeepj g/^$/d + silent! NetrwKeepj %s/\r$//e + execute printf("setl ts=%d", g:netrw_maxfilenamelen + 1) + else " remote + NetrwKeepj let badresult= s:NetrwRemoteListing() + if badresult + return + endif + endif + + " manipulate the directory listing (hide, sort) {{{3 + if !exists("w:netrw_bannercnt") + let w:netrw_bannercnt= 0 + endif + + if !g:netrw_banner || line("$") >= w:netrw_bannercnt + if g:netrw_hide && g:netrw_list_hide != "" + NetrwKeepj call s:NetrwListHide() + endif + if !g:netrw_banner || line("$") >= w:netrw_bannercnt + + if g:netrw_sort_by =~# "^n" + " sort by name + NetrwKeepj call s:NetrwSetSort() + + if !g:netrw_banner || w:netrw_bannercnt < line("$") + if g:netrw_sort_direction =~# 'n' + " name: sort by name of file + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$sort'.' '.g:netrw_sort_options + else + " reverse direction sorting + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$sort!'.' '.g:netrw_sort_options + endif + endif + + " remove priority pattern prefix + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^\d\{3}'.g:netrw_sepchr.'//e' + NetrwKeepj call histdel("/",-1) + + elseif g:netrw_sort_by =~# "^ext" + " exten: sort by extension + " The histdel(...,-1) calls remove the last search from the search history + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$g+/+s/^/001'.g:netrw_sepchr.'/' + NetrwKeepj call histdel("/",-1) + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$v+[./]+s/^/002'.g:netrw_sepchr.'/' + NetrwKeepj call histdel("/",-1) + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$v+['.g:netrw_sepchr.'/]+s/^\(.*\.\)\(.\{-\}\)$/\2'.g:netrw_sepchr.'&/e' + NetrwKeepj call histdel("/",-1) + if !g:netrw_banner || w:netrw_bannercnt < line("$") + if g:netrw_sort_direction =~# 'n' + " normal direction sorting + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$sort'.' '.g:netrw_sort_options + else + " reverse direction sorting + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$sort!'.' '.g:netrw_sort_options + endif + endif + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^.\{-}'.g:netrw_sepchr.'//e' + NetrwKeepj call histdel("/",-1) + + elseif a:islocal + if !g:netrw_banner || w:netrw_bannercnt < line("$") + if g:netrw_sort_direction =~# 'n' + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$sort'.' '.g:netrw_sort_options + else + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$sort!'.' '.g:netrw_sort_options + endif + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^\d\{-}\///e' + NetrwKeepj call histdel("/",-1) + endif + endif + + elseif g:netrw_sort_direction =~# 'r' + if !g:netrw_banner || w:netrw_bannercnt < line('$') + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$g/^/m '.w:netrw_bannercnt + call histdel("/",-1) + endif + endif + endif + + " convert to wide/tree listing {{{3 + NetrwKeepj call s:NetrwWideListing() + NetrwKeepj call s:NetrwTreeListing(b:netrw_curdir) + + " resolve symbolic links if local and (thin or tree) + if a:islocal && (w:netrw_liststyle == s:THINLIST || (exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST)) + sil! keepp g/@$/call s:ShowLink() + endif + + if exists("w:netrw_bannercnt") && (line("$") >= w:netrw_bannercnt || !g:netrw_banner) + " place cursor on the top-left corner of the file listing + exe 'sil! '.w:netrw_bannercnt + sil! NetrwKeepj norm! 0 + else + endif + + " record previous current directory + let w:netrw_prvdir= b:netrw_curdir + + " save certain window-oriented variables into buffer-oriented variables {{{3 + NetrwKeepj call s:SetBufWinVars() + NetrwKeepj call s:NetrwOptionsRestore("w:") + + " set display to netrw display settings + exe "setl ".g:netrw_bufsettings + if g:netrw_liststyle == s:LONGLIST + exe "setl ts=".(g:netrw_maxfilenamelen+1) + endif + " call DechoBuf(bufnr("%")) + + if exists("s:treecurpos") + NetrwKeepj call winrestview(s:treecurpos) + unlet s:treecurpos + endif + +endfunction + +" s:SetupNetrwStatusLine: {{{2 +function s:SetupNetrwStatusLine(statline) + + if !exists("s:netrw_setup_statline") + let s:netrw_setup_statline= 1 + + if !exists("s:netrw_users_stl") + let s:netrw_users_stl= &stl + endif + if !exists("s:netrw_users_ls") + let s:netrw_users_ls= &laststatus + endif + + " set up User9 highlighting as needed + let dict={} + let dict.a=[getreg('a'), getregtype('a')] + redir @a + try + hi User9 + catch /^Vim\%((\a\{3,})\)\=:E411/ + if &bg == "dark" + hi User9 ctermfg=yellow ctermbg=blue guifg=yellow guibg=blue + else + hi User9 ctermbg=yellow ctermfg=blue guibg=yellow guifg=blue + endif + endtry + redir END + call s:RestoreRegister(dict) + endif + + " set up status line (may use User9 highlighting) + " insure that windows have a statusline + " make sure statusline is displayed + let &l:stl=a:statline + setl laststatus=2 + redraw + +endfunction + +" Remote Directory Browsing Support: {{{1 + +" s:NetrwRemoteFtpCmd: unfortunately, not all ftp servers honor options for ls {{{2 +" This function assumes that a long listing will be received. Size, time, +" and reverse sorts will be requested of the server but not otherwise +" enforced here. +function s:NetrwRemoteFtpCmd(path,listcmd) + " sanity check: {{{3 + if !exists("w:netrw_method") + if exists("b:netrw_method") + let w:netrw_method= b:netrw_method + else + call netrw#msg#Notify('ERROR', '(s:NetrwRemoteFtpCmd) internal netrw error') + return + endif + endif + + " WinXX ftp uses unix style input, so set ff to unix " {{{3 + let ffkeep= &ff + setl ma ff=unix noro + + " clear off any older non-banner lines " {{{3 + " note that w:netrw_bannercnt indexes the line after the banner + exe "sil! NetrwKeepj ".w:netrw_bannercnt.",$d _" + + "......................................... + if w:netrw_method == 2 || w:netrw_method == 5 " {{{3 + " ftp + <.netrc>: Method #2 + if a:path != "" + NetrwKeepj put ='cd \"'.a:path.'\"' + endif + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + NetrwKeepj call setline(line("$")+1,a:listcmd) + if exists("g:netrw_port") && g:netrw_port != "" + exe s:netrw_silentxfer." NetrwKeepj ".w:netrw_bannercnt.",$!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1)." ".netrw#os#Escape(g:netrw_port,1) + else + exe s:netrw_silentxfer." NetrwKeepj ".w:netrw_bannercnt.",$!".s:netrw_ftp_cmd." -i ".netrw#os#Escape(g:netrw_machine,1) + endif + + "......................................... + elseif w:netrw_method == 3 " {{{3 + " ftp + machine,id,passwd,filename: Method #3 + setl ff=unix + if exists("g:netrw_port") && g:netrw_port != "" + NetrwKeepj put ='open '.g:netrw_machine.' '.g:netrw_port + else + NetrwKeepj put ='open '.g:netrw_machine + endif + + " handle userid and password + let host= substitute(g:netrw_machine,'\..*$','','') + if exists("s:netrw_hup") && exists("s:netrw_hup[host]") + call netrw#NetUserPass("ftp:".host) + endif + if exists("g:netrw_uid") && g:netrw_uid != "" + if exists("g:netrw_ftp") && g:netrw_ftp == 1 + NetrwKeepj put =g:netrw_uid + if exists("s:netrw_passwd") && s:netrw_passwd != "" + NetrwKeepj put ='\"'.s:netrw_passwd.'\"' + endif + elseif exists("s:netrw_passwd") + NetrwKeepj put ='user \"'.g:netrw_uid.'\" \"'.s:netrw_passwd.'\"' + endif + endif + + if a:path != "" + NetrwKeepj put ='cd \"'.a:path.'\"' + endif + if exists("g:netrw_ftpextracmd") + NetrwKeepj put =g:netrw_ftpextracmd + endif + NetrwKeepj call setline(line("$")+1,a:listcmd) + + " perform ftp: + " -i : turns off interactive prompting from ftp + " -n unix : DON'T use <.netrc>, even though it exists + " -n win32: quit being obnoxious about password + if exists("w:netrw_bannercnt") + call netrw#os#Execute(s:netrw_silentxfer.w:netrw_bannercnt.",$!".s:netrw_ftp_cmd." ".g:netrw_ftp_options) + endif + + "......................................... + elseif w:netrw_method == 9 " {{{3 + " sftp username@machine: Method #9 + " s:netrw_sftp_cmd + setl ff=unix + + " restore settings + let &l:ff= ffkeep + return + + "......................................... + else " {{{3 + call netrw#msg#Notify('WARNING', printf('unable to comply with your request<%s>', bufname("%"))) + endif + + " cleanup for Windows " {{{3 + if has("win32") + sil! NetrwKeepj %s/\r$//e + NetrwKeepj call histdel("/",-1) + endif + if a:listcmd == "dir" + " infer directory/link based on the file permission string + sil! NetrwKeepj g/d\%([-r][-w][-x]\)\{3}/NetrwKeepj s@$@/@e + sil! NetrwKeepj g/l\%([-r][-w][-x]\)\{3}/NetrwKeepj s/$/@/e + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + if w:netrw_liststyle == s:THINLIST || w:netrw_liststyle == s:WIDELIST || (exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST) + exe "sil! NetrwKeepj ".w:netrw_bannercnt.',$s/^\%(\S\+\s\+\)\{8}//e' + NetrwKeepj call histdel("/",-1) + endif + endif + + " ftp's listing doesn't seem to include ./ or ../ " {{{3 + if !search('^\.\/$\|\s\.\/$','wn') + exe 'NetrwKeepj '.w:netrw_bannercnt + NetrwKeepj put ='./' + endif + if !search('^\.\.\/$\|\s\.\.\/$','wn') + exe 'NetrwKeepj '.w:netrw_bannercnt + NetrwKeepj put ='../' + endif + + " restore settings " {{{3 + let &l:ff= ffkeep +endfunction + +" s:NetrwRemoteListing: {{{2 +function s:NetrwRemoteListing() + + if !exists("w:netrw_bannercnt") && exists("s:bannercnt") + let w:netrw_bannercnt= s:bannercnt + endif + if !exists("w:netrw_bannercnt") && exists("b:bannercnt") + let w:netrw_bannercnt= b:bannercnt + endif + + call s:RemotePathAnalysis(b:netrw_curdir) + + " sanity check: + if exists("b:netrw_method") && b:netrw_method =~ '[235]' + if !executable("ftp") + call netrw#msg#Notify('ERROR', "this system doesn't support remote directory listing via ftp") + call s:NetrwOptionsRestore("w:") + return -1 + endif + + elseif !exists("g:netrw_list_cmd") || g:netrw_list_cmd == '' + if g:netrw_list_cmd == "" + call netrw#msg#Notify('ERROR', printf('your g:netrw_list_cmd is empty; perhaps %s is not executable on your system', g:netrw_ssh_cmd)) + else + call netrw#msg#Notify('ERROR', "this system doesn't support remote directory listing via ".g:netrw_list_cmd) + endif + + NetrwKeepj call s:NetrwOptionsRestore("w:") + return -1 + endif " (remote handling sanity check) + + if exists("b:netrw_method") + let w:netrw_method= b:netrw_method + endif + + if s:method == "ftp" + " use ftp to get remote file listing {{{3 + let s:method = "ftp" + let listcmd = g:netrw_ftp_list_cmd + if g:netrw_sort_by =~# '^t' + let listcmd= g:netrw_ftp_timelist_cmd + elseif g:netrw_sort_by =~# '^s' + let listcmd= g:netrw_ftp_sizelist_cmd + endif + call s:NetrwRemoteFtpCmd(s:path,listcmd) + + " report on missing file or directory messages + if search('[Nn]o such file or directory\|Failed to change directory') + let mesg= getline(".") + if exists("w:netrw_bannercnt") + setl ma + exe w:netrw_bannercnt.",$d _" + setl noma + endif + NetrwKeepj call s:NetrwOptionsRestore("w:") + call netrw#msg#Notify('WARNING', mesg) + return -1 + endif + + if w:netrw_liststyle == s:THINLIST || w:netrw_liststyle == s:WIDELIST || (exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST) + " shorten the listing + exe "sil! keepalt NetrwKeepj ".w:netrw_bannercnt + + " cleanup + if g:netrw_ftp_browse_reject != "" + exe "sil! keepalt NetrwKeepj g/".g:netrw_ftp_browse_reject."/NetrwKeepj d" + NetrwKeepj call histdel("/",-1) + endif + sil! NetrwKeepj %s/\r$//e + NetrwKeepj call histdel("/",-1) + + " if there's no ../ listed, then put ../ in + let line1= line(".") + exe "sil! NetrwKeepj ".w:netrw_bannercnt + let line2= search('\.\.\/\%(\s\|$\)','cnW') + if line2 == 0 + sil! NetrwKeepj put='../' + endif + exe "sil! NetrwKeepj ".line1 + sil! NetrwKeepj norm! 0 + + if search('^\d\{2}-\d\{2}-\d\{2}\s','n') " M$ ftp site cleanup + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^\d\{2}-\d\{2}-\d\{2}\s\+\d\+:\d\+[AaPp][Mm]\s\+\%(\|\d\+\)\s\+//' + NetrwKeepj call histdel("/",-1) + else " normal ftp cleanup + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2/e' + exe "sil! NetrwKeepj ".w:netrw_bannercnt.',$g/ -> /s# -> .*/$#/#e' + exe "sil! NetrwKeepj ".w:netrw_bannercnt.',$g/ -> /s# -> .*$#/#e' + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + endif + endif + + else + " use ssh to get remote file listing {{{3 + let listcmd= s:MakeSshCmd(g:netrw_list_cmd) + if g:netrw_scp_cmd =~ '^pscp' + exe "NetrwKeepj r! ".listcmd.netrw#os#Escape(s:path, 1) + " remove rubbish and adjust listing format of 'pscp' to 'ssh ls -FLa' like + sil! NetrwKeepj g/^Listing directory/NetrwKeepj d + sil! NetrwKeepj g/^d[-rwx][-rwx][-rwx]/NetrwKeepj s+$+/+e + sil! NetrwKeepj g/^l[-rwx][-rwx][-rwx]/NetrwKeepj s+$+@+e + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + if g:netrw_liststyle != s:LONGLIST + sil! NetrwKeepj g/^[dlsp-][-rwx][-rwx][-rwx]/NetrwKeepj s/^.*\s\(\S\+\)$/\1/e + NetrwKeepj call histdel("/",-1) + endif + else + if s:path == "" + exe "NetrwKeepj keepalt r! ".listcmd + else + exe "NetrwKeepj keepalt r! ".listcmd.' '.netrw#os#Escape(fnameescape(s:path),1) + endif + endif + + " cleanup + if g:netrw_ssh_browse_reject != "" + exe "sil! g/".g:netrw_ssh_browse_reject."/NetrwKeepj d" + NetrwKeepj call histdel("/",-1) + endif + endif + + if w:netrw_liststyle == s:LONGLIST + " do a long listing; these substitutions need to be done prior to sorting {{{3 + + if s:method == "ftp" + " cleanup + exe "sil! NetrwKeepj ".w:netrw_bannercnt + while getline('.') =~# g:netrw_ftp_browse_reject + sil! NetrwKeepj d + endwhile + " if there's no ../ listed, then put ../ in + let line1= line(".") + sil! NetrwKeepj 1 + sil! NetrwKeepj call search('^\.\.\/\%(\s\|$\)','W') + let line2= line(".") + if line2 == 0 + if b:netrw_curdir != '/' + exe 'sil! NetrwKeepj '.w:netrw_bannercnt."put='../'" + endif + endif + exe "sil! NetrwKeepj ".line1 + sil! NetrwKeepj norm! 0 + endif + + if search('^\d\{2}-\d\{2}-\d\{2}\s','n') " M$ ftp site cleanup + exe 'sil! NetrwKeepj '.w:netrw_bannercnt.',$s/^\(\d\{2}-\d\{2}-\d\{2}\s\+\d\+:\d\+[AaPp][Mm]\s\+\%(\|\d\+\)\s\+\)\(\w.*\)$/\2\t\1/' + elseif exists("w:netrw_bannercnt") && w:netrw_bannercnt <= line("$") + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$s/ -> .*$//e' + exe 'sil NetrwKeepj '.w:netrw_bannercnt.',$s/^\(\%(\S\+\s\+\)\{7}\S\+\)\s\+\(\S.*\)$/\2 \t\1/e' + exe 'sil NetrwKeepj '.w:netrw_bannercnt + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + NetrwKeepj call histdel("/",-1) + endif + endif + + + return 0 +endfunction + +" s:NetrwRemoteRm: remove/delete a remote file or directory {{{2 +function s:NetrwRemoteRm(usrhost,path) range + let svpos= winsaveview() + + let all= 0 + if exists("s:netrwmarkfilelist_{bufnr('%')}") + " remove all marked files + for fname in s:netrwmarkfilelist_{bufnr("%")} + let ok= s:NetrwRemoteRmFile(a:path,fname,all) + if ok =~# 'q\%[uit]' + break + elseif ok =~# 'a\%[ll]' + let all= 1 + endif + endfor + call s:NetrwUnmarkList(bufnr("%"),b:netrw_curdir) + + else + " remove files specified by range + + " preparation for removing multiple files/directories + let keepsol = &l:sol + setl nosol + let ctr = a:firstline + + " remove multiple files and directories + while ctr <= a:lastline + exe "NetrwKeepj ".ctr + let ok= s:NetrwRemoteRmFile(a:path,s:NetrwGetWord(),all) + if ok =~# 'q\%[uit]' + break + elseif ok =~# 'a\%[ll]' + let all= 1 + endif + let ctr= ctr + 1 + endwhile + let &l:sol = keepsol + endif + + " refresh the (remote) directory listing + NetrwKeepj call s:NetrwRefresh(0,s:NetrwBrowseChgDir(0,'./',0)) + NetrwKeepj call winrestview(svpos) +endfunction + +" s:NetrwRemoteRmFile: {{{2 +function s:NetrwRemoteRmFile(path,rmfile,all) + + let all= a:all + let ok = "" + + if a:rmfile !~ '^"' && (a:rmfile =~ '@$' || a:rmfile !~ '[\/]$') + " attempt to remove file + if !all + echohl Statement + call inputsave() + let ok= input("Confirm deletion of file<".a:rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ") + call inputrestore() + echohl NONE + if ok == "" + let ok="no" + endif + let ok= substitute(ok,'\[{y(es)},n(o),a(ll),q(uit)]\s*','','e') + if ok =~# 'a\%[ll]' + let all= 1 + endif + endif + + if all || ok =~# 'y\%[es]' || ok == "" + if exists("w:netrw_method") && (w:netrw_method == 2 || w:netrw_method == 3) + let path= a:path + if path =~ '^\a\{3,}://' + let path= substitute(path,'^\a\{3,}://[^/]\+/','','') + endif + sil! NetrwKeepj .,$d _ + call s:NetrwRemoteFtpCmd(path,"delete ".'"'.a:rmfile.'"') + else + let netrw_rm_cmd= s:MakeSshCmd(g:netrw_rm_cmd) + if !exists("b:netrw_curdir") + call netrw#msg#Notify('ERROR', "for some reason b:netrw_curdir doesn't exist!") + let ok="q" + else + let remotedir= substitute(b:netrw_curdir,'^.\{-}//[^/]\+/\(.*\)$','\1','') + if remotedir != "" + let netrw_rm_cmd= netrw_rm_cmd." ".netrw#os#Escape(fnameescape(remotedir.a:rmfile)) + else + let netrw_rm_cmd= netrw_rm_cmd." ".netrw#os#Escape(fnameescape(a:rmfile)) + endif + let ret= system(netrw_rm_cmd) + if v:shell_error != 0 + if exists("b:netrw_curdir") && b:netrw_curdir != getcwd() && !g:netrw_keepdir + call netrw#msg#Notify('ERROR', printf("remove failed; perhaps due to vim's current directory<%s> not matching netrw's (%s) (see :help netrw-cd)", getcwd(), b:netrw_curdir)) + else + call netrw#msg#Notify('WARNING', printf('cmd<%s> failed', netrw_rm_cmd)) + endif + elseif ret != 0 + call netrw#msg#Notify('WARNING', printf('cmd<%s> failed', netrw_rm_cmd)) + endif + endif + endif + elseif ok =~# 'q\%[uit]' + endif + + else + " attempt to remove directory + if !all + call inputsave() + let ok= input("Confirm deletion of directory<".a:rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ") + call inputrestore() + if ok == "" + let ok="no" + endif + let ok= substitute(ok,'\[{y(es)},n(o),a(ll),q(uit)]\s*','','e') + if ok =~# 'a\%[ll]' + let all= 1 + endif + endif + + if all || ok =~# 'y\%[es]' || ok == "" + if exists("w:netrw_method") && (w:netrw_method == 2 || w:netrw_method == 3) + NetrwKeepj call s:NetrwRemoteFtpCmd(a:path,"rmdir ".a:rmfile) + else + let rmfile = substitute(a:path.a:rmfile,'/$','','') + let netrw_rmdir_cmd = s:MakeSshCmd(netrw#fs#WinPath(g:netrw_rmdir_cmd)).' '.netrw#os#Escape(netrw#fs#WinPath(rmfile)) + let ret= system(netrw_rmdir_cmd) + + if v:shell_error != 0 + let netrw_rmf_cmd= s:MakeSshCmd(netrw#fs#WinPath(g:netrw_rmf_cmd)).' '.netrw#os#Escape(netrw#fs#WinPath(substitute(rmfile,'[\/]$','','e'))) + let ret= system(netrw_rmf_cmd) + + if v:shell_error != 0 + call netrw#msg#Notify('ERROR', printf('unable to remove directory<%s> -- is it empty?', rmfile)) + endif + endif + endif + + elseif ok =~# 'q\%[uit]' + endif + endif + + return ok +endfunction + +" s:NetrwRemoteRename: rename a remote file or directory {{{2 +function s:NetrwRemoteRename(usrhost,path) range + + " preparation for removing multiple files/directories + let svpos = winsaveview() + let ctr = a:firstline + let rename_cmd = s:MakeSshCmd(g:netrw_rename_cmd) + + " rename files given by the markfilelist + if exists("s:netrwmarkfilelist_{bufnr('%')}") + for oldname in s:netrwmarkfilelist_{bufnr("%")} + if exists("subfrom") + let newname= substitute(oldname,subfrom,subto,'') + else + call inputsave() + let newname= input("Moving ".oldname." to : ",oldname) + call inputrestore() + if newname =~ '^s/' + let subfrom = substitute(newname,'^s/\([^/]*\)/.*/$','\1','') + let subto = substitute(newname,'^s/[^/]*/\(.*\)/$','\1','') + let newname = substitute(oldname,subfrom,subto,'') + endif + endif + + if exists("w:netrw_method") && (w:netrw_method == 2 || w:netrw_method == 3) + NetrwKeepj call s:NetrwRemoteFtpCmd(a:path,"rename ".oldname." ".newname) + else + let oldname= netrw#os#Escape(a:path.oldname) + let newname= netrw#os#Escape(a:path.newname) + let ret = system(netrw#fs#WinPath(rename_cmd).' '.oldname.' '.newname) + endif + + endfor + call s:NetrwUnMarkFile(1) + + else + + " attempt to rename files/directories + let keepsol= &l:sol + setl nosol + while ctr <= a:lastline + exe "NetrwKeepj ".ctr + + let oldname= s:NetrwGetWord() + + call inputsave() + let newname= input("Moving ".oldname." to : ",oldname) + call inputrestore() + + if exists("w:netrw_method") && (w:netrw_method == 2 || w:netrw_method == 3) + call s:NetrwRemoteFtpCmd(a:path,"rename ".oldname." ".newname) + else + let oldname= netrw#os#Escape(a:path.oldname) + let newname= netrw#os#Escape(a:path.newname) + let ret = system(netrw#fs#WinPath(rename_cmd).' '.oldname.' '.newname) + endif + + let ctr= ctr + 1 + endwhile + let &l:sol= keepsol + endif + + " refresh the directory + NetrwKeepj call s:NetrwRefresh(0,s:NetrwBrowseChgDir(0,'./',0)) + NetrwKeepj call winrestview(svpos) +endfunction + +" Local Directory Browsing Support: {{{1 + +" netrw#FileUrlEdit: handles editing file://* files {{{2 +" Should accept: file://localhost/etc/fstab +" file:///etc/fstab +" file:///c:/WINDOWS/clock.avi +" file:///c|/WINDOWS/clock.avi +" file://localhost/c:/WINDOWS/clock.avi +" file://localhost/c|/WINDOWS/clock.avi +" file://c:/foo.txt +" file:///c:/foo.txt +" and %XX (where X is [0-9a-fA-F] is converted into a character with the given hexadecimal value +function netrw#FileUrlEdit(fname) + let fname = a:fname + if fname =~ '^file://localhost/' + let fname= substitute(fname,'^file://localhost/','file:///','') + endif + if has("win32") + if fname =~ '^file:///\=\a[|:]/' + let fname = substitute(fname,'^file:///\=\(\a\)[|:]/','file://\1:/','') + endif + endif + let fname2396 = netrw#RFC2396(fname) + let fname2396e= fnameescape(fname2396) + let plainfname= substitute(fname2396,'file://\(.*\)','\1',"") + if has("win32") + if plainfname =~ '^/\+\a:' + let plainfname= substitute(plainfname,'^/\+\(\a:\)','\1','') + endif + endif + + exe "sil doau BufReadPre ".fname2396e + exe 'NetrwKeepj keepalt edit '. fnameescape(plainfname) + exe 'sil! NetrwKeepj keepalt bdelete '.fnameescape(a:fname) + + exe "sil doau BufReadPost ".fname2396e +endfunction + +" netrw#LocalBrowseCheck: {{{2 +function netrw#LocalBrowseCheck(dirname) + " This function is called by netrwPlugin.vim's s:LocalBrowseCheck(), s:NetrwRexplore(), + " and by when atop a listed file/directory (via a buffer-local map) + " + " unfortunate interaction -- split window debugging can't be used here, must use + " D-echoRemOn or D-echoTabOn as the BufEnter event triggers + " another call to LocalBrowseCheck() when attempts to write + " to the DBG buffer are made. + " + " The &ft == "netrw" test was installed because the BufEnter event + " would hit when re-entering netrw windows, creating unexpected + " refreshes (and would do so in the middle of NetrwSaveOptions(), too) + " getting E930: Cannot use :redir inside execute + + let ykeep= @@ + if isdirectory(s:NetrwFile(a:dirname)) + + if &ft != "netrw" || (exists("b:netrw_curdir") && b:netrw_curdir != a:dirname) || g:netrw_fastbrowse <= 1 + sil! NetrwKeepj keepalt call s:NetrwBrowse(1,a:dirname) + + elseif &ft == "netrw" && line("$") == 1 + sil! NetrwKeepj keepalt call s:NetrwBrowse(1,a:dirname) + + elseif exists("s:treeforceredraw") + unlet s:treeforceredraw + sil! NetrwKeepj keepalt call s:NetrwBrowse(1,a:dirname) + endif + return + endif + + " The following code wipes out currently unused netrw buffers + " IF g:netrw_fastbrowse is zero (ie. slow browsing selected) + " AND IF the listing style is not a tree listing + if exists("g:netrw_fastbrowse") && g:netrw_fastbrowse == 0 && g:netrw_liststyle != s:TREELIST + let ibuf = 1 + let buflast = bufnr("$") + while ibuf <= buflast + if bufwinnr(ibuf) == -1 && !empty(bufname(ibuf)) && isdirectory(s:NetrwFile(bufname(ibuf))) + exe "sil! keepj keepalt ".ibuf."bw!" + endif + let ibuf= ibuf + 1 + endwhile + endif + let @@= ykeep + " not a directory, ignore it +endfunction + +" s:LocalBrowseRefresh: this function is called after a user has {{{2 +" performed any shell command. The idea is to cause all local-browsing +" buffers to be refreshed after a user has executed some shell command, +" on the chance that s/he removed/created a file/directory with it. +function s:LocalBrowseRefresh() + " determine which buffers currently reside in a tab + if !exists("s:netrw_browselist") + return + endif + if !exists("w:netrw_bannercnt") + return + endif + if !empty(getcmdwintype()) + " cannot move away from cmdline window, see :h E11 + return + endif + if exists("s:netrw_events") && s:netrw_events == 1 + " s:LocalFastBrowser gets called (indirectly) from a + let s:netrw_events= 2 + return + endif + let itab = 1 + let buftablist = [] + let ykeep = @@ + while itab <= tabpagenr("$") + let buftablist = buftablist + tabpagebuflist() + let itab = itab + 1 + sil! tabn + endwhile + " GO through all buffers on netrw_browselist (ie. just local-netrw buffers): + " | refresh any netrw window + " | wipe out any non-displaying netrw buffer + let curwinid = win_getid(winnr()) + let ibl = 0 + for ibuf in s:netrw_browselist + if bufwinnr(ibuf) == -1 && index(buftablist,ibuf) == -1 + " wipe out any non-displaying netrw buffer + " (ibuf not shown in a current window AND + " ibuf not in any tab) + exe "sil! keepj bd ".fnameescape(ibuf) + call remove(s:netrw_browselist,ibl) + continue + elseif index(tabpagebuflist(),ibuf) != -1 + " refresh any netrw buffer + exe bufwinnr(ibuf)."wincmd w" + if getline(".") =~# 'Quick Help' + " decrement g:netrw_quickhelp to prevent refresh from changing g:netrw_quickhelp + " (counteracts s:NetrwBrowseChgDir()'s incrementing) + let g:netrw_quickhelp= g:netrw_quickhelp - 1 + endif + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + NetrwKeepj call s:NetrwRefreshTreeDict(w:netrw_treetop) + endif + NetrwKeepj call s:NetrwRefresh(1,s:NetrwBrowseChgDir(1,'./',0)) + endif + let ibl= ibl + 1 + endfor + call win_gotoid(curwinid) + let @@= ykeep +endfunction + +" s:LocalFastBrowser: handles setting up/taking down fast browsing for the local browser {{{2 +" +" g:netrw_ Directory Is +" fastbrowse Local Remote +" slow 0 D D D=Deleting a buffer implies it will not be re-used (slow) +" med 1 D H H=Hiding a buffer implies it may be re-used (fast) +" fast 2 H H +" +" Deleting a buffer means that it will be re-loaded when examined, hence "slow". +" Hiding a buffer means that it will be re-used when examined, hence "fast". +" (re-using a buffer may not be as accurate) +" +" s:netrw_events : doesn't exist, s:LocalFastBrowser() will install autocmds with medium-speed or fast browsing +" =1: autocmds installed, but ignore next FocusGained event to avoid initial double-refresh of listing. +" BufEnter may be first event, then a FocusGained event. Ignore the first FocusGained event. +" If :Explore used: it sets s:netrw_events to 2, so no FocusGained events are ignored. +" =2: autocmds installed (doesn't ignore any FocusGained events) +function s:LocalFastBrowser() + + " initialize browselist, a list of buffer numbers that the local browser has used + if !exists("s:netrw_browselist") + let s:netrw_browselist= [] + endif + + " append current buffer to fastbrowse list + if empty(s:netrw_browselist) || bufnr("%") > s:netrw_browselist[-1] + call add(s:netrw_browselist,bufnr("%")) + endif + + " enable autocmd events to handle refreshing/removing local browser buffers + " If local browse buffer is currently showing: refresh it + " If local browse buffer is currently hidden : wipe it + " g:netrw_fastbrowse=0 : slow speed, never re-use directory listing + " =1 : medium speed, re-use directory listing for remote only + " =2 : fast speed, always re-use directory listing when possible + if g:netrw_fastbrowse <= 1 && !exists("#ShellCmdPost") && !exists("s:netrw_events") + let s:netrw_events= 1 + augroup AuNetrwEvent + au! + if has("win32") + au ShellCmdPost * call s:LocalBrowseRefresh() + else + au ShellCmdPost,FocusGained * call s:LocalBrowseRefresh() + endif + augroup END + + " user must have changed fastbrowse to its fast setting, so remove + " the associated autocmd events + elseif g:netrw_fastbrowse > 1 && exists("#ShellCmdPost") && exists("s:netrw_events") + unlet s:netrw_events + augroup AuNetrwEvent + au! + augroup END + augroup! AuNetrwEvent + endif +endfunction + +function s:NetrwLocalListingList(dirname,setmaxfilenamelen) + " get the list of files contained in the current directory + let dirname = a:dirname + let dirnamelen = strlen(dirname) + let filelist = map(['.', '..'] + readdir(dirname), 'netrw#fs#PathJoin(dirname, v:val)') + + if g:netrw_cygwin == 0 && has("win32") + elseif index(filelist,'..') == -1 && dirname !~ '/' + " include ../ in the glob() entry if its missing + let filelist= filelist+[netrw#fs#ComposePath(dirname,"../")] + endif + + if a:setmaxfilenamelen && get(g:, 'netrw_dynamic_maxfilenamelen', 0) + let filelistcopy = map(deepcopy(filelist),'fnamemodify(v:val, ":t")') + let g:netrw_maxfilenamelen = max(map(filelistcopy,'len(v:val)')) + 1 + endif + + let resultfilelist = [] + for filename in filelist + + let ftype = getftype(filename) + if ftype ==# "link" + " indicate a symbolic link + let pfile= filename."@" + + elseif ftype ==# "socket" + " indicate a socket + let pfile= filename."=" + + elseif ftype ==# "fifo" + " indicate a fifo + let pfile= filename."|" + + elseif ftype ==# "dir" + " indicate a directory + let pfile= filename."/" + + elseif exists("b:netrw_curdir") && b:netrw_curdir !~ '^.*://' && !isdirectory(s:NetrwFile(filename)) + if has("win32") + if filename =~ '\.[eE][xX][eE]$' || filename =~ '\.[cC][oO][mM]$' || filename =~ '\.[bB][aA][tT]$' + " indicate an executable + let pfile= filename."*" + else + " normal file + let pfile= filename + endif + elseif executable(filename) + " indicate an executable + let pfile= filename."*" + else + " normal file + let pfile= filename + endif + + else + " normal file + let pfile= filename + endif + + if pfile =~ '//$' + let pfile= substitute(pfile,'//$','/','e') + endif + let pfile= strpart(pfile,dirnamelen) + let pfile= substitute(pfile,'^[/\\]','','e') + + if w:netrw_liststyle == s:LONGLIST + let longfile = printf("%-".g:netrw_maxfilenamelen."S",pfile) + let sz = getfsize(filename) + let szlen = 15 - (strdisplaywidth(longfile) - g:netrw_maxfilenamelen) + let szlen = (szlen > 0) ? szlen : 0 + + if g:netrw_sizestyle =~# "[hH]" + let sz= s:NetrwHumanReadable(sz) + endif + let fsz = printf("%".szlen."S",sz) + let pfile= longfile." ".fsz." ".strftime(g:netrw_timefmt,getftime(filename)) + endif + + if g:netrw_sort_by =~# "^t" + " sort by time (handles time up to 1 quintillion seconds, US) + " Decorate listing by prepending a timestamp/ . Sorting will then be done based on time. + let t = getftime(filename) + let ft = printf("%018d",t) + let ftpfile= ft.'/'.pfile + let resultfilelist += [ftpfile] + + elseif g:netrw_sort_by =~ "^s" + " sort by size (handles file sizes up to 1 quintillion bytes, US) + let sz = getfsize(filename) + let fsz = printf("%018d",sz) + let fszpfile= fsz.'/'.pfile + let resultfilelist += [fszpfile] + + else + " sort by name + let resultfilelist += [pfile] + endif + endfor + + return resultfilelist +endfunction + +" s:NetrwLocalExecute: uses system() to execute command under cursor ("X" command support) {{{2 +function s:NetrwLocalExecute(cmd) + let ykeep= @@ + " sanity check + if !executable(a:cmd) + call netrw#msg#Notify('ERROR', printf("the file<%s> is not executable!", a:cmd)) + let @@= ykeep + return + endif + + let optargs= input(":!".a:cmd,"","file") + let result= system(a:cmd.optargs) + + " strip any ansi escape sequences off + let result = substitute(result,"\e\\[[0-9;]*m","","g") + + " show user the result(s) + echomsg result + let @@= ykeep + +endfunction + +" s:NetrwLocalRename: rename a local file or directory {{{2 +function s:NetrwLocalRename(path) range + + if !exists("w:netrw_bannercnt") + let w:netrw_bannercnt= b:netrw_bannercnt + endif + + " preparation for removing multiple files/directories + let ykeep = @@ + let ctr = a:firstline + let svpos = winsaveview() + let all = 0 + + " rename files given by the markfilelist + if exists("s:netrwmarkfilelist_{bufnr('%')}") + for oldname in s:netrwmarkfilelist_{bufnr("%")} + if exists("subfrom") + let newname= substitute(oldname,subfrom,subto,'') + else + call inputsave() + let newname= input("Moving ".oldname." to : ",oldname,"file") + call inputrestore() + if newname =~ '' + " two ctrl-x's : ignore all of string preceding the ctrl-x's + let newname = substitute(newname,'^.*','','') + elseif newname =~ '' + " one ctrl-x : ignore portion of string preceding ctrl-x but after last / + let newname = substitute(newname,'[^/]*','','') + endif + if newname =~ '^s/' + let subfrom = substitute(newname,'^s/\([^/]*\)/.*/$','\1','') + let subto = substitute(newname,'^s/[^/]*/\(.*\)/$','\1','') + let newname = substitute(oldname,subfrom,subto,'') + endif + endif + if !all && filereadable(newname) + call inputsave() + let response= input("File<".newname."> already exists; do you want to overwrite it? (y/all/n) ") + call inputrestore() + if response == "all" + let all= 1 + elseif response != "y" && response != "yes" + " refresh the directory + NetrwKeepj call s:NetrwRefresh(1,s:NetrwBrowseChgDir(1,'./',0)) + NetrwKeepj call winrestview(svpos) + let @@= ykeep + return + endif + endif + call rename(oldname,newname) + endfor + call s:NetrwUnmarkList(bufnr("%"),b:netrw_curdir) + + else + + " attempt to rename files/directories + while ctr <= a:lastline + exe "NetrwKeepj ".ctr + + " sanity checks + if line(".") < w:netrw_bannercnt + let ctr= ctr + 1 + continue + endif + let curword= s:NetrwGetWord() + if curword == "./" || curword == "../" + let ctr= ctr + 1 + continue + endif + + NetrwKeepj norm! 0 + let oldname= netrw#fs#ComposePath(a:path,curword) + + call inputsave() + let newname= input("Moving ".oldname." to : ",substitute(oldname,'/*$','','e')) + call inputrestore() + + call rename(oldname,newname) + let ctr= ctr + 1 + endwhile + endif + + " refresh the directory + NetrwKeepj call s:NetrwRefresh(1,s:NetrwBrowseChgDir(1,'./',0)) + NetrwKeepj call winrestview(svpos) + let @@= ykeep +endfunction + +" s:NetrwLocalRm: {{{2 +function s:NetrwLocalRm(path) range + if !exists("w:netrw_bannercnt") + let w:netrw_bannercnt = b:netrw_bannercnt + endif + + " preparation for removing multiple files/directories + let ykeep = @@ + let ret = 0 + let all = 0 + let svpos = winsaveview() + + if exists("s:netrwmarkfilelist_{bufnr('%')}") + " remove all marked files + for fname in s:netrwmarkfilelist_{bufnr("%")} + let ok = s:NetrwLocalRmFile(a:path, fname, all) + if ok =~# '^a\%[ll]$' + let all = 1 + elseif ok =~# "n\%[o]" + break + endif + endfor + call s:NetrwUnMarkFile(1) + + else + " remove (multiple) files and directories + + let keepsol = &l:sol + setl nosol + let ctr = a:firstline + while ctr <= a:lastline + exe "NetrwKeepj ".ctr + + " sanity checks + if line(".") < w:netrw_bannercnt + let ctr = ctr + 1 + continue + endif + + let curword = s:NetrwGetWord() + if curword == "./" || curword == "../" + let ctr = ctr + 1 + continue + endif + + let ok = s:NetrwLocalRmFile(a:path, curword, all) + if ok =~# '^a\%[ll]$' + let all = 1 + elseif ok =~# "n\%[o]" + break + endif + + let ctr = ctr + 1 + endwhile + + let &l:sol = keepsol + endif + + " refresh the directory + if bufname("%") != "NetrwMessage" + NetrwKeepj call s:NetrwRefresh(1, s:NetrwBrowseChgDir(1, './', 0)) + NetrwKeepj call winrestview(svpos) + endif + + let @@= ykeep +endfunction + +" s:NetrwLocalRmFile: remove file fname given the path {{{2 +" Give confirmation prompt unless all==1 +function s:NetrwLocalRmFile(path, fname, all) + let all = a:all + let ok = "" + let dir = 0 + NetrwKeepj norm! 0 + let rmfile = s:NetrwFile(netrw#fs#ComposePath(a:path, escape(a:fname, '\\')))->fnamemodify(':.') + + " if not a directory + if rmfile !~ '^"' && (rmfile =~ '@$' || rmfile !~ '[\/]$') + let msg = "Confirm deletion of file <%s> [{y(es)},n(o),a(ll)]: " + else + let msg = "Confirm *recursive* deletion of directory <%s> [{y(es)},n(o),a(ll)]: " + let dir = 1 + endif + + " Ask confirmation + if !all + echohl Statement + call inputsave() + let ok = input(printf(msg, rmfile)) + call inputrestore() + echohl NONE + if ok =~# '^a\%[ll]$' || ok =~# '^y\%[es]$' + let all = 1 + else + let ok = 'no' + endif + endif + + if !dir && (all || empty(ok)) + " This works because delete return 0 if successful + if netrw#fs#Remove(rmfile) + call netrw#msg#Notify('ERROR', printf("unable to delete <%s>!", rmfile)) + else + " Remove file only if there are no pending changes + execute printf('silent! bwipeout %s', rmfile) + endif + + elseif dir && (all || empty(ok)) + " Remove trailing / + let rmfile = substitute(rmfile, '[\/]$', '', 'e') + if delete(rmfile, "rf") + call netrw#msg#Notify('ERROR', printf("unable to delete directory <%s>!", rmfile)) + endif + + endif + + return ok +endfunction + +" Support Functions: {{{1 + +" netrw#Call: allows user-specified mappings to call internal netrw functions {{{2 +function netrw#Call(funcname,...) + return call("s:".a:funcname,a:000) +endfunction + +" netrw#Expose: allows UserMaps and pchk to look at otherwise script-local variables {{{2 +" I expect this function to be used in +" :PChkAssert netrw#Expose("netrwmarkfilelist") +" for example. +function netrw#Expose(varname) + if exists("s:".a:varname) + exe "let retval= s:".a:varname + if exists("g:netrw_pchk") + if type(retval) == 3 + let retval = copy(retval) + let i = 0 + while i < len(retval) + let retval[i]= substitute(retval[i],expand("$HOME"),'~','') + let i = i + 1 + endwhile + endif + return string(retval) + else + endif + else + let retval= "n/a" + endif + + return retval +endfunction + +" netrw#Modify: allows UserMaps to set (modify) script-local variables {{{2 +function netrw#Modify(varname,newvalue) + exe "let s:".a:varname."= ".string(a:newvalue) +endfunction + +" netrw#RFC2396: converts %xx into characters {{{2 +function netrw#RFC2396(fname) + return substitute(a:fname, '%\(\x\x\)', '\=printf("%c","0x".submatch(1))', 'ge') +endfunction + +" netrw#UserMaps: supports user-specified maps {{{2 +" see :help function() +" +" g:Netrw_UserMaps is a List with members such as: +" [[keymap sequence, function reference],...] +" +" The referenced function may return a string, +" refresh : refresh the display +" -other- : this string will be executed +" or it may return a List of strings. +" +" Each keymap-sequence will be set up with a nnoremap +" to invoke netrw#UserMaps(a:islocal). +" Related functions: +" netrw#Expose(varname) -- see s:varname variables +" netrw#Modify(varname,newvalue) -- modify value of s:varname variable +" netrw#Call(funcname,...) -- call internal netrw function with optional arguments +function netrw#UserMaps(islocal) + + " set up usermaplist + if exists("g:Netrw_UserMaps") && type(g:Netrw_UserMaps) == 3 + for umap in g:Netrw_UserMaps + " if umap[0] is a string and umap[1] is a string holding a function name + if type(umap[0]) == 1 && type(umap[1]) == 1 + exe "nno ".umap[0]." :call UserMaps(".a:islocal.",'".umap[1]."')" + else + call netrw#msg#Notify('WARNING', printf('ignoring usermap <%s> -- not a [string,funcref] entry', string(umap[0]))) + endif + endfor + endif +endfunction + +" s:NetrwBadd: adds marked files to buffer list or vice versa {{{2 +" cb : bl2mf=0 add marked files to buffer list +" cB : bl2mf=1 use bufferlist to mark files +" (mnemonic: cb = copy (marked files) to buffer list) +function s:NetrwBadd(islocal,bl2mf) + if a:bl2mf + " cB: add buffer list to marked files + redir => bufl + ls + redir END + let bufl = map(split(bufl,"\n"),'substitute(v:val,''^.\{-}"\(.*\)".\{-}$'',''\1'','''')') + for fname in bufl + call s:NetrwMarkFile(a:islocal,fname) + endfor + else + " cb: add marked files to buffer list + for fname in s:netrwmarkfilelist_{bufnr("%")} + exe "badd ".fnameescape(fname) + endfor + let curbufnr = bufnr("%") + let curdir = s:NetrwGetCurdir(a:islocal) + call s:NetrwUnmarkList(curbufnr,curdir) " remove markings from local buffer + endif +endfunction + +" s:DeleteBookmark: deletes a file/directory from Netrw's bookmark system {{{2 +" Related Functions: s:MakeBookmark() s:NetrwBookHistHandler() s:NetrwBookmark() +function s:DeleteBookmark(fname) + call s:MergeBookmarks() + + if exists("g:netrw_bookmarklist") + let indx= index(g:netrw_bookmarklist,a:fname) + if indx == -1 + let indx= 0 + while indx < len(g:netrw_bookmarklist) + if g:netrw_bookmarklist[indx] =~ a:fname + call remove(g:netrw_bookmarklist,indx) + let indx= indx - 1 + endif + let indx= indx + 1 + endwhile + else + " remove exact match + call remove(g:netrw_bookmarklist,indx) + endif + endif + +endfunction + +" s:FileReadable: o/s independent filereadable {{{2 +function s:FileReadable(fname) + if g:netrw_cygwin + let ret = filereadable(s:NetrwFile(substitute(a:fname,g:netrw_cygdrive.'/\(.\)','\1:/',''))) + else + let ret = filereadable(s:NetrwFile(a:fname)) + endif + + return ret +endfunction + +" s:GetTempfile: gets a tempname that'll work for various o/s's {{{2 +" Places correct suffix on end of temporary filename, +" using the suffix provided with fname +function s:GetTempfile(fname) + + if !exists("b:netrw_tmpfile") + " get a brand new temporary filename + let tmpfile= tempname() + + let tmpfile= substitute(tmpfile,'\','/','ge') + + " sanity check -- does the temporary file's directory exist? + if !isdirectory(s:NetrwFile(substitute(tmpfile,'[^/]\+$','','e'))) + call netrw#msg#Notify('ERROR', printf('your <%s> directory is missing!', substitute(tmpfile,'[^/]\+$','','e'))) + return "" + endif + + " let netrw#NetSource() know about the tmpfile + let s:netrw_tmpfile= tmpfile " used by netrw#NetSource() and netrw#BrowseX() + + " o/s dependencies + if g:netrw_cygwin != 0 + let tmpfile = substitute(tmpfile,'^\(\a\):',g:netrw_cygdrive.'/\1','e') + elseif has("win32") + if !exists("+shellslash") || !&ssl + let tmpfile = substitute(tmpfile,'/','\','g') + endif + else + let tmpfile = tmpfile + endif + let b:netrw_tmpfile= tmpfile + else + " re-use temporary filename + let tmpfile= b:netrw_tmpfile + endif + + " use fname's suffix for the temporary file + if a:fname != "" + if a:fname =~ '\.[^./]\+$' + if a:fname =~ '\.tar\.gz$' || a:fname =~ '\.tar\.bz2$' || a:fname =~ '\.tar\.xz$' + let suffix = ".tar".substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e') + elseif a:fname =~ '.txz$' + let suffix = ".txz".substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e') + else + let suffix = substitute(a:fname,'^.*\(\.[^./]\+\)$','\1','e') + endif + let tmpfile= substitute(tmpfile,'\.tmp$','','e') + let tmpfile .= suffix + let s:netrw_tmpfile= tmpfile " supports netrw#NetSource() + endif + endif + + return tmpfile +endfunction + +" s:MakeSshCmd: transforms input command using USEPORT HOSTNAME into {{{2 +" a correct command for use with a system() call +function s:MakeSshCmd(sshcmd) + let machine = shellescape(s:machine, 1) + if s:user != '' + let machine = shellescape(s:user, 1).'@'.machine + endif + let sshcmd = substitute(a:sshcmd,'\',machine,'') + if exists("g:netrw_port") && g:netrw_port != "" + let sshcmd= substitute(sshcmd,"USEPORT",g:netrw_sshport.' '.shellescape(g:netrw_port,1),'') + elseif exists("s:port") && s:port != "" + let sshcmd= substitute(sshcmd,"USEPORT",g:netrw_sshport.' '.shellescape(s:port,1),'') + else + let sshcmd= substitute(sshcmd,"USEPORT ",'','') + endif + return sshcmd +endfunction + +" s:MakeBookmark: enters a bookmark into Netrw's bookmark system {{{2 +function s:MakeBookmark(fname) + + if !exists("g:netrw_bookmarklist") + let g:netrw_bookmarklist= [] + endif + + if index(g:netrw_bookmarklist,a:fname) == -1 + " curdir not currently in g:netrw_bookmarklist, so include it + if isdirectory(s:NetrwFile(a:fname)) && a:fname !~ '/$' + call add(g:netrw_bookmarklist,a:fname.'/') + elseif a:fname !~ '/' + call add(g:netrw_bookmarklist,getcwd()."/".a:fname) + else + call add(g:netrw_bookmarklist,a:fname) + endif + call sort(g:netrw_bookmarklist) + endif + +endfunction + +" s:MergeBookmarks: merge current bookmarks with saved bookmarks {{{2 +function s:MergeBookmarks() + " get bookmarks from .netrwbook file + let savefile= s:NetrwHome()."/.netrwbook" + if filereadable(s:NetrwFile(savefile)) + NetrwKeepj call s:NetrwBookHistSave() + NetrwKeepj call delete(savefile) + endif +endfunction + +" s:NetrwBMShow: {{{2 +function s:NetrwBMShow() + redir => bmshowraw + menu + redir END + let bmshowlist = split(bmshowraw,'\n') + if bmshowlist != [] + let bmshowfuncs= filter(bmshowlist,'v:val =~# "\\d\\+_BMShow()"') + if bmshowfuncs != [] + let bmshowfunc = substitute(bmshowfuncs[0],'^.*:\(call.*BMShow()\).*$','\1','') + if bmshowfunc =~# '^call.*BMShow()' + exe "sil! NetrwKeepj ".bmshowfunc + endif + endif + endif +endfunction + +" s:NetrwCursor: responsible for setting cursorline/cursorcolumn based upon g:netrw_cursor {{{2 +function s:NetrwCursor(editfile) + if !exists("w:netrw_liststyle") + let w:netrw_liststyle= g:netrw_liststyle + endif + + + if &ft != "netrw" + " if the current window isn't a netrw directory listing window, then use user cursorline/column + " settings. Affects when netrw is used to read/write a file using scp/ftp/etc. + + elseif g:netrw_cursor == 8 + if w:netrw_liststyle == s:WIDELIST + setl cursorline + setl cursorcolumn + else + setl cursorline + endif + elseif g:netrw_cursor == 7 + setl cursorline + elseif g:netrw_cursor == 6 + if w:netrw_liststyle == s:WIDELIST + setl cursorline + endif + elseif g:netrw_cursor == 4 + " all styles: cursorline, cursorcolumn + setl cursorline + setl cursorcolumn + + elseif g:netrw_cursor == 3 + " thin-long-tree: cursorline, user's cursorcolumn + " wide : cursorline, cursorcolumn + if w:netrw_liststyle == s:WIDELIST + setl cursorline + setl cursorcolumn + else + setl cursorline + endif + + elseif g:netrw_cursor == 2 + " thin-long-tree: cursorline, user's cursorcolumn + " wide : cursorline, user's cursorcolumn + setl cursorline + + elseif g:netrw_cursor == 1 + " thin-long-tree: user's cursorline, user's cursorcolumn + " wide : cursorline, user's cursorcolumn + if w:netrw_liststyle == s:WIDELIST + setl cursorline + else + endif + + else + " all styles: user's cursorline, user's cursorcolumn + let &l:cursorline = s:netrw_usercul + let &l:cursorcolumn = s:netrw_usercuc + endif + +endfunction + +" s:RestoreCursorline: restores cursorline/cursorcolumn to original user settings {{{2 +function s:RestoreCursorline() + if exists("s:netrw_usercul") + let &l:cursorline = s:netrw_usercul + endif + if exists("s:netrw_usercuc") + let &l:cursorcolumn = s:netrw_usercuc + endif +endfunction + +" s:RestoreRegister: restores all registers given in the dict {{{2 +function s:RestoreRegister(dict) + for [key, val] in items(a:dict) + if key == 'unnamed' + let key = '' + endif + call setreg(key, val[0], val[1]) + endfor +endfunction + +" s:NetrwEnew: opens a new buffer, passes netrw buffer variables through {{{2 +function s:NetrwEnew(...) + + " Clean out the last buffer: + " Check if the last buffer has # > 1, is unlisted, is unnamed, and does not appear in a window + " If so, delete it. + let bufid = bufnr('$') + if bufid > 1 && !buflisted(bufid) && bufloaded(bufid) && bufname(bufid) == "" && bufwinid(bufid) == -1 + execute printf("silent! bdelete! %s", bufid) + endif + + " grab a function-local-variable copy of buffer variables + if exists("b:netrw_bannercnt") |let netrw_bannercnt = b:netrw_bannercnt |endif + if exists("b:netrw_browser_active") |let netrw_browser_active = b:netrw_browser_active |endif + if exists("b:netrw_cpf") |let netrw_cpf = b:netrw_cpf |endif + if exists("b:netrw_curdir") |let netrw_curdir = b:netrw_curdir |endif + if exists("b:netrw_explore_bufnr") |let netrw_explore_bufnr = b:netrw_explore_bufnr |endif + if exists("b:netrw_explore_indx") |let netrw_explore_indx = b:netrw_explore_indx |endif + if exists("b:netrw_explore_line") |let netrw_explore_line = b:netrw_explore_line |endif + if exists("b:netrw_explore_list") |let netrw_explore_list = b:netrw_explore_list |endif + if exists("b:netrw_explore_listlen")|let netrw_explore_listlen = b:netrw_explore_listlen|endif + if exists("b:netrw_explore_mtchcnt")|let netrw_explore_mtchcnt = b:netrw_explore_mtchcnt|endif + if exists("b:netrw_fname") |let netrw_fname = b:netrw_fname |endif + if exists("b:netrw_lastfile") |let netrw_lastfile = b:netrw_lastfile |endif + if exists("b:netrw_liststyle") |let netrw_liststyle = b:netrw_liststyle |endif + if exists("b:netrw_method") |let netrw_method = b:netrw_method |endif + if exists("b:netrw_option") |let netrw_option = b:netrw_option |endif + if exists("b:netrw_prvdir") |let netrw_prvdir = b:netrw_prvdir |endif + + NetrwKeepj call s:NetrwOptionsRestore("w:") + " when tree listing uses file TreeListing... a new buffer is made. + " Want the old buffer to be unlisted. + " COMBAK: this causes a problem, see P43 + " setl nobl + let netrw_keepdiff= &l:diff + call s:NetrwEditFile("enew!","","") + let &l:diff= netrw_keepdiff + NetrwKeepj call s:NetrwOptionsSave("w:") + + " copy function-local-variables to buffer variable equivalents + if exists("netrw_bannercnt") |let b:netrw_bannercnt = netrw_bannercnt |endif + if exists("netrw_browser_active") |let b:netrw_browser_active = netrw_browser_active |endif + if exists("netrw_cpf") |let b:netrw_cpf = netrw_cpf |endif + if exists("netrw_curdir") |let b:netrw_curdir = netrw_curdir |endif + if exists("netrw_explore_bufnr") |let b:netrw_explore_bufnr = netrw_explore_bufnr |endif + if exists("netrw_explore_indx") |let b:netrw_explore_indx = netrw_explore_indx |endif + if exists("netrw_explore_line") |let b:netrw_explore_line = netrw_explore_line |endif + if exists("netrw_explore_list") |let b:netrw_explore_list = netrw_explore_list |endif + if exists("netrw_explore_listlen")|let b:netrw_explore_listlen = netrw_explore_listlen|endif + if exists("netrw_explore_mtchcnt")|let b:netrw_explore_mtchcnt = netrw_explore_mtchcnt|endif + if exists("netrw_fname") |let b:netrw_fname = netrw_fname |endif + if exists("netrw_lastfile") |let b:netrw_lastfile = netrw_lastfile |endif + if exists("netrw_liststyle") |let b:netrw_liststyle = netrw_liststyle |endif + if exists("netrw_method") |let b:netrw_method = netrw_method |endif + if exists("netrw_option") |let b:netrw_option = netrw_option |endif + if exists("netrw_prvdir") |let b:netrw_prvdir = netrw_prvdir |endif + + if a:0 > 0 + let b:netrw_curdir= a:1 + if b:netrw_curdir =~ '/$' + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST + setl nobl + file NetrwTreeListing + setl nobl bt=nowrite bh=hide + nno [ :sil call TreeListMove('[') + nno ] :sil call TreeListMove(']') + else + call s:NetrwBufRename(b:netrw_curdir) + endif + endif + endif +endfunction + +" s:NetrwInsureWinVars: insure that a netrw buffer has its w: variables in spite of a wincmd v or s {{{2 +function s:NetrwInsureWinVars() + if !exists("w:netrw_liststyle") + let curbuf = bufnr("%") + let curwin = winnr() + let iwin = 1 + while iwin <= winnr("$") + exe iwin."wincmd w" + if winnr() != curwin && bufnr("%") == curbuf && exists("w:netrw_liststyle") + " looks like ctrl-w_s or ctrl-w_v was used to split a netrw buffer + let winvars= w: + break + endif + let iwin= iwin + 1 + endwhile + exe "keepalt ".curwin."wincmd w" + if exists("winvars") + for k in keys(winvars) + let w:{k}= winvars[k] + endfor + endif + endif +endfunction + +" s:NetrwLcd: handles changing the (local) directory {{{2 +" Returns: 0=success +" -1=failed +function s:NetrwLcd(newdir) + + let err472= 0 + try + exe 'NetrwKeepj sil lcd '.fnameescape(a:newdir) + catch /^Vim\%((\a\+)\)\=:E344/ + " Vim's lcd fails with E344 when attempting to go above the 'root' of a Windows share. + " Therefore, detect if a Windows share is present, and if E344 occurs, just settle at + " 'root' (ie. '\'). The share name may start with either backslashes ('\\Foo') or + " forward slashes ('//Foo'), depending on whether backslashes have been converted to + " forward slashes by earlier code; so check for both. + if has("win32") && !g:netrw_cygwin + if a:newdir =~ '^\\\\\w\+' || a:newdir =~ '^//\w\+' + let dirname = '\' + exe 'NetrwKeepj sil lcd '.fnameescape(dirname) + endif + endif + catch /^Vim\%((\a\+)\)\=:E472/ + let err472= 1 + endtry + + if err472 + call netrw#msg#Notify('ERROR', printf('unable to change directory to <%s> (permissions?)', a:newdir)) + if exists("w:netrw_prvdir") + let a:newdir= w:netrw_prvdir + else + call s:NetrwOptionsRestore("w:") + exe "setl ".g:netrw_bufsettings + let a:newdir= dirname + endif + return -1 + endif + + return 0 +endfunction + +" s:NetrwSaveWordPosn: used to keep cursor on same word after refresh, {{{2 +" changed sorting, etc. Also see s:NetrwRestoreWordPosn(). +function s:NetrwSaveWordPosn() + let s:netrw_saveword= '^'.fnameescape(getline('.')).'$' +endfunction + +" s:NetrwHumanReadable: takes a number and makes it "human readable" {{{2 +" 1000 -> 1K, 1000000 -> 1M, 1000000000 -> 1G +function s:NetrwHumanReadable(sz) + + if g:netrw_sizestyle ==# 'h' + if a:sz >= 1000000000 + let sz = printf("%.1f",a:sz/1000000000.0)."g" + elseif a:sz >= 10000000 + let sz = printf("%d",a:sz/1000000)."m" + elseif a:sz >= 1000000 + let sz = printf("%.1f",a:sz/1000000.0)."m" + elseif a:sz >= 10000 + let sz = printf("%d",a:sz/1000)."k" + elseif a:sz >= 1000 + let sz = printf("%.1f",a:sz/1000.0)."k" + else + let sz= a:sz + endif + + elseif g:netrw_sizestyle ==# 'H' + if a:sz >= 1073741824 + let sz = printf("%.1f",a:sz/1073741824.0)."G" + elseif a:sz >= 10485760 + let sz = printf("%d",a:sz/1048576)."M" + elseif a:sz >= 1048576 + let sz = printf("%.1f",a:sz/1048576.0)."M" + elseif a:sz >= 10240 + let sz = printf("%d",a:sz/1024)."K" + elseif a:sz >= 1024 + let sz = printf("%.1f",a:sz/1024.0)."K" + else + let sz= a:sz + endif + + else + let sz= a:sz + endif + + return sz +endfunction + +" s:NetrwRestoreWordPosn: used to keep cursor on same word after refresh, {{{2 +" changed sorting, etc. Also see s:NetrwSaveWordPosn(). +function s:NetrwRestoreWordPosn() + sil! call search(s:netrw_saveword,'w') +endfunction + +" s:RestoreBufVars: {{{2 +function s:RestoreBufVars() + + if exists("s:netrw_curdir") |let b:netrw_curdir = s:netrw_curdir |endif + if exists("s:netrw_lastfile") |let b:netrw_lastfile = s:netrw_lastfile |endif + if exists("s:netrw_method") |let b:netrw_method = s:netrw_method |endif + if exists("s:netrw_fname") |let b:netrw_fname = s:netrw_fname |endif + if exists("s:netrw_machine") |let b:netrw_machine = s:netrw_machine |endif + if exists("s:netrw_browser_active")|let b:netrw_browser_active = s:netrw_browser_active|endif + +endfunction + +" s:RemotePathAnalysis: {{{2 +function s:RemotePathAnalysis(dirname) + + " method :// user @ machine :port /path + let dirpat = '^\(\w\{-}\)://\(\([^@]\+\)@\)\=\([^/:#]\+\)\%([:#]\(\d\+\)\)\=/\(.*\)$' + let s:method = substitute(a:dirname,dirpat,'\1','') + let s:user = substitute(a:dirname,dirpat,'\3','') + let s:machine = substitute(a:dirname,dirpat,'\4','') + let s:port = substitute(a:dirname,dirpat,'\5','') + let s:path = substitute(a:dirname,dirpat,'\6','') + let s:fname = substitute(s:path,'^.*/\ze.','','') + if s:machine =~ '@' + let dirpat = '^\(.*\)@\(.\{-}\)$' + let s:user = s:user.'@'.substitute(s:machine,dirpat,'\1','') + let s:machine = substitute(s:machine,dirpat,'\2','') + endif + + +endfunction + +" s:RemoteSystem: runs a command on a remote host using ssh {{{2 +" Returns status +" Runs system() on +" [cd REMOTEDIRPATH;] a:cmd +" Note that it doesn't do netrw#os#Escape(a:cmd)! +function s:RemoteSystem(cmd) + if !executable(g:netrw_ssh_cmd) + call netrw#msg#Notify('ERROR', printf('g:netrw_ssh_cmd<%s> is not executable!', g:netrw_ssh_cmd)) + elseif !exists("b:netrw_curdir") + call netrw#msg#Notify('ERROR', "for some reason b:netrw_curdir doesn't exist!") + else + let cmd = s:MakeSshCmd(g:netrw_ssh_cmd." USEPORT HOSTNAME") + let remotedir= substitute(b:netrw_curdir,'^.*//[^/]\+/\(.*\)$','\1','') + if remotedir != "" + let cmd= cmd.' cd '.netrw#os#Escape(remotedir).";" + else + let cmd= cmd.' ' + endif + let cmd= cmd.a:cmd + let ret= system(cmd) + endif + return ret +endfunction + +" s:RestoreWinVars: (used by Explore() and NetrwSplit()) {{{2 +function s:RestoreWinVars() + if exists("s:bannercnt") |let w:netrw_bannercnt = s:bannercnt |unlet s:bannercnt |endif + if exists("s:col") |let w:netrw_col = s:col |unlet s:col |endif + if exists("s:curdir") |let w:netrw_curdir = s:curdir |unlet s:curdir |endif + if exists("s:explore_bufnr") |let w:netrw_explore_bufnr = s:explore_bufnr |unlet s:explore_bufnr |endif + if exists("s:explore_indx") |let w:netrw_explore_indx = s:explore_indx |unlet s:explore_indx |endif + if exists("s:explore_line") |let w:netrw_explore_line = s:explore_line |unlet s:explore_line |endif + if exists("s:explore_listlen")|let w:netrw_explore_listlen = s:explore_listlen|unlet s:explore_listlen|endif + if exists("s:explore_list") |let w:netrw_explore_list = s:explore_list |unlet s:explore_list |endif + if exists("s:explore_mtchcnt")|let w:netrw_explore_mtchcnt = s:explore_mtchcnt|unlet s:explore_mtchcnt|endif + if exists("s:fpl") |let w:netrw_fpl = s:fpl |unlet s:fpl |endif + if exists("s:hline") |let w:netrw_hline = s:hline |unlet s:hline |endif + if exists("s:line") |let w:netrw_line = s:line |unlet s:line |endif + if exists("s:liststyle") |let w:netrw_liststyle = s:liststyle |unlet s:liststyle |endif + if exists("s:method") |let w:netrw_method = s:method |unlet s:method |endif + if exists("s:prvdir") |let w:netrw_prvdir = s:prvdir |unlet s:prvdir |endif + if exists("s:treedict") |let w:netrw_treedict = s:treedict |unlet s:treedict |endif + if exists("s:treetop") |let w:netrw_treetop = s:treetop |unlet s:treetop |endif + if exists("s:winnr") |let w:netrw_winnr = s:winnr |unlet s:winnr |endif +endfunction + +" s:Rexplore: implements returning from a buffer to a netrw directory {{{2 +" +" s:SetRexDir() sets up <2-leftmouse> maps (if g:netrw_retmap +" is true) and a command, :Rexplore, which call this function. +" +" s:netrw_posn is set up by s:NetrwBrowseChgDir() +" +" s:rexposn_BUFNR used to save/restore cursor position +function s:NetrwRexplore(islocal,dirname) + if exists("s:netrwdrag") + return + endif + + if &ft == "netrw" && exists("w:netrw_rexfile") && w:netrw_rexfile != "" + " a :Rex while in a netrw buffer means: edit the file in w:netrw_rexfile + exe "NetrwKeepj e ".w:netrw_rexfile + unlet w:netrw_rexfile + return + endif + + " --------------------------- + " :Rex issued while in a file + " --------------------------- + + " record current file so :Rex can return to it from netrw + let w:netrw_rexfile= expand("%") + + if !exists("w:netrw_rexlocal") + return + endif + if w:netrw_rexlocal + NetrwKeepj call netrw#LocalBrowseCheck(w:netrw_rexdir) + else + NetrwKeepj call s:NetrwBrowse(0,w:netrw_rexdir) + endif + if exists("s:initbeval") + setl beval + endif + if exists("s:rexposn_".bufnr("%")) + " restore position in directory listing + NetrwKeepj call winrestview(s:rexposn_{bufnr('%')}) + if exists("s:rexposn_".bufnr('%')) + unlet s:rexposn_{bufnr('%')} + endif + else + endif + + if has("syntax") && exists("g:syntax_on") && g:syntax_on + if exists("s:explore_match") + exe "2match netrwMarkFile /".s:explore_match."/" + endif + endif + +endfunction + +" s:SaveBufVars: save selected b: variables to s: variables {{{2 +" use s:RestoreBufVars() to restore b: variables from s: variables +function s:SaveBufVars() + + if exists("b:netrw_curdir") |let s:netrw_curdir = b:netrw_curdir |endif + if exists("b:netrw_lastfile") |let s:netrw_lastfile = b:netrw_lastfile |endif + if exists("b:netrw_method") |let s:netrw_method = b:netrw_method |endif + if exists("b:netrw_fname") |let s:netrw_fname = b:netrw_fname |endif + if exists("b:netrw_machine") |let s:netrw_machine = b:netrw_machine |endif + if exists("b:netrw_browser_active")|let s:netrw_browser_active = b:netrw_browser_active|endif + +endfunction + +" s:SavePosn: saves position associated with current buffer into a dictionary {{{2 +function s:SavePosn(posndict) + + if !exists("a:posndict[bufnr('%')]") + let a:posndict[bufnr("%")]= [] + endif + call add(a:posndict[bufnr("%")],winsaveview()) + + return a:posndict +endfunction + +" s:RestorePosn: restores position associated with current buffer using dictionary {{{2 +function s:RestorePosn(posndict) + if exists("a:posndict") + if has_key(a:posndict,bufnr("%")) + let posnlen= len(a:posndict[bufnr("%")]) + if posnlen > 0 + let posnlen= posnlen - 1 + call winrestview(a:posndict[bufnr("%")][posnlen]) + call remove(a:posndict[bufnr("%")],posnlen) + endif + endif + endif +endfunction + +" s:SaveWinVars: (used by Explore() and NetrwSplit()) {{{2 +function s:SaveWinVars() + if exists("w:netrw_bannercnt") |let s:bannercnt = w:netrw_bannercnt |endif + if exists("w:netrw_col") |let s:col = w:netrw_col |endif + if exists("w:netrw_curdir") |let s:curdir = w:netrw_curdir |endif + if exists("w:netrw_explore_bufnr") |let s:explore_bufnr = w:netrw_explore_bufnr |endif + if exists("w:netrw_explore_indx") |let s:explore_indx = w:netrw_explore_indx |endif + if exists("w:netrw_explore_line") |let s:explore_line = w:netrw_explore_line |endif + if exists("w:netrw_explore_listlen")|let s:explore_listlen = w:netrw_explore_listlen|endif + if exists("w:netrw_explore_list") |let s:explore_list = w:netrw_explore_list |endif + if exists("w:netrw_explore_mtchcnt")|let s:explore_mtchcnt = w:netrw_explore_mtchcnt|endif + if exists("w:netrw_fpl") |let s:fpl = w:netrw_fpl |endif + if exists("w:netrw_hline") |let s:hline = w:netrw_hline |endif + if exists("w:netrw_line") |let s:line = w:netrw_line |endif + if exists("w:netrw_liststyle") |let s:liststyle = w:netrw_liststyle |endif + if exists("w:netrw_method") |let s:method = w:netrw_method |endif + if exists("w:netrw_prvdir") |let s:prvdir = w:netrw_prvdir |endif + if exists("w:netrw_treedict") |let s:treedict = w:netrw_treedict |endif + if exists("w:netrw_treetop") |let s:treetop = w:netrw_treetop |endif + if exists("w:netrw_winnr") |let s:winnr = w:netrw_winnr |endif +endfunction + +" s:SetBufWinVars: (used by NetrwBrowse() and LocalBrowseCheck()) {{{2 +" To allow separate windows to have their own activities, such as +" Explore **/pattern, several variables have been made window-oriented. +" However, when the user splits a browser window (ex: ctrl-w s), these +" variables are not inherited by the new window. SetBufWinVars() and +" UseBufWinVars() get around that. +function s:SetBufWinVars() + if exists("w:netrw_liststyle") |let b:netrw_liststyle = w:netrw_liststyle |endif + if exists("w:netrw_bannercnt") |let b:netrw_bannercnt = w:netrw_bannercnt |endif + if exists("w:netrw_method") |let b:netrw_method = w:netrw_method |endif + if exists("w:netrw_prvdir") |let b:netrw_prvdir = w:netrw_prvdir |endif + if exists("w:netrw_explore_indx") |let b:netrw_explore_indx = w:netrw_explore_indx |endif + if exists("w:netrw_explore_listlen")|let b:netrw_explore_listlen= w:netrw_explore_listlen|endif + if exists("w:netrw_explore_mtchcnt")|let b:netrw_explore_mtchcnt= w:netrw_explore_mtchcnt|endif + if exists("w:netrw_explore_bufnr") |let b:netrw_explore_bufnr = w:netrw_explore_bufnr |endif + if exists("w:netrw_explore_line") |let b:netrw_explore_line = w:netrw_explore_line |endif + if exists("w:netrw_explore_list") |let b:netrw_explore_list = w:netrw_explore_list |endif +endfunction + +" s:SetRexDir: set directory for :Rexplore {{{2 +function s:SetRexDir(islocal,dirname) + let w:netrw_rexdir = a:dirname + let w:netrw_rexlocal = a:islocal + let s:rexposn_{bufnr("%")} = winsaveview() +endfunction + +" s:ShowLink: used to modify thin and tree listings to show links {{{2 +function s:ShowLink() + if exists("b:netrw_curdir") + keepp :norm! $?\a + "call histdel("/",-1) + if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treetop") + let basedir = s:NetrwTreePath(w:netrw_treetop) + else + let basedir = b:netrw_curdir.'/' + endif + let fname = basedir.s:NetrwGetWord() + let resname = resolve(fname) + if resname =~ '^\M'.basedir + let dirlen = strlen(basedir) + let resname = strpart(resname,dirlen) + endif + let modline = getline(".")."\t --> ".resname + setl noro ma + call setline(".",modline) + setl ro noma nomod + endif +endfunction + +" s:ShowStyle: {{{2 +function s:ShowStyle() + if !exists("w:netrw_liststyle") + let liststyle= g:netrw_liststyle + else + let liststyle= w:netrw_liststyle + endif + if liststyle == s:THINLIST + return s:THINLIST.":thin" + elseif liststyle == s:LONGLIST + return s:LONGLIST.":long" + elseif liststyle == s:WIDELIST + return s:WIDELIST.":wide" + elseif liststyle == s:TREELIST + return s:TREELIST.":tree" + else + return 'n/a' + endif +endfunction + +" s:TreeListMove: supports [[, ]], [], and ][ in tree mode {{{2 +function s:TreeListMove(dir) + let curline = getline('.') + let prvline = (line(".") > 1)? getline(line(".")-1) : '' + let nxtline = (line(".") < line("$"))? getline(line(".")+1) : '' + let curindent = substitute(getline('.'),'^\(\%('.s:treedepthstring.'\)*\)[^'.s:treedepthstring.'].\{-}$','\1','e') + let indentm1 = substitute(curindent,'^'.s:treedepthstring,'','') + let treedepthchr = substitute(s:treedepthstring,' ','','g') + let stopline = exists("w:netrw_bannercnt")? w:netrw_bannercnt : 1 + " COMBAK : need to handle when on a directory + " COMBAK : need to handle ]] and ][. In general, needs work!!! + if curline !~ '/$' + if a:dir == '[[' && prvline != '' + NetrwKeepj norm! 0 + let nl = search('^'.indentm1.'\%('.s:treedepthstring.'\)\@!','bWe',stopline) " search backwards + elseif a:dir == '[]' && nxtline != '' + NetrwKeepj norm! 0 + let nl = search('^\%('.curindent.'\)\@!','We') " search forwards + if nl != 0 + NetrwKeepj norm! k + else + NetrwKeepj norm! G + endif + endif + endif + +endfunction + +" s:UpdateBuffersMenu: does emenu Buffers.Refresh (but due to locale, the menu item may not be called that) {{{2 +" The Buffers.Refresh menu calls s:BMShow(); unfortunately, that means that that function +" can't be called except via emenu. But due to locale, that menu line may not be called +" Buffers.Refresh; hence, s:NetrwBMShow() utilizes a "cheat" to call that function anyway. +function s:UpdateBuffersMenu() + if has("gui") && has("menu") && has("gui_running") && &go =~# 'm' && g:netrw_menu + try + sil emenu Buffers.Refresh\ menu + catch /^Vim\%((\a\+)\)\=:E/ + let v:errmsg= "" + sil NetrwKeepj call s:NetrwBMShow() + endtry + endif +endfunction + +" s:UseBufWinVars: (used by NetrwBrowse() and LocalBrowseCheck() {{{2 +" Matching function to s:SetBufWinVars() +function s:UseBufWinVars() + if exists("b:netrw_liststyle") && !exists("w:netrw_liststyle") |let w:netrw_liststyle = b:netrw_liststyle |endif + if exists("b:netrw_bannercnt") && !exists("w:netrw_bannercnt") |let w:netrw_bannercnt = b:netrw_bannercnt |endif + if exists("b:netrw_method") && !exists("w:netrw_method") |let w:netrw_method = b:netrw_method |endif + if exists("b:netrw_prvdir") && !exists("w:netrw_prvdir") |let w:netrw_prvdir = b:netrw_prvdir |endif + if exists("b:netrw_explore_indx") && !exists("w:netrw_explore_indx") |let w:netrw_explore_indx = b:netrw_explore_indx |endif + if exists("b:netrw_explore_listlen") && !exists("w:netrw_explore_listlen")|let w:netrw_explore_listlen = b:netrw_explore_listlen|endif + if exists("b:netrw_explore_mtchcnt") && !exists("w:netrw_explore_mtchcnt")|let w:netrw_explore_mtchcnt = b:netrw_explore_mtchcnt|endif + if exists("b:netrw_explore_bufnr") && !exists("w:netrw_explore_bufnr") |let w:netrw_explore_bufnr = b:netrw_explore_bufnr |endif + if exists("b:netrw_explore_line") && !exists("w:netrw_explore_line") |let w:netrw_explore_line = b:netrw_explore_line |endif + if exists("b:netrw_explore_list") && !exists("w:netrw_explore_list") |let w:netrw_explore_list = b:netrw_explore_list |endif +endfunction + +" s:UserMaps: supports user-defined UserMaps {{{2 +" * calls a user-supplied funcref(islocal,curdir) +" * interprets result +" See netrw#UserMaps() +function s:UserMaps(islocal,funcname) + if !exists("b:netrw_curdir") + let b:netrw_curdir= getcwd() + endif + let Funcref = function(a:funcname) + let result = Funcref(a:islocal) + + if type(result) == 1 + " if result from user's funcref is a string... + if result == "refresh" + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + elseif result != "" + exe result + endif + + elseif type(result) == 3 + " if result from user's funcref is a List... + for action in result + if action == "refresh" + call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./',0)) + elseif action != "" + exe action + endif + endfor + endif +endfunction + +" Deprecated: {{{1 + +" }}} +" Settings Restoration: {{{1 + +let &cpo= s:keepcpo +unlet s:keepcpo + +" }}} +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/fs.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/fs.vim new file mode 100644 index 0000000000000000000000000000000000000000..8c002a88c5e2abd983ae17206d2dc8d8d61cb1cd --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/fs.vim @@ -0,0 +1,189 @@ +" FUNCTIONS IN THIS FILE ARE MEANT TO BE USED BY NETRW.VIM AND NETRW.VIM ONLY. +" THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND +" BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED. + + +" netrw#fs#PathJoin: Appends a new part to a path taking different systems into consideration {{{ + +function! netrw#fs#PathJoin(...) + const slash = !exists('+shellslash') || &shellslash ? '/' : '\' + let path = "" + + for arg in a:000 + if empty(path) + let path = arg + else + let path .= slash . arg + endif + endfor + + return path +endfunction + +" }}} +" netrw#fs#ComposePath: Appends a new part to a path taking different systems into consideration {{{ + +function! netrw#fs#ComposePath(base, subdir) + const slash = !exists('+shellslash') || &shellslash ? '/' : '\' + if has('amiga') + let ec = a:base[strdisplaywidth(a:base)-1] + if ec != '/' && ec != ':' + let ret = a:base . '/' . a:subdir + else + let ret = a:base.a:subdir + endif + + " COMBAK: test on windows with changing to root directory: :e C:/ + elseif a:subdir =~ '^\a:[/\\]\([^/\\]\|$\)' && has('win32') + let ret = a:subdir + + elseif a:base =~ '^\a:[/\\]\([^/\\]\|$\)' && has('win32') + if a:base =~ '[/\\]$' + let ret = a:base . a:subdir + else + let ret = a:base . slash . a:subdir + endif + + elseif a:base =~ '^\a\{3,}://' + let urlbase = substitute(a:base, '^\(\a\+://.\{-}/\)\(.*\)$', '\1', '') + let curpath = substitute(a:base, '^\(\a\+://.\{-}/\)\(.*\)$', '\2', '') + if a:subdir == '../' + if curpath =~ '[^/]/[^/]\+/$' + let curpath = substitute(curpath, '[^/]\+/$', '', '') + else + let curpath = '' + endif + let ret = urlbase.curpath + else + let ret = urlbase.curpath.a:subdir + endif + + else + let ret = substitute(a:base . '/' .a:subdir, '//', '/', 'g') + if a:base =~ '^//' + " keeping initial '//' for the benefit of network share listing support + let ret = '/' . ret + endif + let ret = simplify(ret) + endif + + return ret +endfunction + +" }}} +" netrw#fs#AbsPath: returns the full path to a directory and/or file {{{ + +function! netrw#fs#AbsPath(path) + let path = a:path->substitute('[\/]$', '', 'e') + + " Nothing to do + if isabsolutepath(path) + return path + endif + + return path->fnamemodify(':p')->substitute('[\/]$', '', 'e') +endfunction + +" }}} +" netrw#fs#Cwd: get the current directory. {{{ +" Change backslashes to forward slashes, if any. +" If doesc is true, escape certain troublesome characters + +function! netrw#fs#Cwd(doesc) + let curdir = substitute(getcwd(), '\\', '/', 'ge') + + if curdir !~ '[\/]$' + let curdir .= '/' + endif + + if a:doesc + let curdir = fnameescape(curdir) + endif + + return curdir +endfunction + +" }}} +" netrw#fs#Glob: does glob() if local, remote listing otherwise {{{ +" direntry: this is the name of the directory. Will be fnameescape'd to prevent wildcard handling by glob() +" expr : this is the expression to follow the directory. Will use netrw#fs#ComposePath() +" pare =1: remove the current directory from the resulting glob() filelist +" =0: leave the current directory in the resulting glob() filelist + +function! netrw#fs#Glob(direntry, expr, pare) + if netrw#CheckIfRemote() + keepalt 1sp + keepalt enew + let keep_liststyle = w:netrw_liststyle + let w:netrw_liststyle = s:THINLIST + if s:NetrwRemoteListing() == 0 + keepj keepalt %s@/@@ + let filelist = getline(1,$) + q! + else + " remote listing error -- leave treedict unchanged + let filelist = w:netrw_treedict[a:direntry] + endif + let w:netrw_liststyle = keep_liststyle + else + let path= netrw#fs#ComposePath(fnameescape(a:direntry), a:expr) + if has("win32") + " escape [ so it is not detected as wildcard character, see :h wildcard + let path = substitute(path, '[', '[[]', 'g') + endif + let filelist = glob(path, 0, 1, 1) + if a:pare + let filelist = map(filelist,'substitute(v:val, "^.*/", "", "")') + endif + endif + + return filelist +endfunction + +" }}} +" netrw#fs#WinPath: tries to insure that the path is windows-acceptable, whether cygwin is used or not {{{ + +function! netrw#fs#WinPath(path) + if (!g:netrw_cygwin || &shell !~ '\%(\\|\\)\%(\.exe\)\=$') && has("win32") + " remove cygdrive prefix, if present + let path = substitute(a:path, g:netrw_cygdrive . '/\(.\)', '\1:', '') + " remove trailing slash (Win95) + let path = substitute(path, '\(\\\|/\)$', '', 'g') + " remove escaped spaces + let path = substitute(path, '\ ', ' ', 'g') + " convert slashes to backslashes + let path = substitute(path, '/', '\', 'g') + else + let path = a:path + endif + + return path +endfunction + +" }}} +" netrw#fs#Remove: deletes a file. {{{ +" Uses Steve Hall's idea to insure that Windows paths stay +" acceptable. No effect on Unix paths. + +function! netrw#fs#Remove(path) + let path = netrw#fs#WinPath(a:path) + + if !g:netrw_cygwin && has("win32") && exists("+shellslash") + let sskeep = &shellslash + setl noshellslash + let result = delete(path) + let &shellslash = sskeep + else + let result = delete(path) + endif + + if result < 0 + call netrw#msg#Notify('WARNING', printf('delete("%s") failed!', path)) + endif + + return result +endfunction + +" }}} + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/msg.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/msg.vim new file mode 100644 index 0000000000000000000000000000000000000000..5f8c13a8d0d576ecfe6f5d64bf89606e52ae3b8c --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/msg.vim @@ -0,0 +1,70 @@ +" FUNCTIONS IN THIS FILE ARE MEANT TO BE USED BY NETRW.VIM AND NETRW.VIM ONLY. +" THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND +" BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED. + +let s:deprecation_msgs = [] +function! netrw#msg#Deprecate(name, version, alternatives) + " If running on neovim use vim.deprecate + if has('nvim') + let s:alternative = a:alternatives->get('nvim', v:null) + call v:lua.vim.deprecate(a:name, s:alternative, a:version, "netrw", v:false) + return + endif + + " If we did notify for something only do it once + if s:deprecation_msgs->index(a:name) >= 0 + return + endif + + let s:alternative = a:alternatives->get('vim', v:null) + echohl WarningMsg + echomsg s:alternative != v:null + \ ? printf('%s is deprecated, use %s instead.', a:name, s:alternative) + \ : printf('%s is deprecated.', a:name) + echomsg printf('Feature will be removed in netrw %s', a:version) + echohl None + + call add(s:deprecation_msgs, a:name) +endfunction + +" netrw#msg#Notify: {{{ +" Usage: netrw#msg#Notify('ERROR'|'WARNING'|'NOTE', 'some message') +" netrw#msg#Notify('ERROR'|'WARNING'|'NOTE', ["message1","message2",...]) +" (this function can optionally take a list of messages) +function! netrw#msg#Notify(level, msg) + if has('nvim') + " Convert string to corresponding vim.log.level value + if a:level ==# 'ERROR' + let level = 4 + elseif a:level ==# 'WARNING' + let level = 3 + elseif a:level ==# 'NOTE' + let level = 2 + endif + call v:lua.vim.notify(a:msg, level) + return + endif + + if a:level ==# 'WARNING' + echohl WarningMsg + elseif a:level ==# 'ERROR' + echohl ErrorMsg + else + echoerr printf('"%s" is not a valid level', a:level) + return + endif + + if type(a:msg) == v:t_list + for msg in a:msg + echomsg msg + endfor + else + echomsg a:msg + endif + + echohl None +endfunction + +" }}} + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/os.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/os.vim new file mode 100644 index 0000000000000000000000000000000000000000..455ea5a513b8a6448e7ab0f7f5ec0d528dc798e4 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw/os.vim @@ -0,0 +1,48 @@ +" FUNCTIONS IN THIS FILE ARE MEANT TO BE USED BY NETRW.VIM AND NETRW.VIM ONLY. +" THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND +" BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED. + +" netrw#os#Execute: executes a string using "!" {{{ + +function! netrw#os#Execute(cmd) + if has("win32") && exepath(&shell) !~? '\v[\/]?(cmd|pwsh|powershell)(\.exe)?$' && !g:netrw_cygwin + let savedShell=[&shell,&shellcmdflag,&shellxquote,&shellxescape,&shellquote,&shellpipe,&shellredir,&shellslash] + set shell& shellcmdflag& shellxquote& shellxescape& + set shellquote& shellpipe& shellredir& shellslash& + try + execute a:cmd + finally + let [&shell,&shellcmdflag,&shellxquote,&shellxescape,&shellquote,&shellpipe,&shellredir,&shellslash] = savedShell + endtry + else + execute a:cmd + endif + + if v:shell_error + call netrw#msg#Notify('ERROR', "shell signalled an error") + endif +endfunction + +" }}} +" netrw#os#Escape: shellescape(), or special windows handling {{{ + +function! netrw#os#Escape(string, ...) + return has('win32') && empty($SHELL) && &shellslash + \ ? printf('"%s"', substitute(a:string, '"', '""', 'g')) + \ : shellescape(a:string, a:0 > 0 ? a:1 : 0) +endfunction + +" }}} +" netrw#os#Open: open file with os viewer (eg. xdg-open) {{{ + +function! netrw#os#Open(file) abort + if has('nvim') + call luaeval('vim.ui.open(_A) and nil', a:file) + else + call dist#vim9#Open(a:file) + endif +endfunction + +" }}} + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw_gitignore.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw_gitignore.vim new file mode 100644 index 0000000000000000000000000000000000000000..75aadf2aaac28a24ca500191c158a5a14270ab97 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/autoload/netrw_gitignore.vim @@ -0,0 +1,28 @@ +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. + +" netrw_gitignore#Hide: gitignore-based hiding +" Function returns a string of comma separated patterns convenient for +" assignment to `g:netrw_list_hide` option. +" Function can take additional filenames as arguments, example: +" netrw_gitignore#Hide('custom_gitignore1', 'custom_gitignore2') +" +" Usage examples: +" let g:netrw_list_hide = netrw_gitignore#Hide() +" let g:netrw_list_hide = netrw_gitignore#Hide() . 'more,hide,patterns' +" +" Copyright: Copyright (C) 2013 Bruno Sutic {{{ +" Permission is hereby granted to use and distribute this code, +" with or without modifications, provided that this copyright +" notice is copied with it. Like anything else that's free, +" netrw_gitignore.vim is provided *as is* and comes with no +" warranty of any kind, either expressed or implied. By using +" this plugin, you agree that in no event will the copyright +" holder be liable for any damages resulting from the use +" of this software. }}} + +function! netrw_gitignore#Hide(...) + return substitute(substitute(system('git ls-files --other --ignored --exclude-standard --directory'), '\n', ',', 'g'), ',$', '', '') +endfunction + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/doc/netrw.txt b/git/usr/share/vim/vim92/pack/dist/opt/netrw/doc/netrw.txt new file mode 100644 index 0000000000000000000000000000000000000000..01a5bda5978ba533e69ed0b3b06fd60cc24abf8b --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/doc/netrw.txt @@ -0,0 +1,3608 @@ +*netrw.txt* + + ------------------------------------------------ + NETRW REFERENCE MANUAL by Charles E. Campbell + ------------------------------------------------ +Original Author: Charles E. Campbell + +Copyright: Copyright (C) 2017 Charles E Campbell *netrw-copyright* + The VIM LICENSE applies to the files in this package, including + netrw.vim, netrw.txt, and syntax/netrw.vim. + Like anything else that's free, netrw.vim and its + associated files are provided *as is* and comes with no warranty of + any kind, either expressed or implied. No guarantees of + merchantability. No guarantees of suitability for any purpose. By + using this plugin, you agree that in no event will the copyright + holder be liable for any damages resulting from the use of this + software. Use at your own risk! For bug reports, see |bugs|. + + *netrw* + *dav* *ftp* *netrw-file* *rcp* *scp* + *davs* *http* *netrw.vim* *rsync* *sftp* + *fetch* *network* + +============================================================================== +1. Contents *netrw-contents* {{{1 + +1. Contents..............................................|netrw-contents| +2. Starting With Netrw...................................|netrw-start| +3. Netrw Reference.......................................|netrw-ref| + EXTERNAL APPLICATIONS AND PROTOCOLS.................|netrw-externapp| + READING.............................................|netrw-read| + WRITING.............................................|netrw-write| + SOURCING............................................|netrw-source| + DIRECTORY LISTING...................................|netrw-dirlist| + CHANGING THE USERID AND PASSWORD....................|netrw-chgup| + VARIABLES AND SETTINGS..............................|netrw-variables| + PATHS...............................................|netrw-path| +4. Network-Oriented File Transfer........................|netrw-xfer| + NETRC...............................................|netrw-netrc| + PASSWORD............................................|netrw-passwd| +5. Activation............................................|netrw-activate| +6. Transparent Remote File Editing.......................|netrw-transparent| +7. Ex Commands...........................................|netrw-ex| +8. Variables and Options.................................|netrw-variables| +9. Browsing..............................................|netrw-browse| + Introduction To Browsing............................|netrw-intro-browse| + Quick Reference: Maps...............................|netrw-browse-maps| + Quick Reference: Commands...........................|netrw-browse-cmds| + Banner Display......................................|netrw-I| + Bookmarking A Directory.............................|netrw-mb| + Browsing............................................|netrw-cr| + Squeezing the Current Tree-Listing Directory........|netrw-s-cr| + Browsing With A Horizontally Split Window...........|netrw-o| + Browsing With A New Tab.............................|netrw-t| + Browsing With A Vertically Split Window.............|netrw-v| + Change Listing Style (thin wide long tree)..........|netrw-i| + Changing To A Bookmarked Directory..................|netrw-gb| + Quick hide/unhide of dot-files......................|netrw-gh| + Changing local-only File Permission.................|netrw-gp| + Changing To A Predecessor Directory.................|netrw-u| + Changing To A Successor Directory...................|netrw-U| + Deleting Bookmarks..................................|netrw-mB| + Deleting Files Or Directories.......................|netrw-D| + Directory Exploring Commands........................|netrw-explore| + Exploring With Stars and Patterns...................|netrw-star| + Displaying Information About File...................|netrw-qf| + Edit File Or Directory Hiding List..................|netrw-ctrl-h| + Editing The Sorting Sequence........................|netrw-S| + Forcing treatment as a file or directory............|netrw-gd| |netrw-gf| + Going Up............................................|netrw--| + Hiding Files Or Directories.........................|netrw-a| + Improving Browsing..................................|netrw-ssh-hack| + Listing Bookmarks And History.......................|netrw-qb| + Making A New Directory..............................|netrw-d| + Making The Browsing Directory The Current Directory.|netrw-cd| + Marking Files.......................................|netrw-mf| + Unmarking Files.....................................|netrw-mF| + Marking Files By Location List......................|netrw-qL| + Marking Files By QuickFix List......................|netrw-qF| + Marking Files By Regular Expression.................|netrw-mr| + Marked Files: Arbitrary Shell Command...............|netrw-mx| + Marked Files: Arbitrary Shell Command, En Bloc......|netrw-mX| + Marked Files: Arbitrary Vim Command.................|netrw-mv| + Marked Files: Argument List.........................|netrw-ma| |netrw-mA| + Marked Files: Buffer List...........................|netrw-cb| |netrw-cB| + Marked Files: Compression And Decompression.........|netrw-mz| + Marked Files: Copying...............................|netrw-mc| + Marked Files: Diff..................................|netrw-md| + Marked Files: Editing...............................|netrw-me| + Marked Files: Grep..................................|netrw-mg| + Marked Files: Hiding and Unhiding by Suffix.........|netrw-mh| + Marked Files: Moving................................|netrw-mm| + Marked Files: Sourcing..............................|netrw-ms| + Marked Files: Setting the Target Directory..........|netrw-mt| + Marked Files: Tagging...............................|netrw-mT| + Marked Files: Target Directory Using Bookmarks......|netrw-Tb| + Marked Files: Target Directory Using History........|netrw-Th| + Marked Files: Unmarking.............................|netrw-mu| + Netrw Browser Variables.............................|netrw-browser-var| + Netrw Browsing And Option Incompatibilities.........|netrw-incompatible| + Obtaining A File....................................|netrw-O| + Preview Window......................................|netrw-p| + Previous Window.....................................|netrw-P| + Refreshing The Listing..............................|netrw-ctrl-l| + Reversing Sorting Order.............................|netrw-r| + Renaming Files Or Directories.......................|netrw-R| + Selecting Sorting Style.............................|netrw-s| + Setting Editing Window..............................|netrw-C| +10. Problems and Fixes....................................|netrw-problems| +11. Credits...............................................|netrw-credits| + +============================================================================== +2. Starting With Netrw *netrw-start* {{{1 + +Netrw makes reading files, writing files, browsing over a network, and +local browsing easy! First, make sure that you have plugins enabled, so +you'll need to have at least the following in your <.vimrc>: +(or see |netrw-activate|) > + + set nocp " 'compatible' is not set + filetype plugin on " plugins are enabled +< +(see 'cp' and |:filetype-plugin-on|) + +Netrw supports "transparent" editing of files on other machines using urls +(see |netrw-transparent|). As an example of this, let's assume you have an +account on some other machine; if you can use scp, try: > + + vim scp://hostname/path/to/file +< +Want to make ssh/scp easier to use? Check out |netrw-ssh-hack|! + +So, what if you have ftp, not ssh/scp? That's easy, too; try > + + vim ftp://hostname/path/to/file +< +Want to make ftp simpler to use? See if your ftp supports a file called +<.netrc> -- typically it goes in your home directory, has read/write +permissions for only the user to read (ie. not group, world, other, etc), +and has lines resembling > + + machine HOSTNAME login USERID password "PASSWORD" + machine HOSTNAME login USERID password "PASSWORD" + ... + default login USERID password "PASSWORD" +< +Windows' ftp doesn't support .netrc; however, one may have in one's .vimrc: > + + let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp -s:C:\Users\MyUserName\MACHINE' +< +Netrw will substitute the host's machine name for "MACHINE" from the URL it is +attempting to open, and so one may specify > + userid + password +for each site in a separate file: c:\Users\MyUserName\MachineName. + +Now about browsing -- when you just want to look around before editing a +file. For browsing on your current host, just "edit" a directory: > + + vim . + vim /home/userid/path +< +For browsing on a remote host, "edit" a directory (but make sure that +the directory name is followed by a "/"): > + + vim scp://hostname/ + vim ftp://hostname/path/to/dir/ +< +See |netrw-browse| for more! + +There are more protocols supported by netrw than just scp and ftp, too: see the +next section, |netrw-externapp|, on how to use these external applications with +netrw and vim. + +PREVENTING LOADING *netrw-noload* + +If you want to use plugins, but for some reason don't wish to use netrw, then +you need to avoid loading both the plugin and the autoload portions of netrw. +You may do so by placing the following two lines in your <.vimrc>: > + + :let g:loaded_netrw = 1 + :let g:loaded_netrwPlugin = 1 +< + +============================================================================== +3. Netrw Reference *netrw-ref* {{{1 + + Netrw supports several protocols in addition to scp and ftp as mentioned + in |netrw-start|. These include dav, fetch, http,... well, just look + at the list in |netrw-externapp|. Each protocol is associated with a + variable which holds the default command supporting that protocol. + +EXTERNAL APPLICATIONS AND PROTOCOLS *netrw-externapp* {{{2 + + Protocol Variable Default Value + -------- ---------------- ------------- + dav: *g:netrw_dav_cmd* = "cadaver" if cadaver is executable + dav: g:netrw_dav_cmd = "curl -o" elseif curl is available + fetch: *g:netrw_fetch_cmd* = "fetch -o" if fetch is available + ftp: *g:netrw_ftp_cmd* = "ftp" + http: *g:netrw_http_cmd* = "elinks" if elinks is available + http: g:netrw_http_cmd = "links" elseif links is available + http: g:netrw_http_cmd = "curl" elseif curl is available + http: g:netrw_http_cmd = "wget" elseif wget is available + http: g:netrw_http_cmd = "fetch" elseif fetch is available + http: *g:netrw_http_put_cmd* = "curl -T" + rcp: *g:netrw_rcp_cmd* = "rcp" + rsync: *g:netrw_rsync_cmd* = "rsync" (see |g:netrw_rsync_sep|) + scp: *g:netrw_scp_cmd* = "scp -q" + sftp: *g:netrw_sftp_cmd* = "sftp" + file: *g:netrw_file_cmd* = "elinks" or "links" + + *g:netrw_http_xcmd* : the option string for http://... protocols are + specified via this variable and may be independently overridden. By + default, the option arguments for the http-handling commands are: > + + elinks : "-source >" + links : "-dump >" + curl : "-L -o" + wget : "-q -O" + fetch : "-o" +< + For example, if your system has elinks, and you'd rather see the + page using an attempt at rendering the text, you may wish to have > + let g:netrw_http_xcmd= "-dump >" +< in your .vimrc. + + g:netrw_http_put_cmd: this option specifies both the executable and + any needed options. This command does a PUT operation to the url. + + +READING *netrw-read* *netrw-nread* {{{2 + + Generally, one may just use the URL notation with a normal editing + command, such as > + + :e ftp://[user@]machine/path +< + Netrw also provides the Nread command: + + :Nread ? give help + :Nread "machine:path" uses rcp + :Nread "machine path" uses ftp w/ <.netrc> + :Nread "machine id password path" uses ftp + :Nread "dav://machine[:port]/path" uses cadaver + :Nread "fetch://[user@]machine/path" uses fetch + :Nread "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> + :Nread "http://[user@]machine/path" uses http uses wget + :Nread "rcp://[user@]machine/path" uses rcp + :Nread "rsync://[user@]machine[:port]/path" uses rsync + :Nread "scp://[user@]machine[[:#]port]/path" uses scp + :Nread "sftp://[user@]machine/path" uses sftp + +WRITING *netrw-write* *netrw-nwrite* {{{2 + + One may just use the URL notation with a normal file writing + command, such as > + + :w ftp://[user@]machine/path +< + Netrw also provides the Nwrite command: + + :Nwrite ? give help + :Nwrite "machine:path" uses rcp + :Nwrite "machine path" uses ftp w/ <.netrc> + :Nwrite "machine id password path" uses ftp + :Nwrite "dav://machine[:port]/path" uses cadaver + :Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> + :Nwrite "rcp://[user@]machine/path" uses rcp + :Nwrite "rsync://[user@]machine[:port]/path" uses rsync + :Nwrite "scp://[user@]machine[[:#]port]/path" uses scp + :Nwrite "sftp://[user@]machine/path" uses sftp + http: not supported! + +SOURCING *netrw-source* {{{2 + + One may just use the URL notation with the normal file sourcing + command, such as > + + :so ftp://[user@]machine/path +< + Netrw also provides the Nsource command: + + :Nsource ? give help + :Nsource "dav://machine[:port]/path" uses cadaver + :Nsource "fetch://[user@]machine/path" uses fetch + :Nsource "ftp://[user@]machine[[:#]port]/path" uses ftp w/ <.netrc> + :Nsource "http://[user@]machine/path" uses http uses wget + :Nsource "rcp://[user@]machine/path" uses rcp + :Nsource "rsync://[user@]machine[:port]/path" uses rsync + :Nsource "scp://[user@]machine[[:#]port]/path" uses scp + :Nsource "sftp://[user@]machine/path" uses sftp + +DIRECTORY LISTING *netrw-trailingslash* *netrw-dirlist* {{{2 + + One may browse a directory to get a listing by simply attempting to + edit the directory: > + + :e scp://[user]@hostname/path/ + :e ftp://[user]@hostname/path/ +< + For remote directory listings (ie. those using scp or ftp), that + trailing "/" is necessary (the slash tells netrw to treat the argument + as a directory to browse instead of as a file to download). + + The Nread command may also be used to accomplish this (again, that + trailing slash is necessary): > + + :Nread [protocol]://[user]@hostname/path/ +< + *netrw-login* *netrw-password* +CHANGING USERID AND PASSWORD *netrw-chgup* *netrw-userpass* {{{2 + + Attempts to use ftp will prompt you for a user-id and a password. + These will be saved in global variables |g:netrw_uid| and + |s:netrw_passwd|; subsequent use of ftp will re-use those two strings, + thereby simplifying use of ftp. However, if you need to use a + different user id and/or password, you'll want to call |NetUserPass()| + first. To work around the need to enter passwords, check if your ftp + supports a <.netrc> file in your home directory. Also see + |netrw-passwd| (and if you're using ssh/scp hoping to figure out how + to not need to use passwords for scp, look at |netrw-ssh-hack|). + + :NetUserPass [uid [password]] -- prompts as needed + :call NetUserPass() -- prompts for uid and password + :call NetUserPass("uid") -- prompts for password + :call NetUserPass("uid","password") -- sets global uid and password + +(Related topics: |ftp| |netrw-userpass| |netrw-start|) + +NETRW VARIABLES AND SETTINGS *netrw-variables* {{{2 + (Also see: + |netrw-browser-var| : netrw browser option variables + |netrw-protocol| : file transfer protocol option variables + |netrw-settings| : additional file transfer options + |netrw-browser-options| : these options affect browsing directories + ) + +Netrw provides a lot of variables which allow you to customize netrw to your +preferences. Most such settings are described below, in +|netrw-browser-options|, and in |netrw-externapp|: + + *b:netrw_lastfile* last file Network-read/written retained on a + per-buffer basis (supports plain :Nw ) + + *g:netrw_bufsettings* the settings that netrw buffers have + (default) noma nomod nonu nowrap ro nobl + + *g:netrw_chgwin* specifies a window number where subsequent file edits + will take place. (also see |netrw-C|) + (default) -1 + + *g:Netrw_funcref* specifies a function (or functions) to be called when + netrw edits a file. The file is first edited, and + then the function reference (|Funcref|) is called. + This variable may also hold a |List| of Funcrefs. + (default) not defined. (the capital in g:Netrw... + is required by its holding a function reference) +> + Example: place in .vimrc; affects all file opening + fun! MyFuncRef() + endfun + let g:Netrw_funcref= function("MyFuncRef") + +< + *g:Netrw_UserMaps* specifies a function or |List| of functions which can + be used to set up user-specified maps and functionality. + See |netrw-usermaps| + + *g:netrw_ftp* if it doesn't exist, use default ftp + =0 use default ftp (uid password) + =1 use alternate ftp method (user uid password) + If you're having trouble with ftp, try changing the + value of this variable to see if the alternate ftp + method works for your setup. + + *g:netrw_ftp_options* Chosen by default, these options are supposed to + turn interactive prompting off and to restrain ftp + from attempting auto-login upon initial connection. + However, it appears that not all ftp implementations + support this (ex. ncftp). + ="-i -n" + + *g:netrw_ftpextracmd* default: doesn't exist + If this variable exists, then any string it contains + will be placed into the commands set to your ftp + client. As an example: + ="passive" + + *g:netrw_ftpmode* ="binary" (default) + ="ascii" + + *g:netrw_ignorenetrc* =0 (default for linux, cygwin) + =1 If you have a <.netrc> file but it doesn't work and + you want it ignored, then set this variable as + shown. (default for Windows + cmd.exe) + + *g:netrw_menu* =0 disable netrw's menu + =1 (default) netrw's menu enabled + + *g:netrw_uid* (ftp) user-id, retained on a per-vim-session basis + *s:netrw_passwd* (ftp) password, retained on a per-vim-session basis + + *g:netrw_preview* =0 (default) preview window shown in a horizontally + split window + =1 preview window shown in a vertically split window. + Also affects the "previous window" (see |netrw-P|) + in the same way. + The |g:netrw_alto| variable may be used to provide + additional splitting control: + g:netrw_preview g:netrw_alto result + 0 0 |:aboveleft| + 0 1 |:belowright| + 1 0 |:topleft| + 1 1 |:botright| + To control sizing, see |g:netrw_winsize| + + *g:netrw_scpport* = "-P" : option to use to set port for scp + *g:netrw_sshport* = "-p" : option to use to set port for ssh + + *g:netrw_sepchr* =\0xff + =\0x01 for enc == euc-jp (and perhaps it should be for + others, too, please let me know) + Separates priority codes from filenames internally. + See |netrw-p12|. + + *g:netrw_silent* =0 : transfers done normally + =1 : transfers done silently + + *g:netrw_cygwin* =1 assume scp under windows is from cygwin. Also + permits network browsing to use ls with time and + size sorting (default if windows) + =0 assume Windows' scp accepts windows-style paths + Network browsing uses dir instead of ls + This option is ignored if you're using unix + + *g:netrw_use_nt_rcp* =0 don't use the rcp of WinNT, Win2000 and WinXP + =1 use WinNT's rcp in binary mode (default) + +PATHS *netrw-path* {{{2 + +Paths to files are generally user-directory relative for most protocols. +It is possible that some protocol will make paths relative to some +associated directory, however. +> + example: vim scp://user@host/somefile + example: vim scp://user@host/subdir1/subdir2/somefile +< +where "somefile" is in the "user"'s home directory. If you wish to get a +file using root-relative paths, use the full path: +> + example: vim scp://user@host//somefile + example: vim scp://user@host//subdir1/subdir2/somefile +< + +============================================================================== +4. Network-Oriented File Transfer *netrw-xfer* {{{1 + +Network-oriented file transfer under Vim is implemented by a Vim script +() using plugin techniques. It currently supports both reading and +writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch, +dav/cadaver, rsync, or sftp. + +http is currently supported read-only via use of wget or fetch. + + is a standard plugin which acts as glue between Vim and the +various file transfer programs. It uses autocommand events (BufReadCmd, +FileReadCmd, BufWriteCmd) to intercept reads/writes with url-like filenames. > + + ex. vim ftp://hostname/path/to/file +< +The characters preceding the colon specify the protocol to use; in the +example, it's ftp. The script then formulates a command or a +series of commands (typically ftp) which it issues to an external program +(ftp, scp, etc) which does the actual file transfer/protocol. Files are read +from/written to a temporary file (under Unix/Linux, /tmp/...) which the + script will clean up. + +Now, a word about Jan Minář's "FTP User Name and Password Disclosure"; first, +ftp is not a secure protocol. User names and passwords are transmitted "in +the clear" over the internet; any snooper tool can pick these up; this is not +a netrw thing, this is a ftp thing. If you're concerned about this, please +try to use scp or sftp instead. + +Netrw re-uses the user id and password during the same vim session and so long +as the remote hostname remains the same. + +Jan seems to be a bit confused about how netrw handles ftp; normally multiple +commands are performed in a "ftp session", and he seems to feel that the +uid/password should only be retained over one ftp session. However, netrw +does every ftp operation in a separate "ftp session"; so remembering the +uid/password for just one "ftp session" would be the same as not remembering +the uid/password at all. IMHO this would rapidly grow tiresome as one +browsed remote directories, for example. + +On the other hand, thanks go to Jan M. for pointing out the many +vulnerabilities that netrw (and vim itself) had had in handling "crafted" +filenames. The |shellescape()| and |fnameescape()| functions were written in +response by Bram Moolenaar to handle these sort of problems, and netrw has +been modified to use them. Still, my advice is, if the "filename" looks like +a vim command that you aren't comfortable with having executed, don't open it. + + *netrw-putty* *netrw-pscp* *netrw-psftp* +One may modify any protocol's implementing external application by setting a +variable (ex. scp uses the variable g:netrw_scp_cmd, which is defaulted to +"scp -q"). As an example, consider using PuTTY: > + + let g:netrw_scp_cmd = '"c:\Program Files\PuTTY\pscp.exe" -q -batch' + let g:netrw_sftp_cmd= '"c:\Program Files\PuTTY\psftp.exe"' +< +(note: it has been reported that windows 7 with putty v0.6's "-batch" option + doesn't work, so its best to leave it off for that system) + +See |netrw-p8| for more about putty, pscp, psftp, etc. + +Ftp, an old protocol, seems to be blessed by numerous implementations. +Unfortunately, some implementations are noisy (ie., add junk to the end of the +file). Thus, concerned users may decide to write a NetReadFixup() function +that will clean up after reading with their ftp. Some Unix systems (ie., +FreeBSD) provide a utility called "fetch" which uses the ftp protocol but is +not noisy and more convenient, actually, for to use. +Consequently, if "fetch" is available (ie. executable), it may be preferable +to use it for ftp://... based transfers. + +For rcp, scp, sftp, and http, one may use network-oriented file transfers +transparently; ie. +> + vim rcp://[user@]machine/path + vim scp://[user@]machine/path +< +If your ftp supports <.netrc>, then it too can be transparently used +if the needed triad of machine name, user id, and password are present in +that file. Your ftp must be able to use the <.netrc> file on its own, however. +> + vim ftp://[user@]machine[[:#]portnumber]/path +< +Windows provides an ftp (typically c:\Windows\System32\ftp.exe) which uses +an option, -s:filename (filename can and probably should be a full path) +which contains ftp commands which will be automatically run whenever ftp +starts. You may use this feature to enter a user and password for one site: > + userid + password +< *netrw-windows-netrc* *netrw-windows-s* +If |g:netrw_ftp_cmd| contains -s:[path/]MACHINE, then (on Windows machines +only) netrw will substitute the current machine name requested for ftp +connections for MACHINE. Hence one can have multiple machine.ftp files +containing login and password for ftp. Example: > + + let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp -s:C:\Users\Myself\MACHINE' + vim ftp://myhost.somewhere.net/ + +will use a file > + + C:\Users\Myself\myhost.ftp +< +Often, ftp will need to query the user for the userid and password. +The latter will be done "silently"; ie. asterisks will show up instead of +the actually-typed-in password. Netrw will retain the userid and password +for subsequent read/writes from the most recent transfer so subsequent +transfers (read/write) to or from that machine will take place without +additional prompting. + + *netrw-urls* + +=================================+============================+============+ + | Reading | Writing | Uses | + +=================================+============================+============+ + | DAV: | | | + | dav://host/path | | cadaver | + | :Nread dav://host/path | :Nwrite dav://host/path | cadaver | + +---------------------------------+----------------------------+------------+ + | DAV + SSL: | | | + | davs://host/path | | cadaver | + | :Nread davs://host/path | :Nwrite davs://host/path | cadaver | + +---------------------------------+----------------------------+------------+ + | FETCH: | | | + | fetch://[user@]host/path | | | + | fetch://[user@]host:http/path | Not Available | fetch | + | :Nread fetch://[user@]host/path| | | + +---------------------------------+----------------------------+------------+ + | FILE: | | | + | file:///* | file:///* | | + | file://localhost/* | file://localhost/* | | + +---------------------------------+----------------------------+------------+ + | FTP: (*3) | (*3) | | + | ftp://[user@]host/path | ftp://[user@]host/path | ftp (*2) | + | :Nread ftp://host/path | :Nwrite ftp://host/path | ftp+.netrc | + | :Nread host path | :Nwrite host path | ftp+.netrc | + | :Nread host uid pass path | :Nwrite host uid pass path | ftp | + +---------------------------------+----------------------------+------------+ + | HTTP: wget is executable: (*4) | | | + | http://[user@]host/path | Not Available | wget | + +---------------------------------+----------------------------+------------+ + | HTTP: fetch is executable (*4) | | | + | http://[user@]host/path | Not Available | fetch | + +---------------------------------+----------------------------+------------+ + | RCP: | | | + | rcp://[user@]host/path | rcp://[user@]host/path | rcp | + +---------------------------------+----------------------------+------------+ + | RSYNC: | | | + | rsync://[user@]host/path | rsync://[user@]host/path | rsync | + | :Nread rsync://host/path | :Nwrite rsync://host/path | rsync | + | :Nread rcp://host/path | :Nwrite rcp://host/path | rcp | + +---------------------------------+----------------------------+------------+ + | SCP: | | | + | scp://[user@]host/path | scp://[user@]host/path | scp | + | :Nread scp://host/path | :Nwrite scp://host/path | scp (*1) | + +---------------------------------+----------------------------+------------+ + | SFTP: | | | + | sftp://[user@]host/path | sftp://[user@]host/path | sftp | + | :Nread sftp://host/path | :Nwrite sftp://host/path | sftp (*1) | + +=================================+============================+============+ + + (*1) For an absolute path use scp://machine//path. + + (*2) if <.netrc> is present, it is assumed that it will + work with your ftp client. Otherwise the script will + prompt for user-id and password. + + (*3) for ftp, "machine" may be machine#port or machine:port + if a different port is needed than the standard ftp port + + (*4) for http:..., if wget is available it will be used. Otherwise, + if fetch is available it will be used. + +Both the :Nread and the :Nwrite ex-commands can accept multiple filenames. + + +NETRC *netrw-netrc* + +The <.netrc> file, typically located in your home directory, contains lines +therein which map a hostname (machine name) to the user id and password you +prefer to use with it. + +The typical syntax for lines in a <.netrc> file is given as shown below. +Ftp under Unix usually supports <.netrc>; ftp under Windows usually doesn't. +> + machine {full machine name} login {user-id} password "{password}" + default login {user-id} password "{password}" + +Your ftp client must handle the use of <.netrc> on its own, but if the +<.netrc> file exists, an ftp transfer will not ask for the user-id or +password. + + Note: + Since this file contains passwords, make very sure nobody else can + read this file! Most programs will refuse to use a .netrc that is + readable for others. Don't forget that the system administrator can + still read the file! Ie. for Linux/Unix: chmod 600 .netrc + +Even though Windows' ftp clients typically do not support .netrc, netrw has +a work-around: see |netrw-windows-s|. + + +PASSWORD *netrw-passwd* + +The script attempts to get passwords for ftp invisibly using |inputsecret()|, +a built-in Vim function. See |netrw-userpass| for how to change the password +after one has set it. + +Unfortunately there doesn't appear to be a way for netrw to feed a password to +scp. Thus every transfer via scp will require re-entry of the password. +However, |netrw-ssh-hack| can help with this problem. + + +============================================================================== +5. Activation *netrw-activate* {{{1 + +Network-oriented file transfers are available by default whenever Vim's +'nocompatible' mode is enabled. Netrw's script files reside in your +system's plugin, autoload, and syntax directories; just the +plugin/netrwPlugin.vim script is sourced automatically whenever you bring up +vim. The main script in autoload/netrw.vim is only loaded when you actually +use netrw. I suggest that, at a minimum, you have at least the following in +your <.vimrc> customization file: > + + set nocp + if version >= 600 + filetype plugin indent on + endif +< +By also including the following lines in your .vimrc, one may have netrw +immediately activate when using [g]vim without any filenames, showing the +current directory: > + + " Augroup VimStartup: + augroup VimStartup + au! + au VimEnter * if expand("%") == "" | e . | endif + augroup END +< + +============================================================================== +6. Transparent Remote File Editing *netrw-transparent* {{{1 + +Transparent file transfers occur whenever a regular file read or write +(invoked via an |:autocmd| for |BufReadCmd|, |BufWriteCmd|, or |SourceCmd| +events) is made. Thus one may read, write, or source files across networks +just as easily as if they were local files! > + + vim ftp://[user@]machine/path + ... + :wq + +See |netrw-activate| for more on how to encourage your vim to use plugins +such as netrw. + +For password-free use of scp:, see |netrw-ssh-hack|. + + +============================================================================== +7. Ex Commands *netrw-ex* {{{1 + +The usual read/write commands are supported. There are also a few +additional commands available. Often you won't need to use Nwrite or +Nread as shown in |netrw-transparent| (ie. simply use > + :e URL + :r URL + :w URL +instead, as appropriate) -- see |netrw-urls|. In the explanations +below, a {netfile} is a URL to a remote file. + + *:Nwrite* *:Nw* +:[range]Nw[rite] Write the specified lines to the current + file as specified in b:netrw_lastfile. + (related: |netrw-nwrite|) + +:[range]Nw[rite] {netfile} [{netfile}]... + Write the specified lines to the {netfile}. + + *:Nread* *:Nr* +:Nr[ead] Read the lines from the file specified in b:netrw_lastfile + into the current buffer. (related: |netrw-nread|) + +:Nr[ead] {netfile} {netfile}... + Read the {netfile} after the current line. + + *:Nsource* *:Ns* +:Ns[ource] {netfile} + Source the {netfile}. + To start up vim using a remote .vimrc, one may use + the following (all on one line) (tnx to Antoine Mechelynck) > + vim -u NORC -N + --cmd "runtime plugin/netrwPlugin.vim" + --cmd "source scp://HOSTNAME/.vimrc" +< (related: |netrw-source|) + +:call NetUserPass() *NetUserPass()* + If g:netrw_uid and s:netrw_passwd don't exist, + this function will query the user for them. + (related: |netrw-userpass|) + +:call NetUserPass("userid") + This call will set the g:netrw_uid and, if + the password doesn't exist, will query the user for it. + (related: |netrw-userpass|) + +:call NetUserPass("userid","passwd") + This call will set both the g:netrw_uid and s:netrw_passwd. + The user-id and password are used by ftp transfers. One may + effectively remove the user-id and password by using empty + strings (ie. ""). + (related: |netrw-userpass|) + + +============================================================================== +8. Variables and Options *netrw-var* *netrw-settings* {{{1 + +(also see: |netrw-options| |netrw-variables| |netrw-protocol| + |netrw-browser-settings| |netrw-browser-options| ) + +The script provides several variables which act as options to +affect 's file transfer behavior. These variables typically may be +set in the user's <.vimrc> file: (see also |netrw-settings| |netrw-protocol|) + *netrw-options* +> + ------------- + Netrw Options + ------------- + Option Meaning + -------------- ----------------------------------------------- +< + b:netrw_col Holds current cursor position (during NetWrite) + g:netrw_cygwin =1 assume scp under windows is from cygwin + (default/windows) + =0 assume scp under windows accepts windows + style paths (default/else) + g:netrw_ftp =0 use default ftp (uid password) + g:netrw_ftpmode ="binary" (default) + ="ascii" (your choice) + g:netrw_ignorenetrc =1 (default) + if you have a <.netrc> file but you don't + want it used, then set this variable. Its + mere existence is enough to cause <.netrc> + to be ignored. + b:netrw_lastfile Holds latest method/machine/path. + b:netrw_line Holds current line number (during NetWrite) + g:netrw_silent =0 transfers done normally + =1 transfers done silently + g:netrw_uid Holds current user-id for ftp. + g:netrw_use_nt_rcp =0 don't use WinNT/2K/XP's rcp (default) + =1 use WinNT/2K/XP's rcp, binary mode + ----------------------------------------------------------------------- +< + *netrw-internal-variables* +The script will also make use of the following variables internally, albeit +temporarily. +> + ------------------- + Temporary Variables + ------------------- + Variable Meaning + -------- ------------------------------------ +< + b:netrw_method Index indicating rcp/ftp+.netrc/ftp + w:netrw_method (same as b:netrw_method) + g:netrw_machine Holds machine name parsed from input + b:netrw_fname Holds filename being accessed > + ------------------------------------------------------------ +< + *netrw-protocol* + +Netrw supports a number of protocols. These protocols are invoked using the +variables listed below, and may be modified by the user. +> + ------------------------ + Protocol Control Options + ------------------------ + Option Type Setting Meaning + --------- -------- -------------- --------------------------- +< netrw_ftp variable =doesn't exist userid set by "user userid" + =0 userid set by "user userid" + =1 userid set by "userid" + NetReadFixup function =doesn't exist no change + =exists Allows user to have files + read via ftp automatically + transformed however they wish + by NetReadFixup() + g:netrw_dav_cmd var ="cadaver" if cadaver is executable + g:netrw_dav_cmd var ="curl -o" elseif curl is executable + g:netrw_fetch_cmd var ="fetch -o" if fetch is available + g:netrw_ftp_cmd var ="ftp" + g:netrw_http_cmd var ="fetch -o" if fetch is available + g:netrw_http_cmd var ="wget -O" else if wget is available + g:netrw_http_put_cmd var ="curl -T" + |g:netrw_list_cmd| var ="ssh USEPORT HOSTNAME ls -Fa" + g:netrw_rcp_cmd var ="rcp" + g:netrw_rsync_cmd var ="rsync" + *g:netrw_rsync_sep* var ="/" used to separate the hostname + from the file spec + g:netrw_scp_cmd var ="scp -q" + g:netrw_sftp_cmd var ="sftp" > + ------------------------------------------------------------------------- +< + *netrw-ftp* + +The g:netrw_..._cmd options (|g:netrw_ftp_cmd| and |g:netrw_sftp_cmd|) +specify the external program to use handle the ftp protocol. They may +include command line options (such as -p for passive mode). Example: > + + let g:netrw_ftp_cmd= "ftp -p" +< +Browsing is supported by using the |g:netrw_list_cmd|; the substring +"HOSTNAME" will be changed via substitution with whatever the current request +is for a hostname. + +Two options (|g:netrw_ftp| and |netrw-fixup|) both help with certain ftp's +that give trouble . In order to best understand how to use these options if +ftp is giving you troubles, a bit of discussion is provided on how netrw does +ftp reads. + +For ftp, netrw typically builds up lines of one of the following formats in a +temporary file: +> + IF g:netrw_ftp !exists or is not 1 IF g:netrw_ftp exists and is 1 + ---------------------------------- ------------------------------ +< + open machine [port] open machine [port] + user userid password userid password + [g:netrw_ftpmode] password + [g:netrw_ftpextracmd] [g:netrw_ftpmode] + get filename tempfile [g:netrw_extracmd] + get filename tempfile > + --------------------------------------------------------------------- +< +The |g:netrw_ftpmode| and |g:netrw_ftpextracmd| are optional. + +Netrw then executes the lines above by use of a filter: +> + :%! {g:netrw_ftp_cmd} -i [-n] +< +where + g:netrw_ftp_cmd is usually "ftp", + -i tells ftp not to be interactive + -n means don't use netrc and is used for Method #3 (ftp w/o <.netrc>) + +If <.netrc> exists it will be used to avoid having to query the user for +userid and password. The transferred file is put into a temporary file. +The temporary file is then read into the main editing session window that +requested it and the temporary file deleted. + +If your ftp doesn't accept the "user" command and immediately just demands a +userid, then try putting "let netrw_ftp=1" in your <.vimrc>. + + *netrw-cadaver* +To handle the SSL certificate dialog for untrusted servers, one may pull +down the certificate and place it into /usr/ssl/cert.pem. This operation +renders the server treatment as "trusted". + + *netrw-fixup* *netreadfixup* +If your ftp for whatever reason generates unwanted lines (such as AUTH +messages) you may write a NetReadFixup() function: +> + function! NetReadFixup(method,line1,line2) + " a:line1: first new line in current file + " a:line2: last new line in current file + if a:method == 1 "rcp + elseif a:method == 2 "ftp + <.netrc> + elseif a:method == 3 "ftp + machine,uid,password,filename + elseif a:method == 4 "scp + elseif a:method == 5 "http/wget + elseif a:method == 6 "dav/cadaver + elseif a:method == 7 "rsync + elseif a:method == 8 "fetch + elseif a:method == 9 "sftp + else " complain + endif + endfunction +> +The NetReadFixup() function will be called if it exists and thus allows you to +customize your reading process. + +(Related topics: |ftp| |netrw-userpass| |netrw-start|) + +============================================================================== +9. Browsing *netrw-browsing* *netrw-browse* *netrw-help* {{{1 + *netrw-browser* *netrw-dir* *netrw-list* + +INTRODUCTION TO BROWSING *netrw-intro-browse* {{{2 + (Quick References: |netrw-quickmaps| |netrw-quickcoms|) + +Netrw supports the browsing of directories on your local system and on remote +hosts; browsing includes listing files and directories, entering directories, +editing files therein, deleting files/directories, making new directories, +moving (renaming) files and directories, copying files and directories, etc. +One may mark files and execute any system command on them! The Netrw browser +generally implements the previous explorer's maps and commands for remote +directories, although details (such as pertinent global variable names) +necessarily differ. To browse a directory, simply "edit" it! > + + vim /your/directory/ + vim . + vim c:\your\directory\ +< +(Related topics: |netrw-cr| |netrw-o| |netrw-p| |netrw-P| |netrw-t| + |netrw-mf| |netrw-mx| |netrw-D| |netrw-R| |netrw-v| ) + +The Netrw remote file and directory browser handles two protocols: ssh and +ftp. The protocol in the url, if it is ftp, will cause netrw also to use ftp +in its remote browsing. Specifying any other protocol will cause it to be +used for file transfers; but the ssh protocol will be used to do remote +browsing. + +To use Netrw's remote directory browser, simply attempt to read a "file" with +a trailing slash and it will be interpreted as a request to list a directory: +> + vim [protocol]://[user@]hostname/path/ +< +where [protocol] is typically scp or ftp. As an example, try: > + + vim ftp://ftp.home.vim.org/pub/vim/ +< +For local directories, the trailing slash is not required. Again, because it's +easy to miss: to browse remote directories, the URL must terminate with a +slash! + +If you'd like to avoid entering the password repeatedly for remote directory +listings with ssh or scp, see |netrw-ssh-hack|. To avoid password entry with +ftp, see |netrw-netrc| (if your ftp supports it). + +There are several things you can do to affect the browser's display of files: + + * To change the listing style, press the "i" key (|netrw-i|). + Currently there are four styles: thin, long, wide, and tree. + To make that change "permanent", see |g:netrw_liststyle|. + + * To hide files (don't want to see those xyz~ files anymore?) see + |netrw-ctrl-h|. + + * Press s to sort files by name, time, or size. + +See |netrw-browse-cmds| for all the things you can do with netrw! + + *netrw-getftype* *netrw-filigree* *netrw-ftype* +The |getftype()| function is used to append a bit of filigree to indicate +filetype to locally listed files: + + directory : / + executable : * + fifo : | + links : @ + sockets : = + +The filigree also affects the |g:netrw_sort_sequence|. + + +QUICK HELP *netrw-quickhelp* {{{2 + (Use ctrl-] to select a topic)~ + Intro to Browsing...............................|netrw-intro-browse| + Quick Reference: Maps.........................|netrw-quickmap| + Quick Reference: Commands.....................|netrw-browse-cmds| + Hiding + Edit hiding list..............................|netrw-ctrl-h| + Hiding Files or Directories...................|netrw-a| + Hiding/Unhiding by suffix.....................|netrw-mh| + Hiding dot-files.............................|netrw-gh| + Listing Style + Select listing style (thin/long/wide/tree)....|netrw-i| + Associated setting variable...................|g:netrw_liststyle| + Shell command used to perform listing.........|g:netrw_list_cmd| + Quick file info...............................|netrw-qf| + Sorted by + Select sorting style (name/time/size).........|netrw-s| + Editing the sorting sequence..................|netrw-S| + Sorting options...............................|g:netrw_sort_options| + Associated setting variable...................|g:netrw_sort_sequence| + Reverse sorting order.........................|netrw-r| + + + *netrw-quickmap* *netrw-quickmaps* +QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2 +> + --- ----------------- ---- + Map Quick Explanation Link + --- ----------------- ---- +< Causes Netrw to issue help + Netrw will enter the directory or read the file |netrw-cr| + Netrw will attempt to remove the file/directory |netrw-del| + Edit file hiding list |netrw-ctrl-h| + Causes Netrw to refresh the directory listing |netrw-ctrl-l| + Browse using a gvim server |netrw-ctrl-r| + Shrink/expand a netrw/explore window |netrw-c-tab| + - Makes Netrw go up one directory |netrw--| + a Cycles between normal display, |netrw-a| + hiding (suppress display of files matching g:netrw_list_hide) + and showing (display only files which match g:netrw_list_hide) + cd Make browsing directory the current directory |netrw-cd| + C Setting the editing window |netrw-C| + d Make a directory |netrw-d| + D Attempt to remove the file(s)/directory(ies) |netrw-D| + gb Go to previous bookmarked directory |netrw-gb| + gd Force treatment as directory |netrw-gd| + gf Force treatment as file |netrw-gf| + gh Quick hide/unhide of dot-files |netrw-gh| + gn Make top of tree the directory below the cursor |netrw-gn| + gp Change local-only file permissions |netrw-gp| + i Cycle between thin, long, wide, and tree listings |netrw-i| + I Toggle the displaying of the banner |netrw-I| + mb Bookmark current directory |netrw-mb| + mc Copy marked files to marked-file target directory |netrw-mc| + md Apply diff to marked files (up to 3) |netrw-md| + me Place marked files on arg list and edit them |netrw-me| + mf Mark a file |netrw-mf| + mF Unmark files |netrw-mF| + mg Apply vimgrep to marked files |netrw-mg| + mh Toggle marked file suffices' presence on hiding list |netrw-mh| + mm Move marked files to marked-file target directory |netrw-mm| + mr Mark files using a shell-style |regexp| |netrw-mr| + mt Current browsing directory becomes markfile target |netrw-mt| + mT Apply ctags to marked files |netrw-mT| + mu Unmark all marked files |netrw-mu| + mv Apply arbitrary vim command to marked files |netrw-mv| + mx Apply arbitrary shell command to marked files |netrw-mx| + mX Apply arbitrary shell command to marked files en bloc|netrw-mX| + mz Compress/decompress marked files |netrw-mz| + o Enter the file/directory under the cursor in a new |netrw-o| + browser window. A horizontal split is used. + O Obtain a file specified by cursor |netrw-O| + p Preview the file |netrw-p| + P Browse in the previously used window |netrw-P| + qb List bookmarked directories and history |netrw-qb| + qf Display information on file |netrw-qf| + qF Mark files using a quickfix list |netrw-qF| + qL Mark files using a |location-list| |netrw-qL| + r Reverse sorting order |netrw-r| + R Rename the designated file(s)/directory(ies) |netrw-R| + s Select sorting style: by name, time, or file size |netrw-s| + S Specify suffix priority for name-sorting |netrw-S| + t Enter the file/directory under the cursor in a new tab|netrw-t| + u Change to recently-visited directory |netrw-u| + U Change to subsequently-visited directory |netrw-U| + v Enter the file/directory under the cursor in a new |netrw-v| + browser window. A vertical split is used. + x View file with an associated program |:Open| + X Execute filename under cursor via |system()| |netrw-X| + + % Open a new file in netrw's current directory |netrw-%| + + *netrw-mouse* *netrw-leftmouse* *netrw-middlemouse* *netrw-rightmouse* + (gvim only) selects word under mouse as if a + had been pressed (ie. edit file, change directory) + (gvim only) same as P selecting word under mouse; + see |netrw-P| + (gvim only) delete file/directory using word under + mouse + <2-leftmouse> (gvim only) when: + * in a netrw-selected file, AND + * |g:netrw_retmap| == 1 AND + * the user doesn't already have a <2-leftmouse> + mapping defined before netrw is autoloaded, + then a double clicked leftmouse button will return + to the netrw browser window. See |g:netrw_retmap|. + (gvim only) like mf, will mark files. Dragging + the shifted leftmouse will mark multiple files. + (see |netrw-mf|) + + (to disable mouse buttons while browsing: |g:netrw_mousemaps|) + + *netrw-quickcom* *netrw-quickcoms* +QUICK REFERENCE: COMMANDS *netrw-explore-cmds* *netrw-browse-cmds* {{{2 + :Ntree....................................................|netrw-ntree| + :Explore[!] [dir] Explore directory of current file......|netrw-explore| + :Hexplore[!] [dir] Horizontal Split & Explore.............|netrw-explore| + :Lexplore[!] [dir] Left Explorer Toggle...................|netrw-explore| + :Nexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| + :Pexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| + :Rexplore Return to Explorer.....................|netrw-explore| + :Sexplore[!] [dir] Split & Explore directory .............|netrw-explore| + :Texplore[!] [dir] Tab & Explore..........................|netrw-explore| + :Vexplore[!] [dir] Vertical Split & Explore...............|netrw-explore| + + +BANNER DISPLAY *netrw-I* + +One may toggle the displaying of the banner by pressing "I". + +Also See: |g:netrw_banner| + + +BOOKMARKING A DIRECTORY *netrw-mb* *netrw-bookmark* *netrw-bookmarks* {{{2 + +One may easily "bookmark" the currently browsed directory by using > + + mb +< + *.netrwbook* +Bookmarks are retained in between sessions of vim in a file called .netrwbook +as a |List|, which is typically stored in the first directory on the user's +'runtimepath'; entries are kept in sorted order. + +If there are marked files and/or directories, mb will add them to the bookmark +list. + + *netrw-:NetrwMB* +Additionally, one may use :NetrwMB to bookmark files or directories. > + + :NetrwMB[!] [files/directories] + +< No bang: enters files/directories into Netrw's bookmark system + + No argument and in netrw buffer: + if there are marked files : bookmark marked files + otherwise : bookmark file/directory under cursor + No argument and not in netrw buffer: bookmarks current open file + Has arguments : |glob()|s each arg and bookmarks them + + With bang: deletes files/directories from Netrw's bookmark system + +The :NetrwMB command is available outside of netrw buffers (once netrw has been +invoked in the session). + +The file ".netrwbook" holds bookmarks when netrw (and vim) is not active. By +default, its stored on the first directory on the user's 'runtimepath'. + +Related Topics: + |netrw-gb| how to return (go) to a bookmark + |netrw-mB| how to delete bookmarks + |netrw-qb| how to list bookmarks + |g:netrw_home| controls where .netrwbook is kept + + +BROWSING *netrw-enter* *netrw-cr* {{{2 + +Browsing is simple: move the cursor onto a file or directory of interest. +Hitting the (the return key) will select the file or directory. +Directories will themselves be listed, and files will be opened using the +protocol given in the original read request. + + CAVEAT: There are four forms of listing (see |netrw-i|). Netrw assumes that + two or more spaces delimit filenames and directory names for the long and + wide listing formats. Thus, if your filename or directory name has two or + more sequential spaces embedded in it, or any trailing spaces, then you'll + need to use the "thin" format to select it. + +The |g:netrw_browse_split| option, which is zero by default, may be used to +cause the opening of files to be done in a new window or tab instead of the +default. When the option is one or two, the splitting will be taken +horizontally or vertically, respectively. When the option is set to three, a + will cause the file to appear in a new tab. + + +When using the gui (gvim), one may select a file by pressing the +button. In addition, if + + * |g:netrw_retmap| == 1 AND (its default value is 0) + * in a netrw-selected file, AND + * the user doesn't already have a <2-leftmouse> mapping defined before + netrw is loaded + +then a doubly-clicked leftmouse button will return to the netrw browser +window. + +Netrw attempts to speed up browsing, especially for remote browsing where one +may have to enter passwords, by keeping and re-using previously obtained +directory listing buffers. The |g:netrw_fastbrowse| variable is used to +control this behavior; one may have slow browsing (no buffer re-use), medium +speed browsing (re-use directory buffer listings only for remote directories), +and fast browsing (re-use directory buffer listings as often as possible). +The price for such re-use is that when changes are made (such as new files +are introduced into a directory), the listing may become out-of-date. One may +always refresh directory listing buffers by pressing ctrl-L (see +|netrw-ctrl-l|). + + *netrw-s-cr* +Squeezing the Current Tree-Listing Directory~ + +When the tree listing style is enabled (see |netrw-i|) and one is using +gvim, then the mapping may be used to squeeze (close) the +directory currently containing the cursor. + +Otherwise, one may remap a key combination of one's own choice to get +this effect: > + + nmap YOURKEYCOMBO NetrwTreeSqueeze +< +Put this line in $HOME/ftplugin/netrw/netrw.vim; it needs to be generated +for netrw buffers only. + +Related topics: + |netrw-ctrl-r| |netrw-o| |netrw-p| + |netrw-P| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_browse_split| |g:netrw_fastbrowse| + |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| + |g:netrw_ftp_timelist_cmd| |g:netrw_ssh_browse_reject| + |g:netrw_ssh_cmd| |g:netrw_use_noswf| + + +BROWSING WITH A HORIZONTALLY SPLIT WINDOW *netrw-o* *netrw-horiz* {{{2 + +Normally one enters a file or directory using the . However, the "o" map +allows one to open a new window to hold the new directory listing or file. A +horizontal split is used. (for vertical splitting, see |netrw-v|) + +Normally, the o key splits the window horizontally with the new window and +cursor at the top. + +Associated setting variables: |g:netrw_alto| |g:netrw_winsize| + +Related topics: + |netrw-ctrl-r| |netrw-o| |netrw-p| + |netrw-P| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_alto| control above/below splitting + |g:netrw_winsize| control initial sizing + +BROWSING WITH A NEW TAB *netrw-t* {{{2 + +Normally one enters a file or directory using the . The "t" map +allows one to open a new window holding the new directory listing or file in +a new tab. + +If you'd like to have the new listing in a background tab, use |gT|. + +Related topics: + |netrw-ctrl-r| |netrw-o| |netrw-p| + |netrw-P| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_winsize| control initial sizing + +BROWSING WITH A VERTICALLY SPLIT WINDOW *netrw-v* {{{2 + +Normally one enters a file or directory using the . However, the "v" map +allows one to open a new window to hold the new directory listing or file. A +vertical split is used. (for horizontal splitting, see |netrw-o|) + +Normally, the v key splits the window vertically with the new window and +cursor at the left. + +There is only one tree listing buffer; using "v" on a displayed subdirectory +will split the screen, but the same buffer will be shown twice. + +Related topics: + |netrw-ctrl-r| |netrw-o| |netrw-p| + |netrw-P| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_altv| control right/left splitting + |g:netrw_winsize| control initial sizing + + +BROWSING USING A GVIM SERVER *netrw-ctrl-r* {{{2 + +One may keep a browsing gvim separate from the gvim being used to edit. +Use the map on a file (not a directory) in the netrw browser, and it +will use a gvim server (see |g:netrw_servername|). Subsequent use of +(see |netrw-cr|) will re-use that server for editing files. + +Related topics: + |netrw-ctrl-r| |netrw-o| |netrw-p| + |netrw-P| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_servername| : sets name of server + |g:netrw_browse_split| : controls how will open files + + +CHANGE LISTING STYLE (THIN LONG WIDE TREE) *netrw-i* {{{2 + +The "i" map cycles between the thin, long, wide, and tree listing formats. + +The thin listing format gives just the files' and directories' names. + +The long listing is either based on the "ls" command via ssh for remote +directories or displays the filename, file size (in bytes), and the time and +date of last modification for local directories. With the long listing +format, netrw is not able to recognize filenames which have trailing spaces. +Use the thin listing format for such files. + +The wide listing format uses two or more contiguous spaces to delineate +filenames; when using that format, netrw won't be able to recognize or use +filenames which have two or more contiguous spaces embedded in the name or any +trailing spaces. The thin listing format will, however, work with such files. +The wide listing format is the most compact. + +The tree listing format has a top directory followed by files and directories +preceded by one or more "|"s, which indicate the directory depth. One may +open and close directories by pressing the key while atop the directory +name. + +One may make a preferred listing style your default; see |g:netrw_liststyle|. +As an example, by putting the following line in your .vimrc, > + let g:netrw_liststyle= 3 +the tree style will become your default listing style. + +One typical way to use the netrw tree display is to: > + + vim . + (use i until a tree display shows) + navigate to a file + v (edit as desired in vertically split window) + ctrl-w h (to return to the netrw listing) + P (edit newly selected file in the previous window) + ctrl-w h (to return to the netrw listing) + P (edit newly selected file in the previous window) + ...etc... +< +Associated setting variables: |g:netrw_liststyle| |g:netrw_maxfilenamelen| + |g:netrw_timefmt| |g:netrw_list_cmd| + +CHANGE FILE PERMISSION *netrw-gp* {{{2 + +"gp" will ask you for a new permission for the file named under the cursor. +Currently, this only works for local files. + +Associated setting variables: |g:netrw_chgperm| + + +CHANGING TO A BOOKMARKED DIRECTORY *netrw-gb* {{{2 + +To change directory back to a bookmarked directory, use + + {cnt}gb + +Any count may be used to reference any of the bookmarks. +Note that |netrw-qb| shows both bookmarks and history; to go +to a location stored in the history see |netrw-u| and |netrw-U|. + +Related Topics: + |netrw-mB| how to delete bookmarks + |netrw-mb| how to make a bookmark + |netrw-qb| how to list bookmarks + + +CHANGING TO A PREDECESSOR DIRECTORY *netrw-u* *netrw-updir* {{{2 + +Every time you change to a new directory (new for the current session), netrw +will save the directory in a recently-visited directory history list (unless +|g:netrw_dirhistmax| is zero; by default, it holds ten entries). With the "u" +map, one can change to an earlier directory (predecessor). To do the +opposite, see |netrw-U|. + +The "u" map also accepts counts to go back in the history several slots. For +your convenience, qb (see |netrw-qb|) lists the history number which may be +used in that count. + + *.netrwhist* +See |g:netrw_dirhistmax| for how to control the quantity of history stack +slots. The file ".netrwhist" holds history when netrw (and vim) is not +active. By default, its stored on the first directory on the user's +'runtimepath'. + +Related Topics: + |netrw-U| changing to a successor directory + |g:netrw_home| controls where .netrwhist is kept + + +CHANGING TO A SUCCESSOR DIRECTORY *netrw-U* *netrw-downdir* {{{2 + +With the "U" map, one can change to a later directory (successor). +This map is the opposite of the "u" map. (see |netrw-u|) Use the +qb map to list both the bookmarks and history. (see |netrw-qb|) + +The "U" map also accepts counts to go forward in the history several slots. + +See |g:netrw_dirhistmax| for how to control the quantity of history stack +slots. + + +CHANGING TREE TOP *netrw-ntree* *:Ntree* *netrw-gn* {{{2 + +One may specify a new tree top for tree listings using > + + :Ntree [dirname] + +Without a "dirname", the current line is used (and any leading depth +information is elided). +With a "dirname", the specified directory name is used. + +The "gn" map will take the word below the cursor and use that for +changing the top of the tree listing. + + *netrw-curdir* +DELETING BOOKMARKS *netrw-mB* {{{2 + +To delete a bookmark, use > + + {cnt}mB + +If there are marked files, then mB will remove them from the +bookmark list. + +Alternatively, one may use :NetrwMB! (see |netrw-:NetrwMB|). > + + :NetrwMB! [files/directories] + +Related Topics: + |netrw-gb| how to return (go) to a bookmark + |netrw-mb| how to make a bookmark + |netrw-qb| how to list bookmarks + + +DELETING FILES OR DIRECTORIES *netrw-delete* *netrw-D* *netrw-del* {{{2 + +If files have not been marked with |netrw-mf|: (local marked file list) + + Deleting/removing files and directories involves moving the cursor to the + file/directory to be deleted and pressing "D". Directories must be empty + first before they can be successfully removed. If the directory is a + softlink to a directory, then netrw will make two requests to remove the + directory before succeeding. Netrw will ask for confirmation before doing + the removal(s). You may select a range of lines with the "V" command + (visual selection), and then pressing "D". + +If files have been marked with |netrw-mf|: (local marked file list) + + Marked files (and empty directories) will be deleted; again, you'll be + asked to confirm the deletion before it actually takes place. + +A further approach is to delete files which match a pattern. + + * use :MF pattern (see |netrw-:MF|); then press "D". + + * use mr (see |netrw-mr|) which will prompt you for pattern. + This will cause the matching files to be marked. Then, + press "D". + +Please note that only empty directories may be deleted with the "D" mapping. +Regular files are deleted with |delete()|, too. + +The |g:netrw_rm_cmd|, |g:netrw_rmf_cmd|, and |g:netrw_rmdir_cmd| variables are +used to control the attempts to remove remote files and directories. The +g:netrw_rm_cmd is used with files, and its default value is: + + g:netrw_rm_cmd: ssh HOSTNAME rm + +The g:netrw_rmdir_cmd variable is used to support the removal of directories. +Its default value is: + + |g:netrw_rmdir_cmd|: ssh HOSTNAME rmdir + +If removing a directory fails with g:netrw_rmdir_cmd, netrw then will attempt +to remove it again using the g:netrw_rmf_cmd variable. Its default value is: + + |g:netrw_rmf_cmd|: ssh HOSTNAME rm -f + +Related topics: |netrw-d| +Associated setting variable: |g:netrw_rm_cmd| |g:netrw_ssh_cmd| + + +*netrw-explore* *netrw-hexplore* *netrw-nexplore* *netrw-pexplore* +*netrw-rexplore* *netrw-sexplore* *netrw-texplore* *netrw-vexplore* *netrw-lexplore* +DIRECTORY EXPLORATION COMMANDS {{{2 + + :[N]Explore[!] [dir]... Explore directory of current file *:Explore* + :[N]Hexplore[!] [dir]... Horizontal Split & Explore *:Hexplore* + :[N]Lexplore[!] [dir]... Left Explorer Toggle *:Lexplore* + :[N]Sexplore[!] [dir]... Split&Explore current file's directory *:Sexplore* + :[N]Vexplore[!] [dir]... Vertical Split & Explore *:Vexplore* + :Texplore [dir]... Tab & Explore *:Texplore* + :Rexplore ... Return to/from Explorer *:Rexplore* + + Used with :Explore **/pattern : (also see |netrw-starstar|) + :Nexplore............. go to next matching file *:Nexplore* + :Pexplore............. go to previous matching file *:Pexplore* + + *netrw-:Explore* +:Explore will open the local-directory browser on the current file's + directory (or on directory [dir] if specified). The window will be + split only if the file has been modified and 'hidden' is not set, + otherwise the browsing window will take over that window. Normally + the splitting is taken horizontally. + Also see: |netrw-:Rexplore| +:Explore! is like :Explore, but will use vertical splitting. + + *netrw-:Hexplore* +:Hexplore [dir] does an :Explore with |:belowright| horizontal splitting. +:Hexplore! [dir] does an :Explore with |:aboveleft| horizontal splitting. + + *netrw-:Lexplore* +:[N]Lexplore [dir] toggles a full height Explorer window on the left hand side + of the current tab. It will open a netrw window on the current + directory if [dir] is omitted; a :Lexplore [dir] will show the + specified directory in the left-hand side browser display no matter + from which window the command is issued. + + By default, :Lexplore will change an uninitialized |g:netrw_chgwin| + to 2; edits will thus preferentially be made in window#2. + + The [N] specifies a |g:netrw_winsize| just for the new :Lexplore + window. That means that + if [N] < 0 : use |N| columns for the Lexplore window + if [N] = 0 : a normal split is made + if [N] > 0 : use N% of the current window will be used for the + new window + + Those who like this method often also like tree style displays; + see |g:netrw_liststyle|. + +:[N]Lexplore! [dir] is similar to :Lexplore, except that the full-height + Explorer window will open on the right hand side and an + uninitialized |g:netrw_chgwin| will be set to 1 (eg. edits will + preferentially occur in the leftmost window). + + Also see: |netrw-C| |g:netrw_browse_split| |g:netrw_wiw| + |netrw-p| |netrw-P| |g:netrw_chgwin| + |netrw-c-tab| |g:netrw_winsize| + + *netrw-:Sexplore* +:[N]Sexplore will always split the window before invoking the local-directory + browser. As with Explore, the splitting is normally done + horizontally. +:[N]Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically. + + *netrw-:Texplore* +:Texplore [dir] does a |:tabnew| before generating the browser window + + *netrw-:Vexplore* +:[N]Vexplore [dir] does an :Explore with |:leftabove| vertical splitting. +:[N]Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting. + +The optional parameters are: + + [N]: This parameter will override |g:netrw_winsize| to specify the quantity of + rows and/or columns the new explorer window should have. + Otherwise, the |g:netrw_winsize| variable, if it has been specified by the + user, is used to control the quantity of rows and/or columns new + explorer windows should have. + + [dir]: By default, these explorer commands use the current file's directory. + However, one may explicitly provide a directory (path) to use instead; + ie. > + + :Explore /some/path +< + *netrw-:Rexplore* +:Rexplore This command is a little different from the other Explore commands + as it doesn't necessarily open an Explorer window. + + Return to Explorer~ + When one edits a file using netrw which can occur, for example, + when pressing while the cursor is atop a filename in a netrw + browser window, a :Rexplore issued while editing that file will + return the display to that of the last netrw browser display in + that window. + + Return from Explorer~ + Conversely, when one is editing a directory, issuing a :Rexplore + will return to editing the file that was last edited in that + window. + + The <2-leftmouse> map (which is only available under gvim and + cooperative terms) does the same as :Rexplore. + +Also see: |g:netrw_alto| |g:netrw_altv| |g:netrw_winsize| + + +*netrw-star* *netrw-starpat* *netrw-starstar* *netrw-starstarpat* *netrw-grep* +EXPLORING WITH STARS AND PATTERNS {{{2 + +When Explore, Sexplore, Hexplore, or Vexplore are used with one of the +following four patterns Explore generates a list of files which satisfy the +request for the local file system. These exploration patterns will not work +with remote file browsing. + + */filepat files in current directory which satisfy filepat + **/filepat files in current directory or below which satisfy the + file pattern + *//pattern files in the current directory which contain the + pattern (vimgrep is used) + **//pattern files in the current directory or below which contain + the pattern (vimgrep is used) +< +The cursor will be placed on the first file in the list. One may then +continue to go to subsequent files on that list via |:Nexplore| or to +preceding files on that list with |:Pexplore|. Explore will update the +directory and place the cursor appropriately. + +A plain > + :Explore +will clear the explore list. + +If your console or gui produces recognizable shift-up or shift-down sequences, +then you'll likely find using shift-downarrow and shift-uparrow convenient. +They're mapped by netrw as follows: + + == Nexplore, and + == Pexplore. + +As an example, consider +> + :Explore */*.c + :Nexplore + :Nexplore + :Pexplore +< +The status line will show, on the right hand side of the status line, a +message like "Match 3 of 20". + +Associated setting variables: + |g:netrw_keepdir| |g:netrw_browse_split| + |g:netrw_fastbrowse| |g:netrw_ftp_browse_reject| + |g:netrw_ftp_list_cmd| |g:netrw_ftp_sizelist_cmd| + |g:netrw_ftp_timelist_cmd| |g:netrw_list_cmd| + |g:netrw_liststyle| + + +DISPLAYING INFORMATION ABOUT FILE *netrw-qf* {{{2 + +With the cursor atop a filename, pressing "qf" will reveal the file's size +and last modification timestamp. Currently this capability is only available +for local files. + + +EDIT FILE OR DIRECTORY HIDING LIST *netrw-ctrl-h* *netrw-edithide* {{{2 + +The "" map brings up a requestor allowing the user to change the +file/directory hiding list contained in |g:netrw_list_hide|. The hiding list +consists of one or more patterns delimited by commas. Files and/or +directories satisfying these patterns will either be hidden (ie. not shown) or +be the only ones displayed (see |netrw-a|). + +The "gh" mapping (see |netrw-gh|) quickly alternates between the usual +hiding list and the hiding of files or directories that begin with ".". + +As an example, > + let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+' +Effectively, this makes the effect of a |netrw-gh| command the initial setting. +What it means: + + \(^\|\s\s\) : if the line begins with the following, -or- + two consecutive spaces are encountered + \zs : start the hiding match now + \. : if it now begins with a dot + \S\+ : and is followed by one or more non-whitespace + characters + +Associated setting variables: |g:netrw_hide| |g:netrw_list_hide| +Associated topics: |netrw-a| |netrw-gh| |netrw-mh| + + *netrw-sort-sequence* +EDITING THE SORTING SEQUENCE *netrw-S* *netrw-sortsequence* {{{2 + +When "Sorted by" is name, one may specify priority via the sorting sequence +(g:netrw_sort_sequence). The sorting sequence typically prioritizes the +name-listing by suffix, although any pattern will do. Patterns are delimited +by commas. The default sorting sequence is (all one line): + +For Unix: > + '[\/]$,\ + '[\/]$,\.[a-np-z]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$, + \.swp$,\.bak$,\~$' +< +The lone * is where all filenames not covered by one of the other patterns +will end up. One may change the sorting sequence by modifying the +g:netrw_sort_sequence variable (either manually or in your <.vimrc>) or by +using the "S" map. + +Related topics: |netrw-s| |netrw-S| +Associated setting variables: |g:netrw_sort_sequence| |g:netrw_sort_options| + + +EXECUTING FILE UNDER CURSOR VIA SYSTEM() *netrw-X* {{{2 + +Pressing X while the cursor is atop an executable file will yield a prompt +using the filename asking for any arguments. Upon pressing a [return], netrw +will then call |system()| with that command and arguments. The result will be +displayed by |:echomsg|, and so |:messages| will repeat display of the result. +Ansi escape sequences will be stripped out. + +See |cmdline-window| for directions for more on how to edit the arguments. + + +FORCING TREATMENT AS A FILE OR DIRECTORY *netrw-gd* *netrw-gf* {{{2 + +Remote symbolic links (ie. those listed via ssh or ftp) are problematic +in that it is difficult to tell whether they link to a file or to a +directory. + +To force treatment as a file: use > + gf +< +To force treatment as a directory: use > + gd +< + +GOING UP *netrw--* {{{2 + +To go up a directory, press "-" or press the when atop the ../ directory +entry in the listing. + +Netrw will use the command in |g:netrw_list_cmd| to perform the directory +listing operation after changing HOSTNAME to the host specified by the +user-prpvided url. By default netrw provides the command as: > + + ssh HOSTNAME ls -FLa +< +where the HOSTNAME becomes the [user@]hostname as requested by the attempt to +read. Naturally, the user may override this command with whatever is +preferred. The NetList function which implements remote browsing +expects that directories will be flagged by a trailing slash. + + +HIDING FILES OR DIRECTORIES *netrw-a* *netrw-hiding* {{{2 + +Netrw's browsing facility allows one to use the hiding list in one of three +ways: ignore it, hide files which match, and show only those files which +match. + +If no files have been marked via |netrw-mf|: + +The "a" map allows the user to cycle through the three hiding modes. + +The |g:netrw_list_hide| variable holds a comma delimited list of patterns +based on regular expressions (ex. ^.*\.obj$,^\.) which specify the hiding list. +(also see |netrw-ctrl-h|) To set the hiding list, use the map. As an +example, to hide files which begin with a ".", one may use the map to +set the hiding list to '^\..*' (or one may put let g:netrw_list_hide= '^\..*' +in one's <.vimrc>). One may then use the "a" key to show all files, hide +matching files, or to show only the matching files. + + Example: \.[ch]$ + This hiding list command will hide/show all *.c and *.h files. + + Example: \.c$,\.h$ + This hiding list command will also hide/show all *.c and *.h + files. + +Don't forget to use the "a" map to select the mode (normal/hiding/show) you +want! + +If files have been marked using |netrw-mf|, then this command will: + + if showing all files or non-hidden files: + modify the g:netrw_list_hide list by appending the marked files to it + and showing only non-hidden files. + + else if showing hidden files only: + modify the g:netrw_list_hide list by removing the marked files from it + and showing only non-hidden files. + endif + + *netrw-gh* *netrw-hide* +As a quick shortcut, one may press > + gh +to toggle between hiding files which begin with a period (dot) and not hiding +them. + +Associated setting variables: |g:netrw_list_hide| |g:netrw_hide| +Associated topics: |netrw-a| |netrw-ctrl-h| |netrw-mh| + + *netrw-gitignore* +Netrw provides a helper function 'netrw_gitignore#Hide()' that, when used with +|g:netrw_list_hide| automatically hides all git-ignored files. + +'netrw_gitignore#Hide' searches for patterns in the following files: > + + './.gitignore' + './.git/info/exclude' + global gitignore file: `git config --global core.excludesfile` + system gitignore file: `git config --system core.excludesfile` +< +Files that do not exist, are ignored. +Git-ignore patterns are taken from existing files, and converted to patterns for +hiding files. For example, if you had '*.log' in your '.gitignore' file, it +would be converted to '.*\.log'. + +To use this function, simply assign its output to |g:netrw_list_hide| option. > + + Example: let g:netrw_list_hide= netrw_gitignore#Hide() + Git-ignored files are hidden in Netrw. + + Example: let g:netrw_list_hide= netrw_gitignore#Hide('my_gitignore_file') + Function can take additional files with git-ignore patterns. + + Example: let g:netrw_list_hide= netrw_gitignore#Hide() .. '.*\.swp$' + Combining 'netrw_gitignore#Hide' with custom patterns. +< + +IMPROVING BROWSING *netrw-listhack* *netrw-ssh-hack* {{{2 + +Especially with the remote directory browser, constantly entering the password +is tedious. + +For Linux/Unix systems, the book "Linux Server Hacks - 100 industrial strength +tips & tools" by Rob Flickenger (O'Reilly, ISBN 0-596-00461-3) gives a tip +for setting up no-password ssh and scp and discusses associated security +issues. It used to be available at http://hacks.oreilly.com/pub/h/66 , +but apparently that address is now being redirected to some "hackzine". +I'll attempt a summary based on that article and on a communication from +Ben Schmidt: + + 1. Generate a public/private key pair on the local machine + (ssh client): > + ssh-keygen -t rsa + (saving the file in ~/.ssh/id_rsa as prompted) +< + 2. Just hit the when asked for passphrase (twice) for no + passphrase. If you do use a passphrase, you will also need to use + ssh-agent so you only have to type the passphrase once per session. + If you don't use a passphrase, simply logging onto your local + computer or getting access to the keyfile in any way will suffice + to access any ssh servers which have that key authorized for login. + + 3. This creates two files: > + ~/.ssh/id_rsa + ~/.ssh/id_rsa.pub +< + 4. On the target machine (ssh server): > + cd + mkdir -p .ssh + chmod 0700 .ssh +< + 5. On your local machine (ssh client): (one line) > + ssh {serverhostname} + cat '>>' '~/.ssh/authorized_keys2' < ~/.ssh/id_rsa.pub +< + or, for OpenSSH, (one line) > + ssh {serverhostname} + cat '>>' '~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub +< +You can test it out with > + ssh {serverhostname} +and you should be log onto the server machine without further need to type +anything. + +If you decided to use a passphrase, do: > + ssh-agent $SHELL + ssh-add + ssh {serverhostname} +You will be prompted for your key passphrase when you use ssh-add, but not +subsequently when you use ssh. For use with vim, you can use > + ssh-agent vim +and, when next within vim, use > + :!ssh-add +Alternatively, you can apply ssh-agent to the terminal you're planning on +running vim in: > + ssh-agent xterm & +and do ssh-add whenever you need. + +For Windows, folks on the vim mailing list have mentioned that Pageant helps +with avoiding the constant need to enter the password. + +Kingston Fung wrote about another way to avoid constantly needing to enter +passwords: + + In order to avoid the need to type in the password for scp each time, you + provide a hack in the docs to set up a non password ssh account. I found a + better way to do that: I can use a regular ssh account which uses a + password to access the material without the need to key-in the password + each time. It's good for security and convenience. I tried ssh public key + authorization + ssh-agent, implementing this, and it works! + + + Ssh hints: + + Thomer Gil has provided a hint on how to speed up netrw+ssh: + http://thomer.com/howtos/netrw_ssh.html + + +LISTING BOOKMARKS AND HISTORY *netrw-qb* *netrw-listbookmark* {{{2 + +Pressing "qb" (query bookmarks) will list both the bookmarked directories and +directory traversal history. + +Related Topics: + |netrw-gb| how to return (go) to a bookmark + |netrw-mb| how to make a bookmark + |netrw-mB| how to delete bookmarks + |netrw-u| change to a predecessor directory via the history stack + |netrw-U| change to a successor directory via the history stack + +MAKING A NEW DIRECTORY *netrw-d* {{{2 + +With the "d" map one may make a new directory either remotely (which depends +on the global variable g:netrw_mkdir_cmd) or locally (which depends on the +global variable g:netrw_localmkdir). Netrw will issue a request for the new +directory's name. A bare at that point will abort the making of the +directory. Attempts to make a local directory that already exists (as either +a file or a directory) will be detected, reported on, and ignored. + +Related topics: |netrw-D| +Associated setting variables: |g:netrw_localmkdir| |g:netrw_mkdir_cmd| + |g:netrw_remote_mkdir| |netrw-%| + + +MAKING THE BROWSING DIRECTORY THE CURRENT DIRECTORY *netrw-cd* {{{2 + +By default, |g:netrw_keepdir| is 1. This setting means that the current +directory will not track the browsing directory. (done for backwards +compatibility with v6's file explorer). + +Setting g:netrw_keepdir to 0 tells netrw to make vim's current directory +track netrw's browsing directory. + +However, given the default setting for g:netrw_keepdir of 1 where netrw +maintains its own separate notion of the current directory, in order to make +the two directories the same, use the "cd" map (type cd). That map will +set Vim's notion of the current directory to netrw's current browsing +directory. + +|netrw-cd| : This map's name was changed from "c" to cd (see |netrw-cd|). + This change was done to allow for |netrw-cb| and |netrw-cB| maps. + +Associated setting variable: |g:netrw_keepdir| + +MARKING FILES *netrw-:MF* *netrw-mf* {{{2 + (also see |netrw-mr|) + +Netrw provides several ways to mark files: + + * One may mark files with the cursor atop a filename and + then pressing "mf". + + * With gvim, in addition one may mark files with + . (see |netrw-mouse|) + + * One may use the :MF command, which takes a list of + files (for local directories, the list may include + wildcards -- see |glob()|) > + + :MF *.c +< + (Note that :MF uses || to break the line + at spaces) + + * Mark files using the |argument-list| (|netrw-mA|) + + * Mark files based upon a |location-list| (|netrw-qL|) + + * Mark files based upon the quickfix list (|netrw-qF|) + (|quickfix-error-lists|) + +The following netrw maps make use of marked files: + + |netrw-a| Hide marked files/directories + |netrw-D| Delete marked files/directories + |netrw-ma| Move marked files' names to |arglist| + |netrw-mA| Move |arglist| filenames to marked file list + |netrw-mb| Append marked files to bookmarks + |netrw-mB| Delete marked files from bookmarks + |netrw-mc| Copy marked files to target + |netrw-md| Apply vimdiff to marked files + |netrw-me| Edit marked files + |netrw-mF| Unmark marked files + |netrw-mg| Apply vimgrep to marked files + |netrw-mm| Move marked files to target + |netrw-ms| Netrw will source marked files + |netrw-mt| Set target for |netrw-mm| and |netrw-mc| + |netrw-mT| Generate tags using marked files + |netrw-mv| Apply vim command to marked files + |netrw-mx| Apply shell command to marked files + |netrw-mX| Apply shell command to marked files, en bloc + |netrw-mz| Compress/Decompress marked files + |netrw-O| Obtain marked files + |netrw-R| Rename marked files + +One may unmark files one at a time the same way one marks them; ie. place +the cursor atop a marked file and press "mf". This process also works +with using gvim. One may unmark all files by pressing +"mu" (see |netrw-mu|). + +Marked files are highlighted using the "netrwMarkFile" highlighting group, +which by default is linked to "Identifier" (see Identifier under +|group-name|). You may change the highlighting group by putting something +like > + + highlight clear netrwMarkFile + hi link netrwMarkFile ..whatever.. +< +into $HOME/.vim/after/syntax/netrw.vim . + +If the mouse is enabled and works with your vim, you may use to +mark one or more files. You may mark multiple files by dragging the shifted +leftmouse. (see |netrw-mouse|) + + *markfilelist* *global_markfilelist* *local_markfilelist* +All marked files are entered onto the global marked file list; there is only +one such list. In addition, every netrw buffer also has its own buffer-local +marked file list; since netrw buffers are associated with specific +directories, this means that each directory has its own local marked file +list. The various commands which operate on marked files use one or the other +of the marked file lists. + +Known Problem: if one is using tree mode (|g:netrw_liststyle|) and several +directories have files with the same name, then marking such a file will +result in all such files being highlighted as if they were all marked. The +|markfilelist|, however, will only have the selected file in it. This problem +is unlikely to be fixed. + + +UNMARKING FILES *netrw-mF* {{{2 + (also see |netrw-mf|, |netrw-mu|) + +The "mF" command will unmark all files in the current buffer. One may also use +mf (|netrw-mf|) on a specific, already marked, file to unmark just that file. + +MARKING FILES BY LOCATION LIST *netrw-qL* {{{2 + (also see |netrw-mf|) + +One may convert |location-list|s into a marked file list using "qL". +You may then proceed with commands such as me (|netrw-me|) to edit them. + + +MARKING FILES BY QUICKFIX LIST *netrw-qF* {{{2 + (also see |netrw-mf|) + +One may convert |quickfix-error-lists| into a marked file list using "qF". +You may then proceed with commands such as me (|netrw-me|) to edit them. +Quickfix error lists are generated, for example, by calls to |:vimgrep|. + + +MARKING FILES BY REGULAR EXPRESSION *netrw-mr* {{{2 + (also see |netrw-mf|) + +One may also mark files by pressing "mr"; netrw will then issue a prompt, +"Enter regexp: ". You may then enter a shell-style regular expression such +as *.c$ (see |glob()|). For remote systems, glob() doesn't work -- so netrw +converts "*" into ".*" (see |regexp|) and marks files based on that. In the +future I may make it possible to use |regexp|s instead of glob()-style +expressions (yet-another-option). + +See |cmdline-window| for directions on more on how to edit the regular +expression. + + +MARKED FILES, ARBITRARY VIM COMMAND *netrw-mv* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the local marked-file list) + +The "mv" map causes netrw to execute an arbitrary vim command on each file on +the local marked file list, individually: + + * 1split + * sil! keepalt e file + * run vim command + * sil! keepalt wq! + +A prompt, "Enter vim command: ", will be issued to elicit the vim command you +wish used. See |cmdline-window| for directions for more on how to edit the +command. + + +MARKED FILES, ARBITRARY SHELL COMMAND *netrw-mx* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the local marked-file list) + +Upon activation of the "mx" map, netrw will query the user for some (external) +command to be applied to all marked files. All "%"s in the command will be +substituted with the name of each marked file in turn. If no "%"s are in the +command, then the command will be followed by a space and a marked filename. + +Example: + (mark files) + mx + Enter command: cat + + The result is a series of shell commands: + cat 'file1' + cat 'file2' + ... + + +MARKED FILES, ARBITRARY SHELL COMMAND, EN BLOC *netrw-mX* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked-file list) + +Upon activation of the 'mX' map, netrw will query the user for some (external) +command to be applied to all marked files on the global marked file list. The +"en bloc" means that one command will be executed on all the files at once: > + + command files + +This approach is useful, for example, to select files and make a tarball: > + + (mark files) + mX + Enter command: tar cf mynewtarball.tar +< +The command that will be run with this example: + + tar cf mynewtarball.tar 'file1' 'file2' ... + + +MARKED FILES: ARGUMENT LIST *netrw-ma* *netrw-mA* + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked-file list) + +Using ma, one moves filenames from the marked file list to the argument list. +Using mA, one moves filenames from the argument list to the marked file list. + +See Also: |netrw-cb| |netrw-cB| |netrw-qF| |argument-list| |:args| + + +MARKED FILES: BUFFER LIST *netrw-cb* *netrw-cB* + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked-file list) + +Using cb, one moves filenames from the marked file list to the buffer list. +Using cB, one copies filenames from the buffer list to the marked file list. + +See Also: |netrw-ma| |netrw-mA| |netrw-qF| |buffer-list| |:buffers| + + +MARKED FILES: COMPRESSION AND DECOMPRESSION *netrw-mz* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the local marked file list) + +If any marked files are compressed, then "mz" will decompress them. +If any marked files are decompressed, then "mz" will compress them +using the command specified by |g:netrw_compress|; by default, +that's "gzip". + +For decompression, netrw uses a |Dictionary| of suffices and their +associated decompressing utilities; see |g:netrw_decompress|. + +Remember that one can mark multiple files by regular expression +(see |netrw-mr|); this is particularly useful to facilitate compressing and +decompressing a large number of files. + +Associated setting variables: |g:netrw_compress| |g:netrw_decompress| + +MARKED FILES: COPYING *netrw-mc* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (Uses the global marked file list) + +Select a target directory with mt (|netrw-mt|). Then change directory, +select file(s) (see |netrw-mf|), and press "mc". The copy is done +from the current window (where one does the mf) to the target. + +If one does not have a target directory set with |netrw-mt|, then netrw +will query you for a directory to copy to. + +One may also copy directories and their contents (local only) to a target +directory. + +Associated setting variables: + |g:netrw_localcopycmd| |g:netrw_localcopycmdopt| + |g:netrw_localcopydircmd| |g:netrw_localcopydircmdopt| + |g:netrw_ssh_cmd| + +MARKED FILES: DIFF *netrw-md* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked file list) + +Use |vimdiff| to visualize difference between selected files (two or +three may be selected for this). Uses the global marked file list. + +MARKED FILES: EDITING *netrw-me* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked file list) + +The "me" command will place the marked files on the |arglist| and commence +editing them. One may return the to explorer window with |:Rexplore|. +(use |:n| and |:p| to edit next and previous files in the arglist) + +MARKED FILES: GREP *netrw-mg* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked file list) + +The "mg" command will apply |:vimgrep| to the marked files. +The command will ask for the requested pattern; one may then enter: > + + /pattern/[g][j] + ! /pattern/[g][j] + pattern +< +With /pattern/, editing will start with the first item on the |quickfix| list +that vimgrep sets up (see |:copen|, |:cnext|, |:cprevious|, |:cclose|). The |:vimgrep| +command is in use, so without 'g' each line is added to quickfix list only +once; with 'g' every match is included. + +With /pattern/j, "mg" will winnow the current marked file list to just those +marked files also possessing the specified pattern. Thus, one may use > + + mr ...file-pattern... + mg /pattern/j +< +to have a marked file list satisfying the file-pattern but also restricted to +files containing some desired pattern. + + +MARKED FILES: HIDING AND UNHIDING BY SUFFIX *netrw-mh* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the local marked file list) + +The "mh" command extracts the suffices of the marked files and toggles their +presence on the hiding list. Please note that marking the same suffix +this way multiple times will result in the suffix's presence being toggled +for each file (so an even quantity of marked files having the same suffix +is the same as not having bothered to select them at all). + +Related topics: |netrw-a| |g:netrw_list_hide| + +MARKED FILES: MOVING *netrw-mm* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked file list) + + WARNING: moving files is more dangerous than copying them. + A file being moved is first copied and then deleted; if the + copy operation fails and the delete succeeds, you will lose + the file. Either try things out with unimportant files + first or do the copy and then delete yourself using mc and D. + Use at your own risk! + +Select a target directory with mt (|netrw-mt|). Then change directory, +select file(s) (see |netrw-mf|), and press "mm". The move is done +from the current window (where one does the mf) to the target. + +Associated setting variable: |g:netrw_localmovecmd| |g:netrw_ssh_cmd| + +MARKED FILES: SOURCING *netrw-ms* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the local marked file list) + +With "ms", netrw will source the marked files (using vim's |:source| command) + + +MARKED FILES: SETTING THE TARGET DIRECTORY *netrw-mt* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + +Set the marked file copy/move-to target (see |netrw-mc| and |netrw-mm|): + + * If the cursor is atop a file name, then the netrw window's currently + displayed directory is used for the copy/move-to target. + + * Also, if the cursor is in the banner, then the netrw window's currently + displayed directory is used for the copy/move-to target. + Unless the target already is the current directory. In which case, + typing "mf" clears the target. + + * However, if the cursor is atop a directory name, then that directory is + used for the copy/move-to target + + * One may use the :MT [directory] command to set the target *netrw-:MT* + This command uses ||, so spaces in the directory name are + permitted without escaping. + + * With mouse-enabled vim or with gvim, one may select a target by using + + +There is only one copy/move-to target at a time in a vim session; ie. the +target is a script variable (see |s:var|) and is shared between all netrw +windows (in an instance of vim). + +When using menus and gvim, netrw provides a "Targets" entry which allows one +to pick a target from the list of bookmarks and history. + +Related topics: + Marking Files......................................|netrw-mf| + Marking Files by Regular Expression................|netrw-mr| + Marked Files: Target Directory Using Bookmarks.....|netrw-Tb| + Marked Files: Target Directory Using History.......|netrw-Th| + + +MARKED FILES: TAGGING *netrw-mT* {{{2 + (See |netrw-mf| and |netrw-mr| for how to mark files) + (uses the global marked file list) + +The "mT" mapping will apply the command in |g:netrw_ctags| (by default, it is +"ctags") to marked files. For remote browsing, in order to create a tags file +netrw will use ssh (see |g:netrw_ssh_cmd|), and so ssh must be available for +this to work on remote systems. For your local system, see |ctags| on how to +get a version. I myself use hdrtags, currently available at +http://www.drchip.org/astronaut/src/index.html , and have > + + let g:netrw_ctags= "hdrtag" +< +in my <.vimrc>. + +When a remote set of files are tagged, the resulting tags file is "obtained"; +ie. a copy is transferred to the local system's directory. The now local tags +file is then modified so that one may use it through the network. The +modification made concerns the names of the files in the tags; each filename is +preceded by the netrw-compatible URL used to obtain it. When one subsequently +uses one of the go to tag actions (|tags|), the URL will be used by netrw to +edit the desired file and go to the tag. + +Associated setting variables: |g:netrw_ctags| |g:netrw_ssh_cmd| + +MARKED FILES: TARGET DIRECTORY USING BOOKMARKS *netrw-Tb* {{{2 + +Sets the marked file copy/move-to target. + +The |netrw-qb| map will give you a list of bookmarks (and history). +One may choose one of the bookmarks to become your marked file +target by using [count]Tb (default count: 1). + +Related topics: + Copying files to target............................|netrw-mc| + Listing Bookmarks and History......................|netrw-qb| + Marked Files: Setting The Target Directory.........|netrw-mt| + Marked Files: Target Directory Using History.......|netrw-Th| + Marking Files......................................|netrw-mf| + Marking Files by Regular Expression................|netrw-mr| + Moving files to target.............................|netrw-mm| + + +MARKED FILES: TARGET DIRECTORY USING HISTORY *netrw-Th* {{{2 + +Sets the marked file copy/move-to target. + +The |netrw-qb| map will give you a list of history (and bookmarks). +One may choose one of the history entries to become your marked file +target by using [count]Th (default count: 0; ie. the current directory). + +Related topics: + Copying files to target............................|netrw-mc| + Listing Bookmarks and History......................|netrw-qb| + Marked Files: Setting The Target Directory.........|netrw-mt| + Marked Files: Target Directory Using Bookmarks.....|netrw-Tb| + Marking Files......................................|netrw-mf| + Marking Files by Regular Expression................|netrw-mr| + Moving files to target.............................|netrw-mm| + + +MARKED FILES: UNMARKING *netrw-mu* {{{2 + (See |netrw-mf|, |netrw-mF|) + +The "mu" mapping will unmark all currently marked files. This command differs +from "mF" as the latter only unmarks files in the current directory whereas +"mu" will unmark global and all buffer-local marked files. +(see |netrw-mF|) + + + *netrw-browser-settings* +NETRW BROWSER VARIABLES *netrw-browser-options* *netrw-browser-var* {{{2 + +(if you're interested in the netrw file transfer settings, see |netrw-options| + and |netrw-protocol|) + +The browser provides settings in the form of variables which +you may modify; by placing these settings in your <.vimrc>, you may customize +your browsing preferences. (see also: |netrw-settings|) +> + --- ----------- + Var Explanation + --- ----------- +< *g:netrw_altfile* some like |CTRL-^| to return to the last + edited file. Choose that by setting this + parameter to 1. + Others like |CTRL-^| to return to the + netrw browsing buffer. Choose that by setting + this parameter to 0. + default: =0 + + *g:netrw_alto* change from above splitting to below splitting + by setting this variable (see |netrw-o|) + default: =&sb (see 'sb') + + *g:netrw_altv* change from left splitting to right splitting + by setting this variable (see |netrw-v|) + default: =&spr (see 'spr') + + *g:netrw_banner* enable/suppress the banner + =0: suppress the banner + =1: banner is enabled (default) + + *g:netrw_bannerbackslash* if this variable exists and is not zero, the + banner will be displayed with backslashes + rather than forward slashes. + + *g:netrw_browse_split* when browsing, will open the file by: + =0: re-using the same window (default) + =1: horizontally splitting the window first + =2: vertically splitting the window first + =3: open file in new tab + =4: act like "P" (ie. open previous window) + Note that |g:netrw_preview| may be used + to get vertical splitting instead of + horizontal splitting. + =[servername,tab-number,window-number] + Given a |List| such as this, a remote server + named by the "servername" will be used for + editing. It will also use the specified tab + and window numbers to perform editing + (see |clientserver|, |netrw-ctrl-r|) + This option does not affect the production of + |:Lexplore| windows. + + Related topics: + |g:netrw_alto| |g:netrw_altv| + |netrw-C| |netrw-cr| + |netrw-ctrl-r| + + *g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME" + Windows: "cacls FILENAME /e /p PERM" + Used to change access permission for a file. + + *g:netrw_clipboard* =1 + By default, netrw will attempt to insure that + the clipboard's values will remain unchanged. + However, some users report that they have + speed problems with this; consequently, this + option, when set to zero, lets such users + prevent netrw from saving and restoring the + clipboard (the latter is done only as needed). + That means that if the clipboard is changed + (inadvertently) by normal netrw operation that + it will not be restored to its prior state. + + *g:netrw_compress* ="gzip" + Will compress marked files with this + command + + *g:Netrw_corehandler* Allows one to specify something additional + to do when handling files via netrw's + browser's "x" command. If present, + g:Netrw_corehandler specifies either one or + more function references (see |Funcref|). + (the capital g:Netrw... is required its + holding a function reference) + + + *g:netrw_ctags* ="ctags" + The default external program used to create + tags + + *g:netrw_cursor* = 2 (default) + This option controls the use of the + 'cursorline' (cul) and 'cursorcolumn' + (cuc) settings by netrw: + + Value Thin-Long-Tree Wide + =0 u-cul u-cuc u-cul u-cuc + =1 u-cul u-cuc cul u-cuc + =2 cul u-cuc cul u-cuc + =3 cul u-cuc cul cuc + =4 cul cuc cul cuc + =5 U-cul U-cuc U-cul U-cuc + =6 U-cul U-cuc cul U-cuc + =7 cul U-cuc cul U-cuc + =8 cul U-cuc cul cuc + + Where + u-cul : user's 'cursorline' initial setting used + u-cuc : user's 'cursorcolumn' initial setting used + U-cul : user's 'cursorline' current setting used + U-cuc : user's 'cursorcolumn' current setting used + cul : 'cursorline' will be locally set + cuc : 'cursorcolumn' will be locally set + + The "initial setting" means the values of + the 'cuc' and 'cul' settings in effect when + netrw last saw |g:netrw_cursor| >= 5 or when + netrw was initially run. + + *g:netrw_decompress* = { '.lz4': 'lz4 -d', + '.lzo': 'lzop -d', + '.lz': 'lzip -dk', + '.7z': '7za x', + '.001': '7za x', + '.tar.bz': 'tar -xvjf', + '.tar.bz2': 'tar -xvjf', + '.tbz': 'tar -xvjf', + '.tbz2': 'tar -xvjf', + '.tar.gz': 'tar -xvzf', + '.tgz': 'tar -xvzf', + '.tar.zst': 'tar --use-compress-program=unzstd -xvf', + '.tzst': 'tar --use-compress-program=unzstd -xvf', + '.tar': 'tar -xvf', + '.zip': 'unzip', + '.bz': 'bunzip2 -k', + '.bz2': 'bunzip2 -k', + '.gz': 'gunzip -k', + '.lzma': 'unlzma -T0 -k', + '.xz': 'unxz -T0 -k', + '.zst': 'zstd -T0 -d', + '.Z': 'uncompress -k', + '.rar': 'unrar x -ad', + '.tar.lzma': 'tar --lzma -xvf', + '.tlz': 'tar --lzma -xvf', + '.tar.xz': 'tar -xvJf', + '.txz': 'tar -xvJf'} + + A dictionary mapping suffices to + decompression programs. + + *g:netrw_dirhistmax* =10: controls maximum quantity of past + history. May be zero to suppress + history. + (related: |netrw-qb| |netrw-u| |netrw-U|) + + *g:netrw_dynamic_maxfilenamelen* =32: enables dynamic determination of + |g:netrw_maxfilenamelen|, which affects + local file long listing. + + *g:netrw_fastbrowse* =0: slow speed directory browsing; + never re-uses directory listings; + always obtains directory listings. + =1: medium speed directory browsing; + re-use directory listings only + when remote directory browsing. + (default value) + =2: fast directory browsing; + only obtains directory listings when the + directory hasn't been seen before + (or |netrw-ctrl-l| is used). + + Fast browsing retains old directory listing + buffers so that they don't need to be + re-acquired. This feature is especially + important for remote browsing. However, if + a file is introduced or deleted into or from + such directories, the old directory buffer + becomes out-of-date. One may always refresh + such a directory listing with |netrw-ctrl-l|. + This option gives the user the choice of + trading off accuracy (ie. up-to-date listing) + versus speed. + + *g:netrw_ffkeep* (default: doesn't exist) + If this variable exists and is zero, then + netrw will not do a save and restore for + 'fileformat'. + + *g:netrw_fname_escape* =' ?&;%' + Used on filenames before remote reading/writing + + *g:netrw_ftp_browse_reject* ftp can produce a number of errors and warnings + that can show up as "directories" and "files" + in the listing. This pattern is used to + remove such embedded messages. By default its + value is: + '^total\s\+\d\+$\| + ^Trying\s\+\d\+.*$\| + ^KERBEROS_V\d rejected\| + ^Security extensions not\| + No such file\| + : connect to address [0-9a-fA-F:]* + : No route to host$' + + *g:netrw_ftp_list_cmd* options for passing along to ftp for directory + listing. Defaults: + unix or g:netrw_cygwin set: : "ls -lF" + otherwise "dir" + + + *g:netrw_ftp_sizelist_cmd* options for passing along to ftp for directory + listing, sorted by size of file. + Defaults: + unix or g:netrw_cygwin set: : "ls -slF" + otherwise "dir" + + *g:netrw_ftp_timelist_cmd* options for passing along to ftp for directory + listing, sorted by time of last modification. + Defaults: + unix or g:netrw_cygwin set: : "ls -tlF" + otherwise "dir" + + *g:netrw_glob_escape* ='[]*?`{~$' (unix) + ='[]*?`{$' (windows + These characters in directory names are + escaped before applying glob() + + *g:netrw_hide* Controlled by the "a" map (see |netrw-a|) + =0 : show all + =1 : show not-hidden files + =2 : show hidden files only + default: =1 + + *g:netrw_home* The home directory for where bookmarks and + history are saved (as .netrwbook and + .netrwhist). + Netrw uses |expand()|on the string. + default: the first directory on the + 'runtimepath' + + *g:netrw_keepdir* =1 (default) keep current directory immune from + the browsing directory. + =0 keep the current directory the same as the + browsing directory. + The current browsing directory is contained in + b:netrw_curdir (also see |netrw-cd|) + + *g:netrw_keepj* ="keepj" (default) netrw attempts to keep the + |:jumps| table unaffected. + ="" netrw will not use |:keepjumps| with + exceptions only for the + saving/restoration of position. + + *g:netrw_list_cmd* command for listing remote directories + default: (if ssh is executable) + "ssh HOSTNAME ls -FLa" + + *g:netrw_list_cmd_options* If this variable exists, then its contents are + appended to the g:netrw_list_cmd. For + example, use "2>/dev/null" to get rid of banner + messages on unix systems. + + + *g:netrw_liststyle* Set the default listing style: + = 0: thin listing (one file per line) + = 1: long listing (one file per line with time + stamp information and file size) + = 2: wide listing (multiple files in columns) + = 3: tree style listing + + *g:netrw_list_hide* comma-separated pattern list for hiding files + Patterns are regular expressions (see |regexp|) + There's some special support for git-ignore + files: you may add the output from the helper + function 'netrw_gitignore#Hide() automatically + hiding all gitignored files. + For more details see |netrw-gitignore|. + + Examples: + let g:netrw_list_hide= '.*\.swp$' + let g:netrw_list_hide= netrw_gitignore#Hide() .. '.*\.swp$' + default: "" + + *g:netrw_localcopycmd* ="cp" Linux/Unix/MacOS/Cygwin + =expand("$COMSPEC") Windows + Copies marked files (|netrw-mf|) to target + directory (|netrw-mt|, |netrw-mc|) + + *g:netrw_localcopycmdopt* ='' Linux/Unix/MacOS/Cygwin + =' \c copy' Windows + Options for the |g:netrw_localcopycmd| + + *g:netrw_localcopydircmd* ="cp" Linux/Unix/MacOS/Cygwin + =expand("$COMSPEC") Windows + Copies directories to target directory. + (|netrw-mc|, |netrw-mt|) + + *g:netrw_localcopydircmdopt* =" -R" Linux/Unix/MacOS/Cygwin + =" /c xcopy /e /c /h/ /i /k" Windows + Options for |g:netrw_localcopydircmd| + + *g:netrw_localmkdir* ="mkdir" Linux/Unix/MacOS/Cygwin + =expand("$COMSPEC") Windows + command for making a local directory + + *g:netrw_localmkdiropt* ="" Linux/Unix/MacOS/Cygwin + =" /c mkdir" Windows + Options for |g:netrw_localmkdir| + + *g:netrw_localmovecmd* ="mv" Linux/Unix/MacOS/Cygwin + =expand("$COMSPEC") Windows + Moves marked files (|netrw-mf|) to target + directory (|netrw-mt|, |netrw-mm|) + + *g:netrw_localmovecmdopt* ="" Linux/Unix/MacOS/Cygwin + =" /c move" Windows + Options for |g:netrw_localmovecmd| + + *g:netrw_maxfilenamelen* =32 by default, selected so as to make long + listings fit on 80 column displays. + If your screen is wider, and you have file + or directory names longer than 32 bytes, + you may set this option to keep listings + columnar. + + *g:netrw_mkdir_cmd* command for making a remote directory + via ssh (also see |g:netrw_remote_mkdir|) + default: "ssh USEPORT HOSTNAME mkdir" + + *g:netrw_mousemaps* =1 (default) enables mouse buttons while + browsing to: + leftmouse : open file/directory + shift-leftmouse : mark file + middlemouse : same as P + rightmouse : remove file/directory + =0: disables mouse maps + + *g:netrw_sizestyle* not defined: actual bytes (default) + ="b" : actual bytes (default) + ="h" : human-readable (ex. 5k, 4m, 3g) + uses 1000 base + ="H" : human-readable (ex. 5K, 4M, 3G) + uses 1024 base + The long listing (|netrw-i|) and query-file + maps (|netrw-qf|) will display file size + using the specified style. + + *g:netrw_usetab* if this variable exists and is non-zero, then + the map supporting shrinking/expanding a + Lexplore or netrw window will be enabled. + (see |netrw-c-tab|) + + *g:netrw_remote_mkdir* command for making a remote directory + via ftp (also see |g:netrw_mkdir_cmd|) + default: "mkdir" + + *g:netrw_retmap* if it exists and is set to one, then: + * if in a netrw-selected file, AND + * no normal-mode <2-leftmouse> mapping exists, + then the <2-leftmouse> will be mapped for easy + return to the netrw browser window. + example: click once to select and open a file, + double-click to return. + + Note that one may instead choose to: + * let g:netrw_retmap= 1, AND + * nmap YourChoice NetrwReturn + and have another mapping instead of + <2-leftmouse> to invoke the return. + + You may also use the |:Rexplore| command to do + the same thing. + + default: =0 + + *g:netrw_rm_cmd* command for removing remote files + default: "ssh USEPORT HOSTNAME rm" + + *g:netrw_rmdir_cmd* command for removing remote directories + default: "ssh USEPORT HOSTNAME rmdir" + + *g:netrw_rmf_cmd* command for removing remote softlinks + default: "ssh USEPORT HOSTNAME rm -f" + + *g:netrw_servername* use this variable to provide a name for + |netrw-ctrl-r| to use for its server. + default: "NETRWSERVER" + + *g:netrw_sort_by* sort by "name", "time", "size", or + "exten". + default: "name" + + *g:netrw_sort_direction* sorting direction: "normal" or "reverse" + default: "normal" + + *g:netrw_sort_options* sorting is done using |:sort|; this + variable's value is appended to the + sort command. Thus one may ignore case, + for example, with the following in your + .vimrc: > + let g:netrw_sort_options="i" +< default: "" + + *g:netrw_sort_sequence* when sorting by name, first sort by the + comma-separated pattern sequence. Note that + any filigree added to indicate filetypes + should be accounted for in your pattern. + default: '[\/]$,*,\.bak$,\.o$,\.h$, + \.info$,\.swp$,\.obj$' + + *g:netrw_special_syntax* If true, then certain files will be shown + using special syntax in the browser: + + netrwBak : *.bak + netrwCompress: *.gz *.bz2 *.Z *.zip + netrwCoreDump: core.\d\+ + netrwData : *.dat + netrwDoc : *.doc,*.txt,*.pdf, + *.pdf,*.docx + netrwHdr : *.h + netrwLex : *.l *.lex + netrwLib : *.a *.so *.lib *.dll + netrwMakefile: [mM]akefile *.mak + netrwObj : *.o *.obj + netrwPix : *.bmp,*.fit,*.fits,*.gif, + *.jpg,*.jpeg,*.pcx,*.ppc + *.pgm,*.png,*.psd,*.rgb + *.tif,*.xbm,*.xcf + netrwTags : tags ANmenu ANtags + netrwTilde : * + netrwTmp : tmp* *tmp + netrwYacc : *.y + + In addition, those groups mentioned in + 'suffixes' are also added to the special + file highlighting group. + These syntax highlighting groups are linked + to netrwGray or Folded by default + (see |hl-Folded|), but one may put lines like > + hi link netrwCompress Visual +< into one's <.vimrc> to use one's own + preferences. Alternatively, one may + put such specifications into > + .vim/after/syntax/netrw.vim. +< The netrwGray highlighting is set up by + netrw when > + * netrwGray has not been previously + defined + * the gui is running +< As an example, I myself use a dark-background + colorscheme with the following in + .vim/after/syntax/netrw.vim: > + + hi netrwCompress term=NONE cterm=NONE gui=NONE ctermfg=10 guifg=green ctermbg=0 guibg=black + hi netrwData term=NONE cterm=NONE gui=NONE ctermfg=9 guifg=blue ctermbg=0 guibg=black + hi netrwHdr term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 + hi netrwLex term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 + hi netrwYacc term=NONE cterm=NONE,italic gui=NONE guifg=SeaGreen1 + hi netrwLib term=NONE cterm=NONE gui=NONE ctermfg=14 guifg=yellow + hi netrwObj term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red + hi netrwTilde term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red + hi netrwTmp term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red + hi netrwTags term=NONE cterm=NONE gui=NONE ctermfg=12 guifg=red + hi netrwDoc term=NONE cterm=NONE gui=NONE ctermfg=220 ctermbg=27 guifg=yellow2 guibg=Blue3 + hi netrwSymLink term=NONE cterm=NONE gui=NONE ctermfg=220 ctermbg=27 guifg=grey60 +< + *g:netrw_ssh_browse_reject* ssh can sometimes produce unwanted lines, + messages, banners, and whatnot that one doesn't + want masquerading as "directories" and "files". + Use this pattern to remove such embedded + messages. By default its value is: + '^total\s\+\d\+$' + + *g:netrw_ssh_cmd* One may specify an executable command + to use instead of ssh for remote actions + such as listing, file removal, etc. + default: ssh + + *g:netrw_tmpfile_escape* =' &;' + escape() is applied to all temporary files + to escape these characters. + + *g:netrw_timefmt* specify format string to vim's strftime(). + The default, "%c", is "the preferred date + and time representation for the current + locale" according to my manpage entry for + strftime(); however, not all are satisfied + with it. Some alternatives: + "%a %d %b %Y %T", + " %a %Y-%m-%d %I-%M-%S %p" + default: "%c" + + *g:netrw_use_noswf* netrw normally avoids writing swapfiles + for browser buffers. However, under some + systems this apparently is causing nasty + ml_get errors to appear; if you're getting + ml_get errors, try putting + let g:netrw_use_noswf= 0 + in your .vimrc. + default: 1 + + *g:netrw_winsize* specify initial size of new windows made with + "o" (see |netrw-o|), "v" (see |netrw-v|), + |:Hexplore| or |:Vexplore|. The g:netrw_winsize + is an integer describing the percentage of the + current netrw buffer's window to be used for + the new window. + If g:netrw_winsize is less than zero, then + the absolute value of g:netrw_winsize will be + used to specify the quantity of lines or + columns for the new window. + If g:netrw_winsize is zero, then a normal + split will be made (ie. 'equalalways' will + take effect, for example). + default: 50 (for 50%) + + *g:netrw_wiw* =1 specifies the minimum window width to use + when shrinking a netrw/Lexplore window + (see |netrw-c-tab|). + + *g:netrw_xstrlen* Controls how netrw computes string lengths, + including multi-byte characters' string + length. (thanks to N Weibull, T Mechelynck) + =0: uses Vim's built-in strlen() + =1: number of codepoints (Latin a + combining + circumflex is two codepoints) (DEFAULT) + =2: number of spacing codepoints (Latin a + + combining circumflex is one spacing + codepoint; a hard tab is one; wide and + narrow CJK are one each; etc.) + =3: virtual length (counting tabs as anything + between 1 and 'tabstop', wide CJK as 2 + rather than 1, Arabic alif as zero when + immediately preceded by lam, one + otherwise, etc) + + *g:NetrwTopLvlMenu* This variable specifies the top level + menu name; by default, it's "Netrw.". If + you wish to change this, do so in your + .vimrc. + +NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible* {{{2 + +Netrw has been designed to handle user options by saving them, setting the +options to something that's compatible with netrw's needs, and then restoring +them. However, the autochdir option: > + :set acd +is problematic. Autochdir sets the current directory to that containing the +file you edit; this apparently also applies to directories. In other words, +autochdir sets the current directory to that containing the "file" (even if +that "file" is itself a directory). + + +============================================================================== +OBTAINING A FILE *netrw-obtain* *netrw-O* {{{2 + +If there are no marked files: + + When browsing a remote directory, one may obtain a file under the cursor + (ie. get a copy on your local machine, but not edit it) by pressing the O + key. + +If there are marked files: + + The marked files will be obtained (ie. a copy will be transferred to your + local machine, but not set up for editing). + +Only ftp and scp are supported for this operation (but since these two are +available for browsing, that shouldn't be a problem). The status bar will +then show, on its right hand side, a message like "Obtaining filename". The +statusline will be restored after the transfer is complete. + +Netrw can also "obtain" a file using the local browser. Netrw's display +of a directory is not necessarily the same as Vim's "current directory", +unless |g:netrw_keepdir| is set to 0 in the user's <.vimrc>. One may select +a file using the local browser (by putting the cursor on it) and pressing +"O" will then "obtain" the file; ie. copy it to Vim's current directory. + +Related topics: + * To see what the current directory is, use |:pwd| + * To make the currently browsed directory the current directory, see + |netrw-cd| + * To automatically make the currently browsed directory the current + directory, see |g:netrw_keepdir|. + + *netrw-newfile* *netrw-createfile* +OPEN A NEW FILE IN NETRW'S CURRENT DIRECTORY *netrw-%* {{{2 + +To open a new file in netrw's current directory, press "%". This map +will query the user for a new filename; an empty file by that name will +be placed in the netrw's current directory (ie. b:netrw_curdir). + +If Lexplore (|netrw-:Lexplore|) is in use, the new file will be generated +in the |g:netrw_chgwin| window. + +Related topics: |netrw-d| + + +PREVIEW WINDOW *netrw-p* *netrw-preview* {{{2 + +One may use a preview window by using the "p" key when the cursor is atop the +desired filename to be previewed. The display will then split to show both +the browser (where the cursor will remain) and the file (see |:pedit|). By +default, the split will be taken horizontally; one may use vertical splitting +if one has set |g:netrw_preview| first. + +An interesting set of netrw settings is: > + + let g:netrw_preview = 1 + let g:netrw_liststyle = 3 + let g:netrw_winsize = 30 + +These will: + + 1. Make vertical splitting the default for previewing files + 2. Make the default listing style "tree" + 3. When a vertical preview window is opened, the directory listing + will use only 30% of the columns available; the rest of the window + is used for the preview window. + + Related: if you like this idea, you may also find :Lexplore + (|netrw-:Lexplore|) or |g:netrw_chgwin| of interest + +Also see: |g:netrw_chgwin| |netrw-P| 'previewwindow' |CTRL-W_z| |:pclose| + + +PREVIOUS WINDOW *netrw-P* *netrw-prvwin* {{{2 + +To edit a file or directory under the cursor in the previously used (last +accessed) window (see :he |CTRL-W_p|), press a "P". If there's only one +window, then the one window will be horizontally split (by default). + +If there's more than one window, the previous window will be re-used on +the selected file/directory. If the previous window's associated buffer +has been modified, and there's only one window with that buffer, then +the user will be asked if s/he wishes to save the buffer first (yes, +no, or cancel). + +Related Actions |netrw-cr| |netrw-o| |netrw-t| |netrw-v| +Associated setting variables: + |g:netrw_alto| control above/below splitting + |g:netrw_altv| control right/left splitting + |g:netrw_preview| control horizontal vs vertical splitting + |g:netrw_winsize| control initial sizing + +Also see: |g:netrw_chgwin| |netrw-p| + + +REFRESHING THE LISTING *netrw-refresh* *netrw-ctrl-l* *netrw-ctrl_l* {{{2 + +To refresh either a local or remote directory listing, press ctrl-l () or +hit the when atop the ./ directory entry in the listing. One may also +refresh a local directory by using ":e .". + + +REVERSING SORTING ORDER *netrw-r* *netrw-reverse* {{{2 + +One may toggle between normal and reverse sorting order by pressing the +"r" key. + +Related topics: |netrw-s| +Associated setting variable: |g:netrw_sort_direction| + + +RENAMING FILES OR DIRECTORIES *netrw-move* *netrw-rename* *netrw-R* {{{2 + +If there are no marked files: (see |netrw-mf|) + + Renaming files and directories involves moving the cursor to the + file/directory to be moved (renamed) and pressing "R". You will then be + queried for what you want the file/directory to be renamed to. You may + select a range of lines with the "V" command (visual selection), and then + press "R"; you will be queried for each file as to what you want it + renamed to. + +If there are marked files: (see |netrw-mf|) + + Marked files will be renamed (moved). You will be queried as above in + order to specify where you want the file/directory to be moved. + + If you answer a renaming query with a "s/frompattern/topattern/", then + subsequent files on the marked file list will be renamed by taking each + name, applying that substitute, and renaming each file to the result. + As an example : > + + mr [query: reply with *.c] + R [query: reply with s/^\(.*\)\.c$/\1.cpp/] +< + This example will mark all *.c files and then rename them to *.cpp + files. Netrw will protect you from overwriting local files without + confirmation, but not remote ones. + + The ctrl-X character has special meaning for renaming files: > + + : a single ctrl-x tells netrw to ignore the portion of the response + lying between the last '/' and the ctrl-x. + + : a pair of contiguous ctrl-x's tells netrw to ignore any + portion of the string preceding the double ctrl-x's. +< + WARNING:~ + + Note that moving files is a dangerous operation; copies are safer. That's + because a "move" for remote files is actually a copy + delete -- and if + the copy fails and the delete succeeds you may lose the file. + Use at your own risk. + +The *g:netrw_rename_cmd* variable is used to implement remote renaming. By +default its value is: > + + ssh HOSTNAME mv +< +One may rename a block of files and directories by selecting them with +V (|linewise-visual|) when using thin style. + +See |cmdline-editing| for more on how to edit the command line; in particular, +you'll find (initiates cmdline window editing) and (uses the +command line under the cursor) useful in conjunction with the R command. + + +SELECTING SORTING STYLE *netrw-s* *netrw-sort* {{{2 + +One may select the sorting style by name, time, or (file) size. The "s" map +allows one to circulate amongst the three choices; the directory listing will +automatically be refreshed to reflect the selected style. + +Related topics: |netrw-r| |netrw-S| +Associated setting variables: |g:netrw_sort_by| |g:netrw_sort_sequence| + + +SETTING EDITING WINDOW *netrw-editwindow* *netrw-C* *netrw-:NetrwC* {{{2 + +One may select a netrw window for editing with the "C" mapping, using the +:NetrwC [win#] command, or by setting |g:netrw_chgwin| to the selected window +number. Subsequent selection of a file to edit (|netrw-cr|) will use that +window. + + * C : by itself, will select the current window holding a netrw buffer + for subsequent editing via |netrw-cr|. The C mapping is only available + while in netrw buffers. + + * [count]C : the count will be used as the window number to be used + for subsequent editing via |netrw-cr|. + + * :NetrwC will set |g:netrw_chgwin| to the current window + + * :NetrwC win# will set |g:netrw_chgwin| to the specified window + number + +Using > + let g:netrw_chgwin= -1 +will restore the default editing behavior +(ie. subsequent editing will use the current window). + +Related topics: |netrw-cr| |g:netrw_browse_split| +Associated setting variables: |g:netrw_chgwin| + + +SHRINKING OR EXPANDING A NETRW OR LEXPLORE WINDOW *netrw-c-tab* {{{2 + +The key will toggle a netrw or |:Lexplore| window's width, +but only if |g:netrw_usetab| exists and is non-zero (and, of course, +only if your terminal supports differentiating from a plain +). + + * If the current window is a netrw window, toggle its width + (between |g:netrw_wiw| and its original width) + + * Else if there is a |:Lexplore| window in the current tab, toggle + its width + + * Else bring up a |:Lexplore| window + +If |g:netrw_usetab| exists and is zero, or if there is a pre-existing mapping +for , then the will not be mapped. One may map something other +than a , too: (but you'll still need to have had |g:netrw_usetab| set). > + + nmap (whatever) NetrwShrink +< +Related topics: |:Lexplore| +Associated setting variable: |g:netrw_usetab| + + +USER SPECIFIED MAPS *netrw-usermaps* {{{1 + +One may make customized user maps. Specify a variable, |g:Netrw_UserMaps|, +to hold a |List| of lists of keymap strings and function names: > + + [["keymap-sequence","ExampleUserMapFunc"],...] +< +When netrw is setting up maps for a netrw buffer, if |g:Netrw_UserMaps| +exists, then the internal function netrw#UserMaps(islocal) is called. +This function goes through all the entries in the |g:Netrw_UserMaps| list: + + * sets up maps: > + nno KEYMAP-SEQUENCE + :call s:UserMaps(islocal,"ExampleUserMapFunc") +< * refreshes if result from that function call is the string + "refresh" + * if the result string is not "", then that string will be + executed (:exe result) + * if the result is a List, then the above two actions on results + will be taken for every string in the result List + +The user function is passed one argument; it resembles > + + fun! ExampleUserMapFunc(islocal) +< +where a:islocal is 1 if its a local-directory system call or 0 when +remote-directory system call. + + *netrw-call* *netrw-expose* *netrw-modify* +Use netrw#Expose("varname") to access netrw-internal (script-local) + variables. +Use netrw#Modify("varname",newvalue) to change netrw-internal variables. +Use netrw#Call("funcname"[,args]) to call a netrw-internal function with + specified arguments. + +Example: Get a copy of netrw's marked file list: > + + let netrwmarkfilelist= netrw#Expose("netrwmarkfilelist") +< +Example: Modify the value of netrw's marked file list: > + + call netrw#Modify("netrwmarkfilelist",[]) +< +Example: Clear netrw's marked file list via a mapping on gu > + " ExampleUserMap: {{{2 + fun! ExampleUserMap(islocal) + call netrw#Modify("netrwmarkfilelist",[]) + call netrw#Modify('netrwmarkfilemtch_{bufnr("%")}',"") + let retval= ["refresh"] + return retval + endfun + let g:Netrw_UserMaps= [["gu","ExampleUserMap"]] +< + +10. Problems and Fixes *netrw-problems* {{{1 + + (This section is likely to grow as I get feedback) + *netrw-p1* + P1. I use Windows, and my network browsing with ftp doesn't sort by {{{2 + time or size! -or- The remote system is a Windows server; why + don't I get sorts by time or size? + + Windows' ftp has a minimal support for ls (ie. it doesn't + accept sorting options). It doesn't support the -F which + gives an explanatory character (ABC/ for "ABC is a directory"). + Netrw then uses "dir" to get both its thin and long listings. + If you think your ftp does support a full-up ls, put the + following into your <.vimrc>: > + + let g:netrw_ftp_list_cmd = "ls -lF" + let g:netrw_ftp_timelist_cmd= "ls -tlF" + let g:netrw_ftp_sizelist_cmd= "ls -slF" +< + Alternatively, if you have cygwin on your Windows box, put + into your <.vimrc>: > + + let g:netrw_cygwin= 1 +< + This problem also occurs when the remote system is Windows. + In this situation, the various g:netrw_ftp_[time|size]list_cmds + are as shown above, but the remote system will not correctly + modify its listing behavior. + + + *netrw-p2* + P2. I tried rcp://user@host/ (or protocol other than ftp) and netrw {{{2 + used ssh! That wasn't what I asked for... + + Netrw has two methods for browsing remote directories: ssh + and ftp. Unless you specify ftp specifically, ssh is used. + When it comes time to do download a file (not just a directory + listing), netrw will use the given protocol to do so. + + *netrw-p3* + P3. I would like long listings to be the default. {{{2 + + Put the following statement into your |.vimrc|: > + + let g:netrw_liststyle= 1 +< + Check out |netrw-browser-var| for more customizations that + you can set. + + *netrw-p4* + P4. My times come up oddly in local browsing {{{2 + + Does your system's strftime() accept the "%c" to yield dates + such as "Sun Apr 27 11:49:23 1997"? If not, do a + "man strftime" and find out what option should be used. Then + put it into your |.vimrc|: > + + let g:netrw_timefmt= "%X" (where X is the option) +< + *netrw-p5* + P5. I want my current directory to track my browsing. {{{2 + How do I do that? + + Put the following line in your |.vimrc|: +> + let g:netrw_keepdir= 0 +< + *netrw-p6* + P6. I use Chinese (or other non-ascii) characters in my filenames, {{{2 + and netrw (Explore, Sexplore, Hexplore, etc) doesn't display them! + + (taken from an answer provided by Wu Yongwei on the vim + mailing list) + I now see the problem. Your code page is not 936, right? Vim + seems only able to open files with names that are valid in the + current code page, as are many other applications that do not + use the Unicode version of Windows APIs. This is an OS-related + issue. You should not have such problems when the system + locale uses UTF-8, such as modern Linux distros. + + (...it is one more reason to recommend that people use utf-8!) + + *netrw-p7* + P7. I'm getting "ssh is not executable on your system" -- what do I {{{2 + do? + + (Dudley Fox) Most people I know use putty for windows ssh. It + is a free ssh/telnet application. You can read more about it + here: + + http://www.chiark.greenend.org.uk/~sgtatham/putty/ Also: + + (Marlin Unruh) This program also works for me. It's a single + executable, so he/she can copy it into the Windows\System32 + folder and create a shortcut to it. + + (Dudley Fox) You might also wish to consider plink, as it + sounds most similar to what you are looking for. plink is an + application in the putty suite. + + http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink + + (Vissale Neang) Maybe you can try OpenSSH for windows, which + can be obtained from: + + http://sshwindows.sourceforge.net/ + + It doesn't need the full Cygwin package. + + (Antoine Mechelynck) For individual Unix-like programs needed + for work in a native-Windows environment, I recommend getting + them from the GnuWin32 project on sourceforge if it has them: + + http://gnuwin32.sourceforge.net/ + + Unlike Cygwin, which sets up a Unix-like virtual machine on + top of Windows, GnuWin32 is a rewrite of Unix utilities with + Windows system calls, and its programs works quite well in the + cmd.exe "Dos box". + + (dave) Download WinSCP and use that to connect to the server. + In Preferences > Editors, set gvim as your editor: + + - Click "Add..." + - Set External Editor (adjust path as needed, include + the quotes and !.! at the end): + "c:\Program Files\Vim\vim82\gvim.exe" !.! + - Check that the filetype in the box below is + {asterisk}.{asterisk} (all files), or whatever types + you want (cec: change {asterisk} to * ; I had to + write it that way because otherwise the helptags + system thinks it's a tag) + - Make sure it's at the top of the listbox (click it, + then click "Up" if it's not) + If using the Norton Commander style, you just have to hit + to edit a file in a local copy of gvim. + + (Vit Gottwald) How to generate public/private key and save + public key it on server: > + http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter8.html#pubkey-gettingready + (8.3 Getting ready for public key authentication) +< + How to use a private key with 'pscp': > + + http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter5.html + (5.2.4 Using public key authentication with PSCP) +< + (Ben Schmidt) I find the ssh included with cwRsync is + brilliant, and install cwRsync or cwRsyncServer on most + Windows systems I come across these days. I guess COPSSH, + packed by the same person, is probably even better for use as + just ssh on Windows, and probably includes sftp, etc. which I + suspect the cwRsync doesn't, though it might + + (cec) To make proper use of these suggestions above, you will + need to modify the following user-settable variables in your + .vimrc: + + |g:netrw_ssh_cmd| |g:netrw_list_cmd| |g:netrw_mkdir_cmd| + |g:netrw_rm_cmd| |g:netrw_rmdir_cmd| |g:netrw_rmf_cmd| + + The first one (|g:netrw_ssh_cmd|) is the most important; most + of the others will use the string in g:netrw_ssh_cmd by + default. + + *netrw-p8* *netrw-ml_get* + P8. I'm browsing, changing directory, and bang! ml_get errors {{{2 + appear and I have to kill vim. Any way around this? + + Normally netrw attempts to avoid writing swapfiles for + its temporary directory buffers. However, on some systems + this attempt appears to be causing ml_get errors to + appear. Please try setting |g:netrw_use_noswf| to 0 + in your <.vimrc>: > + let g:netrw_use_noswf= 0 +< + *netrw-p9* + P9. I'm being pestered with "[something] is a directory" and {{{2 + "Press ENTER or type command to continue" prompts... + + The "[something] is a directory" prompt is issued by Vim, + not by netrw, and there appears to be no way to work around + it. Coupled with the default cmdheight of 1, this message + causes the "Press ENTER..." prompt. So: read |hit-enter|; + I also suggest that you set your 'cmdheight' to 2 (or more) in + your <.vimrc> file. + + *netrw-p10* + P10. I want to have two windows; a thin one on the left and my {{{2 + editing window on the right. How may I accomplish this? + + You probably want netrw running as in a side window. If so, you + will likely find that ":[N]Lexplore" does what you want. The + optional "[N]" allows you to select the quantity of columns you + wish the |:Lexplore|r window to start with (see |g:netrw_winsize| + for how this parameter works). + + Previous solution: + + * Put the following line in your <.vimrc>: + let g:netrw_altv = 1 + * Edit the current directory: :e . + * Select some file, press v + * Resize the windows as you wish (see |CTRL-W_<| and + |CTRL-W_>|). If you're using gvim, you can drag + the separating bar with your mouse. + * When you want a new file, use ctrl-w h to go back to the + netrw browser, select a file, then press P (see |CTRL-W_h| + and |netrw-P|). If you're using gvim, you can press + in the browser window and then press the + to select the file. + + + *netrw-p11* + P11. My directory isn't sorting correctly, or unwanted letters are {{{2 + appearing in the listed filenames, or things aren't lining + up properly in the wide listing, ... + + This may be due to an encoding problem. I myself usually use + utf-8, but really only use ascii (ie. bytes from 32-126). + Multibyte encodings use two (or more) bytes per character. + You may need to change |g:netrw_sepchr| and/or |g:netrw_xstrlen|. + + *netrw-p12* + P12. I'm a Windows + putty + ssh user, and when I attempt to {{{2 + browse, the directories are missing trailing "/"s so netrw treats + them as file transfers instead of as attempts to browse + subdirectories. How may I fix this? + + (mikeyao) If you want to use vim via ssh and putty under Windows, + try combining the use of pscp/psftp with plink. pscp/psftp will + be used to connect and plink will be used to execute commands on + the server, for example: list files and directory using 'ls'. + + These are the settings I use to do this: +> + " list files, it's the key setting, if you haven't set, + " you will get a blank buffer + let g:netrw_list_cmd = "plink HOSTNAME ls -Fa" + " if you haven't add putty directory in system path, you should + " specify scp/sftp command. For examples: + "let g:netrw_sftp_cmd = "d:\\dev\\putty\\PSFTP.exe" + "let g:netrw_scp_cmd = "d:\\dev\\putty\\PSCP.exe" +< + *netrw-p13* + P13. I would like to speed up writes using Nwrite and scp/ssh {{{2 + style connections. How? (Thomer M. Gil) + + Try using ssh's ControlMaster and ControlPath (see the ssh_config + man page) to share multiple ssh connections over a single network + connection. That cuts out the cryptographic handshake on each + file write, sometimes speeding it up by an order of magnitude. + (see http://thomer.com/howtos/netrw_ssh.html) + (included by permission) + + Add the following to your ~/.ssh/config: > + + # you change "*" to the hostname you care about + Host * + ControlMaster auto + ControlPath /tmp/%r@%h:%p + +< Then create an ssh connection to the host and leave it running: > + + ssh -N host.domain.com + +< Now remotely open a file with Vim's Netrw and enjoy the + zippiness: > + + vim scp://host.domain.com//home/user/.bashrc +< + *netrw-p14* + P14. How may I use a double-click instead of netrw's usual single {{{2 + click to open a file or directory? (Ben Fritz) + + First, disable netrw's mapping with > + let g:netrw_mousemaps= 0 +< and then create a netrw buffer only mapping in + $HOME/.vim/after/ftplugin/netrw.vim: > + nmap <2-leftmouse> +< Note that setting g:netrw_mousemaps to zero will turn off + all netrw's mouse mappings, not just the one. + (see |g:netrw_mousemaps|) + + *netrw-p15* + P15. When editing remote files (ex. :e ftp://hostname/path/file), {{{2 + under Windows I get an |E303| message complaining that its unable + to open a swap file. + + (romainl) It looks like you are starting Vim from a protected + directory. Start netrw from your $HOME or other writable + directory. + + *netrw-p16* + P16. Netrw is closing buffers on its own. {{{2 + What steps will reproduce the problem? + 1. :Explore, navigate directories, open a file + 2. :Explore, open another file + 3. Buffer opened in step 1 will be closed. o + What is the expected output? What do you see instead? + I expect both buffers to exist, but only the last one does. + + (Lance) Problem is caused by "set autochdir" in .vimrc. + (drchip) I am able to duplicate this problem with 'acd' set. + It appears that the buffers are not exactly closed; + a ":ls!" will show them (although ":ls" does not). + + *netrw-P17* + P17. How to locally edit a file that's only available via {{{2 + another server accessible via ssh? + See http://stackoverflow.com/questions/12469645/ + "Using Vim to Remotely Edit A File on ServerB Only + Accessible From ServerA" + + *netrw-P18* + P18. How do I get numbering on in directory listings? {{{2 + With |g:netrw_bufsettings|, you can control netrw's buffer + settings; try putting > + let g:netrw_bufsettings="noma nomod nu nobl nowrap ro nornu" +< in your .vimrc. If you'd like to have relative numbering + instead, try > + let g:netrw_bufsettings="noma nomod nonu nobl nowrap ro rnu" +< + *netrw-P19* + P19. How may I have gvim start up showing a directory listing? {{{2 + Try putting the following code snippet into your .vimrc: > + augroup VimStartup + au! + au VimEnter * if expand("%") == "" && argc() == 0 && + \ (v:servername =~ 'GVIM\d*' || v:servername == "") + \ | e . | endif + augroup END +< You may use Lexplore instead of "e" if you're so inclined. + This snippet assumes that you have client-server enabled + (ie. a "huge" vim version). + + *netrw-P20* + P20. I've made a directory (or file) with an accented character, {{{2 + but netrw isn't letting me enter that directory/read that file: + + Its likely that the shell or o/s is using a different encoding + than you have vim (netrw) using. A patch to vim supporting + "systemencoding" may address this issue in the future; for + now, just have netrw use the proper encoding. For example: > + + au FileType netrw set enc=latin1 +< + *netrw-P21* + P21. I get an error message when I try to copy or move a file: {{{2 + + **error** (netrw) tried using g:netrw_localcopycmd; it doesn't work! + + What's wrong? + + Netrw uses several system level commands to do things (see + + |g:netrw_localcopycmd|, |g:netrw_localmovecmd|, + |g:netrw_mkdir_cmd|). + + You may need to adjust the default commands for one or more of + these commands by setting them properly in your .vimrc. Another + source of difficulty is that these commands use vim's local + directory, which may not be the same as the browsing directory + shown by netrw (see |g:netrw_keepdir|). + + +============================================================================== +11. Credits *netrw-credits* {{{1 + + Vim editor by Bram Moolenaar (Thanks, Bram!) + dav support by C Campbell + fetch support by Bram Moolenaar and C Campbell + ftp support by C Campbell + http support by Bram Moolenaar + rcp + rsync support by C Campbell (suggested by Erik Warendorph) + scp support by raf + sftp support by C Campbell + + inputsecret(), BufReadCmd, BufWriteCmd contributed by C Campbell + + Jérôme Augé -- also using new buffer method with ftp+.netrc + Bram Moolenaar -- obviously vim itself, :e and v:cmdarg use, + fetch,... + Yasuhiro Matsumoto -- pointing out undo+0r problem and a solution + Erik Warendorph -- for several suggestions (g:netrw_..._cmd + variables, rsync etc) + Doug Claar -- modifications to test for success with ftp + operation + +============================================================================== +Modelines: {{{1 +vim:tw=78:ts=8:ft=help:noet:norl:fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/plugin/netrwPlugin.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/plugin/netrwPlugin.vim new file mode 100644 index 0000000000000000000000000000000000000000..da0db3f9257f9216a0d37bbe07bc809fa0e437f4 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/plugin/netrwPlugin.vim @@ -0,0 +1,165 @@ +" Creator: Charles E Campbell +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. +" Copyright: Copyright (C) 1999-2021 Charles E. Campbell {{{ +" Permission is hereby granted to use and distribute this code, +" with or without modifications, provided that this copyright +" notice is copied with it. Like anything else that's free, +" netrw.vim, netrwPlugin.vim, and netrwSettings.vim are provided +" *as is* and comes with no warranty of any kind, either +" expressed or implied. By using this plugin, you agree that +" in no event will the copyright holder be liable for any damages +" resulting from the use of this software. }}} + +if &cp || exists("g:loaded_netrwPlugin") + finish +endif + +let g:loaded_netrwPlugin = "v184" + +let s:keepcpo = &cpo +set cpo&vim + +" Local Browsing Autocmds: {{{ + +augroup FileExplorer + au! + au BufLeave * if &ft != "netrw"|let w:netrw_prvfile= expand("%:p")|endif + au BufEnter * sil call s:LocalBrowse(expand("")) + au VimEnter * sil call s:VimEnter(expand("")) + if has("win32") + au BufEnter .* sil call s:LocalBrowse(expand("")) + endif +augroup END + +" }}} +" Network Browsing Reading Writing: {{{ + +augroup Network + au! + au BufReadCmd file://* call netrw#FileUrlEdit(expand("")) + au BufReadCmd ftp://*,rcp://*,scp://*,http://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufReadPre ".fnameescape(expand(""))|call netrw#Nread(2,expand(""))|exe "sil doau BufReadPost ".fnameescape(expand("")) + au FileReadCmd ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileReadPre ".fnameescape(expand(""))|call netrw#Nread(1,expand(""))|exe "sil doau FileReadPost ".fnameescape(expand("")) + au BufWriteCmd ftp://*,rcp://*,scp://*,http://*,file://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufWritePre ".fnameescape(expand(""))|exe 'Nwrite '.fnameescape(expand(""))|exe "sil doau BufWritePost ".fnameescape(expand("")) + au FileWriteCmd ftp://*,rcp://*,scp://*,http://*,file://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileWritePre ".fnameescape(expand(""))|exe "'[,']".'Nwrite '.fnameescape(expand(""))|exe "sil doau FileWritePost ".fnameescape(expand("")) + try + au SourceCmd ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("")) + catch /^Vim\%((\a\+)\)\=:E216/ + au SourcePre ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("")) + endtry +augroup END + +" }}} +" Commands: :Nread, :Nwrite, :NetUserPass {{{ + +command! -count=1 -nargs=* Nread let s:svpos= winsaveview()call netrw#NetRead(,)call winrestview(s:svpos) +command! -range=% -nargs=* Nwrite let s:svpos= winsaveview(),call netrw#NetWrite()call winrestview(s:svpos) +command! -nargs=* NetUserPass call netrw#NetUserPass() +command! -nargs=* Nsource let s:svpos= winsaveview()call netrw#NetSource()call winrestview(s:svpos) +command! -nargs=? Ntree call netrw#SetTreetop(1,) + +" }}} +" Commands: :Explore, :Sexplore, Hexplore, Vexplore, Lexplore {{{ + +command! -nargs=* -bar -bang -count=0 -complete=dir Explore call netrw#Explore(, 0, 0+0, ) +command! -nargs=* -bar -bang -count=0 -complete=dir Sexplore call netrw#Explore(, 1, 0+0, ) +command! -nargs=* -bar -bang -count=0 -complete=dir Hexplore call netrw#Explore(, 1, 2+0, ) +command! -nargs=* -bar -bang -count=0 -complete=dir Vexplore call netrw#Explore(, 1, 4+0, ) +command! -nargs=* -bar -count=0 -complete=dir Texplore call netrw#Explore(, 0, 6, ) +command! -nargs=* -bar -bang -count=0 -complete=dir Lexplore call netrw#Lexplore(, 0, ) +command! -nargs=* -bar -bang Nexplore call netrw#Explore(-1, 0, 0, ) +command! -nargs=* -bar -bang Pexplore call netrw#Explore(-2, 0, 0, ) + +" }}} +" Maps: {{{ + +if exists("g:netrw_usetab") && g:netrw_usetab + if maparg('','n') == "" + nmap NetrwShrink + endif + nno NetrwShrink :call netrw#Shrink() +endif + +" }}} +" LocalBrowse: invokes netrw#LocalBrowseCheck() on directory buffers {{{ + +function! s:LocalBrowse(dirname) + " do not trigger in the terminal + " https://github.com/vim/vim/issues/16463 + if &buftype ==# 'terminal' + return + endif + + if !exists("s:vimentered") + " If s:vimentered doesn't exist, then the VimEnter event hasn't fired. It will, + " and so s:VimEnter() will then be calling this routine, but this time with s:vimentered defined. + return + endif + + if has("amiga") + " The check against '' is made for the Amiga, where the empty + " string is the current directory and not checking would break + " things such as the help command. + if a:dirname != '' && isdirectory(a:dirname) + sil! call netrw#LocalBrowseCheck(a:dirname) + if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt + exe w:netrw_bannercnt + endif + endif + elseif isdirectory(a:dirname) + " Jul 13, 2021: for whatever reason, preceding the following call with + " a sil! causes an unbalanced if-endif vim error + call netrw#LocalBrowseCheck(a:dirname) + if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt + exe w:netrw_bannercnt + endif + endif +endfunction + +" }}} +" s:VimEnter: after all vim startup stuff is done, this function is called. {{{ +" Its purpose: to look over all windows and run s:LocalBrowse() on +" them, which checks if they're directories and will create a directory +" listing when appropriate. +" It also sets s:vimentered, letting s:LocalBrowse() know that s:VimEnter() +" has already been called. +function! s:VimEnter(dirname) + if has('nvim') || v:version < 802 + " Johann Höchtl: reported that the call range... line causes an E488: Trailing characters + " error with neovim. I suspect its because neovim hasn't updated with recent + " vim patches. As is, this code will have problems with popup terminals + " instantiated before the VimEnter event runs. + " Ingo Karkat : E488 also in Vim 8.1.1602 + let curwin = winnr() + let s:vimentered = 1 + windo call s:LocalBrowse(expand("%:p")) + exe curwin."wincmd w" + else + " the following complicated expression comes courtesy of lacygoill; largely does the same thing as the windo and + " wincmd which are commented out, but avoids some side effects. Allows popup terminal before VimEnter. + let s:vimentered = 1 + call range(1, winnr('$'))->map({_, v -> win_execute(win_getid(v), 'call expand("%:p")->s:LocalBrowse()')}) + endif +endfunction + +" }}} +" Deprecated: {{{ + +function NetUserPass(...) + call netrw#msg#Deprecate('NetUserPass', 'v185', { + \ 'vim': 'netrw#NetUserPass()', + \ 'nvim': 'netrw#NetUserPass()' + \}) + if a:0 + call netrw#NetUserPass(a:000) + else + call netrw#NetUserPass() + endif +endfunction + +" }}} + +let &cpo= s:keepcpo +unlet s:keepcpo + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/netrw/syntax/netrw.vim b/git/usr/share/vim/vim92/pack/dist/opt/netrw/syntax/netrw.vim new file mode 100644 index 0000000000000000000000000000000000000000..2c0b9acb751b1ed9f696ca9ba8b03d6cda68ee47 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/netrw/syntax/netrw.vim @@ -0,0 +1,150 @@ +" Creator: Charles E Campbell +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. +" Language: Netrw Listing Syntax + + +if exists("b:current_syntax") + finish +endif + +let b:current_syntax = "netrwlist" + +" Directory List Syntax Highlighting: {{{ + +syn cluster NetrwGroup contains=netrwHide,netrwSortBy,netrwSortSeq,netrwQuickHelp,netrwVersion,netrwCopyTgt +syn cluster NetrwTreeGroup contains=netrwDir,netrwSymLink,netrwExe + +syn match netrwPlain "\(\S\+ \)*\S\+" contains=netrwLink,@NoSpell +syn match netrwSpecial "\%(\S\+ \)*\S\+[*|=]\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell +syn match netrwDir "\.\{1,2}/" contains=netrwClassify,@NoSpell +syn match netrwDir "\%(\S\+ \)*\S\+/\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell +syn match netrwSizeDate "\<\d\+\s\d\{1,2}/\d\{1,2}/\d\{4}\s" skipwhite contains=netrwDateSep,@NoSpell nextgroup=netrwTime +syn match netrwSymLink "\%(\S\+ \)*\S\+@\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell +syn match netrwExe "\%(\S\+ \)*\S*[^~]\*\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell +if has("gui_running") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') + syn match netrwTreeBar "^\%([-+|│] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup +else + syn match netrwTreeBar "^\%([-+|] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup +endif +syn match netrwTreeBarSpace " " contained + +syn match netrwClassify "[*=|@/]\ze\%(\s\{2,}\|$\)" contained +syn match netrwDateSep "/" contained +syn match netrwTime "\d\{1,2}:\d\{2}:\d\{2}" contained contains=netrwTimeSep +syn match netrwTimeSep ":" + +syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup,@NoSpell +syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite contains=@NoSpell nextgroup=netrwHidePat +syn match netrwSlash "/" contained +syn match netrwHidePat "[^,]\+" contained skipwhite contains=@NoSpell nextgroup=netrwHideSep +syn match netrwHideSep "," contained skipwhite nextgroup=netrwHidePat +syn match netrwSortBy "Sorted by" contained transparent skipwhite nextgroup=netrwList +syn match netrwSortSeq "Sort sequence:" contained transparent skipwhite nextgroup=netrwList +syn match netrwCopyTgt "Copy/Move Tgt:" contained transparent skipwhite nextgroup=netrwList +syn match netrwList ".*$" contained contains=netrwComma,@NoSpell +syn match netrwComma "," contained +syn region netrwQuickHelp matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd,netrwQHTopic,@NoSpell keepend contained +syn match netrwHelpCmd "\S\+\ze:" contained skipwhite contains=@NoSpell nextgroup=netrwCmdSep +syn match netrwQHTopic "([a-zA-Z &]\+)" contained skipwhite +syn match netrwCmdSep ":" contained nextgroup=netrwCmdNote +syn match netrwCmdNote ".\{-}\ze " contained contains=@NoSpell +syn match netrwVersion "(netrw.*)" contained contains=@NoSpell +syn match netrwLink "-->" contained skipwhite + +" }}} +" Special filetype highlighting {{{ + +if exists("g:netrw_special_syntax") && g:netrw_special_syntax + if exists("+suffixes") && &suffixes != "" + let suflist= join(split(&suffixes,',')) + let suflist= escape(substitute(suflist," ",'\\|','g'),'.~') + exe "syn match netrwSpecFile '\\(\\S\\+ \\)*\\S*\\(".suflist."\\)\\>' contains=netrwTreeBar,@NoSpell" + endif + syn match netrwBak "\(\S\+ \)*\S\+\.bak\>" contains=netrwTreeBar,@NoSpell + syn match netrwCompress "\(\S\+ \)*\S\+\.\%(gz\|bz2\|Z\|zip\)\>" contains=netrwTreeBar,@NoSpell + if has("unix") + syn match netrwCoreDump "\" contains=netrwTreeBar,@NoSpell + endif + syn match netrwLex "\(\S\+ \)*\S\+\.\%(l\|lex\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwYacc "\(\S\+ \)*\S\+\.y\>" contains=netrwTreeBar,@NoSpell + syn match netrwData "\(\S\+ \)*\S\+\.dat\>" contains=netrwTreeBar,@NoSpell + syn match netrwDoc "\(\S\+ \)*\S\+\.\%(doc\|txt\|pdf\|ps\|docx\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwHdr "\(\S\+ \)*\S\+\.\%(h\|hpp\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwLib "\(\S\+ \)*\S*\.\%(a\|so\|lib\|dll\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwMakeFile "\<[mM]akefile\>\|\(\S\+ \)*\S\+\.mak\>" contains=netrwTreeBar,@NoSpell + syn match netrwObj "\(\S\+ \)*\S*\.\%(o\|obj\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwPix "\c\(\S\+ \)*\S*\.\%(bmp\|fits\=\|gif\|je\=pg\|pcx\|ppc\|pgm\|png\|ppm\|psd\|rgb\|tif\|xbm\|xcf\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwTags "\<\(ANmenu\|ANtags\)\>" contains=netrwTreeBar,@NoSpell + syn match netrwTags "\" contains=netrwTreeBar,@NoSpell + syn match netrwTilde "\(\S\+ \)*\S\+\~\*\=\>" contains=netrwTreeBar,@NoSpell + syn match netrwTmp "\\|\(\S\+ \)*\S*tmp\>" contains=netrwTreeBar,@NoSpell +endif + +" }}} +" Highlighting Links: {{{ + +if !exists("did_drchip_netrwlist_syntax") + let did_drchip_netrwlist_syntax= 1 + hi default link netrwClassify Function + hi default link netrwCmdSep Delimiter + hi default link netrwComment Comment + hi default link netrwDir Directory + hi default link netrwHelpCmd Function + hi default link netrwQHTopic Number + hi default link netrwHidePat Statement + hi default link netrwHideSep netrwComment + hi default link netrwList Statement + hi default link netrwVersion Identifier + hi default link netrwSymLink Question + hi default link netrwExe PreProc + hi default link netrwDateSep Delimiter + + hi default link netrwTreeBar Special + hi default link netrwTimeSep netrwDateSep + hi default link netrwComma netrwComment + hi default link netrwHide netrwComment + hi default link netrwMarkFile TabLineSel + hi default link netrwLink Special + + " special syntax highlighting (see :he g:netrw_special_syntax) + hi default link netrwCoreDump WarningMsg + hi default link netrwData Folded + hi default link netrwHdr netrwPlain + hi default link netrwLex netrwPlain + hi default link netrwLib DiffChange + hi default link netrwMakefile DiffChange + hi default link netrwYacc netrwPlain + hi default link netrwPix Special + + hi default link netrwBak netrwGray + hi default link netrwCompress netrwGray + hi default link netrwSpecFile netrwGray + hi default link netrwObj netrwGray + hi default link netrwTags netrwGray + hi default link netrwTilde netrwGray + hi default link netrwTmp netrwGray +endif + +" set up netrwGray to be understated (but not Ignore'd or Conceal'd, as those +" can be hard/impossible to read). Users may override this in a colorscheme by +" specifying netrwGray highlighting. +redir => s:netrwgray +sil hi netrwGray +redir END + +if s:netrwgray !~ 'guifg' + if has("gui") && has("gui_running") + if &bg == "dark" + exe "hi netrwGray gui=NONE guifg=gray30" + else + exe "hi netrwGray gui=NONE guifg=gray70" + endif + else + hi link netrwGray Folded + endif +endif + +" }}} + +" vim:ts=8 sts=4 sw=4 et fdm=marker diff --git a/git/usr/share/vim/vim92/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim b/git/usr/share/vim/vim92/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim new file mode 100644 index 0000000000000000000000000000000000000000..58613a2f033dc8ed3254669fe6e2b1d478831b33 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim @@ -0,0 +1,24 @@ +" nohlsearch.vim: Auto turn off hlsearch +" Last Change: 2025-03-08 +" Maintainer: Maxim Kim +" +" turn off hlsearch after: +" - doing nothing for 'updatetime' +" - getting into insert mode + +if exists('g:loaded_nohlsearch') + finish +endif +let g:loaded_nohlsearch = 1 + +func! s:Nohlsearch() + if v:hlsearch + call feedkeys("\nohlsearch\", 'm') + endif +endfunc + +augroup nohlsearch + au! + au CursorHold * call s:Nohlsearch() + au InsertEnter * call s:Nohlsearch() +augroup END diff --git a/git/usr/share/vim/vim92/pack/dist/opt/osc52/autoload/osc52.vim b/git/usr/share/vim/vim92/pack/dist/opt/osc52/autoload/osc52.vim new file mode 100644 index 0000000000000000000000000000000000000000..3471329d7f9bfb02162b217868cf2d521d625b06 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/osc52/autoload/osc52.vim @@ -0,0 +1,97 @@ +vim9script + +export var allowed: bool = false + +export def Available(): bool + if get(g:, 'osc52_force_avail', 0) + return true + endif + return allowed +enddef + +var sent_message: bool = false + +def OSCMessage(id: number) + echo "Waiting for OSC52 response... Press CTRL-C to cancel" + sent_message = true +enddef + +export def Paste(reg: string): tuple> + # Check if user has indicated that the terminal does not support OSC 52 paste + # (or has disabled it) + if get(g:, 'osc52_disable_paste', 0) + return ("c", []) + endif + + # Some terminals like Kitty respect the selection type parameter on both X11 + # and Wayland. If the terminal doesn't then the selection type parameter + # should be ignored (no-op) + if reg == "+" + echoraw("\]52;c;?\\\") + else + echoraw("\]52;p;?\\\") + endif + + var timerid: number = timer_start(1000, OSCMessage) + var interrupt: bool = false + + # Wait for response from terminal. If we got interrupted (Ctrl-C), then do a + # redraw if we already sent the message, and return an empty string. + try + while true + var key: string = getcharstr(-1, {cursor: "hide"}) + + if key == "\" && match(v:termosc, '52;') != -1 + break + elseif key == "\" + interrupt = true + break + endif + endwhile + + # This doesn't seem to catch Ctrl-C sent via term_sendkeys(), which is used in + # tests. So also check the result of getcharstr()/getchar(). + catch /^Vim:Interrupt$/ + interrupt = true + finally + timer_stop(timerid) + if sent_message + sent_message = false + :redraw! + endif + endtry + + if interrupt + echo "Interrupted while waiting for OSC 52 response" + return ("c", [""]) + endif + + # Extract the base64 stuff + var stuff: string = matchstr(v:termosc, '52;.*;\zs[A-Za-z0-9+/=]*') + + if len(stuff) == 0 + return ("c", []) + endif + + var ret: list + + # "stuff" may be an invalid base64 string, so catch any errors + try + ret = blob2str(base64_decode(stuff)) + catch /E\(475\|1515\)/ + echo "Invalid OSC 52 response received" + return ("c", [""]) + endtry + + return ("", ret) +enddef + +export def Copy(reg: string, type: string, lines: list): void + if reg == "+" + echoraw("\]52;c;" .. base64_encode(str2blob(lines)) .. "\\\") + else + echoraw("\]52;p;" .. base64_encode(str2blob(lines)) .. "\\\") + endif +enddef + +# vim: set sw=2 sts=2 : diff --git a/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/osc52.txt b/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/osc52.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ac73c076d15f2490632c07f89e022521d7a56ae --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/osc52.txt @@ -0,0 +1,71 @@ +*osc52.txt* For Vim version 9.1. Last change: 2025 Dec 18 + + + VIM REFERENCE MANUAL + +Use the OSC 52 terminal command for clipboard support +============================================================================== + +1. OVERVIEW *osc52-overview* + +The osc52.vim plugin provides support for the OSC 52 terminal command, which +allows an application to access the clipboard by communicating with the +terminal. This is useful in situations such as if you are in a SSH session. + + *osc52-support* +In order for this plugin to work, the terminal Vim is running in must +recognize and handle the OSC 52 escape sequence. You can easily check this +online. Additionally, while yanking is guaranteed to work, some terminals +don't implement the paste functionality. If the terminal doesn't support +pasting, then Vim will just block waiting for the data which will never come. +In this case just press Ctrl-C to cancel the operation. + + *osc52-selections* +Note that this only applies to users on Wayland or X11 platforms + +Some terminals support the selection type parameter in the OSC 52 command. +This originates from X11, and some terminals check this parameter and handle +it accordingly. If your terminal handles this parameter, then the "+" +register corresponds to the regular selection, and the "*" register +corresponds to the primary selection. If your terminal does not handle it, +then it is up to the terminal to handle what selection to use. + +2. HOW TO USE THE PLUGIN *osc52-how-to-use* + +The osc52.vim package relies on Vim's clipboard provider functionality, see +|clipboard-providers|. To enable it, add the following to your |vimrc|: >vim + packadd osc52 + set clipmethod+=osc52 +< +This appends "osc52" to |clipmethod|, causing Vim to try it only after any +earlier clipboard methods. This allows Vim to use the system clipboard +directly when available, and automatically fall back to OSC 52 method when it +is not (for example, when running over SSH). + +Note: that this fallback behavior applies only on platforms that use +|clipmethod| for accessing the clipboard. On macOS and Windows, Vim does not +use |clipmethod|, so this behaviour won't happen. Instead if OSC 52 support is +detected and "osc52" is the only value in |clipmethod|, then it will always be +used. + +You can check whether the osc52.vim provider is active by inspecting +|v:clipmethod|. If it contains "osc52", the plugin is enabled. + +Note: terminal multiplexers such as tmux may interfere with automatic OSC 52 +detection. + + *g:osc52_force_avail* +In most cases, the plugin should automatically detect and work if your +terminal supports the OSC 52 command. Internally, it does this by sending the +Primary Device Attributes (DA1) query. You may force enable the plugin by +setting |g:osc52_force_avail| to true. + + *g:osc52_disable_paste* +If your terminal does not support pasting via OSC 52, or has it disabled, then +it is a good idea to set g:osc52_disable_paste to TRUE. This will register +only the "copy" method for the osc52.vim clipboard provider, so Vim will not +attempt an OSC 52 paste query and avoids the blocking wait described in +|osc52-support|. + +============================================================================== +vim:tw=78:ts=8:fo=tcq2:ft=help: diff --git a/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/tags b/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/tags new file mode 100644 index 0000000000000000000000000000000000000000..9d723973b6535bc678ce09e236f0faeeabb68d37 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/osc52/doc/tags @@ -0,0 +1,7 @@ +g:osc52_disable_paste osc52.txt /*g:osc52_disable_paste* +g:osc52_force_avail osc52.txt /*g:osc52_force_avail* +osc52-how-to-use osc52.txt /*osc52-how-to-use* +osc52-overview osc52.txt /*osc52-overview* +osc52-selections osc52.txt /*osc52-selections* +osc52-support osc52.txt /*osc52-support* +osc52.txt osc52.txt /*osc52.txt* diff --git a/git/usr/share/vim/vim92/pack/dist/opt/osc52/plugin/osc52.vim b/git/usr/share/vim/vim92/pack/dist/opt/osc52/plugin/osc52.vim new file mode 100644 index 0000000000000000000000000000000000000000..0ae16376a5e799df696ff8a8391b35364fea7c44 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/osc52/plugin/osc52.vim @@ -0,0 +1,59 @@ +vim9script + +# Vim plugin for OSC52 clipboard support +# +# Maintainer: The Vim Project +# Last Change: 2026 Mar 01 + +if !has("timers") + finish +endif + +import autoload "../autoload/osc52.vim" as osc + +var provider: dict = { + "available": osc.Available, + "copy": { + "*": osc.Copy, + "+": osc.Copy + }, +} + +if !get(g:, 'osc52_disable_paste', 0) + provider->extend({ + "paste": { + "*": osc.Paste, + "+": osc.Paste + } + }) +endif + +v:clipproviders["osc52"] = provider + +def SendDA1(): void + if !has("gui_running") && !get(g:, 'osc52_force_avail', 0) + && !get(g:, 'osc52_no_da1', 0) + echoraw("\[c") + endif +enddef + +if v:vim_did_enter + SendDA1() +endif + +augroup VimOSC52Plugin + autocmd! + # Query support for OSC 52 using a DA1 query + autocmd TermResponseAll da1 { + if match(v:termda1, '?\zs.*52\ze') != -1 + osc.allowed = true + :silent! clipreset + else + osc.allowed = false + :silent! clipreset + endif + } + autocmd VimEnter * SendDA1() +augroup END + +# vim: set sw=2 sts=2 : diff --git a/git/usr/share/vim/vim92/pack/dist/opt/shellmenu/plugin/shellmenu.vim b/git/usr/share/vim/vim92/pack/dist/opt/shellmenu/plugin/shellmenu.vim new file mode 100644 index 0000000000000000000000000000000000000000..04b48b9ce83cd12e3b3ffc943d026e736c5b8954 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/shellmenu/plugin/shellmenu.vim @@ -0,0 +1,104 @@ +" When you're writing shell scripts and you are in doubt which test to use, +" which shell environment variables are defined, what the syntax of the case +" statement is, and you need to invoke 'man sh'? +" +" Your problems are over now! +" +" Attached is a Vim script file for turning gvim into a shell script editor. +" It may also be used as an example how to use menus in Vim. +" +" Maintainer: Ada (Haowen) Yu +" Original author: Lennart Schultz (mail unreachable) + +" Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise +" would not be recognized. See ":help 'cpoptions'". +let s:cpo_save = &cpo +set cpo&vim + +imenu ShellMenu.Statements.for for in dodoneki kk0elli +imenu ShellMenu.Statements.case case in) ;;esacbki k0elli +imenu ShellMenu.Statements.if if thenfiki kk0elli +imenu ShellMenu.Statements.if-else if thenelsefiki kki kk0elli +imenu ShellMenu.Statements.elif elif thenki kk0elli +imenu ShellMenu.Statements.while while dodoneki kk0elli +imenu ShellMenu.Statements.break break +imenu ShellMenu.Statements.continue continue +imenu ShellMenu.Statements.function () {}ki k0i +imenu ShellMenu.Statements.return return +imenu ShellMenu.Statements.return-true return 0 +imenu ShellMenu.Statements.return-false return 1 +imenu ShellMenu.Statements.exit exit +imenu ShellMenu.Statements.shift shift +imenu ShellMenu.Statements.trap trap +imenu ShellMenu.Test.Existence [ -e ]hi +imenu ShellMenu.Test.Existence\ -\ file [ -f ]hi +imenu ShellMenu.Test.Existence\ -\ file\ (not\ empty) [ -s ]hi +imenu ShellMenu.Test.Existence\ -\ directory [ -d ]hi +imenu ShellMenu.Test.Existence\ -\ executable [ -x ]hi +imenu ShellMenu.Test.Existence\ -\ readable [ -r ]hi +imenu ShellMenu.Test.Existence\ -\ writable [ -w ]hi +imenu ShellMenu.Test.String\ is\ empty [ x = "x$" ]hhi +imenu ShellMenu.Test.String\ is\ not\ empty [ x != "x$" ]hhi +imenu ShellMenu.Test.Strings\ are\ equal [ "" = "" ]hhhhhhhi +imenu ShellMenu.Test.Strings\ are\ not\ equal [ "" != "" ]hhhhhhhhi +imenu ShellMenu.Test.Value\ is\ greater\ than [ -gt ]hhhhhhi +imenu ShellMenu.Test.Value\ is\ greater\ equal [ -ge ]hhhhhhi +imenu ShellMenu.Test.Values\ are\ equal [ -eq ]hhhhhhi +imenu ShellMenu.Test.Values\ are\ not\ equal [ -ne ]hhhhhhi +imenu ShellMenu.Test.Value\ is\ less\ than [ -lt ]hhhhhhi +imenu ShellMenu.Test.Value\ is\ less\ equal [ -le ]hhhhhhi +imenu ShellMenu.ParmSub.Substitute\ word\ if\ parm\ not\ set ${:-}hhi +imenu ShellMenu.ParmSub.Set\ parm\ to\ word\ if\ not\ set ${:=}hhi +imenu ShellMenu.ParmSub.Substitute\ word\ if\ parm\ set\ else\ nothing ${:+}hhi +imenu ShellMenu.ParmSub.If\ parm\ not\ set\ print\ word\ and\ exit ${:?}hhi +imenu ShellMenu.SpShVars.Number\ of\ positional\ parameters ${#} +imenu ShellMenu.SpShVars.All\ positional\ parameters\ (quoted\ spaces) ${*} +imenu ShellMenu.SpShVars.All\ positional\ parameters\ (unquoted\ spaces) ${@} +imenu ShellMenu.SpShVars.Flags\ set ${-} +imenu ShellMenu.SpShVars.Return\ code\ of\ last\ command ${?} +imenu ShellMenu.SpShVars.Process\ number\ of\ this\ shell ${$} +imenu ShellMenu.SpShVars.Process\ number\ of\ last\ background\ command ${!} +imenu ShellMenu.Environ.HOME ${HOME} +imenu ShellMenu.Environ.PATH ${PATH} +imenu ShellMenu.Environ.CDPATH ${CDPATH} +imenu ShellMenu.Environ.MAIL ${MAIL} +imenu ShellMenu.Environ.MAILCHECK ${MAILCHECK} +imenu ShellMenu.Environ.PS1 ${PS1} +imenu ShellMenu.Environ.PS2 ${PS2} +imenu ShellMenu.Environ.IFS ${IFS} +imenu ShellMenu.Environ.SHACCT ${SHACCT} +imenu ShellMenu.Environ.SHELL ${SHELL} +imenu ShellMenu.Environ.LC_CTYPE ${LC_CTYPE} +imenu ShellMenu.Environ.LC_MESSAGES ${LC_MESSAGES} +imenu ShellMenu.Builtins.cd cd +imenu ShellMenu.Builtins.echo echo +imenu ShellMenu.Builtins.eval eval +imenu ShellMenu.Builtins.exec exec +imenu ShellMenu.Builtins.export export +imenu ShellMenu.Builtins.getopts getopts +imenu ShellMenu.Builtins.hash hash +imenu ShellMenu.Builtins.newgrp newgrp +imenu ShellMenu.Builtins.pwd pwd +imenu ShellMenu.Builtins.read read +imenu ShellMenu.Builtins.readonly readonly +imenu ShellMenu.Builtins.return return +imenu ShellMenu.Builtins.times times +imenu ShellMenu.Builtins.type type +imenu ShellMenu.Builtins.umask umask +imenu ShellMenu.Builtins.wait wait +imenu ShellMenu.Set.set set +imenu ShellMenu.Set.unset unset +imenu ShellMenu.Set.Mark\ created\ or\ modified\ variables\ for\ export set -a +imenu ShellMenu.Set.Exit\ when\ command\ returns\ non-zero\ status set -e +imenu ShellMenu.Set.Disable\ file\ name\ expansion set -f +imenu ShellMenu.Set.Locate\ and\ remember\ commands\ when\ being\ looked\ up set -h +imenu ShellMenu.Set.All\ assignment\ statements\ are\ placed\ in\ the\ environment\ for\ a\ command set -k +imenu ShellMenu.Set.Read\ commands\ but\ do\ not\ execute\ them set -n +imenu ShellMenu.Set.Exit\ after\ reading\ and\ executing\ one\ command set -t +imenu ShellMenu.Set.Treat\ unset\ variables\ as\ an\ error\ when\ substituting set -u +imenu ShellMenu.Set.Print\ shell\ input\ lines\ as\ they\ are\ read set -v +imenu ShellMenu.Set.Print\ commands\ and\ their\ arguments\ as\ they\ are\ executed set -x + +" Restore the previous value of 'cpoptions'. +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/pack/dist/opt/swapmouse/plugin/swapmouse.vim b/git/usr/share/vim/vim92/pack/dist/opt/swapmouse/plugin/swapmouse.vim new file mode 100644 index 0000000000000000000000000000000000000000..8b85be050b95a02716966bdb60d5f7004d795a8f --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/swapmouse/plugin/swapmouse.vim @@ -0,0 +1,22 @@ +" These macros swap the left and right mouse buttons (for left handed) +" Don't forget to do ":set mouse=a" or the mouse won't work at all +noremap +noremap <2-LeftMouse> <2-RightMouse> +noremap <3-LeftMouse> <3-RightMouse> +noremap <4-LeftMouse> <4-RightMouse> +noremap +noremap +noremap +noremap <2-RightMouse> <2-LeftMouse> +noremap <3-RightMouse> <3-LeftMouse> +noremap <4-RightMouse> <4-LeftMouse> +noremap +noremap +noremap g +noremap g +noremap! +noremap! +noremap! +noremap! +noremap! +noremap! diff --git a/git/usr/share/vim/vim92/pack/dist/opt/termdebug/plugin/termdebug.vim b/git/usr/share/vim/vim92/pack/dist/opt/termdebug/plugin/termdebug.vim new file mode 100644 index 0000000000000000000000000000000000000000..3ac5c71d5b9b899a8d07dfd1c92fc672b9f491a0 --- /dev/null +++ b/git/usr/share/vim/vim92/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -0,0 +1,2431 @@ +vim9script + +# Debugger plugin using gdb. + +# Author: Bram Moolenaar +# Copyright: Vim license applies, see ":help license" +# Last Change: 2026 Mar 11 +# Converted to Vim9: Ubaldo Tiberi + +# WORK IN PROGRESS - The basics works stable, more to come +# Note: In general you need at least GDB 7.12 because this provides the +# frame= response in MI thread-selected events we need to sync stack to file. +# The one included with "old" MingW is too old (7.6.1), you may upgrade it or +# use a newer version from http://www.equation.com/servlet/equation.cmd?fa=gdb + +# There are two ways to run gdb: +# - In a terminal window; used if possible, does not work on MS-Windows +# Not used when g:termdebug_use_prompt is set to true. +# - Using a "prompt" buffer; may use a terminal window for the program + +# For both the current window is used to view source code and shows the +# current statement from gdb. + +# USING A TERMINAL WINDOW + +# Opens two visible terminal windows: +# 1. runs a pty for the debugged program, as with ":term NONE" +# 2. runs gdb, passing the pty of the debugged program +# A third terminal window is hidden, it is used for communication with gdb. + +# USING A PROMPT BUFFER + +# Opens a window with a prompt buffer to communicate with gdb. +# Gdb is run as a job with callbacks for I/O. +# On Unix another terminal window is opened to run the debugged program +# On MS-Windows a separate console is opened to run the debugged program +# but a terminal window is used to run remote debugged programs. + +# The communication with gdb uses GDB/MI. See: +# https://sourceware.org/gdb/current/onlinedocs/gdb/GDB_002fMI.html + +var DEBUG = false +if exists('g:termdebug_config') + DEBUG = get(g:termdebug_config, 'debug', false) +endif + +def Echoerr(msg: string) + echohl ErrorMsg | echom $'[termdebug] {msg}' | echohl None +enddef + +def Echowarn(msg: string) + echohl WarningMsg | echom $'[termdebug] {msg}' | echohl None +enddef + +# Variables to keep their status among multiple instances of Termdebug +g:termdebug_is_running = false + + +# The command that starts debugging, e.g. ":Termdebug vim". +# To end type "quit" in the gdb window. +command -nargs=* -complete=file -bang Termdebug StartDebug(0, ) +command -nargs=+ -complete=file -bang TermdebugCommand StartDebugCommand(0, ) + +enum Way + Prompt, + Terminal +endenum + +# Script variables declaration. These variables are re-initialized at every +# Termdebug instance +var way: Way +var err: string + +var pc_id: number +var asm_id: number +var break_id: number +var stopped: bool +var running: bool + +var parsing_disasm_msg: number +var asm_lines: list +var asm_addr: string + +# These shall be constants but cannot be initialized here +# They indicate the buffer numbers of the main buffers used +var gdbbufnr: number +var gdbbufname: string +var varbufnr: number +var varbufname: string +var asmbufnr: number +var asmbufname: string +var promptbufnr: number +# 'pty' refers to the "debugged-program" pty +var ptybufnr: number +var ptybufname: string +var commbufnr: number +var commbufname: string + +var gdbjob: job +var gdb_channel: channel +# These changes because they relate to windows +var pid: number +var gdbwin: number +var varwin: number +var asmwin: number +var ptywin: number +var sourcewin: number + +# Contains breakpoints that have been placed, key is a string with the GDB +# breakpoint number. +# Each entry is a dict, containing the sub-breakpoints. Key is the subid. +# For a breakpoint that is just a number the subid is zero. +# For a breakpoint "123.4" the id is "123" and subid is "4". +# Example, when breakpoint "44", "123", "123.1" and "123.2" exist: +# {'44': {'0': entry}, '123': {'0': entry, '1': entry, '2': entry}} +var breakpoints: dict + +# Contains breakpoints by file/lnum. The key is "fname:lnum". +# Each entry is a list of breakpoint IDs at that position. +var breakpoint_locations: dict +var BreakpointSigns: list + +var evalFromBalloonExpr: bool +var evalInPopup: bool +var evalPopupId: number +var evalExprResult: string +var ignoreEvalError: bool +var evalexpr: string +# Remember the old value of 'signcolumn' for each buffer that it's set in, so +# that we can restore the value for all buffers. +var signcolumn_buflist: list +var saved_columns: number + +var allleft: bool +# This was s:vertical but I cannot use vertical as variable name +var vvertical: bool + +var winbar_winids: list + +var saved_mousemodel: string + +var saved_K_map: dict +var saved_visual_K_map: dict +var saved_plus_map: dict +var saved_minus_map: dict + +def InitScriptVariables() + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'use_prompt') + way = g:termdebug_config['use_prompt'] ? Way.Prompt : Way.Terminal + elseif exists('g:termdebug_use_prompt') + way = g:termdebug_use_prompt ? Way.Prompt : Way.Terminal + elseif has('terminal') && !has('win32') + way = Way.Terminal + else + way = Way.Prompt + endif + err = '' + + pc_id = 12 + asm_id = 13 + break_id = 14 # breakpoint number is added to this + stopped = true + running = false + + parsing_disasm_msg = 0 + asm_lines = [] + asm_addr = '' + + # They indicate the buffer numbers of the main buffers used + gdbbufnr = 0 + gdbbufname = 'gdb' + varbufnr = 0 + varbufname = 'Termdebug-variables-listing' + asmbufnr = 0 + asmbufname = 'Termdebug-asm-listing' + promptbufnr = 0 + # This is for the "debugged-program" thing + ptybufname = "debugged-program" + ptybufnr = 0 + commbufname = "gdb-communication" + commbufnr = 0 + + gdbjob = null_job + gdb_channel = null_channel + # These changes because they relate to windows + pid = 0 + gdbwin = 0 + varwin = 0 + asmwin = 0 + ptywin = 0 + sourcewin = 0 + + # Contains breakpoints that have been placed, key is a string with the GDB + # breakpoint number. + # Each entry is a dict, containing the sub-breakpoints. Key is the subid. + # For a breakpoint that is just a number the subid is zero. + # For a breakpoint "123.4" the id is "123" and subid is "4". + # Example, when breakpoint "44", "123", "123.1" and "123.2" exist: + # {'44': {'0': entry}, '123': {'0': entry, '1': entry, '2': entry}} + breakpoints = {} + + # Contains breakpoints by file/lnum. The key is "fname:lnum". + # Each entry is a list of breakpoint IDs at that position. + breakpoint_locations = {} + BreakpointSigns = [] + + evalFromBalloonExpr = false + evalInPopup = false + evalPopupId = -1 + evalExprResult = '' + ignoreEvalError = false + evalexpr = '' + # Remember the old value of 'signcolumn' for each buffer that it's set in, so + # that we can restore the value for all buffers. + signcolumn_buflist = [bufnr()] + saved_columns = &columns + + winbar_winids = [] + + saved_K_map = maparg('K', 'n', false, true) + saved_plus_map = maparg('+', 'n', false, true) + saved_minus_map = maparg('-', 'n', false, true) + saved_visual_K_map = maparg('K', 'x', false, true) + + if has('menu') + saved_mousemodel = &mousemodel + endif +enddef + +def SanityCheck(): bool + var gdb_cmd = GetCommand()[0] + var cwd = $'{getcwd()}/' + if exists('+shellslash') && !&shellslash + # on windows, need to handle backslash + cwd->substitute('\\', '/', 'g') + endif + var is_check_ok = true + # Need either the +terminal feature or +channel and the prompt buffer. + # The terminal feature does not work with gdb on win32. + if (way is Way.Prompt) && !has('channel') + err = 'Cannot debug, +channel feature is not supported' + elseif (way is Way.Prompt) && !exists('*prompt_setprompt') + err = 'Cannot debug, missing prompt buffer support' + elseif (way is Way.Prompt) && !empty(glob($'{cwd}{gdb_cmd}')) + err = $"You have a file/folder named '{gdb_cmd}' in the current directory Termdebug may not work properly. Please exit and rename such a file/folder." + elseif !empty(glob($'{cwd}{asmbufname}')) + err = $"You have a file/folder named '{asmbufname}' in the current directory Termdebug may not work properly. Please exit and rename such a file/folder." + elseif !empty(glob($'{cwd}{varbufname}')) + err = $"You have a file/folder named '{varbufname}' in the current directory Termdebug may not work properly. Please exit and rename such a file/folder." + elseif !executable(gdb_cmd) + err = $"Cannot execute debugger program '{gdb_cmd}'" + endif + + if !empty(err) + Echoerr(err) + is_check_ok = false + endif + return is_check_ok +enddef + +def DeprecationWarnings() + # TODO Remove the deprecated features after 1 Jan 2025. + var config_param = '' + if exists('g:termdebug_wide') + config_param = 'g:termdebug_wide' + elseif exists('g:termdebug_popup') + config_param = 'g:termdebug_popup' + elseif exists('g:termdebugger') + config_param = 'g:termdebugger' + elseif exists('g:termdebug_variables_window') + config_param = 'g:termdebug_variables_window' + elseif exists('g:termdebug_disasm_window') + config_param = 'g:termdebug_disasm_window' + elseif exists('g:termdebug_map_K') + config_param = 'g:termdebug_map_K' + elseif exists('g:termdebug_use_prompt') + config_param = 'g:termdebug_use_prompt' + endif + + if !empty(config_param) + Echowarn($"Deprecation Warning: '{config_param}' parameter + \ is deprecated and will be removed in the future. See ':h g:termdebug_config' for alternatives.") + endif + + # termdebug config types + if exists('g:termdebug_config') && !empty(g:termdebug_config) + for key in keys(g:termdebug_config) + if index(['disasm_window', 'variables_window', 'use_prompt', 'map_K', 'map_minus', 'map_plus'], key) != -1 + if typename(g:termdebug_config[key]) == 'number' + var val = g:termdebug_config[key] + Echowarn($"Deprecation Warning: 'g:termdebug_config[\"{key}\"] = {val}' will be deprecated. + \ Please use 'g:termdebug_config[\"{key}\"] = {val != 0}'" ) + endif + endif + endfor + endif +enddef + +# Take a breakpoint number as used by GDB and turn it into an integer. +# The breakpoint may contain a dot: 123.4 -> 123004 +# The main breakpoint has a zero subid. +def Breakpoint2SignNumber(id: number, subid: number): number + return break_id + id * 1000 + subid +enddef + +# Define or adjust the default highlighting, using background "new". +# When the 'background' option is set then "old" has the old value. +def Highlight(init: bool, old: string, new: string) + var default = init ? 'default ' : '' + if new ==# 'light' && old !=# 'light' + exe $"hi {default}debugPC term=reverse ctermbg=lightblue guibg=lightblue" + elseif new ==# 'dark' && old !=# 'dark' + exe $"hi {default}debugPC term=reverse ctermbg=darkblue guibg=darkblue" + endif +enddef + +# Define the default highlighting, using the current 'background' value. +def InitHighlight() + Highlight(true, '', &background) + hi default debugBreakpoint term=reverse ctermbg=red guibg=red + hi default debugBreakpointDisabled term=reverse ctermbg=gray guibg=gray +enddef + +# Setup an autocommand to redefine the default highlight when the colorscheme +# is changed. +def InitAutocmd() + augroup TermDebug + autocmd! + autocmd ColorScheme * InitHighlight() + augroup END +enddef + +# Get the command to execute the debugger as a list, defaults to ["gdb"]. +def GetCommand(): list + var cmd: any + if exists('g:termdebug_config') + cmd = get(g:termdebug_config, 'command', 'gdb') + elseif exists('g:termdebugger') + cmd = g:termdebugger + else + cmd = 'gdb' + endif + + return type(cmd) == v:t_list ? copy(cmd) : [cmd] +enddef + +def StartDebug(bang: bool, ...gdb_args: list) + # First argument is the command to debug, second core file or process ID. + StartDebug_internal({gdb_args: gdb_args, bang: bang}) +enddef + +def StartDebugCommand(bang: bool, ...args: list) + # First argument is the command to debug, rest are run arguments. + StartDebug_internal({gdb_args: [args[0]], proc_args: args[1 : ], bang: bang}) +enddef + +def StartDebug_internal(dict: dict) + if g:termdebug_is_running + Echoerr('Terminal debugger already running, cannot run two') + return + endif + + InitScriptVariables() + if !SanityCheck() + return + endif + DeprecationWarnings() + + if exists('#User#TermdebugStartPre') + doauto User TermdebugStartPre + endif + + # Uncomment this line to write logging in "debuglog". + # ch_logfile('debuglog', 'w') + + # Assume current window is the source code window + sourcewin = win_getid() + var wide = 0 + + if exists('g:termdebug_config') + wide = get(g:termdebug_config, 'wide', 0) + elseif exists('g:termdebug_wide') + wide = g:termdebug_wide + endif + if wide > 0 + if &columns < wide + &columns = wide + # If we make the Vim window wider, use the whole left half for the debug + # windows. + allleft = true + endif + vvertical = true + else + vvertical = false + endif + + if way is Way.Prompt + StartDebug_prompt(dict) + else + StartDebug_term(dict) + endif + + if GetDisasmWindow() + var curwinid = win_getid() + GotoAsmwinOrCreateIt() + win_gotoid(curwinid) + endif + + if GetVariablesWindow() + var curwinid = win_getid() + GotoVariableswinOrCreateIt() + win_gotoid(curwinid) + endif + + if exists('#User#TermdebugStartPost') + doauto User TermdebugStartPost + endif + g:termdebug_is_running = true +enddef + +# Use when debugger didn't start or ended. +def CloseBuffers() + var buf_numbers = [promptbufnr, ptybufnr, commbufnr, asmbufnr, varbufnr] + for buf_nr in buf_numbers + if buf_nr > 0 && bufexists(buf_nr) + exe $'bwipe! {buf_nr}' + endif + endfor +enddef + +def IsGdbStarted(): bool + var gdbproc_status = job_status(term_getjob(gdbbufnr)) + if gdbproc_status !=# 'run' + return false + endif + return true +enddef + +# Check if the debugger is running remotely and return a suitable command to pty remotely +def GetRemotePtyCmd(gdb_cmd: list): list + # Check if the user provided a command to launch the program window + var term_cmd = null_list + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'remote_window') + term_cmd = g:termdebug_config['remote_window'] + term_cmd = type(term_cmd) == v:t_list ? copy(term_cmd) : [term_cmd] + else + # Check if it is a remote gdb, the program terminal should be started + # on the remote machine. + const remote_pattern = '^\(ssh\|wsl\)' + if gdb_cmd[0] =~? remote_pattern + var gdb_pos = indexof(gdb_cmd, $'v:val =~? "^{GetCommand()[-1]}"') + if gdb_pos > 0 + # strip debugger call + term_cmd = gdb_cmd[0 : gdb_pos - 1] + # roundtrip to check if socat is available on the remote side + silent call system(join(term_cmd, ' ') .. ' socat -h') + if v:shell_error != 0 + Echowarn('Install socat on the remote machine for a program window better experience') + else + # create a devoted tty slave device and link to stdin/stdout + term_cmd += ['socat', '-dd', '-', 'PTY,raw,echo=0'] + ch_log($'launching remote ttys using "{join(term_cmd)}"') + endif + endif + endif + endif + return term_cmd +enddef + +# Retrieve the remote pty device from a remote terminal +# If interact is true, use remote tty command to get the pty device +def GetRemotePtyDev(bufnr: number, interact: bool): string + var pty: string = null_string + var line = null_string + + for j in range(5) + + if interact + term_sendkeys(bufnr, "tty\") + endif + + for i in range(0, term_getsize(bufnr)[0]) + line = term_getline(bufnr, i) + if line =~? "/dev/pts" + pty = line + break + endif + term_wait(bufnr, 100) + endfor # i + + if pty != null_string + # Clear the terminal window + if interact + term_sendkeys(bufnr, "clear\") + endif + break + endif + + endfor # j + + return pty +enddef + +def CreateProgramPty(cmd: list = null_list): string + ptybufnr = term_start(!cmd ? 'NONE' : cmd, { + term_name: ptybufname, + vertical: vvertical}) + if ptybufnr == 0 + return null_string + endif + ptywin = win_getid() + + if vvertical + # Assuming the source code window will get a signcolumn, use two more + # columns for that, thus one less for the terminal window. + exe $":{(&columns / 2 - 1)}wincmd |" + if allleft + # use the whole left column + wincmd H + endif + endif + + if !cmd + return job_info(term_getjob(ptybufnr))['tty_out'] + else + var interact = indexof(cmd, 'v:val =~? "^socat"') < 0 + var pty = GetRemotePtyDev(ptybufnr, interact) + + if pty !~? "/dev/pts" + Echoerr('Failed to get the program window tty') + exe $'bwipe! {ptybufnr}' + pty = null_string + elseif pty !~? "^/dev/pts" + # remove the prompt + pty = pty->matchstr('/dev/pts/\d\+') + endif + + return pty + endif +enddef + +def CreateCommunicationPty(cmd: list = null_list): string + # Create a hidden terminal window to communicate with gdb + var options: dict = { term_name: commbufname, out_cb: CommOutput, hidden: 1 } + + if !cmd + commbufnr = term_start('NONE', options) + else + # avoid message wrapping that prevents proper parsing + options['term_cols'] = 500 + commbufnr = term_start(cmd, options) + endif + + if commbufnr == 0 + return null_string + endif + + if !cmd + return job_info(term_getjob(commbufnr))['tty_out'] + else + # CommunicationPty only will be reliable with socat + if indexof(cmd, 'v:val =~? "^socat"') < 0 + Echoerr('Communication window should be started with socat') + exe $'bwipe! {commbufnr}' + return null_string + endif + + var pty = GetRemotePtyDev(commbufnr, false) + + if pty !~? "/dev/pts" + Echoerr('Failed to get the communication window tty') + exe $'bwipe! {commbufnr}' + pty = null_string + elseif pty !~? "^/dev/pts" + # remove the prompt + pty = pty->matchstr('/dev/pts/\d\+') + endif + + return pty + endif +enddef + +# Convenient filter to workaround remote escaping issues. +# For example, ssh doesn't escape spaces for the gdb arguments. +# Workaround doing: +# let g:termdebug_config['command_filter'] = function('g:Termdebug_escape_whitespace') +def g:Termdebug_escape_whitespace(args: list): list + var new_args: list = [] + for arg in args + new_args += [substitute(arg, ' ', '\\ ', 'g')] + endfor + return new_args +enddef + +def CreateGdbConsole(dict: dict, pty: string, commpty: string): string + # Start the gdb buffer + var gdb_args = get(dict, 'gdb_args', []) + var proc_args = get(dict, 'proc_args', []) + + var gdb_cmd = GetCommand() + + gdbbufname = gdb_cmd[0] + + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'command_add_args') + gdb_cmd = g:termdebug_config.command_add_args(gdb_cmd, pty) + else + # Add -quiet to avoid the intro message causing a hit-enter prompt. + gdb_cmd += ['-quiet'] + # Disable pagination, it causes everything to stop at the gdb + gdb_cmd += ['-iex', 'set pagination off'] + # Interpret commands while the target is running. This should usually only + # be exec-interrupt, since many commands don't work properly while the + # target is running (so execute during startup). + gdb_cmd += ['-iex', 'set mi-async on'] + # Open a terminal window to run the debugger. + gdb_cmd += ['-tty', pty] + # Command executed _after_ startup is done, provides us with the necessary + # feedback + gdb_cmd += ['-ex', 'echo startupdone\n'] + endif + + # Escape whitespaces in the gdb arguments for ssh remoting + if exists('g:termdebug_config') && !has_key(g:termdebug_config, 'command_filter') && + gdb_cmd[0] =~? '^ssh' + g:termdebug_config['command_filter'] = function('g:Termdebug_escape_whitespace') + endif + + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'command_filter') + gdb_cmd = g:termdebug_config.command_filter(gdb_cmd) + endif + + # Adding arguments requested by the user + gdb_cmd += gdb_args + + ch_log($'executing "{join(gdb_cmd)}"') + gdbbufnr = term_start(gdb_cmd, { + term_name: gdbbufname, + term_finish: 'close', + }) + if gdbbufnr == 0 + return 'Failed to open the gdb terminal window' + endif + gdbwin = win_getid() + + # Wait for the "startupdone" message before sending any commands. + var counter = 0 + var counter_max = 300 + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'timeout') + counter_max = g:termdebug_config['timeout'] + endif + + var success = false + while !success && counter < counter_max + if !IsGdbStarted() + return $'{gdbbufname} exited unexpectedly' + endif + + for lnum in range(1, 200) + if term_getline(gdbbufnr, lnum) =~ 'startupdone' + success = true + endif + endfor + + # Each count is 10ms + counter += 1 + sleep 10m + endwhile + + if !success + return 'Failed to startup the gdb program.' + endif + + # ---- gdb started. Next, let's set the MI interface. --- + # Set arguments to be run. + if !empty(proc_args) + term_sendkeys(gdbbufnr, $"server set args {join(proc_args)}\r") + endif + + # Connect gdb to the communication pty, using the GDB/MI interface. + # Prefix "server" to avoid adding this to the history. + term_sendkeys(gdbbufnr, $"server new-ui mi {commpty}\r") + + # Wait for the response to show up, users may not notice the error and wonder + # why the debugger doesn't work. + counter = 0 + counter_max = 300 + success = false + while !success && counter < counter_max + if !IsGdbStarted() + return $'{gdbbufname} exited unexpectedly' + endif + + var response = '' + for lnum in range(1, 200) + var line1 = term_getline(gdbbufnr, lnum) + var line2 = term_getline(gdbbufnr, lnum + 1) + if line1 =~ 'new-ui mi ' + # response can be in the same line or the next line + response = $"{line1}{line2}" + if response =~ 'Undefined command' + # CHECKME: possibly send a "server show version" here + return 'Sorry, your gdb is too old, gdb 7.12 is required' + endif + if response =~ 'New UI allocated' + # Success! + success = true + endif + elseif line1 =~ 'Reading symbols from' && line2 !~ 'new-ui mi ' + # Reading symbols might take a while, try more times + counter -= 1 + endif + endfor + if response =~ 'New UI allocated' + break + endif + counter += 1 + sleep 10m + endwhile + + if !success + return 'Cannot check if your gdb works, continuing anyway' + endif + return '' +enddef + + +# Open a terminal window without a job, to run the debugged program in. +def StartDebug_term(dict: dict) + + # Retrieve command if remote pty is needed + var gdb_cmd = GetCommand() + var term_cmd = GetRemotePtyCmd(gdb_cmd) + + var programpty = CreateProgramPty(term_cmd) + if programpty is null_string + Echoerr('Failed to open the program terminal window') + CloseBuffers() + return + endif + + var commpty = CreateCommunicationPty(term_cmd) + if commpty is null_string + Echoerr('Failed to open the communication terminal window') + CloseBuffers() + return + endif + + var err_message = CreateGdbConsole(dict, programpty, commpty) + if !empty(err_message) + Echoerr(err_message) + CloseBuffers() + return + endif + + job_setoptions(term_getjob(gdbbufnr), {exit_cb: EndDebug}) + + # Set the filetype, this can be used to add mappings. + set filetype=termdebug + + StartDebugCommon(dict) +enddef + +# Open a window with a prompt buffer to run gdb in. +def StartDebug_prompt(dict: dict) + var gdb_cmd = GetCommand() + gdbbufname = gdb_cmd[0] + + if vvertical + vertical new + else + new + endif + gdbwin = win_getid() + promptbufnr = bufnr('') + prompt_setprompt(promptbufnr, 'gdb> ') + set buftype=prompt + exe $"file {gdbbufname}" + + prompt_setcallback(promptbufnr, PromptCallback) + prompt_setinterrupt(promptbufnr, PromptInterrupt) + + if vvertical + # Assuming the source code window will get a signcolumn, use two more + # columns for that, thus one less for the terminal window. + exe $":{(&columns / 2 - 1)}wincmd |" + endif + + var gdb_args = get(dict, 'gdb_args', []) + var proc_args = get(dict, 'proc_args', []) + + # directly communicate via mi2. This option must precede any -iex options for proper + # interpretation. + gdb_cmd += ['--interpreter=mi2'] + # Disable pagination, it causes everything to stop at the gdb, needs to be run early + gdb_cmd += ['-iex', 'set pagination off'] + # Interpret commands while the target is running. This should usually only + # be exec-interrupt, since many commands don't work properly while the + # target is running (so execute during startup). + gdb_cmd += ['-iex', 'set mi-async on'] + # Add -quiet to avoid the intro message causing a hit-enter prompt. + gdb_cmd += ['-quiet'] + + # Escape whitespaces in the gdb arguments for ssh remoting + if exists('g:termdebug_config') && !has_key(g:termdebug_config, 'command_filter') && + gdb_cmd[0] =~? '^ssh' + g:termdebug_config['command_filter'] = function('g:Termdebug_escape_whitespace') + endif + + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'command_filter') + gdb_cmd = g:termdebug_config.command_filter(gdb_cmd) + endif + + # Adding arguments requested by the user + gdb_cmd += gdb_args + + ch_log($'executing "{join(gdb_cmd)}"') + gdbjob = job_start(gdb_cmd, { + exit_cb: EndDebug, + out_cb: GdbOutCallback + }) + if job_status(gdbjob) != "run" + Echoerr('Failed to start gdb') + exe $'bwipe! {promptbufnr}' + return + endif + exe $'au BufUnload ++once ' .. + 'call job_stop(gdbjob, ''kill'')' + # Mark the buffer modified so that it's not easy to close. + set modified + gdb_channel = job_getchannel(gdbjob) + + # Retrieve command if remote pty is needed + var term_cmd = GetRemotePtyCmd(gdb_cmd) + + # If we are not using socat maybe is a shell: + var interact = indexof(term_cmd, 'v:val =~? "^socat"') < 0 + + if has('terminal') && (term_cmd != null || !has('win32')) + + # Try open terminal twice because sync with gdbjob may not succeed + # the first time (docker daemon for example) + var trials: number = 2 + var pty: string = null_string + + while trials > 0 + + # Run the debugged program in a window. Open it below the + # gdb window. + belowright ptybufnr = term_start( + term_cmd != null ? term_cmd : 'NONE', { + term_name: 'debugged program', + vertical: vvertical + }) + + if ptybufnr == 0 + Echoerr('Failed to open the program terminal window') + job_stop(gdbjob) + return + endif + + ptywin = win_getid() + + if term_cmd is null + pty = job_info(term_getjob(ptybufnr))['tty_out'] + else + # Retrieve remote pty value + pty = GetRemotePtyDev(ptybufnr, interact) + endif + + if pty !~? "/dev/pts" + exe $'bwipe! {ptybufnr}' + --trials + pty = null_string + else + break + endif + endwhile + + if pty !~? "/dev/pts" + Echoerr('Failed to get the program windows tty') + job_stop(gdbjob) + elseif pty !~? "^/dev/pts" + # remove the prompt + pty = pty->matchstr('/dev/pts/\d\+') + endif + + SendCommand($'tty {pty}') + + # Since GDB runs in a prompt window, the environment has not been set to + # match a terminal window, need to do that now. + SendCommand('set env TERM = xterm-color') + SendCommand($'set env ROWS = {winheight(ptywin)}') + SendCommand($'set env LINES = {winheight(ptywin)}') + SendCommand($'set env COLUMNS = {winwidth(ptywin)}') + SendCommand($'set env COLORS = {&t_Co}') + SendCommand($'set env VIM_TERMINAL = {v:version}') + elseif has('win32') + # MS-Windows: run in a new console window for maximum compatibility + SendCommand('set new-console on') + else + # TODO: open a new terminal, get the tty name, pass on to gdb + SendCommand('show inferior-tty') + endif + SendCommand('set print pretty on') + SendCommand('set breakpoint pending on') + + # Set arguments to be run + if !empty(proc_args) + SendCommand($'set args {join(proc_args)}') + endif + + StartDebugCommon(dict) + startinsert +enddef + +def StartDebugCommon(dict: dict) + # Sign used to highlight the line where the program has stopped. + # There can be only one. + sign_define('debugPC', {linehl: 'debugPC'}) + + # Install debugger commands in the text window. + win_gotoid(sourcewin) + InstallCommands() + win_gotoid(gdbwin) + + # Enable showing a balloon with eval info + if has("balloon_eval") || has("balloon_eval_term") + set balloonexpr=TermDebugBalloonExpr() + if has("balloon_eval") + set ballooneval + endif + if has("balloon_eval_term") + set balloonevalterm + endif + endif + + augroup TermDebug + au BufRead * BufRead() + au BufUnload * BufUnloaded() + au OptionSet background Highlight(0, v:option_old, v:option_new) + augroup END + + # Run the command if the bang attribute was given and got to the debug + # window. + if get(dict, 'bang', 0) + SendResumingCommand('-exec-run') + win_gotoid(ptywin) + endif +enddef + +# Send a command to gdb. "cmd" is the string without line terminator. +def SendCommand(cmd: string) + ch_log($'sending to gdb: {cmd}') + if way is Way.Prompt + ch_sendraw(gdb_channel, $"{cmd}\n") + else + term_sendkeys(commbufnr, $"{cmd}\r") + endif +enddef + +# Interrupt or stop the program +def StopCommand() + if way is Way.Prompt + PromptInterrupt() + else + SendCommand('-exec-interrupt') + endif +enddef + +# Continue the program +def ContinueCommand() + if way is Way.Prompt + SendCommand('continue') + else + # using -exec-continue results in CTRL-C in the gdb window not working, + # communicating via commbuf (= use of SendCommand) has the same result + SendCommand('-exec-continue') + # command Continue term_sendkeys(gdbbuf, "continue\r") + endif +enddef + +# This is global so that a user can create their mappings with this. +def g:TermDebugSendCommand(cmd: string) + if way is Way.Prompt + ch_sendraw(gdb_channel, $"{cmd}\n") + else + var do_continue = false + if !stopped + do_continue = true + StopCommand() + sleep 10m + endif + # TODO: should we prepend CTRL-U to clear the command? + term_sendkeys(gdbbufnr, $"{cmd}\r") + if do_continue + ContinueCommand() + endif + endif +enddef + +# Send a command that resumes the program. If the program isn't stopped the +# command is not sent (to avoid a repeated command to cause trouble). +# If the command is sent then reset stopped. +def SendResumingCommand(cmd: string) + if stopped + # reset stopped here, it may take a bit of time before we get a response + stopped = false + ch_log('assume that program is running after this command') + SendCommand(cmd) + else + ch_log($'dropping command, program is running: {cmd}') + endif +enddef + +# Function called when entering a line in the prompt buffer. +def PromptCallback(text: string) + SendCommand(text) +enddef + +# Function called when pressing CTRL-C in the prompt buffer and when placing a +# breakpoint. +def PromptInterrupt() + ch_log('Interrupting gdb') + if has('win32') + # Using job_stop() does not work on MS-Windows, need to send SIGTRAP to + # the debugger program so that gdb responds again. + if pid == 0 + Echoerr('Cannot interrupt gdb, did not find a process ID') + else + debugbreak(pid) + endif + else + job_stop(gdbjob, 'int') + endif +enddef + +# Function called when gdb outputs text. +def GdbOutCallback(channel: channel, text: string) + ch_log($'received from gdb: {text}') + + # Disassembly messages need to be forwarded as-is. + if parsing_disasm_msg > 0 + CommOutput(channel, text) + return + endif + + # Drop the gdb prompt, we have our own. + # Drop status and echo'd commands. + if text == '(gdb) ' || text == '^done' || + (text[0] == '&' && text !~ '^&"disassemble') + return + endif + + var decoded_text = '' + if text =~ '^\^error,msg=' + decoded_text = DecodeMessage(text[11 : ], false) + if !empty(evalexpr) && decoded_text =~ 'A syntax error in expression, near\|No symbol .* in current context' + # Silently drop evaluation errors. + evalexpr = '' + return + endif + elseif text[0] == '~' + decoded_text = DecodeMessage(text[1 : ], false) + else + CommOutput(channel, text) + return + endif + + var curwinid = win_getid() + win_gotoid(gdbwin) + + # Add the output above the current prompt. + append(line('$') - 1, decoded_text) + set modified + + win_gotoid(curwinid) +enddef + +# Decode a message from gdb. "quotedText" starts with a ", return the text up +# to the next unescaped ", unescaping characters: +# - remove line breaks (unless "literal" is true) +# - change \" to " +# - change \\t to \t (unless "literal" is true) +# - change \0xhh to \xhh (disabled for now) +# - change \ooo to octal +# - change \\ to \ +def DecodeMessage(quotedText: string, literal: bool): string + if quotedText[0] != '"' + Echoerr($'DecodeMessage(): missing quote in {quotedText}') + return '' + endif + var msg = quotedText + ->substitute('^"\|[^\\]\zs".*', '', 'g') + ->substitute('\\"', '"', 'g') + #\ multi-byte characters arrive in octal form + #\ NULL-values must be kept encoded as those break the string otherwise + ->substitute('\\000', NullRepl, 'g') + ->substitute('\\\(\o\o\o\)', (m) => nr2char(str2nr(m[1], 8)), 'g') + # You could also use ->substitute('\\\\\(\o\o\o\)', '\=nr2char(str2nr(submatch(1), 8))', "g") + #\ Note: GDB docs also mention hex encodings - the translations below work + #\ but we keep them out for performance-reasons until we actually see + #\ those in mi-returns + ->substitute('\\\\', '\', 'g') + ->substitute(NullRepl, '\\000', 'g') + if !literal + return msg + ->substitute('\\t', "\t", 'g') + ->substitute('\\n', '', 'g') + else + return msg + endif +enddef +const NullRepl = 'XXXNULLXXX' + +# Extract the "name" value from a gdb message with fullname="name". +def GetLocalFullname(msg: string): string + if msg !~ 'fullname' + return '' + endif + + var name = DecodeMessage(substitute(msg, '.*fullname=', '', ''), true) + if has('win32') && name =~ ':\\\\' + # sometimes the name arrives double-escaped + name = substitute(name, '\\\\', '\\', 'g') + endif + + return name +enddef + +# Turn a remote machine local path into a remote one. +def Local2RemotePath(path: string): string + # If no mappings are provided keep the path. + if !exists('g:termdebug_config') || !has_key(g:termdebug_config, 'substitute_path') + return path + endif + + var mappings: list = items(g:termdebug_config['substitute_path']) + + # Try to match the longest local path first. + sort(mappings, (a, b) => len(b[0]) - len(a[0])) + + for [local, remote] in mappings + const pattern = '^' .. escape(local, '\.*~()') + if path =~ pattern + return substitute(path, pattern, escape(remote, '\.*~()'), '') + endif + endfor + + return path +enddef + +# Turn a remote path into a local one to the remote machine. +def Remote2LocalPath(path: string): string + # If no mappings are provided keep the path. + if !exists('g:termdebug_config') || !has_key(g:termdebug_config, 'substitute_path') + return path + endif + + var mappings: list = items(g:termdebug_config['substitute_path']) + + # Try to match the longest remote path first. + sort(mappings, (a, b) => len(b[1]) - len(a[1])) + + for [local, remote] in mappings + const pattern = '^' .. escape(substitute(remote, '[\/]', '[\\/]', 'g'), '.*~()') + if path =~ pattern + return substitute(path, pattern, local, '') + endif + endfor + + return path +enddef + +# Extract the "addr" value from a gdb message with addr="0x0001234". +def GetAsmAddr(msg: string): string + if msg !~ 'addr=' + return '' + endif + + var addr = DecodeMessage(substitute(msg, '.*addr=', '', ''), false) + return addr +enddef + +def EndDebug(job: any, status: any) + if exists('#User#TermdebugStopPre') + doauto User TermdebugStopPre + endif + + if way is Way.Prompt + ch_log("Returning from EndDebug()") + endif + + var curwinid = win_getid() + CloseBuffers() + + # Restore 'signcolumn' in all buffers for which it was set. + win_gotoid(sourcewin) + var was_buf = bufnr() + for bufnr in signcolumn_buflist + if bufexists(bufnr) + exe $":{bufnr}buf" + if exists('b:save_signcolumn') + &signcolumn = b:save_signcolumn + unlet b:save_signcolumn + endif + endif + endfor + if bufexists(was_buf) + exe $":{was_buf}buf" + endif + + DeleteCommands() + + win_gotoid(curwinid) + + &columns = saved_columns + + if has("balloon_eval") || has("balloon_eval_term") + set balloonexpr= + if has("balloon_eval") + set noballooneval + endif + if has("balloon_eval_term") + set noballoonevalterm + endif + endif + + if exists('#User#TermdebugStopPost') + doauto User TermdebugStopPost + endif + + au! TermDebug + g:termdebug_is_running = false +enddef + +# Disassembly window - added by Michael Sartain +# +# - CommOutput: &"disassemble $pc\n" +# - CommOutput: ~"Dump of assembler code for function main(int, char**):\n" +# - CommOutput: ~" 0x0000555556466f69 <+0>:\tpush rbp\n" +# ... +# - CommOutput: ~" 0x0000555556467cd0:\tpop rbp\n" +# - CommOutput: ~" 0x0000555556467cd1:\tret \n" +# - CommOutput: ~"End of assembler dump.\n" +# - CommOutput: ^done + +# - CommOutput: &"disassemble $pc\n" +# - CommOutput: &"No function contains specified address.\n" +# - CommOutput: ^error,msg="No function contains specified address." +def HandleDisasmMsg(msg: string) + if msg =~ '^\^done' + var curwinid = win_getid() + if win_gotoid(asmwin) + silent! :%delete _ + setline(1, asm_lines) + set nomodified + set filetype=asm + + var lnum = search($'^{asm_addr}') + if lnum != 0 + sign_unplace('TermDebug', {id: asm_id}) + sign_place(asm_id, 'TermDebug', 'debugPC', '%', {lnum: lnum}) + endif + + win_gotoid(curwinid) + endif + + parsing_disasm_msg = 0 + asm_lines = [] + + elseif msg =~ '^\^error,msg=' + if parsing_disasm_msg == 1 + # Disassemble call ran into an error. This can happen when gdb can't + # find the function frame address, so let's try to disassemble starting + # at current PC + SendCommand('disassemble $pc,+100') + endif + parsing_disasm_msg = 0 + elseif msg =~ '^&"disassemble \$pc' + if msg =~ '+100' + # This is our second disasm attempt + parsing_disasm_msg = 2 + endif + elseif msg !~ '^&"disassemble' + var value = substitute(msg, '^\~\"[ ]*', '', '') + ->substitute('^=>[ ]*', '', '') + ->substitute('\\n\"\r$', '', '') + ->substitute('\\n\"$', '', '') + ->substitute('\r', '', '') + ->substitute('\\t', ' ', 'g') + + if value != '' || !empty(asm_lines) + add(asm_lines, value) + endif + endif +enddef + + +def ParseVarinfo(varinfo: string): dict + var dict = {} + var nameIdx = matchstrpos(varinfo, '{name="\([^"]*\)"') + dict['name'] = varinfo[nameIdx[1] + 7 : nameIdx[2] - 2] + var typeIdx = matchstrpos(varinfo, ',type="\([^"]*\)"') + # 'type' maybe is a url-like string, + # try to shorten it and show only the /tail + dict['type'] = (varinfo[typeIdx[1] + 7 : typeIdx[2] - 2])->fnamemodify(':t') + var valueIdx = matchstrpos(varinfo, ',value="\(.*\)"}') + if valueIdx[1] == -1 + dict['value'] = 'Complex value' + else + dict['value'] = varinfo[valueIdx[1] + 8 : valueIdx[2] - 3] + endif + return dict +enddef + +def HandleVariablesMsg(msg: string) + var curwinid = win_getid() + if win_gotoid(varwin) + silent! :%delete _ + var spaceBuffer = 20 + var spaces = repeat(' ', 16) + setline(1, $'Type{spaces}Name{spaces}Value') + var cnt = 1 + var capture = '{name=".\{-}",\%(arg=".\{-}",\)\{0,1\}type=".\{-}"\%(,value=".\{-}"\)\{0,1\}}' + var varinfo = matchstr(msg, capture, 0, cnt) + + while varinfo != '' + var vardict = ParseVarinfo(varinfo) + setline(cnt + 1, vardict['type'] .. + repeat(' ', max([20 - len(vardict['type']), 1])) .. + vardict['name'] .. + repeat(' ', max([20 - len(vardict['name']), 1])) .. + vardict['value']) + cnt += 1 + varinfo = matchstr(msg, capture, 0, cnt) + endwhile + endif + win_gotoid(curwinid) +enddef + + +# Handle a message received from gdb on the GDB/MI interface. +def CommOutput(chan: channel, message: string) + # We may use the standard MI message formats? See #10300 on github that mentions + # the following links: + # https://sourceware.org/gdb/current/onlinedocs/gdb.html/GDB_002fMI-Input-Syntax.html#GDB_002fMI-Input-Syntax + # https://sourceware.org/gdb/current/onlinedocs/gdb.html/GDB_002fMI-Output-Syntax.html#GDB_002fMI-Output-Syntax + + var msgs = split(message, "\r") + + var msg = '' + for received_msg in msgs + # remove prefixed NL + if received_msg[0] == "\n" + msg = received_msg[1 : ] + else + msg = received_msg + endif + + if parsing_disasm_msg > 0 + HandleDisasmMsg(msg) + elseif msg != '' + if msg =~ '^\(\*stopped\|\*running\|=thread-selected\)' + HandleCursor(msg) + elseif msg =~ '^\^done,bkpt=' || msg =~ '^=breakpoint-created,' + HandleNewBreakpoint(msg, false) + elseif msg =~ '^=breakpoint-modified,' + HandleNewBreakpoint(msg, true) + elseif msg =~ '^=breakpoint-deleted,' + HandleBreakpointDelete(msg) + elseif msg =~ '^=thread-group-started' + HandleProgramRun(msg) + elseif msg =~ '^\^done,value=' + HandleEvaluate(msg) + elseif msg =~ '^\^error,msg=' + HandleError(msg) + elseif msg =~ '^&"disassemble' + parsing_disasm_msg = 1 + asm_lines = [] + HandleDisasmMsg(msg) + elseif msg =~ '^\^done,variables=' + HandleVariablesMsg(msg) + endif + endif + endfor +enddef + +def GotoProgram() + if has('win32') && !ptywin + if executable('powershell') + system(printf('powershell -Command "add-type -AssemblyName microsoft.VisualBasic;[Microsoft.VisualBasic.Interaction]::AppActivate(%d);"', pid)) + endif + else + win_gotoid(ptywin) + endif +enddef + +# Install commands in the current window to control the debugger. +def InstallCommands() + + command -nargs=? Break SetBreakpoint() + command -nargs=? Tbreak SetBreakpoint(, true) + command ToggleBreak ToggleBreak() + command Clear ClearBreakpoint() + command Step SendResumingCommand('-exec-step') + command Over SendResumingCommand('-exec-next') + command -nargs=? Until Until() + command Finish SendResumingCommand('-exec-finish') + command -nargs=* Run Run() + command -nargs=* Arguments SendResumingCommand('-exec-arguments ' .. ) + command Stop StopCommand() + command Continue ContinueCommand() + command RunOrContinue RunOrContinue() + + command -nargs=* Frame Frame() + command -count=1 Up Up() + command -count=1 Down Down() + + command -range -nargs=* Evaluate Evaluate(, ) + command Gdb win_gotoid(gdbwin) + command Program GotoProgram() + command Source GotoSourcewinOrCreateIt() + command Asm GotoAsmwinOrCreateIt() + command Var GotoVariableswinOrCreateIt() + command Winbar InstallWinbar(true) + + var map = true + if exists('g:termdebug_config') + map = get(g:termdebug_config, 'map_K', true) + elseif exists('g:termdebug_map_K') + map = g:termdebug_map_K + endif + + if map + if !empty(saved_K_map) && !saved_K_map.buffer || empty(saved_K_map) + nnoremap K :Evaluate + endif + if !empty(saved_visual_K_map) && !saved_visual_K_map.buffer || empty(saved_visual_K_map) + xnoremap K :Evaluate + endif + endif + + map = true + if exists('g:termdebug_config') + map = get(g:termdebug_config, 'map_plus', true) + endif + if map + if !empty(saved_plus_map) && !saved_plus_map.buffer || empty(saved_plus_map) + nnoremap + $'{v:count1}Up' + endif + endif + + map = true + if exists('g:termdebug_config') + map = get(g:termdebug_config, 'map_minus', true) + endif + if map + if !empty(saved_minus_map) && !saved_minus_map.buffer || empty(saved_minus_map) + nnoremap - $'{v:count1}Down' + endif + endif + + + if has('menu') && &mouse != '' + InstallWinbar(false) + + var pup = true + if exists('g:termdebug_config') + pup = get(g:termdebug_config, 'popup', true) + elseif exists('g:termdebug_popup') + pup = g:termdebug_popup + endif + + if pup + &mousemodel = 'popup_setpos' + an 1.200 PopUp.-SEP3- + an 1.210 PopUp.Set\ breakpoint Break + an 1.220 PopUp.Clear\ breakpoint Clear + an 1.230 PopUp.Run\ until Until + an 1.240 PopUp.Evaluate Evaluate + endif + endif + +enddef + +# Install the window toolbar in the current window. +def InstallWinbar(force: bool) + # install the window toolbar by default, can be disabled in the config + var winbar = true + if exists('g:termdebug_config') + winbar = get(g:termdebug_config, 'winbar', true) + endif + + if has('menu') && &mouse != '' && (winbar || force) + nnoremenu WinBar.Step :Step + nnoremenu WinBar.Next :Over + nnoremenu WinBar.Finish :Finish + nnoremenu WinBar.Cont :Continue + nnoremenu WinBar.Stop :Stop + nnoremenu WinBar.Eval :Evaluate + add(winbar_winids, win_getid()) + endif +enddef + +# Delete installed debugger commands in the current window. +def DeleteCommands() + delcommand Break + delcommand Tbreak + delcommand Clear + delcommand Step + delcommand Over + delcommand Until + delcommand Finish + delcommand Run + delcommand Arguments + delcommand Stop + delcommand Continue + delcommand Frame + delcommand Up + delcommand Down + delcommand Evaluate + delcommand Gdb + delcommand Program + delcommand Source + delcommand Asm + delcommand Var + delcommand Winbar + delcommand RunOrContinue + delcommand ToggleBreak + + + if !empty(saved_K_map) && !saved_K_map.buffer + mapset(saved_K_map) + elseif empty(saved_K_map) + silent! nunmap K + endif + + if !empty(saved_visual_K_map) && !saved_visual_K_map.buffer + mapset(saved_visual_K_map) + elseif empty(saved_visual_K_map) + silent! xunmap K + endif + + if !empty(saved_plus_map) && !saved_plus_map.buffer + mapset(saved_plus_map) + elseif empty(saved_plus_map) + silent! nunmap + + endif + + if !empty(saved_minus_map) && !saved_minus_map.buffer + mapset(saved_minus_map) + elseif empty(saved_minus_map) + silent! nunmap - + endif + + + if has('menu') + # Remove the WinBar entries from all windows where it was added. + var curwinid = win_getid() + for winid in winbar_winids + if win_gotoid(winid) + aunmenu WinBar.Step + aunmenu WinBar.Next + aunmenu WinBar.Finish + aunmenu WinBar.Cont + aunmenu WinBar.Stop + aunmenu WinBar.Eval + endif + endfor + win_gotoid(curwinid) + + &mousemodel = saved_mousemodel + try + aunmenu PopUp.-SEP3- + aunmenu PopUp.Set\ breakpoint + aunmenu PopUp.Clear\ breakpoint + aunmenu PopUp.Run\ until + aunmenu PopUp.Evaluate + catch + # ignore any errors in removing the PopUp menu + endtry + endif + + sign_unplace('TermDebug') + sign_undefine('debugPC') + sign_undefine(BreakpointSigns->map("'debugBreakpoint' .. v:val")) +enddef + +def QuoteArg(x: string): string + # Find all the occurrences of " and \ and escape them and double quote + # the resulting string. + return printf('"%s"', x ->substitute('[\\"]', '\\&', 'g')) +enddef + +def DefaultBreakpointLocation(): string + # Use the fname:lnum format, older gdb can't handle --source. + var fname = Remote2LocalPath(expand('%:p')) + return QuoteArg($"{fname}:{line('.')}") +enddef + +def TokenizeBreakpointArguments(args: string): list> + var tokens: list> = [] + var start = -1 + var escaped = false + var in_quotes = false + + var i = 0 + for ch in args + if start < 0 && ch !~ '\s' + start = i + endif + if start >= 0 + if escaped + escaped = false + elseif ch == '\' + escaped = true + elseif ch == '"' + in_quotes = !in_quotes + elseif !in_quotes && ch =~ '\s' + tokens->add({text: args[start : i - 1], start: start, end: i - 1}) + start = -1 + endif + endif + i += 1 + endfor + + if start >= 0 + tokens->add({text: args[start :], start: start, end: i - 1}) + endif + return tokens +enddef + +def BuildBreakpointCommand(at: string, tbreak=false): string + var args = trim(at) + var cmd = '-break-insert' + if tbreak + cmd ..= ' -t' + endif + + if empty(args) + return $'{cmd} {DefaultBreakpointLocation()}' + endif + + var condition = '' + var prefix = args + for token in TokenizeBreakpointArguments(args) + if token.text == 'if' && token.end < strchars(args) - 1 + condition = trim(args[token.end + 1 :]) + prefix = token.start > 0 ? trim(args[: token.start - 1]) : '' + break + endif + endfor + + var prefix_tokens = TokenizeBreakpointArguments(prefix) + var location = prefix + var thread = '' + if len(prefix_tokens) >= 2 + && prefix_tokens[-2].text == 'thread' + && prefix_tokens[-1].text =~ '^\d\+$' + thread = prefix_tokens[-1].text + location = join(prefix_tokens[: -3]->mapnew('v:val.text'), ' ') + endif + + if empty(trim(location)) + location = DefaultBreakpointLocation() + endif + if !empty(thread) + cmd ..= $' -p {thread}' + endif + if !empty(condition) + cmd ..= $' -c {QuoteArg(condition)}' + endif + return $'{cmd} {trim(location)}' +enddef + +# :Until - Execute until past a specified position or current line +def Until(at: string) + + if stopped + # reset stopped here, it may take a bit of time before we get a response + stopped = false + ch_log('assume that program is running after this command') + + # Use the fname:lnum format + var fname = Remote2LocalPath(expand('%:p')) + var AT = empty(at) ? QuoteArg($"{fname}:{line('.')}") : at + SendCommand($'-exec-until {AT}') + else + ch_log('dropping command, program is running: exec-until') + endif +enddef + +# :Break - Set a breakpoint at the cursor position. +def SetBreakpoint(at: string, tbreak=false) + # Setting a breakpoint may not work while the program is running. + # Interrupt to make it work. + var do_continue = false + if !stopped + do_continue = true + StopCommand() + sleep 10m + endif + + var cmd = BuildBreakpointCommand(at, tbreak) + SendCommand(cmd) + if do_continue + ContinueCommand() + endif +enddef + +def ClearBreakpoint() + var fname = Remote2LocalPath(expand('%:p')) + fname = fnameescape(fname) + var lnum = line('.') + var bploc = printf('%s:%d', fname, lnum) + var nr = 0 + if has_key(breakpoint_locations, bploc) + var idx = 0 + for id in breakpoint_locations[bploc] + if has_key(breakpoints, id) + # Assume this always works, the reply is simply "^done". + SendCommand($'-break-delete {id}') + for subid in keys(breakpoints[id]) + sign_unplace('TermDebug', + {id: Breakpoint2SignNumber(id, str2nr(subid))}) + endfor + remove(breakpoints, id) + remove(breakpoint_locations[bploc], idx) + nr = id + break + else + idx += 1 + endif + endfor + + if nr != 0 + if empty(breakpoint_locations[bploc]) + remove(breakpoint_locations, bploc) + endif + echomsg $'Breakpoint {nr} cleared from line {lnum}.' + else + Echoerr($'Internal error trying to remove breakpoint at line {lnum}!') + endif + else + echomsg $'No breakpoint to remove at line {lnum}.' + endif +enddef + +def ToggleBreak() + var fname = Remote2LocalPath(expand('%:p')) + fname = fnameescape(fname) + var lnum = line('.') + var bploc = printf('%s:%d', fname, lnum) + if has_key(breakpoint_locations, bploc) + while has_key(breakpoint_locations, bploc) + ClearBreakpoint() + endwhile + else + SetBreakpoint("") + endif +enddef + +def Run(args: string) + if args != '' + SendResumingCommand($'-exec-arguments {args}') + endif + SendResumingCommand('-exec-run') +enddef + +def RunOrContinue() + if running + ContinueCommand() + else + Run('') + endif +enddef + +# :Frame - go to a specific frame in the stack +def Frame(arg: string) + # Note: we explicit do not use mi's command + # call SendCommand('-stack-select-frame "' . arg .'"') + # as we only get a "done" mi response and would have to open the file + # 'manually' - using cli command "frame" provides us with the mi response + # already parsed and allows for more formats + if arg =~ '^\d\+$' || arg == '' + # specify frame by number + SendCommand($'-interpreter-exec mi "frame {arg}"') + elseif arg =~ '^0x[0-9a-fA-F]\+$' + # specify frame by stack address + SendCommand($'-interpreter-exec mi "frame address {arg}"') + else + # specify frame by function name + SendCommand($'-interpreter-exec mi "frame function {arg}"') + endif +enddef + +# :Up - go count frames in the stack "higher" +def Up(count: number) + # the 'correct' one would be -stack-select-frame N, but we don't know N + SendCommand($'-interpreter-exec console "up {count}"') +enddef + +# :Down - go count frames in the stack "below" +def Down(count: number) + # the 'correct' one would be -stack-select-frame N, but we don't know N + SendCommand($'-interpreter-exec console "down {count}"') +enddef + +def SendEval(expr: string) + # check for "likely" boolean expressions, in which case we take it as lhs + var exprLHS = substitute(expr, ' *=.*', '', '') + if expr =~ "[=!<>]=" + exprLHS = expr + endif + + # encoding expression to prevent bad errors + var expr_escaped = expr + ->substitute('\\', '\\\\', 'g') + ->substitute('"', '\\"', 'g') + SendCommand($'-data-evaluate-expression "{expr_escaped}"') + evalexpr = exprLHS +enddef + +# Returns whether to evaluate in a popup or not, defaults to false. +def EvaluateInPopup(): bool + if exists('g:termdebug_config') + return get(g:termdebug_config, 'evaluate_in_popup', false) + endif + return false +enddef + +# :Evaluate - evaluate what is specified / under the cursor +def Evaluate(range: number, arg: string) + var expr = GetEvaluationExpression(range, arg) + if EvaluateInPopup() + evalInPopup = true + evalExprResult = '' + else + echomsg $'expr: {expr}' + endif + ignoreEvalError = false + SendEval(expr) +enddef + + +# get what is specified / under the cursor +def GetEvaluationExpression(range: number, arg: string): string + var expr = '' + if arg != '' + # user supplied evaluation + expr = CleanupExpr(arg) + expr = substitute(expr, '"\([^"]*\)": *', '\1=', 'g') + elseif range == 2 + # no evaluation but provided but range set + var pos = getcurpos() + var regst = getreg('v', 1, 1) + var regt = getregtype('v') + normal! gv"vy + expr = CleanupExpr(@v) + setpos('.', pos) + setreg('v', regst, regt) + else + # no evaluation provided: get from C-expression under cursor + # TODO: allow filetype specific lookup #9057 + expr = expand('') + endif + return expr +enddef + +# clean up expression that may get in because of range +# (newlines and surrounding whitespace) +# As it can also be specified via ex-command for assignments this function +# may not change the "content" parts (like replacing contained spaces) +def CleanupExpr(passed_expr: string): string + # replace all embedded newlines/tabs/... + var expr = substitute(passed_expr, '\_s', ' ', 'g') + + if &filetype ==# 'cobol' + # extra cleanup for COBOL: + # - a semicolon nmay be used instead of a space + # - a trailing comma or period is ignored as it commonly separates/ends + # multiple expr + expr = substitute(expr, ';', ' ', 'g') + expr = substitute(expr, '[,.]\+ *$', '', '') + endif + + # get rid of leading and trailing spaces + expr = substitute(expr, '^ *', '', '') + expr = substitute(expr, ' *$', '', '') + return expr +enddef + +def Balloon_show(expr: string) + if has("balloon_eval") || has("balloon_eval_term") + balloon_show(expr) + endif +enddef + +def Popup_format(expr: string): list + var lines = expr + ->substitute('{', '{\n', 'g') + ->substitute('}', '\n}', 'g') + ->substitute(',', ',\n', 'g') + ->split('\n') + var indentation = 0 + var formatted_lines = [] + for line in lines + var stripped = line->substitute('^\s\+', '', '') + if stripped =~ '^}' + indentation -= 2 + endif + formatted_lines->add(repeat(' ', indentation) .. stripped) + if stripped =~ '{$' + indentation += 2 + endif + endfor + return formatted_lines +enddef + +def Popup_show(expr: string) + var formatted = Popup_format(expr) + if evalPopupId != -1 + popup_close(evalPopupId) + endif + # Specifying the line is necessary, as the winbar seems to cause issues + # otherwise. I.e., the popup would be shown one line too high. + evalPopupId = popup_atcursor(formatted, {'line': 'cursor-1'}) +enddef + +def HandleEvaluate(msg: string) + var value = msg + ->substitute('.*value="\(.*\)"', '\1', '') + ->substitute('\\"', '"', 'g') + ->substitute('\\\\', '\\', 'g') + #\ multi-byte characters arrive in octal form, replace everything but NULL values + ->substitute('\\000', NullRepl, 'g') + ->substitute('\\\(\o\o\o\)', (m) => nr2char(str2nr(m[1], 8)), 'g') + #\ Note: GDB docs also mention hex encodings - the translations below work + #\ but we keep them out for performance-reasons until we actually see + #\ those in mi-returns + #\ ->substitute('\\0x00', NullRep, 'g') + #\ ->substitute('\\0x\(\x\x\)', {-> eval('"\x' .. submatch(1) .. '"')}, 'g') + ->substitute(NullRepl, '\\000', 'g') + if evalFromBalloonExpr || evalInPopup + if empty(evalExprResult) + evalExprResult = $'{evalexpr}: {value}' + else + evalExprResult ..= $' = {value}' + endif + else + echomsg $'"{evalexpr}": {value}' + endif + + if evalexpr[0] != '*' && value =~ '^0x' && value != '0x0' && value !~ '"$' + # Looks like a pointer, also display what it points to. + ignoreEvalError = true + SendEval($'*{evalexpr}') + elseif evalFromBalloonExpr + Balloon_show(evalExprResult) + evalFromBalloonExpr = false + elseif evalInPopup + Popup_show(evalExprResult) + evalInPopup = false + endif +enddef + + +# Show a balloon with information of the variable under the mouse pointer, +# if there is any. +def TermDebugBalloonExpr(): string + if v:beval_winid != sourcewin + return '' + endif + if !stopped + # Only evaluate when stopped, otherwise setting a breakpoint using the + # mouse triggers a balloon. + return '' + endif + evalFromBalloonExpr = true + evalExprResult = '' + ignoreEvalError = true + var expr = CleanupExpr(v:beval_text) + SendEval(expr) + return '' +enddef + +# Handle an error. +def HandleError(msg: string) + if ignoreEvalError + # Result of SendEval() failed, ignore. + ignoreEvalError = false + evalFromBalloonExpr = true + return + endif + var msgVal = substitute(msg, '.*msg="\(.*\)"', '\1', '') + Echoerr(substitute(msgVal, '\\"', '"', 'g')) +enddef + +def GotoSourcewinOrCreateIt() + if !win_gotoid(sourcewin) + new + sourcewin = win_getid() + InstallWinbar(false) + endif +enddef + + +def GetDisasmWindow(): bool + # TODO Remove the deprecated features after 1 Jan 2025. + var val: any + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'disasm_window') + val = g:termdebug_config['disasm_window'] + elseif exists('g:termdebug_disasm_window') + val = g:termdebug_disasm_window + else + val = false + endif + return typename(val) == 'number' ? val != 0 : val +enddef + +def GetDisasmWindowHeight(): number + if exists('g:termdebug_config') + return get(g:termdebug_config, 'disasm_window_height', 0) + endif + if exists('g:termdebug_disasm_window') && g:termdebug_disasm_window > 1 + return g:termdebug_disasm_window + endif + return 0 +enddef + +def GotoAsmwinOrCreateIt() + var mdf = '' + if !win_gotoid(asmwin) + if win_gotoid(sourcewin) + # 60 is approx spaceBuffer * 3 + if winwidth(0) > (78 + 60) + mdf = 'vert' + exe $'{mdf} :60new' + else + exe 'rightbelow new' + endif + else + exe 'new' + endif + + asmwin = win_getid() + + setlocal nowrap + setlocal number + setlocal noswapfile + setlocal buftype=nofile + setlocal bufhidden=wipe + setlocal signcolumn=no + setlocal modifiable + + if asmbufnr > 0 && bufexists(asmbufnr) + exe $'buffer {asmbufnr}' + else + exe $"silent file {asmbufname}" + asmbufnr = bufnr(asmbufname) + endif + + if mdf != 'vert' && GetDisasmWindowHeight() > 0 + exe $'resize {GetDisasmWindowHeight()}' + endif + endif + + if asm_addr != '' + var lnum = search($'^{asm_addr}') + if lnum == 0 + if stopped + SendCommand('disassemble $pc') + endif + else + sign_unplace('TermDebug', {id: asm_id}) + sign_place(asm_id, 'TermDebug', 'debugPC', '%', {lnum: lnum}) + endif + endif +enddef + +def GetVariablesWindow(): bool + # TODO Remove the deprecated features after 1 Jan 2025. + var val: any + if exists('g:termdebug_config') && has_key(g:termdebug_config, 'variables_window') + val = g:termdebug_config['variables_window'] + elseif exists('g:termdebug_variables_window') + val = g:termdebug_variables_window + else + val = false + endif + return typename(val) == 'number' ? val != 0 : val +enddef + +def GetVariablesWindowHeight(): number + if exists('g:termdebug_config') + return get(g:termdebug_config, 'variables_window_height', 0) + endif + if exists('g:termdebug_variables_window') && g:termdebug_variables_window > 1 + return g:termdebug_variables_window + endif + return 0 +enddef + + +def GotoVariableswinOrCreateIt() + var mdf = '' + if !win_gotoid(varwin) + if win_gotoid(sourcewin) + # 60 is approx spaceBuffer * 3 + if winwidth(0) > (78 + 60) + mdf = 'vert' + exe $'{mdf} :60new' + else + exe 'rightbelow new' + endif + else + exe 'new' + endif + + varwin = win_getid() + + setlocal nowrap + setlocal noswapfile + setlocal buftype=nofile + setlocal bufhidden=wipe + setlocal signcolumn=no + setlocal modifiable + + # If exists, then open, otherwise create + if varbufnr > 0 && bufexists(varbufnr) + exe $'buffer {varbufnr}' + else + exe $"silent file {varbufname}" + varbufnr = bufnr(varbufname) + endif + + if mdf != 'vert' && GetVariablesWindowHeight() > 0 + exe $'resize {GetVariablesWindowHeight()}' + endif + endif + + if running + SendCommand('-stack-list-variables 2') + endif +enddef + +# Handle stopping and running message from gdb. +# Will update the sign that shows the current position. +def HandleCursor(msg: string) + var wid = win_getid() + + if msg =~ '^\*stopped' + ch_log('program stopped') + stopped = true + if msg =~ '^\*stopped,reason="exited-normally"' + running = false + endif + elseif msg =~ '^\*running' + ch_log('program running') + stopped = false + running = true + endif + + var fname = '' + if msg =~ 'fullname=' + fname = GetLocalFullname(msg) + endif + + if msg =~ 'addr=' + var asm_addr_local = GetAsmAddr(msg) + if asm_addr_local != '' + asm_addr = asm_addr_local + + var curwinid = win_getid() + var lnum = 0 + if win_gotoid(asmwin) + lnum = search($'^{asm_addr}') + if lnum == 0 + SendCommand('disassemble $pc') + else + sign_unplace('TermDebug', {id: asm_id}) + sign_place(asm_id, 'TermDebug', 'debugPC', '%', {lnum: lnum}) + endif + + win_gotoid(curwinid) + endif + endif + endif + + if running && stopped && bufwinnr(varbufname) != -1 + SendCommand('-stack-list-variables 2') + endif + + # Translate to remote file name if needed. + const fremote = Local2RemotePath(fname) + + if msg =~ '^\(\*stopped\|=thread-selected\)' && (fremote != fname || filereadable(fname)) + var lnum = substitute(msg, '.*line="\([^"]*\)".*', '\1', '') + if lnum =~ '^[0-9]*$' + GotoSourcewinOrCreateIt() + if expand('%:p') != fnamemodify(fremote, ':p') + echomsg $"different fname: '{expand('%:p')}' vs '{fnamemodify(fremote, ':p')}'" + augroup Termdebug + # Always open a file read-only instead of showing the ATTENTION + # prompt, since it is unlikely we want to edit the file. + # The file may be changed but not saved, warn for that. + au SwapExists * echohl WarningMsg + | echo 'Warning: file is being edited elsewhere' + | echohl None + | v:swapchoice = 'o' + augroup END + if &modified + # TODO: find existing window + exe $'split {fnameescape(fremote)}' + sourcewin = win_getid() + InstallWinbar(false) + else + exe $'edit {fnameescape(fremote)}' + endif + augroup Termdebug + au! SwapExists + augroup END + endif + exe $":{lnum}" + normal! zv + sign_unplace('TermDebug', {id: pc_id}) + sign_place(pc_id, 'TermDebug', 'debugPC', fremote, + {lnum: str2nr(lnum), priority: 110}) + if !exists('b:save_signcolumn') + b:save_signcolumn = &signcolumn + add(signcolumn_buflist, bufnr()) + endif + setlocal signcolumn=yes + endif + elseif !stopped || fname != '' + sign_unplace('TermDebug', {id: pc_id}) + endif + + win_gotoid(wid) +enddef + +# Create breakpoint sign +def CreateBreakpoint(id: number, subid: number, enabled: string) + var nr = printf('%d.%d', id, subid) + if index(BreakpointSigns, nr) == -1 + add(BreakpointSigns, nr) + var hiName = '' + if enabled == "n" + hiName = "debugBreakpointDisabled" + else + hiName = "debugBreakpoint" + endif + var label = '' + if exists('g:termdebug_config') + if has_key(g:termdebug_config, 'signs') + label = get(g:termdebug_config.signs, id - 1, '') + endif + if label == '' && has_key(g:termdebug_config, 'sign') + label = g:termdebug_config['sign'] + endif + if label == '' && has_key(g:termdebug_config, 'sign_decimal') + label = printf('%02d', id) + if id > 99 + label = '9+' + endif + endif + endif + if label == '' + label = printf('%02X', id) + if id > 255 + label = 'F+' + endif + endif + sign_define($'debugBreakpoint{nr}', + {text: slice(label, 0, 2), + texthl: hiName}) + endif +enddef + +def SplitMsg(str: string): list + return split(str, '{.\{-}}\zs') +enddef + + +# Handle setting a breakpoint +# Will update the sign that shows the breakpoint +def HandleNewBreakpoint(msg: string, modifiedFlag: bool) + var nr = '' + + if msg !~ 'fullname=' + # a watch or a pending breakpoint does not have a file name + if msg =~ 'pending=' + nr = substitute(msg, '.*number=\"\([0-9.]*\)\".*', '\1', '') + var target = substitute(msg, '.*pending=\"\([^"]*\)\".*', '\1', '') + echomsg $'Breakpoint {nr} ({target}) pending.' + endif + return + endif + + for mm in SplitMsg(msg) + var fname = GetLocalFullname(mm) + if empty(fname) + continue + endif + var fremote = Local2RemotePath(fname) + nr = substitute(mm, '.*number="\([0-9.]*\)\".*', '\1', '') + if empty(nr) + return + endif + + # If "nr" is 123 it becomes "123.0" and subid is "0". + # If "nr" is 123.4 it becomes "123.4.0" and subid is "4"; "0" is discarded. + var [id, subid; _] = map(split(nr .. '.0', '\.'), 'str2nr(v:val) + 0') + # var [id, subid; _] = map(split(nr .. '.0', '\.'), 'v:val + 0') + var enabled = substitute(mm, '.*enabled="\([yn]\)".*', '\1', '') + CreateBreakpoint(id, subid, enabled) + + var entries = {} + var entry = {} + if has_key(breakpoints, id) + entries = breakpoints[id] + else + breakpoints[id] = entries + endif + if has_key(entries, subid) + entry = entries[subid] + else + entries[subid] = entry + endif + + var lnum = str2nr(substitute(mm, '.*line="\([^"]*\)".*', '\1', '')) + entry['fname'] = fname + entry['lnum'] = lnum + + var bploc = printf('%s:%d', fname, lnum) + if !has_key(breakpoint_locations, bploc) + breakpoint_locations[bploc] = [] + endif + if breakpoint_locations[bploc]->index(id) == -1 + # Make sure all ids are unique + breakpoint_locations[bploc] += [id] + endif + + var posMsg = '' + if bufloaded(fremote) + PlaceSign(id, subid, entry) + posMsg = $' at line {lnum}.' + else + posMsg = $' in {fremote} at line {lnum}.' + endif + var actionTaken = '' + if !modifiedFlag + actionTaken = 'created' + elseif enabled == 'n' + actionTaken = 'disabled' + else + actionTaken = 'enabled' + endif + echom $'Breakpoint {nr} {actionTaken}{posMsg}' + endfor +enddef + + +def PlaceSign(id: number, subid: number, entry: dict) + var nr = printf('%d.%d', id, subid) + var remote = Local2RemotePath(entry['fname']) + sign_place(Breakpoint2SignNumber(id, subid), 'TermDebug', + $'debugBreakpoint{nr}', remote, + {lnum: entry['lnum'], priority: 110}) + entry['placed'] = 1 +enddef + +# Handle deleting a breakpoint +# Will remove the sign that shows the breakpoint +def HandleBreakpointDelete(msg: string) + var id = substitute(msg, '.*id="\([0-9]*\)\".*', '\1', '') + if empty(id) + return + endif + if has_key(breakpoints, id) + for [subid, entry] in items(breakpoints[id]) + if has_key(entry, 'placed') + sign_unplace('TermDebug', + {id: Breakpoint2SignNumber(str2nr(id), str2nr(subid))}) + remove(entry, 'placed') + endif + endfor + remove(breakpoints, id) + echomsg $'Breakpoint {id} cleared.' + endif +enddef + +# Handle the debugged program starting to run. +# Will store the process ID in pid +def HandleProgramRun(msg: string) + var nr = str2nr(substitute(msg, '.*pid="\([0-9]*\)\".*', '\1', '')) + if nr == 0 + return + endif + pid = nr + ch_log($'Detected process ID: {pid}') +enddef + +# Handle a BufRead autocommand event: place any signs. +def BufRead() + var fname = expand(':p') + for [id, entries] in items(breakpoints) + for [subid, entry] in items(entries) + if entry['fname'] == fname + PlaceSign(str2nr(id), str2nr(subid), entry) + endif + endfor + endfor +enddef + +# Handle a BufUnloaded autocommand event: unplace any signs. +def BufUnloaded() + var fname = expand(':p') + for [id, entries] in items(breakpoints) + for [subid, entry] in items(entries) + if entry['fname'] == fname + entry['placed'] = 0 + endif + endfor + endfor +enddef + +InitHighlight() +InitAutocmd() + +# vim: sw=2 sts=2 et diff --git a/git/usr/share/vim/vim92/syntax/README.txt b/git/usr/share/vim/vim92/syntax/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..756ae415879a0cb7c2cfb7bd5e990fcb8a57c5ab --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/README.txt @@ -0,0 +1,43 @@ +This directory contains Vim scripts for syntax highlighting. + +These scripts are not for a language, but are used by Vim itself: + +syntax.vim Used for the ":syntax on" command. Uses synload.vim. + +manual.vim Used for the ":syntax manual" command. Uses synload.vim. + +synload.vim Contains autocommands to load a language file when a certain + file name (extension) is used. And sets up the Syntax menu + for the GUI. + +nosyntax.vim Used for the ":syntax off" command. Undo the loading of + synload.vim. + +The "shared" directory contains generated files and what is used by more than +one syntax. + + +A few special files: + +2html.vim Converts any highlighted file to HTML (GUI only). +colortest.vim Check for color names and actual color on screen. +hitest.vim View the current highlight settings. +whitespace.vim View Tabs and Spaces. + + +If you want to write a syntax file, read the docs at ":help usr_44.txt". + +If you make a new syntax file which would be useful for others, please send it +to the vim-dev mailing list . Include instructions for +detecting the file type for this language, by file name extension or by +checking a few lines in the file. And please write the file in a portable way, +see ":help 44.12". + +If you have remarks about an existing file, send them to the maintainer of +that file. Only when you get no response send a message to the vim-dev +mailing list: . + +If you are the maintainer of a syntax file and make improvements, send the new +version to the vim-dev mailing list: + +For further info see ":help syntax" in Vim. diff --git a/git/usr/share/vim/vim92/syntax/mf.vim b/git/usr/share/vim/vim92/syntax/mf.vim new file mode 100644 index 0000000000000000000000000000000000000000..d4acbed19bca588bec030c22d1ff6fd281f30f98 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mf.vim @@ -0,0 +1,308 @@ +vim9script + +# Vim syntax file +# Language: METAFONT +# Maintainer: Nicola Vitacolonna +# Former Maintainers: Andreas Scherer +# Latest Revision: 2026 Jan 10 + +if exists("b:current_syntax") + finish +endif + +# Deprecation warnings: to be removed eventually +if exists("g:plain_mf_macros") + echomsg "[mf] g:plain_mf_macros is deprecated: use g:mf_plain_macros instead." +endif +if exists("g:plain_mf_modes") + echomsg "[mf] g:plain_mf_modes is deprecated: use g:mf_plain_modes instead." +endif +if exists("g:other_mf_macros") + echomsg "[mf] g:other_mf_macros is deprecated: use g:mf_other_macros instead." +endif + +syn iskeyword @,_ + +# METAFONT 'primitives' as defined in chapter 25 of 'The METAFONTbook' +# Page 210: 'boolean expressions' +syn keyword mfBoolExp and charexists false known not odd or true unknown + +# Page 210: 'numeric expression' +syn keyword mfNumExp ASCII angle cosd directiontime floor hex length +syn keyword mfNumExp mexp mlog normaldeviate oct sind sqrt totalweight +syn keyword mfNumExp turningnumber uniformdeviate xpart xxpart xypart +syn keyword mfNumExp ypart yxpart yypart + +# Page 211: 'internal quantities' +syn keyword mfInternal autorounding boundarychar charcode chardp chardx +syn keyword mfInternal chardy charext charht charic charwd day designsize +syn keyword mfInternal fillin fontmaking granularity hppp jobname month +syn keyword mfInternal pausing proofing showstopping smoothing time +syn keyword mfInternal tracingcapsules tracingchoices tracingcommands +syn keyword mfInternal tracingedges tracingequations tracingmacros +syn keyword mfInternal tracingonline tracingoutput tracingpens +syn keyword mfInternal tracingrestores tracingspecs tracingstats +syn keyword mfInternal tracingtitles turningcheck vppp warningcheck +syn keyword mfInternal xoffset year yoffset + +# Page 212: 'pair expressions' +syn keyword mfPairExp of penoffset point postcontrol precontrol rotated +syn keyword mfPairExp scaled shifted slanted transformed xscaled yscaled +syn keyword mfPairExp zscaled + +# Page 213: 'path expressions' +syn keyword mfPathExp atleast controls curl cycle makepath reverse +syn keyword mfPathExp subpath tension + +# Page 214: 'pen expressions' +syn keyword mfPenExp makepen nullpen pencircle + +# Page 214: 'picture expressions' +syn keyword mfPicExp nullpicture + +# Page 214: 'string expressions' +syn keyword mfStringExp char decimal readstring str substring + +# Page 217: 'commands and statements' +syn keyword mfCommand addto also at batchmode contour cull delimiters +syn keyword mfCommand display doublepath dropping dump end errhelp +syn keyword mfCommand errmessage errorstopmode everyjob from interim +syn keyword mfCommand inwindow keeping let message newinternal +syn keyword mfCommand nonstopmode numspecial openwindow outer randomseed +syn keyword mfCommand save scrollmode shipout show showdependencies +syn keyword mfCommand showstats showtoken showvariable special to withpen +syn keyword mfCommand withweight + +# Page 56: 'types' +syn keyword mfType boolean numeric pair path pen picture string +syn keyword mfType transform + +# Page 155: 'grouping' +syn keyword mfStatement begingroup endgroup + +# Page 165: 'definitions' +syn keyword mfDefinition def enddef expr primary primarydef secondary +syn keyword mfDefinition secondarydef suffix tertiary tertiarydef text +syn keyword mfDefinition vardef + +# Page 169: 'conditions and loops' +syn keyword mfCondition else elseif endfor exitif fi for forever +syn keyword mfCondition forsuffixes if step until + +# Other primitives listed in the index +syn keyword mfPrimitive charlist endinput expandafter extensible fontdimen +syn keyword mfPrimitive headerbyte inner input intersectiontimes kern +syn keyword mfPrimitive ligtable quote scantokens skipto + +# Implicit suffix parameters +syn match mfSuffixParam "@#\|#@\|@" + +# These are just tags, but given their special status, we +# highlight them as variables +syn keyword mfVariable x y + +# Keywords defined by plain.mf (defined on pp.262-278) +if get(g:, "mf_plain_macros", get(g:, "plain_mf_macros", 1)) + syn keyword mfDef addto_currentpicture beginchar capsule_def + syn keyword mfDef change_width clear_pen_memory clearit clearpen + syn keyword mfDef clearxy culldraw cullit cutdraw + syn keyword mfDef define_blacker_pixels define_corrected_pixels + syn keyword mfDef define_good_x_pixels define_good_y_pixels + syn keyword mfDef define_horizontal_corrected_pixels define_pixels + syn keyword mfDef define_whole_blacker_pixels define_whole_pixels + syn keyword mfDef define_whole_vertical_blacker_pixels + syn keyword mfDef define_whole_vertical_pixels downto draw drawdot + syn keyword mfDef endchar erase exitunless fill filldraw fix_units + syn keyword mfDef flex font_coding_scheme font_extra_space + syn keyword mfDef font_identifier font_normal_shrink + syn keyword mfDef font_normal_space font_normal_stretch font_quad + syn keyword mfDef font_size font_slant font_x_height gfcorners gobble + syn keyword mfDef hide imagerules interact italcorr killtext + syn keyword mfDef loggingall lowres_fix makebox makegrid maketicks + syn keyword mfDef mode_def mode_setup nodisplays notransforms numtok + syn keyword mfDef openit penrazor pensquare penstroke pickup + syn keyword mfDef proofoffset proofrule range reflectedabout + syn keyword mfDef rotatedaround screenchars screenrule screenstrokes + syn keyword mfDef shipit showit smode stop superellipse takepower + syn keyword mfDef tracingall tracingnone undraw undrawdot unfill + syn keyword mfDef unfilldraw upto z + syn match mfDef "???" + syn keyword mfVardef bot byte ceiling counterclockwise cutoff decr dir + syn keyword mfVardef direction directionpoint grayfont hround incr + syn keyword mfVardef interpath inverse labelfont labels lft magstep + # Note: nodot is not a vardef, it is used as in makelabel.lft.nodot("5",z5) + # (METAFONT only) + syn keyword mfVardef makelabel max min nodot penlabels penpos + syn keyword mfVardef proofrulethickness round rt savepen slantfont solve + syn keyword mfVardef tensepath titlefont top unitvector vround whatever + syn match mpVardef "\" + syn keyword mfPrimaryDef div dotprod gobbled mod + syn keyword mfSecondaryDef intersectionpoint + syn keyword mfTertiaryDef softjoin thru + syn keyword mfNewInternal blacker currentwindow displaying eps epsilon + syn keyword mfNewInternal infinity join_radius number_of_modes o_correction + syn keyword mfNewInternal pen_bot pen_lft pen_rt pen_top pixels_per_inch + syn keyword mfNewInternal screen_cols screen_rows tolerance + # Predefined constants + syn keyword mfConstant base_name base_version blankpicture ditto down + syn keyword mfConstant fullcircle halfcircle identity left lowres origin + syn keyword mfConstant penspeck proof quartercircle right rulepen smoke + syn keyword mfConstant unitpixel unitsquare up + # Other predefined variables + syn keyword mfVariable aspect_ratio currentpen extra_beginchar + syn keyword mfVariable extra_endchar currentpen_path currentpicture + syn keyword mfVariable currenttransform d extra_setup h localfont mag mode + syn keyword mfVariable mode_name w + # let statements: + syn keyword mfnumExp abs + syn keyword mfPairExp rotatedabout + syn keyword mfCommand bye relax +endif + +# By default, METAFONT loads modes.mf, too +if get(g:, "plain_mf_modes", get(g:, "mf_plain_modes", 1)) + syn keyword mfConstant APSSixMed AgfaFourZeroZero AgfaThreeFourZeroZero + syn keyword mfConstant AtariNineFive AtariNineSix AtariSLMEightZeroFour + syn keyword mfConstant AtariSMOneTwoFour CItohEightFiveOneZero + syn keyword mfConstant CItohThreeOneZero CanonBJCSixZeroZero CanonCX + syn keyword mfConstant CanonEX CanonLBPLX CanonLBPTen CanonSX ChelgraphIBX + syn keyword mfConstant CompugraphicEightSixZeroZero + syn keyword mfConstant CompugraphicNineSixZeroZero DD DEClarge DECsmall + syn keyword mfConstant DataDiscNew EightThree EpsonAction + syn keyword mfConstant EpsonLQFiveZeroZeroLo EpsonLQFiveZeroZeroMed + syn keyword mfConstant EpsonMXFX EpsonSQEightSevenZero EpsonStylusPro + syn keyword mfConstant EpsonStylusProHigh EpsonStylusProLow + syn keyword mfConstant EpsonStylusProMed FourFour GThreefax HPDeskJet + syn keyword mfConstant HPLaserJetIIISi IBMFourTwoFiveZero IBMFourTwoOneSix + syn keyword mfConstant IBMFourTwoThreeZero IBMFourZeroOneNine + syn keyword mfConstant IBMFourZeroThreeNine IBMFourZeroTwoNine + syn keyword mfConstant IBMProPrinter IBMSixOneFiveFour IBMSixSixSevenZero + syn keyword mfConstant IBMThreeEightOneTwo IBMThreeEightTwoZero + syn keyword mfConstant IBMThreeOneNineThree IBMThreeOneSevenNine + syn keyword mfConstant IBMUlfHolleberg LASevenFive LNOthreR LNOthree + syn keyword mfConstant LNZeroOne LNZeroThree LPSFourZero LPSTwoZero + syn keyword mfConstant LexmarkFourZeroThreeNine LexmarkOptraR + syn keyword mfConstant LexmarkOptraS LinotypeLThreeThreeZero + syn keyword mfConstant LinotypeOneZeroZero LinotypeOneZeroZeroLo + syn keyword mfConstant LinotypeThreeZeroZeroHi MacTrueSize NeXTprinter + syn keyword mfConstant NeXTscreen NecTwoZeroOne Newgen NineOne + syn keyword mfConstant OCESixSevenFiveZeroPS OneTwoZero OneZeroZero + syn keyword mfConstant PrintwareSevenTwoZeroIQ Prism QMSOneSevenTwoFive + syn keyword mfConstant QMSOneSevenZeroZero QMSTwoFourTwoFive RicohA + syn keyword mfConstant RicohFortyEighty RicohFourZeroEightZero RicohLP + syn keyword mfConstant SparcPrinter StarNLOneZero VAXstation VTSix + syn keyword mfConstant VarityperFiveZeroSixZeroW + syn keyword mfConstant VarityperFourThreeZeroZeroHi + syn keyword mfConstant VarityperFourThreeZeroZeroLo + syn keyword mfConstant VarityperFourTwoZeroZero VarityperSixZeroZero + syn keyword mfConstant XeroxDocutech XeroxEightSevenNineZero + syn keyword mfConstant XeroxFourZeroFiveZero XeroxNineSevenZeroZero + syn keyword mfConstant XeroxPhaserSixTwoZeroZeroDP XeroxThreeSevenZeroZero + syn keyword mfConstant Xerox_world agfafzz agfatfzz amiga aps apssixhi + syn keyword mfConstant aselect atariezf atarinf atarins atariotf bitgraph + syn keyword mfConstant bjtenex bjtzzex bjtzzl bjtzzs boise canonbjc + syn keyword mfConstant canonex canonlbp cg cgl cgnszz citohtoz corona crs + syn keyword mfConstant cthreeten cx datadisc declarge decsmall deskjet + syn keyword mfConstant docutech dover dp dpdfezzz eighthre elvira epscszz + syn keyword mfConstant epsdraft epsdrft epsdrftl epsfast epsfastl epshi + syn keyword mfConstant epslo epsmed epsmedl epson epsonact epsonfx epsonl + syn keyword mfConstant epsonlo epsonlol epsonlq epsonsq epstylus epstylwr + syn keyword mfConstant epstyplo epstypmd epstypml epstypro epswlo epswlol + syn keyword mfConstant esphi fourfour gpx gtfax gtfaxhi gtfaxl gtfaxlo + syn keyword mfConstant gtfaxlol help hifax highfax hplaser hprugged ibm_a + syn keyword mfConstant ibmd ibmega ibmegal ibmfzon ibmfztn ibmpp ibmppl + syn keyword mfConstant ibmsoff ibmteot ibmtetz ibmtont ibmtosn ibmtosnl + syn keyword mfConstant ibmvga ibx imagen imagewriter itoh itohl itohtoz + syn keyword mfConstant itohtozl iw jetiiisi kyocera laserjet laserjetfive + syn keyword mfConstant laserjetfivemp laserjetfour laserjetfourthousand + syn keyword mfConstant laserjetfourzerozerozero laserjethi laserjetlo + syn keyword mfConstant laserjettwoonezerozero + syn keyword mfConstant laserjettwoonezerozerofastres lasermaster + syn keyword mfConstant laserwriter lasf lexmarkr lexmarks lexmarku + syn keyword mfConstant linohalf linohi linolo linolttz linoone linosuper + syn keyword mfConstant linothree linothreelo linotzzh ljfive ljfivemp + syn keyword mfConstant ljfour ljfzzz ljfzzzfr ljlo ljtozz ljtozzfr lmaster + syn keyword mfConstant lnotr lnzo lps lpstz lqhires lqlores lqmed lqmedl + syn keyword mfConstant lqmedres lview lviewl lwpro macmag mactrue modes_mf + syn keyword mfConstant ncd nec nechi neclm nectzo newdd newddl nexthi + syn keyword mfConstant nextscreen nextscrn nineone nullmode ocessfz + syn keyword mfConstant okidata okidatal okifourten okifte okihi onetz + syn keyword mfConstant onezz pcprevw pcscreen phaser phaserfs phasertf + syn keyword mfConstant phasertfl phasertl pixpt printware prntware + syn keyword mfConstant proprinter qms qmsesz qmsostf qmsoszz qmstftf ricoh + syn keyword mfConstant ricoha ricohlp ricohsp sherpa sparcptr starnlt + syn keyword mfConstant starnltl styletwo stylewr stylewri stylewriter sun + syn keyword mfConstant supre swtwo toshiba ultre varityper vs vtftzz + syn keyword mfConstant vtftzzhi vtftzzlo vtfzszw vtszz xpstzz xpstzzl + syn keyword mfConstant xrxesnz xrxfzfz xrxnszz xrxtszz + syn keyword mfDef BCPL_string coding_scheme font_face_byte + syn keyword mfDef font_family landscape + syn keyword mfDef mode_extra_info mode_help mode_param + syn keyword mfNewInternal blacker_min +endif + +# Some other basic macro names, e.g., from cmbase, logo, etc. +if get(g:, "mf_other_macros", get(g:, "other_mf_macros", 1)) + syn keyword mfDef beginlogochar + syn keyword mfDef font_setup + syn keyword mfPrimitive generate +endif + +# Numeric tokens +syn match mfNumeric "[-]\=\d\+" +syn match mfNumeric "[-]\=\.\d\+" +syn match mfNumeric "[-]\=\d\+\.\d\+" + +# METAFONT lengths +syn match mfLength "\<\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\>" +syn match mfLength "[-]\=\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\=" +syn match mfLength "[-]\=\.\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\=" +syn match mfLength "[-]\=\d\+\.\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\=" + +# String constants +syn match mfOpenString /"[^"]*/ +syn region mfString oneline keepend start=+"+ end=+"+ + +# Comments: +syn keyword mfTodoComment contained TODO FIXME XXX DEBUG NOTE +syn match mfComment "%.*$" contains=mfTodoComment,@Spell + +# synchronizing +syn sync maxlines=100 + +# Define the default highlighting +hi def link mfBoolExp Statement +hi def link mfNumExp Statement +hi def link mfPairExp Statement +hi def link mfPathExp Statement +hi def link mfPenExp Statement +hi def link mfPicExp Statement +hi def link mfStringExp Statement +hi def link mfInternal Identifier +hi def link mfCommand Statement +hi def link mfType Type +hi def link mfStatement Statement +hi def link mfDefinition Statement +hi def link mfCondition Conditional +hi def link mfPrimitive Statement +hi def link mfDef Function +hi def link mfVardef mfDef +hi def link mfPrimaryDef mfDef +hi def link mfSecondaryDef mfDef +hi def link mfTertiaryDef mfDef +hi def link mfCoord Identifier +hi def link mfPoint Identifier +hi def link mfNumeric Number +hi def link mfLength Number +hi def link mfComment Comment +hi def link mfString String +hi def link mfOpenString Todo +hi def link mfSuffixParam Label +hi def link mfNewInternal mfInternal +hi def link mfVariable Identifier +hi def link mfConstant Constant +hi def link mfTodoComment Todo + +b:current_syntax = "mf" + +# vim: sw=2 fdm=marker diff --git a/git/usr/share/vim/vim92/syntax/mgl.vim b/git/usr/share/vim/vim92/syntax/mgl.vim new file mode 100644 index 0000000000000000000000000000000000000000..f7bc617f5a89876d9bdbd208615152b329b92346 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mgl.vim @@ -0,0 +1,117 @@ +" Vim syntax file +" Language: MGL +" Version: 1.0 +" Last Change: 2006 Feb 21 +" Maintainer: Gero Kuhlmann +" +" $Id: mgl.vim,v 1.1 2006/02/21 22:08:20 vimboss Exp $ +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +syn sync lines=250 + +syn keyword mglBoolean true false +syn keyword mglConditional if else then +syn keyword mglConstant nil +syn keyword mglPredefined maxint +syn keyword mglLabel case goto label +syn keyword mglOperator to downto in of with +syn keyword mglOperator and not or xor div mod +syn keyword mglRepeat do for repeat while to until +syn keyword mglStatement procedure function break continue return restart +syn keyword mglStatement program begin end const var type +syn keyword mglStruct record +syn keyword mglType integer string char boolean char ipaddr array + + +" String +if !exists("mgl_one_line_string") + syn region mglString matchgroup=mglString start=+'+ end=+'+ contains=mglStringEscape + syn region mglString matchgroup=mglString start=+"+ end=+"+ contains=mglStringEscapeGPC +else + "wrong strings + syn region mglStringError matchgroup=mglStringError start=+'+ end=+'+ end=+$+ contains=mglStringEscape + syn region mglStringError matchgroup=mglStringError start=+"+ end=+"+ end=+$+ contains=mglStringEscapeGPC + "right strings + syn region mglString matchgroup=mglString start=+'+ end=+'+ oneline contains=mglStringEscape + syn region mglString matchgroup=mglString start=+"+ end=+"+ oneline contains=mglStringEscapeGPC +end +syn match mglStringEscape contained "''" +syn match mglStringEscapeGPC contained '""' + + +if exists("mgl_symbol_operator") + syn match mglSymbolOperator "[+\-/*=\%]" + syn match mglSymbolOperator "[<>]=\=" + syn match mglSymbolOperator "<>" + syn match mglSymbolOperator ":=" + syn match mglSymbolOperator "[()]" + syn match mglSymbolOperator "\.\." + syn match mglMatrixDelimiter "(." + syn match mglMatrixDelimiter ".)" + syn match mglMatrixDelimiter "[][]" +endif + +syn match mglNumber "-\=\<\d\+\>" +syn match mglHexNumber "\$[0-9a-fA-F]\+\>" +syn match mglCharacter "\#[0-9]\+\>" +syn match mglIpAddr "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\>" + +syn region mglComment start="(\*" end="\*)" +syn region mglComment start="{" end="}" +syn region mglComment start="//" end="$" + +if !exists("mgl_no_functions") + syn keyword mglFunction dispose new + syn keyword mglFunction get load print select + syn keyword mglFunction odd pred succ + syn keyword mglFunction chr ord abs sqr + syn keyword mglFunction exit + syn keyword mglOperator at timeout +endif + + +syn region mglPreProc start="(\*\$" end="\*)" +syn region mglPreProc start="{\$" end="}" + +syn keyword mglException try except raise +syn keyword mglPredefined exception + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link mglBoolean Boolean +hi def link mglComment Comment +hi def link mglConditional Conditional +hi def link mglConstant Constant +hi def link mglException Exception +hi def link mglFunction Function +hi def link mglLabel Label +hi def link mglMatrixDelimiter Identifier +hi def link mglNumber Number +hi def link mglHexNumber Number +hi def link mglCharacter Number +hi def link mglIpAddr Number +hi def link mglOperator Operator +hi def link mglPredefined mglFunction +hi def link mglPreProc PreProc +hi def link mglRepeat Repeat +hi def link mglStatement Statement +hi def link mglString String +hi def link mglStringEscape Special +hi def link mglStringEscapeGPC Special +hi def link mglStringError Error +hi def link mglStruct mglStatement +hi def link mglSymbolOperator mglOperator +hi def link mglType Type + + + +let b:current_syntax = "mgl" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/mgp.vim b/git/usr/share/vim/vim92/syntax/mgp.vim new file mode 100644 index 0000000000000000000000000000000000000000..7227804550c8487ea49baad1af937f742ad2f836 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mgp.vim @@ -0,0 +1,69 @@ +" Vim syntax file +" Language: mgp - MaGic Point +" Maintainer: Gerfried Fuchs +" Filenames: *.mgp +" Last Change: 25 Apr 2001 +" URL: http://alfie.ist.org/vim/syntax/mgp.vim +" +" Comments are very welcome - but please make sure that you are commenting on +" the latest version of this file. +" SPAM is _NOT_ welcome - be ready to be reported! + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +syn match mgpLineSkip "\\$" + +" all the commands that are currently recognized +syn keyword mgpCommand contained size fore back bgrad left leftfill center +syn keyword mgpCommand contained right shrink lcutin rcutin cont xfont vfont +syn keyword mgpCommand contained tfont tmfont tfont0 bar image newimage +syn keyword mgpCommand contained prefix icon bimage default tab vgap hgap +syn keyword mgpCommand contained pause mark again system filter endfilter +syn keyword mgpCommand contained vfcap tfdir deffont font embed endembed +syn keyword mgpCommand contained noop pcache include + +" charset is not yet supported :-) +" syn keyword mgpCommand contained charset + +syn region mgpFile contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match mgpValue contained "\d\+" +syn match mgpSize contained "\d\+x\d\+" +syn match mgpLine +^%.*$+ contains=mgpCommand,mgpFile,mgpSize,mgpValue + +" Comments +syn match mgpPercent +^%%.*$+ +syn match mgpHash +^#.*$+ + +" these only work alone +syn match mgpPage +^%page$+ +syn match mgpNoDefault +^%nodefault$+ + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link mgpLineSkip Special + +hi def link mgpHash mgpComment +hi def link mgpPercent mgpComment +hi def link mgpComment Comment + +hi def link mgpCommand Identifier + +hi def link mgpLine Type + +hi def link mgpFile String +hi def link mgpSize Number +hi def link mgpValue Number + +hi def link mgpPage mgpDefine +hi def link mgpNoDefault mgpDefine +hi def link mgpDefine Define + + +let b:current_syntax = "mgp" diff --git a/git/usr/share/vim/vim92/syntax/mib.vim b/git/usr/share/vim/vim92/syntax/mib.vim new file mode 100644 index 0000000000000000000000000000000000000000..6062d50bcf34d5d5fbf982b06db89e817b3e6cd0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mib.vim @@ -0,0 +1,57 @@ +" Vim syntax file +" Language: Vim syntax file for SNMPv1 and SNMPv2 MIB and SMI files +" Maintainer: Martin Smat +" Original Author: David Pascoe +" Written: Wed Jan 28 14:37:23 GMT--8:00 1998 +" Last Changed: Mon Mar 23 2010 + +if exists("b:current_syntax") + finish +endif + +setlocal iskeyword=@,48-57,_,128-167,224-235,- + +syn keyword mibImplicit ACCESS ANY AUGMENTS BEGIN BIT BITS BOOLEAN CHOICE +syn keyword mibImplicit COMPONENTS CONTACT-INFO DEFINITIONS DEFVAL +syn keyword mibImplicit DESCRIPTION DISPLAY-HINT END ENTERPRISE EXTERNAL FALSE +syn keyword mibImplicit FROM GROUP IMPLICIT IMPLIED IMPORTS INDEX +syn keyword mibImplicit LAST-UPDATED MANDATORY-GROUPS MAX-ACCESS +syn keyword mibImplicit MIN-ACCESS MODULE MODULE-COMPLIANCE MODULE-IDENTITY +syn keyword mibImplicit NOTIFICATION-GROUP NOTIFICATION-TYPE NOTIFICATIONS +syn keyword mibImplicit NULL OBJECT-GROUP OBJECT-IDENTITY OBJECT-TYPE +syn keyword mibImplicit OBJECTS OF OPTIONAL ORGANIZATION REFERENCE +syn keyword mibImplicit REVISION SEQUENCE SET SIZE STATUS SYNTAX +syn keyword mibImplicit TEXTUAL-CONVENTION TRAP-TYPE TRUE UNITS VARIABLES +syn keyword mibImplicit WRITE-SYNTAX +syn keyword mibValue accessible-for-notify current DisplayString +syn keyword mibValue deprecated mandatory not-accessible obsolete optional +syn keyword mibValue read-create read-only read-write write-only INTEGER +syn keyword mibValue Counter Gauge IpAddress OCTET STRING experimental mib-2 +syn keyword mibValue TimeTicks RowStatus TruthValue UInteger32 snmpModules +syn keyword mibValue Integer32 Counter32 TestAndIncr TimeStamp InstancePointer +syn keyword mibValue OBJECT IDENTIFIER Gauge32 AutonomousType Counter64 +syn keyword mibValue PhysAddress TimeInterval MacAddress StorageType RowPointer +syn keyword mibValue TDomain TAddress ifIndex + +" Epilogue SMI extensions +syn keyword mibEpilogue FORCE-INCLUDE EXCLUDE cookie get-function set-function +syn keyword mibEpilogue test-function get-function-async set-function-async +syn keyword mibEpilogue test-function-async next-function next-function-async +syn keyword mibEpilogue leaf-name +syn keyword mibEpilogue DEFAULT contained + +syn match mibOperator "::=" +syn match mibComment "\ *--.\{-}\(--\|$\)" +syn match mibNumber "\<['0-9a-fA-FhH]*\>" +syn region mibDescription start="\"" end="\"" contains=DEFAULT + +hi def link mibImplicit Statement +hi def link mibOperator Statement +hi def link mibComment Comment +hi def link mibConstants String +hi def link mibNumber Number +hi def link mibDescription Identifier +hi def link mibEpilogue SpecialChar +hi def link mibValue Structure + +let b:current_syntax = "mib" diff --git a/git/usr/share/vim/vim92/syntax/mix.vim b/git/usr/share/vim/vim92/syntax/mix.vim new file mode 100644 index 0000000000000000000000000000000000000000..564d344cc8490a979325f00aa53281905ea7823e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mix.vim @@ -0,0 +1,84 @@ +" Vim syntax file +" Language: MIX (Donald Knuth's assembly language used in TAOCP) +" Maintainer: Wu Yongwei +" Filenames: *.mixal *.mix +" Last Change: 2017-11-26 15:21:36 +0800 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case ignore + +" Special processing of ALF directive: implementations vary whether quotation +" marks are needed +syn match mixAlfParam #\s\{1,2\}"\?[^"]\{,5\}"\?# contains=mixString nextgroup=mixEndComment contained + +" Region for parameters +syn match mixParam #[-+*/:=0-9a-z,()"]\+# contains=mixIdentifier,mixSpecial,mixNumber,mixString,mixLabel nextgroup=mixEndComment contained + +" Comment at the line end +syn match mixEndComment ".*" contains=mixRegister contained + +" Identifier; must go before literals +syn match mixIdentifier "[a-z0-9_]\+" contained + +" Literals +syn match mixSpecial "[-+*/:=]" contained +syn match mixNumber "[0-9]\+\>" contained +syn region mixString start=+"+ skip=+\\"+ end=+"+ contained + +" Labels +syn match mixLabel "^[a-z0-9_]\{,10\}\s\+" nextgroup=mixAlfSpecial,mixOpcode,mixDirective +syn match mixLabel "[0-9][BF]" contained + +" Comments +syn match mixComment "^\*.*" contains=mixRegister + +" Directives +syn keyword mixDirective ORIG EQU CON END nextgroup=mixParam contained skipwhite +syn keyword mixDirective ALF nextgroup=mixAlfParam contained + +" Opcodes +syn keyword mixOpcode NOP HLT NUM CHAR FLOT FIX nextgroup=mixEndComment contained +syn keyword mixOpcode FADD FSUB FMUL FDIV FCMP MOVE ADD SUB MUL DIV IOC IN OUT JRED JBUS JMP JSJ JOV JNOV JL JE JG JLE JNE JGE SLA SRA SLAX SRAX SLC SRC nextgroup=mixParam contained skipwhite +syn keyword mixOpcode SLB SRB JAE JAO JXE JXO nextgroup=mixParam contained skipwhite + +syn match mixOpcode "LD[AX1-6]N\?\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "ST[AX1-6JZ]\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "EN[TN][AX1-6]\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "INC[AX1-6]\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "DEC[AX1-6]\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "CMP[AX1-6]\>" nextgroup=mixParam contained skipwhite +syn match mixOpcode "J[AX1-6]N\?[NZP]\>" nextgroup=mixParam contained skipwhite + +" Switch back to being case sensitive +syn case match + +" Registers (only to be used in comments now) +syn keyword mixRegister rA rX rI1 rI2 rI3 rI4 rI5 rI6 rJ contained + +" The default highlighting +hi def link mixRegister Special +hi def link mixLabel Define +hi def link mixComment Comment +hi def link mixEndComment Comment +hi def link mixDirective Keyword +hi def link mixOpcode Keyword + +hi def link mixSpecial Special +hi def link mixNumber Number +hi def link mixString String +hi def link mixAlfParam String +hi def link mixIdentifier Identifier + +let b:current_syntax = "mix" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/mma.vim b/git/usr/share/vim/vim92/syntax/mma.vim new file mode 100644 index 0000000000000000000000000000000000000000..802cbe5538fdf12c7b1654825a8ca2f0066ca807 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mma.vim @@ -0,0 +1,321 @@ +" Vim syntax file +" Language: Mathematica +" Maintainer: steve layland +" Last Change: 2012 Feb 03 by Thilo Six +" 2024 May 24 by Riley Bruins (remove 'commentstring') +" Source: http://members.wri.com/layland/vim/syntax/mma.vim +" http://vim.sourceforge.net/scripts/script.php?script_id=1273 +" Id: $Id: mma.vim,v 1.4 2006/04/14 20:40:38 vimboss Exp $ +" NOTE: +" +" Empty .m files will automatically be presumed as Matlab files +" unless you have the following in your .vimrc: +" +" let filetype_m="mma" +" +" I also recommend setting the default 'Comment' highlighting to something +" other than the color used for 'Function', since both are plentiful in +" most mathematica files, and they are often the same color (when using +" background=dark). +" +" Credits: +" o Original Mathematica syntax version written by +" Wolfgang Waltenberger +" o Some ideas like the CommentStar,CommentTitle were adapted +" from the Java vim syntax file by Claudio Fleiner. Thanks! +" o Everything else written by steve +" +" Bugs: +" o Vim 6.1 didn't really have support for character classes +" of other named character classes. For example, [\a\d] +" didn't work. Therefore, a lot of this code uses explicit +" character classes instead: [0-9a-zA-Z] +" +" TODO: +" folding +" fix nesting +" finish populating popular symbols + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" Group Definitions: +syntax cluster mmaNotes contains=mmaTodo,mmaFixme +syntax cluster mmaComments contains=mmaComment,mmaFunctionComment,mmaItem,mmaFunctionTitle,mmaCommentStar +syntax cluster mmaCommentStrings contains=mmaLooseQuote,mmaCommentString,mmaUnicode +syntax cluster mmaStrings contains=@mmaCommentStrings,mmaString +syntax cluster mmaTop contains=mmaOperator,mmaGenericFunction,mmaPureFunction,mmaVariable + +" Predefined Constants: +" to list all predefined Symbols would be too insane... +" it's probably smarter to define a select few, and get the rest from +" context if absolutely necessary. +" TODO - populate this with other often used Symbols + +" standard fixed symbols: +syntax keyword mmaVariable True False None Automatic All Null C General + +" mathematical constants: +syntax keyword mmaVariable Pi I E Infinity ComplexInfinity Indeterminate GoldenRatio EulerGamma Degree Catalan Khinchin Glaisher + +" stream data / atomic heads: +syntax keyword mmaVariable Byte Character Expression Number Real String Word EndOfFile Integer Symbol + +" sets: +syntax keyword mmaVariable Integers Complexes Reals Booleans Rationals + +" character classes: +syntax keyword mmaPattern DigitCharacter LetterCharacter WhitespaceCharacter WordCharacter EndOfString StartOfString EndOfLine StartOfLine WordBoundary + +" SelectionMove directions/units: +syntax keyword mmaVariable Next Previous After Before Character Word Expression TextLine CellContents Cell CellGroup EvaluationCell ButtonCell GeneratedCell Notebook +syntax keyword mmaVariable CellTags CellStyle CellLabel + +" TableForm positions: +syntax keyword mmaVariable Above Below Left Right + +" colors: +syntax keyword mmaVariable Black Blue Brown Cyan Gray Green Magenta Orange Pink Purple Red White Yellow + +" function attributes +syntax keyword mmaVariable Protected Listable OneIdentity Orderless Flat Constant NumericFunction Locked ReadProtected HoldFirst HoldRest HoldAll HoldAllComplete SequenceHold NHoldFirst NHoldRest NHoldAll Temporary Stub + +" Comment Sections: +" this: +" :that: +syntax match mmaItem "\%(^[( |*\t]*\)\@<=\%(:\+\|\w\)\w\+\%( \w\+\)\{0,3}:" contained contains=@mmaNotes + +" Comment Keywords: +syntax keyword mmaTodo TODO NOTE HEY contained +syntax match mmaTodo "X\{3,}" contained +syntax keyword mmaFixme FIX[ME] FIXTHIS BROKEN contained +syntax match mmaFixme "BUG\%( *\#\=[0-9]\+\)\=" contained +" yay pirates... +syntax match mmaFixme "\%(Y\=A\+R\+G\+\|GRR\+\|CR\+A\+P\+\)\%(!\+\)\=" contained + +" EmPHAsis: +" this unnecessary, but whatever :) +syntax match mmaemPHAsis "\%(^\|\s\)\([_/]\)[a-zA-Z0-9]\+\%([- \t':]\+[a-zA-Z0-9]\+\)*\1\%(\s\|$\)" contained contains=mmaemPHAsis +syntax match mmaemPHAsis "\%(^\|\s\)(\@]\@!" contains=mmaOperator +"pattern default: +syntax match mmaPattern ": *[^ ,]\+[\], ]\@=" contains=@mmaCommentStrings,@mmaTop,mmaOperator +"pattern head/test: +syntax match mmaPattern "[A-Za-z0-9`]*_\+\%(\a\+\)\=\%(?([^)]\+)\|?[^\]},]\+\)\=" contains=@mmaTop,@mmaCommentStrings,mmaPatternError + +" Operators: +" /: ^= ^:= UpValue +" /; Conditional +" := = DownValue +" == === || +" != =!= && Logic +" >= <= < > +" += -= *= +" /= ++ -- Math +" ^* +" -> :> Rules +" @@ @@@ Apply +" /@ //@ Map +" /. //. Replace +" // @ Function application +" <> ~~ String/Pattern join +" ~ infix operator +" . : Pattern operators +syntax match mmaOperator "\%(@\{1,3}\|//[.@]\=\)" +syntax match mmaOperator "\%(/[;:@.]\=\|\^\=:\==\)" +syntax match mmaOperator "\%([-:=]\=>\|<=\=\)" +"syntax match mmaOperator "\%(++\=\|--\=\|[/+-*]=\|[^*]\)" +syntax match mmaOperator "[*+=^.:?-]" +syntax match mmaOperator "\%(\~\~\=\)" +syntax match mmaOperator "\%(=\{2,3}\|=\=!=\|||\=\|&&\|!\)" contains=ALLBUT,mmaPureFunction + +" Symbol Tags: +" "SymbolName::item" +"syntax match mmaSymbol "`\=[a-zA-Z$]\+[0-9a-zA-Z$]*\%(`\%([a-zA-Z$]\+[0-9a-zA-Z$]*\)\=\)*" contained +syntax match mmaMessage "`\=\([a-zA-Z$]\+[0-9a-zA-Z$]*\)\%(`\%([a-zA-Z$]\+[0-9a-zA-Z$]*\)\=\)*::\a\+" contains=mmaMessageType +syntax match mmaMessageType "::\a\+"hs=s+2 contained + +" Pure Functions: +syntax match mmaPureFunction "#\%(#\|\d\+\)\=" +syntax match mmaPureFunction "&" + +" Named Functions: +" Since everything is pretty much a function, get this straight +" from context +syntax match mmaGenericFunction "[A-Za-z0-9`]\+\s*\%([@[]\|/:\|/\=/@\)\@=" contains=mmaOperator +syntax match mmaGenericFunction "\~\s*[^~]\+\s*\~"hs=s+1,he=e-1 contains=mmaOperator,mmaBoring +syntax match mmaGenericFunction "//\s*[A-Za-z0-9`]\+"hs=s+2 contains=mmaOperator + +" Numbers: +syntax match mmaNumber "\<\%(\d\+\.\=\d*\|\d*\.\=\d\+\)\>" +syntax match mmaNumber "`\d\+\%(\d\@!\.\|\>\)" + +" Special Characters: +" \[Name] named character +" \ooo octal +" \.xx 2 digit hex +" \:xxxx 4 digit hex (multibyte unicode) +syntax match mmaUnicode "\\\[\w\+\d*\]" +syntax match mmaUnicode "\\\%(\x\{3}\|\.\x\{2}\|:\x\{4}\)" + +" Syntax Errors: +syntax match mmaError "\*)" containedin=ALLBUT,@mmaComments,@mmaStrings +syntax match mmaError "\%([/]{3,}\|[&:|+*?~-]\{3,}\|[.=]\{4,}\|_\@<=\.\{2,}\|`\{2,}\)" containedin=ALLBUT,@mmaComments,@mmaStrings + +" Punctuation: +" things that shouldn't really be highlighted, or highlighted +" in they're own group if you _really_ want. :) +" ( ) { } +" TODO - use Delimiter group? +syntax match mmaBoring "[(){}]" contained + +" ------------------------------------ +" future explorations... +" ------------------------------------ +" Function Arguments: +" anything between brackets [] +" (fold) +"syntax region mmaArgument start="\[" end="\]" containedin=ALLBUT,@mmaComments,@mmaStrings transparent fold + +" Lists: +" (fold) +"syntax region mmaLists start="{" end="}" containedin=ALLBUT,@mmaComments,@mmaStrings transparent fold + +" Regions: +" (fold) +"syntax region mmaRegion start="(\*\+[^<]* \*)" containedin=ALLBUT,@mmaStrings transparent fold keepend + +" show fold text +"set foldtext=MmaFoldText() + +"function MmaFoldText() +" let line = getline(v:foldstart) +" +" let lines = v:foldend-v:foldstart+1 +" +" let sub = substitute(line, '(\*\+|\*\+)|[-*_]\+', '', 'g') +" +" if match(line, '(\*') != -1 +" let lines = lines.' line comment' +" else +" let lines = lines.' lines' +" endif +" +" return v:folddashes.' '.lines.' '.sub +"endf + +"this is slow for computing folds, but it does so accurately +syntax sync fromstart + +" but this seems to do alright for non fold syntax coloring. +" for folding, however, it doesn't get the nesting right. +" TODO - find sync group for multiline modules? ick... + +" sync multi line comments +"syntax sync match syncComments groupthere NONE "\*)" +"syntax sync match syncComments groupthere mmaComment "(\*" + +"set foldmethod=syntax +"set foldnestmax=1 +"set foldminlines=15 + + +" NOTE - the following links are not guaranteed to +" look good under all colorschemes. You might need to +" :so $VIMRUNTIME/syntax/hitest.vim and tweak these to +" look good in yours + + +hi def link mmaComment Comment +hi def link mmaCommentStar Comment +hi def link mmaFunctionComment Comment +hi def link mmaLooseQuote Comment +hi def link mmaGenericFunction Function +hi def link mmaVariable Identifier +" hi def link mmaSymbol Identifier +hi def link mmaOperator Operator +hi def link mmaPatternOp Operator +hi def link mmaPureFunction Operator +hi def link mmaString String +hi def link mmaCommentString String +hi def link mmaUnicode String +hi def link mmaMessage Type +hi def link mmaNumber Type +hi def link mmaPattern Type +hi def link mmaError Error +hi def link mmaFixme Error +hi def link mmaPatternError Error +hi def link mmaTodo Todo +hi def link mmaemPHAsis Special +hi def link mmaFunctionTitle Special +hi def link mmaMessageType Special +hi def link mmaItem Preproc + + +let b:current_syntax = "mma" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/mmix.vim b/git/usr/share/vim/vim92/syntax/mmix.vim new file mode 100644 index 0000000000000000000000000000000000000000..0590767f2def4c9627504274471eae59ff6a4323 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mmix.vim @@ -0,0 +1,152 @@ +" Vim syntax file +" Language: MMIX +" Maintainer: Dirk Hüsken, +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) +" Filenames: *.mms +" URL: http://homepages.uni-tuebingen.de/student/dirk.huesken/vim/syntax/mmix.vim + +" Limitations: Comments must start with either % or // +" (preferably %, Knuth-Style) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" MMIX data types +syn keyword mmixType byte wyde tetra octa + +" different literals... +syn match decNumber "[0-9]*" +syn match octNumber "0[0-7][0-7]\+" +syn match hexNumber "#[0-9a-fA-F]\+" +syn region mmixString start=+"+ skip=+\\"+ end=+"+ contains=@Spell +syn match mmixChar "'.'" + +" ...and more special MMIX stuff +syn match mmixAt "@" +syn keyword mmixSegments Data_Segment Pool_Segment Stack_Segment + +syn match mmixIdentifier "[a-z_][a-z0-9_]*" + +" labels (for branches etc) +syn match mmixLabel "^[a-z0-9_:][a-z0-9_]*" +syn match mmixLabel "[0-9][HBF]" + +" pseudo-operations +syn keyword mmixPseudo is loc greg + +" comments +syn match mmixComment "%.*" contains=@Spell +syn match mmixComment "//.*" contains=@Spell +syn match mmixComment "^\*.*" contains=@Spell + + +syn keyword mmixOpcode trap fcmp fun feql fadd fix fsub fixu +syn keyword mmixOpcode fmul fcmpe fune feqle fdiv fsqrt frem fint + +syn keyword mmixOpcode floti flotui sfloti sflotui i +syn keyword mmixOpcode muli mului divi divui +syn keyword mmixOpcode addi addui subi subui +syn keyword mmixOpcode 2addui 4addui 8addui 16addui +syn keyword mmixOpcode cmpi cmpui negi negui +syn keyword mmixOpcode sli slui sri srui +syn keyword mmixOpcode bnb bzb bpb bodb +syn keyword mmixOpcode bnnb bnzb bnpb bevb +syn keyword mmixOpcode pbnb pbzb pbpb pbodb +syn keyword mmixOpcode pbnnb pbnzb pbnpb pbevb +syn keyword mmixOpcode csni cszi cspi csodi +syn keyword mmixOpcode csnni csnzi csnpi csevi +syn keyword mmixOpcode zsni zszi zspi zsodi +syn keyword mmixOpcode zsnni zsnzi zsnpi zsevi +syn keyword mmixOpcode ldbi ldbui ldwi ldwui +syn keyword mmixOpcode ldti ldtui ldoi ldoui +syn keyword mmixOpcode ldsfi ldhti cswapi ldunci +syn keyword mmixOpcode ldvtsi preldi pregoi goi +syn keyword mmixOpcode stbi stbui stwi stwui +syn keyword mmixOpcode stti sttui stoi stoui +syn keyword mmixOpcode stsfi sthti stcoi stunci +syn keyword mmixOpcode syncdi presti syncidi pushgoi +syn keyword mmixOpcode ori orni nori xori +syn keyword mmixOpcode andi andni nandi nxori +syn keyword mmixOpcode bdifi wdifi tdifi odifi +syn keyword mmixOpcode muxi saddi mori mxori +syn keyword mmixOpcode muli mului divi divui + +syn keyword mmixOpcode flot flotu sflot sflotu +syn keyword mmixOpcode mul mulu div divu +syn keyword mmixOpcode add addu sub subu +syn keyword mmixOpcode 2addu 4addu 8addu 16addu +syn keyword mmixOpcode cmp cmpu neg negu +syn keyword mmixOpcode sl slu sr sru +syn keyword mmixOpcode bn bz bp bod +syn keyword mmixOpcode bnn bnz bnp bev +syn keyword mmixOpcode pbn pbz pbp pbod +syn keyword mmixOpcode pbnn pbnz pbnp pbev +syn keyword mmixOpcode csn csz csp csod +syn keyword mmixOpcode csnn csnz csnp csev +syn keyword mmixOpcode zsn zsz zsp zsod +syn keyword mmixOpcode zsnn zsnz zsnp zsev +syn keyword mmixOpcode ldb ldbu ldw ldwu +syn keyword mmixOpcode ldt ldtu ldo ldou +syn keyword mmixOpcode ldsf ldht cswap ldunc +syn keyword mmixOpcode ldvts preld prego go +syn keyword mmixOpcode stb stbu stw stwu +syn keyword mmixOpcode stt sttu sto stou +syn keyword mmixOpcode stsf stht stco stunc +syn keyword mmixOpcode syncd prest syncid pushgo +syn keyword mmixOpcode or orn nor xor +syn keyword mmixOpcode and andn nand nxor +syn keyword mmixOpcode bdif wdif tdif odif +syn keyword mmixOpcode mux sadd mor mxor + +syn keyword mmixOpcode seth setmh setml setl inch incmh incml incl +syn keyword mmixOpcode orh ormh orml orl andh andmh andml andnl +syn keyword mmixOpcode jmp pushj geta put +syn keyword mmixOpcode pop resume save unsave sync swym get trip +syn keyword mmixOpcode set lda + +" switch back to being case sensitive +syn case match + +" general-purpose and special-purpose registers +syn match mmixRegister "$[0-9]*" +syn match mmixRegister "r[A-Z]" +syn keyword mmixRegister rBB rTT rWW rXX rYY rZZ + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +hi def link mmixAt Type +hi def link mmixPseudo Type +hi def link mmixRegister Special +hi def link mmixSegments Type + +hi def link mmixLabel Special +hi def link mmixComment Comment +hi def link mmixOpcode Keyword + +hi def link hexNumber Number +hi def link decNumber Number +hi def link octNumber Number + +hi def link mmixString String +hi def link mmixChar String + +hi def link mmixType Type +hi def link mmixIdentifier Normal +hi def link mmixSpecialComment Comment + +" My default color overrides: +" hi mmixSpecialComment ctermfg=red +"hi mmixLabel ctermfg=lightcyan +" hi mmixType ctermbg=black ctermfg=brown + + +let b:current_syntax = "mmix" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/mmp.vim b/git/usr/share/vim/vim92/syntax/mmp.vim new file mode 100644 index 0000000000000000000000000000000000000000..d0b9f7cfb587a5c4e56edca25bd30b656173c281 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mmp.vim @@ -0,0 +1,49 @@ +" Vim syntax file +" Language: Symbian meta-makefile definition (MMP) +" Maintainer: Ron Aaron +" Last Change: 2007/11/07 +" URL: http://ronware.org/wiki/vim/mmp +" Filetypes: *.mmp + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +syn match mmpComment "//.*" +syn region mmpComment start="/\*" end="\*\/" + +syn keyword mmpKeyword aif asspabi assplibrary aaspexports baseaddress +syn keyword mmpKeyword debuglibrary deffile document epocheapsize +syn keyword mmpKeyword epocprocesspriority epocstacksize exportunfrozen +syn keyword mmpStorage lang library linkas macro nostrictdef option +syn keyword mmpStorage resource source sourcepath srcdbg startbitmap +syn keyword mmpStorage start end staticlibrary strictdepend systeminclude +syn keyword mmpStorage systemresource target targettype targetpath uid +syn keyword mmpStorage userinclude win32_library + +syn match mmpIfdef "\#\(include\|ifdef\|ifndef\|if\|endif\|else\|elif\)" + +syn match mmpNumber "\d+" +syn match mmpNumber "0x\x\+" + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +if !exists("did_mmp_syntax_inits") + let did_mmp_syntax_inits=1 + + hi def link mmpComment Comment + hi def link mmpKeyword Keyword + hi def link mmpStorage StorageClass + hi def link mmpString String + hi def link mmpNumber Number + hi def link mmpOrdinal Operator + hi def link mmpIfdef PreCondit +endif + +let b:current_syntax = "mmp" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/modconf.vim b/git/usr/share/vim/vim92/syntax/modconf.vim new file mode 100644 index 0000000000000000000000000000000000000000..76b36edcf02e2bd6a0ff4fe0e6dcec0da776ae7e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modconf.vim @@ -0,0 +1,44 @@ +" Vim syntax file +" Language: modules.conf(5) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2007-10-25 + +if exists("b:current_syntax") + finish +endif + +setlocal iskeyword+=- + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword modconfTodo FIXME TODO XXX NOTE + +syn region modconfComment start='#' skip='\\$' end='$' + \ contains=modconfTodo,@Spell + +syn keyword modconfConditional if else elseif endif + +syn keyword modconfPreProc alias define include keep prune + \ post-install post-remove pre-install + \ pre-remove persistdir blacklist + +syn keyword modconfKeyword add above below install options probe probeall + \ remove + +syn keyword modconfIdentifier depfile insmod_opt path generic_stringfile + \ pcimapfile isapnpmapfile usbmapfile + \ parportmapfile ieee1394mapfile pnpbiosmapfile +syn match modconfIdentifier 'path\[[^]]\+\]' + +hi def link modconfTodo Todo +hi def link modconfComment Comment +hi def link modconfConditional Conditional +hi def link modconfPreProc PreProc +hi def link modconfKeyword Keyword +hi def link modconfIdentifier Identifier + +let b:current_syntax = "modconf" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/model.vim b/git/usr/share/vim/vim92/syntax/model.vim new file mode 100644 index 0000000000000000000000000000000000000000..2df380c629feaf244ee69524dcc414438635e9ea --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/model.vim @@ -0,0 +1,45 @@ +" Vim syntax file +" Language: Model +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" very basic things only (based on the vgrindefs file). +" If you use this language, please improve it, and send patches! + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" A bunch of keywords +syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose +syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false +syn keyword modelKeyword fi file for formal fortran global if iff ift in integer include +syn keyword modelKeyword inline is lbnd max min mod new NIL nil noresult not notin od of +syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep +syn keyword modelKeyword repeat res result return set space string subscript such then TRUE +syn keyword modelKeyword true type ubnd union until varies while width + +" Special keywords +syn keyword modelBlock beginproc endproc + +" Comments +syn region modelComment start="\$" end="\$" end="$" + +" Strings +syn region modelString start=+"+ end=+"+ + +" Character constant (is this right?) +syn match modelString "'." + +" Define the default highlighting. +" Only used when an item doesn't have highlighting yet +hi def link modelKeyword Statement +hi def link modelBlock PreProc +hi def link modelComment Comment +hi def link modelString String + +let b:current_syntax = "model" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/modsim3.vim b/git/usr/share/vim/vim92/syntax/modsim3.vim new file mode 100644 index 0000000000000000000000000000000000000000..ce35033402fa8b696e382a7322edff2382be4ef7 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modsim3.vim @@ -0,0 +1,97 @@ +" Vim syntax file +" Language: Modsim III, by compuware corporation (www.compuware.com) +" Maintainer: Philipp Jocham +" Extension: *.mod +" Last Change: 2001 May 10 +" +" 2001 March 24: +" - Modsim III is a registered trademark from compuware corporation +" - made compatible with Vim 6.0 +" +" 1999 Apr 22 : Changed modsim3Literal from region to match +" +" very basic things only (based on the modula2 and c files). + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" syn case match " case sensitiv match is default + +" A bunch of keywords +syn keyword modsim3Keyword ACTID ALL AND AS ASK +syn keyword modsim3Keyword BY CALL CASE CLASS CONST DIV +syn keyword modsim3Keyword DOWNTO DURATION ELSE ELSIF EXIT FALSE FIXED FOR +syn keyword modsim3Keyword FOREACH FORWARD IF IN INHERITED INOUT +syn keyword modsim3Keyword INTERRUPT LOOP +syn keyword modsim3Keyword MOD MONITOR NEWVALUE +syn keyword modsim3Keyword NONMODSIM NOT OBJECT OF ON OR ORIGINAL OTHERWISE OUT +syn keyword modsim3Keyword OVERRIDE PRIVATE PROTO REPEAT +syn keyword modsim3Keyword RETURN REVERSED SELF STRERR TELL +syn keyword modsim3Keyword TERMINATE THISMETHOD TO TRUE TYPE UNTIL VALUE VAR +syn keyword modsim3Keyword WAIT WAITFOR WHEN WHILE WITH + +" Builtin functions and procedures +syn keyword modsim3Builtin ABS ACTIVATE ADDMONITOR CAP CHARTOSTR CHR CLONE +syn keyword modsim3Builtin DEACTIVATE DEC DISPOSE FLOAT GETMONITOR HIGH INC +syn keyword modsim3Builtin INPUT INSERT INTTOSTR ISANCESTOR LOW LOWER MAX MAXOF +syn keyword modsim3Builtin MIN MINOF NEW OBJTYPEID OBJTYPENAME OBJVARID ODD +syn keyword modsim3Builtin ONERROR ONEXIT ORD OUTPUT POSITION PRINT REALTOSTR +syn keyword modsim3Builtin REPLACE REMOVEMONITOR ROUND SCHAR SIZEOF SPRINT +syn keyword modsim3Builtin STRLEN STRTOCHAR STRTOINT STRTOREAL SUBSTR TRUNC +syn keyword modsim3Builtin UPDATEVALUE UPPER VAL + +syn keyword modsim3BuiltinNoParen HALT TRACE + +" Special keywords +syn keyword modsim3Block PROCEDURE METHOD MODULE MAIN DEFINITION IMPLEMENTATION +syn keyword modsim3Block BEGIN END + +syn keyword modsim3Include IMPORT FROM + +syn keyword modsim3Type ANYARRAY ANYOBJ ANYREC ARRAY BOOLEAN CHAR INTEGER +syn keyword modsim3Type LMONITORED LRMONITORED NILARRAY NILOBJ NILREC REAL +syn keyword modsim3Type RECORD RMONITOR RMONITORED STRING + +" catch errros cause by wrong parenthesis +" slight problem with "( *)" or "(* )". Hints? +syn region modsim3Paren transparent start='(' end=')' contains=ALLBUT,modsim3ParenError +syn match modsim3ParenError ")" + +" Comments +syn region modsim3Comment1 start="{" end="}" contains=modsim3Comment1,modsim3Comment2 +syn region modsim3Comment2 start="(\*" end="\*)" contains=modsim3Comment1,modsim3Comment2 +" highlighting is wrong for constructs like "{ (* } *)", +" which are allowed in Modsim III, but +" I think something like that shouldn't be used anyway. + +" Strings +syn region modsim3String start=+"+ end=+"+ + +" Literals +"syn region modsim3Literal start=+'+ end=+'+ +syn match modsim3Literal "'[^']'\|''''" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +hi def link modsim3Keyword Statement +hi def link modsim3Block Statement +hi def link modsim3Comment1 Comment +hi def link modsim3Comment2 Comment +hi def link modsim3String String +hi def link modsim3Literal Character +hi def link modsim3Include Statement +hi def link modsim3Type Type +hi def link modsim3ParenError Error +hi def link modsim3Builtin Function +hi def link modsim3BuiltinNoParen Function + + +let b:current_syntax = "modsim3" + +" vim: ts=8 sw=2 + diff --git a/git/usr/share/vim/vim92/syntax/modula2.vim b/git/usr/share/vim/vim92/syntax/modula2.vim new file mode 100644 index 0000000000000000000000000000000000000000..3c1346e9f53f16c02caec4465d4121ce160d573d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modula2.vim @@ -0,0 +1,23 @@ +" Vim syntax file +" Language: Modula-2 +" Maintainer: Doug Kearns +" Previous Maintainer: pf@artcom0.north.de (Peter Funk) +" Last Change: 2024 Jan 04 +" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +let dialect = modula2#GetDialect() +exe "runtime! syntax/modula2/opt/" .. dialect .. ".vim" + +let b:current_syntax = "modula2" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: nowrap sw=2 sts=2 ts=8 noet: diff --git a/git/usr/share/vim/vim92/syntax/modula2/opt/iso.vim b/git/usr/share/vim/vim92/syntax/modula2/opt/iso.vim new file mode 100644 index 0000000000000000000000000000000000000000..5bd24f68859a49b01366976ebdf716f053dd08ed --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modula2/opt/iso.vim @@ -0,0 +1,380 @@ +" Vim syntax file +" Language: Modula-2 (ISO) +" Maintainer: B.Kowarsch +" Last Change: 2016 August 22 + +" ---------------------------------------------------- +" THIS FILE IS LICENSED UNDER THE VIM LICENSE +" see https://github.com/vim/vim/blob/master/LICENSE +" ---------------------------------------------------- + +" Remarks: +" Vim Syntax files are available for the following Modula-2 dialects: +" * for the PIM dialect : m2pim.vim +" * for the ISO dialect : m2iso.vim (this file) +" * for the R10 dialect : m2r10.vim + +" ----------------------------------------------------------------------------- +" This syntax description follows ISO standard IS-10514 (aka ISO Modula-2) +" with the addition of the following language extensions: +" * non-standard types LONGCARD and LONGBITSET +" * non-nesting code disabling tags ?< and >? at the start of a line +" ----------------------------------------------------------------------------- + +" Parameters: +" +" Vim's filetype script recognises Modula-2 dialect tags within the first 200 +" lines of Modula-2 .def and .mod input files. The script sets filetype and +" dialect automatically when a valid dialect tag is found in the input file. +" The dialect tag for the ISO dialect is (*!m2iso*). It is recommended to put +" the tag immediately after the module header in the Modula-2 input file. +" +" Example: +" DEFINITION MODULE Foolib; (*!m2iso*) +" +" Variable g:modula2_default_dialect sets the default Modula-2 dialect when the +" dialect cannot be determined from the contents of the Modula-2 input file: +" if defined and set to 'm2iso', the default dialect is ISO. +" +" Variable g:modula2_iso_allow_lowline controls support for lowline in identifiers: +" if defined and set to a non-zero value, they are recognised, otherwise not +" +" Variable g:modula2_iso_disallow_octals controls the rendering of octal literals: +" if defined and set to a non-zero value, they are rendered as errors. +" +" Variable g:modula2_iso_disallow_synonyms controls the rendering of @, & and ~: +" if defined and set to a non-zero value, they are rendered as errors. +" +" Variables may be defined in Vim startup file .vimrc +" +" Examples: +" let g:modula2_default_dialect = 'm2iso' +" let g:modula2_iso_allow_lowline = 1 +" let g:modula2_iso_disallow_octals = 1 +" let g:modula2_iso_disallow_synonyms = 1 + + +if exists("b:current_syntax") + finish +endif + +" Modula-2 is case sensitive +syn case match + + +" ----------------------------------------------------------------------------- +" Reserved Words +" ----------------------------------------------------------------------------- +syn keyword modula2Resword AND ARRAY BEGIN BY CASE CONST DEFINITION DIV DO ELSE +syn keyword modula2Resword ELSIF EXCEPT EXIT EXPORT FINALLY FOR FORWARD FROM IF +syn keyword modula2Resword IMPLEMENTATION IMPORT IN LOOP MOD NOT OF OR PACKEDSET +syn keyword modula2Resword POINTER QUALIFIED RECORD REPEAT REM RETRY RETURN SET +syn keyword modula2Resword THEN TO TYPE UNTIL VAR WHILE WITH + + +" ----------------------------------------------------------------------------- +" Builtin Constant Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ConstIdent FALSE NIL TRUE INTERRUPTIBLE UNINTERRUPTIBLE + + +" ----------------------------------------------------------------------------- +" Builtin Type Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2TypeIdent BITSET BOOLEAN CHAR PROC +syn keyword modula2TypeIdent CARDINAL INTEGER LONGINT REAL LONGREAL +syn keyword modula2TypeIdent COMPLEX LONGCOMPLEX PROTECTION + + +" ----------------------------------------------------------------------------- +" Builtin Procedure and Function Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ProcIdent CAP DEC EXCL HALT INC INCL +syn keyword modula2FuncIdent ABS CHR CMPLX FLOAT HIGH IM INT LENGTH LFLOAT MAX MIN +syn keyword modula2FuncIdent ODD ORD RE SIZE TRUNC VAL + + +" ----------------------------------------------------------------------------- +" Wirthian Macro Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2MacroIdent NEW DISPOSE + + +" ----------------------------------------------------------------------------- +" Unsafe Facilities via Pseudo-Module SYSTEM +" ----------------------------------------------------------------------------- +syn keyword modula2UnsafeIdent ADDRESS BYTE LOC WORD +syn keyword modula2UnsafeIdent ADR CAST TSIZE SYSTEM +syn keyword modula2UnsafeIdent MAKEADR ADDADR SUBADR DIFADR ROTATE SHIFT + + +" ----------------------------------------------------------------------------- +" Non-Portable Language Extensions +" ----------------------------------------------------------------------------- +syn keyword modula2NonPortableIdent LONGCARD LONGBITSET + + +" ----------------------------------------------------------------------------- +" User Defined Identifiers +" ----------------------------------------------------------------------------- +syn match modula2Ident "[a-zA-Z][a-zA-Z0-9]*\(_\)\@!" +syn match modula2LowLineIdent "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" + + +" ----------------------------------------------------------------------------- +" String Literals +" ----------------------------------------------------------------------------- +syn region modula2String start=/"/ end=/"/ oneline +syn region modula2String start=/'/ end=/'/ oneline + + +" ----------------------------------------------------------------------------- +" Numeric Literals +" ----------------------------------------------------------------------------- +syn match modula2Num + \ "\(\([0-7]\+\)[BC]\@!\|[89]\)[0-9]*\(\.[0-9]\+\([eE][+-]\?[0-9]\+\)\?\)\?" +syn match modula2Num "[0-9A-F]\+H" +syn match modula2Octal "[0-7]\+[BC]" + + +" ----------------------------------------------------------------------------- +" Punctuation +" ----------------------------------------------------------------------------- +syn match modula2Punctuation + \ "\.\|[,:;]\|\*\|[/+-]\|\#\|[=<>]\|\^\|\[\|\]\|(\(\*\)\@!\|[){}]" +syn match modula2Synonym "[@&~]" + + +" ----------------------------------------------------------------------------- +" Pragmas +" ----------------------------------------------------------------------------- +syn region modula2Pragma start="<\*" end="\*>" +syn match modula2DialectTag "(\*!m2iso\(+[a-z0-9]\+\)\?\*)" + +" ----------------------------------------------------------------------------- +" Block Comments +" ----------------------------------------------------------------------------- +syn region modula2Comment start="(\*\(!m2iso\(+[a-z0-9]\+\)\?\*)\)\@!" end="\*)" + \ contains = modula2Comment, modula2CommentKey, modula2TechDebtMarker +syn match modula2CommentKey "[Aa]uthor[s]\?\|[Cc]opyright\|[Ll]icense\|[Ss]ynopsis" +syn match modula2CommentKey "\([Pp]re\|[Pp]ost\|[Ee]rror\)\-condition[s]\?:" + + +" ----------------------------------------------------------------------------- +" Technical Debt Markers +" ----------------------------------------------------------------------------- +syn keyword modula2TechDebtMarker contained DEPRECATED FIXME +syn match modula2TechDebtMarker "TODO[:]\?" contained + +" ----------------------------------------------------------------------------- +" Disabled Code Sections +" ----------------------------------------------------------------------------- +syn region modula2DisabledCode start="^?<" end="^>?" + + +" ----------------------------------------------------------------------------- +" Headers +" ----------------------------------------------------------------------------- +" !!! this section must be second last !!! + +" new module header +syn match modula2ModuleHeader + \ "MODULE\( [A-Z][a-zA-Z0-9]*\)\?" + \ contains = modula2ReswordModule, modula2ModuleIdent + +syn match modula2ModuleIdent + \ "[A-Z][a-zA-Z0-9]*" contained + +syn match modula2ModuleTail + \ "END [A-Z][a-zA-Z0-9]*\.$" + \ contains = modula2ReswordEnd, modula2ModuleIdent, modula2Punctuation + +" new procedure header +syn match modula2ProcedureHeader + \ "PROCEDURE\( [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*\)\?" + \ contains = modula2ReswordProcedure, + \ modula2ProcedureIdent, modula2ProcedureLowlineIdent, modula2IllegalChar, modula2IllegalIdent + +syn match modula2ProcedureIdent + \ "\([a-zA-Z]\)\([a-zA-Z0-9]*\)" contained + +syn match modula2ProcedureLowlineIdent + \ "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" contained + +syn match modula2ProcedureTail + \ "END\( \([a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*\)[.;]$\)\?" + \ contains = modula2ReswordEnd, + \ modula2ProcedureIdent, modula2ProcedureLowLineIdent, + \ modula2Punctuation, modula2IllegalChar, modula2IllegalIdent + +syn keyword modula2ReswordModule contained MODULE +syn keyword modula2ReswordProcedure contained PROCEDURE +syn keyword modula2ReswordEnd contained END + + +" ----------------------------------------------------------------------------- +" Illegal Symbols +" ----------------------------------------------------------------------------- +" !!! this section must be last !!! + +" any '`' '!' '$' '%' or '\' +syn match modula2IllegalChar "[`!$%\\]" + +" any solitary sequence of '_' +syn match modula2IllegalChar "\<_\+\>" + +" any '?' at start of line if not followed by '<' +syn match modula2IllegalChar "^?\(<\)\@!" + +" any '?' not following '>' at start of line +syn match modula2IllegalChar "\(\(^>\)\|\(^\)\)\@" + + +" ----------------------------------------------------------------------------- +" Define Rendering Styles +" ----------------------------------------------------------------------------- + +" highlight default link modula2PredefIdentStyle Keyword +" highlight default link modula2ConstIdentStyle modula2PredefIdentStyle +" highlight default link modula2TypeIdentStyle modula2PredefIdentStyle +" highlight default link modula2ProcIdentStyle modula2PredefIdentStyle +" highlight default link modula2FuncIdentStyle modula2PredefIdentStyle +" highlight default link modula2MacroIdentStyle modula2PredefIdentStyle + +highlight default link modula2ConstIdentStyle Constant +highlight default link modula2TypeIdentStyle Type +highlight default link modula2ProcIdentStyle Function +highlight default link modula2FuncIdentStyle Function +highlight default link modula2MacroIdentStyle Function +highlight default link modula2UnsafeIdentStyle Question +highlight default link modula2NonPortableIdentStyle Question +highlight default link modula2StringLiteralStyle String +highlight default link modula2CommentStyle Comment +highlight default link modula2PragmaStyle PreProc +highlight default link modula2DialectTagStyle SpecialComment +highlight default link modula2TechDebtMarkerStyle SpecialComment +highlight default link modula2ReswordStyle Keyword +highlight default link modula2HeaderIdentStyle Function +highlight default link modula2UserDefIdentStyle Normal +highlight default link modula2NumericLiteralStyle Number +highlight default link modula2PunctuationStyle Delimiter +highlight default link modula2CommentKeyStyle SpecialComment +highlight default link modula2DisabledCodeStyle NonText + +" ----------------------------------------------------------------------------- +" Assign Rendering Styles +" ----------------------------------------------------------------------------- + +" headers +highlight default link modula2ModuleIdent modula2HeaderIdentStyle +highlight default link modula2ProcedureIdent modula2HeaderIdentStyle +highlight default link modula2ModuleHeader Normal +highlight default link modula2ModuleTail Normal +highlight default link modula2ProcedureHeader Normal +highlight default link modula2ProcedureTail Normal + +" lowline identifiers are rendered as errors if g:modula2_iso_allow_lowline is unset +if exists("g:modula2_iso_allow_lowline") + if g:modula2_iso_allow_lowline != 0 + highlight default link modula2ProcedureLowlineIdent modula2HeaderIdentStyle + else + highlight default link modula2ProcedureLowlineIdent Error + endif +else + highlight default link modula2ProcedureLowlineIdent modula2HeaderIdentStyle +endif + +" reserved words +highlight default link modula2Resword modula2ReswordStyle +highlight default link modula2ReswordModule modula2ReswordStyle +highlight default link modula2ReswordProcedure modula2ReswordStyle +highlight default link modula2ReswordEnd modula2ReswordStyle + +" predefined identifiers +highlight default link modula2ConstIdent modula2ConstIdentStyle +highlight default link modula2TypeIdent modula2TypeIdentStyle +highlight default link modula2ProcIdent modula2ProcIdentStyle +highlight default link modula2FuncIdent modula2FuncIdentStyle +highlight default link modula2MacroIdent modula2MacroIdentStyle + +" unsafe and non-portable identifiers +highlight default link modula2UnsafeIdent modula2UnsafeIdentStyle +highlight default link modula2NonPortableIdent modula2NonPortableIdentStyle + +" user defined identifiers +highlight default link modula2Ident modula2UserDefIdentStyle + +" lowline identifiers are rendered as errors if g:modula2_iso_allow_lowline is unset +if exists("g:modula2_iso_allow_lowline") + if g:modula2_iso_allow_lowline != 0 + highlight default link modula2LowLineIdent modula2UserDefIdentStyle + else + highlight default link modula2LowLineIdent Error + endif +else + highlight default link modula2LowLineIdent modula2UserDefIdentStyle +endif + +" literals +highlight default link modula2String modula2StringLiteralStyle +highlight default link modula2Num modula2NumericLiteralStyle + +" octal literals are rendered as errors if g:modula2_iso_disallow_octals is set +if exists("g:modula2_iso_disallow_octals") + if g:modula2_iso_disallow_octals != 0 + highlight default link modula2Octal Error + else + highlight default link modula2Octal modula2NumericLiteralStyle + endif +else + highlight default link modula2Octal modula2NumericLiteralStyle +endif + +" punctuation +highlight default link modula2Punctuation modula2PunctuationStyle + +" synonyms & and ~ are rendered as errors if g:modula2_iso_disallow_synonyms is set +if exists("g:modula2_iso_disallow_synonyms") + if g:modula2_iso_disallow_synonyms != 0 + highlight default link modula2Synonym Error + else + highlight default link modula2Synonym modula2PunctuationStyle + endif +else + highlight default link modula2Synonym modula2PunctuationStyle +endif + +" pragmas +highlight default link modula2Pragma modula2PragmaStyle +highlight default link modula2DialectTag modula2DialectTagStyle + +" comments +highlight default link modula2Comment modula2CommentStyle +highlight default link modula2CommentKey modula2CommentKeyStyle + +" technical debt markers +highlight default link modula2TechDebtMarker modula2TechDebtMarkerStyle + +" disabled code +highlight default link modula2DisabledCode modula2DisabledCodeStyle + +" illegal symbols +highlight default link modula2IllegalChar Error +highlight default link modula2IllegalIdent Error + + +let b:current_syntax = "modula2" + +" vim: ts=4 + +" END OF FILE diff --git a/git/usr/share/vim/vim92/syntax/modula2/opt/pim.vim b/git/usr/share/vim/vim92/syntax/modula2/opt/pim.vim new file mode 100644 index 0000000000000000000000000000000000000000..1626db91cfaa9d9397ea4af9976a7058403b77ff --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modula2/opt/pim.vim @@ -0,0 +1,377 @@ +" Vim syntax file +" Language: Modula-2 (PIM) +" Maintainer: B.Kowarsch +" Last Change: 2016 August 22 + +" ---------------------------------------------------- +" THIS FILE IS LICENSED UNDER THE VIM LICENSE +" see https://github.com/vim/vim/blob/master/LICENSE +" ---------------------------------------------------- + +" Remarks: +" Vim Syntax files are available for the following Modula-2 dialects: +" * for the PIM dialect : m2pim.vim (this file) +" * for the ISO dialect : m2iso.vim +" * for the R10 dialect : m2r10.vim + +" ----------------------------------------------------------------------------- +" This syntax description follows the 3rd and 4th editions of N.Wirth's Book +" Programming in Modula-2 (aka PIM) plus the following language extensions: +" * non-leading, non-trailing, non-consecutive lowlines _ in identifiers +" * widely supported non-standard types BYTE, LONGCARD and LONGBITSET +" * non-nesting code disabling tags ?< and >? at the start of a line +" ----------------------------------------------------------------------------- + +" Parameters: +" +" Vim's filetype script recognises Modula-2 dialect tags within the first 200 +" lines of Modula-2 .def and .mod input files. The script sets filetype and +" dialect automatically when a valid dialect tag is found in the input file. +" The dialect tag for the PIM dialect is (*!m2pim*). It is recommended to put +" the tag immediately after the module header in the Modula-2 input file. +" +" Example: +" DEFINITION MODULE Foolib; (*!m2pim*) +" +" Variable g:modula2_default_dialect sets the default Modula-2 dialect when the +" dialect cannot be determined from the contents of the Modula-2 input file: +" if defined and set to 'm2pim', the default dialect is PIM. +" +" Variable g:modula2_pim_allow_lowline controls support for lowline in identifiers: +" if defined and set to a non-zero value, they are recognised, otherwise not +" +" Variable g:modula2_pim_disallow_octals controls the rendering of octal literals: +" if defined and set to a non-zero value, they are rendered as errors. +" +" Variable g:modula2_pim_disallow_synonyms controls the rendering of & and ~: +" if defined and set to a non-zero value, they are rendered as errors. +" +" Variables may be defined in Vim startup file .vimrc +" +" Examples: +" let g:modula2_default_dialect = 'm2pim' +" let g:modula2_pim_allow_lowline = 1 +" let g:modula2_pim_disallow_octals = 1 +" let g:modula2_pim_disallow_synonyms = 1 + + +if exists("b:current_syntax") + finish +endif + +" Modula-2 is case sensitive +syn case match + + +" ----------------------------------------------------------------------------- +" Reserved Words +" ----------------------------------------------------------------------------- +syn keyword modula2Resword AND ARRAY BEGIN BY CASE CONST DEFINITION DIV DO ELSE +syn keyword modula2Resword ELSIF EXIT EXPORT FOR FROM IF IMPLEMENTATION IMPORT +syn keyword modula2Resword IN LOOP MOD NOT OF OR POINTER QUALIFIED RECORD REPEAT +syn keyword modula2Resword RETURN SET THEN TO TYPE UNTIL VAR WHILE WITH + + +" ----------------------------------------------------------------------------- +" Builtin Constant Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ConstIdent FALSE NIL TRUE + + +" ----------------------------------------------------------------------------- +" Builtin Type Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2TypeIdent BITSET BOOLEAN CHAR PROC +syn keyword modula2TypeIdent CARDINAL INTEGER LONGINT REAL LONGREAL + + +" ----------------------------------------------------------------------------- +" Builtin Procedure and Function Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ProcIdent CAP DEC EXCL HALT INC INCL +syn keyword modula2FuncIdent ABS CHR FLOAT HIGH MAX MIN ODD ORD SIZE TRUNC VAL + + +" ----------------------------------------------------------------------------- +" Wirthian Macro Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2MacroIdent NEW DISPOSE + + +" ----------------------------------------------------------------------------- +" Unsafe Facilities via Pseudo-Module SYSTEM +" ----------------------------------------------------------------------------- +syn keyword modula2UnsafeIdent ADDRESS PROCESS WORD +syn keyword modula2UnsafeIdent ADR TSIZE NEWPROCESS TRANSFER SYSTEM + + +" ----------------------------------------------------------------------------- +" Non-Portable Language Extensions +" ----------------------------------------------------------------------------- +syn keyword modula2NonPortableIdent BYTE LONGCARD LONGBITSET + + +" ----------------------------------------------------------------------------- +" User Defined Identifiers +" ----------------------------------------------------------------------------- +syn match modula2Ident "[a-zA-Z][a-zA-Z0-9]*\(_\)\@!" +syn match modula2LowLineIdent "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" + + +" ----------------------------------------------------------------------------- +" String Literals +" ----------------------------------------------------------------------------- +syn region modula2String start=/"/ end=/"/ oneline +syn region modula2String start=/'/ end=/'/ oneline + + +" ----------------------------------------------------------------------------- +" Numeric Literals +" ----------------------------------------------------------------------------- +syn match modula2Num + \ "\(\([0-7]\+\)[BC]\@!\|[89]\)[0-9]*\(\.[0-9]\+\([eE][+-]\?[0-9]\+\)\?\)\?" +syn match modula2Num "[0-9A-F]\+H" +syn match modula2Octal "[0-7]\+[BC]" + + +" ----------------------------------------------------------------------------- +" Punctuation +" ----------------------------------------------------------------------------- +syn match modula2Punctuation + \ "\.\|[,:;]\|\*\|[/+-]\|\#\|[=<>]\|\^\|\[\|\]\|(\(\*\)\@!\|[){}]" +syn match modula2Synonym "[&~]" + + +" ----------------------------------------------------------------------------- +" Pragmas +" ----------------------------------------------------------------------------- +syn region modula2Pragma start="(\*\$" end="\*)" +syn match modula2DialectTag "(\*!m2pim\(+[a-z0-9]\+\)\?\*)" + +" ----------------------------------------------------------------------------- +" Block Comments +" ----------------------------------------------------------------------------- +syn region modula2Comment start="(\*\(\$\|!m2pim\(+[a-z0-9]\+\)\?\*)\)\@!" end="\*)" + \ contains = modula2Comment, modula2CommentKey, modula2TechDebtMarker +syn match modula2CommentKey "[Aa]uthor[s]\?\|[Cc]opyright\|[Ll]icense\|[Ss]ynopsis" +syn match modula2CommentKey "\([Pp]re\|[Pp]ost\|[Ee]rror\)\-condition[s]\?:" + + +" ----------------------------------------------------------------------------- +" Technical Debt Markers +" ----------------------------------------------------------------------------- +syn keyword modula2TechDebtMarker contained DEPRECATED FIXME +syn match modula2TechDebtMarker "TODO[:]\?" contained + +" ----------------------------------------------------------------------------- +" Disabled Code Sections +" ----------------------------------------------------------------------------- +syn region modula2DisabledCode start="^?<" end="^>?" + + +" ----------------------------------------------------------------------------- +" Headers +" ----------------------------------------------------------------------------- +" !!! this section must be second last !!! + +" new module header +syn match modula2ModuleHeader + \ "MODULE\( [A-Z][a-zA-Z0-9]*\)\?" + \ contains = modula2ReswordModule, modula2ModuleIdent + +syn match modula2ModuleIdent + \ "[A-Z][a-zA-Z0-9]*" contained + +syn match modula2ModuleTail + \ "END [A-Z][a-zA-Z0-9]*\.$" + \ contains = modula2ReswordEnd, modula2ModuleIdent, modula2Punctuation + +" new procedure header +syn match modula2ProcedureHeader + \ "PROCEDURE\( [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*\)\?" + \ contains = modula2ReswordProcedure, + \ modula2ProcedureIdent, modula2ProcedureLowlineIdent, modula2IllegalChar, modula2IllegalIdent + +syn match modula2ProcedureIdent + \ "\([a-zA-Z]\)\([a-zA-Z0-9]*\)" contained + +syn match modula2ProcedureLowlineIdent + \ "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" contained + +syn match modula2ProcedureTail + \ "END\( \([a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*\)[.;]$\)\?" + \ contains = modula2ReswordEnd, + \ modula2ProcedureIdent, modula2ProcedureLowLineIdent, + \ modula2Punctuation, modula2IllegalChar, modula2IllegalIdent + +syn keyword modula2ReswordModule contained MODULE +syn keyword modula2ReswordProcedure contained PROCEDURE +syn keyword modula2ReswordEnd contained END + + +" ----------------------------------------------------------------------------- +" Illegal Symbols +" ----------------------------------------------------------------------------- +" !!! this section must be last !!! + +" any '`' '!' '@ ''$' '%' or '\' +syn match modula2IllegalChar "[`!@$%\\]" + +" any solitary sequence of '_' +syn match modula2IllegalChar "\<_\+\>" + +" any '?' at start of line if not followed by '<' +syn match modula2IllegalChar "^?\(<\)\@!" + +" any '?' not following '>' at start of line +syn match modula2IllegalChar "\(\(^>\)\|\(^\)\)\@" + + +" ----------------------------------------------------------------------------- +" Define Rendering Styles +" ----------------------------------------------------------------------------- + +" highlight default link modula2PredefIdentStyle Keyword +" highlight default link modula2ConstIdentStyle modula2PredefIdentStyle +" highlight default link modula2TypeIdentStyle modula2PredefIdentStyle +" highlight default link modula2ProcIdentStyle modula2PredefIdentStyle +" highlight default link modula2FuncIdentStyle modula2PredefIdentStyle +" highlight default link modula2MacroIdentStyle modula2PredefIdentStyle + +highlight default link modula2ConstIdentStyle Constant +highlight default link modula2TypeIdentStyle Type +highlight default link modula2ProcIdentStyle Function +highlight default link modula2FuncIdentStyle Function +highlight default link modula2MacroIdentStyle Function +highlight default link modula2UnsafeIdentStyle Question +highlight default link modula2NonPortableIdentStyle Question +highlight default link modula2StringLiteralStyle String +highlight default link modula2CommentStyle Comment +highlight default link modula2PragmaStyle PreProc +highlight default link modula2DialectTagStyle SpecialComment +highlight default link modula2TechDebtMarkerStyle SpecialComment +highlight default link modula2ReswordStyle Keyword +highlight default link modula2HeaderIdentStyle Function +highlight default link modula2UserDefIdentStyle Normal +highlight default link modula2NumericLiteralStyle Number +highlight default link modula2PunctuationStyle Delimiter +highlight default link modula2CommentKeyStyle SpecialComment +highlight default link modula2DisabledCodeStyle NonText + +" ----------------------------------------------------------------------------- +" Assign Rendering Styles +" ----------------------------------------------------------------------------- + +" headers +highlight default link modula2ModuleIdent modula2HeaderIdentStyle +highlight default link modula2ProcedureIdent modula2HeaderIdentStyle +highlight default link modula2ModuleHeader Normal +highlight default link modula2ModuleTail Normal +highlight default link modula2ProcedureHeader Normal +highlight default link modula2ProcedureTail Normal + +" lowline identifiers are rendered as errors if g:modula2_pim_allow_lowline is unset +if exists("g:modula2_pim_allow_lowline") + if g:modula2_pim_allow_lowline != 0 + highlight default link modula2ProcedureLowlineIdent modula2HeaderIdentStyle + else + highlight default link modula2ProcedureLowlineIdent Error + endif +else + highlight default link modula2ProcedureLowlineIdent Error +endif + +" reserved words +highlight default link modula2Resword modula2ReswordStyle +highlight default link modula2ReswordModule modula2ReswordStyle +highlight default link modula2ReswordProcedure modula2ReswordStyle +highlight default link modula2ReswordEnd modula2ReswordStyle + +" predefined identifiers +highlight default link modula2ConstIdent modula2ConstIdentStyle +highlight default link modula2TypeIdent modula2TypeIdentStyle +highlight default link modula2ProcIdent modula2ProcIdentStyle +highlight default link modula2FuncIdent modula2FuncIdentStyle +highlight default link modula2MacroIdent modula2MacroIdentStyle + +" unsafe and non-portable identifiers +highlight default link modula2UnsafeIdent modula2UnsafeIdentStyle +highlight default link modula2NonPortableIdent modula2NonPortableIdentStyle + +" user defined identifiers +highlight default link modula2Ident modula2UserDefIdentStyle + +" lowline identifiers are rendered as errors if g:modula2_pim_allow_lowline is unset +if exists("g:modula2_pim_allow_lowline") + if g:modula2_pim_allow_lowline != 0 + highlight default link modula2LowLineIdent modula2UserDefIdentStyle + else + highlight default link modula2LowLineIdent Error + endif +else + highlight default link modula2LowLineIdent Error +endif + +" literals +highlight default link modula2String modula2StringLiteralStyle +highlight default link modula2Num modula2NumericLiteralStyle + +" octal literals are rendered as errors if g:modula2_pim_disallow_octals is set +if exists("g:modula2_pim_disallow_octals") + if g:modula2_pim_disallow_octals != 0 + highlight default link modula2Octal Error + else + highlight default link modula2Octal modula2NumericLiteralStyle + endif +else + highlight default link modula2Octal modula2NumericLiteralStyle +endif + +" punctuation +highlight default link modula2Punctuation modula2PunctuationStyle + +" synonyms & and ~ are rendered as errors if g:modula2_pim_disallow_synonyms is set +if exists("g:modula2_pim_disallow_synonyms") + if g:modula2_pim_disallow_synonyms != 0 + highlight default link modula2Synonym Error + else + highlight default link modula2Synonym modula2PunctuationStyle + endif +else + highlight default link modula2Synonym modula2PunctuationStyle +endif + +" pragmas +highlight default link modula2Pragma modula2PragmaStyle +highlight default link modula2DialectTag modula2DialectTagStyle + +" comments +highlight default link modula2Comment modula2CommentStyle +highlight default link modula2CommentKey modula2CommentKeyStyle + +" technical debt markers +highlight default link modula2TechDebtMarker modula2TechDebtMarkerStyle + +" disabled code +highlight default link modula2DisabledCode modula2DisabledCodeStyle + +" illegal symbols +highlight default link modula2IllegalChar Error +highlight default link modula2IllegalIdent Error + + +let b:current_syntax = "modula2" + +" vim: ts=4 + +" END OF FILE diff --git a/git/usr/share/vim/vim92/syntax/modula2/opt/r10.vim b/git/usr/share/vim/vim92/syntax/modula2/opt/r10.vim new file mode 100644 index 0000000000000000000000000000000000000000..5172be54c6f46ec50e653a8bda743d342d92bb35 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modula2/opt/r10.vim @@ -0,0 +1,452 @@ +" Vim syntax file +" Language: Modula-2 (R10) +" Maintainer: B.Kowarsch +" Last Change: 2020 June 18 (moved repository from bb to github) + +" ---------------------------------------------------- +" THIS FILE IS LICENSED UNDER THE VIM LICENSE +" see https://github.com/vim/vim/blob/master/LICENSE +" ---------------------------------------------------- + +" Remarks: +" Vim Syntax files are available for the following Modula-2 dialects: +" * for the PIM dialect : m2pim.vim +" * for the ISO dialect : m2iso.vim +" * for the R10 dialect : m2r10.vim (this file) + +" ----------------------------------------------------------------------------- +" This syntax description follows the Modula-2 Revision 2010 language report +" (Kowarsch and Sutcliffe, 2015) available at http://modula-2.info/m2r10. +" ----------------------------------------------------------------------------- + +" Parameters: +" +" Vim's filetype script recognises Modula-2 dialect tags within the first 200 +" lines of Modula-2 .def and .mod input files. The script sets filetype and +" dialect automatically when a valid dialect tag is found in the input file. +" The dialect tag for the R10 dialect is (*!m2r10*). It is recommended to put +" the tag immediately after the module header in the Modula-2 input file. +" +" Example: +" DEFINITION MODULE Foolib; (*!m2r10*) +" +" Variable g:modula2_default_dialect sets the default Modula-2 dialect when the +" dialect cannot be determined from the contents of the Modula-2 input file: +" if defined and set to 'm2r10', the default dialect is R10. +" +" Variable g:modula2_r10_allow_lowline controls support for lowline in identifiers: +" if defined and set to a non-zero value, they are recognised, otherwise not +" +" Variables may be defined in Vim startup file .vimrc +" +" Examples: +" let g:modula2_default_dialect = 'm2r10' +" let g:modula2_r10_allow_lowline = 1 + + +if exists("b:current_syntax") + finish +endif + +" Modula-2 is case sensitive +syn case match + + +" ----------------------------------------------------------------------------- +" Reserved Words +" ----------------------------------------------------------------------------- +" Note: MODULE, PROCEDURE and END are defined separately further below +syn keyword modula2Resword ALIAS AND ARGLIST ARRAY BEGIN CASE CONST COPY DEFINITION +syn keyword modula2Resword DIV DO ELSE ELSIF EXIT FOR FROM GENLIB IF IMPLEMENTATION +syn keyword modula2Resword IMPORT IN LOOP MOD NEW NOT OF OPAQUE OR POINTER READ +syn keyword modula2Resword RECORD RELEASE REPEAT RETAIN RETURN SET THEN TO TYPE +syn keyword modula2Resword UNTIL VAR WHILE WRITE YIELD + + +" ----------------------------------------------------------------------------- +" Schroedinger's Tokens +" ----------------------------------------------------------------------------- +syn keyword modula2SchroedToken CAPACITY COROUTINE LITERAL + + +" ----------------------------------------------------------------------------- +" Builtin Constant Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ConstIdent NIL FALSE TRUE + + +" ----------------------------------------------------------------------------- +" Builtin Type Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2TypeIdent BOOLEAN CHAR UNICHAR OCTET +syn keyword modula2TypeIdent CARDINAL LONGCARD INTEGER LONGINT REAL LONGREAL + + +" ----------------------------------------------------------------------------- +" Builtin Procedure and Function Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2ProcIdent APPEND INSERT REMOVE SORT SORTNEW +syn keyword modula2FuncIdent CHR ORD ODD ABS SGN MIN MAX LOG2 POW2 ENTIER +syn keyword modula2FuncIdent PRED SUCC PTR COUNT LENGTH + + +" ----------------------------------------------------------------------------- +" Builtin Macro Identifiers +" ----------------------------------------------------------------------------- +syn keyword modula2MacroIdent NOP TMIN TMAX TSIZE TLIMIT + + +" ----------------------------------------------------------------------------- +" Builtin Primitives +" ----------------------------------------------------------------------------- +syn keyword modula2PrimitiveIdent SXF VAL STORE VALUE SEEK SUBSET + + +" ----------------------------------------------------------------------------- +" Unsafe Facilities via Pseudo-Module UNSAFE +" ----------------------------------------------------------------------------- +syn keyword modula2UnsafeIdent UNSAFE BYTE WORD LONGWORD OCTETSEQ +syn keyword modula2UnsafeIdent ADD SUB INC DEC SETBIT HALT +syn keyword modula2UnsafeIdent ADR CAST BIT SHL SHR BWNOT BWAND BWOR + + +" ----------------------------------------------------------------------------- +" Non-Portable Language Extensions +" ----------------------------------------------------------------------------- +syn keyword modula2NonPortableIdent ASSEMBLER ASM REG + + +" ----------------------------------------------------------------------------- +" User Defined Identifiers +" ----------------------------------------------------------------------------- +syn match modula2Ident "[a-zA-Z][a-zA-Z0-9]*\(_\)\@!" +syn match modula2LowLineIdent "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" + +syn match modula2ReswordDo "\(TO\)\@&#,]\|\[\)\@<='" end=/'/ oneline + + +" ----------------------------------------------------------------------------- +" Numeric Literals +" ----------------------------------------------------------------------------- +syn match modula2Base2Num "0b[01]\+\('[01]\+\)*" +syn match modula2Base16Num "0[ux][0-9A-F]\+\('[0-9A-F]\+\)*" + +"| *** VMSCRIPT BUG ALERT *** +"| The regular expression below causes errors when split into separate strings +"| +"| syn match modula2Base10Num +"| \ "\(\(0[bux]\@!\|[1-9]\)[0-9]*\('[0-9]\+\)*\)" . +"| \ "\(\.[0-9]\+\('[0-9]\+\)*\(e[+-]\?[0-9]\+\('[0-9]\+\)*\)\?\)\?" +"| +"| E475: Invalid argument: modula2Base10Num "\(\(0[bux]\@!\|[1-9]\)[0-9]*\('[0-9]\+\)*\)" +"| . "\(\.[0-9]\+\('[0-9]\+\)*\(e[+-]\?[0-9]\+\('[0-9]\+\)*\)\?\)\?" +"| +"| However, the same regular expression works just fine as a sole string. +"| +"| As a consequence, we have no choice but to put it all into a single line +"| which greatly diminishes readability and thereby increases the opportunity +"| for error during maintenance. Ideally, regular expressions should be split +"| into small human readable pieces with interleaved comments that explain +"| precisely what each piece is doing. Vim script imposes poor design. :-( + +syn match modula2Base10Num + \ "\(\(0[bux]\@!\|[1-9]\)[0-9]*\('[0-9]\+\)*\)\(\.[0-9]\+\('[0-9]\+\)*\(e[+-]\?[0-9]\+\('[0-9]\+\)*\)\?\)\?" + + +" ----------------------------------------------------------------------------- +" Punctuation +" ----------------------------------------------------------------------------- +syn match modula2Punctuation + \ "\.\|[,:;]\|\*\|[/+-]\|\#\|[=<>&]\|\^\|\[\|\]\|(\(\*\)\@!\|[){}]" + + +" ----------------------------------------------------------------------------- +" Pragmas +" ----------------------------------------------------------------------------- +syn region modula2Pragma start="<\*" end="\*>" + \ contains = modula2PragmaKey, modula2TechDebtPragma +syn keyword modula2PragmaKey contained MSG IF ELSIF ELSE END INLINE NOINLINE OUT +syn keyword modula2PragmaKey contained GENERATED ENCODING ALIGN PADBITS NORETURN +syn keyword modula2PragmaKey contained PURITY SINGLEASSIGN LOWLATENCY VOLATILE +syn keyword modula2PragmaKey contained FORWARD ADDR FFI FFIDENT + +syn match modula2DialectTag "(\*!m2r10\(+[a-z0-9]\+\)\?\*)" + + +" ----------------------------------------------------------------------------- +" Line Comments +" ----------------------------------------------------------------------------- +syn region modula2Comment start=/^!/ end=/$/ oneline + + +" ----------------------------------------------------------------------------- +" Block Comments +" ----------------------------------------------------------------------------- +syn region modula2Comment + \ start="\(END\s\)\@?" + + +" ----------------------------------------------------------------------------- +" Headers +" ----------------------------------------------------------------------------- +" !!! this section must be second last !!! + +" module header +syn match modula2ModuleHeader + \ "\(MODULE\|BLUEPRINT\)\( [A-Z][a-zA-Z0-9]*\)\?" + \ contains = modula2ReswordModule, modula2ReswordBlueprint, modula2ModuleIdent + +syn match modula2ModuleIdent + \ "[A-Z][a-zA-Z0-9]*" contained + +syn match modula2ModuleTail + \ "END [A-Z][a-zA-Z0-9]*\.$" + \ contains = modula2ReswordEnd, modula2ModuleIdent, modula2Punctuation + +" procedure, sole occurrence +syn match modula2ProcedureHeader + \ "PROCEDURE\(\s\[\|\s[a-zA-Z]\)\@!" contains = modula2ReswordProcedure + +" procedure header +syn match modula2ProcedureHeader + \ "PROCEDURE [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*" + \ contains = modula2ReswordProcedure, + \ modula2ProcedureIdent, modula2ProcedureLowlineIdent, modula2IllegalChar, modula2IllegalIdent + +" procedure binding to operator +syn match modula2ProcedureHeader + \ "PROCEDURE \[[+-\*/\\=<>]\] [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*" + \ contains = modula2ReswordProcedure, modula2Punctuation, + \ modula2ProcedureIdent, modula2ProcedureLowlineIdent, modula2IllegalChar, modula2IllegalIdent + +" procedure binding to builtin +syn match modula2ProcedureHeader + \ "PROCEDURE \[[A-Z]\+\(:\([#\*,]\|++\|--\)\?\)\?\] [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*" + \ contains = modula2ReswordProcedure, + \ modula2Punctuation, modula2Resword, modula2SchroedToken, + \ modula2ProcIdent, modula2FuncIdent, modula2PrimitiveIdent, + \ modula2ProcedureIdent, modula2ProcedureLowlineIdent, modula2IllegalChar, modula2IllegalIdent + +syn match modula2ProcedureIdent + \ "\([a-zA-Z]\)\([a-zA-Z0-9]*\)" contained + +syn match modula2ProcedureLowlineIdent + \ "[a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)\+" contained + +syn match modula2ProcedureTail + \ "END [a-zA-Z][a-zA-Z0-9]*\(_[a-zA-Z0-9]\+\)*;$" + \ contains = modula2ReswordEnd, + \ modula2ProcedureIdent, modula2ProcedureLowLineIdent, + \ modula2Punctuation, modula2IllegalChar, modula2IllegalIdent + +syn keyword modula2ReswordModule contained MODULE +syn keyword modula2ReswordBlueprint contained BLUEPRINT +syn keyword modula2ReswordProcedure contained PROCEDURE +syn keyword modula2ReswordEnd contained END + + +" ----------------------------------------------------------------------------- +" Illegal Symbols +" ----------------------------------------------------------------------------- +" !!! this section must be last !!! + +" any '`' '~' '@' '$' '%' +syn match modula2IllegalChar "[`~@$%]" + +" any solitary sequence of '_' +syn match modula2IllegalChar "\<_\+\>" + +" any '?' at start of line if not followed by '<' +syn match modula2IllegalChar "^?\(<\)\@!" + +" any '?' not following '>' at start of line +syn match modula2IllegalChar "\(\(^>\)\|\(^\)\)\@" + + +" ----------------------------------------------------------------------------- +" Define Rendering Styles +" ----------------------------------------------------------------------------- + +" highlight default link modula2PredefIdentStyle Keyword +" highlight default link modula2ConstIdentStyle modula2PredefIdentStyle +" highlight default link modula2TypeIdentStyle modula2PredefIdentStyle +" highlight default link modula2ProcIdentStyle modula2PredefIdentStyle +" highlight default link modula2FuncIdentStyle modula2PredefIdentStyle +" highlight default link modula2MacroIdentStyle modula2PredefIdentStyle + +highlight default link modula2ConstIdentStyle Constant +highlight default link modula2TypeIdentStyle Type +highlight default link modula2ProcIdentStyle Function +highlight default link modula2FuncIdentStyle Function +highlight default link modula2MacroIdentStyle Function +highlight default link modula2PrimitiveIdentStyle Function +highlight default link modula2UnsafeIdentStyle Question +highlight default link modula2NonPortableIdentStyle Question +highlight default link modula2StringLiteralStyle String +highlight default link modula2CommentStyle Comment +highlight default link modula2PragmaStyle PreProc +highlight default link modula2PragmaKeyStyle PreProc +highlight default link modula2DialectTagStyle SpecialComment +highlight default link modula2TechDebtMarkerStyle SpecialComment +highlight default link modula2ReswordStyle Keyword +highlight default link modula2HeaderIdentStyle Function +highlight default link modula2UserDefIdentStyle Normal +highlight default link modula2NumericLiteralStyle Number +highlight default link modula2PunctuationStyle Delimiter +highlight default link modula2CommentKeyStyle SpecialComment +highlight default link modula2DisabledCodeStyle NonText + + +" ----------------------------------------------------------------------------- +" Assign Rendering Styles +" ----------------------------------------------------------------------------- + +" headers +highlight default link modula2ModuleIdent modula2HeaderIdentStyle +highlight default link modula2ProcedureIdent modula2HeaderIdentStyle +highlight default link modula2ModuleHeader modula2HeaderIdentStyle +highlight default link modula2ModuleTail Normal +highlight default link modula2ProcedureHeader Normal +highlight default link modula2ProcedureTail Normal + +" lowline identifiers are rendered as errors if g:modula2_r10_allow_lowline is unset +if exists("g:modula2_r10_allow_lowline") + if g:modula2_r10_allow_lowline != 0 + highlight default link modula2ProcedureLowlineIdent modula2HeaderIdentStyle + else + highlight default link modula2ProcedureLowlineIdent Error + endif +else + highlight default link modula2ProcedureLowlineIdent modula2HeaderIdentStyle +endif + +" reserved words +highlight default link modula2Resword modula2ReswordStyle +highlight default link modula2ReswordModule modula2ReswordStyle +highlight default link modula2ReswordProcedure modula2ReswordStyle +highlight default link modula2ReswordEnd modula2ReswordStyle +highlight default link modula2ReswordDo modula2ReswordStyle +highlight default link modula2ReswordTo modula2ReswordStyle +highlight default link modula2SchroedToken modula2ReswordStyle + +" predefined identifiers +highlight default link modula2ConstIdent modula2ConstIdentStyle +highlight default link modula2TypeIdent modula2TypeIdentStyle +highlight default link modula2ProcIdent modula2ProcIdentStyle +highlight default link modula2FuncIdent modula2FuncIdentStyle +highlight default link modula2MacroIdent modula2MacroIdentStyle +highlight default link modula2PrimitiveIdent modula2PrimitiveIdentStyle + +" unsafe and non-portable identifiers +highlight default link modula2UnsafeIdent modula2UnsafeIdentStyle +highlight default link modula2NonPortableIdent modula2NonPortableIdentStyle + +" user defined identifiers +highlight default link modula2Ident modula2UserDefIdentStyle + +" lowline identifiers are rendered as errors if g:modula2_r10_allow_lowline is unset +if exists("g:modula2_r10_allow_lowline") + if g:modula2_r10_allow_lowline != 0 + highlight default link modula2LowLineIdent modula2UserDefIdentStyle + else + highlight default link modula2LowLineIdent Error + endif +else + highlight default link modula2LowLineIdent modula2UserDefIdentStyle +endif + +" literals +highlight default link modula2String modula2StringLiteralStyle +highlight default link modula2Base2Num modula2NumericLiteralStyle +highlight default link modula2Base10Num modula2NumericLiteralStyle +highlight default link modula2Base16Num modula2NumericLiteralStyle + +" punctuation +highlight default link modula2Punctuation modula2PunctuationStyle + +" pragmas +highlight default link modula2Pragma modula2PragmaStyle +highlight default link modula2PragmaKey modula2PragmaKeyStyle +highlight default link modula2DialectTag modula2DialectTagStyle + +" comments +highlight default link modula2Comment modula2CommentStyle +highlight default link modula2CommentKey modula2CommentKeyStyle +highlight default link modula2ToDoTailComment modula2CommentStyle +highlight default link modula2StmtTailComment modula2CommentStyle + +" technical debt markers +highlight default link modula2ToDoHeader modula2TechDebtMarkerStyle +highlight default link modula2ToDoTail modula2TechDebtMarkerStyle +highlight default link modula2TechDebtPragma modula2TechDebtMarkerStyle + +" disabled code +highlight default link modula2DisabledCode modula2DisabledCodeStyle + +" illegal symbols +highlight default link modula2IllegalChar Error +highlight default link modula2IllegalIdent Error + + +let b:current_syntax = "modula2" + +" vim: ts=4 + +" END OF FILE diff --git a/git/usr/share/vim/vim92/syntax/modula3.vim b/git/usr/share/vim/vim92/syntax/modula3.vim new file mode 100644 index 0000000000000000000000000000000000000000..67243db600662c39904a012084443fbf6487940c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/modula3.vim @@ -0,0 +1,145 @@ +" Vim syntax file +" Language: Modula-3 +" Maintainer: Doug Kearns +" Previous Maintainer: Timo Pedersen +" Last Change: 2022 Oct 31 + +if exists("b:current_syntax") + finish +endif + +" Whitespace errors {{{1 +if exists("modula3_space_errors") + if !exists("modula3_no_trail_space_error") + syn match modula3SpaceError display excludenl "\s\+$" + endif + if !exists("modula3_no_tab_space_error") + syn match modula3SpaceError display " \+\t"me=e-1 + endif +endif + +" Keywords {{{1 +syn keyword modula3Keyword ANY ARRAY AS BITS BRANDED BY CASE CONST +syn keyword modula3Keyword DEFINITION EVAL EXIT EXCEPT EXCEPTION EXIT +syn keyword modula3Keyword EXPORTS FINALLY FROM GENERIC IMPORT LOCK METHOD +syn keyword modula3Keyword OF RAISE RAISES READONLY RECORD REF +syn keyword modula3Keyword RETURN SET TRY TYPE TYPECASE UNSAFE +syn keyword modula3Keyword VALUE VAR WITH + +syn match modula3keyword "\" + +" Special keywords, block delimiters etc +syn keyword modula3Block PROCEDURE FUNCTION MODULE INTERFACE REPEAT THEN +syn keyword modula3Block BEGIN END OBJECT METHODS OVERRIDES RECORD REVEAL +syn keyword modula3Block WHILE UNTIL DO TO IF FOR ELSIF ELSE LOOP + +" Reserved identifiers {{{1 +syn keyword modula3Identifier ABS ADR ADRSIZE BITSIZE BYTESIZE CEILING DEC +syn keyword modula3Identifier DISPOSE FIRST FLOAT FLOOR INC ISTYPE LAST +syn keyword modula3Identifier LOOPHOLE MAX MIN NARROW NEW NUMBER ORD ROUND +syn keyword modula3Identifier SUBARRAY TRUNC TYPECODE VAL + +" Predefined types {{{1 +syn keyword modula3Type ADDRESS BOOLEAN CARDINAL CHAR EXTENDED INTEGER +syn keyword modula3Type LONGCARD LONGINT LONGREAL MUTEX NULL REAL REFANY TEXT +syn keyword modula3Type WIDECHAR + +syn match modula3Type "\<\%(UNTRACED\s\+\)\=ROOT\>" + +" Operators {{{1 +syn keyword modula3Operator DIV MOD +syn keyword modula3Operator IN +syn keyword modula3Operator NOT AND OR + +" TODO: exclude = from declarations +if exists("modula3_operators") + syn match modula3Operator "\^" + syn match modula3Operator "[-+/*]" + syn match modula3Operator "&" + syn match modula3Operator "<=\|<:\@!\|>=\|>" + syn match modula3Operator ":\@" + + if exists("modula3_number_errors") + syn match modula3IntegerError "\<\d\d\=_\x\+L\=\>" + endif + + let s:digits = "0123456789ABCDEF" + for s:radix in range(2, 16) + exe $'syn match modula3Integer "\<{s:radix}_[{s:digits[:s:radix - 1]}]\+L\=\>"' + endfor + unlet s:digits s:radix + + " Reals + syn match modula3Real "\<\d\+\.\d\+\%([EDX][+-]\=\d\+\)\=\>" + +syn case match + +" Strings and characters {{{2 + +" String escape sequences +syn match modula3Escape "\\['"ntrf]" contained display +" TODO: limit to <= 377 (255) +syn match modula3Escape "\\\o\{3}" contained display +syn match modula3Escape "\\\\" contained display + +" Characters +syn match modula3Character "'\%([^']\|\\.\|\\\o\{3}\)'" contains=modula3Escape + +" Strings +syn region modula3String start=+"+ end=+"+ contains=modula3Escape + +" Pragmas {{{1 +" EXTERNAL INLINE ASSERT TRACE FATAL UNUSED OBSOLETE CALLBACK EXPORTED PRAGMA NOWARN LINE LL LL.sup SPEC +" Documented: INLINE ASSERT TRACE FATAL UNUSED OBSOLETE NOWARN +syn region modula3Pragma start="<\*" end="\*>" + +" Comments {{{1 +if !exists("modula3_no_comment_fold") + syn region modula3Comment start="(\*" end="\*)" contains=modula3Comment,@Spell fold + syn region modula3LineCommentBlock start="^\s*(\*.*\*)\s*\n\%(^\s*(\*.*\*)\s*$\)\@=" end="^\s*(\*.*\*)\s*\n\%(^\s*(\*.*\*)\s*$\)\@!" contains=modula3Comment transparent fold keepend +else + syn region modula3Comment start="(\*" end="\*)" contains=modula3Comment,@Spell +endif + +" Syncing "{{{1 +syn sync minlines=100 + +" Default highlighting {{{1 +hi def link modula3Block Statement +hi def link modula3Boolean Boolean +hi def link modula3Character Character +hi def link modula3Comment Comment +hi def link modula3Escape Special +hi def link modula3Identifier Keyword +hi def link modula3Integer Number +hi def link modula3Keyword Statement +hi def link modula3Nil Constant +hi def link modula3IntegerError Error +hi def link modula3Operator Operator +hi def link modula3Pragma PreProc +hi def link modula3Real Float +hi def link modula3String String +hi def link modula3Type Type "}}} + +let b:current_syntax = "modula3" + +" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker: diff --git a/git/usr/share/vim/vim92/syntax/mojo.vim b/git/usr/share/vim/vim92/syntax/mojo.vim new file mode 100644 index 0000000000000000000000000000000000000000..b7dae24a157bb309e7c6d9bcc5b0b2ae40a4e3eb --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mojo.vim @@ -0,0 +1,316 @@ +" Vim syntax file +" Language: Mojo +" Maintainer: Mahmoud Abduljawad +" Last Change: 2023 Sep 09 +" Credits: Mahmoud Abduljawad +" Neil Schemenauer +" Dmitry Vasiliev +" +" This is based on Vim Python highlighting +" +" - introduced highlighting of doctests +" - updated keywords, built-ins, and exceptions +" - corrected regular expressions for +" +" * functions +" * decorators +" * strings +" * escapes +" * numbers +" * space error +" +" - corrected synchronization +" - more highlighting is ON by default, except +" - space error highlighting is OFF by default +" +" Optional highlighting can be controlled using these variables. +" +" let mojo_no_builtin_highlight = 1 +" let mojo_no_doctest_code_highlight = 1 +" let mojo_no_doctest_highlight = 1 +" let mojo_no_exception_highlight = 1 +" let mojo_no_number_highlight = 1 +" let mojo_space_error_highlight = 1 +" +" All the options above can be switched on together. +" +" let mojo_highlight_all = 1 +" +" The use of Python 2 compatible syntax highlighting can be enforced. +" The straddling code (Python 2 and 3 compatible), up to Python 3.5, +" will be also supported. +" +" let mojo_use_python2_syntax = 1 +" +" This option will exclude all modern Python 3.6 or higher features. +" + +" quit when a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif + +" We need nocompatible mode in order to continue lines with backslashes. +" Original setting will be restored. +let s:cpo_save = &cpo +set cpo&vim + +if exists("mojo_no_doctest_highlight") + let mojo_no_doctest_code_highlight = 1 +endif + +if exists("mojo_highlight_all") + if exists("mojo_no_builtin_highlight") + unlet mojo_no_builtin_highlight + endif + if exists("mojo_no_doctest_code_highlight") + unlet mojo_no_doctest_code_highlight + endif + if exists("mojo_no_doctest_highlight") + unlet mojo_no_doctest_highlight + endif + if exists("mojo_no_exception_highlight") + unlet mojo_no_exception_highlight + endif + if exists("mojo_no_number_highlight") + unlet mojo_no_number_highlight + endif + let mojo_space_error_highlight = 1 +endif + +" These keywords are based on Python syntax highlight, and adds to it struct, +" fn, alias, var, let +" +syn keyword mojoStatement False None True +syn keyword mojoStatement as assert break continue del global +syn keyword mojoStatement lambda nonlocal pass return with yield +syn keyword mojoStatement class def nextgroup=mojoFunction skipwhite +syn keyword mojoStatement struct fn nextgroup=mojoFunction skipwhite +syn keyword mojoStatement alias var let +syn keyword mojoConditional elif else if +syn keyword mojoRepeat for while +syn keyword mojoOperator and in is not or +syn keyword mojoException except finally raise try +syn keyword mojoInclude from import +syn keyword mojoAsync async await + +" Soft keywords +" These keywords do not mean anything unless used in the right context. +" See https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords +" for more on this. +syn match mojoConditional "^\s*\zscase\%(\s\+.*:.*$\)\@=" +syn match mojoConditional "^\s*\zsmatch\%(\s\+.*:\s*\%(#.*\)\=$\)\@=" + +" Decorators +" A dot must be allowed because of @MyClass.myfunc decorators. +syn match mojoDecorator "@" display contained +syn match mojoDecoratorName "@\s*\h\%(\w\|\.\)*" display contains=pythonDecorator + +" Python 3.5 introduced the use of the same symbol for matrix multiplication: +" https://www.python.org/dev/peps/pep-0465/. We now have to exclude the +" symbol from highlighting when used in that context. +" Single line multiplication. +syn match mojoMatrixMultiply + \ "\%(\w\|[])]\)\s*@" + \ contains=ALLBUT,mojoDecoratorName,mojoDecorator,mojoFunction,mojoDoctestValue + \ transparent +" Multiplication continued on the next line after backslash. +syn match mojoMatrixMultiply + \ "[^\\]\\\s*\n\%(\s*\.\.\.\s\)\=\s\+@" + \ contains=ALLBUT,mojoDecoratorName,mojoDecorator,mojoFunction,mojoDoctestValue + \ transparent +" Multiplication in a parenthesized expression over multiple lines with @ at +" the start of each continued line; very similar to decorators and complex. +syn match mojoMatrixMultiply + \ "^\s*\%(\%(>>>\|\.\.\.\)\s\+\)\=\zs\%(\h\|\%(\h\|[[(]\).\{-}\%(\w\|[])]\)\)\s*\n\%(\s*\.\.\.\s\)\=\s\+@\%(.\{-}\n\%(\s*\.\.\.\s\)\=\s\+@\)*" + \ contains=ALLBUT,mojoDecoratorName,mojoDecorator,mojoFunction,mojoDoctestValue + \ transparent + +syn match mojoFunction "\h\w*" display contained + +syn match mojoComment "#.*$" contains=mojoTodo,@Spell +syn keyword mojoTodo FIXME NOTE NOTES TODO XXX contained + +" Triple-quoted strings can contain doctests. +syn region mojoString matchgroup=mojoQuotes + \ start=+[uU]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1" + \ contains=mojoEscape,@Spell +syn region mojoString matchgroup=mojoTripleQuotes + \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend + \ contains=mojoEscape,mojoSpaceError,mojoDoctest,@Spell +syn region mojoRawString matchgroup=mojoQuotes + \ start=+[uU]\=[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1" + \ contains=@Spell +syn region mojoRawString matchgroup=pythonTripleQuotes + \ start=+[uU]\=[rR]\z('''\|"""\)+ end="\z1" keepend + \ contains=pythonSpaceError,mojoDoctest,@Spell + +syn match mojoEscape +\\[abfnrtv'"\\]+ contained +syn match mojoEscape "\\\o\{1,3}" contained +syn match mojoEscape "\\x\x\{2}" contained +syn match mojoEscape "\%(\\u\x\{4}\|\\U\x\{8}\)" contained +" Python allows case-insensitive Unicode IDs: http://www.unicode.org/charts/ +syn match mojoEscape "\\N{\a\+\%(\s\a\+\)*}" contained +syn match mojoEscape "\\$" + +" It is very important to understand all details before changing the +" regular expressions below or their order. +" The word boundaries are *not* the floating-point number boundaries +" because of a possible leading or trailing decimal point. +" The expressions below ensure that all valid number literals are +" highlighted, and invalid number literals are not. For example, +" +" - a decimal point in '4.' at the end of a line is highlighted, +" - a second dot in 1.0.0 is not highlighted, +" - 08 is not highlighted, +" - 08e0 or 08j are highlighted, +" +" and so on, as specified in the 'Python Language Reference'. +" https://docs.python.org/reference/lexical_analysis.html#numeric-literals +if !exists("mojo_no_number_highlight") + " numbers (including complex) + syn match mojoNumber "\<0[oO]\%(_\=\o\)\+\>" + syn match mojoNumber "\<0[xX]\%(_\=\x\)\+\>" + syn match mojoNumber "\<0[bB]\%(_\=[01]\)\+\>" + syn match mojoNumber "\<\%([1-9]\%(_\=\d\)*\|0\+\%(_\=0\)*\)\>" + syn match mojoNumber "\<\d\%(_\=\d\)*[jJ]\>" + syn match mojoNumber "\<\d\%(_\=\d\)*[eE][+-]\=\d\%(_\=\d\)*[jJ]\=\>" + syn match mojoNumber + \ "\<\d\%(_\=\d\)*\.\%([eE][+-]\=\d\%(_\=\d\)*\)\=[jJ]\=\%(\W\|$\)\@=" + syn match mojoNumber + \ "\%(^\|\W\)\zs\%(\d\%(_\=\d\)*\)\=\.\d\%(_\=\d\)*\%([eE][+-]\=\d\%(_\=\d\)*\)\=[jJ]\=\>" +endif + +" The built-ins are added in the same order of appearance in Mojo stdlib docs +" https://docs.modular.com/mojo/lib.html +" +if !exists("mojo_no_builtin_highlight") + " Built-in functions + syn keyword mojoBuiltin slice constrained debug_assert put_new_line print + syn keyword mojoBuiltin print_no_newline len range rebind element_type + syn keyword mojoBuiltin ord chr atol isdigit index address string + " Built-in types + syn keyword mojoType Byte ListLiteral CoroutineContext Coroutine DType + syn keyword mojoType dtype type invalid bool int8 si8 unit8 ui8 int16 + syn keyword mojoType si16 unit16 ui16 int32 si32 uint32 ui32 int64 + syn keyword mojoType si64 uint64 ui64 bfloat16 bf16 float16 f16 float32 + syn keyword mojoType f32 float64 f64 Error FloatLiteral Int Attr SIMD + syn keyword mojoType Int8 UInt8 Int16 UInt16 Int32 UInt32 Int64 UInt64 + syn keyword mojoType Float16 Float32 Float64 element_type _65x13_type + syn keyword mojoType String StringLiteral StringRef Tuple AnyType + syn keyword mojoType NoneType None Lifetime + " avoid highlighting attributes as builtins + syn match mojoAttribute /\.\h\w*/hs=s+1 + \ contains=ALLBUT,mojoBuiltin,mojoFunction,mojoAsync + \ transparent +endif + +" From the 'Python Library Reference' class hierarchy at the bottom. +" http://docs.python.org/library/exceptions.html +if !exists("mojo_no_exception_highlight") + " builtin base exceptions (used mostly as base classes for other exceptions) + syn keyword mojoExceptions BaseException Exception + syn keyword mojoExceptions ArithmeticError BufferError LookupError + " builtin exceptions (actually raised) + syn keyword mojoExceptions AssertionError AttributeError EOFError + syn keyword mojoExceptions FloatingPointError GeneratorExit ImportError + syn keyword mojoExceptions IndentationError IndexError KeyError + syn keyword mojoExceptions KeyboardInterrupt MemoryError + syn keyword mojoExceptions ModuleNotFoundError NameError + syn keyword mojoExceptions NotImplementedError OSError OverflowError + syn keyword mojoExceptions RecursionError ReferenceError RuntimeError + syn keyword mojoExceptions StopAsyncIteration StopIteration SyntaxError + syn keyword mojoExceptions SystemError SystemExit TabError TypeError + syn keyword mojoExceptions UnboundLocalError UnicodeDecodeError + syn keyword mojoExceptions UnicodeEncodeError UnicodeError + syn keyword mojoExceptions UnicodeTranslateError ValueError + syn keyword mojoExceptions ZeroDivisionError + " builtin exception aliases for OSError + syn keyword mojoExceptions EnvironmentError IOError WindowsError + " builtin OS exceptions in Python 3 + syn keyword mojoExceptions BlockingIOError BrokenPipeError + syn keyword mojoExceptions ChildProcessError ConnectionAbortedError + syn keyword mojoExceptions ConnectionError ConnectionRefusedError + syn keyword mojoExceptions ConnectionResetError FileExistsError + syn keyword mojoExceptions FileNotFoundError InterruptedError + syn keyword mojoExceptions IsADirectoryError NotADirectoryError + syn keyword mojoExceptions PermissionError ProcessLookupError TimeoutError + " builtin warnings + syn keyword mojoExceptions BytesWarning DeprecationWarning FutureWarning + syn keyword mojoExceptions ImportWarning PendingDeprecationWarning + syn keyword mojoExceptions ResourceWarning RuntimeWarning + syn keyword mojoExceptions SyntaxWarning UnicodeWarning + syn keyword mojoExceptions UserWarning Warning +endif + +if exists("mojo_space_error_highlight") + " trailing whitespace + syn match mojoSpaceError display excludenl "\s\+$" + " mixed tabs and spaces + syn match mojoSpaceError display " \+\t" + syn match mojoSpaceError display "\t\+ " +endif + +" Do not spell doctests inside strings. +" Notice that the end of a string, either ''', or """, will end the contained +" doctest too. Thus, we do *not* need to have it as an end pattern. +if !exists("mojo_no_doctest_highlight") + if !exists("mojo_no_doctest_code_highlight") + syn region mojoDoctest + \ start="^\s*>>>\s" end="^\s*$" + \ contained contains=ALLBUT,mojoDoctest,mojoFunction,@Spell + syn region mojoDoctestValue + \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$" + \ contained + else + syn region mojoDoctest + \ start="^\s*>>>" end="^\s*$" + \ contained contains=@NoSpell + endif +endif + +" Sync at the beginning of class, function, or method definition. +syn sync match mojoSync grouphere NONE "^\%(def\|class\)\s\+\h\w*\s*[(:]" + +" The default highlight links. Can be overridden later. +hi def link mojoStatement Statement +hi def link mojoConditional Conditional +hi def link mojoRepeat Repeat +hi def link mojoOperator Operator +hi def link mojoException Exception +hi def link mojoInclude Include +hi def link mojoAsync Statement +hi def link mojoDecorator Define +hi def link mojoDecoratorName Function +hi def link mojoFunction Function +hi def link mojoComment Comment +hi def link mojoTodo Todo +hi def link mojoString String +hi def link mojoRawString String +hi def link mojoQuotes String +hi def link mojoTripleQuotes mojoQuotes +hi def link mojoEscape Special +if !exists("mojo_no_number_highlight") + hi def link mojoNumber Number +endif +if !exists("mojo_no_builtin_highlight") + hi def link mojoBuiltin Function + hi def link mojoType Type +endif +if !exists("mojo_no_exception_highlight") + hi def link mojoExceptions Structure +endif +if exists("mojo_space_error_highlight") + hi def link mojoSpaceError Error +endif +if !exists("mojo_no_doctest_highlight") + hi def link mojoDoctest Special + hi def link mojoDoctestValue Define +endif + +let b:current_syntax = "mojo" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim:set sw=2 sts=2 ts=8 noet: diff --git a/git/usr/share/vim/vim92/syntax/monk.vim b/git/usr/share/vim/vim92/syntax/monk.vim new file mode 100644 index 0000000000000000000000000000000000000000..3af810173aa1c4d0bcceb4badb2ca4d914f8fa78 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/monk.vim @@ -0,0 +1,217 @@ +" Vim syntax file +" Language: Monk (See-Beyond Technologies) +" Maintainer: Mike Litherland +" Last Change: 2012 Feb 03 by Thilo Six + +" This syntax file is good enough for my needs, but others +" may desire more features. Suggestions and bug reports +" are solicited by the author (above). + +" Originally based on the Scheme syntax file by: + +" Maintainer: Dirk van Deun +" Last Change: April 30, 1998 + +" In fact it's almost identical. :) + +" The original author's notes: +" This script incorrectly recognizes some junk input as numerals: +" parsing the complete system of Scheme numerals using the pattern +" language is practically impossible: I did a lax approximation. + +" Initializing: + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case ignore + +" Fascist highlighting: everything that doesn't fit the rules is an error... + +syn match monkError oneline ![^ \t()";]*! +syn match monkError oneline ")" + +" Quoted and backquoted stuff + +syn region monkQuoted matchgroup=Delimiter start="['`]" end=![ \t()";]!me=e-1 contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +syn region monkQuoted matchgroup=Delimiter start="['`](" matchgroup=Delimiter end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc +syn region monkQuoted matchgroup=Delimiter start="['`]#(" matchgroup=Delimiter end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +syn region monkStrucRestricted matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc +syn region monkStrucRestricted matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +syn region monkUnquote matchgroup=Delimiter start="," end=![ \t()";]!me=e-1 contains=ALLBUT,monkStruc,monkSyntax,monkFunc +syn region monkUnquote matchgroup=Delimiter start=",@" end=![ \t()";]!me=e-1 contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +syn region monkUnquote matchgroup=Delimiter start=",(" end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc +syn region monkUnquote matchgroup=Delimiter start=",@(" end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +syn region monkUnquote matchgroup=Delimiter start=",#(" end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc +syn region monkUnquote matchgroup=Delimiter start=",@#(" end=")" contains=ALLBUT,monkStruc,monkSyntax,monkFunc + +" R5RS Scheme Functions and Syntax: + +setlocal iskeyword=33,35-39,42-58,60-90,94,95,97-122,126,_ + +syn keyword monkSyntax lambda and or if cond case define let let* letrec +syn keyword monkSyntax begin do delay set! else => +syn keyword monkSyntax quote quasiquote unquote unquote-splicing +syn keyword monkSyntax define-syntax let-syntax letrec-syntax syntax-rules + +syn keyword monkFunc not boolean? eq? eqv? equal? pair? cons car cdr set-car! +syn keyword monkFunc set-cdr! caar cadr cdar cddr caaar caadr cadar caddr +syn keyword monkFunc cdaar cdadr cddar cdddr caaaar caaadr caadar caaddr +syn keyword monkFunc cadaar cadadr caddar cadddr cdaaar cdaadr cdadar cdaddr +syn keyword monkFunc cddaar cddadr cdddar cddddr null? list? list length +syn keyword monkFunc append reverse list-ref memq memv member assq assv assoc +syn keyword monkFunc symbol? symbol->string string->symbol number? complex? +syn keyword monkFunc real? rational? integer? exact? inexact? = < > <= >= +syn keyword monkFunc zero? positive? negative? odd? even? max min + * - / abs +syn keyword monkFunc quotient remainder modulo gcd lcm numerator denominator +syn keyword monkFunc floor ceiling truncate round rationalize exp log sin cos +syn keyword monkFunc tan asin acos atan sqrt expt make-rectangular make-polar +syn keyword monkFunc real-part imag-part magnitude angle exact->inexact +syn keyword monkFunc inexact->exact number->string string->number char=? +syn keyword monkFunc char-ci=? char? char-ci>? char<=? +syn keyword monkFunc char-ci<=? char>=? char-ci>=? char-alphabetic? char? +syn keyword monkFunc char-numeric? char-whitespace? char-upper-case? +syn keyword monkFunc char-lower-case? +syn keyword monkFunc char->integer integer->char char-upcase char-downcase +syn keyword monkFunc string? make-string string string-length string-ref +syn keyword monkFunc string-set! string=? string-ci=? string? string-ci>? string<=? string-ci<=? string>=? +syn keyword monkFunc string-ci>=? substring string-append vector? make-vector +syn keyword monkFunc vector vector-length vector-ref vector-set! procedure? +syn keyword monkFunc apply map for-each call-with-current-continuation +syn keyword monkFunc call-with-input-file call-with-output-file input-port? +syn keyword monkFunc output-port? current-input-port current-output-port +syn keyword monkFunc open-input-file open-output-file close-input-port +syn keyword monkFunc close-output-port eof-object? read read-char peek-char +syn keyword monkFunc write display newline write-char call/cc +syn keyword monkFunc list-tail string->list list->string string-copy +syn keyword monkFunc string-fill! vector->list list->vector vector-fill! +syn keyword monkFunc force with-input-from-file with-output-to-file +syn keyword monkFunc char-ready? load transcript-on transcript-off eval +syn keyword monkFunc dynamic-wind port? values call-with-values +syn keyword monkFunc monk-report-environment null-environment +syn keyword monkFunc interaction-environment + +" Keywords specific to STC's implementation + +syn keyword monkFunc $event-clear $event-parse $event->string $make-event-map +syn keyword monkFunc $resolve-event-definition change-pattern copy copy-strip +syn keyword monkFunc count-data-children count-map-children count-rep data-map +syn keyword monkFunc duplicate duplicate-strip file-check file-lookup get +syn keyword monkFunc insert list-lookup node-has-data? not-verify path? +syn keyword monkFunc path-defined-as-repeating? path-nodeclear path-nodedepth +syn keyword monkFunc path-nodename path-nodeparentname path->string path-valid? +syn keyword monkFunc regex string->path timestamp uniqueid verify + +" Keywords from the Monk function library (from e*Gate 4.1 programmers ref) +syn keyword monkFunc allcap? capitalize char-punctuation? char-substitute +syn keyword monkFunc char-to-char conv count-used-children degc->degf +syn keyword monkFunc diff-two-dates display-error empty-string? fail_id +syn keyword monkFunc fail_id_if fail_translation fail_translation_if +syn keyword monkFunc find-get-after find-get-before get-timestamp julian-date? +syn keyword monkFunc julian->standard leap-year? map-string not-empty-string? +syn keyword monkFunc standard-date? standard->julian string-begins-with? +syn keyword monkFunc string-contains? string-ends-with? string-search-from-left +syn keyword monkFunc string-search-from-right string->ssn strip-punct +syn keyword monkFunc strip-string substring=? symbol-table-get symbol-table-put +syn keyword monkFunc trim-string-left trim-string-right valid-decimal? +syn keyword monkFunc valid-integer? verify-type + +" Writing out the complete description of Scheme numerals without +" using variables is a day's work for a trained secretary... +" This is a useful lax approximation: + +syn match monkNumber oneline "[-#+0-9.][-#+/0-9a-f@i.boxesfdl]*" +syn match monkError oneline ![-#+0-9.][-#+/0-9a-f@i.boxesfdl]*[^-#+/0-9a-f@i.boxesfdl \t()";][^ \t()";]*! + +syn match monkOther oneline ![+-][ \t()";]!me=e-1 +syn match monkOther oneline ![+-]$! +" ... so that a single + or -, inside a quoted context, would not be +" interpreted as a number (outside such contexts, it's a monkFunc) + +syn match monkDelimiter oneline !\.[ \t()";]!me=e-1 +syn match monkDelimiter oneline !\.$! +" ... and a single dot is not a number but a delimiter + +" Simple literals: + +syn match monkBoolean oneline "#[tf]" +syn match monkError oneline !#[tf][^ \t()";]\+! + +syn match monkChar oneline "#\\" +syn match monkChar oneline "#\\." +syn match monkError oneline !#\\.[^ \t()";]\+! +syn match monkChar oneline "#\\space" +syn match monkError oneline !#\\space[^ \t()";]\+! +syn match monkChar oneline "#\\newline" +syn match monkError oneline !#\\newline[^ \t()";]\+! + +" This keeps all other stuff unhighlighted, except *stuff* and : + +syn match monkOther oneline ,[a-z!$%&*/:<=>?^_~][-a-z!$%&*/:<=>?^_~0-9+.@]*, +syn match monkError oneline ,[a-z!$%&*/:<=>?^_~][-a-z!$%&*/:<=>?^_~0-9+.@]*[^-a-z!$%&*/:<=>?^_~0-9+.@ \t()";]\+[^ \t()";]*, + +syn match monkOther oneline "\.\.\." +syn match monkError oneline !\.\.\.[^ \t()";]\+! +" ... a special identifier + +syn match monkConstant oneline ,\*[-a-z!$%&*/:<=>?^_~0-9+.@]*\*[ \t()";],me=e-1 +syn match monkConstant oneline ,\*[-a-z!$%&*/:<=>?^_~0-9+.@]*\*$, +syn match monkError oneline ,\*[-a-z!$%&*/:<=>?^_~0-9+.@]*\*[^-a-z!$%&*/:<=>?^_~0-9+.@ \t()";]\+[^ \t()";]*, + +syn match monkConstant oneline ,<[-a-z!$%&*/:<=>?^_~0-9+.@]*>[ \t()";],me=e-1 +syn match monkConstant oneline ,<[-a-z!$%&*/:<=>?^_~0-9+.@]*>$, +syn match monkError oneline ,<[-a-z!$%&*/:<=>?^_~0-9+.@]*>[^-a-z!$%&*/:<=>?^_~0-9+.@ \t()";]\+[^ \t()";]*, + +" Monk input and output structures +syn match monkSyntax oneline "\(\~input\|\[I\]->\)[^ \t]*" +syn match monkFunc oneline "\(\~output\|\[O\]->\)[^ \t]*" + +" Non-quoted lists, and strings: + +syn region monkStruc matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" contains=ALL +syn region monkStruc matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=ALL + +syn region monkString start=+"+ skip=+\\[\\"]+ end=+"+ + +" Comments: + +syn match monkComment ";.*$" + +" Synchronization and the wrapping up... + +syn sync match matchPlace grouphere NONE "^[^ \t]" +" ... i.e. synchronize on a line that starts at the left margin + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link monkSyntax Statement +hi def link monkFunc Function + +hi def link monkString String +hi def link monkChar Character +hi def link monkNumber Number +hi def link monkBoolean Boolean + +hi def link monkDelimiter Delimiter +hi def link monkConstant Constant + +hi def link monkComment Comment +hi def link monkError Error + + +let b:current_syntax = "monk" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/moo.vim b/git/usr/share/vim/vim92/syntax/moo.vim new file mode 100644 index 0000000000000000000000000000000000000000..6f2dd59e8418e53479d5dd0f393a4afebcfdbbdd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/moo.vim @@ -0,0 +1,173 @@ +" Vim syntax file +" Language: MOO +" Maintainer: Timo Frenay +" Last Change: 2020 Oct 19 +" Note: Requires Vim 6.0 or above + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Initializations +syn case ignore + +" C-style comments +syn match mooUncommentedError display ~\*/~ +syn match mooCStyleCommentError display ~/\ze\*~ contained +syn region mooCStyleComment matchgroup=mooComment start=~/\*~ end=~\*/~ contains=mooCStyleCommentError + +" Statements +if exists("moo_extended_cstyle_comments") + syn match mooIdentifier display ~\%(\%(/\*.\{-}\*/\s*\)*\)\@>\<\h\w*\>~ contained transparent contains=mooCStyleComment,@mooKeyword,mooType,mooVariable +else + syn match mooIdentifier display ~\<\h\w*\>~ contained transparent contains=@mooKeyword,mooType,mooVariable +endif +syn keyword mooStatement break continue else elseif endfor endfork endif endtry endwhile finally for if try +syn keyword mooStatement except fork while nextgroup=mooIdentifier skipwhite +syn keyword mooStatement return nextgroup=mooString skipwhite + +" Operators +syn keyword mooOperatorIn in + +" Error constants +syn keyword mooAny ANY +syn keyword mooErrorConstant E_ARGS E_INVARG E_DIV E_FLOAT E_INVIND E_MAXREC E_NACC E_NONE E_PERM E_PROPNF E_QUOTA E_RANGE E_RECMOVE E_TYPE E_VARNF E_VERBNF + +" Builtin variables +syn match mooType display ~\<\%(ERR\|FLOAT\|INT\|LIST\|NUM\|OBJ\|STR\)\>~ +syn match mooVariable display ~\<\%(args\%(tr\)\=\|caller\|dobj\%(str\)\=\|iobj\%(str\)\=\|player\|prepstr\|this\|verb\)\>~ + +" Strings +syn match mooStringError display ~[^\t -[\]-~]~ contained +syn match mooStringSpecialChar display ~\\["\\]~ contained +if !exists("moo_no_regexp") + " Regular expressions + syn match mooRegexp display ~%%~ contained containedin=mooString,mooRegexpParentheses transparent contains=NONE + syn region mooRegexpParentheses display matchgroup=mooRegexpOr start=~%(~ skip=~%%~ end=~%)~ contained containedin=mooString,mooRegexpParentheses transparent oneline + syn match mooRegexpOr display ~%|~ contained containedin=mooString,mooRegexpParentheses +endif +if !exists("moo_no_pronoun_sub") + " Pronoun substitutions + syn match mooPronounSub display ~%%~ contained containedin=mooString transparent contains=NONE + syn match mooPronounSub display ~%[#dilnopqrst]~ contained containedin=mooString + syn match mooPronounSub display ~%\[#[dilnt]\]~ contained containedin=mooString + syn match mooPronounSub display ~%(\h\w*)~ contained containedin=mooString + syn match mooPronounSub display ~%\[[dilnt]\h\w*\]~ contained containedin=mooString + syn match mooPronounSub display ~%<\%([dilnt]:\)\=\a\+>~ contained containedin=mooString +endif +if exists("moo_unmatched_quotes") + syn region mooString matchgroup=mooStringError start=~"~ end=~$~ contains=@mooStringContents keepend + syn region mooString start=~"~ skip=~\\.~ end=~"~ contains=@mooStringContents oneline keepend +else + syn region mooString start=~"~ skip=~\\.~ end=~"\|$~ contains=@mooStringContents keepend +endif + +" Numbers and object numbers +syn match mooNumber display ~\%(\%(\<\d\+\)\=\.\d\+\|\<\d\+\)\%(e[+\-]\=\d\+\)\=\>~ +syn match mooObject display ~#-\=\d\+\>~ + +" Properties and verbs +if exists("moo_builtin_properties") + "Builtin properties + syn keyword mooBuiltinProperty contents f location name owner programmer r w wizard contained containedin=mooPropRef +endif +if exists("moo_extended_cstyle_comments") + syn match mooPropRef display ~\.\s*\%(\%(/\*.\{-}\*/\s*\)*\)\@>\h\w*\>~ transparent contains=mooCStyleComment,@mooKeyword + syn match mooVerbRef display ~:\s*\%(\%(/\*.\{-}\*/\s*\)*\)\@>\h\w*\>~ transparent contains=mooCStyleComment,@mooKeyword +else + syn match mooPropRef display ~\.\s*\h\w*\>~ transparent contains=@mooKeyword + syn match mooVerbRef display ~:\s*\h\w*\>~ transparent contains=@mooKeyword +endif + +" Builtin functions, core properties and core verbs +if exists("moo_extended_cstyle_comments") + syn match mooBuiltinFunction display ~\<\h\w*\s*\%(\%(/\*.\{-}\*/\s*\)*\)\@>\ze(~ contains=mooCStyleComment + syn match mooCorePropOrVerb display ~\$\s*\%(\%(/\*.\{-}\*/\s*\)*\)\@>\%(in\>\)\@!\h\w*\>~ contains=mooCStyleComment,@mooKeyword +else + syn match mooBuiltinFunction display ~\<\h\w*\s*\ze(~ contains=NONE + syn match mooCorePropOrVerb display ~\$\s*\%(in\>\)\@!\h\w*\>~ contains=@mooKeyword +endif +if exists("moo_unknown_builtin_functions") + syn match mooUnknownBuiltinFunction ~\<\h\w*\>~ contained containedin=mooBuiltinFunction contains=mooKnownBuiltinFunction + " Known builtin functions as of version 1.8.1 of the server + " Add your own extensions to this group if you like + syn keyword mooKnownBuiltinFunction abs acos add_property add_verb asin atan binary_hash boot_player buffered_output_length callers caller_perms call_function ceil children chparent clear_property connected_players connected_seconds connection_name connection_option connection_options cos cosh create crypt ctime db_disk_size decode_binary delete_property delete_verb disassemble dump_database encode_binary equal eval exp floatstr floor flush_input force_input function_info idle_seconds index is_clear_property is_member is_player kill_task length listappend listdelete listen listeners listinsert listset log log10 match max max_object memory_usage min move notify object_bytes open_network_connection output_delimiters parent pass players properties property_info queued_tasks queue_info raise random read recycle renumber reset_max_object resume rindex rmatch seconds_left server_log server_version setadd setremove set_connection_option set_player_flag set_property_info set_task_perms set_verb_args set_verb_code set_verb_info shutdown sin sinh sqrt strcmp string_hash strsub substitute suspend tan tanh task_id task_stack ticks_left time tofloat toint toliteral tonum toobj tostr trunc typeof unlisten valid value_bytes value_hash verbs verb_args verb_code verb_info contained +endif + +" Enclosed expressions +syn match mooUnenclosedError display ~[')\]|}]~ +syn match mooParenthesesError display ~[';\]|}]~ contained +syn region mooParentheses start=~(~ end=~)~ transparent contains=@mooEnclosedContents,mooParenthesesError +syn match mooBracketsError display ~[');|}]~ contained +syn region mooBrackets start=~\[~ end=~\]~ transparent contains=@mooEnclosedContents,mooBracketsError +syn match mooBracesError display ~[');\]|]~ contained +syn region mooBraces start=~{~ end=~}~ transparent contains=@mooEnclosedContents,mooBracesError +syn match mooQuestionError display ~[');\]}]~ contained +syn region mooQuestion start=~?~ end=~|~ transparent contains=@mooEnclosedContents,mooQuestionError +syn match mooCatchError display ~[);\]|}]~ contained +syn region mooCatch matchgroup=mooExclamation start=~`~ end=~'~ transparent contains=@mooEnclosedContents,mooCatchError,mooExclamation +if exists("moo_extended_cstyle_comments") + syn match mooExclamation display ~[\t !%&(*+,\-/<=>?@[^`{|]\@!=\@!~ contained contains=mooCStyleComment +else + syn match mooExclamation display ~[\t !%&(*+,\-/<=>?@[^`{|]\@?@^|]\@?~ transparent contains=mooCStyleComment +else + syn match mooScattering ~[,{]\@<=\s*?~ transparent contains=NONE +endif + +" Clusters +syn cluster mooKeyword contains=mooStatement,mooOperatorIn,mooAny,mooErrorConstant +syn cluster mooStringContents contains=mooStringError,mooStringSpecialChar +syn cluster mooEnclosedContents contains=TOP,mooUnenclosedError,mooComment,mooNonCode + +" Define the default highlighting. +hi def link mooUncommentedError Error +hi def link mooCStyleCommentError Error +hi def link mooCStyleComment Comment +hi def link mooStatement Statement +hi def link mooOperatorIn Operator +hi def link mooAny Constant " link this to Keyword if you want +hi def link mooErrorConstant Constant +hi def link mooType Type +hi def link mooVariable Type +hi def link mooStringError Error +hi def link mooStringSpecialChar SpecialChar +hi def link mooRegexpOr SpecialChar +hi def link mooPronounSub SpecialChar +hi def link mooString String +hi def link mooNumber Number +hi def link mooObject Number +hi def link mooBuiltinProperty Type +hi def link mooBuiltinFunction Function +hi def link mooUnknownBuiltinFunction Error +hi def link mooKnownBuiltinFunction Function +hi def link mooCorePropOrVerb Identifier +hi def link mooUnenclosedError Error +hi def link mooParenthesesError Error +hi def link mooBracketsError Error +hi def link mooBracesError Error +hi def link mooQuestionError Error +hi def link mooCatchError Error +hi def link mooExclamation Exception +hi def link mooComment Comment +hi def link mooNonCode PreProc + +let b:current_syntax = "moo" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/mp.vim b/git/usr/share/vim/vim92/syntax/mp.vim new file mode 100644 index 0000000000000000000000000000000000000000..541ac4791df95051f55732a6e07c412ded2b5d18 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mp.vim @@ -0,0 +1,273 @@ +vim9script + +# Vim syntax file +# Language: MetaPost +# Maintainer: Nicola Vitacolonna +# Former Maintainers: Andreas Scherer +# Latest Revision: 2026 Jan 10 + +if exists("b:current_syntax") + finish +endif + +# Deprecation warnings: to be removed eventually +if exists("g:plain_mp_macros") + echomsg "[mp] g:plain_mp_macros is deprecated: use g:mp_plain_macros instead." +endif +if exists("mfplain_mp_macros") + echomsg "[mp] g:mfplain_mp_macros is deprecated: use g:mp_mfplain_macros instead." +endif +if exists("other_mp_macros") + echomsg "[mp] g:other_mp_macros is deprecated: use g:mp_other_macros instead." +endif + +# Store the current values of METAFONT global options +const mf_plain_macros = get(g:, "mf_plain_macros", get(g:, "plain_mf_macros", -1)) +const mf_plain_modes = get(g:, "mf_plain_modes", get(g:, "plain_mf_modes", -1)) +const mf_other_macros = get(g:, "mf_other_macros", get(g:, "other_mf_macros", -1)) + +g:mf_plain_macros = 0 # plain.mf has no special meaning for MetaPost +g:mf_plain_modes = 0 # No METAFONT modes +g:mf_other_macros = 0 # cmbase.mf, logo.mf, ... neither + +# Read the METAFONT syntax to start with +runtime! syntax/mf.vim +unlet b:current_syntax # Necessary for syn include below + +# Restore the value of existing global variables +if mf_plain_macros == -1 + unlet g:mf_plain_macros +else + g:plain_mf_macros = mf_plain_macros +endif +if mf_plain_modes == -1 + unlet g:mf_plain_modes +else + g:mf_plain_modes = mf_plain_modes +endif +if mf_other_macros == -1 + unlet g:mf_other_macros +else + g:mf_other_macros = mf_other_macros +endif + +# Use TeX highlighting inside verbatimtex/btex... etex +syn include @MPTeX syntax/tex.vim +unlet b:current_syntax +# These are defined as keywords rather than using matchgroup +# in order to make them available to syntaxcomplete. +syn keyword mpTeXdelim btex etex verbatimtex contained +syn region mpTeXinsert matchgroup=mpTeXdelim start=/\\|\/ end=/\/ keepend contains=@MPTeX,mpTeXdelim + +# iskeyword must be set after the syn include above, because tex.vim sets `syn +# iskeyword`. Note that keywords do not contain numbers (numbers are +# subscripts) +syntax iskeyword @,_ + +# MetaPost primitives not found in METAFONT +syn keyword mpBoolExp bounded clipped filled stroked textual arclength +syn keyword mpNumExp arctime blackpart bluepart colormodel cyanpart +syn keyword mpNumExp fontsize greenpart greypart magentapart redpart +syn keyword mpPairExp yellowpart llcorner lrcorner ulcorner urcorner +syn keyword mpPathExp envelope pathpart +syn keyword mpPenExp penpart +syn keyword mpPicExp dashpart glyph infont +syn keyword mpStringExp fontpart readfrom textpart +syn keyword mpType cmykcolor color rgbcolor +# Other MetaPost primitives listed in the manual +syn keyword mpPrimitive mpxbreak within +# Internal quantities not found in METAFONT +# (Table 6 in MetaPost: A User's Manual) +syn keyword mpInternal defaultcolormodel hour minute linecap linejoin +syn keyword mpInternal miterlimit mpprocset mpversion numberprecision +syn keyword mpInternal numbersystem outputfilename outputformat +syn keyword mpInternal outputformatoptions outputtemplate prologues +syn keyword mpInternal restoreclipcolor tracinglostchars troffmode +syn keyword mpInternal truecorners +# List of commands not found in METAFONT (from MetaPost: A User's Manual) +syn keyword mpCommand clip closefrom dashed filenametemplate fontmapfile +syn keyword mpCommand fontmapline setbounds withcmykcolor withcolor +syn keyword mpCommand withgreyscale withoutcolor withpostscript +syn keyword mpCommand withprescript withrgbcolor write +# METAFONT internal variables not found in MetaPost +syn keyword notDefined autorounding chardx chardy fillin granularity +syn keyword notDefined proofing smoothing tracingedges tracingpens +syn keyword notDefined turningcheck xoffset yoffset +# Suffix defined only in METAFONT: +syn keyword notDefined nodot +# Other not implemented primitives (see MetaPost: A User's Manual, §C.1) +syn keyword notDefined cull display openwindow numspecial totalweight +syn keyword notDefined withweight + +# Keywords defined by plain.mp +if get(g:, "mp_plain_macros", get(g:, "plain_mp_macros", 1)) || get(b:, "mp_metafun", get(g:, "mp_metafun", 0)) + syn keyword mpDef beginfig clear_pen_memory clearit clearpen clearpen + syn keyword mpDef clearxy colorpart cutdraw downto draw drawarrow + syn keyword mpDef drawdblarrow drawdot drawoptions endfig erase + syn keyword mpDef exitunless fill filldraw flex gobble hide interact + syn keyword mpDef label loggingall makelabel numtok penstroke pickup + syn keyword mpDef range reflectedabout rotatedaround shipit + syn keyword mpDef stop superellipse takepower tracingall tracingnone + syn keyword mpDef undraw undrawdot unfill unfilldraw upto + syn match mpDef "???" + syn keyword mpVardef arrowhead bbox bot buildcycle byte ceiling center + syn keyword mpVardef counterclockwise decr dir direction directionpoint + syn keyword mpVardef dotlabel dotlabels image incr interpath inverse + syn keyword mpVardef labels lft magstep max min penlabels penpos round + syn keyword mpVardef rt savepen solve tensepath thelabel top unitvector + syn keyword mpVardef whatever z + syn keyword mpPrimaryDef div dotprod gobbled mod + syn keyword mpSecondaryDef intersectionpoint + syn keyword mpTertiaryDef cutafter cutbefore softjoin thru + syn keyword mpNewInternal ahangle ahlength bboxmargin beveled butt defaultpen + syn keyword mpNewInternal defaultscale dotlabeldiam eps epsilon infinity + syn keyword mpNewInternal join_radius labeloffset mitered pen_bot pen_lft + syn keyword mpNewInternal pen_rt pen_top rounded squared tolerance + # Predefined constants + syn keyword mpConstant EOF background base_name base_version black + syn keyword mpConstant blankpicture blue ditto down evenly fullcircle + syn keyword mpConstant green halfcircle identity left origin penrazor + syn keyword mpConstant penspeck pensquare quartercircle red right + syn keyword mpConstant unitsquare up white withdots + # Other predefined variables + syn keyword mpVariable currentpen currentpen_path currentpicture cuttings + syn keyword mpVariable defaultfont extra_beginfig extra_endfig + syn keyword mpVariable laboff labxf labyf laboff labxf labyf + syn match mpVariable /\.\%(lft\|rt\|bot\|top\|ulft\|urt\|llft\|lrt\)\>/ + # let statements: + syn keyword mpnumExp abs + syn keyword mpDef rotatedabout + syn keyword mpCommand bye relax + # on and off are not technically keywords, but it is nice to highlight them + # inside dashpattern(). + syn keyword mpOnOff off on contained + syn keyword mpDash dashpattern contained + syn region mpDashPattern start="dashpattern\s*" end=")"he=e-1 contains=mfNumeric,mfLength,mpOnOff,mpDash +endif + +# Keywords defined by mfplain.mp +if get(g:, "mp_mfplain_macros", get(g:, "mfplain_mp_macros", 0)) + syn keyword mpDef beginchar capsule_def change_width + syn keyword mpDef define_blacker_pixels define_corrected_pixels + syn keyword mpDef define_good_x_pixels define_good_y_pixels + syn keyword mpDef define_horizontal_corrected_pixels define_pixels + syn keyword mpDef define_whole_blacker_pixels define_whole_pixels + syn keyword mpDef define_whole_vertical_blacker_pixels + syn keyword mpDef define_whole_vertical_pixels endchar + syn keyword mpDef font_coding_scheme font_extra_space font_identifier + syn keyword mpDef font_normal_shrink font_normal_space + syn keyword mpDef font_normal_stretch font_quad font_size font_slant + syn keyword mpDef font_x_height italcorr labelfont lowres_fix makebox + syn keyword mpDef makegrid maketicks mode_def mode_setup proofrule + syn keyword mpDef smode + syn keyword mpVardef hround proofrulethickness vround + syn keyword mpNewInternal blacker o_correction + syn keyword mpVariable extra_beginchar extra_endchar extra_setup rulepen + # plus some no-ops, also from mfplain.mp + syn keyword mpDef cull cullit gfcorners imagerules nodisplays + syn keyword mpDef notransforms openit proofoffset screenchars + syn keyword mpDef screenrule screenstrokes showit + syn keyword mpVardef grayfont slantfont titlefont + syn keyword mpVariable currenttransform + syn keyword mpConstant unitpixel + # These are not listed in the MetaPost manual, and some are ignored by + # MetaPost, but are nonetheless defined in mfplain.mp + syn keyword mpDef killtext + syn match mpVardef "\" + syn keyword mpVariable aspect_ratio localfont mag mode mode_name + syn keyword mpVariable proofcolor + syn keyword mpConstant lowres proof smoke + syn keyword mpNewInternal autorounding bp_per_pixel granularity + syn keyword mpNewInternal number_of_modes proofing smoothing turningcheck +endif + +# Keywords defined by all base macro packages: +# - (r)boxes.mp +# - format.mp +# - graph.mp +# - marith.mp +# - sarith.mp +# - string.mp +# - TEX.mp +if get(g:, "mp_other_macros", get(g:, "other_mp_macros", 1)) + # boxes and rboxes + syn keyword mpDef boxjoin drawboxed drawboxes drawunboxed + syn keyword mpNewInternal circmargin defaultdx defaultdy rbox_radius + syn keyword mpVardef boxit bpath circleit fixpos fixsize generic_declare + syn keyword mpVardef generic_redeclare generisize pic rboxit str_prefix + # format + syn keyword mpVardef Mformat format init_numbers roundd + syn keyword mpVariable Fe_base Fe_plus + syn keyword mpConstant Ten_to + # graph + syn keyword mpDef Gfor Gxyscale OUT auto begingraph endgraph gdata + syn keyword mpDef gdraw gdrawarrow gdrawdblarrow gfill plot + syn keyword mpVardef augment autogrid frame gdotlabel glabel grid itick + syn keyword mpVardef otick + syn keyword mpVardef Mreadpath setcoords setrange + syn keyword mpNewInternal Gmarks Gminlog Gpaths linear log + syn keyword mpVariable Autoform Gemarks Glmarks Gumarks + syn keyword mpConstant Gtemplate + syn match mpVariable /Gmargin\.\%(low\|high\)/ + # marith + syn keyword mpVardef Mabs Meform Mexp Mexp_str Mlog Mlog_Str Mlog_str + syn keyword mpPrimaryDef Mdiv Mmul + syn keyword mpSecondaryDef Madd Msub + syn keyword mpTertiaryDef Mleq + syn keyword mpNewInternal Mten Mzero + # sarith + syn keyword mpVardef Sabs Scvnum + syn keyword mpPrimaryDef Sdiv Smul + syn keyword mpSecondaryDef Sadd Ssub + syn keyword mpTertiaryDef Sleq Sneq + # string + syn keyword mpVardef cspan isdigit loptok + # TEX + syn keyword mpVardef TEX TEXPOST TEXPRE +endif + +if get(b:, "mp_metafun", get(g:, "mp_metafun", 0)) + # MetaFun additions to MetaPost base file + syn keyword mpConstant cyan magenta yellow + syn keyword mpConstant penspec + syn keyword mpNumExp graypart greycolor graycolor + + # Highlight TeX keywords (for MetaPost embedded in ConTeXt documents) + syn match mpTeXKeyword '\\[a-zA-Z@]\+' + + syn keyword mpPrimitive runscript + + runtime! syntax/shared/context-data-metafun.vim + + hi def link metafunCommands Statement + hi def link metafunInternals Identifier +endif + +# Define the default highlighting +hi def link mpTeXdelim mpPrimitive +hi def link mpBoolExp mfBoolExp +hi def link mpNumExp mfNumExp +hi def link mpPairExp mfPairExp +hi def link mpPathExp mfPathExp +hi def link mpPenExp mfPenExp +hi def link mpPicExp mfPicExp +hi def link mpStringExp mfStringExp +hi def link mpInternal mfInternal +hi def link mpCommand mfCommand +hi def link mpType mfType +hi def link mpPrimitive mfPrimitive +hi def link mpDef mfDef +hi def link mpVardef mpDef +hi def link mpPrimaryDef mpDef +hi def link mpSecondaryDef mpDef +hi def link mpTertiaryDef mpDef +hi def link mpNewInternal mpInternal +hi def link mpVariable mfVariable +hi def link mpConstant mfConstant +hi def link mpOnOff mpPrimitive +hi def link mpDash mpPrimitive +hi def link mpTeXKeyword Identifier + +b:current_syntax = "mp" + +# vim: sw=2 fdm=marker diff --git a/git/usr/share/vim/vim92/syntax/mplayerconf.vim b/git/usr/share/vim/vim92/syntax/mplayerconf.vim new file mode 100644 index 0000000000000000000000000000000000000000..84ad2daf13f4842999aff0187946d22abc69dad1 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mplayerconf.vim @@ -0,0 +1,128 @@ +" Vim syntax file +" Language: mplayer(1) configuration file +" Maintainer: Dmitri Vereshchagin +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2015-01-24 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +setlocal iskeyword+=- + +syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE + +syn region mplayerconfComment display oneline start='#' end='$' + \ contains=mplayerconfTodo,@Spell + +syn keyword mplayerconfPreProc include + +syn keyword mplayerconfBoolean yes no true false + +syn match mplayerconfNumber '\<\d\+\>' + +syn keyword mplayerconfOption hardframedrop nomouseinput bandwidth dumpstream + \ rtsp-stream-over-tcp tv overlapsub + \ sub-bg-alpha subfont-outline unicode format + \ vo edl cookies fps zrfd af-adv nosound + \ audio-density passlogfile vobsuboutindex autoq + \ autosync benchmark colorkey nocolorkey edlout + \ enqueue fixed-vo framedrop h identify input + \ lircconf list-options loop menu menu-cfg + \ menu-root nojoystick nolirc nortc playlist + \ quiet really-quiet shuffle skin slave + \ softsleep speed sstep use-stdin aid alang + \ audio-demuxer audiofile audiofile-cache + \ cdrom-device cache cdda channels chapter + \ cookies-file demuxer dumpaudio dumpfile + \ dumpvideo dvbin dvd-device dvdangle forceidx + \ frames hr-mp3-seek idx ipv4-only-proxy + \ loadidx mc mf ni nobps noextbased + \ passwd prefer-ipv4 prefer-ipv6 rawaudio + \ rawvideo saveidx sb srate ss tskeepbroken + \ tsprog tsprobe user user-agent vid vivo + \ dumpjacosub dumpmicrodvdsub dumpmpsub dumpsami + \ dumpsrtsub dumpsub ffactor flip-hebrew font + \ forcedsubsonly fribidi-charset ifo noautosub + \ osdlevel sid slang spuaa spualign spugauss + \ sub sub-bg-color sub-demuxer sub-fuzziness + \ sub-no-text-pp subalign subcc subcp subdelay + \ subfile subfont-autoscale subfont-blur + \ subfont-encoding subfont-osd-scale + \ subfont-text-scale subfps subpos subwidth + \ utf8 vobsub vobsubid abs ao aofile aop delay + \ mixer nowaveheader aa bpp brightness contrast + \ dfbopts display double dr dxr2 fb fbmode + \ fbmodeconfig forcexv fs fsmode-dontuse fstype + \ geometry guiwid hue jpeg monitor-dotclock + \ monitor-hfreq monitor-vfreq monitoraspect + \ nograbpointer nokeepaspect noxv ontop panscan + \ rootwin saturation screenw stop-xscreensaver + \ vm vsync wid xineramascreen z zrbw zrcrop + \ zrdev zrhelp zrnorm zrquality zrvdec zrxdoff + \ ac af afm aspect flip lavdopts noaspect + \ noslices novideo oldpp pp pphelp ssf stereo + \ sws vc vfm x xvidopts xy y zoom vf vop + \ audio-delay audio-preload endpos ffourcc + \ include info noautoexpand noskip o oac of + \ ofps ovc skiplimit v vobsubout vobsuboutid + \ lameopts lavcopts nuvopts xvidencopts a52drc + \ adapter af-add af-clr af-del af-pre + \ allow-dangerous-playlist-parsing ass + \ ass-border-color ass-bottom-margin ass-color + \ ass-font-scale ass-force-style ass-hinting + \ ass-line-spacing ass-styles ass-top-margin + \ ass-use-margins ausid bluray-angle + \ bluray-device border border-pos-x border-pos-y + \ cache-min cache-seek-min capture codecpath + \ codecs-file correct-pts crash-debug + \ doubleclick-time dvd-speed edl-backward-delay + \ edl-start-pts embeddedfonts fafmttag + \ field-dominance fontconfig force-avi-aspect + \ force-key-frames frameno-file fullscreen gamma + \ gui gui-include gui-wid heartbeat-cmd + \ heartbeat-interval hr-edl-seek + \ http-header-fields idle ignore-start + \ key-fifo-size list-properties menu-chroot + \ menu-keepdir menu-startup mixer-channel + \ monitor-orientation monitorpixelaspect + \ mouse-movements msgcharset msgcolor msglevel + \ msgmodule name noar nocache noconfig + \ noconsolecontrols nocorrect-pts nodouble + \ noedl-start-pts noencodedups + \ noflip-hebrew-commas nogui noidx noodml + \ nostop-xscreensaver nosub noterm-osd + \ osd-duration osd-fractions panscanrange + \ pausing playing-msg priority profile + \ progbar-align psprobe pvr radio referrer + \ refreshrate reuse-socket rtc rtc-device + \ rtsp-destination rtsp-port + \ rtsp-stream-over-http screenh show-profile + \ softvol softvol-max sub-paths subfont + \ term-osd-esc title tvscan udp-ip udp-master + \ udp-port udp-seek-threshold udp-slave + \ unrarexec use-filedir-conf use-filename-title + \ vf-add vf-clr vf-del vf-pre volstep volume + \ zrhdec zrydoff + +syn region mplayerconfString display oneline start=+"+ end=+"+ +syn region mplayerconfString display oneline start=+'+ end=+'+ + +syn region mplayerconfProfile display oneline start='^\s*\[' end='\]' + +hi def link mplayerconfTodo Todo +hi def link mplayerconfComment Comment +hi def link mplayerconfPreProc PreProc +hi def link mplayerconfBoolean Boolean +hi def link mplayerconfNumber Number +hi def link mplayerconfOption Keyword +hi def link mplayerconfString String +hi def link mplayerconfProfile Special + +let b:current_syntax = "mplayerconf" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/mrxvtrc.vim b/git/usr/share/vim/vim92/syntax/mrxvtrc.vim new file mode 100644 index 0000000000000000000000000000000000000000..2ef434d2b2331b8aa733553bc51bee5bdc659828 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mrxvtrc.vim @@ -0,0 +1,282 @@ +" Description : Vim syntax file for mrxvtrc (for mrxvt-0.5.0 and up) +" Created : Wed 26 Apr 2006 01:20:53 AM CDT +" Modified : Thu 02 Feb 2012 08:37:45 PM EST +" Maintainer : GI , where a='gi1242+vim', b='gmail', c='com' + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case match + +" Errors +syn match mrxvtrcError contained '\v\S+' + +" Comments +syn match mrxvtrcComment contains=@Spell '^\s*[!#].*$' +syn match mrxvtrcComment '\v^\s*[#!]\s*\w+[.*]\w+.*:.*' + +" +" Options. +" +syn match mrxvtrcClass '\v^\s*\w+[.*]' + \ nextgroup=mrxvtrcOptions,mrxvtrcProfile,@mrxvtrcPOpts,mrxvtrcError + +" Boolean options +syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError + \ highlightTabOnBell syncTabTitle hideTabbar + \ autohideTabbar bottomTabbar hideButtons + \ syncTabIcon veryBoldFont maximized + \ fullscreen reverseVideo loginShell + \ jumpScroll scrollBar scrollbarRight + \ scrollbarFloating scrollTtyOutputInhibit + \ scrollTtyKeypress transparentForce + \ transparentScrollbar transparentMenubar + \ transparentTabbar tabUsePixmap utmpInhibit + \ visualBell mapAlert meta8 + \ mouseWheelScrollPage multibyte_cursor + \ tripleclickwords showMenu xft xftNomFont + \ xftSlowOutput xftAntialias xftHinting + \ xftAutoHint xftGlobalAdvance cmdAllTabs + \ protectSecondary thai borderLess + \ overrideRedirect broadcast smartResize + \ pointerBlank cursorBlink noSysConfig + \ disableMacros linuxHomeEndKey sessionMgt + \ boldColors smoothResize useFifo veryBright +syn match mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError + \ '\v' +syn match mrxvtrcBColon contained skipwhite + \ nextgroup=mrxvtrcBoolVal,mrxvtrcError ':' +syn case ignore +syn keyword mrxvtrcBoolVal contained skipwhite nextgroup=mrxvtrcError + \ 0 1 yes no on off true false +syn case match + +" Color options +syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcCColon,mrxvtrcError + \ ufBackground textShadow tabForeground + \ itabForeground tabBackground itabBackground + \ scrollColor troughColor highlightColor + \ cursorColor cursorColor2 pointerColor + \ borderColor tintColor +syn match mrxvtrcOptions contained nextgroup=mrxvtrcCColon,mrxvtrcError + \ '\v' +syn match mrxvtrcCColon contained skipwhite + \ nextgroup=mrxvtrcColorVal ':' +syn match mrxvtrcColorVal contained skipwhite nextgroup=mrxvtrcError + \ '\v#[0-9a-fA-F]{6}' + +" Numeric options +syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcNColon,mrxvtrcError + \ maxTabWidth minVisibleTabs + \ scrollbarThickness xftmSize xftSize desktop + \ externalBorder internalBorder lineSpace + \ pointerBlankDelay cursorBlinkInterval + \ shading backgroundFade bgRefreshInterval + \ fading opacity opacityDegree xftPSize +syn match mrxvtrcNColon contained skipwhite + \ nextgroup=mrxvtrcNumVal,mrxvtrcError ':' +syn match mrxvtrcNumVal contained skipwhite nextgroup=mrxvtrcError + \ '\v[+-]?<(0[0-7]+|\d+|0x[0-9a-f]+)>' + +" String options +syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError + \ tabTitle termName title clientName iconName + \ bellCommand backspaceKey deleteKey + \ printPipe cutChars answerbackString + \ smClientID geometry path boldFont xftFont + \ xftmFont xftPFont inputMethod + \ greektoggle_key menu menubarPixmap + \ scrollbarPixmap tabbarPixmap appIcon + \ multichar_encoding initProfileList +syn match mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError + \ '\v' +syn match mrxvtrcSColon contained skipwhite nextgroup=mrxvtrcStrVal ':' +syn match mrxvtrcStrVal contained '\v\S.*' + +" Profile options +syn cluster mrxvtrcPOpts contains=mrxvtrcPSOpts,mrxvtrcPCOpts,mrxvtrcPNOpts +syn match mrxvtrcProfile contained nextgroup=@mrxvtrcPOpts,mrxvtrcError + \ '\vprofile\d+\.' +syn keyword mrxvtrcPSOpts contained nextgroup=mrxvtrcSColon,mrxvtrcError + \ tabTitle command holdExitText holdExitTitle + \ Pixmap workingDirectory titleFormat + \ winTitleFormat +syn keyword mrxvtrcPCOpts contained nextgroup=mrxvtrcCColon,mrxvtrcError + \ background foreground +syn keyword mrxvtrcPNOpts contained nextgroup=mrxvtrcNColon,mrxvtrcError + \ holdExit saveLines + +" scrollbarStyle +syn match mrxvtrcOptions contained skipwhite + \ nextgroup=mrxvtrcSBstyle,mrxvtrcError + \ '\v' + +" +" Highlighting groups +" +hi def link mrxvtrcError Error +hi def link mrxvtrcComment Comment + +hi def link mrxvtrcClass Statement +hi def link mrxvtrcOptions mrxvtrcClass +hi def link mrxvtrcBColon mrxvtrcClass +hi def link mrxvtrcCColon mrxvtrcClass +hi def link mrxvtrcNColon mrxvtrcClass +hi def link mrxvtrcSColon mrxvtrcClass +hi def link mrxvtrcProfile mrxvtrcClass +hi def link mrxvtrcPSOpts mrxvtrcClass +hi def link mrxvtrcPCOpts mrxvtrcClass +hi def link mrxvtrcPNOpts mrxvtrcClass + +hi def link mrxvtrcBoolVal Boolean +hi def link mrxvtrcStrVal String +hi def link mrxvtrcColorVal Constant +hi def link mrxvtrcNumVal Number + +hi def link mrxvtrcSBstyle mrxvtrcStrVal +hi def link mrxvtrcSBalign mrxvtrcStrVal +hi def link mrxvtrcTSmode mrxvtrcStrVal +hi def link mrxvtrcGrkKbd mrxvtrcStrVal +hi def link mrxvtrcXftWt mrxvtrcStrVal +hi def link mrxvtrcXftSl mrxvtrcStrVal +hi def link mrxvtrcXftWd mrxvtrcStrVal +hi def link mrxvtrcXftHt mrxvtrcStrVal +hi def link mrxvtrcPedit mrxvtrcStrVal +hi def link mrxvtrcMod mrxvtrcStrVal +hi def link mrxvtrcSelSty mrxvtrcStrVal + +hi def link mrxvtrcMacro Identifier +hi def link mrxvtrcKey mrxvtrcClass +hi def link mrxvtrcTitle mrxvtrcStrVal +hi def link mrxvtrcShell Special +hi def link mrxvtrcCmd PreProc +hi def link mrxvtrcSubwin mrxvtrcStrVal + +let b:current_syntax = "mrxvtrc" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/msidl.vim b/git/usr/share/vim/vim92/syntax/msidl.vim new file mode 100644 index 0000000000000000000000000000000000000000..57eaecaa4f6d9132fafc216e83ef354945c36fe4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/msidl.vim @@ -0,0 +1,84 @@ +" Vim syntax file +" Language: MS IDL (Microsoft dialect of Interface Description Language) +" Maintainer: Vadim Zeitlin +" Last Change: 2012 Feb 12 by Thilo Six + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" Misc basic +syn match msidlId "[a-zA-Z][a-zA-Z0-9_]*" +syn match msidlUUID "{\?[[:xdigit:]]\{8}-\([[:xdigit:]]\{4}-\)\{3}[[:xdigit:]]\{12}}\?" +syn region msidlString start=/"/ skip=/\\\(\\\\\)*"/ end=/"/ +syn match msidlLiteral "\d\+\(\.\d*\)\=" +syn match msidlLiteral "\.\d\+" +syn match msidlSpecial contained "[]\[{}:]" + +" Comments +syn keyword msidlTodo contained TODO FIXME XXX +syn region msidlComment start="/\*" end="\*/" contains=msidlTodo +syn match msidlComment "//.*" contains=msidlTodo +syn match msidlCommentError "\*/" + +" C style Preprocessor +syn region msidlIncluded contained start=+"+ skip=+\\\(\\\\\)*"+ end=+"+ +syn match msidlIncluded contained "<[^>]*>" +syn match msidlInclude "^[ \t]*#[ \t]*include\>[ \t]*["<]" contains=msidlIncluded,msidlString +syn region msidlPreCondit start="^[ \t]*#[ \t]*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=msidlComment,msidlCommentError +syn region msidlDefine start="^[ \t]*#[ \t]*\(define\>\|undef\>\)" skip="\\$" end="$" contains=msidlLiteral, msidlString + +" Attributes +syn keyword msidlAttribute contained in out propget propput propputref retval +syn keyword msidlAttribute contained aggregatable appobject binadable coclass control custom default defaultbind defaultcollelem defaultvalue defaultvtable dispinterface displaybind dual entry helpcontext helpfile helpstring helpstringdll hidden id immediatebind lcid library licensed nonbrowsable noncreatable nonextensible oleautomation optional object public readonly requestedit restricted source string uidefault usesgetlasterror vararg version +syn match msidlAttribute /uuid(.*)/he=s+4 contains=msidlUUID +syn match msidlAttribute /helpstring(.*)/he=s+10 contains=msidlString +syn region msidlAttributes start="\[" end="]" keepend contains=msidlSpecial,msidlString,msidlAttribute,msidlComment,msidlCommentError + +" Keywords +syn keyword msidlEnum enum +syn keyword msidlImport import importlib +syn keyword msidlStruct interface library coclass +syn keyword msidlTypedef typedef + +" Types +syn keyword msidlStandardType byte char double float hyper int long short void wchar_t +syn keyword msidlStandardType BOOL BSTR HRESULT VARIANT VARIANT_BOOL +syn region msidlSafeArray start="SAFEARRAY(" end=")" contains=msidlStandardType + +syn sync lines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link msidlInclude Include +hi def link msidlPreProc PreProc +hi def link msidlPreCondit PreCondit +hi def link msidlDefine Macro +hi def link msidlIncluded String +hi def link msidlString String +hi def link msidlComment Comment +hi def link msidlTodo Todo +hi def link msidlSpecial SpecialChar +hi def link msidlLiteral Number +hi def link msidlUUID Number + +hi def link msidlImport Include +hi def link msidlEnum StorageClass +hi def link msidlStruct Structure +hi def link msidlTypedef Typedef +hi def link msidlAttribute StorageClass + +hi def link msidlStandardType Type +hi def link msidlSafeArray Type + + +let b:current_syntax = "msidl" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vi: set ts=8 sw=4: diff --git a/git/usr/share/vim/vim92/syntax/msmessages.vim b/git/usr/share/vim/vim92/syntax/msmessages.vim new file mode 100644 index 0000000000000000000000000000000000000000..5faee978b45f0a52e133c2059b6ef6844429f39f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/msmessages.vim @@ -0,0 +1,132 @@ +" Vim syntax file +" Language: MS Message Text files (*.mc) +" Maintainer: Kevin Locke +" Last Change: 2008 April 09 +" Location: http://kevinlocke.name/programs/vim/syntax/msmessages.vim + +" See format description at +" This file is based on the rc.vim and c.vim + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Common MS Messages keywords +syn case ignore +syn keyword msmessagesIdentifier MessageIdTypedef +syn keyword msmessagesIdentifier SeverityNames +syn keyword msmessagesIdentifier FacilityNames +syn keyword msmessagesIdentifier LanguageNames +syn keyword msmessagesIdentifier OutputBase + +syn keyword msmessagesIdentifier MessageId +syn keyword msmessagesIdentifier Severity +syn keyword msmessagesIdentifier Facility +syn keyword msmessagesIdentifier OutputBase + +syn match msmessagesIdentifier /\/ nextgroup=msmessagesIdentEq skipwhite +syn match msmessagesIdentEq transparent /=/ nextgroup=msmessagesIdentDef skipwhite contained +syn match msmessagesIdentDef display /\w\+/ contained +" Note: The Language keyword is highlighted as part of an msmessagesLangEntry + +" Set value +syn case match +syn region msmessagesSet start="(" end=")" transparent fold contains=msmessagesName keepend +syn match msmessagesName /\w\+/ nextgroup=msmessagesSetEquals skipwhite contained +syn match msmessagesSetEquals /=/ display transparent nextgroup=msmessagesNumVal skipwhite contained +syn match msmessagesNumVal display transparent "\<\d\|\.\d" contains=msmessagesNumber,msmessagesFloat,msmessagesOctalError,msmessagesOctal nextgroup=msmessagesValSep +syn match msmessagesValSep /:/ display nextgroup=msmessagesNameDef contained +syn match msmessagesNameDef /\w\+/ display contained + + +" Comments are converted to C source (by removing leading ;) +" So we highlight the comments as C +syn include @msmessagesC syntax/c.vim +unlet b:current_syntax +syn region msmessagesCComment matchgroup=msmessagesComment start=/;/ end=/$/ contains=@msmessagesC keepend + +" String and Character constants +" Highlight special characters (those which have a escape) differently +syn case ignore +syn region msmessagesLangEntry start=/\\s*=\s*\S\+\s*$/hs=e+1 end=/^\./ contains=msmessagesFormat,msmessagesLangEntryEnd,msmessagesLanguage keepend +syn match msmessagesLanguage /\" +"hex number +syn match msmessagesNumber display contained "\<0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" +" Flag the first zero of an octal number as something special +syn match msmessagesOctal display contained "\<0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=msmessagesOctalZero +syn match msmessagesOctalZero display contained "\<0" +" flag an octal number with wrong digits +syn match msmessagesOctalError display contained "\<0\o*[89]\d*" +syn match msmessagesFloat display contained "\d\+f" +"floating point number, with dot, optional exponent +syn match msmessagesFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +"floating point number, starting with a dot, optional exponent +syn match msmessagesFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match msmessagesFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" +"hexadecimal floating point number, optional leading digits, with dot, with exponent +syn match msmessagesFloat display contained "0x\x*\.\x\+p[-+]\=\d\+[fl]\=\>" +"hexadecimal floating point number, with leading digits, optional dot, with exponent +syn match msmessagesFloat display contained "0x\x\+\.\=p[-+]\=\d\+[fl]\=\>" + +" Types (used in MessageIdTypedef statement) +syn case match +syn keyword msmessagesType int long short char +syn keyword msmessagesType signed unsigned +syn keyword msmessagesType size_t ssize_t sig_atomic_t +syn keyword msmessagesType int8_t int16_t int32_t int64_t +syn keyword msmessagesType uint8_t uint16_t uint32_t uint64_t +syn keyword msmessagesType int_least8_t int_least16_t int_least32_t int_least64_t +syn keyword msmessagesType uint_least8_t uint_least16_t uint_least32_t uint_least64_t +syn keyword msmessagesType int_fast8_t int_fast16_t int_fast32_t int_fast64_t +syn keyword msmessagesType uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t +syn keyword msmessagesType intptr_t uintptr_t +syn keyword msmessagesType intmax_t uintmax_t +" Add some Windows datatypes that will be common in msmessages files +syn keyword msmessagesType BYTE CHAR SHORT SIZE_T SSIZE_T TBYTE TCHAR UCHAR USHORT +syn keyword msmessagesType DWORD DWORDLONG DWORD32 DWORD64 +syn keyword msmessagesType INT INT32 INT64 UINT UINT32 UINT64 +syn keyword msmessagesType LONG LONGLONG LONG32 LONG64 +syn keyword msmessagesType ULONG ULONGLONG ULONG32 ULONG64 + +" Sync to language entries, since they should be most common +syn sync match msmessagesLangSync grouphere msmessagesLangEntry "\ +" URL: http://www.isp.de/data/msql.vim +" Email: Subject: send syntax_vim.tgz +" Last Change: 2001 May 10 +" +" Options msql_sql_query = 1 for SQL syntax highligthing inside strings +" msql_minlines = x to sync at least x lines backwards + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +if !exists("main_syntax") + let main_syntax = 'msql' +endif + +runtime! syntax/html.vim +unlet b:current_syntax + +syn cluster htmlPreproc add=msqlRegion + +syn case match + +" Internal Variables +syn keyword msqlIntVar ERRMSG contained + +" Env Variables +syn keyword msqlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained +syn keyword msqlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO contained +syn keyword msqlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained +syn keyword msqlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE contained +syn keyword msqlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE contained +syn keyword msqlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE contained +syn keyword msqlEnvVar HTTP_FROM HTTP_REFERER contained + +" Inlclude lLite +syn include @msqlLite :p:h/lite.vim + +" Msql Region +syn region msqlRegion matchgroup=Delimiter start="D]" end=">" contains=@msqlLite,msql.* + +" sync +if exists("msql_minlines") + exec "syn sync minlines=" . msql_minlines +else + syn sync minlines=100 +endif + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link msqlComment Comment +hi def link msqlString String +hi def link msqlNumber Number +hi def link msqlFloat Float +hi def link msqlIdentifier Identifier +hi def link msqlGlobalIdentifier Identifier +hi def link msqlIntVar Identifier +hi def link msqlEnvVar Identifier +hi def link msqlFunctions Function +hi def link msqlRepeat Repeat +hi def link msqlConditional Conditional +hi def link msqlStatement Statement +hi def link msqlType Type +hi def link msqlInclude Include +hi def link msqlDefine Define +hi def link msqlSpecialChar SpecialChar +hi def link msqlParentError Error +hi def link msqlTodo Todo +hi def link msqlOperator Operator +hi def link msqlRelation Operator + + +let b:current_syntax = "msql" + +if main_syntax == 'msql' + unlet main_syntax +endif + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/mss.vim b/git/usr/share/vim/vim92/syntax/mss.vim new file mode 100644 index 0000000000000000000000000000000000000000..de95d1d2adda54b9d3eab421d2187ae31c6165d3 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mss.vim @@ -0,0 +1,23 @@ +" Vim syntax file +" Language: Vivado mss file +" Maintainer: The Vim Project +" Last Change: 2024 Oct 22 +" Document: https://docs.amd.com/r/2020.2-English/ug1400-vitis-embedded/Microprocessor-Software-Specification-MSS +" Maintainer: Wu, Zhenyu + +if exists("b:current_syntax") + finish +endif + +syn case ignore +syn match mssComment "#.*$" contains=@Spell +syn keyword mssKeyword BEGIN END PARAMETER +syn keyword mssType OS PROCESSOR DRIVER LIBRARY +syn keyword mssConstant VERSION PROC_INSTANCE HW_INSTANCE OS_NAME OS_VER DRIVER_NAME DRIVER_VER LIBRARY_NAME LIBRARY_VER STDIN STDOUT XMDSTUB_PERIPHERAL ARCHIVER COMPILER COMPILER_FLAGS EXTRA_COMPILER_FLAGS + +hi def link mssComment Comment +hi def link mssKeyword Keyword +hi def link mssType Type +hi def link mssConstant Constant + +let b:current_syntax = "mss" diff --git a/git/usr/share/vim/vim92/syntax/mupad.vim b/git/usr/share/vim/vim92/syntax/mupad.vim new file mode 100644 index 0000000000000000000000000000000000000000..df87ad14fe4db0f52c5f7d513aa5fe87687798ca --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mupad.vim @@ -0,0 +1,284 @@ +" Vim syntax file +" Language: MuPAD source +" Maintainer: Dave Silvia +" Filenames: *.mu +" Date: 6/30/2004 + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Set default highlighting to Win2k +if !exists("mupad_cmdextversion") + let mupad_cmdextversion = 2 +endif + +syn case match + +syn match mupadComment "//\p*$" +syn region mupadComment start="/\*" end="\*/" + +syn region mupadString start="\"" skip=/\\"/ end="\"" + +syn match mupadOperator "(\|)\|:=\|::\|:\|;" +" boolean +syn keyword mupadOperator and or not xor +syn match mupadOperator "==>\|\<=\>" + +" Informational +syn keyword mupadSpecial FILEPATH NOTEBOOKFILE NOTEBOOKPATH +" Set-able, e.g., DIGITS:=10 +syn keyword mupadSpecial DIGITS HISTORY LEVEL +syn keyword mupadSpecial MAXLEVEL MAXDEPTH ORDER +syn keyword mupadSpecial TEXTWIDTH +" Set-able, e.g., PRETTYPRINT:=TRUE +syn keyword mupadSpecial PRETTYPRINT +" Set-able, e.g., LIBPATH:="C:\\MuPAD Pro\\mylibdir" or LIBPATH:="/usr/MuPAD Pro/mylibdir" +syn keyword mupadSpecial LIBPATH PACKAGEPATH +syn keyword mupadSpecial READPATH TESTPATH WRITEPATH +" Symbols and Constants +syn keyword mupadDefine FAIL NIL +syn keyword mupadDefine TRUE FALSE UNKNOWN +syn keyword mupadDefine complexInfinity infinity +syn keyword mupadDefine C_ CATALAN E EULER I PI Q_ R_ +syn keyword mupadDefine RD_INF RD_NINF undefined unit universe Z_ +" print() directives +syn keyword mupadDefine Unquoted NoNL KeepOrder Typeset +" domain specifics +syn keyword mupadStatement domain begin end_domain end +syn keyword mupadIdentifier inherits category axiom info doc interface +" basic programming statements +syn keyword mupadStatement proc begin end_proc +syn keyword mupadUnderlined name local option save +syn keyword mupadConditional if then elif else end_if +syn keyword mupadConditional case of do break end_case +syn keyword mupadRepeat for do next break end_for +syn keyword mupadRepeat while do next break end_while +syn keyword mupadRepeat repeat next break until end_repeat +" domain packages/libraries +syn keyword mupadType detools import linalg numeric numlib plot polylib +syn match mupadType '\' + +"syn keyword mupadFunction contains +" Functions dealing with prime numbers +syn keyword mupadFunction phi invphi mersenne nextprime numprimedivisors +syn keyword mupadFunction pollard prevprime primedivisors +" Functions operating on Lists, Matrices, Sets, ... +syn keyword mupadFunction array _index +" Evaluation +syn keyword mupadFunction float contains +" stdlib +syn keyword mupadFunction _exprseq _invert _lazy_and _lazy_or _negate +syn keyword mupadFunction _stmtseq _invert intersect minus union +syn keyword mupadFunction Ci D Ei O Re Im RootOf Si +syn keyword mupadFunction Simplify +syn keyword mupadFunction abs airyAi airyBi alias unalias anames append +syn keyword mupadFunction arcsin arccos arctan arccsc arcsec arccot +syn keyword mupadFunction arcsinh arccosh arctanh arccsch arcsech arccoth +syn keyword mupadFunction arg args array assert assign assignElements +syn keyword mupadFunction assume assuming asympt bernoulli +syn keyword mupadFunction besselI besselJ besselK besselY beta binomial bool +syn keyword mupadFunction bytes card +syn keyword mupadFunction ceil floor round trunc +syn keyword mupadFunction coeff coerce collect combine copyClosure +syn keyword mupadFunction conjugate content context contfrac +syn keyword mupadFunction debug degree degreevec delete _delete denom +syn keyword mupadFunction densematrix diff dilog dirac discont div _div +syn keyword mupadFunction divide domtype doprint erf erfc error eval evalassign +syn keyword mupadFunction evalp exp expand export unexport expose expr +syn keyword mupadFunction expr2text external extnops extop extsubsop +syn keyword mupadFunction fact fact2 factor fclose finput fname fopen fprint +syn keyword mupadFunction fread ftextinput readbitmap readdata pathname +syn keyword mupadFunction protocol read readbytes write writebytes +syn keyword mupadFunction float frac frame _frame frandom freeze unfreeze +syn keyword mupadFunction funcenv gamma gcd gcdex genident genpoly +syn keyword mupadFunction getpid getprop ground has hastype heaviside help +syn keyword mupadFunction history hold hull hypergeom icontent id +syn keyword mupadFunction ifactor igamma igcd igcdex ilcm in _in +syn keyword mupadFunction indets indexval info input int int2text +syn keyword mupadFunction interpolate interval irreducible is +syn keyword mupadFunction isprime isqrt iszero ithprime kummerU lambertW +syn keyword mupadFunction last lasterror lcm lcoeff ldegree length +syn keyword mupadFunction level lhs rhs limit linsolve lllint +syn keyword mupadFunction lmonomial ln loadmod loadproc log lterm +syn keyword mupadFunction match map mapcoeffs maprat matrix max min +syn keyword mupadFunction mod modp mods monomials multcoeffs new +syn keyword mupadFunction newDomain _next nextprime nops +syn keyword mupadFunction norm normal nterms nthcoeff nthmonomial nthterm +syn keyword mupadFunction null numer ode op operator package +syn keyword mupadFunction pade partfrac patchlevel pdivide +syn keyword mupadFunction piecewise plot plotfunc2d plotfunc3d +syn keyword mupadFunction poly poly2list polylog powermod print +syn keyword mupadFunction product protect psi quit _quit radsimp random rationalize +syn keyword mupadFunction rec rectform register reset return revert +syn keyword mupadFunction rewrite select series setuserinfo share sign signIm +syn keyword mupadFunction simplify +syn keyword mupadFunction sin cos tan csc sec cot +syn keyword mupadFunction sinh cosh tanh csch sech coth +syn keyword mupadFunction slot solve +syn keyword mupadFunction pdesolve matlinsolve matlinsolveLU toeplitzSolve +syn keyword mupadFunction vandermondeSolve fsolve odesolve odesolve2 +syn keyword mupadFunction polyroots polysysroots odesolveGeometric +syn keyword mupadFunction realroot realroots mroots lincongruence +syn keyword mupadFunction msqrts +syn keyword mupadFunction sort split sqrt strmatch strprint +syn keyword mupadFunction subs subset subsex subsop substring sum +syn keyword mupadFunction surd sysname sysorder system table taylor tbl2text +syn keyword mupadFunction tcoeff testargs testeq testtype text2expr +syn keyword mupadFunction text2int text2list text2tbl rtime time +syn keyword mupadFunction traperror type unassume unit universe +syn keyword mupadFunction unloadmod unprotect userinfo val version +syn keyword mupadFunction warning whittakerM whittakerW zeta zip + +" graphics plot:: +syn keyword mupadFunction getDefault setDefault copy modify Arc2d Arrow2d +syn keyword mupadFunction Arrow3d Bars2d Bars3d Box Boxplot Circle2d Circle3d +syn keyword mupadFunction Cone Conformal Curve2d Curve3d Cylinder Cylindrical +syn keyword mupadFunction Density Ellipse2d Function2d Function3d Hatch +syn keyword mupadFunction Histogram2d HOrbital Implicit2d Implicit3d +syn keyword mupadFunction Inequality Iteration Line2d Line3d Lsys Matrixplot +syn keyword mupadFunction MuPADCube Ode2d Ode3d Parallelogram2d Parallelogram3d +syn keyword mupadFunction Piechart2d Piechart3d Point2d Point3d Polar +syn keyword mupadFunction Polygon2d Polygon3d Raster Rectangle Sphere +syn keyword mupadFunction Ellipsoid Spherical Sum Surface SurfaceSet +syn keyword mupadFunction SurfaceSTL Tetrahedron Hexahedron Octahedron +syn keyword mupadFunction Dodecahedron Icosahedron Text2d Text3d Tube Turtle +syn keyword mupadFunction VectorField2d XRotate ZRotate Canvas CoordinateSystem2d +syn keyword mupadFunction CoordinateSystem3d Group2d Group3d Scene2d Scene3d ClippingBox +syn keyword mupadFunction Rotate2d Rotate3d Scale2d Scale3d Transform2d +syn keyword mupadFunction Transform3d Translate2d Translate3d AmbientLight +syn keyword mupadFunction Camera DistantLight PointLight SpotLight + +" graphics Attributes +" graphics Output Attributes +syn keyword mupadIdentifier OutputFile OutputOptions +" graphics Defining Attributes +syn keyword mupadIdentifier Angle AngleRange AngleBegin AngleEnd +syn keyword mupadIdentifier Area Axis AxisX AxisY AxisZ Base Top +syn keyword mupadIdentifier BaseX TopX BaseY TopY BaseZ TopZ +syn keyword mupadIdentifier BaseRadius TopRadius Cells +syn keyword mupadIdentifier Center CenterX CenterY CenterZ +syn keyword mupadIdentifier Closed ColorData CommandList Contours CoordinateType +syn keyword mupadIdentifier Data DensityData DensityFunction From To +syn keyword mupadIdentifier FromX ToX FromY ToY FromZ ToZ +syn keyword mupadIdentifier Function FunctionX FunctionY FunctionZ +syn keyword mupadIdentifier Function1 Function2 Baseline +syn keyword mupadIdentifier Generations RotationAngle IterationRules StartRule StepLength +syn keyword mupadIdentifier TurtleRules Ground Heights Moves Inequalities +syn keyword mupadIdentifier InputFile Iterations StartingPoint +syn keyword mupadIdentifier LineColorFunction FillColorFunction +syn keyword mupadIdentifier Matrix2d Matrix3d +syn keyword mupadIdentifier MeshList MeshListType MeshListNormals +syn keyword mupadIdentifier MagneticQuantumNumber MomentumQuantumNumber PrincipalQuantumNumber +syn keyword mupadIdentifier Name Normal NormalX NormalY NormalZ +syn keyword mupadIdentifier ParameterName ParameterBegin ParameterEnd ParameterRange +syn keyword mupadIdentifier Points2d Points3d Radius RadiusFunction +syn keyword mupadIdentifier Position PositionX PositionY PositionZ +syn keyword mupadIdentifier Scale ScaleX ScaleY ScaleZ Shift ShiftX ShiftY ShiftZ +syn keyword mupadIdentifier SemiAxes SemiAxisX SemiAxisY SemiAxisZ +syn keyword mupadIdentifier Tangent1 Tangent1X Tangent1Y Tangent1Z +syn keyword mupadIdentifier Tangent2 Tangent2X Tangent2Y Tangent2Z +syn keyword mupadIdentifier Text TextOrientation TextRotation +syn keyword mupadIdentifier UName URange UMin UMax VName VRange VMin VMax +syn keyword mupadIdentifier XName XRange XMin XMax YName YRange YMin YMax +syn keyword mupadIdentifier ZName ZRange ZMin ZMax ViewingBox +syn keyword mupadIdentifier ViewingBoxXMin ViewingBoxXMax ViewingBoxXRange +syn keyword mupadIdentifier ViewingBoxYMin ViewingBoxYMax ViewingBoxYRange +syn keyword mupadIdentifier ViewingBoxZMin ViewingBoxZMax ViewingBoxZRange +syn keyword mupadIdentifier Visible +" graphics Axis Attributes +syn keyword mupadIdentifier Axes AxesInFront AxesLineColor AxesLineWidth +syn keyword mupadIdentifier AxesOrigin AxesOriginX AxesOriginY AxesOriginZ +syn keyword mupadIdentifier AxesTips AxesTitleAlignment +syn keyword mupadIdentifier AxesTitleAlignmentX AxesTitleAlignmentY AxesTitleAlignmentZ +syn keyword mupadIdentifier AxesTitles XAxisTitle YAxisTitle ZAxisTitle +syn keyword mupadIdentifier AxesVisible XAxisVisible YAxisVisible ZAxisVisible +syn keyword mupadIdentifier YAxisTitleOrientation +" graphics Tick Marks Attributes +syn keyword mupadIdentifier TicksAnchor XTicksAnchor YTicksAnchor ZTicksAnchor +syn keyword mupadIdentifier TicksAt XTicksAt YTicksAt ZTicksAt +syn keyword mupadIdentifier TicksBetween XTicksBetween YTicksBetween ZTicksBetween +syn keyword mupadIdentifier TicksDistance XTicksDistance YTicksDistance ZTicksDistance +syn keyword mupadIdentifier TicksNumber XTicksNumber YTicksNumber ZTicksNumber +syn keyword mupadIdentifier TicksVisible XTicksVisible YTicksVisible ZTicksVisible +syn keyword mupadIdentifier TicksLength TicksLabelStyle +syn keyword mupadIdentifier XTicksLabelStyle YTicksLabelStyle ZTicksLabelStyle +syn keyword mupadIdentifier TicksLabelsVisible +syn keyword mupadIdentifier XTicksLabelsVisible YTicksLabelsVisible ZTicksLabelsVisible +" graphics Grid Lines Attributes +syn keyword mupadIdentifier GridInFront GridLineColor SubgridLineColor +syn keyword mupadIdentifier GridLineStyle SubgridLineStyle GridLineWidth SubgridLineWidth +syn keyword mupadIdentifier GridVisible XGridVisible YGridVisible ZGridVisible +syn keyword mupadIdentifier SubgridVisible XSubgridVisible YSubgridVisible ZSubgridVisible +" graphics Animation Attributes +syn keyword mupadIdentifier Frames TimeRange TimeBegin TimeEnd +syn keyword mupadIdentifier VisibleAfter VisibleBefore VisibleFromTo +syn keyword mupadIdentifier VisibleAfterEnd VisibleBeforeBegin +" graphics Annotation Attributes +syn keyword mupadIdentifier Footer Header FooterAlignment HeaderAlignment +syn keyword mupadIdentifier HorizontalAlignment TitleAlignment VerticalAlignment +syn keyword mupadIdentifier Legend LegendEntry LegendText +syn keyword mupadIdentifier LegendAlignment LegendPlacement LegendVisible +syn keyword mupadIdentifier Title Titles +syn keyword mupadIdentifier TitlePosition TitlePositionX TitlePositionY TitlePositionZ +" graphics Layout Attributes +syn keyword mupadIdentifier Bottom Left Height Width Layout Rows Columns +syn keyword mupadIdentifier Margin BottomMargin TopMargin LeftMargin RightMargin +syn keyword mupadIdentifier OutputUnits Spacing +" graphics Calculation Attributes +syn keyword mupadIdentifier AdaptiveMesh DiscontinuitySearch Mesh SubMesh +syn keyword mupadIdentifier UMesh USubMesh VMesh VSubMesh +syn keyword mupadIdentifier XMesh XSubMesh YMesh YSubMesh Zmesh +" graphics Camera and Lights Attributes +syn keyword mupadIdentifier CameraCoordinates CameraDirection +syn keyword mupadIdentifier CameraDirectionX CameraDirectionY CameraDirectionZ +syn keyword mupadIdentifier FocalPoint FocalPointX FocalPointY FocalPointZ +syn keyword mupadIdentifier LightColor Lighting LightIntensity OrthogonalProjection +syn keyword mupadIdentifier SpotAngle ViewingAngle +syn keyword mupadIdentifier Target TargetX TargetY TargetZ +" graphics Presentation Style and Fonts Attributes +syn keyword mupadIdentifier ArrowLength +syn keyword mupadIdentifier AxesTitleFont FooterFont HeaderFont LegendFont +syn keyword mupadIdentifier TextFont TicksLabelFont TitleFont +syn keyword mupadIdentifier BackgroundColor BackgroundColor2 BackgroundStyle +syn keyword mupadIdentifier BackgroundTransparent Billboarding BorderColor BorderWidth +syn keyword mupadIdentifier BoxCenters BoxWidths DrawMode Gap XGap YGap +syn keyword mupadIdentifier Notched NotchWidth Scaling YXRatio ZXRatio +syn keyword mupadIdentifier VerticalAsymptotesVisible VerticalAsymptotesStyle +syn keyword mupadIdentifier VerticalAsymptotesColor VerticalAsymptotesWidth +" graphics Line Style Attributes +syn keyword mupadIdentifier LineColor LineColor2 LineColorType LineStyle +syn keyword mupadIdentifier LinesVisible ULinesVisible VLinesVisible XLinesVisible +syn keyword mupadIdentifier YLinesVisible LineWidth MeshVisible +" graphics Point Style Attributes +syn keyword mupadIdentifier PointColor PointSize PointStyle PointsVisible +" graphics Surface Style Attributes +syn keyword mupadIdentifier BarStyle Shadows Color Colors FillColor FillColor2 +syn keyword mupadIdentifier FillColorTrue FillColorFalse FillColorUnknown FillColorType +syn keyword mupadIdentifier Filled FillPattern FillPatterns FillStyle +syn keyword mupadIdentifier InterpolationStyle Shading UseNormals +" graphics Arrow Style Attributes +syn keyword mupadIdentifier TipAngle TipLength TipStyle TubeDiameter +syn keyword mupadIdentifier Tubular +" graphics meta-documentation Attributes +syn keyword mupadIdentifier objectGroupsListed + + +hi def link mupadComment Comment +hi def link mupadString String +hi def link mupadOperator Operator +hi def link mupadSpecial Special +hi def link mupadStatement Statement +hi def link mupadUnderlined Underlined +hi def link mupadConditional Conditional +hi def link mupadRepeat Repeat +hi def link mupadFunction Function +hi def link mupadType Type +hi def link mupadDefine Define +hi def link mupadIdentifier Identifier + +let b:current_syntax = 'mupad' + +" TODO More comprehensive listing. diff --git a/git/usr/share/vim/vim92/syntax/murphi.vim b/git/usr/share/vim/vim92/syntax/murphi.vim new file mode 100644 index 0000000000000000000000000000000000000000..347e17f5acecb7b1fc68dc2bb09a7e4d192626f2 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/murphi.vim @@ -0,0 +1,126 @@ +" Vim syntax file +" Language: Murphi model checking language +" Maintainer: Matthew Fernandez +" Last Change: 2019 Aug 27 +" Version: 2 +" Remark: Originally authored by Diego Ongaro + +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +" Keywords are case insensitive. +" Keep these in alphabetical order. +syntax case ignore +syn keyword murphiKeyword alias +syn keyword murphiStructure array +syn keyword murphiKeyword assert +syn keyword murphiKeyword begin +syn keyword murphiType boolean +syn keyword murphiKeyword by +syn keyword murphiLabel case +syn keyword murphiKeyword clear +syn keyword murphiLabel const +syn keyword murphiRepeat do +syn keyword murphiConditional else +syn keyword murphiConditional elsif +syn keyword murphiKeyword end +syn keyword murphiKeyword endalias +syn keyword murphiRepeat endexists +syn keyword murphiRepeat endfor +syn keyword murphiRepeat endforall +syn keyword murphiKeyword endfunction +syn keyword murphiConditional endif +syn keyword murphiKeyword endprocedure +syn keyword murphiStructure endrecord +syn keyword murphiKeyword endrule +syn keyword murphiKeyword endruleset +syn keyword murphiKeyword endstartstate +syn keyword murphiConditional endswitch +syn keyword murphiRepeat endwhile +syn keyword murphiStructure enum +syn keyword murphiKeyword error +syn keyword murphiRepeat exists +syn keyword murphiBoolean false +syn keyword murphiRepeat for +syn keyword murphiRepeat forall +syn keyword murphiKeyword function +syn keyword murphiConditional if +syn keyword murphiKeyword in +syn keyword murphiKeyword interleaved +syn keyword murphiLabel invariant +syn keyword murphiFunction ismember +syn keyword murphiFunction isundefined +syn keyword murphiKeyword log +syn keyword murphiStructure of +syn keyword murphiType multiset +syn keyword murphiFunction multisetadd +syn keyword murphiFunction multisetcount +syn keyword murphiFunction multisetremove +syn keyword murphiFunction multisetremovepred +syn keyword murphiKeyword procedure +syn keyword murphiKeyword program +syn keyword murphiKeyword put +syn keyword murphiStructure record +syn keyword murphiKeyword return +syn keyword murphiLabel rule +syn keyword murphiLabel ruleset +syn keyword murphiType scalarset +syn keyword murphiLabel startstate +syn keyword murphiConditional switch +syn keyword murphiConditional then +syn keyword murphiRepeat to +syn keyword murphiKeyword traceuntil +syn keyword murphiBoolean true +syn keyword murphiLabel type +syn keyword murphiKeyword undefine +syn keyword murphiStructure union +syn keyword murphiLabel var +syn keyword murphiRepeat while + +syn keyword murphiTodo contained todo xxx fixme +syntax case match + +" Integers. +syn match murphiNumber "\<\d\+\>" + +" Operators and special characters. +syn match murphiOperator "[\+\-\*\/%&|=!<>:\?]\|\." +syn match murphiDelimiter "\(:=\@!\|[;,]\)" +syn match murphiSpecial "[()\[\]]" + +" Double equal sign is a common error: use one equal sign for equality testing. +syn match murphiError "==[^>]"he=e-1 +" Double && and || are errors. +syn match murphiError "&&\|||" + +" Strings. This is defined so late so that it overrides previous matches. +syn region murphiString start=+"+ end=+"+ + +" Comments. This is defined so late so that it overrides previous matches. +syn region murphiComment start="--" end="$" contains=murphiTodo +syn region murphiComment start="/\*" end="\*/" contains=murphiTodo + +" Link the rules to some groups. +hi def link murphiComment Comment +hi def link murphiString String +hi def link murphiNumber Number +hi def link murphiBoolean Boolean +hi def link murphiIdentifier Identifier +hi def link murphiFunction Function +hi def link murphiStatement Statement +hi def link murphiConditional Conditional +hi def link murphiRepeat Repeat +hi def link murphiLabel Label +hi def link murphiOperator Operator +hi def link murphiKeyword Keyword +hi def link murphiType Type +hi def link murphiStructure Structure +hi def link murphiSpecial Special +hi def link murphiDelimiter Delimiter +hi def link murphiError Error +hi def link murphiTodo Todo + +let b:current_syntax = "murphi" diff --git a/git/usr/share/vim/vim92/syntax/mush.vim b/git/usr/share/vim/vim92/syntax/mush.vim new file mode 100644 index 0000000000000000000000000000000000000000..efaae50ae3a7c1687d1e344e52f174c4e2c36249 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mush.vim @@ -0,0 +1,215 @@ +" MUSHcode syntax file +" Maintainer: Rick Bird +" Based on vim Syntax file by: Bek Oberin +" Last Updated: Fri Nov 04 20:28:15 2005 +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" regular mush functions + +syntax keyword mushFunction contained @@ abs accent accname acos add after align +syntax keyword mushFunction contained allof alphamax alphamin and andflags +syntax keyword mushFunction contained andlflags andlpowers andpowers ansi aposs art +syntax keyword mushFunction contained asin atan atan2 atrlock attrcnt band baseconv +syntax keyword mushFunction contained beep before blank2tilde bnand bnot bor bound +syntax keyword mushFunction contained brackets break bxor cand cansee capstr case +syntax keyword mushFunction contained caseall cat ceil center checkpass children +syntax keyword mushFunction contained chr clone cmds cnetpost comp con config conn +syntax keyword mushFunction contained controls convsecs convtime convutcsecs cor +syntax keyword mushFunction contained cos create ctime ctu dec decrypt default +syntax keyword mushFunction contained delete die dig digest dist2d dist3d div +syntax keyword mushFunction contained division divscope doing downdiv dynhelp e +syntax keyword mushFunction contained edefault edit element elements elist elock +syntax keyword mushFunction contained emit empire empower encrypt endtag entrances +syntax keyword mushFunction contained eq escape etimefmt eval exit exp extract fdiv +syntax keyword mushFunction contained filter filterbool findable first firstof +syntax keyword mushFunction contained flags flip floor floordiv fmod fold +syntax keyword mushFunction contained folderstats followers following foreach +syntax keyword mushFunction contained fraction fullname functions get get_eval grab +syntax keyword mushFunction contained graball grep grepi gt gte hasattr hasattrp +syntax keyword mushFunction contained hasattrpval hasattrval hasdivpower hasflag +syntax keyword mushFunction contained haspower haspowergroup hastype height hidden +syntax keyword mushFunction contained home host hostname html idle idlesecs +syntax keyword mushFunction contained idle_average idle_times idle_total if ifelse +syntax keyword mushFunction contained ilev iname inc index indiv indivall insert +syntax keyword mushFunction contained inum ipaddr isdaylight isdbref isint isnum +syntax keyword mushFunction contained isword itemize items iter itext last lattr +syntax keyword mushFunction contained lcon lcstr ldelete ldivisions left lemit +syntax keyword mushFunction contained level lexits lflags link list lit ljust lmath +syntax keyword mushFunction contained ln lnum loc localize locate lock loctree log +syntax keyword mushFunction contained lparent lplayers lports lpos lsearch lsearchr +syntax keyword mushFunction contained lstats lt lte lthings lvcon lvexits lvplayers +syntax keyword mushFunction contained lvthings lwho mail maildstats mailfrom +syntax keyword mushFunction contained mailfstats mailstats mailstatus mailsubject +syntax keyword mushFunction contained mailtime map match matchall max mean median +syntax keyword mushFunction contained member merge mid min mix mod modulo modulus +syntax keyword mushFunction contained money mtime mudname mul munge mwho name nand +syntax keyword mushFunction contained nattr ncon nearby neq nexits next nor not +syntax keyword mushFunction contained nplayers nsemit nslemit nsoemit nspemit +syntax keyword mushFunction contained nsremit nszemit nthings null num nvcon +syntax keyword mushFunction contained nvexits nvplayers nvthings obj objeval objid +syntax keyword mushFunction contained objmem oemit ooref open or ord orflags +syntax keyword mushFunction contained orlflags orlpowers orpowers owner parent +syntax keyword mushFunction contained parse pcreate pemit pi pickrand playermem +syntax keyword mushFunction contained pmatch poll ports pos poss power powergroups +syntax keyword mushFunction contained powers powover program prompt pueblo quitprog +syntax keyword mushFunction contained quota r rand randword recv regedit regeditall +syntax keyword mushFunction contained regeditalli regediti regmatch regmatchi +syntax keyword mushFunction contained regrab regraball regraballi regrabi regrep +syntax keyword mushFunction contained regrepi remainder remit remove repeat replace +syntax keyword mushFunction contained rest restarts restarttime reswitch +syntax keyword mushFunction contained reswitchall reswitchalli reswitchi reverse +syntax keyword mushFunction contained revwords right rjust rloc rnum room root +syntax keyword mushFunction contained round s scan scramble search secs secure sent +syntax keyword mushFunction contained set setdiff setinter setq setr setunion sha0 +syntax keyword mushFunction contained shl shr shuffle sign signal sin sort sortby +syntax keyword mushFunction contained soundex soundlike soundslike space spellnum +syntax keyword mushFunction contained splice sql sqlescape sqrt squish ssl +syntax keyword mushFunction contained starttime stats stddev step strcat strinsert +syntax keyword mushFunction contained stripaccents stripansi strlen strmatch +syntax keyword mushFunction contained strreplace sub subj switch switchall t table +syntax keyword mushFunction contained tag tagwrap tan tel terminfo textfile +syntax keyword mushFunction contained tilde2blank time timefmt timestring tr +syntax keyword mushFunction contained trigger trim trimpenn trimtiny trunc type u +syntax keyword mushFunction contained ucstr udefault ufun uldefault ulocal updiv +syntax keyword mushFunction contained utctime v vadd val valid vcross vdim vdot +syntax keyword mushFunction contained version visible vmag vmax vmin vmul vsub +syntax keyword mushFunction contained vtattr vtcount vtcreate vtdestroy vtlcon +syntax keyword mushFunction contained vtloc vtlocate vtmaster vtname vtref vttel +syntax keyword mushFunction contained vunit wait where width wipe wordpos words +syntax keyword mushFunction contained wrap xcon xexits xget xor xplayers xthings +syntax keyword mushFunction contained xvcon xvexits xvplayers xvthings zemit zfun +syntax keyword mushFunction contained zmwho zone zwho + +" only highligh functions when they have an in-bracket immediately after +syntax match mushFunctionBrackets "\i*(" contains=mushFunction +" +" regular mush commands +syntax keyword mushAtCommandList contained @ALLHALT @ALLQUOTA @ASSERT @ATRCHOWN @ATRLOCK @ATTRIBUTE @BOOT +syntax keyword mushAtCommandList contained @BREAK @CEMIT @CHANNEL @CHAT @CHOWN @CHOWNALL @CHZONE @CHZONEALL +syntax keyword mushAtCommandList contained @CLOCK @CLONE @COBJ @COMMAND @CONFIG @CPATTR @CREATE @CRPLOG @DBCK +syntax keyword mushAtCommandList contained @DECOMPILE @DESTROY @DIG @DISABLE @DIVISION @DOING @DOLIST @DRAIN +syntax keyword mushAtCommandList contained @DUMP @EDIT @ELOCK @EMIT @EMPOWER @ENABLE @ENTRANCES @EUNLOCK @FIND +syntax keyword mushAtCommandList contained @FIRSTEXIT @FLAG @FORCE @FUNCTION @EDIT @GREP @HALT @HIDE @HOOK @KICK +syntax keyword mushAtCommandList contained @LEMIT @LEVEL @LINK @LIST @LISTMOTD @LOCK @LOG @LOGWIPE @LSET @MAIL @MALIAS +syntax keyword mushAtCommandList contained @MAP @MOTD @MVATTR @NAME @NEWPASSWORD @NOTIFY @NSCEMIT @NSEMIT @NSLEMIT +syntax keyword mushAtCommandList contained @NSOEMIT @NSPEMIT @NSPEMIT @NSREMIT @NSZEMIT @NUKE @OEMIT @OPEN @PARENT @PASSWORD +syntax keyword mushAtCommandList contained @PCREATE @PEMIT @POLL @POOR @POWERLEVEL @PROGRAM @PROMPT @PS @PURGE @QUOTA +syntax keyword mushAtCommandList contained @READCACHE @RECYCLE @REJECTMOTD @REMIT @RESTART @SCAN @SEARCH @SELECT @SET +syntax keyword mushAtCommandList contained @SHUTDOWN @SITELOCK @SNOOP @SQL @SQUOTA @STATS @SWITCH @SWEEP @SWITCH @TELEPORT +syntax keyword mushAtCommandList contained @TRIGGER @ULOCK @UNDESTROY @UNLINK @UNLOCK @UNRECYCLE @UPTIME @UUNLOCK @VERB +syntax keyword mushAtCommandList contained @VERSION @WAIT @WALL @WARNINGS @WCHECK @WHEREIS @WIPE @ZCLONE @ZEMIT +syntax match mushCommand "@\i\I*" contains=mushAtCommandList + + +syntax keyword mushCommand AHELP ANEWS ATTRIB_SET BRIEF BRIEF BUY CHANGES DESERT +syntax keyword mushCommand DISMISS DROP EMPTY ENTER EXAMINE FOLLOW GET GIVE GOTO +syntax keyword mushCommand HELP HUH_COMMAND INVENTORY INVENTORY LOOK LEAVE LOOK +syntax keyword mushCommand GOTO NEWS PAGE PAGE POSE RULES SAY SCORE SEMIPOSE +syntax keyword mushCommand SPECIALNEWS TAKE TEACH THINK UNFOLLOW USE WHISPER WHISPER +syntax keyword mushCommand WARN_ON_MISSING WHISPER WITH + +syntax match mushSpecial "\*\|!\|=\|-\|\\\|+" +syntax match mushSpecial2 contained "\*" + +syn region mushString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=mushSpecial,mushSpecial2,@Spell + + +syntax match mushIdentifier "&[^ ]\+" + +syntax match mushVariable "%r\|%t\|%cr\|%[A-Za-z0-9]\+\|%#\|##\|here" + +" numbers +syntax match mushNumber +[0-9]\++ + +" A comment line starts with a or # or " at the start of the line +" or an @@ +syntax keyword mushTodo contained TODO FIXME XXX +syntax cluster mushCommentGroup contains=mushTodo +syntax match mushComment "^\s*@@.*$" contains=mushTodo +syntax match mushComment "^#[^define|^ifdef|^else|^pragma|^ifndef|^echo|^elif|^undef|^warning].*$" contains=mushTodo +syntax match mushComment "^#$" contains=mushTodo +syntax region mushComment matchgroup=mushCommentStart start="/@@" end="@@/" contains=@mushCommentGroup,mushCommentStartError,mushCommentString,@Spell +syntax region mushCommentString contained start=+L\=\\\@" skip="\\$" end="$" end="//"me=s-1 contains=mushComment +syn match mushPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>" + +syn cluster mushPreProcGroup contains=mushPreCondit,mushIncluded,mushInclude,mushDefine,mushSpecial,mushString,mushCommentSkip,mushCommentString,@mushCommentGroup,mushCommentStartError + +syn region mushIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match mushIncluded display contained "<[^>]*>" +syn match mushInclude display "^\s*\(%:\|#\)\s*include\>\s*["<]" contains=mushIncluded +syn region mushDefine start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 contains=ALLBUT,@mushPreProcGroup,@Spell +syn region mushPreProc start="^\s*\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@mushPreProcGroup + + +syntax region mushFuncBoundaries start="\[" end="\]" contains=mushFunction,mushFlag,mushAttributes,mushNumber,mushCommand,mushVariable,mushSpecial2 + +" FLAGS +syntax keyword mushFlag PLAYER ABODE BUILDER CHOWN_OK DARK FLOATING +syntax keyword mushFlag GOING HAVEN INHERIT JUMP_OK KEY LINK_OK MONITOR +syntax keyword mushFlag NOSPOOF OPAQUE QUIET STICKY TRACE UNFINDABLE VISUAL +syntax keyword mushFlag WIZARD PARENT_OK ZONE AUDIBLE CONNECTED DESTROY_OK +syntax keyword mushFlag ENTER_OK HALTED IMMORTAL LIGHT MYOPIC PUPPET TERSE +syntax keyword mushFlag ROBOT SAFE TRANSPARENT VERBOSE CONTROL_OK COMMANDS + +syntax keyword mushAttribute aahear aclone aconnect adesc adfail adisconnect +syntax keyword mushAttribute adrop aefail aenter afail agfail ahear akill +syntax keyword mushAttribute aleave alfail alias amhear amove apay arfail +syntax keyword mushAttribute asucc atfail atport aufail ause away charges +syntax keyword mushAttribute cost desc dfail drop ealias efail enter fail +syntax keyword mushAttribute filter forwardlist gfail idesc idle infilter +syntax keyword mushAttribute inprefix kill lalias last lastsite leave lfail +syntax keyword mushAttribute listen move odesc odfail odrop oefail oenter +syntax keyword mushAttribute ofail ogfail okill oleave olfail omove opay +syntax keyword mushAttribute orfail osucc otfail otport oufail ouse oxenter +syntax keyword mushAttribute oxleave oxtport pay prefix reject rfail runout +syntax keyword mushAttribute semaphore sex startup succ tfail tport ufail +syntax keyword mushAttribute use va vb vc vd ve vf vg vh vi vj vk vl vm vn +syntax keyword mushAttribute vo vp vq vr vs vt vu vv vw vx vy vz + + + +" The default methods for highlighting. Can be overridden later +hi def link mushAttribute Constant +hi def link mushCommand Function +hi def link mushNumber Number +hi def link mushSetting PreProc +hi def link mushFunction Statement +hi def link mushVariable Identifier +hi def link mushSpecial Special +hi def link mushTodo Todo +hi def link mushFlag Special +hi def link mushIdentifier Identifier +hi def link mushDefine Macro +hi def link mushPreProc PreProc +hi def link mushPreProcGroup PreProc +hi def link mushPreCondit PreCondit +hi def link mushIncluded cString +hi def link mushInclude Include + + + +" Comments +hi def link mushCommentStart mushComment +hi def link mushComment Comment +hi def link mushCommentString mushString + + + +let b:current_syntax = "mush" + +" mush: ts=17 diff --git a/git/usr/share/vim/vim92/syntax/muttrc.vim b/git/usr/share/vim/vim92/syntax/muttrc.vim new file mode 100644 index 0000000000000000000000000000000000000000..34ebc4f1109ac09efea1999d41632824e81c5240 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/muttrc.vim @@ -0,0 +1,847 @@ +" Vim syntax file +" Language: Mutt setup files +" Original: Preben 'Peppe' Guldberg +" Maintainer: Luna Celeste +" Last Change: 14 Aug 2023 +" 2025 May 19 re-include missing mutt Keywords #17344 + +" This file covers mutt version 2.2.10 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" Set the keyword characters +setlocal isk=@,48-57,_,- + +" handling optional variables +if !exists("use_mutt_sidebar") + let use_mutt_sidebar=0 +endif + +syn match muttrcComment "^# .*$" contains=@Spell +syn match muttrcComment "^#[^ ].*$" +syn match muttrcComment "^#$" +syn match muttrcComment "[^\\]#.*$"lc=1 + +" Escape sequences (back-tick and pipe goes here too) +syn match muttrcEscape +\\[#tnr"'Cc ]+ +syn match muttrcEscape +[`|]+ +syn match muttrcEscape +\\$+ + +" The variables takes the following arguments +"syn match muttrcString contained "=\s*[^ #"'`]\+"lc=1 contains=muttrcEscape +syn region muttrcString contained keepend start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcCommand,muttrcAction,muttrcShellString +syn region muttrcString contained keepend start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcCommand,muttrcAction +syn match muttrcStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcString,muttrcStringNL + +syn region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarStr,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand + +syn match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1 +syn match muttrcRXChars contained /[][|()][.*?+]*/ +syn match muttrcRXChars contained /['"]^/ms=s+1 +syn match muttrcRXChars contained /$['"]/me=e-1 +syn match muttrcRXChars contained /\\/ +" Why does muttrcRXString2 work with one \ when muttrcRXString requires two? +syn region muttrcRXString contained skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars +syn region muttrcRXString contained skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars +syn region muttrcRXString contained skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXChars +" For some reason, skip refuses to match backslashes here... +syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXChars +syn region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXChars +syn region muttrcRXString2 contained skipwhite start=+'+ skip=+\'+ end=+'+ contains=muttrcRXChars +syn region muttrcRXString2 contained skipwhite start=+"+ skip=+\"+ end=+"+ contains=muttrcRXChars + +" these must be kept synchronized with muttrcRXString, but are intended for +" muttrcRXHooks +syn region muttrcRXHookString contained keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syn region muttrcRXHookString contained keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syn region muttrcRXHookString contained keepend skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syn region muttrcRXHookString contained keepend skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syn region muttrcRXHookString contained keepend matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syn match muttrcRXHookStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcRXHookString,muttrcRXHookStringNL + +" these are exclusively for args lists (e.g. -rx pat pat pat ...) +syn region muttrcRXPat contained keepend skipwhite start=+'+ skip=+\\'+ end=+'\s*+ contains=muttrcRXString nextgroup=muttrcRXPat +syn region muttrcRXPat contained keepend skipwhite start=+"+ skip=+\\"+ end=+"\s*+ contains=muttrcRXString nextgroup=muttrcRXPat +syn match muttrcRXPat contained /[^-'"#!]\S\+/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat +syn match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat + +syn match muttrcSpecial +\(['"]\)!\1+ + +syn match muttrcSetStrAssignment contained skipwhite /=\s*\%(\\\?\$\)\?[0-9A-Za-z_-]\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable +syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*"+hs=s+1 end=+"+ skip=+\\"+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString +syn region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*'+hs=s+1 end=+'+ skip=+\\'+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcString +syn match muttrcSetBoolAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable +syn match muttrcSetBoolAssignment contained skipwhite /=\s*\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetBoolAssignment contained skipwhite /=\s*"\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetBoolAssignment contained skipwhite /=\s*'\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetQuadAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable +syn match muttrcSetQuadAssignment contained skipwhite /=\s*\%(ask-\)\?\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetQuadAssignment contained skipwhite /=\s*"\%(ask-\)\?\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetQuadAssignment contained skipwhite /=\s*'\%(ask-\)\?\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetNumAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr contains=muttrcVariable,muttrcEscapedVariable +syn match muttrcSetNumAssignment contained skipwhite /=\s*\d\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetNumAssignment contained skipwhite /=\s*"\d\+"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn match muttrcSetNumAssignment contained skipwhite /=\s*'\d\+'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +" Now catch some email addresses and headers (purified version from mail.vim) +syn match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+" +syn match muttrcHeader "\<\c\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\=" + +syn match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+ +syn match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName +syn region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName +syn region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName +syn match muttrcKeyName contained "\" +syn match muttrcKeyName contained "\\[trne]" +syn match muttrcKeyName contained "\c<\%(BackSpace\|BackTab\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>" +syn match muttrcKeyName contained "" + +syn keyword muttrcVarBool skipwhite contained + \ allow_8bit allow_ansi arrow_cursor ascii_chars askbcc askcc attach_split + \ auto_tag autoedit auto_subscribe background_edit background_confirm_quit beep beep_new + \ bounce_delivered braille_friendly browser_abbreviate_mailboxes browser_sticky_cursor + \ change_folder_next check_mbox_size check_new collapse_unread compose_confirm_detach_first + \ confirmappend confirmcreate copy_decode_weed count_alternatives crypt_autoencrypt crypt_autopgp + \ crypt_autosign crypt_autosmime crypt_confirmhook crypt_protected_headers_read + \ crypt_protected_headers_save crypt_protected_headers_write crypt_opportunistic_encrypt + \ crypt_opportunistic_encrypt_strong_keys crypt_replyencrypt crypt_replysign + \ crypt_replysignencrypted crypt_timestamp crypt_use_gpgme crypt_use_pka cursor_overlay + \ delete_untag digest_collapse duplicate_threads edit_hdrs edit_headers encode_from + \ envelope_from fast_reply fcc_before_send fcc_clear flag_safe followup_to force_name forw_decode + \ forw_decrypt forw_quote forward_decode forward_quote hdrs header + \ header_color_partial help hidden_host hide_limited hide_missing hide_thread_subject + \ hide_top_limited hide_top_missing history_remove_dups honor_disposition idn_decode idn_encode + \ ignore_linear_white_space ignore_list_reply_to imap_check_subscribed imap_condstore imap_deflate + \ imap_list_subscribed imap_passive imap_peek imap_qresync imap_servernoise + \ implicit_autoview include_encrypted include_onlyfirst keep_flagged local_date_header + \ mail_check_recent mail_check_stats mailcap_sanitize maildir_check_cur + \ maildir_header_cache_verify maildir_trash mark_old markers menu_move_off + \ menu_scroll message_cache_clean meta_key metoo mh_purge mime_forward_decode + \ mime_type_query_first muttlisp_inline_eval narrow_tree pager_stop pgp_auto_decode + \ pgp_auto_traditional pgp_autoencrypt pgp_autoinline pgp_autosign + \ pgp_check_exit pgp_check_gpg_decrypt_status_fd pgp_create_traditional + \ pgp_ignore_subkeys pgp_long_ids pgp_replyencrypt pgp_replyinline + \ pgp_replysign pgp_replysignencrypted pgp_retainable_sigs pgp_self_encrypt + \ pgp_self_encrypt_as pgp_show_unusable pgp_strict_enc pgp_use_gpg_agent + \ pipe_decode pipe_decode_weed pipe_split pop_auth_try_all pop_last postpone_encrypt + \ postpone_encrypt_as print_decode print_decode_weed print_split prompt_after read_only + \ reflow_space_quotes reflow_text reflow_wrap reply_self resolve + \ resume_draft_files resume_edited_draft_files reverse_alias reverse_name + \ reverse_realname rfc2047_parameters save_address save_empty save_name score + \ sidebar_folder_indent sidebar_new_mail_only sidebar_next_new_wrap + \ sidebar_relative_shortpath_indent sidebar_short_path sidebar_sort sidebar_use_mailbox_shortcuts + \ sidebar_visible sig_on_top sig_dashes size_show_bytes size_show_fraction size_show_mb + \ size_units_on_left smart_wrap smime_ask_cert_label smime_decrypt_use_default_key + \ smime_is_default smime_self_encrypt smime_self_encrypt_as sort_re + \ ssl_force_tls ssl_use_sslv2 ssl_use_sslv3 ssl_use_tlsv1 ssl_use_tlsv1_3 ssl_usesystemcerts + \ ssl_verify_dates ssl_verify_host ssl_verify_partial_chains status_on_top + \ strict_mime strict_threads suspend text_flowed thorough_search + \ thread_received tilde ts_enabled tunnel_is_secure uncollapse_jump use_8bitmime use_domain + \ use_envelope_from use_from use_idn use_ipv6 uncollapse_new user_agent + \ wait_key weed wrap_search write_bcc + \ nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarBool skipwhite contained + \ noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc noaskcc + \ noattach_split noauto_tag noautoedit noauto_subscribe nobackground_edit + \ nobackground_confirm_quit nobeep nobeep_new nobounce_delivered + \ nobraille_friendly nobrowser_abbreviate_mailboxes nobrowser_sticky_cursor nochange_folder_next + \ nocheck_mbox_size nocheck_new nocompose_confirm_detach_first nocollapse_unread noconfirmappend + \ noconfirmcreate nocopy_decode_weed nocount_alternatives nocrypt_autoencrypt nocrypt_autopgp + \ nocrypt_autosign nocrypt_autosmime nocrypt_confirmhook nocrypt_protected_headers_read + \ nocrypt_protected_headers_save nocrypt_protected_headers_write nocrypt_opportunistic_encrypt + \ nocrypt_opportunistic_encrypt_strong_keys nocrypt_replyencrypt nocrypt_replysign + \ nocrypt_replysignencrypted nocrypt_timestamp nocrypt_use_gpgme nocrypt_use_pka nocursor_overlay + \ nodelete_untag nodigest_collapse noduplicate_threads noedit_hdrs noedit_headers + \ noencode_from noenvelope_from nofast_reply nofcc_before_send nofcc_clear noflag_safe + \ nofollowup_to noforce_name noforw_decode noforw_decrypt noforw_quote + \ noforward_decode noforward_quote nohdrs noheader + \ noheader_color_partial nohelp nohidden_host nohide_limited nohide_missing + \ nohide_thread_subject nohide_top_limited nohide_top_missing + \ nohistory_remove_dups nohonor_disposition noidn_decode noidn_encode + \ noignore_linear_white_space noignore_list_reply_to noimap_check_subscribed + \ noimap_condstore noimap_deflate noimap_list_subscribed noimap_passive noimap_peek + \ noimap_qresync noimap_servernoise noimplicit_autoview noinclude_encrypted noinclude_onlyfirst + \ nokeep_flagged nolocal_date_header nomail_check_recent nomail_check_stats nomailcap_sanitize + \ nomaildir_check_cur nomaildir_header_cache_verify nomaildir_trash nomark_old + \ nomarkers nomenu_move_off nomenu_scroll nomessage_cache_clean nometa_key + \ nometoo nomh_purge nomime_forward_decode nomime_type_query_first nomuttlisp_inline_eval + \ nonarrow_tree nopager_stop nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt + \ nopgp_autoinline nopgp_autosign nopgp_check_exit + \ nopgp_check_gpg_decrypt_status_fd nopgp_create_traditional + \ nopgp_ignore_subkeys nopgp_long_ids nopgp_replyencrypt nopgp_replyinline + \ nopgp_replysign nopgp_replysignencrypted nopgp_retainable_sigs + \ nopgp_self_encrypt nopgp_self_encrypt_as nopgp_show_unusable + \ nopgp_strict_enc nopgp_use_gpg_agent nopipe_decode nopipe_decode_weed nopipe_split + \ nopop_auth_try_all nopop_last nopostpone_encrypt nopostpone_encrypt_as + \ noprint_decode noprint_decode_weed noprint_split noprompt_after noread_only + \ noreflow_space_quotes noreflow_text noreflow_wrap noreply_self noresolve + \ noresume_draft_files noresume_edited_draft_files noreverse_alias + \ noreverse_name noreverse_realname norfc2047_parameters nosave_address + \ nosave_empty nosave_name noscore nosidebar_folder_indent + \ nosidebar_new_mail_only nosidebar_next_new_wrap nosidebar_relative_shortpath_indent + \ nosidebar_short_path nosidebar_sort nosidebar_visible nosidebar_use_mailbox_shortcuts + \ nosig_dashes nosig_on_top nosize_show_bytes nosize_show_fraction nosize_show_mb + \ nosize_units_on_left nosmart_wrap nosmime_ask_cert_label nosmime_decrypt_use_default_key + \ nosmime_is_default nosmime_self_encrypt nosmime_self_encrypt_as nosort_re nossl_force_tls + \ nossl_use_sslv2 nossl_use_sslv3 nossl_use_tlsv1 nossl_use_tlsv1_3 nossl_usesystemcerts + \ nossl_verify_dates nossl_verify_host nossl_verify_partial_chains + \ nostatus_on_top nostrict_mime nostrict_threads nosuspend notext_flowed + \ nothorough_search nothread_received notilde nots_enabled notunnel_is_secure nouncollapse_jump + \ nouse_8bitmime nouse_domain nouse_envelope_from nouse_from nouse_idn + \ nouse_ipv6 nouncollapse_new nouser_agent nowait_key noweed nowrap_search + \ nowrite_bcc + \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarBool skipwhite contained + \ invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc + \ invaskcc invattach_split invauto_tag invautoedit invauto_subscribe nobackground_edit + \ nobackground_confirm_quit invbeep invbeep_new invbounce_delivered invbraille_friendly + \ invbrowser_abbreviate_mailboxes invbrowser_sticky_cursor invchange_folder_next + \ invcheck_mbox_size invcheck_new invcollapse_unread invcompose_confirm_detach_first + \ invconfirmappend invcopy_decode_weed invconfirmcreate invcount_alternatives invcrypt_autopgp + \ invcrypt_autoencrypt invcrypt_autosign invcrypt_autosmime invcrypt_confirmhook + \ invcrypt_protected_headers_read invcrypt_protected_headers_save invcrypt_protected_headers_write + \ invcrypt_opportunistic_encrypt invcrypt_opportunistic_encrypt_strong_keys invcrypt_replysign + \ invcrypt_replyencrypt invcrypt_replysignencrypted invcrypt_timestamp invcrypt_use_gpgme + \ invcrypt_use_pka invcursor_overlay invdelete_untag invdigest_collapse invduplicate_threads + \ invedit_hdrs invedit_headers invencode_from invenvelope_from invfast_reply + \ invfcc_before_send invfcc_clear invflag_safe invfollowup_to invforce_name invforw_decode + \ invforw_decrypt invforw_quote invforward_decode + \ invforward_quote invhdrs invheader invheader_color_partial invhelp + \ invhidden_host invhide_limited invhide_missing invhide_thread_subject + \ invhide_top_limited invhide_top_missing invhistory_remove_dups + \ invhonor_disposition invidn_decode invidn_encode + \ invignore_linear_white_space invignore_list_reply_to + \ invimap_check_subscribed invimap_condstore invimap_deflate invimap_list_subscribed + \ invimap_passive invimap_peek invimap_qresync invimap_servernoise invimplicit_autoview + \ invinclude_encrypted invinclude_onlyfirst invkeep_flagged invlocal_date_header + \ invmail_check_recent invmail_check_stats invmailcap_sanitize invmaildir_check_cur + \ invmaildir_header_cache_verify invmaildir_trash invmark_old invmarkers invmenu_move_off + \ invmenu_scroll invmessage_cache_clean invmeta_key invmetoo invmh_purge + \ invmime_forward_decode invmime_type_query_first invmuttlisp_inline_eval invnarrow_tree + \ invpager_stop invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt + \ invpgp_autoinline invpgp_autosign invpgp_check_exit + \ invpgp_check_gpg_decrypt_status_fd invpgp_create_traditional + \ invpgp_ignore_subkeys invpgp_long_ids invpgp_replyencrypt invpgp_replyinline + \ invpgp_replysign invpgp_replysignencrypted invpgp_retainable_sigs + \ invpgp_self_encrypt invpgp_self_encrypt_as invpgp_show_unusable + \ invpgp_strict_enc invpgp_use_gpg_agent invpipe_decode invpipe_decode_weed invpipe_split + \ invpop_auth_try_all invpop_last invpostpone_encrypt invpostpone_encrypt_as + \ invprint_decode invprint_decode_weed invprint_split invprompt_after invread_only + \ invreflow_space_quotes invreflow_text invreflow_wrap invreply_self invresolve + \ invresume_draft_files invresume_edited_draft_files invreverse_alias + \ invreverse_name invreverse_realname invrfc2047_parameters invsave_address + \ invsave_empty invsave_name invscore invsidebar_folder_indent + \ invsidebar_new_mail_only invsidebar_next_new_wrap invsidebar_relative_shortpath_indent + \ invsidebar_short_path invsidebar_sort sidebar_use_mailbox_shortcuts invsidebar_visible + \ invsig_dashes invsig_on_top invsize_show_bytes invsize_show_fraction invsize_show_mb + \ invsize_units_on_left invsmart_wrap invsmime_ask_cert_label invsmime_decrypt_use_default_key + \ invsmime_is_default invsmime_self_encrypt invsmime_self_encrypt_as invsort_re invssl_force_tls + \ invssl_use_sslv2 invssl_use_sslv3 invssl_use_tlsv1 invssl_use_tlsv1_3 invssl_usesystemcerts + \ invssl_verify_dates invssl_verify_host invssl_verify_partial_chains + \ invstatus_on_top invstrict_mime invstrict_threads invsuspend invtext_flowed + \ invthorough_search invthread_received invtilde invts_enabled invtunnel_is_secure + \ invuncollapse_jump invuse_8bitmime invuse_domain invuse_envelope_from + \ invuse_from invuse_idn invuse_ipv6 invuncollapse_new invuser_agent + \ invwait_key invweed invwrap_search invwrite_bcc + \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarQuad skipwhite contained + \ abort_nosubject abort_unmodified abort_noattach bounce copy crypt_verify_sig + \ delete fcc_attach forward_attachments forward_decrypt forward_edit honor_followup_to include + \ mime_forward mime_forward_rest mime_fwd move pgp_mime_auto pgp_verify_sig pop_delete + \ pop_reconnect postpone print quit recall reply_to send_multipart_alternative ssl_starttls + \ nextgroup=muttrcSetQuadAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarQuad skipwhite contained + \ noabort_nosubject noabort_unmodified noabort_noattach nobounce nocopy + \ nocrypt_verify_sig nodelete nofcc_attach noforward_attachments noforward_decrypt noforward_edit + \ nohonor_followup_to noinclude nomime_forward nomime_forward_rest nomime_fwd nomove + \ nopgp_mime_auto nopgp_verify_sig nopop_delete nopop_reconnect nopostpone + \ noprint noquit norecall noreply_to nosend_multipart_alternative nossl_starttls + \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarQuad skipwhite contained + \ invabort_nosubject invabort_unmodified invabort_noattach invbounce invcopy + \ invcrypt_verify_sig invdelete invfcc_attach invforward_attachments invforward_decrypt + \ invforward_edit invhonor_followup_to invinclude invmime_forward invmime_forward_rest + \ invmime_fwd invmove invpgp_mime_auto invpgp_verify_sig invpop_delete + \ invpop_reconnect invpostpone invprint invquit invrecall invreply_to + \ invsend_multipart_alternative invssl_starttls + \ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcVarNum skipwhite contained + \ connect_timeout error_history history imap_fetch_chunk_size imap_keepalive imap_pipeline_depth + \ imap_poll_timeout mail_check mail_check_stats_interval menu_context net_inc + \ pager_context pager_index_lines pager_skip_quoted_context pgp_timeout pop_checkinterval read_inc + \ save_history score_threshold_delete score_threshold_flag + \ score_threshold_read search_context sendmail_wait sidebar_width sleep_time + \ smime_timeout ssl_min_dh_prime_bits time_inc timeout wrap wrap_headers + \ wrapmargin write_inc + \ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn match muttrcFormatErrors contained /%./ + +syn match muttrcStrftimeEscapes contained /%[AaBbCcDdeFGgHhIjklMmnpRrSsTtUuVvWwXxYyZz+%]/ +syn match muttrcStrftimeEscapes contained /%E[cCxXyY]/ +syn match muttrcStrftimeEscapes contained /%O[BdeHImMSuUVwWy]/ + +syn region muttrcIndexFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcIndexFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcQueryFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcAliasFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcAliasFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAliasFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcAttachFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcAttachFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcComposeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcComposeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcComposeFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcFolderFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcFolderFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcMixFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcMixFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcMixFormatEscapes,muttrcMixFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPFormatEscapes,muttrcPGPFormatConditionals,muttrcFormatErrors,muttrcPGPTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPCmdFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPCmdFormatEscapes,muttrcPGPCmdFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcStatusFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcStatusFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcPGPGetKeysFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPGPGetKeysFormatEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcSmimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcSmimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSmimeFormatEscapes,muttrcSmimeFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn region muttrcStrftimeFormatStr contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +" The following info was pulled from hdr_format_str in hdrline.c +syn match muttrcIndexFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[aAbBcCdDeEfFHilLmMnNOPsStTuvXyYZ%]/ +syn match muttrcIndexFormatEscapes contained /%[>|*]./ +syn match muttrcIndexFormatConditionals contained /%?[EFHlLMNOXyY]?/ nextgroup=muttrcFormatConditionals2 +" The following info was pulled from alias_format_str in addrbook.c +syn match muttrcAliasFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[afnrt%]/ +" The following info was pulled from query_format_str in query.c +syn match muttrcQueryFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[acent%]/ +syn match muttrcQueryFormatConditionals contained /%?[e]?/ nextgroup=muttrcFormatConditionals2 +" The following info was pulled from mutt_attach_fmt in recvattach.c +syn match muttrcAttachFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CcDdeFfImMnQstTuX%]/ +syn match muttrcAttachFormatEscapes contained /%[>|*]./ +syn match muttrcAttachFormatConditionals contained /%?[CcdDefInmMQstTuX]?/ nextgroup=muttrcFormatConditionals2 +syn match muttrcFormatConditionals2 contained /[^?]*?/ +" The following info was pulled from compose_format_str in compose.c +syn match muttrcComposeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ahlv%]/ +syn match muttrcComposeFormatEscapes contained /%[>|*]./ +" The following info was pulled from folder_format_str in browser.c +syn match muttrcFolderFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CDdfFglNstu%]/ +syn match muttrcFolderFormatEscapes contained /%[>|*]./ +syn match muttrcFolderFormatConditionals contained /%?[N]?/ +" The following info was pulled from mix_entry_fmt in remailer.c +syn match muttrcMixFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[ncsa%]/ +syn match muttrcMixFormatConditionals contained /%?[ncsa]?/ +" The following info was pulled from crypt_entry_fmt in crypt-gpgme.c +" and pgp_entry_fmt in pgpkey.c (note that crypt_entry_fmt supports +" 'p', but pgp_entry_fmt does not). +syn match muttrcPGPFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[nkualfctp%]/ +syn match muttrcPGPFormatConditionals contained /%?[nkualfct]?/ +" The following info was pulled from _mutt_fmt_pgp_command in +" pgpinvoke.c +syn match muttrcPGPCmdFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[pfsar%]/ +syn match muttrcPGPCmdFormatConditionals contained /%?[pfsar]?/ nextgroup=muttrcFormatConditionals2 +" The following info was pulled from status_format_str in status.c +syn match muttrcStatusFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[bdfFhlLmMnopPRrsStuvV%]/ +syn match muttrcStatusFormatEscapes contained /%[>|*]./ +syn match muttrcStatusFormatConditionals contained /%?[bdFlLmMnoptuV]?/ nextgroup=muttrcFormatConditionals2 +" This matches the documentation, but directly contradicts the code +" (according to the code, this should be identical to the +" muttrcPGPCmdFormatEscapes +syn match muttrcPGPGetKeysFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[r%]/ +" The following info was pulled from _mutt_fmt_smime_command in +" smime.c +syn match muttrcSmimeFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[Cciskaf%]/ +syn match muttrcSmimeFormatConditionals contained /%?[Cciskaf]?/ nextgroup=muttrcFormatConditionals2 + +syn region muttrcTimeEscapes contained start=+%{+ end=+}+ contains=muttrcStrftimeEscapes +syn region muttrcTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes +syn region muttrcTimeEscapes contained start=+%(+ end=+)+ contains=muttrcStrftimeEscapes +syn region muttrcTimeEscapes contained start=+%<+ end=+>+ contains=muttrcStrftimeEscapes +syn region muttrcPGPTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes + +syn keyword muttrcVarStr contained skipwhite attribution index_format message_format pager_format nextgroup=muttrcVarEqualsIdxFmt +syn match muttrcVarEqualsIdxFmt contained skipwhite "=" nextgroup=muttrcIndexFormatStr +syn keyword muttrcVarStr contained skipwhite alias_format nextgroup=muttrcVarEqualsAliasFmt +syn match muttrcVarEqualsAliasFmt contained skipwhite "=" nextgroup=muttrcAliasFormatStr +syn keyword muttrcVarStr contained skipwhite attach_format nextgroup=muttrcVarEqualsAttachFmt +syn match muttrcVarEqualsAttachFmt contained skipwhite "=" nextgroup=muttrcAttachFormatStr +syn keyword muttrcVarStr contained skipwhite background_format nextgroup=muttrcVarEqualsBackgroundFormatFmt +syn match muttrcVarEqualsBackgroundFormatFmt contained skipwhite "=" nextgroup=muttrcBackgroundFormatStr +syn keyword muttrcVarStr contained skipwhite compose_format nextgroup=muttrcVarEqualsComposeFmt +syn match muttrcVarEqualsComposeFmt contained skipwhite "=" nextgroup=muttrcComposeFormatStr +syn keyword muttrcVarStr contained skipwhite folder_format nextgroup=muttrcVarEqualsFolderFmt +syn match muttrcVarEqualsFolderFmt contained skipwhite "=" nextgroup=muttrcFolderFormatStr +syn keyword muttrcVarStr contained skipwhite message_id_format nextgroup=muttrcVarEqualsMessageIdFmt +syn match muttrcVarEqualsMessageIdFmt contained skipwhite "=" nextgroup=muttrcMessageIdFormatStr +syn keyword muttrcVarStr contained skipwhite mix_entry_format nextgroup=muttrcVarEqualsMixFmt +syn match muttrcVarEqualsMixFmt contained skipwhite "=" nextgroup=muttrcMixFormatStr +syn keyword muttrcVarStr contained skipwhite pgp_entry_format nextgroup=muttrcVarEqualsPGPFmt +syn match muttrcVarEqualsPGPFmt contained skipwhite "=" nextgroup=muttrcPGPFormatStr +syn keyword muttrcVarStr contained skipwhite query_format nextgroup=muttrcVarEqualsQueryFmt +syn match muttrcVarEqualsQueryFmt contained skipwhite "=" nextgroup=muttrcQueryFormatStr +syn keyword muttrcVarStr contained skipwhite pgp_decode_command pgp_verify_command pgp_decrypt_command pgp_clearsign_command pgp_sign_command pgp_encrypt_sign_command pgp_encrypt_only_command pgp_import_command pgp_export_command pgp_verify_key_command pgp_list_secring_command pgp_list_pubring_command nextgroup=muttrcVarEqualsPGPCmdFmt +syn match muttrcVarEqualsPGPCmdFmt contained skipwhite "=" nextgroup=muttrcPGPCmdFormatStr +syn keyword muttrcVarStr contained skipwhite ts_icon_format ts_status_format status_format nextgroup=muttrcVarEqualsStatusFmt +syn match muttrcVarEqualsStatusFmt contained skipwhite "=" nextgroup=muttrcStatusFormatStr +syn keyword muttrcVarStr contained skipwhite pgp_getkeys_command nextgroup=muttrcVarEqualsPGPGetKeysFmt +syn match muttrcVarEqualsPGPGetKeysFmt contained skipwhite "=" nextgroup=muttrcPGPGetKeysFormatStr +syn keyword muttrcVarStr contained skipwhite smime_decrypt_command smime_verify_command smime_verify_opaque_command smime_sign_command smime_sign_opaque_command smime_encrypt_command smime_pk7out_command smime_get_cert_command smime_get_signer_cert_command smime_import_cert_command smime_get_cert_email_command nextgroup=muttrcVarEqualsSmimeFmt +syn match muttrcVarEqualsSmimeFmt contained skipwhite "=" nextgroup=muttrcSmimeFormatStr +syn keyword muttrcVarStr contained skipwhite date_format nextgroup=muttrcVarEqualsStrftimeFmt +syn match muttrcVarEqualsStrftimeFmt contained skipwhite "=" nextgroup=muttrcStrftimeFormatStr + +syn match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn match muttrcVarStr contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn keyword muttrcVarStr contained skipwhite + \ abort_noattach_regexp alias_file assumed_charset attach_charset attach_save_dir attach_sep + \ attribution_locale certificate_file charset config_charset content_type + \ crypt_protected_headers_subject default_hook display_filter dotlock_program dsn_notify + \ dsn_return editor entropy_file envelope_from_address escape fcc_delimiter folder forw_format + \ forward_attribution_intro forward_attribution_trailer forward_format from gecos_mask + \ hdr_format header_cache header_cache_compress header_cache_pagesize history_file + \ hostname imap_authenticators imap_delim_chars imap_headers imap_idle imap_login + \ imap_oauth_refresh_command imap_pass imap_user indent_str indent_string ispell locale + \ mailcap_path mark_macro_prefix mask mbox mbox_type message_cachedir mh_seq_flagged + \ mh_seq_replied mh_seq_unseen mime_type_query_command mixmaster msg_format new_mail_command + \ pager pgp_default_key pgp_decryption_okay pgp_good_sign pgp_mime_signature_description + \ pgp_mime_signature_filename pgp_sign_as pgp_sort_keys pipe_sep pop_authenticators + \ pop_host pop_oauth_refresh_command pop_pass pop_user post_indent_str post_indent_string + \ postpone_encrypt_as postponed preconnect print_cmd print_command query_command + \ quote_regexp realname record reply_regexp send_charset send_multipart_alternative_filter + \ sendmail shell sidebar_delim + \ sidebar_delim_chars sidebar_divider_char sidebar_format sidebar_indent_string + \ sidebar_sort_method signature simple_search smileys smime_ca_location smime_certificates + \ smime_default_key smime_encrypt_with smime_keys smime_sign_as smime_sign_digest_alg + \ smtp_authenticators smtp_oauth_refresh_command smtp_pass smtp_url sort sort_alias + \ sort_aux sort_browser sort_thread_groups spam_separator spoolfile ssl_ca_certificates_file + \ ssl_ciphers ssl_client_cert ssl_verify_host_override status_chars tmpdir to_chars trash + \ ts_icon_format ts_status_format tunnel visual + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +" Present in 1.4.2.1 (pgp_create_traditional was a bool then) +syn keyword muttrcVarBool contained skipwhite imap_force_ssl noimap_force_ssl invimap_force_ssl nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +"syn keyword muttrcVarQuad contained pgp_create_traditional nopgp_create_traditional invpgp_create_traditional +syn keyword muttrcVarStr contained skipwhite alternates nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +syn keyword muttrcMenu contained alias attach browser compose editor index pager postpone pgp mix query generic +syn match muttrcMenuList "\S\+" contained contains=muttrcMenu +syn match muttrcMenuCommas /,/ contained + +syn keyword muttrcHooks contained skipwhite account-hook charset-hook iconv-hook index-format-hook message-hook folder-hook mbox-hook save-hook fcc-hook fcc-save-hook send-hook send2-hook reply-hook crypt-hook + +syn keyword muttrcCommand skipwhite + \ alternative_order auto_view cd exec hdr_order iconv-hook ignore index-format-hook mailboxes + \ mailto_allow mime_lookup my_hdr pgp-hook push run score sidebar_whitelist source + \ unalternative_order unalternative_order unauto_view ungroup unhdr_order + \ unignore unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore + \ unsidebar_whitelist +syn keyword muttrcCommand skipwhite charset-hook nextgroup=muttrcRXString +syn keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks + +syn keyword muttrcCommand skipwhite spam nextgroup=muttrcSpamPattern +syn region muttrcSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL +syn region muttrcSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL + +syn keyword muttrcCommand skipwhite nospam nextgroup=muttrcNoSpamPattern +syn region muttrcNoSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern +syn region muttrcNoSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern + +syn match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType +syn match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType +syn match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag + +syn match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)" + +syn keyword muttrcAsterisk contained * +syn keyword muttrcListsKeyword lists skipwhite nextgroup=muttrcGroupDef,muttrcComment +syn keyword muttrcListsKeyword unlists skipwhite nextgroup=muttrcAsterisk,muttrcComment + +syn keyword muttrcSubscribeKeyword subscribe nextgroup=muttrcGroupDef,muttrcComment +syn keyword muttrcSubscribeKeyword unsubscribe nextgroup=muttrcAsterisk,muttrcComment + +syn keyword muttrcAlternateKeyword contained alternates unalternates +syn region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment + +" muttrcVariable includes a prefix because partial strings are considered +" valid. +syn match muttrcVariable contained "\\\@]\+" contains=muttrcEmail +syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|mark\|parent\|pipe\|postpone\|print\|purge\|recall\|resend\|root\|save\|send\|tag\|undelete\)-message\>" +syn match muttrcFunction contained "\<\%(delete\|next\|previous\|read\|tag\|break\|undelete\)-thread\>" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\<\%(backward\|capitalize\|downcase\|forward\|kill\|upcase\)-word\>" +syn match muttrcFunction contained "\<\%(delete\|filter\|first\|last\|next\|pipe\|previous\|print\|save\|select\|tag\|undelete\)-entry\>" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\<\%(un\)\?setenv\>" +syn match muttrcFunction contained "\" +syn match muttrcFunction contained "\<\%(backspace\|backward-char\|bol\|bottom\|bottom-page\|buffy-cycle\|check-stats\|clear-flag\|complete\%(-query\)\?\|compose-to-sender\|copy-file\|create-alias\|detach-file\|eol\|exit\|extract-keys\|\%(imap-\)\?fetch-mail\|forget-passphrase\|forward-char\|group-reply\|help\|ispell\|jump\|limit\|list-action\|list-reply\|mail\|mail-key\|mark-as-new\|middle-page\|new-mime\|noop\|pgp-menu\|query\|query-append\|quit\|quote-char\|read-subthread\|redraw-screen\|refresh\|rename-file\|reply\|select-new\|set-flag\|shell-escape\|skip-headers\|skip-quoted\|sort\|subscribe\|sync-mailbox\|top\|top-page\|transpose-chars\|unsubscribe\|untag-pattern\|verify-key\|what-key\|write-fcc\)\>" +syn keyword muttrcFunction contained imap-logout-all +if use_mutt_sidebar == 1 + syn match muttrcFunction contained "\]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName + +syn keyword muttrcCommand set skipwhite nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn keyword muttrcCommand unset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn keyword muttrcCommand reset skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr +syn keyword muttrcCommand toggle skipwhite nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr + +" First, functions that take regular expressions: +syn match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL +syn match muttrcRXHooks /\<\%(account\|folder\)-hook\>/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL + +" Now, functions that take patterns +syn match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern +syn match muttrcPatHooks /\<\%(mbox\|crypt\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcPattern +syn match muttrcPatHooks /\<\%(message\|reply\|send\|send2\|save\|\|fcc\%(-save\)\?\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcOptPattern + +syn match muttrcIndexFormatHookName contained /\S\+/ skipwhite nextgroup=muttrcPattern,muttrcString +syn match muttrcIndexFormatHook /index-format-hook/ skipwhite nextgroup=muttrcIndexFormatHookName,muttrcString + +syn match muttrcBindFunction contained /\S\+\>/ skipwhite contains=muttrcFunction +syn match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL +syn match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL +syn match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL +syn match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL +syn match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL +syn keyword muttrcCommand skipwhite bind nextgroup=muttrcBindMenuList,muttrcBindMenuListNL + +syn region muttrcMacroDescr contained keepend skipwhite start=+\s*\S+ms=e skip=+\\ + end=+ \|$+me=s +syn region muttrcMacroDescr contained keepend skipwhite start=+'+ms=e skip=+\\'+ end=+'+me=s +syn region muttrcMacroDescr contained keepend skipwhite start=+"+ms=e skip=+\\"+ end=+"+me=s +syn match muttrcMacroDescrNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroDescr,muttrcMacroDescrNL +syn region muttrcMacroBody contained skipwhite start="\S" skip='\\ \|\\$' end=' \|$' contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcCommand,muttrcAction nextgroup=muttrcMacroDescr,muttrcMacroDescrNL +syn region muttrcMacroBody matchgroup=Type contained skipwhite start=+'+ms=e skip=+\\'+ end=+'\|\%(\%(\\\\\)\@]\+>/ contains=muttrcEmail nextgroup=muttrcAliasComma +syn match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL +syn match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL +syn region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite +syn match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL +syn match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL +syn match muttrcAliasKey contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL +syn match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL +syn keyword muttrcCommand skipwhite alias nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL + +syn match muttrcUnAliasKey contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasKey,muttrcUnAliasNL +syn match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasKey,muttrcUnAliasNL +syn keyword muttrcCommand skipwhite unalias nextgroup=muttrcUnAliasKey,muttrcUnAliasNL + +syn match muttrcSimplePat contained "!\?\^\?[~][ADEFgGklNOpPQRSTuUvV=$]" +syn match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s*\%([<>-][0-9]\+[kM]\?\|[0-9]\+[kM]\?[-]\%([0-9]\+[kM]\?\)\?\)" +syn match muttrcSimplePat contained "!\?\^\?[~][dr]\s*\%(\%(-\?[0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)\|\%(\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)-\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)\?\)\?\)\|\%([<>=][0-9]\+[ymwd]\)\|\%(`[^`]\+`\)\|\%(\$[a-zA-Z0-9_-]\+\)\)" contains=muttrcShellString,muttrcVariable +syn match muttrcSimplePat contained "!\?\^\?[~][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatRXContainer +syn match muttrcSimplePat contained "!\?\^\?[%][bBcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString +syn match muttrcSimplePat contained "!\?\^\?[=][bcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString +syn region muttrcSimplePat contained keepend start=+!\?\^\?[~](+ end=+)+ contains=muttrcSimplePat +"syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXString +syn region muttrcSimplePatString contained keepend start=+"+ end=+"+ skip=+\\"+ +syn region muttrcSimplePatString contained keepend start=+'+ end=+'+ skip=+\\'+ +syn region muttrcSimplePatString contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 +syn region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXString +syn region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXString +syn region muttrcSimplePatRXContainer contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 contains=muttrcRXString +syn match muttrcSimplePatMetas contained /[(|)]/ + +syn match muttrcOptSimplePat contained skipwhite /[~=%!(^].*/ contains=muttrcSimplePat,muttrcSimplePatMetas +syn match muttrcOptSimplePat contained skipwhite /[^~=%!(^].*/ contains=muttrcRXString +syn region muttrcOptPattern contained matchgroup=Type keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL +syn region muttrcOptPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL +syn region muttrcOptPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL +syn match muttrcOptPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL +syn match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,muttrcStringNL +" Keep muttrcPattern and muttrcOptPattern synchronized +syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syn region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat +syn region muttrcPattern contained keepend skipwhite start=+[~][<>](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat +syn match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat +syn match muttrcPattern contained skipwhite /[.]/ +syn region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syn region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas + +" Colour definitions takes object, foreground and background arguments (regexps excluded). +syn match muttrcColorMatchCount contained "[0-9]\+" +syn match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syn region muttrcColorRXPat contained start=+\s*'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syn region muttrcColorRXPat contained start=+\s*"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syn keyword muttrcColorField skipwhite contained + \ attachment body bold error hdrdefault header index indicator markers message + \ normal prompt quoted search sidebar-divider sidebar-flagged sidebar-highlight + \ sidebar-indicator sidebar-new sidebar-spoolfile signature status tilde tree + \ underline +syn match muttrcColorField contained "\" +if use_mutt_sidebar == 1 + syn keyword muttrcColorField contained sidebar_new +endif +syn keyword muttrcColor contained black blue cyan default green magenta red white yellow +syn keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow +syn match muttrcColor contained "\<\%(bright\)\=color\d\{1,3}\>" +" Now for the structure of the color line +syn match muttrcColorRXNL contained skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL +syn match muttrcColorBG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL +syn match muttrcColorBGNL contained skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL +syn match muttrcColorFG contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL +syn match muttrcColorFGNL contained skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL +syn match muttrcColorContext contained /\s*[$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorFG,muttrcColorFGNL +syn match muttrcColorNL contained skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL +syn match muttrcColorKeyword contained /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL +syn region muttrcColorLine keepend start=/^\s*color\s\+\%(index\|header\)\@!/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace +" Now for the structure of the color index line +syn match muttrcPatternNL contained skipnl "\s*\\$" nextgroup=muttrcPattern,muttrcPatternNL +syn match muttrcColorBGI contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcPattern,muttrcPatternNL +syn match muttrcColorBGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorBGI,muttrcColorBGNLI +syn match muttrcColorFGI contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGI,muttrcColorBGNLI +syn match muttrcColorFGNLI contained skipnl "\s*\\$" nextgroup=muttrcColorFGI,muttrcColorFGNLI +syn match muttrcColorContextI contained /\s*\/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGI,muttrcColorFGNLI +syn match muttrcColorNLI contained skipnl "\s*\\$" nextgroup=muttrcColorContextI,muttrcColorNLI +syn match muttrcColorKeywordI contained skipwhite /\/ nextgroup=muttrcColorContextI,muttrcColorNLI +syn region muttrcColorLine keepend skipwhite start=/\/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordI,muttrcComment,muttrcUnHighlightSpace +" Now for the structure of the color header line +syn match muttrcRXPatternNL contained skipnl "\s*\\$" nextgroup=muttrcRXString,muttrcRXPatternNL +syn match muttrcColorBGH contained /\s*[$]\?\w\+\s*/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcRXString,muttrcRXPatternNL +syn match muttrcColorBGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorBGH,muttrcColorBGNLH +syn match muttrcColorFGH contained /\s*[$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBGH,muttrcColorBGNLH +syn match muttrcColorFGNLH contained skipnl "\s*\\$" nextgroup=muttrcColorFGH,muttrcColorFGNLH +syn match muttrcColorContextH contained /\s*\/ contains=muttrcUnHighlightSpace nextgroup=muttrcColorFGH,muttrcColorFGNLH +syn match muttrcColorNLH contained skipnl "\s*\\$" nextgroup=muttrcColorContextH,muttrcColorNLH +syn match muttrcColorKeywordH contained skipwhite /\/ nextgroup=muttrcColorContextH,muttrcColorNLH +syn region muttrcColorLine keepend skipwhite start=/\/ skip=+\\$+ end=+$+ contains=muttrcColorKeywordH,muttrcComment,muttrcUnHighlightSpace +" And now color's brother: +syn region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syn region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syn match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syn match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syn match muttrcUnColorAll contained skipwhite /[*]/ +syn match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL +syn match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL +syn match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL +syn match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL +syn region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace + +" Mono are almost like color (ojects inherited from color) +syn keyword muttrcMonoAttrib contained bold none normal reverse standout underline +syn keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField +syn match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link muttrcComment Comment +hi def link muttrcEscape SpecialChar +hi def link muttrcRXChars SpecialChar +hi def link muttrcString String +hi def link muttrcRXString String +hi def link muttrcRXString2 String +hi def link muttrcSpecial Special +hi def link muttrcHooks Type +hi def link muttrcGroupFlag Type +hi def link muttrcGroupDef Macro +hi def link muttrcAddrDef muttrcGroupFlag +hi def link muttrcRXDef muttrcGroupFlag +hi def link muttrcRXPat String +hi def link muttrcAliasGroupName Macro +hi def link muttrcAliasKey Identifier +hi def link muttrcUnAliasKey Identifier +hi def link muttrcAliasEncEmail Identifier +hi def link muttrcAliasParens Type +hi def link muttrcSetNumAssignment Number +hi def link muttrcSetBoolAssignment Boolean +hi def link muttrcSetQuadAssignment Boolean +hi def link muttrcSetStrAssignment String +hi def link muttrcEmail Special +hi def link muttrcVariableInner Special +hi def link muttrcEscapedVariable String +hi def link muttrcHeader Type +hi def link muttrcKeySpecial SpecialChar +hi def link muttrcKey Type +hi def link muttrcKeyName SpecialChar +hi def link muttrcVarBool Identifier +hi def link muttrcVarQuad Identifier +hi def link muttrcVarNum Identifier +hi def link muttrcVarStr Identifier +hi def link muttrcMenu Identifier +hi def link muttrcCommand Keyword +hi def link muttrcMacroDescr String +hi def link muttrcAction Macro +hi def link muttrcBadAction Error +hi def link muttrcBindFunction Error +hi def link muttrcBindMenuList Error +hi def link muttrcFunction Macro +hi def link muttrcGroupKeyword muttrcCommand +hi def link muttrcGroupLine Error +hi def link muttrcSubscribeKeyword muttrcCommand +hi def link muttrcSubscribeLine Error +hi def link muttrcListsKeyword muttrcCommand +hi def link muttrcListsLine Error +hi def link muttrcAlternateKeyword muttrcCommand +hi def link muttrcAlternatesLine Error +hi def link muttrcAttachmentsLine muttrcCommand +hi def link muttrcAttachmentsFlag Type +hi def link muttrcAttachmentsMimeType String +hi def link muttrcColorLine Error +hi def link muttrcColorContext Error +hi def link muttrcColorContextI Identifier +hi def link muttrcColorContextH Identifier +hi def link muttrcColorKeyword muttrcCommand +hi def link muttrcColorKeywordI muttrcColorKeyword +hi def link muttrcColorKeywordH muttrcColorKeyword +hi def link muttrcColorField Identifier +hi def link muttrcColor Type +hi def link muttrcColorFG Error +hi def link muttrcColorFGI Error +hi def link muttrcColorFGH Error +hi def link muttrcColorBG Error +hi def link muttrcColorBGI Error +hi def link muttrcColorBGH Error +hi def link muttrcMonoAttrib muttrcColor +hi def link muttrcMono muttrcCommand +hi def link muttrcSimplePat Identifier +hi def link muttrcSimplePatString Macro +hi def link muttrcSimplePatMetas Special +hi def link muttrcPattern Error +hi def link muttrcUnColorLine Error +hi def link muttrcUnColorKeyword muttrcCommand +hi def link muttrcUnColorIndex Identifier +hi def link muttrcShellString muttrcEscape +hi def link muttrcRXHooks muttrcCommand +hi def link muttrcRXHookNot Type +hi def link muttrcPatHooks muttrcCommand +hi def link muttrcIndexFormatHookName muttrcCommand +hi def link muttrcIndexFormatHook muttrcCommand +hi def link muttrcPatHookNot Type +hi def link muttrcFormatConditionals2 Type +hi def link muttrcIndexFormatStr muttrcString +hi def link muttrcIndexFormatEscapes muttrcEscape +hi def link muttrcIndexFormatConditionals muttrcFormatConditionals2 +hi def link muttrcAliasFormatStr muttrcString +hi def link muttrcAliasFormatEscapes muttrcEscape +hi def link muttrcAttachFormatStr muttrcString +hi def link muttrcAttachFormatEscapes muttrcEscape +hi def link muttrcAttachFormatConditionals muttrcFormatConditionals2 +hi def link muttrcBackgroundFormatStr muttrcString +hi def link muttrcComposeFormatStr muttrcString +hi def link muttrcComposeFormatEscapes muttrcEscape +hi def link muttrcFolderFormatStr muttrcString +hi def link muttrcFolderFormatEscapes muttrcEscape +hi def link muttrcFolderFormatConditionals muttrcFormatConditionals2 +hi def link muttrcMessageIdFormatStr muttrcString +hi def link muttrcMixFormatStr muttrcString +hi def link muttrcMixFormatEscapes muttrcEscape +hi def link muttrcMixFormatConditionals muttrcFormatConditionals2 +hi def link muttrcPGPFormatStr muttrcString +hi def link muttrcPGPFormatEscapes muttrcEscape +hi def link muttrcPGPFormatConditionals muttrcFormatConditionals2 +hi def link muttrcPGPCmdFormatStr muttrcString +hi def link muttrcPGPCmdFormatEscapes muttrcEscape +hi def link muttrcPGPCmdFormatConditionals muttrcFormatConditionals2 +hi def link muttrcStatusFormatStr muttrcString +hi def link muttrcStatusFormatEscapes muttrcEscape +hi def link muttrcStatusFormatConditionals muttrcFormatConditionals2 +hi def link muttrcPGPGetKeysFormatStr muttrcString +hi def link muttrcPGPGetKeysFormatEscapes muttrcEscape +hi def link muttrcSmimeFormatStr muttrcString +hi def link muttrcSmimeFormatEscapes muttrcEscape +hi def link muttrcSmimeFormatConditionals muttrcFormatConditionals2 +hi def link muttrcTimeEscapes muttrcEscape +hi def link muttrcPGPTimeEscapes muttrcEscape +hi def link muttrcStrftimeEscapes Type +hi def link muttrcStrftimeFormatStr muttrcString +hi def link muttrcBindMenuListNL SpecialChar +hi def link muttrcMacroDescrNL SpecialChar +hi def link muttrcMacroBodyNL SpecialChar +hi def link muttrcMacroKeyNL SpecialChar +hi def link muttrcMacroMenuListNL SpecialChar +hi def link muttrcColorMatchCountNL SpecialChar +hi def link muttrcColorNL SpecialChar +hi def link muttrcColorRXNL SpecialChar +hi def link muttrcColorBGNL SpecialChar +hi def link muttrcColorFGNL SpecialChar +hi def link muttrcAliasNameNL SpecialChar +hi def link muttrcAliasENNL SpecialChar +hi def link muttrcAliasNL SpecialChar +hi def link muttrcUnAliasNL SpecialChar +hi def link muttrcAliasGroupDefNL SpecialChar +hi def link muttrcAliasEncEmailNL SpecialChar +hi def link muttrcPatternNL SpecialChar +hi def link muttrcUnColorPatNL SpecialChar +hi def link muttrcUnColorAPNL SpecialChar +hi def link muttrcUnColorIndexNL SpecialChar +hi def link muttrcStringNL SpecialChar + + +let b:current_syntax = "muttrc" + +let &cpo = s:cpo_save +unlet s:cpo_save +"EOF vim: ts=8 noet tw=100 sw=8 sts=0 ft=vim diff --git a/git/usr/share/vim/vim92/syntax/mysql.vim b/git/usr/share/vim/vim92/syntax/mysql.vim new file mode 100644 index 0000000000000000000000000000000000000000..49b53313c90d805a68a24de43d3034447510bf16 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/mysql.vim @@ -0,0 +1,312 @@ +" Vim syntax file +" Language: mysql +" Maintainer: Kenneth J. Pronovici +" Filenames: *.mysql +" URL: ftp://cedar-solutions.com/software/mysql.vim (https://github.com/pronovic/vim-syntax/blob/master/mysql.vim) +" Note: The definitions below are taken from the mysql user manual as of April 2002, for version 3.23 and have been updated +" in July 2024 with the docs for version 8.4 +" Last Change: 2016 Apr 11 +" 2024-07-21: update MySQL functions as of MySQL 8.4 (by Vim Project) +" + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Always ignore case +syn case ignore + +" General keywords which don't fall into other categories +syn keyword mysqlKeyword action add after aggregate all alter as asc auto_increment avg_row_length +syn keyword mysqlKeyword both by +syn keyword mysqlKeyword cascade change character check checksum column columns comment constraint create cross +syn keyword mysqlKeyword current_date current_time current_timestamp +syn keyword mysqlKeyword data database databases day day_hour day_minute day_second +syn keyword mysqlKeyword default delayed delay_key_write delete desc describe distinct distinctrow drop +syn keyword mysqlKeyword enclosed escape escaped explain +syn keyword mysqlKeyword fields file first flush for foreign from full function +syn keyword mysqlKeyword global grant grants group +syn keyword mysqlKeyword having heap high_priority hosts hour hour_minute hour_second +syn keyword mysqlKeyword identified ignore index infile inner insert insert_id into isam +syn keyword mysqlKeyword join +syn keyword mysqlKeyword key keys kill last_insert_id leading left limit lines load local lock logs long +syn keyword mysqlKeyword low_priority +syn keyword mysqlKeyword match max_rows middleint min_rows minute minute_second modify month myisam +syn keyword mysqlKeyword natural no +syn keyword mysqlKeyword on optimize option optionally order outer outfile +syn keyword mysqlKeyword pack_keys partial password primary privileges procedure process processlist +syn keyword mysqlKeyword read references reload rename replace restrict returns revoke right row rows +syn keyword mysqlKeyword second select show shutdown soname sql_big_result sql_big_selects sql_big_tables sql_log_off +syn keyword mysqlKeyword sql_log_update sql_low_priority_updates sql_select_limit sql_small_result sql_warnings starting +syn keyword mysqlKeyword status straight_join string +syn keyword mysqlKeyword table tables temporary terminated to trailing type +syn keyword mysqlKeyword unique unlock unsigned update usage use using +syn keyword mysqlKeyword values varbinary variables varying +syn keyword mysqlKeyword where with write +syn keyword mysqlKeyword year_month +syn keyword mysqlKeyword zerofill + +" Special values +syn keyword mysqlSpecial false null true + +" Strings (single- and double-quote) +syn region mysqlString start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn region mysqlString start=+'+ skip=+\\\\\|\\'+ end=+'+ + +" Numbers and hexidecimal values +syn match mysqlNumber "-\=\<[0-9]*\>" +syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*\>" +syn match mysqlNumber "-\=\<[0-9][0-9]*e[+-]\=[0-9]*\>" +syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*e[+-]\=[0-9]*\>" +syn match mysqlNumber "\<0x[abcdefABCDEF0-9]*\>" + +" User variables +syn match mysqlVariable "@\a*[A-Za-z0-9]*\([._]*[A-Za-z0-9]\)*" + +" Escaped column names +syn match mysqlEscaped "`[^`]*`" + +" Comments (c-style, mysql-style and modified sql-style) +syn region mysqlComment start="/\*" end="\*/" +syn match mysqlComment "#.*" +syn match mysqlComment "--\_s.*" +syn sync ccomment mysqlComment + +" Column types +" +" This gets a bit ugly. There are two different problems we have to +" deal with. +" +" The first problem is that some keywords like 'float' can be used +" both with and without specifiers, i.e. 'float', 'float(1)' and +" 'float(@var)' are all valid. We have to account for this and we +" also have to make sure that garbage like floatn or float_(1) is not +" highlighted. +" +" The second problem is that some of these keywords are included in +" function names. For instance, year() is part of the name of the +" dayofyear() function, and the dec keyword (no parenthesis) is part of +" the name of the decode() function. + +syn keyword mysqlType tinyint smallint mediumint int integer bigint +syn keyword mysqlType date datetime time bit bool +syn keyword mysqlType tinytext mediumtext longtext text +syn keyword mysqlType tinyblob mediumblob longblob blob +syn region mysqlType start="float\W" end="."me=s-1 +syn region mysqlType start="float$" end="."me=s-1 +syn region mysqlType start="\ +" Version: 1.0 +" Source: https://github.com/pr3d4t0r/n1ql-vim-syntax +" +" License: Vim is Charityware. n1ql.vim syntax is Charityware. +" (c) Copyright 2017 by Eugene Ciurana / pr3d4t0r. Licensed +" under the standard VIM LICENSE - Vim command :help uganda.txt +" for details. +" +" Questions, comments: +" https://ciurana.eu/pgp, https://keybase.io/pr3d4t0r +" +" vim: set fileencoding=utf-8: + + +if exists("b:current_syntax") + finish +endif + + +syn case ignore + +syn keyword n1qlSpecial DATASTORES +syn keyword n1qlSpecial DUAL +syn keyword n1qlSpecial FALSE +syn keyword n1qlSpecial INDEXES +syn keyword n1qlSpecial KEYSPACES +syn keyword n1qlSpecial MISSING +syn keyword n1qlSpecial NAMESPACES +syn keyword n1qlSpecial NULL +syn keyword n1qlSpecial TRUE + + +" +" *** keywords *** +" +syn keyword n1qlKeyword ALL +syn keyword n1qlKeyword ANY +syn keyword n1qlKeyword ASC +syn keyword n1qlKeyword BEGIN +syn keyword n1qlKeyword BETWEEN +syn keyword n1qlKeyword BREAK +syn keyword n1qlKeyword BUCKET +syn keyword n1qlKeyword CALL +syn keyword n1qlKeyword CASE +syn keyword n1qlKeyword CAST +syn keyword n1qlKeyword CLUSTER +syn keyword n1qlKeyword COLLATE +syn keyword n1qlKeyword COLLECTION +syn keyword n1qlKeyword CONNECT +syn keyword n1qlKeyword CONTINUE +syn keyword n1qlKeyword CORRELATE +syn keyword n1qlKeyword COVER +syn keyword n1qlKeyword DATABASE +syn keyword n1qlKeyword DATASET +syn keyword n1qlKeyword DATASTORE +syn keyword n1qlKeyword DECLARE +syn keyword n1qlKeyword DECREMENT +syn keyword n1qlKeyword DERIVED +syn keyword n1qlKeyword DESC +syn keyword n1qlKeyword DESCRIBE +syn keyword n1qlKeyword DO +syn keyword n1qlKeyword EACH +syn keyword n1qlKeyword ELEMENT +syn keyword n1qlKeyword ELSE +syn keyword n1qlKeyword END +syn keyword n1qlKeyword EVERY +syn keyword n1qlKeyword EXCLUDE +syn keyword n1qlKeyword EXISTS +syn keyword n1qlKeyword FETCH +syn keyword n1qlKeyword FIRST +syn keyword n1qlKeyword FLATTEN +syn keyword n1qlKeyword FOR +syn keyword n1qlKeyword FORCE +syn keyword n1qlKeyword FROM +syn keyword n1qlKeyword FUNCTION +syn keyword n1qlKeyword GROUP +syn keyword n1qlKeyword GSI +syn keyword n1qlKeyword HAVING +syn keyword n1qlKeyword IF +syn keyword n1qlKeyword IGNORE +syn keyword n1qlKeyword INCLUDE +syn keyword n1qlKeyword INCREMENT +syn keyword n1qlKeyword INDEX +syn keyword n1qlKeyword INITIAL +syn keyword n1qlKeyword INLINE +syn keyword n1qlKeyword INNER +syn keyword n1qlKeyword INTO +syn keyword n1qlKeyword KEY +syn keyword n1qlKeyword KEYS +syn keyword n1qlKeyword KEYSPACE +syn keyword n1qlKeyword KNOWN +syn keyword n1qlKeyword LAST +syn keyword n1qlKeyword LET +syn keyword n1qlKeyword LETTING +syn keyword n1qlKeyword LIMIT +syn keyword n1qlKeyword LOOP +syn keyword n1qlKeyword LSM +syn keyword n1qlKeyword MAP +syn keyword n1qlKeyword MAPPING +syn keyword n1qlKeyword MATCHED +syn keyword n1qlKeyword MATERIALIZED +syn keyword n1qlKeyword MERGE +syn keyword n1qlKeyword NAMESPACE +syn keyword n1qlKeyword NEST +syn keyword n1qlKeyword OPTION +syn keyword n1qlKeyword ORDER +syn keyword n1qlKeyword OUTER +syn keyword n1qlKeyword OVER +syn keyword n1qlKeyword PARSE +syn keyword n1qlKeyword PARTITION +syn keyword n1qlKeyword PASSWORD +syn keyword n1qlKeyword PATH +syn keyword n1qlKeyword POOL +syn keyword n1qlKeyword PRIMARY +syn keyword n1qlKeyword PRIVATE +syn keyword n1qlKeyword PRIVILEGE +syn keyword n1qlKeyword PROCEDURE +syn keyword n1qlKeyword PUBLIC +syn keyword n1qlKeyword REALM +syn keyword n1qlKeyword REDUCE +syn keyword n1qlKeyword RETURN +syn keyword n1qlKeyword RETURNING +syn keyword n1qlKeyword ROLE +syn keyword n1qlKeyword SATISFIES +syn keyword n1qlKeyword SCHEMA +syn keyword n1qlKeyword SELF +syn keyword n1qlKeyword SEMI +syn keyword n1qlKeyword SHOW +syn keyword n1qlKeyword START +syn keyword n1qlKeyword STATISTICS +syn keyword n1qlKeyword SYSTEM +syn keyword n1qlKeyword THEN +syn keyword n1qlKeyword TRANSACTION +syn keyword n1qlKeyword TRIGGER +syn keyword n1qlKeyword UNDER +syn keyword n1qlKeyword UNKNOWN +syn keyword n1qlKeyword UNSET +syn keyword n1qlKeyword USE +syn keyword n1qlKeyword USER +syn keyword n1qlKeyword USING +syn keyword n1qlKeyword VALIDATE +syn keyword n1qlKeyword VALUE +syn keyword n1qlKeyword VALUED +syn keyword n1qlKeyword VALUES +syn keyword n1qlKeyword VIEW +syn keyword n1qlKeyword WHEN +syn keyword n1qlKeyword WHERE +syn keyword n1qlKeyword WHILE +syn keyword n1qlKeyword WITHIN +syn keyword n1qlKeyword WORK + + +" +" *** functions *** +" +syn keyword n1qlOperator ABS +syn keyword n1qlOperator ACOS +syn keyword n1qlOperator ARRAY_AGG +syn keyword n1qlOperator ARRAY_APPEND +syn keyword n1qlOperator ARRAY_AVG +syn keyword n1qlOperator ARRAY_CONCAT +syn keyword n1qlOperator ARRAY_CONTAINS +syn keyword n1qlOperator ARRAY_COUNT +syn keyword n1qlOperator ARRAY_DISTINCT +syn keyword n1qlOperator ARRAY_FLATTEN +syn keyword n1qlOperator ARRAY_IFNULL +syn keyword n1qlOperator ARRAY_INSERT +syn keyword n1qlOperator ARRAY_INTERSECT +syn keyword n1qlOperator ARRAY_LENGTH +syn keyword n1qlOperator ARRAY_MAX +syn keyword n1qlOperator ARRAY_MIN +syn keyword n1qlOperator ARRAY_POSITION +syn keyword n1qlOperator ARRAY_PREPEND +syn keyword n1qlOperator ARRAY_PUT +syn keyword n1qlOperator ARRAY_RANGE +syn keyword n1qlOperator ARRAY_REMOVE +syn keyword n1qlOperator ARRAY_REPEAT +syn keyword n1qlOperator ARRAY_REPLACE +syn keyword n1qlOperator ARRAY_REVERSE +syn keyword n1qlOperator ARRAY_SORT +syn keyword n1qlOperator ARRAY_START +syn keyword n1qlOperator ARRAY_SUM +syn keyword n1qlOperator ARRAY_SYMDIFF +syn keyword n1qlOperator ARRAY_UNION +syn keyword n1qlOperator ASIN +syn keyword n1qlOperator ATAN +syn keyword n1qlOperator ATAN2 +syn keyword n1qlOperator AVG +syn keyword n1qlOperator BASE64 +syn keyword n1qlOperator BASE64_DECODE +syn keyword n1qlOperator BASE64_ENCODE +syn keyword n1qlOperator CEIL +syn keyword n1qlOperator CLOCK_LOCAL +syn keyword n1qlOperator CLOCK_STR +syn keyword n1qlOperator CLOCK_TZ +syn keyword n1qlOperator CLOCK_UTC +syn keyword n1qlOperator CLOCL_MILLIS +syn keyword n1qlOperator CONTAINS +syn keyword n1qlOperator COS +syn keyword n1qlOperator COUNT +syn keyword n1qlOperator DATE_ADD_MILLIS +syn keyword n1qlOperator DATE_ADD_STR +syn keyword n1qlOperator DATE_DIFF_MILLIS +syn keyword n1qlOperator DATE_DIFF_STR +syn keyword n1qlOperator DATE_FORMAT_STR +syn keyword n1qlOperator DATE_PART_MILLIS +syn keyword n1qlOperator DATE_PART_STR +syn keyword n1qlOperator DATE_RANGE_MILLIS +syn keyword n1qlOperator DATE_RANGE_STR +syn keyword n1qlOperator DATE_TRUC_STR +syn keyword n1qlOperator DATE_TRUNC_MILLIS +syn keyword n1qlOperator DECODE_JSON +syn keyword n1qlOperator DEGREES +syn keyword n1qlOperator DURATION_TO_STR +syn keyword n1qlOperator E +syn keyword n1qlOperator ENCODED_SIZE +syn keyword n1qlOperator ENCODE_JSON +syn keyword n1qlOperator EXP +syn keyword n1qlOperator FLOOR +syn keyword n1qlOperator GREATEST +syn keyword n1qlOperator IFINF +syn keyword n1qlOperator IFMISSING +syn keyword n1qlOperator IFMISSINGORNULL +syn keyword n1qlOperator IFNAN +syn keyword n1qlOperator IFNANORINF +syn keyword n1qlOperator IFNULL +syn keyword n1qlOperator INITCAP +syn keyword n1qlOperator ISARRAY +syn keyword n1qlOperator ISATOM +syn keyword n1qlOperator ISBOOLEAN +syn keyword n1qlOperator ISNUMBER +syn keyword n1qlOperator ISOBJECT +syn keyword n1qlOperator ISSTRING +syn keyword n1qlOperator LEAST +syn keyword n1qlOperator LENGTH +syn keyword n1qlOperator LN +syn keyword n1qlOperator LOG +syn keyword n1qlOperator LOWER +syn keyword n1qlOperator LTRIM +syn keyword n1qlOperator MAX +syn keyword n1qlOperator META +syn keyword n1qlOperator MILLIS +syn keyword n1qlOperator MILLIS_TO_LOCAL +syn keyword n1qlOperator MILLIS_TO_STR +syn keyword n1qlOperator MILLIS_TO_TZ +syn keyword n1qlOperator MILLIS_TO_UTC +syn keyword n1qlOperator MILLIS_TO_ZONE_NAME +syn keyword n1qlOperator MIN +syn keyword n1qlOperator MISSINGIF +syn keyword n1qlOperator NANIF +syn keyword n1qlOperator NEGINFIF +syn keyword n1qlOperator NOW_LOCAL +syn keyword n1qlOperator NOW_MILLIS +syn keyword n1qlOperator NOW_STR +syn keyword n1qlOperator NOW_TZ +syn keyword n1qlOperator NOW_UTC +syn keyword n1qlOperator NULLIF +syn keyword n1qlOperator OBJECT_ADD +syn keyword n1qlOperator OBJECT_CONCAT +syn keyword n1qlOperator OBJECT_INNER_PAIRS +syn keyword n1qlOperator OBJECT_INNER_VALUES +syn keyword n1qlOperator OBJECT_LENGTH +syn keyword n1qlOperator OBJECT_NAMES +syn keyword n1qlOperator OBJECT_PAIRS +syn keyword n1qlOperator OBJECT_PUT +syn keyword n1qlOperator OBJECT_REMOVE +syn keyword n1qlOperator OBJECT_RENAME +syn keyword n1qlOperator OBJECT_REPLACE +syn keyword n1qlOperator OBJECT_UNWRAP +syn keyword n1qlOperator OBJECT_VALUES +syn keyword n1qlOperator PI +syn keyword n1qlOperator POLY_LENGTH +syn keyword n1qlOperator POSINIF +syn keyword n1qlOperator POSITION +syn keyword n1qlOperator POWER +syn keyword n1qlOperator RADIANS +syn keyword n1qlOperator RANDOM +syn keyword n1qlOperator REGEXP_CONTAINS +syn keyword n1qlOperator REGEXP_LIKE +syn keyword n1qlOperator REGEXP_POSITION +syn keyword n1qlOperator REGEXP_REPLACE +syn keyword n1qlOperator REPEAT +syn keyword n1qlOperator REPLACE +syn keyword n1qlOperator REVERSE +syn keyword n1qlOperator ROUND +syn keyword n1qlOperator RTRIM +syn keyword n1qlOperator SIGN +syn keyword n1qlOperator SIN +syn keyword n1qlOperator SPLIT +syn keyword n1qlOperator SQRT +syn keyword n1qlOperator STR_TO_DURATION +syn keyword n1qlOperator STR_TO_MILLIS +syn keyword n1qlOperator STR_TO_TZ +syn keyword n1qlOperator STR_TO_UTC +syn keyword n1qlOperator STR_TO_ZONE_NAME +syn keyword n1qlOperator SUBSTR +syn keyword n1qlOperator SUFFIXES +syn keyword n1qlOperator SUM +syn keyword n1qlOperator TAN +syn keyword n1qlOperator TITLE +syn keyword n1qlOperator TOARRAY +syn keyword n1qlOperator TOATOM +syn keyword n1qlOperator TOBOOLEAN +syn keyword n1qlOperator TOKENS +syn keyword n1qlOperator TONUMBER +syn keyword n1qlOperator TOOBJECT +syn keyword n1qlOperator TOSTRING +syn keyword n1qlOperator TRIM +syn keyword n1qlOperator TRUNC +syn keyword n1qlOperator TYPE +syn keyword n1qlOperator UPPER +syn keyword n1qlOperator UUID +syn keyword n1qlOperator WEEKDAY_MILLIS +syn keyword n1qlOperator WEEKDAY_STR + + +" +" *** operators *** +" +syn keyword n1qlOperator AND +syn keyword n1qlOperator AS +syn keyword n1qlOperator BY +syn keyword n1qlOperator DISTINCT +syn keyword n1qlOperator EXCEPT +syn keyword n1qlOperator ILIKE +syn keyword n1qlOperator IN +syn keyword n1qlOperator INTERSECT +syn keyword n1qlOperator IS +syn keyword n1qlOperator JOIN +syn keyword n1qlOperator LEFT +syn keyword n1qlOperator LIKE +syn keyword n1qlOperator MINUS +syn keyword n1qlOperator NEST +syn keyword n1qlOperator NESTING +syn keyword n1qlOperator NOT +syn keyword n1qlOperator OFFSET +syn keyword n1qlOperator ON +syn keyword n1qlOperator OR +syn keyword n1qlOperator OUT +syn keyword n1qlOperator RIGHT +syn keyword n1qlOperator SOME +syn keyword n1qlOperator TO +syn keyword n1qlOperator UNION +syn keyword n1qlOperator UNIQUE +syn keyword n1qlOperator UNNEST +syn keyword n1qlOperator VIA +syn keyword n1qlOperator WITH +syn keyword n1qlOperator XOR + + +" +" *** statements *** +" +syn keyword n1qlStatement ALTER +syn keyword n1qlStatement ANALYZE +syn keyword n1qlStatement BUILD +syn keyword n1qlStatement COMMIT +syn keyword n1qlStatement CREATE +syn keyword n1qlStatement DELETE +syn keyword n1qlStatement DROP +syn keyword n1qlStatement EXECUTE +syn keyword n1qlStatement EXPLAIN +syn keyword n1qlStatement GRANT +syn keyword n1qlStatement INFER +syn keyword n1qlStatement INSERT +syn keyword n1qlStatement MERGE +syn keyword n1qlStatement PREPARE +syn keyword n1qlStatement RENAME +syn keyword n1qlStatement REVOKE +syn keyword n1qlStatement ROLLBACK +syn keyword n1qlStatement SELECT +syn keyword n1qlStatement SET +syn keyword n1qlStatement TRUNCATE +syn keyword n1qlStatement UPDATE +syn keyword n1qlStatement UPSERT + + +" +" *** types *** +" +syn keyword n1qlType ARRAY +syn keyword n1qlType BINARY +syn keyword n1qlType BOOLEAN +syn keyword n1qlType NUMBER +syn keyword n1qlType OBJECT +syn keyword n1qlType RAW +syn keyword n1qlType STRING + + +" +" *** strings and characters *** +" +syn region n1qlString start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn region n1qlString start=+'+ skip=+\\\\\|\\'+ end=+'+ +syn region n1qlBucketSpec start=+`+ skip=+\\\\\|\\'+ end=+`+ + + +" +" *** numbers *** +" +syn match n1qlNumber "-\=\<\d*\.\=[0-9_]\>" + + +" +" *** comments *** +" +syn region n1qlComment start="/\*" end="\*/" contains=n1qlTODO +syn match n1qlComment "--.*$" contains=n1qlTODO +syn sync ccomment n1qlComment + + +" +" *** TODO *** +" +syn keyword n1qlTODO contained TODO FIXME XXX DEBUG NOTE + + +" +" *** enable *** +" +hi def link n1qlBucketSpec Underlined +hi def link n1qlComment Comment +hi def link n1qlKeyword Macro +hi def link n1qlOperator Function +hi def link n1qlSpecial Special +hi def link n1qlStatement Statement +hi def link n1qlString String +hi def link n1qlTODO Todo +hi def link n1qlType Type + +let b:current_syntax = "n1ql" diff --git a/git/usr/share/vim/vim92/syntax/named.vim b/git/usr/share/vim/vim92/syntax/named.vim new file mode 100644 index 0000000000000000000000000000000000000000..292d1b2bbf313f00f5e8be97c813050785d762fd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/named.vim @@ -0,0 +1,229 @@ +" Vim syntax file +" Language: BIND configuration file +" Maintainer: Nick Hibma +" Last Change: 2019 Oct 08 +" Filenames: named.conf, rndc.conf +" Location: http://www.van-laarhoven.org/vim/syntax/named.vim +" +" Previously maintained by glory hump and updated by Marcin +" Dalecki. +" +" This file could do with a lot of improvements, so comments are welcome. +" Please submit the named.conf (segment) with any comments. +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match + +setlocal iskeyword=.,-,48-58,A-Z,a-z,_ + +syn sync match namedSync grouphere NONE "^(zone|controls|acl|key)" + +let s:save_cpo = &cpo +set cpo-=C + +" BIND configuration file + +syn match namedComment "//.*" +syn match namedComment "#.*" +syn region namedComment start="/\*" end="\*/" +syn region namedString start=/"/ end=/"/ contained +" --- omitted trailing semicolon +syn match namedError /[^;{#]$/ + +" --- top-level keywords + +syn keyword namedInclude include nextgroup=namedString skipwhite +syn keyword namedKeyword acl key nextgroup=namedIntIdent skipwhite +syn keyword namedKeyword server nextgroup=namedIdentifier skipwhite +syn keyword namedKeyword controls nextgroup=namedSection skipwhite +syn keyword namedKeyword trusted-keys nextgroup=namedIntSection skipwhite +syn keyword namedKeyword logging nextgroup=namedLogSection skipwhite +syn keyword namedKeyword options nextgroup=namedOptSection skipwhite +syn keyword namedKeyword zone nextgroup=namedZoneString skipwhite + +" --- Identifier: name of following { ... } Section +syn match namedIdentifier contained /\k\+/ nextgroup=namedSection skipwhite +" --- IntIdent: name of following IntSection +syn match namedIntIdent contained /"\=\k\+"\=/ nextgroup=namedIntSection skipwhite + +" --- Section: { ... } clause +syn region namedSection contained start=+{+ end=+};+ contains=namedSection,namedIntKeyword + +" --- IntSection: section that does not contain other sections +syn region namedIntSection contained start=+{+ end=+}+ contains=namedIntKeyword,namedError,namedComment + +" --- IntKeyword: keywords contained within `{ ... }' sections only +" + these keywords are contained within `key' and `acl' sections +syn keyword namedIntKeyword contained key algorithm +syn keyword namedIntKeyword contained secret nextgroup=namedString skipwhite + +" + these keywords are contained within `server' section only +syn keyword namedIntKeyword contained bogus support-ixfr nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedIntKeyword contained transfers nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedIntKeyword contained transfer-format +syn keyword namedIntKeyword contained keys nextgroup=namedIntSection skipwhite + +" + these keywords are contained within `controls' section only +syn keyword namedIntKeyword contained inet nextgroup=namedIPaddr,namedIPerror skipwhite +syn keyword namedIntKeyword contained unix nextgroup=namedString skipwhite +syn keyword namedIntKeyword contained port perm owner group nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedIntKeyword contained allow nextgroup=namedIntSection skipwhite + +" + these keywords are contained within `update-policy' section only +syn keyword namedIntKeyword contained grant nextgroup=namedString skipwhite +syn keyword namedIntKeyword contained name self subdomain wildcard nextgroup=namedString skipwhite +syn keyword namedIntKeyword TXT A PTR NS SOA A6 CNAME MX ANY skipwhite + +" --- options +syn region namedOptSection contained start=+{+ end=+};+ contains=namedOption,namedCNOption,namedComment,namedParenError + +syn keyword namedOption contained version directory +\ nextgroup=namedString skipwhite +syn keyword namedOption contained named-xfer dump-file pid-file +\ nextgroup=namedString skipwhite +syn keyword namedOption contained mem-statistics-file statistics-file +\ nextgroup=namedString skipwhite +syn keyword namedOption contained auth-nxdomain deallocate-on-exit +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained dialup fake-iquery fetch-glue +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained has-old-clients host-statistics +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained maintain-ixfr-base multiple-cnames +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained notify recursion rfc2308-type1 +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained use-id-pool treat-cr-as-space +\ nextgroup=namedBool,namedNotBool skipwhite +syn keyword namedOption contained also-notify forwarders +\ nextgroup=namedIPlist skipwhite +syn keyword namedOption contained forward check-names +syn keyword namedOption contained allow-query allow-transfer allow-recursion +\ nextgroup=namedAML skipwhite +syn keyword namedOption contained blackhole listen-on +\ nextgroup=namedIntSection skipwhite +syn keyword namedOption contained lame-ttl max-transfer-time-in +\ nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedOption contained max-ncache-ttl min-roots +\ nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedOption contained serial-queries transfers-in +\ nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedOption contained transfers-out transfers-per-ns +syn keyword namedOption contained transfer-format +syn keyword namedOption contained transfer-source +\ nextgroup=namedIPaddr,namedIPerror skipwhite +syn keyword namedOption contained max-ixfr-log-size +\ nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedOption contained coresize datasize files stacksize +syn keyword namedOption contained cleaning-interval interface-interval statistics-interval heartbeat-interval +\ nextgroup=namedNumber,namedNotNumber skipwhite +syn keyword namedOption contained topology sortlist rrset-order +\ nextgroup=namedIntSection skipwhite + +syn match namedOption contained /\/ nextgroup=namedSpareDot +syn match namedDomain contained /"\."/ms=s+1,me=e-1 +syn match namedSpareDot contained /\./ + +" --- syntax errors +syn match namedIllegalDom contained /"\S*[^-A-Za-z0-9.[:space:]]\S*"/ms=s+1,me=e-1 +syn match namedIPerror contained /\<\S*[^0-9.[:space:];]\S*/ +syn match namedEParenError contained +{+ +syn match namedParenError +}\([^;]\|$\)+ + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link namedComment Comment +hi def link namedInclude Include +hi def link namedKeyword Keyword +hi def link namedIntKeyword Keyword +hi def link namedIdentifier Identifier +hi def link namedIntIdent Identifier + +hi def link namedString String +hi def link namedBool Type +hi def link namedNotBool Error +hi def link namedNumber Number +hi def link namedNotNumber Error + +hi def link namedOption namedKeyword +hi def link namedLogOption namedKeyword +hi def link namedCNOption namedKeyword +hi def link namedQSKeywords Type +hi def link namedCNKeywords Type +hi def link namedLogCategory Type +hi def link namedIPaddr Number +hi def link namedDomain Identifier +hi def link namedZoneOpt namedKeyword +hi def link namedZoneType Type +hi def link namedParenError Error +hi def link namedEParenError Error +hi def link namedIllegalDom Error +hi def link namedIPerror Error +hi def link namedSpareDot Error +hi def link namedError Error + + +let &cpo = s:save_cpo +unlet s:save_cpo + +let b:current_syntax = "named" + +" vim: ts=17 diff --git a/git/usr/share/vim/vim92/syntax/nanorc.vim b/git/usr/share/vim/vim92/syntax/nanorc.vim new file mode 100644 index 0000000000000000000000000000000000000000..606ac7fdf1e7e3c656f96d045d93bbd03c4f12bf --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nanorc.vim @@ -0,0 +1,243 @@ +" Vim syntax file +" Language: nanorc(5) - GNU nano configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword nanorcTodo contained TODO FIXME XXX NOTE + +syn region nanorcComment display oneline start='^\s*#' end='$' + \ contains=nanorcTodo,@Spell + +syn match nanorcBegin display '^' + \ nextgroup=nanorcKeyword,nanorcComment + \ skipwhite + +syn keyword nanorcKeyword contained set unset + \ nextgroup=nanorcBoolOption, + \ nanorcStringOption,nanorcNumberOption + \ skipwhite + +syn keyword nanorcKeyword contained syntax + \ nextgroup=nanorcSynGroupName skipwhite + +syn keyword nanorcKeyword contained color + \ nextgroup=@nanorcFGColor skipwhite + +syn keyword nanorcBoolOption contained autoindent backup const cut + \ historylog morespace mouse multibuffer + \ noconvert nofollow nohelp nowrap preserve + \ rebinddelete regexp smarthome smooth suspend + \ tempfile view + +syn keyword nanorcStringOption contained backupdir brackets operatingdir + \ punct quotestr speller whitespace + \ nextgroup=nanorcString skipwhite + +syn keyword nanorcNumberOption contained fill tabsize + \ nextgroup=nanorcNumber skipwhite + +syn region nanorcSynGroupName contained display oneline start=+"+ + \ end=+"\ze\%([[:blank:]]\|$\)+ + \ nextgroup=nanorcRegexes skipwhite + +syn match nanorcString contained display '".*"' + +syn region nanorcRegexes contained display oneline start=+"+ + \ end=+"\ze\%([[:blank:]]\|$\)+ + \ nextgroup=nanorcRegexes skipwhite + +syn match nanorcNumber contained display '[+-]\=\<\d\+\>' + +syn cluster nanorcFGColor contains=nanorcFGWhite,nanorcFGBlack, + \ nanorcFGRed,nanorcFGBlue,nanorcFGGreen, + \ nanorcFGYellow,nanorcFGMagenta,nanorcFGCyan, + \ nanorcFGBWhite,nanorcFGBBlack,nanorcFGBRed, + \ nanorcFGBBlue,nanorcFGBGreen,nanorcFGBYellow, + \ nanorcFGBMagenta,nanorcFGBCyan + +syn keyword nanorcFGWhite contained white + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBlack contained black + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGRed contained red + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBlue contained blue + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGGreen contained green + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGYellow contained yellow + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGMagenta contained magenta + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGCyan contained cyan + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBWhite contained brightwhite + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBBlack contained brightblack + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBRed contained brightred + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBBlue contained brightblue + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBGreen contained brightgreen + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBYellow contained brightyellow + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBMagenta contained brightmagenta + \ nextgroup=@nanorcFGSpec skipwhite + +syn keyword nanorcFGBCyan contained brightcyan + \ nextgroup=@nanorcFGSpec skipwhite + +syn cluster nanorcBGColor contains=nanorcBGWhite,nanorcBGBlack, + \ nanorcBGRed,nanorcBGBlue,nanorcBGGreen, + \ nanorcBGYellow,nanorcBGMagenta,nanorcBGCyan, + \ nanorcBGBWhite,nanorcBGBBlack,nanorcBGBRed, + \ nanorcBGBBlue,nanorcBGBGreen,nanorcBGBYellow, + \ nanorcBGBMagenta,nanorcBGBCyan + +syn keyword nanorcBGWhite contained white + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBlack contained black + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGRed contained red + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBlue contained blue + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGGreen contained green + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGYellow contained yellow + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGMagenta contained magenta + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGCyan contained cyan + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBWhite contained brightwhite + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBBlack contained brightblack + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBRed contained brightred + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBBlue contained brightblue + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBGreen contained brightgreen + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBYellow contained brightyellow + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBMagenta contained brightmagenta + \ nextgroup=@nanorcBGSpec skipwhite + +syn keyword nanorcBGBCyan contained brightcyan + \ nextgroup=@nanorcBGSpec skipwhite + +syn match nanorcBGColorSep contained ',' nextgroup=@nanorcBGColor + +syn cluster nanorcFGSpec contains=nanorcBGColorSep,nanorcRegexes, + \ nanorcStartRegion + +syn cluster nanorcBGSpec contains=nanorcRegexes,nanorcStartRegion + +syn keyword nanorcStartRegion contained start nextgroup=nanorcStartRegionEq + +syn match nanorcStartRegionEq contained '=' nextgroup=nanorcRegion + +syn region nanorcRegion contained display oneline start=+"+ + \ end=+"\ze\%([[:blank:]]\|$\)+ + \ nextgroup=nanorcEndRegion skipwhite + +syn keyword nanorcEndRegion contained end nextgroup=nanorcStartRegionEq + +syn match nanorcEndRegionEq contained '=' nextgroup=nanorcRegex + +syn region nanorcRegex contained display oneline start=+"+ + \ end=+"\ze\%([[:blank:]]\|$\)+ + +hi def link nanorcTodo Todo +hi def link nanorcComment Comment +hi def link nanorcKeyword Keyword +hi def link nanorcBoolOption Identifier +hi def link nanorcStringOption Identifier +hi def link nanorcNumberOption Identifier +hi def link nanorcSynGroupName String +hi def link nanorcString String +hi def link nanorcRegexes nanorcString +hi def link nanorcNumber Number +hi def nanorcFGWhite ctermfg=Gray guifg=Gray +hi def nanorcFGBlack ctermfg=Black guifg=Black +hi def nanorcFGRed ctermfg=DarkRed guifg=DarkRed +hi def nanorcFGBlue ctermfg=DarkBlue guifg=DarkBlue +hi def nanorcFGGreen ctermfg=DarkGreen guifg=DarkGreen +hi def nanorcFGYellow ctermfg=Brown guifg=Brown +hi def nanorcFGMagenta ctermfg=DarkMagenta guifg=DarkMagenta +hi def nanorcFGCyan ctermfg=DarkCyan guifg=DarkCyan +hi def nanorcFGBWhite ctermfg=White guifg=White +hi def nanorcFGBBlack ctermfg=DarkGray guifg=DarkGray +hi def nanorcFGBRed ctermfg=Red guifg=Red +hi def nanorcFGBBlue ctermfg=Blue guifg=Blue +hi def nanorcFGBGreen ctermfg=Green guifg=Green +hi def nanorcFGBYellow ctermfg=Yellow guifg=Yellow +hi def nanorcFGBMagenta ctermfg=Magenta guifg=Magenta +hi def nanorcFGBCyan ctermfg=Cyan guifg=Cyan +hi def link nanorcBGColorSep Normal +hi def nanorcBGWhite ctermbg=Gray guibg=Gray +hi def nanorcBGBlack ctermbg=Black guibg=Black +hi def nanorcBGRed ctermbg=DarkRed guibg=DarkRed +hi def nanorcBGBlue ctermbg=DarkBlue guibg=DarkBlue +hi def nanorcBGGreen ctermbg=DarkGreen guibg=DarkGreen +hi def nanorcBGYellow ctermbg=Brown guibg=Brown +hi def nanorcBGMagenta ctermbg=DarkMagenta guibg=DarkMagenta +hi def nanorcBGCyan ctermbg=DarkCyan guibg=DarkCyan +hi def nanorcBGBWhite ctermbg=White guibg=White +hi def nanorcBGBBlack ctermbg=DarkGray guibg=DarkGray +hi def nanorcBGBRed ctermbg=Red guibg=Red +hi def nanorcBGBBlue ctermbg=Blue guibg=Blue +hi def nanorcBGBGreen ctermbg=Green guibg=Green +hi def nanorcBGBYellow ctermbg=Yellow guibg=Yellow +hi def nanorcBGBMagenta ctermbg=Magenta guibg=Magenta +hi def nanorcBGBCyan ctermbg=Cyan guibg=Cyan +hi def link nanorcStartRegion Type +hi def link nanorcStartRegionEq Operator +hi def link nanorcRegion nanorcString +hi def link nanorcEndRegion Type +hi def link nanorcEndRegionEq Operator +hi def link nanorcRegex nanoRegexes + +let b:current_syntax = "nanorc" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/nasm.vim b/git/usr/share/vim/vim92/syntax/nasm.vim new file mode 100644 index 0000000000000000000000000000000000000000..22d7c2729a5b86837bdede1d71d131279f4995b7 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nasm.vim @@ -0,0 +1,1192 @@ +" Vim syntax file +" Language: NASM - The Netwide Assembler (v0.98) +" Maintainer: Andrii Sokolov +" Original Author: Manuel M.H. Stol +" Former Maintainer: Manuel M.H. Stol +" Contributors: +" Leonard König (C string highlighting), +" Peter Stanhope (Add missing 64-bit mode registers) +" Frédéric Hamel (F16c support, partial AVX +" support, other) +" sarvel (Complete set of supported instructions) +" Last Change: 2024 Oct 8 +" NASM Home: http://www.nasm.us/ + + +" Setup Syntax: +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +" Assembler syntax is case insensetive +syn case ignore + + +" Vim search and movement commands on identifers +" Comments at start of a line inside which to skip search for indentifiers +setlocal comments=:; +" Identifier Keyword characters (defines \k) +setlocal iskeyword=@,48-57,#,$,.,?,@-@,_,~ + + +" Comments: +syn region nasmComment start=";" keepend end="$" contains=@nasmGrpInComments +syn region nasmSpecialComment start=";\*\*\*" keepend end="$" +syn keyword nasmInCommentTodo contained TODO FIXME XXX[XXXXX] +syn cluster nasmGrpInComments contains=nasmInCommentTodo +syn cluster nasmGrpComments contains=@nasmGrpInComments,nasmComment,nasmSpecialComment + + + +" Label Identifiers: +" in NASM: 'Everything is a Label' +" Definition Label = label defined by %[i]define or %[i]assign +" Identifier Label = label defined as first non-keyword on a line or %[i]macro +syn match nasmLabelError "$\=\(\d\+\K\|[#.@]\|\$\$\k\)\k*\>" +syn match nasmLabel "\<\(\h\|[?@]\)\k*\>" +syn match nasmLabel "[\$\~]\(\h\|[?@]\)\k*\>"lc=1 +" Labels starting with one or two '.' are special +syn match nasmLocalLabel "\<\.\(\w\|[#$?@~]\)\k*\>" +syn match nasmLocalLabel "\<\$\.\(\w\|[#$?@~]\)\k*\>"ms=s+1 +if !exists("nasm_no_warn") + syn match nasmLabelWarn "\<\~\=\$\=[_.][_.\~]*\>" +endif +if exists("nasm_loose_syntax") + syn match nasmSpecialLabel "\<\.\.@\k\+\>" + syn match nasmSpecialLabel "\<\$\.\.@\k\+\>"ms=s+1 + if !exists("nasm_no_warn") + syn match nasmLabelWarn "\<\$\=\.\.@\(\d\|[#$\.~]\)\k*\>" + endif + " disallow use of nasm internal label format + syn match nasmLabelError "\<\$\=\.\.@\d\+\.\k*\>" +else + syn match nasmSpecialLabel "\<\.\.@\(\h\|[?@]\)\k*\>" + syn match nasmSpecialLabel "\<\$\.\.@\(\h\|[?@]\)\k*\>"ms=s+1 +endif +" Labels can be dereferenced with '$' to destinguish them from reserved words +syn match nasmLabelError "\<\$\K\k*\s*:" +syn match nasmLabelError "^\s*\$\K\k*\>" +syn match nasmLabelError "\<\~\s*\(\k*\s*:\|\$\=\.\k*\)" + + + +" Constants: +syn match nasmStringError +["'`]+ +" NASM is case sensitive here: eg. u-prefix allows for 4-digit, U-prefix for +" 8-digit Unicode characters +syn case match +" one-char escape-sequences +syn match nasmCStringEscape display contained "\\[’"‘\\\?abtnvfre]" +" hex and octal numbers +syn match nasmCStringEscape display contained "\\\(x\x\{2}\|\o\{1,3}\)" +" Unicode characters +syn match nasmCStringEscape display contained "\\\(u\x\{4}\|U\x\{8}\)" +" ISO C99 format strings (copied from cFormat in runtime/syntax/c.vim) +syn match nasmCStringFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained +syn match nasmCStringFormat display "%%" contained +syn match nasmString +\("[^"]\{-}"\|'[^']\{-}'\)+ +" Highlight C escape- and format-sequences within ``-strings +syn match nasmCString +\(`[^`]\{-}`\)+ contains=nasmCStringEscape,nasmCStringFormat extend +syn case ignore +syn match nasmBinNumber "\<\([01][01_]*[by]\|0[by][01_]\+\)\>" +syn match nasmBinNumber "\<\~\([01][01_]*[by]\|0[by][01_]\+\)\>"lc=1 +syn match nasmOctNumber "\<\(\o[0-7_]*[qo]\|0[qo][0-7_]\+\)\>" +syn match nasmOctNumber "\<\~\(\o[0-7_]*[qo]\|0[qo][0-7_]\+\)\>"lc=1 +syn match nasmDecNumber "\<\(\d[0-9_]*\|\d[0-9_]*d\|0d[0-9_]\+\)\>" +syn match nasmDecNumber "\<\~\(\d[0-9_]*\|\d[0-9_]*d\|0d[0-9_]\+\)\>"lc=1 +syn match nasmHexNumber "\<\(\d[0-9a-f_]*h\|0[xh][0-9a-f_]\+\|\$\d[0-9a-f_]*\)\>" +syn match nasmHexNumber "\<\~\(\d[0-9a-f_]*h\|0[xh][0-9a-f_]\+\|\$\d[0-9a-f_]*\)\>"lc=1 +syn match nasmBinFloat "\<\(0[by][01_]*\.[01_]*\(p[+-]\=[0-9_]*\)\=\)\|\(0[by][01_]*p[+-]\=[0-9_]*\)\>" +syn match nasmOctFloat "\<\(0[qo][0-7_]*\.[0-7_]*\(p[+-]\=[0-9_]*\)\=\)\|\(0[qo][0-7_]*p[+-]\=[0-9_]*\)\>" +syn match nasmDecFloat "\<\(\d[0-9_]*\.[0-9_]*\(e[+-]\=[0-9_]*\)\=\)\|\(\d[0-9_]*e[+-]\=[0-9_]*\)\>" +syn match nasmHexFloat "\<\(0[xh][0-9a-f_]\+\.[0-9a-f_]*\(p[+-]\=[0-9_]*\)\=\)\|\(0[xh][0-9a-f_]\+p[+-]\=[0-9_]*\)\>" +syn keyword nasmSpecFloat Inf NaN SNaN QNaN __?Infinity?__ __?NaN?__ __?SNaN?__ __?QNaN?__ +syn match nasmBcdConst "\<\(\d[0-9_]*p\|0p[0-9_]\+\)\>" +syn match nasmNumberError "\<\~\s*\d\+\.\d*\(e[+-]\=\d\+\)\=\>" + + +" Netwide Assembler Storage Directives: +" Storage types +syn keyword nasmTypeError DF EXTRN FWORD RESF TBYTE +syn keyword nasmType FAR NEAR SHORT +syn keyword nasmType BYTE WORD DWORD QWORD DQWORD HWORD DHWORD TWORD +syn keyword nasmType CDECL FASTCALL NONE PASCAL STDCALL +syn keyword nasmStorage DB DW DD DQ DT DO DY DZ +syn keyword nasmStorage RESB RESW RESD RESQ REST RESO RESY RESZ +syn keyword nasmStorage EXTERN GLOBAL COMMON +" Structured storage types +syn match nasmTypeError "\<\(AT\|I\=\(END\)\=\(STRUCT\=\|UNION\)\|I\=END\)\>" +syn match nasmStructureLabel contained "\<\(AT\|I\=\(END\)\=\(STRUCT\=\|UNION\)\|I\=END\)\>" +" structures cannot be nested (yet) -> use: 'keepend' and 're=' +syn cluster nasmGrpCntnStruc contains=ALLBUT,@nasmGrpInComments,nasmMacroDef,@nasmGrpInMacros,@nasmGrpInPreCondits,nasmStructureDef,@nasmGrpInStrucs +syn region nasmStructureDef transparent matchgroup=nasmStructure keepend start="^\s*STRUCT\>"hs=e-5 end="^\s*ENDSTRUCT\>"re=e-9 contains=@nasmGrpCntnStruc +syn region nasmStructureDef transparent matchgroup=nasmStructure keepend start="^\s*STRUC\>"hs=e-4 end="^\s*ENDSTRUC\>"re=e-8 contains=@nasmGrpCntnStruc +syn region nasmStructureDef transparent matchgroup=nasmStructure keepend start="\" end="\" contains=@nasmGrpCntnStruc,nasmInStructure +" union types are not part of nasm (yet) +"syn region nasmStructureDef transparent matchgroup=nasmStructure keepend start="^\s*UNION\>"hs=e-4 end="^\s*ENDUNION\>"re=e-8 contains=@nasmGrpCntnStruc +"syn region nasmStructureDef transparent matchgroup=nasmStructure keepend start="\" end="\" contains=@nasmGrpCntnStruc,nasmInStructure +syn match nasmInStructure contained "^\s*AT\>"hs=e-1 +syn cluster nasmGrpInStrucs contains=nasmStructure,nasmInStructure,nasmStructureLabel + + + +" PreProcessor Instructions: +" NAsm PreProcs start with %, but % is not a character +syn match nasmPreProcError "%{\=\(%\=\k\+\|%%\+\k*\|[+-]\=\d\+\)}\=" +if exists("nasm_loose_syntax") + syn cluster nasmGrpNxtCtx contains=nasmStructureLabel,nasmLabel,nasmLocalLabel,nasmSpecialLabel,nasmLabelError,nasmPreProcError +else + syn cluster nasmGrpNxtCtx contains=nasmStructureLabel,nasmLabel,nasmLabelError,nasmPreProcError +endif + +" Multi-line macro +syn cluster nasmGrpCntnMacro contains=ALLBUT,@nasmGrpInComments,nasmStructureDef,@nasmGrpInStrucs,nasmMacroDef,@nasmGrpPreCondits,nasmMemReference,nasmInMacPreCondit,nasmInMacStrucDef +syn region nasmMacroDef matchgroup=nasmMacro keepend start="^\s*%macro\>"hs=e-5 start="^\s*%imacro\>"hs=e-6 end="^\s*%endmacro\>"re=e-9 contains=@nasmGrpCntnMacro,nasmInMacStrucDef +if exists("nasm_loose_syntax") + syn match nasmInMacLabel contained "%\(%\k\+\>\|{%\k\+}\)" + syn match nasmInMacLabel contained "%\($\+\(\w\|[#\.?@~]\)\k*\>\|{$\+\(\w\|[#\.?@~]\)\k*}\)" + syn match nasmInMacPreProc contained "^\s*%\(push\|repl\)\>"hs=e-4 skipwhite nextgroup=nasmStructureLabel,nasmLabel,nasmInMacParam,nasmLocalLabel,nasmSpecialLabel,nasmLabelError,nasmPreProcError + if !exists("nasm_no_warn") + syn match nasmInMacLblWarn contained "%\(%[$\.]\k*\>\|{%[$\.]\k*}\)" + syn match nasmInMacLblWarn contained "%\($\+\(\d\|[#\.@~]\)\k*\|{\$\+\(\d\|[#\.@~]\)\k*}\)" + hi link nasmInMacCatLabel nasmInMacLblWarn + else + hi link nasmInMacCatLabel nasmInMacLabel + endif +else + syn match nasmInMacLabel contained "%\(%\(\w\|[#?@~]\)\k*\>\|{%\(\w\|[#?@~]\)\k*}\)" + syn match nasmInMacLabel contained "%\($\+\(\h\|[?@]\)\k*\>\|{$\+\(\h\|[?@]\)\k*}\)" + hi link nasmInMacCatLabel nasmLabelError +endif +syn match nasmInMacCatLabel contained "\d\K\k*"lc=1 +syn match nasmInMacLabel contained "\d}\k\+"lc=2 +if !exists("nasm_no_warn") + syn match nasmInMacLblWarn contained "%\(\($\+\|%\)[_~][._~]*\>\|{\($\+\|%\)[_~][._~]*}\)" +endif +syn match nasmInMacPreProc contained "^\s*%pop\>"hs=e-3 +syn match nasmInMacPreProc contained "^\s*%\(push\|repl\)\>"hs=e-4 skipwhite nextgroup=@nasmGrpNxtCtx +" structures cannot be nested (yet) -> use: 'keepend' and 're=' +syn region nasmInMacStrucDef contained transparent matchgroup=nasmStructure keepend start="^\s*STRUCT\>"hs=e-5 end="^\s*ENDSTRUCT\>"re=e-9 contains=@nasmGrpCntnMacro +syn region nasmInMacStrucDef contained transparent matchgroup=nasmStructure keepend start="^\s*STRUC\>"hs=e-4 end="^\s*ENDSTRUC\>"re=e-8 contains=@nasmGrpCntnMacro +syn region nasmInMacStrucDef contained transparent matchgroup=nasmStructure keepend start="\" end="\" contains=@nasmGrpCntnMacro,nasmInStructure +" union types are not part of nasm (yet) +"syn region nasmInMacStrucDef contained transparent matchgroup=nasmStructure keepend start="^\s*UNION\>"hs=e-4 end="^\s*ENDUNION\>"re=e-8 contains=@nasmGrpCntnMacro +"syn region nasmInMacStrucDef contained transparent matchgroup=nasmStructure keepend start="\" end="\" contains=@nasmGrpCntnMacro,nasmInStructure +syn region nasmInMacPreConDef contained transparent matchgroup=nasmInMacPreCondit start="^\s*%ifnidni\>"hs=e-7 start="^\s*%if\(idni\|n\(ctx\|def\|idn\|num\|str\)\)\>"hs=e-6 start="^\s*%if\(ctx\|def\|idn\|nid\|num\|str\)\>"hs=e-5 start="^\s*%ifid\>"hs=e-4 start="^\s*%if\>"hs=e-2 end="%endif\>" contains=@nasmGrpCntnMacro,nasmInMacPreCondit,nasmInPreCondit +" Todo: allow STRUC/ISTRUC to be used inside preprocessor conditional block +syn match nasmInMacPreCondit contained transparent "ctx\s"lc=3 skipwhite nextgroup=@nasmGrpNxtCtx +syn match nasmInMacPreCondit contained "^\s*%elifctx\>"hs=e-7 skipwhite nextgroup=@nasmGrpNxtCtx +syn match nasmInMacPreCondit contained "^\s*%elifnctx\>"hs=e-8 skipwhite nextgroup=@nasmGrpNxtCtx +syn match nasmInMacParamNum contained "\<\d\+\.list\>"me=e-5 +syn match nasmInMacParamNum contained "\<\d\+\.nolist\>"me=e-7 +syn match nasmInMacDirective contained "\.\(no\)\=list\>" +syn match nasmInMacMacro contained transparent "macro\s"lc=5 skipwhite nextgroup=nasmStructureLabel +syn match nasmInMacMacro contained "^\s*%rotate\>"hs=e-6 +syn match nasmInMacParam contained "%\([+-]\=\d\+\|{[+-]\=\d\+}\)" +" nasm conditional macro operands/arguments +" Todo: check feasebility; add too nasmGrpInMacros, etc. +"syn match nasmInMacCond contained "\<\(N\=\([ABGL]E\=\|[CEOSZ]\)\|P[EO]\=\)\>" +syn cluster nasmGrpInMacros contains=nasmMacro,nasmInMacMacro,nasmInMacParam,nasmInMacParamNum,nasmInMacDirective,nasmInMacLabel,nasmInMacLblWarn,nasmInMacMemRef,nasmInMacPreConDef,nasmInMacPreCondit,nasmInMacPreProc,nasmInMacStrucDef + +" Context pre-procs that are better used inside a macro +if exists("nasm_ctx_outside_macro") + syn region nasmPreConditDef transparent matchgroup=nasmCtxPreCondit start="^\s*%ifnctx\>"hs=e-6 start="^\s*%ifctx\>"hs=e-5 end="%endif\>" contains=@nasmGrpCntnPreCon + syn match nasmCtxPreProc "^\s*%pop\>"hs=e-3 + if exists("nasm_loose_syntax") + syn match nasmCtxLocLabel "%$\+\(\w\|[#.?@~]\)\k*\>" + else + syn match nasmCtxLocLabel "%$\+\(\h\|[?@]\)\k*\>" + endif + syn match nasmCtxPreProc "^\s*%\(push\|repl\)\>"hs=e-4 skipwhite nextgroup=@nasmGrpNxtCtx + syn match nasmCtxPreCondit contained transparent "ctx\s"lc=3 skipwhite nextgroup=@nasmGrpNxtCtx + syn match nasmCtxPreCondit contained "^\s*%elifctx\>"hs=e-7 skipwhite nextgroup=@nasmGrpNxtCtx + syn match nasmCtxPreCondit contained "^\s*%elifnctx\>"hs=e-8 skipwhite nextgroup=@nasmGrpNxtCtx + if exists("nasm_no_warn") + hi link nasmCtxPreCondit nasmPreCondit + hi link nasmCtxPreProc nasmPreProc + hi link nasmCtxLocLabel nasmLocalLabel + else + hi link nasmCtxPreCondit nasmPreProcWarn + hi link nasmCtxPreProc nasmPreProcWarn + hi link nasmCtxLocLabel nasmLabelWarn + endif +endif + +" Conditional assembly +syn cluster nasmGrpCntnPreCon contains=ALLBUT,@nasmGrpInComments,@nasmGrpInMacros,@nasmGrpInStrucs +syn region nasmPreConditDef transparent matchgroup=nasmPreCondit start="^\s*%ifnidni\>"hs=e-7 start="^\s*%if\(idni\|n\(def\|idn\|num\|str\)\)\>"hs=e-6 start="^\s*%if\(def\|idn\|nid\|num\|str\)\>"hs=e-5 start="^\s*%ifid\>"hs=e-4 start="^\s*%if\>"hs=e-2 end="%endif\>" contains=@nasmGrpCntnPreCon +syn match nasmInPreCondit contained "^\s*%el\(if\|se\)\>"hs=e-4 +syn match nasmInPreCondit contained "^\s*%elifid\>"hs=e-6 +syn match nasmInPreCondit contained "^\s*%elif\(def\|idn\|nid\|num\|str\)\>"hs=e-7 +syn match nasmInPreCondit contained "^\s*%elif\(n\(def\|idn\|num\|str\)\|idni\)\>"hs=e-8 +syn match nasmInPreCondit contained "^\s*%elifnidni\>"hs=e-9 +syn cluster nasmGrpInPreCondits contains=nasmPreCondit,nasmInPreCondit,nasmCtxPreCondit +syn cluster nasmGrpPreCondits contains=nasmPreConditDef,@nasmGrpInPreCondits,nasmCtxPreProc,nasmCtxLocLabel + +" Other pre-processor statements +syn match nasmPreProc "^\s*%\(rep\|use\)\>"hs=e-3 +syn match nasmPreProc "^\s*%line\>"hs=e-4 +syn match nasmPreProc "^\s*%\(clear\|error\|fatal\)\>"hs=e-5 +syn match nasmPreProc "^\s*%\(endrep\|strlen\|substr\)\>"hs=e-6 +syn match nasmPreProc "^\s*%\(exitrep\|warning\)\>"hs=e-7 +syn match nasmDefine "^\s*%undef\>"hs=e-5 +syn match nasmDefine "^\s*%\(assign\|define\)\>"hs=e-6 +syn match nasmDefine "^\s*%i\(assign\|define\)\>"hs=e-7 +syn match nasmDefine "^\s*%unmacro\>"hs=e-7 +syn match nasmInclude "^\s*%include\>"hs=e-7 +" Todo: Treat the line tail after %fatal, %error, %warning as text + +" Multiple pre-processor instructions on single line detection (obsolete) +"syn match nasmPreProcError +^\s*\([^\t "%';][^"%';]*\|[^\t "';][^"%';]\+\)%\a\+\>+ +syn cluster nasmGrpPreProcs contains=nasmMacroDef,@nasmGrpInMacros,@nasmGrpPreCondits,nasmPreProc,nasmDefine,nasmInclude,nasmPreProcWarn,nasmPreProcError + + + +" Register Identifiers: +" Register operands: +syn match nasmGen08Register "\<[A-D][HL]\>" +syn match nasmGen16Register "\<\([A-D]X\|[DS]I\|[BS]P\)\>" +syn match nasmGen32Register "\" +syn match nasmGen64Register "\" +syn match nasmExtRegister "\<\([SB]PL\|[SD]IL\)\>" +syn match nasmSegRegister "\<[C-GS]S\>" +syn match nasmSpcRegister "\" +syn match nasmFpuRegister "\" +syn match nasmMmxRegister "\" +syn match nasmAvxRegister "\<[XYZ]MM\d\{1,2}\>" +syn match nasmCtrlRegister "\" +syn match nasmDebugRegister "\" +syn match nasmTestRegister "\" +syn match nasmRegisterError "\<\(CR[15-9]\|DR[4-58-9]\|TR[0-28-9]\)\>" +syn match nasmRegisterError "\<[XYZ]MM\(3[2-9]\|[04-9]\d\)\>" +syn match nasmRegisterError "\\)" +syn match nasmRegisterError "\" +" Memory reference operand (address): +syn match nasmMemRefError "[[\]]" +syn cluster nasmGrpCntnMemRef contains=ALLBUT,@nasmGrpComments,@nasmGrpPreProcs,@nasmGrpInStrucs,nasmMemReference,nasmMemRefError +syn match nasmInMacMemRef contained "\[[^;[\]]\{-}\]" contains=@nasmGrpCntnMemRef,nasmPreProcError,nasmInMacLabel,nasmInMacLblWarn,nasmInMacParam +syn match nasmMemReference "\[[^;[\]]\{-}\]" contains=@nasmGrpCntnMemRef,nasmPreProcError,nasmCtxLocLabel + + + +" Netwide Assembler Directives: +" Compilation constants +syn keyword nasmConstant __BITS__ __DATE__ __FILE__ __FORMAT__ __LINE__ +syn keyword nasmConstant __NASM_MAJOR__ __NASM_MINOR__ __NASM_VERSION__ +syn keyword nasmConstant __TIME__ +" Instruction modifiers +syn match nasmInstrModifier "\(^\|:\)\s*[C-GS]S\>"ms=e-1 +syn keyword nasmInstrModifier A16 A32 O16 O32 +syn match nasmInstrModifier "\"lc=5,ms=e-1 +" the 'to' keyword is not allowed for fpu-pop instructions (yet) +"syn match nasmInstrModifier "\"lc=6,ms=e-1 +" NAsm directives +syn keyword nasmRepeat TIMES +syn keyword nasmDirective ALIGN[B] INCBIN EQU NOSPLIT SPLIT +syn keyword nasmDirective ABSOLUTE BITS SECTION SEGMENT DEFAULT +syn keyword nasmDirective ENDSECTION ENDSEGMENT +syn keyword nasmDirective __SECT__ +" Macro created standard directives: (requires %include) +syn case match +syn keyword nasmStdDirective ENDPROC EPILOGUE LOCALS PROC PROLOGUE USES +syn keyword nasmStdDirective ENDIF ELSE ELIF ELSIF IF +"syn keyword nasmStdDirective BREAK CASE DEFAULT ENDSWITCH SWITCH +"syn keyword nasmStdDirective CASE OF ENDCASE +syn keyword nasmStdDirective ENDFOR ENDWHILE FOR REPEAT UNTIL WHILE EXIT +syn case ignore +" Format specific directives: (all formats) +" (excluded: extension directives to section, global, common and extern) +syn keyword nasmFmtDirective ORG +syn keyword nasmFmtDirective EXPORT IMPORT GROUP UPPERCASE SEG WRT +syn keyword nasmFmtDirective LIBRARY +syn case match +syn keyword nasmFmtDirective _GLOBAL_OFFSET_TABLE_ __GLOBAL_OFFSET_TABLE_ +syn keyword nasmFmtDirective ..start ..got ..gotoff ..gotpc ..plt ..sym +syn case ignore + +" Instruction errors: +" Instruction modifiers +syn match nasmInstructnError "\" +" Standard Instructions: +syn match nasmInstructnError "\<\(F\=CMOV\|SET\|J\)N\=\a\{0,2}\>" +syn match nasmInstructnError "\" +syn keyword nasmInstructnError CMPS MOVS LCS LODS STOS XLAT +syn match nasmInstructnError "\\s*[^:]"he=e-1 +" Input and Output +syn keyword nasmInstructnError INS OUTS +" Standard MMX instructions: (requires MMX1 unit) +syn match nasmInstructnError "\" +syn match nasmInstructnError "\" +" Streaming SIMD Extension Packed Instructions: (requires SSE unit) +syn match nasmInstructnError "\" +" AVX Instructions +syn match nasmInstructnError "\" + + +" Instructions: +" Standard +syn keyword nasmInstructionStandard AAA AAD AAM AAS ADC +syn keyword nasmInstructionStandard ADD AND ARPL +syn keyword nasmInstructionStandard BOUND BSF BSR BSWAP BT +syn keyword nasmInstructionStandard BTC BTR BTS CALL CBW +syn keyword nasmInstructionStandard CDQ CDQE CLC CLD CLI +syn keyword nasmInstructionStandard CLTS CMC CMP CMPSB CMPSD +syn keyword nasmInstructionStandard CMPSQ CMPSW CMPXCHG CMPXCHG486 CMPXCHG8B +syn keyword nasmInstructionStandard CMPXCHG16B CPUID CQO +syn keyword nasmInstructionStandard CWD CWDE DAA DAS DEC +syn keyword nasmInstructionStandard DIV EMMS ENTER EQU +syn keyword nasmInstructionStandard F2XM1 FABS FADD FADDP FBLD +syn keyword nasmInstructionStandard FBSTP FCHS FCLEX FCMOVB FCMOVBE +syn keyword nasmInstructionStandard FCMOVE FCMOVNB FCMOVNBE FCMOVNE FCMOVNU +syn keyword nasmInstructionStandard FCMOVU FCOM FCOMI FCOMIP FCOMP +syn keyword nasmInstructionStandard FCOMPP FCOS FDECSTP FDISI FDIV +syn keyword nasmInstructionStandard FDIVP FDIVR FDIVRP FEMMS FENI +syn keyword nasmInstructionStandard FFREE FFREEP FIADD FICOM FICOMP +syn keyword nasmInstructionStandard FIDIV FIDIVR FILD FIMUL FINCSTP +syn keyword nasmInstructionStandard FINIT FIST FISTP FISTTP FISUB +syn keyword nasmInstructionStandard FISUBR FLD FLD1 FLDCW FLDENV +syn keyword nasmInstructionStandard FLDL2E FLDL2T FLDLG2 FLDLN2 FLDPI +syn keyword nasmInstructionStandard FLDZ FMUL FMULP FNCLEX FNDISI +syn keyword nasmInstructionStandard FNENI FNINIT FNOP FNSAVE FNSTCW +syn keyword nasmInstructionStandard FNSTENV FNSTSW FPATAN FPREM FPREM1 +syn keyword nasmInstructionStandard FPTAN FRNDINT FRSTOR FSAVE FSCALE +syn keyword nasmInstructionStandard FSETPM FSIN FSINCOS FSQRT FST +syn keyword nasmInstructionStandard FSTCW FSTENV FSTP FSTSW FSUB +syn keyword nasmInstructionStandard FSUBP FSUBR FSUBRP FTST FUCOM +syn keyword nasmInstructionStandard FUCOMI FUCOMIP FUCOMP FUCOMPP FXAM +syn keyword nasmInstructionStandard FXCH FXTRACT FYL2X FYL2XP1 HLT +syn keyword nasmInstructionStandard IBTS ICEBP IDIV IMUL IN +syn keyword nasmInstructionStandard INC INSB INSD INSW INT +syn keyword nasmInstructionStandard INTO +syn keyword nasmInstructionStandard INVD INVPCID INVLPG INVLPGA IRET +syn keyword nasmInstructionStandard IRETD IRETQ IRETW JCXZ JECXZ +syn keyword nasmInstructionStandard JRCXZ JMP JMPE LAHF LAR +syn keyword nasmInstructionStandard LDS LEA LEAVE LES LFENCE +syn keyword nasmInstructionStandard LFS LGDT LGS LIDT LLDT +syn keyword nasmInstructionStandard LMSW LOADALL LOADALL286 LODSB LODSD +syn keyword nasmInstructionStandard LODSQ LODSW LOOP LOOPE LOOPNE +syn keyword nasmInstructionStandard LOOPNZ LOOPZ LSL LSS LTR +syn keyword nasmInstructionStandard MFENCE MONITOR MONITORX MOV MOVD +syn keyword nasmInstructionStandard MOVQ MOVSB MOVSD MOVSQ MOVSW +syn keyword nasmInstructionStandard MOVSX MOVSXD MOVSX MOVZX MUL +syn keyword nasmInstructionStandard MWAIT MWAITX NEG NOP NOT +syn keyword nasmInstructionStandard OR OUT OUTSB OUTSD OUTSW +syn keyword nasmInstructionStandard PACKSSDW PACKSSWB PACKUSWB PADDB PADDD +syn keyword nasmInstructionStandard PADDSB PADDSW PADDUSB PADDUSW +syn keyword nasmInstructionStandard PADDW PAND PANDN PAUSE +syn keyword nasmInstructionStandard PAVGUSB PCMPEQB PCMPEQD PCMPEQW PCMPGTB +syn keyword nasmInstructionStandard PCMPGTD PCMPGTW PF2ID PFACC +syn keyword nasmInstructionStandard PFADD PFCMPEQ PFCMPGE PFCMPGT PFMAX +syn keyword nasmInstructionStandard PFMIN PFMUL PFRCP PFRCPIT1 PFRCPIT2 +syn keyword nasmInstructionStandard PFRSQIT1 PFRSQRT PFSUB PFSUBR PI2FD +syn keyword nasmInstructionStandard PMADDWD PMULHRWA +syn keyword nasmInstructionStandard PMULHW PMULLW +syn keyword nasmInstructionStandard POP POPA POPAD +syn keyword nasmInstructionStandard POPAW POPF POPFD POPFQ POPFW +syn keyword nasmInstructionStandard POR PREFETCH PREFETCHW PSLLD PSLLQ +syn keyword nasmInstructionStandard PSLLW PSRAD PSRAW PSRLD PSRLQ +syn keyword nasmInstructionStandard PSRLW PSUBB PSUBD PSUBSB +syn keyword nasmInstructionStandard PSUBSW PSUBUSB PSUBUSW PSUBW PUNPCKHBW +syn keyword nasmInstructionStandard PUNPCKHDQ PUNPCKHWD PUNPCKLBW PUNPCKLDQ PUNPCKLWD +syn keyword nasmInstructionStandard PUSH PUSHA PUSHAD PUSHAW PUSHF +syn keyword nasmInstructionStandard PUSHFD PUSHFQ PUSHFW PXOR RCL +syn keyword nasmInstructionStandard RCR +syn keyword nasmInstructionStandard RDTSCP RET RETF RETN RETW +syn keyword nasmInstructionStandard RETFW RETNW RETD RETFD RETND +syn keyword nasmInstructionStandard RETQ RETFQ RETNQ ROL ROR +syn keyword nasmInstructionStandard RSM RSTS +syn keyword nasmInstructionStandard SAHF SAL SALC SAR SBB +syn keyword nasmInstructionStandard SCASB SCASD SCASQ SCASW SFENCE +syn keyword nasmInstructionStandard SGDT SHL SHLD SHR SHRD +syn keyword nasmInstructionStandard SIDT SLDT SKINIT SMI +syn keyword nasmInstructionStandard SMSW STC STD STI +syn keyword nasmInstructionStandard STOSB STOSD STOSQ STOSW STR +syn keyword nasmInstructionStandard SUB SWAPGS +syn keyword nasmInstructionStandard SYSCALL SYSENTER SYSEXIT SYSRET TEST +syn keyword nasmInstructionStandard UD0 UD1 UD2B UD2 UD2A +syn keyword nasmInstructionStandard UMOV VERR VERW FWAIT WBINVD +syn keyword nasmInstructionStandard XADD XBTS XCHG +syn keyword nasmInstructionStandard XLATB XLAT XOR CMOVA CMOVAE +syn keyword nasmInstructionStandard CMOVB CMOVBE CMOVC CMOVE CMOVG +syn keyword nasmInstructionStandard CMOVGE CMOVL CMOVLE CMOVNA CMOVNAE +syn keyword nasmInstructionStandard CMOVNB CMOVNBE CMOVNC CMOVNE CMOVNG +syn keyword nasmInstructionStandard CMOVNGE CMOVNL CMOVNLE CMOVNO CMOVNP +syn keyword nasmInstructionStandard CMOVNS CMOVNZ CMOVO CMOVP CMOVPE +syn keyword nasmInstructionStandard CMOVPO CMOVS CMOVZ JA JAE +syn keyword nasmInstructionStandard JB JBE JC JCXZ JE +syn keyword nasmInstructionStandard JECXZ JG JGE JL JLE +syn keyword nasmInstructionStandard JNA JNAE JNB JNBE JNC +syn keyword nasmInstructionStandard JNE JNG JNGE JNL JNLE +syn keyword nasmInstructionStandard JNO JNP JNS JNZ JO +syn keyword nasmInstructionStandard JP JPE JPO JRCXZ JS +syn keyword nasmInstructionStandard JZ SETA SETAE SETB SETBE +syn keyword nasmInstructionStandard SETC SETE SETG SETGE SETL +syn keyword nasmInstructionStandard SETLE SETNA SETNAE SETNB SETNBE +syn keyword nasmInstructionStandard SETNC SETNE SETNG SETNGE SETNL +syn keyword nasmInstructionStandard SETNLE SETNO SETNP SETNS SETNZ +syn keyword nasmInstructionStandard SETO SETP SETPE SETPO SETS +syn keyword nasmInstructionStandard SETZ +" SIMD +syn keyword nasmInstructionSIMD ADDPS ADDSS ANDNPS ANDPS CMPEQPS +syn keyword nasmInstructionSIMD CMPEQSS CMPLEPS CMPLESS CMPLTPS CMPLTSS +syn keyword nasmInstructionSIMD CMPNEQPS CMPNEQSS CMPNLEPS CMPNLESS CMPNLTPS +syn keyword nasmInstructionSIMD CMPNLTSS CMPORDPS CMPORDSS CMPUNORDPS CMPUNORDSS +syn keyword nasmInstructionSIMD CMPPS CMPSS COMISS CVTPI2PS CVTPS2PI +syn keyword nasmInstructionSIMD CVTSI2SS CVTSS2SI CVTTPS2PI CVTTSS2SI DIVPS +syn keyword nasmInstructionSIMD DIVSS LDMXCSR MAXPS MAXSS MINPS +syn keyword nasmInstructionSIMD MINSS MOVAPS MOVHPS MOVLHPS MOVLPS +syn keyword nasmInstructionSIMD MOVHLPS MOVMSKPS MOVNTPS MOVSS MOVUPS +syn keyword nasmInstructionSIMD MULPS MULSS ORPS RCPPS RCPSS +syn keyword nasmInstructionSIMD RSQRTPS RSQRTSS SHUFPS SQRTPS SQRTSS +syn keyword nasmInstructionSIMD STMXCSR SUBPS SUBSS UCOMISS UNPCKHPS +syn keyword nasmInstructionSIMD UNPCKLPS XORPS +" SSE +syn keyword nasmInstructionSSE FXRSTOR FXRSTOR64 FXSAVE FXSAVE64 +" XSAVE +syn keyword nasmInstructionXSAVE XGETBV XSETBV XSAVE XSAVE64 XSAVEC +syn keyword nasmInstructionXSAVE XSAVEC64 XSAVEOPT XSAVEOPT64 XSAVES XSAVES64 +syn keyword nasmInstructionXSAVE XRSTOR XRSTOR64 XRSTORS XRSTORS64 +" MEM +syn keyword nasmInstructionMEM PREFETCHNTA PREFETCHT0 PREFETCHT1 PREFETCHT2 PREFETCHIT0 +syn keyword nasmInstructionMEM PREFETCHIT1 SFENCE +" MMX +syn keyword nasmInstructionMMX MASKMOVQ MOVNTQ PAVGB PAVGW PEXTRW +syn keyword nasmInstructionMMX PINSRW PMAXSW PMAXUB PMINSW PMINUB +syn keyword nasmInstructionMMX PMOVMSKB PMULHUW PSADBW PSHUFW +" 3DNOW +syn keyword nasmInstruction3DNOW PF2IW PFNACC PFPNACC PI2FW PSWAPD +" SSE2 +syn keyword nasmInstructionSSE2 MASKMOVDQU CLFLUSH MOVNTDQ MOVNTI MOVNTPD +syn keyword nasmInstructionSSE2 LFENCE MFENCE +" WMMX +syn keyword nasmInstructionWMMX MOVD MOVDQA MOVDQU MOVDQ2Q MOVQ +syn keyword nasmInstructionWMMX MOVQ2DQ PACKSSWB PACKSSDW PACKUSWB PADDB +syn keyword nasmInstructionWMMX PADDW PADDD PADDQ PADDSB PADDSW +syn keyword nasmInstructionWMMX PADDUSB PADDUSW PAND PANDN PAVGB +syn keyword nasmInstructionWMMX PAVGW PCMPEQB PCMPEQW PCMPEQD PCMPGTB +syn keyword nasmInstructionWMMX PCMPGTW PCMPGTD PEXTRW PINSRW PMADDWD +syn keyword nasmInstructionWMMX PMAXSW PMAXUB PMINSW PMINUB PMOVMSKB +syn keyword nasmInstructionWMMX PMULHUW PMULHW PMULLW PMULUDQ POR +syn keyword nasmInstructionWMMX PSADBW PSHUFD PSHUFHW PSHUFLW PSLLDQ +syn keyword nasmInstructionWMMX PSLLW PSLLD PSLLQ PSRAW PSRAD +syn keyword nasmInstructionWMMX PSRLDQ PSRLW PSRLD PSRLQ PSUBB +syn keyword nasmInstructionWMMX PSUBW PSUBD PSUBQ PSUBSB PSUBSW +syn keyword nasmInstructionWMMX PSUBUSB PSUBUSW PUNPCKHBW PUNPCKHWD PUNPCKHDQ +syn keyword nasmInstructionWMMX PUNPCKHQDQ PUNPCKLBW PUNPCKLWD PUNPCKLDQ PUNPCKLQDQ +syn keyword nasmInstructionWMMX PXOR +" WSSD +syn keyword nasmInstructionWSSD ADDPD ADDSD ANDNPD ANDPD CMPEQPD +syn keyword nasmInstructionWSSD CMPEQSD CMPLEPD CMPLESD CMPLTPD CMPLTSD +syn keyword nasmInstructionWSSD CMPNEQPD CMPNEQSD CMPNLEPD CMPNLESD CMPNLTPD +syn keyword nasmInstructionWSSD CMPNLTSD CMPORDPD CMPORDSD CMPUNORDPD CMPUNORDSD +syn keyword nasmInstructionWSSD CMPPD CMPSD COMISD CVTDQ2PD CVTDQ2PS +syn keyword nasmInstructionWSSD CVTPD2DQ CVTPD2PI CVTPD2PS CVTPI2PD CVTPS2DQ +syn keyword nasmInstructionWSSD CVTPS2PD CVTSD2SI CVTSD2SS CVTSI2SD CVTSS2SD +syn keyword nasmInstructionWSSD CVTTPD2PI CVTTPD2DQ CVTTPS2DQ CVTTSD2SI DIVPD +syn keyword nasmInstructionWSSD DIVSD MAXPD MAXSD MINPD MINSD +syn keyword nasmInstructionWSSD MOVAPD MOVHPD MOVLPD MOVMSKPD MOVSD +syn keyword nasmInstructionWSSD MOVUPD MULPD MULSD ORPD SHUFPD +syn keyword nasmInstructionWSSD SQRTPD SQRTSD SUBPD SUBSD UCOMISD +syn keyword nasmInstructionWSSD UNPCKHPD UNPCKLPD XORPD +" PRESSCOT +syn keyword nasmInstructionPRESSCOT ADDSUBPD ADDSUBPS HADDPD HADDPS HSUBPD +syn keyword nasmInstructionPRESSCOT HSUBPS LDDQU MOVDDUP MOVSHDUP MOVSLDUP +" VMXSVM +syn keyword nasmInstructionVMXSVM CLGI STGI VMCALL VMCLEAR VMFUNC +syn keyword nasmInstructionVMXSVM VMLAUNCH VMLOAD VMMCALL VMPTRLD VMPTRST +syn keyword nasmInstructionVMXSVM VMREAD VMRESUME VMRUN VMSAVE VMWRITE +syn keyword nasmInstructionVMXSVM VMXOFF VMXON +" PTVMX +syn keyword nasmInstructionPTVMX INVEPT INVVPID +" SEVSNPAMD +syn keyword nasmInstructionSEVSNPAMD PVALIDATE RMPADJUST VMGEXIT +" TEJAS +syn keyword nasmInstructionTEJAS PABSB PABSW PABSD PALIGNR PHADDW +syn keyword nasmInstructionTEJAS PHADDD PHADDSW PHSUBW PHSUBD PHSUBSW +syn keyword nasmInstructionTEJAS PMADDUBSW PMULHRSW PSHUFB PSIGNB PSIGNW +syn keyword nasmInstructionTEJAS PSIGND +" AMD_SSE4A +syn keyword nasmInstructionAMD_SSE4A EXTRQ INSERTQ MOVNTSD MOVNTSS +" BARCELONA +syn keyword nasmInstructionBARCELONA LZCNT +" PENRY +syn keyword nasmInstructionPENRY BLENDPD BLENDPS BLENDVPD BLENDVPS DPPD +syn keyword nasmInstructionPENRY DPPS EXTRACTPS INSERTPS MOVNTDQA MPSADBW +syn keyword nasmInstructionPENRY PACKUSDW PBLENDVB PBLENDW PCMPEQQ PEXTRB +syn keyword nasmInstructionPENRY PEXTRD PEXTRQ PEXTRW PHMINPOSUW PINSRB +syn keyword nasmInstructionPENRY PINSRD PINSRQ PMAXSB PMAXSD PMAXUD +syn keyword nasmInstructionPENRY PMAXUW PMINSB PMINSD PMINUD PMINUW +syn keyword nasmInstructionPENRY PMOVSXBW PMOVSXBD PMOVSXBQ PMOVSXWD PMOVSXWQ +syn keyword nasmInstructionPENRY PMOVSXDQ PMOVZXBW PMOVZXBD PMOVZXBQ PMOVZXWD +syn keyword nasmInstructionPENRY PMOVZXWQ PMOVZXDQ PMULDQ PMULLD PTEST +syn keyword nasmInstructionPENRY ROUNDPD ROUNDPS ROUNDSD ROUNDSS +" NEHALEM +syn keyword nasmInstructionNEHALEM CRC32 PCMPESTRI PCMPESTRM PCMPISTRI PCMPISTRM +syn keyword nasmInstructionNEHALEM PCMPGTQ POPCNT +" SMX +syn keyword nasmInstructionSMX GETSEC +" GEODE_3DNOW +syn keyword nasmInstructionGEODE_3DNOW PFRCPV PFRSQRTV +" INTEL_NEW +syn keyword nasmInstructionINTEL_NEW MOVBE +" AES +syn keyword nasmInstructionAES AESENC AESENCLAST AESDEC AESDECLAST AESIMC +syn keyword nasmInstructionAES AESKEYGENASSIST +" AVX_AES +syn keyword nasmInstructionAVX_AES VAESENC VAESENCLAST VAESDEC VAESDECLAST VAESIMC +syn keyword nasmInstructionAVX_AES VAESKEYGENASSIST +" INTEL_PUB +syn keyword nasmInstructionINTEL_PUB VAESENC VAESENCLAST VAESDEC VAESDECLAST VAESENC +syn keyword nasmInstructionINTEL_PUB VAESENCLAST VAESDEC VAESDECLAST VAESENC VAESENCLAST +syn keyword nasmInstructionINTEL_PUB VAESDEC VAESDECLAST +" AVX +syn keyword nasmInstructionAVX VADDPD VADDPS VADDSD VADDSS VADDSUBPD +syn keyword nasmInstructionAVX VADDSUBPS VANDPD VANDPS VANDNPD VANDNPS +syn keyword nasmInstructionAVX VBLENDPD VBLENDPS VBLENDVPD VBLENDVPS VBROADCASTSS +syn keyword nasmInstructionAVX VBROADCASTSD VBROADCASTF128 VCMPEQ_OSPD VCMPEQPD VCMPLT_OSPD +syn keyword nasmInstructionAVX VCMPLTPD VCMPLE_OSPD VCMPLEPD VCMPUNORD_QPD VCMPUNORDPD +syn keyword nasmInstructionAVX VCMPNEQ_UQPD VCMPNEQPD VCMPNLT_USPD VCMPNLTPD VCMPNLE_USPD +syn keyword nasmInstructionAVX VCMPNLEPD VCMPORD_QPD VCMPORDPD VCMPEQ_UQPD VCMPNGE_USPD +syn keyword nasmInstructionAVX VCMPNGEPD VCMPNGT_USPD VCMPNGTPD VCMPFALSE_OQPD VCMPFALSEPD +syn keyword nasmInstructionAVX VCMPNEQ_OQPD VCMPGE_OSPD VCMPGEPD VCMPGT_OSPD VCMPGTPD +syn keyword nasmInstructionAVX VCMPTRUE_UQPD VCMPTRUEPD VCMPEQ_OSPD VCMPLT_OQPD VCMPLE_OQPD +syn keyword nasmInstructionAVX VCMPUNORD_SPD VCMPNEQ_USPD VCMPNLT_UQPD VCMPNLE_UQPD VCMPORD_SPD +syn keyword nasmInstructionAVX VCMPEQ_USPD VCMPNGE_UQPD VCMPNGT_UQPD VCMPFALSE_OSPD VCMPNEQ_OSPD +syn keyword nasmInstructionAVX VCMPGE_OQPD VCMPGT_OQPD VCMPTRUE_USPD VCMPPD VCMPEQ_OSPS +syn keyword nasmInstructionAVX VCMPEQPS VCMPLT_OSPS VCMPLTPS VCMPLE_OSPS VCMPLEPS +syn keyword nasmInstructionAVX VCMPUNORD_QPS VCMPUNORDPS VCMPNEQ_UQPS VCMPNEQPS VCMPNLT_USPS +syn keyword nasmInstructionAVX VCMPNLTPS VCMPNLE_USPS VCMPNLEPS VCMPORD_QPS VCMPORDPS +syn keyword nasmInstructionAVX VCMPEQ_UQPS VCMPNGE_USPS VCMPNGEPS VCMPNGT_USPS VCMPNGTPS +syn keyword nasmInstructionAVX VCMPFALSE_OQPS VCMPFALSEPS VCMPNEQ_OQPS VCMPGE_OSPS VCMPGEPS +syn keyword nasmInstructionAVX VCMPGT_OSPS VCMPGTPS VCMPTRUE_UQPS VCMPTRUEPS VCMPEQ_OSPS +syn keyword nasmInstructionAVX VCMPLT_OQPS VCMPLE_OQPS VCMPUNORD_SPS VCMPNEQ_USPS VCMPNLT_UQPS +syn keyword nasmInstructionAVX VCMPNLE_UQPS VCMPORD_SPS VCMPEQ_USPS VCMPNGE_UQPS VCMPNGT_UQPS +syn keyword nasmInstructionAVX VCMPFALSE_OSPS VCMPNEQ_OSPS VCMPGE_OQPS VCMPGT_OQPS VCMPTRUE_USPS +syn keyword nasmInstructionAVX VCMPPS VCMPEQ_OSSD VCMPEQSD VCMPLT_OSSD VCMPLTSD +syn keyword nasmInstructionAVX VCMPLE_OSSD VCMPLESD VCMPUNORD_QSD VCMPUNORDSD VCMPNEQ_UQSD +syn keyword nasmInstructionAVX VCMPNEQSD VCMPNLT_USSD VCMPNLTSD VCMPNLE_USSD VCMPNLESD +syn keyword nasmInstructionAVX VCMPORD_QSD VCMPORDSD VCMPEQ_UQSD VCMPNGE_USSD VCMPNGESD +syn keyword nasmInstructionAVX VCMPNGT_USSD VCMPNGTSD VCMPFALSE_OQSD VCMPFALSESD VCMPNEQ_OQSD +syn keyword nasmInstructionAVX VCMPGE_OSSD VCMPGESD VCMPGT_OSSD VCMPGTSD VCMPTRUE_UQSD +syn keyword nasmInstructionAVX VCMPTRUESD VCMPEQ_OSSD VCMPLT_OQSD VCMPLE_OQSD VCMPUNORD_SSD +syn keyword nasmInstructionAVX VCMPNEQ_USSD VCMPNLT_UQSD VCMPNLE_UQSD VCMPORD_SSD VCMPEQ_USSD +syn keyword nasmInstructionAVX VCMPNGE_UQSD VCMPNGT_UQSD VCMPFALSE_OSSD VCMPNEQ_OSSD VCMPGE_OQSD +syn keyword nasmInstructionAVX VCMPGT_OQSD VCMPTRUE_USSD VCMPSD VCMPEQ_OSSS VCMPEQSS +syn keyword nasmInstructionAVX VCMPLT_OSSS VCMPLTSS VCMPLE_OSSS VCMPLESS VCMPUNORD_QSS +syn keyword nasmInstructionAVX VCMPUNORDSS VCMPNEQ_UQSS VCMPNEQSS VCMPNLT_USSS VCMPNLTSS +syn keyword nasmInstructionAVX VCMPNLE_USSS VCMPNLESS VCMPORD_QSS VCMPORDSS VCMPEQ_UQSS +syn keyword nasmInstructionAVX VCMPNGE_USSS VCMPNGESS VCMPNGT_USSS VCMPNGTSS VCMPFALSE_OQSS +syn keyword nasmInstructionAVX VCMPFALSESS VCMPNEQ_OQSS VCMPGE_OSSS VCMPGESS VCMPGT_OSSS +syn keyword nasmInstructionAVX VCMPGTSS VCMPTRUE_UQSS VCMPTRUESS VCMPEQ_OSSS VCMPLT_OQSS +syn keyword nasmInstructionAVX VCMPLE_OQSS VCMPUNORD_SSS VCMPNEQ_USSS VCMPNLT_UQSS VCMPNLE_UQSS +syn keyword nasmInstructionAVX VCMPORD_SSS VCMPEQ_USSS VCMPNGE_UQSS VCMPNGT_UQSS VCMPFALSE_OSSS +syn keyword nasmInstructionAVX VCMPNEQ_OSSS VCMPGE_OQSS VCMPGT_OQSS VCMPTRUE_USSS VCMPSS +syn keyword nasmInstructionAVX VCOMISD VCOMISS VCVTDQ2PD VCVTDQ2PS VCVTPD2DQ +syn keyword nasmInstructionAVX VCVTPD2PS VCVTPS2DQ VCVTPS2PD VCVTSD2SI VCVTSD2SS +syn keyword nasmInstructionAVX VCVTSI2SD VCVTSI2SS VCVTSS2SD VCVTSS2SI VCVTTPD2DQ +syn keyword nasmInstructionAVX VCVTTPS2DQ VCVTTSD2SI VCVTTSS2SI VDIVPD VDIVPS +syn keyword nasmInstructionAVX VDIVSD VDIVSS VDPPD VDPPS VEXTRACTF128 +syn keyword nasmInstructionAVX VEXTRACTPS VHADDPD VHADDPS VHSUBPD VHSUBPS +syn keyword nasmInstructionAVX VINSERTF128 VINSERTPS VLDDQU VLDQQU VLDDQU +syn keyword nasmInstructionAVX VLDMXCSR VMASKMOVDQU VMASKMOVPS VMASKMOVPD VMAXPD +syn keyword nasmInstructionAVX VMAXPS VMAXSD VMAXSS VMINPD VMINPS +syn keyword nasmInstructionAVX VMINSD VMINSS VMOVAPD VMOVAPS VMOVD +syn keyword nasmInstructionAVX VMOVQ VMOVDDUP VMOVDQA VMOVQQA VMOVDQA +syn keyword nasmInstructionAVX VMOVDQU VMOVQQU VMOVDQU VMOVHLPS VMOVHPD +syn keyword nasmInstructionAVX VMOVHPS VMOVLHPS VMOVLPD VMOVLPS VMOVMSKPD +syn keyword nasmInstructionAVX VMOVMSKPS VMOVNTDQ VMOVNTQQ VMOVNTDQ VMOVNTDQA +syn keyword nasmInstructionAVX VMOVNTPD VMOVNTPS VMOVSD VMOVSHDUP VMOVSLDUP +syn keyword nasmInstructionAVX VMOVSS VMOVUPD VMOVUPS VMPSADBW VMULPD +syn keyword nasmInstructionAVX VMULPS VMULSD VMULSS VORPD VORPS +syn keyword nasmInstructionAVX VPABSB VPABSW VPABSD VPACKSSWB VPACKSSDW +syn keyword nasmInstructionAVX VPACKUSWB VPACKUSDW VPADDB VPADDW VPADDD +syn keyword nasmInstructionAVX VPADDQ VPADDSB VPADDSW VPADDUSB VPADDUSW +syn keyword nasmInstructionAVX VPALIGNR VPAND VPANDN VPAVGB VPAVGW +syn keyword nasmInstructionAVX VPBLENDVB VPBLENDW VPCMPESTRI VPCMPESTRM VPCMPISTRI +syn keyword nasmInstructionAVX VPCMPISTRM VPCMPEQB VPCMPEQW VPCMPEQD VPCMPEQQ +syn keyword nasmInstructionAVX VPCMPGTB VPCMPGTW VPCMPGTD VPCMPGTQ VPERMILPD +syn keyword nasmInstructionAVX VPERMILPS VPERM2F128 VPEXTRB VPEXTRW VPEXTRD +syn keyword nasmInstructionAVX VPEXTRQ VPHADDW VPHADDD VPHADDSW VPHMINPOSUW +syn keyword nasmInstructionAVX VPHSUBW VPHSUBD VPHSUBSW VPINSRB VPINSRW +syn keyword nasmInstructionAVX VPINSRD VPINSRQ VPMADDWD VPMADDUBSW VPMAXSB +syn keyword nasmInstructionAVX VPMAXSW VPMAXSD VPMAXUB VPMAXUW VPMAXUD +syn keyword nasmInstructionAVX VPMINSB VPMINSW VPMINSD VPMINUB VPMINUW +syn keyword nasmInstructionAVX VPMINUD VPMOVMSKB VPMOVSXBW VPMOVSXBD VPMOVSXBQ +syn keyword nasmInstructionAVX VPMOVSXWD VPMOVSXWQ VPMOVSXDQ VPMOVZXBW VPMOVZXBD +syn keyword nasmInstructionAVX VPMOVZXBQ VPMOVZXWD VPMOVZXWQ VPMOVZXDQ VPMULHUW +syn keyword nasmInstructionAVX VPMULHRSW VPMULHW VPMULLW VPMULLD VPMULUDQ +syn keyword nasmInstructionAVX VPMULDQ VPOR VPSADBW VPSHUFB VPSHUFD +syn keyword nasmInstructionAVX VPSHUFHW VPSHUFLW VPSIGNB VPSIGNW VPSIGND +syn keyword nasmInstructionAVX VPSLLDQ VPSRLDQ VPSLLW VPSLLD VPSLLQ +syn keyword nasmInstructionAVX VPSRAW VPSRAD VPSRLW VPSRLD VPSRLQ +syn keyword nasmInstructionAVX VPTEST VPSUBB VPSUBW VPSUBD VPSUBQ +syn keyword nasmInstructionAVX VPSUBSB VPSUBSW VPSUBUSB VPSUBUSW VPUNPCKHBW +syn keyword nasmInstructionAVX VPUNPCKHWD VPUNPCKHDQ VPUNPCKHQDQ VPUNPCKLBW VPUNPCKLWD +syn keyword nasmInstructionAVX VPUNPCKLDQ VPUNPCKLQDQ VPXOR VRCPPS VRCPSS +syn keyword nasmInstructionAVX VRSQRTPS VRSQRTSS VROUNDPD VROUNDPS VROUNDSD +syn keyword nasmInstructionAVX VROUNDSS VSHUFPD VSHUFPS VSQRTPD VSQRTPS +syn keyword nasmInstructionAVX VSQRTSD VSQRTSS VSTMXCSR VSUBPD VSUBPS +syn keyword nasmInstructionAVX VSUBSD VSUBSS VTESTPS VTESTPD VUCOMISD +syn keyword nasmInstructionAVX VUCOMISS VUNPCKHPD VUNPCKHPS VUNPCKLPD VUNPCKLPS +syn keyword nasmInstructionAVX VXORPD VXORPS VZEROALL VZEROUPPER +" INTEL_CMUL +syn keyword nasmInstructionINTEL_CMUL PCLMULLQLQDQ PCLMULHQLQDQ PCLMULLQHQDQ PCLMULHQHQDQ PCLMULQDQ +" INTEL_AVX_CMUL +syn keyword nasmInstructionINTEL_AVX_CMUL VPCLMULLQLQDQ VPCLMULHQLQDQ VPCLMULLQHQDQ VPCLMULHQHQDQ VPCLMULQDQ +syn keyword nasmInstructionINTEL_AVX_CMUL VPCLMULLQLQDQ VPCLMULHQLQDQ VPCLMULLQHQDQ VPCLMULHQHQDQ VPCLMULQDQ +syn keyword nasmInstructionINTEL_AVX_CMUL VPCLMULLQLQDQ VPCLMULHQLQDQ VPCLMULLQHQDQ VPCLMULHQHQDQ VPCLMULQDQ +syn keyword nasmInstructionINTEL_AVX_CMUL VPCLMULLQLQDQ VPCLMULHQLQDQ VPCLMULLQHQDQ VPCLMULHQHQDQ VPCLMULQDQ +syn keyword nasmInstructionINTEL_AVX_CMUL VPCLMULLQLQDQ VPCLMULHQLQDQ VPCLMULLQHQDQ VPCLMULHQHQDQ VPCLMULQDQ +" INTEL_FMA +syn keyword nasmInstructionINTEL_FMA VFMADD132PS VFMADD132PD VFMADD312PS VFMADD312PD VFMADD213PS +syn keyword nasmInstructionINTEL_FMA VFMADD213PD VFMADD123PS VFMADD123PD VFMADD231PS VFMADD231PD +syn keyword nasmInstructionINTEL_FMA VFMADD321PS VFMADD321PD VFMADDSUB132PS VFMADDSUB132PD VFMADDSUB312PS +syn keyword nasmInstructionINTEL_FMA VFMADDSUB312PD VFMADDSUB213PS VFMADDSUB213PD VFMADDSUB123PS VFMADDSUB123PD +syn keyword nasmInstructionINTEL_FMA VFMADDSUB231PS VFMADDSUB231PD VFMADDSUB321PS VFMADDSUB321PD VFMSUB132PS +syn keyword nasmInstructionINTEL_FMA VFMSUB132PD VFMSUB312PS VFMSUB312PD VFMSUB213PS VFMSUB213PD +syn keyword nasmInstructionINTEL_FMA VFMSUB123PS VFMSUB123PD VFMSUB231PS VFMSUB231PD VFMSUB321PS +syn keyword nasmInstructionINTEL_FMA VFMSUB321PD VFMSUBADD132PS VFMSUBADD132PD VFMSUBADD312PS VFMSUBADD312PD +syn keyword nasmInstructionINTEL_FMA VFMSUBADD213PS VFMSUBADD213PD VFMSUBADD123PS VFMSUBADD123PD VFMSUBADD231PS +syn keyword nasmInstructionINTEL_FMA VFMSUBADD231PD VFMSUBADD321PS VFMSUBADD321PD VFNMADD132PS VFNMADD132PD +syn keyword nasmInstructionINTEL_FMA VFNMADD312PS VFNMADD312PD VFNMADD213PS VFNMADD213PD VFNMADD123PS +syn keyword nasmInstructionINTEL_FMA VFNMADD123PD VFNMADD231PS VFNMADD231PD VFNMADD321PS VFNMADD321PD +syn keyword nasmInstructionINTEL_FMA VFNMSUB132PS VFNMSUB132PD VFNMSUB312PS VFNMSUB312PD VFNMSUB213PS +syn keyword nasmInstructionINTEL_FMA VFNMSUB213PD VFNMSUB123PS VFNMSUB123PD VFNMSUB231PS VFNMSUB231PD +syn keyword nasmInstructionINTEL_FMA VFNMSUB321PS VFNMSUB321PD VFMADD132SS VFMADD132SD VFMADD312SS +syn keyword nasmInstructionINTEL_FMA VFMADD312SD VFMADD213SS VFMADD213SD VFMADD123SS VFMADD123SD +syn keyword nasmInstructionINTEL_FMA VFMADD231SS VFMADD231SD VFMADD321SS VFMADD321SD VFMSUB132SS +syn keyword nasmInstructionINTEL_FMA VFMSUB132SD VFMSUB312SS VFMSUB312SD VFMSUB213SS VFMSUB213SD +syn keyword nasmInstructionINTEL_FMA VFMSUB123SS VFMSUB123SD VFMSUB231SS VFMSUB231SD VFMSUB321SS +syn keyword nasmInstructionINTEL_FMA VFMSUB321SD VFNMADD132SS VFNMADD132SD VFNMADD312SS VFNMADD312SD +syn keyword nasmInstructionINTEL_FMA VFNMADD213SS VFNMADD213SD VFNMADD123SS VFNMADD123SD VFNMADD231SS +syn keyword nasmInstructionINTEL_FMA VFNMADD231SD VFNMADD321SS VFNMADD321SD VFNMSUB132SS VFNMSUB132SD +syn keyword nasmInstructionINTEL_FMA VFNMSUB312SS VFNMSUB312SD VFNMSUB213SS VFNMSUB213SD VFNMSUB123SS +syn keyword nasmInstructionINTEL_FMA VFNMSUB123SD VFNMSUB231SS VFNMSUB231SD VFNMSUB321SS VFNMSUB321SD +" INTEL_POST32 +syn keyword nasmInstructionINTEL_POST32 RDFSBASE RDGSBASE RDRAND WRFSBASE WRGSBASE +syn keyword nasmInstructionINTEL_POST32 VCVTPH2PS VCVTPS2PH ADCX ADOX RDSEED +" SUPERVISOR +syn keyword nasmInstructionSUPERVISOR CLAC STAC +" VIA_SECURITY +syn keyword nasmInstructionVIA_SECURITY XSTORE XCRYPTECB XCRYPTCBC XCRYPTCTR XCRYPTCFB +syn keyword nasmInstructionVIA_SECURITY XCRYPTOFB MONTMUL XSHA1 XSHA256 +" AMD_PROFILING +syn keyword nasmInstructionAMD_PROFILING LLWPCB SLWPCB LWPVAL LWPINS +" XOP_FMA4 +syn keyword nasmInstructionXOP_FMA4 VFMADDPD VFMADDPS VFMADDSD VFMADDSS VFMADDSUBPD +syn keyword nasmInstructionXOP_FMA4 VFMADDSUBPS VFMSUBADDPD VFMSUBADDPS VFMSUBPD VFMSUBPS +syn keyword nasmInstructionXOP_FMA4 VFMSUBSD VFMSUBSS VFNMADDPD VFNMADDPS VFNMADDSD +syn keyword nasmInstructionXOP_FMA4 VFNMADDSS VFNMSUBPD VFNMSUBPS VFNMSUBSD VFNMSUBSS +syn keyword nasmInstructionXOP_FMA4 VFRCZPD VFRCZPS VFRCZSD VFRCZSS VPCMOV +syn keyword nasmInstructionXOP_FMA4 VPCOMB VPCOMD VPCOMQ VPCOMUB VPCOMUD +syn keyword nasmInstructionXOP_FMA4 VPCOMUQ VPCOMUW VPCOMW VPHADDBD VPHADDBQ +syn keyword nasmInstructionXOP_FMA4 VPHADDBW VPHADDDQ VPHADDUBD VPHADDUBQ VPHADDUBW +syn keyword nasmInstructionXOP_FMA4 VPHADDUDQ VPHADDUWD VPHADDUWQ VPHADDWD VPHADDWQ +syn keyword nasmInstructionXOP_FMA4 VPHSUBBW VPHSUBDQ VPHSUBWD VPMACSDD VPMACSDQH +syn keyword nasmInstructionXOP_FMA4 VPMACSDQL VPMACSSDD VPMACSSDQH VPMACSSDQL VPMACSSWD +syn keyword nasmInstructionXOP_FMA4 VPMACSSWW VPMACSWD VPMACSWW VPMADCSSWD VPMADCSWD +syn keyword nasmInstructionXOP_FMA4 VPPERM VPROTB VPROTD VPROTQ VPROTW +syn keyword nasmInstructionXOP_FMA4 VPSHAB VPSHAD VPSHAQ VPSHAW VPSHLB +syn keyword nasmInstructionXOP_FMA4 VPSHLD VPSHLQ VPSHLW +" AVX2 +syn keyword nasmInstructionAVX2 VMPSADBW VPABSB VPABSW VPABSD VPACKSSWB +syn keyword nasmInstructionAVX2 VPACKSSDW VPACKUSDW VPACKUSWB VPADDB VPADDW +syn keyword nasmInstructionAVX2 VPADDD VPADDQ VPADDSB VPADDSW VPADDUSB +syn keyword nasmInstructionAVX2 VPADDUSW VPALIGNR VPAND VPANDN VPAVGB +syn keyword nasmInstructionAVX2 VPAVGW VPBLENDVB VPBLENDW VPCMPEQB VPCMPEQW +syn keyword nasmInstructionAVX2 VPCMPEQD VPCMPEQQ VPCMPGTB VPCMPGTW VPCMPGTD +syn keyword nasmInstructionAVX2 VPCMPGTQ VPHADDW VPHADDD VPHADDSW VPHSUBW +syn keyword nasmInstructionAVX2 VPHSUBD VPHSUBSW VPMADDUBSW VPMADDWD VPMAXSB +syn keyword nasmInstructionAVX2 VPMAXSW VPMAXSD VPMAXUB VPMAXUW VPMAXUD +syn keyword nasmInstructionAVX2 VPMINSB VPMINSW VPMINSD VPMINUB VPMINUW +syn keyword nasmInstructionAVX2 VPMINUD VPMOVMSKB VPMOVSXBW VPMOVSXBD VPMOVSXBQ +syn keyword nasmInstructionAVX2 VPMOVSXWD VPMOVSXWQ VPMOVSXDQ VPMOVZXBW VPMOVZXBD +syn keyword nasmInstructionAVX2 VPMOVZXBQ VPMOVZXWD VPMOVZXWQ VPMOVZXDQ VPMULDQ +syn keyword nasmInstructionAVX2 VPMULHRSW VPMULHUW VPMULHW VPMULLW VPMULLD +syn keyword nasmInstructionAVX2 VPMULUDQ VPOR VPSADBW VPSHUFB VPSHUFD +syn keyword nasmInstructionAVX2 VPSHUFHW VPSHUFLW VPSIGNB VPSIGNW VPSIGND +syn keyword nasmInstructionAVX2 VPSLLDQ VPSLLW VPSLLD VPSLLQ VPSRAW +syn keyword nasmInstructionAVX2 VPSRAD VPSRLDQ VPSRLW VPSRLD VPSRLQ +syn keyword nasmInstructionAVX2 VPSUBB VPSUBW VPSUBD VPSUBQ VPSUBSB +syn keyword nasmInstructionAVX2 VPSUBSW VPSUBUSB VPSUBUSW VPUNPCKHBW VPUNPCKHWD +syn keyword nasmInstructionAVX2 VPUNPCKHDQ VPUNPCKHQDQ VPUNPCKLBW VPUNPCKLWD VPUNPCKLDQ +syn keyword nasmInstructionAVX2 VPUNPCKLQDQ VPXOR VMOVNTDQA VBROADCASTSS VBROADCASTSD +syn keyword nasmInstructionAVX2 VBROADCASTI128 VPBLENDD VPBROADCASTB VPBROADCASTW VPBROADCASTD +syn keyword nasmInstructionAVX2 VPBROADCASTQ VPERMD VPERMPD VPERMPS VPERMQ +syn keyword nasmInstructionAVX2 VPERM2I128 VEXTRACTI128 VINSERTI128 VPMASKMOVD VPMASKMOVQ +syn keyword nasmInstructionAVX2 VPMASKMOVD VPMASKMOVQ VPSLLVD VPSLLVQ VPSLLVD +syn keyword nasmInstructionAVX2 VPSLLVQ VPSRAVD VPSRLVD VPSRLVQ VPSRLVD +syn keyword nasmInstructionAVX2 VPSRLVQ VGATHERDPD VGATHERQPD VGATHERDPD VGATHERQPD +syn keyword nasmInstructionAVX2 VGATHERDPS VGATHERQPS VGATHERDPS VGATHERQPS VPGATHERDD +syn keyword nasmInstructionAVX2 VPGATHERQD VPGATHERDD VPGATHERQD VPGATHERDQ VPGATHERQQ +syn keyword nasmInstructionAVX2 VPGATHERDQ VPGATHERQQ +" TRANSACTIONS +syn keyword nasmInstructionTRANSACTIONS XABORT XBEGIN XEND XTEST +" BMI_ABM +syn keyword nasmInstructionBMI_ABM ANDN BEXTR BLCI BLCIC BLSI +syn keyword nasmInstructionBMI_ABM BLSIC BLCFILL BLSFILL BLCMSK BLSMSK +syn keyword nasmInstructionBMI_ABM BLSR BLCS BZHI MULX PDEP +syn keyword nasmInstructionBMI_ABM PEXT RORX SARX SHLX SHRX +syn keyword nasmInstructionBMI_ABM TZCNT TZMSK T1MSKC PREFETCHWT1 +" MPE +syn keyword nasmInstructionMPE BNDMK BNDCL BNDCU BNDCN BNDMOV +syn keyword nasmInstructionMPE BNDLDX BNDSTX +" SHA +syn keyword nasmInstructionSHA SHA1MSG1 SHA1MSG2 SHA1NEXTE SHA1RNDS4 SHA256MSG1 +syn keyword nasmInstructionSHA SHA256MSG2 SHA256RNDS2 VSHA512MSG1 VSHA512MSG2 VSHA512RNDS2 +" SM3 +syn keyword nasmInstructionSM3 VSM3MSG1 VSM3MSG2 VSM3RNDS2 +" SM4 +syn keyword nasmInstructionSM4 VSM4KEY4 VSM4RNDS4 +" AVX_NOEXCEPT +syn keyword nasmInstructionAVX_NOEXCEPT VBCSTNEBF16PS VBCSTNESH2PS VCVTNEEBF162PS VCVTNEEPH2PS VCVTNEOBF162PS +syn keyword nasmInstructionAVX_NOEXCEPT VCVTNEOPH2PS VCVTNEPS2BF16 +" AVX_VECTOR_NN +syn keyword nasmInstructionAVX_VECTOR_NN VPDPBSSD VPDPBSSDS VPDPBSUD VPDPBSUDS VPDPBUUD +syn keyword nasmInstructionAVX_VECTOR_NN VPDPBUUDS +" AVX_IFMA +syn keyword nasmInstructionAVX_IFMA VPMADD52HUQ VPMADD52LUQ +" AVX512_MASK +syn keyword nasmInstructionAVX512_MASK KADDB KADDD KADDQ KADDW KANDB +syn keyword nasmInstructionAVX512_MASK KANDD KANDNB KANDND KANDNQ KANDNW +syn keyword nasmInstructionAVX512_MASK KANDQ KANDW KMOVB KMOVD KMOVQ +syn keyword nasmInstructionAVX512_MASK KMOVW KNOTB KNOTD KNOTQ KNOTW +syn keyword nasmInstructionAVX512_MASK KORB KORD KORQ KORW KORTESTB +syn keyword nasmInstructionAVX512_MASK KORTESTD KORTESTQ KORTESTW KSHIFTLB KSHIFTLD +syn keyword nasmInstructionAVX512_MASK KSHIFTLQ KSHIFTLW KSHIFTRB KSHIFTRD KSHIFTRQ +syn keyword nasmInstructionAVX512_MASK KSHIFTRW KTESTB KTESTD KTESTQ KTESTW +syn keyword nasmInstructionAVX512_MASK KUNPCKBW KUNPCKDQ KUNPCKWD KXNORB KXNORD +syn keyword nasmInstructionAVX512_MASK KXNORQ KXNORW KXORB KXORD KXORQ +syn keyword nasmInstructionAVX512_MASK KXORW +" AVX512_MASK_REG +syn keyword nasmInstructionAVX512_MASK_REG KADD KAND KANDN KAND KMOV +syn keyword nasmInstructionAVX512_MASK_REG KNOT KOR KORTEST KSHIFTL KSHIFTR +syn keyword nasmInstructionAVX512_MASK_REG KTEST KUNPCK KXNOR KXOR +" AVX512 +syn keyword nasmInstructionAVX512 VADDPD VADDPS VADDSD VADDSS VALIGND +syn keyword nasmInstructionAVX512 VALIGNQ VANDNPD VANDNPS VANDPD VANDPS +syn keyword nasmInstructionAVX512 VBLENDMPD VBLENDMPS VBROADCASTF32X2 VBROADCASTF32X4 VBROADCASTF32X8 +syn keyword nasmInstructionAVX512 VBROADCASTF64X2 VBROADCASTF64X4 VBROADCASTI32X2 VBROADCASTI32X4 VBROADCASTI32X8 +syn keyword nasmInstructionAVX512 VBROADCASTI64X2 VBROADCASTI64X4 VBROADCASTSD VBROADCASTSS VCMPEQPD +syn keyword nasmInstructionAVX512 VCMPEQPS VCMPEQSD VCMPEQSS VCMPEQ_OQPD VCMPEQ_OQPS +syn keyword nasmInstructionAVX512 VCMPEQ_OQSD VCMPEQ_OQSS VCMPLTPD VCMPLTPS VCMPLTSD +syn keyword nasmInstructionAVX512 VCMPLTSS VCMPLT_OSPD VCMPLT_OSPS VCMPLT_OSSD VCMPLT_OSSS +syn keyword nasmInstructionAVX512 VCMPLEPD VCMPLEPS VCMPLESD VCMPLESS VCMPLE_OSPD +syn keyword nasmInstructionAVX512 VCMPLE_OSPS VCMPLE_OSSD VCMPLE_OSSS VCMPUNORDPD VCMPUNORDPS +syn keyword nasmInstructionAVX512 VCMPUNORDSD VCMPUNORDSS VCMPUNORD_QPD VCMPUNORD_QPS VCMPUNORD_QSD +syn keyword nasmInstructionAVX512 VCMPUNORD_QSS VCMPNEQPD VCMPNEQPS VCMPNEQSD VCMPNEQSS +syn keyword nasmInstructionAVX512 VCMPNEQ_UQPD VCMPNEQ_UQPS VCMPNEQ_UQSD VCMPNEQ_UQSS VCMPNLTPD +syn keyword nasmInstructionAVX512 VCMPNLTPS VCMPNLTSD VCMPNLTSS VCMPNLT_USPD VCMPNLT_USPS +syn keyword nasmInstructionAVX512 VCMPNLT_USSD VCMPNLT_USSS VCMPNLEPD VCMPNLEPS VCMPNLESD +syn keyword nasmInstructionAVX512 VCMPNLESS VCMPNLE_USPD VCMPNLE_USPS VCMPNLE_USSD VCMPNLE_USSS +syn keyword nasmInstructionAVX512 VCMPORDPD VCMPORDPS VCMPORDSD VCMPORDSS VCMPORD_QPD +syn keyword nasmInstructionAVX512 VCMPORD_QPS VCMPORD_QSD VCMPORD_QSS VCMPEQ_UQPD VCMPEQ_UQPS +syn keyword nasmInstructionAVX512 VCMPEQ_UQSD VCMPEQ_UQSS VCMPNGEPD VCMPNGEPS VCMPNGESD +syn keyword nasmInstructionAVX512 VCMPNGESS VCMPNGE_USPD VCMPNGE_USPS VCMPNGE_USSD VCMPNGE_USSS +syn keyword nasmInstructionAVX512 VCMPNGTPD VCMPNGTPS VCMPNGTSD VCMPNGTSS VCMPNGT_USPD +syn keyword nasmInstructionAVX512 VCMPNGT_USPS VCMPNGT_USSD VCMPNGT_USSS VCMPFALSEPD VCMPFALSEPS +syn keyword nasmInstructionAVX512 VCMPFALSESD VCMPFALSESS VCMPFALSE_OQPD VCMPFALSE_OQPS VCMPFALSE_OQSD +syn keyword nasmInstructionAVX512 VCMPFALSE_OQSS VCMPNEQ_OQPD VCMPNEQ_OQPS VCMPNEQ_OQSD VCMPNEQ_OQSS +syn keyword nasmInstructionAVX512 VCMPGEPD VCMPGEPS VCMPGESD VCMPGESS VCMPGE_OSPD +syn keyword nasmInstructionAVX512 VCMPGE_OSPS VCMPGE_OSSD VCMPGE_OSSS VCMPGTPD VCMPGTPS +syn keyword nasmInstructionAVX512 VCMPGTSD VCMPGTSS VCMPGT_OSPD VCMPGT_OSPS VCMPGT_OSSD +syn keyword nasmInstructionAVX512 VCMPGT_OSSS VCMPTRUEPD VCMPTRUEPS VCMPTRUESD VCMPTRUESS +syn keyword nasmInstructionAVX512 VCMPTRUE_UQPD VCMPTRUE_UQPS VCMPTRUE_UQSD VCMPTRUE_UQSS VCMPEQ_OSPD +syn keyword nasmInstructionAVX512 VCMPEQ_OSPS VCMPEQ_OSSD VCMPEQ_OSSS VCMPLT_OQPD VCMPLT_OQPS +syn keyword nasmInstructionAVX512 VCMPLT_OQSD VCMPLT_OQSS VCMPLE_OQPD VCMPLE_OQPS VCMPLE_OQSD +syn keyword nasmInstructionAVX512 VCMPLE_OQSS VCMPUNORD_SPD VCMPUNORD_SPS VCMPUNORD_SSD VCMPUNORD_SSS +syn keyword nasmInstructionAVX512 VCMPNEQ_USPD VCMPNEQ_USPS VCMPNEQ_USSD VCMPNEQ_USSS VCMPNLT_UQPD +syn keyword nasmInstructionAVX512 VCMPNLT_UQPS VCMPNLT_UQSD VCMPNLT_UQSS VCMPNLE_UQPD VCMPNLE_UQPS +syn keyword nasmInstructionAVX512 VCMPNLE_UQSD VCMPNLE_UQSS VCMPORD_SPD VCMPORD_SPS VCMPORD_SSD +syn keyword nasmInstructionAVX512 VCMPORD_SSS VCMPEQ_USPD VCMPEQ_USPS VCMPEQ_USSD VCMPEQ_USSS +syn keyword nasmInstructionAVX512 VCMPNGE_UQPD VCMPNGE_UQPS VCMPNGE_UQSD VCMPNGE_UQSS VCMPNGT_UQPD +syn keyword nasmInstructionAVX512 VCMPNGT_UQPS VCMPNGT_UQSD VCMPNGT_UQSS VCMPFALSE_OSPD VCMPFALSE_OSPS +syn keyword nasmInstructionAVX512 VCMPFALSE_OSSD VCMPFALSE_OSSS VCMPNEQ_OSPD VCMPNEQ_OSPS VCMPNEQ_OSSD +syn keyword nasmInstructionAVX512 VCMPNEQ_OSSS VCMPGE_OQPD VCMPGE_OQPS VCMPGE_OQSD VCMPGE_OQSS +syn keyword nasmInstructionAVX512 VCMPGT_OQPD VCMPGT_OQPS VCMPGT_OQSD VCMPGT_OQSS VCMPTRUE_USPD +syn keyword nasmInstructionAVX512 VCMPTRUE_USPS VCMPTRUE_USSD VCMPTRUE_USSS VCMPPD VCMPPS +syn keyword nasmInstructionAVX512 VCMPSD VCMPSS VCOMISD VCOMISS VCOMPRESSPD +syn keyword nasmInstructionAVX512 VCOMPRESSPS VCVTDQ2PD VCVTDQ2PS VCVTPD2DQ VCVTPD2PS +syn keyword nasmInstructionAVX512 VCVTPD2QQ VCVTPD2UDQ VCVTPD2UQQ VCVTPH2PS VCVTPS2DQ +syn keyword nasmInstructionAVX512 VCVTPS2PD VCVTPS2PH VCVTPS2QQ VCVTPS2UDQ VCVTPS2UQQ +syn keyword nasmInstructionAVX512 VCVTQQ2PD VCVTQQ2PS VCVTSD2SI VCVTSD2SS VCVTSD2USI +syn keyword nasmInstructionAVX512 VCVTSI2SD VCVTSI2SS VCVTSS2SD VCVTSS2SI VCVTSS2USI +syn keyword nasmInstructionAVX512 VCVTTPD2DQ VCVTTPD2QQ VCVTTPD2UDQ VCVTTPD2UQQ VCVTTPS2DQ +syn keyword nasmInstructionAVX512 VCVTTPS2QQ VCVTTPS2UDQ VCVTTPS2UQQ VCVTTSD2SI VCVTTSD2USI +syn keyword nasmInstructionAVX512 VCVTTSS2SI VCVTTSS2USI VCVTUDQ2PD VCVTUDQ2PS VCVTUQQ2PD +syn keyword nasmInstructionAVX512 VCVTUQQ2PS VCVTUSI2SD VCVTUSI2SS VDBPSADBW VDIVPD +syn keyword nasmInstructionAVX512 VDIVPS VDIVSD VDIVSS VEXP2PD VEXP2PS +syn keyword nasmInstructionAVX512 VEXPANDPD VEXPANDPS VEXTRACTF32X4 VEXTRACTF32X8 VEXTRACTF64X2 +syn keyword nasmInstructionAVX512 VEXTRACTF64X4 VEXTRACTI32X4 VEXTRACTI32X8 VEXTRACTI64X2 VEXTRACTI64X4 +syn keyword nasmInstructionAVX512 VEXTRACTPS VFIXUPIMMPD VFIXUPIMMPS VFIXUPIMMSD VFIXUPIMMSS +syn keyword nasmInstructionAVX512 VFMADD132PD VFMADD132PS VFMADD132SD VFMADD132SS VFMADD213PD +syn keyword nasmInstructionAVX512 VFMADD213PS VFMADD213SD VFMADD213SS VFMADD231PD VFMADD231PS +syn keyword nasmInstructionAVX512 VFMADD231SD VFMADD231SS VFMADDSUB132PD VFMADDSUB132PS VFMADDSUB213PD +syn keyword nasmInstructionAVX512 VFMADDSUB213PS VFMADDSUB231PD VFMADDSUB231PS VFMSUB132PD VFMSUB132PS +syn keyword nasmInstructionAVX512 VFMSUB132SD VFMSUB132SS VFMSUB213PD VFMSUB213PS VFMSUB213SD +syn keyword nasmInstructionAVX512 VFMSUB213SS VFMSUB231PD VFMSUB231PS VFMSUB231SD VFMSUB231SS +syn keyword nasmInstructionAVX512 VFMSUBADD132PD VFMSUBADD132PS VFMSUBADD213PD VFMSUBADD213PS VFMSUBADD231PD +syn keyword nasmInstructionAVX512 VFMSUBADD231PS VFNMADD132PD VFNMADD132PS VFNMADD132SD VFNMADD132SS +syn keyword nasmInstructionAVX512 VFNMADD213PD VFNMADD213PS VFNMADD213SD VFNMADD213SS VFNMADD231PD +syn keyword nasmInstructionAVX512 VFNMADD231PS VFNMADD231SD VFNMADD231SS VFNMSUB132PD VFNMSUB132PS +syn keyword nasmInstructionAVX512 VFNMSUB132SD VFNMSUB132SS VFNMSUB213PD VFNMSUB213PS VFNMSUB213SD +syn keyword nasmInstructionAVX512 VFNMSUB213SS VFNMSUB231PD VFNMSUB231PS VFNMSUB231SD VFNMSUB231SS +syn keyword nasmInstructionAVX512 VFPCLASSPD VFPCLASSPS VFPCLASSSD VFPCLASSSS VGATHERDPD +syn keyword nasmInstructionAVX512 VGATHERDPS VGATHERPF0DPD VGATHERPF0DPS VGATHERPF0QPD VGATHERPF0QPS +syn keyword nasmInstructionAVX512 VGATHERPF1DPD VGATHERPF1DPS VGATHERPF1QPD VGATHERPF1QPS VGATHERQPD +syn keyword nasmInstructionAVX512 VGATHERQPS VGETEXPPD VGETEXPPS VGETEXPSD VGETEXPSS +syn keyword nasmInstructionAVX512 VGETMANTPD VGETMANTPS VGETMANTSD VGETMANTSS VINSERTF32X4 +syn keyword nasmInstructionAVX512 VINSERTF32X8 VINSERTF64X2 VINSERTF64X4 VINSERTI32X4 VINSERTI32X8 +syn keyword nasmInstructionAVX512 VINSERTI64X2 VINSERTI64X4 VINSERTPS VMAXPD VMAXPS +syn keyword nasmInstructionAVX512 VMAXSD VMAXSS VMINPD VMINPS VMINSD +syn keyword nasmInstructionAVX512 VMINSS VMOVAPD VMOVAPS VMOVD VMOVDDUP +syn keyword nasmInstructionAVX512 VMOVDQA32 VMOVDQA64 VMOVDQU16 VMOVDQU32 VMOVDQU64 +syn keyword nasmInstructionAVX512 VMOVDQU8 VMOVHLPS VMOVHPD VMOVHPS VMOVLHPS +syn keyword nasmInstructionAVX512 VMOVLPD VMOVLPS VMOVNTDQ VMOVNTDQA VMOVNTPD +syn keyword nasmInstructionAVX512 VMOVNTPS VMOVQ VMOVSD VMOVSHDUP VMOVSLDUP +syn keyword nasmInstructionAVX512 VMOVSS VMOVUPD VMOVUPS VMULPD VMULPS +syn keyword nasmInstructionAVX512 VMULSD VMULSS VORPD VORPS VPABSB +syn keyword nasmInstructionAVX512 VPABSD VPABSQ VPABSW VPACKSSDW VPACKSSWB +syn keyword nasmInstructionAVX512 VPACKUSDW VPACKUSWB VPADDB VPADDD VPADDQ +syn keyword nasmInstructionAVX512 VPADDSB VPADDSW VPADDUSB VPADDUSW VPADDW +syn keyword nasmInstructionAVX512 VPALIGNR VPANDD VPANDND VPANDNQ VPANDQ +syn keyword nasmInstructionAVX512 VPAVGB VPAVGW VPBLENDMB VPBLENDMD VPBLENDMQ +syn keyword nasmInstructionAVX512 VPBLENDMW VPBROADCASTB VPBROADCASTD VPBROADCASTMB2Q VPBROADCASTMW2D +syn keyword nasmInstructionAVX512 VPBROADCASTQ VPBROADCASTW VPCMPEQB VPCMPEQD VPCMPEQQ +syn keyword nasmInstructionAVX512 VPCMPEQW VPCMPGTB VPCMPGTD VPCMPGTQ VPCMPGTW +syn keyword nasmInstructionAVX512 VPCMPEQB VPCMPEQD VPCMPEQQ VPCMPEQUB VPCMPEQUD +syn keyword nasmInstructionAVX512 VPCMPEQUQ VPCMPEQUW VPCMPEQW VPCMPGEB VPCMPGED +syn keyword nasmInstructionAVX512 VPCMPGEQ VPCMPGEUB VPCMPGEUD VPCMPGEUQ VPCMPGEUW +syn keyword nasmInstructionAVX512 VPCMPGEW VPCMPGTB VPCMPGTD VPCMPGTQ VPCMPGTUB +syn keyword nasmInstructionAVX512 VPCMPGTUD VPCMPGTUQ VPCMPGTUW VPCMPGTW VPCMPLEB +syn keyword nasmInstructionAVX512 VPCMPLED VPCMPLEQ VPCMPLEUB VPCMPLEUD VPCMPLEUQ +syn keyword nasmInstructionAVX512 VPCMPLEUW VPCMPLEW VPCMPLTB VPCMPLTD VPCMPLTQ +syn keyword nasmInstructionAVX512 VPCMPLTUB VPCMPLTUD VPCMPLTUQ VPCMPLTUW VPCMPLTW +syn keyword nasmInstructionAVX512 VPCMPNEQB VPCMPNEQD VPCMPNEQQ VPCMPNEQUB VPCMPNEQUD +syn keyword nasmInstructionAVX512 VPCMPNEQUQ VPCMPNEQUW VPCMPNEQW VPCMPNGTB VPCMPNGTD +syn keyword nasmInstructionAVX512 VPCMPNGTQ VPCMPNGTUB VPCMPNGTUD VPCMPNGTUQ VPCMPNGTUW +syn keyword nasmInstructionAVX512 VPCMPNGTW VPCMPNLEB VPCMPNLED VPCMPNLEQ VPCMPNLEUB +syn keyword nasmInstructionAVX512 VPCMPNLEUD VPCMPNLEUQ VPCMPNLEUW VPCMPNLEW VPCMPNLTB +syn keyword nasmInstructionAVX512 VPCMPNLTD VPCMPNLTQ VPCMPNLTUB VPCMPNLTUD VPCMPNLTUQ +syn keyword nasmInstructionAVX512 VPCMPNLTUW VPCMPNLTW VPCMPB VPCMPD VPCMPQ +syn keyword nasmInstructionAVX512 VPCMPUB VPCMPUD VPCMPUQ VPCMPUW VPCMPW +syn keyword nasmInstructionAVX512 VPCOMPRESSD VPCOMPRESSQ VPCONFLICTD VPCONFLICTQ VPERMB +syn keyword nasmInstructionAVX512 VPERMD VPERMI2B VPERMI2D VPERMI2PD VPERMI2PS +syn keyword nasmInstructionAVX512 VPERMI2Q VPERMI2W VPERMILPD VPERMILPS VPERMPD +syn keyword nasmInstructionAVX512 VPERMPS VPERMQ VPERMT2B VPERMT2D VPERMT2PD +syn keyword nasmInstructionAVX512 VPERMT2PS VPERMT2Q VPERMT2W VPERMW VPEXPANDD +syn keyword nasmInstructionAVX512 VPEXPANDQ VPEXTRB VPEXTRD VPEXTRQ VPEXTRW +syn keyword nasmInstructionAVX512 VPGATHERDD VPGATHERDQ VPGATHERQD VPGATHERQQ VPINSRB +syn keyword nasmInstructionAVX512 VPINSRD VPINSRQ VPINSRW VPLZCNTD VPLZCNTQ +syn keyword nasmInstructionAVX512 VPMADD52HUQ VPMADD52LUQ VPMADDUBSW VPMADDWD VPMAXSB +syn keyword nasmInstructionAVX512 VPMAXSD VPMAXSQ VPMAXSW VPMAXUB VPMAXUD +syn keyword nasmInstructionAVX512 VPMAXUQ VPMAXUW VPMINSB VPMINSD VPMINSQ +syn keyword nasmInstructionAVX512 VPMINSW VPMINUB VPMINUD VPMINUQ VPMINUW +syn keyword nasmInstructionAVX512 VPMOVB2M VPMOVD2M VPMOVDB VPMOVDW VPMOVM2B +syn keyword nasmInstructionAVX512 VPMOVM2D VPMOVM2Q VPMOVM2W VPMOVQ2M VPMOVQB +syn keyword nasmInstructionAVX512 VPMOVQD VPMOVQW VPMOVSDB VPMOVSDW VPMOVSQB +syn keyword nasmInstructionAVX512 VPMOVSQD VPMOVSQW VPMOVSWB VPMOVSXBD VPMOVSXBQ +syn keyword nasmInstructionAVX512 VPMOVSXBW VPMOVSXDQ VPMOVSXWD VPMOVSXWQ VPMOVUSDB +syn keyword nasmInstructionAVX512 VPMOVUSDW VPMOVUSQB VPMOVUSQD VPMOVUSQW VPMOVUSWB +syn keyword nasmInstructionAVX512 VPMOVW2M VPMOVWB VPMOVZXBD VPMOVZXBQ VPMOVZXBW +syn keyword nasmInstructionAVX512 VPMOVZXDQ VPMOVZXWD VPMOVZXWQ VPMULDQ VPMULHRSW +syn keyword nasmInstructionAVX512 VPMULHUW VPMULHW VPMULLD VPMULLQ VPMULLW +syn keyword nasmInstructionAVX512 VPMULTISHIFTQB VPMULUDQ VPORD VPORQ VPROLD +syn keyword nasmInstructionAVX512 VPROLQ VPROLVD VPROLVQ VPRORD VPRORQ +syn keyword nasmInstructionAVX512 VPRORVD VPRORVQ VPSADBW VPSCATTERDD VPSCATTERDQ +syn keyword nasmInstructionAVX512 VPSCATTERQD VPSCATTERQQ VPSHUFB VPSHUFD VPSHUFHW +syn keyword nasmInstructionAVX512 VPSHUFLW VPSLLD VPSLLDQ VPSLLQ VPSLLVD +syn keyword nasmInstructionAVX512 VPSLLVQ VPSLLVW VPSLLW VPSRAD VPSRAQ +syn keyword nasmInstructionAVX512 VPSRAVD VPSRAVQ VPSRAVW VPSRAW VPSRLD +syn keyword nasmInstructionAVX512 VPSRLDQ VPSRLQ VPSRLVD VPSRLVQ VPSRLVW +syn keyword nasmInstructionAVX512 VPSRLW VPSUBB VPSUBD VPSUBQ VPSUBSB +syn keyword nasmInstructionAVX512 VPSUBSW VPSUBUSB VPSUBUSW VPSUBW VPTERNLOGD +syn keyword nasmInstructionAVX512 VPTERNLOGQ VPTESTMB VPTESTMD VPTESTMQ VPTESTMW +syn keyword nasmInstructionAVX512 VPTESTNMB VPTESTNMD VPTESTNMQ VPTESTNMW VPUNPCKHBW +syn keyword nasmInstructionAVX512 VPUNPCKHDQ VPUNPCKHQDQ VPUNPCKHWD VPUNPCKLBW VPUNPCKLDQ +syn keyword nasmInstructionAVX512 VPUNPCKLQDQ VPUNPCKLWD VPXORD VPXORQ VRANGEPD +syn keyword nasmInstructionAVX512 VRANGEPS VRANGESD VRANGESS VRCP14PD VRCP14PS +syn keyword nasmInstructionAVX512 VRCP14SD VRCP14SS VRCP28PD VRCP28PS VRCP28SD +syn keyword nasmInstructionAVX512 VRCP28SS VREDUCEPD VREDUCEPS VREDUCESD VREDUCESS +syn keyword nasmInstructionAVX512 VRNDSCALEPD VRNDSCALEPS VRNDSCALESD VRNDSCALESS VRSQRT14PD +syn keyword nasmInstructionAVX512 VRSQRT14PS VRSQRT14SD VRSQRT14SS VRSQRT28PD VRSQRT28PS +syn keyword nasmInstructionAVX512 VRSQRT28SD VRSQRT28SS VSCALEFPD VSCALEFPS VSCALEFSD +syn keyword nasmInstructionAVX512 VSCALEFSS VSCATTERDPD VSCATTERDPS VSCATTERPF0DPD VSCATTERPF0DPS +syn keyword nasmInstructionAVX512 VSCATTERPF0QPD VSCATTERPF0QPS VSCATTERPF1DPD VSCATTERPF1DPS VSCATTERPF1QPD +syn keyword nasmInstructionAVX512 VSCATTERPF1QPS VSCATTERQPD VSCATTERQPS VSHUFF32X4 VSHUFF64X2 +syn keyword nasmInstructionAVX512 VSHUFI32X4 VSHUFI64X2 VSHUFPD VSHUFPS VSQRTPD +syn keyword nasmInstructionAVX512 VSQRTPS VSQRTSD VSQRTSS VSUBPD VSUBPS +syn keyword nasmInstructionAVX512 VSUBSD VSUBSS VUCOMISD VUCOMISS VUNPCKHPD +syn keyword nasmInstructionAVX512 VUNPCKHPS VUNPCKLPD VUNPCKLPS VXORPD VXORPS +" PROTECTION +syn keyword nasmInstructionPROTECTION RDPKRU WRPKRU +" RDPID +syn keyword nasmInstructionRDPID RDPID +" NMEM +syn keyword nasmInstructionNMEM CLFLUSHOPT CLWB PCOMMIT +syn keyword nasmInstructionNMEM CLZERO +" INTEL_EXTENSIONS +syn keyword nasmInstructionINTEL_EXTENSIONS CLDEMOTE MOVDIRI MOVDIR64B PCONFIG TPAUSE +syn keyword nasmInstructionINTEL_EXTENSIONS UMONITOR UMWAIT WBNOINVD +" GALOISFIELD +syn keyword nasmInstructionGALOISFIELD GF2P8AFFINEINVQB VGF2P8AFFINEINVQB GF2P8AFFINEQB VGF2P8AFFINEQB GF2P8MULB +syn keyword nasmInstructionGALOISFIELD VGF2P8MULB +" AVX512_BMI +syn keyword nasmInstructionAVX512_BMI VPCOMPRESSB VPCOMPRESSW VPEXPANDB VPEXPANDW VPSHLDW +syn keyword nasmInstructionAVX512_BMI VPSHLDD VPSHLDQ VPSHLDVW VPSHLDVD VPSHLDVQ +syn keyword nasmInstructionAVX512_BMI VPSHRDW VPSHRDD VPSHRDQ VPSHRDVW VPSHRDVD +syn keyword nasmInstructionAVX512_BMI VPSHRDVQ +" AVX512_VNNI +syn keyword nasmInstructionAVX512_VNNI VPDPBUSD VPDPBUSDS VPDPWSSD VPDPWSSDS +" AVX512_BITALG +syn keyword nasmInstructionAVX512_BITALG VPOPCNTB VPOPCNTW VPOPCNTD VPOPCNTQ VPSHUFBITQMB +" AVX512_FMA +syn keyword nasmInstructionAVX512_FMA V4FMADDPS V4FNMADDPS V4FMADDSS V4FNMADDSS +" AVX512_DP +syn keyword nasmInstructionAVX512_DP V4DPWSSDS V4DPWSSD +" SGX +syn keyword nasmInstructionSGX ENCLS ENCLU ENCLV +" CET +syn keyword nasmInstructionCET CLRSSBSY ENDBR32 ENDBR64 INCSSPD INCSSPQ +syn keyword nasmInstructionCET RDSSPD RDSSPQ RSTORSSP SAVEPREVSSP SETSSBSY +syn keyword nasmInstructionCET WRUSSD WRUSSQ WRSSD WRSSQ +" INTEL_EXTENSION +syn keyword nasmInstructionINTEL_EXTENSION ENQCMD ENQCMDS PCONFIG SERIALIZE WBNOINVD +syn keyword nasmInstructionINTEL_EXTENSION XRESLDTRK XSUSLDTRK +" AVX512_BF16 +syn keyword nasmInstructionAVX512_BF16 VCVTNE2PS2BF16 VCVTNEPS2BF16 VDPBF16PS +" AVX512_MASK_INTERSECT +syn keyword nasmInstructionAVX512_MASK_INTERSECT VP2INTERSECTD +" AMX +syn keyword nasmInstructionAMX LDTILECFG STTILECFG TDPBF16PS TDPBSSD TDPBSUD +syn keyword nasmInstructionAMX TDPBUSD TDPBUUD TILELOADD TILELOADDT1 TILERELEASE +syn keyword nasmInstructionAMX TILESTORED TILEZERO +" AVX512_FP16 +syn keyword nasmInstructionAVX512_FP16 VADDPH VADDSH VCMPPH VCMPSH VCOMISH +syn keyword nasmInstructionAVX512_FP16 VCVTDQ2PH VCVTPD2PH VCVTPH2DQ VCVTPH2PD VCVTPH2PS +syn keyword nasmInstructionAVX512_FP16 VCVTPH2PSX VCVTPH2QQ VCVTPH2UDQ VCVTPH2UQQ VCVTPH2UW +syn keyword nasmInstructionAVX512_FP16 VCVTPH2W VCVTPS2PH VCVTQQ2PH VCVTSD2SH VCVTSH2SD +syn keyword nasmInstructionAVX512_FP16 VCVTSH2SI VCVTSH2SS VCVTSH2USI VCVTSI2SH VCVTSS2SH +syn keyword nasmInstructionAVX512_FP16 VCVTTPH2DQ VCVTTPH2QQ VCVTTPH2UDQ VCVTTPH2UQQ VCVTTPH2UW +syn keyword nasmInstructionAVX512_FP16 VCVTTPH2W VCVTTSH2SI VCVTTSH2USI VCVTUDQ2PH VCVTUQQ2PH +syn keyword nasmInstructionAVX512_FP16 VCVTUSI2SH VCVTUSI2SS VCVTUW2PH VCVTW2PH VDIVPH +syn keyword nasmInstructionAVX512_FP16 VDIVSH VFCMADDCPH VFMADDCPH VFCMADDCSH VFMADDCSH +syn keyword nasmInstructionAVX512_FP16 VFCMULCPCH VFMULCPCH VFCMULCSH VFMULCSH VFMADDSUB132PH +syn keyword nasmInstructionAVX512_FP16 VFMADDSUB213PH VFMADDSUB231PH VFMSUBADD132PH VFMSUBADD213PH VFMSUBADD231PH +syn keyword nasmInstructionAVX512_FP16 VPMADD132PH VPMADD213PH VPMADD231PH VFMADD132PH VFMADD213PH +syn keyword nasmInstructionAVX512_FP16 VFMADD231PH VPMADD132SH VPMADD213SH VPMADD231SH VPNMADD132SH +syn keyword nasmInstructionAVX512_FP16 VPNMADD213SH VPNMADD231SH VPMSUB132PH VPMSUB213PH VPMSUB231PH +syn keyword nasmInstructionAVX512_FP16 VFMSUB132PH VFMSUB213PH VFMSUB231PH VPMSUB132SH VPMSUB213SH +syn keyword nasmInstructionAVX512_FP16 VPMSUB231SH VPNMSUB132SH VPNMSUB213SH VPNMSUB231SH VFPCLASSPH +syn keyword nasmInstructionAVX512_FP16 VFPCLASSSH VGETEXPPH VGETEXPSH VGETMANTPH VGETMANTSH +syn keyword nasmInstructionAVX512_FP16 VGETMAXPH VGETMAXSH VGETMINPH VGETMINSH VMOVSH +syn keyword nasmInstructionAVX512_FP16 VMOVW VMULPH VMULSH VRCPPH VRCPSH +syn keyword nasmInstructionAVX512_FP16 VREDUCEPH VREDUCESH VENDSCALEPH VENDSCALESH VRSQRTPH +syn keyword nasmInstructionAVX512_FP16 VRSQRTSH VSCALEFPH VSCALEFSH VSQRTPH VSQRTSH +syn keyword nasmInstructionAVX512_FP16 VSUBPH VSUBSH VUCOMISH +" RAO-INT +syn keyword nasmInstructionRAO_INT AADD AAND AXOR +" USERINT +syn keyword nasmInstructionUSERINT CLUI SENDUIPI STUI TESTUI UIRET +" CMPCCXADD +syn keyword nasmInstructionCMPCCXADD CMPOXADD CMPNOXADD CMPBXADD CMPNBXADD CMPZXADD +syn keyword nasmInstructionCMPCCXADD CMPNZXADD CMPBEXADD CMPNBEXADD CMPSXADD CMPNSXADD +syn keyword nasmInstructionCMPCCXADD CMPPXADD CMPNPXADD CMPLXADD CMPNLXADD CMPLEXADD +syn keyword nasmInstructionCMPCCXADD CMPNLEXADD +" FRET +syn keyword nasmInstructionFRET ERETS ERETU LKGS +" WRMSRNS_MSRLIST +syn keyword nasmInstructionWRMSRNS_MSRLIST WRMSRNS RDMSRLIST WRMSRLIST +" HRESET +syn keyword nasmInstructionHRESET HRESET +" PTWRITE +syn keyword nasmInstructionPTWRITE PTWRITE +" HINTNOP +syn keyword nasmInstructionHINTNOP HINT_NOP0 HINT_NOP1 HINT_NOP2 HINT_NOP3 HINT_NOP4 +syn keyword nasmInstructionHINTNOP HINT_NOP5 HINT_NOP6 HINT_NOP7 HINT_NOP8 HINT_NOP9 +syn keyword nasmInstructionHINTNOP HINT_NOP10 HINT_NOP11 HINT_NOP12 HINT_NOP13 HINT_NOP14 +syn keyword nasmInstructionHINTNOP HINT_NOP15 HINT_NOP16 HINT_NOP17 HINT_NOP18 HINT_NOP19 +syn keyword nasmInstructionHINTNOP HINT_NOP20 HINT_NOP21 HINT_NOP22 HINT_NOP23 HINT_NOP24 +syn keyword nasmInstructionHINTNOP HINT_NOP25 HINT_NOP26 HINT_NOP27 HINT_NOP28 HINT_NOP29 +syn keyword nasmInstructionHINTNOP HINT_NOP30 HINT_NOP31 HINT_NOP32 HINT_NOP33 HINT_NOP34 +syn keyword nasmInstructionHINTNOP HINT_NOP35 HINT_NOP36 HINT_NOP37 HINT_NOP38 HINT_NOP39 +syn keyword nasmInstructionHINTNOP HINT_NOP40 HINT_NOP41 HINT_NOP42 HINT_NOP43 HINT_NOP44 +syn keyword nasmInstructionHINTNOP HINT_NOP45 HINT_NOP46 HINT_NOP47 HINT_NOP48 HINT_NOP49 +syn keyword nasmInstructionHINTNOP HINT_NOP50 HINT_NOP51 HINT_NOP52 HINT_NOP53 HINT_NOP54 +syn keyword nasmInstructionHINTNOP HINT_NOP55 HINT_NOP56 HINT_NOP57 HINT_NOP58 HINT_NOP59 +syn keyword nasmInstructionHINTNOP HINT_NOP60 HINT_NOP61 HINT_NOP62 HINT_NOP63 +" Cyrix instructions (requires Cyrix processor) +syn keyword nasmCrxInstruction PADDSIW PAVEB PDISTIB PMAGW PMULHRWC PMULHRIW +syn keyword nasmCrxInstruction PMVGEZB PMVLZB PMVNZB PMVZB PSUBSIW +syn keyword nasmCrxInstruction RDSHR RSDC RSLDT SMINT SMINTOLD SVDC SVLDT SVTS +syn keyword nasmCrxInstruction WRSHR BB0_RESET BB1_RESET +syn keyword nasmCrxInstruction CPU_WRITE CPU_READ DMINT RDM PMACHRIW + +" Debugging Instructions: (privileged) +syn keyword nasmDbgInstruction INT1 INT3 RDMSR RDTSC RDPMC WRMSR INT01 INT03 + + +" Synchronize Syntax: +syn sync clear +syn sync minlines=50 "for multiple region nesting +syn sync match nasmSync grouphere nasmMacroDef "^\s*%i\=macro\>"me=s-1 +syn sync match nasmSync grouphere NONE "^\s*%endmacro\>" + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" Sub Links: +hi def link nasmInMacDirective nasmDirective +hi def link nasmInMacLabel nasmLocalLabel +hi def link nasmInMacLblWarn nasmLabelWarn +hi def link nasmInMacMacro nasmMacro +hi def link nasmInMacParam nasmMacro +hi def link nasmInMacParamNum nasmDecNumber +hi def link nasmInMacPreCondit nasmPreCondit +hi def link nasmInMacPreProc nasmPreProc +hi def link nasmInPreCondit nasmPreCondit +hi def link nasmInStructure nasmStructure +hi def link nasmStructureLabel nasmStructure + +" Comment Group: +hi def link nasmComment Comment +hi def link nasmSpecialComment SpecialComment +hi def link nasmInCommentTodo Todo + +" Constant Group: +hi def link nasmString String +hi def link nasmCString String +hi def link nasmStringError Error +hi def link nasmCStringEscape SpecialChar +hi def link nasmCStringFormat SpecialChar +hi def link nasmBinNumber Number +hi def link nasmOctNumber Number +hi def link nasmDecNumber Number +hi def link nasmHexNumber Number +hi def link nasmBinFloat Float +hi def link nasmOctFloat Float +hi def link nasmDecFloat Float +hi def link nasmHexFloat Float +hi def link nasmSpecFloat Float +hi def link nasmBcdConst Float +hi def link nasmNumberError Error + +" Identifier Group: +hi def link nasmLabel Identifier +hi def link nasmLocalLabel Identifier +hi def link nasmSpecialLabel Special +hi def link nasmLabelError Error +hi def link nasmLabelWarn Todo + +" PreProc Group: +hi def link nasmPreProc PreProc +hi def link nasmDefine Define +hi def link nasmInclude Include +hi def link nasmMacro Macro +hi def link nasmPreCondit PreCondit +hi def link nasmPreProcError Error +hi def link nasmPreProcWarn Todo + +" Type Group: +hi def link nasmType Type +hi def link nasmStorage StorageClass +hi def link nasmStructure Structure +hi def link nasmTypeError Error + +" Directive Group: +hi def link nasmConstant Constant +hi def link nasmInstrModifier Operator +hi def link nasmRepeat Repeat +hi def link nasmDirective Keyword +hi def link nasmStdDirective Operator +hi def link nasmFmtDirective Keyword + +" Register Group: +hi def link nasmRegisterError Error +hi def link nasmCtrlRegister Special +hi def link nasmDebugRegister Debug +hi def link nasmTestRegister Special +hi def link nasmRegisterError Error +hi def link nasmMemRefError Error + +" Instruction Group: +hi def link nasmInstructnError Error +hi def link nasmCrxInstruction Special +hi def link nasmDbgInstruction Debug +hi def link nasmInstructionStandard Statement +hi def link nasmInstructionSIMD Statement +hi def link nasmInstructionSSE Statement +hi def link nasmInstructionXSAVE Statement +hi def link nasmInstructionMEM Statement +hi def link nasmInstructionMMX Statement +hi def link nasmInstruction3DNOW Statement +hi def link nasmInstructionSSE2 Statement +hi def link nasmInstructionWMMX Statement +hi def link nasmInstructionWSSD Statement +hi def link nasmInstructionPRESSCOT Statement +hi def link nasmInstructionVMXSVM Statement +hi def link nasmInstructionPTVMX Statement +hi def link nasmInstructionSEVSNPAMD Statement +hi def link nasmInstructionTEJAS Statement +hi def link nasmInstructionAMD_SSE4A Statement +hi def link nasmInstructionBARCELONA Statement +hi def link nasmInstructionPENRY Statement +hi def link nasmInstructionNEHALEM Statement +hi def link nasmInstructionSMX Statement +hi def link nasmInstructionGEODE_3DNOW Statement +hi def link nasmInstructionINTEL_NEW Statement +hi def link nasmInstructionAES Statement +hi def link nasmInstructionAVX_AES Statement +hi def link nasmInstructionINTEL_PUB Statement +hi def link nasmInstructionAVX Statement +hi def link nasmInstructionINTEL_CMUL Statement +hi def link nasmInstructionINTEL_AVX_CMUL Statement +hi def link nasmInstructionINTEL_FMA Statement +hi def link nasmInstructionINTEL_POST32 Statement +hi def link nasmInstructionSUPERVISOR Statement +hi def link nasmInstructionVIA_SECURITY Statement +hi def link nasmInstructionAMD_PROFILING Statement +hi def link nasmInstructionXOP_FMA4 Statement +hi def link nasmInstructionAVX2 Statement +hi def link nasmInstructionTRANSACTIONS Statement +hi def link nasmInstructionBMI_ABM Statement +hi def link nasmInstructionMPE Statement +hi def link nasmInstructionSHA Statement +hi def link nasmInstructionSM3 Statement +hi def link nasmInstructionSM4 Statement +hi def link nasmInstructionAVX_NOEXCEPT Statement +hi def link nasmInstructionAVX_VECTOR_NN Statement +hi def link nasmInstructionAVX_IFMA Statement +hi def link nasmInstructionAVX512_MASK Statement +hi def link nasmInstructionAVX512_MASK_REG Statement +hi def link nasmInstructionAVX512 Statement +hi def link nasmInstructionPROTECTION Statement +hi def link nasmInstructionRDPID Statement +hi def link nasmInstructionNMEM Statement +hi def link nasmInstructionINTEL_EXTENSIONS Statement +hi def link nasmInstructionGALOISFIELD Statement +hi def link nasmInstructionAVX512_BMI Statement +hi def link nasmInstructionAVX512_VNNI Statement +hi def link nasmInstructionAVX512_BITALG Statement +hi def link nasmInstructionAVX512_FMA Statement +hi def link nasmInstructionAVX512_DP Statement +hi def link nasmInstructionSGX Statement +hi def link nasmInstructionCET Statement +hi def link nasmInstructionINTEL_EXTENSION Statement +hi def link nasmInstructionAVX512_BF16 Statement +hi def link nasmInstructionAVX512_MASK_INTERSECT Statement +hi def link nasmInstructionAMX Statement +hi def link nasmInstructionAVX512_FP16 Statement +hi def link nasmInstructionRAO_INT Statement +hi def link nasmInstructionUSERINT Statement +hi def link nasmInstructionCMPCCXADD Statement +hi def link nasmInstructionFRET Statement +hi def link nasmInstructionWRMSRNS_MSRLIST Statement +hi def link nasmInstructionHRESET Statement +hi def link nasmInstructionHINTNOP Statement +hi def link nasmInstructionPTWRITE Statement + +let b:current_syntax = "nasm" + +" vim:ts=8 sw=4 diff --git a/git/usr/share/vim/vim92/syntax/nastran.vim b/git/usr/share/vim/vim92/syntax/nastran.vim new file mode 100644 index 0000000000000000000000000000000000000000..239fd6e49df164275c66d731fb30ab98861c2fe8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nastran.vim @@ -0,0 +1,181 @@ +" Vim syntax file +" Language: NASTRAN input/DMAP +" Maintainer: Tom Kowalski +" Last change: April 27, 2001 +" Thanks to the authors and maintainers of fortran.vim. +" Since DMAP shares some traits with fortran, this syntax file +" is based on the fortran.vim syntax file. +"---------------------------------------------------------------------- +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +" DMAP is not case dependent +syn case ignore +" +"--------------------DMAP SYNTAX--------------------------------------- +" +" -------Executive Modules and Statements +" +syn keyword nastranDmapexecmod call dbview delete end equiv equivx exit +syn keyword nastranDmapexecmod file message purge purgex return subdmap +syn keyword nastranDmapType type +syn keyword nastranDmapLabel go to goto +syn keyword nastranDmapRepeat if else elseif endif then +syn keyword nastranDmapRepeat do while +syn region nastranDmapString start=+"+ end=+"+ oneline +syn region nastranDmapString start=+'+ end=+'+ oneline +" If you don't like initial tabs in dmap (or at all) +"syn match nastranDmapIniTab "^\t.*$" +"syn match nastranDmapTab "\t" + +" Any integer +syn match nastranDmapNumber "-\=\<[0-9]\+\>" +" floating point number, with dot, optional exponent +syn match nastranDmapFloat "\<[0-9]\+\.[0-9]*\([edED][-+]\=[0-9]\+\)\=\>" +" floating point number, starting with a dot, optional exponent +syn match nastranDmapFloat "\.[0-9]\+\([edED][-+]\=[0-9]\+\)\=\>" +" floating point number, without dot, with exponent +syn match nastranDmapFloat "\<[0-9]\+[edED][-+]\=[0-9]\+\>" + +syn match nastranDmapLogical "\(true\|false\)" + +syn match nastranDmapPreCondit "^#define\>" +syn match nastranDmapPreCondit "^#include\>" +" +" -------Comments may be contained in another line. +" +syn match nastranDmapComment "^[\$].*$" +syn match nastranDmapComment "\$.*$" +syn match nastranDmapComment "^[\$].*$" contained +syn match nastranDmapComment "\$.*$" contained +" Treat all past 72nd column as a comment. Do not work with tabs! +" Breaks down when 72-73rd column is in another match (eg number or keyword) +syn match nastranDmapComment "^.\{-72}.*$"lc=72 contained + +" +" -------Utility Modules +" +syn keyword nastranDmapUtilmod append copy dbc dbdict dbdir dmin drms1 +syn keyword nastranDmapUtilmod dtiin eltprt ifp ifp1 inputt2 inputt4 lamx +syn keyword nastranDmapUtilmod matgen matgpr matmod matpch matprn matprt +syn keyword nastranDmapUtilmod modtrl mtrxin ofp output2 output4 param +syn keyword nastranDmapUtilmod paraml paramr prtparam pvt scalar +syn keyword nastranDmapUtilmod seqp setval tabedit tabprt tabpt vec vecplot +syn keyword nastranDmapUtilmod xsort +" +" -------Matrix Modules +" +syn keyword nastranDmapMatmod add add5 cead dcmp decomp diagonal fbs merge +syn keyword nastranDmapMatmod mpyad norm read reigl smpyad solve solvit +syn keyword nastranDmapMatmod trnsp umerge umerge1 upartn dmiin partn +syn region nastranDmapMatmod start=+^ *[Dd][Mm][Ii]+ end=+[\/]+ +" +" -------Implicit Functions +" +syn keyword nastranDmapImplicit abs acos acosh andl asin asinh atan atan2 +syn keyword nastranDmapImplicit atanh atanh2 char clen clock cmplx concat1 +syn keyword nastranDmapImplicit concat2 concat3 conjg cos cosh dble diagoff +syn keyword nastranDmapImplicit diagon dim dlablank dlxblank dprod eqvl exp +syn keyword nastranDmapImplicit getdiag getsys ichar imag impl index indexstr +syn keyword nastranDmapImplicit int itol leq lge lgt lle llt lne log log10 +syn keyword nastranDmapImplicit logx ltoi mcgetsys mcputsys max min mod neqvl +syn keyword nastranDmapImplicit nint noop normal notl numeq numge numgt numle +syn keyword nastranDmapImplicit numlt numne orl pi precison putdiag putsys +syn keyword nastranDmapImplicit rand rdiagon real rtimtogo setcore sign sin +syn keyword nastranDmapImplicit sinh sngl sprod sqrt substrin tan tanh +syn keyword nastranDmapImplicit timetogo wlen xorl +" +" +"--------------------INPUT FILE SYNTAX--------------------------------------- +" +" +" -------Nastran Statement +" +syn keyword nastranNastranCard nastran +" +" -------The File Management Section (FMS) +" +syn region nastranFMSCard start=+^ *[Aa][Cc][Qq][Uu][Ii]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Aa][Ss][Ss][Ii][Gg]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Cc][oO][Nn][Nn][Ee]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Cc][Ll][Ee]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Dd][Ii][Cc]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Dd][Ii][Rr]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Ff][Ii][Xx]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Ll][Oo][Aa]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Ll][Oo][Cc]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Ss][Ee][Tt]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Uu][Nn][Ll]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Bb][Uu][Pp][Dd]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Dd][Ee][Ff][Ii][Nn]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Ee][Nn][Dd][Jj][Oo]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Ee][Xx][Pp][Aa][Nn]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Ii][Nn][Cc][Ll][Uu]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Ii][Nn][Ii][Tt]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Pp][Rr][Oo][Jj]+ end=+$+ oneline +syn region nastranFMSCard start=+^ *[Rr][Ee][Ss][Tt]+ end=+$+ oneline +syn match nastranDmapUtilmod "^ *[Rr][Ee][Ss][Tt][Aa].*,.*," contains=nastranDmapComment +" +" -------Executive Control Section +" +syn region nastranECSCard start=+^ *[Aa][Ll][Tt][Ee][Rr]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Aa][Pp][Pp]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Cc][Oo][Mm][Pp][Ii]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Dd][Ii][Aa][Gg] + end=+$+ oneline +syn region nastranECSCard start=+^ *[Ee][Cc][Hh][Oo]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Ee][Nn][Dd][Aa][Ll]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Ii][Dd]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Ii][Nn][Cc][Ll][Uu]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Ll][Ii][Nn][Kk]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Mm][Aa][Ll][Tt][Ee]+ end=+$+ oneline +syn region nastranECSCard start=+^ *[Ss][Oo][Ll] + end=+$+ oneline +syn region nastranECSCard start=+^ *[Tt][Ii][Mm][Ee]+ end=+$+ oneline +" +" -------Delimiters +" +syn match nastranDelimiter "[Cc][Ee][Nn][Dd]" contained +syn match nastranDelimiter "[Bb][Ee][Gg][Ii][Nn]" contained +syn match nastranDelimiter " *[Bb][Uu][Ll][Kk]" contained +syn match nastranDelimiter "[Ee][Nn][Dd] *[dD][Aa][Tt][Aa]" contained +" +" -------Case Control section +" +syn region nastranCC start=+^ *[Cc][Ee][Nn][Dd]+ end=+^ *[Bb][Ee][Gg][Ii][Nn]+ contains=nastranDelimiter,nastranBulkData,nastranDmapComment + +" +" -------Bulk Data section +" +syn region nastranBulkData start=+ *[Bb][Uu][Ll][Kk] *$+ end=+^ [Ee][Nn][Dd] *[Dd]+ contains=nastranDelimiter,nastranDmapComment +" +" -------The following cards may appear in multiple sections of the file +" +syn keyword nastranUtilCard ECHOON ECHOOFF INCLUDE PARAM + + +" The default methods for highlighting. Can be overridden later +hi def link nastranDmapexecmod Statement +hi def link nastranDmapType Type +hi def link nastranDmapPreCondit Error +hi def link nastranDmapUtilmod PreProc +hi def link nastranDmapMatmod nastranDmapUtilmod +hi def link nastranDmapString String +hi def link nastranDmapNumber Constant +hi def link nastranDmapFloat nastranDmapNumber +hi def link nastranDmapInitTab nastranDmapNumber +hi def link nastranDmapTab nastranDmapNumber +hi def link nastranDmapLogical nastranDmapExecmod +hi def link nastranDmapImplicit Identifier +hi def link nastranDmapComment Comment +hi def link nastranDmapRepeat nastranDmapexecmod +hi def link nastranNastranCard nastranDmapPreCondit +hi def link nastranECSCard nastranDmapUtilmod +hi def link nastranFMSCard nastranNastranCard +hi def link nastranCC nastranDmapexecmod +hi def link nastranDelimiter Special +hi def link nastranBulkData nastranDmapType +hi def link nastranUtilCard nastranDmapexecmod + +let b:current_syntax = "nastran" + +"EOF vim: ts=8 noet tw=120 sw=8 sts=0 diff --git a/git/usr/share/vim/vim92/syntax/natural.vim b/git/usr/share/vim/vim92/syntax/natural.vim new file mode 100644 index 0000000000000000000000000000000000000000..be529f2d85f7a02c47a86995e8a52ad8f45ab513 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/natural.vim @@ -0,0 +1,201 @@ +" Vim syntax file +" +" Language: NATURAL +" Version: 2.1.0.5 +" Maintainer: Marko von Oppen +" Last Changed: 2012-02-05 18:50:43 +" Support: http://www.von-oppen.com/ + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +setlocal iskeyword+=-,*,#,+,_,/ + +let s:cpo_save = &cpo +set cpo&vim + +" NATURAL is case insensitive +syntax case ignore + +" preprocessor +syn keyword naturalInclude include nextgroup=naturalObjName skipwhite + +" define data +syn keyword naturalKeyword define data end-define +syn keyword naturalKeyword independent global parameter local redefine view +syn keyword naturalKeyword const[ant] init initial + +" loops +syn keyword naturalLoop read end-read end-work find end-find histogram end-histogram +syn keyword naturalLoop end-all sort end-sort sorted descending ascending +syn keyword naturalRepeat repeat end-repeat while until for step end-for +syn keyword naturalKeyword in file with field starting from ending at thru by isn where +syn keyword naturalError on error end-error +syn keyword naturalKeyword accept reject end-enddata number unique retain as release +syn keyword naturalKeyword start end-start break end-break physical page top sequence +syn keyword naturalKeyword end-toppage end-endpage end-endfile before processing +syn keyword naturalKeyword end-before + +" conditionals +syn keyword naturalConditional if then else end-if end-norec +syn keyword naturalConditional decide end-decide value when condition none any + +" assignment / calculation +syn keyword naturalKeyword reset assign move left right justified compress to into edited +syn keyword naturalKeyword add subtract multiply divide compute name +syn keyword naturalKeyword all giving remainder rounded leaving space numeric +syn keyword naturalKeyword examine full replace giving separate delimiter modified +syn keyword naturalKeyword suspend identical suppress + +" program flow +syn keyword naturalFlow callnat fetch return enter escape bottom top stack formatted +syn keyword naturalFlow command call +syn keyword naturalflow end-subroutine routine + +" file operations +syn keyword naturalKeyword update store get delete end transaction work once close + +" other keywords +syn keyword naturalKeyword first every of no record[s] found ignore immediate +syn keyword naturalKeyword set settime key control stop terminate + +" in-/output +syn keyword naturalKeyword write display input reinput notitle nohdr map newpage +syn keyword naturalKeyword alarm text help eject index window base size +syn keyword naturalKeyword format printer skip lines + +" functions +syn keyword naturalKeyword abs atn cos exp frac int log sgn sin sqrt tan val old +syn keyword naturalKeyword pos + +" report mode keywords +syn keyword naturalRMKeyword same loop obtain indexed do doend + +" Subroutine name +syn keyword naturalFlow perform subroutine nextgroup=naturalFunction skipwhite +syn match naturalFunction "\<[a-z][-_a-z0-9]*\>" + +syn keyword naturalFlow using nextgroup=naturalKeyword,naturalObjName skipwhite +syn match naturalObjName "\<[a-z][-_a-z0-9]\{,7}\>" + +" Labels +syn match naturalLabel "\<[+#a-z][-_#a-z0-9]*\." +syn match naturalRef "\<[+#a-z][-_#a-z0-9]*\>\.\<[+#a-z][*]\=[-_#a-z0-9]*\>" + +" mark keyword special handling +syn keyword naturalKeyword mark nextgroup=naturalMark skipwhite +syn match naturalMark "\<\*[a-z][-_#.a-z0-9]*\>" + +" System variables +syn match naturalSysVar "\<\*[a-z][-a-z0-9]*\>" + +"integer number, or floating point number without a dot. +syn match naturalNumber "\<-\=\d\+\>" +"floating point number, with dot +syn match naturalNumber "\<-\=\d\+\.\d\+\>" +"floating point number, starting with a dot +syn match naturalNumber "\.\d\+" + +" Formats in write statement +syn match naturalFormat "\<\d\+[TX]\>" + +" String and Character contstants +syn match naturalString "H'\x\+'" +syn region naturalString start=+"+ end=+"+ +syn region naturalString start=+'+ end=+'+ + +" Type definition +syn match naturalAttribute "\<[-a-z][a-z]=[-a-z0-9_\.,]\+\>" +syn match naturalType contained "\<[ABINP]\d\+\(,\d\+\)\=\>" +syn match naturalType contained "\<[CL]\>" + +" "TODO" / other comments +syn keyword naturalTodo contained todo test +syn match naturalCommentMark contained "[a-z][^ \t/:|]*\(\s[^ \t/:'"|]\+\)*:\s"he=e-1 + +" comments +syn region naturalComment start="/\*" end="$" contains=naturalTodo,naturalLineRef,naturalCommentMark +syn region naturalComment start="^\*[ *]" end="$" contains=naturalTodo,naturalLineRef,naturalCommentMark +syn region naturalComment start="^\d\{4} \*[\ \*]"lc=5 end="$" contains=naturalTodo,naturalLineRef,naturalCommentMark +syn match naturalComment "^\*$" +syn match naturalComment "^\d\{4} \*$"lc=5 +" /* is legal syntax in parentheses e.g. "#ident(label./*)" +syn region naturalPComment contained start="/\*\s*[^),]" end="$" contains=naturalTodo,naturalLineRef,naturalCommentMark + +" operators +syn keyword naturalOperator and or not eq ne gt lt ge le mask scan modified + +" constants +syn keyword naturalBoolean true false +syn match naturalLineNo "^\d\{4}" + +" identifiers +syn match naturalIdent "\<[+#a-z][-_#a-z0-9]*\>[^\.']"me=e-1 +syn match naturalIdent "\<[+#a-z][-_#a-z0-9]*$" +syn match naturalLegalIdent "[+#a-z][-_#a-z0-9]*/[-_#a-z0-9]*" + +" parentheses +syn region naturalPar matchgroup=naturalParGui start="(" end=")" contains=naturalLabel,naturalRef,naturalOperator,@naturalConstant,naturalType,naturalSysVar,naturalPar,naturalLineNo,naturalPComment +syn match naturalLineRef "(\d\{4})" + +" build syntax groups +syntax cluster naturalConstant contains=naturalString,naturalNumber,naturalAttribute,naturalBoolean + +" folding +if v:version >= 600 + set foldignore=* +endif + + +" The default methods for highlighting. Can be overridden later + +" Constants +hi def link naturalFormat Constant +hi def link naturalAttribute Constant +hi def link naturalNumber Number +hi def link naturalString String +hi def link naturalBoolean Boolean + +" All kinds of keywords +hi def link naturalConditional Conditional +hi def link naturalRepeat Repeat +hi def link naturalLoop Repeat +hi def link naturalFlow Keyword +hi def link naturalError Keyword +hi def link naturalKeyword Keyword +hi def link naturalOperator Operator +hi def link naturalParGui Operator + +" Labels +hi def link naturalLabel Label +hi def link naturalRefLabel Label + +" Comments +hi def link naturalPComment Comment +hi def link naturalComment Comment +hi def link naturalTodo Todo +hi def link naturalCommentMark PreProc + +hi def link naturalInclude Include +hi def link naturalSysVar Identifier +hi def link naturalLineNo LineNr +hi def link naturalLineRef Error +hi def link naturalSpecial Special +hi def link naturalComKey Todo + +" illegal things +hi def link naturalRMKeyword Error +hi def link naturalLegalIdent Error + +hi def link naturalType Type +hi def link naturalFunction Function +hi def link naturalObjName PreProc + + +let b:current_syntax = "natural" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim:set ts=8 sw=8 noet ft=vim list: diff --git a/git/usr/share/vim/vim92/syntax/ncf.vim b/git/usr/share/vim/vim92/syntax/ncf.vim new file mode 100644 index 0000000000000000000000000000000000000000..0027fd4ef830100de4cd7fd0d542b5b83c8a33e9 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/ncf.vim @@ -0,0 +1,247 @@ +" Vim syntax file +" Language: Novell "NCF" Batch File +" Maintainer: Jonathan J. Miner +" Last Change: Tue, 04 Sep 2001 16:20:33 CDT +" $Id: ncf.vim,v 1.1 2004/06/13 16:31:58 vimboss Exp $ + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +syn keyword ncfCommands mount load unload +syn keyword ncfBoolean on off +syn keyword ncfCommands set nextgroup=ncfSetCommands +syn keyword ncfTimeTypes Reference Primary Secondary Single +syn match ncfLoad "\(unl\|l\)oad .*"lc=4 contains=ALLBUT,Error +syn match ncfMount "mount .*"lc=5 contains=ALLBUT,Error + +syn match ncfComment "^\ *rem.*$" +syn match ncfComment "^\ *;.*$" +syn match ncfComment "^\ *#.*$" + +syn match ncfSearchPath "search \(add\|del\) " nextgroup=ncfPath +syn match ncfPath "\<[^: ]\+:\([A-Za-z0-9._]\|\\\)*\>" +syn match ncfServerName "^file server name .*$" +syn match ncfIPXNet "^ipx internal net" + +" String +syn region ncfString start=+"+ end=+"+ +syn match ncfContString "= \(\(\.\{0,1}\(OU=\|O=\)\{0,1}[A-Z_]\+\)\+;\{0,1}\)\+"lc=2 + +syn match ncfHexNumber "\<\d\(\d\+\|[A-F]\+\)*\>" +syn match ncfNumber "\<\d\+\.\{0,1}\d*\>" +syn match ncfIPAddr "\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}" +syn match ncfTime "\(+|=\)\{0,1}\d\{1,2}:\d\{1,2}:\d\{1,2}" +syn match ncfDSTTime "([^ ]\+ [^ ]\+ \(FIRST\|LAST\)\s*\d\{1,2}:\d\{1,2}:\d\{1,2} \(AM\|PM\))" +syn match ncfTimeZone "[A-Z]\{3}\d[A-Z]\{3}" + +syn match ncfLogins "^\([Dd]is\|[Ee]n\)able login[s]*" +syn match ncfScript "[^ ]*\.ncf" + +" SET Commands that take a Number following +syn match ncfSetCommandsNum "\(Alert Message Nodes\)\s*=" +syn match ncfSetCommandsNum "\(Auto Restart After Abend\)\s*=" +syn match ncfSetCommandsNum "\(Auto Restart After Abend Delay Time\)\s*=" +syn match ncfSetCommandsNum "\(Compression Daily Check Starting Hour\)\s*=" +syn match ncfSetCommandsNum "\(Compression Daily Check Stop Hour\)\s*=" +syn match ncfSetCommandsNum "\(Concurrent Remirror Requests\)\s*=" +syn match ncfSetCommandsNum "\(Convert Compressed to Uncompressed Option\)\s*=" +syn match ncfSetCommandsNum "\(Days Untouched Before Compression\)\s*=" +syn match ncfSetCommandsNum "\(Decompress Free Space Warning Interval\)\s*=" +syn match ncfSetCommandsNum "\(Decompress Percent Disk Space Free to Allow Commit\)\s*=" +syn match ncfSetCommandsNum "\(Deleted Files Compression Option\)\s*=" +syn match ncfSetCommandsNum "\(Directory Cache Allocation Wait Time\)\s*=" +syn match ncfSetCommandsNum "\(Enable IPX Checksums\)\s*=" +syn match ncfSetCommandsNum "\(Garbage Collection Interval\)\s*=" +syn match ncfSetCommandsNum "\(IPX NetBIOS Replication Option\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Concurrent Compressions\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Concurrent Directory Cache Writes\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Concurrent Disk Cache Writes\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Directory Cache Buffers\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Extended Attributes per File or Path\)\s*=" +syn match ncfSetCommandsNum "\(Maximum File Locks\)\s*=" +syn match ncfSetCommandsNum "\(Maximum File Locks Per Connection\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Interrupt Events\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Number of Directory Handles\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Number of Internal Directory Handles\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Outstanding NCP Searches\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Packet Receive Buffers\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Physical Receive Packet Size\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Record Locks\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Record Locks Per Connection\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Service Processes\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Subdirectory Tree Depth\)\s*=" +syn match ncfSetCommandsNum "\(Maximum Transactions\)\s*=" +syn match ncfSetCommandsNum "\(Minimum Compression Percentage Gain\)\s*=" +syn match ncfSetCommandsNum "\(Minimum Directory Cache Buffers\)\s*=" +syn match ncfSetCommandsNum "\(Minimum File Cache Buffers\)\s*=" +syn match ncfSetCommandsNum "\(Minimum File Cache Report Threshold\)\s*=" +syn match ncfSetCommandsNum "\(Minimum Free Memory for Garbage Collection\)\s*=" +syn match ncfSetCommandsNum "\(Minimum Packet Receive Buffers\)\s*=" +syn match ncfSetCommandsNum "\(Minimum Service Processes\)\s*=" +syn match ncfSetCommandsNum "\(NCP Packet Signature Option\)\s*=" +syn match ncfSetCommandsNum "\(NDS Backlink Interval\)\s*=" +syn match ncfSetCommandsNum "\(NDS Client NCP Retries\)\s*=" +syn match ncfSetCommandsNum "\(NDS External Reference Life Span\)\s*=" +syn match ncfSetCommandsNum "\(NDS Inactivity Synchronization Interval\)\s*=" +syn match ncfSetCommandsNum "\(NDS Janitor Interval\)\s*=" +syn match ncfSetCommandsNum "\(New Service Process Wait Time\)\s*=" +syn match ncfSetCommandsNum "\(Number of Frees for Garbage Collection\)\s*=" +syn match ncfSetCommandsNum "\(Number of Watchdog Packets\)\s*=" +syn match ncfSetCommandsNum "\(Pseudo Preemption Count\)\s*=" +syn match ncfSetCommandsNum "\(Read Ahead LRU Sitting Time Threshold\)\s*=" +syn match ncfSetCommandsNum "\(Remirror Block Size\)\s*=" +syn match ncfSetCommandsNum "\(Reserved Buffers Below 16 Meg\)\s*=" +syn match ncfSetCommandsNum "\(Server Log File Overflow Size\)\s*=" +syn match ncfSetCommandsNum "\(Server Log File State\)\s*=" +syn match ncfSetCommandsNum "\(SMP Polling Count\)\s*=" +syn match ncfSetCommandsNum "\(SMP Stack Size\)\s*=" +syn match ncfSetCommandsNum "\(TIMESYNC Polling Count\)\s*=" +syn match ncfSetCommandsNum "\(TIMESYNC Polling Interval\)\s*=" +syn match ncfSetCommandsNum "\(TIMESYNC Synchronization Radius\)\s*=" +syn match ncfSetCommandsNum "\(TIMESYNC Write Value\)\s*=" +syn match ncfSetCommandsNum "\(Volume Log File Overflow Size\)\s*=" +syn match ncfSetCommandsNum "\(Volume Log File State\)\s*=" +syn match ncfSetCommandsNum "\(Volume Low Warning Reset Threshold\)\s*=" +syn match ncfSetCommandsNum "\(Volume Low Warning Threshold\)\s*=" +syn match ncfSetCommandsNum "\(Volume TTS Log File Overflow Size\)\s*=" +syn match ncfSetCommandsNum "\(Volume TTS Log File State\)\s*=" +syn match ncfSetCommandsNum "\(Worker Thread Execute In a Row Count\)\s*=" + +" SET Commands that take a Boolean (ON/OFF) + +syn match ncfSetCommandsBool "\(Alloc Memory Check Flag\)\s*=" +syn match ncfSetCommandsBool "\(Allow Audit Passwords\)\s*=" +syn match ncfSetCommandsBool "\(Allow Change to Client Rights\)\s*=" +syn match ncfSetCommandsBool "\(Allow Deletion of Active Directories\)\s*=" +syn match ncfSetCommandsBool "\(Allow Invalid Pointers\)\s*=" +syn match ncfSetCommandsBool "\(Allow LIP\)\s*=" +syn match ncfSetCommandsBool "\(Allow Unencrypted Passwords\)\s*=" +syn match ncfSetCommandsBool "\(Allow Unowned Files To Be Extended\)\s*=" +syn match ncfSetCommandsBool "\(Auto Register Memory Above 16 Megabytes\)\s*=" +syn match ncfSetCommandsBool "\(Auto TTS Backout Flag\)\s*=" +syn match ncfSetCommandsBool "\(Automatically Repair Bad Volumes\)\s*=" +syn match ncfSetCommandsBool "\(Check Equivalent to Me\)\s*=" +syn match ncfSetCommandsBool "\(Command Line Prompt Default Choice\)\s*=" +syn match ncfSetCommandsBool "\(Console Display Watchdog Logouts\)\s*=" +syn match ncfSetCommandsBool "\(Daylight Savings Time Status\)\s*=" +syn match ncfSetCommandsBool "\(Developer Option\)\s*=" +syn match ncfSetCommandsBool "\(Display Incomplete IPX Packet Alerts\)\s*=" +syn match ncfSetCommandsBool "\(Display Lost Interrupt Alerts\)\s*=" +syn match ncfSetCommandsBool "\(Display NCP Bad Component Warnings\)\s*=" +syn match ncfSetCommandsBool "\(Display NCP Bad Length Warnings\)\s*=" +syn match ncfSetCommandsBool "\(Display Old API Names\)\s*=" +syn match ncfSetCommandsBool "\(Display Relinquish Control Alerts\)\s*=" +syn match ncfSetCommandsBool "\(Display Spurious Interrupt Alerts\)\s*=" +syn match ncfSetCommandsBool "\(Enable Deadlock Detection\)\s*=" +syn match ncfSetCommandsBool "\(Enable Disk Read After Write Verify\)\s*=" +syn match ncfSetCommandsBool "\(Enable File Compression\)\s*=" +syn match ncfSetCommandsBool "\(Enable IO Handicap Attribute\)\s*=" +syn match ncfSetCommandsBool "\(Enable SECURE.NCF\)\s*=" +syn match ncfSetCommandsBool "\(Fast Volume Mounts\)\s*=" +syn match ncfSetCommandsBool "\(Global Pseudo Preemption\)\s*=" +syn match ncfSetCommandsBool "\(Halt System on Invalid Parameters\)\s*=" +syn match ncfSetCommandsBool "\(Ignore Disk Geometry\)\s*=" +syn match ncfSetCommandsBool "\(Immediate Purge of Deleted Files\)\s*=" +syn match ncfSetCommandsBool "\(NCP File Commit\)\s*=" +syn match ncfSetCommandsBool "\(NDS Trace File Length to Zero\)\s*=" +syn match ncfSetCommandsBool "\(NDS Trace to File\)\s*=" +syn match ncfSetCommandsBool "\(NDS Trace to Screen\)\s*=" +syn match ncfSetCommandsBool "\(New Time With Daylight Savings Time Status\)\s*=" +syn match ncfSetCommandsBool "\(Read Ahead Enabled\)\s*=" +syn match ncfSetCommandsBool "\(Read Fault Emulation\)\s*=" +syn match ncfSetCommandsBool "\(Read Fault Notification\)\s*=" +syn match ncfSetCommandsBool "\(Reject NCP Packets with Bad Components\)\s*=" +syn match ncfSetCommandsBool "\(Reject NCP Packets with Bad Lengths\)\s*=" +syn match ncfSetCommandsBool "\(Replace Console Prompt with Server Name\)\s*=" +syn match ncfSetCommandsBool "\(Reply to Get Nearest Server\)\s*=" +syn match ncfSetCommandsBool "\(SMP Developer Option\)\s*=" +syn match ncfSetCommandsBool "\(SMP Flush Processor Cache\)\s*=" +syn match ncfSetCommandsBool "\(SMP Intrusive Abend Mode\)\s*=" +syn match ncfSetCommandsBool "\(SMP Memory Protection\)\s*=" +syn match ncfSetCommandsBool "\(Sound Bell for Alerts\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Configured Sources\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Directory Tree Mode\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Hardware Clock\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC RESET\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Restart Flag\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Service Advertising\)\s*=" +syn match ncfSetCommandsBool "\(TIMESYNC Write Parameters\)\s*=" +syn match ncfSetCommandsBool "\(TTS Abort Dump Flag\)\s*=" +syn match ncfSetCommandsBool "\(Upgrade Low Priority Threads\)\s*=" +syn match ncfSetCommandsBool "\(Volume Low Warn All Users\)\s*=" +syn match ncfSetCommandsBool "\(Write Fault Emulation\)\s*=" +syn match ncfSetCommandsBool "\(Write Fault Notification\)\s*=" + +" Set Commands that take a "string" -- NOT QUOTED + +syn match ncfSetCommandsStr "\(Default Time Server Type\)\s*=" +syn match ncfSetCommandsStr "\(SMP NetWare Kernel Mode\)\s*=" +syn match ncfSetCommandsStr "\(Time Zone\)\s*=" +syn match ncfSetCommandsStr "\(TIMESYNC ADD Time Source\)\s*=" +syn match ncfSetCommandsStr "\(TIMESYNC REMOVE Time Source\)\s*=" +syn match ncfSetCommandsStr "\(TIMESYNC Time Source\)\s*=" +syn match ncfSetCommandsStr "\(TIMESYNC Type\)\s*=" + +" SET Commands that take a "Time" + +syn match ncfSetCommandsTime "\(Command Line Prompt Time Out\)\s*=" +syn match ncfSetCommandsTime "\(Delay Before First Watchdog Packet\)\s*=" +syn match ncfSetCommandsTime "\(Delay Between Watchdog Packets\)\s*=" +syn match ncfSetCommandsTime "\(Directory Cache Buffer NonReferenced Delay\)\s*=" +syn match ncfSetCommandsTime "\(Dirty Directory Cache Delay Time\)\s*=" +syn match ncfSetCommandsTime "\(Dirty Disk Cache Delay Time\)\s*=" +syn match ncfSetCommandsTime "\(File Delete Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(Minimum File Delete Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(Mirrored Devices Are Out of Sync Message Frequency\)\s*=" +syn match ncfSetCommandsTime "\(New Packet Receive Buffer Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(TTS Backout File Truncation Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(TTS UnWritten Cache Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(Turbo FAT Re-Use Wait Time\)\s*=" +syn match ncfSetCommandsTime "\(Daylight Savings Time Offset\)\s*=" + +syn match ncfSetCommandsTimeDate "\(End of Daylight Savings Time\)\s*=" +syn match ncfSetCommandsTimeDate "\(Start of Daylight Savings Time\)\s*=" + +syn match ncfSetCommandsBindCon "\(Bindery Context\)\s*=" nextgroup=ncfContString + +syn cluster ncfSetCommands contains=ncfSetCommandsNum,ncfSetCommandsBool,ncfSetCommandsStr,ncfSetCommandsTime,ncfSetCommandsTimeDate,ncfSetCommandsBindCon + + +if exists("ncf_highlight_unknowns") + syn match Error "[^ \t]*" contains=ALL +endif + + +" The default methods for highlighting. Can be overridden later +hi def link ncfCommands Statement +hi def link ncfSetCommands ncfCommands +hi def link ncfLogins ncfCommands +hi def link ncfString String +hi def link ncfContString ncfString +hi def link ncfComment Comment +hi def link ncfImplicit Type +hi def link ncfBoolean Boolean +hi def link ncfScript Identifier +hi def link ncfNumber Number +hi def link ncfIPAddr ncfNumber +hi def link ncfHexNumber ncfNumber +hi def link ncfTime ncfNumber +hi def link ncfDSTTime ncfNumber +hi def link ncfPath Constant +hi def link ncfServerName Special +hi def link ncfIPXNet ncfServerName +hi def link ncfTimeTypes Constant +hi def link ncfSetCommandsNum ncfSetCommands +hi def link ncfSetCommandsBool ncfSetCommands +hi def link ncfSetCommandsStr ncfSetCommands +hi def link ncfSetCommandsTime ncfSetCommands +hi def link ncfSetCommandsTimeDate ncfSetCommands +hi def link ncfSetCommandsBindCon ncfSetCommands + + + +let b:current_syntax = "ncf" diff --git a/git/usr/share/vim/vim92/syntax/neomuttlog.vim b/git/usr/share/vim/vim92/syntax/neomuttlog.vim new file mode 100644 index 0000000000000000000000000000000000000000..27f73493bd18f555370141adcd3a23be4addcb8a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/neomuttlog.vim @@ -0,0 +1,69 @@ +" Vim syntax file +" Language: NeoMutt log files +" Maintainer: Richard Russon +" Last Change: 2024 Oct 12 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax match neolog_date "\v^\[\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\] *" conceal +syntax match neolog_version "\v" +syntax match neolog_banner "\v^\[\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\] .*" contains=neolog_date,neolog_version +syntax match neolog_function "\v%26v\i+\(\)" + +syntax match neolog_perror_key "\v%22v\ " conceal transparent +syntax match neolog_error_key "\v%22v\ " conceal transparent +syntax match neolog_warning_key "\v%22v\ " conceal transparent +syntax match neolog_message_key "\v%22v\ " conceal transparent +syntax match neolog_debug1_key "\v%22v\<1\> " conceal transparent +syntax match neolog_debug2_key "\v%22v\<2\> " conceal transparent +syntax match neolog_debug3_key "\v%22v\<3\> " conceal transparent +syntax match neolog_debug4_key "\v%22v\<4\> " conceal transparent +syntax match neolog_debug5_key "\v%22v\<5\> " conceal transparent +syntax match neolog_notify_key "\v%22v\ " conceal transparent + +syntax match neolog_perror "\v%22v\ .*" contains=neolog_perror_key,neolog_function +syntax match neolog_error "\v%22v\ .*" contains=neolog_error_key,neolog_function +syntax match neolog_warning "\v%22v\ .*" contains=neolog_warning_key,neolog_function +syntax match neolog_message "\v%22v\ .*" contains=neolog_message_key,neolog_function +syntax match neolog_debug1 "\v%22v\<1\> .*" contains=neolog_debug1_key,neolog_function +syntax match neolog_debug2 "\v%22v\<2\> .*" contains=neolog_debug2_key,neolog_function +syntax match neolog_debug3 "\v%22v\<3\> .*" contains=neolog_debug3_key,neolog_function +syntax match neolog_debug4 "\v%22v\<4\> .*" contains=neolog_debug4_key,neolog_function +syntax match neolog_debug5 "\v%22v\<5\> .*" contains=neolog_debug5_key,neolog_function +syntax match neolog_notify "\v%22v\ .*" contains=neolog_notify_key,neolog_function + +if !exists('g:neolog_disable_default_colors') + highlight neolog_date ctermfg=cyan guifg=#40ffff + highlight neolog_banner ctermfg=magenta guifg=#ff00ff + highlight neolog_version cterm=reverse gui=reverse + highlight neolog_function guibg=#282828 + + highlight neolog_perror ctermfg=red guifg=#ff8080 + highlight neolog_error ctermfg=red guifg=#ff8080 + highlight neolog_warning ctermfg=yellow guifg=#ffff80 + highlight neolog_message ctermfg=green guifg=#80ff80 + highlight neolog_debug1 ctermfg=white guifg=#ffffff + highlight neolog_debug2 ctermfg=white guifg=#ffffff + highlight neolog_debug3 ctermfg=grey guifg=#c0c0c0 + highlight neolog_debug4 ctermfg=grey guifg=#c0c0c0 + highlight neolog_debug5 ctermfg=grey guifg=#c0c0c0 + highlight neolog_notify ctermfg=grey guifg=#c0c0c0 +endif + +highlight link neolog_perror_key neolog_perror +highlight link neolog_error_key neolog_error +highlight link neolog_warning_key neolog_warning +highlight link neolog_message_key neolog_message +highlight link neolog_debug1_key neolog_debug1 +highlight link neolog_debug2_key neolog_debug2 +highlight link neolog_debug3_key neolog_debug3 +highlight link neolog_debug4_key neolog_debug4 +highlight link neolog_debug5_key neolog_debug5 +highlight link neolog_notify_key neolog_notify + +let b:current_syntax = "neomuttlog" + +" vim: ts=2 et tw=100 sw=2 sts=0 ft=vim diff --git a/git/usr/share/vim/vim92/syntax/neomuttrc.vim b/git/usr/share/vim/vim92/syntax/neomuttrc.vim new file mode 100644 index 0000000000000000000000000000000000000000..815e160bbbee88be928a4a78e05047813e4a88f7 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/neomuttrc.vim @@ -0,0 +1,911 @@ +" Vim syntax file +" Language: NeoMutt setup files +" Maintainer: Richard Russon +" Previous Maintainer: Guillaume Brogi +" Last Change: 2024 Oct 12 +" Original version based on syntax/muttrc.vim + +" This file covers NeoMutt 2024-10-02 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" Set the keyword characters +setlocal isk=@,48-57,_,- + +" handling optional variables +syntax match muttrcComment "^# .*$" contains=@Spell +syntax match muttrcComment "^#[^ ].*$" +syntax match muttrcComment "^#$" +syntax match muttrcComment "[^\\]#.*$"lc=1 contains=@Spell + +" Escape sequences (back-tick and pipe goes here too) +syntax match muttrcEscape +\\[#tnr"'Cc ]+ +syntax match muttrcEscape +[`|]+ +syntax match muttrcEscape +\\$+ + +" The variables takes the following arguments +syntax region muttrcString contained keepend start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcCommand,muttrcAction,muttrcShellString +syntax region muttrcString contained keepend start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcCommand,muttrcAction +syntax match muttrcStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcString,muttrcStringNL + +syntax region muttrcShellString matchgroup=muttrcEscape keepend start=+`+ skip=+\\`+ end=+`+ contains=muttrcVarString,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcCommand + +syntax match muttrcRXChars contained /[^\\][][.*?+]\+/hs=s+1 +syntax match muttrcRXChars contained /[][|()][.*?+]*/ +syntax match muttrcRXChars contained /['"]^/ms=s+1 +syntax match muttrcRXChars contained /$['"]/me=e-1 +syntax match muttrcRXChars contained /\\/ +" Why does muttrcRXString2 work with one \ when muttrcRXString requires two? +syntax region muttrcRXString contained skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXChars +syntax region muttrcRXString contained skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXChars +syntax region muttrcRXString contained skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXChars +" For some reason, skip refuses to match backslashes here... +syntax region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXChars +syntax region muttrcRXString contained matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXChars +syntax region muttrcRXString2 contained skipwhite start=+'+ skip=+\'+ end=+'+ contains=muttrcRXChars +syntax region muttrcRXString2 contained skipwhite start=+"+ skip=+\"+ end=+"+ contains=muttrcRXChars + +" these must be kept synchronized with muttrcRXString, but are intended for muttrcRXHooks +syntax region muttrcRXHookString contained keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syntax region muttrcRXHookString contained keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syntax region muttrcRXHookString contained keepend skipwhite start=+[^ "'^]+ skip=+\\\s+ end=+\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syntax region muttrcRXHookString contained keepend skipwhite start=+\^+ end=+[^\\]\s+re=e-1 contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syntax region muttrcRXHookString contained keepend matchgroup=muttrcRXChars skipwhite start=+\^+ end=+$\s+ contains=muttrcRXString nextgroup=muttrcString,muttrcStringNL +syntax match muttrcRXHookStringNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcRXHookString,muttrcRXHookStringNL + +" these are exclusively for args lists (e.g. -rx pat pat pat ...) +syntax region muttrcRXPat contained keepend skipwhite start=+'+ skip=+\\'+ end=+'\s*+ contains=muttrcRXString nextgroup=muttrcRXPat +syntax region muttrcRXPat contained keepend skipwhite start=+"+ skip=+\\"+ end=+"\s*+ contains=muttrcRXString nextgroup=muttrcRXPat +syntax match muttrcRXPat contained /[^-'"#!]\S\+/ skipwhite contains=muttrcRXChars nextgroup=muttrcRXPat +syntax match muttrcRXDef contained "-rx\s\+" skipwhite nextgroup=muttrcRXPat + +syntax match muttrcSpecial +\(['"]\)!\1+ + +syntax match muttrcSetStrAssignment contained skipwhite /=\s*\%(\\\?\$\)\?[0-9A-Za-z_-]\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcVariable,muttrcEscapedVariable +syntax region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*"+hs=s+1 end=+"+ skip=+\\"+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcString +syntax region muttrcSetStrAssignment contained skipwhite keepend start=+=\s*'+hs=s+1 end=+'+ skip=+\\'+ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcString +syntax match muttrcSetBoolAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcVariable,muttrcEscapedVariable +syntax match muttrcSetBoolAssignment contained skipwhite /=\s*\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetBoolAssignment contained skipwhite /=\s*"\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetBoolAssignment contained skipwhite /=\s*'\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetQuadAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcVariable,muttrcEscapedVariable +syntax match muttrcSetQuadAssignment contained skipwhite /=\s*\%(ask-\)\?\%(yes\|no\)/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetQuadAssignment contained skipwhite /=\s*"\%(ask-\)\?\%(yes\|no\)"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetQuadAssignment contained skipwhite /=\s*'\%(ask-\)\?\%(yes\|no\)'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetNumAssignment contained skipwhite /=\s*\\\?\$\w\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString contains=muttrcVariable,muttrcEscapedVariable +syntax match muttrcSetNumAssignment contained skipwhite /=\s*\d\+/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetNumAssignment contained skipwhite /=\s*"\d\+"/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax match muttrcSetNumAssignment contained skipwhite /=\s*'\d\+'/hs=s+1 nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" Now catch some email addresses and headers (purified version from mail.vim) +syntax match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+" +syntax match muttrcHeader "\<\c\%(From\|To\|C[Cc]\|B[Cc][Cc]\|Reply-To\|Subject\|Return-Path\|Received\|Date\|Replied\|Attach\)\>:\=" + +syntax match muttrcKeySpecial contained +\%(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+ +syntax match muttrcKey contained "\S\+" contains=muttrcKeySpecial,muttrcKeyName +syntax region muttrcKey contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=muttrcKeySpecial,muttrcKeyName +syntax region muttrcKey contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=muttrcKeySpecial,muttrcKeyName +syntax match muttrcKeyName contained "\\[trne]" +syntax match muttrcKeyName contained "\c<\%(BackSpace\|BackTab\|Delete\|Down\|End\|Enter\|Esc\|Home\|Insert\|Left\|Next\|PageDown\|PageUp\|Return\|Right\|Space\|Tab\|Up\)>" +syntax match muttrcKeyName contained "\c" + +syntax match muttrcFormatErrors contained /%./ + +syntax match muttrcStrftimeEscapes contained /%[AaBbCcDdeFGgHhIjklMmnpRrSsTtUuVvWwXxYyZz+%]/ +syntax match muttrcStrftimeEscapes contained /%E[cCxXyY]/ +syntax match muttrcStrftimeEscapes contained /%O[BdeHImMSuUVwWy]/ + +" Defines syntax matches for muttrc[baseName]Escapes, muttrc[baseName]Conditionals +" If padding==1, also match `%>` `%|` `%*` expandos +" If conditional==1, some expandos support %X? format +syntax match muttrcFormatConditionals2 contained /[^?]*?/ +function! s:escapesConditionals(baseName, sequence, padding, conditional) + exec 'syntax match muttrc' . a:baseName . 'Escapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?\%(' . a:sequence . '\|%\)/' + if a:padding + exec 'syntax match muttrc' . a:baseName . 'Escapes contained /%[>|*]./' + endif + if a:conditional + exec 'syntax match muttrc' . a:baseName . 'Conditionals contained /%?\%(' . a:sequence . '\)?/ nextgroup=muttrcFormatConditionals2' + else + exec 'syntax match muttrc' . a:baseName . 'Conditionals contained /%?\%(' . a:sequence . '\)?/' + endif +endfunction + +" CHECKED 2024 Oct 12 +" Ref: AliasFormatDef in alias/config.c +call s:escapesConditionals('AliasFormat', '[acfnrtY]', 1, 0) +" Ref: AttachFormatDef in mutt_config.c +call s:escapesConditionals('AttachFormat', '[CcDdeFfIMmnQsTtuX]', 1, 1) +" Ref: AutocryptFormatDef in autocrypt/config.c +call s:escapesConditionals('AutocryptFormat', '[aknps]', 1, 0) +" Ref: ComposeFormatDef in compose/config.c +call s:escapesConditionals('ComposeFormat', '[ahlv]', 1, 1) +" Ref: FolderFormatDef in browser/config.c +call s:escapesConditionals('FolderFormat', '[aCDdFfgilmNnpstu[]', 1, 1) +" Ref: GreetingFormatDef in send/config.c +call s:escapesConditionals('GreetingFormat', '[nuv]', 0, 0) +" Ref: GroupIndexFormatDef in browser/config.c +call s:escapesConditionals('GroupIndexFormat', '[aCdfMNnps]', 1, 0) +" Ref: HistoryFormatDef in history/config.c +call s:escapesConditionals('HistoryFormat', '[Cs]', 1, 0) +" Ref: IndexFormatDef in mutt_config.c +call s:escapesConditionals('IndexFormat', '[AaBbCDdEefgHIiJKLlMmNnOPqRrSsTtuvWXxYyZ(<[{]\|@\i\+@\|G[a-zA-Z]\+\|Fp\=\|z[cst]\|cr\=', 1, 1) +" Ref: PatternFormatDef in pattern/config.c +call s:escapesConditionals('PatternFormat', '[den]', 1, 0) +" Ref: PgpCommandFormatDef in ncrypt/config.c +call s:escapesConditionals('PgpCommandFormat', '[afprs]', 0, 1) +" Ref: PgpEntryFormatDef in ncrypt/config.c +call s:escapesConditionals('PgpEntryFormat', '[AaCcFfIiKkLlnptu[]', 1, 1) +" Ref: QueryFormatDef in alias/config.c +call s:escapesConditionals('QueryFormat', '[acentY]', 1, 1) +" Ref: SidebarFormatDef in sidebar/config.c +call s:escapesConditionals('SidebarFormat', '[!aBDdFLNnoprStZ]', 1, 1) +" Ref: SmimeCommandFormatDef in ncrypt/config.c +call s:escapesConditionals('SmimeCommandFormat', '[aCcdfiks]', 0, 1) +" Ref: StatusFormatDef in mutt_config.c +call s:escapesConditionals('StatusFormat', '[bDdFfhLlMmnoPpRrSsTtuVv]', 1, 1) + +syntax region muttrcAliasFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAliasFormatEscapes,muttrcAliasFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcAliasFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAliasFormatEscapes,muttrcAliasFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcAttachFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcAttachFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAttachFormatEscapes,muttrcAttachFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcAutocryptFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcAutocryptFormatEscapes,muttrcAutocryptFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcAutocryptFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcAutocryptFormatEscapes,muttrcAutocryptFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcComposeFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcComposeFormatEscapes,muttrcComposeFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcComposeFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcComposeFormatEscapes,muttrcComposeFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcFolderFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcFolderFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcFolderFormatEscapes,muttrcFolderFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcGreetingFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcGreetingFormatEscapes,muttrcGreetingFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcGreetingFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcGreetingFormatEscapes,muttrcGreetingFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcGroupIndexFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcGroupIndexFormatEscapes,muttrcGroupIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcGroupIndexFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcGroupIndexFormatEscapes,muttrcGroupIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcHistoryFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcHistoryFormatEscapes,muttrcHistoryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcHistoryFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcHistoryFormatEscapes,muttrcHistoryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcIndexFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcIndexFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcIndexFormatEscapes,muttrcIndexFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPatternFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPatternFormatEscapes,muttrcPatternFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPatternFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPatternFormatEscapes,muttrcPatternFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPgpCommandFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPgpCommandFormatEscapes,muttrcPgpCommandFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPgpCommandFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPgpCommandFormatEscapes,muttrcPgpCommandFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPgpEntryFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPgpEntryFormatEscapes,muttrcPgpEntryFormatConditionals,muttrcFormatErrors,muttrcPgpTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcPgpEntryFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPgpEntryFormatEscapes,muttrcPgpEntryFormatConditionals,muttrcFormatErrors,muttrcPgpTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcQueryFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcQueryFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcQueryFormatEscapes,muttrcQueryFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcSidebarFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSidebarFormatEscapes,muttrcSidebarFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcSidebarFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSidebarFormatEscapes,muttrcSidebarFormatConditionals,muttrcFormatErrors,muttrcTimeEscapes nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcSmimeCommandFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcSmimeCommandFormatEscapes,muttrcSmimeCommandFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcSmimeCommandFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcSmimeCommandFormatEscapes,muttrcSmimeCommandFormatConditionals,muttrcVariable,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcStatusFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcStatusFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStatusFormatEscapes,muttrcStatusFormatConditionals,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcStrftimeFormatString contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax region muttrcStrftimeFormatString contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcStrftimeEscapes,muttrcFormatErrors nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" Format escapes and conditionals +syntax match muttrcFormatConditionals2 contained /[^?]*?/ + +syntax region muttrcPgpTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes +syntax region muttrcTimeEscapes contained start=+%(+ end=+)+ contains=muttrcStrftimeEscapes +syntax region muttrcTimeEscapes contained start=+%<+ end=+>+ contains=muttrcStrftimeEscapes +syntax region muttrcTimeEscapes contained start=+%\[+ end=+\]+ contains=muttrcStrftimeEscapes +syntax region muttrcTimeEscapes contained start=+%{+ end=+}+ contains=muttrcStrftimeEscapes + +syntax match muttrcVarEqualsAliasFormat contained skipwhite "=" nextgroup=muttrcAliasFormatString +syntax match muttrcVarEqualsAttachFormat contained skipwhite "=" nextgroup=muttrcAttachFormatString +syntax match muttrcVarEqualsAutocryptFormat contained skipwhite "=" nextgroup=muttrcAutocryptFormatString +syntax match muttrcVarEqualsComposeFormat contained skipwhite "=" nextgroup=muttrcComposeFormatString +syntax match muttrcVarEqualsFolderFormat contained skipwhite "=" nextgroup=muttrcFolderFormatString +syntax match muttrcVarEqualsGreetingFormat contained skipwhite "=" nextgroup=muttrcGreetingFormatString +syntax match muttrcVarEqualsGroupIndexFormat contained skipwhite "=" nextgroup=muttrcGroupIndexFormatString +syntax match muttrcVarEqualsHistoryFormat contained skipwhite "=" nextgroup=muttrcHistoryFormatString +syntax match muttrcVarEqualsIndexFormat contained skipwhite "=" nextgroup=muttrcIndexFormatString +syntax match muttrcVarEqualsPatternFormat contained skipwhite "=" nextgroup=muttrcPatternFormatString +syntax match muttrcVarEqualsPgpCommandFormat contained skipwhite "=" nextgroup=muttrcPgpCommandFormatString +syntax match muttrcVarEqualsPgpEntryFormat contained skipwhite "=" nextgroup=muttrcPgpEntryFormatString +syntax match muttrcVarEqualsQueryFormat contained skipwhite "=" nextgroup=muttrcQueryFormatString +syntax match muttrcVarEqualsSidebarFormat contained skipwhite "=" nextgroup=muttrcSidebarFormatString +syntax match muttrcVarEqualsSmimeCommandFormat contained skipwhite "=" nextgroup=muttrcSmimeCommandFormatString +syntax match muttrcVarEqualsStatusFormat contained skipwhite "=" nextgroup=muttrcStatusFormatString +syntax match muttrcVarEqualsStrftimeFormat contained skipwhite "=" nextgroup=muttrcStrftimeFormatString + +syntax match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" CHECKED 2024 Oct 12 +" List of the different screens in NeoMutt (see MenuNames in menu/type.c) +syntax keyword muttrcMenu contained alias attach autocrypt browser compose dialog editor generic index key_select_pgp key_select_smime pager pgp postpone query smime +syntax match muttrcMenuList "\S\+" contained contains=muttrcMenu +syntax match muttrcMenuCommas /,/ contained + +syntax region muttrcSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL +syntax region muttrcSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern nextgroup=muttrcString,muttrcStringNL + +syntax region muttrcNoSpamPattern contained skipwhite keepend start=+'+ skip=+\\'+ end=+'+ contains=muttrcPattern +syntax region muttrcNoSpamPattern contained skipwhite keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcPattern + +syntax match muttrcAttachmentsMimeType contained "[*a-z0-9_-]\+/[*a-z0-9._-]\+\s*" skipwhite nextgroup=muttrcAttachmentsMimeType +syntax match muttrcAttachmentsFlag contained "[+-]\%([AI]\|inline\|attachment\)\s\+" skipwhite nextgroup=muttrcAttachmentsMimeType +syntax match muttrcAttachmentsLine "^\s*\%(un\)\?attachments\s\+" skipwhite nextgroup=muttrcAttachmentsFlag + +syntax match muttrcUnHighlightSpace contained "\%(\s\+\|\\$\)" + +syntax keyword muttrcAsterisk contained * + +syntax keyword muttrcListsKeyword lists skipwhite nextgroup=muttrcGroupDef,muttrcComment +syntax keyword muttrcListsKeyword unlists skipwhite nextgroup=muttrcAsterisk,muttrcComment + +syntax keyword muttrcSubscribeKeyword subscribe skipwhite nextgroup=muttrcGroupDef,muttrcComment +syntax keyword muttrcSubscribeKeyword unsubscribe skipwhite nextgroup=muttrcAsterisk,muttrcComment + +syntax keyword muttrcAlternateKeyword contained alternates unalternates +syntax region muttrcAlternatesLine keepend start=+^\s*\%(un\)\?alternates\s+ skip=+\\$+ end=+$+ contains=muttrcAlternateKeyword,muttrcGroupDef,muttrcRXPat,muttrcUnHighlightSpace,muttrcComment + +" muttrcVariable includes a prefix because partial strings are considered valid. +syntax match muttrcVariable contained "\\\@]\+" contains=muttrcEmail +syntax match muttrcAction contained "<[^>]\{-}>" contains=muttrcBadAction,muttrcFunction,muttrcKeyName + +" CHECKED 2024 Oct 12 +" First, hooks that take regular expressions: +syntax match muttrcRXHookNot contained /!\s*/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL +syntax match muttrcRXHookNoRegex contained /-noregex/ skipwhite nextgroup=muttrcRXHookString,muttrcRXHookStringNL +syntax match muttrcRXHooks /\<\%(account\|append\|close\|crypt\|open\|pgp\|shutdown\|startup\|timeout\)-hook\>/ skipwhite nextgroup=muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL +syntax match muttrcRXHooks /\<\%(folder\|mbox\)-hook\>/ skipwhite nextgroup=muttrcRXHookNoRegex,muttrcRXHookNot,muttrcRXHookString,muttrcRXHookStringNL + +" Now, hooks that take patterns +syntax match muttrcPatHookNot contained /!\s*/ skipwhite nextgroup=muttrcPattern +syntax match muttrcPatHooks /\<\%(charset\|iconv\|index-format\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcPattern +syntax match muttrcPatHooks /\<\%(message\|reply\|send\|send2\|save\|fcc\|fcc-save\)-hook\>/ skipwhite nextgroup=muttrcPatHookNot,muttrcOptPattern + +" Global hooks that take a command +syntax keyword muttrcHooks skipwhite shutdown-hook startup-hook timeout-hook nextgroup=muttrcCommand + +syntax match muttrcBindFunction contained /\S\+\>/ skipwhite contains=muttrcFunction +syntax match muttrcBindFunctionNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindFunction,muttrcBindFunctionNL +syntax match muttrcBindKey contained /\S\+/ skipwhite contains=muttrcKey nextgroup=muttrcBindFunction,muttrcBindFunctionNL +syntax match muttrcBindKeyNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindKey,muttrcBindKeyNL +syntax match muttrcBindMenuList contained /\S\+/ skipwhite contains=muttrcMenu,muttrcMenuCommas nextgroup=muttrcBindKey,muttrcBindKeyNL +syntax match muttrcBindMenuListNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcBindMenuList,muttrcBindMenuListNL + +syntax region muttrcMacroDescr contained keepend skipwhite start=+\s*\S+ms=e skip=+\\ + end=+ \|$+me=s +syntax region muttrcMacroDescr contained keepend skipwhite start=+'+ms=e skip=+\\'+ end=+'+me=s +syntax region muttrcMacroDescr contained keepend skipwhite start=+"+ms=e skip=+\\"+ end=+"+me=s +syntax match muttrcMacroDescrNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcMacroDescr,muttrcMacroDescrNL +syntax region muttrcMacroBody contained skipwhite start="\S" skip='\\ \|\\$' end=' \|$' contains=muttrcEscape,muttrcSet,muttrcUnset,muttrcReset,muttrcToggle,muttrcCommand,muttrcAction nextgroup=muttrcMacroDescr,muttrcMacroDescrNL +syntax region muttrcMacroBody matchgroup=Type contained skipwhite start=+'+ms=e skip=+\\'+ end=+'\|\%(\%(\\\\\)\@]\+>/ contains=muttrcEmail nextgroup=muttrcAliasComma +syntax match muttrcAliasEncEmailNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL +syntax match muttrcAliasNameNoParens contained /[^<(@]\+\s\+/ nextgroup=muttrcAliasEncEmail,muttrcAliasEncEmailNL +syntax region muttrcAliasName contained matchgroup=Type start=/(/ end=/)/ skipwhite +syntax match muttrcAliasNameNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasName,muttrcAliasNameNL +syntax match muttrcAliasENNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL +syntax match muttrcAliasKey contained /\s*[^- \t]\S\+/ skipwhite nextgroup=muttrcAliasEmail,muttrcAliasEncEmail,muttrcAliasNameNoParens,muttrcAliasENNL +syntax match muttrcAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL + +syntax match muttrcUnAliasKey contained "\s*\w\+\s*" skipwhite nextgroup=muttrcUnAliasKey,muttrcUnAliasNL +syntax match muttrcUnAliasNL contained /\s*\\$/ skipwhite skipnl nextgroup=muttrcUnAliasKey,muttrcUnAliasNL + +" CHECKED 2024 Oct 12 +" List of letters in Flags in pattern/flags.c +" Parameter: none +syntax match muttrcSimplePat contained "!\?\^\?[~][ADEFGgklNOPpQRSTUuVv#$=]" +" Parameter: range +syntax match muttrcSimplePat contained "!\?\^\?[~][mnXz]\s*\%([<>-][0-9]\+[kM]\?\|[0-9]\+[kM]\?[-]\%([0-9]\+[kM]\?\)\?\)" +" Parameter: date +syntax match muttrcSimplePat contained "!\?\^\?[~][dr]\s*\%(\%(-\?[0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)\|\%(\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)*\)-\%([0-9]\{1,2}\%(/[0-9]\{1,2}\%(/[0-9]\{2}\%([0-9]\{2}\)\?\)\?\)\?\%([+*-][0-9]\+[ymwd]\)\?\)\?\)\|\%([<>=][0-9]\+[ymwd]\)\|\%(`[^`]\+`\)\|\%(\$[a-zA-Z0-9_-]\+\)\)" contains=muttrcShellString,muttrcVariable +" Parameter: regex +syntax match muttrcSimplePat contained "!\?\^\?[~][BbCcefHhIiKLMstwxYy]\s*" nextgroup=muttrcSimplePatRXContainer +" Parameter: pattern +syntax match muttrcSimplePat contained "!\?\^\?[%][BbCcefHhiLstxy]\s*" nextgroup=muttrcSimplePatString +" Parameter: pattern +syntax match muttrcSimplePat contained "!\?\^\?[=][bcCefhHiLstxy]\s*" nextgroup=muttrcSimplePatString +syntax region muttrcSimplePat contained keepend start=+!\?\^\?[~](+ end=+)+ contains=muttrcSimplePat + +"syn match muttrcSimplePat contained /'[^~=%][^']*/ contains=muttrcRXString +syntax region muttrcSimplePatString contained keepend start=+"+ end=+"+ skip=+\\"+ +syntax region muttrcSimplePatString contained keepend start=+'+ end=+'+ skip=+\\'+ +syntax region muttrcSimplePatString contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 +syntax region muttrcSimplePatRXContainer contained keepend start=+"+ end=+"+ skip=+\\"+ contains=muttrcRXString +syntax region muttrcSimplePatRXContainer contained keepend start=+'+ end=+'+ skip=+\\'+ contains=muttrcRXString +syntax region muttrcSimplePatRXContainer contained keepend start=+[^ "']+ skip=+\\ + end=+\s+re=e-1 contains=muttrcRXString +syntax match muttrcSimplePatMetas contained /[(|)]/ + +syntax match muttrcOptSimplePat contained skipwhite /[~=%!(^].*/ contains=muttrcSimplePat,muttrcSimplePatMetas +syntax match muttrcOptSimplePat contained skipwhite /[^~=%!(^].*/ contains=muttrcRXString +syntax region muttrcOptPattern contained matchgroup=Type keepend start=+"+ skip=+\\"+ end=+"+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL +syntax region muttrcOptPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcOptSimplePat,muttrcUnHighlightSpace nextgroup=muttrcString,muttrcStringNL +syntax region muttrcOptPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL +syntax match muttrcOptPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat nextgroup=muttrcString,muttrcStringNL +syntax match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,muttrcStringNL +" Keep muttrcPattern and muttrcOptPattern synchronized +syntax region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syntax region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syntax region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat +syntax match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat +syntax match muttrcPattern contained skipwhite /[.]/ +syntax region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas +syntax region muttrcPatternInner contained keepend start=+'[~=%!(^]+ms=s+1 skip=+\\'+ end=+'+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas + +" Colour definitions takes object, foreground and background arguments (regexes excluded). +syntax match muttrcColorMatchCount contained "[0-9]\+" +syntax match muttrcColorMatchCountNL contained skipwhite skipnl "\s*\\$" nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syntax region muttrcColorRXPat contained start=+\s*'+ skip=+\\'+ end=+'\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syntax region muttrcColorRXPat contained start=+\s*"+ skip=+\\"+ end=+"\s*+ keepend skipwhite contains=muttrcRXString2 nextgroup=muttrcColorMatchCount,muttrcColorMatchCountNL +syntax keyword muttrcColor contained black blue cyan default green magenta red white yellow +syntax keyword muttrcColor contained brightblack brightblue brightcyan brightdefault brightgreen brightmagenta brightred brightwhite brightyellow +syntax keyword muttrcColor contained lightblack lightblue lightcyan lightdefault lightgreen lightmagenta lightred lightwhite lightyellow +syntax keyword muttrcColor contained alertblack alertblue alertcyan alertdefault alertgreen alertmagenta alertred alertwhite alertyellow +syntax match muttrcColor contained "\<\%(bright\)\=color\d\{1,3}\>" +syntax match muttrcColor contained "#[0-9a-fA-F]\{6}\>" + +" Now for the structure of the color line +syntax match muttrcColorRXNL contained skipnl "\s*\\$" nextgroup=muttrcColorRXPat,muttrcColorRXNL +syntax match muttrcColorBG contained /\s*[#$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorRXPat,muttrcColorRXNL +syntax match muttrcColorBGNL contained skipnl "\s*\\$" nextgroup=muttrcColorBG,muttrcColorBGNL +syntax match muttrcColorFG contained /\s*[#$]\?\w\+/ contains=muttrcColor,muttrcVariable,muttrcUnHighlightSpace nextgroup=muttrcColorBG,muttrcColorBGNL +syntax match muttrcColorFGNL contained skipnl "\s*\\$" nextgroup=muttrcColorFG,muttrcColorFGNL +syntax match muttrcColorContext contained /\s*[#$]\?\w\+/ contains=muttrcColorField,muttrcVariable,muttrcUnHighlightSpace,muttrcColorCompose nextgroup=muttrcColorFG,muttrcColorFGNL +syntax match muttrcColorNL contained skipnl "\s*\\$" nextgroup=muttrcColorContext,muttrcColorNL,muttrcColorCompose +syntax match muttrcColorKeyword contained /^\s*color\s\+/ nextgroup=muttrcColorContext,muttrcColorNL,muttrcColorCompose +" And now color's brother: +syntax region muttrcUnColorPatterns contained skipwhite start=+\s*'+ end=+'+ skip=+\\'+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syntax region muttrcUnColorPatterns contained skipwhite start=+\s*"+ end=+"+ skip=+\\"+ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syntax match muttrcUnColorPatterns contained skipwhite /\s*[^'"\s]\S\*/ contains=muttrcPattern nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syntax match muttrcUnColorPatNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorPatNL +syntax match muttrcUnColorAll contained skipwhite /[*]/ +syntax match muttrcUnColorAPNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL +syntax match muttrcUnColorIndex contained skipwhite /\s*index\s\+/ nextgroup=muttrcUnColorPatterns,muttrcUnColorAll,muttrcUnColorAPNL +syntax match muttrcUnColorIndexNL contained skipwhite skipnl /\s*\\$/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL +syntax match muttrcUnColorKeyword contained skipwhite /^\s*uncolor\s\+/ nextgroup=muttrcUnColorIndex,muttrcUnColorIndexNL +syntax region muttrcUnColorLine keepend start=+^\s*uncolor\s+ skip=+\\$+ end=+$+ contains=muttrcUnColorKeyword,muttrcComment,muttrcUnHighlightSpace + +syntax keyword muttrcMonoAttrib contained bold italic none normal reverse standout underline +syntax keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorField,muttrcColorCompose +syntax match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono + +" CHECKED 2024 Oct 12 +" List of fields in ColorFields in color/command.c +syntax keyword muttrcColorField skipwhite contained + \ attachment attach_headers body bold error hdrdefault header index index_author + \ index_collapsed index_date index_flags index_label index_number index_size index_subject + \ index_tag index_tags indicator italic markers message normal options progress prompt + \ search sidebar_background sidebar_divider sidebar_flagged sidebar_highlight + \ sidebar_indicator sidebar_new sidebar_ordinary sidebar_spool_file sidebar_unread signature + \ status stripe_even stripe_odd tilde tree underline warning + \ nextgroup=muttrcColor + +syntax match muttrcColorField contained "\" + +syntax match muttrcColorCompose skipwhite contained /\s*compose\s*/ nextgroup=muttrcColorComposeField + +" CHECKED 2024 Oct 12 +" List of fields in ComposeColorFields in color/command.c +syntax keyword muttrcColorComposeField skipwhite contained + \ header security_both security_encrypt security_none security_sign + \ nextgroup=muttrcColorFG,muttrcColorFGNL +syntax region muttrcColorLine keepend start=/^\s*color\s\+/ skip=+\\$+ end=+$+ contains=muttrcColorKeyword,muttrcComment,muttrcUnHighlightSpace + +function! s:boolQuadGen(type, vars, deprecated) + let l:novars = copy(a:vars) + call map(l:novars, '"no" . v:val') + let l:invvars = copy(a:vars) + call map(l:invvars, '"inv" . v:val') + + let l:orig_type = copy(a:type) + if a:deprecated + let l:type = 'Deprecated' . a:type + exec 'syntax keyword muttrcVar' . l:type . ' ' . join(a:vars) + exec 'syntax keyword muttrcVar' . l:type . ' ' . join(l:novars) + exec 'syntax keyword muttrcVar' . l:type . ' ' . join(l:invvars) + else + let l:type = a:type + exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(a:vars) . ' nextgroup=muttrcSet' . l:orig_type . 'Assignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString' + exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(l:novars) . ' nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString' + exec 'syntax keyword muttrcVar' . l:type . ' skipwhite contained ' . join(l:invvars) . ' nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString' + endif + +endfunction + +" CHECKED 2024 Oct 12 +" List of DT_BOOL in MuttVars in mutt_config.c +call s:boolQuadGen('Bool', [ + \ 'abort_backspace', 'allow_8bit', 'allow_ansi', 'arrow_cursor', 'ascii_chars', 'ask_bcc', + \ 'ask_cc', 'ask_followup_to', 'ask_x_comment_to', 'attach_save_without_prompting', + \ 'attach_split', 'autocrypt', 'autocrypt_reply', 'auto_edit', 'auto_subscribe', 'auto_tag', + \ 'beep', 'beep_new', 'bounce_delivered', 'braille_friendly', + \ 'browser_abbreviate_mailboxes', 'browser_sort_dirs_first', 'change_folder_next', + \ 'check_mbox_size', 'check_new', 'collapse_all', 'collapse_flagged', 'collapse_unread', + \ 'color_directcolor', 'compose_confirm_detach_first', 'compose_show_user_headers', + \ 'confirm_append', 'confirm_create', 'copy_decode_weed', 'count_alternatives', + \ 'crypt_auto_encrypt', 'crypt_auto_pgp', 'crypt_auto_sign', 'crypt_auto_smime', + \ 'crypt_confirm_hook', 'crypt_encryption_info', 'crypt_opportunistic_encrypt', + \ 'crypt_opportunistic_encrypt_strong_keys', 'crypt_protected_headers_read', + \ 'crypt_protected_headers_save', 'crypt_protected_headers_weed', + \ 'crypt_protected_headers_write', 'crypt_reply_encrypt', 'crypt_reply_sign', + \ 'crypt_reply_sign_encrypted', 'crypt_timestamp', 'crypt_use_gpgme', 'crypt_use_pka', + \ 'delete_untag', 'digest_collapse', 'duplicate_threads', 'edit_headers', 'encode_from', + \ 'fast_reply', 'fcc_before_send', 'fcc_clear', 'flag_safe', 'followup_to', 'force_name', + \ 'forward_decode', 'forward_decrypt', 'forward_quote', 'forward_references', 'hdrs', + \ 'header', 'header_color_partial', 'help', 'hidden_host', 'hide_limited', 'hide_missing', + \ 'hide_thread_subject', 'hide_top_limited', 'hide_top_missing', 'history_remove_dups', + \ 'honor_disposition', 'idn_decode', 'idn_encode', 'ignore_list_reply_to', + \ 'imap_check_subscribed', 'imap_condstore', 'imap_deflate', 'imap_idle', + \ 'imap_list_subscribed', 'imap_passive', 'imap_peek', 'imap_qresync', 'imap_rfc5161', + \ 'imap_send_id', 'imap_server_noise', 'implicit_auto_view', 'include_encrypted', + \ 'include_only_first', 'keep_flagged', 'local_date_header', 'mailcap_sanitize', + \ 'maildir_check_cur', 'maildir_header_cache_verify', 'maildir_trash', 'mail_check_recent', + \ 'mail_check_stats', 'markers', 'mark_old', 'menu_move_off', 'menu_scroll', + \ 'message_cache_clean', 'meta_key', 'me_too', 'mh_purge', 'mime_forward_decode', + \ 'mime_type_query_first', 'narrow_tree', 'nm_query_window_enable', 'nm_record', + \ 'nntp_listgroup', 'nntp_load_description', 'pager_stop', 'pgp_auto_decode', + \ 'pgp_auto_inline', 'pgp_check_exit', 'pgp_check_gpg_decrypt_status_fd', + \ 'pgp_ignore_subkeys', 'pgp_long_ids', 'pgp_reply_inline', 'pgp_retainable_sigs', + \ 'pgp_self_encrypt', 'pgp_show_unusable', 'pgp_strict_enc', 'pgp_use_gpg_agent', + \ 'pipe_decode', 'pipe_decode_weed', 'pipe_split', 'pop_auth_try_all', 'pop_last', + \ 'postpone_encrypt', 'print_decode', 'print_decode_weed', 'print_split', 'prompt_after', + \ 'read_only', 'reflow_space_quotes', 'reflow_text', 'reply_self', 'reply_with_xorig', + \ 'resolve', 'resume_draft_files', 'resume_edited_draft_files', 'reverse_alias', + \ 'reverse_name', 'reverse_real_name', 'rfc2047_parameters', 'save_address', 'save_empty', + \ 'save_name', 'save_unsubscribed', 'score', 'show_new_news', 'show_only_unread', + \ 'sidebar_folder_indent', 'sidebar_new_mail_only', 'sidebar_next_new_wrap', + \ 'sidebar_non_empty_mailbox_only', 'sidebar_on_right', 'sidebar_short_path', + \ 'sidebar_visible', 'sig_dashes', 'sig_on_top', 'size_show_bytes', 'size_show_fractions', + \ 'size_show_mb', 'size_units_on_left', 'smart_wrap', 'smime_ask_cert_label', + \ 'smime_decrypt_use_default_key', 'smime_is_default', 'smime_self_encrypt', 'sort_re', + \ 'ssl_force_tls', 'ssl_use_sslv2', 'ssl_use_sslv3', 'ssl_use_system_certs', + \ 'ssl_use_tlsv1', 'ssl_use_tlsv1_1', 'ssl_use_tlsv1_2', 'ssl_use_tlsv1_3', + \ 'ssl_verify_dates', 'ssl_verify_host', 'ssl_verify_partial_chains', 'status_on_top', + \ 'strict_threads', 'suspend', 'text_flowed', 'thorough_search', 'thread_received', 'tilde', + \ 'ts_enabled', 'tunnel_is_secure', 'uncollapse_jump', 'uncollapse_new', 'user_agent', + \ 'use_8bit_mime', 'use_domain', 'use_envelope_from', 'use_from', 'use_ipv6', + \ 'virtual_spool_file', 'wait_key', 'weed', 'wrap_search', 'write_bcc', 'x_comment_to' + \ ], 0) + +" CHECKED 2024 Oct 12 +" Deprecated Bools +" List of DT_SYNONYM or DT_DEPRECATED Bools in MuttVars in mutt_config.c +call s:boolQuadGen('Bool', [ + \ 'askbcc', 'askcc', 'ask_follow_up', 'autoedit', 'confirmappend', 'confirmcreate', + \ 'crypt_autoencrypt', 'crypt_autopgp', 'crypt_autosign', 'crypt_autosmime', + \ 'crypt_confirmhook', 'crypt_replyencrypt', 'crypt_replysign', 'crypt_replysignencrypted', + \ 'cursor_overlay', 'edit_hdrs', 'envelope_from', 'forw_decode', 'forw_decrypt', + \ 'forw_quote', 'header_cache_compress', 'ignore_linear_white_space', 'imap_servernoise', + \ 'implicit_autoview', 'include_onlyfirst', 'metoo', 'mime_subject', 'pgp_autoencrypt', + \ 'pgp_autoinline', 'pgp_autosign', 'pgp_auto_traditional', 'pgp_create_traditional', + \ 'pgp_replyencrypt', 'pgp_replyinline', 'pgp_replysign', 'pgp_replysignencrypted', + \ 'pgp_self_encrypt_as', 'reverse_realname', 'smime_self_encrypt_as', 'ssl_usesystemcerts', + \ 'use_8bitmime', 'virtual_spoolfile', 'xterm_set_titles' + \ ], 1) + +" CHECKED 2024 Oct 12 +" List of DT_QUAD in MuttVars in mutt_config.c +call s:boolQuadGen('Quad', [ + \ 'abort_noattach', 'abort_nosubject', 'abort_unmodified', 'bounce', 'catchup_newsgroup', + \ 'copy', 'crypt_verify_sig', 'delete', 'fcc_attach', 'followup_to_poster', + \ 'forward_attachments', 'forward_edit', 'honor_followup_to', 'include', 'mime_forward', + \ 'mime_forward_rest', 'move', 'pgp_mime_auto', 'pop_delete', 'pop_reconnect', 'postpone', + \ 'post_moderated', 'print', 'quit', 'recall', 'reply_to', 'ssl_starttls' + \ ], 0) + +" CHECKED 2024 Oct 12 +" Deprecated Quads +" List of DT_SYNONYM or DT_DEPRECATED Quads in MuttVars in mutt_config.c +call s:boolQuadGen('Quad', [ + \ 'mime_fwd', 'pgp_encrypt_self', 'pgp_verify_sig', 'smime_encrypt_self' + \ ], 1) + +" CHECKED 2024 Oct 12 +" List of DT_NUMBER or DT_LONG in MuttVars in mutt_config.c +syntax keyword muttrcVarNum skipwhite contained + \ debug_level header_cache_compress_level history imap_fetch_chunk_size imap_keep_alive + \ imap_pipeline_depth imap_poll_timeout mail_check mail_check_stats_interval menu_context + \ net_inc nm_db_limit nm_open_timeout nm_query_window_current_position + \ nm_query_window_duration nntp_context nntp_poll pager_context pager_index_lines + \ pager_read_delay pager_skip_quoted_context pgp_timeout pop_check_interval read_inc + \ reflow_wrap save_history score_threshold_delete score_threshold_flag score_threshold_read + \ search_context sendmail_wait sidebar_component_depth sidebar_width sleep_time + \ smime_timeout socket_timeout ssl_min_dh_prime_bits timeout time_inc + \ toggle_quoted_show_levels wrap wrap_headers write_inc + \ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +" CHECKED 2024 Oct 12 +" Deprecated Numbers +syntax keyword muttrcVarDeprecatedNum + \ connect_timeout header_cache_pagesize imap_keepalive pop_checkinterval skip_quoted_offset + +" CHECKED 2024 Oct 12 +" List of DT_STRING in MuttVars in mutt_config.c +" Special cases first, and all the rest at the end +" Formats themselves must be updated in their respective groups +" See s:escapesConditionals +syntax match muttrcVarString contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax keyword muttrcVarString contained skipwhite alias_format nextgroup=muttrcVarEqualsAliasFormat +syntax keyword muttrcVarString contained skipwhite attach_format nextgroup=muttrcVarEqualsAttachFormat +syntax keyword muttrcVarString contained skipwhite autocrypt_acct_format nextgroup=muttrcVarEqualsAutocryptFormat +syntax keyword muttrcVarString contained skipwhite compose_format nextgroup=muttrcVarEqualsComposeFormat +syntax keyword muttrcVarString contained skipwhite folder_format mailbox_folder_format nextgroup=muttrcVarEqualsFolderFormat +syntax keyword muttrcVarString contained skipwhite greeting nextgroup=muttrcVarEqualsGreetingFormat +syntax keyword muttrcVarString contained skipwhite history_format nextgroup=muttrcVarEqualsHistoryFormat +syntax keyword muttrcVarString contained skipwhite + \ attribution_intro attribution_trailer forward_attribution_intro forward_attribution_trailer + \ forward_format indent_string index_format message_format pager_format + \ nextgroup=muttrcVarEqualsIndexFormat +syntax keyword muttrcVarString contained skipwhite pattern_format nextgroup=muttrcVarEqualsPatternFormat +syntax keyword muttrcVarString contained skipwhite + \ pgp_clear_sign_command pgp_decode_command pgp_decrypt_command pgp_encrypt_only_command + \ pgp_encrypt_sign_command pgp_export_command pgp_get_keys_command pgp_import_command + \ pgp_list_pubring_command pgp_list_secring_command pgp_sign_command pgp_verify_command + \ pgp_verify_key_command + \ nextgroup=muttrcVarEqualsPgpCommandFormat +syntax keyword muttrcVarString contained skipwhite pgp_entry_format nextgroup=muttrcVarEqualsPgpEntryFormat +syntax keyword muttrcVarString contained skipwhite query_format nextgroup=muttrcVarEqualsQueryFormat +syntax keyword muttrcVarString contained skipwhite + \ smime_decrypt_command smime_encrypt_command smime_get_cert_command + \ smime_get_cert_email_command smime_get_signer_cert_command smime_import_cert_command + \ smime_pk7out_command smime_sign_command smime_verify_command smime_verify_opaque_command + \ nextgroup=muttrcVarEqualsSmimeCommandFormat +syntax keyword muttrcVarString contained skipwhite status_format ts_icon_format ts_status_format nextgroup=muttrcVarEqualsStatusFormat +syntax keyword muttrcVarString contained skipwhite date_format nextgroup=muttrcVarEqualsStrftimeFormat +syntax keyword muttrcVarString contained skipwhite group_index_format nextgroup=muttrcVarEqualsGroupIndexFormat +syntax keyword muttrcVarString contained skipwhite sidebar_format nextgroup=muttrcVarEqualsSidebarFormat +syntax keyword muttrcVarString contained skipwhite + \ abort_key arrow_string assumed_charset attach_charset attach_sep attribution_locale + \ charset config_charset content_type crypt_protected_headers_subject default_hook + \ dsn_notify dsn_return empty_subject header_cache_backend header_cache_compress_method + \ hidden_tags hostname imap_authenticators imap_delim_chars imap_headers imap_login + \ imap_pass imap_user mailcap_path maildir_field_delimiter mark_macro_prefix mh_seq_flagged + \ mh_seq_replied mh_seq_unseen newsgroups_charset newsrc news_server nm_config_profile + \ nm_default_url nm_exclude_tags nm_flagged_tag nm_query_type nm_query_window_current_search + \ nm_query_window_or_terms nm_query_window_timebase nm_record_tags nm_replied_tag + \ nm_unread_tag nntp_authenticators nntp_pass nntp_user pgp_default_key pgp_sign_as pipe_sep + \ pop_authenticators pop_host pop_pass pop_user postpone_encrypt_as preconnect + \ preferred_languages real_name send_charset show_multipart_alternative sidebar_delim_chars + \ sidebar_divider_char sidebar_indent_string simple_search smime_default_key + \ smime_encrypt_with smime_sign_as smime_sign_digest_alg smtp_authenticators smtp_pass + \ smtp_url smtp_user spam_separator ssl_ciphers + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" Deprecated strings +syntax keyword muttrcVarDeprecatedString + \ abort_noattach_regexp attach_keyword attribution escape forw_format hdr_format indent_str + \ message_cachedir mixmaster mix_entry_format msg_format nm_default_uri + \ pgp_clearsign_command pgp_getkeys_command pgp_self_encrypt_as post_indent_str + \ post_indent_string print_cmd quote_regexp realname reply_regexp smime_self_encrypt_as + \ spoolfile tmpdir vfolder_format visual xterm_icon xterm_title + +" CHECKED 2024 Oct 12 +" List of DT_ADDRESS +syntax keyword muttrcVarString contained skipwhite envelope_from_address from nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +" List of DT_ENUM +syntax keyword muttrcVarString contained skipwhite mbox_type use_threads nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +" List of DT_MBTABLE +syntax keyword muttrcVarString contained skipwhite crypt_chars flag_chars from_chars status_chars to_chars nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" CHECKED 2024 Oct 12 +" List of DT_PATH or D_STRING_MAILBOX +syntax keyword muttrcVarString contained skipwhite + \ alias_file attach_save_dir autocrypt_dir certificate_file debug_file entropy_file folder + \ header_cache history_file mbox message_cache_dir news_cache_dir nm_config_file postponed + \ record signature smime_ca_location smime_certificates smime_keys spool_file + \ ssl_ca_certificates_file ssl_client_cert tmp_dir trash + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +" List of DT_COMMAND (excluding pgp_*_command and smime_*_command) +syntax keyword muttrcVarString contained skipwhite + \ account_command display_filter editor external_search_command imap_oauth_refresh_command + \ inews ispell mime_type_query_command new_mail_command pager pop_oauth_refresh_command + \ print_command query_command sendmail shell smtp_oauth_refresh_command tunnel + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" CHECKED 2024 Oct 12 +" List of DT_REGEX +syntax keyword muttrcVarString contained skipwhite + \ abort_noattach_regex gecos_mask mask pgp_decryption_okay pgp_good_sign quote_regex + \ reply_regex smileys + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +" List of DT_SORT +syntax keyword muttrcVarString contained skipwhite + \ pgp_sort_keys sidebar_sort_method sort sort_alias sort_aux sort_browser + \ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString + +" CHECKED 2024 Oct 12 +" List of commands in mutt_commands in commands.c +" Remember to remove hooks, they have already been dealt with +syntax keyword muttrcCommand skipwhite alias nextgroup=muttrcAliasGroupDef,muttrcAliasKey,muttrcAliasNL +syntax keyword muttrcCommand skipwhite bind nextgroup=muttrcBindMenuList,muttrcBindMenuListNL +syntax keyword muttrcCommand skipwhite exec nextgroup=muttrcFunction +syntax keyword muttrcCommand skipwhite macro nextgroup=muttrcMacroMenuList,muttrcMacroMenuListNL +syntax keyword muttrcCommand skipwhite nospam nextgroup=muttrcNoSpamPattern +syntax keyword muttrcCommand skipwhite set unset reset toggle nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarString +syntax keyword muttrcCommand skipwhite spam nextgroup=muttrcSpamPattern +syntax keyword muttrcCommand skipwhite unalias nextgroup=muttrcUnAliasKey,muttrcUnAliasNL +syntax keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks +syntax keyword muttrcCommand skipwhite + \ alternative_order attachments auto_view cd echo finish hdr_order ifdef ifndef ignore lua + \ lua-source mailboxes mailto_allow mime_lookup my_hdr named-mailboxes push score setenv + \ sidebar_pin sidebar_unpin source subjectrx subscribe-to tag-formats tag-transforms + \ unalternative_order unattachments unauto_view unbind uncolor unhdr_order unignore unmacro + \ unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore unsetenv unsubjectrx + \ unsubscribe-from unvirtual-mailboxes version virtual-mailboxes + +" CHECKED 2024 Oct 12 +" Deprecated commands +syntax keyword muttrcDeprecatedCommand skipwhite + \ sidebar_whitelist unsidebar_whitelist + +function! s:genFunctions(functions) + for f in a:functions + exec 'syntax match muttrcFunction contained "\<' . l:f . '\>"' + endfor +endfunction + +" CHECKED 2024 Oct 12 +" List of functions in functions.c +" Note: 'noop' is included but is elsewhere in the source +call s:genFunctions(['noop', + \ 'alias-dialog', 'attach-file', 'attach-key', 'attach-message', 'attach-news-message', + \ 'autocrypt-acct-menu', 'autocrypt-menu', 'backspace', 'backward-char', 'backward-word', + \ 'bol', 'bottom', 'bottom-page', 'bounce-message', 'break-thread', 'buffy-cycle', + \ 'buffy-list', 'capitalize-word', 'catchup', 'change-dir', 'change-folder', + \ 'change-folder-readonly', 'change-newsgroup', 'change-newsgroup-readonly', + \ 'change-vfolder', 'check-new', 'check-stats', 'check-traditional-pgp', 'clear-flag', + \ 'collapse-all', 'collapse-parts', 'collapse-thread', 'complete', 'complete-query', + \ 'compose-to-sender', 'copy-file', 'copy-message', 'create-account', 'create-alias', + \ 'create-mailbox', 'current-bottom', 'current-middle', 'current-top', 'decode-copy', + \ 'decode-save', 'decrypt-copy', 'decrypt-save', 'delete-account', 'delete-char', + \ 'delete-entry', 'delete-mailbox', 'delete-message', 'delete-pattern', 'delete-subthread', + \ 'delete-thread', 'descend-directory', 'detach-file', 'display-address', + \ 'display-filename', 'display-message', 'display-toggle-weed', 'downcase-word', 'edit', + \ 'edit-bcc', 'edit-cc', 'edit-content-id', 'edit-description', 'edit-encoding', 'edit-fcc', + \ 'edit-file', 'edit-followup-to', 'edit-from', 'edit-headers', 'edit-label', + \ 'edit-language', 'edit-message', 'edit-mime', 'edit-newsgroups', + \ 'edit-or-view-raw-message', 'edit-raw-message', 'edit-reply-to', 'edit-subject', + \ 'edit-to', 'edit-type', 'edit-x-comment-to', 'end-cond', 'enter-command', 'enter-mask', + \ 'entire-thread', 'eol', 'error-history', 'exit', 'extract-keys', 'fetch-mail', + \ 'filter-entry', 'first-entry', 'flag-message', 'followup-message', 'forget-passphrase', + \ 'forward-char', 'forward-message', 'forward-to-group', 'forward-word', 'get-attachment', + \ 'get-children', 'get-message', 'get-parent', 'goto-folder', 'goto-parent', + \ 'group-alternatives', 'group-chat-reply', 'group-multilingual', 'group-related', + \ 'group-reply', 'half-down', 'half-up', 'help', 'history-down', 'history-search', + \ 'history-up', 'imap-fetch-mail', 'imap-logout-all', 'ispell', 'jump', 'kill-eol', + \ 'kill-eow', 'kill-line', 'kill-whole-line', 'kill-word', 'last-entry', 'limit', + \ 'limit-current-thread', 'link-threads', 'list-reply', 'list-subscribe', + \ 'list-unsubscribe', 'mail', 'mail-key', 'mailbox-cycle', 'mailbox-list', 'mark-as-new', + \ 'mark-message', 'middle-page', 'modify-labels', 'modify-labels-then-hide', 'modify-tags', + \ 'modify-tags-then-hide', 'move-down', 'move-up', 'new-mime', 'next-entry', 'next-line', + \ 'next-new', 'next-new-then-unread', 'next-page', 'next-subthread', 'next-thread', + \ 'next-undeleted', 'next-unread', 'next-unread-mailbox', 'parent-message', 'pgp-menu', + \ 'pipe-entry', 'pipe-message', 'post-message', 'postpone-message', 'previous-entry', + \ 'previous-line', 'previous-new', 'previous-new-then-unread', 'previous-page', + \ 'previous-subthread', 'previous-thread', 'previous-undeleted', 'previous-unread', + \ 'print-entry', 'print-message', 'purge-message', 'purge-thread', 'quasi-delete', 'query', + \ 'query-append', 'quit', 'quote-char', 'read-subthread', 'read-thread', 'recall-message', + \ 'reconstruct-thread', 'redraw-screen', 'refresh', 'reload-active', 'rename-attachment', + \ 'rename-file', 'rename-mailbox', 'reply', 'resend-message', 'root-message', 'save-entry', + \ 'save-message', 'search', 'search-next', 'search-opposite', 'search-reverse', + \ 'search-toggle', 'select-entry', 'select-new', 'send-message', 'set-flag', 'shell-escape', + \ 'show-limit', 'show-log-messages', 'show-version', 'sidebar-first', 'sidebar-last', + \ 'sidebar-next', 'sidebar-next-new', 'sidebar-open', 'sidebar-page-down', + \ 'sidebar-page-up', 'sidebar-prev', 'sidebar-prev-new', 'sidebar-toggle-virtual', + \ 'sidebar-toggle-visible', 'skip-headers', 'skip-quoted', 'smime-menu', 'sort', + \ 'sort-alias', 'sort-alias-reverse', 'sort-mailbox', 'sort-reverse', 'subscribe', + \ 'subscribe-pattern', 'sync-mailbox', 'tag-entry', 'tag-message', 'tag-pattern', + \ 'tag-prefix', 'tag-prefix-cond', 'tag-subthread', 'tag-thread', 'toggle-active', + \ 'toggle-disposition', 'toggle-mailboxes', 'toggle-new', 'toggle-prefer-encrypt', + \ 'toggle-quoted', 'toggle-read', 'toggle-recode', 'toggle-subscribed', 'toggle-unlink', + \ 'toggle-write', 'top', 'top-page', 'transpose-chars', 'uncatchup', 'undelete-entry', + \ 'undelete-message', 'undelete-pattern', 'undelete-subthread', 'undelete-thread', + \ 'ungroup-attachment', 'unsubscribe', 'unsubscribe-pattern', 'untag-pattern', + \ 'upcase-word', 'update-encoding', 'verify-key', 'vfolder-from-query', + \ 'vfolder-from-query-readonly', 'vfolder-window-backward', 'vfolder-window-forward', + \ 'vfolder-window-reset', 'view-attach', 'view-attachments', 'view-file', 'view-mailcap', + \ 'view-name', 'view-pager', 'view-raw-message', 'view-text', 'what-key', 'write-fcc' + \ ]) + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +highlight def link muttrcSetBoolAssignment Boolean +highlight def link muttrcSetQuadAssignment Boolean + +highlight def link muttrcComment Comment + +highlight def link muttrcAlternatesLine Error +highlight def link muttrcBadAction Error +highlight def link muttrcBindFunction Error +highlight def link muttrcBindMenuList Error +highlight def link muttrcColorBG Error +highlight def link muttrcColorContext Error +highlight def link muttrcColorFG Error +highlight def link muttrcColorLine Error +highlight def link muttrcDeprecatedCommand Error +highlight def link muttrcFormatErrors Error +highlight def link muttrcGroupLine Error +highlight def link muttrcPattern Error +highlight def link muttrcUnColorLine Error +highlight def link muttrcVarDeprecatedBool Error +highlight def link muttrcVarDeprecatedNum Error +highlight def link muttrcVarDeprecatedQuad Error +highlight def link muttrcVarDeprecatedString Error + +highlight def link muttrcAliasEncEmail Identifier +highlight def link muttrcAliasKey Identifier +highlight def link muttrcColorCompose Identifier +highlight def link muttrcColorComposeField Identifier +highlight def link muttrcColorField Identifier +highlight def link muttrcMenu Identifier +highlight def link muttrcSimplePat Identifier +highlight def link muttrcUnAliasKey Identifier +highlight def link muttrcUnColorIndex Identifier +highlight def link muttrcVarBool Identifier +highlight def link muttrcVarNum Identifier +highlight def link muttrcVarQuad Identifier +highlight def link muttrcVarString Identifier + +highlight def link muttrcCommand Keyword + +highlight def link muttrcAction Macro +highlight def link muttrcAliasGroupName Macro +highlight def link muttrcFunction Macro +highlight def link muttrcGroupDef Macro +highlight def link muttrcSimplePatString Macro + +highlight def link muttrcMonoAttrib muttrcColor + +highlight def link muttrcAlternateKeyword muttrcCommand +highlight def link muttrcAttachmentsLine muttrcCommand +highlight def link muttrcColorKeyword muttrcCommand +highlight def link muttrcGroupKeyword muttrcCommand +highlight def link muttrcListsKeyword muttrcCommand +highlight def link muttrcMono muttrcCommand +highlight def link muttrcPatHooks muttrcCommand +highlight def link muttrcRXHooks muttrcCommand +highlight def link muttrcSubscribeKeyword muttrcCommand +highlight def link muttrcUnColorKeyword muttrcCommand + +highlight def link muttrcAliasFormatEscapes muttrcEscape +highlight def link muttrcAttachFormatEscapes muttrcEscape +highlight def link muttrcAutocryptFormatEscapes muttrcEscape +highlight def link muttrcComposeFormatEscapes muttrcEscape +highlight def link muttrcFolderFormatEscapes muttrcEscape +highlight def link muttrcGreetingFormatEscapes muttrcEscape +highlight def link muttrcGroupIndexFormatEscapes muttrcEscape +highlight def link muttrcHistoryFormatEscapes muttrcEscape +highlight def link muttrcIndexFormatEscapes muttrcEscape +highlight def link muttrcPatternFormatEscapes muttrcEscape +highlight def link muttrcPgpCommandFormatEscapes muttrcEscape +highlight def link muttrcPgpEntryFormatEscapes muttrcEscape +highlight def link muttrcPgpTimeEscapes muttrcEscape +highlight def link muttrcQueryFormatEscapes muttrcEscape +highlight def link muttrcShellString muttrcEscape +highlight def link muttrcSidebarFormatEscapes muttrcEscape +highlight def link muttrcSmimeCommandFormatEscapes muttrcEscape +highlight def link muttrcStatusFormatEscapes muttrcEscape +highlight def link muttrcTimeEscapes muttrcEscape + +highlight def link muttrcAliasFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcAttachFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcAutocryptFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcComposeFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcFolderFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcGreetingFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcGroupIndexFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcHistoryFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcIndexFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcPatternFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcPgpCommandFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcPgpEntryFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcQueryFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcSidebarFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcSmimeCommandFormatConditionals muttrcFormatConditionals2 +highlight def link muttrcStatusFormatConditionals muttrcFormatConditionals2 + +highlight def link muttrcAddrDef muttrcGroupFlag +highlight def link muttrcRXDef muttrcGroupFlag + +highlight def link muttrcAliasFormatString muttrcString +highlight def link muttrcAttachFormatString muttrcString +highlight def link muttrcAutocryptFormatString muttrcString +highlight def link muttrcComposeFormatString muttrcString +highlight def link muttrcFolderFormatString muttrcString +highlight def link muttrcGreetingFormatString muttrcString +highlight def link muttrcGroupIndexFormatString muttrcString +highlight def link muttrcHistoryFormatString muttrcString +highlight def link muttrcIndexFormatString muttrcString +highlight def link muttrcPatternFormatString muttrcString +highlight def link muttrcPgpCommandFormatString muttrcString +highlight def link muttrcPgpEntryFormatString muttrcString +highlight def link muttrcQueryFormatString muttrcString +highlight def link muttrcSidebarFormatString muttrcString +highlight def link muttrcSmimeCommandFormatString muttrcString +highlight def link muttrcStatusFormatString muttrcString +highlight def link muttrcStrftimeFormatString muttrcString + +highlight def link muttrcSetNumAssignment Number + +highlight def link muttrcEmail Special +highlight def link muttrcSimplePatMetas Special +highlight def link muttrcSpecial Special +highlight def link muttrcVariableInner Special + +highlight def link muttrcAliasEncEmailNL SpecialChar +highlight def link muttrcAliasENNL SpecialChar +highlight def link muttrcAliasGroupDefNL SpecialChar +highlight def link muttrcAliasNameNL SpecialChar +highlight def link muttrcAliasNL SpecialChar +highlight def link muttrcBindFunctionNL SpecialChar +highlight def link muttrcBindKeyNL SpecialChar +highlight def link muttrcBindMenuListNL SpecialChar +highlight def link muttrcColorBGNL SpecialChar +highlight def link muttrcColorFGNL SpecialChar +highlight def link muttrcColorMatchCountNL SpecialChar +highlight def link muttrcColorNL SpecialChar +highlight def link muttrcColorRXNL SpecialChar +highlight def link muttrcEscape SpecialChar +highlight def link muttrcKeyName SpecialChar +highlight def link muttrcKeySpecial SpecialChar +highlight def link muttrcMacroBodyNL SpecialChar +highlight def link muttrcMacroDescrNL SpecialChar +highlight def link muttrcMacroKeyNL SpecialChar +highlight def link muttrcMacroMenuListNL SpecialChar +highlight def link muttrcRXChars SpecialChar +highlight def link muttrcStringNL SpecialChar +highlight def link muttrcUnAliasNL SpecialChar +highlight def link muttrcUnColorAPNL SpecialChar +highlight def link muttrcUnColorIndexNL SpecialChar +highlight def link muttrcUnColorPatNL SpecialChar + +highlight def link muttrcAttachmentsMimeType String +highlight def link muttrcEscapedVariable String +highlight def link muttrcMacroDescr String +highlight def link muttrcRXPat String +highlight def link muttrcRXString String +highlight def link muttrcRXString2 String +highlight def link muttrcSetStrAssignment String +highlight def link muttrcString String + +highlight def link muttrcAttachmentsFlag Type +highlight def link muttrcColor Type +highlight def link muttrcFormatConditionals2 Type +highlight def link muttrcGroupFlag Type +highlight def link muttrcHeader Type +highlight def link muttrcHooks Type +highlight def link muttrcKey Type +highlight def link muttrcPatHookNot Type +highlight def link muttrcRXHookNot Type +highlight def link muttrcStrftimeEscapes Type + +let b:current_syntax = "neomuttrc" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 noet tw=100 sw=8 sts=0 ft=vim isk+=- diff --git a/git/usr/share/vim/vim92/syntax/netrc.vim b/git/usr/share/vim/vim92/syntax/netrc.vim new file mode 100644 index 0000000000000000000000000000000000000000..567aaa96de9e4f81c4f59478fe8927843e19630f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/netrc.vim @@ -0,0 +1,56 @@ +" Vim syntax file +" Language: netrc(5) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2010-01-03 +" Last Change: 2023 Feb 27 by Keith Smiley + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl +syn keyword netrcKeyword account + \ login + \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl +syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl +syn keyword netrcKeyword default +syn keyword netrcKeyword macdef + \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl +syn region netrcMacro contained start='.' end='^$' + +syn match netrcMachine contained display '\S\+' +syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"' +syn match netrcLogin contained display '\S\+' +syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"' +syn match netrcPassword contained display '\S\+' +syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"' +syn match netrcMacroName contained display '\S\+' + \ nextgroup=netrcMacro skipwhite skipnl +syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"' + \ nextgroup=netrcMacro skipwhite skipnl + +syn keyword netrcSpecial contained anonymous +syn match netrcInit contained '\ +" Last Change: Jan 09, 2026 + +if exists("b:current_syntax") + finish +end + +let b:current_syntax = "nginx" + +syn match ngxVariable '\$\(\w\+\|{\w\+}\)' +syn match ngxVariableBlock '\$\(\w\+\|{\w\+}\)' contained +syn match ngxVariableString '\$\(\w\+\|{\w\+}\)' contained +syn region ngxBlock start=+^+ end=+{+ skip=+\${\|{{\|{%+ contains=ngxComment,ngxInteger,ngxIPaddr,ngxDirectiveBlock,ngxVariableBlock,ngxString,ngxThirdPartyLuaBlock oneline +syn region ngxString start=+[^:a-zA-Z>!\\@]\z(["']\)+lc=1 end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString,ngxSSLCipherInsecure +syn match ngxComment ' *#.*$' + +" These regular expressions where taken (and adapted) from +" http://vim.1045645.n5.nabble.com/IPv6-support-for-quot-dns-quot-zonefile-syntax-highlighting-td1197292.html +syn match ngxInteger '\W\zs\(\d[0-9.]*\|[0-9.]*\d\)\w\?\ze\W' +syn match ngxIPaddr '\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{6}\(\x\{1,4}:\x\{1,4}\|\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[::\(\(\x\{1,4}:\)\{,6}\x\{1,4}\|\(\x\{1,4}:\)\{,5}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{1}:\(\(\x\{1,4}:\)\{,5}\x\{1,4}\|\(\x\{1,4}:\)\{,4}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{2}:\(\(\x\{1,4}:\)\{,4}\x\{1,4}\|\(\x\{1,4}:\)\{,3}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{3}:\(\(\x\{1,4}:\)\{,3}\x\{1,4}\|\(\x\{1,4}:\)\{,2}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{4}:\(\(\x\{1,4}:\)\{,2}\x\{1,4}\|\(\x\{1,4}:\)\{,1}\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{5}:\(\(\x\{1,4}:\)\{,1}\x\{1,4}\|\([0-2]\?\d\{1,2}\.\)\{3}[0-2]\?\d\{1,2}\)\]' +syn match ngxIPaddr '\[\(\x\{1,4}:\)\{6}:\x\{1,4}\]' + +" Highlight wildcard listening signs also as IPaddr +syn match ngxIPaddr '\s\zs\[::]' +syn match ngxIPaddr '\s\zs\*' + +syn keyword ngxBoolean on +syn keyword ngxBoolean off + +syn keyword ngxDirectiveBlock http contained +syn keyword ngxDirectiveBlock mail contained +syn keyword ngxDirectiveBlock events contained +syn keyword ngxDirectiveBlock server contained +syn keyword ngxDirectiveBlock match contained +syn keyword ngxDirectiveBlock types contained +syn keyword ngxDirectiveBlock location contained +syn keyword ngxDirectiveBlock upstream contained +syn keyword ngxDirectiveBlock charset_map contained +syn keyword ngxDirectiveBlock limit_except contained +syn keyword ngxDirectiveBlock if contained +syn keyword ngxDirectiveBlock geo contained +syn keyword ngxDirectiveBlock map contained +syn keyword ngxDirectiveBlock split_clients contained + +syn keyword ngxDirectiveImportant include +syn keyword ngxDirectiveImportant root +syn keyword ngxDirectiveImportant server contained +syn region ngxDirectiveImportantServer matchgroup=ngxDirectiveImportant start=+^\s*\zsserver\ze\s.*;+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxUpstreamServerOptions,ngxString,ngxIPaddr,ngxBoolean,ngxInteger,ngxTemplateVar +syn keyword ngxDirectiveImportant server_name +syn keyword ngxDirectiveImportant listen contained +syn region ngxDirectiveImportantListen matchgroup=ngxDirectiveImportant start=+listen+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxListenOptions,ngxString,ngxIPaddr,ngxBoolean,ngxInteger,ngxTemplateVar +syn keyword ngxDirectiveImportant internal +syn keyword ngxDirectiveImportant proxy_pass +syn keyword ngxDirectiveImportant memcached_pass +syn keyword ngxDirectiveImportant fastcgi_pass +syn keyword ngxDirectiveImportant scgi_pass +syn keyword ngxDirectiveImportant uwsgi_pass +syn keyword ngxDirectiveImportant try_files +syn keyword ngxDirectiveImportant error_page +syn keyword ngxDirectiveImportant post_action + +syn keyword ngxUpstreamServerOptions weight contained +syn keyword ngxUpstreamServerOptions max_conns contained +syn keyword ngxUpstreamServerOptions max_fails contained +syn keyword ngxUpstreamServerOptions fail_timeout contained +syn keyword ngxUpstreamServerOptions backup contained +syn keyword ngxUpstreamServerOptions down contained +syn keyword ngxUpstreamServerOptions resolve contained +syn keyword ngxUpstreamServerOptions route contained +syn keyword ngxUpstreamServerOptions service contained +syn keyword ngxUpstreamServerOptions default_server contained +syn keyword ngxUpstreamServerOptions slow_start contained + +syn keyword ngxListenOptions default_server contained +syn keyword ngxListenOptions ssl contained +syn keyword ngxListenOptions http2 contained +syn keyword ngxListenOptions spdy contained +syn keyword ngxListenOptions http3 contained +syn keyword ngxListenOptions quic contained +syn keyword ngxListenOptions proxy_protocol contained +syn keyword ngxListenOptions setfib contained +syn keyword ngxListenOptions fastopen contained +syn keyword ngxListenOptions backlog contained +syn keyword ngxListenOptions rcvbuf contained +syn keyword ngxListenOptions sndbuf contained +syn keyword ngxListenOptions accept_filter contained +syn keyword ngxListenOptions deferred contained +syn keyword ngxListenOptions bind contained +syn keyword ngxListenOptions ipv6only contained +syn keyword ngxListenOptions reuseport contained +syn keyword ngxListenOptions so_keepalive contained +syn keyword ngxListenOptions keepidle contained + +syn keyword ngxDirectiveControl break +syn keyword ngxDirectiveControl return +syn keyword ngxDirectiveControl rewrite +syn keyword ngxDirectiveControl set + +syn keyword ngxDirectiveDeprecated connections +syn keyword ngxDirectiveDeprecated imap +syn keyword ngxDirectiveDeprecated limit_zone +syn keyword ngxDirectiveDeprecated mysql_test +syn keyword ngxDirectiveDeprecated open_file_cache_retest +syn keyword ngxDirectiveDeprecated optimize_server_names +syn keyword ngxDirectiveDeprecated satisfy_any +syn keyword ngxDirectiveDeprecated so_keepalive + +syn keyword ngxDirective absolute_redirect +syn keyword ngxDirective accept_mutex +syn keyword ngxDirective accept_mutex_delay +syn keyword ngxDirective acceptex_read +syn keyword ngxDirective access_log +syn keyword ngxDirective add_after_body +syn keyword ngxDirective add_before_body +syn keyword ngxDirective add_header +syn keyword ngxDirective addition_types +syn keyword ngxDirective aio +syn keyword ngxDirective aio_write +syn keyword ngxDirective alias +syn keyword ngxDirective allow +syn keyword ngxDirective ancient_browser +syn keyword ngxDirective ancient_browser_value +syn keyword ngxDirective auth_basic +syn keyword ngxDirective auth_basic_user_file +syn keyword ngxDirective auth_http +syn keyword ngxDirective auth_http_header +syn keyword ngxDirective auth_http_pass_client_cert +syn keyword ngxDirective auth_http_timeout +syn keyword ngxDirective auth_jwt +syn keyword ngxDirective auth_jwt_key_file +syn keyword ngxDirective auth_request +syn keyword ngxDirective auth_request_set +syn keyword ngxDirective autoindex +syn keyword ngxDirective autoindex_exact_size +syn keyword ngxDirective autoindex_format +syn keyword ngxDirective autoindex_localtime +syn keyword ngxDirective charset +syn keyword ngxDirective charset_map +syn keyword ngxDirective charset_types +syn keyword ngxDirective chunked_transfer_encoding +syn keyword ngxDirective client_body_buffer_size +syn keyword ngxDirective client_body_in_file_only +syn keyword ngxDirective client_body_in_single_buffer +syn keyword ngxDirective client_body_temp_path +syn keyword ngxDirective client_body_timeout +syn keyword ngxDirective client_header_buffer_size +syn keyword ngxDirective client_header_timeout +syn keyword ngxDirective client_max_body_size +syn keyword ngxDirective connection_pool_size +syn keyword ngxDirective create_full_put_path +syn keyword ngxDirective daemon +syn keyword ngxDirective dav_access +syn keyword ngxDirective dav_methods +syn keyword ngxDirective debug_connection +syn keyword ngxDirective debug_points +syn keyword ngxDirective default_type +syn keyword ngxDirective degradation +syn keyword ngxDirective degrade +syn keyword ngxDirective deny +syn keyword ngxDirective devpoll_changes +syn keyword ngxDirective devpoll_events +syn keyword ngxDirective directio +syn keyword ngxDirective directio_alignment +syn keyword ngxDirective disable_symlinks +syn keyword ngxDirective empty_gif +syn keyword ngxDirective env +syn keyword ngxDirective epoll_events +syn keyword ngxDirective error_log +syn keyword ngxDirective etag +syn keyword ngxDirective eventport_events +syn keyword ngxDirective expires +syn keyword ngxDirective f4f +syn keyword ngxDirective f4f_buffer_size +syn keyword ngxDirective fastcgi_bind +syn keyword ngxDirective fastcgi_buffer_size +syn keyword ngxDirective fastcgi_buffering +syn keyword ngxDirective fastcgi_buffers +syn keyword ngxDirective fastcgi_busy_buffers_size +syn keyword ngxDirective fastcgi_cache +syn keyword ngxDirective fastcgi_cache_bypass +syn keyword ngxDirective fastcgi_cache_key +syn keyword ngxDirective fastcgi_cache_lock +syn keyword ngxDirective fastcgi_cache_lock_age +syn keyword ngxDirective fastcgi_cache_lock_timeout +syn keyword ngxDirective fastcgi_cache_max_range_offset +syn keyword ngxDirective fastcgi_cache_methods +syn keyword ngxDirective fastcgi_cache_min_uses +syn keyword ngxDirective fastcgi_cache_path +syn keyword ngxDirective fastcgi_cache_purge +syn keyword ngxDirective fastcgi_cache_revalidate +syn keyword ngxDirective fastcgi_cache_use_stale +syn keyword ngxDirective fastcgi_cache_valid +syn keyword ngxDirective fastcgi_catch_stderr +syn keyword ngxDirective fastcgi_connect_timeout +syn keyword ngxDirective fastcgi_force_ranges +syn keyword ngxDirective fastcgi_hide_header +syn keyword ngxDirective fastcgi_ignore_client_abort +syn keyword ngxDirective fastcgi_ignore_headers +syn keyword ngxDirective fastcgi_index +syn keyword ngxDirective fastcgi_intercept_errors +syn keyword ngxDirective fastcgi_keep_conn +syn keyword ngxDirective fastcgi_limit_rate +syn keyword ngxDirective fastcgi_max_temp_file_size +syn keyword ngxDirective fastcgi_next_upstream +syn keyword ngxDirective fastcgi_next_upstream_timeout +syn keyword ngxDirective fastcgi_next_upstream_tries +syn keyword ngxDirective fastcgi_no_cache +syn keyword ngxDirective fastcgi_param +syn keyword ngxDirective fastcgi_pass_header +syn keyword ngxDirective fastcgi_pass_request_body +syn keyword ngxDirective fastcgi_pass_request_headers +syn keyword ngxDirective fastcgi_read_timeout +syn keyword ngxDirective fastcgi_request_buffering +syn keyword ngxDirective fastcgi_send_lowat +syn keyword ngxDirective fastcgi_send_timeout +syn keyword ngxDirective fastcgi_split_path_info +syn keyword ngxDirective fastcgi_store +syn keyword ngxDirective fastcgi_store_access +syn keyword ngxDirective fastcgi_temp_file_write_size +syn keyword ngxDirective fastcgi_temp_path +syn keyword ngxDirective flv +syn keyword ngxDirective geoip_city +syn keyword ngxDirective geoip_country +syn keyword ngxDirective geoip_org +syn keyword ngxDirective geoip_proxy +syn keyword ngxDirective geoip_proxy_recursive +syn keyword ngxDirective google_perftools_profiles +syn keyword ngxDirective gunzip +syn keyword ngxDirective gunzip_buffers +syn keyword ngxDirective gzip nextgroup=ngxGzipOn,ngxGzipOff skipwhite +syn keyword ngxGzipOn on contained +syn keyword ngxGzipOff off contained +syn keyword ngxDirective gzip_buffers +syn keyword ngxDirective gzip_comp_level +syn keyword ngxDirective gzip_disable +syn keyword ngxDirective gzip_hash +syn keyword ngxDirective gzip_http_version +syn keyword ngxDirective gzip_min_length +syn keyword ngxDirective gzip_no_buffer +syn keyword ngxDirective gzip_proxied +syn keyword ngxDirective gzip_static +syn keyword ngxDirective gzip_types +syn keyword ngxDirective gzip_vary +syn keyword ngxDirective gzip_window +syn keyword ngxDirective hash +syn keyword ngxDirective health_check +syn keyword ngxDirective health_check_timeout +syn keyword ngxDirective hls +syn keyword ngxDirective hls_buffers +syn keyword ngxDirective hls_forward_args +syn keyword ngxDirective hls_fragment +syn keyword ngxDirective hls_mp4_buffer_size +syn keyword ngxDirective hls_mp4_max_buffer_size +syn keyword ngxDirective http2 +syn keyword ngxDirective http2_chunk_size +syn keyword ngxDirective http2_body_preread_size +syn keyword ngxDirective http2_idle_timeout +syn keyword ngxDirective http2_max_concurrent_streams +syn keyword ngxDirective http2_max_field_size +syn keyword ngxDirective http2_max_header_size +syn keyword ngxDirective http2_max_requests +syn keyword ngxDirective http2_push +syn keyword ngxDirective http2_push_preload +syn keyword ngxDirective http2_recv_buffer_size +syn keyword ngxDirective http2_recv_timeout +syn keyword ngxDirective http3 +syn keyword ngxDirective http3_hq +syn keyword ngxDirective http3_max_concurrent_pushes +syn keyword ngxDirective http3_max_concurrent_streams +syn keyword ngxDirective http3_push +syn keyword ngxDirective http3_push_preload +syn keyword ngxDirective http3_stream_buffer_size +syn keyword ngxDirective if_modified_since +syn keyword ngxDirective ignore_invalid_headers +syn keyword ngxDirective image_filter +syn keyword ngxDirective image_filter_buffer +syn keyword ngxDirective image_filter_interlace +syn keyword ngxDirective image_filter_jpeg_quality +syn keyword ngxDirective image_filter_sharpen +syn keyword ngxDirective image_filter_transparency +syn keyword ngxDirective image_filter_webp_quality +syn keyword ngxDirective imap_auth +syn keyword ngxDirective imap_capabilities +syn keyword ngxDirective imap_client_buffer +syn keyword ngxDirective index +syn keyword ngxDirective iocp_threads +syn keyword ngxDirective ip_hash +syn keyword ngxDirective js_access +syn keyword ngxDirective js_content +syn keyword ngxDirective js_filter +syn keyword ngxDirective js_include +syn keyword ngxDirective js_preread +syn keyword ngxDirective js_set +syn keyword ngxDirective keepalive +syn keyword ngxDirective keepalive_disable +syn keyword ngxDirective keepalive_requests +syn keyword ngxDirective keepalive_timeout +syn keyword ngxDirective kqueue_changes +syn keyword ngxDirective kqueue_events +syn keyword ngxDirective large_client_header_buffers +syn keyword ngxDirective least_conn +syn keyword ngxDirective least_time +syn keyword ngxDirective limit_conn +syn keyword ngxDirective limit_conn_dry_run +syn keyword ngxDirective limit_conn_log_level +syn keyword ngxDirective limit_conn_status +syn keyword ngxDirective limit_conn_zone +syn keyword ngxDirective limit_except +syn keyword ngxDirective limit_rate +syn keyword ngxDirective limit_rate_after +syn keyword ngxDirective limit_req +syn keyword ngxDirective limit_req_dry_run +syn keyword ngxDirective limit_req_log_level +syn keyword ngxDirective limit_req_status +syn keyword ngxDirective limit_req_zone +syn keyword ngxDirective lingering_close +syn keyword ngxDirective lingering_time +syn keyword ngxDirective lingering_timeout +syn keyword ngxDirective load_module +syn keyword ngxDirective lock_file +syn keyword ngxDirective log_format +syn keyword ngxDirective log_not_found +syn keyword ngxDirective log_subrequest +syn keyword ngxDirective map_hash_bucket_size +syn keyword ngxDirective map_hash_max_size +syn keyword ngxDirective master_process +syn keyword ngxDirective max_ranges +syn keyword ngxDirective memcached_bind +syn keyword ngxDirective memcached_buffer_size +syn keyword ngxDirective memcached_connect_timeout +syn keyword ngxDirective memcached_force_ranges +syn keyword ngxDirective memcached_gzip_flag +syn keyword ngxDirective memcached_next_upstream +syn keyword ngxDirective memcached_next_upstream_timeout +syn keyword ngxDirective memcached_next_upstream_tries +syn keyword ngxDirective memcached_read_timeout +syn keyword ngxDirective memcached_send_timeout +syn keyword ngxDirective merge_slashes +syn keyword ngxDirective min_delete_depth +syn keyword ngxDirective modern_browser +syn keyword ngxDirective modern_browser_value +syn keyword ngxDirective mp4 +syn keyword ngxDirective mp4_buffer_size +syn keyword ngxDirective mp4_max_buffer_size +syn keyword ngxDirective mp4_limit_rate +syn keyword ngxDirective mp4_limit_rate_after +syn keyword ngxDirective msie_padding +syn keyword ngxDirective msie_refresh +syn keyword ngxDirective multi_accept +syn keyword ngxDirective ntlm +syn keyword ngxDirective open_file_cache +syn keyword ngxDirective open_file_cache_errors +syn keyword ngxDirective open_file_cache_events +syn keyword ngxDirective open_file_cache_min_uses +syn keyword ngxDirective open_file_cache_valid +syn keyword ngxDirective open_log_file_cache +syn keyword ngxDirective output_buffers +syn keyword ngxDirective override_charset +syn keyword ngxDirective pcre_jit +syn keyword ngxDirective perl +syn keyword ngxDirective perl_modules +syn keyword ngxDirective perl_require +syn keyword ngxDirective perl_set +syn keyword ngxDirective pid +syn keyword ngxDirective pop3_auth +syn keyword ngxDirective pop3_capabilities +syn keyword ngxDirective port_in_redirect +syn keyword ngxDirective post_acceptex +syn keyword ngxDirective postpone_gzipping +syn keyword ngxDirective postpone_output +syn keyword ngxDirective preread_buffer_size +syn keyword ngxDirective preread_timeout +syn keyword ngxDirective protocol nextgroup=ngxMailProtocol skipwhite +syn keyword ngxMailProtocol imap pop3 smtp contained +syn keyword ngxDirective proxy +syn keyword ngxDirective proxy_bind +syn keyword ngxDirective proxy_buffer +syn keyword ngxDirective proxy_buffer_size +syn keyword ngxDirective proxy_buffering +syn keyword ngxDirective proxy_buffers +syn keyword ngxDirective proxy_busy_buffers_size +syn keyword ngxDirective proxy_cache +syn keyword ngxDirective proxy_cache_bypass +syn keyword ngxDirective proxy_cache_convert_head +syn keyword ngxDirective proxy_cache_key +syn keyword ngxDirective proxy_cache_lock +syn keyword ngxDirective proxy_cache_lock_age +syn keyword ngxDirective proxy_cache_lock_timeout +syn keyword ngxDirective proxy_cache_max_range_offset +syn keyword ngxDirective proxy_cache_methods +syn keyword ngxDirective proxy_cache_min_uses +syn keyword ngxDirective proxy_cache_path +syn keyword ngxDirective proxy_cache_purge +syn keyword ngxDirective proxy_cache_revalidate +syn keyword ngxDirective proxy_cache_use_stale +syn keyword ngxDirective proxy_cache_valid +syn keyword ngxDirective proxy_connect_timeout +syn keyword ngxDirective proxy_cookie_domain +syn keyword ngxDirective proxy_cookie_path +syn keyword ngxDirective proxy_download_rate +syn keyword ngxDirective proxy_force_ranges +syn keyword ngxDirective proxy_headers_hash_bucket_size +syn keyword ngxDirective proxy_headers_hash_max_size +syn keyword ngxDirective proxy_hide_header +syn keyword ngxDirective proxy_http_version +syn keyword ngxDirective proxy_ignore_client_abort +syn keyword ngxDirective proxy_ignore_headers +syn keyword ngxDirective proxy_intercept_errors +syn keyword ngxDirective proxy_limit_rate +syn keyword ngxDirective proxy_max_temp_file_size +syn keyword ngxDirective proxy_method +syn keyword ngxDirective proxy_next_upstream contained +syn region ngxDirectiveProxyNextUpstream matchgroup=ngxDirective start=+^\s*\zsproxy_next_upstream\ze\s.*;+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxProxyNextUpstreamOptions,ngxString,ngxTemplateVar +syn keyword ngxDirective proxy_next_upstream_timeout +syn keyword ngxDirective proxy_next_upstream_tries +syn keyword ngxDirective proxy_no_cache +syn keyword ngxDirective proxy_pass_error_message +syn keyword ngxDirective proxy_pass_header +syn keyword ngxDirective proxy_pass_request_body +syn keyword ngxDirective proxy_pass_request_headers +syn keyword ngxDirective proxy_protocol +syn keyword ngxDirective proxy_protocol_timeout +syn keyword ngxDirective proxy_read_timeout +syn keyword ngxDirective proxy_redirect +syn keyword ngxDirective proxy_request_buffering +syn keyword ngxDirective proxy_responses +syn keyword ngxDirective proxy_send_lowat +syn keyword ngxDirective proxy_send_timeout +syn keyword ngxDirective proxy_set_body +syn keyword ngxDirective proxy_set_header +syn keyword ngxDirective proxy_ssl_certificate +syn keyword ngxDirective proxy_ssl_certificate_key +syn keyword ngxDirective proxy_ssl_ciphers +syn keyword ngxDirective proxy_ssl_crl +syn keyword ngxDirective proxy_ssl_name +syn keyword ngxDirective proxy_ssl_password_file +syn keyword ngxDirective proxy_ssl_protocols nextgroup=ngxSSLProtocol skipwhite +syn keyword ngxDirective proxy_ssl_server_name +syn keyword ngxDirective proxy_ssl_session_reuse +syn keyword ngxDirective proxy_ssl_trusted_certificate +syn keyword ngxDirective proxy_ssl_verify +syn keyword ngxDirective proxy_ssl_verify_depth +syn keyword ngxDirective proxy_store +syn keyword ngxDirective proxy_store_access +syn keyword ngxDirective proxy_temp_file_write_size +syn keyword ngxDirective proxy_temp_path +syn keyword ngxDirective proxy_timeout +syn keyword ngxDirective proxy_upload_rate +syn keyword ngxDirective queue +syn keyword ngxDirective quic_gso +syn keyword ngxDirective quic_host_key +syn keyword ngxDirective quic_mtu +syn keyword ngxDirective quic_retry +syn keyword ngxDirective random_index +syn keyword ngxDirective read_ahead +syn keyword ngxDirective real_ip_header +syn keyword ngxDirective real_ip_recursive +syn keyword ngxDirective recursive_error_pages +syn keyword ngxDirective referer_hash_bucket_size +syn keyword ngxDirective referer_hash_max_size +syn keyword ngxDirective request_pool_size +syn keyword ngxDirective reset_timedout_connection +syn keyword ngxDirective resolver +syn keyword ngxDirective resolver_timeout +syn keyword ngxDirective rewrite_log +syn keyword ngxDirective rtsig_overflow_events +syn keyword ngxDirective rtsig_overflow_test +syn keyword ngxDirective rtsig_overflow_threshold +syn keyword ngxDirective rtsig_signo +syn keyword ngxDirective satisfy +syn keyword ngxDirective scgi_bind +syn keyword ngxDirective scgi_buffer_size +syn keyword ngxDirective scgi_buffering +syn keyword ngxDirective scgi_buffers +syn keyword ngxDirective scgi_busy_buffers_size +syn keyword ngxDirective scgi_cache +syn keyword ngxDirective scgi_cache_bypass +syn keyword ngxDirective scgi_cache_key +syn keyword ngxDirective scgi_cache_lock +syn keyword ngxDirective scgi_cache_lock_age +syn keyword ngxDirective scgi_cache_lock_timeout +syn keyword ngxDirective scgi_cache_max_range_offset +syn keyword ngxDirective scgi_cache_methods +syn keyword ngxDirective scgi_cache_min_uses +syn keyword ngxDirective scgi_cache_path +syn keyword ngxDirective scgi_cache_purge +syn keyword ngxDirective scgi_cache_revalidate +syn keyword ngxDirective scgi_cache_use_stale +syn keyword ngxDirective scgi_cache_valid +syn keyword ngxDirective scgi_connect_timeout +syn keyword ngxDirective scgi_force_ranges +syn keyword ngxDirective scgi_hide_header +syn keyword ngxDirective scgi_ignore_client_abort +syn keyword ngxDirective scgi_ignore_headers +syn keyword ngxDirective scgi_intercept_errors +syn keyword ngxDirective scgi_limit_rate +syn keyword ngxDirective scgi_max_temp_file_size +syn keyword ngxDirective scgi_next_upstream +syn keyword ngxDirective scgi_next_upstream_timeout +syn keyword ngxDirective scgi_next_upstream_tries +syn keyword ngxDirective scgi_no_cache +syn keyword ngxDirective scgi_param +syn keyword ngxDirective scgi_pass_header +syn keyword ngxDirective scgi_pass_request_body +syn keyword ngxDirective scgi_pass_request_headers +syn keyword ngxDirective scgi_read_timeout +syn keyword ngxDirective scgi_request_buffering +syn keyword ngxDirective scgi_send_timeout +syn keyword ngxDirective scgi_store +syn keyword ngxDirective scgi_store_access +syn keyword ngxDirective scgi_temp_file_write_size +syn keyword ngxDirective scgi_temp_path +syn keyword ngxDirective secure_link +syn keyword ngxDirective secure_link_md5 +syn keyword ngxDirective secure_link_secret +syn keyword ngxDirective send_lowat +syn keyword ngxDirective send_timeout +syn keyword ngxDirective sendfile +syn keyword ngxDirective sendfile_max_chunk +syn keyword ngxDirective server_name_in_redirect +syn keyword ngxDirective server_names_hash_bucket_size +syn keyword ngxDirective server_names_hash_max_size +syn keyword ngxDirective server_tokens +syn keyword ngxDirective session_log +syn keyword ngxDirective session_log_format +syn keyword ngxDirective session_log_zone +syn keyword ngxDirective set_real_ip_from +syn keyword ngxDirective slice +syn keyword ngxDirective smtp_auth +syn keyword ngxDirective smtp_capabilities +syn keyword ngxDirective smtp_client_buffer +syn keyword ngxDirective smtp_greeting_delay +syn keyword ngxDirective source_charset +syn keyword ngxDirective spdy_chunk_size +syn keyword ngxDirective spdy_headers_comp +syn keyword ngxDirective spdy_keepalive_timeout +syn keyword ngxDirective spdy_max_concurrent_streams +syn keyword ngxDirective spdy_pool_size +syn keyword ngxDirective spdy_recv_buffer_size +syn keyword ngxDirective spdy_recv_timeout +syn keyword ngxDirective spdy_streams_index_size +syn keyword ngxDirective ssi +syn keyword ngxDirective ssi_ignore_recycled_buffers +syn keyword ngxDirective ssi_last_modified +syn keyword ngxDirective ssi_min_file_chunk +syn keyword ngxDirective ssi_silent_errors +syn keyword ngxDirective ssi_types +syn keyword ngxDirective ssi_value_length +syn keyword ngxDirective ssl +syn keyword ngxDirective ssl_buffer_size +syn keyword ngxDirective ssl_certificate +syn keyword ngxDirective ssl_certificate_key +syn keyword ngxDirective ssl_ciphers +syn keyword ngxDirective ssl_client_certificate +syn keyword ngxDirective ssl_conf_command +syn keyword ngxDirective ssl_crl +syn keyword ngxDirective ssl_dhparam +syn keyword ngxDirective ssl_early_data +syn keyword ngxDirective ssl_ecdh_curve +syn keyword ngxDirective ssl_engine +syn keyword ngxDirective ssl_handshake_timeout +syn keyword ngxDirective ssl_password_file +syn keyword ngxDirective ssl_prefer_server_ciphers nextgroup=ngxSSLPreferServerCiphersOff,ngxSSLPreferServerCiphersOn skipwhite +syn keyword ngxSSLPreferServerCiphersOn on contained +syn keyword ngxSSLPreferServerCiphersOff off contained +syn keyword ngxDirective ssl_preread +syn keyword ngxDirective ssl_protocols nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +syn keyword ngxDirective ssl_reject_handshake +syn match ngxSSLProtocol 'TLSv1' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +syn match ngxSSLProtocol 'TLSv1\.1' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +syn match ngxSSLProtocol 'TLSv1\.2' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +syn match ngxSSLProtocol 'TLSv1\.3' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite + +" Do not enable highlighting of insecure protocols if sslecure is loaded +if !exists('g:loaded_sslsecure') + syn keyword ngxSSLProtocolDeprecated SSLv2 SSLv3 contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +else + syn match ngxSSLProtocol 'SSLv2' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite + syn match ngxSSLProtocol 'SSLv3' contained nextgroup=ngxSSLProtocol,ngxSSLProtocolDeprecated skipwhite +endif + +syn keyword ngxDirective ssl_session_cache +syn keyword ngxDirective ssl_session_ticket_key +syn keyword ngxDirective ssl_session_tickets nextgroup=ngxSSLSessionTicketsOn,ngxSSLSessionTicketsOff skipwhite +syn keyword ngxSSLSessionTicketsOn on contained +syn keyword ngxSSLSessionTicketsOff off contained +syn keyword ngxDirective ssl_session_timeout +syn keyword ngxDirective ssl_stapling +syn keyword ngxDirective ssl_stapling_file +syn keyword ngxDirective ssl_stapling_responder +syn keyword ngxDirective ssl_stapling_verify +syn keyword ngxDirective ssl_trusted_certificate +syn keyword ngxDirective ssl_verify_client +syn keyword ngxDirective ssl_verify_depth +syn keyword ngxDirective starttls +syn keyword ngxDirective state +syn keyword ngxDirective status +syn keyword ngxDirective status_format +syn keyword ngxDirective status_zone +syn keyword ngxDirective sticky contained +syn keyword ngxDirective sticky_cookie_insert contained +syn region ngxDirectiveSticky matchgroup=ngxDirective start=+^\s*\zssticky\ze\s.*;+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxCookieOptions,ngxString,ngxBoolean,ngxInteger,ngxTemplateVar +syn keyword ngxDirective stub_status +syn keyword ngxDirective sub_filter +syn keyword ngxDirective sub_filter_last_modified +syn keyword ngxDirective sub_filter_once +syn keyword ngxDirective sub_filter_types +syn keyword ngxDirective tcp_nodelay +syn keyword ngxDirective tcp_nopush +syn keyword ngxDirective thread_pool +syn keyword ngxDirective thread_stack_size +syn keyword ngxDirective timeout +syn keyword ngxDirective timer_resolution +syn keyword ngxDirective types_hash_bucket_size +syn keyword ngxDirective types_hash_max_size +syn keyword ngxDirective underscores_in_headers +syn keyword ngxDirective uninitialized_variable_warn +syn keyword ngxDirective upstream_conf +syn keyword ngxDirective use +syn keyword ngxDirective user +syn keyword ngxDirective userid +syn keyword ngxDirective userid_domain +syn keyword ngxDirective userid_expires +syn keyword ngxDirective userid_mark +syn keyword ngxDirective userid_name +syn keyword ngxDirective userid_p3p +syn keyword ngxDirective userid_path +syn keyword ngxDirective userid_service +syn keyword ngxDirective uwsgi_bind +syn keyword ngxDirective uwsgi_buffer_size +syn keyword ngxDirective uwsgi_buffering +syn keyword ngxDirective uwsgi_buffers +syn keyword ngxDirective uwsgi_busy_buffers_size +syn keyword ngxDirective uwsgi_cache +syn keyword ngxDirective uwsgi_cache_background_update +syn keyword ngxDirective uwsgi_cache_bypass +syn keyword ngxDirective uwsgi_cache_key +syn keyword ngxDirective uwsgi_cache_lock +syn keyword ngxDirective uwsgi_cache_lock_age +syn keyword ngxDirective uwsgi_cache_lock_timeout +syn keyword ngxDirective uwsgi_cache_methods +syn keyword ngxDirective uwsgi_cache_min_uses +syn keyword ngxDirective uwsgi_cache_path +syn keyword ngxDirective uwsgi_cache_purge +syn keyword ngxDirective uwsgi_cache_revalidate +syn keyword ngxDirective uwsgi_cache_use_stale +syn keyword ngxDirective uwsgi_cache_valid +syn keyword ngxDirective uwsgi_connect_timeout +syn keyword ngxDirective uwsgi_force_ranges +syn keyword ngxDirective uwsgi_hide_header +syn keyword ngxDirective uwsgi_ignore_client_abort +syn keyword ngxDirective uwsgi_ignore_headers +syn keyword ngxDirective uwsgi_intercept_errors +syn keyword ngxDirective uwsgi_limit_rate +syn keyword ngxDirective uwsgi_max_temp_file_size +syn keyword ngxDirective uwsgi_modifier1 +syn keyword ngxDirective uwsgi_modifier2 +syn keyword ngxDirective uwsgi_next_upstream +syn keyword ngxDirective uwsgi_next_upstream_timeout +syn keyword ngxDirective uwsgi_next_upstream_tries +syn keyword ngxDirective uwsgi_no_cache +syn keyword ngxDirective uwsgi_param +syn keyword ngxDirective uwsgi_pass +syn keyword ngxDirective uwsgi_pass_header +syn keyword ngxDirective uwsgi_pass_request_body +syn keyword ngxDirective uwsgi_pass_request_headers +syn keyword ngxDirective uwsgi_read_timeout +syn keyword ngxDirective uwsgi_request_buffering +syn keyword ngxDirective uwsgi_send_timeout +syn keyword ngxDirective uwsgi_ssl_certificate +syn keyword ngxDirective uwsgi_ssl_certificate_key +syn keyword ngxDirective uwsgi_ssl_ciphers +syn keyword ngxDirective uwsgi_ssl_crl +syn keyword ngxDirective uwsgi_ssl_name +syn keyword ngxDirective uwsgi_ssl_password_file +syn keyword ngxDirective uwsgi_ssl_protocols nextgroup=ngxSSLProtocol skipwhite +syn keyword ngxDirective uwsgi_ssl_server_name +syn keyword ngxDirective uwsgi_ssl_session_reuse +syn keyword ngxDirective uwsgi_ssl_trusted_certificate +syn keyword ngxDirective uwsgi_ssl_verify +syn keyword ngxDirective uwsgi_ssl_verify_depth +syn keyword ngxDirective uwsgi_store +syn keyword ngxDirective uwsgi_store_access +syn keyword ngxDirective uwsgi_string +syn keyword ngxDirective uwsgi_temp_file_write_size +syn keyword ngxDirective uwsgi_temp_path +syn keyword ngxDirective valid_referers +syn keyword ngxDirective variables_hash_bucket_size +syn keyword ngxDirective variables_hash_max_size +syn keyword ngxDirective worker_aio_requests +syn keyword ngxDirective worker_connections +syn keyword ngxDirective worker_cpu_affinity +syn keyword ngxDirective worker_priority +syn keyword ngxDirective worker_processes +syn keyword ngxDirective worker_rlimit_core +syn keyword ngxDirective worker_rlimit_nofile +syn keyword ngxDirective worker_rlimit_sigpending +syn keyword ngxDirective worker_threads +syn keyword ngxDirective working_directory +syn keyword ngxDirective xclient +syn keyword ngxDirective xml_entities +syn keyword ngxDirective xslt_last_modified +syn keyword ngxDirective xslt_param +syn keyword ngxDirective xslt_string_param +syn keyword ngxDirective xslt_stylesheet +syn keyword ngxDirective xslt_types +syn keyword ngxDirective zone + +" Do not enable highlighting of insecure ciphers if sslecure is loaded +if !exists('g:loaded_sslsecure') + " Mark insecure SSL Ciphers (Note: List might not not complete) + " Reference: https://www.openssl.org/docs/man1.0.2/apps/ciphers.html + syn match ngxSSLCipherInsecure '[^!]\zsSSLv3' + syn match ngxSSLCipherInsecure '[^!]\zsSSLv2' + syn match ngxSSLCipherInsecure '[^!]\zsHIGH' + syn match ngxSSLCipherInsecure '[^!]\zsMEDIUM' + syn match ngxSSLCipherInsecure '[^!]\zsLOW' + syn match ngxSSLCipherInsecure '[^!]\zsDEFAULT' + syn match ngxSSLCipherInsecure '[^!]\zsCOMPLEMENTOFDEFAULT' + syn match ngxSSLCipherInsecure '[^!]\zsALL' + syn match ngxSSLCipherInsecure '[^!]\zsCOMPLEMENTOFALL' + + " SHA ciphers are only used in HMAC with all known OpenSSL/ LibreSSL cipher suites and MAC + " usage is still considered safe + " syn match ngxSSLCipherInsecure '[^!]\zsSHA\ze\D' " Match SHA1 without matching SHA256+ + " syn match ngxSSLCipherInsecure '[^!]\zsSHA1' + syn match ngxSSLCipherInsecure '[^!]\zsMD5' + syn match ngxSSLCipherInsecure '[^!]\zsRC2' + syn match ngxSSLCipherInsecure '[^!]\zsRC4' + syn match ngxSSLCipherInsecure '[^!]\zs3DES' + syn match ngxSSLCipherInsecure '[^!3]\zsDES' + syn match ngxSSLCipherInsecure '[^!]\zsaDSS' + syn match ngxSSLCipherInsecure '[^!a]\zsDSS' + syn match ngxSSLCipherInsecure '[^!]\zsPSK' + syn match ngxSSLCipherInsecure '[^!]\zsIDEA' + syn match ngxSSLCipherInsecure '[^!]\zsSEED' + syn match ngxSSLCipherInsecure '[^!]\zsEXP\w*' " Match all EXPORT ciphers + syn match ngxSSLCipherInsecure '[^!]\zsaGOST\w*' " Match all GOST ciphers + syn match ngxSSLCipherInsecure '[^!]\zskGOST\w*' + syn match ngxSSLCipherInsecure '[^!ak]\zsGOST\w*' + syn match ngxSSLCipherInsecure '[^!]\zs[kae]\?FZA' " Not implemented + syn match ngxSSLCipherInsecure '[^!]\zsECB' + syn match ngxSSLCipherInsecure '[^!]\zs[aes]NULL' + + " Anonymous cipher suites should never be used + syn match ngxSSLCipherInsecure '[^!ECa]\zsDH\ze[^E]' " Try to match DH without DHE, EDH, EECDH, etc. + syn match ngxSSLCipherInsecure '[^!EA]\zsECDH\ze[^E]' " Do not match EECDH, ECDHE + syn match ngxSSLCipherInsecure '[^!]\zsADH' + syn match ngxSSLCipherInsecure '[^!]\zskDHE' + syn match ngxSSLCipherInsecure '[^!]\zskEDH' + syn match ngxSSLCipherInsecure '[^!]\zskECDHE' + syn match ngxSSLCipherInsecure '[^!]\zskEECDH' + syn match ngxSSLCipherInsecure '[^!E]\zsAECDH' +endif + +syn keyword ngxProxyNextUpstreamOptions error contained +syn keyword ngxProxyNextUpstreamOptions timeout contained +syn keyword ngxProxyNextUpstreamOptions invalid_header contained +syn keyword ngxProxyNextUpstreamOptions http_500 contained +syn keyword ngxProxyNextUpstreamOptions http_502 contained +syn keyword ngxProxyNextUpstreamOptions http_503 contained +syn keyword ngxProxyNextUpstreamOptions http_504 contained +syn keyword ngxProxyNextUpstreamOptions http_403 contained +syn keyword ngxProxyNextUpstreamOptions http_404 contained +syn keyword ngxProxyNextUpstreamOptions http_429 contained +syn keyword ngxProxyNextUpstreamOptions non_idempotent contained +syn keyword ngxProxyNextUpstreamOptions off contained + +syn keyword ngxStickyOptions cookie contained +syn region ngxStickyOptionsCookie matchgroup=ngxStickyOptions start=+^\s*\zssticky\s\s*cookie\ze\s.*;+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxCookieOptions,ngxString,ngxBoolean,ngxInteger,ngxTemplateVar +syn keyword ngxStickyOptions route contained +syn keyword ngxStickyOptions learn contained + +syn keyword ngxCookieOptions expires contained +syn keyword ngxCookieOptions domain contained +syn keyword ngxCookieOptions httponly contained +syn keyword ngxCookieOptions secure contained +syn keyword ngxCookieOptions path contained + +" 3rd party module list: +" https://www.nginx.com/resources/wiki/modules/ + +" Accept Language Module +" Parses the Accept-Language header and gives the most suitable locale from a list of supported locales. +syn keyword ngxDirectiveThirdParty set_from_accept_language + +" Access Key Module (DEPRECATED) +" Denies access unless the request URL contains an access key. +syn keyword ngxDirectiveDeprecated accesskey +syn keyword ngxDirectiveDeprecated accesskey_arg +syn keyword ngxDirectiveDeprecated accesskey_hashmethod +syn keyword ngxDirectiveDeprecated accesskey_signature + +" Asynchronous FastCGI Module +" Primarily a modified version of the Nginx FastCGI module which implements multiplexing of connections, allowing a single FastCGI server to handle many concurrent requests. +" syn keyword ngxDirectiveThirdParty fastcgi_bind +" syn keyword ngxDirectiveThirdParty fastcgi_buffer_size +" syn keyword ngxDirectiveThirdParty fastcgi_buffers +" syn keyword ngxDirectiveThirdParty fastcgi_busy_buffers_size +" syn keyword ngxDirectiveThirdParty fastcgi_cache +" syn keyword ngxDirectiveThirdParty fastcgi_cache_key +" syn keyword ngxDirectiveThirdParty fastcgi_cache_methods +" syn keyword ngxDirectiveThirdParty fastcgi_cache_min_uses +" syn keyword ngxDirectiveThirdParty fastcgi_cache_path +" syn keyword ngxDirectiveThirdParty fastcgi_cache_use_stale +" syn keyword ngxDirectiveThirdParty fastcgi_cache_valid +" syn keyword ngxDirectiveThirdParty fastcgi_catch_stderr +" syn keyword ngxDirectiveThirdParty fastcgi_connect_timeout +" syn keyword ngxDirectiveThirdParty fastcgi_hide_header +" syn keyword ngxDirectiveThirdParty fastcgi_ignore_client_abort +" syn keyword ngxDirectiveThirdParty fastcgi_ignore_headers +" syn keyword ngxDirectiveThirdParty fastcgi_index +" syn keyword ngxDirectiveThirdParty fastcgi_intercept_errors +" syn keyword ngxDirectiveThirdParty fastcgi_max_temp_file_size +" syn keyword ngxDirectiveThirdParty fastcgi_next_upstream +" syn keyword ngxDirectiveThirdParty fastcgi_param +" syn keyword ngxDirectiveThirdParty fastcgi_pass +" syn keyword ngxDirectiveThirdParty fastcgi_pass_header +" syn keyword ngxDirectiveThirdParty fastcgi_pass_request_body +" syn keyword ngxDirectiveThirdParty fastcgi_pass_request_headers +" syn keyword ngxDirectiveThirdParty fastcgi_read_timeout +" syn keyword ngxDirectiveThirdParty fastcgi_send_lowat +" syn keyword ngxDirectiveThirdParty fastcgi_send_timeout +" syn keyword ngxDirectiveThirdParty fastcgi_split_path_info +" syn keyword ngxDirectiveThirdParty fastcgi_store +" syn keyword ngxDirectiveThirdParty fastcgi_store_access +" syn keyword ngxDirectiveThirdParty fastcgi_temp_file_write_size +" syn keyword ngxDirectiveThirdParty fastcgi_temp_path +syn keyword ngxDirectiveDeprecated fastcgi_upstream_fail_timeout +syn keyword ngxDirectiveDeprecated fastcgi_upstream_max_fails + +" Akamai G2O Module +" Nginx Module for Authenticating Akamai G2O requests +syn keyword ngxDirectiveThirdParty g2o +syn keyword ngxDirectiveThirdParty g2o_nonce +syn keyword ngxDirectiveThirdParty g2o_key + +" Lua Module +" You can be very simple to execute lua code for nginx +syn keyword ngxDirectiveThirdParty lua_file + +" Array Variable Module +" Add support for array-typed variables to nginx config files +syn keyword ngxDirectiveThirdParty array_split +syn keyword ngxDirectiveThirdParty array_join +syn keyword ngxDirectiveThirdParty array_map +syn keyword ngxDirectiveThirdParty array_map_op + +" Nginx Audio Track for HTTP Live Streaming +" This nginx module generates audio track for hls streams on the fly. +syn keyword ngxDirectiveThirdParty ngx_hls_audio_track +syn keyword ngxDirectiveThirdParty ngx_hls_audio_track_rootpath +syn keyword ngxDirectiveThirdParty ngx_hls_audio_track_output_format +syn keyword ngxDirectiveThirdParty ngx_hls_audio_track_output_header + +" AWS Proxy Module +" Nginx module to proxy to authenticated AWS services +syn keyword ngxDirectiveThirdParty aws_access_key +syn keyword ngxDirectiveThirdParty aws_key_scope +syn keyword ngxDirectiveThirdParty aws_signing_key +syn keyword ngxDirectiveThirdParty aws_endpoint +syn keyword ngxDirectiveThirdParty aws_s3_bucket +syn keyword ngxDirectiveThirdParty aws_sign + +" Backtrace module +" A Nginx module to dump backtrace when a worker process exits abnormally +syn keyword ngxDirectiveThirdParty backtrace_log +syn keyword ngxDirectiveThirdParty backtrace_max_stack_size + +" Brotli Module +" Nginx module for Brotli compression +syn keyword ngxDirectiveThirdParty brotli_static +syn keyword ngxDirectiveThirdParty brotli +syn keyword ngxDirectiveThirdParty brotli_types +syn keyword ngxDirectiveThirdParty brotli_buffers +syn keyword ngxDirectiveThirdParty brotli_comp_level +syn keyword ngxDirectiveThirdParty brotli_window +syn keyword ngxDirectiveThirdParty brotli_min_length + +" Cache Purge Module +" Adds ability to purge content from FastCGI, proxy, SCGI and uWSGI caches. +syn keyword ngxDirectiveThirdParty fastcgi_cache_purge +syn keyword ngxDirectiveThirdParty proxy_cache_purge +" syn keyword ngxDirectiveThirdParty scgi_cache_purge +" syn keyword ngxDirectiveThirdParty uwsgi_cache_purge + +" Chunkin Module (DEPRECATED) +" HTTP 1.1 chunked-encoding request body support for Nginx. +syn keyword ngxDirectiveDeprecated chunkin +syn keyword ngxDirectiveDeprecated chunkin_keepalive +syn keyword ngxDirectiveDeprecated chunkin_max_chunks_per_buf +syn keyword ngxDirectiveDeprecated chunkin_resume + +" Circle GIF Module +" Generates simple circle images with the colors and size specified in the URL. +syn keyword ngxDirectiveThirdParty circle_gif +syn keyword ngxDirectiveThirdParty circle_gif_max_radius +syn keyword ngxDirectiveThirdParty circle_gif_min_radius +syn keyword ngxDirectiveThirdParty circle_gif_step_radius + +" Nginx-Clojure Module +" Parses the Accept-Language header and gives the most suitable locale from a list of supported locales. +syn keyword ngxDirectiveThirdParty jvm_path +syn keyword ngxDirectiveThirdParty jvm_var +syn keyword ngxDirectiveThirdParty jvm_classpath +syn keyword ngxDirectiveThirdParty jvm_classpath_check +syn keyword ngxDirectiveThirdParty jvm_workers +syn keyword ngxDirectiveThirdParty jvm_options +syn keyword ngxDirectiveThirdParty jvm_handler_type +syn keyword ngxDirectiveThirdParty jvm_init_handler_name +syn keyword ngxDirectiveThirdParty jvm_init_handler_code +syn keyword ngxDirectiveThirdParty jvm_exit_handler_name +syn keyword ngxDirectiveThirdParty jvm_exit_handler_code +syn keyword ngxDirectiveThirdParty handlers_lazy_init +syn keyword ngxDirectiveThirdParty auto_upgrade_ws +syn keyword ngxDirectiveThirdParty content_handler_type +syn keyword ngxDirectiveThirdParty content_handler_name +syn keyword ngxDirectiveThirdParty content_handler_code +syn keyword ngxDirectiveThirdParty rewrite_handler_type +syn keyword ngxDirectiveThirdParty rewrite_handler_name +syn keyword ngxDirectiveThirdParty rewrite_handler_code +syn keyword ngxDirectiveThirdParty access_handler_type +syn keyword ngxDirectiveThirdParty access_handler_name +syn keyword ngxDirectiveThirdParty access_handler_code +syn keyword ngxDirectiveThirdParty header_filter_type +syn keyword ngxDirectiveThirdParty header_filter_name +syn keyword ngxDirectiveThirdParty header_filter_code +syn keyword ngxDirectiveThirdParty content_handler_property +syn keyword ngxDirectiveThirdParty rewrite_handler_property +syn keyword ngxDirectiveThirdParty access_handler_property +syn keyword ngxDirectiveThirdParty header_filter_property +syn keyword ngxDirectiveThirdParty always_read_body +syn keyword ngxDirectiveThirdParty shared_map +syn keyword ngxDirectiveThirdParty write_page_size + +" Upstream Consistent Hash +" A load balancer that uses an internal consistent hash ring to select the right backend node. +syn keyword ngxDirectiveThirdParty consistent_hash + +" Nginx Development Kit +" The NDK is an Nginx module that is designed to extend the core functionality of the excellent Nginx webserver in a way that can be used as a basis of other Nginx modules. +" NDK_UPSTREAM_LIST +" This submodule provides a directive that creates a list of upstreams, with optional weighting. This list can then be used by other modules to hash over the upstreams however they choose. +syn keyword ngxDirectiveThirdParty upstream_list + +" Drizzle Module +" Upstream module for talking to MySQL and Drizzle directly +syn keyword ngxDirectiveThirdParty drizzle_server +syn keyword ngxDirectiveThirdParty drizzle_keepalive +syn keyword ngxDirectiveThirdParty drizzle_query +syn keyword ngxDirectiveThirdParty drizzle_pass +syn keyword ngxDirectiveThirdParty drizzle_connect_timeout +syn keyword ngxDirectiveThirdParty drizzle_send_query_timeout +syn keyword ngxDirectiveThirdParty drizzle_recv_cols_timeout +syn keyword ngxDirectiveThirdParty drizzle_recv_rows_timeout +syn keyword ngxDirectiveThirdParty drizzle_buffer_size +syn keyword ngxDirectiveThirdParty drizzle_module_header +syn keyword ngxDirectiveThirdParty drizzle_status + +" Dynamic ETags Module +" Attempt at handling ETag / If-None-Match on proxied content. +syn keyword ngxDirectiveThirdParty dynamic_etags + +" Echo Module +" Bringing the power of "echo", "sleep", "time" and more to Nginx's config file +syn keyword ngxDirectiveThirdParty echo +syn keyword ngxDirectiveThirdParty echo_duplicate +syn keyword ngxDirectiveThirdParty echo_flush +syn keyword ngxDirectiveThirdParty echo_sleep +syn keyword ngxDirectiveThirdParty echo_blocking_sleep +syn keyword ngxDirectiveThirdParty echo_reset_timer +syn keyword ngxDirectiveThirdParty echo_read_request_body +syn keyword ngxDirectiveThirdParty echo_location_async +syn keyword ngxDirectiveThirdParty echo_location +syn keyword ngxDirectiveThirdParty echo_subrequest_async +syn keyword ngxDirectiveThirdParty echo_subrequest +syn keyword ngxDirectiveThirdParty echo_foreach_split +syn keyword ngxDirectiveThirdParty echo_end +syn keyword ngxDirectiveThirdParty echo_request_body +syn keyword ngxDirectiveThirdParty echo_exec +syn keyword ngxDirectiveThirdParty echo_status +syn keyword ngxDirectiveThirdParty echo_before_body +syn keyword ngxDirectiveThirdParty echo_after_body + +" Encrypted Session Module +" Encrypt and decrypt nginx variable values +syn keyword ngxDirectiveThirdParty encrypted_session_key +syn keyword ngxDirectiveThirdParty encrypted_session_iv +syn keyword ngxDirectiveThirdParty encrypted_session_expires +syn keyword ngxDirectiveThirdParty set_encrypt_session +syn keyword ngxDirectiveThirdParty set_decrypt_session + +" Enhanced Memcached Module +" This module is based on the standard Nginx Memcached module, with some additonal features +syn keyword ngxDirectiveThirdParty enhanced_memcached_pass +syn keyword ngxDirectiveThirdParty enhanced_memcached_hash_keys_with_md5 +syn keyword ngxDirectiveThirdParty enhanced_memcached_allow_put +syn keyword ngxDirectiveThirdParty enhanced_memcached_allow_delete +syn keyword ngxDirectiveThirdParty enhanced_memcached_stats +syn keyword ngxDirectiveThirdParty enhanced_memcached_flush +syn keyword ngxDirectiveThirdParty enhanced_memcached_flush_namespace +syn keyword ngxDirectiveThirdParty enhanced_memcached_bind +syn keyword ngxDirectiveThirdParty enhanced_memcached_connect_timeout +syn keyword ngxDirectiveThirdParty enhanced_memcached_send_timeout +syn keyword ngxDirectiveThirdParty enhanced_memcached_buffer_size +syn keyword ngxDirectiveThirdParty enhanced_memcached_read_timeout + +" Events Module (DEPRECATED) +" Provides options for start/stop events. +syn keyword ngxDirectiveDeprecated on_start +syn keyword ngxDirectiveDeprecated on_stop + +" EY Balancer Module +" Adds a request queue to Nginx that allows the limiting of concurrent requests passed to the upstream. +syn keyword ngxDirectiveThirdParty max_connections +syn keyword ngxDirectiveThirdParty max_connections_max_queue_length +syn keyword ngxDirectiveThirdParty max_connections_queue_timeout + +" Upstream Fair Balancer +" Sends an incoming request to the least-busy backend server, rather than distributing requests round-robin. +syn keyword ngxDirectiveThirdParty fair +syn keyword ngxDirectiveThirdParty upstream_fair_shm_size + +" Fancy Indexes Module +" Like the built-in autoindex module, but fancier. +syn keyword ngxDirectiveThirdParty fancyindex +syn keyword ngxDirectiveThirdParty fancyindex_default_sort +syn keyword ngxDirectiveThirdParty fancyindex_directories_first +syn keyword ngxDirectiveThirdParty fancyindex_css_href +syn keyword ngxDirectiveThirdParty fancyindex_exact_size +syn keyword ngxDirectiveThirdParty fancyindex_name_length +syn keyword ngxDirectiveThirdParty fancyindex_footer +syn keyword ngxDirectiveThirdParty fancyindex_header +syn keyword ngxDirectiveThirdParty fancyindex_show_path +syn keyword ngxDirectiveThirdParty fancyindex_ignore +syn keyword ngxDirectiveThirdParty fancyindex_hide_symlinks +syn keyword ngxDirectiveThirdParty fancyindex_localtime +syn keyword ngxDirectiveThirdParty fancyindex_time_format + +" Form Auth Module +" Provides authentication and authorization with credentials submitted via POST request +syn keyword ngxDirectiveThirdParty form_auth +syn keyword ngxDirectiveThirdParty form_auth_pam_service +syn keyword ngxDirectiveThirdParty form_auth_login +syn keyword ngxDirectiveThirdParty form_auth_password +syn keyword ngxDirectiveThirdParty form_auth_remote_user + +" Form Input Module +" Reads HTTP POST and PUT request body encoded in "application/x-www-form-urlencoded" and parses the arguments into nginx variables. +syn keyword ngxDirectiveThirdParty set_form_input +syn keyword ngxDirectiveThirdParty set_form_input_multi + +" GeoIP Module (DEPRECATED) +" Country code lookups via the MaxMind GeoIP API. +syn keyword ngxDirectiveDeprecated geoip_country_file + +" GeoIP 2 Module +" Creates variables with values from the maxmind geoip2 databases based on the client IP +syn keyword ngxDirectiveThirdParty geoip2 + +" GridFS Module +" Nginx module for serving files from MongoDB's GridFS +syn keyword ngxDirectiveThirdParty gridfs + +" Headers More Module +" Set and clear input and output headers...more than "add"! +syn keyword ngxDirectiveThirdParty more_clear_headers +syn keyword ngxDirectiveThirdParty more_clear_input_headers +syn keyword ngxDirectiveThirdParty more_set_headers +syn keyword ngxDirectiveThirdParty more_set_input_headers + +" Health Checks Upstreams Module +" Polls backends and if they respond with HTTP 200 + an optional request body, they are marked good. Otherwise, they are marked bad. +syn keyword ngxDirectiveThirdParty healthcheck_enabled +syn keyword ngxDirectiveThirdParty healthcheck_delay +syn keyword ngxDirectiveThirdParty healthcheck_timeout +syn keyword ngxDirectiveThirdParty healthcheck_failcount +syn keyword ngxDirectiveThirdParty healthcheck_send +syn keyword ngxDirectiveThirdParty healthcheck_expected +syn keyword ngxDirectiveThirdParty healthcheck_buffer +syn keyword ngxDirectiveThirdParty healthcheck_status + +" HTTP Accounting Module +" Add traffic stat function to nginx. Useful for http accounting based on nginx configuration logic +syn keyword ngxDirectiveThirdParty http_accounting +syn keyword ngxDirectiveThirdParty http_accounting_log +syn keyword ngxDirectiveThirdParty http_accounting_id +syn keyword ngxDirectiveThirdParty http_accounting_interval +syn keyword ngxDirectiveThirdParty http_accounting_perturb + +" Nginx Digest Authentication module +" Digest Authentication for Nginx +syn keyword ngxDirectiveThirdParty auth_digest +syn keyword ngxDirectiveThirdParty auth_digest_user_file +syn keyword ngxDirectiveThirdParty auth_digest_timeout +syn keyword ngxDirectiveThirdParty auth_digest_expires +syn keyword ngxDirectiveThirdParty auth_digest_replays +syn keyword ngxDirectiveThirdParty auth_digest_shm_size + +" Auth PAM Module +" HTTP Basic Authentication using PAM. +syn keyword ngxDirectiveThirdParty auth_pam +syn keyword ngxDirectiveThirdParty auth_pam_service_name + +" HTTP Auth Request Module +" Implements client authorization based on the result of a subrequest +" syn keyword ngxDirectiveThirdParty auth_request +" syn keyword ngxDirectiveThirdParty auth_request_set + +" HTTP Concatenation module for Nginx +" A Nginx module for concatenating files in a given context: CSS and JS files usually +syn keyword ngxDirectiveThirdParty concat +syn keyword ngxDirectiveThirdParty concat_types +syn keyword ngxDirectiveThirdParty concat_unique +syn keyword ngxDirectiveThirdParty concat_max_files +syn keyword ngxDirectiveThirdParty concat_delimiter +syn keyword ngxDirectiveThirdParty concat_ignore_file_error + +" HTTP Dynamic Upstream Module +" Update upstreams' config by restful interface +syn keyword ngxDirectiveThirdParty dyups_interface +syn keyword ngxDirectiveThirdParty dyups_read_msg_timeout +syn keyword ngxDirectiveThirdParty dyups_shm_zone_size +syn keyword ngxDirectiveThirdParty dyups_upstream_conf +syn keyword ngxDirectiveThirdParty dyups_trylock + +" HTTP Footer If Filter Module +" The ngx_http_footer_if_filter_module is used to add given content to the end of the response according to the condition specified. +syn keyword ngxDirectiveThirdParty footer_if + +" HTTP Footer Filter Module +" This module implements a body filter that adds a given string to the page footer. +syn keyword ngxDirectiveThirdParty footer +syn keyword ngxDirectiveThirdParty footer_types + +" HTTP Internal Redirect Module +" Make an internal redirect to the uri specified according to the condition specified. +syn keyword ngxDirectiveThirdParty internal_redirect_if +syn keyword ngxDirectiveThirdParty internal_redirect_if_no_postponed + +" HTTP JavaScript Module +" Embedding SpiderMonkey. Nearly full port on Perl module. +syn keyword ngxDirectiveThirdParty js +syn keyword ngxDirectiveThirdParty js_filter +syn keyword ngxDirectiveThirdParty js_filter_types +syn keyword ngxDirectiveThirdParty js_load +syn keyword ngxDirectiveThirdParty js_maxmem +syn keyword ngxDirectiveThirdParty js_require +syn keyword ngxDirectiveThirdParty js_set +syn keyword ngxDirectiveThirdParty js_utf8 + +" HTTP Push Module (DEPRECATED) +" Turn Nginx into an adept long-polling HTTP Push (Comet) server. +syn keyword ngxDirectiveDeprecated push_buffer_size +syn keyword ngxDirectiveDeprecated push_listener +syn keyword ngxDirectiveDeprecated push_message_timeout +syn keyword ngxDirectiveDeprecated push_queue_messages +syn keyword ngxDirectiveDeprecated push_sender + +" HTTP Redis Module +" Redis support. +syn keyword ngxDirectiveThirdParty redis_bind +syn keyword ngxDirectiveThirdParty redis_buffer_size +syn keyword ngxDirectiveThirdParty redis_connect_timeout +syn keyword ngxDirectiveThirdParty redis_next_upstream +syn keyword ngxDirectiveThirdParty redis_pass +syn keyword ngxDirectiveThirdParty redis_read_timeout +syn keyword ngxDirectiveThirdParty redis_send_timeout + +" Iconv Module +" A character conversion nginx module using libiconv +syn keyword ngxDirectiveThirdParty set_iconv +syn keyword ngxDirectiveThirdParty iconv_buffer_size +syn keyword ngxDirectiveThirdParty iconv_filter + +" IP Blocker Module +" An efficient shared memory IP blocking system for nginx. +syn keyword ngxDirectiveThirdParty ip_blocker + +" IP2Location Module +" Allows user to lookup for geolocation information using IP2Location database +syn keyword ngxDirectiveThirdParty ip2location_database + +" JS Module +" Reflect the nginx functionality in JS +syn keyword ngxDirectiveThirdParty js +syn keyword ngxDirectiveThirdParty js_access +syn keyword ngxDirectiveThirdParty js_load +syn keyword ngxDirectiveThirdParty js_set + +" Limit Upload Rate Module +" Limit client-upload rate when they are sending request bodies to you +syn keyword ngxDirectiveThirdParty limit_upload_rate +syn keyword ngxDirectiveThirdParty limit_upload_rate_after + +" Limit Upstream Module +" Limit the number of connections to upstream for NGINX +syn keyword ngxDirectiveThirdParty limit_upstream_zone +syn keyword ngxDirectiveThirdParty limit_upstream_conn +syn keyword ngxDirectiveThirdParty limit_upstream_log_level + +" Log If Module +" Conditional accesslog for nginx +syn keyword ngxDirectiveThirdParty access_log_bypass_if + +" Log Request Speed (DEPRECATED) +" Log the time it took to process each request. +syn keyword ngxDirectiveDeprecated log_request_speed_filter +syn keyword ngxDirectiveDeprecated log_request_speed_filter_timeout + +" Log ZeroMQ Module +" ZeroMQ logger module for nginx +syn keyword ngxDirectiveThirdParty log_zmq_server +syn keyword ngxDirectiveThirdParty log_zmq_endpoint +syn keyword ngxDirectiveThirdParty log_zmq_format +syn keyword ngxDirectiveThirdParty log_zmq_off + +" Lower/UpperCase Module +" This module simply uppercases or lowercases a string and saves it into a new variable. +syn keyword ngxDirectiveThirdParty lower +syn keyword ngxDirectiveThirdParty upper + +" Lua Upstream Module +" Nginx C module to expose Lua API to ngx_lua for Nginx upstreams + +" Lua Module +" Embed the Power of Lua into NGINX HTTP servers +syn keyword ngxDirectiveThirdParty lua_use_default_type +syn keyword ngxDirectiveThirdParty lua_malloc_trim +syn keyword ngxDirectiveThirdParty lua_code_cache +syn keyword ngxDirectiveThirdParty lua_regex_cache_max_entries +syn keyword ngxDirectiveThirdParty lua_regex_match_limit +syn keyword ngxDirectiveThirdParty lua_package_path +syn keyword ngxDirectiveThirdParty lua_package_cpath +syn keyword ngxDirectiveThirdParty init_by_lua +syn keyword ngxDirectiveThirdParty init_by_lua_file +syn keyword ngxDirectiveThirdParty init_worker_by_lua +syn keyword ngxDirectiveThirdParty init_worker_by_lua_file +syn keyword ngxDirectiveThirdParty set_by_lua +syn keyword ngxDirectiveThirdParty set_by_lua_file +syn keyword ngxDirectiveThirdParty content_by_lua +syn keyword ngxDirectiveThirdParty content_by_lua_file +syn keyword ngxDirectiveThirdParty rewrite_by_lua +syn keyword ngxDirectiveThirdParty rewrite_by_lua_file +syn keyword ngxDirectiveThirdParty access_by_lua +syn keyword ngxDirectiveThirdParty access_by_lua_file +syn keyword ngxDirectiveThirdParty header_filter_by_lua +syn keyword ngxDirectiveThirdParty header_filter_by_lua_file +syn keyword ngxDirectiveThirdParty body_filter_by_lua +syn keyword ngxDirectiveThirdParty body_filter_by_lua_file +syn keyword ngxDirectiveThirdParty log_by_lua +syn keyword ngxDirectiveThirdParty log_by_lua_file +syn keyword ngxDirectiveThirdParty balancer_by_lua_file +syn keyword ngxDirectiveThirdParty lua_need_request_body +syn keyword ngxDirectiveThirdParty ssl_certificate_by_lua_file +syn keyword ngxDirectiveThirdParty ssl_session_fetch_by_lua_file +syn keyword ngxDirectiveThirdParty ssl_session_store_by_lua_file +syn keyword ngxDirectiveThirdParty lua_shared_dict +syn keyword ngxDirectiveThirdParty lua_socket_connect_timeout +syn keyword ngxDirectiveThirdParty lua_socket_send_timeout +syn keyword ngxDirectiveThirdParty lua_socket_send_lowat +syn keyword ngxDirectiveThirdParty lua_socket_read_timeout +syn keyword ngxDirectiveThirdParty lua_socket_buffer_size +syn keyword ngxDirectiveThirdParty lua_socket_pool_size +syn keyword ngxDirectiveThirdParty lua_socket_keepalive_timeout +syn keyword ngxDirectiveThirdParty lua_socket_log_errors +syn keyword ngxDirectiveThirdParty lua_ssl_ciphers +syn keyword ngxDirectiveThirdParty lua_ssl_crl +syn keyword ngxDirectiveThirdParty lua_ssl_protocols +syn keyword ngxDirectiveThirdParty lua_ssl_trusted_certificate +syn keyword ngxDirectiveThirdParty lua_ssl_verify_depth +syn keyword ngxDirectiveThirdParty lua_http10_buffering +syn keyword ngxDirectiveThirdParty rewrite_by_lua_no_postpone +syn keyword ngxDirectiveThirdParty access_by_lua_no_postpone +syn keyword ngxDirectiveThirdParty lua_transform_underscores_in_response_headers +syn keyword ngxDirectiveThirdParty lua_check_client_abort +syn keyword ngxDirectiveThirdParty lua_max_pending_timers +syn keyword ngxDirectiveThirdParty lua_max_running_timers + +" MD5 Filter Module +" A content filter for nginx, which returns the md5 hash of the content otherwise returned. +syn keyword ngxDirectiveThirdParty md5_filter + +" Memc Module +" An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands. +syn keyword ngxDirectiveThirdParty memc_buffer_size +syn keyword ngxDirectiveThirdParty memc_cmds_allowed +syn keyword ngxDirectiveThirdParty memc_connect_timeout +syn keyword ngxDirectiveThirdParty memc_flags_to_last_modified +syn keyword ngxDirectiveThirdParty memc_next_upstream +syn keyword ngxDirectiveThirdParty memc_pass +syn keyword ngxDirectiveThirdParty memc_read_timeout +syn keyword ngxDirectiveThirdParty memc_send_timeout +syn keyword ngxDirectiveThirdParty memc_upstream_fail_timeout +syn keyword ngxDirectiveThirdParty memc_upstream_max_fails + +" Mod Security Module +" ModSecurity is an open source, cross platform web application firewall (WAF) engine +syn keyword ngxDirectiveThirdParty ModSecurityConfig +syn keyword ngxDirectiveThirdParty ModSecurityEnabled +syn keyword ngxDirectiveThirdParty pool_context +syn keyword ngxDirectiveThirdParty pool_context_hash_size + +" Mogilefs Module +" MogileFS client for nginx web server. +syn keyword ngxDirectiveThirdParty mogilefs_pass +syn keyword ngxDirectiveThirdParty mogilefs_methods +syn keyword ngxDirectiveThirdParty mogilefs_domain +syn keyword ngxDirectiveThirdParty mogilefs_class +syn keyword ngxDirectiveThirdParty mogilefs_tracker +syn keyword ngxDirectiveThirdParty mogilefs_noverify +syn keyword ngxDirectiveThirdParty mogilefs_connect_timeout +syn keyword ngxDirectiveThirdParty mogilefs_send_timeout +syn keyword ngxDirectiveThirdParty mogilefs_read_timeout + +" Mongo Module +" Upstream module that allows nginx to communicate directly with MongoDB database. +syn keyword ngxDirectiveThirdParty mongo_auth +syn keyword ngxDirectiveThirdParty mongo_pass +syn keyword ngxDirectiveThirdParty mongo_query +syn keyword ngxDirectiveThirdParty mongo_json +syn keyword ngxDirectiveThirdParty mongo_bind +syn keyword ngxDirectiveThirdParty mongo_connect_timeout +syn keyword ngxDirectiveThirdParty mongo_send_timeout +syn keyword ngxDirectiveThirdParty mongo_read_timeout +syn keyword ngxDirectiveThirdParty mongo_buffering +syn keyword ngxDirectiveThirdParty mongo_buffer_size +syn keyword ngxDirectiveThirdParty mongo_buffers +syn keyword ngxDirectiveThirdParty mongo_busy_buffers_size +syn keyword ngxDirectiveThirdParty mongo_next_upstream + +" MP4 Streaming Lite Module +" Will seek to a certain time within H.264/MP4 files when provided with a 'start' parameter in the URL. +" syn keyword ngxDirectiveThirdParty mp4 + +" NAXSI Module +" NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX +syn keyword ngxDirectiveThirdParty DeniedUrl denied_url +syn keyword ngxDirectiveThirdParty LearningMode learning_mode +syn keyword ngxDirectiveThirdParty SecRulesEnabled rules_enabled +syn keyword ngxDirectiveThirdParty SecRulesDisabled rules_disabled +syn keyword ngxDirectiveThirdParty CheckRule check_rule +syn keyword ngxDirectiveThirdParty BasicRule basic_rule +syn keyword ngxDirectiveThirdParty MainRule main_rule +syn keyword ngxDirectiveThirdParty LibInjectionSql libinjection_sql +syn keyword ngxDirectiveThirdParty LibInjectionXss libinjection_xss + +" Nchan Module +" Fast, horizontally scalable, multiprocess pub/sub queuing server and proxy for HTTP, long-polling, Websockets and EventSource (SSE) +syn keyword ngxDirectiveThirdParty nchan_channel_id +syn keyword ngxDirectiveThirdParty nchan_channel_id_split_delimiter +syn keyword ngxDirectiveThirdParty nchan_eventsource_event +syn keyword ngxDirectiveThirdParty nchan_longpoll_multipart_response +syn keyword ngxDirectiveThirdParty nchan_publisher +syn keyword ngxDirectiveThirdParty nchan_publisher_channel_id +syn keyword ngxDirectiveThirdParty nchan_publisher_upstream_request +syn keyword ngxDirectiveThirdParty nchan_pubsub +syn keyword ngxDirectiveThirdParty nchan_subscribe_request +syn keyword ngxDirectiveThirdParty nchan_subscriber +syn keyword ngxDirectiveThirdParty nchan_subscriber_channel_id +syn keyword ngxDirectiveThirdParty nchan_subscriber_compound_etag_message_id +syn keyword ngxDirectiveThirdParty nchan_subscriber_first_message +syn keyword ngxDirectiveThirdParty nchan_subscriber_http_raw_stream_separator +syn keyword ngxDirectiveThirdParty nchan_subscriber_last_message_id +syn keyword ngxDirectiveThirdParty nchan_subscriber_message_id_custom_etag_header +syn keyword ngxDirectiveThirdParty nchan_subscriber_timeout +syn keyword ngxDirectiveThirdParty nchan_unsubscribe_request +syn keyword ngxDirectiveThirdParty nchan_websocket_ping_interval +syn keyword ngxDirectiveThirdParty nchan_authorize_request +syn keyword ngxDirectiveThirdParty nchan_max_reserved_memory +syn keyword ngxDirectiveThirdParty nchan_message_buffer_length +syn keyword ngxDirectiveThirdParty nchan_message_timeout +syn keyword ngxDirectiveThirdParty nchan_redis_idle_channel_cache_timeout +syn keyword ngxDirectiveThirdParty nchan_redis_namespace +syn keyword ngxDirectiveThirdParty nchan_redis_pass +syn keyword ngxDirectiveThirdParty nchan_redis_ping_interval +syn keyword ngxDirectiveThirdParty nchan_redis_server +syn keyword ngxDirectiveThirdParty nchan_redis_storage_mode +syn keyword ngxDirectiveThirdParty nchan_redis_url +syn keyword ngxDirectiveThirdParty nchan_store_messages +syn keyword ngxDirectiveThirdParty nchan_use_redis +syn keyword ngxDirectiveThirdParty nchan_access_control_allow_origin +syn keyword ngxDirectiveThirdParty nchan_channel_group +syn keyword ngxDirectiveThirdParty nchan_channel_group_accounting +syn keyword ngxDirectiveThirdParty nchan_group_location +syn keyword ngxDirectiveThirdParty nchan_group_max_channels +syn keyword ngxDirectiveThirdParty nchan_group_max_messages +syn keyword ngxDirectiveThirdParty nchan_group_max_messages_disk +syn keyword ngxDirectiveThirdParty nchan_group_max_messages_memory +syn keyword ngxDirectiveThirdParty nchan_group_max_subscribers +syn keyword ngxDirectiveThirdParty nchan_subscribe_existing_channels_only +syn keyword ngxDirectiveThirdParty nchan_channel_event_string +syn keyword ngxDirectiveThirdParty nchan_channel_events_channel_id +syn keyword ngxDirectiveThirdParty nchan_stub_status +syn keyword ngxDirectiveThirdParty nchan_max_channel_id_length +syn keyword ngxDirectiveThirdParty nchan_max_channel_subscribers +syn keyword ngxDirectiveThirdParty nchan_channel_timeout +syn keyword ngxDirectiveThirdParty nchan_storage_engine + +" Nginx Notice Module +" Serve static file to POST requests. +syn keyword ngxDirectiveThirdParty notice +syn keyword ngxDirectiveThirdParty notice_type + +" OCSP Proxy Module +" Nginx OCSP processing module designed for response caching +syn keyword ngxDirectiveThirdParty ocsp_proxy +syn keyword ngxDirectiveThirdParty ocsp_cache_timeout + +" Eval Module +" Module for nginx web server evaluates response of proxy or memcached module into variables. +syn keyword ngxDirectiveThirdParty eval +syn keyword ngxDirectiveThirdParty eval_escalate +syn keyword ngxDirectiveThirdParty eval_buffer_size +syn keyword ngxDirectiveThirdParty eval_override_content_type +syn keyword ngxDirectiveThirdParty eval_subrequest_in_memory + +" OpenSSL Version Module +" Nginx OpenSSL version check at startup +syn keyword ngxDirectiveThirdParty openssl_version_minimum +syn keyword ngxDirectiveThirdParty openssl_builddate_minimum + +" Owner Match Module +" Control access for specific owners and groups of files +syn keyword ngxDirectiveThirdParty omallow +syn keyword ngxDirectiveThirdParty omdeny + +" Accept Language Module +" Parses the Accept-Language header and gives the most suitable locale from a list of supported locales. +syn keyword ngxDirectiveThirdParty pagespeed + +" PHP Memcache Standard Balancer Module +" Loadbalancer that is compatible to the standard loadbalancer in the php-memcache module +syn keyword ngxDirectiveThirdParty hash_key + +" PHP Session Module +" Nginx module to parse php sessions +syn keyword ngxDirectiveThirdParty php_session_parse +syn keyword ngxDirectiveThirdParty php_session_strip_formatting + +" Phusion Passenger Module +" Passenger is an open source web application server. +syn keyword ngxDirectiveThirdParty passenger_root +syn keyword ngxDirectiveThirdParty passenger_enabled +syn keyword ngxDirectiveThirdParty passenger_base_uri +syn keyword ngxDirectiveThirdParty passenger_document_root +syn keyword ngxDirectiveThirdParty passenger_ruby +syn keyword ngxDirectiveThirdParty passenger_python +syn keyword ngxDirectiveThirdParty passenger_nodejs +syn keyword ngxDirectiveThirdParty passenger_meteor_app_settings +syn keyword ngxDirectiveThirdParty passenger_app_env +syn keyword ngxDirectiveThirdParty passenger_app_root +syn keyword ngxDirectiveThirdParty passenger_app_group_name +syn keyword ngxDirectiveThirdParty passenger_app_type +syn keyword ngxDirectiveThirdParty passenger_startup_file +syn keyword ngxDirectiveThirdParty passenger_restart_dir +syn keyword ngxDirectiveThirdParty passenger_spawn_method +syn keyword ngxDirectiveThirdParty passenger_env_var +syn keyword ngxDirectiveThirdParty passenger_load_shell_envvars +syn keyword ngxDirectiveThirdParty passenger_rolling_restarts +syn keyword ngxDirectiveThirdParty passenger_resist_deployment_errors +syn keyword ngxDirectiveThirdParty passenger_user_switching +syn keyword ngxDirectiveThirdParty passenger_user +syn keyword ngxDirectiveThirdParty passenger_group +syn keyword ngxDirectiveThirdParty passenger_default_user +syn keyword ngxDirectiveThirdParty passenger_default_group +syn keyword ngxDirectiveThirdParty passenger_show_version_in_header +syn keyword ngxDirectiveThirdParty passenger_friendly_error_pages +syn keyword ngxDirectiveThirdParty passenger_disable_security_update_check +syn keyword ngxDirectiveThirdParty passenger_security_update_check_proxy +syn keyword ngxDirectiveThirdParty passenger_max_pool_size +syn keyword ngxDirectiveThirdParty passenger_min_instances +syn keyword ngxDirectiveThirdParty passenger_max_instances +syn keyword ngxDirectiveThirdParty passenger_max_instances_per_app +syn keyword ngxDirectiveThirdParty passenger_pool_idle_time +syn keyword ngxDirectiveThirdParty passenger_max_preloader_idle_time +syn keyword ngxDirectiveThirdParty passenger_force_max_concurrent_requests_per_process +syn keyword ngxDirectiveThirdParty passenger_start_timeout +syn keyword ngxDirectiveThirdParty passenger_concurrency_model +syn keyword ngxDirectiveThirdParty passenger_thread_count +syn keyword ngxDirectiveThirdParty passenger_max_requests +syn keyword ngxDirectiveThirdParty passenger_max_request_time +syn keyword ngxDirectiveThirdParty passenger_memory_limit +syn keyword ngxDirectiveThirdParty passenger_stat_throttle_rate +syn keyword ngxDirectiveThirdParty passenger_core_file_descriptor_ulimit +syn keyword ngxDirectiveThirdParty passenger_app_file_descriptor_ulimit +syn keyword ngxDirectiveThirdParty passenger_pre_start +syn keyword ngxDirectiveThirdParty passenger_set_header +syn keyword ngxDirectiveThirdParty passenger_max_request_queue_size +syn keyword ngxDirectiveThirdParty passenger_request_queue_overflow_status_code +syn keyword ngxDirectiveThirdParty passenger_sticky_sessions +syn keyword ngxDirectiveThirdParty passenger_sticky_sessions_cookie_name +syn keyword ngxDirectiveThirdParty passenger_abort_websockets_on_process_shutdown +syn keyword ngxDirectiveThirdParty passenger_ignore_client_abort +syn keyword ngxDirectiveThirdParty passenger_intercept_errors +syn keyword ngxDirectiveThirdParty passenger_pass_header +syn keyword ngxDirectiveThirdParty passenger_ignore_headers +syn keyword ngxDirectiveThirdParty passenger_headers_hash_bucket_size +syn keyword ngxDirectiveThirdParty passenger_headers_hash_max_size +syn keyword ngxDirectiveThirdParty passenger_buffer_response +syn keyword ngxDirectiveThirdParty passenger_response_buffer_high_watermark +syn keyword ngxDirectiveThirdParty passenger_buffer_size, passenger_buffers, passenger_busy_buffers_size +syn keyword ngxDirectiveThirdParty passenger_socket_backlog +syn keyword ngxDirectiveThirdParty passenger_log_level +syn keyword ngxDirectiveThirdParty passenger_log_file +syn keyword ngxDirectiveThirdParty passenger_file_descriptor_log_file +syn keyword ngxDirectiveThirdParty passenger_debugger +syn keyword ngxDirectiveThirdParty passenger_instance_registry_dir +syn keyword ngxDirectiveThirdParty passenger_data_buffer_dir +syn keyword ngxDirectiveThirdParty passenger_fly_with +syn keyword ngxDirectiveThirdParty union_station_support +syn keyword ngxDirectiveThirdParty union_station_key +syn keyword ngxDirectiveThirdParty union_station_proxy_address +syn keyword ngxDirectiveThirdParty union_station_filter +syn keyword ngxDirectiveThirdParty union_station_gateway_address +syn keyword ngxDirectiveThirdParty union_station_gateway_port +syn keyword ngxDirectiveThirdParty union_station_gateway_cert +syn keyword ngxDirectiveDeprecated rails_spawn_method +syn keyword ngxDirectiveDeprecated passenger_debug_log_file + +" Postgres Module +" Upstream module that allows nginx to communicate directly with PostgreSQL database. +syn keyword ngxDirectiveThirdParty postgres_server +syn keyword ngxDirectiveThirdParty postgres_keepalive +syn keyword ngxDirectiveThirdParty postgres_pass +syn keyword ngxDirectiveThirdParty postgres_query +syn keyword ngxDirectiveThirdParty postgres_rewrite +syn keyword ngxDirectiveThirdParty postgres_output +syn keyword ngxDirectiveThirdParty postgres_set +syn keyword ngxDirectiveThirdParty postgres_escape +syn keyword ngxDirectiveThirdParty postgres_connect_timeout +syn keyword ngxDirectiveThirdParty postgres_result_timeout + +" Pubcookie Module +" Authorizes users using encrypted cookies +syn keyword ngxDirectiveThirdParty pubcookie_inactive_expire +syn keyword ngxDirectiveThirdParty pubcookie_hard_expire +syn keyword ngxDirectiveThirdParty pubcookie_app_id +syn keyword ngxDirectiveThirdParty pubcookie_dir_depth +syn keyword ngxDirectiveThirdParty pubcookie_catenate_app_ids +syn keyword ngxDirectiveThirdParty pubcookie_app_srv_id +syn keyword ngxDirectiveThirdParty pubcookie_login +syn keyword ngxDirectiveThirdParty pubcookie_login_method +syn keyword ngxDirectiveThirdParty pubcookie_post +syn keyword ngxDirectiveThirdParty pubcookie_domain +syn keyword ngxDirectiveThirdParty pubcookie_granting_cert_file +syn keyword ngxDirectiveThirdParty pubcookie_session_key_file +syn keyword ngxDirectiveThirdParty pubcookie_session_cert_file +syn keyword ngxDirectiveThirdParty pubcookie_crypt_key_file +syn keyword ngxDirectiveThirdParty pubcookie_end_session +syn keyword ngxDirectiveThirdParty pubcookie_encryption +syn keyword ngxDirectiveThirdParty pubcookie_session_reauth +syn keyword ngxDirectiveThirdParty pubcookie_auth_type_names +syn keyword ngxDirectiveThirdParty pubcookie_no_prompt +syn keyword ngxDirectiveThirdParty pubcookie_on_demand +syn keyword ngxDirectiveThirdParty pubcookie_addl_request +syn keyword ngxDirectiveThirdParty pubcookie_no_obscure_cookies +syn keyword ngxDirectiveThirdParty pubcookie_no_clean_creds +syn keyword ngxDirectiveThirdParty pubcookie_egd_device +syn keyword ngxDirectiveThirdParty pubcookie_no_blank +syn keyword ngxDirectiveThirdParty pubcookie_super_debug +syn keyword ngxDirectiveThirdParty pubcookie_set_remote_user + +" Push Stream Module +" A pure stream http push technology for your Nginx setup +syn keyword ngxDirectiveThirdParty push_stream_channels_statistics +syn keyword ngxDirectiveThirdParty push_stream_publisher +syn keyword ngxDirectiveThirdParty push_stream_subscriber +syn keyword ngxDirectiveThirdParty push_stream_shared_memory_size +syn keyword ngxDirectiveThirdParty push_stream_channel_deleted_message_text +syn keyword ngxDirectiveThirdParty push_stream_channel_inactivity_time +syn keyword ngxDirectiveThirdParty push_stream_ping_message_text +syn keyword ngxDirectiveThirdParty push_stream_timeout_with_body +syn keyword ngxDirectiveThirdParty push_stream_message_ttl +syn keyword ngxDirectiveThirdParty push_stream_max_subscribers_per_channel +syn keyword ngxDirectiveThirdParty push_stream_max_messages_stored_per_channel +syn keyword ngxDirectiveThirdParty push_stream_max_channel_id_length +syn keyword ngxDirectiveThirdParty push_stream_max_number_of_channels +syn keyword ngxDirectiveThirdParty push_stream_max_number_of_wildcard_channels +syn keyword ngxDirectiveThirdParty push_stream_wildcard_channel_prefix +syn keyword ngxDirectiveThirdParty push_stream_events_channel_id +syn keyword ngxDirectiveThirdParty push_stream_channels_path +syn keyword ngxDirectiveThirdParty push_stream_store_messages +syn keyword ngxDirectiveThirdParty push_stream_channel_info_on_publish +syn keyword ngxDirectiveThirdParty push_stream_authorized_channels_only +syn keyword ngxDirectiveThirdParty push_stream_header_template_file +syn keyword ngxDirectiveThirdParty push_stream_header_template +syn keyword ngxDirectiveThirdParty push_stream_message_template +syn keyword ngxDirectiveThirdParty push_stream_footer_template +syn keyword ngxDirectiveThirdParty push_stream_wildcard_channel_max_qtd +syn keyword ngxDirectiveThirdParty push_stream_ping_message_interval +syn keyword ngxDirectiveThirdParty push_stream_subscriber_connection_ttl +syn keyword ngxDirectiveThirdParty push_stream_longpolling_connection_ttl +syn keyword ngxDirectiveThirdParty push_stream_websocket_allow_publish +syn keyword ngxDirectiveThirdParty push_stream_last_received_message_time +syn keyword ngxDirectiveThirdParty push_stream_last_received_message_tag +syn keyword ngxDirectiveThirdParty push_stream_last_event_id +syn keyword ngxDirectiveThirdParty push_stream_user_agent +syn keyword ngxDirectiveThirdParty push_stream_padding_by_user_agent +syn keyword ngxDirectiveThirdParty push_stream_allowed_origins +syn keyword ngxDirectiveThirdParty push_stream_allow_connections_to_events_channel + +" rDNS Module +" Make a reverse DNS (rDNS) lookup for incoming connection and provides simple access control of incoming hostname by allow/deny rules +syn keyword ngxDirectiveThirdParty rdns +syn keyword ngxDirectiveThirdParty rdns_allow +syn keyword ngxDirectiveThirdParty rdns_deny + +" RDS CSV Module +" Nginx output filter module to convert Resty-DBD-Streams (RDS) to Comma-Separated Values (CSV) +syn keyword ngxDirectiveThirdParty rds_csv +syn keyword ngxDirectiveThirdParty rds_csv_row_terminator +syn keyword ngxDirectiveThirdParty rds_csv_field_separator +syn keyword ngxDirectiveThirdParty rds_csv_field_name_header +syn keyword ngxDirectiveThirdParty rds_csv_content_type +syn keyword ngxDirectiveThirdParty rds_csv_buffer_size + +" RDS JSON Module +" An output filter that formats Resty DBD Streams generated by ngx_drizzle and others to JSON +syn keyword ngxDirectiveThirdParty rds_json +syn keyword ngxDirectiveThirdParty rds_json_buffer_size +syn keyword ngxDirectiveThirdParty rds_json_format +syn keyword ngxDirectiveThirdParty rds_json_root +syn keyword ngxDirectiveThirdParty rds_json_success_property +syn keyword ngxDirectiveThirdParty rds_json_user_property +syn keyword ngxDirectiveThirdParty rds_json_errcode_key +syn keyword ngxDirectiveThirdParty rds_json_errstr_key +syn keyword ngxDirectiveThirdParty rds_json_ret +syn keyword ngxDirectiveThirdParty rds_json_content_type + +" Redis Module +" Use this module to perform simple caching +syn keyword ngxDirectiveThirdParty redis_pass +syn keyword ngxDirectiveThirdParty redis_bind +syn keyword ngxDirectiveThirdParty redis_connect_timeout +syn keyword ngxDirectiveThirdParty redis_read_timeout +syn keyword ngxDirectiveThirdParty redis_send_timeout +syn keyword ngxDirectiveThirdParty redis_buffer_size +syn keyword ngxDirectiveThirdParty redis_next_upstream +syn keyword ngxDirectiveThirdParty redis_gzip_flag + +" Redis 2 Module +" Nginx upstream module for the Redis 2.0 protocol +syn keyword ngxDirectiveThirdParty redis2_query +syn keyword ngxDirectiveThirdParty redis2_raw_query +syn keyword ngxDirectiveThirdParty redis2_raw_queries +syn keyword ngxDirectiveThirdParty redis2_literal_raw_query +syn keyword ngxDirectiveThirdParty redis2_pass +syn keyword ngxDirectiveThirdParty redis2_connect_timeout +syn keyword ngxDirectiveThirdParty redis2_send_timeout +syn keyword ngxDirectiveThirdParty redis2_read_timeout +syn keyword ngxDirectiveThirdParty redis2_buffer_size +syn keyword ngxDirectiveThirdParty redis2_next_upstream + +" Replace Filter Module +" Streaming regular expression replacement in response bodies +syn keyword ngxDirectiveThirdParty replace_filter +syn keyword ngxDirectiveThirdParty replace_filter_types +syn keyword ngxDirectiveThirdParty replace_filter_max_buffered_size +syn keyword ngxDirectiveThirdParty replace_filter_last_modified +syn keyword ngxDirectiveThirdParty replace_filter_skip + +" Roboo Module +" HTTP Robot Mitigator + +" RRD Graph Module +" This module provides an HTTP interface to RRDtool's graphing facilities. +syn keyword ngxDirectiveThirdParty rrd_graph +syn keyword ngxDirectiveThirdParty rrd_graph_root + +" RTMP Module +" NGINX-based Media Streaming Server +syn keyword ngxDirectiveThirdParty rtmp +" syn keyword ngxDirectiveThirdParty server +" syn keyword ngxDirectiveThirdParty listen +syn keyword ngxDirectiveThirdParty application +" syn keyword ngxDirectiveThirdParty timeout +syn keyword ngxDirectiveThirdParty ping +syn keyword ngxDirectiveThirdParty ping_timeout +syn keyword ngxDirectiveThirdParty max_streams +syn keyword ngxDirectiveThirdParty ack_window +syn keyword ngxDirectiveThirdParty chunk_size +syn keyword ngxDirectiveThirdParty max_queue +syn keyword ngxDirectiveThirdParty max_message +syn keyword ngxDirectiveThirdParty out_queue +syn keyword ngxDirectiveThirdParty out_cork +" syn keyword ngxDirectiveThirdParty allow +" syn keyword ngxDirectiveThirdParty deny +syn keyword ngxDirectiveThirdParty exec_push +syn keyword ngxDirectiveThirdParty exec_pull +syn keyword ngxDirectiveThirdParty exec +syn keyword ngxDirectiveThirdParty exec_options +syn keyword ngxDirectiveThirdParty exec_static +syn keyword ngxDirectiveThirdParty exec_kill_signal +syn keyword ngxDirectiveThirdParty respawn +syn keyword ngxDirectiveThirdParty respawn_timeout +syn keyword ngxDirectiveThirdParty exec_publish +syn keyword ngxDirectiveThirdParty exec_play +syn keyword ngxDirectiveThirdParty exec_play_done +syn keyword ngxDirectiveThirdParty exec_publish_done +syn keyword ngxDirectiveThirdParty exec_record_done +syn keyword ngxDirectiveThirdParty live +syn keyword ngxDirectiveThirdParty meta +syn keyword ngxDirectiveThirdParty interleave +syn keyword ngxDirectiveThirdParty wait_key +syn keyword ngxDirectiveThirdParty wait_video +syn keyword ngxDirectiveThirdParty publish_notify +syn keyword ngxDirectiveThirdParty drop_idle_publisher +syn keyword ngxDirectiveThirdParty sync +syn keyword ngxDirectiveThirdParty play_restart +syn keyword ngxDirectiveThirdParty idle_streams +syn keyword ngxDirectiveThirdParty record +syn keyword ngxDirectiveThirdParty record_path +syn keyword ngxDirectiveThirdParty record_suffix +syn keyword ngxDirectiveThirdParty record_unique +syn keyword ngxDirectiveThirdParty record_append +syn keyword ngxDirectiveThirdParty record_lock +syn keyword ngxDirectiveThirdParty record_max_size +syn keyword ngxDirectiveThirdParty record_max_frames +syn keyword ngxDirectiveThirdParty record_interval +syn keyword ngxDirectiveThirdParty recorder +syn keyword ngxDirectiveThirdParty record_notify +syn keyword ngxDirectiveThirdParty play +syn keyword ngxDirectiveThirdParty play_temp_path +syn keyword ngxDirectiveThirdParty play_local_path +syn keyword ngxDirectiveThirdParty pull +syn keyword ngxDirectiveThirdParty push +syn keyword ngxDirectiveThirdParty push_reconnect +syn keyword ngxDirectiveThirdParty session_relay +syn keyword ngxDirectiveThirdParty on_connect +syn keyword ngxDirectiveThirdParty on_play +syn keyword ngxDirectiveThirdParty on_publish +syn keyword ngxDirectiveThirdParty on_done +syn keyword ngxDirectiveThirdParty on_play_done +syn keyword ngxDirectiveThirdParty on_publish_done +syn keyword ngxDirectiveThirdParty on_record_done +syn keyword ngxDirectiveThirdParty on_update +syn keyword ngxDirectiveThirdParty notify_update_timeout +syn keyword ngxDirectiveThirdParty notify_update_strict +syn keyword ngxDirectiveThirdParty notify_relay_redirect +syn keyword ngxDirectiveThirdParty notify_method +syn keyword ngxDirectiveThirdParty hls +syn keyword ngxDirectiveThirdParty hls_path +syn keyword ngxDirectiveThirdParty hls_fragment +syn keyword ngxDirectiveThirdParty hls_playlist_length +syn keyword ngxDirectiveThirdParty hls_sync +syn keyword ngxDirectiveThirdParty hls_continuous +syn keyword ngxDirectiveThirdParty hls_nested +syn keyword ngxDirectiveThirdParty hls_base_url +syn keyword ngxDirectiveThirdParty hls_cleanup +syn keyword ngxDirectiveThirdParty hls_fragment_naming +syn keyword ngxDirectiveThirdParty hls_fragment_slicing +syn keyword ngxDirectiveThirdParty hls_variant +syn keyword ngxDirectiveThirdParty hls_type +syn keyword ngxDirectiveThirdParty hls_keys +syn keyword ngxDirectiveThirdParty hls_key_path +syn keyword ngxDirectiveThirdParty hls_key_url +syn keyword ngxDirectiveThirdParty hls_fragments_per_key +syn keyword ngxDirectiveThirdParty dash +syn keyword ngxDirectiveThirdParty dash_path +syn keyword ngxDirectiveThirdParty dash_fragment +syn keyword ngxDirectiveThirdParty dash_playlist_length +syn keyword ngxDirectiveThirdParty dash_nested +syn keyword ngxDirectiveThirdParty dash_cleanup +" syn keyword ngxDirectiveThirdParty access_log +" syn keyword ngxDirectiveThirdParty log_format +syn keyword ngxDirectiveThirdParty max_connections +syn keyword ngxDirectiveThirdParty rtmp_stat +syn keyword ngxDirectiveThirdParty rtmp_stat_stylesheet +syn keyword ngxDirectiveThirdParty rtmp_auto_push +syn keyword ngxDirectiveThirdParty rtmp_auto_push_reconnect +syn keyword ngxDirectiveThirdParty rtmp_socket_dir +syn keyword ngxDirectiveThirdParty rtmp_control + +" RTMPT Module +" Module for nginx to proxy rtmp using http protocol +syn keyword ngxDirectiveThirdParty rtmpt_proxy_target +syn keyword ngxDirectiveThirdParty rtmpt_proxy_rtmp_timeout +syn keyword ngxDirectiveThirdParty rtmpt_proxy_http_timeout +syn keyword ngxDirectiveThirdParty rtmpt_proxy +syn keyword ngxDirectiveThirdParty rtmpt_proxy_stat +syn keyword ngxDirectiveThirdParty rtmpt_proxy_stylesheet + +" Syntactically Awesome Module +" Providing on-the-fly compiling of Sass files as an NGINX module. +syn keyword ngxDirectiveThirdParty sass_compile +syn keyword ngxDirectiveThirdParty sass_error_log +syn keyword ngxDirectiveThirdParty sass_include_path +syn keyword ngxDirectiveThirdParty sass_indent +syn keyword ngxDirectiveThirdParty sass_is_indented_syntax +syn keyword ngxDirectiveThirdParty sass_linefeed +syn keyword ngxDirectiveThirdParty sass_precision +syn keyword ngxDirectiveThirdParty sass_output_style +syn keyword ngxDirectiveThirdParty sass_source_comments +syn keyword ngxDirectiveThirdParty sass_source_map_embed + +" Secure Download Module +" Enables you to create links which are only valid until a certain datetime is reached +syn keyword ngxDirectiveThirdParty secure_download +syn keyword ngxDirectiveThirdParty secure_download_secret +syn keyword ngxDirectiveThirdParty secure_download_path_mode + +" Selective Cache Purge Module +" A module to purge cache by GLOB patterns. The supported patterns are the same as supported by Redis. +syn keyword ngxDirectiveThirdParty selective_cache_purge_redis_unix_socket +syn keyword ngxDirectiveThirdParty selective_cache_purge_redis_host +syn keyword ngxDirectiveThirdParty selective_cache_purge_redis_port +syn keyword ngxDirectiveThirdParty selective_cache_purge_redis_database +syn keyword ngxDirectiveThirdParty selective_cache_purge_query + +" Set cconv Module +" Cconv rewrite set commands +syn keyword ngxDirectiveThirdParty set_cconv_to_simp +syn keyword ngxDirectiveThirdParty set_cconv_to_trad +syn keyword ngxDirectiveThirdParty set_pinyin_to_normal + +" Set Hash Module +" Nginx module that allows the setting of variables to the value of a variety of hashes +syn keyword ngxDirectiveThirdParty set_md5 +syn keyword ngxDirectiveThirdParty set_md5_upper +syn keyword ngxDirectiveThirdParty set_murmur2 +syn keyword ngxDirectiveThirdParty set_murmur2_upper +syn keyword ngxDirectiveThirdParty set_sha1 +syn keyword ngxDirectiveThirdParty set_sha1_upper + +" Set Lang Module +" Provides a variety of ways for setting a variable denoting the langauge that content should be returned in. +syn keyword ngxDirectiveThirdParty set_lang +syn keyword ngxDirectiveThirdParty set_lang_method +syn keyword ngxDirectiveThirdParty lang_cookie +syn keyword ngxDirectiveThirdParty lang_get_var +syn keyword ngxDirectiveThirdParty lang_list +syn keyword ngxDirectiveThirdParty lang_post_var +syn keyword ngxDirectiveThirdParty lang_host +syn keyword ngxDirectiveThirdParty lang_referer + +" Set Misc Module +" Various set_xxx directives added to nginx's rewrite module +syn keyword ngxDirectiveThirdParty set_if_empty +syn keyword ngxDirectiveThirdParty set_quote_sql_str +syn keyword ngxDirectiveThirdParty set_quote_pgsql_str +syn keyword ngxDirectiveThirdParty set_quote_json_str +syn keyword ngxDirectiveThirdParty set_unescape_uri +syn keyword ngxDirectiveThirdParty set_escape_uri +syn keyword ngxDirectiveThirdParty set_hashed_upstream +syn keyword ngxDirectiveThirdParty set_encode_base32 +syn keyword ngxDirectiveThirdParty set_base32_padding +syn keyword ngxDirectiveThirdParty set_misc_base32_padding +syn keyword ngxDirectiveThirdParty set_base32_alphabet +syn keyword ngxDirectiveThirdParty set_decode_base32 +syn keyword ngxDirectiveThirdParty set_encode_base64 +syn keyword ngxDirectiveThirdParty set_decode_base64 +syn keyword ngxDirectiveThirdParty set_encode_hex +syn keyword ngxDirectiveThirdParty set_decode_hex +syn keyword ngxDirectiveThirdParty set_sha1 +syn keyword ngxDirectiveThirdParty set_md5 +syn keyword ngxDirectiveThirdParty set_hmac_sha1 +syn keyword ngxDirectiveThirdParty set_random +syn keyword ngxDirectiveThirdParty set_secure_random_alphanum +syn keyword ngxDirectiveThirdParty set_secure_random_lcalpha +syn keyword ngxDirectiveThirdParty set_rotate +syn keyword ngxDirectiveThirdParty set_local_today +syn keyword ngxDirectiveThirdParty set_formatted_gmt_time +syn keyword ngxDirectiveThirdParty set_formatted_local_time + +" SFlow Module +" A binary, random-sampling nginx module designed for: lightweight, centralized, continuous, real-time monitoring of very large and very busy web farms. +syn keyword ngxDirectiveThirdParty sflow + +" Shibboleth Module +" Shibboleth auth request module for nginx +syn keyword ngxDirectiveThirdParty shib_request +syn keyword ngxDirectiveThirdParty shib_request_set +syn keyword ngxDirectiveThirdParty shib_request_use_headers + +" Slice Module +" Nginx module for serving a file in slices (reverse byte-range) +" syn keyword ngxDirectiveThirdParty slice +syn keyword ngxDirectiveThirdParty slice_arg_begin +syn keyword ngxDirectiveThirdParty slice_arg_end +syn keyword ngxDirectiveThirdParty slice_header +syn keyword ngxDirectiveThirdParty slice_footer +syn keyword ngxDirectiveThirdParty slice_header_first +syn keyword ngxDirectiveThirdParty slice_footer_last + +" SlowFS Cache Module +" Module adding ability to cache static files. +syn keyword ngxDirectiveThirdParty slowfs_big_file_size +syn keyword ngxDirectiveThirdParty slowfs_cache +syn keyword ngxDirectiveThirdParty slowfs_cache_key +syn keyword ngxDirectiveThirdParty slowfs_cache_min_uses +syn keyword ngxDirectiveThirdParty slowfs_cache_path +syn keyword ngxDirectiveThirdParty slowfs_cache_purge +syn keyword ngxDirectiveThirdParty slowfs_cache_valid +syn keyword ngxDirectiveThirdParty slowfs_temp_path + +" Small Light Module +" Dynamic Image Transformation Module For nginx. +syn keyword ngxDirectiveThirdParty small_light +syn keyword ngxDirectiveThirdParty small_light_getparam_mode +syn keyword ngxDirectiveThirdParty small_light_material_dir +syn keyword ngxDirectiveThirdParty small_light_pattern_define +syn keyword ngxDirectiveThirdParty small_light_radius_max +syn keyword ngxDirectiveThirdParty small_light_sigma_max +syn keyword ngxDirectiveThirdParty small_light_imlib2_temp_dir +syn keyword ngxDirectiveThirdParty small_light_buffer + +" Sorted Querystring Filter Module +" Nginx module to expose querystring parameters sorted in a variable to be used on cache_key as example +syn keyword ngxDirectiveThirdParty sorted_querystring_filter_parameter + +" Sphinx2 Module +" Nginx upstream module for Sphinx 2.x +syn keyword ngxDirectiveThirdParty sphinx2_pass +syn keyword ngxDirectiveThirdParty sphinx2_bind +syn keyword ngxDirectiveThirdParty sphinx2_connect_timeout +syn keyword ngxDirectiveThirdParty sphinx2_send_timeout +syn keyword ngxDirectiveThirdParty sphinx2_buffer_size +syn keyword ngxDirectiveThirdParty sphinx2_read_timeout +syn keyword ngxDirectiveThirdParty sphinx2_next_upstream + +" HTTP SPNEGO auth Module +" This module implements adds SPNEGO support to nginx(http://nginx.org). It currently supports only Kerberos authentication via GSSAPI +syn keyword ngxDirectiveThirdParty auth_gss +syn keyword ngxDirectiveThirdParty auth_gss_keytab +syn keyword ngxDirectiveThirdParty auth_gss_realm +syn keyword ngxDirectiveThirdParty auth_gss_service_name +syn keyword ngxDirectiveThirdParty auth_gss_authorized_principal +syn keyword ngxDirectiveThirdParty auth_gss_allow_basic_fallback + +" SR Cache Module +" Transparent subrequest-based caching layout for arbitrary nginx locations +syn keyword ngxDirectiveThirdParty srcache_fetch +syn keyword ngxDirectiveThirdParty srcache_fetch_skip +syn keyword ngxDirectiveThirdParty srcache_store +syn keyword ngxDirectiveThirdParty srcache_store_max_size +syn keyword ngxDirectiveThirdParty srcache_store_skip +syn keyword ngxDirectiveThirdParty srcache_store_statuses +syn keyword ngxDirectiveThirdParty srcache_store_ranges +syn keyword ngxDirectiveThirdParty srcache_header_buffer_size +syn keyword ngxDirectiveThirdParty srcache_store_hide_header +syn keyword ngxDirectiveThirdParty srcache_store_pass_header +syn keyword ngxDirectiveThirdParty srcache_methods +syn keyword ngxDirectiveThirdParty srcache_ignore_content_encoding +syn keyword ngxDirectiveThirdParty srcache_request_cache_control +syn keyword ngxDirectiveThirdParty srcache_response_cache_control +syn keyword ngxDirectiveThirdParty srcache_store_no_store +syn keyword ngxDirectiveThirdParty srcache_store_no_cache +syn keyword ngxDirectiveThirdParty srcache_store_private +syn keyword ngxDirectiveThirdParty srcache_default_expire +syn keyword ngxDirectiveThirdParty srcache_max_expire + +" SSSD Info Module +" Retrives additional attributes from SSSD for current authentizated user +syn keyword ngxDirectiveThirdParty sssd_info +syn keyword ngxDirectiveThirdParty sssd_info_output_to +syn keyword ngxDirectiveThirdParty sssd_info_groups +syn keyword ngxDirectiveThirdParty sssd_info_group +syn keyword ngxDirectiveThirdParty sssd_info_group_separator +syn keyword ngxDirectiveThirdParty sssd_info_attributes +syn keyword ngxDirectiveThirdParty sssd_info_attribute +syn keyword ngxDirectiveThirdParty sssd_info_attribute_separator + +" Static Etags Module +" Generate etags for static content +syn keyword ngxDirectiveThirdParty FileETag + +" Statsd Module +" An nginx module for sending statistics to statsd +syn keyword ngxDirectiveThirdParty statsd_server +syn keyword ngxDirectiveThirdParty statsd_sample_rate +syn keyword ngxDirectiveThirdParty statsd_count +syn keyword ngxDirectiveThirdParty statsd_timing + +" Sticky Module +" Add a sticky cookie to be always forwarded to the same upstream server +" syn keyword ngxDirectiveThirdParty sticky + +" Stream Echo Module +" TCP/stream echo module for NGINX (a port of ngx_http_echo_module) +syn keyword ngxDirectiveThirdParty echo +syn keyword ngxDirectiveThirdParty echo_duplicate +syn keyword ngxDirectiveThirdParty echo_flush_wait +syn keyword ngxDirectiveThirdParty echo_sleep +syn keyword ngxDirectiveThirdParty echo_send_timeout +syn keyword ngxDirectiveThirdParty echo_read_bytes +syn keyword ngxDirectiveThirdParty echo_read_line +syn keyword ngxDirectiveThirdParty echo_request_data +syn keyword ngxDirectiveThirdParty echo_discard_request +syn keyword ngxDirectiveThirdParty echo_read_buffer_size +syn keyword ngxDirectiveThirdParty echo_read_timeout +syn keyword ngxDirectiveThirdParty echo_client_error_log_level +syn keyword ngxDirectiveThirdParty echo_lingering_close +syn keyword ngxDirectiveThirdParty echo_lingering_time +syn keyword ngxDirectiveThirdParty echo_lingering_timeout + +" Stream Lua Module +" Embed the power of Lua into Nginx stream/TCP Servers. +syn keyword ngxDirectiveThirdParty lua_resolver +syn keyword ngxDirectiveThirdParty lua_resolver_timeout +syn keyword ngxDirectiveThirdParty lua_lingering_close +syn keyword ngxDirectiveThirdParty lua_lingering_time +syn keyword ngxDirectiveThirdParty lua_lingering_timeout + +" Stream Upsync Module +" Sync upstreams from consul or others, dynamiclly modify backend-servers attribute(weight, max_fails,...), needn't reload nginx. +syn keyword ngxDirectiveThirdParty upsync +syn keyword ngxDirectiveThirdParty upsync_dump_path +syn keyword ngxDirectiveThirdParty upsync_lb +syn keyword ngxDirectiveThirdParty upsync_show + +" Strip Module +" Whitespace remover. +syn keyword ngxDirectiveThirdParty strip + +" Subrange Module +" Split one big HTTP/Range request to multiple subrange requesets +syn keyword ngxDirectiveThirdParty subrange + +" Substitutions Module +" A filter module which can do both regular expression and fixed string substitutions on response bodies. +syn keyword ngxDirectiveThirdParty subs_filter +syn keyword ngxDirectiveThirdParty subs_filter_types + +" Summarizer Module +" Upstream nginx module to get summaries of documents using the summarizer daemon service +syn keyword ngxDirectiveThirdParty smrzr_filename +syn keyword ngxDirectiveThirdParty smrzr_ratio + +" Supervisord Module +" Module providing nginx with API to communicate with supervisord and manage (start/stop) backends on-demand. +syn keyword ngxDirectiveThirdParty supervisord +syn keyword ngxDirectiveThirdParty supervisord_inherit_backend_status +syn keyword ngxDirectiveThirdParty supervisord_name +syn keyword ngxDirectiveThirdParty supervisord_start +syn keyword ngxDirectiveThirdParty supervisord_stop + +" Tarantool Upstream Module +" Tarantool NginX upstream module (REST, JSON API, websockets, load balancing) +syn keyword ngxDirectiveThirdParty tnt_pass +syn keyword ngxDirectiveThirdParty tnt_http_methods +syn keyword ngxDirectiveThirdParty tnt_http_rest_methods +syn keyword ngxDirectiveThirdParty tnt_pass_http_request +syn keyword ngxDirectiveThirdParty tnt_pass_http_request_buffer_size +syn keyword ngxDirectiveThirdParty tnt_method +syn keyword ngxDirectiveThirdParty tnt_http_allowed_methods - experemental +syn keyword ngxDirectiveThirdParty tnt_send_timeout +syn keyword ngxDirectiveThirdParty tnt_read_timeout +syn keyword ngxDirectiveThirdParty tnt_buffer_size +syn keyword ngxDirectiveThirdParty tnt_next_upstream +syn keyword ngxDirectiveThirdParty tnt_connect_timeout +syn keyword ngxDirectiveThirdParty tnt_next_upstream +syn keyword ngxDirectiveThirdParty tnt_next_upstream_tries +syn keyword ngxDirectiveThirdParty tnt_next_upstream_timeout + +" TCP Proxy Module +" Add the feature of tcp proxy with nginx, with health check and status monitor +syn keyword ngxDirectiveBlock tcp +" syn keyword ngxDirectiveThirdParty server +" syn keyword ngxDirectiveThirdParty listen +" syn keyword ngxDirectiveThirdParty allow +" syn keyword ngxDirectiveThirdParty deny +" syn keyword ngxDirectiveThirdParty so_keepalive +" syn keyword ngxDirectiveThirdParty tcp_nodelay +" syn keyword ngxDirectiveThirdParty timeout +" syn keyword ngxDirectiveThirdParty server_name +" syn keyword ngxDirectiveThirdParty resolver +" syn keyword ngxDirectiveThirdParty resolver_timeout +" syn keyword ngxDirectiveThirdParty upstream +syn keyword ngxDirectiveThirdParty check +syn keyword ngxDirectiveThirdParty check_http_send +syn keyword ngxDirectiveThirdParty check_http_expect_alive +syn keyword ngxDirectiveThirdParty check_smtp_send +syn keyword ngxDirectiveThirdParty check_smtp_expect_alive +syn keyword ngxDirectiveThirdParty check_shm_size +syn keyword ngxDirectiveThirdParty check_status +" syn keyword ngxDirectiveThirdParty ip_hash +" syn keyword ngxDirectiveThirdParty proxy_pass +" syn keyword ngxDirectiveThirdParty proxy_buffer +" syn keyword ngxDirectiveThirdParty proxy_connect_timeout +" syn keyword ngxDirectiveThirdParty proxy_read_timeout +syn keyword ngxDirectiveThirdParty proxy_write_timeout + +" Testcookie Module +" NGINX module for L7 DDoS attack mitigation +syn keyword ngxDirectiveThirdParty testcookie +syn keyword ngxDirectiveThirdParty testcookie_name +syn keyword ngxDirectiveThirdParty testcookie_domain +syn keyword ngxDirectiveThirdParty testcookie_expires +syn keyword ngxDirectiveThirdParty testcookie_path +syn keyword ngxDirectiveThirdParty testcookie_secret +syn keyword ngxDirectiveThirdParty testcookie_session +syn keyword ngxDirectiveThirdParty testcookie_arg +syn keyword ngxDirectiveThirdParty testcookie_max_attempts +syn keyword ngxDirectiveThirdParty testcookie_p3p +syn keyword ngxDirectiveThirdParty testcookie_fallback +syn keyword ngxDirectiveThirdParty testcookie_whitelist +syn keyword ngxDirectiveThirdParty testcookie_pass +syn keyword ngxDirectiveThirdParty testcookie_redirect_via_refresh +syn keyword ngxDirectiveThirdParty testcookie_refresh_template +syn keyword ngxDirectiveThirdParty testcookie_refresh_status +syn keyword ngxDirectiveThirdParty testcookie_deny_keepalive +syn keyword ngxDirectiveThirdParty testcookie_get_only +syn keyword ngxDirectiveThirdParty testcookie_https_location +syn keyword ngxDirectiveThirdParty testcookie_refresh_encrypt_cookie +syn keyword ngxDirectiveThirdParty testcookie_refresh_encrypt_cookie_key +syn keyword ngxDirectiveThirdParty testcookie_refresh_encrypt_iv +syn keyword ngxDirectiveThirdParty testcookie_internal +syn keyword ngxDirectiveThirdParty testcookie_httponly_flag +syn keyword ngxDirectiveThirdParty testcookie_secure_flag + +" Types Filter Module +" Change the `Content-Type` output header depending on an extension variable according to a condition specified in the 'if' clause. +syn keyword ngxDirectiveThirdParty types_filter +syn keyword ngxDirectiveThirdParty types_filter_use_default + +" Unzip Module +" Enabling fetching of files that are stored in zipped archives. +syn keyword ngxDirectiveThirdParty file_in_unzip_archivefile +syn keyword ngxDirectiveThirdParty file_in_unzip_extract +syn keyword ngxDirectiveThirdParty file_in_unzip + +" Upload Progress Module +" An upload progress system, that monitors RFC1867 POST upload as they are transmitted to upstream servers +syn keyword ngxDirectiveThirdParty upload_progress +syn keyword ngxDirectiveThirdParty track_uploads +syn keyword ngxDirectiveThirdParty report_uploads +syn keyword ngxDirectiveThirdParty upload_progress_content_type +syn keyword ngxDirectiveThirdParty upload_progress_header +syn keyword ngxDirectiveThirdParty upload_progress_jsonp_parameter +syn keyword ngxDirectiveThirdParty upload_progress_json_output +syn keyword ngxDirectiveThirdParty upload_progress_jsonp_output +syn keyword ngxDirectiveThirdParty upload_progress_template + +" Upload Module +" Parses request body storing all files being uploaded to a directory specified by upload_store directive +syn keyword ngxDirectiveThirdParty upload_pass +syn keyword ngxDirectiveThirdParty upload_resumable +syn keyword ngxDirectiveThirdParty upload_store +syn keyword ngxDirectiveThirdParty upload_state_store +syn keyword ngxDirectiveThirdParty upload_store_access +syn keyword ngxDirectiveThirdParty upload_set_form_field +syn keyword ngxDirectiveThirdParty upload_aggregate_form_field +syn keyword ngxDirectiveThirdParty upload_pass_form_field +syn keyword ngxDirectiveThirdParty upload_cleanup +syn keyword ngxDirectiveThirdParty upload_buffer_size +syn keyword ngxDirectiveThirdParty upload_max_part_header_len +syn keyword ngxDirectiveThirdParty upload_max_file_size +syn keyword ngxDirectiveThirdParty upload_limit_rate +syn keyword ngxDirectiveThirdParty upload_max_output_body_len +syn keyword ngxDirectiveThirdParty upload_tame_arrays +syn keyword ngxDirectiveThirdParty upload_pass_args + +" Upstream Fair Module +" The fair load balancer module for nginx http://nginx.localdomain.pl +syn keyword ngxDirectiveThirdParty fair +syn keyword ngxDirectiveThirdParty upstream_fair_shm_size + +" Upstream Hash Module (DEPRECATED) +" Provides simple upstream load distribution by hashing a configurable variable. +" syn keyword ngxDirectiveDeprecated hash +syn keyword ngxDirectiveDeprecated hash_again + +" Upstream Domain Resolve Module +" A load-balancer that resolves an upstream domain name asynchronously. +syn keyword ngxDirectiveThirdParty jdomain + +" Upsync Module +" Sync upstreams from consul or others, dynamiclly modify backend-servers attribute(weight, max_fails,...), needn't reload nginx +syn keyword ngxDirectiveThirdParty upsync +syn keyword ngxDirectiveThirdParty upsync_dump_path +syn keyword ngxDirectiveThirdParty upsync_lb +syn keyword ngxDirectiveThirdParty upstream_show + +" URL Module +" Nginx url encoding converting module +syn keyword ngxDirectiveThirdParty url_encoding_convert +syn keyword ngxDirectiveThirdParty url_encoding_convert_from +syn keyword ngxDirectiveThirdParty url_encoding_convert_to + +" User Agent Module +" Match browsers and crawlers +syn keyword ngxDirectiveThirdParty user_agent + +" Upstrema Ketama Chash Module +" Nginx load-balancer module implementing ketama consistent hashing. +syn keyword ngxDirectiveThirdParty ketama_chash + +" Video Thumbextractor Module +" Extract thumbs from a video file +syn keyword ngxDirectiveThirdParty video_thumbextractor +syn keyword ngxDirectiveThirdParty video_thumbextractor_video_filename +syn keyword ngxDirectiveThirdParty video_thumbextractor_video_second +syn keyword ngxDirectiveThirdParty video_thumbextractor_image_width +syn keyword ngxDirectiveThirdParty video_thumbextractor_image_height +syn keyword ngxDirectiveThirdParty video_thumbextractor_only_keyframe +syn keyword ngxDirectiveThirdParty video_thumbextractor_next_time +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_rows +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_cols +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_max_rows +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_max_cols +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_sample_interval +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_color +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_margin +syn keyword ngxDirectiveThirdParty video_thumbextractor_tile_padding +syn keyword ngxDirectiveThirdParty video_thumbextractor_threads +syn keyword ngxDirectiveThirdParty video_thumbextractor_processes_per_worker + +" Eval Module +" Module for nginx web server evaluates response of proxy or memcached module into variables. +syn keyword ngxDirectiveThirdParty eval +syn keyword ngxDirectiveThirdParty eval_escalate +syn keyword ngxDirectiveThirdParty eval_override_content_type + +" VTS Module +" Nginx virtual host traffic status module +syn keyword ngxDirectiveThirdParty vhost_traffic_status +syn keyword ngxDirectiveThirdParty vhost_traffic_status_zone +syn keyword ngxDirectiveThirdParty vhost_traffic_status_display +syn keyword ngxDirectiveThirdParty vhost_traffic_status_display_format +syn keyword ngxDirectiveThirdParty vhost_traffic_status_display_jsonp +syn keyword ngxDirectiveThirdParty vhost_traffic_status_filter +syn keyword ngxDirectiveThirdParty vhost_traffic_status_filter_by_host +syn keyword ngxDirectiveThirdParty vhost_traffic_status_filter_by_set_key +syn keyword ngxDirectiveThirdParty vhost_traffic_status_filter_check_duplicate +syn keyword ngxDirectiveThirdParty vhost_traffic_status_limit +syn keyword ngxDirectiveThirdParty vhost_traffic_status_limit_traffic +syn keyword ngxDirectiveThirdParty vhost_traffic_status_limit_traffic_by_set_key +syn keyword ngxDirectiveThirdParty vhost_traffic_status_limit_check_duplicate + +" XSS Module +" Native support for cross-site scripting (XSS) in an nginx. +syn keyword ngxDirectiveThirdParty xss_get +syn keyword ngxDirectiveThirdParty xss_callback_arg +syn keyword ngxDirectiveThirdParty xss_override_status +syn keyword ngxDirectiveThirdParty xss_check_status +syn keyword ngxDirectiveThirdParty xss_input_types + +" CT Module +" Certificate Transparency module for nginx +syn keyword ngxDirectiveThirdParty ssl_ct +syn keyword ngxDirectiveThirdParty ssl_ct_static_scts + +" Dynamic TLS records patch +" TLS Dynamic Record Resizing +syn keyword ngxDirectiveThirdParty ssl_dyn_rec_enable +syn keyword ngxDirectiveThirdParty ssl_dyn_rec_size_hi +syn keyword ngxDirectiveThirdParty ssl_dyn_rec_size_lo +syn keyword ngxDirectiveThirdParty ssl_dyn_rec_threshold +syn keyword ngxDirectiveThirdParty ssl_dyn_rec_timeout + +" ZIP Module +" ZIP archiver for nginx + +" Contained LUA blocks for embedded syntax highlighting +syn keyword ngxThirdPartyLuaBlock balancer_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock init_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock init_worker_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock set_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock content_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock rewrite_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock access_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock header_filter_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock body_filter_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock log_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock ssl_certificate_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock ssl_session_fetch_by_lua_block contained +syn keyword ngxThirdPartyLuaBlock ssl_session_store_by_lua_block contained + + +" Nested syntax in ERB templating statements +" Subtype needs to be set to '', otherwise recursive errors occur when opening *.nginx files +let b:eruby_subtype = '' +unlet b:current_syntax +syn include @ERB syntax/eruby.vim +syn region ngxTemplate start=+<%[^\=]+ end=+%>+ oneline contains=@ERB +syn region ngxTemplateVar start=+<%=+ end=+%>+ oneline +let b:current_syntax = "nginx" + +" Nested syntax in Jinja templating statements +" This dependend on https://github.com/lepture/vim-jinja +unlet b:current_syntax +try + syn include @JINJA syntax/jinja.vim + syn region ngxTemplate start=+{%+ end=+%}+ oneline contains=@JINJA + syn region ngxTemplateVar start=+{{+ end=+}}+ oneline +catch +endtry +let b:current_syntax = "nginx" + +" Enable nested LUA syntax highlighting +unlet b:current_syntax +syn include @LUA syntax/lua.vim +syn region ngxLua start=+^\s*\w\+_by_lua_block\s*\(\$\w\+\s*\)\?{+ end=+}+me=s-1 contains=ngxBlock,@LUA +let b:current_syntax = "nginx" + + +" Highlight +hi link ngxComment Comment +hi link ngxVariable Identifier +hi link ngxVariableBlock Identifier +hi link ngxVariableString PreProc +hi link ngxString String +hi link ngxIPaddr Delimiter +hi link ngxBoolean Boolean +hi link ngxInteger Number +hi link ngxDirectiveBlock Statement +hi link ngxDirectiveImportant Type +hi link ngxDirectiveControl Keyword +hi link ngxDirectiveDeprecated Error +hi link ngxDirective Function +hi link ngxDirectiveThirdParty Function +hi link ngxListenOptions PreProc +hi link ngxUpstreamServerOptions PreProc +hi link ngxProxyNextUpstreamOptions PreProc +hi link ngxMailProtocol Keyword +hi link ngxSSLProtocol PreProc +hi link ngxSSLProtocolDeprecated Error +hi link ngxStickyOptions ngxDirective +hi link ngxCookieOptions PreProc +hi link ngxTemplateVar Identifier + +hi link ngxSSLSessionTicketsOff ngxBoolean +hi link ngxSSLSessionTicketsOn Error +hi link ngxSSLPreferServerCiphersOn ngxBoolean +hi link ngxSSLPreferServerCiphersOff Error +hi link ngxGzipOff ngxBoolean +hi link ngxGzipOn Error +hi link ngxSSLCipherInsecure Error + +hi link ngxThirdPartyLuaBlock Function diff --git a/git/usr/share/vim/vim92/syntax/ninja.vim b/git/usr/share/vim/vim92/syntax/ninja.vim new file mode 100644 index 0000000000000000000000000000000000000000..a53567e5859759a4f4e7b202bb0ec81f7f5fd939 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/ninja.vim @@ -0,0 +1,87 @@ +" ninja build file syntax. +" Language: ninja build file as described at +" http://ninja-build.org/manual.html +" Version: 1.5 +" Last Change: 2018/04/05 +" Maintainer: Nicolas Weber +" Version 1.5 of this script is in the upstream vim repository and will be +" included in the next vim release. If you change this, please send your change +" upstream. + +" ninja lexer and parser are at +" https://github.com/ninja-build/ninja/blob/master/src/lexer.in.cc +" https://github.com/ninja-build/ninja/blob/master/src/manifest_parser.cc + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case match + +" Comments are only matched when the # is at the beginning of the line (with +" optional whitespace), as long as the prior line didn't end with a $ +" continuation. +syn match ninjaComment /\(\$\n\)\@" +syn match ninjaKeyword "^rule\>" +syn match ninjaKeyword "^pool\>" +syn match ninjaKeyword "^default\>" +syn match ninjaKeyword "^include\>" +syn match ninjaKeyword "^subninja\>" + +" Both 'build' and 'rule' begin a variable scope that ends +" on the first line without indent. 'rule' allows only a +" limited set of magic variables, 'build' allows general +" let assignments. +" manifest_parser.cc, ParseRule() +syn region ninjaRule start="^rule" end="^\ze\S" contains=TOP transparent +syn keyword ninjaRuleCommand contained containedin=ninjaRule command + \ deps depfile description generator + \ pool restat rspfile rspfile_content + +syn region ninjaPool start="^pool" end="^\ze\S" contains=TOP transparent +syn keyword ninjaPoolCommand contained containedin=ninjaPool depth + +" Strings are parsed as follows: +" lexer.in.cc, ReadEvalString() +" simple_varname = [a-zA-Z0-9_-]+; +" varname = [a-zA-Z0-9_.-]+; +" $$ -> $ +" $\n -> line continuation +" '$ ' -> escaped space +" $simple_varname -> variable +" ${varname} -> variable + +syn match ninjaDollar "\$\$" +syn match ninjaWrapLineOperator "\$$" +syn match ninjaSimpleVar "\$[a-zA-Z0-9_-]\+" +syn match ninjaVar "\${[a-zA-Z0-9_.-]\+}" + +" operators are: +" variable assignment = +" rule definition : +" implicit dependency | +" order-only dependency || +syn match ninjaOperator "\(=\|:\||\|||\)\ze\s" + +hi def link ninjaComment Comment +hi def link ninjaKeyword Keyword +hi def link ninjaRuleCommand Statement +hi def link ninjaPoolCommand Statement +hi def link ninjaDollar ninjaOperator +hi def link ninjaWrapLineOperator ninjaOperator +hi def link ninjaOperator Operator +hi def link ninjaSimpleVar ninjaVar +hi def link ninjaVar Identifier + +let b:current_syntax = "ninja" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/nix.vim b/git/usr/share/vim/vim92/syntax/nix.vim new file mode 100644 index 0000000000000000000000000000000000000000..ef52cddf46ddb5ddc375e6f09ce7854ecb1c652f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nix.vim @@ -0,0 +1,212 @@ +" Vim syntax file +" Language: Nix +" Maintainer: James Fleming +" (Github username: equill) +" Original Author: Daiderd Jordan +" Acknowledgement: Based on vim-nix maintained by Daiderd Jordan +" https://github.com/LnL7/vim-nix +" License: MIT +" Last Change: 2023 Aug 19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword nixBoolean true false +syn keyword nixNull null +syn keyword nixRecKeyword rec + +syn keyword nixOperator or +syn match nixOperator '!=\|!' +syn match nixOperator '<=\?' +syn match nixOperator '>=\?' +syn match nixOperator '&&' +syn match nixOperator '//\=' +syn match nixOperator '==' +syn match nixOperator '?' +syn match nixOperator '||' +syn match nixOperator '++\=' +syn match nixOperator '-' +syn match nixOperator '\*' +syn match nixOperator '->' + +syn match nixParen '[()]' +syn match nixInteger '\d\+' + +syn keyword nixTodo FIXME NOTE TODO OPTIMIZE XXX HACK contained +syn match nixComment '#.*' contains=nixTodo,@Spell +syn region nixComment start=+/\*+ end=+\*/+ contains=nixTodo,@Spell + +syn region nixInterpolation matchgroup=nixInterpolationDelimiter start="\${" end="}" contained contains=@nixExpr,nixInterpolationParam + +syn match nixSimpleStringSpecial /\\\%([nrt"\\$]\|$\)/ contained +syn match nixStringSpecial /''['$]/ contained +syn match nixStringSpecial /\$\$/ contained +syn match nixStringSpecial /''\\[nrt]/ contained + +syn match nixSimpleStringSpecial /\$\$/ contained + +syn match nixInvalidSimpleStringEscape /\\[^nrt"\\$]/ contained +syn match nixInvalidStringEscape /''\\[^nrt]/ contained + +syn region nixSimpleString matchgroup=nixStringDelimiter start=+"+ skip=+\\"+ end=+"+ contains=nixInterpolation,nixSimpleStringSpecial,nixInvalidSimpleStringEscape +syn region nixString matchgroup=nixStringDelimiter start=+''+ skip=+''['$\\]+ end=+''+ contains=nixInterpolation,nixStringSpecial,nixInvalidStringEscape + +syn match nixFunctionCall "[a-zA-Z_][a-zA-Z0-9_'-]*" + +syn match nixPath "[a-zA-Z0-9._+-]*\%(/[a-zA-Z0-9._+-]\+\)\+" +syn match nixHomePath "\~\%(/[a-zA-Z0-9._+-]\+\)\+" +syn match nixSearchPath "[a-zA-Z0-9._+-]\+\%(\/[a-zA-Z0-9._+-]\+\)*" contained +syn match nixPathDelimiter "[<>]" contained +syn match nixSearchPathRef "<[a-zA-Z0-9._+-]\+\%(\/[a-zA-Z0-9._+-]\+\)*>" contains=nixSearchPath,nixPathDelimiter +syn match nixURI "[a-zA-Z][a-zA-Z0-9.+-]*:[a-zA-Z0-9%/?:@&=$,_.!~*'+-]\+" + +syn match nixAttributeDot "\." contained +syn match nixAttribute "[a-zA-Z_][a-zA-Z0-9_'-]*\ze\%([^a-zA-Z0-9_'.-]\|$\)" contained +syn region nixAttributeAssignment start="=" end="\ze;" contained contains=@nixExpr +syn region nixAttributeDefinition start=/\ze[a-zA-Z_"$]/ end=";" contained contains=nixComment,nixAttribute,nixInterpolation,nixSimpleString,nixAttributeDot,nixAttributeAssignment + +syn region nixInheritAttributeSubExpr start="("ms=e+1 end="\ze)" contained contains=nixAttributeDot,@nixExpr +syn region nixInheritAttributeScope start="\ze(" end=")" contained contains=nixInheritAttributeSubExpr +syn region nixAttributeDefinition matchgroup=nixInherit start="\" end=";" contained contains=nixComment,nixInheritAttributeScope,nixAttribute + +syn region nixAttributeSet start="{" end="}" contains=nixComment,nixAttributeDefinition + +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn region nixArgumentDefinitionWithDefault matchgroup=nixArgumentDefinition start="[a-zA-Z_][a-zA-Z0-9_'-]*\ze\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*?\@=" matchgroup=NONE end="[,}]\@=" transparent contained contains=@nixExpr +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn match nixArgumentDefinition "[a-zA-Z_][a-zA-Z0-9_'-]*\ze\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*[,}]\@=" contained +syn match nixArgumentEllipsis "\.\.\." contained +syn match nixArgumentSeparator "," contained + +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn match nixArgOperator '@\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*[a-zA-Z_][a-zA-Z0-9_'-]*\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*:'he=s+1 contained contains=nixAttribute + +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn match nixArgOperator '[a-zA-Z_][a-zA-Z0-9_'-]*\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*@'hs=e-1 contains=nixAttribute nextgroup=nixFunctionArgument + +" This is a bit more complicated, because function arguments can be passed in a +" very similar form on how attribute sets are defined and two regions with the +" same start patterns will shadow each other. Instead of a region we could use a +" match on {\_.\{-\}}, which unfortunately doesn't take nesting into account. +" +" So what we do instead is that we look forward until we are sure that it's a +" function argument. Unfortunately, we need to catch comments and both vertical +" and horizontal white space, which the following regex should hopefully do: +" +" "\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*" +" +" It is also used throughout the whole file and is marked with 'v's as well. +" +" Fortunately the matching rules for function arguments are much simpler than +" for real attribute sets, because we can stop when we hit the first ellipsis or +" default value operator, but we also need to paste the "whitespace & comments +" eating" regex all over the place (marked with 'v's): +" +" Region match 1: { foo ? ... } or { foo, ... } or { ... } (ellipsis) +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv {----- identifier -----}vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn region nixFunctionArgument start="{\ze\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*\%([a-zA-Z_][a-zA-Z0-9_'-]*\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*[,?}]\|\.\.\.\)" end="}" contains=nixComment,nixArgumentDefinitionWithDefault,nixArgumentDefinition,nixArgumentEllipsis,nixArgumentSeparator nextgroup=nixArgOperator + +" Now it gets more tricky, because we need to look forward for the colon, but +" there could be something like "{}@foo:", even though it's highly unlikely. +" +" Region match 2: {} +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv@vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv{----- identifier -----} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn region nixFunctionArgument start="{\ze\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*}\%(\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*@\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*[a-zA-Z_][a-zA-Z0-9_'-]*\)\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*:" end="}" contains=nixComment nextgroup=nixArgOperator + +" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +syn match nixSimpleFunctionArgument "[a-zA-Z_][a-zA-Z0-9_'-]*\ze\%(\s\|#.\{-\}\n\|\n\|/\*\_.\{-\}\*/\)*:\([\n ]\)\@=" + +syn region nixList matchgroup=nixListBracket start="\[" end="\]" contains=@nixExpr + +syn region nixLetExpr matchgroup=nixLetExprKeyword start="\" end="\" contains=nixComment,nixAttributeDefinition + +syn keyword nixIfExprKeyword then contained +syn region nixIfExpr matchgroup=nixIfExprKeyword start="\" end="\" contains=@nixExpr,nixIfExprKeyword + +syn region nixWithExpr matchgroup=nixWithExprKeyword start="\" matchgroup=NONE end=";" contains=@nixExpr + +syn region nixAssertExpr matchgroup=nixAssertKeyword start="\" matchgroup=NONE end=";" contains=@nixExpr + +syn cluster nixExpr contains=nixBoolean,nixNull,nixOperator,nixParen,nixInteger,nixRecKeyword,nixConditional,nixBuiltin,nixSimpleBuiltin,nixComment,nixFunctionCall,nixFunctionArgument,nixArgOperator,nixSimpleFunctionArgument,nixPath,nixHomePath,nixSearchPathRef,nixURI,nixAttributeSet,nixList,nixSimpleString,nixString,nixLetExpr,nixIfExpr,nixWithExpr,nixAssertExpr,nixInterpolation + +" These definitions override @nixExpr and have to come afterwards: + +syn match nixInterpolationParam "[a-zA-Z_][a-zA-Z0-9_'-]*\%(\.[a-zA-Z_][a-zA-Z0-9_'-]*\)*" contained + +" Non-namespaced Nix builtins as of version 2.0: +syn keyword nixSimpleBuiltin + \ abort baseNameOf derivation derivationStrict dirOf fetchGit + \ fetchMercurial fetchTarball import isNull map mapAttrs placeholder removeAttrs + \ scopedImport throw toString + + +" Namespaced and non-namespaced Nix builtins as of version 2.0: +syn keyword nixNamespacedBuiltin contained + \ abort add addErrorContext all any attrNames attrValues baseNameOf + \ catAttrs compareVersions concatLists concatStringsSep currentSystem + \ currentTime deepSeq derivation derivationStrict dirOf div elem elemAt + \ fetchGit fetchMercurial fetchTarball fetchurl filter \ filterSource + \ findFile foldl' fromJSON functionArgs genList \ genericClosure getAttr + \ getEnv hasAttr hasContext hashString head import intersectAttrs isAttrs + \ isBool isFloat isFunction isInt isList isNull isString langVersion + \ length lessThan listToAttrs map mapAttrs match mul nixPath nixVersion + \ parseDrvName partition path pathExists placeholder readDir readFile + \ removeAttrs replaceStrings scopedImport seq sort split splitVersion + \ storeDir storePath stringLength sub substring tail throw toFile toJSON + \ toPath toString toXML trace tryEval typeOf unsafeDiscardOutputDependency + \ unsafeDiscardStringContext unsafeGetAttrPos valueSize fromTOML bitAnd + \ bitOr bitXor floor ceil + +syn match nixBuiltin "builtins\.[a-zA-Z']\+"he=s+9 contains=nixComment,nixNamespacedBuiltin + +hi def link nixArgOperator Operator +hi def link nixArgumentDefinition Identifier +hi def link nixArgumentEllipsis Operator +hi def link nixAssertKeyword Keyword +hi def link nixAttribute Identifier +hi def link nixAttributeDot Operator +hi def link nixBoolean Boolean +hi def link nixBuiltin Special +hi def link nixComment Comment +hi def link nixConditional Conditional +hi def link nixHomePath Include +hi def link nixIfExprKeyword Keyword +hi def link nixInherit Keyword +hi def link nixInteger Integer +hi def link nixInterpolation Macro +hi def link nixInterpolationDelimiter Delimiter +hi def link nixInterpolationParam Macro +hi def link nixInvalidSimpleStringEscape Error +hi def link nixInvalidStringEscape Error +hi def link nixLetExprKeyword Keyword +hi def link nixNamespacedBuiltin Special +hi def link nixNull Constant +hi def link nixOperator Operator +hi def link nixPath Include +hi def link nixPathDelimiter Delimiter +hi def link nixRecKeyword Keyword +hi def link nixSearchPath Include +hi def link nixSimpleBuiltin Keyword +hi def link nixSimpleFunctionArgument Identifier +hi def link nixSimpleString String +hi def link nixSimpleStringSpecial SpecialChar +hi def link nixString String +hi def link nixStringDelimiter Delimiter +hi def link nixStringSpecial Special +hi def link nixTodo Todo +hi def link nixURI Include +hi def link nixWithExprKeyword Keyword + +" This could lead up to slow syntax highlighting for large files, but usually +" large files such as all-packages.nix are one large attribute set, so if we'd +" use sync patterns we'd have to go back to the start of the file anyway +syn sync fromstart + +let b:current_syntax = "nix" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/nosyntax.vim b/git/usr/share/vim/vim92/syntax/nosyntax.vim new file mode 100644 index 0000000000000000000000000000000000000000..a761d712b7b17294421a58cd25b833d4c2bf990f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nosyntax.vim @@ -0,0 +1,31 @@ +" Vim syntax support file +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" This file is used for ":syntax off". +" It removes the autocommands and stops highlighting for all buffers. + +if !has("syntax") + finish +endif + +" Remove all autocommands for the Syntax event. This also avoids that +" "syntax=foo" in a modeline triggers the SynSet() function of synload.vim. +au! Syntax + +" remove all syntax autocommands and remove the syntax for each buffer +augroup syntaxset + au! + au BufEnter * syn clear + au BufEnter * if exists("b:current_syntax") | unlet b:current_syntax | endif + doautoall syntaxset BufEnter * + au! +augroup END + +if exists("syntax_on") + unlet syntax_on +endif +if exists("syntax_manual") + unlet syntax_manual +endif diff --git a/git/usr/share/vim/vim92/syntax/nqc.vim b/git/usr/share/vim/vim92/syntax/nqc.vim new file mode 100644 index 0000000000000000000000000000000000000000..d09c106f9848d5dfb336d6d9857401b79708bb56 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nqc.vim @@ -0,0 +1,365 @@ +" Vim syntax file +" Language: NQC - Not Quite C, for LEGO mindstorms +" NQC homepage: http://www.enteract.com/~dbaum/nqc/ +" Maintainer: Stefan Scherer +" Last Change: 2001 May 10 +" URL: http://www.enotes.de/twiki/pub/Home/LegoMindstorms/nqc.vim +" Filenames: .nqc + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Statements +syn keyword nqcStatement break return continue start stop abs sign +syn keyword nqcStatement sub task +syn keyword nqcLabel case default +syn keyword nqcConditional if else switch +syn keyword nqcRepeat while for do until repeat + +" Scout and RCX2 +syn keyword nqcEvents acquire catch monitor + +" types and classes +syn keyword nqcType int true false void +syn keyword nqcStorageClass asm const inline + + + +" Sensors -------------------------------------------- +" Input Sensors +syn keyword nqcConstant SENSOR_1 SENSOR_2 SENSOR_3 + +" Types for SetSensorType() +syn keyword nqcConstant SENSOR_TYPE_TOUCH SENSOR_TYPE_TEMPERATURE +syn keyword nqcConstant SENSOR_TYPE_LIGHT SENSOR_TYPE_ROTATION +syn keyword nqcConstant SENSOR_LIGHT SENSOR_TOUCH + +" Modes for SetSensorMode() +syn keyword nqcConstant SENSOR_MODE_RAW SENSOR_MODE_BOOL +syn keyword nqcConstant SENSOR_MODE_EDGE SENSOR_MODE_PULSE +syn keyword nqcConstant SENSOR_MODE_PERCENT SENSOR_MODE_CELSIUS +syn keyword nqcConstant SENSOR_MODE_FAHRENHEIT SENSOR_MODE_ROTATION + +" Sensor configurations for SetSensor() +syn keyword nqcConstant SENSOR_TOUCH SENSOR_LIGHT SENSOR_ROTATION +syn keyword nqcConstant SENSOR_CELSIUS SENSOR_FAHRENHEIT SENSOR_PULSE +syn keyword nqcConstant SENSOR_EDGE + +" Functions - All +syn keyword nqcFunction ClearSensor +syn keyword nqcFunction SensorValue SensorType + +" Functions - RCX +syn keyword nqcFunction SetSensor SetSensorType +syn keyword nqcFunction SensorValueBool + +" Functions - RCX, CyberMaster +syn keyword nqcFunction SetSensorMode SensorMode + +" Functions - RCX, Scout +syn keyword nqcFunction SensorValueRaw + +" Functions - Scout +syn keyword nqcFunction SetSensorLowerLimit SetSensorUpperLimit +syn keyword nqcFunction SetSensorHysteresis CalibrateSensor + + +" Outputs -------------------------------------------- +" Outputs for On(), Off(), etc. +syn keyword nqcConstant OUT_A OUT_B OUT_C + +" Modes for SetOutput() +syn keyword nqcConstant OUT_ON OUT_OFF OUT_FLOAT + +" Directions for SetDirection() +syn keyword nqcConstant OUT_FWD OUT_REV OUT_TOGGLE + +" Output power for SetPower() +syn keyword nqcConstant OUT_LOW OUT_HALF OUT_FULL + +" Functions - All +syn keyword nqcFunction SetOutput SetDirection SetPower OutputStatus +syn keyword nqcFunction On Off Float Fwd Rev Toggle +syn keyword nqcFunction OnFwd OnRev OnFor + +" Functions - RXC2, Scout +syn keyword nqcFunction SetGlobalOutput SetGlobalDirection SetMaxPower +syn keyword nqcFunction GlobalOutputStatus + + +" Sound ---------------------------------------------- +" Sounds for PlaySound() +syn keyword nqcConstant SOUND_CLICK SOUND_DOUBLE_BEEP SOUND_DOWN +syn keyword nqcConstant SOUND_UP SOUND_LOW_BEEP SOUND_FAST_UP + +" Functions - All +syn keyword nqcFunction PlaySound PlayTone + +" Functions - RCX2, Scout +syn keyword nqcFunction MuteSound UnmuteSound ClearSound +syn keyword nqcFunction SelectSounds + + +" LCD ------------------------------------------------ +" Modes for SelectDisplay() +syn keyword nqcConstant DISPLAY_WATCH DISPLAY_SENSOR_1 DISPLAY_SENSOR_2 +syn keyword nqcConstant DISPLAY_SENSOR_3 DISPLAY_OUT_A DISPLAY_OUT_B +syn keyword nqcConstant DISPLAY_OUT_C +" RCX2 +syn keyword nqcConstant DISPLAY_USER + +" Functions - RCX +syn keyword nqcFunction SelectDisplay +" Functions - RCX2 +syn keyword nqcFunction SetUserDisplay + + +" Communication -------------------------------------- +" Messages - RCX, Scout ------------------------------ +" Tx power level for SetTxPower() +syn keyword nqcConstant TX_POWER_LO TX_POWER_HI + +" Functions - RCX, Scout +syn keyword nqcFunction Message ClearMessage SendMessage SetTxPower + +" Serial - RCX2 -------------------------------------- +" for SetSerialComm() +syn keyword nqcConstant SERIAL_COMM_DEFAULT SERIAL_COMM_4800 +syn keyword nqcConstant SERIAL_COMM_DUTY25 SERIAL_COMM_76KHZ + +" for SetSerialPacket() +syn keyword nqcConstant SERIAL_PACKET_DEFAULT SERIAL_PACKET_PREAMBLE +syn keyword nqcConstant SERIAL_PACKET_NEGATED SERIAL_PACKET_CHECKSUM +syn keyword nqcConstant SERIAL_PACKET_RCX + +" Functions - RCX2 +syn keyword nqcFunction SetSerialComm SetSerialPacket SetSerialData +syn keyword nqcFunction SerialData SendSerial + +" VLL - Scout ---------------------------------------- +" Functions - Scout +syn keyword nqcFunction SendVLL + + +" Timers --------------------------------------------- +" Functions - All +syn keyword nqcFunction ClearTimer Timer + +" Functions - RCX2 +syn keyword nqcFunction SetTimer FastTimer + + +" Counters ------------------------------------------- +" Functions - RCX2, Scout +syn keyword nqcFunction ClearCounter IncCounter DecCounter Counter + + +" Access Control ------------------------------------- +syn keyword nqcConstant ACQUIRE_OUT_A ACQUIRE_OUT_B ACQUIRE_OUT_C +syn keyword nqcConstant ACQUIRE_SOUND +" RCX2 only +syn keyword nqcConstant ACQUIRE_USER_1 ACQUIRE_USER_2 ACQUIRE_USER_3 +syn keyword nqcConstant ACQUIRE_USER_4 + +" Functions - RCX2, Scout +syn keyword nqcFunction SetPriority + + +" Events --------------------------------------------- +" RCX2 Events +syn keyword nqcConstant EVENT_TYPE_PRESSED EVENT_TYPE_RELEASED +syn keyword nqcConstant EVENT_TYPE_PULSE EVENT_TYPE_EDGE +syn keyword nqcConstant EVENT_TYPE_FAST_CHANGE EVENT_TYPE_LOW +syn keyword nqcConstant EVENT_TYPE_NORMAL EVENT_TYPE_HIGH +syn keyword nqcConstant EVENT_TYPE_CLICK EVENT_TYPE_DOUBLECLICK +syn keyword nqcConstant EVENT_TYPE_MESSAGE + +" Scout Events +syn keyword nqcConstant EVENT_1_PRESSED EVENT_1_RELEASED +syn keyword nqcConstant EVENT_2_PRESSED EVENT_2_RELEASED +syn keyword nqcConstant EVENT_LIGHT_HIGH EVENT_LIGHT_NORMAL +syn keyword nqcConstant EVENT_LIGHT_LOW EVENT_LIGHT_CLICK +syn keyword nqcConstant EVENT_LIGHT_DOUBLECLICK EVENT_COUNTER_0 +syn keyword nqcConstant EVENT_COUNTER_1 EVENT_TIMER_0 EVENT_TIMER_1 +syn keyword nqcConstant EVENT_TIMER_2 EVENT_MESSAGE + +" Functions - RCX2, Scout +syn keyword nqcFunction ActiveEvents Event + +" Functions - RCX2 +syn keyword nqcFunction CurrentEvents +syn keyword nqcFunction SetEvent ClearEvent ClearAllEvents EventState +syn keyword nqcFunction CalibrateEvent SetUpperLimit UpperLimit +syn keyword nqcFunction SetLowerLimit LowerLimit SetHysteresis +syn keyword nqcFunction Hysteresis +syn keyword nqcFunction SetClickTime ClickTime SetClickCounter +syn keyword nqcFunction ClickCounter + +" Functions - Scout +syn keyword nqcFunction SetSensorClickTime SetCounterLimit +syn keyword nqcFunction SetTimerLimit + + +" Data Logging --------------------------------------- +" Functions - RCX +syn keyword nqcFunction CreateDatalog AddToDatalog +syn keyword nqcFunction UploadDatalog + + +" General Features ----------------------------------- +" Functions - All +syn keyword nqcFunction Wait StopAllTasks Random +syn keyword nqcFunction SetSleepTime SleepNow + +" Functions - RCX +syn keyword nqcFunction Program Watch SetWatch + +" Functions - RCX2 +syn keyword nqcFunction SetRandomSeed SelectProgram +syn keyword nqcFunction BatteryLevel FirmwareVersion + +" Functions - Scout +" Parameters for SetLight() +syn keyword nqcConstant LIGHT_ON LIGHT_OFF +syn keyword nqcFunction SetScoutRules ScoutRules SetScoutMode +syn keyword nqcFunction SetEventFeedback EventFeedback SetLight + +" additional CyberMaster defines +syn keyword nqcConstant OUT_L OUT_R OUT_X +syn keyword nqcConstant SENSOR_L SENSOR_M SENSOR_R +" Functions - CyberMaster +syn keyword nqcFunction Drive OnWait OnWaitDifferent +syn keyword nqcFunction ClearTachoCounter TachoCount TachoSpeed +syn keyword nqcFunction ExternalMotorRunning AGC + + + +" nqcCommentGroup allows adding matches for special things in comments +syn keyword nqcTodo contained TODO FIXME XXX +syn cluster nqcCommentGroup contains=nqcTodo + +"when wanted, highlight trailing white space +if exists("nqc_space_errors") + if !exists("nqc_no_trail_space_error") + syn match nqcSpaceError display excludenl "\s\+$" + endif + if !exists("nqc_no_tab_space_error") + syn match nqcSpaceError display " \+\t"me=e-1 + endif +endif + +"catch errors caused by wrong parenthesis and brackets +syn cluster nqcParenGroup contains=nqcParenError,nqcIncluded,nqcCommentSkip,@nqcCommentGroup,nqcCommentStartError,nqcCommentSkip,nqcCppOut,nqcCppOut2,nqcCppSkip,nqcNumber,nqcFloat,nqcNumbers +if exists("nqc_no_bracket_error") + syn region nqcParen transparent start='(' end=')' contains=ALLBUT,@nqcParenGroup,nqcCppParen + " nqcCppParen: same as nqcParen but ends at end-of-line; used in nqcDefine + syn region nqcCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcParen + syn match nqcParenError display ")" + syn match nqcErrInParen display contained "[{}]" +else + syn region nqcParen transparent start='(' end=')' contains=ALLBUT,@nqcParenGroup,nqcCppParen,nqcErrInBracket,nqcCppBracket + " nqcCppParen: same as nqcParen but ends at end-of-line; used in nqcDefine + syn region nqcCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcErrInBracket,nqcParen,nqcBracket + syn match nqcParenError display "[\])]" + syn match nqcErrInParen display contained "[\]{}]" + syn region nqcBracket transparent start='\[' end=']' contains=ALLBUT,@nqcParenGroup,nqcErrInParen,nqcCppParen,nqcCppBracket + " nqcCppBracket: same as nqcParen but ends at end-of-line; used in nqcDefine + syn region nqcCppBracket transparent start='\[' skip='\\$' excludenl end=']' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcErrInParen,nqcParen,nqcBracket + syn match nqcErrInBracket display contained "[);{}]" +endif + +"integer number, or floating point number without a dot and with "f". +syn case ignore +syn match nqcNumbers display transparent "\<\d\|\.\d" contains=nqcNumber,nqcFloat +" Same, but without octal error (for comments) +syn match nqcNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>" +"hex number +syn match nqcNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" +" Flag the first zero of an octal number as something special +syn match nqcFloat display contained "\d\+f" +"floating point number, with dot, optional exponent +syn match nqcFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +"floating point number, starting with a dot, optional exponent +syn match nqcFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match nqcFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" +" flag an octal number with wrong digits +syn case match + +syn region nqcCommentL start="//" skip="\\$" end="$" keepend contains=@nqcCommentGroup,nqcSpaceError +syn region nqcComment matchgroup=nqcCommentStart start="/\*" matchgroup=NONE end="\*/" contains=@nqcCommentGroup,nqcCommentStartError,nqcSpaceError + +" keep a // comment separately, it terminates a preproc. conditional +syntax match nqcCommentError display "\*/" +syntax match nqcCommentStartError display "/\*" contained + + + + + +syn region nqcPreCondit start="^\s*#\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=nqcComment,nqcCharacter,nqcCppParen,nqcParenError,nqcNumbers,nqcCommentError,nqcSpaceError +syn match nqcPreCondit display "^\s*#\s*\(else\|endif\)\>" +if !exists("nqc_no_if0") + syn region nqcCppOut start="^\s*#\s*if\s\+0\>" end=".\|$" contains=nqcCppOut2 + syn region nqcCppOut2 contained start="0" end="^\s*#\s*\(endif\>\|else\>\|elif\>\)" contains=nqcSpaceError,nqcCppSkip + syn region nqcCppSkip contained start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*#\s*endif\>" contains=nqcSpaceError,nqcCppSkip +endif +syn region nqcIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match nqcInclude display "^\s*#\s*include\>\s*["]" contains=nqcIncluded +"syn match nqcLineSkip "\\$" +syn cluster nqcPreProcGroup contains=nqcPreCondit,nqcIncluded,nqcInclude,nqcDefine,nqcErrInParen,nqcErrInBracket,nqcCppOut,nqcCppOut2,nqcCppSkip,nqcNumber,nqcFloat,nqcNumbers,nqcCommentSkip,@nqcCommentGroup,nqcCommentStartError,nqcParen,nqcBracket +syn region nqcDefine start="^\s*#\s*\(define\|undef\)\>" skip="\\$" end="$" contains=ALLBUT,@nqcPreProcGroup +syn region nqcPreProc start="^\s*#\s*\(pragma\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@nqcPreProcGroup + +if !exists("nqc_minlines") + if !exists("nqc_no_if0") + let nqc_minlines = 50 " #if 0 constructs can be long + else + let nqc_minlines = 15 " mostly for () constructs + endif +endif +exec "syn sync ccomment nqcComment minlines=" . nqc_minlines + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +hi def link nqcLabel Label +hi def link nqcConditional Conditional +hi def link nqcRepeat Repeat +hi def link nqcCharacter Character +hi def link nqcNumber Number +hi def link nqcFloat Float +hi def link nqcFunction Function +hi def link nqcParenError nqcError +hi def link nqcErrInParen nqcError +hi def link nqcErrInBracket nqcError +hi def link nqcCommentL nqcComment +hi def link nqcCommentStart nqcComment +hi def link nqcCommentError nqcError +hi def link nqcCommentStartError nqcError +hi def link nqcSpaceError nqcError +hi def link nqcStorageClass StorageClass +hi def link nqcInclude Include +hi def link nqcPreProc PreProc +hi def link nqcDefine Macro +hi def link nqcIncluded String +hi def link nqcError Error +hi def link nqcStatement Statement +hi def link nqcEvents Statement +hi def link nqcPreCondit PreCondit +hi def link nqcType Type +hi def link nqcConstant Constant +hi def link nqcCommentSkip nqcComment +hi def link nqcComment Comment +hi def link nqcTodo Todo +hi def link nqcCppSkip nqcCppOut +hi def link nqcCppOut2 nqcCppOut +hi def link nqcCppOut Comment + + +let b:current_syntax = "nqc" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/nroff.vim b/git/usr/share/vim/vim92/syntax/nroff.vim new file mode 100644 index 0000000000000000000000000000000000000000..fec966f3345d39ce702caaa52ea0f2ff78a2ed5f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nroff.vim @@ -0,0 +1,237 @@ +" VIM syntax file +" Language: nroff/groff +" Maintainer: John Marshall +" Previous Maintainer: Pedro Alejandro López-Valencia +" Previous Maintainer: Jérôme Plût +" Last Change: 2021 Mar 28 +" 2025 Apr 24 by Eisuke Kawashima (move options from syntax to ftplugin #17174) +" +" {{{1 Todo +" +" TODO: +" +" * Write syntax highlighting files for the preprocessors, +" and integrate with nroff.vim. +" +" +" {{{1 Start syntax highlighting. +" +" quit when a syntax file was already loaded +" +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +if exists("nroff_is_groff") + let b:nroff_is_groff = 1 +endif + +syn spell toplevel +syn case match + +" +" {{{1 plugin settings... +" +" {{{2 enable spacing error highlighting +" +if exists("nroff_space_errors") + syn match nroffError /\s\+$/ + syn match nroffSpaceError /[.,:;!?]\s\{2,}/ +endif + +" {{{1 Escape sequences +" ------------------------------------------------------------ + +syn match nroffEscChar /\\[CN]/ nextgroup=nroffEscCharArg +syn match nroffEscape /\\[*fgmnYV]/ nextgroup=nroffEscRegPar,nroffEscRegArg +syn match nroffEscape /\\s[+-]\=/ nextgroup=nroffSize +syn match nroffEscape /\\[$AbDhlLRvxXZ]/ nextgroup=nroffEscPar,nroffEscArg + +syn match nroffEscRegArg /./ contained +syn match nroffEscRegArg2 /../ contained +syn match nroffEscRegPar /(/ contained nextgroup=nroffEscRegArg2 +syn match nroffEscArg /./ contained +syn match nroffEscArg2 /../ contained +syn match nroffEscPar /(/ contained nextgroup=nroffEscArg2 +syn match nroffSize /\((\d\)\=\d/ contained + +syn region nroffEscCharArg start=/'/ end=/'/ contained +syn region nroffEscArg start=/'/ end=/'/ contained contains=nroffEscape,@nroffSpecial + +if exists("b:nroff_is_groff") + syn region nroffEscRegArg matchgroup=nroffEscape start=/\[/ end=/\]/ contained oneline + syn region nroffSize matchgroup=nroffEscape start=/\[/ end=/\]/ contained +endif + +syn match nroffEscape /\\[adprtu{}]/ +syn match nroffEscape /\\$/ +syn match nroffEscape /\\\$[@*]/ + +" {{{1 Strings and special characters +" ------------------------------------------------------------ + +syn match nroffSpecialChar /\\[\\eE?!-]/ +syn match nroffSpace "\\[&%~|^0)/,]" +syn match nroffSpecialChar /\\(../ + +if exists("b:nroff_is_groff") + syn match nroffSpecialChar /\\\[[^]]*]/ + syn region nroffPreserve matchgroup=nroffSpecialChar start=/\\?/ end=/\\?/ oneline +endif + +syn region nroffPreserve matchgroup=nroffSpecialChar start=/\\!/ end=/$/ oneline + +syn cluster nroffSpecial contains=nroffSpecialChar,nroffSpace + + +syn region nroffString start=/"/ end=/"/ skip=/\\$/ contains=nroffEscape,@nroffSpecial contained +syn region nroffString start=/'/ end=/'/ skip=/\\$/ contains=nroffEscape,@nroffSpecial contained + + +" {{{1 Numbers and units +" ------------------------------------------------------------ +syn match nroffNumBlock /[0-9.]\a\=/ contained contains=nroffNumber +syn match nroffNumber /\d\+\(\.\d*\)\=/ contained nextgroup=nroffUnit,nroffBadChar +syn match nroffNumber /\.\d\+)/ contained nextgroup=nroffUnit,nroffBadChar +syn match nroffBadChar /./ contained +syn match nroffUnit /[icpPszmnvMu]/ contained + + +" {{{1 Requests +" ------------------------------------------------------------ + +" Requests begin with . or ' at the beginning of a line, or +" after .if or .ie. + +syn match nroffReqLeader /^[.']/ nextgroup=nroffReqName skipwhite +syn match nroffReqLeader /[.']/ contained nextgroup=nroffReqName skipwhite + +if exists("b:nroff_is_groff") +" +" GNU troff allows long request names +" + syn match nroffReqName /[^\t \\\[?]\+/ contained nextgroup=nroffReqArg +else + syn match nroffReqName /[^\t \\\[?]\{1,2}/ contained nextgroup=nroffReqArg +endif + +syn region nroffReqArg start=/\S/ skip=/\\$/ end=/$/ contained contains=nroffEscape,@nroffSpecial,nroffString,nroffError,nroffSpaceError,nroffNumBlock,nroffComment + +" {{{2 Conditional: .if .ie .el +syn match nroffReqName /\(if\|ie\)/ contained nextgroup=nroffCond skipwhite +syn match nroffReqName /el/ contained nextgroup=nroffReqLeader skipwhite +syn match nroffCond /\S\+/ contained nextgroup=nroffReqLeader skipwhite + +" {{{2 String definition: .ds .as +syn match nroffReqname /[da]s/ contained nextgroup=nroffDefIdent skipwhite +syn match nroffDefIdent /\S\+/ contained nextgroup=nroffDefinition skipwhite +syn region nroffDefinition matchgroup=nroffSpecialChar start=/"/ matchgroup=NONE end=/\\"/me=e-2 skip=/\\$/ start=/\S/ end=/$/ contained contains=nroffDefSpecial +syn match nroffDefSpecial /\\$/ contained +syn match nroffDefSpecial /\\\((.\)\=./ contained + +if exists("b:nroff_is_groff") + syn match nroffDefSpecial /\\\[[^]]*]/ contained +endif + +" {{{2 Macro definition: .de .am, also diversion: .di +syn match nroffReqName /\(d[ei]\|am\)/ contained nextgroup=nroffIdent skipwhite +syn match nroffIdent /[^[?( \t]\+/ contained +if exists("b:nroff_is_groff") + syn match nroffReqName /als/ contained nextgroup=nroffIdent skipwhite +endif + +" {{{2 Register definition: .rn .rr +syn match nroffReqName /[rn]r/ contained nextgroup=nroffIdent skipwhite +if exists("b:nroff_is_groff") + syn match nroffReqName /\(rnn\|aln\)/ contained nextgroup=nroffIdent skipwhite +endif + + +" {{{1 eqn/tbl/pic +" ------------------------------------------------------------ +" +" XXX: write proper syntax highlight for eqn / tbl / pic ? +" + +syn region nroffEquation start=/^\.\s*EQ\>/ end=/^\.\s*EN\>/ +syn region nroffTable start=/^\.\s*TS\>/ end=/^\.\s*TE\>/ contains=@Spell +syn region nroffPicture start=/^\.\s*PS\>/ end=/^\.\s*PE\>/ +syn region nroffRefer start=/^\.\s*\[\>/ end=/^\.\s*\]\>/ contains=@Spell +syn region nroffGrap start=/^\.\s*G1\>/ end=/^\.\s*G2\>/ +syn region nroffGremlin start=/^\.\s*GS\>/ end=/^\.\s*GE|GF\>/ + +" {{{1 Comments +" ------------------------------------------------------------ + +syn region nroffIgnore start=/^[.']\s*ig/ end=/^['.]\s*\./ +syn match nroffComment /\(^[.']\s*\)\=\\".*/ contains=nroffTodo,@Spell +syn match nroffComment /^'''.*/ contains=nroffTodo,@Spell + +if exists("b:nroff_is_groff") + syn match nroffComment "\\#.*$" contains=nroffTodo,@Spell +endif + +syn keyword nroffTodo TODO XXX FIXME contained + +" {{{1 Hilighting +" ------------------------------------------------------------ +" + +" +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +" + +hi def link nroffEscChar nroffSpecialChar +hi def link nroffEscCharArg nroffSpecialChar +hi def link nroffSpecialChar SpecialChar +hi def link nroffSpace Delimiter + +hi def link nroffEscRegArg2 nroffEscRegArg +hi def link nroffEscRegArg nroffIdent + +hi def link nroffEscArg2 nroffEscArg +hi def link nroffEscPar nroffEscape + +hi def link nroffEscRegPar nroffEscape +hi def link nroffEscArg nroffEscape +hi def link nroffSize nroffEscape +hi def link nroffEscape PreProc + +hi def link nroffIgnore Comment +hi def link nroffComment Comment +hi def link nroffTodo Todo + +hi def link nroffReqLeader nroffRequest +hi def link nroffReqName nroffRequest +hi def link nroffRequest Statement +hi def link nroffCond PreCondit +hi def link nroffDefIdent nroffIdent +hi def link nroffIdent Identifier + +hi def link nroffEquation PreProc +hi def link nroffTable PreProc +hi def link nroffPicture PreProc +hi def link nroffRefer PreProc +hi def link nroffGrap PreProc +hi def link nroffGremlin PreProc + +hi def link nroffNumber Number +hi def link nroffBadChar nroffError +hi def link nroffSpaceError nroffError +hi def link nroffError Error + +hi def link nroffPreserve String +hi def link nroffString String +hi def link nroffDefinition String +hi def link nroffDefSpecial Special + + +let b:current_syntax = "nroff" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim600: set fdm=marker fdl=2: diff --git a/git/usr/share/vim/vim92/syntax/nsis.vim b/git/usr/share/vim/vim92/syntax/nsis.vim new file mode 100644 index 0000000000000000000000000000000000000000..49fa17abf115b5bd158327c1de5d970369ead281 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nsis.vim @@ -0,0 +1,730 @@ +" Vim syntax file +" Language: NSIS script, for version of NSIS 3.08 and later +" Maintainer: Ken Takata +" URL: https://github.com/k-takata/vim-nsis +" Previous Maintainer: Alex Jakushev +" Last Change: 2022-11-05 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case ignore + + +"Pseudo definitions +syn match nsisLine nextgroup=@nsisPseudoStatement skipwhite "^" +syn cluster nsisPseudoStatement contains=nsisFirstComment,nsisLocalLabel,nsisGlobalLabel +syn cluster nsisPseudoStatement add=nsisDefine,nsisPreCondit,nsisMacro,nsisInclude,nsisSystem +syn cluster nsisPseudoStatement add=nsisAttribute,nsisCompiler,nsisVersionInfo,nsisInstruction,nsisStatement + +"COMMENTS (4.1) +syn keyword nsisTodo todo attention note fixme readme +syn region nsisComment start="[;#]" end="$" contains=nsisTodo,nsisLineContinuation,@Spell oneline +syn region nsisComment start=".\@1<=/\*" end="\*/" contains=nsisTodo,@Spell +syn region nsisFirstComment start="/\*" end="\*/" contained contains=nsisTodo,@Spell skipwhite + \ nextgroup=@nsisPseudoStatement + +syn match nsisLineContinuation "\\$" + +"STRINGS (4.1) +syn region nsisString start=/"/ end=/"/ contains=@nsisStringItems,@Spell +syn region nsisString start=/'/ end=/'/ contains=@nsisStringItems,@Spell +syn region nsisString start=/`/ end=/`/ contains=@nsisStringItems,@Spell + +syn cluster nsisStringItems contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar,nsisUserVar,nsisSysVar,nsisRegistry,nsisLineContinuation + +"NUMBERS (4.1) +syn match nsisNumber "\<[1-9]\d*\>" +syn match nsisNumber "\<0x\x\+\>" +syn match nsisNumber "\<0\o*\>" + +"STRING REPLACEMENT (5.4, 4.9.15.2, 5.3.1) +syn region nsisPreprocSubst start="\${" end="}" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar +syn region nsisPreprocLangStr start="\$(" end=")" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar +syn region nsisPreprocEnvVar start="\$%" end="%" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar + +"VARIABLES (4.2.2) +syn match nsisUserVar "$\d" +syn match nsisUserVar "$R\d" +syn match nsisSysVar "$INSTDIR" +syn match nsisSysVar "$OUTDIR" +syn match nsisSysVar "$CMDLINE" +syn match nsisSysVar "$LANGUAGE" +"CONSTANTS (4.2.3) +syn match nsisSysVar "$PROGRAMFILES" +syn match nsisSysVar "$PROGRAMFILES32" +syn match nsisSysVar "$PROGRAMFILES64" +syn match nsisSysVar "$COMMONFILES" +syn match nsisSysVar "$COMMONFILES32" +syn match nsisSysVar "$COMMONFILES64" +syn match nsisSysVar "$DESKTOP" +syn match nsisSysVar "$EXEDIR" +syn match nsisSysVar "$EXEFILE" +syn match nsisSysVar "$EXEPATH" +syn match nsisSysVar "${NSISDIR}" +syn match nsisSysVar "$WINDIR" +syn match nsisSysVar "$SYSDIR" +syn match nsisSysVar "$TEMP" +syn match nsisSysVar "$STARTMENU" +syn match nsisSysVar "$SMPROGRAMS" +syn match nsisSysVar "$SMSTARTUP" +syn match nsisSysVar "$QUICKLAUNCH" +syn match nsisSysVar "$DOCUMENTS" +syn match nsisSysVar "$SENDTO" +syn match nsisSysVar "$RECENT" +syn match nsisSysVar "$FAVORITES" +syn match nsisSysVar "$MUSIC" +syn match nsisSysVar "$PICTURES" +syn match nsisSysVar "$VIDEOS" +syn match nsisSysVar "$NETHOOD" +syn match nsisSysVar "$FONTS" +syn match nsisSysVar "$TEMPLATES" +syn match nsisSysVar "$APPDATA" +syn match nsisSysVar "$LOCALAPPDATA" +syn match nsisSysVar "$PRINTHOOD" +syn match nsisSysVar "$INTERNET_CACHE" +syn match nsisSysVar "$COOKIES" +syn match nsisSysVar "$HISTORY" +syn match nsisSysVar "$PROFILE" +syn match nsisSysVar "$ADMINTOOLS" +syn match nsisSysVar "$RESOURCES" +syn match nsisSysVar "$RESOURCES_LOCALIZED" +syn match nsisSysVar "$CDBURN_AREA" +syn match nsisSysVar "$HWNDPARENT" +syn match nsisSysVar "$PLUGINSDIR" +syn match nsisSysVar "$\%(USERTEMPLATES\|USERSTARTMENU\|USERSMPROGRAMS\|USERDESKTOP\)" +syn match nsisSysVar "$\%(COMMONTEMPLATES\|COMMONSTARTMENU\|COMMONSMPROGRAMS\|COMMONDESKTOP\|COMMONPROGRAMDATA\)" +syn match nsisSysVar "$\\r" +syn match nsisSysVar "$\\n" +syn match nsisSysVar "$\\t" +syn match nsisSysVar "$\$" +syn match nsisSysVar "$\\["'`]" + +"LABELS (4.3) +syn match nsisLocalLabel contained "[^-+!$0-9;"'#. \t/*][^ \t:;#]*:\ze\%($\|[ \t;#]\|\/\*\)" +syn match nsisGlobalLabel contained "\.[^-+!$0-9;"'# \t/*][^ \t:;#]*:\ze\%($\|[ \t;#]\|\/\*\)" + +"CONSTANTS +syn keyword nsisBoolean contained true false +syn keyword nsisOnOff contained on off + +syn keyword nsisRegistry contained HKCR HKLM HKCU HKU HKCC HKDD HKPD SHCTX +syn keyword nsisRegistry contained HKCR32 HKCR64 HKCU32 HKCU64 HKLM32 HKLM64 +syn keyword nsisRegistry contained HKEY_CLASSES_ROOT HKEY_LOCAL_MACHINE HKEY_CURRENT_USER HKEY_USERS +syn keyword nsisRegistry contained HKEY_CLASSES_ROOT32 HKEY_CLASSES_ROOT64 +syn keyword nsisRegistry contained HKEY_CURRENT_USER32 HKEY_CURRENT_USER64 +syn keyword nsisRegistry contained HKEY_LOCAL_MACHINE32 HKEY_LOCAL_MACHINE64 +syn keyword nsisRegistry contained HKEY_CURRENT_CONFIG HKEY_DYN_DATA HKEY_PERFORMANCE_DATA +syn keyword nsisRegistry contained SHELL_CONTEXT + + +" common options +syn cluster nsisAnyOpt contains=nsisComment,nsisLineContinuation,nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar,nsisUserVar,nsisSysVar,nsisString,nsisNumber +syn region nsisBooleanOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBoolean +syn region nsisOnOffOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisOnOff +syn region nsisLangOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLangKwd +syn match nsisLangKwd contained "/LANG\>" +syn region nsisFontOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFontKwd +syn match nsisFontKwd contained "/\%(ITALIC\|UNDERLINE\|STRIKE\)\>" + +"STATEMENTS - pages (4.5) +syn keyword nsisStatement contained Page UninstPage nextgroup=nsisPageOpt skipwhite +syn region nsisPageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPageKwd +syn keyword nsisPageKwd contained custom license components directory instfiles uninstConfirm +syn match nsisPageKwd contained "/ENABLECANCEL\>" + +syn keyword nsisStatement contained PageEx nextgroup=nsisPageExOpt skipwhite +syn region nsisPageExOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPageExKwd +syn match nsisPageExKwd contained "\<\%(un\.\)\?\%(custom\|license\|components\|directory\|instfiles\|uninstConfirm\)\>" + +syn keyword nsisStatement contained PageExEnd PageCallbacks + +"STATEMENTS - sections (4.6.1) +syn keyword nsisStatement contained AddSize SectionEnd SectionGroupEnd + +syn keyword nsisStatement contained Section nextgroup=nsisSectionOpt skipwhite +syn region nsisSectionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionKwd +syn match nsisSectionKwd contained "/o\>" + +syn keyword nsisStatement contained SectionInstType SectionIn nextgroup=nsisSectionInOpt skipwhite +syn region nsisSectionInOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionInKwd +syn keyword nsisSectionInKwd contained RO + +syn keyword nsisStatement contained SectionGroup nextgroup=nsisSectionGroupOpt skipwhite +syn region nsisSectionGroupOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionGroupKwd +syn match nsisSectionGroupKwd contained "/e\>" + +"STATEMENTS - functions (4.7.1) +syn keyword nsisStatement contained Function FunctionEnd + + +"STATEMENTS - LogicLib.nsh +syn match nsisStatement "${If}" +syn match nsisStatement "${IfNot}" +syn match nsisStatement "${Unless}" +syn match nsisStatement "${ElseIf}" +syn match nsisStatement "${ElseIfNot}" +syn match nsisStatement "${ElseUnless}" +syn match nsisStatement "${Else}" +syn match nsisStatement "${EndIf}" +syn match nsisStatement "${EndUnless}" +syn match nsisStatement "${AndIf}" +syn match nsisStatement "${AndIfNot}" +syn match nsisStatement "${AndUnless}" +syn match nsisStatement "${OrIf}" +syn match nsisStatement "${OrIfNot}" +syn match nsisStatement "${OrUnless}" +syn match nsisStatement "${IfThen}" +syn match nsisStatement "${IfNotThen}" +syn match nsisStatement "${||\?}" nextgroup=@nsisPseudoStatement skipwhite +syn match nsisStatement "${IfCmd}" nextgroup=@nsisPseudoStatement skipwhite +syn match nsisStatement "${Select}" +syn match nsisStatement "${Case}" +syn match nsisStatement "${Case[2-5]}" +syn match nsisStatement "${CaseElse}" +syn match nsisStatement "${Default}" +syn match nsisStatement "${EndSelect}" +syn match nsisStatement "${Switch}" +syn match nsisStatement "${EndSwitch}" +syn match nsisStatement "${Break}" +syn match nsisStatement "${Do}" +syn match nsisStatement "${DoWhile}" +syn match nsisStatement "${DoUntil}" +syn match nsisStatement "${ExitDo}" +syn match nsisStatement "${Continue}" +syn match nsisStatement "${Loop}" +syn match nsisStatement "${LoopWhile}" +syn match nsisStatement "${LoopUntil}" +syn match nsisStatement "${For}" +syn match nsisStatement "${ForEach}" +syn match nsisStatement "${ExitFor}" +syn match nsisStatement "${Next}" +"STATEMENTS - Memento.nsh +syn match nsisStatement "${MementoSection}" +syn match nsisStatement "${MementoSectionEnd}" + + +"USER VARIABLES (4.2.1) +syn keyword nsisInstruction contained Var nextgroup=nsisVarOpt skipwhite +syn region nsisVarOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisVarKwd +syn match nsisVarKwd contained "/GLOBAL\>" + +"INSTALLER ATTRIBUTES (4.8.1) +syn keyword nsisAttribute contained Caption ChangeUI CheckBitmap CompletedText ComponentText +syn keyword nsisAttribute contained DetailsButtonText DirText DirVar +syn keyword nsisAttribute contained FileErrorText Icon InstallButtonText +syn keyword nsisAttribute contained InstallDir InstProgressFlags +syn keyword nsisAttribute contained LicenseData LicenseText +syn keyword nsisAttribute contained MiscButtonText Name OutFile +syn keyword nsisAttribute contained SpaceTexts SubCaption UninstallButtonText UninstallCaption +syn keyword nsisAttribute contained UninstallIcon UninstallSubCaption UninstallText + +syn keyword nsisAttribute contained AddBrandingImage nextgroup=nsisAddBrandingImageOpt skipwhite +syn region nsisAddBrandingImageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAddBrandingImageKwd +syn keyword nsisAddBrandingImageKwd contained left right top bottom width height + +syn keyword nsisAttribute contained nextgroup=nsisBooleanOpt skipwhite + \ AllowRootDirInstall AutoCloseWindow + +syn keyword nsisAttribute contained BGFont nextgroup=nsisFontOpt skipwhite + +syn keyword nsisAttribute contained BGGradient nextgroup=nsisBGGradientOpt skipwhite +syn region nsisBGGradientOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBGGradientKwd +syn keyword nsisBGGradientKwd contained off + +syn keyword nsisAttribute contained BrandingText nextgroup=nsisBrandingTextOpt skipwhite +syn region nsisBrandingTextOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBrandingTextKwd +syn match nsisBrandingTextKwd contained "/TRIM\%(LEFT\|RIGHT\|CENTER\)\>" + +syn keyword nsisAttribute contained CRCCheck nextgroup=nsisCRCCheckOpt skipwhite +syn region nsisCRCCheckOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCRCCheckKwd +syn keyword nsisCRCCheckKwd contained on off force + +syn keyword nsisAttribute contained DirVerify nextgroup=nsisDirVerifyOpt skipwhite +syn region nsisDirVerifyOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDirVerifyKwd +syn keyword nsisDirVerifyKwd contained auto leave + +syn keyword nsisAttribute contained InstallColors nextgroup=nsisInstallColorsOpt skipwhite +syn region nsisInstallColorsOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisInstallColorsKwd +syn match nsisInstallColorsKwd contained "/windows\>" + +syn keyword nsisAttribute contained InstallDirRegKey nextgroup=nsisRegistryOpt skipwhite + +syn keyword nsisAttribute contained InstType nextgroup=nsisInstTypeOpt skipwhite +syn region nsisInstTypeOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisInstTypeKwd +syn match nsisInstTypeKwd contained "/\%(NOCUSTOM\|CUSTOMSTRING\|COMPONENTSONLYONCUSTOM\)\>" + +syn keyword nsisAttribute contained LicenseBkColor nextgroup=nsisLicenseBkColorOpt skipwhite +syn region nsisLicenseBkColorOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLicenseBkColorKwd +syn match nsisLicenseBkColorKwd contained "/\%(gray\|windows\)\>" + +syn keyword nsisAttribute contained LicenseForceSelection nextgroup=nsisLicenseForceSelectionOpt skipwhite +syn region nsisLicenseForceSelectionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLicenseForceSelectionKwd +syn keyword nsisLicenseForceSelectionKwd contained checkbox radiobuttons off + +syn keyword nsisAttribute contained ManifestDPIAware nextgroup=nsisManifestDPIAwareOpt skipwhite +syn region nsisManifestDPIAwareOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestDPIAwareKwd +syn keyword nsisManifestDPIAwareKwd contained notset true false + +syn keyword nsisAttribute contained ManifestLongPathAware nextgroup=nsisManifestLongPathAwareOpt skipwhite +syn region nsisManifestLongPathAwareOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestLongPathAwareKwd +syn match nsisManifestLongPathAwareKwd contained "\<\%(notset\|true\|false\)\>" + +syn keyword nsisAttribute contained ManifestSupportedOS nextgroup=nsisManifestSupportedOSOpt skipwhite +syn region nsisManifestSupportedOSOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestSupportedOSKwd +syn match nsisManifestSupportedOSKwd contained "\<\%(none\|all\|WinVista\|Win7\|Win8\|Win8\.1\|Win10\)\>" + +syn keyword nsisAttribute contained PEAddResource nextgroup=nsisPEAddResourceOpt skipwhite +syn region nsisPEAddResourceOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPEAddResourceKwd +syn match nsisPEAddResourceKwd contained "/\%(OVERWRITE\|REPLACE\)\>" + +syn keyword nsisAttribute contained PERemoveResource nextgroup=nsisPERemoveResourceOpt skipwhite +syn region nsisPERemoveResourceOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPERemoveResourceKwd +syn match nsisPERemoveResourceKwd contained "/NOERRORS\>" + +syn keyword nsisAttribute contained RequestExecutionLevel nextgroup=nsisRequestExecutionLevelOpt skipwhite +syn region nsisRequestExecutionLevelOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRequestExecutionLevelKwd +syn keyword nsisRequestExecutionLevelKwd contained none user highest admin + +syn keyword nsisAttribute contained SetFont nextgroup=nsisLangOpt skipwhite + +syn keyword nsisAttribute contained nextgroup=nsisShowInstDetailsOpt skipwhite + \ ShowInstDetails ShowUninstDetails +syn region nsisShowInstDetailsOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisShowInstDetailsKwd +syn keyword nsisShowInstDetailsKwd contained hide show nevershow + +syn keyword nsisAttribute contained SilentInstall nextgroup=nsisSilentInstallOpt skipwhite +syn region nsisSilentInstallOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSilentInstallKwd +syn keyword nsisSilentInstallKwd contained normal silent silentlog + +syn keyword nsisAttribute contained SilentUnInstall nextgroup=nsisSilentUnInstallOpt skipwhite +syn region nsisSilentUnInstallOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSilentUnInstallKwd +syn keyword nsisSilentUnInstallKwd contained normal silent + +syn keyword nsisAttribute contained nextgroup=nsisOnOffOpt skipwhite + \ WindowIcon XPStyle + +"COMPILER FLAGS (4.8.2) +syn keyword nsisCompiler contained nextgroup=nsisOnOffOpt skipwhite + \ AllowSkipFiles SetDatablockOptimize SetDateSave + +syn keyword nsisCompiler contained FileBufSize SetCompressorDictSize + +syn keyword nsisCompiler contained SetCompress nextgroup=nsisSetCompressOpt skipwhite +syn region nsisSetCompressOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCompressKwd +syn keyword nsisSetCompressKwd contained auto force off + +syn keyword nsisCompiler contained SetCompressor nextgroup=nsisSetCompressorOpt skipwhite +syn region nsisSetCompressorOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCompressorKwd +syn keyword nsisSetCompressorKwd contained zlib bzip2 lzma +syn match nsisSetCompressorKwd contained "/\%(SOLID\|FINAL\)" + +syn keyword nsisCompiler contained SetOverwrite nextgroup=nsisSetOverwriteOpt skipwhite +syn region nsisSetOverwriteOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetOverwriteKwd +syn keyword nsisSetOverwriteKwd contained on off try ifnewer ifdiff lastused + +syn keyword nsisCompiler contained Unicode nextgroup=nsisBooleanOpt skipwhite + +"VERSION INFORMATION (4.8.3) +syn keyword nsisVersionInfo contained VIAddVersionKey nextgroup=nsisLangOpt skipwhite + +syn keyword nsisVersionInfo contained VIProductVersion VIFileVersion + + +"FUNCTIONS - basic (4.9.1) +syn keyword nsisInstruction contained Delete Rename nextgroup=nsisDeleteOpt skipwhite +syn region nsisDeleteOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDeleteKwd +syn match nsisDeleteKwd contained "/REBOOTOK\>" + +syn keyword nsisInstruction contained Exec ExecWait SetOutPath + +syn keyword nsisInstruction contained ExecShell ExecShellWait nextgroup=nsisExecShellOpt skipwhite +syn region nsisExecShellOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisExecShellKwd +syn keyword nsisExecShellKwd contained SW_SHOWDEFAULT SW_SHOWNORMAL SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_HIDE +syn match nsisExecShellKwd contained "/INVOKEIDLIST\>" + +syn keyword nsisInstruction contained File nextgroup=nsisFileOpt skipwhite +syn region nsisFileOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileKwd +syn match nsisFileKwd contained "/\%(nonfatal\|[arx]\|oname\)\>" + +syn keyword nsisInstruction contained ReserveFile nextgroup=nsisReserveFileOpt skipwhite +syn region nsisReserveFileOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisReserveFileKwd +syn match nsisReserveFileKwd contained "/\%(nonfatal\|[rx]\|plugin\)\>" + +syn keyword nsisInstruction contained RMDir nextgroup=nsisRMDirOpt skipwhite +syn region nsisRMDirOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRMDirKwd +syn match nsisRMDirKwd contained "/\%(REBOOTOK\|r\)\>" + + +"FUNCTIONS - registry & ini (4.9.2) +syn keyword nsisInstruction contained DeleteINISec DeleteINIStr FlushINI ReadINIStr WriteINIStr +syn keyword nsisInstruction contained ExpandEnvStrings ReadEnvStr + +syn keyword nsisInstruction contained DeleteRegKey nextgroup=nsisDeleteRegKeyOpt skipwhite +syn region nsisDeleteRegKeyOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDeleteRegKeyKwd,nsisRegistry +syn match nsisDeleteRegKeyKwd contained "/\%(ifempty\|ifnosubkeys\|ifnovalues\)\>" + +syn keyword nsisInstruction contained nextgroup=nsisRegistryOpt skipwhite + \ DeleteRegValue EnumRegKey EnumRegValue ReadRegDWORD ReadRegStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr +syn region nsisRegistryOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRegistry + +syn keyword nsisInstruction contained WriteRegMultiStr nextgroup=nsisWriteRegMultiStrOpt skipwhite +syn region nsisWriteRegMultiStrOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRegistry,nsisWriteRegMultiStrKwd +syn match nsisWriteRegMultiStrKwd contained "/REGEDIT5\>" + +syn keyword nsisInstruction contained SetRegView nextgroup=nsisSetRegViewOpt skipwhite +syn region nsisSetRegViewOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetRegViewKwd +syn keyword nsisSetRegViewKwd contained default lastused + +"FUNCTIONS - general purpose (4.9.3) +syn keyword nsisInstruction contained CallInstDLL CreateDirectory GetWinVer +syn keyword nsisInstruction contained GetFileTime GetFileTimeLocal GetKnownFolderPath +syn keyword nsisInstruction contained GetTempFileName SearchPath RegDLL UnRegDLL + +syn keyword nsisInstruction contained CopyFiles nextgroup=nsisCopyFilesOpt skipwhite +syn region nsisCopyFilesOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCopyFilesKwd +syn match nsisCopyFilesKwd contained "/\%(SILENT\|FILESONLY\)\>" + +syn keyword nsisInstruction contained CreateShortcut nextgroup=nsisCreateShortcutOpt skipwhite +syn region nsisCreateShortcutOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCreateShortcutKwd +syn match nsisCreateShortcutKwd contained "/NoWorkingDir\>" + +syn keyword nsisInstruction contained GetWinVer nextgroup=nsisGetWinVerOpt skipwhite +syn region nsisGetWinVerOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetWinVerKwd +syn keyword nsisGetWinVerKwd contained Major Minor Build ServicePack + +syn keyword nsisInstruction contained GetDLLVersion GetDLLVersionLocal nextgroup=nsisGetDLLVersionOpt skipwhite +syn region nsisGetDLLVersionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetDLLVersionKwd +syn match nsisGetDLLVersionKwd contained "/ProductVersion\>" + +syn keyword nsisInstruction contained GetFullPathName nextgroup=nsisGetFullPathNameOpt skipwhite +syn region nsisGetFullPathNameOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetFullPathNameKwd +syn match nsisGetFullPathNameKwd contained "/SHORT\>" + +syn keyword nsisInstruction contained SetFileAttributes nextgroup=nsisSetFileAttributesOpt skipwhite +syn region nsisSetFileAttributesOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileAttrib +syn keyword nsisFileAttrib contained NORMAL ARCHIVE HIDDEN OFFLINE READONLY SYSTEM TEMPORARY +syn keyword nsisFileAttrib contained FILE_ATTRIBUTE_NORMAL FILE_ATTRIBUTE_ARCHIVE FILE_ATTRIBUTE_HIDDEN +syn keyword nsisFileAttrib contained FILE_ATTRIBUTE_OFFLINE FILE_ATTRIBUTE_READONLY FILE_ATTRIBUTE_SYSTEM +syn keyword nsisFileAttrib contained FILE_ATTRIBUTE_TEMPORARY + +"FUNCTIONS - Flow Control (4.9.4) +syn keyword nsisInstruction contained Abort Call ClearErrors GetCurrentAddress +syn keyword nsisInstruction contained GetFunctionAddress GetLabelAddress Goto +syn keyword nsisInstruction contained IfAbort IfErrors IfFileExists IfRebootFlag IfSilent +syn keyword nsisInstruction contained IfShellVarContextAll IfRtlLanguage +syn keyword nsisInstruction contained IntCmp IntCmpU Int64Cmp Int64CmpU IntPtrCmp IntPtrCmpU +syn keyword nsisInstruction contained Return Quit SetErrors StrCmp StrCmpS + +syn keyword nsisInstruction contained MessageBox nextgroup=nsisMessageBoxOpt skipwhite +syn region nsisMessageBoxOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisMessageBox +syn keyword nsisMessageBox contained MB_OK MB_OKCANCEL MB_ABORTRETRYIGNORE MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL +syn keyword nsisMessageBox contained MB_ICONEXCLAMATION MB_ICONINFORMATION MB_ICONQUESTION MB_ICONSTOP MB_USERICON +syn keyword nsisMessageBox contained MB_TOPMOST MB_SETFOREGROUND MB_RIGHT MB_RTLREADING +syn keyword nsisMessageBox contained MB_DEFBUTTON1 MB_DEFBUTTON2 MB_DEFBUTTON3 MB_DEFBUTTON4 +syn keyword nsisMessageBox contained IDABORT IDCANCEL IDIGNORE IDNO IDOK IDRETRY IDYES +syn match nsisMessageBox contained "/SD\>" + +"FUNCTIONS - File and directory i/o instructions (4.9.5) +syn keyword nsisInstruction contained FileClose FileOpen FileRead FileReadUTF16LE +syn keyword nsisInstruction contained FileReadByte FileReadWord FileSeek FileWrite +syn keyword nsisInstruction contained FileWriteByte FileWriteWord +syn keyword nsisInstruction contained FindClose FindFirst FindNext + +syn keyword nsisInstruction contained FileWriteUTF16LE nextgroup=nsisFileWriteUTF16LEOpt skipwhite +syn region nsisFileWriteUTF16LEOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileWriteUTF16LEKwd +syn match nsisFileWriteUTF16LEKwd contained "/BOM\>" + +"FUNCTIONS - Uninstaller instructions (4.9.6) +syn keyword nsisInstruction contained WriteUninstaller + +"FUNCTIONS - Misc instructions (4.9.7) +syn keyword nsisInstruction contained GetErrorLevel GetInstDirError InitPluginsDir Nop +syn keyword nsisInstruction contained SetErrorLevel Sleep + +syn keyword nsisInstruction contained SetShellVarContext nextgroup=nsisSetShellVarContextOpt skipwhite +syn region nsisSetShellVarContextOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetShellVarContextKwd +syn keyword nsisSetShellVarContextKwd contained current all + +"FUNCTIONS - String manipulation support (4.9.8) +syn keyword nsisInstruction contained StrCpy StrLen + +"FUNCTIONS - Stack support (4.9.9) +syn keyword nsisInstruction contained Exch Push Pop + +"FUNCTIONS - Integer manipulation support (4.9.10) +syn keyword nsisInstruction contained IntFmt Int64Fmt IntOp IntPtrOp + +"FUNCTIONS - Rebooting support (4.9.11) +syn keyword nsisInstruction contained Reboot SetRebootFlag + +"FUNCTIONS - Install logging instructions (4.9.12) +syn keyword nsisInstruction contained LogSet nextgroup=nsisOnOffOpt skipwhite +syn keyword nsisInstruction contained LogText + +"FUNCTIONS - Section management instructions (4.9.13) +syn keyword nsisInstruction contained SectionSetFlags SectionGetFlags SectionSetText +syn keyword nsisInstruction contained SectionGetText SectionSetInstTypes SectionGetInstTypes +syn keyword nsisInstruction contained SectionSetSize SectionGetSize SetCurInstType GetCurInstType +syn keyword nsisInstruction contained InstTypeSetText InstTypeGetText + +"FUNCTIONS - User Interface Instructions (4.9.14) +syn keyword nsisInstruction contained BringToFront DetailPrint EnableWindow +syn keyword nsisInstruction contained FindWindow GetDlgItem HideWindow IsWindow +syn keyword nsisInstruction contained ShowWindow + +syn keyword nsisInstruction contained CreateFont nextgroup=nsisFontOpt skipwhite + +syn keyword nsisInstruction contained nextgroup=nsisBooleanOpt skipwhite + \ LockWindow SetAutoClose + +syn keyword nsisInstruction contained LoadAndSetImage nextgroup=nsisLoadAndSetImageOpt skipwhite +syn region nsisLoadAndSetImageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLoadAndSetImageKwd +syn match nsisLoadAndSetImageKwd contained "/\%(EXERESOURCE\|STRINGID\|RESIZETOFIT\%(WIDTH\|HEIGHT\)\)\>" + +syn keyword nsisInstruction contained SendMessage nextgroup=nsisSendMessageOpt skipwhite +syn region nsisSendMessageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSendMessageKwd +syn match nsisSendMessageKwd contained "/TIMEOUT\>" + +syn keyword nsisInstruction contained SetBrandingImage nextgroup=nsisSetBrandingImageOpt skipwhite +syn region nsisSetBrandingImageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetBrandingImageKwd +syn match nsisSetBrandingImageKwd contained "/\%(IMGID\|RESIZETOFIT\)\>" + +syn keyword nsisInstruction contained SetDetailsView nextgroup=nsisSetDetailsViewOpt skipwhite +syn region nsisSetDetailsViewOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetDetailsViewKwd +syn keyword nsisSetDetailsViewKwd contained show hide + +syn keyword nsisInstruction contained SetDetailsPrint nextgroup=nsisSetDetailsPrintOpt skipwhite +syn region nsisSetDetailsPrintOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetDetailsPrintKwd +syn keyword nsisSetDetailsPrintKwd contained none listonly textonly both lastused + +syn keyword nsisInstruction contained SetCtlColors nextgroup=nsisSetCtlColorsOpt skipwhite +syn region nsisSetCtlColorsOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCtlColorsKwd +syn match nsisSetCtlColorsKwd contained "/BRANDING\>" + +syn keyword nsisInstruction contained SetSilent nextgroup=nsisSetSilentOpt skipwhite +syn region nsisSetSilentOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetSilentKwd +syn keyword nsisSetSilentKwd contained silent normal + + +"FUNCTIONS - Multiple Languages Instructions (4.9.15) +syn keyword nsisInstruction contained LoadLanguageFile LangString LicenseLangString + + +"SPECIAL FUNCTIONS - install (4.7.2.1) +syn match nsisCallback "\.onGUIInit" +syn match nsisCallback "\.onInit" +syn match nsisCallback "\.onInstFailed" +syn match nsisCallback "\.onInstSuccess" +syn match nsisCallback "\.onGUIEnd" +syn match nsisCallback "\.onMouseOverSection" +syn match nsisCallback "\.onRebootFailed" +syn match nsisCallback "\.onSelChange" +syn match nsisCallback "\.onUserAbort" +syn match nsisCallback "\.onVerifyInstDir" + +"SPECIAL FUNCTIONS - uninstall (4.7.2.2) +syn match nsisCallback "un\.onGUIInit" +syn match nsisCallback "un\.onInit" +syn match nsisCallback "un\.onUninstFailed" +syn match nsisCallback "un\.onUninstSuccess" +syn match nsisCallback "un\.onGUIEnd" +syn match nsisCallback "un\.onRebootFailed" +syn match nsisCallback "un\.onSelChange" +syn match nsisCallback "un\.onUserAbort" + + +"COMPILER UTILITY (5.1) +syn match nsisInclude contained "!include\>" nextgroup=nsisIncludeOpt skipwhite +syn region nsisIncludeOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIncludeKwd +syn match nsisIncludeKwd contained "/\%(NONFATAL\|CHARSET\)\>" + +syn match nsisSystem contained "!addincludedir\>" + +syn match nsisSystem contained "!addplugindir\>" nextgroup=nsisAddplugindirOpt skipwhite +syn region nsisAddplugindirOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAddplugindirKwd +syn match nsisAddplugindirKwd contained "/\%(x86-ansi\|x86-unicode\)\>" + +syn match nsisSystem contained "!appendfile\>" nextgroup=nsisAppendfileOpt skipwhite +syn region nsisAppendfileOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAppendfileKwd +syn match nsisAppendfileKwd contained "/\%(CHARSET\|RawNL\)\>" + +syn match nsisSystem contained "!cd\>" + +syn match nsisSystem contained "!delfile\>" nextgroup=nsisDelfileOpt skipwhite +syn region nsisDelfileOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDelfileKwd +syn match nsisDelfileKwd contained "/nonfatal\>" + +syn match nsisSystem contained "!echo\>" +syn match nsisSystem contained "!error\>" +syn match nsisSystem contained "!execute\>" +syn match nsisSystem contained "!makensis\>" +syn match nsisSystem contained "!packhdr\>" +syn match nsisSystem contained "!finalize\>" +syn match nsisSystem contained "!uninstfinalize\>" +syn match nsisSystem contained "!system\>" +syn match nsisSystem contained "!tempfile\>" + +" Add 'P' to avoid conflicts with nsisGetDLLVersionOpt. ('P' for preprocessor.) +syn match nsisSystem contained "!getdllversion\>" nextgroup=nsisPGetdllversionOpt skipwhite +syn region nsisPGetdllversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGetdllversionKwd +syn match nsisPGetdllversionKwd contained "/\%(noerrors\|packed\|productversion\)\>" + +syn match nsisSystem contained "!gettlbversion\>" nextgroup=nsisPGettlbversionOpt skipwhite +syn region nsisPGettlbversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGettlbversionKwd +syn match nsisPGettlbversionKwd contained "/\%(noerrors\|packed\)\>" + +syn match nsisSystem contained "!warning\>" + +syn match nsisSystem contained "!pragma\>" nextgroup=nsisPragmaOpt skipwhite +syn region nsisPragmaOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPragmaKwd +syn keyword nsisPragmaKwd contained enable disable default push pop + +syn match nsisSystem contained "!verbose\>" nextgroup=nsisVerboseOpt skipwhite +syn region nsisVerboseOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisVerboseKwd +syn keyword nsisVerboseKwd contained push pop + +"PREPROCESSOR (5.4) +syn match nsisDefine contained "!define\>" nextgroup=nsisDefineOpt skipwhite +syn region nsisDefineOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDefineKwd +syn match nsisDefineKwd contained "/\%(ifndef\|redef\|date\|utcdate\|file\|intfmt\|math\)\>" + +syn match nsisDefine contained "!undef\>" nextgroup=nsisUndefineOpt skipwhite +syn region nsisUndefineOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisUndefineKwd +syn match nsisUndefineKwd contained "/noerrors\>" + +syn match nsisPreCondit contained "!ifdef\>" +syn match nsisPreCondit contained "!ifndef\>" + +syn match nsisPreCondit contained "!if\>" nextgroup=nsisIfOpt skipwhite +syn region nsisIfOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIfKwd +syn match nsisIfKwd contained "/FileExists\>" + +syn match nsisPreCondit contained "!ifmacrodef\>" +syn match nsisPreCondit contained "!ifmacrondef\>" +syn match nsisPreCondit contained "!else\>" +syn match nsisPreCondit contained "!endif\>" +syn match nsisMacro contained "!insertmacro\>" +syn match nsisMacro contained "!macro\>" +syn match nsisMacro contained "!macroend\>" +syn match nsisMacro contained "!macroundef\>" + +syn match nsisMacro contained "!searchparse\>" nextgroup=nsisSearchparseOpt skipwhite +syn region nsisSearchparseOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSearchparseKwd +syn match nsisSearchparseKwd contained "/\%(ignorecase\|noerrors\|file\)\>" + +syn match nsisMacro contained "!searchreplace\>" nextgroup=nsisSearchreplaceOpt skipwhite +syn region nsisSearchreplaceOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSearchreplaceKwd +syn match nsisSearchreplaceKwd contained "/ignorecase\>" + + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link nsisInstruction Function +hi def link nsisComment Comment +hi def link nsisFirstComment Comment +hi def link nsisLocalLabel Label +hi def link nsisGlobalLabel Label +hi def link nsisStatement Statement +hi def link nsisString String +hi def link nsisBoolean Boolean +hi def link nsisOnOff Boolean +hi def link nsisFontKwd Constant +hi def link nsisLangKwd Constant +hi def link nsisPageKwd Constant +hi def link nsisPageExKwd Constant +hi def link nsisSectionKwd Constant +hi def link nsisSectionInKwd Constant +hi def link nsisSectionGroupKwd Constant +hi def link nsisVarKwd Constant +hi def link nsisAddBrandingImageKwd Constant +hi def link nsisBGGradientKwd Constant +hi def link nsisBrandingTextKwd Constant +hi def link nsisCRCCheckKwd Constant +hi def link nsisDirVerifyKwd Constant +hi def link nsisInstallColorsKwd Constant +hi def link nsisInstTypeKwd Constant +hi def link nsisLicenseBkColorKwd Constant +hi def link nsisLicenseForceSelectionKwd Constant +hi def link nsisManifestDPIAwareKwd Constant +hi def link nsisManifestLongPathAwareKwd Constant +hi def link nsisManifestSupportedOSKwd Constant +hi def link nsisPEAddResourceKwd Constant +hi def link nsisPERemoveResourceKwd Constant +hi def link nsisRequestExecutionLevelKwd Constant +hi def link nsisShowInstDetailsKwd Constant +hi def link nsisSilentInstallKwd Constant +hi def link nsisSilentUnInstallKwd Constant +hi def link nsisSetCompressKwd Constant +hi def link nsisSetCompressorKwd Constant +hi def link nsisSetOverwriteKwd Constant +hi def link nsisDeleteKwd Constant +hi def link nsisExecShellKwd Constant +hi def link nsisFileKwd Constant +hi def link nsisReserveFileKwd Constant +hi def link nsisRMDirKwd Constant +hi def link nsisDeleteRegKeyKwd Constant +hi def link nsisWriteRegMultiStrKwd Constant +hi def link nsisSetRegViewKwd Constant +hi def link nsisCopyFilesKwd Constant +hi def link nsisCreateShortcutKwd Constant +hi def link nsisGetWinVerKwd Constant +hi def link nsisGetDLLVersionKwd Constant +hi def link nsisGetFullPathNameKwd Constant +hi def link nsisFileAttrib Constant +hi def link nsisMessageBox Constant +hi def link nsisFileWriteUTF16LEKwd Constant +hi def link nsisSetShellVarContextKwd Constant +hi def link nsisLoadAndSetImageKwd Constant +hi def link nsisSendMessageKwd Constant +hi def link nsisSetBrandingImageKwd Constant +hi def link nsisSetDetailsViewKwd Constant +hi def link nsisSetDetailsPrintKwd Constant +hi def link nsisSetCtlColorsKwd Constant +hi def link nsisSetSilentKwd Constant +hi def link nsisRegistry Identifier +hi def link nsisNumber Number +hi def link nsisError Error +hi def link nsisUserVar Identifier +hi def link nsisSysVar Identifier +hi def link nsisAttribute Type +hi def link nsisCompiler Type +hi def link nsisVersionInfo Type +hi def link nsisTodo Todo +hi def link nsisCallback Identifier +" preprocessor commands +hi def link nsisPreprocSubst PreProc +hi def link nsisPreprocLangStr PreProc +hi def link nsisPreprocEnvVar PreProc +hi def link nsisDefine Define +hi def link nsisMacro Macro +hi def link nsisPreCondit PreCondit +hi def link nsisInclude Include +hi def link nsisSystem PreProc +hi def link nsisLineContinuation Special +hi def link nsisIncludeKwd Constant +hi def link nsisAddplugindirKwd Constant +hi def link nsisAppendfileKwd Constant +hi def link nsisDelfileKwd Constant +hi def link nsisPGetdllversionKwd Constant +hi def link nsisPGettlbversionKwd Constant +hi def link nsisPragmaKwd Constant +hi def link nsisVerboseKwd Constant +hi def link nsisDefineKwd Constant +hi def link nsisUndefineKwd Constant +hi def link nsisIfKwd Constant +hi def link nsisSearchparseKwd Constant +hi def link nsisSearchreplaceKwd Constant + + +let b:current_syntax = "nsis" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/nu.vim b/git/usr/share/vim/vim92/syntax/nu.vim new file mode 100644 index 0000000000000000000000000000000000000000..0d0c80ec32a21d0eccfee1f7e85f7e285e4a6014 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/nu.vim @@ -0,0 +1,720 @@ +" Vim syntax file +" Language: Nushell +" Maintainer: El Kasztano +" URL: https://github.com/elkasztano/nushell-syntax-vim +" License: MIT +" Last Change: 2025 Sep 05 + +if exists("b:current_syntax") + finish +endif + +syn iskeyword @,192-255,-,_ + +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr,nuSubCmd,nuDefflag skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr,nuSubCmd,nuDefflag skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr,nuSubCmd,nuDefflag skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\ " display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuIdtfr skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" nextgroup=nuPrpty skipwhite display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display +syn match nuCmd "\" display + +syn match nuNumber "\([a-zA-Z_\.]\+\d*\)\@" display +syn match nuOp "+" display +syn match nuOp "/" display +syn match nuOp "\*" display +syn match nuOp "!=" display +syn match nuOp "=\~" display +syn match nuOp "\!\~" display +syn match nuOp "\" nextgroup=nuPrpty skipwhite display +syn match nuOp "\" nextgroup=nuPrpty skipwhite display +syn match nuOp "\" display +syn match nuOp "\" nextgroup=nuPrpty skipwhite display +syn match nuOp "\" nextgroup=nuPrpty skipwhite display +syn match nuOp "\" nextgroup=nuPrpty skipwhite display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\" display +syn match nuOp "\.\.\." display + +syn match nuVar "\$[^?\])} \t]\+" + +syn match nuIdtfr :\(-\+\)\@![^? \t"=]\+: contained + +syn region nuSubCmd start=/"/ skip=/\\./ end=/"/ contained + +syn match nuPrpty '\w\+' contained + +syn keyword nuType any binary bool cell-path closure datetime directory duration error filesize float glob int list nothing number path range record string table true false null + +syn keyword nuCondi if then else + +syn match nuUnit "b\>" contained +syn match nuUnit "kb\>" contained +syn match nuUnit "mb\>" contained +syn match nuUnit "gb\>" contained +syn match nuUnit "tb\>" contained +syn match nuUnit "pb\>" contained +syn match nuUnit "eb\>" contained +syn match nuUnit "kib\>" contained +syn match nuUnit "mib\>" contained +syn match nuUnit "gib\>" contained +syn match nuUnit "tib\>" contained +syn match nuUnit "pib\>" contained +syn match nuUnit "eib\>" contained + +syn match nuDur "ns\>" contained +syn match nuDur "us\>" contained +syn match nuDur "ms\>" contained +syn match nuDur "sec\>" contained +syn match nuDur "min\>" contained +syn match nuDur "hr\>" contained +syn match nuDur "day\>" contained +syn match nuDur "wk\>" contained + +syn match nuFlag "\<-\k\+" + +syn match nuDefflag "\<--env\>" display contained nextgroup=nuIdtfr skipwhite +syn match nuDefflag "\<--wrapped\>" display contained nextgroup=nuIdtfr skipwhite + +syn match nuSysEsc "\^\k\+" display + +syn match nuSqrbr "\[" display +syn match nuSqrbr "\]" display +syn match nuSqrbr ":" display + +syn region nuString start=/\v"/ skip=/\v\\./ end=/\v"/ contains=nuEscaped +syn region nuString start='\'' end='\'' +syn region nuString start='`' end='`' +syn region nuString start=/r#\+'/ end=/#\+/ contains=nuString + +syn region nuStrInt start=/$'/ end=/'/ contains=nuNested +syn region nuStrInt start=/$"/ skip=/\\./ end=/"/ contains=nuNested,nuEscaped + +syn region nuNested start="("hs=s+1 end=")"he=e-1 contained contains=nuAnsi +syn match nuAnsi "ansi[a-zA-Z0-9;' -]\+)"me=e-1 contained + +syn match nuClosure "|\(\w\|, \)\+|" + +syn match nuDot ")\.\(\k\|\.\)\+"ms=s+1 display + +syn match nuEscaped "\\\\" display +syn match nuEscaped :\\": display +syn match nuEscaped "\\n" display +syn match nuEscaped "\\t" display +syn match nuEscaped "\\r" display + +hi def link nuCmd Keyword +hi def link nuComment Comment +hi def link nuTodo Todo +hi def link nuString Constant +hi def link nuChar Constant +hi def link nuOp Operator +hi def link nuVar PreProc +hi def link nuSqrBr Special +hi def link nuIdtfr Identifier +hi def link nuType Type +hi def link nuUnit Type +hi def link nuDur Type +hi def link nuPrpty Special +hi def link nuSubCmd Identifier +hi def link nuStrInt Constant +hi def link nuNested PreProc +hi def link nuFlag Special +hi def link nuEscaped Special +hi def link nuCondi Type +hi def link nuClosure Type +hi def link nuNumber Number +hi def link nuDot Special +hi def link nuSysEsc PreProc +hi def link nuAnsi Special +hi def link nuDefflag Special + +let b:current_syntax = "nu" diff --git a/git/usr/share/vim/vim92/syntax/obj.vim b/git/usr/share/vim/vim92/syntax/obj.vim new file mode 100644 index 0000000000000000000000000000000000000000..df4dbca5d7a541659a789d023dc4a4de56a1f24f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/obj.vim @@ -0,0 +1,83 @@ +" Vim syntax file +" Language: 3D wavefront's obj file +" Maintainer: Vincent Berthoux +" File Types: .obj (used in 3D) +" Last Change: 2010 May 18 +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn match objError "^\a\+" + +syn match objKeywords "^cstype\s" +syn match objKeywords "^ctech\s" +syn match objKeywords "^stech\s" +syn match objKeywords "^deg\s" +syn match objKeywords "^curv\(2\?\)\s" +syn match objKeywords "^parm\s" +syn match objKeywords "^surf\s" +syn match objKeywords "^end\s" +syn match objKeywords "^bzp\s" +syn match objKeywords "^bsp\s" +syn match objKeywords "^res\s" +syn match objKeywords "^cdc\s" +syn match objKeywords "^con\s" + +syn match objKeywords "^shadow_obj\s" +syn match objKeywords "^trace_obj\s" +syn match objKeywords "^usemap\s" +syn match objKeywords "^lod\s" +syn match objKeywords "^maplib\s" +syn match objKeywords "^d_interp\s" +syn match objKeywords "^c_interp\s" +syn match objKeywords "^bevel\s" +syn match objKeywords "^mg\s" +syn match objKeywords "^s\s" +syn match objKeywords "^con\s" +syn match objKeywords "^trim\s" +syn match objKeywords "^hole\s" +syn match objKeywords "^scrv\s" +syn match objKeywords "^sp\s" +syn match objKeywords "^step\s" +syn match objKeywords "^bmat\s" +syn match objKeywords "^csh\s" +syn match objKeywords "^call\s" + +syn match objComment "^#.*" +syn match objVertex "^v\s" +syn match objFace "^f\s" +syn match objVertice "^vt\s" +syn match objNormale "^vn\s" +syn match objGroup "^g\s.*" +syn match objMaterial "^usemtl\s.*" +syn match objInclude "^mtllib\s.*" + +syn match objFloat "-\?\d\+\.\d\+\(e\(+\|-\)\d\+\)\?" +syn match objInt "\d\+" +syn match objIndex "\d\+\/\d*\/\d*" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link objError Error +hi def link objComment Comment +hi def link objInclude PreProc +hi def link objFloat Float +hi def link objInt Number +hi def link objGroup Structure +hi def link objIndex Constant +hi def link objMaterial Label + +hi def link objVertex Keyword +hi def link objNormale Keyword +hi def link objVertice Keyword +hi def link objFace Keyword +hi def link objKeywords Keyword + + + +let b:current_syntax = "obj" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/objc.vim b/git/usr/share/vim/vim92/syntax/objc.vim new file mode 100644 index 0000000000000000000000000000000000000000..7c6e2d51283b3e6023ca86a20b2fb02a3d08c63e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/objc.vim @@ -0,0 +1,534 @@ +" Vim syntax file +" Language: Objective-C +" Maintainer: Kazunobu Kuriyama +" Last Change: 2020 Jun 07 +" Last Change By Maintainer: 2015 Dec 14 + +""" Preparation for loading ObjC stuff +if exists("b:current_syntax") + finish +endif +if &filetype != 'objcpp' + syn clear + runtime! syntax/c.vim +endif +let s:cpo_save = &cpo +set cpo&vim + +""" ObjC proper stuff follows... + +syn keyword objcPreProcMacro __OBJC__ __OBJC2__ __clang__ + +" Defined Types +syn keyword objcPrincipalType id Class SEL IMP BOOL instancetype +syn keyword objcUsefulTerm nil Nil NO YES + +" Preprocessor Directives +syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match objcImported display contained "\(<\h[-+a-zA-Z0-9_/]*\.h>\|<[a-z0-9]\+>\)" +syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported + +" ObjC Compiler Directives +syn match objcObjDef display /@interface\>\|@implementation\>\|@end\>\|@class\>/ +syn match objcProtocol display /@protocol\>\|@optional\>\|@required\>/ +syn match objcProperty display /@property\>\|@synthesize\>\|@dynamic\>/ +syn match objcIvarScope display /@private\>\|@protected\>\|@public\>\|@package\>/ +syn match objcInternalRep display /@selector\>\|@encode\>/ +syn match objcException display /@try\>\|@throw\>\|@catch\|@finally\>/ +syn match objcThread display /@synchronized\>/ +syn match objcPool display /@autoreleasepool\>/ +syn match objcModuleImport display /@import\>/ + +" ObjC Constant Strings +syn match objcSpecial display contained "%@" +syn region objcString start=+\(@"\|"\)+ skip=+\\\\\|\\"+ end=+"+ contains=cFormat,cSpecial,objcSpecial + +" ObjC Hidden Arguments +syn keyword objcHiddenArgument self _cmd super + +" ObjC Type Qualifiers for Blocks +syn keyword objcBlocksQualifier __block +" ObjC Type Qualifiers for Object Lifetime +syn keyword objcObjectLifetimeQualifier __strong __weak __unsafe_unretained __autoreleasing +" ObjC Type Qualifiers for Toll-Free Bridge +syn keyword objcTollFreeBridgeQualifier __bridge __bridge_retained __bridge_transfer + +" ObjC Type Qualifiers for Remote Messaging +syn match objcRemoteMessagingQualifier display contained /\((\s*oneway\s\+\|(\s*in\s\+\|(\s*out\s\+\|(\s*inout\s\+\|(\s*bycopy\s\+\(in\(out\)\?\|out\)\?\|(\s*byref\s\+\(in\(out\)\?\|out\)\?\)/hs=s+1 + +" ObjC Storage Classes +syn keyword objcStorageClass _Nullable _Nonnull _Null_unspecified +syn keyword objcStorageClass __nullable __nonnull __null_unspecified +syn keyword objcStorageClass nullable nonnull null_unspecified + +" ObjC type specifier +syn keyword objcTypeSpecifier __kindof __covariant + +" ObjC Type Information Parameters +syn keyword objcTypeInfoParams ObjectType KeyType + +" shorthand +syn cluster objcTypeQualifier contains=objcBlocksQualifier,objcObjectLifetimeQualifier,objcTollFreeBridgeQualifier,objcRemoteMessagingQualifier + +" ObjC Fast Enumeration +syn match objcFastEnumKeyword display /\sin\(\s\|$\)/ + +" ObjC Literal Syntax +syn match objcLiteralSyntaxNumber display /@\(YES\>\|NO\>\|\d\|-\|+\)/ contains=cNumber,cFloat,cOctal +syn match objcLiteralSyntaxSpecialChar display /@'/ contains=cSpecialCharacter +syn match objcLiteralSyntaxChar display /@'[^\\]'/ +syn match objcLiteralSyntaxOp display /@\((\|\[\|{\)/me=e-1,he=e-1 + +" ObjC Declared Property Attributes +syn match objDeclPropAccessorNameAssign display /\s*=\s*/ contained +syn region objcDeclPropAccessorName display start=/\(getter\|setter\)/ end=/\h\w*/ contains=objDeclPropAccessorNameAssign +syn keyword objcDeclPropAccessorType readonly readwrite contained +syn keyword objcDeclPropAssignSemantics assign retain copy contained +syn keyword objcDeclPropAtomicity nonatomic contained +syn keyword objcDeclPropARC strong weak contained +syn match objcDeclPropNullable /\((\|\s\)nullable\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained +syn match objcDeclPropNonnull /\((\|\s\)nonnull\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained +syn match objcDeclPropNullUnspecified /\((\|\s\)null_unspecified\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained +syn keyword objcDeclProcNullResettable null_resettable contained +syn region objcDeclProp display transparent keepend start=/@property\s*(/ end=/)/ contains=objcProperty,objcDeclPropAccessorName,objcDeclPropAccessorType,objcDeclPropAssignSemantics,objcDeclPropAtomicity,objcDeclPropARC,objcDeclPropNullable,objcDeclPropNonnull,objcDeclPropNullUnspecified,objcDeclProcNullResettable + +" To distinguish colons in methods and dictionaries from those in C's labels. +syn match objcColon display /^\s*\h\w*\s*\:\(\s\|.\)/me=e-1,he=e-1 + +" To distinguish a protocol list from system header files +syn match objcProtocolList display /<\h\w*\(\s*,\s*\h\w*\)*>/ contains=objcPrincipalType,cType,Type,objcType,objcTypeInfoParams + +" Type info for collection classes +syn match objcTypeInfo display /<\h\w*\s*<\(\h\w*\s*\**\|\h\w*\)>>/ contains=objcPrincipalType,cType,Type,objcType,objcTypeInfoParams + +" shorthand +syn cluster objcCEntities contains=cType,cStructure,cStorageClass,cString,cCharacter,cSpecialCharacter,cNumbers,cConstant,cOperator,cComment,cCommentL,cStatement,cLabel,cConditional,cRepeat +syn cluster objcObjCEntities contains=objcHiddenArgument,objcPrincipalType,objcString,objcUsefulTerm,objcProtocol,objcInternalRep,objcException,objcThread,objcPool,objcModuleImport,@objcTypeQualifier,objcLiteralSyntaxNumber,objcLiteralSyntaxOp,objcLiteralSyntaxChar,objcLiteralSyntaxSpecialChar,objcProtocolList,objcColon,objcFastEnumKeyword,objcType,objcClass,objcMacro,objcEnum,objcEnumValue,objcExceptionValue,objcNotificationValue,objcConstVar,objcPreProcMacro,objcTypeInfo + +" Objective-C Message Expressions +syn region objcMethodCall start=/\[/ end=/\]/ contains=objcMethodCall,objcBlocks,@objcObjCEntities,@objcCEntities + +" To distinguish class method and instance method +syn match objcInstanceMethod display /^s*-\s*/ +syn match objcClassMethod display /^s*+\s*/ + +" ObjC Blocks +syn region objcBlocks start=/\(\^\s*([^)]\+)\s*{\|\^\s*{\)/ end=/}/ contains=objcBlocks,objcMethodCall,@objcObjCEntities,@objcCEntities + +syn cluster cParenGroup add=objcMethodCall +syn cluster cPreProcGroup add=objcMethodCall + +""" Foundation Framework +syn match objcClass /Protocol\s*\*/me=s+8,he=s+8 + +""""""""""""""""" +" NSObjCRuntime.h +syn keyword objcType NSInteger NSUInteger NSComparator +syn keyword objcEnum NSComparisonResult +syn keyword objcEnumValue NSOrderedAscending NSOrderedSame NSOrderedDescending +syn keyword objcEnum NSEnumerationOptions +syn keyword objcEnumValue NSEnumerationConcurrent NSEnumerationReverse +syn keyword objcEnum NSSortOptions +syn keyword objcEnumValue NSSortConcurrent NSSortStable +syn keyword objcEnumValue NSNotFound +syn keyword objcMacro NSIntegerMax NSIntegerMin NSUIntegerMax +syn keyword objcMacro NS_INLINE NS_BLOCKS_AVAILABLE NS_NONATOMIC_IOSONLY NS_FORMAT_FUNCTION NS_FORMAT_ARGUMENT NS_RETURNS_RETAINED NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_AUTOMATED_REFCOUNT_UNAVAILABLE NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE NS_REQUIRES_PROPERTY_DEFINITIONS NS_REPLACES_RECEIVER NS_RELEASES_ARGUMENT NS_VALID_UNTIL_END_OF_SCOPE NS_ROOT_CLASS NS_REQUIRES_SUPER NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION NS_DESIGNATED_INITIALIZER NS_REQUIRES_NIL_TERMINATION +syn keyword objcEnum NSQualityOfService +syn keyword objcEnumValue NSQualityOfServiceUserInteractive NSQualityOfServiceUserInitiated NSQualityOfServiceUtility NSQualityOfServiceBackground NSQualityOfServiceDefault +" NSRange.h +syn keyword objcType NSRange NSRangePointer +" NSGeometry.h +syn keyword objcType NSPoint NSPointPointer NSPointArray NSSize NSSizePointer NSSizeArray NSRect NSRectPointer NSRectArray NSEdgeInsets +syn keyword objcEnum NSRectEdge +syn keyword objcEnumValue NSMinXEdge NSMinYEdge NSMaxXEdge NSMaxYEdge +syn keyword objcEnumValue NSRectEdgeMinX NSRectEdgeMinY NSRectEdgeMaxX NSRectEdgeMaxY +syn keyword objcConstVar NSZeroPoint NSZeroSize NSZeroRect NSEdgeInsetsZero +syn keyword cType CGFloat CGPoint CGSize CGRect +syn keyword objcEnum NSAlignmentOptions +syn keyword objcEnumValue NSAlignMinXInward NSAlignMinYInward NSAlignMaxXInward NSAlignMaxYInward NSAlignWidthInward NSAlignHeightInward NSAlignMinXOutward NSAlignMinYOutward NSAlignMaxXOutward NSAlignMaxYOutward NSAlignWidthOutward NSAlignHeightOutward NSAlignMinXNearest NSAlignMinYNearest NSAlignMaxXNearest NSAlignMaxYNearest NSAlignWidthNearest NSAlignHeightNearest NSAlignRectFlipped NSAlignAllEdgesInward NSAlignAllEdgesOutward NSAlignAllEdgesNearest +" NSDecimal.h +syn keyword objcType NSDecimal +syn keyword objcEnum NSRoundingMode +syn keyword objcEnumValue NSRoundPlain NSRoundDown NSRoundUp NSRoundBankers +syn keyword objcEnum NSCalculationError +syn keyword objcEnumValue NSCalculationNoError NSCalculationLossOfPrecision NSCalculationUnderflow NSCalculationOverflow NSCalculationDivideByZero +syn keyword objcConstVar NSDecimalMaxSize NSDecimalNoScale +" NSDate.h +syn match objcClass /NSDate\s*\*/me=s+6,he=s+6 +syn keyword objcType NSTimeInterval +syn keyword objcNotificationValue NSSystemClockDidChangeNotification +syn keyword objcMacro NSTimeIntervalSince1970 +" NSZone.h +syn match objcType /NSZone\s*\*/me=s+6,he=s+6 +syn keyword objcEnumValue NSScannedOption NSCollectorDisabledOption +" NSError.h +syn match objcClass /NSError\s*\*/me=s+7,he=s+7 +syn keyword objcConstVar NSCocoaErrorDomain NSPOSIXErrorDomain NSOSStatusErrorDomain NSMachErrorDomain NSUnderlyingErrorKey NSLocalizedDescriptionKey NSLocalizedFailureReasonErrorKey NSLocalizedRecoverySuggestionErrorKey NSLocalizedRecoveryOptionsErrorKey NSRecoveryAttempterErrorKey NSHelpAnchorErrorKey NSStringEncodingErrorKey NSURLErrorKey NSFilePathErrorKey +" NSException.h +syn match objcClass /NSException\s*\*/me=s+11,he=s+11 +syn match objcClass /NSAssertionHandler\s*\*/me=s+18,he=s+18 +syn keyword objcType NSUncaughtExceptionHandler +syn keyword objcConstVar NSGenericException NSRangeException NSInvalidArgumentException NSInternalInconsistencyException NSMallocException NSObjectInaccessibleException NSObjectNotAvailableException NSDestinationInvalidException NSPortTimeoutException NSInvalidSendPortException NSInvalidReceivePortException NSPortSendException NSPortReceiveException NSOldStyleException +" NSNotification.h +syn match objcClass /NSNotification\s*\*/me=s+14,he=s+14 +syn match objcClass /NSNotificationCenter\s*\*/me=s+20,he=s+20 +" NSDistributedNotificationCenter.h +syn match objcClass /NSDistributedNotificationCenter\s*\*/me=s+31,he=s+31 +syn keyword objcConstVar NSLocalNotificationCenterType +syn keyword objcEnum NSNotificationSuspensionBehavior +syn keyword objcEnumValue NSNotificationSuspensionBehaviorDrop NSNotificationSuspensionBehaviorCoalesce NSNotificationSuspensionBehaviorHold NSNotificationSuspensionBehaviorHold NSNotificationSuspensionBehaviorDeliverImmediately +syn keyword objcEnumValue NSNotificationDeliverImmediately NSNotificationPostToAllSessions +syn keyword objcEnum NSDistributedNotificationOptions +syn keyword objcEnumValue NSDistributedNotificationDeliverImmediately NSDistributedNotificationPostToAllSessions +" NSNotificationQueue.h +syn match objcClass /NSNotificationQueue\s*\*/me=s+19,he=s+19 +syn keyword objcEnum NSPostingStyle +syn keyword objcEnumValue NSPostWhenIdle NSPostASAP NSPostNow +syn keyword objcEnum NSNotificationCoalescing +syn keyword objcEnumValue NSNotificationNoCoalescing NSNotificationCoalescingOnName NSNotificationCoalescingOnSender +" NSEnumerator.h +syn match objcClass /NSEnumerator\s*\*/me=s+12,he=s+12 +syn match objcClass /NSEnumerator<.*>\s*\*/me=s+12,he=s+12 contains=objcTypeInfoParams +syn keyword objcType NSFastEnumerationState +" NSIndexSet.h +syn match objcClass /NSIndexSet\s*\*/me=s+10,he=s+10 +syn match objcClass /NSMutableIndexSet\s*\*/me=s+17,he=s+17 +" NSCharecterSet.h +syn match objcClass /NSCharacterSet\s*\*/me=s+14,he=s+14 +syn match objcClass /NSMutableCharacterSet\s*\*/me=s+21,he=s+21 +syn keyword objcConstVar NSOpenStepUnicodeReservedBase +" NSURL.h +syn match objcClass /NSURL\s*\*/me=s+5,he=s+5 +syn keyword objcEnum NSURLBookmarkCreationOptions +syn keyword objcEnumValue NSURLBookmarkCreationPreferFileIDResolution NSURLBookmarkCreationMinimalBookmark NSURLBookmarkCreationSuitableForBookmarkFile NSURLBookmarkCreationWithSecurityScope NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess +syn keyword objcEnum NSURLBookmarkResolutionOptions +syn keyword objcEnumValue NSURLBookmarkResolutionWithoutUI NSURLBookmarkResolutionWithoutMounting NSURLBookmarkResolutionWithSecurityScope +syn keyword objcType NSURLBookmarkFileCreationOptions +syn keyword objcConstVar NSURLFileScheme NSURLKeysOfUnsetValuesKey +syn keyword objcConstVar NSURLNameKey NSURLLocalizedNameKey NSURLIsRegularFileKey NSURLIsDirectoryKey NSURLIsSymbolicLinkKey NSURLIsVolumeKey NSURLIsPackageKey NSURLIsApplicationKey NSURLApplicationIsScriptableKey NSURLIsSystemImmutableKey NSURLIsUserImmutableKey NSURLIsHiddenKey NSURLHasHiddenExtensionKey NSURLCreationDateKey NSURLContentAccessDateKey NSURLContentModificationDateKey NSURLAttributeModificationDateKey NSURLLinkCountKey NSURLParentDirectoryURLKey NSURLVolumeURLKey NSURLTypeIdentifierKey NSURLLocalizedTypeDescriptionKey NSURLLabelNumberKey NSURLLabelColorKey NSURLLocalizedLabelKey NSURLEffectiveIconKey NSURLCustomIconKey NSURLFileResourceIdentifierKey NSURLVolumeIdentifierKey NSURLPreferredIOBlockSizeKey NSURLIsReadableKey NSURLIsWritableKey NSURLIsExecutableKey NSURLFileSecurityKey NSURLIsExcludedFromBackupKey NSURLTagNamesKey NSURLPathKey NSURLIsMountTriggerKey NSURLGenerationIdentifierKey NSURLDocumentIdentifierKey NSURLAddedToDirectoryDateKey NSURLQuarantinePropertiesKey NSURLFileResourceTypeKey +syn keyword objcConstVar NSURLFileResourceTypeNamedPipe NSURLFileResourceTypeCharacterSpecial NSURLFileResourceTypeDirectory NSURLFileResourceTypeBlockSpecial NSURLFileResourceTypeRegular NSURLFileResourceTypeSymbolicLink NSURLFileResourceTypeSocket NSURLFileResourceTypeUnknown NSURLThumbnailDictionaryKey NSURLThumbnailKey NSThumbnail1024x1024SizeKey +syn keyword objcConstVar NSURLFileSizeKey NSURLFileAllocatedSizeKey NSURLTotalFileSizeKey NSURLTotalFileAllocatedSizeKey NSURLIsAliasFileKey NSURLFileProtectionKey NSURLFileProtectionNone NSURLFileProtectionComplete NSURLFileProtectionCompleteUnlessOpen NSURLFileProtectionCompleteUntilFirstUserAuthentication +syn keyword objcConstVar NSURLVolumeLocalizedFormatDescriptionKey NSURLVolumeTotalCapacityKey NSURLVolumeAvailableCapacityKey NSURLVolumeResourceCountKey NSURLVolumeSupportsPersistentIDsKey NSURLVolumeSupportsSymbolicLinksKey NSURLVolumeSupportsHardLinksKey NSURLVolumeSupportsJournalingKey NSURLVolumeIsJournalingKey NSURLVolumeSupportsSparseFilesKey NSURLVolumeSupportsZeroRunsKey NSURLVolumeSupportsCaseSensitiveNamesKey NSURLVolumeSupportsCasePreservedNamesKey NSURLVolumeSupportsRootDirectoryDatesKey NSURLVolumeSupportsVolumeSizesKey NSURLVolumeSupportsRenamingKey NSURLVolumeSupportsAdvisoryFileLockingKey NSURLVolumeSupportsExtendedSecurityKey NSURLVolumeIsBrowsableKey NSURLVolumeMaximumFileSizeKey NSURLVolumeIsEjectableKey NSURLVolumeIsRemovableKey NSURLVolumeIsInternalKey NSURLVolumeIsAutomountedKey NSURLVolumeIsLocalKey NSURLVolumeIsReadOnlyKey NSURLVolumeCreationDateKey NSURLVolumeURLForRemountingKey NSURLVolumeUUIDStringKey NSURLVolumeNameKey NSURLVolumeLocalizedNameKey +syn keyword objcConstVar NSURLIsUbiquitousItemKey NSURLUbiquitousItemHasUnresolvedConflictsKey NSURLUbiquitousItemIsDownloadedKey NSURLUbiquitousItemIsDownloadingKey NSURLUbiquitousItemIsUploadedKey NSURLUbiquitousItemIsUploadingKey NSURLUbiquitousItemPercentDownloadedKey NSURLUbiquitousItemPercentUploadedKey NSURLUbiquitousItemDownloadingStatusKey NSURLUbiquitousItemDownloadingErrorKey NSURLUbiquitousItemUploadingErrorKey NSURLUbiquitousItemDownloadRequestedKey NSURLUbiquitousItemContainerDisplayNameKey NSURLUbiquitousItemDownloadingStatusNotDownloaded NSURLUbiquitousItemDownloadingStatusDownloaded NSURLUbiquitousItemDownloadingStatusCurrent +"""""""""""" +" NSString.h +syn match objcClass /NSString\s*\*/me=s+8,he=s+8 +syn match objcClass /NSMutableString\s*\*/me=s+15,he=s+15 +syn keyword objcType unichar +syn keyword objcExceptionValue NSParseErrorException NSCharacterConversionException +syn keyword objcMacro NSMaximumStringLength +syn keyword objcEnum NSStringCompareOptions +syn keyword objcEnumValue NSCaseInsensitiveSearch NSLiteralSearch NSBackwardsSearch NSAnchoredSearch NSNumericSearch NSDiacriticInsensitiveSearch NSWidthInsensitiveSearch NSForcedOrderingSearch NSRegularExpressionSearch +syn keyword objcEnum NSStringEncoding +syn keyword objcEnumValue NSProprietaryStringEncoding +syn keyword objcEnumValue NSASCIIStringEncoding NSNEXTSTEPStringEncoding NSJapaneseEUCStringEncoding NSUTF8StringEncoding NSISOLatin1StringEncoding NSSymbolStringEncoding NSNonLossyASCIIStringEncoding NSShiftJISStringEncoding NSISOLatin2StringEncoding NSUnicodeStringEncoding NSWindowsCP1251StringEncoding NSWindowsCP1252StringEncoding NSWindowsCP1253StringEncoding NSWindowsCP1254StringEncoding NSWindowsCP1250StringEncoding NSISO2022JPStringEncoding NSMacOSRomanStringEncoding NSUTF16StringEncoding NSUTF16BigEndianStringEncoding NSUTF16LittleEndianStringEncoding NSUTF32StringEncoding NSUTF32BigEndianStringEncoding NSUTF32LittleEndianStringEncoding +syn keyword objcEnum NSStringEncodingConversionOptions +syn keyword objcEnumValue NSStringEncodingConversionAllowLossy NSStringEncodingConversionExternalRepresentation +syn keyword objcEnum NSStringEnumerationOptions +syn keyword objcEnumValue NSStringEnumerationByLines NSStringEnumerationByParagraphs NSStringEnumerationByComposedCharacterSequences NSStringEnumerationByWords NSStringEnumerationBySentences NSStringEnumerationReverse NSStringEnumerationSubstringNotRequired NSStringEnumerationLocalized +syn keyword objcConstVar NSStringTransformLatinToKatakana NSStringTransformLatinToHiragana NSStringTransformLatinToHangul NSStringTransformLatinToArabic NSStringTransformLatinToHebrew NSStringTransformLatinToThai NSStringTransformLatinToCyrillic NSStringTransformLatinToGreek NSStringTransformToLatin NSStringTransformMandarinToLatin NSStringTransformHiraganaToKatakana NSStringTransformFullwidthToHalfwidth NSStringTransformToXMLHex NSStringTransformToUnicodeName NSStringTransformStripCombiningMarks NSStringTransformStripDiacritics +syn keyword objcConstVar NSStringEncodingDetectionSuggestedEncodingsKey NSStringEncodingDetectionDisallowedEncodingsKey NSStringEncodingDetectionUseOnlySuggestedEncodingsKey NSStringEncodingDetectionAllowLossyKey NSStringEncodingDetectionFromWindowsKey NSStringEncodingDetectionLossySubstitutionKey NSStringEncodingDetectionLikelyLanguageKey +" NSAttributedString.h +syn match objcClass /NSAttributedString\s*\*/me=s+18,he=s+18 +syn match objcClass /NSMutableAttributedString\s*\*/me=s+25,he=s+25 +syn keyword objcEnum NSAttributedStringEnumerationOptions +syn keyword objcEnumValue NSAttributedStringEnumerationReverse NSAttributedStringEnumerationLongestEffectiveRangeNotRequired +" NSValue.h +syn match objcClass /NSValue\s*\*/me=s+7,he=s+7 +syn match objcClass /NSNumber\s*\*/me=s+8,he=s+8 +" NSDecimalNumber.h +syn match objcClass /NSDecimalNumber\s*\*/me=s+15,he=s+15 +syn match objcClass /NSDecimalNumberHandler\s*\*/me=s+22,he=s+22 +syn keyword objcExceptionValue NSDecimalNumberExactnessException NSDecimalNumberOverflowException NSDecimalNumberUnderflowException NSDecimalNumberDivideByZeroException +" NSData.h +syn match objcClass /NSData\s*\*/me=s+6,he=s+6 +syn match objcClass /NSMutableData\s*\*/me=s+13,he=s+13 +syn keyword objcEnum NSDataReadingOptions +syn keyword objcEnumValue NSDataReadingMappedIfSafe NSDataReadingUncached NSDataReadingMappedAlways NSDataReadingMapped NSMappedRead NSUncachedRead +syn keyword objcEnum NSDataWritingOptions +syn keyword objcEnumValue NSDataWritingAtomic NSDataWritingWithoutOverwriting NSDataWritingFileProtectionNone NSDataWritingFileProtectionComplete NSDataWritingFileProtectionCompleteUnlessOpen NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication NSDataWritingFileProtectionMask NSAtomicWrite +syn keyword objcEnum NSDataSearchOptions +syn keyword objcEnumValue NSDataSearchBackwards NSDataSearchAnchored +syn keyword objcEnum NSDataBase64EncodingOptions NSDataBase64DecodingOptions +syn keyword objcEnumValue NSDataBase64Encoding64CharacterLineLength NSDataBase64Encoding76CharacterLineLength NSDataBase64EncodingEndLineWithCarriageReturn NSDataBase64EncodingEndLineWithLineFeed NSDataBase64DecodingIgnoreUnknownCharacters +" NSArray.h +syn match objcClass /NSArray\s*\*/me=s+7,he=s+7 +syn match objcClass /NSArray<.*>\s*\*/me=s+7,he=s+7 contains=objcTypeInfoParams +syn match objcClass /NSMutableArray\s*\*/me=s+14,he=s+14 +syn match objcClass /NSMutableArray<.*>\s*\*/me=s+14,he=s+14 contains=objcTypeInfoParams +syn keyword objcEnum NSBinarySearchingOptions +syn keyword objcEnumValue NSBinarySearchingFirstEqual NSBinarySearchingLastEqual NSBinarySearchingInsertionIndex +" NSDictionary.h +syn match objcClass /NSDictionary\s*\*/me=s+12,he=s+12 +syn match objcClass /NSDictionary<.*>\s*\*/me=s+12,he=s+12 contains=objcTypeInfoParams +syn match objcClass /NSMutableDictionary\s*\*/me=s+19,he=s+19 +syn match objcClass /NSMutableDictionary<.*>\s*\*/me=s+19,he=s+19 contains=objcTypeInfoParams +" NSSet.h +syn match objcClass /NSSet\s*\*/me=s+5,me=s+5 +syn match objcClass /NSSet<.*>\s*\*/me=s+5,me=s+5 contains=objcTypeInfoParams +syn match objcClass /NSMutableSet\s*\*/me=s+12,me=s+12 +syn match objcClass /NSMutableSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams +syn match objcClass /NSCountedSet\s*\*/me=s+12,me=s+12 +syn match objcClass /NSCountedSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams +" NSOrderedSet.h +syn match objcClass /NSOrderedSet\s*\*/me=s+12,me=s+12 +syn match objcClass /NSOrderedSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams +syn match objcClass /NSMutableOrderedSet\s*\*/me=s+19,me=s+19 +syn match objcClass /NSMutableOrderedSet<.*>\s*\*/me=s+19,me=s+19 +""""""""""""""""""" +" NSPathUtilities.h +syn keyword objcEnum NSSearchPathDirectory +syn keyword objcEnumValue NSApplicationDirectory NSDemoApplicationDirectory NSDeveloperApplicationDirectory NSAdminApplicationDirectory NSLibraryDirectory NSDeveloperDirectory NSUserDirectory NSDocumentationDirectory NSDocumentDirectory NSCoreServiceDirectory NSAutosavedInformationDirectory NSDesktopDirectory NSCachesDirectory NSApplicationSupportDirectory NSDownloadsDirectory NSInputMethodsDirectory NSMoviesDirectory NSMusicDirectory NSPicturesDirectory NSPrinterDescriptionDirectory NSSharedPublicDirectory NSPreferencePanesDirectory NSApplicationScriptsDirectory NSItemReplacementDirectory NSAllApplicationsDirectory NSAllLibrariesDirectory NSTrashDirectory +syn keyword objcEnum NSSearchPathDomainMask +syn keyword objcEnumValue NSUserDomainMask NSLocalDomainMask NSNetworkDomainMask NSSystemDomainMask NSAllDomainsMask +" NSFileManger.h +syn match objcClass /NSFileManager\s*\*/me=s+13,he=s+13 +syn match objcClass /NSDirectoryEnumerator\s*\*/me=s+21,he=s+21 contains=objcTypeInfoParams +syn match objcClass /NSDirectoryEnumerator<.*>\s*\*/me=s+21,he=s+21 +syn keyword objcEnum NSVolumeEnumerationOptions +syn keyword objcEnumValue NSVolumeEnumerationSkipHiddenVolumes NSVolumeEnumerationProduceFileReferenceURLs +syn keyword objcEnum NSURLRelationship +syn keyword objcEnumValue NSURLRelationshipContains NSURLRelationshipSame NSURLRelationshipOther +syn keyword objcEnum NSFileManagerUnmountOptions +syn keyword objcEnumValue NSFileManagerUnmountAllPartitionsAndEjectDisk NSFileManagerUnmountWithoutUI +syn keyword objcConstVar NSFileManagerUnmountDissentingProcessIdentifierErrorKey +syn keyword objcEnum NSDirectoryEnumerationOptions +syn keyword objcEnumValue NSDirectoryEnumerationSkipsSubdirectoryDescendants NSDirectoryEnumerationSkipsPackageDescendants NSDirectoryEnumerationSkipsHiddenFiles +syn keyword objcEnum NSFileManagerItemReplacementOptions +syn keyword objcEnumValue NSFileManagerItemReplacementUsingNewMetadataOnly NSFileManagerItemReplacementWithoutDeletingBackupItem +syn keyword objcNotificationValue NSUbiquityIdentityDidChangeNotification +syn keyword objcConstVar NSFileType NSFileTypeDirectory NSFileTypeRegular NSFileTypeSymbolicLink NSFileTypeSocket NSFileTypeCharacterSpecial NSFileTypeBlockSpecial NSFileTypeUnknown NSFileSize NSFileModificationDate NSFileReferenceCount NSFileDeviceIdentifier NSFileOwnerAccountName NSFileGroupOwnerAccountName NSFilePosixPermissions NSFileSystemNumber NSFileSystemFileNumber NSFileExtensionHidden NSFileHFSCreatorCode NSFileHFSTypeCode NSFileImmutable NSFileAppendOnly NSFileCreationDate NSFileOwnerAccountID NSFileGroupOwnerAccountID NSFileBusy NSFileProtectionKey NSFileProtectionNone NSFileProtectionComplete NSFileProtectionCompleteUnlessOpen NSFileProtectionCompleteUntilFirstUserAuthentication NSFileSystemSize NSFileSystemFreeSize NSFileSystemNodes NSFileSystemFreeNodes +" NSFileHandle.h +syn match objcClass /NSFileHandle\s*\*/me=s+12,he=s+12 +syn keyword objcExceptionValue NSFileHandleOperationException +syn keyword objcNotificationValue NSFileHandleReadCompletionNotification NSFileHandleReadToEndOfFileCompletionNotification NSFileHandleConnectionAcceptedNotification NSFileHandleDataAvailableNotification NSFileHandleNotificationDataItem NSFileHandleNotificationFileHandleItem NSFileHandleNotificationMonitorModes +syn match objcClass /NSPipe\s*\*/me=s+6,he=s+6 +"""""""""""" +" NSLocale.h +syn match objcClass /NSLocale\s*\*/me=s+8,he=s+8 +syn keyword objcEnum NSLocaleLanguageDirection +syn keyword objcEnumValue NSLocaleLanguageDirectionUnknown NSLocaleLanguageDirectionLeftToRight NSLocaleLanguageDirectionRightToLeft NSLocaleLanguageDirectionTopToBottom NSLocaleLanguageDirectionBottomToTop +syn keyword objcNotificationValue NSCurrentLocaleDidChangeNotification +syn keyword objcConstVar NSLocaleIdentifier NSLocaleLanguageCode NSLocaleCountryCode NSLocaleScriptCode NSLocaleVariantCode NSLocaleExemplarCharacterSet NSLocaleCalendar NSLocaleCollationIdentifier NSLocaleUsesMetricSystem NSLocaleMeasurementSystem NSLocaleDecimalSeparator NSLocaleGroupingSeparator NSLocaleCurrencySymbol NSLocaleCurrencyCode NSLocaleCollatorIdentifier NSLocaleQuotationBeginDelimiterKey NSLocaleQuotationEndDelimiterKey NSLocaleAlternateQuotationBeginDelimiterKey NSLocaleAlternateQuotationEndDelimiterKey NSGregorianCalendar NSBuddhistCalendar NSChineseCalendar NSHebrewCalendar NSIslamicCalendar NSIslamicCivilCalendar NSJapaneseCalendar NSRepublicOfChinaCalendar NSPersianCalendar NSIndianCalendar NSISO8601Calendar +" NSFormatter.h +syn match objcClass /NSFormatter\s*\*/me=s+11,he=s+11 +syn keyword objcEnum NSFormattingContext NSFormattingUnitStyle +syn keyword objcEnumValue NSFormattingContextUnknown NSFormattingContextDynamic NSFormattingContextStandalone NSFormattingContextListItem NSFormattingContextBeginningOfSentence NSFormattingContextMiddleOfSentence NSFormattingUnitStyleShort NSFormattingUnitStyleMedium NSFormattingUnitStyleLong +" NSNumberFormatter.h +syn match objcClass /NSNumberFormatter\s*\*/me=s+17,he=s+17 +syn keyword objcEnum NSNumberFormatterStyle +syn keyword objcEnumValue NSNumberFormatterNoStyle NSNumberFormatterDecimalStyle NSNumberFormatterCurrencyStyle NSNumberFormatterPercentStyle NSNumberFormatterScientificStyle NSNumberFormatterSpellOutStyle NSNumberFormatterOrdinalStyle NSNumberFormatterCurrencyISOCodeStyle NSNumberFormatterCurrencyPluralStyle NSNumberFormatterCurrencyAccountingStyle +syn keyword objcEnum NSNumberFormatterBehavior +syn keyword objcEnumValue NSNumberFormatterBehaviorDefault NSNumberFormatterBehavior10_0 NSNumberFormatterBehavior10_4 +syn keyword objcEnum NSNumberFormatterPadPosition +syn keyword objcEnumValue NSNumberFormatterPadBeforePrefix NSNumberFormatterPadAfterPrefix NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadAfterSuffix +syn keyword objcEnum NSNumberFormatterRoundingMode +syn keyword objcEnumValue NSNumberFormatterRoundCeiling NSNumberFormatterRoundFloor NSNumberFormatterRoundDown NSNumberFormatterRoundUp NSNumberFormatterRoundHalfEven NSNumberFormatterRoundHalfDown NSNumberFormatterRoundHalfUp +" NSDateFormatter.h +syn match objcClass /NSDateFormatter\s*\*/me=s+15,he=s+15 +syn keyword objcEnum NSDateFormatterStyle +syn keyword objcEnumValue NSDateFormatterNoStyle NSDateFormatterShortStyle NSDateFormatterMediumStyle NSDateFormatterLongStyle NSDateFormatterFullStyle +syn keyword objcEnum NSDateFormatterBehavior +syn keyword objcEnumValue NSDateFormatterBehaviorDefault NSDateFormatterBehavior10_0 NSDateFormatterBehavior10_4 +" NSCalendar.h +syn match objcClass /NSCalendar\s*\*/me=s+10,he=s+10 +syn keyword objcConstVar NSCalendarIdentifierGregorian NSCalendarIdentifierBuddhist NSCalendarIdentifierChinese NSCalendarIdentifierCoptic NSCalendarIdentifierEthiopicAmeteMihret NSCalendarIdentifierEthiopicAmeteAlem NSCalendarIdentifierHebrew NSCalendarIdentifierISO8601 NSCalendarIdentifierIndian NSCalendarIdentifierIslamic NSCalendarIdentifierIslamicCivil NSCalendarIdentifierJapanese NSCalendarIdentifierPersian NSCalendarIdentifierRepublicOfChina NSCalendarIdentifierIslamicTabular NSCalendarIdentifierIslamicUmmAlQura +syn keyword objcEnum NSCalendarUnit +syn keyword objcEnumValue NSCalendarUnitEra NSCalendarUnitYear NSCalendarUnitMonth NSCalendarUnitDay NSCalendarUnitHour NSCalendarUnitMinute NSCalendarUnitSecond NSCalendarUnitWeekday NSCalendarUnitWeekdayOrdinal NSCalendarUnitQuarter NSCalendarUnitWeekOfMonth NSCalendarUnitWeekOfYear NSCalendarUnitYearForWeekOfYear NSCalendarUnitNanosecond NSCalendarUnitCalendar NSCalendarUnitTimeZone +syn keyword objcEnumValue NSEraCalendarUnit NSYearCalendarUnit NSMonthCalendarUnit NSDayCalendarUnit NSHourCalendarUnit NSMinuteCalendarUnit NSSecondCalendarUnit NSWeekCalendarUnit NSWeekdayCalendarUnit NSWeekdayOrdinalCalendarUnit NSQuarterCalendarUnit NSWeekOfMonthCalendarUnit NSWeekOfYearCalendarUnit NSYearForWeekOfYearCalendarUnit NSCalendarCalendarUnit NSTimeZoneCalendarUnit +syn keyword objcEnumValue NSWrapCalendarComponents NSUndefinedDateComponent NSDateComponentUndefined +syn match objcClass /NSDateComponents\s*\*/me=s+16,he=s+16 +syn keyword objcEnum NSCalendarOptions +syn keyword objcEnumValue NSCalendarWrapComponents NSCalendarMatchStrictly NSCalendarSearchBackwards NSCalendarMatchPreviousTimePreservingSmallerUnits NSCalendarMatchNextTimePreservingSmallerUnits NSCalendarMatchNextTime NSCalendarMatchFirst NSCalendarMatchLast +syn keyword objcConstVar NSCalendarDayChangedNotification +" NSTimeZone.h +syn match objcClass /NSTimeZone\s*\*/me=s+10,he=s+10 +syn keyword objcEnum NSTimeZoneNameStyle +syn keyword objcEnumValue NSTimeZoneNameStyleStandard NSTimeZoneNameStyleShortStandard NSTimeZoneNameStyleDaylightSaving NSTimeZoneNameStyleShortDaylightSaving NSTimeZoneNameStyleGeneric NSTimeZoneNameStyleShortGeneric +syn keyword objcNotificationValue NSSystemTimeZoneDidChangeNotification +""""""""""" +" NSCoder.h +syn match objcClass /NSCoder\s*\*/me=s+7,he=s+7 +" NSArchiver.h +syn match objcClass /NSArchiver\s*\*/me=s+10,he=s+10 +syn match objcClass /NSUnarchiver\s*\*/me=s+12,he=s+12 +syn keyword objcExceptionValue NSInconsistentArchiveException +" NSKeyedArchiver.h +syn match objcClass /NSKeyedArchiver\s*\*/me=s+15,he=s+15 +syn match objcClass /NSKeyedUnarchiver\s*\*/me=s+17,he=s+17 +syn keyword objcExceptionValue NSInvalidArchiveOperationException NSInvalidUnarchiveOperationException +syn keyword objcConstVar NSKeyedArchiveRootObjectKey +"""""""""""""""""" +" NSPropertyList.h +syn keyword objcEnum NSPropertyListMutabilityOptions +syn keyword objcEnumValue NSPropertyListImmutable NSPropertyListMutableContainers NSPropertyListMutableContainersAndLeaves +syn keyword objcEnum NSPropertyListFormat +syn keyword objcEnumValue NSPropertyListOpenStepFormat NSPropertyListXMLFormat_v1_0 NSPropertyListBinaryFormat_v1_0 +syn keyword objcType NSPropertyListReadOptions NSPropertyListWriteOptions +" NSUserDefaults.h +syn match objcClass /NSUserDefaults\s*\*/me=s+14,he=s+14 +syn keyword objcConstVar NSGlobalDomain NSArgumentDomain NSRegistrationDomain +syn keyword objcNotificationValue NSUserDefaultsDidChangeNotification +" NSBundle.h +syn match objcClass /NSBundle\s*\*/me=s+8,he=s+8 +syn keyword objcEnumValue NSBundleExecutableArchitectureI386 NSBundleExecutableArchitecturePPC NSBundleExecutableArchitectureX86_64 NSBundleExecutableArchitecturePPC64 +syn keyword objcNotificationValue NSBundleDidLoadNotification NSLoadedClasses NSBundleResourceRequestLowDiskSpaceNotification +syn keyword objcConstVar NSBundleResourceRequestLoadingPriorityUrgent +""""""""""""""""" +" NSProcessInfo.h +syn match objcClass /NSProcessInfo\s*\*/me=s+13,he=s+13 +syn keyword objcEnumValue NSWindowsNTOperatingSystem NSWindows95OperatingSystem NSSolarisOperatingSystem NSHPUXOperatingSystem NSMACHOperatingSystem NSSunOSOperatingSystem NSOSF1OperatingSystem +syn keyword objcType NSOperatingSystemVersion +syn keyword objcEnum NSActivityOptions NSProcessInfoThermalState +syn keyword objcEnumValue NSActivityIdleDisplaySleepDisabled NSActivityIdleSystemSleepDisabled NSActivitySuddenTerminationDisabled NSActivityAutomaticTerminationDisabled NSActivityUserInitiated NSActivityUserInitiatedAllowingIdleSystemSleep NSActivityBackground NSActivityLatencyCritical NSProcessInfoThermalStateNominal NSProcessInfoThermalStateFair NSProcessInfoThermalStateSerious NSProcessInfoThermalStateCritical +syn keyword objcNotificationValue NSProcessInfoThermalStateDidChangeNotification NSProcessInfoPowerStateDidChangeNotification +" NSTask.h +syn match objcClass /NSTask\s*\*/me=s+6,he=s+6 +syn keyword objcEnum NSTaskTerminationReason +syn keyword objcEnumValue NSTaskTerminationReasonExit NSTaskTerminationReasonUncaughtSignal +syn keyword objcNotificationValue NSTaskDidTerminateNotification +" NSThread.h +syn match objcClass /NSThread\s*\*/me=s+8,he=s+8 +syn keyword objcNotificationValue NSWillBecomeMultiThreadedNotification NSDidBecomeSingleThreadedNotification NSThreadWillExitNotification +" NSLock.h +syn match objcClass /NSLock\s*\*/me=s+6,he=s+6 +syn match objcClass /NSConditionLock\s*\*/me=s+15,he=s+15 +syn match objcClass /NSRecursiveLock\s*\*/me=s+15,he=s+15 +" NSDictributedLock +syn match objcClass /NSDistributedLock\s*\*/me=s+17,he=s+17 +" NSOperation.h +"""""""""""""""" +syn match objcClass /NSOperation\s*\*/me=s+11,he=s+11 +syn keyword objcEnum NSOperationQueuePriority +syn keyword objcEnumValue NSOperationQueuePriorityVeryLow NSOperationQueuePriorityLow NSOperationQueuePriorityNormal NSOperationQueuePriorityHigh NSOperationQueuePriorityVeryHigh +syn match objcClass /NSBlockOperation\s*\*/me=s+16,he=s+16 +syn match objcClass /NSInvocationOperation\s*\*/me=s+21,he=s+21 +syn keyword objcExceptionValue NSInvocationOperationVoidResultException NSInvocationOperationCancelledException +syn match objcClass /NSOperationQueue\s*\*/me=s+16,he=s+16 +syn keyword objcEnumValue NSOperationQueueDefaultMaxConcurrentOperationCount +" NSConnection.h +syn match objcClass /NSConnection\s*\*/me=s+12,he=s+12 +syn keyword objcConstVar NSConnectionReplyMode +syn keyword objcNotificationValue NSConnectionDidDieNotification NSConnectionDidInitializeNotification +syn keyword objcExceptionValue NSFailedAuthenticationException +" NSPort.h +syn match objcClass /NSPort\s*\*/me=s+6,he=s+6 +syn keyword objcType NSSocketNativeHandle +syn keyword objcNotificationValue NSPortDidBecomeInvalidNotification +syn match objcClass /NSMachPort\s*\*/me=s+10,he=s+10 +syn keyword objcEnum NSMachPortOptions +syn keyword objcEnumValue NSMachPortDeallocateNone NSMachPortDeallocateSendRight NSMachPortDeallocateReceiveRight +syn match objcClass /NSMessagePort\s*\*/me=s+13,he=s+13 +syn match objcClass /NSSocketPort\s*\*/me=s+12,he=s+12 +" NSPortMessage.h +syn match objcClass /NSPortMessage\s*\*/me=s+13,he=s+13 +" NSDistantObject.h +syn match objcClass /NSDistantObject\s*\*/me=s+15,he=s+15 +" NSPortNameServer.h +syn match objcClass /NSPortNameServer\s*\*/me=s+16,he=s+16 +syn match objcClass /NSMessagePortNameServer\s*\*/me=s+23,he=s+23 +syn match objcClass /NSSocketPortNameServer\s*\*/me=s+22,he=s+22 +" NSHost.h +syn match objcClass /NSHost\s*\*/me=s+6,he=s+6 +" NSInvocation.h +syn match objcClass /NSInvocation\s*\*/me=s+12,he=s+12 +" NSMethodSignature.h +syn match objcClass /NSMethodSignature\s*\*/me=s+17,he=s+17 +""""" +" NSScanner.h +syn match objcClass /NSScanner\s*\*/me=s+9,he=s+9 +" NSTimer.h +syn match objcClass /NSTimer\s*\*/me=s+7,he=s+7 +" NSAutoreleasePool.h +syn match objcClass /NSAutoreleasePool\s*\*/me=s+17,he=s+17 +" NSRunLoop.h +syn match objcClass /NSRunLoop\s*\*/me=s+9,he=s+9 +syn keyword objcConstVar NSDefaultRunLoopMode NSRunLoopCommonModes +" NSNull.h +syn match objcClass /NSNull\s*\*/me=s+6,he=s+6 +" NSProxy.h +syn match objcClass /NSProxy\s*\*/me=s+7,he=s+7 +" NSObject.h +syn match objcClass /NSObject\s*\*/me=s+8,he=s+8 + + +" NSCache.h +syn match objcClass /NSCache\s*\*/me=s+7,he=s+7 +syn match objcClass /NSCache<.*>\s*\*/me=s+7,he=s+7 contains=objcTypeInfoParams +" NSHashTable.h +syn match objcClass /NSHashTable\s*\*/me=s+11,he=s+11 +syn match objcClass /NSHashTable<.*>\s*\*/me=s+11,he=s+11 contains=objcTypeInfoParams +syn keyword objcConstVar NSHashTableStrongMemory NSHashTableZeroingWeakMemory NSHashTableCopyIn NSHashTableObjectPointerPersonality NSHashTableWeakMemory +syn keyword objcType NSHashTableOptions NSHashEnumerator NSHashTableCallBacks +syn keyword objcConstVar NSIntegerHashCallBacks NSNonOwnedPointerHashCallBacks NSNonRetainedObjectHashCallBacks NSObjectHashCallBacks NSOwnedObjectIdentityHashCallBacks NSOwnedPointerHashCallBacks NSPointerToStructHashCallBacks NSOwnedObjectIdentityHashCallBacks NSOwnedObjectIdentityHashCallBacks NSIntHashCallBacks +" NSMapTable.h +syn match objcClass /NSMapTable\s*\*/me=s+10,he=s+10 +syn match objcClass /NSMapTable<.*>\s*\*/me=s+10,he=s+10 contains=objcTypeInfoParams +syn keyword objcConstVar NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks +syn keyword objcConstVar NSMapTableStrongMemory NSMapTableZeroingWeakMemory NSMapTableCopyIn NSMapTableObjectPointerPersonality NSMapTableWeakMemory +syn keyword objcType NSMapTableOptions NSMapEnumerator NSMapTableKeyCallBacks NSMapTableValueCallBacks +syn keyword objcMacro NSNotAnIntMapKey NSNotAnIntegerMapKey NSNotAPointerMapKey +syn keyword objcConstVar NSIntegerMapKeyCallBacks NSNonOwnedPointerMapKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks NSNonRetainedObjectMapKeyCallBacks NSObjectMapKeyCallBacks NSOwnedPointerMapKeyCallBacks NSIntMapKeyCallBacks NSIntegerMapValueCallBacks NSNonOwnedPointerMapValueCallBacks NSObjectMapValueCallBacks NSNonRetainedObjectMapValueCallBacks NSOwnedPointerMapValueCallBacks NSIntMapValueCallBacks + +" NSPointerFunctions.h +syn match objcClass /NSPointerFunctions\s*\*/me=s+18,he=s+18 +syn keyword objcEnum NSPointerFunctionsOptions +syn keyword objcEnumValue NSPointerFunctionsStrongMemory NSPointerFunctionsZeroingWeakMemory NSPointerFunctionsOpaqueMemory NSPointerFunctionsMallocMemory NSPointerFunctionsMachVirtualMemory NSPointerFunctionsWeakMemory NSPointerFunctionsObjectPersonality NSPointerFunctionsOpaquePersonality NSPointerFunctionsObjectPointerPersonality NSPointerFunctionsCStringPersonality NSPointerFunctionsStructPersonality NSPointerFunctionsIntegerPersonality NSPointerFunctionsCopyIn + + +""" Default Highlighting +hi def link objcPreProcMacro cConstant +hi def link objcPrincipalType cType +hi def link objcUsefulTerm cConstant +hi def link objcImport cInclude +hi def link objcImported cString +hi def link objcObjDef cOperator +hi def link objcProtocol cOperator +hi def link objcProperty cOperator +hi def link objcIvarScope cOperator +hi def link objcInternalRep cOperator +hi def link objcException cOperator +hi def link objcThread cOperator +hi def link objcPool cOperator +hi def link objcModuleImport cOperator +hi def link objcSpecial cSpecial +hi def link objcString cString +hi def link objcHiddenArgument cStatement +hi def link objcBlocksQualifier cStorageClass +hi def link objcObjectLifetimeQualifier cStorageClass +hi def link objcTollFreeBridgeQualifier cStorageClass +hi def link objcRemoteMessagingQualifier cStorageClass +hi def link objcStorageClass cStorageClass +hi def link objcFastEnumKeyword cStatement +hi def link objcLiteralSyntaxNumber cNumber +hi def link objcLiteralSyntaxChar cCharacter +hi def link objcLiteralSyntaxSpecialChar cCharacter +hi def link objcLiteralSyntaxOp cOperator +hi def link objcDeclPropAccessorName cConstant +hi def link objcDeclPropAccessorType cConstant +hi def link objcDeclPropAssignSemantics cConstant +hi def link objcDeclPropAtomicity cConstant +hi def link objcDeclPropARC cConstant +hi def link objcDeclPropNullable cConstant +hi def link objcDeclPropNonnull cConstant +hi def link objcDeclPropNullUnspecified cConstant +hi def link objcDeclProcNullResettable cConstant +hi def link objcInstanceMethod Function +hi def link objcClassMethod Function +hi def link objcType cType +hi def link objcClass cType +hi def link objcTypeSpecifier cType +hi def link objcMacro cConstant +hi def link objcEnum cType +hi def link objcEnumValue cConstant +hi def link objcExceptionValue cConstant +hi def link objcNotificationValue cConstant +hi def link objcConstVar cConstant +hi def link objcTypeInfoParams Identifier + +""" Final step +let b:current_syntax = "objc" +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 sw=2 sts=2 diff --git a/git/usr/share/vim/vim92/syntax/objcpp.vim b/git/usr/share/vim/vim92/syntax/objcpp.vim new file mode 100644 index 0000000000000000000000000000000000000000..f11e3074445d9d6ff36ab7a95bda082d3de8170d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/objcpp.vim @@ -0,0 +1,20 @@ +" Vim syntax file +" Language: Objective C++ +" Maintainer: Kazunobu Kuriyama +" Ex-Maintainer: Anthony Hodsdon +" Last Change: 2007 Oct 29 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Read in C++ and ObjC syntax files +runtime! syntax/cpp.vim +unlet b:current_syntax +runtime! syntax/objc.vim + +syn keyword objCppNonStructure class template namespace transparent contained +syn keyword objCppNonStatement new delete friend using transparent contained + +let b:current_syntax = "objcpp" diff --git a/git/usr/share/vim/vim92/syntax/obse.vim b/git/usr/share/vim/vim92/syntax/obse.vim new file mode 100644 index 0000000000000000000000000000000000000000..4ff04281f340e7260d06b01b6f76a689d9d68974 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/obse.vim @@ -0,0 +1,3360 @@ +" Vim syntax file +" Language: Oblivion Language (obl) +" Original Creator: Ulthar Seramis +" Maintainer: Kat +" Latest Revision: 13 November 2022 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" obse is case insensitive +syntax case ignore + +" Statements {{{ +syn keyword obseStatement set let to skipwhite +" the second part needs to be separate as to not mess up the next group +syn match obseStatementTwo ":=" +" }}} + +" Regex matched objects {{{ +" these are matched with regex and thus must be set first +syn match obseNames '\w\+' +syn match obseScriptNameRegion '\i\+' contained +syn match obseVariable '\w*\S' contained +syn match obseReference '\zs\w\+\>\ze\.' +" }}} + +" Operators {{{ +syn match obseOperator "\v\*" +syn match obseOperator "\v\-" +syn match obseOperator "\v\+" +syn match obseOperator "\v\/" +syn match obseOperator "\v\^" +syn match obseOperator "\v\=" +syn match obseOperator "\v\>" +syn match obseOperator "\v\<" +syn match obseOperator "\v\!" +syn match obseOperator "\v\&" +syn match obseOperator "\v\|" +" }}} + +" Numbers {{{ +syn match obseInt '\d\+' +syn match obseInt '[-+]\d\+' +syn match obseFloat '\d\+\.\d*' +syn match obseFloat '[-+]\d\+\.\d*' +" }}} + +" Comments and strings {{{ +syn region obseComment start=";" end="$" keepend fold contains=obseToDo +syn region obseString start=/"/ end=/"/ keepend fold contains=obseStringFormatting +syn match obseStringFormatting "%%" contained +syn match obseStringFormatting "%a" contained +syn match obseStringFormatting "%B" contained +syn match obseStringFormatting "%b" contained +syn match obseStringFormatting "%c" contained +syn match obseStringFormatting "%e" contained +syn match obseStringFormatting "%g" contained +syn match obseStringFormatting "%i" contained +syn match obseStringFormatting "%k" contained +syn match obseStringFormatting "%n" contained +syn match obseStringFormatting "%p" contained +syn match obseStringFormatting "%ps" contained +syn match obseStringFormatting "%pp" contained +syn match obseStringFormatting "%po" contained +syn match obseStringFormatting "%q" contained +syn match obseStringFormatting "%r" contained +syn match obseStringFormatting "%v" contained +syn match obseStringFormatting "%x" contained +syn match obseStringFormatting "%z" contained +syn match obseStringFormatting "%{" contained +syn match obseStringFormatting "%}" contained +syn match obseStringFormatting "%\d*.\d*f" contained +syn match obseStringFormatting "% \d*.\d*f" contained +syn match obseStringFormatting "%-\d*.\d*f" contained +syn match obseStringFormatting "%+\d*.\d*f" contained +syn match obseStringFormatting "%\d*.\d*e" contained +syn match obseStringFormatting "%-\d*.\d*e" contained +syn match obseStringFormatting "% \d*.\d*e" contained +syn match obseStringFormatting "%+\d*.\d*e" contained +syn keyword obseToDo contained TODO todo Todo ToDo FIXME fixme NOTE note +" }}} + + +" Conditionals {{{ +syn match obseCondition "If" +syn match obseCondition "Eval" +syn match obseCondition "Return" +syn match obseCondition "EndIf" +syn match obseCondition "ElseIf" +syn match obseCondition "Else" +" }}} + +" Repeat loops {{{ +syn match obseRepeat "Label" +syn match obseRepeat "GoTo" +syn match obseRepeat "While" +syn match obseRepeat "Loop" +syn match obseRepeat "ForEach" +syn match obseRepeat "Break" +syn match obseRepeat "Continue" +" }}} + +" Basic Types {{{ +syn keyword obseTypes array_var float int long ref reference short string_var nextgroup=obseNames skipwhite +syn keyword obseOtherKey Player player playerRef playerREF PlayerRef PlayerREF +syn keyword obseScriptName ScriptName scriptname Scriptname scn nextgroup=obseScriptNameRegion skipwhite +syn keyword obseBlock Begin End +" }}} + +" Fold {{{ +setlocal foldmethod=syntax +syn cluster obseNoFold contains=obseComment,obseString +syn region obseFoldIfContainer + \ start="^\s*\" + \ end="^\s*\" + \ keepend extend + \ containedin=ALLBUT,@obseNoFold + \ contains=ALLBUT,obseScriptName,obseScriptNameRegion +syn region obseFoldIf + \ start="^\s*\" + \ end="^\s*\" + \ fold + \ keepend + \ contained containedin=obseFoldIfContainer + \ nextgroup=obseFoldElseIf,obseFoldElse + \ contains=TOP,NONE +syn region obseFoldElseIf + \ start="^\s*\" + \ end="^\s*\" + \ fold + \ keepend + \ contained containedin=obseFoldIfContainer + \ nextgroup=obseFoldElseIf,obseFoldElse + \ contains=TOP +syn region obseFoldElse + \ start="^\s*\" + \ end="^\s*\" + \ fold + \ keepend + \ contained containedin=obseFoldIfContainer + \ contains=TOP +syn region obseFoldWhile + \ start="^\s*\" + \ end="^\s*\" + \ fold + \ keepend extend + \ contains=TOP + \ containedin=ALLBUT,@obseNoFold +" fold for loops +syn region obseFoldFor + \ start="^\s*\" + \ end="^\s*\" + \ fold + \ keepend extend + \ contains=TOP + \ containedin=ALLBUT,@obseNoFold + \ nextgroup=obseVariable +" }}} + +" Skills and Attributes {{{ +syn keyword skillAttribute + \ Strength + \ Willpower + \ Speed + \ Personality + \ Intelligence + \ Agility + \ Endurance + \ Luck + \ Armorer + \ Athletics + \ Blade + \ Block + \ Blunt + \ HandToHand + \ HeavyArmor + \ Alchemy + \ Alteration + \ Conjuration + \ Destruction + \ Illusion + \ Mysticism + \ Restoration + \ Acrobatics + \ LightArmor + \ Marksman + \ Mercantile + \ Security + \ Sneak + \ Speechcraft +" }}} + +" Block Types {{{ +syn keyword obseBlockType + \ ExitGame + \ ExitToMainMenu + \ Function + \ GameMode + \ LoadGame + \ MenuMode + \ OnActivate + \ OnActorDrop + \ OnActorEquip + \ OnActorUnequip + \ OnAdd + \ OnAlarm + \ OnAlarmTrespass + \ OnAlarmVictim + \ OnAttack + \ OnBlock + \ OnBowAttack + \ OnClick + \ OnClose + \ OnCreatePotion + \ OnCreateSpell + \ OnDeath + \ OnDodge + \ OnDrinkPotion + \ OnDrop + \ OnEatIngredient + \ OnEnchant + \ OnEquip + \ OnFallImpact + \ OnHealthDamage + \ OnHit + \ OnHitWith + \ OnKnockout + \ OnLoad + \ OnMagicApply + \ OnMagicCast + \ OnMagicEffectHit + \ OnMagicEffectHit2 + \ OnMapMarkerAdd + \ OnMouseover + \ OnMurder + \ OnNewGame + \ OnOpen + \ OnPackageChange + \ OnPackageDone + \ OnPackageStart + \ OnQuestComplete + \ OnRecoil + \ OnRelease + \ OnReset + \ OnSaveIni + \ OnScriptedSkillUp + \ OnScrollCast + \ OnSell + \ OnSkillUp + \ OnSoulTrap + \ OnSpellCast + \ OnStagger + \ OnStartCombat + \ OnTrigger + \ OnTriggerActor + \ OnTriggerMob + \ OnUnequip + \ OnVampireFeed + \ OnWaterDive + \ OnWaterSurface + \ PostLoadGame + \ QQQ + \ SaveGame + \ ScriptEffectFinish + \ ScriptEffectStart + \ ScriptEffectUpdate +" }}} + +" Functions {{{ +" CS functions {{{ +syn keyword csFunction + \ Activate + \ AddAchievement + \ AddFlames + \ AddItem + \ AddScriptPackage + \ AddSpell + \ AddTopic + \ AdvSkill + \ AdvancePCLevel + \ AdvancePCSkill + \ Autosave + \ CanHaveFlames + \ CanPayCrimeGold + \ Cast + \ ClearOwnership + \ CloseCurrentOblivionGate + \ CloseOblivionGate + \ CompleteQuest + \ CreateFullActorCopy + \ DeleteFullActorCopy + \ Disable + \ DisableLinkedPathPoints + \ DisablePlayerControls + \ Dispel + \ DispelAllSpells + \ Drop + \ DropMe + \ DuplicateAllItems + \ DuplicateNPCStats + \ Enable + \ EnableFastTravel + \ EnableLinkedPathPoints + \ EnablePlayerControls + \ EquipItem + \ EssentialDeathReload + \ EvaluatePackage + \ ForceAV + \ ForceActorValue + \ ForceCloseOblivionGate + \ ForceFlee + \ ForceTakeCover + \ ForceWeather + \ GetAV + \ GetActionRef + \ GetActorValue + \ GetAlarmed + \ GetAmountSoldStolen + \ GetAngle + \ GetArmorRating + \ GetArmorRatingUpperBody + \ GetAttacked + \ GetBarterGold + \ GetBaseAV + \ GetBaseActorValue + \ GetButtonPressed + \ GetClassDefaultMatch + \ GetClothingValue + \ GetContainer + \ GetCrime + \ GetCrimeGold + \ GetCrimeKnown + \ GetCurrentAIPackage + \ GetCurrentAIProcedure + \ GetCurrentTime + \ GetCurrentWeatherPercent + \ GetDayOfWeek + \ GetDead + \ GetDeadCount + \ GetDestroyed + \ GetDetected + \ GetDetectionLevel + \ GetDisabled + \ GetDisposition + \ GetDistance + \ GetDoorDefaultOpen + \ GetEquipped + \ GetFactionRank + \ GetFactionRankDifference + \ GetFactionReaction + \ GetFatiguePercentage + \ GetForceRun + \ GetForceSneak + \ GetFriendHit + \ GetFurnitureMarkerID + \ GetGS + \ GetGameSetting + \ GetGlobalValue + \ GetGold + \ GetHeadingAngle + \ GetIdleDoneOnce + \ GetIgnoreFriendlyHits + \ GetInCell + \ GetInCellParam + \ GetInFaction + \ GetInSameCell + \ GetInWorldspace + \ GetInvestmentGold + \ GetIsAlerted + \ GetIsClass + \ GetIsClassDefault + \ GetIsCreature + \ GetIsCurrentPackage + \ GetIsCurrentWeather + \ GetIsGhost + \ GetIsID + \ GetIsPlayableRace + \ GetIsPlayerBirthsign + \ GetIsRace + \ GetIsReference + \ GetIsSex + \ GetIsUsedItem + \ GetIsUsedItemType + \ GetItemCount + \ GetKnockedState + \ GetLOS + \ GetLevel + \ GetLockLevel + \ GetLocked + \ GetMenuHasTrait + \ GetName + \ GetNoRumors + \ GetOffersServicesNow + \ GetOpenState + \ GetPCExpelled + \ GetPCFactionAttack + \ GetPCFactionMurder + \ GetPCFactionSteal + \ GetPCFactionSubmitAuthority + \ GetPCFame + \ GetPCInFaction + \ GetPCInfamy + \ GetPCIsClass + \ GetPCIsRace + \ GetPCIsSex + \ GetPCMiscStat + \ GetPCSleepHours + \ GetPackageTarget + \ GetParentRef + \ GetPersuasionNumber + \ GetPlayerControlsDisabled + \ GetPlayerHasLastRiddenHorse + \ GetPlayerInSEWorld + \ GetPos + \ GetQuestRunning + \ GetQuestVariable + \ GetRandomPercent + \ GetRestrained + \ GetScale + \ GetScriptVariable + \ GetSecondsPassed + \ GetSelf + \ GetShouldAttack + \ GetSitting + \ GetSleeping + \ GetStage + \ GetStageDone + \ GetStartingAngle + \ GetStartingPos + \ GetTalkedToPC + \ GetTalkedToPCParam + \ GetTimeDead + \ GetTotalPersuasionNumber + \ GetTrespassWarningLevel + \ GetUnconscious + \ GetUsedItemActivate + \ GetUsedItemLevel + \ GetVampire + \ GetWalkSpeed + \ GetWeaponAnimType + \ GetWeaponSkillType + \ GetWindSpeed + \ GoToJail + \ HasFlames + \ HasMagicEffect + \ HasVampireFed + \ IsActionRef + \ IsActor + \ IsActorAVictim + \ IsActorDetected + \ IsActorEvil + \ IsActorUsingATorch + \ IsActorsAIOff + \ IsAnimPlayer + \ IsCellOwner + \ IsCloudy + \ IsContinuingPackagePCNear + \ IsCurrentFurnitureObj + \ IsCurrentFurnitureRef + \ IsEssential + \ IsFacingUp + \ IsGuard + \ IsHorseStolen + \ IsIdlePlaying + \ IsInCombat + \ IsInDangerousWater + \ IsInInterior + \ IsInMyOwnedCell + \ IsLeftUp + \ IsOwner + \ IsPCAMurderer + \ IsPCSleeping + \ IsPlayerInJail + \ IsPlayerMovingIntoNewSpace + \ IsPlayersLastRiddenHorse + \ IsPleasant + \ IsRaining + \ IsRidingHorse + \ IsRunning + \ IsShieldOut + \ IsSneaking + \ IsSnowing + \ IsSpellTarget + \ IsSwimming + \ IsTalking + \ IsTimePassing + \ IsTorchOut + \ IsTrespassing + \ IsTurnArrest + \ IsWaiting + \ IsWeaponOut + \ IsXBox + \ IsYielding + \ Kill + \ KillActor + \ KillAllActors + \ Lock + \ Look + \ LoopGroup + \ Message + \ MessageBox + \ ModAV + \ ModActorValue + \ ModAmountSoldStolen + \ ModBarterGold + \ ModCrimeGold + \ ModDisposition + \ ModFactionRank + \ ModFactionReaction + \ ModPCAttribute + \ ModPCA + \ ModPCFame + \ ModPCInfamy + \ ModPCMiscStat + \ ModPCSkill + \ ModPCS + \ ModScale + \ MoveTo + \ MoveToMarker + \ PCB + \ PayFine + \ PayFineThief + \ PickIdle + \ PlaceAtMe + \ PlayBink + \ PlayGroup + \ PlayMagicEffectVisuals + \ PlayMagicShaderVisuals + \ PlaySound + \ PlaySound3D + \ PositionCell + \ PositionWorld + \ PreloadMagicEffect + \ PurgeCellBuffers + \ PushActorAway + \ RefreshTopicList + \ ReleaseWeatherOverride + \ RemoveAllItems + \ RemoveFlames + \ RemoveItem + \ RemoveMe + \ RemoveScriptPackage + \ RemoveSpell + \ Reset3DState + \ ResetFallDamageTimer + \ ResetHealth + \ ResetInterior + \ Resurrect + \ Rotate + \ SCAOnActor + \ SameFaction + \ SameFactionAsPC + \ SameRace + \ SameRaceAsPC + \ SameSex + \ SameSexAsPC + \ Say + \ SayTo + \ ScriptEffectElapsedSeconds + \ SelectPlayerSpell + \ SendTrespassAlarm + \ SetAV + \ SetActorAlpha + \ SetActorFullName + \ SetActorRefraction + \ SetActorValue + \ SetActorsAI + \ SetAlert + \ SetAllReachable + \ SetAllVisible + \ SetAngle + \ SetAtStart + \ SetBarterGold + \ SetCellFullName + \ SetCellOwnership + \ SetCellPublicFlag + \ SetClass + \ SetCrimeGold + \ SetDestroyed + \ SetDoorDefaultOpen + \ SetEssential + \ SetFactionRank + \ SetFactionReaction + \ SetForceRun + \ SetForceSneak + \ SetGhost + \ SetIgnoreFriendlyHits + \ SetInCharGen + \ SetInvestmentGold + \ SetItemValue + \ SetLevel + \ SetNoAvoidance + \ SetNoRumors + \ SetOpenState + \ SetOwnership + \ SetPCExpelled + \ SetPCFactionAttack + \ SetPCFactionMurder + \ SetPCFactionSteal + \ SetPCFactionSubmitAuthority + \ SetPCFame + \ SetPCInfamy + \ SetPCSleepHours + \ SetPackDuration + \ SetPlayerBirthsign + \ SetPlayerInSEWorld + \ SetPos + \ SetQuestObject + \ SetRestrained + \ SetRigidBodyMass + \ SetScale + \ SetSceneIsComplex + \ SetShowQuestItems + \ SetSize + \ SetStage + \ SetUnconscious + \ SetWeather + \ ShowBirthsignMenu + \ ShowClassMenu + \ ShowDialogSubtitles + \ ShowEnchantment + \ ShowMap + \ ShowRaceMenu + \ ShowSpellMaking + \ SkipAnim + \ StartCombat + \ StartConversation + \ StartQuest + \ StopCombat + \ StopCombatAlarmOnActor + \ StopLook + \ StopMagicEffectVisuals + \ StopMagicShaderVisuals + \ StopQuest + \ StopWaiting + \ StreamMusic + \ This + \ ToggleActorsAI + \ TrapUpdate + \ TriggerHitShader + \ UnequipItem + \ Unlock + \ VampireFeed + \ Wait + \ WakeUpPC + \ WhichServiceMenu + \ Yield + \ evp + \ pms + \ saa + \ sms +" }}} + +" OBSE Functions {{{ +syn keyword obseFunction + \ abs + \ acos + \ activate2 + \ actorvaluetocode + \ actorvaluetostring + \ actorvaluetostringc + \ addeffectitem + \ addeffectitemc + \ addfulleffectitem + \ addfulleffectitemc + \ additemns + \ addmagiceffectcounter + \ addmagiceffectcounterc + \ addmecounter + \ addmecounterc + \ addspellns + \ addtoleveledlist + \ ahammerkey + \ animpathincludes + \ appendtoname + \ asciitochar + \ asin + \ atan + \ atan2 + \ avstring + \ calcleveleditem + \ calclevitemnr + \ calclevitems + \ cancastpower + \ cancorpsecheck + \ canfasttravelfromworld + \ cantraveltomapmarker + \ ceil + \ chartoascii + \ clearactivequest + \ clearhotkey + \ clearleveledlist + \ clearownershipt + \ clearplayerslastriddenhorse + \ clickmenubutton + \ cloneform + \ closeallmenus + \ closetextinput + \ colvec + \ comparefemalebipedpath + \ comparefemalegroundpath + \ comparefemaleiconpath + \ compareiconpath + \ comparemalebipedpath + \ comparemalegroundpath + \ comparemaleiconpath + \ comparemodelpath + \ comparename + \ comparenames + \ comparescripts + \ con_cal + \ con_getinisetting + \ con_hairtint + \ con_loadgame + \ con_modwatershader + \ con_playerspellbook + \ con_quitgame + \ con_refreshini + \ con_runmemorypass + \ con_save + \ con_saveini + \ con_setcamerafov + \ con_setclipdist + \ con_setfog + \ con_setgamesetting + \ con_setgamma + \ con_sethdrparam + \ con_setimagespaceglow + \ con_setinisetting + \ con_setskyparam + \ con_settargetrefraction + \ con_settargetrefractionfire + \ con_sexchange + \ con_tcl + \ con_tfc + \ con_tgm + \ con_toggleai + \ con_togglecombatai + \ con_toggledetection + \ con_togglemapmarkers + \ con_togglemenus + \ con_waterdeepcolor + \ con_waterreflectioncolor + \ con_watershallowcolor + \ copyalleffectitems + \ copyeyes + \ copyfemalebipedpath + \ copyfemalegroundpath + \ copyfemaleiconpath + \ copyhair + \ copyiconpath + \ copyir + \ copymalebipedpath + \ copymalegroundpath + \ copymaleiconpath + \ copymodelpath + \ copyname + \ copyntheffectitem + \ copyrace + \ cos + \ cosh + \ createtempref + \ creaturehasnohead + \ creaturehasnoleftarm + \ creaturehasnomovement + \ creaturehasnorightarm + \ creaturenocombatinwater + \ creatureusesweaponandshield + \ dacos + \ dasin + \ datan + \ datan2 + \ dcos + \ dcosh + \ debugprint + \ deletefrominputtext + \ deletereference + \ disablecontrol + \ disablekey + \ disablemouse + \ dispatchevent + \ dispelnthactiveeffect + \ dispelnthae + \ dsin + \ dsinh + \ dtan + \ dtanh + \ enablecontrol + \ enablekey + \ enablemouse + \ equipitem2 + \ equipitem2ns + \ equipitemns + \ equipitemsilent + \ equipme + \ eval + \ evaluatepackage + \ eventhandlerexist + \ exp + \ factionhasspecialcombat + \ fileexists + \ floor + \ fmod + \ forcecolumnvector + \ forcerowvector + \ generateidentitymatrix + \ generaterotationmatrix + \ generatezeromatrix + \ getactiveeffectcasters + \ getactiveeffectcodes + \ getactiveeffectcount + \ getactivemenucomponentid + \ getactivemenufilter + \ getactivemenumode + \ getactivemenuobject + \ getactivemenuref + \ getactivemenuselection + \ getactivequest + \ getactiveuicomponentfullname + \ getactiveuicomponentid + \ getactiveuicomponentname + \ getactoralpha + \ getactorbaselevel + \ getactorlightamount + \ getactormaxlevel + \ getactormaxswimbreath + \ getactorminlevel + \ getactorpackages + \ getactorsoullevel + \ getactorvaluec + \ getalchmenuapparatus + \ getalchmenuingredient + \ getalchmenuingredientcount + \ getallies + \ getallmodlocaldata + \ getaltcontrol2 + \ getapbowench + \ getapench + \ getapparatustype + \ getappoison + \ getarmorar + \ getarmortype + \ getarrayvariable + \ getarrowprojectilebowenchantment + \ getarrowprojectileenchantment + \ getarrowprojectilepoison + \ getattackdamage + \ getavc + \ getavforbaseactor + \ getavforbaseactorc + \ getavmod + \ getavmodc + \ getavskillmastery + \ getavskillmasteryc + \ getbarteritem + \ getbarteritemquantity + \ getbaseactorvaluec + \ getbaseav2 + \ getbaseav2c + \ getbaseav3 + \ getbaseav3c + \ getbaseitems + \ getbaseobject + \ getbipediconpath + \ getbipedmodelpath + \ getbipedslotmask + \ getbirthsignspells + \ getbookcantbetaken + \ getbookisscroll + \ getbooklength + \ getbookskilltaught + \ getbooktext + \ getboundingbox + \ getboundingradius + \ getcalcalllevels + \ getcalceachincount + \ getcallingscript + \ getcellbehavesasexterior + \ getcellchanged + \ getcellclimate + \ getcelldetachtime + \ getcellfactionrank + \ getcelllighting + \ getcellmusictype + \ getcellnorthrotation + \ getcellresethours + \ getcellwatertype + \ getchancenone + \ getclass + \ getclassattribute + \ getclassmenuhighlightedclass + \ getclassmenuselectedclass + \ getclassskill + \ getclassskills + \ getclassspecialization + \ getclimatehasmasser + \ getclimatehassecunda + \ getclimatemoonphaselength + \ getclimatesunrisebegin + \ getclimatesunriseend + \ getclimatesunsetbegin + \ getclimatesunsetend + \ getclimatevolatility + \ getclosesound + \ getcloudspeedlower + \ getcloudspeedupper + \ getcombatspells + \ getcombatstyle + \ getcombatstyleacrobaticsdodgechance + \ getcombatstyleattackchance + \ getcombatstyleattackduringblockmult + \ getcombatstyleattacknotunderattackmult + \ getcombatstyleattackskillmodbase + \ getcombatstyleattackskillmodmult + \ getcombatstyleattackunderattackmult + \ getcombatstyleblockchance + \ getcombatstyleblocknotunderattackmult + \ getcombatstyleblockskillmodbase + \ getcombatstyleblockskillmodmult + \ getcombatstyleblockunderattackmult + \ getcombatstylebuffstandoffdist + \ getcombatstyledodgebacknotunderattackmult + \ getcombatstyledodgebacktimermax + \ getcombatstyledodgebacktimermin + \ getcombatstyledodgebackunderattackmult + \ getcombatstyledodgechance + \ getcombatstyledodgefatiguemodbase + \ getcombatstyledodgefatiguemodmult + \ getcombatstyledodgefwattackingmult + \ getcombatstyledodgefwnotattackingmult + \ getcombatstyledodgefwtimermax + \ getcombatstyledodgefwtimermin + \ getcombatstyledodgelrchance + \ getcombatstyledodgelrtimermax + \ getcombatstyledodgelrtimermin + \ getcombatstyledodgenotunderattackmult + \ getcombatstyledodgeunderattackmult + \ getcombatstyleencumberedspeedmodbase + \ getcombatstyleencumberedspeedmodmult + \ getcombatstylefleeingdisabled + \ getcombatstylegroupstandoffdist + \ getcombatstyleh2hbonustoattack + \ getcombatstyleholdtimermax + \ getcombatstyleholdtimermin + \ getcombatstyleidletimermax + \ getcombatstyleidletimermin + \ getcombatstyleignorealliesinarea + \ getcombatstylekobonustoattack + \ getcombatstylekobonustopowerattack + \ getcombatstylemeleealertok + \ getcombatstylepowerattackchance + \ getcombatstylepowerattackfatiguemodbase + \ getcombatstylepowerattackfatiguemodmult + \ getcombatstyleprefersranged + \ getcombatstylerangedstandoffdist + \ getcombatstylerangemaxmult + \ getcombatstylerangeoptimalmult + \ getcombatstylerejectsyields + \ getcombatstylerushattackchance + \ getcombatstylerushattackdistmult + \ getcombatstylestaggerbonustoattack + \ getcombatstylestaggerbonustopowerattack + \ getcombatstyleswitchdistmelee + \ getcombatstyleswitchdistranged + \ getcombatstylewillyield + \ getcombattarget + \ getcompletedquests + \ getcontainermenuview + \ getcontainerrespawns + \ getcontrol + \ getcreaturebasescale + \ getcreaturecombatskill + \ getcreatureflies + \ getcreaturemagicskill + \ getcreaturemodelpaths + \ getcreaturereach + \ getcreaturesoullevel + \ getcreaturesound + \ getcreaturesoundbase + \ getcreaturestealthskill + \ getcreatureswims + \ getcreaturetype + \ getcreaturewalks + \ getcrosshairref + \ getcurrentcharge + \ getcurrentclimateid + \ getcurrenteditorpackage + \ getcurrenteventname + \ getcurrenthealth + \ getcurrentpackage + \ getcurrentpackageprocedure + \ getcurrentquests + \ getcurrentregion + \ getcurrentregions + \ getcurrentscript + \ getcurrentsoullevel + \ getcurrentweatherid + \ getcursorpos + \ getdebugselection + \ getdescription + \ getdoorteleportrot + \ getdoorteleportx + \ getdoorteleporty + \ getdoorteleportz + \ geteditorid + \ geteditorsize + \ getenchantment + \ getenchantmentcharge + \ getenchantmentcost + \ getenchantmenttype + \ getenchmenubaseitem + \ getenchmenuenchitem + \ getenchmenusoulgem + \ getequipmentslot + \ getequipmentslotmask + \ getequippedcurrentcharge + \ getequippedcurrenthealth + \ getequippeditems + \ getequippedobject + \ getequippedtorchtimeleft + \ getequippedweaponpoison + \ geteyes + \ getfactions + \ getfalltimer + \ getfirstref + \ getfirstrefincell + \ getfogdayfar + \ getfogdaynear + \ getfognightfar + \ getfognightnear + \ getfollowers + \ getformfrommod + \ getformidstring + \ getfps + \ getfullgoldvalue + \ getgamedifficulty + \ getgameloaded + \ getgamerestarted + \ getgodmode + \ getgoldvalue + \ getgridstoload + \ getgroundsurfacematerial + \ gethair + \ gethaircolor + \ gethdrvalue + \ gethidesamulet + \ gethidesrings + \ gethighactors + \ gethorse + \ gethotkeyitem + \ geticonpath + \ getignoresresistance + \ getingredient + \ getingredientchance + \ getinputtext + \ getinventoryobject + \ getinvrefsforitem + \ getitems + \ getkeyname + \ getkeypress + \ getlastcreatedpotion + \ getlastcreatedspell + \ getlastenchanteditem + \ getlastsigilstonecreateditem + \ getlastsigilstoneenchanteditem + \ getlastss + \ getlastsscreated + \ getlastssitem + \ getlasttransactionitem + \ getlasttransactionquantity + \ getlastuniquecreatedpotion + \ getlastusedsigilstone + \ getlevcreaturetemplate + \ getleveledspells + \ getlevitembylevel + \ getlevitemindexbyform + \ getlevitemindexbylevel + \ getlightduration + \ getlightningfrequency + \ getlightradius + \ getlightrgb + \ getlinkeddoor + \ getloadedtypearray + \ getlocalgravity + \ getloopsound + \ getlowactors + \ getluckmodifiedskill + \ getmagiceffectareasound + \ getmagiceffectareasoundc + \ getmagiceffectbarterfactor + \ getmagiceffectbarterfactorc + \ getmagiceffectbasecost + \ getmagiceffectbasecostc + \ getmagiceffectboltsound + \ getmagiceffectboltsoundc + \ getmagiceffectcastingsound + \ getmagiceffectcastingsoundc + \ getmagiceffectchars + \ getmagiceffectcharsc + \ getmagiceffectcode + \ getmagiceffectcounters + \ getmagiceffectcountersc + \ getmagiceffectenchantfactor + \ getmagiceffectenchantfactorc + \ getmagiceffectenchantshader + \ getmagiceffectenchantshaderc + \ getmagiceffecthitshader + \ getmagiceffecthitshaderc + \ getmagiceffecthitsound + \ getmagiceffecthitsoundc + \ getmagiceffecticon + \ getmagiceffecticonc + \ getmagiceffectlight + \ getmagiceffectlightc + \ getmagiceffectmodel + \ getmagiceffectmodelc + \ getmagiceffectname + \ getmagiceffectnamec + \ getmagiceffectnumcounters + \ getmagiceffectnumcountersc + \ getmagiceffectotheractorvalue + \ getmagiceffectotheractorvaluec + \ getmagiceffectprojectilespeed + \ getmagiceffectprojectilespeedc + \ getmagiceffectresistvalue + \ getmagiceffectresistvaluec + \ getmagiceffectschool + \ getmagiceffectschoolc + \ getmagiceffectusedobject + \ getmagiceffectusedobjectc + \ getmagicitemeffectcount + \ getmagicitemtype + \ getmagicprojectilespell + \ getmapmarkers + \ getmapmarkertype + \ getmapmenumarkername + \ getmapmenumarkerref + \ getmaxav + \ getmaxavc + \ getmaxlevel + \ getmeareasound + \ getmeareasoundc + \ getmebarterc + \ getmebasecost + \ getmebasecostc + \ getmeboltsound + \ getmeboltsoundc + \ getmecastingsound + \ getmecastingsoundc + \ getmecounters + \ getmecountersc + \ getmeebarter + \ getmeebarterc + \ getmeenchant + \ getmeenchantc + \ getmeenchantshader + \ getmeenchantshaderc + \ getmehitshader + \ getmehitshaderc + \ getmehitsound + \ getmehitsoundc + \ getmeicon + \ getmeiconc + \ getmelight + \ getmelightc + \ getmemodel + \ getmemodelc + \ getmename + \ getmenamec + \ getmenufloatvalue + \ getmenumcounters + \ getmenumcountersc + \ getmenustringvalue + \ getmeotheractorvalue + \ getmeotheractorvaluec + \ getmeprojspeed + \ getmeprojspeedc + \ getmerchantcontainer + \ getmeresistvalue + \ getmeresistvaluec + \ getmeschool + \ getmeschoolc + \ getmessageboxtype + \ getmeusedobject + \ getmeusedobjectc + \ getmiddlehighactors + \ getmieffectcount + \ getminlevel + \ getmitype + \ getmodelpath + \ getmodindex + \ getmodlocaldata + \ getmousebuttonpress + \ getmousebuttonsswapped + \ getmpspell + \ getnextref + \ getnthacitveeffectmagnitude + \ getnthactiveeffectactorvalue + \ getnthactiveeffectbounditem + \ getnthactiveeffectcaster + \ getnthactiveeffectcode + \ getnthactiveeffectdata + \ getnthactiveeffectduration + \ getnthactiveeffectenchantobject + \ getnthactiveeffectmagicenchantobject + \ getnthactiveeffectmagicitem + \ getnthactiveeffectmagicitemindex + \ getnthactiveeffectmagnitude + \ getnthactiveeffectsummonref + \ getnthactiveeffecttimeelapsed + \ getnthaeav + \ getnthaebounditem + \ getnthaecaster + \ getnthaecode + \ getnthaedata + \ getnthaeduration + \ getnthaeindex + \ getnthaemagicenchantobject + \ getnthaemagicitem + \ getnthaemagnitude + \ getnthaesummonref + \ getnthaetime + \ getnthchildref + \ getnthdetectedactor + \ getntheffectitem + \ getntheffectitemactorvalue + \ getntheffectitemarea + \ getntheffectitemcode + \ getntheffectitemduration + \ getntheffectitemmagnitude + \ getntheffectitemname + \ getntheffectitemrange + \ getntheffectitemscript + \ getntheffectitemscriptname + \ getntheffectitemscriptschool + \ getntheffectitemscriptvisualeffect + \ getntheiarea + \ getntheiav + \ getntheicode + \ getntheiduration + \ getntheimagnitude + \ getntheiname + \ getntheirange + \ getntheiscript + \ getntheisschool + \ getntheisvisualeffect + \ getnthexplicitref + \ getnthfaction + \ getnthfactionrankname + \ getnthfollower + \ getnthlevitem + \ getnthlevitemcount + \ getnthlevitemlevel + \ getnthmagiceffectcounter + \ getnthmagiceffectcounterc + \ getnthmecounter + \ getnthmecounterc + \ getnthmodname + \ getnthpackage + \ getnthplayerspell + \ getnthracebonusskill + \ getnthracespell + \ getnthspell + \ getnumchildrefs + \ getnumdetectedactors + \ getnumericinisetting + \ getnumexplicitrefs + \ getnumfactions + \ getnumfollowers + \ getnumitems + \ getnumkeyspressed + \ getnumlevitems + \ getnumloadedmods + \ getnumloadedplugins + \ getnummousebuttonspressed + \ getnumpackages + \ getnumranks + \ getnumrefs + \ getnumrefsincell + \ getobjectcharge + \ getobjecthealth + \ getobjecttype + \ getobliviondirectory + \ getoblrevision + \ getoblversion + \ getopenkey + \ getopensound + \ getowner + \ getowningfactionrank + \ getowningfactionrequiredrank + \ getpackageallowfalls + \ getpackageallowswimming + \ getpackagealwaysrun + \ getpackagealwayssneak + \ getpackagearmorunequipped + \ getpackagecontinueifpcnear + \ getpackagedata + \ getpackagedefensivecombat + \ getpackagelocationdata + \ getpackagelockdoorsatend + \ getpackagelockdoorsatlocation + \ getpackagelockdoorsatstart + \ getpackagemustcomplete + \ getpackagemustreachlocation + \ getpackagenoidleanims + \ getpackageoffersservices + \ getpackageonceperday + \ getpackagescheduledata + \ getpackageskipfalloutbehavior + \ getpackagetargetdata + \ getpackageunlockdoorsatend + \ getpackageunlockdoorsatlocation + \ getpackageunlockdoorsatstart + \ getpackageusehorse + \ getpackageweaponsunequipped + \ getparentcell + \ getparentcellowner + \ getparentcellowningfactionrank + \ getparentcellowningfactionrequiredrank + \ getparentcellwaterheight + \ getparentworldspace + \ getpathnodelinkedref + \ getpathnodepos + \ getpathnodesinradius + \ getpathnodesinrect + \ getpcattributebonus + \ getpcattributebonusc + \ getpclastdroppeditem + \ getpclastdroppeditemref + \ getpclasthorse + \ getpclastloaddoor + \ getpcmajorskillups + \ getpcmovementspeedmodifier + \ getpcspelleffectivenessmodifier + \ getpctrainingsessionsused + \ getplayerbirthsign + \ getplayerskilladvances + \ getplayerskilladvancesc + \ getplayerskilluse + \ getplayerskillusec + \ getplayerslastactivatedloaddoor + \ getplayerslastriddenhorse + \ getplayerspell + \ getplayerspellcount + \ getpluginversion + \ getplyerspellcount + \ getprocesslevel + \ getprojectile + \ getprojectiledistancetraveled + \ getprojectilelifetime + \ getprojectilesource + \ getprojectilespeed + \ getprojectiletype + \ getqmcurrent + \ getqmitem + \ getqmmaximum + \ getqr + \ getquality + \ getquantitymenucurrentquantity + \ getquantitymenuitem + \ getquantitymenumaximumquantity + \ getrace + \ getraceattribute + \ getraceattributec + \ getracedefaulthair + \ getraceeyes + \ getracehairs + \ getracereaction + \ getracescale + \ getraceskillbonus + \ getraceskillbonusc + \ getracespellcount + \ getracevoice + \ getraceweight + \ getrawformidstring + \ getrefcount + \ getrefvariable + \ getrequiredskillexp + \ getrequiredskillexpc + \ getrider + \ getscript + \ getscriptactiveeffectindex + \ getselectedspells + \ getservicesmask + \ getsigilstoneuses + \ getskillgoverningattribute + \ getskillgoverningattributec + \ getskillspecialization + \ getskillspecializationc + \ getskilluseincrement + \ getskilluseincrementc + \ getsoulgemcapacity + \ getsoullevel + \ getsoundattenuation + \ getsoundplaying + \ getsourcemodindex + \ getspecialanims + \ getspellareaeffectignoreslos + \ getspellcount + \ getspelldisallowabsorbreflect + \ getspelleffectiveness + \ getspellexplodeswithnotarget + \ getspellhostile + \ getspellimmunetosilence + \ getspellmagickacost + \ getspellmasterylevel + \ getspellpcstart + \ getspells + \ getspellschool + \ getspellscripteffectalwaysapplies + \ getspelltype + \ getstageentries + \ getstageids + \ getstringgamesetting + \ getstringinisetting + \ getsundamage + \ getsunglare + \ gettailmodelpath + \ gettargets + \ gettelekinesisref + \ getteleportcell + \ getteleportcellname + \ getterrainheight + \ gettextinputcontrolpressed + \ gettextinputcursorpos + \ gettexturepath + \ gettilechildren + \ gettiletraits + \ gettimeleft + \ gettotalactiveeffectmagnitude + \ gettotalactiveeffectmagnitudec + \ gettotalaeabilitymagnitude + \ gettotalaeabilitymagnitudec + \ gettotalaealchemymagnitude + \ gettotalaealchemymagnitudec + \ gettotalaeallspellsmagnitude + \ gettotalaeallspellsmagnitudec + \ gettotalaediseasemagnitude + \ gettotalaediseasemagnitudec + \ gettotalaeenchantmentmagnitude + \ gettotalaeenchantmentmagnitudec + \ gettotalaelesserpowermagnitude + \ gettotalaelesserpowermagnitudec + \ gettotalaemagnitude + \ gettotalaemagnitudec + \ gettotalaenonabilitymagnitude + \ gettotalaenonabilitymagnitudec + \ gettotalaepowermagnitude + \ gettotalaepowermagnitudec + \ gettotalaespellmagnitude + \ gettotalaespellmagnitudec + \ gettotalpcattributebonus + \ gettrainerlevel + \ gettrainerskill + \ gettransactioninfo + \ gettransdelta + \ gettravelhorse + \ getusedpowers + \ getusertime + \ getvariable + \ getvelocity + \ getverticalvelocity + \ getwaterheight + \ getwatershader + \ getweahtercloudspeedupper + \ getweaponreach + \ getweaponspeed + \ getweapontype + \ getweatherclassification + \ getweathercloudspeedlower + \ getweathercloudspeedupper + \ getweathercolor + \ getweatherfogdayfar + \ getweatherfogdaynear + \ getweatherfognightfar + \ getweatherfognightnear + \ getweatherhdrvalue + \ getweatherlightningfrequency + \ getweatheroverride + \ getweathersundamage + \ getweathersunglare + \ getweathertransdelta + \ getweatherwindspeed + \ getweight + \ getworldparentworld + \ getworldspaceparentworldspace + \ globalvariableexists + \ hammerkey + \ hasbeenpickedup + \ haseffectshader + \ haslowlevelprocessing + \ hasmodel + \ hasname + \ hasnopersuasion + \ hasspell + \ hastail + \ hasvariable + \ haswater + \ holdkey + \ iconpathincludes + \ identitymat + \ incrementplayerskilluse + \ incrementplayerskillusec + \ ininvertfasttravel + \ insertininputtext + \ isactivatable + \ isactivator + \ isactorrespawning + \ isalchemyitem + \ isammo + \ isanimgroupplaying + \ isanimplaying + \ isapparatus + \ isarmor + \ isattacking + \ isautomaticdoor + \ isbartermenuactive + \ isbipediconpathvalid + \ isbipedmodelpathvalid + \ isblocking + \ isbook + \ iscantwait + \ iscasting + \ iscellpublic + \ isclassattribute + \ isclassattributec + \ isclassskill + \ isclassskillc + \ isclonedform + \ isclothing + \ isconsoleopen + \ iscontainer + \ iscontrol + \ iscontroldisabled + \ iscontrolpressed + \ iscreature + \ iscreaturebiped + \ isdigit + \ isdiseased + \ isdodging + \ isdoor + \ isequipped + \ isfactionevil + \ isfactionhidden + \ isfemale + \ isflora + \ isflying + \ isfood + \ isformvalid + \ isfurniture + \ isgamemessagebox + \ isglobalcollisiondisabled + \ isharvested + \ ishiddendoor + \ isiconpathvalid + \ isinair + \ isingredient + \ isinoblivion + \ isjumping + \ iskey + \ iskeydisabled + \ iskeypressed + \ iskeypressed2 + \ iskeypressed3 + \ isletter + \ islight + \ islightcarriable + \ isloaddoor + \ ismagiceffectcanrecover + \ ismagiceffectcanrecoverc + \ ismagiceffectdetrimental + \ ismagiceffectdetrimentalc + \ ismagiceffectforenchanting + \ ismagiceffectforenchantingc + \ ismagiceffectforspellmaking + \ ismagiceffectforspellmakingc + \ ismagiceffecthostile + \ ismagiceffecthostilec + \ ismagiceffectmagnitudepercent + \ ismagiceffectmagnitudepercentc + \ ismagiceffectonselfallowed + \ ismagiceffectonselfallowedc + \ ismagiceffectontargetallowed + \ ismagiceffectontargetallowedc + \ ismagiceffectontouchallowed + \ ismagiceffectontouchallowedc + \ ismagicitemautocalc + \ ismajor + \ ismajorc + \ ismajorref + \ ismapmarkervisible + \ ismecanrecover + \ ismecanrecoverc + \ ismedetrimental + \ ismedetrimentalc + \ ismeforenchanting + \ ismeforenchantingc + \ ismeforspellmaking + \ ismeforspellmakingc + \ ismehostile + \ ismehostilec + \ ismemagnitudepercent + \ ismemagnitudepercentc + \ ismeonselfallowed + \ ismeonselfallowedc + \ ismeontargetallowed + \ ismeontargetallowedc + \ ismeontouchallowed + \ ismeontouchallowedc + \ isminimalusedoor + \ ismiscitem + \ ismodelpathvalid + \ ismodloaded + \ ismovingbackward + \ ismovingforward + \ ismovingleft + \ ismovingright + \ isnaked + \ isnthactiveeffectapplied + \ isntheffectitemscripted + \ isntheffectitemscripthostile + \ isntheishostile + \ isobliviongate + \ isoblivioninterior + \ isoblivionworld + \ isofflimits + \ isonground + \ ispathnodedisabled + \ ispcleveloffset + \ ispersistent + \ isplayable + \ isplayable2 + \ isplugininstalled + \ ispoison + \ ispotion + \ ispowerattacking + \ isprintable + \ ispunctuation + \ isquestcomplete + \ isquestitem + \ isracebonusskill + \ isracebonusskillc + \ israceplayable + \ isrecoiling + \ isrefdeleted + \ isreference + \ isrefessential + \ isscripted + \ issigilstone + \ issoulgem + \ isspellhostile + \ isstaggered + \ issummonable + \ istaken + \ istextinputinuse + \ isthirdperson + \ isturningleft + \ isturningright + \ isunderwater + \ isunsaferespawns + \ isuppercase + \ isweapon + \ leftshift + \ linktodoor + \ loadgameex + \ log + \ log10 + \ logicaland + \ logicalnot + \ logicalor + \ logicalxor + \ magiceffectcodefromchars + \ magiceffectfromchars + \ magiceffectfromcode + \ magiceffectfxpersists + \ magiceffectfxpersistsc + \ magiceffecthasnoarea + \ magiceffecthasnoareac + \ magiceffecthasnoduration + \ magiceffecthasnodurationc + \ magiceffecthasnohiteffect + \ magiceffecthasnohiteffectc + \ magiceffecthasnoingredient + \ magiceffecthasnoingredientc + \ magiceffecthasnomagnitude + \ magiceffecthasnomagnitudec + \ magiceffectusesarmor + \ magiceffectusesarmorc + \ magiceffectusesattribute + \ magiceffectusesattributec + \ magiceffectusescreature + \ magiceffectusescreaturec + \ magiceffectusesotheractorvalue + \ magiceffectusesotheractorvaluec + \ magiceffectusesskill + \ magiceffectusesskillc + \ magiceffectusesweapon + \ magiceffectusesweaponc + \ magichaseffect + \ magichaseffectc + \ magicitemhaseffect + \ magicitemhaseffectcode + \ magicitemhaseffectcount + \ magicitemhaseffectcountc + \ magicitemhaseffectcountcode + \ magicitemhaseffectitemscript + \ matadd + \ matchpotion + \ matinv + \ matmult + \ matrixadd + \ matrixdeterminant + \ matrixinvert + \ matrixmultiply + \ matrixrref + \ matrixscale + \ matrixsubtract + \ matrixtrace + \ matrixtranspose + \ matscale + \ matsubtract + \ mecodefromchars + \ mefxpersists + \ mefxpersistsc + \ mehasnoarea + \ mehasnoareac + \ mehasnoduration + \ mehasnodurationc + \ mehasnohiteffect + \ mehasnohiteffectc + \ mehasnoingredient + \ mehasnoingredientc + \ mehasnomagnitude + \ mehasnomagnitudec + \ menuholdkey + \ menumode + \ menureleasekey + \ menutapkey + \ messageboxex + \ messageex + \ meusesarmor + \ meusesarmorc + \ meusesattribute + \ meusesattributec + \ meusescreature + \ meusescreaturec + \ meusesotheractorvalue + \ meusesotheractorvaluec + \ meusesskill + \ meusesskillc + \ meusesweapon + \ meusesweaponc + \ modactorvalue2 + \ modactorvaluec + \ modarmorar + \ modattackdamage + \ modav2 + \ modavc + \ modavmod + \ modavmodc + \ modcurrentcharge + \ modelpathincludes + \ modenchantmentcharge + \ modenchantmentcost + \ modequippedcurrentcharge + \ modequippedcurrenthealth + \ modfemalebipedpath + \ modfemalegroundpath + \ modfemaleiconpath + \ modgoldvalue + \ modiconpath + \ modlocaldataexists + \ modmalebipedpath + \ modmalegroundpath + \ modmaleiconpath + \ modmodelpath + \ modname + \ modnthactiveeffectmagnitude + \ modnthaemagnitude + \ modntheffectitemarea + \ modntheffectitemduration + \ modntheffectitemmagnitude + \ modntheffectitemscriptname + \ modntheiarea + \ modntheiduration + \ modntheimagnitude + \ modntheisname + \ modobjectcharge + \ modobjecthealth + \ modpcmovementspeed + \ modpcspelleffectiveness + \ modplayerskillexp + \ modplayerskillexpc + \ modquality + \ modsigilstoneuses + \ modspellmagickacost + \ modweaponreach + \ modweaponspeed + \ modweight + \ movemousex + \ movemousey + \ movetextinputcursor + \ nameincludes + \ numtohex + \ offersapparatus + \ offersarmor + \ offersbooks + \ offersclothing + \ offersingredients + \ offerslights + \ offersmagicitems + \ offersmiscitems + \ offerspotions + \ offersrecharging + \ offersrepair + \ offersservicesc + \ offersspells + \ offerstraining + \ offersweapons + \ oncontroldown + \ onkeydown + \ opentextinput + \ outputlocalmappicturesoverride + \ overrideactorswimbreath + \ parentcellhaswater + \ pathedgeexists + \ playidle + \ pow + \ print + \ printactivetileinfo + \ printc + \ printd + \ printtileinfo + \ printtoconsole + \ questexists + \ racos + \ rand + \ rasin + \ ratan + \ ratan2 + \ rcos + \ rcosh + \ refreshcurrentclimate + \ releasekey + \ removealleffectitems + \ removebasespell + \ removeenchantment + \ removeequippedweaponpoison + \ removeeventhandler + \ removefromleveledlist + \ removeitemns + \ removelevitembylevel + \ removemeir + \ removemodlocaldata + \ removentheffect + \ removentheffectitem + \ removenthlevitem + \ removenthmagiceffectcounter + \ removenthmagiceffectcounterc + \ removenthmecounter + \ removenthmecounterc + \ removescript + \ removescr + \ removespellns + \ resetallvariables + \ resetfalrior + \ resolvemodindex + \ rightshift + \ rotmat + \ rowvec + \ rsin + \ rsinh + \ rtan + \ rtanh + \ runbatchscript + \ runscriptline + \ saespassalarm + \ setactivequest + \ setactrfullname + \ setactormaxswimbreath + \ setactorrespawns + \ setactorswimbreath + \ setactorvaluec + \ setalvisible + \ setaltcontrol2 + \ setapparatustype + \ setarmorar + \ setarmortype + \ setarrowprojectilebowenchantment + \ setarrowprojectileenchantment + \ setarrowprojectilepoison + \ setattackdamage + \ setavc + \ setavmod + \ setavmodc + \ setbaseform + \ setbipediconpathex + \ setbipedmodelpathex + \ setbipedslotmask + \ setbookcantbetaken + \ setbookisscroll + \ setbookskilltaught + \ setbuttonpressed + \ setcalcalllevels + \ setcamerafov2 + \ setcancastpower + \ setcancorpsecheck + \ setcanfasttravelfromworld + \ setcantraveltomapmarker + \ setcantwait + \ setcellbehavesasexterior + \ setcellclimate + \ setcellhaswater + \ setcellispublic + \ setcelllighting + \ setcellmusictype + \ setcellublicflag + \ setcellresethours + \ setcellwaterheight + \ setcellwatertype + \ setchancenone + \ setclassattribute + \ setclassattributec + \ setclassskills + \ setclassskills2 + \ setclassspecialization + \ setclimatehasmasser + \ setclimatehasmassser + \ setclimatehassecunda + \ setclimatemoonphaselength + \ setclimatesunrisebegin + \ setclimatesunriseend + \ setclimatesunsetbegin + \ setclimatesunsetend + \ setclimatevolatility + \ setclosesound + \ setcloudspeedlower + \ setcloudspeedupper + \ setcombatstyle + \ setcombatstyleacrobaticsdodgechance + \ setcombatstyleattackchance + \ setcombatstyleattackduringblockmult + \ setcombatstyleattacknotunderattackmult + \ setcombatstyleattackskillmodbase + \ setcombatstyleattackskillmodmult + \ setcombatstyleattackunderattackmult + \ setcombatstyleblockchance + \ setcombatstyleblocknotunderattackmult + \ setcombatstyleblockskillmodbase + \ setcombatstyleblockskillmodmult + \ setcombatstyleblockunderattackmult + \ setcombatstylebuffstandoffdist + \ setcombatstyledodgebacknotunderattackmult + \ setcombatstyledodgebacktimermax + \ setcombatstyledodgebacktimermin + \ setcombatstyledodgebackunderattackmult + \ setcombatstyledodgechance + \ setcombatstyledodgefatiguemodbase + \ setcombatstyledodgefatiguemodmult + \ setcombatstyledodgefwattackingmult + \ setcombatstyledodgefwnotattackingmult + \ setcombatstyledodgefwtimermax + \ setcombatstyledodgefwtimermin + \ setcombatstyledodgelrchance + \ setcombatstyledodgelrtimermax + \ setcombatstyledodgelrtimermin + \ setcombatstyledodgenotunderattackmult + \ setcombatstyledodgeunderattackmult + \ setcombatstyleencumberedspeedmodbase + \ setcombatstyleencumberedspeedmodmult + \ setcombatstylefleeingdisabled + \ setcombatstylegroupstandoffdist + \ setcombatstyleh2hbonustoattack + \ setcombatstyleholdtimermax + \ setcombatstyleholdtimermin + \ setcombatstyleidletimermax + \ setcombatstyleidletimermin + \ setcombatstyleignorealliesinarea + \ setcombatstylekobonustoattack + \ setcombatstylekobonustopowerattack + \ setcombatstylemeleealertok + \ setcombatstylepowerattackchance + \ setcombatstylepowerattackfatiguemodbase + \ setcombatstylepowerattackfatiguemodmult + \ setcombatstyleprefersranged + \ setcombatstylerangedstandoffdist + \ setcombatstylerangemaxmult + \ setcombatstylerangeoptimalmult + \ setcombatstylerejectsyields + \ setcombatstylerushattackchance + \ setcombatstylerushattackdistmult + \ setcombatstylestaggerbonustoattack + \ setcombatstylestaggerbonustopowerattack + \ setcombatstyleswitchdistmelee + \ setcombatstyleswitchdistranged + \ setcombatstylewillyield + \ setcontainerrespawns + \ setcontrol + \ setcreatureskill + \ setcreaturesoundbase + \ setcreaturetype + \ setcurrentcharge + \ setcurrenthealth + \ setcurrentsoullevel + \ setdebugmode + \ setdescription + \ setdetectionstate + \ setdisableglobalcollision + \ setdoorteleport + \ setenchantment + \ setenchantmentcharge + \ setenchantmentcost + \ setenchantmenttype + \ setequipmentslot + \ setequippedcurrentcharge + \ setequippedcurrenthealth + \ setequippedweaponpoison + \ seteventhandler + \ seteyes + \ setfactionevil + \ setfactionhasspecialcombat + \ setfactionhidden + \ setfactonreaction + \ setfactionspecialcombat + \ setfemale + \ setfemalebipedpath + \ setfemalegroundpath + \ setfemaleiconpath + \ setflycameraspeedmult + \ setfogdayfar + \ setfogdaynear + \ setfognightfar + \ setfognightnear + \ setforcsneak + \ setfunctionvalue + \ setgamedifficulty + \ setgoldvalue + \ setgoldvalue_t + \ setgoldvaluet + \ sethair + \ setharvested + \ sethasbeenpickedup + \ sethdrvalue + \ sethidesamulet + \ sethidesrings + \ sethotkeyitem + \ seticonpath + \ setignoresresistance + \ setingredient + \ setingredientchance + \ setinputtext + \ setinvertfasttravel + \ setisautomaticdoor + \ setiscontrol + \ setisfood + \ setishiddendoor + \ setisminimalusedoor + \ setisobliviongate + \ setisplayable + \ setlevcreaturetemplate + \ setlightduration + \ setlightningfrequency + \ setlightradius + \ setlightrgb + \ setlocalgravity + \ setlocalgravityvector + \ setloopsound + \ setlowlevelprocessing + \ setmaagiceffectuseactorvalue + \ setmagiceffectareasound + \ setmagiceffectareasoundc + \ setmagiceffectbarterfactor + \ setmagiceffectbarterfactorc + \ setmagiceffectbasecost + \ setmagiceffectbasecostc + \ setmagiceffectboltsound + \ setmagiceffectboltsoundc + \ setmagiceffectcanrecover + \ setmagiceffectcanrecoverc + \ setmagiceffectcastingsound + \ setmagiceffectcastingsoundc + \ setmagiceffectcounters + \ setmagiceffectcountersc + \ setmagiceffectenchantfactor + \ setmagiceffectenchantfactorc + \ setmagiceffectenchantshader + \ setmagiceffectenchantshaderc + \ setmagiceffectforenchanting + \ setmagiceffectforenchantingc + \ setmagiceffectforspellmaking + \ setmagiceffectforspellmakingc + \ setmagiceffectfxpersists + \ setmagiceffectfxpersistsc + \ setmagiceffecthitshader + \ setmagiceffecthitshaderc + \ setmagiceffecthitsound + \ setmagiceffecthitsoundc + \ setmagiceffecticon + \ setmagiceffecticonc + \ setmagiceffectisdetrimental + \ setmagiceffectisdetrimentalc + \ setmagiceffectishostile + \ setmagiceffectishostilec + \ setmagiceffectlight + \ setmagiceffectlightc + \ setmagiceffectmagnitudepercent + \ setmagiceffectmagnitudepercentc + \ setmagiceffectmodel + \ setmagiceffectmodelc + \ setmagiceffectname + \ setmagiceffectnamec + \ setmagiceffectnoarea + \ setmagiceffectnoareac + \ setmagiceffectnoduration + \ setmagiceffectnodurationc + \ setmagiceffectnohiteffect + \ setmagiceffectnohiteffectc + \ setmagiceffectnoingredient + \ setmagiceffectnoingredientc + \ setmagiceffectnomagnitude + \ setmagiceffectnomagnitudec + \ setmagiceffectonselfallowed + \ setmagiceffectonselfallowedc + \ setmagiceffectontargetallowed + \ setmagiceffectontargetallowedc + \ setmagiceffectontouchallowed + \ setmagiceffectontouchallowedc + \ setmagiceffectotheractorvalue + \ setmagiceffectotheractorvaluec + \ setmagiceffectprojectilespeed + \ setmagiceffectprojectilespeedc + \ setmagiceffectresistvalue + \ setmagiceffectresistvaluec + \ setmagiceffectschool + \ setmagiceffectschoolc + \ setmagiceffectuseactorvaluec + \ setmagiceffectusedobject + \ setmagiceffectusedobjectc + \ setmagiceffectusesactorvalue + \ setmagiceffectusesactorvaluec + \ setmagiceffectusesarmor + \ setmagiceffectusesarmorc + \ setmagiceffectusesattribute + \ setmagiceffectusesattributec + \ setmagiceffectusescreature + \ setmagiceffectusescreaturec + \ setmagiceffectusesskill + \ setmagiceffectusesskillc + \ setmagiceffectusesweapon + \ setmagiceffectusesweaponc + \ setmagicitemautocalc + \ setmagicprojectilespell + \ setmalebipedpath + \ setmalegroundpath + \ setmaleiconpath + \ setmapmarkertype + \ setmapmarkervisible + \ setmeareasound + \ setmeareasoundc + \ setmebarterfactor + \ setmebarterfactorc + \ setmebasecost + \ setmebasecostc + \ setmeboltsound + \ setmeboltsoundc + \ setmecanrecover + \ setmecanrecoverc + \ setmecastingsound + \ setmecastingsoundc + \ setmeenchantfactor + \ setmeenchantfactorc + \ setmeenchantshader + \ setmeenchantshaderc + \ setmeforenchanting + \ setmeforenchantingc + \ setmeforspellmaking + \ setmeforspellmakingc + \ setmefxpersists + \ setmefxpersistsc + \ setmehitshader + \ setmehitshaderc + \ setmehitsound + \ setmehitsoundc + \ setmeicon + \ setmeiconc + \ setmeisdetrimental + \ setmeisdetrimentalc + \ setmeishostile + \ setmeishostilec + \ setmelight + \ setmelightc + \ setmemagnitudepercent + \ setmemagnitudepercentc + \ setmemodel + \ setmemodelc + \ setmename + \ setmenamec + \ setmenoarea + \ setmenoareac + \ setmenoduration + \ setmenodurationc + \ setmenohiteffect + \ setmenohiteffectc + \ setmenoingredient + \ setmenoingredientc + \ setmenomagnitude + \ setmenomagnitudec + \ setmenufloatvalue + \ setmenustringvalue + \ setmeonselfallowed + \ setmeonselfallowedc + \ setmeontargetallowed + \ setmeontargetallowedc + \ setmeontouchallowed + \ setmeontouchallowedc + \ setmeotheractorvalue + \ setmeotheractorvaluec + \ setmeprojectilespeed + \ setmeprojectilespeedc + \ setmerchantcontainer + \ setmeresistvalue + \ setmeresistvaluec + \ setmeschool + \ setmeschoolc + \ setmessageicon + \ setmessagesound + \ setmeuseactorvalue + \ setmeuseactorvaluec + \ setmeusedobject + \ setmeusedobjectc + \ setmeusesarmor + \ setmeusesarmorc + \ setmeusesattribute + \ setmeusesattributec + \ setmeusescreature + \ setmeusescreaturec + \ setmeusesskill + \ setmeusesskillc + \ setmeusesweapon + \ setmeusesweaponc + \ setmodelpath + \ setmodlocaldata + \ setmousespeedx + \ setmousespeedy + \ setmpspell + \ setname + \ setnameex + \ setnopersuasion + \ setnthactiveeffectmagnitude + \ setnthaemagnitude + \ setntheffectitemactorvalue + \ setntheffectitemactorvaluec + \ setntheffectitemarea + \ setntheffectitemduration + \ setntheffectitemmagnitude + \ setntheffectitemrange + \ setntheffectitemscript + \ setntheffectitemscripthostile + \ setntheffectitemscriptname + \ setntheffectitemscriptnameex + \ setntheffectitemscriptschool + \ setntheffectitemscriptvisualeffect + \ setntheffectitemscriptvisualeffectc + \ setntheiarea + \ setntheiav + \ setntheiavc + \ setntheiduration + \ setntheimagnitude + \ setntheirange + \ setntheiscript + \ setntheishostile + \ setntheisname + \ setntheisschool + \ setntheisvisualeffect + \ setntheisvisualeffectc + \ setnthfactionranknameex + \ setnumericgamesetting + \ setnumericinisetting + \ setobjectcharge + \ setobjecthealth + \ setoffersapparatus + \ setoffersarmor + \ setoffersbooks + \ setoffersclothing + \ setoffersingredients + \ setofferslights + \ setoffersmagicitems + \ setoffersmiscitems + \ setofferspotions + \ setoffersrecharging + \ setoffersrepair + \ setoffersservicesc + \ setoffersspells + \ setofferstraining + \ setoffersweapons + \ setolmpgrids + \ setopenkey + \ setopensound + \ setopenstip + \ setownership_t + \ setowningrequiredrank + \ setpackageallowfalls + \ setpackageallowswimming + \ setpackagealwaysrun + \ setpackagealwayssneak + \ setpackagearmorunequipped + \ setpackagecontinueifpcnear + \ setpackagedata + \ setpackagedefensivecombat + \ setpackagelocationdata + \ setpackagelockdoorsatend + \ setpackagelockdoorsatlocation + \ setpackagelockdoorsatstart + \ setpackagemustcomplete + \ setpackagemustreachlocation + \ setpackagenoidleanims + \ setpackageoffersservices + \ setpackageonceperday + \ setpackagescheduledata + \ setpackageskipfalloutbehavior + \ setpackagetarget + \ setpackagetargetdata + \ setpackageunlockdoorsatend + \ setpackageunlockdoorsatlocation + \ setpackageunlockdoorsatstart + \ setpackageusehorse + \ setpackageweaponsunequipped + \ setparentcellowningfactionrequiredrank + \ setpathnodedisabled + \ setpcamurderer + \ setpcattributebonus + \ setpcattributebonusc + \ setpcexpy + \ setpcleveloffset + \ setpcmajorskillups + \ setpctrainingsessionsused + \ setplayerbseworld + \ setplayerprojectile + \ setplayerskeletonpath + \ setplayerskilladvances + \ setplayerskilladvancesc + \ setplayerslastriddenhorse + \ setpos_t + \ setpowertimer + \ setprojectilesource + \ setprojectilespeed + \ setquality + \ setquestitem + \ setracealias + \ setraceplayable + \ setracescale + \ setracevoice + \ setraceweight + \ setrefcount + \ setrefessential + \ setreale + \ setscaleex + \ setscript + \ setsigilstoneuses + \ setskillgoverningattribute + \ setskillgoverningattributec + \ setskillspecialization + \ setskillspecializationc + \ setskilluseincrement + \ setskilluseincrementc + \ setsoulgemcapacity + \ setsoullevel + \ setsoundattenuation + \ setspellareaeffectignoreslos + \ setspelldisallowabsorbreflect + \ setspellexplodeswithnotarget + \ setspellhostile + \ setspellimmunetosilence + \ setspellmagickacost + \ setspellmasterylevel + \ setspellpcstart + \ setspellscripteffectalwaysapplies + \ setspelltype + \ setstagedate + \ setstagetext + \ setstringgamesettingex + \ setstringinisetting + \ setsummonable + \ setsundamage + \ setsunglare + \ settaken + \ settextinputcontrolhandler + \ settextinputdefaultcontrolsdisabled + \ settextinputhandler + \ settexturepath + \ settimeleft + \ settrainerlevel + \ settrainerskill + \ settransdelta + \ settravelhorse + \ setunsafecontainer + \ setvelocity + \ setverticalvelocity + \ setweaponreach + \ setweaponspeed + \ setweapontype + \ setweathercloudspeedlower + \ setweathercloudspeedupper + \ setweathercolor + \ setweatherfogdayfar + \ setweatherfogdaynear + \ setweatherfognightfar + \ setweatherfognightnear + \ setweatherhdrvalue + \ setweatherlightningfrequency + \ setweathersundamage + \ setweathersunglare + \ setweathertransdelta + \ setweatherwindspeed + \ setweight + \ setwindspeed + \ showellmaking + \ sin + \ sinh + \ skipansqrt + \ squareroot + \ startcc + \ stringtoactorvalue + \ tan + \ tanh + \ tapcontrol + \ tapkey + \ testexpr + \ thiactorsai + \ togglecreaturemodel + \ togglefirstperson + \ toggleskillperk + \ togglespecialanim + \ tolower + \ tonumber + \ tostring + \ toupper + \ trapuphitshader + \ triggerplayerskilluse + \ triggerplayerskillusec + \ typeof + \ uncompletequest + \ unequipitemns + \ unequipitemsilent + \ unequipme + \ unhammerkey + \ unsetstagetext + \ update3d + \ updatecontainermenu + \ updatespellpurchasemenu + \ updatetextinput + \ vecmag + \ vecnorm + \ vectorcross + \ vectordot + \ vectormagnitude + \ vectornormalize + \ zeromat +" }}} + +" Array Functions {{{ +syn keyword obseArrayFunction + \ ar_Append + \ ar_BadNumericIndex + \ ar_BadStringIndex + \ ar_Construct + \ ar_Copy + \ ar_CustomSort + \ ar_DeepCopy + \ ar_Dump + \ ar_DumpID + \ ar_Erase + \ ar_Find + \ ar_First + \ ar_HasKey + \ ar_Insert + \ ar_InsertRange + \ ar_Keys + \ ar_Last + \ ar_List + \ ar_Map + \ ar_Next + \ ar_Null + \ ar_Prev + \ ar_Range + \ ar_Resize + \ ar_Size + \ ar_Sort + \ ar_SortAlpha +" }}} + +" String Functions {{{ +syn keyword obseStringFunction + \ sv_ToLower + \ sv_ToUpper + \ sv_Compare + \ sv_Construct + \ sv_Count + \ sv_Destruct + \ sv_Erase + \ sv_Find + \ sv_Insert + \ sv_Length + \ sv_Percentify + \ sv_Replace + \ sv_Split + \ sv_ToNumeric +" }}} + +" Pluggy Functions {{{ +syn keyword pluggyFunction + \ ArrayCmp + \ ArrayCount + \ ArrayEsp + \ ArrayProtect + \ ArraySize + \ AutoSclHudS + \ AutoSclHudT + \ CopyArray + \ CopyString + \ CreateArray + \ CreateEspBook + \ CreateString + \ DelAllHudSs + \ DelAllHudTs + \ DelFile + \ DelHudS + \ DelHudT + \ DelTxtFile + \ DestroyAllArrays + \ DestroyAllStrings + \ DestroyArray + \ DestroyString + \ DupArray + \ EspToString + \ FileToString + \ FindFirstFile + \ FindFloatInArray + \ FindInArray + \ FindNextFile + \ FindRefInArray + \ FirstFreeInArray + \ FirstInArray + \ FixName + \ FixNameEx + \ FloatToString + \ FmtString + \ FromOBSEString + \ FromTSFC + \ GetEsp + \ GetFileSize + \ GetInArray + \ GetRefEsp + \ GetTypeInArray + \ Halt + \ HasFixedName + \ HudSEsp + \ HudSProtect + \ HudS_Align + \ HudS_L + \ HudS_Opac + \ HudS_SclX + \ HudS_SclY + \ HudS_Show + \ HudS_Tex + \ HudS_X + \ HudS_Y + \ HudTEsp + \ HudTInfo + \ HudTProtect + \ HudT_Align + \ HudT_Font + \ HudT_L + \ HudT_Opac + \ HudT_SclX + \ HudT_SclY + \ HudT_Show + \ HudT_Text + \ HudT_X + \ HudT_Y + \ HudsInfo + \ IniDelKey + \ IniGetNthSection + \ IniKeyExists + \ IniReadFloat + \ IniReadInt + \ IniReadRef + \ IniReadString + \ IniSectionsCount + \ IniWriteFloat + \ IniWriteInt + \ IniWriteRef + \ IniWriteString + \ IntToHex + \ IntToString + \ IsHUDEnabled + \ IsPluggyDataReset + \ KillMenu + \ LC + \ LongToRef + \ ModRefEsp + \ NewHudS + \ NewHudT + \ PackArray + \ PauseBox + \ PlgySpcl + \ RefToLong + \ RefToString + \ RemInArray + \ RenFile + \ RenTxtFile + \ ResetName + \ RunBatString + \ SanString + \ ScreenInfo + \ SetFloatInArray + \ SetHudT + \ SetInArray + \ SetRefInArray + \ SetString + \ StrLC + \ StringCat + \ StringCmp + \ StringEsp + \ StringGetName + \ StringGetNameEx + \ StringIns + \ StringLen + \ StringMsg + \ StringMsgBox + \ StringPos + \ StringProtect + \ StringRep + \ StringSetName + \ StringSetNameEx + \ StringToFloat + \ StringToInt + \ StringToRef + \ StringToTxtFile + \ ToOBSE + \ ToOBSEString + \ ToTSFC + \ TxtFileExists + \ UserFileExists + \ csc + \ rcsc +" }}} + +" tfscFunction {{{ +syn keyword tfscFunction + \ StrAddNewLine + \ StrAppend + \ StrAppendCharCode + \ StrCat + \ StrClear + \ StrClearLast + \ StrCompare + \ StrCopy + \ StrDel + \ StrDeleteAll + \ StrExpr + \ StrGetFemaleBipedPath + \ StrGetFemaleGroundPath + \ StrGetFemaleIconPath + \ StrGetMaleBipedPath + \ StrGetMaleIconPath + \ StrGetModelPath + \ StrGetName + \ StrGetNthEffectItemScriptName + \ StrGetNthFactionRankName + \ StrGetRandomName + \ StrIDReplace + \ StrLength + \ StrLoad + \ StrMessageBox + \ StrNew + \ StrPrint + \ StrReplace + \ StrSave + \ StrSet + \ StrSetFemaleBipedPath + \ StrSetFemaleGroundPath + \ StrSetFemaleIconPath + \ StrSetMaleBipedPath + \ StrSetMaleIconPath + \ StrSetModelPath + \ StrSetName + \ StrSetNthEffectItemScriptName +" }}} + +" Blockhead Functions {{{ +syn keyword blockheadFunction + \ GetBodyAssetOverride + \ GetFaceGenAge + \ GetHeadAssetOverride + \ RefreshAnimData + \ RegisterEquipmentOverrideHandler + \ ResetAgeTextureOverride + \ ResetBodyAssetOverride + \ ResetHeadAssetOverride + \ SetAgeTextureOverride + \ SetBodyAssetOverride + \ SetFaceGenAge + \ SetHeadAssetOverride + \ ToggleAnimOverride + \ UnregisterEquipmentOverrideHandler +" }}} + +" switchNightEyeShaderFunction {{{ +syn keyword switchNightEyeShaderFunction + \ EnumNightEyeShader + \ SetNightEyeShader +" }}} + +" Oblivion Reloaded Functions {{{ +syn keyword obseivionReloadedFunction + \ cameralookat + \ cameralookatposition + \ camerareset + \ camerarotate + \ camerarotatetoposition + \ cameratranslate + \ cameratranslatetoposition + \ getlocationname + \ getsetting + \ getversion + \ getweathername + \ isthirdperson + \ setcustomconstant + \ setextraeffectenabled + \ setsetting +" }}} +" menuQue Functions {{{ +syn keyword menuQueFunction + \ GetAllSkills + \ GetAVSkillMasteryLevelC + \ GetAVSkillMasteryLevelF + \ GetFontLoaded + \ GetGenericButtonPressed + \ GetLoadedFonts + \ GetLocalMapSeen + \ GetMenuEventType + \ GetMenuFloatValue + \ GetMenuStringValue + \ GetMouseImage + \ GetMousePos + \ GetPlayerSkillAdvancesF + \ GetPlayerSkillUseF + \ GetRequiredSkillExpC + \ GetRequiredSkillExpF + \ GetSkillCode + \ GetSkillForm + \ GetSkillGoverningAttributeF + \ GetSkillSpecializationC + \ GetSkillSpecializationF + \ GetSkillUseIncrementF + \ GetTextEditBox + \ GetTextEditString + \ GetTrainingMenuCost + \ GetTrainingMenuLevel + \ GetTrainingMenuSkill + \ GetWorldMapData + \ GetWorldMapDoor + \ IncrementPlayerSkillUseF + \ InsertXML + \ InsertXMLTemplate + \ IsTextEditInUse + \ Kyoma_Test + \ ModPlayerSkillExpF + \ mqCreateMenuFloatValue + \ mqCreateMenuStringValue + \ mqGetActiveQuest + \ mqGetActiveQuestTargets + \ mqGetCompletedQuests + \ mqGetCurrentQuests + \ mqGetEnchMenuBaseItem + \ mqGetHighlightedClass + \ mqGetMapMarkers + \ mqGetMenuActiveChildIndex + \ mqGetMenuActiveFloatValue + \ mqGetMenuActiveStringValue + \ mqGetMenuChildCount + \ mqGetMenuChildFloatValue + \ mqGetMenuChildHasTrait + \ mqGetMenuChildName + \ mqGetMenuChildStringValue + \ mqGetMenuGlobalFloatValue + \ mqGetMenuGlobalStringValue + \ mqGetQuestCompleted + \ mqGetSelectedClass + \ mqSetActiveQuest + \ mqSetMenuActiveFloatValue + \ mqSetMenuActiveStringValue + \ mqSetMenuChildFloatValue + \ mqSetMenuChildStringValue + \ mqSetMenuGlobalStringValue + \ mqSetMenuGlobalFloatValue + \ mqSetMessageBoxSource + \ mqUncompleteQuest + \ RemoveMenuEventHandler + \ SetMenuEventHandler + \ SetMouseImage + \ SetPlayerSkillAdvancesF + \ SetSkillGoverningAttributeF + \ SetSkillSpecializationC + \ SetSkillSpecializationF + \ SetSkillUseIncrementF + \ SetTextEditString + \ SetTrainerSkillC + \ SetWorldMapData + \ ShowGenericMenu + \ ShowLevelUpMenu + \ ShowMagicPopupMenu + \ ShowTextEditMenu + \ ShowTrainingMenu + \ tile_FadeFloat + \ tile_GetFloat + \ tile_GetInfo + \ tile_GetName + \ tile_GetString + \ tile_GetVar + \ tile_HasTrait + \ tile_SetFloat + \ tile_SetString + \ TriggerPlayerSkillUseF + \ UpdateLocalMap +" }}} + +" eaxFunction {{{ +syn keyword eaxFunction + \ CreateEAXeffect + \ DeleteEAXeffect + \ DisableEAX + \ EAXcopyEffect + \ EAXeffectExists + \ EAXeffectsAreEqual + \ EAXgetActiveEffect + \ EAXnumEffects + \ EAXpushEffect + \ EAXpopEffect + \ EAXremoveAllInstances + \ EAXremoveFirstInstance + \ EAXstackIsEmpty + \ EAXstackSize + \ EnableEAX + \ GetEAXAirAbsorptionHF + \ GetEAXDecayHFRatio + \ GetEAXDecayTime + \ GetEAXEnvironment + \ GetEAXEnvironmentSize + \ GetEAXEnvironmentDiffusion + \ GetEAXReflections + \ GetEAXReflectionsDelay + \ GetEAXReverb + \ GetEAXReverbDelay + \ GetEAXRoom + \ GetEAXRoomHF + \ GetEAXRoomRolloffFactor + \ InitializeEAX + \ IsEAXEnabled + \ IsEAXInitialized + \ SetEAXAirAbsorptionHF + \ SetEAXallProperties + \ SetEAXDecayTime + \ SetEAXDecayHFRatio + \ SetEAXEnvironment + \ SetEAXEnvironmentSize + \ SetEAXEnvironmentDiffusion + \ SetEAXReflections + \ SetEAXReflectionsDelay + \ SetEAXReverb + \ SetEAXReverbDelay + \ SetEAXRoom + \ SetEAXRoomHF + \ SetEAXRoomRolloffFactor +" }}} + +" networkPipeFunction {{{ +syn keyword networkPipeFunction + \ NetworkPipe_CreateClient + \ NetworkPipe_GetData + \ NetworkPipe_IsNewGame + \ NetworkPipe_KillClient + \ NetworkPipe_Receive + \ NetworkPipe_SetData + \ NetworkPipe_Send + \ NetworkPipe_StartService + \ NetworkPipe_StopService +" }}} + +" nifseFunction {{{ +syn keyword nifseFunction + \ BSFurnitureMarkerGetPositionRefs + \ BSFurnitureMarkerSetPositionRefs + \ GetNifTypeIndex + \ NiAVObjectAddProperty + \ NiAVObjectClearCollisionObject + \ NiAVObjectCopyCollisionObject + \ NiAVObjectDeleteProperty + \ NiAVObjectGetCollisionMode + \ NiAVObjectGetCollisionObject + \ NiAVObjectGetLocalRotation + \ NiAVObjectGetLocalScale + \ NiAVObjectGetLocalTransform + \ NiAVObjectGetLocalTranslation + \ NiAVObjectGetNumProperties + \ NiAVObjectGetProperties + \ NiAVObjectGetPropertyByType + \ NiAVObjectSetCollisionMode + \ NiAVObjectSetLocalRotation + \ NiAVObjectSetLocalScale + \ NiAVObjectSetLocalTransform + \ NiAVObjectSetLocalTranslation + \ NiAlphaPropertyGetBlendState + \ NiAlphaPropertyGetDestinationBlendFunction + \ NiAlphaPropertyGetSourceBlendFunction + \ NiAlphaPropertyGetTestFunction + \ NiAlphaPropertyGetTestState + \ NiAlphaPropertyGetTestThreshold + \ NiAlphaPropertyGetTriangleSortMode + \ NiAlphaPropertySetBlendState + \ NiAlphaPropertySetDestinationBlendFunction + \ NiAlphaPropertySetSourceBlendFunction + \ NiAlphaPropertySetTestFunction + \ NiAlphaPropertySetTestState + \ NiAlphaPropertySetTestThreshold + \ NiAlphaPropertySetTriangleSortMode + \ NiExtraDataGetArray + \ NiExtraDataGetName + \ NiExtraDataGetNumber + \ NiExtraDataGetString + \ NiExtraDataSetArray + \ NiExtraDataSetName + \ NiExtraDataSetNumber + \ NiExtraDataSetString + \ NiMaterialPropertyGetAmbientColor + \ NiMaterialPropertyGetDiffuseColor + \ NiMaterialPropertyGetEmissiveColor + \ NiMaterialPropertyGetGlossiness + \ NiMaterialPropertyGetSpecularColor + \ NiMaterialPropertyGetTransparency + \ NiMaterialPropertySetAmbientColor + \ NiMaterialPropertySetDiffuseColor + \ NiMaterialPropertySetEmissiveColor + \ NiMaterialPropertySetGlossiness + \ NiMaterialPropertySetSpecularColor + \ NiMaterialPropertySetTransparency + \ NiNodeAddChild + \ NiNodeCopyChild + \ NiNodeDeleteChild + \ NiNodeGetChildByName + \ NiNodeGetChildren + \ NiNodeGetNumChildren + \ NiObjectGetType + \ NiObjectGetTypeName + \ NiObjectNETAddExtraData + \ NiObjectNETDeleteExtraData + \ NiObjectNETGetExtraData + \ NiObjectNETGetExtraDataByName + \ NiObjectNETGetName + \ NiObjectNETGetNumExtraData + \ NiObjectNETSetName + \ NiObjectTypeDerivesFrom + \ NiSourceTextureGetFile + \ NiSourceTextureIsExternal + \ NiSourceTextureSetExternalTexture + \ NiStencilPropertyGetFaceDrawMode + \ NiStencilPropertyGetFailAction + \ NiStencilPropertyGetPassAction + \ NiStencilPropertyGetStencilFunction + \ NiStencilPropertyGetStencilMask + \ NiStencilPropertyGetStencilRef + \ NiStencilPropertyGetStencilState + \ NiStencilPropertyGetZFailAction + \ NiStencilPropertySetFaceDrawMode + \ NiStencilPropertySetFailAction + \ NiStencilPropertySetPassAction + \ NiStencilPropertySetStencilFunction + \ NiStencilPropertySetStencilMask + \ NiStencilPropertySetStencilRef + \ NiStencilPropertySetStencilState + \ NiStencilPropertySetZFailAction + \ NiTexturingPropertyAddTextureSource + \ NiTexturingPropertyDeleteTextureSource + \ NiTexturingPropertyGetTextureCenterOffset + \ NiTexturingPropertyGetTextureClampMode + \ NiTexturingPropertyGetTextureCount + \ NiTexturingPropertyGetTextureFilterMode + \ NiTexturingPropertyGetTextureFlags + \ NiTexturingPropertyGetTextureRotation + \ NiTexturingPropertyGetTextureSource + \ NiTexturingPropertyGetTextureTiling + \ NiTexturingPropertyGetTextureTranslation + \ NiTexturingPropertyGetTextureUVSet + \ NiTexturingPropertyHasTexture + \ NiTexturingPropertySetTextureCenterOffset + \ NiTexturingPropertySetTextureClampMode + \ NiTexturingPropertySetTextureCount + \ NiTexturingPropertySetTextureFilterMode + \ NiTexturingPropertySetTextureFlags + \ NiTexturingPropertySetTextureHasTransform + \ NiTexturingPropertySetTextureRotation + \ NiTexturingPropertySetTextureTiling + \ NiTexturingPropertySetTextureTranslation + \ NiTexturingPropertySetTextureUVSet + \ NiTexturingPropertyTextureHasTransform + \ NiVertexColorPropertyGetLightingMode + \ NiVertexColorPropertyGetVertexMode + \ NiVertexColorPropertySetLightingMode + \ NiVertexColorPropertySetVertexMode + \ NifClose + \ NifGetAltGrip + \ NifGetBackShield + \ NifGetNumBlocks + \ NifGetOffHand + \ NifGetOriginalPath + \ NifGetPath + \ NifOpen + \ NifWriteToDisk +" }}} + +" reidFunction {{{ +syn keyword reidFunction + \ GetRuntimeEditorID +" }}} + +" runtimeDebuggerFunction {{{ +syn keyword runtimeDebuggerFunction + \ DebugBreak + \ ToggleDebugBreaking +" }}} + +" addActorValuesFunction {{{ +syn keyword addActorValuesFunction + \ DumpActorValueC + \ DumpActorValueF + \ GetActorValueBaseCalcC + \ GetActorValueBaseCalcF + \ GetActorValueCurrentC + \ GetActorValueCurrentF + \ GetActorValueMaxC + \ GetActorValueMaxF + \ GetActorValueModC + \ GetActorValueModF + \ ModActorValueModC + \ ModActorValueModF + \ SetActorValueModC + \ SetActorValueModF + \ DumpAVC + \ DumpAVF + \ GetAVModC + \ GetAVModF + \ ModAVModC + \ ModAVModF + \ SetAVModC + \ SetAVModF + \ GetAVBaseCalcC + \ GetAVBaseCalcF + \ GetAVMaxC + \ GetAVMaxF + \ GetAVCurrentC + \ GetAVCurrent +" }}} + +" memoryDumperFunction {{{ +syn keyword memoryDumperFunction + \ SetDumpAddr + \ SetDumpType + \ SetFadeAmount + \ SetObjectAddr + \ ShowMemoryDump +" }}} + +" algoholFunction {{{ +syn keyword algoholFunction + \ QFromAxisAngle + \ QFromEuler + \ QInterpolate + \ QMultQuat + \ QMultVector3 + \ QNormalize + \ QToEuler + \ V3Crossproduct + \ V3Length + \ V3Normalize +" }}} + +" soundCommandsFunction {{{ +syn keyword soundCommandsFunction + \ FadeMusic + \ GetEffectsVolume + \ GetFootVolume + \ GetMasterVolume + \ GetMusicVolume + \ GetVoiceVolume + \ PlayMusicFile + \ SetEffectsVolume + \ SetFootVolume + \ SetMasterVolume + \ SetMusicVolume + \ SetVoiceVolume +" }}} + +" emcFunction {{{ +syn keyword emcFunction + \ emcAddPathToPlaylist + \ emcCreatePlaylist + \ emcGetAllPlaylists + \ emcGetAfterBattleDelay + \ emcGetBattleDelay + \ emcGetEffectsVolume + \ emcGetFadeTime + \ emcGetFootVolume + \ emcGetMasterVolume + \ emcGetMaxRestoreTime + \ emcGetMusicSpeed + \ emcGetMusicType + \ emcGetMusicVolume + \ emcGetPauseTime + \ emcGetPlaylist + \ emcGetPlaylistTracks + \ emcGetTrackName + \ emcGetTrackDuration + \ emcGetTrackPosition + \ emcGetVoiceVolume + \ emcIsBattleOverridden + \ emcIsMusicOnHold + \ emcIsMusicSwitching + \ emcIsPlaylistActive + \ emcMusicNextTrack + \ emcMusicPause + \ emcMusicRestart + \ emcMusicResume + \ emcMusicStop + \ emcPlaylistExists + \ emcPlayTrack + \ emcRestorePlaylist + \ emcSetAfterBattleDelay + \ emcSetBattleDelay + \ emcSetBattleOverride + \ emcSetEffectsVolume + \ emcSetFadeTime + \ emcSetFootVolume + \ emcSetMasterVolume + \ emcSetMaxRestoreTime + \ emcSetMusicHold + \ emcSetMusicSpeed + \ emcSetMusicVolume + \ emcSetPauseTime + \ emcSetPlaylist + \ emcSetTrackPosition + \ emcSetMusicType + \ emcSetVoiceVolume +" }}} + +" vipcxjFunction {{{ +syn keyword vipcxjFunction + \ vcAddMark + \ vcGetFilePath + \ vcGetHairColorRGB + \ vcGetValueNumeric + \ vcGetValueString + \ vcIsMarked + \ vcPrintIni + \ vcSetActorState + \ vcSetHairColor + \ vcSetHairColorRGB + \ vcSetHairColorRGB3P +" }}} + +" cameraCommandsFunction {{{ +syn keyword cameraCommandsFunction + \ CameraGetRef + \ CameraLookAt + \ CameraLookAtPosition + \ CameraMove + \ CameraMoveToPosition + \ CameraReset + \ CameraRotate + \ CameraRotateToPosition + \ CameraSetRef + \ CameraStopLook +" }}} + +" obmeFunction {{{ +syn keyword obmeFunction + \ ClearNthEIBaseCost + \ ClearNthEIEffectName + \ ClearNthEIHandlerParam + \ ClearNthEIHostility + \ ClearNthEIIconPath + \ ClearNthEIResistAV + \ ClearNthEISchool + \ ClearNthEIVFXCode + \ CreateMgef + \ GetMagicEffectHandlerC + \ GetMagicEffectHandlerParamC + \ GetMagicEffectHostilityC + \ GetNthEIBaseCost + \ GetNthEIEffectName + \ GetNthEIHandlerParam + \ GetNthEIHostility + \ GetNthEIIconPath + \ GetNthEIResistAV + \ GetNthEISchool + \ GetNthEIVFXCode + \ ResolveMgefCode + \ SetMagicEffectHandlerC + \ SetMagicEffectHandlerIntParamC + \ SetMagicEffectHandlerRefParamC + \ SetMagicEffectHostilityC + \ SetNthEIBaseCost + \ SetNthEIEffectName + \ SetNthEIHandlerIntParam + \ SetNthEIHandlerRefParam + \ SetNthEIHostility + \ SetNthEIIconPath + \ SetNthEIResistAV + \ SetNthEISchool + \ SetNthEIVFXCode +" }}} + +" conscribeFunction {{{ +syn keyword conscribeFunction + \ DeleteLinesFromLog + \ GetLogLineCount + \ GetRegisteredLogNames + \ ReadFromLog + \ RegisterLog + \ Scribe + \ UnregisterLog +" }}} + +" systemDialogFunction {{{ +syn keyword systemDialogFunction + \ Sysdlg_Browser + \ Sysdlg_ReadBrowser + \ Sysdlg_TextInput +" }}} + +" csiFunction {{{ +syn keyword csiFunction + \ ClearSpellIcon + \ HasAssignedIcon + \ OverwriteSpellIcon + \ SetSpellIcon +" }}} + +" haelFunction {{{ +syn keyword haelFunction + \ GetHUDActiveEffectLimit + \ SetHUDActiveEffectLimit +" }}} + +" lcdFunction {{{ +syn keyword lcdFunction + \ lcd_addinttobuffer + \ lcd_addtexttobuffer + \ lcd_clearrect + \ lcd_cleartextbuffer + \ lcd_close + \ lcd_drawcircle + \ lcd_drawgrid + \ lcd_drawint + \ lcd_drawline + \ lcd_drawprogressbarh + \ lcd_drawprogressbarv + \ lcd_drawprogresscircle + \ lcd_drawrect + \ lcd_drawtext + \ lcd_drawtextbuffer + \ lcd_drawtexture + \ lcd_flush + \ lcd_getbuttonstate + \ lcd_getheight + \ lcd_getwidth + \ lcd_ismulti + \ lcd_isopen + \ lcd_open + \ lcd_refresh + \ lcd_savebuttonsnapshot + \ lcd_scale + \ lcd_setfont +" }}} + +" Deprecated: {{{ +syn keyword obDeprecated + \ SetAltControl + \ GetAltControl + \ RefreshControlMap +" }}} +" }}} + +if !exists("did_obl_inits") + + let did_obl_inits = 1 + hi def link obseStatement Statement + hi def link obseStatementTwo Statement + hi def link obseDescBlock String + hi def link obseComment Comment + hi def link obseString String + hi def link obseStringFormatting Keyword + hi def link obseFloat Float + hi def link obseInt Number + hi def link obseToDo Todo + hi def link obseTypes Type + hi def link obseCondition Conditional + hi def link obseOperator Operator + hi def link obseOtherKey Special + hi def link obseScriptName Special + hi def link obseBlock Conditional + hi def link obseBlockType Structure + hi def link obseScriptNameRegion Underlined + hi def link obseNames Identifier + hi def link obseVariable Identifier + hi def link obseReference Special + hi def link obseRepeat Repeat + + hi def link csFunction Function + hi def link obseFunction Function + hi def link obseArrayFunction Function + hi def link pluggyFunction Function + hi def link obseStringFunction Function + hi def link obseArrayFunction Function + hi def link tsfcFunction Function + hi def link blockheadFunction Function + hi def link switchNightEyeShaderFunction Function + hi def link obseivionReloadedFunction Function + hi def link menuQueFunction Function + hi def link eaxFunction Function + hi def link networkPipeFunction Function + hi def link nifseFunction Function + hi def link reidFunction Function + hi def link runtimeDebuggerFunction Function + hi def link addActorValuesFunction Function + hi def link memoryDumperFunction Function + hi def link algoholFunction Function + hi def link soundCommandsFunction Function + hi def link emcFunction Function + hi def link vipcxjFunction Function + hi def link cameraCommands Function + hi def link obmeFunction Function + hi def link conscribeFunction Function + hi def link systemDialogFunction Function + hi def link csiFunction Function + hi def link haelFunction Function + hi def link lcdFunction Function + hi def link skillAttribute String + hi def link obDeprecated WarningMsg + +endif + +let b:current_syntax = 'obse' + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/ocaml.vim b/git/usr/share/vim/vim92/syntax/ocaml.vim new file mode 100644 index 0000000000000000000000000000000000000000..04ba39203df0e90a60dc95179e51c682710198b8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/ocaml.vim @@ -0,0 +1,668 @@ +" Vim syntax file +" Language: OCaml +" Filenames: *.ml *.mli *.mll *.mly +" Maintainers: Markus Mottl +" Karl-Heinz Sylla +" Issac Trotts +" URL: https://github.com/ocaml/vim-ocaml +" Last Change: +" 2019 Nov 05 - Accurate type highlighting (Maëlan) +" 2018 Nov 08 - Improved highlighting of operators (Maëlan) +" 2018 Apr 22 - Improved support for PPX (Andrey Popp) +" 2018 Mar 16 - Remove raise, lnot and not from keywords (Étienne Millon, "copy") +" 2017 Apr 11 - Improved matching of negative numbers (MM) +" 2016 Mar 11 - Improved support for quoted strings (Glen Mével) +" 2015 Aug 13 - Allow apostrophes in identifiers (Jonathan Chan, Einar Lielmanis) +" 2015 Jun 17 - Added new "nonrec" keyword (MM) + +" A minor patch was applied to the official version so that object/end +" can be distinguished from begin/end, which is used for indentation, +" and folding. (David Baelde) + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") && b:current_syntax == "ocaml" + finish +endif + +let s:keepcpo = &cpo +set cpo&vim + +" ' can be used in OCaml identifiers +setlocal iskeyword+=' + +" ` is part of the name of polymorphic variants +setlocal iskeyword+=` + +" OCaml is case sensitive. +syn case match + +" Access to the method of an object +syn match ocamlMethod "#" + +" Scripting directives +syn match ocamlScript "^#\<\(quit\|labels\|warnings\|warn_error\|directory\|remove_directory\|cd\|load\|load_rec\|use\|mod_use\|install_printer\|remove_printer\|require\|list\|ppx\|principal\|predicates\|rectypes\|thread\|trace\|untrace\|untrace_all\|print_depth\|print_length\|camlp4o\|camlp4r\|topfind_log\|topfind_verbose\)\>" + +" lowercase identifier - the standard way to match +syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ + +" Errors +syn match ocamlBraceErr "}" +syn match ocamlBrackErr "\]" +syn match ocamlParenErr ")" +syn match ocamlArrErr "|]" + +syn match ocamlCountErr "\" +syn match ocamlCountErr "\" + +if !exists("ocaml_revised") + syn match ocamlDoErr "\" +endif + +syn match ocamlDoneErr "\" +syn match ocamlThenErr "\" + +" Error-highlighting of "end" without synchronization: +" as keyword or as error (default) +if exists("ocaml_noend_error") + syn match ocamlKeyword "\" +else + syn match ocamlEndErr "\" +endif + +" These keywords are only expected nested in constructions that are handled by +" the type linter, so outside of type contexts we highlight them as errors: +syn match ocamlKwErr "\<\(mutable\|nonrec\|of\|private\)\>" + +" Some convenient clusters +syn cluster ocamlAllErrs contains=@ocamlAENoParen,ocamlParenErr +syn cluster ocamlAENoParen contains=ocamlBraceErr,ocamlBrackErr,ocamlCountErr,ocamlDoErr,ocamlDoneErr,ocamlEndErr,ocamlThenErr,ocamlKwErr + +syn cluster ocamlContained contains=ocamlTodo,ocamlPreDef,ocamlModParam,ocamlModParam1,ocamlModTypePre,ocamlModRHS,ocamlFuncWith,ocamlModTypeRestr,ocamlModTRWith,ocamlWith,ocamlWithRest,ocamlFullMod,ocamlVal + + +" Enclosing delimiters +syn region ocamlNone transparent matchgroup=ocamlEncl start="(" matchgroup=ocamlEncl end=")" contains=ALLBUT,@ocamlContained,ocamlParenErr +syn region ocamlNone transparent matchgroup=ocamlEncl start="{" matchgroup=ocamlEncl end="}" contains=ALLBUT,@ocamlContained,ocamlBraceErr +syn region ocamlNone transparent matchgroup=ocamlEncl start="\[" matchgroup=ocamlEncl end="\]" contains=ALLBUT,@ocamlContained,ocamlBrackErr +syn region ocamlNone transparent matchgroup=ocamlEncl start="\[|" matchgroup=ocamlEncl end="|\]" contains=ALLBUT,@ocamlContained,ocamlArrErr + + +" Comments +syn region ocamlComment start="(\*" end="\*)" contains=@Spell,ocamlComment,ocamlTodo +syn keyword ocamlTodo contained TODO FIXME XXX NOTE + + +" Objects +syn region ocamlEnd matchgroup=ocamlObject start="\" matchgroup=ocamlObject end="\" contains=ALLBUT,@ocamlContained,ocamlEndErr + + +" Blocks +if !exists("ocaml_revised") + syn region ocamlEnd matchgroup=ocamlKeyword start="\" matchgroup=ocamlKeyword end="\" contains=ALLBUT,@ocamlContained,ocamlEndErr +endif + + +" "for" +syn region ocamlNone matchgroup=ocamlKeyword start="\" matchgroup=ocamlKeyword end="\<\(to\|downto\)\>" contains=ALLBUT,@ocamlContained,ocamlCountErr + + +" "do" +if !exists("ocaml_revised") + syn region ocamlDo matchgroup=ocamlKeyword start="\" matchgroup=ocamlKeyword end="\" contains=ALLBUT,@ocamlContained,ocamlDoneErr +endif + +" "if" +syn region ocamlNone matchgroup=ocamlKeyword start="\" matchgroup=ocamlKeyword end="\" contains=ALLBUT,@ocamlContained,ocamlThenErr + +"" PPX nodes + +syn match ocamlPpxIdentifier /\(\[@\{1,3\}\)\@<=\w\+\(\.\w\+\)*/ +syn region ocamlPpx matchgroup=ocamlPpxEncl start="\[@\{1,3\}" contains=TOP end="\]" + +"" Modules + +" "open" +syn match ocamlKeyword "\" skipwhite skipempty nextgroup=ocamlFullMod + +" "include" +syn match ocamlKeyword "\" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod + +" "module" - somewhat complicated stuff ;-) +" 2022-10: please document it? +syn region ocamlModule matchgroup=ocamlKeyword start="\" matchgroup=ocamlModule end="\<_\|\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef +syn region ocamlPreDef start="."me=e-1 end="[a-z:=)]\@=" contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlGenMod,ocamlModTypeRestr nextgroup=ocamlModTypePre,ocamlModPreRHS +syn region ocamlModParam start="(\*\@!" end=")" contained contains=ocamlGenMod,ocamlModParam,ocamlModParam1,ocamlSig,ocamlVal +syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty +syn match ocamlGenMod "()" contained skipwhite skipempty + +syn match ocamlModTypePre ":" contained skipwhite skipempty nextgroup=ocamlModTRWith,ocamlSig,ocamlFunctor,ocamlModTypeRestr,ocamlModTypeOf +syn match ocamlModTypeRestr "\<\w\(\w\|'\)*\( *\. *\w\(\w\|'\)*\)*\>" contained + +syn match ocamlModPreRHS "=" contained skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod +syn keyword ocamlKeyword val +syn region ocamlVal matchgroup=ocamlKeyword start="\" matchgroup=ocamlLCIdentifier end="\<\l\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment,ocamlFullMod skipwhite skipempty nextgroup=ocamlModTypePre +syn region ocamlModRHS start="." end=". *\w\|([^*]"me=e-2 contained contains=ocamlComment skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod +syn match ocamlFullMod "\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*" contained skipwhite skipempty nextgroup=ocamlFuncWith + +syn region ocamlFuncWith start="([*)]\@!" end=")" contained contains=ocamlComment,ocamlWith,ocamlStruct skipwhite skipempty nextgroup=ocamlFuncWith + +syn region ocamlModTRWith start="(\*\@!" end=")" contained contains=@ocamlAENoParen,ocamlWith +syn match ocamlWith "\<\(\u\(\w\|'\)* *\. *\)*\w\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=ocamlWithRest +syn region ocamlWithRest start="[^)]" end=")"me=e-1 contained contains=ALLBUT,@ocamlContained + +" "struct" +syn region ocamlStruct matchgroup=ocamlStructEncl start="\<\(module\s\+\)\=struct\>" matchgroup=ocamlStructEncl end="\" contains=ALLBUT,@ocamlContained,ocamlEndErr + +" "sig" +syn region ocamlSig matchgroup=ocamlSigEncl start="\" matchgroup=ocamlSigEncl end="\" contains=ALLBUT,@ocamlContained,ocamlEndErr + +" "functor" +syn region ocamlFunctor start="\" matchgroup=ocamlKeyword end="->" contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlGenMod skipwhite skipempty nextgroup=ocamlStruct,ocamlSig,ocamlFuncWith,ocamlFunctor + +" "module type" +syn region ocamlModTypeOf start="\" matchgroup=ocamlModule end="\<\w\(\w\|'\)*\>" contains=ocamlComment skipwhite skipempty nextgroup=ocamlMTDef +syn match ocamlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s+1 skipwhite skipempty nextgroup=ocamlFullMod + +" Quoted strings +syn region ocamlString matchgroup=ocamlQuotedStringDelim start="{\z\([a-z_]*\)|" end="|\z1}" contains=@Spell +syn region ocamlString matchgroup=ocamlQuotedStringDelim start="{%[a-z_]\+\(\.[a-z_]\+\)\?\( \z\([a-z_]\+\)\)\?|" end="|\z1}" contains=@Spell + +syn keyword ocamlKeyword and as assert class +syn keyword ocamlKeyword else +syn keyword ocamlKeyword external +syn keyword ocamlKeyword in inherit initializer +syn keyword ocamlKeyword lazy let match +syn keyword ocamlKeyword method new +syn keyword ocamlKeyword parser rec +syn keyword ocamlKeyword try +syn keyword ocamlKeyword virtual when while with + +" Keywords which are handled by the type linter: +" as (within a type equation) +" constraint exception mutable nonrec of private type + +" The `fun` keyword has special treatment because of the syntax `fun … : t -> e` +" where `->` ends the type context rather than being part of it; to handle that, +" we blacklist the ocamlTypeAnnot matchgroup, and we plug ocamlFunTypeAnnot +" instead (later in this file, by using containedin=ocamlFun): +syn region ocamlFun matchgroup=ocamlKeyword start='\' matchgroup=ocamlArrow end='->' +\ contains=ALLBUT,@ocamlContained,ocamlArrow,ocamlInfixOp,ocamlTypeAnnot + +if exists("ocaml_revised") + syn keyword ocamlKeyword do value + syn keyword ocamlBoolean True False +else + syn keyword ocamlKeyword function + syn keyword ocamlBoolean true false +endif + +syn match ocamlEmptyConstructor "(\s*)" +syn match ocamlEmptyConstructor "\[\s*\]" +syn match ocamlEmptyConstructor "\[|\s*>|]" +syn match ocamlEmptyConstructor "\[<\s*>\]" +syn match ocamlConstructor "\u\(\w\|'\)*\>" + +" Polymorphic variants +syn match ocamlConstructor "`\w\(\w\|'\)*\>" + +" Module prefix +syn match ocamlModPath "\u\(\w\|'\)* *\."he=e-1 + +syn match ocamlCharacter "'\\\d\d\d'\|'\\[\'ntbr]'\|'.'" +syn match ocamlCharacter "'\\x\x\x'" +syn match ocamlCharErr "'\\\d\d'\|'\\\d'" +syn match ocamlCharErr "'\\[^\'ntbr]'" +syn region ocamlString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell + +syn match ocamlAnyVar "\<_\>" +syn match ocamlKeyChar "|]\@!" +syn match ocamlKeyChar ";" +syn match ocamlKeyChar "\~" +syn match ocamlKeyChar "?" + +" NOTE: for correct precedence, the rule for ";;" must come after that for ";" +syn match ocamlTopStop ";;" + +"" Operators + +" The grammar of operators is found there: +" https://caml.inria.fr/pub/docs/manual-ocaml/names.html#operator-name +" https://caml.inria.fr/pub/docs/manual-ocaml/extn.html#s:ext-ops +" https://caml.inria.fr/pub/docs/manual-ocaml/extn.html#s:index-operators +" = is both an operator name and a keyword, we let the user choose how +" to display it (has to be declared before regular infix operators): +syn match ocamlEqual "=" +" Custom indexing operators: +syn region ocamlIndexing matchgroup=ocamlIndexingOp + \ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*(" + \ end=")\(\_s*<-\)\?" + \ contains=ALLBUT,@ocamlContained,ocamlParenErr +syn region ocamlIndexing matchgroup=ocamlIndexingOp + \ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*\[" + \ end="]\(\_s*<-\)\?" + \ contains=ALLBUT,@ocamlContained,ocamlBrackErr +syn region ocamlIndexing matchgroup=ocamlIndexingOp + \ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*{" + \ end="}\(\_s*<-\)\?" + \ contains=ALLBUT,@ocamlContained,ocamlBraceErr +" Extension operators (has to be declared before regular infix operators): +syn match ocamlExtensionOp "#[#~?!.:|&$%<=>@^*/+-]\+" +" Infix and prefix operators: +syn match ocamlPrefixOp "![~?!.:|&$%<=>@^*/+-]*" +syn match ocamlPrefixOp "[~?][~?!.:|&$%<=>@^*/+-]\+" +syn match ocamlInfixOp "[&$%<>@^*/+-][~?!.:|&$%<=>@^*/+-]*" +syn match ocamlInfixOp "[|=][~?!.:|&$%<=>@^*/+-]\+" +syn match ocamlInfixOp "#[~?!.:|&$%<=>@^*/+-]\+#\@!" +syn match ocamlInfixOp "!=[~?!.:|&$%<=>@^*/+-]\@!" +syn keyword ocamlInfixOpKeyword asr land lor lsl lsr lxor mod or +" := is technically an infix operator, but we may want to show it as a keyword +" (somewhat analogously to = for let‐bindings and <- for assignations): +syn match ocamlRefAssign ":=" +" :: is technically not an operator, but we may want to show it as such: +syn match ocamlCons "::" +" -> and <- are keywords, not operators (but can appear in longer operators): +syn match ocamlArrow "->[~?!.:|&$%<=>@^*/+-]\@!" +if exists("ocaml_revised") + syn match ocamlErr "<-[~?!.:|&$%<=>@^*/+-]\@!" +else + syn match ocamlKeyChar "<-[~?!.:|&$%<=>@^*/+-]\@!" +endif + +" Script shebang (has to be declared after operators) +syn match ocamlShebang "\%1l^#!.*$" + +syn match ocamlNumber "-\=\<\d\(_\|\d\)*[l|L|n]\?\>" +syn match ocamlNumber "-\=\<0[x|X]\(\x\|_\)\+[l|L|n]\?\>" +syn match ocamlNumber "-\=\<0[o|O]\(\o\|_\)\+[l|L|n]\?\>" +syn match ocamlNumber "-\=\<0[b|B]\([01]\|_\)\+[l|L|n]\?\>" +syn match ocamlFloat "-\=\<\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>" + +" Labels +syn match ocamlLabel "[~?]\(\l\|_\)\(\w\|'\)*:\?" +syn region ocamlLabel transparent matchgroup=ocamlLabel start="[~?](\(\l\|_\)\(\w\|'\)*"lc=2 end=")"me=e-1 contains=ALLBUT,@ocamlContained,ocamlParenErr + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +"" Type contexts + +" How we recognize type contexts is explained in `type-linter-notes.md` +" and a test suite is found in `type-linter-test.ml`. +" +" ocamlTypeExpr is the cluster of things that can make up a type expression +" (in a loose sense, e.g. the “as” keyword and universal quantification are +" included). Regions containing a type expression use it like this: +" +" contains=@ocamlTypeExpr,... +" +" ocamlTypeContained is the cluster of things that can be found in a type +" expression or a type definition. It is not expected to be used in any region, +" it exists solely for throwing things in it that should not pollute the main +" linter. +" +" Both clusters are filled in incrementally. Every match group that is not to be +" found at the main level must be declared as “contained” and added to either +" ocamlTypeExpr or ocamlTypeContained. +" +" In these clusters we don’t put generic things that can also be found elswhere, +" i.e. ocamlComment and ocamlPpx, because everything that is in these clusters +" is also put in ocamlContained and thus ignored by the main linter. + +"syn cluster ocamlTypeExpr contains= +syn cluster ocamlTypeContained contains=@ocamlTypeExpr +syn cluster ocamlContained add=@ocamlTypeContained + +" We’ll use a “catch-all” highlighting group to show as error anything that is +" not matched more specifically; we don’t want spaces to be reported as errors +" (different background color), so we just catch them here: +syn cluster ocamlTypeExpr add=ocamlTypeBlank +syn match ocamlTypeBlank contained "\_s\+" +hi link ocamlTypeBlank NONE + +" NOTE: Carefully avoid catching "(*" here. +syn cluster ocamlTypeExpr add=ocamlTypeParen +syn region ocamlTypeParen contained transparent +\ matchgroup=ocamlEncl start="(\*\@!" +\ matchgroup=ocamlEncl end=")" +\ contains=@ocamlTypeExpr,ocamlComment,ocamlPpx + +syn cluster ocamlTypeExpr add=ocamlTypeKeyChar,ocamlTypeAs +syn match ocamlTypeKeyChar contained "->" +syn match ocamlTypeKeyChar contained "\*" +syn match ocamlTypeKeyChar contained "#" +syn match ocamlTypeKeyChar contained "," +syn match ocamlTypeKeyChar contained "\." +syn keyword ocamlTypeAs contained as +hi link ocamlTypeAs ocamlKeyword + +syn cluster ocamlTypeExpr add=ocamlTypeVariance +syn match ocamlTypeVariance contained "[-+!]\ze *\('\|\<_\>\)" +syn match ocamlTypeVariance contained "[-+] *!\+\ze *\('\|\<_\>\)" +syn match ocamlTypeVariance contained "! *[-+]\+\ze *\('\|\<_\>\)" + +syn cluster ocamlTypeContained add=ocamlTypeEq +syn match ocamlTypeEq contained "[+:]\?=" +hi link ocamlTypeEq ocamlKeyChar + +syn cluster ocamlTypeExpr add=ocamlTypeVar,ocamlTypeConstr,ocamlTypeAnyVar,ocamlTypeBuiltin +syn match ocamlTypeVar contained "'\(\l\|_\)\(\w\|'\)*\>" +syn match ocamlTypeConstr contained "\<\(\l\|_\)\(\w\|'\)*\>" +" NOTE: for correct precedence, the rule for the wildcard (ocamlTypeAnyVar) +" must come after the rule for type constructors (ocamlTypeConstr). +syn match ocamlTypeAnyVar contained "\<_\>" +" NOTE: For correct precedence, these builtin names must occur after the rule +" for type constructors (ocamlTypeConstr) but before the rule for non-optional +" labeled arguments (ocamlTypeLabel). For the latter to take precedence over +" these builtin names, we use “syn match” here instead of “syn keyword”. +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" +syn match ocamlTypeBuiltin contained "\" + +syn cluster ocamlTypeExpr add=ocamlTypeLabel +syn match ocamlTypeLabel contained "?\?\(\l\|_\)\(\w\|'\)*\_s*:[>=]\@!" +hi link ocamlTypeLabel ocamlLabel + +" Object type +syn cluster ocamlTypeExpr add=ocamlTypeObject +syn region ocamlTypeObject contained +\ matchgroup=ocamlEncl start="<" +\ matchgroup=ocamlEncl end=">" +\ contains=ocamlTypeObjectDots,ocamlLCIdentifier,ocamlTypeObjectAnnot,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeObject ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypeObjectDots +syn match ocamlTypeObjectDots contained "\.\." +hi link ocamlTypeObjectDots ocamlKeyChar +syn cluster ocamlTypeContained add=ocamlTypeObjectAnnot +syn region ocamlTypeObjectAnnot contained +\ matchgroup=ocamlKeyChar start=":" +\ matchgroup=ocamlKeyChar end=";\|>\@=" +\ contains=@ocamlTypeExpr,ocamlComment,ocamlPpx +hi link ocamlTypeObjectAnnot ocamlTypeCatchAll + +" Record type definition +syn cluster ocamlTypeContained add=ocamlTypeRecordDecl +syn region ocamlTypeRecordDecl contained +\ matchgroup=ocamlEncl start="{" +\ matchgroup=ocamlEncl end="}" +\ contains=ocamlTypeMutable,ocamlLCIdentifier,ocamlTypeRecordAnnot,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeRecordDecl ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypeMutable +syn keyword ocamlTypeMutable contained mutable +hi link ocamlTypeMutable ocamlKeyword +syn cluster ocamlTypeContained add=ocamlTypeRecordAnnot +syn region ocamlTypeRecordAnnot contained +\ matchgroup=ocamlKeyChar start=":" +\ matchgroup=ocamlKeyChar end=";\|}\@=" +\ contains=@ocamlTypeExpr,ocamlComment,ocamlPpx +hi link ocamlTypeRecordAnnot ocamlTypeCatchAll + +" Polymorphic variant types +" NOTE: Carefully avoid catching "[@" here. +syn cluster ocamlTypeExpr add=ocamlTypeVariant +syn region ocamlTypeVariant contained +\ matchgroup=ocamlEncl start="\[>" start="\[<" start="\[@\@!" +\ matchgroup=ocamlEncl end="\]" +\ contains=ocamlTypeVariantKeyChar,ocamlTypeVariantConstr,ocamlTypeVariantAnnot,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeVariant ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypeVariantKeyChar +syn match ocamlTypeVariantKeyChar contained "|" +syn match ocamlTypeVariantKeyChar contained ">" +hi link ocamlTypeVariantKeyChar ocamlKeyChar +syn cluster ocamlTypeContained add=ocamlTypeVariantConstr +syn match ocamlTypeVariantConstr contained "`\w\(\w\|'\)*\>" +hi link ocamlTypeVariantConstr ocamlConstructor +syn cluster ocamlTypeContained add=ocamlTypeVariantAnnot +syn region ocamlTypeVariantAnnot contained +\ matchgroup=ocamlKeyword start="\" +\ matchgroup=ocamlKeyChar end="|\|>\|\]\@=" +\ contains=@ocamlTypeExpr,ocamlTypeAmp,ocamlComment,ocamlPpx +hi link ocamlTypeVariantAnnot ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypeAmp +syn match ocamlTypeAmp contained "&" +hi link ocamlTypeAmp ocamlTypeKeyChar + +" Sum type definition +syn cluster ocamlTypeContained add=ocamlTypeSumDecl +syn region ocamlTypeSumDecl contained +\ matchgroup=ocamlTypeSumBar start="|" +\ matchgroup=ocamlTypeSumConstr start="\<\u\(\w\|'\)*\>" +\ matchgroup=ocamlTypeSumConstr start="\" start="\" +\ matchgroup=ocamlTypeSumConstr start="(\_s*)" start="\[\_s*]" start="(\_s*::\_s*)" +\ matchgroup=NONE end="\(\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|)\|]\|}\|;\|;;\|=\)\@=" +\ matchgroup=NONE end="\(\\)\@=" +\ contains=ocamlTypeSumBar,ocamlTypeSumConstr,ocamlTypeSumAnnot,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeSumDecl ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypeSumBar +syn match ocamlTypeSumBar contained "|" +hi link ocamlTypeSumBar ocamlKeyChar +syn cluster ocamlTypeContained add=ocamlTypeSumConstr +syn match ocamlTypeSumConstr contained "\<\u\(\w\|'\)*\>" +syn match ocamlTypeSumConstr contained "\" +syn match ocamlTypeSumConstr contained "\" +syn match ocamlTypeSumConstr contained "(\_s*)" +syn match ocamlTypeSumConstr contained "\[\_s*]" +syn match ocamlTypeSumConstr contained "(\_s*::\_s*)" +hi link ocamlTypeSumConstr ocamlConstructor +syn cluster ocamlTypeContained add=ocamlTypeSumAnnot +syn region ocamlTypeSumAnnot contained +\ matchgroup=ocamlKeyword start="\" +\ matchgroup=ocamlKeyChar start=":" +\ matchgroup=NONE end="|\@=" +\ matchgroup=NONE end="\(\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|)\|]\|}\|;\|;;\)\@=" +\ matchgroup=NONE end="\(\\)\@=" +\ contains=@ocamlTypeExpr,ocamlTypeRecordDecl,ocamlComment,ocamlPpx +hi link ocamlTypeSumAnnot ocamlTypeCatchAll + +" Type context opened by “type” (type definition), “constraint” (type +" constraint) and “exception” (exception definition) +syn region ocamlTypeDef +\ matchgroup=ocamlKeyword start="\\(\_s\+\\)\?\|\\|\" +\ matchgroup=NONE end="\(\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|)\|]\|}\|;\|;;\)\@=" +\ contains=@ocamlTypeExpr,ocamlTypeEq,ocamlTypePrivate,ocamlTypeDefDots,ocamlTypeRecordDecl,ocamlTypeSumDecl,ocamlTypeDefAnd,ocamlComment,ocamlPpx +hi link ocamlTypeDef ocamlTypeCatchAll +syn cluster ocamlTypeContained add=ocamlTypePrivate +syn keyword ocamlTypePrivate contained private +hi link ocamlTypePrivate ocamlKeyword +syn cluster ocamlTypeContained add=ocamlTypeDefAnd +syn keyword ocamlTypeDefAnd contained and +hi link ocamlTypeDefAnd ocamlKeyword +syn cluster ocamlTypeContained add=ocamlTypeDefDots +syn match ocamlTypeDefDots contained "\.\." +hi link ocamlTypeDefDots ocamlKeyChar + +" When "exception" is preceded by "with", "|" or "(", that’s not an exception +" definition but an exception pattern; we simply highlight the keyword without +" starting a type context. +" NOTE: These rules must occur after that for "exception". +syn match ocamlKeyword "\"lc=4 +syn match ocamlKeyword "|\_s*exception\>"lc=1 +syn match ocamlKeyword "(\_s*exception\>"lc=1 + +" Type context opened by “:” (countless kinds of type annotations) and “:>” +" (type coercions) +syn region ocamlTypeAnnot matchgroup=ocamlKeyChar start=":\(>\|\_s*type\>\|[>:=]\@!\)" +\ matchgroup=NONE end="\(\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|)\|]\|}\|;\|;;\)\@=" +\ matchgroup=NONE end="\(;\|}\)\@=" +\ matchgroup=NONE end="\(=\|:>\)\@=" +\ contains=@ocamlTypeExpr,ocamlComment,ocamlPpx +hi link ocamlTypeAnnot ocamlTypeCatchAll + +" Type annotation that gives the return type of a `fun` keyword +" (the type context is ended by `->`) +syn cluster ocamlTypeContained add=ocamlFunTypeAnnot +syn region ocamlFunTypeAnnot contained containedin=ocamlFun +\ matchgroup=ocamlKeyChar start=":" +\ matchgroup=NONE end="\(->\)\@=" +\ contains=@ocamlTypeExpr,ocamlComment,ocamlPpx +hi link ocamlFunTypeAnnot ocamlTypeCatchAll + +" Module paths (including functors) in types. +" NOTE: This rule must occur after the rule for ocamlTypeSumDecl as it must take +" precedence over it (otherwise the module name would be mistakenly highlighted +" as a constructor). +" NOTE: Carefully avoid catching "(*" here. +syn cluster ocamlTypeExpr add=ocamlTypeModPath +syn match ocamlTypeModPath contained "\<\u\(\w\|'\)*\_s*\." +syn region ocamlTypeModPath contained transparent +\ matchgroup=ocamlModPath start="\<\u\(\w\|'\)*\_s*(\*\@!" +\ matchgroup=ocamlModPath end=")\_s*\." +\ contains=ocamlTypeDotlessModPath,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeModPath ocamlModPath +syn cluster ocamlTypeContained add=ocamlTypeDotlessModPath +syn match ocamlTypeDotlessModPath contained "\<\u\(\w\|'\)*\_s*\.\?" +syn region ocamlTypeDotlessModPath contained transparent +\ matchgroup=ocamlModPath start="\<\u\(\w\|'\)*\_s*(\*\@!" +\ matchgroup=ocamlModPath end=")\_s*\.\?" +\ contains=ocamlTypeDotlessModPath,ocamlTypeBlank,ocamlComment,ocamlPpx +hi link ocamlTypeDotlessModPath ocamlTypeModPath + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Synchronization +syn sync minlines=50 +syn sync maxlines=500 + +if !exists("ocaml_revised") + syn sync match ocamlDoSync grouphere ocamlDo "\" + syn sync match ocamlDoSync groupthere ocamlDo "\" +endif + +if exists("ocaml_revised") + syn sync match ocamlEndSync grouphere ocamlEnd "\<\(object\)\>" +else + syn sync match ocamlEndSync grouphere ocamlEnd "\<\(begin\|object\)\>" +endif + +syn sync match ocamlEndSync groupthere ocamlEnd "\" +syn sync match ocamlStructSync grouphere ocamlStruct "\" +syn sync match ocamlStructSync groupthere ocamlStruct "\" +syn sync match ocamlSigSync grouphere ocamlSig "\" +syn sync match ocamlSigSync groupthere ocamlSig "\" + +" Define the default highlighting. + +hi def link ocamlBraceErr Error +hi def link ocamlBrackErr Error +hi def link ocamlParenErr Error +hi def link ocamlArrErr Error + +hi def link ocamlCountErr Error +hi def link ocamlDoErr Error +hi def link ocamlDoneErr Error +hi def link ocamlEndErr Error +hi def link ocamlThenErr Error +hi def link ocamlKwErr Error + +hi def link ocamlCharErr Error + +hi def link ocamlErr Error + +hi def link ocamlComment Comment +hi def link ocamlShebang ocamlComment + +hi def link ocamlModPath Include +hi def link ocamlObject Include +hi def link ocamlModule Include +hi def link ocamlModParam1 Include +hi def link ocamlGenMod Include +hi def link ocamlFullMod Include +hi def link ocamlFuncWith Include +hi def link ocamlModParam Include +hi def link ocamlModTypeRestr Include +hi def link ocamlWith Include +hi def link ocamlMTDef Include +hi def link ocamlSigEncl ocamlModule +hi def link ocamlStructEncl ocamlModule + +hi def link ocamlScript Include + +hi def link ocamlConstructor Constant +hi def link ocamlEmptyConstructor ocamlConstructor + +hi def link ocamlVal Keyword +hi def link ocamlModTypePre Keyword +hi def link ocamlModPreRHS Keyword +hi def link ocamlFunctor Keyword +hi def link ocamlModTypeOf Keyword +hi def link ocamlKeyword Keyword +hi def link ocamlMethod Include +hi def link ocamlArrow Keyword +hi def link ocamlKeyChar Keyword +hi def link ocamlAnyVar Keyword +hi def link ocamlTopStop Keyword + +hi def link ocamlRefAssign ocamlKeyChar +hi def link ocamlEqual ocamlKeyChar +hi def link ocamlCons ocamlInfixOp + +hi def link ocamlPrefixOp ocamlOperator +hi def link ocamlInfixOp ocamlOperator +hi def link ocamlExtensionOp ocamlOperator +hi def link ocamlIndexingOp ocamlOperator + +if exists("ocaml_highlight_operators") + hi def link ocamlInfixOpKeyword ocamlOperator + hi def link ocamlOperator Operator +else + hi def link ocamlInfixOpKeyword Keyword +endif + +hi def link ocamlBoolean Boolean +hi def link ocamlCharacter Character +hi def link ocamlNumber Number +hi def link ocamlFloat Float +hi def link ocamlString String +hi def link ocamlQuotedStringDelim Identifier + +hi def link ocamlLabel Identifier + +" Type linting groups that the user can customize: +" - ocamlTypeCatchAll: anything in a type context that is not caught by more +" specific rules (in principle, this should only match syntax errors) +" - ocamlTypeConstr: type constructors +" - ocamlTypeBuiltin: builtin type constructors (like int or list) +" - ocamlTypeVar: type variables ('a) +" - ocamlTypeAnyVar: wildcard (_) +" - ocamlTypeVariance: variance and injectivity indications (+'a, !'a) +" - ocamlTypeKeyChar: symbols such as -> and * +" Default values below mimick the behavior before the type linter was +" implemented, but now we can do better. :-) +hi def link ocamlTypeCatchAll Error +hi def link ocamlTypeConstr NONE +hi def link ocamlTypeBuiltin Type +hi def link ocamlTypeVar NONE +hi def link ocamlTypeAnyVar NONE +hi def link ocamlTypeVariance ocamlKeyChar +hi def link ocamlTypeKeyChar ocamlKeyChar + +hi def link ocamlTodo Todo + +hi def link ocamlEncl Keyword + +hi def link ocamlPpxEncl ocamlEncl + +let b:current_syntax = "ocaml" + +let &cpo = s:keepcpo +unlet s:keepcpo + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/occam.vim b/git/usr/share/vim/vim92/syntax/occam.vim new file mode 100644 index 0000000000000000000000000000000000000000..01d139bd094a65a59efef87e3bdab2af4e6c885a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/occam.vim @@ -0,0 +1,116 @@ +" Vim syntax file +" Language: occam +" Copyright: Fred Barnes , Mario Schweigler +" Maintainer: Mario Schweigler +" Last Change: 24 May 2003 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +"{{{ Settings +" Set shift width for indent +setlocal shiftwidth=2 +" Set the tab key size to two spaces +setlocal softtabstop=2 +" Let tab keys always be expanded to spaces +setlocal expandtab + +" Dots are valid in occam identifiers +setlocal iskeyword+=. +"}}} + +syn case match + +syn keyword occamType BYTE BOOL INT INT16 INT32 INT64 REAL32 REAL64 ANY +syn keyword occamType CHAN DATA OF TYPE TIMER INITIAL VAL PORT MOBILE PLACED +syn keyword occamType PROCESSOR PACKED RECORD PROTOCOL SHARED ROUND TRUNC + +syn keyword occamStructure SEQ PAR IF ALT PRI FORKING PLACE AT + +syn keyword occamKeyword PROC IS TRUE FALSE SIZE RECURSIVE REC +syn keyword occamKeyword RETYPES RESHAPES STEP FROM FOR RESCHEDULE STOP SKIP FORK +syn keyword occamKeyword FUNCTION VALOF RESULT ELSE CLONE CLAIM +syn keyword occamBoolean TRUE FALSE +syn keyword occamRepeat WHILE +syn keyword occamConditional CASE +syn keyword occamConstant MOSTNEG MOSTPOS + +syn match occamBrackets /\[\|\]/ +syn match occamParantheses /(\|)/ + +syn keyword occamOperator AFTER TIMES MINUS PLUS INITIAL REM AND OR XOR NOT +syn keyword occamOperator BITAND BITOR BITNOT BYTESIN OFFSETOF + +syn match occamOperator /::\|:=\|?\|!/ +syn match occamOperator /<\|>\|+\|-\|\*\|\/\|\\\|=\|\~/ +syn match occamOperator /@\|\$\$\|%\|&&\|<&\|&>\|<\]\|\[>\|\^/ + +syn match occamSpecialChar /\M**\|*'\|*"\|*#\(\[0-9A-F\]\+\)/ contained +syn match occamChar /\M\L\='\[^*\]'/ +syn match occamChar /L'[^']*'/ contains=occamSpecialChar + +syn case ignore +syn match occamTodo /\:\=/ contained +syn match occamNote /\:\=/ contained +syn case match +syn keyword occamNote NOT contained + +syn match occamComment /--.*/ contains=occamCommentTitle,occamTodo,occamNote +syn match occamCommentTitle /--\s*\u\a*\(\s\+\u\a*\)*:/hs=s+2 contained contains=occamTodo,occamNote +syn match occamCommentTitle /--\s*KROC-LIBRARY\(\.so\|\.a\)\=\s*$/hs=s+2 contained +syn match occamCommentTitle /--\s*\(KROC-OPTIONS:\|RUN-PARAMETERS:\)/hs=s+2 contained + +syn match occamIdentifier /\<[A-Z.][A-Z.0-9]*\>/ +syn match occamFunction /\<[A-Za-z.][A-Za-z0-9.]*\>/ contained + +syn match occamPPIdentifier /##.\{-}\>/ + +syn region occamString start=/"/ skip=/\M*"/ end=/"/ contains=occamSpecialChar +syn region occamCharString start=/'/ end=/'/ contains=occamSpecialChar + +syn match occamNumber /\<\d\+\(\.\d\+\(E\(+\|-\)\d\+\)\=\)\=/ +syn match occamNumber /-\d\+\(\.\d\+\(E\(+\|-\)\d\+\)\=\)\=/ +syn match occamNumber /#\(\d\|[A-F]\)\+/ +syn match occamNumber /-#\(\d\|[A-F]\)\+/ + +syn keyword occamCDString SHARED EXTERNAL DEFINED NOALIAS NOUSAGE NOT contained +syn keyword occamCDString FILE LINE PROCESS.PRIORITY OCCAM2.5 contained +syn keyword occamCDString USER.DEFINED.OPERATORS INITIAL.DECL MOBILES contained +syn keyword occamCDString BLOCKING.SYSCALLS VERSION NEED.QUAD.ALIGNMENT contained +syn keyword occamCDString TARGET.CANONICAL TARGET.CPU TARGET.OS TARGET.VENDOR contained +syn keyword occamCDString TRUE FALSE AND OR contained +syn match occamCDString /<\|>\|=\|(\|)/ contained + +syn region occamCDirective start=/#\(USE\|INCLUDE\|PRAGMA\|DEFINE\|UNDEFINE\|UNDEF\|IF\|ELIF\|ELSE\|ENDIF\|WARNING\|ERROR\|RELAX\)\>/ end=/$/ contains=occamString,occamComment,occamCDString + + +hi def link occamType Type +hi def link occamKeyword Keyword +hi def link occamComment Comment +hi def link occamCommentTitle PreProc +hi def link occamTodo Todo +hi def link occamNote Todo +hi def link occamString String +hi def link occamCharString String +hi def link occamNumber Number +hi def link occamCDirective PreProc +hi def link occamCDString String +hi def link occamPPIdentifier PreProc +hi def link occamBoolean Boolean +hi def link occamSpecialChar SpecialChar +hi def link occamChar Character +hi def link occamStructure Structure +hi def link occamIdentifier Identifier +hi def link occamConstant Constant +hi def link occamOperator Operator +hi def link occamFunction Ignore +hi def link occamRepeat Repeat +hi def link occamConditional Conditional +hi def link occamBrackets Type +hi def link occamParantheses Delimiter + + +let b:current_syntax = "occam" + diff --git a/git/usr/share/vim/vim92/syntax/odin.vim b/git/usr/share/vim/vim92/syntax/odin.vim new file mode 100644 index 0000000000000000000000000000000000000000..efa107b79fcf2c4255124e0f4266330f8945cfb2 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/odin.vim @@ -0,0 +1,105 @@ +vim9script + +# Vim syntax file +# Language: Odin +# Maintainer: Maxim Kim +# Website: https://github.com/habamax/vim-odin +# Last Change: 2026-02-02 + +if exists("b:current_syntax") + finish +endif + +syntax keyword odinKeyword using transmute cast auto_cast distinct opaque where dynamic +syntax keyword odinKeyword struct enum union const bit_field bit_set +syntax keyword odinKeyword package proc map import export foreign +syntax keyword odinKeyword size_of offset_of type_info_of typeid_of type_of align_of +syntax keyword odinKeyword return defer +syntax keyword odinKeyword inline no_inline +syntax keyword odinKeyword asm context + +syntax keyword odinConditional if when else do for switch case fallthrough +syntax keyword odinConditional continue or_continue break or_break or_return or_else +syntax keyword odinType string cstring bool b8 b16 b32 b64 rune any rawptr +syntax keyword odinType f16 f32 f64 f16le f16be f32le f32be f64le f64be +syntax keyword odinType u8 u16 u32 u64 u128 u16le u32le u64le u128le u16be +syntax keyword odinType u32be u64be u128be uint uintptr i8 i16 i32 i64 i128 +syntax keyword odinType i16le i32le i64le i128le i16be i32be i64be i128be +syntax keyword odinType int complex complex32 complex64 complex128 matrix typeid +syntax keyword odinType quaternion quaternion64 quaternion128 quaternion256 +syntax keyword odinBool true false +syntax keyword odinNull nil +syntax match odinUninitialized '\s\+---\(\s\|$\)' + +syntax keyword odinOperator in notin not_in +syntax match odinOperator "?" display +syntax match odinOperator "->" display + +syntax match odinTodo "TODO" contained +syntax match odinTodo "XXX" contained +syntax match odinTodo "FIXME" contained +syntax match odinTodo "HACK" contained + +syntax region odinRawString start=+`+ end=+`+ +syntax region odinChar start=+'+ skip=+\\\\\|\\'+ end=+'+ +syntax region odinString start=+"+ skip=+\\\\\|\\'+ end=+"+ contains=odinEscape +syntax match odinEscape display contained /\\\([nrt\\'"]\|x\x\{2}\)/ + +syntax match odinProcedure "\v<\w*>(\s*::\s*proc)@=" + +syntax match odinAttribute "@\ze\<\w\+\>" display +syntax region odinAttribute + \ matchgroup=odinAttribute + \ start="@\ze(" end="\ze)" + \ transparent oneline + +syntax match odinInteger "\v-?<[0-9]+%(_[0-9]+)*>" display +syntax match odinFloat "\v-?<[0-9]+%(_[0-9]+)*%(\.[0-9]+%(_[0-9]+)*)%([eE][+-]=[0-9]+%(_[0-9]+)*)=" display +syntax match odinHex "\v<0[xX][0-9A-Fa-f]+%(_[0-9A-Fa-f]+)*>" display +syntax match odinDoz "\v<0[zZ][0-9A-Ba-b]+%(_[0-9A-Ba-b]+)*>" display +syntax match odinOct "\v<0[oO][0-7]+%(_[0-7]+)*>" display +syntax match odinBin "\v<0[bB][01]+%(_[01]+)*>" display + +syntax match odinAddressOf "&" display +syntax match odinDeref "\^" display + +syntax match odinMacro "#\<\w\+\>" display +syntax region odinFeature matchgroup=odinMacro start="#+\<\w\+\>" end="$" oneline display + +syntax match odinTemplate "$\<\w\+\>" + +syntax region odinLineComment start=/\/\// end=/$/ contains=@Spell,odinTodo +syntax region odinBlockComment start=/\/\*/ end=/\*\// contains=@Spell,odinTodo,odinBlockComment +syn sync ccomment odinBlockComment + +highlight def link odinKeyword Statement +highlight def link odinConditional Conditional +highlight def link odinOperator Operator + +highlight def link odinString String +highlight def link odinRawString String +highlight def link odinChar Character +highlight def link odinEscape Special + +highlight def link odinProcedure Function + +highlight def link odinMacro PreProc + +highlight def link odinLineComment Comment +highlight def link odinBlockComment Comment + +highlight def link odinTodo Todo + +highlight def link odinAttribute Statement +highlight def link odinType Type +highlight def link odinBool Boolean +highlight def link odinNull Constant +highlight def link odinUninitialized Constant +highlight def link odinInteger Number +highlight def link odinFloat Float +highlight def link odinHex Number +highlight def link odinOct Number +highlight def link odinBin Number +highlight def link odinDoz Number + +b:current_syntax = "odin" diff --git a/git/usr/share/vim/vim92/syntax/omnimark.vim b/git/usr/share/vim/vim92/syntax/omnimark.vim new file mode 100644 index 0000000000000000000000000000000000000000..9b12d5ecdd437ddd31f621571745dab93e7db135 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/omnimark.vim @@ -0,0 +1,833 @@ +vim9script +# Vim syntax file +# Language: OmniMark +# Maintainer: Peter Kenny +# Previous Maintainer: Paul Terray +# Last Change: 2025-03-23 +# License: Vim (see :help license) +# History: 2000-10-11 Vintage minimal syntax file (Paul Terray) +# +# - Syntax is grouped, generally, by type (action to rule), using the +# version 12 headings. Refer: +# https://developers.stilo.com/docs/html/keyword/type.html +# - Deprecated/legacy syntax back to version 4 is included. +# - OmniMark is largely case insensitive, with handled exceptions (e.g., %g) +# ---------------------------------------------------------------------------- +syntax case ignore +# Current syntax exists: finish {{{ +if exists("b:current_syntax") + finish +endif +# }}} +# Keyword characters {{{ +# !#%&*+-/0123456789<=>@ +# ABCDEFGHIJKLMNOPQRSTUVWXYZ +# \_abcdefghijklmnopqrstuvwxyz|~ +setlocal iskeyword=33,35,37-38,42-43,45,47-57,60-62,64-90,92,95,97-122,124,126 +# }}} +# _ action {{{ +syntax keyword omnimarkAction activate +syntax keyword omnimarkAction assert +syntax keyword omnimarkAction clear +syntax keyword omnimarkAction close +syntax keyword omnimarkAction collect-garbage +syntax match omnimarkAction "\v\c<%(copy)%(-clear)?" +syntax keyword omnimarkAction deactivate +syntax keyword omnimarkAction decrement +syntax keyword omnimarkAction discard +syntax keyword omnimarkAction flush +syntax match omnimarkAction "\v\c<%(halt)%(-everything)?" +syntax keyword omnimarkAction increment +syntax keyword omnimarkAction log +syntax keyword omnimarkAction log-message +syntax keyword omnimarkAction match +syntax keyword omnimarkAction new + # new takes before and after (as in new x{"wilma"} after [2]) + syntax keyword omnimarkAction after + syntax keyword omnimarkAction before +# This is the only way 'next' is used (and it cannot be 'isnt'): +syntax match omnimarkAction "\v\c<%(next\s+group\s+is)" +syntax keyword omnimarkAction not-reached +syntax keyword omnimarkAction open +syntax match omnimarkAction "\v\c<%(output)%(-to)?" +syntax keyword omnimarkAction put +# When alone, 'referent' is nearly always 'put...referent,' which is an action +syntax keyword omnimarkAction referent +syntax match omnimarkAction "\v\c<%(remove)%(\s+key\s+of)?" +syntax keyword omnimarkAction reopen +syntax keyword omnimarkAction reset +syntax keyword omnimarkAction return +# 'scan' because it can start a line in a block of 'do *-parse ... done' +syntax keyword omnimarkAction scan +syntax match omnimarkAction "\v\c<%(set)%(\s+%(buffer|creator\s+of|external-function|file|function-library|key\s+of|new|referent|stream))?" +syntax keyword omnimarkAction sgml-in +syntax keyword omnimarkAction sgml-out +syntax keyword omnimarkAction signal +syntax keyword omnimarkAction submit +syntax keyword omnimarkAction suppress +syntax keyword omnimarkAction throw +syntax keyword omnimarkAction void +# }}} +# _ built-in data type {{{ +# attribute-declaration: Every attribute-declaration instance has two +# properties: attribute-default-declaration and +# attribute-value-declaration +# attribute-default-declaration: is the abstract type of declared defaults for +# unspecified attribute values. Its concrete +# instances can be obtained with the following +# four constants: +syntax keyword omnimarkConstant attribute-declared-conref +syntax keyword omnimarkConstant attribute-declared-current +syntax keyword omnimarkConstant attribute-declared-implied +syntax keyword omnimarkConstant attribute-declared-required +# and with two operators which take a string +# default value argument: +syntax match omnimarkOperator "\v\c<%(attribute-declared-defaulted\s+to)" +syntax match omnimarkOperator "\v\c<%(attribute-declared-fixed to)" +# attribute-value-declaration: is the abstract type of values that an +# attribute is declared to accept. Its concrete +# instances can be obtained with the following +# constants: +syntax match omnimarkConstant "\v\c<%(attribute-declared-fixed to)" +syntax keyword omnimarkConstant attribute-declared-id +syntax keyword omnimarkConstant attribute-declared-idref +syntax keyword omnimarkConstant attribute-declared-idrefs +syntax keyword omnimarkConstant attribute-declared-name +syntax keyword omnimarkConstant attribute-declared-names +syntax keyword omnimarkConstant attribute-declared-nmtoken +syntax keyword omnimarkConstant attribute-declared-nmtokens +syntax keyword omnimarkConstant attribute-declared-number +syntax keyword omnimarkConstant attribute-declared-numbers +syntax keyword omnimarkConstant attribute-declared-nutoken +syntax keyword omnimarkConstant attribute-declared-nutokens +# and with one operator that takes a string shelf +# argument listing all the values allowed for the +# attribute: +syntax keyword omnimarkOperator attribute-declared-group +# content-model - the following six constants are the only possible values: +syntax keyword omnimarkConstant any-content-model +syntax keyword omnimarkConstant cdata-content-model +syntax keyword omnimarkConstant element-content-model +syntax keyword omnimarkConstant empty-content-model +syntax keyword omnimarkConstant mixed-content-model +syntax keyword omnimarkConstant rcdata-content-model +# refer also: +# developers.stilo.com/docs/html/keyword/create-element-declaration.html +# +# declared-attribute is and abstract type with subtypes: +# implied-attribute +# specified-attribute +# dtd abstract data type has subtypes: +# sgml-dtd +# xml-dtd +# element-declaration +# entity-declaration +# markup-element-event +# markup-event has subtypes: +# markup-point-event +# markup-region-event +# }}} +# _ built-in entity {{{ +syntax match omnimarkBuiltinEntity "\v\c<%(#capacity)" +syntax match omnimarkBuiltinEntity "\v\c<%(#charset)" +syntax match omnimarkBuiltinEntity "\v\c<%(#document)" +syntax match omnimarkBuiltinEntity "\v\c<%(#dtd)" +syntax match omnimarkBuiltinEntity "\v\c<%(#implied)" +syntax match omnimarkBuiltinEntity "\v\c<%(#schema)" +syntax match omnimarkBuiltinEntity "\v\c<%(#syntax)" +# }}} +# _ built-in shelf {{{ +syntax match omnimarkBuiltinShelf "\v\c<%(#additional-info)" +syntax match omnimarkBuiltinShelf "\v\c<%(#appinfo)" +syntax match omnimarkBuiltinShelf "\v\c<%(#args)" +syntax match omnimarkBuiltinShelf "\v\c<%(#class)" +syntax match omnimarkBuiltinShelf "\v\c<%(#command-line-names)" +syntax match omnimarkBuiltinShelf "\v\c<%(#console)" +syntax match omnimarkBuiltinShelf "\v\c<%(#content)" +syntax match omnimarkBuiltinShelf "\v\c<%(#current-dtd)" +syntax match omnimarkBuiltinShelf "\v\c<%(#current-input)" +syntax match omnimarkBuiltinShelf "\v\c<%(#current-markup-event)" +syntax match omnimarkBuiltinShelf "\v\c<%(#current-output)" +syntax match omnimarkBuiltinShelf "\v\c<%(#doctype)" +syntax match omnimarkBuiltinShelf "\v\c<%(#error)" +syntax match omnimarkBuiltinShelf "\v\c<%(#error-code)" +syntax match omnimarkBuiltinShelf "\v\c<%(#file-name)" +syntax match omnimarkBuiltinShelf "\v\c<%(#language-version)" +syntax match omnimarkBuiltinShelf "\v\c<%(#libpath)" +syntax match omnimarkBuiltinShelf "\v\c<%(#library)" +syntax match omnimarkBuiltinShelf "\v\c<%(#libvalue)" +syntax match omnimarkBuiltinShelf "\v\c<%(#line-number)" +syntax match omnimarkBuiltinShelf "\v\c<%(#log)" +syntax match omnimarkBuiltinShelf "\v\c<%(#main-input)" +syntax match omnimarkBuiltinShelf "\v\c<%(#main-output)" +syntax match omnimarkBuiltinShelf "\v\c<%(#markup-error-count)" +syntax match omnimarkBuiltinShelf "\v\c<%(#markup-error-total)" +syntax match omnimarkBuiltinShelf "\v\c<%(#markup-parser)" +syntax match omnimarkBuiltinShelf "\v\c<%(#markup-warning-count)" +syntax match omnimarkBuiltinShelf "\v\c<%(#markup-warning-total)" +syntax match omnimarkBuiltinShelf "\v\c<%(#message)" +syntax match omnimarkBuiltinShelf "\v\c<%(#output)" +syntax match omnimarkBuiltinShelf "\v\c<%(#platform-info)" +syntax match omnimarkBuiltinShelf "\v\c<%(#process-input)" +syntax match omnimarkBuiltinShelf "\v\c<%(#process-output)" +syntax match omnimarkBuiltinShelf "\v\c<%(#recovery-info)" +syntax match omnimarkBuiltinShelf "\v\c<%(#sgml)" +syntax match omnimarkBuiltinShelf "\v\c<%(#sgml-error-count)" +syntax match omnimarkBuiltinShelf "\v\c<%(#sgml-error-total)" +syntax match omnimarkBuiltinShelf "\v\c<%(#sgml-warning-count)" +syntax match omnimarkBuiltinShelf "\v\c<%(#sgml-warning-total)" +syntax match omnimarkBuiltinShelf "\v\c<%(#suppress)" +syntax match omnimarkBuiltinShelf "\v\c<%(#xmlns-names)" +syntax keyword omnimarkBuiltinShelf attributes +syntax match omnimarkBuiltinShelf "\v\c<%(current)%(\s+%(element%(s)?|dtd|sgml-dtd))" +syntax keyword omnimarkBuiltinShelf data-attributes +syntax keyword omnimarkBuiltinShelf referents +syntax keyword omnimarkBuiltinShelf sgml-dtds + # deprecated synonym for sgml-dtds: + syntax keyword omnimarkBuiltinShelf dtds +syntax keyword omnimarkBuiltinShelf xml-dtds +syntax match omnimarkBuiltinShelf "\v\c<%(specified\s+attributes)" +# }}} +# _ catch name {{{ +syntax match omnimarkCatchName "\v\c<%(#external-exception)" + # external exception parameters + syntax keyword omnimarkCatchName identity + syntax keyword omnimarkCatchName message +syntax keyword omnimarkCatchName location +syntax match omnimarkCatchName "\v\c<%(#markup-end)" +syntax match omnimarkCatchName "\v\c<%(#markup-point)" +syntax match omnimarkCatchName "\v\c<%(#markup-start)" +syntax match omnimarkCatchName "\v\c<%(#program-error)" +# }}} +# _ constant {{{ +syntax keyword omnimarkConstant false +syntax keyword omnimarkConstant true +# Example: local stream u initial {unattached} +syntax keyword omnimarkConstant unattached +# }}} +# _ control structure {{{ +syntax match omnimarkControlStructure "\v\c<%(#first)" +syntax match omnimarkControlStructure "\v\c<%(#group)" +syntax match omnimarkControlStructure "\v\c<%(#item)" +syntax match omnimarkControlStructure "\v\c<%(#last)" +syntax match omnimarkControlStructure "\v%(\s)?%(-\>)%(\s)?" +syntax keyword omnimarkControlStructure again +syntax keyword omnimarkControlStructure always +syntax keyword omnimarkControlStructure as +syntax keyword omnimarkControlStructure case +syntax keyword omnimarkControlStructure catch +syntax match omnimarkControlStructure "\v\c<%(do)>%(%(\s|\n)+%((markup|sgml|xml)-parse|scan|select|select-type|skip%(\s+over)?|unless|when))?" + # with id-checking and with utf-8, example: + # do sgml-parse document with id-checking false scan file "my.sgml" + syntax keyword omnimarkControlStructure id-checking + syntax keyword omnimarkControlStructure utf-8 + syntax keyword omnimarkControlStructure with +syntax keyword omnimarkControlStructure done +syntax keyword omnimarkControlStructure else +syntax keyword omnimarkControlStructure exit +syntax match omnimarkControlStructure "\v\c<%(repeat)>%(\s+%(for|over%(\s+current elements)?|scan|to))?" + # Example: repeat over reversed + syntax keyword omnimarkControlStructure reversed +# Note: repeat over attribute(s) not needed - handled separately +# Note: repeat over data-attribute(s) not needed - handled separately +# Note: repeat over referents not needed - handled separately +syntax keyword omnimarkControlStructure rethrow +syntax keyword omnimarkControlStructure select +syntax keyword omnimarkControlStructure unless +syntax match omnimarkControlStructure "\v\c<%(using)%( %(%(data-)?attribute%(s)?|catch|group|input as|nested-referents|output\s+as|referents))?" +syntax keyword omnimarkControlStructure when +# }}} +# _ data type {{{ +# (not a v12 heading) +syntax keyword omnimarkDataType bcd +syntax keyword omnimarkDataType counter +# db.database data type - refer omdb, below, for library functions +syntax match omnimarkDataType "\v\c<%(db)%([.])?%(database)" +syntax keyword omnimarkDataType document +syntax keyword omnimarkDataType float +syntax keyword omnimarkDataType instance +syntax match omnimarkDataType "\v\c<%(int32)" +syntax keyword omnimarkDataType integer +syntax match omnimarkDataType "\v\c<%(markup\s+sink)" +syntax match omnimarkDataType "\v\c<%(markup\s+source)" +syntax keyword omnimarkDataType pattern +syntax keyword omnimarkDataType string +syntax match omnimarkDataType "\v\c<%(string\s+sink)" +syntax match omnimarkDataType "\v\c<%(string\s+source)" +syntax keyword omnimarkDataType stream +syntax keyword omnimarkDataType string +syntax keyword omnimarkDataType subdocument +syntax keyword omnimarkDataType switch +# }}} +# _ declaration/definition {{{ +syntax keyword omnimarkDeclaration constant +syntax keyword omnimarkDeclaration context-translate +syntax keyword omnimarkDeclaration created by +syntax keyword omnimarkDeclaration cross-translate +syntax keyword omnimarkDeclaration declare +syntax match omnimarkDeclaration "\v\c<%(declare)%(\s+%(data-letters|function-library|heralded-names|markup-identification))?" +# Note: declare #error, #main-input, #main-output, #process-input, +# #process-output, catch, data-letters, function-library, letters, +# name-letters, no-default-io, opaque, record +# - Those are all handed as separate keywords/matches +syntax match omnimarkDeclaration "\v\c<%(define\s+conversion-function)" +syntax match omnimarkDeclaration "\v\c<%(define\s+external)\s+%(source\s+)?%(function)" + # in function-library is part of an external function + syntax match omnimarkDeclaration "\v\c<%(in\s+function-library)" +syntax match omnimarkDeclaration "\v\c<%(define\s+external\s+output)" +syntax match omnimarkDeclaration "\v\c<%(define\s+function)" +syntax match omnimarkDeclaration "\v\c<%(define\s+\w+function)" + # Example: define integer function add (value integer x, value ...) + syntax keyword omnimarkDeclaration value +syntax match omnimarkDeclaration "\v\c<%(define\s+infix-function)" +syntax match omnimarkDeclaration "\v\c<%(define\s+overloaded\s+function)" +syntax match omnimarkDeclaration "\v\c<%(define\s+string\s+sink\s+function)" +syntax match omnimarkDeclaration "\v\c<%(define\s+string\s+source\s+function)" +# Some combinations are missed, so the general, 'define', is needed too: +syntax match omnimarkDeclaration "\v\c<%(define\s+)" +syntax keyword omnimarkDeclaration delimiter +syntax keyword omnimarkDeclaration domain-bound +syntax keyword omnimarkDeclaration down-translate +syntax keyword omnimarkDeclaration dynamic +syntax keyword omnimarkDeclaration elsewhere +syntax keyword omnimarkDeclaration escape +syntax match omnimarkDeclaration "\v\c<%(export\s+as\s+opaque)" +syntax keyword omnimarkDeclaration export +syntax keyword omnimarkDeclaration field +syntax keyword omnimarkDeclaration function +syntax keyword omnimarkDeclaration global +syntax match omnimarkDeclaration "\v\c<%(group)%(s)?" +syntax keyword omnimarkDeclaration import +syntax match omnimarkDeclaration "\v\c<%(include)%(-guard)?" +syntax match omnimarkDeclaration "\v\c<%(initial)%(-size)?" +syntax keyword omnimarkDeclaration letters +syntax keyword omnimarkDeclaration library +syntax keyword omnimarkDeclaration local +syntax match omnimarkDeclaration "\v\c<%(macro)%(-end)?" + # macros can take an arg and/or a token (or args or tokens) + syntax keyword omnimarkDeclaration arg + syntax keyword omnimarkDeclaration token +syntax keyword omnimarkDeclaration modifiable +syntax keyword omnimarkDeclaration module +syntax keyword omnimarkDeclaration name-letters +syntax match omnimarkDeclaration "\v\c<%(namecase\s+entity)" +syntax match omnimarkDeclaration "\v\c<%(namecase\s+general)" +syntax keyword omnimarkDeclaration newline +syntax keyword omnimarkDeclaration no-default-io +syntax keyword omnimarkDeclaration opaque +syntax keyword omnimarkDeclaration optional +syntax keyword omnimarkDeclaration overriding +syntax match omnimarkDeclaration "\v\c<%(prefixed\s+by)" +syntax keyword omnimarkDeclaration read-only +syntax keyword omnimarkDeclaration record +syntax keyword omnimarkDeclaration remainder +syntax keyword omnimarkDeclaration require +syntax keyword omnimarkDeclaration save +syntax keyword omnimarkDeclaration save-clear +syntax keyword omnimarkDeclaration silent-referent +syntax keyword omnimarkDeclaration size +syntax keyword omnimarkDeclaration supply +syntax keyword omnimarkDeclaration symbol +syntax keyword omnimarkDeclaration unprefixed +syntax keyword omnimarkDeclaration up-translate +syntax keyword omnimarkDeclaration use +syntax keyword omnimarkDeclaration variable +syntax keyword omnimarkDeclaration write-only +# }}} +# _ element qualifier {{{ +syntax keyword omnimarkElementQualifier ancestor +syntax keyword omnimarkElementQualifier doctype +syntax keyword omnimarkElementQualifier document-element +syntax match omnimarkElementQualifier "\v\c<%(open\s+element)" +syntax keyword omnimarkElementQualifier parent +syntax keyword omnimarkElementQualifier preparent +syntax keyword omnimarkElementQualifier previous +# }}} +# _ modifier {{{ +syntax match omnimarkModifier "\v\c<%(#base)" +syntax match omnimarkModifier "\v\c<%(#full)" +syntax match omnimarkModifier "\v\c<%(#xmlns)" +syntax keyword omnimarkModifier append +syntax keyword omnimarkModifier binary-input +syntax keyword omnimarkModifier binary-mode +syntax keyword omnimarkModifier binary-output +syntax keyword omnimarkModifier break-width +syntax keyword omnimarkModifier buffered +syntax match omnimarkModifier "\v\c<%(declare\s+#main-output\s+has\s+domain-free)" +syntax keyword omnimarkModifier defaulting +syntax keyword omnimarkModifier domain-free +syntax keyword omnimarkModifier notation +# of may be standalone, e.g., data-attribute colwidth of (attribute name) +syntax match omnimarkModifier "\v\c<%(of)%(\s%(ancestor|doctype|element|open element|%(pre)?parent))?" +syntax keyword omnimarkModifier referents-allowed +syntax keyword omnimarkModifier referents-displayed +syntax keyword omnimarkModifier referents-not-allowed +syntax keyword omnimarkModifier text-mode +syntax keyword omnimarkModifier unbuffered +# : (field selection operator) [not included] +# ` (keyword access character) [not included] +# }}} +# _ operator {{{ +syntax keyword omnimarkOperator ! +syntax keyword omnimarkOperator not +syntax keyword omnimarkOperator != +# 'isnt equal' is handled by separate keywords +syntax keyword omnimarkOperator !== +syntax match omnimarkOperator "\%(#!\)" +syntax match omnimarkOperator "\v\c<%(#empty)" +# Example: usemap is #none: +syntax match omnimarkOperator "\v\c<%(#none)" +syntax keyword omnimarkOperator % +syntax keyword omnimarkOperator format +syntax keyword omnimarkOperator & +syntax keyword omnimarkOperator and +syntax keyword omnimarkOperator * +syntax keyword omnimarkOperator times +syntax keyword omnimarkOperator ** +syntax keyword omnimarkOperator power +syntax keyword omnimarkOperator + +syntax keyword omnimarkOperator plus +syntax keyword omnimarkOperator - +syntax keyword omnimarkOperator minus +syntax keyword omnimarkOperator negate +syntax keyword omnimarkOperator / +syntax keyword omnimarkOperator divide +syntax keyword omnimarkOperator < +syntax keyword omnimarkOperator less-than +syntax keyword omnimarkOperator greater-equal +syntax keyword omnimarkOperator <= +syntax keyword omnimarkOperator less-equal +syntax keyword omnimarkOperator = +syntax keyword omnimarkOperator equal +# 'is equal' is handled by separate keywords +syntax keyword omnimarkOperator == +syntax match omnimarkOperator "\v<[=][>]\s*" +syntax keyword omnimarkOperator > +syntax keyword omnimarkOperator greater-than +syntax keyword omnimarkOperator >= +syntax keyword omnimarkOperator greater-equal +syntax keyword omnimarkOperator abs +syntax keyword omnimarkOperator active +syntax keyword omnimarkOperator attribute + # attribute is defaulted, implied, specified: split to single keywords + # because it can be isnt too. Similarly for ancestor (is/isnt) + # with ancestor being an element qualifier. + # Tests for element attributes, e.g.: + # do when attribute myid is (id | idref | idrefs) + # cdata (already omnimarkPattern) + # name (already omnimarkOperator) + syntax keyword omnimarkAttributeType names + # number: match rather than keyword since "number of" is an operator + syntax match omnimarkAttributeType "\v\c<%(number)" + syntax keyword omnimarkAttributeType numbers + syntax keyword omnimarkAttributeType nmtoken + syntax keyword omnimarkAttributeType nmtokens + syntax keyword omnimarkAttributeType nutoken + syntax keyword omnimarkAttributeType nutokens + syntax keyword omnimarkAttributeType id + syntax keyword omnimarkAttributeType idref + syntax keyword omnimarkAttributeType idrefs + # notation (already omnimarkModifier) + # entity (already omnimarkOperator) + # entities (already omnimarkOperator) +syntax keyword omnimarkOperator base +syntax keyword omnimarkOperator binary +syntax keyword omnimarkOperator cast +syntax keyword omnimarkOperator ceiling +syntax keyword omnimarkOperator children +syntax keyword omnimarkOperator compiled-date +syntax keyword omnimarkOperator complement +syntax match omnimarkOperator "\v\c<%(content\s+of)" +syntax keyword omnimarkOperator create-attribute-declaration +syntax keyword omnimarkOperator create-element-declaration +syntax keyword omnimarkOperator create-element-event +syntax keyword omnimarkOperator create-processing-instruction-event +syntax keyword omnimarkOperator create-specified-attribute +syntax keyword omnimarkOperator create-unspecified-attribute +syntax keyword omnimarkOperator creating +syntax match omnimarkOperator "\v\c<%(creator\s+of)" +syntax keyword omnimarkOperator data-attribute +syntax keyword omnimarkOperator date +syntax match omnimarkOperator "\v\c<%(declaration\s+of)" +syntax keyword omnimarkOperator declared-elements +syntax keyword omnimarkOperator declared-general-entities +syntax keyword omnimarkOperator declared-parameter-entities +syntax keyword omnimarkOperator defaulted +syntax keyword omnimarkOperator difference +syntax match omnimarkOperator "\v\c<%(doctype\s+is)" +syntax keyword omnimarkOperator drop +syntax match omnimarkOperator "\v\c<%(element\s+is)" +syntax match omnimarkOperator "\v\c<%(elements\s+of)" +syntax match omnimarkOperator "\v\c<%(entity\s+is)" +syntax keyword omnimarkOperator except +syntax keyword omnimarkOperator exists +syntax keyword omnimarkOperator exp +syntax keyword omnimarkOperator external-function +syntax keyword omnimarkOperator file +syntax keyword omnimarkOperator floor +syntax match omnimarkOperator "\v\c<%(function-library\s+of)" +syntax keyword omnimarkOperator has +syntax keyword omnimarkOperator hasnt + # 'has'/'hasnt' (before 'key'/'^' or 'item'/'@' (other obscure things too?): + syntax keyword omnimarkOperator key + syntax match omnimarkOperator "\v[\^]" + # 'item' is addressed elsewhere - @ needs to be a match, not keyword + syntax match omnimarkOperator "\v<[@]" +syntax keyword omnimarkOperator implied +syntax keyword omnimarkOperator in-codes +syntax keyword omnimarkOperator is +syntax keyword omnimarkOperator isnt + # 'is'/'isnt' (usually before, or sometime after, e.g., 'content isnt'): + syntax keyword omnimarkOperator attached + syntax keyword omnimarkOperator buffer + syntax keyword omnimarkOperator catchable + syntax keyword omnimarkOperator cdata-entity + syntax keyword omnimarkOperator closed + syntax keyword omnimarkOperator conref + syntax keyword omnimarkOperator content + # 'content is' ... empty, any, cdata, rcdata, mixed, conref + syntax keyword omnimarkOperator default-entity + syntax keyword omnimarkOperator directory + # 'entity'/'entities', e.g., 'attribute x is (entity | entities)' + syntax match omnimarkOperator "\v\c<%(entit)%(y|ies)" + syntax keyword omnimarkOperator external + # E.g., 'open s as external-output-function' (v. buffer, etc.) '-call'? + syntax match omnimarkOperator "\v\c<%(external-output-function)%(-call)?" + syntax keyword omnimarkOperator file + syntax keyword omnimarkOperator general + syntax keyword omnimarkOperator in-library + syntax keyword omnimarkOperator internal + syntax keyword omnimarkOperator keyed + syntax keyword omnimarkOperator markup-parser + syntax keyword omnimarkOperator ndata-entity + # These are not to be confused with the omnimarkAction, 'open' + syntax match omnimarkOperator "\v\c<%(is\s+open)" + syntax match omnimarkOperator "\v\c<%(isnt\s+open)" + syntax keyword omnimarkOperator parameter + syntax keyword omnimarkOperator past + syntax keyword omnimarkOperator public + syntax keyword omnimarkOperator readable + # These are not to be confused with the omnimarkAction, 'referent' + syntax match omnimarkOperator "\v\c<%(is\s+referent)" + syntax match omnimarkOperator "\v\c<%(isnt\s+referent)" + syntax keyword omnimarkOperator sdata-entity + # Deprecated form - markup-parser is recommended + syntax keyword omnimarkOperator sgml-parser + syntax keyword omnimarkOperator subdoc-entity + syntax keyword omnimarkOperator system + syntax keyword omnimarkOperator thrown +syntax match omnimarkOperator "\v\c<%(item)%(\sof)?%(\s%(data-)?attributes)?" +syntax match omnimarkOperator "\v\c<%(key\s+of)" +# 'key of attribute'/s not needed: 'key of' and 'attribute' are separate +# 'key of data-attribute'/s not needed: 'key of' &c. are separate +# 'key of referents' not needed: 'key of' and 'referents' are separate +syntax keyword omnimarkOperator last +syntax keyword omnimarkOperator lastmost +syntax match omnimarkOperator "\v\c<%(length\s*of)" +syntax keyword omnimarkOperator literal +syntax keyword omnimarkOperator ln +syntax keyword omnimarkOperator log10 +syntax keyword omnimarkOperator lookahead +# 'lookahead not' not needed: 'lookahead' and 'not' are separate +syntax keyword omnimarkOperator mask +syntax keyword omnimarkOperator matches +syntax keyword omnimarkOperator modulo +syntax match omnimarkOperator "\v\c<%(name)>%(\s+of)?%(\s+current)?%(\s+element)?" +syntax keyword omnimarkOperator named +syntax match omnimarkOperator "\v\c<%(notation\s+equals)" +syntax match omnimarkOperator "\v\c<%(number\s+of)" +# 'number of attribute'/s not needed: 'number of' and 'attribute' are separate +# 'number of current elements' is not needed: 'number of' &c. are separate +syntax match omnimarkOperator "\v\c<%(number\s+of\s+current\s+subdocuments)" +# 'number of data-attribute'/s not needed: 'number of' &c. are separate +# 'number of referents' not needed: 'number of' and 'referents' are separate +syntax keyword omnimarkOperator occurrence +syntax match omnimarkOperator "\v\c<%(open\s+element\s+is)" +syntax match omnimarkOperator "\v\c<%(parent\s+is)" +syntax match omnimarkOperator "\v\c<%(preparent\s+is)" +syntax match omnimarkOperator "\v\c<%(previous\s+is)" +syntax match omnimarkOperator "\v\c<%(public-identifier\s+of)" +syntax match omnimarkOperator "\v\c<%(referents\s+has\s+key)" +syntax match omnimarkOperator "\v\c<%(referents\s+is\s+attached)" +syntax keyword omnimarkOperator round +syntax keyword omnimarkOperator shift +syntax keyword omnimarkOperator specified +syntax keyword omnimarkOperator sqrt +# E.g., last proper? subelement _element-qualifier_ is/isnt +syntax keyword omnimarkOperator subelement +syntax keyword omnimarkOperator system-call +syntax match omnimarkOperator "\v\c<%(system-identifier\s+of)" +syntax keyword omnimarkOperator status + # E.g., 'status ... is (proper | inclusion)' + syntax keyword omnimarkOperator inclusion + syntax keyword omnimarkOperator proper + # E.g., 'last content {element-qualifier} is #DATA' + syntax match omnimarkOperator "\v\c<%(#data)" +syntax keyword omnimarkOperator take +# 'this' only appears before 'referent', so requires no standalone 'this' +syntax match omnimarkOperator "\v\c<%(this\s*referent)" +syntax keyword omnimarkOperator to +syntax keyword omnimarkOperator truncate +syntax keyword omnimarkOperator ul +syntax keyword omnimarkOperator union +syntax keyword omnimarkOperator usemap +syntax keyword omnimarkOperator valued +syntax keyword omnimarkOperator writable +syntax keyword omnimarkOperator xmlns-name +syntax match omnimarkOperator "\v%(\s)%([\\])%(\s)" +syntax match omnimarkOperator "\v%(\s)([_])%(\s)" +syntax match omnimarkOperator "\v%(\s)([\|])%(\s)" +syntax keyword omnimarkOperator or +syntax match omnimarkOperator "\v%(\s)([\|][\|])%(\s)" +syntax keyword omnimarkOperator join +syntax match omnimarkOperator "\v%(\s)([\|][\|][\*])%(\s)" +syntax keyword omnimarkOperator repeated +syntax match omnimarkOperator "\v%(\s)([~])" +# }}} +# _ pattern {{{ +syntax match omnimarkPattern "\v%(\s)%(\=\|)" +syntax match omnimarkPattern "\v\c<%(any)%(\+%(\+)?|*%(*)?|\?)?" +syntax match omnimarkPattern "\v\c<%(any-text)%(\+|*|\?)?" +syntax match omnimarkPattern "\v\c<%(blank)%(\+|*|\?)?" +syntax keyword omnimarkPattern cdata +syntax keyword omnimarkPattern content-end +syntax keyword omnimarkPattern content-start +syntax match omnimarkPattern "\v\c<%(digit)%(\+|*|\?)?" +syntax keyword omnimarkPattern empty +syntax match omnimarkPattern "\v\c<%(lc)%(\+|*|\?)?" +syntax match omnimarkPattern "\v\c<%(letter)%(\+|*|\?)?" +syntax keyword omnimarkPattern line-end +syntax keyword omnimarkPattern line-start +syntax keyword omnimarkPattern mixed +syntax keyword omnimarkPattern non-cdata +syntax keyword omnimarkPattern non-sdata +syntax keyword omnimarkPattern null +syntax keyword omnimarkPattern pcdata +syntax keyword omnimarkPattern rcdata +syntax keyword omnimarkPattern sdata +syntax match omnimarkPattern "\v\c<%(space)%(\+|*|\?)?" +syntax match omnimarkPattern "\v\c<%(text)%([[:space:]\n])" +syntax match omnimarkPattern "\v\c<%(uc)%(\+|*|\?)?" +syntax keyword omnimarkPattern unanchored +syntax keyword omnimarkPattern value-end +syntax keyword omnimarkPattern value-start +syntax match omnimarkPattern "\v\c<%(white-space)%(\+|*|\?)?" +syntax keyword omnimarkPattern word-end +syntax keyword omnimarkPattern word-start +syntax match omnimarkPattern "\v%(\s)%(\|\=)" +# }}} +# _ rule {{{ +syntax keyword omnimarkRule data-content +syntax keyword omnimarkRule document-end +syntax keyword omnimarkRule document-start +syntax keyword omnimarkRule document-type-declaration +syntax keyword omnimarkRule dtd-end +syntax keyword omnimarkRule dtd-start +syntax keyword omnimarkRule element +syntax keyword omnimarkRule epilog-start +syntax keyword omnimarkRule external-entity +syntax keyword omnimarkRule external-data-entity +syntax keyword omnimarkRule external-text-entity +syntax match omnimarkRule "\v\c<%(external-text-entity\s+#document)" +syntax keyword omnimarkRule find +syntax keyword omnimarkRule find-end +syntax keyword omnimarkRule find-start +syntax keyword omnimarkRule insertion-break +syntax keyword omnimarkRule invalid-data +syntax match omnimarkRule "\v\c<%(marked-section)%(\s+%(cdata|ignore|include-%(end|start)|rcdata))?" +syntax keyword omnimarkRule markup-comment +syntax keyword omnimarkRule markup-error +syntax keyword omnimarkRule process +syntax keyword omnimarkRule process-end +syntax keyword omnimarkRule processing-instruction +syntax keyword omnimarkRule process-start +syntax keyword omnimarkRule prolog-end +syntax keyword omnimarkRule prolog-in-error +syntax keyword omnimarkRule replacement-break +syntax keyword omnimarkRule sgml-comment +syntax keyword omnimarkRule sgml-declaration-end +syntax keyword omnimarkRule sgml-error +syntax keyword omnimarkRule translate +syntax keyword omnimarkRule xmlns-change +# }}} +# Libraries {{{ +# ombase64 +syntax match omnimarkLibrary "\v\c<%(base64[.])%([orw])%([[:print:]])+" +# ombcd +# (NB: abs, ceiling, exp, floor, ln, log10, round, sqrt, and truncate +# are all operators) +syntax match omnimarkLibrary "\v\c<%(ombcd-version)" +# ombessel +syntax match omnimarkLibrary "\v\c<%(j0|j1|jn|y0|y1|yn)" +# ombig5 +syntax match omnimarkLibrary "\v\c<%(big5[.])%([orw])%([[:print:]])+" +# omblowfish and omffblowfish +syntax match omnimarkLibrary "\v\c<%(blowfish[.])%([deorsw])%(\a|-)+" +# omcgi +syntax match omnimarkLibrary "\v\c<%(cgiGet)%([EQ])\a+" +# omff8859 +syntax match omnimarkLibrary "\v\c<%(iso8859[.])%([iorw])%([[:print:]])+" +# omfloat +# (NB: uses same operator names as ombcd except for the following) +syntax match omnimarkLibrary "\v\c<%(is-nan)" +syntax match omnimarkLibrary "\v\c<%(omfloat-version)" +# omdate +syntax match omnimarkLibrary "\v\c<%(add-to-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(arpadate-to-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(format-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(now-as-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(round-down-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(round-up-ymdhms)" +syntax match omnimarkLibrary "\v\c<%(ymdhms-)%([adjmst])%(\a|-)+" +syntax match omnimarkLibrary "\v\c<%(ymd-weekday)" +# omdb +syntax match omnimarkLibrary "\v\c<%(db[.])%([acdefimopqrstuw])%(\a|-|1)+" +# omffeuc +syntax match omnimarkLibrary "\v\c<%(euc[.])%([orw])%(\a|-)+" +# omffjis +syntax match omnimarkLibrary "\v\c<%(jis[.])%([orw])%(\a|-)+" +# omffutf16 and omffutf32 +syntax match omnimarklibrary "\v\c<%(utf)%(16|32)%([.])%([orw])%(\a|-)+" +# omfloat +syntax match omnimarklibrary "\v\C<%(FP_)%([a-z])+\d?" +# omfsys +syntax match omnimarkLibrary "\v\C<%(FS_)%([CDGLMR])\a+" +# omftp +syntax match omnimarkLibrary "\v\c<%(FTP)%([CIL])\a+" +# omhttp +syntax match omnimarkLibrary "\v\c<%(Http)%([CORS])\a+" +# omiobuf +syntax match omnimarkLibrary "\v\c<%(iobuf[.])%([brw])\a+" +# omldap +syntax match omnimarkLibrary "\v\c<%(ldap[.])%([acdemnors])%(\a|-)+" +# omprocess +syntax match omnimarkLibrary "\v\c<%(command-line)" +syntax match omnimarkLibrary "\v\c<%(executable-name)" +syntax match omnimarkLibrary "\v\c<%(execute)" +syntax match omnimarkLibrary "\v\c<%(glob)" +syntax match omnimarkLibrary "\v\c<%(omprocess-version)" +# omrandom +syntax match omnimarkLibrary "\v\c<%(random[.])%([eosu])%(\a|-)+" +# omunicode +syntax match omnimarkLibrary "\v\c<%(unicode[.])%([bgo])%(\a|-)+" +# omutf8 +syntax match omnimarkLibrary "\v\c<%(utf8[.])%([bceilmos])%(\a|8|-)+" +# omioe/omfio +syntax match omnimarkLibrary "\v\c<%(get-exception-status)" +syntax match omnimarkLibrary "\v\c<%(io-exception-text)" +syntax match omnimarkLibrary "\v\c<%(new-io-exception)" +syntax match omnimarkLibrary "\v\c<%(set-voluntary-end-exception)" +syntax match omnimarkLibrary "\v\c<%(%(Big5|euc|jis|sjis|utf16)%(-))?%(%(in|out)put-file)" +# omioprotocol +syntax match omnimarkLibrary "\v\c<%(IOProtocol)%([EILMS])\a+" +# ommail +syntax match omnimarkLibrary "\v\c<%(Mail)%([ILO]\a+)" +# omtrig +syntax match omnimarkLibrary "\v\c<%(a)?%(cos%(h)?|sin%(h)?|tan%(h|2)?|hypot)" +# omnetutl +syntax match omnimarkLibrary "\v\c<%(from-net-long)" +syntax match omnimarkLibrary "\v\c<%(net-long)" +syntax match omnimarkLibrary "\v\c<%(NET)%([GIL]\a+)" +syntax match omnimarkLibrary "\v\c<%(to-net-long)" +# omnetutil +syntax match omnimarkLibrary "\v\c<%(netutil[.])%([fhnot]%(\a|3|2|-)+)" +# omoci +syntax match omnimarkLibrary "\v\c<%(OCI_)%([GLoS]\a+)" +# omodbc +syntax match omnimarkLibrary "\v\c<%(SQL)%([_])?%([ABCDEFGLMNPRST][[:alpha:]]+)" +# omsocat +syntax match omnimarkLibrary "\v\c<%(socat-[clr-])%([[:alpha:]]+)" +# omsort +syntax match omnimarkLibrary "\v\c<%(sort[.][os])%(\a|-)+" +# omutil +syntax match omnimarkLibrary "\v\c<%(UTIL[_.][EGLmopRSU])%(\a|-)+" +# omvfs +syntax match omnimarkLibrary "\v\c<%(vfs[.][cdflmorstuw])%(\a|-)+" +# tcp +syntax match omnimarkLibrary "\v\c<%(TCP)%([.])?%([acdegilmoprstw][[:alpha:]-]+)" +# uri +syntax match omnimarkLibrary "\v\c<%(uri[.])%([ceopr])%(\a|-)+" +# wsb +syntax match omnimarkLibrary "\v\c<%(wsb[.])%([acdfhrsw])%(\a|-)+" +# }}} +# Comments {{{ +# ------- +syntax region omnimarkComment start=";" end="$" +# }}} +# Strings and format-modifiers {{{ +syntax region omnimarkString matchgroup=Normal start=+'+ end=+'+ skip=+%'+ contains=omnimarkEscape +syntax region omnimarkString matchgroup=Normal start=+"+ end=+"+ skip=+%"+ contains=omnimarkEscape + # This handles format items inside strings: + # NB: escape _quoted-character_ allows a new character to be used to + # indicate a special character or a format item, rather than the normal %. + # The use of escape is deprecated in general, because it leads to + # non-standard OmniMark code that can be difficult to understand. It has + # not be handled here as it would be almost impossible to do so. + # dynamic: %a %b %d %g %i %p %q %v %x %w %y + # a - integer data type formatting + # b - integer data type formatting + # c - parsed data formatting + # d - integer data type formatting, BCD data type formatting + # g - string data formatting + # i - integer data type formatting + # p - parsed data formatting + # q - parsed data formatting + # v - parsed data formatting + # x - deprecated format command used instead of g + # y - symbol declaration + # @ - macro arguments + # static: %% %_ %n %t %# %) %" %' %/ %[ %] %@%% + # %% - insert an explicit percent sign + # %_ - insert an explicit space character + # %n - insert an explicit newline character + # %t - insert an explicit tab character + # %0# through to %255# - insert an explicit byte with given value + # %{...}—a sequence of characters, e.g., %16r{0d, 0a} + # %#—insert an explicit octothorpe character (#) + # %)—insert an explicit closing parenthesis + # %"—insert an explicit double quote character + # %'—insert an explicit single quote character + # %/—indicates a point where line breaking can occur + # %[ and %]—protect the delimited text from line breaking + # %@%—insert an explicit percent sign inside a macro expansion + # % format-modifier a + syntax match omnimarkEscape contained =\v\C%(\%%(%(%(\d)*%(f))?%(j|k|l|u|w)*)?a)= + # % format-modifier b + syntax match omnimarkEscape contained =\v\C%(\%%(%(%(\d)*%(f))?%(\d)?)?b)= + # % format-modifier c + syntax match omnimarkEscape contained =\v\C%(%(\%%(h|l|u|s|z)*c))= + # % format-modifier d + syntax match omnimarkEscape contained =\v\C%(\%%(%(%(\d)*%(f|r|s)?)*%(j|k|l|u|z)*)?d)= + # % format-modifier g + syntax match omnimarkEscape contained =\v\C%(\%%(%(%(\d)*%(f|r|s)?)*%(j|k|l|u|z)*)?g)= + # % format-modifier + syntax match omnimarkEscape contained =\v\C%(%(\%[abdgipqvxwy%_nt#)"'/\[\]])|%(\%\@\%)|%(\%\d+#)|\%%(\d+r[{]%([0-9A-z, ]+)}))+= + # }}} +# Number {{{ +syntax match omnimarkNumber "\v([[:alpha:]]+)@ +" Maintainer: Jon Parise + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpoptions +set cpoptions&vim + +syn case match + +syn match ondirComment "#.*" contains=@Spell +syn keyword ondirKeyword final contained skipwhite nextgroup=ondirKeyword +syn keyword ondirKeyword enter leave contained skipwhite nextgroup=ondirPath +syn match ondirPath "[^:]\+" contained display +syn match ondirColon ":" contained display + +syn include @ondirShell syntax/sh.vim +syn region ondirContent start="^\s\+" end="^\ze\S.*$" keepend contained contains=@ondirShell + +syn region ondirSection start="^\(final\|enter\|leave\)" end="^\ze\S.*$" fold contains=ondirKeyword,ondirPath,ondirColon,ondirContent + +hi def link ondirComment Comment +hi def link ondirKeyword Keyword +hi def link ondirPath Special +hi def link ondirColon Operator + +let b:current_syntax = 'ondir' + +let &cpoptions = s:cpo_save +unlet s:cpo_save + +" vim: et ts=4 sw=2 sts=2: diff --git a/git/usr/share/vim/vim92/syntax/opam.vim b/git/usr/share/vim/vim92/syntax/opam.vim new file mode 100644 index 0000000000000000000000000000000000000000..da296627e574030da17dcf4a4f9ee11676dbb261 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/opam.vim @@ -0,0 +1,74 @@ +" Vim syntax file +" Language: opam - OCaml package manager +" Maintainer: Markus Mottl +" URL: https://github.com/ocaml/vim-ocaml +" Last Change: +" 2020 Dec 31 - Added header (Markus Mottl) + +if exists("b:current_syntax") + finish +endif + +" need %{vars}% +" env: [[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]] +syn iskeyword a-z,A-Z,- +syn keyword opamKeyword1 author +syn keyword opamKeyword1 authors +syn keyword opamKeyword1 available +syn keyword opamKeyword1 bug-reports +syn keyword opamKeyword1 build +syn keyword opamKeyword1 build-env +syn keyword opamKeyword1 conflict-class +syn keyword opamKeyword1 conflicts +syn keyword opamKeyword1 depends +syn keyword opamKeyword1 depexts +syn keyword opamKeyword1 depopts +syn keyword opamKeyword1 description +syn keyword opamKeyword1 dev-repo +syn keyword opamKeyword1 doc +syn keyword opamKeyword1 extra-files +syn keyword opamKeyword1 features +syn keyword opamKeyword1 flags +syn keyword opamKeyword1 homepage +syn keyword opamKeyword1 install +syn keyword opamKeyword1 libraries +syn keyword opamKeyword1 license +syn keyword opamKeyword1 maintainer +syn keyword opamKeyword1 messages +syn keyword opamKeyword1 name +syn keyword opamKeyword1 opam-version +syn keyword opamKeyword1 patches +syn keyword opamKeyword1 pin-depends +syn keyword opamKeyword1 post-messages +syn keyword opamKeyword1 remove +syn keyword opamKeyword1 run-test +syn keyword opamKeyword1 setenv +syn keyword opamKeyword1 substs +syn keyword opamKeyword1 synopsis +syn keyword opamKeyword1 syntax +syn keyword opamKeyword1 tags +syn keyword opamKeyword1 version + +syn keyword opamTodo FIXME NOTE NOTES TODO XXX contained +syn match opamComment "#.*$" contains=opamTodo,@Spell +syn match opamOperator ">\|<\|=\|<=\|>=" + +syn match opamUnclosedInterpolate "%{[^ "]*" contained +syn match opamInterpolate "%{[^ "]\+}%" contained +syn region opamString start=/"/ end=/"/ contains=opamInterpolate,OpamUnclosedInterpolate +syn region opamSeq start=/\[/ end=/\]/ contains=ALLBUT,opamKeyword1 +syn region opamExp start=/{/ end=/}/ contains=ALLBUT,opamKeyword1 + +hi link opamKeyword1 Keyword + +hi link opamString String +hi link opamExp Function +hi link opamSeq Statement +hi link opamOperator Operator +hi link opamComment Comment +hi link opamInterpolate Identifier +hi link opamUnclosedInterpolate Error + +let b:current_syntax = "opam" + +" vim: ts=2 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/opencl.vim b/git/usr/share/vim/vim92/syntax/opencl.vim new file mode 100644 index 0000000000000000000000000000000000000000..c237aa30f95f65b81e0bd8ea51b7310dffdfc9f6 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/opencl.vim @@ -0,0 +1,13 @@ +" Vim syntax file +" Language: OpenCL +" Last Change: 2024 Nov 19 +" Maintainer: Wu, Zhenyu + +if exists("b:current_syntax") + finish +endif + +" TODO: support openCL specific keywords +runtime! syntax/c.vim + +let current_syntax = "opencl" diff --git a/git/usr/share/vim/vim92/syntax/openroad.vim b/git/usr/share/vim/vim92/syntax/openroad.vim new file mode 100644 index 0000000000000000000000000000000000000000..e09f233647efa664a03bc938f8ae3a2d2c9a6c28 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/openroad.vim @@ -0,0 +1,252 @@ +" Vim syntax file +" Language: CA-OpenROAD +" Maintainer: Luis Moreno +" Last change: 2001 Jun 12 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case ignore + +" Keywords +" +syntax keyword openroadKeyword ABORT ALL ALTER AND ANY AS ASC AT AVG BEGIN +syntax keyword openroadKeyword BETWEEN BY BYREF CALL CALLFRAME CALLPROC CASE +syntax keyword openroadKeyword CLEAR CLOSE COMMIT CONNECT CONTINUE COPY COUNT +syntax keyword openroadKeyword CREATE CURRENT DBEVENT DECLARE DEFAULT DELETE +syntax keyword openroadKeyword DELETEROW DESC DIRECT DISCONNECT DISTINCT DO +syntax keyword openroadKeyword DROP ELSE ELSEIF END ENDCASE ENDDECLARE ENDFOR +syntax keyword openroadKeyword ENDIF ENDLOOP ENDWHILE ESCAPE EXECUTE EXISTS +syntax keyword openroadKeyword EXIT FETCH FIELD FOR FROM GOTOFRAME GRANT GROUP +syntax keyword openroadKeyword HAVING IF IMMEDIATE IN INDEX INITIALISE +syntax keyword openroadKeyword INITIALIZE INQUIRE_INGRES INQUIRE_SQL INSERT +syntax keyword openroadKeyword INSERTROW INSTALLATION INTEGRITY INTO KEY LIKE +syntax keyword openroadKeyword LINK MAX MESSAGE METHOD MIN MODE MODIFY NEXT +syntax keyword openroadKeyword NOECHO NOT NULL OF ON OPEN OPENFRAME OR ORDER +syntax keyword openroadKeyword PERMIT PROCEDURE PROMPT QUALIFICATION RAISE +syntax keyword openroadKeyword REGISTER RELOCATE REMOVE REPEAT REPEATED RESUME +syntax keyword openroadKeyword RETURN RETURNING REVOKE ROLE ROLLBACK RULE SAVE +syntax keyword openroadKeyword SAVEPOINT SELECT SET SLEEP SOME SUM SYSTEM TABLE +syntax keyword openroadKeyword THEN TO TRANSACTION UNION UNIQUE UNTIL UPDATE +syntax keyword openroadKeyword VALUES VIEW WHERE WHILE WITH WORK + +syntax keyword openroadTodo contained TODO + +" Catch errors caused by wrong parenthesis +" +syntax cluster openroadParenGroup contains=openroadParenError,openroadTodo +syntax region openroadParen transparent start='(' end=')' contains=ALLBUT,@openroadParenGroup +syntax match openroadParenError ")" +highlight link openroadParenError cError + +" Numbers +" +syntax match openroadNumber "\<[0-9]\+\>" + +" String +" +syntax region openroadString start=+'+ end=+'+ + +" Operators, Data Types and Functions +" +syntax match openroadOperator /[\+\-\*\/=\<\>;\(\)]/ + +syntax keyword openroadType ARRAY BYTE CHAR DATE DECIMAL FLOAT FLOAT4 +syntax keyword openroadType FLOAT8 INT1 INT2 INT4 INTEGER INTEGER1 +syntax keyword openroadType INTEGER2 INTEGER4 MONEY OBJECT_KEY +syntax keyword openroadType SECURITY_LABEL SMALLINT TABLE_KEY VARCHAR + +syntax keyword openroadFunc IFNULL + +" System Classes +" +syntax keyword openroadClass ACTIVEFIELD ANALOGFIELD APPFLAG APPSOURCE +syntax keyword openroadClass ARRAYOBJECT ATTRIBUTEOBJECT BARFIELD +syntax keyword openroadClass BITMAPOBJECT BOXTRIM BREAKSPEC BUTTONFIELD +syntax keyword openroadClass CELLATTRIBUTE CHOICEBITMAP CHOICEDETAIL +syntax keyword openroadClass CHOICEFIELD CHOICEITEM CHOICELIST CLASS +syntax keyword openroadClass CLASSSOURCE COLUMNCROSS COLUMNFIELD +syntax keyword openroadClass COMPOSITEFIELD COMPSOURCE CONTROLBUTTON +syntax keyword openroadClass CROSSTABLE CURSORBITMAP CURSOROBJECT DATASTREAM +syntax keyword openroadClass DATEOBJECT DBEVENTOBJECT DBSESSIONOBJECT +syntax keyword openroadClass DISPLAYFORM DYNEXPR ELLIPSESHAPE ENTRYFIELD +syntax keyword openroadClass ENUMFIELD EVENT EXTOBJECT EXTOBJFIELD +syntax keyword openroadClass FIELDOBJECT FLEXIBLEFORM FLOATOBJECT FORMFIELD +syntax keyword openroadClass FRAMEEXEC FRAMEFORM FRAMESOURCE FREETRIM +syntax keyword openroadClass GHOSTEXEC GHOSTSOURCE IMAGEFIELD IMAGETRIM +syntax keyword openroadClass INTEGEROBJECT LISTFIELD LISTVIEWCOLATTR +syntax keyword openroadClass LISTVIEWFIELD LONGBYTEOBJECT LONGVCHAROBJECT +syntax keyword openroadClass MATRIXFIELD MENUBAR MENUBUTTON MENUFIELD +syntax keyword openroadClass MENUGROUP MENUITEM MENULIST MENUSEPARATOR +syntax keyword openroadClass MENUSTACK MENUTOGGLE METHODEXEC METHODOBJECT +syntax keyword openroadClass MONEYOBJECT OBJECT OPTIONFIELD OPTIONMENU +syntax keyword openroadClass PALETTEFIELD POPUPBUTTON PROC4GLSOURCE PROCEXEC +syntax keyword openroadClass PROCHANDLE QUERYCOL QUERYOBJECT QUERYPARM +syntax keyword openroadClass QUERYTABLE RADIOFIELD RECTANGLESHAPE ROWCROSS +syntax keyword openroadClass SCALARFIELD SCOPE SCROLLBARFIELD SEGMENTSHAPE +syntax keyword openroadClass SESSIONOBJECT SHAPEFIELD SLIDERFIELD SQLSELECT +syntax keyword openroadClass STACKFIELD STRINGOBJECT SUBFORM TABBAR +syntax keyword openroadClass TABFIELD TABFOLDER TABLEFIELD TABPAGE +syntax keyword openroadClass TOGGLEFIELD TREE TREENODE TREEVIEWFIELD +syntax keyword openroadClass USERCLASSOBJECT USEROBJECT VIEWPORTFIELD + +" System Events +" +syntax keyword openroadEvent CHILDCLICK CHILDCLICKPOINT CHILDCOLLAPSED +syntax keyword openroadEvent CHILDDETAILS CHILDDOUBLECLICK CHILDDRAGBOX +syntax keyword openroadEvent CHILDDRAGSEGMENT CHILDENTRY CHILDEXIT +syntax keyword openroadEvent CHILDEXPANDED CHILDHEADERCLICK CHILDMOVED +syntax keyword openroadEvent CHILDPROPERTIES CHILDRESIZED CHILDSCROLL +syntax keyword openroadEvent CHILDSELECT CHILDSELECTIONCHANGED CHILDSETVALUE +syntax keyword openroadEvent CHILDUNSELECT CHILDVALIDATE CLICK CLICKPOINT +syntax keyword openroadEvent COLLAPSED DBEVENT DETAILS DOUBLECLICK DRAGBOX +syntax keyword openroadEvent DRAGSEGMENT ENTRY EXIT EXPANDED EXTCLASSEVENT +syntax keyword openroadEvent FRAMEACTIVATE FRAMEDEACTIVATE HEADERCLICK +syntax keyword openroadEvent INSERTROW LABELCHANGED MOVED PAGEACTIVATED +syntax keyword openroadEvent PAGECHANGED PAGEDEACTIVATED PROPERTIES RESIZED +syntax keyword openroadEvent SCROLL SELECT SELECTIONCHANGED SETVALUE +syntax keyword openroadEvent TERMINATE UNSELECT USEREVENT VALIDATE +syntax keyword openroadEvent WINDOWCLOSE WINDOWICON WINDOWMOVED WINDOWRESIZED +syntax keyword openroadEvent WINDOWVISIBLE + +" System Constants +" +syntax keyword openroadConst BF_BMP BF_GIF BF_SUNRASTER BF_TIFF +syntax keyword openroadConst BF_WINDOWCURSOR BF_WINDOWICON BF_XBM +syntax keyword openroadConst CC_BACKGROUND CC_BLACK CC_BLUE CC_BROWN CC_CYAN +syntax keyword openroadConst CC_DEFAULT_1 CC_DEFAULT_10 CC_DEFAULT_11 +syntax keyword openroadConst CC_DEFAULT_12 CC_DEFAULT_13 CC_DEFAULT_14 +syntax keyword openroadConst CC_DEFAULT_15 CC_DEFAULT_16 CC_DEFAULT_17 +syntax keyword openroadConst CC_DEFAULT_18 CC_DEFAULT_19 CC_DEFAULT_2 +syntax keyword openroadConst CC_DEFAULT_20 CC_DEFAULT_21 CC_DEFAULT_22 +syntax keyword openroadConst CC_DEFAULT_23 CC_DEFAULT_24 CC_DEFAULT_25 +syntax keyword openroadConst CC_DEFAULT_26 CC_DEFAULT_27 CC_DEFAULT_28 +syntax keyword openroadConst CC_DEFAULT_29 CC_DEFAULT_3 CC_DEFAULT_30 +syntax keyword openroadConst CC_DEFAULT_4 CC_DEFAULT_5 CC_DEFAULT_6 +syntax keyword openroadConst CC_DEFAULT_7 CC_DEFAULT_8 CC_DEFAULT_9 +syntax keyword openroadConst CC_FOREGROUND CC_GRAY CC_GREEN CC_LIGHT_BLUE +syntax keyword openroadConst CC_LIGHT_BROWN CC_LIGHT_CYAN CC_LIGHT_GRAY +syntax keyword openroadConst CC_LIGHT_GREEN CC_LIGHT_ORANGE CC_LIGHT_PINK +syntax keyword openroadConst CC_LIGHT_PURPLE CC_LIGHT_RED CC_LIGHT_YELLOW +syntax keyword openroadConst CC_MAGENTA CC_ORANGE CC_PALE_BLUE CC_PALE_BROWN +syntax keyword openroadConst CC_PALE_CYAN CC_PALE_GRAY CC_PALE_GREEN +syntax keyword openroadConst CC_PALE_ORANGE CC_PALE_PINK CC_PALE_PURPLE +syntax keyword openroadConst CC_PALE_RED CC_PALE_YELLOW CC_PINK CC_PURPLE +syntax keyword openroadConst CC_RED CC_SYS_ACTIVEBORDER CC_SYS_ACTIVECAPTION +syntax keyword openroadConst CC_SYS_APPWORKSPACE CC_SYS_BACKGROUND +syntax keyword openroadConst CC_SYS_BTNFACE CC_SYS_BTNSHADOW CC_SYS_BTNTEXT +syntax keyword openroadConst CC_SYS_CAPTIONTEXT CC_SYS_GRAYTEXT +syntax keyword openroadConst CC_SYS_HIGHLIGHT CC_SYS_HIGHLIGHTTEXT +syntax keyword openroadConst CC_SYS_INACTIVEBORDER CC_SYS_INACTIVECAPTION +syntax keyword openroadConst CC_SYS_INACTIVECAPTIONTEXT CC_SYS_MENU +syntax keyword openroadConst CC_SYS_MENUTEXT CC_SYS_SCROLLBAR CC_SYS_SHADOW +syntax keyword openroadConst CC_SYS_WINDOW CC_SYS_WINDOWFRAME +syntax keyword openroadConst CC_SYS_WINDOWTEXT CC_WHITE CC_YELLOW +syntax keyword openroadConst CL_INVALIDVALUE CP_BOTH CP_COLUMNS CP_NONE +syntax keyword openroadConst CP_ROWS CS_CLOSED CS_CURRENT CS_NOCURRENT +syntax keyword openroadConst CS_NO_MORE_ROWS CS_OPEN CS_OPEN_CACHED DC_BW +syntax keyword openroadConst DC_COLOR DP_AUTOSIZE_FIELD DP_CLIP_IMAGE +syntax keyword openroadConst DP_SCALE_IMAGE_H DP_SCALE_IMAGE_HW +syntax keyword openroadConst DP_SCALE_IMAGE_W DS_CONNECTED DS_DISABLED +syntax keyword openroadConst DS_DISCONNECTED DS_INGRES_DBMS DS_NO_DBMS +syntax keyword openroadConst DS_ORACLE_DBMS DS_SQLSERVER_DBMS DV_NULL +syntax keyword openroadConst DV_STRING DV_SYSTEM EH_NEXT_HANDLER EH_RESUME +syntax keyword openroadConst EH_RETRY EP_INTERACTIVE EP_NONE EP_OUTPUT +syntax keyword openroadConst ER_FAIL ER_NAMEEXISTS ER_OK ER_OUTOFRANGE +syntax keyword openroadConst ER_ROWNOTFOUND ER_USER1 ER_USER10 ER_USER2 +syntax keyword openroadConst ER_USER3 ER_USER4 ER_USER5 ER_USER6 ER_USER7 +syntax keyword openroadConst ER_USER8 ER_USER9 FALSE FA_BOTTOMCENTER +syntax keyword openroadConst FA_BOTTOMLEFT FA_BOTTOMRIGHT FA_CENTER +syntax keyword openroadConst FA_CENTERLEFT FA_CENTERRIGHT FA_DEFAULT FA_NONE +syntax keyword openroadConst FA_TOPCENTER FA_TOPLEFT FA_TOPRIGHT +syntax keyword openroadConst FB_CHANGEABLE FB_CLICKPOINT FB_DIMMED FB_DRAGBOX +syntax keyword openroadConst FB_DRAGSEGMENT FB_FLEXIBLE FB_INVISIBLE +syntax keyword openroadConst FB_LANDABLE FB_MARKABLE FB_RESIZEABLE +syntax keyword openroadConst FB_VIEWABLE FB_VISIBLE FC_LOWER FC_NONE FC_UPPER +syntax keyword openroadConst FM_QUERY FM_READ FM_UPDATE FM_USER1 FM_USER2 +syntax keyword openroadConst FM_USER3 FO_DEFAULT FO_HORIZONTAL FO_VERTICAL +syntax keyword openroadConst FP_BITMAP FP_CLEAR FP_CROSSHATCH FP_DARKSHADE +syntax keyword openroadConst FP_DEFAULT FP_HORIZONTAL FP_LIGHTSHADE FP_SHADE +syntax keyword openroadConst FP_SOLID FP_VERTICAL FT_NOTSETVALUE FT_SETVALUE +syntax keyword openroadConst FT_TABTO FT_TAKEFOCUS GF_BOTTOM GF_DEFAULT +syntax keyword openroadConst GF_LEFT GF_RIGHT GF_TOP HC_DOUBLEQUOTE +syntax keyword openroadConst HC_FORMFEED HC_NEWLINE HC_QUOTE HC_SPACE HC_TAB +syntax keyword openroadConst HV_CONTENTS HV_CONTEXT HV_HELPONHELP HV_KEY +syntax keyword openroadConst HV_QUIT LS_3D LS_DASH LS_DASHDOT LS_DASHDOTDOT +syntax keyword openroadConst LS_DEFAULT LS_DOT LS_SOLID LW_DEFAULT +syntax keyword openroadConst LW_EXTRATHIN LW_MAXIMUM LW_MIDDLE LW_MINIMUM +syntax keyword openroadConst LW_NOLINE LW_THICK LW_THIN LW_VERYTHICK +syntax keyword openroadConst LW_VERYTHIN MB_DISABLED MB_ENABLED MB_INVISIBLE +syntax keyword openroadConst MB_MOVEABLE MT_ERROR MT_INFO MT_NONE MT_WARNING +syntax keyword openroadConst OP_APPEND OP_NONE OS3D OS_DEFAULT OS_SHADOW +syntax keyword openroadConst OS_SOLID PU_CANCEL PU_OK QS_ACTIVE QS_INACTIVE +syntax keyword openroadConst QS_SETCOL QY_ARRAY QY_CACHE QY_CURSOR QY_DIRECT +syntax keyword openroadConst RC_CHILDSELECTED RC_DOWN RC_END RC_FIELDFREED +syntax keyword openroadConst RC_FIELDORPHANED RC_GROUPSELECT RC_HOME RC_LEFT +syntax keyword openroadConst RC_MODECHANGED RC_MOUSECLICK RC_MOUSEDRAG +syntax keyword openroadConst RC_NEXT RC_NOTAPPLICABLE RC_PAGEDOWN RC_PAGEUP +syntax keyword openroadConst RC_PARENTSELECTED RC_PREVIOUS RC_PROGRAM +syntax keyword openroadConst RC_RESUME RC_RETURN RC_RIGHT RC_ROWDELETED +syntax keyword openroadConst RC_ROWINSERTED RC_ROWSALLDELETED RC_SELECT +syntax keyword openroadConst RC_TFSCROLL RC_TOGGLESELECT RC_UP RS_CHANGED +syntax keyword openroadConst RS_DELETED RS_NEW RS_UNCHANGED RS_UNDEFINED +syntax keyword openroadConst SK_CLOSE SK_COPY SK_CUT SK_DELETE SK_DETAILS +syntax keyword openroadConst SK_DUPLICATE SK_FIND SK_GO SK_HELP SK_NEXT +syntax keyword openroadConst SK_NONE SK_PASTE SK_PROPS SK_QUIT SK_REDO +syntax keyword openroadConst SK_SAVE SK_TFDELETEALLROWS SK_TFDELETEROW +syntax keyword openroadConst SK_TFFIND SK_TFINSERTROW SK_UNDO SP_APPSTARTING +syntax keyword openroadConst SP_ARROW SP_CROSS SP_IBEAM SP_ICON SP_NO +syntax keyword openroadConst SP_SIZE SP_SIZENESW SP_SIZENS SP_SIZENWSE +syntax keyword openroadConst SP_SIZEWE SP_UPARROW SP_WAIT SY_NT SY_OS2 +syntax keyword openroadConst SY_UNIX SY_VMS SY_WIN95 TF_COURIER TF_HELVETICA +syntax keyword openroadConst TF_LUCIDA TF_MENUDEFAULT TF_NEWCENTURY TF_SYSTEM +syntax keyword openroadConst TF_TIMESROMAN TRUE UE_DATAERROR UE_EXITED +syntax keyword openroadConst UE_NOTACTIVE UE_PURGED UE_RESUMED UE_UNKNOWN +syntax keyword openroadConst WI_MOTIF WI_MSWIN32 WI_MSWINDOWS WI_NONE WI_PM +syntax keyword openroadConst WP_FLOATING WP_INTERACTIVE WP_PARENTCENTERED +syntax keyword openroadConst WP_PARENTRELATIVE WP_SCREENCENTERED +syntax keyword openroadConst WP_SCREENRELATIVE WV_ICON WV_INVISIBLE +syntax keyword openroadConst WV_UNREALIZED WV_VISIBLE + +" System Variables +" +syntax keyword openroadVar CurFrame CurProcedure CurMethod CurObject + +" Identifiers +" +syntax match openroadIdent /[a-zA-Z_][a-zA-Z_]*![a-zA-Z_][a-zA-Z_]*/ + +" Comments +" +if exists("openroad_comment_strings") + syntax match openroadCommentSkip contained "^\s*\*\($\|\s\+\)" + syntax region openroadCommentString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ end="$" + syntax region openroadComment start="/\*" end="\*/" contains=openroadCommentString,openroadCharacter,openroadNumber + syntax match openroadComment "//.*" contains=openroadComment2String,openroadCharacter,openroadNumber +else + syn region openroadComment start="/\*" end="\*/" + syn match openroadComment "//.*" +endif + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +" + +hi def link openroadKeyword Statement +hi def link openroadNumber Number +hi def link openroadString String +hi def link openroadComment Comment +hi def link openroadOperator Operator +hi def link openroadType Type +hi def link openroadFunc Special +hi def link openroadClass Type +hi def link openroadEvent Statement +hi def link openroadConst Constant +hi def link openroadVar Identifier +hi def link openroadIdent Identifier +hi def link openroadTodo Todo + + +let b:current_syntax = "openroad" diff --git a/git/usr/share/vim/vim92/syntax/openscad.vim b/git/usr/share/vim/vim92/syntax/openscad.vim new file mode 100644 index 0000000000000000000000000000000000000000..1e20c743c4e76822b2b091c71aa5fea88e3a6f3a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/openscad.vim @@ -0,0 +1,129 @@ +" Vim syntax file +" Language: OpenSCAD +" Maintainer: Niklas Adam +" Last change: 2022-04-15 +" +" +" From salkin-mada/openscad.nvim +" Building on the work of Sirtaj Singh Kang and others for vim-openscad +" + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case ignore + +setlocal iskeyword=a-z,A-Z,48-57,_ + +syn match openscadAoperator "{" +syn match openscadAoperator "}" +syn match openscadLi "\[" +syn match openscadLi "\]" +syn match openscadPar "(" +syn match openscadPar ")" + +syn match openscadSpecialVariable "\$[a-zA-Z_]\+\>" display +syn match openscadModifier "^\s*[\*\!\#\%]" display + +syn match openscadBinaryoperator "+" +syn match openscadBinaryoperator "-" +syn match openscadBinaryoperator "*" +syn match openscadBinaryoperator "/" +syn match openscadBinaryoperator "%" +syn match openscadBinaryoperator "\*\*" +syn match openscadBinaryoperator "<" +syn match openscadBinaryoperator "<=" +syn match openscadBinaryoperator ">" +syn match openscadBinaryoperator ">=" +syn match openscadBinaryoperator "=" +syn match openscadBinaryoperator "==" +syn match openscadBinaryoperator "===" +syn match openscadBinaryoperator "!=" +syn match openscadBinaryoperator "!==" +syn match openscadBinaryoperator "&" +syn match openscadBinaryoperator "|" +syn match openscadBinaryoperator "/ contained display + +syn keyword openscadModuleDef module nextgroup=openscadModule skipwhite skipempty +syn match openscadModule /\<\h\w*\>/ contained display + +syn keyword openscadStatement echo assign let assert +syn keyword openscadConditional if else +syn keyword openscadRepeat for intersection_for +syn keyword openscadInclude include use +syn keyword openscadCsgKeyword union difference intersection render intersection_for +syn keyword openscadTransform scale rotate translate resize mirror multmatrix color minkowski hull projection linear_extrude rotate_extrude offset +syn keyword openscadPrimitiveSolid cube sphere cylinder polyhedron surface +syn keyword openscadPrimitive2D square circle polygon import_dxf text +syn keyword openscadPrimitiveImport import child children + +syn match openscadNumbers "\<\d\|\.\d" contains=openscadNumber display transparent +syn match openscadNumber "\d\+" display contained +syn match openscadNumber "\.\d\+" display contained + +syn region openscadString start=/"/ skip=/\\"/ end=/"/ + +syn keyword openscadBoolean true false + +syn keyword openscadCommentTodo TODO FIXME XXX NOTE contained display +syn match openscadInlineComment ://.*$: contains=openscadCommentTodo +syn region openscadBlockComment start=:/\*: end=:\*/: fold contains=openscadCommentTodo + +syn region openscadBlock start="{" end="}" transparent fold +syn region openscadVector start="\[" end="\]" transparent fold + +syn keyword openscadBuiltin abs acos asin atan atan2 ceil cos exp floor ln log +syn keyword openscadBuiltin lookup max min pow rands round sign sin sqrt tan +syn keyword openscadBuiltin str len search version version_num concat chr ord cross norm +syn keyword openscadBuiltin parent_module +syn keyword openscadBuiltin dxf_cross dxf_dim +syn keyword openscadBuiltinSpecial PI undef + +""""""""""""""""""""""""""""""""""""""""" +" linkage +""""""""""""""""""""""""""""""""""""""""" +hi def link openscadFunctionDef Structure +hi def link openscadAoperator Function +hi def link openscadLi Function +" hi def link openscadPar Structure +hi def link openscadBuiltinSpecial Special +hi def link openscadBinaryoperator Special +hi def link openscadFunction Function +hi def link openscadModuleDef Structure +hi def link openscadModule Function +hi def link openscadBlockComment Comment +hi def link openscadBoolean Boolean +hi def link openscadBuiltin Function +hi def link openscadConditional Conditional +hi def link openscadCsgKeyword Structure +hi def link openscadInclude Include +hi def link openscadInlineComment Comment +hi def link openscadModifier Special +hi def link openscadStatement Statement +hi def link openscadNumbers Number +hi def link openscadNumber Number +hi def link openscadPrimitiveSolid Keyword +hi def link openscadPrimitive2D Keyword +hi def link openscadPrimitiveImport Keyword +hi def link openscadRepeat Repeat +hi def link openscadSpecialVariable Special +hi def link openscadString String +hi def link openscadTransform Statement +hi def link openscadCommentTodo Todo + +let b:current_syntax = 'openscad' diff --git a/git/usr/share/vim/vim92/syntax/openvpn.vim b/git/usr/share/vim/vim92/syntax/openvpn.vim new file mode 100644 index 0000000000000000000000000000000000000000..02fd24bf39261be6cf4ed0b1cce54a4e31dcaca0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/openvpn.vim @@ -0,0 +1,72 @@ +" Vim syntax file +" Language: OpenVPN +" Maintainer: ObserverOfTime +" Filenames: *.ovpn +" Last Change: 2022 Oct 16 + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpoptions +set cpoptions&vim + +" Options +syntax match openvpnOption /^[a-z-]\+/ + \ skipwhite nextgroup=openvpnArgList +syntax match openvpnArgList /.*$/ transparent contained + \ contains=openvpnArgument,openvpnNumber, + \ openvpnIPv4Address,openvpnIPv6Address, + \ openvpnSignal,openvpnComment + +" Arguments +syntax match openvpnArgument /[^\\"' \t]\+/ + \ contained contains=openvpnEscape +syntax region openvpnArgument matchgroup=openvpnQuote + \ start=/"/ skip=/\\"/ end=/"/ + \ oneline contained contains=openvpnEscape +syntax region openvpnArgument matchgroup=openvpnQuote + \ start=/'/ skip=/\\'/ end=/'/ + \ oneline contained +syntax match openvpnEscape /\\[\\" \t]/ contained + +" Numbers +syntax match openvpnNumber /\<[1-9][0-9]*\(\.[0-9]\+\)\?\>/ contained + +" Signals +syntax match openvpnSignal /SIG\(HUP\|INT\|TERM\|USER[12]\)/ contained + +" IP addresses +syntax match openvpnIPv4Address /\(\d\{1,3}\.\)\{3}\d\{1,3}/ + \ contained nextgroup=openvpnSlash +syntax match openvpnIPv6Address /\([A-F0-9]\{1,4}:\)\{7}\[A-F0-9]\{1,4}/ + \ contained nextgroup=openvpnSlash +syntax match openvpnSlash "/" contained + \ nextgroup=openvpnIPv4Address,openvpnIPv6Address,openvpnNumber + +" Inline files +syntax region openvpnInline matchgroup=openvpnTag + \ start=+^<\z([a-z-]\+\)>+ end=+^+ + +" Comments +syntax keyword openvpnTodo contained TODO FIXME NOTE XXX +syntax match openvpnComment /^[;#].*$/ contains=openvpnTodo +syntax match openvpnComment /\s\+\zs[;#].*$/ contains=openvpnTodo + +hi def link openvpnArgument String +hi def link openvpnComment Comment +hi def link openvpnEscape SpecialChar +hi def link openvpnIPv4Address Constant +hi def link openvpnIPv6Address Constant +hi def link openvpnNumber Number +hi def link openvpnOption Keyword +hi def link openvpnQuote Quote +hi def link openvpnSignal Special +hi def link openvpnSlash Delimiter +hi def link openvpnTag Tag +hi def link openvpnTodo Todo + +let b:current_syntax = 'openvpn' + +let &cpoptions = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/opl.vim b/git/usr/share/vim/vim92/syntax/opl.vim new file mode 100644 index 0000000000000000000000000000000000000000..8b66a5b345d4348b0b5d69c31e33173da5f3ea29 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/opl.vim @@ -0,0 +1,89 @@ +" Vim syntax file +" Language: OPL +" Maintainer: Czo +" Last Change: 2012 Feb 03 by Thilo Six +" $Id: opl.vim,v 1.1 2004/06/13 17:34:11 vimboss Exp $ + +" Open Psion Language... (EPOC16/EPOC32) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" case is not significant +syn case ignore + +" A bunch of useful OPL keywords +syn keyword OPLStatement proc endp abs acos addr adjustalloc alert alloc app +syn keyword OPLStatement append appendsprite asc asin at atan back beep +syn keyword OPLStatement begintrans bookmark break busy byref cache +syn keyword OPLStatement cachehdr cacherec cachetidy call cancel caption +syn keyword OPLStatement changesprite chr$ clearflags close closesprite cls +syn keyword OPLStatement cmd$ committrans compact compress const continue +syn keyword OPLStatement copy cos count create createsprite cursor +syn keyword OPLStatement datetosecs datim$ day dayname$ days daystodate +syn keyword OPLStatement dbuttons dcheckbox dchoice ddate declare dedit +syn keyword OPLStatement deditmulti defaultwin deg delete dfile dfloat +syn keyword OPLStatement dialog diaminit diampos dinit dir$ dlong do dow +syn keyword OPLStatement dposition drawsprite dtext dtime dxinput edit else +syn keyword OPLStatement elseif enda endif endv endwh entersend entersend0 +syn keyword OPLStatement eof erase err err$ errx$ escape eval exist exp ext +syn keyword OPLStatement external find findfield findlib first fix$ flags +syn keyword OPLStatement flt font freealloc gat gborder gbox gbutton +syn keyword OPLStatement gcircle gclock gclose gcls gcolor gcopy gcreate +syn keyword OPLStatement gcreatebit gdrawobject gellipse gen$ get get$ +syn keyword OPLStatement getcmd$ getdoc$ getevent getevent32 geteventa32 +syn keyword OPLStatement geteventc getlibh gfill gfont ggmode ggrey gheight +syn keyword OPLStatement gidentity ginfo ginfo32 ginvert giprint glineby +syn keyword OPLStatement glineto gloadbit gloadfont global gmove gorder +syn keyword OPLStatement goriginx goriginy goto gotomark gpatt gpeekline +syn keyword OPLStatement gpoly gprint gprintb gprintclip grank gsavebit +syn keyword OPLStatement gscroll gsetpenwidth gsetwin gstyle gtmode gtwidth +syn keyword OPLStatement gunloadfont gupdate guse gvisible gwidth gx +syn keyword OPLStatement gxborder gxprint gy hex$ hour iabs icon if include +syn keyword OPLStatement input insert int intf intrans key key$ keya keyc +syn keyword OPLStatement killmark kmod last lclose left$ len lenalloc +syn keyword OPLStatement linklib ln loadlib loadm loc local lock log lopen +syn keyword OPLStatement lower$ lprint max mcard mcasc mean menu mid$ min +syn keyword OPLStatement minit minute mkdir modify month month$ mpopup +syn keyword OPLStatement newobj newobjh next notes num$ odbinfo off onerr +syn keyword OPLStatement open openr opx os parse$ path pause peek pi +syn keyword OPLStatement pointerfilter poke pos position possprite print +syn keyword OPLStatement put rad raise randomize realloc recsize rename +syn keyword OPLStatement rept$ return right$ rmdir rnd rollback sci$ screen +syn keyword OPLStatement screeninfo second secstodate send setdoc setflags +syn keyword OPLStatement setname setpath sin space sqr statuswin +syn keyword OPLStatement statwininfo std stop style sum tan testevent trap +syn keyword OPLStatement type uadd unloadlib unloadm until update upper$ +syn keyword OPLStatement use usr usr$ usub val var vector week while year +" syn keyword OPLStatement rem + + +syn match OPLNumber "\<\d\+\>" +syn match OPLNumber "\<\d\+\.\d*\>" +syn match OPLNumber "\.\d\+\>" + +syn region OPLString start=+"+ end=+"+ +syn region OPLComment start="REM[\t ]" end="$" +syn match OPLMathsOperator "-\|=\|[:<>+\*^/\\]" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link OPLStatement Statement +hi def link OPLNumber Number +hi def link OPLString String +hi def link OPLComment Comment +hi def link OPLMathsOperator Conditional +" hi def link OPLError Error + + +let b:current_syntax = "opl" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/ora.vim b/git/usr/share/vim/vim92/syntax/ora.vim new file mode 100644 index 0000000000000000000000000000000000000000..ab091a2eee448cdbaba760d08ec4410f689190f7 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/ora.vim @@ -0,0 +1,464 @@ +" Vim syntax file +" Language: Oracle config files (.ora) (Oracle 8i, ver. 8.1.5) +" Maintainer: Sandor Kopanyi +" Url: <-> +" Last Change: 2003 May 11 + +" * the keywords are listed by file (sqlnet.ora, listener.ora, etc.) +" * the parathesis-checking is made at the beginning for all keywords +" * possible values are listed also +" * there are some overlappings (e.g. METHOD is mentioned both for +" sqlnet-ora and tnsnames.ora; since will not cause(?) problems +" is easier to follow separately each file's keywords) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +if !exists("main_syntax") + let main_syntax = 'ora' +endif + +syn case ignore + +"comments +syn match oraComment "\#.*" + +" catch errors caused by wrong parenthesis +syn region oraParen transparent start="(" end=")" contains=@oraAll,oraParen +syn match oraParenError ")" + +" strings +syn region oraString start=+"+ end=+"+ + +"common .ora staff + +"common protocol parameters +syn keyword oraKeywordGroup ADDRESS ADDRESS_LIST +syn keyword oraKeywordGroup DESCRIPTION_LIST DESCRIPTION +"all protocols +syn keyword oraKeyword PROTOCOL +syn keyword oraValue ipc tcp nmp +"Bequeath +syn keyword oraKeyword PROGRAM ARGV0 ARGS +"IPC +syn keyword oraKeyword KEY +"Named Pipes +syn keyword oraKeyword SERVER PIPE +"LU6.2 +syn keyword oraKeyword LU_NAME LLU LOCAL_LU LLU_NAME LOCAL_LU_NAME +syn keyword oraKeyword MODE MDN +syn keyword oraKeyword PLU PARTNER_LU_NAME PLU_LA PARTNER_LU_LOCAL_ALIAS +syn keyword oraKeyword TP_NAME TPN +"SPX +syn keyword oraKeyword SERVICE +"TCP/IP and TCP/IP with SSL +syn keyword oraKeyword HOST PORT + +"misc. keywords I've met but didn't find in manual (maybe they are deprecated?) +syn keyword oraKeywordGroup COMMUNITY_LIST +syn keyword oraKeyword COMMUNITY NAME DEFAULT_ZONE +syn keyword oraValue tcpcom + +"common values +syn keyword oraValue yes no on off true false null all none ok +"word 'world' is used a lot... +syn keyword oraModifier world + +"misc. common keywords +syn keyword oraKeyword TRACE_DIRECTORY TRACE_LEVEL TRACE_FILE + + +"sqlnet.ora +syn keyword oraKeywordPref NAMES NAMESCTL +syn keyword oraKeywordPref OSS SOURCE SQLNET TNSPING +syn keyword oraKeyword AUTOMATIC_IPC BEQUEATH_DETACH DAEMON TRACE_MASK +syn keyword oraKeyword DISABLE_OOB +syn keyword oraKeyword LOG_DIRECTORY_CLIENT LOG_DIRECTORY_SERVER +syn keyword oraKeyword LOG_FILE_CLIENT LOG_FILE_SERVER +syn keyword oraKeyword DCE PREFIX DEFAULT_DOMAIN DIRECTORY_PATH +syn keyword oraKeyword INITIAL_RETRY_TIMEOUT MAX_OPEN_CONNECTIONS +syn keyword oraKeyword MESSAGE_POOL_START_SIZE NIS META_MAP +syn keyword oraKeyword PASSWORD PREFERRED_SERVERS REQUEST_RETRIES +syn keyword oraKeyword INTERNAL_ENCRYPT_PASSWORD INTERNAL_USE +syn keyword oraKeyword NO_INITIAL_SERVER NOCONFIRM +syn keyword oraKeyword SERVER_PASSWORD TRACE_UNIQUE MY_WALLET +syn keyword oraKeyword LOCATION DIRECTORY METHOD METHOD_DATA +syn keyword oraKeyword SQLNET_ADDRESS +syn keyword oraKeyword AUTHENTICATION_SERVICES +syn keyword oraKeyword AUTHENTICATION_KERBEROS5_SERVICE +syn keyword oraKeyword AUTHENTICATION_GSSAPI_SERVICE +syn keyword oraKeyword CLIENT_REGISTRATION +syn keyword oraKeyword CRYPTO_CHECKSUM_CLIENT CRYPTO_CHECKSUM_SERVER +syn keyword oraKeyword CRYPTO_CHECKSUM_TYPES_CLIENT CRYPTO_CHECKSUM_TYPES_SERVER +syn keyword oraKeyword CRYPTO_SEED +syn keyword oraKeyword ENCRYPTION_CLIENT ENCRYPTION_SERVER +syn keyword oraKeyword ENCRYPTION_TYPES_CLIENT ENCRYPTION_TYPES_SERVER +syn keyword oraKeyword EXPIRE_TIME +syn keyword oraKeyword IDENTIX_FINGERPRINT_DATABASE IDENTIX_FINGERPRINT_DATABASE_USER +syn keyword oraKeyword IDENTIX_FINGERPRINT_DATABASE_PASSWORD IDENTIX_FINGERPRINT_METHOD +syn keyword oraKeyword KERBEROS5_CC_NAME KERBEROS5_CLOCKSKEW KERBEROS5_CONF +syn keyword oraKeyword KERBEROS5_KEYTAB KERBEROS5_REALMS +syn keyword oraKeyword RADIUS_ALTERNATE RADIUS_ALTERNATE_PORT RADIUS_ALTERNATE_RETRIES +syn keyword oraKeyword RADIUS_AUTHENTICATION_TIMEOUT RADIUS_AUTHENTICATION +syn keyword oraKeyword RADIUS_AUTHENTICATION_INTERFACE RADIUS_AUTHENTICATION_PORT +syn keyword oraKeyword RADIUS_AUTHENTICATION_RETRIES RADIUS_AUTHENTICATION_TIMEOUT +syn keyword oraKeyword RADIUS_CHALLENGE_RESPONSE RADIUS_SECRET RADIUS_SEND_ACCOUNTING +syn keyword oraKeyword SSL_CLIENT_AUTHENTICATION SSL_CIPHER_SUITES SSL_VERSION +syn keyword oraKeyword TRACE_DIRECTORY_CLIENT TRACE_DIRECTORY_SERVER +syn keyword oraKeyword TRACE_FILE_CLIENT TRACE_FILE_SERVER +syn keyword oraKeyword TRACE_LEVEL_CLIENT TRACE_LEVEL_SERVER +syn keyword oraKeyword TRACE_UNIQUE_CLIENT +syn keyword oraKeyword USE_CMAN USE_DEDICATED_SERVER +syn keyword oraValue user admin support +syn keyword oraValue accept accepted reject rejected requested required +syn keyword oraValue md5 rc4_40 rc4_56 rc4_128 des des_40 +syn keyword oraValue tnsnames onames hostname dce nis novell +syn keyword oraValue file oracle +syn keyword oraValue oss +syn keyword oraValue beq nds nts kerberos5 securid cybersafe identix dcegssapi radius +syn keyword oraValue undetermined + +"tnsnames.ora +syn keyword oraKeywordGroup CONNECT_DATA FAILOVER_MODE +syn keyword oraKeyword FAILOVER LOAD_BALANCE SOURCE_ROUTE TYPE_OF_SERVICE +syn keyword oraKeyword BACKUP TYPE METHOD GLOBAL_NAME HS +syn keyword oraKeyword INSTANCE_NAME RDB_DATABASE SDU SERVER +syn keyword oraKeyword SERVICE_NAME SERVICE_NAMES SID +syn keyword oraKeyword HANDLER_NAME EXTPROC_CONNECTION_DATA +syn keyword oraValue session select basic preconnect dedicated shared + +"listener.ora +syn keyword oraKeywordGroup SID_LIST SID_DESC PRESPAWN_LIST PRESPAWN_DESC +syn match oraKeywordGroup "SID_LIST_\w*" +syn keyword oraKeyword PROTOCOL_STACK PRESENTATION SESSION +syn keyword oraKeyword GLOBAL_DBNAME ORACLE_HOME PROGRAM SID_NAME +syn keyword oraKeyword PRESPAWN_MAX POOL_SIZE TIMEOUT +syn match oraKeyword "CONNECT_TIMEOUT_\w*" +syn match oraKeyword "LOG_DIRECTORY_\w*" +syn match oraKeyword "LOG_FILE_\w*" +syn match oraKeyword "PASSWORDS_\w*" +syn match oraKeyword "STARTUP_WAIT_TIME_\w*" +syn match oraKeyword "STARTUP_WAITTIME_\w*" +syn match oraKeyword "TRACE_DIRECTORY_\w*" +syn match oraKeyword "TRACE_FILE_\w*" +syn match oraKeyword "TRACE_LEVEL_\w*" +syn match oraKeyword "USE_PLUG_AND_PLAY_\w*" +syn keyword oraValue ttc giop ns raw + +"names.ora +syn keyword oraKeywordGroup ADDRESSES ADMIN_REGION +syn keyword oraKeywordGroup DEFAULT_FORWARDERS FORWARDER_LIST FORWARDER +syn keyword oraKeywordGroup DOMAIN_HINTS HINT_DESC HINT_LIST +syn keyword oraKeywordGroup DOMAINS DOMAIN_LIST DOMAIN +syn keyword oraKeywordPref NAMES +syn keyword oraKeyword EXPIRE REFRESH REGION RETRY USERID VERSION +syn keyword oraKeyword AUTHORITY_REQUIRED CONNECT_TIMEOUT +syn keyword oraKeyword AUTO_REFRESH_EXPIRE AUTO_REFRESH_RETRY +syn keyword oraKeyword CACHE_CHECKPOINT_FILE CACHE_CHECKPOINT_INTERVAL +syn keyword oraKeyword CONFIG_CHECKPOINT_FILE DEFAULT_FORWARDERS_ONLY +syn keyword oraKeyword HINT FORWARDING_AVAILABLE FORWARDING_DESIRED +syn keyword oraKeyword KEEP_DB_OPEN +syn keyword oraKeyword LOG_DIRECTORY LOG_FILE LOG_STATS_INTERVAL LOG_UNIQUE +syn keyword oraKeyword MAX_OPEN_CONNECTIONS MAX_REFORWARDS +syn keyword oraKeyword MESSAGE_POOL_START_SIZE +syn keyword oraKeyword NO_MODIFY_REQUESTS NO_REGION_DATABASE +syn keyword oraKeyword PASSWORD REGION_CHECKPOINT_FILE +syn keyword oraKeyword RESET_STATS_INTERVAL SAVE_CONFIG_ON_STOP +syn keyword oraKeyword SERVER_NAME TRACE_FUNC TRACE_UNIQUE + +"cman.ora +syn keyword oraKeywordGroup CMAN CMAN_ADMIN CMAN_PROFILE PARAMETER_LIST +syn keyword oraKeywordGroup CMAN_RULES RULES_LIST RULE +syn keyword oraKeyword ANSWER_TIMEOUT AUTHENTICATION_LEVEL LOG_LEVEL +syn keyword oraKeyword MAX_FREELIST_BUFFERS MAXIMUM_CONNECT_DATA MAXIMUM_RELAYS +syn keyword oraKeyword RELAY_STATISTICS SHOW_TNS_INFO TRACING +syn keyword oraKeyword USE_ASYNC_CALL SRC DST SRV ACT + +"protocol.ora +syn match oraKeyword "\w*\.EXCLUDED_NODES" +syn match oraKeyword "\w*\.INVITED_NODES" +syn match oraKeyword "\w*\.VALIDNODE_CHECKING" +syn keyword oraKeyword TCP NODELAY + + + + +"--------------------------------------- +"init.ora + +"common values +syn keyword oraValue nested_loops merge hash unlimited + +"init params +syn keyword oraKeyword O7_DICTIONARY_ACCESSIBILITY ALWAYS_ANTI_JOIN ALWAYS_SEMI_JOIN +syn keyword oraKeyword AQ_TM_PROCESSES ARCH_IO_SLAVES AUDIT_FILE_DEST AUDIT_TRAIL +syn keyword oraKeyword BACKGROUND_CORE_DUMP BACKGROUND_DUMP_DEST +syn keyword oraKeyword BACKUP_TAPE_IO_SLAVES BITMAP_MERGE_AREA_SIZE +syn keyword oraKeyword BLANK_TRIMMING BUFFER_POOL_KEEP BUFFER_POOL_RECYCLE +syn keyword oraKeyword COMMIT_POINT_STRENGTH COMPATIBLE CONTROL_FILE_RECORD_KEEP_TIME +syn keyword oraKeyword CONTROL_FILES CORE_DUMP_DEST CPU_COUNT +syn keyword oraKeyword CREATE_BITMAP_AREA_SIZE CURSOR_SPACE_FOR_TIME +syn keyword oraKeyword DB_BLOCK_BUFFERS DB_BLOCK_CHECKING DB_BLOCK_CHECKSUM +syn keyword oraKeyword DB_BLOCK_LRU_LATCHES DB_BLOCK_MAX_DIRTY_TARGET +syn keyword oraKeyword DB_BLOCK_SIZE DB_DOMAIN +syn keyword oraKeyword DB_FILE_DIRECT_IO_COUNT DB_FILE_MULTIBLOCK_READ_COUNT +syn keyword oraKeyword DB_FILE_NAME_CONVERT DB_FILE_SIMULTANEOUS_WRITES +syn keyword oraKeyword DB_FILES DB_NAME DB_WRITER_PROCESSES +syn keyword oraKeyword DBLINK_ENCRYPT_LOGIN DBWR_IO_SLAVES +syn keyword oraKeyword DELAYED_LOGGING_BLOCK_CLEANOUTS DISCRETE_TRANSACTIONS_ENABLED +syn keyword oraKeyword DISK_ASYNCH_IO DISTRIBUTED_TRANSACTIONS +syn keyword oraKeyword DML_LOCKS ENQUEUE_RESOURCES ENT_DOMAIN_NAME EVENT +syn keyword oraKeyword FAST_START_IO_TARGET FAST_START_PARALLEL_ROLLBACK +syn keyword oraKeyword FIXED_DATE FREEZE_DB_FOR_FAST_INSTANCE_RECOVERY +syn keyword oraKeyword GC_DEFER_TIME GC_FILES_TO_LOCKS GC_RELEASABLE_LOCKS GC_ROLLBACK_LOCKS +syn keyword oraKeyword GLOBAL_NAMES HASH_AREA_SIZE +syn keyword oraKeyword HASH_JOIN_ENABLED HASH_MULTIBLOCK_IO_COUNT +syn keyword oraKeyword HI_SHARED_MEMORY_ADDRESS HS_AUTOREGISTER +syn keyword oraKeyword IFILE +syn keyword oraKeyword INSTANCE_GROUPS INSTANCE_NAME INSTANCE_NUMBER +syn keyword oraKeyword JAVA_POOL_SIZE JOB_QUEUE_INTERVAL JOB_QUEUE_PROCESSES LARGE_POOL_SIZE +syn keyword oraKeyword LICENSE_MAX_SESSIONS LICENSE_MAX_USERS LICENSE_SESSIONS_WARNING +syn keyword oraKeyword LM_LOCKS LM_PROCS LM_RESS +syn keyword oraKeyword LOCAL_LISTENER LOCK_NAME_SPACE LOCK_SGA LOCK_SGA_AREAS +syn keyword oraKeyword LOG_ARCHIVE_BUFFER_SIZE LOG_ARCHIVE_BUFFERS LOG_ARCHIVE_DEST +syn match oraKeyword "LOG_ARCHIVE_DEST_\(1\|2\|3\|4\|5\)" +syn match oraKeyword "LOG_ARCHIVE_DEST_STATE_\(1\|2\|3\|4\|5\)" +syn keyword oraKeyword LOG_ARCHIVE_DUPLEX_DEST LOG_ARCHIVE_FORMAT LOG_ARCHIVE_MAX_PROCESSES +syn keyword oraKeyword LOG_ARCHIVE_MIN_SUCCEED_DEST LOG_ARCHIVE_START +syn keyword oraKeyword LOG_BUFFER LOG_CHECKPOINT_INTERVAL LOG_CHECKPOINT_TIMEOUT +syn keyword oraKeyword LOG_CHECKPOINTS_TO_ALERT LOG_FILE_NAME_CONVERT +syn keyword oraKeyword MAX_COMMIT_PROPAGATION_DELAY MAX_DUMP_FILE_SIZE +syn keyword oraKeyword MAX_ENABLED_ROLES MAX_ROLLBACK_SEGMENTS +syn keyword oraKeyword MTS_DISPATCHERS MTS_MAX_DISPATCHERS MTS_MAX_SERVERS MTS_SERVERS +syn keyword oraKeyword NLS_CALENDAR NLS_COMP NLS_CURRENCY NLS_DATE_FORMAT +syn keyword oraKeyword NLS_DATE_LANGUAGE NLS_DUAL_CURRENCY NLS_ISO_CURRENCY NLS_LANGUAGE +syn keyword oraKeyword NLS_NUMERIC_CHARACTERS NLS_SORT NLS_TERRITORY +syn keyword oraKeyword OBJECT_CACHE_MAX_SIZE_PERCENT OBJECT_CACHE_OPTIMAL_SIZE +syn keyword oraKeyword OPEN_CURSORS OPEN_LINKS OPEN_LINKS_PER_INSTANCE +syn keyword oraKeyword OPS_ADMINISTRATION_GROUP +syn keyword oraKeyword OPTIMIZER_FEATURES_ENABLE OPTIMIZER_INDEX_CACHING +syn keyword oraKeyword OPTIMIZER_INDEX_COST_ADJ OPTIMIZER_MAX_PERMUTATIONS +syn keyword oraKeyword OPTIMIZER_MODE OPTIMIZER_PERCENT_PARALLEL +syn keyword oraKeyword OPTIMIZER_SEARCH_LIMIT +syn keyword oraKeyword ORACLE_TRACE_COLLECTION_NAME ORACLE_TRACE_COLLECTION_PATH +syn keyword oraKeyword ORACLE_TRACE_COLLECTION_SIZE ORACLE_TRACE_ENABLE +syn keyword oraKeyword ORACLE_TRACE_FACILITY_NAME ORACLE_TRACE_FACILITY_PATH +syn keyword oraKeyword OS_AUTHENT_PREFIX OS_ROLES +syn keyword oraKeyword PARALLEL_ADAPTIVE_MULTI_USER PARALLEL_AUTOMATIC_TUNING +syn keyword oraKeyword PARALLEL_BROADCAST_ENABLED PARALLEL_EXECUTION_MESSAGE_SIZE +syn keyword oraKeyword PARALLEL_INSTANCE_GROUP PARALLEL_MAX_SERVERS +syn keyword oraKeyword PARALLEL_MIN_PERCENT PARALLEL_MIN_SERVERS +syn keyword oraKeyword PARALLEL_SERVER PARALLEL_SERVER_INSTANCES PARALLEL_THREADS_PER_CPU +syn keyword oraKeyword PARTITION_VIEW_ENABLED PLSQL_V2_COMPATIBILITY +syn keyword oraKeyword PRE_PAGE_SGA PROCESSES +syn keyword oraKeyword QUERY_REWRITE_ENABLED QUERY_REWRITE_INTEGRITY +syn keyword oraKeyword RDBMS_SERVER_DN READ_ONLY_OPEN_DELAYED RECOVERY_PARALLELISM +syn keyword oraKeyword REMOTE_DEPENDENCIES_MODE REMOTE_LOGIN_PASSWORDFILE +syn keyword oraKeyword REMOTE_OS_AUTHENT REMOTE_OS_ROLES +syn keyword oraKeyword REPLICATION_DEPENDENCY_TRACKING +syn keyword oraKeyword RESOURCE_LIMIT RESOURCE_MANAGER_PLAN +syn keyword oraKeyword ROLLBACK_SEGMENTS ROW_LOCKING SERIAL _REUSE SERVICE_NAMES +syn keyword oraKeyword SESSION_CACHED_CURSORS SESSION_MAX_OPEN_FILES SESSIONS +syn keyword oraKeyword SHADOW_CORE_DUMP +syn keyword oraKeyword SHARED_MEMORY_ADDRESS SHARED_POOL_RESERVED_SIZE SHARED_POOL_SIZE +syn keyword oraKeyword SORT_AREA_RETAINED_SIZE SORT_AREA_SIZE SORT_MULTIBLOCK_READ_COUNT +syn keyword oraKeyword SQL92_SECURITY SQL_TRACE STANDBY_ARCHIVE_DEST +syn keyword oraKeyword STAR_TRANSFORMATION_ENABLED TAPE_ASYNCH_IO THREAD +syn keyword oraKeyword TIMED_OS_STATISTICS TIMED_STATISTICS +syn keyword oraKeyword TRANSACTION_AUDITING TRANSACTIONS TRANSACTIONS_PER_ROLLBACK_SEGMENT +syn keyword oraKeyword USE_INDIRECT_DATA_BUFFERS USER_DUMP_DEST +syn keyword oraKeyword UTL_FILE_DIR +syn keyword oraKeywordObs ALLOW_PARTIAL_SN_RESULTS B_TREE_BITMAP_PLANS +syn keyword oraKeywordObs BACKUP_DISK_IO_SLAVES CACHE_SIZE_THRESHOLD +syn keyword oraKeywordObs CCF_IO_SIZE CLEANUP_ROLLBACK_ENTRIES +syn keyword oraKeywordObs CLOSE_CACHED_OPEN_CURSORS COMPATIBLE_NO_RECOVERY +syn keyword oraKeywordObs COMPLEX_VIEW_MERGING +syn keyword oraKeywordObs DB_BLOCK_CHECKPOINT_BATCH DB_BLOCK_LRU_EXTENDED_STATISTICS +syn keyword oraKeywordObs DB_BLOCK_LRU_STATISTICS +syn keyword oraKeywordObs DISTRIBUTED_LOCK_TIMEOUT DISTRIBUTED_RECOVERY_CONNECTION_HOLD_TIME +syn keyword oraKeywordObs FAST_FULL_SCAN_ENABLED GC_LATCHES GC_LCK_PROCS +syn keyword oraKeywordObs LARGE_POOL_MIN_ALLOC LGWR_IO_SLAVES +syn keyword oraKeywordObs LOG_BLOCK_CHECKSUM LOG_FILES +syn keyword oraKeywordObs LOG_SIMULTANEOUS_COPIES LOG_SMALL_ENTRY_MAX_SIZE +syn keyword oraKeywordObs MAX_TRANSACTION_BRANCHES +syn keyword oraKeywordObs MTS_LISTENER_ADDRESS MTS_MULTIPLE_LISTENERS +syn keyword oraKeywordObs MTS_RATE_LOG_SIZE MTS_RATE_SCALE MTS_SERVICE +syn keyword oraKeywordObs OGMS_HOME OPS_ADMIN_GROUP +syn keyword oraKeywordObs PARALLEL_DEFAULT_MAX_INSTANCES PARALLEL_MIN_MESSAGE_POOL +syn keyword oraKeywordObs PARALLEL_SERVER_IDLE_TIME PARALLEL_TRANSACTION_RESOURCE_TIMEOUT +syn keyword oraKeywordObs PUSH_JOIN_PREDICATE REDUCE_ALARM ROW_CACHE_CURSORS +syn keyword oraKeywordObs SEQUENCE_CACHE_ENTRIES SEQUENCE_CACHE_HASH_BUCKETS +syn keyword oraKeywordObs SHARED_POOL_RESERVED_MIN_ALLOC +syn keyword oraKeywordObs SORT_DIRECT_WRITES SORT_READ_FAC SORT_SPACEMAP_SIZE +syn keyword oraKeywordObs SORT_WRITE_BUFFER_SIZE SORT_WRITE_BUFFERS +syn keyword oraKeywordObs SPIN_COUNT TEMPORARY_TABLE_LOCKS USE_ISM +syn keyword oraValue db os full partial mandatory optional reopen enable defer +syn keyword oraValue always default intent disable dml plsql temp_disable +syn match oravalue "Arabic Hijrah" +syn match oravalue "English Hijrah" +syn match oravalue "Gregorian" +syn match oravalue "Japanese Imperial" +syn match oravalue "Persian" +syn match oravalue "ROC Official" +syn match oravalue "Thai Buddha" +syn match oravalue "8.0.0" +syn match oravalue "8.0.3" +syn match oravalue "8.0.4" +syn match oravalue "8.1.3" +syn match oraModifier "archived log" +syn match oraModifier "backup corruption" +syn match oraModifier "backup datafile" +syn match oraModifier "backup piece " +syn match oraModifier "backup redo log" +syn match oraModifier "backup set" +syn match oraModifier "copy corruption" +syn match oraModifier "datafile copy" +syn match oraModifier "deleted object" +syn match oraModifier "loghistory" +syn match oraModifier "offline range" + +"undocumented init params +"up to 7.2 (inclusive) +syn keyword oraKeywordUndObs _latch_spin_count _trace_instance_termination +syn keyword oraKeywordUndObs _wakeup_timeout _lgwr_async_write +"7.3 +syn keyword oraKeywordUndObs _standby_lock_space_name _enable_dba_locking +"8.0.5 +syn keyword oraKeywordUnd _NUMA_instance_mapping _NUMA_pool_size +syn keyword oraKeywordUnd _advanced_dss_features _affinity_on _all_shared_dblinks +syn keyword oraKeywordUnd _allocate_creation_order _allow_resetlogs_corruption +syn keyword oraKeywordUnd _always_star_transformation _bump_highwater_mark_count +syn keyword oraKeywordUnd _column_elimination_off _controlfile_enqueue_timeout +syn keyword oraKeywordUnd _corrupt_blocks_on_stuck_recovery _corrupted_rollback_segments +syn keyword oraKeywordUnd _cr_deadtime _cursor_db_buffers_pinned +syn keyword oraKeywordUnd _db_block_cache_clone _db_block_cache_map _db_block_cache_protect +syn keyword oraKeywordUnd _db_block_hash_buckets _db_block_hi_priority_batch_size +syn keyword oraKeywordUnd _db_block_max_cr_dba _db_block_max_scan_cnt +syn keyword oraKeywordUnd _db_block_med_priority_batch_size _db_block_no_idle_writes +syn keyword oraKeywordUnd _db_block_write_batch _db_handles _db_handles_cached +syn keyword oraKeywordUnd _db_large_dirty_queue _db_no_mount_lock +syn keyword oraKeywordUnd _db_writer_histogram_statistics _db_writer_scan_depth +syn keyword oraKeywordUnd _db_writer_scan_depth_decrement _db_writer_scan_depth_increment +syn keyword oraKeywordUnd _disable_incremental_checkpoints +syn keyword oraKeywordUnd _disable_latch_free_SCN_writes_via_32cas +syn keyword oraKeywordUnd _disable_latch_free_SCN_writes_via_64cas +syn keyword oraKeywordUnd _disable_logging _disable_ntlog_events +syn keyword oraKeywordUnd _dss_cache_flush _dynamic_stats_threshold +syn keyword oraKeywordUnd _enable_cscn_caching _enable_default_affinity +syn keyword oraKeywordUnd _enqueue_debug_multi_instance _enqueue_hash +syn keyword oraKeywordUnd _enqueue_hash_chain_latches _enqueue_locks +syn keyword oraKeywordUnd _fifth_spare_parameter _first_spare_parameter _fourth_spare_parameter +syn keyword oraKeywordUnd _gc_class_locks _groupby_nopushdown_cut_ratio +syn keyword oraKeywordUnd _idl_conventional_index_maintenance _ignore_failed_escalates +syn keyword oraKeywordUnd _init_sql_file +syn keyword oraKeywordUnd _io_slaves_disabled _ioslave_batch_count _ioslave_issue_count +syn keyword oraKeywordUnd _kgl_bucket_count _kgl_latch_count _kgl_multi_instance_invalidation +syn keyword oraKeywordUnd _kgl_multi_instance_lock _kgl_multi_instance_pin +syn keyword oraKeywordUnd _latch_miss_stat_sid _latch_recovery_alignment _latch_wait_posting +syn keyword oraKeywordUnd _lm_ast_option _lm_direct_sends _lm_dlmd_procs _lm_domains _lm_groups +syn keyword oraKeywordUnd _lm_non_fault_tolerant _lm_send_buffers _lm_statistics _lm_xids +syn keyword oraKeywordUnd _log_blocks_during_backup _log_buffers_debug _log_checkpoint_recovery_check +syn keyword oraKeywordUnd _log_debug_multi_instance _log_entry_prebuild_threshold _log_io_size +syn keyword oraKeywordUnd _log_space_errors +syn keyword oraKeywordUnd _max_exponential_sleep _max_sleep_holding_latch +syn keyword oraKeywordUnd _messages _minimum_giga_scn _mts_load_constants _nested_loop_fudge +syn keyword oraKeywordUnd _no_objects _no_or_expansion +syn keyword oraKeywordUnd _number_cached_attributes _offline_rollback_segments _open_files_limit +syn keyword oraKeywordUnd _optimizer_undo_changes +syn keyword oraKeywordUnd _oracle_trace_events _oracle_trace_facility_version +syn keyword oraKeywordUnd _ordered_nested_loop _parallel_server_sleep_time +syn keyword oraKeywordUnd _passwordfile_enqueue_timeout _pdml_slaves_diff_part +syn keyword oraKeywordUnd _plsql_dump_buffer_events _predicate_elimination_enabled +syn keyword oraKeywordUnd _project_view_columns +syn keyword oraKeywordUnd _px_broadcast_fudge_factor _px_broadcast_trace _px_dop_limit_degree +syn keyword oraKeywordUnd _px_dop_limit_threshold _px_kxfr_granule_allocation _px_kxib_tracing +syn keyword oraKeywordUnd _release_insert_threshold _reuse_index_loop +syn keyword oraKeywordUnd _rollback_segment_count _rollback_segment_initial +syn keyword oraKeywordUnd _row_cache_buffer_size _row_cache_instance_locks +syn keyword oraKeywordUnd _save_escalates _scn_scheme +syn keyword oraKeywordUnd _second_spare_parameter _session_idle_bit_latches +syn keyword oraKeywordUnd _shared_session_sort_fetch_buffer _single_process +syn keyword oraKeywordUnd _small_table_threshold _sql_connect_capability_override +syn keyword oraKeywordUnd _sql_connect_capability_table +syn keyword oraKeywordUnd _test_param_1 _test_param_2 _test_param_3 +syn keyword oraKeywordUnd _third_spare_parameter _tq_dump_period +syn keyword oraKeywordUnd _trace_archive_dest _trace_archive_start _trace_block_size +syn keyword oraKeywordUnd _trace_buffers_per_process _trace_enabled _trace_events +syn keyword oraKeywordUnd _trace_file_size _trace_files_public _trace_flushing _trace_write_batch_size +syn keyword oraKeywordUnd _upconvert_from_ast _use_vector_post _wait_for_sync _walk_insert_threshold +"dunno which version; may be 8.1.x, may be obsoleted +syn keyword oraKeywordUndObs _arch_io_slaves _average_dirties_half_life _b_tree_bitmap_plans +syn keyword oraKeywordUndObs _backup_disk_io_slaves _backup_io_pool_size +syn keyword oraKeywordUndObs _cleanup_rollback_entries _close_cached_open_cursors +syn keyword oraKeywordUndObs _compatible_no_recovery _complex_view_merging +syn keyword oraKeywordUndObs _cpu_to_io _cr_server +syn keyword oraKeywordUndObs _db_aging_cool_count _db_aging_freeze_cr _db_aging_hot_criteria +syn keyword oraKeywordUndObs _db_aging_stay_count _db_aging_touch_time +syn keyword oraKeywordUndObs _db_percent_hot_default _db_percent_hot_keep _db_percent_hot_recycle +syn keyword oraKeywordUndObs _db_writer_chunk_writes _db_writer_max_writes +syn keyword oraKeywordUndObs _dbwr_async_io _dbwr_tracing +syn keyword oraKeywordUndObs _defer_multiple_waiters _discrete_transaction_enabled +syn keyword oraKeywordUndObs _distributed_lock_timeout _distributed_recovery _distribited_recovery_ +syn keyword oraKeywordUndObs _domain_index_batch_size _domain_index_dml_batch_size +syn keyword oraKeywordUndObs _enable_NUMA_optimization _enable_block_level_transaction_recovery +syn keyword oraKeywordUndObs _enable_list_io _enable_multiple_sampling +syn keyword oraKeywordUndObs _fairness_treshold _fast_full_scan_enabled _foreground_locks +syn keyword oraKeywordUndObs _full_pwise_join_enabled _gc_latches _gc_lck_procs +syn keyword oraKeywordUndObs _high_server_treshold _index_prefetch_factor _kcl_debug +syn keyword oraKeywordUndObs _kkfi_trace _large_pool_min_alloc _lazy_freelist_close _left_nested_loops_random +syn keyword oraKeywordUndObs _lgwr_async_io _lgwr_io_slaves _lock_sga_areas +syn keyword oraKeywordUndObs _log_archive_buffer_size _log_archive_buffers _log_simultaneous_copies +syn keyword oraKeywordUndObs _low_server_treshold _max_transaction_branches +syn keyword oraKeywordUndObs _mts_rate_log_size _mts_rate_scale +syn keyword oraKeywordUndObs _mview_cost_rewrite _mview_rewrite_2 +syn keyword oraKeywordUndObs _ncmb_readahead_enabled _ncmb_readahead_tracing +syn keyword oraKeywordUndObs _ogms_home +syn keyword oraKeywordUndObs _parallel_adaptive_max_users _parallel_default_max_instances +syn keyword oraKeywordUndObs _parallel_execution_message_align _parallel_fake_class_pct +syn keyword oraKeywordUndObs _parallel_load_bal_unit _parallel_load_balancing +syn keyword oraKeywordUndObs _parallel_min_message_pool _parallel_recovery_stopat +syn keyword oraKeywordUndObs _parallel_server_idle_time _parallelism_cost_fudge_factor +syn keyword oraKeywordUndObs _partial_pwise_join_enabled _pdml_separate_gim _push_join_predicate +syn keyword oraKeywordUndObs _px_granule_size _px_index_sampling _px_load_publish_interval +syn keyword oraKeywordUndObs _px_max_granules_per_slave _px_min_granules_per_slave _px_no_stealing +syn keyword oraKeywordUndObs _row_cache_cursors _serial_direct_read _shared_pool_reserved_min_alloc +syn keyword oraKeywordUndObs _sort_space_for_write_buffers _spin_count _system_trig_enabled +syn keyword oraKeywordUndObs _trace_buffer_flushes _trace_cr_buffer_creates _trace_multi_block_reads +syn keyword oraKeywordUndObs _transaction_recovery_servers _use_ism _yield_check_interval + + +syn cluster oraAll add=oraKeyword,oraKeywordGroup,oraKeywordPref,oraKeywordObs,oraKeywordUnd,oraKeywordUndObs +syn cluster oraAll add=oraValue,oraModifier,oraString,oraSpecial,oraComment + +"============================================================================== +" highlighting + +" Only when an item doesn't have highlighting yet + +hi def link oraKeyword Statement "usual keywords +hi def link oraKeywordGroup Type "keywords which group other keywords +hi def link oraKeywordPref oraKeywordGroup "keywords which act as prefixes +hi def link oraKeywordObs Todo "obsolete keywords +hi def link oraKeywordUnd PreProc "undocumented keywords +hi def link oraKeywordUndObs oraKeywordObs "undocumented obsolete keywords +hi def link oraValue Identifier "values, like true or false +hi def link oraModifier oraValue "modifies values +hi def link oraString String "strings + +hi def link oraSpecial Special "special characters +hi def link oraError Error "errors +hi def link oraParenError oraError "errors caused by mismatching parentheses + +hi def link oraComment Comment "comments + + + +let b:current_syntax = "ora" + +if main_syntax == 'ora' + unlet main_syntax +endif + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/org.vim b/git/usr/share/vim/vim92/syntax/org.vim new file mode 100644 index 0000000000000000000000000000000000000000..75264be5d42eb4cc892571a8182ac0e0609bec0f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/org.vim @@ -0,0 +1,73 @@ +" Vim syntax file +" Language: Org +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. +" Last Change: 2025 Aug 05 +" 2026 Apr 09: Link to generic Bold/Italic groups +" +" Reference Specification: Org mode manual +" GNU Info: `$ info Org` +" Web: + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif +let b:current_syntax = 'org' + +syn case ignore + +" Bold +syn region orgBold matchgroup=orgBoldDelimiter start="\(^\|[- '"({\]]\)\@<=\*\ze[^ ]" end="^\@!\*\([^\k\*]\|$\)\@=" keepend +hi def link orgBold Bold +hi def link orgBoldDelimiter orgBold + +" Italic +syn region orgItalic matchgroup=orgItalicDelimiter start="\(^\|[- '"({\]]\)\@<=\/\ze[^ ]" end="^\@!\/\([^\k\/]\|$\)\@=" keepend +hi def link orgItalic Italic +hi def link orgItalicDelimiter orgItalic + +" Strikethrogh +syn region orgStrikethrough matchgroup=orgStrikethroughDelimiter start="\(^\|[ '"({\]]\)\@<=+\ze[^ ]" end="^\@!+\([^\k+]\|$\)\@=" keepend +hi def orgStrikethrough term=strikethrough cterm=strikethrough gui=strikethrough +hi def link orgStrikethroughDelimiter orgStrikethrough + +" Underline +syn region orgUnderline matchgroup=orgUnderlineDelimiter start="\(^\|[- '"({\]]\)\@<=_\ze[^ ]" end="^\@!_\([^\k_]\|$\)\@=" keepend + +" Headlines +syn match orgHeadline "^\*\+\s\+.*$" keepend +hi def link orgHeadline Title + +" Line Comment +syn match orgLineComment /^\s*#\s\+.*$/ keepend +hi def link orgLineComment Comment + +" Block Comment +syn region orgBlockComment matchgroup=orgBlockCommentDelimiter start="\c^\s*#+BEGIN_COMMENT" end="\c^\s*#+END_COMMENT" keepend +hi def link orgBlockComment Comment +hi def link orgBlockCommentDelimiter Comment + +" Lists +syn match orgUnorderedListMarker "^\s*[-+]\s\+" keepend +hi def link orgUnorderedListMarker markdownOrderedListMarker +syn match orgOrderedListMarker "^\s*\(\d\|\a\)\+[.)]\s\+" keepend +hi def link orgOrderedListMarker markdownOrderedListMarker +" +" Verbatim +syn region orgVerbatimInline matchgroup=orgVerbatimInlineDelimiter start="\(^\|[- '"({\]]\)\@<==\ze[^ ]" end="^\@!=\([^\k=]\|$\)\@=" keepend +hi def link orgVerbatimInline markdownCodeBlock +hi def link orgVerbatimInlineDelimiter orgVerbatimInline +syn region orgVerbatimBlock matchgroup=orgVerbatimBlockDelimiter start="\c^\s*#+BEGIN_.*" end="\c^\s*#+END_.*" keepend +hi def link orgVerbatimBlock orgCode +hi def link orgVerbatimBlockDelimiter orgVerbatimBlock + +" Code +syn region orgCodeInline matchgroup=orgCodeInlineDelimiter start="\(^\|[- '"({\]]\)\@<=\~\ze[^ ]" end="^\@!\~\([^\k\~]\|$\)\@=" keepend +highlight def link orgCodeInline markdownCodeBlock +highlight def link orgCodeInlineDelimiter orgCodeInline +syn region orgCodeBlock matchgroup=orgCodeBlockDelimiter start="\c^\s*#+BEGIN_SRC.*" end="\c^\s*#+END_SRC" keepend +highlight def link orgCodeBlock markdownCodeBlock +highlight def link orgCodeBlockDelimiter orgCodeBlock + +" vim: ts=8 sts=2 sw=2 et diff --git a/git/usr/share/vim/vim92/syntax/pacmanlog.vim b/git/usr/share/vim/vim92/syntax/pacmanlog.vim new file mode 100644 index 0000000000000000000000000000000000000000..798b48f72792c407f1aa596b5ba2be9765632f20 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/pacmanlog.vim @@ -0,0 +1,48 @@ +" Vim syntax file +" Language: pacman.log +" Maintainer: Ronan Pigott +" Last Change: 2023 Dec 04 +" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn sync maxlines=1 +syn region pacmanlogMsg start='\S' end='$' keepend contains=pacmanlogTransaction,pacmanlogALPMMsg +syn region pacmanlogTag start='\['hs=s+1 end='\]'he=e-1 keepend nextgroup=pacmanlogMsg +syn region pacmanlogTime start='^\['hs=s+1 end='\]'he=e-1 keepend nextgroup=pacmanlogTag + +syn match pacmanlogPackageName '\v[a-z0-9@_+.-]+' contained skipwhite nextgroup=pacmanlogPackageVersion +syn match pacmanlogPackageVersion '(.*)' contained + +syn match pacmanlogTransaction 'transaction \v(started|completed)$' contained +syn match pacmanlogInstalled '\v(re)?installed' contained nextgroup=pacmanlogPackageName +syn match pacmanlogUpgraded 'upgraded' contained nextgroup=pacmanlogPackageName +syn match pacmanlogDowngraded 'downgraded' contained nextgroup=pacmanlogPackageName +syn match pacmanlogRemoved 'removed' contained nextgroup=pacmanlogPackageName +syn match pacmanlogWarning 'warning:.*$' contained + +syn region pacmanlogALPMMsg start='\v(\[ALPM\] )@<=(transaction|(re)?installed|upgraded|downgraded|removed|warning)>' end='$' contained + \ contains=pacmanlogTransaction,pacmanlogInstalled,pacmanlogUpgraded,pacmanlogDowngraded,pacmanlogRemoved,pacmanlogWarning,pacmanlogPackageName,pacmanlogPackgeVersion + +hi def link pacmanlogTime String +hi def link pacmanlogTag Type + +hi def link pacmanlogTransaction Special +hi def link pacmanlogInstalled Identifier +hi def link pacmanlogRemoved Repeat +hi def link pacmanlogUpgraded pacmanlogInstalled +hi def link pacmanlogDowngraded pacmanlogRemoved +hi def link pacmanlogWarning WarningMsg + +hi def link pacmanlogPackageName Normal +hi def link pacmanlogPackageVersion Comment + +let b:current_syntax = "pacmanlog" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/pamconf.vim b/git/usr/share/vim/vim92/syntax/pamconf.vim new file mode 100644 index 0000000000000000000000000000000000000000..1b5f901348fe6cad01b815f790d1db67964f8975 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/pamconf.vim @@ -0,0 +1,140 @@ +" Vim syntax file +" Language: pam(8) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Change: 2024/03/31 +" Changes By: Haochen Tong +" Vim Project for the @include syntax + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +let s:has_service_field = exists("b:pamconf_has_service_field") + \ ? b:pamconf_has_service_field + \ : expand('%:t') == 'pam.conf' ? 1 : 0 + +syn match pamconfType '-\?[[:alpha:]]\+' + \ contains=pamconfTypeKeyword + \ nextgroup=pamconfControl, + \ pamconfTypeLineCont skipwhite + +syn keyword pamconfTypeKeyword contained account auth password session + +" The @include syntax is Debian specific +syn match pamconfInclude '^@include' + \ nextgroup=pamconfIncludeFile + \ skipwhite + +syn match pamconfIncludeFile '\f\+$' + +if s:has_service_field + syn match pamconfService '^[[:graph:]]\+' + \ nextgroup=pamconfType, + \ pamconfServiceLineCont skipwhite + + syn match pamconfServiceLineCont contained '\\$' + \ nextgroup=pamconfType, + \ pamconfServiceLineCont skipwhite skipnl +endif + +syn keyword pamconfTodo contained TODO FIXME XXX NOTE + +syn region pamconfComment display oneline start='#' end='$' + \ contains=pamconfTodo,@Spell + +syn match pamconfTypeLineCont contained '\\$' + \ nextgroup=pamconfControl, + \ pamconfTypeLineCont skipwhite skipnl + +syn keyword pamconfControl contained requisite required sufficient + \ optional include substack + \ nextgroup=pamconfMPath, + \ pamconfControlLineContH skipwhite + +syn match pamconfControlBegin '\[' nextgroup=pamconfControlValues, + \ pamconfControlLineCont skipwhite + +syn match pamconfControlLineCont contained '\\$' + \ nextgroup=pamconfControlValues, + \ pamconfControlLineCont skipwhite skipnl + +syn keyword pamconfControlValues contained success open_err symbol_err + \ service_err system_err buf_err + \ perm_denied auth_err cred_insufficient + \ authinfo_unavail user_unknown maxtries + \ new_authtok_reqd acct_expired session_err + \ cred_unavail cred_expired cred_err + \ no_module_data conv_err authtok_err + \ authtok_recover_err authtok_lock_busy + \ authtok_disable_aging try_again ignore + \ abort authtok_expired module_unknown + \ bad_item and default + \ nextgroup=pamconfControlValueEq + +syn match pamconfControlValueEq contained '=' + \ nextgroup=pamconfControlActionN, + \ pamconfControlAction + +syn match pamconfControlActionN contained '\d\+\>' + \ nextgroup=pamconfControlValues, + \ pamconfControlLineCont,pamconfControlEnd + \ skipwhite +syn keyword pamconfControlAction contained ignore bad die ok done reset + \ nextgroup=pamconfControlValues, + \ pamconfControlLineCont,pamconfControlEnd + \ skipwhite + +syn match pamconfControlEnd contained '\]' + \ nextgroup=pamconfMPath, + \ pamconfControlLineContH skipwhite + +syn match pamconfControlLineContH contained '\\$' + \ nextgroup=pamconfMPath, + \ pamconfControlLineContH skipwhite skipnl + +syn match pamconfMPath contained '\S\+' + \ nextgroup=pamconfMPathLineCont, + \ pamconfArgs skipwhite + +syn match pamconfArgs contained '\S\+' + \ nextgroup=pamconfArgsLineCont, + \ pamconfArgs skipwhite + +syn match pamconfMPathLineCont contained '\\$' + \ nextgroup=pamconfMPathLineCont, + \ pamconfArgs skipwhite skipnl + +syn match pamconfArgsLineCont contained '\\$' + \ nextgroup=pamconfArgsLineCont, + \ pamconfArgs skipwhite skipnl + +hi def link pamconfTodo Todo +hi def link pamconfComment Comment +hi def link pamconfService Statement +hi def link pamconfServiceLineCont Special +hi def link pamconfType Special +hi def link pamconfTypeKeyword Type +hi def link pamconfTypeLineCont pamconfServiceLineCont +hi def link pamconfControl Macro +hi def link pamconfControlBegin Delimiter +hi def link pamconfControlLineContH pamconfServiceLineCont +hi def link pamconfControlLineCont pamconfServiceLineCont +hi def link pamconfControlValues Identifier +hi def link pamconfControlValueEq Operator +hi def link pamconfControlActionN Number +hi def link pamconfControlAction Identifier +hi def link pamconfControlEnd Delimiter +hi def link pamconfMPath String +hi def link pamconfMPathLineCont pamconfServiceLineCont +hi def link pamconfArgs Normal +hi def link pamconfArgsLineCont pamconfServiceLineCont +hi def link pamconfInclude Include +hi def link pamconfIncludeFile Include + +let b:current_syntax = "pamconf" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/pamenv.vim b/git/usr/share/vim/vim92/syntax/pamenv.vim new file mode 100644 index 0000000000000000000000000000000000000000..90359daa61cf8c233094c862fc337f96f37df256 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/pamenv.vim @@ -0,0 +1,28 @@ +" Vim syntax file +" Language: pam_env.conf(5) configuration file +" Latest Revision: 2020-05-10 + +if exists("b:current_syntax") + finish +endif + +syn keyword pamenvTodo contained TODO FIXME XXX NOTE +syn region pamenvComment start='^#' end='$' display oneline contains=pamenvTodo,@Spells + +syn match pamenvVars '^[A-Z_][A-Z_0-9]*' nextgroup=pamenvKeywords skipwhite + +syn keyword pamenvKeywords contained DEFAULT OVERRIDE nextgroup=pamenvVarEq + +syn match pamenvVarEq contained '=' nextgroup=pamenvValue,pamenvValueWithQuote + +syn match pamenvValue contained '[^ \t]*' skipwhite nextgroup=pamenvKeywords +syn region pamenvValueWithQuote contained start='"' end='"' skipwhite nextgroup=pamenvKeywords + +hi def link pamenvTodo Todo +hi def link pamenvComment Comment +hi def link pamenvKeywords Keyword +hi def link pamenvVars Identifier +hi def link pamenvValue String +hi def link pamenvValueWithQuote String + +let b:current_syntax = "pamenv" diff --git a/git/usr/share/vim/vim92/syntax/pandoc.vim b/git/usr/share/vim/vim92/syntax/pandoc.vim new file mode 100644 index 0000000000000000000000000000000000000000..fdbdde096f835c2657fede42262269984ee6856a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/pandoc.vim @@ -0,0 +1,714 @@ +scriptencoding utf-8 +" Vim syntax file +" Language: Pandoc (superset of Markdown) +" Maintainer: Felipe Morales +" Maintainer: Caleb Maclennan +" Upstream: https://github.com/vim-pandoc/vim-pandoc-syntax/tree/ea3fc415784bdcbae7f0093b80070ca4ff9e44c8 +" Contributor: David Sanson +" Jorge Israel Peña +" Christian Brabandt @chrisbra +" Original Author: Jeremy Schultz +" Version: 5.0 +" Last Change: 2024 Apr 08 +" 2025 Jun 27 by Vim project: sync with upstream (#17598) + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpoptions +set cpoptions&vim + +" Configuration: {{{1 +" +" use conceal? {{{2 +if !exists('g:pandoc#syntax#conceal#use') + let g:pandoc#syntax#conceal#use = 1 +endif +"}}}2 + +" what groups not to use conceal in. works as a blacklist {{{2 +if !exists('g:pandoc#syntax#conceal#blacklist') + let g:pandoc#syntax#conceal#blacklist = [] +endif +" }}}2 + +" cchars used in conceal rules {{{2 +" utf-8 defaults (preferred) +if &encoding ==# 'utf-8' + let s:cchars = { + \'newline': '↵', + \'image': '▨', + \'super': 'ⁿ', + \'sub': 'ₙ', + \'strike': 'x̶', + \'atx': '§', + \'codelang': 'λ', + \'codeend': '—', + \'abbrev': '→', + \'footnote': '†', + \'definition': ' ', + \'li': '•', + \'html_c_s': '‹', + \'html_c_e': '›', + \'quote_s': '“', + \'quote_e': '”'} +else + " ascii defaults + let s:cchars = { + \'newline': ' ', + \'image': 'i', + \'super': '^', + \'sub': '_', + \'strike': '~', + \'atx': '#', + \'codelang': 'l', + \'codeend': '-', + \'abbrev': 'a', + \'footnote': 'f', + \'definition': ' ', + \'li': '*', + \'html_c_s': '+', + \'html_c_e': '+'} +endif +" }}}2 + +" if the user has a dictionary with replacements for the default cchars, use those {{{2 +if exists('g:pandoc#syntax#conceal#cchar_overrides') + let s:cchars = extend(s:cchars, g:pandoc#syntax#conceal#cchar_overrides) +endif +" }}}2 + +"should the urls in links be concealed? {{{2 +if !exists('g:pandoc#syntax#conceal#urls') + let g:pandoc#syntax#conceal#urls = 0 +endif +" should backslashes in escapes be concealed? {{{2 +if !exists('g:pandoc#syntax#conceal#backslash') + let g:pandoc#syntax#conceal#backslash = 0 +endif +" }}}2 + +" leave specified codeblocks as Normal (i.e. 'unhighlighted') {{{2 +if !exists('g:pandoc#syntax#codeblocks#ignore') + let g:pandoc#syntax#codeblocks#ignore = [] +endif +" }}}2 + +" use embedded highlighting for delimited codeblocks where a language is specifed. {{{2 +if !exists('g:pandoc#syntax#codeblocks#embeds#use') + let g:pandoc#syntax#codeblocks#embeds#use = 1 +endif +" }}}2 + +" for what languages and using what vim syntax files highlight those embeds. {{{2 +" defaults to None. +if !exists('g:pandoc#syntax#codeblocks#embeds#langs') + let g:pandoc#syntax#codeblocks#embeds#langs = [] +endif +" }}}2 + +" use italics ? {{{2 +if !exists('g:pandoc#syntax#style#emphases') + let g:pandoc#syntax#style#emphases = 1 +endif +" if 0, we don't conceal the emphasis marks, otherwise there wouldn't be a way +" to tell where the styles apply. +if g:pandoc#syntax#style#emphases == 0 + call add(g:pandoc#syntax#conceal#blacklist, 'block') +endif +" }}}2 + +" underline subscript, superscript and strikeout? {{{2 +if !exists('g:pandoc#syntax#style#underline_special') + let g:pandoc#syntax#style#underline_special = 1 +endif +" }}}2 + +" protect code blocks? {{{2 +if !exists('g:pandoc#syntax#protect#codeblocks') + let g:pandoc#syntax#protect#codeblocks = 1 +endif +" }}}2 + +" use color column? {{{2 +if !exists('g:pandoc#syntax#colorcolumn') + let g:pandoc#syntax#colorcolumn = 0 +endif +" }}}2 + +" highlight new lines? {{{2 +if !exists('g:pandoc#syntax#newlines') + let g:pandoc#syntax#newlines = 1 +endif +" }}} + +" detect roman-numeral list items? {{{2 +if !exists('g:pandoc#syntax#roman_lists') + let g:pandoc#syntax#roman_lists = 0 +endif +" }}}2 + +" disable syntax highlighting for definition lists? (better performances) {{{2 +if !exists('g:pandoc#syntax#use_definition_lists') + let g:pandoc#syntax#use_definition_lists = 1 +endif +" }}}2 + +" }}}1 + +" Functions: {{{1 +" EnableEmbedsforCodeblocksWithLang {{{2 +function! EnableEmbedsforCodeblocksWithLang(entry) + " prevent embedded language syntaxes from changing 'foldmethod' + if has('folding') + let s:foldmethod = &l:foldmethod + let s:foldtext = &l:foldtext + endif + + try + let s:langname = matchstr(a:entry, '^[^=]*') + let s:langsyntaxfile = matchstr(a:entry, '[^=]*$') + unlet! b:current_syntax + exe 'syn include @'.toupper(s:langname).' syntax/'.s:langsyntaxfile.'.vim' + " We might have just turned off spellchecking by including the file, + " so we turn it back on here. + exe 'syntax spell toplevel' + exe 'syn region pandocDelimitedCodeBlock_' . s:langname . ' start=/\(\_^\( \+\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*[.=]\)\=' . s:langname . '\>.*\n\)\@<=\_^/' . + \' end=/\_$\n\(\( \+\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\_$\n\_$\)\@=/ contained containedin=pandocDelimitedCodeBlock' . + \' contains=@' . toupper(s:langname) + exe 'syn region pandocDelimitedCodeBlockinBlockQuote_' . s:langname . ' start=/>\s\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*\.\)\=' . s:langname . '\>/' . + \ ' end=/\(`\{3,}`*\|\~\{3,}\~*\)/ contained containedin=pandocDelimitedCodeBlock' . + \' contains=@' . toupper(s:langname) . + \',pandocDelimitedCodeBlockStart,pandocDelimitedCodeBlockEnd,pandodDelimitedCodeblockLang,pandocBlockQuoteinDelimitedCodeBlock' + catch /E484/ + echo "No syntax file found for '" . s:langsyntaxfile . "'" + endtry + + if exists('s:foldmethod') && s:foldmethod !=# &l:foldmethod + let &l:foldmethod = s:foldmethod + endif + if exists('s:foldtext') && s:foldtext !=# &l:foldtext + let &l:foldtext = s:foldtext + endif +endfunction +" }}}2 + +" DisableEmbedsforCodeblocksWithLang {{{2 +function! DisableEmbedsforCodeblocksWithLang(langname) + try + exe 'syn clear pandocDelimitedCodeBlock_'.a:langname + exe 'syn clear pandocDelimitedCodeBlockinBlockQuote_'.a:langname + catch /E28/ + echo "No existing highlight definitions found for '" . a:langname . "'" + endtry +endfunction +" }}}2 + +" WithConceal {{{2 +function! s:WithConceal(rule_group, rule, conceal_rule) + let l:rule_tail = '' + if g:pandoc#syntax#conceal#use != 0 + if index(g:pandoc#syntax#conceal#blacklist, a:rule_group) == -1 + let l:rule_tail = ' ' . a:conceal_rule + endif + endif + execute a:rule . l:rule_tail +endfunction +" }}}2 + +" }}}1 + +" Commands: {{{1 +command! -buffer -nargs=1 -complete=syntax PandocHighlight call EnableEmbedsforCodeblocksWithLang() +command! -buffer -nargs=1 -complete=syntax PandocUnhighlight call DisableEmbedsforCodeblocksWithLang() +" }}}1 + +" BASE: +syntax clear +syntax spell toplevel +" }}}1 + +" Syntax Rules: {{{1 + +" Embeds: {{{2 + +" prevent embedded language syntaxes from changing 'foldmethod' +if has('folding') + let s:foldmethod = &l:foldmethod +endif + +" HTML: {{{3 +" Set embedded HTML highlighting +syn include @HTML syntax/html.vim +syn match pandocHTML /<\/\?\a\_.\{-}>/ contains=@HTML +" Support HTML multi line comments +syn region pandocHTMLComment start=// keepend contains=pandocHTMLCommentStart,pandocHTMLCommentEnd +call s:WithConceal('html_c_s', 'syn match pandocHTMLCommentStart // contained', 'conceal cchar='.s:cchars['html_c_e']) +" }}}3 + +" LaTeX: {{{3 +" Set embedded LaTex (pandoc extension) highlighting +" Unset current_syntax so the 2nd include will work +unlet b:current_syntax +syn include @LATEX syntax/tex.vim +if index(g:pandoc#syntax#conceal#blacklist, 'inlinemath') == -1 + " Can't use WithConceal here because it will mess up all other conceals + " when dollar signs are used normally. It must be skipped entirely if + " inlinemath is blacklisted + syn region pandocLaTeXInlineMath start=/\v\\@.*\n\(.*\n\@1/ contained containedin=pandocEmphasis,pandocStrong,pandocPCite,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocUListItem,pandocNoFormatted +" }}}2 + +" Code Blocks: {{{2 +if g:pandoc#syntax#protect#codeblocks == 1 + syn match pandocCodeblock /\([ ]\{4}\|\t\).*$/ +endif +syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@/ contains=NONE +" }}}3 + +" }}}2 + +" Citations: {{{2 +" parenthetical citations +syn match pandocPCite "\^\@~/]*.\{-}\]" contains=pandocEmphasis,pandocStrong,pandocLatex,pandocCiteKey,@Spell,pandocAmpersandEscape display +" in-text citations with location +syn match pandocICite "@[[:alnum:]_][[:digit:][:lower:][:upper:]_:.#$%&\-+?<>~/]*\s\[.\{-1,}\]" contains=pandocCiteKey,@Spell display +" cite keys +syn match pandocCiteKey /\(-\=@[[:alnum:]_][[:digit:][:lower:][:upper:]_:.#$%&\-+?<>~/]*\)/ containedin=pandocPCite,pandocICite contains=@NoSpell display +syn match pandocCiteAnchor /[-@]/ contained containedin=pandocCiteKey display +syn match pandocCiteLocator /[\[\]]/ contained containedin=pandocPCite,pandocICite +" }}}2 + +" Text Styles: {{{2 + +" Emphasis: {{{3 +call s:WithConceal('block', 'syn region pandocEmphasis matchgroup=pandocOperator start=/\\\@1.*\n\|^\s*\n\)\@<=#\{1,6}.*\n/ contains=pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,@Spell,pandocAmpersandEscape,pandocReferenceLabel,pandocReferenceURL display +syn match pandocAtxHeaderMark /\(^#\{1,6}\|\\\@/ contained containedin=pandocGridTableHeader,pandocPipeTableHeader contains=@Spell +" }}}2 + +" Delimited Code Blocks: {{{2 +" this is here because we can override strikeouts and subscripts +syn region pandocDelimitedCodeBlock start=/^\(>\s\)\?\z(\([ ]\+\|\t\)\=\~\{3,}\~*\)/ end=/^\z1\~*/ skipnl contains=pandocDelimitedCodeBlockStart,pandocDelimitedCodeBlockEnd keepend +syn region pandocDelimitedCodeBlock start=/^\(>\s\)\?\z(\([ ]\+\|\t\)\=`\{3,}`*\)/ end=/^\z1`*/ skipnl contains=pandocDelimitedCodeBlockStart,pandocDelimitedCodeBlockEnd keepend +call s:WithConceal('codeblock_start', 'syn match pandocDelimitedCodeBlockStart /\(\(\_^\n\_^\|\%^\)\(>\s\)\?\( \+\|\t\)\=\)\@<=\(\~\{3,}\~*\|`\{3,}`*\)/ contained containedin=pandocDelimitedCodeBlock nextgroup=pandocDelimitedCodeBlockLanguage', 'conceal cchar='.s:cchars['codelang']) +syn match pandocDelimitedCodeBlockLanguage /\(\s\?\)\@<=.\+\(\_$\)\@=/ contained +call s:WithConceal('codeblock_delim', 'syn match pandocDelimitedCodeBlockEnd /\(`\{3,}`*\|\~\{3,}\~*\)\(\_$\n\(>\s\)\?\_$\)\@=/ contained containedin=pandocDelimitedCodeBlock', 'conceal cchar='.s:cchars['codeend']) +syn match pandocBlockQuoteinDelimitedCodeBlock '^>' contained containedin=pandocDelimitedCodeBlock +syn match pandocCodePre /
    .\{-}<\/pre>/ skipnl
    +syn match pandocCodePre /.\{-}<\/code>/ skipnl
    +
    +" enable highlighting for embedded region in codeblocks if there exists a
    +" g:pandoc#syntax#codeblocks#embeds#langs *list*.
    +"
    +" entries in this list are the language code interpreted by pandoc,
    +" if this differs from the name of the vim syntax file, append =vimname
    +" e.g. let g:pandoc#syntax#codeblocks#embeds#langs = ["haskell", "literatehaskell=lhaskell"]
    +"
    +if g:pandoc#syntax#codeblocks#embeds#use != 0
    +    for l in g:pandoc#syntax#codeblocks#embeds#langs
    +      call EnableEmbedsforCodeblocksWithLang(l)
    +    endfor
    +endif
    +" }}}2
    +
    +" Abbreviations: {{{2
    +syn region pandocAbbreviationDefinition start=/^\*\[.\{-}\]:\s*/ end='$' contains=pandocNoFormatted,@Spell,pandocAmpersandEscape
    +call s:WithConceal('abbrev', 'syn match pandocAbbreviationSeparator /:/ contained containedin=pandocAbbreviationDefinition', 'conceal cchar='.s:cchars['abbrev'])
    +syn match pandocAbbreviation /\*\[.\{-}\]/ contained containedin=pandocAbbreviationDefinition
    +call s:WithConceal('abbrev', 'syn match pandocAbbreviationHead /\*\[/ contained containedin=pandocAbbreviation', 'conceal')
    +call s:WithConceal('abbrev', 'syn match pandocAbbreviationTail /\]/ contained containedin=pandocAbbreviation', 'conceal')
    +" }}}2
    +
    +" Footnotes: {{{2
    +" we put these here not to interfere with superscripts.
    +syn match pandocFootnoteID /\[\^[^\]]\+\]/ nextgroup=pandocFootnoteDef
    +
    +"   Inline footnotes
    +syn region pandocFootnoteDef start=/\^\[/ skip=/\[.\{-}]/ end=/\]/ contains=pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocStrongEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocEllipses,pandocBeginQuote,pandocEndQuote,@Spell,pandocAmpersandEscape skipnl keepend
    +call s:WithConceal('footnote', 'syn match pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef', 'conceal cchar='.s:cchars['footnote'])
    +call s:WithConceal('footnote', 'syn match pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef', 'conceal')
    +
    +" regular footnotes
    +syn region pandocFootnoteBlock start=/\[\^.\{-}\]:\s*\n*/ end=/^\n^\s\@!/ contains=pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocNewLine,pandocStrongEmphasis,pandocEllipses,pandocBeginQuote,pandocEndQuote,pandocLaTeXInlineMath,pandocEscapedDollar,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXRegion,pandocAmpersandEscape,@Spell skipnl
    +syn match pandocFootnoteBlockSeparator /:/ contained containedin=pandocFootnoteBlock
    +syn match pandocFootnoteID /\[\^.\{-}\]/ contained containedin=pandocFootnoteBlock
    +call s:WithConceal('footnote', 'syn match pandocFootnoteIDHead /\[\^/ contained containedin=pandocFootnoteID', 'conceal cchar='.s:cchars['footnote'])
    +call s:WithConceal('footnote', 'syn match pandocFootnoteIDTail /\]/ contained containedin=pandocFootnoteID', 'conceal')
    +" }}}2
    +
    +" List Items: {{{2
    +" Unordered lists
    +syn match pandocUListItem /^>\=\s*[*+-]\s\+-\@!.*$/ nextgroup=pandocUListItem,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocDelimitedCodeBlock,pandocListItemContinuation contains=@Spell,pandocEmphasis,pandocStrong,pandocNoFormatted,pandocStrikeout,pandocSubscript,pandocSuperscript,pandocStrongEmphasis,pandocStrongEmphasis,pandocPCite,pandocICite,pandocCiteKey,pandocReferenceLabel,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocReferenceURL,pandocAutomaticLink,pandocFootnoteDef,pandocFootnoteBlock,pandocFootnoteID,pandocAmpersandEscape skipempty display
    +call s:WithConceal('list', 'syn match pandocUListItemBullet /^>\=\s*\zs[*+-]/ contained containedin=pandocUListItem', 'conceal cchar='.s:cchars['li'])
    +
    +" Ordered lists
    +syn match pandocListItem /^\s*(\?\(\d\+\|\l\|\#\|@\)[.)].*$/ nextgroup=pandocListItem,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocDelimitedCodeBlock,pandocListItemContinuation contains=@Spell,pandocEmphasis,pandocStrong,pandocReferenceURL,pandocNoFormatted,pandocStrikeout,pandocSubscript,pandocSuperscript,pandocStrongEmphasis,pandocStrongEmphasis,pandocPCite,pandocICite,pandocCiteKey,pandocReferenceLabel,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocAutomaticLink,pandocFootnoteDef,pandocFootnoteBlock,pandocFootnoteID,pandocAmpersandEscape skipempty display
    +
    +" support for roman numerals up to 'c'
    +if g:pandoc#syntax#roman_lists != 0
    +    syn match pandocListItem /^\s*(\?x\=l\=\(i\{,3}[vx]\=\)\{,3}c\{,3}[.)].*$/ nextgroup=pandocListItem,pandocMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocDelimitedCodeBlock,pandocListItemContinuation,pandocAutomaticLink skipempty display
    +endif
    +syn match pandocListItemBullet /^(\?.\{-}[.)]/ contained containedin=pandocListItem
    +syn match pandocListItemBulletId /\(\d\+\|\l\|\#\|@.\{-}\|x\=l\=\(i\{,3}[vx]\=\)\{,3}c\{,3}\)/ contained containedin=pandocListItemBullet
    +
    +syn match pandocListItemContinuation /^\s\+\([-+*]\s\+\|(\?.\+[).]\)\@[[:punct:]]*\)\@<="[[:blank:][:punct:]\n]\@=/  containedin=pandocEmphasis,pandocStrong,pandocUListItem,pandocListItem,pandocListItemContinuation display', 'conceal cchar='.s:cchars['quote_e'])
    +endif
    +" }}}3
    +
    +" Hrule: {{{3
    +syn match pandocHRule /^\s*\([*\-_]\)\s*\%(\1\s*\)\{2,}$/ display
    +" }}}3
    +
    +" Backslashes: {{{3
    +if g:pandoc#syntax#conceal#backslash == 1
    +    syn match pandocBackslash /\v\\@
    +" Last Change:	2009 Nov 11
    +" Filenames:    *.papp *.pxml *.pxsl
    +" URL:		http://papp.plan9.de/
    +
    +" You can set the "papp_include_html" variable so that html will be
    +" rendered as such inside phtml sections (in case you actually put html
    +" there - papp does not require that). Also, rendering html tends to keep
    +" the clutter high on the screen - mixing three languages is difficult
    +" enough(!). PS: it is also slow.
    +
    +" pod is, btw, allowed everywhere, which is actually wrong :(
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" source is basically xml, with included html (this is common) and perl bits
    +runtime! syntax/xml.vim
    +unlet b:current_syntax
    +
    +if exists("papp_include_html")
    +  syn include @PAppHtml syntax/html.vim
    +  unlet b:current_syntax
    +  syntax spell default  " added by Bram
    +endif
    +
    +syn include @PAppPerl syntax/perl.vim
    +
    +syn cluster xmlFoldCluster add=papp_perl,papp_xperl,papp_phtml,papp_pxml,papp_perlPOD
    +
    +" preprocessor commands
    +syn region papp_prep matchgroup=papp_prep start="^#\s*\(if\|elsif\)" end="$" keepend contains=@perlExpr contained
    +syn match papp_prep /^#\s*\(else\|endif\|??\).*$/ contained
    +" translation entries
    +syn region papp_gettext start=/__"/ end=/"/ contained contains=@papp_perlInterpDQ
    +syn cluster PAppHtml add=papp_gettext,papp_prep
    +
    +" add special, paired xperl, perl and phtml tags
    +syn region papp_perl  matchgroup=xmlTag start=""  end=""  contains=papp_CDATAp,@PAppPerl keepend
    +syn region papp_xperl matchgroup=xmlTag start="" end="" contains=papp_CDATAp,@PAppPerl keepend
    +syn region papp_phtml matchgroup=xmlTag start="" end="" contains=papp_CDATAh,papp_ph_perl,papp_ph_html,papp_ph_hint,@PAppHtml keepend
    +syn region papp_pxml  matchgroup=xmlTag start=""	end=""  contains=papp_CDATAx,papp_ph_perl,papp_ph_xml,papp_ph_xint	     keepend
    +syn region papp_perlPOD start="^=[a-z]" end="^=cut" contains=@Pod,perlTodo keepend
    +
    +" cdata sections
    +syn region papp_CDATAp matchgroup=xmlCdataDecl start="" contains=@PAppPerl					 contained keepend
    +syn region papp_CDATAh matchgroup=xmlCdataDecl start="" contains=papp_ph_perl,papp_ph_html,papp_ph_hint,@PAppHtml contained keepend
    +syn region papp_CDATAx matchgroup=xmlCdataDecl start="" contains=papp_ph_perl,papp_ph_xml,papp_ph_xint		 contained keepend
    +
    +syn region papp_ph_perl matchgroup=Delimiter start="<[:?]" end="[:?]>"me=e-2 nextgroup=papp_ph_html contains=@PAppPerl		     contained keepend
    +syn region papp_ph_html matchgroup=Delimiter start=":>"    end="<[:?]"me=e-2 nextgroup=papp_ph_perl contains=@PAppHtml		     contained keepend
    +syn region papp_ph_hint matchgroup=Delimiter start="?>"    end="<[:?]"me=e-2 nextgroup=papp_ph_perl contains=@perlInterpDQ,@PAppHtml contained keepend
    +syn region papp_ph_xml	matchgroup=Delimiter start=":>"    end="<[:?]"me=e-2 nextgroup=papp_ph_perl contains=			     contained keepend
    +syn region papp_ph_xint matchgroup=Delimiter start="?>"    end="<[:?]"me=e-2 nextgroup=papp_ph_perl contains=@perlInterpDQ	     contained keepend
    +
    +" synchronization is horrors!
    +syn sync clear
    +syn sync match pappSync grouphere papp_CDATAh ""
    +syn sync match pappSync grouphere papp_CDATAh "^# *\(if\|elsif\|else\|endif\)"
    +syn sync match pappSync grouphere papp_CDATAh ""
    +syn sync match pappSync grouphere NONE	      ""
    +
    +syn sync maxlines=300
    +syn sync minlines=5
    +
    +" The default highlighting.
    +
    +hi def link papp_prep		preCondit
    +hi def link papp_gettext	String
    +
    +let b:current_syntax = "papp"
    diff --git a/git/usr/share/vim/vim92/syntax/pascal.vim b/git/usr/share/vim/vim92/syntax/pascal.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..206df213a61a1bd1263fe633fdb8980921026368
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pascal.vim
    @@ -0,0 +1,384 @@
    +" Vim syntax file
    +" Language:		Pascal
    +" Maintainer:		Doug Kearns 
    +" Previous Maintainers:	Xavier Crégut 
    +"			Mario Eusebio 
    +" Last Change:		2021 May 20
    +
    +" Contributors: Tim Chase ,
    +"		Stas Grabois ,
    +"		Mazen NEIFER ,
    +"		Klaus Hast ,
    +"		Austin Ziegler ,
    +"		Markus Koenig 
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +
    +syn case ignore
    +syn sync lines=250
    +
    +syn keyword pascalBoolean	true false
    +syn keyword pascalConditional	if else then
    +syn keyword pascalConstant	nil maxint
    +syn keyword pascalLabel		case goto label
    +syn keyword pascalOperator	and div downto in mod not of or packed
    +syn keyword pascalRepeat	do for do repeat while to until
    +syn keyword pascalStatement	procedure function
    +syn keyword pascalStatement	program begin end const var type with
    +syn keyword pascalStruct	record
    +syn keyword pascalType		array boolean char integer file pointer real set
    +syn keyword pascalType		string text variant
    +
    +
    +    " 20011222az: Added new items.
    +syn keyword pascalTodo contained	TODO FIXME XXX DEBUG NOTE
    +
    +    " 20010723az: When wanted, highlight the trailing whitespace -- this is
    +    " based on c_space_errors; to enable, use "pascal_space_errors".
    +if exists("pascal_space_errors")
    +  if !exists("pascal_no_trail_space_error")
    +    syn match pascalSpaceError "\s\+$"
    +  endif
    +  if !exists("pascal_no_tab_space_error")
    +    syn match pascalSpaceError " \+\t"me=e-1
    +  endif
    +endif
    +
    +
    +
    +" String
    +if !exists("pascal_one_line_string")
    +  syn region  pascalString matchgroup=pascalString start=+'+ end=+'+ contains=pascalStringEscape
    +  if exists("pascal_gpc")
    +    syn region  pascalString matchgroup=pascalString start=+"+ end=+"+ contains=pascalStringEscapeGPC
    +  else
    +    syn region  pascalStringError matchgroup=pascalStringError start=+"+ end=+"+ contains=pascalStringEscape
    +  endif
    +else
    +  "wrong strings
    +  syn region  pascalStringError matchgroup=pascalStringError start=+'+ end=+'+ end=+$+ contains=pascalStringEscape
    +  if exists("pascal_gpc")
    +    syn region  pascalStringError matchgroup=pascalStringError start=+"+ end=+"+ end=+$+ contains=pascalStringEscapeGPC
    +  else
    +    syn region  pascalStringError matchgroup=pascalStringError start=+"+ end=+"+ end=+$+ contains=pascalStringEscape
    +  endif
    +
    +  "right strings
    +  syn region  pascalString matchgroup=pascalString start=+'+ end=+'+ oneline contains=pascalStringEscape
    +  " To see the start and end of strings:
    +  " syn region  pascalString matchgroup=pascalStringError start=+'+ end=+'+ oneline contains=pascalStringEscape
    +  if exists("pascal_gpc")
    +    syn region  pascalString matchgroup=pascalString start=+"+ end=+"+ oneline contains=pascalStringEscapeGPC
    +  else
    +    syn region  pascalStringError matchgroup=pascalStringError start=+"+ end=+"+ oneline contains=pascalStringEscape
    +  endif
    +end
    +syn match   pascalStringEscape		contained "''"
    +syn match   pascalStringEscapeGPC	contained '""'
    +
    +
    +" syn match   pascalIdentifier		"\<[a-zA-Z_][a-zA-Z0-9_]*\>"
    +
    +
    +if exists("pascal_symbol_operator")
    +  syn match   pascalSymbolOperator      "[+\-/*=]"
    +  syn match   pascalSymbolOperator      "[<>]=\="
    +  syn match   pascalSymbolOperator      "<>"
    +  syn match   pascalSymbolOperator      ":="
    +  syn match   pascalSymbolOperator      "[()]"
    +  syn match   pascalSymbolOperator      "\.\."
    +  syn match   pascalSymbolOperator       "[\^.]"
    +  syn match   pascalMatrixDelimiter	"[][]"
    +  "if you prefer you can highlight the range
    +  "syn match  pascalMatrixDelimiter	"[\d\+\.\.\d\+]"
    +endif
    +
    +syn match  pascalNumber		"-\=\<\d\+\>"
    +if !exists("pascal_traditional")
    +  syn match  pascalHexNumber	"\$\x\+\>"
    +endif
    +if exists("pascal_fpc")
    +  syn match	pascalOctNumber "&\o\+\>"
    +  syn match	pascalBinNumber	"%[01]\+\>"
    +endif
    +if exists("pascal_gpc")
    +  syn match  pascalExtendedNumber	"\%([2-9]\|[12]\d\|3[0-6]\)#[[:alnum:]]\+\>"
    +endif
    +
    +syn match  pascalFloat		"-\=\<\d\+\.\d\+\>"
    +syn match  pascalFloat		"-\=\<\d\+\.\d\+[eE]-\=\d\+\>"
    +
    +if !exists("pascal_traditional")
    +  " allow leading zeros
    +  syn match pascalControlCharacter	"#\%([01]\=\d\=\d\|2[0-4]\d\|25[0-5]\)\>"
    +endif
    +
    +if exists("pascal_no_tabs")
    +  syn match pascalShowTab "\t"
    +endif
    +
    +syn region pascalComment	start="(\*\|{"  end="\*)\|}" contains=pascalTodo,pascalSpaceError
    +
    +
    +if !exists("pascal_no_functions")
    +  " array functions
    +  syn keyword pascalFunction	pack unpack
    +
    +  " memory function
    +  syn keyword pascalFunction	Dispose New
    +
    +  " math functions
    +  syn keyword pascalFunction	Abs Arctan Cos Exp Ln Sin Sqr Sqrt
    +
    +  " file functions
    +  syn keyword pascalFunction	Eof Eoln Write Writeln
    +  syn keyword pascalPredefined	Input Output
    +
    +  if exists("pascal_traditional")
    +    " These functions do not seem to be defined in Turbo Pascal
    +    syn keyword pascalFunction	Get Page Put 
    +  endif
    +
    +  " ordinal functions
    +  syn keyword pascalFunction	Odd Pred Succ
    +
    +  " transfert functions
    +  syn keyword pascalFunction	Chr Ord Round Trunc
    +endif
    +
    +
    +if !exists("pascal_traditional")
    +
    +  syn keyword pascalStatement	constructor destructor implementation inherited
    +  syn keyword pascalStatement	interface unit uses
    +  syn keyword pascalModifier	absolute assembler external far forward inline
    +  syn keyword pascalModifier	interrupt near virtual 
    +  syn keyword pascalAccess	private public strict
    +  syn keyword pascalStruct	object 
    +  syn keyword pascalOperator	shl shr xor
    +
    +  syn region pascalPreProc	start="(\*\$"  end="\*)" contains=pascalTodo
    +  syn region pascalPreProc	start="{\$"  end="}"
    +
    +  syn region  pascalAsm		matchgroup=pascalAsmKey start="\" end="\" contains=pascalComment,pascalPreProc
    +
    +  syn keyword pascalType	ShortInt LongInt Byte Word
    +  syn keyword pascalType	ByteBool WordBool LongBool
    +  syn keyword pascalType	Cardinal LongWord
    +  syn keyword pascalType	Single Double Extended Comp
    +  syn keyword pascalType	PChar
    +
    +  syn keyword pascalPredefined	self
    +
    +  if !exists ("pascal_fpc")
    +    syn keyword pascalPredefined	Result
    +  endif
    +
    +  if exists("pascal_fpc")
    +    syn region pascalComment        start="//" end="$" contains=pascalTodo,pascalSpaceError
    +    syn keyword pascalStatement	fail otherwise operator
    +    syn keyword pascalDirective	popstack
    +    syn keyword pascalType	ShortString AnsiString WideString
    +  endif
    +
    +  if exists("pascal_gpc")
    +    syn region pascalComment        start="//" end="$" contains=pascalTodo,pascalSpaceError
    +    syn keyword pascalType	SmallInt
    +    syn keyword pascalType	AnsiChar
    +    syn keyword pascalType	PAnsiChar
    +  endif
    +
    +  if exists("pascal_delphi")
    +    syn region pascalComment	start="//"  end="$" contains=pascalTodo,pascalSpaceError
    +    syn region pascalDocumentation	start="///" end="$" contains=pascalTodo,pascalSpaceError
    +    syn region pascalDocumentation	start="{!"  end="}" contains=pascalTodo,pascalSpaceError
    +    syn keyword pascalType	SmallInt Int64
    +    syn keyword pascalType	Real48 Currency
    +    syn keyword pascalType	AnsiChar WideChar
    +    syn keyword pascalType	ShortString AnsiString WideString
    +    syn keyword pascalType	PAnsiChar PWideChar
    +    syn match  pascalFloat	"-\=\<\d\+\.\d\+[dD]-\=\d\+\>"
    +    syn match  pascalStringEscape	contained "#[12][0-9]\=[0-9]\="
    +    syn keyword pascalStruct	class dispinterface
    +    syn keyword pascalException	try except raise at on finally
    +    syn keyword pascalStatement	out
    +    syn keyword pascalStatement	library package 
    +    syn keyword pascalStatement	initialization finalization uses exports
    +    syn keyword pascalStatement	property out resourcestring threadvar
    +    syn keyword pascalModifier	contains
    +    syn keyword pascalModifier	overridden reintroduce abstract sealed
    +    syn keyword pascalModifier	override export dynamic name message
    +    syn keyword pascalModifier	dispid index stored default nodefault readonly
    +    syn keyword pascalModifier	writeonly implements overload requires resident
    +    syn keyword pascalAccess	protected published automated
    +    syn keyword pascalDirective	register pascal cvar cdecl stdcall safecall
    +    syn keyword pascalOperator	as is
    +  endif
    +
    +  if exists("pascal_no_functions")
    +    "syn keyword pascalModifier	read write
    +    "may confuse with Read and Write functions.  Not easy to handle.
    +  else
    +    " control flow functions
    +    syn keyword pascalFunction	Break Continue Exit Halt RunError
    +
    +    " ordinal functions
    +    syn keyword pascalFunction	Dec Inc High Low
    +
    +    " math functions
    +    syn keyword pascalFunction	Frac Int Pi
    +
    +    " string functions
    +    syn keyword pascalFunction	Concat Copy Delete Insert Length Pos Str Val
    +
    +    " memory function
    +    syn keyword pascalFunction	FreeMem GetMem MaxAvail MemAvail
    +
    +    " pointer and address functions
    +    syn keyword pascalFunction	Addr Assigned CSeg DSeg Ofs Ptr Seg SPtr SSeg
    +
    +    " misc functions
    +    syn keyword pascalFunction	Exclude FillChar Hi Include Lo Move ParamCount
    +    syn keyword pascalFunction	ParamStr Random Randomize SizeOf Swap TypeOf
    +    syn keyword pascalFunction	UpCase
    +
    +    " predefined variables
    +    syn keyword pascalPredefined ErrorAddr ExitCode ExitProc FileMode FreeList
    +    syn keyword pascalPredefined FreeZero HeapEnd HeapError HeapOrg HeapPtr
    +    syn keyword pascalPredefined InOutRes OvrCodeList OvrDebugPtr OvrDosHandle
    +    syn keyword pascalPredefined OvrEmsHandle OvrHeapEnd OvrHeapOrg OvrHeapPtr
    +    syn keyword pascalPredefined OvrHeapSize OvrLoadList PrefixSeg RandSeed
    +    syn keyword pascalPredefined SaveInt00 SaveInt02 SaveInt1B SaveInt21
    +    syn keyword pascalPredefined SaveInt23 SaveInt24 SaveInt34 SaveInt35
    +    syn keyword pascalPredefined SaveInt36 SaveInt37 SaveInt38 SaveInt39
    +    syn keyword pascalPredefined SaveInt3A SaveInt3B SaveInt3C SaveInt3D
    +    syn keyword pascalPredefined SaveInt3E SaveInt3F SaveInt75 SegA000 SegB000
    +    syn keyword pascalPredefined SegB800 SelectorInc StackLimit Test8087
    +
    +    " file functions
    +    syn keyword pascalFunction	Append Assign BlockRead BlockWrite ChDir Close
    +    syn keyword pascalFunction	Erase FilePos FileSize Flush GetDir IOResult
    +    syn keyword pascalFunction	MkDir Read Readln Rename Reset Rewrite RmDir
    +    syn keyword pascalFunction	Seek SeekEof SeekEoln SetTextBuf Truncate
    +
    +    " crt unit
    +    syn keyword pascalFunction	AssignCrt ClrEol ClrScr Delay DelLine GotoXY
    +    syn keyword pascalFunction	HighVideo InsLine KeyPressed LowVideo NormVideo
    +    syn keyword pascalFunction	NoSound ReadKey Sound TextBackground TextColor
    +    syn keyword pascalFunction	TextMode WhereX WhereY Window
    +    syn keyword pascalPredefined CheckBreak CheckEOF CheckSnow DirectVideo
    +    syn keyword pascalPredefined LastMode TextAttr WindMin WindMax
    +    syn keyword pascalFunction BigCursor CursorOff CursorOn
    +    syn keyword pascalConstant Black Blue Green Cyan Red Magenta Brown
    +    syn keyword pascalConstant LightGray DarkGray LightBlue LightGreen
    +    syn keyword pascalConstant LightCyan LightRed LightMagenta Yellow White
    +    syn keyword pascalConstant Blink ScreenWidth ScreenHeight bw40
    +    syn keyword pascalConstant co40 bw80 co80 mono
    +    syn keyword pascalPredefined TextChar 
    +
    +    " DOS unit
    +    syn keyword pascalFunction	AddDisk DiskFree DiskSize DosExitCode DosVersion
    +    syn keyword pascalFunction	EnvCount EnvStr Exec Expand FindClose FindFirst
    +    syn keyword pascalFunction	FindNext FSearch FSplit GetCBreak GetDate
    +    syn keyword pascalFunction	GetEnv GetFAttr GetFTime GetIntVec GetTime
    +    syn keyword pascalFunction	GetVerify Intr Keep MSDos PackTime SetCBreak
    +    syn keyword pascalFunction	SetDate SetFAttr SetFTime SetIntVec SetTime
    +    syn keyword pascalFunction	SetVerify SwapVectors UnPackTime
    +    syn keyword pascalConstant	FCarry FParity FAuxiliary FZero FSign FOverflow
    +    syn keyword pascalConstant	Hidden Sysfile VolumeId Directory Archive
    +    syn keyword pascalConstant	AnyFile fmClosed fmInput fmOutput fmInout
    +    syn keyword pascalConstant	TextRecNameLength TextRecBufSize
    +    syn keyword pascalType	ComStr PathStr DirStr NameStr ExtStr SearchRec
    +    syn keyword pascalType	FileRec TextBuf TextRec Registers DateTime
    +    syn keyword pascalPredefined DosError
    +
    +    "Graph Unit
    +    syn keyword pascalFunction	Arc Bar Bar3D Circle ClearDevice ClearViewPort
    +    syn keyword pascalFunction	CloseGraph DetectGraph DrawPoly Ellipse
    +    syn keyword pascalFunction	FillEllipse FillPoly FloodFill GetArcCoords
    +    syn keyword pascalFunction	GetAspectRatio GetBkColor GetColor
    +    syn keyword pascalFunction	GetDefaultPalette GetDriverName GetFillPattern
    +    syn keyword pascalFunction	GetFillSettings GetGraphMode GetImage
    +    syn keyword pascalFunction	GetLineSettings GetMaxColor GetMaxMode GetMaxX
    +    syn keyword pascalFunction	GetMaxY GetModeName GetModeRange GetPalette
    +    syn keyword pascalFunction	GetPaletteSize GetPixel GetTextSettings
    +    syn keyword pascalFunction	GetViewSettings GetX GetY GraphDefaults
    +    syn keyword pascalFunction	GraphErrorMsg GraphResult ImageSize InitGraph
    +    syn keyword pascalFunction	InstallUserDriver InstallUserFont Line LineRel
    +    syn keyword pascalFunction	LineTo MoveRel MoveTo OutText OutTextXY
    +    syn keyword pascalFunction	PieSlice PutImage PutPixel Rectangle
    +    syn keyword pascalFunction	RegisterBGIDriver RegisterBGIFont
    +    syn keyword pascalFunction	RestoreCRTMode Sector SetActivePage
    +    syn keyword pascalFunction	SetAllPallette SetAspectRatio SetBkColor
    +    syn keyword pascalFunction	SetColor SetFillPattern SetFillStyle
    +    syn keyword pascalFunction	SetGraphBufSize SetGraphMode SetLineStyle
    +    syn keyword pascalFunction	SetPalette SetRGBPalette SetTextJustify
    +    syn keyword pascalFunction	SetTextStyle SetUserCharSize SetViewPort
    +    syn keyword pascalFunction	SetVisualPage SetWriteMode TextHeight TextWidth
    +    syn keyword pascalType	ArcCoordsType FillPatternType FillSettingsType
    +    syn keyword pascalType	LineSettingsType PaletteType PointType
    +    syn keyword pascalType	TextSettingsType ViewPortType
    +
    +    " string functions
    +    syn keyword pascalFunction	StrAlloc StrBufSize StrCat StrComp StrCopy
    +    syn keyword pascalFunction	StrDispose StrECopy StrEnd StrFmt StrIComp
    +    syn keyword pascalFunction	StrLCat StrLComp StrLCopy StrLen StrLFmt
    +    syn keyword pascalFunction	StrLIComp StrLower StrMove StrNew StrPas
    +    syn keyword pascalFunction	StrPCopy StrPLCopy StrPos StrRScan StrScan
    +    syn keyword pascalFunction	StrUpper
    +  endif
    +
    +endif
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link pascalAccess		pascalStatement
    +hi def link pascalBoolean		Boolean
    +hi def link pascalComment		Comment
    +hi def link pascalDocumentation		Comment
    +hi def link pascalConditional		Conditional
    +hi def link pascalConstant		Constant
    +hi def link pascalControlCharacter	Character
    +hi def link pascalDelimiter		Identifier
    +hi def link pascalDirective		pascalStatement
    +hi def link pascalException		Exception
    +hi def link pascalFloat			Float
    +hi def link pascalFunction		Function
    +hi def link pascalLabel			Label
    +hi def link pascalMatrixDelimiter	Identifier
    +hi def link pascalModifier		Type
    +hi def link pascalNumber		Number
    +hi def link pascalExtendedNumber	Number
    +hi def link pascalBinNumber		pascalNumber
    +hi def link pascalHexNumber		pascalNumber
    +hi def link pascalOctNumber		pascalNumber
    +hi def link pascalOperator		Operator
    +hi def link pascalPredefined		pascalStatement
    +hi def link pascalPreProc		PreProc
    +hi def link pascalRepeat		Repeat
    +hi def link pascalSpaceError		Error
    +hi def link pascalStatement		Statement
    +hi def link pascalString		String
    +hi def link pascalStringEscape		Special
    +hi def link pascalStringEscapeGPC	Special
    +hi def link pascalStringError		Error
    +hi def link pascalStruct		pascalStatement
    +hi def link pascalSymbolOperator	pascalOperator
    +hi def link pascalTodo			Todo
    +hi def link pascalType			Type
    +hi def link pascalUnclassified		pascalStatement
    +"  hi def link pascalAsm		Assembler
    +hi def link pascalError			Error
    +hi def link pascalAsmKey		pascalStatement
    +hi def link pascalShowTab		Error
    +
    +
    +
    +let b:current_syntax = "pascal"
    +
    +" vim: nowrap sw=2 sts=2 ts=8 noet:
    diff --git a/git/usr/share/vim/vim92/syntax/passwd.vim b/git/usr/share/vim/vim92/syntax/passwd.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ad90202b06d1d95754e4d7bfe7a452ebc0aafa44
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/passwd.vim
    @@ -0,0 +1,71 @@
    +" Vim syntax file
    +" Language:             passwd(5) password file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2006-10-03
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match   passwdBegin         display '^' nextgroup=passwdAccount
    +
    +syn match   passwdAccount       contained display '[^:]\+'
    +                                \ nextgroup=passwdPasswordColon
    +
    +syn match   passwdPasswordColon contained display ':'
    +                                \ nextgroup=passwdPassword,passwdShadow
    +
    +syn match   passwdPassword      contained display '[^:]\+'
    +                                \ nextgroup=passwdUIDColon
    +
    +syn match   passwdShadow        contained display '[x*!]'
    +                                \ nextgroup=passwdUIDColon
    +
    +syn match   passwdUIDColon      contained display ':' nextgroup=passwdUID
    +
    +syn match   passwdUID           contained display '\d\{0,10}'
    +                                \ nextgroup=passwdGIDColon
    +
    +syn match   passwdGIDColon      contained display ':' nextgroup=passwdGID
    +
    +syn match   passwdGID           contained display '\d\{0,10}'
    +                                \ nextgroup=passwdGecosColon
    +
    +syn match   passwdGecosColon    contained display ':' nextgroup=passwdGecos
    +
    +syn match   passwdGecos         contained display '[^:]*'
    +                                \ nextgroup=passwdDirColon
    +
    +syn match   passwdDirColon      contained display ':' nextgroup=passwdDir
    +
    +syn match   passwdDir           contained display '/[^:]*'
    +                                \ nextgroup=passwdShellColon
    +
    +syn match   passwdShellColon    contained display ':'
    +                                \ nextgroup=passwdShell
    +
    +syn match   passwdShell         contained display '.*'
    +
    +hi def link passwdColon         Normal
    +hi def link passwdAccount       Identifier
    +hi def link passwdPasswordColon passwdColon
    +hi def link passwdPassword      Number
    +hi def link passwdShadow        Special
    +hi def link passwdUIDColon      passwdColon
    +hi def link passwdUID           Number
    +hi def link passwdGIDColon      passwdColon
    +hi def link passwdGID           Number
    +hi def link passwdGecosColon    passwdColon
    +hi def link passwdGecos         Comment
    +hi def link passwdDirColon      passwdColon
    +hi def link passwdDir           Type
    +hi def link passwdShellColon    passwdColon
    +hi def link passwdShell         Operator
    +
    +let b:current_syntax = "passwd"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/pbtxt.vim b/git/usr/share/vim/vim92/syntax/pbtxt.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..92a75560ef355e23cbded2d04ef0d7a077b98391
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pbtxt.vim
    @@ -0,0 +1,44 @@
    +" Vim syntax file
    +" Language:             Protobuf Text Format
    +" Maintainer:           Lakshay Garg 
    +" Last Change:          2020 Nov 17
    +" Homepage:             https://github.com/lakshayg/vim-pbtxt
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn case ignore
    +
    +syn keyword pbtxtTodo     TODO FIXME contained
    +syn keyword pbtxtBool     true false contained
    +
    +syn match   pbtxtInt      display   "\<\(0\|[1-9]\d*\)\>"
    +syn match   pbtxtHex      display   "\<0[xX]\x\+\>"
    +syn match   pbtxtFloat    display   "\(0\|[1-9]\d*\)\=\.\d*"
    +syn match   pbtxtMessage  display   "^\s*\w\+\s*{"me=e-1
    +syn match   pbtxtField    display   "^\s*\w\+:"me=e-1
    +syn match   pbtxtEnum     display   ":\s*\a\w\+"ms=s+1   contains=pbtxtBool
    +syn region  pbtxtString   start=+"+ skip=+\\"+ end=+"+   contains=@Spell
    +syn region  pbtxtComment  start="#" end="$"      keepend contains=pbtxtTodo,@Spell
    +
    +hi def link pbtxtTodo     Todo
    +hi def link pbtxtBool     Boolean
    +hi def link pbtxtInt      Number
    +hi def link pbtxtHex      Number
    +hi def link pbtxtFloat    Float
    +hi def link pbtxtMessage  Structure
    +hi def link pbtxtField    Identifier
    +hi def link pbtxtEnum     Define
    +hi def link pbtxtString   String
    +hi def link pbtxtComment  Comment
    +
    +let b:current_syntax = "pbtxt"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim: nowrap sw=2 sts=2 ts=8 noet
    diff --git a/git/usr/share/vim/vim92/syntax/pcap.vim b/git/usr/share/vim/vim92/syntax/pcap.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..e0eed633c14c31b4b98d4eff87229d4cba36f92a
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pcap.vim
    @@ -0,0 +1,48 @@
    +" Vim syntax file
    +" Config file:	printcap
    +" Maintainer:	Lennart Schultz  (defunct)
    +"		Modified by Bram
    +" Last Change:	2003 May 11
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +"define keywords
    +setlocal isk=@,46-57,_,-,#,=,192-255
    +
    +"first all the bad guys
    +syn match pcapBad '^.\+$'	       "define any line as bad
    +syn match pcapBadword '\k\+' contained "define any sequence of keywords as bad
    +syn match pcapBadword ':' contained    "define any single : as bad
    +syn match pcapBadword '\\' contained   "define any single \ as bad
    +"then the good boys
    +" Boolean keywords
    +syn match pcapKeyword contained ':\(fo\|hl\|ic\|rs\|rw\|sb\|sc\|sf\|sh\)'
    +" Numeric Keywords
    +syn match pcapKeyword contained ':\(br\|du\|fc\|fs\|mx\|pc\|pl\|pw\|px\|py\|xc\|xs\)#\d\+'
    +" String Keywords
    +syn match pcapKeyword contained ':\(af\|cf\|df\|ff\|gf\|if\|lf\|lo\|lp\|nd\|nf\|of\|rf\|rg\|rm\|rp\|sd\|st\|tf\|tr\|vf\)=\k*'
    +" allow continuation
    +syn match pcapEnd ':\\$' contained
    +"
    +syn match pcapDefineLast '^\s.\+$' contains=pcapBadword,pcapKeyword
    +syn match pcapDefine '^\s.\+$' contains=pcapBadword,pcapKeyword,pcapEnd
    +syn match pcapHeader '^\k[^|]\+\(|\k[^|]\+\)*:\\$'
    +syn match pcapComment "#.*$"
    +
    +syn sync minlines=50
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link pcapBad WarningMsg
    +hi def link pcapBadword WarningMsg
    +hi def link pcapComment Comment
    +
    +
    +let b:current_syntax = "pcap"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/pccts.vim b/git/usr/share/vim/vim92/syntax/pccts.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..780035798b357710bc6514bab047d9934c449165
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pccts.vim
    @@ -0,0 +1,89 @@
    +" Vim syntax file
    +" Language:	PCCTS
    +" Maintainer:	Scott Bigham 
    +" Last Change:	10 Aug 1999
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read the C++ syntax to start with
    +syn include @cppTopLevel syntax/cpp.vim
    +
    +syn region pcctsAction matchgroup=pcctsDelim start="<<" end=">>?\=" contains=@cppTopLevel,pcctsRuleRef
    +
    +syn region pcctsArgBlock matchgroup=pcctsDelim start="\(>\s*\)\=\[" end="\]" contains=@cppTopLevel,pcctsRuleRef
    +
    +syn region pcctsString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=pcctsSpecialChar
    +syn match  pcctsSpecialChar "\\\\\|\\\"" contained
    +
    +syn region pcctsComment start="/\*" end="\*/" contains=cTodo
    +syn match  pcctsComment "//.*$" contains=cTodo
    +
    +syn region pcctsDirective start="^\s*#header\s\+<<" end=">>" contains=pcctsAction keepend
    +syn match  pcctsDirective "^\s*#parser\>.*$" contains=pcctsString,pcctsComment
    +syn match  pcctsDirective "^\s*#tokdefs\>.*$" contains=pcctsString,pcctsComment
    +syn match  pcctsDirective "^\s*#token\>.*$" contains=pcctsString,pcctsAction,pcctsTokenName,pcctsComment
    +syn region pcctsDirective start="^\s*#tokclass\s\+[A-Z]\i*\s\+{" end="}" contains=pcctsString,pcctsTokenName
    +syn match  pcctsDirective "^\s*#lexclass\>.*$" contains=pcctsTokenName
    +syn region pcctsDirective start="^\s*#errclass\s\+[^{]\+\s\+{" end="}" contains=pcctsString,pcctsTokenName
    +syn match pcctsDirective "^\s*#pred\>.*$" contains=pcctsTokenName,pcctsAction
    +
    +syn cluster pcctsInRule contains=pcctsString,pcctsRuleName,pcctsTokenName,pcctsAction,pcctsArgBlock,pcctsSubRule,pcctsLabel,pcctsComment
    +
    +syn region pcctsRule start="\<[a-z][A-Za-z0-9_]*\>\(\s*\[[^]]*\]\)\=\(\s*>\s*\[[^]]*\]\)\=\s*:" end=";" contains=@pcctsInRule
    +
    +syn region pcctsSubRule matchgroup=pcctsDelim start="(" end=")\(+\|\*\|?\(\s*=>\)\=\)\=" contains=@pcctsInRule contained
    +syn region pcctsSubRule matchgroup=pcctsDelim start="{" end="}" contains=@pcctsInRule contained
    +
    +syn match pcctsRuleName  "\<[a-z]\i*\>" contained
    +syn match pcctsTokenName "\<[A-Z]\i*\>" contained
    +
    +syn match pcctsLabel "\<\I\i*:\I\i*" contained contains=pcctsLabelHack,pcctsRuleName,pcctsTokenName
    +syn match pcctsLabel "\<\I\i*:\"\([^\\]\|\\.\)*\"" contained contains=pcctsLabelHack,pcctsString
    +syn match pcctsLabelHack "\<\I\i*:" contained
    +
    +syn match pcctsRuleRef "\$\I\i*\>" contained
    +syn match pcctsRuleRef "\$\d\+\(\.\d\+\)\>" contained
    +
    +syn keyword pcctsClass     class   nextgroup=pcctsClassName skipwhite
    +syn match   pcctsClassName "\<\I\i*\>" contained nextgroup=pcctsClassBlock skipwhite skipnl
    +syn region pcctsClassBlock start="{" end="}" contained contains=pcctsRule,pcctsComment,pcctsDirective,pcctsAction,pcctsException,pcctsExceptionHandler
    +
    +syn keyword pcctsException exception nextgroup=pcctsExceptionRuleRef skipwhite
    +syn match pcctsExceptionRuleRef "\[\I\i*\]" contained contains=pcctsExceptionID
    +syn match pcctsExceptionID "\I\i*" contained
    +syn keyword pcctsExceptionHandler	catch default
    +syn keyword pcctsExceptionHandler	NoViableAlt NoSemViableAlt
    +syn keyword pcctsExceptionHandler	MismatchedToken
    +
    +syn sync clear
    +syn sync match pcctsSyncAction grouphere pcctsAction "<<"
    +syn sync match pcctsSyncAction "<<\([^>]\|>[^>]\)*>>"
    +syn sync match pcctsSyncRule grouphere pcctsRule "\<[a-z][A-Za-z0-9_]*\>\s*\[[^]]*\]\s*:"
    +syn sync match pcctsSyncRule grouphere pcctsRule "\<[a-z][A-Za-z0-9_]*\>\(\s*\[[^]]*\]\)\=\s*>\s*\[[^]]*\]\s*:"
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link pcctsDelim		Special
    +hi def link pcctsTokenName		Identifier
    +hi def link pcctsRuleName		Statement
    +hi def link pcctsLabelHack		Label
    +hi def link pcctsDirective		PreProc
    +hi def link pcctsString		String
    +hi def link pcctsComment		Comment
    +hi def link pcctsClass		Statement
    +hi def link pcctsClassName		Identifier
    +hi def link pcctsException		Statement
    +hi def link pcctsExceptionHandler	Keyword
    +hi def link pcctsExceptionRuleRef	pcctsDelim
    +hi def link pcctsExceptionID	Identifier
    +hi def link pcctsRuleRef		Identifier
    +hi def link pcctsSpecialChar	SpecialChar
    +
    +
    +let b:current_syntax = "pccts"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/pdf.vim b/git/usr/share/vim/vim92/syntax/pdf.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..86d80daa6a6de2cdc1f4662c07f27007de990183
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pdf.vim
    @@ -0,0 +1,73 @@
    +" Vim syntax file
    +" Language:	PDF
    +" Maintainer:	Tim Pope 
    +" Last Change:	2007 Dec 16
    +
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +if !exists("main_syntax")
    +    let main_syntax = 'pdf'
    +endif
    +
    +syn include @pdfXML syntax/xml.vim
    +
    +syn case match
    +
    +syn cluster pdfObjects contains=pdfBoolean,pdfConstant,pdfNumber,pdfFloat,pdfName,pdfHexString,pdfString,pdfArray,pdfHash,pdfReference,pdfComment
    +syn keyword pdfBoolean  true false contained
    +syn keyword pdfConstant null       contained
    +syn match   pdfNumber "[+-]\=\<\d\+\>"
    +syn match   pdfFloat   "[+-]\=\<\%(\d\+\.\|\d*\.\d\+\)\>" contained
    +
    +syn match   pdfNameError "#\X\|#\x\X\|#00" contained containedin=pdfName
    +syn match   pdfSpecialChar "#\x\x" contained containedin=pdfName
    +syn match   pdfName   "/[^[:space:]\[\](){}<>/]*"   contained
    +syn match   pdfHexError  "[^[:space:][:xdigit:]<>]" contained
    +"syn match   pdfHexString "<\s*\x[^<>]*\x\s*>"    contained contains=pdfHexError
    +"syn match   pdfHexString "<\s*\x\=\s*>"          contained
    +syn region  pdfHexString matchgroup=pdfDelimiter start="<<\@!" end=">" contained contains=pdfHexError
    +syn match   pdfStringError "\\."      contained containedin=pdfString
    +syn match   pdfSpecialChar "\\\%(\o\{1,3\}\|[nrtbf()\\]\)"  contained containedin=pdfString
    +syn region  pdfString matchgroup=pdfDelimiter start="\\\@>" contains=@pdfObjects contained
    +syn match   pdfReference "\<\d\+\s\+\d\+\s\+R\>"
    +"syn keyword pdfOperator R contained containedin=pdfReference
    +
    +syn region  pdfObject matchgroup=pdfType start="\"     end="\" contains=@pdfObjects
    +syn region  pdfObject matchgroup=pdfType start="\ (need to be subscribed to post)
    +" Homepage:      https://github.com/vim-perl/vim-perl
    +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
    +" License:       Vim License (see :help license)
    +" Last Change:   2022 Jun 13
    +" Contributors:  Andy Lester 
    +"                Hinrik Örn Sigurðsson 
    +"                Lukas Mai 
    +"                Nick Hibma 
    +"                Sonia Heimann 
    +"                Rob Hoelz 
    +"                Doug Kearns 
    +"                and many others.
    +"
    +" Please download the most recent version first, before mailing
    +" any comments.
    +"
    +" The following parameters are available for tuning the
    +" perl syntax highlighting, with defaults given:
    +"
    +" let perl_include_pod = 1
    +" unlet perl_no_scope_in_variables
    +" unlet perl_no_extended_vars
    +" unlet perl_string_as_statement
    +" unlet perl_no_sync_on_sub
    +" unlet perl_no_sync_on_global_var
    +" let perl_sync_dist = 100
    +" unlet perl_fold
    +" unlet perl_fold_blocks
    +" unlet perl_nofold_packages
    +" unlet perl_nofold_subs
    +" unlet perl_fold_anonymous_subs
    +" unlet perl_no_subprototype_error
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" POD starts with ^= and ends with ^=cut
    +
    +if get(g:, 'perl_include_pod', 1)
    +  " Include a while extra syntax file
    +  syn include @Pod syntax/pod.vim
    +  unlet b:current_syntax
    +  if get(g:, 'perl_fold', 1)
    +    syn region perlPOD start="^=[a-z]" end="^=cut" contains=@Pod,@Spell,perlTodo keepend fold extend
    +    syn region perlPOD start="^=cut" end="^=cut" contains=perlTodo keepend fold extend
    +  else
    +    syn region perlPOD start="^=[a-z]" end="^=cut" contains=@Pod,@Spell,perlTodo keepend
    +    syn region perlPOD start="^=cut" end="^=cut" contains=perlTodo keepend
    +  endif
    +else
    +  " Use only the bare minimum of rules
    +  if get(g:, 'perl_fold', 1)
    +    syn region perlPOD start="^=[a-z]" end="^=cut" fold
    +  else
    +    syn region perlPOD start="^=[a-z]" end="^=cut"
    +  endif
    +endif
    +
    +
    +syn cluster perlTop		contains=TOP
    +
    +syn region perlBraces start="{" end="}" transparent extend
    +
    +" All keywords
    +"
    +syn match perlConditional		"\<\%(if\|elsif\|unless\|given\|when\|default\)\>"
    +syn match perlConditional		"\\)\|\>\)" contains=perlElseIfError skipwhite skipnl skipempty
    +syn match perlRepeat			"\<\%(while\|for\%(each\)\=\|do\|until\|continue\)\>"
    +syn match perlOperator			"\<\%(defined\|undef\|eq\|ne\|[gl][et]\|cmp\|not\|and\|or\|xor\|not\|bless\|ref\|do\)\>"
    +" for some reason, adding this as the nextgroup for perlControl fixes BEGIN
    +" folding issues...
    +syn match perlFakeGroup 		"" contained
    +syn match perlControl			"\<\%(BEGIN\|CHECK\|INIT\|END\|UNITCHECK\)\>\_s*" nextgroup=perlFakeGroup
    +
    +syn match perlStatementStorage		"\<\%(my\|our\|local\|state\)\>"
    +syn match perlStatementControl		"\<\%(return\|last\|next\|redo\|goto\|break\)\>"
    +syn match perlStatementScalar		"\<\%(chom\=p\|chr\|crypt\|r\=index\|lc\%(first\)\=\|length\|ord\|pack\|sprintf\|substr\|fc\|uc\%(first\)\=\)\>"
    +syn match perlStatementRegexp		"\<\%(pos\|quotemeta\|split\|study\)\>"
    +syn match perlStatementNumeric		"\<\%(abs\|atan2\|cos\|exp\|hex\|int\|log\|oct\|rand\|sin\|sqrt\|srand\)\>"
    +syn match perlStatementList		"\<\%(splice\|unshift\|shift\|push\|pop\|join\|reverse\|grep\|map\|sort\|unpack\)\>"
    +syn match perlStatementHash		"\<\%(delete\|each\|exists\|keys\|values\)\>"
    +syn match perlStatementIOfunc		"\<\%(syscall\|dbmopen\|dbmclose\)\>"
    +syn match perlStatementFiledesc		"\<\%(binmode\|close\%(dir\)\=\|eof\|fileno\|getc\|lstat\|printf\=\|read\%(dir\|line\|pipe\)\|rewinddir\|say\|select\|stat\|tell\%(dir\)\=\|write\)\>" nextgroup=perlFiledescStatementNocomma skipwhite
    +syn match perlStatementFiledesc		"\<\%(fcntl\|flock\|ioctl\|open\%(dir\)\=\|read\|seek\%(dir\)\=\|sys\%(open\|read\|seek\|write\)\|truncate\)\>" nextgroup=perlFiledescStatementComma skipwhite
    +syn match perlStatementVector		"\"
    +syn match perlStatementFiles		"\<\%(ch\%(dir\|mod\|own\|root\)\|glob\|link\|mkdir\|readlink\|rename\|rmdir\|symlink\|umask\|unlink\|utime\)\>"
    +syn match perlStatementFiles		"-[rwxoRWXOezsfdlpSbctugkTBMAC]\>"
    +syn match perlStatementFlow		"\<\%(caller\|die\|dump\|eval\|exit\|wantarray\|evalbytes\)\>"
    +syn match perlStatementInclude		"\<\%(require\|import\|unimport\)\>"
    +syn match perlStatementInclude		"\<\%(use\|no\)\s\+\%(\%(attributes\|attrs\|autodie\%(::\%(exception\%(::system\)\=\|hints\|skip\)\)\=\|autouse\|parent\|base\|big\%(int\|num\|rat\)\|blib\|bytes\|charnames\|constant\|deprecate\|diagnostics\|encoding\%(::warnings\)\=\|experimental\|feature\|fields\|filetest\|if\|integer\|less\|lib\|locale\|mro\|ok\|open\|ops\|overload\|overloading\|re\|sigtrap\|sort\|strict\|subs\|threads\%(::shared\)\=\|utf8\|vars\|version\|vmsish\|warnings\%(::register\)\=\)\>\)\="
    +syn match perlStatementProc		"\<\%(alarm\|exec\|fork\|get\%(pgrp\|ppid\|priority\)\|kill\|pipe\|set\%(pgrp\|priority\)\|sleep\|system\|times\|wait\%(pid\)\=\)\>"
    +syn match perlStatementSocket		"\<\%(accept\|bind\|connect\|get\%(peername\|sock\%(name\|opt\)\)\|listen\|recv\|send\|setsockopt\|shutdown\|socket\%(pair\)\=\)\>"
    +syn match perlStatementIPC		"\<\%(msg\%(ctl\|get\|rcv\|snd\)\|sem\%(ctl\|get\|op\)\|shm\%(ctl\|get\|read\|write\)\)\>"
    +syn match perlStatementNetwork		"\<\%(\%(end\|[gs]et\)\%(host\|net\|proto\|serv\)ent\|get\%(\%(host\|net\)by\%(addr\|name\)\|protoby\%(name\|number\)\|servby\%(name\|port\)\)\)\>"
    +syn match perlStatementPword		"\<\%(get\%(pw\%(uid\|nam\)\|gr\%(gid\|nam\)\|login\)\)\|\%(end\|[gs]et\)\%(pw\|gr\)ent\>"
    +syn match perlStatementTime		"\<\%(gmtime\|localtime\|time\)\>"
    +
    +syn match perlStatementMisc		"\<\%(warn\|format\|formline\|reset\|scalar\|prototype\|lock\|tied\=\|untie\)\>"
    +
    +syn keyword perlTodo			TODO TODO: TBD TBD: FIXME FIXME: XXX XXX: NOTE NOTE: contained
    +
    +syn region perlStatementIndirObjWrap   matchgroup=perlStatementIndirObj start="\%(\<\%(map\|grep\|sort\|printf\=\|say\|system\|exec\)\>\s*\)\@<={" end="}" transparent extend
    +
    +syn match perlLabel      "^\s*\h\w*\s*::\@!\%(\ is *not* considered as part of the
    +" variable - there again, too complicated and too slow.
    +
    +" Special variables first ($^A, ...) and ($|, $', ...)
    +syn match  perlVarPlain		 "$^[ACDEFHILMNOPRSTVWX]\="
    +syn match  perlVarPlain		 "$[\\\"\[\]'&`+*.,;=%~!?@#$<>(-]"
    +syn match  perlVarPlain		 "@[-+]"
    +syn match  perlVarPlain		 "$\%(0\|[1-9]\d*\)"
    +" Same as above, but avoids confusion in $::foo (equivalent to $main::foo)
    +syn match  perlVarPlain		 "$::\@!"
    +" These variables are not recognized within matches.
    +syn match  perlVarNotInMatches	 "$[|)]"
    +" This variable is not recognized within matches delimited by m//.
    +syn match  perlVarSlash		 "$/"
    +
    +" And plain identifiers
    +syn match  perlPackageRef	 "[$@#%*&]\%(\%(::\|'\)\=\I\i*\%(\%(::\|'\)\I\i*\)*\)\=\%(::\|'\)\I"ms=s+1,me=e-1 contained
    +
    +" To not highlight packages in variables as a scope reference - i.e. in
    +" $pack::var, pack:: is a scope, just set "perl_no_scope_in_variables"
    +" If you don't want complex things like @{${"foo"}} to be processed,
    +" just set the variable "perl_no_extended_vars"...
    +
    +if !get(g:, 'perl_no_scope_in_variables', 0)
    +  syn match  perlVarPlain       "\%([@$]\|\$#\)\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" contains=perlPackageRef nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +  syn match  perlVarPlain2                   "%\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" contains=perlPackageRef nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +  syn match  perlFunctionName                "&\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" contains=perlPackageRef nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +else
    +  syn match  perlVarPlain       "\%([@$]\|\$#\)\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +  syn match  perlVarPlain2                   "%\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +  syn match  perlFunctionName                "&\$*\%(\I\i*\)\=\%(\%(::\|'\)\I\i*\)*\%(::\|\i\@<=\)" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref
    +endif
    +
    +syn match  perlVarPlain2	 "%[-+]"
    +
    +if !get(g:, 'perl_no_extended_vars', 0)
    +  syn cluster perlExpr		contains=perlStatementIndirObjWrap,perlStatementScalar,perlStatementRegexp,perlStatementNumeric,perlStatementList,perlStatementHash,perlStatementFiles,perlStatementTime,perlStatementMisc,perlVarPlain,perlVarPlain2,perlVarNotInMatches,perlVarSlash,perlVarBlock,perlVarBlock2,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQ,perlQQ,perlQW,perlQR,perlArrow,perlBraces
    +  syn region perlArrow		matchgroup=perlArrow start="->\s*(" end=")" contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref contained
    +  syn region perlArrow		matchgroup=perlArrow start="->\s*\[" end="\]" contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref contained
    +  syn region perlArrow		matchgroup=perlArrow start="->\s*{" end="}" contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref contained
    +  syn match  perlArrow		"->\s*{\s*\I\i*\s*}" contains=perlVarSimpleMemberName nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref contained
    +  syn region perlVarBlock	matchgroup=perlVarPlain start="\%($#\|[$@]\)\$*{" skip="\\}" end=+}\|\%(\%(<<\%('\|"\)\?\)\@=\)+ contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn region perlVarBlock2	matchgroup=perlVarPlain start="[%&*]\$*{" skip="\\}" end=+}\|\%(\%(<<\%('\|"\)\?\)\@=\)+ contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn match  perlVarPlain2	"[%&*]\$*{\I\i*}" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn match  perlVarPlain	"\%(\$#\|[@$]\)\$*{\I\i*}" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn region perlVarMember	matchgroup=perlVarPlain start="\%(->\)\={" skip="\\}" end="}" contained contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn match  perlVarSimpleMember	"\%(->\)\={\s*\I\i*\s*}" nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref contains=perlVarSimpleMemberName contained extend
    +  syn match  perlVarSimpleMemberName	"\I\i*" contained
    +  syn region perlVarMember	matchgroup=perlVarPlain start="\%(->\)\=\[" skip="\\]" end="]" contained contains=@perlExpr nextgroup=perlVarMember,perlVarSimpleMember,perlPostDeref extend
    +  syn match perlPackageConst	"__PACKAGE__" nextgroup=perlPostDeref
    +  syn match  perlPostDeref	"->\%($#\|[$@%&*]\)\*" contained nextgroup=perlVarSimpleMember,perlVarMember,perlPostDeref
    +  syn region  perlPostDeref	start="->\%($#\|[$@%&*]\)\[" skip="\\]" end="]" contained contains=@perlExpr nextgroup=perlVarSimpleMember,perlVarMember,perlPostDeref
    +  syn region  perlPostDeref	matchgroup=perlPostDeref start="->\%($#\|[$@%&*]\){" skip="\\}" end="}" keepend extend contained contains=@perlExpr nextgroup=perlVarSimpleMember,perlVarMember,perlPostDeref
    +endif
    +
    +" File Descriptors
    +syn match  perlFiledescRead	"<\h\w*>"
    +
    +syn match  perlFiledescStatementComma	"(\=\s*\<\u\w*\>\s*,"me=e-1 transparent contained contains=perlFiledescStatement
    +syn match  perlFiledescStatementNocomma "(\=\s*\<\u\w*\>\s*[^, \t]"me=e-1 transparent contained contains=perlFiledescStatement
    +
    +syn match  perlFiledescStatement	"\<\u\w*\>" contained
    +
    +" Special characters in strings and matches
    +syn match  perlSpecialString	"\\\%(\o\{1,3}\|x\%({\x\+}\|\x\{1,2}\)\|c.\|[^cx]\)" contained extend
    +syn match  perlSpecialStringU2	"\\." extend contained contains=NONE
    +syn match  perlSpecialStringU	"\\\\" contained
    +syn match  perlSpecialMatch	"\\[1-9]" contained extend
    +syn match  perlSpecialMatch	"\\g\%(\d\+\|{\%(-\=\d\+\|\h\w*\)}\)" contained
    +syn match  perlSpecialMatch	"\\k\%(<\h\w*>\|'\h\w*'\)" contained
    +syn match  perlSpecialMatch	"{\d\+\%(,\%(\d\+\)\=\)\=}" contained
    +syn match  perlSpecialMatch	"\[[]-]\=[^\[\]]*[]-]\=\]" contained extend
    +syn match  perlSpecialMatch	"[+*()?.]" contained
    +syn match  perlSpecialMatch	"(?[#:=!]" contained
    +syn match  perlSpecialMatch	"(?[impsx]*\%(-[imsx]\+\)\=)" contained
    +syn match  perlSpecialMatch	"(?\%([-+]\=\d\+\|R\))" contained
    +syn match  perlSpecialMatch	"(?\%(&\|P[>=]\)\h\w*)" contained
    +syn match  perlSpecialMatch	"(\*\%(\%(PRUNE\|SKIP\|THEN\)\%(:[^)]*\)\=\|\%(MARK\|\):[^)]*\|COMMIT\|F\%(AIL\)\=\|ACCEPT\))" contained
    +
    +" Possible errors
    +"
    +" Highlight lines with only whitespace (only in blank delimited here documents) as errors
    +syn match  perlNotEmptyLine	"^\s\+$" contained
    +" Highlight "} else if (...) {", it should be "} else { if (...) { " or "} elsif (...) {"
    +syn match perlElseIfError	"else\_s*if" containedin=perlConditional
    +syn keyword perlElseIfError	elseif containedin=perlConditional
    +
    +" Variable interpolation
    +"
    +" These items are interpolated inside "" strings and similar constructs.
    +syn cluster perlInterpDQ	contains=perlSpecialString,perlVarPlain,perlVarNotInMatches,perlVarSlash,perlVarBlock
    +" These items are interpolated inside '' strings and similar constructs.
    +syn cluster perlInterpSQ	contains=perlSpecialStringU,perlSpecialStringU2
    +" These items are interpolated inside m// matches and s/// substitutions.
    +syn cluster perlInterpSlash	contains=perlSpecialString,perlSpecialMatch,perlVarPlain,perlVarBlock
    +" These items are interpolated inside m## matches and s### substitutions.
    +syn cluster perlInterpMatch	contains=@perlInterpSlash,perlVarSlash
    +
    +" Shell commands
    +syn region  perlShellCommand	matchgroup=perlMatchStartEnd start="`" end="`" contains=@perlInterpDQ keepend
    +
    +" Constants
    +"
    +" Numbers
    +syn case   ignore
    +syn match  perlNumber	"\<\%(0\|[1-9]\%(_\=\d\)*\)\>"
    +syn match  perlNumber	"\<0\%(x\x\%(_\=\x\)*\|b[01]\%(_\=[01]\)*\|o\=\%(_\=\o\)*\)\>"
    +syn match  perlFloat	"\<\d\%(_\=\d\)*e[-+]\=\d\%(_\=\d\)*"
    +syn match  perlFloat	"\<\d\%(_\=\d\)*\.\%(\d\%(_\=\d\)*\)\=\%(e[-+]\=\d\%(_\=\d\)*\)\="
    +syn match  perlFloat    "\.\d\%(_\=\d\)*\%(e[-+]\=\d\%(_\=\d\)*\)\="
    +syn match  perlFloat	"\<0x\x\%(_\=\x\)*p[-+]\=\d\%(_\=\d\)*"
    +syn match  perlFloat	"\<0x\x\%(_\=\x\)*\.\%(\x\%(_\=\x\)*\)\=\%(p[-+]\=\d\%(_\=\d\)*\)\="
    +syn match  perlFloat    "\<0x\.\x\%(_\=\x\)*\%(p[-+]\=\d\%(_\=\d\)*\)\="
    +syn case   match
    +
    +syn match  perlString	"\<\%(v\d\+\%(\.\d\+\)*\|\d\+\%(\.\d\+\)\{2,}\)\>" contains=perlVStringV
    +syn match  perlVStringV	"\+ extend contained contains=perlAnglesSQ,@perlInterpSQ keepend
    +
    +syn region perlParensDQ		start=+(+ end=+)+ extend contained contains=perlParensDQ,@perlInterpDQ keepend
    +syn region perlBracketsDQ	start=+\[+ end=+\]+ extend contained contains=perlBracketsDQ,@perlInterpDQ keepend
    +syn region perlBracesDQ		start=+{+ end=+}+ extend contained contains=perlBracesDQ,@perlInterpDQ keepend
    +syn region perlAnglesDQ		start=+<+ end=+>+ extend contained contains=perlAnglesDQ,@perlInterpDQ keepend
    +
    +
    +" Simple version of searches and matches
    +syn match  perlMatchModifiers "[msixpadluncgo]\+" contained
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\s*\z([^[:space:]'([{<#]\)+ end=+\z1+ contains=@perlInterpMatch keepend extend nextgroup=perlMatchModifiers
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@\)\@\)\@+ contains=@perlInterpMatch,perlAnglesDQ keepend extend nextgroup=perlMatchModifiers
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\)\@\s*\z([^[:space:]'([{<#]\)+ end=+\z1+me=e-1 contains=@perlInterpMatch nextgroup=perlSubstitutionGQQ keepend extend
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@\)\@+ contains=@perlInterpMatch,perlAnglesDQ nextgroup=perlSubstitutionGQQ skipwhite skipempty skipnl keepend extend
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\)\@+ contained contains=@perlInterpDQ,perlAnglesDQ keepend extend nextgroup=perlSubstitutionModifiers
    +syn region perlSubstitutionSQ		matchgroup=perlMatchStartEnd start=+'+  end=+'+ contained contains=@perlInterpSQ keepend extend nextgroup=perlSubstitutionModifiers
    +
    +" Translations
    +" perlMatch is the first part, perlTranslation* is the second, translator part.
    +syn match  perlTranslationModifiers "[cdsr]\+" contained
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\s*\z([^[:space:]([{<#]\)+ end=+\z1+me=e-1 contains=@perlInterpSQ nextgroup=perlTranslationGQ
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@+ contains=@perlInterpSQ,perlAnglesSQ nextgroup=perlTranslationGQ skipwhite skipempty skipnl
    +syn region perlMatch	matchgroup=perlMatchStartEnd start=+\<\%(::\|'\|->\)\@+ contains=perlAnglesSQ contained nextgroup=perlTranslationModifiers
    +
    +
    +" Strings and q, qq, qw and qr expressions
    +
    +syn region perlStringUnexpanded	matchgroup=perlStringStartEnd start="'" end="'" contains=@perlInterpSQ keepend extend
    +syn region perlString		matchgroup=perlStringStartEnd start=+"+  end=+"+ contains=@perlInterpDQ keepend extend
    +syn region perlQ		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\s*\z([^[:space:]#([{<]\)+ end=+\z1+ contains=@perlInterpSQ keepend extend
    +syn region perlQ		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@\)\@+ contains=@perlInterpSQ,perlAnglesSQ keepend extend
    +
    +syn region perlQQ		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\s*\z([^[:space:]#([{<]\)+ end=+\z1+ contains=@perlInterpDQ keepend extend
    +syn region perlQQ		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@\)\@+ contains=@perlInterpDQ,perlAnglesDQ keepend extend
    +
    +syn region perlQW		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@\)\@\)\@+ contains=@perlInterpSQ,perlAnglesSQ keepend extend
    +
    +syn match  perlQRModifiers "[msixpadluno]\+" contained
    +syn region perlQR		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\s*\z([^[:space:]#([{<'/]\)+  end=+\z1+ contains=@perlInterpMatch keepend extend nextgroup=perlQRModifiers
    +syn region perlQR		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\)\@\)\@\)\@ and qr[] which allows for comments and extra whitespace in the pattern
    +syn region perlQR		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\)\@+ contains=@perlInterpMatch,perlAnglesDQ,perlComment keepend extend nextgroup=perlQRModifiers
    +syn region perlQR		matchgroup=perlStringStartEnd start=+\<\%(::\|'\|->\)\@\_s*" nextgroup=perlSubDeclaration
    +
    +" The => operator forces a bareword to the left of it to be interpreted as
    +" a string
    +syn match  perlString "\I\@\)\@="
    +
    +" All other # are comments, except ^#!
    +syn match  perlComment		"#.*" contains=perlTodo,@Spell extend
    +syn match  perlSharpBang	"^#!.*"
    +
    +" Formats
    +syn region perlFormat		matchgroup=perlStatementIOFunc start="^\s*\~]\+\%(\.\.\.\)\=" contained
    +syn match  perlFormatField	"[@^]#[#.]*" contained
    +syn match  perlFormatField	"@\*" contained
    +syn match  perlFormatField	"@[^A-Za-z_|<>~#*]"me=e-1 contained
    +syn match  perlFormatField	"@$" contained
    +
    +" __END__ and __DATA__ clauses
    +
    +" Vim excludes empty syn-region end lines from the fold region.  This is
    +" probably a bug and means a DATA section ending with an empty line does not
    +" have that final line included in the fold.
    +"
    +" As a workaround we exploit an unterminated syntax region here with an end
    +" pattern that will (probably) never match.  This forces all lines to be
    +" included in the fold region.  Of course, if it does match then there's
    +" nothing to work around as it is a non-empty line.
    +"
    +" This problem also exists with empty string delimited heredocs but there's no
    +" known workaround for that case.
    +if get(g:, 'perl_fold', 0)
    +  syntax region perlDATA matchgroup=perlDATAStart start="^__DATA__$" end="VIM_PERL_EOF\%$" contains=@perlDATA fold
    +  syntax region perlEND  matchgroup=perlENDStart  start="^__END__$"  end="VIM_PERL_EOF\%$" contains=@perlDATA fold
    +else
    +  syntax region perlDATA matchgroup=perlDATAStart start="^__DATA__$" end="\%$" contains=@perlDATA
    +  syntax region perlEND  matchgroup=perlENDStart  start="^__END__$"  end="\%$" contains=@perlDATA
    +endif
    +
    +" TODO: generalise this to allow other filetypes
    +if get(g:, 'perl_highlight_data', 0)
    +  syn cluster perlDATA add=perlPOD
    +else
    +  syn cluster perlDATA remove=perlPOD
    +endif
    +
    +"
    +" Folding
    +if get(g:, 'perl_fold', 0)
    +  " Note: this bit must come before the actual highlighting of the "package"
    +  " keyword, otherwise this will screw up Pod lines that match /^package/
    +  if !get(g:, 'perl_nofold_packages', 0)
    +    syn region perlPackageFold start="^package \S\+;\s*\%(#.*\)\=$" end="^1;\=\s*\%(#.*\)\=$" end="\n\+package"me=s-1 transparent fold keepend
    +    syn region perlPackageFold start="^\z(\s*\)package\s*\S\+\s*{" end="^\z1}" transparent fold keepend
    +  endif
    +  if !get(g:, 'perl_nofold_subs', 0)
    +    if get(g:, "perl_fold_anonymous_subs", 0)
    +      " EXPLANATION:
    +      " \                  - "sub" keyword
    +      " \_[^;{]*                 - any characters, including new line, but not ";" or "{", zero or more times
    +      " \%(([\\$@%&*\[\];]*)\)\= - prototype definition, \$@%&*[]; characters between (), zero or 1 times
    +      " \_[^;]*                  - any characters, including new line, but not ";" or "{", zero or more times
    +      " {                        - start subroutine block
    +      syn region perlSubFold start="\\_[^;{]*\%(([\\$@%&*\[\];]*)\)\=\_[^;{]*{" end="}" transparent fold keepend extend
    +    else
    +      " EXPLANATION:
    +      " same, as above, but first non-space character after "sub" keyword must
    +      " be [A-Za-z_] 
    +      syn region perlSubFold start="\\s*\h\_[^;{]*\%(([\\$@%&*\[\];]*)\)\=\_[^;]*{" end="}" transparent fold keepend extend
    +    endif
    +
    +    syn region perlSubFold start="\<\%(BEGIN\|END\|CHECK\|INIT\|UNITCHECK\)\>\_s*{" end="}" transparent fold keepend
    +  endif
    +
    +  if get(g:, 'perl_fold_blocks', 0)
    +    syn region perlBlockFold start="^\z(\s*\)\%(if\|elsif\|unless\|for\|while\|until\|given\)\s*(.*)\%(\s*{\)\=\s*\%(#.*\)\=$" start="^\z(\s*\)for\%(each\)\=\s*\%(\%(my\|our\)\=\s*\S\+\s*\)\=(.*)\%(\s*{\)\=\s*\%(#.*\)\=$" end="^\z1}\s*;\=\%(#.*\)\=$" transparent fold keepend
    +
    +    " TODO this is works incorrectly
    +    syn region perlBlockFold start="^\z(\s*\)\%(do\|else\)\%(\s*{\)\=\s*\%(#.*\)\=$" end="^\z1}\s*while" end="^\z1}\s*;\=\%(#.*\)\=$" transparent fold keepend
    +  else
    +    if get(g:, 'perl_fold_do_blocks', 0)
    +      syn region perlDoBlockDeclaration start="" end="{" contains=perlComment contained transparent
    +      syn match perlOperator "\\_s*" nextgroup=perlDoBlockDeclaration
    +
    +      syn region perlDoBlockFold start="\\_[^{]*{" end="}" transparent fold keepend extend
    +    endif
    +  endif
    +
    +  syn sync fromstart
    +else
    +  " fromstart above seems to set minlines even if perl_fold is not set.
    +  syn sync minlines=0
    +endif
    +
    +" NOTE: If you're linking new highlight groups to perlString, please also put
    +"       them into b:match_skip in ftplugin/perl.vim.
    +
    +" The default highlighting.
    +hi def link perlSharpBang		PreProc
    +hi def link perlControl			PreProc
    +hi def link perlInclude			Include
    +hi def link perlSpecial			Special
    +hi def link perlString			String
    +hi def link perlCharacter		Character
    +hi def link perlNumber			Number
    +hi def link perlFloat			Float
    +hi def link perlType			Type
    +hi def link perlIdentifier		Identifier
    +hi def link perlLabel			Label
    +hi def link perlStatement		Statement
    +hi def link perlConditional		Conditional
    +hi def link perlRepeat			Repeat
    +hi def link perlOperator		Operator
    +hi def link perlFunction		Keyword
    +hi def link perlSubName			Function
    +hi def link perlSubPrototype		Type
    +hi def link perlSubSignature		Type
    +hi def link perlSubAttribute		PreProc
    +hi def link perlComment			Comment
    +hi def link perlTodo			Todo
    +if get(g:, 'perl_string_as_statement', 0)
    +  hi def link perlStringStartEnd	perlStatement
    +else
    +  hi def link perlStringStartEnd	perlString
    +endif
    +hi def link perlVStringV		perlStringStartEnd
    +hi def link perlList			perlStatement
    +hi def link perlMisc			perlStatement
    +hi def link perlVarPlain		perlIdentifier
    +hi def link perlVarPlain2		perlIdentifier
    +hi def link perlArrow			perlIdentifier
    +hi def link perlFiledescRead		perlIdentifier
    +hi def link perlFiledescStatement	perlIdentifier
    +hi def link perlVarSimpleMember		perlIdentifier
    +hi def link perlVarSimpleMemberName	perlString
    +hi def link perlVarNotInMatches		perlIdentifier
    +hi def link perlVarSlash		perlIdentifier
    +hi def link perlQ			perlString
    +hi def link perlQQ			perlString
    +hi def link perlQW			perlString
    +hi def link perlQR			perlString
    +hi def link perlMatchModifiers          perlMatchStartEnd
    +hi def link perlSubstitutionModifiers   perlMatchStartEnd
    +hi def link perlTranslationModifiers    perlMatchStartEnd
    +hi def link perlQRModifiers             perlStringStartEnd
    +hi def link perlHereDoc			perlString
    +hi def link perlIndentedHereDoc		perlString
    +hi def link perlStringUnexpanded	perlString
    +hi def link perlSubstitutionSQ		perlString
    +hi def link perlSubstitutionGQQ		perlString
    +hi def link perlTranslationGQ		perlString
    +hi def link perlMatch			perlString
    +hi def link perlMatchStartEnd		perlStatement
    +hi def link perlFormatName		perlIdentifier
    +hi def link perlFormatField		perlString
    +hi def link perlPackageDecl		perlType
    +hi def link perlStorageClass		perlType
    +hi def link perlPackageRef		perlType
    +hi def link perlStatementPackage	perlStatement
    +hi def link perlStatementStorage	perlStatement
    +hi def link perlStatementControl	perlStatement
    +hi def link perlStatementScalar		perlStatement
    +hi def link perlStatementRegexp		perlStatement
    +hi def link perlStatementNumeric	perlStatement
    +hi def link perlStatementList		perlStatement
    +hi def link perlStatementHash		perlStatement
    +hi def link perlStatementIOfunc		perlStatement
    +hi def link perlStatementFiledesc	perlStatement
    +hi def link perlStatementVector		perlStatement
    +hi def link perlStatementFiles		perlStatement
    +hi def link perlStatementFlow		perlStatement
    +hi def link perlStatementInclude	perlStatement
    +hi def link perlStatementProc		perlStatement
    +hi def link perlStatementSocket		perlStatement
    +hi def link perlStatementIPC		perlStatement
    +hi def link perlStatementNetwork	perlStatement
    +hi def link perlStatementPword		perlStatement
    +hi def link perlStatementTime		perlStatement
    +hi def link perlStatementMisc		perlStatement
    +hi def link perlStatementIndirObj	perlStatement
    +hi def link perlFunctionName		perlIdentifier
    +hi def link perlMethod			perlIdentifier
    +hi def link perlPostDeref		perlIdentifier
    +hi def link perlFunctionPRef		perlType
    +
    +if !get(g:, 'perl_include_pod', 1)
    +  hi def link perlPOD		perlComment
    +endif
    +hi def link perlShellCommand		perlString
    +hi def link perlSpecialAscii		perlSpecial
    +hi def link perlSpecialDollar		perlSpecial
    +hi def link perlSpecialString		perlSpecial
    +hi def link perlSpecialStringU		perlSpecial
    +hi def link perlSpecialMatch		perlSpecial
    +hi def link perlEND			perlComment
    +hi def link perlENDStart		perlEND
    +hi def link perlDATA			perlComment
    +hi def link perlDATAStart		perlDATA
    +
    +" NOTE: Due to a bug in Vim (or more likely, a misunderstanding on my part),
    +"	I had to remove the transparent property from the following regions
    +"	in order to get them to highlight correctly.  Feel free to remove
    +"	these and reinstate the transparent property if you know how.
    +hi def link perlParensSQ		perlString
    +hi def link perlBracketsSQ		perlString
    +hi def link perlBracesSQ		perlString
    +hi def link perlAnglesSQ		perlString
    +
    +hi def link perlParensDQ		perlString
    +hi def link perlBracketsDQ		perlString
    +hi def link perlBracesDQ		perlString
    +hi def link perlAnglesDQ		perlString
    +
    +hi def link perlSpecialStringU2	perlString
    +
    +" Possible errors
    +hi def link perlNotEmptyLine		Error
    +hi def link perlElseIfError		Error
    +
    +" Syncing to speed up processing
    +"
    +if !get(g:, 'perl_no_sync_on_sub', 0)
    +  syn sync match perlSync	grouphere NONE "^\s*\"
    +  syn sync match perlSync	grouphere NONE "^}"
    +endif
    +
    +if !get(g:, 'perl_no_sync_on_global_var', 0)
    +  syn sync match perlSync	grouphere NONE "^$\I[[:alnum:]_:]+\s*=\s*{"
    +  syn sync match perlSync	grouphere NONE "^[@%]\I[[:alnum:]_:]+\s*=\s*("
    +endif
    +
    +if get(g:, 'perl_sync_dist', 0)
    +  execute "syn sync maxlines=" . perl_sync_dist
    +else
    +  syn sync maxlines=100
    +endif
    +
    +syn sync match perlSyncPOD	grouphere perlPOD "^=pod"
    +syn sync match perlSyncPOD	grouphere perlPOD "^=head"
    +syn sync match perlSyncPOD	grouphere perlPOD "^=item"
    +syn sync match perlSyncPOD	grouphere NONE "^=cut"
    +
    +let b:current_syntax = "perl"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" XXX Change to sts=4:sw=4
    +" vim:ts=8:sts=2:sw=2:expandtab:ft=vim
    diff --git a/git/usr/share/vim/vim92/syntax/pf.vim b/git/usr/share/vim/vim92/syntax/pf.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..b928dc4fbbf390689226269a4d3388779e8c5be9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pf.vim
    @@ -0,0 +1,333 @@
    +" pf syntax file
    +" Language:        OpenBSD packet filter configuration (pf.conf)
    +" Original Author: Camiel Dobbelaar 
    +" Maintainer:      Lauri Tirkkonen 
    +" Last Change:     2018 Jul 16
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let b:current_syntax = "pf"
    +setlocal foldmethod=syntax
    +syn iskeyword @,48-57,_,-,+
    +syn sync fromstart
    +
    +syn cluster	pfNotLS		contains=pfTodo,pfVarAssign
    +syn keyword	pfCmd		anchor antispoof block include match pass queue
    +syn keyword	pfCmd		queue set table
    +syn match	pfCmd		/^\s*load\sanchor\>/
    +syn keyword	pfTodo		TODO XXX contained
    +syn keyword	pfWildAddr	any no-route urpf-failed self
    +syn match	pfComment	/#.*$/ contains=pfTodo
    +syn match	pfCont		/\\$/
    +syn match	pfErrClose	/}/
    +syn match	pfIPv4		/\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
    +syn match	pfIPv6		/[a-fA-F0-9:]*::[a-fA-F0-9:.]*/
    +syn match	pfIPv6		/[a-fA-F0-9:]\+:[a-fA-F0-9:]\+:[a-fA-F0-9:.]\+/
    +syn match	pfNetmask	/\/\d\+/
    +syn match	pfNum		/[a-zA-Z0-9_:.]\@/
    +syn match	pfVar		/$[a-zA-Z][a-zA-Z0-9_]*/
    +syn match	pfVarAssign	/^\s*[a-zA-Z][a-zA-Z0-9_]*\s*=/me=e-1
    +syn region	pfFold1		start=/^#\{1}>/ end=/^#\{1,3}>/me=s-1 transparent fold
    +syn region	pfFold2		start=/^#\{2}>/ end=/^#\{2,3}>/me=s-1 transparent fold
    +syn region	pfFold3		start=/^#\{3}>/ end=/^#\{3}>/me=s-1 transparent fold
    +syn region	pfList		start=/{/ end=/}/ transparent contains=ALLBUT,pfErrClose,@pfNotLS
    +syn region	pfString	start=/"/ skip=/\\"/ end=/"/ contains=pfIPv4,pfIPv6,pfNetmask,pfTable,pfVar
    +syn region	pfString	start=/'/ skip=/\\'/ end=/'/ contains=pfIPv4,pfIPv6,pfNetmask,pfTable,pfVar
    +
    +hi def link pfCmd	Statement
    +hi def link pfComment	Comment
    +hi def link pfCont	Statement
    +hi def link pfErrClose	Error
    +hi def link pfIPv4	Type
    +hi def link pfIPv6	Type
    +hi def link pfNetmask	Constant
    +hi def link pfNum	Constant
    +hi def link pfService	Constant
    +hi def link pfString	String
    +hi def link pfTable	Identifier
    +hi def link pfTodo	Todo
    +hi def link pfVar	Identifier
    +hi def link pfVarAssign	Identifier
    +hi def link pfWildAddr	Type
    +
    +" from OpenBSD src/etc/services r1.95
    +syn keyword	pfService	802-11-iapp
    +syn keyword	pfService	Microsoft-SQL-Monitor
    +syn keyword	pfService	Microsoft-SQL-Server
    +syn keyword	pfService	NeXTStep
    +syn keyword	pfService	NextStep
    +syn keyword	pfService	afpovertcp
    +syn keyword	pfService	afs3-bos
    +syn keyword	pfService	afs3-callback
    +syn keyword	pfService	afs3-errors
    +syn keyword	pfService	afs3-fileserver
    +syn keyword	pfService	afs3-kaserver
    +syn keyword	pfService	afs3-prserver
    +syn keyword	pfService	afs3-rmtsys
    +syn keyword	pfService	afs3-update
    +syn keyword	pfService	afs3-vlserver
    +syn keyword	pfService	afs3-volser
    +syn keyword	pfService	amt-redir-tcp
    +syn keyword	pfService	amt-redir-tls
    +syn keyword	pfService	amt-soap-http
    +syn keyword	pfService	amt-soap-https
    +syn keyword	pfService	asf-rmcp
    +syn keyword	pfService	at-echo
    +syn keyword	pfService	at-nbp
    +syn keyword	pfService	at-rtmp
    +syn keyword	pfService	at-zis
    +syn keyword	pfService	auth
    +syn keyword	pfService	authentication
    +syn keyword	pfService	bfd-control
    +syn keyword	pfService	bfd-echo
    +syn keyword	pfService	bftp
    +syn keyword	pfService	bgp
    +syn keyword	pfService	bgpd
    +syn keyword	pfService	biff
    +syn keyword	pfService	bootpc
    +syn keyword	pfService	bootps
    +syn keyword	pfService	canna
    +syn keyword	pfService	cddb
    +syn keyword	pfService	cddbp
    +syn keyword	pfService	chargen
    +syn keyword	pfService	chat
    +syn keyword	pfService	cmd
    +syn keyword	pfService	cmip-agent
    +syn keyword	pfService	cmip-man
    +syn keyword	pfService	comsat
    +syn keyword	pfService	conference
    +syn keyword	pfService	conserver
    +syn keyword	pfService	courier
    +syn keyword	pfService	csnet-ns
    +syn keyword	pfService	cso-ns
    +syn keyword	pfService	cvspserver
    +syn keyword	pfService	daap
    +syn keyword	pfService	datametrics
    +syn keyword	pfService	daytime
    +syn keyword	pfService	dhcpd-sync
    +syn keyword	pfService	dhcpv6-client
    +syn keyword	pfService	dhcpv6-server
    +syn keyword	pfService	discard
    +syn keyword	pfService	domain
    +syn keyword	pfService	echo
    +syn keyword	pfService	efs
    +syn keyword	pfService	eklogin
    +syn keyword	pfService	ekshell
    +syn keyword	pfService	ekshell2
    +syn keyword	pfService	epmap
    +syn keyword	pfService	eppc
    +syn keyword	pfService	exec
    +syn keyword	pfService	finger
    +syn keyword	pfService	ftp
    +syn keyword	pfService	ftp-data
    +syn keyword	pfService	git
    +syn keyword	pfService	gopher
    +syn keyword	pfService	gre-in-udp
    +syn keyword	pfService	gre-udp-dtls
    +syn keyword	pfService	hostname
    +syn keyword	pfService	hostnames
    +syn keyword	pfService	hprop
    +syn keyword	pfService	http
    +syn keyword	pfService	https
    +syn keyword	pfService	hunt
    +syn keyword	pfService	hylafax
    +syn keyword	pfService	iapp
    +syn keyword	pfService	icb
    +syn keyword	pfService	ident
    +syn keyword	pfService	imap
    +syn keyword	pfService	imap2
    +syn keyword	pfService	imap3
    +syn keyword	pfService	imaps
    +syn keyword	pfService	ingreslock
    +syn keyword	pfService	ipp
    +syn keyword	pfService	iprop
    +syn keyword	pfService	ipsec-msft
    +syn keyword	pfService	ipsec-nat-t
    +syn keyword	pfService	ipx
    +syn keyword	pfService	irc
    +syn keyword	pfService	isakmp
    +syn keyword	pfService	iscsi
    +syn keyword	pfService	isisd
    +syn keyword	pfService	iso-tsap
    +syn keyword	pfService	kauth
    +syn keyword	pfService	kdc
    +syn keyword	pfService	kerberos
    +syn keyword	pfService	kerberos-adm
    +syn keyword	pfService	kerberos-iv
    +syn keyword	pfService	kerberos-sec
    +syn keyword	pfService	kerberos_master
    +syn keyword	pfService	kf
    +syn keyword	pfService	kip
    +syn keyword	pfService	klogin
    +syn keyword	pfService	kpasswd
    +syn keyword	pfService	kpop
    +syn keyword	pfService	krb524
    +syn keyword	pfService	krb_prop
    +syn keyword	pfService	krbupdate
    +syn keyword	pfService	krcmd
    +syn keyword	pfService	kreg
    +syn keyword	pfService	kshell
    +syn keyword	pfService	kx
    +syn keyword	pfService	l2tp
    +syn keyword	pfService	ldap
    +syn keyword	pfService	ldaps
    +syn keyword	pfService	ldp
    +syn keyword	pfService	link
    +syn keyword	pfService	login
    +syn keyword	pfService	mail
    +syn keyword	pfService	mdns
    +syn keyword	pfService	mdnsresponder
    +syn keyword	pfService	microsoft-ds
    +syn keyword	pfService	ms-sql-m
    +syn keyword	pfService	ms-sql-s
    +syn keyword	pfService	msa
    +syn keyword	pfService	msp
    +syn keyword	pfService	mtp
    +syn keyword	pfService	mysql
    +syn keyword	pfService	name
    +syn keyword	pfService	nameserver
    +syn keyword	pfService	netbios-dgm
    +syn keyword	pfService	netbios-ns
    +syn keyword	pfService	netbios-ssn
    +syn keyword	pfService	netnews
    +syn keyword	pfService	netplan
    +syn keyword	pfService	netrjs
    +syn keyword	pfService	netstat
    +syn keyword	pfService	netwall
    +syn keyword	pfService	newdate
    +syn keyword	pfService	nextstep
    +syn keyword	pfService	nfs
    +syn keyword	pfService	nfsd
    +syn keyword	pfService	nicname
    +syn keyword	pfService	nnsp
    +syn keyword	pfService	nntp
    +syn keyword	pfService	ntalk
    +syn keyword	pfService	ntp
    +syn keyword	pfService	null
    +syn keyword	pfService	openwebnet
    +syn keyword	pfService	ospf6d
    +syn keyword	pfService	ospfapi
    +syn keyword	pfService	ospfd
    +syn keyword	pfService	photuris
    +syn keyword	pfService	pop2
    +syn keyword	pfService	pop3
    +syn keyword	pfService	pop3pw
    +syn keyword	pfService	pop3s
    +syn keyword	pfService	poppassd
    +syn keyword	pfService	portmap
    +syn keyword	pfService	postgresql
    +syn keyword	pfService	postoffice
    +syn keyword	pfService	pptp
    +syn keyword	pfService	presence
    +syn keyword	pfService	printer
    +syn keyword	pfService	prospero
    +syn keyword	pfService	prospero-np
    +syn keyword	pfService	puppet
    +syn keyword	pfService	pwdgen
    +syn keyword	pfService	qotd
    +syn keyword	pfService	quote
    +syn keyword	pfService	radacct
    +syn keyword	pfService	radius
    +syn keyword	pfService	radius-acct
    +syn keyword	pfService	rdp
    +syn keyword	pfService	readnews
    +syn keyword	pfService	remotefs
    +syn keyword	pfService	resource
    +syn keyword	pfService	rfb
    +syn keyword	pfService	rfe
    +syn keyword	pfService	rfs
    +syn keyword	pfService	rfs_server
    +syn keyword	pfService	ripd
    +syn keyword	pfService	ripng
    +syn keyword	pfService	rje
    +syn keyword	pfService	rkinit
    +syn keyword	pfService	rlp
    +syn keyword	pfService	routed
    +syn keyword	pfService	router
    +syn keyword	pfService	rpc
    +syn keyword	pfService	rpcbind
    +syn keyword	pfService	rsync
    +syn keyword	pfService	rtelnet
    +syn keyword	pfService	rtsp
    +syn keyword	pfService	sa-msg-port
    +syn keyword	pfService	sane-port
    +syn keyword	pfService	sftp
    +syn keyword	pfService	shell
    +syn keyword	pfService	sieve
    +syn keyword	pfService	silc
    +syn keyword	pfService	sink
    +syn keyword	pfService	sip
    +syn keyword	pfService	smtp
    +syn keyword	pfService	smtps
    +syn keyword	pfService	smux
    +syn keyword	pfService	snmp
    +syn keyword	pfService	snmp-trap
    +syn keyword	pfService	snmptrap
    +syn keyword	pfService	snpp
    +syn keyword	pfService	socks
    +syn keyword	pfService	source
    +syn keyword	pfService	spamd
    +syn keyword	pfService	spamd-cfg
    +syn keyword	pfService	spamd-sync
    +syn keyword	pfService	spooler
    +syn keyword	pfService	spop3
    +syn keyword	pfService	ssdp
    +syn keyword	pfService	ssh
    +syn keyword	pfService	submission
    +syn keyword	pfService	sunrpc
    +syn keyword	pfService	supdup
    +syn keyword	pfService	supfiledbg
    +syn keyword	pfService	supfilesrv
    +syn keyword	pfService	support
    +syn keyword	pfService	svn
    +syn keyword	pfService	svrloc
    +syn keyword	pfService	swat
    +syn keyword	pfService	syslog
    +syn keyword	pfService	syslog-tls
    +syn keyword	pfService	systat
    +syn keyword	pfService	tacacs
    +syn keyword	pfService	tacas+
    +syn keyword	pfService	talk
    +syn keyword	pfService	tap
    +syn keyword	pfService	tcpmux
    +syn keyword	pfService	telnet
    +syn keyword	pfService	tempo
    +syn keyword	pfService	tftp
    +syn keyword	pfService	time
    +syn keyword	pfService	timed
    +syn keyword	pfService	timeserver
    +syn keyword	pfService	timserver
    +syn keyword	pfService	tsap
    +syn keyword	pfService	ttylink
    +syn keyword	pfService	ttytst
    +syn keyword	pfService	ub-dns-control
    +syn keyword	pfService	ulistserv
    +syn keyword	pfService	untp
    +syn keyword	pfService	usenet
    +syn keyword	pfService	users
    +syn keyword	pfService	uucp
    +syn keyword	pfService	uucp-path
    +syn keyword	pfService	uucpd
    +syn keyword	pfService	vnc
    +syn keyword	pfService	vxlan
    +syn keyword	pfService	wais
    +syn keyword	pfService	webster
    +syn keyword	pfService	who
    +syn keyword	pfService	whod
    +syn keyword	pfService	whois
    +syn keyword	pfService	www
    +syn keyword	pfService	x400
    +syn keyword	pfService	x400-snd
    +syn keyword	pfService	xcept
    +syn keyword	pfService	xdmcp
    +syn keyword	pfService	xmpp-bosh
    +syn keyword	pfService	xmpp-client
    +syn keyword	pfService	xmpp-server
    +syn keyword	pfService	z3950
    +syn keyword	pfService	zabbix-agent
    +syn keyword	pfService	zabbix-trapper
    +syn keyword	pfService	zebra
    +syn keyword	pfService	zebrasrv
    diff --git a/git/usr/share/vim/vim92/syntax/pfmain.vim b/git/usr/share/vim/vim92/syntax/pfmain.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..af58da70eff43f1e8ab9e5deba8f40516d8da8d4
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pfmain.vim
    @@ -0,0 +1,1835 @@
    +" Vim syntax file
    +" Language:	Postfix main.cf configuration
    +" Maintainer:	KELEMEN Peter 
    +" Last Updates:	Anton Shestakov, Hong Xu
    +" Last Change:	2015 Feb 10
    +" Version:	0.40
    +" URL:		http://cern.ch/fuji/vim/syntax/pfmain.vim
    +" Comment:	Based on Postfix 2.12/3.0 postconf.5.html.
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +	finish
    +endif
    +
    +setlocal iskeyword=@,48-57,_,-
    +
    +syntax case match
    +syntax sync minlines=1
    +
    +syntax keyword pfmainConf 2bounce_notice_recipient
    +syntax keyword pfmainConf access_map_defer_code
    +syntax keyword pfmainConf access_map_reject_code
    +syntax keyword pfmainConf address_verify_cache_cleanup_interval
    +syntax keyword pfmainConf address_verify_default_transport
    +syntax keyword pfmainConf address_verify_local_transport
    +syntax keyword pfmainConf address_verify_map
    +syntax keyword pfmainConf address_verify_negative_cache
    +syntax keyword pfmainConf address_verify_negative_expire_time
    +syntax keyword pfmainConf address_verify_negative_refresh_time
    +syntax keyword pfmainConf address_verify_poll_count
    +syntax keyword pfmainConf address_verify_poll_delay
    +syntax keyword pfmainConf address_verify_positive_expire_time
    +syntax keyword pfmainConf address_verify_positive_refresh_time
    +syntax keyword pfmainConf address_verify_relay_transport
    +syntax keyword pfmainConf address_verify_relayhost
    +syntax keyword pfmainConf address_verify_sender
    +syntax keyword pfmainConf address_verify_sender_dependent_default_transport_maps
    +syntax keyword pfmainConf address_verify_sender_dependent_relayhost_maps
    +syntax keyword pfmainConf address_verify_sender_ttl
    +syntax keyword pfmainConf address_verify_service_name
    +syntax keyword pfmainConf address_verify_transport_maps
    +syntax keyword pfmainConf address_verify_virtual_transport
    +syntax keyword pfmainConf alias_database
    +syntax keyword pfmainConf alias_maps
    +syntax keyword pfmainConf allow_mail_to_commands
    +syntax keyword pfmainConf allow_mail_to_files
    +syntax keyword pfmainConf allow_min_user
    +syntax keyword pfmainConf allow_percent_hack
    +syntax keyword pfmainConf allow_untrusted_routing
    +syntax keyword pfmainConf alternate_config_directories
    +syntax keyword pfmainConf always_add_missing_headers
    +syntax keyword pfmainConf always_bcc
    +syntax keyword pfmainConf anvil_rate_time_unit
    +syntax keyword pfmainConf anvil_status_update_time
    +syntax keyword pfmainConf append_at_myorigin
    +syntax keyword pfmainConf append_dot_mydomain
    +syntax keyword pfmainConf application_event_drain_time
    +syntax keyword pfmainConf authorized_flush_users
    +syntax keyword pfmainConf authorized_mailq_users
    +syntax keyword pfmainConf authorized_submit_users
    +syntax keyword pfmainConf authorized_verp_clients
    +syntax keyword pfmainConf backwards_bounce_logfile_compatibility
    +syntax keyword pfmainConf berkeley_db_create_buffer_size
    +syntax keyword pfmainConf berkeley_db_read_buffer_size
    +syntax keyword pfmainConf best_mx_transport
    +syntax keyword pfmainConf biff
    +syntax keyword pfmainConf body_checks
    +syntax keyword pfmainConf body_checks_size_limit
    +syntax keyword pfmainConf bounce_notice_recipient
    +syntax keyword pfmainConf bounce_queue_lifetime
    +syntax keyword pfmainConf bounce_service_name
    +syntax keyword pfmainConf bounce_size_limit
    +syntax keyword pfmainConf bounce_template_file
    +syntax keyword pfmainConf broken_sasl_auth_clients
    +syntax keyword pfmainConf canonical_classes
    +syntax keyword pfmainConf canonical_maps
    +syntax keyword pfmainConf cleanup_service_name
    +syntax keyword pfmainConf command_directory
    +syntax keyword pfmainConf command_execution_directory
    +syntax keyword pfmainConf command_expansion_filter
    +syntax keyword pfmainConf command_time_limit
    +syntax keyword pfmainConf compatibility_level
    +syntax keyword pfmainConf config_directory
    +syntax keyword pfmainConf confirm_delay_cleared
    +syntax keyword pfmainConf connection_cache_protocol_timeout
    +syntax keyword pfmainConf connection_cache_service_name
    +syntax keyword pfmainConf connection_cache_status_update_time
    +syntax keyword pfmainConf connection_cache_ttl_limit
    +syntax keyword pfmainConf content_filter
    +syntax keyword pfmainConf cyrus_sasl_config_path
    +syntax keyword pfmainConf daemon_directory
    +syntax keyword pfmainConf daemon_table_open_error_is_fatal
    +syntax keyword pfmainConf daemon_timeout
    +syntax keyword pfmainConf data_directory
    +syntax keyword pfmainConf debug_peer_level
    +syntax keyword pfmainConf debug_peer_list
    +syntax keyword pfmainConf debugger_command
    +syntax keyword pfmainConf default_database_type
    +syntax keyword pfmainConf default_delivery_slot_cost
    +syntax keyword pfmainConf default_delivery_slot_discount
    +syntax keyword pfmainConf default_delivery_slot_loan
    +syntax keyword pfmainConf default_delivery_status_filter
    +syntax keyword pfmainConf default_destination_concurrency_failed_cohort_limit
    +syntax keyword pfmainConf default_destination_concurrency_limit
    +syntax keyword pfmainConf default_destination_concurrency_negative_feedback
    +syntax keyword pfmainConf default_destination_concurrency_positive_feedback
    +syntax keyword pfmainConf default_destination_rate_delay
    +syntax keyword pfmainConf default_destination_recipient_limit
    +syntax keyword pfmainConf default_extra_recipient_limit
    +syntax keyword pfmainConf default_filter_nexthop
    +syntax keyword pfmainConf default_minimum_delivery_slots
    +syntax keyword pfmainConf default_privs
    +syntax keyword pfmainConf default_process_limit
    +syntax keyword pfmainConf default_rbl_reply
    +syntax keyword pfmainConf default_recipient_limit
    +syntax keyword pfmainConf default_recipient_refill_delay
    +syntax keyword pfmainConf default_recipient_refill_limit
    +syntax keyword pfmainConf default_transport
    +syntax keyword pfmainConf default_verp_delimiters
    +syntax keyword pfmainConf defer_code
    +syntax keyword pfmainConf defer_service_name
    +syntax keyword pfmainConf defer_transports
    +syntax keyword pfmainConf delay_logging_resolution_limit
    +syntax keyword pfmainConf delay_notice_recipient
    +syntax keyword pfmainConf delay_warning_time
    +syntax keyword pfmainConf deliver_lock_attempts
    +syntax keyword pfmainConf deliver_lock_delay
    +syntax keyword pfmainConf destination_concurrency_feedback_debug
    +syntax keyword pfmainConf detect_8bit_encoding_header
    +syntax keyword pfmainConf disable_dns_lookups
    +syntax keyword pfmainConf disable_mime_input_processing
    +syntax keyword pfmainConf disable_mime_output_conversion
    +syntax keyword pfmainConf disable_verp_bounces
    +syntax keyword pfmainConf disable_vrfy_command
    +syntax keyword pfmainConf dnsblog_reply_delay
    +syntax keyword pfmainConf dnsblog_service_name
    +syntax keyword pfmainConf dont_remove
    +syntax keyword pfmainConf double_bounce_sender
    +syntax keyword pfmainConf duplicate_filter_limit
    +syntax keyword pfmainConf empty_address_default_transport_maps_lookup_key
    +syntax keyword pfmainConf empty_address_recipient
    +syntax keyword pfmainConf empty_address_relayhost_maps_lookup_key
    +syntax keyword pfmainConf enable_errors_to
    +syntax keyword pfmainConf enable_long_queue_ids
    +syntax keyword pfmainConf enable_original_recipient
    +syntax keyword pfmainConf error_notice_recipient
    +syntax keyword pfmainConf error_service_name
    +syntax keyword pfmainConf execution_directory_expansion_filter
    +syntax keyword pfmainConf expand_owner_alias
    +syntax keyword pfmainConf export_environment
    +syntax keyword pfmainConf extract_recipient_limit
    +syntax keyword pfmainConf fallback_relay
    +syntax keyword pfmainConf fallback_transport
    +syntax keyword pfmainConf fallback_transport_maps
    +syntax keyword pfmainConf fast_flush_domains
    +syntax keyword pfmainConf fast_flush_purge_time
    +syntax keyword pfmainConf fast_flush_refresh_time
    +syntax keyword pfmainConf fault_injection_code
    +syntax keyword pfmainConf flush_service_name
    +syntax keyword pfmainConf fork_attempts
    +syntax keyword pfmainConf fork_delay
    +syntax keyword pfmainConf forward_expansion_filter
    +syntax keyword pfmainConf forward_path
    +syntax keyword pfmainConf frozen_delivered_to
    +syntax keyword pfmainConf hash_queue_depth
    +syntax keyword pfmainConf hash_queue_names
    +syntax keyword pfmainConf header_address_token_limit
    +syntax keyword pfmainConf header_checks
    +syntax keyword pfmainConf header_size_limit
    +syntax keyword pfmainConf helpful_warnings
    +syntax keyword pfmainConf home_mailbox
    +syntax keyword pfmainConf hopcount_limit
    +syntax keyword pfmainConf html_directory
    +syntax keyword pfmainConf ignore_mx_lookup_error
    +syntax keyword pfmainConf import_environment
    +syntax keyword pfmainConf in_flow_delay
    +syntax keyword pfmainConf inet_interfaces
    +syntax keyword pfmainConf inet_protocols
    +syntax keyword pfmainConf initial_destination_concurrency
    +syntax keyword pfmainConf internal_mail_filter_classes
    +syntax keyword pfmainConf invalid_hostname_reject_code
    +syntax keyword pfmainConf ipc_idle
    +syntax keyword pfmainConf ipc_timeout
    +syntax keyword pfmainConf ipc_ttl
    +syntax keyword pfmainConf line_length_limit
    +syntax keyword pfmainConf lmdb_map_size
    +syntax keyword pfmainConf lmtp_address_preference
    +syntax keyword pfmainConf lmtp_address_verify_target
    +syntax keyword pfmainConf lmtp_assume_final
    +syntax keyword pfmainConf lmtp_bind_address
    +syntax keyword pfmainConf lmtp_bind_address6
    +syntax keyword pfmainConf lmtp_body_checks
    +syntax keyword pfmainConf lmtp_cache_connection
    +syntax keyword pfmainConf lmtp_cname_overrides_servername
    +syntax keyword pfmainConf lmtp_connect_timeout
    +syntax keyword pfmainConf lmtp_connection_cache_destinations
    +syntax keyword pfmainConf lmtp_connection_cache_on_demand
    +syntax keyword pfmainConf lmtp_connection_cache_time_limit
    +syntax keyword pfmainConf lmtp_connection_reuse_count_limit
    +syntax keyword pfmainConf lmtp_connection_reuse_time_limit
    +syntax keyword pfmainConf lmtp_data_done_timeout
    +syntax keyword pfmainConf lmtp_data_init_timeout
    +syntax keyword pfmainConf lmtp_data_xfer_timeout
    +syntax keyword pfmainConf lmtp_defer_if_no_mx_address_found
    +syntax keyword pfmainConf lmtp_delivery_status_filter
    +syntax keyword pfmainConf lmtp_destination_concurrency_limit
    +syntax keyword pfmainConf lmtp_destination_recipient_limit
    +syntax keyword pfmainConf lmtp_discard_lhlo_keyword_address_maps
    +syntax keyword pfmainConf lmtp_discard_lhlo_keywords
    +syntax keyword pfmainConf lmtp_dns_reply_filter
    +syntax keyword pfmainConf lmtp_dns_resolver_options
    +syntax keyword pfmainConf lmtp_dns_support_level
    +syntax keyword pfmainConf lmtp_enforce_tls
    +syntax keyword pfmainConf lmtp_generic_maps
    +syntax keyword pfmainConf lmtp_header_checks
    +syntax keyword pfmainConf lmtp_host_lookup
    +syntax keyword pfmainConf lmtp_lhlo_name
    +syntax keyword pfmainConf lmtp_lhlo_timeout
    +syntax keyword pfmainConf lmtp_line_length_limit
    +syntax keyword pfmainConf lmtp_mail_timeout
    +syntax keyword pfmainConf lmtp_mime_header_checks
    +syntax keyword pfmainConf lmtp_mx_address_limit
    +syntax keyword pfmainConf lmtp_mx_session_limit
    +syntax keyword pfmainConf lmtp_nested_header_checks
    +syntax keyword pfmainConf lmtp_per_record_deadline
    +syntax keyword pfmainConf lmtp_pix_workaround_delay_time
    +syntax keyword pfmainConf lmtp_pix_workaround_maps
    +syntax keyword pfmainConf lmtp_pix_workaround_threshold_time
    +syntax keyword pfmainConf lmtp_pix_workarounds
    +syntax keyword pfmainConf lmtp_quit_timeout
    +syntax keyword pfmainConf lmtp_quote_rfc821_envelope
    +syntax keyword pfmainConf lmtp_randomize_addresses
    +syntax keyword pfmainConf lmtp_rcpt_timeout
    +syntax keyword pfmainConf lmtp_reply_filter
    +syntax keyword pfmainConf lmtp_rset_timeout
    +syntax keyword pfmainConf lmtp_sasl_auth_cache_name
    +syntax keyword pfmainConf lmtp_sasl_auth_cache_time
    +syntax keyword pfmainConf lmtp_sasl_auth_enable
    +syntax keyword pfmainConf lmtp_sasl_auth_soft_bounce
    +syntax keyword pfmainConf lmtp_sasl_mechanism_filter
    +syntax keyword pfmainConf lmtp_sasl_password_maps
    +syntax keyword pfmainConf lmtp_sasl_path
    +syntax keyword pfmainConf lmtp_sasl_security_options
    +syntax keyword pfmainConf lmtp_sasl_tls_security_options
    +syntax keyword pfmainConf lmtp_sasl_tls_verified_security_options
    +syntax keyword pfmainConf lmtp_sasl_type
    +syntax keyword pfmainConf lmtp_send_dummy_mail_auth
    +syntax keyword pfmainConf lmtp_send_xforward_command
    +syntax keyword pfmainConf lmtp_sender_dependent_authentication
    +syntax keyword pfmainConf lmtp_skip_5xx_greeting
    +syntax keyword pfmainConf lmtp_skip_quit_response
    +syntax keyword pfmainConf lmtp_starttls_timeout
    +syntax keyword pfmainConf lmtp_tcp_port
    +syntax keyword pfmainConf lmtp_tls_CAfile
    +syntax keyword pfmainConf lmtp_tls_CApath
    +syntax keyword pfmainConf lmtp_tls_block_early_mail_reply
    +syntax keyword pfmainConf lmtp_tls_cert_file
    +syntax keyword pfmainConf lmtp_tls_ciphers
    +syntax keyword pfmainConf lmtp_tls_dcert_file
    +syntax keyword pfmainConf lmtp_tls_dkey_file
    +syntax keyword pfmainConf lmtp_tls_eccert_file
    +syntax keyword pfmainConf lmtp_tls_eckey_file
    +syntax keyword pfmainConf lmtp_tls_enforce_peername
    +syntax keyword pfmainConf lmtp_tls_exclude_ciphers
    +syntax keyword pfmainConf lmtp_tls_fingerprint_cert_match
    +syntax keyword pfmainConf lmtp_tls_fingerprint_digest
    +syntax keyword pfmainConf lmtp_tls_force_insecure_host_tlsa_lookup
    +syntax keyword pfmainConf lmtp_tls_key_file
    +syntax keyword pfmainConf lmtp_tls_loglevel
    +syntax keyword pfmainConf lmtp_tls_mandatory_ciphers
    +syntax keyword pfmainConf lmtp_tls_mandatory_exclude_ciphers
    +syntax keyword pfmainConf lmtp_tls_mandatory_protocols
    +syntax keyword pfmainConf lmtp_tls_note_starttls_offer
    +syntax keyword pfmainConf lmtp_tls_per_site
    +syntax keyword pfmainConf lmtp_tls_policy_maps
    +syntax keyword pfmainConf lmtp_tls_protocols
    +syntax keyword pfmainConf lmtp_tls_scert_verifydepth
    +syntax keyword pfmainConf lmtp_tls_secure_cert_match
    +syntax keyword pfmainConf lmtp_tls_security_level
    +syntax keyword pfmainConf lmtp_tls_session_cache_database
    +syntax keyword pfmainConf lmtp_tls_session_cache_timeout
    +syntax keyword pfmainConf lmtp_tls_trust_anchor_file
    +syntax keyword pfmainConf lmtp_tls_verify_cert_match
    +syntax keyword pfmainConf lmtp_use_tls
    +syntax keyword pfmainConf lmtp_xforward_timeout
    +syntax keyword pfmainConf local_command_shell
    +syntax keyword pfmainConf local_delivery_status_filter
    +syntax keyword pfmainConf local_destination_concurrency_limit
    +syntax keyword pfmainConf local_destination_recipient_limit
    +syntax keyword pfmainConf local_header_rewrite_clients
    +syntax keyword pfmainConf local_recipient_maps
    +syntax keyword pfmainConf local_transport
    +syntax keyword pfmainConf luser_relay
    +syntax keyword pfmainConf mail_name
    +syntax keyword pfmainConf mail_owner
    +syntax keyword pfmainConf mail_release_date
    +syntax keyword pfmainConf mail_spool_directory
    +syntax keyword pfmainConf mail_version
    +syntax keyword pfmainConf mailbox_command
    +syntax keyword pfmainConf mailbox_command_maps
    +syntax keyword pfmainConf mailbox_delivery_lock
    +syntax keyword pfmainConf mailbox_size_limit
    +syntax keyword pfmainConf mailbox_transport
    +syntax keyword pfmainConf mailbox_transport_maps
    +syntax keyword pfmainConf mailq_path
    +syntax keyword pfmainConf manpage_directory
    +syntax keyword pfmainConf maps_rbl_domains
    +syntax keyword pfmainConf maps_rbl_reject_code
    +syntax keyword pfmainConf masquerade_classes
    +syntax keyword pfmainConf masquerade_domains
    +syntax keyword pfmainConf masquerade_exceptions
    +syntax keyword pfmainConf master_service_disable
    +syntax keyword pfmainConf max_idle
    +syntax keyword pfmainConf max_use
    +syntax keyword pfmainConf maximal_backoff_time
    +syntax keyword pfmainConf maximal_queue_lifetime
    +syntax keyword pfmainConf message_drop_headers
    +syntax keyword pfmainConf message_reject_characters
    +syntax keyword pfmainConf message_size_limit
    +syntax keyword pfmainConf message_strip_characters
    +syntax keyword pfmainConf meta_directory
    +syntax keyword pfmainConf milter_command_timeout
    +syntax keyword pfmainConf milter_connect_macros
    +syntax keyword pfmainConf milter_connect_timeout
    +syntax keyword pfmainConf milter_content_timeout
    +syntax keyword pfmainConf milter_data_macros
    +syntax keyword pfmainConf milter_default_action
    +syntax keyword pfmainConf milter_end_of_data_macros
    +syntax keyword pfmainConf milter_end_of_header_macros
    +syntax keyword pfmainConf milter_header_checks
    +syntax keyword pfmainConf milter_helo_macros
    +syntax keyword pfmainConf milter_macro_daemon_name
    +syntax keyword pfmainConf milter_macro_v
    +syntax keyword pfmainConf milter_mail_macros
    +syntax keyword pfmainConf milter_protocol
    +syntax keyword pfmainConf milter_rcpt_macros
    +syntax keyword pfmainConf milter_unknown_command_macros
    +syntax keyword pfmainConf mime_boundary_length_limit
    +syntax keyword pfmainConf mime_header_checks
    +syntax keyword pfmainConf mime_nesting_limit
    +syntax keyword pfmainConf minimal_backoff_time
    +syntax keyword pfmainConf multi_instance_directories
    +syntax keyword pfmainConf multi_instance_enable
    +syntax keyword pfmainConf multi_instance_group
    +syntax keyword pfmainConf multi_instance_name
    +syntax keyword pfmainConf multi_instance_wrapper
    +syntax keyword pfmainConf multi_recipient_bounce_reject_code
    +syntax keyword pfmainConf mydestination
    +syntax keyword pfmainConf mydomain
    +syntax keyword pfmainConf myhostname
    +syntax keyword pfmainConf mynetworks
    +syntax keyword pfmainConf mynetworks_style
    +syntax keyword pfmainConf myorigin
    +syntax keyword pfmainConf nested_header_checks
    +syntax keyword pfmainConf newaliases_path
    +syntax keyword pfmainConf non_fqdn_reject_code
    +syntax keyword pfmainConf non_smtpd_milters
    +syntax keyword pfmainConf notify_classes
    +syntax keyword pfmainConf nullmx_reject_code
    +syntax keyword pfmainConf owner_request_special
    +syntax keyword pfmainConf parent_domain_matches_subdomains
    +syntax keyword pfmainConf permit_mx_backup_networks
    +syntax keyword pfmainConf pickup_service_name
    +syntax keyword pfmainConf pipe_delivery_status_filter
    +syntax keyword pfmainConf plaintext_reject_code
    +syntax keyword pfmainConf postmulti_control_commands
    +syntax keyword pfmainConf postmulti_start_commands
    +syntax keyword pfmainConf postmulti_stop_commands
    +syntax keyword pfmainConf postscreen_access_list
    +syntax keyword pfmainConf postscreen_bare_newline_action
    +syntax keyword pfmainConf postscreen_bare_newline_enable
    +syntax keyword pfmainConf postscreen_bare_newline_ttl
    +syntax keyword pfmainConf postscreen_blacklist_action
    +syntax keyword pfmainConf postscreen_cache_cleanup_interval
    +syntax keyword pfmainConf postscreen_cache_map
    +syntax keyword pfmainConf postscreen_cache_retention_time
    +syntax keyword pfmainConf postscreen_client_connection_count_limit
    +syntax keyword pfmainConf postscreen_command_count_limit
    +syntax keyword pfmainConf postscreen_command_filter
    +syntax keyword pfmainConf postscreen_command_time_limit
    +syntax keyword pfmainConf postscreen_disable_vrfy_command
    +syntax keyword pfmainConf postscreen_discard_ehlo_keyword_address_maps
    +syntax keyword pfmainConf postscreen_discard_ehlo_keywords
    +syntax keyword pfmainConf postscreen_dnsbl_action
    +syntax keyword pfmainConf postscreen_dnsbl_reply_map
    +syntax keyword pfmainConf postscreen_dnsbl_sites
    +syntax keyword pfmainConf postscreen_dnsbl_threshold
    +syntax keyword pfmainConf postscreen_dnsbl_timeout
    +syntax keyword pfmainConf postscreen_dnsbl_ttl
    +syntax keyword pfmainConf postscreen_dnsbl_whitelist_threshold
    +syntax keyword pfmainConf postscreen_enforce_tls
    +syntax keyword pfmainConf postscreen_expansion_filter
    +syntax keyword pfmainConf postscreen_forbidden_commands
    +syntax keyword pfmainConf postscreen_greet_action
    +syntax keyword pfmainConf postscreen_greet_banner
    +syntax keyword pfmainConf postscreen_greet_ttl
    +syntax keyword pfmainConf postscreen_greet_wait
    +syntax keyword pfmainConf postscreen_helo_required
    +syntax keyword pfmainConf postscreen_non_smtp_command_action
    +syntax keyword pfmainConf postscreen_non_smtp_command_enable
    +syntax keyword pfmainConf postscreen_non_smtp_command_ttl
    +syntax keyword pfmainConf postscreen_pipelining_action
    +syntax keyword pfmainConf postscreen_pipelining_enable
    +syntax keyword pfmainConf postscreen_pipelining_ttl
    +syntax keyword pfmainConf postscreen_post_queue_limit
    +syntax keyword pfmainConf postscreen_pre_queue_limit
    +syntax keyword pfmainConf postscreen_reject_footer
    +syntax keyword pfmainConf postscreen_tls_security_level
    +syntax keyword pfmainConf postscreen_upstream_proxy_protocol
    +syntax keyword pfmainConf postscreen_upstream_proxy_timeout
    +syntax keyword pfmainConf postscreen_use_tls
    +syntax keyword pfmainConf postscreen_watchdog_timeout
    +syntax keyword pfmainConf postscreen_whitelist_interfaces
    +syntax keyword pfmainConf prepend_delivered_header
    +syntax keyword pfmainConf process_id
    +syntax keyword pfmainConf process_id_directory
    +syntax keyword pfmainConf process_name
    +syntax keyword pfmainConf propagate_unmatched_extensions
    +syntax keyword pfmainConf proxy_interfaces
    +syntax keyword pfmainConf proxy_read_maps
    +syntax keyword pfmainConf proxy_write_maps
    +syntax keyword pfmainConf proxymap_service_name
    +syntax keyword pfmainConf proxywrite_service_name
    +syntax keyword pfmainConf qmgr_clog_warn_time
    +syntax keyword pfmainConf qmgr_daemon_timeout
    +syntax keyword pfmainConf qmgr_fudge_factor
    +syntax keyword pfmainConf qmgr_ipc_timeout
    +syntax keyword pfmainConf qmgr_message_active_limit
    +syntax keyword pfmainConf qmgr_message_recipient_limit
    +syntax keyword pfmainConf qmgr_message_recipient_minimum
    +syntax keyword pfmainConf qmqpd_authorized_clients
    +syntax keyword pfmainConf qmqpd_client_port_logging
    +syntax keyword pfmainConf qmqpd_error_delay
    +syntax keyword pfmainConf qmqpd_timeout
    +syntax keyword pfmainConf queue_directory
    +syntax keyword pfmainConf queue_file_attribute_count_limit
    +syntax keyword pfmainConf queue_minfree
    +syntax keyword pfmainConf queue_run_delay
    +syntax keyword pfmainConf queue_service_name
    +syntax keyword pfmainConf rbl_reply_maps
    +syntax keyword pfmainConf readme_directory
    +syntax keyword pfmainConf receive_override_options
    +syntax keyword pfmainConf recipient_bcc_maps
    +syntax keyword pfmainConf recipient_canonical_classes
    +syntax keyword pfmainConf recipient_canonical_maps
    +syntax keyword pfmainConf recipient_delimiter
    +syntax keyword pfmainConf reject_code
    +syntax keyword pfmainConf reject_tempfail_action
    +syntax keyword pfmainConf relay_clientcerts
    +syntax keyword pfmainConf relay_destination_concurrency_limit
    +syntax keyword pfmainConf relay_destination_recipient_limit
    +syntax keyword pfmainConf relay_domains
    +syntax keyword pfmainConf relay_domains_reject_code
    +syntax keyword pfmainConf relay_recipient_maps
    +syntax keyword pfmainConf relay_transport
    +syntax keyword pfmainConf relayhost
    +syntax keyword pfmainConf relocated_maps
    +syntax keyword pfmainConf remote_header_rewrite_domain
    +syntax keyword pfmainConf require_home_directory
    +syntax keyword pfmainConf reset_owner_alias
    +syntax keyword pfmainConf resolve_dequoted_address
    +syntax keyword pfmainConf resolve_null_domain
    +syntax keyword pfmainConf resolve_numeric_domain
    +syntax keyword pfmainConf rewrite_service_name
    +syntax keyword pfmainConf sample_directory
    +syntax keyword pfmainConf send_cyrus_sasl_authzid
    +syntax keyword pfmainConf sender_based_routing
    +syntax keyword pfmainConf sender_bcc_maps
    +syntax keyword pfmainConf sender_canonical_classes
    +syntax keyword pfmainConf sender_canonical_maps
    +syntax keyword pfmainConf sender_dependent_default_transport_maps
    +syntax keyword pfmainConf sender_dependent_relayhost_maps
    +syntax keyword pfmainConf sendmail_fix_line_endings
    +syntax keyword pfmainConf sendmail_path
    +syntax keyword pfmainConf service_throttle_time
    +syntax keyword pfmainConf setgid_group
    +syntax keyword pfmainConf shlib_directory
    +syntax keyword pfmainConf show_user_unknown_table_name
    +syntax keyword pfmainConf showq_service_name
    +syntax keyword pfmainConf smtp_address_preference
    +syntax keyword pfmainConf smtp_address_verify_target
    +syntax keyword pfmainConf smtp_always_send_ehlo
    +syntax keyword pfmainConf smtp_bind_address
    +syntax keyword pfmainConf smtp_bind_address6
    +syntax keyword pfmainConf smtp_body_checks
    +syntax keyword pfmainConf smtp_cname_overrides_servername
    +syntax keyword pfmainConf smtp_connect_timeout
    +syntax keyword pfmainConf smtp_connection_cache_destinations
    +syntax keyword pfmainConf smtp_connection_cache_on_demand
    +syntax keyword pfmainConf smtp_connection_cache_time_limit
    +syntax keyword pfmainConf smtp_connection_reuse_count_limit
    +syntax keyword pfmainConf smtp_connection_reuse_time_limit
    +syntax keyword pfmainConf smtp_data_done_timeout
    +syntax keyword pfmainConf smtp_data_init_timeout
    +syntax keyword pfmainConf smtp_data_xfer_timeout
    +syntax keyword pfmainConf smtp_defer_if_no_mx_address_found
    +syntax keyword pfmainConf smtp_delivery_status_filter
    +syntax keyword pfmainConf smtp_destination_concurrency_limit
    +syntax keyword pfmainConf smtp_destination_recipient_limit
    +syntax keyword pfmainConf smtp_discard_ehlo_keyword_address_maps
    +syntax keyword pfmainConf smtp_discard_ehlo_keywords
    +syntax keyword pfmainConf smtp_dns_reply_filter
    +syntax keyword pfmainConf smtp_dns_resolver_options
    +syntax keyword pfmainConf smtp_dns_support_level
    +syntax keyword pfmainConf smtp_enforce_tls
    +syntax keyword pfmainConf smtp_fallback_relay
    +syntax keyword pfmainConf smtp_generic_maps
    +syntax keyword pfmainConf smtp_header_checks
    +syntax keyword pfmainConf smtp_helo_name
    +syntax keyword pfmainConf smtp_helo_timeout
    +syntax keyword pfmainConf smtp_host_lookup
    +syntax keyword pfmainConf smtp_line_length_limit
    +syntax keyword pfmainConf smtp_mail_timeout
    +syntax keyword pfmainConf smtp_mime_header_checks
    +syntax keyword pfmainConf smtp_mx_address_limit
    +syntax keyword pfmainConf smtp_mx_session_limit
    +syntax keyword pfmainConf smtp_nested_header_checks
    +syntax keyword pfmainConf smtp_never_send_ehlo
    +syntax keyword pfmainConf smtp_per_record_deadline
    +syntax keyword pfmainConf smtp_pix_workaround_delay_time
    +syntax keyword pfmainConf smtp_pix_workaround_maps
    +syntax keyword pfmainConf smtp_pix_workaround_threshold_time
    +syntax keyword pfmainConf smtp_pix_workarounds
    +syntax keyword pfmainConf smtp_quit_timeout
    +syntax keyword pfmainConf smtp_quote_rfc821_envelope
    +syntax keyword pfmainConf smtp_randomize_addresses
    +syntax keyword pfmainConf smtp_rcpt_timeout
    +syntax keyword pfmainConf smtp_reply_filter
    +syntax keyword pfmainConf smtp_rset_timeout
    +syntax keyword pfmainConf smtp_sasl_auth_cache_name
    +syntax keyword pfmainConf smtp_sasl_auth_cache_time
    +syntax keyword pfmainConf smtp_sasl_auth_enable
    +syntax keyword pfmainConf smtp_sasl_auth_soft_bounce
    +syntax keyword pfmainConf smtp_sasl_mechanism_filter
    +syntax keyword pfmainConf smtp_sasl_password_maps
    +syntax keyword pfmainConf smtp_sasl_path
    +syntax keyword pfmainConf smtp_sasl_security_options
    +syntax keyword pfmainConf smtp_sasl_tls_security_options
    +syntax keyword pfmainConf smtp_sasl_tls_verified_security_options
    +syntax keyword pfmainConf smtp_sasl_type
    +syntax keyword pfmainConf smtp_send_dummy_mail_auth
    +syntax keyword pfmainConf smtp_send_xforward_command
    +syntax keyword pfmainConf smtp_sender_dependent_authentication
    +syntax keyword pfmainConf smtp_skip_4xx_greeting
    +syntax keyword pfmainConf smtp_skip_5xx_greeting
    +syntax keyword pfmainConf smtp_skip_quit_response
    +syntax keyword pfmainConf smtp_starttls_timeout
    +syntax keyword pfmainConf smtp_tls_CAfile
    +syntax keyword pfmainConf smtp_tls_CApath
    +syntax keyword pfmainConf smtp_tls_block_early_mail_reply
    +syntax keyword pfmainConf smtp_tls_cert_file
    +syntax keyword pfmainConf smtp_tls_cipherlist
    +syntax keyword pfmainConf smtp_tls_ciphers
    +syntax keyword pfmainConf smtp_tls_dcert_file
    +syntax keyword pfmainConf smtp_tls_dkey_file
    +syntax keyword pfmainConf smtp_tls_eccert_file
    +syntax keyword pfmainConf smtp_tls_eckey_file
    +syntax keyword pfmainConf smtp_tls_enforce_peername
    +syntax keyword pfmainConf smtp_tls_exclude_ciphers
    +syntax keyword pfmainConf smtp_tls_fingerprint_cert_match
    +syntax keyword pfmainConf smtp_tls_fingerprint_digest
    +syntax keyword pfmainConf smtp_tls_force_insecure_host_tlsa_lookup
    +syntax keyword pfmainConf smtp_tls_key_file
    +syntax keyword pfmainConf smtp_tls_loglevel
    +syntax keyword pfmainConf smtp_tls_mandatory_ciphers
    +syntax keyword pfmainConf smtp_tls_mandatory_exclude_ciphers
    +syntax keyword pfmainConf smtp_tls_mandatory_protocols
    +syntax keyword pfmainConf smtp_tls_note_starttls_offer
    +syntax keyword pfmainConf smtp_tls_per_site
    +syntax keyword pfmainConf smtp_tls_policy_maps
    +syntax keyword pfmainConf smtp_tls_protocols
    +syntax keyword pfmainConf smtp_tls_scert_verifydepth
    +syntax keyword pfmainConf smtp_tls_secure_cert_match
    +syntax keyword pfmainConf smtp_tls_security_level
    +syntax keyword pfmainConf smtp_tls_session_cache_database
    +syntax keyword pfmainConf smtp_tls_session_cache_timeout
    +syntax keyword pfmainConf smtp_tls_trust_anchor_file
    +syntax keyword pfmainConf smtp_tls_verify_cert_match
    +syntax keyword pfmainConf smtp_tls_wrappermode
    +syntax keyword pfmainConf smtp_use_tls
    +syntax keyword pfmainConf smtp_xforward_timeout
    +syntax keyword pfmainConf smtpd_authorized_verp_clients
    +syntax keyword pfmainConf smtpd_authorized_xclient_hosts
    +syntax keyword pfmainConf smtpd_authorized_xforward_hosts
    +syntax keyword pfmainConf smtpd_banner
    +syntax keyword pfmainConf smtpd_client_connection_count_limit
    +syntax keyword pfmainConf smtpd_client_connection_rate_limit
    +syntax keyword pfmainConf smtpd_client_event_limit_exceptions
    +syntax keyword pfmainConf smtpd_client_message_rate_limit
    +syntax keyword pfmainConf smtpd_client_new_tls_session_rate_limit
    +syntax keyword pfmainConf smtpd_client_port_logging
    +syntax keyword pfmainConf smtpd_client_recipient_rate_limit
    +syntax keyword pfmainConf smtpd_client_restrictions
    +syntax keyword pfmainConf smtpd_command_filter
    +syntax keyword pfmainConf smtpd_data_restrictions
    +syntax keyword pfmainConf smtpd_delay_open_until_valid_rcpt
    +syntax keyword pfmainConf smtpd_delay_reject
    +syntax keyword pfmainConf smtpd_discard_ehlo_keyword_address_maps
    +syntax keyword pfmainConf smtpd_discard_ehlo_keywords
    +syntax keyword pfmainConf smtpd_dns_reply_filter
    +syntax keyword pfmainConf smtpd_end_of_data_restrictions
    +syntax keyword pfmainConf smtpd_enforce_tls
    +syntax keyword pfmainConf smtpd_error_sleep_time
    +syntax keyword pfmainConf smtpd_etrn_restrictions
    +syntax keyword pfmainConf smtpd_expansion_filter
    +syntax keyword pfmainConf smtpd_forbidden_commands
    +syntax keyword pfmainConf smtpd_hard_error_limit
    +syntax keyword pfmainConf smtpd_helo_required
    +syntax keyword pfmainConf smtpd_helo_restrictions
    +syntax keyword pfmainConf smtpd_history_flush_threshold
    +syntax keyword pfmainConf smtpd_junk_command_limit
    +syntax keyword pfmainConf smtpd_log_access_permit_actions
    +syntax keyword pfmainConf smtpd_milters
    +syntax keyword pfmainConf smtpd_noop_commands
    +syntax keyword pfmainConf smtpd_null_access_lookup_key
    +syntax keyword pfmainConf smtpd_peername_lookup
    +syntax keyword pfmainConf smtpd_per_record_deadline
    +syntax keyword pfmainConf smtpd_policy_service_default_action
    +syntax keyword pfmainConf smtpd_policy_service_max_idle
    +syntax keyword pfmainConf smtpd_policy_service_max_ttl
    +syntax keyword pfmainConf smtpd_policy_service_request_limit
    +syntax keyword pfmainConf smtpd_policy_service_retry_delay
    +syntax keyword pfmainConf smtpd_policy_service_timeout
    +syntax keyword pfmainConf smtpd_policy_service_try_limit
    +syntax keyword pfmainConf smtpd_proxy_ehlo
    +syntax keyword pfmainConf smtpd_proxy_filter
    +syntax keyword pfmainConf smtpd_proxy_options
    +syntax keyword pfmainConf smtpd_proxy_timeout
    +syntax keyword pfmainConf smtpd_recipient_limit
    +syntax keyword pfmainConf smtpd_recipient_overshoot_limit
    +syntax keyword pfmainConf smtpd_recipient_restrictions
    +syntax keyword pfmainConf smtpd_reject_footer
    +syntax keyword pfmainConf smtpd_reject_unlisted_recipient
    +syntax keyword pfmainConf smtpd_reject_unlisted_sender
    +syntax keyword pfmainConf smtpd_relay_restrictions
    +syntax keyword pfmainConf smtpd_restriction_classes
    +syntax keyword pfmainConf smtpd_sasl_application_name
    +syntax keyword pfmainConf smtpd_sasl_auth_enable
    +syntax keyword pfmainConf smtpd_sasl_authenticated_header
    +syntax keyword pfmainConf smtpd_sasl_exceptions_networks
    +syntax keyword pfmainConf smtpd_sasl_local_domain
    +syntax keyword pfmainConf smtpd_sasl_path
    +syntax keyword pfmainConf smtpd_sasl_security_options
    +syntax keyword pfmainConf smtpd_sasl_service
    +syntax keyword pfmainConf smtpd_sasl_tls_security_options
    +syntax keyword pfmainConf smtpd_sasl_type
    +syntax keyword pfmainConf smtpd_sender_login_maps
    +syntax keyword pfmainConf smtpd_sender_restrictions
    +syntax keyword pfmainConf smtpd_service_name
    +syntax keyword pfmainConf smtpd_soft_error_limit
    +syntax keyword pfmainConf smtpd_starttls_timeout
    +syntax keyword pfmainConf smtpd_timeout
    +syntax keyword pfmainConf smtpd_tls_CAfile
    +syntax keyword pfmainConf smtpd_tls_CApath
    +syntax keyword pfmainConf smtpd_tls_always_issue_session_ids
    +syntax keyword pfmainConf smtpd_tls_ask_ccert
    +syntax keyword pfmainConf smtpd_tls_auth_only
    +syntax keyword pfmainConf smtpd_tls_ccert_verifydepth
    +syntax keyword pfmainConf smtpd_tls_cert_file
    +syntax keyword pfmainConf smtpd_tls_cipherlist
    +syntax keyword pfmainConf smtpd_tls_ciphers
    +syntax keyword pfmainConf smtpd_tls_dcert_file
    +syntax keyword pfmainConf smtpd_tls_dh1024_param_file
    +syntax keyword pfmainConf smtpd_tls_dh512_param_file
    +syntax keyword pfmainConf smtpd_tls_dkey_file
    +syntax keyword pfmainConf smtpd_tls_eccert_file
    +syntax keyword pfmainConf smtpd_tls_eckey_file
    +syntax keyword pfmainConf smtpd_tls_eecdh_grade
    +syntax keyword pfmainConf smtpd_tls_exclude_ciphers
    +syntax keyword pfmainConf smtpd_tls_fingerprint_digest
    +syntax keyword pfmainConf smtpd_tls_key_file
    +syntax keyword pfmainConf smtpd_tls_loglevel
    +syntax keyword pfmainConf smtpd_tls_mandatory_ciphers
    +syntax keyword pfmainConf smtpd_tls_mandatory_exclude_ciphers
    +syntax keyword pfmainConf smtpd_tls_mandatory_protocols
    +syntax keyword pfmainConf smtpd_tls_protocols
    +syntax keyword pfmainConf smtpd_tls_received_header
    +syntax keyword pfmainConf smtpd_tls_req_ccert
    +syntax keyword pfmainConf smtpd_tls_security_level
    +syntax keyword pfmainConf smtpd_tls_session_cache_database
    +syntax keyword pfmainConf smtpd_tls_session_cache_timeout
    +syntax keyword pfmainConf smtpd_tls_wrappermode
    +syntax keyword pfmainConf smtpd_upstream_proxy_protocol
    +syntax keyword pfmainConf smtpd_upstream_proxy_timeout
    +syntax keyword pfmainConf smtpd_use_tls
    +syntax keyword pfmainConf smtputf8_autodetect_classes
    +syntax keyword pfmainConf smtputf8_enable
    +syntax keyword pfmainConf soft_bounce
    +syntax keyword pfmainConf stale_lock_time
    +syntax keyword pfmainConf stress
    +syntax keyword pfmainConf strict_7bit_headers
    +syntax keyword pfmainConf strict_8bitmime
    +syntax keyword pfmainConf strict_8bitmime_body
    +syntax keyword pfmainConf strict_mailbox_ownership
    +syntax keyword pfmainConf strict_mime_encoding_domain
    +syntax keyword pfmainConf strict_rfc821_envelopes
    +syntax keyword pfmainConf strict_smtputf8
    +syntax keyword pfmainConf sun_mailtool_compatibility
    +syntax keyword pfmainConf swap_bangpath
    +syntax keyword pfmainConf syslog_facility
    +syntax keyword pfmainConf syslog_name
    +syntax keyword pfmainConf tcp_windowsize
    +syntax keyword pfmainConf tls_append_default_CA
    +syntax keyword pfmainConf tls_daemon_random_bytes
    +syntax keyword pfmainConf tls_dane_digest_agility
    +syntax keyword pfmainConf tls_dane_digests
    +syntax keyword pfmainConf tls_dane_trust_anchor_digest_enable
    +syntax keyword pfmainConf tls_disable_workarounds
    +syntax keyword pfmainConf tls_eecdh_strong_curve
    +syntax keyword pfmainConf tls_eecdh_ultra_curve
    +syntax keyword pfmainConf tls_export_cipherlist
    +syntax keyword pfmainConf tls_high_cipherlist
    +syntax keyword pfmainConf tls_legacy_public_key_fingerprints
    +syntax keyword pfmainConf tls_low_cipherlist
    +syntax keyword pfmainConf tls_medium_cipherlist
    +syntax keyword pfmainConf tls_null_cipherlist
    +syntax keyword pfmainConf tls_preempt_cipherlist
    +syntax keyword pfmainConf tls_random_bytes
    +syntax keyword pfmainConf tls_random_exchange_name
    +syntax keyword pfmainConf tls_random_prng_update_period
    +syntax keyword pfmainConf tls_random_reseed_period
    +syntax keyword pfmainConf tls_random_source
    +syntax keyword pfmainConf tls_session_ticket_cipher
    +syntax keyword pfmainConf tls_ssl_options
    +syntax keyword pfmainConf tls_wildcard_matches_multiple_labels
    +syntax keyword pfmainConf tlsmgr_service_name
    +syntax keyword pfmainConf tlsproxy_enforce_tls
    +syntax keyword pfmainConf tlsproxy_service_name
    +syntax keyword pfmainConf tlsproxy_tls_CAfile
    +syntax keyword pfmainConf tlsproxy_tls_CApath
    +syntax keyword pfmainConf tlsproxy_tls_always_issue_session_ids
    +syntax keyword pfmainConf tlsproxy_tls_ask_ccert
    +syntax keyword pfmainConf tlsproxy_tls_ccert_verifydepth
    +syntax keyword pfmainConf tlsproxy_tls_cert_file
    +syntax keyword pfmainConf tlsproxy_tls_ciphers
    +syntax keyword pfmainConf tlsproxy_tls_dcert_file
    +syntax keyword pfmainConf tlsproxy_tls_dh1024_param_file
    +syntax keyword pfmainConf tlsproxy_tls_dh512_param_file
    +syntax keyword pfmainConf tlsproxy_tls_dkey_file
    +syntax keyword pfmainConf tlsproxy_tls_eccert_file
    +syntax keyword pfmainConf tlsproxy_tls_eckey_file
    +syntax keyword pfmainConf tlsproxy_tls_eecdh_grade
    +syntax keyword pfmainConf tlsproxy_tls_exclude_ciphers
    +syntax keyword pfmainConf tlsproxy_tls_fingerprint_digest
    +syntax keyword pfmainConf tlsproxy_tls_key_file
    +syntax keyword pfmainConf tlsproxy_tls_loglevel
    +syntax keyword pfmainConf tlsproxy_tls_mandatory_ciphers
    +syntax keyword pfmainConf tlsproxy_tls_mandatory_exclude_ciphers
    +syntax keyword pfmainConf tlsproxy_tls_mandatory_protocols
    +syntax keyword pfmainConf tlsproxy_tls_protocols
    +syntax keyword pfmainConf tlsproxy_tls_req_ccert
    +syntax keyword pfmainConf tlsproxy_tls_security_level
    +syntax keyword pfmainConf tlsproxy_tls_session_cache_timeout
    +syntax keyword pfmainConf tlsproxy_use_tls
    +syntax keyword pfmainConf tlsproxy_watchdog_timeout
    +syntax keyword pfmainConf trace_service_name
    +syntax keyword pfmainConf transport_delivery_slot_cost
    +syntax keyword pfmainConf transport_delivery_slot_discount
    +syntax keyword pfmainConf transport_delivery_slot_loan
    +syntax keyword pfmainConf transport_destination_concurrency_failed_cohort_limit
    +syntax keyword pfmainConf transport_destination_concurrency_limit
    +syntax keyword pfmainConf transport_destination_concurrency_negative_feedback
    +syntax keyword pfmainConf transport_destination_concurrency_positive_feedback
    +syntax keyword pfmainConf transport_destination_rate_delay
    +syntax keyword pfmainConf transport_destination_recipient_limit
    +syntax keyword pfmainConf transport_extra_recipient_limit
    +syntax keyword pfmainConf transport_initial_destination_concurrency
    +syntax keyword pfmainConf transport_maps
    +syntax keyword pfmainConf transport_minimum_delivery_slots
    +syntax keyword pfmainConf transport_recipient_limit
    +syntax keyword pfmainConf transport_recipient_refill_delay
    +syntax keyword pfmainConf transport_recipient_refill_limit
    +syntax keyword pfmainConf transport_retry_time
    +syntax keyword pfmainConf transport_time_limit
    +syntax keyword pfmainConf trigger_timeout
    +syntax keyword pfmainConf undisclosed_recipients_header
    +syntax keyword pfmainConf unknown_address_reject_code
    +syntax keyword pfmainConf unknown_address_tempfail_action
    +syntax keyword pfmainConf unknown_client_reject_code
    +syntax keyword pfmainConf unknown_helo_hostname_tempfail_action
    +syntax keyword pfmainConf unknown_hostname_reject_code
    +syntax keyword pfmainConf unknown_local_recipient_reject_code
    +syntax keyword pfmainConf unknown_relay_recipient_reject_code
    +syntax keyword pfmainConf unknown_virtual_alias_reject_code
    +syntax keyword pfmainConf unknown_virtual_mailbox_reject_code
    +syntax keyword pfmainConf unverified_recipient_defer_code
    +syntax keyword pfmainConf unverified_recipient_reject_code
    +syntax keyword pfmainConf unverified_recipient_reject_reason
    +syntax keyword pfmainConf unverified_recipient_tempfail_action
    +syntax keyword pfmainConf unverified_sender_defer_code
    +syntax keyword pfmainConf unverified_sender_reject_code
    +syntax keyword pfmainConf unverified_sender_reject_reason
    +syntax keyword pfmainConf unverified_sender_tempfail_action
    +syntax keyword pfmainConf verp_delimiter_filter
    +syntax keyword pfmainConf virtual_alias_address_length_limit
    +syntax keyword pfmainConf virtual_alias_domains
    +syntax keyword pfmainConf virtual_alias_expansion_limit
    +syntax keyword pfmainConf virtual_alias_maps
    +syntax keyword pfmainConf virtual_alias_recursion_limit
    +syntax keyword pfmainConf virtual_delivery_status_filter
    +syntax keyword pfmainConf virtual_destination_concurrency_limit
    +syntax keyword pfmainConf virtual_destination_recipient_limit
    +syntax keyword pfmainConf virtual_gid_maps
    +syntax keyword pfmainConf virtual_mailbox_base
    +syntax keyword pfmainConf virtual_mailbox_domains
    +syntax keyword pfmainConf virtual_mailbox_limit
    +syntax keyword pfmainConf virtual_mailbox_lock
    +syntax keyword pfmainConf virtual_mailbox_maps
    +syntax keyword pfmainConf virtual_maps
    +syntax keyword pfmainConf virtual_minimum_uid
    +syntax keyword pfmainConf virtual_transport
    +syntax keyword pfmainConf virtual_uid_maps
    +syntax match pfmainRef "$\<2bounce_notice_recipient\>"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +syntax match pfmainRef "$\"
    +
    +syntax keyword pfmainWord accept
    +syntax keyword pfmainWord all
    +syntax keyword pfmainWord always
    +syntax keyword pfmainWord check_address_map
    +syntax keyword pfmainWord check_ccert_access
    +syntax keyword pfmainWord check_client_a_access
    +syntax keyword pfmainWord check_client_access
    +syntax keyword pfmainWord check_client_mx_access
    +syntax keyword pfmainWord check_client_ns_access
    +syntax keyword pfmainWord check_etrn_access
    +syntax keyword pfmainWord check_helo_a_access
    +syntax keyword pfmainWord check_helo_access
    +syntax keyword pfmainWord check_helo_mx_access
    +syntax keyword pfmainWord check_helo_ns_access
    +syntax keyword pfmainWord check_policy_service
    +syntax keyword pfmainWord check_recipient_a_access
    +syntax keyword pfmainWord check_recipient_access
    +syntax keyword pfmainWord check_recipient_maps
    +syntax keyword pfmainWord check_recipient_mx_access
    +syntax keyword pfmainWord check_recipient_ns_access
    +syntax keyword pfmainWord check_relay_domains
    +syntax keyword pfmainWord check_reverse_client_hostname_a_access
    +syntax keyword pfmainWord check_reverse_client_hostname_access
    +syntax keyword pfmainWord check_reverse_client_hostname_mx_access
    +syntax keyword pfmainWord check_reverse_client_hostname_ns_access
    +syntax keyword pfmainWord check_sasl_access
    +syntax keyword pfmainWord check_sender_a_access
    +syntax keyword pfmainWord check_sender_access
    +syntax keyword pfmainWord check_sender_mx_access
    +syntax keyword pfmainWord check_sender_ns_access
    +syntax keyword pfmainWord class
    +syntax keyword pfmainWord client_address
    +syntax keyword pfmainWord client_port
    +syntax keyword pfmainWord dane
    +syntax keyword pfmainWord dane-only
    +syntax keyword pfmainWord defer
    +syntax keyword pfmainWord defer_if_permit
    +syntax keyword pfmainWord defer_if_reject
    +syntax keyword pfmainWord defer_unauth_destination
    +syntax keyword pfmainWord disabled
    +syntax keyword pfmainWord dns
    +syntax keyword pfmainWord dnssec
    +syntax keyword pfmainWord drop
    +syntax keyword pfmainWord dunno
    +syntax keyword pfmainWord enabled
    +syntax keyword pfmainWord encrypt
    +syntax keyword pfmainWord enforce
    +syntax keyword pfmainWord envelope_recipient
    +syntax keyword pfmainWord envelope_sender
    +syntax keyword pfmainWord export
    +syntax keyword pfmainWord fingerprint
    +syntax keyword pfmainWord header_recipient
    +syntax keyword pfmainWord header_sender
    +syntax keyword pfmainWord high
    +syntax keyword pfmainWord host
    +syntax keyword pfmainWord ignore
    +syntax keyword pfmainWord ipv4
    +syntax keyword pfmainWord ipv6
    +syntax keyword pfmainWord localtime
    +syntax keyword pfmainWord low
    +syntax keyword pfmainWord may
    +syntax keyword pfmainWord maybe
    +syntax keyword pfmainWord medium
    +syntax keyword pfmainWord native
    +syntax keyword pfmainWord never
    +syntax keyword pfmainWord no_address_mappings
    +syntax keyword pfmainWord no_header_body_checks
    +syntax keyword pfmainWord no_header_reply
    +syntax keyword pfmainWord no_milters
    +syntax keyword pfmainWord no_unknown_recipient_checks
    +syntax keyword pfmainWord none
    +syntax keyword pfmainWord null
    +syntax keyword pfmainWord off
    +syntax keyword pfmainWord on
    +syntax keyword pfmainWord permit
    +syntax keyword pfmainWord permit_auth_destination
    +syntax keyword pfmainWord permit_dnswl_client
    +syntax keyword pfmainWord permit_inet_interfaces
    +syntax keyword pfmainWord permit_mx_backup
    +syntax keyword pfmainWord permit_mynetworks
    +syntax keyword pfmainWord permit_naked_ip_address
    +syntax keyword pfmainWord permit_rhswl_client
    +syntax keyword pfmainWord permit_sasl_authenticated
    +syntax keyword pfmainWord permit_tls_all_clientcerts
    +syntax keyword pfmainWord permit_tls_clientcerts
    +syntax keyword pfmainWord quarantine
    +syntax keyword pfmainWord reject
    +syntax keyword pfmainWord reject_authenticated_sender_login_mismatch
    +syntax keyword pfmainWord reject_invalid_helo_hostname
    +syntax keyword pfmainWord reject_invalid_hostname
    +syntax keyword pfmainWord reject_known_sender_login_mismatch
    +syntax keyword pfmainWord reject_maps_rbl
    +syntax keyword pfmainWord reject_multi_recipient_bounce
    +syntax keyword pfmainWord reject_non_fqdn_helo_hostname
    +syntax keyword pfmainWord reject_non_fqdn_hostname
    +syntax keyword pfmainWord reject_non_fqdn_recipient
    +syntax keyword pfmainWord reject_non_fqdn_sender
    +syntax keyword pfmainWord reject_plaintext_session
    +syntax keyword pfmainWord reject_rbl
    +syntax keyword pfmainWord reject_rbl_client
    +syntax keyword pfmainWord reject_rhsbl_client
    +syntax keyword pfmainWord reject_rhsbl_helo
    +syntax keyword pfmainWord reject_rhsbl_recipient
    +syntax keyword pfmainWord reject_rhsbl_reverse_client
    +syntax keyword pfmainWord reject_rhsbl_sender
    +syntax keyword pfmainWord reject_sender_login_mismatch
    +syntax keyword pfmainWord reject_unauth_destination
    +syntax keyword pfmainWord reject_unauth_pipelining
    +syntax keyword pfmainWord reject_unauthenticated_sender_login_mismatch
    +syntax keyword pfmainWord reject_unknown_address
    +syntax keyword pfmainWord reject_unknown_client
    +syntax keyword pfmainWord reject_unknown_client_hostname
    +syntax keyword pfmainWord reject_unknown_forward_client_hostname
    +syntax keyword pfmainWord reject_unknown_helo_hostname
    +syntax keyword pfmainWord reject_unknown_hostname
    +syntax keyword pfmainWord reject_unknown_recipient_domain
    +syntax keyword pfmainWord reject_unknown_reverse_client_hostname
    +syntax keyword pfmainWord reject_unknown_sender_domain
    +syntax keyword pfmainWord reject_unlisted_recipient
    +syntax keyword pfmainWord reject_unlisted_sender
    +syntax keyword pfmainWord reject_unverified_recipient
    +syntax keyword pfmainWord reject_unverified_sender
    +syntax keyword pfmainWord secure
    +syntax keyword pfmainWord server_name
    +syntax keyword pfmainWord sleep
    +syntax keyword pfmainWord smtpd_access_maps
    +syntax keyword pfmainWord speed_adjust
    +syntax keyword pfmainWord strong
    +syntax keyword pfmainWord subnet
    +syntax keyword pfmainWord tempfail
    +syntax keyword pfmainWord ultra
    +syntax keyword pfmainWord warn_if_reject
    +syntax keyword pfmainWord CRYPTOPRO_TLSEXT_BUG
    +syntax keyword pfmainWord DONT_INSERT_EMPTY_FRAGMENTS
    +syntax keyword pfmainWord LEGACY_SERVER_CONNECT
    +syntax keyword pfmainWord MICROSOFT_BIG_SSLV3_BUFFER
    +syntax keyword pfmainWord MICROSOFT_SESS_ID_BUG
    +syntax keyword pfmainWord MSIE_SSLV2_RSA_PADDING
    +syntax keyword pfmainWord NETSCAPE_CHALLENGE_BUG
    +syntax keyword pfmainWord NETSCAPE_REUSE_CIPHER_CHANGE_BUG
    +syntax keyword pfmainWord SSLEAY_080_CLIENT_DH_BUG
    +syntax keyword pfmainWord SSLREF2_REUSE_CERT_TYPE_BUG
    +syntax keyword pfmainWord TLS_BLOCK_PADDING_BUG
    +syntax keyword pfmainWord TLS_D5_BUG
    +syntax keyword pfmainWord TLS_ROLLBACK_BUG
    +
    +syntax keyword pfmainDict	btree cidr environ hash nis pcre proxy regexp sdbm static tcp unix
    +syntax keyword pfmainQueueDir	incoming active deferred corrupt hold
    +syntax keyword pfmainTransport	smtp lmtp unix local relay uucp virtual
    +syntax keyword pfmainLock	fcntl flock dotlock
    +syntax keyword pfmainAnswer	yes no
    +
    +syntax match pfmainComment	"#.*$"
    +syntax match pfmainNumber	"\<\d\+\>"
    +syntax match pfmainTime		"\<\d\+[hmsd]\>"
    +syntax match pfmainIP		"\<\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\>"
    +syntax match pfmainVariable	"\$\w\+" contains=pfmainRef
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\<2bounce\>"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +syntax match pfmainSpecial	"\"
    +
    +
    +hi def link pfmainConf	Statement
    +hi def link pfmainRef	PreProc
    +hi def link pfmainWord	identifier
    +
    +hi def link pfmainDict	Type
    +hi def link pfmainQueueDir	Constant
    +hi def link pfmainTransport	Constant
    +hi def link pfmainLock	Constant
    +hi def link pfmainAnswer	Constant
    +
    +hi def link pfmainComment	Comment
    +hi def link pfmainNumber	Number
    +hi def link pfmainTime	Number
    +hi def link pfmainIP		Number
    +hi def link pfmainVariable	Error
    +hi def link pfmainSpecial	Special
    +
    +
    +let b:current_syntax = "pfmain"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/php.vim b/git/usr/share/vim/vim92/syntax/php.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..80662d675092f4fc0a59a2e83b737e3ef333ce51
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/php.vim
    @@ -0,0 +1,978 @@
    +" Vim syntax file
    +" Language: php PHP 3/4/5/7/8
    +" Maintainer: Tyson Andre 
    +" Last Change: Sep 18, 2021
    +" URL: https://github.com/TysonAndre/php-vim-syntax
    +" Former Maintainers: 
    +"         Jason Woofenden 
    +"         Peter Hodge 
    +"         Debian VIM Maintainers 
    +"
    +" Note: If you are using a colour terminal with dark background, you will
    +"       probably find the 'elflord' colorscheme is much better for PHP's syntax
    +"       than the default colourscheme, because elflord's colours will better
    +"       highlight the break-points (Statements) in your code.
    +"
    +" Note: This embeds a modified copy of the html.vim with (mostly) different symbols,
    +" in order to implement php_htmlInStrings=2 can work as expected and correctly parse
    +" `
    +"   Previous Maintainer Claudio Fleiner 
    +"   Repository          https://notabug.org/jorgesumle/vim-html-syntax
    +"   Last Change         2021 Mar 02
    +"			Included patch #7900 to fix comments
    +"			Included patch #7916 to fix a few more things
    +"
    +" Options:
    +"   Set to anything to enable:
    +"     php_sql_query           SQL syntax highlighting inside strings
    +"     php_htmlInStrings       HTML syntax highlighting inside strings
    +" 
    +"                             By setting this to 2, this will use a local copy of
    +"                             HTML syntax highlighting instead of the official
    +"                             HTML syntax highlighting, and properly highlight
    +"                             ` as php
    +"   Set to a specific value:
    +"     php_folding = 1         fold classes and functions
    +"     php_folding = 2         fold all { } regions
    +"     php_sync_method = x  where x is an integer:
    +"                       -1  sync by search ( default )
    +"                       >0  sync at least x lines backwards
    +"                       0   sync from start
    +"   Set to 0 to _disable_:      (Added by Peter Hodge On June 9, 2006)
    +"     php_special_functions = 0      highlight functions with abnormal behaviour
    +"     php_alt_comparisons = 0        comparison operators in an alternate colour
    +"     php_alt_assignByReference = 0  '= &' in an alternate colour
    +"
    +"
    +" Note:
    +" Setting php_folding=1 will match a closing } by comparing the indent
    +" before the class or function keyword with the indent of a matching }.
    +" Setting php_folding=2 will match all of pairs of {,} ( see known
    +" bugs ii )
    +
    +" Known Bugs:
    +"  - setting  php_parent_error_close  on  and  php_parent_error_open  off
    +"    has these two leaks:
    +"     i) A closing ) or ] inside a string match to the last open ( or [
    +"        before the string, when the the closing ) or ] is on the same line
    +"        where the string started. In this case a following ) or ] after
    +"        the string would be highlighted as an error, what is incorrect.
    +"    ii) Same problem if you are setting php_folding = 2 with a closing
    +"        } inside an string on the first line of this string.
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +if !exists("main_syntax")
    +  let main_syntax = 'php'
    +endif
    +
    +" Start of copy of html for embedding in strings with  {{{
    +" This is a clone of https://notabug.org/jorgesumle/vim-html-syntax
    +" from 2021 Mar 02 with changed symbols and modifications to rules. See the Note in the file header.
    +"
    +" The default behavior of php_htmlInStrings causes a bug
    +" when you're working with code that contains the string literal `'&]"
    +
    +  " tags
    +  syn region  phpInnerHtmlString   contained start=+"+ end=+"+ contains=phpInnerHtmlSpecialChar,javaScriptExpression,@phpInnerHtmlPreproc
    +  syn region  phpInnerHtmlString   contained start=+'+ end=+'+ contains=phpInnerHtmlSpecialChar,javaScriptExpression,@phpInnerHtmlPreproc
    +  syn match   phpInnerHtmlValue    contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1   contains=javaScriptExpression,@phpInnerHtmlPreproc
    +  syn region  phpInnerHtmlEndTag   contained start=++ contains=phpInnerHtmlTagN,phpInnerHtmlTagError
    +  syn region  phpInnerHtmlTag      contained start=+<[^/]+   end=+>+ fold contains=phpInnerHtmlTagN,phpInnerHtmlString,htmlArg,phpInnerHtmlValue,phpInnerHtmlTagError,phpInnerHtmlEvent,phpInnerHtmlCssDefinition,@phpInnerHtmlPreproc,@phpInnerHtmlArgCluster
    +  syn match   phpInnerHtmlTagN     contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@phpInnerHtmlTagNameCluster
    +  syn match   phpInnerHtmlTagN     contained +]<"ms=s+1
    +
    +
    +  " special characters
    +  syn match phpInnerHtmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};"
    +
    +  " Comments (the real ones or the old netscape ones)
    +  if exists("html_wrong_comments")
    +    syn region phpInnerHtmlComment        start=+
    +    " Idem 8.2.4.43,44: Except  and  are parser errors
    +    " Idem 8.2.4.52: dash-dash-bang (--!>) is error ignored by parser, also closes comment
    +    syn region phpInnerHtmlComment matchgroup=phpInnerHtmlComment start=+ is all right
    +    syn match phpInnerHtmlCommentNested contained "\@!"
    +    syn match phpInnerHtmlCommentError  contained "[^>+ keepend
    +
    +  " server-parsed commands
    +  syn region phpInnerHtmlPreProc start=++ contains=phpInnerHtmlPreStmt,phpInnerHtmlPreError,phpInnerHtmlPreAttr
    +  syn match phpInnerHtmlPreStmt contained ""
    +  syn match   prologQuestion          "?-.*\."  contains=prologNumber
    +
    +
    +endif
    +
    +syn sync maxlines=50
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +" The default highlighting.
    +hi def link prologComment          Comment
    +hi def link prologCComment         Comment
    +hi def link prologCharCode         Special
    +
    +if exists ("prolog_highlighting_clean")
    +
    +hi def link prologKeyword        Statement
    +hi def link prologClauseHead     Statement
    +hi def link prologClause Normal
    +
    +else
    +
    +hi def link prologKeyword        Keyword
    +hi def link prologClauseHead     Constant
    +hi def link prologClause Normal
    +hi def link prologQuestion       PreProc
    +hi def link prologSpecialCharacter Special
    +hi def link prologNumber         Number
    +hi def link prologAsIs           Normal
    +hi def link prologCommentError   Error
    +hi def link prologAtom           String
    +hi def link prologString         String
    +hi def link prologOperator       Operator
    +
    +endif
    +
    +
    +let b:current_syntax = "prolog"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/promela.vim b/git/usr/share/vim/vim92/syntax/promela.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..add451456105217a529433a37b6968cbd92092b8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/promela.vim
    @@ -0,0 +1,53 @@
    +" Vim syntax file
    +" Language:			ProMeLa
    +" Maintainer:		Maurizio Tranchero  - 
    +" First Release:	Mon Oct 16 08:49:46 CEST 2006
    +" Last Change:		Thu Aug 7 21:22:48 CEST 2008
    +" Version:			0.5
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" case is significant
    +" syn case ignore
    +" ProMeLa Keywords
    +syn keyword promelaStatement	proctype if else while chan do od fi break goto unless
    +syn keyword promelaStatement	active assert label atomic
    +syn keyword promelaFunctions	skip timeout run
    +syn keyword promelaTodo         contained TODO
    +" ProMeLa Types
    +syn keyword promelaType			bit bool byte short int
    +" Operators and special characters
    +syn match promelaOperator	"!"
    +syn match promelaOperator	"?"
    +syn match promelaOperator	"->"
    +syn match promelaOperator	"="
    +syn match promelaOperator	"+"
    +syn match promelaOperator	"*"
    +syn match promelaOperator	"/"
    +syn match promelaOperator	"-"
    +syn match promelaOperator	"<"
    +syn match promelaOperator	">"
    +syn match promelaOperator	"<="
    +syn match promelaOperator	">="
    +syn match promelaSpecial	"\["
    +syn match promelaSpecial	"\]"
    +syn match promelaSpecial	";"
    +syn match promelaSpecial	"::"
    +" ProMeLa Comments
    +syn region promelaComment start="/\*" end="\*/" contains=promelaTodo,@Spell
    +syn match  promelaComment "//.*" contains=promelaTodo,@Spell
    +
    +" Class Linking
    +hi def link promelaStatement    Statement
    +hi def link promelaType	        Type
    +hi def link promelaComment      Comment
    +hi def link promelaOperator	    Type
    +hi def link promelaSpecial      Special
    +hi def link promelaFunctions    Special
    +hi def link promelaString		String
    +hi def link promelaTodo	        Todo
    +
    +let b:current_syntax = "promela"
    diff --git a/git/usr/share/vim/vim92/syntax/proto.vim b/git/usr/share/vim/vim92/syntax/proto.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..0d2d2f259ec4c6d86764fd04b61be4c740109c3e
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/proto.vim
    @@ -0,0 +1,83 @@
    +" Protocol Buffers - Google's data interchange format
    +" Copyright 2008 Google Inc.  All rights reserved.
    +" https://developers.google.com/protocol-buffers/
    +"
    +" Redistribution and use in source and binary forms, with or without
    +" modification, are permitted provided that the following conditions are
    +" met:
    +"
    +"     * Redistributions of source code must retain the above copyright
    +" notice, this list of conditions and the following disclaimer.
    +"     * Redistributions in binary form must reproduce the above
    +" copyright notice, this list of conditions and the following disclaimer
    +" in the documentation and/or other materials provided with the
    +" distribution.
    +"     * Neither the name of Google Inc. nor the names of its
    +" contributors may be used to endorse or promote products derived from
    +" this software without specific prior written permission.
    +"
    +" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    +" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    +" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    +" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    +" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    +" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    +" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    +" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    +" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    +" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    +" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    +
    +" This is the Vim syntax file for Google Protocol Buffers as found at
    +" https://github.com/protocolbuffers/protobuf
    +" Last update: 2020 Oct 29
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case match
    +
    +syn keyword protoTodo       contained TODO FIXME XXX
    +syn cluster protoCommentGrp contains=protoTodo
    +
    +syn keyword protoSyntax     syntax import option
    +syn keyword protoStructure  package message group oneof
    +syn keyword protoRepeat     optional required repeated
    +syn keyword protoDefault    default
    +syn keyword protoExtend     extend extensions to max reserved
    +syn keyword protoRPC        service rpc returns
    +
    +syn keyword protoType      int32 int64 uint32 uint64 sint32 sint64
    +syn keyword protoType      fixed32 fixed64 sfixed32 sfixed64
    +syn keyword protoType      float double bool string bytes
    +syn keyword protoTypedef   enum
    +syn keyword protoBool      true false
    +
    +syn match   protoInt     /-\?\<\d\+\>/
    +syn match   protoInt     /\<0[xX]\x+\>/
    +syn match   protoFloat   /\<-\?\d*\(\.\d*\)\?/
    +syn region  protoComment start="\/\*" end="\*\/" contains=@pbCommentGrp,@Spell
    +syn region  protoComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp,@Spell
    +syn region  protoString  start=/"/ skip=/\\./ end=/"/ contains=@Spell
    +syn region  protoString  start=/'/ skip=/\\./ end=/'/ contains=@Spell
    +
    +hi def link protoTodo         Todo
    +
    +hi def link protoSyntax       Include
    +hi def link protoStructure    Structure
    +hi def link protoRepeat       Repeat
    +hi def link protoDefault      Keyword
    +hi def link protoExtend       Keyword
    +hi def link protoRPC          Keyword
    +hi def link protoType         Type
    +hi def link protoTypedef      Typedef
    +hi def link protoBool         Boolean
    +
    +hi def link protoInt          Number
    +hi def link protoFloat        Float
    +hi def link protoComment      Comment
    +hi def link protoString       String
    +
    +let b:current_syntax = "proto"
    diff --git a/git/usr/share/vim/vim92/syntax/protocols.vim b/git/usr/share/vim/vim92/syntax/protocols.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..f31ca5a4b7090d72b1f337715cbfa5ff22eafb87
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/protocols.vim
    @@ -0,0 +1,44 @@
    +" Vim syntax file
    +" Language:             protocols(5) - Internet protocols definition file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2006-04-19
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match   protocolsBegin    display '^'
    +                              \ nextgroup=protocolsName,protocolsComment
    +
    +syn match   protocolsName     contained display '[[:graph:]]\+'
    +                              \ nextgroup=protocolsPort skipwhite
    +
    +syn match   protocolsPort     contained display '\d\+'
    +                              \ nextgroup=protocolsAliases,protocolsComment
    +                              \ skipwhite
    +
    +syn match   protocolsAliases  contained display '\S\+'
    +                              \ nextgroup=protocolsAliases,protocolsComment
    +                              \ skipwhite
    +
    +syn keyword protocolsTodo     contained TODO FIXME XXX NOTE
    +
    +syn region  protocolsComment  display oneline start='#' end='$'
    +                              \ contains=protocolsTodo,@Spell
    +
    +hi def link protocolsTodo      Todo
    +hi def link protocolsComment   Comment
    +hi def link protocolsName      Identifier
    +hi def link protocolsPort      Number
    +hi def link protocolsPPDiv     Delimiter
    +hi def link protocolsPPDivDepr Error
    +hi def link protocolsProtocol  Type
    +hi def link protocolsAliases   Macro
    +
    +let b:current_syntax = "protocols"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/prql.vim b/git/usr/share/vim/vim92/syntax/prql.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2a224cdf023dbc4126423f4dbdedb449d1bf58e3
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/prql.vim
    @@ -0,0 +1,178 @@
    +" Vim syntax file
    +" Language:     PRQL
    +" Maintainer:   vanillajonathan
    +" Last Change:  2025-03-07
    +"
    +" https://prql-lang.org/
    +" https://github.com/PRQL/prql
    +
    +" quit when a syntax file was already loaded.
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" We need nocompatible mode in order to continue lines with backslashes.
    +" Original setting will be restored.
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn keyword prqlBoolean      false true
    +syn keyword prqlSelf         this that
    +syn keyword prqlStatement    null
    +syn keyword prqlConditional  case
    +syn keyword prqlStatement    prql let type alias in
    +syn keyword prqlRepeat       loop
    +syn match   prqlOperator     display "\%(+\|-\|/\|*\|=\|\^\|&\||\|!\|>\|<\|%\|\~\)=\?"
    +syn match   prqlOperator     display "&&\|||"
    +syn keyword prqlInclude      module
    +
    +" Annotations
    +syn match   prqlAnnotation  "@" display contained
    +syn match   prqlAnnotationName  "@\s*{\h\%(\w\|=\)*}" display contains=prqlAnnotation
    +
    +syn match   prqlFunction  "\h\w*" display contained
    +
    +syn match   prqlComment  "#.*$" contains=prqlTodo,@Spell
    +syn keyword prqlTodo    FIXME NOTE TODO XXX contained
    +
    +" Triple-quoted strings can contain doctests.
    +syn region  prqlString matchgroup=prqlQuotes
    +      \ start=+\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=prqlEscape,@Spell
    +syn region  prqlString matchgroup=prqlTripleQuotes
    +      \ start=+\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=prqlEscape,prqlSpaceError,prqlDoctest,@Spell
    +syn region  prqlFString matchgroup=prqlQuotes
    +      \ start=+[f]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=prqlEscape,@Spell
    +syn region  prqlFString matchgroup=prqlTripleQuotes
    +      \ start=+f\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=prqlEscape,prqlSpaceError,prqlDoctest,@Spell
    +syn region  prqlRString matchgroup=prqlQuotes
    +      \ start=+r\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=@Spell
    +syn region  prqlRString matchgroup=prqlTripleQuotes
    +      \ start=+r\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=prqlSpaceError,prqlDoctest,@Spell
    +syn region  prqlSString matchgroup=prqlQuotes
    +      \ start=+s\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=@Spell
    +syn region  prqlSString matchgroup=prqlTripleQuotes
    +      \ start=+s\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=prqlSpaceError,prqlDoctest,@Spell
    +
    +syn match   prqlEscape  +\\[bfnrt'"\\]+ contained
    +syn match   prqlEscape  "\\\o\{1,3}" contained
    +syn match   prqlEscape  "\\x\x\{2}" contained
    +syn match   prqlEscape  "\%(\\u\x\{1,6}\)" contained
    +syn match   prqlEscape  "\\$"
    +
    +" It is very important to understand all details before changing the
    +" regular expressions below or their order.
    +" The word boundaries are *not* the floating-point number boundaries
    +" because of a possible leading or trailing decimal point.
    +" The expressions below ensure that all valid number literals are
    +" highlighted, and invalid number literals are not.  For example,
    +"
    +" - a decimal point in '4.' at the end of a line is highlighted,
    +" - a second dot in 1.0.0 is not highlighted,
    +" - 08 is not highlighted,
    +" - 08e0 or 08j are highlighted,
    +"
    +if !exists("prql_no_number_highlight")
    +  " numbers (including complex)
    +  syn match   prqlNumber  "\<0[oO]\%(_\=\o\)\+\>"
    +  syn match   prqlNumber  "\<0[xX]\%(_\=\x\)\+\>"
    +  syn match   prqlNumber  "\<0[bB]\%(_\=[01]\)\+\>"
    +  syn match   prqlNumber  "\<\%([1-9]\%(_\=\d\)*\|0\+\%(_\=0\)*\)\>"
    +  syn match   prqlNumber  "\<\d\%(_\=\d\)*[jJ]\>"
    +  syn match   prqlNumber  "\<\d\%(_\=\d\)*[eE][+-]\=\d\%(_\=\d\)*[jJ]\=\>"
    +  syn match   prqlNumber
    +        \ "\<\d\%(_\=\d\)*\.\%([eE][+-]\=\d\%(_\=\d\)*\)\=[jJ]\=\%(\W\|$\)\@="
    +  syn match   prqlNumber
    +        \ "\%(^\|\W\)\zs\%(\d\%(_\=\d\)*\)\=\.\d\%(_\=\d\)*\%([eE][+-]\=\d\%(_\=\d\)*\)\=[jJ]\=\>"
    +endif
    +
    +" https://prql-lang.org/book/reference/stdlib/transforms/
    +"
    +" PRQL built-in functions are in alphabetical order.
    +"
    +
    +" Built-in functions
    +syn keyword prqlBuiltin  aggregate derive filter from group join select sort take window
    +
    +" Built-in types
    +syn keyword prqlType     bool float int int8 int16 int32 int64 int128 text date time timestamp
    +
    +" avoid highlighting attributes as builtins
    +syn match   prqlAttribute  /\.\h\w*/hs=s+1
    +  \ contains=ALLBUT,prqlBuiltin,prqlFunction
    +  \ transparent
    +
    +if exists("prql_space_error_highlight")
    +  " trailing whitespace
    +  syn match   prqlSpaceError  display excludenl "\s\+$"
    +  " mixed tabs and spaces
    +  syn match   prqlSpaceError  display " \+\t"
    +  syn match   prqlSpaceError  display "\t\+ "
    +endif
    +
    +" Do not spell doctests inside strings.
    +" Notice that the end of a string, either ''', or """, will end the contained
    +" doctest too.  Thus, we do *not* need to have it as an end pattern.
    +if !exists("prql_no_doctest_highlight")
    +  if !exists("prql_no_doctest_code_highlight")
    +    syn region prqlDoctest
    +    \ start="^\s*>>>\s" end="^\s*$"
    +    \ contained contains=ALLBUT,prqlDoctest,prqlFunction,@Spell
    +    syn region prqlDoctestValue
    +    \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$"
    +    \ contained
    +  else
    +    syn region prqlDoctest
    +    \ start="^\s*>>>" end="^\s*$"
    +    \ contained contains=@NoSpell
    +  endif
    +endif
    +
    +" The default highlight links.  Can be overridden later.
    +hi def link prqlBoolean         Boolean
    +hi def link prqlStatement       Statement
    +hi def link prqlType            Type
    +hi def link prqlConditional     Conditional
    +hi def link prqlRepeat          Repeat
    +hi def link prqlOperator        Operator
    +hi def link prqlInclude         Include
    +hi def link prqlAnnotation      Define
    +hi def link prqlAnnotationName  Function
    +hi def link prqlFunction        Function
    +hi def link prqlComment         Comment
    +hi def link prqlTodo            Todo
    +hi def link prqlSelf            Constant
    +hi def link prqlString          String
    +hi def link prqlFString         String
    +hi def link prqlRString         String
    +hi def link prqlSString         String
    +hi def link prqlQuotes          String
    +hi def link prqlTripleQuotes    prqlQuotes
    +hi def link prqlEscape          Special
    +if !exists("prql_no_number_highlight")
    +  hi def link prqlNumber    Number
    +endif
    +if !exists("prql_no_builtin_highlight")
    +  hi def link prqlBuiltin    Function
    +endif
    +if exists("prql_space_error_highlight")
    +  hi def link prqlSpaceError    Error
    +endif
    +if !exists("prql_no_doctest_highlight")
    +  hi def link prqlDoctest    Special
    +  hi def link prqlDoctestValue  Define
    +endif
    +
    +let b:current_syntax = "prql"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim:set sw=2 sts=2 ts=8 noet:
    diff --git a/git/usr/share/vim/vim92/syntax/ps1.vim b/git/usr/share/vim/vim92/syntax/ps1.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..e8f6b2f8eda9ceae660f485d47f919776ac4ade2
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ps1.vim
    @@ -0,0 +1,182 @@
    +" Vim syntax file
    +" Language:    Windows PowerShell
    +" URL:         https://github.com/PProvost/vim-ps1
    +" Last Change: 2020 Nov 24
    +"
    +" The following settings are available for tuning syntax highlighting:
    +"    let ps1_nofold_blocks = 1
    +"    let ps1_nofold_sig = 1
    +"    let ps1_nofold_region = 1
    +
    +if exists("b:current_syntax")
    +	finish
    +endif
    +
    +" Operators contain dashes
    +setlocal iskeyword+=-
    +
    +" PowerShell doesn't care about case
    +syn case ignore
    +
    +" Sync-ing method
    +syn sync minlines=100
    +
    +" Certain tokens can't appear at the top level of the document
    +syn cluster ps1NotTop contains=@ps1Comment,ps1CDocParam,ps1FunctionDeclaration
    +
    +" Comments and special comment words
    +syn keyword ps1CommentTodo TODO FIXME XXX TBD HACK NOTE contained
    +syn match ps1CDocParam /.*/ contained
    +syn match ps1CommentDoc /^\s*\zs\.\w\+\>/ nextgroup=ps1CDocParam contained
    +syn match ps1CommentDoc /#\s*\zs\.\w\+\>/ nextgroup=ps1CDocParam contained
    +syn match ps1Comment /#.*/ contains=ps1CommentTodo,ps1CommentDoc,@Spell
    +syn region ps1Comment start="<#" end="#>" contains=ps1CommentTodo,ps1CommentDoc,@Spell
    +
    +" Language keywords and elements
    +syn keyword ps1Conditional if else elseif switch default
    +syn keyword ps1Repeat while for do until break continue foreach in
    +syn match ps1Repeat /\/ nextgroup=ps1Block skipwhite
    +syn match ps1Keyword /\/ nextgroup=ps1Block skipwhite
    +syn match ps1Keyword /\/ nextgroup=ps1Block skipwhite
    +
    +syn keyword ps1Exception begin process end exit inlinescript parallel sequence
    +syn keyword ps1Keyword try catch finally throw
    +syn keyword ps1Keyword return filter in trap param data dynamicparam 
    +syn keyword ps1Constant $true $false $null
    +syn match ps1Constant +\$?+
    +syn match ps1Constant +\$_+
    +syn match ps1Constant +\$\$+
    +syn match ps1Constant +\$^+
    +
    +" Keywords reserved for future use
    +syn keyword ps1Keyword class define from using var
    +
    +" Function declarations
    +syn keyword ps1Keyword function nextgroup=ps1Function skipwhite
    +syn keyword ps1Keyword filter nextgroup=ps1Function skipwhite
    +syn keyword ps1Keyword workflow nextgroup=ps1Function skipwhite
    +syn keyword ps1Keyword configuration nextgroup=ps1Function skipwhite
    +syn keyword ps1Keyword class nextgroup=ps1Function skipwhite
    +syn keyword ps1Keyword enum nextgroup=ps1Function skipwhite
    +
    +" Function declarations and invocations
    +syn match ps1Cmdlet /\v(add|clear|close|copy|enter|exit|find|format|get|hide|join|lock|move|new|open|optimize|pop|push|redo|remove|rename|reset|search|select|Set|show|skip|split|step|switch|undo|unlock|watch)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(connect|disconnect|read|receive|send|write)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(backup|checkpoint|compare|compress|convert|convertfrom|convertto|dismount|edit|expand|export|group|import|initialize|limit|merge|mount|out|publish|restore|save|sync|unpublish|update)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(debug|measure|ping|repair|resolve|test|trace)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(approve|assert|build|complete|confirm|deny|deploy|disable|enable|install|invoke|register|request|restart|resume|start|stop|submit|suspend|uninstall|unregister|wait)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(block|grant|protect|revoke|unblock|unprotect)(-\w+)+/ contained
    +syn match ps1Cmdlet /\v(use)(-\w+)+/ contained
    +
    +" Other functions
    +syn match ps1Function /\w\+\(-\w\+\)\+/ contains=ps1Cmdlet
    +
    +" Type declarations
    +syn match ps1Type /\[[a-z_][a-z0-9_.,\[\]]\+\]/
    +
    +" Variable references
    +syn match ps1ScopeModifier /\(global:\|local:\|private:\|script:\)/ contained
    +syn match ps1Variable /\$\w\+\(:\w\+\)\?/ contains=ps1ScopeModifier
    +syn match ps1Variable /\${\w\+\(:\?[[:alnum:]_()]\+\)\?}/ contains=ps1ScopeModifier
    +
    +" Operators
    +syn keyword ps1Operator -eq -ne -ge -gt -lt -le -like -notlike -match -notmatch -replace -split -contains -notcontains
    +syn keyword ps1Operator -ieq -ine -ige -igt -ile -ilt -ilike -inotlike -imatch -inotmatch -ireplace -isplit -icontains -inotcontains
    +syn keyword ps1Operator -ceq -cne -cge -cgt -clt -cle -clike -cnotlike -cmatch -cnotmatch -creplace -csplit -ccontains -cnotcontains
    +syn keyword ps1Operator -in -notin
    +syn keyword ps1Operator -is -isnot -as -join
    +syn keyword ps1Operator -and -or -not -xor -band -bor -bnot -bxor
    +syn keyword ps1Operator -f
    +syn match ps1Operator /!/
    +syn match ps1Operator /=/
    +syn match ps1Operator /+=/
    +syn match ps1Operator /-=/
    +syn match ps1Operator /\*=/
    +syn match ps1Operator /\/=/
    +syn match ps1Operator /%=/
    +syn match ps1Operator /+/
    +syn match ps1Operator /-\(\s\|\d\|\.\|\$\|(\)\@=/
    +syn match ps1Operator /\*/
    +syn match ps1Operator /\//
    +syn match ps1Operator /|/
    +syn match ps1Operator /%/
    +syn match ps1Operator /&/
    +syn match ps1Operator /::/
    +syn match ps1Operator /,/
    +syn match ps1Operator /\(^\|\s\)\@<=\. \@=/
    +
    +" Regular Strings
    +" These aren't precisely correct and could use some work
    +syn region ps1String start=/"/ skip=/`"/ end=/"/ contains=@ps1StringSpecial,@Spell
    +syn region ps1String start=/'/ skip=/''/ end=/'/
    +
    +" Here-Strings
    +syn region ps1String start=/@"$/ end=/^"@/ contains=@ps1StringSpecial,@Spell
    +syn region ps1String start=/@'$/ end=/^'@/
    +
    +" Interpolation
    +syn match ps1Escape /`./
    +syn region ps1Interpolation matchgroup=ps1InterpolationDelimiter start="$(" end=")" contained contains=ALLBUT,@ps1NotTop
    +syn region ps1NestedParentheses start="(" skip="\\\\\|\\)" matchgroup=ps1Interpolation end=")" transparent contained
    +syn cluster ps1StringSpecial contains=ps1Escape,ps1Interpolation,ps1Variable,ps1Boolean,ps1Constant,ps1BuiltIn,@Spell
    +
    +" Numbers
    +syn match   ps1Number		"\(\<\|-\)\@<=\(0[xX]\x\+\|\d\+\)\([KMGTP][B]\)\=\(\>\|-\)\@="
    +syn match   ps1Number		"\(\(\<\|-\)\@<=\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[dD]\="
    +syn match   ps1Number		"\<\d\+[eE][-+]\=\d\+[dD]\=\>"
    +syn match   ps1Number		"\<\d\+\([eE][-+]\=\d\+\)\=[dD]\>"
    +
    +" Constants
    +syn match ps1Boolean "$\%(true\|false\)\>"
    +syn match ps1Constant /\$null\>/
    +syn match ps1BuiltIn "$^\|$?\|$_\|$\$"
    +syn match ps1BuiltIn "$\%(args\|error\|foreach\|home\|input\)\>"
    +syn match ps1BuiltIn "$\%(match\(es\)\?\|myinvocation\|host\|lastexitcode\)\>"
    +syn match ps1BuiltIn "$\%(ofs\|shellid\|stacktrace\)\>"
    +
    +" Named Switch
    +syn match ps1Label /\s-\w\+/
    +
    +" Folding blocks
    +if !exists('g:ps1_nofold_blocks')
    +	syn region ps1Block start=/{/ end=/}/ transparent fold
    +endif
    +
    +if !exists('g:ps1_nofold_region')
    +	syn region ps1Region start=/#region/ end=/#endregion/ transparent fold keepend extend
    +endif
    +
    +if !exists('g:ps1_nofold_sig')
    +	syn region ps1Signature start=/# SIG # Begin signature block/ end=/# SIG # End signature block/ transparent fold
    +endif
    +
    +" Setup default color highlighting
    +hi def link ps1Number Number
    +hi def link ps1Block Block
    +hi def link ps1Region Region
    +hi def link ps1Exception Exception
    +hi def link ps1Constant Constant
    +hi def link ps1String String
    +hi def link ps1Escape SpecialChar
    +hi def link ps1InterpolationDelimiter Delimiter
    +hi def link ps1Conditional Conditional
    +hi def link ps1Cmdlet Function
    +hi def link ps1Function Identifier
    +hi def link ps1Variable Identifier
    +hi def link ps1Boolean Boolean
    +hi def link ps1Constant Constant
    +hi def link ps1BuiltIn StorageClass
    +hi def link ps1Type Type
    +hi def link ps1ScopeModifier StorageClass
    +hi def link ps1Comment Comment
    +hi def link ps1CommentTodo Todo
    +hi def link ps1CommentDoc Tag
    +hi def link ps1CDocParam Identifier
    +hi def link ps1Operator Operator
    +hi def link ps1Repeat Repeat
    +hi def link ps1RepeatAndCmdlet Repeat
    +hi def link ps1Keyword Keyword
    +hi def link ps1KeywordAndCmdlet Keyword
    +hi def link ps1Label Label
    +
    +let b:current_syntax = "ps1"
    diff --git a/git/usr/share/vim/vim92/syntax/ps1xml.vim b/git/usr/share/vim/vim92/syntax/ps1xml.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..6ca9ed0d1b79efca12e6983ef337cdba8e4f89f6
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ps1xml.vim
    @@ -0,0 +1,51 @@
    +" Vim syntax file
    +" Language:    Windows PowerShell
    +" URL:         https://github.com/PProvost/vim-ps1
    +" Last Change: 2013 Jun 24
    +
    +if exists("b:current_syntax")
    +	finish
    +endif
    +
    +let s:ps1xml_cpo_save = &cpo
    +set cpo&vim
    +
    +doau syntax xml
    +unlet b:current_syntax
    +
    +syn case ignore
    +syn include @ps1xmlScriptBlock :p:h/ps1.vim
    +unlet b:current_syntax
    +
    +syn region ps1xmlScriptBlock
    +      \ matchgroup=xmlTag     start=""
    +      \ fold
    +      \ contains=@ps1xmlScriptBlock
    +      \ keepend
    +syn region ps1xmlScriptBlock
    +      \ matchgroup=xmlTag     start=""
    +      \ matchgroup=xmlEndTag  end=""
    +      \ fold
    +      \ contains=@ps1xmlScriptBlock
    +      \ keepend
    +syn region ps1xmlScriptBlock
    +      \ matchgroup=xmlTag     start=""
    +      \ matchgroup=xmlEndTag  end=""
    +      \ fold
    +      \ contains=@ps1xmlScriptBlock
    +      \ keepend
    +syn region ps1xmlScriptBlock
    +      \ matchgroup=xmlTag     start=""
    +      \ matchgroup=xmlEndTag  end=""
    +      \ fold
    +      \ contains=@ps1xmlScriptBlock
    +      \ keepend
    +
    +syn cluster xmlRegionHook add=ps1xmlScriptBlock
    +
    +let b:current_syntax = "ps1xml"
    +
    +let &cpo = s:ps1xml_cpo_save
    +unlet s:ps1xml_cpo_save
    +
    diff --git a/git/usr/share/vim/vim92/syntax/psf.vim b/git/usr/share/vim/vim92/syntax/psf.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..0971fe96bf99bf529a995f83a32cb585504c0e65
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/psf.vim
    @@ -0,0 +1,91 @@
    +" Vim syntax file
    +" Language:	Software Distributor product specification file
    +"		(POSIX 1387.2-1995).
    +" Maintainer:	Rex Barzee 
    +" Last change:	25 Apr 2001
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Product specification files are case sensitive
    +syn case match
    +
    +syn keyword psfObject bundle category control_file depot distribution
    +syn keyword psfObject end file fileset host installed_software media
    +syn keyword psfObject product root subproduct vendor
    +
    +syn match  psfUnquotString +[^"# 	][^#]*+ contained
    +syn region psfQuotString   start=+"+ skip=+\\"+ end=+"+ contained
    +
    +syn match  psfObjTag    "\<[-_+A-Z0-9a-z]\+\(\.[-_+A-Z0-9a-z]\+\)*" contained
    +syn match  psfAttAbbrev ",\<\(fa\|fr\|[aclqrv]\)\(<\|>\|<=\|>=\|=\|==\)[^,]\+" contained
    +syn match  psfObjTags   "\<[-_+A-Z0-9a-z]\+\(\.[-_+A-Z0-9a-z]\+\)*\(\s\+\<[-_+A-Z0-9a-z]\+\(\.[-_+A-Z0-9a-z]\+\)*\)*" contained
    +
    +syn match  psfNumber    "\<\d\+\>" contained
    +syn match  psfFloat     "\<\d\+\>\(\.\<\d\+\>\)*" contained
    +
    +syn match  psfLongDate  "\<\d\d\d\d\d\d\d\d\d\d\d\d\.\d\d\>" contained
    +
    +syn keyword psfState    available configured corrupt installed transient contained
    +syn keyword psfPState   applied committed superseded contained
    +
    +syn keyword psfBoolean  false true contained
    +
    +
    +"Some of the attributes covered by attUnquotString and attQuotString:
    +" architecture category_tag control_directory copyright
    +" create_date description directory file_permissions install_source
    +" install_type location machine_type mod_date number os_name os_release
    +" os_version pose_as_os_name pose_as_os_release readme revision
    +" share_link title vendor_tag
    +syn region psfAttUnquotString matchgroup=psfAttrib start=~^\s*[^# 	]\+\s\+[^#" 	]~rs=e-1 contains=psfUnquotString,psfComment end=~$~ keepend oneline
    +
    +syn region psfAttQuotString matchgroup=psfAttrib start=~^\s*[^# 	]\+\s\+"~rs=e-1 contains=psfQuotString,psfComment skip=~\\"~ matchgroup=psfQuotString end=~"~ keepend
    +
    +
    +" These regions are defined in attempt to do syntax checking for some
    +" of the attributes.
    +syn region psfAttTag matchgroup=psfAttrib start="^\s*tag\s\+" contains=psfObjTag,psfComment end="$" keepend oneline
    +
    +syn region psfAttSpec matchgroup=psfAttrib start="^\s*\(ancestor\|applied_patches\|applied_to\|contents\|corequisites\|exrequisites\|prerequisites\|software_spec\|supersedes\|superseded_by\)\s\+" contains=psfObjTag,psfAttAbbrev,psfComment end="$" keepend
    +
    +syn region psfAttTags matchgroup=psfAttrib start="^\s*all_filesets\s\+" contains=psfObjTags,psfComment end="$" keepend
    +
    +syn region psfAttNumber matchgroup=psfAttrib start="^\s*\(compressed_size\|instance_id\|media_sequence_number\|sequence_number\|size\)\s\+" contains=psfNumber,psfComment end="$" keepend oneline
    +
    +syn region psfAttTime matchgroup=psfAttrib start="^\s*\(create_time\|ctime\|mod_time\|mtime\|timestamp\)\s\+" contains=psfNumber,psfComment end="$" keepend oneline
    +
    +syn region psfAttFloat matchgroup=psfAttrib start="^\s*\(data_model_revision\|layout_version\)\s\+" contains=psfFloat,psfComment end="$" keepend oneline
    +
    +syn region psfAttLongDate matchgroup=psfAttrib start="^\s*install_date\s\+" contains=psfLongDate,psfComment end="$" keepend oneline
    +
    +syn region psfAttState matchgroup=psfAttrib start="^\s*\(state\)\s\+" contains=psfState,psfComment end="$" keepend oneline
    +
    +syn region psfAttPState matchgroup=psfAttrib start="^\s*\(patch_state\)\s\+" contains=psfPState,psfComment end="$" keepend oneline
    +
    +syn region psfAttBoolean matchgroup=psfAttrib start="^\s*\(is_kernel\|is_locatable\|is_patch\|is_protected\|is_reboot\|is_reference\|is_secure\|is_sparse\)\s\+" contains=psfBoolean,psfComment end="$" keepend oneline
    +
    +syn match  psfComment "#.*$"
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link psfObject       Statement
    +hi def link psfAttrib       Type
    +hi def link psfQuotString   String
    +hi def link psfObjTag       Identifier
    +hi def link psfAttAbbrev    PreProc
    +hi def link psfObjTags      Identifier
    +
    +hi def link psfComment      Comment
    +
    +
    +" Long descriptions and copyrights confuse the syntax highlighting, so
    +" force vim to backup at least 100 lines before the top visible line
    +" looking for a sync location.
    +syn sync lines=100
    +
    +let b:current_syntax = "psf"
    diff --git a/git/usr/share/vim/vim92/syntax/psl.vim b/git/usr/share/vim/vim92/syntax/psl.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ff6e833bc210da7872ad1c4643a4880cb032861d
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/psl.vim
    @@ -0,0 +1,83 @@
    +" Vim syntax file
    +" Language:	Property Specification Language (PSL)
    +" Maintainer:	Daniel Kho 
    +" Last Changed:	2021 Apr 17 by Daniel Kho
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read in VHDL syntax files
    +runtime! syntax/vhdl.vim
    +unlet b:current_syntax
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" case is not significant
    +syn case	ignore
    +
    +" Add ! character to keyword recognition.
    +setlocal iskeyword+=33
    +
    +" PSL keywords
    +syn keyword	pslOperator	A AF AG AX
    +syn keyword	pslOperator	E EF EG EX
    +syn keyword	pslOperator	F G U W X X!
    +syn keyword	pslOperator	abort always assert assume async_abort
    +syn keyword	pslOperator	before before! before!_ before_ bit bitvector boolean
    +syn keyword	pslOperator	clock const countones cover
    +syn keyword	pslOperator	default
    +syn keyword	pslOperator	ended eventually!
    +syn keyword	pslOperator	fairness fell for forall
    +syn keyword	pslOperator	hdltype
    +syn keyword	pslOperator	in inf inherit isunknown
    +syn keyword	pslOperator	mutable
    +syn keyword	pslOperator	never next next! next_a next_a! next_e next_e! next_event next_event! next_event_a next_event_a! next_event_e next_event_e! nondet nondet_vector numeric
    +syn keyword	pslOperator	onehot onehot0
    +syn keyword	pslOperator	property prev
    +syn keyword	pslOperator	report restrict restrict! rose
    +syn keyword	pslOperator	sequence stable string strong sync_abort
    +syn keyword	pslOperator	union until until! until!_ until_
    +syn keyword	pslOperator	vmode vpkg vprop vunit
    +syn keyword	pslOperator	within
    +"" Common keywords with VHDL
    +"syn keyword	pslOperator	and is not or to
    +
    +" PSL operators
    +syn match	pslOperator	"=>\||=>"
    +syn match	pslOperator	"<-\|->"
    +syn match	pslOperator	"@"
    +
    +
    +"Modify the following as needed.  The trade-off is performance versus functionality.
    +syn sync	minlines=600
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link pslSpecial	    Special
    +hi def link pslStatement    Statement
    +hi def link pslCharacter    Character
    +hi def link pslString	    String
    +hi def link pslVector	    Number
    +hi def link pslBoolean	    Number
    +hi def link pslTodo	    Todo
    +hi def link pslFixme	    Fixme
    +hi def link pslComment	    Comment
    +hi def link pslNumber	    Number
    +hi def link pslTime	    Number
    +hi def link pslType	    Type
    +hi def link pslOperator	    Operator
    +hi def link pslError	    Error
    +hi def link pslAttribute    Special
    +hi def link pslPreProc	    PreProc
    +
    +
    +let b:current_syntax = "psl"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/ptcap.vim b/git/usr/share/vim/vim92/syntax/ptcap.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..5db7bda89659a99af007dc214549a7586b7aaffb
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ptcap.vim
    @@ -0,0 +1,95 @@
    +" Vim syntax file
    +" Language:	printcap/termcap database
    +" Maintainer:	Haakon Riiser 
    +" URL:		http://folk.uio.no/hakonrk/vim/syntax/ptcap.vim
    +" Last Change:	2001 May 15
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +" Since I only highlight based on the structure of the databases, not
    +" specific keywords, case sensitivity isn't required
    +syn case ignore
    +
    +" Since everything that is not caught by the syntax patterns is assumed
    +" to be an error, we start parsing 20 lines up, unless something else
    +" is specified
    +if exists("ptcap_minlines")
    +    exe "syn sync lines=".ptcap_minlines
    +else
    +    syn sync lines=20
    +endif
    +
    +" Highlight everything that isn't caught by the rules as errors,
    +" except blank lines
    +syn match ptcapError	    "^.*\S.*$"
    +
    +syn match ptcapLeadBlank    "^\s\+" contained
    +
    +" `:' and `|' are delimiters for fields and names, and should not be
    +" highlighted.	Hence, they are linked to `NONE'
    +syn match ptcapDelimiter    "[:|]" contained
    +
    +" Escaped characters receive special highlighting
    +syn match ptcapEscapedChar  "\\." contained
    +syn match ptcapEscapedChar  "\^." contained
    +syn match ptcapEscapedChar  "\\\o\{3}" contained
    +
    +" A backslash at the end of a line will suppress the newline
    +syn match ptcapLineCont	    "\\$" contained
    +
    +" A number follows the same rules as an integer in C
    +syn match ptcapNumber	    "#\(+\|-\)\=\d\+"lc=1 contained
    +syn match ptcapNumberError  "#\d*[^[:digit:]:\\]"lc=1 contained
    +syn match ptcapNumber	    "#0x\x\{1,8}"lc=1 contained
    +syn match ptcapNumberError  "#0x\X"me=e-1,lc=1 contained
    +syn match ptcapNumberError  "#0x\x\{9}"lc=1 contained
    +syn match ptcapNumberError  "#0x\x*[^[:xdigit:]:\\]"lc=1 contained
    +
    +" The `@' operator clears a flag (i.e., sets it to zero)
    +" The `#' operator assigns a following number to the flag
    +" The `=' operator assigns a string to the preceding flag
    +syn match ptcapOperator	    "[@#=]" contained
    +
    +" Some terminal capabilities have special names like `#5' and `@1', and we
    +" need special rules to match these properly
    +syn match ptcapSpecialCap   "\W[#@]\d" contains=ptcapDelimiter contained
    +
    +" If editing a termcap file, an entry in the database is terminated by
    +" a (non-escaped) newline.  Otherwise, it is terminated by a line which
    +" does not start with a colon (:)
    +if exists("b:ptcap_type") && b:ptcap_type[0] == 't'
    +    syn region ptcapEntry   start="^\s*[^[:space:]:]" end="[^\\]\(\\\\\)*$" end="^$" contains=ptcapNames,ptcapField,ptcapLeadBlank keepend
    +else
    +    syn region ptcapEntry   start="^\s*[^[:space:]:]"me=e-1 end="^\s*[^[:space:]:#]"me=e-1 contains=ptcapNames,ptcapField,ptcapLeadBlank,ptcapComment
    +endif
    +syn region ptcapNames	    start="^\s*[^[:space:]:]" skip="[^\\]\(\\\\\)*\\:" end=":"me=e-1 contains=ptcapDelimiter,ptcapEscapedChar,ptcapLineCont,ptcapLeadBlank,ptcapComment keepend contained
    +syn region ptcapField	    start=":" skip="[^\\]\(\\\\\)*\\$" end="[^\\]\(\\\\\)*:"me=e-1 end="$" contains=ptcapDelimiter,ptcapString,ptcapNumber,ptcapNumberError,ptcapOperator,ptcapLineCont,ptcapSpecialCap,ptcapLeadBlank,ptcapComment keepend contained
    +syn region ptcapString	    matchgroup=ptcapOperator start="=" skip="[^\\]\(\\\\\)*\\:" matchgroup=ptcapDelimiter end=":"me=e-1 matchgroup=NONE end="[^\\]\(\\\\\)*[^\\]$" end="^$" contains=ptcapEscapedChar,ptcapLineCont keepend contained
    +syn region ptcapComment	    start="^\s*#" end="$" contains=ptcapLeadBlank
    +
    +
    +hi def link ptcapComment		Comment
    +hi def link ptcapDelimiter	Delimiter
    +" The highlighting of "ptcapEntry" should always be overridden by
    +" its contents, so I use Todo highlighting to indicate that there
    +" is work to be done with the syntax file if you can see it :-)
    +hi def link ptcapEntry		Todo
    +hi def link ptcapError		Error
    +hi def link ptcapEscapedChar	SpecialChar
    +hi def link ptcapField		Type
    +hi def link ptcapLeadBlank	NONE
    +hi def link ptcapLineCont	Special
    +hi def link ptcapNames		Label
    +hi def link ptcapNumber		NONE
    +hi def link ptcapNumberError	Error
    +hi def link ptcapOperator	Operator
    +hi def link ptcapSpecialCap	Type
    +hi def link ptcapString		NONE
    +
    +
    +let b:current_syntax = "ptcap"
    +
    +" vim: sts=4 sw=4 ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/ptx.vim b/git/usr/share/vim/vim92/syntax/ptx.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..98de4ff6d3ea68298d0e4bb539ff413e18ba702b
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ptx.vim
    @@ -0,0 +1,52 @@
    +" Vim syntax file
    +" Language: Nvidia PTX (Parallel Thread Execution)
    +" Maintainer: Yinzuo Jiang 
    +" Latest Revision: 2024-12-05
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syntax iskeyword .,_,a-z,48-57
    +
    +" https://docs.nvidia.com/cuda/parallel-thread-execution/#directives
    +syntax keyword ptxFunction .entry .func
    +syntax keyword ptxDirective .branchtargets .file .loc .secion .maxnctapersm .maxnreg .minnctapersm .noreturn .pragma .reqntid .target .version .weak
    +syntax keyword ptxOperator .address_size .alias .align .callprototype .calltargets
    +syntax keyword ptxStorageClass .common .const .extern .global .local .param .reg .sreg .shared .tex .visible
    +syntax keyword ptxType .explicitcluster .maxclusterrank .reqnctapercluster
    +
    +" https://docs.nvidia.com/cuda/parallel-thread-execution/#fundamental-types
    +" signed integer
    +syntax keyword ptxType .s8 .s16 .s32 .s64
    +" unsigned integer
    +syntax keyword ptxType .u8 .u16 .u32 .u64
    +" floating-point
    +syntax keyword ptxType .f16 .f16x2 .f32 .f64
    +" bits (untyped)
    +syntax keyword ptxType .b8 .b16 .b32 .b64 .b128
    +" predicate
    +syntax keyword ptxType .pred
    +
    +" https://docs.nvidia.com/cuda/parallel-thread-execution/#instruction-statements
    +syntax keyword ptxStatement ret
    +
    +syntax region  ptxCommentL start="//" skip="\\$" end="$" keepend
    +syntax region ptxComment matchgroup=ptxCommentStart start="/\*" end="\*/" extend
    +
    +hi def link ptxFunction Function
    +hi def link ptxDirective Keyword
    +hi def link ptxOperator Operator
    +hi def link ptxStorageClass StorageClass
    +hi def link ptxType Type
    +hi def link ptxStatement Statement
    +
    +hi def link ptxCommentL ptxComment
    +hi def link ptxCommentStart ptxComment
    +hi def link ptxComment Comment
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/purifylog.vim b/git/usr/share/vim/vim92/syntax/purifylog.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2143d9fe28f2a5046ee60216848c1a51d54b29dc
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/purifylog.vim
    @@ -0,0 +1,106 @@
    +" Vim syntax file
    +" Language:	purify log files
    +" Maintainer:	Gautam H. Mudunuri 
    +" Last Change:	2003 May 11
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Purify header
    +syn match purifyLogHeader      "^\*\*\*\*.*$"
    +
    +" Informational messages
    +syn match purifyLogFIU "^FIU:.*$"
    +syn match purifyLogMAF "^MAF:.*$"
    +syn match purifyLogMIU "^MIU:.*$"
    +syn match purifyLogSIG "^SIG:.*$"
    +syn match purifyLogWPF "^WPF:.*$"
    +syn match purifyLogWPM "^WPM:.*$"
    +syn match purifyLogWPN "^WPN:.*$"
    +syn match purifyLogWPR "^WPR:.*$"
    +syn match purifyLogWPW "^WPW:.*$"
    +syn match purifyLogWPX "^WPX:.*$"
    +
    +" Warning messages
    +syn match purifyLogABR "^ABR:.*$"
    +syn match purifyLogBSR "^BSR:.*$"
    +syn match purifyLogBSW "^BSW:.*$"
    +syn match purifyLogFMR "^FMR:.*$"
    +syn match purifyLogMLK "^MLK:.*$"
    +syn match purifyLogMSE "^MSE:.*$"
    +syn match purifyLogPAR "^PAR:.*$"
    +syn match purifyLogPLK "^PLK:.*$"
    +syn match purifyLogSBR "^SBR:.*$"
    +syn match purifyLogSOF "^SOF:.*$"
    +syn match purifyLogUMC "^UMC:.*$"
    +syn match purifyLogUMR "^UMR:.*$"
    +
    +" Corrupting messages
    +syn match purifyLogABW "^ABW:.*$"
    +syn match purifyLogBRK "^BRK:.*$"
    +syn match purifyLogFMW "^FMW:.*$"
    +syn match purifyLogFNH "^FNH:.*$"
    +syn match purifyLogFUM "^FUM:.*$"
    +syn match purifyLogMRE "^MRE:.*$"
    +syn match purifyLogSBW "^SBW:.*$"
    +
    +" Fatal messages
    +syn match purifyLogCOR "^COR:.*$"
    +syn match purifyLogNPR "^NPR:.*$"
    +syn match purifyLogNPW "^NPW:.*$"
    +syn match purifyLogZPR "^ZPR:.*$"
    +syn match purifyLogZPW "^ZPW:.*$"
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link purifyLogFIU purifyLogInformational
    +hi def link purifyLogMAF purifyLogInformational
    +hi def link purifyLogMIU purifyLogInformational
    +hi def link purifyLogSIG purifyLogInformational
    +hi def link purifyLogWPF purifyLogInformational
    +hi def link purifyLogWPM purifyLogInformational
    +hi def link purifyLogWPN purifyLogInformational
    +hi def link purifyLogWPR purifyLogInformational
    +hi def link purifyLogWPW purifyLogInformational
    +hi def link purifyLogWPX purifyLogInformational
    +
    +hi def link purifyLogABR purifyLogWarning
    +hi def link purifyLogBSR purifyLogWarning
    +hi def link purifyLogBSW purifyLogWarning
    +hi def link purifyLogFMR purifyLogWarning
    +hi def link purifyLogMLK purifyLogWarning
    +hi def link purifyLogMSE purifyLogWarning
    +hi def link purifyLogPAR purifyLogWarning
    +hi def link purifyLogPLK purifyLogWarning
    +hi def link purifyLogSBR purifyLogWarning
    +hi def link purifyLogSOF purifyLogWarning
    +hi def link purifyLogUMC purifyLogWarning
    +hi def link purifyLogUMR purifyLogWarning
    +
    +hi def link purifyLogABW purifyLogCorrupting
    +hi def link purifyLogBRK purifyLogCorrupting
    +hi def link purifyLogFMW purifyLogCorrupting
    +hi def link purifyLogFNH purifyLogCorrupting
    +hi def link purifyLogFUM purifyLogCorrupting
    +hi def link purifyLogMRE purifyLogCorrupting
    +hi def link purifyLogSBW purifyLogCorrupting
    +
    +hi def link purifyLogCOR purifyLogFatal
    +hi def link purifyLogNPR purifyLogFatal
    +hi def link purifyLogNPW purifyLogFatal
    +hi def link purifyLogZPR purifyLogFatal
    +hi def link purifyLogZPW purifyLogFatal
    +
    +hi def link purifyLogHeader		Comment
    +hi def link purifyLogInformational	PreProc
    +hi def link purifyLogWarning		Type
    +hi def link purifyLogCorrupting	Error
    +hi def link purifyLogFatal		Error
    +
    +
    +let b:current_syntax = "purifylog"
    +
    +" vim:ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/pymanifest.vim b/git/usr/share/vim/vim92/syntax/pymanifest.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..26bdf797e0d69106347a0bd71efbc8df5a862aa6
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/pymanifest.vim
    @@ -0,0 +1,44 @@
    +" Vim syntax file
    +" Language:	PyPA manifest
    +" Maintainer:	ObserverOfTime 
    +" Filenames:	MANIFEST.in
    +" Last Change:	2023 Aug 12
    +
    +if exists('b:current_syntax')
    +    finish
    +endif
    +
    +let s:cpo_save = &cpoptions
    +set cpoptions&vim
    +
    +syn iskeyword @,-
    +
    +" Comments
    +syn keyword pymanifestTodo contained TODO FIXME XXX
    +syn match pymanifestComment /\\\@1
    +" URL:		http://marcobari.altervista.org/pyrex_vim.html
    +" Last Change:	2009 Nov 09
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read the Python syntax to start with
    +runtime! syntax/python.vim
    +unlet b:current_syntax
    +
    +" Pyrex extentions
    +syn keyword pyrexStatement      cdef typedef ctypedef sizeof
    +syn keyword pyrexType		int long short float double char object void
    +syn keyword pyrexType		signed unsigned
    +syn keyword pyrexStructure	struct union enum
    +syn keyword pyrexInclude	include cimport
    +syn keyword pyrexAccess		public private property readonly extern
    +" If someome wants Python's built-ins highlighted probably he
    +" also wants Pyrex's built-ins highlighted
    +if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins")
    +    syn keyword pyrexBuiltin    NULL
    +endif
    +
    +" This deletes "from" from the keywords and re-adds it as a
    +" match with lower priority than pyrexForFrom
    +syn clear   pythonInclude
    +syn keyword pythonInclude     import
    +syn match   pythonInclude     "from"
    +
    +" With "for[^:]*\zsfrom" VIM does not match "for" anymore, so
    +" I used the slower "\@<=" form
    +syn match   pyrexForFrom        "\(for[^:]*\)\@<=from"
    +
    +" Default highlighting
    +hi def link pyrexStatement		Statement
    +hi def link pyrexType		Type
    +hi def link pyrexStructure		Structure
    +hi def link pyrexInclude		PreCondit
    +hi def link pyrexAccess		pyrexStatement
    +if exists("python_highlight_builtins") || exists("pyrex_highlight_builtins")
    +hi def link pyrexBuiltin	Function
    +endif
    +hi def link pyrexForFrom		Statement
    +
    +
    +let b:current_syntax = "pyrex"
    diff --git a/git/usr/share/vim/vim92/syntax/python.vim b/git/usr/share/vim/vim92/syntax/python.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..e483468995eaec93ef115cb158402fff6cb651ed
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/python.vim
    @@ -0,0 +1,461 @@
    +" Vim syntax file
    +" Language:	Python
    +" Maintainer:	Zvezdan Petkovic 
    +" Last Change:	2025 Sep 08
    +" 2025 Sep 25 by Vim Project: fix wrong type highlighting #18394
    +" 2025 Dec 03 by Vim Project: highlight t-strings #18679
    +" 2026 Jan 26 by Vim Project: highlight constants #18922
    +" 2026 Mar 11 by Vim Project: fix number performance #19630
    +" Credits:	Neil Schemenauer 
    +"		Dmitry Vasiliev
    +"		Rob B
    +"		Jon Parise
    +"
    +"		This version is a major rewrite by Zvezdan Petkovic.
    +"
    +"		- introduced highlighting of doctests
    +"		- updated keywords, built-ins, and exceptions
    +"		- corrected regular expressions for
    +"
    +"		  * functions
    +"		  * decorators
    +"		  * strings
    +"		  * escapes
    +"		  * numbers
    +"		  * space error
    +"
    +"		- corrected synchronization
    +"		- more highlighting is ON by default, except
    +"		- space error highlighting is OFF by default
    +"
    +" Optional highlighting can be controlled using these variables.
    +"
    +"   let python_no_builtin_highlight = 1
    +"   let python_no_doctest_code_highlight = 1
    +"   let python_no_doctest_highlight = 1
    +"   let python_no_exception_highlight = 1
    +"   let python_no_number_highlight = 1
    +"   let python_space_error_highlight = 1
    +"   let python_constant_highlight = 1
    +"
    +" All the options above can be switched on together.
    +"
    +"   let python_highlight_all = 1
    +"
    +" The use of Python 2 compatible syntax highlighting can be enforced.
    +" The straddling code (Python 2 and 3 compatible), up to Python 3.5,
    +" will be also supported.
    +"
    +"   let python_use_python2_syntax = 1
    +"
    +" This option will exclude all modern Python 3.6 or higher features.
    +"
    +
    +" quit when a syntax file was already loaded.
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Use of Python 2 and 3.5 or lower requested.
    +if exists("python_use_python2_syntax")
    +  runtime! syntax/python2.vim
    +  finish
    +endif
    +
    +" We need nocompatible mode in order to continue lines with backslashes.
    +" Original setting will be restored.
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +if exists("python_no_doctest_highlight")
    +  let python_no_doctest_code_highlight = 1
    +endif
    +
    +if exists("python_highlight_all")
    +  if exists("python_no_builtin_highlight")
    +    unlet python_no_builtin_highlight
    +  endif
    +  if exists("python_no_doctest_code_highlight")
    +    unlet python_no_doctest_code_highlight
    +  endif
    +  if exists("python_no_doctest_highlight")
    +    unlet python_no_doctest_highlight
    +  endif
    +  if exists("python_no_exception_highlight")
    +    unlet python_no_exception_highlight
    +  endif
    +  if exists("python_no_number_highlight")
    +    unlet python_no_number_highlight
    +  endif
    +  let python_space_error_highlight = 1
    +  let python_constant_highlight = 1
    +endif
    +
    +" Keep Python keywords in alphabetical order inside groups for easy
    +" comparison with the table in the 'Python Language Reference'
    +" https://docs.python.org/reference/lexical_analysis.html#keywords.
    +" Groups are in the order presented in NAMING CONVENTIONS in syntax.txt.
    +" Exceptions come last at the end of each group (class and def below).
    +"
    +" The list can be checked using:
    +"
    +" python3 -c 'import keyword, pprint; pprint.pprint(keyword.kwlist + keyword.softkwlist, compact=True)'
    +"
    +syn keyword pythonBoolean	False True
    +syn keyword pythonConstant	None
    +syn keyword pythonStatement	as assert break continue del global
    +syn keyword pythonStatement	lambda nonlocal pass return with yield
    +syn keyword pythonStatement	class nextgroup=pythonClass skipwhite
    +syn keyword pythonStatement	def nextgroup=pythonFunction skipwhite
    +syn keyword pythonConditional	elif else if
    +syn keyword pythonRepeat	for while
    +syn keyword pythonOperator	and in is not or
    +syn keyword pythonException	except finally raise try
    +syn keyword pythonInclude	from import
    +syn keyword pythonAsync		async await
    +
    +" Soft keywords
    +" These keywords do not mean anything unless used in the right context.
    +" See https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords
    +" for more on this.
    +syn match   pythonConditional   "^\s*\zscase\%(\s\+.*:.*$\)\@="
    +syn match   pythonConditional   "^\s*\zsmatch\%(\s\+.*:\s*\%(#.*\)\=$\)\@="
    +syn match   pythonStatement     "\>>\|\.\.\.\)\s\+\)\=\zs\%(\h\|\%(\h\|[[(]\).\{-}\%(\w\|[])]\)\)\s*\n\%(\s*\.\.\.\s\)\=\s\+@\%(.\{-}\n\%(\s*\.\.\.\s\)\=\s\+@\)*"
    +      \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonClass,pythonFunction,pythonType,pythonDoctestValue
    +      \ transparent
    +
    +syn match   pythonClass		"\h\w*" display contained
    +syn match   pythonFunction	"\h\w*" display contained
    +syn match   pythonType		"\h\w*" display contained
    +
    +syn match   pythonComment	"#.*$" contains=pythonTodo,@Spell
    +syn keyword pythonTodo		FIXME NOTE NOTES TODO XXX contained
    +
    +" Triple-quoted strings can contain doctests.
    +syn region  pythonString matchgroup=pythonQuotes
    +      \ start=+[uU]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=pythonEscape,pythonUnicodeEscape,@Spell
    +syn region  pythonString matchgroup=pythonTripleQuotes
    +      \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=pythonEscape,pythonUnicodeEscape,pythonSpaceError,pythonDoctest,@Spell
    +syn region  pythonRawString matchgroup=pythonQuotes
    +      \ start=+[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=@Spell
    +syn region  pythonRawString matchgroup=pythonTripleQuotes
    +      \ start=+[rR]\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=pythonSpaceError,pythonDoctest,@Spell
    +
    +" Formatted string literals (f-strings)
    +" https://docs.python.org/3/reference/lexical_analysis.html#f-strings
    +" Template string literals (t-strings)
    +" https://docs.python.org/3/reference/lexical_analysis.html#template-string-literals
    +syn region  pythonFString
    +      \ matchgroup=pythonQuotes
    +      \ start=+\c[FT]\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +      \ contains=pythonFStringField,pythonFStringSkip,pythonEscape,pythonUnicodeEscape,@Spell
    +syn region  pythonFString
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+\c[FT]\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +      \ contains=pythonFStringField,pythonFStringSkip,pythonEscape,pythonUnicodeEscape,pythonSpaceError,pythonDoctest,@Spell
    +syn region  pythonRawFString
    +      \ matchgroup=pythonQuotes
    +      \ start=+\c\%([FT]R\|R[FT]\)\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +      \ contains=pythonFStringField,pythonFStringSkip,@Spell
    +syn region  pythonRawFString
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+\c\%([FT]R\|R[FT]\)\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +      \ contains=pythonFStringField,pythonFStringSkip,pythonSpaceError,pythonDoctest,@Spell
    +
    +" Bytes
    +syn region  pythonBytes
    +      \ matchgroup=pythonQuotes
    +      \ start=+\cB\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +      \ contains=pythonEscape
    +syn region  pythonBytes
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+\cB\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +      \ contains=pythonEscape
    +syn region  pythonRawBytes
    +      \ matchgroup=pythonQuotes
    +      \ start=+\c\%(BR\|RB\)\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +syn region  pythonRawBytes
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+\c\%(BR\|RB\)\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +
    +" F-string replacement fields
    +"
    +" - Matched parentheses, brackets and braces are skipped
    +" - A bare = (followed by optional whitespace) enables debugging
    +" - A bare ! prefixes a conversion field (followed by optional whitespace)
    +" - A bare : begins a format specification
    +"     - Matched braces inside a format specification are skipped
    +"
    +syn region  pythonFStringField
    +    \ matchgroup=pythonFStringDelimiter
    +    \ start=/{/
    +    \ end=/\%(=\s*\)\=\%(!\a\s*\)\=\%(:\%({\_[^}]*}\|[^{}]*\)\+\)\=}/
    +    \ contained
    +    \ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
    +syn match   pythonFStringFieldSkip  /(\_[^()]*)\|\[\_[^][]*]\|{\_[^{}]*}/
    +    \ contained
    +    \ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
    +
    +" Doubled braces are not replacement fields
    +syn match   pythonFStringSkip	/{{/ transparent contained contains=NONE
    +
    +syn match   pythonEscape	+\\[abfnrtv'"\\]+ contained
    +syn match   pythonEscape	"\\\o\{1,3}" contained
    +syn match   pythonEscape	"\\x\x\{2}" contained
    +syn match   pythonUnicodeEscape	"\%(\\u\x\{4}\|\\U\x\{8}\)" contained
    +" Python allows case-insensitive Unicode IDs: http://www.unicode.org/charts/
    +" The specification: https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-4/#G135165
    +syn match   pythonUnicodeEscape	"\\N{\a\+\%(\%(\s\a\+[[:alnum:]]*\)\|\%(-[[:alnum:]]\+\)\)*}" contained
    +syn match   pythonEscape	"\\$"
    +
    +" It is very important to understand all details before changing the
    +" regular expressions below or their order.
    +" The word boundaries are *not* the floating-point number boundaries
    +" because of a possible leading or trailing decimal point.
    +" The expressions below ensure that all valid number literals are
    +" highlighted, and invalid number literals are not.  For example,
    +"
    +" - a decimal point in '4.' at the end of a line is highlighted,
    +" - a second dot in 1.0.0 is not highlighted,
    +" - 08 is not highlighted,
    +" - 08e0 or 08j are highlighted,
    +"
    +" and so on, as specified in the 'Python Language Reference'.
    +" https://docs.python.org/reference/lexical_analysis.html#numeric-literals
    +if !exists("python_no_number_highlight")
    +  " numbers (including complex)
    +  syn match   pythonNumber	"\<0[oO]_\=\o\+\%(_\o\+\)*\>"
    +  syn match   pythonNumber	"\<0[xX]_\=\x\+\%(_\x\+\)*\>"
    +  syn match   pythonNumber	"\<0[bB]_\=[01]\+\%(_[01]\+\)*\>"
    +  syn match   pythonNumber	"\<\%([1-9]\d*\%(_\d\+\)*\|0\+\%(_0\+\)*\)\>"
    +  syn match   pythonNumber	"\<\d\+\%(_\d\+\)*[jJ]\>"
    +  syn match   pythonNumber	"\<\d\+\%(_\d\+\)*[eE][+-]\=\d\+\%(_\d\+\)*[jJ]\=\>"
    +  " \d\.
    +  syn match   pythonNumber
    +        \ "\<\d\+\%(_\d\+\)*\.\%([eE][+-]\=\d\+\%(_\d\+\)*\)\=[jJ]\=\%(\W\|$\)\@="
    +  " \d\.\d
    +  syn match   pythonNumber
    +        \ "\<\d\+\%(_\d\+\)*\.\d\+\%(_\d\+\)*\%([eE][+-]\=\d\+\%(_\d\+\)*\)\=[jJ]\=\>"
    +  " \.\d
    +  syn match   pythonNumber
    +        \ "\%(^\|\W\)\@1<=\.\d\+\%(_\d\+\)*\%([eE][+-]\=\d\+\%(_\d\+\)*\)\=[jJ]\=\>"
    +endif
    +
    +" Group the built-ins in the order in the 'Python Library Reference' for
    +" easier comparison.
    +" https://docs.python.org/library/constants.html
    +" http://docs.python.org/library/functions.html
    +" Python built-in functions are in alphabetical order.
    +"
    +" The list can be checked using:
    +"
    +" python3 -c 'import builtins, pprint; pprint.pprint(dir(builtins), compact=True)'
    +"
    +" The constants added by the `site` module are not listed below because they
    +" should not be used in programs, only in interactive interpreter.
    +" Similarly for some other attributes and functions `__`-enclosed from the
    +" output of the above command.
    +"
    +if !exists("python_no_builtin_highlight")
    +  " built-in constants
    +  " 'False', 'True', and 'None' are also reserved words in Python 3
    +  syn keyword pythonBoolean	False True
    +  syn keyword pythonConstant	None NotImplemented Ellipsis __debug__
    +  " constants added by the `site` module
    +  syn keyword pythonBuiltin	quit exit copyright credits license
    +  " built-in functions
    +  syn keyword pythonBuiltin	abs all any ascii bin bool breakpoint bytearray
    +  syn keyword pythonBuiltin	bytes callable chr classmethod compile complex
    +  syn keyword pythonBuiltin	delattr dict dir divmod enumerate eval exec
    +  syn keyword pythonBuiltin	filter float format frozenset getattr globals
    +  syn keyword pythonBuiltin	hasattr hash help hex id input int isinstance
    +  syn keyword pythonBuiltin	issubclass iter len list locals map max
    +  syn keyword pythonBuiltin	memoryview min next object oct open ord pow
    +  syn keyword pythonBuiltin	print property range repr reversed round set
    +  syn keyword pythonBuiltin	setattr slice sorted staticmethod str sum super
    +  syn keyword pythonBuiltin	tuple vars zip __import__
    +  " only match `type` as a builtin when it's not followed by an identifier
    +  syn match   pythonBuiltin	"\\ze\(\s\+\h\w*\)\@!"
    +  " avoid highlighting attributes as builtins
    +  syn match   pythonAttribute	/\.\h\w*/hs=s+1
    +	\ contains=ALLBUT,pythonBuiltin,pythonClass,pythonFunction,pythonType,pythonAsync
    +	\ transparent
    +  " the ellipsis literal `...` can be used in multiple syntactic contexts
    +  syn match   pythonEllipsis	"\.\@1>>\s" end="^\s*$"
    +	  \ contained contains=ALLBUT,pythonDoctest,pythonEllipsis,pythonClass,pythonFunction,pythonType,@Spell
    +    syn region pythonDoctestValue
    +	  \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$"
    +	  \ contained contains=pythonEllipsis
    +    syn match pythonEllipsis "\%(^\s*\)\@>>" end="^\s*$"
    +	  \ contained contains=@NoSpell
    +  endif
    +endif
    +
    +" Sync at the beginning of (async) function or class definitions.
    +syn sync match pythonSync grouphere NONE "^\%(def\|class\|async\s\+def\)\s\+\h\w*\s*[(:]"
    +
    +" The default highlight links.  Can be overridden later.
    +hi def link pythonBoolean		Statement
    +hi def link pythonConstant		Statement
    +hi def link pythonStatement		Statement
    +hi def link pythonConditional		Conditional
    +hi def link pythonRepeat		Repeat
    +hi def link pythonOperator		Operator
    +hi def link pythonException		Exception
    +hi def link pythonInclude		Include
    +hi def link pythonAsync			Statement
    +hi def link pythonClassVar		Identifier
    +hi def link pythonDecorator		Define
    +hi def link pythonDecoratorName		Function
    +hi def link pythonClass			Structure
    +hi def link pythonFunction		Function
    +hi def link pythonType			Type
    +hi def link pythonComment		Comment
    +hi def link pythonTodo			Todo
    +hi def link pythonString		String
    +hi def link pythonRawString		String
    +hi def link pythonFString		String
    +hi def link pythonRawFString		String
    +hi def link pythonBytes 		String
    +hi def link pythonRawBytes 		String
    +hi def link pythonQuotes		String
    +hi def link pythonTripleQuotes		pythonQuotes
    +hi def link pythonEscape		Special
    +hi def link pythonUnicodeEscape		pythonEscape
    +hi def link pythonFStringDelimiter	Special
    +if !exists("python_no_number_highlight")
    +  hi def link pythonNumber		Number
    +endif
    +if !exists("python_no_builtin_highlight")
    +  hi! def link pythonBoolean		Function
    +  hi! def link pythonConstant		Function
    +  hi def link pythonBuiltin		Function
    +  hi def link pythonEllipsis		pythonBuiltin
    +endif
    +if !exists("python_no_exception_highlight")
    +  hi def link pythonExceptions		Structure
    +endif
    +if exists("python_space_error_highlight")
    +  hi def link pythonSpaceError		Error
    +endif
    +if !exists("python_no_doctest_highlight")
    +  hi def link pythonDoctest		Special
    +  hi def link pythonDoctestValue	Define
    +endif
    +if exists("python_constant_highlight")
    +  hi! def link pythonBoolean		Boolean
    +  hi! def link pythonConstant		Constant
    +endif
    +
    +let b:current_syntax = "python"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim:set sw=2 sts=2 ts=8 noet:
    diff --git a/git/usr/share/vim/vim92/syntax/python2.vim b/git/usr/share/vim/vim92/syntax/python2.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..a4a7a822ecb25e1fbd40f6c5af384fed1eca26f3
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/python2.vim
    @@ -0,0 +1,378 @@
    +" Vim syntax file
    +" Language:	Python 2
    +" Maintainer:	Zvezdan Petkovic 
    +" Last Change:	2016 Oct 29
    +" 2025 Jul 14 by Vim project: highlight unicode strings
    +" 2025 Jul 15 by Vim project: highlight b-strings
    +" Credits:	Neil Schemenauer 
    +"		Dmitry Vasiliev
    +"		Rob B
    +"
    +"		This version is a major rewrite by Zvezdan Petkovic.
    +"
    +"		- introduced highlighting of doctests
    +"		- updated keywords, built-ins, and exceptions
    +"		- corrected regular expressions for
    +"
    +"		  * functions
    +"		  * decorators
    +"		  * strings
    +"		  * escapes
    +"		  * numbers
    +"		  * space error
    +"
    +"		- corrected synchronization
    +"		- more highlighting is ON by default, except
    +"		- space error highlighting is OFF by default
    +"
    +" Optional highlighting can be controlled using these variables.
    +"
    +"   let python_no_builtin_highlight = 1
    +"   let python_no_doctest_code_highlight = 1
    +"   let python_no_doctest_highlight = 1
    +"   let python_no_exception_highlight = 1
    +"   let python_no_number_highlight = 1
    +"   let python_space_error_highlight = 1
    +"
    +" All the options above can be switched on together.
    +"
    +"   let python_highlight_all = 1
    +"
    +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    +" NOTE: This file is a copy of the last commit of runtime/syntax/python.vim
    +" that still supported Python 2. There is support for Python 3, up to 3.5,
    +" and it was kept in the file as is, because it supports the straddling code
    +" (Python 2 and 3 compatible) better.
    +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    +
    +" quit when a syntax file was already loaded.
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" We need nocompatible mode in order to continue lines with backslashes.
    +" Original setting will be restored.
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +if exists("python_no_doctest_highlight")
    +  let python_no_doctest_code_highlight = 1
    +endif
    +
    +if exists("python_highlight_all")
    +  if exists("python_no_builtin_highlight")
    +    unlet python_no_builtin_highlight
    +  endif
    +  if exists("python_no_doctest_code_highlight")
    +    unlet python_no_doctest_code_highlight
    +  endif
    +  if exists("python_no_doctest_highlight")
    +    unlet python_no_doctest_highlight
    +  endif
    +  if exists("python_no_exception_highlight")
    +    unlet python_no_exception_highlight
    +  endif
    +  if exists("python_no_number_highlight")
    +    unlet python_no_number_highlight
    +  endif
    +  let python_space_error_highlight = 1
    +endif
    +
    +" Keep Python keywords in alphabetical order inside groups for easy
    +" comparison with the table in the 'Python Language Reference'
    +" https://docs.python.org/2/reference/lexical_analysis.html#keywords,
    +" https://docs.python.org/3/reference/lexical_analysis.html#keywords.
    +" Groups are in the order presented in NAMING CONVENTIONS in syntax.txt.
    +" Exceptions come last at the end of each group (class and def below).
    +"
    +" Keywords 'with' and 'as' are new in Python 2.6
    +" (use 'from __future__ import with_statement' in Python 2.5).
    +"
    +" Some compromises had to be made to support both Python 3 and 2.
    +" We include Python 3 features, but when a definition is duplicated,
    +" the last definition takes precedence.
    +"
    +" - 'False', 'None', and 'True' are keywords in Python 3 but they are
    +"   built-ins in 2 and will be highlighted as built-ins below.
    +" - 'exec' is a built-in in Python 3 and will be highlighted as
    +"   built-in below.
    +" - 'nonlocal' is a keyword in Python 3 and will be highlighted.
    +" - 'print' is a built-in in Python 3 and will be highlighted as
    +"   built-in below (use 'from __future__ import print_function' in 2)
    +" - async and await were added in Python 3.5 and are soft keywords.
    +"
    +syn keyword pythonStatement	False None True
    +syn keyword pythonStatement	as assert break continue del exec global
    +syn keyword pythonStatement	lambda nonlocal pass print return with yield
    +syn keyword pythonStatement	class def nextgroup=pythonFunction skipwhite
    +syn keyword pythonConditional	elif else if
    +syn keyword pythonRepeat	for while
    +syn keyword pythonOperator	and in is not or
    +syn keyword pythonException	except finally raise try
    +syn keyword pythonInclude	from import
    +syn keyword pythonAsync		async await
    +
    +" Decorators (new in Python 2.4)
    +" A dot must be allowed because of @MyClass.myfunc decorators.
    +syn match   pythonDecorator	"@" display contained
    +syn match   pythonDecoratorName	"@\s*\h\%(\w\|\.\)*" display contains=pythonDecorator
    +
    +" Python 3.5 introduced the use of the same symbol for matrix multiplication:
    +" https://www.python.org/dev/peps/pep-0465/.  We now have to exclude the
    +" symbol from highlighting when used in that context.
    +" Single line multiplication.
    +syn match   pythonMatrixMultiply
    +      \ "\%(\w\|[])]\)\s*@"
    +      \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
    +      \ transparent
    +" Multiplication continued on the next line after backslash.
    +syn match   pythonMatrixMultiply
    +      \ "[^\\]\\\s*\n\%(\s*\.\.\.\s\)\=\s\+@"
    +      \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
    +      \ transparent
    +" Multiplication in a parenthesized expression over multiple lines with @ at
    +" the start of each continued line; very similar to decorators and complex.
    +syn match   pythonMatrixMultiply
    +      \ "^\s*\%(\%(>>>\|\.\.\.\)\s\+\)\=\zs\%(\h\|\%(\h\|[[(]\).\{-}\%(\w\|[])]\)\)\s*\n\%(\s*\.\.\.\s\)\=\s\+@\%(.\{-}\n\%(\s*\.\.\.\s\)\=\s\+@\)*"
    +      \ contains=ALLBUT,pythonDecoratorName,pythonDecorator,pythonFunction,pythonDoctestValue
    +      \ transparent
    +
    +syn match   pythonFunction	"\h\w*" display contained
    +
    +syn match   pythonComment	"#.*$" contains=pythonTodo,@Spell
    +syn keyword pythonTodo		FIXME NOTE NOTES TODO XXX contained
    +
    +" Triple-quoted strings can contain doctests.
    +syn region  pythonString matchgroup=pythonQuotes
    +      \ start=+[bB]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=pythonEscape,@Spell
    +syn region  pythonString matchgroup=pythonTripleQuotes
    +      \ start=+[bB]\=\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=pythonEscape,pythonSpaceError,pythonDoctest,@Spell
    +syn region  pythonRawString matchgroup=pythonQuotes
    +      \ start=+[bB]\=[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
    +      \ contains=@Spell
    +syn region  pythonRawString matchgroup=pythonTripleQuotes
    +      \ start=+[bB]\=[rR]\z('''\|"""\)+ end="\z1" keepend
    +      \ contains=pythonSpaceError,pythonDoctest,@Spell
    +
    +" Unicode strings
    +syn region  pythonString
    +      \ matchgroup=pythonQuotes
    +      \ start=+[uU]\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +      \ contains=pythonEscape,pythonUnicodeEscape,@Spell
    +syn region  pythonString
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+[uU]\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +      \ contains=pythonEscape,pythonUnicodeEscape,pythonSpaceError,pythonDoctest,@Spell
    +
    +" Raw Unicode strings recognize Unicode escape sequences
    +" https://docs.python.org/2.7/reference/lexical_analysis.html#string-literals
    +syn region  pythonRawString
    +      \ matchgroup=pythonQuotes
    +      \ start=+[uU][rR]\z(['"]\)+
    +      \ end="\z1"
    +      \ skip="\\\\\|\\\z1"
    +      \ contains=pythonUnicodeEscape,@Spell
    +syn region  pythonRawString
    +      \ matchgroup=pythonTripleQuotes
    +      \ start=+[uU][rR]\z('''\|"""\)+
    +      \ end="\z1"
    +      \ keepend
    +      \ contains=pythonUnicodeEscape,pythonSpaceError,pythonDoctest,@Spell
    +
    +syn match   pythonEscape	+\\[abfnrtv'"\\]+ contained
    +syn match   pythonEscape	"\\\o\{1,3}" contained
    +syn match   pythonEscape	"\\x\x\{2}" contained
    +syn match   pythonUnicodeEscape	"\%(\\u\x\{4}\|\\U\x\{8}\)" contained
    +" Python allows case-insensitive Unicode IDs: http://www.unicode.org/charts/
    +syn match   pythonUnicodeEscape	"\\N{\a\+\%(\s\a\+\)*}" contained
    +syn match   pythonEscape	"\\$"
    +
    +" It is very important to understand all details before changing the
    +" regular expressions below or their order.
    +" The word boundaries are *not* the floating-point number boundaries
    +" because of a possible leading or trailing decimal point.
    +" The expressions below ensure that all valid number literals are
    +" highlighted, and invalid number literals are not.  For example,
    +"
    +" - a decimal point in '4.' at the end of a line is highlighted,
    +" - a second dot in 1.0.0 is not highlighted,
    +" - 08 is not highlighted,
    +" - 08e0 or 08j are highlighted,
    +"
    +" and so on, as specified in the 'Python Language Reference'.
    +" https://docs.python.org/2/reference/lexical_analysis.html#numeric-literals
    +" https://docs.python.org/3/reference/lexical_analysis.html#numeric-literals
    +if !exists("python_no_number_highlight")
    +  " numbers (including longs and complex)
    +  syn match   pythonNumber	"\<0[oO]\=\o\+[Ll]\=\>"
    +  syn match   pythonNumber	"\<0[xX]\x\+[Ll]\=\>"
    +  syn match   pythonNumber	"\<0[bB][01]\+[Ll]\=\>"
    +  syn match   pythonNumber	"\<\%([1-9]\d*\|0\)[Ll]\=\>"
    +  syn match   pythonNumber	"\<\d\+[jJ]\>"
    +  syn match   pythonNumber	"\<\d\+[eE][+-]\=\d\+[jJ]\=\>"
    +  syn match   pythonNumber
    +	\ "\<\d\+\.\%([eE][+-]\=\d\+\)\=[jJ]\=\%(\W\|$\)\@="
    +  syn match   pythonNumber
    +	\ "\%(^\|\W\)\zs\d*\.\d\+\%([eE][+-]\=\d\+\)\=[jJ]\=\>"
    +endif
    +
    +" Group the built-ins in the order in the 'Python Library Reference' for
    +" easier comparison.
    +" https://docs.python.org/2/library/constants.html
    +" https://docs.python.org/3/library/constants.html
    +" http://docs.python.org/2/library/functions.html
    +" http://docs.python.org/3/library/functions.html
    +" http://docs.python.org/2/library/functions.html#non-essential-built-in-functions
    +" http://docs.python.org/3/library/functions.html#non-essential-built-in-functions
    +" Python built-in functions are in alphabetical order.
    +if !exists("python_no_builtin_highlight")
    +  " built-in constants
    +  " 'False', 'True', and 'None' are also reserved words in Python 3
    +  syn keyword pythonBuiltin	False True None
    +  syn keyword pythonBuiltin	NotImplemented Ellipsis __debug__
    +  " built-in functions
    +  syn keyword pythonBuiltin	abs all any bin bool bytearray callable chr
    +  syn keyword pythonBuiltin	classmethod compile complex delattr dict dir
    +  syn keyword pythonBuiltin	divmod enumerate eval filter float format
    +  syn keyword pythonBuiltin	frozenset getattr globals hasattr hash
    +  syn keyword pythonBuiltin	help hex id input int isinstance
    +  syn keyword pythonBuiltin	issubclass iter len list locals map max
    +  syn keyword pythonBuiltin	memoryview min next object oct open ord pow
    +  syn keyword pythonBuiltin	print property range repr reversed round set
    +  syn keyword pythonBuiltin	setattr slice sorted staticmethod str
    +  syn keyword pythonBuiltin	sum super tuple type vars zip __import__
    +  " Python 2 only
    +  syn keyword pythonBuiltin	basestring cmp execfile file
    +  syn keyword pythonBuiltin	long raw_input reduce reload unichr
    +  syn keyword pythonBuiltin	unicode xrange
    +  " Python 3 only
    +  syn keyword pythonBuiltin	ascii bytes exec
    +  " non-essential built-in functions; Python 2 only
    +  syn keyword pythonBuiltin	apply buffer coerce intern
    +  " avoid highlighting attributes as builtins
    +  syn match   pythonAttribute	/\.\h\w*/hs=s+1
    +	\ contains=ALLBUT,pythonBuiltin,pythonFunction,pythonAsync
    +	\ transparent
    +endif
    +
    +" From the 'Python Library Reference' class hierarchy at the bottom.
    +" http://docs.python.org/2/library/exceptions.html
    +" http://docs.python.org/3/library/exceptions.html
    +if !exists("python_no_exception_highlight")
    +  " builtin base exceptions (used mostly as base classes for other exceptions)
    +  syn keyword pythonExceptions	BaseException Exception
    +  syn keyword pythonExceptions	ArithmeticError BufferError
    +  syn keyword pythonExceptions	LookupError
    +  " builtin base exceptions removed in Python 3
    +  syn keyword pythonExceptions	EnvironmentError StandardError
    +  " builtin exceptions (actually raised)
    +  syn keyword pythonExceptions	AssertionError AttributeError
    +  syn keyword pythonExceptions	EOFError FloatingPointError GeneratorExit
    +  syn keyword pythonExceptions	ImportError IndentationError
    +  syn keyword pythonExceptions	IndexError KeyError KeyboardInterrupt
    +  syn keyword pythonExceptions	MemoryError NameError NotImplementedError
    +  syn keyword pythonExceptions	OSError OverflowError ReferenceError
    +  syn keyword pythonExceptions	RuntimeError StopIteration SyntaxError
    +  syn keyword pythonExceptions	SystemError SystemExit TabError TypeError
    +  syn keyword pythonExceptions	UnboundLocalError UnicodeError
    +  syn keyword pythonExceptions	UnicodeDecodeError UnicodeEncodeError
    +  syn keyword pythonExceptions	UnicodeTranslateError ValueError
    +  syn keyword pythonExceptions	ZeroDivisionError
    +  " builtin OS exceptions in Python 3
    +  syn keyword pythonExceptions	BlockingIOError BrokenPipeError
    +  syn keyword pythonExceptions	ChildProcessError ConnectionAbortedError
    +  syn keyword pythonExceptions	ConnectionError ConnectionRefusedError
    +  syn keyword pythonExceptions	ConnectionResetError FileExistsError
    +  syn keyword pythonExceptions	FileNotFoundError InterruptedError
    +  syn keyword pythonExceptions	IsADirectoryError NotADirectoryError
    +  syn keyword pythonExceptions	PermissionError ProcessLookupError
    +  syn keyword pythonExceptions	RecursionError StopAsyncIteration
    +  syn keyword pythonExceptions	TimeoutError
    +  " builtin exceptions deprecated/removed in Python 3
    +  syn keyword pythonExceptions	IOError VMSError WindowsError
    +  " builtin warnings
    +  syn keyword pythonExceptions	BytesWarning DeprecationWarning FutureWarning
    +  syn keyword pythonExceptions	ImportWarning PendingDeprecationWarning
    +  syn keyword pythonExceptions	RuntimeWarning SyntaxWarning UnicodeWarning
    +  syn keyword pythonExceptions	UserWarning Warning
    +  " builtin warnings in Python 3
    +  syn keyword pythonExceptions	ResourceWarning
    +endif
    +
    +if exists("python_space_error_highlight")
    +  " trailing whitespace
    +  syn match   pythonSpaceError	display excludenl "\s\+$"
    +  " mixed tabs and spaces
    +  syn match   pythonSpaceError	display " \+\t"
    +  syn match   pythonSpaceError	display "\t\+ "
    +endif
    +
    +" Do not spell doctests inside strings.
    +" Notice that the end of a string, either ''', or """, will end the contained
    +" doctest too.  Thus, we do *not* need to have it as an end pattern.
    +if !exists("python_no_doctest_highlight")
    +  if !exists("python_no_doctest_code_highlight")
    +    syn region pythonDoctest
    +	  \ start="^\s*>>>\s" end="^\s*$"
    +	  \ contained contains=ALLBUT,pythonDoctest,pythonFunction,@Spell
    +    syn region pythonDoctestValue
    +	  \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$"
    +	  \ contained
    +  else
    +    syn region pythonDoctest
    +	  \ start="^\s*>>>" end="^\s*$"
    +	  \ contained contains=@NoSpell
    +  endif
    +endif
    +
    +" Sync at the beginning of class, function, or method definition.
    +syn sync match pythonSync grouphere NONE "^\%(def\|class\)\s\+\h\w*\s*[(:]"
    +
    +" The default highlight links.  Can be overridden later.
    +hi def link pythonStatement		Statement
    +hi def link pythonConditional		Conditional
    +hi def link pythonRepeat		Repeat
    +hi def link pythonOperator		Operator
    +hi def link pythonException		Exception
    +hi def link pythonInclude		Include
    +hi def link pythonAsync			Statement
    +hi def link pythonDecorator		Define
    +hi def link pythonDecoratorName		Function
    +hi def link pythonFunction		Function
    +hi def link pythonComment		Comment
    +hi def link pythonTodo			Todo
    +hi def link pythonString		String
    +hi def link pythonRawString		String
    +hi def link pythonQuotes		String
    +hi def link pythonTripleQuotes		pythonQuotes
    +hi def link pythonEscape		Special
    +hi def link pythonUnicodeEscape		pythonEscape
    +if !exists("python_no_number_highlight")
    +  hi def link pythonNumber		Number
    +endif
    +if !exists("python_no_builtin_highlight")
    +  hi def link pythonBuiltin		Function
    +endif
    +if !exists("python_no_exception_highlight")
    +  hi def link pythonExceptions		Structure
    +endif
    +if exists("python_space_error_highlight")
    +  hi def link pythonSpaceError		Error
    +endif
    +if !exists("python_no_doctest_highlight")
    +  hi def link pythonDoctest		Special
    +  hi def link pythonDoctestValue	Define
    +endif
    +
    +let b:current_syntax = "python"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim:set sw=2 sts=2 ts=8 noet:
    diff --git a/git/usr/share/vim/vim92/syntax/qb64.vim b/git/usr/share/vim/vim92/syntax/qb64.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..a777e144810526670ef0c3d3c8d2fd1b0867526a
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/qb64.vim
    @@ -0,0 +1,409 @@
    +" Vim syntax file
    +" Language:	QB64
    +" Maintainer:	Doug Kearns 
    +" Last Change:	2022 Jan 21
    +
    +" Prelude {{{1
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" syn iskeyword set after sourcing of basic.vim
    +
    +syn case ignore
    +
    +let s:prefix = search('\c^\s*$NOPREFIX\>', 'n') ? '_\=' : '_'
    +
    +" Statements {{{1
    +
    +let s:statements =<< trim EOL " {{{2
    +  acceptfiledrop
    +  allowfullscreen
    +  assert
    +  console
    +  consolecursor
    +  consolefont
    +  consoletitle
    +  continue
    +  copypalette
    +  define
    +  delay
    +  depthbuffer
    +  displayorder
    +  dontblend
    +  echo
    +  exit\s\+\%(select\|case\)
    +  finishdrop
    +  freefont
    +  freeimage
    +  icon
    +  keyclear
    +  limit
    +  maptriangle
    +  memcopy
    +  memfill
    +  memfree
    +  memput
    +  mousehide
    +  mousemove
    +  mouseshow
    +  printimage
    +  printstring
    +  putimage
    +  screenclick
    +  screenhide
    +  screenmove
    +  screenprint
    +  screenshow
    +  setalpha
    +  sndbal
    +  sndclose
    +  sndlimit
    +  sndloop
    +  sndpause
    +  sndplay
    +  sndplaycopy
    +  sndplayfile
    +  sndraw
    +  sndrawdone
    +  sndsetpos
    +  sndstop
    +  sndvol
    +  title
    +EOL
    +" }}}
    +
    +for s in s:statements
    +  exe 'syn match qb64Statement "\<' .. s:prefix .. s .. '\>" contained contains=qb64Underscore'
    +endfor
    +
    +" Functions {{{1
    +
    +let s:functions =<< trim EOL " {{{2
    +  acos
    +  acosh
    +  alpha
    +  alpha32
    +  arccot
    +  arccsc
    +  arcsec
    +  asin
    +  asinh
    +  atan2
    +  atanh
    +  axis
    +  backgroundcolor
    +  blue
    +  blue32
    +  button
    +  buttonchange
    +  ceil
    +  cinp
    +  commandcount
    +  connected
    +  connectionaddress
    +  connectionaddress$
    +  consoleinput
    +  copyimage
    +  cot
    +  coth
    +  cosh
    +  csc
    +  csch
    +  cv
    +  cwd$
    +  d2g
    +  d2r
    +  defaultcolor
    +  deflate$
    +  desktopheight
    +  desktopwidth
    +  device$
    +  deviceinput
    +  devices
    +  dir$
    +  direxists
    +  droppedfile
    +  droppedfile$
    +  errorline
    +  errormessage$
    +  exit
    +  fileexists
    +  fontheight
    +  fontwidth
    +  freetimer
    +  g2d
    +  g2r
    +  green
    +  green32
    +  height
    +  hypot
    +  inclerrorfile$
    +  inclerrorline
    +  inflate$
    +  instrrev
    +  keyhit
    +  keydown
    +  lastaxis
    +  lastbutton
    +  lastwheel
    +  loadfont
    +  loadimage
    +  mem
    +  memelement
    +  memexists
    +  memimage
    +  memnew
    +  memsound
    +  mk$
    +  mousebutton
    +  mouseinput
    +  mousemovementx
    +  mousemovementy
    +  mousepipeopen
    +  mousewheel
    +  mousex
    +  mousey
    +  newimage
    +  offset
    +  openclient
    +  os$
    +  pi
    +  pixelsize
    +  printwidth
    +  r2d
    +  r2g
    +  red
    +  red32
    +  readbit
    +  resetbit
    +  resizeheight
    +  resizewidth
    +  rgb
    +  rgb32
    +  rgba
    +  rgba32
    +  round
    +  sec
    +  sech
    +  screenexists
    +  screenimage
    +  screenx
    +  screeny
    +  setbit
    +  shellhide
    +  shl
    +  shr
    +  sinh
    +  sndcopy
    +  sndgetpos
    +  sndlen
    +  sndopen
    +  sndopenraw
    +  sndpaused
    +  sndplaying
    +  sndrate
    +  sndrawlen
    +  startdir$
    +  strcmp
    +  stricmp
    +  tanh
    +  title$
    +  togglebit
    +  totaldroppedfiles
    +  trim$
    +  wheel
    +  width
    +  windowhandle
    +  windowhasfocus
    +EOL
    +" }}}
    +
    +for f in s:functions
    +  exe 'syn match qb64Function "\<' .. s:prefix .. f .. '\>" contains=qb64Underscore'
    +endfor
    +
    +" Functions and statements (same name) {{{1
    +
    +let s:common =<< trim EOL " {{{2
    +  autodisplay
    +  blend
    +  blink
    +  capslock
    +  clearcolor
    +  clipboard$
    +  clipboardimage
    +  controlchr
    +  dest
    +  display
    +  font
    +  fullscreen
    +  mapunicode
    +  memget
    +  numlock
    +  palettecolor
    +  printmode
    +  resize
    +  screenicon
    +  scrolllock
    +  source
    +EOL
    +" }}}
    +
    +for c in s:common
    +  exe 'syn match qb64Statement "\<' .. s:prefix .. c .. '\>" contains=qb64Underscore contained'
    +  exe 'syn match qb64Function  "\<' .. s:prefix .. c .. '\>" contains=qb64Underscore'
    +endfor
    +
    +" Keywords {{{1
    +
    +" Non-prefixed keywords {{{2
    +" TIMER FREE
    +" _DEPTH_BUFFER LOCK
    +syn keyword qb64Keyword free lock
    +
    +let s:keywords  =<< trim EOL " {{{2
    +  all
    +  anticlockwise
    +  behind
    +  clear
    +  clip
    +  console
    +  dontwait
    +  explicit
    +  explicitarray
    +  fillbackground
    +  hardware
    +  hardware1
    +  hide
    +  keepbackground
    +  middle
    +  none
    +  off
    +  only
    +  onlybackground
    +  ontop
    +  openconnection
    +  openhost
    +  preserve
    +  seamless
    +  smooth
    +  smoothshrunk
    +  smoothstretched
    +  software
    +  squarepixels
    +  stretch
    +  toggle
    +EOL
    +" }}}
    +
    +for k in s:keywords
    +  exe 'syn match qb64Keyword "\<' .. s:prefix .. k .. '\>" contains=qb64Underscore'
    +endfor
    +
    +syn match qb64Underscore "\<_" contained conceal transparent
    +
    +" Source QuickBASIC syntax {{{1
    +runtime! syntax/basic.vim
    +
    +" add after the BASIC syntax file is sourced so cluster already exists
    +syn cluster basicStatements	add=qb64Statement,qb64Metacommand,qb64IfMetacommand
    +syn cluster basicLineIdentifier add=qb64LineLabel
    +syn cluster qb64NotTop		contains=@basicNotTop,qb64Metavariable
    +
    +syn iskeyword @,48-57,.,_,!,#,$,%,&,`
    +
    +" Unsupported QuickBASIC features {{{1
    +" TODO: add linux only missing features
    +syn keyword qb64Unsupported alias any byval calls cdecl erdev erdev$ fileattr
    +syn keyword qb64Unsupported fre ioctl ioctl$ pen play setmem signal uevent
    +syn keyword qb64Unsupported tron troff
    +syn match   qb64Unsupported "\\)\@="
    +syn match   qb64Unsupported "\<\%(date\|time\)$\ze\s*=" " statements only
    +syn match   qb64Unsupported "\"
    +syn match   qb64Unsupported "\"
    +
    +" Types {{{1
    +syn keyword qb64Type _BIT _BYTE _FLOAT _INTEGER64 _MEM _OFFSET _UNSIGNED
    +
    +" Type suffixes {{{1
    +if exists("basic_type_suffixes")
    +  " TODO: handle leading word boundary and __+ prefix
    +  syn match qb64TypeSuffix "\%(\a[[:alnum:]._]*\)\@<=\~\=`\%(\d\+\)\="
    +  syn match qb64TypeSuffix "\%(\a[[:alnum:]._]*\)\@<=\~\=\%(%\|%%\|&\|&&\|%&\)"
    +  syn match qb64TypeSuffix "\%(\a[[:alnum:]._]*\)\@<=\%(!\|##\|#\)"
    +  syn match qb64TypeSuffix "\%(\a[[:alnum:]._]*\)\@<=$\%(\d\+\)\="
    +endif
    +
    +" Numbers {{{1
    +
    +" Integers
    +syn match qb64Number "-\=&b[01]\+&\>\="
    +
    +syn match qb64Number "-\=\<[01]\~\=`\>"
    +syn match qb64Number "-\=\<\d\+`\d\+\>"
    +
    +syn match qb64Number "-\=\<\d\+\%(%%\|&&\|%&\)\>"
    +syn match qb64Number  "\<\d\+\~\%(%%\|&&\|%&\)\>"
    +
    +syn match qb64Number "-\=\<&b[01]\+\%(%%\|&&\|%&\)\>"
    +syn match qb64Number  "\<&b[01]\+\~\%(%%\|&&\|%&\)\>"
    +
    +syn match qb64Number "-\=\<&o\=\o\+\%(%%\|&&\|%&\)\>"
    +syn match qb64Number  "\<&o\=\o\+\~\%(%%\|&&\|%&\)\>"
    +
    +syn match qb64Number "-\=\<&h\x\+\%(%%\|&&\|%&\)\>"
    +syn match qb64Number  "\<&h\x\+\~\%(%%\|&&\|%&\)\>"
    +
    +" Floats
    +syn match qb64Float "-\=\<\d\+\.\=\d*##\>"
    +syn match qb64Float "-\=\<\.\d\+##\>"
    +
    +" Line numbers and labels {{{1
    +syn match qb64LineLabel  "\%(_\{2,}\)\=\a[[:alnum:]._]*[[:alnum:]]\ze\s*:" nextgroup=@basicStatements skipwhite contained
    +
    +" Metacommands {{{1
    +syn match qb64Metacommand contained "$NOPREFIX\>"
    +syn match qb64Metacommand contained "$ASSERTS\%(:CONSOLE\)\=\>"
    +syn match qb64Metacommand contained "$CHECKING:\%(ON\|OFF\)\>"
    +syn match qb64Metacommand contained "$COLOR:\%(0\|32\)\>"
    +syn match qb64Metacommand contained "$CONSOLE\%(:ONLY\)\=\>"
    +syn match qb64Metacommand contained "$EXEICON\s*:\s*'[^']\+'"
    +syn match qb64Metacommand contained "$ERROR\>"
    +syn match qb64Metacommand contained "$LET\>"
    +syn match qb64Metacommand contained "$RESIZE:\%(ON\|OFF\|STRETCH\|SMOOTH\)\>"
    +syn match qb64Metacommand contained "$SCREEN\%(HIDE\|SHOW\)\>"
    +syn match qb64Metacommand contained "$VERSIONINFO\s*:.*"
    +syn match qb64Metacommand contained "$VIRTUALKEYBOARD:\%(ON\|OFF\)\>"
    +
    +syn region qb64IfMetacommand contained matchgroup=qb64Metacommand start="$\%(IF\|ELSEIF\)\>" end="\" oneline transparent contains=qb64Metavariable
    +syn match  qb64Metacommand contained "$\%(ELSE\|END\s*IF\)\>"
    +
    +syn keyword qb64Metavariable contained defined undefined
    +syn keyword qb64Metavariable contained windows win linux mac maxosx
    +syn keyword qb64Metavariable contained 32bit 64bit version
    +
    +" Default Highlighting {{{1
    +hi def link qb64Float	      basicFloat
    +hi def link qb64Function      Function
    +hi def link qb64Keyword       Keyword
    +hi def link qb64LineLabel     basicLineLabel
    +hi def link qb64Metacommand   PreProc
    +hi def link qb64Metavariable  Identifier
    +hi def link qb64Number	      basicNumber
    +hi def link qb64Statement     Statement
    +hi def link qb64TypeSuffix    basicTypeSuffix
    +hi def link qb64Type	      Type
    +hi def link qb64Unsupported   Error
    +
    +" Postscript {{{1
    +let b:current_syntax = "qb64"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:
    diff --git a/git/usr/share/vim/vim92/syntax/qf.vim b/git/usr/share/vim/vim92/syntax/qf.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..6038983a1b72d3319d90011a7e750fba5b5200db
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/qf.vim
    @@ -0,0 +1,34 @@
    +" Vim syntax file
    +" Language:		Quickfix window
    +" Maintainer:		The Vim Project 
    +" Last Change:		2026 Jan 31
    +" Former Maintainer:	Bram Moolenaar 
    +
    +" Quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn match	qfFileName	"^[^|]*"	   nextgroup=qfSeparator1
    +syn match	qfSeparator1	"|"	 contained nextgroup=qfLineNr
    +syn match	qfLineNr	"[^|]*"	 contained nextgroup=qfSeparator2 contains=@qfType
    +syn match	qfSeparator2	"|"	 contained nextgroup=qfText
    +syn match	qfText		".*"	 contained
    +
    +syn match	qfError		"error"	  contained
    +syn match	qfWarning	"warning" contained
    +syn match	qfNote		"note"    contained
    +syn match	qfInfo		"info"    contained
    +syn cluster	qfType		contains=qfError,qfWarning,qfNote,qfInfo
    +
    +" The default highlighting.
    +hi def link qfFileName		Directory
    +hi def link qfLineNr		LineNr
    +hi def link qfSeparator1	Delimiter
    +hi def link qfSeparator2	Delimiter
    +hi def link qfText		Normal
    +hi def link qfError		Error
    +
    +let b:current_syntax = "qf"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/qml.vim b/git/usr/share/vim/vim92/syntax/qml.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..d6f2abec373813d5114c685551f0f9f3b39b6402
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/qml.vim
    @@ -0,0 +1,1130 @@
    +" Vim syntax file
    +" Language:     QML
    +" Previous Maintainer: Peter Hoeg 
    +" Maintainer:   Chase Knowlden 
    +" Changes:      `git log` is your friend
    +" Last Change:  2023 Aug 16
    +"
    +" This file is bassed on the original work done by Warwick Allison
    +"  whose did about 99% of the work here.
    +
    +" Based on javascript syntax (as is QML)
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +if !exists("main_syntax")
    +  let main_syntax = 'qml'
    +endif
    +
    +" Drop fold if it set but vim doesn't support it.
    +if !has("folding")
    +  unlet! qml_fold
    +endif
    +
    +syn case ignore
    +
    +syn cluster qmlExpr              contains=qmlStringD,qmlStringS,qmlStringT,SqmlCharacter,qmlNumber,qmlObjectLiteralType,qmlBoolean,qmlType,qmlJsType,qmlNull,qmlGlobal,qmlFunction,qmlArrowFunction,qmlNullishCoalescing
    +syn keyword qmlCommentTodo       TODO FIXME XXX TBD contained
    +syn match   qmlLineComment       "\/\/.*" contains=@Spell,qmlCommentTodo
    +syn match   qmlCommentSkip       "^[ \t]*\*\($\|[ \t]\+\)"
    +syn region  qmlComment           start="/\*"  end="\*/" contains=@Spell,qmlCommentTodo fold
    +syn match   qmlSpecial           "\\\d\d\d\|\\."
    +syn region  qmlStringD           start=+"+  skip=+\\\\\|\\"\|\\$+  end=+"+  keepend  contains=qmlSpecial,@htmlPreproc,@Spell
    +syn region  qmlStringS           start=+'+  skip=+\\\\\|\\'\|\\$+  end=+'+  keepend  contains=qmlSpecial,@htmlPreproc,@Spell
    +syn region  qmlStringT           start=+`+  skip=+\\\\\|\\`\|\\$+  end=+`+  keepend  contains=qmlTemplateExpr,qmlSpecial,@htmlPreproc,@Spell
    +
    +syntax region  qmlTemplateExpr contained  matchgroup=qmlBraces start=+${+ end=+}+  keepend  contains=@qmlExpr
    +
    +syn match   qmlCharacter         "'\\.'"
    +syn match   qmlNumber            "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
    +syn region  qmlRegexpString      start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
    +syn match   qmlObjectLiteralType "[A-Za-z][_A-Za-z0-9]*\s*\({\)\@="
    +syn region  qmlTernaryColon   start="?" end=":" contains=@qmlExpr,qmlBraces,qmlParens,qmlLineComment
    +syn match   qmlBindingProperty   "\<[A-Za-z][_A-Za-z.0-9]*\s*:"
    +syn match  qmlNullishCoalescing    "??"
    +
    +syn keyword qmlConditional       if else switch
    +syn keyword qmlRepeat            while for do in
    +syn keyword qmlBranch            break continue
    +syn keyword qmlOperator          new delete instanceof typeof
    +syn keyword qmlJsType            Array Boolean Date Function Number Object String RegExp
    +syn keyword qmlType              action alias bool color date double enumeration font int list point real rect size string time url variant vector2d vector3d vector4d coordinate geocircle geopath geopolygon georectangle geoshape matrix4x4 palette quaternion
    +syn keyword qmlStatement         return with
    +syn keyword qmlBoolean           true false
    +syn keyword qmlNull              null undefined
    +syn keyword qmlIdentifier        arguments this var let const
    +syn keyword qmlLabel             case default
    +syn keyword qmlException         try catch finally throw
    +syn keyword qmlMessage           alert confirm prompt status
    +syn keyword qmlGlobal            self
    +syn keyword qmlDeclaration       property signal component readonly required
    +syn keyword qmlReserved          abstract boolean byte char class debugger enum export extends final float goto implements import interface long native package pragma private protected public short static super synchronized throws transient volatile
    +
    +syn case match
    +
    +" List extracted in alphabatical order from: https://doc.qt.io/qt-5/qmltypes.html
    +" Qt v5.15.1
    +
    +" Begin Literal Types {{{
    +
    +syntax keyword qmlObjectLiteralType Abstract3DSeries
    +syntax keyword qmlObjectLiteralType AbstractActionInput
    +syntax keyword qmlObjectLiteralType AbstractAnimation
    +syntax keyword qmlObjectLiteralType AbstractAxis
    +syntax keyword qmlObjectLiteralType AbstractAxis3D
    +syntax keyword qmlObjectLiteralType AbstractAxisInput
    +syntax keyword qmlObjectLiteralType AbstractBarSeries
    +syntax keyword qmlObjectLiteralType AbstractButton
    +syntax keyword qmlObjectLiteralType AbstractClipAnimator
    +syntax keyword qmlObjectLiteralType AbstractClipBlendNode
    +syntax keyword qmlObjectLiteralType AbstractDataProxy
    +syntax keyword qmlObjectLiteralType AbstractGraph3D
    +syntax keyword qmlObjectLiteralType AbstractInputHandler3D
    +syntax keyword qmlObjectLiteralType AbstractPhysicalDevice
    +syntax keyword qmlObjectLiteralType AbstractRayCaster
    +syntax keyword qmlObjectLiteralType AbstractSeries
    +syntax keyword qmlObjectLiteralType AbstractSkeleton
    +syntax keyword qmlObjectLiteralType AbstractTexture
    +syntax keyword qmlObjectLiteralType AbstractTextureImage
    +syntax keyword qmlObjectLiteralType Accelerometer
    +syntax keyword qmlObjectLiteralType AccelerometerReading
    +syntax keyword qmlObjectLiteralType Accessible
    +syntax keyword qmlObjectLiteralType Action
    +syntax keyword qmlObjectLiteralType ActionGroup
    +syntax keyword qmlObjectLiteralType ActionInput
    +syntax keyword qmlObjectLiteralType AdditiveClipBlend
    +syntax keyword qmlObjectLiteralType AdditiveColorGradient
    +syntax keyword qmlObjectLiteralType Address
    +syntax keyword qmlObjectLiteralType Affector
    +syntax keyword qmlObjectLiteralType Age
    +syntax keyword qmlObjectLiteralType AlphaCoverage
    +syntax keyword qmlObjectLiteralType AlphaTest
    +syntax keyword qmlObjectLiteralType Altimeter
    +syntax keyword qmlObjectLiteralType AltimeterReading
    +syntax keyword qmlObjectLiteralType AluminumAnodizedEmissiveMaterial
    +syntax keyword qmlObjectLiteralType AluminumAnodizedMaterial
    +syntax keyword qmlObjectLiteralType AluminumBrushedMaterial
    +syntax keyword qmlObjectLiteralType AluminumEmissiveMaterial
    +syntax keyword qmlObjectLiteralType AluminumMaterial
    +syntax keyword qmlObjectLiteralType AmbientLightReading
    +syntax keyword qmlObjectLiteralType AmbientLightSensor
    +syntax keyword qmlObjectLiteralType AmbientTemperatureReading
    +syntax keyword qmlObjectLiteralType AmbientTemperatureSensor
    +syntax keyword qmlObjectLiteralType AnalogAxisInput
    +syntax keyword qmlObjectLiteralType AnchorAnimation
    +syntax keyword qmlObjectLiteralType AnchorChanges
    +syntax keyword qmlObjectLiteralType AngleDirection
    +syntax keyword qmlObjectLiteralType AnimatedImage
    +syntax keyword qmlObjectLiteralType AnimatedSprite
    +syntax keyword qmlObjectLiteralType Animation
    +syntax keyword qmlObjectLiteralType AnimationController
    +syntax keyword qmlObjectLiteralType AnimationGroup
    +syntax keyword qmlObjectLiteralType Animator
    +syntax keyword qmlObjectLiteralType ApplicationWindow
    +syntax keyword qmlObjectLiteralType ApplicationWindowStyle
    +syntax keyword qmlObjectLiteralType AreaLight
    +syntax keyword qmlObjectLiteralType AreaSeries
    +syntax keyword qmlObjectLiteralType Armature
    +syntax keyword qmlObjectLiteralType AttenuationModelInverse
    +syntax keyword qmlObjectLiteralType AttenuationModelLinear
    +syntax keyword qmlObjectLiteralType Attractor
    +syntax keyword qmlObjectLiteralType Attribute
    +syntax keyword qmlObjectLiteralType Audio
    +syntax keyword qmlObjectLiteralType AudioCategory
    +syntax keyword qmlObjectLiteralType AudioEngine
    +syntax keyword qmlObjectLiteralType AudioListener
    +syntax keyword qmlObjectLiteralType AudioSample
    +syntax keyword qmlObjectLiteralType AuthenticationDialogRequest
    +syntax keyword qmlObjectLiteralType Axis
    +syntax keyword qmlObjectLiteralType AxisAccumulator
    +syntax keyword qmlObjectLiteralType AxisHelper
    +syntax keyword qmlObjectLiteralType AxisSetting
    +
    +syntax keyword qmlObjectLiteralType BackspaceKey
    +syntax keyword qmlObjectLiteralType Bar3DSeries
    +syntax keyword qmlObjectLiteralType BarCategoryAxis
    +syntax keyword qmlObjectLiteralType BarDataProxy
    +syntax keyword qmlObjectLiteralType Bars3D
    +syntax keyword qmlObjectLiteralType BarSeries
    +syntax keyword qmlObjectLiteralType BarSet
    +syntax keyword qmlObjectLiteralType BaseKey
    +syntax keyword qmlObjectLiteralType BasicTableView
    +syntax keyword qmlObjectLiteralType Behavior
    +syntax keyword qmlObjectLiteralType Binding
    +syntax keyword qmlObjectLiteralType Blend
    +syntax keyword qmlObjectLiteralType BlendedClipAnimator
    +syntax keyword qmlObjectLiteralType BlendEquation
    +syntax keyword qmlObjectLiteralType BlendEquationArguments
    +syntax keyword qmlObjectLiteralType Blending
    +syntax keyword qmlObjectLiteralType BlitFramebuffer
    +syntax keyword qmlObjectLiteralType BluetoothDiscoveryModel
    +syntax keyword qmlObjectLiteralType BluetoothService
    +syntax keyword qmlObjectLiteralType BluetoothSocket
    +syntax keyword qmlObjectLiteralType Blur
    +syntax keyword qmlObjectLiteralType bool
    +syntax keyword qmlObjectLiteralType BorderImage
    +syntax keyword qmlObjectLiteralType BorderImageMesh
    +syntax keyword qmlObjectLiteralType BoundaryRule
    +syntax keyword qmlObjectLiteralType Bounds
    +syntax keyword qmlObjectLiteralType BoxPlotSeries
    +syntax keyword qmlObjectLiteralType BoxSet
    +syntax keyword qmlObjectLiteralType BrightnessContrast
    +syntax keyword qmlObjectLiteralType BrushStrokes
    +syntax keyword qmlObjectLiteralType Buffer
    +syntax keyword qmlObjectLiteralType BufferBlit
    +syntax keyword qmlObjectLiteralType BufferCapture
    +syntax keyword qmlObjectLiteralType BufferInput
    +syntax keyword qmlObjectLiteralType BusyIndicator
    +syntax keyword qmlObjectLiteralType BusyIndicatorStyle
    +syntax keyword qmlObjectLiteralType Button
    +syntax keyword qmlObjectLiteralType ButtonAxisInput
    +syntax keyword qmlObjectLiteralType ButtonGroup
    +syntax keyword qmlObjectLiteralType ButtonStyle
    +
    +syntax keyword qmlObjectLiteralType Calendar
    +syntax keyword qmlObjectLiteralType CalendarModel
    +syntax keyword qmlObjectLiteralType CalendarStyle
    +syntax keyword qmlObjectLiteralType Camera
    +syntax keyword qmlObjectLiteralType Camera3D
    +syntax keyword qmlObjectLiteralType CameraCapabilities
    +syntax keyword qmlObjectLiteralType CameraCapture
    +syntax keyword qmlObjectLiteralType CameraExposure
    +syntax keyword qmlObjectLiteralType CameraFlash
    +syntax keyword qmlObjectLiteralType CameraFocus
    +syntax keyword qmlObjectLiteralType CameraImageProcessing
    +syntax keyword qmlObjectLiteralType CameraLens
    +syntax keyword qmlObjectLiteralType CameraRecorder
    +syntax keyword qmlObjectLiteralType CameraSelector
    +syntax keyword qmlObjectLiteralType CandlestickSeries
    +syntax keyword qmlObjectLiteralType CandlestickSet
    +syntax keyword qmlObjectLiteralType Canvas
    +syntax keyword qmlObjectLiteralType CanvasGradient
    +syntax keyword qmlObjectLiteralType CanvasImageData
    +syntax keyword qmlObjectLiteralType CanvasPixelArray
    +syntax keyword qmlObjectLiteralType Category
    +syntax keyword qmlObjectLiteralType CategoryAxis
    +syntax keyword qmlObjectLiteralType CategoryAxis3D
    +syntax keyword qmlObjectLiteralType CategoryModel
    +syntax keyword qmlObjectLiteralType CategoryRange
    +syntax keyword qmlObjectLiteralType ChangeLanguageKey
    +syntax keyword qmlObjectLiteralType ChartView
    +syntax keyword qmlObjectLiteralType CheckBox
    +syntax keyword qmlObjectLiteralType CheckBoxStyle
    +syntax keyword qmlObjectLiteralType CheckDelegate
    +syntax keyword qmlObjectLiteralType ChromaticAberration
    +syntax keyword qmlObjectLiteralType CircularGauge
    +syntax keyword qmlObjectLiteralType CircularGaugeStyle
    +syntax keyword qmlObjectLiteralType ClearBuffers
    +syntax keyword qmlObjectLiteralType ClipAnimator
    +syntax keyword qmlObjectLiteralType ClipBlendValue
    +syntax keyword qmlObjectLiteralType ClipPlane
    +syntax keyword qmlObjectLiteralType CloseEvent
    +syntax keyword qmlObjectLiteralType color
    +syntax keyword qmlObjectLiteralType ColorAnimation
    +syntax keyword qmlObjectLiteralType ColorDialog
    +syntax keyword qmlObjectLiteralType ColorDialogRequest
    +syntax keyword qmlObjectLiteralType ColorGradient
    +syntax keyword qmlObjectLiteralType ColorGradientStop
    +syntax keyword qmlObjectLiteralType Colorize
    +syntax keyword qmlObjectLiteralType ColorMask
    +syntax keyword qmlObjectLiteralType ColorMaster
    +syntax keyword qmlObjectLiteralType ColorOverlay
    +syntax keyword qmlObjectLiteralType Column
    +syntax keyword qmlObjectLiteralType ColumnLayout
    +syntax keyword qmlObjectLiteralType ComboBox
    +syntax keyword qmlObjectLiteralType ComboBoxStyle
    +syntax keyword qmlObjectLiteralType Command
    +syntax keyword qmlObjectLiteralType Compass
    +syntax keyword qmlObjectLiteralType CompassReading
    +syntax keyword qmlObjectLiteralType Component
    +syntax keyword qmlObjectLiteralType Component3D
    +syntax keyword qmlObjectLiteralType ComputeCommand
    +syntax keyword qmlObjectLiteralType ConeGeometry
    +syntax keyword qmlObjectLiteralType ConeMesh
    +syntax keyword qmlObjectLiteralType ConicalGradient
    +syntax keyword qmlObjectLiteralType Connections
    +syntax keyword qmlObjectLiteralType ContactDetail
    +syntax keyword qmlObjectLiteralType ContactDetails
    +syntax keyword qmlObjectLiteralType Container
    +syntax keyword qmlObjectLiteralType Context2D
    +syntax keyword qmlObjectLiteralType ContextMenuRequest
    +syntax keyword qmlObjectLiteralType Control
    +syntax keyword qmlObjectLiteralType coordinate
    +syntax keyword qmlObjectLiteralType CoordinateAnimation
    +syntax keyword qmlObjectLiteralType CopperMaterial
    +syntax keyword qmlObjectLiteralType CuboidGeometry
    +syntax keyword qmlObjectLiteralType CuboidMesh
    +syntax keyword qmlObjectLiteralType CullFace
    +syntax keyword qmlObjectLiteralType CullMode
    +syntax keyword qmlObjectLiteralType CumulativeDirection
    +syntax keyword qmlObjectLiteralType Custom3DItem
    +syntax keyword qmlObjectLiteralType Custom3DLabel
    +syntax keyword qmlObjectLiteralType Custom3DVolume
    +syntax keyword qmlObjectLiteralType CustomCamera
    +syntax keyword qmlObjectLiteralType CustomMaterial
    +syntax keyword qmlObjectLiteralType CustomParticle
    +syntax keyword qmlObjectLiteralType CylinderGeometry
    +syntax keyword qmlObjectLiteralType CylinderMesh
    +
    +syntax keyword qmlObjectLiteralType Date
    +syntax keyword qmlObjectLiteralType date
    +syntax keyword qmlObjectLiteralType DateTimeAxis
    +syntax keyword qmlObjectLiteralType DayOfWeekRow
    +syntax keyword qmlObjectLiteralType DebugView
    +syntax keyword qmlObjectLiteralType DefaultMaterial
    +syntax keyword qmlObjectLiteralType DelayButton
    +syntax keyword qmlObjectLiteralType DelayButtonStyle
    +syntax keyword qmlObjectLiteralType DelegateChoice
    +syntax keyword qmlObjectLiteralType DelegateChooser
    +syntax keyword qmlObjectLiteralType DelegateModel
    +syntax keyword qmlObjectLiteralType DelegateModelGroup
    +syntax keyword qmlObjectLiteralType DepthInput
    +syntax keyword qmlObjectLiteralType DepthOfFieldHQBlur
    +syntax keyword qmlObjectLiteralType DepthRange
    +syntax keyword qmlObjectLiteralType DepthTest
    +syntax keyword qmlObjectLiteralType Desaturate
    +syntax keyword qmlObjectLiteralType Dial
    +syntax keyword qmlObjectLiteralType Dialog
    +syntax keyword qmlObjectLiteralType DialogButtonBox
    +syntax keyword qmlObjectLiteralType DialStyle
    +syntax keyword qmlObjectLiteralType DiffuseMapMaterial
    +syntax keyword qmlObjectLiteralType DiffuseSpecularMapMaterial
    +syntax keyword qmlObjectLiteralType DiffuseSpecularMaterial
    +syntax keyword qmlObjectLiteralType Direction
    +syntax keyword qmlObjectLiteralType DirectionalBlur
    +syntax keyword qmlObjectLiteralType DirectionalLight
    +syntax keyword qmlObjectLiteralType DispatchCompute
    +syntax keyword qmlObjectLiteralType Displace
    +syntax keyword qmlObjectLiteralType DistanceReading
    +syntax keyword qmlObjectLiteralType DistanceSensor
    +syntax keyword qmlObjectLiteralType DistortionRipple
    +syntax keyword qmlObjectLiteralType DistortionSphere
    +syntax keyword qmlObjectLiteralType DistortionSpiral
    +syntax keyword qmlObjectLiteralType Dithering
    +syntax keyword qmlObjectLiteralType double
    +syntax keyword qmlObjectLiteralType DoubleValidator
    +syntax keyword qmlObjectLiteralType Drag
    +syntax keyword qmlObjectLiteralType DragEvent
    +syntax keyword qmlObjectLiteralType DragHandler
    +syntax keyword qmlObjectLiteralType Drawer
    +syntax keyword qmlObjectLiteralType DropArea
    +syntax keyword qmlObjectLiteralType DropShadow
    +syntax keyword qmlObjectLiteralType DwmFeatures
    +syntax keyword qmlObjectLiteralType DynamicParameter
    +
    +syntax keyword qmlObjectLiteralType EdgeDetect
    +syntax keyword qmlObjectLiteralType EditorialModel
    +syntax keyword qmlObjectLiteralType Effect
    +syntax keyword qmlObjectLiteralType EllipseShape
    +syntax keyword qmlObjectLiteralType Emboss
    +syntax keyword qmlObjectLiteralType Emitter
    +syntax keyword qmlObjectLiteralType EnterKey
    +syntax keyword qmlObjectLiteralType EnterKeyAction
    +syntax keyword qmlObjectLiteralType Entity
    +syntax keyword qmlObjectLiteralType EntityLoader
    +syntax keyword qmlObjectLiteralType enumeration
    +syntax keyword qmlObjectLiteralType EnvironmentLight
    +syntax keyword qmlObjectLiteralType EventConnection
    +syntax keyword qmlObjectLiteralType EventPoint
    +syntax keyword qmlObjectLiteralType EventTouchPoint
    +syntax keyword qmlObjectLiteralType ExclusiveGroup
    +syntax keyword qmlObjectLiteralType ExtendedAttributes
    +syntax keyword qmlObjectLiteralType ExtrudedTextGeometry
    +syntax keyword qmlObjectLiteralType ExtrudedTextMesh
    +
    +syntax keyword qmlObjectLiteralType FastBlur
    +syntax keyword qmlObjectLiteralType FileDialog
    +syntax keyword qmlObjectLiteralType FileDialogRequest
    +syntax keyword qmlObjectLiteralType FillerKey
    +syntax keyword qmlObjectLiteralType FilterKey
    +syntax keyword qmlObjectLiteralType FinalState
    +syntax keyword qmlObjectLiteralType FindTextResult
    +syntax keyword qmlObjectLiteralType FirstPersonCameraController
    +syntax keyword qmlObjectLiteralType Flickable
    +syntax keyword qmlObjectLiteralType Flip
    +syntax keyword qmlObjectLiteralType Flipable
    +syntax keyword qmlObjectLiteralType Flow
    +syntax keyword qmlObjectLiteralType FocusScope
    +syntax keyword qmlObjectLiteralType FolderDialog
    +syntax keyword qmlObjectLiteralType FolderListModel
    +syntax keyword qmlObjectLiteralType font
    +syntax keyword qmlObjectLiteralType FontDialog
    +syntax keyword qmlObjectLiteralType FontLoader
    +syntax keyword qmlObjectLiteralType FontMetrics
    +syntax keyword qmlObjectLiteralType FormValidationMessageRequest
    +syntax keyword qmlObjectLiteralType ForwardRenderer
    +syntax keyword qmlObjectLiteralType Frame
    +syntax keyword qmlObjectLiteralType FrameAction
    +syntax keyword qmlObjectLiteralType FrameGraphNode
    +syntax keyword qmlObjectLiteralType Friction
    +syntax keyword qmlObjectLiteralType FrontFace
    +syntax keyword qmlObjectLiteralType FrostedGlassMaterial
    +syntax keyword qmlObjectLiteralType FrostedGlassSinglePassMaterial
    +syntax keyword qmlObjectLiteralType FrustumCamera
    +syntax keyword qmlObjectLiteralType FrustumCulling
    +syntax keyword qmlObjectLiteralType FullScreenRequest
    +syntax keyword qmlObjectLiteralType Fxaa
    +
    +syntax keyword qmlObjectLiteralType Gamepad
    +syntax keyword qmlObjectLiteralType GamepadManager
    +syntax keyword qmlObjectLiteralType GammaAdjust
    +syntax keyword qmlObjectLiteralType Gauge
    +syntax keyword qmlObjectLiteralType GaugeStyle
    +syntax keyword qmlObjectLiteralType GaussianBlur
    +syntax keyword qmlObjectLiteralType geocircle
    +syntax keyword qmlObjectLiteralType GeocodeModel
    +syntax keyword qmlObjectLiteralType Geometry
    +syntax keyword qmlObjectLiteralType GeometryRenderer
    +syntax keyword qmlObjectLiteralType geopath
    +syntax keyword qmlObjectLiteralType geopolygon
    +syntax keyword qmlObjectLiteralType georectangle
    +syntax keyword qmlObjectLiteralType geoshape
    +syntax keyword qmlObjectLiteralType GestureEvent
    +syntax keyword qmlObjectLiteralType GlassMaterial
    +syntax keyword qmlObjectLiteralType GlassRefractiveMaterial
    +syntax keyword qmlObjectLiteralType Glow
    +syntax keyword qmlObjectLiteralType GoochMaterial
    +syntax keyword qmlObjectLiteralType Gradient
    +syntax keyword qmlObjectLiteralType GradientStop
    +syntax keyword qmlObjectLiteralType GraphicsApiFilter
    +syntax keyword qmlObjectLiteralType GraphicsInfo
    +syntax keyword qmlObjectLiteralType Gravity
    +syntax keyword qmlObjectLiteralType Grid
    +syntax keyword qmlObjectLiteralType GridGeometry
    +syntax keyword qmlObjectLiteralType GridLayout
    +syntax keyword qmlObjectLiteralType GridMesh
    +syntax keyword qmlObjectLiteralType GridView
    +syntax keyword qmlObjectLiteralType GroupBox
    +syntax keyword qmlObjectLiteralType GroupGoal
    +syntax keyword qmlObjectLiteralType Gyroscope
    +syntax keyword qmlObjectLiteralType GyroscopeReading
    +
    +syntax keyword qmlObjectLiteralType HandlerPoint
    +syntax keyword qmlObjectLiteralType HandwritingInputPanel
    +syntax keyword qmlObjectLiteralType HandwritingModeKey
    +syntax keyword qmlObjectLiteralType HBarModelMapper
    +syntax keyword qmlObjectLiteralType HBoxPlotModelMapper
    +syntax keyword qmlObjectLiteralType HCandlestickModelMapper
    +syntax keyword qmlObjectLiteralType HDRBloomTonemap
    +syntax keyword qmlObjectLiteralType HeightMapSurfaceDataProxy
    +syntax keyword qmlObjectLiteralType HideKeyboardKey
    +syntax keyword qmlObjectLiteralType HistoryState
    +syntax keyword qmlObjectLiteralType HolsterReading
    +syntax keyword qmlObjectLiteralType HolsterSensor
    +syntax keyword qmlObjectLiteralType HorizontalBarSeries
    +syntax keyword qmlObjectLiteralType HorizontalHeaderView
    +syntax keyword qmlObjectLiteralType HorizontalPercentBarSeries
    +syntax keyword qmlObjectLiteralType HorizontalStackedBarSeries
    +syntax keyword qmlObjectLiteralType Host
    +syntax keyword qmlObjectLiteralType HoverHandler
    +syntax keyword qmlObjectLiteralType HPieModelMapper
    +syntax keyword qmlObjectLiteralType HueSaturation
    +syntax keyword qmlObjectLiteralType HumidityReading
    +syntax keyword qmlObjectLiteralType HumiditySensor
    +syntax keyword qmlObjectLiteralType HXYModelMapper
    +
    +syntax keyword qmlObjectLiteralType Icon
    +syntax keyword qmlObjectLiteralType IdleInhibitManagerV1
    +syntax keyword qmlObjectLiteralType Image
    +syntax keyword qmlObjectLiteralType ImageModel
    +syntax keyword qmlObjectLiteralType ImageParticle
    +syntax keyword qmlObjectLiteralType InnerShadow
    +syntax keyword qmlObjectLiteralType InputChord
    +syntax keyword qmlObjectLiteralType InputContext
    +syntax keyword qmlObjectLiteralType InputEngine
    +syntax keyword qmlObjectLiteralType InputHandler3D
    +syntax keyword qmlObjectLiteralType InputMethod
    +syntax keyword qmlObjectLiteralType InputModeKey
    +syntax keyword qmlObjectLiteralType InputPanel
    +syntax keyword qmlObjectLiteralType InputSequence
    +syntax keyword qmlObjectLiteralType InputSettings
    +syntax keyword qmlObjectLiteralType Instantiator
    +syntax keyword qmlObjectLiteralType int
    +syntax keyword qmlObjectLiteralType IntValidator
    +syntax keyword qmlObjectLiteralType InvokedServices
    +syntax keyword qmlObjectLiteralType IRProximityReading
    +syntax keyword qmlObjectLiteralType IRProximitySensor
    +syntax keyword qmlObjectLiteralType Item
    +syntax keyword qmlObjectLiteralType ItemDelegate
    +syntax keyword qmlObjectLiteralType ItemGrabResult
    +syntax keyword qmlObjectLiteralType ItemModelBarDataProxy
    +syntax keyword qmlObjectLiteralType ItemModelScatterDataProxy
    +syntax keyword qmlObjectLiteralType ItemModelSurfaceDataProxy
    +syntax keyword qmlObjectLiteralType ItemParticle
    +syntax keyword qmlObjectLiteralType ItemSelectionModel
    +syntax keyword qmlObjectLiteralType IviApplication
    +syntax keyword qmlObjectLiteralType IviSurface
    +
    +syntax keyword qmlObjectLiteralType JavaScriptDialogRequest
    +syntax keyword qmlObjectLiteralType Joint
    +syntax keyword qmlObjectLiteralType JumpList
    +syntax keyword qmlObjectLiteralType JumpListCategory
    +syntax keyword qmlObjectLiteralType JumpListDestination
    +syntax keyword qmlObjectLiteralType JumpListLink
    +syntax keyword qmlObjectLiteralType JumpListSeparator
    +
    +syntax keyword qmlObjectLiteralType Key
    +syntax keyword qmlObjectLiteralType KeyboardColumn
    +syntax keyword qmlObjectLiteralType KeyboardDevice
    +syntax keyword qmlObjectLiteralType KeyboardHandler
    +syntax keyword qmlObjectLiteralType KeyboardLayout
    +syntax keyword qmlObjectLiteralType KeyboardLayoutLoader
    +syntax keyword qmlObjectLiteralType KeyboardRow
    +syntax keyword qmlObjectLiteralType KeyboardStyle
    +syntax keyword qmlObjectLiteralType KeyEvent
    +syntax keyword qmlObjectLiteralType Keyframe
    +syntax keyword qmlObjectLiteralType KeyframeAnimation
    +syntax keyword qmlObjectLiteralType KeyframeGroup
    +syntax keyword qmlObjectLiteralType KeyIcon
    +syntax keyword qmlObjectLiteralType KeyNavigation
    +syntax keyword qmlObjectLiteralType KeyPanel
    +syntax keyword qmlObjectLiteralType Keys
    +
    +syntax keyword qmlObjectLiteralType Label
    +syntax keyword qmlObjectLiteralType Layer
    +syntax keyword qmlObjectLiteralType LayerFilter
    +syntax keyword qmlObjectLiteralType Layout
    +syntax keyword qmlObjectLiteralType LayoutMirroring
    +syntax keyword qmlObjectLiteralType Legend
    +syntax keyword qmlObjectLiteralType LerpClipBlend
    +syntax keyword qmlObjectLiteralType LevelAdjust
    +syntax keyword qmlObjectLiteralType LevelOfDetail
    +syntax keyword qmlObjectLiteralType LevelOfDetailBoundingSphere
    +syntax keyword qmlObjectLiteralType LevelOfDetailLoader
    +syntax keyword qmlObjectLiteralType LevelOfDetailSwitch
    +syntax keyword qmlObjectLiteralType LidReading
    +syntax keyword qmlObjectLiteralType LidSensor
    +syntax keyword qmlObjectLiteralType Light
    +syntax keyword qmlObjectLiteralType Light3D
    +syntax keyword qmlObjectLiteralType LightReading
    +syntax keyword qmlObjectLiteralType LightSensor
    +syntax keyword qmlObjectLiteralType LinearGradient
    +syntax keyword qmlObjectLiteralType LineSeries
    +syntax keyword qmlObjectLiteralType LineShape
    +syntax keyword qmlObjectLiteralType LineWidth
    +syntax keyword qmlObjectLiteralType list
    +syntax keyword qmlObjectLiteralType ListElement
    +syntax keyword qmlObjectLiteralType ListModel
    +syntax keyword qmlObjectLiteralType ListView
    +syntax keyword qmlObjectLiteralType Loader
    +syntax keyword qmlObjectLiteralType Loader3D
    +syntax keyword qmlObjectLiteralType Locale
    +syntax keyword qmlObjectLiteralType Location
    +syntax keyword qmlObjectLiteralType LoggingCategory
    +syntax keyword qmlObjectLiteralType LogicalDevice
    +syntax keyword qmlObjectLiteralType LogValueAxis
    +syntax keyword qmlObjectLiteralType LogValueAxis3DFormatter
    +syntax keyword qmlObjectLiteralType LottieAnimation
    +
    +syntax keyword qmlObjectLiteralType Magnetometer
    +syntax keyword qmlObjectLiteralType MagnetometerReading
    +syntax keyword qmlObjectLiteralType Map
    +syntax keyword qmlObjectLiteralType MapCircle
    +syntax keyword qmlObjectLiteralType MapCircleObject
    +syntax keyword qmlObjectLiteralType MapCopyrightNotice
    +syntax keyword qmlObjectLiteralType MapGestureArea
    +syntax keyword qmlObjectLiteralType MapIconObject
    +syntax keyword qmlObjectLiteralType MapItemGroup
    +syntax keyword qmlObjectLiteralType MapItemView
    +syntax keyword qmlObjectLiteralType MapObjectView
    +syntax keyword qmlObjectLiteralType MapParameter
    +syntax keyword qmlObjectLiteralType MapPinchEvent
    +syntax keyword qmlObjectLiteralType MapPolygon
    +syntax keyword qmlObjectLiteralType MapPolygonObject
    +syntax keyword qmlObjectLiteralType MapPolyline
    +syntax keyword qmlObjectLiteralType MapPolylineObject
    +syntax keyword qmlObjectLiteralType MapQuickItem
    +syntax keyword qmlObjectLiteralType MapRectangle
    +syntax keyword qmlObjectLiteralType MapRoute
    +syntax keyword qmlObjectLiteralType MapRouteObject
    +syntax keyword qmlObjectLiteralType MapType
    +syntax keyword qmlObjectLiteralType Margins
    +syntax keyword qmlObjectLiteralType MaskedBlur
    +syntax keyword qmlObjectLiteralType MaskShape
    +syntax keyword qmlObjectLiteralType Material
    +syntax keyword qmlObjectLiteralType Matrix4x4
    +syntax keyword qmlObjectLiteralType matrix4x4
    +syntax keyword qmlObjectLiteralType MediaPlayer
    +syntax keyword qmlObjectLiteralType mediaplayer-qml-dynamic
    +syntax keyword qmlObjectLiteralType MemoryBarrier
    +syntax keyword qmlObjectLiteralType Menu
    +syntax keyword qmlObjectLiteralType MenuBar
    +syntax keyword qmlObjectLiteralType MenuBarItem
    +syntax keyword qmlObjectLiteralType MenuBarStyle
    +syntax keyword qmlObjectLiteralType MenuItem
    +syntax keyword qmlObjectLiteralType MenuItemGroup
    +syntax keyword qmlObjectLiteralType MenuSeparator
    +syntax keyword qmlObjectLiteralType MenuStyle
    +syntax keyword qmlObjectLiteralType Mesh
    +syntax keyword qmlObjectLiteralType MessageDialog
    +syntax keyword qmlObjectLiteralType MetalRoughMaterial
    +syntax keyword qmlObjectLiteralType ModeKey
    +syntax keyword qmlObjectLiteralType Model
    +syntax keyword qmlObjectLiteralType MonthGrid
    +syntax keyword qmlObjectLiteralType MorphingAnimation
    +syntax keyword qmlObjectLiteralType MorphTarget
    +syntax keyword qmlObjectLiteralType MotionBlur
    +syntax keyword qmlObjectLiteralType MouseArea
    +syntax keyword qmlObjectLiteralType MouseDevice
    +syntax keyword qmlObjectLiteralType MouseEvent
    +syntax keyword qmlObjectLiteralType MouseHandler
    +syntax keyword qmlObjectLiteralType MultiPointHandler
    +syntax keyword qmlObjectLiteralType MultiPointTouchArea
    +syntax keyword qmlObjectLiteralType MultiSampleAntiAliasing
    +
    +syntax keyword qmlObjectLiteralType Navigator
    +syntax keyword qmlObjectLiteralType NdefFilter
    +syntax keyword qmlObjectLiteralType NdefMimeRecord
    +syntax keyword qmlObjectLiteralType NdefRecord
    +syntax keyword qmlObjectLiteralType NdefTextRecord
    +syntax keyword qmlObjectLiteralType NdefUriRecord
    +syntax keyword qmlObjectLiteralType NearField
    +syntax keyword qmlObjectLiteralType Node
    +syntax keyword qmlObjectLiteralType NodeInstantiator
    +syntax keyword qmlObjectLiteralType NoDepthMask
    +syntax keyword qmlObjectLiteralType NoDraw
    +syntax keyword qmlObjectLiteralType NoPicking
    +syntax keyword qmlObjectLiteralType NormalDiffuseMapAlphaMaterial
    +syntax keyword qmlObjectLiteralType NormalDiffuseMapMaterial
    +syntax keyword qmlObjectLiteralType NormalDiffuseSpecularMapMaterial
    +syntax keyword qmlObjectLiteralType Number
    +syntax keyword qmlObjectLiteralType NumberAnimation
    +syntax keyword qmlObjectLiteralType NumberKey
    +
    +syntax keyword qmlObjectLiteralType Object3D
    +syntax keyword qmlObjectLiteralType ObjectModel
    +syntax keyword qmlObjectLiteralType ObjectPicker
    +syntax keyword qmlObjectLiteralType OpacityAnimator
    +syntax keyword qmlObjectLiteralType OpacityMask
    +syntax keyword qmlObjectLiteralType OpenGLInfo
    +syntax keyword qmlObjectLiteralType OrbitCameraController
    +syntax keyword qmlObjectLiteralType OrientationReading
    +syntax keyword qmlObjectLiteralType OrientationSensor
    +syntax keyword qmlObjectLiteralType OrthographicCamera
    +syntax keyword qmlObjectLiteralType Overlay
    +
    +syntax keyword qmlObjectLiteralType Package
    +syntax keyword qmlObjectLiteralType Page
    +syntax keyword qmlObjectLiteralType PageIndicator
    +syntax keyword qmlObjectLiteralType palette
    +syntax keyword qmlObjectLiteralType Pane
    +syntax keyword qmlObjectLiteralType PaperArtisticMaterial
    +syntax keyword qmlObjectLiteralType PaperOfficeMaterial
    +syntax keyword qmlObjectLiteralType ParallelAnimation
    +syntax keyword qmlObjectLiteralType Parameter
    +syntax keyword qmlObjectLiteralType ParentAnimation
    +syntax keyword qmlObjectLiteralType ParentChange
    +syntax keyword qmlObjectLiteralType Particle
    +syntax keyword qmlObjectLiteralType ParticleExtruder
    +syntax keyword qmlObjectLiteralType ParticleGroup
    +syntax keyword qmlObjectLiteralType ParticlePainter
    +syntax keyword qmlObjectLiteralType ParticleSystem
    +syntax keyword qmlObjectLiteralType Pass
    +syntax keyword qmlObjectLiteralType Path
    +syntax keyword qmlObjectLiteralType PathAngleArc
    +syntax keyword qmlObjectLiteralType PathAnimation
    +syntax keyword qmlObjectLiteralType PathArc
    +syntax keyword qmlObjectLiteralType PathAttribute
    +syntax keyword qmlObjectLiteralType PathCubic
    +syntax keyword qmlObjectLiteralType PathCurve
    +syntax keyword qmlObjectLiteralType PathElement
    +syntax keyword qmlObjectLiteralType PathInterpolator
    +syntax keyword qmlObjectLiteralType PathLine
    +syntax keyword qmlObjectLiteralType PathMove
    +syntax keyword qmlObjectLiteralType PathMultiline
    +syntax keyword qmlObjectLiteralType PathPercent
    +syntax keyword qmlObjectLiteralType PathPolyline
    +syntax keyword qmlObjectLiteralType PathQuad
    +syntax keyword qmlObjectLiteralType PathSvg
    +syntax keyword qmlObjectLiteralType PathText
    +syntax keyword qmlObjectLiteralType PathView
    +syntax keyword qmlObjectLiteralType PauseAnimation
    +syntax keyword qmlObjectLiteralType PdfDocument
    +syntax keyword qmlObjectLiteralType PdfLinkModel
    +syntax keyword qmlObjectLiteralType PdfNavigationStack
    +syntax keyword qmlObjectLiteralType PdfSearchModel
    +syntax keyword qmlObjectLiteralType PdfSelection
    +syntax keyword qmlObjectLiteralType PercentBarSeries
    +syntax keyword qmlObjectLiteralType PerspectiveCamera
    +syntax keyword qmlObjectLiteralType PerVertexColorMaterial
    +syntax keyword qmlObjectLiteralType PhongAlphaMaterial
    +syntax keyword qmlObjectLiteralType PhongMaterial
    +syntax keyword qmlObjectLiteralType PickEvent
    +syntax keyword qmlObjectLiteralType PickingSettings
    +syntax keyword qmlObjectLiteralType PickLineEvent
    +syntax keyword qmlObjectLiteralType PickPointEvent
    +syntax keyword qmlObjectLiteralType PickResult
    +syntax keyword qmlObjectLiteralType PickTriangleEvent
    +syntax keyword qmlObjectLiteralType Picture
    +syntax keyword qmlObjectLiteralType PieMenu
    +syntax keyword qmlObjectLiteralType PieMenuStyle
    +syntax keyword qmlObjectLiteralType PieSeries
    +syntax keyword qmlObjectLiteralType PieSlice
    +syntax keyword qmlObjectLiteralType PinchArea
    +syntax keyword qmlObjectLiteralType PinchEvent
    +syntax keyword qmlObjectLiteralType PinchHandler
    +syntax keyword qmlObjectLiteralType Place
    +syntax keyword qmlObjectLiteralType PlaceAttribute
    +syntax keyword qmlObjectLiteralType PlaceSearchModel
    +syntax keyword qmlObjectLiteralType PlaceSearchSuggestionModel
    +syntax keyword qmlObjectLiteralType PlaneGeometry
    +syntax keyword qmlObjectLiteralType PlaneMesh
    +syntax keyword qmlObjectLiteralType PlasticStructuredRedEmissiveMaterial
    +syntax keyword qmlObjectLiteralType PlasticStructuredRedMaterial
    +syntax keyword qmlObjectLiteralType Playlist
    +syntax keyword qmlObjectLiteralType PlaylistItem
    +syntax keyword qmlObjectLiteralType PlayVariation
    +syntax keyword qmlObjectLiteralType Plugin
    +syntax keyword qmlObjectLiteralType PluginParameter
    +syntax keyword qmlObjectLiteralType point
    +syntax keyword qmlObjectLiteralType PointDirection
    +syntax keyword qmlObjectLiteralType PointerDevice
    +syntax keyword qmlObjectLiteralType PointerDeviceHandler
    +syntax keyword qmlObjectLiteralType PointerEvent
    +syntax keyword qmlObjectLiteralType PointerHandler
    +syntax keyword qmlObjectLiteralType PointerScrollEvent
    +syntax keyword qmlObjectLiteralType PointHandler
    +syntax keyword qmlObjectLiteralType PointLight
    +syntax keyword qmlObjectLiteralType PointSize
    +syntax keyword qmlObjectLiteralType PolarChartView
    +syntax keyword qmlObjectLiteralType PolygonOffset
    +syntax keyword qmlObjectLiteralType Popup
    +syntax keyword qmlObjectLiteralType Position
    +syntax keyword qmlObjectLiteralType Positioner
    +syntax keyword qmlObjectLiteralType PositionSource
    +syntax keyword qmlObjectLiteralType PressureReading
    +syntax keyword qmlObjectLiteralType PressureSensor
    +syntax keyword qmlObjectLiteralType PrincipledMaterial
    +syntax keyword qmlObjectLiteralType Product
    +syntax keyword qmlObjectLiteralType ProgressBar
    +syntax keyword qmlObjectLiteralType ProgressBarStyle
    +syntax keyword qmlObjectLiteralType PropertyAction
    +syntax keyword qmlObjectLiteralType PropertyAnimation
    +syntax keyword qmlObjectLiteralType PropertyChanges
    +syntax keyword qmlObjectLiteralType ProximityFilter
    +syntax keyword qmlObjectLiteralType ProximityReading
    +syntax keyword qmlObjectLiteralType ProximitySensor
    +
    +syntax keyword qmlObjectLiteralType QAbstractState
    +syntax keyword qmlObjectLiteralType QAbstractTransition
    +syntax keyword qmlObjectLiteralType QmlSensors
    +syntax keyword qmlObjectLiteralType QSignalTransition
    +syntax keyword qmlObjectLiteralType Qt
    +syntax keyword qmlObjectLiteralType QtMultimedia
    +syntax keyword qmlObjectLiteralType QtObject
    +syntax keyword qmlObjectLiteralType QtPositioning
    +syntax keyword qmlObjectLiteralType QtRemoteObjects
    +syntax keyword qmlObjectLiteralType quaternion
    +syntax keyword qmlObjectLiteralType QuaternionAnimation
    +syntax keyword qmlObjectLiteralType QuotaRequest
    +
    +syntax keyword qmlObjectLiteralType RadialBlur
    +syntax keyword qmlObjectLiteralType RadialGradient
    +syntax keyword qmlObjectLiteralType Radio
    +syntax keyword qmlObjectLiteralType RadioButton
    +syntax keyword qmlObjectLiteralType RadioButtonStyle
    +syntax keyword qmlObjectLiteralType RadioData
    +syntax keyword qmlObjectLiteralType RadioDelegate
    +syntax keyword qmlObjectLiteralType RangeSlider
    +syntax keyword qmlObjectLiteralType RasterMode
    +syntax keyword qmlObjectLiteralType Ratings
    +syntax keyword qmlObjectLiteralType RayCaster
    +syntax keyword qmlObjectLiteralType real
    +syntax keyword qmlObjectLiteralType rect
    +syntax keyword qmlObjectLiteralType Rectangle
    +syntax keyword qmlObjectLiteralType RectangleShape
    +syntax keyword qmlObjectLiteralType RectangularGlow
    +syntax keyword qmlObjectLiteralType RecursiveBlur
    +syntax keyword qmlObjectLiteralType RegExpValidator
    +syntax keyword qmlObjectLiteralType RegisterProtocolHandlerRequest
    +syntax keyword qmlObjectLiteralType RegularExpressionValidator
    +syntax keyword qmlObjectLiteralType RenderCapabilities
    +syntax keyword qmlObjectLiteralType RenderCapture
    +syntax keyword qmlObjectLiteralType RenderCaptureReply
    +syntax keyword qmlObjectLiteralType RenderPass
    +syntax keyword qmlObjectLiteralType RenderPassFilter
    +syntax keyword qmlObjectLiteralType RenderSettings
    +syntax keyword qmlObjectLiteralType RenderState
    +syntax keyword qmlObjectLiteralType RenderStateSet
    +syntax keyword qmlObjectLiteralType RenderStats
    +syntax keyword qmlObjectLiteralType RenderSurfaceSelector
    +syntax keyword qmlObjectLiteralType RenderTarget
    +syntax keyword qmlObjectLiteralType RenderTargetOutput
    +syntax keyword qmlObjectLiteralType RenderTargetSelector
    +syntax keyword qmlObjectLiteralType Repeater
    +syntax keyword qmlObjectLiteralType Repeater3D
    +syntax keyword qmlObjectLiteralType ReviewModel
    +syntax keyword qmlObjectLiteralType Rotation
    +syntax keyword qmlObjectLiteralType RotationAnimation
    +syntax keyword qmlObjectLiteralType RotationAnimator
    +syntax keyword qmlObjectLiteralType RotationReading
    +syntax keyword qmlObjectLiteralType RotationSensor
    +syntax keyword qmlObjectLiteralType RoundButton
    +syntax keyword qmlObjectLiteralType Route
    +syntax keyword qmlObjectLiteralType RouteLeg
    +syntax keyword qmlObjectLiteralType RouteManeuver
    +syntax keyword qmlObjectLiteralType RouteModel
    +syntax keyword qmlObjectLiteralType RouteQuery
    +syntax keyword qmlObjectLiteralType RouteSegment
    +syntax keyword qmlObjectLiteralType Row
    +syntax keyword qmlObjectLiteralType RowLayout
    +
    +syntax keyword qmlObjectLiteralType Scale
    +syntax keyword qmlObjectLiteralType ScaleAnimator
    +syntax keyword qmlObjectLiteralType Scatter
    +syntax keyword qmlObjectLiteralType Scatter3D
    +syntax keyword qmlObjectLiteralType Scatter3DSeries
    +syntax keyword qmlObjectLiteralType ScatterDataProxy
    +syntax keyword qmlObjectLiteralType ScatterSeries
    +syntax keyword qmlObjectLiteralType Scene2D
    +syntax keyword qmlObjectLiteralType Scene3D
    +syntax keyword qmlObjectLiteralType Scene3DView
    +syntax keyword qmlObjectLiteralType SceneEnvironment
    +syntax keyword qmlObjectLiteralType SceneLoader
    +syntax keyword qmlObjectLiteralType ScissorTest
    +syntax keyword qmlObjectLiteralType Screen
    +syntax keyword qmlObjectLiteralType ScreenRayCaster
    +syntax keyword qmlObjectLiteralType ScriptAction
    +syntax keyword qmlObjectLiteralType ScrollBar
    +syntax keyword qmlObjectLiteralType ScrollIndicator
    +syntax keyword qmlObjectLiteralType ScrollView
    +syntax keyword qmlObjectLiteralType ScrollViewStyle
    +syntax keyword qmlObjectLiteralType SCurveTonemap
    +syntax keyword qmlObjectLiteralType ScxmlStateMachine
    +syntax keyword qmlObjectLiteralType SeamlessCubemap
    +syntax keyword qmlObjectLiteralType SelectionListItem
    +syntax keyword qmlObjectLiteralType SelectionListModel
    +syntax keyword qmlObjectLiteralType Sensor
    +syntax keyword qmlObjectLiteralType SensorGesture
    +syntax keyword qmlObjectLiteralType SensorReading
    +syntax keyword qmlObjectLiteralType SequentialAnimation
    +syntax keyword qmlObjectLiteralType Settings
    +syntax keyword qmlObjectLiteralType SettingsStore
    +syntax keyword qmlObjectLiteralType SetUniformValue
    +syntax keyword qmlObjectLiteralType Shader
    +syntax keyword qmlObjectLiteralType ShaderEffect
    +syntax keyword qmlObjectLiteralType ShaderEffectSource
    +syntax keyword qmlObjectLiteralType ShaderImage
    +syntax keyword qmlObjectLiteralType ShaderInfo
    +syntax keyword qmlObjectLiteralType ShaderProgram
    +syntax keyword qmlObjectLiteralType ShaderProgramBuilder
    +syntax keyword qmlObjectLiteralType Shape
    +syntax keyword qmlObjectLiteralType ShapeGradient
    +syntax keyword qmlObjectLiteralType ShapePath
    +syntax keyword qmlObjectLiteralType SharedGLTexture
    +syntax keyword qmlObjectLiteralType ShellSurface
    +syntax keyword qmlObjectLiteralType ShellSurfaceItem
    +syntax keyword qmlObjectLiteralType ShiftHandler
    +syntax keyword qmlObjectLiteralType ShiftKey
    +syntax keyword qmlObjectLiteralType Shortcut
    +syntax keyword qmlObjectLiteralType SignalSpy
    +syntax keyword qmlObjectLiteralType SignalTransition
    +syntax keyword qmlObjectLiteralType SinglePointHandler
    +syntax keyword qmlObjectLiteralType size
    +syntax keyword qmlObjectLiteralType Skeleton
    +syntax keyword qmlObjectLiteralType SkeletonLoader
    +syntax keyword qmlObjectLiteralType SkyboxEntity
    +syntax keyword qmlObjectLiteralType Slider
    +syntax keyword qmlObjectLiteralType SliderStyle
    +syntax keyword qmlObjectLiteralType SmoothedAnimation
    +syntax keyword qmlObjectLiteralType SortPolicy
    +syntax keyword qmlObjectLiteralType Sound
    +syntax keyword qmlObjectLiteralType SoundEffect
    +syntax keyword qmlObjectLiteralType SoundInstance
    +syntax keyword qmlObjectLiteralType SpaceKey
    +syntax keyword qmlObjectLiteralType SphereGeometry
    +syntax keyword qmlObjectLiteralType SphereMesh
    +syntax keyword qmlObjectLiteralType SpinBox
    +syntax keyword qmlObjectLiteralType SpinBoxStyle
    +syntax keyword qmlObjectLiteralType SplineSeries
    +syntax keyword qmlObjectLiteralType SplitHandle
    +syntax keyword qmlObjectLiteralType SplitView
    +syntax keyword qmlObjectLiteralType SpotLight
    +syntax keyword qmlObjectLiteralType SpringAnimation
    +syntax keyword qmlObjectLiteralType Sprite
    +syntax keyword qmlObjectLiteralType SpriteGoal
    +syntax keyword qmlObjectLiteralType SpriteSequence
    +syntax keyword qmlObjectLiteralType Stack
    +syntax keyword qmlObjectLiteralType StackedBarSeries
    +syntax keyword qmlObjectLiteralType StackLayout
    +syntax keyword qmlObjectLiteralType StackView
    +syntax keyword qmlObjectLiteralType StackViewDelegate
    +syntax keyword qmlObjectLiteralType StandardPaths
    +syntax keyword qmlObjectLiteralType State
    +syntax keyword qmlObjectLiteralType StateChangeScript
    +syntax keyword qmlObjectLiteralType StateGroup
    +syntax keyword qmlObjectLiteralType StateMachine
    +syntax keyword qmlObjectLiteralType StateMachineLoader
    +syntax keyword qmlObjectLiteralType StatusBar
    +syntax keyword qmlObjectLiteralType StatusBarStyle
    +syntax keyword qmlObjectLiteralType StatusIndicator
    +syntax keyword qmlObjectLiteralType StatusIndicatorStyle
    +syntax keyword qmlObjectLiteralType SteelMilledConcentricMaterial
    +syntax keyword qmlObjectLiteralType StencilMask
    +syntax keyword qmlObjectLiteralType StencilOperation
    +syntax keyword qmlObjectLiteralType StencilOperationArguments
    +syntax keyword qmlObjectLiteralType StencilTest
    +syntax keyword qmlObjectLiteralType StencilTestArguments
    +syntax keyword qmlObjectLiteralType Store
    +syntax keyword qmlObjectLiteralType String
    +syntax keyword qmlObjectLiteralType string
    +syntax keyword qmlObjectLiteralType SubtreeEnabler
    +syntax keyword qmlObjectLiteralType Supplier
    +syntax keyword qmlObjectLiteralType Surface3D
    +syntax keyword qmlObjectLiteralType Surface3DSeries
    +syntax keyword qmlObjectLiteralType SurfaceDataProxy
    +syntax keyword qmlObjectLiteralType SwipeDelegate
    +syntax keyword qmlObjectLiteralType SwipeView
    +syntax keyword qmlObjectLiteralType Switch
    +syntax keyword qmlObjectLiteralType SwitchDelegate
    +syntax keyword qmlObjectLiteralType SwitchStyle
    +syntax keyword qmlObjectLiteralType SymbolModeKey
    +syntax keyword qmlObjectLiteralType SystemPalette
    +syntax keyword qmlObjectLiteralType SystemTrayIcon
    +
    +syntax keyword qmlObjectLiteralType Tab
    +syntax keyword qmlObjectLiteralType TabBar
    +syntax keyword qmlObjectLiteralType TabButton
    +syntax keyword qmlObjectLiteralType TableModel
    +syntax keyword qmlObjectLiteralType TableModelColumn
    +syntax keyword qmlObjectLiteralType TableView
    +syntax keyword qmlObjectLiteralType TableViewColumn
    +syntax keyword qmlObjectLiteralType TableViewStyle
    +syntax keyword qmlObjectLiteralType TabView
    +syntax keyword qmlObjectLiteralType TabViewStyle
    +syntax keyword qmlObjectLiteralType TapHandler
    +syntax keyword qmlObjectLiteralType TapReading
    +syntax keyword qmlObjectLiteralType TapSensor
    +syntax keyword qmlObjectLiteralType TargetDirection
    +syntax keyword qmlObjectLiteralType TaskbarButton
    +syntax keyword qmlObjectLiteralType Technique
    +syntax keyword qmlObjectLiteralType TechniqueFilter
    +syntax keyword qmlObjectLiteralType TestCase
    +syntax keyword qmlObjectLiteralType Text
    +syntax keyword qmlObjectLiteralType Text2DEntity
    +syntax keyword qmlObjectLiteralType TextArea
    +syntax keyword qmlObjectLiteralType TextAreaStyle
    +syntax keyword qmlObjectLiteralType TextEdit
    +syntax keyword qmlObjectLiteralType TextField
    +syntax keyword qmlObjectLiteralType TextFieldStyle
    +syntax keyword qmlObjectLiteralType TextInput
    +syntax keyword qmlObjectLiteralType TextMetrics
    +syntax keyword qmlObjectLiteralType Texture
    +syntax keyword qmlObjectLiteralType Texture1D
    +syntax keyword qmlObjectLiteralType Texture1DArray
    +syntax keyword qmlObjectLiteralType Texture2D
    +syntax keyword qmlObjectLiteralType Texture2DArray
    +syntax keyword qmlObjectLiteralType Texture2DMultisample
    +syntax keyword qmlObjectLiteralType Texture2DMultisampleArray
    +syntax keyword qmlObjectLiteralType Texture3D
    +syntax keyword qmlObjectLiteralType TextureBuffer
    +syntax keyword qmlObjectLiteralType TextureCubeMap
    +syntax keyword qmlObjectLiteralType TextureCubeMapArray
    +syntax keyword qmlObjectLiteralType TextureImage
    +syntax keyword qmlObjectLiteralType TextureInput
    +syntax keyword qmlObjectLiteralType TextureLoader
    +syntax keyword qmlObjectLiteralType TextureRectangle
    +syntax keyword qmlObjectLiteralType Theme3D
    +syntax keyword qmlObjectLiteralType ThemeColor
    +syntax keyword qmlObjectLiteralType ThresholdMask
    +syntax keyword qmlObjectLiteralType ThumbnailToolBar
    +syntax keyword qmlObjectLiteralType ThumbnailToolButton
    +syntax keyword qmlObjectLiteralType TiltReading
    +syntax keyword qmlObjectLiteralType TiltSensor
    +syntax keyword qmlObjectLiteralType TiltShift
    +syntax keyword qmlObjectLiteralType Timeline
    +syntax keyword qmlObjectLiteralType TimelineAnimation
    +syntax keyword qmlObjectLiteralType TimeoutTransition
    +syntax keyword qmlObjectLiteralType Timer
    +syntax keyword qmlObjectLiteralType ToggleButton
    +syntax keyword qmlObjectLiteralType ToggleButtonStyle
    +syntax keyword qmlObjectLiteralType ToolBar
    +syntax keyword qmlObjectLiteralType ToolBarStyle
    +syntax keyword qmlObjectLiteralType ToolButton
    +syntax keyword qmlObjectLiteralType ToolSeparator
    +syntax keyword qmlObjectLiteralType ToolTip
    +syntax keyword qmlObjectLiteralType TooltipRequest
    +syntax keyword qmlObjectLiteralType Torch
    +syntax keyword qmlObjectLiteralType TorusGeometry
    +syntax keyword qmlObjectLiteralType TorusMesh
    +syntax keyword qmlObjectLiteralType TouchEventSequence
    +syntax keyword qmlObjectLiteralType TouchInputHandler3D
    +syntax keyword qmlObjectLiteralType TouchPoint
    +syntax keyword qmlObjectLiteralType Trace
    +syntax keyword qmlObjectLiteralType TraceCanvas
    +syntax keyword qmlObjectLiteralType TraceInputArea
    +syntax keyword qmlObjectLiteralType TraceInputKey
    +syntax keyword qmlObjectLiteralType TraceInputKeyPanel
    +syntax keyword qmlObjectLiteralType TrailEmitter
    +syntax keyword qmlObjectLiteralType Transaction
    +syntax keyword qmlObjectLiteralType Transform
    +syntax keyword qmlObjectLiteralType Transition
    +syntax keyword qmlObjectLiteralType Translate
    +syntax keyword qmlObjectLiteralType TreeView
    +syntax keyword qmlObjectLiteralType TreeViewStyle
    +syntax keyword qmlObjectLiteralType Tumbler
    +syntax keyword qmlObjectLiteralType TumblerColumn
    +syntax keyword qmlObjectLiteralType TumblerStyle
    +syntax keyword qmlObjectLiteralType Turbulence
    +
    +syntax keyword qmlObjectLiteralType UniformAnimator
    +syntax keyword qmlObjectLiteralType url
    +syntax keyword qmlObjectLiteralType User
    +
    +syntax keyword qmlObjectLiteralType ValueAxis
    +syntax keyword qmlObjectLiteralType ValueAxis3D
    +syntax keyword qmlObjectLiteralType ValueAxis3DFormatter
    +syntax keyword qmlObjectLiteralType var
    +syntax keyword qmlObjectLiteralType variant
    +syntax keyword qmlObjectLiteralType VBarModelMapper
    +syntax keyword qmlObjectLiteralType VBoxPlotModelMapper
    +syntax keyword qmlObjectLiteralType VCandlestickModelMapper
    +syntax keyword qmlObjectLiteralType vector2d
    +syntax keyword qmlObjectLiteralType vector3d
    +syntax keyword qmlObjectLiteralType Vector3dAnimation
    +syntax keyword qmlObjectLiteralType vector4d
    +syntax keyword qmlObjectLiteralType VertexBlendAnimation
    +syntax keyword qmlObjectLiteralType VerticalHeaderView
    +syntax keyword qmlObjectLiteralType Video
    +syntax keyword qmlObjectLiteralType VideoOutput
    +syntax keyword qmlObjectLiteralType View3D
    +syntax keyword qmlObjectLiteralType Viewport
    +syntax keyword qmlObjectLiteralType ViewTransition
    +syntax keyword qmlObjectLiteralType Vignette
    +syntax keyword qmlObjectLiteralType VirtualKeyboardSettings
    +syntax keyword qmlObjectLiteralType VPieModelMapper
    +syntax keyword qmlObjectLiteralType VXYModelMapper
    +
    +syntax keyword qmlObjectLiteralType Wander
    +syntax keyword qmlObjectLiteralType WasdController
    +syntax keyword qmlObjectLiteralType WavefrontMesh
    +syntax keyword qmlObjectLiteralType WaylandClient
    +syntax keyword qmlObjectLiteralType WaylandCompositor
    +syntax keyword qmlObjectLiteralType WaylandHardwareLayer
    +syntax keyword qmlObjectLiteralType WaylandOutput
    +syntax keyword qmlObjectLiteralType WaylandQuickItem
    +syntax keyword qmlObjectLiteralType WaylandSeat
    +syntax keyword qmlObjectLiteralType WaylandSurface
    +syntax keyword qmlObjectLiteralType WaylandView
    +syntax keyword qmlObjectLiteralType Waypoint
    +syntax keyword qmlObjectLiteralType WebChannel
    +syntax keyword qmlObjectLiteralType WebEngine
    +syntax keyword qmlObjectLiteralType WebEngineAction
    +syntax keyword qmlObjectLiteralType WebEngineCertificateError
    +syntax keyword qmlObjectLiteralType WebEngineClientCertificateOption
    +syntax keyword qmlObjectLiteralType WebEngineClientCertificateSelection
    +syntax keyword qmlObjectLiteralType WebEngineDownloadItem
    +syntax keyword qmlObjectLiteralType WebEngineHistory
    +syntax keyword qmlObjectLiteralType WebEngineHistoryListModel
    +syntax keyword qmlObjectLiteralType WebEngineLoadRequest
    +syntax keyword qmlObjectLiteralType WebEngineNavigationRequest
    +syntax keyword qmlObjectLiteralType WebEngineNewViewRequest
    +syntax keyword qmlObjectLiteralType WebEngineNotification
    +syntax keyword qmlObjectLiteralType WebEngineProfile
    +syntax keyword qmlObjectLiteralType WebEngineScript
    +syntax keyword qmlObjectLiteralType WebEngineSettings
    +syntax keyword qmlObjectLiteralType WebEngineView
    +syntax keyword qmlObjectLiteralType WebSocket
    +syntax keyword qmlObjectLiteralType WebSocketServer
    +syntax keyword qmlObjectLiteralType WebView
    +syntax keyword qmlObjectLiteralType WebViewLoadRequest
    +syntax keyword qmlObjectLiteralType WeekNumberColumn
    +syntax keyword qmlObjectLiteralType WheelEvent
    +syntax keyword qmlObjectLiteralType WheelHandler
    +syntax keyword qmlObjectLiteralType Window
    +syntax keyword qmlObjectLiteralType WlScaler
    +syntax keyword qmlObjectLiteralType WlShell
    +syntax keyword qmlObjectLiteralType WlShellSurface
    +syntax keyword qmlObjectLiteralType WorkerScript
    +
    +syntax keyword qmlObjectLiteralType XAnimator
    +syntax keyword qmlObjectLiteralType XdgDecorationManagerV1
    +syntax keyword qmlObjectLiteralType XdgOutputManagerV1
    +syntax keyword qmlObjectLiteralType XdgPopup
    +syntax keyword qmlObjectLiteralType XdgPopupV5
    +syntax keyword qmlObjectLiteralType XdgPopupV6
    +syntax keyword qmlObjectLiteralType XdgShell
    +syntax keyword qmlObjectLiteralType XdgShellV5
    +syntax keyword qmlObjectLiteralType XdgShellV6
    +syntax keyword qmlObjectLiteralType XdgSurface
    +syntax keyword qmlObjectLiteralType XdgSurfaceV5
    +syntax keyword qmlObjectLiteralType XdgSurfaceV6
    +syntax keyword qmlObjectLiteralType XdgToplevel
    +syntax keyword qmlObjectLiteralType XdgToplevelV6
    +syntax keyword qmlObjectLiteralType XmlListModel
    +syntax keyword qmlObjectLiteralType XmlRole
    +syntax keyword qmlObjectLiteralType XYPoint
    +syntax keyword qmlObjectLiteralType XYSeries
    +
    +syntax keyword qmlObjectLiteralType YAnimator
    +
    +syntax keyword qmlObjectLiteralType ZoomBlur
    +
    +" }}}
    +
    +if get(g:, 'qml_fold', 0)
    +  syn match   qmlFunction      "\"
    +  syn region  qmlFunctionFold  start="^\z(\s*\)\.*[^};]$" end="^\z1}.*$" transparent fold keepend
    +
    +  syn sync match qmlSync  grouphere qmlFunctionFold "\"
    +  syn sync match qmlSync  grouphere NONE "^}"
    +
    +  setlocal foldmethod=syntax
    +  setlocal foldtext=getline(v:foldstart)
    +else
    +  syn keyword qmlFunction         function
    +  syn match   qmlArrowFunction    "=>"
    +  syn match   qmlBraces           "[{}\[\]]"
    +  syn match   qmlParens           "[()]"
    +endif
    +
    +syn sync fromstart
    +syn sync maxlines=100
    +
    +if main_syntax == "qml"
    +  syn sync ccomment qmlComment
    +endif
    +
    +hi def link qmlComment           Comment
    +hi def link qmlLineComment       Comment
    +hi def link qmlCommentTodo       Todo
    +hi def link qmlSpecial           Special
    +hi def link qmlStringS           String
    +hi def link qmlStringD           String
    +hi def link qmlStringT           String
    +hi def link qmlCharacter         Character
    +hi def link qmlNumber            Number
    +hi def link qmlConditional       Conditional
    +hi def link qmlRepeat            Repeat
    +hi def link qmlBranch            Conditional
    +hi def link qmlOperator          Operator
    +hi def link qmlJsType            Type
    +hi def link qmlType              Type
    +hi def link qmlObjectLiteralType Type
    +hi def link qmlStatement         Statement
    +hi def link qmlFunction          Function
    +hi def link qmlArrowFunction     Function
    +hi def link qmlBraces            Function
    +hi def link qmlError             Error
    +hi def link qmlNull              Keyword
    +hi def link qmlBoolean           Boolean
    +hi def link qmlRegexpString      String
    +hi def link qmlNullishCoalescing Operator
    +
    +hi def link qmlIdentifier        Identifier
    +hi def link qmlLabel             Label
    +hi def link qmlException         Exception
    +hi def link qmlMessage           Keyword
    +hi def link qmlGlobal            Keyword
    +hi def link qmlReserved          Keyword
    +hi def link qmlDebug             Debug
    +hi def link qmlConstant          Label
    +hi def link qmlBindingProperty   Label
    +hi def link qmlDeclaration       Function
    +
    +let b:current_syntax = "qml"
    +if main_syntax == 'qml'
    +  unlet main_syntax
    +endif
    diff --git a/git/usr/share/vim/vim92/syntax/quake.vim b/git/usr/share/vim/vim92/syntax/quake.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..7db53106ad83fa1fee7e0c45c8e1b67a0bde7f3a
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/quake.vim
    @@ -0,0 +1,170 @@
    +" Vim syntax file
    +" Language:             Quake[1-3] configuration file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2007-06-17
    +"               quake_is_quake1 - the syntax is to be used for quake1 configs
    +"               quake_is_quake2 - the syntax is to be used for quake2 configs
    +"               quake_is_quake3 - the syntax is to be used for quake3 configs
    +" Credits:              Tomasz Kalkosinski wrote the original quake3Colors stuff
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +setlocal iskeyword+=-,+
    +
    +syn keyword quakeTodo         contained TODO FIXME XXX NOTE
    +
    +syn region  quakeComment      display oneline start='//' end='$' end=';'
    +                              \ keepend contains=quakeTodo,@Spell
    +
    +syn region  quakeString       display oneline start=+"+ skip=+\\\\\|\\"+
    +                              \ end=+"\|$+ contains=quakeNumbers,
    +                              \ @quakeCommands,@quake3Colors
    +
    +syn case ignore
    +
    +syn match quakeNumbers        display transparent '\<-\=\d\|\.\d'
    +                              \ contains=quakeNumber,quakeFloat,
    +                              \ quakeOctalError,quakeOctal
    +syn match quakeNumber         contained display '\d\+\>'
    +syn match quakeFloat          contained display '\d\+\.\d*'
    +syn match quakeFloat          contained display '\.\d\+\>'
    +
    +if exists("quake_is_quake1") || exists("quake_is_quake2")
    +  syn match quakeOctal        contained display '0\o\+\>'
    +                              \ contains=quakeOctalZero
    +  syn match quakeOctalZero    contained display '\<0'
    +  syn match quakeOctalError   contained display '0\o*[89]\d*'
    +endif
    +
    +syn cluster quakeCommands     contains=quakeCommand,quake1Command,
    +                              \ quake12Command,Quake2Command,Quake23Command,
    +                              \ Quake3Command
    +
    +syn keyword quakeCommand      +attack +back +forward +left +lookdown +lookup
    +syn keyword quakeCommand      +mlook +movedown +moveleft +moveright +moveup
    +syn keyword quakeCommand      +right +speed +strafe -attack -back bind
    +syn keyword quakeCommand      bindlist centerview clear connect cvarlist dir
    +syn keyword quakeCommand      disconnect dumpuser echo error exec -forward
    +syn keyword quakeCommand      god heartbeat joy_advancedupdate kick kill
    +syn keyword quakeCommand      killserver -left -lookdown -lookup map
    +syn keyword quakeCommand      messagemode messagemode2 -mlook modellist
    +syn keyword quakeCommand      -movedown -moveleft -moveright -moveup play
    +syn keyword quakeCommand      quit rcon reconnect record -right say say_team
    +syn keyword quakeCommand      screenshot serverinfo serverrecord serverstop
    +syn keyword quakeCommand      set sizedown sizeup snd_restart soundinfo
    +syn keyword quakeCommand      soundlist -speed spmap status -strafe stopsound
    +syn keyword quakeCommand      toggleconsole unbind unbindall userinfo pause
    +syn keyword quakeCommand      vid_restart viewpos wait weapnext weapprev
    +
    +if exists("quake_is_quake1")
    +  syn keyword quake1Command   sv
    +endif
    +
    +if exists("quake_is_quake1") || exists("quake_is_quake2")
    +  syn keyword quake12Command  +klook alias cd impulse link load save
    +  syn keyword quake12Command  timerefresh changing info loading
    +  syn keyword quake12Command  pingservers playerlist players score
    +endif
    +
    +if exists("quake_is_quake2")
    +  syn keyword quake2Command   cmd demomap +use condump download drop gamemap
    +  syn keyword quake2Command   give gun_model setmaster sky sv_maplist wave
    +  syn keyword quake2Command   cmdlist gameversiona gun_next gun_prev invdrop
    +  syn keyword quake2Command   inven invnext invnextp invnextw invprev
    +  syn keyword quake2Command   invprevp invprevw invuse menu_addressbook
    +  syn keyword quake2Command   menu_credits menu_dmoptions menu_game
    +  syn keyword quake2Command   menu_joinserver menu_keys menu_loadgame
    +  syn keyword quake2Command   menu_main menu_multiplayer menu_options
    +  syn keyword quake2Command   menu_playerconfig menu_quit menu_savegame
    +  syn keyword quake2Command   menu_startserver menu_video
    +  syn keyword quake2Command   notarget precache prog togglechat vid_front
    +  syn keyword quake2Command   weaplast
    +endif
    +
    +if exists("quake_is_quake2") || exists("quake_is_quake3")
    +  syn keyword quake23Command  imagelist modellist path z_stats
    +endif
    +
    +if exists("quake_is_quake3")
    +  syn keyword quake3Command   +info +scores +zoom addbot arena banClient
    +  syn keyword quake3Command   banUser callteamvote callvote changeVectors
    +  syn keyword quake3Command   cinematic clientinfo clientkick cmd cmdlist
    +  syn keyword quake3Command   condump configstrings crash cvar_restart devmap
    +  syn keyword quake3Command   fdir follow freeze fs_openedList Fs_pureList
    +  syn keyword quake3Command   Fs_referencedList gfxinfo globalservers
    +  syn keyword quake3Command   hunk_stats in_restart -info levelshot
    +  syn keyword quake3Command   loaddeferred localservers map_restart mem_info
    +  syn keyword quake3Command   messagemode3 messagemode4 midiinfo model music
    +  syn keyword quake3Command   modelist net_restart nextframe nextskin noclip
    +  syn keyword quake3Command   notarget ping prevframe prevskin reset restart
    +  syn keyword quake3Command   s_disable_a3d s_enable_a3d s_info s_list s_stop
    +  syn keyword quake3Command   scanservers -scores screenshotJPEG sectorlist
    +  syn keyword quake3Command   serverstatus seta setenv sets setu setviewpos
    +  syn keyword quake3Command   shaderlist showip skinlist spdevmap startOribt
    +  syn keyword quake3Command   stats stopdemo stoprecord systeminfo togglemenu
    +  syn keyword quake3Command   tcmd team teamtask teamvote tell tell_attacker
    +  syn keyword quake3Command   tell_target testgun testmodel testshader toggle
    +  syn keyword quake3Command   touchFile vminfo vmprofile vmtest vosay
    +  syn keyword quake3Command   vosay_team vote votell vsay vsay_team vstr
    +  syn keyword quake3Command   vtaunt vtell vtell_attacker vtell_target weapon
    +  syn keyword quake3Command   writeconfig -zoom
    +  syn match   quake3Command   display "\<[+-]button\(\d\|1[0-4]\)\>"
    +endif
    +
    +if exists("quake_is_quake3")
    +  syn cluster quake3Colors    contains=quake3Red,quake3Green,quake3Yellow,
    +                              \ quake3Blue,quake3Cyan,quake3Purple,quake3White,
    +                              \ quake3Orange,quake3Grey,quake3Black,quake3Shadow
    +
    +  syn region quake3Red        contained start=+\^1+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Green      contained start=+\^2+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Yellow     contained start=+\^3+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Blue       contained start=+\^4+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Cyan       contained start=+\^5+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Purple     contained start=+\^6+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3White      contained start=+\^7+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Orange     contained start=+\^8+hs=e+1 end=+[$^\"\n]+he=e-1
    +  syn region quake3Grey       contained start=+\^9+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Black      contained start=+\^0+hs=e+1 end=+[$^"\n]+he=e-1
    +  syn region quake3Shadow     contained start=+\^[Xx]+hs=e+1 end=+[$^"\n]+he=e-1
    +endif
    +
    +hi def link quakeComment      Comment
    +hi def link quakeTodo         Todo
    +hi def link quakeString       String
    +hi def link quakeNumber       Number
    +hi def link quakeOctal        Number
    +hi def link quakeOctalZero    PreProc
    +hi def link quakeFloat        Number
    +hi def link quakeOctalError   Error
    +hi def link quakeCommand      quakeCommands
    +hi def link quake1Command     quakeCommands
    +hi def link quake12Command    quakeCommands
    +hi def link quake2Command     quakeCommands
    +hi def link quake23Command    quakeCommands
    +hi def link quake3Command     quakeCommands
    +hi def link quakeCommands     Keyword
    +
    +if exists("quake_is_quake3")
    +  hi quake3Red                ctermfg=Red         guifg=Red
    +  hi quake3Green              ctermfg=Green       guifg=Green
    +  hi quake3Yellow             ctermfg=Yellow      guifg=Yellow
    +  hi quake3Blue               ctermfg=Blue        guifg=Blue
    +  hi quake3Cyan               ctermfg=Cyan        guifg=Cyan
    +  hi quake3Purple             ctermfg=DarkMagenta guifg=Purple
    +  hi quake3White              ctermfg=White       guifg=White
    +  hi quake3Black              ctermfg=Black       guifg=Black
    +  hi quake3Orange             ctermfg=Brown       guifg=Orange
    +  hi quake3Grey               ctermfg=LightGrey   guifg=LightGrey
    +  hi quake3Shadow             cterm=underline     gui=underline
    +endif
    +
    +let b:current_syntax = "quake"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/quarto.vim b/git/usr/share/vim/vim92/syntax/quarto.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..f83071dd7f4ced95eefaec65a56200848b6a7fc6
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/quarto.vim
    @@ -0,0 +1,19 @@
    +" Language: Quarto (Markdown with chunks of R, Python and other languages)
    +" Maintainer: This runtime file is looking for a new maintainer.
    +" Former Maintainer: Jakson Alves de Aquino 
    +" Former Repository: https://github.com/jalvesaq/R-Vim-runtime
    +" Last Change: 2023 Feb 24  08:26AM
    +"		2024 Feb 19 by Vim Project (announce adoption)
    +"
    +" The developers of tools for Quarto maintain Vim runtime files in their
    +" Github repository and, if required, I will hand over the maintenance of
    +" this script for them.
    +
    +runtime syntax/rmd.vim
    +
    +syn match quartoShortarg /\S\+/ contained
    +syn keyword quartoShortkey var meta env pagebreak video include contained
    +syn region quartoShortcode matchgroup=PreProc start='{{< ' end=' >}}' contains=quartoShortkey,quartoShortarg transparent keepend
    +
    +hi def link quartoShortkey Include
    +hi def link quartoShortarg String
    diff --git a/git/usr/share/vim/vim92/syntax/r.vim b/git/usr/share/vim/vim92/syntax/r.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..fa731943326cfc252a6a6de398c55f375818edc5
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/r.vim
    @@ -0,0 +1,388 @@
    +" Vim syntax file
    +" Language:	      R (GNU S)
    +" Maintainer:	      This runtime file is looking for a new maintainer.
    +" Former Maintainers: Jakson Aquino 
    +"                     Vaidotas Zemlys 
    +"                     Tom Payne 
    +" Contributor:        Johannes Ranke 
    +" Former Repository:  https://github.com/jalvesaq/R-Vim-runtime
    +" Filenames:          *.R *.r *.Rhistory *.Rt
    +" Last Change:        2023 Dec 24  08:05AM
    +"   2024 Feb 19 by Vim Project (announce adoption)
    +"
    +" NOTE: The highlighting of R functions might be defined in
    +" runtime files created by a filetype plugin, if installed.
    +"
    +" CONFIGURATION:
    +"   Syntax folding can be turned on by
    +"
    +"      let r_syntax_folding = 1
    +"
    +"   ROxygen highlighting can be turned off by
    +"
    +"      let r_syntax_hl_roxygen = 0
    +"
    +" Some lines of code were borrowed from Zhuojun Chen.
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn iskeyword @,48-57,_,.
    +
    +" The variables g:r_hl_roxygen and g:r_syn_minlines were renamed on April 8, 2017.
    +if exists("g:r_hl_roxygen")
    +  let g:r_syntax_hl_roxygen = g:r_hl_roxygen
    +endif
    +if exists("g:r_syn_minlines")
    +  let g:r_syntax_minlines = g:r_syn_minlines
    +endif
    +
    +if exists("g:r_syntax_folding") && g:r_syntax_folding
    +  setlocal foldmethod=syntax
    +endif
    +
    +let g:r_syntax_hl_roxygen = get(g:, 'r_syntax_hl_roxygen', 1)
    +
    +syn case match
    +
    +" Comment
    +syn match rCommentTodo contained "\(BUG\|FIXME\|NOTE\|TODO\):"
    +syn match rTodoParen contained "\(BUG\|FIXME\|NOTE\|TODO\)\s*(.\{-})\s*:" contains=rTodoKeyw,rTodoInfo transparent
    +syn keyword rTodoKeyw BUG FIXME NOTE TODO contained
    +syn match rTodoInfo "(\zs.\{-}\ze)" contained
    +syn match rComment contains=@Spell,rCommentTodo,rTodoParen "#.*"
    +
    +" Roxygen
    +if g:r_syntax_hl_roxygen
    +  " A roxygen block can start at the beginning of a file (first version) and
    +  " after a blank line (second version). It ends when a line appears that does not
    +  " contain a roxygen comment. In the following comments, any line containing
    +  " a roxygen comment marker (one or two hash signs # followed by a single
    +  " quote ' and preceded only by whitespace) is called a roxygen line. A
    +  " roxygen line containing only a roxygen comment marker, optionally followed
    +  " by whitespace is called an empty roxygen line.
    +
    +  syn match rOCommentKey "^\s*#\{1,2}'" contained
    +  syn region rOExamples start="^\s*#\{1,2}' @examples.*"rs=e+1,hs=e+1 end="^\(#\{1,2}' @.*\)\@=" end="^\(#\{1,2}'\)\@!" contained contains=rOTag fold
    +  
    +  " R6 classes may contain roxygen lines independent of roxygen blocks
    +  syn region rOR6Class start=/R6Class(/ end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError fold
    +  syn match rOR6Block "#\{1,2}'.*" contains=rOTag,rOExamples,@Spell containedin=rOR6Class contained
    +  syn match rOR6Block "^\s*#\{1,2}'.*" contains=rOTag,rOExamples,@Spell containedin=rOR6Class contained
    +
    +  " First we match all roxygen blocks as containing only a title. In case an
    +  " empty roxygen line ending the title or a tag is found, this will be
    +  " overridden later by the definitions of rOBlock.
    +  syn match rOTitleBlock "\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{1,}" contains=rOCommentKey,rOTitleTag
    +
    +  " A title as part of a block is always at the beginning of the block, i.e.
    +  " either at the start of a file or after a completely empty line.
    +  syn match rOTitle "\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{-1,}\s*#\{1,2}'\s*$" contained contains=rOCommentKey,rOTitleTag
    +  syn match rOTitleTag contained "@title"
    +
    +  " When a roxygen block has a title and additional content, the title
    +  " consists of one or more roxygen lines (as little as possible are matched),
    +  " followed either by an empty roxygen line
    +  syn region rOBlock start="\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{-1,}\s*#\{1,2}'\s*$" end="^\s*\(#\{1,2}'\)\@!" contains=rOTitle,rOTag,rOExamples,@Spell keepend fold
    +
    +  " or by a roxygen tag (we match everything starting with @ but not @@ which is used as escape sequence for a literal @).
    +  syn region rOBlock start="\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{-}\s*#\{1,2}' @\(@\)\@!" end="^\s*\(#\{1,2}'\)\@!" contains=rOTitle,rOTag,rOExamples,@Spell keepend fold
    +
    +  " If a block contains an @rdname, @describeIn tag, it may have paragraph breaks, but does not have a title
    +  syn region rOBlockNoTitle start="\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{-1,}\s*#\{1,2}'\s*\n\(\s*#\{1,2}'.*\n\)\{-}\s*#\{1,2}' @rdname" end="^\s*\(#\{1,2}'\)\@!" contains=rOTag,rOExamples,@Spell keepend fold
    +  syn region rOBlockNoTitle start="\(\%^\|^\s*\n\)\@<=\(\s*#\{1,2}' .*\n\)\{-1,}\s*#\{1,2}'\s*\n\(\s*#\{1,2}'.*\n\)\{-}\s*#\{1,2}' @describeIn" end="^\s*\(#\{1,2}'\)\@!" contains=rOTag,rOExamples,@Spell keepend fold
    +
    +  " rOTag list originally generated from the lists that were available in
    +  " https://github.com/klutometis/roxygen/R/rd.R and
    +  " https://github.com/klutometis/roxygen/R/namespace.R
    +  " using s/^    \([A-Za-z0-9]*\) = .*/  syn match rOTag contained "@\1"/
    +  " Plus we need the @include tag
    +
    +  " rd.R
    +  syn match rOTag contained "@aliases"
    +  syn match rOTag contained "@author"
    +  syn match rOTag contained "@backref"
    +  syn match rOTag contained "@concept"
    +  syn match rOTag contained "@describeIn"
    +  syn match rOTag contained "@description"
    +  syn match rOTag contained "@details"
    +  syn match rOTag contained "@docType"
    +  syn match rOTag contained "@encoding"
    +  syn match rOTag contained "@evalRd"
    +  syn match rOTag contained "@example"
    +  syn match rOTag contained "@examples"
    +  syn match rOTag contained "@family"
    +  syn match rOTag contained "@field"
    +  syn match rOTag contained "@format"
    +  syn match rOTag contained "@inherit"
    +  syn match rOTag contained "@inheritParams"
    +  syn match rOTag contained "@inheritDotParams"
    +  syn match rOTag contained "@inheritSection"
    +  syn match rOTag contained "@keywords"
    +  syn match rOTag contained "@method"
    +  syn match rOTag contained "@name"
    +  syn match rOTag contained "@md"
    +  syn match rOTag contained "@noMd"
    +  syn match rOTag contained "@noRd"
    +  syn match rOTag contained "@note"
    +  syn match rOTag contained "@param"
    +  syn match rOTag contained "@rdname"
    +  syn match rOTag contained "@rawRd"
    +  syn match rOTag contained "@references"
    +  syn match rOTag contained "@return"
    +  syn match rOTag contained "@section"
    +  syn match rOTag contained "@seealso"
    +  syn match rOTag contained "@slot"
    +  syn match rOTag contained "@source"
    +  syn match rOTag contained "@template"
    +  syn match rOTag contained "@templateVar"
    +  syn match rOTag contained "@title"
    +  syn match rOTag contained "@usage"
    +  " namespace.R
    +  syn match rOTag contained "@export"
    +  syn match rOTag contained "@exportClass"
    +  syn match rOTag contained "@exportMethod"
    +  syn match rOTag contained "@exportPattern"
    +  syn match rOTag contained "@import"
    +  syn match rOTag contained "@importClassesFrom"
    +  syn match rOTag contained "@importFrom"
    +  syn match rOTag contained "@importMethodsFrom"
    +  syn match rOTag contained "@rawNamespace"
    +  syn match rOTag contained "@S3method"
    +  syn match rOTag contained "@useDynLib"
    +  " other
    +  syn match rOTag contained "@eval"
    +  syn match rOTag contained "@include"
    +  syn match rOTag contained "@includeRmd"
    +  syn match rOTag contained "@order"
    +endif
    +
    +
    +if &filetype == "rhelp"
    +  " string enclosed in double quotes
    +  syn region rString contains=rSpecial,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/
    +  " string enclosed in single quotes
    +  syn region rString contains=rSpecial,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/
    +else
    +  " string enclosed in double quotes
    +  syn region rString contains=rSpecial,rStrError,@Spell start=/"/ skip=/\\\\\|\\"/ end=/"/
    +  " string enclosed in single quotes
    +  syn region rString contains=rSpecial,rStrError,@Spell start=/'/ skip=/\\\\\|\\'/ end=/'/
    +endif
    +
    +syn match rStrError display contained "\\."
    +
    +
    +" New line, carriage return, tab, backspace, bell, feed, vertical tab, backslash
    +syn match rSpecial display contained "\\\(n\|r\|t\|b\|a\|f\|v\|'\|\"\)\|\\\\"
    +
    +" Hexadecimal and Octal digits
    +syn match rSpecial display contained "\\\(x\x\{1,2}\|[0-8]\{1,3}\)"
    +
    +" Unicode characters
    +syn match rSpecial display contained "\\u\x\{1,4}"
    +syn match rSpecial display contained "\\U\x\{1,8}"
    +syn match rSpecial display contained "\\u{\x\{1,4}}"
    +syn match rSpecial display contained "\\U{\x\{1,8}}"
    +
    +" Raw string
    +syn region rRawString matchgroup=rRawStrDelim start=/[rR]\z(['"]\)\z(-*\)(/ end=/)\z2\z1/ keepend
    +syn region rRawString matchgroup=rRawStrDelim start=/[rR]\z(['"]\)\z(-*\){/ end=/}\z2\z1/ keepend
    +syn region rRawString matchgroup=rRawStrDelim start=/[rR]\z(['"]\)\z(-*\)\[/ end=/\]\z2\z1/ keepend
    +
    +" Statement
    +syn keyword rStatement   break next return
    +syn keyword rConditional if else
    +syn keyword rRepeat      for in repeat while
    +
    +" Constant (not really)
    +syn keyword rConstant T F LETTERS letters month.abb month.name pi
    +syn keyword rConstant R.version.string
    +
    +syn keyword rNumber   NA_integer_ NA_real_ NA_complex_ NA_character_
    +
    +" Constants
    +syn keyword rConstant NULL
    +syn keyword rBoolean  FALSE TRUE
    +syn keyword rNumber   NA Inf NaN
    +
    +" integer
    +syn match rInteger "\<\d\+L"
    +syn match rInteger "\<0x\([0-9]\|[a-f]\|[A-F]\)\+L"
    +syn match rInteger "\<\d\+[Ee]+\=\d\+L"
    +
    +" number with no fractional part or exponent
    +syn match rNumber "\<\d\+\>"
    +" hexadecimal number
    +syn match rNumber "\<0x\([0-9]\|[a-f]\|[A-F]\)\+"
    +
    +" floating point number with integer and fractional parts and optional exponent
    +syn match rFloat "\<\d\+\.\d*\([Ee][-+]\=\d\+\)\="
    +" floating point number with no integer part and optional exponent
    +syn match rFloat "\<\.\d\+\([Ee][-+]\=\d\+\)\="
    +" floating point number with no fractional part and optional exponent
    +syn match rFloat "\<\d\+[Ee][-+]\=\d\+"
    +
    +" complex number
    +syn match rComplex "\<\d\+i"
    +syn match rComplex "\<\d\++\d\+i"
    +syn match rComplex "\<0x\([0-9]\|[a-f]\|[A-F]\)\+i"
    +syn match rComplex "\<\d\+\.\d*\([Ee][-+]\=\d\+\)\=i"
    +syn match rComplex "\<\.\d\+\([Ee][-+]\=\d\+\)\=i"
    +syn match rComplex "\<\d\+[Ee][-+]\=\d\+i"
    +
    +syn match rAssign    '='
    +syn match rOperator    "&"
    +syn match rOperator    '-'
    +syn match rOperator    '\*'
    +syn match rOperator    '+'
    +if &filetype == "quarto" || &filetype == "rmd" || &filetype == "rrst"
    +  syn match rOperator    "[|!<>^~`/:]"
    +else
    +  syn match rOperator    "[|!<>^~/:]"
    +endif
    +syn match rOperator    "%\{2}\|%\S\{-}%"
    +syn match rOperator '\([!><]\)\@<=='
    +syn match rOperator '=='
    +syn match rOperator '|>'
    +syn match rOpError  '\*\{3}'
    +syn match rOpError  '//'
    +syn match rOpError  '&&&'
    +syn match rOpError  '|||'
    +syn match rOpError  '<<'
    +syn match rOpError  '>>'
    +
    +syn match rAssign "<\{1,2}-"
    +syn match rAssign "->\{1,2}"
    +
    +" Special
    +syn match rDelimiter "[,;:]"
    +
    +" Error
    +if exists("g:r_syntax_folding")
    +  syn region rRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError fold
    +  syn region rRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError fold
    +  syn region rRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError fold
    +  syn region rSection matchgroup=Title start=/^#.*[-=#]\{4,}/ end=/^#.*[-=#]\{4,}/ms=s-2,me=s-1 transparent contains=ALL fold
    +else
    +  syn region rRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError
    +  syn region rRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError
    +  syn region rRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError
    +endif
    +
    +syn match rError      "[)\]}]"
    +syn match rBraceError "[)}]" contained
    +syn match rCurlyError "[)\]]" contained
    +syn match rParenError "[\]}]" contained
    +
    +" Use Nvim-R to highlight functions dynamically if it is installed
    +if !exists("g:r_syntax_fun_pattern")
    +  let s:ff = split(substitute(globpath(&rtp, "R/functions.vim"), "functions.vim", "", "g"), "\n")
    +  if len(s:ff) > 0
    +    let g:r_syntax_fun_pattern = 0
    +  else
    +    let g:r_syntax_fun_pattern = 1
    +  endif
    +endif
    +
    +" Only use Nvim-R to highlight functions if they should not be highlighted
    +" according to a generic pattern
    +if g:r_syntax_fun_pattern == 1
    +  syn match rFunction '[0-9a-zA-Z_\.]\+\s*\ze('
    +else
    +  " Nvim-R:
    +  runtime R/functions.vim
    +endif
    +
    +syn match rDollar display contained "\$"
    +syn match rDollar display contained "@"
    +
    +" List elements will not be highlighted as functions:
    +syn match rLstElmt "\$[a-zA-Z0-9\\._]*" contains=rDollar
    +syn match rLstElmt "@[a-zA-Z0-9\\._]*" contains=rDollar
    +
    +" Functions that may add new objects
    +syn keyword rPreProc     library require attach detach source
    +
    +if &filetype == "rhelp"
    +  syn match rHelpIdent '\\method'
    +  syn match rHelpIdent '\\S4method'
    +endif
    +
    +" Type
    +syn match rType "\\"
    +syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame
    +
    +" Name of object with spaces
    +if &filetype == "rmd" || &filetype == "rrst" || &filetype == "quarto"
    +  syn region rNameWSpace start="`" end="`" contains=rSpaceFun containedin=rmdrChunk
    +else
    +  syn region rNameWSpace start="`" end="`" contains=rSpaceFun
    +endif
    +
    +if &filetype == "rhelp"
    +  syn match rhPreProc "^#ifdef.*"
    +  syn match rhPreProc "^#endif.*"
    +  syn match rhSection "\\dontrun\>"
    +endif
    +
    +if exists("r_syntax_minlines")
    +  exe "syn sync minlines=" . r_syntax_minlines
    +else
    +  syn sync minlines=40
    +endif
    +
    +" Define the default highlighting.
    +hi def link rAssign      Statement
    +hi def link rBoolean     Boolean
    +hi def link rBraceError  Error
    +hi def link rComment     Comment
    +hi def link rTodoParen   Comment
    +hi def link rTodoInfo    SpecialComment
    +hi def link rCommentTodo Todo
    +hi def link rTodoKeyw    Todo
    +hi def link rComplex     Number
    +hi def link rConditional Conditional
    +hi def link rConstant    Constant
    +hi def link rCurlyError  Error
    +hi def link rDelimiter   Delimiter
    +hi def link rDollar      SpecialChar
    +hi def link rError       Error
    +hi def link rFloat       Float
    +hi def link rFunction    Function
    +hi def link rSpaceFun    Function
    +hi def link rHelpIdent   Identifier
    +hi def link rhPreProc    PreProc
    +hi def link rhSection    PreCondit
    +hi def link rInteger     Number
    +hi def link rLstElmt     Normal
    +hi def link rNameWSpace  Normal
    +hi def link rNumber      Number
    +hi def link rOperator    Operator
    +hi def link rOpError     Error
    +hi def link rParenError  Error
    +hi def link rPreProc     PreProc
    +hi def link rRawString   String
    +hi def link rRawStrDelim Delimiter
    +hi def link rRepeat      Repeat
    +hi def link rSpecial     SpecialChar
    +hi def link rStatement   Statement
    +hi def link rString      String
    +hi def link rStrError    Error
    +hi def link rType        Type
    +if g:r_syntax_hl_roxygen
    +  hi def link rOTitleTag   Operator
    +  hi def link rOTag        Operator
    +  hi def link rOTitleBlock Title
    +  hi def link rOBlock         Comment
    +  hi def link rOBlockNoTitle  Comment
    +  hi def link rOR6Block         Comment
    +  hi def link rOTitle      Title
    +  hi def link rOCommentKey Comment
    +  hi def link rOExamples   SpecialComment
    +endif
    +
    +let b:current_syntax="r"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/racc.vim b/git/usr/share/vim/vim92/syntax/racc.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2d4c176eb7bf204325c06dc270009dabd923c9a7
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/racc.vim
    @@ -0,0 +1,142 @@
    +" Vim default file
    +" Language:             Racc input file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2008-06-22
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn keyword raccTodo        contained TODO FIXME XXX NOTE
    +
    +syn region  raccComment     start='/\*' end='\*/'
    +                            \ contains=raccTodo,@Spell
    +syn region  raccComment     display oneline start='#' end='$'
    +                            \ contains=raccTodo,@Spell
    +
    +syn region  raccClass       transparent matchgroup=raccKeyword
    +                            \ start='\' end='\'he=e-4
    +                            \ contains=raccComment,raccPrecedence,
    +                            \ raccTokenDecl,raccExpect,raccOptions,raccConvert,
    +                            \ raccStart,
    +
    +syn region  raccPrecedence  transparent matchgroup=raccKeyword
    +                            \ start='\' end='\'
    +                            \ contains=raccComment,raccPrecSpec
    +
    +syn keyword raccPrecSpec    contained nonassoc left right
    +                            \ nextgroup=raccPrecToken,raccPrecString skipwhite
    +                            \ skipnl
    +
    +syn match   raccPrecToken   contained '\<\u[A-Z0-9_]*\>'
    +                            \ nextgroup=raccPrecToken,raccPrecString skipwhite
    +                            \ skipnl
    +
    +syn region  raccPrecString  matchgroup=raccPrecString start=+"+
    +                            \ skip=+\\\\\|\\"+ end=+"+
    +                            \ contains=raccSpecial
    +                            \ nextgroup=raccPrecToken,raccPrecString skipwhite
    +                            \ skipnl
    +syn region  raccPrecString  matchgroup=raccPrecString start=+'+
    +                            \ skip=+\\\\\|\\'+ end=+'+ contains=raccSpecial
    +                            \ nextgroup=raccPrecToken,raccPrecString skipwhite
    +                            \ skipnl
    +
    +syn keyword raccTokenDecl   contained token
    +                            \ nextgroup=raccTokenR skipwhite skipnl
    +
    +syn match   raccTokenR      contained '\<\u[A-Z0-9_]*\>'
    +                            \ nextgroup=raccTokenR skipwhite skipnl
    +
    +syn keyword raccExpect      contained expect
    +                            \ nextgroup=raccNumber skipwhite skipnl
    +
    +syn match   raccNumber      contained '\<\d\+\>'
    +
    +syn keyword raccOptions     contained options
    +                            \ nextgroup=raccOptionsR skipwhite skipnl
    +
    +syn keyword raccOptionsR    contained omit_action_call result_var
    +                            \ nextgroup=raccOptionsR skipwhite skipnl
    +
    +syn region  raccConvert     transparent contained matchgroup=raccKeyword
    +                            \ start='\' end='\'
    +                            \ contains=raccComment,raccConvToken skipwhite
    +                            \ skipnl
    +
    +syn match   raccConvToken   contained '\<\u[A-Z0-9_]*\>'
    +                            \ nextgroup=raccString skipwhite skipnl
    +
    +syn keyword raccStart       contained start
    +                            \ nextgroup=raccTargetS skipwhite skipnl
    +
    +syn match   raccTargetS     contained '\<\l[a-z0-9_]*\>'
    +
    +syn match   raccSpecial     contained '\\["'\\]'
    +
    +syn region  raccString      start=+"+ skip=+\\\\\|\\"+ end=+"+
    +                            \ contains=raccSpecial
    +syn region  raccString      start=+'+ skip=+\\\\\|\\'+ end=+'+
    +                            \ contains=raccSpecial
    +
    +syn region  raccRules       transparent matchgroup=raccKeyword start='\'
    +                            \ end='\' contains=raccComment,raccString,
    +                            \ raccNumber,raccToken,raccTarget,raccDelimiter,
    +                            \ raccAction
    +
    +syn match   raccTarget      contained '\<\l[a-z0-9_]*\>'
    +
    +syn match   raccDelimiter   contained '[:|]'
    +
    +syn match   raccToken       contained '\<\u[A-Z0-9_]*\>'
    +
    +syn include @raccRuby       syntax/ruby.vim
    +
    +syn region  raccAction      transparent matchgroup=raccDelimiter
    +                            \ start='{' end='}' contains=@raccRuby
    +
    +syn region  raccHeader      transparent matchgroup=raccPreProc
    +                            \ start='^---- header.*' end='^----'he=e-4
    +                            \ contains=@raccRuby
    +
    +syn region  raccInner       transparent matchgroup=raccPreProc
    +                            \ start='^---- inner.*' end='^----'he=e-4
    +                            \ contains=@raccRuby
    +
    +syn region  raccFooter      transparent matchgroup=raccPreProc
    +                            \ start='^---- footer.*' end='^----'he=e-4
    +                            \ contains=@raccRuby
    +
    +syn sync    match raccSyncHeader    grouphere raccHeader '^---- header'
    +syn sync    match raccSyncInner     grouphere raccInner '^---- inner'
    +syn sync    match raccSyncFooter    grouphere raccFooter '^---- footer'
    +
    +hi def link raccTodo        Todo
    +hi def link raccComment     Comment
    +hi def link raccPrecSpec    Type
    +hi def link raccPrecToken   raccToken
    +hi def link raccPrecString  raccString
    +hi def link raccTokenDecl   Keyword
    +hi def link raccToken       Identifier
    +hi def link raccTokenR      raccToken
    +hi def link raccExpect      Keyword
    +hi def link raccNumber      Number
    +hi def link raccOptions     Keyword
    +hi def link raccOptionsR    Identifier
    +hi def link raccConvToken   raccToken
    +hi def link raccStart       Keyword
    +hi def link raccTargetS     Type
    +hi def link raccSpecial     special
    +hi def link raccString      String
    +hi def link raccTarget      Type
    +hi def link raccDelimiter   Delimiter
    +hi def link raccPreProc     PreProc
    +hi def link raccKeyword     Keyword
    +
    +let b:current_syntax = "racc"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/racket.vim b/git/usr/share/vim/vim92/syntax/racket.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..1405e4b2d655f765208abca9b2b08d8f67355ee8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/racket.vim
    @@ -0,0 +1,665 @@
    +" Vim syntax file
    +" Language:             Racket
    +" Maintainer:           D. Ben Knoble 
    +" Previous Maintainer:  Will Langstroth 
    +" URL:                  https://github.com/benknoble/vim-racket
    +" Description:          Contains all of the keywords in #lang racket
    +" Last Change:          2026 Jan 07
    +
    +" Initializing:
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Highlight unmatched parens
    +syntax match racketError ,[]})],
    +
    +if version < 800
    +  set iskeyword=33,35-39,42-58,60-90,94,95,97-122,126,_
    +else
    +  " syntax iskeyword 33,35-39,42-58,60-90,94,95,97-122,126,_
    +  " converted from decimal to char
    +  " :s/\d\+/\=submatch(0)->str2nr()->nr2char()/g
    +  " but corrected to remove duplicate _, move ^ to end
    +  syntax iskeyword @,!,#-',*-:,<-Z,a-z,~,_,^
    +  " expanded
    +  " syntax iskeyword !,#,$,%,&,',*,+,,,-,.,/,0-9,:,<,=,>,?,@,A-Z,_,a-z,~,^
    +endif
    +
    +" Forms in order of appearance at
    +" http://docs.racket-lang.org/reference/index.html
    +"
    +syntax keyword racketSyntax module module* module+ require provide quote
    +syntax keyword racketSyntax #%module-begin #%datum #%expression #%top #%variable-reference #%app
    +syntax keyword racketSyntax lambda case-lambda let let* letrec
    +syntax keyword racketSyntax let-values let*-values let-syntax letrec-syntax
    +syntax keyword racketSyntax let-syntaxes letrec-syntaxes letrec-syntaxes+values
    +syntax keyword racketSyntax local shared
    +syntax keyword racketSyntax if cond and or case define else =>
    +syntax keyword racketSyntax define define-values define-syntax define-syntaxes
    +syntax keyword racketSyntax define-for-syntax define-require-syntax define-provide-syntax
    +syntax keyword racketSyntax define-syntax-rule
    +syntax keyword racketSyntax define-record-type
    +syntax keyword racketSyntax begin begin0
    +syntax keyword racketSyntax begin-for-syntax
    +syntax keyword racketSyntax when unless
    +syntax keyword racketSyntax set! set!-values
    +syntax keyword racketSyntax for for/list for/vector for/hash for/hasheq for/hasheqv
    +syntax keyword racketSyntax for/and for/or for/lists for/first
    +syntax keyword racketSyntax for/last for/fold
    +syntax keyword racketSyntax for* for*/list for*/vector for*/hash for*/hasheq for*/hasheqv
    +syntax keyword racketSyntax for*/and for*/or for*/lists for*/first
    +syntax keyword racketSyntax for*/last for*/fold
    +syntax keyword racketSyntax for/fold/derived for*/fold/derived
    +syntax keyword racketSyntax define-sequence-syntax :do-in do
    +syntax keyword racketSyntax with-continuation-mark
    +syntax keyword racketSyntax quasiquote unquote unquote-splicing quote-syntax
    +syntax keyword racketSyntax #%top-interaction
    +syntax keyword racketSyntax define-package open-package package-begin
    +syntax keyword racketSyntax define* define*-values define*-syntax define*-syntaxes open*-package
    +syntax keyword racketSyntax package? package-exported-identifiers package-original-identifiers
    +syntax keyword racketSyntax block #%stratified-body
    +
    +" 8 Contracts
    +" 8.2 Function contracts
    +syntax keyword racketSyntax -> ->* ->i ->d case-> dynamic->* unconstrained-domain->
    +
    +" 8.6.1 Nested Contract Boundaries
    +syntax keyword racketSyntax with-contract define/contract define-struct/contract
    +syntax keyword racketSyntax invariant-assertion current-contract-region
    +
    +" 9 Pattern Matching
    +syntax keyword racketSyntax match match* match/values define/match
    +syntax keyword racketSyntax match-lambda match-lambda* match-lambda**
    +syntax keyword racketSyntax match-let match-let* match-let-values match-let*-values
    +syntax keyword racketSyntax match-letrec match-define match-define-values
    +
    +" 10.2.3 Handling Exceptions
    +syntax keyword racketSyntax with-handlers with-handlers*
    +
    +" 10.4 Continuations
    +syntax keyword racketSyntax let/cc let/ec
    +
    +" 10.4.1 Additional Control Operators
    +syntax keyword racketSyntax % prompt control prompt-at control-at reset shift
    +syntax keyword racketSyntax reset-at shift-at prompt0 reset0 control0 shift0
    +syntax keyword racketSyntax prompt0-at reset0-at control0-at shift0-at
    +syntax keyword racketSyntax set cupto
    +
    +" 11.3.2 Parameters
    +syntax keyword racketSyntax parameterize parameterize*
    +
    +" 12.5 Writing
    +syntax keyword racketSyntax write display displayln print
    +syntax keyword racketSyntax fprintf printf eprintf format
    +syntax keyword racketSyntax print-pair-curly-braces print-mpair-curly-braces print-unreadable
    +syntax keyword racketSyntax print-graph print-struct print-box print-vector-length print-hash-table
    +syntax keyword racketSyntax print-boolean-long-form print-reader-abbreviations print-as-expression print-syntax-width
    +syntax keyword racketSyntax current-write-relative-directory port-write-handler port-display-handler
    +syntax keyword racketSyntax port-print-handler global-port-print-handler
    +
    +" 13.7 Custodians
    +syntax keyword racketSyntax custodian? custodian-memory-accounting-available? custodian-box?
    +syntax keyword racketSyntax make-custodian custodian-shutdown-all current-custodian custodian-managed-list
    +syntax keyword racketSyntax custodian-require-memory custodian-limit-memory
    +syntax keyword racketSyntax make-custodian-box custodian-box-value
    +
    +" lambda sign
    +syntax match racketSyntax /\<[\u03bb]\>/
    +
    +
    +" Functions ==================================================================
    +
    +syntax keyword racketFunc boolean? not equal? eqv? eq? equal?/recur immutable?
    +syntax keyword racketFunc true false symbol=? boolean=? false?
    +syntax keyword racketFunc number? complex? real? rational? integer?
    +syntax keyword racketFunc exact-integer? exact-nonnegative-integer?
    +syntax keyword racketFunc exact-positive-integer? inexact-real?
    +syntax keyword racketFunc fixnum? flonum? zero? positive? negative?
    +syntax keyword racketFunc even? odd? exact? inexact?
    +syntax keyword racketFunc inexact->exact exact->inexact
    +
    +" 3.2.2 General Arithmetic
    +
    +" 3.2.2.1 Arithmetic
    +syntax keyword racketFunc + - * / quotient remainder quotient/remainder modulo
    +syntax keyword racketFunc add1 sub1 abs max min gcd lcm round exact-round floor
    +syntax keyword racketFunc ceiling truncate numerator denominator rationalize
    +
    +" 3.2.2.2 Number Comparison
    +syntax keyword racketFunc = < <= > >=
    +
    +" 3.2.2.3 Powers and Roots
    +syntax keyword racketFunc sqrt integer-sqrt integer-sqrt/remainder
    +syntax keyword racketFunc expt exp log
    +
    +" 3.2.2.3 Trigonometric Functions
    +syntax keyword racketFunc sin cos tan asin acos atan
    +
    +" 3.2.2.4 Complex Numbers
    +syntax keyword racketFunc make-rectangular make-polar
    +syntax keyword racketFunc real-part imag-part magnitude angle
    +syntax keyword racketFunc bitwise-ior bitwise-and bitwise-xor bitwise-not
    +syntax keyword racketFunc bitwise-bit-set? bitwise-bit-field arithmetic-shift
    +syntax keyword racketFunc integer-length
    +
    +" 3.2.2.5 Random Numbers
    +syntax keyword racketFunc random random-seed
    +syntax keyword racketFunc make-pseudo-random-generator pseudo-random-generator?
    +syntax keyword racketFunc current-pseudo-random-generator pseudo-random-generator->vector
    +syntax keyword racketFunc vector->pseudo-random-generator vector->pseudo-random-generator!
    +
    +" 3.2.2.8 Number-String Conversions
    +syntax keyword racketFunc number->string string->number real->decimal-string
    +syntax keyword racketFunc integer->integer-bytes
    +syntax keyword racketFunc floating-point-bytes->real real->floating-point-bytes
    +syntax keyword racketFunc system-big-endian?
    +
    +" 3.2.2.9 Extra Constants and Functions
    +syntax keyword racketFunc pi sqr sgn conjugate sinh cosh tanh order-of-magnitude
    +
    +" 3.2.3 Flonums
    +
    +" 3.2.3.1 Flonum Arithmetic
    +syntax keyword racketFunc fl+ fl- fl* fl/ flabs
    +syntax keyword racketFunc fl= fl< fl> fl<= fl>= flmin flmax
    +syntax keyword racketFunc flround flfloor flceiling fltruncate
    +syntax keyword racketFunc flsin flcos fltan flasin flacos flatan
    +syntax keyword racketFunc fllog flexp flsqrt
    +syntax keyword racketFunc ->fl fl->exact-integer make-flrectangular
    +syntax keyword racketFunc flreal-part flimag-part
    +
    +" 3.2.3.2 Flonum Vectors
    +syntax keyword racketFunc flvector? flvector make-flvector flvector-length
    +syntax keyword racketFunc flvector-ref flvector-set! flvector-copy in-flvector
    +syntax keyword racketFunc shared-flvector make-shared-flvector
    +syntax keyword racketSyntax for/flvector for*/flvector
    +
    +" 3.2.4 Fixnums
    +syntax keyword racketFunc fx+ fx- fx* fxquotient fxremainder fxmodulo fxabs
    +syntax keyword racketFunc fxand fxior fxxor fxnot fxlshift fxrshift
    +syntax keyword racketFunc fx= fx< fx> fx<= fx>= fxmin fxmax fx->fl fl->fx
    +
    +" 3.2.4.2 Fixnum Vectors
    +syntax keyword racketFunc fxvector? fxvector make-fxvector fxvector-length
    +syntax keyword racketFunc fxvector-ref fxvector-set! fxvector-copy in-fxvector
    +syntax keyword racketFunc for/fxvector for*/fxvector
    +syntax keyword racketFunc shared-fxvector make-shared-fxvector
    +
    +" 3.3 Strings
    +syntax keyword racketFunc string? make-string string string->immutable-string string-length
    +syntax keyword racketFunc string-ref string-set! substring string-copy string-copy!
    +syntax keyword racketFunc string-fill! string-append string->list list->string
    +syntax keyword racketFunc build-string string=? string? string>=?
    +syntax keyword racketFunc string-ci=? string-ci? string-ci>=?
    +syntax keyword racketFunc string-upcase string-downcase string-titlecase string-foldcase
    +syntax keyword racketFunc string-normalize-nfd string-normalize-nfc string-normalize-nfkc
    +syntax keyword racketFunc string-normalize-spaces string-trim
    +syntax keyword racketFunc string-locale=? string-locale>? string-localeimmutable-bytes byte?
    +syntax keyword racketFunc bytes-length bytes-ref bytes-set! subbytes bytes-copy
    +syntax keyword racketFunc bytes-copy! bytes-fill! bytes-append bytes->list list->bytes
    +syntax keyword racketFunc make-shared-bytes shared-bytes
    +syntax keyword racketFunc bytes=? bytes?
    +syntax keyword racketFunc bytes->string/utf-8 bytes->string/latin-1
    +syntax keyword racketFunc string->bytes/locale string->bytes/latin-1 string->bytes/utf-8
    +syntax keyword racketFunc string-utf-8-length bytes-utf8-ref bytes-utf-8-index
    +syntax keyword racketFunc bytes-open-converter bytes-close-converter
    +syntax keyword racketFunc bytes-convert bytes-convert-end bytes-converter?
    +syntax keyword racketFunc locale-string-encoding
    +
    +" 3.5 Characters
    +syntax keyword racketFunc char? char->integer integer->char
    +syntax keyword racketFunc char=? char? char>=?
    +syntax keyword racketFunc char-ci=? char-ci? char-ci>=?
    +syntax keyword racketFunc char-alphabetic? char-lower-case? char-upper-case? char-title-case?
    +syntax keyword racketFunc char-numeric? char-symbolic? char-punctuation? char-graphic?
    +syntax keyword racketFunc char-whitespace? char-blank?
    +syntax keyword racketFunc char-iso-control? char-general-category
    +syntax keyword racketFunc make-known-char-range-list
    +syntax keyword racketFunc char-upcase char-downcase char-titlecase char-foldcase
    +
    +" 3.6 Symbols
    +syntax keyword racketFunc symbol? symbol-interned? symbol-unreadable?
    +syntax keyword racketFunc symbol->string string->symbol
    +syntax keyword racketFunc string->uninterned-symbol string->unreadable-symbol
    +syntax keyword racketFunc gensym
    +
    +" 3.7 Regular Expressions
    +syntax keyword racketFunc regexp? pregexp? byte-regexp? byte-pregexp?
    +syntax keyword racketFunc regexp pregexp byte-regexp byte-pregexp
    +syntax keyword racketFunc regexp-quote regexp-match regexp-match*
    +syntax keyword racketFunc regexp-try-match regexp-match-positions
    +syntax keyword racketFunc regexp-match-positions* regexp-match?
    +syntax keyword racketFunc regexp-match-peek-positions regexp-match-peek-immediate
    +syntax keyword racketFunc regexp-match-peek regexp-match-peek-positions*
    +syntax keyword racketFunc regexp-match/end regexp-match-positions/end
    +syntax keyword racketFunc regexp-match-peek-positions-immediat/end
    +syntax keyword racketFunc regexp-split regexp-replace regexp-replace*
    +syntax keyword racketFunc regexp-replace-quote
    +
    +" 3.8 Keywords
    +syntax keyword racketFunc keyword? keyword->string string->keyword keywordlist list->vector
    +syntax keyword racketFunc vector->immutable-vector vector-fill!  vector-copy!
    +syntax keyword racketFunc vector->values build-vector vector-set*!  vector-map
    +syntax keyword racketFunc vector-map!  vector-append vector-take vector-take-right
    +syntax keyword racketFunc vector-drop vector-drop-right vector-split-at
    +syntax keyword racketFunc vector-split-at-right vector-copy vector-filter
    +syntax keyword racketFunc vector-filter-not vector-count vector-argmin vector-argmax
    +syntax keyword racketFunc vector-member vector-memv vector-memq
    +
    +" 3.12 Boxes
    +syntax keyword racketFunc box?  box box-immutable unbox set-box!
    +
    +" 3.13 Hash Tables
    +syntax keyword racketFunc hash? hash-equal? hash-eqv? hash-eq? hash-weak? hash
    +syntax keyword racketFunc hasheq hasheqv
    +syntax keyword racketFunc make-hash make-hasheqv make-hasheq make-weak-hash make-weak-hasheqv
    +syntax keyword racketFunc make-weak-hasheq make-immutable-hash make-immutable-hasheqv
    +syntax keyword racketFunc make-immutable-hasheq
    +syntax keyword racketFunc hash-set! hash-set*! hash-set hash-set* hash-ref hash-ref!
    +syntax keyword racketFunc hash-has-key? hash-update! hash-update hash-remove!
    +syntax keyword racketFunc hash-remove hash-map hash-keys hash-values
    +syntax keyword racketFunc hash->list hash-for-each hash-count
    +syntax keyword racketFunc hash-iterate-first hash-iterate-next hash-iterate-key
    +syntax keyword racketFunc hash-iterate-value hash-copy eq-hash-code eqv-hash-code
    +syntax keyword racketFunc equal-hash-code equal-secondary-hash-code
    +
    +" 3.15 Dictionaries
    +syntax keyword racketFunc dict? dict-mutable? dict-can-remove-keys? dict-can-functional-set?
    +syntax keyword racketFunc dict-set! dict-set*! dict-set dict-set* dict-has-key? dict-ref
    +syntax keyword racketFunc dict-ref! dict-update! dict-update dict-remove! dict-remove
    +syntax keyword racketFunc dict-map dict-for-each dict-count dict-iterate-first dict-iterate-next
    +syntax keyword racketFunc dict-iterate-key dict-iterate-value in-dict in-dict-keys
    +syntax keyword racketFunc in-dict-values in-dict-pairs dict-keys dict-values
    +syntax keyword racketFunc dict->list prop: dict prop: dict/contract dict-key-contract
    +syntax keyword racketFunc dict-value-contract dict-iter-contract make-custom-hash
    +syntax keyword racketFunc make-immutable-custom-hash make-weak-custom-hash
    +
    +" 3.16 Sets
    +syntax keyword racketFunc set seteqv seteq set-empty? set-count set-member?
    +syntax keyword racketFunc set-add set-remove set-union set-intersect set-subtract
    +syntax keyword racketFunc set-symmetric-difference set=? subset? proper-subset?
    +syntax keyword racketFunc set-map set-for-each set? set-equal? set-eqv? set-eq?
    +syntax keyword racketFunc set/c in-set for/set for/seteq for/seteqv for*/set
    +syntax keyword racketFunc for*/seteq for*/seteqv list->set list->seteq
    +syntax keyword racketFunc list->seteqv set->list
    +
    +" 3.17 Procedures
    +syntax keyword racketFunc procedure? apply compose compose1 procedure-rename procedure->method
    +syntax keyword racketFunc keyword-apply procedure-arity procedure-arity?
    +syntax keyword racketFunc procedure-arity-includes? procedure-reduce-arity
    +syntax keyword racketFunc procedure-keywords make-keyword-procedure
    +syntax keyword racketFunc procedure-reduce-keyword-arity procedure-struct-type?
    +syntax keyword racketFunc procedure-extract-target checked-procedure-check-and-extract
    +syntax keyword racketFunc primitive? primitive-closure? primitive-result-arity
    +syntax keyword racketFunc identity const thunk thunk* negate curry curryr
    +
    +" 3.18 Void
    +syntax keyword racketFunc void void?
    +
    +" 4.1 Defining Structure Types
    +syntax keyword racketFunc struct struct-field-index define-struct define-struct define-struct/derived
    +
    +" 4.2 Creating Structure Types
    +syntax keyword racketFunc make-struct-type make-struct-field-accessor make-struct-field-mutator
    +
    +" 4.3 Structure Type Properties
    +syntax keyword racketFunc make-struct-type-property struct-type-property? struct-type-property-accessor-procedure?
    +
    +" 4.4 Copying and Updating Structures
    +syntax keyword racketFunc struct-copy
    +
    +" 4.5 Structure Utilities
    +syntax keyword racketFunc struct->vector struct? struct-type?
    +syntax keyword racketFunc struct-constructor-procedure? struct-predicate-procedure? struct-accessor-procedure? struct-mutator-procedure?
    +syntax keyword racketFunc prefab-struct-key make-prefab-struct prefab-key->struct-type
    +
    +" 4.6 Structure Type Transformer Binding
    +syntax keyword racketFunc struct-info? check-struct-info? make-struct-info extract-struct-info
    +syntax keyword racketFunc struct-auto-info? struct-auto-info-lists
    +
    +" 5.1 Creating Interfaces
    +syntax keyword racketFunc interface interface*
    +
    +" 5.2 Creating Classes
    +syntax keyword racketFunc class* class inspect
    +syntax keyword racketFunc init init-field field inherit field init-rest
    +syntax keyword racketFunc public public* pubment pubment* public-final public-final*
    +syntax keyword racketFunc override override* overment overment* override-final override-final*
    +syntax keyword racketFunc augride augride* augment augment* augment-final augment-final*
    +syntax keyword racketFunc abstract inherit inherit/super inherit/inner
    +syntax keyword racketFunc rename-inner rename-super
    +syntax keyword racketFunc define/public define/pubment define/public-final
    +syntax keyword racketFunc define/override define/overment define/override-final
    +syntax keyword racketFunc define/augride define/augment define/augment-final
    +syntax keyword racketFunc private* define/private
    +
    +" 5.2.3 Methods
    +syntax keyword racketFunc class/derived
    +syntax keyword racketFunc super inner define-local-member-name define-member-name
    +syntax keyword racketFunc member-name-key generate-member-key member-name-key?
    +syntax keyword racketFunc member-name-key=? member-name-key-hash-code
    +
    +" 5.3 Creating Objects
    +syntax keyword racketFunc make-object instantiate new
    +syntax keyword racketFunc super-make-object super-instantiate super-new
    +
    +"5.4 Field and Method Access
    +syntax keyword racketFunc method-id send send/apply send/keyword-apply dynamic-send send*
    +syntax keyword racketFunc get-field set-field! field-bound?
    +syntax keyword racketFunc class-field-accessor class-field-mutator
    +
    +"5.4.3 Generics
    +syntax keyword racketFunc generic send-generic make-generic
    +
    +" 8.1 Data-strucure contracts
    +syntax keyword racketFunc flat-contract-with-explanation flat-named-contract
    +" TODO where do any/c and none/c `value`s go?
    +syntax keyword racketFunc or/c first-or/c and/c not/c =/c /c <=/c >=/c
    +syntax keyword racketFunc between/c real-in integer-in char-in natural-number/c
    +syntax keyword racketFunc string-len/c printable/c one-of/c symbols vectorof
    +syntax keyword racketFunc vector-immutableof vector/c box/c box-immutable/c listof
    +syntax keyword racketFunc non-empty-listof list*of cons/c cons/dc list/c *list/c
    +syntax keyword racketFunc syntax/c struct/c struct/dc parameter/c
    +syntax keyword racketFunc procedure-arity-includes/c hash/c hash/dc channel/c
    +syntax keyword racketFunc prompt-tag/c continuation-mark-key/c evt/c promise/c
    +syntax keyword racketFunc flat-contract flat-contract-predicate suggest/c
    +
    +" 9.1 Multiple Values
    +syntax keyword racketFunc values call-with-values
    +
    +" 10.2.2 Raising Exceptions
    +syntax keyword racketFunc raise error raise-user-error raise-argument-error
    +syntax keyword racketFunc raise-result-error raise-argument-error raise-range-error
    +syntax keyword racketFunc raise-type-error raise-mismatch-error raise-arity-error
    +syntax keyword racketFunc raise-syntax-error
    +
    +" 10.2.3 Handling Exceptions
    +syntax keyword racketFunc call-with-exception-handler uncaught-exception-handler
    +
    +" 10.2.4 Configuring Default Handlers
    +syntax keyword racketFunc error-escape-handler error-display-handler error-print-width
    +syntax keyword racketFunc error-print-context-length error-values->string-handler
    +syntax keyword racketFunc error-print-source-location
    +
    +" 10.2.5 Built-in Exception Types
    +syntax keyword racketFunc exn exn:fail exn:fail:contract exn:fail:contract:arity
    +syntax keyword racketFunc exn:fail:contract:divide-by-zero exn:fail:contract:non-fixnum-result
    +syntax keyword racketFunc exn:fail:contract:continuation exn:fail:contract:variable
    +syntax keyword racketFunc exn:fail:syntax exn:fail:syntax:unbound exn:fail:syntax:missing-module
    +syntax keyword racketFunc exn:fail:read exn:fail:read:eof exn:fail:read:non-char
    +syntax keyword racketFunc exn:fail:filesystem exn:fail:filesystem:exists
    +syntax keyword racketFunc exn:fail:filesystem:version exn:fail:filesystem:errno
    +syntax keyword racketFunc exn:fail:filesystem:missing-module
    +syntax keyword racketFunc exn:fail:network exn:fail:network:errno exn:fail:out-of-memory
    +syntax keyword racketFunc exn:fail:unsupported exn:fail:user
    +syntax keyword racketFunc exn:break exn:break:hang-up exn:break:terminate
    +
    +" 10.3 Delayed Evaluation
    +syntax keyword racketFunc promise? delay lazy force promise-forced? promise-running?
    +
    +" 10.3.1 Additional Promise Kinds
    +syntax keyword racketFunc delay/name promise/name delay/strict delay/sync delay/thread delay/idle
    +
    +" 10.4 Continuations
    +syntax keyword racketFunc call-with-continuation-prompt abort-current-continuation make-continuation-prompt-tag
    +syntax keyword racketFunc default-continuation-prompt-tag call-with-current-continuation call/cc
    +syntax keyword racketFunc call-with-composable-continuation call-with-escape-continuation call/ec
    +syntax keyword racketFunc call-with-continuation-barrier continuation-prompt-available
    +syntax keyword racketFunc continuation? continuation-prompt-tag dynamic-wind
    +
    +" 10.4.1 Additional Control Operators
    +syntax keyword racketFunc call/prompt abort/cc call/comp abort fcontrol spawn splitter new-prompt
    +
    +" 11.3.2 Parameters
    +syntax keyword racketFunc make-parameter make-derived-parameter parameter?
    +syntax keyword racketFunc parameter-procedure=? current-parameterization
    +syntax keyword racketFunc call-with-parameterization parameterization?
    +
    +" 14.1.1 Manipulating Paths
    +syntax keyword racketFunc path? path-string? path-for-some-system? string->path path->string path->bytes
    +syntax keyword racketFunc string->path-element bytes->path-element path-element->string path-element->bytes
    +syntax keyword racketFunc path-convention-type system-path-convention-type build-type
    +syntax keyword racketFunc build-type/convention-type
    +syntax keyword racketFunc absolute-path? relative-path? complete-path?
    +syntax keyword racketFunc path->complete-path path->directory-path
    +syntax keyword racketFunc resolve-path cleanse-path expand-user-path simplify-path normal-case-path split-path
    +syntax keyword racketFunc path-replace-suffix path-add-suffix
    +
    +" 14.1.2 More Path Utilities
    +syntax keyword racketFunc explode-path file-name-from-path filename-extension find-relative-path normalize-path
    +syntax keyword racketFunc path-element? path-only simple-form-path some-simple-path->string string->some-system-path
    +
    +" 15.6 Time
    +syntax keyword racketFunc current-seconds current-inexact-milliseconds
    +syntax keyword racketFunc seconds->date current-milliseconds
    +
    +
    +syntax match racketDelimiter !\<\.\>!
    +
    +syntax cluster racketTop contains=racketSyntax,racketFunc,racketDelimiter
    +
    +syntax match racketConstant  ,\<\*\k\+\*\>,
    +syntax match racketConstant  ,\<<\k\+>\>,
    +
    +" Non-quoted lists, and strings
    +syntax region racketStruc matchgroup=racketParen start="("rs=s+1 end=")"re=e-1 contains=@racketTop
    +syntax region racketStruc matchgroup=racketParen start="#("rs=s+2 end=")"re=e-1 contains=@racketTop
    +syntax region racketStruc matchgroup=racketParen start="{"rs=s+1 end="}"re=e-1 contains=@racketTop
    +syntax region racketStruc matchgroup=racketParen start="#{"rs=s+2 end="}"re=e-1 contains=@racketTop
    +syntax region racketStruc matchgroup=racketParen start="\["rs=s+1 end="\]"re=e-1 contains=@racketTop
    +syntax region racketStruc matchgroup=racketParen start="#\["rs=s+2 end="\]"re=e-1 contains=@racketTop
    +
    +for lit in ['hash', 'hasheq', 'hasheqv']
    +  execute printf('syntax match racketLit "\<%s\>" nextgroup=@racketParen containedin=ALLBUT,.*String,.*Comment', '#'.lit)
    +endfor
    +
    +for lit in ['rx', 'rx#', 'px', 'px#']
    +  execute printf('syntax match racketRe "\<%s\>" nextgroup=@racketString containedin=ALLBUT,.*String,.*Comment,', '#'.lit)
    +endfor
    +
    +unlet lit
    +
    +" Simple literals
    +
    +" Strings
    +
    +syntax match racketStringEscapeError "\\." contained display
    +
    +syntax match racketStringEscape "\\[abtnvfre'"\\]"        contained display
    +syntax match racketStringEscape "\\$"                     contained display
    +syntax match racketStringEscape "\\\o\{1,3}\|\\x\x\{1,2}" contained display
    +
    +syntax match racketUStringEscape "\\u\x\{1,4}\|\\U\x\{1,8}" contained display
    +syntax match racketUStringEscape "\\u\x\{4}\\u\x\{4}"       contained display
    +
    +syntax region racketString start=/\%(\\\)\@"
    +syntax match racketContainedNumberError   "\<#b\k*[^-+01delfinas#./@]\>"
    +syntax match racketContainedNumberError   "\<#[ei]#[ei]"
    +syntax match racketContainedNumberError   "\<#[xdob]#[xdob]"
    +
    +" start with the simpler sorts
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\d\+/\d\+\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\d\+/\d\+[-+]\d\+\(/\d\+\)\?i\>" contains=racketContainedNumberError
    +
    +" different possible ways of expressing complex values
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?i\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?[-+]\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdlef][-+]\?\d\+#*\)\?i\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\(inf\|nan\)\.[0f][-+]\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?i\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?[-+]\(inf\|nan\)\.[0f]i\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?@[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdlef][-+]\?\d\+#*\)\?\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\(inf\|nan\)\.[0f]@[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[dobie]\)\{0,2}[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?\([sdleft][-+]\?\d\+#*\)\?@[-+]\(inf\|nan\)\.[0f]\>" contains=racketContainedNumberError
    +
    +" hex versions of the above (separate because of the different possible exponent markers)
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([slt][-+]\?\x\+#*\)\?\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\x\+/\x\+\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\x\+/\x\+[-+]\x\+\(/\x\+\)\?i\>"
    +
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?i\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?[-+]\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?i\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\(inf\|nan\)\.[0f][-+]\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?i\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?[-+]\(inf\|nan\)\.[0f]i\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?@[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\(inf\|nan\)\.[0f]@[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?\>"
    +syntax match racketNumber    "\<\(#x\|#[ei]#x\|#x#[ei]\)[-+]\?\(\x\+\|\x\+#*\.\|\x*\.\x\+\)#*\(/\x\+#*\)\?\([sl][-+]\?\x\+#*\)\?@[-+]\(inf\|nan\)\.[0f]\>"
    +
    +" these work for any radix
    +syntax match racketNumber    "\<\(#[xdobie]\)\{0,2}[-+]\(inf\|nan\)\.[0ft]i\?\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[xdobie]\)\{0,2}[-+]\(inf\|nan\)\.[0ft][-+]\(inf\|nan\)\.[0f]i\>" contains=racketContainedNumberError
    +syntax match racketNumber    "\<\(#[xdobie]\)\{0,2}[-+]\(inf\|nan\)\.[0ft]@[-+]\(inf\|nan\)\.[0f]\>" contains=racketContainedNumberError
    +
    +syntax keyword racketBoolean  #t #f #true #false #T #F
    +
    +syntax match racketError   "\<#\\\k*\>"
    +
    +syntax match racketChar    "\<#\\.\w\@!"
    +syntax match racketChar    "\<#\\space\>"
    +syntax match racketChar    "\<#\\newline\>"
    +syntax match racketChar    "\<#\\return\>"
    +syntax match racketChar    "\<#\\null\?\>"
    +syntax match racketChar    "\<#\\backspace\>"
    +syntax match racketChar    "\<#\\tab\>"
    +syntax match racketChar    "\<#\\linefeed\>"
    +syntax match racketChar    "\<#\\vtab\>"
    +syntax match racketChar    "\<#\\page\>"
    +syntax match racketChar    "\<#\\rubout\>"
    +syntax match racketChar    "\<#\\\o\{1,3}\>"
    +syntax match racketChar    "\<#\\x\x\{1,2}\>"
    +syntax match racketChar    "\<#\\u\x\{1,6}\>"
    +
    +syntax cluster racketTop  add=racketNumber,racketBoolean,racketChar
    +
    +" Command-line parsing
    +syntax keyword racketExtFunc command-line current-command-line-arguments once-any help-labels multi once-each
    +
    +syntax match racketSyntax    "#lang "
    +syntax match racketExtSyntax "#:\k\+"
    +
    +syntax cluster racketTop  add=racketExtFunc,racketExtSyntax
    +
    +" syntax quoting, unquoting and quasiquotation
    +syntax match racketQuote "#\?['`]"
    +
    +syntax match racketUnquote "#,"
    +syntax match racketUnquote "#,@"
    +syntax match racketUnquote ","
    +syntax match racketUnquote ",@"
    +
    +" Comments
    +syntax match racketSharpBang "\%^#![ /].*" display
    +syntax match racketComment /;.*$/ contains=racketTodo,racketNote,@Spell
    +syntax match racketFormComment "#;" nextgroup=@racketTop
    +syntax cluster racketTop add=racketFormComment
    +
    +if exists("racket_no_comment_fold")
    +  syntax region racketBlockComment start=/#|/ end=/|#/ contains=racketBlockComment,racketTodo,racketNote,@Spell
    +else
    +  syntax region racketBlockComment start=/#|/ end=/|#/ contains=racketBlockComment,racketTodo,racketNote,@Spell fold
    +  syntax region racketMultilineComment start="^\s*;" end="^\%(\s*;\)\@!" contains=racketComment transparent keepend fold
    +endif
    +
    +syntax match racketTodo /\C\<\(FIXME\|TODO\|XXX\)\ze:\?\>/ contained
    +syntax match racketNote /\CNOTE\ze:\?/ contained
    +
    +syntax cluster racketComments contains=racketComment,racketBlockComment,racketMultilineComment
    +syntax cluster racketTop  add=racketQuote,racketUnquote,@racketComments
    +
    +" Synchronization and the wrapping up...
    +syntax sync match matchPlace grouphere NONE "^[^ \t]"
    +" ... i.e. synchronize on a line that starts at the left margin
    +
    +" Define the default highlighting.
    +highlight default link racketSyntax Statement
    +highlight default link racketFunc Function
    +
    +highlight default link racketString String
    +highlight default link racketStringEscape Special
    +highlight default link racketHereString String
    +highlight default link racketUStringEscape Special
    +highlight default link racketStringEscapeError Error
    +highlight default link racketChar Character
    +highlight default link racketBoolean Boolean
    +
    +highlight default link racketNumber Number
    +highlight default link racketNumberError Error
    +highlight default link racketContainedNumberError Error
    +
    +highlight default link racketQuote SpecialChar
    +highlight default link racketUnquote SpecialChar
    +
    +highlight default link racketDelimiter Delimiter
    +highlight default link racketParen Delimiter
    +highlight default link racketConstant Constant
    +
    +highlight default link racketLit Type
    +highlight default link racketRe Type
    +
    +highlight default link racketComment Comment
    +highlight default link racketBlockComment Comment
    +highlight default link racketFormComment SpecialChar
    +highlight default link racketSharpBang Comment
    +highlight default link racketTodo Todo
    +highlight default link racketNote SpecialComment
    +highlight default link racketError Error
    +
    +highlight default link racketExtSyntax Type
    +highlight default link racketExtFunc PreProc
    +
    +let b:current_syntax = "racket"
    diff --git a/git/usr/share/vim/vim92/syntax/radiance.vim b/git/usr/share/vim/vim92/syntax/radiance.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..c49e339a2898040611c9d5937a0ed7e7493032d8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/radiance.vim
    @@ -0,0 +1,142 @@
    +" Vim syntax file
    +" Language:     Radiance Scene Description
    +" Maintainer:   Georg Mischler 
    +" Last change:  26. April. 2001
    +
    +" Radiance is a lighting simulation software package written
    +" by Gregory Ward-Larson ("the computer artist formerly known
    +" as Greg Ward"), then at LBNL.
    +"
    +" http://radsite.lbl.gov/radiance/HOME.html
    +"
    +" Of course, there is also information available about it
    +" from http://www.schorsch.com/
    +
    +
    +" We take a minimalist approach here, highlighting just the
    +" essential properties of each object, its type and ID, as well as
    +" comments, external command names and the null-modifier "void".
    +
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" all printing characters except '#' and '!' are valid in names.
    +setlocal iskeyword=\",$-~
    +
    +" The null-modifier
    +syn keyword radianceKeyword void
    +
    +" The different kinds of scene description object types
    +" Reference types
    +syn keyword radianceExtraType contained alias instance
    +" Surface types
    +syn keyword radianceSurfType contained ring polygon sphere bubble
    +syn keyword radianceSurfType contained cone cup cylinder tube source
    +" Emitting material types
    +syn keyword radianceLightType contained light glow illum spotlight
    +" Material types
    +syn keyword radianceMatType contained mirror mist prism1 prism2
    +syn keyword radianceMatType contained metal plastic trans
    +syn keyword radianceMatType contained metal2 plastic2 trans2
    +syn keyword radianceMatType contained metfunc plasfunc transfunc
    +syn keyword radianceMatType contained metdata plasdata transdata
    +syn keyword radianceMatType contained dielectric interface glass
    +syn keyword radianceMatType contained BRTDfunc antimatter
    +" Pattern modifier types
    +syn keyword radiancePatType contained colorfunc brightfunc
    +syn keyword radiancePatType contained colordata colorpict brightdata
    +syn keyword radiancePatType contained colortext brighttext
    +" Texture modifier types
    +syn keyword radianceTexType contained texfunc texdata
    +" Mixture types
    +syn keyword radianceMixType contained mixfunc mixdata mixpict mixtext
    +
    +
    +" Each type name is followed by an ID.
    +" This doesn't work correctly if the id is one of the type names of the
    +" same class (which is legal for radiance), in which case the id will get
    +" type color as well, and the int count (or alias reference) gets id color.
    +
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceExtraType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceExtraType
    +
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceSurfType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceSurfType
    +
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceLightType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceLightType
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceLightType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radianceLightType
    +
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"	     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"     end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\" end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"      end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\"   end="\<\k*\>" contains=radianceMatType
    +syn region radianceID start="\" end="\<\k*\>" contains=radianceMatType
    +
    +syn region radianceID start="\"  end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\" end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\" end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\"  end="\<\k*\>" contains=radiancePatType
    +syn region radianceID start="\" end="\<\k*\>" contains=radiancePatType
    +
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceTexType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceTexType
    +
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMixType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMixType
    +syn region radianceID start="\"    end="\<\k*\>" contains=radianceMixType
    +
    +" external commands (generators, xform et al.)
    +syn match radianceCommand "^\s*!\s*[^\s]\+\>"
    +
    +" The usual suspects
    +syn keyword radianceTodo contained TODO XXX
    +syn match radianceComment "#.*$" contains=radianceTodo
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +hi def link radianceKeyword	Keyword
    +hi def link radianceExtraType	Type
    +hi def link radianceSurfType	Type
    +hi def link radianceLightType	Type
    +hi def link radianceMatType	Type
    +hi def link radiancePatType	Type
    +hi def link radianceTexType	Type
    +hi def link radianceMixType	Type
    +hi def link radianceComment	Comment
    +hi def link radianceCommand	Function
    +hi def link radianceID		String
    +hi def link radianceTodo		Todo
    +
    +let b:current_syntax = "radiance"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/raku.vim b/git/usr/share/vim/vim92/syntax/raku.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..c77dfb3a44f8c603a486815c448d14d762e22de3
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/raku.vim
    @@ -0,0 +1,1971 @@
    +" Vim syntax file
    +" Language:      Raku
    +" Maintainer:    vim-perl  (need to be subscribed to post)
    +" Homepage:      https://github.com/Raku/vim-raku
    +" Bugs/requests: https://github.com/Raku/vim-raku/issues
    +" Last Change:   2021-04-16
    +
    +" Contributors:  Luke Palmer 
    +"                Moritz Lenz 
    +"                Hinrik Örn Sigurðsson 
    +"
    +" This is a big undertaking.
    +"
    +" The ftdetect/raku.vim file in this repository takes care of setting the
    +" right filetype for Raku files. To set it explicitly you can also add this
    +" line near the bottom of your source file:
    +"   # vim: filetype=raku
    +
    +" TODO:
    +"   * Go over the list of keywords/types to see what's deprecated/missing
    +"   * Add more support for folding (:help syn-fold)
    +"
    +" If you want to have Pir code inside Q:PIR// strings highlighted, do:
    +"   let raku_embedded_pir=1
    +"
    +" The above requires pir.vim, which you can find in Parrot's repository:
    +" https://github.com/parrot/parrot/tree/master/editor
    +"
    +" To highlight Perl 5 regexes (m:P5//):
    +"   let raku_perl5_regexes=1
    +"
    +" To enable folding:
    +"   let raku_fold=1
    +
    +if version < 704 | throw "raku.vim uses regex syntax which Vim <7.4 doesn't support. Try 'make fix_old_vim' in the vim-perl repository." | endif
    +
    +" For version 5.x: Clear all syntax items
    +" For version 6.x: Quit when a syntax file was already loaded
    +if version < 600
    +    syntax clear
    +elseif exists("b:current_syntax")
    +    finish
    +endif
    +let s:keepcpo= &cpo
    +set cpo&vim
    +
    +" Patterns which will be interpolated by the preprocessor (tools/preproc.pl):
    +"
    +" @@IDENT_NONDIGIT@@     "[A-Za-z_\xC0-\xFF]"
    +" @@IDENT_CHAR@@         "[A-Za-z_\xC0-\xFF0-9]"
    +" @@IDENTIFIER@@         "\%(@@IDENT_NONDIGIT@@\%(@@IDENT_CHAR@@\|[-']@@IDENT_NONDIGIT@@\@=\)*\)"
    +" @@IDENTIFIER_START@@   "@@IDENT_CHAR@@\@1".
    +syn match rakuKeywordStart display "\%(\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\)\@!\)\@=[A-Za-z_\xC0-\xFF0-9]\@1" nextgroup=rakuDeclare,rakuIdentifier skipwhite skipempty
    +syn match rakuDeclare display "[.^]\@1" nextgroup=rakuIdentifier skipwhite skipempty
    +syn match rakuDeclareRegex display "[.^]\@1" nextgroup=rakuRegexName skipwhite skipempty
    +
    +syn match rakuTypeConstraint  display "\%([.^]\|^\s*\)\@"
    +syn match rakuTypeConstraint  display "\%([.^]\|^\s*\)\@».;\\∈∉∋∌∩∪≼≽⊂⊃⊄⊅⊆⊇⊈⊉⊍⊎⊖∅∘]"
    +syn match rakuOperator display "\%(:\@1][=+]\?\|cont\|elem\))"
    +
    +" Reverse, cross, and zip metaoperators
    +exec "syn match rakuRSXZOp display \"[RSXZ]:\\@!\\%(\\a\\@=\\%(". s:alpha_metaops_or . "\\)\\>\\|[[:alnum:]]\\@!\\%([.,]\\|[^[,.[:alnum:][:space:]]\\)\\+\\|\\s\\@=\\|$\\)\""
    +
    +syn match rakuBlockLabel display "^\s*\zs\h\w*\s*::\@!\_s\@="
    +
    +syn match rakuNumber     display "[A-Za-z_\xC0-\xFF0-9]\@1"
    +syn match rakuContext display "\%(\$\|@\|%\|&\)(\@="
    +
    +" Quoting
    +
    +" one cluster for every quote adverb
    +syn cluster rakuInterp_scalar
    +    \ add=rakuInterpScalar
    +
    +syn cluster rakuInterp_array
    +    \ add=rakuInterpArray
    +
    +syn cluster rakuInterp_hash
    +    \ add=rakuInterpHash
    +
    +syn cluster rakuInterp_function
    +    \ add=rakuInterpFunction
    +
    +syn cluster rakuInterp_closure
    +    \ add=rakuInterpClosure
    +
    +syn cluster rakuInterp_q
    +    \ add=rakuEscQQ
    +    \ add=rakuEscBackSlash
    +
    +syn cluster rakuInterp_backslash
    +    \ add=@rakuInterp_q
    +    \ add=rakuEscape
    +    \ add=rakuEscOpenCurly
    +    \ add=rakuEscCodePoint
    +    \ add=rakuEscHex
    +    \ add=rakuEscOct
    +    \ add=rakuEscOctOld
    +    \ add=rakuEscNull
    +
    +syn cluster rakuInterp_qq
    +    \ add=@rakuInterp_scalar
    +    \ add=@rakuInterp_array
    +    \ add=@rakuInterp_hash
    +    \ add=@rakuInterp_function
    +    \ add=@rakuInterp_closure
    +    \ add=@rakuInterp_backslash
    +    \ add=rakuMatchVarSigil
    +
    +syn region rakuInterpScalar
    +    \ start="\ze\z(\$\%(\%(\%(\d\+\|!\|/\|¢\)\|\%(\%(\%([.^*?=!~]\|:\@1]*>\|«[^»]*»\|{[^}]*}\)\)*\)\.\?\%(([^)]*)\|\[[^\]]*]\|<[^>]*>\|«[^»]*»\|{[^}]*}\)\)\)"
    +    \ start="\ze\z(\$\%(\%(\%(\%([.^*?=!~]\|:\@1]*>\|«[^»]*»\|{[^}]*}\)\)*\)\.\?\%(([^)]*)\|\[[^\]]*]\|<[^>]*>\|«[^»]*»\|{[^}]*}\)\)\)"
    +    \ end="\z1\zs"
    +    \ contained keepend
    +    \ contains=TOP
    +
    +syn region rakuInterpArray
    +    \ matchgroup=rakuContext
    +    \ start="@\ze()\@!"
    +    \ skip="([^)]*)"
    +    \ end=")\zs"
    +    \ contained
    +    \ contains=TOP
    +
    +syn region rakuInterpHash
    +    \ start="\ze\z(%\$*\%(\%(\%(!\|/\|¢\)\|\%(\%(\%([.^*?=!~]\|:\@1]*>\|«[^»]*»\|{[^}]*}\)\)*\)\.\?\%(([^)]*)\|\[[^\]]*]\|<[^>]*>\|«[^»]*»\|{[^}]*}\)\)\)"
    +    \ end="\z1\zs"
    +    \ contained keepend
    +    \ contains=TOP
    +
    +syn region rakuInterpHash
    +    \ matchgroup=rakuContext
    +    \ start="%\ze()\@!"
    +    \ skip="([^)]*)"
    +    \ end=")\zs"
    +    \ contained
    +    \ contains=TOP
    +
    +syn region rakuInterpFunction
    +    \ start="\ze\z(&\%(\%(!\|/\|¢\)\|\%(\%(\%([.^*?=!~]\|:\@1]*>\|«[^»]*»\|{[^}]*}\)\)*\)\.\?\%(([^)]*)\|\[[^\]]*]\|<[^>]*>\|«[^»]*»\|{[^}]*}\)\)\)"
    +    \ end="\z1\zs"
    +    \ contained keepend
    +    \ contains=TOP
    +
    +syn region rakuInterpFunction
    +    \ matchgroup=rakuContext
    +    \ start="&\ze()\@!"
    +    \ skip="([^)]*)"
    +    \ end=")\zs"
    +    \ contained
    +    \ contains=TOP
    +
    +syn region rakuInterpClosure
    +    \ start="\\\@1" contained
    +syn match rakuEscCloseFrench  display "\\»" contained
    +syn match rakuEscBackTick     display "\\`" contained
    +syn match rakuEscForwardSlash display "\\/" contained
    +syn match rakuEscVerticalBar  display "\\|" contained
    +syn match rakuEscExclamation  display "\\!" contained
    +syn match rakuEscComma        display "\\," contained
    +syn match rakuEscDollar       display "\\\$" contained
    +syn match rakuEscCloseCurly   display "\\}" contained
    +syn match rakuEscCloseBracket display "\\\]" contained
    +
    +" matches :key, :!key, :$var, :key, etc
    +" Since we don't know in advance how the adverb ends, we use a trick.
    +" Consume nothing with the start pattern (\ze at the beginning),
    +" while capturing the whole adverb into \z1 and then putting it before
    +" the match start (\zs) of the end pattern.
    +syn region rakuAdverb
    +    \ start="\ze\z(:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\%(([^)]*)\|\[[^\]]*]\|<[^>]*>\|«[^»]*»\|{[^}]*}\)\?\)"
    +    \ start="\ze\z(:!\?[@$%]\$*\%(::\|\%(\$\@1<=\d\+\|!\|/\|¢\)\|\%(\%([.^*?=!~]\|:\@1
    +" Distinguishing this from the "less than" operator is tricky. For now,
    +" it matches if any of the following is true:
    +"
    +" * There is whitespace missing on either side of the "<", since
    +"   people tend to put spaces around "less than". We make an exception
    +"   for " = < ... >" assignments though.
    +" * It comes after "enum", "for", "any", "all", or "none"
    +" * It's the first or last thing on a line (ignoring whitespace)
    +" * It's preceded by "(\s*" or "=\s\+"
    +" * It's empty and terminated on the same line (e.g. <> and < >)
    +"
    +" It never matches when:
    +"
    +" * Preceded by [<+~=!] (e.g. <>, =<$foo>, * !< 3)
    +" * Followed by [-=] (e.g. <--, <=, <==, <->)
    +syn region rakuStringAngle
    +    \ matchgroup=rakuQuote
    +    \ start="\%(\<\%(enum\|for\|any\|all\|none\)\>\s*(\?\s*\)\@<=<\%(<\|=>\|\%([=-]\{1,2}>\|[=-]\{2}\)\)\@!"
    +    \ start="\%(\s\|[<+~=!]\)\@\|\%([=-]\{1,2}>\|[=-]\{2}\)\)\@!"
    +    \ start="[<+~=!]\@1\|\%([=-]\{1,2}>\|[=-]\{1,2}\)\)\@!"
    +    \ start="\%(^\s*\)\@<=<\%(<\|=>\|\%([=-]\{1,2}>\|[=-]\{2}\)\)\@!"
    +    \ start="[<+~=!]\@1\|\%([=-]\{1,2}>\|[=-]\{2}\)\)\@!"
    +    \ start="<\%(\s*>\)\@="
    +    \ skip="\\\@1"
    +    \ end=">"
    +    \ contains=rakuInnerAnglesOne,rakuEscBackSlash,rakuEscCloseAngle
    +
    +syn region rakuStringAngleFixed
    +    \ matchgroup=rakuQuote
    +    \ start="<"
    +    \ skip="\\\@1"
    +    \ end=">"
    +    \ contains=rakuInnerAnglesOne,rakuEscBackSlash,rakuEscCloseAngle
    +    \ contained
    +
    +syn region rakuInnerAnglesOne
    +    \ matchgroup=rakuStringAngle
    +    \ start="\\\@1"
    +    \ end=">"
    +    \ transparent contained
    +    \ contains=rakuInnerAnglesOne
    +
    +" <>
    +syn region rakuStringAngles
    +    \ matchgroup=rakuQuote
    +    \ start="<<=\@!"
    +    \ skip="\\\@1"
    +    \ end=">>"
    +    \ contains=rakuInnerAnglesTwo,@rakuInterp_qq,rakuComment,rakuBracketComment,rakuEscHash,rakuEscCloseAngle,rakuAdverb,rakuStringSQ,rakuStringDQ
    +
    +syn region rakuInnerAnglesTwo
    +    \ matchgroup=rakuStringAngles
    +    \ start="<<"
    +    \ skip="\\\@1"
    +    \ end=">>"
    +    \ transparent contained
    +    \ contains=rakuInnerAnglesTwo
    +
    +" «words»
    +syn region rakuStringFrench
    +    \ matchgroup=rakuQuote
    +    \ start="«"
    +    \ skip="\\\@1" and "«»" strings in order to override
    +" them, but before other types of strings, to avoid matching those delimiters
    +" as parts of hyperops.
    +syn match rakuHyperOp display #[^[:digit:][{('",:[:space:]][^[{('",:[:space:]]*\%(«\|<<\)#
    +syn match rakuHyperOp display "«\%(\d\|[@%$][.?^=[:alpha:]]\)\@!\%(\.\|[^[{('".[:space:]]\)\+[«»]"
    +syn match rakuHyperOp display "»\%(\d\|[@%$][.?^=[:alpha:]]\)\@!\%(\.\|[^[{('".[:space:]]\)\+\%(«\|»\?\)"
    +syn match rakuHyperOp display "<<\%(\d\|[@%$][.?^=[:alpha:]]\)\@!\%(\.\|[^[{('".[:space:]]\)\+\%(<<\|>>\)"
    +syn match rakuHyperOp display ">>\%(\d\|[@%$][.?^=[:alpha:]]\)\@!\%(\.\|[^[{('".[:space:]]\)\+\%(<<\|\%(>>\)\?\)"
    +
    +" 'string'
    +syn region rakuStringSQ
    +    \ matchgroup=rakuQuote
    +    \ start="'"
    +    \ skip="\\\@1",    "rakuEscCloseAngle",   "\\%(\\\\\\@1\\|<[^>]*>\\)"],
    +  \ ["French",  "«",            "»",    "rakuEscCloseFrench",  "\\%(\\\\\\@1, @
    +syn region rakuMatchVarSigil
    +    \ matchgroup=rakuVariable
    +    \ start="[$@]\%(<<\@!\)\@="
    +    \ end=">\@1<="
    +    \ contains=rakuMatchVar
    +
    +syn region rakuMatchVar
    +    \ matchgroup=rakuTwigil
    +    \ start="<"
    +    \ end=">"
    +    \ contained
    +
    +syn region rakuRxClosure
    +    \ matchgroup=rakuNormal
    +    \ start="{"
    +    \ end="}"
    +    \ contained
    +    \ containedin=rakuRxClosure
    +    \ contains=TOP
    +syn region rakuRxGroup
    +    \ matchgroup=rakuStringSpecial2
    +    \ start="\["
    +    \ end="]"
    +    \ contained
    +    \ contains=@rakuRegexen,@rakuVariables,rakuMatchVarSigil
    +syn region rakuRxAssertion
    +    \ matchgroup=rakuStringSpecial2
    +    \ start="<\%(?\?\%(before\|after\)\|\%(\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)=\)\|[+?*]\)\?"
    +    \ end=">"
    +    \ contained
    +    \ contains=@rakuRegexen,rakuIdentifier,@rakuVariables,rakuRxCharClass,rakuRxAssertCall
    +syn region rakuRxAssertGroup
    +    \ matchgroup=rakuStringSpecial2
    +    \ start="<\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)=\["
    +    \ skip="\\\@1"
    +    \ contained keepend
    +    \ contains=TOP
    +syn match rakuRxBoundary display contained "\%([«»]\|<<\|>>\)"
    +syn region rakuRxCharClass
    +    \ matchgroup=rakuStringSpecial2
    +    \ start="\%(<[-!+?]\?\)\@2<=\["
    +    \ skip="\\]"
    +    \ end="]"
    +    \ contained
    +    \ contains=rakuRxRange,rakuRxEscape,rakuEscHex,rakuEscOct,rakuEscCodePoint,rakuEscNull
    +syn region rakuRxQuoteWords
    +    \ matchgroup=rakuStringSpecial2
    +    \ start="<\s"
    +    \ end="\s\?>"
    +    \ contained
    +syn region rakuRxAdverb
    +    \ start="\ze\z(:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\)"
    +    \ end="\z1\zs"
    +    \ contained keepend
    +    \ contains=TOP
    +syn region rakuRxAdverbArg
    +    \ start="\%(:!\?\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\)\@<=("
    +    \ skip="([^)]\{-})"
    +    \ end=")"
    +    \ contained
    +    \ keepend
    +    \ contains=TOP
    +syn region rakuRxStorage
    +    \ matchgroup=rakuOperator
    +    \ start="\%(^\s*\)\@<=:\%(my\>\|temp\>\)\@="
    +    \ end="$"
    +    \ contains=TOP
    +    \ contained
    +    \ keepend
    +
    +" 'string' inside a regex
    +syn region rakuRxStringSQ
    +    \ matchgroup=rakuQuote
    +    \ start="'"
    +    \ skip="\\\@1\)\)\@="
    +syn match rakuVarSlash     display "\$/"
    +syn match rakuVarExclam    display "\$!"
    +syn match rakuVarMatch     display "\$¢"
    +syn match rakuVarNum       display "\$\d\+"
    +syn match rakuVariable     display "self"
    +syn match rakuVariable     display "[@$%&]\?[@&$%]\$*\%(::\|\%(\%([.^*?=!~]\|:\@1>\)" contained
    +syn match rakuTwigil       display "\%([.^*?=!~]\|:\@1\|\<\%(if\|unless\|while\|when\|where\|so\)\)\s*\)\@<=/[/=]\@!"
    +    \ skip="\\/"
    +    \ end="/"
    +    \ contains=@rakuRegexen,rakuVariable,rakuVarExclam,rakuVarMatch,rakuVarNum
    +
    +" m/foo/, m$foo$, m!foo!, etc
    +syn region rakuMatch
    +    \ matchgroup=rakuQuote
    +    \ start=+\z([/!$,|`"]\)+
    +    \ skip="\\\z1"
    +    \ end="\z1"
    +    \ contained
    +    \ contains=@rakuRegexen,rakuVariable,rakuVarNum
    +
    +" m, m«foo», m{foo}, etc
    +for [s:name, s:start_delim, s:end_delim, s:end_group, s:skip] in s:bracketing_delims
    +    exec "syn region rakuMatch matchgroup=rakuQuote start=\"".s:start_delim."\" skip=\"".s:skip."\" end=\"".s:end_delim."\" contained keepend contains=@rakuRegexen,@rakuVariables"
    +endfor
    +unlet s:name s:start_delim s:end_delim s:end_group s:skip
    +
    +" Substitutions
    +
    +" s/foo//, s$foo$$, s!foo!!, etc
    +syn region rakuSubstitution
    +    \ matchgroup=rakuQuote
    +    \ start=+\z([/!$,|`"]\)+
    +    \ skip="\\\z1"
    +    \ end="\z1"me=e-1
    +    \ contained
    +    \ contains=@rakuRegexen,rakuVariable,rakuVarNum
    +    \ nextgroup=rakuReplacement
    +
    +syn region rakuReplacement
    +    \ matchgroup=rakuQuote
    +    \ start="\z(.\)"
    +    \ skip="\\\z1"
    +    \ end="\z1"
    +    \ contained
    +    \ contains=@rakuInterp_qq
    +
    +" s, s«foo»«bar», s{foo}{bar}, etc
    +for [s:name, s:start_delim, s:end_delim, s:end_group, s:skip] in s:bracketing_delims
    +    exec "syn region rakuSubstitution matchgroup=rakuQuote start=\"".s:start_delim."\" skip=\"".s:skip."\" end=\"".s:end_delim."\" contained keepend contains=@rakuRegexen,@rakuVariables nextgroup=rakuRepl".s:name
    +    exec "syn region rakuRepl".s:name." matchgroup=rakuQuote start=\"".s:start_delim."\" skip=\"".s:skip."\" end=\"".s:end_delim."\" contained keepend contains=@rakuInterp_qq"
    +endfor
    +unlet s:name s:start_delim s:end_delim s:end_group s:skip
    +
    +" Transliteration
    +
    +" tr/foo/bar/, tr|foo|bar, etc
    +syn region rakuTransliteration
    +    \ matchgroup=rakuQuote
    +    \ start=+\z([/!$,|`"]\)+
    +    \ skip="\\\z1"
    +    \ end="\z1"me=e-1
    +    \ contained
    +    \ contains=rakuRxRange
    +    \ nextgroup=rakuTransRepl
    +
    +syn region rakuTransRepl
    +    \ matchgroup=rakuQuote
    +    \ start="\z(.\)"
    +    \ skip="\\\z1"
    +    \ end="\z1"
    +    \ contained
    +    \ contains=@rakuInterp_qq,rakuRxRange
    +
    +" tr, tr«foo»«bar», tr{foo}{bar}, etc
    +for [s:name, s:start_delim, s:end_delim, s:end_group, s:skip] in s:bracketing_delims
    +    exec "syn region rakuTransliteration matchgroup=rakuQuote start=\"".s:start_delim."\" skip=\"".s:skip."\" end=\"".s:end_delim."\" contained keepend contains=rakuRxRange nextgroup=rakuTransRepl".s:name
    +    exec "syn region rakuTransRepl".s:name." matchgroup=rakuQuote start=\"".s:start_delim."\" skip=\"".s:skip."\" end=\"".s:end_delim."\" contained keepend contains=@rakuInterp_qq,rakuRxRange"
    +endfor
    +unlet s:name s:start_delim s:end_delim s:end_group s:skip s:bracketing_delims
    +
    +if exists("raku_perl5_regexes") || exists("raku_extended_all")
    +
    +" Perl 5 regex regions
    +
    +syn cluster rakuRegexP5Base
    +    \ add=rakuRxP5Escape
    +    \ add=rakuRxP5Oct
    +    \ add=rakuRxP5Hex
    +    \ add=rakuRxP5EscMeta
    +    \ add=rakuRxP5CodePoint
    +    \ add=rakuRxP5Prop
    +
    +" normal regex stuff
    +syn cluster rakuRegexP5
    +    \ add=@rakuRegexP5Base
    +    \ add=rakuRxP5Quantifier
    +    \ add=rakuRxP5Meta
    +    \ add=rakuRxP5QuoteMeta
    +    \ add=rakuRxP5ParenMod
    +    \ add=rakuRxP5Verb
    +    \ add=rakuRxP5Count
    +    \ add=rakuRxP5Named
    +    \ add=rakuRxP5ReadRef
    +    \ add=rakuRxP5WriteRef
    +    \ add=rakuRxP5CharClass
    +    \ add=rakuRxP5Anchor
    +
    +" inside character classes
    +syn cluster rakuRegexP5Class
    +    \ add=@rakuRegexP5Base
    +    \ add=rakuRxP5Posix
    +    \ add=rakuRxP5Range
    +
    +syn match rakuRxP5Escape     display contained "\\\S"
    +syn match rakuRxP5CodePoint  display contained "\\c\S\@=" nextgroup=rakuRxP5CPId
    +syn match rakuRxP5CPId       display contained "\S"
    +syn match rakuRxP5Oct        display contained "\\\%(\o\{1,3}\)\@=" nextgroup=rakuRxP5OctSeq
    +syn match rakuRxP5OctSeq     display contained "\o\{1,3}"
    +syn match rakuRxP5Anchor     display contained "[\^$]"
    +syn match rakuRxP5Hex        display contained "\\x\%({\x\+}\|\x\{1,2}\)\@=" nextgroup=rakuRxP5HexSeq
    +syn match rakuRxP5HexSeq     display contained "\x\{1,2}"
    +syn region rakuRxP5HexSeq
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="{"
    +    \ end="}"
    +    \ contained
    +syn region rakuRxP5Named
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="\%(\\N\)\@2<={"
    +    \ end="}"
    +    \ contained
    +syn match rakuRxP5Quantifier display contained "\%([+*]\|(\@1"
    +    \ contained
    +syn match rakuRxP5WriteRef   display contained "\\g\%(\d\|{\)\@=" nextgroup=rakuRxP5WriteRefId
    +syn match rakuRxP5WriteRefId display contained "\d\+"
    +syn region rakuRxP5WriteRefId
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="{"
    +    \ end="}"
    +    \ contained
    +syn match rakuRxP5Prop       display contained "\\[pP]\%(\a\|{\)\@=" nextgroup=rakuRxP5PropId
    +syn match rakuRxP5PropId     display contained "\a"
    +syn region rakuRxP5PropId
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="{"
    +    \ end="}"
    +    \ contained
    +syn match rakuRxP5Meta       display contained "[(|).]"
    +syn match rakuRxP5ParenMod   display contained "(\@1<=?\@=" nextgroup=rakuRxP5Mod,rakuRxP5ModName,rakuRxP5Code
    +syn match rakuRxP5Mod        display contained "?\%(<\?=\|<\?!\|[#:|]\)"
    +syn match rakuRxP5Mod        display contained "?-\?[impsx]\+"
    +syn match rakuRxP5Mod        display contained "?\%([-+]\?\d\+\|R\)"
    +syn match rakuRxP5Mod        display contained "?(DEFINE)"
    +syn match rakuRxP5Mod        display contained "?\%(&\|P[>=]\)" nextgroup=rakuRxP5ModDef
    +syn match rakuRxP5ModDef     display contained "\h\w*"
    +syn region rakuRxP5ModName
    +    \ matchgroup=rakuStringSpecial
    +    \ start="?'"
    +    \ end="'"
    +    \ contained
    +syn region rakuRxP5ModName
    +    \ matchgroup=rakuStringSpecial
    +    \ start="?P\?<"
    +    \ end=">"
    +    \ contained
    +syn region rakuRxP5Code
    +    \ matchgroup=rakuStringSpecial
    +    \ start="??\?{"
    +    \ end="})\@="
    +    \ contained
    +    \ contains=TOP
    +syn match rakuRxP5EscMeta    display contained "\\[?*.{}()[\]|\^$]"
    +syn match rakuRxP5Count      display contained "\%({\d\+\%(,\%(\d\+\)\?\)\?}\)\@=" nextgroup=rakuRxP5CountId
    +syn region rakuRxP5CountId
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="{"
    +    \ end="}"
    +    \ contained
    +syn match rakuRxP5Verb       display contained "(\@1<=\*\%(\%(PRUNE\|SKIP\|THEN\)\%(:[^)]*\)\?\|\%(MARK\|\):[^)]*\|COMMIT\|F\%(AIL\)\?\|ACCEPT\)"
    +syn region rakuRxP5QuoteMeta
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="\\Q"
    +    \ end="\\E"
    +    \ contained
    +    \ contains=@rakuVariables,rakuEscBackSlash
    +syn region rakuRxP5CharClass
    +    \ matchgroup=rakuStringSpecial
    +    \ start="\[\^\?"
    +    \ skip="\\]"
    +    \ end="]"
    +    \ contained
    +    \ contains=@rakuRegexP5Class
    +syn region rakuRxP5Posix
    +    \ matchgroup=rakuRxP5Escape
    +    \ start="\[:"
    +    \ end=":]"
    +    \ contained
    +syn match rakuRxP5Range      display contained "-"
    +
    +" m:P5//
    +syn region rakuMatch
    +    \ matchgroup=rakuQuote
    +    \ start="\%(\%(::\|[$@%&][.!^:*?]\?\|\.\)\@2
    +syn region rakuMatch
    +    \ matchgroup=rakuQuote
    +    \ start="\%(\%(::\|[$@%&][.!^:*?]\?\|\.\)\@2\@!"
    +    \ skip="\\>"
    +    \ end=">"
    +    \ contains=@rakuRegexP5,rakuVariables
    +
    +" m:P5«»
    +syn region rakuMatch
    +    \ matchgroup=rakuQuote
    +    \ start="\%(\%(::\|[$@%&][.!^:*?]\?\|\.\)\@2]*>"
    +    \ end=">"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ start="#[`|=]«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +" Comments with double and triple delimiters
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=](("
    +    \ skip="((\%([^)\|))\@!]\)*))"
    +    \ end="))"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]((("
    +    \ skip="(((\%([^)]\|)\%())\)\@!\)*)))"
    +    \ end=")))"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]\[\["
    +    \ skip="\[\[\%([^\]]\|]]\@!\)*]]"
    +    \ end="]]"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]\[\[\["
    +    \ skip="\[\[\[\%([^\]]\|]\%(]]\)\@!\)*]]]"
    +    \ end="]]]"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]{{"
    +    \ skip="{{\%([^}]\|}}\@!\)*}}"
    +    \ end="}}"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]{{{"
    +    \ skip="{{{\%([^}]\|}\%(}}\)\@!\)*}}}"
    +    \ end="}}}"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]<<"
    +    \ skip="<<\%([^>]\|>>\@!\)*>>"
    +    \ end=">>"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]<<<"
    +    \ skip="<<<\%([^>]\|>\%(>>\)\@!\)*>>>"
    +    \ end=">>>"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]««"
    +    \ skip="««\%([^»]\|»»\@!\)*»»"
    +    \ end="»»"
    +    \ contains=rakuAttention,rakuBracketComment
    +syn region rakuBracketComment
    +    \ matchgroup=rakuBracketComment
    +    \ start="#[`|=]«««"
    +    \ skip="«««\%([^»]\|»\%(»»\)\@!\)*»»»"
    +    \ end="»»»"
    +    \ contains=rakuAttention,rakuBracketComment
    +
    +syn match rakuShebang display "\%^#!.*"
    +
    +" => autoquoting
    +syn match rakuStringAuto   display "\.\@1"
    +syn match rakuStringAuto   display "\.\@1"
    +syn match rakuStringAuto   display "\.\@1"
    +
    +" Pod
    +
    +" Abbreviated blocks (implicit code forbidden)
    +syn region rakuPodAbbrRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\s*\zs=\ze\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodAbbrNoCodeType
    +    \ keepend
    +
    +syn region rakuPodAbbrNoCodeType
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodName,rakuPodAbbrNoCode
    +
    +syn match rakuPodName contained ".\+" contains=@rakuPodFormat
    +syn match rakuPodComment contained ".\+"
    +
    +syn region rakuPodAbbrNoCode
    +    \ start="^"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=@rakuPodFormat
    +
    +" Abbreviated blocks (everything is code)
    +syn region rakuPodAbbrRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\s*\zs=\zecode\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodAbbrCodeType
    +    \ keepend
    +
    +syn region rakuPodAbbrCodeType
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodName,rakuPodAbbrCode
    +
    +syn region rakuPodAbbrCode
    +    \ start="^"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +
    +" Abbreviated blocks (everything is a comment)
    +syn region rakuPodAbbrRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=\zecomment\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodAbbrCommentType
    +    \ keepend
    +
    +syn region rakuPodAbbrCommentType
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodComment,rakuPodAbbrNoCode
    +
    +" Abbreviated blocks (implicit code allowed)
    +syn region rakuPodAbbrRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=\ze\%(pod\|item\|nested\|\u\+\)\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodAbbrType
    +    \ keepend
    +
    +syn region rakuPodAbbrType
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodName,rakuPodAbbr
    +
    +syn region rakuPodAbbr
    +    \ start="^"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=@rakuPodFormat,rakuPodImplicitCode
    +
    +" Abbreviated block to end-of-file
    +syn region rakuPodAbbrRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=\zeEND\>"
    +    \ end="\%$"
    +    \ contains=rakuPodAbbrEOFType
    +    \ keepend
    +
    +syn region rakuPodAbbrEOFType
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=rakuPodName,rakuPodAbbrEOF
    +
    +syn region rakuPodAbbrEOF
    +    \ start="^"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks,@rakuPodFormat,rakuPodImplicitCode
    +
    +" Directives
    +syn region rakuPodDirectRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=\%(config\|use\)\>"
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contains=rakuPodDirectArgRegion
    +    \ keepend
    +
    +syn region rakuPodDirectArgRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\S\+"
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contained
    +    \ contains=rakuPodDirectConfigRegion
    +
    +syn region rakuPodDirectConfigRegion
    +    \ start=""
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contained
    +    \ contains=@rakuPodConfig
    +
    +" =encoding is a special directive
    +syn region rakuPodDirectRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=encoding\>"
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contains=rakuPodEncodingArgRegion
    +    \ keepend
    +
    +syn region rakuPodEncodingArgRegion
    +    \ matchgroup=rakuPodName
    +    \ start="\S\+"
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contained
    +
    +" Paragraph blocks (implicit code forbidden)
    +syn region rakuPodParaRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\s*\zs=for\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodParaNoCodeTypeRegion
    +    \ keepend extend
    +
    +syn region rakuPodParaNoCodeTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodParaNoCode,rakuPodParaConfigRegion
    +
    +syn region rakuPodParaConfigRegion
    +    \ start=""
    +    \ end="^\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\@1\ze\s*code\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodParaCodeTypeRegion
    +    \ keepend extend
    +
    +syn region rakuPodParaCodeTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodParaCode,rakuPodParaConfigRegion
    +
    +syn region rakuPodParaCode
    +    \ start="^[^=]"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +
    +" Paragraph blocks (implicit code allowed)
    +syn region rakuPodParaRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\s*\zs=for\>\ze\s*\%(pod\|item\|nested\|\u\+\)\>"
    +    \ end="^\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contains=rakuPodParaTypeRegion
    +    \ keepend extend
    +
    +syn region rakuPodParaTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=rakuPodPara,rakuPodParaConfigRegion
    +
    +syn region rakuPodPara
    +    \ start="^[^=]"
    +    \ end="^\s*\zs\ze\%(\s*$\|=[A-Za-z_\xC0-\xFF]\)"
    +    \ contained
    +    \ contains=@rakuPodFormat,rakuPodImplicitCode
    +
    +" Paragraph block to end-of-file
    +syn region rakuPodParaRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=for\>\ze\s\+END\>"
    +    \ end="\%$"
    +    \ contains=rakuPodParaEOFTypeRegion
    +    \ keepend extend
    +
    +syn region rakuPodParaEOFTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=rakuPodParaEOF,rakuPodParaConfigRegion
    +
    +syn region rakuPodParaEOF
    +    \ start="^[^=]"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks,@rakuPodFormat,rakuPodImplicitCode
    +
    +" Delimited blocks (implicit code forbidden)
    +syn region rakuPodDelimRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\z(\s*\)\zs=begin\>"
    +    \ end="^\z1\zs=end\>"
    +    \ contains=rakuPodDelimNoCodeTypeRegion
    +    \ keepend extend skipwhite
    +    \ nextgroup=rakuPodType
    +
    +syn region rakuPodDelimNoCodeTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=rakuPodDelimNoCode,rakuPodDelimConfigRegion
    +
    +syn region rakuPodDelimConfigRegion
    +    \ start=""
    +    \ end="^\s*\zs\ze\%([^=]\|=[A-Za-z_\xC0-\xFF]\|\s*$\)"
    +    \ contained
    +    \ contains=@rakuPodConfig
    +
    +syn region rakuPodDelimNoCode
    +    \ start="^"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks,@rakuPodFormat
    +
    +" Delimited blocks (everything is code)
    +syn region rakuPodDelimRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\z(\s*\)\zs=begin\>\ze\s*code\>"
    +    \ end="^\z1\zs=end\>"
    +    \ contains=rakuPodDelimCodeTypeRegion
    +    \ keepend extend skipwhite
    +    \ nextgroup=rakuPodType
    +
    +syn region rakuPodDelimCodeTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=rakuPodDelimCode,rakuPodDelimConfigRegion
    +
    +syn region rakuPodDelimCode
    +    \ start="^"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks
    +
    +" Delimited blocks (implicit code allowed)
    +syn region rakuPodDelimRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^\z(\s*\)\zs=begin\>\ze\s*\%(pod\|item\|nested\|\u\+\)\>"
    +    \ end="^\z1\zs=end\>"
    +    \ contains=rakuPodDelimTypeRegion
    +    \ keepend extend skipwhite
    +    \ nextgroup=rakuPodType
    +
    +syn region rakuPodDelimTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=rakuPodDelim,rakuPodDelimConfigRegion
    +
    +syn region rakuPodDelim
    +    \ start="^"
    +    \ end="^\s*\zs\ze=end\>"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks,@rakuPodFormat,rakuPodImplicitCode
    +
    +" Delimited block to end-of-file
    +syn region rakuPodDelimRegion
    +    \ matchgroup=rakuPodPrefix
    +    \ start="^=begin\>\ze\s\+END\>"
    +    \ end="\%$"
    +    \ extend
    +    \ contains=rakuPodDelimEOFTypeRegion
    +
    +syn region rakuPodDelimEOFTypeRegion
    +    \ matchgroup=rakuPodType
    +    \ start="\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=rakuPodDelimEOF,rakuPodDelimConfigRegion
    +
    +syn region rakuPodDelimEOF
    +    \ start="^"
    +    \ end="\%$"
    +    \ contained
    +    \ contains=@rakuPodNestedBlocks,@rakuPodFormat,rakuPodImplicitCode
    +
    +syn cluster rakuPodConfig
    +    \ add=rakuPodConfigOperator
    +    \ add=rakuPodExtraConfig
    +    \ add=rakuStringAuto
    +    \ add=rakuPodAutoQuote
    +    \ add=rakuStringSQ
    +
    +syn region rakuPodParens
    +    \ start="("
    +    \ end=")"
    +    \ contained
    +    \ contains=rakuNumber,rakuStringSQ
    +
    +syn match rakuPodAutoQuote      display contained "=>"
    +syn match rakuPodConfigOperator display contained ":!\?" nextgroup=rakuPodConfigOption
    +syn match rakuPodConfigOption   display contained "[^[:space:](<]\+" nextgroup=rakuPodParens,rakuStringAngle
    +syn match rakuPodExtraConfig    display contained "^="
    +syn match rakuPodVerticalBar    display contained "|"
    +syn match rakuPodColon          display contained ":"
    +syn match rakuPodSemicolon      display contained ";"
    +syn match rakuPodComma          display contained ","
    +syn match rakuPodImplicitCode   display contained "^\s.*"
    +syn match rakuPodType           display contained "\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)"
    +
    +" These may appear inside delimited blocks
    +syn cluster rakuPodNestedBlocks
    +    \ add=rakuPodAbbrRegion
    +    \ add=rakuPodDirectRegion
    +    \ add=rakuPodParaRegion
    +    \ add=rakuPodDelimRegion
    +
    +" Pod formatting codes
    +
    +syn cluster rakuPodFormat
    +    \ add=rakuPodFormatOne
    +    \ add=rakuPodFormatTwo
    +    \ add=rakuPodFormatThree
    +    \ add=rakuPodFormatFrench
    +
    +" Balanced angles found inside formatting codes. Ensures proper nesting.
    +
    +syn region rakuPodFormatAnglesOne
    +    \ matchgroup=rakuPodFormat
    +    \ start="<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ transparent contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatAnglesOne
    +
    +syn region rakuPodFormatAnglesTwo
    +    \ matchgroup=rakuPodFormat
    +    \ start="<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ transparent contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatAnglesOne,rakuPodFormatAnglesTwo
    +
    +syn region rakuPodFormatAnglesThree
    +    \ matchgroup=rakuPodFormat
    +    \ start="<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ transparent contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatAnglesOne,rakuPodFormatAnglesTwo,rakuPodFormatAnglesThree
    +
    +syn region rakuPodFormatAnglesFrench
    +    \ matchgroup=rakuPodFormat
    +    \ start="«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ transparent contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatAnglesOne,rakuPodFormatAnglesTwo,rakuPodFormatAnglesThree
    +
    +" All formatting codes
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="\u<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="\u<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="\u<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="\u«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree
    +
    +" C<> and V<> don't allow nested formatting formatting codes
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="[CV]<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="[CV]<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="[CV]<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="[CV]«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench
    +
    +" L<> can have a "|" separator
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="L<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne,rakuPodVerticalBar
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="L<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodVerticalBar
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="L<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="L«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar
    +
    +" E<> can have a ";" separator
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="E<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne,rakuPodSemiColon
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="E<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodSemiColon
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="E<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodSemiColon
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="E«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodSemiColon
    +
    +" M<> can have a ":" separator
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="M<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne,rakuPodColon
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="M<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodColon
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="M<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodColon
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="M«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodColon
    +
    +" D<> can have "|" and ";" separators
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="D<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne,rakuPodVerticalBar,rakuPodSemiColon
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="D<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAngleTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodVerticalBar,rakuPodSemiColon
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="D<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar,rakuPodSemiColon
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="D«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar,rakuPodSemiColon
    +
    +" X<> can have "|", "," and ";" separators
    +
    +syn region rakuPodFormatOne
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="X<"
    +    \ skip="<[^>]*>"
    +    \ end=">"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesOne,rakuPodFormatFrench,rakuPodFormatOne,rakuPodVerticalBar,rakuPodSemiColon,rakuPodComma
    +
    +syn region rakuPodFormatTwo
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="X<<"
    +    \ skip="<<[^>]*>>"
    +    \ end=">>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesTwo,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodVerticalBar,rakuPodSemiColon,rakuPodComma
    +
    +syn region rakuPodFormatThree
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="X<<<"
    +    \ skip="<<<[^>]*>>>"
    +    \ end=">>>"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesThree,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar,rakuPodSemiColon,rakuPodComma
    +
    +syn region rakuPodFormatFrench
    +    \ matchgroup=rakuPodFormatCode
    +    \ start="X«"
    +    \ skip="«[^»]*»"
    +    \ end="»"
    +    \ contained
    +    \ contains=rakuPodFormatAnglesFrench,rakuPodFormatFrench,rakuPodFormatOne,rakuPodFormatTwo,rakuPodFormatThree,rakuPodVerticalBar,rakuPodSemiColon,rakuPodComma
    +
    +" Define the default highlighting.
    +" For version 5.7 and earlier: only when not done already
    +" For version 5.8 and later: only when an item doesn't have highlighting yet
    +if version >= 508 || !exists("did_raku_syntax_inits")
    +    if version < 508
    +        let did_raku_syntax_inits = 1
    +        command -nargs=+ HiLink hi link 
    +    else
    +        command -nargs=+ HiLink hi def link 
    +    endif
    +
    +    HiLink rakuEscOctOld        rakuError
    +    HiLink rakuPackageTwigil    rakuTwigil
    +    HiLink rakuStringAngle      rakuString
    +    HiLink rakuStringAngleFixed rakuString
    +    HiLink rakuStringFrench     rakuString
    +    HiLink rakuStringAngles     rakuString
    +    HiLink rakuStringSQ         rakuString
    +    HiLink rakuStringDQ         rakuString
    +    HiLink rakuStringQ          rakuString
    +    HiLink rakuStringQ_q        rakuString
    +    HiLink rakuStringQ_qww      rakuString
    +    HiLink rakuStringQ_qq       rakuString
    +    HiLink rakuStringQ_to       rakuString
    +    HiLink rakuStringQ_qto      rakuString
    +    HiLink rakuStringQ_qqto     rakuString
    +    HiLink rakuRxStringSQ       rakuString
    +    HiLink rakuRxStringDQ       rakuString
    +    HiLink rakuReplacement      rakuString
    +    HiLink rakuReplCurly        rakuString
    +    HiLink rakuReplAngle        rakuString
    +    HiLink rakuReplFrench       rakuString
    +    HiLink rakuReplBracket      rakuString
    +    HiLink rakuReplParen        rakuString
    +    HiLink rakuTransliteration  rakuString
    +    HiLink rakuTransRepl        rakuString
    +    HiLink rakuTransReplCurly   rakuString
    +    HiLink rakuTransReplAngle   rakuString
    +    HiLink rakuTransReplFrench  rakuString
    +    HiLink rakuTransReplBracket rakuString
    +    HiLink rakuTransReplParen   rakuString
    +    HiLink rakuStringAuto       rakuString
    +    HiLink rakuKey              rakuString
    +    HiLink rakuMatch            rakuString
    +    HiLink rakuSubstitution     rakuString
    +    HiLink rakuMatchBare        rakuString
    +    HiLink rakuRegexBlock       rakuString
    +    HiLink rakuRxP5CharClass    rakuString
    +    HiLink rakuRxP5QuoteMeta    rakuString
    +    HiLink rakuRxCharClass      rakuString
    +    HiLink rakuRxQuoteWords     rakuString
    +    HiLink rakuReduceOp         rakuOperator
    +    HiLink rakuSetOp            rakuOperator
    +    HiLink rakuRSXZOp           rakuOperator
    +    HiLink rakuHyperOp          rakuOperator
    +    HiLink rakuPostHyperOp      rakuOperator
    +    HiLink rakuQuoteQ           rakuQuote
    +    HiLink rakuQuoteQ_q         rakuQuote
    +    HiLink rakuQuoteQ_qww       rakuQuote
    +    HiLink rakuQuoteQ_qq        rakuQuote
    +    HiLink rakuQuoteQ_to        rakuQuote
    +    HiLink rakuQuoteQ_qto       rakuQuote
    +    HiLink rakuQuoteQ_qqto      rakuQuote
    +    HiLink rakuQuoteQ_PIR       rakuQuote
    +    HiLink rakuMatchStart_m     rakuQuote
    +    HiLink rakuMatchStart_s     rakuQuote
    +    HiLink rakuMatchStart_tr    rakuQuote
    +    HiLink rakuBareSigil        rakuVariable
    +    HiLink rakuRxRange          rakuStringSpecial
    +    HiLink rakuRxAnchor         rakuStringSpecial
    +    HiLink rakuRxBoundary       rakuStringSpecial
    +    HiLink rakuRxP5Anchor       rakuStringSpecial
    +    HiLink rakuCodePoint        rakuStringSpecial
    +    HiLink rakuRxMeta           rakuStringSpecial
    +    HiLink rakuRxP5Range        rakuStringSpecial
    +    HiLink rakuRxP5CPId         rakuStringSpecial
    +    HiLink rakuRxP5Posix        rakuStringSpecial
    +    HiLink rakuRxP5Mod          rakuStringSpecial
    +    HiLink rakuRxP5HexSeq       rakuStringSpecial
    +    HiLink rakuRxP5OctSeq       rakuStringSpecial
    +    HiLink rakuRxP5WriteRefId   rakuStringSpecial
    +    HiLink rakuHexSequence      rakuStringSpecial
    +    HiLink rakuOctSequence      rakuStringSpecial
    +    HiLink rakuRxP5Named        rakuStringSpecial
    +    HiLink rakuRxP5PropId       rakuStringSpecial
    +    HiLink rakuRxP5Quantifier   rakuStringSpecial
    +    HiLink rakuRxP5CountId      rakuStringSpecial
    +    HiLink rakuRxP5Verb         rakuStringSpecial
    +    HiLink rakuRxAssertGroup    rakuStringSpecial2
    +    HiLink rakuEscape           rakuStringSpecial2
    +    HiLink rakuEscNull          rakuStringSpecial2
    +    HiLink rakuEscHash          rakuStringSpecial2
    +    HiLink rakuEscQQ            rakuStringSpecial2
    +    HiLink rakuEscQuote         rakuStringSpecial2
    +    HiLink rakuEscDoubleQuote   rakuStringSpecial2
    +    HiLink rakuEscBackTick      rakuStringSpecial2
    +    HiLink rakuEscForwardSlash  rakuStringSpecial2
    +    HiLink rakuEscVerticalBar   rakuStringSpecial2
    +    HiLink rakuEscExclamation   rakuStringSpecial2
    +    HiLink rakuEscDollar        rakuStringSpecial2
    +    HiLink rakuEscOpenCurly     rakuStringSpecial2
    +    HiLink rakuEscCloseCurly    rakuStringSpecial2
    +    HiLink rakuEscCloseBracket  rakuStringSpecial2
    +    HiLink rakuEscCloseAngle    rakuStringSpecial2
    +    HiLink rakuEscCloseFrench   rakuStringSpecial2
    +    HiLink rakuEscBackSlash     rakuStringSpecial2
    +    HiLink rakuEscCodePoint     rakuStringSpecial2
    +    HiLink rakuEscOct           rakuStringSpecial2
    +    HiLink rakuEscHex           rakuStringSpecial2
    +    HiLink rakuRxEscape         rakuStringSpecial2
    +    HiLink rakuRxCapture        rakuStringSpecial2
    +    HiLink rakuRxAlternation    rakuStringSpecial2
    +    HiLink rakuRxP5             rakuStringSpecial2
    +    HiLink rakuRxP5ReadRef      rakuStringSpecial2
    +    HiLink rakuRxP5Oct          rakuStringSpecial2
    +    HiLink rakuRxP5Hex          rakuStringSpecial2
    +    HiLink rakuRxP5EscMeta      rakuStringSpecial2
    +    HiLink rakuRxP5Meta         rakuStringSpecial2
    +    HiLink rakuRxP5Escape       rakuStringSpecial2
    +    HiLink rakuRxP5CodePoint    rakuStringSpecial2
    +    HiLink rakuRxP5WriteRef     rakuStringSpecial2
    +    HiLink rakuRxP5Prop         rakuStringSpecial2
    +
    +    HiLink rakuProperty       Tag
    +    HiLink rakuAttention      Todo
    +    HiLink rakuType           Type
    +    HiLink rakuError          Error
    +    HiLink rakuBlockLabel     Label
    +    HiLink rakuNormal         Normal
    +    HiLink rakuIdentifier     Normal
    +    HiLink rakuPackage        Normal
    +    HiLink rakuPackageScope   Normal
    +    HiLink rakuNumber         Number
    +    HiLink rakuOctNumber      Number
    +    HiLink rakuBinNumber      Number
    +    HiLink rakuHexNumber      Number
    +    HiLink rakuDecNumber      Number
    +    HiLink rakuString         String
    +    HiLink rakuRepeat         Repeat
    +    HiLink rakuPragma         Keyword
    +    HiLink rakuPreDeclare     Keyword
    +    HiLink rakuDeclare        Keyword
    +    HiLink rakuDeclareRegex   Keyword
    +    HiLink rakuVarStorage     Special
    +    HiLink rakuFlowControl    Special
    +    HiLink rakuOctBase        Special
    +    HiLink rakuBinBase        Special
    +    HiLink rakuHexBase        Special
    +    HiLink rakuDecBase        Special
    +    HiLink rakuTwigil         Special
    +    HiLink rakuStringSpecial2 Special
    +    HiLink rakuVersion        Special
    +    HiLink rakuComment        Comment
    +    HiLink rakuBracketComment Comment
    +    HiLink rakuInclude        Include
    +    HiLink rakuShebang        PreProc
    +    HiLink rakuClosureTrait   PreProc
    +    HiLink rakuOperator       Operator
    +    HiLink rakuContext        Operator
    +    HiLink rakuQuote          Delimiter
    +    HiLink rakuTypeConstraint PreCondit
    +    HiLink rakuException      Exception
    +    HiLink rakuVariable       Identifier
    +    HiLink rakuVarSlash       Identifier
    +    HiLink rakuVarNum         Identifier
    +    HiLink rakuVarExclam      Identifier
    +    HiLink rakuVarMatch       Identifier
    +    HiLink rakuVarName        Identifier
    +    HiLink rakuMatchVar       Identifier
    +    HiLink rakuRxP5ReadRefId  Identifier
    +    HiLink rakuRxP5ModDef     Identifier
    +    HiLink rakuRxP5ModName    Identifier
    +    HiLink rakuConditional    Conditional
    +    HiLink rakuStringSpecial  SpecialChar
    +
    +    HiLink rakuPodAbbr         rakuPod
    +    HiLink rakuPodAbbrEOF      rakuPod
    +    HiLink rakuPodAbbrNoCode   rakuPod
    +    HiLink rakuPodAbbrCode     rakuPodCode
    +    HiLink rakuPodPara         rakuPod
    +    HiLink rakuPodParaEOF      rakuPod
    +    HiLink rakuPodParaNoCode   rakuPod
    +    HiLink rakuPodParaCode     rakuPodCode
    +    HiLink rakuPodDelim        rakuPod
    +    HiLink rakuPodDelimEOF     rakuPod
    +    HiLink rakuPodDelimNoCode  rakuPod
    +    HiLink rakuPodDelimCode    rakuPodCode
    +    HiLink rakuPodImplicitCode rakuPodCode
    +    HiLink rakuPodExtraConfig  rakuPodPrefix
    +    HiLink rakuPodVerticalBar  rakuPodFormatCode
    +    HiLink rakuPodColon        rakuPodFormatCode
    +    HiLink rakuPodSemicolon    rakuPodFormatCode
    +    HiLink rakuPodComma        rakuPodFormatCode
    +    HiLink rakuPodFormatOne    rakuPodFormat
    +    HiLink rakuPodFormatTwo    rakuPodFormat
    +    HiLink rakuPodFormatThree  rakuPodFormat
    +    HiLink rakuPodFormatFrench rakuPodFormat
    +
    +    HiLink rakuPodType           Type
    +    HiLink rakuPodConfigOption   String
    +    HiLink rakuPodCode           PreProc
    +    HiLink rakuPod               Comment
    +    HiLink rakuPodComment        Comment
    +    HiLink rakuPodAutoQuote      Operator
    +    HiLink rakuPodConfigOperator Operator
    +    HiLink rakuPodPrefix         Statement
    +    HiLink rakuPodName           Identifier
    +    HiLink rakuPodFormatCode     SpecialChar
    +    HiLink rakuPodFormat         SpecialComment
    +
    +    delcommand HiLink
    +endif
    +
    +if exists("raku_fold") || exists("raku_extended_all")
    +    setl foldmethod=syntax
    +    syn region rakuBlockFold
    +        \ start="^\z(\s*\)\%(my\|our\|augment\|multi\|proto\|only\)\?\s*\%(\%([A-Za-z_\xC0-\xFF]\%([A-Za-z_\xC0-\xFF0-9]\|[-'][A-Za-z_\xC0-\xFF]\@=\)*\)\s\+\)\?\<\%(CATCH\|try\|ENTER\|LEAVE\|CHECK\|INIT\|BEGIN\|END\|KEEP\|UNDO\|PRE\|POST\|module\|package\|enum\|subset\|class\|sub\%(method\)\?\|multi\|method\|slang\|grammar\|regex\|token\|rule\)\>[^{]\+\%({\s*\%(#.*\)\?\)\?$"
    +        \ end="^\z1}"
    +        \ transparent fold keepend extend
    +endif
    +
    +let b:current_syntax = "raku"
    +
    +let &cpo = s:keepcpo
    +unlet s:keepcpo
    +
    +" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
    diff --git a/git/usr/share/vim/vim92/syntax/raml.vim b/git/usr/share/vim/vim92/syntax/raml.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..062a71c81be15abe1eb3d60a73416c2825638a24
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/raml.vim
    @@ -0,0 +1,106 @@
    +" Vim syntax file
    +" Language:    RAML (RESTful API Modeling Language)
    +" Maintainer:  Eric Hopkins 
    +" URL:         https://github.com/in3d/vim-raml
    +" License:     Same as Vim
    +" Last Change: 2018-11-03
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn keyword ramlTodo            contained TODO FIXME XXX NOTE
    +
    +syn region  ramlComment         display oneline start='\%(^\|\s\)#' end='$'
    +                                \ contains=ramlTodo,@Spell
    +
    +syn region  ramlVersion         display oneline start='#%RAML' end='$'
    +
    +syn match   ramlNodeProperty    '!\%(![^\\^%     ]\+\|[^!][^:/   ]*\)'
    +
    +syn match   ramlAnchor          '&.\+'
    +
    +syn match   ramlAlias           '\*.\+'
    +
    +syn match   ramlDelimiter       '[-,:]'
    +syn match   ramlBlock           '[\[\]{}>|]'
    +syn match   ramlOperator        '[?+-]'
    +syn match   ramlKey             '\h\+\(?\)\?\ze\s*:'
    +syn match   ramlKey             '\w\+\(\s\+\w\+\)*\(?\)\?\ze\s*:'
    +syn match   routeKey            '\/\w\+\(\s\+\w\+\)*\ze\s*:'
    +syn match   routeKey            'application\/\w\+\ze\s*:'
    +syn match   routeParamKey       '\/{\w\+}*\ze\s*:'
    +
    +syn region  ramlString          matchgroup=ramlStringDelimiter
    +                                \ start=+\s"+ skip=+\\"+ end=+"+
    +                                \ contains=ramlEscape
    +syn region  ramlString          matchgroup=ramlStringDelimiter
    +                                \ start=+\s'+ skip=+''+ end=+'+
    +                                \ contains=ramlStringEscape
    +syn region  ramlParameter       matchgroup=ramlParameterDelimiter
    +                                \ start=+<<+ skip=+''+ end=+>>+
    +syn match   ramlEscape          contained display +\\[\\"abefnrtv^0_ NLP]+
    +syn match   ramlEscape          contained display '\\x\x\{2}'
    +syn match   ramlEscape          contained display '\\u\x\{4}'
    +syn match   ramlEscape          contained display '\\U\x\{8}'
    +syn match   ramlEscape          display '\\\%(\r\n\|[\r\n]\)'
    +syn match   ramlStringEscape    contained +''+
    +
    +syn match   ramlNumber          display
    +                                \ '\<[+-]\=\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\='
    +syn match   ramlNumber          display '0\o\+'
    +syn match   ramlNumber          display '0x\x\+'
    +syn match   ramlNumber          display '([+-]\=[iI]nf)'
    +syn match   ramlNumber          display '(NaN)'
    +
    +syn match   ramlConstant        '\<[~yn]\>'
    +syn keyword ramlConstant        true True TRUE false False FALSE
    +syn keyword ramlConstant        yes Yes on ON no No off OFF
    +syn keyword ramlConstant        null Null NULL nil Nil NIL
    +
    +syn keyword httpVerbs           get post put delete head patch options
    +syn keyword ramlTypes           string number integer date boolean file
    +
    +syn match   ramlTimestamp       '\d\d\d\d-\%(1[0-2]\|\d\)-\%(3[0-2]\|2\d\|1\d\|\d\)\%( \%([01]\d\|2[0-3]\):[0-5]\d:[0-5]\d.\d\d [+-]\%([01]\d\|2[0-3]\):[0-5]\d\|t\%([01]\d\|2[0-3]\):[0-5]\d:[0-5]\d.\d\d[+-]\%([01]\d\|2[0-3]\):[0-5]\d\|T\%([01]\d\|2[0-3]\):[0-5]\d:[0-5]\d.\dZ\)\='
    +
    +syn region  ramlDocumentHeader  start='---' end='$' contains=ramlDirective
    +syn match   ramlDocumentEnd     '\.\.\.'
    +
    +syn match   ramlDirective       contained '%[^:]\+:.\+'
    +
    +hi def link ramlVersion            String
    +hi def link routeInterpolation     String
    +hi def link ramlInterpolation      Constant
    +hi def link ramlTodo               Todo
    +hi def link ramlComment            Comment
    +hi def link ramlDocumentHeader     PreProc
    +hi def link ramlDocumentEnd        PreProc
    +hi def link ramlDirective          Keyword
    +hi def link ramlNodeProperty       Type
    +hi def link ramlAnchor             Type
    +hi def link ramlAlias              Type
    +hi def link ramlBlock              Operator
    +hi def link ramlOperator           Operator
    +hi def link routeParamKey          SpecialChar
    +hi def link ramlKey                Identifier
    +hi def link routeKey               SpecialChar
    +hi def link ramlParameterDelimiter Type
    +hi def link ramlParameter          Type
    +hi def link ramlString             String
    +hi def link ramlStringDelimiter    ramlString
    +hi def link ramlEscape             SpecialChar
    +hi def link ramlStringEscape       SpecialChar
    +hi def link ramlNumber             Number
    +hi def link ramlConstant           Constant
    +hi def link ramlTimestamp          Number
    +hi def link httpVerbs              Statement
    +hi def link ramlTypes              Type
    +hi def link ramlDelimiter          Delimiter
    +
    +let b:current_syntax = "raml"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/rapid.vim b/git/usr/share/vim/vim92/syntax/rapid.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ba112d3aabf7db309bc76a64247c6d774972965c
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rapid.vim
    @@ -0,0 +1,698 @@
    +" ABB Rapid Command syntax file for Vim
    +" Language: ABB Rapid Command
    +" Maintainer: Patrick Meiser-Knosowski 
    +" Version: 2.3.0
    +" Last Change: 28. Oct 2025
    +" Credits: Thanks for beta testing to Thomas Baginski
    +"
    +" Suggestions of improvement are very welcome. Please email me!
    +"
    +"
    +"
    +" Note to self:
    +" for testing perfomance
    +"     open a 1000 lines file.
    +"     :syntime on
    +"     G
    +"     hold down CTRL-U until reaching top
    +"     :syntime report
    +"
    +"
    +" TODO:   - highlight rapid constants and maybe constants from common
    +"           technology packages
    +"         - optimize rapidErrorStringTooLong
    +"         - error highlight for missing 2nd point in MoveCirc et al
    +
    +" Init {{{
    +" Remove any old syntax stuff that was loaded (5.x) or quit when a syntax file
    +" was already loaded (6.x).
    +if version < 600
    +  syntax clear
    +elseif exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:keepcpo= &cpo
    +set cpo&vim
    +
    +" if colorscheme is tortus rapidNoHighLink defaults to 1
    +if (get(g:,'colors_name'," ")=="tortus" || get(g:,'colors_name'," ")=="tortusless")
    +      \&& !exists("g:rapidGroupName")
    +  let g:rapidGroupName=1
    +endif
    +" rapidGroupName defaults to 0 if it's not initialized yet or 0
    +if !get(g:,"rapidGroupName",0)
    +  let g:rapidGroupName=0
    +endif
    +
    +" Rapid does ignore case
    +syn case ignore
    +" spell checking
    +syn spell notoplevel
    +" }}} init
    +
    +" common highlighting {{{
    +
    +" Error {{{
    +if get(g:,'rapidShowError',1)
    +  "
    +  " This error must be defined befor rapidCharCode and rapidEscapedBackSlash
    +  " a string containing a single \ which is not a char code
    +  syn match rapidErrorSingleBackslash /\\/ contained
    +  highlight default link rapidErrorSingleBackslash Error
    +  "
    +endif
    +" }}} Error
    +
    +" Constant values {{{
    +" Boolean
    +syn keyword rapidBoolean TRUE FALSE Edge High Low
    +highlight default link rapidBoolean Boolean
    +" Float (num)
    +" syn match rapidFloat /\v%(\W|_)@1<=[+-]?\d+\.?\d*%(\s*[eE][+-]?\d+)?/
    +syn match rapidFloat /\v\c%(<\d+\.|\.?<\d)\d*%(E[+-]?\d+)?>/ contains=rapidOperator
    +highlight default link rapidFloat Float
    +" integer in decimal, hexadecimal, octal and binary
    +syn match rapidDec /\<[0-9]\+\>/
    +highlight default link rapidDec Number
    +syn match rapidHex /\<0x[0-9a-fA-F]\+\>/
    +highlight default link rapidHex Number
    +syn match rapidOct /\<0o[0-7]\+\>/
    +highlight default link rapidOct Number
    +syn match rapidBin /\<0b[01]\+\>/
    +highlight default link rapidBin Number
    +" String. Note: Don't rename group rapidString. Indent depend on this
    +syn region rapidString matchgroup=rapidString start=/"/ skip=/""/ end=/"/ oneline contains=rapidStringDoubleQuote,rapidEscapedBackSlash,rapidCharCode,rapidErrorSingleBackslash,rapidErrorStringTooLong,@Spell
    +highlight default link rapidString String
    +" two adjacent "" in string for one double quote
    +syn match rapidStringDoubleQuote /""/ contained
    +highlight default link rapidStringDoubleQuote SpecialChar
    +" character code in string
    +syn match rapidCharCode /\\\x\x/ contained
    +highlight default link rapidCharCode SpecialChar
    +" escaped \ in string
    +syn match rapidEscapedBackSlash /\\\\/ contained
    +highlight default link rapidEscapedBackSlash SpecialChar
    +" }}} Constant values
    +
    +" }}} common highlighting
    +
    +if bufname("%") =~ '\c\.cfg$'
    +" {{{ highlighting for *.cfg
    +
    +  " special chars {{{
    +  " syn match rapidOperator /:\|[+-]\|\*\|\/\|\\/
    +  syn match rapidOperator /[-+*/:\\]/
    +  syn match rapidOperator /^#/
    +  highlight default link rapidOperator Operator
    +  " }}} special chars
    +
    +  " sections {{{
    +  syn match rapidException /^\w\+/
    +  syn match rapidException /CFG_\d\+/
    +  highlight default link rapidException Exception
    +  " }}} sections
    +
    +  " Error {{{
    +  if get(g:,'rapidShowError',1)
    +    "
    +    " This error must be defined after rapidString
    +    " Any Name longer than 32 chars
    +    syn match rapidErrorNameTooLong /-Name "[^"]\{33,}"/
    +    highlight default link rapidErrorNameTooLong Error
    +    "
    +  endif
    +  " }}} Error
    +
    +  " }}} highlighting for *.cfg
    +else
    +  " highlighting for *.mod, *.sys and *.prg {{{
    +
    +  " sync for regions from a line comment or the start of a function
    +  syn sync match rapidSync grouphere NONE /\v\c^\s*%(!|%(task\s+|local\s+)?%(module|proc|func|trap|record)>)/
    +
    +  " Comment {{{
    +  " TODO Comment
    +  syn match rapidTodoComment contained /\\|\\|\/
    +  highlight default link rapidTodoComment Todo
    +  " Debug comment
    +  syn match rapidDebugComment contained /\/
    +  highlight default link rapidDebugComment Debug
    +  " Line comment
    +  syn match rapidComment /!.*$/ contains=rapidTodoComment,rapidDebugComment,@Spell
    +  highlight default link rapidComment Comment
    +  " }}} Comment
    +
    +  " Header {{{
    +  syn match rapidHeader /^%%%/
    +  highlight default link rapidHeader PreProc
    +  " }}} Header
    +
    +  " Operator {{{
    +  " Boolean operator
    +  syn keyword rapidOperator and or xor not div mod
    +  " Arithmetic and compare operator
    +  syn match rapidOperator /[-+*/<>:=]/
    +  " conditional argument
    +  syn match rapidOperator /?/
    +  highlight default link rapidOperator Operator
    +  " }}} Operator
    +
    +  " Type, StorageClass and Typedef {{{
    +  " anytype (preceded by 'alias|pers|var|const|func'
    +  " TODO: still missing are userdefined types which are part of a parameter:
    +  " PROC message( mystring msMessagePart1{},
    +  "               \ myvar msMsg4{})
    +  " TODO testing. Problem: does not highlight any type if it's part of an argument list
    +  " syn match rapidAnyType /\v^\s*(global\s+|task\s+|local\s+)?(alias|pers|var|const|func)\s+\w+>/ contains=rapidStorageClass,rapidType,rapidTypeDef
    +  " highlight default link rapidAnyType Type
    +  syn keyword rapidType accdata aiotrigg bool btnres busstate buttondata byte
    +  syn keyword rapidType cfgdomain clock cnvcmd confdata confsupdata corrdescr datapos deflectiondata dionum dir dnum
    +  syn keyword rapidType egmframetype egmident egm_minmax egmstate egmstopmode errdomain errnum ErrorInfo errstr errtype event_type exec_level extjoint handler_type
    +  syn keyword rapidType icondata identno inposdata intnum inttypes iodev iounit_state jointtarget
    +  syn keyword rapidType listitem loaddata loadidnum loadsession mecunit motionprocessmode motsetdata
    +  " syn keyword rapidType num
    +  syn keyword rapidType opcalc opnum orient paridnum paridvalidnum pathrecid pnpdata pos pose proc_times progdisp o_jointtarget o_robtarget
    +  syn keyword rapidType rawbytes restartdata rmqheader rmqmessage rmqslot robjoint robtarget
    +  syn keyword rapidType searchdata sensor sensorstate sensorvardata shapedata signalai signalao signaldi signaldo signalgi signalgo signalorigin singdata socketdev socketstatus speeddata stopmovestartmove_mem stoppoint stoppointdata string stringdig sup_timeouts supervtype switch symnum syncident
    +  syn keyword rapidType taskid tasks tasksatstart testsignal tooldata tpnum trapdata triggdata triggflag triggios triggiosdnum triggmode triggstrgo tsp_status tunegtype tunetype
    +  syn keyword rapidType uishownum veldata visiondata wobjdata wzstationary wztemporary zonedata
    +  " SoftMove data types
    +  syn keyword rapidType css_offset_dir css_soft_dir cssframe
    +  " arc data types
    +  syn keyword rapidType advSeamData arcdata flystartdata seamdata arctrackdata opttrackdata weavedata welddata
    +  " conveyor tracking data types
    +  syn keyword rapidType indcnvdata
    +  " Integrated Vision data types
    +  syn keyword rapidType cameradev cameratarget
    +  " arc Weldguide and MultiPass data types
    +  syn keyword rapidType adaptdata trackdata multidata
    +  " GAP
    +  syn keyword rapidType partdata partadv ee_event menudata
    +  " dispense data types
    +  syn keyword rapidType beaddata equipdata
    +  " Spot data types
    +  syn keyword rapidType gundata gunnum spotdata forcedata simdata smeqdata smeqtype
    +  " Tool change data types
    +  syn keyword rapidType standno ToolInfo toolno
    +  " Continuous Application Platform data types
    +  syn keyword rapidType capaptrreferencedata capdata capevent caplatrackdata capmvsttim capspeeddata capspeeddata capstopmode captestno captrackdata capweavedata flypointdata processtimes restartblkdata supervtimeouts weavestartdata
    +  " Bulls Eye data types
    +  syn keyword rapidType be_device be_scan be_tooldesign
    +  " Force Control data types
    +  syn keyword rapidType fcboxvol fccondstatus fccylindervol fcdamping fcforcevector fcframe fclindir fcprocessdata fcplane fcrotdir fcspeedvector fcspherevol fcspdchgtunetype fcxyznum
    +  " Discrete application platform data types
    +  syn keyword rapidType dadescapp dadescprc daintdata
    +  " VW Konzernstandard VWKS_1.07.02
    +  syn keyword rapidType merker
    +  syn keyword rapidType frgnum frgwert robnum
    +  syn keyword rapidType fmnum applid calibdatavorr stepdata
    +  syn keyword rapidType tsmethode tsdaten teilspeicherdaten
    +  syn keyword rapidType greiferdaten greiferposition bauteildaten bauteilkontrolle g_datenident g_sensor g_signal g_teilident g_ventil
    +  syn keyword rapidType strgnum typnum
    +  syn keyword rapidType hubnum kopfnum
    +  syn keyword rapidType applservicetype
    +  syn keyword rapidType applfraesdaten kwdionum
    +  syn keyword rapidType butechnum
    +  syn keyword rapidType toolnum dbnum
    +  " das folgende sind datentypen aber das kann man doch nicht machen...
    +  " syn keyword rapidType position wert
    +  syn keyword rapidType camdata camlimitdata cammode camprotocoldata camstatus camsequence campositionstatus
    +  syn keyword rapidType saposnum sabereichnum autofocusnum focusposnum lascaledata laleistungnum larobnum laprognum uebwnum dgbanum dgjobnum gasspuelnum davalve gasuebwnum
    +  syn keyword rapidType lsfigurnum lsstarttype
    +  syn keyword rapidType lwprognum lwdiodnum lsstarttype
    +  syn keyword rapidType lztype diskrethubnum lztipnum
    +  syn keyword rapidType gblmethod
    +  syn keyword rapidType buatypenum buatechnum buadirnum
    +  highlight default link rapidType Type
    +  " Storage class
    +  syn keyword rapidStorageClass LOCAL TASK VAR PERS CONST ALIAS NOVIEW NOSTEPIN VIEWONLY READONLY SYSMODULE INOUT REF
    +  highlight default link rapidStorageClass StorageClass
    +  " Not a typedef but I like to have those highlighted different then types,
    +  " structures or strorage classes
    +  syn keyword rapidTypeDef MODULE ENDMODULE PROC ERROR UNDO BACKWARD ENDPROC RECORD ENDRECORD TRAP ENDTRAP FUNC ENDFUNC
    +  highlight default link rapidTypeDef TypeDef
    +  " }}} Type, StorageClass and Typedef
    +
    +  " Statements, keywords et al {{{
    +  " syn keyword rapidStatement
    +  " highlight default link rapidStatement Statement
    +  " Conditional
    +  syn keyword rapidConditional if then elseif else endif test case default endtest
    +  highlight default link rapidConditional Conditional
    +  " Repeat
    +  syn keyword rapidRepeat do
    +  syn match rapidRepeat /\c\v^\s*%(|)%([^!]+)@=/
    +  syn keyword rapidRepeat from to step endfor endwhile
    +  highlight default link rapidRepeat Repeat
    +  " Label
    +  syn keyword rapidLabel goto
    +  syn match rapidLabel /\c\v^\s*[[:upper:][:lower:]]\k*\:\ze%([^=]|$)/ contains=rapidConditional,rapidOperator
    +  highlight default link rapidLabel Label
    +  " Keyword
    +  syn keyword rapidKeyword AccSet ActEventBuffer ActUnit Add AliasCamera AliasIO AliasIOReset BitClear BitSet BookErrNo BrakeCheck
    +  syn keyword rapidKeyword CallByVar CancelLoad CheckProgRef CirPathMode Clear ClearIOBuff ClearPath ClearRawBytes ClkReset ClkStart ClkStop Close CloseDir ConfJ ConfL CONNECT CopyFile CopyRawBytes CornerPathWarning CorrClear CorrCon CorrDiscon CorrWrite
    +  syn keyword rapidKeyword CSSAct CSSDeact CSSForceOffsetAct CSSForceOffsetDeact CSSOffsetTune CyclicBrakeCheck
    +  syn keyword rapidKeyword DeactEventBuffer DeactUnit Decr DitherAct DitherDeact DropSensor
    +  syn keyword rapidKeyword EGMActJoint EGMActMove EGMActPose EGMGetId EGMReset EGMSetupAI EGMSetupAO EGMSetupGI EGMSetupLTAPP EGMSetupUC EOffsOff EOffsOn EOffsSet EraseModule ErrLog ErrWrite
    +  syn keyword rapidKeyword FitCircle FricIdInit FricIdEvaluate FricIdSetFricLevels
    +  syn keyword rapidKeyword GetDataVal GetGroupSignalInfo GetJointData GetSysData GetTorqueMargin GetTrapData GripLoad HollowWristReset
    +  syn keyword rapidKeyword IDelete IDisable IEnable IError Incr IndReset InvertDO IOBusStart IOBusState IoCtrlAxis_RefSync IoCtrlAxis_RefSyncOff IoCtrlAxis_RefSyncOn IODisable IOEnable IPers IRMQMessage ISignalAI ISignalAO ISignalDI ISignalDO ISignalGI ISignalGO ISleep ITimer IVarValue IWatch
    +  syn keyword rapidKeyword Load LoadId MakeDir ManLoadIdProc MatrixSolve MatrixSolveQR MatrixSVD MechUnitLoad MotionProcessModeSet MotionSup MToolRotCalib MToolTCPCalib Open OpenDir
    +  syn keyword rapidKeyword PackDNHeader PackRawBytes PathAccLim PathLengthReset PathLengthStart PathLengthStop PathRecStart PathRecStop PathResol PDispOff PDispOn PDispSet ProcerrRecovery PrxActivAndStoreRecord PrxActivRecord PrxDbgStoreRecord PrxDeactRecord PrxResetPos PrxResetRecords PrxSetPosOffset PrxSetRecordSampleTime PrxSetSyncalarm PrxStartRecord PrxStopRecord PrxStoreRecord PrxUseFileRecord PulseDO
    +  syn keyword rapidKeyword ReadAnyBin ReadBlock ReadCfgData ReadErrData ReadRawBytes ReadVarArr RemoveAllCyclicBool RemoveCyclicBool RemoveDir RemoveFile RenameFile Reset ResetAxisDistance ResetAxisMoveTime ResetPPMoved ResetRetryCount ResetTorqueMargin RestoPath Rewind RMQEmptyQueue RMQFindSlot RMQGetMessage RMQGetMsgData RMQGetMsgHeader RMQReadWait RMQSendMessage RMQSendWait
    +  syn keyword rapidKeyword SafetyControllerSyncRequest Save SaveCfgData SCWrite SenDevice Set SetAllDataVal SetAO SetDataSearch SetDataVal SetDO SetGO SetLeadThrough SetSysData SetupCyclicBool SiConnect SiClose SiGetCyclic SingArea SiSetCyclic SkipWarn SocketAccept SocketBind SocketClose SocketConnect SocketCreate SocketListen SocketReceive SocketReceiveFrom SocketSend SocketSendTo SoftAct SoftDeact SoftElbow SpeedLimAxis SpeedLimCheckPoint SpeedRefresh SpyStart SpyStop StartLoad STCalib STClose STIndGun STIndGunReset SToolRotCalib SToolTCPCalib STOpen StorePath STTune STTuneReset SupSyncSensorOff SupSyncSensorOn SyncMoveOff SyncMoveOn SyncMoveResume SyncMoveSuspend SyncMoveUndo SyncToSensor SystemStopAction
    +  syn keyword rapidKeyword TestSignDefine TestSignReset TextTabInstall TPErase TPReadDnum TPReadFK TPReadNum TPShow TPWrite TriggCheckIO TriggDataCopy TriggDataReset TriggEquip TriggInt TriggIO TriggRampAO TriggSpeed TriggStopProc TryInt TuneReset TuneServo
    +  syn keyword rapidKeyword UIMsgBox UIMsgWrite UIMsgWriteAbort UIShow UnLoad UnpackRawBytes VelSet WaitAI WaitAO WaitDI WaitDO WaitGI WaitGO WaitLoad WaitRob WaitSensor WaitSyncTask WaitTestAndSet WaitTime WaitUntil WarmStart WITH WorldAccLim Write WriteAnyBin WriteBin WriteBlock WriteCfgData WriteRawBytes WriteStrBin WriteVar WriteVarArr WZBoxDef WZCylDef WZDisable WZDOSet WZEnable WZFree WZHomeJointDef WZLimJointDef WZLimSup WZSphDef
    +  " arc instructions
    +  syn keyword rapidKeyword ArcRefresh RecoveryMenu RecoveryMenuWR RecoveryPosSet RecoveryPosReset SetWRProcName
    +  " conveyor tracking instructions
    +  syn keyword rapidKeyword UseACCProfile WaitWObj DropWObj RecordProfile WaitAndRecProf StoreProfile LoadProfile ActivateProfile DeactProfile CnvGenInstr CnvSync CnvGenInstr IndCnvInit IndCnvEnable IndCnvDisable IndCnvReset IndCnvAddObject
    +  syn keyword rapidKeyword UseReachableTargets GetMaxUsageTime ResetMaxUsageTime CnvPredictReach
    +  " Integrated Vision instructions
    +  syn keyword rapidKeyword CamFlush CamGetParameter CamGetResult CamLoadJob CamReqImage CamSetExposure CamSetParameter CamSetProgramMode CamSetRunMode CamStartLoadJob CamWaitLoadJob
    +  " arc Weldguide and MultiPass instructions
    +  syn keyword rapidKeyword MPSavePath MPLoadPath MPReadInPath MPOffsEaxOnPath
    +  " Paint instructions
    +  syn keyword rapidKeyword ConsoleWrite IpsSetParam PntProdUserLog SetBrush SetBrushFac
    +  " Spot instructions
    +  syn keyword rapidKeyword SetForce Calibrate ReCalcTCP IndGunMove IndGunMoveReset OpenHighLift CloseHighLift SwSetIntSpotData SwSetIntForceData SwSetIntGunData SwSetIntSimData SwGetCalibData SwGetFixTipData
    +  " Tool change instructions
    +  syn keyword rapidKeyword TcCloseCover TcDropOffTool TcLockTool TcOpenCover TcPickupTool TcUnlockTool
    +  " dispense instructions
    +  syn keyword rapidKeyword SetTmSignal SyncWWObj
    +  " Continuous Application Platform instructions
    +  syn keyword rapidKeyword CapAPTrSetup CapAPTrSetupAI CapAPTrSetupAO  CapAPTrSetupPERS CapCondSetDO CapEquiDist CapNoProcess CapRefresh CAPSetStopMode CapWeaveSync ICap InitSuperv IPathPos RemoveSuperv SetupSuperv
    +  " Bulls Eye instructions
    +  syn keyword rapidKeyword BECheckTcp BEDebugState BERefPointer BESetupToolJ BETcpExtend BEUpdateTcp
    +  " Force Control instructions
    +  syn keyword rapidKeyword FCAct FCCalib FCCondForce FCCondOrient FCCondPos FCCondReoriSpeed FCCondTCPSpeed FCCondTorque FCCondWaitWhile FCDeact FCPress1LStart FCPressC FCPressEnd FCPressL FCRefCircle FCRefForce FCRefLine FCRefMoveFrame FCRefRot FCRefSpiral FCRefSprForceCart FCRefStart FCRefStop FCRefTorque FCResetDampingTune FCResetLPFilterTune FCSpdChgAct FCSpdChgDeact FCSpdChgTunSet FCSpdChgTunReset FCSetDampingTune FCSetLPFilterTune FCSupvForce FCSupvOrient FCSupvPos FCSupvReoriSpeed FCSupvTCPSpeed FCSupvTorque
    +  " Discrete application platform instructions
    +  syn keyword rapidKeyword DaActProc DaDeactAllProc DaDeactProc DaDefExtSig DaDefProcData DaDefProcSig DaDefUserData DaGetCurrData DaSetCurrData DaSetupAppBehav DaStartManAction DaGetAppDescr DaGetAppIndex DaGetNumOfProcs DaGetNumOfRob DaGetPrcDescr
    +  " Production Manager instructions
    +  syn keyword rapidKeyword ExecEngine PMgrGetNextPart PMgrSetNextPart PMgrRunMenu
    +  " Homepos-Running instructions
    +  syn keyword rapidKeyword HR_Exit HR_ExitCycle HR_SavePos HR_SetMoveToStartPos HR_SetTypeDIndex HR_SetTypeIndex
    +  highlight default link rapidKeyword Keyword
    +  " Exception
    +  syn keyword rapidException Exit ErrRaise ExitCycle Raise RaiseToUser Retry Return TryNext
    +  syn match rapidException /\s\+Stop\s*[\\;]/me=e-1
    +  highlight default link rapidException Exception
    +  " }}} Statements, keywords et al
    +
    +  " Special keyword for move command {{{
    +  " uncategorized yet
    +  syn keyword rapidMovement MovePnP
    +  syn keyword rapidMovement EGMMoveC EGMMoveL EGMRunJoint EGMRunPose EGMStop
    +  syn keyword rapidMovement IndAMove IndCMove IndDMove IndRMove
    +  " common instructions
    +  syn keyword rapidMovement MoveAbsJ MoveC MoveExtJ MoveJ MoveL
    +  syn keyword rapidMovement MoveCAO MoveCDO MoveCGO MoveCSync MoveJAO MoveJDO MoveJGO MoveJSync MoveLAO MoveLDO MoveLGO MoveLSync
    +  syn keyword rapidMovement SearchC SearchExtJ SearchL
    +  syn keyword rapidMovement TriggAbsJ TriggC TriggJ TriggL TriggJIOs TriggLIOs
    +  " Arc instructions
    +  syn keyword rapidMovement ArcC ArcC1 ArcC2 ArcCEnd ArcC1End ArcC2End ArcCStart ArcC1Start ArcC2Start
    +  syn keyword rapidMovement ArcL ArcL1 ArcL2 ArcLEnd ArcL1End ArcL2End ArcLStart ArcL1Start ArcL2Start ArcMoveExtJ
    +  " Arc Weldguide and MultiPass instructions
    +  syn keyword rapidMovement ArcRepL ArcAdaptLStart ArcAdaptL ArcAdaptC ArcAdaptLEnd ArcAdaptCEnd ArcCalcLStart ArcCalcL ArcCalcC ArcCalcLEnd ArcCalcCEnd ArcAdaptRepL
    +  syn keyword rapidMovement Break
    +  " Continuous Application Platform instructions
    +  syn keyword rapidMovement CapC CapL CapLATrSetup CSSDeactMoveL ContactL
    +  " Dispense instructions
    +  syn keyword rapidMovement DispL DispC
    +  " Nut instructions"
    +  syn keyword rapidMovement NutL NutJ
    +  syn keyword rapidMovement PathRecMoveBwd PathRecMoveFwd
    +  " Paint instructions"
    +  syn keyword rapidMovement PaintL PaintLSig PaintLDO PaintC
    +  syn keyword rapidMovement StartMove StartMoveRetry StepBwdPath StopMove StopMoveReset
    +  " Spot instructions
    +  syn keyword rapidMovement SpotL SpotJ SpotML SpotMJ CalibL CalibJ MeasureWearL
    +  " Homepos-Running instructions
    +  syn keyword rapidMovement SMoveJ SMoveJDO SMoveJGO SMoveJSync SMoveL SMoveLDO SMoveLGO SMoveLSync SSearchL STriggJ STriggL
    +  syn keyword rapidMovement HR_ContMove HR_MoveBack HR_MoveRoutine HR_MoveTo HR_MoveToHome SCSSDeactMoveL
    +  " Discrete application platform instructions
    +  syn keyword rapidMovement DaProcML DaProcMJ
    +  " VW Konzernstandard VWKS_1.07.02
    +  syn keyword rapidMovement MoveABS  MoveABS_FB  MoveABS_FRG  MoveABS_ROB
    +  syn keyword rapidMovement MoveCIRC MoveCIRC_FB MoveCIRC_FRG MoveCIRC_ROB
    +  syn keyword rapidMovement MoveLIN  MoveLIN_FB  MoveLIN_FRG  MoveLIN_ROB
    +  syn keyword rapidMovement MovePTP  MovePTP_FB  MovePTP_FRG  MovePTP_ROB
    +  syn keyword rapidMovement SearchCIRC SearchCIRC_M
    +  syn keyword rapidMovement SearchLIN  SearchLIN_M
    +  syn keyword rapidMovement MoveABS_AO  MoveABS_DO  MoveABS_GO
    +  syn keyword rapidMovement MoveCIRC_AO MoveCIRC_DO MoveCIRC_GO
    +  syn keyword rapidMovement MoveLIN_AO  MoveLIN_DO  MoveLIN_GO
    +  syn keyword rapidMovement KW_LoesenLIN
    +  syn keyword rapidMovement SPZ_FraesenLIN SPZ_FraesenPTP SPZ_MessenLIN SPZ_MessenPTP SPZ_LIN SPZ_PTP
    +  syn keyword rapidMovement BZ_LIN BZ_PTP
    +  syn keyword rapidMovement KL_LIN KL_CIRC
    +  syn keyword rapidMovement BP_LIN BP_PTP
    +  syn keyword rapidMovement BU_CIRC BU_LIN
    +  syn keyword rapidMovement CZ_LIN CZ_LIN_V CZ_PTP CZ_PTP_V
    +  syn keyword rapidMovement FD_LIN FD_PTP
    +  syn keyword rapidMovement KG_LIN KG_PTP
    +  syn keyword rapidMovement DA_LIN
    +  syn keyword rapidMovement LK_CIRC LK_LIN
    +  syn keyword rapidMovement LL_CIRC LL_LIN
    +  syn keyword rapidMovement LS_CIRC LS_LIN LS_LIN_F LS_PTP_F
    +  syn keyword rapidMovement LW_CIRC LW_LIN
    +  syn keyword rapidMovement LZ_LIN LZ_PTP LZ_ReinigenLIN LZ_ReinigenPTP
    +  syn keyword rapidMovement MS_CIRC MS_LIN MS_ReinigenLIN MS_SearchLIN MS_PTP_CS MS_LIN_CS GBL_LIN GBL_PTP GBL_RefPointLIN
    +  syn keyword rapidMovement NK_LIN
    +  syn keyword rapidMovement NZ_LIN NZ_LIN_V NZ_PTP NZ_PTP_V
    +  syn keyword rapidMovement PR_LIN PR_PTP
    +  syn keyword rapidMovement RF_CIRC RF_LIN
    +  syn keyword rapidMovement STP_FraesenLIN STP_FraesenPTP STP_LIN STP_PTP
    +  syn keyword rapidMovement SM_LIN SM_PTP
    +  syn keyword rapidMovement BUA_CIRC BUA_LIN BUA_MessenLIN BUA_MessenPTP
    +  syn keyword rapidMovement KE_LIN
    +  if g:rapidGroupName
    +    highlight default link rapidMovement Movement
    +  else
    +    highlight default link rapidMovement Special
    +  endif
    +  " }}} special keyword for move command
    +
    +  " Any name {{{
    +  syn match rapidNames /\v[[:upper:][:lower:]](\k|\.)*/
    +  " }}} Any name
    +
    +  " Attempt to avoid false highlight of num in case of parameter name:
    +  "   TPWrite "goPosNo="\num:=GOutput(goPosNo);
    +  " Must follow after rapidNames in this file
    +  syn match rapidType /\c\v\s*\ze[^ :]/
    +
    +  " Structure value {{{
    +  " rapid structrure values. added to be able to conceal them
    +  if getbufvar('%', "&buftype")=="quickfix"
    +    " don't conceal in quickfix window
    +    setlocal conceallevel=0 concealcursor=
    +  endif
    +  syn region rapidConcealableString matchgroup=rapidConcealableString start=/"/ skip=/""/ end=/"/ oneline keepend extend contained contains=rapidStringDoubleQuote,rapidEscapedBackSlash,rapidCharCode,rapidErrorSingleBackslash,rapidErrorStringTooLong,@Spell conceal
    +  highlight default link rapidConcealableString String
    +  syn region rapidStructVal matchgroup=rapidStructDelimiter start=/\[/ end=/\]/ contains=rapidStructVal,rapidBoolean,rapidDec,rapidHex,rapidOct,rapidBin,rapidFloat,rapidConcealableString,rapidDelimiter,rapidConstant,rapidErrNo,rapidIntNo,rapidOperator keepend extend conceal cchar=*
    +  highlight default link rapidStructDelimiter Delimiter
    +  " check edge cases like this one:
    +  "  LOCAL CONST listitem lstAuswService{18}:=[["","Service Position"],["","Bremsentest"],["","Referenzfahrt"],["","Manuelles Abfahren"],["","Justagestellung"],["","Transportposition"],
    +  "      ["","Spitze-Spitze Greifer 1, [RT]"],["","Spitze-Spitze Greifer 2, [FT]"],["","Spitze-Spitze Pruefspitze"],["","Werkobjekt Ablage"],["","Werkobjekt Modul 1"],
    +  "      ["","Werkobjekt Modul 2"],["","TCP von Greifer 1 vermessen, [RT]"],["","TCP von Greifer 2 vermessen, [FT]"],["","TCP von Basisdorn vermessen"],
    +  "      ["","Greifer abdocken"],["","Greifer andocken"],["","Kollision Check (Ohne Greifer)"]];
    +  " }}} Structure value
    +
    +  " Delimiter {{{
    +  syn match rapidDelimiter /[\\(){},;|]/
    +  highlight default link rapidDelimiter Delimiter
    +  " }}} Delimiter
    +
    +  " BuildInFunction {{{
    +  " dispense functions
    +  syn keyword rapidBuildInFunction contained GetSignal GetSignalDnum
    +  " Integrated Vision Platform functions
    +  syn keyword rapidBuildInFunction contained CamGetExposure CamGetLoadedJob CamGetName CamNumberOfResults
    +  " Continuous Application Platform functions
    +  syn keyword rapidBuildInFunction contained CapGetFailSigs
    +  syn keyword rapidBuildInFunction contained Abs AbsDnum ACos ACosDnum AInput AOutput ArgName ASin ASinDnum ATan ATanDnum ATan2 ATan2Dnum
    +  syn keyword rapidBuildInFunction contained BitAnd BitAndDnum BitCheck BitCheckDnum BitLSh BitLShDnum BitNeg BitNegDnum BitOr BitOrDnum BitRSh BitRShDnum BitXOr BitXOrDnum ByteToStr
    +  syn keyword rapidBuildInFunction contained CalcJointT CalcRobT CalcRotAxFrameZ CalcRotAxisFrame CDate CJointT ClkRead CorrRead Cos CosDnum CPos CRobT CrossProd CSpeedOverride CTime CTool CWObj
    +  syn keyword rapidBuildInFunction contained DecToHex DefAccFrame DefDFrame DefFrame Dim DInput Distance DnumToNum DnumToStr DotProd DOutput
    +  syn keyword rapidBuildInFunction contained EGMGetState EulerZYX EventType ExecHandler ExecLevel Exp
    +  syn keyword rapidBuildInFunction contained FileSize FileTime FileTimeDnum FSSize
    +  syn keyword rapidBuildInFunction contained GetAxisDistance GetAxisMoveTime GetMaxNumberOfCyclicBool GetMecUnitName GetModalPayLoadMode GetMotorTorque GetNextCyclicBool GetNextMechUnit GetNextSym GetNumberOfCyclicBool GetServiceInfo GetSignalOrigin GetSysInfo GetTaskName GetTime GetTSPStatus GetUASUserName GInput GInputDnum GOutput GOutputDnum
    +  syn keyword rapidBuildInFunction contained HexToDec
    +  syn keyword rapidBuildInFunction contained IndInpos IndSpeed IOUnitState IsBrakeCheckActive IsCyclicBool IsFile IsLeadThrough IsMechUnitActive IsPers IsStopMoveAct IsStopStateEvent IsSyncMoveOn IsSysId IsVar
    +  syn keyword rapidBuildInFunction contained Max MaxExtLinearSpeed MaxExtReorientSpeed MaxRobReorientSpeed MaxRobSpeed Min MirPos ModExist ModTime ModTimeDnum MotionPlannerNo
    +  syn keyword rapidBuildInFunction contained NonMotionMode NOrient NumToDnum NumToStr
    +  syn keyword rapidBuildInFunction contained Offs OpMode OrientZYX ORobT
    +  syn keyword rapidBuildInFunction contained ParIdPosValid ParIdRobValid PathLengthGet PathLevel PathRecValidBwd PathRecValidFwd PFRestart PoseInv PoseMult PoseVect Pow PowDnum PPMovedInManMode Present ProgMemFree PrxGetMaxRecordpos
    +  syn keyword rapidBuildInFunction contained RawBytesLen ReadBin ReadDir ReadMotor ReadNum ReadStr ReadStrBin ReadVar RelTool RemainingRetries RMQGetSlotName RobName RobOS Round RoundDnum RunMode
    +  syn keyword rapidBuildInFunction contained SafetyControllerGetChecksum SafetyControllerGetOpModePinCode SafetyControllerGetSWVersion SafetyControllerGetUserChecksum Sin SinDnum SocketGetStatus SocketPeek Sqrt SqrtDnum STCalcForce STCalcTorque STIsCalib STIsClosed STIsIndGun STIsOpen StrDigCalc StrDigCmp StrFind StrLen StrMap StrMatch StrMemb StrOrder StrPart StrToByte StrToVal
    +  syn keyword rapidBuildInFunction contained Tan TanDnum TaskRunMec TaskRunRob TasksInSync TaskIsActive TaskIsExecuting TestAndSet TestDI TestSignRead TextGet TextTabFreeToUse TextTabGet TriggDataValid Trunc TruncDnum Type
    +  syn keyword rapidBuildInFunction contained UIAlphaEntry UIClientExist UIDnumEntry UIDnumTune UIListView UIMessageBox UINumEntry UINumTune
    +  syn keyword rapidBuildInFunction contained ValidIO ValToStr Vectmagn
    +  " Bulls Eye functions
    +  syn keyword rapidBuildInFunction contained OffsToolXYZ OffsToolPolar
    +  " Force Control functions
    +  syn keyword rapidBuildInFunction contained FCGetForce FCGetProcessData FCIsForceMode FCLoadID
    +  " Discrete application platform functions
    +  syn keyword rapidBuildInFunction contained DaGetFstTimeEvt DaCheckMMSOpt DaGetMP DaGetRobotName DaGetTaskName
    +  " Production Manager functions
    +  syn keyword rapidBuildInFunction contained PMgrAtSafe PMgrAtService PMgrAtState PMgrAtStation PMgrNextStation PMgrTaskNumber PMgrTaskName
    +  " Spot functions
    +  syn keyword rapidBuildInFunction contained SwGetCurrTargetName SwGetCurrSpotName
    +  " Homepos-Running functions
    +  syn keyword rapidBuildInFunction contained HR_RobotInHome HR_GetTypeDIndex HR_GetTypeIndex
    +  " Paint functions
    +  syn keyword rapidBuildInFunction contained IndexLookup IpsCommand IpsGetParam PaintCommand PntQueueExtraGet PntQueueExtraSet PntQueuePeek
    +  if g:rapidGroupName
    +    highlight default link rapidBuildInFunction BuildInFunction
    +  else
    +    highlight default link rapidBuildInFunction Function
    +  endif
    +  " }}}
    +
    +  " Function {{{
    +  syn match rapidFunction contains=rapidBuildInFunction /\v\c%(<%(PROC|MODULE)\s+)@1032 chars are not possible in rapid. a234567890123456789012345
    +    syn match rapidErrorIdentifierNameTooLong /\k\{33,}/ containedin=rapidFunction,rapidNames,rapidLabel
    +    highlight default link rapidErrorIdentifierNameTooLong Error
    +    "
    +    " a == b + 1
    +    syn match rapidErrorShouldBeColonEqual /\c\v%(^\s*%(%(TASK\s+|LOCAL\s+)?%(VAR|PERS|CONST)\s+\k+\s+)?\k+%(\k|[.{},*/+-])*\s*)@<=\=/
    +    highlight default link rapidErrorShouldBeColonEqual Error
    +    "
    +    " WaitUntil a==b
    +    syn match rapidErrorShouldBeEqual    /\c\v%(^\s*%(Return|WaitUntil|while)>[^!\\]+[^!<>])@<=%(\=|:)\=/
    +    syn match rapidErrorShouldBeEqual    /\c\v%(^\s*%(if|elseif)>[^!\\]+[^!<>])@<=%(\=|:)\=\ze[^!\\]+/
    +    highlight default link rapidErrorShouldBeEqual Error
    +    "
    +    " WaitUntil a=>b
    +    syn match rapidErrorShoudBeLessOrGreaterEqual /\c\v%(^\s*%(Return|WaitUntil|if|elseif|while)>[^!]+[^!<>])@<=\=[><]/
    +    highlight default link rapidErrorShoudBeLessOrGreaterEqual Error
    +    "
    +    " WaitUntil a>\s*\
    +" Last Change:	2024 May 21
    +" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
    +"
    +" Syntax support for rasi config file
    +
    +" This file is based on syntax defined in rofi-theme man page
    +" https://man.archlinux.org/man/community/rofi/rofi-theme.5.en
    +
    +if exists('b:current_syntax')
    +  finish
    +endif
    +let b:current_syntax = 'rasi'
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" String {{{
    +syn region rasiString    start=+"+ skip=+\\"+ end=+"+ oneline contained
    +syn match  rasiCharacter +L\='[^\\]'+ contained
    +
    +syn cluster rasiPropertyVals add=rasiString,rasiCharacter
    +" }}}
    +
    +" Integer/Real {{{
    +syn match rasiNumber  display contained '[+-]\?\d\+\(\.\d\+\)\?'
    +
    +syn cluster rasiPropertyVals add=rasiNumber
    +" }}}
    +
    +" Boolean {{{
    +syn keyword rasiBool  contained true false
    +
    +syn cluster rasiPropertyVals add=rasiBool
    +" }}}
    +
    +" Image {{{
    +syn match rasiInvImage        display contained 'url([^)]*)'
    +syn keyword rasiImageK        contained url linear-gradient
    +
    +syn match rasiImage           display contained transparent 'url(\s*"\([^"]\|\\"\)\+"\(\s*,\s*\(none\|both\|width\|height\)\)\?\s*)' contains=rasiImageScale,rasiString,rasiImageK
    +syn keyword rasiImageScale  contained none both width height
    +
    +syn match rasiImage           display contained transparent 'linear-gradient(\s*\(\(top\|left\|right\|bottom\)\s*,\s*\)\?[^,)]\+\s*\(,\s*[^,)]\+\s*\)\+)' contains=rasiImageDirection,@rasiColors,rasiImageK
    +syn keyword rasiImageDirection contained top left right bottom
    +
    +syn match rasiImage           display contained transparent 'linear-gradient(\s*\d\+\(rad\|grad\|deg\)\s*,\s*[^,)]\+\s*\(,\s*[^,)]\+\s*\)\+)' contains=rasiImageUnit,@rasiColor,@rasiInvColor,rasiNumber,rasiImageK
    +syn match rasiImageUnit       display contained '\(rad\|grad\|deg\)\>'
    +
    +syn cluster rasiPropertyVals  add=rasiInvImage,rasiImage
    +" }}}
    +
    +" Reference {{{
    +syn match rasiReference       display contained '@[a-zA-Z0-9-]\+'
    +
    +syn keyword rasiVarReferenceK contained var
    +
    +syn match rasiInvVarReference display contained 'var([^)]*)'
    +syn match rasiVarReference    display contained transparent 'var(\s*[a-zA-Z0-9-]\+\s*,\s*\(\a\+\s*([^)]*)\)\?[^),]*)' contains=rasiVarReferenceK,rasiPropertyIdRef,@rasiPropertyVals
    +syn match rasiPropertyIdRef   display contained '\a[a-zA-Z0-9-]*'
    +
    +syn cluster rasiPropertyVals  add=rasiReference,rasiInvVarReference,rasiVarReference
    +" }}}
    +
    +" Env variable {{{
    +syn match rasiInvEnv          display contained '${[^}]*}'
    +syn match rasiEnv             display contained '${\w\+}'hs=s+2,he=e-1
    +
    +syn keyword rasiEnvVarK       contained env
    +
    +syn match rasiInvEnvVar       display contained 'env([^)]*)'
    +syn match rasiEnvVar          display contained transparent 'env(\s*\w\+\s*,\s*\(\a\+([^)]*)\)\?[^),]*)' contains=rasiEnvVarK,rasiEnvRef,@rasiPropertyVals
    +syn match rasiEnvRef          display contained '\a\w*'
    +
    +syn cluster rasiPropertyVals  add=rasiEnv,rasiInvEnv,rasiInvEnvVar,rasiEnvVar
    +" }}}
    +
    +" Color {{{
    +syn keyword rasiColorK        contained rgb[a] hsl[a] hwb[a] cmyk
    +
    +syn match rasiHexColor        display contained '#\x\{3,4}'
    +syn match rasiHexColor        display contained '#\x\{6}'
    +syn match rasiHexColor        display contained '#\x\{8}'
    +syn match rasiInvHexColor     display contained '#\x\{5}\X'he=e-1,me=e-1
    +syn match rasiInvHexColor     display contained '#\x\{7}\X'he=e-1,me=e-1
    +
    +syn match rasiInvRGBColor     display contained 'rgb\(a\)\?([^)]*)'
    +syn match rasiRGBColor        display contained transparent 'rgb\(a\)\?(\s*\d\+\s*\(%\)\?\s*,\(\s*\d\+\s*\(%\)\?\s*\){2}\(,\s*\(\d\(\.\d*\)\?\|\d\{,3}%\)\s*\)\?)' contains=rasiColorK,rasiNumber,rasiDistance
    +
    +syn match rasiInvHSLColor     display contained 'h\(sl\|wb\)\(a\)\?([^)]*)'
    +syn match rasiHSLColor        display contained transparent 'h\(sl\|wb\)\(a\)\?(\s*\d\+\(\.\d*\)\?\(deg\|rad\|grad\|turn\)\?\s*\(,\s*\(\d\(\.\d*\)\?\|\d\{,3}%\)\s*\)\{2,3})' contains=rasiColorK,rasiNumber,rasiDistance
    +
    +
    +"this matches doesn't works properly (too long ?)
    +syn match rasiInvCMYKColor  display contained 'cmyk([^)]*)'
    +syn match rasiCMYKColor     display contained transparent 'cmyk(\s*\(\d\(\.\d*\)\?\|\d\{,3}%\)\s*\(,\s*\(\d\(\.\d*\)\?\|\d\{,3}%\)\s*\)\{3,4})' contains=rasiColorK,rasiNumber,rasiDistance
    +
    +syn case ignore
    +syn keyword rasiNamedColor contained
    +      \ AliceBlue AntiqueWhite Aqua Aquamarine Azure Beige Bisque Black BlanchedAlmond Blue
    +      \ BlueViolet Brown BurlyWood CadetBlue Chartreuse Chocolate Coral CornflowerBlue Cornsilk
    +      \ Crimson Cyan DarkBlue DarkCyan DarkGoldenRod DarkGray DarkGrey DarkGreen DarkKhaki DarkMagenta
    +      \ DarkOliveGreen DarkOrange DarkOrchid DarkRed DarkSalmon DarkSeaGreen Dark SlateBlue
    +      \ DarkSlateGray DarkSlateGrey DarkTurquoise DarkViolet DeepPink DeepSkyBlue DimGray DimGrey
    +      \ DodgerBlue FireBrick FloralWhite ForestGreen Fuchsia Gainsboro GhostWhite Gold GoldenRod
    +      \ Gray Grey Green GreenYellow HoneyDew HotPink IndianRed Indigo Ivory Khaki Lavender
    +      \ LavenderBlush LawnGreen LemonChiffon LightBlue LightCoral LightCyan LightGoldenRodYellow
    +      \ LightGray LightGrey LightGreen LightPink LightSalmon LightSeaGreen LightSkyBlue LightSlateGray
    +      \ LightSlateGrey LightSteelBlue LightYellow Lime LimeGreen Linen Magenta Maroon MediumAquaMarine
    +      \ MediumBlue MediumOrchid MediumPurple MediumSeaGreen MediumSlateBlue MediumSpringGreen
    +      \ MediumTurquoise MediumVioletRed MidnightBlue MintCream MistyRose Moccasin NavajoWhite Navy
    +      \ OldLace Olive OliveDrab Orange OrangeRed Orchid PaleGoldenRod PaleGreen PaleTurquoise
    +      \ PaleVioletRed PapayaWhip PeachPuff Peru Pink Plum PowderBlue Purple RebeccaPurple Red
    +      \ RosyBrown RoyalBlue SaddleBrown Salmon SandyBrown SeaGreen SeaShell Sienna Silver SkyBlue
    +      \ SlateBlue SlateGray SlateGrey Snow SpringGreen SteelBlue Tan Teal Thistle Tomato Turquoise
    +      \ Violet Wheat White WhiteSmoke Yellow YellowGreen transparent[] "uses `[]` to escape keyword
    +
    +syn cluster rasiColors        add=rasiHexColor,rasiRGBColor,rasiHSLColor,rasiCMYKColor,rasiNamedColor
    +syn cluster rasiColors        add=rasiInvHexColor,rasiInvRGBColor,rasiInvHSLColor,rasiInvCMYKColor
    +
    +syn cluster rasiPropertyVals  add=@rasiColors
    +" }}}
    +
    +" Text-Style {{{
    +syn keyword rasiTextStyle contained bold italic underline strikethrough none
    +
    +syn cluster rasiPropertyVals  add=rasiTextStyle
    +" }}}
    +
    +" Line-Style {{{
    +syn keyword rasiLineStyle contained dash solid
    +
    +syn cluster rasiPropertyVals  add=rasiLineStyle
    +" }}}
    +
    +" Distance {{{
    +syn match rasiDistanceUnit    display contained '\(px\|em\|ch\|%\|mm\)'
    +
    +syn match rasiInvDistance     display contained '[+-]\?\d\+\.\d\+\(px\|mm\)'
    +syn match rasiDistance        display contained transparent '[-+]\?\d\+\(px\|mm\)' contains=rasiDistanceUnit,rasiNumber
    +syn match rasiDistance        display contained transparent '[+-]\?\d\+\(\.\d\+\)\?\(em\|ch\|%\)' contains=rasiDistanceUnit,rasiNumber
    +
    +syn keyword rasiDistanceCalc  contained calc nextgroup=rasiDistanceCalcBody
    +syn region rasiDistanceCalcBody display contained start=+(+ end=+)+ contains=rasiDistanceCalcOp,rasiDistance,rasiInvDistance
    +syn match rasiDistanceCalcOp  display contained '\(+\|-\|/\|\*\|%\|min\|max\)'
    +
    +syn cluster rasiPropertyVals  add=rasiInvDistance,rasiDistance,rasiDistanceCalc
    +" }}}
    +
    +" Position {{{
    +syn keyword rasiPosition    contained center east north west south
    +
    +syn cluster rasiPropertyVals  add=rasiPosition
    +" }}}
    +
    +" Orientation {{{
    +syn keyword rasiOrientation   contained horizontal vertical
    +
    +syn cluster rasiPropertyVals  add=rasiOrientation
    +" }}}
    +
    +" Cursor {{{
    +syn keyword rasiCursor        contained default pointer text
    +
    +syn cluster rasiPropertyVals  add=rasiCursor
    +" }}}
    +
    +" Keyword List {{{
    +syn region rasiKeywordList    contained start=+\[+ end=+\]+ contains=rasiPropertyIdRef
    +
    +syn cluster rasiPropertyVals  add=rasiKeywordList
    +" }}}
    +
    +" Inherit {{{
    +syn keyword rasiInherit       contained inherit children
    +
    +syn cluster rasiPropertyVals  add=rasiInherit
    +" }}}
    +
    +syn match rasiGlobalImport    display '^\s*@\(import\|theme\)' nextgroup=rasiString skipwhite
    +
    +" Section {{{
    +" syn region rasiSection transparent start='^[^{]\+{'me=e-1 end='}' contains=rasiSectionOpenning,rasiSectionContent
    +syn match rasiSectionOpenning transparent '^[^{]\+{'me=e-1 contains=rasiGlobalSection,rasiWidgetName,rasiGlobalMedia nextgroup=rasiThemeSectionContent
    +" syn match rasiThemeInnerSectionOpenning transparent '^[^:${]\+{'me=e-1 contains=rasiWidgetName nextgroup=rasiThemeInnerSectionContent contained
    +
    +syn match rasiGlobalMedia     display contained '^\s*@media' nextgroup=rasiInvMediaBody,rasiMediaBody skipwhite
    +syn match rasiInvMediaBody    display contained '([^)]*)'
    +syn match rasiMediaBody       display contained '(\s*[a-z-]\+\s*:\s*\d\+\(px\|mm\)\?\s*)' contains=rasiMediaK,rasiNumber,rasiDistance
    +syn keyword rasiMediaK        contained min-width max-width min-height max-height min-aspect-ratio max-aspect-ratio monitor-id
    +
    +syn match rasiGlobalSection   display contained '^*'
    +syn match rasiWidgetName      display contained '[a-zA-Z0-9-]\+' nextgroup=rasiVisibleMod skipwhite
    +
    +syn keyword rasiVisibleMod    contained normal selected alternate nextgroup=rasiVisibleMod,rasiStateWrapper skipwhite
    +syn match rasiStateWrapper    display contained transparent '\.\(normal\|active\|urgent\)' contains=rasiState
    +syn keyword rasiState         contained normal active urgent
    +
    +
    +syn region  rasiThemeSectionContent transparent start="{" end="}" contains=rasiProperty,rasiComment,rasiCommentL,rasiSectionOpenning contained
    +" syn region  rasiThemeInnerSectionContent transparent start="{" end="}" contains=rasiProperty,rasiComment,rasiCommentL,rasiThemeInnerSectionOpenning contained
    +
    +syn match rasiProperty transparent '^\s*\S\+\s*:.*;\s*$' keepend contained contains=rasiPropertyId,rasiInvPropertyId,rasiPropertyVal,rasiComment,rasiCommentL
    +syn match rasiInvPropertyId '^\([^:]\&[^/]\{2}\)*:'me=e-1 contained
    +syn match rasiPropertyId  '^\s*[0-9a-zA-Z-]\+\s*:'me=e-1 contained
    +syn match rasiInvPropertyVal ':[^;];\s*\S\+\s*$'ms=s+1,hs=s+1
    +syn match rasiPropertyVal ':\s*[^;]\+;\s*$'ms=s+1,hs=s+1 contained contains=@rasiPropertyVals
    +" }}}
    +
    +" Comment {{{
    +syn cluster rasiCommentGroup  contains=rasiTodo,rasiBadContinuation
    +
    +syn region rasiCommentL       start="//" skip="\\$" end="$" keepend contains=@rasiCommentGroup,@Spell
    +syn region rasiComment        start="/\*" end="\*/" contains=@rasiCommentGroup,rasiCommentStartError,@Spell fold extend
    +
    +syn match rasiCommentError    display '\*/'
    +
    +syn keyword rasiTodo          contained TODO FIXME XXX NOTE
    +
    +if exists("rasi_minlines")
    +  let b:rasi_minlines = rasi_minlines
    +else
    +  let b:rasi_minlines = 50
    +endif
    +exec "syn sync ccomment rasiComment minlines=" . b:rasi_minlines
    +" }}}
    +
    +
    +
    +" Highlighting: {{{
    +hi def link rasiError           Error
    +
    +hi def link rasiTodo            Todo
    +hi def link rasiComment         Comment
    +hi def link rasiCommentStart    rasiComment
    +hi def link rasiCommentL        rasiComment
    +hi def link rasiCommentError    rasiError
    +
    +hi def link rasiString          String
    +hi def link rasiNumber          Number
    +hi def link rasiBool            Boolean
    +
    +hi def link rasiImageK          Function
    +hi def link rasiImageScale      Keyword
    +hi def link rasiImageDirection  Keyword
    +hi def link rasiImageUnit       Type
    +hi def link rasiInvImage        rasiError
    +
    +hi def link rasiHexColor        Number
    +hi def link rasiColorK          Function
    +hi def link rasiNamedColor      Number
    +hi def link rasiInvColor        rasiError
    +hi def link rasiInvHexColor     rasiInvColor
    +hi def link rasiInvRGBColor     rasiInvColor
    +hi def link rasiInvHSLColor     rasiInvColor
    +hi def link rasiInvCMYKColor    rasiInvColor
    +
    +hi def link rasiTextStyle       Keyword
    +hi def link rasiLineStyle       Keyword
    +
    +hi def link rasiDistanceUnit    Type
    +hi def link rasiDistanceCalc    Function
    +hi def link rasiDistanceCalcOp  Operator
    +hi def link rasiInvDistance     rasiError
    +
    +hi def link rasiPosition        Keyword
    +hi def link rasiOrientation     Keyword
    +hi def link rasiCursor          Keyword
    +
    +hi def link rasiReference       Identifier
    +hi def link rasiPropertyIdRef   Identifier
    +hi def link rasiVarReferenceK   Function
    +hi def link rasiInvVarReference rasiError
    +
    +hi def link rasiEnv             Identifier
    +hi def link rasiEnvRef          Identifier
    +hi def link rasiEnvVarK         Function
    +hi def link rasiInvEnv          rasiError
    +hi def link rasiInvEnvVar       rasiError
    +
    +hi def link rasiWidgetName      StorageClass
    +hi def link rasiGlobalSection   StorageClass
    +hi def link rasiVisibleMod      Type
    +hi def link rasiState           Tag
    +
    +hi def link rasiInherit         Identifier
    +
    +hi def link rasiGlobalImport    Include
    +
    +hi def link rasiGlobalMedia     Preproc
    +hi def link rasiMediaK          Keyword
    +hi def link rasiInvMediaBody    rasiError
    +
    +hi def link rasiPropertyId      Identifier
    +hi def link rasiInvProperty     rasiError
    +hi def link rasiInvPropertyId   rasiError
    +hi def link rasiInvPropertyVal  rasiError
    +" }}}
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim:ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/ratpoison.vim b/git/usr/share/vim/vim92/syntax/ratpoison.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2322e856a41279e81e31afdf3d085a86a52bd303
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ratpoison.vim
    @@ -0,0 +1,275 @@
    +" Vim syntax file
    +" Language:	Ratpoison configuration/commands file ( /etc/ratpoisonrc ~/.ratpoisonrc )
    +" Maintainer:	Magnus Woldrich 
    +" URL:		http://github.com/trapd00r/vim-syntax-ratpoison
    +" Last Change:	2021-04-12 13:46:04
    +" Previous Maintainer:	Doug Kearns 
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn match   ratpoisonComment	"^\s*#.*$"		contains=ratpoisonTodo
    +
    +syn keyword ratpoisonTodo	TODO NOTE FIXME XXX	contained
    +
    +syn case ignore
    +syn keyword ratpoisonBooleanArg	on off			contained
    +syn case match
    +
    +syn keyword ratpoisonCommandArg abort addhook alias banish chdir		contained
    +syn keyword ratpoisonCommandArg clrunmanaged cnext colon compat cother		contained
    +syn keyword ratpoisonCommandArg cprev curframe dedicate definekey delete	contained
    +syn keyword ratpoisonCommandArg delkmap describekey echo escape exec		contained
    +syn keyword ratpoisonCommandArg fdump focus focusdown focuslast focusleft	contained
    +syn keyword ratpoisonCommandArg focusprev focusright focusup frestore fselect	contained
    +syn keyword ratpoisonCommandArg gdelete getenv getsel gmerge gmove		contained
    +syn keyword ratpoisonCommandArg gnew gnewbg gnext gprev gravity			contained
    +syn keyword ratpoisonCommandArg groups gselect help hsplit inext		contained
    +syn keyword ratpoisonCommandArg info iother iprev kill lastmsg			contained
    +syn keyword ratpoisonCommandArg license link listhook meta msgwait		contained
    +syn keyword ratpoisonCommandArg newkmap newwm next nextscreen number		contained
    +syn keyword ratpoisonCommandArg only other prev prevscreen prompt		contained
    +syn keyword ratpoisonCommandArg putsel quit ratclick rathold ratrelwarp		contained
    +syn keyword ratpoisonCommandArg ratwarp readkey redisplay redo remhook		contained
    +syn keyword ratpoisonCommandArg remove resize restart rudeness sdump		contained
    +syn keyword ratpoisonCommandArg select set setenv sfdump shrink			contained
    +syn keyword ratpoisonCommandArg source sselect startup_message time title	contained
    +syn keyword ratpoisonCommandArg tmpwm unalias undefinekey undo unmanage		contained
    +syn keyword ratpoisonCommandArg unsetenv verbexec version vsplit warp		contained
    +syn keyword ratpoisonCommandArg windows framefmt infofmt			contained
    +
    +syn match   ratpoisonGravityArg "\<\(n\|north\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(nw\|northwest\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(ne\|northeast\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(w\|west\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(c\|center\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(e\|east\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(s\|south\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(sw\|southwest\)\>"	contained
    +syn match   ratpoisonGravityArg "\<\(se\|southeast\)\>"	contained
    +syn case match
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(F[1-9][0-9]\=\|\(\a\|\d\)\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(space\|exclam\|quotedbl\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(numbersign\|dollar\|percent\|ampersand\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(apostrophe\|quoteright\|parenleft\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(parenright\|asterisk\|plus\|comma\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(minus\|period\|slash\|colon\|semicolon\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(less\|equal\|greater\|question\|at\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(bracketleft\|backslash\|bracketright\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(asciicircum\|underscore\|grave\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(quoteleft\|braceleft\|bar\|braceright\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(asciitilde\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(BackSpace\|Tab\|Linefeed\|Clear\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Return\|Pause\|Scroll_Lock\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Sys_Req\|Escape\|Delete\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Home\|Left\|Up\|Right\|Down\|Prior\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Page_Up\|Next\|Page_Down\|End\|Begin\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Select\|Print\|Execute\|Insert\|Undo\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Redo\|Menu\|Find\|Cancel\|Help\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=\(Break\|Mode_switch\|script_switch\|Num_Lock\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(Space\|Tab\|Enter\|F[1234]\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(Home\|Left\|Up\|Right\|Down\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(Prior\|Page_Up\|Next\|Page_Down\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(End\|Begin\|Insert\|Delete\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(Equal\|Multiply\|Add\|Separator\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +syn match   ratpoisonKeySeqArg  "\<\([CMASH]\(-[CMASH]\)\{,4}-\)\=KP_\(Subtract\|Decimal\|Divide\|\d\)\>" contained nextgroup=ratpoisonCommandArg skipwhite
    +
    +syn match   ratpoisonHookArg    "\<\(key\|switchwin\|switchframe\|switchgroup\|quit\|restart\)\>" contained
    +
    +syn match   ratpoisonNumberArg  "\<\d\+\>"	contained nextgroup=ratpoisonNumberArg skipwhite
    +
    +syn keyword ratpoisonSetArg	barborder	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	bargravity	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	barpadding	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	bgcolor
    +syn keyword ratpoisonSetArg	border		contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	fgcolor
    +syn keyword ratpoisonSetArg	framefmt	contained nextgroup=ratpoisonWinFmtArg
    +syn keyword ratpoisonSetArg	fwcolor
    +syn keyword ratpoisonSetArg	framemsgwait	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	gravity 	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	bwcolor
    +syn keyword ratpoisonSetArg	gravity	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	historysize
    +syn keyword ratpoisonSetArg	historycompaction
    +syn keyword ratpoisonSetArg	historyexpansion
    +syn keyword ratpoisonSetArg	infofmt         contained nextgroup=ratpoisonWinFmtArg
    +syn keyword ratpoisonSetArg	topkmap
    +syn keyword ratpoisonSetArg	barinpadding
    +syn keyword ratpoisonSetArg	font
    +syn keyword ratpoisonSetArg	framesels
    +syn keyword ratpoisonSetArg	maxundos
    +syn keyword ratpoisonSetArg	inputwidth	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	maxsizegravity	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	msgwait	        contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	padding		contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	resizeunit	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	startup_message
    +syn keyword ratpoisonSetArg	transgravity	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	waitcursor	contained nextgroup=ratpoisonNumberArg
    +syn keyword ratpoisonSetArg	winfmt		contained nextgroup=ratpoisonWinFmtArg
    +syn keyword ratpoisonSetArg	wingravity	contained nextgroup=ratpoisonGravityArg
    +syn keyword ratpoisonSetArg	winliststyle	contained nextgroup=ratpoisonWinListArg
    +syn keyword ratpoisonSetArg	winname		contained nextgroup=ratpoisonWinNameArg
    +
    +syn match   ratpoisonWinFmtArg  "%[nstacil]"			contained nextgroup=ratpoisonWinFmtArg skipwhite
    +syn match   ratpoisonFrameFmtArg  "%[nstacil]"			contained nextgroup=ratpoisonWinFmtArg skipwhite
    +syn match   ratpoisonInfoFmtArg  "%[nstacil]"			contained nextgroup=ratpoisonWinFmtArg skipwhite
    +
    +syn match   ratpoisonWinListArg "\<\(row\|column\)\>"		contained
    +
    +syn match   ratpoisonWinNameArg "\<\(name\|title\|class\)\>"	contained
    +
    +syn match   ratpoisonDefCommand		"^\s*set\s*"			nextgroup=ratpoisonSetArg
    +syn match   ratpoisonDefCommand		"^\s*defbarborder\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*defbargravity\s*"		nextgroup=ratpoisonGravityArg
    +syn match   ratpoisonDefCommand		"^\s*defbarpadding\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*defbgcolor\s*"
    +syn match   ratpoisonDefCommand		"^\s*defborder\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*deffgcolor\s*"
    +syn match   ratpoisonDefCommand		"^\s*deffont\s*"
    +syn match   ratpoisonDefCommand		"^\s*defframefmt\s*"		nextgroup=ratpoisonWinFmtArg
    +syn match   ratpoisonDefCommand		"^\s*defframesels\s*"
    +syn match   ratpoisonDefCommand		"^\s*definputwidth\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*defmaxsizegravity\s*"	nextgroup=ratpoisonGravityArg
    +syn match   ratpoisonDefCommand		"^\s*defpadding\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*defresizeunit\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*deftransgravity\s*"	nextgroup=ratpoisonGravityArg
    +syn match   ratpoisonDefCommand		"^\s*defwaitcursor\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonDefCommand		"^\s*defwinfmt\s*"		nextgroup=ratpoisonWinFmtArg
    +syn match   ratpoisonDefCommand		"^\s*defwingravity\s*"		nextgroup=ratpoisonGravityArg
    +syn match   ratpoisonDefCommand		"^\s*defwinliststyle\s*"	nextgroup=ratpoisonWinListArg
    +syn match   ratpoisonDefCommand		"^\s*defwinname\s*"		nextgroup=ratpoisonWinNameArg
    +syn match   ratpoisonDefCommand		"^\s*msgwait\s*"		nextgroup=ratpoisonNumberArg
    +
    +syn match   ratpoisonStringCommand	"^\s*\zsaddhook\ze\s*"		nextgroup=ratpoisonHookArg
    +syn match   ratpoisonStringCommand	"^\s*\zsalias\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsbind\ze\s*"		nextgroup=ratpoisonKeySeqArg
    +syn match   ratpoisonStringCommand	"^\s*\zschdir\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zscolon\ze\s*"		nextgroup=ratpoisonCommandArg
    +syn match   ratpoisonStringCommand	"^\s*\zsdedicate\ze\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonStringCommand	"^\s*\zsdefinekey\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsdelkmap\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsdescribekey\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsecho\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsescape\ze\s*"		nextgroup=ratpoisonKeySeqArg
    +syn match   ratpoisonStringCommand	"^\s*\zsexec\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsfdump\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsfrestore\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsgdelete\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsgetenv\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsgravity\ze\s*"		nextgroup=ratpoisonGravityArg
    +syn match   ratpoisonStringCommand	"^\s*\zsgselect\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zslink\ze\s*"		nextgroup=ratpoisonKeySeqArg
    +syn match   ratpoisonStringCommand	"^\s*\zslisthook\ze\s*"		nextgroup=ratpoisonHookArg
    +syn match   ratpoisonStringCommand	"^\s*\zsnewkmap\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsnewwm\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsnumber\ze\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonStringCommand	"^\s*\zsprompt\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsratwarp\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsratrelwarp\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsratclick\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsrathold\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsreadkey\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsremhook\ze\s*"		nextgroup=ratpoisonHookArg
    +syn match   ratpoisonStringCommand	"^\s*\zsresize\ze\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonStringCommand	"^\s*\zsrudeness\ze\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonStringCommand	"^\s*\zsselect\ze\s*"		nextgroup=ratpoisonNumberArg
    +syn match   ratpoisonStringCommand	"^\s*\zssetenv\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zssource\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zssselect\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsstartup_message\ze\s*"	nextgroup=ratpoisonBooleanArg
    +syn match   ratpoisonStringCommand	"^\s*\zstitle\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zstmpwm\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsunalias\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsunbind\ze\s*"		nextgroup=ratpoisonKeySeqArg
    +syn match   ratpoisonStringCommand	"^\s*\zsundefinekey\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsunmanage\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsunsetenv\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zsverbexec\ze\s*"
    +syn match   ratpoisonStringCommand	"^\s*\zswarp\ze\s*"		nextgroup=ratpoisonBooleanArg
    +
    +syn match   ratpoisonVoidCommand	"^\s*\zsabort\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsbanish\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsclrunmanaged\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zscnext\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zscompat\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zscother\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zscprev\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zscurframe\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsdelete\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocusdown\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocuslast\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocusleft\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocusprev\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocusright\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocusup\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfocus\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsfselect\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgetsel\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgmerge\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgmove\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgnewbg\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgnew\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgnext\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgprev\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsgroups\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zshelp\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zshsplit\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsinext\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsinfo\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsiother\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsiprev\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zskill\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zslastmsg\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zslicense\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsmeta\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsnextscreen\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsnext\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsonly\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsother\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsprevscreen\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsprev\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsputsel\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsquit\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsredisplay\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsredo\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsremove\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsrestart\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zssdump\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zssfdump\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsshrink\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zssplit\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zstime\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsundo\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsversion\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zsvsplit\ze\s*$"
    +syn match   ratpoisonVoidCommand	"^\s*\zswindows\ze\s*$"
    +
    +hi def link ratpoisonBooleanArg	Boolean
    +hi def link ratpoisonCommandArg	Keyword
    +hi def link ratpoisonComment	Comment
    +hi def link ratpoisonDefCommand	Identifier
    +hi def link ratpoisonFrameFmtArg	Special
    +hi def link ratpoisonGravityArg	Constant
    +hi def link ratpoisonInfoFmtArg    Special
    +hi def link ratpoisonKeySeqArg	Special
    +hi def link ratpoisonNumberArg	Number
    +hi def link ratpoisonSetArg	Keyword
    +hi def link ratpoisonStringCommand	Identifier
    +hi def link ratpoisonTodo		Todo
    +hi def link ratpoisonVoidCommand	Identifier
    +hi def link ratpoisonWinFmtArg	Special
    +hi def link ratpoisonWinNameArg	Constant
    +hi def link ratpoisonWinListArg	Constant
    +
    +let b:current_syntax = "ratpoison"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/rc.vim b/git/usr/share/vim/vim92/syntax/rc.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..d69edd00fd4e3f0e0affdb3f7f26bd43da3ef647
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rc.vim
    @@ -0,0 +1,191 @@
    +" Vim syntax file
    +" Language:	M$ Resource files (*.rc)
    +" Maintainer:	Christian Brabandt
    +" Last Change:	20220116
    +" Repository:   https://github.com/chrisbra/vim-rc-syntax
    +" License:	Vim (see :h license)
    +" Previous Maintainer:	Heiko Erhardt 
    +
    +" This file is based on the c.vim
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Common RC keywords
    +syn keyword rcLanguage LANGUAGE
    +
    +syn keyword rcMainObject TEXTINCLUDE VERSIONINFO BITMAP ICON CURSOR CURSOR
    +syn keyword rcMainObject MENU ACCELERATORS TOOLBAR DIALOG
    +syn keyword rcMainObject STRINGTABLE MESSAGETABLE RCDATA DLGINIT DESIGNINFO
    +
    +syn keyword rcSubObject POPUP MENUITEM SEPARATOR
    +syn keyword rcSubObject CONTROL LTEXT CTEXT RTEXT EDITTEXT
    +syn keyword rcSubObject BUTTON PUSHBUTTON DEFPUSHBUTTON GROUPBOX LISTBOX COMBOBOX
    +syn keyword rcSubObject FILEVERSION PRODUCTVERSION FILEFLAGSMASK FILEFLAGS FILEOS
    +syn keyword rcSubObject FILETYPE FILESUBTYPE
    +
    +syn keyword rcCaptionParam CAPTION
    +syn keyword rcParam CHARACTERISTICS CLASS STYLE EXSTYLE VERSION FONT
    +
    +syn keyword rcStatement BEGIN END BLOCK VALUE
    +
    +syn keyword rcCommonAttribute PRELOAD LOADONCALL FIXED MOVEABLE DISCARDABLE PURE IMPURE
    +
    +syn keyword rcAttribute WS_OVERLAPPED WS_POPUP WS_CHILD WS_MINIMIZE WS_VISIBLE WS_DISABLED WS_CLIPSIBLINGS
    +syn keyword rcAttribute WS_CLIPCHILDREN WS_MAXIMIZE WS_CAPTION WS_BORDER WS_DLGFRAME WS_VSCROLL WS_HSCROLL
    +syn keyword rcAttribute WS_SYSMENU WS_THICKFRAME WS_GROUP WS_TABSTOP WS_MINIMIZEBOX WS_MAXIMIZEBOX WS_TILED
    +syn keyword rcAttribute WS_ICONIC WS_SIZEBOX WS_TILEDWINDOW WS_OVERLAPPEDWINDOW WS_POPUPWINDOW WS_CHILDWINDOW
    +syn keyword rcAttribute WS_EX_DLGMODALFRAME WS_EX_NOPARENTNOTIFY WS_EX_TOPMOST WS_EX_ACCEPTFILES
    +syn keyword rcAttribute WS_EX_TRANSPARENT WS_EX_MDICHILD WS_EX_TOOLWINDOW WS_EX_WINDOWEDGE WS_EX_CLIENTEDGE
    +syn keyword rcAttribute WS_EX_CONTEXTHELP WS_EX_RIGHT WS_EX_LEFT WS_EX_RTLREADING WS_EX_LTRREADING
    +syn keyword rcAttribute WS_EX_LEFTSCROLLBAR WS_EX_RIGHTSCROLLBAR WS_EX_CONTROLPARENT WS_EX_STATICEDGE
    +syn keyword rcAttribute WS_EX_APPWINDOW WS_EX_OVERLAPPEDWINDOW WS_EX_PALETTEWINDOW
    +syn keyword rcAttribute ES_LEFT ES_CENTER ES_RIGHT ES_MULTILINE ES_UPPERCASE ES_LOWERCASE ES_PASSWORD
    +syn keyword rcAttribute ES_AUTOVSCROLL ES_AUTOHSCROLL ES_NOHIDESEL ES_OEMCONVERT ES_READONLY ES_WANTRETURN
    +syn keyword rcAttribute ES_NUMBER
    +syn keyword rcAttribute BS_PUSHBUTTON BS_DEFPUSHBUTTON BS_CHECKBOX BS_AUTOCHECKBOX BS_RADIOBUTTON BS_3STATE
    +syn keyword rcAttribute BS_AUTO3STATE BS_GROUPBOX BS_USERBUTTON BS_AUTORADIOBUTTON BS_OWNERDRAW BS_LEFTTEXT
    +syn keyword rcAttribute BS_TEXT BS_ICON BS_BITMAP BS_LEFT BS_RIGHT BS_CENTER BS_TOP BS_BOTTOM BS_VCENTER
    +syn keyword rcAttribute BS_PUSHLIKE BS_MULTILINE BS_NOTIFY BS_FLAT BS_RIGHTBUTTON
    +syn keyword rcAttribute SS_LEFT SS_CENTER SS_RIGHT SS_ICON SS_BLACKRECT SS_GRAYRECT SS_WHITERECT
    +syn keyword rcAttribute SS_BLACKFRAME SS_GRAYFRAME SS_WHITEFRAME SS_USERITEM SS_SIMPLE SS_LEFTNOWORDWRAP
    +syn keyword rcAttribute SS_OWNERDRAW SS_BITMAP SS_ENHMETAFILE SS_ETCHEDHORZ SS_ETCHEDVERT SS_ETCHEDFRAME
    +syn keyword rcAttribute SS_TYPEMASK SS_NOPREFIX SS_NOTIFY SS_CENTERIMAGE SS_RIGHTJUST SS_REALSIZEIMAGE
    +syn keyword rcAttribute SS_SUNKEN SS_ENDELLIPSIS SS_PATHELLIPSIS SS_WORDELLIPSIS SS_ELLIPSISMASK
    +syn keyword rcAttribute DS_ABSALIGN DS_SYSMODAL DS_LOCALEDIT DS_SETFONT DS_MODALFRAME DS_NOIDLEMSG
    +syn keyword rcAttribute DS_SETFOREGROUND DS_3DLOOK DS_FIXEDSYS DS_NOFAILCREATE DS_CONTROL DS_CENTER
    +syn keyword rcAttribute DS_CENTERMOUSE DS_CONTEXTHELP
    +syn keyword rcAttribute LBS_NOTIFY LBS_SORT LBS_NOREDRAW LBS_MULTIPLESEL LBS_OWNERDRAWFIXED
    +syn keyword rcAttribute LBS_OWNERDRAWVARIABLE LBS_HASSTRINGS LBS_USETABSTOPS LBS_NOINTEGRALHEIGHT
    +syn keyword rcAttribute LBS_MULTICOLUMN LBS_WANTKEYBOARDINPUT LBS_EXTENDEDSEL LBS_DISABLENOSCROLL
    +syn keyword rcAttribute LBS_NODATA LBS_NOSEL LBS_STANDARD
    +syn keyword rcAttribute CBS_SIMPLE CBS_DROPDOWN CBS_DROPDOWNLIST CBS_OWNERDRAWFIXED CBS_OWNERDRAWVARIABLE
    +syn keyword rcAttribute CBS_AUTOHSCROLL CBS_OEMCONVERT CBS_SORT CBS_HASSTRINGS CBS_NOINTEGRALHEIGHT
    +syn keyword rcAttribute CBS_DISABLENOSCROLL CBS_UPPERCASE CBS_LOWERCASE
    +syn keyword rcAttribute SBS_HORZ SBS_VERT SBS_TOPALIGN SBS_LEFTALIGN SBS_BOTTOMALIGN SBS_RIGHTALIGN
    +syn keyword rcAttribute SBS_SIZEBOXTOPLEFTALIGN SBS_SIZEBOXBOTTOMRIGHTALIGN SBS_SIZEBOX SBS_SIZEGRIP
    +syn keyword rcAttribute CCS_TOP CCS_NOMOVEY CCS_BOTTOM CCS_NORESIZE CCS_NOPARENTALIGN CCS_ADJUSTABLE
    +syn keyword rcAttribute CCS_NODIVIDER
    +syn keyword rcAttribute LVS_ICON LVS_REPORT LVS_SMALLICON LVS_LIST LVS_TYPEMASK LVS_SINGLESEL LVS_SHOWSELALWAYS
    +syn keyword rcAttribute LVS_SORTASCENDING LVS_SORTDESCENDING LVS_SHAREIMAGELISTS LVS_NOLABELWRAP
    +syn keyword rcAttribute LVS_EDITLABELS LVS_OWNERDATA LVS_NOSCROLL LVS_TYPESTYLEMASK  LVS_ALIGNTOP LVS_ALIGNLEFT
    +syn keyword rcAttribute LVS_ALIGNMASK LVS_OWNERDRAWFIXED LVS_NOCOLUMNHEADER LVS_NOSORTHEADER LVS_AUTOARRANGE
    +syn keyword rcAttribute TVS_HASBUTTONS TVS_HASLINES TVS_LINESATROOT TVS_EDITLABELS TVS_DISABLEDRAGDROP
    +syn keyword rcAttribute TVS_SHOWSELALWAYS
    +syn keyword rcAttribute TCS_FORCEICONLEFT TCS_FORCELABELLEFT TCS_TABS TCS_BUTTONS TCS_SINGLELINE TCS_MULTILINE
    +syn keyword rcAttribute TCS_RIGHTJUSTIFY TCS_FIXEDWIDTH TCS_RAGGEDRIGHT TCS_FOCUSONBUTTONDOWN
    +syn keyword rcAttribute TCS_OWNERDRAWFIXED TCS_TOOLTIPS TCS_FOCUSNEVER
    +syn keyword rcAttribute ACS_CENTER ACS_TRANSPARENT ACS_AUTOPLAY
    +syn keyword rcStdId IDI_APPLICATION IDI_HAND IDI_QUESTION IDI_EXCLAMATION IDI_ASTERISK IDI_WINLOGO IDI_WINLOGO
    +syn keyword rcStdId IDI_WARNING IDI_ERROR IDI_INFORMATION
    +syn keyword rcStdId IDCANCEL IDABORT IDRETRY IDIGNORE IDYES IDNO IDCLOSE IDHELP IDC_STATIC
    +
    +" Common RC keywords
    +
    +" Common RC keywords
    +syn keyword rcTodo contained	TODO FIXME XXX
    +
    +" String and Character constants
    +" Highlight special characters (those which have a backslash) differently
    +syn match rcSpecial contained	"\\[0-7][0-7][0-7]\=\|\\."
    +syn region rcString		start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rcSpecial
    +syn match rcCharacter		"'[^\\]'"
    +syn match rcSpecialCharacter	"'\\.'"
    +syn match rcSpecialCharacter	"'\\[0-7][0-7]'"
    +syn match rcSpecialCharacter	"'\\[0-7][0-7][0-7]'"
    +
    +"catch errors caused by wrong parenthesis
    +syn region rcParen		transparent start='(' end=')' contains=ALLBUT,rcParenError,rcIncluded,rcSpecial,rcTodo
    +syn match rcParenError		")"
    +syn match rcInParen contained	"[{}]"
    +
    +"integer number, or floating point number without a dot and with "f".
    +syn case ignore
    +syn match rcNumber		"\<\d\+\(u\=l\=\|lu\|f\)\>"
    +"floating point number, with dot, optional exponent
    +syn match rcFloat		"\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
    +"floating point number, starting with a dot, optional exponent
    +syn match rcFloat		"\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
    +"floating point number, without dot, with exponent
    +syn match rcFloat		"\<\d\+e[-+]\=\d\+[fl]\=\>"
    +"hex number
    +syn match rcNumber		"\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
    +"syn match rcIdentifier	"\<[a-z_][a-z0-9_]*\>"
    +syn case match
    +" flag an octal number with wrong digits
    +syn match rcOctalError		"\<0[0-7]*[89]"
    +
    +if exists("rc_comment_strings")
    +  " A comment can contain rcString, rcCharacter and rcNumber.
    +  " But a "*/" inside a rcString in a rcComment DOES end the comment!  So we
    +  " need to use a special type of rcString: rcCommentString, which also ends on
    +  " "*/", and sees a "*" at the start of the line as comment again.
    +  " Unfortunately this doesn't very well work for // type of comments :-(
    +  syntax match rcCommentSkip	contained "^\s*\*\($\|\s\+\)"
    +  syntax region rcCommentString	contained start=+"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=rcSpecial,rcCommentSkip
    +  syntax region rcComment2String	contained start=+"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=rcSpecial
    +  syntax region rcComment	start="/\*" end="\*/" contains=rcTodo,rcCommentString,rcCharacter,rcNumber,rcFloat
    +  syntax match  rcComment	"//.*" contains=rcTodo,rcComment2String,rcCharacter,rcNumber
    +else
    +  syn region rcComment		start="/\*" end="\*/" contains=rcTodo
    +  syn match rcComment		"//.*" contains=rcTodo
    +endif
    +syntax match rcCommentError	"\*/"
    +
    +syn region rcPreCondit	start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=rcComment,rcString,rcCharacter,rcNumber,rcCommentError
    +syn region rcIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+
    +syn match rcIncluded contained "<[^>]*>"
    +syn match rcInclude		"^\s*#\s*include\>\s*["<]" contains=rcIncluded
    +"syn match rcLineSkip	"\\$"
    +syn region rcDefine		start="^\s*#\s*\(define\>\|undef\>\)" skip="\\$" end="$" contains=ALLBUT,rcPreCondit,rcIncluded,rcInclude,rcDefine,rcInParen
    +syn region rcPreProc		start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,rcPreCondit,rcIncluded,rcInclude,rcDefine,rcInParen
    +
    +syn sync ccomment rcComment minlines=10
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link rcCharacter	Character
    +hi def link rcSpecialCharacter rcSpecial
    +hi def link rcNumber	Number
    +hi def link rcFloat	Float
    +hi def link rcOctalError	rcError
    +hi def link rcParenError	rcError
    +hi def link rcInParen	rcError
    +hi def link rcCommentError	rcError
    +hi def link rcInclude	Include
    +hi def link rcPreProc	PreProc
    +hi def link rcDefine	Macro
    +hi def link rcIncluded	rcString
    +hi def link rcError	Error
    +hi def link rcPreCondit	PreCondit
    +hi def link rcCommentString rcString
    +hi def link rcComment2String rcString
    +hi def link rcCommentSkip	rcComment
    +hi def link rcString	String
    +hi def link rcComment	Comment
    +hi def link rcSpecial	SpecialChar
    +hi def link rcTodo	Todo
    +
    +hi def link rcAttribute	rcCommonAttribute
    +hi def link rcStdId	rcStatement
    +hi def link rcStatement	Statement
    +
    +hi def link rcLanguage	Constant
    +hi def link rcCaptionParam Constant
    +hi def link rcCommonAttribute Constant
    +
    +hi def link rcMainObject Identifier
    +hi def link rcSubObject	Define
    +hi def link rcParam	Constant
    +hi def link rcStatement	Statement
    +"
    +"hi def link rcIdentifier Identifier
    +
    +
    +
    +let b:current_syntax = "rc"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/rcs.vim b/git/usr/share/vim/vim92/syntax/rcs.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..5a34802adada1728a604bfb52e1de85f86f05b39
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rcs.vim
    @@ -0,0 +1,63 @@
    +" Vim syntax file
    +" Language:     RCS file
    +" Maintainer:   Dmitry Vasiliev 
    +" URL:          https://github.com/hdima/vim-scripts/blob/master/syntax/rcs.vim
    +" Last Change:  2012-02-11
    +" Filenames:    *,v
    +" Version:      1.12
    +
    +" Options:
    +"   rcs_folding = 1   For folding strings
    +
    +" quit when a syntax file was already loaded.
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" RCS file must end with a newline.
    +syn match rcsEOFError   ".\%$" containedin=ALL
    +
    +" Keywords.
    +syn keyword rcsKeyword  head branch access symbols locks strict
    +syn keyword rcsKeyword  comment expand date author state branches
    +syn keyword rcsKeyword  next desc log
    +syn keyword rcsKeyword  text nextgroup=rcsTextStr skipwhite skipempty
    +
    +" Revision numbers and dates.
    +syn match rcsNumber "\<[0-9.]\+\>" display
    +
    +" Strings.
    +if exists("rcs_folding") && has("folding")
    +  " Folded strings.
    +  syn region rcsString  matchgroup=rcsString start="@" end="@" skip="@@" fold contains=rcsSpecial
    +  syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" fold contained contains=rcsSpecial,rcsDiffLines
    +else
    +  syn region rcsString  matchgroup=rcsString start="@" end="@" skip="@@" contains=rcsSpecial
    +  syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" contained contains=rcsSpecial,rcsDiffLines
    +endif
    +syn match rcsSpecial    "@@" contained
    +syn match rcsDiffLines  "[da]\d\+ \d\+$" contained
    +
    +" Synchronization.
    +syn sync clear
    +if exists("rcs_folding") && has("folding")
    +  syn sync fromstart
    +else
    +  " We have incorrect folding if following sync patterns is turned on.
    +  syn sync match rcsSync    grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1
    +  syn sync match rcsSync    grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1
    +endif
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet.
    +
    +hi def link rcsKeyword     Keyword
    +hi def link rcsNumber      Identifier
    +hi def link rcsString      String
    +hi def link rcsTextStr     String
    +hi def link rcsSpecial     Special
    +hi def link rcsDiffLines   Special
    +hi def link rcsEOFError    Error
    +
    +
    +let b:current_syntax = "rcs"
    diff --git a/git/usr/share/vim/vim92/syntax/rcslog.vim b/git/usr/share/vim/vim92/syntax/rcslog.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..18f4593c77843ccdd56dda3e4bbd0daaa8c1dfd1
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rcslog.vim
    @@ -0,0 +1,25 @@
    +" Vim syntax file
    +" Language:	RCS log output
    +" Maintainer:	Joe Karthauser 
    +" Last Change:	2001 May 09
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn match rcslogRevision	"^revision.*$"
    +syn match rcslogFile		"^RCS file:.*"
    +syn match rcslogDate		"^date: .*$"
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link rcslogFile		Type
    +hi def link rcslogRevision	Constant
    +hi def link rcslogDate		Identifier
    +
    +
    +let b:current_syntax = "rcslog"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/readline.vim b/git/usr/share/vim/vim92/syntax/readline.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..3831ae114929b73baf48c5a937be24e7e3ba60dc
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/readline.vim
    @@ -0,0 +1,411 @@
    +" Vim syntax file
    +" Language:             readline(3) configuration file
    +" Maintainer:           Daniel Moch 
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2018-07-26
    +"                       Add new functions for Readline 7 / Bash 4.4
    +"                       (credit: Github user bewuethr)
    +
    +if exists('b:current_syntax')
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +setlocal iskeyword+=-
    +
    +syn match   readlineKey         contained
    +                              \ '\S'
    +                              \ nextgroup=readlineKeyTerminator
    +
    +syn match   readlineBegin       display '^'
    +                              \ nextgroup=readlineComment,
    +                              \           readlineConditional,
    +                              \           readlineInclude,
    +                              \           readlineKeyName,
    +                              \           readlineKey,
    +                              \           readlineKeySeq,
    +                              \           readlineKeyword
    +                              \ skipwhite
    +
    +syn region  readlineComment     contained display oneline
    +                                \ start='#'
    +                                \ end='$'
    +                                \ contains=readlineTodo,
    +                                \          @Spell
    +
    +syn keyword readlineTodo        contained
    +                              \ TODO
    +                              \ FIXME
    +                              \ XXX
    +                              \ NOTE
    +
    +syn match   readlineConditional contained
    +                              \ '$if\>'
    +                              \ nextgroup=readlineTest,
    +                              \           readlineTestApp
    +                              \ skipwhite
    +
    +syn keyword readlineTest        contained
    +                              \ mode
    +                              \ nextgroup=readlineTestModeEq
    +
    +syn match   readlineTestModeEq  contained
    +                              \ '='
    +                              \ nextgroup=readlineEditingMode
    +
    +syn keyword readlineTest        contained
    +                              \ term
    +                              \ nextgroup=readlineTestTermEq
    +
    +syn match   readlineTestTermEq  contained
    +                              \ '='
    +                              \ nextgroup=readlineTestTerm
    +
    +syn match   readlineTestTerm    contained
    +                              \ '\S\+'
    +
    +syn match   readlineTestApp     contained
    +                              \ '\S\+'
    +
    +syn match   readlineConditional contained display
    +                              \ '$\%(else\|endif\)\>'
    +
    +syn match   readlineInclude     contained display
    +                              \ '$include\>'
    +                              \ nextgroup=readlinePath
    +
    +syn match   readlinePath        contained display
    +                              \ '.\+'
    +
    +syn case ignore
    +syn match   readlineKeyName     contained display
    +                              \ nextgroup=readlineKeySeparator,
    +                              \           readlineKeyTerminator
    +                              \ '\%(Control\|Del\|Esc\|Escape\|LFD\|Meta\|Newline\|Ret\|Return\|Rubout\|Space\|Spc\|Tab\)'
    +syn case match
    +
    +syn match   readlineKeySeparator  contained
    +                                \ '-'
    +                                \ nextgroup=readlineKeyName,
    +                                \           readlineKey
    +
    +syn match   readlineKeyTerminator contained
    +                                \ ':'
    +                                \ nextgroup=readlineFunction
    +                                \ skipwhite
    +
    +syn region  readlineKeySeq     contained display oneline
    +                              \ start=+"+
    +                              \ skip=+\\\\\|\\"+
    +                              \ end=+"+
    +                              \ contains=readlineKeyEscape
    +                              \ nextgroup=readlineKeyTerminator
    +
    +syn match   readlineKeyEscape   contained display
    +                              \ +\\\([CM]-\|[e\\"'abdfnrtv]\|\o\{3}\|x\x\{2}\)+
    +
    +syn keyword readlineKeyword     contained
    +                              \ set
    +                              \ nextgroup=readlineVariable
    +                              \ skipwhite
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineBellStyle
    +                              \ skipwhite
    +                              \ bell-style
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineBoolean
    +                              \ skipwhite
    +                              \ bind-tty-special-chars
    +                              \ blink-matching-paren
    +                              \ colored-completion-prefix
    +                              \ colored-stats
    +                              \ completion-ignore-case
    +                              \ completion-map-case
    +                              \ convert-meta
    +                              \ disable-completion
    +                              \ echo-control-characters
    +                              \ enable-bracketed-paste
    +                              \ enable-keypad
    +                              \ enable-meta-key
    +                              \ expand-tilde
    +                              \ history-preserve-point
    +                              \ horizontal-scroll-mode
    +                              \ input-meta
    +                              \ meta-flag
    +                              \ mark-directories
    +                              \ mark-modified-lines
    +                              \ mark-symlinked-directories
    +                              \ match-hidden-files
    +                              \ menu-complete-display-prefix
    +                              \ output-meta
    +                              \ page-completions
    +                              \ print-completions-horizontally
    +                              \ revert-all-at-newline
    +                              \ show-all-if-ambiguous
    +                              \ show-all-if-unmodified
    +                              \ show-mode-in-prompt
    +                              \ skip-completed-text
    +                              \ visible-stats
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineString
    +                              \ skipwhite
    +                              \ comment-begin
    +                              \ isearch-terminators
    +                              \ vi-cmd-mode-string
    +                              \ vi-ins-mode-string
    +                              \ emacs-mode-string
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineNumber
    +                              \ skipwhite
    +                              \ completion-display-width
    +                              \ completion-prefix-display-length
    +                              \ completion-query-items
    +                              \ history-size
    +                              \ keyseq-timeout
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineEditingMode
    +                              \ skipwhite
    +                              \ editing-mode
    +
    +syn keyword readlineVariable    contained
    +                              \ nextgroup=readlineKeymap
    +                              \ skipwhite
    +                              \ keymap
    +
    +syn keyword readlineBellStyle   contained
    +                              \ audible
    +                              \ visible
    +                              \ none
    +
    +syn case ignore
    +syn keyword readlineBoolean     contained
    +                              \ on
    +                              \ off
    +syn case match
    +
    +syn region  readlineString      contained display oneline
    +                              \ matchgroup=readlineStringDelimiter
    +                              \ start=+"+
    +                              \ skip=+\\\\\|\\"+
    +                              \ end=+"+
    +
    +syn match   readlineNumber      contained display
    +                              \ '[+-]\d\+\>'
    +
    +syn keyword readlineEditingMode contained
    +                              \ emacs
    +                              \ vi
    +
    +syn match   readlineKeymap      contained display
    +                              \ 'emacs\%(-\%(standard\|meta\|ctlx\)\)\=\|vi\%(-\%(move\|command\|insert\)\)\='
    +
    +syn keyword readlineFunction    contained
    +                              \ beginning-of-line
    +                              \ end-of-line
    +                              \ forward-char
    +                              \ backward-char
    +                              \ forward-word
    +                              \ backward-word
    +                              \ clear-screen
    +                              \ redraw-current-line
    +                              \
    +                              \ accept-line
    +                              \ previous-history
    +                              \ next-history
    +                              \ beginning-of-history
    +                              \ end-of-history
    +                              \ reverse-search-history
    +                              \ forward-search-history
    +                              \ non-incremental-reverse-search-history
    +                              \ non-incremental-forward-search-history
    +                              \ history-search-forward
    +                              \ history-search-backward
    +                              \ yank-nth-arg
    +                              \ yank-last-arg
    +                              \
    +                              \ delete-char
    +                              \ backward-delete-char
    +                              \ forward-backward-delete-char
    +                              \ quoted-insert
    +                              \ tab-insert
    +                              \ self-insert
    +                              \ transpose-chars
    +                              \ transpose-words
    +                              \ upcase-word
    +                              \ downcase-word
    +                              \ capitalize-word
    +                              \ overwrite-mode
    +                              \
    +                              \ kill-line
    +                              \ backward-kill-line
    +                              \ unix-line-discard
    +                              \ kill-whole-line
    +                              \ kill-word
    +                              \ backward-kill-word
    +                              \ unix-word-rubout
    +                              \ unix-filename-rubout
    +                              \ delete-horizontal-space
    +                              \ kill-region
    +                              \ copy-region-as-kill
    +                              \ copy-backward-word
    +                              \ copy-forward-word
    +                              \ yank
    +                              \ yank-pop
    +                              \
    +                              \ digit-argument
    +                              \ universal-argument
    +                              \
    +                              \ complete
    +                              \ possible-completions
    +                              \ insert-completions
    +                              \ menu-complete
    +                              \ menu-complete-backward
    +                              \ delete-char-or-list
    +                              \
    +                              \ start-kbd-macro
    +                              \ end-kbd-macro
    +                              \ call-last-kbd-macro
    +                              \ print-last-kbd-macro
    +                              \
    +                              \ re-read-init-file
    +                              \ abort
    +                              \ do-uppercase-version
    +                              \ prefix-meta
    +                              \ undo
    +                              \ revert-line
    +                              \ tilde-expand
    +                              \ set-mark
    +                              \ exchange-point-and-mark
    +                              \ character-search
    +                              \ character-search-backward
    +                              \ skip-csi-sequence
    +                              \ insert-comment
    +                              \ dump-functions
    +                              \ dump-variables
    +                              \ dump-macros
    +                              \ emacs-editing-mode
    +                              \ vi-editing-mode
    +                              \
    +                              \ vi-eof-maybe
    +                              \ vi-movement-mode
    +                              \ vi-undo
    +                              \ vi-match
    +                              \ vi-tilde-expand
    +                              \ vi-complete
    +                              \ vi-char-search
    +                              \ vi-redo
    +                              \ vi-search
    +                              \ vi-arg-digit
    +                              \ vi-append-eol
    +                              \ vi-prev-word
    +                              \ vi-change-to
    +                              \ vi-delete-to
    +                              \ vi-end-word
    +                              \ vi-char-search
    +                              \ vi-fetch-history
    +                              \ vi-insert-beg
    +                              \ vi-search-again
    +                              \ vi-put
    +                              \ vi-replace
    +                              \ vi-subst
    +                              \ vi-char-search
    +                              \ vi-next-word
    +                              \ vi-yank-to
    +                              \ vi-first-print
    +                              \ vi-yank-arg
    +                              \ vi-goto-mark
    +                              \ vi-append-mode
    +                              \ vi-prev-word
    +                              \ vi-change-to
    +                              \ vi-delete-to
    +                              \ vi-end-word
    +                              \ vi-char-search
    +                              \ vi-insert-mode
    +                              \ vi-set-mark
    +                              \ vi-search-again
    +                              \ vi-put
    +                              \ vi-change-char
    +                              \ vi-subst
    +                              \ vi-char-search
    +                              \ vi-undo
    +                              \ vi-next-word
    +                              \ vi-delete
    +                              \ vi-yank-to
    +                              \ vi-column
    +                              \ vi-change-case
    +
    +if exists("readline_has_bash")
    +  syn keyword readlineFunction  contained
    +                              \ shell-forward-word
    +                              \ shell-backward-word
    +                              \ shell-expand-line
    +                              \ history-expand-line
    +                              \ magic-space
    +                              \ alias-expand-line
    +                              \ history-and-alias-expand-line
    +                              \ insert-last-argument
    +                              \ operate-and-get-next
    +                              \ forward-backward-delete-char
    +                              \ shell-kill-word
    +                              \ shell-backward-kill-word
    +                              \ delete-char-or-list
    +                              \ complete-filename
    +                              \ possible-filename-completions
    +                              \ complete-username
    +                              \ possible-username-completions
    +                              \ complete-variable
    +                              \ possible-variable-completions
    +                              \ complete-hostname
    +                              \ possible-hostname-completions
    +                              \ complete-command
    +                              \ possible-command-completions
    +                              \ dynamic-complete-history
    +                              \ dabbrev-expand
    +                              \ complete-into-braces
    +                              \ glob-expand-word
    +                              \ glob-list-expansions
    +                              \ display-shell-version
    +                              \ glob-complete-word
    +                              \ edit-and-execute-command
    +endif
    +
    +hi def link readlineKey           readlineKeySeq
    +hi def link readlineComment       Comment
    +hi def link readlineTodo          Todo
    +hi def link readlineConditional   Conditional
    +hi def link readlineTest          Type
    +hi def link readlineDelimiter     Delimiter
    +hi def link readlineTestModeEq    readlineEq
    +hi def link readlineTestTermEq    readlineEq
    +hi def link readlineTestTerm      readlineString
    +hi def link readlineTestAppEq     readlineEq
    +hi def link readlineTestApp       readlineString
    +hi def link readlineInclude       Include
    +hi def link readlinePath          String
    +hi def link readlineKeyName       SpecialChar
    +hi def link readlineKeySeparator  readlineKeySeq
    +hi def link readlineKeyTerminator readlineDelimiter
    +hi def link readlineKeySeq        String
    +hi def link readlineKeyEscape     SpecialChar
    +hi def link readlineKeyword       Keyword
    +hi def link readlineVariable      Identifier
    +hi def link readlineBellStyle     Constant
    +hi def link readlineBoolean       Boolean
    +hi def link readlineString        String
    +hi def link readlineStringDelimiter readlineString
    +hi def link readlineNumber        Number
    +hi def link readlineEditingMode   Constant
    +hi def link readlineKeymap        Constant
    +hi def link readlineFunction      Function
    +
    +let b:current_syntax = 'readline'
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/rebol.vim b/git/usr/share/vim/vim92/syntax/rebol.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..a5d50c4ab1fb5c524777d50d7ae74f57b3a81b24
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rebol.vim
    @@ -0,0 +1,199 @@
    +" Vim syntax file
    +" Language:	Rebol
    +" Maintainer:	Mike Williams 
    +" Filenames:	*.r
    +" Last Change:	27th June 2002
    +" URL:		http://www.eandem.co.uk/mrw/vim
    +"
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Rebol is case insensitive
    +syn case ignore
    +
    +" As per current users documentation
    +setlocal isk=@,48-57,?,!,.,',+,-,*,&,\|,=,_,~
    +
    +" Yer TODO highlighter
    +syn keyword	rebolTodo	contained TODO
    +
    +" Comments
    +syn match       rebolComment    ";.*$" contains=rebolTodo
    +
    +" Words
    +syn match       rebolWord       "\a\k*"
    +syn match       rebolWordPath   "[^[:space:]]/[^[:space]]"ms=s+1,me=e-1
    +
    +" Booleans
    +syn keyword     rebolBoolean    true false on off yes no
    +
    +" Values
    +" Integers
    +syn match       rebolInteger    "\<[+-]\=\d\+\('\d*\)*\>"
    +" Decimals
    +syn match       rebolDecimal    "[+-]\=\(\d\+\('\d*\)*\)\=[,.]\d*\(e[+-]\=\d\+\)\="
    +syn match       rebolDecimal    "[+-]\=\d\+\('\d*\)*\(e[+-]\=\d\+\)\="
    +" Time
    +syn match       rebolTime       "[+-]\=\(\d\+\('\d*\)*\:\)\{1,2}\d\+\('\d*\)*\([.,]\d\+\)\=\([AP]M\)\=\>"
    +syn match       rebolTime       "[+-]\=:\d\+\([.,]\d*\)\=\([AP]M\)\=\>"
    +" Dates
    +" DD-MMM-YY & YYYY format
    +syn match       rebolDate       "\d\{1,2}\([/-]\)\(Jan\|Feb\|Mar\|Apr\|May\|Jun\|Jul\|Aug\|Sep\|Oct\|Nov\|Dec\)\1\(\d\{2}\)\{1,2}\>"
    +" DD-month-YY & YYYY format
    +syn match       rebolDate       "\d\{1,2}\([/-]\)\(January\|February\|March\|April\|May\|June\|July\|August\|September\|October\|November\|December\)\1\(\d\{2}\)\{1,2}\>"
    +" DD-MM-YY & YY format
    +syn match       rebolDate       "\d\{1,2}\([/-]\)\d\{1,2}\1\(\d\{2}\)\{1,2}\>"
    +" YYYY-MM-YY format
    +syn match       rebolDate       "\d\{4}-\d\{1,2}-\d\{1,2}\>"
    +" DD.MM.YYYY format
    +syn match       rebolDate       "\d\{1,2}\.\d\{1,2}\.\d\{4}\>"
    +" Money
    +syn match       rebolMoney      "\a*\$\d\+\('\d*\)*\([,.]\d\+\)\="
    +" Strings
    +syn region      rebolString     oneline start=+"+ skip=+^"+ end=+"+ contains=rebolSpecialCharacter
    +syn region      rebolString     start=+[^#]{+ end=+}+ skip=+{[^}]*}+ contains=rebolSpecialCharacter
    +" Binary
    +syn region      rebolBinary     start=+\d*#{+ end=+}+ contains=rebolComment
    +" Email
    +syn match       rebolEmail      "\<\k\+@\(\k\+\.\)*\k\+\>"
    +" File
    +syn match       rebolFile       "%\(\k\+/\)*\k\+[/]\=" contains=rebolSpecialCharacter
    +syn region      rebolFile       oneline start=+%"+ end=+"+ contains=rebolSpecialCharacter
    +" URLs
    +syn match	rebolURL	"http://\k\+\(\.\k\+\)*\(:\d\+\)\=\(/\(\k\+/\)*\(\k\+\)\=\)*"
    +syn match	rebolURL	"file://\k\+\(\.\k\+\)*/\(\k\+/\)*\k\+"
    +syn match	rebolURL	"ftp://\(\k\+:\k\+@\)\=\k\+\(\.\k\+\)*\(:\d\+\)\=/\(\k\+/\)*\k\+"
    +syn match	rebolURL	"mailto:\k\+\(\.\k\+\)*@\k\+\(\.\k\+\)*"
    +" Issues
    +syn match	rebolIssue	"#\(\d\+-\)*\d\+"
    +" Tuples
    +syn match	rebolTuple	"\(\d\+\.\)\{2,}"
    +
    +" Characters
    +syn match       rebolSpecialCharacter contained "\^[^[:space:][]"
    +syn match       rebolSpecialCharacter contained "%\d\+"
    +
    +
    +" Operators
    +" Math operators
    +syn match       rebolMathOperator  "\(\*\{1,2}\|+\|-\|/\{1,2}\)"
    +syn keyword     rebolMathFunction  abs absolute add arccosine arcsine arctangent cosine
    +syn keyword     rebolMathFunction  divide exp log-10 log-2 log-e max maximum min
    +syn keyword     rebolMathFunction  minimum multiply negate power random remainder sine
    +syn keyword     rebolMathFunction  square-root subtract tangent
    +" Binary operators
    +syn keyword     rebolBinaryOperator complement and or xor ~
    +" Logic operators
    +syn match       rebolLogicOperator "[<>=]=\="
    +syn match       rebolLogicOperator "<>"
    +syn keyword     rebolLogicOperator not
    +syn keyword     rebolLogicFunction all any
    +syn keyword     rebolLogicFunction head? tail?
    +syn keyword     rebolLogicFunction negative? positive? zero? even? odd?
    +syn keyword     rebolLogicFunction binary? block? char? date? decimal? email? empty?
    +syn keyword     rebolLogicFunction file? found? function? integer? issue? logic? money?
    +syn keyword     rebolLogicFunction native? none? object? paren? path? port? series?
    +syn keyword     rebolLogicFunction string? time? tuple? url? word?
    +syn keyword     rebolLogicFunction exists? input? same? value?
    +
    +" Datatypes
    +syn keyword     rebolType       binary! block! char! date! decimal! email! file!
    +syn keyword     rebolType       function! integer! issue! logic! money! native!
    +syn keyword     rebolType       none! object! paren! path! port! string! time!
    +syn keyword     rebolType       tuple! url! word!
    +syn keyword     rebolTypeFunction type?
    +
    +" Control statements
    +syn keyword     rebolStatement  break catch exit halt reduce return shield
    +syn keyword     rebolConditional if else
    +syn keyword     rebolRepeat     for forall foreach forskip loop repeat while until do
    +
    +" Series statements
    +syn keyword     rebolStatement  change clear copy fifth find first format fourth free
    +syn keyword     rebolStatement  func function head insert last match next parse past
    +syn keyword     rebolStatement  pick remove second select skip sort tail third trim length?
    +
    +" Context
    +syn keyword     rebolStatement  alias bind use
    +
    +" Object
    +syn keyword     rebolStatement  import make make-object rebol info?
    +
    +" I/O statements
    +syn keyword     rebolStatement  delete echo form format import input load mold prin
    +syn keyword     rebolStatement  print probe read save secure send write
    +syn keyword     rebolOperator   size? modified?
    +
    +" Debug statement
    +syn keyword     rebolStatement  help probe trace
    +
    +" Misc statements
    +syn keyword     rebolStatement  func function free
    +
    +" Constants
    +syn keyword     rebolConstant   none
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link rebolTodo     Todo
    +
    +hi def link rebolStatement Statement
    +hi def link rebolLabel	Label
    +hi def link rebolConditional Conditional
    +hi def link rebolRepeat	Repeat
    +
    +hi def link rebolOperator	Operator
    +hi def link rebolLogicOperator rebolOperator
    +hi def link rebolLogicFunction rebolLogicOperator
    +hi def link rebolMathOperator rebolOperator
    +hi def link rebolMathFunction rebolMathOperator
    +hi def link rebolBinaryOperator rebolOperator
    +hi def link rebolBinaryFunction rebolBinaryOperator
    +
    +hi def link rebolType     Type
    +hi def link rebolTypeFunction rebolOperator
    +
    +hi def link rebolWord     Identifier
    +hi def link rebolWordPath rebolWord
    +hi def link rebolFunction	Function
    +
    +hi def link rebolCharacter Character
    +hi def link rebolSpecialCharacter SpecialChar
    +hi def link rebolString	String
    +
    +hi def link rebolNumber   Number
    +hi def link rebolInteger  rebolNumber
    +hi def link rebolDecimal  rebolNumber
    +hi def link rebolTime     rebolNumber
    +hi def link rebolDate     rebolNumber
    +hi def link rebolMoney    rebolNumber
    +hi def link rebolBinary   rebolNumber
    +hi def link rebolEmail    rebolString
    +hi def link rebolFile     rebolString
    +hi def link rebolURL      rebolString
    +hi def link rebolIssue    rebolNumber
    +hi def link rebolTuple    rebolNumber
    +hi def link rebolFloat    Float
    +hi def link rebolBoolean  Boolean
    +
    +hi def link rebolConstant Constant
    +
    +hi def link rebolComment	Comment
    +
    +hi def link rebolError	Error
    +
    +
    +if exists("my_rebol_file")
    +  if file_readable(expand(my_rebol_file))
    +    execute "source " . my_rebol_file
    +  endif
    +endif
    +
    +let b:current_syntax = "rebol"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/redif.vim b/git/usr/share/vim/vim92/syntax/redif.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..365192284b7b4ea5f3c6c79afe831330b5cb7baa
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/redif.vim
    @@ -0,0 +1,970 @@
    +" Vim syntax file
    +" Language:          ReDIF
    +" Maintainer:        Axel Castellane 
    +" Last Change:       2021 Jul 28
    +" Original Author:   Axel Castellane
    +" Source:            http://openlib.org/acmes/root/docu/redif_1.html
    +" File Extension:    rdf
    +" Note:              The ReDIF format is used by RePEc.
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" ReDIF is case-insensitive
    +syntax case ignore
    +
    +" Structure: Some fields determine what fields can come next. For example:
    +"       Template-Type
    +"       *-Name
    +"       File-URL
    +"       *-Institution
    +" Those fields span a syntax region over several lines so that these regions
    +" can only contain their respective items.
    +
    +" Any line which is not a correct template or part of an argument is an error.
    +" This comes at the very beginning, so it has the lowest priority and will
    +" only match if nothing else did.
    +syntax match redifWrongLine /^.\+/ display
    +
    +highlight def link redifWrongLine redifError
    +
    +" Comments must start with # and it must be the first character of the line,
    +" otherwise I believe that they are considered as part of an argument.
    +syntax match redifComment /^#.*/ containedin=ALL display
    +
    +" Defines the 9 possible multi-lines regions of Template-Type and the fields
    +" they can contain.
    +syntax region redifRegionTemplatePaper start=/^Template-Type:\_s*ReDIF-Paper \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsPaper,redifWrongLine,redifRegionClusterAuthor,redifRegionClusterFile fold
    +syntax region redifRegionTemplateArticle start=/^Template-Type:\_s*ReDIF-Article \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsArticle,redifWrongLine,redifRegionClusterAuthor,redifRegionClusterFile fold
    +syntax region redifRegionTemplateChapter start=/^Template-Type:\_s*ReDIF-Chapter \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsChapter,redifWrongLine,redifRegionClusterAuthor,redifRegionClusterFile,redifRegionClusterProvider,redifRegionClusterPublisher,redifRegionClusterEditor fold
    +syntax region redifRegionTemplateBook start=/^Template-Type:\_s*ReDIF-Book \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsBook,redifWrongLine,redifRegionClusterAuthor,redifRegionClusterFile,redifRegionClusterProvider,redifRegionClusterPublisher,redifRegionClusterEditor fold
    +syntax region redifRegionTemplateSoftware start=/^Template-Type:\_s*ReDIF-Software \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsSoftware,redifWrongLine,redifRegionClusterAuthor,redifRegionClusterFile fold
    +syntax region redifRegionTemplateArchive start=/^Template-Type:\_s*ReDIF-Archive \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsArchive,redifWrongLine fold
    +syntax region redifRegionTemplateSeries start=/^Template-Type:\_s*ReDIF-Series \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsSeries,redifWrongLine,redifRegionClusterProvider,redifRegionClusterPublisher,redifRegionClusterEditor fold
    +syntax region redifRegionTemplateInstitution start=/^Template-Type:\_s*ReDIF-Institution \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsInstitution,redifWrongLine,redifRegionClusterPrimary,redifRegionClusterSecondary,redifRegionClusterTertiary,redifRegionClusterQuaternary fold
    +syntax region redifRegionTemplatePerson start=/^Template-Type:\_s*ReDIF-Person \d\+\.\d\+/ end=/^Template-Type:/me=s-1 contains=redifContainerFieldsPerson,redifWrongLine,redifRegionClusterWorkplace fold
    +
    +" All fields are foldable (These come before clusters, so they have lower
    +" priority). So they are contained in a foldable syntax region.
    +syntax region redifContainerFieldsPaper start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldTitle,redifFieldHandleOfWork,redifFieldLanguage,redifFieldContactEmail,redifFieldAbstract,redifFieldClassificationJEL,redifFieldKeywords,redifFieldNumber,redifFieldCreationDate,redifFieldRevisionDate,redifFieldPublicationStatus,redifFieldNote,redifFieldLength,redifFieldSeries,redifFieldAvailability,redifFieldOrderURL,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldRestriction,redifFieldPrice,redifFieldNotification,redifFieldPublicationType,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsArticle start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldTitle,redifFieldHandleOfWork,redifFieldLanguage,redifFieldContactEmail,redifFieldAbstract,redifFieldClassificationJEL,redifFieldKeywords,redifFieldNumber,redifFieldCreationDate,redifFieldPublicationStatus,redifFieldOrderURL,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldRestriction,redifFieldPrice,redifFieldNotification,redifFieldPublicationType,redifFieldJournal,redifFieldVolume,redifFieldYear,redifFieldIssue,redifFieldMonth,redifFieldPages,redifFieldNumber,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsChapter start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldHandleOfWork,redifFieldTitle,redifFieldContactEmail,redifFieldAbstract,redifFieldClassificationJEL,redifFieldKeywords,redifFieldBookTitle,redifFieldYear,redifFieldMonth,redifFieldPages,redifFieldChapter,redifFieldVolume,redifFieldEdition,redifFieldSeries,redifFieldISBN,redifFieldPublicationStatus,redifFieldNote,redifFieldInBook,redifFieldOrderURL,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsBook start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldTitle,redifFieldHandleOfWork,redifFieldContactEmail,redifFieldYear,redifFieldMonth,redifFieldVolume,redifFieldEdition,redifFieldSeries,redifFieldISBN,redifFieldPublicationStatus,redifFieldNote,redifFieldAbstract,redifFieldClassificationJEL,redifFieldKeywords,redifFieldHasChapter,redifFieldPrice,redifFieldOrderURL,redifFieldNumber,redifFieldCreationDate,redifFieldPublicationDate,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsSoftware start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldHandleOfWork,redifFieldTitle,redifFieldProgrammingLanguage,redifFieldAbstract,redifFieldNumber,redifFieldVersion,redifFieldClassificationJEL,redifFieldKeywords,redifFieldSize,redifFieldSeries,redifFieldCreationDate,redifFieldRevisionDate,redifFieldNote,redifFieldRequires,redifFieldArticleHandle,redifFieldBookHandle,redifFieldChapterHandle,redifFieldPaperHandle,redifFieldSoftwareHandle,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsArchive start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldHandleOfArchive,redifFieldURL,redifFieldMaintainerEmail,redifFieldName,redifFieldMaintainerName,redifFieldMaintainerPhone,redifFieldMaintainerFax,redifFieldClassificationJEL,redifFieldHomepage,redifFieldDescription,redifFieldNotification,redifFieldRestriction,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsSeries start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldName,redifFieldHandleOfSeries,redifFieldMaintainerEmail,redifFieldType,redifFieldOrderEmail,redifFieldOrderHomepage,redifFieldOrderPostal,redifFieldPrice,redifFieldRestriction,redifFieldMaintainerPhone,redifFieldMaintainerFax,redifFieldMaintainerName,redifFieldDescription,redifFieldClassificationJEL,redifFieldKeywords,redifFieldNotification,redifFieldISSN,redifFieldFollowup,redifFieldPredecessor,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsInstitution start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldHandleOfInstitution,redifFieldPrimaryDefunct,redifFieldSecondaryDefunct,redifFieldTertiaryDefunct,redifFieldTemplateType,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsPerson start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldHandleOfPerson,redifFieldNameFull,redifFieldNameFirst,redifFieldNameLast,redifFieldNamePrefix,redifFieldNameMiddle,redifFieldNameSuffix,redifFieldNameASCII,redifFieldEmail,redifFieldHomepage,redifFieldFax,redifFieldPostal,redifFieldPhone,redifFieldWorkplaceOrganization,redifFieldAuthorPaper,redifFieldAuthorArticle,redifFieldAuthorSoftware,redifFieldAuthorBook,redifFieldAuthorChapter,redifFieldEditorBook,redifFieldEditorSeries,redifFieldClassificationJEL,redifFieldShortId,redifFieldLastLoginDate,redifFieldRegisteredDate,redifWrongLine contained transparent fold
    +
    +" Defines the 10 possible clusters and what they can contain
    +" A field not in the cluster ends the cluster.
    +syntax region redifRegionClusterWorkplace start=/^Workplace-Name:/ skip=/^Workplace-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsWorkplace fold
    +syntax region redifRegionClusterPrimary start=/^Primary-Name:/ skip=/^Primary-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsPrimary fold
    +syntax region redifRegionClusterSecondary start=/^Secondary-Name:/ skip=/^Secondary-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsSecondary fold
    +syntax region redifRegionClusterTertiary start=/^Tertiary-Name:/ skip=/^Tertiary-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsTertiary fold
    +syntax region redifRegionClusterQuaternary start=/^Quaternary-Name:/ skip=/^Quaternary-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsQuaternary fold
    +syntax region redifRegionClusterProvider start=/^Provider-Name:/ skip=/^Provider-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsProvider fold
    +syntax region redifRegionClusterPublisher start=/^Publisher-Name:/ skip=/^Publisher-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsPublisher fold
    +syntax region redifRegionClusterAuthor start=/^Author-Name:/ skip=/^Author-\%(Name\%(-First\|-Last\)\|Homepage\|Email\|Fax\|Postal\|Phone\|Person\|Workplace-Name\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifRegionClusterAuthorWorkplace,redifContainerFieldsAuthor fold
    +syntax region redifRegionClusterEditor start=/^Editor-Name:/ skip=/^Editor-\%(Name\%(-First\|-Last\)\|Homepage\|Email\|Fax\|Postal\|Phone\|Person\|Workplace-Name\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifRegionClusterEditorWorkplace,redifContainerFieldsEditor fold
    +syntax region redifRegionClusterFile start=/^File-URL:/ skip=/^File-\%(Format\|Function\|Size\|Restriction\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsFile fold
    +
    +" The foldable containers of the clusters.
    +syntax region redifContainerFieldsWorkplace start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldWorkplaceName,redifFieldWorkplaceHomepage,redifFieldWorkplaceNameEnglish,redifFieldWorkplacePostal,redifFieldWorkplaceLocation,redifFieldWorkplaceEmail,redifFieldWorkplacePhone,redifFieldWorkplaceFax,redifFieldWorkplaceInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsPrimary start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldPrimaryName,redifFieldPrimaryHomepage,redifFieldPrimaryNameEnglish,redifFieldPrimaryPostal,redifFieldPrimaryLocation,redifFieldPrimaryEmail,redifFieldPrimaryPhone,redifFieldPrimaryFax,redifFieldPrimaryInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsSecondary start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldSecondaryName,redifFieldSecondaryHomepage,redifFieldSecondaryNameEnglish,redifFieldSecondaryPostal,redifFieldSecondaryLocation,redifFieldSecondaryEmail,redifFieldSecondaryPhone,redifFieldSecondaryFax,redifFieldSecondaryInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsTertiary start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldTertiaryName,redifFieldTertiaryHomepage,redifFieldTertiaryNameEnglish,redifFieldTertiaryPostal,redifFieldTertiaryLocation,redifFieldTertiaryEmail,redifFieldTertiaryPhone,redifFieldTertiaryFax,redifFieldTertiaryInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsQuaternary start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldQuaternaryName,redifFieldQuaternaryHomepage,redifFieldQuaternaryNameEnglish,redifFieldQuaternaryPostal,redifFieldQuaternaryLocation,redifFieldQuaternaryEmail,redifFieldQuaternaryPhone,redifFieldQuaternaryFax,redifFieldQuaternaryInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsProvider start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldProviderName,redifFieldProviderHomepage,redifFieldProviderNameEnglish,redifFieldProviderPostal,redifFieldProviderLocation,redifFieldProviderEmail,redifFieldProviderPhone,redifFieldProviderFax,redifFieldProviderInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsPublisher start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldPublisherName,redifFieldPublisherHomepage,redifFieldPublisherNameEnglish,redifFieldPublisherPostal,redifFieldPublisherLocation,redifFieldPublisherEmail,redifFieldPublisherPhone,redifFieldPublisherFax,redifFieldPublisherInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsAuthor start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldAuthorName,redifFieldAuthorNameFirst,redifFieldAuthorNameLast,redifFieldAuthorHomepage,redifFieldAuthorEmail,redifFieldAuthorFax,redifFieldAuthorPostal,redifFieldAuthorPhone,redifFieldAuthorPerson,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsEditor start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldEditorName,redifFieldEditorNameFirst,redifFieldEditorNameLast,redifFieldEditorHomepage,redifFieldEditorEmail,redifFieldEditorFax,redifFieldEditorPostal,redifFieldEditorPhone,redifFieldEditorPerson,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsFile start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldFileURL,redifFieldFileFormat,redifFieldFileFunction,redifFieldFileSize,redifFieldFileRestriction,redifWrongLine contained transparent fold
    +
    +" The two clusters in cluster (must be presented after to have priority over
    +" fields containers)
    +syntax region redifRegionClusterAuthorWorkplace start=/^Author-Workplace-Name:/ skip=/^Author-Workplace-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsAuthorWorkplace fold
    +syntax region redifRegionClusterEditorWorkplace start=/^Editor-Workplace-Name:/ skip=/^Editor-Workplace-\%(Name-English\|Homepage\|Postal\|Location\|Email\|Phone\|Fax\|Institution\):/ end=/^\S\{-}:/me=s-1 contained contains=redifWrongLine,redifContainerFieldsEditorWorkplace fold
    +
    +" Their foldable fields containers
    +syntax region redifContainerFieldsAuthorWorkplace start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldAuthorWorkplaceName,redifFieldAuthorWorkplaceHomepage,redifFieldAuthorWorkplaceNameEnglish,redifFieldAuthorWorkplacePostal,redifFieldAuthorWorkplaceLocation,redifFieldAuthorWorkplaceEmail,redifFieldAuthorWorkplacePhone,redifFieldAuthorWorkplaceFax,redifFieldAuthorWorkplaceInstitution,redifWrongLine contained transparent fold
    +syntax region redifContainerFieldsEditorWorkplace start=/^\S\{-}:/ end=/^\S\{-}:/me=s-1 contains=redifFieldEditorWorkplaceName,redifFieldEditorWorkplaceHomepage,redifFieldEditorWorkplaceNameEnglish,redifFieldEditorWorkplacePostal,redifFieldEditorWorkplaceLocation,redifFieldEditorWorkplaceEmail,redifFieldEditorWorkplacePhone,redifFieldEditorWorkplaceFax,redifFieldEditorWorkplaceInstitution,redifWrongLine contained transparent fold
    +
    +" All the possible fields
    +"     Note: The "Handle" field is handled a little bit differently, because it
    +"     does not have the same meaning depending on the Template-Type. See:
    +" 	  /redifFieldHandleOf....
    +syntax match redifFieldAbstract /^Abstract:/ skipwhite skipempty nextgroup=redifArgumentAbstract contained
    +syntax match redifFieldArticleHandle /^Article-Handle:/ skipwhite skipempty nextgroup=redifArgumentArticleHandle contained
    +syntax match redifFieldAuthorArticle /^Author-Article:/ skipwhite skipempty nextgroup=redifArgumentAuthorArticle contained
    +syntax match redifFieldAuthorBook /^Author-Book:/ skipwhite skipempty nextgroup=redifArgumentAuthorBook contained
    +syntax match redifFieldAuthorChapter /^Author-Chapter:/ skipwhite skipempty nextgroup=redifArgumentAuthorChapter contained
    +syntax match redifFieldAuthorEmail /^Author-Email:/ skipwhite skipempty nextgroup=redifArgumentAuthorEmail contained
    +syntax match redifFieldAuthorFax /^Author-Fax:/ skipwhite skipempty nextgroup=redifArgumentAuthorFax contained
    +syntax match redifFieldAuthorHomepage /^Author-Homepage:/ skipwhite skipempty nextgroup=redifArgumentAuthorHomepage contained
    +syntax match redifFieldAuthorName /^Author-Name:/ skipwhite skipempty nextgroup=redifArgumentAuthorName contained
    +syntax match redifFieldAuthorNameFirst /^Author-Name-First:/ skipwhite skipempty nextgroup=redifArgumentAuthorNameFirst contained
    +syntax match redifFieldAuthorNameLast /^Author-Name-Last:/ skipwhite skipempty nextgroup=redifArgumentAuthorNameLast contained
    +syntax match redifFieldAuthorPaper /^Author-Paper:/ skipwhite skipempty nextgroup=redifArgumentAuthorPaper contained
    +syntax match redifFieldAuthorPerson /^Author-Person:/ skipwhite skipempty nextgroup=redifArgumentAuthorPerson contained
    +syntax match redifFieldAuthorPhone /^Author-Phone:/ skipwhite skipempty nextgroup=redifArgumentAuthorPhone contained
    +syntax match redifFieldAuthorPostal /^Author-Postal:/ skipwhite skipempty nextgroup=redifArgumentAuthorPostal contained
    +syntax match redifFieldAuthorSoftware /^Author-Software:/ skipwhite skipempty nextgroup=redifArgumentAuthorSoftware contained
    +syntax match redifFieldAuthorWorkplaceEmail /^Author-Workplace-Email:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceEmail contained
    +syntax match redifFieldAuthorWorkplaceFax /^Author-Workplace-Fax:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceFax contained
    +syntax match redifFieldAuthorWorkplaceHomepage /^Author-Workplace-Homepage:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceHomepage contained
    +syntax match redifFieldAuthorWorkplaceInstitution /^Author-Workplace-Institution:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceInstitution contained
    +syntax match redifFieldAuthorWorkplaceLocation /^Author-Workplace-Location:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceLocation contained
    +syntax match redifFieldAuthorWorkplaceName /^Author-Workplace-Name:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceName contained
    +syntax match redifFieldAuthorWorkplaceNameEnglish /^Author-Workplace-Name-English:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplaceNameEnglish contained
    +syntax match redifFieldAuthorWorkplacePhone /^Author-Workplace-Phone:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplacePhone contained
    +syntax match redifFieldAuthorWorkplacePostal /^Author-Workplace-Postal:/ skipwhite skipempty nextgroup=redifArgumentAuthorWorkplacePostal contained
    +syntax match redifFieldAvailability /^Availability:/ skipwhite skipempty nextgroup=redifArgumentAvailability contained
    +syntax match redifFieldBookHandle /^Book-Handle:/ skipwhite skipempty nextgroup=redifArgumentBookHandle contained
    +syntax match redifFieldBookTitle /^Book-Title:/ skipwhite skipempty nextgroup=redifArgumentBookTitle contained
    +syntax match redifFieldChapterHandle /^Chapter-Handle:/ skipwhite skipempty nextgroup=redifArgumentChapterHandle contained
    +syntax match redifFieldChapter /^Chapter:/ skipwhite skipempty nextgroup=redifArgumentChapter contained
    +syntax match redifFieldClassificationJEL /^Classification-JEL:/ skipwhite skipempty nextgroup=redifArgumentClassificationJEL contained
    +syntax match redifFieldContactEmail /^Contact-Email:/ skipwhite skipempty nextgroup=redifArgumentContactEmail contained
    +syntax match redifFieldCreationDate /^Creation-Date:/ skipwhite skipempty nextgroup=redifArgumentCreationDate contained
    +syntax match redifFieldDescription /^Description:/ skipwhite skipempty nextgroup=redifArgumentDescription contained
    +syntax match redifFieldEdition /^Edition:/ skipwhite skipempty nextgroup=redifArgumentEdition contained
    +syntax match redifFieldEditorBook /^Editor-Book:/ skipwhite skipempty nextgroup=redifArgumentEditorBook contained
    +syntax match redifFieldEditorEmail /^Editor-Email:/ skipwhite skipempty nextgroup=redifArgumentEditorEmail contained
    +syntax match redifFieldEditorFax /^Editor-Fax:/ skipwhite skipempty nextgroup=redifArgumentEditorFax contained
    +syntax match redifFieldEditorHomepage /^Editor-Homepage:/ skipwhite skipempty nextgroup=redifArgumentEditorHomepage contained
    +syntax match redifFieldEditorName /^Editor-Name:/ skipwhite skipempty nextgroup=redifArgumentEditorName contained
    +syntax match redifFieldEditorNameFirst /^Editor-Name-First:/ skipwhite skipempty nextgroup=redifArgumentEditorNameFirst contained
    +syntax match redifFieldEditorNameLast /^Editor-Name-Last:/ skipwhite skipempty nextgroup=redifArgumentEditorNameLast contained
    +syntax match redifFieldEditorPerson /^Editor-Person:/ skipwhite skipempty nextgroup=redifArgumentEditorPerson contained
    +syntax match redifFieldEditorPhone /^Editor-Phone:/ skipwhite skipempty nextgroup=redifArgumentEditorPhone contained
    +syntax match redifFieldEditorPostal /^Editor-Postal:/ skipwhite skipempty nextgroup=redifArgumentEditorPostal contained
    +syntax match redifFieldEditorSeries /^Editor-Series:/ skipwhite skipempty nextgroup=redifArgumentEditorSeries contained
    +syntax match redifFieldEditorWorkplaceEmail /^Editor-Workplace-Email:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceEmail contained
    +syntax match redifFieldEditorWorkplaceFax /^Editor-Workplace-Fax:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceFax contained
    +syntax match redifFieldEditorWorkplaceHomepage /^Editor-Workplace-Homepage:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceHomepage contained
    +syntax match redifFieldEditorWorkplaceInstitution /^Editor-Workplace-Institution:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceInstitution contained
    +syntax match redifFieldEditorWorkplaceLocation /^Editor-Workplace-Location:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceLocation contained
    +syntax match redifFieldEditorWorkplaceName /^Editor-Workplace-Name:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceName contained
    +syntax match redifFieldEditorWorkplaceNameEnglish /^Editor-Workplace-Name-English:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplaceNameEnglish contained
    +syntax match redifFieldEditorWorkplacePhone /^Editor-Workplace-Phone:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplacePhone contained
    +syntax match redifFieldEditorWorkplacePostal /^Editor-Workplace-Postal:/ skipwhite skipempty nextgroup=redifArgumentEditorWorkplacePostal contained
    +syntax match redifFieldEmail /^Email:/ skipwhite skipempty nextgroup=redifArgumentEmail contained
    +syntax match redifFieldFax /^Fax:/ skipwhite skipempty nextgroup=redifArgumentFax contained
    +syntax match redifFieldFileFormat /^File-Format:/ skipwhite skipempty nextgroup=redifArgumentFileFormat contained
    +syntax match redifFieldFileFunction /^File-Function:/ skipwhite skipempty nextgroup=redifArgumentFileFunction contained
    +syntax match redifFieldFileRestriction /^File-Restriction:/ skipwhite skipempty nextgroup=redifArgumentFileRestriction contained
    +syntax match redifFieldFileSize /^File-Size:/ skipwhite skipempty nextgroup=redifArgumentFileSize contained
    +syntax match redifFieldFileURL /^File-URL:/ skipwhite skipempty nextgroup=redifArgumentFileURL contained
    +syntax match redifFieldFollowup /^Followup:/ skipwhite skipempty nextgroup=redifArgumentFollowup contained
    +syntax match redifFieldHandleOfArchive /^Handle:/ skipwhite skipempty nextgroup=redifArgumentHandleOfArchive contained
    +syntax match redifFieldHandleOfInstitution /^Handle:/ skipwhite skipempty nextgroup=redifArgumentHandleOfInstitution contained
    +syntax match redifFieldHandleOfPerson /^Handle:/ skipwhite skipempty nextgroup=redifArgumentHandleOfPerson contained
    +syntax match redifFieldHandleOfSeries /^Handle:/ skipwhite skipempty nextgroup=redifArgumentHandleOfSeries contained
    +syntax match redifFieldHandleOfWork /^Handle:/ skipwhite skipempty nextgroup=redifArgumentHandleOfWork contained
    +syntax match redifFieldHasChapter /^HasChapter:/ skipwhite skipempty nextgroup=redifArgumentHasChapter contained
    +syntax match redifFieldHomepage /^Homepage:/ skipwhite skipempty nextgroup=redifArgumentHomepage contained
    +syntax match redifFieldInBook /^In-Book:/ skipwhite skipempty nextgroup=redifArgumentInBook contained
    +syntax match redifFieldISBN /^ISBN:/ skipwhite skipempty nextgroup=redifArgumentISBN contained
    +syntax match redifFieldISSN /^ISSN:/ skipwhite skipempty nextgroup=redifArgumentISSN contained
    +syntax match redifFieldIssue /^Issue:/ skipwhite skipempty nextgroup=redifArgumentIssue contained
    +syntax match redifFieldJournal /^Journal:/ skipwhite skipempty nextgroup=redifArgumentJournal contained
    +syntax match redifFieldKeywords /^Keywords:/ skipwhite skipempty nextgroup=redifArgumentKeywords contained
    +syntax match redifFieldKeywords /^Keywords:/ skipwhite skipempty nextgroup=redifArgumentKeywords contained
    +syntax match redifFieldLanguage /^Language:/ skipwhite skipempty nextgroup=redifArgumentLanguage contained
    +syntax match redifFieldLastLoginDate /^Last-Login-Date:/ skipwhite skipempty nextgroup=redifArgumentLastLoginDate contained
    +syntax match redifFieldLength /^Length:/ skipwhite skipempty nextgroup=redifArgumentLength contained
    +syntax match redifFieldMaintainerEmail /^Maintainer-Email:/ skipwhite skipempty nextgroup=redifArgumentMaintainerEmail contained
    +syntax match redifFieldMaintainerFax /^Maintainer-Fax:/ skipwhite skipempty nextgroup=redifArgumentMaintainerFax contained
    +syntax match redifFieldMaintainerName /^Maintainer-Name:/ skipwhite skipempty nextgroup=redifArgumentMaintainerName contained
    +syntax match redifFieldMaintainerPhone /^Maintainer-Phone:/ skipwhite skipempty nextgroup=redifArgumentMaintainerPhone contained
    +syntax match redifFieldMonth /^Month:/ skipwhite skipempty nextgroup=redifArgumentMonth contained
    +syntax match redifFieldNameASCII /^Name-ASCII:/ skipwhite skipempty nextgroup=redifArgumentNameASCII contained
    +syntax match redifFieldNameFirst /^Name-First:/ skipwhite skipempty nextgroup=redifArgumentNameFirst contained
    +syntax match redifFieldNameFull /^Name-Full:/ skipwhite skipempty nextgroup=redifArgumentNameFull contained
    +syntax match redifFieldNameLast /^Name-Last:/ skipwhite skipempty nextgroup=redifArgumentNameLast contained
    +syntax match redifFieldNameMiddle /^Name-Middle:/ skipwhite skipempty nextgroup=redifArgumentNameMiddle contained
    +syntax match redifFieldNamePrefix /^Name-Prefix:/ skipwhite skipempty nextgroup=redifArgumentNamePrefix contained
    +syntax match redifFieldNameSuffix /^Name-Suffix:/ skipwhite skipempty nextgroup=redifArgumentNameSuffix contained
    +syntax match redifFieldName /^Name:/ skipwhite skipempty nextgroup=redifArgumentName contained
    +syntax match redifFieldNote /^Note:/ skipwhite skipempty nextgroup=redifArgumentNote contained
    +syntax match redifFieldNotification /^Notification:/ skipwhite skipempty nextgroup=redifArgumentNotification contained
    +syntax match redifFieldNumber /^Number:/ skipwhite skipempty nextgroup=redifArgumentNumber contained
    +syntax match redifFieldOrderEmail /^Order-Email:/ skipwhite skipempty nextgroup=redifArgumentOrderEmail contained
    +syntax match redifFieldOrderHomepage /^Order-Homepage:/ skipwhite skipempty nextgroup=redifArgumentOrderHomepage contained
    +syntax match redifFieldOrderPostal /^Order-Postal:/ skipwhite skipempty nextgroup=redifArgumentOrderPostal contained
    +syntax match redifFieldOrderURL /^Order-URL:/ skipwhite skipempty nextgroup=redifArgumentOrderURL contained
    +syntax match redifFieldPages /^Pages:/ skipwhite skipempty nextgroup=redifArgumentPages contained
    +syntax match redifFieldPaperHandle /^Paper-Handle:/ skipwhite skipempty nextgroup=redifArgumentPaperHandle contained
    +syntax match redifFieldPhone /^Phone:/ skipwhite skipempty nextgroup=redifArgumentPhone contained
    +syntax match redifFieldPostal /^Postal:/ skipwhite skipempty nextgroup=redifArgumentPostal contained
    +syntax match redifFieldPredecessor /^Predecessor:/ skipwhite skipempty nextgroup=redifArgumentPredecessor contained
    +syntax match redifFieldPrice /^Price:/ skipwhite skipempty nextgroup=redifArgumentPrice contained
    +syntax match redifFieldPrimaryDefunct /^Primary-Defunct:/ skipwhite skipempty nextgroup=redifArgumentPrimaryDefunct contained
    +syntax match redifFieldPrimaryEmail /^Primary-Email:/ skipwhite skipempty nextgroup=redifArgumentPrimaryEmail contained
    +syntax match redifFieldPrimaryFax /^Primary-Fax:/ skipwhite skipempty nextgroup=redifArgumentPrimaryFax contained
    +syntax match redifFieldPrimaryHomepage /^Primary-Homepage:/ skipwhite skipempty nextgroup=redifArgumentPrimaryHomepage contained
    +syntax match redifFieldPrimaryInstitution /^Primary-Institution:/ skipwhite skipempty nextgroup=redifArgumentPrimaryInstitution contained
    +syntax match redifFieldPrimaryLocation /^Primary-Location:/ skipwhite skipempty nextgroup=redifArgumentPrimaryLocation contained
    +syntax match redifFieldPrimaryName /^Primary-Name:/ skipwhite skipempty nextgroup=redifArgumentPrimaryName contained
    +syntax match redifFieldPrimaryNameEnglish /^Primary-Name-English:/ skipwhite skipempty nextgroup=redifArgumentPrimaryNameEnglish contained
    +syntax match redifFieldPrimaryPhone /^Primary-Phone:/ skipwhite skipempty nextgroup=redifArgumentPrimaryPhone contained
    +syntax match redifFieldPrimaryPostal /^Primary-Postal:/ skipwhite skipempty nextgroup=redifArgumentPrimaryPostal contained
    +syntax match redifFieldProgrammingLanguage /^Programming-Language:/ skipwhite skipempty nextgroup=redifArgumentProgrammingLanguage contained
    +syntax match redifFieldProviderEmail /^Provider-Email:/ skipwhite skipempty nextgroup=redifArgumentProviderEmail contained
    +syntax match redifFieldProviderFax /^Provider-Fax:/ skipwhite skipempty nextgroup=redifArgumentProviderFax contained
    +syntax match redifFieldProviderHomepage /^Provider-Homepage:/ skipwhite skipempty nextgroup=redifArgumentProviderHomepage contained
    +syntax match redifFieldProviderInstitution /^Provider-Institution:/ skipwhite skipempty nextgroup=redifArgumentProviderInstitution contained
    +syntax match redifFieldProviderLocation /^Provider-Location:/ skipwhite skipempty nextgroup=redifArgumentProviderLocation contained
    +syntax match redifFieldProviderName /^Provider-Name:/ skipwhite skipempty nextgroup=redifArgumentProviderName contained
    +syntax match redifFieldProviderNameEnglish /^Provider-Name-English:/ skipwhite skipempty nextgroup=redifArgumentProviderNameEnglish contained
    +syntax match redifFieldProviderPhone /^Provider-Phone:/ skipwhite skipempty nextgroup=redifArgumentProviderPhone contained
    +syntax match redifFieldProviderPostal /^Provider-Postal:/ skipwhite skipempty nextgroup=redifArgumentProviderPostal contained
    +syntax match redifFieldPublicationDate /^Publication-Date:/ skipwhite skipempty nextgroup=redifArgumentPublicationDate contained
    +syntax match redifFieldPublicationStatus /^Publication-Status:/ skipwhite skipempty nextgroup=redifArgumentPublicationStatus contained
    +syntax match redifFieldPublicationType /^Publication-Type:/ skipwhite skipempty nextgroup=redifArgumentPublicationType contained
    +syntax match redifFieldQuaternaryEmail /^Quaternary-Email:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryEmail contained
    +syntax match redifFieldQuaternaryFax /^Quaternary-Fax:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryFax contained
    +syntax match redifFieldQuaternaryHomepage /^Quaternary-Homepage:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryHomepage contained
    +syntax match redifFieldQuaternaryInstitution /^Quaternary-Institution:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryInstitution contained
    +syntax match redifFieldQuaternaryLocation /^Quaternary-Location:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryLocation contained
    +syntax match redifFieldQuaternaryName /^Quaternary-Name:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryName contained
    +syntax match redifFieldQuaternaryNameEnglish /^Quaternary-Name-English:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryNameEnglish contained
    +syntax match redifFieldQuaternaryPhone /^Quaternary-Phone:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryPhone contained
    +syntax match redifFieldQuaternaryPostal /^Quaternary-Postal:/ skipwhite skipempty nextgroup=redifArgumentQuaternaryPostal contained
    +syntax match redifFieldRegisteredDate /^Registered-Date:/ skipwhite skipempty nextgroup=redifArgumentRegisteredDate contained
    +syntax match redifFieldRequires /^Requires:/ skipwhite skipempty nextgroup=redifArgumentRequires contained
    +syntax match redifFieldRestriction /^Restriction:/ skipwhite skipempty nextgroup=redifArgumentRestriction contained
    +syntax match redifFieldRevisionDate /^Revision-Date:/ skipwhite skipempty nextgroup=redifArgumentRevisionDate contained
    +syntax match redifFieldSecondaryDefunct /^Secondary-Defunct:/ skipwhite skipempty nextgroup=redifArgumentSecondaryDefunct contained
    +syntax match redifFieldSecondaryEmail /^Secondary-Email:/ skipwhite skipempty nextgroup=redifArgumentSecondaryEmail contained
    +syntax match redifFieldSecondaryFax /^Secondary-Fax:/ skipwhite skipempty nextgroup=redifArgumentSecondaryFax contained
    +syntax match redifFieldSecondaryHomepage /^Secondary-Homepage:/ skipwhite skipempty nextgroup=redifArgumentSecondaryHomepage contained
    +syntax match redifFieldSecondaryInstitution /^Secondary-Institution:/ skipwhite skipempty nextgroup=redifArgumentSecondaryInstitution contained
    +syntax match redifFieldSecondaryLocation /^Secondary-Location:/ skipwhite skipempty nextgroup=redifArgumentSecondaryLocation contained
    +syntax match redifFieldSecondaryName /^Secondary-Name:/ skipwhite skipempty nextgroup=redifArgumentSecondaryName contained
    +syntax match redifFieldSecondaryNameEnglish /^Secondary-Name-English:/ skipwhite skipempty nextgroup=redifArgumentSecondaryNameEnglish contained
    +syntax match redifFieldSecondaryPhone /^Secondary-Phone:/ skipwhite skipempty nextgroup=redifArgumentSecondaryPhone contained
    +syntax match redifFieldSecondaryPostal /^Secondary-Postal:/ skipwhite skipempty nextgroup=redifArgumentSecondaryPostal contained
    +syntax match redifFieldSeries /^Series:/ skipwhite skipempty nextgroup=redifArgumentSeries contained
    +syntax match redifFieldShortId /^Short-Id:/ skipwhite skipempty nextgroup=redifArgumentShortId contained
    +syntax match redifFieldSize /^Size:/ skipwhite skipempty nextgroup=redifArgumentSize contained
    +syntax match redifFieldSoftwareHandle /^Software-Handle:/ skipwhite skipempty nextgroup=redifArgumentSoftwareHandle contained
    +syntax match redifFieldTemplateType /^Template-Type:/ skipwhite skipempty nextgroup=redifArgumentTemplateType contained
    +syntax match redifFieldTertiaryDefunct /^Tertiary-Defunct:/ skipwhite skipempty nextgroup=redifArgumentTertiaryDefunct contained
    +syntax match redifFieldTertiaryEmail /^Tertiary-Email:/ skipwhite skipempty nextgroup=redifArgumentTertiaryEmail contained
    +syntax match redifFieldTertiaryFax /^Tertiary-Fax:/ skipwhite skipempty nextgroup=redifArgumentTertiaryFax contained
    +syntax match redifFieldTertiaryHomepage /^Tertiary-Homepage:/ skipwhite skipempty nextgroup=redifArgumentTertiaryHomepage contained
    +syntax match redifFieldTertiaryInstitution /^Tertiary-Institution:/ skipwhite skipempty nextgroup=redifArgumentTertiaryInstitution contained
    +syntax match redifFieldTertiaryLocation /^Tertiary-Location:/ skipwhite skipempty nextgroup=redifArgumentTertiaryLocation contained
    +syntax match redifFieldTertiaryName /^Tertiary-Name:/ skipwhite skipempty nextgroup=redifArgumentTertiaryName contained
    +syntax match redifFieldTertiaryNameEnglish /^Tertiary-Name-English:/ skipwhite skipempty nextgroup=redifArgumentTertiaryNameEnglish contained
    +syntax match redifFieldTertiaryPhone /^Tertiary-Phone:/ skipwhite skipempty nextgroup=redifArgumentTertiaryPhone contained
    +syntax match redifFieldTertiaryPostal /^Tertiary-Postal:/ skipwhite skipempty nextgroup=redifArgumentTertiaryPostal contained
    +syntax match redifFieldTitle /^Title:/ skipwhite skipempty nextgroup=redifArgumentTitle contained
    +syntax match redifFieldType /^Type:/ skipwhite skipempty nextgroup=redifArgumentType contained
    +syntax match redifFieldURL /^URL:/ skipwhite skipempty nextgroup=redifArgumentURL contained
    +syntax match redifFieldVersion /^Version:/ skipwhite skipempty nextgroup=redifArgumentVersion contained
    +syntax match redifFieldVolume /^Volume:/ skipwhite skipempty nextgroup=redifArgumentVolume contained
    +syntax match redifFieldWorkplaceEmail /^Workplace-Email:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceEmail contained
    +syntax match redifFieldWorkplaceFax /^Workplace-Fax:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceFax contained
    +syntax match redifFieldWorkplaceHomepage /^Workplace-Homepage:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceHomepage contained
    +syntax match redifFieldWorkplaceInstitution /^Workplace-Institution:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceInstitution contained
    +syntax match redifFieldWorkplaceLocation /^Workplace-Location:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceLocation contained
    +syntax match redifFieldWorkplaceName /^Workplace-Name:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceName contained
    +syntax match redifFieldWorkplaceNameEnglish /^Workplace-Name-English:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceNameEnglish contained
    +syntax match redifFieldWorkplaceOrganization /^Workplace-Organization:/ skipwhite skipempty nextgroup=redifArgumentWorkplaceOrganization contained
    +syntax match redifFieldWorkplacePhone /^Workplace-Phone:/ skipwhite skipempty nextgroup=redifArgumentWorkplacePhone contained
    +syntax match redifFieldWorkplacePostal /^Workplace-Postal:/ skipwhite skipempty nextgroup=redifArgumentWorkplacePostal contained
    +syntax match redifFieldYear /^Year:/ skipwhite skipempty nextgroup=redifArgumentYear contained
    +
    +highlight def link redifFieldAbstract redifField
    +highlight def link redifFieldArticleHandle redifField
    +highlight def link redifFieldAuthorArticle redifField
    +highlight def link redifFieldAuthorBook redifField
    +highlight def link redifFieldAuthorChapter redifField
    +highlight def link redifFieldAuthorEmail redifField
    +highlight def link redifFieldAuthorFax redifField
    +highlight def link redifFieldAuthorHomepage redifField
    +highlight def link redifFieldAuthorName redifField
    +highlight def link redifFieldAuthorNameFirst redifField
    +highlight def link redifFieldAuthorNameLast redifField
    +highlight def link redifFieldAuthorPaper redifField
    +highlight def link redifFieldAuthorPerson redifField
    +highlight def link redifFieldAuthorPhone redifField
    +highlight def link redifFieldAuthorPostal redifField
    +highlight def link redifFieldAuthorSoftware redifField
    +highlight def link redifFieldAuthorWorkplaceEmail redifField
    +highlight def link redifFieldAuthorWorkplaceFax redifField
    +highlight def link redifFieldAuthorWorkplaceHomepage redifField
    +highlight def link redifFieldAuthorWorkplaceInstitution redifField
    +highlight def link redifFieldAuthorWorkplaceLocation redifField
    +highlight def link redifFieldAuthorWorkplaceName redifField
    +highlight def link redifFieldAuthorWorkplaceNameEnglish redifField
    +highlight def link redifFieldAuthorWorkplacePhone redifField
    +highlight def link redifFieldAuthorWorkplacePostal redifField
    +highlight def link redifFieldAvailability redifField
    +highlight def link redifFieldBookHandle redifField
    +highlight def link redifFieldBookTitle redifField
    +highlight def link redifFieldChapterHandle redifField
    +highlight def link redifFieldChapter redifField
    +highlight def link redifFieldClassificationJEL redifField
    +highlight def link redifFieldContactEmail redifField
    +highlight def link redifFieldCreationDate redifField
    +highlight def link redifFieldDescription redifField
    +highlight def link redifFieldEdition redifField
    +highlight def link redifFieldEditorBook redifField
    +highlight def link redifFieldEditorEmail redifField
    +highlight def link redifFieldEditorFax redifField
    +highlight def link redifFieldEditorHomepage redifField
    +highlight def link redifFieldEditorName redifField
    +highlight def link redifFieldEditorNameFirst redifField
    +highlight def link redifFieldEditorNameLast redifField
    +highlight def link redifFieldEditorPerson redifField
    +highlight def link redifFieldEditorPhone redifField
    +highlight def link redifFieldEditorPostal redifField
    +highlight def link redifFieldEditorSeries redifField
    +highlight def link redifFieldEditorWorkplaceEmail redifField
    +highlight def link redifFieldEditorWorkplaceFax redifField
    +highlight def link redifFieldEditorWorkplaceHomepage redifField
    +highlight def link redifFieldEditorWorkplaceInstitution redifField
    +highlight def link redifFieldEditorWorkplaceLocation redifField
    +highlight def link redifFieldEditorWorkplaceName redifField
    +highlight def link redifFieldEditorWorkplaceNameEnglish redifField
    +highlight def link redifFieldEditorWorkplacePhone redifField
    +highlight def link redifFieldEditorWorkplacePostal redifField
    +highlight def link redifFieldEmail redifField
    +highlight def link redifFieldFax redifField
    +highlight def link redifFieldFileFormat redifField
    +highlight def link redifFieldFileFunction redifField
    +highlight def link redifFieldFileRestriction redifField
    +highlight def link redifFieldFileSize redifField
    +highlight def link redifFieldFileURL redifField
    +highlight def link redifFieldFollowup redifField
    +highlight def link redifFieldHandleOfArchive redifField
    +highlight def link redifFieldHandleOfInstitution redifField
    +highlight def link redifFieldHandleOfPerson redifField
    +highlight def link redifFieldHandleOfSeries redifField
    +highlight def link redifFieldHandleOfWork redifField
    +highlight def link redifFieldHasChapter redifField
    +highlight def link redifFieldHomepage redifField
    +highlight def link redifFieldInBook redifField
    +highlight def link redifFieldISBN redifField
    +highlight def link redifFieldISSN redifField
    +highlight def link redifFieldIssue redifField
    +highlight def link redifFieldJournal redifField
    +highlight def link redifFieldKeywords redifField
    +highlight def link redifFieldKeywords redifField
    +highlight def link redifFieldLanguage redifField
    +highlight def link redifFieldLastLoginDate redifField
    +highlight def link redifFieldLength redifField
    +highlight def link redifFieldMaintainerEmail redifField
    +highlight def link redifFieldMaintainerFax redifField
    +highlight def link redifFieldMaintainerName redifField
    +highlight def link redifFieldMaintainerPhone redifField
    +highlight def link redifFieldMonth redifField
    +highlight def link redifFieldNameASCII redifField
    +highlight def link redifFieldNameFirst redifField
    +highlight def link redifFieldNameFull redifField
    +highlight def link redifFieldNameLast redifField
    +highlight def link redifFieldNameMiddle redifField
    +highlight def link redifFieldNamePrefix redifField
    +highlight def link redifFieldNameSuffix redifField
    +highlight def link redifFieldName redifField
    +highlight def link redifFieldNote redifField
    +highlight def link redifFieldNotification redifField
    +highlight def link redifFieldNumber redifField
    +highlight def link redifFieldOrderEmail redifField
    +highlight def link redifFieldOrderHomepage redifField
    +highlight def link redifFieldOrderPostal redifField
    +highlight def link redifFieldOrderURL redifField
    +highlight def link redifFieldPages redifField
    +highlight def link redifFieldPaperHandle redifField
    +highlight def link redifFieldPhone redifField
    +highlight def link redifFieldPostal redifField
    +highlight def link redifFieldPredecessor redifField
    +highlight def link redifFieldPrice redifField
    +highlight def link redifFieldPrimaryDefunct redifField
    +highlight def link redifFieldPrimaryEmail redifField
    +highlight def link redifFieldPrimaryFax redifField
    +highlight def link redifFieldPrimaryHomepage redifField
    +highlight def link redifFieldPrimaryInstitution redifField
    +highlight def link redifFieldPrimaryLocation redifField
    +highlight def link redifFieldPrimaryName redifField
    +highlight def link redifFieldPrimaryNameEnglish redifField
    +highlight def link redifFieldPrimaryPhone redifField
    +highlight def link redifFieldPrimaryPostal redifField
    +highlight def link redifFieldProgrammingLanguage redifField
    +highlight def link redifFieldProviderEmail redifField
    +highlight def link redifFieldProviderFax redifField
    +highlight def link redifFieldProviderHomepage redifField
    +highlight def link redifFieldProviderInstitution redifField
    +highlight def link redifFieldProviderLocation redifField
    +highlight def link redifFieldProviderName redifField
    +highlight def link redifFieldProviderNameEnglish redifField
    +highlight def link redifFieldProviderPhone redifField
    +highlight def link redifFieldProviderPostal redifField
    +highlight def link redifFieldPublicationDate redifField
    +highlight def link redifFieldPublicationStatus redifField
    +highlight def link redifFieldPublicationType redifField
    +highlight def link redifFieldQuaternaryEmail redifField
    +highlight def link redifFieldQuaternaryFax redifField
    +highlight def link redifFieldQuaternaryHomepage redifField
    +highlight def link redifFieldQuaternaryInstitution redifField
    +highlight def link redifFieldQuaternaryLocation redifField
    +highlight def link redifFieldQuaternaryName redifField
    +highlight def link redifFieldQuaternaryNameEnglish redifField
    +highlight def link redifFieldQuaternaryPhone redifField
    +highlight def link redifFieldQuaternaryPostal redifField
    +highlight def link redifFieldRegisteredDate redifField
    +highlight def link redifFieldRequires redifField
    +highlight def link redifFieldRestriction redifField
    +highlight def link redifFieldRevisionDate redifField
    +highlight def link redifFieldSecondaryDefunct redifField
    +highlight def link redifFieldSecondaryEmail redifField
    +highlight def link redifFieldSecondaryFax redifField
    +highlight def link redifFieldSecondaryHomepage redifField
    +highlight def link redifFieldSecondaryInstitution redifField
    +highlight def link redifFieldSecondaryLocation redifField
    +highlight def link redifFieldSecondaryName redifField
    +highlight def link redifFieldSecondaryNameEnglish redifField
    +highlight def link redifFieldSecondaryPhone redifField
    +highlight def link redifFieldSecondaryPostal redifField
    +highlight def link redifFieldSeries redifField
    +highlight def link redifFieldShortId redifField
    +highlight def link redifFieldSize redifField
    +highlight def link redifFieldSoftwareHandle redifField
    +highlight def link redifFieldTemplateType redifField
    +highlight def link redifFieldTertiaryDefunct redifField
    +highlight def link redifFieldTertiaryEmail redifField
    +highlight def link redifFieldTertiaryFax redifField
    +highlight def link redifFieldTertiaryHomepage redifField
    +highlight def link redifFieldTertiaryInstitution redifField
    +highlight def link redifFieldTertiaryLocation redifField
    +highlight def link redifFieldTertiaryName redifField
    +highlight def link redifFieldTertiaryNameEnglish redifField
    +highlight def link redifFieldTertiaryPhone redifField
    +highlight def link redifFieldTertiaryPostal redifField
    +highlight def link redifFieldTitle redifField
    +highlight def link redifFieldTitle redifField
    +highlight def link redifFieldType redifField
    +highlight def link redifFieldURL redifField
    +highlight def link redifFieldVersion redifField
    +highlight def link redifFieldVolume redifField
    +highlight def link redifFieldWorkplaceEmail redifField
    +highlight def link redifFieldWorkplaceFax redifField
    +highlight def link redifFieldWorkplaceHomepage redifField
    +highlight def link redifFieldWorkplaceInstitution redifField
    +highlight def link redifFieldWorkplaceLocation redifField
    +highlight def link redifFieldWorkplaceName redifField
    +highlight def link redifFieldWorkplaceNameEnglish redifField
    +highlight def link redifFieldWorkplaceOrganization redifField
    +highlight def link redifFieldWorkplacePhone redifField
    +highlight def link redifFieldWorkplacePostal redifField
    +highlight def link redifFieldYear redifField
    +
    +" Deprecated
    +"     same as Provider-*
    +"     nextgroup=redifArgumentProvider*
    +syntax match redifFieldPublisherEmail /^Publisher-Email:/ skipwhite skipempty nextgroup=redifArgumentProviderEmail contained
    +syntax match redifFieldPublisherFax /^Publisher-Fax:/ skipwhite skipempty nextgroup=redifArgumentProviderFax contained
    +syntax match redifFieldPublisherHomepage /^Publisher-Homepage:/ skipwhite skipempty nextgroup=redifArgumentProviderHomepage contained
    +syntax match redifFieldPublisherInstitution /^Publisher-Institution:/ skipwhite skipempty nextgroup=redifArgumentProviderInstitution contained
    +syntax match redifFieldPublisherLocation /^Publisher-Location:/ skipwhite skipempty nextgroup=redifArgumentProviderLocation contained
    +syntax match redifFieldPublisherName /^Publisher-Name:/ skipwhite skipempty nextgroup=redifArgumentProviderName contained
    +syntax match redifFieldPublisherNameEnglish /^Publisher-Name-English:/ skipwhite skipempty nextgroup=redifArgumentProviderNameEnglish contained
    +syntax match redifFieldPublisherPhone /^Publisher-Phone:/ skipwhite skipempty nextgroup=redifArgumentProviderPhone contained
    +syntax match redifFieldPublisherPostal /^Publisher-Postal:/ skipwhite skipempty nextgroup=redifArgumentProviderPostal contained
    +
    +highlight def link redifFieldPublisherEmail redifFieldDeprecated
    +highlight def link redifFieldPublisherFax redifFieldDeprecated
    +highlight def link redifFieldPublisherHomepage redifFieldDeprecated
    +highlight def link redifFieldPublisherInstitution redifFieldDeprecated
    +highlight def link redifFieldPublisherLocation redifFieldDeprecated
    +highlight def link redifFieldPublisherName redifFieldDeprecated
    +highlight def link redifFieldPublisherNameEnglish redifFieldDeprecated
    +highlight def link redifFieldPublisherPhone redifFieldDeprecated
    +highlight def link redifFieldPublisherPostal redifFieldDeprecated
    +
    +" Standard arguments
    +"    By default, they contain all the argument until another field is started:
    +"        start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1
    +"    For arguments that must not span more than one line, use a match:
    +"        /\%(^\S\{-}:\)\@!\S.*/
    +"        AND ADD "display"
    +"    This is faster.
    +"
    +"    Those arguments are not highlighted so far. They are here for future
    +"    extensions.
    +"    TODO Find more RegEx for these arguments
    +"    	TODO Fax, Phone
    +"    	TODO URL, Homepage
    +"    	TODO Keywords
    +"    	TODO Classification-JEL
    +"    	TODO Short-Id, Author-Person, Editor-Person
    +"
    +"    Arguments that may span several lines:
    +syntax region redifArgumentAuthorWorkplaceLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplacePostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplacePostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentFileFunction start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentIssue start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentJournal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentOrderPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrice start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentRequires start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSize start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentVersion start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplacePhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplacePostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +
    +" Arguments that may not span several lines:
    +"    If you are sure that these arguments cannot span several lines, change
    +"    them to a match:
    +"        /\%(^\S\{-}:\)\@!\S.*/
    +"    AND ADD "display" after "contained"
    +"        You can use this command on each line that you want to change:
    +"        :s+\Vregion \(\w\+\) start=/\\%(^\\S\\{-}:\\)\\@!\\S/ end=/^\\S\\{-}:/me=s-1 contained+match \1 /\\%(^\\S\\{-}:\\)\\@!\\S.*/ contained display
    +syntax region redifArgumentAuthorFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorNameFirst start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorNameLast start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorPerson start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorPostal start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplaceFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplaceHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplaceName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplaceNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentAuthorWorkplacePhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorNameFirst start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorNameLast start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorPerson start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplaceFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplaceHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplaceLocation start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplaceName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplaceNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentEditorWorkplacePhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentFileURL start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentMaintainerFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentMaintainerName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentMaintainerPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNameFirst start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNameFull start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNameLast start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNameMiddle start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNamePrefix start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNameSuffix start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentNumber start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentOrderHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentOrderURL start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentPrimaryPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentProviderPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentQuaternaryPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSecondaryPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentSeries start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentShortId start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentTertiaryPhone start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentURL start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceFax start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceHomepage start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceName start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceNameEnglish start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +syntax region redifArgumentWorkplaceOrganization start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contained
    +
    +" Special arguments
    +"    Those arguments require special values
    +"    TODO Improve some RegEx
    +"    	TODO Improve Emails
    +"    	TODO Improve ISBN
    +"    	TODO Improve ISSN
    +"    	TODO Improve spell check (add words from economics.
    +"    	   expl=macroeconometrics, Schumpeterian, IS-LM, etc.)
    +"
    +"    Template-Type
    +syntax match redifArgumentTemplateType /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectTemplateType contained display
    +syntax match redifCorrectTemplateType /ReDIF-\%(Paper\|Article\|Chapter\|Book\|Software\|Archive\|Series\|Institution\|Person\)/ nextgroup=redifTemplateVersionNumberContainer contained display
    +syntax match redifTemplateVersionNumberContainer /.\+/ contains=redifTemplateVersionNumber contained display
    +syntax match redifTemplateVersionNumber / \d\+\.\d\+/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentTemplateType redifError
    +highlight def link redifCorrectTemplateType Constant
    +highlight def link redifTemplateVersionNumber Number
    +highlight def link redifTemplateVersionNumberContainer redifError
    +
    +"    Handles:
    +"
    +"        Handles of Works:
    +syntax match redifArgumentHandleOfWork /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentAuthorArticle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentAuthorBook /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentAuthorChapter /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentAuthorPaper /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentAuthorSoftware /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentEditorBook /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentEditorSeries /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentInBook /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentHasChapter /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentArticleHandle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentBookHandle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentChapterHandle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentPaperHandle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifArgumentSoftwareHandle /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfWork contained display
    +syntax match redifCorrectHandleOfWork /RePEc:\a\a\a:\%(_\@!\w\)\{6}:\S\+/ contains=redifForbiddenCharactersInHandle,redifBestPracticeInHandle nextgroup=redifWrongLineEnding contained display
    +" TODO Are those characters really forbidden???
    +syntax match redifForbiddenCharactersInHandle /[\/*?"<>|]/ contained display
    +syntax match redifBestPracticeInHandle /\<\%([vi]:[1-9]\d*\|y:[1-9]\d\{3}\|p:[1-9]\d*-[1-9]\d*\|i:\%(jan\|feb\|mar\|apr\|may\|jun\|jul\|aug\|sep\|oct\|nov\|dec\|spr\|sum\|aut\|win\|spe\|Q[1-4]\|\d\d-\d\d\)\|Q:[1-4]\)\>/ contained display
    +
    +highlight def link redifArgumentHandleOfWork redifError
    +highlight def link redifArgumentAuthorArticle redifError
    +highlight def link redifArgumentAuthorBook redifError
    +highlight def link redifArgumentAuthorChapter redifError
    +highlight def link redifArgumentAuthorPaper redifError
    +highlight def link redifArgumentAuthorSoftware redifError
    +highlight def link redifArgumentEditorBook redifError
    +highlight def link redifArgumentEditorSeries redifError
    +highlight def link redifArgumentInBook redifError
    +highlight def link redifArgumentHasChapter redifError
    +highlight def link redifArgumentArticleHandle redifError
    +highlight def link redifArgumentBookHandle redifError
    +highlight def link redifArgumentChapterHandle redifError
    +highlight def link redifArgumentPaperHandle redifError
    +highlight def link redifArgumentSoftwareHandle redifError
    +highlight def link redifForbiddenCharactersInHandle redifError
    +highlight def link redifBestPracticeInHandle redifSpecial
    +
    +"        Handles of Series:
    +syntax match redifArgumentHandleOfSeries /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfSeries contained display
    +syntax match redifArgumentFollowup /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfSeries contained display
    +syntax match redifArgumentPredecessor /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfSeries contained display
    +syntax match redifCorrectHandleOfSeries /RePEc:\a\a\a:\%(_\@!\w\)\{6}/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentHandleOfSeries redifError
    +highlight def link redifArgumentFollowup redifError
    +highlight def link redifArgumentPredecessor redifError
    +
    +"        Handles of Archives:
    +syntax match redifArgumentHandleOfArchive /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfArchive contained display
    +syntax match redifCorrectHandleOfArchive /RePEc:\a\a\a/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentHandleOfArchive redifError
    +
    +"        Handles of Person:
    +syntax match redifArgumentHandleOfPerson /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfPerson contained display
    +syntax match redifCorrectHandleOfPerson /\%(\%(:\@!\S\)\{-}:\)\{2}[1-9]\d\{3}\%(-02\%(-[12]\d\|-0[1-9]\)\|-\%(0[469]\|11\)\%(-30\|-[12]\d\|-0[1-9]\)\|-\%(0[13578]\|1[02]\)\%(-3[01]\|-[12]\d\|-0[1-9]\)\):\S\+/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentHandleOfPerson redifError
    +
    +"        Handles of Institution:
    +syntax match redifArgumentAuthorWorkplaceInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentEditorWorkplaceInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentPrimaryInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentProviderInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentPublisherInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentQuaternaryInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentSecondaryInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentTertiaryInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentWorkplaceInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentHandleOfInstitution /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentPrimaryDefunct /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentSecondaryDefunct /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +syntax match redifArgumentTertiaryDefunct /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectHandleOfInstitution contained display
    +" TODO Are digits authorized? Apparently not.
    +" Country codes:
    +" http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm
    +syntax match redifCorrectHandleOfInstitution /RePEc:\a\a\a:\a\{5}\(ea\|af\|ax\|al\|dz\|as\|ad\|ao\|ai\|aq\|ag\|ar\|am\|aw\|au\|at\|az\|bs\|bh\|bd\|bb\|by\|be\|bz\|bj\|bm\|bt\|bo\|bq\|ba\|bw\|bv\|br\|io\|bn\|bg\|bf\|bi\|kh\|cm\|ca\|cv\|ky\|cf\|td\|cl\|cn\|cx\|cc\|co\|km\|cg\|cd\|ck\|cr\|ci\|hr\|cu\|cw\|cy\|cz\|dk\|dj\|dm\|do\|ec\|eg\|sv\|gq\|er\|ee\|et\|fk\|fo\|fj\|fi\|fr\|gf\|pf\|tf\|ga\|gm\|ge\|de\|gh\|gi\|gr\|gl\|gd\|gp\|gu\|gt\|gg\|gn\|gw\|gy\|ht\|hm\|va\|hn\|hk\|hu\|is\|in\|id\|ir\|iq\|ie\|im\|il\|it\|jm\|jp\|je\|jo\|kz\|ke\|ki\|kp\|kr\|kw\|kg\|la\|lv\|lb\|ls\|lr\|ly\|li\|lt\|lu\|mo\|mk\|mg\|mw\|my\|mv\|ml\|mt\|mh\|mq\|mr\|mu\|yt\|mx\|fm\|md\|mc\|mn\|me\|ms\|ma\|mz\|mm\|na\|nr\|np\|nl\|nc\|nz\|ni\|ne\|ng\|nu\|nf\|mp\|no\|om\|pk\|pw\|ps\|pa\|pg\|py\|pe\|ph\|pn\|pl\|pt\|pr\|qa\|re\|ro\|ru\|rw\|bl\|sh\|kn\|lc\|mf\|pm\|vc\|ws\|sm\|st\|sa\|sn\|rs\|sc\|sl\|sg\|sx\|sk\|si\|sb\|so\|za\|gs\|ss\|es\|lk\|sd\|sr\|sj\|sz\|se\|ch\|sy\|tw\|tj\|tz\|th\|tl\|tg\|tk\|to\|tt\|tn\|tr\|tm\|tc\|tv\|ug\|ua\|ae\|gb\|us\|um\|uy\|uz\|vu\|ve\|vn\|vg\|vi\|wf\|eh\|ye\|zm\|zw\)/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentHandleOfInstitution redifError
    +highlight def link redifArgumentPrimaryDefunct redifError
    +highlight def link redifArgumentSecondaryDefunct redifError
    +highlight def link redifArgumentTertiaryDefunct redifError
    +
    +"    Emails:
    +syntax match redifArgumentAuthorEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentAuthorWorkplaceEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentContactEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentEditorEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentEditorWorkplaceEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentMaintainerEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentOrderEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentPrimaryEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentProviderEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentPublisherEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentQuaternaryEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentSecondaryEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentTertiaryEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifArgumentWorkplaceEmail /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectEmail contained display
    +syntax match redifCorrectEmail /\%(@\@!\S\)\+@\%(@\@!\S\)\+/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentAuthorEmail redifError
    +highlight def link redifArgumentAuthorWorkplaceEmail redifError
    +highlight def link redifArgumentContactEmail redifError
    +highlight def link redifArgumentEditorEmail redifError
    +highlight def link redifArgumentEditorWorkplaceEmail redifError
    +highlight def link redifArgumentEmail redifError
    +highlight def link redifArgumentMaintainerEmail redifError
    +highlight def link redifArgumentOrderEmail redifError
    +highlight def link redifArgumentPrimaryEmail redifError
    +highlight def link redifArgumentProviderEmail redifError
    +highlight def link redifArgumentPublisherEmail redifError
    +highlight def link redifArgumentQuaternaryEmail redifError
    +highlight def link redifArgumentSecondaryEmail redifError
    +highlight def link redifArgumentTertiaryEmail redifError
    +highlight def link redifArgumentWorkplaceEmail redifError
    +
    +"    Language
    +"    Source: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
    +syntax match redifArgumentLanguage /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectLanguage contained display
    +syntax match redifCorrectLanguage /\<\(aa\|ab\|af\|ak\|als\|am\|an\|ang\|ar\|arc\|as\|ast\|av\|ay\|az\|ba\|bar\|bat-smg\|bcl\|be\|be-x-old\|bg\|bh\|bi\|bm\|bn\|bo\|bpy\|br\|bs\|bug\|bxr\|ca\|ce\|ceb\|ch\|cho\|chr\|chy\|co\|cr\|cs\|csb\|cu\|cv\|cy\|da\|de\|diq\|dsb\|dv\|dz\|ee\|el\|en\|eo\|es\|et\|eu\|ext\|fa\|ff\|fi\|fiu-vro\|fj\|fo\|fr\|frp\|fur\|fy\|ga\|gd\|gil\|gl\|gn\|got\|gu\|gv\|ha\|haw\|he\|hi\|ho\|hr\|ht\|hu\|hy\|hz\|ia\|id\|ie\|ig\|ii\|ik\|ilo\|io\|is\|it\|iu\|ja\|jbo\|jv\|ka\|kg\|ki\|kj\|kk\|kl\|km\|kn\|khw\|ko\|kr\|ks\|ksh\|ku\|kv\|kw\|ky\|la\|lad\|lan\|lb\|lg\|li\|lij\|lmo\|ln\|lo\|lt\|lv\|map-bms\|mg\|mh\|mi\|mk\|ml\|mn\|mo\|mr\|ms\|mt\|mus\|my\|na\|nah\|nap\|nd\|nds\|nds-nl\|ne\|new\|ng\|nl\|nn\|no\|nr\|nso\|nrm\|nv\|ny\|oc\|oj\|om\|or\|os\|pa\|pag\|pam\|pap\|pdc\|pi\|pih\|pl\|pms\|ps\|pt\|qu\|rm\|rmy\|rn\|ro\|roa-rup\|ru\|rw\|sa\|sc\|scn\|sco\|sd\|se\|sg\|sh\|si\|simple\|sk\|sl\|sm\|sn\|so\|sq\|sr\|ss\|st\|su\|sv\|sw\|ta\|te\|tet\|tg\|th\|ti\|tk\|tl\|tlh\|tn\|to\|tpi\|tr\|ts\|tt\|tum\|tw\|ty\|udm\|ug\|uk\|ur\|uz\|ve\|vi\|vec\|vls\|vo\|wa\|war\|wo\|xal\|xh\|yi\|yo\|za\|zh\|zh-min-nan\|zh-yue\|zu\)\>/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentLanguage redifError
    +highlight def link redifCorrectLanguage redifSpecial
    +
    +"    Length
    +"    Based on the example in the documentation. But apparently any field is
    +"    possible
    +syntax region redifArgumentLength start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=redifGoodLength contained
    +syntax match redifGoodLength /1 page\|[1-9]\d*\%( pages\)\=/ contained display
    +
    +highlight def link redifGoodLength redifSpecial
    +
    +"    Publication-Type
    +syntax match redifArgumentPublicationType /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectPublicationType contained display
    +syntax match redifCorrectPublicationType /\<\(journal article\|book\|book chapter\|working paper\|conference paper\|report\|other\)\>/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentPublicationType redifError
    +highlight def link redifCorrectPublicationType redifSpecial
    +
    +"    Publication-Status
    +syntax region redifArgumentPublicationStatus start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=redifSpecialPublicationStatus contained
    +syntax match redifSpecialPublicationStatus /published\|forthcoming/ nextgroup=redifCorrectPublicationStatus contained display
    +syntax region redifCorrectPublicationStatus start=/./ end=/^\S\{-}:/me=s-1 contained
    +
    +highlight def link redifArgumentPublicationStatus redifError
    +highlight def link redifSpecialPublicationStatus redifSpecial
    +
    +"    Month
    +"    TODO Are numbers also allowed?
    +syntax match redifArgumentMonth /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodMonth contained display
    +syntax match redifGoodMonth /\<\(Jan\%(uary\)\=\|Feb\%(ruary\)\=\|Mar\%(ch\)\=\|Apr\%(il\)\=\|May\|June\=\|July\=\|Aug\%(ust\)\=\|Sep\%(tember\)\=\|Oct\%(ober\)\=\|Nov\%(ember\)\=\|Dec\%(ember\)\=\)\>/ contained display
    +
    +highlight def link redifGoodMonth redifSpecial
    +
    +"    Integers: Volume, Chapter
    +syntax match redifArgumentVolume /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectInteger contained display
    +syntax match redifArgumentChapter /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectInteger contained display
    +syntax match redifCorrectInteger /[1-9]\d*/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentVolume redifError
    +highlight def link redifArgumentChapter redifError
    +
    +"    Year
    +syntax match redifArgumentYear /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectYear contained display
    +syntax match redifCorrectYear /[1-9]\d\{3}/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentYear redifError
    +
    +"    Edition
    +"    Based on the example in the documentation.
    +syntax match redifArgumentEdition /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodEdition contained display
    +syntax match redifGoodEdition /1st\|2nd\|3rd\|[4-9]th\|[1-9]\d*\%(1st\|2nd\|3rd\|[4-9]th\)\|[1-9]\d*/ contained display
    +
    +highlight def link redifGoodEdition redifSpecial
    +
    +"    ISBN
    +syntax match redifArgumentISBN /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodISBN contained display
    +syntax match redifGoodISBN /\d[0-9-]\{8,15}\d/ contained display
    +
    +highlight def link redifGoodISBN redifSpecial
    +
    +"    ISSN
    +syntax match redifArgumentISSN /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodISSN contained display
    +syntax match redifGoodISSN /\d\{4}-\d\{3}[0-9X]/ contained display
    +
    +highlight def link redifGoodISSN redifSpecial
    +
    +"    File-Size
    +"    Based on the example in the documentation.
    +syntax region redifArgumentFileSize start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=redifGoodSize contained
    +syntax match redifGoodSize /kb\|bytes/ contained display
    +
    +highlight def link redifGoodSize redifSpecial
    +
    +"    Type
    +syntax match redifArgumentType /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectType contained display
    +syntax match redifCorrectType /ReDIF-Paper\|ReDIF-Software\|ReDIF-Article\|ReDIF-Chapter\|ReDIF-Book/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentType redifError
    +highlight def link redifCorrectType redifSpecial
    +
    +"    Dates: Publication-Date, Creation-Date, Revision-Date,
    +"    Last-Login-Date, Registration-Date
    +syntax match redifArgumentCreationDate /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectDate contained display
    +syntax match redifArgumentLastLoginDate /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectDate contained display
    +syntax match redifArgumentPublicationDate /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectDate contained display
    +syntax match redifArgumentRegisteredDate /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectDate contained display
    +syntax match redifArgumentRevisionDate /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectDate contained display
    +syntax match redifCorrectDate /[1-9]\d\{3}\%(-02\%(-[12]\d\|-0[1-9]\)\=\|-\%(0[469]\|11\)\%(-30\|-[12]\d\|-0[1-9]\)\=\|-\%(0[13578]\|1[02]\)\%(-3[01]\|-[12]\d\|-0[1-9]\)\=\)\=/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentCreationDate redifError
    +highlight def link redifArgumentLastLoginDate redifError
    +highlight def link redifArgumentPublicationDate redifError
    +highlight def link redifArgumentRegisteredDate redifError
    +highlight def link redifArgumentRevisionDate redifError
    +
    +"    Classification-JEL
    +syntax match redifArgumentClassificationJEL /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectJEL contained display
    +syntax match redifCorrectJEL /\<\%(\u\d\{,2}[,; \t]\s*\)*\u\d\{,2}/ contains=redifSpecialJEL nextgroup=redifWrongLineEnding contained display
    +syntax match redifSpecialJEL /\<\u\d\{,2}/ contained display
    +
    +highlight def link redifArgumentClassificationJEL redifError
    +highlight def link redifSpecialJEL redifSpecial
    +
    +"    Pages
    +syntax match redifArgumentPages /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectPages contained display
    +syntax match redifCorrectPages /[1-9]\d*-[1-9]\d*/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifArgumentPages redifError
    +
    +"    Name-ASCII
    +syntax match redifArgumentNameASCII /\%(^\S\{-}:\)\@!\S.*/ contains=redifCorrectNameASCII contained display
    +syntax match redifCorrectNameASCII /[ -~]/ contained display
    +
    +highlight def link redifArgumentNameASCII redifError
    +
    +"    Programming-Language
    +syntax match redifArgumentProgrammingLanguage /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodProgrammingLanguage contained display
    +syntax match redifGoodProgrammingLanguage /\/ nextgroup=redifWrongLineEnding contained display
    +
    +highlight def link redifGoodProgrammingLanguage redifSpecial
    +
    +"    File-Format
    +"    TODO The link in the documentation that gives the list of possible formats is broken.
    +"    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types
    +"    These are based on the examples in the documentation.
    +syntax match redifArgumentFileFormat /\%(^\S\{-}:\)\@!\S.*/ contains=redifGoodFormat contained display
    +syntax match redifGoodFormat "\a\+/[[:alpha:]+-]\+" nextgroup=redifWrongLineEnding contains=redifSpecialFormat contained display
    +syntax match redifSpecialFormat "application/atom+xml\|application/ecmascript\|application/EDI-X12\|application/EDIFACT\|application/json\|application/javascript\|application/octet-stream\|application/ogg\|application/pdf\|application/postscript\|application/rdf+xml\|application/rss+xml\|application/soap+xml\|application/font-woff\|application/xhtml+xml\|application/xml\|application/xml-dtd\|application/xop+xml\|application/zip\|application/gzip\|audio/basic\|audio/L24\|audio/mp4\|audio/mpeg\|audio/ogg\|audio/vorbis\|audio/vnd.rn-realaudio\|audio/vnd.wave\|audio/webm\|image/gif\|image/jpeg\|image/pjpeg\|image/png\|image/svg+xml\|image/tiff\|image/vnd.microsoft.icon\|message/http\|message/imdn+xml\|message/partial\|message/rfc822\|model/example\|model/iges\|model/mesh\|model/vrml\|model/x3d+binary\|model/x3d+vrml\|model/x3d+xml\|multipart/mixed\|multipart/alternative\|multipart/related\|multipart/form-data\|multipart/signed\|multipart/encrypted\|text/cmd\|text/css\|text/csv\|text/html\|text/javascript\|text/plain\|text/vcard\|text/xml\|video/mpeg\|video/mp4\|video/ogg\|video/quicktime\|video/webm\|video/x-matroska\|video/x-ms-wmv\|video/x-flv" contained display
    +
    +highlight def link redifSpecialFormat redifSpecial
    +highlight def link redifArgumentFileFormat redifError
    +
    +" Keywords
    +"     Spell checked
    +syntax match redifArgumentKeywords /\%(^\S\{-}:\)\@!\S.*/ contains=@Spell,redifKeywordsSemicolon contained
    +syntax match redifKeywordsSemicolon /;/ contained
    +
    +highlight def link redifKeywordsSemicolon redifSpecial
    +
    +" Other spell-checked arguments
    +"    Very useful when copy-pasting abstracts that may contain hyphens or
    +"    ligatures.
    +syntax region redifArgumentAbstract start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentAvailability start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentBookTitle start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentDescription start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentFileRestriction start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentNote start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentNotification start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentRestriction start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +syntax region redifArgumentTitle start=/\%(^\S\{-}:\)\@!\S/ end=/^\S\{-}:/me=s-1 contains=@Spell contained
    +
    +" Wrong line ending
    +syntax match redifWrongLineEnding /.\+/ contained display
    +
    +highlight def link redifWrongLineEnding redifError
    +
    +" Final highlight
    +highlight def link redifComment Comment
    +highlight def link redifError Error
    +highlight def link redifField Identifier
    +highlight def link redifFieldDeprecated Identifier
    +highlight def link redifSpecial Special
    +" For deprecated fields:
    +highlight redifFieldDeprecated term=undercurl cterm=undercurl gui=undercurl guisp=DarkGrey
    +
    +" Sync: The template-type (ReDIF-Paper, ReDIF-Archive, etc.) influences which
    +" fields can follow. Thus sync must search backwards for it.
    +"
    +" I would like to simply ask VIM to search backward for the first occurrence of
    +" /^Template-Type:/, but it does not seem to be possible, so I have to start
    +" from the beginning of the file... This might slow down a lot for files that
    +" contain a lot of Template-Type statements.
    +syntax sync fromstart
    +
    +" The problem with syntax sync match (tried below), it is that, for example,
    +" it cannot realize when it is inside a Author-Name cluster, which is inside a
    +" Template-Type template...
    +"
    +" TODO Is this linecont pattern really useful? It seems to work anyway...
    +"syntax sync linecont /^\(Template-Type:\)\=\s*$/
    +" TODO This sync is surprising... It seems to work on several lines even
    +" though I replaced \_s* by \s*, even without the linecont pattern...
    +"syntax sync match redifSyncForTemplatePaper groupthere redifRegionTemplatePaper /^Template-Type:\s*ReDIF-Paper \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateArticle groupthere redifRegionTemplateArticle /^Template-Type:\s*ReDIF-Article \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateChapter groupthere redifRegionTemplateChapter /^Template-Type:\s*ReDIF-Chapter \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateBook groupthere redifRegionTemplateBook /^Template-Type:\s*ReDIF-Book \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateSoftware groupthere redifRegionTemplateSoftware /^Template-Type:\s*ReDIF-Software \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateArchive groupthere redifRegionTemplateArchive /^Template-Type:\s*ReDIF-Archive \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateSeries groupthere redifRegionTemplateSeries /^Template-Type:\s*ReDIF-Series \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplateInstitution groupthere redifRegionTemplateInstitution /^Template-Type:\s*ReDIF-Institution \d\+\.\d\+/
    +"syntax sync match redifSyncForTemplatePerson groupthere redifRegionTemplatePerson /^Template-Type:\s*ReDIF-Person \d\+\.\d\+/
    +
    +" I do not really know how sync linebreaks works, but it helps when making
    +" changes on the argument when this argument is not on the same line than its
    +" field. I just assume that people won't leave more than one line of
    +" whitespace between fields and arguments (which is already very unlikely)
    +" hence the value of 2.
    +syntax sync linebreaks=2
    +
    +" Since folding is defined by the syntax, set foldmethod to syntax.
    +set foldmethod=syntax
    +
    +" Set "b:current_syntax" to the name of the syntax at the end:
    +let b:current_syntax="redif"
    diff --git a/git/usr/share/vim/vim92/syntax/registry.vim b/git/usr/share/vim/vim92/syntax/registry.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..67b5e49bcb79c088cc864b2717c9032863b99e9e
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/registry.vim
    @@ -0,0 +1,103 @@
    +" Vim syntax file
    +" Language:	Windows Registry export with regedit (*.reg)
    +" Maintainer:	Dominique Stéphan (dominique@mggen.com)
    +" URL: 		http://www.mggen.com/vim/syntax/registry.zip (doesn't work)
    +" Last change:	2014 Oct 31
    +"		Included patch from Alexander A. Ulitin
    +
    +" clear any unwanted syntax defs
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" shut case off
    +syn case ignore
    +
    +" Head of regedit .reg files, it's REGEDIT4 on Win9#/NT
    +syn match registryHead		"^REGEDIT[0-9]*\s*$\|^Windows Registry Editor Version \d*\.\d*\s*$"
    +
    +" Comment
    +syn match  registryComment	"^;.*$"
    +
    +" Registry Key constant
    +syn keyword registryHKEY	HKEY_LOCAL_MACHINE HKEY_CLASSES_ROOT HKEY_CURRENT_USER
    +syn keyword registryHKEY	HKEY_USERS HKEY_CURRENT_CONFIG HKEY_DYN_DATA
    +" Registry Key shortcuts
    +syn keyword registryHKEY	HKLM HKCR HKCU HKU HKCC HKDD
    +
    +" Some values often found in the registry
    +" GUID (Global Unique IDentifier)
    +syn match   registryGUID	"{[0-9A-Fa-f]\{8}\-[0-9A-Fa-f]\{4}\-[0-9A-Fa-f]\{4}\-[0-9A-Fa-f]\{4}\-[0-9A-Fa-f]\{12}}" contains=registrySpecial
    +
    +" Disk
    +" syn match   registryDisk	"[a-zA-Z]:\\\\"
    +
    +" Special and Separator characters
    +syn match   registrySpecial	"\\"
    +syn match   registrySpecial	"\\\\"
    +syn match   registrySpecial	"\\\""
    +syn match   registrySpecial	"\."
    +syn match   registrySpecial	","
    +syn match   registrySpecial	"\/"
    +syn match   registrySpecial	":"
    +syn match   registrySpecial	"-"
    +
    +" String
    +syn match   registryString	"\".*\"" contains=registryGUID,registrySpecial
    +
    +" Path
    +syn region  registryPath		start="\[" end="\]" contains=registryHKEY,registryGUID,registrySpecial
    +
    +" Path to remove
    +" like preceding path but with a "-" at begin
    +syn region registryRemove	start="\[\-" end="\]" contains=registryHKEY,registryGUID,registrySpecial
    +
    +" Subkey
    +syn match  registrySubKey		"^\".*\"="
    +" Default value
    +syn match  registrySubKey		"^@="
    +
    +" Numbers
    +
    +" Hex or Binary
    +" The format can be precised between () :
    +" 0    REG_NONE
    +" 1    REG_SZ
    +" 2    REG_EXPAND_SZ
    +" 3    REG_BINARY
    +" 4    REG_DWORD, REG_DWORD_LITTLE_ENDIAN
    +" 5    REG_DWORD_BIG_ENDIAN
    +" 6    REG_LINK
    +" 7    REG_MULTI_SZ
    +" 8    REG_RESOURCE_LIST
    +" 9    REG_FULL_RESOURCE_DESCRIPTOR
    +" 10   REG_RESOURCE_REQUIREMENTS_LIST
    +" The value can take several lines, if \ ends the line
    +" The limit to 999 matches is arbitrary, it avoids Vim crashing on a very long
    +" line of hex values that ends in a comma.
    +"syn match registryHex		"hex\(([0-9]\{0,2})\)\=:\([0-9a-fA-F]\{2},\)\{0,999}\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial
    +syn match registryHex		"hex\(([0-9]\{0,2})\)\=:\([0-9a-fA-F]\{2},\)*\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial
    +syn match registryHex		"^\s*\([0-9a-fA-F]\{2},\)\{0,999}\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial
    +" Dword (32 bits)
    +syn match registryDword		"dword:[0-9a-fA-F]\{8}$" contains=registrySpecial
    +
    +
    +" The default methods for highlighting.  Can be overridden later
    +hi def link registryComment	Comment
    +hi def link registryHead		Constant
    +hi def link registryHKEY		Constant
    +hi def link registryPath		Special
    +hi def link registryRemove	PreProc
    +hi def link registryGUID		Identifier
    +hi def link registrySpecial	Special
    +hi def link registrySubKey	Type
    +hi def link registryString	String
    +hi def link registryHex		Number
    +hi def link registryDword		Number
    +
    +
    +
    +let b:current_syntax = "registry"
    +
    +" vim:ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/rego.vim b/git/usr/share/vim/vim92/syntax/rego.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..bc82030488591789bdf65dd0c426d6bf65f86e74
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rego.vim
    @@ -0,0 +1,120 @@
    +" Vim syntax file
    +" Language: rego policy language
    +" Maintainer: Matt Dunford (zenmatic@gmail.com)
    +" URL:        https://github.com/zenmatic/vim-syntax-rego
    +" Last Change: 2022 Dec 4
    +
    +" https://www.openpolicyagent.org/docs/latest/policy-language/
    +
    +" quit when a (custom) syntax file was already loaded
    +if exists("b:current_syntax")
    +	finish
    +endif
    +
    +syn case match
    +
    +syn keyword regoDirective package import allow deny
    +syn keyword regoKeywords as default else every false if import package not null true with some in print
    +
    +syn keyword regoFuncAggregates count sum product max min sort all any
    +syn match regoFuncArrays "\"
    +syn keyword regoFuncSets intersection union
    +
    +syn keyword regoFuncStrings concat /\/ endswith format_int indexof indexof_n lower replace split sprintf startswith substring trim trim_left trim_prefix trim_right trim_suffix trim_space upper
    +syn match regoFuncStrings2 "\"
    +syn match regoFuncStrings3 "\"
    +
    +syn keyword regoFuncRegex re_match
    +syn match regoFuncRegex2 "\"
    +
    +syn match regoFuncUuid "\"
    +syn match regoFuncBits "\"
    +syn match regoFuncObject "\"
    +syn match regoFuncGlob "\"
    +syn match regoFuncUnits "\"
    +syn keyword regoFuncTypes is_number is_string is_boolean is_array is_set is_object is_null type_name
    +syn match regoFuncEncoding1 "\"
    +syn match regoFuncEncoding2 "\"
    +syn match regoFuncEncoding3 "\"
    +syn match regoFuncEncoding4 "\<\(json\|yaml\)\.\(is_valid\|marshal\|unmarshal\)\>"
    +syn match regoFuncEncoding5 "\"
    +syn match regoFuncTokenSigning "\"
    +syn match regoFuncTokenVerification1 "\"
    +syn match regoFuncTokenVerification2 "\"
    +syn match regoFuncTime "\"
    +syn match regoFuncCryptography "\"
    +syn match regoFuncCryptography "\"
    +syn match regoFuncGraphQl "\"
    +syn match regoFuncHttp "\"
    +syn match regoFuncNet "\"
    +syn match regoFuncRego "\"
    +syn match regoFuncOpa "\"
    +syn keyword regoFuncDebugging trace
    +syn match regoFuncRand "\"
    +
    +syn match   regoFuncNumbers "\"
    +syn keyword regoFuncNumbers round ceil floor abs
    +
    +syn match regoFuncSemver "\"
    +syn keyword regoFuncConversions to_number
    +syn match regoFuncHex "\"
    +
    +hi def link regoFuncUuid Statement
    +hi def link regoFuncBits Statement
    +hi def link regoDirective Statement
    +hi def link regoKeywords Statement
    +hi def link regoFuncAggregates Statement
    +hi def link regoFuncArrays Statement
    +hi def link regoFuncSets Statement
    +hi def link regoFuncStrings Statement
    +hi def link regoFuncStrings2 Statement
    +hi def link regoFuncStrings3 Statement
    +hi def link regoFuncRegex Statement
    +hi def link regoFuncRegex2 Statement
    +hi def link regoFuncGlob Statement
    +hi def link regoFuncUnits Statement
    +hi def link regoFuncTypes Statement
    +hi def link regoFuncEncoding1 Statement
    +hi def link regoFuncEncoding2 Statement
    +hi def link regoFuncEncoding3 Statement
    +hi def link regoFuncEncoding4 Statement
    +hi def link regoFuncEncoding5 Statement
    +hi def link regoFuncTokenSigning Statement
    +hi def link regoFuncTokenVerification1 Statement
    +hi def link regoFuncTokenVerification2 Statement
    +hi def link regoFuncTime Statement
    +hi def link regoFuncCryptography Statement
    +hi def link regoFuncGraphs Statement
    +hi def link regoFuncGraphQl Statement
    +hi def link regoFuncGraphs2 Statement
    +hi def link regoFuncHttp Statement
    +hi def link regoFuncNet Statement
    +hi def link regoFuncRego Statement
    +hi def link regoFuncOpa Statement
    +hi def link regoFuncDebugging Statement
    +hi def link regoFuncObject Statement
    +hi def link regoFuncNumbers Statement
    +hi def link regoFuncSemver Statement
    +hi def link regoFuncConversions Statement
    +hi def link regoFuncHex Statement
    +hi def link regoFuncRand Statement
    +
    +" https://www.openpolicyagent.org/docs/latest/policy-language/#strings
    +syn region      regoString            start=+"+ skip=+\\\\\|\\"+ end=+"+
    +syn region      regoRawString         start=+`+ end=+`+
    +
    +hi def link     regoString            String
    +hi def link     regoRawString         String
    +
    +" Comments; their contents
    +syn keyword     regoTodo              contained TODO FIXME XXX BUG
    +syn cluster     regoCommentGroup      contains=regoTodo
    +syn region      regoComment           start="#" end="$" contains=@regoCommentGroup,@Spell
    +
    +hi def link     regoComment           Comment
    +hi def link     regoTodo              Todo
    +
    +let b:current_syntax = 'rego'
    diff --git a/git/usr/share/vim/vim92/syntax/remind.vim b/git/usr/share/vim/vim92/syntax/remind.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..9e7ff22e14dfb4d1123d4b6f9ad415c21de47ec5
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/remind.vim
    @@ -0,0 +1,73 @@
    +" Vim syntax file
    +" Language:	Remind
    +" Maintainer:	Davide Alberani 
    +" Last Change:	02 Nov 2015
    +" Version:	0.7
    +" URL:		http://ismito.it/vim/syntax/remind.vim
    +"
    +" Remind is a sophisticated calendar and alarm program.
    +" You can download remind from:
    +"   https://www.roaringpenguin.com/products/remind
    +"
    +" Changelog
    +" version 0.7: updated email and link
    +" version 0.6: added THROUGH keyword (courtesy of Ben Orchard)
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" shut case off.
    +syn case ignore
    +
    +syn keyword remindCommands	REM OMIT SET FSET UNSET
    +syn keyword remindExpiry	UNTIL FROM SCANFROM SCAN WARN SCHED THROUGH
    +syn keyword remindTag		PRIORITY TAG
    +syn keyword remindTimed		AT DURATION
    +syn keyword remindMove		ONCE SKIP BEFORE AFTER
    +syn keyword remindSpecial	INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR
    +syn keyword remindRun		MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON
    +syn keyword remindConditional	IF ELSE ENDIF IFTRIG
    +syn keyword remindDebug		DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE
    +syn match remindComment		"#.*$"
    +syn region remindString		start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline
    +syn region remindString		start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline
    +syn match remindVar		"\$[_a-zA-Z][_a-zA-Z0-9]*"
    +syn match remindSubst		"%[^ ]"
    +syn match remindAdvanceNumber	"\(\*\|+\|-\|++\|--\)[0-9]\+"
    +" XXX: use different separators for dates and times?
    +syn match remindDateSeparators	"[/:@\.-]" contained
    +syn match remindTimes		"[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators
    +" XXX: why not match only valid dates?  Ok, checking for 'Feb the 30' would
    +"       be impossible, but at least check for valid months and times.
    +syn match remindDates		"'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?'" contains=remindDateSeparators
    +" This will match trailing whitespaces that seem to break rem2ps.
    +" Courtesy of Michael Dunn.
    +syn match remindWarning		display excludenl "\S\s\+$"ms=s+1
    +
    +
    +
    +hi def link remindCommands		Function
    +hi def link remindExpiry		Repeat
    +hi def link remindTag		Label
    +hi def link remindTimed		Statement
    +hi def link remindMove		Statement
    +hi def link remindSpecial		Include
    +hi def link remindRun		Function
    +hi def link remindConditional	Conditional
    +hi def link remindComment		Comment
    +hi def link remindTimes		String
    +hi def link remindString		String
    +hi def link remindDebug		Debug
    +hi def link remindVar		Identifier
    +hi def link remindSubst		Constant
    +hi def link remindAdvanceNumber	Number
    +hi def link remindDateSeparators	Comment
    +hi def link remindDates		String
    +hi def link remindWarning		Error
    +
    +
    +let b:current_syntax = "remind"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/requirements.vim b/git/usr/share/vim/vim92/syntax/requirements.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..a87d1e9a39922496a98a555149cd8f34a87d5ef7
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/requirements.vim
    @@ -0,0 +1,67 @@
    +" the Requirements File Format syntax support for Vim
    +" Version: 1.8.0
    +" Author:  raimon 
    +" Upstream: https://github.com/raimon49/requirements.txt.vim
    +" License: MIT LICENSE
    +" The MIT License (MIT)
    +"
    +" Copyright (c) 2015 raimon
    +"
    +" Permission is hereby granted, free of charge, to any person obtaining a copy
    +" of this software and associated documentation files (the "Software"), to deal
    +" in the Software without restriction, including without limitation the rights
    +" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    +" copies of the Software, and to permit persons to whom the Software is
    +" furnished to do so, subject to the following conditions:
    +"
    +" The above copyright notice and this permission notice shall be included in all
    +" copies or substantial portions of the Software.
    +"
    +" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    +" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    +" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    +" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    +" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    +" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    +" SOFTWARE.
    +
    +if exists("b:current_syntax") && b:current_syntax == "requirements"
    +    finish
    +endif
    +
    +syn case match
    +
    +" https://pip.pypa.io/en/stable/reference/requirements-file-format/
    +" https://pip.pypa.io/en/stable/reference/inspect-report/#example
    +syn keyword requirementsKeyword implementation_name implementation_version os_name platform_machine platform_release platform_system platform_version python_full_version platform_python_implementation python_version sys_platform contained
    +syn region requirementsSubst matchgroup=requirementsSubstDelim start="\V${" end="\V}"
    +syn region requirementsString matchgroup=requirementsStringDelim start=`'` skip=`\\'` end=`'`
    +syn region requirementsString matchgroup=requirementsStringDelim start=`"` skip=`\\"` end=`"`
    +syn match requirementsVersion "\v\d+[a-zA-Z0-9\.\-\*]*"
    +syn region requirementsComment start="[ \t]*#" end="$"
    +syn match requirementsCommandOption "\v^\[?--?[a-zA-Z\-]*\]?"
    +syn match requirementsVersionSpecifiers "\v(\=\=\=?|\<\=?|\>\=?|\~\=|\!\=)"
    +syn match requirementsPackageName "\v^([a-zA-Z0-9][a-zA-Z0-9\-_\.]*[a-zA-Z0-9])"
    +syn match requirementsExtras "\v\[\S+\]"
    +syn match requirementsVersionControls "\v(git\+?|hg\+|svn\+|bzr\+).*://.\S+"
    +syn match requirementsURLs "\v(\@\s)?(https?|ftp|gopher)://?[^\s/$.?#].\S*"
    +syn match requirementsEnvironmentMarkers "\v;\s[^#]+" contains=requirementsKeyword,requirementsVersionSpecifiers,requirementsString
    +
    +hi def link requirementsKeyword Keyword
    +hi def link requirementsSubstDelim Delimiter
    +hi def link requirementsSubst PreProc
    +hi def link requirementsStringDelim Delimiter
    +hi def link requirementsString String
    +hi def link requirementsVersion Number
    +hi def link requirementsComment Comment
    +hi def link requirementsCommandOption Special
    +hi def link requirementsVersionSpecifiers Boolean
    +hi def link requirementsPackageName Identifier
    +hi def link requirementsExtras Type
    +hi def link requirementsVersionControls Underlined
    +hi def link requirementsURLs Underlined
    +hi def link requirementsEnvironmentMarkers Macro
    +
    +let b:current_syntax = "requirements"
    +
    +" vim: et sw=4 ts=4 sts=4:
    diff --git a/git/usr/share/vim/vim92/syntax/resolv.vim b/git/usr/share/vim/vim92/syntax/resolv.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..9a2dec51ce02c8801dd67474258099ea8bc5b4c9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/resolv.vim
    @@ -0,0 +1,119 @@
    +" Vim syntax file
    +" Language: resolver configuration file
    +" Maintainer: Radu Dineiu 
    +" URL: https://raw.github.com/rid9/vim-resolv/master/resolv.vim
    +" Last Change: 2020 Mar 10
    +" Version: 1.4
    +"
    +" Credits:
    +"   David Necas (Yeti) 
    +"   Stefano Zacchiroli 
    +"   DJ Lucas 
    +"
    +" Changelog:
    +"   - 1.4: Added IPv6 support for sortlist.
    +"   - 1.3: Added IPv6 support for IPv4 dot-decimal notation.
    +"   - 1.2: Added new options.
    +"   - 1.1: Added IPv6 support.
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +	finish
    +endif
    +
    +" Errors, comments and operators
    +syn match resolvError /./
    +syn match resolvComment /\s*[#;].*$/
    +syn match resolvOperator /[\/:]/ contained
    +
    +" IP
    +syn cluster resolvIPCluster contains=resolvIPError,resolvIPSpecial
    +syn match resolvIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained
    +syn match resolvIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
    +
    +" General
    +syn match resolvIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@resolvIPCluster
    +syn match resolvIPNetmask contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?/ contains=resolvOperator,@resolvIPCluster
    +syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_\.]*/
    +
    +" Nameserver IPv4
    +syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster
    +
    +" Nameserver IPv6
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{6}\%(\x\{1,4}:\x\{1,4}\)\>/
    +syn match resolvIPNameserver contained /\s\@<=::\%(\x\{1,4}:\)\{,6}\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\s\@<=::\%(\x\{1,4}:\)\{,5}\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{1}:\%(\x\{1,4}:\)\{,5}\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{1}:\%(\x\{1,4}:\)\{,4}\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{2}:\%(\x\{1,4}:\)\{,4}\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{2}:\%(\x\{1,4}:\)\{,3}\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{3}:\%(\x\{1,4}:\)\{,3}\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{3}:\%(\x\{1,4}:\)\{,2}\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{4}:\%(\x\{1,4}:\)\{,2}\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{4}:\%(\x\{1,4}:\)\{,1}\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{5}:\%(\d\{1,4}\.\)\{3}\d\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{6}:\x\{1,4}\>/
    +syn match resolvIPNameserver contained /\<\%(\x\{1,4}:\)\{1,7}:\%(\s\|;\|$\)\@=/
    +
    +" Search hostname
    +syn match resolvHostnameSearch contained /\%(\%([-0-9A-Za-z_]\+\.\)*[-0-9A-Za-z_]\+\.\?\%(\s\|$\)\)\+/
    +
    +" Sortlist IPv4
    +syn match resolvIPNetmaskSortList contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?\%(\s\|$\)\)\+/ contains=resolvOperator,@resolvIPCluster
    +
    +" Sortlist IPv6
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{6}\%(\x\{1,4}:\x\{1,4}\)\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\s\@<=::\%(\x\{1,4}:\)\{,6}\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\s\@<=::\%(\x\{1,4}:\)\{,5}\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{1}:\%(\x\{1,4}:\)\{,5}\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{1}:\%(\x\{1,4}:\)\{,4}\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{2}:\%(\x\{1,4}:\)\{,4}\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{2}:\%(\x\{1,4}:\)\{,3}\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{3}:\%(\x\{1,4}:\)\{,3}\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{3}:\%(\x\{1,4}:\)\{,2}\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{4}:\%(\x\{1,4}:\)\{,2}\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{4}:\%(\x\{1,4}:\)\{,1}\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{5}:\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{6}:\x\{1,4}\%(\/\d\{1,3}\)\?\>/
    +syn match resolvIPNetmaskSortList contained /\<\%(\x\{1,4}:\)\{1,7}:\%(\s\|;\|$\)\@=\%(\/\d\{1,3}\)\?/
    +
    +" Identifiers
    +syn match resolvNameserver /^\s*nameserver\>/ nextgroup=resolvIPNameserver skipwhite
    +syn match resolvLwserver /^\s*lwserver\>/ nextgroup=resolvIPNameserver skipwhite
    +syn match resolvDomain /^\s*domain\>/ nextgroup=resolvHostname skipwhite
    +syn match resolvSearch /^\s*search\>/ nextgroup=resolvHostnameSearch skipwhite
    +syn match resolvSortList /^\s*sortlist\>/ nextgroup=resolvIPNetmaskSortList skipwhite
    +syn match resolvOptions /^\s*options\>/ nextgroup=resolvOption skipwhite
    +
    +" Options
    +syn match resolvOption /\<\%(debug\|no_tld_query\|no-tld-query\|rotate\|no-check-names\|inet6\|ip6-bytestring\|\%(no-\)\?ip6-dotint\|edns0\|single-request\%(-reopen\)\?\|use-vc\)\>/ contained nextgroup=resolvOption skipwhite
    +syn match resolvOption /\<\%(ndots\|timeout\|attempts\):\d\+\>/ contained contains=resolvOperator nextgroup=resolvOption skipwhite
    +
    +" Additional errors
    +syn match resolvError /^search .\{257,}/
    +
    +hi def link resolvIP Number
    +hi def link resolvIPNetmask Number
    +hi def link resolvHostname String
    +hi def link resolvOption String
    +
    +hi def link resolvIPNameserver Number
    +hi def link resolvHostnameSearch String
    +hi def link resolvIPNetmaskSortList Number
    +
    +hi def link resolvNameServer Identifier
    +hi def link resolvLwserver Identifier
    +hi def link resolvDomain Identifier
    +hi def link resolvSearch Identifier
    +hi def link resolvSortList Identifier
    +hi def link resolvOptions Identifier
    +
    +hi def link resolvComment Comment
    +hi def link resolvOperator Operator
    +hi def link resolvError Error
    +hi def link resolvIPError Error
    +hi def link resolvIPSpecial Special
    +
    +let b:current_syntax = "resolv"
    +
    +" vim: ts=8 ft=vim
    diff --git a/git/usr/share/vim/vim92/syntax/reva.vim b/git/usr/share/vim/vim92/syntax/reva.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..74a399bcb4e5dfbb182768130526a5b2869d8aad
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/reva.vim
    @@ -0,0 +1,191 @@
    +" Vim syntax file
    +" Language:	Reva Forth
    +" Version:	2011.2
    +" Last Change:	2019 Sep 27
    +" Maintainer:	Ron Aaron 
    +" URL:		https://github.com/ronaaron/reva
    +" Filetypes:	*.rf *.frt
    +" NOTE: 	You should also have the ftplugin/reva.vim file to set 'isk'
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +   finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn clear
    +
    +" Synchronization method
    +syn sync ccomment
    +syn sync maxlines=100
    +
    +
    +syn case ignore
    +" Some special, non-FORTH keywords
    +"syn keyword revaTodo contained todo fixme bugbug todo: bugbug: note:
    +syn match revaTodo contained '\(todo\|fixme\|bugbug\|note\)[:]*'
    +syn match revaTodo contained 'copyright\(\s(c)\)\=\(\s[0-9]\{2,4}\)\='
    +
    +syn match revaHelpDesc '\S.*' contained
    +syn match revaHelpStuff '\<\(def\|stack\|ctx\|ver\|os\|related\):\s.*'
    +syn region revaHelpStuff start='\' end='^\S' contains=revaHelpDesc
    +syn region revaEOF start='\<|||\>' end='{$}' contains=revaHelpStuff
    +
    +
    +syn case match
    +" basic mathematical and logical operators
    +syn keyword revaoperators + - * / mod /mod negate abs min max umin umax
    +syn keyword revaoperators and or xor not invert 1+ 1-
    +syn keyword revaoperators m+ */ */mod m* um* m*/ um/mod fm/mod sm/rem
    +syn keyword revaoperators d+ d- dnegate dabs dmin dmax > < = >> << u< <>
    +
    +
    +" stack manipulations
    +syn keyword revastack drop nip dup over tuck swap rot -rot ?dup pick roll
    +syn keyword revastack 2drop 2nip 2dup 2over 2swap 2rot 3drop
    +syn keyword revastack >r r> r@ rdrop
    +" syn keyword revastack sp@ sp! rp@ rp!
    +
    +" address operations
    +syn keyword revamemory @ ! +! c@ c! 2@ 2! align aligned allot allocate here free resize
    +syn keyword revaadrarith chars char+ cells cell+ cell cell- 2cell+ 2cell- 3cell+ 4cell+
    +syn keyword revamemblks move fill
    +
    +" conditionals
    +syn keyword revacond if else then =if >if if if0  ;; catch throw
    +
    +" iterations
    +syn keyword revaloop while repeat until again
    +syn keyword revaloop do loop i j leave  unloop skip more
    +
    +" new words
    +syn match revaColonDef '\ immediate
    +syn keyword revadefine compile literal ' [']
    +
    +" Built in words
    +com! -nargs=+ Builtin syn keyword revaBuiltin 
    +Builtin execute ahead interp bye >body here pad words make
    +Builtin accept close cr creat delete ekey emit fsize ioerr key?
    +Builtin mtime open/r open/rw read rename seek space spaces stat
    +Builtin tell type type_ write (seek) (argv) (save) 0; 0drop;
    +Builtin >class >lz >name >xt alias alias: appname argc asciiz, asciizl,
    +Builtin body> clamp depth disassemble findprev fnvhash getenv here,
    +Builtin iterate last! last@ later link lz> lzmax os parse/ peek
    +Builtin peek-n pop prior push put rp@ rpick save setenv slurp
    +Builtin stack-empty? stack-iterate stack-size stack: THROW_BADFUNC
    +Builtin THROW_BADLIB THROW_GENERIC used xt>size z,
    +Builtin +lplace +place -chop /char /string bounds c+lplace c+place
    +Builtin chop cmp cmpi count lc lcount lplace place quote rsplit search split
    +Builtin zcount zt \\char
    +Builtin chdir g32 k32 u32 getcwd getpid hinst osname stdin stdout
    +Builtin (-lib) (bye) (call) (else) (find) (func) (here) (if (lib) (s0) (s^)
    +Builtin (to~) (while) >in >rel ?literal appstart cold compiling? context? d0 default_class
    +Builtin defer? dict dolstr dostr find-word h0 if) interp isa onexit
    +Builtin onstartup pdoes pop>ebx prompt rel> rp0 s0 src srcstr state str0 then,> then> tib
    +Builtin tp vector vector! word? xt? .ver revaver revaver# && '' 'constant 'context
    +Builtin 'create 'defer 'does 'forth 'inline 'macro 'macront 'notail 'value 'variable
    +Builtin (.r) (context) (create) (header) (hide) (inline) (p.r) (words~) (xfind)
    +Builtin ++ -- , -2drop -2nip -link -swap . .2x .classes .contexts .funcs .libs .needs .r
    +Builtin .rs .x 00; 0do 0if 1, 2, 3, 2* 2/ 2constant 2variable 3dup 4dup ;then >base >defer
    +Builtin >rr ? ?do @execute @rem appdir argv as back base base! between chain cleanup-libs
    +Builtin cmove> context?? ctrl-c ctx>name data: defer: defer@def dictgone do_cr eleave
    +Builtin endcase endof eval exception exec false find func: header heapgone help help/
    +Builtin hex# hide inline{ last lastxt lib libdir literal, makeexename mnotail ms ms@
    +Builtin newclass noop nosavedict notail nul of off on p: padchar parse parseln
    +Builtin parsews rangeof rdepth remains reset reva revaused rol8 rr> scratch setclass sp
    +Builtin strof super> temp time&date true turnkey? undo vfunc: w! w@
    +Builtin xchg xchg2 xfind xt>name xwords { {{ }} }  _+ _1+ _1- pathsep case \||
    +" p[ [''] [ [']
    +
    +
    +" debugging
    +syn keyword revadebug .s dump see
    +
    +" basic character operations
    +" syn keyword revaCharOps (.) CHAR EXPECT FIND WORD TYPE -TRAILING EMIT KEY
    +" syn keyword revaCharOps KEY? TIB CR
    +" syn match revaCharOps '\d >digit digit> >single >double >number >float
    +
    +" contexts
    +syn keyword revavocs forth macro inline
    +syn keyword revavocs context:
    +syn match revavocs /\<\~[^~ ]*/
    +syn match revavocs /[^~ ]*\~\>/
    +
    +" numbers
    +syn keyword revamath decimal hex base binary octal
    +syn match revainteger '\<-\=[0-9.]*[0-9.]\+\>'
    +" recognize hex and binary numbers, the '$' and '%' notation is for greva
    +syn match revainteger '\<\$\x*\x\+\>' " *1* --- dont't mess
    +syn match revainteger '\<\x*\d\x*\>'  " *2* --- this order!
    +syn match revainteger '\<%[0-1]*[0-1]\+\>'
    +syn match revainteger "\<'.\>"
    +
    +" Strings
    +" syn region revaString start=+\.\?\"+ end=+"+ end=+$+
    +syn region revaString start=/"/ skip=/\\"/ end=/"/
    +
    +" Comments
    +syn region revaComment start='\\S\s' end='.*' contains=revaTodo
    +syn match revaComment '\.(\s[^)]\{-})' contains=revaTodo
    +syn region revaComment start='(\s' skip='\\)' end=')' contains=revaTodo
    +syn match revaComment '(\s[^\-]*\-\-[^\-]\{-})' contains=revaTodo
    +syn match revaComment '\<|\s.*$' contains=revaTodo
    +syn match revaColonDef '\<:m\?\s*[^ \t]\+\>' contains=revaComment
    +
    +" Include files
    +syn match revaInclude '\<\(include\|needs\)\s\+\S\+'
    +
    +
    +" Define the default highlighting.
    +if !exists("did_reva_syntax_inits")
    +    let did_reva_syntax_inits=1
    +    " The default methods for highlighting. Can be overridden later.
    +    hi def link revaEOF cIf0
    +    hi def link revaHelpStuff  special
    +    hi def link revaHelpDesc Comment
    +    hi def link revaTodo Todo
    +    hi def link revaOperators Operator
    +    hi def link revaMath Number
    +    hi def link revaInteger Number
    +    hi def link revaStack Special
    +    hi def link revaFStack Special
    +    hi def link revaSP Special
    +    hi def link revaMemory Operator
    +    hi def link revaAdrArith Function
    +    hi def link revaMemBlks Function
    +    hi def link revaCond Conditional
    +    hi def link revaLoop Repeat
    +    hi def link revaColonDef Define
    +    hi def link revaEndOfColonDef Define
    +    hi def link revaDefine Define
    +    hi def link revaDebug Debug
    +    hi def link revaCharOps Character
    +    hi def link revaConversion String
    +    hi def link revaForth Statement
    +    hi def link revaVocs Statement
    +    hi def link revaString String
    +    hi def link revaComment Comment
    +    hi def link revaClassDef Define
    +    hi def link revaEndOfClassDef Define
    +    hi def link revaObjectDef Define
    +    hi def link revaEndOfObjectDef Define
    +    hi def link revaInclude Include
    +    hi def link revaBuiltin Keyword
    +endif
    +
    +let b:current_syntax = "reva"
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +" vim: ts=8:sw=4:nocindent:smartindent:
    diff --git a/git/usr/share/vim/vim92/syntax/rexx.vim b/git/usr/share/vim/vim92/syntax/rexx.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..360fc8ff9f49dcaf165b0cc7a88c8699fa3f7ca4
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rexx.vim
    @@ -0,0 +1,318 @@
    +" Vim syntax file
    +" Language:	Rexx
    +" Maintainer:	Thomas Geulig 
    +" Last Change:  2012 Sep 14, added support for new ooRexx 4.0 features
    +" URL:		http://www.geulig.de/vim/rexx.vim
    +" Special Thanks to Dan Sharp  and Rony G. Flatscher
    +"  for comments and additions
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case ignore
    +
    +" add to valid identifier chars
    +setlocal iskeyword+=.
    +setlocal iskeyword+=!
    +setlocal iskeyword+=?
    +
    +" ---rgf, position important: must be before comments etc. !
    +syn match rexxOperator "[=|\/\\\+\*\[\],;:<>&\~%\-]"
    +
    +" rgf syn match rexxIdentifier        "\<[a-zA-Z\!\?_]\([a-zA-Z0-9._?!]\)*\>"
    +syn match rexxIdentifier        "\<\K\k*\>"
    +syn match rexxEnvironmentSymbol "\<\.\k\+\>"
    +
    +" A Keyword is the first symbol in a clause.  A clause begins at the start
    +" of a line or after a semicolon.  THEN, ELSE, OTHERWISE, and colons are always
    +" followed by an implied semicolon.
    +syn match rexxClause "\(^\|;\|:\|then \|else \|when \|otherwise \)\s*\S*" contains=ALLBUT,rexxParse2,rexxRaise2,rexxForward2
    +
    +" Considered keywords when used together in a phrase and begin a clause
    +syn match rexxParse "\\|version\)\>" containedin=rexxClause contains=rexxParse2
    +syn match rexxParse2 "\" containedin=rexxParse
    +
    +syn match rexxKeyword contained "\"
    +syn match rexxKeyword contained "\<\(address\|trace\)\( value\)\?\>"
    +syn match rexxKeyword contained "\"
    +
    +syn match rexxKeyword contained "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\(\s\+forever\)\?\>"
    +syn match rexxKeyword contained "\\s*\(strict\s*\)\?\"
    +
    +" Another keyword phrase, separated to aid highlighting in rexxFunction
    +syn match rexxRegularCallSignal contained "\<\(call\|signal\)\s\(\s*on\>\|\s*off\>\)\@!\(\k\+\ze\|\ze(\)\(\s*\|;\|$\|(\)"
    +syn region rexxLabel contained start="\<\(call\|signal\)\>\s*\zs\(\k*\|(\)" end="\ze\(\s*\|;\|$\|(\)" containedin=rexxRegularCallSignal
    +
    +syn match rexxExceptionHandling contained "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>.*\(;\|$\)" contains=rexxComment
    +
    +" hilite label given after keyword "name"
    +syn match rexxLabel "name\s\+\zs\k\+\ze" containedin=rexxExceptionHandling
    +" hilite condition name (serves as label)
    +syn match rexxLabel "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>\s*\zs\k\+\ze\s*\(;\|$\)" containedin=rexxExceptionHandling
    +" user exception handling, hilite user defined name
    +syn region rexxLabel contained start="user\s\+\zs\k" end="\ze\(\s\|;\|$\)" containedin=rexxExceptionHandling
    +
    +" Considered keywords when they begin a clause
    +syn match rexxKeywordStatements "\<\(arg\|catch\|do\|drop\|end\|exit\|expose\|finally\|forward\|if\|interpret\|iterate\|leave\|loop\|nop\)\>"
    +syn match rexxKeywordStatements "\<\(options\|pull\|push\|queue\|raise\|reply\|return\|say\|select\|trace\)\>"
    +
    +" Conditional keywords starting a new statement
    +syn match rexxConditional "\<\(then\|else\|when\|otherwise\)\(\s*\|;\|\_$\|\)\>" contains=rexxKeywordStatements
    +
    +" Conditional phrases
    +syn match rexxLoopKeywords "\<\(to\|by\|for\|until\|while\|over\)\>" containedin=doLoopSelectLabelRegion
    +
    +" must be after Conditional phrases!
    +syn match doLoopSelectLabelRegion "\<\(do\|loop\|select\)\>\s\+\(label\s\+\)\?\(\s\+\k\+\s\+\zs\\)\?\k*\(\s\+forever\)\?\(\s\|;\|$\)" contains=doLoopSelectLabelRegion,rexxStartValueAssignment,rexxLoopKeywords
    +
    +" color label's name
    +syn match rexxLabel2 "\<\(do\|loop\|select\)\>\s\+label\s\+\zs\k*\ze" containedin=doLoopSelectLabelRegion
    +
    +" make sure control variable is normal
    +" TODO: re-activate ?
    +"rgf syn match rexxControlVariable        "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\s\+\" containedin=doLoopSelectLabelRegion
    +
    +" make sure control variable assignment is normal
    +syn match rexxStartValueAssignment       "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\(=.*\)\?\s\+\" containedin=doLoopSelectLabelRegion
    +
    +" highlight label name
    +syn match endIterateLeaveLabelRegion "\<\(end\|leave\|iterate\)\>\(\s\+\K\k*\)" contains=rexxLabel2
    +syn match rexxLabel2 "\<\(end\|leave\|iterate\)\>\s\+\zs\k*\ze" containedin=endIterateLeaveLabelRegion
    +
    +" Guard statement
    +syn match rexxGuard "\(^\|;\|:\)\s*\\s\+\<\(on\|off\)\>"
    +
    +" Trace statement
    +syn match rexxTrace "\(^\|;\|:\)\s*\\s\+\<\K\k*\>"
    +
    +" Raise statement
    +" syn match rexxRaise "\(^\|;\|:\)\s\+\\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
    +syn match rexxRaise "\(^\|;\|:\)\s*\\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
    +syn match rexxRaise2 "\<\(additional\|array\|description\|exit\|propagate\|return\)\>" containedin=rexxRaise
    +
    +" Forward statement
    +syn match rexxForward  "\(^\|;\|:\)\\s*" contains=rexxForward2
    +syn match rexxForward2 "\<\(arguments\|array\|continue\|message\|class\|to\)\>" contained
    +
    +" Functions/Procedures
    +syn match rexxFunction 	"\<\<[a-zA-Z\!\?_]\k*\>("me=e-1
    +syn match rexxFunction "[()]"
    +
    +" String constants
    +syn region rexxString	start=+"+ skip=+""+ end=+"\(x\|b\)\?+ oneline
    +syn region rexxString	start=+'+ skip=+''+ end=+'\(x\|b\)\?+ oneline
    +
    +syn region rexxParen transparent start='(' end=')' contains=ALLBUT,rexxParenError,rexxTodo,rexxLabel,rexxKeyword
    +" Catch errors caused by wrong parenthesis
    +syn match rexxParenError	 ")"
    +syn match rexxInParen		"[\\[\\]{}]"
    +
    +" Comments
    +syn region	rexxComment	start="/\*"	end="\*/" contains=rexxTodo,rexxComment
    +syn match	rexxCommentError "\*/"
    +syn region	rexxLineComment	start="--"	end="\_$" oneline
    +
    +" Highlight User Labels
    +" check for labels between comments, labels stated in a statement in the middle of a line
    +syn match rexxLabel		 "\(\_^\|;\)\s*\(\/\*.*\*\/\)*\s*\k\+\s*\(\/\*.*\*\/\)*\s*:"me=e-1 contains=rexxTodo,rexxComment
    +
    +syn keyword rexxTodo contained	TODO FIXME XXX
    +
    +" ooRexx messages
    +syn region rexxMessageOperator start="\(\~\|\~\~\)" end="\(\S\|\s\)"me=e-1
    +syn match rexxMessage "\(\~\|\~\~\)\s*\<\.*[a-zA-Z]\([a-zA-Z0-9._?!]\)*\>" contains=rexxMessageOperator
    +
    +" line continuations, take care of (line-)comments after it
    +syn match rexxLineContinue ",\ze\s*\(--.*\|\/\*.*\)*$"
    +
    +" the following is necessary, otherwise three consecutive dashes will cause it to highlight the first one
    +syn match rexxLineContinue "-\ze-\@!\s*\(--.*\|\s*\/\*.*\)\?$"
    +
    +" Special Variables
    +syn keyword rexxSpecialVariable  sigl rc result self super
    +syn keyword rexxSpecialVariable  .environment .error .input .local .methods .output .rs .stderr .stdin .stdout .stdque
    +
    +" Constants
    +syn keyword rexxConst .true .false .nil .endOfLine .line .context
    +
    +" Rexx numbers
    +" int like number
    +syn match rexxNumber '\d\+' contained
    +syn match rexxNumber '[-+]\s*\d\+' contained
    +
    +" Floating point number with decimal
    +syn match rexxNumber '\d\+\.\d*' contained
    +syn match rexxNumber '[-+]\s*\d\+\.\d*' contained
    +
    +" Floating point like number with E
    +syn match rexxNumber '[-+]\s*\d*[eE][\-+]\d\+' contained
    +syn match rexxNumber '\d*[eE][\-+]\d\+' contained
    +
    +" Floating point like number with E and decimal point (+,-)
    +syn match rexxNumber '[-+]\s*\d*\.\d*[eE][\-+]\d\+' contained
    +syn match rexxNumber '\d*\.\d*[eE][\-+]\d\+' contained
    +
    +
    +" ooRexx builtin classes (as of version 3.2.0, fall 2007), first define dot to be o.k. in keywords
    +syn keyword rexxBuiltinClass .Alarm .ArgUtil .Array .Bag .CaselessColumnComparator
    +syn keyword rexxBuiltinClass .CaselessComparator .CaselessDescendingComparator .CircularQueue
    +syn keyword rexxBuiltinClass .Class .Collection .ColumnComparator .Comparable .Comparator
    +syn keyword rexxBuiltinClass .DateTime .DescendingComparator .Directory .File .InputOutputStream
    +syn keyword rexxBuiltinClass .InputStream .InvertingComparator .List .MapCollection
    +syn keyword rexxBuiltinClass .Message .Method .Monitor .MutableBuffer .Object
    +syn keyword rexxBuiltinClass .OrderedCollection .OutputStream .Package .Properties .Queue
    +syn keyword rexxBuiltinClass .RegularExpression .Relation .RexxContext .RexxQueue .Routine
    +syn keyword rexxBuiltinClass .Set .SetCollection .Stem .Stream
    +syn keyword rexxBuiltinClass .StreamSupplier .String .Supplier .Table .TimeSpan
    +
    +" Windows-only classes
    +syn keyword rexxBuiltinClass .AdvancedControls .AnimatedButton .BaseDialog .ButtonControl
    +syn keyword rexxBuiltinClass .CategoryDialog .CheckBox .CheckList .ComboBox .DialogControl
    +syn keyword rexxBuiltinClass .DialogExtensions .DlgArea .DlgAreaU .DynamicDialog
    +syn keyword rexxBuiltinClass .EditControl .InputBox .IntegerBox .ListBox .ListChoice
    +syn keyword rexxBuiltinClass .ListControl .MenuObject .MessageExtensions .MultiInputBox
    +syn keyword rexxBuiltinClass .MultiListChoice .OLEObject .OLEVariant
    +syn keyword rexxBuiltinClass .PasswordBox .PlainBaseDialog .PlainUserDialog
    +syn keyword rexxBuiltinClass .ProgressBar .ProgressIndicator .PropertySheet .RadioButton
    +syn keyword rexxBuiltinClass .RcDialog .ResDialog .ScrollBar .SingleSelection .SliderControl
    +syn keyword rexxBuiltinClass .StateIndicator .StaticControl .TabControl .TimedMessage
    +syn keyword rexxBuiltinClass .TreeControl .UserDialog .VirtualKeyCodes .WindowBase
    +syn keyword rexxBuiltinClass .WindowExtensions .WindowObject .WindowsClassesBase .WindowsClipboard
    +syn keyword rexxBuiltinClass .WindowsEventLog .WindowsManager .WindowsProgramManager .WindowsRegistry
    +
    +" BSF4ooRexx classes
    +syn keyword rexxBuiltinClass .BSF .bsf.dialog .bsf_proxy
    +syn keyword rexxBuiltinClass .UNO .UNO_ENUM .UNO_CONSTANTS .UNO_PROPERTIES
    +
    +" ooRexx directives, ---rgf location important, otherwise directives in top of file not matched!
    +syn region rexxClassDirective     start="::\s*class\s*"ms=e+1    end="\ze\(\s\|;\|$\)"
    +syn region rexxMethodDirective    start="::\s*method\s*"ms=e+1   end="\ze\(\s\|;\|$\)"
    +syn region rexxRequiresDirective  start="::\s*requires\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
    +syn region rexxRoutineDirective   start="::\s*routine\s*"ms=e+1  end="\ze\(\s\|;\|$\)"
    +syn region rexxAttributeDirective start="::\s*attribute\s*"ms=e+1  end="\ze\(\s\|;\|$\)"
    +" rgf, 2012-09-09
    +syn region rexxOptionsDirective   start="::\s*options\s*"ms=e+1  end="\ze\(\s\|;\|$\)"
    +syn region rexxConstantDirective  start="::\s*constant\s*"ms=e+1  end="\ze\(\s\|;\|$\)"
    +
    +syn region rexxDirective start="\(^\|;\)\s*::\s*\w\+"  end="\($\|;\)" contains=rexxString,rexxNumber,rexxComment,rexxLineComment,rexxClassDirective,rexxMethodDirective,rexxRoutineDirective,rexxRequiresDirective,rexxAttributeDirective,rexxOptionsDirective,rexxConstantDirective keepend
    +
    +syn match rexxOptionsDirective2 "\<\(digits\|form\|fuzz\|trace\)\>" containedin = rexxOptionsDirective3
    +syn region rexxOptionsDirective3 start="\(^\|;\)\s*::\s*options\s"ms=e+1  end="\($\|;\)" contains=rexxString,rexxNumber,rexxVariable,rexxComment,rexxLineComment containedin = rexxDirective
    +
    +
    +syn region rexxVariable start="\zs\<\(\.\)\@!\K\k\+\>\ze\s*\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)" end="\(\_$\|.\)"me=e-1
    +syn match rexxVariable "\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)\s*\zs\K\k*\ze"
    +
    +" rgf, 2007-07-22: unfortunately, the entire region is colored (not only the
    +" patterns), hence useless (vim 7.0)! (syntax-docs hint that that should work)
    +" attempt: just colorize the parenthesis in matching colors, keep content
    +"          transparent to keep the formatting already done to it!
    +" TODO: test on 7.3
    +" syn region par1 matchgroup=par1 start="(" matchgroup=par1 end=")" transparent contains=par2
    +" syn region par2 matchgroup=par2 start="(" matchgroup=par2 end=")" transparent contains=par3 contained
    +" syn region par3 matchgroup=par3 start="(" matchgroup=par3 end=")" transparent contains=par4 contained
    +" syn region par4 matchgroup=par4 start="(" matchgroup=par4 end=")" transparent contains=par5 contained
    +" syn region par5 matchgroup=par5 start="(" matchgroup=par5 end=")" transparent contains=par1 contained
    +
    +" this will colorize the entire region, removing any colorizing already done!
    +" syn region par1 matchgroup=par1 start="(" end=")" contains=par2
    +" syn region par2 matchgroup=par2 start="(" end=")" contains=par3 contained
    +" syn region par3 matchgroup=par3 start="(" end=")" contains=par4 contained
    +" syn region par4 matchgroup=par4 start="(" end=")" contains=par5 contained
    +" syn region par5 matchgroup=par5 start="(" end=")" contains=par1 contained
    +
    +hi par1 ctermfg=red 		guifg=red          "guibg=grey
    +hi par2 ctermfg=blue 		guifg=blue         "guibg=grey
    +hi par3 ctermfg=darkgreen 	guifg=darkgreen    "guibg=grey
    +hi par4 ctermfg=darkyellow	guifg=darkyellow   "guibg=grey
    +hi par5 ctermfg=darkgrey 	guifg=darkgrey     "guibg=grey
    +
    +" line continuation (trailing comma or single dash)
    +syn sync linecont "\(,\|-\ze-\@!\)\ze\s*\(--.*\|\/\*.*\)*$"
    +
    +" if !exists("rexx_minlines")
    +"   let rexx_minlines = 500
    +" endif
    +" exec "syn sync ccomment rexxComment minlines=" . rexx_minlines
    +
    +" always scan from start, PCs have long become to be powerful enough for that
    +exec "syn sync fromstart"
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +" make binary and hex strings stand out
    +hi rexxStringConstant term=bold,underline ctermfg=5 cterm=bold guifg=darkMagenta gui=bold
    +
    +hi def link rexxLabel2		Function
    +hi def link doLoopSelectLabelRegion	rexxKeyword
    +hi def link endIterateLeaveLabelRegion	rexxKeyword
    +hi def link rexxLoopKeywords	rexxKeyword " Todo
    +
    +hi def link rexxNumber		Normal "DiffChange
    +"  hi def link rexxIdentifier		DiffChange
    +
    +hi def link rexxRegularCallSignal	Statement
    +hi def link rexxExceptionHandling	Statement
    +
    +hi def link rexxLabel		Function
    +hi def link rexxCharacter		Character
    +hi def link rexxParenError		rexxError
    +hi def link rexxInParen		rexxError
    +hi def link rexxCommentError	rexxError
    +hi def link rexxError		Error
    +hi def link rexxKeyword		Statement
    +hi def link rexxKeywordStatements	Statement
    +
    +hi def link rexxFunction		Function
    +hi def link rexxString		String
    +hi def link rexxComment		Comment
    +hi def link rexxTodo		Todo
    +hi def link rexxSpecialVariable	Special
    +hi def link rexxConditional	rexxKeyword
    +
    +hi def link rexxOperator		Operator
    +hi def link rexxMessageOperator	rexxOperator
    +hi def link rexxLineComment	Comment
    +
    +hi def link rexxLineContinue	WildMenu
    +
    +hi def link rexxDirective		rexxKeyword
    +hi def link rexxClassDirective	Type
    +hi def link rexxMethodDirective	rexxFunction
    +hi def link rexxAttributeDirective	rexxFunction
    +hi def link rexxRequiresDirective	Include
    +hi def link rexxRoutineDirective	rexxFunction
    +
    +" rgf, 2012-09-09
    +hi def link rexxOptionsDirective	rexxFunction
    +hi def link rexxOptionsDirective2  rexxOptionsDirective
    +hi def link rexxOptionsDirective3  Normal " rexxOptionsDirective
    +
    +hi def link rexxConstantDirective	rexxFunction
    +
    +hi def link rexxConst		Constant
    +hi def link rexxTypeSpecifier	Type
    +hi def link rexxBuiltinClass	rexxTypeSpecifier
    +
    +hi def link rexxEnvironmentSymbol  rexxConst
    +hi def link rexxMessage		rexxFunction
    +
    +hi def link rexxParse              rexxKeyword
    +hi def link rexxParse2             rexxParse
    +
    +hi def link rexxGuard              rexxKeyword
    +hi def link rexxTrace              rexxKeyword
    +
    +hi def link rexxRaise              rexxKeyword
    +hi def link rexxRaise2             rexxRaise
    +
    +hi def link rexxForward            rexxKeyword
    +hi def link rexxForward2           rexxForward
    +
    +
    +let b:current_syntax = "rexx"
    +
    +"vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/rhelp.vim b/git/usr/share/vim/vim92/syntax/rhelp.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..7407538e4c8c07587d809facce819300698f6701
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rhelp.vim
    @@ -0,0 +1,276 @@
    +" Vim syntax file
    +" Language:    R Help File
    +" Maintainer: This runtime file is looking for a new maintainer.
    +" Former Maintainers: Jakson Aquino 
    +"                     Johannes Ranke 
    +" Former Repository: https://github.com/jalvesaq/R-Vim-runtime
    +" Last Change: 2016 Jun 28  08:53AM
    +"   2024 Feb 19 by Vim Project (announce adoption)
    +" Remarks:     - Includes R syntax highlighting in the appropriate
    +"                sections if an r.vim file is in the same directory or in the
    +"                default debian location.
    +"              - There is no Latex markup in equations
    +"              - Thanks to Will Gray for finding and fixing a bug
    +"              - No support for \var tag within quoted string
    +
    +" Version Clears: {{{1
    +if exists("b:current_syntax")
    +  finish
    +endif 
    +
    +scriptencoding utf-8
    +
    +syn case match
    +
    +" R help identifiers {{{1
    +syn region rhelpIdentifier matchgroup=rhelpSection	start="\\name{" end="}" 
    +syn region rhelpIdentifier matchgroup=rhelpSection	start="\\alias{" end="}" 
    +syn region rhelpIdentifier matchgroup=rhelpSection	start="\\pkg{" end="}" contains=rhelpLink
    +syn region rhelpIdentifier matchgroup=rhelpSection	start="\\CRANpkg{" end="}" contains=rhelpLink
    +syn region rhelpIdentifier matchgroup=rhelpSection start="\\method{" end="}" contained
    +syn region rhelpIdentifier matchgroup=rhelpSection start="\\Rdversion{" end="}"
    +
    +
    +" Highlighting of R code using an existing r.vim syntax file if available {{{1
    +syn include @R syntax/r.vim
    +
    +" Strings {{{1
    +syn region rhelpString start=/"/ skip=/\\"/ end=/"/ contains=rhelpSpecialChar,rhelpCodeSpecial,rhelpLink contained
    +
    +" Special characters in R strings
    +syn match rhelpCodeSpecial display contained "\\\\\(n\|r\|t\|b\|a\|f\|v\|'\|\"\)\|\\\\"
    +
    +" Special characters  ( \$ \& \% \# \{ \} \_)
    +syn match rhelpSpecialChar        "\\[$&%#{}_]"
    +
    +
    +" R code {{{1
    +syn match rhelpDots		"\\dots" containedin=@R
    +syn region rhelpRcode matchgroup=Delimiter start="\\examples{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpLink,rhelpIdentifier,rhelpString,rhelpSpecialChar,rhelpSection
    +syn region rhelpRcode matchgroup=Delimiter start="\\usage{" matchgroup=Delimiter transparent end="}" contains=@R,rhelpIdentifier,rhelpS4method
    +syn region rhelpRcode matchgroup=Delimiter start="\\synopsis{" matchgroup=Delimiter transparent end="}" contains=@R
    +syn region rhelpRcode matchgroup=Delimiter start="\\special{" matchgroup=Delimiter transparent end="}" contains=@R
    +
    +if v:version > 703
    +  syn region rhelpRcode matchgroup=Delimiter start="\\code{" skip='\\\@1"
    +syn match rhelpKeyword	"\\ldots\>"
    +syn match rhelpKeyword	"\\sspace\>"
    +syn match rhelpKeyword  "--"
    +syn match rhelpKeyword  "---"
    +
    +" Condition Keywords {{{2
    +syn match rhelpKeyword	"\\if\>"
    +syn match rhelpKeyword	"\\ifelse\>"
    +syn match rhelpKeyword	"\\out\>"
    +" Examples of usage:
    +" \ifelse{latex}{\eqn{p = 5 + 6 - 7 \times 8}}{\eqn{p = 5 + 6 - 7 * 8}}
    +" \ifelse{latex}{\out{$\alpha$}}{\ifelse{html}{\out{α}}{alpha}}
    +
    +" Keywords and operators valid only if in math mode {{{2
    +syn match rhelpMathOp  "<" contained
    +syn match rhelpMathOp  ">" contained
    +syn match rhelpMathOp  "+" contained
    +syn match rhelpMathOp  "-" contained
    +syn match rhelpMathOp  "=" contained
    +
    +" Conceal function based on syntax/tex.vim {{{2
    +if exists("g:tex_conceal")
    +  let s:tex_conceal = g:tex_conceal
    +else
    +  let s:tex_conceal = 'gm'
    +endif
    +function s:HideSymbol(pat, cchar, hide)
    +  if a:hide
    +    exe "syn match rhelpMathSymb '" . a:pat . "' contained conceal cchar=" . a:cchar
    +  else
    +    exe "syn match rhelpMathSymb '" . a:pat . "' contained"
    +  endif
    +endfunction
    +
    +" Math symbols {{{2
    +if s:tex_conceal =~ 'm'
    +  let s:hd = 1
    +else
    +  let s:hd = 0
    +endif
    +call s:HideSymbol('\\infty\>',  '∞', s:hd)
    +call s:HideSymbol('\\ge\>',     '≥', s:hd)
    +call s:HideSymbol('\\le\>',     '≤', s:hd)
    +call s:HideSymbol('\\prod\>',   '∏', s:hd)
    +call s:HideSymbol('\\sum\>',    '∑', s:hd)
    +syn match rhelpMathSymb   	"\\sqrt\>" contained
    +
    +" Greek letters {{{2
    +if s:tex_conceal =~ 'g'
    +  let s:hd = 1
    +else
    +  let s:hd = 0
    +endif
    +call s:HideSymbol('\\alpha\>',    'α', s:hd)
    +call s:HideSymbol('\\beta\>',     'β', s:hd)
    +call s:HideSymbol('\\gamma\>',    'γ', s:hd)
    +call s:HideSymbol('\\delta\>',    'δ', s:hd)
    +call s:HideSymbol('\\epsilon\>',  'ϵ', s:hd)
    +call s:HideSymbol('\\zeta\>',     'ζ', s:hd)
    +call s:HideSymbol('\\eta\>',      'η', s:hd)
    +call s:HideSymbol('\\theta\>',    'θ', s:hd)
    +call s:HideSymbol('\\iota\>',     'ι', s:hd)
    +call s:HideSymbol('\\kappa\>',    'κ', s:hd)
    +call s:HideSymbol('\\lambda\>',   'λ', s:hd)
    +call s:HideSymbol('\\mu\>',       'μ', s:hd)
    +call s:HideSymbol('\\nu\>',       'ν', s:hd)
    +call s:HideSymbol('\\xi\>',       'ξ', s:hd)
    +call s:HideSymbol('\\pi\>',       'π', s:hd)
    +call s:HideSymbol('\\rho\>',      'ρ', s:hd)
    +call s:HideSymbol('\\sigma\>',    'σ', s:hd)
    +call s:HideSymbol('\\tau\>',      'τ', s:hd)
    +call s:HideSymbol('\\upsilon\>',  'υ', s:hd)
    +call s:HideSymbol('\\phi\>',      'ϕ', s:hd)
    +call s:HideSymbol('\\chi\>',      'χ', s:hd)
    +call s:HideSymbol('\\psi\>',      'ψ', s:hd)
    +call s:HideSymbol('\\omega\>',    'ω', s:hd)
    +call s:HideSymbol('\\Gamma\>',    'Γ', s:hd)
    +call s:HideSymbol('\\Delta\>',    'Δ', s:hd)
    +call s:HideSymbol('\\Theta\>',    'Θ', s:hd)
    +call s:HideSymbol('\\Lambda\>',   'Λ', s:hd)
    +call s:HideSymbol('\\Xi\>',       'Ξ', s:hd)
    +call s:HideSymbol('\\Pi\>',       'Π', s:hd)
    +call s:HideSymbol('\\Sigma\>',    'Σ', s:hd)
    +call s:HideSymbol('\\Upsilon\>',  'Υ', s:hd)
    +call s:HideSymbol('\\Phi\>',      'Φ', s:hd)
    +call s:HideSymbol('\\Psi\>',      'Ψ', s:hd)
    +call s:HideSymbol('\\Omega\>',    'Ω', s:hd)
    +delfunction s:HideSymbol
    +" Note: The letters 'omicron', 'Alpha', 'Beta', 'Epsilon', 'Zeta', 'Eta',
    +" 'Iota', 'Kappa', 'Mu', 'Nu', 'Omicron', 'Rho', 'Tau' and 'Chi' are listed
    +" at src/library/tools/R/Rd2txt.R because they are valid in HTML, although
    +" they do not make valid LaTeX code (e.g. Α versus \Alpha).
    +
    +" Links {{{1
    +syn region rhelpLink matchgroup=rhelpType start="\\link{" end="}" contained keepend extend
    +syn region rhelpLink matchgroup=rhelpType start="\\link\[.\{-}\]{" end="}" contained keepend extend
    +syn region rhelpLink matchgroup=rhelpType start="\\linkS4class{" end="}" contained keepend extend
    +syn region rhelpLink matchgroup=rhelpType start="\\url{" end="}" contained keepend extend
    +syn region rhelpLink matchgroup=rhelpType start="\\href{" end="}" contained keepend extend
    +syn region rhelpLink matchgroup=rhelpType start="\\figure{" end="}" contained keepend extend
    +
    +" Verbatim like {{{1
    +syn region rhelpVerbatim matchgroup=rhelpType start="\\samp{" skip='\\\@1"
    +syn match rhelpType		"\\strong\>"
    +syn match rhelpType		"\\bold\>"
    +syn match rhelpType		"\\sQuote\>"
    +syn match rhelpType		"\\dQuote\>"
    +syn match rhelpType		"\\preformatted\>"
    +syn match rhelpType		"\\kbd\>"
    +syn match rhelpType		"\\file\>"
    +syn match rhelpType		"\\email\>"
    +syn match rhelpType		"\\enc\>"
    +syn match rhelpType		"\\var\>"
    +syn match rhelpType		"\\env\>"
    +syn match rhelpType		"\\option\>"
    +syn match rhelpType		"\\command\>"
    +syn match rhelpType		"\\newcommand\>"
    +syn match rhelpType		"\\renewcommand\>"
    +syn match rhelpType		"\\dfn\>"
    +syn match rhelpType		"\\cite\>"
    +syn match rhelpType		"\\acronym\>"
    +syn match rhelpType		"\\doi\>"
    +
    +" rhelp sections {{{1
    +syn match rhelpSection		"\\encoding\>"
    +syn match rhelpSection		"\\title\>"
    +syn match rhelpSection		"\\item\>"
    +syn match rhelpSection		"\\description\>"
    +syn match rhelpSection		"\\concept\>"
    +syn match rhelpSection		"\\arguments\>"
    +syn match rhelpSection		"\\details\>"
    +syn match rhelpSection		"\\value\>"
    +syn match rhelpSection		"\\references\>"
    +syn match rhelpSection		"\\note\>"
    +syn match rhelpSection		"\\author\>"
    +syn match rhelpSection		"\\seealso\>"
    +syn match rhelpSection		"\\keyword\>"
    +syn match rhelpSection		"\\docType\>"
    +syn match rhelpSection		"\\format\>"
    +syn match rhelpSection		"\\source\>"
    +syn match rhelpSection    "\\itemize\>"
    +syn match rhelpSection    "\\describe\>"
    +syn match rhelpSection    "\\enumerate\>"
    +syn match rhelpSection    "\\item "
    +syn match rhelpSection    "\\item$"
    +syn match rhelpSection		"\\tabular{[lcr]*}"
    +syn match rhelpSection		"\\dontrun\>"
    +syn match rhelpSection		"\\dontshow\>"
    +syn match rhelpSection		"\\testonly\>"
    +syn match rhelpSection		"\\donttest\>"
    +
    +" Freely named Sections {{{1
    +syn region rhelpFreesec matchgroup=Delimiter start="\\section{" matchgroup=Delimiter transparent end="}"
    +syn region rhelpFreesubsec matchgroup=Delimiter start="\\subsection{" matchgroup=Delimiter transparent end="}" 
    +
    +syn match rhelpDelimiter "{\|\[\|(\|)\|\]\|}"
    +
    +" R help file comments {{{1
    +syn match rhelpComment /%.*$/
    +
    +" Error {{{1
    +syn region rhelpRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ contains=@Spell,rhelpCodeSpecial,rhelpComment,rhelpDelimiter,rhelpDots,rhelpFreesec,rhelpFreesubsec,rhelpIdentifier,rhelpKeyword,rhelpLink,rhelpPreProc,rhelpRComment,rhelpRcode,rhelpRegion,rhelpS4method,rhelpSection,rhelpSexpr,rhelpSpecialChar,rhelpString,rhelpType,rhelpVerbatim,rhelpEquation
    +syn region rhelpRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ contains=@Spell,rhelpCodeSpecial,rhelpComment,rhelpDelimiter,rhelpDots,rhelpFreesec,rhelpFreesubsec,rhelpIdentifier,rhelpKeyword,rhelpLink,rhelpPreProc,rhelpRComment,rhelpRcode,rhelpRegion,rhelpS4method,rhelpSection,rhelpSexpr,rhelpSpecialChar,rhelpString,rhelpType,rhelpVerbatim,rhelpEquation
    +syn region rhelpRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ contains=@Spell,rhelpCodeSpecial,rhelpComment,rhelpDelimiter,rhelpDots,rhelpFreesec,rhelpFreesubsec,rhelpIdentifier,rhelpKeyword,rhelpLink,rhelpPreProc,rhelpRComment,rhelpRcode,rhelpRegion,rhelpS4method,rhelpSection,rhelpSexpr,rhelpSpecialChar,rhelpString,rhelpType,rhelpVerbatim,rhelpEquation
    +syn match rhelpError      /[)\]}]/
    +syn match rhelpBraceError /[)}]/ contained
    +syn match rhelpCurlyError /[)\]]/ contained
    +syn match rhelpParenError /[\]}]/ contained
    +
    +syntax sync match rhelpSyncRcode grouphere rhelpRcode "\\examples{"
    +
    +" Define the default highlighting {{{1
    +hi def link rhelpVerbatim    String
    +hi def link rhelpDelimiter   Delimiter
    +hi def link rhelpIdentifier  Identifier
    +hi def link rhelpString      String
    +hi def link rhelpCodeSpecial Special
    +hi def link rhelpKeyword     Keyword
    +hi def link rhelpDots        Keyword
    +hi def link rhelpLink        Underlined
    +hi def link rhelpType        Type
    +hi def link rhelpSection     PreCondit
    +hi def link rhelpError       Error
    +hi def link rhelpBraceError  Error
    +hi def link rhelpCurlyError  Error
    +hi def link rhelpParenError  Error
    +hi def link rhelpPreProc     PreProc
    +hi def link rhelpDelimiter   Delimiter
    +hi def link rhelpComment     Comment
    +hi def link rhelpRComment    Comment
    +hi def link rhelpSpecialChar SpecialChar
    +hi def link rhelpMathSymb    Special
    +hi def link rhelpMathOp      Operator
    +
    +let   b:current_syntax = "rhelp"
    +
    +" vim: foldmethod=marker sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/rib.vim b/git/usr/share/vim/vim92/syntax/rib.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..0ee607122f0249e694f54e47c6e1b9453e542247
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rib.vim
    @@ -0,0 +1,62 @@
    +" Vim syntax file
    +" Language:	Renderman Interface Bytestream
    +" Maintainer:	Andrew Bromage 
    +" Last Change:	2003 May 11
    +"
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case match
    +
    +" Comments
    +syn match   ribLineComment      "#.*$"
    +syn match   ribStructureComment "##.*$"
    +
    +syn case ignore
    +syn match   ribCommand	       /[A-Z][a-zA-Z]*/
    +syn case match
    +
    +syn region  ribString	       start=/"/ skip=/\\"/ end=/"/
    +
    +syn match   ribStructure	"[A-Z][a-zA-Z]*Begin\>\|[A-Z][a-zA-Z]*End"
    +syn region  ribSectionFold	start="FrameBegin" end="FrameEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="WorldBegin" end="WorldEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="TransformBegin" end="TransformEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="AttributeBegin" end="AttributeEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="MotionBegin" end="MotionEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="SolidBegin" end="SolidEnd" fold transparent keepend extend
    +syn region  ribSectionFold	start="ObjectBegin" end="ObjectEnd" fold transparent keepend extend
    +
    +syn sync    fromstart
    +
    +"integer number, or floating point number without a dot and with "f".
    +syn case ignore
    +syn match	ribNumbers	  display transparent "[-]\=\<\d\|\.\d" contains=ribNumber,ribFloat
    +syn match	ribNumber	  display contained "[-]\=\d\+\>"
    +"floating point number, with dot, optional exponent
    +syn match	ribFloat	  display contained "[-]\=\d\+\.\d*\(e[-+]\=\d\+\)\="
    +"floating point number, starting with a dot, optional exponent
    +syn match	ribFloat	  display contained "[-]\=\.\d\+\(e[-+]\=\d\+\)\=\>"
    +"floating point number, without dot, with exponent
    +syn match	ribFloat	  display contained "[-]\=\d\+e[-+]\d\+\>"
    +syn case match
    +
    +
    +hi def link ribStructure		Structure
    +hi def link ribCommand		Statement
    +
    +hi def link ribStructureComment	SpecialComment
    +hi def link ribLineComment		Comment
    +
    +hi def link ribString		String
    +hi def link ribNumber		Number
    +hi def link ribFloat		Float
    +
    +
    +
    +let b:current_syntax = "rib"
    +
    +" Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim
    diff --git a/git/usr/share/vim/vim92/syntax/rmd.vim b/git/usr/share/vim/vim92/syntax/rmd.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..4b4db1e783c3205c1e3901518a3f252feef7ffb0
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rmd.vim
    @@ -0,0 +1,268 @@
    +" Language: Markdown with chunks of R, Python and other languages
    +" Maintainer: This runtime file is looking for a new maintainer.
    +" Former Maintainer: Jakson Alves de Aquino 
    +" Former Repository: https://github.com/jalvesaq/R-Vim-runtime
    +" Last Change: 2023 Dec 24  07:21AM
    +"   2024 Feb 19 by Vim Project (announce adoption)
    +"
    +"   For highlighting pandoc extensions to markdown like citations and TeX and
    +"   many other advanced features like folding of markdown sections, it is
    +"   recommended to install the vim-pandoc filetype plugin as well as the
    +"   vim-pandoc-syntax filetype plugin from https://github.com/vim-pandoc.
    +
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +let g:rmd_include_latex = get(g:, 'rmd_include_latex', 1)
    +if g:rmd_include_latex == 0 || g:rmd_include_latex == 1
    +  let b:rmd_has_LaTeX = v:false
    +elseif g:rmd_include_latex == 2
    +  let b:rmd_has_LaTeX = v:true
    +endif
    +
    +" Highlight the header of the chunks as R code
    +let g:rmd_syn_hl_chunk = get(g:, 'rmd_syn_hl_chunk', 0)
    +
    +" Pandoc-syntax has more features, but it is slower.
    +" https://github.com/vim-pandoc/vim-pandoc-syntax
    +
    +" Don't waste time loading syntax that will be discarded:
    +let s:save_pandoc_lngs = get(g:, 'pandoc#syntax#codeblocks#embeds#langs', [])
    +let g:pandoc#syntax#codeblocks#embeds#langs = []
    +
    +let g:rmd_dynamic_fenced_languages = get(g:, 'rmd_dynamic_fenced_languages', v:true)
    +
    +" Step_1: Source pandoc.vim if it is installed:
    +runtime syntax/pandoc.vim
    +if exists("b:current_syntax")
    +  if hlexists('pandocDelimitedCodeBlock')
    +    syn clear pandocDelimitedCodeBlock
    +  endif
    +
    +  if len(s:save_pandoc_lngs) > 0 && !exists('g:rmd_fenced_languages')
    +    let g:rmd_fenced_languages = deepcopy(s:save_pandoc_lngs)
    +  endif
    +
    +  " Recognize inline R code
    +  syn region rmdrInline matchgroup=rmdInlineDelim start="`r "  end="`" contains=@Rmdr containedin=pandocLaTeXRegion,yamlFlowString keepend
    +else
    +  " Step_2: Source markdown.vim if pandoc.vim is not installed
    +
    +  " Configuration if not using pandoc syntax:
    +  " Add syntax highlighting of YAML header
    +  let g:rmd_syn_hl_yaml = get(g:, 'rmd_syn_hl_yaml', 1)
    +  " Add syntax highlighting of citation keys
    +  let g:rmd_syn_hl_citations = get(g:, 'rmd_syn_hl_citations', 1)
    +
    +  " R chunks will not be highlighted by syntax/markdown because their headers
    +  " follow a non standard pattern: "```{lang" instead of "^```lang".
    +  " Make a copy of g:markdown_fenced_languages to highlight the chunks later:
    +  if exists('g:markdown_fenced_languages') && !exists('g:rmd_fenced_languages')
    +    let g:rmd_fenced_languages = deepcopy(g:markdown_fenced_languages)
    +  endif
    +
    +  if exists('g:markdown_fenced_languages') && len(g:markdown_fenced_languages) > 0
    +    let s:save_mfl = deepcopy(g:markdown_fenced_languages)
    +  endif
    +  " Don't waste time loading syntax that will be discarded:
    +  let g:markdown_fenced_languages = []
    +  runtime syntax/markdown.vim
    +  if exists('s:save_mfl') > 0
    +    let g:markdown_fenced_languages = deepcopy(s:save_mfl)
    +    unlet s:save_mfl
    +  endif
    +  syn region rmdrInline matchgroup=rmdInlineDelim start="`r "  end="`" contains=@Rmdr keepend
    +
    +  " Step_2a: Add highlighting for both YAML and citations which are pandoc
    +  " specific, but also used in Rmd files
    +
    +  " You don't need this if either your markdown/syntax.vim already highlights
    +  " the YAML header or you are writing standard markdown
    +  if g:rmd_syn_hl_yaml
    +    " Basic highlighting of YAML header
    +    syn match rmdYamlFieldTtl /^\s*\zs\w\%(-\|\w\)*\ze:/ contained
    +    syn match rmdYamlFieldTtl /^\s*-\s*\zs\w\%(-\|\w\)*\ze:/ contained
    +    syn region yamlFlowString matchgroup=yamlFlowStringDelimiter start='"' skip='\\"' end='"' contains=yamlEscape,rmdrInline contained
    +    syn region yamlFlowString matchgroup=yamlFlowStringDelimiter start="'" skip="''"  end="'" contains=yamlSingleEscape,rmdrInline contained
    +    syn match  yamlEscape contained '\\\%([\\"abefnrtv\^0_ NLP\n]\|x\x\x\|u\x\{4}\|U\x\{8}\)'
    +    syn match  yamlSingleEscape contained "''"
    +    syn match yamlComment /#.*/ contained
    +    " A second colon is a syntax error, unless within a string or following !expr
    +    syn match yamlColonError /:\s*[^'^"^!]*:/ contained
    +    if &filetype == 'quarto'
    +      syn region pandocYAMLHeader matchgroup=rmdYamlBlockDelim start=/\%(\%^\|\_^\s*\n\)\@<=\_^-\{3}\ze\n.\+/ end=/^---$/ keepend contains=rmdYamlFieldTtl,yamlFlowString,yamlComment,yamlColonError
    +    else
    +      syn region pandocYAMLHeader matchgroup=rmdYamlBlockDelim start=/\%(\%^\|\_^\s*\n\)\@<=\_^-\{3}\ze\n.\+/ end=/^\([-.]\)\1\{2}$/ keepend contains=rmdYamlFieldTtl,yamlFlowString,yamlComment,yamlColonError
    +    endif
    +    hi def link rmdYamlBlockDelim Delimiter
    +    hi def link rmdYamlFieldTtl Identifier
    +    hi def link yamlFlowString String
    +    hi def link yamlComment Comment
    +    hi def link yamlColonError Error
    +  endif
    +
    +  " Conceal char for manual line break
    +  if &encoding ==# 'utf-8'
    +    syn match rmdNewLine '  $' conceal cchar=↵
    +  endif
    +
    +  " You don't need this if either your markdown/syntax.vim already highlights
    +  " citations or you are writing standard markdown
    +  if g:rmd_syn_hl_citations
    +    " From vim-pandoc-syntax
    +    " parenthetical citations
    +    syn match pandocPCite /\^\@~\/]*.\{-}\]/ contains=pandocEmphasis,pandocStrong,pandocLatex,pandocCiteKey,@Spell,pandocAmpersandEscape display
    +    " in-text citations with location
    +    syn match pandocICite /@[[:alnum:]_][[:alnum:]à-öø-ÿÀ-ÖØ-ß_:.#$%&\-+?<>~\/]*\s\[.\{-1,}\]/ contains=pandocCiteKey,@Spell display
    +    " cite keys
    +    syn match pandocCiteKey /\(-\=@[[:alnum:]_][[:alnum:]à-öø-ÿÀ-ÖØ-ß_:.#$%&\-+?<>~\/]*\)/ containedin=pandocPCite,pandocICite contains=@NoSpell display
    +    syn match pandocCiteAnchor /[-@]/ contained containedin=pandocCiteKey display
    +    syn match pandocCiteLocator /[\[\]]/ contained containedin=pandocPCite,pandocICite
    +    hi def link pandocPCite Operator
    +    hi def link pandocICite Operator
    +    hi def link pandocCiteKey Label
    +    hi def link pandocCiteAnchor Operator
    +    hi def link pandocCiteLocator Operator
    +  endif
    +endif
    +
    +" Step_3: Highlight code blocks.
    +
    +syn region rmdCodeBlock matchgroup=rmdCodeDelim start="^\s*```\s*{.*}$" matchgroup=rmdCodeDelim end="^\s*```\ze\s*$" keepend
    +syn region rmdCodeBlock matchgroup=rmdCodeDelim start="^\s*```.+$" matchgroup=rmdCodeDelim end="^```$" keepend
    +hi link rmdCodeBlock Special
    +
    +" Now highlight chunks:
    +syn region knitrBodyOptions start='^#| ' end='$' contained  containedin=rComment,pythonComment contains=knitrBodyVar,knitrBodyValue transparent
    +syn match knitrBodyValue ': \zs.*\ze$' keepend contained containedin=knitrBodyOptions
    +syn match knitrBodyVar '| \zs\S\{-}\ze:' contained containedin=knitrBodyOptions
    +
    +let g:rmd_fenced_languages = get(g:, 'rmd_fenced_languages', ['r'])
    +
    +let s:no_syntax_vim = []
    +function s:IncludeLanguage(lng)
    +  if a:lng =~ '='
    +    let ftpy = substitute(a:lng, '.*=', '', '')
    +    let lnm = substitute(a:lng, '=.*', '', '')
    +  else
    +    let ftpy = a:lng
    +    let lnm  = a:lng
    +  endif
    +  if index(s:no_syntax_vim, ftpy) >= 0
    +    return
    +  endif
    +  if len(globpath(&rtp, "syntax/" . ftpy . ".vim"))
    +    unlet! b:current_syntax
    +    exe 'syn include @Rmd'.lnm.' syntax/'.ftpy.'.vim'
    +    let b:current_syntax = "rmd"
    +    if g:rmd_syn_hl_chunk
    +      exe 'syn match knitrChunkDelim /```\s*{\s*'.lnm.'/ contained containedin=knitrChunkBrace contains=knitrChunkLabel'
    +      exe 'syn match knitrChunkLabelDelim /```\s*{\s*'.lnm.',\=\s*[-[:alnum:]]\{-1,}[,}]/ contained containedin=knitrChunkBrace'
    +      syn match knitrChunkDelim /}\s*$/ contained containedin=knitrChunkBrace
    +      exe 'syn match knitrChunkBrace /```\s*{\s*'.lnm.'.*$/ contained containedin=rmd'.lnm.'Chunk contains=knitrChunkDelim,knitrChunkLabelDelim,@Rmd'.lnm
    +      exe 'syn region rmd'.lnm.'Chunk start="^\s*```\s*{\s*=\?'.lnm.'\>.*$" matchgroup=rmdCodeDelim end="^\s*```\ze\s*$" keepend contains=knitrChunkBrace,@Rmd'.lnm
    +
    +      hi link knitrChunkLabel Identifier
    +      hi link knitrChunkDelim rmdCodeDelim
    +      hi link knitrChunkLabelDelim rmdCodeDelim
    +    else
    +      exe 'syn region rmd'.lnm.'Chunk matchgroup=rmdCodeDelim start="^\s*```\s*{\s*=\?'.lnm.'\>.*$" matchgroup=rmdCodeDelim end="^\s*```\ze\s*$" keepend contains=@Rmd'.lnm
    +    endif
    +  else
    +    " Avoid the cost of running globpath() whenever the buffer is saved
    +    let s:no_syntax_vim += [ftpy]
    +  endif
    +endfunction
    +
    +for s:type in g:rmd_fenced_languages
    +  call s:IncludeLanguage(s:type)
    +endfor
    +unlet! s:type
    +
    +let s:LaTeX_included = v:false
    +function s:IncludeLaTeX()
    +  let s:LaTeX_included = v:true
    +  unlet! b:current_syntax
    +  syn include @RmdLaTeX syntax/tex.vim
    +  " From vim-pandoc-syntax
    +  syn region rmdLaTeXInlineMath start=/\v\\@ 0 ||
    +          \ search('\\begin{', 'wn') > 0) ||
    +          \ search('\\[[:alpha:]]\+', 'wn') ||
    +          \ search('\$[^\$]\+\$', 'wn')
    +      let b:rmd_has_LaTeX = v:true
    +    endif
    +    if b:rmd_has_LaTeX && !s:LaTeX_included
    +      call s:IncludeLaTeX()
    +    endif
    +  endif
    +endfunction
    +
    +if g:rmd_dynamic_fenced_languages
    +  call s:CheckRmdFencedLanguages()
    +  augroup RmdSyntax
    +    autocmd!
    +    autocmd BufWritePost  call s:CheckRmdFencedLanguages()
    +  augroup END
    +endif
    +
    +" Step_4: Highlight code recognized by pandoc but not defined in pandoc.vim yet:
    +syn match pandocDivBegin '^:::\+ {.\{-}}' contains=pandocHeaderAttr
    +syn match pandocDivEnd '^:::\+$'
    +
    +hi def link knitrBodyVar PreProc
    +hi def link knitrBodyValue Constant
    +hi def link knitrBodyOptions rComment
    +hi def link pandocDivBegin Delimiter
    +hi def link pandocDivEnd Delimiter
    +hi def link rmdInlineDelim Delimiter
    +hi def link rmdCodeDelim Delimiter
    +
    +if len(s:save_pandoc_lngs)
    +  let g:pandoc#syntax#codeblocks#embeds#langs = s:save_pandoc_lngs
    +endif
    +unlet s:save_pandoc_lngs
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +
    +syntax iskeyword clear
    +
    +let b:current_syntax = "rmd"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/rnc.vim b/git/usr/share/vim/vim92/syntax/rnc.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..7d3907e991d0dc6c7f589fae0a18ecf285ba22cd
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rnc.vim
    @@ -0,0 +1,68 @@
    +" Vim syntax file
    +" Language:             Relax NG compact syntax
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2007-06-17
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +setlocal iskeyword+=-,.
    +
    +syn keyword rncTodo         contained TODO FIXME XXX NOTE
    +
    +syn region  rncComment      display oneline start='^\s*#' end='$'
    +                            \ contains=rncTodo,@Spell
    +
    +syn match   rncOperator     display '[-|,&+?*~]'
    +syn match   rncOperator     display '\%(|&\)\=='
    +syn match   rncOperator     display '>>'
    +
    +syn match   rncNamespace    display '\<\k\+:'
    +
    +syn match   rncQuoted       display '\\\k\+\>'
    +
    +syn match   rncSpecial      display '\\x{\x\+}'
    +
    +syn region rncAnnotation    transparent start='\[' end='\]'
    +                            \ contains=ALLBUT,rncComment,rncTodo
    +
    +syn region  rncLiteral      display oneline start=+"+ end=+"+
    +                            \ contains=rncSpecial
    +syn region  rncLiteral      display oneline start=+'+ end=+'+
    +syn region  rncLiteral      display oneline start=+"""+ end=+"""+
    +                            \ contains=rncSpecial
    +syn region  rncLiteral      display oneline start=+'''+ end=+'''+
    +
    +syn match   rncDelimiter    display '[{},()]'
    +
    +syn keyword rncKeyword      datatypes default div empty external grammar
    +syn keyword rncKeyword      include inherit list mixed name namespace
    +syn keyword rncKeyword      notAllowed parent start string text token
    +
    +syn match   rncIdentifier   display '\k\+\_s*\%(=\|&=\||=\)\@='
    +                            \ nextgroup=rncOperator
    +syn keyword rncKeyword      element attribute
    +                            \ nextgroup=rncIdName skipwhite skipempty
    +syn match   rncIdName       contained '\k\+'
    +
    +hi def link rncTodo         Todo
    +hi def link rncComment      Comment
    +hi def link rncOperator     Operator
    +hi def link rncNamespace    Identifier
    +hi def link rncQuoted       Special
    +hi def link rncSpecial      SpecialChar
    +hi def link rncAnnotation   Special
    +hi def link rncLiteral      String
    +hi def link rncDelimiter    Delimiter
    +hi def link rncKeyword      Keyword
    +hi def link rncIdentifier   Identifier
    +hi def link rncIdName       Identifier
    +
    +let b:current_syntax = "rnc"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/rng.vim b/git/usr/share/vim/vim92/syntax/rng.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..1ef864c78f50c80fb55a57a57b425aa938eb37ba
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rng.vim
    @@ -0,0 +1,25 @@
    +" Vim syntax file
    +" Language:    RELAX NG
    +" Maintainer:  Jaromir Hradilek 
    +" URL:         https://github.com/jhradilek/vim-rng
    +" Last Change: 25 March 2013
    +" Description: A syntax file for RELAX NG, a schema language for XML
    +
    +if exists('b:current_syntax')
    +  finish
    +endif
    +
    +do Syntax xml
    +syn spell toplevel
    +syn cluster xmlTagHook add=rngTagName
    +syn case match
    +
    +syn keyword rngTagName anyName attribute choice data define div contained
    +syn keyword rngTagName element empty except externalRef grammar contained
    +syn keyword rngTagName group include interleave list mixed name contained
    +syn keyword rngTagName notAllowed nsName oneOrMore optional param contained
    +syn keyword rngTagName parentRef ref start text value zeroOrMore contained
    +
    +hi def link rngTagName Statement
    +
    +let b:current_syntax = 'rng'
    diff --git a/git/usr/share/vim/vim92/syntax/rnoweb.vim b/git/usr/share/vim/vim92/syntax/rnoweb.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..749860a3fe8359085d7a40cfe845865092818e61
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rnoweb.vim
    @@ -0,0 +1,52 @@
    +" Vim syntax file
    +" Language:    R noweb Files
    +" Maintainer:  Johannes Ranke 
    +" Last Change: Thu Apr 05, 2018  11:06PM
    +" Version:     0.9.1
    +" Remarks:     - This file is inspired by the proposal of 
    +"                Fernando Henrique Ferraz Pereira da Rosa 
    +"                http://www.ime.usp.br/~feferraz/en/sweavevim.html
    +"
    +
    +if exists("b:current_syntax")
    +  finish
    +endif 
    +
    +syn case match
    +
    +" Extension of Tex clusters {{{1
    +runtime syntax/tex.vim
    +unlet! b:current_syntax
    +
    +syn cluster texMatchGroup add=@rnoweb
    +syn cluster texMathMatchGroup add=rnowebSexpr
    +syn cluster texMathZoneGroup add=rnowebSexpr
    +syn cluster texEnvGroup add=@rnoweb
    +syn cluster texFoldGroup add=@rnoweb
    +syn cluster texDocGroup add=@rnoweb
    +syn cluster texPartGroup add=@rnoweb
    +syn cluster texChapterGroup add=@rnoweb
    +syn cluster texSectionGroup add=@rnoweb
    +syn cluster texSubSectionGroup add=@rnoweb
    +syn cluster texSubSubSectionGroup add=@rnoweb
    +syn cluster texParaGroup add=@rnoweb
    +
    +" Highlighting of R code using an existing r.vim syntax file if available {{{1
    +syn include @rnowebR syntax/r.vim
    +syn region rnowebChunk matchgroup=rnowebDelimiter start="^\s*<<.*>>=" matchgroup=rnowebDelimiter end="^@" contains=@rnowebR,rnowebChunkReference,rnowebChunk fold keepend
    +syn match rnowebChunkReference "^\s*<<.*>>$" contained
    +syn region rnowebSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter end="}" contains=@rnowebR contained
    +
    +" Sweave options command {{{1
    +syn region rnowebSweaveopts matchgroup=Delimiter start="\\SweaveOpts{" matchgroup=Delimiter end="}"
    +
    +" rnoweb Cluster {{{1
    +syn cluster rnoweb contains=rnowebChunk,rnowebChunkReference,rnowebDelimiter,rnowebSexpr,rnowebSweaveopts
    +
    +" Highlighting {{{1
    +hi def link rnowebDelimiter	Delimiter
    +hi def link rnowebSweaveOpts Statement
    +hi def link rnowebChunkReference Delimiter
    +
    +let   b:current_syntax = "rnoweb"
    +" vim: foldmethod=marker:
    diff --git a/git/usr/share/vim/vim92/syntax/robots.vim b/git/usr/share/vim/vim92/syntax/robots.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..fcb9b0275deecec510f1ec319e6bb78bbf40b163
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/robots.vim
    @@ -0,0 +1,57 @@
    +" Vim syntax file
    +" Language:	"Robots.txt" files
    +" Robots.txt files indicate to WWW robots which parts of a web site should not be accessed.
    +" Maintainer:	Dominique Stéphan (dominique@mggen.com)
    +" URL: http://www.mggen.com/vim/syntax/robots.zip
    +" Last change:	2001 May 09
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +
    +" shut case off
    +syn case ignore
    +
    +" Comment
    +syn match  robotsComment	"#.*$" contains=robotsUrl,robotsMail,robotsString
    +
    +" Star * (means all spiders)
    +syn match  robotsStar		"\*"
    +
    +" :
    +syn match  robotsDelimiter	":"
    +
    +
    +" The keywords
    +" User-agent
    +syn match  robotsAgent		"^[Uu][Ss][Ee][Rr]\-[Aa][Gg][Ee][Nn][Tt]"
    +" Disallow
    +syn match  robotsDisallow	"^[Dd][Ii][Ss][Aa][Ll][Ll][Oo][Ww]"
    +
    +" Disallow: or User-Agent: and the rest of the line before an eventual comment
    +synt match robotsLine		"\(^[Uu][Ss][Ee][Rr]\-[Aa][Gg][Ee][Nn][Tt]\|^[Dd][Ii][Ss][Aa][Ll][Ll][Oo][Ww]\):[^#]*"	contains=robotsAgent,robotsDisallow,robotsStar,robotsDelimiter
    +
    +" Some frequent things in comments
    +syn match  robotsUrl		"http[s]\=://\S*"
    +syn match  robotsMail		"\S*@\S*"
    +syn region robotsString		start=+L\="+ skip=+\\\\\|\\"+ end=+"+
    +
    +
    +hi def link robotsComment		Comment
    +hi def link robotsAgent		Type
    +hi def link robotsDisallow		Statement
    +hi def link robotsLine		Special
    +hi def link robotsStar		Operator
    +hi def link robotsDelimiter	Delimiter
    +hi def link robotsUrl		String
    +hi def link robotsMail		String
    +hi def link robotsString		String
    +
    +
    +
    +let b:current_syntax = "robots"
    +
    +" vim: ts=8 sw=2
    +
    diff --git a/git/usr/share/vim/vim92/syntax/routeros.vim b/git/usr/share/vim/vim92/syntax/routeros.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..b6effc9b6281e6b23f6281ecbf8641fed1783230
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/routeros.vim
    @@ -0,0 +1,91 @@
    +" Vim syntax file
    +" Language:        MikroTik RouterOS Script
    +" Maintainer:      zainin 
    +" Original Author: ndbjorne @ MikroTik forums
    +" Last Change:     2021 Nov 14
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case ignore
    +
    +syn iskeyword @,48-57,-
    +
    +" comments
    +syn match   routerosComment      /^\s*\zs#.*/
    +
    +" options submenus: /interface ether1 etc
    +syn match   routerosSubMenu      "\([a-z]\)\@=!~^&.,]\ze "
    +syn match   routerosOperator     "[<>!]="
    +syn match   routerosOperator     "<<\|>>"
    +syn match   routerosOperator     "[+-]\d\@="
    +
    +syn keyword routerosOperator     and or in
    +
    +" commands
    +syn keyword routerosCommands     beep delay put len typeof pick log time set find environment
    +syn keyword routerosCommands     terminal error parse resolve toarray tobool toid toip toip6
    +syn keyword routerosCommands     tonum tostr totime add remove enable disable where get print
    +syn keyword routerosCommands     export edit find append as-value brief detail count-only file
    +syn keyword routerosCommands     follow follow-only from interval terse value-list without-paging
    +syn keyword routerosCommands     return
    +
    +" variable types
    +syn keyword routerosType         global local
    +
    +" loop keywords
    +syn keyword routerosRepeat       do while for foreach
    +
    +syn match   routerosSpecial      "[():[\]{|}]"
    +
    +syn match   routerosLineContinuation "\\$"
    +
    +syn match   routerosEscape       "\\["\\nrt$?_abfv]" contained display
    +syn match   routerosEscape       "\\\x\x"            contained display
    +
    +syn region  routerosString       start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=routerosEscape,routerosLineContinuation
    +
    +hi link routerosComment              Comment
    +hi link routerosSubMenu              Function
    +hi link routerosVariable             Identifier
    +hi link routerosDelimiter            Operator
    +hi link routerosEscape               Special
    +hi link routerosService              Type
    +hi link routerosInterface            Type
    +hi link routerosBoolean              Boolean
    +hi link routerosConditional          Conditional
    +hi link routerosOperator             Operator
    +hi link routerosCommands             Operator
    +hi link routerosType                 Type
    +hi link routerosRepeat               Repeat
    +hi link routerosSpecial              Delimiter
    +hi link routerosString               String
    +hi link routerosLineContinuation     Special
    +
    +let b:current_syntax = "routeros"
    diff --git a/git/usr/share/vim/vim92/syntax/rpcgen.vim b/git/usr/share/vim/vim92/syntax/rpcgen.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..e5a0b0b56fc4a7a06167dafff0c6a8456193abda
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rpcgen.vim
    @@ -0,0 +1,48 @@
    +" Vim syntax file
    +" Language:	rpcgen
    +" Maintainer:	This runtime file is looking for a new maintainer.
    +" Former Maintainer: Charles E. Campbell
    +" Last Change:	Aug 31, 2016
    +"   2024 Feb 19 by Vim Project (announce adoption)
    +" Version:	13
    +" Former URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_RPCGEN
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read the C syntax to start with
    +runtime! syntax/c.vim
    +
    +syn keyword rpcProgram	program				skipnl skipwhite nextgroup=rpcProgName
    +syn match   rpcProgName	contained	"\<\i\I*\>"	skipnl skipwhite nextgroup=rpcProgZone
    +syn region  rpcProgZone	contained	matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\(\d\+\|0x[23]\x\{7}\)\s*;"me=e-1 contains=rpcVersion,cComment,rpcProgNmbrErr
    +syn keyword rpcVersion	contained	version		skipnl skipwhite nextgroup=rpcVersName
    +syn match   rpcVersName	contained	"\<\i\I*\>"	skipnl skipwhite nextgroup=rpcVersZone
    +syn region  rpcVersZone	contained	matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\d\+\s*;"me=e-1 contains=cType,cStructure,cStorageClass,rpcDecl,rpcProcNmbr,cComment
    +syn keyword rpcDecl	contained	string
    +syn match   rpcProcNmbr	contained	"=\s*\d\+;"me=e-1
    +syn match   rpcProgNmbrErr contained	"=\s*0x[^23]\x*"ms=s+1
    +syn match   rpcPassThru			"^\s*%.*$"
    +
    +" Define the default highlighting.
    +if !exists("skip_rpcgen_syntax_inits")
    +
    +  hi def link rpcProgName	rpcName
    +  hi def link rpcProgram	rpcStatement
    +  hi def link rpcVersName	rpcName
    +  hi def link rpcVersion	rpcStatement
    +
    +  hi def link rpcDecl	cType
    +  hi def link rpcPassThru	cComment
    +
    +  hi def link rpcName	Special
    +  hi def link rpcProcNmbr	Delimiter
    +  hi def link rpcProgNmbrErr	Error
    +  hi def link rpcStatement	Statement
    +
    +endif
    +
    +let b:current_syntax = "rpcgen"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/rpl.vim b/git/usr/share/vim/vim92/syntax/rpl.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..28c250b7c47bcdd246a1cd0cf01c6e616c9e778e
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rpl.vim
    @@ -0,0 +1,483 @@
    +" Vim syntax file
    +" Language:	RPL/2
    +" Version:	0.15.15 against RPL/2 version 4.00pre7i
    +" Last Change:	2012 Feb 03 by Thilo Six
    +" Maintainer:	Joël BERTRAND 
    +" URL:		http://www.makalis.fr/~bertrand/rpl2/download/vim/indent/rpl.vim
    +" Credits:	Nothing
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" Keyword characters (not used)
    +" set iskeyword=33-127
    +
    +" Case sensitive
    +syntax case match
    +
    +" Constants
    +syntax match rplConstant	   "\(^\|\s\+\)\(e\|i\)\ze\($\|\s\+\)"
    +
    +" Any binary number
    +syntax match rplBinaryError	   "\(^\|\s\+\)#\s*\S\+b\ze"
    +syntax match rplBinary		   "\(^\|\s\+\)#\s*[01]\+b\ze\($\|\s\+\)"
    +syntax match rplOctalError	   "\(^\|\s\+\)#\s*\S\+o\ze"
    +syntax match rplOctal		   "\(^\|\s\+\)#\s*\o\+o\ze\($\|\s\+\)"
    +syntax match rplDecimalError	   "\(^\|\s\+\)#\s*\S\+d\ze"
    +syntax match rplDecimal		   "\(^\|\s\+\)#\s*\d\+d\ze\($\|\s\+\)"
    +syntax match rplHexadecimalError   "\(^\|\s\+\)#\s*\S\+h\ze"
    +syntax match rplHexadecimal	   "\(^\|\s\+\)#\s*\x\+h\ze\($\|\s\+\)"
    +
    +" Case unsensitive
    +syntax case ignore
    +
    +syntax match rplControl		   "\(^\|\s\+\)abort\ze\($\|\s\+\)"
    +syntax match rplControl		   "\(^\|\s\+\)kill\ze\($\|\s\+\)"
    +syntax match rplControl		   "\(^\|\s\+\)cont\ze\($\|\s\+\)"
    +syntax match rplControl		   "\(^\|\s\+\)halt\ze\($\|\s\+\)"
    +syntax match rplControl		   "\(^\|\s\+\)cmlf\ze\($\|\s\+\)"
    +syntax match rplControl		   "\(^\|\s\+\)sst\ze\($\|\s\+\)"
    +
    +syntax match rplConstant	   "\(^\|\s\+\)pi\ze\($\|\s\+\)"
    +
    +syntax match rplStatement	   "\(^\|\s\+\)return\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)last\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)syzeval\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)wait\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)type\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)kind\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)eval\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)use\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)remove\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)external\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)dup\([2n]\|\)\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)drop\([2n]\|\)\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)depth\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)roll\(d\|\)\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)pick\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)rot\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)swap\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)over\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)clear\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)warranty\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)copyright\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)convert\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)date\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)time\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)mem\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)clmf\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)->num\ze\($\|\s\+\)"
    +syntax match rplStatement	   "\(^\|\s\+\)help\ze\($\|\s\+\)"
    +
    +syntax match rplStorage		   "\(^\|\s\+\)get\(i\|r\|c\|\)\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)put\(i\|r\|c\|\)\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)rcl\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)purge\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)sinv\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)sneg\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)sconj\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)steq\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)rceq\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)vars\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)clusr\ze\($\|\s\+\)"
    +syntax match rplStorage		   "\(^\|\s\+\)sto\([+-/\*]\|\)\ze\($\|\s\+\)"
    +
    +syntax match rplAlgConditional	   "\(^\|\s\+\)ift\(e\|\)\ze\($\|\s\+\)"
    +
    +syntax match rplOperator	   "\(^\|\s\+\)and\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)\(x\|\)or\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)not\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)same\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)==\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)<=\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)=<\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)=>\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)>=\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)<>\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)>\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)<\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)[+-]\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)[/\*]\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)\^\ze\($\|\s\+\)"
    +syntax match rplOperator	   "\(^\|\s\+\)\*\*\ze\($\|\s\+\)"
    +
    +syntax match rplBoolean		   "\(^\|\s\+\)true\ze\($\|\s\+\)"
    +syntax match rplBoolean		   "\(^\|\s\+\)false\ze\($\|\s\+\)"
    +
    +syntax match rplReadWrite	   "\(^\|\s\+\)store\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)recall\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\(\|wf\|un\)lock\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)open\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)close\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)delete\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)create\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)format\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)rewind\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)backspace\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\(\|re\)write\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)read\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)inquire\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)sync\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)append\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)suppress\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)seek\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)pr\(1\|int\|st\|stc\|lcd\|var\|usr\|md\)\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)paper\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)cr\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)erase\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)disp\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)input\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)prompt\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)key\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)cllcd\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\(\|re\)draw\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)drax\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)indep\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)depnd\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)res\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)axes\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)label\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)pmin\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)pmax\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)centr\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)persist\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)title\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\(slice\|auto\|log\|\)scale\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)eyept\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\(p\|s\)par\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)function\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)polar\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)scatter\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)plotter\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)wireframe\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)parametric\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)slice\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\*w\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\*h\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\*d\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)\*s\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)->lcd\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)lcd->\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)edit\ze\($\|\s\+\)"
    +syntax match rplReadWrite	   "\(^\|\s\+\)visit\ze\($\|\s\+\)"
    +
    +syntax match rplIntrinsic	   "\(^\|\s\+\)abs\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)arg\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)conj\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)re\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)im\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)mant\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)xpon\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)ceil\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)fact\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)fp\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)floor\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)inv\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)ip\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)max\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)min\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)mod\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)neg\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)relax\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)sign\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)sq\(\|rt\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)xroot\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)cos\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)sin\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)tan\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)tg\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)a\(\|rc\)cos\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)a\(\|rc\)sin\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)atan\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)arctg\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|a\)cosh\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|a\)sinh\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|a\)tanh\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|arg\)th\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)arg[cst]h\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|a\)log\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)ln\(\|1\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)exp\(\|m\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)trn\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)con\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)idn\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rdm\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rsd\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)cnrm\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)cross\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)d[eo]t\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)[cr]swp\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rci\(j\|\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(in\|de\)cr\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)bessel\ze\($\|\s\+\)"
    +
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|g\)egvl\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|g\)\(\|l\|r\)egv\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rnrm\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(std\|fix\|sci\|eng\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(rad\|deg\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|n\)rand\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rdz\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|i\)fft\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(dec\|bin\|oct\|hex\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)rclf\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)stof\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)[cs]f\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)chr\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)num\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)pos\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)sub\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)size\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(st\|rc\)ws\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(r\|s\)\(r\|l\)\(\|b\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)as\(r\|l\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(int\|der\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)stos\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|r\)cls\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)drws\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)scls\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)ns\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)tot\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)mean\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|p\)sdev\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|p\)var\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)maxs\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)mins\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|p\)cov\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)cols\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)s\(x\(\|y\|2\)\|y\(\|2\)\)\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(x\|y\)col\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)corr\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)utp[cfnt]\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)comb\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)perm\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)\(\|p\)lu\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)[lu]chol\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)schur\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)%\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)%ch\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)%t\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)hms->\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)->hms\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)hms+\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)hms-\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)d->r\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)r->d\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)b->r\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)r->b\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)c->r\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)r->c\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)r->p\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)p->r\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)str->\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)->str\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)array->\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)->array\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)list->\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)->list\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)s+\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)s-\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)col-\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)col+\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)row-\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)row+\ze\($\|\s\+\)"
    +syntax match rplIntrinsic	   "\(^\|\s\+\)->q\ze\($\|\s\+\)"
    +
    +syntax match rplObsolete	   "\(^\|\s\+\)arry->\ze\($\|\s\+\)"hs=e-5
    +syntax match rplObsolete	   "\(^\|\s\+\)->arry\ze\($\|\s\+\)"hs=e-5
    +
    +" Conditional structures
    +syntax match rplConditionalError   "\(^\|\s\+\)case\ze\($\|\s\+\)"hs=e-3
    +syntax match rplConditionalError   "\(^\|\s\+\)then\ze\($\|\s\+\)"hs=e-3
    +syntax match rplConditionalError   "\(^\|\s\+\)else\ze\($\|\s\+\)"hs=e-3
    +syntax match rplConditionalError   "\(^\|\s\+\)elseif\ze\($\|\s\+\)"hs=e-5
    +syntax match rplConditionalError   "\(^\|\s\+\)end\ze\($\|\s\+\)"hs=e-2
    +syntax match rplConditionalError   "\(^\|\s\+\)\(step\|next\)\ze\($\|\s\+\)"hs=e-3
    +syntax match rplConditionalError   "\(^\|\s\+\)until\ze\($\|\s\+\)"hs=e-4
    +syntax match rplConditionalError   "\(^\|\s\+\)repeat\ze\($\|\s\+\)"hs=e-5
    +syntax match rplConditionalError   "\(^\|\s\+\)default\ze\($\|\s\+\)"hs=e-6
    +
    +" FOR/(CYCLE)/(EXIT)/NEXT
    +" FOR/(CYCLE)/(EXIT)/STEP
    +" START/(CYCLE)/(EXIT)/NEXT
    +" START/(CYCLE)/(EXIT)/STEP
    +syntax match rplCycle              "\(^\|\s\+\)\(cycle\|exit\)\ze\($\|\s\+\)"
    +syntax region rplForNext matchgroup=rplRepeat start="\(^\|\s\+\)\(for\|start\)\ze\($\|\s\+\)" end="\(^\|\s\+\)\(next\|step\)\ze\($\|\s\+\)" contains=ALL keepend extend
    +
    +" ELSEIF/END
    +syntax region rplElseifEnd matchgroup=rplConditional start="\(^\|\s\+\)elseif\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contained contains=ALLBUT,rplElseEnd keepend
    +
    +" ELSE/END
    +syntax region rplElseEnd matchgroup=rplConditional start="\(^\|\s\+\)else\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contained contains=ALLBUT,rplElseEnd,rplThenEnd,rplElseifEnd keepend
    +
    +" THEN/END
    +syntax region rplThenEnd matchgroup=rplConditional start="\(^\|\s\+\)then\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contained containedin=rplIfEnd contains=ALLBUT,rplThenEnd keepend
    +
    +" IF/END
    +syntax region rplIfEnd matchgroup=rplConditional start="\(^\|\s\+\)if\(err\|\)\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contains=ALLBUT,rplElseEnd,rplElseifEnd keepend extend
    +" if end is accepted !
    +" select end too !
    +
    +" CASE/THEN
    +syntax region rplCaseThen matchgroup=rplConditional start="\(^\|\s\+\)case\ze\($\|\s\+\)" end="\(^\|\s\+\)then\ze\($\|\s\+\)" contains=ALLBUT,rplCaseThen,rplCaseEnd,rplThenEnd keepend extend contained containedin=rplCaseEnd
    +
    +" CASE/END
    +syntax region rplCaseEnd matchgroup=rplConditional start="\(^\|\s\+\)case\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contains=ALLBUT,rplCaseEnd,rplThenEnd,rplElseEnd keepend extend contained containedin=rplSelectEnd
    +
    +" DEFAULT/END
    +syntax region rplDefaultEnd matchgroup=rplConditional start="\(^\|\s\+\)default\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contains=ALLBUT,rplDefaultEnd keepend contained containedin=rplSelectEnd
    +
    +" SELECT/END
    +syntax region rplSelectEnd matchgroup=rplConditional start="\(^\|\s\+\)select\ze\($\|\s\+\)" end="\(^\|\s\+\)end\ze\($\|\s\+\)" contains=ALLBUT,rplThenEnd keepend extend
    +" select end is accepted !
    +
    +" DO/UNTIL/END
    +syntax region rplUntilEnd matchgroup=rplConditional start="\(^\|\s\+\)until\ze\($\|\s\+\)" end="\(^\|\s\+\)\zsend\ze\($\|\s\+\)" contains=ALLBUT,rplUntilEnd contained containedin=rplDoUntil extend keepend
    +syntax region rplDoUntil matchgroup=rplConditional start="\(^\|\s\+\)do\ze\($\|\s\+\)" end="\(^\|\s\+\)until\ze\($\|\s\+\)" contains=ALL keepend extend
    +
    +" WHILE/REPEAT/END
    +syntax region rplRepeatEnd matchgroup=rplConditional start="\(^\|\s\+\)repeat\ze\($\|\s\+\)" end="\(^\|\s\+\)\zsend\ze\($\|\s\+\)" contains=ALLBUT,rplRepeatEnd contained containedin=rplWhileRepeat extend keepend
    +syntax region rplWhileRepeat matchgroup=rplConditional start="\(^\|\s\+\)while\ze\($\|\s\+\)" end="\(^\|\s\+\)repeat\ze\($\|\s\+\)" contains=ALL keepend extend
    +
    +" Comments
    +syntax match rplCommentError "\*/"
    +syntax region rplCommentString contained start=+"+ end=+"+ end=+\*/+me=s-1
    +syntax region rplCommentLine start="\(^\|\s\+\)//\ze" skip="\\$" end="$" contains=NONE keepend extend
    +syntax region rplComment start="\(^\|\s\+\)/\*\ze" end="\*/" contains=rplCommentString keepend extend
    +
    +" Catch errors caused by too many right parentheses
    +syntax region rplParen transparent start="(" end=")" contains=ALLBUT,rplParenError,rplComplex,rplIncluded keepend extend
    +syntax match rplParenError ")"
    +
    +" Subroutines
    +" Catch errors caused by too many right '>>'
    +syntax match rplSubError "\(^\|\s\+\)>>\ze\($\|\s\+\)"hs=e-1
    +syntax region rplSub matchgroup=rplSubDelimitor start="\(^\|\s\+\)<<\ze\($\|\s\+\)" end="\(^\|\s\+\)>>\ze\($\|\s\+\)" contains=ALLBUT,rplSubError,rplIncluded,rplDefaultEnd,rplStorageSub keepend extend
    +
    +" Expressions
    +syntax region rplExpr start="\(^\|\s\+\)'" end="'\ze\($\|\s\+\)" contains=rplParen,rplParenError
    +
    +" Local variables
    +syntax match rplStorageError "\(^\|\s\+\)->\ze\($\|\s\+\)"hs=e-1
    +syntax region rplStorageSub matchgroup=rplStorage start="\(^\|\s\+\)<<\ze\($\|\s\+\)" end="\(^\|\s\+\)>>\ze\($\|\s\+\)" contains=ALLBUT,rplSubError,rplIncluded,rplDefaultEnd,rplStorageExpr contained containedin=rplLocalStorage keepend extend
    +syntax region rplStorageExpr matchgroup=rplStorage start="\(^\|\s\+\)'" end="'\ze\($\|\s\+\)" contains=rplParen,rplParenError extend contained containedin=rplLocalStorage
    +syntax region rplLocalStorage matchgroup=rplStorage start="\(^\|\s\+\)->\ze\($\|\s\+\)" end="\(^\|\s\+\)\(<<\ze\($\|\s\+\)\|'\)" contains=rplStorageSub,rplStorageExpr,rplComment,rplCommentLine keepend extend
    +
    +" Catch errors caused by too many right brackets
    +syntax match rplArrayError "\]"
    +syntax match rplArray "\]" contained containedin=rplArray
    +syntax region rplArray matchgroup=rplArray start="\[" end="\]" contains=ALLBUT,rplArrayError keepend extend
    +
    +" Catch errors caused by too many right '}'
    +syntax match rplListError "}"
    +syntax match rplList "}" contained containedin=rplList
    +syntax region rplList matchgroup=rplList start="{" end="}" contains=ALLBUT,rplListError,rplIncluded keepend extend
    +
    +" cpp is used by RPL/2
    +syntax match rplPreProc   "\_^#\s*\(define\|undef\)\>"
    +syntax match rplPreProc   "\_^#\s*\(warning\|error\)\>"
    +syntax match rplPreCondit "\_^#\s*\(if\|ifdef\|ifndef\|elif\|else\|endif\)\>"
    +syntax match rplIncluded contained "\<<\s*\S*\s*>\>"
    +syntax match rplInclude   "\_^#\s*include\>\s*["<]" contains=rplIncluded,rplString
    +"syntax match rplExecPath  "\%^\_^#!\s*\S*"
    +syntax match rplExecPath  "\%^\_^#!\p*\_$"
    +
    +" Any integer
    +syntax match rplInteger    "\(^\|\s\+\)[-+]\=\d\+\ze\($\|\s\+\)"
    +
    +" Floating point number
    +" [S][ip].[fp]
    +syntax match rplFloat       "\(^\|\s\+\)[-+]\=\(\d*\)\=[\.,]\(\d*\)\=\ze\($\|\s\+\)" contains=ALLBUT,rplPoint,rplSign
    +" [S]ip[.fp]E[S]exp
    +syntax match rplFloat       "\(^\|\s\+\)[-+]\=\d\+\([\.,]\d*\)\=[eE]\([-+]\)\=\d\+\ze\($\|\s\+\)" contains=ALLBUT,rplPoint,rplSign
    +" [S].fpE[S]exp
    +syntax match rplFloat       "\(^\|\s\+\)[-+]\=\(\d*\)\=[\.,]\d\+[eE]\([-+]\)\=\d\+\ze\($\|\s\+\)" contains=ALLBUT,rplPoint,rplSign
    +syntax match rplPoint      "\<[\.,]\>"
    +syntax match rplSign       "\<[+-]\>"
    +
    +" Complex number
    +" (x,y)
    +syntax match rplComplex    "\(^\|\s\+\)([-+]\=\(\d*\)\=\.\=\d*\([eE][-+]\=\d\+\)\=\s*,\s*[-+]\=\(\d*\)\=\.\=\d*\([eE][-+]\=\d\+\)\=)\ze\($\|\s\+\)"
    +" (x.y)
    +syntax match rplComplex    "\(^\|\s\+\)([-+]\=\(\d*\)\=,\=\d*\([eE][-+]\=\d\+\)\=\s*\.\s*[-+]\=\(\d*\)\=,\=\d*\([eE][-+]\=\d\+\)\=)\ze\($\|\s\+\)"
    +
    +" Strings
    +syntax match rplStringGuilles       "\\\""
    +syntax match rplStringAntislash     "\\\\"
    +syntax region rplString start=+\(^\|\s\+\)"+ end=+"\ze\($\|\s\+\)+ contains=rplStringGuilles,rplStringAntislash
    +
    +syntax match rplTab "\t"  transparent
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +" The default highlighting.
    +
    +hi def link rplControl		Statement
    +hi def link rplStatement		Statement
    +hi def link rplAlgConditional	Conditional
    +hi def link rplConditional		Repeat
    +hi def link rplConditionalError	Error
    +hi def link rplRepeat		Repeat
    +hi def link rplCycle		Repeat
    +hi def link rplUntil		Repeat
    +hi def link rplIntrinsic		Special
    +hi def link rplStorage		StorageClass
    +hi def link rplStorageExpr		StorageClass
    +hi def link rplStorageError	Error
    +hi def link rplReadWrite		rplIntrinsic
    +
    +hi def link rplOperator		Operator
    +
    +hi def link rplList		Special
    +hi def link rplArray		Special
    +hi def link rplConstant		Identifier
    +hi def link rplExpr		Type
    +
    +hi def link rplString		String
    +hi def link rplStringGuilles	String
    +hi def link rplStringAntislash	String
    +
    +hi def link rplBinary		Boolean
    +hi def link rplOctal		Boolean
    +hi def link rplDecimal		Boolean
    +hi def link rplHexadecimal		Boolean
    +hi def link rplInteger		Number
    +hi def link rplFloat		Float
    +hi def link rplComplex		Float
    +hi def link rplBoolean		Identifier
    +
    +hi def link rplObsolete		Todo
    +
    +hi def link rplPreCondit		PreCondit
    +hi def link rplInclude		Include
    +hi def link rplIncluded		rplString
    +hi def link rplInclude		Include
    +hi def link rplExecPath		Include
    +hi def link rplPreProc		PreProc
    +hi def link rplComment		Comment
    +hi def link rplCommentLine		Comment
    +hi def link rplCommentString	Comment
    +hi def link rplSubDelimitor	rplStorage
    +hi def link rplCommentError	Error
    +hi def link rplParenError		Error
    +hi def link rplSubError		Error
    +hi def link rplArrayError		Error
    +hi def link rplListError		Error
    +hi def link rplTab			Error
    +hi def link rplBinaryError		Error
    +hi def link rplOctalError		Error
    +hi def link rplDecimalError	Error
    +hi def link rplHexadecimalError	Error
    +
    +
    +let b:current_syntax = "rpl"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    +" vim: ts=8 tw=132
    diff --git a/git/usr/share/vim/vim92/syntax/rrst.vim b/git/usr/share/vim/vim92/syntax/rrst.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..3a56342cd8f5a9a0cdd59f07b81d2a5b9ace2f62
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rrst.vim
    @@ -0,0 +1,43 @@
    +" reStructured Text with R statements
    +" Language: reST with R code chunks
    +" Maintainer: Alex Zvoleff, azvoleff@mail.sdsu.edu
    +" Homepage: https://github.com/jalvesaq/R-Vim-runtime
    +" Last Change: Thu Apr 05, 2018  11:06PM
    +"
    +" CONFIGURATION:
    +"   To highlight chunk headers as R code, put in your vimrc:
    +"   let rrst_syn_hl_chunk = 1
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" load all of the rst info
    +runtime syntax/rst.vim
    +unlet! b:current_syntax
    +
    +" load all of the r syntax highlighting rules into @R
    +syntax include @R syntax/r.vim
    +
    +" highlight R chunks
    +if exists("g:rrst_syn_hl_chunk")
    +  " highlight R code inside chunk header
    +  syntax match rrstChunkDelim "^\.\. {r" contained
    +  syntax match rrstChunkDelim "}$" contained
    +else
    +  syntax match rrstChunkDelim "^\.\. {r .*}$" contained
    +endif
    +syntax match rrstChunkDelim "^\.\. \.\.$" contained
    +syntax region rrstChunk start="^\.\. {r.*}$" end="^\.\. \.\.$" contains=@R,rrstChunkDelim keepend transparent fold
    +
    +" also highlight in-line R code
    +syntax match rrstInlineDelim "`" contained
    +syntax match rrstInlineDelim ":r:" contained
    +syntax region rrstInline start=":r: *`" skip=/\\\\\|\\`/ end="`" contains=@R,rrstInlineDelim keepend
    +
    +hi def link rrstChunkDelim Special
    +hi def link rrstInlineDelim Special
    +
    +let b:current_syntax = "rrst"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/rst.vim b/git/usr/share/vim/vim92/syntax/rst.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..9584947df5de0949ed64a3482e7e655bb5b14d07
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rst.vim
    @@ -0,0 +1,316 @@
    +" Vim reST syntax file
    +" Language: reStructuredText documentation format
    +" Maintainer: Marshall Ward 
    +" Previous Maintainer: Nikolai Weibull 
    +" Reference: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
    +" Website: https://github.com/marshallward/vim-restructuredtext
    +" Latest Revision: 2025-10-13
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" reStructuredText is case-insensitive
    +syntax case ignore
    +
    +syn match   rstTransition  /^[=`:.'"~^_*+#-]\{4,}\s*$/
    +
    +syn cluster rstCruft                contains=rstEmphasis,rstStrongEmphasis,
    +      \ rstInterpretedTextOrHyperlinkReference,rstInlineLiteral,
    +      \ rstSubstitutionReference,rstInlineInternalTargets,rstFootnoteReference,
    +      \ rstHyperlinkReference
    +
    +syn region  rstLiteralBlock         matchgroup=rstDelimiter
    +      \ start='\(^\z(\s*\).*\)\@<=::\n\s*\n' skip='^\s*$' end='^\(\z1\s\+\)\@!'
    +      \ contains=@NoSpell
    +
    +syn region  rstQuotedLiteralBlock   matchgroup=rstDelimiter
    +      \ start="::\_s*\n\ze\z([!\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]\)"
    +      \ end='^\z1\@!' contains=@NoSpell
    +
    +syn region  rstDoctestBlock         matchgroup=rstDoctestBlockPrompt
    +      \ start='^>>>\s' end='^$'
    +      \ contains=rstDoctestBlockPrompt
    +
    +syn match   rstDoctestBlockPrompt   contained '^>>>\s'
    +
    +syn region  rstTable                transparent start='^\n\s*+[-=+]\+' end='^$'
    +      \ contains=rstTableLines,@rstCruft
    +syn match   rstTableLines           contained display '|\|+\%(=\+\|-\+\)\='
    +
    +syn region  rstSimpleTable          transparent
    +      \ start='^\n\%(\s*\)\@>\%(\%(=\+\)\@>\%(\s\+\)\@>\)\%(\%(\%(=\+\)\@>\%(\s*\)\@>\)\+\)\@>$'
    +      \ end='^$'
    +      \ contains=rstSimpleTableLines,@rstCruft
    +syn match   rstSimpleTableLines     contained display
    +      \ '^\%(\s*\)\@>\%(\%(=\+\)\@>\%(\s\+\)\@>\)\%(\%(\%(=\+\)\@>\%(\s*\)\@>\)\+\)\@>$'
    +syn match   rstSimpleTableLines     contained display
    +      \ '^\%(\s*\)\@>\%(\%(-\+\)\@>\%(\s\+\)\@>\)\%(\%(\%(-\+\)\@>\%(\s*\)\@>\)\+\)\@>$'
    +
    +syn cluster rstDirectives           contains=rstFootnote,rstCitation,
    +      \ rstHyperlinkTarget,rstExDirective
    +
    +syn match   rstExplicitMarkup       '^\s*\.\.\_s'
    +      \ nextgroup=@rstDirectives,rstSubstitutionDefinition
    +      \ contains=rstComment
    +
    +" "Simple reference names are single words consisting of alphanumerics plus
    +" isolated (no two adjacent) internal hyphens, underscores, periods, colons
    +" and plus signs."
    +let s:ReferenceName = '[[:alnum:]]\%([-_.:+]\?[[:alnum:]]\+\)*'
    +
    +syn keyword     rstTodo             contained FIXME TODO XXX NOTE
    +
    +syn region rstComment
    +      \ start='\v^\z(\s*)\.\.(\_s+[\[|_]|\_s+.*::)@!' skip=+^$+ end=/^\(\z1   \)\@!/
    +      \ contains=@Spell,rstTodo
    +
    +" Note: Order matters for rstCitation and rstFootnote as the regex for
    +" citations also matches numeric only patterns, e.g. [1], which are footnotes.
    +" Since we define rstFootnote after rstCitation, it takes precedence, see
    +" |:syn-define|.
    +execute 'syn region rstCitation contained matchgroup=rstDirective' .
    +      \ ' start=+\[' . s:ReferenceName . '\]\_s+' .
    +      \ ' skip=+^$+' .
    +      \ ' end=+^\s\@!+ contains=@Spell,@rstCruft'
    +
    +execute 'syn region rstFootnote contained matchgroup=rstDirective' .
    +      \ ' start=+\[\%(\d\+\|#\%(' . s:ReferenceName . '\)\=\|\*\)\]\_s+' .
    +      \ ' skip=+^$+' .
    +      \ ' end=+^\s\@!+ contains=@Spell,@rstCruft'
    +
    +syn region rstHyperlinkTarget contained matchgroup=rstDirective
    +      \ start='_\%(_\|[^:\\]*\%(\\.[^:\\]*\)*\):\_s' skip=+^$+ end=+^\s\@!+
    +
    +syn region rstHyperlinkTarget contained matchgroup=rstDirective
    +      \ start='_`[^`\\]*\%(\\.[^`\\]*\)*`:\_s' skip=+^$+ end=+^\s\@!+
    +
    +syn region rstHyperlinkTarget matchgroup=rstDirective
    +      \ start=+^__\_s+ skip=+^$+ end=+^\s\@!+
    +
    +execute 'syn region rstExDirective contained matchgroup=rstDirective' .
    +      \ ' start=+' . s:ReferenceName . '::\_s+' .
    +      \ ' skip=+^$+' .
    +      \ ' end=+^\s\@!+ contains=@Spell,@rstCruft,rstLiteralBlock,rstExplicitMarkup'
    +
    +execute 'syn match rstSubstitutionDefinition contained' .
    +      \ ' /|.*|\_s\+/ nextgroup=@rstDirectives'
    +
    +
    +"" Inline Markup ""
    +
    +function! s:DefineOneInlineMarkup(name, start, middle, end, char_left, char_right)
    +  " Only escape the first char of a multichar delimiter (e.g. \* inside **)
    +  if a:start[0] == '\'
    +    let first = a:start[0:1]
    +  else
    +    let first = a:start[0]
    +  endif
    +
    +  if a:start != '``'
    +    let rst_contains=' contains=@Spell,rstEscape' . a:name
    +    execute 'syn match rstEscape'.a:name.' +\\\\\|\\'.first.'+'.' contained'
    +  else
    +    let rst_contains=' contains=@Spell'
    +  endif
    +
    +  execute 'syn region rst' . a:name .
    +        \ ' start=+' . a:char_left . '\zs' . a:start .
    +        \ '\ze[^[:space:]' . a:char_right . a:start[strlen(a:start) - 1] . ']+' .
    +        \ a:middle .
    +        \ ' end=+' . a:end . '\ze\%($\|\s\|[''"’)\]}>/:.,;!?\\-]\)+' .
    +        \ rst_contains
    +
    +  if a:start != '``'
    +    execute 'hi def link rstEscape'.a:name.' Special'
    +  endif
    +endfunction
    +
    +function! s:DefineInlineMarkup(name, start, middle, end)
    +  if a:middle == '`'
    +    let middle = ' skip=+\s'.a:middle.'+'
    +  else
    +    let middle = ' skip=+\\\\\|\\' . a:middle . '\|\s' . a:middle . '+'
    +  endif
    +
    +  " Some characters may precede or follow an inline token
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, "'", "'")
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '"', '"')
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '(', ')')
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\[', '\]')
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '{', '}')
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '<', '>')
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '’', '’')
    +
    +  " TODO: Additional whitespace Unicode characters: Pd, Po, Pi, Pf, Ps
    +  call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\%(^\|\s\|\%ua0\|[/:]\)', '')
    +
    +  execute 'syn match rst' . a:name .
    +        \ ' +\%(^\|\s\|\%ua0\|[''"([{/:.,;!?\\-]\)+'
    +
    +  execute 'hi def link rst' . a:name . 'Delimiter' . ' rst' . a:name
    +endfunction
    +
    +call s:DefineInlineMarkup('Emphasis', '\*', '\*', '\*')
    +call s:DefineInlineMarkup('StrongEmphasis', '\*\*', '\*', '\*\*')
    +call s:DefineInlineMarkup('InterpretedTextOrHyperlinkReference', '`', '`', '`_\{0,2}')
    +call s:DefineInlineMarkup('InlineLiteral', '``', '`', '``')
    +call s:DefineInlineMarkup('SubstitutionReference', '|', '|', '|_\{0,2}')
    +call s:DefineInlineMarkup('InlineInternalTargets', '_`', '`', '`')
    +
    +" Sections are identified through their titles, which are marked up with
    +" adornment: "underlines" below the title text, or underlines and matching
    +" "overlines" above the title. An underline/overline is a single repeated
    +" punctuation character that begins in column 1 and forms a line extending at
    +" least as far as the right edge of the title text.
    +"
    +" It is difficult to count characters in a regex, but we at least special-case
    +" the case where the title has at least three characters to require the
    +" adornment to have at least three characters as well, in order to handle
    +" properly the case of a literal block:
    +"
    +"    this is the end of a paragraph
    +"    ::
    +"       this is a literal block
    +syn match   rstSections "\v^%(([=`:.'"~^_*+#-])\1+\n)?.{1,2}\n([=`:.'"~^_*+#-])\2+$"
    +    \ contains=@Spell
    +syn match   rstSections "\v^%(([=`:.'"~^_*+#-])\1{2,}\n)?.{3,}\n([=`:.'"~^_*+#-])\2{2,}$"
    +    \ contains=@Spell
    +
    +" TODO: Can’t remember why these two can’t be defined like the ones above.
    +execute 'syn match rstFootnoteReference contains=@NoSpell' .
    +      \ ' +\%(\s\|^\)\[\%(\d\+\|#\%(' . s:ReferenceName . '\)\=\|\*\)\]_+'
    +
    +execute 'syn match rstCitationReference contains=@NoSpell' .
    +      \ ' +\%(\s\|^\)\[' . s:ReferenceName . '\]_\ze\%($\|\s\|[''")\]}>/:.,;!?\\-]\)+'
    +
    +execute 'syn match rstHyperlinkReference' .
    +      \ ' /\<' . s:ReferenceName . '__\=\ze\%($\|\s\|[''")\]}>/:.,;!?\\-]\)/'
    +
    +syn match   rstStandaloneHyperlink  contains=@NoSpell
    +      \ "\<\%(\%(\%(https\=\|file\|ftp\|gopher\)://\|\%(mailto\|news\):\)[^[:space:]'\"<>]\+\|www[[:alnum:]_-]*\.[[:alnum:]_-]\+\.[^[:space:]'\"<>]\+\)[[:alnum:]/]"
    +
    +" `code` is the standard reST directive for source code.
    +" `code-block` and `sourcecode` are nearly identical directives in Sphinx.
    +syn region rstCodeBlock contained matchgroup=rstDirective
    +      \ start=+\%(sourcecode\|code\%(-block\)\=\)::\s*\(\S*\)\?\s*\n\%(\s*:.*:\s*.*\s*\n\)*\n\ze\z(\s\+\)+
    +      \ skip=+^$+
    +      \ end=+^\z1\@!+
    +      \ contains=@NoSpell
    +syn cluster rstDirectives add=rstCodeBlock
    +
    +if !exists('g:rst_syntax_code_list')
    +    " A mapping from a Vim filetype to a list of alias patterns (pattern
    +    " branches to be specific, see ':help /pattern'). E.g. given:
    +    "
    +    "   let g:rst_syntax_code_list = {
    +    "       \ 'cpp': ['cpp', 'c++'],
    +    "       \ }
    +    "
    +    " then the respective contents of the following two rST directives:
    +    "
    +    "   .. code:: cpp
    +    "
    +    "       auto i = 42;
    +    "
    +    "   .. code:: C++
    +    "
    +    "       auto i = 42;
    +    "
    +    " will both be highlighted as C++ code. As shown by the latter block
    +    " pattern matching will be case-insensitive.
    +    let g:rst_syntax_code_list = {
    +        \ 'vim': ['vim'],
    +        \ 'java': ['java'],
    +        \ 'cpp': ['cpp', 'c++'],
    +        \ 'lisp': ['lisp'],
    +        \ 'php': ['php'],
    +        \ 'python': ['python'],
    +        \ 'perl': ['perl'],
    +        \ 'sh': ['sh'],
    +        \ }
    +elseif type(g:rst_syntax_code_list) == type([])
    +    " backward compatibility with former list format
    +    let s:old_spec = g:rst_syntax_code_list
    +    let g:rst_syntax_code_list = {}
    +    for s:elem in s:old_spec
    +        let g:rst_syntax_code_list[s:elem] = [s:elem]
    +    endfor
    +endif
    +
    +for s:filetype in keys(g:rst_syntax_code_list)
    +    unlet! b:current_syntax
    +    " guard against setting 'isk' option which might cause problems (issue #108)
    +    let prior_isk = &l:iskeyword
    +    let s:alias_pattern = ''
    +                \.'\%('
    +                \.join(g:rst_syntax_code_list[s:filetype], '\|')
    +                \.'\)'
    +
    +    exe 'syn include @rst'.s:filetype.' syntax/'.s:filetype.'.vim'
    +    exe 'syn region rstDirective'.s:filetype
    +                \.' matchgroup=rstDirective fold'
    +                \.' start="\c\%(sourcecode\|code\%(-block\)\=\)::\s\+'.s:alias_pattern.'\_s*\n\ze\z(\s\+\)"'
    +                \.' skip=#^$#'
    +                \.' end=#^\z1\@!#'
    +                \.' contains=@NoSpell,@rst'.s:filetype
    +    exe 'syn cluster rstDirectives add=rstDirective'.s:filetype
    +
    +    " reset 'isk' setting, if it has been changed
    +    if &l:iskeyword !=# prior_isk
    +        let &l:iskeyword = prior_isk
    +    endif
    +    unlet! prior_isk
    +endfor
    +
    +
    +" Enable top level spell checking
    +syntax spell toplevel
    +
    +exe "syn sync minlines=" . get(g:, 'rst_minlines', 50) . " linebreaks=2"
    +
    +hi def link rstTodo                         Todo
    +hi def link rstComment                      Comment
    +hi def link rstSections                     Title
    +hi def link rstTransition                   rstSections
    +hi def link rstLiteralBlock                 String
    +hi def link rstQuotedLiteralBlock           String
    +hi def link rstDoctestBlock                 PreProc
    +hi def link rstDoctestBlockPrompt           rstDelimiter
    +hi def link rstTableLines                   rstDelimiter
    +hi def link rstSimpleTableLines             rstTableLines
    +hi def link rstExplicitMarkup               rstDirective
    +hi def link rstDirective                    Keyword
    +hi def link rstFootnote                     String
    +hi def link rstCitation                     String
    +hi def link rstHyperlinkTarget              String
    +hi def link rstExDirective                  String
    +hi def link rstSubstitutionDefinition       rstDirective
    +hi def link rstDelimiter                    Delimiter
    +hi def link rstInterpretedTextOrHyperlinkReference  Identifier
    +hi def link rstInlineLiteral                String
    +hi def link rstSubstitutionReference        PreProc
    +hi def link rstInlineInternalTargets        Identifier
    +hi def link rstFootnoteReference            Identifier
    +hi def link rstCitationReference            Identifier
    +hi def link rstHyperLinkReference           Identifier
    +hi def link rstStandaloneHyperlink          Identifier
    +hi def link rstCodeBlock                    String
    +if exists('g:rst_use_emphasis_colors')
    +    " TODO: Less arbitrary color selection
    +    hi def rstEmphasis          ctermfg=13 term=italic cterm=italic gui=italic
    +    hi def rstStrongEmphasis    ctermfg=1 term=bold cterm=bold gui=bold
    +else
    +    hi def rstEmphasis          term=italic cterm=italic gui=italic
    +    hi def rstStrongEmphasis    term=bold cterm=bold gui=bold
    +endif
    +
    +let b:current_syntax = "rst"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/rtf.vim b/git/usr/share/vim/vim92/syntax/rtf.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..f8e031ba21edc9544d5f6407962124aa37de03bf
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/rtf.vim
    @@ -0,0 +1,75 @@
    +" Vim syntax file
    +" Language:	Rich Text Format
    +"		"*.rtf" files
    +"
    +" The Rich Text Format (RTF) Specification is a method of encoding formatted
    +" text and graphics for easy transfer between applications.
    +" .hlp (windows help files) use compiled rtf files
    +" rtf documentation at http://night.primate.wisc.edu/software/RTF/
    +"
    +" Maintainer:	Dominique Stéphan (dominique@mggen.com)
    +" URL: http://www.mggen.com/vim/syntax/rtf.zip
    +" Last change:	2001 Mai 02
    +
    +" TODO: render underline, italic, bold
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" case on (all controls must be lower case)
    +syn case match
    +
    +" Control Words
    +syn match rtfControlWord	"\\[a-z]\+[\-]\=[0-9]*"
    +
    +" New Control Words (not in the 1987 specifications)
    +syn match rtfNewControlWord	"\\\*\\[a-z]\+[\-]\=[0-9]*"
    +
    +" Control Symbol : any \ plus a non alpha symbol, *, \, { and } and '
    +syn match rtfControlSymbol	"\\[^a-zA-Z\*\{\}\\']"
    +
    +" { } and \ are special characters, to use them
    +" we add a backslash \
    +syn match rtfCharacter		"\\\\"
    +syn match rtfCharacter		"\\{"
    +syn match rtfCharacter		"\\}"
    +" Escaped characters (for 8 bytes characters upper than 127)
    +syn match rtfCharacter		"\\'[A-Za-z0-9][A-Za-z0-9]"
    +" Unicode
    +syn match rtfUnicodeCharacter	"\\u[0-9][0-9]*"
    +
    +" Color values, we will put this value in Red, Green or Blue
    +syn match rtfRed		"\\red[0-9][0-9]*"
    +syn match rtfGreen		"\\green[0-9][0-9]*"
    +syn match rtfBlue		"\\blue[0-9][0-9]*"
    +
    +" Some stuff for help files
    +syn match rtfFootNote "[#$K+]{\\footnote.*}" contains=rtfControlWord,rtfNewControlWord
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +
    +hi def link rtfControlWord		Statement
    +hi def link rtfNewControlWord	Special
    +hi def link rtfControlSymbol	Constant
    +hi def link rtfCharacter		Character
    +hi def link rtfUnicodeCharacter	SpecialChar
    +hi def link rtfFootNote		Comment
    +
    +" Define colors for the syntax file
    +hi rtfRed	      term=underline cterm=underline ctermfg=DarkRed gui=underline guifg=DarkRed
    +hi rtfGreen	      term=underline cterm=underline ctermfg=DarkGreen gui=underline guifg=DarkGreen
    +hi rtfBlue	      term=underline cterm=underline ctermfg=DarkBlue gui=underline guifg=DarkBlue
    +
    +hi def link rtfRed	rtfRed
    +hi def link rtfGreen	rtfGreen
    +hi def link rtfBlue	rtfBlue
    +
    +
    +
    +let b:current_syntax = "rtf"
    +
    +" vim:ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/ruby.vim b/git/usr/share/vim/vim92/syntax/ruby.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..88aff7ddb833c061aeaa67f8cef82a9567c1a1a9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/ruby.vim
    @@ -0,0 +1,605 @@
    +" Vim syntax file
    +" Language:		Ruby
    +" Maintainer:		Doug Kearns 
    +" URL:			https://github.com/vim-ruby/vim-ruby
    +" Last Change:		2023 Mar 16
    +" ----------------------------------------------------------------------------
    +"
    +" Previous Maintainer:	Mirko Nasato
    +" Thanks to perl.vim authors, and to Reimer Behrends. :-) (MN)
    +" ----------------------------------------------------------------------------
    +
    +" Prelude {{{1
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" this file uses line continuations
    +let s:cpo_sav = &cpo
    +set cpo&vim
    +
    +" eRuby Config {{{1
    +if exists('main_syntax') && main_syntax == 'eruby'
    +  let b:ruby_no_expensive = 1
    +endif
    +
    +" Folding Config {{{1
    +if has("folding") && exists("ruby_fold")
    +  setlocal foldmethod=syntax
    +endif
    +
    +let s:foldable_groups = split(
    +      \	  get(
    +      \	    b:,
    +      \	    'ruby_foldable_groups',
    +      \	    get(g:, 'ruby_foldable_groups', 'ALL')
    +      \	  )
    +      \	)
    +
    +function! s:foldable(...) abort
    +  if index(s:foldable_groups, 'NONE') > -1
    +    return 0
    +  endif
    +
    +  if index(s:foldable_groups, 'ALL') > -1
    +    return 1
    +  endif
    +
    +  for l:i in a:000
    +    if index(s:foldable_groups, l:i) > -1
    +      return 1
    +    endif
    +  endfor
    +
    +  return 0
    +endfunction
    +
    +function! s:run_syntax_fold(args) abort
    +  let [_0, _1, groups, cmd; _] = matchlist(a:args, '\(["'']\)\(.\{-}\)\1\s\+\(.*\)')
    +  if call('s:foldable', split(groups))
    +    let cmd .= ' fold'
    +  endif
    +  exe cmd
    +endfunction
    +
    +com! -nargs=* SynFold call s:run_syntax_fold()
    +
    +" Not-Top Cluster {{{1
    +syn cluster rubyNotTop contains=@rubyCommentNotTop,@rubyStringNotTop,@rubyRegexpSpecial,@rubyDeclaration,@rubyExceptionHandler,@rubyClassOperator,rubyConditional,rubyModuleName,rubyClassName,rubySymbolDelimiter,rubyDoubleQuoteSymbolDelimiter,rubySingleQuoteSymbolDelimiter,rubyParentheses,@Spell
    +
    +" Whitespace Errors {{{1
    +if exists("ruby_space_errors")
    +  if !exists("ruby_no_trail_space_error")
    +    syn match rubySpaceError display excludenl "\s\+$"
    +  endif
    +  if !exists("ruby_no_tab_space_error")
    +    syn match rubySpaceError display " \+\t"me=e-1
    +  endif
    +endif
    +
    +" Operators {{{1
    +
    +syn match rubyEnglishBooleanOperator "\<\%(and\|or\|not\)\>"
    +
    +if exists("ruby_operators") || exists("ruby_pseudo_operators")
    +  syn match rubyDotOperator	   "\.\|&\."
    +
    +  syn match rubyTernaryOperator    "\%(\w\|[^\x00-\x7F]\)\@1\@!"
    +  syn match rubyComparisonOperator "<=>\|<=\|<\|>=\|[-=]\@1"
    +  syn match rubyBitwiseOperator    "[~^|]\|&\.\@!\|<<\|>>"
    +  syn match rubyBooleanOperator    "\%(\w\|[^\x00-\x7F]\)\@1\@!\|-=\|/=\|\*\*=\|\*=\|&&=\|&=\|||=\||=\|%=\|+=\|>>=\|<<=\|\^="
    +  syn match rubyAssignmentOperator "=>\@!" contained containedin=rubyBlockParameterList " TODO: this is inelegant
    +  syn match rubyEqualityOperator   "===\|==\|!=\|!\~\|=\~"
    +
    +  syn region rubyBracketOperator matchgroup=rubyOperator start="\%(\%(\w\|[^\x00-\x7F]\)[?!]\=\|[]})]\)\@2<=\[" end="]" contains=ALLBUT,@rubyNotTop
    +
    +  syn match rubyScopeOperator	    "::"
    +  syn match rubySuperClassOperator  "<"	 contained
    +  syn match rubyEigenClassOperator  "<<" contained
    +  syn match rubyLambdaOperator	    "->"
    +  syn match rubySplatOperator	    "\%([[{(|,=]\_s*\)\@<=\*"
    +  syn match rubySplatOperator	    "\%(^\|\s\)\@1<=\*\%(\h\|[^\x00-\x7F]\|[:$@[]\)\@="
    +  syn match rubyDoubleSplatOperator "\%([{(|,]\_s*\)\@<=\*\*"
    +  syn match rubyDoubleSplatOperator "\s\@1<=\*\*\%(\h\|[^\x00-\x7F]\|[:$@{]\)\@="
    +  syn match rubyProcOperator	    "\%([[(|,]\_s*\)\@<=&"
    +  syn match rubyProcOperator	    "\s\@1<=&\%(\h\|[^\x00-\x7F]\|[:$@]\|->\)\@="
    +
    +  syn cluster rubyProperOperator contains=rubyTernaryOperator,rubyArithmeticOperator,rubyComparisonOperator,rubyBitwiseOperator,rubyBooleanOperator,rubyRangeOperator,rubyAssignmentOperator,rubyEqualityOperator,rubyDefinedOperator,rubyEnglishBooleanOperator
    +  syn cluster rubyClassOperator  contains=rubyEigenClassOperator,rubySuperClassOperator
    +  syn cluster rubyPseudoOperator contains=rubyDotOperator,rubyScopeOperator,rubyEigenClassOperator,rubySuperClassOperator,rubyLambdaOperator,rubySplatOperator,rubyDoubleSplatOperator,rubyProcOperator
    +  syn cluster rubyOperator	 contains=ruby.*Operator
    +endif
    +
    +" String Interpolation and Backslash Notation {{{1
    +syn region rubyInterpolation	      matchgroup=rubyInterpolationDelimiter start="#{" end="}" contained contains=ALLBUT,@rubyNotTop
    +syn match  rubyInterpolation	      "#\$\%(-\w\|[!$&"'*+,./0:;<>?@\`~_]\|\w\+\)" display contained contains=rubyInterpolationDelimiter,@rubyGlobalVariable
    +syn match  rubyInterpolation	      "#@@\=\w\+"				   display contained contains=rubyInterpolationDelimiter,rubyInstanceVariable,rubyClassVariable
    +syn match  rubyInterpolationDelimiter "#\ze[$@]"				   display contained
    +
    +syn match rubyStringEscape "\\\_."											   contained display
    +syn match rubyStringEscape "\\\o\{1,3}\|\\x\x\{1,2}"									   contained display
    +syn match rubyStringEscape "\\u\%(\x\{4}\|{\x\{1,6}\%(\s\+\x\{1,6}\)*}\)"						   contained display
    +syn match rubyStringEscape "\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\%(\\\o\{1,3}\|\\x\x\{1,2}\|\\\=.\)" contained display
    +
    +syn match rubyBackslashEscape "\\\\" contained display
    +syn match rubyQuoteEscape     "\\'"  contained display
    +syn match rubySpaceEscape     "\\ "  contained display
    +
    +syn match rubyParenthesisEscape	  "\\[()]"  contained display
    +syn match rubyCurlyBraceEscape	  "\\[{}]"  contained display
    +syn match rubyAngleBracketEscape  "\\[<>]"  contained display
    +syn match rubySquareBracketEscape "\\[[\]]" contained display
    +
    +syn region rubyNestedParentheses    start="("  skip="\\\\\|\\)"  end=")"	transparent contained
    +syn region rubyNestedCurlyBraces    start="{"  skip="\\\\\|\\}"  end="}"	transparent contained
    +syn region rubyNestedAngleBrackets  start="<"  skip="\\\\\|\\>"  end=">"	transparent contained
    +syn region rubyNestedSquareBrackets start="\[" skip="\\\\\|\\\]" end="\]"	transparent contained
    +
    +syn cluster rubySingleCharEscape contains=rubyBackslashEscape,rubyQuoteEscape,rubySpaceEscape,rubyParenthesisEscape,rubyCurlyBraceEscape,rubyAngleBracketEscape,rubySquareBracketEscape
    +syn cluster rubyNestedBrackets	 contains=rubyNested.\+
    +syn cluster rubyStringSpecial	 contains=rubyInterpolation,rubyStringEscape
    +syn cluster rubyStringNotTop	 contains=@rubyStringSpecial,@rubyNestedBrackets,@rubySingleCharEscape
    +
    +" Regular Expression Metacharacters {{{1
    +syn region rubyRegexpComment	  matchgroup=rubyRegexpSpecial	 start="(?#"								     skip="\\\\\|\\)"  end=")"	contained
    +syn region rubyRegexpParens	  matchgroup=rubyRegexpSpecial	 start="(\%(?:\|?<\=[=!]\|?>\|?<[a-z_]\w*>\|?[imx]*-[imx]*:\=\|\%(?#\)\@!\)" skip="\\\\\|\\)"  end=")"	contained transparent contains=@rubyRegexpSpecial
    +syn region rubyRegexpBrackets	  matchgroup=rubyRegexpCharClass start="\[\^\="								     skip="\\\\\|\\\]" end="\]" contained transparent contains=rubyRegexpBrackets,rubyStringEscape,rubyRegexpEscape,rubyRegexpCharClass,rubyRegexpIntersection oneline
    +syn match  rubyRegexpCharClass	  "\\[DdHhRSsWw]"	 contained display
    +syn match  rubyRegexpCharClass	  "\[:\^\=\%(alnum\|alpha\|ascii\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|word\|xdigit\):\]" contained
    +syn match  rubyRegexpCharClass	  "\\[pP]{^\=.\{-}}"	 contained display
    +syn match  rubyRegexpEscape	  "\\[].*?+^$|\\/(){}[]" contained " see commit e477f10
    +syn match  rubyRegexpQuantifier	  "[*?+][?+]\="		 contained display
    +syn match  rubyRegexpQuantifier	  "{\d\+\%(,\d*\)\=}?\=" contained display
    +syn match  rubyRegexpAnchor	  "[$^]\|\\[ABbGZz]"	 contained display
    +syn match  rubyRegexpDot	  "\.\|\\X"		 contained display
    +syn match  rubyRegexpIntersection "&&"			 contained display
    +syn match  rubyRegexpSpecial	  "\\K"			 contained display
    +syn match  rubyRegexpSpecial	  "|"			 contained display
    +syn match  rubyRegexpSpecial	  "\\[1-9]\d\=\d\@!"	 contained display
    +syn match  rubyRegexpSpecial	  "\\k<\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\=>" contained display
    +syn match  rubyRegexpSpecial	  "\\k'\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\='" contained display
    +syn match  rubyRegexpSpecial	  "\\g<\%([a-z_]\w*\|-\=\d\+\)>"		contained display
    +syn match  rubyRegexpSpecial	  "\\g'\%([a-z_]\w*\|-\=\d\+\)'"		contained display
    +
    +syn cluster rubyRegexpSpecial contains=@rubyStringSpecial,rubyRegexpSpecial,rubyRegexpEscape,rubyRegexpBrackets,rubyRegexpCharClass,rubyRegexpDot,rubyRegexpQuantifier,rubyRegexpAnchor,rubyRegexpParens,rubyRegexpComment,rubyRegexpIntersection
    +
    +" Numbers {{{1
    +syn match rubyInteger "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@"							       display
    +syn match rubyInteger "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@"					       display
    +syn match rubyInteger "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@"							       display
    +syn match rubyInteger "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@"						       display
    +syn match rubyFloat   "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@"				       display
    +syn match rubyFloat   "\%(\%(\w\|[^\x00-\x7F]\|[]})\"']\s*\)\@" display
    +
    +" Identifiers {{{1
    +syn match rubyClassName	       "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!" contained
    +syn match rubyModuleName       "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!" contained
    +syn match rubyConstant	       "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!"
    +syn match rubyClassVariable    "@@\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*" display
    +syn match rubyInstanceVariable "@\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*"  display
    +syn match rubyGlobalVariable   "$\%(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\|-.\)"
    +syn match rubySymbolDelimiter  ":" contained
    +syn match rubySymbol	       "[]})\"':]\@1\|<=\|<\|===\|[=!]=\|[=!]\~\|!@\|!\|>>\|>=\|>\||\|-@\|-\|/\|\[]=\|\[]\|\*\*\|\*\|&\|%\|+@\|+\|`\)" contains=rubySymbolDelimiter
    +syn match rubySymbol	       "[]})\"':]\@1_,;:!?/.'"@$*\&+0]\)"			    contains=rubySymbolDelimiter
    +syn match rubySymbol	       "[]})\"':]\@1\@!\)\=" contains=rubySymbolDelimiter
    +
    +SynFold ':' syn region rubySymbol matchgroup=rubySymbolDelimiter start="[]})\"':]\@1\%(\s*(\)\@="
    +
    +syn region rubyParentheses	  start="("				 end=")" contains=ALLBUT,@rubyNotTop contained containedin=rubyBlockParameterList
    +syn region rubyBlockParameterList start="\%(\%(\\|{\)\_s*\)\@32<=|" end="|" contains=ALLBUT,@rubyNotTop,@rubyProperOperator
    +
    +if exists('ruby_global_variable_error')
    +  syn match rubyGlobalVariableError "$[^A-Za-z_]"	display
    +  syn match rubyGlobalVariableError "$-[^0FIKWadilpvw]" display
    +endif
    +
    +syn match rubyPredefinedVariable #$[!$&"'*+,./0:;<>?@\`~]#
    +syn match rubyPredefinedVariable "$\d\+"									    display
    +syn match rubyPredefinedVariable "$_\>"										    display
    +syn match rubyPredefinedVariable "$-[0FIWadilpvw]\>"								    display
    +syn match rubyPredefinedVariable "$\%(stderr\|stdin\|stdout\)\>"						    display
    +syn match rubyPredefinedVariable "$\%(DEBUG\|FILENAME\|LOADED_FEATURES\|LOAD_PATH\|PROGRAM_NAME\|SAFE\|VERBOSE\)\>" display
    +syn match rubyPredefinedConstant "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!"
    +syn match rubyPredefinedConstant "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!"
    +
    +" Deprecated/removed in 1.9
    +syn match rubyPredefinedVariable "$="
    +syn match rubyPredefinedVariable "$-K\>"		  display
    +syn match rubyPredefinedVariable "$\%(deferr\|defout\)\>" display
    +syn match rubyPredefinedVariable "$KCODE\>"		  display
    +" Deprecated/removed in 2.4
    +syn match rubyPredefinedConstant "\%(\%(^\|[^.]\)\.\s*\)\@\%(\s*(\)\@!"
    +
    +syn cluster rubyGlobalVariable contains=rubyGlobalVariable,rubyPredefinedVariable,rubyGlobalVariableError
    +
    +" Normal Regular Expressions {{{1
    +SynFold '/' syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="\%(\%(^\|\<\%(and\|or\|while\|until\|unless\|if\|elsif\|when\|not\|then\|else\)\|[;\~=!|&(,{[<>?:*+-]\)\s*\)\@<=/" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@rubyRegexpSpecial nextgroup=@rubyModifier skipwhite
    +SynFold '/' syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="\%(\%(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\s\+\)\@<=/\%(=\|\_s\)\@!"					   end="/[iomxneus]*" skip="\\\\\|\\/" contains=@rubyRegexpSpecial nextgroup=@rubyModifier skipwhite
    +
    +" Generalized Regular Expressions {{{1
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1[iomxneus]*" skip="\\\\\|\\\z1" contains=@rubyRegexpSpecial nextgroup=@rubyModifier skipwhite
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r{"				   end="}[iomxneus]*"	skip="\\\\\|\\}"   contains=@rubyRegexpSpecial
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r<"				   end=">[iomxneus]*"	skip="\\\\\|\\>"   contains=@rubyRegexpSpecial,rubyNestedAngleBrackets
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r\["				   end="\][iomxneus]*"	skip="\\\\\|\\\]"  contains=@rubyRegexpSpecial
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r("				   end=")[iomxneus]*"	skip="\\\\\|\\)"   contains=@rubyRegexpSpecial
    +SynFold '%' syn region rubyRegexp matchgroup=rubyPercentRegexpDelimiter start="%r\z(\s\)"			   end="\z1[iomxneus]*" skip="\\\\\|\\\z1" contains=@rubyRegexpSpecial
    +
    +" Characters {{{1
    +syn match rubyCharacter "\%(\w\|[^\x00-\x7F]\|[]})\"'/]\)\@1"   skip="\\\\\|\\>"   contains=rubyBackslashEscape,rubyAngleBracketEscape,rubyNestedAngleBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%q\["	  end="\]"  skip="\\\\\|\\\]"  contains=rubyBackslashEscape,rubySquareBracketEscape,rubyNestedSquareBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%q("	  end=")"   skip="\\\\\|\\)"   contains=rubyBackslashEscape,rubyParenthesisEscape,rubyNestedParentheses
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%q\z(\s\)" end="\z1" skip="\\\\\|\\\z1" contains=rubyBackslashEscape,rubySpaceEscape
    +
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%w{"	  end="}"   skip="\\\\\|\\}"   contains=rubyBackslashEscape,rubySpaceEscape,rubyCurlyBraceEscape,rubyNestedCurlyBraces
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%w<"	  end=">"   skip="\\\\\|\\>"   contains=rubyBackslashEscape,rubySpaceEscape,rubyAngleBracketEscape,rubyNestedAngleBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%w\["	  end="\]"  skip="\\\\\|\\\]"  contains=rubyBackslashEscape,rubySpaceEscape,rubySquareBracketEscape,rubyNestedSquareBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%w("	  end=")"   skip="\\\\\|\\)"   contains=rubyBackslashEscape,rubySpaceEscape,rubyParenthesisEscape,rubyNestedParentheses
    +
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%s{"	  end="}"   skip="\\\\\|\\}"   contains=rubyBackslashEscape,rubyCurlyBraceEscape,rubyNestedCurlyBraces
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%s<"	  end=">"   skip="\\\\\|\\>"   contains=rubyBackslashEscape,rubyAngleBracketEscape,rubyNestedAngleBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%s\["	  end="\]"  skip="\\\\\|\\\]"  contains=rubyBackslashEscape,rubySquareBracketEscape,rubyNestedSquareBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%s("	  end=")"   skip="\\\\\|\\)"   contains=rubyBackslashEscape,rubyParenthesisEscape,rubyNestedParentheses
    +SynFold '%' syn region rubyString matchgroup=rubyPercentSymbolDelimiter start="%s\z(\s\)" end="\z1" skip="\\\\\|\\\z1" contains=rubyBackslashEscape,rubySpaceEscape
    +
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%i{"	  end="}"   skip="\\\\\|\\}"   contains=rubyBackslashEscape,rubySpaceEscape,rubyCurlyBraceEscape,rubyNestedCurlyBraces
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%i<"	  end=">"   skip="\\\\\|\\>"   contains=rubyBackslashEscape,rubySpaceEscape,rubyAngleBracketEscape,rubyNestedAngleBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%i\["	  end="\]"  skip="\\\\\|\\\]"  contains=rubyBackslashEscape,rubySpaceEscape,rubySquareBracketEscape,rubyNestedSquareBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%i("	  end=")"   skip="\\\\\|\\)"   contains=rubyBackslashEscape,rubySpaceEscape,rubyParenthesisEscape,rubyNestedParentheses
    +
    +" Generalized Double Quoted Strings, Array of Strings, Array of Symbols and Shell Command Output {{{1
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="\%(\%(\w\|[^\x00-\x7F]\|]\)\s*\)\@"	 skip="\\\\\|\\>"   contains=@rubyStringSpecial,rubyNestedAngleBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%[QWx]\=\["			       end="\]"  skip="\\\\\|\\\]"  contains=@rubyStringSpecial,rubyNestedSquareBrackets
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%[QWx]\=("			       end=")"	 skip="\\\\\|\\)"   contains=@rubyStringSpecial,rubyNestedParentheses
    +SynFold '%' syn region rubyString matchgroup=rubyPercentStringDelimiter start="%[Qx]\z(\s\)"			       end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial
    +
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%I\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial nextgroup=@rubyModifier skipwhite
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%I{"				   end="}"   skip="\\\\\|\\}"	contains=@rubyStringSpecial,rubyNestedCurlyBraces
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%I<"				   end=">"   skip="\\\\\|\\>"	contains=@rubyStringSpecial,rubyNestedAngleBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%I\["				   end="\]"  skip="\\\\\|\\\]"	contains=@rubyStringSpecial,rubyNestedSquareBrackets
    +SynFold '%' syn region rubySymbol matchgroup=rubyPercentSymbolDelimiter start="%I("				   end=")"   skip="\\\\\|\\)"	contains=@rubyStringSpecial,rubyNestedParentheses
    +
    +" Here Documents {{{1
    +syn region rubyHeredocStart matchgroup=rubyHeredocDelimiter start=+\%(\%(class\|::\|\.\@1>\|[<>]=\=\|<=>\|===\|[=!]=\|[=!]\~\|!\|`\)\%([[:space:];#(]\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration
    +
    +syn cluster rubyDeclaration contains=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration,rubyModuleDeclaration,rubyClassDeclaration,rubyMethodName
    +
    +" Keywords {{{1
    +" TODO: reorganise
    +syn match rubyControl	     "\%#=1\<\%(break\|in\|next\|redo\|retry\|return\)\>"
    +syn match rubyKeyword	     "\%#=1\<\%(super\|yield\)\>"
    +syn match rubyBoolean	     "\%#=1\<\%(true\|false\)\>[?!]\@!"
    +syn match rubyPseudoVariable "\%#=1\<\%(self\|nil\)\>[?!]\@!"
    +syn match rubyPseudoVariable "\%#=1\<__\%(ENCODING\|dir\|FILE\|LINE\|callee\|method\)__\>"
    +syn match rubyBeginEnd	     "\%#=1\<\%(BEGIN\|END\)\>"
    +
    +" Expensive Mode {{{1
    +" Match 'end' with the appropriate opening keyword for syntax based folding
    +" and special highlighting of module/class/method definitions
    +if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
    +  syn match rubyDefine "\"  nextgroup=rubyAliasDeclaration			  skipwhite skipnl
    +  syn match rubyDefine "\"    nextgroup=rubyMethodDeclaration			  skipwhite skipnl
    +  syn match rubyDefine "\"  nextgroup=rubyMethodName				  skipwhite skipnl
    +  syn match rubyClass  "\"  nextgroup=rubyClassDeclaration,rubyEigenClassOperator skipwhite skipnl
    +  syn match rubyModule "\" nextgroup=rubyModuleDeclaration			  skipwhite skipnl
    +
    +  SynFold 'def'    syn region rubyMethodBlock start="\"	 matchgroup=rubyDefine skip="\" end="\" contains=ALLBUT,@rubyNotTop
    +  SynFold 'class'  syn region rubyClassBlock  start="\"  matchgroup=rubyClass  skip="\"
    +  syn match rubyRepeatModifier	    "\<\%(while\|until\)\>"
    +  syn match rubyRescueModifier	    "\"
    +
    +  syn cluster rubyModifier contains=rubyConditionalModifier,rubyRepeatModifier,rubyRescueModifier
    +
    +  SynFold 'do' syn region rubyDoBlock matchgroup=rubyControl start="\" skip="\"	 contained containedin=rubyCaseExpression
    +  syn match rubyConditional "\<\%(then\|else\|elsif\)\>" contained containedin=rubyConditionalExpression
    +
    +  syn match   rubyExceptionHandler  "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>" contained containedin=rubyBlockExpression,rubyDoBlock
    +  syn match   rubyExceptionHandler2 "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>" contained containedin=rubyModuleBlock,rubyClassBlock,rubyMethodBlock
    +  syn cluster rubyExceptionHandler  contains=rubyExceptionHandler,rubyExceptionHandler2
    +
    +  " statements with optional 'do'
    +  syn region rubyOptionalDoLine matchgroup=rubyRepeat start="\" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+=-]\|\%(\<\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\@" matchgroup=rubyOptionalDo end="\" end="\ze\%(;\|$\)" oneline contains=ALLBUT,@rubyNotTop
    +
    +  SynFold 'for' syn region rubyRepeatExpression start="\" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+=-]\|\%(\<\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\@" matchgroup=rubyRepeat skip="\"    nextgroup=rubyMethodDeclaration skipwhite skipnl
    +  syn match rubyControl "\"  nextgroup=rubyClassDeclaration  skipwhite skipnl
    +  syn match rubyControl "\" nextgroup=rubyModuleDeclaration skipwhite skipnl
    +  syn match rubyControl "\<\%(case\|begin\|do\|for\|if\|unless\|while\|until\|else\|elsif\|rescue\|ensure\|then\|when\|end\)\>"
    +  syn match rubyKeyword "\<\%(alias\|undef\)\>"
    +endif
    +
    +if !exists("ruby_minlines")
    +  let ruby_minlines = 500
    +endif
    +exe "syn sync minlines=" . ruby_minlines
    +
    +" Special Methods {{{1
    +if !exists("ruby_no_special_methods")
    +  syn match rubyAccess	  "\<\%(public\|protected\|private\)\>" " use re=2
    +  syn match rubyAccess	  "\%#=1\<\%(public\|private\)_class_method\>"
    +  syn match rubyAccess	  "\%#=1\<\%(public\|private\)_constant\>"
    +  syn match rubyAccess	  "\%#=1\"
    +  syn match rubyAttribute "\%#=1\%(\%(^\|;\)\s*\)\@<=attr\>\%(\s*[.=]\)\@!" " attr is a common variable name
    +  syn match rubyAttribute "\%#=1\"
    +  syn match rubyControl   "\%#=1\<\%(abort\|at_exit\|exit\|fork\|loop\|trap\)\>"
    +  syn match rubyEval	  "\%#=1\"
    +  syn match rubyEval	  "\%#=1\<\%(class\|instance\|module\)_eval\>"
    +  syn match rubyException "\%#=1\<\%(raise\|fail\|catch\|throw\)\>"
    +  syn match rubyInclude   "\%#=1\<\%(autoload\|gem\|load\|require\%(_relative\)\=\)\>"
    +  syn match rubyKeyword   "\%#=1\<\%(callcc\|caller\|lambda\|proc\)\>"
    +  syn match rubyMacro	  "\%#=1\<\%(extend\|include\|prepend\|refine\|using\)\>"
    +  syn match rubyMacro	  "\%#=1\<\%(alias\|define\|define_singleton\|remove\|undef\)_method\>"
    +endif
    +
    +" Comments and Documentation {{{1
    +syn match   rubySharpBang    "\%^#!.*" display
    +syn keyword rubyTodo	     FIXME NOTE TODO OPTIMIZE HACK REVIEW XXX todo contained
    +syn match   rubyEncoding     "[[:alnum:]-_]\+" contained display
    +syn match   rubyMagicComment "\c\%<3l#\s*\zs\%(coding\|encoding\):"					contained nextgroup=rubyEncoding skipwhite
    +syn match   rubyMagicComment "\c\%<10l#\s*\zs\%(frozen[-_]string[-_]literal\|warn[-_]indent\|warn[-_]past[-_]scope\):" contained nextgroup=rubyBoolean  skipwhite
    +syn match   rubyMagicComment "\c\%<10l#\s*\zs\%(shareable[-_]constant[-_]value\):"				contained nextgroup=rubyEncoding  skipwhite
    +syn match   rubyComment	     "#.*" contains=@rubyCommentSpecial,rubySpaceError,@Spell
    +
    +syn cluster rubyCommentSpecial contains=rubySharpBang,rubyTodo,rubyMagicComment
    +syn cluster rubyCommentNotTop  contains=@rubyCommentSpecial,rubyEncoding
    +
    +if !exists("ruby_no_comment_fold") && s:foldable('#')
    +  syn region rubyMultilineComment start="^\s*#.*\n\%(^\s*#\)\@=" end="^\s*#.*\n\%(^\s*#\)\@!" contains=rubyComment transparent fold keepend
    +  syn region rubyDocumentation	  start="^=begin\ze\%(\s.*\)\=$" end="^=end\%(\s.*\)\=$"      contains=rubySpaceError,rubyTodo,@Spell fold
    +else
    +  syn region rubyDocumentation	  start="^=begin\s*$"		 end="^=end\s*$"              contains=rubySpaceError,rubyTodo,@Spell
    +endif
    +
    +" {{{1 Useless Line Continuations
    +syn match rubyUselessLineContinuation "\%([.:,;{([<>~\*%&^|+=-]\|%(\%(\w\|[^\x00-\x7F]\)\@1\)" transparent contains=rubyDotOperator,rubyScopeOperator
    +
    +" Bang and Predicate Methods and Operators {{{1
    +syn match rubyBangPredicateMethod "\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[?!]"
    +
    +if !exists("ruby_no_special_methods")
    +  syn match rubyControl "\%#=1\
    +" Maintainer:   Ben Blum 
    +" Maintainer:   Chris Morgan 
    +" Last Change:  2023-09-11
    +" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
    +
    +if version < 600
    +    syntax clear
    +elseif exists("b:current_syntax")
    +    finish
    +endif
    +
    +" Syntax definitions {{{1
    +" Basic keywords {{{2
    +syn keyword   rustConditional match if else
    +syn keyword   rustRepeat loop while
    +" `:syn match` must be used to prioritize highlighting `for` keyword.
    +syn match     rustRepeat /\/
    +" Highlight `for` keyword in `impl ... for ... {}` statement. This line must
    +" be put after previous `syn match` line to overwrite it.
    +syn match     rustKeyword /\%(\.\+\)\@<=\/
    +syn keyword   rustRepeat in
    +syn keyword   rustTypedef type nextgroup=rustIdentifier skipwhite skipempty
    +syn keyword   rustStructure struct enum nextgroup=rustIdentifier skipwhite skipempty
    +syn keyword   rustUnion union nextgroup=rustIdentifier skipwhite skipempty contained
    +syn match rustUnionContextual /\/
    +syn keyword   rustAwait       await
    +syn match     rustKeyword     /\!\@!/ display
    +
    +syn keyword rustPubScopeCrate crate contained
    +syn match rustPubScopeDelim /[()]/ contained
    +syn match rustPubScope /([^()]*)/ contained contains=rustPubScopeDelim,rustPubScopeCrate,rustSuper,rustModPath,rustModPathSep,rustSelf transparent
    +
    +syn keyword   rustExternCrate crate contained nextgroup=rustIdentifier,rustExternCrateString skipwhite skipempty
    +" This is to get the `bar` part of `extern crate "foo" as bar;` highlighting.
    +syn match   rustExternCrateString /".*"\_s*as/ contained nextgroup=rustIdentifier skipwhite transparent skipempty contains=rustString,rustOperator
    +syn keyword   rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipwhite skipempty
    +
    +syn match     rustIdentifier  contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
    +syn match     rustFuncName    "\%(r#\)\=\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
    +
    +syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end="),\=[*+]" contains=TOP
    +syn match rustMacroVariable "$\w\+"
    +syn match rustRawIdent "\();
    +
    +" This is merely a convention; note also the use of [A-Z], restricting it to
    +" latin identifiers rather than the full Unicode uppercase. I have not used
    +" [:upper:] as it depends upon 'noignorecase'
    +"syn match     rustCapsIdent    display "[A-Z]\w\(\w\)*"
    +
    +syn match     rustOperator     display "\%(+\|-\|/\|*\|=\|\^\|&\||\|!\|>\|<\|%\)=\?"
    +" This one isn't *quite* right, as we could have binary-& with a reference
    +syn match     rustSigil        display /&\s\+[&~@*][^)= \t\r\n]/he=e-1,me=e-1
    +syn match     rustSigil        display /[&~@*][^)= \t\r\n]/he=e-1,me=e-1
    +" This isn't actually correct; a closure with no arguments can be `|| { }`.
    +" Last, because the & in && isn't a sigil
    +syn match     rustOperator     display "&&\|||"
    +" This is rustArrowCharacter rather than rustArrow for the sake of matchparen,
    +" so it skips the ->; see http://stackoverflow.com/a/30309949 for details.
    +syn match     rustArrowCharacter display "->"
    +syn match     rustQuestionMark display "?\([a-zA-Z]\+\)\@!"
    +
    +syn match     rustMacro       '\w\(\w\)*!' contains=rustAssert,rustPanic
    +syn match     rustMacro       '#\w\(\w\)*' contains=rustAssert,rustPanic
    +
    +syn match     rustEscapeError   display contained /\\./
    +syn match     rustEscape        display contained /\\\([nrt0\\'"]\|x\x\{2}\)/
    +syn match     rustEscapeUnicode display contained /\\u{\%(\x_*\)\{1,6}}/
    +syn match     rustStringContinuation display contained /\\\n\s*/
    +syn region    rustString      matchgroup=rustStringDelimiter start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeError,rustStringContinuation
    +syn region    rustString      matchgroup=rustStringDelimiter start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell
    +syn region    rustString      matchgroup=rustStringDelimiter start='b\?r\z(#*\)"' end='"\z1' contains=@Spell
    +
    +" Match attributes with either arbitrary syntax or special highlighting for
    +" derives. We still highlight strings and comments inside of the attribute.
    +syn region    rustAttribute   start="#!\?\[" end="\]" contains=@rustAttributeContents,rustAttributeParenthesizedParens,rustAttributeParenthesizedCurly,rustAttributeParenthesizedBrackets,rustDerive
    +syn region    rustAttributeParenthesizedParens matchgroup=rustAttribute start="\w\%(\w\)*("rs=e end=")"re=s transparent contained contains=rustAttributeBalancedParens,@rustAttributeContents
    +syn region    rustAttributeParenthesizedCurly matchgroup=rustAttribute start="\w\%(\w\)*{"rs=e end="}"re=s transparent contained contains=rustAttributeBalancedCurly,@rustAttributeContents
    +syn region    rustAttributeParenthesizedBrackets matchgroup=rustAttribute start="\w\%(\w\)*\["rs=e end="\]"re=s transparent contained contains=rustAttributeBalancedBrackets,@rustAttributeContents
    +syn region    rustAttributeBalancedParens matchgroup=rustAttribute start="("rs=e end=")"re=s transparent contained contains=rustAttributeBalancedParens,@rustAttributeContents
    +syn region    rustAttributeBalancedCurly matchgroup=rustAttribute start="{"rs=e end="}"re=s transparent contained contains=rustAttributeBalancedCurly,@rustAttributeContents
    +syn region    rustAttributeBalancedBrackets matchgroup=rustAttribute start="\["rs=e end="\]"re=s transparent contained contains=rustAttributeBalancedBrackets,@rustAttributeContents
    +syn cluster   rustAttributeContents contains=rustString,rustCommentLine,rustCommentBlock,rustCommentLineDocError,rustCommentBlockDocError
    +syn region    rustDerive      start="derive(" end=")" contained contains=rustDeriveTrait
    +" This list comes from src/libsyntax/ext/deriving/mod.rs
    +" Some are deprecated (Encodable, Decodable) or to be removed after a new snapshot (Show).
    +syn keyword   rustDeriveTrait contained Clone Hash RustcEncodable RustcDecodable Encodable Decodable PartialEq Eq PartialOrd Ord Rand Show Debug Default FromPrimitive Send Sync Copy
    +
    +" dyn keyword: It's only a keyword when used inside a type expression, so
    +" we make effort here to highlight it only when Rust identifiers follow it
    +" (not minding the case of pre-2018 Rust where a path starting with :: can
    +" follow).
    +"
    +" This is so that uses of dyn variable names such as in 'let &dyn = &2'
    +" and 'let dyn = 2' will not get highlighted as a keyword.
    +syn match     rustKeyword "\/ contains=rustGenericLifetimeCandidate
    +syn region rustGenericLifetimeCandidate display start=/\%(<\|,\s*\)\@<='/ end=/[[:cntrl:][:space:][:punct:]]\@=\|$/ contains=rustSigil,rustLifetime
    +
    +"rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting
    +syn match     rustLifetime    display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
    +syn match     rustLabel       display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*:"
    +syn match     rustLabel       display "\%(\<\%(break\|continue\)\s*\)\@<=\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
    +syn match   rustCharacterInvalid   display contained /b\?'\zs[\n\r\t']\ze'/
    +" The groups negated here add up to 0-255 but nothing else (they do not seem to go beyond ASCII).
    +syn match   rustCharacterInvalidUnicode   display contained /b'\zs[^[:cntrl:][:graph:][:alnum:][:space:]]\ze'/
    +syn match   rustCharacter   /b'\([^\\]\|\\\(.\|x\x\{2}\)\)'/ contains=rustEscape,rustEscapeError,rustCharacterInvalid,rustCharacterInvalidUnicode
    +syn match   rustCharacter   /'\([^\\]\|\\\(.\|x\x\{2}\|u{\%(\x_*\)\{1,6}}\)\)'/ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustCharacterInvalid
    +
    +syn match rustShebang /\%^#![^[].*/
    +syn region rustCommentLine                                                  start="//"                      end="$"   contains=rustTodo,@Spell
    +syn region rustCommentLineDoc                                               start="//\%(//\@!\|!\)"         end="$"   contains=rustTodo,@Spell
    +syn region rustCommentLineDocError                                          start="//\%(//\@!\|!\)"         end="$"   contains=rustTodo,@Spell contained
    +syn region rustCommentBlock             matchgroup=rustCommentBlock         start="/\*\%(!\|\*[*/]\@!\)\@!" end="\*/" contains=rustTodo,rustCommentBlockNest,@Spell
    +syn region rustCommentBlockDoc          matchgroup=rustCommentBlockDoc      start="/\*\%(!\|\*[*/]\@!\)"    end="\*/" contains=rustTodo,rustCommentBlockDocNest,rustCommentBlockDocRustCode,@Spell
    +syn region rustCommentBlockDocError     matchgroup=rustCommentBlockDocError start="/\*\%(!\|\*[*/]\@!\)"    end="\*/" contains=rustTodo,rustCommentBlockDocNestError,@Spell contained
    +syn region rustCommentBlockNest         matchgroup=rustCommentBlock         start="/\*"                     end="\*/" contains=rustTodo,rustCommentBlockNest,@Spell contained transparent
    +syn region rustCommentBlockDocNest      matchgroup=rustCommentBlockDoc      start="/\*"                     end="\*/" contains=rustTodo,rustCommentBlockDocNest,@Spell contained transparent
    +syn region rustCommentBlockDocNestError matchgroup=rustCommentBlockDocError start="/\*"                     end="\*/" contains=rustTodo,rustCommentBlockDocNestError,@Spell contained transparent
    +
    +" FIXME: this is a really ugly and not fully correct implementation. Most
    +" importantly, a case like ``/* */*`` should have the final ``*`` not being in
    +" a comment, but in practice at present it leaves comments open two levels
    +" deep. But as long as you stay away from that particular case, I *believe*
    +" the highlighting is correct. Due to the way Vim's syntax engine works
    +" (greedy for start matches, unlike Rust's tokeniser which is searching for
    +" the earliest-starting match, start or end), I believe this cannot be solved.
    +" Oh you who would fix it, don't bother with things like duplicating the Block
    +" rules and putting ``\*\@:p:h/rust.vim
    +    unlet b:current_syntax_embed
    +
    +    " Currently regions marked as ``` will not get
    +    " highlighted at all. In the future, we can do as vim-markdown does and
    +    " highlight with the other syntax. But for now, let's make sure we find
    +    " the closing block marker, because the rules below won't catch it.
    +    syn region rustCommentLinesDocNonRustCode matchgroup=rustCommentDocCodeFence start='^\z(\s*//[!/]\s*```\).\+$' end='^\z1$' keepend contains=rustCommentLineDoc
    +
    +    " We borrow the rules from rust’s src/librustdoc/html/markdown.rs, so that
    +    " we only highlight as Rust what it would perceive as Rust (almost; it’s
    +    " possible to trick it if you try hard, and indented code blocks aren’t
    +    " supported because Markdown is a menace to parse and only mad dogs and
    +    " Englishmen would try to handle that case correctly in this syntax file).
    +    syn region rustCommentLinesDocRustCode matchgroup=rustCommentDocCodeFence start='^\z(\s*//[!/]\s*```\)[^A-Za-z0-9_-]*\%(\%(should_panic\|no_run\|ignore\|allow_fail\|rust\|test_harness\|compile_fail\|E\d\{4}\|edition201[58]\)\%([^A-Za-z0-9_-]\+\|$\)\)*$' end='^\z1$' keepend contains=@RustCodeInComment,rustCommentLineDocLeader
    +    syn region rustCommentBlockDocRustCode matchgroup=rustCommentDocCodeFence start='^\z(\%(\s*\*\)\?\s*```\)[^A-Za-z0-9_-]*\%(\%(should_panic\|no_run\|ignore\|allow_fail\|rust\|test_harness\|compile_fail\|E\d\{4}\|edition201[58]\)\%([^A-Za-z0-9_-]\+\|$\)\)*$' end='^\z1$' keepend contains=@RustCodeInComment,rustCommentBlockDocStar
    +    " Strictly, this may or may not be correct; this code, for example, would
    +    " mishighlight:
    +    "
    +    "     /**
    +    "     ```rust
    +    "     println!("{}", 1
    +    "     * 1);
    +    "     ```
    +    "     */
    +    "
    +    " … but I don’t care. Balance of probability, and all that.
    +    syn match rustCommentBlockDocStar /^\s*\*\s\?/ contained
    +    syn match rustCommentLineDocLeader "^\s*//\%(//\@!\|!\)" contained
    +endif
    +
    +" Default highlighting {{{1
    +hi def link rustDecNumber       rustNumber
    +hi def link rustHexNumber       rustNumber
    +hi def link rustOctNumber       rustNumber
    +hi def link rustBinNumber       rustNumber
    +hi def link rustIdentifierPrime rustIdentifier
    +hi def link rustTrait           rustType
    +hi def link rustDeriveTrait     rustTrait
    +
    +hi def link rustMacroRepeatDelimiters   Macro
    +hi def link rustMacroVariable Define
    +hi def link rustSigil         StorageClass
    +hi def link rustEscape        Special
    +hi def link rustEscapeUnicode rustEscape
    +hi def link rustEscapeError   Error
    +hi def link rustStringContinuation Special
    +hi def link rustString        String
    +hi def link rustStringDelimiter String
    +hi def link rustCharacterInvalid Error
    +hi def link rustCharacterInvalidUnicode rustCharacterInvalid
    +hi def link rustCharacter     Character
    +hi def link rustNumber        Number
    +hi def link rustBoolean       Boolean
    +hi def link rustEnum          rustType
    +hi def link rustEnumVariant   rustConstant
    +hi def link rustConstant      Constant
    +hi def link rustSelf          Constant
    +hi def link rustFloat         Float
    +hi def link rustArrowCharacter rustOperator
    +hi def link rustOperator      Operator
    +hi def link rustKeyword       Keyword
    +hi def link rustDynKeyword    rustKeyword
    +hi def link rustTypedef       Keyword " More precise is Typedef, but it doesn't feel right for Rust
    +hi def link rustStructure     Keyword " More precise is Structure
    +hi def link rustUnion         rustStructure
    +hi def link rustExistential   rustKeyword
    +hi def link rustPubScopeDelim Delimiter
    +hi def link rustPubScopeCrate rustKeyword
    +hi def link rustSuper         rustKeyword
    +hi def link rustUnsafeKeyword Exception
    +hi def link rustReservedKeyword Error
    +hi def link rustRepeat        Conditional
    +hi def link rustConditional   Conditional
    +hi def link rustIdentifier    Identifier
    +hi def link rustCapsIdent     rustIdentifier
    +hi def link rustModPath       Include
    +hi def link rustModPathSep    Delimiter
    +hi def link rustFunction      Function
    +hi def link rustFuncName      Function
    +hi def link rustFuncCall      Function
    +hi def link rustShebang       Comment
    +hi def link rustCommentLine   Comment
    +hi def link rustCommentLineDoc SpecialComment
    +hi def link rustCommentLineDocLeader rustCommentLineDoc
    +hi def link rustCommentLineDocError Error
    +hi def link rustCommentBlock  rustCommentLine
    +hi def link rustCommentBlockDoc rustCommentLineDoc
    +hi def link rustCommentBlockDocStar rustCommentBlockDoc
    +hi def link rustCommentBlockDocError Error
    +hi def link rustCommentDocCodeFence rustCommentLineDoc
    +hi def link rustAssert        PreCondit
    +hi def link rustPanic         PreCondit
    +hi def link rustMacro         Macro
    +hi def link rustType          Type
    +hi def link rustTodo          Todo
    +hi def link rustAttribute     PreProc
    +hi def link rustDerive        PreProc
    +hi def link rustDefault       StorageClass
    +hi def link rustStorage       StorageClass
    +hi def link rustObsoleteStorage Error
    +hi def link rustLifetime      Special
    +hi def link rustLabel         Label
    +hi def link rustExternCrate   rustKeyword
    +hi def link rustObsoleteExternMod Error
    +hi def link rustQuestionMark  Special
    +hi def link rustAsync         rustKeyword
    +hi def link rustAwait         rustKeyword
    +hi def link rustAsmDirSpec    rustKeyword
    +hi def link rustAsmSym        rustKeyword
    +hi def link rustAsmOptions    rustKeyword
    +hi def link rustAsmOptionsKey rustAttribute
    +
    +" Other Suggestions:
    +" hi rustAttribute ctermfg=cyan
    +" hi rustDerive ctermfg=cyan
    +" hi rustAssert ctermfg=yellow
    +" hi rustPanic ctermfg=red
    +" hi rustMacro ctermfg=magenta
    +
    +syn sync minlines=200
    +syn sync maxlines=500
    +
    +let b:current_syntax = "rust"
    +
    +" vim: set et sw=4 sts=4 ts=8:
    diff --git a/git/usr/share/vim/vim92/syntax/salt.vim b/git/usr/share/vim/vim92/syntax/salt.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..fdbce2f677078ba39dfbb8eadf60ad63d867c09f
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/salt.vim
    @@ -0,0 +1,16 @@
    +" Vim syntax file
    +" Maintainer: Gregory Anders
    +" Last Changed: 2024-09-16
    +
    +if exists('b:current_syntax')
    +  finish
    +endif
    +
    +" Salt state files are just YAML with embedded Jinja
    +runtime! syntax/yaml.vim
    +unlet! b:current_syntax
    +
    +runtime! syntax/jinja.vim
    +unlet! b:current_syntax
    +
    +let b:current_syntax = 'salt'
    diff --git a/git/usr/share/vim/vim92/syntax/samba.vim b/git/usr/share/vim/vim92/syntax/samba.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..e096436626443b78f976f93ef8661c2ac751de77
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/samba.vim
    @@ -0,0 +1,118 @@
    +" Vim syntax file
    +" Language:	samba configuration files (smb.conf)
    +" Maintainer:	Rafael Garcia-Suarez 
    +" URL:		http://rgarciasuarez.free.fr/vim/syntax/samba.vim
    +" Last change:	2009 Aug 06
    +"
    +"               New maintainer wanted!
    +"
    +" Don't forget to run your config file through testparm(1)!
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case ignore
    +
    +syn match sambaParameter /^[a-zA-Z \t]\+=/ contains=sambaKeyword
    +syn match sambaSection /^\s*\[[a-zA-Z0-9_\-.$ ]\+\]/
    +syn match sambaMacro /%[SPugUGHvhmLMNpRdaITD]/
    +syn match sambaMacro /%$([a-zA-Z0-9_]\+)/
    +syn match sambaComment /^\s*[;#].*/
    +syn match sambaContinue /\\$/
    +syn keyword sambaBoolean true false yes no
    +
    +" Keywords for Samba 2.0.5a
    +syn keyword sambaKeyword contained account acl action add address admin aliases
    +syn keyword sambaKeyword contained allow alternate always announce anonymous
    +syn keyword sambaKeyword contained archive as auto available bind blocking
    +syn keyword sambaKeyword contained bmpx break browsable browse browseable ca
    +syn keyword sambaKeyword contained cache case casesignames cert certDir
    +syn keyword sambaKeyword contained certFile change char character chars chat
    +syn keyword sambaKeyword contained ciphers client clientcert code coding
    +syn keyword sambaKeyword contained command comment compatibility config
    +syn keyword sambaKeyword contained connections contention controller copy
    +syn keyword sambaKeyword contained create deadtime debug debuglevel default
    +syn keyword sambaKeyword contained delete deny descend dfree dir directory
    +syn keyword sambaKeyword contained disk dns domain domains dont dos dot drive
    +syn keyword sambaKeyword contained driver encrypt encrypted equiv exec fake
    +syn keyword sambaKeyword contained file files filetime filetimes filter follow
    +syn keyword sambaKeyword contained force fstype getwd group groups guest
    +syn keyword sambaKeyword contained hidden hide home homedir hosts include
    +syn keyword sambaKeyword contained interfaces interval invalid keepalive
    +syn keyword sambaKeyword contained kernel key ldap length level level2 limit
    +syn keyword sambaKeyword contained links list lm load local location lock
    +syn keyword sambaKeyword contained locking locks log logon logons logs lppause
    +syn keyword sambaKeyword contained lpq lpresume lprm machine magic mangle
    +syn keyword sambaKeyword contained mangled mangling map mask master max mem
    +syn keyword sambaKeyword contained message min mode modes mux name names
    +syn keyword sambaKeyword contained netbios nis notify nt null offset ok ole
    +syn keyword sambaKeyword contained only open oplock oplocks options order os
    +syn keyword sambaKeyword contained output packet page panic passwd password
    +syn keyword sambaKeyword contained passwords path permissions pipe port ports
    +syn keyword sambaKeyword contained postexec postscript prediction preexec
    +syn keyword sambaKeyword contained prefered preferred preload preserve print
    +syn keyword sambaKeyword contained printable printcap printer printers
    +syn keyword sambaKeyword contained printing program protocol proxy public
    +syn keyword sambaKeyword contained queuepause queueresume raw read readonly
    +syn keyword sambaKeyword contained realname remote require resign resolution
    +syn keyword sambaKeyword contained resolve restrict revalidate rhosts root
    +syn keyword sambaKeyword contained script security sensitive server servercert
    +syn keyword sambaKeyword contained service services set share shared short
    +syn keyword sambaKeyword contained size smb smbrun socket space ssl stack stat
    +syn keyword sambaKeyword contained status strict string strip suffix support
    +syn keyword sambaKeyword contained symlinks sync syslog system time timeout
    +syn keyword sambaKeyword contained times timestamp to trusted ttl unix update
    +syn keyword sambaKeyword contained use user username users valid version veto
    +syn keyword sambaKeyword contained volume wait wide wins workgroup writable
    +syn keyword sambaKeyword contained write writeable xmit
    +
    +" New keywords for Samba 2.0.6
    +syn keyword sambaKeyword contained hook hires pid uid close rootpreexec
    +
    +" New keywords for Samba 2.0.7
    +syn keyword sambaKeyword contained utmp wtmp hostname consolidate
    +syn keyword sambaKeyword contained inherit source environment
    +
    +" New keywords for Samba 2.2.0
    +syn keyword sambaKeyword contained addprinter auth browsing deleteprinter
    +syn keyword sambaKeyword contained enhanced enumports filemode gid host jobs
    +syn keyword sambaKeyword contained lanman msdfs object os2 posix processes
    +syn keyword sambaKeyword contained scope separator shell show smbd template
    +syn keyword sambaKeyword contained total vfs winbind wizard
    +
    +" New keywords for Samba 2.2.1
    +syn keyword sambaKeyword contained large obey pam readwrite restrictions
    +syn keyword sambaKeyword contained unreadable
    +
    +" New keywords for Samba 2.2.2 - 2.2.4
    +syn keyword sambaKeyword contained acls allocate bytes count csc devmode
    +syn keyword sambaKeyword contained disable dn egd entropy enum extensions mmap
    +syn keyword sambaKeyword contained policy spin spoolss
    +
    +" Since Samba 3.0.2
    +syn keyword sambaKeyword contained abort afs algorithmic backend
    +syn keyword sambaKeyword contained charset cups defer display
    +syn keyword sambaKeyword contained enable idmap kerberos lookups
    +syn keyword sambaKeyword contained methods modules nested NIS ntlm NTLMv2
    +syn keyword sambaKeyword contained objects paranoid partners passdb
    +syn keyword sambaKeyword contained plaintext prefix primary private
    +syn keyword sambaKeyword contained profile quota realm replication
    +syn keyword sambaKeyword contained reported rid schannel sendfile sharing
    +syn keyword sambaKeyword contained shutdown signing special spnego
    +syn keyword sambaKeyword contained store unknown unwriteable
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +hi def link sambaParameter Normal
    +hi def link sambaKeyword   Type
    +hi def link sambaSection   Statement
    +hi def link sambaMacro     PreProc
    +hi def link sambaComment   Comment
    +hi def link sambaContinue  Operator
    +hi def link sambaBoolean   Constant
    +
    +let b:current_syntax = "samba"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sas.vim b/git/usr/share/vim/vim92/syntax/sas.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..fad60667379a58a87a592ded261716a10308bcdb
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sas.vim
    @@ -0,0 +1,265 @@
    +" Vim syntax file
    +" Language:     SAS
    +" Maintainer:   Zhen-Huan Hu 
    +" Original Maintainer: James Kidd 
    +" Version:      3.0.0
    +" Last Change:  Aug 26, 2017
    +"
    +" 2017 Mar 7
    +"
    +" Upgrade version number to 3.0. Improvements include:
    +" - Improve sync speed
    +" - Largely enhance precision
    +" - Update keywords in the latest SAS (as of Mar 2017)
    +" - Add syntaxes for date/time constants
    +" - Add syntax for data lines
    +" - Add (back) syntax for TODO in comments
    +"
    +" 2017 Feb 9
    +"
    +" Add syntax folding 
    +"
    +" 2016 Oct 10
    +"
    +" Add highlighting for functions
    +"
    +" 2016 Sep 14
    +"
    +" Change the implementation of syntaxing
    +" macro function names so that macro parameters same
    +" as SAS keywords won't be highlighted
    +" (Thank Joug Raw for the suggestion)
    +" Add section highlighting:
    +" - Use /** and **/ to define a section
    +" - It functions the same as a comment but
    +"   with different highlighting
    +"
    +" 2016 Jun 14
    +"
    +" Major changes so upgrade version number to 2.0
    +" Overhaul the entire script (again). Improvements include:
    +" - Higher precision
    +" - Faster synchronization
    +" - Separate color for control statements
    +" - Highlight hash and java objects
    +" - Highlight macro variables in double quoted strings
    +" - Update all syntaxes based on SAS 9.4
    +" - Add complete SAS/GRAPH and SAS/STAT procedure syntaxes
    +" - Add Proc TEMPLATE and GTL syntaxes
    +" - Add complete DS2 syntaxes
    +" - Add basic IML syntaxes
    +" - Many other improvements and bug fixes
    +" Drop support for VIM version < 600
    +
    +if version < 600
    +  syntax clear
    +elseif exists('b:current_syntax')
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn case ignore
    +
    +" Basic SAS syntaxes
    +syn keyword sasOperator and eq ge gt in le lt ne not of or
    +syn keyword sasReserved _all_ _automatic_ _char_ _character_ _data_ _infile_ _last_ _n_ _name_ _null_ _num_ _numeric_ _temporary_ _user_ _webout_
    +" Strings
    +syn region sasString start=+'+ skip=+''+ end=+'+ contains=@Spell
    +syn region sasString start=+"+ skip=+""+ end=+"+ contains=sasMacroVariable,@Spell
    +" Constants
    +syn match sasNumber /\v<\d+%(\.\d+)=%(>|e[\-+]=\d+>)/ display
    +syn match sasDateTime /\v(['"])\d{2}%(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d{2}%(\d{2})=:\d{2}:\d{2}%(:\d{2})=%(am|pm)\1dt>/ display
    +syn match sasDateTime /\v(['"])\d{2}%(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d{2}%(\d{2})=\1d>/ display
    +syn match sasDateTime /\v(['"])\d{2}:\d{2}%(:\d{2})=%(am|pm)\1t>/ display
    +" Comments
    +syn keyword sasTodo todo tbd fixme contained
    +syn region sasComment start='/\*' end='\*/' contains=sasTodo
    +syn region sasComment start='\v%(^|;)\s*\zs\%=\*' end=';'me=s-1 contains=sasTodo
    +syn region sasSectLbl matchgroup=sasSectLblEnds start='/\*\*\s*' end='\s*\*\*/' concealends
    +" Macros
    +syn match sasMacroVariable '\v\&+\w+%(\.\w+)=' display
    +syn match sasMacroReserved '\v\%%(abort|by|copy|display|do|else|end|global|goto|if|include|input|let|list|local|macro|mend|put|return|run|symdel|syscall|sysexec|syslput|sysrput|then|to|until|window|while)>' display
    +syn region sasMacroFunction matchgroup=sasMacroFunctionName start='\v\%\w+\ze\(' end=')'he=s-1 contains=@sasBasicSyntax,sasMacroFunction
    +syn region sasMacroFunction matchgroup=sasMacroFunctionName start='\v\%q=sysfunc\ze\(' end=')'he=s-1 contains=@sasBasicSyntax,sasMacroFunction,sasDataStepFunction
    +" Syntax cluster for basic SAS syntaxes
    +syn cluster sasBasicSyntax contains=sasOperator,sasReserved,sasNumber,sasDateTime,sasString,sasComment,sasMacroReserved,sasMacroFunction,sasMacroVariable,sasSectLbl
    +
    +" Formats
    +syn match sasFormat '\v\$\w+\.' display contained
    +syn match sasFormat '\v<\w+\.%(\d+>)=' display contained
    +syn region sasFormatContext start='.' end=';'me=s-1 contained contains=@sasBasicSyntax,sasFormat
    +
    +" Define global statements that can be accessed out of data step or procedures
    +syn keyword sasGlobalStatementKeyword catname dm endsas filename footnote footnote1 footnote2 footnote3 footnote4 footnote5 footnote6 footnote7 footnote8 footnote9 footnote10 missing libname lock ods options page quit resetline run sasfile skip sysecho title title1 title2 title3 title4 title5 title6 title7 title8 title9 title10 contained
    +syn keyword sasGlobalStatementODSKeyword chtml csvall docbook document escapechar epub epub2 epub3 exclude excel graphics html html3 html5 htmlcss imode listing markup output package path pcl pdf preferences phtml powerpoint printer proclabel proctitle ps results rtf select show tagsets trace usegopt verify wml contained
    +syn match sasGlobalStatement '\v%(^|;)\s*\zs\h\w*>' display transparent contains=sasGlobalStatementKeyword
    +syn match sasGlobalStatement '\v%(^|;)\s*\zsods>' display transparent contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +
    +" Data step statements, 9.4
    +syn keyword sasDataStepFunctionName abs addr addrlong airy allcomb allperm anyalnum anyalpha anycntrl anydigit anyfirst anygraph anylower anyname anyprint anypunct anyspace anyupper anyxdigit arcos arcosh arsin arsinh artanh atan atan2 attrc attrn band beta betainv blackclprc blackptprc blkshclprc blkshptprc blshift bnot bor brshift bxor byte cat catq cats catt catx cdf ceil ceilz cexist char choosec choosen cinv close cmiss cnonct coalesce coalescec collate comb compare compbl compfuzz compged complev compound compress constant convx convxp cos cosh cot count countc countw csc css cumipmt cumprinc curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datdif date datejul datepart datetime day dclose dcreate depdb depdbsl depsl depsyd deptab dequote deviance dhms dif digamma dim dinfo divide dnum dopen doptname doptnum dosubl dread dropnote dsname dsncatlgd dur durp effrate envlen erf erfc euclid exist exp fact fappend fclose fcol fcopy fdelete fetch fetchobs fexist fget fileexist filename fileref finance find findc findw finfo finv fipname fipnamel fipstate first floor floorz fmtinfo fnonct fnote fopen foptname foptnum fpoint fpos fput fread frewind frlen fsep fuzz fwrite gaminv gamma garkhclprc garkhptprc gcd geodist geomean geomeanz getoption getvarc getvarn graycode harmean harmeanz hbound hms holiday holidayck holidaycount holidayname holidaynx holidayny holidaytest hour htmldecode htmlencode ibessel ifc ifn index indexc indexw input inputc inputn int intcindex intck intcycle intfit intfmt intget intindex intnx intrr intseas intshift inttest intz iorcmsg ipmt iqr irr jbessel juldate juldate7 kurtosis lag largest lbound lcm lcomb left length lengthc lengthm lengthn lexcomb lexcombi lexperk lexperm lfact lgamma libname libref log log1px log10 log2 logbeta logcdf logistic logpdf logsdf lowcase lperm lpnorm mad margrclprc margrptprc max md5 mdy mean median min minute missing mod modexist module modulec modulen modz month mopen mort msplint mvalid contained
    +syn keyword sasDataStepFunctionName n netpv nliteral nmiss nomrate normal notalnum notalpha notcntrl notdigit note notfirst notgraph notlower notname notprint notpunct notspace notupper notxdigit npv nvalid nwkdom open ordinal pathname pctl pdf peek peekc peekclong peeklong perm pmt point poisson ppmt probbeta probbnml probbnrm probchi probf probgam probhypr probit probmc probnegb probnorm probt propcase prxchange prxmatch prxparen prxparse prxposn ptrlongadd put putc putn pvp qtr quantile quote ranbin rancau rand ranexp rangam range rank rannor ranpoi rantbl rantri ranuni rename repeat resolve reverse rewind right rms round rounde roundz saving savings scan sdf sec second sha256 sha256hex sha256hmachex sign sin sinh skewness sleep smallest soapweb soapwebmeta soapwipservice soapwipsrs soapws soapwsmeta soundex spedis sqrt squantile std stderr stfips stname stnamel strip subpad substr substrn sum sumabs symexist symget symglobl symlocal sysexist sysget sysmsg sysparm sysprocessid sysprocessname sysprod sysrc system tan tanh time timepart timevalue tinv tnonct today translate transtrn tranwrd trigamma trim trimn trunc tso typeof tzoneid tzonename tzoneoff tzones2u tzoneu2s uniform upcase urldecode urlencode uss uuidgen var varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vtype vtypex vvalue vvaluex week weekday whichc whichn wto year yieldp yrdif yyq zipcity zipcitydistance zipfips zipname zipnamel zipstate contained
    +syn keyword sasDataStepCallRoutineName allcomb allcombi allperm cats catt catx compcost execute graycode is8601_convert label lexcomb lexcombi lexperk lexperm logistic missing module poke pokelong prxchange prxdebug prxfree prxnext prxposn prxsubstr ranbin rancau rancomb ranexp rangam rannor ranperk ranperm ranpoi rantbl rantri ranuni scan set sleep softmax sortc sortn stdize streaminit symput symputx system tanh tso vname vnext wto contained
    +syn region sasDataStepFunctionContext start='(' end=')' contained contains=@sasBasicSyntax,sasDataStepFunction
    +syn region sasDataStepFunctionFormatContext start='(' end=')' contained contains=@sasBasicSyntax,sasDataStepFunction,sasFormat
    +syn match sasDataStepFunction '\v<\w+\ze\(' contained contains=sasDataStepFunctionName,sasDataStepCallRoutineName nextgroup=sasDataStepFunctionContext
    +syn match sasDataStepFunction '\v%(input|put)\ze\(' contained contains=sasDataStepFunctionName nextgroup=sasDataStepFunctionFormatContext
    +syn keyword sasDataStepHashMethodName add check clear definedata definedone definekey delete do_over equals find find_next find_prev first has_next has_prev last next output prev ref remove removedup replace replacedup reset_dup setcur sum sumdup contained
    +syn region sasDataStepHashMethodContext start='(' end=')' contained contains=@sasBasicSyntax,sasDataStepFunction
    +syn match sasDataStepHashMethod '\v\.\w+\ze\(' contained contains=sasDataStepHashMethodName nextgroup=sasDataStepHashMethodContext
    +syn keyword sasDataStepHashAttributeName item_size num_items contained
    +syn match sasDataStepHashAttribute '\v\.\w+>\ze\_[^(]' display contained contains=sasDataStepHashAttributeName
    +syn keyword sasDataStepControl continue do end go goto if leave link otherwise over return select to until when while contained
    +syn keyword sasDataStepControl else then contained nextgroup=sasDataStepStatementKeyword skipwhite skipnl skipempty
    +syn keyword sasDataStepHashOperator _new_ contained
    +syn keyword sasDataStepStatementKeyword abort array attrib by call cards cards4 datalines datalines4 dcl declare delete describe display drop error execute file format infile informat input keep label length lines lines4 list lostcard merge modify output put putlog redirect remove rename replace retain set stop update where window contained
    +syn keyword sasDataStepStatementHashKeyword hash hiter javaobj contained
    +syn match sasDataStepStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasDataStepStatementKeyword,sasGlobalStatementKeyword
    +syn match sasDataStepStatement '\v%(^|;)\s*\zs%(dcl|declare)>' display contained contains=sasDataStepStatementKeyword nextgroup=sasDataStepStatementHashKeyword skipwhite skipnl skipempty
    +syn match sasDataStepStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn match sasDataStepStatement '\v%(^|;)\s*\zs%(format|informat|input|put)>' display contained contains=sasDataStepStatementKeyword nextgroup=sasFormatContext skipwhite skipnl skipempty
    +syn match sasDataStepStatement '\v%(^|;)\s*\zs%(cards|datalines|lines)4=\s*;' display contained contains=sasDataStepStatementKeyword nextgroup=sasDataLine skipwhite skipnl skipempty
    +syn region sasDataLine start='^' end='^\s*;'me=s-1 contained
    +syn region sasDataStep matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsdata>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,@sasDataStepSyntax
    +syn cluster sasDataStepSyntax contains=sasDataStepFunction,sasDataStepHashOperator,sasDataStepHashAttribute,sasDataStepHashMethod,sasDataStepControl,sasDataStepStatement
    +
    +" Procedures, base SAS, 9.4
    +syn keyword sasProcStatementKeyword abort age append array attrib audit block break by calid cdfplot change checkbox class classlev column compute contents copy create datarow dbencoding define delete deletefunc deletesubr delimiter device dialog dur endcomp exact exchange exclude explore fin fmtlib fontfile fontpath format formats freq function getnames guessingrows hbar hdfs histogram holidur holifin holistart holivar id idlabel informat inset invalue item key keylabel keyword label line link listfunc listsubr mapmiss mapreduce mean menu messages meta modify opentype outargs outdur outfin output outstart pageby partial picture pie pig plot ppplot printer probplot profile prompter qqplot radiobox ranks rbreak rbutton rebuild record remove rename repair report roptions save select selection separator source star start statistics struct submenu subroutine sum sumby table tables test text trantab truetype type1 types value var vbar ways weight where with write contained
    +syn match sasProcStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasProcStatementKeyword,sasGlobalStatementKeyword
    +syn match sasProcStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn match sasProcStatement '\v%(^|;)\s*\zs%(format|informat)>' display contained contains=sasProcStatementKeyword nextgroup=sasFormatContext skipwhite skipnl skipempty
    +syn region sasProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc%(\s+\h\w*)=>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepFunction,sasProcStatement
    +syn region sasProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(catalog|chart|datasets|document|plot)>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepFunction,sasProcStatement
    +
    +" Procedures, SAS/GRAPH, 9.4
    +syn keyword sasGraphProcStatementKeyword add area axis bar block bubble2 byline cc ccopy cdef cdelete chart cmap choro copy delete device dial donut exclude flow format fs goptions gout grid group hbar hbar3d hbullet hslider htrafficlight id igout label legend list modify move nobyline note pattern pie pie3d plot plot2 preview prism quit rename replay select scatter speedometer star surface symbol tc tcopy tdef tdelete template tile toggle treplay vbar vbar3d vtrafficlight vbullet vslider where contained
    +syn match sasGraphProcStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasGraphProcStatementKeyword,sasGlobalStatementKeyword
    +syn match sasGraphProcStatement '\v%(^|;)\s*\zsformat>' display contained contains=sasGraphProcStatementKeyword nextgroup=sasFormatContext skipwhite skipnl skipempty
    +syn region sasGraphProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(g3d|g3grid|ganno|gcontour|gdevice|geocode|gfont|ginside|goptions|gproject|greduce|gremove|mapimport)>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepFunction,sasGraphProcStatement
    +syn region sasGraphProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(gareabar|gbarline|gchart|gkpi|gmap|gplot|gradar|greplay|gslide|gtile)>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepFunction,sasGraphProcStatement
    +
    +" Procedures, SAS/STAT, 14.1
    +syn keyword sasAnalyticalProcStatementKeyword absorb add array assess baseline bayes beginnodata bivar bootstrap bounds by cdfplot cells class cluster code compute condition contrast control coordinates copy cosan cov covtest coxreg der design determ deviance direct directions domain effect effectplot effpart em endnodata equality estimate exact exactoptions factor factors fcs filter fitindex format freq fwdlink gender grid group grow hazardratio height hyperprior id impjoint inset insetgroup invar invlink ippplot lincon lineqs lismod lmtests location logistic loglin lpredplot lsmeans lsmestimate manova matings matrix mcmc mean means missmodel mnar model modelaverage modeleffects monotone mstruct mtest multreg name nlincon nloptions oddsratio onecorr onesamplefreq onesamplemeans onewayanova outfiles output paired pairedfreq pairedmeans parameters parent parms partial partition path pathdiagram pcov performance plot population poststrata power preddist predict predpplot priors process probmodel profile prune pvar ram random ratio reference refit refmodel renameparm repeated replicate repweights response restore restrict retain reweight ridge rmsstd roc roccontrast rules samplesize samplingunit seed size scale score selection show simtests simulate slice std stderr store strata structeq supplementary table tables test testclass testfreq testfunc testid time transform treatments trend twosamplefreq twosamplemeans towsamplesurvival twosamplewilcoxon uds units univar var variance varnames weight where with zeromodel contained
    +syn match sasAnalyticalProcStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasAnalyticalProcStatementKeyword,sasGlobalStatementKeyword
    +syn match sasAnalyticalProcStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn match sasAnalyticalProcStatement '\v%(^|;)\s*\zsformat>' display contained contains=sasAnalyticalProcStatementKeyword nextgroup=sasFormatContext skipwhite skipnl skipempty
    +syn region sasAnalyticalProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(aceclus|adaptivereg|bchoice|boxplot|calis|cancorr|candisc|cluster|corresp|discrim|distance|factor|fastclus|fmm|freq|gam|gampl|gee|genmod|glimmix|glmmod|glmpower|glmselect|hpcandisc|hpfmm|hpgenselect|hplmixed|hplogistic|hpmixed|hpnlmod|hppls|hpprincomp|hpquantselect|hpreg|hpsplit|iclifetest|icphreg|inbreed|irt|kde|krige2d|lattice|lifereg|lifetest|loess|logistic|mcmc|mds|mi|mianalyze|mixed|modeclus|multtest|nested|nlin|nlmixed|npar1way|orthoreg|phreg|plm|pls|power|princomp|prinqual|probit|quantlife|quantreg|quantselect|robustreg|rsreg|score|seqdesign|seqtest|sim2d|simnormal|spp|stdize|stdrate|stepdisc|surveyfreq|surveyimpute|surveylogistic|surveymeans|surveyphreg|surveyreg|surveyselect|tpspline|transreg|tree|ttest|varclus|varcomp|variogram)>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepControl,sasDataStepFunction,sasAnalyticalProcStatement
    +syn region sasAnalyticalProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(anova|arima|catmod|factex|glm|model|optex|plan|reg)>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepControl,sasDataStepFunction,sasAnalyticalProcStatement
    +
    +" Procedures, ODS graphics, 9.4
    +syn keyword sasODSGraphicsProcStatementKeyword band block bubble by colaxis compare dattrvar density dot dropline dynamic ellipse ellipseparm format fringe gradlegend hbar hbarbasic hbarparm hbox heatmap heatmapparm highlow histogram hline inset keylegend label lineparm loess matrix needle parent panelby pbspline plot polygon refline reg rowaxis scatter series spline step style styleattrs symbolchar symbolimage text vbar vbarbasic vbarparm vbox vector vline waterfall where xaxis x2axis yaxis y2axis yaxistable contained
    +syn match sasODSGraphicsProcStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasODSGraphicsProcStatementKeyword,sasGlobalStatementKeyword
    +syn match sasODSGraphicsProcStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn match sasODSGraphicsProcStatement '\v%(^|;)\s*\zsformat>' display contained contains=sasODSGraphicsProcStatementKeyword nextgroup=sasFormatContext skipwhite skipnl skipempty
    +syn region sasODSGraphicsProc matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+%(sgdesign|sgpanel|sgplot|sgrender|sgscatter)>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDataStepFunction,sasODSGraphicsProcStatement
    +
    +" Proc TEMPLATE, 9.4
    +syn keyword sasProcTemplateClause as into
    +syn keyword sasProcTemplateStatementKeyword block break cellstyle class close column compute continue define delete delstream do done dynamic edit else end eval flush footer header import iterate link list mvar ndent next nmvar notes open path put putl putlog putq putstream putvars replace set source stop style test text text2 text3 translate trigger unblock unset xdent contained
    +syn keyword sasProcTemplateStatementComplexKeyword cellvalue column crosstabs event footer header statgraph style table tagset contained
    +syn keyword sasProcTemplateGTLStatementKeyword axislegend axistable bandplot barchart barchartparm begingraph beginpolygon beginpolyline bihistogram3dparm blockplot boxplot boxplotparm bubbleplot continuouslegend contourplotparm dendrogram discretelegend drawarrow drawimage drawline drawoval drawrectangle drawtext dropline ellipse ellipseparm endgraph endinnermargin endlayout endpolygon endpolyline endsidebar entry entryfootnote entrytitle fringeplot heatmap heatmapparm highlowplot histogram histogramparm innermargin layout legenditem legendtextitems linechart lineparm loessplot mergedlegend modelband needleplot pbsplineplot polygonplot referenceline regressionplot scatterplot seriesplot sidebar stepplot surfaceplotparm symbolchar symbolimage textplot vectorplot waterfallchart contained
    +syn keyword sasProcTemplateGTLComplexKeyword datalattice datapanel globallegend gridded lattice overlay overlayequated overlay3d region contained
    +syn match sasProcTemplateStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasProcTemplateStatementKeyword,sasProcTemplateGTLStatementKeyword,sasGlobalStatementKeyword
    +syn match sasProcTemplateStatement '\v%(^|;)\s*\zsdefine>' display contained contains=sasProcTemplateStatementKeyword nextgroup=sasProcTemplateStatementComplexKeyword skipwhite skipnl skipempty
    +syn match sasProcTemplateStatement '\v%(^|;)\s*\zslayout>' display contained contains=sasProcTemplateGTLStatementKeyword nextgroup=sasProcTemplateGTLComplexKeyword skipwhite skipnl skipempty
    +syn match sasProcTemplateStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn region sasProcTemplate matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+template>' end='\v%(^|;)\s*%(run|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasProcTemplateClause,sasProcTemplateStatement
    +
    +" Proc SQL, 9.4
    +syn keyword sasProcSQLFunctionName avg count css cv freq max mean median min n nmiss prt range std stderr sum sumwgt t uss var contained
    +syn region sasProcSQLFunctionContext start='(' end=')' contained contains=@sasBasicSyntax,sasProcSQLFunction
    +syn match sasProcSQLFunction '\v<\w+\ze\(' contained contains=sasProcSQLFunctionName,sasDataStepFunctionName nextgroup=sasProcSQLFunctionContext
    +syn keyword sasProcSQLClause add asc between by calculated cascade case check connection constraint cross desc distinct drop else end escape except exists foreign from full group having in inner intersect into is join key left libname like modify natural newline notrim null on order outer primary references restrict right separated set then to trimmed union unique user using values when where contained
    +syn keyword sasProcSQLClause as contained nextgroup=sasProcSQLStatementKeyword skipwhite skipnl skipempty
    +syn keyword sasProcSQLStatementKeyword connect delete disconnect execute insert reset select update validate contained
    +syn keyword sasProcSQLStatementComplexKeyword alter create describe drop contained nextgroup=sasProcSQLStatementNextKeyword skipwhite skipnl skipempty
    +syn keyword sasProcSQLStatementNextKeyword index table view contained
    +syn match sasProcSQLStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasProcSQLStatementKeyword,sasGlobalStatementKeyword
    +syn match sasProcSQLStatement '\v%(^|;)\s*\zs%(alter|create|describe|drop)>' display contained contains=sasProcSQLStatementComplexKeyword nextgroup=sasProcSQLStatementNextKeyword skipwhite skipnl skipempty
    +syn match sasProcSQLStatement '\v%(^|;)\s*\zsvalidate>' display contained contains=sasProcSQLStatementKeyword nextgroup=sasProcSQLStatementKeyword,sasProcSQLStatementComplexKeyword skipwhite skipnl skipempty
    +syn match sasProcSQLStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty 
    +syn region sasProcSQL matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+sql>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasProcSQLFunction,sasProcSQLClause,sasProcSQLStatement
    +
    +" SAS/DS2, 9.4
    +syn keyword sasDS2FunctionName abs anyalnum anyalpha anycntrl anydigit anyfirst anygraph anylower anyname anyprint anypunct anyspace anyupper anyxdigit arcos arcosh arsin arsinh artanh atan atan2 band beta betainv blackclprc blackptprc blkshclprc blkshptprc blshift bnot bor brshift bxor byte cat cats catt catx ceil ceilz choosec choosen cmp cmpt coalesce coalescec comb compare compbl compfuzz compound compress constant convx convxp cos cosh count countc countw css cumipmt cumprinc cv datdif date datejul datepart datetime day dequote deviance dhms dif digamma dim divide dur durp effrate erf erfc exp fact find findc findw floor floorz fmtinfo fuzz gaminv gamma garkhclprc garkhptprc gcd geodist geomean geomeanz harmean harmeanz hbound hms holiday hour index indexc indexw inputc inputn int intcindex intck intcycle intdt intfit intget intindex intnest intnx intrr intseas intshift inttest intts intz ipmt iqr irr juldate juldate7 kcount kstrcat kstrip kupdate kupdates kurtosis lag largest lbound lcm left length lengthc lengthm lengthn lgamma log logbeta log10 log1px log2 lowcase mad margrclprc margrptprc max md5 mdy mean median min minute missing mod modz month mort n ndims netpv nmiss nomrate notalnum notalpha notcntrl notdigit notfirst notgraph notlower notname notprint notpunct notspace notupper notxdigit npv null nwkdom ordinal pctl perm pmt poisson power ppmt probbeta probbnml probbnrm probchi probdf probf probgam probhypr probit probmc probmed probnegb probnorm probt prxchange prxmatch prxparse prxposn put pvp qtr quote ranbin rancau rand ranexp rangam range rank rannor ranpoi rantbl rantri ranuni repeat reverse right rms round rounde roundz savings scan sec second sha256hex sha256hmachex sign sin sinh skewness sleep smallest sqlexec sqrt std stderr streaminit strip substr substrn sum sumabs tan tanh time timepart timevalue tinv to_date to_double to_time to_timestamp today translate transtrn tranwrd trigamma trim trimn trunc uniform upcase uss uuidgen var verify vformat vinarray vinformat vlabel vlength vname vtype week weekday whichc whichn year yieldp yrdif yyq contained
    +syn region sasDS2FunctionContext start='(' end=')' contained contains=@sasBasicSyntax,sasDS2Function
    +syn match sasDS2Function '\v<\w+\ze\(' contained contains=sasDS2FunctionName nextgroup=sasDS2FunctionContext
    +syn keyword sasDS2Control continue data dcl declare do drop else end enddata endpackage endthread from go goto if leave method otherwise package point return select then thread to until when while contained
    +syn keyword sasDS2StatementKeyword array by forward keep merge output put rename retain set stop vararray varlist contained
    +syn keyword sasDS2StatementComplexKeyword package thread contained
    +syn match sasDS2Statement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasDS2StatementKeyword,sasGlobalStatementKeyword
    +syn match sasDS2Statement '\v%(^|;)\s*\zs%(dcl|declare|drop)>' display contained contains=sasDS2StatementKeyword nextgroup=sasDS2StatementComplexKeyword skipwhite skipnl skipempty
    +syn match sasDS2Statement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn region sasDS2 matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+ds2>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasDS2Function,sasDS2Control,sasDS2Statement
    +
    +" SAS/IML, 14.1
    +syn keyword sasIMLFunctionName abs all allcomb allperm any apply armasim bin blankstr block branks bspline btran byte char choose col colvec concat contents convexit corr corr2cov countmiss countn countunique cov cov2corr covlag cshape cusum cuprod cv cvexhull datasets design designf det diag dif dimension distance do duration echelon eigval eigvec element exp expmatrix expandgrid fft forward froot full gasetup geomean ginv hadamard half hankel harmean hdir hermite homogen i ifft insert int inv invupdt isempty isskipped j jroot kurtosis lag length loc log logabsdet mad magic mahalanobis max mean median min mod moduleic modulein name ncol ndx2sub nleng norm normal nrow num opscal orpol parentname palette polyroot prod product pv quartile rancomb randdirichlet randfun randmultinomial randmvt randnormal randwishart ranperk ranperm range rank ranktie rates ratio remove repeat root row rowcat rowcatc rowvec rsubstr sample setdif shape shapecol skewness solve sparse splinev spot sqrsym sqrt sqrvech ssq standard std storage sub2ndx substr sum sweep symsqr t toeplitz trace trisolv type uniform union unique uniqueby value var vecdiag vech xmult xsect yield contained
    +syn keyword sasIMLCallRoutineName appcort armacov armalik bar box change comport delete eigen execute exportdatasettor exportmatrixtor farmacov farmafit farmalik farmasim fdif gaend gagetmem gagetval gainit gareeval garegen gasetcro gasetmut gasetobj gasetsel gblkvp gblkvpd gclose gdelete gdraw gdrawl geneig ggrid ginclude gopen gpie gpiexy gpoint gpoly gport gportpop gportstk gscale gscript gset gshow gsorth gstart gstop gstrlen gtext gvtext gwindow gxaxis gyaxis heatmapcont heatmapdisc histogram importdatasetfromr importmatrixfromr ipf itsolver kalcvf kalcvs kaldff kaldfs lav lcp lms lp lpsolve lts lupdt marg maxqform mcd milpsolve modulei mve nlpcg nlpdd nlpfdd nlpfea nlphqn nlplm nlpnms nlpnra nlpnrr nlpqn nlpqua nlptr ode odsgraph ortvec pgraf push qntl qr quad queue randgen randseed rdodt rupdt rename rupdt rzlind scatter seq seqscale seqshift seqscale seqshift series solvelin sort sortndx sound spline splinec svd tabulate tpspline tpsplnev tsbaysea tsdecomp tsmlocar tsmlomar tsmulmar tspears tspred tsroot tstvcar tsunimar valset varmacov varmalik varmasim vnormal vtsroot wavft wavget wavift wavprint wavthrsh contained
    +syn region sasIMLFunctionContext start='(' end=')' contained contains=@sasBasicSyntax,sasIMLFunction
    +syn match sasIMLFunction '\v<\w+\ze\(' contained contains=sasIMLFunctionName,sasDataStepFunction nextgroup=sasIMLFunctionContext
    +syn keyword sasIMLControl abort by do else end finish goto if link pause quit resume return run start stop then to until while contained
    +syn keyword sasIMLStatementKeyword append call close closefile create delete display edit file find force free index infile input list load mattrib print purge read remove replace reset save setin setout show sort store summary use window contained
    +syn match sasIMLStatement '\v%(^|;)\s*\zs\h\w*>' display contained contains=sasIMLStatementKeyword,sasGlobalStatementKeyword
    +syn match sasIMLStatement '\v%(^|;)\s*\zsods>' display contained contains=sasGlobalStatementKeyword nextgroup=sasGlobalStatementODSKeyword skipwhite skipnl skipempty
    +syn region sasIML matchgroup=sasSectionKeyword start='\v%(^|;)\s*\zsproc\s+iml>' end='\v%(^|;)\s*%(quit|data|proc|endsas)>'me=s-1 fold contains=@sasBasicSyntax,sasIMLFunction,sasIMLControl,sasIMLStatement
    +
    +" Macro definition
    +syn region sasMacro start='\v\%macro>' end='\v\%mend>' fold keepend contains=@sasBasicSyntax,@sasDataStepSyntax,sasDataStep,sasProc,sasODSGraphicsProc,sasGraphProc,sasAnalyticalProc,sasProcTemplate,sasProcSQL,sasDS2,sasIML
    +
    +" Define default highlighting
    +hi def link sasComment Comment
    +hi def link sasTodo Delimiter
    +hi def link sasSectLbl Title
    +hi def link sasSectLblEnds Comment
    +hi def link sasNumber Number
    +hi def link sasDateTime Constant
    +hi def link sasString String
    +hi def link sasDataStepControl Keyword
    +hi def link sasProcTemplateClause Keyword
    +hi def link sasProcSQLClause Keyword
    +hi def link sasDS2Control Keyword
    +hi def link sasIMLControl Keyword
    +hi def link sasOperator Operator
    +hi def link sasGlobalStatementKeyword Statement
    +hi def link sasGlobalStatementODSKeyword Statement
    +hi def link sasSectionKeyword Statement
    +hi def link sasDataStepFunctionName Function
    +hi def link sasDataStepCallRoutineName Function
    +hi def link sasDataStepStatementKeyword Statement
    +hi def link sasDataStepStatementHashKeyword Statement
    +hi def link sasDataStepHashOperator Operator
    +hi def link sasDataStepHashMethodName Function
    +hi def link sasDataStepHashAttributeName Identifier
    +hi def link sasProcStatementKeyword Statement
    +hi def link sasODSGraphicsProcStatementKeyword Statement
    +hi def link sasGraphProcStatementKeyword Statement
    +hi def link sasAnalyticalProcStatementKeyword Statement
    +hi def link sasProcTemplateStatementKeyword Statement
    +hi def link sasProcTemplateStatementComplexKeyword Statement
    +hi def link sasProcTemplateGTLStatementKeyword Statement
    +hi def link sasProcTemplateGTLComplexKeyword Statement
    +hi def link sasProcSQLFunctionName Function
    +hi def link sasProcSQLStatementKeyword Statement
    +hi def link sasProcSQLStatementComplexKeyword Statement
    +hi def link sasProcSQLStatementNextKeyword Statement
    +hi def link sasDS2FunctionName Function
    +hi def link sasDS2StatementKeyword Statement
    +hi def link sasIMLFunctionName Function
    +hi def link sasIMLCallRoutineName Function
    +hi def link sasIMLStatementKeyword Statement
    +hi def link sasMacroReserved PreProc
    +hi def link sasMacroVariable Define
    +hi def link sasMacroFunctionName Define
    +hi def link sasDataLine SpecialChar
    +hi def link sasFormat SpecialChar
    +hi def link sasReserved Special
    +
    +" Syncronize from beginning to keep large blocks from losing
    +" syntax coloring while moving through code.
    +syn sync fromstart
    +
    +let b:current_syntax = "sas"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/sass.vim b/git/usr/share/vim/vim92/syntax/sass.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..8f41aba4f7a2436f89c0d15532f1ec30c1bea7bd
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sass.vim
    @@ -0,0 +1,106 @@
    +" Vim syntax file
    +" Language:	Sass
    +" Maintainer:	Tim Pope 
    +" Filenames:	*.sass
    +" Last Change:	2022 Mar 15
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +runtime! syntax/css.vim
    +
    +syn case ignore
    +
    +syn cluster sassCssProperties contains=cssFontProp,cssFontDescriptorProp,cssColorProp,cssTextProp,cssBoxProp,cssGeneratedContentProp,cssPagingProp,cssUIProp,cssRenderProp,cssAuralProp,cssTableProp
    +syn cluster sassCssAttributes contains=css.*Attr,sassEndOfLineComment,scssComment,cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
    +
    +syn region sassDefinition matchgroup=cssBraces start="{" end="}" contains=TOP
    +
    +syn match sassProperty "\%([{};]\s*\|^\)\@<=\%([[:alnum:]-]\|#{[^{}]*}\)\+\s*:" contains=css.*Prop skipwhite nextgroup=sassCssAttribute contained containedin=sassDefinition
    +syn match sassProperty "^\s*\zs\s\%(\%([[:alnum:]-]\|#{[^{}]*}\)\+\s*:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute
    +syn match sassProperty "^\s*\zs\s\%(:\=[[:alnum:]-]\+\s*=\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute
    +syn match sassCssAttribute +\%("\%([^"]\|\\"\)*"\|'\%([^']\|\\'\)*'\|#{[^{}]*}\|[^{};]\)*+ contained contains=@sassCssAttributes,sassVariable,sassFunction,sassInterpolation
    +syn match sassFlag "!\%(default\|global\|optional\)\>" contained
    +syn match sassVariable "$[[:alnum:]_-]\+"
    +syn match sassVariableAssignment "\%([!$][[:alnum:]_-]\+\s*\)\@<=\%(||\)\==" nextgroup=sassCssAttribute skipwhite
    +syn match sassVariableAssignment "\%([!$][[:alnum:]_-]\+\s*\)\@<=:" nextgroup=sassCssAttribute skipwhite
    +
    +syn match sassFunction "\<\%(rgb\|rgba\|red\|green\|blue\|mix\)\>(\@=" contained
    +syn match sassFunction "\<\%(hsl\|hsla\|hue\|saturation\|lightness\|adjust-hue\|lighten\|darken\|saturate\|desaturate\|grayscale\|complement\)\>(\@=" contained
    +syn match sassFunction "\<\%(alpha\|opacity\|rgba\|opacify\|fade-in\|transparentize\|fade-out\)\>(\@=" contained
    +syn match sassFunction "\<\%(unquote\|quote\)\>(\@=" contained
    +syn match sassFunction "\<\%(percentage\|round\|ceil\|floor\|abs\)\>(\@=" contained
    +syn match sassFunction "\<\%(type-of\|unit\|unitless\|comparable\)\>(\@=" contained
    +
    +syn region sassInterpolation matchgroup=sassInterpolationDelimiter start="#{" end="}" contains=@sassCssAttributes,sassVariable,sassFunction containedin=cssStringQ,cssStringQQ,cssPseudoClass,sassProperty
    +
    +syn match sassMixinName "[[:alnum:]_-]\+" contained nextgroup=sassCssAttribute
    +syn match sassMixin  "^="               nextgroup=sassMixinName skipwhite
    +syn match sassMixin  "\%([{};]\s*\|^\s*\)\@<=@mixin"   nextgroup=sassMixinName skipwhite
    +syn match sassMixing "^\s\+\zs+"        nextgroup=sassMixinName
    +syn match sassMixing "\%([{};]\s*\|^\s*\)\@<=@include" nextgroup=sassMixinName skipwhite
    +syn match sassExtend "\%([{};]\s*\|^\s*\)\@<=@extend"
    +
    +syn match sassFunctionName "[[:alnum:]_-]\+" contained nextgroup=sassCssAttribute
    +syn match sassFunctionDecl "\%([{};]\s*\|^\s*\)\@<=@function"   nextgroup=sassFunctionName skipwhite
    +syn match sassReturn "\%([{};]\s*\|^\s*\)\@<=@return"
    +
    +syn match sassEscape     "^\s*\zs\\"
    +syn match sassIdChar     "#[[:alnum:]_-]\@=" nextgroup=sassId
    +syn match sassId         "[[:alnum:]_-]\+" contained
    +syn match sassClassChar  "\.[[:alnum:]_-]\@=" nextgroup=sassClass
    +syn match sassPlaceholder "\%([{};]\s*\|^\s*\)\@<=%"   nextgroup=sassClass
    +syn match sassClass      "[[:alnum:]_-]\+" contained
    +syn match sassAmpersand  "&"
    +
    +" TODO: Attribute namespaces
    +" TODO: Arithmetic (including strings and concatenation)
    +
    +syn region sassMediaQuery matchgroup=sassMedia start="@media" end="[{};]\@=\|$" contains=sassMediaOperators
    +syn region sassKeyframe matchgroup=cssAtKeyword start=/@\(-[a-z]\+-\)\=keyframes\>/ end=";\|$" contains=cssVendor,cssComment nextgroup=cssDefinition
    +syn keyword sassMediaOperators and not only contained
    +syn region sassCharset start="@charset" end=";\|$" contains=scssComment,cssStringQ,cssStringQQ,cssURL,cssUnicodeEscape,cssMediaType
    +syn region sassInclude start="@import" end=";\|$" contains=scssComment,cssStringQ,cssStringQQ,cssURL,cssUnicodeEscape,cssMediaType
    +syn region sassDebugLine end=";\|$" matchgroup=sassDebug start="@debug\>" contains=@sassCssAttributes,sassVariable,sassFunction
    +syn region sassWarnLine end=";\|$" matchgroup=sassWarn start="@warn\>" contains=@sassCssAttributes,sassVariable,sassFunction
    +syn region sassControlLine matchgroup=sassControl start="@\%(if\|else\%(\s\+if\)\=\|while\|for\|each\)\>" end="[{};]\@=\|$" contains=sassFor,@sassCssAttributes,sassVariable,sassFunction
    +syn keyword sassFor from to through in contained
    +
    +syn keyword sassTodo        FIXME NOTE TODO OPTIMIZE XXX contained
    +syn region  sassComment     start="^\z(\s*\)//"  end="^\%(\z1 \)\@!" contains=sassTodo,@Spell
    +syn region  sassCssComment  start="^\z(\s*\)/\*" end="^\%(\z1 \)\@!" contains=sassTodo,@Spell
    +syn match   sassEndOfLineComment "//.*" contains=sassComment,sassTodo,@Spell
    +
    +hi def link sassEndOfLineComment        sassComment
    +hi def link sassCssComment              sassComment
    +hi def link sassComment                 Comment
    +hi def link sassFlag                    cssImportant
    +hi def link sassVariable                Identifier
    +hi def link sassFunction                Function
    +hi def link sassMixing                  PreProc
    +hi def link sassMixin                   PreProc
    +hi def link sassPlaceholder             sassClassChar
    +hi def link sassExtend                  PreProc
    +hi def link sassFunctionDecl            PreProc
    +hi def link sassReturn                  PreProc
    +hi def link sassTodo                    Todo
    +hi def link sassCharset                 PreProc
    +hi def link sassMedia                   PreProc
    +hi def link sassMediaOperators          PreProc
    +hi def link sassInclude                 Include
    +hi def link sassDebug                   sassControl
    +hi def link sassWarn                    sassControl
    +hi def link sassControl                 PreProc
    +hi def link sassFor                     PreProc
    +hi def link sassEscape                  Special
    +hi def link sassIdChar                  Special
    +hi def link sassClassChar               Special
    +hi def link sassInterpolationDelimiter  Delimiter
    +hi def link sassAmpersand               Character
    +hi def link sassId                      Identifier
    +hi def link sassClass                   Type
    +
    +let b:current_syntax = "sass"
    +
    +" vim:set sw=2:
    diff --git a/git/usr/share/vim/vim92/syntax/sather.vim b/git/usr/share/vim/vim92/syntax/sather.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..de8bdade6702039e156f2570e26389f757f0198d
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sather.vim
    @@ -0,0 +1,92 @@
    +" Vim syntax file
    +" Language:	Sather/pSather
    +" Maintainer:	Claudio Fleiner 
    +" URL:		http://www.fleiner.com/vim/syntax/sather.vim
    +" Last Change:	2003 May 11
    +
    +" Sather is a OO-language developped at the International Computer Science
    +" Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather.
    +" Homepage: http://www.icsi.berkeley.edu/~sather
    +" Sather files use .sa as suffix
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" keyword definitions
    +syn keyword satherExternal	 extern
    +syn keyword satherBranch	 break continue
    +syn keyword satherLabel		 when then
    +syn keyword satherConditional	 if else elsif end case typecase assert with
    +syn match satherConditional	 "near$"
    +syn match satherConditional	 "far$"
    +syn match satherConditional	 "near *[^(]"he=e-1
    +syn match satherConditional	 "far *[^(]"he=e-1
    +syn keyword satherSynchronize	 lock guard sync
    +syn keyword satherRepeat	 loop parloop do
    +syn match satherRepeat		 "while!"
    +syn match satherRepeat		 "break!"
    +syn match satherRepeat		 "until!"
    +syn keyword satherBoolValue	 true false
    +syn keyword satherValue		 self here cluster
    +syn keyword satherOperator	 new "== != & ^ | && ||
    +syn keyword satherOperator	 and or not
    +syn match satherOperator	 "[#!]"
    +syn match satherOperator	 ":-"
    +syn keyword satherType		 void attr where
    +syn match satherType	       "near *("he=e-1
    +syn match satherType	       "far *("he=e-1
    +syn keyword satherStatement	 return
    +syn keyword satherStorageClass	 static const
    +syn keyword satherExceptions	 try raise catch
    +syn keyword satherMethodDecl	 is pre post
    +syn keyword satherClassDecl	 abstract value class include
    +syn keyword satherScopeDecl	 public private readonly
    +
    +
    +syn match   satherSpecial	    contained "\\\d\d\d\|\\."
    +syn region  satherString	    start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=satherSpecial
    +syn match   satherCharacter	    "'[^\\]'"
    +syn match   satherSpecialCharacter  "'\\.'"
    +syn match   satherNumber	  "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
    +syn match   satherCommentSkip	  contained "^\s*\*\($\|\s\+\)"
    +syn region  satherComment2String  contained start=+"+  skip=+\\\\\|\\"+  end=+$\|"+  contains=satherSpecial
    +syn match   satherComment	  "--.*" contains=satherComment2String,satherCharacter,satherNumber
    +
    +
    +syn sync ccomment satherComment
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link satherBranch		satherStatement
    +hi def link satherLabel		satherStatement
    +hi def link satherConditional	satherStatement
    +hi def link satherSynchronize	satherStatement
    +hi def link satherRepeat		satherStatement
    +hi def link satherExceptions	satherStatement
    +hi def link satherStorageClass	satherDeclarative
    +hi def link satherMethodDecl	satherDeclarative
    +hi def link satherClassDecl	satherDeclarative
    +hi def link satherScopeDecl	satherDeclarative
    +hi def link satherBoolValue	satherValue
    +hi def link satherSpecial		satherValue
    +hi def link satherString		satherValue
    +hi def link satherCharacter	satherValue
    +hi def link satherSpecialCharacter satherValue
    +hi def link satherNumber		satherValue
    +hi def link satherStatement	Statement
    +hi def link satherOperator		Statement
    +hi def link satherComment		Comment
    +hi def link satherType		Type
    +hi def link satherValue		String
    +hi def link satherString		String
    +hi def link satherSpecial		String
    +hi def link satherCharacter	String
    +hi def link satherDeclarative	Type
    +hi def link satherExternal		PreCondit
    +
    +let b:current_syntax = "sather"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sbt.vim b/git/usr/share/vim/vim92/syntax/sbt.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..cbf73beafeaa772ade09d14824398eba38d07528
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sbt.vim
    @@ -0,0 +1,32 @@
    +" Vim syntax file
    +" Language:    sbt
    +" Maintainer:  Steven Dobay 
    +" Last Change: 2017.04.30
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +runtime! syntax/scala.vim
    +
    +syn region sbtString start="\"[^"]" skip="\\\"" end="\"" contains=sbtStringEscape
    +syn match sbtStringEscape "\\u[0-9a-fA-F]\{4}" contained
    +syn match sbtStringEscape "\\[nrfvb\\\"]" contained
    +
    +syn match sbtIdentitifer "^\S\+\ze\s*\(:=\|++=\|+=\|<<=\|<+=\)"
    +syn match sbtBeginningSeq "^[Ss]eq\>"
    +
    +syn match sbtSpecial "\(:=\|++=\|+=\|<<=\|<+=\)"
    +
    +syn match sbtLineComment "//.*"
    +syn region sbtComment start="/\*" end="\*/"
    +syn region sbtDocComment start="/\*\*" end="\*/" keepend
    +
    +hi link sbtString String
    +hi link sbtIdentitifer Keyword
    +hi link sbtBeginningSeq Keyword
    +hi link sbtSpecial Special
    +hi link sbtComment Comment
    +hi link sbtLineComment Comment
    +hi link sbtDocComment Comment
    +
    diff --git a/git/usr/share/vim/vim92/syntax/scala.vim b/git/usr/share/vim/vim92/syntax/scala.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..cc098ce017383a11927592c0402392d1b7d8ba78
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/scala.vim
    @@ -0,0 +1,233 @@
    +" Vim syntax file
    +" Language:             Scala
    +" Maintainer:           Derek Wyatt
    +" URL:                  https://github.com/derekwyatt/vim-scala
    +" License:              Same as Vim
    +" Last Change:          23 January 2022
    +" ----------------------------------------------------------------------------
    +
    +if !exists('main_syntax')
    +  " quit when a syntax file was already loaded
    +  if exists("b:current_syntax")
    +    finish
    +  endif
    +  let main_syntax = 'scala'
    +endif
    +
    +scriptencoding utf-8
    +
    +let b:current_syntax = "scala"
    +
    +" Allows for embedding, see #59; main_syntax convention instead? Refactor TOP
    +"
    +" The @Spell here is a weird hack, it means *exclude* if the first group is
    +" TOP. Otherwise we get spelling errors highlighted on code elements that
    +" match scalaBlock, even with `syn spell notoplevel`.
    +function! s:ContainedGroup()
    +  try
    +    silent syn list @scala
    +    return '@scala,@NoSpell'
    +  catch /E392/
    +    return 'TOP,@Spell'
    +  endtry
    +endfunction
    +
    +unlet! b:current_syntax
    +
    +syn case match
    +syn sync minlines=200 maxlines=1000
    +
    +syn keyword scalaKeyword catch do else final finally for forSome if
    +syn keyword scalaKeyword match return throw try while yield macro
    +syn keyword scalaKeyword class trait object extends with nextgroup=scalaInstanceDeclaration skipwhite
    +syn keyword scalaKeyword case nextgroup=scalaKeyword,scalaCaseFollowing skipwhite
    +syn keyword scalaKeyword val nextgroup=scalaNameDefinition,scalaQuasiQuotes skipwhite
    +syn keyword scalaKeyword def var nextgroup=scalaNameDefinition skipwhite
    +hi def link scalaKeyword Keyword
    +
    +exe 'syn region scalaBlock start=/{/ end=/}/ contains=' . s:ContainedGroup() . ' fold'
    +
    +syn keyword scalaAkkaSpecialWord when goto using startWith initialize onTransition stay become unbecome
    +hi def link scalaAkkaSpecialWord PreProc
    +
    +syn keyword scalatestSpecialWord shouldBe
    +syn match scalatestShouldDSLA /^\s\+\zsit should/
    +syn match scalatestShouldDSLB /\/
    +hi def link scalatestSpecialWord PreProc
    +hi def link scalatestShouldDSLA PreProc
    +hi def link scalatestShouldDSLB PreProc
    +
    +syn match scalaSymbol /'[_A-Za-z0-9$]\+/
    +hi def link scalaSymbol Number
    +
    +syn match scalaChar /'.'/
    +syn match scalaChar /'\\[\\"'ntbrf]'/ contains=scalaEscapedChar
    +syn match scalaChar /'\\u[A-Fa-f0-9]\{4}'/ contains=scalaUnicodeChar
    +syn match scalaEscapedChar /\\[\\"'ntbrf]/
    +syn match scalaUnicodeChar /\\u[A-Fa-f0-9]\{4}/
    +hi def link scalaChar Character
    +hi def link scalaEscapedChar Special
    +hi def link scalaUnicodeChar Special
    +
    +syn match scalaOperator "||"
    +syn match scalaOperator "&&"
    +syn match scalaOperator "|"
    +syn match scalaOperator "&"
    +hi def link scalaOperator Special
    +
    +syn match scalaNameDefinition /\<[_A-Za-z0-9$]\+\>/ contained nextgroup=scalaPostNameDefinition,scalaVariableDeclarationList
    +syn match scalaNameDefinition /`[^`]\+`/ contained nextgroup=scalaPostNameDefinition
    +syn match scalaVariableDeclarationList /\s*,\s*/ contained nextgroup=scalaNameDefinition
    +syn match scalaPostNameDefinition /\_s*:\_s*/ contained nextgroup=scalaTypeDeclaration
    +hi def link scalaNameDefinition Function
    +
    +syn match scalaInstanceDeclaration /\<[_\.A-Za-z0-9$]\+\>/ contained nextgroup=scalaInstanceHash
    +syn match scalaInstanceDeclaration /`[^`]\+`/ contained
    +syn match scalaInstanceHash /#/ contained nextgroup=scalaInstanceDeclaration
    +hi def link scalaInstanceDeclaration Special
    +hi def link scalaInstanceHash Type
    +
    +syn match scalaUnimplemented /???/
    +hi def link scalaUnimplemented ERROR
    +
    +syn match scalaCapitalWord /\<[A-Z][A-Za-z0-9$]*\>/
    +hi def link scalaCapitalWord Special
    +
    +" Handle type declarations specially
    +syn region scalaTypeStatement matchgroup=Keyword start=/\\)\ze/ contained nextgroup=scalaTypeTypeDeclaration contains=scalaTypeTypeExtension skipwhite
    +syn match scalaTypeTypeDeclaration /\<[_\.A-Za-z0-9$]\+\>/ contained nextgroup=scalaTypeTypeExtension,scalaTypeTypeEquals skipwhite
    +syn match scalaTypeTypeEquals /=\ze[^>]/ contained nextgroup=scalaTypeTypePostDeclaration skipwhite
    +syn match scalaTypeTypeExtension /)\?\_s*\zs\%(⇒\|=>\|<:\|:>\|=:=\|::\|#\)/ contained contains=scalaTypeOperator nextgroup=scalaTypeTypeDeclaration skipwhite
    +syn match scalaTypeTypePostDeclaration /\<[_\.A-Za-z0-9$]\+\>/ contained nextgroup=scalaTypeTypePostExtension skipwhite
    +syn match scalaTypeTypePostExtension /\%(⇒\|=>\|<:\|:>\|=:=\|::\)/ contained contains=scalaTypeOperator nextgroup=scalaTypeTypePostDeclaration skipwhite
    +hi def link scalaTypeTypeDeclaration Type
    +hi def link scalaTypeTypeExtension Keyword
    +hi def link scalaTypeTypePostDeclaration Special
    +hi def link scalaTypeTypePostExtension Keyword
    +
    +syn match scalaTypeDeclaration /(/ contained nextgroup=scalaTypeExtension contains=scalaRoundBrackets skipwhite
    +syn match scalaTypeDeclaration /\%(⇒\|=>\)\ze/ contained nextgroup=scalaTypeDeclaration contains=scalaTypeExtension skipwhite
    +syn match scalaTypeDeclaration /\<[_\.A-Za-z0-9$]\+\>/ contained nextgroup=scalaTypeExtension skipwhite
    +syn match scalaTypeExtension /)\?\_s*\zs\%(⇒\|=>\|<:\|:>\|=:=\|::\|#\)/ contained contains=scalaTypeOperator nextgroup=scalaTypeDeclaration skipwhite
    +hi def link scalaTypeDeclaration Type
    +hi def link scalaTypeExtension Keyword
    +hi def link scalaTypePostExtension Keyword
    +
    +syn match scalaTypeAnnotation /\%([_a-zA-Z0-9$\s]:\_s*\)\ze[_=(\.A-Za-z0-9$]\+/ skipwhite nextgroup=scalaTypeDeclaration contains=scalaRoundBrackets
    +syn match scalaTypeAnnotation /)\_s*:\_s*\ze[_=(\.A-Za-z0-9$]\+/ skipwhite nextgroup=scalaTypeDeclaration
    +hi clear scalaTypeAnnotation
    +
    +syn match scalaCaseFollowing /\<[_\.A-Za-z0-9$]\+\>/ contained contains=scalaCapitalWord
    +syn match scalaCaseFollowing /`[^`]\+`/ contained contains=scalaCapitalWord
    +hi def link scalaCaseFollowing Special
    +
    +syn keyword scalaKeywordModifier abstract override final lazy implicit private protected sealed null super
    +syn keyword scalaSpecialFunction implicitly require
    +hi def link scalaKeywordModifier Function
    +hi def link scalaSpecialFunction Function
    +
    +syn keyword scalaSpecial this true false ne eq
    +syn keyword scalaSpecial new nextgroup=scalaInstanceDeclaration skipwhite
    +syn match scalaSpecial "\%(=>\|⇒\|<-\|←\|->\|→\)"
    +syn match scalaSpecial /`[^`]\+`/  " Backtick literals
    +hi def link scalaSpecial PreProc
    +
    +syn keyword scalaExternal package import
    +hi def link scalaExternal Include
    +
    +syn match scalaStringEmbeddedQuote /\\"/ contained
    +syn region scalaString start=/"/ end=/"/ contains=scalaStringEmbeddedQuote,scalaEscapedChar,scalaUnicodeChar
    +hi def link scalaString String
    +hi def link scalaStringEmbeddedQuote String
    +
    +syn region scalaIString matchgroup=scalaInterpolationBrackets start=/\<[a-zA-Z][a-zA-Z0-9_]*"/ skip=/\\"/ end=/"/ contains=scalaInterpolation,scalaInterpolationB,scalaEscapedChar,scalaUnicodeChar
    +syn region scalaTripleIString matchgroup=scalaInterpolationBrackets start=/\<[a-zA-Z][a-zA-Z0-9_]*"""/ end=/"""\ze\%([^"]\|$\)/ contains=scalaInterpolation,scalaInterpolationB,scalaEscapedChar,scalaUnicodeChar
    +hi def link scalaIString String
    +hi def link scalaTripleIString String
    +
    +syn match scalaInterpolation /\$[a-zA-Z0-9_$]\+/ contained
    +exe 'syn region scalaInterpolationB matchgroup=scalaInterpolationBoundary start=/\${/ end=/}/ contained contains=' . s:ContainedGroup()
    +hi def link scalaInterpolation Function
    +hi clear scalaInterpolationB
    +
    +syn region scalaFString matchgroup=scalaInterpolationBrackets start=/f"/ skip=/\\"/ end=/"/ contains=scalaFInterpolation,scalaFInterpolationB,scalaEscapedChar,scalaUnicodeChar
    +syn match scalaFInterpolation /\$[a-zA-Z0-9_$]\+\(%[-A-Za-z0-9\.]\+\)\?/ contained
    +exe 'syn region scalaFInterpolationB matchgroup=scalaInterpolationBoundary start=/${/ end=/}\(%[-A-Za-z0-9\.]\+\)\?/ contained contains=' . s:ContainedGroup()
    +hi def link scalaFString String
    +hi def link scalaFInterpolation Function
    +hi clear scalaFInterpolationB
    +
    +syn region scalaTripleString start=/"""/ end=/"""\%([^"]\|$\)/ contains=scalaEscapedChar,scalaUnicodeChar
    +syn region scalaTripleFString matchgroup=scalaInterpolationBrackets start=/f"""/ end=/"""\%([^"]\|$\)/ contains=scalaFInterpolation,scalaFInterpolationB,scalaEscapedChar,scalaUnicodeChar
    +hi def link scalaTripleString String
    +hi def link scalaTripleFString String
    +
    +hi def link scalaInterpolationBrackets Special
    +hi def link scalaInterpolationBoundary Function
    +
    +syn match scalaNumber /\<0[dDfFlL]\?\>/ " Just a bare 0
    +syn match scalaNumber /\<[1-9]\d*[dDfFlL]\?\>/  " A multi-digit number - octal numbers with leading 0's are deprecated in Scala
    +syn match scalaNumber /\<0[xX][0-9a-fA-F]\+[dDfFlL]\?\>/ " Hex number
    +syn match scalaNumber /\%(\<\d\+\.\d*\|\.\d\+\)\%([eE][-+]\=\d\+\)\=[fFdD]\=/ " exponential notation 1
    +syn match scalaNumber /\<\d\+[eE][-+]\=\d\+[fFdD]\=\>/ " exponential notation 2
    +syn match scalaNumber /\<\d\+\%([eE][-+]\=\d\+\)\=[fFdD]\>/ " exponential notation 3
    +hi def link scalaNumber Number
    +
    +syn region scalaRoundBrackets start="(" end=")" skipwhite contained contains=scalaTypeDeclaration,scalaSquareBrackets,scalaRoundBrackets
    +
    +syn region scalaSquareBrackets matchgroup=scalaSquareBracketsBrackets start="\[" end="\]" skipwhite nextgroup=scalaTypeExtension contains=scalaTypeDeclaration,scalaSquareBrackets,scalaTypeOperator,scalaTypeAnnotationParameter,scalaString
    +syn match scalaTypeOperator /[-+=:<>]\+/ contained
    +syn match scalaTypeAnnotationParameter /@\<[`_A-Za-z0-9$]\+\>/ contained
    +hi def link scalaSquareBracketsBrackets Type
    +hi def link scalaTypeOperator Keyword
    +hi def link scalaTypeAnnotationParameter Function
    +
    +syn match scalaShebang "\%^#!.*" display
    +syn region scalaMultilineComment start="/\*" end="\*/" contains=scalaMultilineComment,scalaDocLinks,scalaParameterAnnotation,scalaCommentAnnotation,scalaTodo,scalaCommentCodeBlock,@Spell keepend fold
    +syn match scalaCommentAnnotation "@[_A-Za-z0-9$]\+" contained
    +syn match scalaParameterAnnotation "\%(@tparam\|@param\|@see\)" nextgroup=scalaParamAnnotationValue skipwhite contained
    +syn match scalaParamAnnotationValue /[.`_A-Za-z0-9$]\+/ contained
    +syn region scalaDocLinks start="\[\[" end="\]\]" contained
    +syn region scalaCommentCodeBlock matchgroup=Keyword start="{{{" end="}}}" contained
    +syn match scalaTodo "\vTODO|FIXME|XXX" contained
    +hi def link scalaShebang Comment
    +hi def link scalaMultilineComment Comment
    +hi def link scalaDocLinks Function
    +hi def link scalaParameterAnnotation Function
    +hi def link scalaParamAnnotationValue Keyword
    +hi def link scalaCommentAnnotation Function
    +hi def link scalaCommentCodeBlock String
    +hi def link scalaTodo Todo
    +
    +syn match scalaAnnotation /@\<[`_A-Za-z0-9$]\+\>/
    +hi def link scalaAnnotation PreProc
    +
    +syn match scalaTrailingComment "//.*$" contains=scalaTodo,@Spell
    +hi def link scalaTrailingComment Comment
    +
    +syn match scalaAkkaFSM /goto([^)]*)\_s\+\/ contains=scalaAkkaFSMGotoUsing
    +syn match scalaAkkaFSM /stay\_s\+using/
    +syn match scalaAkkaFSM /^\s*stay\s*$/
    +syn match scalaAkkaFSM /when\ze([^)]*)/
    +syn match scalaAkkaFSM /startWith\ze([^)]*)/
    +syn match scalaAkkaFSM /initialize\ze()/
    +syn match scalaAkkaFSM /onTransition/
    +syn match scalaAkkaFSM /onTermination/
    +syn match scalaAkkaFSM /whenUnhandled/
    +syn match scalaAkkaFSMGotoUsing /\/
    +syn match scalaAkkaFSMGotoUsing /\/
    +hi def link scalaAkkaFSM PreProc
    +hi def link scalaAkkaFSMGotoUsing PreProc
    +
    +let b:current_syntax = 'scala'
    +
    +if main_syntax ==# 'scala'
    +  unlet main_syntax
    +endif
    +
    +" vim:set sw=2 sts=2 ts=8 et:
    diff --git a/git/usr/share/vim/vim92/syntax/scdoc.vim b/git/usr/share/vim/vim92/syntax/scdoc.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..0180f35027abe569d977faed1f373bebcfede1c9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/scdoc.vim
    @@ -0,0 +1,63 @@
    +" Syntax file for scdoc files
    +" Maintainer: Gregory Anders 
    +" Last Updated: 2022-05-09
    +" Upstream: https://github.com/gpanders/vim-scdoc
    +
    +if exists('b:current_syntax')
    +    finish
    +endif
    +let b:current_syntax = 'scdoc'
    +
    +syntax match scdocFirstLineError "\%^.*$"
    +syntax match scdocFirstLineValid "\%^\S\+(\d[0-9A-Za-z]*)\%(\s\+\"[^"]*\"\%(\s\+\"[^"]*\"\)\=\)\=$"
    +
    +syntax region scdocCommentError start="^;\S" end="$" keepend
    +syntax region scdocComment start="^; " end="$" keepend
    +
    +syntax region scdocHeaderError start="^#\{3,}" end="$" keepend
    +syntax region scdocHeader start="^#\{1,2}" end="$" keepend
    +
    +syntax match scdocIndentError "^[ ]\+"
    +
    +syntax match scdocLineBreak "++$"
    +
    +syntax region scdocOrderedListItem matchgroup=scdocOrderedListMarker start="^\z(\s*\)\." skip="^\z1  .*$" end="^" contains=scdocBold,scdocUnderline
    +syntax region scdocListItem matchgroup=scdocListMarker start="^\z(\s*\)-" skip="^\z1  .*$" end="^" contains=scdocBold,scdocUnderline
    +
    +" Tables cannot start with a column
    +syntax match scdocTableError "^:"
    +
    +syntax region scdocTable matchgroup=scdocTableEntry start="^[\[|\]][\[\-\]<=>]" end="^$" contains=scdocTableEntry,scdocTableError,scdocTableContinuation,scdocBold,scdocUnderline,scdocPre
    +syntax match scdocTableError "^.*$" contained
    +syntax match scdocTableContinuation "^   \+\S\+" contained
    +syntax match scdocTableEntry "^[|:][\[\-\]<=> ]" contained
    +syntax match scdocTableError "^[|:][\[\-\]<=> ]\S.*$" contained
    +
    +syntax region scdocBold concealends matchgroup=scdocBoldDelimiter start="\\\@"
    +syntax region scdocPre matchgroup=scdocPreDelimiter start="^\t*```" end="^\t*```"
    +
    +syntax sync minlines=50
    +
    +hi default link scdocFirstLineValid     Comment
    +hi default link scdocComment            Comment
    +hi default link scdocHeader             Title
    +hi default link scdocOrderedListMarker  Statement
    +hi default link scdocListMarker         scdocOrderedListMarker
    +hi default link scdocLineBreak          Special
    +hi default link scdocTableSpecifier     Statement
    +hi default link scdocTableEntry         Statement
    +
    +hi default link scdocFirstLineError        Error
    +hi default link scdocCommentError          Error
    +hi default link scdocHeaderError           Error
    +hi default link scdocIndentError           Error
    +hi default link scdocTableError            Error
    +hi default link scdocTableError Error
    +
    +hi default link scdocPreDelimiter       Delimiter
    +
    +hi default scdocBold term=bold cterm=bold gui=bold
    +hi default scdocUnderline term=underline cterm=underline gui=underline
    +hi default link scdocBoldDelimiter scdocBold
    +hi default link scdocUnderlineDelimiter scdocUnderline
    diff --git a/git/usr/share/vim/vim92/syntax/scheme.vim b/git/usr/share/vim/vim92/syntax/scheme.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..59b0cc5b188d9a6a4dc293fdc22be9b419355e3a
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/scheme.vim
    @@ -0,0 +1,470 @@
    +" Vim syntax file
    +" Language:            Scheme (R7RS)
    +" Last Change:         2024 Jun 21
    +" Author:              Evan Hanson 
    +" Maintainer:          Evan Hanson 
    +" Previous Author:     Dirk van Deun 
    +" Previous Maintainer: Sergey Khorev 
    +" Repository:          https://git.foldling.org/vim-scheme.git
    +" URL:                 https://foldling.org/vim/syntax/scheme.vim
    +
    +if exists('b:current_syntax')
    +  finish
    +endif
    +
    +let s:cpo = &cpo
    +set cpo&vim
    +
    +syn spell notoplevel
    +
    +syn match schemeParentheses "[^ '`\t\n()\[\]";]\+"
    +syn match schemeParentheses "[)\]]"
    +
    +syn match schemeIdentifier /[^ '`\t\n()\[\]"|;][^ '`\t\n()\[\]"|;]*/
    +
    +syn region schemeQuote matchgroup=schemeData start=/'[`']*/ end=/[ \t\n()\[\]";]/me=e-1
    +syn region schemeQuote matchgroup=schemeData start=/'['`]*"/ skip=/\\[\\"]/ end=/"/
    +syn region schemeQuote matchgroup=schemeData start=/'['`]*|/ skip=/\\[\\|]/ end=/|/
    +syn region schemeQuote matchgroup=schemeData start=/'['`]*#\?(/ end=/)/ contains=ALLBUT,schemeQuasiquote,schemeQuasiquoteForm,schemeUnquote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster
    +
    +syn region schemeQuasiquote matchgroup=schemeData start=/`['`]*/ end=/[ \t\n()\[\]";]/me=e-1
    +syn region schemeQuasiquote matchgroup=schemeData start=/`['`]*#\?(/ end=/)/ contains=ALLBUT,schemeQuote,schemeQuoteForm,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster
    +
    +syn region schemeUnquote matchgroup=schemeParentheses start=/,/ end=/[ `'\t\n\[\]()";]/me=e-1 contained contains=ALLBUT,schemeDatumCommentForm,@schemeImportCluster
    +syn region schemeUnquote matchgroup=schemeParentheses start=/,@/ end=/[ `'\t\n\[\]()";]/me=e-1 contained contains=ALLBUT,schemeDatumCommentForm,@schemeImportCluster
    +syn region schemeUnquote matchgroup=schemeParentheses start=/,(/ end=/)/ contained contains=ALLBUT,schemeDatumCommentForm,@schemeImportCluster
    +syn region schemeUnquote matchgroup=schemeParentheses start=/,@(/ end=/)/ contained contains=ALLBUT,schemeDatumCommentForm,@schemeImportCluster
    +
    +syn region schemeQuoteForm matchgroup=schemeData start=/(/ end=/)/ contained contains=ALLBUT,schemeQuasiquote,schemeQuasiquoteForm,schemeUnquote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster
    +syn region schemeQuasiquoteForm matchgroup=schemeData start=/(/ end=/)/ contained contains=ALLBUT,schemeQuote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster
    +
    +syn region schemeString start=/\(\\\)\@/
    +syn match schemeNumber /#x[+\-]*[0-9a-fA-F]\+\>/
    +
    +syn match schemeBoolean /#t\(rue\)\?/
    +syn match schemeBoolean /#f\(alse\)\?/
    +
    +syn match schemeCharacter /#\\.[^ `'\t\n\[\]()]*/
    +syn match schemeCharacter /#\\x[0-9a-fA-F]\+/
    +
    +syn match schemeComment /;.*$/ contains=schemeTodo,@Spell
    +
    +syn region schemeMultilineComment start=/#|/ end=/|#/ contains=schemeTodo,schemeMultilineComment,@Spell
    +
    +syn match schemeTodo /\c\<\(todo\|xxx\|fixme\|note\):\?\>/ contained
    +
    +syn region schemeForm matchgroup=schemeParentheses start="(" end=")" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster
    +syn region schemeForm matchgroup=schemeParentheses start="\[" end="\]" contains=ALLBUT,schemeUnquote,schemeDatumCommentForm,@schemeImportCluster
    +
    +syn region schemeVector matchgroup=schemeData start="#(" end=")" contains=ALLBUT,schemeQuasiquote,schemeQuasiquoteForm,schemeUnquote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster
    +syn region schemeVector matchgroup=schemeData start="#[fsu]\d\+(" end=")" contains=schemeNumber,schemeComment,schemeDatumComment
    +
    +if exists('g:is_chicken') || exists('b:is_chicken')
    +  syn region schemeImport matchgroup=schemeImport start="\(([ \t\n]*\)\@<=\(import\|import-syntax\|use\|require-extension\)\(-for-syntax\)\?\>" end=")"me=e-1 contained contains=schemeImportForm,schemeIdentifier,schemeComment,schemeDatumComment
    +else
    +  syn region schemeImport matchgroup=schemeImport start="\(([ \t\n]*\)\@<=\(import\)\>" end=")"me=e-1 contained contains=schemeImportForm,schemeIdentifier,schemeComment,schemeDatumComment
    +endif
    +
    +syn match   schemeImportKeyword "\(([ \t\n]*\)\@<=\(except\|only\|prefix\|rename\)\>"
    +syn region  schemeImportForm matchgroup=schemeParentheses start="(" end=")" contained contains=schemeIdentifier,schemeComment,schemeDatumComment,@schemeImportCluster
    +syn cluster schemeImportCluster contains=schemeImportForm,schemeImportKeyword
    +
    +syn region schemeDatumComment matchgroup=schemeDatumComment start=/#;[ \t\n`']*/ end=/[ \t\n()\[\]";]/me=e-1
    +syn region schemeDatumComment matchgroup=schemeDatumComment start=/#;[ \t\n`']*"/ skip=/\\[\\"]/ end=/"/
    +syn region schemeDatumComment matchgroup=schemeDatumComment start=/#;[ \t\n`']*|/ skip=/\\[\\|]/ end=/|/
    +syn region schemeDatumComment matchgroup=schemeDatumComment start=/#;[ \t\n`']*\(#\([usf]\d\+\)\?\)\?(/ end=/)/ contains=schemeDatumCommentForm
    +syn region schemeDatumCommentForm start="(" end=")" contained contains=schemeDatumCommentForm
    +
    +syn cluster schemeSyntaxCluster contains=schemeFunction,schemeKeyword,schemeSyntax,schemeExtraSyntax,schemeLibrarySyntax,schemeSyntaxSyntax
    +
    +syn keyword schemeLibrarySyntax define-library
    +syn keyword schemeLibrarySyntax export
    +syn keyword schemeLibrarySyntax include
    +syn keyword schemeLibrarySyntax include-ci
    +syn keyword schemeLibrarySyntax include-library-declarations
    +syn keyword schemeLibrarySyntax library
    +syn keyword schemeLibrarySyntax cond-expand
    +
    +syn keyword schemeSyntaxSyntax define-syntax
    +syn keyword schemeSyntaxSyntax let-syntax
    +syn keyword schemeSyntaxSyntax letrec-syntax
    +syn keyword schemeSyntaxSyntax syntax-rules
    +
    +syn keyword schemeSyntax =>
    +syn keyword schemeSyntax and
    +syn keyword schemeSyntax begin
    +syn keyword schemeSyntax case
    +syn keyword schemeSyntax case-lambda
    +syn keyword schemeSyntax cond
    +syn keyword schemeSyntax define
    +syn keyword schemeSyntax define-record-type
    +syn keyword schemeSyntax define-values
    +syn keyword schemeSyntax delay
    +syn keyword schemeSyntax delay-force
    +syn keyword schemeSyntax do
    +syn keyword schemeSyntax else
    +syn keyword schemeSyntax guard
    +syn keyword schemeSyntax if
    +syn keyword schemeSyntax lambda
    +syn keyword schemeSyntax let
    +syn keyword schemeSyntax let*
    +syn keyword schemeSyntax let*-values
    +syn keyword schemeSyntax let-values
    +syn keyword schemeSyntax letrec
    +syn keyword schemeSyntax letrec*
    +syn keyword schemeSyntax or
    +syn keyword schemeSyntax parameterize
    +syn keyword schemeSyntax quasiquote
    +syn keyword schemeSyntax quote
    +syn keyword schemeSyntax set!
    +syn keyword schemeSyntax unless
    +syn keyword schemeSyntax unquote
    +syn keyword schemeSyntax unquote-splicing
    +syn keyword schemeSyntax when
    +
    +syn keyword schemeFunction *
    +syn keyword schemeFunction +
    +syn keyword schemeFunction -
    +syn keyword schemeFunction /
    +syn keyword schemeFunction <
    +syn keyword schemeFunction <=
    +syn keyword schemeFunction =
    +syn keyword schemeFunction >
    +syn keyword schemeFunction >=
    +syn keyword schemeFunction abs
    +syn keyword schemeFunction acos
    +syn keyword schemeFunction acos
    +syn keyword schemeFunction angle
    +syn keyword schemeFunction append
    +syn keyword schemeFunction apply
    +syn keyword schemeFunction asin
    +syn keyword schemeFunction assoc
    +syn keyword schemeFunction assq
    +syn keyword schemeFunction assv
    +syn keyword schemeFunction atan
    +syn keyword schemeFunction binary-port?
    +syn keyword schemeFunction boolean=?
    +syn keyword schemeFunction boolean?
    +syn keyword schemeFunction bytevector
    +syn keyword schemeFunction bytevector-append
    +syn keyword schemeFunction bytevector-append
    +syn keyword schemeFunction bytevector-copy
    +syn keyword schemeFunction bytevector-copy!
    +syn keyword schemeFunction bytevector-length
    +syn keyword schemeFunction bytevector-u8-ref
    +syn keyword schemeFunction bytevector-u8-set!
    +syn keyword schemeFunction bytevector?
    +syn keyword schemeFunction caaaar
    +syn keyword schemeFunction caaadr
    +syn keyword schemeFunction caaar
    +syn keyword schemeFunction caadar
    +syn keyword schemeFunction caaddr
    +syn keyword schemeFunction caadr
    +syn keyword schemeFunction caar
    +syn keyword schemeFunction cadaar
    +syn keyword schemeFunction cadadr
    +syn keyword schemeFunction cadar
    +syn keyword schemeFunction caddar
    +syn keyword schemeFunction cadddr
    +syn keyword schemeFunction caddr
    +syn keyword schemeFunction cadr
    +syn keyword schemeFunction call-with-current-continuation
    +syn keyword schemeFunction call-with-input-file
    +syn keyword schemeFunction call-with-output-file
    +syn keyword schemeFunction call-with-port
    +syn keyword schemeFunction call-with-values
    +syn keyword schemeFunction call/cc
    +syn keyword schemeFunction car
    +syn keyword schemeFunction cdaaar
    +syn keyword schemeFunction cdaadr
    +syn keyword schemeFunction cdaar
    +syn keyword schemeFunction cdadar
    +syn keyword schemeFunction cdaddr
    +syn keyword schemeFunction cdadr
    +syn keyword schemeFunction cdar
    +syn keyword schemeFunction cddaar
    +syn keyword schemeFunction cddadr
    +syn keyword schemeFunction cddar
    +syn keyword schemeFunction cdddar
    +syn keyword schemeFunction cddddr
    +syn keyword schemeFunction cdddr
    +syn keyword schemeFunction cddr
    +syn keyword schemeFunction cdr
    +syn keyword schemeFunction ceiling
    +syn keyword schemeFunction char->integer
    +syn keyword schemeFunction char-alphabetic?
    +syn keyword schemeFunction char-ci<=?
    +syn keyword schemeFunction char-ci=?
    +syn keyword schemeFunction char-ci>?
    +syn keyword schemeFunction char-downcase
    +syn keyword schemeFunction char-foldcase
    +syn keyword schemeFunction char-lower-case?
    +syn keyword schemeFunction char-numeric?
    +syn keyword schemeFunction char-ready?
    +syn keyword schemeFunction char-upcase
    +syn keyword schemeFunction char-upper-case?
    +syn keyword schemeFunction char-whitespace?
    +syn keyword schemeFunction char<=?
    +syn keyword schemeFunction char=?
    +syn keyword schemeFunction char>?
    +syn keyword schemeFunction char?
    +syn keyword schemeFunction close-input-port
    +syn keyword schemeFunction close-output-port
    +syn keyword schemeFunction close-port
    +syn keyword schemeFunction command-line
    +syn keyword schemeFunction complex?
    +syn keyword schemeFunction cons
    +syn keyword schemeFunction cos
    +syn keyword schemeFunction current-error-port
    +syn keyword schemeFunction current-input-port
    +syn keyword schemeFunction current-jiffy
    +syn keyword schemeFunction current-output-port
    +syn keyword schemeFunction current-second
    +syn keyword schemeFunction delete-file
    +syn keyword schemeFunction denominator
    +syn keyword schemeFunction digit-value
    +syn keyword schemeFunction display
    +syn keyword schemeFunction dynamic-wind
    +syn keyword schemeFunction emergency-exit
    +syn keyword schemeFunction environment
    +syn keyword schemeFunction eof-object
    +syn keyword schemeFunction eof-object?
    +syn keyword schemeFunction eq?
    +syn keyword schemeFunction equal?
    +syn keyword schemeFunction eqv?
    +syn keyword schemeFunction error
    +syn keyword schemeFunction error-object-irritants
    +syn keyword schemeFunction error-object-message
    +syn keyword schemeFunction error-object?
    +syn keyword schemeFunction eval
    +syn keyword schemeFunction even?
    +syn keyword schemeFunction exact
    +syn keyword schemeFunction exact->inexact
    +syn keyword schemeFunction exact-integer-sqrt
    +syn keyword schemeFunction exact-integer?
    +syn keyword schemeFunction exact?
    +syn keyword schemeFunction exit
    +syn keyword schemeFunction exp
    +syn keyword schemeFunction expt
    +syn keyword schemeFunction features
    +syn keyword schemeFunction file-error?
    +syn keyword schemeFunction file-exists?
    +syn keyword schemeFunction finite?
    +syn keyword schemeFunction floor
    +syn keyword schemeFunction floor-quotient
    +syn keyword schemeFunction floor-remainder
    +syn keyword schemeFunction floor/
    +syn keyword schemeFunction flush-output-port
    +syn keyword schemeFunction for-each
    +syn keyword schemeFunction force
    +syn keyword schemeFunction gcd
    +syn keyword schemeFunction get-environment-variable
    +syn keyword schemeFunction get-environment-variables
    +syn keyword schemeFunction get-output-bytevector
    +syn keyword schemeFunction get-output-string
    +syn keyword schemeFunction imag-part
    +syn keyword schemeFunction inexact
    +syn keyword schemeFunction inexact->exact
    +syn keyword schemeFunction inexact?
    +syn keyword schemeFunction infinite?
    +syn keyword schemeFunction input-port-open?
    +syn keyword schemeFunction input-port?
    +syn keyword schemeFunction integer->char
    +syn keyword schemeFunction integer?
    +syn keyword schemeFunction interaction-environment
    +syn keyword schemeFunction jiffies-per-second
    +syn keyword schemeFunction lcm
    +syn keyword schemeFunction length
    +syn keyword schemeFunction list
    +syn keyword schemeFunction list->string
    +syn keyword schemeFunction list->vector
    +syn keyword schemeFunction list-copy
    +syn keyword schemeFunction list-ref
    +syn keyword schemeFunction list-set!
    +syn keyword schemeFunction list-tail
    +syn keyword schemeFunction list?
    +syn keyword schemeFunction load
    +syn keyword schemeFunction log
    +syn keyword schemeFunction magnitude
    +syn keyword schemeFunction make-bytevector
    +syn keyword schemeFunction make-list
    +syn keyword schemeFunction make-parameter
    +syn keyword schemeFunction make-polar
    +syn keyword schemeFunction make-promise
    +syn keyword schemeFunction make-rectangular
    +syn keyword schemeFunction make-string
    +syn keyword schemeFunction make-vector
    +syn keyword schemeFunction map
    +syn keyword schemeFunction max
    +syn keyword schemeFunction member
    +syn keyword schemeFunction memq
    +syn keyword schemeFunction memv
    +syn keyword schemeFunction min
    +syn keyword schemeFunction modulo
    +syn keyword schemeFunction nan?
    +syn keyword schemeFunction negative?
    +syn keyword schemeFunction newline
    +syn keyword schemeFunction not
    +syn keyword schemeFunction null-environment
    +syn keyword schemeFunction null?
    +syn keyword schemeFunction number->string
    +syn keyword schemeFunction number?
    +syn keyword schemeFunction numerator
    +syn keyword schemeFunction odd?
    +syn keyword schemeFunction open-binary-input-file
    +syn keyword schemeFunction open-binary-output-file
    +syn keyword schemeFunction open-input-bytevector
    +syn keyword schemeFunction open-input-file
    +syn keyword schemeFunction open-input-string
    +syn keyword schemeFunction open-output-bytevector
    +syn keyword schemeFunction open-output-file
    +syn keyword schemeFunction open-output-string
    +syn keyword schemeFunction output-port-open?
    +syn keyword schemeFunction output-port?
    +syn keyword schemeFunction pair?
    +syn keyword schemeFunction peek-char
    +syn keyword schemeFunction peek-u8
    +syn keyword schemeFunction port?
    +syn keyword schemeFunction positive?
    +syn keyword schemeFunction procedure?
    +syn keyword schemeFunction promise?
    +syn keyword schemeFunction quotient
    +syn keyword schemeFunction raise
    +syn keyword schemeFunction raise-continuable
    +syn keyword schemeFunction rational?
    +syn keyword schemeFunction rationalize
    +syn keyword schemeFunction read
    +syn keyword schemeFunction read-bytevector
    +syn keyword schemeFunction read-bytevector!
    +syn keyword schemeFunction read-char
    +syn keyword schemeFunction read-error?
    +syn keyword schemeFunction read-line
    +syn keyword schemeFunction read-string
    +syn keyword schemeFunction read-u8
    +syn keyword schemeFunction real-part
    +syn keyword schemeFunction real?
    +syn keyword schemeFunction remainder
    +syn keyword schemeFunction reverse
    +syn keyword schemeFunction round
    +syn keyword schemeFunction scheme-report-environment
    +syn keyword schemeFunction set-car!
    +syn keyword schemeFunction set-cdr!
    +syn keyword schemeFunction sin
    +syn keyword schemeFunction sqrt
    +syn keyword schemeFunction square
    +syn keyword schemeFunction string
    +syn keyword schemeFunction string->list
    +syn keyword schemeFunction string->number
    +syn keyword schemeFunction string->symbol
    +syn keyword schemeFunction string->utf8
    +syn keyword schemeFunction string->vector
    +syn keyword schemeFunction string-append
    +syn keyword schemeFunction string-ci<=?
    +syn keyword schemeFunction string-ci=?
    +syn keyword schemeFunction string-ci>?
    +syn keyword schemeFunction string-copy
    +syn keyword schemeFunction string-copy!
    +syn keyword schemeFunction string-downcase
    +syn keyword schemeFunction string-fill!
    +syn keyword schemeFunction string-foldcase
    +syn keyword schemeFunction string-for-each
    +syn keyword schemeFunction string-length
    +syn keyword schemeFunction string-map
    +syn keyword schemeFunction string-ref
    +syn keyword schemeFunction string-set!
    +syn keyword schemeFunction string-upcase
    +syn keyword schemeFunction string<=?
    +syn keyword schemeFunction string=?
    +syn keyword schemeFunction string>?
    +syn keyword schemeFunction string?
    +syn keyword schemeFunction substring
    +syn keyword schemeFunction symbol->string
    +syn keyword schemeFunction symbol=?
    +syn keyword schemeFunction symbol?
    +syn keyword schemeFunction syntax-error
    +syn keyword schemeFunction tan
    +syn keyword schemeFunction textual-port?
    +syn keyword schemeFunction transcript-off
    +syn keyword schemeFunction transcript-on
    +syn keyword schemeFunction truncate
    +syn keyword schemeFunction truncate-quotient
    +syn keyword schemeFunction truncate-remainder
    +syn keyword schemeFunction truncate/
    +syn keyword schemeFunction u8-ready?
    +syn keyword schemeFunction utf8->string
    +syn keyword schemeFunction values
    +syn keyword schemeFunction vector
    +syn keyword schemeFunction vector->list
    +syn keyword schemeFunction vector->string
    +syn keyword schemeFunction vector-append
    +syn keyword schemeFunction vector-copy
    +syn keyword schemeFunction vector-copy!
    +syn keyword schemeFunction vector-fill!
    +syn keyword schemeFunction vector-for-each
    +syn keyword schemeFunction vector-length
    +syn keyword schemeFunction vector-map
    +syn keyword schemeFunction vector-ref
    +syn keyword schemeFunction vector-set!
    +syn keyword schemeFunction vector?
    +syn keyword schemeFunction with-exception-handler
    +syn keyword schemeFunction with-input-from-file
    +syn keyword schemeFunction with-output-to-file
    +syn keyword schemeFunction write
    +syn keyword schemeFunction write-bytevector
    +syn keyword schemeFunction write-char
    +syn keyword schemeFunction write-shared
    +syn keyword schemeFunction write-simple
    +syn keyword schemeFunction write-string
    +syn keyword schemeFunction write-u8
    +syn keyword schemeFunction zero?
    +
    +hi def link schemeTodo Todo
    +hi def link schemeBoolean Boolean
    +hi def link schemeCharacter Character
    +hi def link schemeComment Comment
    +hi def link schemeConstant Constant
    +hi def link schemeData Delimiter
    +hi def link schemeDatumComment Comment
    +hi def link schemeDatumCommentForm Comment
    +hi def link schemeDelimiter Delimiter
    +hi def link schemeError Error
    +hi def link schemeExtraSyntax Underlined
    +hi def link schemeFunction Function
    +hi def link schemeIdentifier Normal
    +hi def link schemeImport PreProc
    +hi def link schemeImportKeyword PreProc
    +hi def link schemeKeyword Type
    +hi def link schemeLibrarySyntax PreProc
    +hi def link schemeMultilineComment Comment
    +hi def link schemeNumber Number
    +hi def link schemeParentheses Normal
    +hi def link schemeQuasiquote Delimiter
    +hi def link schemeQuote Delimiter
    +hi def link schemeSpecialSyntax Special
    +hi def link schemeString String
    +hi def link schemeSymbol Normal
    +hi def link schemeSyntax Statement
    +hi def link schemeSyntaxSyntax PreProc
    +hi def link schemeTypeSyntax Type
    +
    +let b:did_scheme_syntax = 1
    +
    +if exists('b:is_chicken') || exists('g:is_chicken')
    +  exe 'ru! syntax/chicken.vim'
    +endif
    +
    +unlet b:did_scheme_syntax
    +let b:current_syntax = 'scheme'
    +let &cpo = s:cpo
    +unlet s:cpo
    diff --git a/git/usr/share/vim/vim92/syntax/scilab.vim b/git/usr/share/vim/vim92/syntax/scilab.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..03e123b058497a9f20447af622f7c238e2648eed
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/scilab.vim
    @@ -0,0 +1,102 @@
    +"
    +" Vim syntax file
    +" Language   :	Scilab
    +" Maintainer :	Benoit Hamelin
    +" File type  :	*.sci (see :help filetype)
    +" History
    +"	28jan2002	benoith		0.1		Creation.  Adapted from matlab.vim.
    +"	04feb2002	benoith		0.5		Fixed bugs with constant highlighting.
    +"
    +
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +
    +" Reserved words.
    +syn keyword scilabStatement			abort clear clearglobal end exit global mode predef quit resume
    +syn keyword scilabStatement			return
    +syn keyword scilabFunction			function endfunction funptr
    +syn keyword scilabPredicate			null iserror isglobal
    +syn keyword scilabKeyword			typename
    +syn keyword scilabDebug				debug pause what where whereami whereis who whos
    +syn keyword scilabRepeat			for while break
    +syn keyword scilabConditional		if then else elseif
    +syn keyword scilabMultiplex			select case
    +
    +" Reserved constants.
    +syn match scilabConstant			"\(%\)[0-9A-Za-z?!#$]\+"
    +syn match scilabBoolean				"\(%\)[FTft]\>"
    +
    +" Delimiters and operators.
    +syn match scilabDelimiter			"[][;,()]"
    +syn match scilabComparison			"[=~]="
    +syn match scilabComparison			"[<>]=\="
    +syn match scilabComparison			"<>"
    +syn match scilabLogical				"[&|~]"
    +syn match scilabAssignment			"="
    +syn match scilabArithmetic			"[+-]"
    +syn match scilabArithmetic			"\.\=[*/\\]\.\="
    +syn match scilabArithmetic			"\.\=^"
    +syn match scilabRange				":"
    +syn match scilabMlistAccess			"\."
    +
    +syn match scilabLineContinuation	"\.\{2,}"
    +
    +syn match scilabTransposition		"[])a-zA-Z0-9?!_#$.]'"lc=1
    +
    +" Comments and tools.
    +syn keyword scilabTodo				TODO todo FIXME fixme TBD tbd	contained
    +syn match scilabComment				"//.*$"	contains=scilabTodo
    +
    +" Constants.
    +syn match scilabNumber				"[0-9]\+\(\.[0-9]*\)\=\([DEde][+-]\=[0-9]\+\)\="
    +syn match scilabNumber				"\.[0-9]\+\([DEde][+-]\=[0-9]\+\)\="
    +syn region scilabString				start=+'+ skip=+''+ end=+'+		oneline
    +syn region scilabString				start=+"+ end=+"+				oneline
    +
    +" Identifiers.
    +syn match scilabIdentifier			"\<[A-Za-z?!_#$][A-Za-z0-9?!_#$]*\>"
    +syn match scilabOverload			"%[A-Za-z0-9?!_#$]\+_[A-Za-z0-9?!_#$]\+"
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link scilabStatement				Statement
    +hi def link scilabFunction				Keyword
    +hi def link scilabPredicate				Keyword
    +hi def link scilabKeyword				Keyword
    +hi def link scilabDebug					Debug
    +hi def link scilabRepeat				Repeat
    +hi def link scilabConditional			Conditional
    +hi def link scilabMultiplex				Conditional
    +
    +hi def link scilabConstant				Constant
    +hi def link scilabBoolean				Boolean
    +
    +hi def link scilabDelimiter				Delimiter
    +hi def link scilabMlistAccess			Delimiter
    +hi def link scilabComparison			Operator
    +hi def link scilabLogical				Operator
    +hi def link scilabAssignment			Operator
    +hi def link scilabArithmetic			Operator
    +hi def link scilabRange					Operator
    +hi def link scilabLineContinuation		Underlined
    +hi def link scilabTransposition			Operator
    +
    +hi def link scilabTodo					Todo
    +hi def link scilabComment				Comment
    +
    +hi def link scilabNumber				Number
    +hi def link scilabString				String
    +
    +hi def link scilabIdentifier			Identifier
    +hi def link scilabOverload				Special
    +
    +
    +let b:current_syntax = "scilab"
    +
    +"EOF	vim: ts=4 noet tw=100 sw=4 sts=0
    diff --git a/git/usr/share/vim/vim92/syntax/screen.vim b/git/usr/share/vim/vim92/syntax/screen.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..d576d29b7ad1a124ac3f563c7b2d747c76b6b37a
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/screen.vim
    @@ -0,0 +1,260 @@
    +" Vim syntax file
    +" Language:             screen(1) configuration file
    +" Maintainer:           Dmitri Vereshchagin 
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2015-09-24
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match   screenEscape    '\\.'
    +
    +syn keyword screenTodo      contained TODO FIXME XXX NOTE
    +
    +syn region  screenComment   display oneline start='#' end='$'
    +                          \ contains=screenTodo,@Spell
    +
    +syn region  screenString    display oneline start=+"+ skip=+\\"+ end=+"+
    +                          \ contains=screenVariable,screenSpecial
    +
    +syn region  screenLiteral   display oneline start=+'+ skip=+\\'+ end=+'+
    +
    +syn match   screenVariable  contained display '$\%(\h\w*\|{\h\w*}\)'
    +
    +syn keyword screenBoolean   on off
    +
    +syn match   screenNumbers   display '\<\d\+\>'
    +
    +syn match   screenSpecials  contained
    +                          \ '%\%([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)'
    +
    +syn keyword screenCommands
    +                          \ acladd
    +                          \ aclchg
    +                          \ acldel
    +                          \ aclgrp
    +                          \ aclumask
    +                          \ activity
    +                          \ addacl
    +                          \ allpartial
    +                          \ altscreen
    +                          \ at
    +                          \ attrcolor
    +                          \ autodetach
    +                          \ autonuke
    +                          \ backtick
    +                          \ bce
    +                          \ bd_bc_down
    +                          \ bd_bc_left
    +                          \ bd_bc_right
    +                          \ bd_bc_up
    +                          \ bd_bell
    +                          \ bd_braille_table
    +                          \ bd_eightdot
    +                          \ bd_info
    +                          \ bd_link
    +                          \ bd_lower_left
    +                          \ bd_lower_right
    +                          \ bd_ncrc
    +                          \ bd_port
    +                          \ bd_scroll
    +                          \ bd_skip
    +                          \ bd_start_braille
    +                          \ bd_type
    +                          \ bd_upper_left
    +                          \ bd_upper_right
    +                          \ bd_width
    +                          \ bell
    +                          \ bell_msg
    +                          \ bind
    +                          \ bindkey
    +                          \ blanker
    +                          \ blankerprg
    +                          \ break
    +                          \ breaktype
    +                          \ bufferfile
    +                          \ bumpleft
    +                          \ bumpright
    +                          \ c1
    +                          \ caption
    +                          \ chacl
    +                          \ charset
    +                          \ chdir
    +                          \ cjkwidth
    +                          \ clear
    +                          \ collapse
    +                          \ colon
    +                          \ command
    +                          \ compacthist
    +                          \ console
    +                          \ copy
    +                          \ crlf
    +                          \ debug
    +                          \ defautonuke
    +                          \ defbce
    +                          \ defbreaktype
    +                          \ defc1
    +                          \ defcharset
    +                          \ defencoding
    +                          \ defescape
    +                          \ defflow
    +                          \ defgr
    +                          \ defhstatus
    +                          \ defkanji
    +                          \ deflog
    +                          \ deflogin
    +                          \ defmode
    +                          \ defmonitor
    +                          \ defmousetrack
    +                          \ defnonblock
    +                          \ defobuflimit
    +                          \ defscrollback
    +                          \ defshell
    +                          \ defsilence
    +                          \ defslowpaste
    +                          \ defutf8
    +                          \ defwrap
    +                          \ defwritelock
    +                          \ defzombie
    +                          \ detach
    +                          \ digraph
    +                          \ dinfo
    +                          \ displays
    +                          \ dumptermcap
    +                          \ echo
    +                          \ encoding
    +                          \ escape
    +                          \ eval
    +                          \ exec
    +                          \ fit
    +                          \ flow
    +                          \ focus
    +                          \ focusminsize
    +                          \ gr
    +                          \ group
    +                          \ hardcopy
    +                          \ hardcopy_append
    +                          \ hardcopydir
    +                          \ hardstatus
    +                          \ height
    +                          \ help
    +                          \ history
    +                          \ hstatus
    +                          \ idle
    +                          \ ignorecase
    +                          \ info
    +                          \ kanji
    +                          \ kill
    +                          \ lastmsg
    +                          \ layout
    +                          \ license
    +                          \ lockscreen
    +                          \ log
    +                          \ logfile
    +                          \ login
    +                          \ logtstamp
    +                          \ mapdefault
    +                          \ mapnotnext
    +                          \ maptimeout
    +                          \ markkeys
    +                          \ maxwin
    +                          \ meta
    +                          \ monitor
    +                          \ mousetrack
    +                          \ msgminwait
    +                          \ msgwait
    +                          \ multiuser
    +                          \ nethack
    +                          \ next
    +                          \ nonblock
    +                          \ number
    +                          \ obuflimit
    +                          \ only
    +                          \ other
    +                          \ partial
    +                          \ password
    +                          \ paste
    +                          \ pastefont
    +                          \ pow_break
    +                          \ pow_detach
    +                          \ pow_detach_msg
    +                          \ prev
    +                          \ printcmd
    +                          \ process
    +                          \ quit
    +                          \ readbuf
    +                          \ readreg
    +                          \ redisplay
    +                          \ register
    +                          \ remove
    +                          \ removebuf
    +                          \ rendition
    +                          \ reset
    +                          \ resize
    +                          \ screen
    +                          \ scrollback
    +                          \ select
    +                          \ sessionname
    +                          \ setenv
    +                          \ setsid
    +                          \ shell
    +                          \ shelltitle
    +                          \ silence
    +                          \ silencewait
    +                          \ sleep
    +                          \ slowpaste
    +                          \ sorendition
    +                          \ sort
    +                          \ source
    +                          \ split
    +                          \ startup_message
    +                          \ stuff
    +                          \ su
    +                          \ suspend
    +                          \ term
    +                          \ termcap
    +                          \ termcapinfo
    +                          \ terminfo
    +                          \ time
    +                          \ title
    +                          \ umask
    +                          \ unbindall
    +                          \ unsetenv
    +                          \ utf8
    +                          \ vbell
    +                          \ vbell_msg
    +                          \ vbellwait
    +                          \ verbose
    +                          \ version
    +                          \ wall
    +                          \ width
    +                          \ windowlist
    +                          \ windows
    +                          \ wrap
    +                          \ writebuf
    +                          \ writelock
    +                          \ xoff
    +                          \ xon
    +                          \ zmodem
    +                          \ zombie
    +                          \ zombie_timeout
    +
    +hi def link screenEscape    Special
    +hi def link screenComment   Comment
    +hi def link screenTodo      Todo
    +hi def link screenString    String
    +hi def link screenLiteral   String
    +hi def link screenVariable  Identifier
    +hi def link screenBoolean   Boolean
    +hi def link screenNumbers   Number
    +hi def link screenSpecials  Special
    +hi def link screenCommands  Keyword
    +
    +let b:current_syntax = "screen"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/scss.vim b/git/usr/share/vim/vim92/syntax/scss.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..9d79dc5cb6733a0bb10de7d8a19cb7fc51cc1c5e
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/scss.vim
    @@ -0,0 +1,25 @@
    +" Vim syntax file
    +" Language:	SCSS
    +" Maintainer:	Tim Pope 
    +" Filenames:	*.scss
    +" Last Change:	2019 Dec 05
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +runtime! syntax/sass.vim
    +
    +syn clear sassComment
    +syn clear sassCssComment
    +syn clear sassEndOfLineComment
    +
    +syn match scssComment "//.*" contains=sassTodo,@Spell
    +syn region scssCssComment start="/\*" end="\*/" contains=sassTodo,@Spell
    +
    +hi def link scssCssComment scssComment
    +hi def link scssComment Comment
    +
    +let b:current_syntax = "scss"
    +
    +" vim:set sw=2:
    diff --git a/git/usr/share/vim/vim92/syntax/sd.vim b/git/usr/share/vim/vim92/syntax/sd.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..b497ba5eaa618dfedf674f056de77a3e624b4ac9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sd.vim
    @@ -0,0 +1,71 @@
    +" Language: streaming descriptor file
    +" Maintainer: Puria Nafisi Azizi (pna) 
    +" License: This file can be redistribued and/or modified under the same terms
    +"   as Vim itself.
    +" URL: http://netstudent.polito.it/vim_syntax/
    +" Last Change: 2012 Feb 03 by Thilo Six
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +        finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +" Always ignore case
    +syn case ignore
    +
    +" Comments
    +syn match sdComment /\s*[#;].*$/
    +
    +" IP Adresses
    +syn cluster sdIPCluster contains=sdIPError,sdIPSpecial
    +syn match sdIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained
    +syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
    +syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster
    +
    +" Statements
    +syn keyword sdStatement AGGREGATE AUDIO_CHANNELS
    +syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE
    +syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR
    +syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite
    +syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite
    +syn keyword sdStatement FILE_NAME FRAME_LEN FRAME_RATE FORCE_FRAME_RATE
    +syn keyword sdStatement LICENSE
    +syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite
    +syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite
    +syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY
    +syn keyword sdStatement SAMPLE_RATE
    +syn keyword sdStatement TITLE TWIN
    +syn keyword sdStatement VERIFY
    +
    +" Known Options
    +syn keyword sdEncoding H26L MPV MP2T MP4V-ES
    +syn keyword sdCoding FRAME SAMPLE
    +syn keyword sdSource STORED LIVE
    +
    +"Specials
    +syn keyword sdSpecial TRUE FALSE NULL
    +syn keyword sdDelimiter STREAM STREAM_END
    +syn match sdError /^search .\{257,}/
    +
    +
    +hi def link sdIP Number
    +hi def link sdHostname Type
    +hi def link sdEncoding Identifier
    +hi def link sdCoding Identifier
    +hi def link sdSource Identifier
    +hi def link sdComment Comment
    +hi def link sdIPError Error
    +hi def link sdError Error
    +hi def link sdStatement Statement
    +hi def link sdIPSpecial Special
    +hi def link sdSpecial Special
    +hi def link sdDelimiter Delimiter
    +
    +
    +let b:current_syntax = "sd"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/sdc.vim b/git/usr/share/vim/vim92/syntax/sdc.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ae2aae5f07781a742b4691b798426d1bde105c40
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sdc.vim
    @@ -0,0 +1,77 @@
    +" Vim syntax file
    +" Language:     SDC - Synopsys Design Constraints
    +" Maintainer:   Maurizio Tranchero - maurizio.tranchero@gmail.com
    +" Credits:      based on TCL Vim syntax file
    +" Version:	0.3
    +" Last Change:  Thu Mar  25 17:35:16 CET 2009
    +" 2024 Jul 17 by Vim Project (update to SDC 2.1)
    +
    +" Quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read the TCL syntax to start with
    +runtime! syntax/tcl.vim
    +
    +" TCL extension related to SDC and available from some vendors
    +" (not defined in SDC standard!)
    +syn keyword sdcCollections	foreach_in_collection
    +syn keyword sdcObjectsInfo	get_point_info get_node_info get_path_info
    +syn keyword sdcObjectsInfo	get_timing_paths set_attribute
    +
    +" SDC rev. 2.1 specific keywords
    +syn keyword sdcObjectsQuery	get_clocks get_ports get_cells
    +syn keyword sdcObjectsQuery	get_pins get_nets all_inputs
    +syn keyword sdcObjectsQuery	all_outputs all_registers all_clocks
    +syn keyword sdcObjectsQuery	get_libs get_lib_cells get_lib_pins
    +
    +syn keyword sdcConstraints	set_false_path set_clock_groups set_sense
    +syn keyword sdcConstraints	set_propagated_clock set_clock_gating_check
    +syn keyword sdcConstraints	set_ideal_latency set_ideal_network
    +syn keyword sdcConstraints	set_ideal_transistion set_max_time_borrow
    +syn keyword sdcConstraints	set_data_check group_path set_max_transition
    +syn keyword sdcConstraints	set_max_fanout set_driving_cell
    +syn keyword sdcConstraints	set_port_fanout_number set_multi_cycle_path
    +syn keyword sdcConstraints	set_disable_timing set_min_pulse_width
    +
    +syn keyword sdcNonIdealities	set_min_delay set_max_delay
    +syn keyword sdcNonIdealities	set_input_delay set_output_delay
    +syn keyword sdcNonIdealities	set_load set_min_capacitance set_max_capacitance
    +syn keyword sdcNonIdealities	set_clock_latency set_clock_transition set_clock_uncertainty
    +syn keyword sdcNonIdealities	set_resistance set_timing_derate set_drive
    +syn keyword sdcNonIdealities	set_input_transition set_fanout_load
    +
    +syn keyword sdcCreateOperations	create_clock create_timing_netlist update_timing_netlist
    +syn keyword sdcCreateOperations	create_generated_clock
    +
    +syn keyword sdcPowerArea	set_max_area create_voltage_area
    +syn keyword sdcPowerArea	set_level_shifter_threshold set_max_dynamic_power
    +syn keyword sdcPowerArea	set_level_shifter_strategy set_max_leakage_power
    +
    +syn keyword sdcModeConfig	set_case_analysis set_logic_dc
    +syn keyword sdcModeConfig	set_logic_zero set_logic_one
    +
    +syn keyword sdcMiscCommmands	sdc_version set_wire_load_selection_group
    +syn keyword sdcMiscCommmands	set_units set_wire_load_mode set_wire_load_model
    +syn keyword sdcMiscCommmands	set_wire_load_min_block_size set_operating_conditions
    +syn keyword sdcMiscCommmands	current_design
    +
    +" command flags highlighting
    +syn match sdcFlags		"[[:space:]]-[[:alpha:]_]*\>"
    +
    +" Define the default highlighting.
    +hi def link sdcCollections      Repeat
    +hi def link sdcObjectsInfo      Operator
    +hi def link sdcCreateOperations	Operator
    +hi def link sdcObjectsQuery	Function
    +hi def link sdcConstraints	Operator
    +hi def link sdcNonIdealities	Operator
    +hi def link sdcPowerArea	Operator
    +hi def link sdcModeConfig	Operator
    +hi def link sdcMiscCommmands	Operator
    +hi def link sdcFlags		Special
    +
    +let b:current_syntax = "sdc"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sdl.vim b/git/usr/share/vim/vim92/syntax/sdl.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..7df38d1955fb044e0d590f6c39f8a8d2910ac6ed
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sdl.vim
    @@ -0,0 +1,153 @@
    +" Vim syntax file
    +" Language:	SDL
    +" Maintainer:	Michael Piefel 
    +" Last Change:	2 May 2001
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +if !exists("sdl_2000")
    +    syntax case ignore
    +endif
    +
    +" A bunch of useful SDL keywords
    +syn keyword sdlStatement	task else nextstate
    +syn keyword sdlStatement	in out with from interface
    +syn keyword sdlStatement	to via env and use
    +syn keyword sdlStatement	process procedure block system service type
    +syn keyword sdlStatement	endprocess endprocedure endblock endsystem
    +syn keyword sdlStatement	package endpackage connection endconnection
    +syn keyword sdlStatement	channel endchannel connect
    +syn keyword sdlStatement	synonym dcl signal gate timer signallist signalset
    +syn keyword sdlStatement	create output set reset call
    +syn keyword sdlStatement	operators literals
    +syn keyword sdlStatement	active alternative any as atleast constants
    +syn keyword sdlStatement	default endalternative endmacro endoperator
    +syn keyword sdlStatement	endselect endsubstructure external
    +syn keyword sdlStatement	if then fi for import macro macrodefinition
    +syn keyword sdlStatement	macroid mod nameclass nodelay not operator or
    +syn keyword sdlStatement	parent provided referenced rem
    +syn keyword sdlStatement	select spelling substructure xor
    +syn keyword sdlNewState		state endstate
    +syn keyword sdlInput		input start stop return none save priority
    +syn keyword sdlConditional	decision enddecision join
    +syn keyword sdlVirtual		virtual redefined finalized adding inherits
    +syn keyword sdlExported		remote exported export
    +
    +if !exists("sdl_no_96")
    +    syn keyword sdlStatement	all axioms constant endgenerator endrefinement endservice
    +    syn keyword sdlStatement	error fpar generator literal map noequality ordering
    +    syn keyword sdlStatement	refinement returns revealed reverse service signalroute
    +    syn keyword sdlStatement	view viewed
    +    syn keyword sdlExported	imported
    +endif
    +
    +if exists("sdl_2000")
    +    syn keyword sdlStatement	abstract aggregation association break choice composition
    +    syn keyword sdlStatement	continue endmethod handle method
    +    syn keyword sdlStatement	ordered private protected public
    +    syn keyword sdlException	exceptionhandler endexceptionhandler onexception
    +    syn keyword sdlException	catch new raise
    +    " The same in uppercase
    +    syn keyword sdlStatement	TASK ELSE NEXTSTATE
    +    syn keyword sdlStatement	IN OUT WITH FROM INTERFACE
    +    syn keyword sdlStatement	TO VIA ENV AND USE
    +    syn keyword sdlStatement	PROCESS PROCEDURE BLOCK SYSTEM SERVICE TYPE
    +    syn keyword sdlStatement	ENDPROCESS ENDPROCEDURE ENDBLOCK ENDSYSTEM
    +    syn keyword sdlStatement	PACKAGE ENDPACKAGE CONNECTION ENDCONNECTION
    +    syn keyword sdlStatement	CHANNEL ENDCHANNEL CONNECT
    +    syn keyword sdlStatement	SYNONYM DCL SIGNAL GATE TIMER SIGNALLIST SIGNALSET
    +    syn keyword sdlStatement	CREATE OUTPUT SET RESET CALL
    +    syn keyword sdlStatement	OPERATORS LITERALS
    +    syn keyword sdlStatement	ACTIVE ALTERNATIVE ANY AS ATLEAST CONSTANTS
    +    syn keyword sdlStatement	DEFAULT ENDALTERNATIVE ENDMACRO ENDOPERATOR
    +    syn keyword sdlStatement	ENDSELECT ENDSUBSTRUCTURE EXTERNAL
    +    syn keyword sdlStatement	IF THEN FI FOR IMPORT MACRO MACRODEFINITION
    +    syn keyword sdlStatement	MACROID MOD NAMECLASS NODELAY NOT OPERATOR OR
    +    syn keyword sdlStatement	PARENT PROVIDED REFERENCED REM
    +    syn keyword sdlStatement	SELECT SPELLING SUBSTRUCTURE XOR
    +    syn keyword sdlNewState	STATE ENDSTATE
    +    syn keyword sdlInput	INPUT START STOP RETURN NONE SAVE PRIORITY
    +    syn keyword sdlConditional	DECISION ENDDECISION JOIN
    +    syn keyword sdlVirtual	VIRTUAL REDEFINED FINALIZED ADDING INHERITS
    +    syn keyword sdlExported	REMOTE EXPORTED EXPORT
    +
    +    syn keyword sdlStatement	ABSTRACT AGGREGATION ASSOCIATION BREAK CHOICE COMPOSITION
    +    syn keyword sdlStatement	CONTINUE ENDMETHOD ENDOBJECT ENDVALUE HANDLE METHOD OBJECT
    +    syn keyword sdlStatement	ORDERED PRIVATE PROTECTED PUBLIC
    +    syn keyword sdlException	EXCEPTIONHANDLER ENDEXCEPTIONHANDLER ONEXCEPTION
    +    syn keyword sdlException	CATCH NEW RAISE
    +endif
    +
    +" String and Character contstants
    +" Highlight special characters (those which have a backslash) differently
    +syn match   sdlSpecial		contained "\\\d\d\d\|\\."
    +syn region  sdlString		start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=cSpecial
    +syn region  sdlString		start=+'+  skip=+''+  end=+'+
    +
    +" No, this doesn't happen, I just wanted to scare you. SDL really allows all
    +" these characters for identifiers; fortunately, keywords manage without them.
    +" set iskeyword=@,48-57,_,192-214,216-246,248-255,-
    +
    +syn region sdlComment		start="/\*"  end="\*/"
    +syn region sdlComment		start="comment"  end=";"
    +syn region sdlComment		start="--" end="--\|$"
    +syn match  sdlCommentError	"\*/"
    +
    +syn keyword sdlOperator		present
    +syn keyword sdlType		integer real natural duration pid boolean time
    +syn keyword sdlType		character charstring ia5string
    +syn keyword sdlType		self now sender offspring
    +syn keyword sdlStructure	asntype endasntype syntype endsyntype struct
    +
    +if !exists("sdl_no_96")
    +    syn keyword sdlStructure	newtype endnewtype
    +endif
    +
    +if exists("sdl_2000")
    +    syn keyword sdlStructure	object endobject value endvalue
    +    " The same in uppercase
    +    syn keyword sdlStructure	OBJECT ENDOBJECT VALUE ENDVALUE
    +    syn keyword sdlOperator	PRESENT
    +    syn keyword sdlType		INTEGER NATURAL DURATION PID BOOLEAN TIME
    +    syn keyword sdlType		CHARSTRING IA5STRING
    +    syn keyword sdlType		SELF NOW SENDER OFFSPRING
    +    syn keyword sdlStructure	ASNTYPE ENDASNTYPE SYNTYPE ENDSYNTYPE STRUCT
    +endif
    +
    +" ASN.1 in SDL
    +syn case match
    +syn keyword sdlType		SET OF BOOLEAN INTEGER REAL BIT OCTET
    +syn keyword sdlType		SEQUENCE CHOICE
    +syn keyword sdlType		STRING OBJECT IDENTIFIER NULL
    +
    +syn sync ccomment sdlComment
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +command -nargs=+ Hi     hi def 
    +
    +hi def link sdlException	Label
    +hi def link sdlConditional	sdlStatement
    +hi def link sdlVirtual		sdlStatement
    +hi def link sdlExported		sdlFlag
    +hi def link sdlCommentError	sdlError
    +hi def link sdlOperator		Operator
    +hi def link sdlStructure	sdlType
    +Hi	    sdlStatement	term=bold ctermfg=4 guifg=Blue
    +Hi	    sdlFlag		term=bold ctermfg=4 guifg=Blue gui=italic
    +Hi	    sdlNewState		term=italic ctermfg=2 guifg=Magenta gui=underline
    +Hi	    sdlInput		term=bold guifg=Red
    +hi def link sdlType		Type
    +hi def link sdlString		String
    +hi def link sdlComment		Comment
    +hi def link sdlSpecial		Special
    +hi def link sdlError		Error
    +
    +delcommand Hi
    +
    +let b:current_syntax = "sdl"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sed.vim b/git/usr/share/vim/vim92/syntax/sed.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..da6c9f85f6be70f32b47f660dafe8421ef767944
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sed.vim
    @@ -0,0 +1,173 @@
    +" Vim syntax file
    +" Language:		sed
    +" Maintainer:		Doug Kearns 
    +" Previous Maintainer:	Haakon Riiser 
    +" Contributor:		Jack Haden-Enneking
    +" Last Change:		2026 Mar 06
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn keyword sedTodo	contained TODO FIXME XXX
    +
    +syn match sedError	"\S"
    +
    +syn match sedWhitespace "\s\+" contained
    +syn match sedSemicolon	";"
    +
    +" Addresses {{{1
    +syn match sedAddress	"\d\+\|\$"
    +
    +" GNU extensions
    +syn match sedAddress	"\d\+\~\d\+"
    +syn match sedAddress	"\~\d\+"
    +syn match sedAddress	"[-+]\d\+"
    +
    +syn region sedAddress
    +      \ matchgroup=Delimiter
    +      \ start="[{,;]\s*/\%(\\/\)\="lc=1
    +      \ skip="[^\\]\%(\\\\\)*\\/"
    +      "\ GNU extensions
    +      \ end="/\%(IM\|MI\|[IM]\)\="
    +      \ contains=sedTab,sedRegexpMeta
    +syn region sedAddress
    +      \ matchgroup=Delimiter
    +      \ start="^\s*/\%(\\/\)\="
    +      "\ GNU extensions
    +      \ skip="[^\\]\%(\\\\\)*\\/"
    +      \ end="/\%(IM\|MI\|[IM]\)\="
    +      \ contains=sedTab,sedRegexpMeta
    +" }}}
    +
    +syn match sedFunction	"[dDgGhHlnNpPqQx=]\s*\%($\|;\)" contains=sedSemicolon,sedWhitespace
    +if exists("g:sed_dialect") && g:sed_dialect ==? "bsd"
    +  syn match sedComment	"^\s*#.*$" contains=sedTodo
    +else
    +  syn match sedFunction	"[dDgGhHlnNpPqQx=]\s*\ze#" contains=sedSemicolon,sedWhitespace
    +  syn match sedComment	"#.*$" contains=sedTodo
    +endif
    +syn match sedLabel	":[^;]*"
    +syn match sedLineCont	"^\%(\\\\\)*\\$" contained
    +syn match sedLineCont	"[^\\]\%(\\\\\)*\\$"ms=e contained
    +syn match sedSpecial	"[{},!]"
    +
    +" continue to silently support the old name
    +let s:highlight_tabs = v:false
    +if exists("g:highlight_sedtabs") || get(g:, "sed_highlight_tabs", 0)
    +  let s:highlight_tabs = v:true
    +  syn match sedTab	"\t" contained
    +endif
    +
    +" Append/Change/Insert
    +syn region sedACI	matchgroup=sedFunction start="[aci]\\$" matchgroup=NONE end="^.*$" contains=sedLineCont,sedTab
    +
    +syn region sedBranch	matchgroup=sedFunction start="[bt]" matchgroup=sedSemicolon end=";\|$" contains=sedWhitespace
    +syn region sedRW	matchgroup=sedFunction start="[rw]" matchgroup=sedSemicolon end=";\|$" contains=sedWhitespace
    +
    +" Substitution/transform with various delimiters
    +syn region sedFlagWrite	    matchgroup=sedFlag start="w" matchgroup=sedSemicolon end=";\|$" contains=sedWhitespace contained
    +syn match sedFlag	    "[[:digit:]gpI]*w\=" contains=sedFlagWrite contained
    +syn match sedRegexpMeta	    "[.*^$]" contained
    +syn match sedRegexpMeta	    "\\." contains=sedTab contained
    +syn match sedRegexpMeta	    "\[\^\=\]\=\%(\[:.\{-}:\]\|\[\..\{-}\.\]\|\[=.\{-}=\]\|[^]]\)*\]" contains=sedTab contained
    +syn match sedRegexpMeta	    "\\{\d\*,\d*\\}" contained
    +syn match sedRegexpMeta	    "\\%(.\{-}\\)" contains=sedTab contained
    +syn match sedReplaceMeta    "&\|\\\%($\|.\)" contains=sedTab contained
    +
    +" Metacharacters: $ * . \ ^ [ ~
    +" @ is used as delimiter and treated on its own below
    +let s:at = char2nr("@")
    +let s:i = char2nr(" ") " ASCII: 32, EBCDIC: 64
    +if has("ebcdic")
    +  let s:last = 255
    +else
    +  let s:last = 126
    +endif
    +let s:metacharacters = '$*.\^[~'
    +while s:i <= s:last
    +  let s:delimiter = escape(nr2char(s:i), s:metacharacters)
    +  if s:i != s:at
    +    exe 'syn region sedAddress'
    +	  \ 'matchgroup=Delimiter'
    +	  \ 'start=@\\' .. s:delimiter .. '\%(\\' .. s:delimiter .. '\)\=@'
    +	  \ 'skip=@[^\\]\%(\\\\\)*\\' .. s:delimiter .. '\|\[.\{-}' .. s:delimiter .. '@'
    +	  \ 'end=@' .. s:delimiter .. '\%(IM\|MI\|[IM]\)\=@'
    +	  \ 'contains=sedTab,sedRegexpMeta'
    +    exe 'syn region sedRegexp' .. s:i 'contained'
    +	  \ 'matchgroup=Delimiter'
    +	  \ 'start=@' .. s:delimiter .. '\%(\\\\\|\\' .. s:delimiter .. '\)*@'
    +	  \ 'end=@' .. s:delimiter .. '@me=e-1'
    +	  \ 'nextgroup=sedReplacement' .. s:i
    +	  \ 'contains=sedTab,sedRegexpMeta'
    +    exe 'syn region sedReplacement' .. s:i 'contained'
    +	  \ 'matchgroup=Delimiter'
    +	  \ 'start=@' .. s:delimiter .. '\%(\\\\\|\\' .. s:delimiter .. '\)*@'
    +	  \ 'end=@' .. s:delimiter .. '@'
    +	  \ 'nextgroup=@sedFlags'
    +	  \ 'contains=sedTab,sedReplaceMeta'
    +  endif
    +  let s:i = s:i + 1
    +endwhile
    +syn region sedAddress
    +      \ matchgroup=Delimiter
    +      \ start=+\\\z(@\)+
    +      \ end=+\z1\%(IM\|MI\|[IM]\)\=+
    +      \ contains=sedTab,sedRegexpMeta
    +syn region sedRegexp64 contained
    +      \ matchgroup=Delimiter
    +      \ start=+@\%(\\\\\|\\@\)*+
    +      \ end=+@+me=e-1
    +      \ nextgroup=sedReplacement64
    +      \ contains=sedTab,sedRegexpMeta
    +syn region sedReplacement64 contained
    +      \ matchgroup=Delimiter
    +      \ start=+@\%(\\\\\|\\@\)*+
    +      \ end=+@+
    +      \ nextgroup=sedFlag
    +      \ contains=sedTab,sedReplaceMeta
    +
    +" Since the syntax for the substitution command is very similar to the
    +" syntax for the transform command, I use the same pattern matching
    +" for both commands.  There is one problem -- the transform command
    +" (y) does not allow any flags.  To save memory, I ignore this problem.
    +syn match sedST	"[sy]" nextgroup=sedRegexp\d\+
    +
    +
    +hi def link sedAddress		Macro
    +hi def link sedACI		NONE
    +hi def link sedBranch		Label
    +hi def link sedComment		Comment
    +hi def link sedDelete		Function
    +hi def link sedError		Error
    +hi def link sedFlag		Type
    +hi def link sedFlagWrite	Constant
    +hi def link sedFunction		Function
    +hi def link sedLabel		Label
    +hi def link sedLineCont		Special
    +hi def link sedPutHoldspc	Function
    +hi def link sedReplaceMeta	Special
    +hi def link sedRegexpMeta	Special
    +hi def link sedRW		Constant
    +hi def link sedSemicolon	Special
    +hi def link sedST		Function
    +hi def link sedSpecial		Special
    +hi def link sedTodo		Todo
    +hi def link sedWhitespace	NONE
    +if s:highlight_tabs
    +  hi def link sedTab		Todo
    +endif
    +let s:i = char2nr(" ") " ASCII: 32, EBCDIC: 64
    +while s:i <= s:last
    +  exe "hi def link sedRegexp" .. s:i		"Macro"
    +  exe "hi def link sedReplacement" .. s:i	"NONE"
    +  let s:i = s:i + 1
    +endwhile
    +
    +unlet s:i s:last s:delimiter s:metacharacters s:at
    +unlet s:highlight_tabs
    +
    +let b:current_syntax = "sed"
    +
    +" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:
    diff --git a/git/usr/share/vim/vim92/syntax/sendpr.vim b/git/usr/share/vim/vim92/syntax/sendpr.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2541b95c672eb9bb6ac38918c8380ab38fd5f6cf
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sendpr.vim
    @@ -0,0 +1,37 @@
    +" Vim syntax file
    +" Language: FreeBSD send-pr file
    +" Maintainer: Hendrik Scholz 
    +" Last Change: 2022 Jun 14
    +"
    +" http://raisdorf.net/files/misc/send-pr.vim
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match sendprComment /^SEND-PR:/
    +" email address
    +syn match sendprType /<[a-zA-Z0-9\-\_\.]*@[a-zA-Z0-9\-\_\.]*>/
    +" ^> lines
    +syn match sendprString /^>[a-zA-Z\-]*:/
    +syn region sendprLabel start="\[" end="\]"
    +syn match sendprString /^To:/
    +syn match sendprString /^From:/
    +syn match sendprString /^Reply-To:/
    +syn match sendprString /^Cc:/
    +syn match sendprString /^X-send-pr-version:/
    +syn match sendprString /^X-GNATS-Notify:/
    +
    +hi def link sendprComment   Comment
    +hi def link sendprType      Type
    +hi def link sendprString    String
    +hi def link sendprLabel     Label
    +
    +let b:current_syntax = 'sendpr'
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/sensors.vim b/git/usr/share/vim/vim92/syntax/sensors.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..f8bc4c696bd4ba1489ac268aa5dbdc09abeeb971
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sensors.vim
    @@ -0,0 +1,52 @@
    +" Vim syntax file
    +" Language:             sensors.conf(5) - libsensors configuration file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2006-04-19
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn keyword sensorsTodo         contained TODO FIXME XXX NOTE
    +
    +syn region  sensorsComment      display oneline start='#' end='$'
    +                                \ contains=sensorsTodo,@Spell
    +
    +
    +syn keyword sensorsKeyword      bus chip label compute ignore set
    +
    +syn region  sensorsName         display oneline
    +                                \ start=+"+ skip=+\\\\\|\\"+ end=+"+
    +                                \ contains=sensorsNameSpecial
    +syn match   sensorsName         display '\w\+'
    +
    +syn match   sensorsNameSpecial  display '\\["\\rnt]'
    +
    +syn match   sensorsLineContinue '\\$'
    +
    +syn match   sensorsNumber       display '\d*.\d\+\>'
    +
    +syn match   sensorsRealWorld    display '@'
    +
    +syn match   sensorsOperator     display '[+*/-]'
    +
    +syn match   sensorsDelimiter    display '[()]'
    +
    +hi def link sensorsTodo         Todo
    +hi def link sensorsComment      Comment
    +hi def link sensorsKeyword      Keyword
    +hi def link sensorsName         String
    +hi def link sensorsNameSpecial  SpecialChar
    +hi def link sensorsLineContinue Special
    +hi def link sensorsNumber       Number
    +hi def link sensorsRealWorld    Identifier
    +hi def link sensorsOperator     Normal
    +hi def link sensorsDelimiter    Normal
    +
    +let b:current_syntax = "sensors"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/services.vim b/git/usr/share/vim/vim92/syntax/services.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..94e39ae21910d09b94d0dad59992b59c1edb6427
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/services.vim
    @@ -0,0 +1,54 @@
    +" Vim syntax file
    +" Language:             services(5) - Internet network services list
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2006-04-19
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match   servicesBegin     display '^'
    +                              \ nextgroup=servicesName,servicesComment
    +
    +syn match   servicesName      contained display '[[:graph:]]\+'
    +                              \ nextgroup=servicesPort skipwhite
    +
    +syn match   servicesPort      contained display '\d\+'
    +                              \ nextgroup=servicesPPDiv,servicesPPDivDepr
    +                              \ skipwhite
    +
    +syn match   servicesPPDiv     contained display '/'
    +                              \ nextgroup=servicesProtocol skipwhite
    +
    +syn match   servicesPPDivDepr contained display ','
    +                              \ nextgroup=servicesProtocol skipwhite
    +
    +syn match   servicesProtocol  contained display '\S\+'
    +                              \ nextgroup=servicesAliases,servicesComment
    +                              \ skipwhite
    +
    +syn match   servicesAliases   contained display '\S\+'
    +                              \ nextgroup=servicesAliases,servicesComment
    +                              \ skipwhite
    +
    +syn keyword servicesTodo      contained TODO FIXME XXX NOTE
    +
    +syn region  servicesComment   display oneline start='#' end='$'
    +                              \ contains=servicesTodo,@Spell
    +
    +hi def link servicesTodo      Todo
    +hi def link servicesComment   Comment
    +hi def link servicesName      Identifier
    +hi def link servicesPort      Number
    +hi def link servicesPPDiv     Delimiter
    +hi def link servicesPPDivDepr Error
    +hi def link servicesProtocol  Type
    +hi def link servicesAliases   Macro
    +
    +let b:current_syntax = "services"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/setserial.vim b/git/usr/share/vim/vim92/syntax/setserial.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..967fa5f6d2defd17654df024ebe0c6b0f1766f20
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/setserial.vim
    @@ -0,0 +1,120 @@
    +" Vim syntax file
    +" Language:             setserial(8) configuration file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2006-04-19
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn match   setserialBegin      display '^'
    +                                \ nextgroup=setserialDevice,setserialComment
    +                                \ skipwhite
    +
    +syn match   setserialDevice     contained display '\%(/[^ \t/]*\)\+'
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn keyword setserialParameter  contained port irq baud_base divisor
    +                                \ close_delay closing_wait rx_trigger
    +                                \ tx_trigger flow_off flow_on rx_timeout
    +                                \ nextgroup=setserialNumber skipwhite
    +
    +syn keyword setserialParameter  contained uart
    +                                \ nextgroup=setserialUARTType skipwhite
    +
    +syn keyword setserialParameter  contained autoconfig auto_irq skip_test
    +                                \ spd_hi spd_vhi spd_shi spd_warp spd_cust
    +                                \ spd_normal sak fourport session_lockout
    +                                \ pgrp_lockout hup_notify split_termios
    +                                \ callout_nohup low_latency
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialParameter  contained display
    +                                \ '\^\%(auto_irq\|skip_test\|sak\|fourport\)'
    +                                \ contains=setserialNegation
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialParameter  contained display
    +                                \ '\^\%(session_lockout\|pgrp_lockout\)'
    +                                \ contains=setserialNegation
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialParameter  contained display
    +                                \ '\^\%(hup_notify\|split_termios\)'
    +                                \ contains=setserialNegation
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialParameter  contained display
    +                                \ '\^\%(callout_nohup\|low_latency\)'
    +                                \ contains=setserialNegation
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn keyword setserialParameter  contained set_multiport
    +                                \ nextgroup=setserialMultiport skipwhite
    +
    +syn match   setserialNumber     contained display '\<\d\+\>'
    +                                \ nextgroup=setserialParameter skipwhite
    +syn match   setserialNumber     contained display '0x\x\+'
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn keyword setserialUARTType   contained none
    +
    +syn match   setserialUARTType   contained display
    +                                \ '8250\|16[4789]50\|16550A\=\|16650\%(V2\)\='
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialUARTType   contained display '166[59]4'
    +                                \ nextgroup=setserialParameter skipwhite
    +
    +syn match   setserialNegation   contained display '\^'
    +
    +syn match   setserialMultiport  contained '\'
    +                                \ nextgroup=setserialPort skipwhite
    +
    +syn match   setserialPort       contained display '\<\d\+\>'
    +                                \ nextgroup=setserialMask skipwhite
    +syn match   setserialPort       contained display '0x\x\+'
    +                                \ nextgroup=setserialMask skipwhite
    +
    +syn match   setserialMask       contained '\'
    +                                \ nextgroup=setserialBitMask skipwhite
    +
    +syn match   setserialBitMask    contained display '\<\d\+\>'
    +                                \ nextgroup=setserialMatch skipwhite
    +syn match   setserialBitMask    contained display '0x\x\+'
    +                                \ nextgroup=setserialMatch skipwhite
    +
    +syn match   setserialMatch      contained '\'
    +                                \ nextgroup=setserialMatchBits skipwhite
    +
    +syn match   setserialMatchBits  contained display '\<\d\+\>'
    +                                \ nextgroup=setserialMultiport skipwhite
    +syn match   setserialMatchBits  contained display '0x\x\+'
    +                                \ nextgroup=setserialMultiport skipwhite
    +
    +syn keyword setserialTodo       contained TODO FIXME XXX NOTE
    +
    +syn region  setserialComment    display oneline start='^\s*#' end='$'
    +                                \ contains=setserialTodo,@Spell
    +
    +hi def link setserialTodo       Todo
    +hi def link setserialComment    Comment
    +hi def link setserialDevice     Normal
    +hi def link setserialParameter  Identifier
    +hi def link setserialNumber     Number
    +hi def link setserialUARTType   Type
    +hi def link setserialNegation   Operator
    +hi def link setserialMultiport  Type
    +hi def link setserialPort       setserialNumber
    +hi def link setserialMask       Type
    +hi def link setserialBitMask    setserialNumber
    +hi def link setserialMatch      Type
    +hi def link setserialMatchBits  setserialNumber
    +
    +let b:current_syntax = "setserial"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/sexplib.vim b/git/usr/share/vim/vim92/syntax/sexplib.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..55dd3fb4941f3c84d8f06a5b1f184c79b50d62f9
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sexplib.vim
    @@ -0,0 +1,88 @@
    +" Vim syntax file
    +" Language:     S-expressions as used in Sexplib
    +" Filenames:    *.sexp
    +" Maintainers:  Markus Mottl      
    +" URL:          https://github.com/ocaml/vim-ocaml
    +" Last Change:  2020 Dec 31 - Updated header for Vim contribution (MM)
    +"               2017 Apr 11 - Improved matching of negative numbers (MM)
    +"               2012 Jun 20 - Fixed a block comment highlighting bug (MM)
    +
    +" For version 5.x: Clear all syntax items
    +" For version 6.x: Quit when a syntax file was already loaded
    +if version < 600
    +  syntax clear
    +elseif exists("b:current_syntax") && b:current_syntax == "sexplib"
    +  finish
    +endif
    +
    +" Sexplib is case sensitive.
    +syn case match
    +
    +" Comments
    +syn keyword  sexplibTodo contained TODO FIXME XXX NOTE
    +syn region   sexplibBlockComment matchgroup=sexplibComment start="#|" matchgroup=sexplibComment end="|#" contains=ALLBUT,sexplibQuotedAtom,sexplibUnquotedAtom,sexplibEncl,sexplibComment
    +syn match    sexplibSexpComment "#;" skipwhite skipempty nextgroup=sexplibQuotedAtomComment,sexplibUnquotedAtomComment,sexplibListComment,sexplibComment
    +syn region   sexplibQuotedAtomComment start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
    +syn match    sexplibUnquotedAtomComment /\([^;()" \t#|]\|#[^;()" \t|]\||[^;()" \t#]\)[^;()" \t]*/ contained
    +syn region   sexplibListComment matchgroup=sexplibComment start="(" matchgroup=sexplibComment end=")" contained contains=ALLBUT,sexplibEncl,sexplibString,sexplibQuotedAtom,sexplibUnquotedAtom,sexplibTodo,sexplibNumber,sexplibFloat
    +syn match    sexplibComment ";.*" contains=sexplibTodo
    +
    +" Atoms
    +syn match    sexplibUnquotedAtom /\([^;()" \t#|]\|#[^;()" \t|]\||[^;()" \t#]\)[^;()" \t]*/
    +syn region   sexplibQuotedAtom    start=+"+ skip=+\\\\\|\\"+ end=+"+
    +syn match    sexplibNumber        "-\=\<\d\(_\|\d\)*[l|L|n]\?\>"
    +syn match    sexplibNumber        "-\=\<0[x|X]\(\x\|_\)\+[l|L|n]\?\>"
    +syn match    sexplibNumber        "-\=\<0[o|O]\(\o\|_\)\+[l|L|n]\?\>"
    +syn match    sexplibNumber        "-\=\<0[b|B]\([01]\|_\)\+[l|L|n]\?\>"
    +syn match    sexplibFloat         "-\=\<\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)\=\>"
    +
    +" Lists
    +syn region   sexplibEncl transparent matchgroup=sexplibEncl start="(" matchgroup=sexplibEncl end=")" contains=ALLBUT,sexplibParenErr
    +
    +" Errors
    +syn match    sexplibUnquotedAtomErr /\([^;()" \t#|]\|#[^;()" \t|]\||[^;()" \t#]\)[^;()" \t]*\(#|\||#\)[^;()" \t]*/
    +syn match    sexplibParenErr ")"
    +
    +" Synchronization
    +syn sync minlines=50
    +syn sync maxlines=500
    +
    +" Define the default highlighting.
    +" For version 5.7 and earlier: only when not done already
    +" For version 5.8 and later: only when an item doesn't have highlighting yet
    +if version >= 508 || !exists("did_sexplib_syntax_inits")
    +  if version < 508
    +    let did_sexplib_syntax_inits = 1
    +    command -nargs=+ HiLink hi link 
    +  else
    +    command -nargs=+ HiLink hi def link 
    +  endif
    +
    +  HiLink sexplibParenErr            Error
    +  HiLink sexplibUnquotedAtomErr     Error
    +
    +  HiLink sexplibComment             Comment
    +  HiLink sexplibSexpComment         Comment
    +  HiLink sexplibQuotedAtomComment   Include
    +  HiLink sexplibUnquotedAtomComment Comment
    +  HiLink sexplibBlockComment        Comment
    +  HiLink sexplibListComment         Comment
    +
    +  HiLink sexplibBoolean             Boolean
    +  HiLink sexplibCharacter           Character
    +  HiLink sexplibNumber              Number
    +  HiLink sexplibFloat               Float
    +  HiLink sexplibUnquotedAtom        Identifier
    +  HiLink sexplibEncl                Identifier
    +  HiLink sexplibQuotedAtom          Keyword
    +
    +  HiLink sexplibTodo                Todo
    +
    +  HiLink sexplibEncl                Keyword
    +
    +  delcommand HiLink
    +endif
    +
    +let b:current_syntax = "sexplib"
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sgml.vim b/git/usr/share/vim/vim92/syntax/sgml.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ed8fa8cf12c38940a307ff0cc69f2d17e8a1deb8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sgml.vim
    @@ -0,0 +1,334 @@
    +" Vim syntax file
    +" Language:	SGML
    +" Maintainer:	Johannes Zellner 
    +" Last Change:	Tue, 27 Apr 2004 15:05:21 CEST
    +" Filenames:	*.sgml,*.sgm
    +" $Id: sgml.vim,v 1.1 2004/06/13 17:52:57 vimboss Exp $
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:sgml_cpo_save = &cpo
    +set cpo&vim
    +
    +syn case match
    +
    +" mark illegal characters
    +syn match sgmlError "[<&]"
    +
    +
    +" unicode numbers:
    +" provide different highlithing for unicode characters
    +" inside strings and in plain text (character data).
    +"
    +" EXAMPLE:
    +"
    +" \u4e88
    +"
    +syn match   sgmlUnicodeNumberAttr    +\\u\x\{4}+ contained contains=sgmlUnicodeSpecifierAttr
    +syn match   sgmlUnicodeSpecifierAttr +\\u+ contained
    +syn match   sgmlUnicodeNumberData    +\\u\x\{4}+ contained contains=sgmlUnicodeSpecifierData
    +syn match   sgmlUnicodeSpecifierData +\\u+ contained
    +
    +
    +" strings inside character data or comments
    +"
    +syn region  sgmlString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=sgmlEntity,sgmlUnicodeNumberAttr display
    +syn region  sgmlString contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=sgmlEntity,sgmlUnicodeNumberAttr display
    +
    +" punctuation (within attributes) e.g. 
    +"						^   ^
    +syn match   sgmlAttribPunct +[:.]+ contained display
    +
    +
    +" no highlighting for sgmlEqual (sgmlEqual has no highlighting group)
    +syn match   sgmlEqual +=+
    +
    +
    +" attribute, everything before the '='
    +"
    +" PROVIDES: @sgmlAttribHook
    +"
    +" EXAMPLE:
    +"
    +" 
    +"      ^^^^^^^^^^^^^
    +"
    +syn match   sgmlAttrib
    +    \ +[^-'"<]\@<=\<[a-zA-Z0-9.:]\+\>\([^'">]\@=\|$\)+
    +    \ contained
    +    \ contains=sgmlAttribPunct,@sgmlAttribHook
    +    \ display
    +
    +
    +" UNQUOTED value (not including the '=' -- sgmlEqual)
    +"
    +" PROVIDES: @sgmlValueHook
    +"
    +" EXAMPLE:
    +"
    +" 
    +"		       ^^^^^
    +"
    +syn match   sgmlValue
    +    \ +[^"' =/!?<>][^ =/!?<>]*+
    +    \ contained
    +    \ contains=sgmlEntity,sgmlUnicodeNumberAttr,@sgmlValueHook
    +    \ display
    +
    +
    +" QUOTED value (not including the '=' -- sgmlEqual)
    +"
    +" PROVIDES: @sgmlValueHook
    +"
    +" EXAMPLE:
    +"
    +" 
    +"		       ^^^^^^^
    +" 
    +"		       ^^^^^^^
    +"
    +syn region  sgmlValue contained start=+"+ skip=+\\\\\|\\"+ end=+"+
    +	    \ contains=sgmlEntity,sgmlUnicodeNumberAttr,@sgmlValueHook
    +syn region  sgmlValue contained start=+'+ skip=+\\\\\|\\'+ end=+'+
    +	    \ contains=sgmlEntity,sgmlUnicodeNumberAttr,@sgmlValueHook
    +
    +
    +" value, everything after (and including) the '='
    +" no highlighting!
    +"
    +" EXAMPLE:
    +"
    +" 
    +"		     ^^^^^^^^^
    +" 
    +"		     ^^^^^^^
    +"
    +syn match   sgmlEqualValue
    +    \ +=\s*[^ =/!?<>]\++
    +    \ contained
    +    \ contains=sgmlEqual,sgmlString,sgmlValue
    +    \ display
    +
    +
    +" start tag
    +" use matchgroup=sgmlTag to skip over the leading '<'
    +" see also sgmlEmptyTag below.
    +"
    +" PROVIDES: @sgmlTagHook
    +"
    +syn region   sgmlTag
    +    \ matchgroup=sgmlTag start=+<[^ /!?"']\@=+
    +    \ matchgroup=sgmlTag end=+>+
    +    \ contained
    +    \ contains=sgmlError,sgmlAttrib,sgmlEqualValue,@sgmlTagHook
    +
    +
    +" tag content for empty tags. This is the same as sgmlTag
    +" above, except the `matchgroup=sgmlEndTag for highlighting
    +" the end '/>' differently.
    +"
    +" PROVIDES: @sgmlTagHook
    +"
    +syn region   sgmlEmptyTag
    +    \ matchgroup=sgmlTag start=+<[^ /!?"']\@=+
    +    \ matchgroup=sgmlEndTag end=+/>+
    +    \ contained
    +    \ contains=sgmlError,sgmlAttrib,sgmlEqualValue,@sgmlTagHook
    +
    +
    +" end tag
    +" highlight everything but not the trailing '>' which
    +" was already highlighted by the containing sgmlRegion.
    +"
    +" PROVIDES: @sgmlTagHook
    +" (should we provide a separate @sgmlEndTagHook ?)
    +"
    +syn match   sgmlEndTag
    +    \ +"']\+>+
    +    \ contained
    +    \ contains=@sgmlTagHook
    +
    +
    +" [-- SGML SPECIFIC --]
    +
    +" SGML specific
    +" tag content for abbreviated regions
    +"
    +" PROVIDES: @sgmlTagHook
    +"
    +syn region   sgmlAbbrTag
    +    \ matchgroup=sgmlTag start=+<[^ /!?"']\@=+
    +    \ matchgroup=sgmlTag end=+/+
    +    \ contained
    +    \ contains=sgmlError,sgmlAttrib,sgmlEqualValue,@sgmlTagHook
    +
    +
    +" SGML specific
    +" just highlight the trailing '/'
    +syn match   sgmlAbbrEndTag +/+
    +
    +
    +" SGML specific
    +" abbreviated regions
    +"
    +" No highlighting, highlighting is done by contained elements.
    +"
    +" PROVIDES: @sgmlRegionHook
    +"
    +" EXAMPLE:
    +"
    +" "']\+/\_[^/]\+/+
    +    \ contains=sgmlAbbrTag,sgmlAbbrEndTag,sgmlCdata,sgmlComment,sgmlEntity,sgmlUnicodeNumberData,@sgmlRegionHook
    +
    +" [-- END OF SGML SPECIFIC --]
    +
    +
    +" real (non-empty) elements. We cannot do syntax folding
    +" as in xml, because end tags may be optional in sgml depending
    +" on the dtd.
    +" No highlighting, highlighting is done by contained elements.
    +"
    +" PROVIDES: @sgmlRegionHook
    +"
    +" EXAMPLE:
    +"
    +" 
    +"   
    +"   
    +"   
    +"   some data
    +" 
    +"
    +" SGML specific:
    +" compared to xmlRegion:
    +"   - removed folding
    +"   - added a single '/'in the start pattern
    +"
    +syn region   sgmlRegion
    +    \ start=+<\z([^ /!?>"']\+\)\(\(\_[^/>]*[^/!?]>\)\|>\)+
    +    \ end=++
    +    \ contains=sgmlTag,sgmlEndTag,sgmlCdata,@sgmlRegionCluster,sgmlComment,sgmlEntity,sgmlUnicodeNumberData,@sgmlRegionHook
    +    \ keepend
    +    \ extend
    +
    +
    +" empty tags. Just a container, no highlighting.
    +" Compare this with sgmlTag.
    +"
    +" EXAMPLE:
    +"
    +" 
    +"
    +" TODO use sgmlEmptyTag instead of sgmlTag
    +syn match    sgmlEmptyRegion
    +    \ +<[^ /!?>"']\(\_[^"'<>]\|"\_[^"]*"\|'\_[^']*'\)*/>+
    +    \ contains=sgmlEmptyTag
    +
    +
    +" cluster which contains the above two elements
    +syn cluster sgmlRegionCluster contains=sgmlRegion,sgmlEmptyRegion,sgmlAbbrRegion
    +
    +
    +" &entities; compare with dtd
    +syn match   sgmlEntity		       "&[^; \t]*;" contains=sgmlEntityPunct
    +syn match   sgmlEntityPunct  contained "[&.;]"
    +
    +
    +" The real comments (this implements the comments as defined by sgml,
    +" but not all sgml pages actually conform to it. Errors are flagged.
    +syn region  sgmlComment                start=++ contains=sgmlCommentPart,sgmlString,sgmlCommentError,sgmlTodo
    +syn keyword sgmlTodo         contained TODO FIXME XXX display
    +syn match   sgmlCommentError contained "[^>+
    +    \ contains=sgmlCdataStart,sgmlCdataEnd,@sgmlCdataHook
    +    \ keepend
    +    \ extend
    +" using the following line instead leads to corrupt folding at CDATA regions
    +" syn match    sgmlCdata      ++  contains=sgmlCdataStart,sgmlCdataEnd,@sgmlCdataHook
    +syn match    sgmlCdataStart ++          contained
    +
    +
    +" Processing instructions
    +" This allows "?>" inside strings -- good idea?
    +syn region  sgmlProcessing matchgroup=sgmlProcessingDelim start="" contains=sgmlAttrib,sgmlEqualValue
    +
    +
    +" DTD -- we use dtd.vim here
    +syn region  sgmlDocType matchgroup=sgmlDocTypeDecl start="\c" contains=sgmlDocTypeKeyword,sgmlInlineDTD,sgmlString
    +syn keyword sgmlDocTypeKeyword contained DOCTYPE PUBLIC SYSTEM
    +syn region  sgmlInlineDTD contained start="\[" end="]" contains=@sgmlDTD
    +syn include @sgmlDTD :p:h/dtd.vim
    +
    +
    +" synchronizing
    +" TODO !!! to be improved !!!
    +
    +syn sync match sgmlSyncDT grouphere  sgmlDocType +\_.\(+
    +
    +syn sync match sgmlSync grouphere   sgmlRegion  +\_.\(<[^ /!?>"']\+\)\@=+
    +" syn sync match sgmlSync grouphere  sgmlRegion "<[^ /!?>"']*>"
    +syn sync match sgmlSync groupthere  sgmlRegion  +"']\+>+
    +
    +syn sync minlines=100
    +
    +
    +" The default highlighting.
    +hi def link sgmlTodo			Todo
    +hi def link sgmlTag			Function
    +hi def link sgmlEndTag			Identifier
    +" SGML specific
    +hi def link sgmlAbbrEndTag		Identifier
    +hi def link sgmlEmptyTag		Function
    +hi def link sgmlEntity			Statement
    +hi def link sgmlEntityPunct		Type
    +
    +hi def link sgmlAttribPunct		Comment
    +hi def link sgmlAttrib			Type
    +
    +hi def link sgmlValue			String
    +hi def link sgmlString			String
    +hi def link sgmlComment			Comment
    +hi def link sgmlCommentPart		Comment
    +hi def link sgmlCommentError		Error
    +hi def link sgmlError			Error
    +
    +hi def link sgmlProcessingDelim		Comment
    +hi def link sgmlProcessing		Type
    +
    +hi def link sgmlCdata			String
    +hi def link sgmlCdataCdata		Statement
    +hi def link sgmlCdataStart		Type
    +hi def link sgmlCdataEnd		Type
    +
    +hi def link sgmlDocTypeDecl		Function
    +hi def link sgmlDocTypeKeyword		Statement
    +hi def link sgmlInlineDTD		Function
    +hi def link sgmlUnicodeNumberAttr	Number
    +hi def link sgmlUnicodeSpecifierAttr	SpecialChar
    +hi def link sgmlUnicodeNumberData	Number
    +hi def link sgmlUnicodeSpecifierData	SpecialChar
    +
    +let b:current_syntax = "sgml"
    +
    +let &cpo = s:sgml_cpo_save
    +unlet s:sgml_cpo_save
    +
    +" vim: ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sgmldecl.vim b/git/usr/share/vim/vim92/syntax/sgmldecl.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..6c1cde15aecbc7e79293ea24fca46db550c7f200
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sgmldecl.vim
    @@ -0,0 +1,72 @@
    +" Vim syntax file
    +" Language:	SGML (SGML Declaration )
    +" Last Change: jueves, 28 de diciembre de 2000, 13:51:44 CLST
    +" Maintainer: "Daniel A. Molina W." 
    +" You can modify and maintain this file, in other case send comments
    +" the maintainer email address.
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +let s:keepcpo= &cpo
    +set cpo&vim
    +
    +syn case ignore
    +
    +syn region	sgmldeclDeclBlock	transparent start=++
    +syn region	sgmldeclTagBlock	transparent start=+<+ end=+>+
    +					\ contains=ALLBUT,
    +					\ @sgmlTagError,@sgmlErrInTag
    +syn region	sgmldeclComment		contained start=+--+ end=+--+
    +
    +syn keyword	sgmldeclDeclKeys	SGML CHARSET CAPACITY SCOPE SYNTAX
    +					\ FEATURES
    +
    +syn keyword	sgmldeclTypes		BASESET DESCSET DOCUMENT NAMING DELIM
    +					\ NAMES QUANTITY SHUNCHAR DOCTYPE
    +					\ ELEMENT ENTITY ATTLIST NOTATION
    +					\ TYPE
    +
    +syn keyword	sgmldeclStatem		CONTROLS FUNCTION NAMECASE MINIMIZE
    +					\ LINK OTHER APPINFO REF ENTITIES
    +
    +syn keyword sgmldeclVariables	TOTALCAP GRPCAP ENTCAP DATATAG OMITTAG RANK
    +					\ SIMPLE IMPLICIT EXPLICIT CONCUR SUBDOC FORMAL ATTCAP
    +					\ ATTCHCAP AVGRPCAP ELEMCAP ENTCHCAP IDCAP IDREFCAP
    +					\ SHORTTAG
    +
    +syn match	sgmldeclNConst		contained +[0-9]\++
    +
    +syn region	sgmldeclString		contained start=+"+ end=+"+
    +
    +syn keyword	sgmldeclBool		YES NO
    +
    +syn keyword	sgmldeclSpecial		SHORTREF SGMLREF UNUSED NONE GENERAL
    +					\ SEEALSO ANY
    +
    +syn sync lines=250
    +
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link sgmldeclDeclKeys	Keyword
    +hi def link sgmldeclTypes		Type
    +hi def link sgmldeclConst		Constant
    +hi def link sgmldeclNConst		Constant
    +hi def link sgmldeclString		String
    +hi def link sgmldeclDeclBlock	Normal
    +hi def link sgmldeclBool		Boolean
    +hi def link sgmldeclSpecial		Special
    +hi def link sgmldeclComment		Comment
    +hi def link sgmldeclStatem		Statement
    +hi def link sgmldeclVariables	Type
    +
    +
    +let b:current_syntax = "sgmldecl"
    +
    +let &cpo = s:keepcpo
    +unlet s:keepcpo
    +
    +" vim:set tw=78 ts=4:
    diff --git a/git/usr/share/vim/vim92/syntax/sgmllnx.vim b/git/usr/share/vim/vim92/syntax/sgmllnx.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..ccd78f494a8ac071b49da7a36311e52ebba31caf
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sgmllnx.vim
    @@ -0,0 +1,54 @@
    +" Vim syntax file
    +" Language:	SGML-linuxdoc (supported by old sgmltools-1.x)
    +" Maintainer:	SungHyun Nam 
    +" Last Change:	2013 May 13
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +syn case ignore
    +
    +" tags
    +syn region sgmllnxEndTag	start=++	contains=sgmllnxTagN,sgmllnxTagError
    +syn region sgmllnxTag	start=+<[^/]+ end=+>+	contains=sgmllnxTagN,sgmllnxTagError
    +syn match  sgmllnxTagN	contained +<\s*[-a-zA-Z0-9]\++ms=s+1	contains=sgmllnxTagName
    +syn match  sgmllnxTagN	contained ++
    +syn region sgmllnxDocType start=++
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link sgmllnxTag2	    Function
    +hi def link sgmllnxTagN2	    Function
    +hi def link sgmllnxTag	    Special
    +hi def link sgmllnxEndTag	    Special
    +hi def link sgmllnxParen	    Special
    +hi def link sgmllnxEntity	    Type
    +hi def link sgmllnxDocEnt	    Type
    +hi def link sgmllnxTagName	    Statement
    +hi def link sgmllnxComment	    Comment
    +hi def link sgmllnxSpecial	    Special
    +hi def link sgmllnxDocType	    PreProc
    +hi def link sgmllnxTagError    Error
    +
    +
    +let b:current_syntax = "sgmllnx"
    +
    +" vim:set tw=78 ts=8 sts=2 sw=2 noet:
    diff --git a/git/usr/share/vim/vim92/syntax/sh.vim b/git/usr/share/vim/vim92/syntax/sh.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..05eb488d534a8b0b85cf953101b9d28f1cd5473d
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sh.vim
    @@ -0,0 +1,1050 @@
    +" Vim syntax file
    +" Language:		shell (sh) Korn shell (ksh) bash (sh)
    +" Maintainer:		This runtime file is looking for a new maintainer.
    +" Previous Maintainers:	Charles E. Campbell
    +" 		Lennart Schultz 
    +" Last Change:		2024 Mar 04 by Vim Project {{{1
    +"		2024 Nov 03 by Aliaksei Budavei <0x000c70 AT gmail DOT com> improved bracket expressions, #15941
    +"		2025 Jan 06 add $PS0 to bashSpecialVariables #16394
    +"		2025 Jan 18 add bash coproc, remove duplicate syn keywords #16467
    +"		2025 Mar 21 update shell capability detection #16939
    +"		2025 Apr 03 command substitution opening paren at EOL #17026
    +"		2025 Apr 10 improve shell detection #17084
    +"		2025 Apr 29 match escaped chars in test operands #17221
    +"		2025 May 06 improve single-quote string matching in parameter expansions
    +"		2025 May 06 match KornShell compound arrays
    +"		2025 May 10 improve wildcard character class lists
    +"		2025 May 21 improve supported KornShell features
    +"		2025 Jun 16 change how sh_fold_enabled is reset #17557
    +"		2025 Jul 18 properly delete :commands #17785
    +"		2025 Aug 23 bash: add support for ${ cmd;} and ${|cmd;} #18084
    +"		2025 Sep 23 simplify ksh logic, update sh statements #18355
    +"		2026 Jan 15 highlight command switches that contain a digit
    +"		2026 Feb 11 improve support for KornShell function names and variables
    +"		2026 Feb 15 improve comment handling #19414
    +"		2026 Mar 23 improve matching of function definitions #19638
    +"		2026 Apr 02 improve matching of function definitions #19849
    +" }}}
    +" Version:		208
    +" Former URL:		http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
    +" For options and settings, please use:      :help ft-sh-syntax
    +" This file includes many ideas from Eric Brunet (eric.brunet@ens.fr) and heredoc fixes from Felipe Contreras
    +
    +" quit when a syntax file was already loaded {{{1
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +" Ensure this is set unless we find another shell
    +let b:is_sh = 1
    +
    +" If the shell script itself specifies which shell to use, use it
    +let s:shebang = getline(1)
    +
    +if s:shebang =~ '^#!.\{-2,}\'
    +    " The binary is too ambiguous (i.e. '/bin/ksh' or some such).
    +    let b:is_kornshell = 1
    +    let b:generic_korn = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    " ksh93u+ (or 93u-) release (still much too common to encounter)
    +    let b:is_kornshell = 1
    +    let b:is_ksh93u = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    " ksh93v- alpha or beta
    +    let b:is_kornshell = 1
    +    let b:is_ksh93v = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    " Could be any ksh93 release
    +    let b:is_kornshell = 1
    +    let b:is_ksh93 = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    let b:is_kornshell = 1
    +    let b:is_ksh2020 = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    " The actual AT&T ksh88 and its feature set is assumed.
    +    let b:is_kornshell = 1
    +    let b:is_ksh88 = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    " MirBSD Korn Shell
    +    let b:is_kornshell = 1
    +    let b:is_mksh = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    let b:is_bash      = 1
    +elseif s:shebang =~ '^#!.\{-2,}\'
    +    let b:is_dash      = 1
    +" handling /bin/sh with is_kornshell/is_sh {{{1
    +" b:is_sh will be set when "#! /bin/sh" is found;
    +" However, it often is just a masquerade by bash (typically Linux)
    +" or kornshell (typically workstations with Posix "sh").
    +" So, when the user sets "g:is_kornshell", "g:is_bash",
    +" "g:is_posix" or "g:is_dash", a b:is_sh is converted into
    +" b:is_kornshell/b:is_bash/b:is_posix/b:is_dash, respectively.
    +elseif !exists("b:is_kornshell") && !exists("b:is_bash") && !exists("b:is_posix") && !exists("b:is_dash")
    +    if exists("g:is_kornshell")
    +        let b:is_kornshell= 1
    +        let b:generic_korn = 1
    +    elseif exists("g:is_bash")
    +        let b:is_bash= 1
    +    elseif exists("g:is_dash")
    +        let b:is_dash= 1
    +    elseif exists("g:is_posix")
    +        let b:is_posix= 1
    +    elseif exists("g:is_sh")
    +        let b:is_sh= 1
    +    else
    +        " user did not specify which shell to use, and
    +        " the script itself does not specify which shell to use. FYI: /bin/sh is ambiguous.
    +        " Assuming /bin/sh is executable, and if its a link, find out what it links to.
    +        let s:shell = ""
    +        if executable("/bin/sh")
    +            let s:shell = resolve("/bin/sh")
    +        elseif executable("/usr/bin/sh")
    +            let s:shell = resolve("/usr/bin/sh")
    +        endif
    +        if s:shell =~ '\'
    +            " The binary is too ambiguous (i.e. '/bin/ksh' or some such).
    +            let b:is_kornshell = 1
    +            let b:generic_korn = 1
    +        elseif s:shell =~ '\'
    +            " ksh93u+ (or 93u-) release (still much too common to encounter)
    +            let b:is_kornshell = 1
    +            let b:is_ksh93u = 1
    +        elseif s:shell =~ '\'
    +            " ksh93v- alpha or beta
    +            let b:is_kornshell = 1
    +            let b:is_ksh93v = 1
    +        elseif s:shell =~ '\'
    +            " Could be any ksh93 release
    +            let b:is_kornshell = 1
    +            let b:is_ksh93 = 1
    +        elseif s:shebang =~ '\'
    +            let b:is_kornshell = 1
    +            let b:is_ksh2020 = 1
    +        elseif s:shell =~ '\'
    +            " The actual AT&T ksh88 and its feature set is assumed.
    +            let b:is_kornshell = 1
    +            let b:is_ksh88 = 1
    +        elseif s:shell =~ '\'
    +            " MirBSD Korn Shell
    +            let b:is_kornshell = 1
    +            let b:is_mksh = 1
    +        elseif s:shell =~ '\'
    +            let b:is_bash = 1
    +        elseif s:shell =~ '\'
    +            let b:is_dash = 1
    +        else
    +            let b:is_posix = 1
    +        endif
    +        unlet s:shell
    +    endif
    +endif
    +
    +unlet s:shebang
    +
    +" if b:is_dash, set b:is_posix too
    +if exists("b:is_dash")
    +    let b:is_posix= 1
    +endif
    +
    +if exists("b:is_kornshell") || exists("b:is_bash")
    +    if exists("b:is_sh")
    +        unlet b:is_sh
    +    endif
    +endif
    +
    +" set up default g:sh_fold_enabled {{{1
    +" ================================
    +if !exists("g:sh_fold_enabled")
    +    let g:sh_fold_enabled= 0
    +elseif g:sh_fold_enabled != 0 && !has("folding")
    +    echomsg "Ignoring g:sh_fold_enabled=".g:sh_fold_enabled."; need to re-compile vim for +fold support"
    +    let g:sh_fold_enabled= 0
    +endif
    +let s:sh_fold_functions= and(g:sh_fold_enabled,1)
    +let s:sh_fold_heredoc  = and(g:sh_fold_enabled,2)
    +let s:sh_fold_ifdofor  = and(g:sh_fold_enabled,4)
    +if g:sh_fold_enabled && &fdm == "manual"
    +    " Given that	the	user provided g:sh_fold_enabled
    +    " 	AND	g:sh_fold_enabled is manual (usual default)
    +    " 	implies	a desire for syntax-based folding
    +    setl fdm=syntax
    +endif
    +
    +" set up the syntax-highlighting for iskeyword
    +if (v:version == 704 && has("patch-7.4.1142")) || v:version > 704
    +    if !exists("g:sh_syntax_isk") || (exists("g:sh_syntax_isk") && g:sh_syntax_isk)
    +        if exists("b:is_bash")
    +            exe "syn iskeyword ".&iskeyword.",-,:"
    +        elseif exists("b:is_kornshell") && !exists("b:is_ksh88") && !exists("b:is_mksh")
    +            exe "syn iskeyword ".&iskeyword.",-,."
    +        else
    +            exe "syn iskeyword ".&iskeyword.",-"
    +        endif
    +    endif
    +endif
    +
    +" Set up folding commands for shell {{{1
    +" =================================
    +if exists(":ShFoldFunctions") == 2
    +    delc ShFoldFunctions
    +endif
    +if exists(":ShFoldIfHereDoc") == 2
    +    delc ShFoldHereDoc
    +endif
    +if exists(":ShFoldIfDoFor") == 2
    +    delc ShFoldIfDoFor
    +endif
    +if s:sh_fold_functions
    +    com! -nargs=* ShFoldFunctions  fold
    +else
    +    com! -nargs=* ShFoldFunctions 
    +endif
    +if s:sh_fold_heredoc
    +    com! -nargs=* ShFoldHereDoc  fold
    +else
    +    com! -nargs=* ShFoldHereDoc 
    +endif
    +if s:sh_fold_ifdofor
    +    com! -nargs=* ShFoldIfDoFor  fold
    +else
    +    com! -nargs=* ShFoldIfDoFor 
    +endif
    +
    +" Generate bracket expression items {{{1
    +" =================================
    +" Note that the following function can be invoked as many times as necessary
    +" provided that these constraints hold for the passed dictionary argument:
    +" - every time a unique group-name value is assigned to the "itemGroup" key;
    +" - only ONCE either the "extraArgs" key is not entered or it is entered and
    +"   its value does not have "contained" among other optional arguments (":help
    +"   :syn-arguments").
    +fun! s:GenerateBracketExpressionItems(dict) abort
    +    let itemGroup = a:dict.itemGroup
    +    let bracketGroup = a:dict.bracketGroup
    +    let invGroup = itemGroup . 'Inv'
    +    let skipLeftBracketGroup = itemGroup . 'SkipLeftBracket'
    +    let skipRightBracketGroup = itemGroup . 'SkipRightBracket'
    +    let extraArgs = has_key(a:dict, 'extraArgs') ? a:dict.extraArgs : ''
    +
    +    " Make the leading "[!^]" stand out in a NON-matching expression.
    +    exec 'syn match ' . invGroup . ' contained "\[\@<=[!^]"'
    +
    +    " Set up indirections for unbalanced-bracket highlighting.
    +    exec 'syn region ' . skipRightBracketGroup . ' contained matchgroup=' . bracketGroup . ' start="\[\%([!^]\=\\\=\]\)\@=" matchgroup=shCollSymb end="\[\.[^]]\{-}\][^]]\{-}\.\]" matchgroup=' . itemGroup . ' end="\]" contains=@shBracketExprList,shDoubleQuote,' . invGroup
    +    exec 'syn region ' . skipLeftBracketGroup . ' contained matchgroup=' . bracketGroup . ' start="\[\%([!^]\=\\\=\]\)\@=" skip="[!^]\=\\\=\]\%(\[[^]]\+\]\|[^]]\)\{-}\%(\[[:.=]\@!\)\@=" matchgroup=' . itemGroup . ' end="\[[:.=]\@!" contains=@shBracketExprList,shDoubleQuote,' . invGroup
    +
    +    " Look for a general matching expression.
    +    exec 'syn region ' . itemGroup . ' matchgroup=' . bracketGroup . ' start="\[\S\@=" end="\]" contains=@shBracketExprList,shDoubleQuote ' . extraArgs
    +    " Look for a general NON-matching expression.
    +    exec 'syn region ' . itemGroup . ' matchgroup=' . bracketGroup . ' start="\[[!^]\@=" end="\]" contains=@shBracketExprList,shDoubleQuote,' . invGroup . ' ' . extraArgs
    +
    +    " Accommodate unbalanced brackets in bracket expressions.  The supported
    +    " syntax for a plain "]" can be: "[]ws]" and "[^]ws]"; or, "[ws[.xs]ys.]zs]"
    +    " and "[^ws[.xs]ys.]zs]"; see §9.3.5 RE Bracket Expression (in XBD).
    +    exec 'syn region ' . itemGroup . ' matchgroup=NONE start="\[[!^]\=\\\=\]" matchgroup=' . bracketGroup . ' end="\]" contains=@shBracketExprList,shDoubleQuote,' . skipRightBracketGroup . ' ' . extraArgs
    +    " Strive to handle "[]...[]" etc.
    +    exec 'syn region ' . itemGroup . ' matchgroup=NONE start="\[[!^]\=\\\=\]\%(\[[^]]\+\]\|[^]]\)\{-}\[[:.=]\@!" matchgroup=' . bracketGroup . ' end="\]" contains=@shBracketExprList,shDoubleQuote,' . skipLeftBracketGroup . ' ' . extraArgs
    +
    +    if !exists("g:skip_sh_syntax_inits")
    +        exec 'hi def link ' . skipLeftBracketGroup . ' ' . itemGroup
    +        exec 'hi def link ' . skipRightBracketGroup . ' ' . itemGroup
    +        exec 'hi def link ' . invGroup . ' Underlined'
    +    endif
    +endfun
    +
    +call s:GenerateBracketExpressionItems({'itemGroup': 'shBracketExpr', 'bracketGroup': 'shBracketExprDelim'})
    +
    +" sh syntax is case sensitive {{{1
    +syn case match
    +
    +" Clusters: contains=@... clusters {{{1
    +"==================================
    +syn cluster shErrorList	contains=shDoError,shIfError,shInError,shCaseError,shEsacError,shCurlyError,shParenError,shTestError,shOK
    +if exists("b:is_kornshell") || exists("b:is_bash")
    +    syn cluster ErrorList add=shDTestError
    +endif
    +syn cluster shArithParenList	contains=shArithmetic,shArithParen,shCaseEsac,shComment,shDeref,shDerefVarArray,shDo,shDerefSimple,shEcho,shEscape,shExpr,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shHereString,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement,shIf,shFor
    +syn cluster shArithList	contains=@shArithParenList,shParenError
    +syn cluster shBracketExprList	contains=shCharClassOther,shCharClass,shCollSymb,shEqClass
    +syn cluster shCaseEsacList	contains=shCaseStart,shCaseLabel,shCase,shCaseBar,shCaseIn,shComment,shDeref,shDerefSimple,shCaseCommandSub,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote,shCtrlSeq,@shErrorList,shStringSpecial,shCaseRange
    +syn cluster shCaseList	contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shCommandSubBQ,shSubshare,shValsub,shComment,shDblBrace,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shHereString,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq
    +if exists("b:is_kornshell") || exists("b:is_bash")
    +    syn cluster shCaseList	add=shForPP,shDblParen
    +endif
    +syn cluster shCommandSubList	contains=shAlias,shArithmetic,shBracketExpr,shCmdParenRegion,shCommandSub,shComment,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shHereDoc,shNumber,shOperator,shOption,shPosnParm,shHereString,shRedir,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable
    +syn cluster shCurlyList	contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial
    +" COMBAK: removing shEscape from shDblQuoteList fails ksh04:43 -- Jun 09, 2022: I don't see the problem with ksh04, so am reinstating shEscape
    +syn cluster shDblQuoteList	contains=shArithmetic,shCommandSub,shCommandSubBQ,shSubshare,shValsub,shDeref,shDerefSimple,shEscape,shPosnParm,shCtrlSeq,shSpecial,shSpecialDQ
    +syn cluster shDerefList	contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPSR,shDerefPPS
    +syn cluster shDerefVarList	contains=shDerefOffset,shDerefOp,shDerefVarArray,shDerefOpError
    +syn cluster shEchoList	contains=shArithmetic,shBracketExpr,shCommandSub,shCommandSubBQ,shDerefVarArray,shSubshare,shValsub,shDeref,shDerefSimple,shEscape,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq,shEchoQuote
    +syn cluster shExprList1	contains=shBracketExpr,shNumber,shOperator,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq
    +syn cluster shExprList2	contains=@shExprList1,@shCaseList,shTest
    +syn cluster shFunctionCmds	contains=shFor,shCaseEsac,shIf,shRepeat,shDblBrace,shDblParen
    +if exists("b:is_ksh88") || exists("b:is_mksh")
    +    " Offer "shFunctionCmds" as is.
    +elseif exists("b:is_kornshell") || exists("b:is_bash")
    +    syn cluster shFunctionCmds	add=shForPP
    +else
    +    syn cluster shFunctionCmds	remove=shDblBrace,shDblParen
    +endif
    +syn cluster shFunctionDefList	contains=shDoError,shIfError,shFunctionKey,shFunctionOne,shFunctionThree,shFunctionCmdOne
    +syn cluster shFunctionList	contains=shBracketExpr,@shCommandSubList,shCaseEsac,shColon,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shOption,shHereString,shRedir,shSetList,shSource,shStatement,shVariable,shOperator,shCtrlSeq,@shFunctionDefList
    +if exists("b:is_kornshell") || exists("b:is_bash")
    +    syn cluster shFunctionList	add=shRepeat,shDblBrace,shDblParen,shForPP
    +    syn cluster shDerefList	add=shCommandSubList,shEchoDeref
    +endif
    +syn cluster shHereBeginList	contains=@shCommandSubList
    +syn cluster shHereList	contains=shBeginHere,shHerePayload
    +syn cluster shHereListDQ	contains=shBeginHere,@shDblQuoteList,shHerePayload
    +syn cluster shIdList	contains=shArithmetic,shCommandSub,shCommandSubBQ,shDerefVarArray,shSubshare,shValsub,shWrapLineOperator,shSetOption,shComment,shDeref,shDerefSimple,shHereString,shNumber,shOperator,shRedir,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq,shStringSpecial,shAtExpr
    +syn cluster shIfList	contains=@shLoopList,shDblBrace,shDblParen,@shFunctionDefList
    +syn cluster shLoopList	contains=@shCaseList,@shErrorList,shCaseEsac,shConditional,shDblBrace,shExpr,shFor,shIf,shOption,shSet,shTest,shTestOpr,shTouch
    +if exists("b:is_kornshell") || exists("b:is_bash")
    +    syn cluster shLoopList	add=shForPP,shDblParen
    +endif
    +syn cluster shPPSLeftList	contains=shAlias,shArithmetic,shBracketExpr,shCmdParenRegion,shCommandSub,shSubshare,shValsub,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shHereDoc,shNumber,shOperator,shOption,shPosnParm,shHereString,shRedir,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable
    +syn cluster shPPSRightList	contains=shDeref,shDerefSimple,shEscape,shPosnParm
    +syn cluster shSubShList	contains=shBracketExpr,@shCommandSubList,shCommandSubBQ,shSubshare,shValsub,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shIf,shHereString,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq,shOperator
    +syn cluster shTestList	contains=shArithmetic,shBracketExpr,shCommandSub,shCommandSubBQ,shSubshare,shValsub,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shSpecialDQ,shExDoubleQuote,shExpr,shExSingleQuote,shNumber,shOperator,shSingleQuote,shTest,shTestOpr
    +syn cluster shNoZSList	contains=shSpecialNoZS
    +syn cluster shForList	contains=shTestOpr,shNumber,shDerefSimple,shDeref,shCommandSub,shCommandSubBQ,shSubshare,shValsub,shArithmetic
    +
    +" Echo: {{{1
    +" ====
    +" This one is needed INSIDE a CommandSub, so that `echo bla` be correct
    +if (exists("b:is_kornshell") && !exists("b:is_ksh88"))
    +    syn region shEcho matchgroup=shStatement start="\"  skip="\\$" matchgroup=shEchoDelim end="$" matchgroup=NONE end="[<>;&|()`}]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 end="\ze[ \t\n;]}" contains=@shEchoList skipwhite nextgroup=shQuickComment
    +    syn region shEcho matchgroup=shStatement start="\" skip="\\$" matchgroup=shEchoDelim end="$" matchgroup=NONE end="[<>;&|()`}]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 end="\ze[ \t\n;]}" contains=@shEchoList skipwhite nextgroup=shQuickComment
    +else
    +    syn region shEcho matchgroup=shStatement start="\"  skip="\\$" matchgroup=shEchoDelim end="$" matchgroup=NONE end="[<>;&|()`]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 contains=@shEchoList skipwhite nextgroup=shQuickComment
    +    syn region shEcho matchgroup=shStatement start="\" skip="\\$" matchgroup=shEchoDelim end="$" matchgroup=NONE end="[<>;&|()`]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 contains=@shEchoList skipwhite nextgroup=shQuickComment
    +endif
    +if exists("b:is_kornshell") || exists("b:is_bash") || exists("b:is_posix")
    +    syn region shEchoDeref contained matchgroup=shStatement start="\"  skip="\\$" matchgroup=shEchoDelim end="$" end="[<>;&|()`}]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 contains=@shEchoList skipwhite nextgroup=shQuickComment
    +    syn region shEchoDeref contained matchgroup=shStatement start="\" skip="\\$" matchgroup=shEchoDelim end="$" end="[<>;&|()`}]"me=e-1 end="\d[<>]"me=e-2 end="#"me=e-1 contains=@shEchoList skipwhite nextgroup=shQuickComment
    +endif
    +syn match  shEchoQuote contained	'\%(\\\\\)*\\["`'()]'
    +
    +" This must be after the strings, so that ... \" will be correct
    +syn region shEmbeddedEcho contained matchgroup=shStatement start="\" skip="\\$" matchgroup=shEchoDelim end="$" matchgroup=NONE end="[<>;&|`)]"me=e-1 end="\d[<>]"me=e-2 end="\s#"me=e-2 contains=shBracketExpr,shNumber,shExSingleQuote,shSingleQuote,shDeref,shDerefSimple,shSpecialVar,shOperator,shExDoubleQuote,shDoubleQuote,shCtrlSeq
    +
    +" Alias: {{{1
    +" =====
    +if exists("b:is_kornshell") || exists("b:is_bash") || exists("b:is_posix")
    +    syn match shStatement "\"
    +    syn region shAlias matchgroup=shStatement start="\\s\+\(\h[-._[:alnum:]]*\)\@="  skip="\\$" end="\>\|`"
    +    syn region shAlias matchgroup=shStatement start="\\s\+\(\h[-._[:alnum:]]*=\)\@=" skip="\\$" end="="
    +
    +    " Touch: {{{1
    +    " =====
    +    syn match shTouch	'\[^;#]*'	skipwhite nextgroup=shComment contains=shTouchCmd,shDoubleQuote,shSingleQuote,shDeref,shDerefSimple
    +    syn match shTouchCmd	'\'		contained
    +endif
    +
    +" Error Codes: {{{1
    +" ============
    +if !exists("g:sh_no_error")
    +    syn match   shDoError "\"
    +    syn match   shIfError "\"
    +    syn match   shInError "\"
    +    syn match   shCaseError ";;"
    +    syn match   shEsacError "\"
    +    syn match   shCurlyError "}"
    +    syn match   shParenError ")"
    +    syn match   shOK	'\.\(done\|fi\|in\|esac\)'
    +    if exists("b:is_kornshell") || exists("b:is_bash")
    +        syn match     shDTestError "]]"
    +    endif
    +    syn match     shTestError "]"
    +endif
    +
    +" Options: {{{1
    +" ====================
    +syn match   shOption	"\s\zs[-+][-_a-zA-Z#@0-9]\+"
    +syn match   shOption	"\s\zs--[^ \t$=`'"|);]\+"
    +
    +" File Redirection Highlighted As Operators: {{{1
    +"===========================================
    +syn match      shRedir	"\d\=>\(&[-0-9]\)\="
    +syn match      shRedir	"\d\=>>-\="
    +syn match      shRedir	"\d\=<\(&[-0-9]\)\="
    +syn match      shRedir	"\d<<-\="
    +
    +" Operators: {{{1
    +" ==========
    +syn match   shOperator	"<<\|>>"		contained
    +syn match   shOperator	"[!&;|]"		contained
    +syn match   shOperator	"[-=/*+%]\=="		skipwhite nextgroup=shPattern
    +syn match   shPattern	"\<\S\+\())\)\@="	contained contains=shExSingleQuote,shSingleQuote,shExDoubleQuote,shDoubleQuote,shDeref
    +
    +" Subshells: {{{1
    +" ==========
    +syn region shExpr  transparent matchgroup=shExprRegion  start="{" end="}"		contains=@shExprList2 nextgroup=shSpecialNxt
    +syn region shSubSh transparent matchgroup=shSubShRegion start="[^(]\zs(" end=")"	contains=@shSubShList nextgroup=shSpecialNxt
    +
    +" Tests: {{{1
    +"=======
    +syn region shExpr	matchgroup=shRange start="\[\s\@=" skip=+\\\\\|\\$\|\[+ end="\]" contains=@shTestList,shSpecial
    +syn region shTest	transparent matchgroup=shStatement start="\+ end="\<;\_s*then\>" end="\"	contains=@shIfList
    +ShFoldIfDoFor syn region shFor		matchgroup=shLoop start="\#\="
    +syn match   shNumber	"\<-\=\.\=\d\+\>#\="
    +syn match   shCtrlSeq	"\\\d\d\d\|\\[abcfnrtv0]"			contained
    +if exists("b:is_bash") || exists("b:is_kornshell")
    +    syn match   shSpecial	"[^\\]\(\\\\\)*\zs\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[abefnrtv]"	contained
    +    syn match   shSpecial	"^\(\\\\\)*\zs\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[abefnrtv]"	contained
    +    syn region  shExSingleQuote	matchgroup=shQuote start=+\$'+ skip=+\\\\\|\\.+ end=+'+	contains=shStringSpecial,shSpecial		nextgroup=shSpecialNxt
    +    syn region  shExDoubleQuote	matchgroup=shQuote start=+\$"+ skip=+\\\\\|\\.\|\\"+ end=+"+	contains=@shDblQuoteList,shStringSpecial,shSpecial	nextgroup=shSpecialNxt
    +elseif !exists("g:sh_no_error")
    +    syn region  shExSingleQuote	matchGroup=Error start=+\$'+ skip=+\\\\\|\\.+ end=+'+	contains=shStringSpecial
    +    syn region  shExDoubleQuote	matchGroup=Error start=+\$"+ skip=+\\\\\|\\.+ end=+"+	contains=shStringSpecial
    +endif
    +syn region  shSingleQuote	matchgroup=shQuote start=+'+ end=+'+		contains=@Spell	nextgroup=shSpecialStart,shSpecialSQ
    +syn region  shDoubleQuote	matchgroup=shQuote start=+\%(\%(\\\\\)*\\\)\@"
    +else
    +    syn keyword	shTodo	contained		COMBAK FIXME TODO XXX
    +endif
    +syn match	shComment		"^\s*\zs#.*$"	contains=@shCommentGroup
    +syn match	shComment		"\s\zs#.*$"	contains=@shCommentGroup
    +syn match	shComment	contained	"#.*$"	contains=@shCommentGroup
    +syn match	shQuickComment	contained	"#.*$"          contains=@shCommentGroup
    +syn match	shBQComment	contained	"#.\{-}\ze`"	contains=@shCommentGroup
    +
    +" Here Documents: {{{1
    +"  (modified by Felipe Contreras)
    +" =========================================
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 start="<<\s*\z([^ \t|>]\+\)"		matchgroup=shHereDoc01 end="^\z1$"	contains=@shDblQuoteList
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 start="<<-\s*\z([^ \t|>]\+\)"		matchgroup=shHereDoc02 end="^\t*\z1$"	contains=@shDblQuoteList
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<\s*\\\z([^ \t|>]\+\)"		matchgroup=shHereDoc03 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 start="<<-\s*\\\z([^ \t|>]\+\)"		matchgroup=shHereDoc04 end="^\t*\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 start="<<\s*'\z([^']\+\)'"		matchgroup=shHereDoc05 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 start="<<-\s*'\z([^']\+\)'"		matchgroup=shHereDoc06 end="^\t*\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 start="<<\s*\"\z([^"]\+\)\""		matchgroup=shHereDoc07 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 start="<<-\s*\"\z([^"]\+\)\""		matchgroup=shHereDoc08 end="^\t*\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 start="<<\s*\\\_$\_s*\z([^ \t|>]\+\)"		matchgroup=shHereDoc09 end="^\z1$"	contains=@shDblQuoteList
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 start="<<-\s*\\\_$\_s*\z([^ \t|>]\+\)"	matchgroup=shHereDoc10 end="^\t*\z1$"	contains=@shDblQuoteList
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 start="<<\s*\\\_$\_s*\\\z([^ \t|>]\+\)"	matchgroup=shHereDoc11 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)"	matchgroup=shHereDoc12 end="^\t*\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 start="<<\s*\\\_$\_s*'\z([^']\+\)'"		matchgroup=shHereDoc13 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<-\s*\\\_$\_s*'\z([^']\+\)'"		matchgroup=shHereDoc14 end="^\t*\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<\s*\\\_$\_s*\"\z([^"]\+\)\""		matchgroup=shHereDoc15 end="^\z1$"
    +ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc16 start="<<-\s*\\\_$\_s*\"\z([^"]\+\)\""	matchgroup=shHereDoc16 end="^\t*\z1$"
    +
    +
    +" Here Strings: {{{1
    +" =============
    +" available for: bash and ksh (except ksh88) but not if its a posix
    +if exists("b:is_bash") || ((exists("b:is_kornshell") && !exists("b:is_ksh88")) && !exists("b:is_posix"))
    +    syn match shHereString "<<<"	skipwhite	nextgroup=shCmdParenRegion
    +endif
    +
    +" Identifiers: {{{1
    +"=============
    +syn match  shSetOption	"\s\zs[-+][a-zA-Z0-9]\+\>"	contained
    +syn match  shVariable	"\<\h\w*\ze="			nextgroup=shVarAssign
    +if exists("b:is_bash")
    +    " The subscript form for array values, e.g. "foo=([2]=10 [4]=100)".
    +    syn region  shArrayValue	contained	start="\[\%(..\{-}\]=\)\@=" end="\]=\@="	contains=@shArrayValueList nextgroup=shVarAssign
    +    syn cluster shArrayValueList	contains=shArithmetic,shArithParen,shCommandSub,shDeref,shDerefSimple,shExpr,shNumber,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shSpecial,shParen,bashSpecialVariables,shParenError
    +    syn region  shArrayRegion	contained matchgroup=shShellVariables start="(" skip='\\\\\|\\.' end=")" contains=@shArrayValueList,shArrayValue,shComment
    +elseif (exists("b:is_kornshell") && !exists("b:is_ksh88"))
    +    " The subscript form for array values, e.g. "foo=([2]=10 [4]=100)".
    +    syn region  shArrayValue	contained	start="\[\%(..\{-}\]=\)\@=" end="\]=\@="	contains=@shArrayValueList nextgroup=shVarAssign
    +    syn cluster shArrayValueList	contains=shArithmetic,shArithParen,shCommandSub,shDeref,shDerefSimple,shExpr,shNumber,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shSpecial,shParen,kshSpecialVariables,shParenError
    +    syn region  shArrayRegion	contained matchgroup=shShellVariables start="(" skip='\\\\\|\\.' end=")" contains=@shArrayValueList,shArrayValue,shComment,shArrayRegion
    +endif
    +if exists("b:is_bash") || exists("b:is_kornshell")
    +    syn match shVariable	"\<\h\w*\%(\[..\{-}\]\)\=\ze\%([|^&*/%+-]\|[<^]<\|[>^]>\)\=="	contains=shDerefVarArray nextgroup=shVarAssign
    +    syn match shVarAssign	contained	"\%([|^&*/%+-]\|[<^]<\|[>^]>\)\=="	nextgroup=shArrayRegion,shPattern,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shSingleQuote,shExSingleQuote,shVar
    +else
    +    syn match  shVarAssign	contained	"="	nextgroup=shPattern,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shSingleQuote,shExSingleQuote,shVar
    +endif
    +syn match  shVar	contained	"\h\w*"
    +syn region shAtExpr	contained	start="@(" end=")" contains=@shIdList
    +if exists("b:is_bash")
    +    syn match  shSet "^\s*set\ze\s\+$"
    +    syn region shSetList oneline matchgroup=shSet start="\<\%(declare\|local\|export\)\>\ze[/a-zA-Z_]\@!" end="$"		matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+#\|="	contains=@shIdList
    +    syn region shSetList oneline matchgroup=shSet start="\<\%(set\|unset\)\>[/a-zA-Z_]\@!" end="\ze[;|#)]\|$"		matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+="	contains=@shIdList nextgroup=shComment
    +elseif exists("b:is_kornshell") || exists("b:is_posix")
    +    syn match  shSet "^\s*set\ze\s\+$"
    +    if exists("b:is_dash")
    +        syn region shSetList oneline matchgroup=shSet start="\<\%(local\)\>\ze[/]\@!" end="$"			matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]"	contains=@shIdList
    +        syn keyword shStatement chdir
    +    endif
    +    syn region shSetList oneline matchgroup=shSet start="\<\(export\)\>\ze[/]\@!" end="$"			matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]"	contains=@shIdList
    +    syn region shSetList oneline matchgroup=shSet start="\<\%(set\|unset\>\)\ze[/a-zA-Z_]\@!" end="\ze[;|#)]\|$"		matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]"	contains=@shIdList nextgroup=shComment
    +else
    +    syn region shSetList oneline matchgroup=shSet start="\<\(set\|export\|unset\)\>\ze[/a-zA-Z_]\@!" end="\ze[;|#)]\|$"	matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]"	contains=@shIdList
    +endif
    +
    +" KornShell namespace: {{{1
    +if exists("b:is_kornshell") && !exists("b:is_ksh88") && !exists("b:is_mksh")
    +    syn keyword shFunctionKey namespace	skipwhite skipnl nextgroup=shNamespaceOne
    +endif
    +
    +" Functions: {{{1
    +if !exists("b:is_posix")
    +    syn keyword shFunctionKey function	skipwhite skipnl nextgroup=shDoError,shIfError,shFunctionTwo,shFunctionFour,shFunctionCmdTwo
    +endif
    +
    +ShFoldFunctions syn region shFunctionExpr	matchgroup=shFunctionExprRegion start="{"	end="}"	contains=@shFunctionList	 contained skipwhite skipnl nextgroup=shQuickComment
    +ShFoldFunctions syn region shFunctionSubSh	matchgroup=shFunctionSubShRegion start="("	end=")"	contains=@shFunctionList	 contained skipwhite skipnl nextgroup=shQuickComment
    +
    +if exists("b:is_bash")
    +    syn keyword shFunctionKey coproc
    +    syn match shFunctionCmdOne	"\%#=1^\s*\zs\%(\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\)\@>\s*()\ze\_s*\%(\%(for\|case\|select\|if\|while\|until\)\>\|\[\[\s\|((\)"	skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionCmdTwo	"\%#=1\%(\%(\<\k\+\>\|[^()<>|&$;\t ]\+\)\+\)\@>\ze\s*\%(()\ze\)\=\_s*\%(\<\%(for\|case\|select\|if\|while\|until\)\>\|\[\[\s\|((\)"	contained skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionOne	"\%#=1^\s*\zs\%(\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\)\@>\s*()\ze\_s*{"	skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionTwo	"\%#=1\%(\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\)\@>\ze\s*\%(()\ze\)\=\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionThree	"\%#=1^\s*\zs\%(\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\)\@>\s*()\ze\_s*((\@!"	skipwhite skipnl nextgroup=shFunctionSubSh
    +    syn match shFunctionFour	"\%#=1\%(\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\)\@>\ze\s*\%(\%(()\ze\)\=\)\@>\_s*((\@!"	contained skipwhite skipnl nextgroup=shFunctionSubSh
    +elseif exists("b:is_ksh88")
    +    " AT&T ksh88
    +    syn match shFunctionCmdOne	"^\s*\zs\h\w*\s*()\ze\_s*\%(\%(for\|case\|select\|if\|while\|until\)\>\|\[\[\s\|((\)"	skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionOne	"^\s*\zs\h\w*\s*()\ze\_s*{"	skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionTwo	"\<\h\w*\>\ze\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionThree	"^\s*\zs\h\w*\s*()\ze\_s*((\@!"	skipwhite skipnl nextgroup=shFunctionSubSh
    +elseif exists("b:is_mksh")
    +    " MirBSD ksh is the wild west of absurd and abstruse function names...
    +    syn match shFunctionCmdOne	"^\s*\zs[-A-Za-z_@!+.%,0-9:]*[-A-Za-z_.%,0-9:]\s*()\ze\_s*\%(\%(for\|case\|select\|if\|while\|until\)\>\|\[\[\s\|((\)"	skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionOne	"^\s*\zs[-A-Za-z_@!+.%,0-9:]*[-A-Za-z_.%,0-9:]\s*()\ze\_s*{"	skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionTwo	"\%#=1\%(\%(\<\w\+\|[@!+.%,:-]\+\)*[-A-Za-z_.%,0-9:]\)\@>\ze\s*\%(()\ze\)\=\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionThree	"^\s*\zs[-A-Za-z_@!+.%,0-9:]*[-A-Za-z_.%,0-9:]\s*()\ze\_s*((\@!"	skipwhite skipnl nextgroup=shFunctionSubSh
    +elseif exists("b:is_kornshell")
    +    " ksh93
    +    syn match shFunctionCmdOne	"^\s*\zs[A-Za-z_.][A-Za-z_.0-9]*\s*()\ze\_s*\%(\%(for\|case\|select\|if\|while\|until\)\>\|\[\[\s\|((\)"	skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionOne	"^\s*\zs[A-Za-z_.][A-Za-z_.0-9]*\s*()\ze\_s*{"	skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionTwo	"\%(\<\h\+\|\.\)[A-Za-z_.0-9]*\ze\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionThree	"^\s*\zs[A-Za-z_.][A-Za-z_.0-9]*\s*()\ze\_s*((\@!"	skipwhite skipnl nextgroup=shFunctionSubSh
    +    syn match shNamespaceOne	"\<\h\w*\>\ze\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +else
    +    syn match shFunctionCmdOne	"^\s*\zs\h\w*\s*()\ze\_s*\%(for\|case\|if\|while\|until\)\>"	skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionCmdTwo	"\<\h\w*\s*()\ze\_s*\%(for\|case\|if\|while\|until\)\>"	contained skipwhite skipnl nextgroup=@shFunctionCmds
    +    syn match shFunctionOne	"^\s*\zs\h\w*\s*()\ze\_s*{"	skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionTwo	"\<\h\w*\>\s*()\ze\_s*{"	contained skipwhite skipnl nextgroup=shFunctionExpr
    +    syn match shFunctionThree	"^\s*\zs\h\w*\s*()\ze\_s*("	skipwhite skipnl nextgroup=shFunctionSubSh
    +    syn match shFunctionFour	"\<\h\w*\>\s*()\ze\_s*("	contained skipwhite skipnl nextgroup=shFunctionSubSh
    +endif
    +
    +if !exists("g:sh_no_error")
    +    syn match   shDoError "\"
    +syn sync match shCaseEsacSync	groupthere	shCaseEsac	"\"
    +syn sync match shDoSync	grouphere	shDo	"\"
    +syn sync match shDoSync	groupthere	shDo	"\"
    +syn sync match shForSync	grouphere	shFor	"\"
    +syn sync match shForSync	groupthere	shFor	"\"
    +syn sync match shIfSync	grouphere	shIf	"\"
    +syn sync match shIfSync	groupthere	shIf	"\"
    +syn sync match shUntilSync	grouphere	shRepeat	"\"
    +syn sync match shWhileSync	grouphere	shRepeat	"\"
    +
    +" Default Highlighting: {{{1
    +" =====================
    +if !exists("skip_sh_syntax_inits")
    +    hi def link shArithRegion	shShellVariables
    +    hi def link shArrayValue	shDeref
    +    hi def link shAstQuote	shDoubleQuote
    +    hi def link shAtExpr	shSetList
    +    hi def link shBkslshSnglQuote	shSingleQuote
    +    hi def link shBkslshDblQuote	shDOubleQuote
    +    hi def link shBeginHere	shRedir
    +    hi def link shCaseBar	shConditional
    +    hi def link shCaseCommandSub	shCommandSub
    +    hi def link shCaseDoubleQuote	shDoubleQuote
    +    hi def link shCaseIn	shConditional
    +    hi def link shQuote	shOperator
    +    hi def link shCaseSingleQuote	shSingleQuote
    +    hi def link shCaseStart	shConditional
    +    hi def link shCmdSubRegion	shShellVariables
    +    hi def link shColon	shComment
    +    hi def link shDerefOp	shOperator
    +    hi def link shDerefPOL	shDerefOp
    +    hi def link shDerefPPS	shDerefOp
    +    hi def link shDerefPSR	shDerefOp
    +    hi def link shDeref	shShellVariables
    +    hi def link shDerefDelim	shOperator
    +    hi def link shDerefSimple	shDeref
    +    hi def link shDerefSpecial	shDeref
    +    hi def link shDerefString	shDoubleQuote
    +    hi def link shDerefVar	shDeref
    +    hi def link shDoubleQuote	shString
    +    hi def link shEcho	shString
    +    hi def link shEchoDelim	shOperator
    +    hi def link shEchoQuote	shString
    +    hi def link shForPP	shLoop
    +    hi def link shEmbeddedEcho	shString
    +    hi def link shEscape	shCommandSub
    +    hi def link shExDoubleQuote	shDoubleQuote
    +    hi def link shExSingleQuote	shSingleQuote
    +    hi def link shHereDoc	shString
    +    hi def link shHereString	shRedir
    +    hi def link shHerePayload	shHereDoc
    +    hi def link shLoop	shStatement
    +    hi def link shSpecialNxt	shSpecial
    +    hi def link shNoQuote	shDoubleQuote
    +    hi def link shOption	shCommandSub
    +    hi def link shPattern	shString
    +    hi def link shParen	shArithmetic
    +    hi def link shPosnParm	shShellVariables
    +    hi def link shQuickComment	shComment
    +    hi def link shBQComment	shComment
    +    hi def link shRange	shOperator
    +    hi def link shRedir	shOperator
    +    hi def link shSetListDelim	shOperator
    +    hi def link shSetOption	shOption
    +    hi def link shSingleQuote	shString
    +    hi def link shSource	shOperator
    +    hi def link shStringSpecial	shSpecial
    +    hi def link shSpecialStart	shSpecial
    +    hi def link shSubShRegion	shOperator
    +    hi def link shTestOpr	shConditional
    +    hi def link shTestPattern	shString
    +    hi def link shTestDoubleQuote	shString
    +    hi def link shTestSingleQuote	shString
    +    hi def link shTouchCmd	shStatement
    +    hi def link shVariable	shSetList
    +    hi def link shWrapLineOperator	shOperator
    +
    +    if exists("b:is_bash")
    +        hi def link bashAdminStatement	shStatement
    +        hi def link bashSpecialVariables	shShellVariables
    +        hi def link bashStatement		shStatement
    +        hi def link shCharClass		shSpecial
    +        hi def link shDerefOffset		shDerefOp
    +        hi def link shDerefLen		shDerefOffset
    +    endif
    +    if exists("b:is_kornshell") || exists("b:is_posix")
    +        hi def link kshSpecialVariables	shShellVariables
    +        hi def link kshStatement		shStatement
    +    endif
    +
    +    if !exists("g:sh_no_error")
    +        hi def link shCaseError		Error
    +        hi def link shCondError		Error
    +        hi def link shCurlyError		Error
    +        hi def link shDerefOpError		Error
    +        hi def link shDerefWordError		Error
    +        hi def link shDoError		Error
    +        hi def link shEsacError		Error
    +        hi def link shIfError		Error
    +        hi def link shInError		Error
    +        hi def link shParenError		Error
    +        hi def link shTestError		Error
    +        if exists("b:is_kornshell") || exists("b:is_posix")
    +            hi def link shDTestError		Error
    +        endif
    +    endif
    +
    +    hi def link shArithmetic		Special
    +    hi def link shBracketExprDelim		Delimiter
    +    hi def link shCharClass		Identifier
    +    hi def link shCollSymb		shCharClass
    +    hi def link shEqClass		shCharClass
    +    hi def link shSnglCase		Statement
    +    hi def link shCommandSub		Special
    +    hi def link shCommandSubBQ		shCommandSub
    +    hi def link shSubshare		shCommandSub
    +    hi def link shValsub		shCommandSub
    +    hi def link shComment		Comment
    +    hi def link shConditional		Conditional
    +    hi def link shCtrlSeq		Special
    +    hi def link shExprRegion		Delimiter
    +    hi def link shFunctionKey		Keyword
    +    hi def link shFunctionOne		Function
    +    hi def link shFunctionTwo		shFunctionOne
    +    hi def link shFunctionThree		shFunctionOne
    +    hi def link shFunctionFour		shFunctionOne
    +    hi def link shFunctionCmdOne	shFunctionOne
    +    hi def link shFunctionCmdTwo	shFunctionOne
    +    hi def link shFunctionExprRegion	shExprRegion
    +    hi def link shFunctionSubShRegion	shSubShRegion
    +    hi def link shNamespaceOne		Function
    +    hi def link shNumber		Number
    +    hi def link shOperator		Operator
    +    hi def link shRepeat		Repeat
    +    hi def link shSet		Statement
    +    hi def link shSetList		Identifier
    +    hi def link shShellVariables		PreProc
    +    hi def link shSpecial		Special
    +    hi def link shSpecialDQ		Special
    +    hi def link shSpecialSQ		Special
    +    hi def link shSpecialNoZS		shSpecial
    +    hi def link shStatement		Statement
    +    hi def link shString		String
    +    hi def link shTodo		Todo
    +    hi def link shAlias		Identifier
    +    hi def link shHereDoc01		shRedir
    +    hi def link shHereDoc02		shRedir
    +    hi def link shHereDoc03		shRedir
    +    hi def link shHereDoc04		shRedir
    +    hi def link shHereDoc05		shRedir
    +    hi def link shHereDoc06		shRedir
    +    hi def link shHereDoc07		shRedir
    +    hi def link shHereDoc08		shRedir
    +    hi def link shHereDoc09		shRedir
    +    hi def link shHereDoc10		shRedir
    +    hi def link shHereDoc11		shRedir
    +    hi def link shHereDoc12		shRedir
    +    hi def link shHereDoc13		shRedir
    +    hi def link shHereDoc14		shRedir
    +    hi def link shHereDoc15		shRedir
    +    hi def link shHereDoc16		shRedir
    +endif
    +
    +" Delete shell folding commands {{{1
    +" =============================
    +delc ShFoldFunctions
    +delc ShFoldHereDoc
    +delc ShFoldIfDoFor
    +
    +" Delete the bracket expression function {{{1
    +" ======================================
    +delfun s:GenerateBracketExpressionItems
    +
    +" Set Current Syntax: {{{1
    +" ===================
    +if exists("b:is_bash")
    +    let b:current_syntax = "bash"
    +elseif exists("b:is_kornshell")
    +    let b:current_syntax = "ksh"
    +elseif exists("b:is_posix")
    +    let b:current_syntax = "posix"
    +else
    +    let b:current_syntax = "sh"
    +endif
    +
    +" vim: ts=16 fdm=marker
    diff --git a/git/usr/share/vim/vim92/syntax/shaderslang.vim b/git/usr/share/vim/vim92/syntax/shaderslang.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..1cae202b043124abbe8eb76db2d7994063b0d28c
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shaderslang.vim
    @@ -0,0 +1,360 @@
    +" Vim syntax file
    +" Language:     Slang
    +" Maintainer:	Austin Shijo 
    +" Last Change:	2024 Jan 05
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" Read the C syntax to start with
    +runtime! syntax/c.vim
    +unlet b:current_syntax
    +
    +" Annotations
    +syn match           shaderslangAnnotation          /<.*;>/
    +
    +" Attributes
    +syn match           shaderslangAttribute           /^\s*\[maxvertexcount(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[domain(\s*"\(tri\|quad\|isoline\)"\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[earlydepthstencil\]/
    +syn match           shaderslangAttribute           /^\s*\[instance(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[maxtessfactor(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[numthreads(\s*\w\+\s*,\s*\w\+\s*,\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[outputcontrolpoints(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[outputtopology(\s*"\(point\|line\|triangle_cw\|triangle_ccw\|triangle\)"\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[partitioning(\s*"\(integer\|fractional_even\|fractional_odd\|pow2\)"\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[patchconstantfunc(\s*"\(\d\|\w\|_\)\+"\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[WaveSize(\s*\w\+\(\s*,\s*\w\+\(\s*,\s*\w\+\)\?\)\?\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[shader(\s*"\(anyhit\|callable\|closesthit\|intersection\|miss\|raygeneration\)"\s*)\]/
    +
    +syn match           shaderslangAttribute           /^\s*\[fastopt\]/
    +syn match           shaderslangAttribute           /^\s*\[loop\]/
    +syn match           shaderslangAttribute           /^\s*\[unroll\]/
    +syn match           shaderslangAttribute           /^\s*\[allow_uav_condition\]/
    +syn match           shaderslangAttribute           /^\s*\[branch\]/
    +syn match           shaderslangAttribute           /^\s*\[flatten\]/
    +syn match           shaderslangAttribute           /^\s*\[forcecase\]/
    +syn match           shaderslangAttribute           /^\s*\[call\]/
    +syn match           shaderslangAttribute           /^\s*\[WaveOpsIncludeHelperLanes\]/
    +
    +syn match           shaderslangAttribute           /\[raypayload\]/
    +
    +" Work graph shader target attributes
    +syn match           shaderslangAttribute           /^\s*\[Shader(\s*"\(\d\|\w\|_\)\+"\s*)\]/
    +
    +" Work graph shader function attributes
    +syn match           shaderslangAttribute           /^\s*\[NodeLaunch(\s*"\(broadcasting\|coalescing\|thread\)"\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeIsProgramEntry\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeLocalRootArgumentsTableIndex(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NumThreads(\s*\w\+\s*,\s*\w\+\s*,\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeShareInputOf(\s*"\w\+"\(\s*,\s*\w\+\)\?\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeDispatchGrid(\s*\w\+\s*,\s*\w\+\s*,\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeMaxDispatchGrid(\s*\w\+\s*,\s*\w\+\s*,\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeMaxRecursionDepth(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /^\s*\[NodeMaxInputRecordsPerGraphEntryRecord(\s*\w\+\s*,\s*\(true\|false\)\s*)\]/
    +
    +" Work graph record attributes
    +syn match           shaderslangAttribute           /\[NodeTrackRWInputSharing\]/
    +syn match           shaderslangAttribute           /\[MaxRecords(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /\[NodeID(\s*"\w\+"\(\s*,\s*\w\+\)\?\s*)\]/
    +syn match           shaderslangAttribute           /\[MaxRecordsSharedWith(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /\[AllowSparseNodes\]/
    +syn match           shaderslangAttribute           /\[NodeArraySize(\s*\w\+\s*)\]/
    +syn match           shaderslangAttribute           /\[UnboundedSparseNodes\]/
    +
    +" Intrinsic functions
    +syn keyword         shaderslangFunc                abs acos acosh asin asinh atan atanh cos cosh exp exp2 floor log log10 log2 round rsqrt sin sincos sinh sqrt tan tanh trunc
    +syn keyword         shaderslangFunc                AllMemoryBarrier AllMemoryBarrierWithGroupSync DeviceMemoryBarrier DeviceMemoryBarrierWithGroupSync GroupMemoryBarrier GroupMemoryBarrierWithGroupSync
    +syn keyword         shaderslangFunc                abort clip errorf printf
    +syn keyword         shaderslangFunc                all any countbits faceforward firstbithigh firstbitlow isfinite isinf isnan max min noise pow reversebits sign
    +syn keyword         shaderslangFunc                asdouble asfloat asint asuint D3DCOLORtoUBYTE4 f16tof32 f32tof16
    +syn keyword         shaderslangFunc                ceil clamp degrees fma fmod frac frexp ldexp lerp mad modf radiants saturate smoothstep step
    +syn keyword         shaderslangFunc                cross determinant distance dot dst length lit msad4 mul normalize rcp reflect refract transpose
    +syn keyword         shaderslangFunc                ddx ddx_coarse ddx_fine ddy ddy_coarse ddy_fine fwidth
    +syn keyword         shaderslangFunc                EvaluateAttributeAtCentroid EvaluateAttributeAtSample EvaluateAttributeSnapped
    +syn keyword         shaderslangFunc                GetRenderTargetSampleCount GetRenderTargetSamplePosition
    +syn keyword         shaderslangFunc                InterlockedAdd InterlockedAnd InterlockedCompareExchange InterlockedCompareStore InterlockedExchange InterlockedMax InterlockedMin InterlockedOr InterlockedXor
    +syn keyword         shaderslangFunc                InterlockedCompareStoreFloatBitwise InterlockedCompareExchangeFloatBitwise
    +syn keyword         shaderslangFunc                Process2DQuadTessFactorsAvg Process2DQuadTessFactorsMax Process2DQuadTessFactorsMin ProcessIsolineTessFactors
    +syn keyword         shaderslangFunc                ProcessQuadTessFactorsAvg ProcessQuadTessFactorsMax ProcessQuadTessFactorsMin ProcessTriTessFactorsAvg ProcessTriTessFactorsMax ProcessTriTessFactorsMin
    +syn keyword         shaderslangFunc                tex1D tex1Dbias tex1Dgrad tex1Dlod tex1Dproj
    +syn keyword         shaderslangFunc                tex2D tex2Dbias tex2Dgrad tex2Dlod tex2Dproj
    +syn keyword         shaderslangFunc                tex3D tex3Dbias tex3Dgrad tex3Dlod tex3Dproj
    +syn keyword         shaderslangFunc                texCUBE texCUBEbias texCUBEgrad texCUBElod texCUBEproj
    +syn keyword         shaderslangFunc                WaveIsFirstLane WaveGetLaneCount WaveGetLaneIndex
    +syn keyword         shaderslangFunc                IsHelperLane
    +syn keyword         shaderslangFunc                WaveActiveAnyTrue WaveActiveAllTrue WaveActiveBallot
    +syn keyword         shaderslangFunc                WaveReadLaneFirst WaveReadLaneAt
    +syn keyword         shaderslangFunc                WaveActiveAllEqual WaveActiveAllEqualBool WaveActiveCountBits
    +syn keyword         shaderslangFunc                WaveActiveSum WaveActiveProduct WaveActiveBitAnd WaveActiveBitOr WaveActiveBitXor WaveActiveMin WaveActiveMax
    +syn keyword         shaderslangFunc                WavePrefixCountBits WavePrefixProduct WavePrefixSum
    +syn keyword         shaderslangFunc                QuadReadAcrossX QuadReadAcrossY QuadReadAcrossDiagonal QuadReadLaneAt
    +syn keyword         shaderslangFunc                QuadAny QuadAll
    +syn keyword         shaderslangFunc                WaveMatch WaveMultiPrefixSum WaveMultiPrefixProduct WaveMultiPrefixCountBits WaveMultiPrefixAnd WaveMultiPrefixOr WaveMultiPrefixXor
    +syn keyword         shaderslangFunc                NonUniformResourceIndex
    +syn keyword         shaderslangFunc                DispatchMesh SetMeshOutputCounts
    +syn keyword         shaderslangFunc                dot4add_u8packed dot4add_i8packed dot2add
    +
    +syn keyword         shaderslangFunc                RestartStrip
    +syn keyword         shaderslangFunc                CalculateLevelOfDetail CalculateLevelOfDetailUnclamped Gather GetDimensions GetSamplePosition Load Sample SampleBias SampleCmp SampleCmpLevelZero SampleGrad SampleLevel GatherRaw SampleCmpLevel
    +syn keyword         shaderslangFunc                SampleCmpBias SampleCmpGrad
    +syn keyword         shaderslangFunc                WriteSamplerFeedback WriteSamplerFeedbackBias WriteSamplerFeedbackGrad WriteSamplerFeedbackLevel
    +syn keyword         shaderslangFunc                Append Consume DecrementCounter IncrementCounter
    +syn keyword         shaderslangFunc                Load2 Load3 Load4 Store Store2 Store3 Store4
    +syn keyword         shaderslangFunc                GatherRed GatherGreen GatherBlue GatherAlpha GatherCmp GatherCmpRed GatherCmpGreen GatherCmpBlue GatherCmpAlpha
    +syn match           shaderslangFunc                /\.mips\[\d\+\]\[\d\+\]/
    +syn match           shaderslangFunc                /\.sample\[\d\+\]\[\d\+\]/
    +
    +" Ray intrinsics
    +syn keyword         shaderslangFunc                AcceptHitAndEndSearch CallShader IgnoreHit ReportHit TraceRay
    +syn keyword         shaderslangFunc                DispatchRaysIndex DispatchRaysDimensions
    +syn keyword         shaderslangFunc                WorldRayOrigin WorldRayDirection RayTMin RayTCurrent RayFlags
    +syn keyword         shaderslangFunc                InstanceIndex InstanceID GeometryIndex PrimitiveIndex ObjectRayOrigin ObjectRayDirection ObjectToWorld3x4 ObjectToWorld4x3 WorldToObject3x4 WorldToObject4x3
    +syn keyword         shaderslangFunc                HitKind
    +
    +" RayQuery intrinsics
    +syn keyword         shaderslangFunc                TraceRayInline Proceed Abort CommittedStatus
    +syn keyword         shaderslangFunc                CandidateType CandidateProceduralPrimitiveNonOpaque CandidateTriangleRayT CandidateInstanceIndex CandidateInstanceID CandidateInstanceContributionToHitGroupIndex CandidateGeometryIndex
    +syn keyword         shaderslangFunc                CandidatePrimitiveIndex CandidateObjectRayOrigin CandidateObjectRayDirection CandidateObjectToWorld3x4 CandidateObjectToWorld4x3 CandidateWorldToObject3x4 CandidateWorldToObject4x3
    +syn keyword         shaderslangFunc                CommitNonOpaqueTriangleHit CommitProceduralPrimitiveHit CommittedStatus CommittedRayT CommittedInstanceIndex CommittedInstanceID CommittedInstanceContributionToHitGroupIndex
    +syn keyword         shaderslangFunc                CommittedGeometryIndex CommittedPrimitiveIndex CommittedObjectRayOrigin CommittedObjectRayDirection CommittedObjectToWorld3x4 CommittedObjectToWorld4x3 CommittedWorldToObject3x4
    +syn keyword         shaderslangFunc                CommittedWorldToObject4x3 CandidateTriangleBarycentrics CandidateTriangleFrontFace CommittedTriangleBarycentrics CommittedTriangleFrontFace
    +
    +" Pack/unpack math intrinsics
    +syn keyword         shaderslangFunc                unpack_s8s16 unpack_u8u16 unpack_s8s32 unpack_u8u32
    +syn keyword         shaderslangFunc                pack_u8 pack_s8 pack_clamp_u8 pack_clamp_s8
    +
    +" Work graph object methods
    +syn keyword         shaderslangFunc                Get FinishedCrossGroupSharing Count GetThreadNodeOutputRecords GetGroupNodeOutputRecords IsValid GroupIncrementOutputCount ThreadIncrementOutputCount OutputComplete
    +
    +" Work graph free intrinsics
    +syn keyword         shaderslangFunc                GetRemainingRecursionLevels Barrier
    +
    +" Layout Qualifiers
    +syn keyword         shaderslangLayoutQual          const row_major column_major
    +syn keyword         shaderslangLayoutQual          point line triangle lineadj triangleadj
    +syn keyword         shaderslangLayoutQual          InputPatch OutputPatch
    +syn match           shaderslangLayoutQual          /PointStream<\s*\w\+\s*>/
    +syn match           shaderslangLayoutQual          /LineStream<\s*\w\+\s*>/
    +syn match           shaderslangLayoutQual          /TriangleStream<\s*\w\+\s*>/
    +
    +" User defined Semantics
    +syn match           shaderslangSemantic            /:\s*[A-Z]\w*/
    +syn match           shaderslangSemantic            /:\s*packoffset(\s*c\d\+\(\.[xyzw]\)\?\s*)/ " packoffset
    +syn match           shaderslangSemantic            /:\s*register(\s*\(r\|x\|v\|t\|s\|cb\|icb\|b\|c\|u\)\d\+\s*)/ " register
    +syn match           shaderslangSemantic            /:\s*read(\s*\(\(anyhit\|closesthit\|miss\|caller\)\s*,\s*\)*\(anyhit\|closesthit\|miss\|caller\)\?\s*)/ " read
    +syn match           shaderslangSemantic            /:\s*write(\s*\(\(anyhit\|closesthit\|miss\|caller\)\s*,\s*\)*\(anyhit\|closesthit\|miss\|caller\)\?\s*)/ " write
    +
    +" System-Value Semantics
    +" Vertex Shader
    +syn match           shaderslangSemantic            /SV_ClipDistance\d\+/
    +syn match           shaderslangSemantic            /SV_CullDistance\d\+/
    +syn keyword         shaderslangSemantic            SV_Position SV_InstanceID SV_PrimitiveID SV_VertexID
    +syn keyword         shaderslangSemantic            SV_StartVertexLocation SV_StartInstanceLocation
    +" Tessellation pipeline
    +syn keyword         shaderslangSemantic            SV_DomainLocation SV_InsideTessFactor SV_OutputControlPointID SV_TessFactor
    +" Geometry Shader
    +syn keyword         shaderslangSemantic            SV_GSInstanceID SV_RenderTargetArrayIndex
    +" Pixel Shader - MSAA
    +syn keyword         shaderslangSemantic            SV_Coverage SV_Depth SV_IsFrontFace SV_SampleIndex
    +syn match           shaderslangSemantic            /SV_Target[0-7]/
    +syn keyword         shaderslangSemantic            SV_ShadingRate SV_ViewID
    +syn match           shaderslangSemantic            /SV_Barycentrics[0-1]/
    +" Compute Shader
    +syn keyword         shaderslangSemantic            SV_DispatchThreadID SV_GroupID SV_GroupIndex SV_GroupThreadID
    +" Mesh shading pipeline
    +syn keyword         shaderslangSemantic            SV_CullPrimitive
    +" Work graph record system values
    +syn keyword         shaderslangSemantic            SV_DispatchGrid
    +
    +" slang structures
    +syn keyword         shaderslangStructure           cbuffer
    +
    +" Shader profiles
    +" Cg profiles
    +syn keyword         shaderslangProfile             arbfp1 arbvp1 fp20 vp20 fp30 vp30 ps_1_1 ps_1_2 ps_1_3
    +" Shader Model 1
    +syn keyword         shaderslangProfile             vs_1_1
    +" Shader Model 2
    +syn keyword         shaderslangProfile             ps_2_0 ps_2_x vs_2_0 vs_2_x
    +" Shader Model 3
    +syn keyword         shaderslangProfile             ps_3_0 vs_3_0
    +" Shader Model 4
    +syn keyword         shaderslangProfile             gs_4_0 ps_4_0 vs_4_0 gs_4_1 ps_4_1 vs_4_1
    +" Shader Model 5
    +syn keyword         shaderslangProfile             cs_4_0 cs_4_1 cs_5_0 ds_5_0 gs_5_0 hs_5_0 ps_5_0 vs_5_0
    +" Shader Model 6
    +syn keyword         shaderslangProfile             cs_6_0 ds_6_0 gs_6_0 hs_6_0 ps_6_0 vs_6_0 lib_6_0
    +
    +" Swizzling
    +syn match           shaderslangSwizzle             /\.[xyzw]\{1,4\}\>/
    +syn match           shaderslangSwizzle             /\.[rgba]\{1,4\}\>/
    +syn match           shaderslangSwizzle             /\.\(_m[0-3]\{2}\)\{1,4\}/
    +syn match           shaderslangSwizzle             /\.\(_[1-4]\{2}\)\{1,4\}/
    +
    +" Other Statements
    +syn keyword         shaderslangStatement           discard
    +
    +" Storage class
    +syn match           shaderslangStorageClass        /\/
    +syn match           shaderslangStorageClass        /\/
    +syn keyword         shaderslangStorageClass        inout
    +syn keyword         shaderslangStorageClass        extern nointerpolation precise shared groupshared static uniform volatile
    +syn keyword         shaderslangStorageClass        snorm unorm
    +syn keyword         shaderslangStorageClass        linear centroid nointerpolation noperspective sample
    +syn keyword         shaderslangStorageClass        globallycoherent
    +
    +" Types
    +" Buffer types
    +syn keyword         shaderslangType                ConstantBuffer Buffer ByteAddressBuffer ConsumeStructuredBuffer StructuredBuffer
    +syn keyword         shaderslangType                AppendStructuredBuffer RWBuffer RWByteAddressBuffer RWStructuredBuffer
    +syn keyword         shaderslangType                RasterizerOrderedBuffer RasterizerOrderedByteAddressBuffer RasterizerOrderedStructuredBuffer
    +
    +" Scalar types
    +syn keyword         shaderslangType                bool int uint dword half float double
    +syn keyword         shaderslangType                min16float min10float min16int min12int min16uint
    +syn keyword         shaderslangType                float16_t float32_t float64_t
    +
    +" Vector types
    +syn match           shaderslangType                /vector<\s*\w\+,\s*[1-4]\s*>/
    +syn keyword         shaderslangType                bool1 bool2 bool3 bool4
    +syn keyword         shaderslangType                int1 int2 int3 int4
    +syn keyword         shaderslangType                uint1 uint2 uint3 uint4
    +syn keyword         shaderslangType                dword1 dword2 dword3 dword4
    +syn keyword         shaderslangType                half1 half2 half3 half4
    +syn keyword         shaderslangType                float1 float2 float3 float4
    +syn keyword         shaderslangType                double1 double2 double3 double4
    +syn keyword         shaderslangType                min16float1 min16float2 min16float3 min16float4
    +syn keyword         shaderslangType                min10float1 min10float2 min10float3 min10float4
    +syn keyword         shaderslangType                min16int1 min16int2 min16int3 min16int4
    +syn keyword         shaderslangType                min12int1 min12int2 min12int3 min12int4
    +syn keyword         shaderslangType                min16uint1 min16uint2 min16uint3 min16uint4
    +syn keyword         shaderslangType                float16_t1 float16_t2 float16_t3 float16_t4
    +syn keyword         shaderslangType                float32_t1 float32_t2 float32_t3 float32_t4
    +syn keyword         shaderslangType                float64_t1 float64_t2 float64_t3 float64_t4
    +syn keyword         shaderslangType                int16_t1 int16_t2 int16_t3 int16_t4
    +syn keyword         shaderslangType                int32_t1 int32_t2 int32_t3 int32_t4
    +syn keyword         shaderslangType                int64_t1 int64_t2 int64_t3 int64_t4
    +syn keyword         shaderslangType                uint16_t1 uint16_t2 uint16_t3 uint16_t4
    +syn keyword         shaderslangType                uint32_t1 uint32_t2 uint32_t3 uint32_t4
    +syn keyword         shaderslangType                uint64_t1 uint64_t2 uint64_t3 uint64_t4
    +
    +" Packed types
    +syn keyword         shaderslangType                uint8_t4_packed int8_t4_packed
    +
    +" Matrix types
    +syn match           shaderslangType                /matrix<\s*\w\+\s*,\s*[1-4]\s*,\s*[1-4]\s*>/
    +syn keyword         shaderslangType                bool1x1 bool2x1 bool3x1 bool4x1 bool1x2 bool2x2 bool3x2 bool4x2 bool1x3 bool2x3 bool3x3 bool4x3 bool1x4 bool2x4 bool3x4 bool4x4
    +syn keyword         shaderslangType                int1x1 int2x1 int3x1 int4x1 int1x2 int2x2 int3x2 int4x2 int1x3 int2x3 int3x3 int4x3 int1x4 int2x4 int3x4 int4x4
    +syn keyword         shaderslangType                uint1x1 uint2x1 uint3x1 uint4x1 uint1x2 uint2x2 uint3x2 uint4x2 uint1x3 uint2x3 uint3x3 uint4x3 uint1x4 uint2x4 uint3x4 uint4x4
    +syn keyword         shaderslangType                dword1x1 dword2x1 dword3x1 dword4x1 dword1x2 dword2x2 dword3x2 dword4x2 dword1x3 dword2x3 dword3x3 dword4x3 dword1x4 dword2x4 dword3x4 dword4x4
    +syn keyword         shaderslangType                half1x1 half2x1 half3x1 half4x1 half1x2 half2x2 half3x2 half4x2 half1x3 half2x3 half3x3 half4x3 half1x4 half2x4 half3x4 half4x4
    +syn keyword         shaderslangType                float1x1 float2x1 float3x1 float4x1 float1x2 float2x2 float3x2 float4x2 float1x3 float2x3 float3x3 float4x3 float1x4 float2x4 float3x4 float4x4
    +syn keyword         shaderslangType                double1x1 double2x1 double3x1 double4x1 double1x2 double2x2 double3x2 double4x2 double1x3 double2x3 double3x3 double4x3 double1x4 double2x4 double3x4 double4x4
    +syn keyword         shaderslangType                min16float1x1 min16float2x1 min16float3x1 min16float4x1 min16float1x2 min16float2x2 min16float3x2 min16float4x2 min16float1x3 min16float2x3 min16float3x3 min16float4x3 min16float1x4 min16float2x4 min16float3x4 min16float4x4
    +syn keyword         shaderslangType                min10float1x1 min10float2x1 min10float3x1 min10float4x1 min10float1x2 min10float2x2 min10float3x2 min10float4x2 min10float1x3 min10float2x3 min10float3x3 min10float4x3 min10float1x4 min10float2x4 min10float3x4 min10float4x4
    +syn keyword         shaderslangType                min16int1x1 min16int2x1 min16int3x1 min16int4x1 min16int1x2 min16int2x2 min16int3x2 min16int4x2 min16int1x3 min16int2x3 min16int3x3 min16int4x3 min16int1x4 min16int2x4 min16int3x4 min16int4x4
    +syn keyword         shaderslangType                min12int1x1 min12int2x1 min12int3x1 min12int4x1 min12int1x2 min12int2x2 min12int3x2 min12int4x2 min12int1x3 min12int2x3 min12int3x3 min12int4x3 min12int1x4 min12int2x4 min12int3x4 min12int4x4
    +syn keyword         shaderslangType                min16uint1x1 min16uint2x1 min16uint3x1 min16uint4x1 min16uint1x2 min16uint2x2 min16uint3x2 min16uint4x2 min16uint1x3 min16uint2x3 min16uint3x3 min16uint4x3 min16uint1x4 min16uint2x4 min16uint3x4 min16uint4x4
    +syn keyword         shaderslangType                float16_t1x1 float16_t2x1 float16_t3x1 float16_t4x1 float16_t1x2 float16_t2x2 float16_t3x2 float16_t4x2 float16_t1x3 float16_t2x3 float16_t3x3 float16_t4x3 float16_t1x4 float16_t2x4 float16_t3x4 float16_t4x4
    +syn keyword         shaderslangType                float32_t1x1 float32_t2x1 float32_t3x1 float32_t4x1 float32_t1x2 float32_t2x2 float32_t3x2 float32_t4x2 float32_t1x3 float32_t2x3 float32_t3x3 float32_t4x3 float32_t1x4 float32_t2x4 float32_t3x4 float32_t4x4
    +syn keyword         shaderslangType                float64_t1x1 float64_t2x1 float64_t3x1 float64_t4x1 float64_t1x2 float64_t2x2 float64_t3x2 float64_t4x2 float64_t1x3 float64_t2x3 float64_t3x3 float64_t4x3 float64_t1x4 float64_t2x4 float64_t3x4 float64_t4x4
    +syn keyword         shaderslangType                int16_t1x1 int16_t2x1 int16_t3x1 int16_t4x1 int16_t1x2 int16_t2x2 int16_t3x2 int16_t4x2 int16_t1x3 int16_t2x3 int16_t3x3 int16_t4x3 int16_t1x4 int16_t2x4 int16_t3x4 int16_t4x4
    +syn keyword         shaderslangType                int32_t1x1 int32_t2x1 int32_t3x1 int32_t4x1 int32_t1x2 int32_t2x2 int32_t3x2 int32_t4x2 int32_t1x3 int32_t2x3 int32_t3x3 int32_t4x3 int32_t1x4 int32_t2x4 int32_t3x4 int32_t4x4
    +syn keyword         shaderslangType                int64_t1x1 int64_t2x1 int64_t3x1 int64_t4x1 int64_t1x2 int64_t2x2 int64_t3x2 int64_t4x2 int64_t1x3 int64_t2x3 int64_t3x3 int64_t4x3 int64_t1x4 int64_t2x4 int64_t3x4 int64_t4x4
    +syn keyword         shaderslangType                uint16_t1x1 uint16_t2x1 uint16_t3x1 uint16_t4x1 uint16_t1x2 uint16_t2x2 uint16_t3x2 uint16_t4x2 uint16_t1x3 uint16_t2x3 uint16_t3x3 uint16_t4x3 uint16_t1x4 uint16_t2x4 uint16_t3x4 uint16_t4x4
    +syn keyword         shaderslangType                uint32_t1x1 uint32_t2x1 uint32_t3x1 uint32_t4x1 uint32_t1x2 uint32_t2x2 uint32_t3x2 uint32_t4x2 uint32_t1x3 uint32_t2x3 uint32_t3x3 uint32_t4x3 uint32_t1x4 uint32_t2x4 uint32_t3x4 uint32_t4x4
    +syn keyword         shaderslangType                uint64_t1x1 uint64_t2x1 uint64_t3x1 uint64_t4x1 uint64_t1x2 uint64_t2x2 uint64_t3x2 uint64_t4x2 uint64_t1x3 uint64_t2x3 uint64_t3x3 uint64_t4x3 uint64_t1x4 uint64_t2x4 uint64_t3x4 uint64_t4x4
    +
    +" Sampler types
    +syn keyword         shaderslangType                SamplerState SamplerComparisonState
    +syn keyword         shaderslangType                sampler sampler1D sampler2D sampler3D samplerCUBE sampler_state
    +
    +" Texture types
    +syn keyword         shaderslangType                Texture1D Texture1DArray Texture2D Texture2DArray Texture2DMS Texture2DMSArray Texture3D TextureCube TextureCubeArray
    +syn keyword         shaderslangType                RWTexture1D RWTexture2D RWTexture2DArray RWTexture3D RWTextureCubeArray RWTexture2DMS RWTexture2DMSArray
    +syn keyword         shaderslangType                FeedbackTexture2D FeedbackTexture2DArray
    +syn keyword         shaderslangType                RasterizerOrderedTexture1D RasterizerOrderedTexture1DArray RasterizerOrderedTexture2D RasterizerOrderedTexture2DArray RasterizerOrderedTexture3D
    +syn keyword         shaderslangTypeDeprec          texture texture1D texture2D texture3D
    +
    +" Raytracing types
    +syn keyword         shaderslangType                RaytracingAccelerationStructure RayDesc RayQuery BuiltInTriangleIntersectionAttributes
    +
    +" Work graph input record objects
    +syn keyword         shaderslangType                DispatchNodeInputRecord RWDispatchNodeInputRecord GroupNodeInputRecords RWGroupNodeInputRecords ThreadNodeInputRecord RWThreadNodeInputRecord EmptyNodeInput
    +
    +" Work graph output node objects
    +syn keyword         shaderslangType                NodeOutput NodeOutputArray EmptyNodeOutput EmptyNodeOutputArray
    +
    +" Work graph output record objects
    +syn keyword         shaderslangType                ThreadNodeOutputRecords GroupNodeOutputRecords
    +
    +" State Groups args
    +syn case ignore " This section case insensitive
    +
    +" Blend state group
    +syn keyword         shaderslangStateGroupArg       AlphaToCoverageEnable BlendEnable SrcBlend DestBlend BlendOp SrcBlendAlpha DestBlendAlpha BlendOpAlpha RenderTargetWriteMask
    +syn keyword         shaderslangStateGroupVal       ZERO ONE SRC_COLOR INV_SRC_COLOR SRC_ALPHA INV_SRC_ALPHA DEST_ALPHA INV_DEST_ALPHA DEST_COLOR INV_DEST_COLOR SRC_ALPHA_SAT BLEND_FACTOR INV_BLEND_FACTOR SRC1_COLOR INV_SRC1_COLOR SRC1_ALPHA INV_SRC1_ALPHA
    +syn keyword         shaderslangStateGroupVal       ADD SUBSTRACT REV_SUBSTRACT MIN MAX
    +
    +" Rasterizer state group
    +syn keyword         shaderslangStateGroupArg       FillMode CullMode FrontCounterClockwise DepthBias DepthBiasClamp SlopeScaledDepthBias ZClipEnable DepthClipEnable ScissorEnable MultisampleEnable AntialiasedLineEnable
    +syn keyword         shaderslangStateGroupVal       SOLID WIREFRAME
    +syn keyword         shaderslangStateGroupVal       NONE FRONT BACK
    +
    +" Sampler state group
    +syn keyword         shaderslangStateGroupArg       Filter AddressU AddressV AddressW MipLODBias MaxAnisotropy ComparisonFunc BorderColor MinLOD MaxLOD ComparisonFilter
    +syn keyword         shaderslangStateGroupVal       MIN_MAG_MIP_POINT MIN_MAG_POINT_MIP_LINEAR MIN_POINT_MAG_LINEAR_MIP_POINT MIN_POINT_MAG_MIP_LINEAR MIN_LINEAR_MAG_MIP_POINT MIN_LINEAR_MAG_POINT_MIP_LINEAR MIN_MAG_LINEAR_MIP_POINT MIN_MAG_MIP_LINEAR ANISOTROPIC
    +syn keyword         shaderslangStateGroupVal       COMPARISON_MIN_MAG_MIP_POINT COMPARISON_MIN_MAG_POINT_MIP_LINEAR COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT COMPARISON_MIN_POINT_MAG_MIP_LINEAR COMPARISON_MIN_LINEAR_MAG_MIP_POINT
    +syn keyword         shaderslangStateGroupVal       COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR COMPARISON_MIN_MAG_LINEAR_MIP_POINT COMPARISON_MIN_MAG_MIP_LINEAR COMPARISON_ANISOTROPIC
    +syn keyword         shaderslangStateGroupVal       COMPARISON_NEVER COMPARISON_LESS COMPARISON_EQUAL COMPARISON_LESS_EQUAL COMPARISON_GREATER COMPARISON_NOT_EQUAL COMPARISON_GREATER_EQUAL COMPARISON_ALWAYS
    +syn keyword         shaderslangStateGroupVal       WRAP MIRROR CLAMP BORDER MIRROR_ONCE
    +syn keyword         shaderslangStateGroupVal       SAMPLER_FEEDBACK_MIN_MIP SAMPLER_FEEDBACK_MIP_REGION_USED
    +
    +" Ray flags
    +syn keyword         shaderslangStateGroupVal       RAY_FLAG_NONE RAY_FLAG_FORCE_OPAQUE RAY_FLAG_FORCE_NON_OPAQUE RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH RAY_FLAG_SKIP_CLOSEST_HIT_SHADER
    +syn keyword         shaderslangStateGroupVal       RAY_FLAG_CULL_BACK_FACING_TRIANGLES RAY_FLAG_CULL_FRONT_FACING_TRIANGLES RAY_FLAG_CULL_OPAQUE RAY_FLAG_CULL_NON_OPAQUE
    +syn keyword         shaderslangStateGroupVal       RAY_FLAG_SKIP_TRIANGLES RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES
    +
    +" HitKind enum
    +syn keyword         shaderslangStateGroupVal       HIT_KIND_TRIANGLE_FRONT_FACE HIT_KIND_TRIANGLE_BACK_FACE
    +
    +" RayQuery enums
    +syn keyword         shaderslangStateGroupVal       COMMITTED_NOTHING COMMITTED_TRIANGLE_HIT COMMITTED_PROCEDURAL_PRIMITIVE_HIT
    +syn keyword         shaderslangStateGroupVal       CANDIDATE_NON_OPAQUE_TRIANGLE CANDIDATE_PROCEDURAL_PRIMITIVE
    +
    +" Heap objects
    +syn keyword         shaderslangStateGroupVal       ResourceDescriptorHeap SamplerDescriptorHeap
    +
    +" Work graph constants
    +syn keyword         shaderslangStateGroupVal       UAV_MEMORY GROUP_SHARED_MEMORY NODE_INPUT_MEMORY NODE_OUTPUT_MEMORY ALL_MEMORY GROUP_SYNC GROUP_SCOPE DEVICE_SCOPE
    +
    +syn case match " Case sensitive from now on
    +
    +" Effect files declarations and functions
    +" Effect groups, techniques passes
    +syn keyword         shaderslangEffectGroup         fxgroup technique11 pass
    +" Effect functions
    +syn keyword         shaderslangEffectFunc          SetBlendState SetDepthStencilState SetRasterizerState SetVertexShader SetHullShader SetDomainShader SetGeometryShader SetPixelShader SetComputeShader CompileShader ConstructGSWithSO SetRenderTargets
    +
    +" Default highlighting
    +hi def link shaderslangProfile        shaderslangStatement
    +hi def link shaderslangStateGroupArg  shaderslangStatement
    +hi def link shaderslangStateGroupVal  Number
    +hi def link shaderslangStatement      Statement
    +hi def link shaderslangType           Type
    +hi def link shaderslangTypeDeprec     WarningMsg
    +hi def link shaderslangStorageClass   StorageClass
    +hi def link shaderslangSemantic       PreProc
    +hi def link shaderslangFunc           shaderslangStatement
    +hi def link shaderslangLayoutQual     shaderslangFunc
    +hi def link shaderslangAnnotation     PreProc
    +hi def link shaderslangStructure      Structure
    +hi def link shaderslangSwizzle        SpecialChar
    +hi def link shaderslangAttribute      Statement
    +
    +hi def link shaderslangEffectGroup    Type
    +hi def link shaderslangEffectFunc     Statement
    +
    +let b:current_syntax = "shaderslang"
    diff --git a/git/usr/share/vim/vim92/syntax/shared/README.txt b/git/usr/share/vim/vim92/syntax/shared/README.txt
    new file mode 100644
    index 0000000000000000000000000000000000000000..fade4b38a1e5858d80e1b55f8e994a19cce3851c
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shared/README.txt
    @@ -0,0 +1,2 @@
    +This directory "runtime/syntax/shared" contains Vim script files that are
    +generated or used by more than one syntax file.
    diff --git a/git/usr/share/vim/vim92/syntax/shared/debarchitectures.vim b/git/usr/share/vim/vim92/syntax/shared/debarchitectures.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..8005fe86f2bfe0c61f38279fc3946f2e3db0a0ae
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shared/debarchitectures.vim
    @@ -0,0 +1,27 @@
    +" Language:     Debian architecture information
    +" Maintainer:   Debian Vim Maintainers
    +" Last Change:  2025 Jul 05
    +" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/shared/debarchitectures.vim
    +
    +let s:cpo = &cpo
    +set cpo-=C
    +
    +let s:kernels = ['linux', 'hurd', 'kfreebsd', 'knetbsd', 'kopensolaris', 'netbsd']
    +let s:archs = [
    +      \ 'alpha', 'amd64', 'armeb', 'armel', 'armhf', 'arm64', 'avr32', 'hppa'
    +      \, 'i386', 'ia64', 'loong64', 'lpia', 'm32r', 'm68k', 'mipsel', 'mips64el', 'mips'
    +      \, 'powerpcspe', 'powerpc', 'ppc64el', 'ppc64', 'riscv64', 's390x', 's390', 'sh3eb'
    +      \, 'sh3', 'sh4eb', 'sh4', 'sh', 'sparc64', 'sparc', 'x32'
    +      \ ]
    +let s:pairs = [
    +      \ 'hurd-i386', 'hurd-amd64', 'kfreebsd-i386', 'kfreebsd-amd64', 'knetbsd-i386'
    +      \, 'kopensolaris-i386', 'netbsd-alpha', 'netbsd-i386'
    +      \ ]
    +
    +let g:debArchitectureKernelAnyArch = map(copy(s:kernels), {k,v -> v.'-any'})
    +let g:debArchitectureAnyKernelArch = map(copy(s:archs), {k,v -> 'any-'.v})
    +let g:debArchitectureArchs = s:archs + s:pairs
    +
    +unlet s:kernels s:archs s:pairs
    +
    +let &cpo=s:cpo
    diff --git a/git/usr/share/vim/vim92/syntax/shared/debversions.vim b/git/usr/share/vim/vim92/syntax/shared/debversions.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..2548ddd3506c347d0222810be51d339a33611b0f
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shared/debversions.vim
    @@ -0,0 +1,32 @@
    +" Vim syntax file
    +" Language:     Debian version information
    +" Maintainer:   Debian Vim Maintainers
    +" Last Change:  2026 Jan 01
    +" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/shared/debversions.vim
    +
    +let s:cpo = &cpo
    +set cpo-=C
    +
    +" Version names that are upcoming or released and still within the standard support window
    +let g:debSharedSupportedVersions = [
    +      \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental', 'sid', 'rc-buggy',
    +      \ 'bookworm', 'trixie', 'forky', 'duke',
    +      \
    +      \ 'jammy', 'noble', 'questing', 'resolute',
    +      \ 'devel'
    +      \ ]
    +" Historic version names, no longer under standard support
    +let g:debSharedUnsupportedVersions = [
    +      \ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
    +      \ 'woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy',
    +      \ 'jessie', 'stretch', 'buster', 'bullseye',
    +      \
    +      \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
    +      \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
    +      \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
    +      \ 'trusty', 'utopic', 'vivid', 'wily', 'xenial', 'yakkety', 'zesty',
    +      \ 'artful', 'bionic', 'cosmic', 'disco', 'eoan', 'focal', 'groovy',
    +      \ 'hirsute', 'impish', 'kinetic', 'lunar', 'mantic', 'oracular',
    +      \ 'plucky', ]
    +
    +let &cpo=s:cpo
    diff --git a/git/usr/share/vim/vim92/syntax/shared/hgcommitDiff.vim b/git/usr/share/vim/vim92/syntax/shared/hgcommitDiff.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..0ab9c3d8c902c2904a3a17d89093652a2bc3b2c8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shared/hgcommitDiff.vim
    @@ -0,0 +1,391 @@
    +" Vim syntax file
    +" Language:	Sapling / Mecurial Diff (context or unified)
    +" Maintainer:	Max Coplan 
    +"               Translations by Jakson Alves de Aquino.
    +" Last Change:	2022-12-08
    +" 2025-08-16 by Vim project, update zh_CN translations, #18011
    +" Copied from:	runtime/syntax/diff.vim
    +
    +" Quit when a (custom) syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +scriptencoding utf-8
    +
    +syn match hgDiffOnly		"^\%(SL\|HG\): Only in .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Files .* and .* are identical$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Files .* and .* differ$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binary files .* and .* differ$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): File .* is a .* while file .* is a .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ No newline at end of file .*"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Common subdirectories: .*"
    +
    +" Disable the translations by setting diff_translations to zero.
    +if !exists("diff_translations") || diff_translations
    +
    +" ca
    +syn match hgDiffOnly		"^\%(SL\|HG\): Només a .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Els fitxers .* i .* són idèntics$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Els fitxers .* i .* difereixen$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Els fitxers .* i .* difereixen$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): El fitxer .* és un .* mentre que el fitxer .* és un .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ No hi ha cap caràcter de salt de línia al final del fitxer"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirectoris comuns: .* i .*"
    +
    +" cs
    +syn match hgDiffOnly		"^\%(SL\|HG\): Pouze v .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Soubory .* a .* jsou identické$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Soubory .* a .* jsou různé$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binární soubory .* a .* jsou rozdílné$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Soubory .* a .* jsou různé$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Soubor .* je .* pokud soubor .* je .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Chybí znak konce řádku na konci souboru"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Společné podadresáře: .* a .*"
    +
    +" da
    +syn match hgDiffOnly		"^\%(SL\|HG\): Kun i .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Filerne .* og .* er identiske$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Filerne .* og .* er forskellige$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binære filer .* og .* er forskellige$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Filen .* er en .* mens filen .* er en .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Intet linjeskift ved filafslutning"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Identiske underkataloger: .* og .*"
    +
    +" de
    +syn match hgDiffOnly		"^\%(SL\|HG\): Nur in .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Dateien .* und .* sind identisch.$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Dateien .* und .* sind verschieden.$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binärdateien .* and .* sind verschieden.$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binärdateien .* und .* sind verschieden.$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Datei .* ist ein .* während Datei .* ein .* ist.$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Kein Zeilenumbruch am Dateiende."
    +syn match hgDiffCommon		"^\%(SL\|HG\): Gemeinsame Unterverzeichnisse: .* und .*.$"
    +
    +" el
    +syn match hgDiffOnly		"^\%(SL\|HG\): Μόνο στο .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Τα αρχεία .* καί .* είναι πανομοιότυπα$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Τα αρχεία .* και .* διαφέρουν$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Τα αρχεία .* και .* διαφέρουν$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Το αρχείο .* είναι .* ενώ το αρχείο .* είναι .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Δεν υπάρχει χαρακτήρας νέας γραμμής στο τέλος του αρχείου"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Οι υποκατάλογοι .* και .* είναι ταυτόσημοι$"
    +
    +" eo
    +syn match hgDiffOnly		"^\%(SL\|HG\): Nur en .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Dosieroj .* kaj .* estas samaj$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Dosieroj .* kaj .* estas malsamaj$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Dosieroj .* kaj .* estas malsamaj$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Dosiero .* estas .*, dum dosiero .* estas .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Mankas linifino ĉe fino de dosiero"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Komunaj subdosierujoj: .* kaj .*"
    +
    +" es
    +syn match hgDiffOnly		"^\%(SL\|HG\): Sólo en .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Los ficheros .* y .* son idénticos$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Los ficheros .* y .* son distintos$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Los ficheros binarios .* y .* son distintos$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): El fichero .* es un .* mientras que el .* es un .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ No hay ningún carácter de nueva línea al final del fichero"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirectorios comunes: .* y .*"
    +
    +" fi
    +syn match hgDiffOnly		"^\%(SL\|HG\): Vain hakemistossa .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Tiedostot .* ja .* ovat identtiset$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Tiedostot .* ja .* eroavat$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binääritiedostot .* ja .* eroavat$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Tiedosto .* on .*, kun taas tiedosto .* on .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Ei rivinvaihtoa tiedoston lopussa"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Yhteiset alihakemistot: .* ja .*"
    +
    +" fr
    +syn match hgDiffOnly		"^\%(SL\|HG\): Seulement dans .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Les fichiers .* et .* sont identiques.*"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Les fichiers .* et .* sont différents.*"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Les fichiers binaires .* et .* sont différents.*"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Le fichier .* est un .* alors que le fichier .* est un .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Pas de fin de ligne à la fin du fichier.*"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Les sous-répertoires .* et .* sont identiques.*"
    +
    +" ga
    +syn match hgDiffOnly		"^\%(SL\|HG\): I .* amháin: .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Is comhionann iad na comhaid .* agus .*"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Tá difríocht idir na comhaid .* agus .*"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Tá difríocht idir na comhaid .* agus .*"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Tá comhad .* ina .* ach tá comhad .* ina .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Gan líne nua ag an chomhadchríoch"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Fochomhadlanna i gcoitianta: .* agus .*"
    +
    +" gl
    +syn match hgDiffOnly		"^\%(SL\|HG\): Só en .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Os ficheiros .* e .* son idénticos$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Os ficheiros .* e .* son diferentes$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Os ficheiros binarios .* e .* son diferentes$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): O ficheiro .* é un .* mentres que o ficheiro .* é un .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Non hai un salto de liña na fin da liña"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirectorios comúns: .* e .*"
    +
    +" he
    +" ^\%(SL\|HG\): .* are expansive patterns for long lines, so disabled unless we can match
    +" some specific hebrew chars
    +if search('\%u05d5\|\%u05d1', 'nw', '', 100)
    +  syn match hgDiffOnly		"^\%(SL\|HG\): .*-ב קר אצמנ .*"
    +  syn match hgDiffIdentical	"^\%(SL\|HG\): םיהז םניה .*-ו .* םיצבקה$"
    +  syn match hgDiffDiffer	"^\%(SL\|HG\): הזמ הז םינוש `.*'-ו `.*' םיצבקה$"
    +  syn match hgDiffBDiffer	"^\%(SL\|HG\): הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$"
    +  syn match hgDiffIsA		"^\%(SL\|HG\): .* .*-ל .* .* תוושהל ןתינ אל$"
    +  syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ ץבוקה ףוסב השד.-הרוש ות רס."
    +  syn match hgDiffCommon	"^\%(SL\|HG\): .*-ו .* :תוהז תויקית-תת$"
    +endif
    +
    +" hr
    +syn match hgDiffOnly		"^\%(SL\|HG\): Samo u .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Datoteke .* i .* su identične$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Datoteke .* i .* se razlikuju$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binarne datoteke .* i .* se razlikuju$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Datoteka .* je .*, a datoteka .* je .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Nema novog retka na kraju datoteke"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Uobičajeni poddirektoriji: .* i .*"
    +
    +" hu
    +syn match hgDiffOnly		"^\%(SL\|HG\): Csak .* -ben: .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): .* és .* fájlok azonosak$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): A(z) .* és a(z) .* fájlok különböznek$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): A(z) .* és a(z) .* fájlok különböznek$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): A(z) .* fájl egy .*, viszont a(z) .* fájl egy .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Nincs újsor a fájl végén"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Közös alkönyvtárak: .* és .*"
    +
    +" id
    +syn match hgDiffOnly		"^\%(SL\|HG\): Hanya dalam .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): File .* dan .* identik$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Berkas .* dan .* berbeda$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): File biner .* dan .* berbeda$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): File .* adalah .* sementara file .* adalah .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Tidak ada baris-baru di akhir dari berkas"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirektori sama: .* dan .*"
    +
    +" it
    +syn match hgDiffOnly		"^\%(SL\|HG\): Solo in .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): I file .* e .* sono identici$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): I file .* e .* sono diversi$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): I file .* e .* sono diversi$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): I file binari .* e .* sono diversi$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): File .* è un .* mentre file .* è un .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Manca newline alla fine del file"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Sottodirectory in comune: .* e .*"
    +
    +" ja
    +syn match hgDiffOnly		"^\%(SL\|HG\): .*だけに発見: .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): ファイル.*と.*は同一$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): ファイル.*と.*は違います$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): バイナリー・ファイル.*と.*は違います$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): ファイル.*は.*、ファイル.*は.*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ ファイル末尾に改行がありません"
    +syn match hgDiffCommon		"^\%(SL\|HG\): 共通の下位ディレクトリー: .*と.*"
    +
    +" ja DiffUtils 3.3
    +syn match hgDiffOnly		"^\%(SL\|HG\): .* のみに存在: .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): ファイル .* と .* は同一です$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): ファイル .* と .* は異なります$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): バイナリーファイル .* と.* は異なります$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): ファイル .* は .* です。一方、ファイル .* は .* です$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ ファイル末尾に改行がありません"
    +syn match hgDiffCommon		"^\%(SL\|HG\): 共通のサブディレクトリー: .* と .*"
    +
    +" lv
    +syn match hgDiffOnly		"^\%(SL\|HG\): Tikai iekš .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Fails .* un .* ir identiski$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Faili .* un .* atšķiras$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Faili .* un .* atšķiras$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binārie faili .* un .* atšķiras$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Fails .* ir .* kamēr fails .* ir .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Nav jaunu rindu faila beigās"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Kopējās apakšdirektorijas: .* un .*"
    +
    +" ms
    +syn match hgDiffOnly		"^\%(SL\|HG\): Hanya dalam .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Fail .* dan .* adalah serupa$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Fail .* dan .* berbeza$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Fail .* dan .* berbeza$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Fail .* adalah .* manakala fail .* adalah .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Tiada baris baru pada penghujung fail"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirektori umum: .* dan .*"
    +
    +" nl
    +syn match hgDiffOnly		"^\%(SL\|HG\): Alleen in .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Bestanden .* en .* zijn identiek$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Bestanden .* en .* zijn verschillend$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Bestanden .* en .* zijn verschillend$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binaire bestanden .* en .* zijn verschillend$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Bestand .* is een .* terwijl bestand .* een .* is$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Geen regeleindeteken (LF) aan einde van bestand"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Gemeenschappelijke submappen: .* en .*"
    +
    +" pl
    +syn match hgDiffOnly		"^\%(SL\|HG\): Tylko w .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Pliki .* i .* są identyczne$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Pliki .* i .* różnią się$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Pliki .* i .* różnią się$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Binarne pliki .* i .* różnią się$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Plik .* jest .*, podczas gdy plik .* jest .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Brak znaku nowej linii na końcu pliku"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Wspólne podkatalogi: .* i .*"
    +
    +" pt_BR
    +syn match hgDiffOnly		"^\%(SL\|HG\): Somente em .*"
    +syn match hgDiffOnly		"^\%(SL\|HG\): Apenas em .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Os aquivos .* e .* são idênticos$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Os arquivos .* e .* são diferentes$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Os arquivos binários .* e .* são diferentes$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): O arquivo .* é .* enquanto o arquivo .* é .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Falta o caracter nova linha no final do arquivo"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdiretórios idênticos: .* e .*"
    +
    +" ro
    +syn match hgDiffOnly		"^\%(SL\|HG\): Doar în .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Fişierele .* şi .* sunt identice$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Fişierele .* şi .* diferă$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Fişierele binare .* şi .* diferă$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Fişierul .* este un .* pe când fişierul .* este un .*.$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Nici un element de linie nouă la sfârşitul fişierului"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Subdirectoare comune: .* şi .*.$"
    +
    +" ru
    +syn match hgDiffOnly		"^\%(SL\|HG\): Только в .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Файлы .* и .* идентичны$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Файлы .* и .* различаются$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Файлы .* и .* различаются$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Файл .* это .*, тогда как файл .* -- .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ В конце файла нет новой строки"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Общие подкаталоги: .* и .*"
    +
    +" sr
    +syn match hgDiffOnly		"^\%(SL\|HG\): Само у .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Датотеке „.*“ и „.*“ се подударају$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Датотеке .* и .* различите$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Бинарне датотеке .* и .* различите$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Датотека „.*“ је „.*“ док је датотека „.*“ „.*“$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Без новог реда на крају датотеке"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Заједнички поддиректоријуми: .* и .*"
    +
    +" sv
    +syn match hgDiffOnly		"^\%(SL\|HG\): Endast i .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Filerna .* och .* är lika$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Filerna .* och .* skiljer$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Filerna .* och .* skiljer$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Fil .* är en .* medan fil .* är en .*"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): De binära filerna .* och .* skiljer$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Filen .* är .* medan filen .* är .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Ingen nyrad vid filslut"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Lika underkataloger: .* och .*"
    +
    +" tr
    +syn match hgDiffOnly		"^\%(SL\|HG\): Yalnızca .*'da: .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): .* ve .* dosyaları birbirinin aynı$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): .* ve .* dosyaları birbirinden farklı$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): .* ve .* dosyaları birbirinden farklı$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): İkili .* ve .* birbirinden farklı$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): .* dosyası, bir .*, halbuki .* dosyası bir .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Dosya sonunda yenisatır yok."
    +syn match hgDiffCommon		"^\%(SL\|HG\): Ortak alt dizinler: .* ve .*"
    +
    +" uk
    +syn match hgDiffOnly		"^\%(SL\|HG\): Лише у .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Файли .* та .* ідентичні$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Файли .* та .* відрізняються$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Файли .* та .* відрізняються$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Двійкові файли .* та .* відрізняються$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Файл .* це .*, тоді як файл .* -- .*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Наприкінці файлу немає нового рядка"
    +syn match hgDiffCommon		"^\%(SL\|HG\): Спільні підкаталоги: .* та .*"
    +
    +" vi
    +syn match hgDiffOnly		"^\%(SL\|HG\): Chỉ trong .*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Hai tập tin .* và .* là bằng nhau.$"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): Cả .* và .* là cùng một tập tin$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): Hai tập tin .* và .* là khác nhau.$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Hai tập tin nhị phân .* và .* khác nhau$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Tập tin .* là một .* trong khi tập tin .* là một .*.$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): Hai tập tin .* và .* là khác nhau.$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): Tập tin .* là một .* còn tập tin .* là một .*.$"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ Không có ký tự dòng mới tại kêt thức tập tin."
    +syn match hgDiffCommon		"^\%(SL\|HG\): Thư mục con chung: .* và .*"
    +
    +" zh_CN
    +syn match hgDiffOnly		"^\%(SL\|HG\): 只在 .* 存在:.*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): 文件 .* 和 .* 相同$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): 文件 .* 和 .* 不同$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): 二进制文件 .* 和 .* 不同$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): 文件 .* 是.*而文件 .* 是.*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ 文件尾没有 newline 字符"
    +syn match hgDiffCommon		"^\%(SL\|HG\): .* 和 .* 有共同的子目录$"
    +
    +" zh_TW
    +syn match hgDiffOnly		"^\%(SL\|HG\): 只在 .* 存在:.*"
    +syn match hgDiffIdentical	"^\%(SL\|HG\): 檔案 .* 和 .* 相同$"
    +syn match hgDiffDiffer		"^\%(SL\|HG\): 檔案 .* 與 .* 不同$"
    +syn match hgDiffBDiffer		"^\%(SL\|HG\): 二元碼檔 .* 與 .* 不同$"
    +syn match hgDiffIsA		"^\%(SL\|HG\): 檔案 .* 是.*而檔案 .* 是.*"
    +syn match hgDiffNoEOL		"^\%(SL\|HG\): \\ 檔案末沒有 newline 字元"
    +syn match hgDiffCommon		"^\%(SL\|HG\): .* 和 .* 有共同的副目錄$"
    +
    +endif
    +
    +
    +syn match hgDiffRemoved		"^\%(SL\|HG\): -.*"
    +syn match hgDiffRemoved		"^\%(SL\|HG\): <.*"
    +syn match hgDiffAdded		"^\%(SL\|HG\): +.*"
    +syn match hgDiffAdded		"^\%(SL\|HG\): >.*"
    +syn match hgDiffChanged		"^\%(SL\|HG\): ! .*"
    +
    +syn match hgDiffSubname		" @@..*"ms=s+3 contained
    +syn match hgDiffLine		"^\%(SL\|HG\): @.*" contains=hgDiffSubname
    +syn match hgDiffLine		"^\%(SL\|HG\): \<\d\+\>.*"
    +syn match hgDiffLine		"^\%(SL\|HG\): \*\*\*\*.*"
    +syn match hgDiffLine		"^\%(SL\|HG\): ---$"
    +
    +" Some versions of diff have lines like "#c#" and "#d#" (where # is a number)
    +syn match hgDiffLine		"^\%(SL\|HG\): \d\+\(,\d\+\)\=[cda]\d\+\>.*"
    +
    +syn match hgDiffFile		"^\%(SL\|HG\): diff\>.*"
    +syn match hgDiffFile		"^\%(SL\|HG\): Index: .*"
    +syn match hgDiffFile		"^\%(SL\|HG\): ==== .*"
    +
    +if search('^\%(SL\|HG\): @@ -\S\+ +\S\+ @@', 'nw', '', 100)
    +  " unified
    +  syn match hgDiffOldFile	"^\%(SL\|HG\): --- .*"
    +  syn match hgDiffNewFile	"^\%(SL\|HG\): +++ .*"
    +else
    +  " context / old style
    +  syn match hgDiffOldFile	"^\%(SL\|HG\): \*\*\* .*"
    +  syn match hgDiffNewFile	"^\%(SL\|HG\): --- .*"
    +endif
    +
    +" Used by git
    +syn match hgDiffIndexLine	"^\%(SL\|HG\): index \x\x\x\x.*"
    +
    +syn match hgDiffComment		"^\%(SL\|HG\): #.*"
    +
    +" Define the default highlighting.
    +" Only used when an item doesn't have highlighting yet
    +hi def link hgDiffOldFile	hgDiffFile
    +hi def link hgDiffNewFile	hgDiffFile
    +hi def link hgDiffIndexLine	PreProc
    +hi def link hgDiffFile		Type
    +hi def link hgDiffOnly		Constant
    +hi def link hgDiffIdentical	Constant
    +hi def link hgDiffDiffer	Constant
    +hi def link hgDiffBDiffer	Constant
    +hi def link hgDiffIsA		Constant
    +hi def link hgDiffNoEOL		Constant
    +hi def link hgDiffCommon	Constant
    +hi def link hgDiffRemoved	Special
    +hi def link hgDiffChanged	PreProc
    +hi def link hgDiffAdded		Identifier
    +hi def link hgDiffLine		Statement
    +hi def link hgDiffSubname	PreProc
    +hi def link hgDiffComment	Comment
    +
    +let b:current_syntax = "hgcommitDiff"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/shared/typescriptcommon.vim b/git/usr/share/vim/vim92/syntax/shared/typescriptcommon.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..9a909c675586b1b34403b8579ed98a97804ee57c
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/shared/typescriptcommon.vim
    @@ -0,0 +1,2118 @@
    +" Vim syntax file
    +" Language:     TypeScript and TypeScriptReact
    +" Maintainer:   Herrington Darkholme
    +" Last Change:  2024 May 24
    +" 2025 Aug 05   support for new TypeScript syntaxes
    +" Based On:     Herrington Darkholme's yats.vim
    +" Changes:      See https://github.com/HerringtonDarkholme/yats.vim
    +" Credits:      See yats.vim on github
    +
    +if &cpo =~ 'C'
    +  let s:cpo_save = &cpo
    +  set cpo&vim
    +endif
    +
    +" NOTE: this results in accurate highlighting, but can be slow.
    +syntax sync fromstart
    +
    +"Dollar sign is permitted anywhere in an identifier
    +setlocal iskeyword-=$
    +if main_syntax == 'typescript' || main_syntax == 'typescriptreact'
    +  setlocal iskeyword+=$
    +  " syntax cluster htmlJavaScript                 contains=TOP
    +endif
    +" For private field added from TypeScript 3.8
    +setlocal iskeyword+=#
    +
    +" lowest priority on least used feature
    +syntax match   typescriptLabel                /[a-zA-Z_$]\k*:/he=e-1 contains=typescriptReserved nextgroup=@typescriptStatement skipwhite skipempty
    +
    +" other keywords like return,case,yield uses containedin
    +syntax region  typescriptBlock                 matchgroup=typescriptBraces start=/{/ end=/}/ contains=@typescriptStatement,@typescriptComments fold
    +syntax cluster afterIdentifier contains=
    +  \ typescriptDotNotation,
    +  \ typescriptFuncCallArg,
    +  \ typescriptTemplate,
    +  \ typescriptIndexExpr,
    +  \ @typescriptSymbols,
    +  \ typescriptTypeArguments
    +
    +syntax match   typescriptIdentifierName        /\<\K\k*/
    +  \ nextgroup=@afterIdentifier
    +  \ transparent
    +  \ contains=@_semantic
    +  \ skipnl skipwhite
    +
    +syntax match   typescriptProp contained /\K\k*!\?/
    +  \ transparent
    +  \ contains=@props
    +  \ nextgroup=@afterIdentifier
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptIndexExpr      contained matchgroup=typescriptProperty start=/\[/ end=/]/ contains=@typescriptValue,typescriptCastKeyword nextgroup=@typescriptSymbols,typescriptDotNotation,typescriptFuncCallArg skipwhite skipempty
    +
    +syntax match   typescriptDotNotation           /\.\|?\.\|!\./ nextgroup=typescriptProp skipnl
    +syntax match   typescriptDotStyleNotation      /\.style\./ nextgroup=typescriptDOMStyle transparent
    +" syntax match   typescriptFuncCall              contained /[a-zA-Z]\k*\ze(/ nextgroup=typescriptFuncCallArg
    +syntax region  typescriptParenExp              matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptComments,@typescriptValue,typescriptCastKeyword nextgroup=@typescriptSymbols skipwhite skipempty
    +syntax region  typescriptFuncCallArg           contained matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptValue,@typescriptComments,typescriptCastKeyword nextgroup=@typescriptSymbols,typescriptDotNotation skipwhite skipempty skipnl
    +syntax region  typescriptEventFuncCallArg      contained matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptEventExpression
    +syntax region  typescriptEventString           contained start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1\|$/ contains=typescriptASCII,@events
    +
    +syntax region  typescriptDestructureString
    +  \ start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1\|$/
    +  \ contains=typescriptASCII
    +  \ nextgroup=typescriptDestructureAs
    +  \ contained skipwhite skipempty
    +
    +syntax cluster typescriptVariableDeclarations
    +  \ contains=typescriptVariableDeclaration,@typescriptDestructures
    +
    +syntax match typescriptVariableDeclaration /[A-Za-z_$]\k*/
    +  \ nextgroup=typescriptTypeAnnotation,typescriptAssign
    +  \ contained skipwhite skipempty
    +
    +syntax cluster typescriptDestructureVariables contains=
    +  \ typescriptRestOrSpread,
    +  \ typescriptDestructureComma,
    +  \ typescriptDestructureLabel,
    +  \ typescriptDestructureVariable,
    +  \ @typescriptDestructures
    +
    +syntax match typescriptDestructureVariable    /[A-Za-z_$]\k*/ contained
    +  \ nextgroup=typescriptDefaultParam
    +  \ contained skipwhite skipempty
    +
    +syntax match typescriptDestructureLabel       /[A-Za-z_$]\k*\ze\_s*:/
    +  \ nextgroup=typescriptDestructureAs
    +  \ contained skipwhite skipempty
    +
    +syntax match typescriptDestructureAs /:/
    +  \ nextgroup=typescriptDestructureVariable,@typescriptDestructures
    +  \ contained skipwhite skipempty
    +
    +syntax match typescriptDestructureComma /,/ contained
    +
    +syntax cluster typescriptDestructures contains=
    +  \ typescriptArrayDestructure,
    +  \ typescriptObjectDestructure
    +
    +syntax region typescriptArrayDestructure matchgroup=typescriptBraces
    +  \ start=/\[/ end=/]/
    +  \ contains=@typescriptDestructureVariables,@typescriptComments
    +  \ nextgroup=typescriptTypeAnnotation,typescriptAssign
    +  \ transparent contained skipwhite skipempty fold
    +
    +syntax region typescriptObjectDestructure matchgroup=typescriptBraces
    +  \ start=/{/ end=/}/
    +  \ contains=typescriptDestructureString,@typescriptDestructureVariables,@typescriptComments
    +  \ nextgroup=typescriptTypeAnnotation,typescriptAssign
    +  \ transparent contained skipwhite skipempty fold
    +
    +"Syntax in the JavaScript code
    +
    +" String
    +syntax match   typescriptASCII                 contained /\\\d\d\d/
    +
    +syntax region  typescriptTemplateSubstitution matchgroup=typescriptTemplateSB
    +  \ start=/\${/ end=/}/
    +  \ contains=@typescriptValue,typescriptCastKeyword
    +  \ contained
    +
    +
    +syntax region  typescriptString
    +  \ start=+\z(["']\)+  skip=+\\\%(\z1\|$\)+  end=+\z1+ end=+$+
    +  \ contains=typescriptSpecial,@Spell
    +  \ nextgroup=@typescriptSymbols
    +  \ skipwhite skipempty
    +  \ extend
    +
    +syntax match   typescriptSpecial            contained "\v\\%(x\x\x|u%(\x{4}|\{\x{1,6}})|c\u|.)"
    +
    +" From pangloss/vim-javascript
    +" 
    +syntax region  typescriptRegexpCharClass    contained start=+\[+ skip=+\\.+ end=+\]+ contains=typescriptSpecial extend
    +syntax match   typescriptRegexpBoundary     contained "\v\c[$^]|\\b"
    +syntax match   typescriptRegexpBackRef      contained "\v\\[1-9]\d*"
    +syntax match   typescriptRegexpQuantifier   contained "\v[^\\]%([?*+]|\{\d+%(,\d*)?})\??"lc=1
    +syntax match   typescriptRegexpOr           contained "|"
    +syntax match   typescriptRegexpMod          contained "\v\(\?[:=!>]"lc=1
    +syntax region  typescriptRegexpGroup        contained start="[^\\]("lc=1 skip="\\.\|\[\(\\.\|[^]]\+\)\]" end=")" contains=typescriptRegexpCharClass,@typescriptRegexpSpecial keepend
    +syntax region  typescriptRegexpString
    +  \ start=+\%(\%(\/        nextgroup=@typescriptSymbols skipwhite skipempty
    +syntax match typescriptNumber /\<0[oO][0-7][0-7_]*\>/       nextgroup=@typescriptSymbols skipwhite skipempty
    +syntax match typescriptNumber /\<0[xX][0-9a-fA-F][0-9a-fA-F_]*\>/ nextgroup=@typescriptSymbols skipwhite skipempty
    +syntax match typescriptNumber /\<\%(\d[0-9_]*\%(\.\d[0-9_]*\)\=\|\.\d[0-9_]*\)\%([eE][+-]\=\d[0-9_]*\)\=\>/
    +  \ nextgroup=@typescriptSymbols skipwhite skipempty
    +
    +syntax region  typescriptObjectLiteral         matchgroup=typescriptBraces
    +  \ start=/{/ end=/}/
    +  \ contains=@typescriptComments,typescriptObjectLabel,typescriptStringProperty,typescriptComputedPropertyName,typescriptObjectAsyncKeyword,typescriptTernary,typescriptCastKeyword
    +  \ fold contained
    +
    +syntax keyword typescriptObjectAsyncKeyword async contained
    +
    +syntax match   typescriptObjectLabel  contained /\k\+\_s*/
    +  \ nextgroup=typescriptObjectColon,@typescriptCallImpl
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptStringProperty   contained
    +  \ start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1/
    +  \ nextgroup=typescriptObjectColon,@typescriptCallImpl
    +  \ skipwhite skipempty
    +
    +" syntax region  typescriptPropertyName    contained start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1(/me=e-1 nextgroup=@typescriptCallSignature skipwhite skipempty oneline
    +syntax region  typescriptComputedPropertyName  contained matchgroup=typescriptBraces
    +  \ start=/\[/rs=s+1 end=/]/
    +  \ contains=@typescriptValue
    +  \ nextgroup=typescriptObjectColon,@typescriptCallImpl
    +  \ skipwhite skipempty
    +
    +" syntax region  typescriptComputedPropertyName  contained matchgroup=typescriptPropertyName start=/\[/rs=s+1 end=/]\_s*:/he=e-1 contains=@typescriptValue nextgroup=@typescriptValue skipwhite skipempty
    +" syntax region  typescriptComputedPropertyName  contained matchgroup=typescriptPropertyName start=/\[/rs=s+1 end=/]\_s*(/me=e-1 contains=@typescriptValue nextgroup=@typescriptCallSignature skipwhite skipempty
    +" Value for object, statement for label statement
    +syntax match typescriptRestOrSpread /\.\.\./ contained
    +syntax match typescriptObjectSpread /\.\.\./ contained containedin=typescriptObjectLiteral,typescriptArray nextgroup=@typescriptValue
    +
    +syntax match typescriptObjectColon contained /:/ nextgroup=@typescriptValue skipwhite skipempty
    +
    +" + - ^ ~
    +syntax match typescriptUnaryOp /[+\-~!]/
    + \ nextgroup=@typescriptValue
    + \ skipwhite
    +
    +syntax region typescriptTernary matchgroup=typescriptTernaryOp start=/?[.?]\@!/ end=/:/ contained contains=@typescriptValue,@typescriptComments nextgroup=@typescriptValue skipwhite skipempty
    +
    +syntax match   typescriptAssign  /=/ nextgroup=@typescriptValue
    +  \ skipwhite skipempty
    +
    +" 2: ==, ===
    +syntax match   typescriptBinaryOp contained /===\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 6: >>>=, >>>, >>=, >>, >=, >
    +syntax match   typescriptBinaryOp contained />\(>>=\|>>\|>=\|>\|=\)\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 4: <<=, <<, <=, <
    +syntax match   typescriptBinaryOp contained /<\(<=\|<\|=\)\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 3: ||, |=, |, ||=
    +syntax match   typescriptBinaryOp contained /||\?=\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 4: &&, &=, &, &&=
    +syntax match   typescriptBinaryOp contained /&&\?=\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 2: ??, ??=
    +syntax match   typescriptBinaryOp contained /??=\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 2: *=, *
    +syntax match   typescriptBinaryOp contained /\*=\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 2: %=, %
    +syntax match   typescriptBinaryOp contained /%=\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 2: /=, /
    +syntax match   typescriptBinaryOp contained +/\(=\|[^\*/]\@=\)+ nextgroup=@typescriptValue skipwhite skipempty
    +syntax match   typescriptBinaryOp contained /!==\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 2: !=, !==
    +syntax match   typescriptBinaryOp contained /+\(+\|=\)\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 3: +, ++, +=
    +syntax match   typescriptBinaryOp contained /-\(-\|=\)\?/ nextgroup=@typescriptValue skipwhite skipempty
    +" 3: -, --, -=
    +
    +" exponentiation operator
    +" 2: **, **=
    +syntax match typescriptBinaryOp contained /\*\*=\?/ nextgroup=@typescriptValue
    +
    +syntax cluster typescriptSymbols               contains=typescriptBinaryOp,typescriptKeywordOp,typescriptTernary,typescriptAssign,typescriptCastKeyword
    +
    +" runtime syntax/ts-common/reserved.vim
    +"Import
    +syntax keyword typescriptImport                from as
    +syntax keyword typescriptImport                import
    +  \ nextgroup=typescriptImportType,typescriptImportBlock,typescriptDefaultImportName,typescriptImportDefer
    +  \ skipwhite
    +syntax keyword typescriptImportType            type
    +  \ contained
    +syntax match typescriptDefaultImportName /\v\h\k*( |,)/
    +  \ contained
    +  \ nextgroup=typescriptImportBlock
    +  \ skipwhite skipempty
    +syntax match typescriptImportDefer             /\"
    +syntax match   shellbang "^#!.*iojs\>"
    +
    +
    +"JavaScript comments
    +syntax keyword typescriptCommentTodo TODO FIXME XXX TBD
    +syntax match typescriptMagicComment "@ts-\%(ignore\|expect-error\)\>"
    +syntax match   typescriptLineComment "//.*"
    +  \ contains=@Spell,typescriptCommentTodo,typescriptRef,typescriptMagicComment
    +syntax region  typescriptComment
    +  \ start="/\*"  end="\*/"
    +  \ contains=@Spell,typescriptCommentTodo extend
    +syntax cluster typescriptComments
    +  \ contains=typescriptDocComment,typescriptComment,typescriptLineComment
    +
    +syntax match   typescriptRef  +///\s*$+
    +  \ contains=typescriptString
    +syntax match   typescriptRef  +///\s*$+
    +  \ contains=typescriptString
    +syntax match   typescriptRef  +///\s*$+
    +  \ contains=typescriptString
    +
    +"JSDoc
    +syntax case ignore
    +
    +syntax region  typescriptDocComment            matchgroup=typescriptComment
    +  \ start="/\*\*"  end="\*/"
    +  \ contains=typescriptDocNotation,typescriptCommentTodo,@Spell
    +  \ fold keepend
    +syntax match   typescriptDocNotation           contained /@/ nextgroup=typescriptDocTags
    +
    +syntax keyword typescriptDocTags               contained constant constructor constructs function ignore inner private public readonly static
    +syntax keyword typescriptDocTags               contained const dict expose inheritDoc interface nosideeffects override protected struct internal
    +syntax keyword typescriptDocTags               contained example global
    +syntax keyword typescriptDocTags               contained alpha beta defaultValue eventProperty experimental label
    +syntax keyword typescriptDocTags               contained packageDocumentation privateRemarks remarks sealed typeParam
    +
    +" syntax keyword typescriptDocTags               contained ngdoc nextgroup=typescriptDocNGDirective
    +syntax keyword typescriptDocTags               contained ngdoc scope priority animations
    +syntax keyword typescriptDocTags               contained ngdoc restrict methodOf propertyOf eventOf eventType nextgroup=typescriptDocParam skipwhite
    +syntax keyword typescriptDocNGDirective        contained overview service object function method property event directive filter inputType error
    +
    +syntax keyword typescriptDocTags               contained abstract virtual access augments
    +
    +syntax keyword typescriptDocTags               contained arguments callback lends memberOf name type kind link mixes mixin tutorial nextgroup=typescriptDocParam skipwhite
    +syntax keyword typescriptDocTags               contained variation nextgroup=typescriptDocNumParam skipwhite
    +
    +syntax keyword typescriptDocTags               contained author class classdesc copyright default defaultvalue nextgroup=typescriptDocDesc skipwhite
    +syntax keyword typescriptDocTags               contained deprecated description external host nextgroup=typescriptDocDesc skipwhite
    +syntax keyword typescriptDocTags               contained file fileOverview overview namespace requires since version nextgroup=typescriptDocDesc skipwhite
    +syntax keyword typescriptDocTags               contained summary todo license preserve nextgroup=typescriptDocDesc skipwhite
    +
    +syntax keyword typescriptDocTags               contained borrows exports nextgroup=typescriptDocA skipwhite
    +syntax keyword typescriptDocTags               contained param arg argument property prop module nextgroup=typescriptDocNamedParamType,typescriptDocParamName skipwhite
    +syntax keyword typescriptDocTags               contained define enum extends implements this typedef nextgroup=typescriptDocParamType skipwhite
    +syntax keyword typescriptDocTags               contained return returns throws exception nextgroup=typescriptDocParamType,typescriptDocParamName skipwhite
    +syntax keyword typescriptDocTags               contained see nextgroup=typescriptDocRef skipwhite
    +
    +syntax keyword typescriptDocTags               contained function func method nextgroup=typescriptDocName skipwhite
    +syntax match   typescriptDocName               contained /\h\w*/
    +
    +syntax keyword typescriptDocTags               contained fires event nextgroup=typescriptDocEventRef skipwhite
    +syntax match   typescriptDocEventRef           contained /\h\w*#\(\h\w*\:\)\?\h\w*/
    +
    +syntax match   typescriptDocNamedParamType     contained /{.\+}/ nextgroup=typescriptDocParamName skipwhite
    +syntax match   typescriptDocParamName          contained /\[\?0-9a-zA-Z_\.]\+\]\?/ nextgroup=typescriptDocDesc skipwhite
    +syntax match   typescriptDocParamType          contained /{.\+}/ nextgroup=typescriptDocDesc skipwhite
    +syntax match   typescriptDocA                  contained /\%(#\|\w\|\.\|:\|\/\)\+/ nextgroup=typescriptDocAs skipwhite
    +syntax match   typescriptDocAs                 contained /\s*as\s*/ nextgroup=typescriptDocB skipwhite
    +syntax match   typescriptDocB                  contained /\%(#\|\w\|\.\|:\|\/\)\+/
    +syntax match   typescriptDocParam              contained /\%(#\|\w\|\.\|:\|\/\|-\)\+/
    +syntax match   typescriptDocNumParam           contained /\d\+/
    +syntax match   typescriptDocRef                contained /\%(#\|\w\|\.\|:\|\/\)\+/
    +syntax region  typescriptDocLinkTag            contained matchgroup=typescriptDocLinkTag start=/{/ end=/}/ contains=typescriptDocTags
    +
    +syntax cluster typescriptDocs                  contains=typescriptDocParamType,typescriptDocNamedParamType,typescriptDocParam
    +
    +if exists("main_syntax") && main_syntax == "typescript"
    +  syntax sync clear
    +  syntax sync ccomment typescriptComment minlines=200
    +endif
    +
    +syntax case match
    +
    +" Types
    +syntax match typescriptOptionalMark /?/ contained
    +
    +syntax cluster typescriptTypeParameterCluster contains=
    +  \ typescriptTypeParameter,
    +  \ typescriptGenericDefault
    +
    +syntax region typescriptTypeParameters matchgroup=typescriptTypeBrackets
    +  \ start=//
    +  \ contains=@typescriptTypeParameterCluster
    +  \ contained
    +
    +syntax match typescriptTypeParameter /\K\k*/
    +  \ nextgroup=typescriptConstraint
    +  \ contained skipwhite skipnl
    +
    +syntax keyword typescriptConstraint extends
    +  \ nextgroup=@typescriptType
    +  \ contained skipwhite skipnl
    +
    +syntax match typescriptGenericDefault /=/
    +  \ nextgroup=@typescriptType
    +  \ contained skipwhite
    +
    +"><
    +" class A extend B {} // ClassBlock
    +" func() // FuncCallArg
    +syntax region typescriptTypeArguments matchgroup=typescriptTypeBrackets
    +  \ start=/\>/
    +  \ contains=@typescriptType
    +  \ nextgroup=typescriptFuncCallArg,@typescriptTypeOperator
    +  \ contained skipwhite
    +
    +
    +syntax cluster typescriptType contains=
    +  \ @typescriptPrimaryType,
    +  \ typescriptUnion,
    +  \ @typescriptFunctionType,
    +  \ typescriptConstructorType
    +
    +" array type: A[]
    +" type indexing A['key']
    +syntax region typescriptTypeBracket contained
    +  \ start=/\[/ end=/\]/
    +  \ contains=typescriptString,typescriptNumber
    +  \ nextgroup=@typescriptTypeOperator
    +  \ skipwhite skipempty
    +
    +syntax cluster typescriptPrimaryType contains=
    +  \ typescriptParenthesizedType,
    +  \ typescriptPredefinedType,
    +  \ typescriptTypeReference,
    +  \ typescriptObjectType,
    +  \ typescriptTupleType,
    +  \ typescriptTypeQuery,
    +  \ typescriptStringLiteralType,
    +  \ typescriptTemplateLiteralType,
    +  \ typescriptReadonlyArrayKeyword,
    +  \ typescriptAssertType
    +
    +syntax region  typescriptStringLiteralType contained
    +  \ start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1\|$/
    +  \ nextgroup=typescriptUnion
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptTemplateLiteralType contained
    +  \ start=/`/  skip=/\\\\\|\\`\|\n/  end=/`\|$/
    +  \ contains=typescriptTemplateSubstitutionType
    +  \ nextgroup=typescriptTypeOperator
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptTemplateSubstitutionType matchgroup=typescriptTemplateSB
    +  \ start=/\${/ end=/}/
    +  \ contains=@typescriptType
    +  \ contained
    +
    +syntax region typescriptParenthesizedType matchgroup=typescriptParens
    +  \ start=/(/ end=/)/
    +  \ contains=@typescriptType
    +  \ nextgroup=@typescriptTypeOperator
    +  \ contained skipwhite skipempty fold
    +
    +syntax match typescriptTypeReference /\K\k*\(\.\K\k*\)*/
    +  \ nextgroup=typescriptTypeArguments,@typescriptTypeOperator,typescriptUserDefinedType
    +  \ skipwhite contained skipempty
    +
    +syntax keyword typescriptPredefinedType any number boolean string void never undefined null object unknown
    +  \ nextgroup=@typescriptTypeOperator
    +  \ contained skipwhite skipempty
    +
    +syntax match typescriptPredefinedType /unique symbol/
    +  \ nextgroup=@typescriptTypeOperator
    +  \ contained skipwhite skipempty
    +
    +syntax region typescriptObjectType matchgroup=typescriptBraces
    +  \ start=/{/ end=/}/
    +  \ contains=@typescriptTypeMember,typescriptEndColons,@typescriptComments,typescriptAccessibilityModifier,typescriptReadonlyModifier
    +  \ nextgroup=@typescriptTypeOperator
    +  \ contained skipwhite skipnl fold
    +
    +syntax cluster typescriptTypeMember contains=
    +  \ @typescriptCallSignature,
    +  \ typescriptConstructSignature,
    +  \ typescriptIndexSignature,
    +  \ @typescriptMembers
    +
    +syntax match typescriptTupleLable /\K\k*?\?:/
    +    \ contained
    +
    +syntax region typescriptTupleType matchgroup=typescriptBraces
    +  \ start=/\[/ end=/\]/
    +  \ contains=@typescriptType,@typescriptComments,typescriptRestOrSpread,typescriptTupleLable
    +  \ contained skipwhite
    +
    +syntax cluster typescriptTypeOperator
    +  \ contains=typescriptUnion,typescriptTypeBracket,typescriptConstraint,typescriptConditionalType
    +
    +syntax match typescriptUnion /|\|&/ contained nextgroup=@typescriptPrimaryType skipwhite skipempty
    +
    +syntax match typescriptConditionalType /?\|:/ contained nextgroup=@typescriptPrimaryType skipwhite skipempty
    +
    +syntax cluster typescriptFunctionType contains=typescriptGenericFunc,typescriptFuncType
    +syntax region typescriptGenericFunc matchgroup=typescriptTypeBrackets
    +  \ start=//
    +  \ contains=typescriptTypeParameter
    +  \ nextgroup=typescriptFuncType
    +  \ containedin=typescriptFunctionType
    +  \ contained skipwhite skipnl
    +
    +syntax region typescriptFuncType matchgroup=typescriptParens
    +  \ start=/(\(\k\+:\|)\)\@=/ end=/)\s*=>/me=e-2
    +  \ contains=@typescriptParameterList
    +  \ nextgroup=typescriptFuncTypeArrow
    +  \ contained skipwhite skipnl oneline
    +
    +syntax match typescriptFuncTypeArrow /=>/
    +  \ nextgroup=@typescriptType
    +  \ containedin=typescriptFuncType
    +  \ contained skipwhite skipnl
    +
    +syntax keyword typescriptConstructorType new
    +  \ nextgroup=@typescriptFunctionType
    +  \ contained skipwhite skipnl
    +
    +syntax keyword typescriptUserDefinedType is
    +  \ contained nextgroup=@typescriptType skipwhite skipempty
    +
    +syntax keyword typescriptTypeQuery typeof keyof
    +  \ nextgroup=typescriptTypeReference
    +  \ contained skipwhite skipnl
    +
    +syntax keyword typescriptAssertType asserts
    +  \ nextgroup=typescriptTypeReference
    +  \ contained skipwhite skipnl
    +
    +syntax cluster typescriptCallSignature contains=typescriptGenericCall,typescriptCall
    +syntax region typescriptGenericCall matchgroup=typescriptTypeBrackets
    +  \ start=//
    +  \ contains=typescriptTypeParameter
    +  \ nextgroup=typescriptCall
    +  \ contained skipwhite skipnl
    +syntax region typescriptCall matchgroup=typescriptParens
    +  \ start=/(/ end=/)/
    +  \ contains=typescriptDecorator,@typescriptParameterList,@typescriptComments
    +  \ nextgroup=typescriptTypeAnnotation,typescriptBlock
    +  \ contained skipwhite skipnl
    +
    +syntax match typescriptTypeAnnotation /:/
    +  \ nextgroup=@typescriptType
    +  \ contained skipwhite skipnl
    +
    +syntax cluster typescriptParameterList contains=
    +  \ typescriptTypeAnnotation,
    +  \ typescriptAccessibilityModifier,
    +  \ typescriptReadonlyModifier,
    +  \ typescriptOptionalMark,
    +  \ typescriptRestOrSpread,
    +  \ typescriptFuncComma,
    +  \ typescriptDefaultParam
    +
    +syntax match typescriptFuncComma /,/ contained
    +
    +syntax match typescriptDefaultParam /=/
    +  \ nextgroup=@typescriptValue
    +  \ contained skipwhite
    +
    +syntax keyword typescriptConstructSignature new
    +  \ nextgroup=@typescriptCallSignature
    +  \ contained skipwhite
    +
    +syntax region typescriptIndexSignature matchgroup=typescriptBraces
    +  \ start=/\[/ end=/\]/
    +  \ contains=typescriptPredefinedType,typescriptMappedIn,typescriptString
    +  \ nextgroup=typescriptTypeAnnotation
    +  \ contained skipwhite oneline
    +
    +syntax keyword typescriptMappedIn in
    +  \ nextgroup=@typescriptType
    +  \ contained skipwhite skipnl skipempty
    +
    +syntax keyword typescriptAliasKeyword type
    +  \ nextgroup=typescriptAliasDeclaration
    +  \ skipwhite skipnl skipempty
    +
    +syntax region typescriptAliasDeclaration matchgroup=typescriptUnion
    +  \ start=/ / end=/=/
    +  \ nextgroup=@typescriptType
    +  \ contains=typescriptConstraint,typescriptTypeParameters
    +  \ contained skipwhite skipempty
    +
    +syntax keyword typescriptReadonlyArrayKeyword readonly
    +  \ nextgroup=@typescriptPrimaryType
    +  \ skipwhite
    +
    +
    +" extension
    +if get(g:, 'typescript_host_keyword', 1)
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function Boolean nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Error EvalError nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName InternalError nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName RangeError ReferenceError nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName StopIteration nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName SyntaxError TypeError nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName URIError Date nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Float32Array nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Float64Array nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Int16Array Int32Array nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Int8Array Uint16Array nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Uint32Array Uint8Array nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Uint8ClampedArray nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName ParallelArray nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName ArrayBuffer DataView nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Iterator Generator nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Reflect Proxy nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName arguments
    +  hi def link typescriptGlobal Structure
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName eval uneval nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName isFinite nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName isNaN parseFloat nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName parseInt nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName decodeURI nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName decodeURIComponent nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName encodeURI nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName encodeURIComponent nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptGlobalMethod
    +  hi def link typescriptGlobalMethod Structure
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Number nextgroup=typescriptGlobalNumberDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalNumberDot /\./ contained nextgroup=typescriptNumberStaticProp,typescriptNumberStaticMethod,typescriptProp
    +  syntax keyword typescriptNumberStaticProp contained EPSILON MAX_SAFE_INTEGER MAX_VALUE
    +  syntax keyword typescriptNumberStaticProp contained MIN_SAFE_INTEGER MIN_VALUE NEGATIVE_INFINITY
    +  syntax keyword typescriptNumberStaticProp contained NaN POSITIVE_INFINITY
    +  hi def link typescriptNumberStaticProp Keyword
    +  syntax keyword typescriptNumberStaticMethod contained isFinite isInteger isNaN isSafeInteger nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptNumberStaticMethod contained parseFloat parseInt nextgroup=typescriptFuncCallArg
    +  hi def link typescriptNumberStaticMethod Keyword
    +  syntax keyword typescriptNumberMethod contained toExponential toFixed toLocaleString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptNumberMethod contained toPrecision toSource toString valueOf nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptNumberMethod
    +  hi def link typescriptNumberMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName String nextgroup=typescriptGlobalStringDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalStringDot /\./ contained nextgroup=typescriptStringStaticMethod,typescriptProp
    +  syntax keyword typescriptStringStaticMethod contained fromCharCode fromCodePoint raw nextgroup=typescriptFuncCallArg
    +  hi def link typescriptStringStaticMethod Keyword
    +  syntax keyword typescriptStringMethod contained anchor charAt charCodeAt codePointAt nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained concat endsWith includes indexOf lastIndexOf nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained link localeCompare match matchAll normalize nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained padStart padEnd repeat replace replaceAll search nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained slice split startsWith substr substring nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained toLocaleLowerCase toLocaleUpperCase nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained toLowerCase toString toUpperCase trim nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptStringMethod contained trimEnd trimStart valueOf nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptStringMethod
    +  hi def link typescriptStringMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Array nextgroup=typescriptGlobalArrayDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalArrayDot /\./ contained nextgroup=typescriptArrayStaticMethod,typescriptProp
    +  syntax keyword typescriptArrayStaticMethod contained from isArray of nextgroup=typescriptFuncCallArg
    +  hi def link typescriptArrayStaticMethod Keyword
    +  syntax keyword typescriptArrayMethod contained concat copyWithin entries every fill nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptArrayMethod contained filter find findIndex flat flatMap forEach nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptArrayMethod contained includes indexOf join keys lastIndexOf map nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptArrayMethod contained pop push reduce reduceRight reverse nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptArrayMethod contained shift slice some sort splice toLocaleString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptArrayMethod contained toSource toString unshift values nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptArrayMethod
    +  hi def link typescriptArrayMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Object nextgroup=typescriptGlobalObjectDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalObjectDot /\./ contained nextgroup=typescriptObjectStaticMethod,typescriptProp
    +  syntax keyword typescriptObjectStaticMethod contained create defineProperties defineProperty nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectStaticMethod contained entries freeze fromEntries getOwnPropertyDescriptors nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectStaticMethod contained getOwnPropertyDescriptor getOwnPropertyNames nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectStaticMethod contained getOwnPropertySymbols getPrototypeOf nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectStaticMethod contained is isExtensible isFrozen isSealed nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectStaticMethod contained keys preventExtensions values nextgroup=typescriptFuncCallArg
    +  hi def link typescriptObjectStaticMethod Keyword
    +  syntax keyword typescriptObjectMethod contained getOwnPropertyDescriptors hasOwnProperty nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectMethod contained isPrototypeOf propertyIsEnumerable nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectMethod contained toLocaleString toString valueOf seal nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptObjectMethod contained setPrototypeOf nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptObjectMethod
    +  hi def link typescriptObjectMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Symbol nextgroup=typescriptGlobalSymbolDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalSymbolDot /\./ contained nextgroup=typescriptSymbolStaticProp,typescriptSymbolStaticMethod,typescriptProp
    +  syntax keyword typescriptSymbolStaticProp contained description length iterator match matchAll replace
    +  syntax keyword typescriptSymbolStaticProp contained search split hasInstance isConcatSpreadable
    +  syntax keyword typescriptSymbolStaticProp contained unscopables species toPrimitive
    +  syntax keyword typescriptSymbolStaticProp contained toStringTag
    +  hi def link typescriptSymbolStaticProp Keyword
    +  syntax keyword typescriptSymbolStaticMethod contained for keyFor nextgroup=typescriptFuncCallArg
    +  hi def link typescriptSymbolStaticMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function
    +  syntax keyword typescriptFunctionMethod contained apply bind call nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptFunctionMethod
    +  hi def link typescriptFunctionMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Math nextgroup=typescriptGlobalMathDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalMathDot /\./ contained nextgroup=typescriptMathStaticProp,typescriptMathStaticMethod,typescriptProp
    +  syntax keyword typescriptMathStaticProp contained E LN10 LN2 LOG10E LOG2E PI SQRT1_2
    +  syntax keyword typescriptMathStaticProp contained SQRT2
    +  hi def link typescriptMathStaticProp Keyword
    +  syntax keyword typescriptMathStaticMethod contained abs acos acosh asin asinh atan nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptMathStaticMethod contained atan2 atanh cbrt ceil clz32 cos nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptMathStaticMethod contained cosh exp expm1 floor fround hypot nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptMathStaticMethod contained imul log log10 log1p log2 max nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptMathStaticMethod contained min pow random round sign sin nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptMathStaticMethod contained sinh sqrt tan tanh trunc nextgroup=typescriptFuncCallArg
    +  hi def link typescriptMathStaticMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Date nextgroup=typescriptGlobalDateDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalDateDot /\./ contained nextgroup=typescriptDateStaticMethod,typescriptProp
    +  syntax keyword typescriptDateStaticMethod contained UTC now parse nextgroup=typescriptFuncCallArg
    +  hi def link typescriptDateStaticMethod Keyword
    +  syntax keyword typescriptDateMethod contained getDate getDay getFullYear getHours nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained getMilliseconds getMinutes getMonth nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained getSeconds getTime getTimezoneOffset nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained getUTCDate getUTCDay getUTCFullYear nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained getUTCHours getUTCMilliseconds getUTCMinutes nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained getUTCMonth getUTCSeconds setDate setFullYear nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained setHours setMilliseconds setMinutes nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained setMonth setSeconds setTime setUTCDate nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained setUTCFullYear setUTCHours setUTCMilliseconds nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained setUTCMinutes setUTCMonth setUTCSeconds nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained toDateString toISOString toJSON toLocaleDateString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained toLocaleFormat toLocaleString toLocaleTimeString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained toSource toString toTimeString toUTCString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDateMethod contained valueOf nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptDateMethod
    +  hi def link typescriptDateMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName JSON nextgroup=typescriptGlobalJSONDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalJSONDot /\./ contained nextgroup=typescriptJSONStaticMethod,typescriptProp
    +  syntax keyword typescriptJSONStaticMethod contained parse stringify nextgroup=typescriptFuncCallArg
    +  hi def link typescriptJSONStaticMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName RegExp nextgroup=typescriptGlobalRegExpDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalRegExpDot /\./ contained nextgroup=typescriptRegExpStaticProp,typescriptProp
    +  syntax keyword typescriptRegExpStaticProp contained lastIndex
    +  hi def link typescriptRegExpStaticProp Keyword
    +  syntax keyword typescriptRegExpProp contained dotAll global ignoreCase multiline source sticky
    +  syntax cluster props add=typescriptRegExpProp
    +  hi def link typescriptRegExpProp Keyword
    +  syntax keyword typescriptRegExpMethod contained exec test nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptRegExpMethod
    +  hi def link typescriptRegExpMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Map WeakMap
    +  syntax keyword typescriptES6MapProp contained size
    +  syntax cluster props add=typescriptES6MapProp
    +  hi def link typescriptES6MapProp Keyword
    +  syntax keyword typescriptES6MapMethod contained clear delete entries forEach get has nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptES6MapMethod contained keys set values nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptES6MapMethod
    +  hi def link typescriptES6MapMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Set WeakSet
    +  syntax keyword typescriptES6SetProp contained size
    +  syntax cluster props add=typescriptES6SetProp
    +  hi def link typescriptES6SetProp Keyword
    +  syntax keyword typescriptES6SetMethod contained add clear delete entries forEach has nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptES6SetMethod contained values nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptES6SetMethod
    +  hi def link typescriptES6SetMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Proxy
    +  syntax keyword typescriptProxyAPI contained getOwnPropertyDescriptor getOwnPropertyNames
    +  syntax keyword typescriptProxyAPI contained defineProperty deleteProperty freeze seal
    +  syntax keyword typescriptProxyAPI contained preventExtensions has hasOwn get set enumerate
    +  syntax keyword typescriptProxyAPI contained iterate ownKeys apply construct
    +  hi def link typescriptProxyAPI Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Promise nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalPromiseDot /\./ contained nextgroup=typescriptPromiseStaticMethod,typescriptProp
    +  syntax keyword typescriptPromiseStaticMethod contained all allSettled any race reject resolve nextgroup=typescriptFuncCallArg
    +  hi def link typescriptPromiseStaticMethod Keyword
    +  syntax keyword typescriptPromiseMethod contained then catch finally nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptPromiseMethod
    +  hi def link typescriptPromiseMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Reflect
    +  syntax keyword typescriptReflectMethod contained apply construct defineProperty deleteProperty nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptReflectMethod contained enumerate get getOwnPropertyDescriptor nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptReflectMethod contained getPrototypeOf has isExtensible ownKeys nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptReflectMethod contained preventExtensions set setPrototypeOf nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptReflectMethod
    +  hi def link typescriptReflectMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Intl
    +  syntax keyword typescriptIntlMethod contained Collator DateTimeFormat NumberFormat nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptIntlMethod contained PluralRules nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptIntlMethod
    +  hi def link typescriptIntlMethod Keyword
    +
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName global process
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName console Buffer
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName module exports
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setTimeout
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearTimeout
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setInterval
    +  syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearInterval
    +  hi def link typescriptNodeGlobal Structure
    +
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName describe
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName it test before
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName after beforeEach
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName afterEach
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName beforeAll
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName afterAll
    +  syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName expect assert
    +
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AbortController
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AbstractWorker AnalyserNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName App Apps ArrayBuffer
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ArrayBufferView
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Attr AudioBuffer
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AudioBufferSourceNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AudioContext AudioDestinationNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AudioListener AudioNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName AudioParam BatteryManager
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName BiquadFilterNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName BlobEvent BluetoothAdapter
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName BluetoothDevice
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName BluetoothManager
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CameraCapabilities
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CameraControl CameraManager
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CanvasGradient CanvasImageSource
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CanvasPattern CanvasRenderingContext2D
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CaretPosition CDATASection
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ChannelMergerNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ChannelSplitterNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CharacterData ChildNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ChromeWorker Comment
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Connection Console
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ContactManager Contacts
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ConvolverNode Coordinates
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSS CSSConditionRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSGroupingRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSKeyframeRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSKeyframesRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSMediaRule CSSNamespaceRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSPageRule CSSRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSRuleList CSSStyleDeclaration
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSStyleRule CSSStyleSheet
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName CSSSupportsRule
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DataTransfer DataView
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DedicatedWorkerGlobalScope
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DelayNode DeviceAcceleration
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DeviceRotationRate
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DeviceStorage DirectoryEntry
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DirectoryEntrySync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DirectoryReader
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DirectoryReaderSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Document DocumentFragment
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DocumentTouch DocumentType
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMCursor DOMError
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMException DOMHighResTimeStamp
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMImplementation
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMImplementationRegistry
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMParser DOMRequest
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMString DOMStringList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMStringMap DOMTimeStamp
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName DOMTokenList DynamicsCompressorNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Element Entry EntrySync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Extensions FileException
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Float32Array Float64Array
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName FMRadio FormData
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName GainNode Gamepad
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName GamepadButton Geolocation
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName History HTMLAnchorElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLAreaElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLAudioElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLBaseElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLBodyElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLBRElement HTMLButtonElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLCanvasElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLCollection HTMLDataElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLDataListElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLDivElement HTMLDListElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLDocument HTMLElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLEmbedElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLFieldSetElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLFormControlsCollection
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLFormElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLHeadElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLHeadingElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLHRElement HTMLHtmlElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLIFrameElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLImageElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLInputElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLKeygenElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLLabelElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLLegendElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLLIElement HTMLLinkElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLMapElement HTMLMediaElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLMetaElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLMeterElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLModElement HTMLObjectElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLOListElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLOptGroupElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLOptionElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLOptionsCollection
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLOutputElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLParagraphElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLParamElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLPreElement HTMLProgressElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLQuoteElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLScriptElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLSelectElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLSourceElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLSpanElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLStyleElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableCaptionElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableCellElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableColElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableDataCellElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableHeaderCellElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableRowElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTableSectionElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTextAreaElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTimeElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTitleElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLTrackElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLUListElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLUnknownElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName HTMLVideoElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBCursor IDBCursorSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBCursorWithValue
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBDatabase IDBDatabaseSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBEnvironment IDBEnvironmentSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBFactory IDBFactorySync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBIndex IDBIndexSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBKeyRange IDBObjectStore
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBObjectStoreSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBOpenDBRequest
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBRequest IDBTransaction
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBTransactionSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName IDBVersionChangeEvent
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ImageData IndexedDB
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Int16Array Int32Array
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Int8Array L10n LinkStyle
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName LocalFileSystem
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName LocalFileSystemSync
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Location LockedFile
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName MediaQueryList MediaQueryListListener
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName MediaRecorder MediaSource
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName MediaStream MediaStreamTrack
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName MutationObserver
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Navigator NavigatorGeolocation
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName NavigatorID NavigatorLanguage
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName NavigatorOnLine
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName NavigatorPlugins
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Node NodeFilter
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName NodeIterator NodeList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Notification OfflineAudioContext
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName OscillatorNode PannerNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ParentNode Performance
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PerformanceNavigation
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PerformanceTiming
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Permissions PermissionSettings
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Plugin PluginArray
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Position PositionError
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PositionOptions
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PowerManager ProcessingInstruction
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PromiseResolver
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName PushManager Range
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName RTCConfiguration
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName RTCPeerConnection
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName RTCPeerConnectionErrorCallback
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName RTCSessionDescription
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName RTCSessionDescriptionCallback
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ScriptProcessorNode
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Selection SettingsLock
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SettingsManager
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SharedWorker StyleSheet
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName StyleSheetList SVGAElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAngle SVGAnimateColorElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedAngle
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedBoolean
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedEnumeration
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedInteger
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedLength
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedLengthList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedNumber
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedNumberList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedPoints
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedPreserveAspectRatio
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedRect
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedString
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimatedTransformList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimateElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimateMotionElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimateTransformElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGAnimationElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGCircleElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGClipPathElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGCursorElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGDefsElement SVGDescElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGElement SVGEllipseElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFilterElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFontElement SVGFontFaceElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFontFaceFormatElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFontFaceNameElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFontFaceSrcElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGFontFaceUriElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGForeignObjectElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGGElement SVGGlyphElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGGradientElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGHKernElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGImageElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGLength SVGLengthList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGLinearGradientElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGLineElement SVGMaskElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGMatrix SVGMissingGlyphElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGMPathElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGNumber SVGNumberList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGPathElement SVGPatternElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGPoint SVGPolygonElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGPolylineElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGPreserveAspectRatio
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGRadialGradientElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGRect SVGRectElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGScriptElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGSetElement SVGStopElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGStringList SVGStylable
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGStyleElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGSVGElement SVGSwitchElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGSymbolElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTests SVGTextElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTextPositioningElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTitleElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTransform SVGTransformable
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTransformList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGTRefElement SVGTSpanElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGUseElement SVGViewElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName SVGVKernElement
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName TCPServerSocket
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName TCPSocket Telephony
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName TelephonyCall Text
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName TextDecoder TextEncoder
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName TextMetrics TimeRanges
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Touch TouchList
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Transferable TreeWalker
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Uint16Array Uint32Array
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Uint8Array Uint8ClampedArray
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName URLSearchParams
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName URLUtilsReadOnly
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName UserProximityEvent
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName ValidityState VideoPlaybackQuality
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName WaveShaperNode WebBluetooth
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName WebGLRenderingContext
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName WebSMS WebSocket
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName WebVTT WifiManager
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName Window Worker WorkerConsole
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName WorkerLocation WorkerNavigator
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName XDomainRequest XMLDocument
    +  syntax keyword typescriptBOM containedin=typescriptIdentifierName XMLHttpRequestEventTarget
    +  hi def link typescriptBOM Structure
    +
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName applicationCache
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName closed
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName Components
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName controllers
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName dialogArguments
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName document
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName frameElement
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName frames
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName fullScreen
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName history
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName innerHeight
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName innerWidth
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName length
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName location
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName locationbar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName menubar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName messageManager
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName name navigator
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName opener
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName outerHeight
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName outerWidth
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName pageXOffset
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName pageYOffset
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName parent
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName performance
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName personalbar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName returnValue
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName screen
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName screenX
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName screenY
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName scrollbars
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName scrollMaxX
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName scrollMaxY
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName scrollX
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName scrollY
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName self sidebar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName status
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName statusbar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName toolbar
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName top visualViewport
    +  syntax keyword typescriptBOMWindowProp containedin=typescriptIdentifierName window
    +  syntax cluster props add=typescriptBOMWindowProp
    +  hi def link typescriptBOMWindowProp Structure
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName alert nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName atob nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName blur nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName btoa nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName clearImmediate nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName clearInterval nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName clearTimeout nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName close nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName confirm nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName dispatchEvent nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName find nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName focus nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName getAttention nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName getAttentionWithCycleCount nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName getComputedStyle nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName getDefaulComputedStyle nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName getSelection nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName matchMedia nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName maximize nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName moveBy nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName moveTo nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName open nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName openDialog nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName postMessage nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName print nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName prompt nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName removeEventListener nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName resizeBy nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName resizeTo nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName restore nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName scroll nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName scrollBy nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName scrollByLines nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName scrollByPages nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName scrollTo nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName setCursor nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName setImmediate nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName setInterval nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName setResizable nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName setTimeout nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName showModalDialog nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName sizeToContent nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName stop nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMWindowMethod containedin=typescriptIdentifierName updateCommands nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptBOMWindowMethod
    +  hi def link typescriptBOMWindowMethod Structure
    +  syntax keyword typescriptBOMWindowEvent contained onabort onbeforeunload onblur onchange
    +  syntax keyword typescriptBOMWindowEvent contained onclick onclose oncontextmenu ondevicelight
    +  syntax keyword typescriptBOMWindowEvent contained ondevicemotion ondeviceorientation
    +  syntax keyword typescriptBOMWindowEvent contained ondeviceproximity ondragdrop onerror
    +  syntax keyword typescriptBOMWindowEvent contained onfocus onhashchange onkeydown onkeypress
    +  syntax keyword typescriptBOMWindowEvent contained onkeyup onload onmousedown onmousemove
    +  syntax keyword typescriptBOMWindowEvent contained onmouseout onmouseover onmouseup
    +  syntax keyword typescriptBOMWindowEvent contained onmozbeforepaint onpaint onpopstate
    +  syntax keyword typescriptBOMWindowEvent contained onreset onresize onscroll onselect
    +  syntax keyword typescriptBOMWindowEvent contained onsubmit onunload onuserproximity
    +  syntax keyword typescriptBOMWindowEvent contained onpageshow onpagehide
    +  hi def link typescriptBOMWindowEvent Keyword
    +  syntax keyword typescriptBOMWindowCons containedin=typescriptIdentifierName DOMParser
    +  syntax keyword typescriptBOMWindowCons containedin=typescriptIdentifierName QueryInterface
    +  syntax keyword typescriptBOMWindowCons containedin=typescriptIdentifierName XMLSerializer
    +  hi def link typescriptBOMWindowCons Structure
    +
    +  syntax keyword typescriptBOMNavigatorProp contained battery buildID connection cookieEnabled
    +  syntax keyword typescriptBOMNavigatorProp contained doNotTrack maxTouchPoints oscpu
    +  syntax keyword typescriptBOMNavigatorProp contained productSub push serviceWorker
    +  syntax keyword typescriptBOMNavigatorProp contained vendor vendorSub
    +  syntax cluster props add=typescriptBOMNavigatorProp
    +  hi def link typescriptBOMNavigatorProp Keyword
    +  syntax keyword typescriptBOMNavigatorMethod contained addIdleObserver geolocation nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMNavigatorMethod contained getDeviceStorage getDeviceStorages nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMNavigatorMethod contained getGamepads getUserMedia registerContentHandler nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMNavigatorMethod contained removeIdleObserver requestWakeLock nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMNavigatorMethod contained share vibrate watch registerProtocolHandler nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptBOMNavigatorMethod contained sendBeacon nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptBOMNavigatorMethod
    +  hi def link typescriptBOMNavigatorMethod Keyword
    +  syntax keyword typescriptServiceWorkerMethod contained register nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptServiceWorkerMethod
    +  hi def link typescriptServiceWorkerMethod Keyword
    +
    +  syntax keyword typescriptBOMLocationProp contained href protocol host hostname port
    +  syntax keyword typescriptBOMLocationProp contained pathname search hash username password
    +  syntax keyword typescriptBOMLocationProp contained origin
    +  syntax cluster props add=typescriptBOMLocationProp
    +  hi def link typescriptBOMLocationProp Keyword
    +  syntax keyword typescriptBOMLocationMethod contained assign reload replace toString nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptBOMLocationMethod
    +  hi def link typescriptBOMLocationMethod Keyword
    +
    +  syntax keyword typescriptBOMHistoryProp contained length current next previous state
    +  syntax keyword typescriptBOMHistoryProp contained scrollRestoration
    +  syntax cluster props add=typescriptBOMHistoryProp
    +  hi def link typescriptBOMHistoryProp Keyword
    +  syntax keyword typescriptBOMHistoryMethod contained back forward go pushState replaceState nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptBOMHistoryMethod
    +  hi def link typescriptBOMHistoryMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName console nextgroup=typescriptGlobalConsoleDot
    +  syntax match   typescriptGlobalConsoleDot /\./ contained nextgroup=typescriptConsoleMethod,typescriptProp
    +  syntax keyword typescriptConsoleMethod contained count dir error group groupCollapsed nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptConsoleMethod contained groupEnd info log time timeEnd trace nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptConsoleMethod contained warn nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptConsoleMethod
    +  hi def link typescriptConsoleMethod Keyword
    +
    +  syntax keyword typescriptXHRGlobal containedin=typescriptIdentifierName XMLHttpRequest
    +  hi def link typescriptXHRGlobal Structure
    +  syntax keyword typescriptXHRProp contained onreadystatechange readyState response
    +  syntax keyword typescriptXHRProp contained responseText responseType responseXML status
    +  syntax keyword typescriptXHRProp contained statusText timeout ontimeout upload withCredentials
    +  syntax cluster props add=typescriptXHRProp
    +  hi def link typescriptXHRProp Keyword
    +  syntax keyword typescriptXHRMethod contained abort getAllResponseHeaders getResponseHeader nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptXHRMethod contained open overrideMimeType send setRequestHeader nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptXHRMethod
    +  hi def link typescriptXHRMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Blob BlobBuilder
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName File FileReader
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName FileReaderSync
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName URL nextgroup=typescriptGlobalURLDot,typescriptFuncCallArg
    +  syntax match   typescriptGlobalURLDot /\./ contained nextgroup=typescriptURLStaticMethod,typescriptProp
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName URLUtils
    +  syntax keyword typescriptFileMethod contained readAsArrayBuffer readAsBinaryString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptFileMethod contained readAsDataURL readAsText nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptFileMethod
    +  hi def link typescriptFileMethod Keyword
    +  syntax keyword typescriptFileReaderProp contained error readyState result
    +  syntax cluster props add=typescriptFileReaderProp
    +  hi def link typescriptFileReaderProp Keyword
    +  syntax keyword typescriptFileReaderMethod contained abort readAsArrayBuffer readAsBinaryString nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptFileReaderMethod contained readAsDataURL readAsText nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptFileReaderMethod
    +  hi def link typescriptFileReaderMethod Keyword
    +  syntax keyword typescriptFileListMethod contained item nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptFileListMethod
    +  hi def link typescriptFileListMethod Keyword
    +  syntax keyword typescriptBlobMethod contained append getBlob getFile nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptBlobMethod
    +  hi def link typescriptBlobMethod Keyword
    +  syntax keyword typescriptURLUtilsProp contained hash host hostname href origin password
    +  syntax keyword typescriptURLUtilsProp contained pathname port protocol search searchParams
    +  syntax keyword typescriptURLUtilsProp contained username
    +  syntax cluster props add=typescriptURLUtilsProp
    +  hi def link typescriptURLUtilsProp Keyword
    +  syntax keyword typescriptURLStaticMethod contained createObjectURL revokeObjectURL nextgroup=typescriptFuncCallArg
    +  hi def link typescriptURLStaticMethod Keyword
    +
    +  syntax keyword typescriptCryptoGlobal containedin=typescriptIdentifierName crypto
    +  hi def link typescriptCryptoGlobal Structure
    +  syntax keyword typescriptSubtleCryptoMethod contained encrypt decrypt sign verify nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptSubtleCryptoMethod contained digest nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptSubtleCryptoMethod
    +  hi def link typescriptSubtleCryptoMethod Keyword
    +  syntax keyword typescriptCryptoProp contained subtle
    +  syntax cluster props add=typescriptCryptoProp
    +  hi def link typescriptCryptoProp Keyword
    +  syntax keyword typescriptCryptoMethod contained getRandomValues nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptCryptoMethod
    +  hi def link typescriptCryptoMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Headers Request
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Response
    +  syntax keyword typescriptGlobalMethod containedin=typescriptIdentifierName fetch nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptGlobalMethod
    +  hi def link typescriptGlobalMethod Structure
    +  syntax keyword typescriptHeadersMethod contained append delete get getAll has set nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptHeadersMethod
    +  hi def link typescriptHeadersMethod Keyword
    +  syntax keyword typescriptRequestProp contained method url headers context referrer
    +  syntax keyword typescriptRequestProp contained mode credentials cache
    +  syntax cluster props add=typescriptRequestProp
    +  hi def link typescriptRequestProp Keyword
    +  syntax keyword typescriptRequestMethod contained clone nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptRequestMethod
    +  hi def link typescriptRequestMethod Keyword
    +  syntax keyword typescriptResponseProp contained type url status statusText headers
    +  syntax keyword typescriptResponseProp contained redirected
    +  syntax cluster props add=typescriptResponseProp
    +  hi def link typescriptResponseProp Keyword
    +  syntax keyword typescriptResponseMethod contained clone nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptResponseMethod
    +  hi def link typescriptResponseMethod Keyword
    +
    +  syntax keyword typescriptServiceWorkerProp contained controller ready
    +  syntax cluster props add=typescriptServiceWorkerProp
    +  hi def link typescriptServiceWorkerProp Keyword
    +  syntax keyword typescriptServiceWorkerMethod contained register getRegistration nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptServiceWorkerMethod
    +  hi def link typescriptServiceWorkerMethod Keyword
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Cache
    +  syntax keyword typescriptCacheMethod contained match matchAll add addAll put delete nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptCacheMethod contained keys nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptCacheMethod
    +  hi def link typescriptCacheMethod Keyword
    +
    +  syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextEncoder
    +  syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextDecoder
    +  hi def link typescriptEncodingGlobal Structure
    +  syntax keyword typescriptEncodingProp contained encoding fatal ignoreBOM
    +  syntax cluster props add=typescriptEncodingProp
    +  hi def link typescriptEncodingProp Keyword
    +  syntax keyword typescriptEncodingMethod contained encode decode nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptEncodingMethod
    +  hi def link typescriptEncodingMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName Geolocation
    +  syntax keyword typescriptGeolocationMethod contained getCurrentPosition watchPosition nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptGeolocationMethod contained clearWatch nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptGeolocationMethod
    +  hi def link typescriptGeolocationMethod Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName NetworkInformation
    +  syntax keyword typescriptBOMNetworkProp contained downlink downlinkMax effectiveType
    +  syntax keyword typescriptBOMNetworkProp contained rtt type
    +  syntax cluster props add=typescriptBOMNetworkProp
    +  hi def link typescriptBOMNetworkProp Keyword
    +
    +  syntax keyword typescriptGlobal containedin=typescriptIdentifierName PaymentRequest
    +  syntax keyword typescriptPaymentMethod contained show abort canMakePayment nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptPaymentMethod
    +  hi def link typescriptPaymentMethod Keyword
    +  syntax keyword typescriptPaymentProp contained shippingAddress shippingOption result
    +  syntax cluster props add=typescriptPaymentProp
    +  hi def link typescriptPaymentProp Keyword
    +  syntax keyword typescriptPaymentEvent contained onshippingaddresschange onshippingoptionchange
    +  hi def link typescriptPaymentEvent Keyword
    +  syntax keyword typescriptPaymentResponseMethod contained complete nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptPaymentResponseMethod
    +  hi def link typescriptPaymentResponseMethod Keyword
    +  syntax keyword typescriptPaymentResponseProp contained details methodName payerEmail
    +  syntax keyword typescriptPaymentResponseProp contained payerPhone shippingAddress
    +  syntax keyword typescriptPaymentResponseProp contained shippingOption
    +  syntax cluster props add=typescriptPaymentResponseProp
    +  hi def link typescriptPaymentResponseProp Keyword
    +  syntax keyword typescriptPaymentAddressProp contained addressLine careOf city country
    +  syntax keyword typescriptPaymentAddressProp contained country dependentLocality languageCode
    +  syntax keyword typescriptPaymentAddressProp contained organization phone postalCode
    +  syntax keyword typescriptPaymentAddressProp contained recipient region sortingCode
    +  syntax cluster props add=typescriptPaymentAddressProp
    +  hi def link typescriptPaymentAddressProp Keyword
    +  syntax keyword typescriptPaymentShippingOptionProp contained id label amount selected
    +  syntax cluster props add=typescriptPaymentShippingOptionProp
    +  hi def link typescriptPaymentShippingOptionProp Keyword
    +
    +  syntax keyword typescriptDOMNodeProp contained attributes baseURI baseURIObject childNodes
    +  syntax keyword typescriptDOMNodeProp contained firstChild lastChild localName namespaceURI
    +  syntax keyword typescriptDOMNodeProp contained nextSibling nodeName nodePrincipal
    +  syntax keyword typescriptDOMNodeProp contained nodeType nodeValue ownerDocument parentElement
    +  syntax keyword typescriptDOMNodeProp contained parentNode prefix previousSibling textContent
    +  syntax cluster props add=typescriptDOMNodeProp
    +  hi def link typescriptDOMNodeProp Keyword
    +  syntax keyword typescriptDOMNodeMethod contained appendChild cloneNode compareDocumentPosition nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMNodeMethod contained getUserData hasAttributes hasChildNodes nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMNodeMethod contained insertBefore isDefaultNamespace isEqualNode nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMNodeMethod contained isSameNode isSupported lookupNamespaceURI nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMNodeMethod contained lookupPrefix normalize removeChild nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMNodeMethod contained replaceChild setUserData nextgroup=typescriptFuncCallArg
    +  syntax match typescriptDOMNodeMethod contained /contains/
    +  syntax cluster props add=typescriptDOMNodeMethod
    +  hi def link typescriptDOMNodeMethod Keyword
    +  syntax keyword typescriptDOMNodeType contained ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE
    +  syntax keyword typescriptDOMNodeType contained CDATA_SECTION_NODEN_NODE ENTITY_REFERENCE_NODE
    +  syntax keyword typescriptDOMNodeType contained ENTITY_NODE PROCESSING_INSTRUCTION_NODEN_NODE
    +  syntax keyword typescriptDOMNodeType contained COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE
    +  syntax keyword typescriptDOMNodeType contained DOCUMENT_FRAGMENT_NODE NOTATION_NODE
    +  hi def link typescriptDOMNodeType Keyword
    +
    +  syntax keyword typescriptDOMElemAttrs contained accessKey clientHeight clientLeft
    +  syntax keyword typescriptDOMElemAttrs contained clientTop clientWidth id innerHTML
    +  syntax keyword typescriptDOMElemAttrs contained length onafterscriptexecute onbeforescriptexecute
    +  syntax keyword typescriptDOMElemAttrs contained oncopy oncut onpaste onwheel scrollHeight
    +  syntax keyword typescriptDOMElemAttrs contained scrollLeft scrollTop scrollWidth tagName
    +  syntax keyword typescriptDOMElemAttrs contained classList className name outerHTML
    +  syntax keyword typescriptDOMElemAttrs contained style
    +  hi def link typescriptDOMElemAttrs Keyword
    +  syntax keyword typescriptDOMElemFuncs contained getAttributeNS getAttributeNode getAttributeNodeNS
    +  syntax keyword typescriptDOMElemFuncs contained getBoundingClientRect getClientRects
    +  syntax keyword typescriptDOMElemFuncs contained getElementsByClassName getElementsByTagName
    +  syntax keyword typescriptDOMElemFuncs contained getElementsByTagNameNS hasAttribute
    +  syntax keyword typescriptDOMElemFuncs contained hasAttributeNS insertAdjacentHTML
    +  syntax keyword typescriptDOMElemFuncs contained matches querySelector querySelectorAll
    +  syntax keyword typescriptDOMElemFuncs contained removeAttribute removeAttributeNS
    +  syntax keyword typescriptDOMElemFuncs contained removeAttributeNode requestFullscreen
    +  syntax keyword typescriptDOMElemFuncs contained requestPointerLock scrollIntoView
    +  syntax keyword typescriptDOMElemFuncs contained setAttribute setAttributeNS setAttributeNode
    +  syntax keyword typescriptDOMElemFuncs contained setAttributeNodeNS setCapture supports
    +  syntax keyword typescriptDOMElemFuncs contained getAttribute
    +  hi def link typescriptDOMElemFuncs Keyword
    +
    +  syntax keyword typescriptDOMDocProp contained activeElement body cookie defaultView
    +  syntax keyword typescriptDOMDocProp contained designMode dir domain embeds forms head
    +  syntax keyword typescriptDOMDocProp contained images lastModified links location plugins
    +  syntax keyword typescriptDOMDocProp contained postMessage readyState referrer registerElement
    +  syntax keyword typescriptDOMDocProp contained scripts styleSheets title vlinkColor
    +  syntax keyword typescriptDOMDocProp contained xmlEncoding characterSet compatMode
    +  syntax keyword typescriptDOMDocProp contained contentType currentScript doctype documentElement
    +  syntax keyword typescriptDOMDocProp contained documentURI documentURIObject firstChild
    +  syntax keyword typescriptDOMDocProp contained implementation lastStyleSheetSet namespaceURI
    +  syntax keyword typescriptDOMDocProp contained nodePrincipal ononline pointerLockElement
    +  syntax keyword typescriptDOMDocProp contained popupNode preferredStyleSheetSet selectedStyleSheetSet
    +  syntax keyword typescriptDOMDocProp contained styleSheetSets textContent tooltipNode
    +  syntax cluster props add=typescriptDOMDocProp
    +  hi def link typescriptDOMDocProp Keyword
    +  syntax keyword typescriptDOMDocMethod contained caretPositionFromPoint close createNodeIterator nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained createRange createTreeWalker elementFromPoint nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained getElementsByName adoptNode createAttribute nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained createCDATASection createComment createDocumentFragment nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained createElement createElementNS createEvent nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained createExpression createNSResolver nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained createProcessingInstruction createTextNode nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained enableStyleSheetsForSet evaluate execCommand nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained exitPointerLock getBoxObjectFor getElementById nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained getElementsByClassName getElementsByTagName nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained getElementsByTagNameNS getSelection nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained hasFocus importNode loadOverlay open nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained queryCommandSupported querySelector nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMDocMethod contained querySelectorAll write writeln nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptDOMDocMethod
    +  hi def link typescriptDOMDocMethod Keyword
    +
    +  syntax keyword typescriptDOMEventTargetMethod contained addEventListener removeEventListener nextgroup=typescriptEventFuncCallArg
    +  syntax keyword typescriptDOMEventTargetMethod contained dispatchEvent waitUntil nextgroup=typescriptEventFuncCallArg
    +  syntax cluster props add=typescriptDOMEventTargetMethod
    +  hi def link typescriptDOMEventTargetMethod Keyword
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName AnimationEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName AudioProcessingEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName BeforeInputEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName BeforeUnloadEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName BlobEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName ClipboardEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName CloseEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName CompositionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName CSSFontFaceLoadEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName CustomEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DeviceLightEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DeviceMotionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DeviceOrientationEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DeviceProximityEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DOMTransactionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName DragEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName EditingBeforeInputEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName ErrorEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName FocusEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName GamepadEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName HashChangeEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName IDBVersionChangeEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName KeyboardEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName MediaStreamEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName MessageEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName MouseEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName MutationEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName OfflineAudioCompletionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName PageTransitionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName PointerEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName PopStateEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName ProgressEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName RelatedEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName RTCPeerConnectionIceEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName SensorEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName StorageEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName SVGEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName SVGZoomEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName TimeEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName TouchEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName TrackEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName TransitionEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName UIEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName UserProximityEvent
    +  syntax keyword typescriptDOMEventCons containedin=typescriptIdentifierName WheelEvent
    +  hi def link typescriptDOMEventCons Structure
    +  syntax keyword typescriptDOMEventProp contained bubbles cancelable currentTarget defaultPrevented
    +  syntax keyword typescriptDOMEventProp contained eventPhase target timeStamp type isTrusted
    +  syntax keyword typescriptDOMEventProp contained isReload
    +  syntax cluster props add=typescriptDOMEventProp
    +  hi def link typescriptDOMEventProp Keyword
    +  syntax keyword typescriptDOMEventMethod contained initEvent preventDefault stopImmediatePropagation nextgroup=typescriptEventFuncCallArg
    +  syntax keyword typescriptDOMEventMethod contained stopPropagation respondWith default nextgroup=typescriptEventFuncCallArg
    +  syntax cluster props add=typescriptDOMEventMethod
    +  hi def link typescriptDOMEventMethod Keyword
    +
    +  syntax keyword typescriptDOMStorage contained sessionStorage localStorage
    +  hi def link typescriptDOMStorage Keyword
    +  syntax keyword typescriptDOMStorageProp contained length
    +  syntax cluster props add=typescriptDOMStorageProp
    +  hi def link typescriptDOMStorageProp Keyword
    +  syntax keyword typescriptDOMStorageMethod contained getItem key setItem removeItem nextgroup=typescriptFuncCallArg
    +  syntax keyword typescriptDOMStorageMethod contained clear nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptDOMStorageMethod
    +  hi def link typescriptDOMStorageMethod Keyword
    +
    +  syntax keyword typescriptDOMFormProp contained acceptCharset action elements encoding
    +  syntax keyword typescriptDOMFormProp contained enctype length method name target
    +  syntax cluster props add=typescriptDOMFormProp
    +  hi def link typescriptDOMFormProp Keyword
    +  syntax keyword typescriptDOMFormMethod contained reportValidity reset submit nextgroup=typescriptFuncCallArg
    +  syntax cluster props add=typescriptDOMFormMethod
    +  hi def link typescriptDOMFormMethod Keyword
    +
    +  syntax keyword typescriptDOMStyle contained alignContent alignItems alignSelf animation
    +  syntax keyword typescriptDOMStyle contained animationDelay animationDirection animationDuration
    +  syntax keyword typescriptDOMStyle contained animationFillMode animationIterationCount
    +  syntax keyword typescriptDOMStyle contained animationName animationPlayState animationTimingFunction
    +  syntax keyword typescriptDOMStyle contained appearance backfaceVisibility background
    +  syntax keyword typescriptDOMStyle contained backgroundAttachment backgroundBlendMode
    +  syntax keyword typescriptDOMStyle contained backgroundClip backgroundColor backgroundImage
    +  syntax keyword typescriptDOMStyle contained backgroundOrigin backgroundPosition backgroundRepeat
    +  syntax keyword typescriptDOMStyle contained backgroundSize border borderBottom borderBottomColor
    +  syntax keyword typescriptDOMStyle contained borderBottomLeftRadius borderBottomRightRadius
    +  syntax keyword typescriptDOMStyle contained borderBottomStyle borderBottomWidth borderCollapse
    +  syntax keyword typescriptDOMStyle contained borderColor borderImage borderImageOutset
    +  syntax keyword typescriptDOMStyle contained borderImageRepeat borderImageSlice borderImageSource
    +  syntax keyword typescriptDOMStyle contained borderImageWidth borderLeft borderLeftColor
    +  syntax keyword typescriptDOMStyle contained borderLeftStyle borderLeftWidth borderRadius
    +  syntax keyword typescriptDOMStyle contained borderRight borderRightColor borderRightStyle
    +  syntax keyword typescriptDOMStyle contained borderRightWidth borderSpacing borderStyle
    +  syntax keyword typescriptDOMStyle contained borderTop borderTopColor borderTopLeftRadius
    +  syntax keyword typescriptDOMStyle contained borderTopRightRadius borderTopStyle borderTopWidth
    +  syntax keyword typescriptDOMStyle contained borderWidth bottom boxDecorationBreak
    +  syntax keyword typescriptDOMStyle contained boxShadow boxSizing breakAfter breakBefore
    +  syntax keyword typescriptDOMStyle contained breakInside captionSide caretColor caretShape
    +  syntax keyword typescriptDOMStyle contained caret clear clip clipPath color columns
    +  syntax keyword typescriptDOMStyle contained columnCount columnFill columnGap columnRule
    +  syntax keyword typescriptDOMStyle contained columnRuleColor columnRuleStyle columnRuleWidth
    +  syntax keyword typescriptDOMStyle contained columnSpan columnWidth content counterIncrement
    +  syntax keyword typescriptDOMStyle contained counterReset cursor direction display
    +  syntax keyword typescriptDOMStyle contained emptyCells flex flexBasis flexDirection
    +  syntax keyword typescriptDOMStyle contained flexFlow flexGrow flexShrink flexWrap
    +  syntax keyword typescriptDOMStyle contained float font fontFamily fontFeatureSettings
    +  syntax keyword typescriptDOMStyle contained fontKerning fontLanguageOverride fontSize
    +  syntax keyword typescriptDOMStyle contained fontSizeAdjust fontStretch fontStyle fontSynthesis
    +  syntax keyword typescriptDOMStyle contained fontVariant fontVariantAlternates fontVariantCaps
    +  syntax keyword typescriptDOMStyle contained fontVariantEastAsian fontVariantLigatures
    +  syntax keyword typescriptDOMStyle contained fontVariantNumeric fontVariantPosition
    +  syntax keyword typescriptDOMStyle contained fontWeight grad grid gridArea gridAutoColumns
    +  syntax keyword typescriptDOMStyle contained gridAutoFlow gridAutoPosition gridAutoRows
    +  syntax keyword typescriptDOMStyle contained gridColumn gridColumnStart gridColumnEnd
    +  syntax keyword typescriptDOMStyle contained gridRow gridRowStart gridRowEnd gridTemplate
    +  syntax keyword typescriptDOMStyle contained gridTemplateAreas gridTemplateRows gridTemplateColumns
    +  syntax keyword typescriptDOMStyle contained height hyphens imageRendering imageResolution
    +  syntax keyword typescriptDOMStyle contained imageOrientation imeMode inherit justifyContent
    +  syntax keyword typescriptDOMStyle contained left letterSpacing lineBreak lineHeight
    +  syntax keyword typescriptDOMStyle contained listStyle listStyleImage listStylePosition
    +  syntax keyword typescriptDOMStyle contained listStyleType margin marginBottom marginLeft
    +  syntax keyword typescriptDOMStyle contained marginRight marginTop marks mask maskType
    +  syntax keyword typescriptDOMStyle contained maxHeight maxWidth minHeight minWidth
    +  syntax keyword typescriptDOMStyle contained mixBlendMode objectFit objectPosition
    +  syntax keyword typescriptDOMStyle contained opacity order orphans outline outlineColor
    +  syntax keyword typescriptDOMStyle contained outlineOffset outlineStyle outlineWidth
    +  syntax keyword typescriptDOMStyle contained overflow overflowWrap overflowX overflowY
    +  syntax keyword typescriptDOMStyle contained overflowClipBox padding paddingBottom
    +  syntax keyword typescriptDOMStyle contained paddingLeft paddingRight paddingTop pageBreakAfter
    +  syntax keyword typescriptDOMStyle contained pageBreakBefore pageBreakInside perspective
    +  syntax keyword typescriptDOMStyle contained perspectiveOrigin pointerEvents position
    +  syntax keyword typescriptDOMStyle contained quotes resize right shapeImageThreshold
    +  syntax keyword typescriptDOMStyle contained shapeMargin shapeOutside tableLayout tabSize
    +  syntax keyword typescriptDOMStyle contained textAlign textAlignLast textCombineHorizontal
    +  syntax keyword typescriptDOMStyle contained textDecoration textDecorationColor textDecorationLine
    +  syntax keyword typescriptDOMStyle contained textDecorationStyle textIndent textOrientation
    +  syntax keyword typescriptDOMStyle contained textOverflow textRendering textShadow
    +  syntax keyword typescriptDOMStyle contained textTransform textUnderlinePosition top
    +  syntax keyword typescriptDOMStyle contained touchAction transform transformOrigin
    +  syntax keyword typescriptDOMStyle contained transformStyle transition transitionDelay
    +  syntax keyword typescriptDOMStyle contained transitionDuration transitionProperty
    +  syntax keyword typescriptDOMStyle contained transitionTimingFunction unicodeBidi unicodeRange
    +  syntax keyword typescriptDOMStyle contained userSelect userZoom verticalAlign visibility
    +  syntax keyword typescriptDOMStyle contained whiteSpace width willChange wordBreak
    +  syntax keyword typescriptDOMStyle contained wordSpacing wordWrap writingMode zIndex
    +  hi def link typescriptDOMStyle Keyword
    +
    +
    +
    +  let typescript_props = 1
    +  syntax keyword typescriptAnimationEvent contained animationend animationiteration
    +  syntax keyword typescriptAnimationEvent contained animationstart beginEvent endEvent
    +  syntax keyword typescriptAnimationEvent contained repeatEvent
    +  syntax cluster events add=typescriptAnimationEvent
    +  hi def link typescriptAnimationEvent Title
    +  syntax keyword typescriptCSSEvent contained CssRuleViewRefreshed CssRuleViewChanged
    +  syntax keyword typescriptCSSEvent contained CssRuleViewCSSLinkClicked transitionend
    +  syntax cluster events add=typescriptCSSEvent
    +  hi def link typescriptCSSEvent Title
    +  syntax keyword typescriptDatabaseEvent contained blocked complete error success upgradeneeded
    +  syntax keyword typescriptDatabaseEvent contained versionchange
    +  syntax cluster events add=typescriptDatabaseEvent
    +  hi def link typescriptDatabaseEvent Title
    +  syntax keyword typescriptDocumentEvent contained DOMLinkAdded DOMLinkRemoved DOMMetaAdded
    +  syntax keyword typescriptDocumentEvent contained DOMMetaRemoved DOMWillOpenModalDialog
    +  syntax keyword typescriptDocumentEvent contained DOMModalDialogClosed unload
    +  syntax cluster events add=typescriptDocumentEvent
    +  hi def link typescriptDocumentEvent Title
    +  syntax keyword typescriptDOMMutationEvent contained DOMAttributeNameChanged DOMAttrModified
    +  syntax keyword typescriptDOMMutationEvent contained DOMCharacterDataModified DOMContentLoaded
    +  syntax keyword typescriptDOMMutationEvent contained DOMElementNameChanged DOMNodeInserted
    +  syntax keyword typescriptDOMMutationEvent contained DOMNodeInsertedIntoDocument DOMNodeRemoved
    +  syntax keyword typescriptDOMMutationEvent contained DOMNodeRemovedFromDocument DOMSubtreeModified
    +  syntax cluster events add=typescriptDOMMutationEvent
    +  hi def link typescriptDOMMutationEvent Title
    +  syntax keyword typescriptDragEvent contained drag dragdrop dragend dragenter dragexit
    +  syntax keyword typescriptDragEvent contained draggesture dragleave dragover dragstart
    +  syntax keyword typescriptDragEvent contained drop
    +  syntax cluster events add=typescriptDragEvent
    +  hi def link typescriptDragEvent Title
    +  syntax keyword typescriptElementEvent contained invalid overflow underflow DOMAutoComplete
    +  syntax keyword typescriptElementEvent contained command commandupdate
    +  syntax cluster events add=typescriptElementEvent
    +  hi def link typescriptElementEvent Title
    +  syntax keyword typescriptFocusEvent contained blur change DOMFocusIn DOMFocusOut focus
    +  syntax keyword typescriptFocusEvent contained focusin focusout
    +  syntax cluster events add=typescriptFocusEvent
    +  hi def link typescriptFocusEvent Title
    +  syntax keyword typescriptFormEvent contained reset submit
    +  syntax cluster events add=typescriptFormEvent
    +  hi def link typescriptFormEvent Title
    +  syntax keyword typescriptFrameEvent contained DOMFrameContentLoaded
    +  syntax cluster events add=typescriptFrameEvent
    +  hi def link typescriptFrameEvent Title
    +  syntax keyword typescriptInputDeviceEvent contained click contextmenu DOMMouseScroll
    +  syntax keyword typescriptInputDeviceEvent contained dblclick gamepadconnected gamepaddisconnected
    +  syntax keyword typescriptInputDeviceEvent contained keydown keypress keyup MozGamepadButtonDown
    +  syntax keyword typescriptInputDeviceEvent contained MozGamepadButtonUp mousedown mouseenter
    +  syntax keyword typescriptInputDeviceEvent contained mouseleave mousemove mouseout
    +  syntax keyword typescriptInputDeviceEvent contained mouseover mouseup mousewheel MozMousePixelScroll
    +  syntax keyword typescriptInputDeviceEvent contained pointerlockchange pointerlockerror
    +  syntax keyword typescriptInputDeviceEvent contained wheel
    +  syntax cluster events add=typescriptInputDeviceEvent
    +  hi def link typescriptInputDeviceEvent Title
    +  syntax keyword typescriptMediaEvent contained audioprocess canplay canplaythrough
    +  syntax keyword typescriptMediaEvent contained durationchange emptied ended ended loadeddata
    +  syntax keyword typescriptMediaEvent contained loadedmetadata MozAudioAvailable pause
    +  syntax keyword typescriptMediaEvent contained play playing ratechange seeked seeking
    +  syntax keyword typescriptMediaEvent contained stalled suspend timeupdate volumechange
    +  syntax keyword typescriptMediaEvent contained waiting complete
    +  syntax cluster events add=typescriptMediaEvent
    +  hi def link typescriptMediaEvent Title
    +  syntax keyword typescriptMenuEvent contained DOMMenuItemActive DOMMenuItemInactive
    +  syntax cluster events add=typescriptMenuEvent
    +  hi def link typescriptMenuEvent Title
    +  syntax keyword typescriptNetworkEvent contained datachange dataerror disabled enabled
    +  syntax keyword typescriptNetworkEvent contained offline online statuschange connectionInfoUpdate
    +  syntax cluster events add=typescriptNetworkEvent
    +  hi def link typescriptNetworkEvent Title
    +  syntax keyword typescriptProgressEvent contained abort error load loadend loadstart
    +  syntax keyword typescriptProgressEvent contained progress timeout uploadprogress
    +  syntax cluster events add=typescriptProgressEvent
    +  hi def link typescriptProgressEvent Title
    +  syntax keyword typescriptResourceEvent contained cached error load
    +  syntax cluster events add=typescriptResourceEvent
    +  hi def link typescriptResourceEvent Title
    +  syntax keyword typescriptScriptEvent contained afterscriptexecute beforescriptexecute
    +  syntax cluster events add=typescriptScriptEvent
    +  hi def link typescriptScriptEvent Title
    +  syntax keyword typescriptSensorEvent contained compassneedscalibration devicelight
    +  syntax keyword typescriptSensorEvent contained devicemotion deviceorientation deviceproximity
    +  syntax keyword typescriptSensorEvent contained orientationchange userproximity
    +  syntax cluster events add=typescriptSensorEvent
    +  hi def link typescriptSensorEvent Title
    +  syntax keyword typescriptSessionHistoryEvent contained pagehide pageshow popstate
    +  syntax cluster events add=typescriptSessionHistoryEvent
    +  hi def link typescriptSessionHistoryEvent Title
    +  syntax keyword typescriptStorageEvent contained change storage
    +  syntax cluster events add=typescriptStorageEvent
    +  hi def link typescriptStorageEvent Title
    +  syntax keyword typescriptSVGEvent contained SVGAbort SVGError SVGLoad SVGResize SVGScroll
    +  syntax keyword typescriptSVGEvent contained SVGUnload SVGZoom
    +  syntax cluster events add=typescriptSVGEvent
    +  hi def link typescriptSVGEvent Title
    +  syntax keyword typescriptTabEvent contained visibilitychange
    +  syntax cluster events add=typescriptTabEvent
    +  hi def link typescriptTabEvent Title
    +  syntax keyword typescriptTextEvent contained compositionend compositionstart compositionupdate
    +  syntax keyword typescriptTextEvent contained copy cut paste select text
    +  syntax cluster events add=typescriptTextEvent
    +  hi def link typescriptTextEvent Title
    +  syntax keyword typescriptTouchEvent contained touchcancel touchend touchenter touchleave
    +  syntax keyword typescriptTouchEvent contained touchmove touchstart
    +  syntax cluster events add=typescriptTouchEvent
    +  hi def link typescriptTouchEvent Title
    +  syntax keyword typescriptUpdateEvent contained checking downloading error noupdate
    +  syntax keyword typescriptUpdateEvent contained obsolete updateready
    +  syntax cluster events add=typescriptUpdateEvent
    +  hi def link typescriptUpdateEvent Title
    +  syntax keyword typescriptValueChangeEvent contained hashchange input readystatechange
    +  syntax cluster events add=typescriptValueChangeEvent
    +  hi def link typescriptValueChangeEvent Title
    +  syntax keyword typescriptViewEvent contained fullscreen fullscreenchange fullscreenerror
    +  syntax keyword typescriptViewEvent contained resize scroll
    +  syntax cluster events add=typescriptViewEvent
    +  hi def link typescriptViewEvent Title
    +  syntax keyword typescriptWebsocketEvent contained close error message open
    +  syntax cluster events add=typescriptWebsocketEvent
    +  hi def link typescriptWebsocketEvent Title
    +  syntax keyword typescriptWindowEvent contained DOMWindowCreated DOMWindowClose DOMTitleChanged
    +  syntax cluster events add=typescriptWindowEvent
    +  hi def link typescriptWindowEvent Title
    +  syntax keyword typescriptUncategorizedEvent contained beforeunload message open show
    +  syntax cluster events add=typescriptUncategorizedEvent
    +  hi def link typescriptUncategorizedEvent Title
    +  syntax keyword typescriptServiceWorkerEvent contained install activate fetch
    +  syntax cluster events add=typescriptServiceWorkerEvent
    +  hi def link typescriptServiceWorkerEvent Title
    +endif
    +
    +" patch
    +" patch for generated code
    +syntax keyword typescriptGlobal Promise
    +  \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline
    +syntax keyword typescriptGlobal Map WeakMap
    +  \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline
    +
    +syntax keyword typescriptConstructor           contained constructor
    +  \ nextgroup=@typescriptCallSignature
    +  \ skipwhite skipempty
    +
    +
    +syntax cluster memberNextGroup contains=typescriptMemberOptionality,typescriptTypeAnnotation,@typescriptCallSignature
    +
    +syntax match typescriptMember /#\?\K\k*/
    +  \ nextgroup=@memberNextGroup
    +  \ contained skipwhite
    +
    +syntax match typescriptMethodAccessor contained /\v(get|set)\s\K/me=e-1
    +  \ nextgroup=@typescriptMembers
    +
    +syntax cluster typescriptPropertyMemberDeclaration contains=
    +  \ typescriptClassStatic,
    +  \ typescriptAccessibilityModifier,
    +  \ typescriptReadonlyModifier,
    +  \ typescriptAutoAccessor,
    +  \ typescriptMethodAccessor,
    +  \ @typescriptMembers
    +  " \ typescriptMemberVariableDeclaration
    +
    +syntax match typescriptMemberOptionality /?\|!/ contained
    +  \ nextgroup=typescriptTypeAnnotation,@typescriptCallSignature
    +  \ skipwhite skipempty
    +
    +syntax cluster typescriptMembers contains=typescriptMember,typescriptStringMember,typescriptComputedMember
    +
    +syntax keyword typescriptClassStatic static
    +  \ nextgroup=@typescriptMembers,typescriptAsyncFuncKeyword,typescriptReadonlyModifier
    +  \ skipwhite contained
    +
    +syntax keyword typescriptAccessibilityModifier public private protected contained
    +
    +syntax keyword typescriptReadonlyModifier readonly override contained
    +
    +syntax keyword typescriptAutoAccessor accessor contained
    +
    +syntax region  typescriptStringMember   contained
    +  \ start=/\z(["']\)/  skip=/\\\\\|\\\z1\|\\\n/  end=/\z1/
    +  \ nextgroup=@memberNextGroup
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptComputedMember   contained matchgroup=typescriptProperty
    +  \ start=/\[/rs=s+1 end=/]/
    +  \ contains=@typescriptValue,typescriptMember,typescriptMappedIn,typescriptCastKeyword
    +  \ nextgroup=@memberNextGroup
    +  \ skipwhite skipempty
    +
    +"don't add typescriptMembers to nextgroup, let outer scope match it
    +" so we won't match abstract method outside abstract class
    +syntax keyword typescriptAbstract              abstract
    +  \ nextgroup=typescriptClassKeyword
    +  \ skipwhite skipnl
    +syntax keyword typescriptClassKeyword          class
    +  \ nextgroup=typescriptClassName,typescriptClassExtends,typescriptClassBlock
    +  \ skipwhite
    +
    +syntax match   typescriptClassName             contained /\K\k*/
    +  \ nextgroup=typescriptClassBlock,typescriptClassExtends,typescriptClassTypeParameter
    +  \ skipwhite skipnl
    +
    +syntax region typescriptClassTypeParameter
    +  \ start=//
    +  \ contains=@typescriptTypeParameterCluster
    +  \ nextgroup=typescriptClassBlock,typescriptClassExtends
    +  \ contained skipwhite skipnl
    +
    +syntax keyword typescriptClassExtends          contained extends implements nextgroup=typescriptClassHeritage skipwhite skipnl
    +
    +syntax match   typescriptClassHeritage         contained /\v(\k|\.|\(|\))+/
    +  \ nextgroup=typescriptClassBlock,typescriptClassExtends,typescriptMixinComma,typescriptClassTypeArguments
    +  \ contains=@typescriptValue
    +  \ skipwhite skipnl
    +  \ contained
    +
    +syntax region typescriptClassTypeArguments matchgroup=typescriptTypeBrackets
    +  \ start=//
    +  \ contains=@typescriptType
    +  \ nextgroup=typescriptClassExtends,typescriptClassBlock,typescriptMixinComma
    +  \ contained skipwhite skipnl
    +
    +syntax match typescriptMixinComma /,/ contained nextgroup=typescriptClassHeritage skipwhite skipnl
    +
    +" we need add arrowFunc to class block for high order arrow func
    +" see test case
    +syntax region  typescriptClassBlock matchgroup=typescriptBraces start=/{/ end=/}/
    +  \ contains=@typescriptPropertyMemberDeclaration,typescriptAbstract,@typescriptComments,typescriptBlock,typescriptAssign,typescriptDecorator,typescriptAsyncFuncKeyword,typescriptArrowFunc
    +  \ contained fold
    +
    +syntax keyword typescriptInterfaceKeyword          interface nextgroup=typescriptInterfaceName skipwhite
    +syntax match   typescriptInterfaceName             contained /\k\+/
    +  \ nextgroup=typescriptObjectType,typescriptInterfaceExtends,typescriptInterfaceTypeParameter
    +  \ skipwhite skipnl
    +syntax region typescriptInterfaceTypeParameter
    +  \ start=//
    +  \ contains=@typescriptTypeParameterCluster
    +  \ nextgroup=typescriptObjectType,typescriptInterfaceExtends
    +  \ contained
    +  \ skipwhite skipnl
    +
    +syntax keyword typescriptInterfaceExtends          contained extends nextgroup=typescriptInterfaceHeritage skipwhite skipnl
    +
    +syntax match typescriptInterfaceHeritage contained /\v(\k|\.)+/
    +  \ nextgroup=typescriptObjectType,typescriptInterfaceComma,typescriptInterfaceTypeArguments
    +  \ skipwhite
    +
    +syntax region typescriptInterfaceTypeArguments matchgroup=typescriptTypeBrackets
    +  \ start=// skip=/\s*,\s*/
    +  \ contains=@typescriptType
    +  \ nextgroup=typescriptObjectType,typescriptInterfaceComma
    +  \ contained skipwhite
    +
    +syntax match typescriptInterfaceComma /,/ contained nextgroup=typescriptInterfaceHeritage skipwhite skipnl
    +
    +"Block VariableStatement EmptyStatement ExpressionStatement IfStatement IterationStatement ContinueStatement BreakStatement ReturnStatement WithStatement LabelledStatement SwitchStatement ThrowStatement TryStatement DebuggerStatement
    +syntax cluster typescriptStatement
    +  \ contains=typescriptBlock,typescriptVariable,typescriptUsing,
    +  \ @typescriptTopExpression,typescriptAssign,
    +  \ typescriptConditional,typescriptRepeat,typescriptBranch,
    +  \ typescriptLabel,typescriptStatementKeyword,
    +  \ typescriptFuncKeyword,
    +  \ typescriptTry,typescriptExceptions,typescriptDebugger,
    +  \ typescriptExport,typescriptInterfaceKeyword,typescriptEnum,
    +  \ typescriptModule,typescriptAliasKeyword,typescriptImport
    +
    +syntax cluster typescriptPrimitive  contains=typescriptString,typescriptTemplate,typescriptRegexpString,typescriptNumber,typescriptBoolean,typescriptNull,typescriptArray
    +
    +syntax cluster typescriptEventTypes            contains=typescriptEventString,typescriptTemplate,typescriptNumber,typescriptBoolean,typescriptNull
    +
    +" top level expression: no arrow func
    +" also no func keyword. funcKeyword is contained in statement
    +" funcKeyword allows overloading (func without body)
    +" funcImpl requires body
    +syntax cluster typescriptTopExpression
    +  \ contains=@typescriptPrimitive,
    +  \ typescriptIdentifier,typescriptIdentifierName,
    +  \ typescriptOperator,typescriptUnaryOp,
    +  \ typescriptParenExp,typescriptRegexpString,
    +  \ typescriptGlobal,typescriptAsyncFuncKeyword,
    +  \ typescriptClassKeyword,typescriptTypeCast
    +
    +" no object literal, used in type cast and arrow func
    +" TODO: change func keyword to funcImpl
    +syntax cluster typescriptExpression
    +  \ contains=@typescriptTopExpression,
    +  \ typescriptArrowFuncDef,
    +  \ typescriptFuncImpl
    +
    +syntax cluster typescriptValue
    +  \ contains=@typescriptExpression,typescriptObjectLiteral
    +
    +syntax cluster typescriptEventExpression       contains=typescriptArrowFuncDef,typescriptParenExp,@typescriptValue,typescriptRegexpString,@typescriptEventTypes,typescriptOperator,typescriptGlobal,jsxRegion
    +
    +syntax keyword typescriptAsyncFuncKeyword      async
    +  \ nextgroup=typescriptFuncKeyword,typescriptArrowFuncDef,typescriptArrowFuncTypeParameter
    +  \ skipwhite
    +
    +syntax keyword typescriptAsyncFuncKeyword      await
    +  \ nextgroup=@typescriptValue,typescriptUsing
    +  \ skipwhite
    +
    +syntax keyword typescriptFuncKeyword function nextgroup=typescriptAsyncFunc,typescriptFuncName,@typescriptCallSignature skipwhite skipempty
    +
    +syntax match   typescriptAsyncFunc             contained /*/
    +  \ nextgroup=typescriptFuncName,@typescriptCallSignature
    +  \ skipwhite skipempty
    +
    +syntax match   typescriptFuncName              contained /\K\k*/
    +  \ nextgroup=@typescriptCallSignature
    +  \ skipwhite
    +
    +syntax match   typescriptArrowFuncDef          contained /\K\k*\s*=>/
    +  \ contains=typescriptArrowFuncArg,typescriptArrowFunc
    +  \ nextgroup=@typescriptExpression,typescriptBlock
    +  \ skipwhite skipempty
    +
    +syntax match   typescriptArrowFuncDef          contained /(\%(\_[^()]\+\|(\_[^()]*)\)*)\_s*=>/
    +  \ contains=typescriptArrowFuncArg,typescriptArrowFunc,@typescriptCallSignature
    +  \ nextgroup=@typescriptExpression,typescriptBlock
    +  \ skipwhite skipempty
    +
    +syntax region  typescriptArrowFuncDef          contained start=/(\%(\_[^()]\+\|(\_[^()]*)\)*):/ matchgroup=typescriptArrowFunc end=/=>/
    +  \ contains=typescriptArrowFuncArg,typescriptTypeAnnotation,@typescriptCallSignature
    +  \ nextgroup=@typescriptExpression,typescriptBlock
    +  \ skipwhite skipempty keepend
    +
    +syntax region  typescriptArrowFuncTypeParameter start=//
    +  \ contains=@typescriptTypeParameterCluster
    +  \ nextgroup=typescriptArrowFuncDef
    +  \ contained skipwhite skipnl
    +
    +syntax match   typescriptArrowFunc             /=>/
    +syntax match   typescriptArrowFuncArg          contained /\K\k*/
    +
    +syntax region typescriptReturnAnnotation contained start=/:/ end=/{/me=e-1 contains=@typescriptType nextgroup=typescriptBlock
    +
    +
    +syntax region typescriptFuncImpl contained start=/function\>/ end=/{\|;\|\n/me=e-1
    +  \ contains=typescriptFuncKeyword
    +  \ nextgroup=typescriptBlock
    +
    +syntax cluster typescriptCallImpl contains=typescriptGenericImpl,typescriptParamImpl
    +syntax region typescriptGenericImpl matchgroup=typescriptTypeBrackets
    +  \ start=// skip=/\s*,\s*/
    +  \ contains=typescriptTypeParameter
    +  \ nextgroup=typescriptParamImpl
    +  \ contained skipwhite
    +syntax region typescriptParamImpl matchgroup=typescriptParens
    +  \ start=/(/ end=/)/
    +  \ contains=typescriptDecorator,@typescriptParameterList,@typescriptComments
    +  \ nextgroup=typescriptReturnAnnotation,typescriptBlock
    +  \ contained skipwhite skipnl
    +
    +syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/
    +  \ nextgroup=typescriptFuncCallArg,typescriptTypeArguments
    +  \ contains=@_semantic,typescriptDotNotation
    +
    +
    +hi def link typescriptReserved              Error
    +
    +hi def link typescriptEndColons             Exception
    +hi def link typescriptSymbols               Normal
    +hi def link typescriptBraces                Function
    +hi def link typescriptParens                Normal
    +hi def link typescriptComment               Comment
    +hi def link typescriptLineComment           Comment
    +hi def link typescriptDocComment            Comment
    +hi def link typescriptCommentTodo           Todo
    +hi def link typescriptMagicComment          SpecialComment
    +hi def link typescriptRef                   Include
    +hi def link typescriptDocNotation           SpecialComment
    +hi def link typescriptDocTags               SpecialComment
    +hi def link typescriptDocNGParam            typescriptDocParam
    +hi def link typescriptDocParam              Function
    +hi def link typescriptDocNumParam           Function
    +hi def link typescriptDocEventRef           Function
    +hi def link typescriptDocNamedParamType     Type
    +hi def link typescriptDocParamName          Type
    +hi def link typescriptDocParamType          Type
    +hi def link typescriptString                String
    +hi def link typescriptSpecial               Special
    +hi def link typescriptStringLiteralType     String
    +hi def link typescriptTemplateLiteralType   String
    +hi def link typescriptStringMember          String
    +hi def link typescriptTemplate              String
    +hi def link typescriptEventString           String
    +hi def link typescriptDestructureString     String
    +hi def link typescriptASCII                 Special
    +hi def link typescriptTemplateSB            Label
    +hi def link typescriptRegexpString          String
    +hi def link typescriptGlobal                Constant
    +hi def link typescriptTestGlobal            Function
    +hi def link typescriptPrototype             Type
    +hi def link typescriptConditional           Conditional
    +hi def link typescriptConditionalElse       Conditional
    +hi def link typescriptCase                  Conditional
    +hi def link typescriptDefault               typescriptCase
    +hi def link typescriptBranch                Conditional
    +hi def link typescriptIdentifier            Structure
    +hi def link typescriptVariable              Keyword
    +hi def link typescriptUsing                 Identifier
    +hi def link typescriptDestructureVariable   PreProc
    +hi def link typescriptEnumKeyword           Identifier
    +hi def link typescriptRepeat                Repeat
    +hi def link typescriptForOperator           Repeat
    +hi def link typescriptStatementKeyword      Statement
    +hi def link typescriptMessage               Keyword
    +hi def link typescriptOperator              Operator
    +hi def link typescriptKeywordOp             Operator
    +hi def link typescriptCastKeyword           Special
    +hi def link typescriptType                  Type
    +hi def link typescriptNull                  Boolean
    +hi def link typescriptNumber                Number
    +hi def link typescriptBoolean               Boolean
    +hi def link typescriptObjectLabel           typescriptLabel
    +hi def link typescriptDestructureLabel      Function
    +hi def link typescriptLabel                 Label
    +hi def link typescriptTupleLable            Label
    +hi def link typescriptStringProperty        String
    +hi def link typescriptImport                Keyword
    +hi def link typescriptImportType            Keyword
    +hi def link typescriptImportDefer           Keyword
    +hi def link typescriptAmbientDeclaration    Keyword
    +hi def link typescriptExport                Keyword
    +hi def link typescriptExportType            Keyword
    +hi def link typescriptModule                Keyword
    +hi def link typescriptTry                   Exception
    +hi def link typescriptExceptions            Exception
    +
    +hi def link typescriptMember                Function
    +hi def link typescriptMethodAccessor        Operator
    +
    +hi def link typescriptAsyncFuncKeyword      Keyword
    +hi def link typescriptObjectAsyncKeyword    Keyword
    +hi def link typescriptAsyncFor              Keyword
    +hi def link typescriptFuncKeyword           Keyword
    +hi def link typescriptAsyncFunc             Keyword
    +hi def link typescriptArrowFunc             Type
    +hi def link typescriptFuncName              Function
    +hi def link typescriptFuncCallArg           PreProc
    +hi def link typescriptArrowFuncArg          PreProc
    +hi def link typescriptFuncComma             Operator
    +
    +hi def link typescriptClassKeyword          Keyword
    +hi def link typescriptClassExtends          Keyword
    +hi def link typescriptAbstract              Special
    +hi def link typescriptClassStatic           StorageClass
    +hi def link typescriptReadonlyModifier      StorageClass
    +hi def link typescriptInterfaceKeyword      Keyword
    +hi def link typescriptInterfaceExtends      Keyword
    +hi def link typescriptInterfaceName         Function
    +
    +hi def link shellbang                       Comment
    +
    +hi def link typescriptTypeParameter         Identifier
    +hi def link typescriptConstraint            Keyword
    +hi def link typescriptPredefinedType        Type
    +hi def link typescriptReadonlyArrayKeyword  Keyword
    +hi def link typescriptUnion                 Operator
    +hi def link typescriptFuncTypeArrow         Function
    +hi def link typescriptConstructorType       Function
    +hi def link typescriptTypeQuery             Keyword
    +hi def link typescriptAccessibilityModifier Keyword
    +hi def link typescriptAutoAccessor          Keyword
    +hi def link typescriptOptionalMark          PreProc
    +hi def link typescriptFuncType              Special
    +hi def link typescriptMappedIn              Special
    +hi def link typescriptCall                  PreProc
    +hi def link typescriptParamImpl             PreProc
    +hi def link typescriptConstructSignature    Identifier
    +hi def link typescriptAliasDeclaration      Identifier
    +hi def link typescriptAliasKeyword          Keyword
    +hi def link typescriptUserDefinedType       Keyword
    +hi def link typescriptTypeReference         Identifier
    +hi def link typescriptConstructor           Keyword
    +hi def link typescriptDecorator             Special
    +hi def link typescriptAssertType            Keyword
    +
    +hi def link typeScript                      NONE
    +
    +if exists('s:cpo_save')
    +  let &cpo = s:cpo_save
    +  unlet s:cpo_save
    +endif
    diff --git a/git/usr/share/vim/vim92/syntax/sicad.vim b/git/usr/share/vim/vim92/syntax/sicad.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..20eb14cba10a8cc941b23fe768479371acf7cd05
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sicad.vim
    @@ -0,0 +1,390 @@
    +" Vim syntax file
    +" Language:     SiCAD (procedure language)
    +" Maintainer:   Zsolt Branyiczky 
    +" Last Change:  2003 May 11
    +" URL:		http://lmark.mgx.hu:81/download/vim/sicad.vim
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +" use SQL highlighting after 'sql' command
    +syn include @SQL syntax/sql.vim
    +unlet b:current_syntax
    +
    +" spaces are used in (auto)indents since sicad hates tabulator characters
    +setlocal expandtab
    +
    +" ignore case
    +syn case ignore
    +
    +" most important commands - not listed by ausku
    +syn keyword sicadStatement define
    +syn keyword sicadStatement dialog
    +syn keyword sicadStatement do
    +syn keyword sicadStatement dop contained
    +syn keyword sicadStatement end
    +syn keyword sicadStatement enddo
    +syn keyword sicadStatement endp
    +syn keyword sicadStatement erroff
    +syn keyword sicadStatement erron
    +syn keyword sicadStatement exitp
    +syn keyword sicadGoto      goto contained
    +syn keyword sicadStatement hh
    +syn keyword sicadStatement if
    +syn keyword sicadStatement in
    +syn keyword sicadStatement msgsup
    +syn keyword sicadStatement out
    +syn keyword sicadStatement padd
    +syn keyword sicadStatement parbeg
    +syn keyword sicadStatement parend
    +syn keyword sicadStatement pdoc
    +syn keyword sicadStatement pprot
    +syn keyword sicadStatement procd
    +syn keyword sicadStatement procn
    +syn keyword sicadStatement psav
    +syn keyword sicadStatement psel
    +syn keyword sicadStatement psymb
    +syn keyword sicadStatement ptrace
    +syn keyword sicadStatement ptstat
    +syn keyword sicadStatement set
    +syn keyword sicadStatement sql contained
    +syn keyword sicadStatement step
    +syn keyword sicadStatement sys
    +syn keyword sicadStatement ww
    +
    +" functions
    +syn match sicadStatement "\"me=s+1
    +syn match sicadStatement "\"me=s+1
    +
    +" logical operators
    +syn match sicadOperator "\.and\."
    +syn match sicadOperator "\.ne\."
    +syn match sicadOperator "\.not\."
    +syn match sicadOperator "\.eq\."
    +syn match sicadOperator "\.ge\."
    +syn match sicadOperator "\.gt\."
    +syn match sicadOperator "\.le\."
    +syn match sicadOperator "\.lt\."
    +syn match sicadOperator "\.or\."
    +syn match sicadOperator "\.eqv\."
    +syn match sicadOperator "\.neqv\."
    +
    +" variable name
    +syn match sicadIdentifier "%g\=[irpt][0-9]\{1,2}\>"
    +syn match sicadIdentifier "%g\=l[0-9]\>"
    +syn match sicadIdentifier "%g\=[irptl]("me=e-1
    +syn match sicadIdentifier "%error\>"
    +syn match sicadIdentifier "%nsel\>"
    +syn match sicadIdentifier "%nvar\>"
    +syn match sicadIdentifier "%scl\>"
    +syn match sicadIdentifier "%wd\>"
    +syn match sicadIdentifier "\$[irt][0-9]\{1,2}\>" contained
    +
    +" label
    +syn match sicadLabel1 "^ *\.[a-z][a-z0-9]\{0,7} \+[^ ]"me=e-1
    +syn match sicadLabel1 "^ *\.[a-z][a-z0-9]\{0,7}\*"me=e-1
    +syn match sicadLabel2 "\" contains=sicadGoto
    +syn match sicadLabel2 "\" contains=sicadGoto
    +
    +" boolean
    +syn match sicadBoolean "\.[ft]\."
    +" integer without sign
    +syn match sicadNumber "\<[0-9]\+\>"
    +" floating point number, with dot, optional exponent
    +syn match sicadFloat "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\>"
    +" floating point number, starting with a dot, optional exponent
    +syn match sicadFloat "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=\>"
    +" floating point number, without dot, with exponent
    +syn match sicadFloat "\<[0-9]\+e[-+]\=[0-9]\+\>"
    +
    +" without this extraString definition a ' ;  ' could stop the comment
    +syn region sicadString_ transparent start=+'+ end=+'+ oneline contained
    +" string
    +syn region sicadString start=+'+ end=+'+ oneline
    +
    +" comments - nasty ones in sicad
    +
    +" - ' *  blabla' or ' *  blabla;'
    +syn region sicadComment start="^ *\*" skip='\\ *$' end=";"me=e-1 end="$" contains=sicadString_
    +" - ' .LABEL03 *  blabla' or ' .LABEL03 *  blabla;'
    +syn region sicadComment start="^ *\.[a-z][a-z0-9]\{0,7} *\*" skip='\\ *$' end=";"me=e-1 end="$" contains=sicadLabel1,sicadString_
    +" - '; * blabla' or '; * blabla;'
    +syn region sicadComment start="; *\*"ms=s+1 skip='\\ *$' end=";"me=e-1 end="$" contains=sicadString_
    +" - comments between docbeg and docend
    +syn region sicadComment matchgroup=sicadStatement start="\" end="\"
    +
    +" catch \ at the end of line
    +syn match sicadLineCont "\\ *$"
    +
    +" parameters in dop block - for the time being it is not used
    +"syn match sicadParameter " [a-z][a-z0-9]*[=:]"me=e-1 contained
    +" dop block - for the time being it is not used
    +syn region sicadDopBlock transparent matchgroup=sicadStatement start='\' skip='\\ *$' end=';'me=e-1 end='$' contains=ALL
    +
    +" sql block - new highlighting mode is used (see syn include)
    +syn region sicadSqlBlock transparent matchgroup=sicadStatement start='\' skip='\\ *$' end=';'me=e-1 end='$' contains=@SQL,sicadIdentifier,sicadLineCont
    +
    +" synchronizing
    +syn sync clear  " clear sync used in sql.vim
    +syn sync match sicadSyncComment groupthere NONE "\"
    +syn sync match sicadSyncComment grouphere sicadComment "\"
    +" next line must be examined too
    +syn sync linecont "\\ *$"
    +
    +" catch error caused by tabulator key
    +syn match sicadError "\t"
    +" catch errors caused by wrong parenthesis
    +"syn region sicadParen transparent start='(' end=')' contains=ALLBUT,sicadParenError
    +syn region sicadParen transparent start='(' skip='\\ *$' end=')' end='$' contains=ALLBUT,sicadParenError
    +syn match sicadParenError ')'
    +"syn region sicadApostrophe transparent start=+'+ end=+'+ contains=ALLBUT,sicadApostropheError
    +"syn match sicadApostropheError +'+
    +" not closed apostrophe
    +"syn region sicadError start=+'+ end=+$+ contains=ALLBUT,sicadApostropheError
    +"syn match sicadApostropheError +'[^']*$+me=s+1 contained
    +
    +" SICAD keywords
    +syn keyword sicadStatement abst add addsim adrin aib
    +syn keyword sicadStatement aibzsn aidump aifgeo aisbrk alknam
    +syn keyword sicadStatement alknr alksav alksel alktrc alopen
    +syn keyword sicadStatement ansbo aractiv ararea arareao ararsfs
    +syn keyword sicadStatement arbuffer archeck arcomv arcont arconv
    +syn keyword sicadStatement arcopy arcopyo arcorr arcreate arerror
    +syn keyword sicadStatement areval arflfm arflop arfrast argbkey
    +syn keyword sicadStatement argenf argraph argrapho arinters arkompfl
    +syn keyword sicadStatement arlasso arlcopy arlgraph arline arlining
    +syn keyword sicadStatement arlisly armakea armemo arnext aroverl
    +syn keyword sicadStatement arovers arparkmd arpars arrefp arselect
    +syn keyword sicadStatement arset arstruct arunify arupdate arvector
    +syn keyword sicadStatement arveinfl arvflfl arvoroni ausku basis
    +syn keyword sicadStatement basisaus basisdar basisnr bebos befl
    +syn keyword sicadStatement befla befli befls beo beorta
    +syn keyword sicadStatement beortn bep bepan bepap bepola
    +syn keyword sicadStatement bepoln bepsn bepsp ber berili
    +syn keyword sicadStatement berk bewz bkl bli bma
    +syn keyword sicadStatement bmakt bmakts bmbm bmerk bmerw
    +syn keyword sicadStatement bmerws bminit bmk bmorth bmos
    +syn keyword sicadStatement bmoss bmpar bmsl bmsum bmsums
    +syn keyword sicadStatement bmver bmvero bmw bo bta
    +syn keyword sicadStatement buffer bvl bw bza bzap
    +syn keyword sicadStatement bzd bzgera bzorth cat catel
    +syn keyword sicadStatement cdbdiff ce cgmparam close closesim
    +syn keyword sicadStatement comgener comp comp conclose conclose coninfo
    +syn keyword sicadStatement conopen conread contour conwrite cop
    +syn keyword sicadStatement copar coparp coparp2 copel cr
    +syn keyword sicadStatement cs cstat cursor d da
    +syn keyword sicadStatement dal dasp dasps dataout dcol
    +syn keyword sicadStatement dd defsr del delel deskrdef
    +syn keyword sicadStatement df dfn dfns dfpos dfr
    +syn keyword sicadStatement dgd dgm dgp dgr dh
    +syn keyword sicadStatement diag diaus dir disbsd dkl
    +syn keyword sicadStatement dktx dkur dlgfix dlgfre dma
    +syn keyword sicadStatement dprio dr druse dsel dskinfo
    +syn keyword sicadStatement dsr dv dve eba ebd
    +syn keyword sicadStatement ebdmod ebs edbsdbin edbssnin edbsvtin
    +syn keyword sicadStatement edt egaus egdef egdefs eglist
    +syn keyword sicadStatement egloe egloenp egloes egxx eib
    +syn keyword sicadStatement ekur ekuradd elel elpos epg
    +syn keyword sicadStatement esau esauadd esek eta etap
    +syn keyword sicadStatement etav feparam ficonv filse fl
    +syn keyword sicadStatement fli flin flini flinit flins
    +syn keyword sicadStatement flkor fln flnli flop flout
    +syn keyword sicadStatement flowert flparam flraster flsy flsyd
    +syn keyword sicadStatement flsym flsyms flsymt fmtatt fmtdia
    +syn keyword sicadStatement fmtlib fpg gbadddb gbaim gbanrs
    +syn keyword sicadStatement gbatw gbau gbaudit gbclosp gbcredic
    +syn keyword sicadStatement gbcreem gbcreld gbcresdb gbcretd gbde
    +syn keyword sicadStatement gbdeldb gbdeldic gbdelem gbdelld gbdelref
    +syn keyword sicadStatement gbdeltd gbdisdb gbdisem gbdisld gbdistd
    +syn keyword sicadStatement gbebn gbemau gbepsv gbgetdet gbgetes
    +syn keyword sicadStatement gbgetmas gbgqel gbgqelr gbgqsa gbgrant
    +syn keyword sicadStatement gbimpdic gbler gblerb gblerf gbles
    +syn keyword sicadStatement gblocdic gbmgmg gbmntdb gbmoddb gbnam
    +syn keyword sicadStatement gbneu gbopenp gbpoly gbpos gbpruef
    +syn keyword sicadStatement gbpruefg gbps gbqgel gbqgsa gbrefdic
    +syn keyword sicadStatement gbreftab gbreldic gbresem gbrevoke gbsav
    +syn keyword sicadStatement gbsbef gbsddk gbsicu gbsrt gbss
    +syn keyword sicadStatement gbstat gbsysp gbszau gbubp gbueb
    +syn keyword sicadStatement gbunmdb gbuseem gbw gbweg gbwieh
    +syn keyword sicadStatement gbzt gelp gera getvar hgw
    +syn keyword sicadStatement hpg hr0 hra hrar icclchan
    +syn keyword sicadStatement iccrecon icdescon icfree icgetcon icgtresp
    +syn keyword sicadStatement icopchan icputcon icreacon icreqd icreqnw
    +syn keyword sicadStatement icreqw icrespd icresrve icwricon imsget
    +syn keyword sicadStatement imsgqel imsmget imsplot imsprint inchk
    +syn keyword sicadStatement inf infd inst kbml kbmls
    +syn keyword sicadStatement kbmm kbmms kbmt kbmtdps kbmts
    +syn keyword sicadStatement khboe khbol khdob khe khetap
    +syn keyword sicadStatement khfrw khktk khlang khld khmfrp
    +syn keyword sicadStatement khmks khms khpd khpfeil khpl
    +syn keyword sicadStatement khprofil khrand khsa khsabs khsaph
    +syn keyword sicadStatement khsd khsdl khse khskbz khsna
    +syn keyword sicadStatement khsnum khsob khspos khsvph khtrn
    +syn keyword sicadStatement khver khzpe khzpl kib kldat
    +syn keyword sicadStatement klleg klsch klsym klvert kmpg
    +syn keyword sicadStatement kmtlage kmtp kmtps kodef kodefp
    +syn keyword sicadStatement kodefs kok kokp kolae kom
    +syn keyword sicadStatement kontly kopar koparp kopg kosy
    +syn keyword sicadStatement kp kr krsek krtclose krtopen
    +syn keyword sicadStatement ktk lad lae laesel language
    +syn keyword sicadStatement lasso lbdes lcs ldesk ldesks
    +syn keyword sicadStatement le leak leattdes leba lebas
    +syn keyword sicadStatement lebaznp lebd lebm lebv lebvaus
    +syn keyword sicadStatement lebvlist lede ledel ledepo ledepol
    +syn keyword sicadStatement ledepos leder ledist ledm lee
    +syn keyword sicadStatement leeins lees lege lekr lekrend
    +syn keyword sicadStatement lekwa lekwas lel lelh lell
    +syn keyword sicadStatement lelp lem lena lend lenm
    +syn keyword sicadStatement lep lepe lepee lepko lepl
    +syn keyword sicadStatement lepmko lepmkop lepos leposm leqs
    +syn keyword sicadStatement leqsl leqssp leqsv leqsvov les
    +syn keyword sicadStatement lesch lesr less lestd let
    +syn keyword sicadStatement letaum letl lev levm levtm
    +syn keyword sicadStatement levtp levtr lew lewm lexx
    +syn keyword sicadStatement lfs li lining lldes lmode
    +syn keyword sicadStatement loedk loepkt lop lose loses
    +syn keyword sicadStatement lp lppg lppruef lr ls
    +syn keyword sicadStatement lsop lsta lstat ly lyaus
    +syn keyword sicadStatement lz lza lzae lzbz lze
    +syn keyword sicadStatement lznr lzo lzpos ma ma0
    +syn keyword sicadStatement ma1 mad map mapoly mcarp
    +syn keyword sicadStatement mccfr mccgr mcclr mccrf mcdf
    +syn keyword sicadStatement mcdma mcdr mcdrp mcdve mcebd
    +syn keyword sicadStatement mcgse mcinfo mcldrp md me
    +syn keyword sicadStatement mefd mefds minmax mipg ml
    +syn keyword sicadStatement mmcmdme mmdbf mmdellb mmdir mmdome
    +syn keyword sicadStatement mmfsb mminfolb mmlapp mmlbf mmlistlb
    +syn keyword sicadStatement mmloadcm mmmsg mmreadlb mmsetlb mmshowcm
    +syn keyword sicadStatement mmstatme mnp mpo mr mra
    +syn keyword sicadStatement ms msav msgout msgsnd msp
    +syn keyword sicadStatement mspf mtd nasel ncomp new
    +syn keyword sicadStatement nlist nlistlt nlistly nlistnp nlistpo
    +syn keyword sicadStatement np npa npdes npe npem
    +syn keyword sicadStatement npinfa npruef npsat npss npssa
    +syn keyword sicadStatement ntz oa oan odel odf
    +syn keyword sicadStatement odfx oj oja ojaddsk ojaed
    +syn keyword sicadStatement ojaeds ojaef ojaefs ojaen ojak
    +syn keyword sicadStatement ojaks ojakt ojakz ojalm ojatkis
    +syn keyword sicadStatement ojatt ojatw ojbsel ojcasel ojckon
    +syn keyword sicadStatement ojde ojdtl ojeb ojebd ojel
    +syn keyword sicadStatement ojelpas ojesb ojesbd ojex ojezge
    +syn keyword sicadStatement ojko ojlb ojloe ojlsb ojmerk
    +syn keyword sicadStatement ojmos ojnam ojpda ojpoly ojprae
    +syn keyword sicadStatement ojs ojsak ojsort ojstrukt ojsub
    +syn keyword sicadStatement ojtdef ojvek ojx old oldd
    +syn keyword sicadStatement op opa opa1 open opensim
    +syn keyword sicadStatement opnbsd orth osanz ot otp
    +syn keyword sicadStatement otrefp param paranf pas passw
    +syn keyword sicadStatement pcatchf pda pdadd pg pg0
    +syn keyword sicadStatement pgauf pgaufsel pgb pgko pgm
    +syn keyword sicadStatement pgr pgvs pily pkpg plot
    +syn keyword sicadStatement plotf plotfr pmap pmdata pmdi
    +syn keyword sicadStatement pmdp pmeb pmep pminfo pmlb
    +syn keyword sicadStatement pmli pmlp pmmod pnrver poa
    +syn keyword sicadStatement pos posa posaus post printfr
    +syn keyword sicadStatement protect prs prssy prsym ps
    +syn keyword sicadStatement psadd psclose psopen psparam psprw
    +syn keyword sicadStatement psres psstat psw pswr qualif
    +syn keyword sicadStatement rahmen raster rasterd rbbackup rbchang2
    +syn keyword sicadStatement rbchange rbcmd rbcoldst rbcolor rbcopy
    +syn keyword sicadStatement rbcut rbcut2 rbdbcl rbdbload rbdbop
    +syn keyword sicadStatement rbdbwin rbdefs rbedit rbfdel rbfill
    +syn keyword sicadStatement rbfill2 rbfload rbfload2 rbfnew rbfnew2
    +syn keyword sicadStatement rbfpar rbfree rbg rbgetcol rbgetdst
    +syn keyword sicadStatement rbinfo rbpaste rbpixel rbrstore rbsnap
    +syn keyword sicadStatement rbsta rbtile rbtrpix rbvtor rcol
    +syn keyword sicadStatement rd rdchange re reb rebmod
    +syn keyword sicadStatement refunc ren renel rk rkpos
    +syn keyword sicadStatement rohr rohrpos rpr rr rr0
    +syn keyword sicadStatement rra rrar rs samtosdb sav
    +syn keyword sicadStatement savd savesim savx scol scopy
    +syn keyword sicadStatement scopye sdbtosam sddk sdwr se
    +syn keyword sicadStatement selaus selpos seman semi sesch
    +syn keyword sicadStatement setscl setvar sfclntpf sfconn sffetchf
    +syn keyword sicadStatement sffpropi sfftypi sfqugeoc sfquwhcl sfself
    +syn keyword sicadStatement sfstat sftest sge sid sie
    +syn keyword sicadStatement sig sigp skk skks sn
    +syn keyword sicadStatement sn21 snpa snpar snparp snparps
    +syn keyword sicadStatement snpars snpas snpd snpi snpkor
    +syn keyword sicadStatement snpl snpm sob sob0 sobloe
    +syn keyword sicadStatement sobs sof sop split spr
    +syn keyword sicadStatement sqdadd sqdlad sqdold sqdsav
    +syn keyword sicadStatement sr sres srt sset stat
    +syn keyword sicadStatement stdtxt string strukt strupru suinfl
    +syn keyword sicadStatement suinflk suinfls supo supo1 sva
    +syn keyword sicadStatement svr sy sya syly sysout
    +syn keyword sicadStatement syu syux taa tabeg tabl
    +syn keyword sicadStatement tabm tam tanr tapg tapos
    +syn keyword sicadStatement tarkd tas tase tb tbadd
    +syn keyword sicadStatement tbd tbext tbget tbint tbout
    +syn keyword sicadStatement tbput tbsat tbsel tbstr tcaux
    +syn keyword sicadStatement tccable tcchkrep tccomm tccond tcdbg
    +syn keyword sicadStatement tcgbnr tcgrpos tcinit tclconv tcmodel
    +syn keyword sicadStatement tcnwe tcpairs tcpath tcrect tcrmdli
    +syn keyword sicadStatement tcscheme tcschmap tcse tcselc tcstar
    +syn keyword sicadStatement tcstrman tcsubnet tcsymbol tctable tcthrcab
    +syn keyword sicadStatement tctrans tctst tdb tdbdel tdbget
    +syn keyword sicadStatement tdblist tdbput tgmod titel tmoff
    +syn keyword sicadStatement tmon tp tpa tps tpta
    +syn keyword sicadStatement tra trans transkdo transopt transpro
    +syn keyword sicadStatement triangle trm trpg trrkd trs
    +syn keyword sicadStatement ts tsa tx txa txchk
    +syn keyword sicadStatement txcng txju txl txp txpv
    +syn keyword sicadStatement txtcmp txv txz uckon uiinfo
    +syn keyword sicadStatement uistatus umdk umdk1 umdka umge
    +syn keyword sicadStatement umges umr verbo verflli verif
    +syn keyword sicadStatement verly versinfo vfg vpactive vpcenter
    +syn keyword sicadStatement vpcreate vpdelete vpinfo vpmodify vpscroll
    +syn keyword sicadStatement vpsta wabsym wzmerk zdrhf zdrhfn
    +syn keyword sicadStatement zdrhfw zdrhfwn zefp zfl zflaus
    +syn keyword sicadStatement zka zlel zlels zortf zortfn
    +syn keyword sicadStatement zortfw zortfwn zortp zortpn zparb
    +syn keyword sicadStatement zparbn zparf zparfn zparfw zparfwn
    +syn keyword sicadStatement zparp zparpn zwinkp zwinkpn
    +
    +" Define the default highlighting.
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link sicadLabel PreProc
    +hi def link sicadLabel1 sicadLabel
    +hi def link sicadLabel2 sicadLabel
    +hi def link sicadConditional Conditional
    +hi def link sicadBoolean Boolean
    +hi def link sicadNumber Number
    +hi def link sicadFloat Float
    +hi def link sicadOperator Operator
    +hi def link sicadStatement Statement
    +hi def link sicadParameter sicadStatement
    +hi def link sicadGoto sicadStatement
    +hi def link sicadLineCont sicadStatement
    +hi def link sicadString String
    +hi def link sicadComment Comment
    +hi def link sicadSpecial Special
    +hi def link sicadIdentifier Type
    +"  hi def link sicadIdentifier Identifier
    +hi def link sicadError Error
    +hi def link sicadParenError sicadError
    +hi def link sicadApostropheError sicadError
    +hi def link sicadStringError sicadError
    +hi def link sicadCommentError sicadError
    +"  hi def link sqlStatement Special  " modified highlight group in sql.vim
    +
    +
    +let b:current_syntax = "sicad"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/sieve.vim b/git/usr/share/vim/vim92/syntax/sieve.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..35b4dfb79c5e0b2a73582abc6c47f69281d0e404
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sieve.vim
    @@ -0,0 +1,55 @@
    +" Vim syntax file
    +" Language:             Sieve filtering language input file
    +" Previous Maintainer:  Nikolai Weibull 
    +" Latest Revision:      2007-10-25
    +
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +syn keyword sieveTodo         contained TODO FIXME XXX NOTE
    +
    +syn region  sieveComment      start='/\*' end='\*/' contains=sieveTodo,@Spell
    +syn region  sieveComment      display oneline start='#' end='$'
    +                              \ contains=sieveTodo,@Spell
    +
    +syn case ignore
    +
    +syn match   sieveTag          display ':\h\w*'
    +
    +syn match   sieveNumber       display '\<\d\+[KMG]\=\>'
    +
    +syn match   sieveSpecial      display '\\["\\]'
    +
    +syn region  sieveString       start=+"+ skip=+\\\\\|\\"+ end=+"+
    +                              \ contains=sieveSpecial
    +syn region  sieveString       start='text:' end='\n.\n'
    +
    +syn keyword sieveConditional  if elsif else
    +syn keyword sieveTest         address allof anyof envelope exists false header
    +                              \ not size true
    +syn keyword sievePreProc      require stop
    +syn keyword sieveAction       reject fileinto redirect keep discard
    +syn keyword sieveKeyword      vacation
    +
    +syn case match
    +
    +hi def link sieveTodo        Todo
    +hi def link sieveComment     Comment
    +hi def link sieveTag         Type
    +hi def link sieveNumber      Number
    +hi def link sieveSpecial     Special
    +hi def link sieveString      String
    +hi def link sieveConditional Conditional
    +hi def link sieveTest        Keyword
    +hi def link sievePreProc     PreProc
    +hi def link sieveAction      Function
    +hi def link sieveKeyword     Keyword
    +
    +let b:current_syntax = "sieve"
    +
    +let &cpo = s:cpo_save
    +unlet s:cpo_save
    diff --git a/git/usr/share/vim/vim92/syntax/sil.vim b/git/usr/share/vim/vim92/syntax/sil.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..43158da4a890d9e13977e7fdaf7e146535075f8c
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sil.vim
    @@ -0,0 +1,179 @@
    +" This source file is part of the Swift.org open source project
    +"
    +" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
    +" Licensed under Apache License v2.0 with Runtime Library Exception
    +"
    +" See https://swift.org/LICENSE.txt for license information
    +" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
    +"
    +" Vim syntax file
    +" Language: sil
    +"
    +" Vim maintainer: Emir SARI 
    +
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +let s:keepcpo = &cpo
    +set cpo&vim
    +
    +syn keyword silStage skipwhite nextgroup=silStages
    +      \ sil_stage
    +syn keyword silStages
    +      \ canonical
    +      \ raw
    +
    +syn match silIdentifier skipwhite
    +      \ /@\<[A-Za-z_0-9]\+\>/
    +
    +syn match silConvention skipwhite
    +      \ /$\?@convention/
    +syn region silConvention contained contains=silConventions
    +      \ start="@convention(" end=")"
    +syn keyword silConventions
    +      \ block
    +      \ c
    +      \ method
    +      \ objc_method
    +      \ sil_differentiability_witness
    +      \ thick
    +      \ thin
    +      \ witness_method
    +
    +syn match silFunctionType skipwhite
    +      \ /@\(\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\|\\)/
    +syn match silMetatypeType skipwhite
    +      \ /@\(\\|\\|\\)/
    +
    +" TODO: handle [tail_elems sil-type * sil-operand]
    +syn region silAttribute contains=silAttributes
    +      \ start="\[" end="\]"
    +syn keyword silAttributes contained containedin=silAttribute
    +      \ abort
    +      \ deinit
    +      \ delegatingself
    +      \ derivedself
    +      \ derivedselfonly
    +      \ dynamic
    +      \ exact
    +      \ init
    +      \ modify
    +      \ mutating
    +      \ objc
    +      \ open
    +      \ read
    +      \ rootself
    +      \ stack
    +      \ static
    +      \ strict
    +      \ unknown
    +      \ unsafe
    +      \ var
    +
    +syn keyword swiftImport import skipwhite nextgroup=swiftImportModule
    +syn match swiftImportModule /\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
    +syn match swiftImportComponent /\.\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
    +
    +syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftTodo
    +syn region swiftLineComment start="//" end="$" contains=swiftTodo
    +
    +syn match swiftLineComment   /^#!.*/
    +syn match swiftTypeName  /\<[A-Z][a-zA-Z_0-9]*\>/
    +syn match swiftDecimal /\<[-]\?[0-9]\+\>/
    +syn match swiftDecimal /\<[-+]\?[0-9]\+\>/
    +
    +syn match swiftTypeName /\$\*\<\?[A-Z][a-zA-Z0-9_]*\>/
    +syn match swiftVarName /%\<[A-z[a-z_0-9]\+\(#[0-9]\+\)\?\>/
    +
    +syn keyword swiftKeyword break case continue default do else for if in static switch repeat return where while skipwhite
    +
    +syn keyword swiftKeyword sil internal thunk skipwhite
    +syn keyword swiftKeyword public hidden private shared public_external hidden_external skipwhite
    +syn keyword swiftKeyword getter setter allocator initializer enumelt destroyer globalaccessor objc skipwhite
    +syn keyword swiftKeyword alloc_global alloc_stack alloc_ref alloc_ref_dynamic alloc_box alloc_existential_box alloc_value_buffer dealloc_stack dealloc_box dealloc_existential_box dealloc_ref dealloc_partial_ref dealloc_value_buffer skipwhite
    +syn keyword swiftKeyword debug_value debug_value_addr skipwhite
    +syn keyword swiftKeyword load load_unowned store assign mark_uninitialized mark_function_escape copy_addr destroy_addr index_addr index_raw_pointer bind_memory to skipwhite
    +syn keyword swiftKeyword strong_retain strong_release strong_retain_unowned ref_to_unowned unowned_to_ref unowned_retain unowned_release load_weak store_unowned store_weak fix_lifetime autorelease_value set_deallocating is_unique is_escaping_closure skipwhite
    +syn keyword swiftKeyword function_ref integer_literal float_literal string_literal global_addr skipwhite
    +syn keyword swiftKeyword class_method super_method witness_method objc_method objc_super_method skipwhite
    +syn keyword swiftKeyword partial_apply builtin skipwhite
    +syn keyword swiftApplyKeyword apply try_apply skipwhite
    +syn keyword swiftKeyword metatype value_metatype existential_metatype skipwhite
    +syn keyword swiftKeyword retain_value release_value retain_value_addr release_value_addr tuple tuple_extract tuple_element_addr struct struct_extract struct_element_addr ref_element_addr skipwhite
    +syn keyword swiftKeyword init_enum_data_addr unchecked_enum_data unchecked_take_enum_data_addr inject_enum_addr skipwhite
    +syn keyword swiftKeyword init_existential_addr init_existential_value init_existential_metatype deinit_existential_addr deinit_existential_value open_existential_addr open_existential_box open_existential_box_value open_existential_metatype init_existential_ref open_existential_ref open_existential_value skipwhite
    +syn keyword swiftKeyword upcast address_to_pointer pointer_to_address pointer_to_thin_function unchecked_addr_cast unchecked_ref_cast unchecked_ref_cast_addr ref_to_raw_pointer ref_to_bridge_object ref_to_unmanaged unmanaged_to_ref raw_pointer_to_ref skipwhite
    +syn keyword swiftKeyword convert_function thick_to_objc_metatype thin_function_to_pointer objc_to_thick_metatype thin_to_thick_function unchecked_ref_bit_cast unchecked_trivial_bit_cast bridge_object_to_ref bridge_object_to_word unchecked_bitwise_cast skipwhite
    +syn keyword swiftKeyword objc_existential_metatype_to_object objc_metatype_to_object objc_protocol skipwhite
    +syn keyword swiftKeyword unconditional_checked_cast unconditional_checked_cast_addr unconditional_checked_cast_value skipwhite
    +syn keyword swiftKeyword cond_fail skipwhite
    +syn keyword swiftKeyword unreachable return throw br cond_br switch_value select_enum select_enum_addr select_value switch_enum switch_enum_addr dynamic_method_br checked_cast_br checked_cast_value_br checked_cast_addr_br skipwhite
    +syn keyword swiftKeyword project_box project_existential_box project_value_buffer project_block_storage init_block_storage_header copy_block mark_dependence skipwhite
    +
    +syn keyword swiftTypeDefinition class extension protocol struct typealias enum skipwhite nextgroup=swiftTypeName
    +syn region swiftTypeAttributes start="\[" end="\]" skipwhite contained nextgroup=swiftTypeName
    +syn match swiftTypeName /\<[A-Za-z_][A-Za-z_0-9\.]*\>/ contained nextgroup=swiftTypeParameters
    +
    +syn region swiftTypeParameters start="<" end=">" skipwhite contained
    +
    +syn keyword swiftFuncDefinition func skipwhite nextgroup=swiftFuncAttributes,swiftFuncName,swiftOperator
    +syn region swiftFuncAttributes start="\[" end="\]" skipwhite contained nextgroup=swiftFuncName,swiftOperator
    +syn match swiftFuncName /\<[A-Za-z_][A-Za-z_0-9]*\>/ skipwhite contained nextgroup=swiftTypeParameters
    +syn keyword swiftFuncKeyword subscript init destructor nextgroup=swiftTypeParameters
    +
    +syn keyword swiftVarDefinition var skipwhite nextgroup=swiftVarName
    +syn keyword swiftVarDefinition let skipwhite nextgroup=swiftVarName
    +syn match swiftVarName /\<[A-Za-z_][A-Za-z_0-9]*\>/ skipwhite contained
    +
    +syn keyword swiftDefinitionModifier static
    +
    +syn match swiftImplicitVarName /\$\<[A-Za-z_0-9]\+\>/
    +
    +hi def link swiftImport Include
    +hi def link swiftImportModule Title
    +hi def link swiftImportComponent Identifier
    +hi def link swiftApplyKeyword Statement
    +hi def link swiftKeyword Statement
    +hi def link swiftTypeDefinition Define
    +hi def link swiftTypeName Type
    +hi def link swiftTypeParameters Special
    +hi def link swiftTypeAttributes PreProc
    +hi def link swiftFuncDefinition Define
    +hi def link swiftDefinitionModifier Define
    +hi def link swiftFuncName Function
    +hi def link swiftFuncAttributes PreProc
    +hi def link swiftFuncKeyword Function
    +hi def link swiftVarDefinition Define
    +hi def link swiftVarName Identifier
    +hi def link swiftImplicitVarName Identifier
    +hi def link swiftIdentifierKeyword Identifier
    +hi def link swiftTypeDeclaration Delimiter
    +hi def link swiftBoolean Boolean
    +hi def link swiftString String
    +hi def link swiftInterpolation Special
    +hi def link swiftComment Comment
    +hi def link swiftLineComment Comment
    +hi def link swiftDecimal Number
    +hi def link swiftHex Number
    +hi def link swiftOct Number
    +hi def link swiftBin Number
    +hi def link swiftOperator Function
    +hi def link swiftChar Character
    +hi def link swiftLabel Label
    +hi def link swiftNew Operator
    +
    +hi def link silStage Special
    +hi def link silStages Type
    +hi def link silConvention Special
    +hi def link silConventionParameter Special
    +hi def link silConventions Type
    +hi def link silIdentifier Identifier
    +hi def link silFunctionType Special
    +hi def link silMetatypeType Special
    +hi def link silAttribute PreProc
    +
    +let b:current_syntax = "sil"
    +
    +let &cpo = s:keepcpo
    +unlet s:keepcpo
    diff --git a/git/usr/share/vim/vim92/syntax/simula.vim b/git/usr/share/vim/vim92/syntax/simula.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..82f66d049e1e3b41e9999dc5f8eab96537fc3124
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/simula.vim
    @@ -0,0 +1,87 @@
    +" Vim syntax file
    +" Language:	Simula
    +" Maintainer:	Haakon Riiser 
    +" URL:		http://folk.uio.no/hakonrk/vim/syntax/simula.vim
    +" Last Change:	2001 May 15
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +    finish
    +endif
    +
    +" No case sensitivity in Simula
    +syn case	ignore
    +
    +syn match	simulaComment		"^%.*$" contains=simulaTodo
    +syn region	simulaComment		start="!\|\" end=";" contains=simulaTodo
    +
    +" Text between the keyword 'end' and either a semicolon or one of the
    +" keywords 'end', 'else', 'when' or 'otherwise' is also a comment
    +syn region	simulaComment		start="\"lc=3 matchgroup=Statement end=";\|\<\(end\|else\|when\|otherwise\)\>"
    +
    +syn match	simulaCharError		"'.\{-2,}'"
    +syn match	simulaCharacter		"'.'"
    +syn match	simulaCharacter		"'!\d\{-}!'" contains=simulaSpecialChar
    +syn match	simulaString		'".\{-}"' contains=simulaSpecialChar,simulaTodo
    +
    +syn keyword	simulaBoolean		true false
    +syn keyword	simulaCompound		begin end
    +syn keyword	simulaConditional	else if otherwise then until when
    +syn keyword	simulaConstant		none notext
    +syn keyword	simulaFunction		procedure
    +syn keyword	simulaOperator		eq eqv ge gt imp in is le lt ne new not qua
    +syn keyword	simulaRepeat		while for
    +syn keyword	simulaReserved		activate after at before delay go goto label prior reactivate switch to
    +syn keyword	simulaStatement		do inner inspect step this
    +syn keyword	simulaStorageClass	external hidden name protected value
    +syn keyword	simulaStructure		class
    +syn keyword	simulaType		array boolean character integer long real short text virtual
    +syn match	simulaAssigned		"\<\h\w*\s*\((.*)\)\=\s*:\(=\|-\)"me=e-2
    +syn match	simulaOperator		"[&:=<>+\-*/]"
    +syn match	simulaOperator		"\"
    +syn match	simulaOperator		"\"
    +syn match	simulaReferenceType	"\"
    +" Real with optional exponent
    +syn match	simulaReal		"-\=\<\d\+\(\.\d\+\)\=\(&&\=[+-]\=\d\+\)\=\>"
    +" Real starting with a `.', optional exponent
    +syn match	simulaReal		"-\=\.\d\+\(&&\=[+-]\=\d\+\)\=\>"
    +
    +
    +hi def link simulaAssigned		Identifier
    +hi def link simulaBoolean		Boolean
    +hi def link simulaCharacter		Character
    +hi def link simulaCharError		Error
    +hi def link simulaComment		Comment
    +hi def link simulaCompound		Statement
    +hi def link simulaConditional		Conditional
    +hi def link simulaConstant		Constant
    +hi def link simulaFunction		Function
    +hi def link simulaNumber			Number
    +hi def link simulaOperator		Operator
    +hi def link simulaReal			Float
    +hi def link simulaReferenceType		Type
    +hi def link simulaRepeat			Repeat
    +hi def link simulaReserved		Error
    +hi def link simulaSemicolon		Statement
    +hi def link simulaSpecial		Special
    +hi def link simulaSpecialChar		SpecialChar
    +hi def link simulaSpecialCharErr		Error
    +hi def link simulaStatement		Statement
    +hi def link simulaStorageClass		StorageClass
    +hi def link simulaString			String
    +hi def link simulaStructure		Structure
    +hi def link simulaTodo			Todo
    +hi def link simulaType			Type
    +
    +
    +let b:current_syntax = "simula"
    +" vim: sts=4 sw=4 ts=8
    diff --git a/git/usr/share/vim/vim92/syntax/sinda.vim b/git/usr/share/vim/vim92/syntax/sinda.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..a6e5b45fcd2b1adbf92c53fff7c75e51d950b2a8
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sinda.vim
    @@ -0,0 +1,129 @@
    +" Vim syntax file
    +" Language:     sinda85, sinda/fluint input file
    +" Maintainer:   Adrian Nagle, anagle@ball.com
    +" Last Change:  2003 May 11
    +" Filenames:    *.sin
    +" URL:		http://www.naglenet.org/vim/syntax/sinda.vim
    +" MAIN URL:     http://www.naglenet.org/vim/
    +
    +
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +
    +
    +" Ignore case
    +syn case ignore
    +
    +
    +
    +"
    +"
    +" Begin syntax definitions for sinda input and output files.
    +"
    +
    +" Force free-form fortran format
    +let fortran_free_source=1
    +
    +" Load FORTRAN syntax file
    +runtime! syntax/fortran.vim
    +unlet b:current_syntax
    +
    +
    +
    +" Define keywords for SINDA
    +syn keyword sindaMacro    BUILD BUILDF DEBON DEBOFF DEFMOD FSTART FSTOP
    +
    +syn keyword sindaOptions  TITLE PPSAVE RSI RSO OUTPUT SAVE QMAP USER1 USER2
    +syn keyword sindaOptions  MODEL PPOUT NOLIST MLINE NODEBUG DIRECTORIES
    +syn keyword sindaOptions  DOUBLEPR
    +
    +syn keyword sindaRoutine  FORWRD FWDBCK STDSTL FASTIC
    +
    +syn keyword sindaControl  ABSZRO ACCELX ACCELY ACCELZ ARLXCA ATMPCA
    +syn keyword sindaControl  BACKUP CSGFAC DRLXCA DTIMEH DTIMEI DTIMEL
    +syn keyword sindaControl  DTIMES DTMPCA EBALNA EBALSA EXTLIM ITEROT
    +syn keyword sindaControl  ITERXT ITHOLD NLOOPS NLOOPT OUTPUT OPEITR
    +syn keyword sindaControl  PATMOS SIGMA TIMEO TIMEND UID
    +
    +syn keyword sindaSubRoutine  ASKERS ADARIN ADDARY ADDMOD ARINDV
    +syn keyword sindaSubRoutine  RYINV ARYMPY ARYSUB ARYTRN BAROC
    +syn keyword sindaSubRoutine  BELACC BNDDRV BNDGET CHENNB CHGFLD
    +syn keyword sindaSubRoutine  CHGLMP CHGSUC CHGVOL CHKCHL CHKCHP
    +syn keyword sindaSubRoutine  CNSTAB COMBAL COMPLQ COMPRS CONTRN
    +syn keyword sindaSubRoutine  CPRINT CRASH CRVINT CRYTRN CSIFLX
    +syn keyword sindaSubRoutine  CVTEMP D11CYL C11DAI D11DIM D11MCY
    +syn keyword sindaSubRoutine  D11MDA D11MDI D11MDT D12CYL D12MCY
    +syn keyword sindaSubRoutine  D12MDA D1D1DA D1D1IM D1D1WM D1D2DA
    +syn keyword sindaSubRoutine  D1D2WM D1DEG1 D1DEG2 D1DG1I D1IMD1
    +syn keyword sindaSubRoutine  D1IMIM D1IMWM D1M1DA D1M2MD D1M2WM
    +syn keyword sindaSubRoutine  D1MDG1 D1MDG2 D2D1WM D1DEG1 D2DEG2
    +syn keyword sindaSubRoutine  D2D2
    +
    +syn keyword sindaIdentifier  BIV CAL DIM DIV DPM DPV DTV GEN PER PIV PIM
    +syn keyword sindaIdentifier  SIM SIV SPM SPV TVS TVD
    +
    +
    +
    +" Define matches for SINDA
    +syn match  sindaFortran     "^F[0-9 ]"me=e-1
    +syn match  sindaMotran      "^M[0-9 ]"me=e-1
    +
    +syn match  sindaComment     "^C.*$"
    +syn match  sindaComment     "^R.*$"
    +syn match  sindaComment     "\$.*$"
    +
    +syn match  sindaHeader      "^header[^,]*"
    +
    +syn match  sindaIncludeFile "include \+[^ ]\+"hs=s+8 contains=fortranInclude
    +
    +syn match  sindaMacro       "^PSTART"
    +syn match  sindaMacro       "^PSTOP"
    +syn match  sindaMacro       "^FAC"
    +
    +syn match  sindaInteger     "-\=\<[0-9]*\>"
    +syn match  sindaFloat       "-\=\<[0-9]*\.[0-9]*"
    +syn match  sindaScientific  "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
    +
    +syn match  sindaEndData		 "^END OF DATA"
    +
    +if exists("thermal_todo")
    +  execute 'syn match  sindaTodo ' . '"^'.thermal_todo.'.*$"'
    +else
    +  syn match  sindaTodo     "^?.*$"
    +endif
    +
    +
    +
    +" Define the default highlighting
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link sindaMacro		Macro
    +hi def link sindaOptions		Special
    +hi def link sindaRoutine		Type
    +hi def link sindaControl		Special
    +hi def link sindaSubRoutine	Function
    +hi def link sindaIdentifier	Identifier
    +
    +hi def link sindaFortran		PreProc
    +hi def link sindaMotran		PreProc
    +
    +hi def link sindaComment		Comment
    +hi def link sindaHeader		Typedef
    +hi def link sindaIncludeFile	Type
    +hi def link sindaInteger		Number
    +hi def link sindaFloat		Float
    +hi def link sindaScientific	Float
    +
    +hi def link sindaEndData		Macro
    +
    +hi def link sindaTodo		Todo
    +
    +
    +
    +let b:current_syntax = "sinda"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/sindacmp.vim b/git/usr/share/vim/vim92/syntax/sindacmp.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..88373eb2850d7e802baeda7cbb6096096f57d14d
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sindacmp.vim
    @@ -0,0 +1,61 @@
    +" Vim syntax file
    +" Language:     sinda85, sinda/fluint compare file
    +" Maintainer:   Adrian Nagle, anagle@ball.com
    +" Last Change:  2003 May 11
    +" Filenames:    *.cmp
    +" URL:		http://www.naglenet.org/vim/syntax/sindacmp.vim
    +" MAIN URL:     http://www.naglenet.org/vim/
    +
    +
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +
    +
    +" Ignore case
    +syn case ignore
    +
    +
    +
    +"
    +" Begin syntax definitions for compare files.
    +"
    +
    +" Define keywords for sinda compare (sincomp)
    +syn keyword sindacmpUnit     celsius fahrenheit
    +
    +
    +
    +" Define matches for sinda compare (sincomp)
    +syn match  sindacmpTitle       "Steady State Temperature Comparison"
    +
    +syn match  sindacmpLabel       "File  [1-6] is"
    +
    +syn match  sindacmpHeader      "^ *Node\( *File  \d\)* *Node Description"
    +
    +syn match  sindacmpInteger     "^ *-\=\<[0-9]*\>"
    +syn match  sindacmpFloat       "-\=\<[0-9]*\.[0-9]*"
    +
    +
    +
    +" Define the default highlighting
    +" Only when an item doesn't have highlighting yet
    +
    +hi def link sindacmpTitle		     Type
    +hi def link sindacmpUnit		     PreProc
    +
    +hi def link sindacmpLabel		     Statement
    +
    +hi def link sindacmpHeader		     sindaHeader
    +
    +hi def link sindacmpInteger	     Number
    +hi def link sindacmpFloat		     Special
    +
    +
    +
    +let b:current_syntax = "sindacmp"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/sindaout.vim b/git/usr/share/vim/vim92/syntax/sindaout.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..c362f194676f712c1cae9af56650c6f83b45fed7
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sindaout.vim
    @@ -0,0 +1,83 @@
    +" Vim syntax file
    +" Language:     sinda85, sinda/fluint output file
    +" Maintainer:   Adrian Nagle, anagle@ball.com
    +" Last Change:  2003 May 11
    +" Filenames:    *.out
    +" URL:		http://www.naglenet.org/vim/syntax/sindaout.vim
    +" MAIN URL:     http://www.naglenet.org/vim/
    +
    +
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +
    +
    +
    +" Ignore case
    +syn case match
    +
    +
    +
    +" Load SINDA syntax file
    +runtime! syntax/sinda.vim
    +unlet b:current_syntax
    +
    +
    +
    +"
    +"
    +" Begin syntax definitions for sinda output files.
    +"
    +
    +" Define keywords for sinda output
    +syn case match
    +
    +syn keyword sindaoutPos       ON SI
    +syn keyword sindaoutNeg       OFF ENG
    +
    +
    +
    +" Define matches for sinda output
    +syn match sindaoutFile	       ": \w*\.TAK"hs=s+2
    +
    +syn match sindaoutInteger      "T\=[0-9]*\>"ms=s+1
    +
    +syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle
    +syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle
    +syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1
    +
    +syn match sindaoutHeaderDelim  "=\{5,}"
    +syn match sindaoutHeaderDelim  "|\{5,}"
    +syn match sindaoutHeaderDelim  "+\{5,}"
    +
    +syn match sindaoutLabel		"Input File:" contains=sindaoutFile
    +syn match sindaoutLabel		"Begin Solution: Routine"
    +
    +syn match sindaoutError		"<<< Error >>>"
    +
    +
    +" Define the default highlighting
    +" Only when an item doesn't have highlighting yet
    +
    +hi sindaHeaderDelim  ctermfg=Black ctermbg=Green	       guifg=Black guibg=Green
    +
    +hi def link sindaoutPos		     Statement
    +hi def link sindaoutNeg		     PreProc
    +hi def link sindaoutTitle		     Type
    +hi def link sindaoutFile		     sindaIncludeFile
    +hi def link sindaoutInteger	     sindaInteger
    +
    +hi def link sindaoutSectionDelim	      Delimiter
    +hi def link sindaoutSectionTitle	     Exception
    +hi def link sindaoutHeaderDelim	     SpecialComment
    +hi def link sindaoutLabel		     Identifier
    +
    +hi def link sindaoutError		     Error
    +
    +
    +
    +let b:current_syntax = "sindaout"
    +
    +" vim: ts=8 sw=2
    diff --git a/git/usr/share/vim/vim92/syntax/sisu.vim b/git/usr/share/vim/vim92/syntax/sisu.vim
    new file mode 100644
    index 0000000000000000000000000000000000000000..264aae060063ea537065c3930279e41da9e1a830
    --- /dev/null
    +++ b/git/usr/share/vim/vim92/syntax/sisu.vim
    @@ -0,0 +1,275 @@
    +" SiSU Vim syntax file
    +" SiSU Maintainer: Ralph Amissah 
    +" SiSU Markup:     SiSU (sisu-5.6.7)
    +" Last Change:     2017 Jun 22
    +" URL: 
    +"      
    +"(originally looked at Ruby Vim by Mirko Nasato)
    +
    +" quit when a syntax file was already loaded
    +if exists("b:current_syntax")
    +  finish
    +endif
    +let s:cpo_save = &cpo
    +set cpo&vim
    +
    +"% "Errors:
    +syn match sisu_error contains=sisu_link,sisu_error_wspace ""
    +
    +"% "Markers Identifiers:
    +if !exists("sisu_no_identifiers")
    +  syn match   sisu_mark_endnote                                           "\~^"
    +  syn match   sisu_break               contains=@NoSpell                  " \\\\\( \|$\)\|
    \|
    " + syn match sisu_control contains=@NoSpell "^\(-\\\\-\|=\\\\=\|-\.\.-\|<:p[bn]>\)\s*$" + syn match sisu_control contains=@NoSpell "^<:\(bo\|---\)>\s*$" + syn match sisu_marktail contains=@NoSpell "^--[+~-]#\s*$" + syn match sisu_marktail "[~-]#" + syn match sisu_control "\"" + syn match sisu_underline "\(^\| \)_[a-zA-Z0-9]\+_\([ .,]\|$\)" + syn match sisu_number contains=@NoSpell "[0-9a-f]\{32\}\|[0-9a-f]\{64\}" + syn match sisu_link contains=@NoSpell "\(_\?https\?://\|\.\.\/\)\S\+" + syn match sisu_link " \*\~\S\+" + syn match sisu_require contains=@NoSpell "^<<\s*[a-zA-Z0-9^./_-]\+\.ss[it]$" + syn match sisu_structure "^:A\~$" + +"% "Document Sub Headers: + syn match sisu_sub_header_title "^\s\+:\(subtitle\|short\|edition\|language\|lang_char\|note\):\s" "group=sisu_header_content + syn match sisu_sub_header_creator "^\s\+:\(author\|editor\|contributor\|illustrator\|photographer\|translator\|digitized_by\|prepared_by\|audio\|video\):\s" " &hon &institution + syn match sisu_sub_header_rights "^\s\+:\(copyright\|text\|translation\|illustrations\|photographs\|preparation\|digitization\|audio\|video\|license\|all\):\s" " access_rights license + syn match sisu_sub_header_classify "^\s\+:\(topic_register\|keywords\|subject\|dewey\|loc\):\s" + syn match sisu_sub_header_identifier "^\s\+:\(oclc\|isbn\):\s" + syn match sisu_sub_header_date "^\s\+:\(added_to_site\|available\|created\|issued\|modified\|published\|valid\|translated\|original_publication\):\s" + syn match sisu_sub_header_original "^\s\+:\(publisher\|date\|language\|lang_char\|institution\|nationality\|source\):\s" + syn match sisu_sub_header_make "^\s\+:\(headings\|num_top\|breaks\|language\|italics\|bold\|emphasis\|substitute\|omit\|plaintext_wrap\|texpdf_font_mono\|texpdf_font\|stamp\|promo\|ad\|manpage\|home_button_text\|home_button_image\|cover_image\|footer\):\s" + syn match sisu_sub_header_notes "^\s\+:\(description\|abstract\|comment\|coverage\|relation\|source\|history\|type\|format\|prefix\|prefix_[ab]\|suffix\):\s" + syn match sisu_within_index_ignore "\S\+[:;]\(\s\+\|$\)" + syn match sisu_within_index "[:|;]\|+\d\+" + +"% "semantic markers: (ignore) + syn match sisu_sem_marker ";{\|};[a-z._]*[a-z]" + syn match sisu_sem_marker_block "\([a-z][a-z._]*\|\):{\|}:[a-z._]*[a-z]" + syn match sisu_sem_ex_marker ";\[\|\];[a-z._]*[a-z]" + syn match sisu_sem_ex_marker_block "\([a-z][a-z._]*\|\):\[\|\]:[a-z._]*[a-z]" + syn match sisu_sem_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):{[^}].\{-}}:\1" + syn match sisu_sem_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";{[^}].\{-}};[a-z]\+" + syn match sisu_sem_ex_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):\[[^}].\{-}\]:\1" + syn match sisu_sem_ex_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";\[[^}].\{-}\];[a-z]\+" +endif + +"% "URLs Numbers And ASCII Codes: +syn match sisu_number "\<\(0x\x\+\|0b[01]\+\|0\o\+\|0\.\d\+\|0\|[1-9][\.0-9_]*\)\>" +syn match sisu_number "?\(\\M-\\C-\|\\c\|\\C-\|\\M-\)\=\(\\\o\{3}\|\\x\x\{2}\|\\\=\w\)" + +"% "Tuned Error: (is error if not already matched) +syn match sisu_error contains=sisu_error "[\~/\*!_]{\|}[\~/\*!_]" +syn match sisu_error contains=sisu_error "
    ]" + +"% "Simple Paired Enclosed Markup: +"url/link +syn region sisu_link contains=sisu_error,sisu_error_wspace matchgroup=sisu_action start="^<<\s*|[a-zA-Z0-9^._-]\+|@|[a-zA-Z0-9^._-]\+|"rs=s+2 end="$" + +"% "Document Header: +" title +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_title matchgroup=sisu_header start="^[@]title:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" creator +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_creator matchgroup=sisu_header start="^[@]creator:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" dates +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_date matchgroup=sisu_header start="^[@]date:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" publisher +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_publisher matchgroup=sisu_header start="^[@]publisher:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" rights +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_rights matchgroup=sisu_header start="^[@]rights:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" classify document +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_classify matchgroup=sisu_header start="^[@]classify:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" identifier document +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_identifier matchgroup=sisu_header start="^[@]identifier:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" original language (depreciated) +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_original matchgroup=sisu_header start="^[@]original:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" notes +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_notes matchgroup=sisu_header start="^[@]notes:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" links of interest +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_linked,sisu_sub_header_links matchgroup=sisu_header start="^[@]links:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" +" make, processing instructions +syn region sisu_header_content contains=sisu_error,sisu_comment,sisu_break,sisu_link,sisu_sub_header_make matchgroup=sisu_header start="^[@]make:[+-]\?\(\s\|\n\)"rs=e-1 end="\n$" + +"% "Headings: +syn region sisu_heading contains=sisu_mark_endnote,sisu_content_endnote,sisu_marktail,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_ocn,sisu_error,sisu_error_wspace matchgroup=sisu_structure start="^\([1-4]\|:\?[A-D]\)\~\(\S\+\|[^-]\)" end="$" + +"% "Block Group Text: +" table +syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^table{.\+" end="}table" +" table +syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^```\s\+table" end="^```\(\s\|$\)" +syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^{\(t\|table\)\(\~h\)\?\(\sc[0-9]\+;\)\?[0-9; ]*}" end="\n$" +" block, group, poem, alt +syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^\z(block\|group\|poem\|alt\){" end="^}\z1" +syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^```\s\+\(block\|group\|poem\|alt\)" end="^```\(\s\|$\)" +" box +syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^box\(\.[a-z]\+\)\?{" end="^}box" +syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^```\s\+\box\(\.[a-z]\+\)\?" end="^```\(\s\|$\)" +" code +syn region sisu_content_alt contains=sisu_error,@NoSpell matchgroup=sisu_contain start="^code\(\.[a-z][0-9a-z_]\+\)\?{" end="^}code" +syn region sisu_content_alt contains=sisu_error,@NoSpell matchgroup=sisu_contain start="^```\s\+code\(\.[a-z][0-9a-z_]\+\)\?" end="^```\(\s\|$\)" +" quote +syn region sisu_normal contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_contain start="^```\s\+quote" end="^```\(\s\|$\)" + +"% "Endnotes: +" regular endnote or asterisk or plus sign endnote +syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker matchgroup=sisu_mark_endnote start="\~{[*+]*" end="}\~" skip="\n" +" numbered asterisk or plus sign endnote +syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker matchgroup=sisu_mark_endnote start="\~\[[*+]*" end="\]\~" skip="\n" +" endnote content marker (for binary content marking) +syn region sisu_content_endnote contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_link,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break matchgroup=sisu_mark_endnote start="\^\~" end="\n$" + +"% "Links And Images: +" image with url link (and possibly footnote of url) +syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="}\(https\?:/\/\|:\|\.\.\/\|#\)\S\+" oneline +" sisu outputs, short notation +syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="\[[1-5][sS]*\]}\S\+\.ss[tm]" oneline +" image +syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_link start="{" end="}image" oneline + +"% "Some Line Operations: +" bold line +syn region sisu_bold contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^!_ " end=" \\\\\|$" +" indent and bullet paragraph +syn region sisu_normal contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_\([1-9*]\|[1-9]\*\) " end="$" +" indent and bullet (bold start) paragraph +syn region sisu_bold contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_\([1-9*]\|[1-9]\*\)!_\? " end=" \\\\\|$" +" hanging indent paragraph [proposed] +syn region sisu_normal contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_[0-9]\?_[0-9] " end="$" +" hanging indent (bold start/ definition) paragraph [proposed] +syn region sisu_bold contains=sisu_fontface,sisu_bold,sisu_control,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_[0-9]\?_[0-9]!_\? " end=" \\\\\|$" +" list numbering +syn region sisu_normal contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^\(#[ 1]\|_# \)" end="$" + +"% "Font Face Curly Brackets: +"syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_sem start="\S\+:{" end="}:[^<>,.!?:; ]\+" oneline +" book index: +syn region sisu_index contains=sisu_within_index_ignore,sisu_within_index matchgroup=sisu_index_block start="^={" end="}" +" emphasis: +syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\*{" end="}\*" +" bold: +syn region sisu_bold contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="!{" end="}!" +" underscore: +syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="_{" end="}_" +" italics: +syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="/{" end="}/" +" added: +syn region sisu_underline contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="+{" end="}+" +" superscript: +syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\^{" end="}\^" +" subscript: +syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start=",{" end="}," +" monospace: +syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_bold,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="#{" end="}#" +" strikethrough: +syn region sisu_strikeout contains=sisu_error matchgroup=sisu_fontface start="-{" end="}-" + +"% "Single Words Bold Italicise Etc: (depreciated) +syn region sisu_bold contains=sisu_error matchgroup=sisu_bold start="\([ (]\|^\)\*[^\|{\n\~\\]"hs=e-1 end="\*"he=e-0 skip="[a-zA-Z0-9']" oneline +syn region sisu_identifier contains=sisu_error matchgroup=sisu_content_alt start="\([ ]\|^\)/[^{ \|\n\\]"hs=e-1 end="/\[ \.\]" skip="[a-zA-Z0-9']" oneline +"misc +syn region sisu_identifier contains=sisu_error matchgroup=sisu_fontface start="\^[^ {\|\n\\]"rs=s+1 end="\^[ ,.;:'})\\\n]" skip="[a-zA-Z0-9']" oneline + +"% "Expensive Mode: +if !exists("sisu_no_expensive") +else " not Expensive + syn region sisu_content_alt matchgroup=sisu_control start="^\s*def\s" matchgroup=NONE end="[?!]\|\>" skip="\.\|\(::\)" oneline +endif " Expensive? + +"% "Headers And Headings: (Document Instructions) +syn match sisu_control contains=sisu_error,sisu_error_wspace "4\~! \S\+" +syn region sisu_markpara contains=sisu_error,sisu_error_wspace start="^=begin" end="^=end.*$" + +"% "Errors: +syn match sisu_error_wspace contains=sisu_error_wspace "^\s\+[^:]" +syn match sisu_error_wspace contains=sisu_error_wspace "\s\s\+" +syn match sisu_error_wspace contains=sisu_error_wspace "\s\+$" +syn match sisu_error contains=sisu_error_wspace "\t\+" +syn match sisu_error contains=sisu_error,sisu_error_wspace "\([^ (][_\\]\||[^ (}]\)https\?:\S\+" +syn match sisu_error contains=sisu_error "_\?https\?:\S\+[}><]" +syn match sisu_error contains=sisu_error "\([!*/_\+,^]\){\([^(\}\1)]\)\{-}\n$" +syn match sisu_error contains=sisu_error "^[\~]{[^{]\{-}\n$" +syn match sisu_error contains=sisu_error "\s\+.{{" +syn match sisu_error contains=sisu_error "^\~\s*$" +syn match sisu_error contains=sisu_error "^0\~.*" +syn match sisu_error contains=sisu_error "^[1-9]\~\s*$" +syn match sisu_error contains=sisu_error "^[1-9]\~\S\+\s*$" +syn match sisu_error contains=sisu_error "[^{]\~\^[^ \)]" +syn match sisu_error contains=sisu_error "\~\^\s\+\.\s*" +syn match sisu_error contains=sisu_error "{\~^\S\+" +syn match sisu_error contains=sisu_error "[_/\*!^]{[ .,:;?><]*}[_/\*!^]" +syn match sisu_error contains=sisu_error "[^ (\"'(\[][_/\*!]{\|}[_/\*!][a-zA-Z0-9)\]\"']" +syn match sisu_error contains=sisu_error "" +"errors for filetype sisu, though not error in 'metaverse': +syn match sisu_error contains=sisu_error,sisu_match,sisu_strikeout,sisu_contain,sisu_content_alt,sisu_mark,sisu_break,sisu_number "<[a-zA-Z\/]\+>" +syn match sisu_error "/\?<\([biu]\)>[^()]\{-}\n$" + +"% "Error Exceptions: +syn match sisu_control "\n$" "contains=ALL +"syn match sisu_control " //" +syn match sisu_error "%{" +syn match sisu_error "
    _\?https\?:\S\+\|_\?https\?:\S\+
    " +syn match sisu_error "[><]_\?https\?:\S\+\|_\?https\?:\S\+[><]" +syn match sisu_comment "^%\{1,2\}.\+" + +"% "Definitions Default Highlighting: +hi def link sisu_normal Normal +hi def link sisu_bold Statement +hi def link sisu_header PreProc +hi def link sisu_header_content Normal +hi def link sisu_sub_header_title Statement +hi def link sisu_sub_header_creator Statement +hi def link sisu_sub_header_date Statement +hi def link sisu_sub_header_publisher Statement +hi def link sisu_sub_header_rights Statement +hi def link sisu_sub_header_classify Statement +hi def link sisu_sub_header_identifier Statement +hi def link sisu_sub_header_original Statement +hi def link sisu_sub_header_links Statement +hi def link sisu_sub_header_notes Statement +hi def link sisu_sub_header_make Statement +hi def link sisu_heading Title +hi def link sisu_structure Operator +hi def link sisu_contain Include +hi def link sisu_mark_endnote Delimiter +hi def link sisu_require NonText +hi def link sisu_link NonText +hi def link sisu_linked String +hi def link sisu_fontface Delimiter +hi def link sisu_strikeout DiffDelete +hi def link sisu_content_alt Special +hi def link sisu_sem_content SpecialKey +hi def link sisu_sem_block Special +hi def link sisu_sem_marker Visual +"hi def link sisu_sem_marker Structure +hi def link sisu_sem_marker_block MatchParen +hi def link sisu_sem_ex_marker FoldColumn +hi def link sisu_sem_ex_marker_block Folded +hi def link sisu_sem_ex_content Comment +"hi def link sisu_sem_ex_content SpecialKey +hi def link sisu_sem_ex_block Comment +hi def link sisu_index SpecialKey +hi def link sisu_index_block Visual +hi def link sisu_content_endnote Special +hi def link sisu_control Delimiter +hi def link sisu_within_index Delimiter +hi def link sisu_within_index_ignore SpecialKey +hi def link sisu_ocn Include +hi def link sisu_number Number +hi def link sisu_identifier Function +hi def link sisu_underline Underlined +hi def link sisu_markpara Include +hi def link sisu_marktail Include +hi def link sisu_mark Identifier +hi def link sisu_break Structure +hi def link sisu_html Type +hi def link sisu_action Identifier +hi def link sisu_comment Comment +hi def link sisu_error_sem_marker Error +hi def link sisu_error_wspace Error +hi def link sisu_error Error +let b:current_syntax = "sisu" +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/skhd.vim b/git/usr/share/vim/vim92/syntax/skhd.vim new file mode 100644 index 0000000000000000000000000000000000000000..6bda7a60acc00dc6cbd815d82e4d83b4c1a10bec --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/skhd.vim @@ -0,0 +1,137 @@ +" Vim syntax file +" Language: skhd configuration file +" Maintainer: Kiyoon Kim +" Last Change: 2025 Jan 22 + +if exists("b:current_syntax") + finish +endif + +" Comments: whole line from '#' +syn match skhdComment /^\s*#.*/ + +" Modifiers (shift, ctrl, alt, cmd, fn) +syn keyword skhdModifier + \ alt lalt ralt + \ shift lshift rshift + \ cmd lcmd rcmd + \ ctrl lctrl rctrl + \ fn hyper meh + \ option super +" highlight the '+' and '-' and ':' separators +syn match skhdOperator /->/ +syn match skhdOperator /[+:\-;<>,\[\]@~]/ + +" Hex keycode form: 0x3C etc +syn match skhdKeycode /\v0x[0-9A-Fa-f]+/ + +" Keys (a–z, digits, function‐keys, arrows…) +syn keyword skhdKey + \ return tab space backspace escape delete + \ home end pageup pagedown insert + \ left right up down + \ sound_up sound_down mute play previous next rewind fast + \ brightness_up brightness_down illumination_up illumination_down +syn match skhdKey /\vf([1-9]|1[0-9]|20)\>/ +syn match skhdKey /\v\<[A-Za-z0-9]\>/ + +" The yabai command and its subcommands +syn match skhdCommand /\\|\/ +syn match skhdSubCmd /\\|\\|\/ + +" ─────────────────────────────────────────────────────────────────── +" Treat anything after a single “:” (not double‑colon) as bash +" ─────────────────────────────────────────────────────────────────── +" load Vim’s built‑in shell rules +syntax include @bash syntax/bash.vim + +" After `:` (not `::`) is a bash command, but not when it is preceded by a `\` +syn region skhdBash + \ matchgroup=skhdOperator + \ start=/\v(^|[^:])\zs:\s*/ + \ end=/\v\s*$\ze/ + \ skip=/\v\\\s*$/ + \ keepend + \ contains=@bash + +" ──────────────────────────────────────────────────────────────── +" Key‑map group definitions and switches +" ──────────────────────────────────────────────────────────────── +" In skhd, you can define groups and assign hotkeys to them as follows: +" 1. Group‑definition lines that start with :: +" 2. Switch operator (<) +" 3. Target group names after the ; + +" Lines like `:: default` or `:: passthrough` +" match the whole thing as a GroupDef, but capture the group name +syn match skhdGroupDef /^::\s*\w\+/ +syn match skhdGroupName /::\s*\zs\w\+/ + +" The `<` switch token in lines like +" passthrough < cmd + shift + alt - b ; default +syn match skhdSwitch /<\s*/ + +" The target (or “fall‑through”) group after the semicolon +" ... ; default +syn match skhdTargetGroup /;\s*\zs\w\+/ + + +" ------------------------------------------------------------ +" Application-specific bindings block: [ ... ] +" ------------------------------------------------------------ + +" The whole block. This avoids grabbing .blacklist by requiring the line be just '[' at end. +syn region skhdProcMapBlock + \ matchgroup=skhdProcMapDelim + \ start=/\v\[\s*$/ + \ end=/^\s*\]\s*$/ + \ keepend + \ transparent + \ contains=skhdProcMapApp,skhdProcMapWildcard,skhdProcMapUnbind,skhdOperator,skhdComment,skhdBash,skhdString + +" App name on the left side: "Google Chrome" : +syn match skhdProcMapApp /^\s*\zs"[^"]*"\ze\s*:\s*/ contained + +" Wildcard entry: * : +syn match skhdProcMapWildcard /^\s*\zs\*\ze\s*:\s*/ contained + +" Unbind operator on the right side: "App" ~ or * ~ +syn match skhdProcMapUnbind /\v^\s*(\"[^"]*\"|\*)\s*\zs\~\ze\s*$/ contained + +syn keyword skhdDirective .load .blacklist +syn match skhdLoadLine /^\s*\.load\>\s\+/ contains=skhdDirective + +syn region skhdBlacklistBlock + \ start=/^\s*\.blacklist\>\s*\[\s*$/ + \ end=/^\s*\]\s*$/ + \ keepend + \ contains=skhdDirective,skhdComment,skhdString + +syn region skhdString start=/"/ skip=/\\"/ end=/"/ + +" ──────────────────────────────────────────────────────────────── +" Linking to standard Vim highlight groups +" ──────────────────────────────────────────────────────────────── +hi def link skhdComment Comment +hi def link skhdHeadline Title +hi def link skhdModifier Keyword +hi def link skhdOperator Operator +hi def link skhdWildcard Special +hi def link skhdKey Identifier +hi def link skhdKeycode Number +hi def link skhdCommand Function +hi def link skhdSubCmd Statement +hi def link skhdGroupDef Label +hi def link skhdGroupName Identifier +hi def link skhdSwitch Operator +hi def link skhdTargetGroup Type +hi def link skhdString String + +hi def link skhdProcMapDelim Operator +hi def link skhdProcMapApp Type +hi def link skhdProcMapWildcard Special +hi def link skhdProcMapUnbind Special + +hi def link skhdDirective PreProc + +let b:current_syntax = "skhd" diff --git a/git/usr/share/vim/vim92/syntax/skill.vim b/git/usr/share/vim/vim92/syntax/skill.vim new file mode 100644 index 0000000000000000000000000000000000000000..dd4c191b6f5a82c3ae43ab839f5ee1d7e5325c3a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/skill.vim @@ -0,0 +1,550 @@ +" Vim syntax file +" Language: SKILL +" Maintainer: Toby Schaffer +" Comments: SKILL is a Lisp-like programming language for use in EDA +" tools from Cadence Design Systems. It allows you to have +" a programming environment within the Cadence environment +" that gives you access to the complete tool set and design +" database. This file also defines syntax highlighting for +" certain Design Framework II interface functions. +" Last Change: 2003 May 11 +" 2024 Oct 08 by Vim Project: allow double backslashes in skillString + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn keyword skillConstants t nil unbound + +" enumerate all the SKILL reserved words/functions +syn match skillFunction "(abs\>"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillConditional "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillConditional "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillRepeat "\"hs=s+1 +syn match skillFunction "\<[fs]\=printf("he=e-1 +syn match skillFunction "(f\=scanf\>"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillRepeat "\"hs=s+1 +syn match skillConditional "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\<[mn]\=procedure("he=e-1 +syn match skillFunction "(ncon[cs]\>"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillKeywords "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillConditional "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillConditional "\"hs=s+1 +syn match skillRepeat "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillFunction "\"hs=s+1 +syn match skillcdfFunctions "\"hs=s+1 +syn match skillgeFunctions "\"hs=s+1 +syn match skillhiFunctions "\"hs=s+1 +syn match skillleFunctions "\"hs=s+1 +syn match skilldbefFunctions "\"hs=s+1 +syn match skillddFunctions "\"hs=s+1 +syn match skillpcFunctions "\"hs=s+1 +syn match skilltechFunctions "\<\(tech\|tc\)\u\a\+("he=e-1 + +" strings +syn region skillString start=+"+ skip=+\\\@ +" Last Change: 2001 May 09 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" A bunch of useful Renderman keywords including special +" RenderMan control structures +syn keyword slStatement break return continue +syn keyword slConditional if else +syn keyword slRepeat while for +syn keyword slRepeat illuminance illuminate solar + +syn keyword slTodo contained TODO FIXME XXX + +" String and Character constants +" Highlight special characters (those which have a backslash) differently +syn match slSpecial contained "\\[0-9][0-9][0-9]\|\\." +syn region slString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=slSpecial +syn match slCharacter "'[^\\]'" +syn match slSpecialCharacter "'\\.'" +syn match slSpecialCharacter "'\\[0-9][0-9]'" +syn match slSpecialCharacter "'\\[0-9][0-9][0-9]'" + +"catch errors caused by wrong parenthesis +syn region slParen transparent start='(' end=')' contains=ALLBUT,slParenError,slIncluded,slSpecial,slTodo,slUserLabel +syn match slParenError ")" +syn match slInParen contained "[{}]" + +"integer number, or floating point number without a dot and with "f". +syn case ignore +syn match slNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>" +"floating point number, with dot, optional exponent +syn match slFloat "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>" +"floating point number, starting with a dot, optional exponent +syn match slFloat "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match slFloat "\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>" +"hex number +syn match slNumber "\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>" +"syn match slIdentifier "\<[a-z_][a-z0-9_]*\>" +syn case match + +if exists("sl_comment_strings") + " A comment can contain slString, slCharacter and slNumber. + " But a "*/" inside a slString in a slComment DOES end the comment! So we + " need to use a special type of slString: slCommentString, which also ends on + " "*/", and sees a "*" at the start of the line as comment again. + " Unfortunately this doesn't very well work for // type of comments :-( + syntax match slCommentSkip contained "^\s*\*\($\|\s\+\)" + syntax region slCommentString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=slSpecial,slCommentSkip + syntax region slComment2String contained start=+"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=slSpecial + syntax region slComment start="/\*" end="\*/" contains=slTodo,slCommentString,slCharacter,slNumber +else + syn region slComment start="/\*" end="\*/" contains=slTodo +endif +syntax match slCommentError "\*/" + +syn keyword slOperator sizeof +syn keyword slType float point color string vector normal matrix void +syn keyword slStorageClass varying uniform extern +syn keyword slStorageClass light surface volume displacement transformation imager +syn keyword slVariable Cs Os P dPdu dPdv N Ng u v du dv s t +syn keyword slVariable L Cl Ol E I ncomps time Ci Oi +syn keyword slVariable Ps alpha +syn keyword slVariable dtime dPdtime + +syn sync ccomment slComment minlines=10 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link slLabel Label +hi def link slUserLabel Label +hi def link slConditional Conditional +hi def link slRepeat Repeat +hi def link slCharacter Character +hi def link slSpecialCharacter slSpecial +hi def link slNumber Number +hi def link slFloat Float +hi def link slParenError slError +hi def link slInParen slError +hi def link slCommentError slError +hi def link slOperator Operator +hi def link slStorageClass StorageClass +hi def link slError Error +hi def link slStatement Statement +hi def link slType Type +hi def link slCommentError slError +hi def link slCommentString slString +hi def link slComment2String slString +hi def link slCommentSkip slComment +hi def link slString String +hi def link slComment Comment +hi def link slSpecial SpecialChar +hi def link slTodo Todo +hi def link slVariable Identifier +"hi def link slIdentifier Identifier + + +let b:current_syntax = "sl" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/slang.vim b/git/usr/share/vim/vim92/syntax/slang.vim new file mode 100644 index 0000000000000000000000000000000000000000..53ede4dc5ade8f808df6ea2f871c3e104b5d2b51 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slang.vim @@ -0,0 +1,89 @@ +" Vim syntax file +" Language: S-Lang +" Maintainer: Jan Hlavacek +" Last Change: 980216 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn keyword slangStatement break return continue EXECUTE_ERROR_BLOCK +syn match slangStatement "\" +syn keyword slangLabel case +syn keyword slangConditional !if if else switch +syn keyword slangRepeat while for _for loop do forever +syn keyword slangDefinition define typedef variable struct +syn keyword slangOperator or and andelse orelse shr shl xor not +syn keyword slangBlock EXIT_BLOCK ERROR_BLOCK +syn match slangBlock "\" +syn keyword slangConstant NULL +syn keyword slangType Integer_Type Double_Type Complex_Type String_Type Struct_Type Ref_Type Null_Type Array_Type DataType_Type + +syn match slangOctal "\<0\d\+\>" contains=slangOctalError +syn match slangOctalError "[89]\+" contained +syn match slangHex "\<0[xX][0-9A-Fa-f]*\>" +syn match slangDecimal "\<[1-9]\d*\>" +syn match slangFloat "\<\d\+\." +syn match slangFloat "\<\d\+\.\d\+\([Ee][-+]\=\d\+\)\=\>" +syn match slangFloat "\<\d\+\.[Ee][-+]\=\d\+\>" +syn match slangFloat "\<\d\+[Ee][-+]\=\d\+\>" +syn match slangFloat "\.\d\+\([Ee][-+]\=\d\+\)\=\>" +syn match slangImaginary "\.\d\+\([Ee][-+]\=\d*\)\=[ij]\>" +syn match slangImaginary "\<\d\+\(\.\d*\)\=\([Ee][-+]\=\d\+\)\=[ij]\>" + +syn region slangString oneline start='"' end='"' skip='\\"' +syn match slangCharacter "'[^\\]'" +syn match slangCharacter "'\\.'" +syn match slangCharacter "'\\[0-7]\{1,3}'" +syn match slangCharacter "'\\d\d\{1,3}'" +syn match slangCharacter "'\\x[0-7a-fA-F]\{1,2}'" + +syn match slangDelim "[][{};:,]" +syn match slangOperator "[-%+/&*=<>|!~^@]" + +"catch errors caused by wrong parenthesis +syn region slangParen matchgroup=slangDelim transparent start='(' end=')' contains=ALLBUT,slangParenError +syn match slangParenError ")" + +syn match slangComment "%.*$" +syn keyword slangOperator sizeof + +syn region slangPreCondit start="^\s*#\s*\(ifdef\>\|ifndef\>\|iftrue\>\|ifnfalse\>\|iffalse\>\|ifntrue\>\|if\$\|ifn\$\|\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=cComment,slangString,slangCharacter,slangNumber + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link slangDefinition Type +hi def link slangBlock slangDefinition +hi def link slangLabel Label +hi def link slangConditional Conditional +hi def link slangRepeat Repeat +hi def link slangCharacter Character +hi def link slangFloat Float +hi def link slangImaginary Float +hi def link slangDecimal slangNumber +hi def link slangOctal slangNumber +hi def link slangHex slangNumber +hi def link slangNumber Number +hi def link slangParenError Error +hi def link slangOctalError Error +hi def link slangOperator Operator +hi def link slangStructure Structure +hi def link slangInclude Include +hi def link slangPreCondit PreCondit +hi def link slangError Error +hi def link slangStatement Statement +hi def link slangType Type +hi def link slangString String +hi def link slangConstant Constant +hi def link slangRangeArray slangConstant +hi def link slangComment Comment +hi def link slangSpecial SpecialChar +hi def link slangTodo Todo +hi def link slangDelim Delimiter + + +let b:current_syntax = "slang" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/slice.vim b/git/usr/share/vim/vim92/syntax/slice.vim new file mode 100644 index 0000000000000000000000000000000000000000..3a57ece91394fead793479d262f3dbdf34e7af0b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slice.vim @@ -0,0 +1,78 @@ +" Vim syntax file +" Language: Slice (ZeroC's Specification Language for Ice) +" Maintainer: Morel Bodin +" Last Change: 2005 Dec 03 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" The Slice keywords + +syn keyword sliceType bool byte double float int long short string void +syn keyword sliceQualifier const extends idempotent implements local nonmutating out throws +syn keyword sliceConstruct class enum exception dictionary interface module LocalObject Object sequence struct +syn keyword sliceQualifier const extends idempotent implements local nonmutating out throws +syn keyword sliceBoolean false true + +" Include directives +syn region sliceIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match sliceIncluded display contained "<[^>]*>" +syn match sliceInclude display "^\s*#\s*include\>\s*["<]" contains=sliceIncluded + +" Double-include guards +syn region sliceGuard start="^#\(define\|ifndef\|endif\)" end="$" + +" Strings and characters +syn region sliceString start=+"+ end=+"+ + +" Numbers (shamelessly ripped from c.vim, only slightly modified) +"integer number, or floating point number without a dot and with "f". +syn case ignore +syn match sliceNumbers display transparent "\<\d\|\.\d" contains=sliceNumber,sliceFloat,sliceOctal +syn match sliceNumber display contained "\d\+" +"hex number +syn match sliceNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" +" Flag the first zero of an octal number as something special +syn match sliceOctal display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=sliceOctalZero +syn match sliceOctalZero display contained "\<0" +syn match sliceFloat display contained "\d\+f" +"floating point number, with dot, optional exponent +syn match sliceFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +"floating point number, starting with a dot, optional exponent +syn match sliceFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match sliceFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" +" flag an octal number with wrong digits +syn case match + + +" Comments +syn region sliceComment start="/\*" end="\*/" +syn match sliceComment "//.*" + +syn sync ccomment sliceComment + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link sliceComment Comment +hi def link sliceConstruct Keyword +hi def link sliceType Type +hi def link sliceString String +hi def link sliceIncluded String +hi def link sliceQualifier Keyword +hi def link sliceInclude Include +hi def link sliceGuard PreProc +hi def link sliceBoolean Boolean +hi def link sliceFloat Number +hi def link sliceNumber Number +hi def link sliceOctal Number +hi def link sliceOctalZero Special +hi def link sliceNumberError Special + + +let b:current_syntax = "slice" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/slpconf.vim b/git/usr/share/vim/vim92/syntax/slpconf.vim new file mode 100644 index 0000000000000000000000000000000000000000..712ba90719ffae7f877faf1fbddf710907e971c5 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slpconf.vim @@ -0,0 +1,273 @@ +" Vim syntax file +" Language: RFC 2614 - An API for Service Location configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword slpconfTodo contained TODO FIXME XXX NOTE + +syn region slpconfComment display oneline start='^[#;]' end='$' + \ contains=slpconfTodo,@Spell + +syn match slpconfBegin display '^' + \ nextgroup=slpconfTag, + \ slpconfComment skipwhite + +syn keyword slpconfTag contained net + \ nextgroup=slpconfNetTagDot + +syn match slpconfNetTagDot contained display '.' + \ nextgroup=slpconfNetTag + +syn keyword slpconfNetTag contained slp + \ nextgroup=slpconfNetSlpTagdot + +syn match slpconfNetSlpTagDot contained display '.' + \ nextgroup=slpconfNetSlpTag + +syn keyword slpconfNetSlpTag contained isDA traceDATraffic traceMsg + \ traceDrop traceReg isBroadcastOnly + \ passiveDADetection securityEnabled + \ nextgroup=slpconfBooleanEq,slpconfBooleanHome + \ skipwhite + +syn match slpconfBooleanHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfBooleanEq skipwhite + +syn match slpconfBooleanEq contained display '=' + \ nextgroup=slpconfBoolean skipwhite + +syn keyword slpconfBoolean contained true false TRUE FALSE + +syn keyword slpconfNetSlpTag contained DAHeartBeat multicastTTL + \ DAActiveDiscoveryInterval + \ multicastMaximumWait multicastTimeouts + \ randomWaitBound MTU maxResults + \ nextgroup=slpconfIntegerEq,slpconfIntegerHome + \ skipwhite + +syn match slpconfIntegerHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfIntegerEq skipwhite + +syn match slpconfIntegerEq contained display '=' + \ nextgroup=slpconfInteger skipwhite + +syn match slpconfInteger contained display '\<\d\+\>' + +syn keyword slpconfNetSlpTag contained DAAttributes SAAttributes + \ nextgroup=slpconfAttrEq,slpconfAttrHome + \ skipwhite + +syn match slpconfAttrHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfAttrEq skipwhite + +syn match slpconfAttrEq contained display '=' + \ nextgroup=slpconfAttrBegin skipwhite + +syn match slpconfAttrBegin contained display '(' + \ nextgroup=slpconfAttrTag skipwhite + +syn match slpconfAttrTag contained display + \ '[^* \t_(),\\!<=>~[:cntrl:]]\+' + \ nextgroup=slpconfAttrTagEq skipwhite + +syn match slpconfAttrTagEq contained display '=' + \ nextgroup=@slpconfAttrValue skipwhite + +syn cluster slpconfAttrValueCon contains=slpconfAttrValueSep,slpconfAttrEnd + +syn cluster slpconfAttrValue contains=slpconfAttrIValue,slpconfAttrSValue, + \ slpconfAttrBValue,slpconfAttrSSValue + +syn match slpconfAttrSValue contained display '[^ (),\\!<=>~[:cntrl:]]\+' + \ nextgroup=@slpconfAttrValueCon skipwhite + +syn match slpconfAttrSSValue contained display '\\FF\%(\\\x\x\)\+' + \ nextgroup=@slpconfAttrValueCon skipwhite + +syn match slpconfAttrIValue contained display '[-]\=\d\+\>' + \ nextgroup=@slpconfAttrValueCon skipwhite + +syn keyword slpconfAttrBValue contained true false + \ nextgroup=@slpconfAttrValueCon skipwhite + +syn match slpconfAttrValueSep contained display ',' + \ nextgroup=@slpconfAttrValue skipwhite + +syn match slpconfAttrEnd contained display ')' + \ nextgroup=slpconfAttrSep skipwhite + +syn match slpconfAttrSep contained display ',' + \ nextgroup=slpconfAttrBegin skipwhite + +syn keyword slpconfNetSlpTag contained useScopes typeHint + \ nextgroup=slpconfStringsEq,slpconfStringsHome + \ skipwhite + +syn match slpconfStringsHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfStringsEq skipwhite + +syn match slpconfStringsEq contained display '=' + \ nextgroup=slpconfStrings skipwhite + +syn match slpconfStrings contained display + \ '\%([[:digit:][:alpha:]]\|[!-+./:-@[-`{-~-]\|\\\x\x\)\+' + \ nextgroup=slpconfStringsSep skipwhite + +syn match slpconfStringsSep contained display ',' + \ nextgroup=slpconfStrings skipwhite + +syn keyword slpconfNetSlpTag contained DAAddresses + \ nextgroup=slpconfAddressesEq,slpconfAddrsHome + \ skipwhite + +syn match slpconfAddrsHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfAddressesEq skipwhite + +syn match slpconfAddressesEq contained display '=' + \ nextgroup=@slpconfAddresses skipwhite + +syn cluster slpconfAddresses contains=slpconfFQDNs,slpconfHostnumbers + +syn match slpconfFQDNs contained display + \ '\a[[:alnum:]-]*[[:alnum:]]\|\a' + \ nextgroup=slpconfAddressesSep skipwhite + +syn match slpconfHostnumbers contained display + \ '\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfAddressesSep skipwhite + +syn match slpconfAddressesSep contained display ',' + \ nextgroup=@slpconfAddresses skipwhite + +syn keyword slpconfNetSlpTag contained serializedRegURL + \ nextgroup=slpconfStringEq,slpconfStringHome + \ skipwhite + +syn match slpconfStringHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfStringEq skipwhite + +syn match slpconfStringEq contained display '=' + \ nextgroup=slpconfString skipwhite + +syn match slpconfString contained display + \ '\%([!-+./:-@[-`{-~-]\|\\\x\x\)\+\|[[:digit:][:alpha:]]' + +syn keyword slpconfNetSlpTag contained multicastTimeouts DADiscoveryTimeouts + \ datagramTimeouts + \ nextgroup=slpconfIntegersEq, + \ slpconfIntegersHome skipwhite + +syn match slpconfIntegersHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfIntegersEq skipwhite + +syn match slpconfIntegersEq contained display '=' + \ nextgroup=slpconfIntegers skipwhite + +syn match slpconfIntegers contained display '\<\d\+\>' + \ nextgroup=slpconfIntegersSep skipwhite + +syn match slpconfIntegersSep contained display ',' + \ nextgroup=slpconfIntegers skipwhite + +syn keyword slpconfNetSlpTag contained interfaces + \ nextgroup=slpconfHostnumsEq, + \ slpconfHostnumsHome skipwhite + +syn match slpconfHostnumsHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfHostnumsEq skipwhite + +syn match slpconfHostnumsEq contained display '=' + \ nextgroup=slpconfOHostnumbers skipwhite + +syn match slpconfOHostnumbers contained display + \ '\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfHostnumsSep skipwhite + +syn match slpconfHostnumsSep contained display ',' + \ nextgroup=slpconfOHostnumbers skipwhite + +syn keyword slpconfNetSlpTag contained locale + \ nextgroup=slpconfLocaleEq,slpconfLocaleHome + \ skipwhite + +syn match slpconfLocaleHome contained display + \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}' + \ nextgroup=slpconfLocaleEq skipwhite + +syn match slpconfLocaleEq contained display '=' + \ nextgroup=slpconfLocale skipwhite + +syn match slpconfLocale contained display '\a\{1,8}\%(-\a\{1,8}\)\=' + +hi def link slpconfTodo Todo +hi def link slpconfComment Comment +hi def link slpconfTag Identifier +hi def link slpconfDelimiter Delimiter +hi def link slpconfNetTagDot slpconfDelimiter +hi def link slpconfNetTag slpconfTag +hi def link slpconfNetSlpTagDot slpconfNetTagDot +hi def link slpconfNetSlpTag slpconfTag +hi def link slpconfHome Special +hi def link slpconfBooleanHome slpconfHome +hi def link slpconfEq Operator +hi def link slpconfBooleanEq slpconfEq +hi def link slpconfBoolean Boolean +hi def link slpconfIntegerHome slpconfHome +hi def link slpconfIntegerEq slpconfEq +hi def link slpconfInteger Number +hi def link slpconfAttrHome slpconfHome +hi def link slpconfAttrEq slpconfEq +hi def link slpconfAttrBegin slpconfDelimiter +hi def link slpconfAttrTag slpconfTag +hi def link slpconfAttrTagEq slpconfEq +hi def link slpconfAttrIValue slpconfInteger +hi def link slpconfAttrSValue slpconfString +hi def link slpconfAttrBValue slpconfBoolean +hi def link slpconfAttrSSValue slpconfString +hi def link slpconfSeparator slpconfDelimiter +hi def link slpconfAttrValueSep slpconfSeparator +hi def link slpconfAttrEnd slpconfAttrBegin +hi def link slpconfAttrSep slpconfSeparator +hi def link slpconfStringsHome slpconfHome +hi def link slpconfStringsEq slpconfEq +hi def link slpconfStrings slpconfString +hi def link slpconfStringsSep slpconfSeparator +hi def link slpconfAddrsHome slpconfHome +hi def link slpconfAddressesEq slpconfEq +hi def link slpconfFQDNs String +hi def link slpconfHostnumbers Number +hi def link slpconfAddressesSep slpconfSeparator +hi def link slpconfStringHome slpconfHome +hi def link slpconfStringEq slpconfEq +hi def link slpconfString String +hi def link slpconfIntegersHome slpconfHome +hi def link slpconfIntegersEq slpconfEq +hi def link slpconfIntegers slpconfInteger +hi def link slpconfIntegersSep slpconfSeparator +hi def link slpconfHostnumsHome slpconfHome +hi def link slpconfHostnumsEq slpconfEq +hi def link slpconfOHostnumbers slpconfHostnumbers +hi def link slpconfHostnumsSep slpconfSeparator +hi def link slpconfLocaleHome slpconfHome +hi def link slpconfLocaleEq slpconfEq +hi def link slpconfLocale slpconfString + +let b:current_syntax = "slpconf" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/slpreg.vim b/git/usr/share/vim/vim92/syntax/slpreg.vim new file mode 100644 index 0000000000000000000000000000000000000000..a177b063f011e0632e635970aa0f67b79466d34c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slpreg.vim @@ -0,0 +1,122 @@ +" Vim syntax file +" Language: RFC 2614 - An API for Service Location registration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword slpregTodo contained TODO FIXME XXX NOTE + +syn region slpregComment display oneline start='^[#;]' end='$' + \ contains=slpregTodo,@Spell + +syn match slpregBegin display '^' + \ nextgroup=slpregServiceURL, + \ slpregComment + +syn match slpregServiceURL contained display 'service:' + \ nextgroup=slpregServiceType + +syn match slpregServiceType contained display '\a[[:alpha:][:digit:]+-]*\%(\.\a[[:alpha:][:digit:]+-]*\)\=\%(:\a[[:alpha:][:digit:]+-]*\)\=' + \ nextgroup=slpregServiceSAPCol + +syn match slpregServiceSAPCol contained display ':' + \ nextgroup=slpregSAP + +syn match slpregSAP contained '[^,]\+' + \ nextgroup=slpregLangSep +"syn match slpregSAP contained display '\%(//\%(\%([[:alpha:][:digit:]$-_.~!*\'(),+;&=]*@\)\=\%([[:alnum:]][[:alnum:]-]*[[:alnum:]]\|[[:alnum:]]\.\)*\%(\a[[:alnum:]-]*[[:alnum:]]\|\a\)\%(:\d\+\)\=\)\=\|/at/\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}:\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\|/ipx/\x\{8}:\x\{12}:\x\{4}\)\%(/\%([[:alpha:][:digit:]$-_.~!*\'()+;?:@&=+]\|\\\x\x\)*\)*\%(;[^()\\!<=>~[:cntrl:]* \t_]\+\%(=[^()\\!<=>~[:cntrl:] ]\+\)\=\)*' + +syn match slpregLangSep contained display ',' + \ nextgroup=slpregLang + +syn match slpregLang contained display '\a\{1,8}\%(-\a\{1,8\}\)\=' + \ nextgroup=slpregLTimeSep + +syn match slpregLTimeSep contained display ',' + \ nextgroup=slpregLTime + +syn match slpregLTime contained display '\d\{1,5}' + \ nextgroup=slpregType,slpregUNewline + +syn match slpregType contained display '\a[[:alpha:][:digit:]+-]*' + \ nextgroup=slpregUNewLine + +syn match slpregUNewLine contained '\s*\n' + \ nextgroup=slpregScopes,slpregAttrList skipnl + +syn keyword slpregScopes contained scopes + \ nextgroup=slpregScopesEq + +syn match slpregScopesEq contained '=' nextgroup=slpregScopeName + +syn match slpregScopeName contained '[^(),\\!<=>[:cntrl:];*+ ]\+' + \ nextgroup=slpregScopeNameSep, + \ slpregScopeNewline + +syn match slpregScopeNameSep contained ',' + \ nextgroup=slpregScopeName + +syn match slpregScopeNewline contained '\s*\n' + \ nextgroup=slpregAttribute skipnl + +syn match slpregAttribute contained '[^(),\\!<=>[:cntrl:]* \t_]\+' + \ nextgroup=slpregAttributeEq, + \ slpregScopeNewline + +syn match slpregAttributeEq contained '=' + \ nextgroup=@slpregAttrValue + +syn cluster slpregAttrValueCon contains=slpregAttribute,slpregAttrValueSep + +syn cluster slpregAttrValue contains=slpregAttrIValue,slpregAttrSValue, + \ slpregAttrBValue,slpregAttrSSValue + +syn match slpregAttrSValue contained display '[^(),\\!<=>~[:cntrl:]]\+' + \ nextgroup=@slpregAttrValueCon skipwhite skipnl + +syn match slpregAttrSSValue contained display '\\FF\%(\\\x\x\)\+' + \ nextgroup=@slpregAttrValueCon skipwhite skipnl + +syn match slpregAttrIValue contained display '[-]\=\d\+\>' + \ nextgroup=@slpregAttrValueCon skipwhite skipnl + +syn keyword slpregAttrBValue contained true false + \ nextgroup=@slpregAttrValueCon skipwhite skipnl + +syn match slpregAttrValueSep contained display ',' + \ nextgroup=@slpregAttrValue skipwhite skipnl + +hi def link slpregTodo Todo +hi def link slpregComment Comment +hi def link slpregServiceURL Type +hi def link slpregServiceType slpregServiceURL +hi def link slpregServiceSAPCol slpregServiceURL +hi def link slpregSAP slpregServiceURL +hi def link slpregDelimiter Delimiter +hi def link slpregLangSep slpregDelimiter +hi def link slpregLang String +hi def link slpregLTimeSep slpregDelimiter +hi def link slpregLTime Number +hi def link slpregType Type +hi def link slpregScopes Identifier +hi def link slpregScopesEq Operator +hi def link slpregScopeName String +hi def link slpregScopeNameSep slpregDelimiter +hi def link slpregAttribute Identifier +hi def link slpregAttributeEq Operator +hi def link slpregAttrSValue String +hi def link slpregAttrSSValue slpregAttrSValue +hi def link slpregAttrIValue Number +hi def link slpregAttrBValue Boolean +hi def link slpregAttrValueSep slpregDelimiter + +let b:current_syntax = "slpreg" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/slpspi.vim b/git/usr/share/vim/vim92/syntax/slpspi.vim new file mode 100644 index 0000000000000000000000000000000000000000..eaeb02a80f13712420f15f4ede41445bb3c51823 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slpspi.vim @@ -0,0 +1,39 @@ +" Vim syntax file +" Language: RFC 2614 - An API for Service Location SPI file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword slpspiTodo contained TODO FIXME XXX NOTE + +syn region slpspiComment display oneline start='^[#;]' end='$' + \ contains=slpspiTodo,@Spell + +syn match slpspiBegin display '^' + \ nextgroup=slpspiKeyType, + \ slpspiComment skipwhite + +syn keyword slpspiKeyType contained PRIVATE PUBLIC + \ nextgroup=slpspiString skipwhite + +syn match slpspiString contained '\S\+' + \ nextgroup=slpspiKeyFile skipwhite + +syn match slpspiKeyFile contained '\S\+' + +hi def link slpspiTodo Todo +hi def link slpspiComment Comment +hi def link slpspiKeyType Type +hi def link slpspiString Identifier +hi def link slpspiKeyFile String + +let b:current_syntax = "slpspi" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/slrnrc.vim b/git/usr/share/vim/vim92/syntax/slrnrc.vim new file mode 100644 index 0000000000000000000000000000000000000000..004bdd1bb117da2769a66c9265c92a3ce8ea34de --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slrnrc.vim @@ -0,0 +1,181 @@ +" Vim syntax file +" Language: Slrn setup file (based on slrn 0.9.8.1) +" Maintainer: Preben 'Peppe' Guldberg +" Last Change: 23 April 2006 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn keyword slrnrcTodo contained Todo + +" In some places whitespace is illegal +syn match slrnrcSpaceError contained "\s" + +syn match slrnrcNumber contained "-\=\<\d\+\>" +syn match slrnrcNumber contained +'[^']\+'+ + +syn match slrnrcSpecKey contained +\(\\[er"']\|\^[^'"]\|\\\o\o\o\)+ + +syn match slrnrcKey contained "\S\+" contains=slrnrcSpecKey +syn region slrnrcKey contained start=+"+ skip=+\\"+ end=+"+ oneline contains=slrnrcSpecKey +syn region slrnrcKey contained start=+'+ skip=+\\'+ end=+'+ oneline contains=slrnrcSpecKey + +syn match slrnrcSpecChar contained +'+ +syn match slrnrcSpecChar contained +\\[n"]+ +syn match slrnrcSpecChar contained "%[dfmnrs%]" + +syn match slrnrcString contained /[^ \t%"']\+/ contains=slrnrcSpecChar +syn region slrnrcString contained start=+"+ skip=+\\"+ end=+"+ oneline contains=slrnrcSpecChar + +syn match slrnSlangPreCondit "^#\s*ifn\=\(def\>\|false\>\|true\>\|\$\)" +syn match slrnSlangPreCondit "^#\s*e\(lif\|lse\|ndif\)\>" + +syn match slrnrcComment "%.*$" contains=slrnrcTodo + +syn keyword slrnrcVarInt contained abort_unmodified_edits article_window_page_overlap auto_mark_article_as_read beep broken_xref broken_xref cc_followup check_new_groups +syn keyword slrnrcVarInt contained color_by_score confirm_actions custom_sort_by_threads display_cursor_bar drop_bogus_groups editor_uses_mime_charset emphasized_text_mask +syn keyword slrnrcVarInt contained emphasized_text_mode fold_headers fold_headers followup_strip_signature force_authentication force_authentication generate_date_header +syn keyword slrnrcVarInt contained generate_email_from generate_email_from generate_message_id grouplens_port hide_pgpsignature hide_quotes hide_signature +syn keyword slrnrcVarInt contained hide_verbatim_marks hide_verbatim_text highlight_unread_subjects highlight_urls ignore_signature kill_score lines_per_update +syn keyword slrnrcVarInt contained mail_editor_is_mua max_low_score max_queued_groups min_high_score mouse netiquette_warnings new_subject_breaks_threads no_autosave +syn keyword slrnrcVarInt contained no_backups prefer_head process_verbatim_marks query_next_article query_next_group query_read_group_cutoff read_active reject_long_lines +syn keyword slrnrcVarInt contained scroll_by_page show_article show_thread_subject simulate_graphic_chars smart_quote sorting_method spoiler_char spoiler_char +syn keyword slrnrcVarInt contained spoiler_display_mode spoiler_display_mode spool_check_up_on_nov spool_check_up_on_nov uncollapse_threads unsubscribe_new_groups use_blink +syn keyword slrnrcVarInt contained use_color use_flow_control use_grouplens use_grouplens use_header_numbers use_inews use_inews use_localtime use_metamail use_mime use_mime +syn keyword slrnrcVarInt contained use_recommended_msg_id use_slrnpull use_slrnpull use_tilde use_tmpdir use_uudeview use_uudeview warn_followup_to wrap_flags wrap_method +syn keyword slrnrcVarInt contained write_newsrc_flags + +" Listed for removal +syn keyword slrnrcVarInt contained author_display display_author_realname display_score group_dsc_start_column process_verbatum_marks prompt_next_group query_reconnect +syn keyword slrnrcVarInt contained show_descriptions use_xgtitle + +" Match as a "string" too +syn region slrnrcVarIntStr contained matchgroup=slrnrcVarInt start=+"+ end=+"+ oneline contains=slrnrcVarInt,slrnrcSpaceError + +syn keyword slrnrcVarStr contained Xbrowser art_help_line art_status_line cansecret_file cc_post_string charset custom_headers custom_sort_order decode_directory +syn keyword slrnrcVarStr contained editor_command failed_posts_file followup_custom_headers followup_date_format followup_string followupto_string group_help_line +syn keyword slrnrcVarStr contained group_status_line grouplens_host grouplens_pseudoname header_help_line header_status_line hostname inews_program macro_directory +syn keyword slrnrcVarStr contained mail_editor_command metamail_command mime_charset non_Xbrowser organization overview_date_format post_editor_command post_object +syn keyword slrnrcVarStr contained postpone_directory printer_name quote_string realname reply_custom_headers reply_string replyto save_directory save_posts save_replies +syn keyword slrnrcVarStr contained score_editor_command scorefile sendmail_command server_object signature signoff_string spool_active_file spool_activetimes_file +syn keyword slrnrcVarStr contained spool_inn_root spool_newsgroups_file spool_nov_file spool_nov_root spool_overviewfmt_file spool_root supersedes_custom_headers +syn keyword slrnrcVarStr contained top_status_line username + +" Listed for removal +syn keyword slrnrcVarStr contained followup cc_followup_string + +" Match as a "string" too +syn region slrnrcVarStrStr contained matchgroup=slrnrcVarStr start=+"+ end=+"+ oneline contains=slrnrcVarStr,slrnrcSpaceError + +" Various commands +syn region slrnrcCmdLine matchgroup=slrnrcCmd start="\<\(autobaud\|color\|compatible_charsets\|group_display_format\|grouplens_add\|header_display_format\|ignore_quotes\|include\|interpret\|mono\|nnrpaccess\|posting_host\|server\|set\|setkey\|strip_re_regexp\|strip_sig_regexp\|strip_was_regexp\|unsetkey\|visible_headers\)\>" end="$" oneline contains=slrnrc\(String\|Comment\) + +" Listed for removal +syn region slrnrcCmdLine matchgroup=slrnrcCmd start="\<\(cc_followup_string\|decode_directory\|editor_command\|followup\|hostname\|organization\|quote_string\|realname\|replyto\|scorefile\|signature\|username\)\>" end="$" oneline contains=slrnrc\(String\|Comment\) + +" Setting variables +syn keyword slrnrcSet contained set +syn match slrnrcSetStr "^\s*set\s\+\S\+" skipwhite nextgroup=slrnrcString contains=slrnrcSet,slrnrcVarStr\(Str\)\= +syn match slrnrcSetInt contained "^\s*set\s\+\S\+" contains=slrnrcSet,slrnrcVarInt\(Str\)\= +syn match slrnrcSetIntLine "^\s*set\s\+\S\+\s\+\(-\=\d\+\>\|'[^']\+'\)" contains=slrnrcSetInt,slrnrcNumber,slrnrcVarInt + +" Color definitions +syn match slrnrcColorObj contained "\" +syn keyword slrnrcColorObj contained article author boldtext box cursor date description error frame from_myself group grouplens_display header_name header_number headers +syn keyword slrnrcColorObj contained high_score italicstext menu menu_press message neg_score normal pgpsignature pos_score quotes response_char selection signature status +syn keyword slrnrcColorObj contained subject thread_number tilde tree underlinetext unread_subject url verbatim + +" Listed for removal +syn keyword slrnrcColorObj contained verbatum + +syn region slrnrcColorObjStr contained matchgroup=slrnrcColorObj start=+"+ end=+"+ oneline contains=slrnrcColorObj,slrnrcSpaceError +syn keyword slrnrcColorVal contained default +syn keyword slrnrcColorVal contained black blue brightblue brightcyan brightgreen brightmagenta brightred brown cyan gray green lightgray magenta red white yellow +syn region slrnrcColorValStr contained matchgroup=slrnrcColorVal start=+"+ end=+"+ oneline contains=slrnrcColorVal,slrnrcSpaceError +" Matching a function with three arguments +syn keyword slrnrcColor contained color +syn match slrnrcColorInit contained "^\s*color\s\+\S\+" skipwhite nextgroup=slrnrcColorVal\(Str\)\= contains=slrnrcColor\(Obj\|ObjStr\)\= +syn match slrnrcColorLine "^\s*color\s\+\S\+\s\+\S\+" skipwhite nextgroup=slrnrcColorVal\(Str\)\= contains=slrnrcColor\(Init\|Val\|ValStr\) + +" Mono settings +syn keyword slrnrcMonoVal contained blink bold none reverse underline +syn region slrnrcMonoValStr contained matchgroup=slrnrcMonoVal start=+"+ end=+"+ oneline contains=slrnrcMonoVal,slrnrcSpaceError +" Color object is inherited +" Mono needs at least one argument +syn keyword slrnrcMono contained mono +syn match slrnrcMonoInit contained "^\s*mono\s\+\S\+" contains=slrnrcMono,slrnrcColorObj\(Str\)\= +syn match slrnrcMonoLine "^\s*mono\s\+\S\+\s\+\S.*" contains=slrnrcMono\(Init\|Val\|ValStr\),slrnrcComment + +" Functions in article mode +syn keyword slrnrcFunArt contained article_bob article_eob article_left article_line_down article_line_up article_page_down article_page_up article_right article_search +syn keyword slrnrcFunArt contained author_search_backward author_search_forward browse_url cancel catchup catchup_all create_score decode delete delete_thread digit_arg +syn keyword slrnrcFunArt contained enlarge_article_window evaluate_cmd exchange_mark expunge fast_quit followup forward forward_digest get_children_headers get_parent_header +syn keyword slrnrcFunArt contained goto_article goto_last_read grouplens_rate_article header_bob header_eob header_line_down header_line_up header_page_down header_page_up +syn keyword slrnrcFunArt contained help hide_article locate_article mark_spot next next_high_score next_same_subject pipe post post_postponed previous print quit redraw +syn keyword slrnrcFunArt contained repeat_last_key reply request save show_spoilers shrink_article_window skip_quotes skip_to_next_group skip_to_previous_group +syn keyword slrnrcFunArt contained subject_search_backward subject_search_forward supersede suspend tag_header toggle_collapse_threads toggle_header_formats +syn keyword slrnrcFunArt contained toggle_header_tag toggle_headers toggle_pgpsignature toggle_quotes toggle_rot13 toggle_signature toggle_sort toggle_verbatim_marks +syn keyword slrnrcFunArt contained toggle_verbatim_text uncatchup uncatchup_all undelete untag_headers view_scores wrap_article zoom_article_window + +" Listed for removal +syn keyword slrnrcFunArt contained art_bob art_eob art_xpunge article_linedn article_lineup article_pagedn article_pageup down enlarge_window goto_beginning goto_end left +syn keyword slrnrcFunArt contained locate_header_by_msgid pagedn pageup pipe_article prev print_article right scroll_dn scroll_up shrink_window skip_to_prev_group +syn keyword slrnrcFunArt contained toggle_show_author up + +" Functions in group mode +syn keyword slrnrcFunGroup contained add_group bob catchup digit_arg eob evaluate_cmd group_search group_search_backward group_search_forward help line_down line_up move_group +syn keyword slrnrcFunGroup contained page_down page_up post post_postponed quit redraw refresh_groups repeat_last_key save_newsrc select_group subscribe suspend +syn keyword slrnrcFunGroup contained toggle_group_formats toggle_hidden toggle_list_all toggle_scoring transpose_groups uncatchup unsubscribe + +" Listed for removal +syn keyword slrnrcFunGroup contained down group_bob group_eob pagedown pageup toggle_group_display uncatch_up up + +" Functions in readline mode (actually from slang's slrline.c) +syn keyword slrnrcFunRead contained bdel bol complete cycle del delbol delbow deleol down enter eol left quoted_insert right self_insert trim up + +" Binding keys +syn keyword slrnrcSetkeyObj contained article group readline +syn region slrnrcSetkeyObjStr contained matchgroup=slrnrcSetkeyObj start=+"+ end=+"+ oneline contains=slrnrcSetkeyObj +syn match slrnrcSetkeyArt contained '\("\=\)\\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunArt +syn match slrnrcSetkeyGroup contained '\("\=\)\\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunGroup +syn match slrnrcSetkeyRead contained '\("\=\)\\1\s\+\S\+' skipwhite nextgroup=slrnrcKey contains=slrnrcSetKeyObj\(Str\)\=,slrnrcFunRead +syn match slrnrcSetkey "^\s*setkey\>" skipwhite nextgroup=slrnrcSetkeyArt,slrnrcSetkeyGroup,slrnrcSetkeyRead + +" Unbinding keys +syn match slrnrcUnsetkey '^\s*unsetkey\s\+\("\)\=\(article\|group\|readline\)\>\1' skipwhite nextgroup=slrnrcKey contains=slrnrcSetkeyObj\(Str\)\= + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link slrnrcTodo Todo +hi def link slrnrcSpaceError Error +hi def link slrnrcNumber Number +hi def link slrnrcSpecKey SpecialChar +hi def link slrnrcKey String +hi def link slrnrcSpecChar SpecialChar +hi def link slrnrcString String +hi def link slrnSlangPreCondit Special +hi def link slrnrcComment Comment +hi def link slrnrcVarInt Identifier +hi def link slrnrcVarStr Identifier +hi def link slrnrcCmd slrnrcSet +hi def link slrnrcSet Operator +hi def link slrnrcColor Keyword +hi def link slrnrcColorObj Identifier +hi def link slrnrcColorVal String +hi def link slrnrcMono Keyword +hi def link slrnrcMonoObj Identifier +hi def link slrnrcMonoVal String +hi def link slrnrcFunArt Macro +hi def link slrnrcFunGroup Macro +hi def link slrnrcFunRead Macro +hi def link slrnrcSetkeyObj Identifier +hi def link slrnrcSetkey Keyword +hi def link slrnrcUnsetkey slrnrcSetkey + + +let b:current_syntax = "slrnrc" + +"EOF vim: ts=8 noet tw=120 sw=8 sts=0 diff --git a/git/usr/share/vim/vim92/syntax/slrnsc.vim b/git/usr/share/vim/vim92/syntax/slrnsc.vim new file mode 100644 index 0000000000000000000000000000000000000000..9f51cad380676e8284e42ef0e3be53e0050d7ae5 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/slrnsc.vim @@ -0,0 +1,68 @@ +" Vim syntax file +" Language: Slrn score file (based on slrn 0.9.8.0) +" Maintainer: Preben 'Peppe' Guldberg +" Last Change: 8 Oct 2004 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" characters in newsgroup names +setlocal isk=@,48-57,.,-,_,+ + +syn match slrnscComment "%.*$" +syn match slrnscSectionCom ".].*"lc=2 + +syn match slrnscGroup contained "\(\k\|\*\)\+" +syn match slrnscNumber contained "\d\+" +syn match slrnscDate contained "\(\d\{1,2}[-/]\)\{2}\d\{4}" +syn match slrnscDelim contained ":" +syn match slrnscComma contained "," +syn match slrnscOper contained "\~" +syn match slrnscEsc contained "\\[ecC<>.]" +syn match slrnscEsc contained "[?^]" +syn match slrnscEsc contained "[^\\]$\s*$"lc=1 + +syn keyword slrnscInclude contained include +syn match slrnscIncludeLine "^\s*Include\s\+\S.*$" + +syn region slrnscSection matchgroup=slrnscSectionStd start="^\s*\[" end='\]' contains=slrnscGroup,slrnscComma,slrnscSectionCom +syn region slrnscSection matchgroup=slrnscSectionNot start="^\s*\[\~" end='\]' contains=slrnscGroup,slrnscCommas,slrnscSectionCom + +syn keyword slrnscItem contained Age Bytes Date Expires From Has-Body Lines Message-Id Newsgroup References Subject Xref + +syn match slrnscScoreItem contained "%.*$" skipempty nextgroup=slrnscScoreItem contains=slrnscComment +syn match slrnscScoreItem contained "^\s*Expires:\s*\(\d\{1,2}[-/]\)\{2}\d\{4}\s*$" skipempty nextgroup=slrnscScoreItem contains=slrnscItem,slrnscDelim,slrnscDate +syn match slrnscScoreItem contained "^\s*\~\=\(Age\|Bytes\|Has-Body\|Lines\):\s*\d\+\s*$" skipempty nextgroup=slrnscScoreItem contains=slrnscOper,slrnscItem,slrnscDelim,slrnscNumber +syn match slrnscScoreItemFill contained ".*$" skipempty nextgroup=slrnscScoreItem contains=slrnscEsc +syn match slrnscScoreItem contained "^\s*\~\=\(Date\|From\|Message-Id\|Newsgroup\|References\|Subject\|Xref\):" nextgroup=slrnscScoreItemFill contains=slrnscOper,slrnscItem,slrnscDelim +syn region slrnscScoreItem contained matchgroup=Special start="^\s*\~\={::\=" end="^\s*}" skipempty nextgroup=slrnscScoreItem contains=slrnscScoreItem + +syn keyword slrnscScore contained Score +syn match slrnscScoreIdent contained "%.*" +syn match slrnScoreLine "^\s*Score::\=\s\+=\=[-+]\=\d\+\s*\(%.*\)\=$" skipempty nextgroup=slrnscScoreItem contains=slrnscScore,slrnscDelim,slrnscOper,slrnscNumber,slrnscScoreIdent + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link slrnscComment Comment +hi def link slrnscSectionCom slrnscComment +hi def link slrnscGroup String +hi def link slrnscNumber Number +hi def link slrnscDate Special +hi def link slrnscDelim Delimiter +hi def link slrnscComma SpecialChar +hi def link slrnscOper SpecialChar +hi def link slrnscEsc String +hi def link slrnscSectionStd Type +hi def link slrnscSectionNot Delimiter +hi def link slrnscItem Statement +hi def link slrnscScore Keyword +hi def link slrnscScoreIdent Identifier +hi def link slrnscInclude Keyword + + +let b:current_syntax = "slrnsc" + +"EOF vim: ts=8 noet tw=200 sw=8 sts=0 diff --git a/git/usr/share/vim/vim92/syntax/sm.vim b/git/usr/share/vim/vim92/syntax/sm.vim new file mode 100644 index 0000000000000000000000000000000000000000..13a5bf117e850b4c8c3cf322bd136ec61236eb96 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sm.vim @@ -0,0 +1,82 @@ +" Vim syntax file +" Language: sendmail +" Maintainer: This runtime file is looking for a new maintainer. +" Former Maintainer: Charles E. Campbell +" Last Change: Oct 25, 2016 +" 2024 Feb 19 by Vim Project (announce adoption) +" Version: 9 +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM +if exists("b:current_syntax") + finish +endif + +" Comments +syn match smComment "^#.*$" contains=@Spell + +" Definitions, Classes, Files, Options, Precedence, Trusted Users, Mailers +syn match smDefine "^[CDF]." +syn match smDefine "^O[AaBcdDeFfgHiLmNoQqrSsTtuvxXyYzZ]" +syn match smDefine "^O\s"he=e-1 +syn match smDefine "^M[a-zA-Z0-9]\+,"he=e-1 +syn match smDefine "^T" nextgroup=smTrusted +syn match smDefine "^P" nextgroup=smMesg +syn match smTrusted "\S\+$" contained +syn match smMesg "\S*="he=e-1 contained nextgroup=smPrecedence +syn match smPrecedence "-\=[0-9]\+" contained + +" Header Format H?list-of-mailer-flags?name: format +syn match smHeaderSep contained "[?:]" +syn match smHeader "^H\(?[a-zA-Z]\+?\)\=[-a-zA-Z_]\+:" contains=smHeaderSep + +" Variables +syn match smVar "\$[a-z\.\|]" + +" Rulesets +syn match smRuleset "^S\d*" + +" Rewriting Rules +syn match smRewrite "^R" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsUser + +syn match smRewriteLhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsSep +syn match smRewriteLhsToken contained "\(\$[-*+]\|\$[-=][A-Za-z]\|\$Y\)\+" skipwhite nextgroup=smRewriteLhsUser,smRewriteLhsSep + +syn match smRewriteLhsSep contained "\t\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsUser + +syn match smRewriteRhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsSep +syn match smRewriteRhsToken contained "\(\$\d\|\$>\d\|\$#\|\$@\|\$:[-_a-zA-Z]\+\|\$[[\]]\|\$@\|\$:\|\$[A-Za-z]\)\+" skipwhite nextgroup=smRewriteRhsUser,smRewriteRhsSep + +syn match smRewriteRhsSep contained "\t\+" skipwhite nextgroup=smRewriteComment,smRewriteRhsSep +syn match smRewriteRhsSep contained "$" + +syn match smRewriteComment contained "[^\t$]*$" + +" Clauses +syn match smClauseError "\$\." +syn match smElse contained "\$|" +syn match smClauseCont contained "^\t" +syn region smClause matchgroup=Delimiter start="\$?." matchgroup=Delimiter end="\$\." contains=smElse,smClause,smVar,smClauseCont + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link smClause Special +hi def link smClauseError Error +hi def link smComment Comment +hi def link smDefine Statement +hi def link smElse Delimiter +hi def link smHeader Statement +hi def link smHeaderSep String +hi def link smMesg Special +hi def link smPrecedence Number +hi def link smRewrite Statement +hi def link smRewriteComment Comment +hi def link smRewriteLhsToken String +hi def link smRewriteLhsUser Statement +hi def link smRewriteRhsToken String +hi def link smRuleset Preproc +hi def link smTrusted Special +hi def link smVar String + +let b:current_syntax = "sm" + +" vim: ts=18 diff --git a/git/usr/share/vim/vim92/syntax/smarty.vim b/git/usr/share/vim/vim92/syntax/smarty.vim new file mode 100644 index 0000000000000000000000000000000000000000..a39c290abe340a5c4e0807ceaf329158dbaadcb0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/smarty.vim @@ -0,0 +1,76 @@ +" Vim syntax file +" Language: Smarty Templates +" Maintainer: Manfred Stienstra manfred.stienstra@dwerg.net +" Last Change: Mon Nov 4 11:42:23 CET 2002 +" Filenames: *.tpl +" URL: http://www.dwerg.net/projects/vim/smarty.vim + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if !exists("main_syntax") + " quit when a syntax file was already loaded + if exists("b:current_syntax") + finish + endif + let main_syntax = 'smarty' +endif + +syn case ignore + +runtime! syntax/html.vim +"syn cluster htmlPreproc add=smartyUnZone + +syn match smartyBlock contained "[\[\]]" + +syn keyword smartyTagName capture config_load include include_php +syn keyword smartyTagName insert if elseif else ldelim rdelim literal +syn keyword smartyTagName php section sectionelse foreach foreachelse +syn keyword smartyTagName strip assign counter cycle debug eval fetch +syn keyword smartyTagName html_options html_select_date html_select_time +syn keyword smartyTagName math popup_init popup html_checkboxes html_image +syn keyword smartyTagName html_radios html_table mailto textformat + +syn keyword smartyModifier cat capitalize count_characters count_paragraphs +syn keyword smartyModifier count_sentences count_words date_format default +syn keyword smartyModifier escape indent lower nl2br regex_replace replace +syn keyword smartyModifier spacify string_format strip strip_tags truncate +syn keyword smartyModifier upper wordwrap + +syn keyword smartyInFunc neq eq + +syn keyword smartyProperty contained "file=" +syn keyword smartyProperty contained "loop=" +syn keyword smartyProperty contained "name=" +syn keyword smartyProperty contained "include=" +syn keyword smartyProperty contained "skip=" +syn keyword smartyProperty contained "section=" + +syn keyword smartyConstant "\$smarty" + +syn keyword smartyDot . + +syn region smartyZone matchgroup=Delimiter start="{" end="}" contains=smartyProperty, smartyString, smartyBlock, smartyTagName, smartyConstant, smartyInFunc, smartyModifier + +syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone +syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone + syn region htmlLink start="\_[^>]*\" end="
    "me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc,smartyZone + + + +hi def link smartyTagName Identifier +hi def link smartyProperty Constant +" if you want the text inside the braces to be colored, then +" remove the comment in from of the next statement +"hi def link smartyZone Include +hi def link smartyInFunc Function +hi def link smartyBlock Constant +hi def link smartyDot SpecialChar +hi def link smartyModifier Function + +let b:current_syntax = "smarty" + +if main_syntax == 'smarty' + unlet main_syntax +endif + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/smcl.vim b/git/usr/share/vim/vim92/syntax/smcl.vim new file mode 100644 index 0000000000000000000000000000000000000000..a5baa47e96a8710676c6d7895b3e7c7ea42d260b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/smcl.vim @@ -0,0 +1,307 @@ +" smcl.vim -- Vim syntax file for smcl files. +" Language: SMCL -- Stata Markup and Control Language +" Maintainer: Jeff Pitblado +" Last Change: 26apr2006 +" Version: 1.1.2 + +" Log: +" 20mar2003 updated the match definition for cmdab +" 14apr2006 'syntax clear' only under version control +" check for 'b:current_syntax', removed 'did_smcl_syntax_inits' +" 26apr2006 changed 'stata_smcl' to 'smcl' + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case match + +syn keyword smclCCLword current_date contained +syn keyword smclCCLword current_time contained +syn keyword smclCCLword rmsg_time contained +syn keyword smclCCLword stata_version contained +syn keyword smclCCLword version contained +syn keyword smclCCLword born_date contained +syn keyword smclCCLword flavor contained +syn keyword smclCCLword SE contained +syn keyword smclCCLword mode contained +syn keyword smclCCLword console contained +syn keyword smclCCLword os contained +syn keyword smclCCLword osdtl contained +syn keyword smclCCLword machine_type contained +syn keyword smclCCLword byteorder contained +syn keyword smclCCLword sysdir_stata contained +syn keyword smclCCLword sysdir_updates contained +syn keyword smclCCLword sysdir_base contained +syn keyword smclCCLword sysdir_site contained +syn keyword smclCCLword sysdir_plus contained +syn keyword smclCCLword sysdir_personal contained +syn keyword smclCCLword sysdir_oldplace contained +syn keyword smclCCLword adopath contained +syn keyword smclCCLword pwd contained +syn keyword smclCCLword dirsep contained +syn keyword smclCCLword max_N_theory contained +syn keyword smclCCLword max_N_current contained +syn keyword smclCCLword max_k_theory contained +syn keyword smclCCLword max_k_current contained +syn keyword smclCCLword max_width_theory contained +syn keyword smclCCLword max_width_current contained +syn keyword smclCCLword max_matsize contained +syn keyword smclCCLword min_matsize contained +syn keyword smclCCLword max_macrolen contained +syn keyword smclCCLword macrolen contained +syn keyword smclCCLword max_cmdlen contained +syn keyword smclCCLword cmdlen contained +syn keyword smclCCLword namelen contained +syn keyword smclCCLword mindouble contained +syn keyword smclCCLword maxdouble contained +syn keyword smclCCLword epsdouble contained +syn keyword smclCCLword minfloat contained +syn keyword smclCCLword maxfloat contained +syn keyword smclCCLword epsfloat contained +syn keyword smclCCLword minlong contained +syn keyword smclCCLword maxlong contained +syn keyword smclCCLword minint contained +syn keyword smclCCLword maxint contained +syn keyword smclCCLword minbyte contained +syn keyword smclCCLword maxbyte contained +syn keyword smclCCLword maxstrvarlen contained +syn keyword smclCCLword memory contained +syn keyword smclCCLword maxvar contained +syn keyword smclCCLword matsize contained +syn keyword smclCCLword N contained +syn keyword smclCCLword k contained +syn keyword smclCCLword width contained +syn keyword smclCCLword changed contained +syn keyword smclCCLword filename contained +syn keyword smclCCLword filedate contained +syn keyword smclCCLword more contained +syn keyword smclCCLword rmsg contained +syn keyword smclCCLword dp contained +syn keyword smclCCLword linesize contained +syn keyword smclCCLword pagesize contained +syn keyword smclCCLword logtype contained +syn keyword smclCCLword linegap contained +syn keyword smclCCLword scrollbufsize contained +syn keyword smclCCLword varlabelpos contained +syn keyword smclCCLword reventries contained +syn keyword smclCCLword graphics contained +syn keyword smclCCLword scheme contained +syn keyword smclCCLword printcolor contained +syn keyword smclCCLword adosize contained +syn keyword smclCCLword maxdb contained +syn keyword smclCCLword virtual contained +syn keyword smclCCLword checksum contained +syn keyword smclCCLword timeout1 contained +syn keyword smclCCLword timeout2 contained +syn keyword smclCCLword httpproxy contained +syn keyword smclCCLword h_current contained +syn keyword smclCCLword max_matsize contained +syn keyword smclCCLword min_matsize contained +syn keyword smclCCLword max_macrolen contained +syn keyword smclCCLword macrolen contained +syn keyword smclCCLword max_cmdlen contained +syn keyword smclCCLword cmdlen contained +syn keyword smclCCLword namelen contained +syn keyword smclCCLword mindouble contained +syn keyword smclCCLword maxdouble contained +syn keyword smclCCLword epsdouble contained +syn keyword smclCCLword minfloat contained +syn keyword smclCCLword maxfloat contained +syn keyword smclCCLword epsfloat contained +syn keyword smclCCLword minlong contained +syn keyword smclCCLword maxlong contained +syn keyword smclCCLword minint contained +syn keyword smclCCLword maxint contained +syn keyword smclCCLword minbyte contained +syn keyword smclCCLword maxbyte contained +syn keyword smclCCLword maxstrvarlen contained +syn keyword smclCCLword memory contained +syn keyword smclCCLword maxvar contained +syn keyword smclCCLword matsize contained +syn keyword smclCCLword N contained +syn keyword smclCCLword k contained +syn keyword smclCCLword width contained +syn keyword smclCCLword changed contained +syn keyword smclCCLword filename contained +syn keyword smclCCLword filedate contained +syn keyword smclCCLword more contained +syn keyword smclCCLword rmsg contained +syn keyword smclCCLword dp contained +syn keyword smclCCLword linesize contained +syn keyword smclCCLword pagesize contained +syn keyword smclCCLword logtype contained +syn keyword smclCCLword linegap contained +syn keyword smclCCLword scrollbufsize contained +syn keyword smclCCLword varlabelpos contained +syn keyword smclCCLword reventries contained +syn keyword smclCCLword graphics contained +syn keyword smclCCLword scheme contained +syn keyword smclCCLword printcolor contained +syn keyword smclCCLword adosize contained +syn keyword smclCCLword maxdb contained +syn keyword smclCCLword virtual contained +syn keyword smclCCLword checksum contained +syn keyword smclCCLword timeout1 contained +syn keyword smclCCLword timeout2 contained +syn keyword smclCCLword httpproxy contained +syn keyword smclCCLword httpproxyhost contained +syn keyword smclCCLword httpproxyport contained +syn keyword smclCCLword httpproxyauth contained +syn keyword smclCCLword httpproxyuser contained +syn keyword smclCCLword httpproxypw contained +syn keyword smclCCLword trace contained +syn keyword smclCCLword tracedepth contained +syn keyword smclCCLword tracesep contained +syn keyword smclCCLword traceindent contained +syn keyword smclCCLword traceexapnd contained +syn keyword smclCCLword tracenumber contained +syn keyword smclCCLword type contained +syn keyword smclCCLword level contained +syn keyword smclCCLword seed contained +syn keyword smclCCLword searchdefault contained +syn keyword smclCCLword pi contained +syn keyword smclCCLword rc contained + +" Directive for the contant and current-value class +syn region smclCCL start=/{ccl / end=/}/ oneline contains=smclCCLword + +" The order of the following syntax definitions is roughly that of the on-line +" documentation for smcl in Stata, from within Stata see help smcl. + +" Format directives for line and paragraph modes +syn match smclFormat /{smcl}/ +syn match smclFormat /{sf\(\|:[^}]\+\)}/ +syn match smclFormat /{it\(\|:[^}]\+\)}/ +syn match smclFormat /{bf\(\|:[^}]\+\)}/ +syn match smclFormat /{inp\(\|:[^}]\+\)}/ +syn match smclFormat /{input\(\|:[^}]\+\)}/ +syn match smclFormat /{err\(\|:[^}]\+\)}/ +syn match smclFormat /{error\(\|:[^}]\+\)}/ +syn match smclFormat /{res\(\|:[^}]\+\)}/ +syn match smclFormat /{result\(\|:[^}]\+\)}/ +syn match smclFormat /{txt\(\|:[^}]\+\)}/ +syn match smclFormat /{text\(\|:[^}]\+\)}/ +syn match smclFormat /{com\(\|:[^}]\+\)}/ +syn match smclFormat /{cmd\(\|:[^}]\+\)}/ +syn match smclFormat /{cmdab:[^:}]\+:[^:}()]*\(\|:\|:(\|:()\)}/ +syn match smclFormat /{hi\(\|:[^}]\+\)}/ +syn match smclFormat /{hilite\(\|:[^}]\+\)}/ +syn match smclFormat /{ul \(on\|off\)}/ +syn match smclFormat /{ul:[^}]\+}/ +syn match smclFormat /{hline\(\| \d\+\| -\d\+\|:[^}]\+\)}/ +syn match smclFormat /{dup \d\+:[^}]\+}/ +syn match smclFormat /{c [^}]\+}/ +syn match smclFormat /{char [^}]\+}/ +syn match smclFormat /{reset}/ + +" Formatting directives for line mode +syn match smclFormat /{title:[^}]\+}/ +syn match smclFormat /{center:[^}]\+}/ +syn match smclFormat /{centre:[^}]\+}/ +syn match smclFormat /{center \d\+:[^}]\+}/ +syn match smclFormat /{centre \d\+:[^}]\+}/ +syn match smclFormat /{right:[^}]\+}/ +syn match smclFormat /{lalign \d\+:[^}]\+}/ +syn match smclFormat /{ralign \d\+:[^}]\+}/ +syn match smclFormat /{\.\.\.}/ +syn match smclFormat /{col \d\+}/ +syn match smclFormat /{space \d\+}/ +syn match smclFormat /{tab}/ + +" Formatting directives for paragraph mode +syn match smclFormat /{bind:[^}]\+}/ +syn match smclFormat /{break}/ + +syn match smclFormat /{p}/ +syn match smclFormat /{p \d\+}/ +syn match smclFormat /{p \d\+ \d\+}/ +syn match smclFormat /{p \d\+ \d\+ \d\+}/ +syn match smclFormat /{pstd}/ +syn match smclFormat /{psee}/ +syn match smclFormat /{phang\(\|2\|3\)}/ +syn match smclFormat /{pmore\(\|2\|3\)}/ +syn match smclFormat /{pin\(\|2\|3\)}/ +syn match smclFormat /{p_end}/ + +syn match smclFormat /{opt \w\+\(\|:\w\+\)\(\|([^)}]*)\)}/ + +syn match smclFormat /{opth \w*\(\|:\w\+\)(\w*)}/ +syn match smclFormat /{opth "\w\+\((\w\+:[^)}]\+)\)"}/ +syn match smclFormat /{opth \w\+:\w\+(\w\+:[^)}]\+)}/ + +syn match smclFormat /{dlgtab\s*\(\|\d\+\|\d\+\s\+\d\+\):[^}]\+}/ + +syn match smclFormat /{p2colset\s\+\d\+\s\+\d\+\s\+\d\+\s\+\d\+}/ +syn match smclFormat /{p2col\s\+:[^{}]*}.*{p_end}/ +syn match smclFormat /{p2col\s\+:{[^{}]*}}.*{p_end}/ +syn match smclFormat /{p2coldent\s*:[^{}]*}.*{p_end}/ +syn match smclFormat /{p2coldent\s*:{[^{}]*}}.*{p_end}/ +syn match smclFormat /{p2line\s*\(\|\d\+\s\+\d\+\)}/ +syn match smclFormat /{p2colreset}/ + +syn match smclFormat /{synoptset\s\+\d\+\s\+\w\+}/ +syn match smclFormat /{synopt\s*:[^{}]*}.*{p_end}/ +syn match smclFormat /{synopt\s*:{[^{}]*}}.*{p_end}/ +syn match smclFormat /{syntab\s*:[^{}]*}/ +syn match smclFormat /{synopthdr}/ +syn match smclFormat /{synoptline}/ + +" Link directive for line and paragraph modes +syn match smclLink /{help [^}]\+}/ +syn match smclLink /{helpb [^}]\+}/ +syn match smclLink /{help_d:[^}]\+}/ +syn match smclLink /{search [^}]\+}/ +syn match smclLink /{search_d:[^}]\+}/ +syn match smclLink /{browse [^}]\+}/ +syn match smclLink /{view [^}]\+}/ +syn match smclLink /{view_d:[^}]\+}/ +syn match smclLink /{news:[^}]\+}/ +syn match smclLink /{net [^}]\+}/ +syn match smclLink /{net_d:[^}]\+}/ +syn match smclLink /{netfrom_d:[^}]\+}/ +syn match smclLink /{ado [^}]\+}/ +syn match smclLink /{ado_d:[^}]\+}/ +syn match smclLink /{update [^}]\+}/ +syn match smclLink /{update_d:[^}]\+}/ +syn match smclLink /{dialog [^}]\+}/ +syn match smclLink /{back:[^}]\+}/ +syn match smclLink /{clearmore:[^}]\+}/ +syn match smclLink /{stata [^}]\+}/ + +syn match smclLink /{newvar\(\|:[^}]\+\)}/ +syn match smclLink /{var\(\|:[^}]\+\)}/ +syn match smclLink /{varname\(\|:[^}]\+\)}/ +syn match smclLink /{vars\(\|:[^}]\+\)}/ +syn match smclLink /{varlist\(\|:[^}]\+\)}/ +syn match smclLink /{depvar\(\|:[^}]\+\)}/ +syn match smclLink /{depvars\(\|:[^}]\+\)}/ +syn match smclLink /{depvarlist\(\|:[^}]\+\)}/ +syn match smclLink /{indepvars\(\|:[^}]\+\)}/ + +syn match smclLink /{dtype}/ +syn match smclLink /{ifin}/ +syn match smclLink /{weight}/ + +" Comment +syn region smclComment start=/{\*/ end=/}/ oneline + +" Strings +syn region smclString matchgroup=Nothing start=/"/ end=/"/ oneline +syn region smclEString matchgroup=Nothing start=/`"/ end=/"'/ oneline contains=smclEString + +" assign highlight groups + +hi def link smclEString smclString + +hi def link smclCCLword Statement +hi def link smclCCL Type +hi def link smclFormat Statement +hi def link smclLink Underlined +hi def link smclComment Comment +hi def link smclString String + +let b:current_syntax = "smcl" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/smil.vim b/git/usr/share/vim/vim92/syntax/smil.vim new file mode 100644 index 0000000000000000000000000000000000000000..4cf6e84710bebd2097da12ae6a9a1cdbe7a64d9a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/smil.vim @@ -0,0 +1,146 @@ +" Vim syntax file +" Language: SMIL (Synchronized Multimedia Integration Language) +" Maintainer: Herve Foucher +" URL: http://www.helio.org/vim/syntax/smil.vim +" Last Change: 2012 Feb 03 by Thilo Six + +" To learn more about SMIL, please refer to http://www.w3.org/AudioVideo/ +" and to http://www.helio.org/products/smil/tutorial/ + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" SMIL is case sensitive +syn case match + +" illegal characters +syn match smilError "[<>&]" +syn match smilError "[()&]" + +if !exists("main_syntax") + let main_syntax = 'smil' +endif + +" tags +syn match smilSpecial contained "\\\d\d\d\|\\." +syn match smilSpecial contained "(" +syn match smilSpecial contained "id(" +syn match smilSpecial contained ")" +syn keyword smilSpecial contained remove freeze true false on off overdub caption new pause replace +syn keyword smilSpecial contained first last +syn keyword smilSpecial contained fill meet slice scroll hidden +syn region smilString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=smilSpecial +syn region smilString contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=smilSpecial +syn match smilValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 +syn region smilEndTag start=++ contains=smilTagN,smilTagError +syn region smilTag start=+<[^/]+ end=+>+ contains=smilTagN,smilString,smilArg,smilValue,smilTagError,smilEvent,smilCssDefinition +syn match smilTagN contained +<\s*[-a-zA-Z0-9]\++ms=s+1 contains=smilTagName,smilSpecialTagName +syn match smilTagN contained +]<"ms=s+1 + +" tag names +syn keyword smilTagName contained smil head body anchor a switch region layout meta +syn match smilTagName contained "root-layout" +syn keyword smilTagName contained par seq +syn keyword smilTagName contained animation video img audio ref text textstream +syn match smilTagName contained "\<\(head\|body\)\>" + + +" legal arg names +syn keyword smilArg contained dur begin end href target id coords show title abstract author copyright alt +syn keyword smilArg contained left top width height fit src name content fill longdesc repeat type +syn match smilArg contained "z-index" +syn match smilArg contained " end-sync" +syn match smilArg contained " region" +syn match smilArg contained "background-color" +syn match smilArg contained "system-bitrate" +syn match smilArg contained "system-captions" +syn match smilArg contained "system-overdub-or-caption" +syn match smilArg contained "system-language" +syn match smilArg contained "system-required" +syn match smilArg contained "system-screen-depth" +syn match smilArg contained "system-screen-size" +syn match smilArg contained "clip-begin" +syn match smilArg contained "clip-end" +syn match smilArg contained "skip-content" + + +" SMIL Boston ext. +" This are new SMIL functionnalities seen on www.w3.org on August 3rd 1999 + +" Animation +syn keyword smilTagName contained animate set move +syn keyword smilArg contained calcMode from to by additive values origin path +syn keyword smilArg contained accumulate hold attribute +syn match smilArg contained "xml:link" +syn keyword smilSpecial contained discrete linear spline parent layout +syn keyword smilSpecial contained top left simple + +" Linking +syn keyword smilTagName contained area +syn keyword smilArg contained actuate behavior inline sourceVolume +syn keyword smilArg contained destinationVolume destinationPlaystate tabindex +syn keyword smilArg contained class style lang dir onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup shape nohref accesskey onfocus onblur +syn keyword smilSpecial contained play pause stop rect circ poly child par seq + +" Media Object +syn keyword smilTagName contained rtpmap +syn keyword smilArg contained port transport encoding payload clipBegin clipEnd +syn match smilArg contained "fmt-list" + +" Timing and Synchronization +syn keyword smilTagName contained excl +syn keyword smilArg contained beginEvent endEvent eventRestart endSync repeatCount repeatDur +syn keyword smilArg contained syncBehavior syncTolerance +syn keyword smilSpecial contained canSlip locked + +" special characters +syn match smilSpecialChar "&[^;]*;" + +if exists("smil_wrong_comments") + syn region smilComment start=++ +else + syn region smilComment start=++ contains=smilCommentPart,smilCommentError + syn match smilCommentError contained "[^>+ + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link smilTag Function +hi def link smilEndTag Identifier +hi def link smilArg Type +hi def link smilTagName smilStatement +hi def link smilSpecialTagName Exception +hi def link smilValue Value +hi def link smilSpecialChar Special + +hi def link smilSpecial Special +hi def link smilSpecialChar Special +hi def link smilString String +hi def link smilStatement Statement +hi def link smilComment Comment +hi def link smilCommentPart Comment +hi def link smilPreProc PreProc +hi def link smilValue String +hi def link smilCommentError smilError +hi def link smilTagError smilError +hi def link smilError Error + + +let b:current_syntax = "smil" + +if main_syntax == 'smil' + unlet main_syntax +endif + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/smith.vim b/git/usr/share/vim/vim92/syntax/smith.vim new file mode 100644 index 0000000000000000000000000000000000000000..b045d3b963f7fb48999374df94696eab336934b8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/smith.vim @@ -0,0 +1,39 @@ +" Vim syntax file +" Language: SMITH +" Maintainer: Rafal M. Sulejman +" Last Change: 21.07.2000 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + + +syn match smithComment ";.*$" + +syn match smithNumber "\<[+-]*[0-9]\d*\>" + +syn match smithRegister "R[\[]*[0-9]*[\]]*" + +syn match smithKeyword "COR\|MOV\|MUL\|NOT\|STOP\|SUB\|NOP\|BLA\|REP" + +syn region smithString start=+"+ skip=+\\\\\|\\"+ end=+"+ + + +syn case match + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link smithRegister Identifier +hi def link smithKeyword Keyword +hi def link smithComment Comment +hi def link smithString String +hi def link smithNumber Number + + +let b:current_syntax = "smith" + +" vim: ts=2 diff --git a/git/usr/share/vim/vim92/syntax/sml.vim b/git/usr/share/vim/vim92/syntax/sml.vim new file mode 100644 index 0000000000000000000000000000000000000000..5d80ebe475136985dc503aae2f6a3f972e5a944d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sml.vim @@ -0,0 +1,242 @@ +" Vim syntax file +" Language: SML +" Filenames: *.sml *.sig +" Maintainer: Markus Mottl +" Previous Maintainer: Fabrizio Zeno Cornelli (invalid) +" Last Change: 2025 Nov 11 - Improve special constant matching (Doug Kearns) +" 2025 Nov 07 - Update Number Regex +" 2022 Apr 01 +" 2015 Aug 31 - Fixed opening of modules (Ramana Kumar) +" 2006 Oct 23 - Fixed character highlighting bug (MM) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Disable spell checking of syntax. +syn spell notoplevel + +" SML is case sensitive. +syn case match + +" lowercase identifier - the standard way to match +syn match smlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ + +syn match smlKeyChar "|" + +" Errors +syn match smlBraceErr "}" +syn match smlBrackErr "\]" +syn match smlParenErr ")" +syn match smlCommentErr "\*)" +syn match smlThenErr "\" + +" Error-highlighting of "end" without synchronization: +" as keyword or as error (default) +if exists("sml_noend_error") + syn match smlKeyword "\" +else + syn match smlEndErr "\" +endif + +" Some convenient clusters +syn cluster smlAllErrs contains=smlBraceErr,smlBrackErr,smlParenErr,smlCommentErr,smlEndErr,smlThenErr + +syn cluster smlAENoParen contains=smlBraceErr,smlBrackErr,smlCommentErr,smlEndErr,smlThenErr + +syn cluster smlContained contains=smlTodo,smlPreDef,smlModParam,smlModParam1,smlPreMPRestr,smlMPRestr,smlMPRestr1,smlMPRestr2,smlMPRestr3,smlModRHS,smlFuncWith,smlFuncStruct,smlModTypeRestr,smlModTRWith,smlWith,smlWithRest,smlModType,smlFullMod + + +" Enclosing delimiters +syn region smlEncl transparent matchgroup=smlKeyword start="(" matchgroup=smlKeyword end=")" contains=ALLBUT,@smlContained,smlParenErr +syn region smlEncl transparent matchgroup=smlKeyword start="{" matchgroup=smlKeyword end="}" contains=ALLBUT,@smlContained,smlBraceErr +syn region smlEncl transparent matchgroup=smlKeyword start="\[" matchgroup=smlKeyword end="\]" contains=ALLBUT,@smlContained,smlBrackErr +syn region smlEncl transparent matchgroup=smlKeyword start="#\[" matchgroup=smlKeyword end="\]" contains=ALLBUT,@smlContained,smlBrackErr + + +" Comments +syn region smlComment start="(\*" end="\*)" contains=smlComment,smlTodo,@Spell +syn keyword smlTodo contained TODO FIXME XXX + + +" let +syn region smlEnd matchgroup=smlKeyword start="\" matchgroup=smlKeyword end="\" contains=ALLBUT,@smlContained,smlEndErr + +" local +syn region smlEnd matchgroup=smlKeyword start="\" matchgroup=smlKeyword end="\" contains=ALLBUT,@smlContained,smlEndErr + +" abstype +syn region smlNone matchgroup=smlKeyword start="\" matchgroup=smlKeyword end="\" contains=ALLBUT,@smlContained,smlEndErr + +" begin +syn region smlEnd matchgroup=smlKeyword start="\" matchgroup=smlKeyword end="\" contains=ALLBUT,@smlContained,smlEndErr + +" if +syn region smlNone matchgroup=smlKeyword start="\" matchgroup=smlKeyword end="\" contains=ALLBUT,@smlContained,smlThenErr + + +"" Modules + +" "struct" +syn region smlStruct matchgroup=smlModule start="\" matchgroup=smlModule end="\" contains=ALLBUT,@smlContained,smlEndErr + +" "sig" +syn region smlSig matchgroup=smlModule start="\" matchgroup=smlModule end="\" contains=ALLBUT,@smlContained,smlEndErr,smlModule +syn region smlModSpec matchgroup=smlKeyword start="\" matchgroup=smlModule end="\<\u\(\w\|'\)*\>" contained contains=@smlAllErrs,smlComment skipwhite skipempty nextgroup=smlModTRWith,smlMPRestr + +" "open" +syn region smlNone matchgroup=smlKeyword start="\" matchgroup=smlModule end="\<\w\(\w\|'\)*\(\.\w\(\w\|'\)*\)*\>" contains=@smlAllErrs,smlComment + +" "structure" - somewhat complicated stuff ;-) +syn region smlModule matchgroup=smlKeyword start="\<\(structure\|functor\)\>" matchgroup=smlModule end="\<\u\(\w\|'\)*\>" contains=@smlAllErrs,smlComment skipwhite skipempty nextgroup=smlPreDef +syn region smlPreDef start="."me=e-1 matchgroup=smlKeyword end="\l\|="me=e-1 contained contains=@smlAllErrs,smlComment,smlModParam,smlModTypeRestr,smlModTRWith nextgroup=smlModPreRHS +syn region smlModParam start="([^*]" end=")" contained contains=@smlAENoParen,smlModParam1 +syn match smlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=smlPreMPRestr + +syn region smlPreMPRestr start="."me=e-1 end=")"me=e-1 contained contains=@smlAllErrs,smlComment,smlMPRestr,smlModTypeRestr + +syn region smlMPRestr start=":" end="."me=e-1 contained contains=@smlComment skipwhite skipempty nextgroup=smlMPRestr1,smlMPRestr2,smlMPRestr3 +syn region smlMPRestr1 matchgroup=smlModule start="\ssig\s\=" matchgroup=smlModule end="\" contained contains=ALLBUT,@smlContained,smlEndErr,smlModule +syn region smlMPRestr2 start="\sfunctor\(\s\|(\)\="me=e-1 matchgroup=smlKeyword end="->" contained contains=@smlAllErrs,smlComment,smlModParam skipwhite skipempty nextgroup=smlFuncWith +syn match smlMPRestr3 "\w\(\w\|'\)*\(\.\w\(\w\|'\)*\)*" contained +syn match smlModPreRHS "=" contained skipwhite skipempty nextgroup=smlModParam,smlFullMod +syn region smlModRHS start="." end=".\w\|([^*]"me=e-2 contained contains=smlComment skipwhite skipempty nextgroup=smlModParam,smlFullMod +syn match smlFullMod "\<\u\(\w\|'\)*\(\.\u\(\w\|'\)*\)*" contained skipwhite skipempty nextgroup=smlFuncWith + +syn region smlFuncWith start="([^*]"me=e-1 end=")" contained contains=smlComment,smlWith,smlFuncStruct +syn region smlFuncStruct matchgroup=smlModule start="[^a-zA-Z]struct\>"hs=s+1 matchgroup=smlModule end="\" contains=ALLBUT,@smlContained,smlEndErr + +syn match smlModTypeRestr "\<\w\(\w\|'\)*\(\.\w\(\w\|'\)*\)*\>" contained +syn region smlModTRWith start=":\s*("hs=s+1 end=")" contained contains=@smlAENoParen,smlWith +syn match smlWith "\<\(\u\(\w\|'\)*\.\)*\w\(\w\|'\)*\>" contained skipwhite skipempty nextgroup=smlWithRest +syn region smlWithRest start="[^)]" end=")"me=e-1 contained contains=ALLBUT,@smlContained + +" "signature" +syn region smlKeyword start="\" matchgroup=smlModule end="\<\w\(\w\|'\)*\>" contains=smlComment skipwhite skipempty nextgroup=smlMTDef +syn match smlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s + +syn keyword smlKeyword and andalso case +syn keyword smlKeyword datatype else eqtype +syn keyword smlKeyword exception fn fun handle +syn keyword smlKeyword in infix infixl infixr +syn keyword smlKeyword match nonfix of orelse +syn keyword smlKeyword raise handle type +syn keyword smlKeyword val where while with withtype + +syn keyword smlType bool char exn int list option +syn keyword smlType real string unit + +syn keyword smlOperator div mod not or quot rem + +syn keyword smlBoolean true false +syn match smlConstructor "(\s*)" +syn match smlConstructor "\[\s*\]" +syn match smlConstructor "#\[\s*\]" +syn match smlConstructor "\u\(\w\|'\)*\>" + +" Module prefix +syn match smlModPath "\u\(\w\|'\)*\."he=e-1 + +" Strings and Characters +syn match smlEscapeErr "\\." contained +syn match smlEscape "\\[abtnvfr"\\]" contained +syn match smlEscapeErr "\\^." contained +syn match smlEscape "\\^[@A-Z[\\\]^_]" contained +syn match smlEscapeErr "\\\d\{1,2}" contained +syn match smlEscape "\\\d\{3}" contained +syn match smlEscapeErr "\\u\x\{0,3}" contained +syn match smlEscape "\\u\x\{4}" contained +syn match smlEscape "\\\_[[:space:]]\+\\" contained +syn cluster smlEscape contains=smlEscape,smlEscapeErr + +syn region smlString start=+"+ end=+"+ contains=@smlEscape,@Spell + +syn match smlCharacter +#"[^\\"]"+ +syn match smlCharacter +#"\\."+ contains=@smlEscape +syn match smlCharacter +#"\\^."+ contains=@smlEscape +syn match smlCharacter +#"\\\d\{3}"+ contains=@smlEscape +syn match smlCharacter +#"\\u\x\{4}"+ contains=@smlEscape + +syn match smlFunDef "=>" +syn match smlRefAssign ":=" +syn match smlTopStop ";;" +syn match smlOperator "\^" +syn match smlOperator "::" +syn match smlAnyVar "\<_\>" +syn match smlKeyChar "!" +syn match smlKeyChar ";" +syn match smlKeyChar "\*" +syn match smlKeyChar "=" + +syn match smlNumber "\~\=\<\d\+\>" +syn match smlNumber "\~\=\<0x\x\+\>" +syn match smlWord "\<0w\d\+\>" +syn match smlWord "\<0wx\x\+\>" +syn match smlReal "\~\=\<\d\+\.\d\+\>" +syn match smlReal "\~\=\<\d\+\%(\.\d\+\)\=[eE]\~\=\d\+\>" + +" Synchronization +syn sync minlines=20 +syn sync maxlines=500 + +syn sync match smlEndSync grouphere smlEnd "\" +syn sync match smlEndSync groupthere smlEnd "\" +syn sync match smlStructSync grouphere smlStruct "\" +syn sync match smlStructSync groupthere smlStruct "\" +syn sync match smlSigSync grouphere smlSig "\" +syn sync match smlSigSync groupthere smlSig "\" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link smlBraceErr Error +hi def link smlBrackErr Error +hi def link smlParenErr Error + +hi def link smlCommentErr Error + +hi def link smlEndErr Error +hi def link smlThenErr Error + +hi def link smlEscapeErr Error + +hi def link smlComment Comment + +hi def link smlModPath Include +hi def link smlModule Include +hi def link smlModParam1 Include +hi def link smlModType Include +hi def link smlMPRestr3 Include +hi def link smlFullMod Include +hi def link smlModTypeRestr Include +hi def link smlWith Include +hi def link smlMTDef Include + +hi def link smlConstructor Constant + +hi def link smlModPreRHS Keyword +hi def link smlMPRestr2 Keyword +hi def link smlKeyword Keyword +hi def link smlFunDef Keyword +hi def link smlRefAssign Keyword +hi def link smlKeyChar Keyword +hi def link smlAnyVar Keyword +hi def link smlTopStop Keyword +hi def link smlOperator Keyword + +hi def link smlBoolean Boolean +hi def link smlCharacter Character +hi def link smlNumber Number +hi def link smlWord Number +hi def link smlReal Float +hi def link smlString String +hi def link smlEscape Special +hi def link smlType Type +hi def link smlTodo Todo +hi def link smlEncl Keyword + + +let b:current_syntax = "sml" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/snnsnet.vim b/git/usr/share/vim/vim92/syntax/snnsnet.vim new file mode 100644 index 0000000000000000000000000000000000000000..9dc9e06e7861fbdd721b3f1bc3c80aa065da011e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/snnsnet.vim @@ -0,0 +1,67 @@ +" Vim syntax file +" Language: SNNS network file +" Maintainer: Davide Alberani +" Last Change: 28 Apr 2001 +" Version: 0.2 +" URL: http://digilander.iol.it/alberanid/vim/syntax/snnsnet.vim +" +" SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/ +" is a simulator for neural networks. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn match snnsnetTitle "no\." +syn match snnsnetTitle "type name" +syn match snnsnetTitle "unit name" +syn match snnsnetTitle "act\( func\)\=" +syn match snnsnetTitle "out func" +syn match snnsnetTitle "site\( name\)\=" +syn match snnsnetTitle "site function" +syn match snnsnetTitle "source:weight" +syn match snnsnetTitle "unitNo\." +syn match snnsnetTitle "delta x" +syn match snnsnetTitle "delta y" +syn keyword snnsnetTitle typeName unitName bias st position subnet layer sites name target z LLN LUN Toff Soff Ctype + +syn match snnsnetType "SNNS network definition file [Vv]\d.\d.*" contains=snnsnetNumbers +syn match snnsnetType "generated at.*" contains=snnsnetNumbers +syn match snnsnetType "network name\s*:" +syn match snnsnetType "source files\s*:" +syn match snnsnetType "no\. of units\s*:.*" contains=snnsnetNumbers +syn match snnsnetType "no\. of connections\s*:.*" contains=snnsnetNumbers +syn match snnsnetType "no\. of unit types\s*:.*" contains=snnsnetNumbers +syn match snnsnetType "no\. of site types\s*:.*" contains=snnsnetNumbers +syn match snnsnetType "learning function\s*:" +syn match snnsnetType "pruning function\s*:" +syn match snnsnetType "subordinate learning function\s*:" +syn match snnsnetType "update function\s*:" + +syn match snnsnetSection "unit definition section" +syn match snnsnetSection "unit default section" +syn match snnsnetSection "site definition section" +syn match snnsnetSection "type definition section" +syn match snnsnetSection "connection definition section" +syn match snnsnetSection "layer definition section" +syn match snnsnetSection "subnet definition section" +syn match snnsnetSection "3D translation section" +syn match snnsnetSection "time delay section" + +syn match snnsnetNumbers "\d" contained +syn match snnsnetComment "#.*$" contains=snnsnetTodo +syn keyword snnsnetTodo TODO XXX FIXME contained + + +hi def link snnsnetType Type +hi def link snnsnetComment Comment +hi def link snnsnetNumbers Number +hi def link snnsnetSection Statement +hi def link snnsnetTitle Label +hi def link snnsnetTodo Todo + + +let b:current_syntax = "snnsnet" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/snnspat.vim b/git/usr/share/vim/vim92/syntax/snnspat.vim new file mode 100644 index 0000000000000000000000000000000000000000..cb6e9c5bd1e6bb76b179bdf84e3c87d7dd886d5e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/snnspat.vim @@ -0,0 +1,62 @@ +" Vim syntax file +" Language: SNNS pattern file +" Maintainer: Davide Alberani +" Last Change: 2012 Feb 03 by Thilo Six +" Version: 0.2 +" URL: http://digilander.iol.it/alberanid/vim/syntax/snnspat.vim +" +" SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/ +" is a simulator for neural networks. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" anything that isn't part of the header, a comment or a number +" is wrong +syn match snnspatError ".*" +" hoping that matches any kind of notation... +syn match snnspatAccepted "\([-+]\=\(\d\+\.\|\.\)\=\d\+\([Ee][-+]\=\d\+\)\=\)" +syn match snnspatAccepted "\s" +syn match snnspatBrac "\[\s*\d\+\(\s\|\d\)*\]" contains=snnspatNumbers + +" the accepted fields in the header +syn match snnspatNoHeader "No\. of patterns\s*:\s*" contained +syn match snnspatNoHeader "No\. of input units\s*:\s*" contained +syn match snnspatNoHeader "No\. of output units\s*:\s*" contained +syn match snnspatNoHeader "No\. of variable input dimensions\s*:\s*" contained +syn match snnspatNoHeader "No\. of variable output dimensions\s*:\s*" contained +syn match snnspatNoHeader "Maximum input dimensions\s*:\s*" contained +syn match snnspatNoHeader "Maximum output dimensions\s*:\s*" contained +syn match snnspatGen "generated at.*" contained contains=snnspatNumbers +syn match snnspatGen "SNNS pattern definition file [Vv]\d\.\d" contained contains=snnspatNumbers + +" the header, what is not an accepted field, is an error +syn region snnspatHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnspatNoHeader,snnspatNumbers,snnspatGen,snnspatBrac + +" numbers inside the header +syn match snnspatNumbers "\d" contained +syn match snnspatComment "#.*$" contains=snnspatTodo +syn keyword snnspatTodo TODO XXX FIXME contained + + +hi def link snnspatGen Statement +hi def link snnspatHeader Error +hi def link snnspatNoHeader Define +hi def link snnspatNumbers Number +hi def link snnspatComment Comment +hi def link snnspatError Error +hi def link snnspatTodo Todo +hi def link snnspatAccepted NONE +hi def link snnspatBrac NONE + + +let b:current_syntax = "snnspat" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/snnsres.vim b/git/usr/share/vim/vim92/syntax/snnsres.vim new file mode 100644 index 0000000000000000000000000000000000000000..2f19b67dbe434d9d82f738dc39124f8a6cd9ed64 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/snnsres.vim @@ -0,0 +1,50 @@ +" Vim syntax file +" Language: SNNS result file +" Maintainer: Davide Alberani +" Last Change: 28 Apr 2001 +" Version: 0.2 +" URL: http://digilander.iol.it/alberanid/vim/syntax/snnsres.vim +" +" SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/ +" is a simulator for neural networks. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" the accepted fields in the header +syn match snnsresNoHeader "No\. of patterns\s*:\s*" contained +syn match snnsresNoHeader "No\. of input units\s*:\s*" contained +syn match snnsresNoHeader "No\. of output units\s*:\s*" contained +syn match snnsresNoHeader "No\. of variable input dimensions\s*:\s*" contained +syn match snnsresNoHeader "No\. of variable output dimensions\s*:\s*" contained +syn match snnsresNoHeader "Maximum input dimensions\s*:\s*" contained +syn match snnsresNoHeader "Maximum output dimensions\s*:\s*" contained +syn match snnsresNoHeader "startpattern\s*:\s*" contained +syn match snnsresNoHeader "endpattern\s*:\s*" contained +syn match snnsresNoHeader "input patterns included" contained +syn match snnsresNoHeader "teaching output included" contained +syn match snnsresGen "generated at.*" contained contains=snnsresNumbers +syn match snnsresGen "SNNS result file [Vv]\d\.\d" contained contains=snnsresNumbers + +" the header, what is not an accepted field, is an error +syn region snnsresHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnsresNoHeader,snnsresNumbers,snnsresGen + +" numbers inside the header +syn match snnsresNumbers "\d" contained +syn match snnsresComment "#.*$" contains=snnsresTodo +syn keyword snnsresTodo TODO XXX FIXME contained + + +hi def link snnsresGen Statement +hi def link snnsresHeader Statement +hi def link snnsresNoHeader Define +hi def link snnsresNumbers Number +hi def link snnsresComment Comment +hi def link snnsresTodo Todo + + +let b:current_syntax = "snnsres" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/snobol4.vim b/git/usr/share/vim/vim92/syntax/snobol4.vim new file mode 100644 index 0000000000000000000000000000000000000000..11ce2e0059b3924940b2f2a4899b78d27d88d11e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/snobol4.vim @@ -0,0 +1,113 @@ +" Vim syntax file +" Language: SNOBOL4 +" Maintainer: Rafal Sulejman +" Site: http://rms.republika.pl/vim/syntax/snobol4.vim +" Last change: : Thu, 25 Jan 2018 14:21:24 +0100 +" Changes: +" - system variables updated for SNOBOL4 2.0+ +" - strict snobol4 mode (set snobol4_strict_mode to activate) +" - incorrect HL of dots in strings corrected +" - incorrect HL of dot-variables in parens corrected +" - one character labels weren't displayed correctly. +" - nonexistent Snobol4 keywords displayed as errors. + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case ignore + +" Snobol4 keywords +syn keyword snobol4Keyword any apply arb arbno arg array +syn keyword snobol4Keyword break +syn keyword snobol4Keyword char clear code collect convert copy +syn keyword snobol4Keyword data datatype date define detach differ dump dupl +syn keyword snobol4Keyword endfile eq eval +syn keyword snobol4Keyword field +syn keyword snobol4Keyword ge gt ident +syn keyword snobol4Keyword input integer item +syn keyword snobol4Keyword le len lgt local lpad lt +syn keyword snobol4Keyword ne notany +syn keyword snobol4Keyword opsyn output +syn keyword snobol4Keyword pos prototype +syn keyword snobol4Keyword remdr replace rpad rpos rtab rewind +syn keyword snobol4Keyword size span stoptr +syn keyword snobol4Keyword tab table time trace trim terminal +syn keyword snobol4Keyword unload +syn keyword snobol4Keyword value + +" CSNOBOL keywords +syn keyword snobol4ExtKeyword breakx +syn keyword snobol4ExtKeyword char chop +syn keyword snobol4ExtKeyword date delete +syn keyword snobol4ExtKeyword exp +syn keyword snobol4ExtKeyword freeze function +syn keyword snobol4ExtKeyword host +syn keyword snobol4ExtKeyword io_findunit +syn keyword snobol4ExtKeyword label lpad leq lge lle llt lne log +syn keyword snobol4ExtKeyword ord +syn keyword snobol4ExtKeyword reverse rpad rsort rename +syn keyword snobol4ExtKeyword serv_listen sset set sort sqrt substr +syn keyword snobol4ExtKeyword thaw +syn keyword snobol4ExtKeyword vdiffer + +syn region snobol4String matchgroup=Quote start=+"+ end=+"+ +syn region snobol4String matchgroup=Quote start=+'+ end=+'+ +syn match snobol4BogusStatement "^-[^ ][^ ]*" +syn match snobol4Statement "^-\(include\|copy\|module\|line\|plusopts\|case\|error\|noerrors\|list\|unlist\|execute\|noexecute\|copy\)" +syn match snobol4Constant /"[^a-z"']\.[a-z][a-z0-9\-]*"/hs=s+1 +syn region snobol4Goto start=":[sf]\{0,1}(" end=")\|$\|;" contains=ALLBUT,snobol4ParenError +syn match snobol4Number "\<\d*\(\.\d\d*\)*\>" +syn match snobol4BogusSysVar "&\w\{1,}" +syn match snobol4SysVar "&\<\(abort\|alphabet\|anchor\|arb\|bal\|case\|code\|digits\|dump\|errlimit\|errtext\|errtype\|fail\|fence\|fnclevel\|ftrace\|fullscan\|input\|lastno\|lcase\|maxlngth\|output\|parm\|rem\|rtntype\|stcount\|stfcount\|stlimit\|stno\|succeed\|trace\|trim\|ucase\)\>" +syn match snobol4ExtSysVar "&\(gtrace\|line\|file\|lastline\|lastfile\)" +syn match snobol4Label "\(^\|;\)[^-\.\+ \t\*\.]\{1,}[^ \t\*\;]*" +syn match snobol4Comment "\(^\|;\)\([\*\|!;#].*$\)" + +" Parens matching +syn cluster snobol4ParenGroup contains=snobol4ParenError +syn region snobol4Paren transparent start='(' end=')' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInBracket +syn match snobol4ParenError display "[\])]" +syn match snobol4ErrInParen display contained "[\]{}]\|<%\|%>" +syn region snobol4Bracket transparent start='\[\|<:' end=']\|:>' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInParen +syn match snobol4ErrInBracket display contained "[){}]\|<%\|%>" + +" optional shell shebang line +" syn match snobol4Comment "^\#\!.*$" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link snobol4Constant Constant +hi def link snobol4Label Label +hi def link snobol4Goto Repeat +hi def link snobol4Conditional Conditional +hi def link snobol4Repeat Repeat +hi def link snobol4Number Number +hi def link snobol4Error Error +hi def link snobol4Statement PreProc +hi def link snobol4BogusStatement snobol4Error +hi def link snobol4String String +hi def link snobol4Comment Comment +hi def link snobol4Special Special +hi def link snobol4Todo Todo +hi def link snobol4Keyword Keyword +hi def link snobol4Function Function +hi def link snobol4MathsOperator Operator +hi def link snobol4ParenError snobol4Error +hi def link snobol4ErrInParen snobol4Error +hi def link snobol4ErrInBracket snobol4Error +hi def link snobol4SysVar Keyword +hi def link snobol4BogusSysVar snobol4Error +if exists("snobol4_strict_mode") + hi def link snobol4ExtSysVar WarningMsg + hi def link snobol4ExtKeyword WarningMsg +else + hi def link snobol4ExtSysVar snobol4SysVar + hi def link snobol4ExtKeyword snobol4Keyword +endif + + +let b:current_syntax = "snobol4" +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/solidity.vim b/git/usr/share/vim/vim92/syntax/solidity.vim new file mode 100644 index 0000000000000000000000000000000000000000..5391bba707e20dc89ca96564bb8b166e8e3119fd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/solidity.vim @@ -0,0 +1,183 @@ +" Vim syntax file +" Language: Solidity +" Maintainer: Cothi (jiungdev@gmail.com) +" Original Author: tomlion (https://github.com/tomlion/vim-solidity/blob/master/syntax/solidity.vim) +" Last Change: 2025 Mar 25 +" +" Contributors: +" Modified by thesis (https://github.com/thesis/vim-solidity/blob/main/indent/solidity.vim) +" Modified by S0AndS0 (https://github.com/S0AndS0/vim/blob/syntax-solidity-updates/runtime/syntax/solidity.vim) + +if exists("b:current_syntax") + finish +endif + +" keyword +syn keyword solKeyword abstract anonymous as break calldata case catch constant constructor continue default switch revert require +syn keyword solKeyword ecrecover addmod mulmod keccak256 +syn keyword solKeyword delete do else emit enum external final for function if immutable import in indexed inline +syn keyword solKeyword interface internal is let match memory modifier new of payable pragma private public pure override virtual transient +syn keyword solKeyword relocatable return returns static storage struct throw try type typeof using +syn keyword solKeyword var view while + +syn keyword solConstant true false wei szabo finney ether seconds minutes hours days weeks years now +syn keyword solConstant abi block blockhash msg tx this super selfdestruct + +syn keyword solBuiltinType mapping address bool +syn keyword solBuiltinType int int8 int16 int24 int32 int40 int48 int56 int64 int72 int80 int88 int96 int104 int112 int120 int128 int136 int144 int152 int160 int168 int178 int184 int192 int200 int208 int216 int224 int232 int240 int248 int256 +syn keyword solBuiltinType uint uint8 uint16 uint24 uint32 uint40 uint48 uint56 uint64 uint72 uint80 uint88 uint96 uint104 uint112 uint120 uint128 uint136 uint144 uint152 uint160 uint168 uint178 uint184 uint192 uint200 uint208 uint216 uint224 uint232 uint240 uint248 uint256 +syn keyword solBuiltinType fixed +syn keyword solBuiltinType fixed0x8 fixed0x16 fixed0x24 fixed0x32 fixed0x40 fixed0x48 fixed0x56 fixed0x64 fixed0x72 fixed0x80 fixed0x88 fixed0x96 fixed0x104 fixed0x112 fixed0x120 fixed0x128 fixed0x136 fixed0x144 fixed0x152 fixed0x160 fixed0x168 fixed0x178 fixed0x184 fixed0x192 fixed0x200 fixed0x208 fixed0x216 fixed0x224 fixed0x232 fixed0x240 fixed0x248 fixed0x256 +syn keyword solBuiltinType fixed8x8 fixed8x16 fixed8x24 fixed8x32 fixed8x40 fixed8x48 fixed8x56 fixed8x64 fixed8x72 fixed8x80 fixed8x88 fixed8x96 fixed8x104 fixed8x112 fixed8x120 fixed8x128 fixed8x136 fixed8x144 fixed8x152 fixed8x160 fixed8x168 fixed8x178 fixed8x184 fixed8x192 fixed8x200 fixed8x208 fixed8x216 fixed8x224 fixed8x232 fixed8x240 fixed8x248 +syn keyword solBuiltinType fixed16x8 fixed16x16 fixed16x24 fixed16x32 fixed16x40 fixed16x48 fixed16x56 fixed16x64 fixed16x72 fixed16x80 fixed16x88 fixed16x96 fixed16x104 fixed16x112 fixed16x120 fixed16x128 fixed16x136 fixed16x144 fixed16x152 fixed16x160 fixed16x168 fixed16x178 fixed16x184 fixed16x192 fixed16x200 fixed16x208 fixed16x216 fixed16x224 fixed16x232 fixed16x240 +syn keyword solBuiltinType fixed24x8 fixed24x16 fixed24x24 fixed24x32 fixed24x40 fixed24x48 fixed24x56 fixed24x64 fixed24x72 fixed24x80 fixed24x88 fixed24x96 fixed24x104 fixed24x112 fixed24x120 fixed24x128 fixed24x136 fixed24x144 fixed24x152 fixed24x160 fixed24x168 fixed24x178 fixed24x184 fixed24x192 fixed24x200 fixed24x208 fixed24x216 fixed24x224 fixed24x232 +syn keyword solBuiltinType fixed32x8 fixed32x16 fixed32x24 fixed32x32 fixed32x40 fixed32x48 fixed32x56 fixed32x64 fixed32x72 fixed32x80 fixed32x88 fixed32x96 fixed32x104 fixed32x112 fixed32x120 fixed32x128 fixed32x136 fixed32x144 fixed32x152 fixed32x160 fixed32x168 fixed32x178 fixed32x184 fixed32x192 fixed32x200 fixed32x208 fixed32x216 fixed32x224 +syn keyword solBuiltinType fixed40x8 fixed40x16 fixed40x24 fixed40x32 fixed40x40 fixed40x48 fixed40x56 fixed40x64 fixed40x72 fixed40x80 fixed40x88 fixed40x96 fixed40x104 fixed40x112 fixed40x120 fixed40x128 fixed40x136 fixed40x144 fixed40x152 fixed40x160 fixed40x168 fixed40x178 fixed40x184 fixed40x192 fixed40x200 fixed40x208 fixed40x216 +syn keyword solBuiltinType fixed48x8 fixed48x16 fixed48x24 fixed48x32 fixed48x40 fixed48x48 fixed48x56 fixed48x64 fixed48x72 fixed48x80 fixed48x88 fixed48x96 fixed48x104 fixed48x112 fixed48x120 fixed48x128 fixed48x136 fixed48x144 fixed48x152 fixed48x160 fixed48x168 fixed48x178 fixed48x184 fixed48x192 fixed48x200 fixed48x208 +syn keyword solBuiltinType fixed56x8 fixed56x16 fixed56x24 fixed56x32 fixed56x40 fixed56x48 fixed56x56 fixed56x64 fixed56x72 fixed56x80 fixed56x88 fixed56x96 fixed56x104 fixed56x112 fixed56x120 fixed56x128 fixed56x136 fixed56x144 fixed56x152 fixed56x160 fixed56x168 fixed56x178 fixed56x184 fixed56x192 fixed56x200 +syn keyword solBuiltinType fixed64x8 fixed64x16 fixed64x24 fixed64x32 fixed64x40 fixed64x48 fixed64x56 fixed64x64 fixed64x72 fixed64x80 fixed64x88 fixed64x96 fixed64x104 fixed64x112 fixed64x120 fixed64x128 fixed64x136 fixed64x144 fixed64x152 fixed64x160 fixed64x168 fixed64x178 fixed64x184 fixed64x192 +syn keyword solBuiltinType fixed72x8 fixed72x16 fixed72x24 fixed72x32 fixed72x40 fixed72x48 fixed72x56 fixed72x64 fixed72x72 fixed72x80 fixed72x88 fixed72x96 fixed72x104 fixed72x112 fixed72x120 fixed72x128 fixed72x136 fixed72x144 fixed72x152 fixed72x160 fixed72x168 fixed72x178 fixed72x184 +syn keyword solBuiltinType fixed80x8 fixed80x16 fixed80x24 fixed80x32 fixed80x40 fixed80x48 fixed80x56 fixed80x64 fixed80x72 fixed80x80 fixed80x88 fixed80x96 fixed80x104 fixed80x112 fixed80x120 fixed80x128 fixed80x136 fixed80x144 fixed80x152 fixed80x160 fixed80x168 fixed80x178 +syn keyword solBuiltinType fixed88x8 fixed88x16 fixed88x24 fixed88x32 fixed88x40 fixed88x48 fixed88x56 fixed88x64 fixed88x72 fixed88x80 fixed88x88 fixed88x96 fixed88x104 fixed88x112 fixed88x120 fixed88x128 fixed88x136 fixed88x144 fixed88x152 fixed88x160 fixed88x168 +syn keyword solBuiltinType fixed96x8 fixed96x16 fixed96x24 fixed96x32 fixed96x40 fixed96x48 fixed96x56 fixed96x64 fixed96x72 fixed96x80 fixed96x88 fixed96x96 fixed96x104 fixed96x112 fixed96x120 fixed96x128 fixed96x136 fixed96x144 fixed96x152 fixed96x160 +syn keyword solBuiltinType fixed104x8 fixed104x16 fixed104x24 fixed104x32 fixed104x40 fixed104x48 fixed104x56 fixed104x64 fixed104x72 fixed104x80 fixed104x88 fixed104x96 fixed104x104 fixed104x112 fixed104x120 fixed104x128 fixed104x136 fixed104x144 fixed104x152 +syn keyword solBuiltinType fixed112x8 fixed112x16 fixed112x24 fixed112x32 fixed112x40 fixed112x48 fixed112x56 fixed112x64 fixed112x72 fixed112x80 fixed112x88 fixed112x96 fixed112x104 fixed112x112 fixed112x120 fixed112x128 fixed112x136 fixed112x144 +syn keyword solBuiltinType fixed120x8 fixed120x16 fixed120x24 fixed120x32 fixed120x40 fixed120x48 fixed120x56 fixed120x64 fixed120x72 fixed120x80 fixed120x88 fixed120x96 fixed120x104 fixed120x112 fixed120x120 fixed120x128 fixed120x136 +syn keyword solBuiltinType fixed128x8 fixed128x16 fixed128x24 fixed128x32 fixed128x40 fixed128x48 fixed128x56 fixed128x64 fixed128x72 fixed128x80 fixed128x88 fixed128x96 fixed128x104 fixed128x112 fixed128x120 fixed128x128 +syn keyword solBuiltinType fixed136x8 fixed136x16 fixed136x24 fixed136x32 fixed136x40 fixed136x48 fixed136x56 fixed136x64 fixed136x72 fixed136x80 fixed136x88 fixed136x96 fixed136x104 fixed136x112 fixed136x120 +syn keyword solBuiltinType fixed144x8 fixed144x16 fixed144x24 fixed144x32 fixed144x40 fixed144x48 fixed144x56 fixed144x64 fixed144x72 fixed144x80 fixed144x88 fixed144x96 fixed144x104 fixed144x112 +syn keyword solBuiltinType fixed152x8 fixed152x16 fixed152x24 fixed152x32 fixed152x40 fixed152x48 fixed152x56 fixed152x64 fixed152x72 fixed152x80 fixed152x88 fixed152x96 fixed152x104 +syn keyword solBuiltinType fixed160x8 fixed160x16 fixed160x24 fixed160x32 fixed160x40 fixed160x48 fixed160x56 fixed160x64 fixed160x72 fixed160x80 fixed160x88 fixed160x96 +syn keyword solBuiltinType fixed168x8 fixed168x16 fixed168x24 fixed168x32 fixed168x40 fixed168x48 fixed168x56 fixed168x64 fixed168x72 fixed168x80 fixed168x88 +syn keyword solBuiltinType fixed176x8 fixed176x16 fixed176x24 fixed176x32 fixed176x40 fixed176x48 fixed176x56 fixed176x64 fixed176x72 fixed176x80 +syn keyword solBuiltinType fixed184x8 fixed184x16 fixed184x24 fixed184x32 fixed184x40 fixed184x48 fixed184x56 fixed184x64 fixed184x72 +syn keyword solBuiltinType fixed192x8 fixed192x16 fixed192x24 fixed192x32 fixed192x40 fixed192x48 fixed192x56 fixed192x64 +syn keyword solBuiltinType fixed200x8 fixed200x16 fixed200x24 fixed200x32 fixed200x40 fixed200x48 fixed200x56 +syn keyword solBuiltinType fixed208x8 fixed208x16 fixed208x24 fixed208x32 fixed208x40 fixed208x48 +syn keyword solBuiltinType fixed216x8 fixed216x16 fixed216x24 fixed216x32 fixed216x40 +syn keyword solBuiltinType fixed224x8 fixed224x16 fixed224x24 fixed224x32 +syn keyword solBuiltinType fixed232x8 fixed232x16 fixed232x24 +syn keyword solBuiltinType fixed240x8 fixed240x16 +syn keyword solBuiltinType fixed248x8 +syn keyword solBuiltinType ufixed +syn keyword solBuiltinType ufixed0x8 ufixed0x16 ufixed0x24 ufixed0x32 ufixed0x40 ufixed0x48 ufixed0x56 ufixed0x64 ufixed0x72 ufixed0x80 ufixed0x88 ufixed0x96 ufixed0x104 ufixed0x112 ufixed0x120 ufixed0x128 ufixed0x136 ufixed0x144 ufixed0x152 ufixed0x160 ufixed0x168 ufixed0x178 ufixed0x184 ufixed0x192 ufixed0x200 ufixed0x208 ufixed0x216 ufixed0x224 ufixed0x232 ufixed0x240 ufixed0x248 ufixed0x256 +syn keyword solBuiltinType ufixed8x8 ufixed8x16 ufixed8x24 ufixed8x32 ufixed8x40 ufixed8x48 ufixed8x56 ufixed8x64 ufixed8x72 ufixed8x80 ufixed8x88 ufixed8x96 ufixed8x104 ufixed8x112 ufixed8x120 ufixed8x128 ufixed8x136 ufixed8x144 ufixed8x152 ufixed8x160 ufixed8x168 ufixed8x178 ufixed8x184 ufixed8x192 ufixed8x200 ufixed8x208 ufixed8x216 ufixed8x224 ufixed8x232 ufixed8x240 ufixed8x248 +syn keyword solBuiltinType ufixed16x8 ufixed16x16 ufixed16x24 ufixed16x32 ufixed16x40 ufixed16x48 ufixed16x56 ufixed16x64 ufixed16x72 ufixed16x80 ufixed16x88 ufixed16x96 ufixed16x104 ufixed16x112 ufixed16x120 ufixed16x128 ufixed16x136 ufixed16x144 ufixed16x152 ufixed16x160 ufixed16x168 ufixed16x178 ufixed16x184 ufixed16x192 ufixed16x200 ufixed16x208 ufixed16x216 ufixed16x224 ufixed16x232 ufixed16x240 +syn keyword solBuiltinType ufixed24x8 ufixed24x16 ufixed24x24 ufixed24x32 ufixed24x40 ufixed24x48 ufixed24x56 ufixed24x64 ufixed24x72 ufixed24x80 ufixed24x88 ufixed24x96 ufixed24x104 ufixed24x112 ufixed24x120 ufixed24x128 ufixed24x136 ufixed24x144 ufixed24x152 ufixed24x160 ufixed24x168 ufixed24x178 ufixed24x184 ufixed24x192 ufixed24x200 ufixed24x208 ufixed24x216 ufixed24x224 ufixed24x232 +syn keyword solBuiltinType ufixed32x8 ufixed32x16 ufixed32x24 ufixed32x32 ufixed32x40 ufixed32x48 ufixed32x56 ufixed32x64 ufixed32x72 ufixed32x80 ufixed32x88 ufixed32x96 ufixed32x104 ufixed32x112 ufixed32x120 ufixed32x128 ufixed32x136 ufixed32x144 ufixed32x152 ufixed32x160 ufixed32x168 ufixed32x178 ufixed32x184 ufixed32x192 ufixed32x200 ufixed32x208 ufixed32x216 ufixed32x224 +syn keyword solBuiltinType ufixed40x8 ufixed40x16 ufixed40x24 ufixed40x32 ufixed40x40 ufixed40x48 ufixed40x56 ufixed40x64 ufixed40x72 ufixed40x80 ufixed40x88 ufixed40x96 ufixed40x104 ufixed40x112 ufixed40x120 ufixed40x128 ufixed40x136 ufixed40x144 ufixed40x152 ufixed40x160 ufixed40x168 ufixed40x178 ufixed40x184 ufixed40x192 ufixed40x200 ufixed40x208 ufixed40x216 +syn keyword solBuiltinType ufixed48x8 ufixed48x16 ufixed48x24 ufixed48x32 ufixed48x40 ufixed48x48 ufixed48x56 ufixed48x64 ufixed48x72 ufixed48x80 ufixed48x88 ufixed48x96 ufixed48x104 ufixed48x112 ufixed48x120 ufixed48x128 ufixed48x136 ufixed48x144 ufixed48x152 ufixed48x160 ufixed48x168 ufixed48x178 ufixed48x184 ufixed48x192 ufixed48x200 ufixed48x208 +syn keyword solBuiltinType ufixed56x8 ufixed56x16 ufixed56x24 ufixed56x32 ufixed56x40 ufixed56x48 ufixed56x56 ufixed56x64 ufixed56x72 ufixed56x80 ufixed56x88 ufixed56x96 ufixed56x104 ufixed56x112 ufixed56x120 ufixed56x128 ufixed56x136 ufixed56x144 ufixed56x152 ufixed56x160 ufixed56x168 ufixed56x178 ufixed56x184 ufixed56x192 ufixed56x200 +syn keyword solBuiltinType ufixed64x8 ufixed64x16 ufixed64x24 ufixed64x32 ufixed64x40 ufixed64x48 ufixed64x56 ufixed64x64 ufixed64x72 ufixed64x80 ufixed64x88 ufixed64x96 ufixed64x104 ufixed64x112 ufixed64x120 ufixed64x128 ufixed64x136 ufixed64x144 ufixed64x152 ufixed64x160 ufixed64x168 ufixed64x178 ufixed64x184 ufixed64x192 +syn keyword solBuiltinType ufixed72x8 ufixed72x16 ufixed72x24 ufixed72x32 ufixed72x40 ufixed72x48 ufixed72x56 ufixed72x64 ufixed72x72 ufixed72x80 ufixed72x88 ufixed72x96 ufixed72x104 ufixed72x112 ufixed72x120 ufixed72x128 ufixed72x136 ufixed72x144 ufixed72x152 ufixed72x160 ufixed72x168 ufixed72x178 ufixed72x184 +syn keyword solBuiltinType ufixed80x8 ufixed80x16 ufixed80x24 ufixed80x32 ufixed80x40 ufixed80x48 ufixed80x56 ufixed80x64 ufixed80x72 ufixed80x80 ufixed80x88 ufixed80x96 ufixed80x104 ufixed80x112 ufixed80x120 ufixed80x128 ufixed80x136 ufixed80x144 ufixed80x152 ufixed80x160 ufixed80x168 ufixed80x178 +syn keyword solBuiltinType ufixed88x8 ufixed88x16 ufixed88x24 ufixed88x32 ufixed88x40 ufixed88x48 ufixed88x56 ufixed88x64 ufixed88x72 ufixed88x80 ufixed88x88 ufixed88x96 ufixed88x104 ufixed88x112 ufixed88x120 ufixed88x128 ufixed88x136 ufixed88x144 ufixed88x152 ufixed88x160 ufixed88x168 +syn keyword solBuiltinType ufixed96x8 ufixed96x16 ufixed96x24 ufixed96x32 ufixed96x40 ufixed96x48 ufixed96x56 ufixed96x64 ufixed96x72 ufixed96x80 ufixed96x88 ufixed96x96 ufixed96x104 ufixed96x112 ufixed96x120 ufixed96x128 ufixed96x136 ufixed96x144 ufixed96x152 ufixed96x160 +syn keyword solBuiltinType ufixed104x8 ufixed104x16 ufixed104x24 ufixed104x32 ufixed104x40 ufixed104x48 ufixed104x56 ufixed104x64 ufixed104x72 ufixed104x80 ufixed104x88 ufixed104x96 ufixed104x104 ufixed104x112 ufixed104x120 ufixed104x128 ufixed104x136 ufixed104x144 ufixed104x152 +syn keyword solBuiltinType ufixed112x8 ufixed112x16 ufixed112x24 ufixed112x32 ufixed112x40 ufixed112x48 ufixed112x56 ufixed112x64 ufixed112x72 ufixed112x80 ufixed112x88 ufixed112x96 ufixed112x104 ufixed112x112 ufixed112x120 ufixed112x128 ufixed112x136 ufixed112x144 +syn keyword solBuiltinType ufixed120x8 ufixed120x16 ufixed120x24 ufixed120x32 ufixed120x40 ufixed120x48 ufixed120x56 ufixed120x64 ufixed120x72 ufixed120x80 ufixed120x88 ufixed120x96 ufixed120x104 ufixed120x112 ufixed120x120 ufixed120x128 ufixed120x136 +syn keyword solBuiltinType ufixed128x8 ufixed128x16 ufixed128x24 ufixed128x32 ufixed128x40 ufixed128x48 ufixed128x56 ufixed128x64 ufixed128x72 ufixed128x80 ufixed128x88 ufixed128x96 ufixed128x104 ufixed128x112 ufixed128x120 ufixed128x128 +syn keyword solBuiltinType ufixed136x8 ufixed136x16 ufixed136x24 ufixed136x32 ufixed136x40 ufixed136x48 ufixed136x56 ufixed136x64 ufixed136x72 ufixed136x80 ufixed136x88 ufixed136x96 ufixed136x104 ufixed136x112 ufixed136x120 +syn keyword solBuiltinType ufixed144x8 ufixed144x16 ufixed144x24 ufixed144x32 ufixed144x40 ufixed144x48 ufixed144x56 ufixed144x64 ufixed144x72 ufixed144x80 ufixed144x88 ufixed144x96 ufixed144x104 ufixed144x112 +syn keyword solBuiltinType ufixed152x8 ufixed152x16 ufixed152x24 ufixed152x32 ufixed152x40 ufixed152x48 ufixed152x56 ufixed152x64 ufixed152x72 ufixed152x80 ufixed152x88 ufixed152x96 ufixed152x104 +syn keyword solBuiltinType ufixed160x8 ufixed160x16 ufixed160x24 ufixed160x32 ufixed160x40 ufixed160x48 ufixed160x56 ufixed160x64 ufixed160x72 ufixed160x80 ufixed160x88 ufixed160x96 +syn keyword solBuiltinType ufixed168x8 ufixed168x16 ufixed168x24 ufixed168x32 ufixed168x40 ufixed168x48 ufixed168x56 ufixed168x64 ufixed168x72 ufixed168x80 ufixed168x88 +syn keyword solBuiltinType ufixed176x8 ufixed176x16 ufixed176x24 ufixed176x32 ufixed176x40 ufixed176x48 ufixed176x56 ufixed176x64 ufixed176x72 ufixed176x80 +syn keyword solBuiltinType ufixed184x8 ufixed184x16 ufixed184x24 ufixed184x32 ufixed184x40 ufixed184x48 ufixed184x56 ufixed184x64 ufixed184x72 +syn keyword solBuiltinType ufixed192x8 ufixed192x16 ufixed192x24 ufixed192x32 ufixed192x40 ufixed192x48 ufixed192x56 ufixed192x64 +syn keyword solBuiltinType ufixed200x8 ufixed200x16 ufixed200x24 ufixed200x32 ufixed200x40 ufixed200x48 ufixed200x56 +syn keyword solBuiltinType ufixed208x8 ufixed208x16 ufixed208x24 ufixed208x32 ufixed208x40 ufixed208x48 +syn keyword solBuiltinType ufixed216x8 ufixed216x16 ufixed216x24 ufixed216x32 ufixed216x40 +syn keyword solBuiltinType ufixed224x8 ufixed224x16 ufixed224x24 ufixed224x32 +syn keyword solBuiltinType ufixed232x8 ufixed232x16 ufixed232x24 +syn keyword solBuiltinType ufixed240x8 ufixed240x16 +syn keyword solBuiltinType ufixed248x8 +syn keyword solBuiltinType string string1 string2 string3 string4 string5 string6 string7 string8 string9 string10 string11 string12 string13 string14 string15 string16 string17 string18 string19 string20 string21 string22 string23 string24 string25 string26 string27 string28 string29 string30 string31 string32 +syn keyword solBuiltinType byte bytes bytes1 bytes2 bytes3 bytes4 bytes5 bytes6 bytes7 bytes8 bytes9 bytes10 bytes11 bytes12 bytes13 bytes14 bytes15 bytes16 bytes17 bytes18 bytes19 bytes20 bytes21 bytes22 bytes23 bytes24 bytes25 bytes26 bytes27 bytes28 bytes29 bytes30 bytes31 bytes32 + +hi def link solKeyword Keyword +hi def link solConstant Constant +hi def link solBuiltinType Type +hi def link solBuiltinFunction Keyword + +syn match solOperator /\(!\||\|&\|+\|-\|<\|>\|=\|%\|\/\|*\|\~\|\^\)/ +syn match solNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/ +syn match solFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/ + +syn region solString start=+"+ skip=+\\\\\|\\$"\|\\"+ end=+"+ +syn region solString start=+'+ skip=+\\\\\|\\$'\|\\'+ end=+'+ + +hi def link solOperator Operator +hi def link solNumber Number +hi def link solFloat Float +hi def link solString String + +" Function +syn match solFunction /\/ nextgroup=solFuncName,solFuncArgs skipwhite +syn match solFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=solFuncArgs skipwhite + +syn region solFuncArgs contained matchgroup=solFuncParens start='(' end=')' contains=solFuncArgCommas,solBuiltinType nextgroup=solModifierName,solFuncReturns,solFuncBody keepend skipwhite skipempty +syn match solModifierName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=solModifierArgs,solModifierName skipwhite +syn region solModifierArgs contained matchgroup=solFuncParens start='(' end=')' contains=solFuncArgCommas nextgroup=solModifierName,solFuncReturns,solFuncBody skipwhite +syn region solFuncReturns contained matchgroup=solFuncParens nextgroup=solFuncBody start='(' end=')' contains=solFuncArgCommas,solBuiltinType skipwhite + +syn match solFuncArgCommas contained ',' +syn region solFuncBody start="{" end="}" fold transparent + +hi def link solFunction Type +hi def link solFuncName Function +hi def link solModifierName Function + +" Yul blocks +syn match yul /\/ skipwhite skipempty nextgroup=yulBody +syn region yulBody contained start='{' end='}' fold contains=yulAssemblyOp,solNumber,yulVarDeclaration,solLineComment,solComment skipwhite skipempty +syn keyword yulAssemblyOp contained stop add sub mul div sdiv mod smod exp not lt gt slt sgt eq iszero and or xor byte shl shr sar addmod mulmod signextend keccak256 pc pop mload mstore mstore8 sload sstore msize gas address balance selfbalance caller callvalue calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash create create2 call callcode delegatecall staticcall return revert selfdestruct invalid log0 log1 log2 log3 log4 chainid basefee origin gasprice blockhash coinbase timestamp number difficulty gaslimit +syn keyword yulVarDeclaration contained let + +hi def link yul Keyword +hi def link yulVarDeclaration Keyword +hi def link yulAssemblyOp Keyword + +" Contract +syn match solContract /\<\%(contract\|library\|interface\)\>/ nextgroup=solContractName skipwhite +syn match solContractName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=solContractParent skipwhite +syn region solContractParent contained start='is' end='{' contains=solContractName,solContractNoise,solContractCommas skipwhite skipempty +syn match solContractNoise contained 'is' containedin=solContractParent +syn match solContractCommas contained ',' + +hi def link solContract Type +hi def link solContractName Function + +" Event +syn match solEvent /\/ nextgroup=solEventName,solEventArgs skipwhite +syn match solEventName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=solEventArgs skipwhite +syn region solEventArgs contained matchgroup=solFuncParens start='(' end=')' contains=solEventArgCommas,solBuiltinType,solEventArgSpecial skipwhite skipempty +syn match solEventArgCommas contained ',' +syn match solEventArgSpecial contained 'indexed' + +hi def link solEvent Type +hi def link solEventName Function +hi def link solEventArgSpecial Label + +" Error +syn match solError /\/ nextgroup=solErrorName,solErrorArgs skipwhite +syn match solErrorName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=solErrorArgs skipwhite +syn region solErrorArgs contained matchgroup=solFuncParens start='(' end=')' contains=solErrorArgCommas,solBuiltinType skipwhite skipempty +syn match solErrorArgCommas contained ',' + +hi def link solError Type +hi def link solErrorName Function + +" Comment +syn keyword solCommentTodo TODO FIXME XXX TBD contained +syn match solNatSpec contained /@title\|@author\|@notice\|@dev\|@param\|@inheritdoc\|@return/ +syn region solLineComment start=+\/\/+ end=+$+ contains=solCommentTodo,solNatSpec,@Spell +syn region solLineComment start=+^\s*\/\/+ skip=+\n\s*\/\/+ end=+$+ contains=solCommentTodo,solNatSpec,@Spell fold +syn region solComment start="/\*" end="\*/" contains=solCommentTodo,solNatSpec,@Spell fold + +hi def link solCommentTodo Todo +hi def link solNatSpec Label +hi def link solLineComment Comment +hi def link solComment Comment + +let b:current_syntax = "solidity" diff --git a/git/usr/share/vim/vim92/syntax/spajson.vim b/git/usr/share/vim/vim92/syntax/spajson.vim new file mode 100644 index 0000000000000000000000000000000000000000..78ade5f92936c466efce5872c9e79d2537c25412 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/spajson.vim @@ -0,0 +1,50 @@ +" Vim syntax file +" Language: SPA JSON +" Maintainer: David Mandelberg +" Last Change: 2025 Mar 22 +" +" Based on parser code: +" https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/spa/include/spa/utils/json-core.h + +if exists("b:current_syntax") + finish +endif +let b:current_syntax = "spajson" + +syn sync minlines=500 + +" Treat the __BARE parser state as a keyword, to make it easier to match +" keywords and numbers only when they're not part of a larger __BARE section. +" E.g., v4l2 and pipewire-0 probably shouldn't highlight anything as +" spajsonInt. +syn iskeyword 32-126,^ ,^",^#,^:,^,,^=,^],^},^\ + +syn match spajsonEscape "\\["\\/bfnrt]" contained +syn match spajsonEscape "\\u[0-9A-Fa-f]\{4}" contained + +syn match spajsonError "." +syn match spajsonBare "\k\+" +syn match spajsonComment "#.*$" contains=@Spell +syn region spajsonString start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=spajsonEscape +syn match spajsonKeyDelimiter "[:=]" +syn region spajsonArray matchgroup=spajsonBracket start="\[" end="]" contains=ALLBUT,spajsonKeyDelimiter fold +syn region spajsonObject matchgroup=spajsonBrace start="{" end="}" contains=ALL fold +syn match spajsonFloat "\<[+-]\?[0-9]\+\(\.[0-9]*\)\?\([Ee][+-]\?[0-9]\+\)\?\>" +syn match spajsonFloat "\<[+-]\?\.[0-9]\+\([Ee][+-]\?[0-9]\+\)\?\>" +syn match spajsonInt "\<[+-]\?0[Xx][0-9A-Fa-f]\+\>" +syn match spajsonInt "\<[+-]\?[1-9][0-9]*\>" +syn match spajsonInt "\<[+-]\?0[0-7]*\>" +syn keyword spajsonBoolean true false +syn keyword spajsonNull null +syn match spajsonWhitespace "[\x00\t \r\n,]" + +hi def link spajsonBoolean Boolean +hi def link spajsonBrace Delimiter +hi def link spajsonBracket Delimiter +hi def link spajsonComment Comment +hi def link spajsonError Error +hi def link spajsonEscape SpecialChar +hi def link spajsonFloat Float +hi def link spajsonInt Number +hi def link spajsonNull Constant +hi def link spajsonString String diff --git a/git/usr/share/vim/vim92/syntax/spec.vim b/git/usr/share/vim/vim92/syntax/spec.vim new file mode 100644 index 0000000000000000000000000000000000000000..bbd6d395ba503be5deba194ca06a3a8a48184292 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/spec.vim @@ -0,0 +1,229 @@ +" Filename: spec.vim +" Purpose: Vim syntax file +" Language: SPEC: Build/install scripts for Linux RPM packages +" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com +" Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014) +" Last Change: 2020 May 25 +" 2024 Sep 10 by Vim Project: add file triggers support, #15569 +" 2025 May 05 by Vim Project: update for rpm 4.2 #17258 +" 2025 Nov 09 by Vim Project: support for more distributions and tags #18703 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn sync minlines=1000 + +syn match specSpecialChar contained '[][!$()\\|>^;:{}]' +syn match specColon contained ':' +syn match specPercent contained '%' + +syn match specVariables contained '\$\h\w*' contains=specSpecialVariablesNames,specSpecialChar +syn match specVariables contained '\${\w*}' contains=specSpecialVariablesNames,specSpecialChar + +syn match specMacroIdentifier contained '%\h\w*' contains=specMacroNameLocal,specMacroNameOther,specPercent +syn match specMacroIdentifier contained '%{?\?\w*}' contains=specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar + +syn match specSpecialVariables contained '\$[0-9]\|\${[0-9]}' +syn match specCommandOpts contained '\s\(-\w\+\|--\w[a-zA-Z_-]\+\)'ms=s+1 +syn match specComment '^\s*#.*$' + + +syn case match + + +"matches with no highlight +syn match specNoNumberHilite 'X11\|X11R6\|[a-zA-Z]*\.\d\|[a-zA-Z][-/]\d' +syn match specManpageFile '[a-zA-Z]\.1' + +"Day, Month and most used license acronyms +syn keyword specLicense contained GPL LGPL BSD MIT GNU +syn keyword specWeekday contained Mon Tue Wed Thu Fri Sat Sun +syn keyword specMonth contained Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec +syn keyword specMonth contained January February March April May June July August September October November December + +"#, @, www +syn match specNumber '\(^-\=\|[ \t]-\=\|-\)[0-9.-]*[0-9]' +syn match specEmail contained "<\=\<[A-Za-z0-9_.-]\+@\([A-Za-z0-9_-]\+\.\)\+[A-Za-z]\+\>>\=" +syn match specURL contained '\<\(\(https\{0,1}\|ftp\)://\|\(www[23]\{0,1}\.\|ftp\.\)\)[A-Za-z0-9._/~:,#-]\+\>' +syn match specURLMacro contained '\<\(\(https\{0,1}\|ftp\)://\|\(www[23]\{0,1}\.\|ftp\.\)\)[A-Za-z0-9._/~:,#%{}-]\+\>' contains=specMacroIdentifier + +"TODO take specSpecialVariables out of the cluster for the sh* contains (ALLBUT) +"Special system directories +syn match specListedFilesPrefix contained '/\(usr\|local\|opt\|X11R6\|X11\)/'me=e-1 +syn match specListedFilesBin contained '/s\=bin/'me=e-1 +syn match specListedFilesLib contained '/\(lib\|include\)/'me=e-1 +syn match specListedFilesDoc contained '/\(man\d*\|doc\|info\)\>' +syn match specListedFilesEtc contained '/etc/'me=e-1 +syn match specListedFilesShare contained '/share/'me=e-1 +syn cluster specListedFiles contains=specListedFilesBin,specListedFilesLib,specListedFilesDoc,specListedFilesEtc,specListedFilesShare,specListedFilesPrefix,specVariables,specSpecialChar + +"specCommands +syn match specConfigure contained '\./configure' +syn match specTarCommand contained '\' + +"valid _macro names from /usr/lib/rpm/macros +syn keyword specMacroNameLocal contained _arch _binary_payload _bindir _build _build_alias _build_cpu _build_os _build_vendor _builddir _buildshell _buildsubdir _bzip2bin _datadir _dbpath _dbpath_rebuild _defaultdocdir _defaultlicensedir _docdir _excludedocs _exec_prefix _fixgroup _fixowner _fixperms _ftpport _ftpproxy _gpg_path _group_path _gzipbin _host _host_alias _host_cpu _host_os _host_vendor _httpport _httpproxy _iconsdir _includedir _infodir _install_langs _install_script_path _instchangelog _keyring _keyringpath _langpatt _lib _libdir _libexecdir _localstatedir _mandir _netsharedpath _oldincludedir _os _passwd_path _pgp_path _pgpbin _preScriptEnvironment _prefix _provides _rpmconfigdir _rpmdir _rpmfilename _rpmformat _rpmluadir _rpmmacrodir _sbindir _sharedstatedir _signature _source_payload _sourcedir _specdir _srcrpmdir _sysconfdir _sysusersdir _target _target_alias _target_cpu _target_os _target_platform _target_vendor _timecheck _tmppath _topdir _unitdir _usr _usrsrc _var _vendor + + +"------------------------------------------------------------------------------ +" here's is all the spec sections definitions: PreAmble, Description, Package, +" Scripts, Files and Changelog + +"One line macros - valid in all ScriptAreas +"tip: remember do include new items on specScriptArea's skip section +syn region specSectionMacroArea oneline matchgroup=specSectionMacro start='^%\(define\|global\|patch\d*\|setup\|autosetup\|autopatch\|configure\|GNUconfigure\|find_lang\|make_build\|makeinstall\|make_install\|include\)\>' end='$' contains=specCommandOpts,specMacroIdentifier +syn region specSectionMacroBracketArea oneline matchgroup=specSectionMacro start='^%{\(configure\|GNUconfigure\|find_lang\|make_build\|makeinstall\|make_install\)}' end='$' contains=specCommandOpts,specMacroIdentifier + +"%% Files Section %% +"TODO %config valid parameters: missingok\|noreplace +"TODO %verify valid parameters: \(not\)\= \(md5\|atime\|...\) +syn region specFilesArea matchgroup=specSection start='^%[Ff][Ii][Ll][Ee][Ss]\>' skip='%\(attrib\|defattr\|attr\|dir\|config\|docdir\|doc\|lang\|license\|verify\|ghost\|exclude\)\>' end='^%[a-zA-Z]'me=e-2 contains=specFilesOpts,specFilesDirective,@specListedFiles,specComment,specCommandSpecial,specMacroIdentifier +"tip: remember to include new items in specFilesArea above +syn match specFilesDirective contained '%\(attrib\|defattr\|attr\|dir\|config\|docdir\|doc\|lang\|license\|verify\|ghost\|exclude\)\>' + +"valid options for certain section headers +syn match specDescriptionOpts contained '\s-[ln]\s*\a'ms=s+1,me=e-1 +syn match specPackageOpts contained '\s-n\s*\w'ms=s+1,me=e-1 +syn match specFilesOpts contained '\s-f\s*\w'ms=s+1,me=e-1 + + +syn case ignore + + +"%% PreAmble Section %% +"Copyright and Serial were deprecated by License and Epoch +syn region specPreAmbleDeprecated oneline matchgroup=specError start='^\(Copyright\|Serial\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier +syn region specPreAmble oneline matchgroup=specCommand start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Recommends\|Suggests\|Supplements\|Enhances\|Icon\|URL\|SourceLicense\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|DistTag\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\|ModularityLabel\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier + +"%% Description Section %% +syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1 contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment + +"%% Package Section %% +syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e-1 contains=specPackageOpts,specPreAmble,specComment + +"%% Scripts Section %% +syn region specScriptArea matchgroup=specSection start='^%\(prep\|generate_buildrequires\|conf\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\|filetriggerin\|filetriggerun\|filetriggerpostun\|transfiletriggerin\|transfiletriggerun\|transfiletriggerpostun\)\>' skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>' end='^%'me=e-1 contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2 + +"%% Changelog Section %% +syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1 contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense + + + +"------------------------------------------------------------------------------ +"here's the shell syntax for all the Script Sections + + +syn case match + + +"sh-like comment stile, only valid in script part +syn match shComment contained '#.*$' + +syn region dnlComment matchgroup=specComment start=+%dnl+ end=+$+ + +syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier +syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier + +syn match shOperator contained '[><|!&;]\|[!=]=' +syn region shDo transparent matchgroup=specBlock start="\" end="\" contains=ALLBUT,shFunction,shDoError,shCase,specPreAmble,@specListedFiles + +syn region specIf matchgroup=specBlock start="%ifosf\|%ifos\|%ifnos\|%ifarch\|%ifnarch\|%else" end='%endif' contains=ALLBUT, specIfError, shCase + +syn region shIf transparent matchgroup=specBlock start="\" end="\" contains=ALLBUT,shFunction,shIfError,shCase,@specListedFiles + +syn region shFor matchgroup=specBlock start="\" end="\" contains=ALLBUT,shFunction,shInError,shCase,@specListedFiles + +syn region shCaseEsac transparent matchgroup=specBlock start="\" matchgroup=NONE end="\"me=s-1 contains=ALLBUT,shFunction,shCaseError,@specListedFiles nextgroup=shCaseEsac +syn region shCaseEsac matchgroup=specBlock start="\" end="\" contains=ALLBUT,shFunction,shCaseError,@specListedFilesBin +syn region shCase matchgroup=specBlock contained start=")" end=";;" contains=ALLBUT,shFunction,shCaseError,shCase,@specListedFiles + +syn sync match shDoSync grouphere shDo "\" +syn sync match shDoSync groupthere shDo "\" +syn sync match shIfSync grouphere shIf "\" +syn sync match shIfSync groupthere shIf "\" +syn sync match specIfSync grouphere specIf "%ifarch\|%ifos\|%ifnos" +syn sync match specIfSync groupthere specIf "%endIf" +syn sync match shForSync grouphere shFor "\" +syn sync match shForSync groupthere shFor "\" +syn sync match shCaseEsacSync grouphere shCaseEsac "\" +syn sync match shCaseEsacSync groupthere shCaseEsac "\" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +"main types color definitions +hi def link specSection Structure +hi def link specSectionMacro Macro +hi def link specWWWlink PreProc +hi def link specOpts Operator + +"yes, it's ugly, but white is sooo cool +if &background == "dark" +hi def specGlobalMacro ctermfg=white +else +hi def link specGlobalMacro Identifier +endif + +"sh colors +hi def link shComment Comment +hi def link dnlComment Comment +hi def link shIf Statement +hi def link shOperator Special +hi def link shQuote1 String +hi def link shQuote2 String +hi def link shQuoteDelim Statement + +"spec colors +hi def link specBlock Function +hi def link specColon Special +hi def link specCommand Statement +hi def link specCommandOpts specOpts +hi def link specCommandSpecial Special +hi def link specComment Comment +hi def link specConfigure specCommand +hi def link specDate String +hi def link specDescriptionOpts specOpts +hi def link specEmail specWWWlink +hi def link specError Error +hi def link specFilesDirective specSectionMacro +hi def link specFilesOpts specOpts +hi def link specLicense String +hi def link specMacroNameLocal specGlobalMacro +hi def link specMacroNameOther specGlobalMacro +hi def link specManpageFile NONE +hi def link specMonth specDate +hi def link specNoNumberHilite NONE +hi def link specNumber Number +hi def link specPackageOpts specOpts +hi def link specPercent Special +hi def link specSpecialChar Special +hi def link specSpecialVariables specGlobalMacro +hi def link specSpecialVariablesNames specGlobalMacro +hi def link specTarCommand specCommand +hi def link specURL specWWWlink +hi def link specURLMacro specWWWlink +hi def link specVariables Identifier +hi def link specWeekday specDate +hi def link specListedFilesBin Statement +hi def link specListedFilesDoc Statement +hi def link specListedFilesEtc Statement +hi def link specListedFilesLib Statement +hi def link specListedFilesPrefix Statement +hi def link specListedFilesShare Statement + + +let b:current_syntax = "spec" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/specman.vim b/git/usr/share/vim/vim92/syntax/specman.vim new file mode 100644 index 0000000000000000000000000000000000000000..79c94b78152d2f012918f0461480852ca54e44c8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/specman.vim @@ -0,0 +1,169 @@ +" Vim syntax file +" Language: SPECMAN E-LANGUAGE +" Maintainer: Or Freund +" Last Update: Wed Oct 24 2001 + +"--------------------------------------------------------- +"| If anyone found an error or fix the parenthesis part | +"| I will be happy to hear about it | +"| Thanks Or. | +"--------------------------------------------------------- + +" Remove any old syntax stuff hanging around +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn keyword specmanTodo contained TODO todo ToDo FIXME XXX + +syn keyword specmanStatement var instance on compute start event expect check that routine +syn keyword specmanStatement specman is also first only with like +syn keyword specmanStatement list of all radix hex dec bin ignore illegal +syn keyword specmanStatement traceable untraceable +syn keyword specmanStatement cover using count_only trace_only at_least transition item ranges +syn keyword specmanStatement cross text call task within + +syn keyword specmanMethod initialize non_terminal testgroup delayed exit finish +syn keyword specmanMethod out append print outf appendf +syn keyword specmanMethod post_generate pre_generate setup_test finalize_test extract_test +syn keyword specmanMethod init run copy as_a set_config dut_error add clear lock quit +syn keyword specmanMethod lock unlock release swap quit to_string value stop_run +syn keyword specmanMethod crc_8 crc_32 crc_32_flip get_config add0 all_indices and_all +syn keyword specmanMethod apply average count delete exists first_index get_indices +syn keyword specmanMethod has insert is_a_permutation is_empty key key_exists key_index +syn keyword specmanMethod last last_index max max_index max_value min min_index +syn keyword specmanMethod min_value or_all pop pop0 push push0 product resize reverse +syn keyword specmanMethod sort split sum top top0 unique clear is_all_iterations +syn keyword specmanMethod get_enclosing_unit hdl_path exec deep_compare deep_compare_physical +syn keyword specmanMethod pack unpack warning error fatal +syn match specmanMethod "size()" +syn keyword specmanPacking packing low high +syn keyword specmanType locker address +syn keyword specmanType body code vec chars +syn keyword specmanType integer real bool int long uint byte bits bit time string +syn keyword specmanType byte_array external_pointer +syn keyword specmanBoolean TRUE FALSE +syn keyword specmanPreCondit #ifdef #ifndef #else + +syn keyword specmanConditional choose matches +syn keyword specmanConditional if then else when try + + + +syn keyword specmanLabel case casex casez default + +syn keyword specmanLogical and or not xor + +syn keyword specmanRepeat until repeat while for from to step each do break continue +syn keyword specmanRepeat before next sequence always -kind network +syn keyword specmanRepeat index it me in new return result select + +syn keyword specmanTemporal cycle sample events forever +syn keyword specmanTemporal wait change negedge rise fall delay sync sim true detach eventually emit + +syn keyword specmanConstant MAX_INT MIN_INT NULL UNDEF + +syn keyword specmanDefine define as computed type extend +syn keyword specmanDefine verilog vhdl variable global sys +syn keyword specmanStructure struct unit +syn keyword specmanInclude import +syn keyword specmanConstraint gen keep keeping soft before + +syn keyword specmanSpecial untyped symtab ECHO DOECHO +syn keyword specmanFile files load module ntv source_ref script read write +syn keyword specmanFSM initial idle others posedge clock cycles + + +syn match specmanOperator "[&|~>"hs=s+2 end="^<'"he=e-2 + +syn match specmanHDL "'[`.a-zA-Z0-9_@\[\]]\+\>'" + + +syn match specmanCompare "==" +syn match specmanCompare "!===" +syn match specmanCompare "===" +syn match specmanCompare "!=" +syn match specmanCompare ">=" +syn match specmanCompare "<=" +syn match specmanNumber "[0-9]:[0-9]" +syn match specmanNumber "\(\<\d\+\|\)'[bB]\s*[0-1_xXzZ?]\+\>" +syn match specmanNumber "0[bB]\s*[0-1_xXzZ?]\+\>" +syn match specmanNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>" +syn match specmanNumber "0[oO]\s*[0-9a-fA-F_xXzZ?]\+\>" +syn match specmanNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>" +syn match specmanNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>" +syn match specmanNumber "0[xX]\s*[0-9a-fA-F_xXzZ?]\+\>" +syn match specmanNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>" + +syn region specmanString start=+"+ end=+"+ + + + +"********************************************************************** +" I took this section from c.vim but I didnt succeded to make it work +" ANY one who dare jumping to this deep watter is more than welocome! +"********************************************************************** +""catch errors caused by wrong parenthesis and brackets + +"syn cluster specmanParenGroup contains=specmanParenError +"" ,specmanNumbera,specmanComment +"if exists("specman_no_bracket_error") +"syn region specmanParen transparent start='(' end=')' contains=ALLBUT,@specmanParenGroup +"syn match specmanParenError ")" +"syn match specmanErrInParen contained "[{}]" +"else +"syn region specmanParen transparent start='(' end=')' contains=ALLBUT,@specmanParenGroup,specmanErrInBracket +"syn match specmanParenError "[\])]" +"syn match specmanErrInParen contained "[\]{}]" +"syn region specmanBracket transparent start='\[' end=']' contains=ALLBUT,@specmanParenGroup,specmanErrInParen +"syn match specmanErrInBracket contained "[);{}]" +"endif +" + +"Modify the following as needed. The trade-off is performance versus +"functionality. + +syn sync lines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +" The default methods for highlighting. Can be overridden later +hi def link specmanConditional Conditional +hi def link specmanConstraint Conditional +hi def link specmanRepeat Repeat +hi def link specmanString String +hi def link specmanComment Comment +hi def link specmanConstant Macro +hi def link specmanNumber Number +hi def link specmanCompare Operator +hi def link specmanOperator Operator +hi def link specmanLogical Operator +hi def link specmanStatement Statement +hi def link specmanHDL SpecialChar +hi def link specmanMethod Function +hi def link specmanInclude Include +hi def link specmanStructure Structure +hi def link specmanBoolean Boolean +hi def link specmanFSM Label +hi def link specmanSpecial Special +hi def link specmanType Type +hi def link specmanTemporal Type +hi def link specmanFile Include +hi def link specmanPreCondit Include +hi def link specmanDefine Typedef +hi def link specmanLabel Label +hi def link specmanPacking keyword +hi def link specmanTodo Todo +hi def link specmanParenError Error +hi def link specmanErrInParen Error +hi def link specmanErrInBracket Error + +let b:current_syntax = "specman" diff --git a/git/usr/share/vim/vim92/syntax/spice.vim b/git/usr/share/vim/vim92/syntax/spice.vim new file mode 100644 index 0000000000000000000000000000000000000000..306039bc74d5ea90036ca035816a2558c117e574 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/spice.vim @@ -0,0 +1,75 @@ +" Vim syntax file +" Language: Spice circuit simulator input netlist +" Maintainer: Noam Halevy +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) +" +" This is based on sh.vim by Lennart Schultz +" but greatly simplified + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" spice syntax is case INsensitive +syn case ignore + +syn keyword spiceTodo contained TODO + +syn match spiceComment "^ \=\*.*$" contains=@Spell +syn match spiceComment "\$.*$" contains=@Spell + +" Numbers, all with engineering suffixes and optional units +"========================================================== +"floating point number, with dot, optional exponent +syn match spiceNumber "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\(meg\=\|[afpnumkg]\)\=" +"floating point number, starting with a dot, optional exponent +syn match spiceNumber "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=\(meg\=\|[afpnumkg]\)\=" +"integer number with optional exponent +syn match spiceNumber "\<[0-9]\+\(e[-+]\=[0-9]\+\)\=\(meg\=\|[afpnumkg]\)\=" + +" Misc +"===== +syn match spiceWrapLineOperator "\\$" +syn match spiceWrapLineOperator "^+" + +syn match spiceStatement "^ \=\.\I\+" + +" Matching pairs of parentheses +"========================================== +syn region spiceParen transparent matchgroup=spiceOperator start="(" end=")" contains=ALLBUT,spiceParenError +syn region spiceSinglequote matchgroup=spiceOperator start=+'+ end=+'+ + +" Errors +"======= +syn match spiceParenError ")" + +" Syncs +" ===== +syn sync minlines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link spiceTodo Todo +hi def link spiceWrapLineOperator spiceOperator +hi def link spiceSinglequote spiceExpr +hi def link spiceExpr Function +hi def link spiceParenError Error +hi def link spiceStatement Statement +hi def link spiceNumber Number +hi def link spiceComment Comment +hi def link spiceOperator Operator + + +let b:current_syntax = "spice" + +" insert the following to $VIM/syntax/scripts.vim +" to autodetect HSpice netlists and text listing output: +" +" " Spice netlists and text listings +" elseif getline(1) =~ 'spice\>' || getline("$") =~ '^\.end' +" so :p:h/spice.vim + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/splint.vim b/git/usr/share/vim/vim92/syntax/splint.vim new file mode 100644 index 0000000000000000000000000000000000000000..8eba57d288891aadb1796ce3f7cac52b34374b9a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/splint.vim @@ -0,0 +1,243 @@ +" Vim syntax file +" Language: splint (C with lclint/splint Annotations) +" Maintainer: Ralf Wildenhues +" Splint Home: http://www.splint.org/ +" Last Change: $Date: 2004/06/13 20:08:47 $ +" $Revision: 1.1 $ + +" Note: Splint annotated files are not detected by default. +" If you want to use this file for highlighting C code, +" please make sure splint.vim is sourced instead of c.vim, +" for example by putting +" /* vim: set filetype=splint : */ +" at the end of your code or something like +" au! BufRead,BufNewFile *.c setfiletype splint +" in your vimrc file or filetype.vim + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Read the C syntax to start with +runtime! syntax/c.vim + + +" FIXME: uses and changes several clusters defined in c.vim +" so watch for changes there + +" TODO: make a little more grammar explicit +" match flags with hyphen and underscore notation +" match flag expanded forms +" accept other comment char than @ + +syn case match +" splint annotations (taken from 'splint -help annotations') +syn match splintStateAnnot contained "\(pre\|post\):\(only\|shared\|owned\|dependent\|observer\|exposed\|isnull\|notnull\)" +syn keyword splintSpecialAnnot contained special +syn keyword splintSpecTag contained uses sets defines allocated releases +syn keyword splintModifies contained modifies +syn keyword splintRequires contained requires ensures +syn keyword splintGlobals contained globals +syn keyword splintGlobitem contained internalState fileSystem +syn keyword splintGlobannot contained undef killed +syn keyword splintWarning contained warn + +syn keyword splintModitem contained internalState fileSystem nothing +syn keyword splintReqitem contained MaxSet MaxRead result +syn keyword splintIter contained iter yield +syn keyword splintConst contained constant +syn keyword splintAlt contained alt + +syn keyword splintType contained abstract concrete mutable immutable refcounted numabstract +syn keyword splintGlobalType contained unchecked checkmod checked checkedstrict +syn keyword splintMemMgm contained dependent keep killref only owned shared temp +syn keyword splintAlias contained unique returned +syn keyword splintExposure contained observer exposed +syn keyword splintDefState contained out in partial reldef +syn keyword splintGlobState contained undef killed +syn keyword splintNullState contained null notnull relnull +syn keyword splintNullPred contained truenull falsenull nullwhentrue falsewhennull +syn keyword splintExit contained exits mayexit trueexit falseexit neverexit +syn keyword splintExec contained noreturn maynotreturn noreturnwhentrue noreturnwhenfalse alwaysreturns +syn keyword splintSef contained sef +syn keyword splintDecl contained unused external +syn keyword splintCase contained fallthrough +syn keyword splintBreak contained innerbreak loopbreak switchbreak innercontinue +syn keyword splintUnreach contained notreached +syn keyword splintSpecFunc contained printflike scanflike messagelike + +" TODO: make these region or match +syn keyword splintErrSupp contained i ignore end t +syn match splintErrSupp contained "[it]\d\+\>" +syn keyword splintTypeAcc contained access noaccess + +syn keyword splintMacro contained notfunction +syn match splintSpecType contained "\(\|unsigned\|signed\)integraltype" + +" Flags taken from 'splint -help flags full' divided in local and global flags +" Local Flags: +syn keyword splintFlag contained abstract abstractcompare accessall accessczech accessczechoslovak +syn keyword splintFlag contained accessfile accessmodule accessslovak aliasunique allblock +syn keyword splintFlag contained allempty allglobs allimponly allmacros alwaysexits +syn keyword splintFlag contained annotationerror ansi89limits assignexpose badflag bitwisesigned +syn keyword splintFlag contained boolcompare boolfalse boolint boolops booltrue +syn keyword splintFlag contained booltype bounds boundscompacterrormessages boundsread boundswrite +syn keyword splintFlag contained branchstate bufferoverflow bufferoverflowhigh bugslimit casebreak +syn keyword splintFlag contained caseinsensitivefilenames castexpose castfcnptr charindex charint +syn keyword splintFlag contained charintliteral charunsignedchar checkedglobalias checkmodglobalias checkpost +syn keyword splintFlag contained checkstrictglobalias checkstrictglobs codeimponly commentchar commenterror +syn keyword splintFlag contained compdef compdestroy compmempass constmacros constprefix +syn keyword splintFlag contained constprefixexclude constuse continuecomment controlnestdepth cppnames +syn keyword splintFlag contained csvoverwrite czech czechconsts czechfcns czechmacros +syn keyword splintFlag contained czechoslovak czechoslovakconsts czechoslovakfcns czechoslovakmacros czechoslovaktypes +syn keyword splintFlag contained czechoslovakvars czechtypes czechvars debugfcnconstraint declundef +syn keyword splintFlag contained deepbreak deparrays dependenttrans distinctexternalnames distinctinternalnames +syn keyword splintFlag contained duplicatecases duplicatequals elseifcomplete emptyret enumindex +syn keyword splintFlag contained enumint enummembers enummemuse enumprefix enumprefixexclude +syn keyword splintFlag contained evalorder evalorderuncon exitarg exportany exportconst +syn keyword splintFlag contained exportfcn exportheader exportheadervar exportiter exportlocal +syn keyword splintFlag contained exportmacro exporttype exportvar exposetrans externalnamecaseinsensitive +syn keyword splintFlag contained externalnamelen externalprefix externalprefixexclude fcnderef fcnmacros +syn keyword splintFlag contained fcnpost fcnuse fielduse fileextensions filestaticprefix +syn keyword splintFlag contained filestaticprefixexclude firstcase fixedformalarray floatdouble forblock +syn keyword splintFlag contained forcehints forempty forloopexec formalarray formatcode +syn keyword splintFlag contained formatconst formattype forwarddecl freshtrans fullinitblock +syn keyword splintFlag contained globalias globalprefix globalprefixexclude globimponly globnoglobs +syn keyword splintFlag contained globs globsimpmodsnothing globstate globuse gnuextensions +syn keyword splintFlag contained grammar hasyield hints htmlfileformat ifblock +syn keyword splintFlag contained ifempty ignorequals ignoresigns immediatetrans impabstract +syn keyword splintFlag contained impcheckedglobs impcheckedspecglobs impcheckedstatics impcheckedstrictglobs impcheckedstrictspecglobs +syn keyword splintFlag contained impcheckedstrictstatics impcheckmodglobs impcheckmodinternals impcheckmodspecglobs impcheckmodstatics +syn keyword splintFlag contained impconj implementationoptional implictconstraint impouts imptype +syn keyword splintFlag contained includenest incompletetype incondefs incondefslib indentspaces +syn keyword splintFlag contained infloops infloopsuncon initallelements initsize internalglobs +syn keyword splintFlag contained internalglobsnoglobs internalnamecaseinsensitive internalnamelen internalnamelookalike iso99limits +syn keyword splintFlag contained isoreserved isoreservedinternal iterbalance iterloopexec iterprefix +syn keyword splintFlag contained iterprefixexclude iteryield its4low its4moderate its4mostrisky +syn keyword splintFlag contained its4risky its4veryrisky keep keeptrans kepttrans +syn keyword splintFlag contained legacy libmacros likelyboundsread likelyboundswrite likelybool +syn keyword splintFlag contained likelybounds limit linelen lintcomments localprefix +syn keyword splintFlag contained localprefixexclude locindentspaces longint longintegral longsignedintegral +syn keyword splintFlag contained longunsignedintegral longunsignedunsignedintegral loopexec looploopbreak looploopcontinue +syn keyword splintFlag contained loopswitchbreak macroassign macroconstdecl macrodecl macroempty +syn keyword splintFlag contained macrofcndecl macromatchname macroparams macroparens macroredef +syn keyword splintFlag contained macroreturn macrostmt macrounrecog macrovarprefix macrovarprefixexclude +syn keyword splintFlag contained maintype matchanyintegral matchfields mayaliasunique memchecks +syn keyword splintFlag contained memimp memtrans misplacedsharequal misscase modfilesys +syn keyword splintFlag contained modglobs modglobsnomods modglobsunchecked modinternalstrict modnomods +syn keyword splintFlag contained modobserver modobserveruncon mods modsimpnoglobs modstrictglobsnomods +syn keyword splintFlag contained moduncon modunconnomods modunspec multithreaded mustdefine +syn keyword splintFlag contained mustfree mustfreefresh mustfreeonly mustmod mustnotalias +syn keyword splintFlag contained mutrep namechecks needspec nestcomment nestedextern +syn keyword splintFlag contained newdecl newreftrans nextlinemacros noaccess nocomments +syn keyword splintFlag contained noeffect noeffectuncon noparams nopp noret +syn keyword splintFlag contained null nullassign nullderef nullinit nullpass +syn keyword splintFlag contained nullptrarith nullret nullstate nullterminated +syn keyword splintFlag contained numabstract numabstractcast numabstractindex numabstractlit numabstractprint +syn keyword splintFlag contained numenummembers numliteral numstructfields observertrans obviousloopexec +syn keyword splintFlag contained oldstyle onlytrans onlyunqglobaltrans orconstraint overload +syn keyword splintFlag contained ownedtrans paramimptemp paramuse parenfileformat partial +syn keyword splintFlag contained passunknown portability predassign predbool predboolint +syn keyword splintFlag contained predboolothers predboolptr preproc protoparammatch protoparamname +syn keyword splintFlag contained protoparamprefix protoparamprefixexclude ptrarith ptrcompare ptrnegate +syn keyword splintFlag contained quiet readonlystrings readonlytrans realcompare redecl +syn keyword splintFlag contained redef redundantconstraints redundantsharequal refcounttrans relaxquals +syn keyword splintFlag contained relaxtypes repeatunrecog repexpose retalias retexpose +syn keyword splintFlag contained retimponly retval retvalbool retvalint retvalother +syn keyword splintFlag contained sefparams sefuncon shadow sharedtrans shiftimplementation +syn keyword splintFlag contained shiftnegative shortint showallconjs showcolumn showconstraintlocation +syn keyword splintFlag contained showconstraintparens showdeephistory showfunc showloadloc showscan +syn keyword splintFlag contained showsourceloc showsummary sizeofformalarray sizeoftype skipisoheaders +syn keyword splintFlag contained skipposixheaders slashslashcomment slovak slovakconsts slovakfcns +syn keyword splintFlag contained slovakmacros slovaktypes slovakvars specglobimponly specimponly +syn keyword splintFlag contained specmacros specretimponly specstructimponly specundecl specundef +syn keyword splintFlag contained stackref statemerge statetransfer staticinittrans statictrans +syn keyword splintFlag contained strictbranchstate strictdestroy strictops strictusereleased stringliterallen +syn keyword splintFlag contained stringliteralnoroom stringliteralnoroomfinalnull stringliteralsmaller stringliteraltoolong structimponly +syn keyword splintFlag contained superuser switchloopbreak switchswitchbreak syntax sysdirerrors +syn keyword splintFlag contained sysdirexpandmacros sysunrecog tagprefix tagprefixexclude temptrans +syn keyword splintFlag contained tmpcomments toctou topuse trytorecover type +syn keyword splintFlag contained typeprefix typeprefixexclude typeuse uncheckedglobalias uncheckedmacroprefix +syn keyword splintFlag contained uncheckedmacroprefixexclude uniondef unixstandard unqualifiedinittrans unqualifiedtrans +syn keyword splintFlag contained unreachable unrecog unrecogcomments unrecogdirective unrecogflagcomments +syn keyword splintFlag contained unsignedcompare unusedspecial usedef usereleased usevarargs +syn keyword splintFlag contained varuse voidabstract warnflags warnlintcomments warnmissingglobs +syn keyword splintFlag contained warnmissingglobsnoglobs warnposixheaders warnrc warnsysfiles warnunixlib +syn keyword splintFlag contained warnuse whileblock whileempty whileloopexec zerobool +syn keyword splintFlag contained zeroptr +" Global Flags: +syn keyword splintGlobalFlag contained csv dump errorstream errorstreamstderr errorstreamstdout +syn keyword splintGlobalFlag contained expect f help i isolib +syn keyword splintGlobalFlag contained larchpath lclexpect lclimportdir lcs lh +syn keyword splintGlobalFlag contained load messagestream messagestreamstderr messagestreamstdout mts +syn keyword splintGlobalFlag contained neverinclude nof nolib posixlib posixstrictlib +syn keyword splintGlobalFlag contained showalluses singleinclude skipsysheaders stats streamoverwrite +syn keyword splintGlobalFlag contained strictlib supcounts sysdirs timedist tmpdir +syn keyword splintGlobalFlag contained unixlib unixstrictlib warningstream warningstreamstderr warningstreamstdout +syn keyword splintGlobalFlag contained whichlib +syn match splintFlagExpr contained "[\+\-\=]" nextgroup=splintFlag,splintGlobalFlag + +" detect missing /*@ and wrong */ +syn match splintAnnError "@\*/" +syn cluster cCommentGroup add=splintAnnError +syn match splintAnnError2 "[^@]\*/"hs=s+1 contained +syn region splintAnnotation start="/\*@" end="@\*/" contains=@splintAnnotElem,cType keepend +syn match splintShortAnn "/\*@\*/" +syn cluster splintAnnotElem contains=splintStateAnnot,splintSpecialAnnot,splintSpecTag,splintModifies,splintRequires,splintGlobals,splintGlobitem,splintGlobannot,splintWarning,splintModitem,splintIter,splintConst,splintAlt,splintType,splintGlobalType,splintMemMgm,splintAlias,splintExposure,splintDefState,splintGlobState,splintNullState,splintNullPred,splintExit,splintExec,splintSef,splintDecl,splintCase,splintBreak,splintUnreach,splintSpecFunc,splintErrSupp,splintTypeAcc,splintMacro,splintSpecType,splintAnnError2,splintFlagExpr +syn cluster splintAllStuff contains=@splintAnnotElem,splintFlag,splintGlobalFlag +syn cluster cParenGroup add=@splintAllStuff +syn cluster cPreProcGroup add=@splintAllStuff +syn cluster cMultiGroup add=@splintAllStuff + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link splintShortAnn splintAnnotation +hi def link splintAnnotation Comment +hi def link splintAnnError splintError +hi def link splintAnnError2 splintError +hi def link splintFlag SpecialComment +hi def link splintGlobalFlag splintError +hi def link splintSpecialAnnot splintAnnKey +hi def link splintStateAnnot splintAnnKey +hi def link splintSpecTag splintAnnKey +hi def link splintModifies splintAnnKey +hi def link splintRequires splintAnnKey +hi def link splintGlobals splintAnnKey +hi def link splintGlobitem Constant +hi def link splintGlobannot splintAnnKey +hi def link splintWarning splintAnnKey +hi def link splintModitem Constant +hi def link splintIter splintAnnKey +hi def link splintConst splintAnnKey +hi def link splintAlt splintAnnKey +hi def link splintType splintAnnKey +hi def link splintGlobalType splintAnnKey +hi def link splintMemMgm splintAnnKey +hi def link splintAlias splintAnnKey +hi def link splintExposure splintAnnKey +hi def link splintDefState splintAnnKey +hi def link splintGlobState splintAnnKey +hi def link splintNullState splintAnnKey +hi def link splintNullPred splintAnnKey +hi def link splintExit splintAnnKey +hi def link splintExec splintAnnKey +hi def link splintSef splintAnnKey +hi def link splintDecl splintAnnKey +hi def link splintCase splintAnnKey +hi def link splintBreak splintAnnKey +hi def link splintUnreach splintAnnKey +hi def link splintSpecFunc splintAnnKey +hi def link splintErrSupp splintAnnKey +hi def link splintTypeAcc splintAnnKey +hi def link splintMacro splintAnnKey +hi def link splintSpecType splintAnnKey +hi def link splintAnnKey Type +hi def link splintError Error + + +let b:current_syntax = "splint" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/spup.vim b/git/usr/share/vim/vim92/syntax/spup.vim new file mode 100644 index 0000000000000000000000000000000000000000..222caa779e1f8207a17a09b08621192fbd7f0364 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/spup.vim @@ -0,0 +1,269 @@ +" Vim syntax file +" Language: Speedup, plant simulator from AspenTech +" Maintainer: Stefan.Schwarzer +" URL: http://www.ndh.net/home/sschwarzer/download/spup.vim +" Last Change: 2012 Feb 03 by Thilo Six +" Filename: spup.vim + +" Bugs +" - in the appropriate sections keywords are always highlighted +" even if they are not used with the appropriate meaning; +" example: in +" MODEL demonstration +" TYPE +" *area AS area +" both "area" are highlighted as spupType. +" +" If you encounter problems or have questions or suggestions, mail me + +" Remove old syntax stuff +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" don't highlight several keywords like subsections +"let strict_subsections = 1 + +" highlight types usually found in DECLARE section +if !exists("highlight_types") + let highlight_types = 1 +endif + +" one line comment syntax (# comments) +" 1. allow appended code after comment, do not complain +" 2. show code beginning with the second # as an error +" 3. show whole lines with more than one # as an error +if !exists("oneline_comments") + let oneline_comments = 2 +endif + +" Speedup SECTION regions +syn case ignore +syn region spupCdi matchgroup=spupSection start="^CDI" end="^\*\*\*\*" contains=spupCdiSubs,@spupOrdinary +syn region spupConditions matchgroup=spupSection start="^CONDITIONS" end="^\*\*\*\*" contains=spupConditionsSubs,@spupOrdinary,spupConditional,spupOperator,spupCode +syn region spupDeclare matchgroup=spupSection start="^DECLARE" end="^\*\*\*\*" contains=spupDeclareSubs,@spupOrdinary,spupTypes,spupCode +syn region spupEstimation matchgroup=spupSection start="^ESTIMATION" end="^\*\*\*\*" contains=spupEstimationSubs,@spupOrdinary +syn region spupExternal matchgroup=spupSection start="^EXTERNAL" end="^\*\*\*\*" contains=spupExternalSubs,@spupOrdinary +syn region spupFlowsheet matchgroup=spupSection start="^FLOWSHEET" end="^\*\*\*\*" contains=spupFlowsheetSubs,@spupOrdinary,spupStreams,@spupTextproc +syn region spupFunction matchgroup=spupSection start="^FUNCTION" end="^\*\*\*\*" contains=spupFunctionSubs,@spupOrdinary,spupHelp,spupCode,spupTypes +syn region spupGlobal matchgroup=spupSection start="^GLOBAL" end="^\*\*\*\*" contains=spupGlobalSubs,@spupOrdinary +syn region spupHomotopy matchgroup=spupSection start="^HOMOTOPY" end="^\*\*\*\*" contains=spupHomotopySubs,@spupOrdinary +syn region spupMacro matchgroup=spupSection start="^MACRO" end="^\*\*\*\*" contains=spupMacroSubs,@spupOrdinary,@spupTextproc,spupTypes,spupStreams,spupOperator +syn region spupModel matchgroup=spupSection start="^MODEL" end="^\*\*\*\*" contains=spupModelSubs,@spupOrdinary,spupConditional,spupOperator,spupTypes,spupStreams,@spupTextproc,spupHelp +syn region spupOperation matchgroup=spupSection start="^OPERATION" end="^\*\*\*\*" contains=spupOperationSubs,@spupOrdinary,@spupTextproc +syn region spupOptions matchgroup=spupSection start="^OPTIONS" end="^\*\*\*\*" contains=spupOptionsSubs,@spupOrdinary +syn region spupProcedure matchgroup=spupSection start="^PROCEDURE" end="^\*\*\*\*" contains=spupProcedureSubs,@spupOrdinary,spupHelp,spupCode,spupTypes +syn region spupProfiles matchgroup=spupSection start="^PROFILES" end="^\*\*\*\*" contains=@spupOrdinary,@spupTextproc +syn region spupReport matchgroup=spupSection start="^REPORT" end="^\*\*\*\*" contains=spupReportSubs,@spupOrdinary,spupHelp,@spupTextproc +syn region spupTitle matchgroup=spupSection start="^TITLE" end="^\*\*\*\*" contains=spupTitleSubs,spupComment,spupConstant,spupError +syn region spupUnit matchgroup=spupSection start="^UNIT" end="^\*\*\*\*" contains=spupUnitSubs,@spupOrdinary + +" Subsections +syn keyword spupCdiSubs INPUT FREE OUTPUT LINEARTIME MINNONZERO CALCULATE FILES SCALING contained +syn keyword spupDeclareSubs TYPE STREAM contained +syn keyword spupEstimationSubs ESTIMATE SSEXP DYNEXP RESULT contained +syn keyword spupExternalSubs TRANSMIT RECEIVE contained +syn keyword spupFlowsheetSubs STREAM contained +syn keyword spupFunctionSubs INPUT OUTPUT contained +syn keyword spupGlobalSubs VARIABLES MAXIMIZE MINIMIZE CONSTRAINT contained +syn keyword spupHomotopySubs VARY OPTIONS contained +syn keyword spupMacroSubs MODEL FLOWSHEET contained +syn keyword spupModelSubs CATEGORY SET TYPE STREAM EQUATION PROCEDURE contained +syn keyword spupOperationSubs SET PRESET INITIAL SSTATE FREE contained +syn keyword spupOptionsSubs ROUTINES TRANSLATE EXECUTION contained +syn keyword spupProcedureSubs INPUT OUTPUT SPACE PRECALL POSTCALL DERIVATIVE STREAM contained +" no subsections for Profiles +syn keyword spupReportSubs SET INITIAL FIELDS FIELDMARK DISPLAY WITHIN contained +syn keyword spupUnitSubs ROUTINES SET contained + +" additional keywords for subsections +if !exists( "strict_subsections" ) + syn keyword spupConditionsSubs STOP PRINT contained + syn keyword spupDeclareSubs UNIT SET COMPONENTS THERMO OPTIONS contained + syn keyword spupEstimationSubs VARY MEASURE INITIAL contained + syn keyword spupFlowsheetSubs TYPE FEED PRODUCT INPUT OUTPUT CONNECTION OF IS contained + syn keyword spupMacroSubs CONNECTION STREAM SET INPUT OUTPUT OF IS FEED PRODUCT TYPE contained + syn keyword spupModelSubs AS ARRAY OF INPUT OUTPUT CONNECTION contained + syn keyword spupOperationSubs WITHIN contained + syn keyword spupReportSubs LEFT RIGHT CENTER CENTRE UOM TIME DATE VERSION RELDATE contained + syn keyword spupUnitSubs IS A contained +endif + +" Speedup data types +if exists( "highlight_types" ) + syn keyword spupTypes act_coeff_liq area coefficient concentration contained + syn keyword spupTypes control_signal cond_liq cond_vap cp_mass_liq contained + syn keyword spupTypes cp_mol_liq cp_mol_vap cv_mol_liq cv_mol_vap contained + syn keyword spupTypes diffus_liq diffus_vap delta_p dens_mass contained + syn keyword spupTypes dens_mass_sol dens_mass_liq dens_mass_vap dens_mol contained + syn keyword spupTypes dens_mol_sol dens_mol_liq dens_mol_vap enthflow contained + syn keyword spupTypes enth_mass enth_mass_liq enth_mass_vap enth_mol contained + syn keyword spupTypes enth_mol_sol enth_mol_liq enth_mol_vap entr_mol contained + syn keyword spupTypes entr_mol_sol entr_mol_liq entr_mol_vap fraction contained + syn keyword spupTypes flow_mass flow_mass_liq flow_mass_vap flow_mol contained + syn keyword spupTypes flow_mol_vap flow_mol_liq flow_vol flow_vol_vap contained + syn keyword spupTypes flow_vol_liq fuga_vap fuga_liq fuga_sol contained + syn keyword spupTypes gibb_mol_sol heat_react heat_trans_coeff contained + syn keyword spupTypes holdup_heat holdup_heat_liq holdup_heat_vap contained + syn keyword spupTypes holdup_mass holdup_mass_liq holdup_mass_vap contained + syn keyword spupTypes holdup_mol holdup_mol_liq holdup_mol_vap k_value contained + syn keyword spupTypes length length_delta length_short liqfraction contained + syn keyword spupTypes liqmassfraction mass massfraction molefraction contained + syn keyword spupTypes molweight moment_inertia negative notype percent contained + syn keyword spupTypes positive pressure press_diff press_drop press_rise contained + syn keyword spupTypes ratio reaction reaction_mass rotation surf_tens contained + syn keyword spupTypes temperature temperature_abs temp_diff temp_drop contained + syn keyword spupTypes temp_rise time vapfraction vapmassfraction contained + syn keyword spupTypes velocity visc_liq visc_vap volume zmom_rate contained + syn keyword spupTypes seg_rate smom_rate tmom_rate zmom_mass seg_mass contained + syn keyword spupTypes smom_mass tmom_mass zmom_holdup seg_holdup contained + syn keyword spupTypes smom_holdup tmom_holdup contained +endif + +" stream types +syn keyword spupStreams mainstream vapour liquid contained + +" "conditional" keywords +syn keyword spupConditional IF THEN ELSE ENDIF contained +" Operators, symbols etc. +syn keyword spupOperator AND OR NOT contained +syn match spupSymbol "[,\-+=:;*/\"<>@%()]" contained +syn match spupSpecial "[&\$?]" contained +" Surprisingly, Speedup allows no unary + instead of the - +syn match spupError "[(=+\-*/]\s*+\d\+\([ed][+-]\=\d\+\)\=\>"lc=1 contained +syn match spupError "[(=+\-*/]\s*+\d\+\.\([ed][+-]\=\d\+\)\=\>"lc=1 contained +syn match spupError "[(=+\-*/]\s*+\d*\.\d\+\([ed][+-]\=\d\+\)\=\>"lc=1 contained +" String +syn region spupString start=+"+ end=+"+ oneline contained +syn region spupString start=+'+ end=+'+ oneline contained +" Identifier +syn match spupIdentifier "\<[a-z][a-z0-9_]*\>" contained +" Textprocessor directives +syn match spupTextprocGeneric "?[a-z][a-z0-9_]*\>" contained +syn region spupTextprocError matchgroup=spupTextprocGeneric start="?ERROR" end="?END"he=s-1 contained +" Number, without decimal point +syn match spupNumber "-\=\d\+\([ed][+-]\=\d\+\)\=" contained +" Number, allows 1. before exponent +syn match spupNumber "-\=\d\+\.\([ed][+-]\=\d\+\)\=" contained +" Number allows .1 before exponent +syn match spupNumber "-\=\d*\.\d\+\([ed][+-]\=\d\+\)\=" contained +" Help subsections +syn region spupHelp start="^HELP"hs=e+1 end="^\$ENDHELP"he=s-1 contained +" Fortran code +syn region spupCode start="^CODE"hs=e+1 end="^\$ENDCODE"he=s-1 contained +" oneline comments +if oneline_comments > 3 + oneline_comments = 2 " default +endif +if oneline_comments == 1 + syn match spupComment "#[^#]*#\=" +elseif oneline_comments == 2 + syn match spupError "#.*$" + syn match spupComment "#[^#]*" nextgroup=spupError +elseif oneline_comments == 3 + syn match spupComment "#[^#]*" + syn match spupError "#[^#]*#.*" +endif +" multiline comments +syn match spupOpenBrace "{" contained +syn match spupError "}" +syn region spupComment matchgroup=spupComment2 start="{" end="}" keepend contains=spupOpenBrace + +syn cluster spupOrdinary contains=spupNumber,spupIdentifier,spupSymbol +syn cluster spupOrdinary add=spupError,spupString,spupComment +syn cluster spupTextproc contains=spupTextprocGeneric,spupTextprocError + +" define synchronizing; especially OPERATION sections can become very large +syn sync clear +syn sync minlines=100 +syn sync maxlines=500 + +syn sync match spupSyncOperation grouphere spupOperation "^OPERATION" +syn sync match spupSyncCdi grouphere spupCdi "^CDI" +syn sync match spupSyncConditions grouphere spupConditions "^CONDITIONS" +syn sync match spupSyncDeclare grouphere spupDeclare "^DECLARE" +syn sync match spupSyncEstimation grouphere spupEstimation "^ESTIMATION" +syn sync match spupSyncExternal grouphere spupExternal "^EXTERNAL" +syn sync match spupSyncFlowsheet grouphere spupFlowsheet "^FLOWSHEET" +syn sync match spupSyncFunction grouphere spupFunction "^FUNCTION" +syn sync match spupSyncGlobal grouphere spupGlobal "^GLOBAL" +syn sync match spupSyncHomotopy grouphere spupHomotopy "^HOMOTOPY" +syn sync match spupSyncMacro grouphere spupMacro "^MACRO" +syn sync match spupSyncModel grouphere spupModel "^MODEL" +syn sync match spupSyncOperation grouphere spupOperation "^OPERATION" +syn sync match spupSyncOptions grouphere spupOptions "^OPTIONS" +syn sync match spupSyncProcedure grouphere spupProcedure "^PROCEDURE" +syn sync match spupSyncProfiles grouphere spupProfiles "^PROFILES" +syn sync match spupSyncReport grouphere spupReport "^REPORT" +syn sync match spupSyncTitle grouphere spupTitle "^TITLE" +syn sync match spupSyncUnit grouphere spupUnit "^UNIT" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link spupCdi spupSection +hi def link spupConditions spupSection +hi def link spupDeclare spupSection +hi def link spupEstimation spupSection +hi def link spupExternal spupSection +hi def link spupFlowsheet spupSection +hi def link spupFunction spupSection +hi def link spupGlobal spupSection +hi def link spupHomotopy spupSection +hi def link spupMacro spupSection +hi def link spupModel spupSection +hi def link spupOperation spupSection +hi def link spupOptions spupSection +hi def link spupProcedure spupSection +hi def link spupProfiles spupSection +hi def link spupReport spupSection +hi def link spupTitle spupConstant " this is correct, truly ;) +hi def link spupUnit spupSection + +hi def link spupCdiSubs spupSubs +hi def link spupConditionsSubs spupSubs +hi def link spupDeclareSubs spupSubs +hi def link spupEstimationSubs spupSubs +hi def link spupExternalSubs spupSubs +hi def link spupFlowsheetSubs spupSubs +hi def link spupFunctionSubs spupSubs +hi def link spupHomotopySubs spupSubs +hi def link spupMacroSubs spupSubs +hi def link spupModelSubs spupSubs +hi def link spupOperationSubs spupSubs +hi def link spupOptionsSubs spupSubs +hi def link spupProcedureSubs spupSubs +hi def link spupReportSubs spupSubs +hi def link spupUnitSubs spupSubs + +hi def link spupCode Normal +hi def link spupComment Comment +hi def link spupComment2 spupComment +hi def link spupConditional Statement +hi def link spupConstant Constant +hi def link spupError Error +hi def link spupHelp Normal +hi def link spupIdentifier Identifier +hi def link spupNumber Constant +hi def link spupOperator Special +hi def link spupOpenBrace spupError +hi def link spupSection Statement +hi def link spupSpecial spupTextprocGeneric +hi def link spupStreams Type +hi def link spupString Constant +hi def link spupSubs Statement +hi def link spupSymbol Special +hi def link spupTextprocError Normal +hi def link spupTextprocGeneric PreProc +hi def link spupTypes Type + + +let b:current_syntax = "spup" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim:ts=8 diff --git a/git/usr/share/vim/vim92/syntax/spyce.vim b/git/usr/share/vim/vim92/syntax/spyce.vim new file mode 100644 index 0000000000000000000000000000000000000000..169de199dc0ed09208805705f27e2dfaa3548b99 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/spyce.vim @@ -0,0 +1,104 @@ +" Vim syntax file +" Language: SPYCE +" Maintainer: Rimon Barr +" URL: http://spyce.sourceforge.net +" Last Change: 2009 Nov 11 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" we define it here so that included files can test for it +if !exists("main_syntax") + let main_syntax='spyce' +endif + +" Read the HTML syntax to start with +let b:did_indent = 1 " don't perform HTML indentation! +let html_no_rendering = 1 " do not render ,, etc... +runtime! syntax/html.vim +unlet b:current_syntax +syntax spell default " added by Bram + +" include python +syn include @Python :p:h/python.vim +syn include @Html :p:h/html.vim + +" spyce definitions +syn keyword spyceDirectiveKeyword include compact module import contained +syn keyword spyceDirectiveArg name names file contained +syn region spyceDirectiveString start=+"+ end=+"+ contained +syn match spyceDirectiveValue "=[\t ]*[^'", \t>][^, \t>]*"hs=s+1 contained + +syn match spyceBeginErrorS ,\[\[, +syn match spyceBeginErrorA ,<%, +syn cluster spyceBeginError contains=spyceBeginErrorS,spyceBeginErrorA +syn match spyceEndErrorS ,\]\], +syn match spyceEndErrorA ,%>, +syn cluster spyceEndError contains=spyceEndErrorS,spyceEndErrorA + +syn match spyceEscBeginS ,\\\[\[, +syn match spyceEscBeginA ,\\<%, +syn cluster spyceEscBegin contains=spyceEscBeginS,spyceEscBeginA +syn match spyceEscEndS ,\\\]\], +syn match spyceEscEndA ,\\%>, +syn cluster spyceEscEnd contains=spyceEscEndS,spyceEscEndA +syn match spyceEscEndCommentS ,--\\\]\], +syn match spyceEscEndCommentA ,--\\%>, +syn cluster spyceEscEndComment contains=spyceEscEndCommentS,spyceEscEndCommentA + +syn region spyceStmtS matchgroup=spyceStmtDelim start=,\[\[, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceStmtA matchgroup=spyceStmtDelim start=,<%, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceChunkS matchgroup=spyceChunkDelim start=,\[\[\\, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceChunkA matchgroup=spyceChunkDelim start=,<%\\, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceEvalS matchgroup=spyceEvalDelim start=,\[\[=, end=,\]\], contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceEvalA matchgroup=spyceEvalDelim start=,<%=, end=,%>, contains=@Python,spyceLambdaS,spyceLambdaA,spyceBeginError keepend +syn region spyceDirectiveS matchgroup=spyceDelim start=,\[\[\., end=,\]\], contains=spyceBeginError,spyceDirectiveKeyword,spyceDirectiveArg,spyceDirectiveValue,spyceDirectiveString keepend +syn region spyceDirectiveA matchgroup=spyceDelim start=,<%@, end=,%>, contains=spyceBeginError,spyceDirectiveKeyword,spyceDirectiveArg,spyceDirectiveValue,spyceDirectiveString keepend +syn region spyceCommentS matchgroup=spyceCommentDelim start=,\[\[--, end=,--\]\], +syn region spyceCommentA matchgroup=spyceCommentDelim start=,<%--, end=,--%>, +syn region spyceLambdaS matchgroup=spyceLambdaDelim start=,\[\[spy!\?, end=,\]\], contains=@Html,@spyce extend +syn region spyceLambdaA matchgroup=spyceLambdaDelim start=,<%spy!\?, end=,%>, contains=@Html,@spyce extend + +syn cluster spyce contains=spyceStmtS,spyceStmtA,spyceChunkS,spyceChunkA,spyceEvalS,spyceEvalA,spyceCommentS,spyceCommentA,spyceDirectiveS,spyceDirectiveA + +syn cluster htmlPreproc contains=@spyce + +hi link spyceDirectiveKeyword Special +hi link spyceDirectiveArg Type +hi link spyceDirectiveString String +hi link spyceDirectiveValue String + +hi link spyceDelim Special +hi link spyceStmtDelim spyceDelim +hi link spyceChunkDelim spyceDelim +hi link spyceEvalDelim spyceDelim +hi link spyceLambdaDelim spyceDelim +hi link spyceCommentDelim Comment + +hi link spyceBeginErrorS Error +hi link spyceBeginErrorA Error +hi link spyceEndErrorS Error +hi link spyceEndErrorA Error + +hi link spyceStmtS spyce +hi link spyceStmtA spyce +hi link spyceChunkS spyce +hi link spyceChunkA spyce +hi link spyceEvalS spyce +hi link spyceEvalA spyce +hi link spyceDirectiveS spyce +hi link spyceDirectiveA spyce +hi link spyceCommentS Comment +hi link spyceCommentA Comment +hi link spyceLambdaS Normal +hi link spyceLambdaA Normal + +hi link spyce Statement + +let b:current_syntax = "spyce" +if main_syntax == 'spyce' + unlet main_syntax +endif + diff --git a/git/usr/share/vim/vim92/syntax/sql.vim b/git/usr/share/vim/vim92/syntax/sql.vim new file mode 100644 index 0000000000000000000000000000000000000000..6de3f4a5c0c301ed12f90d8e44947b0ae30eca28 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sql.vim @@ -0,0 +1,36 @@ +" Vim syntax file loader +" Language: SQL +" Maintainer: David Fishburn +" Last Change: Thu Sep 15 2005 10:30:02 AM +" Version: 1.0 + +" Description: Checks for a: +" buffer local variable, +" global variable, +" If the above exist, it will source the type specified. +" If none exist, it will source the default sql.vim file. +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Default to the standard Vim distribution file +let filename = 'sqloracle' + +" Check for overrides. Buffer variables have the highest priority. +if exists("b:sql_type_override") + " Check the runtimepath to see if the file exists + if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != '' + let filename = b:sql_type_override + endif +elseif exists("g:sql_type_default") + if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != '' + let filename = g:sql_type_default + endif +endif + +" Source the appropriate file +exec 'runtime syntax/'.filename.'.vim' + +" vim:sw=4: diff --git a/git/usr/share/vim/vim92/syntax/sqlanywhere.vim b/git/usr/share/vim/vim92/syntax/sqlanywhere.vim new file mode 100644 index 0000000000000000000000000000000000000000..e91a99de658846da47c486c8c46001470765b0e0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqlanywhere.vim @@ -0,0 +1,905 @@ +" Vim syntax file +" Language: SQL, Adaptive Server Anywhere +" Maintainer: David Fishburn +" Last Change: 2013 May 13 +" Version: 16.0.0 + +" Description: Updated to Adaptive Server Anywhere 16.0.0 +" Updated to Adaptive Server Anywhere 12.0.1 (including spatial data) +" Updated to Adaptive Server Anywhere 11.0.1 +" Updated to Adaptive Server Anywhere 10.0.1 +" Updated to Adaptive Server Anywhere 9.0.2 +" Updated to Adaptive Server Anywhere 9.0.1 +" Updated to Adaptive Server Anywhere 9.0.0 +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" The SQL reserved words, defined as keywords. + +syn keyword sqlSpecial false null true + +" common functions +syn keyword sqlFunction abs argn avg bintohex bintostr +syn keyword sqlFunction byte_length byte_substr char_length +syn keyword sqlFunction compare count count_big datalength date +syn keyword sqlFunction date_format dateadd datediff datename +syn keyword sqlFunction datepart day dayname days debug_eng +syn keyword sqlFunction dense_rank density dialect difference +syn keyword sqlFunction dow estimate estimate_source evaluate +syn keyword sqlFunction experience_estimate explanation +syn keyword sqlFunction get_identity graphical_plan +syn keyword sqlFunction graphical_ulplan greater grouping +syn keyword sqlFunction hextobin hextoint hour hours identity +syn keyword sqlFunction ifnull index_estimate inttohex isdate +syn keyword sqlFunction isencrypted isnull isnumeric +syn keyword sqlFunction lang_message length lesser like_end +syn keyword sqlFunction like_start list long_ulplan lookup max +syn keyword sqlFunction min minute minutes month monthname +syn keyword sqlFunction months newid now nullif number +syn keyword sqlFunction percent_rank plan quarter rand rank +syn keyword sqlFunction regexp_compile regexp_compile_patindex +syn keyword sqlFunction remainder rewrite rowid second seconds +syn keyword sqlFunction short_ulplan similar sortkey soundex +syn keyword sqlFunction stddev stack_trace str string strtobin strtouuid stuff +syn keyword sqlFunction subpartition substr substring sum switchoffset sysdatetimeoffset +syn keyword sqlFunction textptr todate todatetimeoffset today totimestamp traceback transactsql +syn keyword sqlFunction ts_index_statistics ts_table_statistics +syn keyword sqlFunction tsequal ulplan user_id user_name utc_now +syn keyword sqlFunction uuidtostr varexists variance watcomsql +syn keyword sqlFunction weeks wsql_state year years ymd + +" 9.0.1 functions +syn keyword sqlFunction acos asin atan atn2 cast ceiling convert cos cot +syn keyword sqlFunction char_length coalesce dateformat datetime degrees exp +syn keyword sqlFunction floor getdate insertstr +syn keyword sqlFunction log log10 lower mod pi power +syn keyword sqlFunction property radians replicate round sign sin +syn keyword sqlFunction sqldialect tan truncate truncnum +syn keyword sqlFunction base64_encode base64_decode +syn keyword sqlFunction hash compress decompress encrypt decrypt + +" 11.0.1 functions +syn keyword sqlFunction connection_extended_property text_handle_vector_match +syn keyword sqlFunction read_client_file write_client_file + +" 12.0.1 functions +syn keyword sqlFunction http_response_header + +" string functions +syn keyword sqlFunction ascii char left ltrim repeat +syn keyword sqlFunction space right rtrim trim lcase ucase +syn keyword sqlFunction locate charindex patindex replace +syn keyword sqlFunction errormsg csconvert + +" property functions +syn keyword sqlFunction db_id db_name property_name +syn keyword sqlFunction property_description property_number +syn keyword sqlFunction next_connection next_database property +syn keyword sqlFunction connection_property db_property db_extended_property +syn keyword sqlFunction event_parmeter event_condition event_condition_name + +" sa_ procedures +syn keyword sqlFunction sa_add_index_consultant_analysis +syn keyword sqlFunction sa_add_workload_query +syn keyword sqlFunction sa_app_deregister +syn keyword sqlFunction sa_app_get_infoStr +syn keyword sqlFunction sa_app_get_status +syn keyword sqlFunction sa_app_register +syn keyword sqlFunction sa_app_registration_unlock +syn keyword sqlFunction sa_app_set_infoStr +syn keyword sqlFunction sa_audit_string +syn keyword sqlFunction sa_check_commit +syn keyword sqlFunction sa_checkpoint_execute +syn keyword sqlFunction sa_conn_activity +syn keyword sqlFunction sa_conn_compression_info +syn keyword sqlFunction sa_conn_deregister +syn keyword sqlFunction sa_conn_info +syn keyword sqlFunction sa_conn_properties +syn keyword sqlFunction sa_conn_properties_by_conn +syn keyword sqlFunction sa_conn_properties_by_name +syn keyword sqlFunction sa_conn_register +syn keyword sqlFunction sa_conn_set_status +syn keyword sqlFunction sa_create_analysis_from_query +syn keyword sqlFunction sa_db_info +syn keyword sqlFunction sa_db_properties +syn keyword sqlFunction sa_disable_auditing_type +syn keyword sqlFunction sa_disable_index +syn keyword sqlFunction sa_disk_free_space +syn keyword sqlFunction sa_enable_auditing_type +syn keyword sqlFunction sa_enable_index +syn keyword sqlFunction sa_end_forward_to +syn keyword sqlFunction sa_eng_properties +syn keyword sqlFunction sa_event_schedules +syn keyword sqlFunction sa_exec_script +syn keyword sqlFunction sa_flush_cache +syn keyword sqlFunction sa_flush_statistics +syn keyword sqlFunction sa_forward_to +syn keyword sqlFunction sa_get_dtt +syn keyword sqlFunction sa_get_histogram +syn keyword sqlFunction sa_get_request_profile +syn keyword sqlFunction sa_get_request_profile_sub +syn keyword sqlFunction sa_get_request_times +syn keyword sqlFunction sa_get_server_messages +syn keyword sqlFunction sa_get_simulated_scale_factors +syn keyword sqlFunction sa_get_workload_capture_status +syn keyword sqlFunction sa_index_density +syn keyword sqlFunction sa_index_levels +syn keyword sqlFunction sa_index_statistics +syn keyword sqlFunction sa_internal_alter_index_ability +syn keyword sqlFunction sa_internal_create_analysis_from_query +syn keyword sqlFunction sa_internal_disk_free_space +syn keyword sqlFunction sa_internal_get_dtt +syn keyword sqlFunction sa_internal_get_histogram +syn keyword sqlFunction sa_internal_get_request_times +syn keyword sqlFunction sa_internal_get_simulated_scale_factors +syn keyword sqlFunction sa_internal_get_workload_capture_status +syn keyword sqlFunction sa_internal_index_density +syn keyword sqlFunction sa_internal_index_levels +syn keyword sqlFunction sa_internal_index_statistics +syn keyword sqlFunction sa_internal_java_loaded_classes +syn keyword sqlFunction sa_internal_locks +syn keyword sqlFunction sa_internal_pause_workload_capture +syn keyword sqlFunction sa_internal_procedure_profile +syn keyword sqlFunction sa_internal_procedure_profile_summary +syn keyword sqlFunction sa_internal_read_backup_history +syn keyword sqlFunction sa_internal_recommend_indexes +syn keyword sqlFunction sa_internal_reset_identity +syn keyword sqlFunction sa_internal_resume_workload_capture +syn keyword sqlFunction sa_internal_start_workload_capture +syn keyword sqlFunction sa_internal_stop_index_consultant +syn keyword sqlFunction sa_internal_stop_workload_capture +syn keyword sqlFunction sa_internal_table_fragmentation +syn keyword sqlFunction sa_internal_table_page_usage +syn keyword sqlFunction sa_internal_table_stats +syn keyword sqlFunction sa_internal_virtual_sysindex +syn keyword sqlFunction sa_internal_virtual_sysixcol +syn keyword sqlFunction sa_java_loaded_classes +syn keyword sqlFunction sa_jdk_version +syn keyword sqlFunction sa_locks +syn keyword sqlFunction sa_make_object +syn keyword sqlFunction sa_pause_workload_capture +syn keyword sqlFunction sa_proc_debug_attach_to_connection +syn keyword sqlFunction sa_proc_debug_connect +syn keyword sqlFunction sa_proc_debug_detach_from_connection +syn keyword sqlFunction sa_proc_debug_disconnect +syn keyword sqlFunction sa_proc_debug_get_connection_name +syn keyword sqlFunction sa_proc_debug_release_connection +syn keyword sqlFunction sa_proc_debug_request +syn keyword sqlFunction sa_proc_debug_version +syn keyword sqlFunction sa_proc_debug_wait_for_connection +syn keyword sqlFunction sa_procedure_profile +syn keyword sqlFunction sa_procedure_profile_summary +syn keyword sqlFunction sa_read_backup_history +syn keyword sqlFunction sa_recommend_indexes +syn keyword sqlFunction sa_recompile_views +syn keyword sqlFunction sa_remove_index_consultant_analysis +syn keyword sqlFunction sa_remove_index_consultant_workload +syn keyword sqlFunction sa_reset_identity +syn keyword sqlFunction sa_resume_workload_capture +syn keyword sqlFunction sa_server_option +syn keyword sqlFunction sa_set_simulated_scale_factor +syn keyword sqlFunction sa_setremoteuser +syn keyword sqlFunction sa_setsubscription +syn keyword sqlFunction sa_start_recording_commits +syn keyword sqlFunction sa_start_workload_capture +syn keyword sqlFunction sa_statement_text +syn keyword sqlFunction sa_stop_index_consultant +syn keyword sqlFunction sa_stop_recording_commits +syn keyword sqlFunction sa_stop_workload_capture +syn keyword sqlFunction sa_sync +syn keyword sqlFunction sa_sync_sub +syn keyword sqlFunction sa_table_fragmentation +syn keyword sqlFunction sa_table_page_usage +syn keyword sqlFunction sa_table_stats +syn keyword sqlFunction sa_update_index_consultant_workload +syn keyword sqlFunction sa_validate +syn keyword sqlFunction sa_virtual_sysindex +syn keyword sqlFunction sa_virtual_sysixcol + +" sp_ procedures +syn keyword sqlFunction sp_addalias +syn keyword sqlFunction sp_addauditrecord +syn keyword sqlFunction sp_adddumpdevice +syn keyword sqlFunction sp_addgroup +syn keyword sqlFunction sp_addlanguage +syn keyword sqlFunction sp_addlogin +syn keyword sqlFunction sp_addmessage +syn keyword sqlFunction sp_addremotelogin +syn keyword sqlFunction sp_addsegment +syn keyword sqlFunction sp_addserver +syn keyword sqlFunction sp_addthreshold +syn keyword sqlFunction sp_addtype +syn keyword sqlFunction sp_adduser +syn keyword sqlFunction sp_auditdatabase +syn keyword sqlFunction sp_auditlogin +syn keyword sqlFunction sp_auditobject +syn keyword sqlFunction sp_auditoption +syn keyword sqlFunction sp_auditsproc +syn keyword sqlFunction sp_bindefault +syn keyword sqlFunction sp_bindmsg +syn keyword sqlFunction sp_bindrule +syn keyword sqlFunction sp_changedbowner +syn keyword sqlFunction sp_changegroup +syn keyword sqlFunction sp_checknames +syn keyword sqlFunction sp_checkperms +syn keyword sqlFunction sp_checkreswords +syn keyword sqlFunction sp_clearstats +syn keyword sqlFunction sp_column_privileges +syn keyword sqlFunction sp_columns +syn keyword sqlFunction sp_commonkey +syn keyword sqlFunction sp_configure +syn keyword sqlFunction sp_cursorinfo +syn keyword sqlFunction sp_databases +syn keyword sqlFunction sp_datatype_info +syn keyword sqlFunction sp_dboption +syn keyword sqlFunction sp_dbremap +syn keyword sqlFunction sp_depends +syn keyword sqlFunction sp_diskdefault +syn keyword sqlFunction sp_displaylogin +syn keyword sqlFunction sp_dropalias +syn keyword sqlFunction sp_dropdevice +syn keyword sqlFunction sp_dropgroup +syn keyword sqlFunction sp_dropkey +syn keyword sqlFunction sp_droplanguage +syn keyword sqlFunction sp_droplogin +syn keyword sqlFunction sp_dropmessage +syn keyword sqlFunction sp_dropremotelogin +syn keyword sqlFunction sp_dropsegment +syn keyword sqlFunction sp_dropserver +syn keyword sqlFunction sp_dropthreshold +syn keyword sqlFunction sp_droptype +syn keyword sqlFunction sp_dropuser +syn keyword sqlFunction sp_estspace +syn keyword sqlFunction sp_extendsegment +syn keyword sqlFunction sp_fkeys +syn keyword sqlFunction sp_foreignkey +syn keyword sqlFunction sp_getmessage +syn keyword sqlFunction sp_help +syn keyword sqlFunction sp_helpconstraint +syn keyword sqlFunction sp_helpdb +syn keyword sqlFunction sp_helpdevice +syn keyword sqlFunction sp_helpgroup +syn keyword sqlFunction sp_helpindex +syn keyword sqlFunction sp_helpjoins +syn keyword sqlFunction sp_helpkey +syn keyword sqlFunction sp_helplanguage +syn keyword sqlFunction sp_helplog +syn keyword sqlFunction sp_helpprotect +syn keyword sqlFunction sp_helpremotelogin +syn keyword sqlFunction sp_helpsegment +syn keyword sqlFunction sp_helpserver +syn keyword sqlFunction sp_helpsort +syn keyword sqlFunction sp_helptext +syn keyword sqlFunction sp_helpthreshold +syn keyword sqlFunction sp_helpuser +syn keyword sqlFunction sp_indsuspect +syn keyword sqlFunction sp_lock +syn keyword sqlFunction sp_locklogin +syn keyword sqlFunction sp_logdevice +syn keyword sqlFunction sp_login_environment +syn keyword sqlFunction sp_modifylogin +syn keyword sqlFunction sp_modifythreshold +syn keyword sqlFunction sp_monitor +syn keyword sqlFunction sp_password +syn keyword sqlFunction sp_pkeys +syn keyword sqlFunction sp_placeobject +syn keyword sqlFunction sp_primarykey +syn keyword sqlFunction sp_procxmode +syn keyword sqlFunction sp_recompile +syn keyword sqlFunction sp_remap +syn keyword sqlFunction sp_remote_columns +syn keyword sqlFunction sp_remote_exported_keys +syn keyword sqlFunction sp_remote_imported_keys +syn keyword sqlFunction sp_remote_pcols +syn keyword sqlFunction sp_remote_primary_keys +syn keyword sqlFunction sp_remote_procedures +syn keyword sqlFunction sp_remote_tables +syn keyword sqlFunction sp_remoteoption +syn keyword sqlFunction sp_rename +syn keyword sqlFunction sp_renamedb +syn keyword sqlFunction sp_reportstats +syn keyword sqlFunction sp_reset_tsql_environment +syn keyword sqlFunction sp_role +syn keyword sqlFunction sp_server_info +syn keyword sqlFunction sp_servercaps +syn keyword sqlFunction sp_serverinfo +syn keyword sqlFunction sp_serveroption +syn keyword sqlFunction sp_setlangalias +syn keyword sqlFunction sp_setreplicate +syn keyword sqlFunction sp_setrepproc +syn keyword sqlFunction sp_setreptable +syn keyword sqlFunction sp_spaceused +syn keyword sqlFunction sp_special_columns +syn keyword sqlFunction sp_sproc_columns +syn keyword sqlFunction sp_statistics +syn keyword sqlFunction sp_stored_procedures +syn keyword sqlFunction sp_syntax +syn keyword sqlFunction sp_table_privileges +syn keyword sqlFunction sp_tables +syn keyword sqlFunction sp_tsql_environment +syn keyword sqlFunction sp_tsql_feature_not_supported +syn keyword sqlFunction sp_unbindefault +syn keyword sqlFunction sp_unbindmsg +syn keyword sqlFunction sp_unbindrule +syn keyword sqlFunction sp_volchanged +syn keyword sqlFunction sp_who +syn keyword sqlFunction xp_scanf +syn keyword sqlFunction xp_sprintf + +" server functions +syn keyword sqlFunction col_length +syn keyword sqlFunction col_name +syn keyword sqlFunction index_col +syn keyword sqlFunction object_id +syn keyword sqlFunction object_name +syn keyword sqlFunction proc_role +syn keyword sqlFunction show_role +syn keyword sqlFunction xp_cmdshell +syn keyword sqlFunction xp_msver +syn keyword sqlFunction xp_read_file +syn keyword sqlFunction xp_real_cmdshell +syn keyword sqlFunction xp_real_read_file +syn keyword sqlFunction xp_real_sendmail +syn keyword sqlFunction xp_real_startmail +syn keyword sqlFunction xp_real_startsmtp +syn keyword sqlFunction xp_real_stopmail +syn keyword sqlFunction xp_real_stopsmtp +syn keyword sqlFunction xp_real_write_file +syn keyword sqlFunction xp_scanf +syn keyword sqlFunction xp_sendmail +syn keyword sqlFunction xp_sprintf +syn keyword sqlFunction xp_startmail +syn keyword sqlFunction xp_startsmtp +syn keyword sqlFunction xp_stopmail +syn keyword sqlFunction xp_stopsmtp +syn keyword sqlFunction xp_write_file + +" http functions +syn keyword sqlFunction http_header http_variable +syn keyword sqlFunction next_http_header next_http_response_header next_http_variable +syn keyword sqlFunction sa_set_http_header sa_set_http_option +syn keyword sqlFunction sa_http_variable_info sa_http_header_info + +" http functions 9.0.1 +syn keyword sqlFunction http_encode http_decode +syn keyword sqlFunction html_encode html_decode + +" XML function support +syn keyword sqlFunction openxml xmlelement xmlforest xmlgen xmlconcat xmlagg +syn keyword sqlFunction xmlattributes + +" Spatial Compatibility Functions +syn keyword sqlFunction ST_BdMPolyFromText +syn keyword sqlFunction ST_BdMPolyFromWKB +syn keyword sqlFunction ST_BdPolyFromText +syn keyword sqlFunction ST_BdPolyFromWKB +syn keyword sqlFunction ST_CPolyFromText +syn keyword sqlFunction ST_CPolyFromWKB +syn keyword sqlFunction ST_CircularFromTxt +syn keyword sqlFunction ST_CircularFromWKB +syn keyword sqlFunction ST_CompoundFromTxt +syn keyword sqlFunction ST_CompoundFromWKB +syn keyword sqlFunction ST_GeomCollFromTxt +syn keyword sqlFunction ST_GeomCollFromWKB +syn keyword sqlFunction ST_GeomFromText +syn keyword sqlFunction ST_GeomFromWKB +syn keyword sqlFunction ST_LineFromText +syn keyword sqlFunction ST_LineFromWKB +syn keyword sqlFunction ST_MCurveFromText +syn keyword sqlFunction ST_MCurveFromWKB +syn keyword sqlFunction ST_MLineFromText +syn keyword sqlFunction ST_MLineFromWKB +syn keyword sqlFunction ST_MPointFromText +syn keyword sqlFunction ST_MPointFromWKB +syn keyword sqlFunction ST_MPolyFromText +syn keyword sqlFunction ST_MPolyFromWKB +syn keyword sqlFunction ST_MSurfaceFromTxt +syn keyword sqlFunction ST_MSurfaceFromWKB +syn keyword sqlFunction ST_OrderingEquals +syn keyword sqlFunction ST_PointFromText +syn keyword sqlFunction ST_PointFromWKB +syn keyword sqlFunction ST_PolyFromText +syn keyword sqlFunction ST_PolyFromWKB +" Spatial Structural Methods +syn keyword sqlFunction ST_CoordDim +syn keyword sqlFunction ST_CurveN +syn keyword sqlFunction ST_Dimension +syn keyword sqlFunction ST_EndPoint +syn keyword sqlFunction ST_ExteriorRing +syn keyword sqlFunction ST_GeometryN +syn keyword sqlFunction ST_GeometryType +syn keyword sqlFunction ST_InteriorRingN +syn keyword sqlFunction ST_Is3D +syn keyword sqlFunction ST_IsClosed +syn keyword sqlFunction ST_IsEmpty +syn keyword sqlFunction ST_IsMeasured +syn keyword sqlFunction ST_IsRing +syn keyword sqlFunction ST_IsSimple +syn keyword sqlFunction ST_IsValid +syn keyword sqlFunction ST_NumCurves +syn keyword sqlFunction ST_NumGeometries +syn keyword sqlFunction ST_NumInteriorRing +syn keyword sqlFunction ST_NumPoints +syn keyword sqlFunction ST_PointN +syn keyword sqlFunction ST_StartPoint +"Spatial Computation +syn keyword sqlFunction ST_Length +syn keyword sqlFunction ST_Area +syn keyword sqlFunction ST_Centroid +syn keyword sqlFunction ST_Area +syn keyword sqlFunction ST_Centroid +syn keyword sqlFunction ST_IsWorld +syn keyword sqlFunction ST_Perimeter +syn keyword sqlFunction ST_PointOnSurface +syn keyword sqlFunction ST_Distance +" Spatial Input/Output +syn keyword sqlFunction ST_AsBinary +syn keyword sqlFunction ST_AsGML +syn keyword sqlFunction ST_AsGeoJSON +syn keyword sqlFunction ST_AsSVG +syn keyword sqlFunction ST_AsSVGAggr +syn keyword sqlFunction ST_AsText +syn keyword sqlFunction ST_AsWKB +syn keyword sqlFunction ST_AsWKT +syn keyword sqlFunction ST_AsXML +syn keyword sqlFunction ST_GeomFromBinary +syn keyword sqlFunction ST_GeomFromShape +syn keyword sqlFunction ST_GeomFromText +syn keyword sqlFunction ST_GeomFromWKB +syn keyword sqlFunction ST_GeomFromWKT +syn keyword sqlFunction ST_GeomFromXML +" Spatial Cast Methods +syn keyword sqlFunction ST_CurvePolyToPoly +syn keyword sqlFunction ST_CurveToLine +syn keyword sqlFunction ST_ToCircular +syn keyword sqlFunction ST_ToCompound +syn keyword sqlFunction ST_ToCurve +syn keyword sqlFunction ST_ToCurvePoly +syn keyword sqlFunction ST_ToGeomColl +syn keyword sqlFunction ST_ToLineString +syn keyword sqlFunction ST_ToMultiCurve +syn keyword sqlFunction ST_ToMultiLine +syn keyword sqlFunction ST_ToMultiPoint +syn keyword sqlFunction ST_ToMultiPolygon +syn keyword sqlFunction ST_ToMultiSurface +syn keyword sqlFunction ST_ToPoint +syn keyword sqlFunction ST_ToPolygon +syn keyword sqlFunction ST_ToSurface + +" Array functions 16.x +syn keyword sqlFunction array array_agg array_max_cardinality trim_array +syn keyword sqlFunction error_line error_message error_procedure +syn keyword sqlFunction error_sqlcode error_sqlstate error_stack_trace + + +" keywords +syn keyword sqlKeyword absolute accent access account action active activate add address admin +syn keyword sqlKeyword aes_decrypt after aggregate algorithm allow_dup_row allow allowed alter +syn keyword sqlKeyword always and angular ansi_substring any as append apply +syn keyword sqlKeyword arbiter array asc ascii ase +syn keyword sqlKeyword assign at atan2 atomic attended +syn keyword sqlKeyword audit auditing authentication authorization axis +syn keyword sqlKeyword autoincrement autostop batch bcp before +syn keyword sqlKeyword between bit_and bit_length bit_or bit_substr bit_xor +syn keyword sqlKeyword blank blanks block +syn keyword sqlKeyword both bottom unbounded breaker bufferpool +syn keyword sqlKeyword build bulk by byte bytes cache calibrate calibration +syn keyword sqlKeyword cancel capability cardinality cascade cast +syn keyword sqlKeyword catalog catch ceil change changes char char_convert +syn keyword sqlKeyword check checkpointlog checksum class classes client cmp +syn keyword sqlKeyword cluster clustered collation +syn keyword sqlKeyword column columns +syn keyword sqlKeyword command comments committed commitid comparisons +syn keyword sqlKeyword compatible component compressed compute computes +syn keyword sqlKeyword concat configuration confirm conflict connection +syn keyword sqlKeyword console consolidate consolidated +syn keyword sqlKeyword constraint constraints content +syn keyword sqlKeyword convert coordinate coordinator copy count count_set_bits +syn keyword sqlKeyword crc createtime critical cross cube cume_dist +syn keyword sqlKeyword current cursor data data database +syn keyword sqlKeyword current_timestamp current_user cycle +syn keyword sqlKeyword databases datatype dba dbfile +syn keyword sqlKeyword dbspace dbspaces dbspacename debug decoupled +syn keyword sqlKeyword decrypted default defaults default_dbspace deferred +syn keyword sqlKeyword definer definition +syn keyword sqlKeyword delay deleting delimited dependencies desc +syn keyword sqlKeyword description deterministic directory +syn keyword sqlKeyword disable disabled disallow distinct disksandbox disk_sandbox +syn keyword sqlKeyword dn do domain download duplicate +syn keyword sqlKeyword dsetpass dttm dynamic each earth editproc effective ejb +syn keyword sqlKeyword elimination ellipsoid else elseif +syn keyword sqlKeyword email empty enable encapsulated encrypted encryption end +syn keyword sqlKeyword encoding endif engine environment erase error errors escape escapes event +syn keyword sqlKeyword event_parameter every exception exclude excluded exclusive exec +syn keyword sqlKeyword existing exists expanded expiry express exprtype extended_property +syn keyword sqlKeyword external externlogin factor failover false +syn keyword sqlKeyword fastfirstrow feature fieldproc file files filler +syn keyword sqlKeyword fillfactor final finish first first_keyword first_value +syn keyword sqlKeyword flattening +syn keyword sqlKeyword following force foreign format forjson forxml forxml_sep fp frame +syn keyword sqlKeyword free freepage french fresh full function +syn keyword sqlKeyword gb generic get_bit go global grid +syn keyword sqlKeyword group handler hash having header hexadecimal +syn keyword sqlKeyword hidden high history hg hng hold holdlock host +syn keyword sqlKeyword hours http_body http_session_timeout id identified identity ignore +syn keyword sqlKeyword ignore_dup_key ignore_dup_row immediate +syn keyword sqlKeyword in inactiv inactive inactivity included increment incremental +syn keyword sqlKeyword index index_enabled index_lparen indexonly info information +syn keyword sqlKeyword inheritance inline inner inout insensitive inserting +syn keyword sqlKeyword instead +syn keyword sqlKeyword internal intersection into introduced inverse invoker +syn keyword sqlKeyword iq is isolation +syn keyword sqlKeyword jar java java_location java_main_userid java_vm_options +syn keyword sqlKeyword jconnect jdk join json kb key keys keep language last +syn keyword sqlKeyword last_keyword last_value lateral latitude +syn keyword sqlKeyword ld ldap left len linear lf ln level like +syn keyword sqlKeyword limit local location log +syn keyword sqlKeyword logging logical login logscan long longitude low lru ls +syn keyword sqlKeyword main major manage manual mark master +syn keyword sqlKeyword match matched materialized max maxvalue maximum mb measure median membership +syn keyword sqlKeyword merge metadata methods migrate minimum minor minutes minvalue mirror +syn keyword sqlKeyword mode modify monitor move mru multiplex +syn keyword sqlKeyword name named namespaces national native natural new next nextval +syn keyword sqlKeyword ngram no noholdlock nolock nonclustered none normal not +syn keyword sqlKeyword notify null nullable_constant nulls +syn keyword sqlKeyword object objects oem_string of off offline offset olap +syn keyword sqlKeyword old on online only openstring operator +syn keyword sqlKeyword optimization optimizer option +syn keyword sqlKeyword or order ordinality organization others out outer over owner +syn keyword sqlKeyword package packetsize padding page pages +syn keyword sqlKeyword paglock parallel parameter parent part partial +syn keyword sqlKeyword partition partitions partner password path pctfree +syn keyword sqlKeyword permissions perms plan planar policy polygon populate port postfilter preceding +syn keyword sqlKeyword precisionprefetch prefilter prefix preserve preview previous +syn keyword sqlKeyword primary prior priority priqty private privilege privileges procedure profile profiling +syn keyword sqlKeyword property_is_cumulative property_is_numeric public publication publish publisher +syn keyword sqlKeyword quiesce quote quotes range readclientfile readcommitted reader readfile readonly +syn keyword sqlKeyword readpast readuncommitted readwrite rebuild +syn keyword sqlKeyword received recompile recover recursive references +syn keyword sqlKeyword referencing regex regexp regexp_substr relative relocate +syn keyword sqlKeyword rename repeatable repeatableread replicate replication +syn keyword sqlKeyword requests request_timeout required rereceive resend reserve reset +syn keyword sqlKeyword resizing resolve resource respect restart +syn keyword sqlKeyword restrict result retain retries +syn keyword sqlKeyword returns reverse right role roles +syn keyword sqlKeyword rollup root row row_number rowlock rows rowtype +syn keyword sqlKeyword sa_index_hash sa_internal_fk_verify sa_internal_termbreak +syn keyword sqlKeyword sa_order_preserving_hash sa_order_preserving_hash_big sa_order_preserving_hash_prefix +syn keyword sqlKeyword sa_file_free_pages sa_internal_type_from_catalog sa_internal_valid_hash +syn keyword sqlKeyword sa_internal_validate_value sa_json_element +syn keyword sqlKeyword scale schedule schema scope script scripted scroll search seconds secqty security +syn keyword sqlKeyword semi send sensitive sent sequence serializable +syn keyword sqlKeyword server severity session set_bit set_bits sets +syn keyword sqlKeyword shapefile share side simple since site size skip +syn keyword sqlKeyword snap snapshot soapheader soap_header +syn keyword sqlKeyword spatial split some sorted_data +syn keyword sqlKeyword sql sqlcode sqlid sqlflagger sqlstate sqrt square +syn keyword sqlKeyword stacker stale state statement statistics status stddev_pop stddev_samp +syn keyword sqlKeyword stemmer stogroup stoplist storage store +syn keyword sqlKeyword strip stripesizekb striping subpages subscribe subscription +syn keyword sqlKeyword subtransaction suser_id suser_name suspend synchronization +syn keyword sqlKeyword syntax_error table tables tablock +syn keyword sqlKeyword tablockx target tb temp template temporary term then ties +syn keyword sqlKeyword timezone timeout tls to to_char to_nchar tolerance top +syn keyword sqlKeyword trace traced_plan tracing +syn keyword sqlKeyword transfer transform transaction transactional treat tries +syn keyword sqlKeyword true try tsequal type tune uncommitted unconditionally +syn keyword sqlKeyword unenforced unicode unique unistr unit unknown unlimited unload +syn keyword sqlKeyword unpartition unquiesce updatetime updating updlock upgrade upload +syn keyword sqlKeyword upper usage use user +syn keyword sqlKeyword using utc utilities validproc +syn keyword sqlKeyword value values varchar variable +syn keyword sqlKeyword varying var_pop var_samp vcat verbosity +syn keyword sqlKeyword verify versions view virtual wait +syn keyword sqlKeyword warning wd web when where with with_auto +syn keyword sqlKeyword with_auto with_cube with_rollup without +syn keyword sqlKeyword with_lparen within word work workload write writefile +syn keyword sqlKeyword writeclientfile writer writers writeserver xlock +syn keyword sqlKeyword war xml zeros zone +" XML +syn keyword sqlKeyword raw auto elements explicit +" HTTP support +syn keyword sqlKeyword authorization secure url service next_soap_header +" HTTP 9.0.2 new procedure keywords +syn keyword sqlKeyword namespace certificate certificates clientport proxy trusted_certificates_file +" OLAP support 9.0.0 +syn keyword sqlKeyword covar_pop covar_samp corr regr_slope regr_intercept +syn keyword sqlKeyword regr_count regr_r2 regr_avgx regr_avgy +syn keyword sqlKeyword regr_sxx regr_syy regr_sxy + +" Alternate keywords +syn keyword sqlKeyword character dec options proc reference +syn keyword sqlKeyword subtrans tran syn keyword + +" Login Mode Options +syn keyword sqlKeywordLogin standard integrated kerberos LDAPUA +syn keyword sqlKeywordLogin cloudadmin mixed + +" Spatial Predicates +syn keyword sqlKeyword ST_Contains +syn keyword sqlKeyword ST_ContainsFilter +syn keyword sqlKeyword ST_CoveredBy +syn keyword sqlKeyword ST_CoveredByFilter +syn keyword sqlKeyword ST_Covers +syn keyword sqlKeyword ST_CoversFilter +syn keyword sqlKeyword ST_Crosses +syn keyword sqlKeyword ST_Disjoint +syn keyword sqlKeyword ST_Equals +syn keyword sqlKeyword ST_EqualsFilter +syn keyword sqlKeyword ST_Intersects +syn keyword sqlKeyword ST_IntersectsFilter +syn keyword sqlKeyword ST_IntersectsRect +syn keyword sqlKeyword ST_OrderingEquals +syn keyword sqlKeyword ST_Overlaps +syn keyword sqlKeyword ST_Relate +syn keyword sqlKeyword ST_Touches +syn keyword sqlKeyword ST_Within +syn keyword sqlKeyword ST_WithinFilter +" Spatial Set operations +syn keyword sqlKeyword ST_Affine +syn keyword sqlKeyword ST_Boundary +syn keyword sqlKeyword ST_Buffer +syn keyword sqlKeyword ST_ConvexHull +syn keyword sqlKeyword ST_ConvexHullAggr +syn keyword sqlKeyword ST_Difference +syn keyword sqlKeyword ST_Intersection +syn keyword sqlKeyword ST_IntersectionAggr +syn keyword sqlKeyword ST_SymDifference +syn keyword sqlKeyword ST_Union +syn keyword sqlKeyword ST_UnionAggr +" Spatial Bounds +syn keyword sqlKeyword ST_Envelope +syn keyword sqlKeyword ST_EnvelopeAggr +syn keyword sqlKeyword ST_Lat +syn keyword sqlKeyword ST_LatMax +syn keyword sqlKeyword ST_LatMin +syn keyword sqlKeyword ST_Long +syn keyword sqlKeyword ST_LongMax +syn keyword sqlKeyword ST_LongMin +syn keyword sqlKeyword ST_M +syn keyword sqlKeyword ST_MMax +syn keyword sqlKeyword ST_MMin +syn keyword sqlKeyword ST_Point +syn keyword sqlKeyword ST_X +syn keyword sqlKeyword ST_XMax +syn keyword sqlKeyword ST_XMin +syn keyword sqlKeyword ST_Y +syn keyword sqlKeyword ST_YMax +syn keyword sqlKeyword ST_YMin +syn keyword sqlKeyword ST_Z +syn keyword sqlKeyword ST_ZMax +syn keyword sqlKeyword ST_ZMin +" Spatial Collection Aggregates +syn keyword sqlKeyword ST_GeomCollectionAggr +syn keyword sqlKeyword ST_LineStringAggr +syn keyword sqlKeyword ST_MultiCurveAggr +syn keyword sqlKeyword ST_MultiLineStringAggr +syn keyword sqlKeyword ST_MultiPointAggr +syn keyword sqlKeyword ST_MultiPolygonAggr +syn keyword sqlKeyword ST_MultiSurfaceAggr +syn keyword sqlKeyword ST_Perimeter +syn keyword sqlKeyword ST_PointOnSurface +" Spatial SRS +syn keyword sqlKeyword ST_CompareWKT +syn keyword sqlKeyword ST_FormatWKT +syn keyword sqlKeyword ST_ParseWKT +syn keyword sqlKeyword ST_TransformGeom +syn keyword sqlKeyword ST_GeometryTypeFromBaseType +syn keyword sqlKeyword ST_SnapToGrid +syn keyword sqlKeyword ST_Transform +syn keyword sqlKeyword ST_SRID +syn keyword sqlKeyword ST_SRIDFromBaseType +syn keyword sqlKeyword ST_LoadConfigurationData +" Spatial Indexes +syn keyword sqlKeyword ST_LinearHash +syn keyword sqlKeyword ST_LinearUnHash + +syn keyword sqlOperator in any some all between exists +syn keyword sqlOperator like escape not is and or +syn keyword sqlOperator minus +syn keyword sqlOperator prior distinct unnest + +syn keyword sqlStatement allocate alter attach backup begin break call case catch +syn keyword sqlStatement checkpoint clear close comment commit configure connect +syn keyword sqlStatement continue create deallocate declare delete describe +syn keyword sqlStatement detach disconnect drop except execute exit explain fetch +syn keyword sqlStatement for forward from get goto grant help if include +syn keyword sqlStatement input insert install intersect leave load lock loop +syn keyword sqlStatement message open output parameters passthrough +syn keyword sqlStatement prepare print put raiserror read readtext refresh release +syn keyword sqlStatement remote remove reorganize resignal restore resume +syn keyword sqlStatement return revoke rollback save savepoint select +syn keyword sqlStatement set setuser signal start stop synchronize +syn keyword sqlStatement system trigger truncate try union unload update +syn keyword sqlStatement validate waitfor whenever while window writetext + + +syn keyword sqlType char nchar long varchar nvarchar text ntext uniqueidentifierstr xml +syn keyword sqlType bigint bit decimal double varbit +syn keyword sqlType float int integer numeric +syn keyword sqlType smallint tinyint real +syn keyword sqlType money smallmoney +syn keyword sqlType date datetime datetimeoffset smalldatetime time timestamp +syn keyword sqlType binary image varray varbinary uniqueidentifier +syn keyword sqlType unsigned +" Spatial types +syn keyword sqlType st_geometry st_point st_curve st_surface st_geomcollection +syn keyword sqlType st_linestring st_circularstring st_compoundcurve +syn keyword sqlType st_curvepolygon st_polygon +syn keyword sqlType st_multipoint st_multicurve st_multisurface +syn keyword sqlType st_multilinestring st_multipolygon + +syn keyword sqlOption Allow_nulls_by_default +syn keyword sqlOption Allow_read_client_file +syn keyword sqlOption Allow_snapshot_isolation +syn keyword sqlOption Allow_write_client_file +syn keyword sqlOption Ansi_blanks +syn keyword sqlOption Ansi_close_cursors_on_rollback +syn keyword sqlOption Ansi_permissions +syn keyword sqlOption Ansi_substring +syn keyword sqlOption Ansi_update_constraints +syn keyword sqlOption Ansinull +syn keyword sqlOption Auditing +syn keyword sqlOption Auditing_options +syn keyword sqlOption Auto_commit_on_create_local_temp_index +syn keyword sqlOption Background_priority +syn keyword sqlOption Blocking +syn keyword sqlOption Blocking_others_timeout +syn keyword sqlOption Blocking_timeout +syn keyword sqlOption Chained +syn keyword sqlOption Checkpoint_time +syn keyword sqlOption Cis_option +syn keyword sqlOption Cis_rowset_size +syn keyword sqlOption Close_on_endtrans +syn keyword sqlOption Collect_statistics_on_dml_updates +syn keyword sqlOption Conn_auditing +syn keyword sqlOption Connection_authentication +syn keyword sqlOption Continue_after_raiserror +syn keyword sqlOption Conversion_error +syn keyword sqlOption Cooperative_commit_timeout +syn keyword sqlOption Cooperative_commits +syn keyword sqlOption Database_authentication +syn keyword sqlOption Date_format +syn keyword sqlOption Date_order +syn keyword sqlOption db_publisher +syn keyword sqlOption Debug_messages +syn keyword sqlOption Dedicated_task +syn keyword sqlOption Default_dbspace +syn keyword sqlOption Default_timestamp_increment +syn keyword sqlOption Delayed_commit_timeout +syn keyword sqlOption Delayed_commits +syn keyword sqlOption Divide_by_zero_error +syn keyword sqlOption Escape_character +syn keyword sqlOption Exclude_operators +syn keyword sqlOption Extended_join_syntax +syn keyword sqlOption Extern_login_credentials +syn keyword sqlOption Fire_triggers +syn keyword sqlOption First_day_of_week +syn keyword sqlOption For_xml_null_treatment +syn keyword sqlOption Force_view_creation +syn keyword sqlOption Global_database_id +syn keyword sqlOption Http_session_timeout +syn keyword sqlOption Http_connection_pool_basesize +syn keyword sqlOption Http_connection_pool_timeout +syn keyword sqlOption Integrated_server_name +syn keyword sqlOption Isolation_level +syn keyword sqlOption Java_class_path +syn keyword sqlOption Java_location +syn keyword sqlOption Java_main_userid +syn keyword sqlOption Java_vm_options +syn keyword sqlOption Lock_rejected_rows +syn keyword sqlOption Log_deadlocks +syn keyword sqlOption Login_mode +syn keyword sqlOption Login_procedure +syn keyword sqlOption Materialized_view_optimization +syn keyword sqlOption Max_client_statements_cached +syn keyword sqlOption Max_cursor_count +syn keyword sqlOption Max_hash_size +syn keyword sqlOption Max_plans_cached +syn keyword sqlOption Max_priority +syn keyword sqlOption Max_query_tasks +syn keyword sqlOption Max_recursive_iterations +syn keyword sqlOption Max_statement_count +syn keyword sqlOption Max_temp_space +syn keyword sqlOption Min_password_length +syn keyword sqlOption Min_role_admins +syn keyword sqlOption Nearest_century +syn keyword sqlOption Non_keywords +syn keyword sqlOption Odbc_describe_binary_as_varbinary +syn keyword sqlOption Odbc_distinguish_char_and_varchar +syn keyword sqlOption Oem_string +syn keyword sqlOption On_charset_conversion_failure +syn keyword sqlOption On_tsql_error +syn keyword sqlOption Optimization_goal +syn keyword sqlOption Optimization_level +syn keyword sqlOption Optimization_workload +syn keyword sqlOption Pinned_cursor_percent_of_cache +syn keyword sqlOption Post_login_procedure +syn keyword sqlOption Precision +syn keyword sqlOption Prefetch +syn keyword sqlOption Preserve_source_format +syn keyword sqlOption Prevent_article_pkey_update +syn keyword sqlOption Priority +syn keyword sqlOption Progress_messages +syn keyword sqlOption Query_mem_timeout +syn keyword sqlOption Quoted_identifier +syn keyword sqlOption Read_past_deleted +syn keyword sqlOption Recovery_time +syn keyword sqlOption Remote_idle_timeout +syn keyword sqlOption Replicate_all +syn keyword sqlOption Request_timeout +syn keyword sqlOption Reserved_keywords +syn keyword sqlOption Return_date_time_as_string +syn keyword sqlOption Rollback_on_deadlock +syn keyword sqlOption Row_counts +syn keyword sqlOption Scale +syn keyword sqlOption Secure_feature_key +syn keyword sqlOption Sort_collation +syn keyword sqlOption Sql_flagger_error_level +syn keyword sqlOption Sql_flagger_warning_level +syn keyword sqlOption String_rtruncation +syn keyword sqlOption st_geometry_asbinary_format +syn keyword sqlOption st_geometry_astext_format +syn keyword sqlOption st_geometry_asxml_format +syn keyword sqlOption st_geometry_describe_type +syn keyword sqlOption st_geometry_interpolation +syn keyword sqlOption st_geometry_on_invalid +syn keyword sqlOption Subsume_row_locks +syn keyword sqlOption Suppress_tds_debugging +syn keyword sqlOption Synchronize_mirror_on_commit +syn keyword sqlOption Tds_empty_string_is_null +syn keyword sqlOption Temp_space_limit_check +syn keyword sqlOption Time_format +syn keyword sqlOption Time_zone_adjustment +syn keyword sqlOption Timestamp_format +syn keyword sqlOption Timestamp_with_time_zone_format +syn keyword sqlOption Truncate_timestamp_values +syn keyword sqlOption Tsql_outer_joins +syn keyword sqlOption Tsql_variables +syn keyword sqlOption Updatable_statement_isolation +syn keyword sqlOption Update_statistics +syn keyword sqlOption Upgrade_database_capability +syn keyword sqlOption User_estimates +syn keyword sqlOption Uuid_has_hyphens +syn keyword sqlOption Verify_password_function +syn keyword sqlOption Wait_for_commit +syn keyword sqlOption Webservice_namespace_host +syn keyword sqlOption Webservice_sessionid_name + +" Strings and characters: +syn region sqlString start=+"+ end=+"+ contains=@Spell +syn region sqlString start=+'+ end=+'+ contains=@Spell + +" Numbers: +syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>" + +" Comments: +syn region sqlDashComment start=/--/ end=/$/ contains=@Spell +syn region sqlSlashComment start=/\/\// end=/$/ contains=@Spell +syn region sqlMultiComment start="/\*" end="\*/" contains=sqlMultiComment,@Spell +syn cluster sqlComment contains=sqlDashComment,sqlSlashComment,sqlMultiComment,@Spell +syn sync ccomment sqlComment +syn sync ccomment sqlDashComment +syn sync ccomment sqlSlashComment + +hi def link sqlDashComment Comment +hi def link sqlSlashComment Comment +hi def link sqlMultiComment Comment +hi def link sqlNumber Number +hi def link sqlOperator Operator +hi def link sqlSpecial Special +hi def link sqlKeyword Keyword +hi def link sqlStatement Statement +hi def link sqlString String +hi def link sqlType Type +hi def link sqlFunction Function +hi def link sqlOption PreProc + +let b:current_syntax = "sqlanywhere" + +" vim:sw=4: diff --git a/git/usr/share/vim/vim92/syntax/sqlforms.vim b/git/usr/share/vim/vim92/syntax/sqlforms.vim new file mode 100644 index 0000000000000000000000000000000000000000..6077dd1e9404ad296ff1b64c0d08fc158daab242 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqlforms.vim @@ -0,0 +1,152 @@ +" Vim syntax file +" Language: SQL*Forms (Oracle 7), based on sql.vim (vim5.0) +" Maintainer: Austin Ziegler (austin@halostatue.ca) +" Last Change: 2003 May 11 +" Prev Change: 19980710 +" URL: http://www.halostatue.ca/vim/syntax/proc.vim +" +" TODO Find a new maintainer who knows SQL*Forms. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case ignore + +setlocal iskeyword=a-z,A-Z,48-57,_,.,-,> + + + " The SQL reserved words, defined as keywords. +syntax match sqlTriggers /on-.*$/ +syntax match sqlTriggers /key-.*$/ +syntax match sqlTriggers /post-.*$/ +syntax match sqlTriggers /pre-.*$/ +syntax match sqlTriggers /user-.*$/ + +syntax keyword sqlSpecial null false true + +syntax keyword sqlProcedure abort_query anchor_view bell block_menu break call +syntax keyword sqlProcedure call_input call_query clear_block clear_eol +syntax keyword sqlProcedure clear_field clear_form clear_record commit_form +syntax keyword sqlProcedure copy count_query create_record default_value +syntax keyword sqlProcedure delete_record display_error display_field down +syntax keyword sqlProcedure duplicate_field duplicate_record edit_field +syntax keyword sqlProcedure enter enter_query erase execute_query +syntax keyword sqlProcedure execute_trigger exit_form first_Record go_block +syntax keyword sqlProcedure go_field go_record help hide_menu hide_page host +syntax keyword sqlProcedure last_record list_values lock_record message +syntax keyword sqlProcedure move_view new_form next_block next_field next_key +syntax keyword sqlProcedure next_record next_set pause post previous_block +syntax keyword sqlProcedure previous_field previous_record print redisplay +syntax keyword sqlProcedure replace_menu resize_view scroll_down scroll_up +syntax keyword sqlProcedure set_field show_keys show_menu show_page +syntax keyword sqlProcedure synchronize up user_exit + +syntax keyword sqlFunction block_characteristic error_code error_text +syntax keyword sqlFunction error_type field_characteristic form_failure +syntax keyword sqlFunction form_fatal form_success name_in + +syntax keyword sqlParameters hide no_hide replace no_replace ask_commit +syntax keyword sqlParameters do_commit no_commit no_validate all_records +syntax keyword sqlParameters for_update no_restrict restrict no_screen +syntax keyword sqlParameters bar full_screen pull_down auto_help auto_skip +syntax keyword sqlParameters fixed_length enterable required echo queryable +syntax keyword sqlParameters updateable update_null upper_case attr_on +syntax keyword sqlParameters attr_off base_table first_field last_field +syntax keyword sqlParameters datatype displayed display_length field_length +syntax keyword sqlParameters list page primary_key query_length x_pos y_pos + +syntax match sqlSystem /system\.block_status/ +syntax match sqlSystem /system\.current_block/ +syntax match sqlSystem /system\.current_field/ +syntax match sqlSystem /system\.current_form/ +syntax match sqlSystem /system\.current_value/ +syntax match sqlSystem /system\.cursor_block/ +syntax match sqlSystem /system\.cursor_field/ +syntax match sqlSystem /system\.cursor_record/ +syntax match sqlSystem /system\.cursor_value/ +syntax match sqlSystem /system\.form_status/ +syntax match sqlSystem /system\.last_query/ +syntax match sqlSystem /system\.last_record/ +syntax match sqlSystem /system\.message_level/ +syntax match sqlSystem /system\.record_status/ +syntax match sqlSystem /system\.trigger_block/ +syntax match sqlSystem /system\.trigger_field/ +syntax match sqlSystem /system\.trigger_record/ +syntax match sqlSystem /\$\$date\$\$/ +syntax match sqlSystem /\$\$time\$\$/ + +syntax keyword sqlKeyword accept access add as asc by check cluster column +syntax keyword sqlKeyword compress connect current decimal default +syntax keyword sqlKeyword desc exclusive file for from group +syntax keyword sqlKeyword having identified immediate increment index +syntax keyword sqlKeyword initial into is level maxextents mode modify +syntax keyword sqlKeyword nocompress nowait of offline on online start +syntax keyword sqlKeyword successful synonym table to trigger uid +syntax keyword sqlKeyword unique user validate values view whenever +syntax keyword sqlKeyword where with option order pctfree privileges +syntax keyword sqlKeyword public resource row rowlabel rownum rows +syntax keyword sqlKeyword session share size smallint sql\*forms_version +syntax keyword sqlKeyword terse define form name title procedure begin +syntax keyword sqlKeyword default_menu_application trigger block field +syntax keyword sqlKeyword enddefine declare exception raise when cursor +syntax keyword sqlKeyword definition base_table pragma +syntax keyword sqlKeyword column_name global trigger_type text description +syntax match sqlKeyword "<<<" +syntax match sqlKeyword ">>>" + +syntax keyword sqlOperator not and or out to_number to_date message erase +syntax keyword sqlOperator in any some all between exists substr nvl +syntax keyword sqlOperator exception_init +syntax keyword sqlOperator like escape trunc lpad rpad sum +syntax keyword sqlOperator union intersect minus to_char greatest +syntax keyword sqlOperator prior distinct decode least avg +syntax keyword sqlOperator sysdate true false field_characteristic +syntax keyword sqlOperator display_field call host + +syntax keyword sqlStatement alter analyze audit comment commit create +syntax keyword sqlStatement delete drop explain grant insert lock noaudit +syntax keyword sqlStatement rename revoke rollback savepoint select set +syntax keyword sqlStatement truncate update if elsif loop then +syntax keyword sqlStatement open fetch close else end + +syntax keyword sqlType char character date long raw mlslabel number rowid +syntax keyword sqlType varchar varchar2 float integer boolean global + +syntax keyword sqlCodes sqlcode no_data_found too_many_rows others +syntax keyword sqlCodes form_trigger_failure notfound found +syntax keyword sqlCodes validate no_commit + + " Comments: +syntax region sqlComment start="/\*" end="\*/" +syntax match sqlComment "--.*" + + " Strings and characters: +syntax region sqlString start=+"+ skip=+\\\\\|\\"+ end=+"+ +syntax region sqlString start=+'+ skip=+\\\\\|\\"+ end=+'+ + + " Numbers: +syntax match sqlNumber "-\=\<[0-9]*\.\=[0-9_]\>" + +syntax sync ccomment sqlComment + + +hi def link sqlComment Comment +hi def link sqlKeyword Statement +hi def link sqlNumber Number +hi def link sqlOperator Statement +hi def link sqlProcedure Statement +hi def link sqlFunction Statement +hi def link sqlSystem Identifier +hi def link sqlSpecial Special +hi def link sqlStatement Statement +hi def link sqlString String +hi def link sqlType Type +hi def link sqlCodes Identifier +hi def link sqlTriggers PreProc + + +let b:current_syntax = "sqlforms" + +" vim: ts=8 sw=4 diff --git a/git/usr/share/vim/vim92/syntax/sqlhana.vim b/git/usr/share/vim/vim92/syntax/sqlhana.vim new file mode 100644 index 0000000000000000000000000000000000000000..2e334bb56e5cd24a8cc008f816c077e45a107344 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqlhana.vim @@ -0,0 +1,290 @@ +" Vim syntax file +" Language: SQL, SAP HANA In Memory Database +" Maintainer: David Fishburn +" Last Change: 2012 Oct 23 +" Version: SP4 b (Q2 2012) +" Homepage: http://www.vim.org/scripts/script.php?script_id=4275 + +" Description: Updated to SAP HANA SP4 +" +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" The SQL reserved words, defined as keywords. +" These were pulled from the following SQL reference: +" http://help.sap.com/hana/hana_sql_en.pdf +" An easy approach is to copy all text from the PDF +" into a Vim buffer. The keywords are in UPPER case, +" so you can run the following commands to be left with +" mainly the UPPER case words: +" 1. Delete all words that do not begin with a Capital +" %s/\(\<[^A-Z]\w*\>\)//g +" 2. Remove all words where the 2nd letter is not a Capital +" %s/\(\<[A-Z][^A-Z]\w*\>\)//g +" 3. Remove all non-word (or space) characters +" %s/[^0-9A-Za-z_ ]*//g +" 4. Remove some known words +" %s/\<\(SAP\|HANA\|OK\|AG\|IBM\|DB2\|AIX\|POWER\d\+\|UNIX\)\>//g +" 5. Remove blank lines and trailing spaces +" %s/\s\+$//g +" %s/^\s\+//g +" %s/^$\n//g +" 6. Convert spaces to newlines remove single character +" %s/[ ]\+/\r/g +" %g/^\w$/d +" 7. Sort and remove duplicates +" :sort +" :Uniq +" 8. Use the WhatsMissing plugin against the sqlhana.vim file. +" 9. Generated a file of all UPPER cased words which should not +" be in the syntax file. These items should be removed +" from the list in step 7. You can use WhatsNotMissing +" between step 7 and this new file to weed out the words +" we know are not syntax related. +" 10. Use the WhatsMissingRemoveMatches to remove the words +" from step 9. + +syn keyword sqlSpecial false null true + +" Supported Functions for Date/Time types +syn keyword sqlFunction ADD_DAYS ADD_MONTHS ADD_SECONDS ADD_YEARS COALESCE +syn keyword sqlFunction CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURRENT_UTCDATE +syn keyword sqlFunction CURRENT_UTCTIME CURRENT_UTCTIMESTAMP +syn keyword sqlFunction DAYNAME DAYOFMONTH DAYOFYEAR DAYS_BETWEEN EXTRACT +syn keyword sqlFunction GREATEST HOUR IFNULL ISOWEEK LAST_DAY LEAST LOCALTOUTC +syn keyword sqlFunction MINUTE MONTH MONTHNAME NEXT_DAY NOW QUARTER SECOND +syn keyword sqlFunction SECONDS_BETWEEN UTCTOLOCAL WEEK WEEKDAY YEAR + +syn keyword sqlFunction TO_CHAR TO_DATE TO_DATS TO_NCHAR TO_TIME TO_TIMESTAMP UTCTOLOCAL + +" Aggregate +syn keyword sqlFunction COUNT MIN MAX SUM AVG STDDEV VAR + +" Datatype conversion +syn keyword sqlFunction CAST TO_ALPHANUM TO_BIGINT TO_BINARY TO_BLOB TO_CHAR TO_CLOB +syn keyword sqlFunction TO_DATE TO_DATS TO_DECIMAL TO_DOUBLE TO_INT TO_INTEGER TO_NCHAR +syn keyword sqlFunction TO_NCLOB TO_NVARCHAR TO_REAL TO_SECONDDATE TO_SMALLDECIMAL +syn keyword sqlFunction TO_SMALLINT TO_TIME TO_TIMESTAMP TO_TINYINT TO_VARCHAR TO_VARBINARY + +" Number functions +syn keyword sqlFunction ABS ACOS ASIN ATAN ATAN2 BINTOHEX BITAND CEIL COS COSH COT +syn keyword sqlFunction EXP FLOOR GREATEST HEXTOBIN LEAST LN LOG MOD POWER ROUND +syn keyword sqlFunction SIGN SIN SINH SQRT TAN TANH UMINUS + +" String functions +syn keyword sqlFunction ASCII CHAR CONCAT LCASE LENGTH LOCATE LOWER LPAD LTRIM +syn keyword sqlFunction NCHAR REPLACE RPAD RTRIM SUBSTR_AFTER SUBSTR_BEFORE +syn keyword sqlFunction SUBSTRING TRIM UCASE UNICODE UPPER + +" Miscellaneous functions +syn keyword sqlFunction COALESCE CURRENT_CONNECTION CURRENT_SCHEMA CURRENT_USER +syn keyword sqlFunction GROUPING_ID IFNULL MAP NULLIF SESSION_CONTEXT SESSION_USER SYSUUIDSQL +syn keyword sqlFunction GET_NUM_SERVERS + + +" sp_ procedures +" syn keyword sqlFunction sp_addalias + + +" Reserved keywords +syn keyword sqlkeyword ALL AS AT BEFORE +syn keyword sqlkeyword BEGIN BOTH BY +syn keyword sqlkeyword CONDITION +syn keyword sqlkeyword CURRVAL CURSOR DECLARE +syn keyword sqlkeyword DISTINCT DO ELSE ELSEIF ELSIF +syn keyword sqlkeyword END EXCEPTION EXEC +syn keyword sqlkeyword FOR FROM GROUP +syn keyword sqlkeyword HAVING IN +syn keyword sqlkeyword INOUT INTO IS +syn keyword sqlkeyword LEADING +syn keyword sqlkeyword LOOP MINUS NATURAL NEXTVAL +syn keyword sqlkeyword OF ON ORDER OUT +syn keyword sqlkeyword PRIOR RETURN RETURNS REVERSE +syn keyword sqlkeyword ROWID SELECT +syn keyword sqlkeyword SQL START STOP SYSDATE +syn keyword sqlkeyword SYSTIME SYSTIMESTAMP SYSUUID +syn keyword sqlkeyword TRAILING USING UTCDATE +syn keyword sqlkeyword UTCTIME UTCTIMESTAMP VALUES +syn keyword sqlkeyword WHILE +syn keyword sqlkeyword ANY SOME EXISTS ESCAPE + +" IF keywords +syn keyword sqlkeyword IF + +" CASE keywords +syn keyword sqlKeyword WHEN THEN + +" Syntax rules common to TEXT and SHORTTEXT keywords +syn keyword sqlKeyword LANGUAGE DETECTION LINGUISTIC +syn keyword sqlkeyword MIME TYPE +syn keyword sqlkeyword EXACT WEIGHT FUZZY FUZZINESSTHRESHOLD SEARCH +syn keyword sqlkeyword PHRASE INDEX RATIO REBUILD +syn keyword sqlkeyword CONFIGURATION +syn keyword sqlkeyword SEARCH ONLY +syn keyword sqlkeyword FAST PREPROCESS +syn keyword sqlkeyword SYNC SYNCHRONOUS ASYNC ASYNCHRONOUS FLUSH QUEUE +syn keyword sqlkeyword EVERY AFTER MINUTES DOCUMENTS SUSPEND + +" Statement keywords (i.e. after ALTER or CREATE) +syn keyword sqlkeyword AUDIT POLICY +syn keyword sqlkeyword FULLTEXT +syn keyword sqlkeyword SEQUENCE RESTART +syn keyword sqlkeyword TABLE +syn keyword sqlkeyword PROCEDURE STATISTICS +syn keyword sqlkeyword SCHEMA +syn keyword sqlkeyword SYNONYM +syn keyword sqlkeyword VIEW +syn keyword sqlkeyword COLUMN +syn keyword sqlkeyword SYSTEM LICENSE +syn keyword sqlkeyword SESSION +syn keyword sqlkeyword CANCEL WORK +syn keyword sqlkeyword PLAN CACHE +syn keyword sqlkeyword LOGGING NOLOGGING RETENTION +syn keyword sqlkeyword RECONFIGURE SERVICE +syn keyword sqlkeyword RESET MONITORING +syn keyword sqlkeyword SAVE DURATION PERFTRACE FUNCTION_PROFILER +syn keyword sqlkeyword SAVEPOINT +syn keyword sqlkeyword USER +syn keyword sqlkeyword ROLE +syn keyword sqlkeyword ASC DESC +syn keyword sqlkeyword OWNED +syn keyword sqlkeyword DEPENDENCIES SCRAMBLE + +" Create sequence +syn keyword sqlkeyword INCREMENT MAXVALUE MINVALUE CYCLE + +" Create table +syn keyword sqlkeyword HISTORY GLOBAL LOCAL TEMPORARY + +" Create trigger +syn keyword sqlkeyword TRIGGER REFERENCING EACH DEFAULT +syn keyword sqlkeyword SIGNAL RESIGNAL MESSAGE_TEXT OLD NEW +syn keyword sqlkeyword EXIT HANDLER SQL_ERROR_CODE +syn keyword sqlkeyword TARGET CONDITION SIGNAL + +" Alter table +syn keyword sqlkeyword ADD DROP MODIFY GENERATED ALWAYS +syn keyword sqlkeyword UNIQUE BTREE CPBTREE PRIMARY KEY +syn keyword sqlkeyword CONSTRAINT PRELOAD NONE +syn keyword sqlkeyword ROW THREADS BATCH +syn keyword sqlkeyword MOVE PARTITION TO LOCATION PHYSICAL OTHERS +syn keyword sqlkeyword ROUNDROBIN PARTITIONS HASH RANGE VALUE +syn keyword sqlkeyword PERSISTENT DELTA AUTO AUTOMERGE + +" Create audit policy +syn keyword sqlkeyword AUDITING SUCCESSFUL UNSUCCESSFUL +syn keyword sqlkeyword PRIVILEGE STRUCTURED CHANGE LEVEL +syn keyword sqlkeyword EMERGENCY ALERT CRITICAL WARNING INFO + +" Privileges +syn keyword sqlkeyword DEBUG EXECUTE + +" Schema +syn keyword sqlkeyword CASCADE RESTRICT PARAMETERS SCAN + +" Traces +syn keyword sqlkeyword CLIENT CRASHDUMP EMERGENCYDUMP +syn keyword sqlkeyword INDEXSERVER NAMESERVER DAEMON +syn keyword sqlkeyword CLEAR REMOVE TRACES + +" Reclaim +syn keyword sqlkeyword RECLAIM DATA VOLUME VERSION SPACE DEFRAGMENT SPARSIFY + +" Join +syn keyword sqlkeyword INNER OUTER LEFT RIGHT FULL CROSS JOIN +syn keyword sqlkeyword GROUPING SETS ROLLUP CUBE +syn keyword sqlkeyword BEST LIMIT OFFSET +syn keyword sqlkeyword WITH SUBTOTAL BALANCE TOTAL +syn keyword sqlkeyword TEXT_FILTER FILL UP SORT MATCHES TOP +syn keyword sqlkeyword RESULT OVERVIEW PREFIX MULTIPLE RESULTSETS + +" Lock +syn keyword sqlkeyword EXCLUSIVE MODE NOWAIT + +" Transaction +syn keyword sqlkeyword TRANSACTION ISOLATION READ COMMITTED +syn keyword sqlkeyword REPEATABLE SERIALIZABLE WRITE + +" Saml +syn keyword sqlkeyword SAML ASSERTION PROVIDER SUBJECT ISSUER + +" User +syn keyword sqlkeyword PASSWORD IDENTIFIED EXTERNALLY ATTEMPTS ATTEMPTS +syn keyword sqlkeyword ENABLE DISABLE OFF LIFETIME FORCE DEACTIVATE +syn keyword sqlkeyword ACTIVATE IDENTITY KERBEROS + +" Grant +syn keyword sqlkeyword ADMIN BACKUP CATALOG SCENARIO INIFILE MONITOR +syn keyword sqlkeyword OPTIMIZER OPTION +syn keyword sqlkeyword RESOURCE STRUCTUREDPRIVILEGE TRACE + +" Import +syn keyword sqlkeyword CSV FILE CONTROL NO CHECK SKIP FIRST LIST +syn keyword sqlkeyword RECORD DELIMITED FIELD OPTIONALLY ENCLOSED FORMAT + +" Roles +syn keyword sqlkeyword PUBLIC CONTENT_ADMIN MODELING MONITORING + +" Miscellaneous +syn keyword sqlkeyword APPLICATION BINARY IMMEDIATE COREFILE SECURITY DEFINER +syn keyword sqlkeyword DUMMY INVOKER MATERIALIZED MESSEGE_TEXT PARAMETER PARAMETERS +syn keyword sqlkeyword PART +syn keyword sqlkeyword CONSTANT SQLEXCEPTION SQLWARNING + +syn keyword sqlOperator WHERE BETWEEN LIKE NULL CONTAINS +syn keyword sqlOperator AND OR NOT CASE +syn keyword sqlOperator UNION INTERSECT EXCEPT + +syn keyword sqlStatement ALTER CALL CALLS CREATE DROP RENAME TRUNCATE +syn keyword sqlStatement DELETE INSERT UPDATE EXPLAIN +syn keyword sqlStatement MERGE REPLACE UPSERT SELECT +syn keyword sqlStatement SET UNSET LOAD UNLOAD +syn keyword sqlStatement CONNECT DISCONNECT COMMIT LOCK ROLLBACK +syn keyword sqlStatement GRANT REVOKE +syn keyword sqlStatement EXPORT IMPORT + + +syn keyword sqlType DATE TIME SECONDDATE TIMESTAMP TINYINT SMALLINT +syn keyword sqlType INT INTEGER BIGINT SMALLDECIMAL DECIMAL +syn keyword sqlType REAL DOUBLE FLOAT +syn keyword sqlType VARCHAR NVARCHAR ALPHANUM SHORTTEXT VARBINARY +syn keyword sqlType BLOB CLOB NCLOB TEXT DAYDATE + +syn keyword sqlOption Webservice_namespace_host + +" Strings and characters: +syn region sqlString start=+"+ end=+"+ contains=@Spell +syn region sqlString start=+'+ end=+'+ contains=@Spell + +" Numbers: +syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>" + +" Comments: +syn region sqlDashComment start=/--/ end=/$/ contains=@Spell +syn region sqlSlashComment start=/\/\// end=/$/ contains=@Spell +syn region sqlMultiComment start="/\*" end="\*/" contains=sqlMultiComment,@Spell +syn cluster sqlComment contains=sqlDashComment,sqlSlashComment,sqlMultiComment,@Spell +syn sync ccomment sqlComment +syn sync ccomment sqlDashComment +syn sync ccomment sqlSlashComment + +hi def link sqlDashComment Comment +hi def link sqlSlashComment Comment +hi def link sqlMultiComment Comment +hi def link sqlNumber Number +hi def link sqlOperator Operator +hi def link sqlSpecial Special +hi def link sqlKeyword Keyword +hi def link sqlStatement Statement +hi def link sqlString String +hi def link sqlType Type +hi def link sqlFunction Function +hi def link sqlOption PreProc + +let b:current_syntax = "sqlhana" + +" vim:sw=4: diff --git a/git/usr/share/vim/vim92/syntax/sqlinformix.vim b/git/usr/share/vim/vim92/syntax/sqlinformix.vim new file mode 100644 index 0000000000000000000000000000000000000000..71418c556fc2db5fe8d4e4de8ff2fdc497be83b2 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqlinformix.vim @@ -0,0 +1,183 @@ +" Vim syntax file +" Informix Structured Query Language (SQL) and Stored Procedure Language (SPL) +" Language: SQL, SPL (Informix Dynamic Server 2000 v9.2) +" Maintainer: Dean Hill +" Last Change: 2004 Aug 30 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + + + +" === Comment syntax group === +syn region sqlComment start="{" end="}" contains=sqlTodo +syn match sqlComment "--.*$" contains=sqlTodo +syn sync ccomment sqlComment + + + +" === Constant syntax group === +" = Boolean subgroup = +syn keyword sqlBoolean true false +syn keyword sqlBoolean null +syn keyword sqlBoolean public user +syn keyword sqlBoolean current today +syn keyword sqlBoolean year month day hour minute second fraction + +" = String subgroup = +syn region sqlString start=+"+ end=+"+ +syn region sqlString start=+'+ end=+'+ + +" = Numbers subgroup = +syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>" + + + +" === Statement syntax group === +" SQL +syn keyword sqlStatement allocate alter +syn keyword sqlStatement begin +syn keyword sqlStatement close commit connect create +syn keyword sqlStatement database deallocate declare delete describe disconnect drop +syn keyword sqlStatement execute fetch flush free get grant info insert +syn keyword sqlStatement load lock open output +syn keyword sqlStatement prepare put +syn keyword sqlStatement rename revoke rollback select set start stop +syn keyword sqlStatement truncate unload unlock update +syn keyword sqlStatement whenever +" SPL +syn keyword sqlStatement call continue define +syn keyword sqlStatement exit +syn keyword sqlStatement let +syn keyword sqlStatement return system trace + +" = Conditional subgroup = +" SPL +syn keyword sqlConditional elif else if then +syn keyword sqlConditional case +" Highlight "end if" with one or more separating spaces +syn match sqlConditional "end \+if" + +" = Repeat subgroup = +" SQL/SPL +" Handle SQL triggers' "for each row" clause and SPL "for" loop +syn match sqlRepeat "for\( \+each \+row\)\=" +" SPL +syn keyword sqlRepeat foreach while +" Highlight "end for", etc. with one or more separating spaces +syn match sqlRepeat "end \+for" +syn match sqlRepeat "end \+foreach" +syn match sqlRepeat "end \+while" + +" = Exception subgroup = +" SPL +syn match sqlException "on \+exception" +syn match sqlException "end \+exception" +syn match sqlException "end \+exception \+with \+resume" +syn match sqlException "raise \+exception" + +" = Keyword subgroup = +" SQL +syn keyword sqlKeyword aggregate add as authorization autofree by +syn keyword sqlKeyword cache cascade check cluster collation +syn keyword sqlKeyword column connection constraint cross +syn keyword sqlKeyword dataskip debug default deferred_prepare +syn keyword sqlKeyword descriptor diagnostics +syn keyword sqlKeyword each escape explain external +syn keyword sqlKeyword file foreign fragment from function +syn keyword sqlKeyword group having +syn keyword sqlKeyword immediate index inner into isolation +syn keyword sqlKeyword join key +syn keyword sqlKeyword left level log +syn keyword sqlKeyword mode modify mounting new no +syn keyword sqlKeyword object of old optical option +syn keyword sqlKeyword optimization order outer +syn keyword sqlKeyword pdqpriority pload primary procedure +syn keyword sqlKeyword references referencing release reserve +syn keyword sqlKeyword residency right role routine row +syn keyword sqlKeyword schedule schema scratch session set +syn keyword sqlKeyword statement statistics synonym +syn keyword sqlKeyword table temp temporary timeout to transaction trigger +syn keyword sqlKeyword using values view violations +syn keyword sqlKeyword where with work +" Highlight "on" (if it's not followed by some words we've already handled) +syn match sqlKeyword "on \+\(exception\)\@!" +" SPL +" Highlight "end" (if it's not followed by some words we've already handled) +syn match sqlKeyword "end \+\(if\|for\|foreach\|while\|exception\)\@!" +syn keyword sqlKeyword resume returning + +" = Operator subgroup = +" SQL +syn keyword sqlOperator not and or +syn keyword sqlOperator in is any some all between exists +syn keyword sqlOperator like matches +syn keyword sqlOperator union intersect +syn keyword sqlOperator distinct unique + + + +" === Identifier syntax group === +" = Function subgroup = +" SQL +syn keyword sqlFunction abs acos asin atan atan2 avg +syn keyword sqlFunction cardinality cast char_length character_length cos count +syn keyword sqlFunction exp filetoblob filetoclob hex +syn keyword sqlFunction initcap length logn log10 lower lpad +syn keyword sqlFunction min max mod octet_length pow range replace root round rpad +syn keyword sqlFunction sin sqrt stdev substr substring sum +syn keyword sqlFunction to_char tan to_date trim trunc upper variance + + + +" === Type syntax group === +" SQL +syn keyword sqlType blob boolean byte char character clob +syn keyword sqlType date datetime dec decimal double +syn keyword sqlType float int int8 integer interval list lvarchar +syn keyword sqlType money multiset nchar numeric nvarchar +syn keyword sqlType real serial serial8 smallfloat smallint +syn keyword sqlType text varchar varying + + + +" === Todo syntax group === +syn keyword sqlTodo TODO FIXME XXX DEBUG NOTE + + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + + +" === Comment syntax group === +hi def link sqlComment Comment + +" === Constant syntax group === +hi def link sqlNumber Number +hi def link sqlBoolean Boolean +hi def link sqlString String + +" === Statement syntax group === +hi def link sqlStatement Statement +hi def link sqlConditional Conditional +hi def link sqlRepeat Repeat +hi def link sqlKeyword Keyword +hi def link sqlOperator Operator +hi def link sqlException Exception + +" === Identifier syntax group === +hi def link sqlFunction Function + +" === Type syntax group === +hi def link sqlType Type + +" === Todo syntax group === +hi def link sqlTodo Todo + + +let b:current_syntax = "sqlinformix" diff --git a/git/usr/share/vim/vim92/syntax/sqlj.vim b/git/usr/share/vim/vim92/syntax/sqlj.vim new file mode 100644 index 0000000000000000000000000000000000000000..fd0f8f3d7674da824b49f513a8df91497857ebb6 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqlj.vim @@ -0,0 +1,91 @@ +" Vim syntax file +" Language: sqlj +" Maintainer: Andreas Fischbach +" This file is based on sql.vim && java.vim (thanx) +" with a handful of additional sql words and still +" a subset of whatever standard +" Last change: 31th Dec 2001 + +" au BufNewFile,BufRead *.sqlj so $VIM/syntax/sqlj.vim + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Read the Java syntax to start with +source :p:h/java.vim + +" SQLJ extensions +" The SQL reserved words, defined as keywords. + +syn case ignore +syn keyword sqljSpecial null + +syn keyword sqljKeyword access add as asc by check cluster column +syn keyword sqljKeyword compress connect current decimal default +syn keyword sqljKeyword desc else exclusive file for from group +syn keyword sqljKeyword having identified immediate increment index +syn keyword sqljKeyword initial into is level maxextents mode modify +syn keyword sqljKeyword nocompress nowait of offline on online start +syn keyword sqljKeyword successful synonym table then to trigger uid +syn keyword sqljKeyword unique user validate values view whenever +syn keyword sqljKeyword where with option order pctfree privileges +syn keyword sqljKeyword public resource row rowlabel rownum rows +syn keyword sqljKeyword session share size smallint + +syn keyword sqljKeyword fetch database context iterator field join +syn keyword sqljKeyword foreign outer inner isolation left right +syn keyword sqljKeyword match primary key + +syn keyword sqljOperator not and or +syn keyword sqljOperator in any some all between exists +syn keyword sqljOperator like escape +syn keyword sqljOperator union intersect minus +syn keyword sqljOperator prior distinct +syn keyword sqljOperator sysdate + +syn keyword sqljOperator max min avg sum count hex + +syn keyword sqljStatement alter analyze audit comment commit create +syn keyword sqljStatement delete drop explain grant insert lock noaudit +syn keyword sqljStatement rename revoke rollback savepoint select set +syn keyword sqljStatement truncate update begin work + +syn keyword sqljType char character date long raw mlslabel number +syn keyword sqljType rowid varchar varchar2 float integer + +syn keyword sqljType byte text serial + + +" Strings and characters: +syn region sqljString start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn region sqljString start=+'+ skip=+\\\\\|\\"+ end=+'+ + +" Numbers: +syn match sqljNumber "-\=\<\d*\.\=[0-9_]\>" + +" PreProc +syn match sqljPre "#sql" + +" Comments: +syn region sqljComment start="/\*" end="\*/" +syn match sqlComment "--.*" + +syn sync ccomment sqljComment + + +" The default methods for highlighting. Can be overridden later. +hi def link sqljComment Comment +hi def link sqljKeyword sqljSpecial +hi def link sqljNumber Number +hi def link sqljOperator sqljStatement +hi def link sqljSpecial Special +hi def link sqljStatement Statement +hi def link sqljString String +hi def link sqljType Type +hi def link sqljPre PreProc + + +let b:current_syntax = "sqlj" + diff --git a/git/usr/share/vim/vim92/syntax/sqloracle.vim b/git/usr/share/vim/vim92/syntax/sqloracle.vim new file mode 100644 index 0000000000000000000000000000000000000000..d523a4528a23ef5f5659ca7c9be97e21e72f6354 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqloracle.vim @@ -0,0 +1,151 @@ +" Vim syntax file +" Language: SQL, PL/SQL (Oracle 11g) +" Maintainer: Christian Brabandt +" Repository: https://github.com/chrisbra/vim-sqloracle-syntax +" License: Vim +" Previous Maintainer: Paul Moore +" Last Change: 2022 February 10 + +" Changes: +" 02.04.2016: Support for when keyword +" 03.04.2016: Support for join related keywords +" 22.07.2016: Support Oracle Q-Quote-Syntax +" 25.07.2016: Support for Oracle N'-Quote syntax +" 22.06.2018: Remove skip part for sqlString (do not escape strings) +" 10.02.2022: Add some more Oracle SQLKeywords https://github.com/vim/vim/issues/9737 +" (https://web.archive.org/web/20150922065035/https://mariadb.com/kb/en/sql-99/character-string-literals/) + +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" The SQL reserved words, defined as keywords. + +syn keyword sqlSpecial false null true + +syn keyword sqlKeyword access add as asc begin by case check cluster column +syn keyword sqlKeyword cache compress connect current cursor decimal default desc +syn keyword sqlKeyword else elsif end exception exclusive file for from +syn keyword sqlKeyword function group having identified if immediate increment +syn keyword sqlKeyword index initial initrans into is level link logging loop +syn keyword sqlKeyword maxextents maxtrans mode modify monitoring +syn keyword sqlKeyword nocache nocompress nologging noparallel nowait of offline on online start +syn keyword sqlKeyword parallel successful synonym table tablespace then to trigger uid +syn keyword sqlKeyword unique user validate values view when whenever +syn keyword sqlKeyword where with within option order pctfree pctused privileges procedure +syn keyword sqlKeyword public resource return row rowlabel rownum rows +syn keyword sqlKeyword session share size smallint type using +syn keyword sqlKeyword join cross inner outer left right + +syn keyword sqlOperator not and or +syn keyword sqlOperator in any some all between exists +syn keyword sqlOperator like escape +syn keyword sqlOperator union intersect minus +syn keyword sqlOperator prior distinct +syn keyword sqlOperator sysdate out + +syn keyword sqlStatement analyze audit comment commit +syn keyword sqlStatement delete drop execute explain grant lock noaudit +syn keyword sqlStatement rename revoke rollback savepoint set +syn keyword sqlStatement truncate +" next ones are contained, so folding works. +syn keyword sqlStatement create update alter select insert contained + +syn keyword sqlType bfile blob boolean char character clob date datetime +syn keyword sqlType dec decimal float int integer long mlslabel nchar +syn keyword sqlType nclob number numeric nvarchar2 precision raw rowid +syn keyword sqlType smallint real timestamp urowid varchar varchar2 varray + +" Strings: +syn region sqlString matchgroup=Quote start=+n\?"+ end=+"+ +syn region sqlString matchgroup=Quote start=+n\?'+ end=+'+ +syn region sqlString matchgroup=Quote start=+n\?q'\z([^[(<{]\)+ end=+\z1'+ +syn region sqlString matchgroup=Quote start=+n\?q'<+ end=+>'+ +syn region sqlString matchgroup=Quote start=+n\?q'{+ end=+}'+ +syn region sqlString matchgroup=Quote start=+n\?q'(+ end=+)'+ +syn region sqlString matchgroup=Quote start=+n\?q'\[+ end=+]'+ + +" Numbers: +syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>" + +" Comments: +syn region sqlComment start="/\*" end="\*/" contains=sqlTodo,@Spell fold +syn match sqlComment "--.*$" contains=sqlTodo,@Spell +syn match sqlComment "^rem.*$" contains=sqlTodo,@Spell + +" Setup Folding: +" this is a hack, to get certain statements folded. +" the keywords create/update/alter/select/insert need to +" have contained option. +syn region sqlFold start='^\s*\zs\c\(Create\|Update\|Alter\|Select\|Insert\)' end=';$\|^$' transparent fold contains=ALL + +syn sync ccomment sqlComment + +" Functions: +" (Oracle 11g) +" Aggregate Functions +syn keyword sqlFunction avg collect corr corr_s corr_k count covar_pop covar_samp cume_dist dense_rank first +syn keyword sqlFunction group_id grouping grouping_id last listagg max median min percentile_cont percentile_disc percent_rank rank +syn keyword sqlFunction regr_slope regr_intercept regr_count regr_r2 regr_avgx regr_avgy regr_sxx regr_syy regr_sxy +syn keyword sqlFunction stats_binomial_test stats_crosstab stats_f_test stats_ks_test stats_mode stats_mw_test +syn keyword sqlFunction stats_one_way_anova stats_t_test_one stats_t_test_paired stats_t_test_indep stats_t_test_indepu +syn keyword sqlFunction stats_wsr_test stddev stddev_pop stddev_samp sum +syn keyword sqlFunction sys_xmlagg var_pop var_samp variance xmlagg +" Char Functions +syn keyword sqlFunction ascii chr concat initcap instr length lower lpad ltrim +syn keyword sqlFunction nls_initcap nls_lower nlssort nls_upper regexp_instr regexp_replace +syn keyword sqlFunction regexp_substr replace rpad rtrim soundex substr translate treat trim upper wm_concat +" Comparison Functions +syn keyword sqlFunction greatest least +" Conversion Functions +syn keyword sqlFunction asciistr bin_to_num cast chartorowid compose convert +syn keyword sqlFunction decompose hextoraw numtodsinterval numtoyminterval rawtohex rawtonhex rowidtochar +syn keyword sqlFunction rowidtonchar scn_to_timestamp timestamp_to_scn to_binary_double to_binary_float +syn keyword sqlFunction to_char to_char to_char to_clob to_date to_dsinterval to_lob to_multi_byte +syn keyword sqlFunction to_nchar to_nchar to_nchar to_nclob to_number to_dsinterval to_single_byte +syn keyword sqlFunction to_timestamp to_timestamp_tz to_yminterval to_yminterval translate unistr +" DataMining Functions +syn keyword sqlFunction cluster_id cluster_probability cluster_set feature_id feature_set +syn keyword sqlFunction feature_value prediction prediction_bounds prediction_cost +syn keyword sqlFunction prediction_details prediction_probability prediction_set +" Datetime Functions +syn keyword sqlFunction add_months current_date current_timestamp dbtimezone extract +syn keyword sqlFunction from_tz last_day localtimestamp months_between new_time +syn keyword sqlFunction next_day numtodsinterval numtoyminterval round sessiontimezone +syn keyword sqlFunction sys_extract_utc sysdate systimestamp to_char to_timestamp +syn keyword sqlFunction to_timestamp_tz to_dsinterval to_yminterval trunc tz_offset +" Numeric Functions +syn keyword sqlFunction abs acos asin atan atan2 bitand ceil cos cosh exp +syn keyword sqlFunction floor ln log mod nanvl power remainder round sign +syn keyword sqlFunction sin sinh sqrt tan tanh trunc width_bucket +" NLS Functions +syn keyword sqlFunction ls_charset_decl_len nls_charset_id nls_charset_name +" Various Functions +syn keyword sqlFunction bfilename cardin coalesce collect decode dump empty_blob empty_clob +syn keyword sqlFunction lnnvl nullif nvl nvl2 ora_hash powermultiset powermultiset_by_cardinality +syn keyword sqlFunction sys_connect_by_path sys_context sys_guid sys_typeid uid user userenv vsizeality +" XML Functions +syn keyword sqlFunction appendchildxml deletexml depth extract existsnode extractvalue insertchildxml +syn keyword sqlFunction insertxmlbefore path sys_dburigen sys_xmlagg sys_xmlgen updatexml xmlagg xmlcast +syn keyword sqlFunction xmlcdata xmlcolattval xmlcomment xmlconcat xmldiff xmlelement xmlexists xmlforest +syn keyword sqlFunction xmlparse xmlpatch xmlpi xmlquery xmlroot xmlsequence xmlserialize xmltable xmltransform +" Todo: +syn keyword sqlTodo TODO FIXME XXX DEBUG NOTE contained + +" Define the default highlighting. +hi def link Quote Special +hi def link sqlComment Comment +hi def link sqlFunction Function +hi def link sqlKeyword sqlSpecial +hi def link sqlNumber Number +hi def link sqlOperator sqlStatement +hi def link sqlSpecial Special +hi def link sqlStatement Statement +hi def link sqlString String +hi def link sqlType Type +hi def link sqlTodo Todo + +let b:current_syntax = "sql" +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/sqr.vim b/git/usr/share/vim/vim92/syntax/sqr.vim new file mode 100644 index 0000000000000000000000000000000000000000..40b48358c6df210525cf75c484384c3a31d4a0ba --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sqr.vim @@ -0,0 +1,262 @@ +" Vim syntax file +" Language: Structured Query Report Writer (SQR) +" Maintainer: Nathan Stratton Treadway (nathanst at ontko dot com) +" URL: http://www.ontko.com/sqr/#editor_config_files +" +" Modification History: +" 2002-Apr-12: Updated for SQR v6.x +" 2002-Jul-30: Added { and } to iskeyword definition +" 2003-Oct-15: Allow "." in variable names +" highlight entire open '... literal when it contains +" "''" inside it (e.g. "'I can''t say" is treated +" as one open string, not one terminated and one open) +" {} variables can occur inside of '...' literals +" +" Thanks to the previous maintainer of this file, Jeff Lanzarotta: +" http://lanzarotta.tripod.com/vim.html +" jefflanzarotta at yahoo dot com + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +setlocal iskeyword=@,48-57,_,-,#,$,{,} + +syn case ignore + +" BEGIN GENERATED SECTION ============================================ + +" Generated by generate_vim_syntax.sqr at 2002/04/11 13:04 +" (based on the UltraEdit syntax file for SQR 6.1.4 +" found at http://www.ontko.com/sqr/#editor_config_files ) + +syn keyword sqrSection begin-footing begin-heading begin-procedure +syn keyword sqrSection begin-program begin-report begin-setup +syn keyword sqrSection end-footing end-heading end-procedure +syn keyword sqrSection end-program end-report end-setup + +syn keyword sqrParagraph alter-color-map alter-connection +syn keyword sqrParagraph alter-locale alter-printer alter-report +syn keyword sqrParagraph begin-document begin-execute begin-select +syn keyword sqrParagraph begin-sql declare-chart declare-image +syn keyword sqrParagraph declare-color-map declare-connection +syn keyword sqrParagraph declare-layout declare-printer +syn keyword sqrParagraph declare-report declare-procedure +syn keyword sqrParagraph declare-toc declare-variable end-declare +syn keyword sqrParagraph end-document end-select exit-select end-sql +syn keyword sqrParagraph load-lookup + +syn keyword sqrReserved #current-column #current-date #current-line +syn keyword sqrReserved #end-file #page-count #return-status +syn keyword sqrReserved #sql-count #sql-status #sqr-max-columns +syn keyword sqrReserved #sqr-max-lines #sqr-pid #sqr-toc-level +syn keyword sqrReserved #sqr-toc-page $sqr-database {sqr-database} +syn keyword sqrReserved $sqr-dbcs {sqr-dbcs} $sqr-encoding +syn keyword sqrReserved {sqr-encoding} $sqr-encoding-console +syn keyword sqrReserved {sqr-encoding-console} +syn keyword sqrReserved $sqr-encoding-database +syn keyword sqrReserved {sqr-encoding-database} +syn keyword sqrReserved $sqr-encoding-file-input +syn keyword sqrReserved {sqr-encoding-file-input} +syn keyword sqrReserved $sqr-encoding-file-output +syn keyword sqrReserved {sqr-encoding-file-output} +syn keyword sqrReserved $sqr-encoding-report-input +syn keyword sqrReserved {sqr-encoding-report-input} +syn keyword sqrReserved $sqr-encoding-report-output +syn keyword sqrReserved {sqr-encoding-report-output} +syn keyword sqrReserved $sqr-encoding-source {sqr-encoding-source} +syn keyword sqrReserved $sql-error $sqr-hostname {sqr-hostname} +syn keyword sqrReserved $sqr-locale $sqr-platform {sqr-platform} +syn keyword sqrReserved $sqr-program $sqr-report $sqr-toc-text +syn keyword sqrReserved $sqr-ver $username + +syn keyword sqrPreProc #define #else #end-if #endif #if #ifdef +syn keyword sqrPreProc #ifndef #include + +syn keyword sqrCommand add array-add array-divide array-multiply +syn keyword sqrCommand array-subtract ask break call clear-array +syn keyword sqrCommand close columns commit concat connect +syn keyword sqrCommand create-array create-color-palette date-time +syn keyword sqrCommand display divide do dollar-symbol else encode +syn keyword sqrCommand end-evaluate end-if end-while evaluate +syn keyword sqrCommand execute extract find get get-color goto +syn keyword sqrCommand graphic if input last-page let lookup +syn keyword sqrCommand lowercase mbtosbs money-symbol move +syn keyword sqrCommand multiply new-page new-report next-column +syn keyword sqrCommand next-listing no-formfeed open page-number +syn keyword sqrCommand page-size position print print-bar-code +syn keyword sqrCommand print-chart print-direct print-image +syn keyword sqrCommand printer-deinit printer-init put read +syn keyword sqrCommand rollback security set-color set-delay-print +syn keyword sqrCommand set-generations set-levels set-members +syn keyword sqrCommand sbtombs show stop string subtract toc-entry +syn keyword sqrCommand unstring uppercase use use-column +syn keyword sqrCommand use-printer-type use-procedure use-report +syn keyword sqrCommand while write + +syn keyword sqrParam 3d-effects after after-bold after-page +syn keyword sqrParam after-report after-toc and as at-end before +syn keyword sqrParam background batch-mode beep before-bold +syn keyword sqrParam before-page before-report before-toc blink +syn keyword sqrParam bold border bottom-margin box break by +syn keyword sqrParam caption center char char-size char-width +syn keyword sqrParam chars-inch chart-size checksum cl +syn keyword sqrParam clear-line clear-screen color color-palette +syn keyword sqrParam cs color_ data-array +syn keyword sqrParam data-array-column-count +syn keyword sqrParam data-array-column-labels +syn keyword sqrParam data-array-row-count data-labels date +syn keyword sqrParam date-edit-mask date-seperator +syn keyword sqrParam day-of-week-case day-of-week-full +syn keyword sqrParam day-of-week-short decimal decimal-seperator +syn keyword sqrParam default-numeric delay distinct dot-leader +syn keyword sqrParam edit-option-ad edit-option-am +syn keyword sqrParam edit-option-bc edit-option-na +syn keyword sqrParam edit-option-pm encoding entry erase-page +syn keyword sqrParam extent field fill fixed fixed_nolf float +syn keyword sqrParam font font-style font-type footing +syn keyword sqrParam footing-size foreground for-append +syn keyword sqrParam for-reading for-reports for-tocs +syn keyword sqrParam for-writing format formfeed from goto-top +syn keyword sqrParam group having heading heading-size height +syn keyword sqrParam horz-line image-size in indentation +syn keyword sqrParam init-string input-date-edit-mask insert +syn keyword sqrParam integer into item-color item-size key +syn keyword sqrParam layout left-margin legend legend-placement +syn keyword sqrParam legend-presentation legend-title level +syn keyword sqrParam line-height line-size line-width lines-inch +syn keyword sqrParam local locale loops max-columns max-lines +syn keyword sqrParam maxlen money money-edit-mask money-sign +syn keyword sqrParam money-sign-location months-case months-full +syn keyword sqrParam months-short name need newline newpage +syn keyword sqrParam no-advance nolf noline noprompt normal not +syn keyword sqrParam nowait number number-edit-mask on-break +syn keyword sqrParam on-error or order orientation page-depth +syn keyword sqrParam paper-size pie-segment-explode +syn keyword sqrParam pie-segment-percent-display +syn keyword sqrParam pie-segment-quantity-display pitch +syn keyword sqrParam point-markers point-size printer +syn keyword sqrParam printer-type quiet record reset-string +syn keyword sqrParam return_value reverse right-margin rows save +syn keyword sqrParam select size skip skiplines sort source +syn keyword sqrParam sqr-database sqr-platform startup-file +syn keyword sqrParam status stop sub-title symbol-set system +syn keyword sqrParam table text thousand-seperator +syn keyword sqrParam time-seperator times title to toc +syn keyword sqrParam top-margin type underline update using +syn keyword sqrParam value vary vert-line wait warn when +syn keyword sqrParam when-other where with x-axis-grid +syn keyword sqrParam x-axis-label x-axis-major-increment +syn keyword sqrParam x-axis-major-tick-marks x-axis-max-value +syn keyword sqrParam x-axis-min-value x-axis-minor-increment +syn keyword sqrParam x-axis-minor-tick-marks x-axis-rotate +syn keyword sqrParam x-axis-scale x-axis-tick-mark-placement xor +syn keyword sqrParam y-axis-grid y-axis-label +syn keyword sqrParam y-axis-major-increment +syn keyword sqrParam y-axis-major-tick-marks y-axis-max-value +syn keyword sqrParam y-axis-min-value y-axis-minor-increment +syn keyword sqrParam y-axis-minor-tick-marks y-axis-scale +syn keyword sqrParam y-axis-tick-mark-placement y2-type +syn keyword sqrParam y2-data-array y2-data-array-row-count +syn keyword sqrParam y2-data-array-column-count +syn keyword sqrParam y2-data-array-column-labels +syn keyword sqrParam y2-axis-color-palette y2-axis-label +syn keyword sqrParam y2-axis-major-increment +syn keyword sqrParam y2-axis-major-tick-marks y2-axis-max-value +syn keyword sqrParam y2-axis-min-value y2-axis-minor-increment +syn keyword sqrParam y2-axis-minor-tick-marks y2-axis-scale + +syn keyword sqrFunction abs acos asin atan array ascii asciic ceil +syn keyword sqrFunction cos cosh chr cond deg delete dateadd +syn keyword sqrFunction datediff datenow datetostr e10 exp edit +syn keyword sqrFunction exists floor getenv instr instrb isblank +syn keyword sqrFunction isnull log log10 length lengthb lengthp +syn keyword sqrFunction lengtht lower lpad ltrim mod nvl power rad +syn keyword sqrFunction round range replace roman rpad rtrim rename +syn keyword sqrFunction sign sin sinh sqrt substr substrb substrp +syn keyword sqrFunction substrt strtodate tan tanh trunc to_char +syn keyword sqrFunction to_multi_byte to_number to_single_byte +syn keyword sqrFunction transform translate unicode upper wrapdepth + +" END GENERATED SECTION ============================================== + +" Variables +syn match sqrVariable /\(\$\|#\|&\)\(\k\|\.\)*/ + + +" Debug compiler directives +syn match sqrPreProc /\s*#debug\a\=\(\s\|$\)/ +syn match sqrSubstVar /{\k*}/ + + +" Strings +" Note: if an undoubled ! is found, this is not a valid string +" (SQR will treat the end of the line as a comment) +syn match sqrString /'\(!!\|[^!']\)*'/ contains=sqrSubstVar +syn match sqrStrOpen /'\(!!\|''\|[^!']\)*$/ +" If we find a ' followed by an unmatched ! before a matching ', +" flag the error. +syn match sqrError /'\(!!\|[^'!]\)*![^!]/me=e-1 +syn match sqrError /'\(!!\|[^'!]\)*!$/ + +" Numbers: +syn match sqrNumber /-\=\<\d*\.\=[0-9_]\>/ + + + +" Comments: +" Handle comments that start with "!=" specially; they are only valid +" in the first column of the source line. Also, "!!" is only treated +" as a start-comment if there is only whitespace ahead of it on the line. + +syn keyword sqrTodo TODO FIXME XXX DEBUG NOTE ### +syn match sqrTodo /???/ + +" See also the sqrString section above for handling of ! characters +" inside of strings. (Those patterns override the ones below.) +syn match sqrComment /!\@ +" Last Change: 2005 Jun 12 +" URL: http://www.hampft.de/vim/syntax/squid.vim +" ThanksTo: Ilya Sher , +" Michael Dotzler + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" squid.conf syntax seems to be case insensitive +syn case ignore + +syn keyword squidTodo contained TODO +syn match squidComment "#.*$" contains=squidTodo,squidTag +syn match squidTag contained "TAG: .*$" + +" Lots & lots of Keywords! +syn keyword squidConf acl always_direct announce_host announce_period +syn keyword squidConf announce_port announce_to anonymize_headers +syn keyword squidConf append_domain as_whois_server auth_param_basic +syn keyword squidConf authenticate_children authenticate_program +syn keyword squidConf authenticate_ttl broken_posts buffered_logs +syn keyword squidConf cache_access_log cache_announce cache_dir +syn keyword squidConf cache_dns_program cache_effective_group +syn keyword squidConf cache_effective_user cache_host cache_host_acl +syn keyword squidConf cache_host_domain cache_log cache_mem +syn keyword squidConf cache_mem_high cache_mem_low cache_mgr +syn keyword squidConf cachemgr_passwd cache_peer cache_peer_access +syn keyword squidConf cache_replacement_policy cache_stoplist +syn keyword squidConf cache_stoplist_pattern cache_store_log cache_swap +syn keyword squidConf cache_swap_high cache_swap_log cache_swap_low +syn keyword squidConf client_db client_lifetime client_netmask +syn keyword squidConf connect_timeout coredump_dir dead_peer_timeout +syn keyword squidConf debug_options delay_access delay_class +syn keyword squidConf delay_initial_bucket_level delay_parameters +syn keyword squidConf delay_pools deny_info dns_children dns_defnames +syn keyword squidConf dns_nameservers dns_testnames emulate_httpd_log +syn keyword squidConf err_html_text fake_user_agent firewall_ip +syn keyword squidConf forwarded_for forward_snmpd_port fqdncache_size +syn keyword squidConf ftpget_options ftpget_program ftp_list_width +syn keyword squidConf ftp_passive ftp_user half_closed_clients +syn keyword squidConf header_access header_replace hierarchy_stoplist +syn keyword squidConf high_response_time_warning high_page_fault_warning +syn keyword squidConf htcp_port http_access http_anonymizer httpd_accel +syn keyword squidConf httpd_accel_host httpd_accel_port +syn keyword squidConf httpd_accel_uses_host_header +syn keyword squidConf httpd_accel_with_proxy http_port http_reply_access +syn keyword squidConf icp_access icp_hit_stale icp_port +syn keyword squidConf icp_query_timeout ident_lookup ident_lookup_access +syn keyword squidConf ident_timeout incoming_http_average +syn keyword squidConf incoming_icp_average inside_firewall ipcache_high +syn keyword squidConf ipcache_low ipcache_size local_domain local_ip +syn keyword squidConf logfile_rotate log_fqdn log_icp_queries +syn keyword squidConf log_mime_hdrs maximum_object_size +syn keyword squidConf maximum_single_addr_tries mcast_groups +syn keyword squidConf mcast_icp_query_timeout mcast_miss_addr +syn keyword squidConf mcast_miss_encode_key mcast_miss_port memory_pools +syn keyword squidConf memory_pools_limit memory_replacement_policy +syn keyword squidConf mime_table min_http_poll_cnt min_icp_poll_cnt +syn keyword squidConf minimum_direct_hops minimum_object_size +syn keyword squidConf minimum_retry_timeout miss_access negative_dns_ttl +syn keyword squidConf negative_ttl neighbor_timeout neighbor_type_domain +syn keyword squidConf netdb_high netdb_low netdb_ping_period +syn keyword squidConf netdb_ping_rate never_direct no_cache +syn keyword squidConf passthrough_proxy pconn_timeout pid_filename +syn keyword squidConf pinger_program positive_dns_ttl prefer_direct +syn keyword squidConf proxy_auth proxy_auth_realm query_icmp quick_abort +syn keyword squidConf quick_abort quick_abort_max quick_abort_min +syn keyword squidConf quick_abort_pct range_offset_limit read_timeout +syn keyword squidConf redirect_children redirect_program +syn keyword squidConf redirect_rewrites_host_header reference_age +syn keyword squidConf reference_age refresh_pattern reload_into_ims +syn keyword squidConf request_body_max_size request_size request_timeout +syn keyword squidConf shutdown_lifetime single_parent_bypass +syn keyword squidConf siteselect_timeout snmp_access +syn keyword squidConf snmp_incoming_address snmp_port source_ping +syn keyword squidConf ssl_proxy store_avg_object_size +syn keyword squidConf store_objects_per_bucket strip_query_terms +syn keyword squidConf swap_level1_dirs swap_level2_dirs +syn keyword squidConf tcp_incoming_address tcp_outgoing_address +syn keyword squidConf tcp_recv_bufsize test_reachability udp_hit_obj +syn keyword squidConf udp_hit_obj_size udp_incoming_address +syn keyword squidConf udp_outgoing_address unique_hostname +syn keyword squidConf unlinkd_program uri_whitespace useragent_log +syn keyword squidConf visible_hostname wais_relay wais_relay_host +syn keyword squidConf wais_relay_port + +syn keyword squidOpt proxy-only weight ttl no-query default +syn keyword squidOpt round-robin multicast-responder +syn keyword squidOpt on off all deny allow +syn keyword squidopt via parent no-digest heap lru realm +syn keyword squidopt children credentialsttl none disable +syn keyword squidopt offline_toggle diskd q1 q2 + +" Security Actions for cachemgr_passwd +syn keyword squidAction shutdown info parameter server_list +syn keyword squidAction client_list +syn match squidAction "stats/\(objects\|vm_objects\|utilization\|ipcache\|fqdncache\|dns\|redirector\|io\|reply_headers\|filedescriptors\|netdb\)" +syn match squidAction "log\(/\(status\|enable\|disable\|clear\)\)\=" +syn match squidAction "squid\.conf" + +" Keywords for the acl-config +syn keyword squidAcl url_regex urlpath_regex referer_regex port proto +syn keyword squidAcl req_mime_type rep_mime_type +syn keyword squidAcl method browser user src dst +syn keyword squidAcl time dstdomain ident snmp_community + +syn match squidNumber "\<\d\+\>" +syn match squidIP "\<\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\>" +syn match squidStr "\(^\s*acl\s\+\S\+\s\+\(\S*_regex\|re[pq]_mime_type\|browser\|_domain\|user\)\+\s\+\)\@<=.*" contains=squidRegexOpt +syn match squidRegexOpt contained "\(^\s*acl\s\+\S\+\s\+\S\+\(_regex\|_mime_type\)\s\+\)\@<=[-+]i\s\+" + +" All config is in one line, so this has to be sufficient +" Make it fast like hell :) +syn sync minlines=3 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link squidTodo Todo +hi def link squidComment Comment +hi def link squidTag Special +hi def link squidConf Keyword +hi def link squidOpt Constant +hi def link squidAction String +hi def link squidNumber Number +hi def link squidIP Number +hi def link squidAcl Keyword +hi def link squidStr String +hi def link squidRegexOpt Special + + +let b:current_syntax = "squid" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/squirrel.vim b/git/usr/share/vim/vim92/syntax/squirrel.vim new file mode 100644 index 0000000000000000000000000000000000000000..85bdd87d9e44f59a614e0b879aef97ed29ccf9a1 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/squirrel.vim @@ -0,0 +1,51 @@ +" Vim syntax file +" Language: squirrel +" Current Maintainer: Matt Dunford (zenmatic@gmail.com) +" URL: https://github.com/zenmatic/vim-syntax-squirrel +" Last Change: 2023 Dec 08 + +" http://squirrel-lang.org/ + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" inform C syntax that the file was included from cpp.vim +let b:filetype_in_cpp_family = 1 + +" Read the C syntax to start with +runtime! syntax/c.vim +unlet b:current_syntax +unlet b:filetype_in_cpp_family + +" squirrel extensions +syn keyword squirrelStatement delete this in yield resume base clone +syn keyword squirrelAccess local +syn keyword cConstant null +syn keyword squirrelModifier static +syn keyword squirrelType bool instanceof typeof +syn keyword squirrelExceptions throw try catch +syn keyword squirrelStructure class function extends constructor +syn keyword squirrelBoolean true false +syn keyword squirrelRepeat foreach + +syn region squirrelMultiString start='@"' end='"$' end='";$'me=e-1 + +syn match squirrelShComment "^\s*#.*$" + +" Default highlighting +hi def link squirrelAccess squirrelStatement +hi def link squirrelExceptions Exception +hi def link squirrelStatement Statement +hi def link squirrelModifier Type +hi def link squirrelType Type +hi def link squirrelStructure Structure +hi def link squirrelBoolean Boolean +hi def link squirrelMultiString String +hi def link squirrelRepeat cRepeat +hi def link squirrelShComment Comment + +let b:current_syntax = "squirrel" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/srec.vim b/git/usr/share/vim/vim92/syntax/srec.vim new file mode 100644 index 0000000000000000000000000000000000000000..6ac22d90622e9bbe7dab6e09941fa141fd58e893 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/srec.vim @@ -0,0 +1,83 @@ +" Vim syntax file +" Language: Motorola S-Record +" Maintainer: Markus Heidelberg +" Last Change: 2015 Feb 24 + +" Each record (line) is built as follows: +" +" field digits states +" +" +----------+ +" | start | 1 ('S') srecRecStart +" +----------+ +" | type | 1 srecRecType, (srecRecTypeUnknown) +" +----------+ +" | count | 2 srecByteCount +" +----------+ +" | address | 4/6/8 srecNoAddress, srecDataAddress, srecRecCount, srecStartAddress, (srecAddressFieldUnknown) +" +----------+ +" | data | 0..504/502/500 srecDataOdd, srecDataEven, (srecDataUnexpected) +" +----------+ +" | checksum | 2 srecChecksum +" +----------+ +" +" States in parentheses in the upper format description indicate that they +" should not appear in a valid file. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn match srecRecStart "^S" + +syn match srecRecTypeUnknown "^S." contains=srecRecStart +syn match srecRecType "^S[0-35-9]" contains=srecRecStart + +syn match srecByteCount "^S.[0-9a-fA-F]\{2}" contains=srecRecTypeUnknown nextgroup=srecAddressFieldUnknown,srecChecksum +syn match srecByteCount "^S[0-35-9][0-9a-fA-F]\{2}" contains=srecRecType + +syn match srecAddressFieldUnknown "[0-9a-fA-F]\{2}" contained nextgroup=srecAddressFieldUnknown,srecChecksum + +syn match srecNoAddress "^S0[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum +syn match srecDataAddress "^S1[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum +syn match srecDataAddress "^S2[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum +syn match srecDataAddress "^S3[0-9a-fA-F]\{10}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum +syn match srecRecCount "^S5[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum +syn match srecRecCount "^S6[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum +syn match srecStartAddress "^S7[0-9a-fA-F]\{10}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum +syn match srecStartAddress "^S8[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum +syn match srecStartAddress "^S9[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum + +" alternating highlight per byte for easier reading +syn match srecDataOdd "[0-9a-fA-F]\{2}" contained nextgroup=srecDataEven,srecChecksum +syn match srecDataEven "[0-9a-fA-F]\{2}" contained nextgroup=srecDataOdd,srecChecksum +" data bytes which should not exist +syn match srecDataUnexpected "[0-9a-fA-F]\{2}" contained nextgroup=srecDataUnexpected,srecChecksum +" Data digit pair regex usage also results in only highlighting the checksum +" if the number of data characters is even. + +syn match srecChecksum "[0-9a-fA-F]\{2}$" contained + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +hi def link srecRecStart srecRecType +hi def link srecRecTypeUnknown srecRecType +hi def link srecRecType WarningMsg +hi def link srecByteCount Constant +hi def srecAddressFieldUnknown term=italic cterm=italic gui=italic +hi def link srecNoAddress DiffAdd +hi def link srecDataAddress Comment +hi def link srecRecCount srecNoAddress +hi def link srecStartAddress srecDataAddress +hi def srecDataOdd term=bold cterm=bold gui=bold +hi def srecDataEven term=NONE cterm=NONE gui=NONE +hi def link srecDataUnexpected Error +hi def link srecChecksum DiffChange + + +let b:current_syntax = "srec" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/srt.vim b/git/usr/share/vim/vim92/syntax/srt.vim new file mode 100644 index 0000000000000000000000000000000000000000..12fb264d8e96e7c572549796178b3f7fd0bc230f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/srt.vim @@ -0,0 +1,62 @@ +" Vim syntax file +" Language: SubRip +" Maintainer: ObserverOfTime +" Filenames: *.srt +" Last Change: 2022 Sep 12 + +if exists('b:current_syntax') + finish +endif + +syn spell toplevel + +syn cluster srtSpecial contains=srtBold,srtItalics,srtStrikethrough,srtUnderline,srtFont,srtTag,srtEscape + +" Number +syn match srtNumber /^\d\+$/ contains=@NoSpell + +" Range +syn match srtRange /\d\d:\d\d:\d\d[,.]\d\d\d --> \d\d:\d\d:\d\d[,.]\d\d\d/ skipwhite contains=srtArrow,srtTime nextgroup=srtCoordinates +syn match srtArrow /-->/ contained contains=@NoSpell +syn match srtTime /\d\d:\d\d:\d\d[,.]\d\d\d/ contained contains=@NoSpell +syn match srtCoordinates /X1:\d\+ X2:\d\+ Y1:\d\+ Y2:\d\+/ contained contains=@NoSpell + +" Bold +syn region srtBold matchgroup=srtFormat start=++ end=++ contains=@srtSpecial +syn region srtBold matchgroup=srtFormat start=+{b}+ end=+{/b}+ contains=@srtSpecial + +" Italics +syn region srtItalics matchgroup=srtFormat start=++ end=++ contains=@srtSpecial +syn region srtItalics matchgroup=srtFormat start=+{i}+ end=+{/i}+ contains=@srtSpecial + +" Strikethrough +syn region srtStrikethrough matchgroup=srtFormat start=++ end=++ contains=@srtSpecial +syn region srtStrikethrough matchgroup=srtFormat start=+{s}+ end=+{/s}+ contains=@srtSpecial + +" Underline +syn region srtUnderline matchgroup=srtFormat start=++ end=++ contains=@srtSpecial +syn region srtUnderline matchgroup=srtFormat start=+{u}+ end=+{/u}+ contains=@srtSpecial + +" Font +syn region srtFont matchgroup=srtFormat start=+]\{-}>+ end=++ contains=@srtSpecial + +" ASS tags +syn match srtTag /{\\[^}]\{1,}}/ contains=@NoSpell + +" Special characters +syn match srtEscape /\\[nNh]/ contains=@NoSpell + +hi def link srtArrow Delimiter +hi def link srtCoordinates Label +hi def link srtEscape SpecialChar +hi def link srtFormat Special +hi def link srtNumber Number +hi def link srtTag PreProc +hi def link srtTime String + +hi srtBold cterm=bold gui=bold +hi srtItalics cterm=italic gui=italic +hi srtStrikethrough cterm=strikethrough gui=strikethrough +hi srtUnderline cterm=underline gui=underline + +let b:current_syntax = 'srt' diff --git a/git/usr/share/vim/vim92/syntax/ssa.vim b/git/usr/share/vim/vim92/syntax/ssa.vim new file mode 100644 index 0000000000000000000000000000000000000000..3cfae816ffea23aaa17e4f1912acea620f6e3f2e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/ssa.vim @@ -0,0 +1,67 @@ +" Vim syntax file +" Language: SubStation Alpha +" Maintainer: ObserverOfTime +" Filenames: *.ass,*.ssa +" Last Change: 2024 Apr 28 + +if exists('b:current_syntax') + finish +endif + +" Comments +syn keyword ssaTodo TODO FIXME NOTE XXX contained +syn match ssaComment /^\(;\|!:\).*$/ contains=ssaTodo,@Spell +syn match ssaTextComment /{[^}]*}/ contained contains=@Spell + +" Sections +syn match ssaSection /^\[[a-zA-Z0-9+ ]\+\]$/ + +" Headers +syn match ssaHeader /^[^;!:]\+:/ skipwhite nextgroup=ssaField + +" Fields +syn match ssaField /[^,]*\(,\|$\)/ contained skipwhite contains=ssaDelimiter,ssaTime nextgroup=ssaField + +" Time +syn match ssaTime /\d:\d\d:\d\d\.\d\d/ contained + +" Delimiter +syn match ssaDelimiter /,/ contained + +" Dialogue +syn match ssaDialogue /^Dialogue:/ transparent skipwhite nextgroup=ssaDialogueFields +syn match ssaDialogueFields /\([^,]*,\)\{9\}/ contained transparent skipwhite contains=ssaField,ssaDelimiter nextgroup=ssaText + +" Text +syn match ssaText /.*$/ contained contains=@ssaTags,@Spell +syn cluster ssaTags contains=ssaOverrideTag,ssaEscapeChar,ssaTextComment,ssaItalics,ssaBold,ssaUnderline,ssaStrikeout + +" Override tags +syn match ssaOverrideTag /{\\[^}]\+}/ contained contains=@NoSpell + +" Special characters +syn match ssaEscapeChar /\\[nNh{}]/ contained contains=@NoSpell + +" Markup +syn region ssaItalics start=/{\\i1}/ end=/{\\i0}/ matchgroup=ssaOverrideTag keepend oneline contained contains=@ssaTags,@Spell +syn region ssaBold start=/{\\b1}/ end=/{\\b0}/ matchgroup=ssaOverrideTag keepend oneline contained contains=@ssaTags,@Spell +syn region ssaUnderline start=/{\\u1}/ end=/{\\u0}/ matchgroup=ssaOverrideTag keepend oneline contained contains=@ssaTags,@Spell +syn region ssaStrikeout start=/{\\s1}/ end=/{\\s0}/ matchgroup=ssaOverrideTag keepend oneline contained contains=@ssaTags,@Spell + +hi def link ssaDelimiter Delimiter +hi def link ssaComment Comment +hi def link ssaEscapeChar SpecialChar +hi def link ssaField String +hi def link ssaHeader Label +hi def link ssaSection StorageClass +hi def link ssaOverrideTag Special +hi def link ssaTextComment Comment +hi def link ssaTime Number +hi def link ssaTodo Todo + +hi ssaBold cterm=bold gui=bold +hi ssaItalics cterm=italic gui=italic +hi ssaStrikeout cterm=strikethrough gui=strikethrough +hi ssaUnderline cterm=underline gui=underline + +let b:current_syntax = 'ssa' diff --git a/git/usr/share/vim/vim92/syntax/sshconfig.vim b/git/usr/share/vim/vim92/syntax/sshconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..291a1a636a57c4cf59c7edc89d1809d944c57f73 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sshconfig.vim @@ -0,0 +1,304 @@ +" Vim syntax file +" Language: OpenSSH client configuration file (ssh_config) +" Author: David Necas (Yeti) +" Maintainer: Jakub Jelen +" Previous Maintainer: Dominik Fischer +" Contributor: Leonard Ehrenfried +" Karsten Hopp +" Dean, Adam Kenneth +" Last Change: 2026 Mar 31 +" SSH Version: 10.1p1 +" + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +setlocal iskeyword=_,-,a-z,A-Z,48-57 + + +" case on +syn case match + + +" Comments +syn match sshconfigComment "^#.*$" contains=sshconfigTodo +syn match sshconfigComment "\s#.*$" contains=sshconfigTodo + +syn keyword sshconfigTodo TODO FIXME NOTE contained + + +" Constants +syn keyword sshconfigYesNo yes no ask confirm +syn keyword sshconfigYesNo any auto +syn keyword sshconfigYesNo force autoask none + +syn keyword sshconfigCipher 3des blowfish + +syn keyword sshconfigCiphers 3des-cbc +syn keyword sshconfigCiphers blowfish-cbc +syn keyword sshconfigCiphers cast128-cbc +syn keyword sshconfigCiphers arcfour +syn keyword sshconfigCiphers arcfour128 +syn keyword sshconfigCiphers arcfour256 +syn keyword sshconfigCiphers aes128-cbc +syn keyword sshconfigCiphers aes192-cbc +syn keyword sshconfigCiphers aes256-cbc +syn match sshconfigCiphers "\" +syn keyword sshconfigCiphers aes128-ctr +syn keyword sshconfigCiphers aes192-ctr +syn keyword sshconfigCiphers aes256-ctr +syn match sshconfigCiphers "\" +syn match sshconfigCiphers "\" +syn match sshconfigCiphers "\" + +syn keyword sshconfigMAC hmac-sha1 +syn keyword sshconfigMAC hmac-sha1-96 +syn keyword sshconfigMAC hmac-sha2-256 +syn keyword sshconfigMAC hmac-sha2-512 +syn keyword sshconfigMAC hmac-md5 +syn keyword sshconfigMAC hmac-md5-96 +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" +syn match sshconfigMAC "\" + +syn keyword sshconfigHostKeyAlgo ssh-ed25519 +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn keyword sshconfigHostKeyAlgo ssh-rsa +syn keyword sshconfigHostKeyAlgo rsa-sha2-256 +syn keyword sshconfigHostKeyAlgo rsa-sha2-512 +syn keyword sshconfigHostKeyAlgo ssh-dss +syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp256 +syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp384 +syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp521 +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" +syn match sshconfigHostKeyAlgo "\" + +syn keyword sshconfigPreferredAuth hostbased publickey password gssapi-with-mic +syn keyword sshconfigPreferredAuth keyboard-interactive + +syn keyword sshconfigLogLevel QUIET FATAL ERROR INFO VERBOSE +syn keyword sshconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 +syn keyword sshconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1 +syn keyword sshconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 +syn keyword sshconfigAddressFamily inet inet6 + +syn match sshconfigIPQoS "\" +syn match sshconfigIPQoS "\" +syn keyword sshconfigIPQoS ef le +syn keyword sshconfigIPQoSDeprecated lowdelay throughput reliability +syn keyword sshconfigKbdInteractive bsdauth pam skey + +syn keyword sshconfigKexAlgo diffie-hellman-group1-sha1 +syn keyword sshconfigKexAlgo diffie-hellman-group14-sha1 +syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha1 +syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha256 +syn keyword sshconfigKexAlgo diffie-hellman-group16-sha512 +syn keyword sshconfigKexAlgo diffie-hellman-group18-sha512 +syn keyword sshconfigKexAlgo diffie-hellman-group14-sha256 +syn keyword sshconfigKexAlgo ecdh-sha2-nistp256 +syn keyword sshconfigKexAlgo ecdh-sha2-nistp384 +syn keyword sshconfigKexAlgo ecdh-sha2-nistp521 +syn match sshconfigKexAlgo "\" +syn match sshconfigKexAlgo "\" +syn keyword sshconfigKexAlgo sntrup761x25519-sha512 +syn keyword sshconfigKexAlgo mlkem768x25519-sha256 + +syn keyword sshconfigTunnel point-to-point ethernet + +syn match sshconfigVar "%[CdfHhIijKkLlnprTtu]\>" +syn match sshconfigVar "%%" +syn match sshconfigSpecial "[*?]" +syn match sshconfigNumber "\<\d\+\>" +syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" +syn match sshconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" +syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}[:/]\d\+\>" +syn match sshconfigHostPort "\<\c\(Host \+\)\@<=.\+" +syn match sshconfigHostPort "\<\c\(Hostname \+\)\@<=.\+" + +" case off +syn case ignore + + +" Keywords +syn keyword sshconfigHostSect Host + +syn keyword sshconfigMatch canonical final exec localnetwork host originalhost tagged user localuser all + +syn keyword sshconfigKeyword AddKeysToAgent +syn keyword sshconfigKeyword AddressFamily +syn keyword sshconfigKeyword BatchMode +syn keyword sshconfigKeyword BindAddress +syn keyword sshconfigKeyword BindInterface +syn keyword sshconfigKeyword CanonicalDomains +syn keyword sshconfigKeyword CanonicalizeFallbackLocal +syn keyword sshconfigKeyword CanonicalizeHostname +syn keyword sshconfigKeyword CanonicalizeMaxDots +syn keyword sshconfigKeyword CanonicalizePermittedCNAMEs +syn keyword sshconfigKeyword CASignatureAlgorithms +syn keyword sshconfigKeyword CertificateFile +syn keyword sshconfigKeyword ChallengeResponseAuthentication +syn keyword sshconfigKeyword ChannelTimeout +syn keyword sshconfigKeyword CheckHostIP +syn keyword sshconfigKeyword Ciphers +syn keyword sshconfigKeyword ClearAllForwardings +syn keyword sshconfigKeyword Compression +syn keyword sshconfigKeyword ConnectionAttempts +syn keyword sshconfigKeyword ConnectTimeout +syn keyword sshconfigKeyword ControlMaster +syn keyword sshconfigKeyword ControlPath +syn keyword sshconfigKeyword ControlPersist +syn keyword sshconfigKeyword DynamicForward +syn keyword sshconfigKeyword EnableEscapeCommandline +syn keyword sshconfigKeyword EnableSSHKeysign +syn keyword sshconfigKeyword EscapeChar +syn keyword sshconfigKeyword ExitOnForwardFailure +syn keyword sshconfigKeyword FingerprintHash +syn keyword sshconfigKeyword ForkAfterAuthentication +syn keyword sshconfigKeyword ForwardAgent +syn keyword sshconfigKeyword ForwardX11 +syn keyword sshconfigKeyword ForwardX11Timeout +syn keyword sshconfigKeyword ForwardX11Trusted +syn keyword sshconfigKeyword GatewayPorts +syn keyword sshconfigKeyword GlobalKnownHostsFile +syn keyword sshconfigKeyword GSSAPIAuthentication +syn keyword sshconfigKeyword GSSAPIDelegateCredentials +syn keyword sshconfigKeyword HashKnownHosts +syn keyword sshconfigKeyword HostbasedAcceptedAlgorithms +syn keyword sshconfigKeyword HostbasedAuthentication +syn keyword sshconfigKeyword HostbasedKeyTypes +syn keyword sshconfigKeyword HostKeyAlgorithms +syn keyword sshconfigKeyword HostKeyAlias +syn keyword sshconfigKeyword Hostname +syn keyword sshconfigKeyword IdentitiesOnly +syn keyword sshconfigKeyword IdentityAgent +syn keyword sshconfigKeyword IdentityFile +syn keyword sshconfigKeyword IgnoreUnknown +syn keyword sshconfigKeyword Include +syn keyword sshconfigKeyword IPQoS +syn keyword sshconfigKeyword KbdInteractiveAuthentication +syn keyword sshconfigKeyword KbdInteractiveDevices +syn keyword sshconfigKeyword KexAlgorithms +syn keyword sshconfigKeyword KnownHostsCommand +syn keyword sshconfigKeyword LocalCommand +syn keyword sshconfigKeyword LocalForward +syn keyword sshconfigKeyword LogLevel +syn keyword sshconfigKeyword LogVerbose +syn keyword sshconfigKeyword MACs +syn keyword sshconfigKeyword Match +syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost +syn keyword sshconfigKeyword NumberOfPasswordPrompts +syn keyword sshconfigKeyword ObscureKeystrokeTiming +syn keyword sshconfigKeyword PasswordAuthentication +syn keyword sshconfigKeyword PermitLocalCommand +syn keyword sshconfigKeyword PermitRemoteOpen +syn keyword sshconfigKeyword PKCS11Provider +syn keyword sshconfigKeyword Port +syn keyword sshconfigKeyword PreferredAuthentications +syn keyword sshconfigKeyword ProxyCommand +syn keyword sshconfigKeyword ProxyJump +syn keyword sshconfigKeyword ProxyUseFdpass +syn keyword sshconfigKeyword PubkeyAcceptedAlgorithms +syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes +syn keyword sshconfigKeyword PubkeyAuthentication +syn keyword sshconfigKeyword RefuseConnection +syn keyword sshconfigKeyword RekeyLimit +syn keyword sshconfigKeyword RemoteCommand +syn keyword sshconfigKeyword RemoteForward +syn keyword sshconfigKeyword RequestTTY +syn keyword sshconfigKeyword RequiredRSASize +syn keyword sshconfigKeyword RevokedHostKeys +syn keyword sshconfigKeyword SecurityKeyProvider +syn keyword sshconfigKeyword SendEnv +syn keyword sshconfigKeyword ServerAliveCountMax +syn keyword sshconfigKeyword ServerAliveInterval +syn keyword sshconfigKeyword SessionType +syn keyword sshconfigKeyword SetEnv +syn keyword sshconfigKeyword SmartcardDevice +syn keyword sshconfigKeyword StdinNull +syn keyword sshconfigKeyword StreamLocalBindMask +syn keyword sshconfigKeyword StreamLocalBindUnlink +syn keyword sshconfigKeyword StrictHostKeyChecking +syn keyword sshconfigKeyword SyslogFacility +syn keyword sshconfigKeyword Tag +syn keyword sshconfigKeyword TCPKeepAlive +syn keyword sshconfigKeyword Tunnel +syn keyword sshconfigKeyword TunnelDevice +syn keyword sshconfigKeyword UpdateHostKeys +syn keyword sshconfigKeyword UseBlacklistedKeys +syn keyword sshconfigKeyword User +syn keyword sshconfigKeyword UserKnownHostsFile +syn keyword sshconfigKeyword VerifyHostKeyDNS +syn keyword sshconfigKeyword VersionAddendum +syn keyword sshconfigKeyword VisualHostKey +syn keyword sshconfigKeyword WarnWeakCrypto +syn keyword sshconfigKeyword XAuthLocation + +" Deprecated/ignored/remove/unsupported keywords + +syn keyword sshConfigDeprecated Cipher +syn keyword sshconfigDeprecated GSSAPIClientIdentity +syn keyword sshconfigDeprecated GSSAPIKeyExchange +syn keyword sshconfigDeprecated GSSAPIRenewalForcesRekey +syn keyword sshconfigDeprecated GSSAPIServerIdentity +syn keyword sshconfigDeprecated GSSAPITrustDNS +syn keyword sshconfigDeprecated GSSAPITrustDns +syn keyword sshconfigDeprecated Protocol +syn keyword sshconfigDeprecated RSAAuthentication +syn keyword sshconfigDeprecated RhostsRSAAuthentication +syn keyword sshconfigDeprecated CompressionLevel +syn keyword sshconfigDeprecated UseRoaming +syn keyword sshconfigDeprecated UsePrivilegedPort + +" Define the default highlighting + +hi def link sshconfigComment Comment +hi def link sshconfigTodo Todo +hi def link sshconfigHostPort sshconfigConstant +hi def link sshconfigNumber Number +hi def link sshconfigConstant Constant +hi def link sshconfigYesNo Boolean +hi def link sshconfigCipher sshconfigDeprecated +hi def link sshconfigCiphers sshconfigEnum +hi def link sshconfigMAC sshconfigEnum +hi def link sshconfigHostKeyAlgo sshconfigEnum +hi def link sshconfigLogLevel sshconfigEnum +hi def link sshconfigSysLogFacility sshconfigEnum +hi def link sshconfigAddressFamily sshconfigEnum +hi def link sshconfigIPQoS sshconfigEnum +hi def link sshconfigIPQoSDeprecated sshconfigDeprecated +hi def link sshconfigKbdInteractive sshconfigEnum +hi def link sshconfigKexAlgo sshconfigEnum +hi def link sshconfigTunnel sshconfigEnum +hi def link sshconfigPreferredAuth sshconfigEnum +hi def link sshconfigVar sshconfigEnum +hi def link sshconfigEnum Identifier +hi def link sshconfigSpecial Special +hi def link sshconfigKeyword Keyword +hi def link sshconfigHostSect Type +hi def link sshconfigMatch Type +hi def link sshconfigDeprecated Error + +let b:current_syntax = "sshconfig" + +" vim:set ts=8 sw=2 sts=2: diff --git a/git/usr/share/vim/vim92/syntax/sshdconfig.vim b/git/usr/share/vim/vim92/syntax/sshdconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..464aa764c86e711ef5e99aa86452dc692a858c48 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sshdconfig.vim @@ -0,0 +1,310 @@ +" Vim syntax file +" Language: OpenSSH server configuration file (sshd_config) +" Author: David Necas (Yeti) +" Maintainer: Jakub Jelen +" Previous Maintainer: Dominik Fischer +" Contributor: Thilo Six +" Contributor: Leonard Ehrenfried +" Contributor: Karsten Hopp +" Contributor: Fionn Fitzmaurice (github.com/fionn) +" Originally: 2009-07-09 +" Last Change: 2026-03-11 +" SSH Version: 10.1p1 +" + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +setlocal iskeyword=_,-,a-z,A-Z,48-57 + + +" case on +syn case match + + +" Comments +syn match sshdconfigComment "^#.*$" contains=sshdconfigTodo +syn match sshdconfigComment "\s#.*$" contains=sshdconfigTodo + +syn keyword sshdconfigTodo TODO FIXME NOTE contained + +" Constants +syn keyword sshdconfigYesNo yes no none + +syn keyword sshdconfigAddressFamily any inet inet6 + +syn keyword sshdconfigPrivilegeSeparation sandbox + +syn keyword sshdconfigTcpForwarding local remote + +syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only + +syn keyword sshdconfigPubkeyAuthOptions touch-required verify-required + +syn keyword sshdconfigCiphers 3des-cbc +syn keyword sshdconfigCiphers blowfish-cbc +syn keyword sshdconfigCiphers cast128-cbc +syn keyword sshdconfigCiphers arcfour +syn keyword sshdconfigCiphers arcfour128 +syn keyword sshdconfigCiphers arcfour256 +syn keyword sshdconfigCiphers aes128-cbc +syn keyword sshdconfigCiphers aes192-cbc +syn keyword sshdconfigCiphers aes256-cbc +syn match sshdconfigCiphers "\" +syn keyword sshdconfigCiphers aes128-ctr +syn keyword sshdconfigCiphers aes192-ctr +syn keyword sshdconfigCiphers aes256-ctr +syn match sshdconfigCiphers "\" +syn match sshdconfigCiphers "\" +syn match sshdconfigCiphers "\" + +syn keyword sshdconfigMAC hmac-sha1 +syn keyword sshdconfigMAC hmac-sha1-96 +syn keyword sshdconfigMAC hmac-sha2-256 +syn keyword sshdconfigMAC hmac-sha2-512 +syn keyword sshdconfigMAC hmac-md5 +syn keyword sshdconfigMAC hmac-md5-96 +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" +syn match sshdconfigMAC "\" + +syn keyword sshdconfigHostKeyAlgo ssh-ed25519 +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn keyword sshdconfigHostKeyAlgo ssh-rsa +syn keyword sshdconfigHostKeyAlgo rsa-sha2-256 +syn keyword sshdconfigHostKeyAlgo rsa-sha2-512 +syn keyword sshdconfigHostKeyAlgo ssh-dss +syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp256 +syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp384 +syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp521 +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" +syn match sshdconfigHostKeyAlgo "\" + +syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only + +syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE +syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 +syn keyword sshdconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1 +syn keyword sshdconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 + +syn keyword sshdconfigCompression delayed + +syn match sshdconfigIPQoS "\" +syn match sshdconfigIPQoS "\" +syn keyword sshdconfigIPQoS ef le +syn keyword sshdconfigIPQoSDeprecated lowdelay throughput reliability + +syn keyword sshdconfigKexAlgo diffie-hellman-group1-sha1 +syn keyword sshdconfigKexAlgo diffie-hellman-group14-sha1 +syn keyword sshdconfigKexAlgo diffie-hellman-group14-sha256 +syn keyword sshdconfigKexAlgo diffie-hellman-group16-sha512 +syn keyword sshdconfigKexAlgo diffie-hellman-group18-sha512 +syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha1 +syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha256 +syn keyword sshdconfigKexAlgo ecdh-sha2-nistp256 +syn keyword sshdconfigKexAlgo ecdh-sha2-nistp384 +syn keyword sshdconfigKexAlgo ecdh-sha2-nistp521 +syn keyword sshdconfigKexAlgo mlkem768x25519-sha256 +syn keyword sshdconfigKexAlgo mlkem768nistp256-sha256 +syn keyword sshdconfigKexAlgo mlkem1024nistp384-sha384 + +syn match sshdconfigKexAlgo "\" +syn match sshdconfigKexAlgo "\" +syn match sshdconfigKexAlgo "\" + +syn keyword sshdconfigTunnel point-to-point ethernet + +syn keyword sshdconfigSubsystem internal-sftp + +syn match sshdconfigVar "%[CDFfhiKksTtUu]\>" +syn match sshdconfigVar "%%" + +syn match sshdconfigSpecial "[*?]" + +syn match sshdconfigNumber "\<\d\+\>" +syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" +syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" +" FIXME: this matches quite a few things which are NOT valid IPv6 addresses +syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>" +syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>" + + +" case off +syn case ignore + + +" Keywords +" Also includes RDomain, but that is a keyword. +syn keyword sshdconfigMatch Host User Group Address LocalAddress LocalPort + +syn keyword sshdconfigKeyword AcceptEnv +syn keyword sshdconfigKeyword AddressFamily +syn keyword sshdconfigKeyword AllowAgentForwarding +syn keyword sshdconfigKeyword AllowGroups +syn keyword sshdconfigKeyword AllowStreamLocalForwarding +syn keyword sshdconfigKeyword AllowTcpForwarding +syn keyword sshdconfigKeyword AllowUsers +syn keyword sshdconfigKeyword AuthenticationMethods +syn keyword sshdconfigKeyword AuthorizedKeysCommand +syn keyword sshdconfigKeyword AuthorizedKeysCommandUser +syn keyword sshdconfigKeyword AuthorizedKeysFile +syn keyword sshdconfigKeyword AuthorizedPrincipalsCommand +syn keyword sshdconfigKeyword AuthorizedPrincipalsCommandUser +syn keyword sshdconfigKeyword AuthorizedPrincipalsFile +syn keyword sshdconfigKeyword Banner +syn keyword sshdconfigKeyword CASignatureAlgorithms +syn keyword sshdconfigKeyword ChallengeResponseAuthentication +syn keyword sshdconfigKeyword ChannelTimeout +syn keyword sshdconfigKeyword ChrootDirectory +syn keyword sshdconfigKeyword Ciphers +syn keyword sshdconfigKeyword ClientAliveCountMax +syn keyword sshdconfigKeyword ClientAliveInterval +syn keyword sshdconfigKeyword Compression +syn keyword sshdconfigKeyword DebianBanner +syn keyword sshdconfigKeyword DenyGroups +syn keyword sshdconfigKeyword DenyUsers +syn keyword sshdconfigKeyword DisableForwarding +syn keyword sshdconfigKeyword ExposeAuthInfo +syn keyword sshdconfigKeyword FingerprintHash +syn keyword sshdconfigKeyword ForceCommand +syn keyword sshdconfigKeyword GatewayPorts +syn keyword sshdconfigKeyword GSSAPIAuthentication +syn keyword sshdconfigKeyword GSSAPICleanupCredentials +syn keyword sshdconfigKeyword GSSAPIEnablek5users +syn keyword sshdconfigKeyword GSSAPIKexAlgorithms +syn keyword sshdconfigKeyword GSSAPIKeyExchange +syn keyword sshdconfigKeyword GSSAPIStoreCredentialsOnRekey +syn keyword sshdconfigKeyword GSSAPIDelegateCredentials +syn keyword sshdconfigKeyword GSSAPIStrictAcceptorCheck +syn keyword sshdconfigKeyword HostbasedAcceptedAlgorithms +syn keyword sshdconfigKeyword HostbasedAuthentication +syn keyword sshdconfigKeyword HostbasedUsesNameFromPacketOnly +syn keyword sshdconfigKeyword HostCertificate +syn keyword sshdconfigKeyword HostKey +syn keyword sshdconfigKeyword HostKeyAgent +syn keyword sshdconfigKeyword HostKeyAlgorithms +syn keyword sshdconfigKeyword IgnoreRhosts +syn keyword sshdconfigKeyword IgnoreUserKnownHosts +syn keyword sshdconfigKeyword Include +syn keyword sshdconfigKeyword IPQoS +syn keyword sshdconfigKeyword KbdInteractiveAuthentication +syn keyword sshdconfigKeyword KerberosAuthentication +syn keyword sshdconfigKeyword KerberosGetAFSToken +syn keyword sshdconfigKeyword KerberosOrLocalPasswd +syn keyword sshdconfigKeyword KerberosTicketCleanup +syn keyword sshdconfigKeyword KexAlgorithms +syn keyword sshdconfigKeyword ListenAddress +syn keyword sshdconfigKeyword LoginGraceTime +syn keyword sshdconfigKeyword LogLevel +syn keyword sshdconfigKeyword LogVerbose +syn keyword sshdconfigKeyword MACs +syn keyword sshdconfigKeyword Match +syn keyword sshdconfigKeyword MaxAuthTries +syn keyword sshdconfigKeyword MaxSessions +syn keyword sshdconfigKeyword MaxStartups +syn keyword sshdconfigKeyword ModuliFile +syn keyword sshdconfigKeyword PAMServiceName +syn keyword sshdconfigKeyword PasswordAuthentication +syn keyword sshdconfigKeyword PermitEmptyPasswords +syn keyword sshdconfigKeyword PermitListen +syn keyword sshdconfigKeyword PermitOpen +syn keyword sshdconfigKeyword PermitRootLogin +syn keyword sshdconfigKeyword PermitTTY +syn keyword sshdconfigKeyword PermitTunnel +syn keyword sshdconfigKeyword PermitUserEnvironment +syn keyword sshdconfigKeyword PermitUserRC +syn keyword sshdconfigKeyword PerSourceMaxStartups +syn keyword sshdconfigKeyword PerSourceNetBlockSize +syn keyword sshdconfigKeyword PerSourcePenalties +syn keyword sshdconfigKeyword PerSourcePenaltyExemptList +syn keyword sshdconfigKeyword PidFile +syn keyword sshdconfigKeyword Port +syn keyword sshdconfigKeyword PrintLastLog +syn keyword sshdconfigKeyword PrintMotd +syn keyword sshdconfigKeyword PubkeyAcceptedAlgorithms +syn keyword sshdconfigKeyword PubkeyAcceptedKeyTypes +syn keyword sshdconfigKeyword PubkeyAuthentication +syn keyword sshdconfigKeyword PubkeyAuthOptions +syn keyword sshdconfigKeyword RDomain +syn keyword sshdconfigKeyword RefuseConnection +syn keyword sshdconfigKeyword RekeyLimit +syn keyword sshdconfigKeyword RequiredRSASize +syn keyword sshdconfigKeyword RevokedKeys +syn keyword sshdconfigKeyword SecurityKeyProvider +syn keyword sshdconfigKeyword SetEnv +syn keyword sshdconfigKeyword SshdAuthPath +syn keyword sshdconfigKeyword SshdSessionPath +syn keyword sshdconfigKeyword StreamLocalBindMask +syn keyword sshdconfigKeyword StreamLocalBindUnlink +syn keyword sshdconfigKeyword StrictModes +syn keyword sshdconfigKeyword Subsystem +syn keyword sshdconfigKeyword SyslogFacility +syn keyword sshdconfigKeyword TCPKeepAlive +syn keyword sshdconfigKeyword TrustedUserCAKeys +syn keyword sshdconfigKeyword UnusedConnectionTimeout +syn keyword sshdconfigKeyword UseDNS +syn keyword sshdconfigKeyword UsePAM +syn keyword sshdconfigKeyword VersionAddendum +syn keyword sshdconfigKeyword X11DisplayOffset +syn keyword sshdconfigKeyword X11Forwarding +syn keyword sshdconfigKeyword X11MaxDisplays +syn keyword sshdconfigKeyword X11UseLocalhost +syn keyword sshdconfigKeyword XAuthLocation + + +" Define the default highlighting + +hi def link sshdconfigComment Comment +hi def link sshdconfigTodo Todo +hi def link sshdconfigHostPort sshdconfigConstant +hi def link sshdconfigTime Number +hi def link sshdconfigNumber Number +hi def link sshdconfigConstant Constant +hi def link sshdconfigYesNo Boolean +hi def link sshdconfigAddressFamily sshdconfigEnum +hi def link sshdconfigPrivilegeSeparation sshdconfigEnum +hi def link sshdconfigTcpForwarding sshdconfigEnum +hi def link sshdconfigCiphers sshdconfigEnum +hi def link sshdconfigMAC sshdconfigEnum +hi def link sshdconfigHostKeyAlgo sshdconfigEnum +hi def link sshdconfigRootLogin sshdconfigEnum +hi def link sshdconfigLogLevel sshdconfigEnum +hi def link sshdconfigSysLogFacility sshdconfigEnum +hi def link sshdconfigVar sshdconfigEnum +hi def link sshdconfigCompression sshdconfigEnum +hi def link sshdconfigIPQoS sshdconfigEnum +hi def link sshdconfigIPQoSDeprecated sshdconfigDeprecated +hi def link sshdconfigKexAlgo sshdconfigEnum +hi def link sshdconfigTunnel sshdconfigEnum +hi def link sshdconfigSubsystem sshdconfigEnum +hi def link sshdconfigPubkeyAuthOptions sshdconfigEnum +hi def link sshdconfigEnum Function +hi def link sshdconfigSpecial Special +hi def link sshdconfigKeyword Keyword +hi def link sshdconfigMatch Type +hi def link sshdconfigDeprecated Error + +let b:current_syntax = "sshdconfig" + +" vim:set ts=8 sw=2 sts=2: diff --git a/git/usr/share/vim/vim92/syntax/st.vim b/git/usr/share/vim/vim92/syntax/st.vim new file mode 100644 index 0000000000000000000000000000000000000000..ffa7820fe8e5b748e21dac387db833b79bd15aaa --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/st.vim @@ -0,0 +1,95 @@ +" Vim syntax file +" Language: Smalltalk +" Maintainer: Arndt Hesse +" Last Change: 2012 Feb 12 by Thilo Six + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" some Smalltalk keywords and standard methods +syn keyword stKeyword super self class true false new not +syn keyword stKeyword notNil isNil inspect out nil +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" +syn match stMethod "\:" + +" the block of local variables of a method +syn region stLocalVariables start="^[ \t]*|" end="|" + +" the Smalltalk comment +syn region stComment start="\"" end="\"" + +" the Smalltalk strings and single characters +syn region stString start='\'' skip="''" end='\'' +syn match stCharacter "$." + +syn case ignore + +" the symbols prefixed by a '#' +syn match stSymbol "\(#\<[a-z_][a-z0-9_]*\>\)" +syn match stSymbol "\(#'[^']*'\)" + +" the variables in a statement block for loops +syn match stBlockVariable "\(:[ \t]*\<[a-z_][a-z0-9_]*\>[ \t]*\)\+|" contained + +" some representations of numbers +syn match stNumber "\<\d\+\(u\=l\=\|lu\|f\)\>" +syn match stFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>" +syn match stFloat "\<\d\+e[-+]\=\d\+[fl]\=\>" + +syn case match + +" a try to highlight paren mismatches +syn region stParen transparent start='(' end=')' contains=ALLBUT,stParenError +syn match stParenError ")" +syn region stBlock transparent start='\[' end='\]' contains=ALLBUT,stBlockError +syn match stBlockError "\]" +syn region stSet transparent start='{' end='}' contains=ALLBUT,stSetError +syn match stSetError "}" + +hi link stParenError stError +hi link stSetError stError +hi link stBlockError stError + +" synchronization for syntax analysis +syn sync minlines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link stKeyword Statement +hi def link stMethod Statement +hi def link stComment Comment +hi def link stCharacter Constant +hi def link stString Constant +hi def link stSymbol Special +hi def link stNumber Type +hi def link stFloat Type +hi def link stError Error +hi def link stLocalVariables Identifier +hi def link stBlockVariable Identifier + + +let b:current_syntax = "st" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/stata.vim b/git/usr/share/vim/vim92/syntax/stata.vim new file mode 100644 index 0000000000000000000000000000000000000000..29f5052ebe48f14c668896288d5afaff86fa39c4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/stata.vim @@ -0,0 +1,450 @@ +" stata.vim -- Vim syntax file for Stata do, ado, and class files. +" Language: Stata and/or Mata +" Maintainer: Jeff Pitblado +" Last Change: 26apr2006 +" Version: 1.1.4 + +" Log: +" 14apr2006 renamed syntax groups st* to stata* +" 'syntax clear' only under version control +" check for 'b:current_syntax', removed 'did_stata_syntax_inits' +" 17apr2006 fixed start expression for stataFunc +" 26apr2006 fixed brace confusion in stataErrInParen and stataErrInBracket +" fixed paren/bracket confusion in stataFuncGroup + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case match + +" comments - single line +" note that the triple slash continuing line comment comes free +syn region stataStarComment start=/^\s*\*/ end=/$/ contains=stataComment oneline +syn region stataSlashComment start="\s//" end=/$/ contains=stataComment oneline +syn region stataSlashComment start="^//" end=/$/ contains=stataComment oneline +" comments - multiple line +syn region stataComment start="/\*" end="\*/" contains=stataComment + +" global macros - simple case +syn match stataGlobal /\$\a\w*/ +" global macros - general case +syn region stataGlobal start=/\${/ end=/}/ oneline contains=@stataMacroGroup +" local macros - general case +syn region stataLocal start=/`/ end=/'/ oneline contains=@stataMacroGroup + +" numeric formats +syn match stataFormat /%-\=\d\+\.\d\+[efg]c\=/ +" numeric hex format +syn match stataFormat /%-\=21x/ +" string format +syn match stataFormat /%\(\|-\|\~\)\d\+s/ + +" Statements +syn keyword stataConditional else if +syn keyword stataRepeat foreach +syn keyword stataRepeat forv[alues] +syn keyword stataRepeat while + +" Common programming commands +syn keyword stataCommand about +syn keyword stataCommand adopath +syn keyword stataCommand adoupdate +syn keyword stataCommand assert +syn keyword stataCommand break +syn keyword stataCommand by +syn keyword stataCommand cap[ture] +syn keyword stataCommand cd +syn keyword stataCommand chdir +syn keyword stataCommand checksum +syn keyword stataCommand class +syn keyword stataCommand classutil +syn keyword stataCommand compress +syn keyword stataCommand conf[irm] +syn keyword stataCommand conren +syn keyword stataCommand continue +syn keyword stataCommand cou[nt] +syn keyword stataCommand cscript +syn keyword stataCommand cscript_log +syn keyword stataCommand #delimit +syn keyword stataCommand d[escribe] +syn keyword stataCommand dir +syn keyword stataCommand discard +syn keyword stataCommand di[splay] +syn keyword stataCommand do +syn keyword stataCommand doedit +syn keyword stataCommand drop +syn keyword stataCommand edit +syn keyword stataCommand end +syn keyword stataCommand erase +syn keyword stataCommand eret[urn] +syn keyword stataCommand err[or] +syn keyword stataCommand e[xit] +syn keyword stataCommand expand +syn keyword stataCommand expandcl +syn keyword stataCommand file +syn keyword stataCommand findfile +syn keyword stataCommand format +syn keyword stataCommand g[enerate] +syn keyword stataCommand gettoken +syn keyword stataCommand gl[obal] +syn keyword stataCommand help +syn keyword stataCommand hexdump +syn keyword stataCommand include +syn keyword stataCommand infile +syn keyword stataCommand infix +syn keyword stataCommand input +syn keyword stataCommand insheet +syn keyword stataCommand joinby +syn keyword stataCommand la[bel] +syn keyword stataCommand levelsof +syn keyword stataCommand list +syn keyword stataCommand loc[al] +syn keyword stataCommand log +syn keyword stataCommand ma[cro] +syn keyword stataCommand mark +syn keyword stataCommand markout +syn keyword stataCommand marksample +syn keyword stataCommand mata +syn keyword stataCommand matrix +syn keyword stataCommand memory +syn keyword stataCommand merge +syn keyword stataCommand mkdir +syn keyword stataCommand more +syn keyword stataCommand net +syn keyword stataCommand nobreak +syn keyword stataCommand n[oisily] +syn keyword stataCommand note[s] +syn keyword stataCommand numlist +syn keyword stataCommand outfile +syn keyword stataCommand outsheet +syn keyword stataCommand _parse +syn keyword stataCommand pause +syn keyword stataCommand plugin +syn keyword stataCommand post +syn keyword stataCommand postclose +syn keyword stataCommand postfile +syn keyword stataCommand preserve +syn keyword stataCommand print +syn keyword stataCommand printer +syn keyword stataCommand profiler +syn keyword stataCommand pr[ogram] +syn keyword stataCommand q[uery] +syn keyword stataCommand qui[etly] +syn keyword stataCommand rcof +syn keyword stataCommand reg[ress] +syn keyword stataCommand rename +syn keyword stataCommand repeat +syn keyword stataCommand replace +syn keyword stataCommand reshape +syn keyword stataCommand ret[urn] +syn keyword stataCommand _rmcoll +syn keyword stataCommand _rmcoll +syn keyword stataCommand _rmcollright +syn keyword stataCommand rmdir +syn keyword stataCommand _robust +syn keyword stataCommand save +syn keyword stataCommand sca[lar] +syn keyword stataCommand search +syn keyword stataCommand serset +syn keyword stataCommand set +syn keyword stataCommand shell +syn keyword stataCommand sleep +syn keyword stataCommand sort +syn keyword stataCommand split +syn keyword stataCommand sret[urn] +syn keyword stataCommand ssc +syn keyword stataCommand su[mmarize] +syn keyword stataCommand syntax +syn keyword stataCommand sysdescribe +syn keyword stataCommand sysdir +syn keyword stataCommand sysuse +syn keyword stataCommand token[ize] +syn keyword stataCommand translate +syn keyword stataCommand type +syn keyword stataCommand unab +syn keyword stataCommand unabcmd +syn keyword stataCommand update +syn keyword stataCommand use +syn keyword stataCommand vers[ion] +syn keyword stataCommand view +syn keyword stataCommand viewsource +syn keyword stataCommand webdescribe +syn keyword stataCommand webseek +syn keyword stataCommand webuse +syn keyword stataCommand which +syn keyword stataCommand who +syn keyword stataCommand window + +" Literals +syn match stataQuote /"/ +syn region stataEString matchgroup=Nothing start=/`"/ end=/"'/ oneline contains=@stataMacroGroup,stataQuote,stataString,stataEString +syn region stataString matchgroup=Nothing start=/"/ end=/"/ oneline contains=@stataMacroGroup + +" define clusters +syn cluster stataFuncGroup contains=@stataMacroGroup,stataFunc,stataString,stataEstring,stataParen,stataBracket +syn cluster stataMacroGroup contains=stataGlobal,stataLocal +syn cluster stataParenGroup contains=stataParenError,stataBracketError,stataBraceError,stataSpecial,stataFormat + +" Stata functions +" Math +syn region stataFunc matchgroup=Function start=/\" + +" Conditional. +syn keyword stpConditional if else elseif then +syn match stpConditional "\" + +" Repeats. +syn keyword stpRepeat for while loop +syn match stpRepeat "\" + +" Operators. +syn keyword stpOperator asc not and or desc group having in is any some all +syn keyword stpOperator between exists like escape with union intersect minus +syn keyword stpOperator out prior distinct sysdate + +" Statements. +syn keyword stpStatement alter analyze as audit avg by close clustered comment +syn keyword stpStatement commit continue count create cursor declare delete +syn keyword stpStatement drop exec execute explain fetch from index insert +syn keyword stpStatement into lock max min next noaudit nonclustered open +syn keyword stpStatement order output print raiserror recompile rename revoke +syn keyword stpStatement rollback savepoint select set sum transaction +syn keyword stpStatement truncate unique update values where + +" Functions. +syn keyword stpFunction abs acos ascii asin atan atn2 avg ceiling charindex +syn keyword stpFunction charlength convert col_name col_length cos cot count +syn keyword stpFunction curunreservedpgs datapgs datalength dateadd datediff +syn keyword stpFunction datename datepart db_id db_name degree difference +syn keyword stpFunction exp floor getdate hextoint host_id host_name index_col +syn keyword stpFunction inttohex isnull lct_admin log log10 lower ltrim max +syn keyword stpFunction min now object_id object_name patindex pi pos power +syn keyword stpFunction proc_role radians rand replace replicate reserved_pgs +syn keyword stpFunction reverse right rtrim rowcnt round show_role sign sin +syn keyword stpFunction soundex space sqrt str stuff substr substring sum +syn keyword stpFunction suser_id suser_name tan tsequal upper used_pgs user +syn keyword stpFunction user_id user_name valid_name valid_user message + +" Types. +syn keyword stpType binary bit char datetime decimal double float image +syn keyword stpType int integer long money nchar numeric precision real +syn keyword stpType smalldatetime smallint smallmoney text time tinyint +syn keyword stpType timestamp varbinary varchar + +" Globals. +syn match stpGlobals '@@char_convert' +syn match stpGlobals '@@cient_csname' +syn match stpGlobals '@@client_csid' +syn match stpGlobals '@@connections' +syn match stpGlobals '@@cpu_busy' +syn match stpGlobals '@@error' +syn match stpGlobals '@@identity' +syn match stpGlobals '@@idle' +syn match stpGlobals '@@io_busy' +syn match stpGlobals '@@isolation' +syn match stpGlobals '@@langid' +syn match stpGlobals '@@language' +syn match stpGlobals '@@max_connections' +syn match stpGlobals '@@maxcharlen' +syn match stpGlobals '@@ncharsize' +syn match stpGlobals '@@nestlevel' +syn match stpGlobals '@@pack_received' +syn match stpGlobals '@@pack_sent' +syn match stpGlobals '@@packet_errors' +syn match stpGlobals '@@procid' +syn match stpGlobals '@@rowcount' +syn match stpGlobals '@@servername' +syn match stpGlobals '@@spid' +syn match stpGlobals '@@sqlstatus' +syn match stpGlobals '@@testts' +syn match stpGlobals '@@textcolid' +syn match stpGlobals '@@textdbid' +syn match stpGlobals '@@textobjid' +syn match stpGlobals '@@textptr' +syn match stpGlobals '@@textsize' +syn match stpGlobals '@@thresh_hysteresis' +syn match stpGlobals '@@timeticks' +syn match stpGlobals '@@total_error' +syn match stpGlobals '@@total_read' +syn match stpGlobals '@@total_write' +syn match stpGlobals '@@tranchained' +syn match stpGlobals '@@trancount' +syn match stpGlobals '@@transtate' +syn match stpGlobals '@@version' + +" Todos. +syn keyword stpTodo TODO FIXME XXX DEBUG NOTE + +" Strings and characters. +syn match stpStringError "'.*$" +syn match stpString "'\([^']\|''\)*'" + +" Numbers. +syn match stpNumber "-\=\<\d*\.\=[0-9_]\>" + +" Comments. +syn region stpComment start="/\*" end="\*/" contains=stpTodo +syn match stpComment "--.*" contains=stpTodo +syn sync ccomment stpComment + +" Parens. +syn region stpParen transparent start='(' end=')' contains=ALLBUT,stpParenError +syn match stpParenError ")" + +" Syntax Synchronizing. +syn sync minlines=10 maxlines=100 + +" Define the default highlighting. +" Only when and item doesn't have highlighting yet. + +hi def link stpConditional Conditional +hi def link stpComment Comment +hi def link stpKeyword Keyword +hi def link stpNumber Number +hi def link stpOperator Operator +hi def link stpSpecial Special +hi def link stpStatement Statement +hi def link stpString String +hi def link stpStringError Error +hi def link stpType Type +hi def link stpTodo Todo +hi def link stpFunction Function +hi def link stpGlobals Macro +hi def link stpParen Normal +hi def link stpParenError Error +hi def link stpSQLKeyword Function +hi def link stpRepeat Repeat + + +let b:current_syntax = "stp" + +" vim ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/strace.vim b/git/usr/share/vim/vim92/syntax/strace.vim new file mode 100644 index 0000000000000000000000000000000000000000..20516a18531521581a0fe7d27e8ab105efe18182 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/strace.vim @@ -0,0 +1,52 @@ +" Vim syntax file +" Language: strace output +" Maintainer: David Necas (Yeti) +" Last Change: 2022 Jan 29 + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match + +" Parse the line +syn match straceSpecialChar "\\\o\{1,3}\|\\." contained +syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline +syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1 +syn match straceNumber "\W0x\x\+"lc=1 +syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained +syn match straceOtherRHS "?" contained +syn match straceConstant "[A-Z_]\{2,}" +syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline +syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent +syn match straceEquals "\s=\s"ms=s+1,me=e-1 +syn match straceParenthesis "[][(){}]" +syn match straceSysCall "^\w\+" +syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite +syn match straceSysCallEmbed "\w\+" contained +syn keyword stracePID pid contained +syn match straceOperator "[-+=*/!%&|:,]" +syn region straceComment start="/\*" end="\*/" oneline + +" Define the default highlighting + +hi def link straceComment Comment +hi def link straceVerbosed Comment +hi def link stracePID PreProc +hi def link straceNumber Number +hi def link straceNumberRHS Type +hi def link straceOtherRHS Type +hi def link straceString String +hi def link straceConstant Function +hi def link straceEquals Type +hi def link straceSysCallEmbed straceSysCall +hi def link straceSysCall Statement +hi def link straceParenthesis Statement +hi def link straceOperator Normal +hi def link straceSpecialChar Special +hi def link straceOtherPID PreProc + + +let b:current_syntax = "strace" diff --git a/git/usr/share/vim/vim92/syntax/structurizr.vim b/git/usr/share/vim/vim92/syntax/structurizr.vim new file mode 100644 index 0000000000000000000000000000000000000000..c10f1a4569eb9aebb723b83be06d5d9761228d1b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/structurizr.vim @@ -0,0 +1,113 @@ +" Vim syntax file +" Language: Structurizr DSL +" Maintainer: Bastian Venthur +" Last Change: 2024-11-06 +" Remark: For a language reference, see +" https://docs.structurizr.com/dsl/language + +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" comments +syn match scomment "#.*$" +syn match scomment "//.*$" +syn region scomment start="/\*" end="\*/" + +" keywords +syn keyword skeyword animation +syn keyword skeyword autoLayout +syn keyword skeyword background +syn keyword skeyword border +syn keyword skeyword branding +syn keyword skeyword color +syn keyword skeyword colour +syn keyword skeyword component +syn keyword skeyword configuration +syn keyword skeyword container +syn keyword skeyword containerinstance +syn keyword skeyword custom +syn keyword skeyword default +syn keyword skeyword deployment +syn keyword skeyword deploymentenvironment +syn keyword skeyword deploymentgroup +syn keyword skeyword deploymentnode +syn keyword skeyword description +syn keyword skeyword dynamic +syn keyword skeyword element +syn keyword skeyword enterprise +syn keyword skeyword exclude +syn keyword skeyword filtered +syn keyword skeyword font +syn keyword skeyword fontsize +syn keyword skeyword group +syn keyword skeyword healthcheck +syn keyword skeyword height +syn keyword skeyword icon +syn keyword skeyword image +syn keyword skeyword include +syn keyword skeyword infrastructurenode +syn keyword skeyword instances +syn keyword skeyword logo +syn keyword skeyword metadata +syn keyword skeyword model +syn keyword skeyword opacity +syn keyword skeyword person +syn keyword skeyword perspectives +syn keyword skeyword properties +syn keyword skeyword relationship +syn keyword skeyword routing +syn keyword skeyword scope +syn keyword skeyword shape +syn keyword skeyword softwaresystem +syn keyword skeyword softwaresysteminstance +syn keyword skeyword stroke +syn keyword skeyword strokewidth +syn keyword skeyword styles +syn keyword skeyword systemcontext +syn keyword skeyword systemlandscape +syn keyword skeyword tag +syn keyword skeyword tags +syn keyword skeyword technology +syn keyword skeyword terminology +syn keyword skeyword theme +syn keyword skeyword themes +syn keyword skeyword thickness +syn keyword skeyword this +syn keyword skeyword title +syn keyword skeyword url +syn keyword skeyword users +syn keyword skeyword views +syn keyword skeyword visibility +syn keyword skeyword width +syn keyword skeyword workspace + +syn match skeyword "\!adrs\s\+" +syn match skeyword "\!components\s\+" +syn match skeyword "\!docs\s\+" +syn match skeyword "\!element\s\+" +syn match skeyword "\!elements\s\+" +syn match skeyword "\!extend\s\+" +syn match skeyword "\!identifiers\s\+" +syn match skeyword "\!impliedrelationships\s\+" +syn match skeyword "\!include\s\+" +syn match skeyword "\!plugin\s\+" +syn match skeyword "\!ref\s\+" +syn match skeyword "\!relationship\s\+" +syn match skeyword "\!relationships\s\+" +syn match skeyword "\!script\s\+" + +syn region sstring oneline start='"' end='"' + +syn region sblock start='{' end='}' fold transparent + +syn match soperator "\->\s+" + +hi def link sstring string +hi def link scomment comment +hi def link skeyword keyword +hi def link soperator operator + +let b:current_syntax = "structurizr" diff --git a/git/usr/share/vim/vim92/syntax/stylus.vim b/git/usr/share/vim/vim92/syntax/stylus.vim new file mode 100644 index 0000000000000000000000000000000000000000..d8bf641e60dcc9a05837d4c0d85c0c58d38d74e0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/stylus.vim @@ -0,0 +1,51 @@ +" Vim syntax file +" Language: Stylus +" Maintainer: Hsiaoming Yang , Marc Harter +" Filenames: *.styl, *.stylus +" Based On: Tim Pope (sass.vim) +" Created: Dec 14, 2011 +" Modified: May 28, 2024 + +syn case ignore + +syn cluster stylusCssSelectors contains=cssTagName,cssSelector,cssPseudo +syn cluster stylusCssValues contains=cssValueLength,cssValueInteger,cssValueNumber,cssValueAngle,cssValueTime,cssValueFrequency,cssColorVal,cssCommonVal,cssFontVal,cssListVal,cssTextVal,cssVisualVal,cssBorderVal,cssBackgroundVal,cssFuncVal,cssAdvancedVal +syn cluster stylusCssProperties contains=cssProp,cssBackgroundProp,cssTableProp,cssBorderProp,cssFontProp,cssColorProp,cssBoxProp,cssTextProp,cssListProp,cssVisualProp,cssAdvancedProp,cssCommonProp,cssSpecialProp + +syn match stylusVariable "$\?[[:alnum:]_-]\+" +syn match stylusVariableAssignment "\%([[:alnum:]_-]\+\s*\)\@<==" nextgroup=stylusCssAttribute,stylusVariable skipwhite + +syn match stylusProperty "\%([{};]\s*\|^\)\@<=\%([[:alnum:]-]\|#{[^{}]*}\)\+:" contains=@stylusCssProperties,@stylusCssSelectors skipwhite nextgroup=stylusCssAttribute contained containedin=cssDefineBlock +syn match stylusProperty "^\s*\zs\s\%(\%([[:alnum:]-]\|#{[^{}]*}\)\+[ :]\|:[[:alnum:]-]\+\)"hs=s+1 contains=@stylusCssProperties,@stylusCssSelectors skipwhite nextgroup=stylusCssAttribute +syn match stylusProperty "^\s*\zs\s\%(:\=[[:alnum:]-]\+\s*=\)"hs=s+1 contains=@stylusCssProperties,@stylusCssSelectors skipwhite nextgroup=stylusCssAttribute + +syn match stylusCssAttribute +\%("\%([^"]\|\\"\)*"\|'\%([^']\|\\'\)*'\|#{[^{}]*}\|[^{};]\)*+ contained contains=@stylusCssValues,cssImportant,stylusFunction,stylusVariable,stylusControl,stylusUserFunction,stylusInterpolation,cssString,stylusComment,cssComment + +syn match stylusInterpolation %{[[:alnum:]_-]\+}% + +syn match stylusFunction "\<\%(red\|green\|blue\|alpha\|dark\|light\)\>(\@=" contained +syn match stylusFunction "\<\%(hue\|saturation\|lightness\|push\|unshift\|typeof\|unit\|match\)\>(\@=" contained +syn match stylusFunction "\<\%(hsla\|hsl\|rgba\|rgb\|lighten\|darken\)\>(\@=" contained +syn match stylusFunction "\<\%(abs\|ceil\|floor\|round\|min\|max\|even\|odd\|sum\|avg\|sin\|cos\|join\)\>(\@=" contained +syn match stylusFunction "\<\%(desaturate\|saturate\|invert\|unquote\|quote\|s\)\>(\@=" contained +syn match stylusFunction "\<\%(operate\|length\|warn\|error\|last\|p\|\)\>(\@=" contained +syn match stylusFunction "\<\%(opposite-position\|image-size\|add-property\)\>(\@=" contained + +syn keyword stylusVariable null true false arguments +syn keyword stylusControl if else unless for in return + +syn match stylusImport "@\%(import\|require\)" nextgroup=stylusImportList +syn match stylusImportList "[^;]\+" contained contains=cssString.*,cssMediaType,cssURL + +syn match stylusAmpersand "&" +syn match stylusClass "[[:alnum:]_-]\+" contained +syn match stylusClassChar "\.[[:alnum:]_-]\@=" nextgroup=stylusClass +syn match stylusEscape "^\s*\zs\\" +syn match stylusId "[[:alnum:]_-]\+" contained +syn match stylusIdChar "#[[:alnum:]_-]\@=" nextgroup=stylusId + +syn region stylusComment start="//" end="$" contains=cssTodo,@Spell fold + +let b:current_syntax = "stylus" + +" vim:set sw=2: diff --git a/git/usr/share/vim/vim92/syntax/sudoers.vim b/git/usr/share/vim/vim92/syntax/sudoers.vim new file mode 100644 index 0000000000000000000000000000000000000000..98ab29c6b6fc590d46d422cb2c65227d7102a615 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sudoers.vim @@ -0,0 +1,578 @@ +" Vim syntax file +" Language: sudoers(5) configuration files +" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com ) +" Previous Maintainer: Nikolai Weibull +" Latest Change: 2026 Mar 11 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" TODO: instead of 'skipnl', we would like to match a specific group that would +" match \\$ and then continue with the nextgroup, actually, the skipnl doesn't +" work... +" TODO: treat 'ALL' like a special (yay, a bundle of new rules!!!) + +syn match sudoersUserSpec '^' nextgroup=@sudoersUserInSpec skipwhite + +syn match sudoersSpecEquals contained '=' nextgroup=@sudoersCmndSpecList skipwhite + +syn cluster sudoersCmndSpecList contains=sudoersUserRunasBegin,sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec + +syn keyword sudoersTodo contained TODO FIXME XXX NOTE + +syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo +syn region sudoersInclude display oneline start='[#@]\%(include\|includedir\)\s\+\S\+' end='$' + +syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl +syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl +syn keyword sudoersAlias Cmnd_Alias nextgroup=sudoersCmndAlias skipwhite skipnl + +syn match sudoersUserAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersUserAliasEquals skipwhite skipnl +syn match sudoersUserNameInList contained '\<\l[-a-z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl +syn match sudoersUIDInList contained '#\d\+\>' nextgroup=@sudoersUserList skipwhite skipnl +syn match sudoersGroupInList contained '%\l[-a-z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl +syn match sudoersGIDInList contained '%#\d\+\>' nextgroup=@sudoersUserList skipwhite skipnl +syn match sudoersUserNetgroupInList contained '+\l[-a-z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl +syn match sudoersUserAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl +syn keyword sudoersUserAllInList contained ALL nextgroup=@sudoersUserList skipwhite skipnl + +syn match sudoersUserName contained '\<\l[-a-z0-9_]*\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersUID contained '#\d\+\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersGroup contained '%\l[-a-z0-9_]*\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersGID contained '%#\d\+\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersUserNetgroup contained '+\l[-a-z0-9_]*\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersUserAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn keyword sudoersUserAll contained ALL nextgroup=sudoersUserComma,@sudoersParameter skipwhite skipnl +syn match sudoersUserComma contained ',' nextgroup=sudoersUserNegation,sudoersUserName,sudoersUID,sudoersGroup,sudoersGID,sudoersUserNetgroup,sudoersUserAliasRef,sudoersUserAll skipwhite skipnl + +syn match sudoersUserNameInSpec contained '\<\l[-a-z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl +syn region sudoersUIDInSpec display oneline start='#\d\+\>' end='' nextgroup=@sudoersUserSpec skipwhite skipnl +syn match sudoersGroupInSpec contained '%\l[-a-z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl +syn match sudoersGIDInSpec contained '%#\d\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl +syn match sudoersUserNetgroupInSpec contained '+\l[-a-z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl +syn match sudoersUserAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl +syn keyword sudoersUserAllInSpec contained ALL nextgroup=@sudoersUserSpec skipwhite skipnl + +syn match sudoersUserNameInRunas contained '\<\l[-a-z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn match sudoersUIDInRunas contained '#\d\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn match sudoersGroupInRunas contained '%\l[-a-z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn match sudoersGIDInRunas contained '%#\d\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn match sudoersUserNetgroupInRunas contained '+\l[-a-z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn match sudoersUserAliasInRunas contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl +syn keyword sudoersUserAllInRunas contained ALL nextgroup=@sudoersUserRunas skipwhite skipnl + +syn match sudoersHostAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersHostAliasEquals skipwhite skipnl +syn match sudoersHostNameInList contained '\<\l[a-z0-9_-]*\>' nextgroup=@sudoersHostList skipwhite skipnl +syn match sudoersIPAddrInList contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}\>' nextgroup=@sudoersHostList skipwhite skipnl +syn match sudoersNetworkInList contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=\>' nextgroup=@sudoersHostList skipwhite skipnl +syn match sudoersHostNetgroupInList contained '+\l\+\>' nextgroup=@sudoersHostList skipwhite skipnl +syn match sudoersHostAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostList skipwhite skipnl + +syn match sudoersHostName contained '\<\l[a-z0-9_-]*\>' nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn match sudoersIPAddr contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}\>' nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn match sudoersNetwork contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\>' nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn match sudoersHostNetgroup contained '+\l\+\>' nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn match sudoersHostAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn keyword sudoersHostAll contained ALL nextgroup=sudoersHostComma,@sudoersParameter skipwhite skipnl +syn match sudoersHostComma contained ',' nextgroup=sudoersHostNegation,sudoersHostName,sudoersIPAddr,sudoersNetwork,sudoersHostNetgroup,sudoersHostAliasRef,sudoersHostAll skipwhite skipnl + +syn match sudoersCmndName contained '/[/A-Za-z0-9._-]\+' nextgroup=sudoersCmndComma,@sudoersParameter skipwhite skipnl +syn keyword sudoersCmndSpecial contained list sudoedit ALL nextgroup=sudoersCmndComma,@sudoersParameter skipwhite skipnl +syn match sudoersCmndAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersCmndComma,@sudoersParameter skipwhite skipnl +syn match sudoersCmndComma contained ',' nextgroup=sudoersCmndNegation,sudoersCmndName,sudoersCmndSpecial,sudoersCmndAliasRef skipwhite skipnl + +syn match sudoersHostNameInSpec contained '\<\l[a-z0-9_-]*\>' nextgroup=@sudoersHostSpec skipwhite skipnl +syn match sudoersIPAddrInSpec contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}\>' nextgroup=@sudoersHostSpec skipwhite skipnl +syn match sudoersNetworkInSpec contained '\<\%(\d\{1,3}\.\)\{3}\d\{1,3}/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\>' nextgroup=@sudoersHostSpec skipwhite skipnl +syn match sudoersHostNetgroupInSpec contained '+\l\+\>' nextgroup=@sudoersHostSpec skipwhite skipnl +syn match sudoersHostAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostSpec skipwhite skipnl +syn keyword sudoersHostAllInSpec contained ALL nextgroup=@sudoersHostSpec skipwhite skipnl + +syn match sudoersCmndAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersCmndAliasEquals skipwhite skipnl +syn match sudoersCmndNameInList contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndList,sudoersCommandEmpty,sudoersCommandArgs skipwhite +syn match sudoersCmndAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndList skipwhite skipnl + +syn match sudoersCmndNameInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndSpec,sudoersCommandEmptyInSpec,sudoersCommandArgsInSpec skipwhite +syn match sudoersCmndAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndSpec skipwhite skipnl +syn keyword sudoersCmndSpecialInSpec contained list sudoedit ALL nextgroup=@sudoersCmndSpec skipwhite skipnl + +syn keyword sudoersCmndDigestInList contained sha224 sha256 sha384 sha512 nextgroup=sudoersCmndDigestColon skipwhite skipnl +syn match sudoersCmndDigestColon contained ':' nextgroup=sudoersDigestHex,sudoersDigestBase64 skipwhite skipnl +syn match sudoersDigestHex contained '\<\x\+\>' nextgroup=sudoersCmndDigestComma,sudoersCmndNegationInList,sudoersCmndNameInList,sudoersCmndAliasInList skipwhite skipnl +syn match sudoersDigestBase64 contained '\<[A-Za-z0-9+/]\+=*' nextgroup=sudoersCmndDigestComma,sudoersCmndNegationInList,sudoersCmndNameInList,sudoersCmndAliasInList skipwhite skipnl +syn match sudoersCmndDigestComma contained ',' nextgroup=sudoersCmndDigestInList skipwhite skipnl + +syn match sudoersUserAliasEquals contained '=' nextgroup=@sudoersUserInList skipwhite skipnl +syn match sudoersUserListComma contained ',' nextgroup=@sudoersUserInList skipwhite skipnl +syn match sudoersUserListColon contained ':' nextgroup=sudoersUserAlias skipwhite skipnl +syn cluster sudoersUserList contains=sudoersUserListComma,sudoersUserListColon + +syn match sudoersUserSpecComma contained ',' nextgroup=@sudoersUserInSpec skipwhite skipnl +syn cluster sudoersUserSpec contains=sudoersUserSpecComma,@sudoersHostInSpec + +syn match sudoersUserRunasBegin contained '(' nextgroup=@sudoersUserInRunas,sudoersUserRunasColon,sudoersUserRunasEnd skipwhite skipnl +syn match sudoersUserRunasComma contained ',' nextgroup=@sudoersUserInRunas skipwhite skipnl +syn match sudoersUserRunasColon contained ':' nextgroup=@sudoersUserInRunas,sudoersUserRunasEnd skipwhite skipnl +syn match sudoersUserRunasEnd contained ')' nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn cluster sudoersUserRunas contains=sudoersUserRunasComma,sudoersUserRunasColon,@sudoersUserInRunas,sudoersUserRunasEnd + + +syn match sudoersHostAliasEquals contained '=' nextgroup=@sudoersHostInList skipwhite skipnl +syn match sudoersHostListComma contained ',' nextgroup=@sudoersHostInList skipwhite skipnl +syn match sudoersHostListColon contained ':' nextgroup=sudoersHostAlias skipwhite skipnl +syn cluster sudoersHostList contains=sudoersHostListComma,sudoersHostListColon + +syn match sudoersHostSpecComma contained ',' nextgroup=@sudoersHostInSpec skipwhite skipnl +syn cluster sudoersHostSpec contains=sudoersHostSpecComma,sudoersSpecEquals + + +syn match sudoersCmndAliasEquals contained '=' nextgroup=@sudoersCmndInList skipwhite skipnl +syn match sudoersCmndListComma contained ',' nextgroup=@sudoersCmndInList skipwhite skipnl +syn match sudoersCmndListColon contained ':' nextgroup=sudoersCmndAlias skipwhite skipnl +syn cluster sudoersCmndList contains=sudoersCmndListComma,sudoersCmndListColon + +syn match sudoersCmndSpecComma contained ',' nextgroup=@sudoersCmndSpecList skipwhite skipnl +syn match sudoersCmndSpecColon contained ':' nextgroup=@sudoersHostInSpec skipwhite skipnl +syn cluster sudoersCmndSpec contains=sudoersCmndSpecComma,sudoersCmndSpecColon + +syn cluster sudoersUserInList contains=sudoersUserNegationInList,sudoersUserNameInList,sudoersUIDInList,sudoersGroupInList,sudoersGIDInList,sudoersUserNetgroupInList,sudoersUserAliasInList,sudoersUserAllInList +syn cluster sudoersHostInList contains=sudoersHostNegationInList,sudoersHostNameInList,sudoersIPAddrInList,sudoersNetworkInList,sudoersHostNetgroupInList,sudoersHostAliasInList +syn cluster sudoersCmndInList contains=sudoersCmndDigestInList,sudoersCmndNegationInList,sudoersCmndNameInList,sudoersCmndAliasInList + +syn cluster sudoersUser contains=sudoersUserNegation,sudoersUserName,sudoersUID,sudoersGroup,sudoersGID,sudoersUserNetgroup,sudoersUserAliasRef,sudoersUserAll +syn cluster sudoersHost contains=sudoersHostNegation,sudoersHostName,sudoersIPAddr,sudoersNetwork,sudoersHostNetgroup,sudoersHostAll,sudoersHostAliasRef +syn cluster sudoersCmnd contains=sudoersCmndNegation,sudoersCmndName,sudoersCmndSpecial,sudoersCmndAliasRef + +syn cluster sudoersUserInSpec contains=sudoersUserNegationInSpec,sudoersUserNameInSpec,sudoersUIDInSpec,sudoersGroupInSpec,sudoersGIDInSpec,sudoersUserNetgroupInSpec,sudoersUserAliasInSpec,sudoersUserAllInSpec +syn cluster sudoersHostInSpec contains=sudoersHostNegationInSpec,sudoersHostNameInSpec,sudoersIPAddrInSpec,sudoersNetworkInSpec,sudoersHostNetgroupInSpec,sudoersHostAliasInSpec,sudoersHostAllInSpec +syn cluster sudoersUserInRunas contains=sudoersUserNegationInRunas,sudoersUserNameInRunas,sudoersUIDInRunas,sudoersGroupInRunas,sudoersGIDInRunas,sudoersUserNetgroupInRunas,sudoersUserAliasInRunas,sudoersUserAllInRunas +syn cluster sudoersCmndInSpec contains=sudoersCmndNegationInSpec,sudoersCmndNameInSpec,sudoersCmndAliasInSpec,sudoersCmndSpecialInSpec + +syn match sudoersUserNegationInList contained '!\+' nextgroup=@sudoersUserInList skipwhite skipnl +syn match sudoersHostNegationInList contained '!\+' nextgroup=@sudoersHostInList skipwhite skipnl +syn match sudoersCmndNegationInList contained '!\+' nextgroup=@sudoersCmndInList skipwhite skipnl + +syn match sudoersUserNegation contained '!\+' nextgroup=@sudoersUser skipwhite skipnl +syn match sudoersHostNegation contained '!\+' nextgroup=@sudoersHost skipwhite skipnl +syn match sudoersCmndNegation contained '!\+' nextgroup=@sudoersCmnd skipwhite skipnl + +syn match sudoersUserNegationInSpec contained '!\+' nextgroup=@sudoersUserInSpec skipwhite skipnl +syn match sudoersHostNegationInSpec contained '!\+' nextgroup=@sudoersHostInSpec skipwhite skipnl +syn match sudoersUserNegationInRunas contained '!\+' nextgroup=@sudoersUserInRunas skipwhite skipnl +syn match sudoersCmndNegationInSpec contained '!\+' nextgroup=@sudoersCmndInSpec skipwhite skipnl + +syn match sudoersCommandArgs contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgs,@sudoersCmndList skipwhite +syn match sudoersCommandEmpty contained '""' nextgroup=@sudoersCmndList skipwhite skipnl + +syn match sudoersCommandArgsInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgsInSpec,@sudoersCmndSpec skipwhite +syn match sudoersCommandEmptyInSpec contained '""' nextgroup=@sudoersCmndSpec skipwhite skipnl + +syn keyword sudoersDefaultEntry Defaults nextgroup=sudoersDefaultTypeAt,sudoersDefaultTypeColon,sudoersDefaultTypeGreaterThan,sudoersDefaultTypeBang,sudoersDefaultTypeAny +syn match sudoersDefaultTypeAt contained '@' nextgroup=@sudoersHost skipwhite skipnl +syn match sudoersDefaultTypeColon contained ':' nextgroup=@sudoersUser skipwhite skipnl +syn match sudoersDefaultTypeGreaterThan contained '>' nextgroup=@sudoersUser skipwhite skipnl +syn match sudoersDefaultTypeBang contained '!' nextgroup=@sudoersCmnd skipwhite skipnl +syn match sudoersDefaultTypeAny contained '\s' nextgroup=@sudoersParameter skipwhite skipnl + +" TODO: could also deal with special characters here +syn match sudoersParameterNegation contained '!\+' nextgroup=sudoersBooleanParameter,sudoersIntegerOrBooleanParameter,sudoersModeOrBooleanParameter,sudoersFloatOrBooleanParameter,sudoersTimeoutOrBooleanParameter,sudoersStringOrBooleanParameter,sudoersListParameter skipwhite skipnl +syn keyword sudoersBooleanParameter contained skipwhite skipnl + \ nextgroup=sudoersParameterListComma + \ always_query_group_plugin + \ always_set_home + \ authenticate + \ case_insensitive_group + \ case_insensitive_user + \ closefrom_override + \ compress_io + \ env_editor + \ env_reset + \ exec_background + \ fast_glob + \ fqdn + \ ignore_audit_errors + \ ignore_dot + \ ignore_iolog_errors + \ ignore_local_sudoers + \ ignore_logfile_errors + \ ignore_unknown_defaults + \ insults + \ intercept + \ intercept_allow_setid + \ intercept_authenticate + \ intercept_verify + \ iolog_flush + \ log_allowed + \ log_denied + \ log_exit_status + \ log_host + \ log_input + \ log_output + \ log_passwords + \ log_server_keepalive + \ log_server_verify + \ log_stderr + \ log_stdin + \ log_stdout + \ log_subcmds + \ log_ttyin + \ log_ttyout + \ log_year + \ long_otp_prompt + \ mail_all_cmnds + \ mail_always + \ mail_badpass + \ mail_no_host + \ mail_no_perms + \ mail_no_user + \ match_group_by_gid + \ netgroup_tuple + \ noexec + \ noninteractive_auth + \ pam_acct_mgmt + \ pam_rhost + \ pam_ruser + \ pam_session + \ pam_setcred + \ pam_silent + \ passprompt_override + \ path_info + \ preserve_groups + \ pwfeedback + \ requiretty + \ root_sudo + \ rootpw + \ runas_allow_unknown_id + \ runas_check_shell + \ runaspw + \ selinux + \ set_home + \ set_logname + \ set_utmp + \ setenv + \ shell_noargs + \ stay_setuid + \ sudoedit_checkdir + \ sudoedit_follow + \ syslog_pid + \ targetpw + \ tty_tickets + \ umask_override + \ use_loginclass + \ use_netgroups + \ use_pty + \ user_command_timeouts + \ utmp_runas + \ visiblepw + +syn keyword sudoersIntegerParameter contained + \ nextgroup=sudoersIntegerParameterEquals + \ skipwhite skipnl + \ closefrom + \ maxseq + \ passwd_tries + \ syslog_maxlen + +syn keyword sudoersIntegerOrBooleanParameter contained + \ nextgroup=sudoersIntegerParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ loglinelen + +syn keyword sudoersFloatOrBooleanParameter contained + \ nextgroup=sudoersFloatParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ passwd_timeout + \ timestamp_timeout + +syn keyword sudoersModeParameter contained + \ nextgroup=sudoersModeParameterEquals + \ skipwhite skipnl + \ iolog_mode + +syn keyword sudoersModeOrBooleanParameter contained + \ nextgroup=sudoersModeParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ umask + +syn keyword sudoersTimeoutOrBooleanParameter contained + \ nextgroup=sudoersTimeoutParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ command_timeout + \ log_server_timeout + +syn keyword sudoersStringParameter contained + \ nextgroup=sudoersStringParameterEquals + \ skipwhite skipnl + \ apparmor_profile + \ askpass + \ authfail_message + \ badpass_message + \ cmddenial_message + \ group_plugin + \ intercept_type + \ iolog_file + \ limitprivs + \ log_format + \ mailsub + \ noexec_file + \ pam_askpass_service + \ pam_login_service + \ pam_service + \ passprompt + \ privs + \ role + \ runas_default + \ sudoers_locale + \ timestamp_type + \ timestampowner + \ type + +syn keyword sudoersStringOrBooleanParameter contained + \ nextgroup=sudoersStringParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ admin_flag + \ editor + \ env_file + \ exempt_group + \ fdexec + \ iolog_dir + \ iolog_group + \ iolog_user + \ lecture + \ lecture_file + \ lecture_status_dir + \ listpw + \ log_server_cabundle + \ log_server_peer_cert + \ log_server_peer_key + \ logfile + \ mailerflags + \ mailerpath + \ mailfrom + \ mailto + \ restricted_env_file + \ rlimit_as + \ rlimit_core + \ rlimit_cpu + \ rlimit_data + \ rlimit_fsize + \ rlimit_locks + \ rlimit_memlock + \ rlimit_nofile + \ rlimit_nproc + \ rlimit_rss + \ rlimit_stack + \ runcwd + \ secure_path + \ syslog + \ syslog_badpri + \ syslog_goodpri + \ timestampdir + \ verifypw + +syn keyword sudoersListParameter contained + \ nextgroup=sudoersListParameterEquals,sudoersParameterListComma + \ skipwhite skipnl + \ env_check + \ env_delete + \ env_keep + \ log_servers + \ passprompt_regex + +syn match sudoersParameterListComma contained ',' nextgroup=@sudoersParameter skipwhite skipnl + +syn cluster sudoersParameter contains=sudoersParameterNegation,sudoersBooleanParameter,sudoersIntegerParameter,sudoersIntegerOrBooleanParameter,sudoersModeParameter,sudoersModeOrBooleanParameter,sudoersFloatOrBooleanParameter,sudoersTimeoutOrBooleanParameter,sudoersStringParameter,sudoersStringOrBooleanParameter,sudoersListParameter + +syn match sudoersIntegerParameterEquals contained '=' nextgroup=sudoersIntegerValue skipwhite skipnl +syn match sudoersModeParameterEquals contained '=' nextgroup=sudoersModeValue skipwhite skipnl +syn match sudoersFloatParameterEquals contained '=' nextgroup=sudoersFloatValue skipwhite skipnl +syn match sudoersTimeoutParameterEquals contained '=' nextgroup=sudoersTimeoutValue skipwhite skipnl +syn match sudoersStringParameterEquals contained '=' nextgroup=sudoersStringValue skipwhite skipnl +syn match sudoersListParameterEquals contained '[+-]\==' nextgroup=sudoersListValue skipwhite skipnl + +syn match sudoersIntegerValue contained '\<\d\+\>' nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersModeValue contained '\<\o\+\>' nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersFloatValue contained '-\?\%(\<\d\+\>\|\<\d\+\%(\.\%(\d\+\>\)\?\)\?\|\.\d\+\>\)' nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersTimeoutValue contained '\<\d\+\>' nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersTimeoutValue contained '\<\%(\d\+[dDhHmMsS]\)\+\>' nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersStringValue contained '\s*\zs[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl +syn region sudoersStringValue contained start=+\s*\zs"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl +syn match sudoersListValue contained '\s*\zs[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl +syn region sudoersListValue contained start=+\s*\zs"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl + +syn keyword sudoersOptionSpec contained ROLE TYPE nextgroup=sudoersSELinuxSpecEquals skipwhite +syn keyword sudoersOptionSpec contained APPARMOR_PROFILE nextgroup=sudoersAppArmorSpecEquals skipwhite +syn keyword sudoersOptionSpec contained PRIVS LIMITPRIVS nextgroup=sudoersSolarisPrivSpecEquals skipwhite +syn keyword sudoersOptionSpec contained NOTBEFORE NOTAFTER nextgroup=sudoersDateSpecEquals skipwhite +syn keyword sudoersOptionSpec contained TIMEOUT nextgroup=sudoersTimeoutSpecEquals skipwhite +syn keyword sudoersOptionSpec contained CWD CHROOT nextgroup=sudoersDirectorySpecEquals skipwhite + +syn match sudoersSELinuxSpecEquals contained '=' nextgroup=sudoersSELinuxSpecParam skipwhite skipnl +syn match sudoersAppArmorSpecEquals contained '=' nextgroup=sudoersAppArmorSpecParam skipwhite skipnl +syn match sudoersSolarisPrivSpecEquals contained '=' nextgroup=sudoersSolarisPrivSpecParam skipwhite skipnl +syn match sudoersDateSpecEquals contained '=' nextgroup=sudoersDateSpecParam skipwhite skipnl +syn match sudoersTimeoutSpecEquals contained '=' nextgroup=sudoersTimeoutSpecParam skipwhite skipnl +syn match sudoersDirectorySpecEquals contained '=' nextgroup=sudoersDirectorySpecParam,sudoersDirectorySpecParamError skipwhite skipnl + +syn match sudoersSELinuxSpecParam contained /\<[A-Za-z0-9_]\+\>/ nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersAppArmorSpecParam contained /\S\+/ nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersSolarisPrivSpecParam contained /\S\+/ nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersDateSpecParam contained /\<\d\{10\}\%(\d\d\)\{0,2\}\%(Z\|[+-]\d\{4\}\)\?\>/ nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersTimeoutSpecParam contained /\<\d\+\>\|\<\%(\d\+[dDhHmMsS]\)\+\>/ nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersDirectorySpecParam contained '[/~]\f*\|\*' nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl +syn match sudoersDirectorySpecParam contained '"\%([/~]\f\{-}\|\*\)"' nextgroup=sudoersOptionSpec,sudoersTagSpec,@sudoersCmndInSpec skipwhite skipnl + +syn keyword sudoersTagSpec contained EXEC NOEXEC FOLLOW NOFOLLOW LOG_INPUT NOLOG_INPUT LOG_OUTPUT NOLOG_OUTPUT MAIL NOMAIL INTERCEPT NOINTERCEPT PASSWD NOPASSWD SETENV NOSETENV nextgroup=sudoersTagSpecColon skipwhite +syn match sudoersTagSpecColon contained /:/ nextgroup=sudoersTagSpec,@sudoersCmndInSpec skipwhite + +hi def link sudoersSpecEquals Operator +hi def link sudoersTodo Todo +hi def link sudoersComment Comment +hi def link sudoersAlias Keyword +hi def link sudoersUserAlias Identifier +hi def link sudoersUserNameInList String +hi def link sudoersUIDInList Number +hi def link sudoersGroupInList PreProc +hi def link sudoersGIDInList Number +hi def link sudoersUserNetgroupInList PreProc +hi def link sudoersUserAliasInList PreProc +hi def link sudoersUserAllInList Special +hi def link sudoersUserName String +hi def link sudoersUID Number +hi def link sudoersGroup PreProc +hi def link sudoersGID Number +hi def link sudoersUserNetgroup PreProc +hi def link sudoersUserAliasRef PreProc +hi def link sudoersUserAll Special +hi def link sudoersUserComma Delimiter +hi def link sudoersUserNameInSpec String +hi def link sudoersUIDInSpec Number +hi def link sudoersGroupInSpec PreProc +hi def link sudoersGIDInSpec Number +hi def link sudoersUserNetgroupInSpec PreProc +hi def link sudoersUserAliasInSpec PreProc +hi def link sudoersUserAllInSpec Special +hi def link sudoersUserNameInRunas String +hi def link sudoersUIDInRunas Number +hi def link sudoersGroupInRunas PreProc +hi def link sudoersGIDInRunas Number +hi def link sudoersUserNetgroupInRunas PreProc +hi def link sudoersUserAliasInRunas PreProc +hi def link sudoersUserAllInRunas Special +hi def link sudoersHostAlias Identifier +hi def link sudoersHostNameInList String +hi def link sudoersIPAddrInList Number +hi def link sudoersNetworkInList Number +hi def link sudoersHostNetgroupInList PreProc +hi def link sudoersHostAliasInList PreProc +hi def link sudoersHostName String +hi def link sudoersIPAddr Number +hi def link sudoersNetwork Number +hi def link sudoersHostNetgroup PreProc +hi def link sudoersHostAll Special +hi def link sudoersHostComma Delimiter +hi def link sudoersHostAliasRef PreProc +hi def link sudoersCmndName String +hi def link sudoersCmndSpecial Special +hi def link sudoersCmndAliasRef PreProc +hi def link sudoersCmndComma Delimiter +hi def link sudoersHostNameInSpec String +hi def link sudoersIPAddrInSpec Number +hi def link sudoersNetworkInSpec Number +hi def link sudoersHostNetgroupInSpec PreProc +hi def link sudoersHostAliasInSpec PreProc +hi def link sudoersHostAllInSpec Special +hi def link sudoersCmndAlias Identifier +hi def link sudoersCmndNameInList String +hi def link sudoersCmndAliasInList PreProc +hi def link sudoersCmndNameInSpec String +hi def link sudoersCmndAliasInSpec PreProc +hi def link sudoersCmndSpecialInSpec Special +hi def link sudoersCmndDigestInList Type +hi def link sudoersCmndDigestColon Operator +hi def link sudoersDigestHex Number +hi def link sudoersDigestBase64 Number +hi def link sudoersCmndDigestComma Delimiter +hi def link sudoersUserAliasEquals Operator +hi def link sudoersUserListComma Delimiter +hi def link sudoersUserListColon Delimiter +hi def link sudoersUserSpecComma Delimiter +hi def link sudoersUserRunasBegin Delimiter +hi def link sudoersUserRunasComma Delimiter +hi def link sudoersUserRunasColon Delimiter +hi def link sudoersUserRunasEnd Delimiter +hi def link sudoersHostAliasEquals Operator +hi def link sudoersHostListComma Delimiter +hi def link sudoersHostListColon Delimiter +hi def link sudoersHostSpecComma Delimiter +hi def link sudoersCmndAliasEquals Operator +hi def link sudoersCmndListComma Delimiter +hi def link sudoersCmndListColon Delimiter +hi def link sudoersCmndSpecComma Delimiter +hi def link sudoersCmndSpecColon Delimiter +hi def link sudoersUserNegationInList Operator +hi def link sudoersHostNegationInList Operator +hi def link sudoersCmndNegationInList Operator +hi def link sudoersUserNegation Operator +hi def link sudoersHostNegation Operator +hi def link sudoersCmndNegation Operator +hi def link sudoersUserNegationInSpec Operator +hi def link sudoersHostNegationInSpec Operator +hi def link sudoersUserNegationInRunas Operator +hi def link sudoersCmndNegationInSpec Operator +hi def link sudoersCommandArgs String +hi def link sudoersCommandEmpty Special +hi def link sudoersDefaultEntry Keyword +hi def link sudoersDefaultTypeAt Special +hi def link sudoersDefaultTypeColon Special +hi def link sudoersDefaultTypeGreaterThan Special +hi def link sudoersDefaultTypeBang Special +hi def link sudoersParameterNegation Operator +hi def link sudoersBooleanParameter Identifier +hi def link sudoersIntegerParameter Identifier +hi def link sudoersIntegerOrBooleanParameter Identifier +hi def link sudoersModeParameter Identifier +hi def link sudoersModeOrBooleanParameter Identifier +hi def link sudoersFloatOrBooleanParameter Identifier +hi def link sudoersTimeoutOrBooleanParameter Identifier +hi def link sudoersStringParameter Identifier +hi def link sudoersStringOrBooleanParameter Identifier +hi def link sudoersListParameter Identifier +hi def link sudoersParameterListComma Delimiter +hi def link sudoersIntegerParameterEquals Operator +hi def link sudoersModeParameterEquals Operator +hi def link sudoersFloatParameterEquals Operator +hi def link sudoersTimeoutParameterEquals Operator +hi def link sudoersStringParameterEquals Operator +hi def link sudoersListParameterEquals Operator +hi def link sudoersIntegerValue Number +hi def link sudoersModeValue Number +hi def link sudoersFloatValue Float +hi def link sudoersTimeoutValue Number +hi def link sudoersStringValue String +hi def link sudoersListValue String +hi def link sudoersOptionSpec Special +hi def link sudoersSELinuxSpecEquals Operator +hi def link sudoersAppArmorSpecEquals Operator +hi def link sudoersSolarisPrivSpecEquals Operator +hi def link sudoersDateSpecEquals Operator +hi def link sudoersTimeoutSpecEquals Operator +hi def link sudoersDirectorySpecEquals Operator +hi def link sudoersSELinuxSpecParam String +hi def link sudoersAppArmorSpecParam String +hi def link sudoersSolarisPrivSpecParam String +hi def link sudoersDateSpecParam Number +hi def link sudoersTimeoutSpecParam Number +hi def link sudoersDirectorySpecParam String +hi def link sudoersTagSpec Special +hi def link sudoersTagSpecColon Delimiter +hi def link sudoersInclude Statement + +let b:current_syntax = "sudoers" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/svg.vim b/git/usr/share/vim/vim92/syntax/svg.vim new file mode 100644 index 0000000000000000000000000000000000000000..819b5ec987b7d8d3335c4c10814fab3eddd7d0d6 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/svg.vim @@ -0,0 +1,15 @@ +" Vim syntax file +" Language: SVG (Scalable Vector Graphics) +" Maintainer: Vincent Berthoux +" File Types: .svg (used in Web and vector programs) +" +" Directly call the xml syntax, because SVG is an XML +" dialect. But as some plugins base their effect on filetype, +" providing a distinct filetype from xml is better. + +if exists("b:current_syntax") + finish +endif + +runtime! syntax/xml.vim +let b:current_syntax = "svg" diff --git a/git/usr/share/vim/vim92/syntax/svn.vim b/git/usr/share/vim/vim92/syntax/svn.vim new file mode 100644 index 0000000000000000000000000000000000000000..6239790f12040a61eacf0109cbb745ee81c68ac0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/svn.vim @@ -0,0 +1,56 @@ +" Vim syntax file +" Language: Subversion (svn) commit file +" Maintainer: Dmitry Vasiliev +" URL: https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim +" Last Change: 2013-11-08 +" Filenames: svn-commit*.tmp +" Version: 1.10 + +" Contributors: +" +" List of the contributors in alphabetical order: +" +" A. S. Budden +" Ingo Karkat +" Myk Taylor +" Stefano Zacchiroli + +" quit when a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif + +syn spell toplevel + +syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl +syn match svnSummary "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell +syn match svnOverflow ".*" contained contains=@Spell +syn match svnBlank "^.*" contained contains=@Spell + +syn region svnRegion end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell +syn match svnRemoved "^D .*$" contained contains=@NoSpell +syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell +syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell +syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell +syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell + +" Synchronization. +syn sync clear +syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet. + +hi def link svnSummary Keyword +hi def link svnBlank Error + +hi def link svnRegion Comment +hi def link svnDelimiter NonText +hi def link svnRemoved Constant +hi def link svnAdded Identifier +hi def link svnModified Special +hi def link svnProperty Special +hi def link svnRenamed Special + + +let b:current_syntax = "svn" diff --git a/git/usr/share/vim/vim92/syntax/swayconfig.vim b/git/usr/share/vim/vim92/syntax/swayconfig.vim new file mode 100644 index 0000000000000000000000000000000000000000..38a98cd94da2b76f37c1eb163cc409ebb5fbe633 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/swayconfig.vim @@ -0,0 +1,188 @@ +" Vim syntax file +" Language: sway config file +" Original Author: Josef Litos (litoj/i3config.vim) +" Maintainer: James Eapen +" Version: 1.2.8 +" Last Change: 2026-04-01 + +" References: +" http://i3wm.org/docs/userguide.html#configuring +" https://github.com/swaywm/sway/blob/b69d637f7a34e239e48a4267ae94a5e7087b5834/sway/sway.5.scd +" http://vimdoc.sourceforge.net/htmldoc/syntax.html +" +" +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" before i3 load to give i3ConfigKeyword lower priority +syn cluster i3ConfigCommand contains=i3ConfigCommand,i3ConfigAction,i3ConfigActionKeyword,@i3ConfigValue,i3ConfigColor,i3ConfigKeyword + +runtime! syntax/i3config.vim + +" In sway, popup_during_fullscreen does not have options like all option. +syn cluster i3ConfigPopupFullscreenOpts remove=i3ConfigPopupFullscreenOptsExtra + +" Sway extensions to i3 +syn keyword i3ConfigActionKeyword opacity urgent shortcuts_inhibitor splitv splith splitt contained contained skipwhite nextgroup=i3ConfigOption +syn keyword i3ConfigOption set plus minus allow deny csd v h t contained contained skipwhite nextgroup=i3ConfigOption,@i3ConfigValue + +syn keyword i3ConfigConditionProp app_id pid shell sandbox_app_id sandbox_engine sandbox_instance_id tag contained + +syn keyword i3ConfigWorkspaceDir prev_on_output next_on_output contained + +syn match i3ConfigBindArgument /--\(locked\|to-code\|no-repeat\|input-device=[^ '"]*\|no-warn\|inhibited\) / contained contains=i3ConfigShOper,@i3ConfigStrVar nextgroup=i3ConfigBindArgument,i3ConfigBindCombo +syn region i3ConfigBindArgument start=/--input-device=['"]/ end=/\s/ contained contains=@i3ConfigIdent,i3ConfigShOper,i3ConfigString nextgroup=i3ConfigBindArgument,i3ConfigBindCombo + +syn region i3ConfigBindCombo matchgroup=i3ConfigParen start=/{$/ end=/^\s*}$/ contained contains=i3ConfigBindArgument,i3ConfigBindCombo,i3ConfigComment fold keepend extend +" hack for blocks with start outside parsing range +syn region swayConfigBlockOrphan start=/^\s\+\(--[a-z-]\+ \)*\([$A-Z][$0-9A-Za-z_+]\+\|[a-z]\) [a-z[]/ skip=/\\$\|$\n^\s*}$/ end=/$/ contains=i3ConfigBindArgument,i3ConfigBindCombo,i3ConfigParen keepend extend + +" Note: braces highlighted by @i3ConfigSh already +syn region i3ConfigExec start=/ {$/ end=/^\s*}$/ contained contains=i3ConfigExecAction,@i3ConfigSh,i3ConfigComment fold keepend extend + +syn keyword swayConfigFloatingModifierOpts normal inverse none contained +syn match i3ConfigKeyword /floating_modifier \(none\|[$A-Z][0-9A-Za-z]\+ \(normal\|inverse\)\)$/ contained contains=i3ConfigVariable,i3ConfigBindModkey,swayConfigFloatingModifierOpts + +syn match swayConfigI3Param /--i3/ contains=i3ConfigShParam skipwhite nextgroup=i3ConfigEdgeOpts +syn keyword i3ConfigKeyword hide_edge_borders contained skipwhite nextgroup=swayConfigI3Param,i3ConfigEdgeOpts + +" accept bar ids in the form: bar { ... } +syn match swayConfigBarIdent /[^{ ,;]\+/ contained contains=@i3ConfigStrVar skipwhite nextgroup=i3ConfigBarBlock +syn keyword i3ConfigKeyword bar contained skipwhite nextgroup=swayConfigBarIdent,i3ConfigBarBlock + +syn keyword i3ConfigBarOpts swaybar_command contained skipwhite nextgroup=@i3ConfigSh +syn region i3ConfigBarOpts matchgroup=i3ConfigBarOpts start=/gaps/ end=/$/ contained contains=@i3ConfigNumVar +syn keyword i3ConfigBarOpts height pango_markup status_edge_padding status_padding wrap_scroll tray_bindcode tray_bindsym icon_theme contained skipwhite nextgroup=i3ConfigBarOptVals,@i3ConfigValue,i3ConfigShOper +syn keyword i3ConfigBarOptVals overlay contained + +syn keyword i3ConfigExecActionKeyword swaymsg contained + +" Sway-only options +" Xwayland +syn keyword swayConfigXOpt enable disable force contained +syn keyword i3ConfigKeyword xwayland contained skipwhite nextgroup=swayConfigXOpt + +" Inhibit idle +syn keyword swayConfigInhibitOpts focus fullscreen open none visible contained +syn keyword i3ConfigActionKeyword inhibit_idle contained skipwhite nextgroup=swayConfigInhibitOpts + +" Primary selection +syn keyword i3ConfigKeyword primary_selection contained skipwhite nextgroup=i3ConfigBoolean + +" Swaybg command +" Swaynag command +syn keyword i3ConfigKeyword swaybg_command swaynag_command contained nextgroup=i3ConfigExec + +" Bindswitch +syn match swayConfigBindswitchArgument /--\(locked\|no-warn\|reload\) / contained nextgroup=swayConfigBindswitchArgument,swayConfigBindswitchType +syn keyword swayConfigBindswitchType lid tablet contained nextgroup=swayConfigBindswitchCombo +syn keyword swayConfigBindswitchState toggle contained +syn match swayConfigBindswitchCombo /:\(on\|off\|toggle\) / contained contains=i3ConfigColonOperator,swayConfigBindswitchState,i3ConfigBoolean nextgroup=i3ConfigBind +syn region swayConfigBindswitchType matchgroup=i3ConfigParen start=/{$/ end=/^\s*}$/ contained contains=swayConfigBindswitchArgument,swayConfigBindswitchType,i3ConfigComment fold keepend extend +syn keyword i3ConfigBindKeyword bindswitch contained skipwhite nextgroup=swayConfigBindswitchArgument,swayConfigBindswitchType +" hack for blocks with start outside parsing range +syn region swayConfigBlockOrphan start=/^\s\+\(lid\|tablet\):/ skip=/\\$\|$\n^\s*}$/ end=/$/ contains=swayConfigBindswitchArgument,swayConfigBindswitchType,i3ConfigParen keepend extend + +" Bindgesture +syn match swayConfigBindgestureArgument /--\(exact\|input-device=[:0-9A-Za-z_/-]\+\|no-warn\) / contained nextgroup=swayConfigBindgestureArgument,swayConfigBindgestureCombo +syn keyword swayConfigBindgestureType hold swipe pinch contained +syn keyword swayConfigBindgestureDir up down left right inward outward clockwise counterclockwise contained +syn match swayConfigBindgestureCombo /\(hold\(:[1-5]\)\?\|swipe\(:[3-5]\)\?\(:up\|:down\|:left\|:right\)\?\|pinch\(:[2-5]\)\?:\(+\?\(inward\|outward\|clockwise\|counterclockwise\|up\|down\|left\|right\)\)\+\) / contained contains=i3ConfigNumber,swayConfigBindgestureType,i3ConfigColonOperator,swayConfigBindgestureDir,i3ConfigBindModifier nextgroup=swayConfigBindgestureCombo,i3ConfigBind +syn region swayConfigBindgestureCombo matchgroup=i3ConfigParen start=/{$/ end=/^\s*}$/ contained contains=swayConfigBindgestureArgument,swayConfigBindgestureCombo,i3ConfigComment fold keepend extend +syn keyword i3ConfigBindKeyword bindgesture contained skipwhite nextgroup=swayConfigBindgestureArgument,swayConfigBindgestureCombo +" hack for blocks with start outside parsing range +syn region swayConfigBlockOrphan start=/^\s\+\(--[a-z-]\+ \)*\(hold\|swipe\|pinch\):/ skip=/\\$\|$\n^\s*}$/ end=/$/ contains=swayConfigBindgestureArgument,swayConfigBindgestureCombo,i3ConfigParen keepend extend + +" Tiling drag threshold +" Titlebar commands +syn keyword i3ConfigKeyword tiling_drag_threshold titlebar_border_thickness contained skipwhite nextgroup=@i3ConfigNumVar +syn match i3ConfigKeyword /titlebar_padding \(\d\+\|\$\S\+\)\( \d\+\)\?$/ contained contains=@i3ConfigNumVar + +syn match swayConfigDeviceOper /[*:;!]/ contained + +" Input devices +syn keyword swayConfigInputOpts xkb_variant xkb_rules xkb_switch_layout xkb_numlock xkb_file xkb_capslock xkb_model repeat_delay repeat_rate map_to_output map_to_region map_from_region tool_mode accel_profile dwt dwtp drag_lock drag click_method clickfinger_button_map middle_emulation tap events calibration_matrix natural_scroll left_handed pointer_accel scroll_button scroll_button_lock scroll_factor scroll_method tap_button_map contained skipwhite nextgroup=swayConfigInputOptVals,@i3ConfigValue +syn keyword swayConfigInputOptVals absolute relative adaptive flat none button_areas clickfinger toggle two_finger edge on_button_down lrm lmr next prev pen eraser brush pencil airbrush disabled_on_external_mouse disable enable contained skipwhite nextgroup=swayConfigInputOpts,@i3ConfigValue,swayConfigDeviceOper +syn match swayConfigDeviceOper /,/ contained nextgroup=swayConfigXkbOptsPair,swayConfigXkbLayout +syn match swayConfigXkbLayout /[a-z]\+/ contained nextgroup=swayConfigDeviceOper +syn keyword swayConfigInputOpts xkb_layout contained skipwhite nextgroup=swayConfigXkbLayout +syn match swayConfigXkbOptsPairVal /[0-9a-z_-]\+/ contained contains=i3ConfigNumber skipwhite nextgroup=swayConfigDeviceOper,swayConfigInputOpts +syn match swayConfigXkbOptsPair /[a-z]\+:/ contained contains=i3ConfigColonOperator nextgroup=swayConfigXkbOptsPairVal +syn keyword swayConfigInputOpts xkb_options contained skipwhite nextgroup=swayConfigXkbOptsPair +syn match swayConfigInputAngle /\(3[0-5][0-9]\|[1-2]\?[0-9]\{1,2\}\)\(\.[0-9]\+\)\?/ skipwhite nextgroup=swayConfigInputOpts +syn keyword swayConfigInputOpts rotation_angle contained skipwhite nextgroup=swayConfigInputAngle + +syn region swayConfigInput start=/\s/ skip=/\\$/ end=/\ze[,;]\|$/ contained contains=swayConfigInputOpts,@i3ConfigValue keepend +syn region swayConfigInput matchgroup=i3ConfigParen start=/ {$/ end=/^\s*}$/ contained contains=swayConfigInputOpts,@i3ConfigValue,i3ConfigComment keepend +syn keyword swayConfigInputType touchpad pointer keyboard touch tablet_tool tablet_pad switch contained skipwhite nextgroup=swayConfigInput +syn match swayConfigInputTypeIdent /type:!\?/ contained contains=swayConfigDeviceOper skipwhite nextgroup=swayConfigInputType +syn match swayConfigInputIdent /[^t ,;][^ ,;]*/ contained contains=@i3ConfigStrVar skipwhite nextgroup=swayConfigInput extend +syn keyword i3ConfigKeyword input contained skipwhite nextgroup=swayConfigInputTypeIdent,swayConfigInputIdent + +" Seat +syn keyword swayConfigSeatOpts cursor fallback hide_cursor keyboard_grouping shortcuts_inhibitor pointer_constraint xcursor_theme contained skipwhite nextgroup=swayConfigSeatOptVals,@i3ConfigValue +syn match swayConfigInputTypeSeq / \w\+/ contained contains=swayConfigInputType skipwhite nextgroup=swayConfigInputTypeSeq,swayConfigSeatOpts +syn keyword swayConfigSeatOpts idle_inhibit idle_wake contained nextgroup=swayConfigInputTypeSeq +syn keyword swayConfigSeatOpts attach contained skipwhite nextgroup=swayConfigSeatIdent +syn match swayConfigSeatOptVals /when-typing/ contained skipwhite nextgroup=swayConfigSeatOptVals +syn keyword swayConfigSeatOptVals move set press release none smart activate deactivate toggle escape enable disable contained skipwhite nextgroup=swayConfigSeatOpts +syn region swayConfigSeat start=/\s/ skip=/\\$/ end=/\ze[,;]\|$/ contained contains=swayConfigSeatOpts,@i3ConfigValue keepend +syn region swayConfigSeat matchgroup=i3ConfigParen start=/ {$/ end=/^\s*}$/ contained contains=swayConfigSeatOpts,@i3ConfigValue,i3ConfigComment keepend +syn match swayConfigSeatIdent /[^ ,;]\+/ contained contains=@i3ConfigStrVar nextgroup=swayConfigSeat extend +syn keyword i3ConfigKeyword seat contained skipwhite nextgroup=swayConfigSeatIdent + +" Output monitors +syn keyword swayConfigOutputOpts mode resolution res modeline position pos scale scale_filter subpixel transform disable enable toggle power dpms max_render_time adaptive_sync render_bit_depth color_profile allow_tearing hdr contained skipwhite nextgroup=swayConfigOutputOptVals,@i3ConfigValue,swayConfigOutputMode +syn keyword swayConfigOutputOptVals linear nearest smart rgb bgr vrgb vbgr none toggle srgb contained skipwhite nextgroup=swayConfigOutputOptVals,@i3ConfigValue +syn keyword swayConfigOutputBgVals solid_color fill stretch fit center tile contained skipwhite nextgroup=@i3ConfigColVar +syn match swayConfigOutputBg /[#$]\S\+ solid_color/ contained contains=@i3ConfigColVar,swayConfigOutputBgVals skipwhite nextgroup=swayConfigOutputOpts +syn match swayConfigOutputBg /[^b# ,;][^ ,;]*/ contained contains=@i3ConfigStrVar skipwhite nextgroup=swayConfigOutputBgVals extend +syn keyword swayConfigOutputOpts bg background contained skipwhite nextgroup=swayConfigOutputBg +syn match swayConfigOutputFPS /@[0-9.]\+Hz/ contained skipwhite nextgroup=swayConfigOutputOpts +syn match swayConfigOutputMode /\(--custom \)\?[0-9]\+x[0-9]\+/ contained contains=i3ConfigShParam skipwhite nextgroup=swayConfigOutputFPS,swayConfigOutputOpts +" clockwise and anticlockwise are relative -> only as bindings / user actions - not in config setup +syn match swayConfigOutputOptVals /\(\(flipped-\)\?\(90\|180\|270\)\|flipped\|normal\)\( \(anti\)\?clockwise\)\?/ contained contains=i3ConfigNumber skipwhite nextgroup=swayConfigOutputOpts +syn match swayConfigOutputICCPath /\S\+/ contained contains=@i3ConfigStrVar skipwhite nextgroup=swayConfigOutputOpts extend +syn keyword swayConfigOutputOptVals icc contained skipwhite nextgroup=swayConfigOutputICCPath +syn region swayConfigOutput start=/\s/ skip=/\\$/ end=/\ze[,;]\|$/ contained contains=swayConfigOutputOpts,@i3ConfigValue keepend +syn region swayConfigOutput matchgroup=i3ConfigParen start=/ {$/ end=/^\s*}$/ contained contains=swayConfigOutputOpts,@i3ConfigValue,i3ConfigComment keepend +syn match swayConfigOutputIdent /[^ ,;]\+/ contained contains=@i3ConfigIdent skipwhite nextgroup=swayConfigOutput extend +syn keyword i3ConfigKeyword output contained skipwhite nextgroup=swayConfigOutputIdent +syn keyword i3ConfigActionKeyword output contained skipwhite nextgroup=swayConfigOutputIdent + +" Define the highlighting. +hi def link swayConfigFloatingModifierOpts i3ConfigOption +hi def link swayConfigBarIdent i3ConfigIdent +hi def link swayConfigXOpt i3ConfigOption +hi def link swayConfigInhibitOpts i3ConfigOption +hi def link swayConfigBindswitchArgument i3ConfigBindArgument +hi def link swayConfigBindswitchType i3ConfigMoveType +hi def link swayConfigBindswitchState i3ConfigMoveDir +hi def link swayConfigBindgestureArgument i3ConfigBindArgument +hi def link swayConfigBindgestureType i3ConfigMoveType +hi def link swayConfigBindgestureDir i3ConfigMoveDir +hi def link swayConfigDeviceOper i3ConfigOperator +hi def link swayConfigInputType i3ConfigMoveType +hi def link swayConfigInputTypeIdent i3ConfigMoveDir +hi def link swayConfigInputIdent i3ConfigIdent +hi def link swayConfigInputOptVals i3ConfigShParam +hi def link swayConfigInputOpts i3ConfigOption +hi def link swayConfigInputAngle i3ConfigNumber +hi def link swayConfigXkbOptsPairVal i3ConfigParamLine +hi def link swayConfigXkbOptsPair i3ConfigShParam +hi def link swayConfigXkbLayout i3ConfigParamLine +hi def link swayConfigSeatOptVals swayConfigInputOptVals +hi def link swayConfigSeatOpts swayConfigInputOpts +hi def link swayConfigSeatIdent i3ConfigIdent +hi def link swayConfigOutputOptVals swayConfigInputOptVals +hi def link swayConfigOutputBgVals swayConfigInputOptVals +hi def link swayConfigOutputBg i3ConfigString +hi def link swayConfigOutputICCPath i3ConfigString +hi def link swayConfigOutputOpts swayConfigInputOpts +hi def link swayConfigOutputFPS Constant +hi def link swayConfigOutputMode i3ConfigNumber +hi def link swayConfigOutputIdent i3ConfigIdent + +let b:current_syntax = "swayconfig" diff --git a/git/usr/share/vim/vim92/syntax/swift.vim b/git/usr/share/vim/vim92/syntax/swift.vim new file mode 100644 index 0000000000000000000000000000000000000000..ff07be29fa6c20c0fe40fe2f2a75291fa607a1c0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/swift.vim @@ -0,0 +1,286 @@ +" This source file is part of the Swift.org open source project +" +" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors +" Licensed under Apache License v2.0 with Runtime Library Exception +" +" See https://swift.org/LICENSE.txt for license information +" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +" +" Vim syntax file +" Language: swift +" Maintainer: Joe Groff +" Last Change: 2018 Jan 21 +" +" Vim maintainer: Emir SARI + +if exists("b:current_syntax") + finish +endif + +let s:keepcpo = &cpo +set cpo&vim + +syn keyword swiftKeyword + \ break + \ case + \ catch + \ continue + \ default + \ defer + \ do + \ else + \ fallthrough + \ for + \ guard + \ if + \ in + \ repeat + \ return + \ switch + \ throw + \ try + \ where + \ while +syn match swiftMultiwordKeyword + \ "indirect case" + +syn keyword swiftCoreTypes + \ Any + \ AnyObject + +syn keyword swiftImport skipwhite skipempty nextgroup=swiftImportModule + \ import + +syn keyword swiftDefinitionModifier + \ convenience + \ dynamic + \ fileprivate + \ final + \ internal + \ lazy + \ nonmutating + \ open + \ override + \ prefix + \ private + \ public + \ required + \ rethrows + \ static + \ throws + \ weak + +syn keyword swiftInOutKeyword skipwhite skipempty nextgroup=swiftTypeName + \ inout + +syn keyword swiftIdentifierKeyword + \ Self + \ metatype + \ self + \ super + +syn keyword swiftFuncKeywordGeneral skipwhite skipempty nextgroup=swiftTypeParameters + \ init + +syn keyword swiftFuncKeyword + \ deinit + \ subscript + +syn keyword swiftScope + \ autoreleasepool + +syn keyword swiftMutating skipwhite skipempty nextgroup=swiftFuncDefinition + \ mutating +syn keyword swiftFuncDefinition skipwhite skipempty nextgroup=swiftTypeName,swiftOperator + \ func + +syn keyword swiftTypeDefinition skipwhite skipempty nextgroup=swiftTypeName + \ class + \ enum + \ extension + \ operator + \ precedencegroup + \ protocol + \ struct + +syn keyword swiftTypeAliasDefinition skipwhite skipempty nextgroup=swiftTypeAliasName + \ associatedtype + \ typealias + +syn match swiftMultiwordTypeDefinition skipwhite skipempty nextgroup=swiftTypeName + \ "indirect enum" + +syn keyword swiftVarDefinition skipwhite skipempty nextgroup=swiftVarName + \ let + \ var + +syn keyword swiftLabel + \ get + \ set + \ didSet + \ willSet + +syn keyword swiftBoolean + \ false + \ true + +syn keyword swiftNil + \ nil + +syn match swiftImportModule contained nextgroup=swiftImportComponent + \ /\<[A-Za-z_][A-Za-z_0-9]*\>/ +syn match swiftImportComponent contained nextgroup=swiftImportComponent + \ /\.\<[A-Za-z_][A-Za-z_0-9]*\>/ + +syn match swiftTypeAliasName contained skipwhite skipempty nextgroup=swiftTypeAliasValue + \ /\<[A-Za-z_][A-Za-z_0-9]*\>/ +syn match swiftTypeName contained skipwhite skipempty nextgroup=swiftTypeParameters + \ /\<[A-Za-z_][A-Za-z_0-9\.]*\>/ +syn match swiftVarName contained skipwhite skipempty nextgroup=swiftTypeDeclaration + \ /\<[A-Za-z_][A-Za-z_0-9]*\>/ +syn match swiftImplicitVarName + \ /\$\<[A-Za-z_0-9]\+\>/ + +" TypeName[Optionality]? +syn match swiftType contained skipwhite skipempty nextgroup=swiftTypeParameters + \ /\<[A-Za-z_][A-Za-z_0-9\.]*\>[!?]\?/ +" [Type:Type] (dictionary) or [Type] (array) +syn region swiftType contained contains=swiftTypePair,swiftType + \ matchgroup=Delimiter start=/\[/ end=/\]/ +syn match swiftTypePair contained skipwhite skipempty nextgroup=swiftTypeParameters,swiftTypeDeclaration + \ /\<[A-Za-z_][A-Za-z_0-9\.]*\>[!?]\?/ +" (Type[, Type]) (tuple) +" FIXME: we should be able to use skip="," and drop swiftParamDelim +syn region swiftType contained contains=swiftType,swiftParamDelim + \ matchgroup=Delimiter start="[^@]\?(" end=")" matchgroup=NONE skip="," +syn match swiftParamDelim contained + \ /,/ +" (generics) +syn region swiftTypeParameters contained contains=swiftVarName,swiftConstraint + \ matchgroup=Delimiter start="<" end=">" matchgroup=NONE skip="," +syn keyword swiftConstraint contained + \ where + +syn match swiftTypeAliasValue skipwhite skipempty nextgroup=swiftType + \ /=/ +syn match swiftTypeDeclaration skipwhite skipempty nextgroup=swiftType,swiftInOutKeyword + \ /:/ +syn match swiftTypeDeclaration skipwhite skipempty nextgroup=swiftType + \ /->/ + +syn match swiftKeyword + \ /\/ +syn region swiftCaseLabelRegion + \ matchgroup=swiftKeyword start=/\/ matchgroup=Delimiter end=/:/ oneline contains=TOP +syn region swiftDefaultLabelRegion + \ matchgroup=swiftKeyword start=/\/ matchgroup=Delimiter end=/:/ oneline + +syn region swiftParenthesisRegion contains=TOP + \ matchgroup=NONE start=/(/ end=/)/ + +syn region swiftString contains=swiftInterpolationRegion + \ start=/"/ skip=/\\\\\|\\"/ end=/"/ +syn region swiftInterpolationRegion contained contains=TOP + \ matchgroup=swiftInterpolation start=/\\(/ end=/)/ +syn region swiftComment contains=swiftComment,swiftLineComment,swiftTodo + \ start="/\*" end="\*/" +syn region swiftLineComment contains=swiftComment,swiftTodo + \ start="//" end="$" + +syn match swiftDecimal + \ /[+\-]\?\<\([0-9][0-9_]*\)\([.][0-9_]*\)\?\([eE][+\-]\?[0-9][0-9_]*\)\?\>/ +syn match swiftHex + \ /[+\-]\?\<0x[0-9A-Fa-f][0-9A-Fa-f_]*\(\([.][0-9A-Fa-f_]*\)\?[pP][+\-]\?[0-9][0-9_]*\)\?\>/ +syn match swiftOct + \ /[+\-]\?\<0o[0-7][0-7_]*\>/ +syn match swiftBin + \ /[+\-]\?\<0b[01][01_]*\>/ + +syn match swiftOperator skipwhite skipempty nextgroup=swiftTypeParameters + \ "\.\@!&|^~]\@!&|^~]*\|*/\@![/=\-+*%<>!&|^~]*\|->\@![/=\-+*%<>!&|^~]*\|[=+%<>!&|^~][/=\-+*%<>!&|^~]*\)" +syn match swiftOperator skipwhite skipempty nextgroup=swiftTypeParameters + \ "\.\.[<.]" + +syn match swiftChar + \ /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{4}\|U[0-9a-fA-F]\{8}\)\)'/ + +syn match swiftTupleIndexNumber contains=swiftDecimal + \ /\.[0-9]\+/ +syn match swiftDecimal contained + \ /[0-9]\+/ + +syn match swiftPreproc + \ /#\(\\|\\|\\|\\|\\)/ +syn match swiftPreproc + \ /^\s*#\(\\|\\|\\|\\|\\|\\)/ +syn region swiftPreprocFalse + \ start="^\s*#\\s\+\" end="^\s*#\(\\|\\|\\)" + +syn match swiftAttribute + \ /@\<\w\+\>/ skipwhite skipempty nextgroup=swiftType,swiftTypeDefinition + +syn keyword swiftTodo MARK TODO FIXME contained + +syn match swiftCastOp skipwhite skipempty nextgroup=swiftType,swiftCoreTypes + \ "\" +syn match swiftCastOp skipwhite skipempty nextgroup=swiftType,swiftCoreTypes + \ "\[!?]\?" + +syn match swiftNilOps + \ "??" + +syn region swiftReservedIdentifier oneline + \ start=/`/ end=/`/ + +hi def link swiftImport Include +hi def link swiftImportModule Title +hi def link swiftImportComponent Identifier +hi def link swiftKeyword Statement +hi def link swiftCoreTypes Type +hi def link swiftMultiwordKeyword Statement +hi def link swiftTypeDefinition Define +hi def link swiftMultiwordTypeDefinition Define +hi def link swiftType Type +hi def link swiftTypePair Type +hi def link swiftTypeAliasName Identifier +hi def link swiftTypeName Function +hi def link swiftConstraint Special +hi def link swiftFuncDefinition Define +hi def link swiftDefinitionModifier Operator +hi def link swiftInOutKeyword Define +hi def link swiftFuncKeyword Function +hi def link swiftFuncKeywordGeneral Function +hi def link swiftTypeAliasDefinition Define +hi def link swiftVarDefinition Define +hi def link swiftVarName Identifier +hi def link swiftImplicitVarName Identifier +hi def link swiftIdentifierKeyword Identifier +hi def link swiftTypeAliasValue Delimiter +hi def link swiftTypeDeclaration Delimiter +hi def link swiftTypeParameters Delimiter +hi def link swiftBoolean Boolean +hi def link swiftString String +hi def link swiftInterpolation Special +hi def link swiftComment Comment +hi def link swiftLineComment Comment +hi def link swiftDecimal Number +hi def link swiftHex Number +hi def link swiftOct Number +hi def link swiftBin Number +hi def link swiftOperator Function +hi def link swiftChar Character +hi def link swiftLabel Operator +hi def link swiftMutating Statement +hi def link swiftPreproc PreCondit +hi def link swiftPreprocFalse Comment +hi def link swiftAttribute Type +hi def link swiftTodo Todo +hi def link swiftNil Constant +hi def link swiftCastOp Operator +hi def link swiftNilOps Operator +hi def link swiftScope PreProc + +let b:current_syntax = "swift" + +let &cpo = s:keepcpo +unlet s:keepcpo diff --git a/git/usr/share/vim/vim92/syntax/swiftgyb.vim b/git/usr/share/vim/vim92/syntax/swiftgyb.vim new file mode 100644 index 0000000000000000000000000000000000000000..566b75b2ed51e35f4098f5daa97ad7515450d244 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/swiftgyb.vim @@ -0,0 +1,24 @@ +" This source file is part of the Swift.org open source project +" +" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors +" Licensed under Apache License v2.0 with Runtime Library Exception +" +" See https://swift.org/LICENSE.txt for license information +" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +" +" Vim syntax file +" Language: gyb on swift +" +" Vim maintainer: Emir SARI + +runtime! syntax/swift.vim +unlet b:current_syntax + +syn include @Python syntax/python.vim +syn region pythonCode matchgroup=gybPythonCode start=+^ *%+ end=+$+ contains=@Python keepend +syn region pythonCode matchgroup=gybPythonCode start=+%{+ end=+}%+ contains=@Python keepend +syn match gybPythonCode /\${[^}]*}/ +hi def link gybPythonCode CursorLineNr + +let b:current_syntax = "swiftgyb" + diff --git a/git/usr/share/vim/vim92/syntax/swig.vim b/git/usr/share/vim/vim92/syntax/swig.vim new file mode 100644 index 0000000000000000000000000000000000000000..b62621264a07646d588f1f4ee6aeb56b6f61dd51 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/swig.vim @@ -0,0 +1,99 @@ +" Vim syntax file +" Language: SWIG +" Maintainer: Julien Marrec +" Last Change: 2023 November 23 + +if exists("b:current_syntax") + finish +endif + +" Read the C++ syntax to start with +runtime! syntax/cpp.vim +unlet b:current_syntax + +" SWIG extentions +syn keyword swigInclude %include %import %importfile %includefile %module + +syn keyword swigMostCommonDirective %alias %apply %beginfile %clear %constant %define %echo %enddef %endoffile +syn keyword swigMostCommonDirective %extend %feature %director %fragment %ignore %inline +syn keyword swigMostCommonDirective %keyword %name %namewarn %native %newobject %parms %pragma +syn keyword swigMostCommonDirective %rename %template %typedef %typemap %types %varargs + +" SWIG: Language specific macros +syn keyword swigOtherLanguageSpecific %luacode %go_import + +syn keyword swigCSharp %csattributes %csconst %csconstvalue %csmethodmodifiers %csnothrowexception +syn keyword swigCSharp %dconstvalue %dmanifestconst %dmethodmodifiers + +syn keyword swigJava %javaconstvalue %javaexception %javamethodmodifiers %javaconst %nojavaexception + +syn keyword swigGuile %multiple_values %values_as_list %values_as_vector + +syn keyword swigPHP %rinit %rshutdown %minit %mshutdown + +syn keyword swigPython %pybinoperator %pybuffer_binary %pybuffer_mutable_binary %pybuffer_mutable_string %pybuffer_string +syn keyword swigPython %pythonappend %pythonbegin %pythoncode %pythondynamic %pythonnondynamic %pythonprepend + +syn keyword swigRuby %markfunc %trackobjects %bang +syn keyword swigScilab %scilabconst + +" SWIG: Insertion +syn keyword swigInsertSection %insert %begin %runtime %header %wrapper %init + +" SWIG: Other directives +syn keyword swigCstring %cstring_bounded_mutable %cstring_bounded_output %cstring_chunk_output %cstring_input_binary %cstring_mutable +syn keyword swigCstring %cstring_output_allocate %cstring_output_allocate_size %cstring_output_maxsize %cstring_output_withsize +syn keyword swigCWstring %cwstring_bounded_mutable %cwstring_bounded_output %cwstring_chunk_output %cwstring_input_binary %cwstring_mutable +syn keyword swigCWstring %cwstring_output_allocate %cwstring_output_allocate_size %cwstring_output_maxsize %cwstring_output_withsize +syn keyword swigCMalloc %malloc %calloc %realloc %free %sizeof %allocators + +syn keyword swigExceptionHandling %catches %raise %allowexception %exceptionclass %warn %warnfilter %exception +syn keyword swigContract %contract %aggregate_check + +syn keyword swigDirective %addmethods %array_class %array_functions %attribute %attribute2 %attribute2ref +syn keyword swigDirective %attribute_ref %attributeref %attributestring %attributeval %auto_ptr %callback +syn keyword swigDirective %delete_array %delobject %extend_smart_pointer %factory %fastdispatch %freefunc %immutable +syn keyword swigDirective %implicit %implicitconv %interface %interface_custom %interface_impl %intrusive_ptr %intrusive_ptr_no_wrap +syn keyword swigDirective %mutable %naturalvar %nocallback %nocopyctor %nodefaultctor %nodefaultdtor %nonaturalvar %nonspace +syn keyword swigDirective %nspace %pointer_cast %pointer_class %pointer_functions %predicate %proxycode +syn keyword swigDirective %refobject %set_output %shared_ptr %std_comp_methods +syn keyword swigDirective %std_nodefconst_type %typecheck %typemaps_string %unique_ptr %unrefobject %valuewrapper + +syn match swigVerbatimStartEnd "%[{}]" + +syn match swigUserDef "%\w\+" +syn match swigVerbatimMacro "^\s*%#\w\+\%( .*\)\?$" + +" SWIG: typemap var and typemap macros (eg: $1, $*1_type, $&n_ltype, $self) +syn match swigTypeMapVars "\$[*&_a-zA-Z0-9]\+" + +" Default highlighting +hi def link swigInclude Include +hi def link swigMostCommonDirective Structure +hi def link swigDirective Macro +hi def link swigContract swigExceptionHandling +hi def link swigExceptionHandling Exception +hi def link swigUserDef Function + +hi def link swigCMalloc Statement +hi def link swigCstring Type +hi def link swigCWstring Type + +hi def link swigCSharp swigOtherLanguageSpecific +hi def link swigJava swigOtherLanguageSpecific +hi def link swigGuile swigOtherLanguageSpecific +hi def link swigPHP swigOtherLanguageSpecific +hi def link swigPython swigOtherLanguageSpecific +hi def link swigRuby swigOtherLanguageSpecific +hi def link swigScilab swigOtherLanguageSpecific +hi def link swigOtherLanguageSpecific Special + +hi def link swigInsertSection PreProc + +hi def link swigVerbatimStartEnd Statement +hi def link swigVerbatimMacro Macro + +hi def link swigTypeMapVars SpecialChar + +let b:current_syntax = "swig" +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/syncolor.vim b/git/usr/share/vim/vim92/syntax/syncolor.vim new file mode 100644 index 0000000000000000000000000000000000000000..8b0beb88d90018d06c5f03a0b514305e12e3f6b3 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/syncolor.vim @@ -0,0 +1,97 @@ +" Vim syntax support file +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" This file sets up the default methods for highlighting. +" It is loaded from "synload.vim" and from Vim for ":syntax reset". +" Also used from init_highlight(). + +if !exists("syntax_cmd") || syntax_cmd == "on" + " ":syntax on" works like in Vim 5.7: set colors but keep links + command -nargs=* SynColor hi + command -nargs=* SynLink hi link +else + if syntax_cmd == "enable" + " ":syntax enable" keeps any existing colors + command -nargs=* SynColor hi def + command -nargs=* SynLink hi def link + elseif syntax_cmd == "reset" + " ":syntax reset" resets all colors to the default + command -nargs=* SynColor hi + command -nargs=* SynLink hi! link + else + " User defined syncolor file has already set the colors. + finish + endif +endif + +" Many terminals can only use six different colors (plus black and white). +" Therefore the number of colors used is kept low. It doesn't look nice with +" too many colors anyway. +" Careful with "cterm=bold", it changes the color to bright for some terminals. +" There are two sets of defaults: for a dark and a light background. +if &background == "dark" + SynColor Comment term=bold cterm=NONE ctermfg=Cyan ctermbg=NONE gui=NONE guifg=#80a0ff guibg=NONE + SynColor Constant term=underline cterm=NONE ctermfg=Magenta ctermbg=NONE gui=NONE guifg=#ffa0a0 guibg=NONE + SynColor Special term=bold cterm=NONE ctermfg=LightRed ctermbg=NONE gui=NONE guifg=Orange guibg=NONE + SynColor Identifier term=underline cterm=bold ctermfg=Cyan ctermbg=NONE gui=NONE guifg=#40ffff guibg=NONE + SynColor Statement term=bold cterm=NONE ctermfg=Yellow ctermbg=NONE gui=bold guifg=#ffff60 guibg=NONE + SynColor PreProc term=underline cterm=NONE ctermfg=LightBlue ctermbg=NONE gui=NONE guifg=#ff80ff guibg=NONE + SynColor Type term=underline cterm=NONE ctermfg=LightGreen ctermbg=NONE gui=bold guifg=#60ff60 guibg=NONE + SynColor Underlined term=underline cterm=underline ctermfg=LightBlue gui=underline guifg=#80a0ff + SynColor Ignore term=NONE cterm=NONE ctermfg=black ctermbg=NONE gui=NONE guifg=bg guibg=NONE + SynColor Added term=NONE cterm=NONE ctermfg=Green ctermbg=NONE gui=NONE guifg=LimeGreen guibg=NONE + SynColor Changed term=NONE cterm=NONE ctermfg=Blue ctermbg=NONE gui=NONE guifg=DodgerBlue guibg=NONE + SynColor Removed term=NONE cterm=NONE ctermfg=Red ctermbg=NONE gui=NONE guifg=Red guibg=NONE +else + SynColor Comment term=bold cterm=NONE ctermfg=DarkBlue ctermbg=NONE gui=NONE guifg=Blue guibg=NONE + SynColor Constant term=underline cterm=NONE ctermfg=DarkRed ctermbg=NONE gui=NONE guifg=Magenta guibg=NONE + " #6a5acd is SlateBlue + SynColor Special term=bold cterm=NONE ctermfg=DarkMagenta ctermbg=NONE gui=NONE guifg=#6a5acd guibg=NONE + SynColor Identifier term=underline cterm=NONE ctermfg=DarkCyan ctermbg=NONE gui=NONE guifg=DarkCyan guibg=NONE + SynColor Statement term=bold cterm=NONE ctermfg=Brown ctermbg=NONE gui=bold guifg=Brown guibg=NONE + " #6a0dad is Purple + SynColor PreProc term=underline cterm=NONE ctermfg=DarkMagenta ctermbg=NONE gui=NONE guifg=#6a0dad guibg=NONE + SynColor Type term=underline cterm=NONE ctermfg=DarkGreen ctermbg=NONE gui=bold guifg=SeaGreen guibg=NONE + SynColor Underlined term=underline cterm=underline ctermfg=DarkMagenta gui=underline guifg=SlateBlue + SynColor Ignore term=NONE cterm=NONE ctermfg=white ctermbg=NONE gui=NONE guifg=bg guibg=NONE + SynColor Added term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=NONE gui=NONE guifg=SeaGreen guibg=NONE + SynColor Changed term=NONE cterm=NONE ctermfg=Blue ctermbg=NONE gui=NONE guifg=DodgerBlue guibg=NONE + SynColor Removed term=NONE cterm=NONE ctermfg=Red ctermbg=NONE gui=NONE guifg=Red guibg=NONE +endif +SynColor Error term=reverse cterm=NONE ctermfg=White ctermbg=Red gui=NONE guifg=White guibg=Red +SynColor Todo term=standout cterm=NONE ctermfg=Black ctermbg=Yellow gui=NONE guifg=Blue guibg=Yellow +SynColor Bold term=bold cterm=bold ctermfg=NONE ctermbg=NONE gui=bold guifg=NONE guibg=NONE +SynColor Italic term=italic cterm=italic ctermfg=NONE ctermbg=NONE gui=italic guifg=NONE guibg=NONE +SynColor BoldItalic term=bold,italic cterm=bold,italic ctermfg=NONE ctermbg=NONE gui=bold,italic guifg=NONE guibg=NONE + +" Common groups that link to default highlighting. +" You can specify other highlighting easily. +SynLink String Constant +SynLink Character Constant +SynLink Number Constant +SynLink Boolean Constant +SynLink Float Number +SynLink Function Identifier +SynLink Conditional Statement +SynLink Repeat Statement +SynLink Label Statement +SynLink Operator Statement +SynLink Keyword Statement +SynLink Exception Statement +SynLink Include PreProc +SynLink Define PreProc +SynLink Macro PreProc +SynLink PreCondit PreProc +SynLink StorageClass Type +SynLink Structure Type +SynLink Typedef Type +SynLink Tag Special +SynLink SpecialChar Special +SynLink Delimiter Special +SynLink SpecialComment Special +SynLink Debug Special + +delcommand SynColor +delcommand SynLink diff --git a/git/usr/share/vim/vim92/syntax/synload.vim b/git/usr/share/vim/vim92/syntax/synload.vim new file mode 100644 index 0000000000000000000000000000000000000000..553e8b209e529c4d0a80251d9cb69b37254785d2 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/synload.vim @@ -0,0 +1,84 @@ +" Vim syntax support file +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" This file sets up for syntax highlighting. +" It is loaded from "syntax.vim" and "manual.vim". +" 1. Set the default highlight groups. +" 2. Install Syntax autocommands for all the available syntax files. + +if !has("syntax") + finish +endif + +" let others know that syntax has been switched on +let syntax_on = 1 + +" Set the default highlighting colors. Use a color scheme if specified. +if exists("colors_name") + exe "colors " . colors_name +else + runtime! syntax/syncolor.vim +endif + +" Line continuation is used here, remove 'C' from 'cpoptions' +let s:cpo_save = &cpo +set cpo&vim + +" First remove all old syntax autocommands. +au! Syntax + +au Syntax * call s:SynSet() + +fun! s:SynSet() + " clear syntax for :set syntax=OFF and any syntax name that doesn't exist + syn clear + if exists("b:current_syntax") + unlet b:current_syntax + endif + + 0verbose let s = expand("") + if s == "ON" + " :set syntax=ON + if &filetype == "" + echohl ErrorMsg + echo "filetype unknown" + echohl None + endif + let s = &filetype + elseif s == "OFF" + let s = "" + endif + + if s != "" + " Load the syntax file(s). When there are several, separated by dots, + " load each in sequence. Skip empty entries. + for name in split(s, '\.') + if !empty(name) + exe "runtime! syntax/" . name . ".vim syntax/" . name . "/*.vim" + endif + endfor + endif +endfun + + +" Handle adding doxygen to other languages (C, C++, C#, IDL, java, php, DataScript) +au Syntax c,cpp,cs,idl,java,php,datascript + \ if (exists('b:load_doxygen_syntax') && b:load_doxygen_syntax) + \ || (exists('g:load_doxygen_syntax') && g:load_doxygen_syntax) + \ | runtime! syntax/doxygen.vim + \ | endif + + +" Source the user-specified syntax highlighting file +if exists("mysyntaxfile") + let s:fname = expand(mysyntaxfile) + if filereadable(s:fname) + execute "source " . fnameescape(s:fname) + endif +endif + +" Restore 'cpoptions' +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/syntax.vim b/git/usr/share/vim/vim92/syntax/syntax.vim new file mode 100644 index 0000000000000000000000000000000000000000..06b8d8f11faf5fa032a88e502408669ed40cb867 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/syntax.vim @@ -0,0 +1,45 @@ +" Vim syntax support file +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" This file is used for ":syntax on". +" It installs the autocommands and starts highlighting for all buffers. + +if !has("syntax") + finish +endif + +" If Syntax highlighting appears to be on already, turn it off first, so that +" any leftovers are cleared. +if exists("syntax_on") || exists("syntax_manual") + so :p:h/nosyntax.vim +endif + +" Load the Syntax autocommands and set the default methods for highlighting. +runtime syntax/synload.vim + +" Load the FileType autocommands if not done yet. +if exists("did_load_filetypes") + let s:did_ft = 1 +else + filetype on + let s:did_ft = 0 +endif + +" Set up the connection between FileType and Syntax autocommands. +" This makes the syntax automatically set when the file type is detected. +" Avoid an error when 'verbose' is set and expansion fails. +augroup syntaxset + au! FileType * 0verbose exe "set syntax=" . expand("") +augroup END + + +" Execute the syntax autocommands for the each buffer. +" If the filetype wasn't detected yet, do that now. +" Always do the syntaxset autocommands, for buffers where the 'filetype' +" already was set manually (e.g., help buffers). +doautoall syntaxset FileType +if !s:did_ft + doautoall filetypedetect BufRead +endif diff --git a/git/usr/share/vim/vim92/syntax/sysctl.vim b/git/usr/share/vim/vim92/syntax/sysctl.vim new file mode 100644 index 0000000000000000000000000000000000000000..d99ac018350b52708b4ad8aa7e4c6da47a67b195 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/sysctl.vim @@ -0,0 +1,39 @@ +" Vim syntax file +" Language: sysctl.conf(5) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2011-05-02 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match sysctlBegin display '^' + \ nextgroup=sysctlToken,sysctlComment skipwhite + +syn match sysctlToken contained display '[^=]\+' + \ nextgroup=sysctlTokenEq skipwhite + +syn match sysctlTokenEq contained display '=' nextgroup=sysctlValue skipwhite + +syn region sysctlValue contained display oneline + \ matchgroup=sysctlValue start='\S' + \ matchgroup=Normal end='\s*$' + +syn keyword sysctlTodo contained TODO FIXME XXX NOTE + +syn region sysctlComment display oneline start='^\s*[#;]' end='$' + \ contains=sysctlTodo,@Spell + +hi def link sysctlTodo Todo +hi def link sysctlComment Comment +hi def link sysctlToken Identifier +hi def link sysctlTokenEq Operator +hi def link sysctlValue String + +let b:current_syntax = "sysctl" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/systemd.vim b/git/usr/share/vim/vim92/syntax/systemd.vim new file mode 100644 index 0000000000000000000000000000000000000000..5dfba74408cabf6de0f0e16a19b3cc7e8639a42c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/systemd.vim @@ -0,0 +1,8 @@ +" Vim syntax file +" Language: systemd.unit(5) + +if !exists('b:current_syntax') + " Looks a lot like dosini files. + runtime! syntax/dosini.vim + let b:current_syntax = 'systemd' +endif diff --git a/git/usr/share/vim/vim92/syntax/systemverilog.vim b/git/usr/share/vim/vim92/syntax/systemverilog.vim new file mode 100644 index 0000000000000000000000000000000000000000..94c343e01a68f38785b1e1b28bfa91b52fce9b06 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/systemverilog.vim @@ -0,0 +1,90 @@ +" Vim syntax file +" Language: SystemVerilog +" Maintainer: kocha +" Last Change: 12-Aug-2013. +" 2025 Aug 20 by Vim project: Add IEE1800-2023 block #18056 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Read in Verilog syntax files +runtime! syntax/verilog.vim +unlet b:current_syntax + +" IEEE1800-2005 +syn keyword systemverilogStatement always_comb always_ff always_latch +syn keyword systemverilogStatement class endclass new +syn keyword systemverilogStatement virtual local const protected +syn keyword systemverilogStatement package endpackage +syn keyword systemverilogStatement rand randc constraint randomize +syn keyword systemverilogStatement with inside dist +syn keyword systemverilogStatement sequence endsequence randsequence +syn keyword systemverilogStatement srandom +syn keyword systemverilogStatement logic bit byte +syn keyword systemverilogStatement int longint shortint +syn keyword systemverilogStatement struct packed +syn keyword systemverilogStatement final +syn keyword systemverilogStatement import export +syn keyword systemverilogStatement context pure +syn keyword systemverilogStatement void shortreal chandle string +syn keyword systemverilogStatement clocking endclocking iff +syn keyword systemverilogStatement interface endinterface modport +syn keyword systemverilogStatement cover covergroup coverpoint endgroup +syn keyword systemverilogStatement property endproperty +syn keyword systemverilogStatement program endprogram +syn keyword systemverilogStatement bins binsof illegal_bins ignore_bins +syn keyword systemverilogStatement alias matches solve static assert +syn keyword systemverilogStatement assume super before expect bind +syn keyword systemverilogStatement extends null tagged extern this +syn keyword systemverilogStatement first_match throughout timeprecision +syn keyword systemverilogStatement timeunit type union +syn keyword systemverilogStatement uwire var cross ref wait_order intersect +syn keyword systemverilogStatement wildcard within + +syn keyword systemverilogTypeDef typedef enum + +syn keyword systemverilogConditional randcase +syn keyword systemverilogConditional unique priority + +syn keyword systemverilogRepeat return break continue +syn keyword systemverilogRepeat do foreach + +syn keyword systemverilogLabel join_any join_none forkjoin + +" IEEE1800-2009 add +syn keyword systemverilogStatement checker endchecker +syn keyword systemverilogStatement accept_on reject_on +syn keyword systemverilogStatement sync_accept_on sync_reject_on +syn keyword systemverilogStatement eventually nexttime until until_with +syn keyword systemverilogStatement s_always s_eventually s_nexttime s_until s_until_with +syn keyword systemverilogStatement let untyped +syn keyword systemverilogStatement strong weak +syn keyword systemverilogStatement restrict global implies + +syn keyword systemverilogConditional unique0 + +" IEEE1800-2012 add +syn keyword systemverilogStatement implements +syn keyword systemverilogStatement interconnect soft nettype + +" IEEE1800-2023 add +syn region systemverilogBlockString start=+"""+ end=+"""+ contains=verilogEscape,@Spell + +" Define the default highlighting. + +" The default highlighting. +hi def link systemverilogStatement Statement +hi def link systemverilogTypeDef TypeDef +hi def link systemverilogConditional Conditional +hi def link systemverilogRepeat Repeat +hi def link systemverilogLabel Label +hi def link systemverilogGlobal Define +hi def link systemverilogNumber Number +hi def link systemverilogBlockString String + + +let b:current_syntax = "systemverilog" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/tads.vim b/git/usr/share/vim/vim92/syntax/tads.vim new file mode 100644 index 0000000000000000000000000000000000000000..23a65b99eccaf2a7bc8bd22189b5ed92c799e855 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tads.vim @@ -0,0 +1,171 @@ +" Vim syntax file +" Language: TADS +" Maintainer: Amir Karger +" $Date: 2004/06/13 19:28:45 $ +" $Revision: 1.1 $ +" Stolen from: Bram Moolenaar's C language file +" Newest version at: http://www.hec.utah.edu/~karger/vim/syntax/tads.vim +" History info at the bottom of the file + +" TODO lots more keywords +" global, self, etc. are special *objects*, not functions. They should +" probably be a different color than the special functions +" Actually, should cvtstr etc. be functions?! (change tadsFunction) +" Make global etc. into Identifiers, since we don't have regular variables? + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" A bunch of useful keywords +syn keyword tadsStatement goto break return continue pass +syn keyword tadsLabel case default +syn keyword tadsConditional if else switch +syn keyword tadsRepeat while for do +syn keyword tadsStorageClass local compoundWord formatstring specialWords +syn keyword tadsBoolean nil true + +" TADS keywords +syn keyword tadsKeyword replace modify +syn keyword tadsKeyword global self inherited +" builtin functions +syn keyword tadsKeyword cvtstr cvtnum caps lower upper substr +syn keyword tadsKeyword say length +syn keyword tadsKeyword setit setscore +syn keyword tadsKeyword datatype proptype +syn keyword tadsKeyword car cdr +syn keyword tadsKeyword defined isclass +syn keyword tadsKeyword find firstobj nextobj +syn keyword tadsKeyword getarg argcount +syn keyword tadsKeyword input yorn askfile +syn keyword tadsKeyword rand randomize +syn keyword tadsKeyword restart restore quit save undo +syn keyword tadsException abort exit exitobj + +syn keyword tadsTodo contained TODO FIXME XXX + +" String and Character constants +" Highlight special characters (those which have a backslash) differently +syn match tadsSpecial contained "\\." +syn region tadsDoubleString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=tadsSpecial,tadsEmbedded +syn region tadsSingleString start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=tadsSpecial +" Embedded expressions in strings +syn region tadsEmbedded contained start="<<" end=">>" contains=tadsKeyword + +" TADS doesn't have \xxx, right? +"syn match cSpecial contained "\\[0-7][0-7][0-7]\=\|\\." +"syn match cSpecialCharacter "'\\[0-7][0-7]'" +"syn match cSpecialCharacter "'\\[0-7][0-7][0-7]'" + +"catch errors caused by wrong parenthesis +"syn region cParen transparent start='(' end=')' contains=ALLBUT,cParenError,cIncluded,cSpecial,cTodo,cUserCont,cUserLabel +"syn match cParenError ")" +"syn match cInParen contained "[{}]" +syn region tadsBrace transparent start='{' end='}' contains=ALLBUT,tadsBraceError,tadsIncluded,tadsSpecial,tadsTodo +syn match tadsBraceError "}" + +"integer number (TADS has no floating point numbers) +syn case ignore +syn match tadsNumber "\<[0-9]\+\>" +"hex number +syn match tadsNumber "\<0x[0-9a-f]\+\>" +syn match tadsIdentifier "\<[a-z][a-z0-9_$]*\>" +syn case match +" flag an octal number with wrong digits +syn match tadsOctalError "\<0[0-7]*[89]" + +" Removed complicated c_comment_strings +syn region tadsComment start="/\*" end="\*/" contains=tadsTodo +syn match tadsComment "//.*" contains=tadsTodo +syntax match tadsCommentError "\*/" + +syn region tadsPreCondit start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=tadsComment,tadsString,tadsNumber,tadsCommentError +syn region tadsIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match tadsIncluded contained "<[^>]*>" +syn match tadsInclude "^\s*#\s*include\>\s*["<]" contains=tadsIncluded +syn region tadsDefine start="^\s*#\s*\(define\>\|undef\>\)" skip="\\$" end="$" contains=ALLBUT,tadsPreCondit,tadsIncluded,tadsInclude,tadsDefine,tadsInBrace,tadsIdentifier + +syn region tadsPreProc start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,tadsPreCondit,tadsIncluded,tadsInclude,tadsDefine,tadsInParen,tadsIdentifier + +" Highlight User Labels +" TODO labels for gotos? +"syn region cMulti transparent start='?' end=':' contains=ALLBUT,cIncluded,cSpecial,cTodo,cUserCont,cUserLabel,cBitField +" Avoid matching foo::bar() in C++ by requiring that the next char is not ':' +"syn match cUserCont "^\s*\I\i*\s*:$" contains=cUserLabel +"syn match cUserCont ";\s*\I\i*\s*:$" contains=cUserLabel +"syn match cUserCont "^\s*\I\i*\s*:[^:]" contains=cUserLabel +"syn match cUserCont ";\s*\I\i*\s*:[^:]" contains=cUserLabel + +"syn match cUserLabel "\I\i*" contained + +" identifier: class-name [, class-name [...]] [property-list] ; +" Don't highlight comment in class def +syn match tadsClassDef "\[^/]*" contains=tadsObjectDef,tadsClass +syn match tadsClass contained "\" +syn match tadsObjectDef "\<[a-zA-Z][a-zA-Z0-9_$]*\s*:\s*[a-zA-Z0-9_$]\+\(\s*,\s*[a-zA-Z][a-zA-Z0-9_$]*\)*\(\s*;\)\=" +syn keyword tadsFunction contained function +syn match tadsFunctionDef "\<[a-zA-Z][a-zA-Z0-9_$]*\s*:\s*function[^{]*" contains=tadsFunction +"syn region tadsObject transparent start = '[a-zA-Z][\i$]\s*:\s*' end=";" contains=tadsBrace,tadsObjectDef + +" How far back do we go to find matching groups +if !exists("tads_minlines") + let tads_minlines = 15 +endif +exec "syn sync ccomment tadsComment minlines=" . tads_minlines +if !exists("tads_sync_dist") + let tads_sync_dist = 100 +endif +execute "syn sync maxlines=" . tads_sync_dist + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +hi def link tadsFunctionDef Function +hi def link tadsFunction Structure +hi def link tadsClass Structure +hi def link tadsClassDef Identifier +hi def link tadsObjectDef Identifier +" no highlight for tadsEmbedded, so it prints as normal text w/in the string + +hi def link tadsOperator Operator +hi def link tadsStructure Structure +hi def link tadsTodo Todo +hi def link tadsLabel Label +hi def link tadsConditional Conditional +hi def link tadsRepeat Repeat +hi def link tadsException Exception +hi def link tadsStatement Statement +hi def link tadsStorageClass StorageClass +hi def link tadsKeyWord Keyword +hi def link tadsSpecial SpecialChar +hi def link tadsNumber Number +hi def link tadsBoolean Boolean +hi def link tadsDoubleString tadsString +hi def link tadsSingleString tadsString + +hi def link tadsOctalError tadsError +hi def link tadsCommentError tadsError +hi def link tadsBraceError tadsError +hi def link tadsInBrace tadsError +hi def link tadsError Error + +hi def link tadsInclude Include +hi def link tadsPreProc PreProc +hi def link tadsDefine Macro +hi def link tadsIncluded tadsString +hi def link tadsPreCondit PreCondit + +hi def link tadsString String +hi def link tadsComment Comment + + + +let b:current_syntax = "tads" + +" Changes: +" 11/18/99 Added a bunch of TADS functions, tadsException +" 10/22/99 Misspelled Moolenaar (sorry!), c_minlines to tads_minlines +" +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/tags.vim b/git/usr/share/vim/vim92/syntax/tags.vim new file mode 100644 index 0000000000000000000000000000000000000000..e87e3fcf614cd798ed9e064842a8557b633f3a92 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tags.vim @@ -0,0 +1,33 @@ +" Language: tags +" Maintainer: This runtime file is looking for a new maintainer. +" Former Maintainer: Charles E. Campbell +" Last Change: Oct 26, 2016 +" 2024 Feb 19 by Vim Project (announce adoption) +" Version: 8 +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath +syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile +syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained +syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment +syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment +syn match tagComment ";.*$" contained contains=tagField +syn match tagComment "^!_TAG_.*$" +syn match tagField contained "[a-z]*:" + +" Define the default highlighting. +if !exists("skip_drchip_tags_inits") + hi def link tagBaseFile PreProc + hi def link tagComment Comment + hi def link tagDelim Delimiter + hi def link tagField Number + hi def link tagName Identifier + hi def link tagPath PreProc +endif + +let b:current_syntax = "tags" diff --git a/git/usr/share/vim/vim92/syntax/tak.vim b/git/usr/share/vim/vim92/syntax/tak.vim new file mode 100644 index 0000000000000000000000000000000000000000..7a8fceb8607bb725b5c181bbdf51e7b1c67de4ad --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tak.vim @@ -0,0 +1,119 @@ +" Vim syntax file +" Language: TAK2, TAK3, TAK2000 thermal modeling input file +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.tak +" URL: http://www.naglenet.org/vim/syntax/tak.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case ignore + + + +" +" +" Begin syntax definitions for tak input file. +" + +" Force free-form fortran format +let fortran_free_source=1 + +" Load FORTRAN syntax file +runtime! syntax/fortran.vim +unlet b:current_syntax + + + +" Define keywords for TAK and TAKOUT +syn keyword takOptions AUTODAMP CPRINT CSGDUMP GPRINT HPRINT LODTMP +syn keyword takOptions LOGIC LPRINT NCVPRINT PLOTQ QPRINT QDUMP +syn keyword takOptions SUMMARY SOLRTN UID DICTIONARIES + +syn keyword takRoutine SSITER FWDWRD FWDBCK BCKWRD + +syn keyword takControl ABSZRO BACKUP DAMP DTIMEI DTIMEL DTIMEH IFC +syn keyword takControl MAXTEMP NLOOPS NLOOPT NODELIST OUTPUT PLOT +syn keyword takControl SCALE SIGMA SSCRIT TIMEND TIMEN TIMEO TRCRIT +syn keyword takControl PLOT + +syn keyword takSolids PLATE CYL +syn keyword takSolidsArg ID MATNAM NTYPE TEMP XL YL ZL ISTRN ISTRG NNX +syn keyword takSolidsArg NNY NNZ INCX INCY INCZ IAK IAC DIFF ARITH BOUN +syn keyword takSolidsArg RMIN RMAX AXMAX NNR NNTHETA INCR INCTHETA END + +syn case ignore + +syn keyword takMacro fac pstart pstop +syn keyword takMacro takcommon fstart fstop + +syn keyword takIdentifier flq flx gen ncv per sim siv stf stv tvd tvs +syn keyword takIdentifier tvt pro thm + + + +" Define matches for TAK +syn match takFortran "^F[0-9 ]"me=e-1 +syn match takMotran "^M[0-9 ]"me=e-1 + +syn match takComment "^C.*$" +syn match takComment "^R.*$" +syn match takComment "\$.*$" + +syn match takHeader "^header[^,]*" + +syn match takIncludeFile "include \+[^ ]\+"hs=s+8 contains=fortranInclude + +syn match takInteger "-\=\<[0-9]*\>" +syn match takFloat "-\=\<[0-9]*\.[0-9]*" +syn match takScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" + +syn match takEndData "END OF DATA" + +if exists("thermal_todo") + execute 'syn match takTodo ' . '"^'.thermal_todo.'.*$"' +else + syn match takTodo "^?.*$" +endif + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link takMacro Macro +hi def link takOptions Special +hi def link takRoutine Type +hi def link takControl Special +hi def link takSolids Special +hi def link takSolidsArg Statement +hi def link takIdentifier Identifier + +hi def link takFortran PreProc +hi def link takMotran PreProc + +hi def link takComment Comment +hi def link takHeader Typedef +hi def link takIncludeFile Type +hi def link takInteger Number +hi def link takFloat Float +hi def link takScientific Float + +hi def link takEndData Macro + +hi def link takTodo Todo + + + +let b:current_syntax = "tak" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/takcmp.vim b/git/usr/share/vim/vim92/syntax/takcmp.vim new file mode 100644 index 0000000000000000000000000000000000000000..9426e02223baea63ece9ecde006ca3015a78d1a5 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/takcmp.vim @@ -0,0 +1,69 @@ +" Vim syntax file +" Language: TAK2, TAK3, TAK2000 thermal modeling compare file +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.cmp +" URL: http://www.naglenet.org/vim/syntax/takcmp.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case ignore + + + +" +" +" Begin syntax definitions for compare files. +" +" Define keywords for TAK compare + syn keyword takcmpUnit celsius fahrenheit + + + +" Define matches for TAK compare + syn match takcmpTitle "Steady State Temperature Comparison" + + syn match takcmpLabel "Run Date:" + syn match takcmpLabel "Run Time:" + syn match takcmpLabel "Temp. File \d Units:" + syn match takcmpLabel "Filename:" + syn match takcmpLabel "Output Units:" + + syn match takcmpHeader "^ *Node\( *File \d\)* *Node Description" + + syn match takcmpDate "\d\d\/\d\d\/\d\d" + syn match takcmpTime "\d\d:\d\d:\d\d" + syn match takcmpInteger "^ *-\=\<[0-9]*\>" + syn match takcmpFloat "-\=\<[0-9]*\.[0-9]*" + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link takcmpTitle Type +hi def link takcmpUnit PreProc + +hi def link takcmpLabel Statement + +hi def link takcmpHeader takHeader + +hi def link takcmpDate Identifier +hi def link takcmpTime Identifier +hi def link takcmpInteger Number +hi def link takcmpFloat Special + + + +let b:current_syntax = "takcmp" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/takout.vim b/git/usr/share/vim/vim92/syntax/takout.vim new file mode 100644 index 0000000000000000000000000000000000000000..5e5d3607677879cdd207f58d041e6c7ed4fddd1b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/takout.vim @@ -0,0 +1,85 @@ +" Vim syntax file +" Language: TAK2, TAK3, TAK2000 thermal modeling output file +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.out +" URL: http://www.naglenet.org/vim/syntax/takout.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case match + + + +" Load TAK syntax file +runtime! syntax/tak.vim +unlet b:current_syntax + + + +" +" +" Begin syntax definitions for tak output files. +" + +" Define keywords for TAK output +syn case match + +syn keyword takoutPos ON SI +syn keyword takoutNeg OFF ENG + + + +" Define matches for TAK output +syn match takoutTitle "TAK III" +syn match takoutTitle "Release \d.\d\d" +syn match takoutTitle " K & K Associates *Thermal Analysis Kit III *Serial Number \d\d-\d\d\d" + +syn match takoutFile ": \w*\.TAK"hs=s+2 + +syn match takoutInteger "T\=[0-9]*\>"ms=s+1 + +syn match takoutSectionDelim "[-<>]\{4,}" contains=takoutSectionTitle +syn match takoutSectionDelim ":\=\.\{4,}:\=" contains=takoutSectionTitle +syn match takoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1 + +syn match takoutHeaderDelim "=\{5,}" +syn match takoutHeaderDelim "|\{5,}" +syn match takoutHeaderDelim "+\{5,}" + +syn match takoutLabel "Input File:" contains=takoutFile +syn match takoutLabel "Begin Solution: Routine" + +syn match takoutError "<<< Error >>>" + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link takoutPos Statement +hi def link takoutNeg PreProc +hi def link takoutTitle Type +hi def link takoutFile takIncludeFile +hi def link takoutInteger takInteger + +hi def link takoutSectionDelim Delimiter +hi def link takoutSectionTitle Exception +hi def link takoutHeaderDelim SpecialComment +hi def link takoutLabel Identifier + +hi def link takoutError Error + + + +let b:current_syntax = "takout" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/tap.vim b/git/usr/share/vim/vim92/syntax/tap.vim new file mode 100644 index 0000000000000000000000000000000000000000..6b00b1d588c9c2378be6ddcfbb4de3849a77c3d4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tap.vim @@ -0,0 +1,86 @@ +" Vim syntax file +" Language: Verbose TAP Output +" Maintainer: Rufus Cable +" Remark: Simple syntax highlighting for TAP output +" License: Vim License (see :help license) +" Copyright: (c) 2008-2013 Rufus Cable +" Last Change: 2020 Mar 15 + +if exists("b:current_syntax") + finish +endif + +syn match tapTestDiag /^ *#.*/ contains=tapTestTodo +syn match tapTestTime /^ *\[\d\d:\d\d:\d\d\].*/ contains=tapTestFile +syn match tapTestFile /\w\+\/[^. ]*/ contained +syn match tapTestFileWithDot /\w\+\/[^ ]*/ contained + +syn match tapTestPlan /^ *\d\+\.\.\d\+$/ + +" tapTest is a line like 'ok 1', 'not ok 2', 'ok 3 - xxxx' +syn match tapTest /^ *\(not \)\?ok \d\+.*/ contains=tapTestStatusOK,tapTestStatusNotOK,tapTestLine + +" tapTestLine is the line without the ok/not ok status - i.e. number and +" optional message +syn match tapTestLine /\d\+\( .*\|$\)/ contains=tapTestNumber,tapTestLoadMessage,tapTestTodo,tapTestSkip contained + +" turn ok/not ok messages green/red respectively +syn match tapTestStatusOK /ok/ contained +syn match tapTestStatusNotOK /not ok/ contained + +" highlight todo tests +syn match tapTestTodo /\c\(# TODO\|Failed (TODO)\) .*$/ contained contains=tapTestTodoRev +syn match tapTestTodoRev /\c\/ contained + +" highlight skipped tests +syn match tapTestSkip /\c# skip .*$/ contained contains=tapTestSkipTag +syn match tapTestSkipTag /\c\(# \)\@<=skip\>/ contained + +" look behind so "ok 123" and "not ok 124" match test number +syn match tapTestNumber /\(ok \)\@<=\d\d*/ contained +syn match tapTestLoadMessage /\*\*\*.*\*\*\*/ contained contains=tapTestThreeStars,tapTestFileWithDot +syn match tapTestThreeStars /\*\*\*/ contained + +syn region tapTestRegion start=/^ *\(not \)\?ok.*$/me=e+1 end=/^\(\(not \)\?ok\|# Looks like you planned \|All tests successful\|Bailout called\)/me=s-1 fold transparent excludenl +syn region tapTestResultsOKRegion start=/^\(All tests successful\|Result: PASS\)/ end=/$/ +syn region tapTestResultsNotOKRegion start=/^\(# Looks like you planned \|Bailout called\|# Looks like you failed \|Result: FAIL\)/ end=/$/ +syn region tapTestResultsSummaryRegion start=/^Test Summary Report/ end=/^Files=.*$/ contains=tapTestResultsSummaryHeading,tapTestResultsSummaryNotOK + +syn region tapTestResultsSummaryHeading start=/^Test Summary Report/ end=/^-\+$/ contained +syn region tapTestResultsSummaryNotOK start=/TODO passed:/ end=/$/ contained + +syn region tapTestInstructionsRegion start=/\%1l/ end=/^$/ + +syn sync fromstart + +if !exists("did_tapverboseoutput_syntax_inits") + let did_tapverboseoutput_syntax_inits = 1 + + hi tapTestStatusOK term=bold ctermfg=green guifg=Green + hi tapTestStatusNotOK term=reverse ctermfg=black ctermbg=red guifg=Black guibg=Red + hi tapTestTodo term=bold ctermfg=yellow ctermbg=black guifg=Yellow guibg=Black + hi tapTestTodoRev term=reverse ctermfg=black ctermbg=yellow guifg=Black guibg=Yellow + hi tapTestSkip term=bold ctermfg=lightblue guifg=LightBlue + hi tapTestSkipTag term=reverse ctermfg=black ctermbg=lightblue guifg=Black guibg=LightBlue + hi tapTestTime term=bold ctermfg=blue guifg=Blue + hi tapTestFile term=reverse ctermfg=black ctermbg=yellow guibg=Black guifg=Yellow + hi tapTestLoadedFile term=bold ctermfg=black ctermbg=cyan guibg=Cyan guifg=Black + hi tapTestThreeStars term=reverse ctermfg=blue guifg=Blue + hi tapTestPlan term=bold ctermfg=yellow guifg=Yellow + + hi link tapTestFileWithDot tapTestLoadedFile + hi link tapTestNumber Number + hi link tapTestDiag Comment + + hi tapTestRegion ctermbg=green + + hi tapTestResultsOKRegion ctermbg=green ctermfg=black + hi tapTestResultsNotOKRegion ctermbg=red ctermfg=black + + hi tapTestResultsSummaryHeading ctermbg=blue ctermfg=white + hi tapTestResultsSummaryNotOK ctermbg=red ctermfg=black + + hi tapTestInstructionsRegion ctermbg=lightmagenta ctermfg=black +endif + +let b:current_syntax="tapVerboseOutput" diff --git a/git/usr/share/vim/vim92/syntax/tar.vim b/git/usr/share/vim/vim92/syntax/tar.vim new file mode 100644 index 0000000000000000000000000000000000000000..815c2219cb21f0756d2ee881a2affc0b386ad509 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tar.vim @@ -0,0 +1,19 @@ +" Language : Tar Listing Syntax +" Maintainer : Bram Moolenaar +" Last change: Sep 08, 2004 + +if exists("b:current_syntax") + finish +endif + +syn match tarComment '^".*' contains=tarFilename +syn match tarFilename 'tarfile \zs.*' contained +syn match tarDirectory '.*/$' + +hi def link tarComment Comment +hi def link tarFilename Constant +hi def link tarDirectory Type + +let b:current_syntax = 'tar' + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/taskdata.vim b/git/usr/share/vim/vim92/syntax/taskdata.vim new file mode 100644 index 0000000000000000000000000000000000000000..63a8284adfa5cf2a46f794780eb59a882ac29346 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/taskdata.vim @@ -0,0 +1,45 @@ +" Vim syntax file +" Language: task data +" Maintainer: John Florian +" Updated: Wed Jul 8 19:46:20 EDT 2009 + + +" quit when a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim + +" Key Names for values. +syn keyword taskdataKey description due end entry imask mask parent +syn keyword taskdataKey priority project recur start status tags uuid +syn match taskdataKey "annotation_\d\+" +syn match taskdataUndo "^time.*$" +syn match taskdataUndo "^\(old \|new \|---\)" + +" Values associated with key names. +" +" Strings +syn region taskdataString matchgroup=Normal start=+"+ end=+"+ + \ contains=taskdataEncoded,taskdataUUID,@Spell +" +" Special Embedded Characters (e.g., ",") +syn match taskdataEncoded "&\a\+;" contained +" UUIDs +syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained + + +" The default methods for highlighting. Can be overridden later. +hi def link taskdataEncoded Function +hi def link taskdataKey Statement +hi def link taskdataString String +hi def link taskdataUUID Special +hi def link taskdataUndo Type + +let b:current_syntax = "taskdata" + +let &cpo = s:keepcpo +unlet s:keepcpo + +" vim:noexpandtab diff --git a/git/usr/share/vim/vim92/syntax/taskedit.vim b/git/usr/share/vim/vim92/syntax/taskedit.vim new file mode 100644 index 0000000000000000000000000000000000000000..d33ca7865080d5d0d5eacc0e984d32ecc38a1013 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/taskedit.vim @@ -0,0 +1,37 @@ +" Vim syntax file +" Language: support for 'task 42 edit' +" Maintainer: John Florian +" Updated: Wed Jul 8 19:46:32 EDT 2009 + + +" quit when a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim + +syn match taskeditHeading "^\s*#\s*Name\s\+Editable details\s*$" contained +syn match taskeditHeading "^\s*#\s*-\+\s\+-\+\s*$" contained +syn match taskeditReadOnly "^\s*#\s*\(UU\)\?ID:.*$" contained +syn match taskeditReadOnly "^\s*#\s*Status:.*$" contained +syn match taskeditReadOnly "^\s*#\s*i\?Mask:.*$" contained +syn match taskeditKey "^ *.\{-}:" nextgroup=taskeditString +syn match taskeditComment "^\s*#.*$" + \ contains=taskeditReadOnly,taskeditHeading +syn match taskeditString ".*$" contained contains=@Spell + + +" The default methods for highlighting. Can be overridden later. +hi def link taskeditComment Comment +hi def link taskeditHeading Function +hi def link taskeditKey Statement +hi def link taskeditReadOnly Special +hi def link taskeditString String + +let b:current_syntax = "taskedit" + +let &cpo = s:keepcpo +unlet s:keepcpo + +" vim:noexpandtab diff --git a/git/usr/share/vim/vim92/syntax/tasm.vim b/git/usr/share/vim/vim92/syntax/tasm.vim new file mode 100644 index 0000000000000000000000000000000000000000..b8b5e6992bca8fbd8a5be3bcde9e9a455887a72c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tasm.vim @@ -0,0 +1,115 @@ +" Vim syntax file +" Language: TASM: turbo assembler by Borland +" Maintainer: FooLman of United Force +" Last Change: 2012 Feb 03 by Thilo Six, and 2018 Nov 27. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case ignore +syn match tasmLabel "^[\ \t]*[@a-z_$][a-z0-9_$@]*\ *:" +syn keyword tasmDirective ALIAS ALIGN ARG ASSUME %BIN CATSRT CODESEG +syn match tasmDirective "\<\(byte\|word\|dword\|qword\)\ ptr\>" +" CALL extended syntax +syn keyword tasmDirective COMM %CONDS CONST %CREF %CREFALL %CREFREF +syn keyword tasmDirective %CREFUREF %CTLS DATASEG DB DD %DEPTH DF DISPLAY +syn keyword tasmDirective DOSSEG DP DQ DT DW ELSE EMUL END ENDIF +" IF XXXX +syn keyword tasmDirective ENDM ENDP ENDS ENUM EQU ERR EVEN EVENDATA EXITCODE +syn keyword tasmDirective EXITM EXTRN FARDATA FASTIMUL FLIPFLAG GETFIELD GLOBAL +syn keyword tasmDirective GOTO GROUP IDEAL %INCL INCLUDE INCLUDELIB INSTR IRP +"JMP +syn keyword tasmDirective IRPC JUMPS LABEL LARGESTACK %LINUM %LIST LOCAL +syn keyword tasmDirective LOCALS MACRO %MACS MASKFLAG MASM MASM51 MODEL +syn keyword tasmDirective MULTERRS NAME %NEWPAGE %NOCONDS %NOCREF %NOCTLS +syn keyword tasmDirective NOEMUL %NOINCL NOJUMPS %NOLIST NOLOCALS %NOMACS +syn keyword tasmDirective NOMASM51 NOMULTERRS NOSMART %NOSYMS %NOTRUNC NOWARN +syn keyword tasmDirective %PAGESIZE %PCNT PNO87 %POPLCTL POPSTATE PROC PROCDESC +syn keyword tasmDirective PROCTYPE PUBLIC PUBLICDLL PURGE %PUSHCTL PUSHSTATE +"rept, ret +syn keyword tasmDirective QUIRKS RADIX RECORD RETCODE SEGMENT SETFIELD +syn keyword tasmDirective SETFLAG SIZESTR SMALLSTACK SMART STACK STARTUPCODE +syn keyword tasmDirective STRUC SUBSTR %SUBTTL %SYMS TABLE %TABSIZE TBLINIT +syn keyword tasmDirective TBLINST TBLPTR TESTFLAG %TEXT %TITLE %TRUNC TYPEDEF +syn keyword tasmDirective UDATASEG UFARDATA UNION USES VERSION WAR WHILE ?DEBUG + +syn keyword tasmInstruction AAA AAD AAM AAS ADC ADD AND ARPL BOUND BSF BSR +syn keyword tasmInstruction BSWAP BT BTC BTR BTS CALL CBW CLC CLD CLI CLTS +syn keyword tasmInstruction CMC CMP CMPXCHG CMPXCHG8B CPUID CWD CDQ CWDE +syn keyword tasmInstruction DAA DAS DEC DIV ENTER RETN RETF F2XM1 +syn keyword tasmCoprocInstr FABS FADD FADDP FBLD FBSTP FCHG FCOM FCOM2 FCOMI +syn keyword tasmCoprocInstr FCOMIP FCOMP FCOMP3 FCOMP5 FCOMPP FCOS FDECSTP +syn keyword tasmCoprocInstr FDISI FDIV FDIVP FDIVR FENI FFREE FFREEP FIADD +syn keyword tasmCoprocInstr FICOM FICOMP FIDIV FIDIVR FILD FIMUL FINIT FINCSTP +syn keyword tasmCoprocInstr FIST FISTP FISUB FISUBR FLD FLD1 FLDCW FLDENV +syn keyword tasmCoprocInstr FLDL2E FLDL2T FLDLG2 FLDLN2 FLDPI FLDZ FMUL FMULP +syn keyword tasmCoprocInstr FNCLEX FNINIT FNOP FNSAVE FNSTCW FNSTENV FNSTSW +syn keyword tasmCoprocInstr FPATAN FPREM FPREM1 FPTAN FRNDINT FRSTOR FSCALE +syn keyword tasmCoprocInstr FSETPM FSIN FSINCOM FSQRT FST FSTP FSTP1 FSTP8 +syn keyword tasmCoprocInstr FSTP9 FSUB FSUBP FSUBR FSUBRP FTST FUCOM FUCOMI +syn keyword tasmCoprocInstr FUCOMPP FWAIT FXAM FXCH FXCH4 FXCH7 FXTRACT FYL2X +syn keyword tasmCoprocInstr FYL2XP1 FSTCW FCHS FSINCOS +syn keyword tasmInstruction IDIV IMUL IN INC INT INTO INVD INVLPG IRET JMP +syn keyword tasmInstruction LAHF LAR LDS LEA LEAVE LES LFS LGDT LGS LIDT LLDT +syn keyword tasmInstruction LMSW LOCK LODSB LSL LSS LTR MOV MOVSX MOVZX MUL +syn keyword tasmInstruction NEG NOP NOT OR OUT POP POPA POPAD POPF POPFD PUSH +syn keyword tasmInstruction PUSHA PUSHAD PUSHF PUSHFD RCL RCR RDMSR RDPMC RDTSC +syn keyword tasmInstruction REP RET ROL ROR RSM SAHF SAR SBB SGDT SHL SAL SHLD +syn keyword tasmInstruction SHR SHRD SIDT SMSW STC STD STI STR SUB TEST VERR +syn keyword tasmInstruction VERW WBINVD WRMSR XADD XCHG XLAT XOR +syn keyword tasmMMXinst EMMS MOVD MOVQ PACKSSDW PACKSSWB PACKUSWB PADDB +syn keyword tasmMMXinst PADDD PADDSB PADDSB PADDSW PADDUSB PADDUSW PADDW +syn keyword tasmMMXinst PAND PANDN PCMPEQB PCMPEQD PCMPEQW PCMPGTB PCMPGTD +syn keyword tasmMMXinst PCMPGTW PMADDWD PMULHW PMULLW POR PSLLD PSLLQ +syn keyword tasmMMXinst PSLLW PSRAD PSRAW PSRLD PSRLQ PSRLW PSUBB PSUBD +syn keyword tasmMMXinst PSUBSB PSUBSW PSUBUSB PSUBUSW PSUBW PUNPCKHBW +syn keyword tasmMMXinst PUNPCKHBQ PUNPCKHWD PUNPCKLBW PUNPCKLDQ PUNPCKLWD +syn keyword tasmMMXinst PXOR +"FCMOV +syn match tasmInstruction "\<\(CMPS\|MOVS\|OUTS\|SCAS\|STOS\|LODS\|INS\)[BWD]" +syn match tasmInstruction "\<\(CMOV\|SET\|J\)N\=[ABCGLESXZ]\>" +syn match tasmInstruction "\<\(CMOV\|SET\|J\)N\=[ABGL]E\>" +syn match tasmInstruction "\<\(LOOP\|REP\)N\=[EZ]\=\>" +syn match tasmRegister "\<[A-D][LH]\>" +syn match tasmRegister "\" +syn match tasmRegister "\<[C-GS]S\>" +syn region tasmComment start=";" end="$" +"HACK! comment ? ... selection +syn region tasmComment start="comment \+\$" end="\$" +syn region tasmComment start="comment \+\~" end="\~" +syn region tasmComment start="comment \+#" end="#" +syn region tasmString start="'" end="'" +syn region tasmString start='"' end='"' + +syn match tasmDec "\<-\=[0-9]\+\.\=[0-9]*\>" +syn match tasmHex "\<[0-9][0-9A-F]*H\>" +syn match tasmOct "\<[0-7]\+O\>" +syn match tasmBin "\<[01]\+B\>" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tasmString String +hi def link tasmDec Number +hi def link tasmHex Number +hi def link tasmOct Number +hi def link tasmBin Number +hi def link tasmInstruction Keyword +hi def link tasmCoprocInstr Keyword +hi def link tasmMMXInst Keyword +hi def link tasmDirective PreProc +hi def link tasmRegister Identifier +hi def link tasmProctype PreProc +hi def link tasmComment Comment +hi def link tasmLabel Label + + +let b:current_syntax = "tasm" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/tcl.vim b/git/usr/share/vim/vim92/syntax/tcl.vim new file mode 100644 index 0000000000000000000000000000000000000000..59cb04f70f14ec31d9a69da77aefbdb4b4cdb77d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tcl.vim @@ -0,0 +1,274 @@ +" Vim syntax file +" Language: Tcl/Tk +" Maintainer: Taylor Venable +" (previously Brett Cannon ) +" (previously Dean Copsey ) +" (previously Matt Neumann ) +" (previously Allan Kelly ) +" Original: Robin Becker +" Last Change: 2021 Nov 16 +" Version: 1.14 plus improvements from PR #8948 +" URL: (removed, no longer worked) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Basic Tcl commands: http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm +syn keyword tclCommand after append array bgerror binary cd chan clock close concat +syn keyword tclCommand dde dict encoding eof error eval exec exit expr fblocked +syn keyword tclCommand fconfigure fcopy file fileevent flush format gets glob +syn keyword tclCommand global history http incr info interp join lappend lassign +syn keyword tclCommand lindex linsert list llength lmap load lrange lrepeat +syn keyword tclCommand lreplace lreverse lsearch lset lsort memory my namespace +syn keyword tclCommand next nextto open package pid puts pwd read refchan regexp +syn keyword tclCommand registry regsub rename scan seek self set socket source +syn keyword tclCommand split string subst tell time trace unknown unload unset +syn keyword tclCommand update uplevel upvar variable vwait + +" The 'Tcl Standard Library' commands: http://www.tcl.tk/man/tcl8.6/TclCmd/library.htm +syn keyword tclCommand auto_execok auto_import auto_load auto_mkindex auto_reset +syn keyword tclCommand auto_qualify tcl_findLibrary parray tcl_endOfWord +syn keyword tclCommand tcl_startOfNextWord tcl_startOfPreviousWord +syn keyword tclCommand tcl_wordBreakAfter tcl_wordBreakBefore + +" Global variables used by Tcl: http://www.tcl.tk/man/tcl8.6/TclCmd/tclvars.htm +syn keyword tclVars auto_path env errorCode errorInfo tcl_library tcl_patchLevel +syn keyword tclVars tcl_pkgPath tcl_platform tcl_precision tcl_rcFileName +syn keyword tclVars tcl_traceCompile tcl_traceExec tcl_wordchars +syn keyword tclVars tcl_nonwordchars tcl_version argc argv argv0 tcl_interactive + +" Strings which expr accepts as boolean values, aside from zero / non-zero. +syn keyword tclBoolean true false on off yes no + +syn keyword tclProcCommand apply coroutine proc return tailcall yield yieldto +syn keyword tclConditional if then else elseif switch +syn keyword tclConditional catch try throw finally +syn keyword tclLabel default +syn keyword tclRepeat while for foreach break continue + +syn keyword tcltkSwitch contained insert create polygon fill outline tag + +" WIDGETS +" commands associated with widgets +syn keyword tcltkWidgetSwitch contained background highlightbackground insertontime cget +syn keyword tcltkWidgetSwitch contained selectborderwidth borderwidth highlightcolor insertwidth +syn keyword tcltkWidgetSwitch contained selectforeground cursor highlightthickness padx setgrid +syn keyword tcltkWidgetSwitch contained exportselection insertbackground pady takefocus +syn keyword tcltkWidgetSwitch contained font insertborderwidth relief xscrollcommand +syn keyword tcltkWidgetSwitch contained foreground insertofftime selectbackground yscrollcommand +syn keyword tcltkWidgetSwitch contained height spacing1 spacing2 spacing3 +syn keyword tcltkWidgetSwitch contained state tabs width wrap +" button +syn keyword tcltkWidgetSwitch contained command default +" canvas +syn keyword tcltkWidgetSwitch contained closeenough confine scrollregion xscrollincrement yscrollincrement orient +" checkbutton, radiobutton +syn keyword tcltkWidgetSwitch contained indicatoron offvalue onvalue selectcolor selectimage state variable +" entry, frame +syn keyword tcltkWidgetSwitch contained show class colormap container visual +" listbox, menu +syn keyword tcltkWidgetSwitch contained selectmode postcommand selectcolor tearoff tearoffcommand title type +" menubutton, message +syn keyword tcltkWidgetSwitch contained direction aspect justify +" scale +syn keyword tcltkWidgetSwitch contained bigincrement digits from length resolution showvalue sliderlength sliderrelief tickinterval to +" scrollbar +syn keyword tcltkWidgetSwitch contained activerelief elementborderwidth +" image +syn keyword tcltkWidgetSwitch contained delete names types create +" variable reference + " ::optional::namespaces +syn match tclVarRef "$\(\(::\)\?\([[:alnum:]_]*::\)*\)\a[[:alnum:]_]*" + " ${...} may contain any character except '}' +syn match tclVarRef "${[^}]*}" + +" Used to facilitate hack to utilize string background for certain color +" schemes, e.g. inkpot and lettuce. +syn cluster tclVarRefC add=tclVarRef +syn cluster tclSpecialC add=tclSpecial + +" The syntactic unquote-splicing replacement for [expand]. +syn match tclExpand '\s{\*}' +syn match tclExpand '^{\*}' + +" menu, mane add +syn keyword tcltkWidgetSwitch contained active end last none cascade checkbutton command radiobutton separator +syn keyword tcltkWidgetSwitch contained activebackground actveforeground accelerator background bitmap columnbreak +syn keyword tcltkWidgetSwitch contained font foreground hidemargin image indicatoron label menu offvalue onvalue +syn keyword tcltkWidgetSwitch contained selectcolor selectimage state underline value variable +syn keyword tcltkWidgetSwitch contained add clone configure delete entrycget entryconfigure index insert invoke +syn keyword tcltkWidgetSwitch contained post postcascade type unpost yposition activate +"syn keyword tcltkWidgetSwitch contained +"syn match tcltkWidgetSwitch contained +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef + +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +" These words are dual purpose. +" match switches +"syn match tcltkWidgetSwitch contained "-text"hs=s+1 +syn match tcltkWidgetSwitch contained "-text\(var\)\?"hs=s+1 +syn match tcltkWidgetSwitch contained "-menu"hs=s+1 +syn match tcltkWidgetSwitch contained "-label"hs=s+1 +" match commands - 2 lines for pretty match. +"variable +" Special case - If a number follows a variable region, it must be at the end of +" the pattern, by definition. Therefore, (1) either include a number as the region +" end and exclude tclNumber from the contains list, or (2) make variable +" keepend. As (1) would put variable out of step with everything else, use (2). +syn region tcltkCommand matchgroup=tcltkCommandColor start="^\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tclString,tclNumber,tclVarRef,tcltkCommand +syn region tcltkCommand matchgroup=tcltkCommandColor start="\s\\|\[\"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tclString,tclNumber,tclVarRef,tcltkCommand +" menu +syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\\|\[\"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +" label +syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\\|\[\"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef +" text +syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidget,tcltkWidgetSwitch,tcltkSwitch,tclNumber,tclVarRef,tclString +syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\\|\[\"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidget,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef + +" This isn't contained (I don't think) so it's OK to just associate with the Color group. +" TODO: This could be wrong. +syn keyword tcltkWidgetColor toplevel + + +syn region tcltkPackConf matchgroup=tcltkPackConfColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tcltkPackConfSwitch,tclNumber,tclVarRef keepend +syn region tcltkPackConf matchgroup=tcltkPackConfColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tcltkPackConfSwitch,tclNumber,tclVarRef + + +" NAMESPACE +" commands associated with namespace +syn keyword tcltkNamespaceSwitch contained children code current delete eval +syn keyword tcltkNamespaceSwitch contained export forget import inscope origin +syn keyword tcltkNamespaceSwitch contained parent qualifiers tail which command variable +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="{\|}\|]\|\"\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkNamespaceSwitch + +" EXPR +" commands associated with expr +syn keyword tcltkMaths contained abs acos asin atan atan2 bool ceil cos cosh double entier +syn keyword tcltkMaths contained exp floor fmod hypot int isqrt log log10 max min pow rand +syn keyword tcltkMaths contained round sin sinh sqrt srand tan tanh wide + +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkMaths,tclNumber,tclVarRef,tclString,tcltlWidgetSwitch,tcltkCommand,tcltkPackConf + +" format +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkMaths,tclNumber,tclVarRef,tclString,tcltlWidgetSwitch,tcltkCommand,tcltkPackConf + +" PACK +" commands associated with pack +syn keyword tcltkPackSwitch contained forget info propagate slaves +syn keyword tcltkPackConfSwitch contained after anchor before expand fill in ipadx ipady padx pady side +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkPackSwitch,tcltkPackConf,tcltkPackConfSwitch,tclNumber,tclVarRef,tclString,tcltkCommand keepend + +" STRING +" commands associated with string +syn keyword tcltkStringSwitch contained compare first index last length match range tolower toupper trim trimleft trimright wordstart wordend +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkStringSwitch,tclNumber,tclVarRef,tclString,tcltkCommand + +" ARRAY +" commands associated with array +syn keyword tcltkArraySwitch contained anymore donesearch exists get names nextelement size startsearch set +" match from command name to ] or EOL +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkArraySwitch,tclNumber,tclVarRef,tclString,tcltkCommand + +" LSORT +" switches for lsort +syn keyword tcltkLsortSwitch contained ascii dictionary integer real command increasing decreasing index +" match from command name to ] or EOL +syn region tcltkCommand matchgroup=tcltkCommandColor start="\" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkLsortSwitch,tclNumber,tclVarRef,tclString,tcltkCommand + +syn keyword tclTodo contained TODO + +" Sequences which are backslash-escaped: http://www.tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M16 +" Octal, hexadecimal, Unicode codepoints, and the classics. +" Tcl takes as many valid characters in a row as it can, so \xAZ in a string is newline followed by 'Z'. +syn match tclSpecial contained '\\\(\o\{1,3}\|x\x\{1,2}\|u\x\{1,4}\|[abfnrtv]\)' +syn match tclSpecial contained '\\[\[\]\{\}\"\$]' + +" Command appearing inside another command or inside a string. +syn region tclEmbeddedStatement start='\[' end='\]' contained contains=tclCommand,tclNumber,tclLineContinue,tclString,tclVarRef,tclEmbeddedStatement +" A string needs the skip argument as it may legitimately contain \". +" Match at start of line +syn region tclString start=+^"+ end=+"+ contains=@tclSpecialC,@Spell skip=+\\\\\|\\"+ +"Match all other legal strings. +syn region tclString start=+[^\\]"+ms=s+1 end=+"+ contains=@tclSpecialC,@tclVarRefC,tclEmbeddedStatement,@Spell skip=+\\\\\|\\"+ + +" Line continuation is backslash immediately followed by newline. +syn match tclLineContinue '\\$' + +if exists('g:tcl_warn_continuation') + syn match tclNotLineContinue '\\\s\+$' +endif + +"integer number, or floating point number without a dot and with "f". +syn case ignore +syn match tclNumber "\<\d\+\(u\=l\=\|lu\|f\)\>" +"floating point number, with dot, optional exponent +syn match tclNumber "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, starting with a dot, optional exponent +syn match tclNumber "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match tclNumber "\<\d\+e[-+]\=\d\+[fl]\=\>" +"hex number +syn match tclNumber "0x\x\+\(u\=l\=\|lu\)\>" +"syn match tclIdentifier "\<\h\w*\>" +syn case match + +syn region tclComment start="^\s*\#" skip="\\$" end="$" contains=tclTodo,@Spell +syn region tclComment start=/;\s*\#/hs=s+1 skip="\\$" end="$" contains=tclTodo,@Spell + +"syn match tclComment /^\s*\#.*$/ +"syn match tclComment /;\s*\#.*$/hs=s+1 + +"syn sync ccomment tclComment + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tcltkSwitch Special +hi def link tclExpand Special +hi def link tclLabel Label +hi def link tclConditional Conditional +hi def link tclRepeat Repeat +hi def link tclNumber Number +hi def link tclError Error +hi def link tclCommand Statement +hi def link tclProcCommand Type +hi def link tclString String +hi def link tclComment Comment +hi def link tclSpecial Special +hi def link tclTodo Todo +" Below here are the commands and their options. +hi def link tcltkCommandColor Statement +hi def link tcltkWidgetColor Structure +hi def link tclLineContinue WarningMsg +if exists('g:tcl_warn_continuation') +hi def link tclNotLineContinue ErrorMsg +endif +hi def link tcltkStringSwitch Special +hi def link tcltkArraySwitch Special +hi def link tcltkLsortSwitch Special +hi def link tcltkPackSwitch Special +hi def link tcltkPackConfSwitch Special +hi def link tcltkMaths Special +hi def link tcltkNamespaceSwitch Special +hi def link tcltkWidgetSwitch Special +hi def link tcltkPackConfColor Identifier +hi def link tclVarRef Identifier + + +let b:current_syntax = "tcl" + +" vim: ts=8 noet nolist diff --git a/git/usr/share/vim/vim92/syntax/tcsh.vim b/git/usr/share/vim/vim92/syntax/tcsh.vim new file mode 100644 index 0000000000000000000000000000000000000000..70265e291086cdc336c70d1317c02ff82fc5255b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tcsh.vim @@ -0,0 +1,256 @@ +" Vim syntax file +" Language: tcsh scripts +" Maintainer: Doug Kearns +" Previous Maintainer: Gautam Iyer where NoSpam=gmail (Original Author) +" Last Change: 2026 Jan 16 + +" Description: We break up each statement into a "command" and an "end" part. +" All groups are either a "command" or part of the "end" of a statement (ie +" everything after the "command"). This is because blindly highlighting tcsh +" statements as keywords caused way too many false positives. Eg: +" +" set history=200 +" +" causes history to come up as a keyword, which we want to avoid. + +" Quit when a syntax file was already loaded +if exists('b:current_syntax') + finish +endif + +let s:oldcpo = &cpo +set cpo&vim " Line continuation is used + +syn iskeyword @,48-57,_,192-255,- + +syn case match + +" ----- Clusters ----- {{{1 +syn cluster tcshModifiers contains=tcshModifier,tcshModifierError +syn cluster tcshQuoteList contains=tcshDQuote,tcshSQuote,tcshBQuote +syn cluster tcshStatementEnds contains=@tcshQuoteList,tcshComment,@tcshVarList,tcshRedir,tcshMeta,tcshHereDoc,tcshSpecial,tcshArgument +syn cluster tcshStatements contains=tcshBuiltin,tcshCommands,tcshIf,tcshWhile +syn cluster tcshVarList contains=tcshUsrVar,tcshArgv,tcshSubst +syn cluster tcshConditions contains=tcshCmdSubst,tcshParenExpr,tcshOperator,tcshNumber,@tcshVarList + +" ----- Errors ----- {{{1 +" Define first, so can be easily overridden. +syn match tcshError contained '\v\S.+' + +" ----- Statements ----- {{{1 +" Tcsh commands: Any filename / modifiable variable (must be first!) +syn match tcshCommands '\v[a-zA-Z0-9\\./_$:-]+' contains=tcshSpecial,tcshUsrVar,tcshArgv,tcshVarError nextgroup=tcshStatementEnd + +" Builtin commands except those treated specially. Currently (un)set(env), +" (un)alias, if, while, else, bindkey +syn keyword tcshBuiltin nextgroup=tcshStatementEnd alloc bg break breaksw builtins bye case cd chdir complete continue default dirs echo echotc end endif endsw eval exec exit fg filetest foreach getspath getxvers glob goto hashstat history hup inlib jobs kill limit log login logout ls ls-F migrate newgrp nice nohup notify onintr popd printenv pushd rehash repeat rootnode sched setpath setspath settc setty setxvers shift source stop suspend switch telltc termname time umask uncomplete unhash universe unlimit ver wait warp watchlog where which + +" StatementEnd is anything after a built-in / command till the lexical end of a +" statement (;, |, ||, |&, && or end of line) +syn region tcshStatementEnd transparent contained matchgroup=tcshBuiltin start='' end='\v\\@|$' contains=@tcshConditions,tcshSpecial,@tcshStatementEnds +syn region tcshIfEnd contained matchgroup=tcshBuiltin contains=@tcshConditions,tcshSpecial start='(' end='\v\)%(\s+then>)?' skipwhite nextgroup=@tcshStatementEnds +syn region tcshIfEnd contained matchgroup=tcshBuiltin contains=tcshCommands,tcshSpecial start='\v\{\s+' end='\v\s+\}%(\s+then>)?' skipwhite nextgroup=@tcshStatementEnds keepend + +" else statements +syn keyword tcshBuiltin nextgroup=tcshIf skipwhite else + +" while statements (contains expressions / operators) +syn keyword tcshBuiltin nextgroup=@tcshConditions,tcshSpecial skipwhite while + +" Conditions (for if and while) +syn region tcshParenExpr contained contains=@tcshConditions,tcshSpecial matchgroup=tcshBuiltin start='(' end=')' +syn region tcshCmdSubst contained contains=tcshCommands matchgroup=tcshBuiltin start='\v\{\s+' end='\v\s+\}' keepend + +" Bindkey. Internal editor functions +syn keyword tcshBindkeyFuncs contained backward-char backward-delete-char + \ backward-delete-word backward-kill-line backward-word + \ beginning-of-line capitalize-word change-case + \ change-till-end-of-line clear-screen complete-word + \ complete-word-fwd complete-word-back complete-word-raw + \ copy-prev-word copy-region-as-kill dabbrev-expand delete-char + \ delete-char-or-eof delete-char-or-list + \ delete-char-or-list-or-eof delete-word digit digit-argument + \ down-history downcase-word end-of-file end-of-line + \ exchange-point-and-mark expand-glob expand-history expand-line + \ expand-variables forward-char forward-word + \ gosmacs-transpose-chars history-search-backward + \ history-search-forward insert-last-word i-search-fwd + \ i-search-back keyboard-quit kill-line kill-region + \ kill-whole-line list-choices list-choices-raw list-glob + \ list-or-eof load-average magic-space newline newline-and-hold + \ newline-and-down-history normalize-path normalize-command + \ overwrite-mode prefix-meta quoted-insert redisplay + \ run-fg-editor run-help self-insert-command sequence-lead-in + \ set-mark-command spell-word spell-line stuff-char + \ toggle-literal-history transpose-chars transpose-gosling + \ tty-dsusp tty-flush-output tty-sigintr tty-sigquit tty-sigtsusp + \ tty-start-output tty-stop-output undefined-key + \ universal-argument up-history upcase-word + \ vi-beginning-of-next-word vi-add vi-add-at-eol vi-chg-case + \ vi-chg-meta vi-chg-to-eol vi-cmd-mode vi-cmd-mode-complete + \ vi-delprev vi-delmeta vi-endword vi-eword vi-char-back + \ vi-char-fwd vi-charto-back vi-charto-fwd vi-insert + \ vi-insert-at-bol vi-repeat-char-fwd vi-repeat-char-back + \ vi-repeat-search-fwd vi-repeat-search-back vi-replace-char + \ vi-replace-mode vi-search-back vi-search-fwd vi-substitute-char + \ vi-substitute-line vi-word-back vi-word-fwd vi-undo vi-zero + \ which-command yank yank-pop e_copy_to_clipboard + \ e_paste_from_clipboard e_dosify_next e_dosify_prev e_page_up + \ e_page_down +syn keyword tcshBuiltin nextgroup=tcshBindkeyEnd bindkey +syn region tcshBindkeyEnd contained transparent matchgroup=tcshBuiltin start='' skip='\\$' end='$' contains=@tcshQuoteList,tcshComment,@tcshVarList,tcshMeta,tcshSpecial,tcshArgument,tcshBindkeyFuncs + +" Expressions start with @. +syn match tcshExprStart '\v\@\s+' nextgroup=tcshExprVar +syn match tcshExprVar contained '\v\h\w*%(\[\d+\])?' contains=tcshShellVar,tcshEnvVar nextgroup=tcshExprOp +syn match tcshExprOp contained '++\|--' +syn match tcshExprOp contained '\v\s*\=' nextgroup=tcshExprEnd +syn match tcshExprEnd contained '\v.*$'hs=e+1 contains=@tcshConditions +syn match tcshExprEnd contained '\v.{-};'hs=e contains=@tcshConditions + +" ----- Comments: ----- {{{1 +syn match tcshSharpBang '\%^#!.*$' +syn match tcshComment '#.*' contains=tcshTodo,@Spell +syn match tcshTodo contained '\v%(^\s*#\s*)@<=\c<%(TODO|FIXME|XXX)>' + +" TODO: leading whitespace match is needed to prevent keyword matching +syn match tcshLabel '^\s*\w\+:\ze\s*$' + +" ----- Strings ----- {{{1 +" Tcsh does not allow \" in strings unless the "backslash_quote" shell +" variable is set. Set the vim variable "tcsh_backslash_quote" to 0 if you +" want VIM to assume that no backslash quote constructs exist. + +" Backquotes are treated as commands, and are not contained in anything +if get(g:, 'tcsh_backslash_quote', 1) + syn region tcshSQuote contained start="'" skip="\v\\\\|\\'" end="'" + syn region tcshDQuote contained start='"' end='"' contains=@tcshVarList,tcshSpecial,@Spell + syn region tcshBQuote keepend matchgroup=tcshBQuoteGrp start='`' skip='\v\\\\|\\`' end='`' contains=@tcshStatements +else + syn region tcshSQuote keepend contained start="'" end="'" + syn region tcshDQuote keepend contained start='"' end='"' contains=@tcshVarList,tcshSpecial,@Spell + syn region tcshBQuote keepend start='`' end='`' contains=@tcshStatements +endif + +" ----- Variables ----- {{{1 +" Variable Errors. Must come first! \$ constructs will be flagged by +" tcshSpecial, so we don't consider them here. +syn match tcshVarError '\v\$\S*' contained + +" Modifiable Variables without {}. +syn match tcshUsrVar contained '\v\$\h\w*%(\[\d+%(-\d+)?\])?' nextgroup=@tcshModifiers contains=tcshShellVar,tcshEnvVar +syn match tcshArgv contained '\v\$%(\d+|\*)' nextgroup=@tcshModifiers + +" Modifiable Variables with {}. +syn match tcshUsrVar contained '\v\$\{\h\w*%(\[\d+%(-\d+)?\])?%(:\S*)?\}' contains=@tcshModifiers,tcshShellVar,tcshEnvVar +syn match tcshArgv contained '\v\$\{%(\d+|\*)%(:\S*)?\}' contains=@tcshModifiers + +" Un-modifiable Substitutions. Order is important here. +syn match tcshSubst contained '\v\$[?#$!_<]' nextgroup=tcshModifierError +syn match tcshSubst contained '\v\$[%#?]%(\h\w*|\d+)' nextgroup=tcshModifierError contains=tcshShellVar,tcshEnvVar +syn match tcshSubst contained '\v\$\{[%#?]%(\h\w*|\d+)%(:\S*)?\}' contains=tcshModifierError contains=tcshShellVar,tcshEnvVar + +" Variable Name Expansion Modifiers (order important) +syn match tcshModifierError contained '\v:\S*' +syn match tcshModifier contained '\v:[ag]?[htreuls&qx]' nextgroup=@tcshModifiers + +" ----- Operators / Specials ----- {{{1 +" Standard redirects (except <<) [<, >, >>, >>&, >>!, >>&!] +syn match tcshRedir contained '\v\<|\>\>?\&?!?' + +" Meta-chars +syn match tcshMeta contained '\v[]{}*?[]' + +" Here documents (<<) +syn region tcshHereDoc contained matchgroup=tcshShellVar start='\v\<\<\s*\z(\h\w*)' end='^\z1$' contains=@tcshVarList,tcshSpecial fold +syn region tcshHereDoc contained matchgroup=tcshShellVar start="\v\<\<\s*'\z(\h\w*)'" start='\v\<\<\s*"\z(\h\w*)"$' start='\v\<\<\s*\\\z(\h\w*)$' end='^\z1$' fold + +" Operators +syn match tcshOperator contained '&&\|!\~\|!=\|<<\|<=\|==\|=\~\|>=\|>>\|\*\|\^\|\~\|||\|!\|%\|&\|+\|-\|/\|<\|>\||' +"syn match tcshOperator contained '[(){}]' + +" Numbers +syn match tcshNumber contained '\v<-?\d+>' + +" Arguments +syn match tcshArgument contained '\v\s@<=-(\w|-)*' + +" Special characters. \xxx, or backslashed characters. +"syn match tcshSpecial contained '\v\\@ +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Known template types are very similar to HTML, E.g. golang and "Xfire User +" Interface Template" +" If you know how to recognize a more specific type for *.tmpl suggest a +" change to runtime/scripts.vim. +runtime! syntax/html.vim diff --git a/git/usr/share/vim/vim92/syntax/tera.vim b/git/usr/share/vim/vim92/syntax/tera.vim new file mode 100644 index 0000000000000000000000000000000000000000..e151e8674b7ec4fe2273e2ae60a3f14b0672a174 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tera.vim @@ -0,0 +1,120 @@ +" Vim syntax file +" Language: Tera +" Maintainer: Muntasir Mahmud +" Last Change: 2026 Jan 29 +" 2026 Mar 31 by Vim project: prevent code execution in filename + +if exists("b:current_syntax") + finish +endif + +" Detect the underlying language based on filename pattern +" For files like file.html.tera, we want to load html syntax +let s:filename = expand("%:t") +let s:dotpos = strridx(s:filename, '.', strridx(s:filename, '.tera') - 1) +let s:underlying_filetype = "" + +if s:dotpos != -1 + let s:underlying_ext = s:filename[s:dotpos+1:strridx(s:filename, '.tera')-1] + if s:underlying_ext != "" && s:underlying_ext != "tera" + let s:underlying_filetype = s:underlying_ext + endif +endif + +" Load the underlying language syntax if detected +if s:underlying_filetype != "" + execute "runtime! syntax/" . fnameescape(s:underlying_filetype) . ".vim" + unlet! b:current_syntax +else + " Default to HTML if no specific language detected + runtime! syntax/html.vim + unlet! b:current_syntax +endif + +" Tera comment blocks: {# comment #} +syn region teraCommentBlock start="{#-?" end="-?#}" contains=@Spell + +" Tera statements: {% if condition %} +syn region teraStatement start="{%-?" end="-?%}" contains=teraKeyword,teraString,teraNumber,teraFunction,teraBoolean,teraFilter,teraOperator,teraIdentifier,teraTest,teraNamespace,teraProperty,teraBracket,teraArgument + +" Tera expressions: {{ variable }} +syn region teraExpression start="{{-?" end="-?}}" contains=teraString,teraNumber,teraFunction,teraBoolean,teraFilter,teraOperator,teraIdentifier,teraTest,teraNamespace,teraProperty,teraBracket + +" Special handling for raw blocks - content inside shouldn't be processed +syn region teraRawBlock start="{%-\?\s*raw\s*-%}\?" end="{%-\?\s*endraw\s*-%}\?" contains=TOP,teraCommentBlock,teraStatement,teraExpression + +" Control structure keywords +syn keyword teraKeyword contained if else elif endif for endfor in macro endmacro +syn keyword teraKeyword contained block endblock extends include import set endset set_global +syn keyword teraKeyword contained break continue filter endfilter raw endraw + +" Identifiers - define before operators for correct priority +syn match teraIdentifier contained "\<\w\+\>" + +" Operators used in expressions and statements +syn match teraOperator contained "==\|!=\|>=\|<=\|>\|<\|+\|-\|*\|/" +syn match teraOperator contained "{\@" +syn match teraNumber contained "\<\d\+\.\d\+\>" + +" Boolean values +syn keyword teraBoolean contained true false + +" Special variables (loop, __tera_context) +syn keyword teraSpecialVariable contained loop __tera_context + +" 'is' test patterns: 'is not test_name' or 'is test_name' +syn match teraTest contained "\" + +" Namespace function calls: namespace::function() +syn match teraNamespace contained "\<\w\+::" + +" Property/member access: .property or ["key"] or [variable] +syn match teraProperty contained "\.\w\+" +syn region teraBracket contained start="\[" end="\]" contains=teraString,teraIdentifier,teraNumber,teraOperator + +" Backtick strings for raw content +syn region teraString contained start="`" skip="\\`" end="`" contains=@Spell + +" String escape sequences +syn match teraStringEscape contained "\\." + +" Highlighting links +hi def link teraCommentBlock Comment +hi def link teraKeyword Statement +hi def link teraOperator Operator +hi def link teraFunction Function +hi def link teraIdentifier Identifier +hi def link teraString String +hi def link teraStringEscape SpecialChar +hi def link teraNumber Number +hi def link teraBoolean Boolean +hi def link teraSpecialVariable Special +hi def link teraTest Keyword +hi def link teraNamespace Function +hi def link teraProperty Identifier +hi def link teraBracket Operator +hi def link teraFilter Function +hi def link teraStatement Statement +hi def link teraExpression Statement + +" Clean up script-local variables +unlet s:filename +unlet s:dotpos +if exists("s:underlying_ext") + unlet s:underlying_ext +endif +unlet s:underlying_filetype + +let b:current_syntax = "tera" diff --git a/git/usr/share/vim/vim92/syntax/teraterm.vim b/git/usr/share/vim/vim92/syntax/teraterm.vim new file mode 100644 index 0000000000000000000000000000000000000000..9115320bfb5caa614c43254ea179ad1e15fefcb5 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/teraterm.vim @@ -0,0 +1,140 @@ +" Vim syntax file +" Language: Tera Term Language (TTL) +" Based on Tera Term Version 4.100 +" Maintainer: Ken Takata +" URL: https://github.com/k-takata/vim-teraterm +" Last Change: 2018-08-31 +" Filenames: *.ttl +" License: VIM License + +if exists("b:current_syntax") + finish +endif + +let s:save_cpo = &cpo +set cpo&vim + +syn case ignore + +syn region ttlComment start=";" end="$" contains=@Spell +syn region ttlComment start="/\*" end="\*/" contains=@Spell +syn region ttlFirstComment start="/\*" end="\*/" contained contains=@Spell + \ nextgroup=ttlStatement,ttlFirstComment + +syn match ttlCharacter "#\%(\d\+\|\$\x\+\)\>" +syn match ttlNumber "\%(\<\d\+\|\$\x\+\)\>" +syn match ttlString "'[^']*'" contains=@Spell +syn match ttlString '"[^"]*"' contains=@Spell +syn cluster ttlConstant contains=ttlCharacter,ttlNumber,ttlString + +syn match ttlLabel ":\s*\w\{1,32}\>" + +syn keyword ttlOperator and or xor not + +syn match ttlVar "\" +syn match ttlVar "\" +syn keyword ttlVar inputstr matchstr paramcnt params result timeout mtimeout + + +syn match ttlLine nextgroup=ttlStatement "^" +syn match ttlStatement contained "\s*" + \ nextgroup=ttlIf,ttlElseIf,ttlConditional,ttlRepeat, + \ ttlFirstComment,ttlComment,ttlLabel,@ttlCommand + +syn cluster ttlCommand contains=ttlControlCommand,ttlCommunicationCommand, + \ ttlStringCommand,ttlFileCommand,ttlPasswordCommand, + \ ttlMiscCommand + + +syn keyword ttlIf contained nextgroup=ttlIfExpression if +syn keyword ttlElseIf contained nextgroup=ttlElseIfExpression elseif + +syn match ttlIfExpression contained "\s.*" + \ contains=@ttlConstant,ttlVar,ttlOperator,ttlComment,ttlThen, + \ @ttlCommand +syn match ttlElseIfExpression contained "\s.*" + \ contains=@ttlConstant,ttlVar,ttlOperator,ttlComment,ttlThen + +syn keyword ttlThen contained then +syn keyword ttlConditional contained else endif + +syn keyword ttlRepeat contained for next until enduntil while endwhile +syn match ttlRepeat contained + \ "\<\%(do\|loop\)\%(\s\+\%(while\|until\)\)\?\>" +syn keyword ttlControlCommand contained + \ break call continue end execcmnd exit goto include + \ mpause pause return + + +syn keyword ttlCommunicationCommand contained + \ bplusrecv bplussend callmenu changedir clearscreen + \ closett connect cygconnect disconnect dispstr + \ enablekeyb flushrecv gethostname getmodemstatus + \ gettitle kmtfinish kmtget kmtrecv kmtsend loadkeymap + \ logautoclosemode logclose loginfo logopen logpause + \ logrotate logstart logwrite quickvanrecv + \ quickvansend recvln restoresetup scprecv scpsend + \ send sendbreak sendbroadcast sendfile sendkcode + \ sendln sendlnbroadcast sendlnmulticast sendmulticast + \ setbaud setdebug setdtr setecho setflowctrl + \ setmulticastname setrts setspeed setsync settitle + \ showtt testlink unlink wait wait4all waitevent + \ waitln waitn waitrecv waitregex xmodemrecv + \ xmodemsend ymodemrecv ymodemsend zmodemrecv + \ zmodemsend +syn keyword ttlStringCommand contained + \ code2str expandenv int2str regexoption sprintf + \ sprintf2 str2code str2int strcompare strconcat + \ strcopy strinsert strjoin strlen strmatch strremove + \ strreplace strscan strspecial strsplit strtrim + \ tolower toupper +syn keyword ttlFileCommand contained + \ basename dirname fileclose fileconcat filecopy + \ filecreate filedelete filelock filemarkptr fileopen + \ filereadln fileread filerename filesearch fileseek + \ fileseekback filestat filestrseek filestrseek2 + \ filetruncate fileunlock filewrite filewriteln + \ findfirst findnext findclose foldercreate + \ folderdelete foldersearch getdir getfileattr makepath + \ setdir setfileattr +syn keyword ttlPasswordCommand contained + \ delpassword getpassword ispassword passwordbox + \ setpassword +syn keyword ttlMiscCommand contained + \ beep bringupbox checksum8 checksum8file checksum16 + \ checksum16file checksum32 checksum32file closesbox + \ clipb2var crc16 crc16file crc32 crc32file exec + \ dirnamebox filenamebox getdate getenv getipv4addr + \ getipv6addr getspecialfolder gettime getttdir getver + \ ifdefined inputbox intdim listbox messagebox random + \ rotateleft rotateright setdate setdlgpos setenv + \ setexitcode settime show statusbox strdim uptime + \ var2clipb yesnobox + + +hi def link ttlCharacter Character +hi def link ttlNumber Number +hi def link ttlComment Comment +hi def link ttlFirstComment Comment +hi def link ttlString String +hi def link ttlLabel Label +hi def link ttlIf Conditional +hi def link ttlElseIf Conditional +hi def link ttlThen Conditional +hi def link ttlConditional Conditional +hi def link ttlRepeat Repeat +hi def link ttlControlCommand Keyword +hi def link ttlVar Identifier +hi def link ttlOperator Operator +hi def link ttlCommunicationCommand Keyword +hi def link ttlStringCommand Keyword +hi def link ttlFileCommand Keyword +hi def link ttlPasswordCommand Keyword +hi def link ttlMiscCommand Keyword + +let b:current_syntax = "teraterm" + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: ts=8 sw=2 sts=2 diff --git a/git/usr/share/vim/vim92/syntax/terminfo.vim b/git/usr/share/vim/vim92/syntax/terminfo.vim new file mode 100644 index 0000000000000000000000000000000000000000..2b0ab0860a71c3f0e9ecb65bd9296cccfad229c4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/terminfo.vim @@ -0,0 +1,93 @@ +" Vim syntax file +" Language: terminfo(5) definition +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match terminfoKeywords '[,=#|]' + +syn keyword terminfoTodo contained TODO FIXME XXX NOTE + +syn region terminfoComment display oneline start='^#' end='$' + \ contains=terminfoTodo,@Spell + +syn match terminfoNumbers '\<[0-9]\+\>' + +syn match terminfoSpecialChar '\\\(\o\{3}\|[Eenlrtbfs^\,:0]\)' +syn match terminfoSpecialChar '\^\a' + +syn match terminfoDelay '$<[0-9]\+>' + +syn keyword terminfoBooleans bw am bce ccc xhp xhpa cpix crxw xt xenl eo gn + \ hc chts km daisy hs hls in lpix da db mir + \ msgr nxon xsb npc ndscr nrrmc os mc5i xcpa + \ sam eslok hz ul xon + +syn keyword terminfoNumerics cols it lh lw lines lm xmc ma colors pairs wnum + \ ncv nlab pb vt wsl bitwin bitype bufsz btns + \ spinh spinv maddr mjump mcs npins orc orhi + \ orl orvi cps widcs + +syn keyword terminfoStrings acsc cbt bel cr cpi lpi chr cvr csr rmp tbc mgc + \ clear el1 el ed hpa cmdch cwin cup cud1 home + \ civis cub1 mrcup cnorm cuf1 ll cuu1 cvvis + \ defc dch1 dl1 dial dsl dclk hd enacs smacs + \ smam blink bold smcup smdc dim swidm sdrfq + \ smir sitm slm smicm snlq snrmq prot rev + \ invis sshm smso ssubm ssupm smul sum smxon + \ ech rmacs rmam sgr0 rmcup rmdc rwidm rmir + \ ritm rlm rmicm rshm rmso rsubm rsupm rmul + \ rum rmxon pause hook flash ff fsl wingo hup + \ is1 is2 is3 if iprog initc initp ich1 il1 ip + \ ka1 ka3 kb2 kbs kbeg kcbt kc1 kc3 kcan ktbc + \ kclr kclo kcmd kcpy kcrt kctab kdch1 kdl1 + \ kcud1 krmir kend kent kel ked kext kfnd khlp + \ khome kich1 kil1 kcub1 kll kmrk kmsg kmov + \ knxt knp kopn kopt kpp kprv kprt krdo kref + \ krfr krpl krst kres kcuf1 ksav kBEG kCAN + \ kCMD kCPY kCRT kDC kDL kslt kEND kEOL kEXT + \ kind kFND kHLP kHOM kIC kLFT kMSG kMOV kNXT + \ kOPT kPRV kPRT kri kRDO kRPL kRIT kRES kSAV + \ kSPD khts kUND kspd kund kcuu1 rmkx smkx + \ lf0 lf1 lf10 lf2 lf3 lf4 lf5 lf6 lf7 lf8 lf9 + \ fln rmln smln rmm smm mhpa mcud1 mcub1 mcuf1 + \ mvpa mcuu1 nel porder oc op pad dch dl cud + \ mcud ich indn il cub mcub cuf mcuf rin cuu + \ mccu pfkey pfloc pfx pln mc0 mc5p mc4 mc5 + \ pulse qdial rmclk rep rfi rs1 rs2 rs3 rf rc + \ vpa sc ind ri scs sgr setbsmgb smgbp sclk + \ scp setb setf smgl smglp smgr smgrp hts smgt + \ smgtp wind sbim scsd rbim rcsd subcs supcs + \ ht docr tsl tone uc hu u0 u1 u2 u3 u4 u5 u6 + \ u7 u8 u9 wait xoffc xonc zerom scesa bicr + \ binel birep csnm csin colornm defbi devt + \ dispc endbi smpch smsc rmpch rmsc getm kmous + \ minfo pctrm pfxl reqmp scesc s0ds s1ds s2ds + \ s3ds setab setaf setcolor smglr slines smgtb + \ ehhlm elhlm erhlm ethlm evhlm sgr1 slengthsL +syn match terminfoStrings display '\' + +syn match terminfoParameters '%[%dcspl+*/mAO&|^=<>!~i?te;-]' +syn match terminfoParameters "%\('[A-Z]'\|{[0-9]\{1,2}}\|p[1-9]\|P[a-z]\|g[A-Z]\)" + +hi def link terminfoComment Comment +hi def link terminfoTodo Todo +hi def link terminfoNumbers Number +hi def link terminfoSpecialChar SpecialChar +hi def link terminfoDelay Special +hi def link terminfoBooleans Type +hi def link terminfoNumerics Type +hi def link terminfoStrings Type +hi def link terminfoParameters Keyword +hi def link terminfoKeywords Keyword + +let b:current_syntax = "terminfo" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/terraform.vim b/git/usr/share/vim/vim92/syntax/terraform.vim new file mode 100644 index 0000000000000000000000000000000000000000..1be5698d5973ed444ad9578a2d570dfbd70bbbbd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/terraform.vim @@ -0,0 +1,32 @@ +" Vim syntax file +" Language: Terraform +" Maintainer: Gregory Anders +" Upstream: https://github.com/hashivim/vim-terraform +" Last Change: 2024-09-03 +" License: ISC +" +" Copyright (c) 2014-2016 Mark Cornick +" +" Permission to use, copy, modify, and/or distribute this software for any purpose +" with or without fee is hereby granted, provided that the above copyright notice +" and this permission notice appear in all copies. +" +" THE SOFTWARE IS PROVIDED 'AS IS' AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +" FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +" OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +" THIS SOFTWARE. + +if exists('b:current_syntax') + finish +endif + +runtime! syntax/hcl.vim + +syn keyword terraType string bool number object tuple list map set any + +hi def link terraType Type + +let b:current_syntax = 'terraform' diff --git a/git/usr/share/vim/vim92/syntax/tex.vim b/git/usr/share/vim/vim92/syntax/tex.vim new file mode 100644 index 0000000000000000000000000000000000000000..455613c8fbbceabef1c26d879eaef82e48961aed --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tex.vim @@ -0,0 +1,1395 @@ +" Vim syntax file +" Language: TeX +" Maintainer: This runtime file is looking for a new maintainer. +" Former Maintainer: Charles E. Campbell +" Last Change: Apr 22, 2022 +" 2024 Feb 19 by Vim Project: announce adoption +" 2025 Jan 18 by Vim Project: add texEmphStyle to texMatchGroup, #16228 +" 2025 Feb 08 by Vim Project: improve macro option, \providecommand, +" \newcommand and \newenvironment #16543 +" 2025 Sep 29 by Vim Project: add amsmath support #18433 +" 2025 Oct 06 by Vim Project: link texBoldStyle to Bold, etc #18505 +" Version: 121 +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX +" +" Notes: {{{1 +" +" 1. If you have a \begin{verbatim} that appears to overrun its boundaries, +" use %stopzone. +" +" 2. Run-on equations ($..$ and $$..$$, particularly) can also be stopped +" by suitable use of %stopzone. +" +" 3. If you have a slow computer, you may wish to modify +" +" syn sync maxlines=200 +" syn sync minlines=50 +" +" to values that are more to your liking. +" +" 4. There is no match-syncing for $...$ and $$...$$; hence large +" equation blocks constructed that way may exhibit syncing problems. +" (there's no difference between begin/end patterns) +" +" 5. If you have the variable "g:tex_no_error" defined then none of the +" lexical error-checking will be done. +" +" ie. let g:tex_no_error=1 +" +" 6. Please see :help latex-syntax for information on +" syntax folding :help tex-folding +" spell checking :help tex-nospell +" commands and mathzones :help tex-runon +" new command highlighting :help tex-morecommands +" error highlighting :help tex-error +" new math groups :help tex-math +" new styles :help tex-style +" using conceal mode :help tex-conceal + +" Version Clears: {{{1 +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim +scriptencoding utf-8 + +" by default, enable all region-based highlighting +let s:tex_fast= "bcmMprsSvV" +if exists("g:tex_fast") + if type(g:tex_fast) != 1 + " g:tex_fast exists and is not a string, so + " turn off all optional region-based highighting + let s:tex_fast= "" + else + let s:tex_fast= g:tex_fast + endif +endif + +" let user determine which classes of concealment will be supported +" a=accents/ligatures d=delimiters m=math symbols g=Greek s=superscripts/subscripts +if !exists("g:tex_conceal") + let s:tex_conceal= 'abdmgsS' +else + let s:tex_conceal= g:tex_conceal +endif +if !exists("g:tex_superscripts") + let s:tex_superscripts= '[0-9a-zA-W.,:;+-<>/()=]' +else + let s:tex_superscripts= g:tex_superscripts +endif +if !exists("g:tex_subscripts") + let s:tex_subscripts= '[0-9aehijklmnoprstuvx,+-/().]' +else + let s:tex_subscripts= g:tex_subscripts +endif + +" Determine whether or not to use "*.sty" mode {{{1 +" The user may override the normal determination by setting +" g:tex_stylish to 1 (for "*.sty" mode) +" or to 0 else (normal "*.tex" mode) +" or on a buffer-by-buffer basis with b:tex_stylish +let s:extfname=expand("%:e") +if exists("g:tex_stylish") + let b:tex_stylish= g:tex_stylish +elseif !exists("b:tex_stylish") + if s:extfname == "sty" || s:extfname == "cls" || s:extfname == "clo" || s:extfname == "dtx" || s:extfname == "ltx" + let b:tex_stylish= 1 + else + let b:tex_stylish= 0 + endif +endif + +" handle folding {{{1 +if !exists("g:tex_fold_enabled") + let s:tex_fold_enabled= 0 +elseif g:tex_fold_enabled && !has("folding") + let s:tex_fold_enabled= 0 + echomsg "Ignoring g:tex_fold_enabled=".g:tex_fold_enabled."; need to re-compile vim for +fold support" +else + let s:tex_fold_enabled= 1 +endif +if s:tex_fold_enabled && &fdm == "manual" + setl fdm=syntax +endif +if s:tex_fold_enabled && has("folding") + com! -nargs=* TexFold fold +else + com! -nargs=* TexFold +endif + +" (La)TeX keywords: uses the characters 0-9,a-z,A-Z,192-255 only... {{{1 +" but _ is the only one that causes problems. +" One may override this iskeyword setting by providing +" g:tex_isk +if exists("g:tex_isk") + if b:tex_stylish && g:tex_isk !~ '@' + let b:tex_isk= '@,'.g:tex_isk + else + let b:tex_isk= g:tex_isk + endif +elseif b:tex_stylish + let b:tex_isk="@,48-57,a-z,A-Z,192-255" +else + let b:tex_isk="48-57,a-z,A-Z,192-255" +endif +if (v:version == 704 && has("patch-7.4.1142")) || v:version > 704 + exe "syn iskeyword ".b:tex_isk +else + exe "setl isk=".b:tex_isk +endif +if exists("g:tex_no_error") && g:tex_no_error + let s:tex_no_error= 1 +else + let s:tex_no_error= 0 +endif +if exists("g:tex_comment_nospell") && g:tex_comment_nospell + let s:tex_comment_nospell= 1 +else + let s:tex_comment_nospell= 0 +endif +if exists("g:tex_nospell") && g:tex_nospell + let s:tex_nospell = 1 +else + let s:tex_nospell = 0 +endif +if exists("g:tex_matchcheck") + let s:tex_matchcheck= g:tex_matchcheck +else + let s:tex_matchcheck= '[({[]' +endif +if exists("g:tex_excludematcher") + let s:tex_excludematcher= g:tex_excludematcher +else + let s:tex_excludematcher= 0 +endif + +" Clusters: {{{1 +" -------- +syn cluster texCmdGroup contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,@texMathZones +if !s:tex_no_error + syn cluster texCmdGroup add=texMathError +endif +syn cluster texEnvGroup contains=texDefParm,texMatcher,texMathDelim,texSpecialChar,texStatement +syn cluster texFoldGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texInputFile,texLength,texLigature,texMatcher,texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ,texNewCmd,texNewEnv,texOnlyMath,texOption,texParen,texRefZone,texSection,texBeginEnd,texSectionZone,texSpaceCode,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,@texMathZones,texTitle,texAbstract,texBoldStyle,texItalStyle,texEmphStyle,texNoSpell +syn cluster texBoldGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texInputFile,texLength,texLigature,texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ,texNewCmd,texNewEnv,texOnlyMath,texOption,texParen,texRefZone,texSection,texBeginEnd,texSectionZone,texSpaceCode,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,@texMathZones,texTitle,texAbstract,texBoldStyle,texBoldItalStyle,texNoSpell +syn cluster texItalGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texInputFile,texLength,texLigature,texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ,texNewCmd,texNewEnv,texOnlyMath,texOption,texParen,texRefZone,texSection,texBeginEnd,texSectionZone,texSpaceCode,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,@texMathZones,texTitle,texAbstract,texItalStyle,texEmphStyle,texItalBoldStyle,texNoSpell +if !s:tex_excludematcher + syn cluster texBoldGroup add=texMatcher + syn cluster texItalGroup add=texMatcher +endif +if !s:tex_nospell + if !s:tex_no_error + syn cluster texMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texMatcher,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texEmphStyle,texZone,texInputFile,texOption,@Spell + syn cluster texMatchNMGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texZone,texInputFile,texOption,@Spell + syn cluster texStyleGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texZone,texInputFile,texOption,texStyleStatement,texStyleMatcher,@Spell + else + syn cluster texMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcher,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texEmphStyle,texZone,texInputFile,texOption,@Spell + syn cluster texMatchNMGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texZone,texInputFile,texOption,@Spell + syn cluster texStyleGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texBoldStyle,texBoldItalStyle,texItalStyle,texItalBoldStyle,texZone,texInputFile,texOption,texStyleStatement,texStyleMatcher,@Spell + endif +else + if !s:tex_no_error + syn cluster texMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texMatcher,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption + syn cluster texMatchNMGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption + syn cluster texStyleGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texError,texInput,texLength,texLigature,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption,texStyleStatement,texStyleMatcher + else + syn cluster texMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcher,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption + syn cluster texMatchNMGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption + syn cluster texStyleGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption,texStyleStatement,texStyleMatcher + endif +endif +syn cluster texPreambleMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTitle,texTypeSize,texTypeStyle,texZone,texInputFile,texOption,texMathZoneZ +syn cluster texRefGroup contains=texMatcher,texComment,texDelimiter +if !exists("g:tex_no_math") + syn cluster texPreambleMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcherNM,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTitle,texTypeSize,texTypeStyle,texZone,texInputFile,texOption,texMathZoneZ + syn cluster texMathZones contains=texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ + syn cluster texMatchGroup add=@texMathZones + syn cluster texMathDelimGroup contains=texMathDelimBad,texMathDelimKey,texMathDelimSet1,texMathDelimSet2 + syn cluster texMathMatchGroup contains=@texMathZones,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathMatcher,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone + syn cluster texMathZoneGroup contains=texBadPar,texComment,texDelimiter,texLength,texMathDelim,texMathMatcher,texMathOper,texMathSymbol,texMathText,texRefZone,texSpecialChar,texStatement,texTypeSize,texTypeStyle + if !s:tex_no_error + syn cluster texMathMatchGroup add=texMathError + syn cluster texMathZoneGroup add=texMathError + endif + syn cluster texMathZoneGroup add=@NoSpell + " following used in the \part \chapter \section \subsection \subsubsection + " \paragraph \subparagraph \author \title highlighting + syn cluster texDocGroup contains=texPartZone,@texPartGroup + syn cluster texPartGroup contains=texChapterZone,texSectionZone,texParaZone + syn cluster texChapterGroup contains=texSectionZone,texParaZone + syn cluster texSectionGroup contains=texSubSectionZone,texParaZone + syn cluster texSubSectionGroup contains=texSubSubSectionZone,texParaZone + syn cluster texSubSubSectionGroup contains=texParaZone + syn cluster texParaGroup contains=texSubParaZone + if has("conceal") && &enc == 'utf-8' + syn cluster texMathZoneGroup add=texGreek,texSuperscript,texSubscript,texMathSymbol + syn cluster texMathMatchGroup add=texGreek,texSuperscript,texSubscript,texMathSymbol + endif +endif + +" Try to flag {}, [], and () mismatches: {{{1 +if s:tex_fast =~# 'm' + if !s:tex_no_error + if s:tex_matchcheck =~ '{' + syn region texMatcher matchgroup=texDelimiter start="{" skip="\\\\\|\\[{}]" end="}" transparent contains=@texMatchGroup,texError + syn region texMatcherNM matchgroup=texDelimiter start="{" skip="\\\\\|\\[{}]" end="}" transparent contains=@texMatchNMGroup,texError + endif + if s:tex_matchcheck =~ '\[' + syn region texMatcher matchgroup=texDelimiter start="\[" end="]" transparent contains=@texMatchGroup,texError,@NoSpell + syn region texMatcherNM matchgroup=texDelimiter start="\[" end="]" transparent contains=@texMatchNMGroup,texError,@NoSpell + endif + else + if s:tex_matchcheck =~ '{' + syn region texMatcher matchgroup=texDelimiter start="{" skip="\\\\\|\\[{}]" end="}" transparent contains=@texMatchGroup + syn region texMatcherNM matchgroup=texDelimiter start="{" skip="\\\\\|\\[{}]" end="}" transparent contains=@texMatchNMGroup + endif + if s:tex_matchcheck =~ '\[' + syn region texMatcher matchgroup=texDelimiter start="\[" end="]" transparent contains=@texMatchGroup + syn region texMatcherNM matchgroup=texDelimiter start="\[" end="]" transparent contains=@texMatchNMGroup + endif + endif + if s:tex_matchcheck =~ '(' + if !s:tex_nospell + syn region texParen start="(" end=")" transparent contains=@texMatchGroup,@Spell + else + syn region texParen start="(" end=")" transparent contains=@texMatchGroup + endif + endif +endif +if !s:tex_no_error + if s:tex_matchcheck =~ '(' + syn match texError "[}\]]" + else + syn match texError "[}\])]" + endif +endif +if s:tex_fast =~# 'M' + if !exists("g:tex_no_math") + if !s:tex_no_error + syn match texMathError "}" contained + endif + syn region texMathMatcher matchgroup=texDelimiter start="{" skip="\%(\\\\\)*\\}" end="}" end="%stopzone\>" contained contains=@texMathMatchGroup + endif +endif + +" TeX/LaTeX keywords: {{{1 +" Instead of trying to be All Knowing, I just match \..alphameric.. +" Note that *.tex files may not have "@" in their \commands +if exists("g:tex_tex") || b:tex_stylish + syn match texStatement "\\[a-zA-Z@]\+" +else + syn match texStatement "\\\a\+" + if !s:tex_no_error + syn match texError "\\\a*@[a-zA-Z@]*" + endif +endif + +" TeX/LaTeX delimiters: {{{1 +syn match texDelimiter "&" +syn match texDelimiter "\\\\" + +" Tex/Latex Options: {{{1 +syn match texOption "[^\\]\zs#[1-9]\|^#[1-9]" + +" texAccent (tnx to Karim Belabas) avoids annoying highlighting for accents: {{{1 +if b:tex_stylish + syn match texAccent "\\[bcdvuH][^a-zA-Z@]"me=e-1 + syn match texLigature "\\\([ijolL]\|ae\|oe\|ss\|AA\|AE\|OE\)[^a-zA-Z@]"me=e-1 +else + syn match texAccent "\\[bcdvuH]\A"me=e-1 + syn match texLigature "\\\([ijolL]\|ae\|oe\|ss\|AA\|AE\|OE\)\A"me=e-1 +endif +syn match texAccent "\\[bcdvuH]$" +syn match texAccent +\\[=^.\~"`']+ +syn match texAccent +\\['=t'.c^ud"vb~Hr]{\a}+ +syn match texLigature "\\\([ijolL]\|ae\|oe\|ss\|AA\|AE\|OE\)$" + + +" \begin{}/\end{} section markers: {{{1 +syn match texBeginEnd "\\begin\>\|\\end\>" nextgroup=texBeginEndName +if s:tex_fast =~# 'm' + syn region texBeginEndName matchgroup=texDelimiter start="{" end="}" contained nextgroup=texBeginEndModifier contains=texComment + syn region texBeginEndModifier matchgroup=texDelimiter start="\[" end="]" contained contains=texComment,@texMathZones,@NoSpell +endif + +" \documentclass, \documentstyle, \usepackage: {{{1 +syn match texDocType "\\documentclass\>\|\\documentstyle\>\|\\usepackage\>" nextgroup=texBeginEndName,texDocTypeArgs +if s:tex_fast =~# 'm' + syn region texDocTypeArgs matchgroup=texDelimiter start="\[" end="]" contained nextgroup=texBeginEndName contains=texComment,@NoSpell +endif + +" Preamble syntax-based folding support: {{{1 +if s:tex_fold_enabled && has("folding") + syn region texPreamble transparent fold start='\zs\\documentclass\>' end='\ze\\begin{document}' contains=texStyle,@texPreambleMatchGroup +endif + +" TeX input: {{{1 +syn match texInput "\\input\s\+[a-zA-Z/.0-9_^]\+"hs=s+7 contains=texStatement +syn match texInputFile "\\include\(graphics\|list\)\=\(\[.\{-}\]\)\=\s*{.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt +syn match texInputFile "\\\(epsfig\|input\|usepackage\)\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt +syn match texInputCurlies "[{}]" contained +if s:tex_fast =~# 'm' + syn region texInputFileOpt matchgroup=texDelimiter start="\[" end="\]" contained contains=texComment +endif + +" Type Styles (LaTeX 2.09): {{{1 +syn match texTypeStyle "\\rm\>" +syn match texTypeStyle "\\em\>" +syn match texTypeStyle "\\bf\>" +syn match texTypeStyle "\\it\>" +syn match texTypeStyle "\\sl\>" +syn match texTypeStyle "\\sf\>" +syn match texTypeStyle "\\sc\>" +syn match texTypeStyle "\\tt\>" + +" Type Styles: attributes, commands, families, etc (LaTeX2E): {{{1 +if s:tex_conceal !~# 'b' + syn match texTypeStyle "\\textbf\>" + syn match texTypeStyle "\\textit\>" + syn match texTypeStyle "\\emph\>" +endif +syn match texTypeStyle "\\textmd\>" +syn match texTypeStyle "\\textrm\>" + +syn match texTypeStyle "\\mathbf\>" +syn match texTypeStyle "\\mathcal\>" +syn match texTypeStyle "\\mathit\>" +syn match texTypeStyle "\\mathnormal\>" +syn match texTypeStyle "\\mathrm\>" +syn match texTypeStyle "\\mathsf\>" +syn match texTypeStyle "\\mathtt\>" + +syn match texTypeStyle "\\rmfamily\>" +syn match texTypeStyle "\\sffamily\>" +syn match texTypeStyle "\\ttfamily\>" + +syn match texTypeStyle "\\itshape\>" +syn match texTypeStyle "\\scshape\>" +syn match texTypeStyle "\\slshape\>" +syn match texTypeStyle "\\upshape\>" + +syn match texTypeStyle "\\bfseries\>" +syn match texTypeStyle "\\mdseries\>" + +" Some type sizes: {{{1 +syn match texTypeSize "\\tiny\>" +syn match texTypeSize "\\scriptsize\>" +syn match texTypeSize "\\footnotesize\>" +syn match texTypeSize "\\small\>" +syn match texTypeSize "\\normalsize\>" +syn match texTypeSize "\\large\>" +syn match texTypeSize "\\Large\>" +syn match texTypeSize "\\LARGE\>" +syn match texTypeSize "\\huge\>" +syn match texTypeSize "\\Huge\>" + +" Spacecodes (TeX'isms): {{{1 +" \mathcode`\^^@="2201 \delcode`\(="028300 \sfcode`\)=0 \uccode`X=`X \lccode`x=`x +syn match texSpaceCode "\\\(math\|cat\|del\|lc\|sf\|uc\)code`"me=e-1 nextgroup=texSpaceCodeChar +syn match texSpaceCodeChar "`\\\=.\(\^.\)\==\(\d\|\"\x\{1,6}\|`.\)" contained + +" Sections, subsections, etc: {{{1 +if s:tex_fast =~# 'p' + if !s:tex_nospell + TexFold syn region texDocZone matchgroup=texSection start='\\begin\s*{\s*document\s*}' end='\\end\s*{\s*document\s*}' contains=@texFoldGroup,@texDocGroup,@Spell + TexFold syn region texPartZone matchgroup=texSection start='\\part\>' end='\ze\s*\\\%(part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texPartGroup,@Spell + TexFold syn region texChapterZone matchgroup=texSection start='\\chapter\>' end='\ze\s*\\\%(chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texChapterGroup,@Spell + TexFold syn region texSectionZone matchgroup=texSection start='\\section\>' end='\ze\s*\\\%(section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSectionGroup,@Spell + TexFold syn region texSubSectionZone matchgroup=texSection start='\\subsection\>' end='\ze\s*\\\%(\%(sub\)\=section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSubSectionGroup,@Spell + TexFold syn region texSubSubSectionZone matchgroup=texSection start='\\subsubsection\>' end='\ze\s*\\\%(\%(sub\)\{,2}section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSubSubSectionGroup,@Spell + TexFold syn region texParaZone matchgroup=texSection start='\\paragraph\>' end='\ze\s*\\\%(paragraph\>\|\%(sub\)*section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texParaGroup,@Spell + TexFold syn region texSubParaZone matchgroup=texSection start='\\subparagraph\>' end='\ze\s*\\\%(\%(sub\)\=paragraph\>\|\%(sub\)*section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@Spell + TexFold syn region texTitle matchgroup=texSection start='\\\%(author\|title\)\>\s*{' end='}' contains=@texFoldGroup,@Spell + TexFold syn region texAbstract matchgroup=texSection start='\\begin\s*{\s*abstract\s*}' end='\\end\s*{\s*abstract\s*}' contains=@texFoldGroup,@Spell + else + TexFold syn region texDocZone matchgroup=texSection start='\\begin\s*{\s*document\s*}' end='\\end\s*{\s*document\s*}' contains=@texFoldGroup,@texDocGroup + TexFold syn region texPartZone matchgroup=texSection start='\\part\>' end='\ze\s*\\\%(part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texPartGroup + TexFold syn region texChapterZone matchgroup=texSection start='\\chapter\>' end='\ze\s*\\\%(chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texChapterGroup + TexFold syn region texSectionZone matchgroup=texSection start='\\section\>' end='\ze\s*\\\%(section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSectionGroup + TexFold syn region texSubSectionZone matchgroup=texSection start='\\subsection\>' end='\ze\s*\\\%(\%(sub\)\=section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSubSectionGroup + TexFold syn region texSubSubSectionZone matchgroup=texSection start='\\subsubsection\>' end='\ze\s*\\\%(\%(sub\)\{,2}section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texSubSubSectionGroup + TexFold syn region texParaZone matchgroup=texSection start='\\paragraph\>' end='\ze\s*\\\%(paragraph\>\|\%(sub\)*section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@texParaGroup + TexFold syn region texSubParaZone matchgroup=texSection start='\\subparagraph\>' end='\ze\s*\\\%(\%(sub\)\=paragraph\>\|\%(sub\)*section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup + TexFold syn region texTitle matchgroup=texSection start='\\\%(author\|title\)\>\s*{' end='}' contains=@texFoldGroup + TexFold syn region texAbstract matchgroup=texSection start='\\begin\s*{\s*abstract\s*}' end='\\end\s*{\s*abstract\s*}' contains=@texFoldGroup + endif +endif + +" particular support for bold and italic {{{1 +if s:tex_fast =~# 'b' + if s:tex_conceal =~# 'b' + if !exists("g:tex_nospell") || !g:tex_nospell + syn region texBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup,@Spell + syn region texBoldItalStyle matchgroup=texTypeStyle start="\\textit\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup,@Spell + syn region texItalStyle matchgroup=texTypeStyle start="\\textit\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup,@Spell + syn region texItalBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup,@Spell + syn region texEmphStyle matchgroup=texTypeStyle start="\\emph\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup,@Spell + syn region texEmphStyle matchgroup=texTypeStyle start="\\texts[cfl]\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup,@Spell + syn region texEmphStyle matchgroup=texTypeStyle start="\\textup\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup,@Spell + syn region texEmphStyle matchgroup=texTypeStyle start="\\texttt\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup,@Spell + else + syn region texBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup + syn region texBoldItalStyle matchgroup=texTypeStyle start="\\textit\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup + syn region texItalStyle matchgroup=texTypeStyle start="\\textit\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup + syn region texItalBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texBoldGroup + syn region texEmphStyle matchgroup=texTypeStyle start="\\emph\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texItalGroup + syn region texEmphStyle matchgroup=texTypeStyle start="\\texts[cfl]\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texEmphGroup + syn region texEmphStyle matchgroup=texTypeStyle start="\\textup\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texEmphGroup + syn region texEmphStyle matchgroup=texTypeStyle start="\\texttt\s*{" matchgroup=texTypeStyle end="}" concealends contains=@texEmphGroup + endif + endif +endif + +" Bad Math (mismatched): {{{1 +if !exists("g:tex_no_math") && !s:tex_no_error + syn match texBadMath "\\end\s*{\s*\(array\|[bBpvV]matrix\|split\|smallmatrix\)\s*}" + syn match texBadMath "\\end\s*{\s*\(align\|alignat\|displaymath\|eqnarray\|equation\|flalign\|gather\|math\|multline\)\*\=\s*}" + syn match texBadMath "\\[\])]" + syn match texBadPar contained "\%(\\par\>\|^\s*\n.\)" +endif + +" Math Zones: {{{1 +if !exists("g:tex_no_math") + " TexNewMathZone: function creates a mathzone with the given suffix and mathzone name. {{{2 + " Starred forms are created if starform is true. Starred + " forms have syntax group and synchronization groups with a + " "S" appended. Handles: cluster, syntax, sync, and highlighting. + fun! TexNewMathZone(sfx,mathzone,starform) + let grpname = "texMathZone".a:sfx + let syncname = "texSyncMathZone".a:sfx + if s:tex_fold_enabled + let foldcmd= " fold" + else + let foldcmd= "" + endif + exe "syn cluster texMathZones add=".grpname + if s:tex_fast =~# 'M' + exe 'syn region '.grpname.' start='."'".'\\begin\s*{\s*'.a:mathzone.'\s*}'."'".' end='."'".'\\end\s*{\s*'.a:mathzone.'\s*}'."'".' keepend contains=@texMathZoneGroup'.foldcmd + exe 'syn sync match '.syncname.' grouphere '.grpname.' "\\begin\s*{\s*'.a:mathzone.'\*\s*}"' + exe 'syn sync match '.syncname.' grouphere '.grpname.' "\\begin\s*{\s*'.a:mathzone.'\*\s*}"' + endif + exe 'hi def link '.grpname.' texMath' + if a:starform + let grpname = "texMathZone".a:sfx.'S' + let syncname = "texSyncMathZone".a:sfx.'S' + exe "syn cluster texMathZones add=".grpname + if s:tex_fast =~# 'M' + exe 'syn region '.grpname.' start='."'".'\\begin\s*{\s*'.a:mathzone.'\*\s*}'."'".' end='."'".'\\end\s*{\s*'.a:mathzone.'\*\s*}'."'".' keepend contains=@texMathZoneGroup'.foldcmd + exe 'syn sync match '.syncname.' grouphere '.grpname.' "\\begin\s*{\s*'.a:mathzone.'\*\s*}"' + exe 'syn sync match '.syncname.' grouphere '.grpname.' "\\begin\s*{\s*'.a:mathzone.'\*\s*}"' + endif + exe 'hi def link '.grpname.' texMath' + endif + endfun + + " Standard Math Zones: {{{2 + call TexNewMathZone("A","displaymath",1) + call TexNewMathZone("B","eqnarray",1) + call TexNewMathZone("C","equation",1) + call TexNewMathZone("D","math",1) + call TexNewMathZone("E","align",1) + call TexNewMathZone("F","alignat",1) + call TexNewMathZone("G","flalign",1) + call TexNewMathZone("H","gather",1) + call TexNewMathZone("I","multline",1) + + " Inline Math Zones: {{{2 + if s:tex_fast =~# 'M' + if has("conceal") && &enc == 'utf-8' && s:tex_conceal =~# 'd' + syn region texMathZoneV matchgroup=texDelimiter start="\\(" matchgroup=texDelimiter end="\\)\|%stopzone\>" keepend concealends contains=@texMathZoneGroup + syn region texMathZoneW matchgroup=texDelimiter start="\\\[" matchgroup=texDelimiter end="\\]\|%stopzone\>" keepend concealends contains=@texMathZoneGroup + syn region texMathZoneX matchgroup=texDelimiter start="\$" skip="\\\\\|\\\$" matchgroup=texDelimiter end="\$" end="%stopzone\>" concealends contains=@texMathZoneGroup + syn region texMathZoneY matchgroup=texDelimiter start="\$\$" matchgroup=texDelimiter end="\$\$" end="%stopzone\>" keepend concealends contains=@texMathZoneGroup + else + syn region texMathZoneV matchgroup=texDelimiter start="\\(" matchgroup=texDelimiter end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup + syn region texMathZoneW matchgroup=texDelimiter start="\\\[" matchgroup=texDelimiter end="\\]\|%stopzone\>" keepend contains=@texMathZoneGroup + syn region texMathZoneX matchgroup=texDelimiter start="\$" skip="\%(\\\\\)*\\\$" matchgroup=texDelimiter end="\$" end="%stopzone\>" contains=@texMathZoneGroup + syn region texMathZoneY matchgroup=texDelimiter start="\$\$" matchgroup=texDelimiter end="\$\$" end="%stopzone\>" keepend contains=@texMathZoneGroup + endif + syn region texMathZoneZ matchgroup=texStatement start="\\ensuremath\s*{" matchgroup=texStatement end="}" end="%stopzone\>" contains=@texMathZoneGroup + endif + + syn match texMathOper "[_^=]" contained + + " Text Inside Math Zones: {{{2 + if s:tex_fast =~# 'M' + if !exists("g:tex_nospell") || !g:tex_nospell + syn region texMathText matchgroup=texStatement start='\\\(\(inter\)\=text\|mbox\)\s*{' end='}' contains=@texFoldGroup,@Spell + else + syn region texMathText matchgroup=texStatement start='\\\(\(inter\)\=text\|mbox\)\s*{' end='}' contains=@texFoldGroup + endif + endif + + " \left..something.. and \right..something.. support: {{{2 + syn match texMathDelimBad contained "\S" + if has("conceal") && &enc == 'utf-8' && s:tex_conceal =~# 'm' + syn match texMathDelim contained "\\left\[" + syn match texMathDelim contained "\\left\\{" skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar={ + syn match texMathDelim contained "\\right\\}" skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar=} + let s:texMathDelimList=[ + \ ['<' , '<'] , + \ ['>' , '>'] , + \ ['(' , '('] , + \ [')' , ')'] , + \ ['\[' , '['] , + \ [']' , ']'] , + \ ['\\{' , '{'] , + \ ['\\}' , '}'] , + \ ['|' , '|'] , + \ ['\\|' , '‖'] , + \ ['\\backslash' , '\'] , + \ ['\\downarrow' , '↓'] , + \ ['\\Downarrow' , '⇓'] , + \ ['\\lbrace' , '['] , + \ ['\\lceil' , '⌈'] , + \ ['\\lfloor' , '⌊'] , + \ ['\\lgroup' , '⌊'] , + \ ['\\lmoustache' , '⎛'] , + \ ['\\rbrace' , ']'] , + \ ['\\rceil' , '⌉'] , + \ ['\\rfloor' , '⌋'] , + \ ['\\rgroup' , '⌋'] , + \ ['\\rmoustache' , '⎞'] , + \ ['\\uparrow' , '↑'] , + \ ['\\Uparrow' , '↑'] , + \ ['\\updownarrow', '↕'] , + \ ['\\Updownarrow', '⇕']] + if &ambw == "double" || exists("g:tex_usedblwidth") + let s:texMathDelimList= s:texMathDelimList + [ + \ ['\\langle' , '〈'] , + \ ['\\rangle' , '〉']] + else + let s:texMathDelimList= s:texMathDelimList + [ + \ ['\\langle' , '<'] , + \ ['\\rangle' , '>']] + endif + syn match texMathDelim '\\[bB]igg\=[lr]' contained nextgroup=texMathDelimBad + for texmath in s:texMathDelimList + exe "syn match texMathDelim '\\\\[bB]igg\\=[lr]\\=".texmath[0]."' contained conceal cchar=".texmath[1] + endfor + + else + syn match texMathDelim contained "\\\(left\|right\)\>" skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad + syn match texMathDelim contained "\\[bB]igg\=[lr]\=\>" skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad + syn match texMathDelimSet2 contained "\\" nextgroup=texMathDelimKey,texMathDelimBad + syn match texMathDelimSet1 contained "[<>()[\]|/.]\|\\[{}|]" + syn keyword texMathDelimKey contained backslash lceil lVert rgroup uparrow + syn keyword texMathDelimKey contained downarrow lfloor rangle rmoustache Uparrow + syn keyword texMathDelimKey contained Downarrow lgroup rbrace rvert updownarrow + syn keyword texMathDelimKey contained langle lmoustache rceil rVert Updownarrow + syn keyword texMathDelimKey contained lbrace lvert rfloor + endif + syn match texMathDelim contained "\\\(left\|right\)arrow\>\|\<\([aA]rrow\|brace\)\=vert\>" + syn match texMathDelim contained "\\lefteqn\>" +endif + +" Special TeX characters ( \$ \& \% \# \{ \} \_ \S \P ) : {{{1 +syn match texSpecialChar "\\[$&%#{}_]" +if b:tex_stylish + syn match texSpecialChar "\\[SP@][^a-zA-Z@]"me=e-1 +else + syn match texSpecialChar "\\[SP@]\A"me=e-1 +endif +syn match texSpecialChar "\\\\" +if !exists("g:tex_no_math") + syn match texOnlyMath "[_^]" +endif +syn match texSpecialChar "\^\^[0-9a-f]\{2}\|\^\^\S" +if s:tex_conceal !~# 'S' + syn match texSpecialChar '\\glq\>' contained conceal cchar=‚ + syn match texSpecialChar '\\grq\>' contained conceal cchar=‘ + syn match texSpecialChar '\\glqq\>' contained conceal cchar=„ + syn match texSpecialChar '\\grqq\>' contained conceal cchar=“ + syn match texSpecialChar '\\hyp\>' contained conceal cchar=- +endif + +" Comments: {{{1 +" Normal TeX LaTeX : %.... +" Documented TeX Format: ^^A... -and- leading %s (only) +if !s:tex_comment_nospell + syn cluster texCommentGroup contains=texTodo,@Spell +else + syn cluster texCommentGroup contains=texTodo,@NoSpell +endif +syn case ignore +syn keyword texTodo contained combak fixme todo xxx +syn case match +if s:extfname == "dtx" + syn match texComment "\^\^A.*$" contains=@texCommentGroup + syn match texComment "^%\+" contains=@texCommentGroup +else + if s:tex_fold_enabled + " allows syntax-folding of 2 or more contiguous comment lines + " single-line comments are not folded + syn match texComment "%.*$" contains=@texCommentGroup + if s:tex_fast =~# 'c' + TexFold syn region texComment start="^\zs\s*%.*\_s*%" skip="^\s*%" end='^\ze\s*[^%]' contains=@texCommentGroup + TexFold syn region texNoSpell contained matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" contains=@texFoldGroup,@NoSpell + endif + else + syn match texComment "%.*$" contains=@texCommentGroup + if s:tex_fast =~# 'c' + syn region texNoSpell contained matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" contains=@texFoldGroup,@NoSpell + endif + endif +endif + +" %begin-include ... %end-include acts like a texDocZone for \include'd files. Permits spell checking, for example, in such files. +if !s:tex_nospell + TexFold syn region texDocZone matchgroup=texSection start='^\s*%begin-include\>' end='^\s*%end-include\>' contains=@texFoldGroup,@texDocGroup,@Spell +else + TexFold syn region texDocZone matchgroup=texSection start='^\s*%begin-include\>' end='^\s*%end-include\>' contains=@texFoldGroup,@texDocGroup +endif + +" Separate lines used for verb` and verb# so that the end conditions {{{1 +" will appropriately terminate. +" If g:tex_verbspell exists, then verbatim texZones will permit spellchecking there. +if s:tex_fast =~# 'v' + if exists("g:tex_verbspell") && g:tex_verbspell + syn region texZone start="\\begin{[vV]erbatim}" end="\\end{[vV]erbatim}\|%stopzone\>" contains=@Spell + " listings package: + if b:tex_stylish + syn region texZone start="\\verb\*\=\z([^\ta-zA-Z@]\)" end="\z1\|%stopzone\>" contains=@Spell + else + syn region texZone start="\\verb\*\=\z([^\ta-zA-Z]\)" end="\z1\|%stopzone\>" contains=@Spell + endif + else + syn region texZone start="\\begin{[vV]erbatim}" end="\\end{[vV]erbatim}\|%stopzone\>" + if b:tex_stylish + syn region texZone start="\\verb\*\=\z([^\ta-zA-Z@]\)" end="\z1\|%stopzone\>" + else + syn region texZone start="\\verb\*\=\z([^\ta-zA-Z]\)" end="\z1\|%stopzone\>" + endif + endif +endif + +" Tex Reference Zones: {{{1 +if s:tex_fast =~# 'r' + syn region texZone matchgroup=texStatement start="@samp{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefZone matchgroup=texStatement start="\\nocite{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefZone matchgroup=texStatement start="\\bibliography{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefZone matchgroup=texStatement start="\\label{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefZone matchgroup=texStatement start="\\\(page\|eq\)ref{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefZone matchgroup=texStatement start="\\v\=ref{" end="}\|%stopzone\>" contains=@texRefGroup + syn region texRefOption contained matchgroup=texDelimiter start='\[' end=']' contains=@texRefGroup,texRefZone nextgroup=texRefOption,texCite + syn region texCite contained matchgroup=texDelimiter start='{' end='}' contains=@texRefGroup,texRefZone,texCite +endif +syn match texRefZone '\\cite\%([tp]\*\=\)\=\>' nextgroup=texRefOption,texCite + +" Handle (re)newcommand, providecommand, (re)newenvironment : {{{1 +" EXAMPLE: +" +" The followings are valid (ignoring error due to redefinition): +" +" \newcommand{\foo}{body} +" \newcommand{\foo}[1]{#1} +" \newcommand{\foo}[1][def]{#1} +" +" The followings are ill-formed: +" +" \newcommand{\foo}{#1} ! Illegal parameter number in definition of \foo. +" \newcommand{\foo}[x]{…} ! Missing number, treated as zero. +" \newcommand{\foo}[10]{…} ! You already have nine parameters. +syn match texNewCmd "\\\%(\%(re\)\=new\|provide\)command\>\*\?" nextgroup=texCmdName skipwhite skipnl +if s:tex_fast =~# 'V' + syn region texCmdName contained matchgroup=texDelimiter start="{"rs=s+1 end="}" nextgroup=texCmdArgs,texCmdBody skipwhite skipnl + syn region texCmdArgs contained matchgroup=texDelimiter start="\["rs=s+1 end="]" nextgroup=texCmdDefaultPar,texCmdBody skipwhite skipnl + syn region texCmdDefaultPar contained matchgroup=texDelimiter start="\["rs=s+1 end="]" nextgroup=texCmdBody skipwhite skipnl + syn region texCmdBody contained matchgroup=texDelimiter start="{"rs=s+1 skip="\\\\\|\\[{}]" matchgroup=texDelimiter end="}" contains=@texCmdGroup +endif +" EXAMPLE: +" +" The followings are valid (ignoring error due to redefinition): +" +" \newenvironment{baz}{beg}{end} +" \newenvironment{baz}[1]{beg #1}{end} +" \newenvironment{baz}[1][default]{beg #1}{end} +" +" The followings are invalid: +" +" \newenvironment{baz}{#1}{…} ! Illegal parameter number in definition of \baz. +" \newenvironment{baz}[x]{…}{…} ! Missing number, treated as zero. +" \newenvironment{baz}[10]{…}{…} ! You already have nine parameters. +" \newenvironment{baz}[1]{…}{#1} ! Illegal parameter number in definition of \endbaz. +syn match texNewEnv "\\\%(re\)\=newenvironment\>\*\?" nextgroup=texEnvName skipwhite skipnl +if s:tex_fast =~# 'V' + syn region texEnvName contained matchgroup=texDelimiter start="{"rs=s+1 end="}" nextgroup=texEnvArgs,texEnvBgn skipwhite skipnl + syn region texEnvArgs contained matchgroup=texDelimiter start="\["rs=s+1 end="]" nextgroup=texEnvDefaultPar,texEnvBgn skipwhite skipnl + syn region texEnvDefaultPar contained matchgroup=texDelimiter start="\["rs=s+1 end="]" nextgroup=texEnvBgn skipwhite skipnl + syn region texEnvBgn contained matchgroup=texDelimiter start="{"rs=s+1 end="}" nextgroup=texEnvEnd skipwhite skipnl contains=@texEnvGroup + syn region texEnvEnd contained matchgroup=texDelimiter start="{"rs=s+1 end="}" skipwhite skipnl contains=@texEnvGroup +endif + +" Definitions/Commands: {{{1 +syn match texDefCmd "\\def\>" nextgroup=texDefName skipwhite skipnl +if b:tex_stylish + syn match texDefName contained "\\[a-zA-Z@]\+" nextgroup=texDefParms,texCmdBody skipwhite skipnl + syn match texDefName contained "\\[^a-zA-Z@]" nextgroup=texDefParms,texCmdBody skipwhite skipnl +else + syn match texDefName contained "\\\a\+" nextgroup=texDefParms,texCmdBody skipwhite skipnl + syn match texDefName contained "\\\A" nextgroup=texDefParms,texCmdBody skipwhite skipnl +endif +syn match texDefParms contained "#[^{]*" contains=texDefParm nextgroup=texCmdBody skipwhite skipnl +syn match texDefParm contained "#[1-9]" + +" TeX Lengths: {{{1 +syn match texLength "\<\d\+\([.,]\d\+\)\=\s*\(true\)\=\s*\(bp\|cc\|cm\|dd\|em\|ex\|in\|mm\|pc\|pt\|sp\)\>" + +" TeX String Delimiters: {{{1 +syn match texString "\(``\|''\|,,\)" + +" makeatletter -- makeatother sections +if !s:tex_no_error + if s:tex_fast =~# 'S' + syn region texStyle matchgroup=texStatement start='\\makeatletter' end='\\makeatother' contains=@texStyleGroup contained + endif + syn match texStyleStatement "\\[a-zA-Z@]\+" contained + if s:tex_fast =~# 'S' + syn region texStyleMatcher matchgroup=texDelimiter start="{" skip="\\\\\|\\[{}]" end="}" contains=@texStyleGroup,texError contained + syn region texStyleMatcher matchgroup=texDelimiter start="\[" end="]" contains=@texStyleGroup,texError contained + endif +endif + +" Conceal mode support (supports set cole=2) {{{1 +if has("conceal") && &enc == 'utf-8' + + " Math Symbols {{{2 + " (many of these symbols were contributed by Björn Winckler) + if s:tex_conceal =~# 'm' + let s:texMathList=[ + \ ['|' , '‖'], + \ ['aleph' , 'ℵ'], + \ ['amalg' , '∐'], + \ ['angle' , '∠'], + \ ['approx' , '≈'], + \ ['ast' , '∗'], + \ ['asymp' , '≍'], + \ ['backslash' , '∖'], + \ ['bigcap' , '∩'], + \ ['bigcirc' , '○'], + \ ['bigcup' , '∪'], + \ ['bigodot' , '⊙'], + \ ['bigoplus' , '⊕'], + \ ['bigotimes' , '⊗'], + \ ['bigsqcup' , '⊔'], + \ ['bigtriangledown', '∇'], + \ ['bigtriangleup' , '∆'], + \ ['bigvee' , '⋁'], + \ ['bigwedge' , '⋀'], + \ ['bot' , '⊥'], + \ ['bowtie' , '⋈'], + \ ['bullet' , '•'], + \ ['cap' , '∩'], + \ ['cdot' , '·'], + \ ['cdots' , '⋯'], + \ ['circ' , '∘'], + \ ['clubsuit' , '♣'], + \ ['cong' , '≅'], + \ ['coprod' , '∐'], + \ ['copyright' , '©'], + \ ['cup' , '∪'], + \ ['dagger' , '†'], + \ ['dashv' , '⊣'], + \ ['ddagger' , '‡'], + \ ['ddots' , '⋱'], + \ ['diamond' , '⋄'], + \ ['diamondsuit' , '♢'], + \ ['div' , '÷'], + \ ['doteq' , '≐'], + \ ['dots' , '…'], + \ ['downarrow' , '↓'], + \ ['Downarrow' , '⇓'], + \ ['ell' , 'ℓ'], + \ ['emptyset' , '∅'], + \ ['equiv' , '≡'], + \ ['exists' , '∃'], + \ ['flat' , '♭'], + \ ['forall' , '∀'], + \ ['frown' , '⁔'], + \ ['ge' , '≥'], + \ ['geq' , '≥'], + \ ['gets' , '←'], + \ ['gg' , '⟫'], + \ ['hbar' , 'ℏ'], + \ ['heartsuit' , '♡'], + \ ['hookleftarrow' , '↩'], + \ ['hookrightarrow' , '↪'], + \ ['iff' , '⇔'], + \ ['Im' , 'ℑ'], + \ ['imath' , 'ɩ'], + \ ['in' , '∈'], + \ ['infty' , '∞'], + \ ['int' , '∫'], + \ ['jmath' , '𝚥'], + \ ['land' , '∧'], + \ ['lceil' , '⌈'], + \ ['ldots' , '…'], + \ ['le' , '≤'], + \ ['left|' , '|'], + \ ['left\\|' , '‖'], + \ ['left(' , '('], + \ ['left\[' , '['], + \ ['left\\{' , '{'], + \ ['leftarrow' , '←'], + \ ['Leftarrow' , '⇐'], + \ ['leftharpoondown', '↽'], + \ ['leftharpoonup' , '↼'], + \ ['leftrightarrow' , '↔'], + \ ['Leftrightarrow' , '⇔'], + \ ['leq' , '≤'], + \ ['leq' , '≤'], + \ ['lfloor' , '⌊'], + \ ['ll' , '≪'], + \ ['lmoustache' , '╭'], + \ ['lor' , '∨'], + \ ['mapsto' , '↦'], + \ ['mid' , '∣'], + \ ['models' , '╞'], + \ ['mp' , '∓'], + \ ['nabla' , '∇'], + \ ['natural' , '♮'], + \ ['ne' , '≠'], + \ ['nearrow' , '↗'], + \ ['neg' , '¬'], + \ ['neq' , '≠'], + \ ['ni' , '∋'], + \ ['notin' , '∉'], + \ ['nwarrow' , '↖'], + \ ['odot' , '⊙'], + \ ['oint' , '∮'], + \ ['ominus' , '⊖'], + \ ['oplus' , '⊕'], + \ ['oslash' , '⊘'], + \ ['otimes' , '⊗'], + \ ['owns' , '∋'], + \ ['P' , '¶'], + \ ['parallel' , '║'], + \ ['partial' , '∂'], + \ ['perp' , '⊥'], + \ ['pm' , '±'], + \ ['prec' , '≺'], + \ ['preceq' , '⪯'], + \ ['prime' , '′'], + \ ['prod' , '∏'], + \ ['propto' , '∝'], + \ ['rceil' , '⌉'], + \ ['Re' , 'ℜ'], + \ ['quad' , ' '], + \ ['qquad' , ' '], + \ ['rfloor' , '⌋'], + \ ['right|' , '|'], + \ ['right\\|' , '‖'], + \ ['right)' , ')'], + \ ['right]' , ']'], + \ ['right\\}' , '}'], + \ ['rightarrow' , '→'], + \ ['Rightarrow' , '⇒'], + \ ['rightleftharpoons', '⇌'], + \ ['rmoustache' , '╮'], + \ ['S' , '§'], + \ ['searrow' , '↘'], + \ ['setminus' , '∖'], + \ ['sharp' , '♯'], + \ ['sim' , '∼'], + \ ['simeq' , '⋍'], + \ ['smile' , '‿'], + \ ['spadesuit' , '♠'], + \ ['sqcap' , '⊓'], + \ ['sqcup' , '⊔'], + \ ['sqsubset' , '⊏'], + \ ['sqsubseteq' , '⊑'], + \ ['sqsupset' , '⊐'], + \ ['sqsupseteq' , '⊒'], + \ ['star' , '✫'], + \ ['subset' , '⊂'], + \ ['subseteq' , '⊆'], + \ ['succ' , '≻'], + \ ['succeq' , '⪰'], + \ ['sum' , '∑'], + \ ['supset' , '⊃'], + \ ['supseteq' , '⊇'], + \ ['surd' , '√'], + \ ['swarrow' , '↙'], + \ ['times' , '×'], + \ ['to' , '→'], + \ ['top' , '⊤'], + \ ['triangle' , '∆'], + \ ['triangleleft' , '⊲'], + \ ['triangleright' , '⊳'], + \ ['uparrow' , '↑'], + \ ['Uparrow' , '⇑'], + \ ['updownarrow' , '↕'], + \ ['Updownarrow' , '⇕'], + \ ['vdash' , '⊢'], + \ ['vdots' , '⋮'], + \ ['vee' , '∨'], + \ ['wedge' , '∧'], + \ ['wp' , '℘'], + \ ['wr' , '≀']] + if &ambw == "double" || exists("g:tex_usedblwidth") + let s:texMathList= s:texMathList + [ + \ ['right\\rangle' , '〉'], + \ ['left\\langle' , '〈']] + else + let s:texMathList= s:texMathList + [ + \ ['right\\rangle' , '>'], + \ ['left\\langle' , '<']] + endif + for texmath in s:texMathList + if texmath[0] =~# '\w$' + exe "syn match texMathSymbol '\\\\".texmath[0]."\\>' contained conceal cchar=".texmath[1] + else + exe "syn match texMathSymbol '\\\\".texmath[0]."' contained conceal cchar=".texmath[1] + endif + endfor + + if &ambw == "double" + syn match texMathSymbol '\\gg\>' contained conceal cchar=≫ + syn match texMathSymbol '\\ll\>' contained conceal cchar=≪ + else + syn match texMathSymbol '\\gg\>' contained conceal cchar=⟫ + syn match texMathSymbol '\\ll\>' contained conceal cchar=⟪ + endif + + syn match texMathSymbol '\\hat{a}' contained conceal cchar=â + syn match texMathSymbol '\\hat{A}' contained conceal cchar= + syn match texMathSymbol '\\hat{c}' contained conceal cchar=ĉ + syn match texMathSymbol '\\hat{C}' contained conceal cchar=Ĉ + syn match texMathSymbol '\\hat{e}' contained conceal cchar=ê + syn match texMathSymbol '\\hat{E}' contained conceal cchar=Ê + syn match texMathSymbol '\\hat{g}' contained conceal cchar=ĝ + syn match texMathSymbol '\\hat{G}' contained conceal cchar=Ĝ + syn match texMathSymbol '\\hat{i}' contained conceal cchar=î + syn match texMathSymbol '\\hat{I}' contained conceal cchar=Î + syn match texMathSymbol '\\hat{o}' contained conceal cchar=ô + syn match texMathSymbol '\\hat{O}' contained conceal cchar=Ô + syn match texMathSymbol '\\hat{s}' contained conceal cchar=ŝ + syn match texMathSymbol '\\hat{S}' contained conceal cchar=Ŝ + syn match texMathSymbol '\\hat{u}' contained conceal cchar=û + syn match texMathSymbol '\\hat{U}' contained conceal cchar=Û + syn match texMathSymbol '\\hat{w}' contained conceal cchar=ŵ + syn match texMathSymbol '\\hat{W}' contained conceal cchar=Ŵ + syn match texMathSymbol '\\hat{y}' contained conceal cchar=ŷ + syn match texMathSymbol '\\hat{Y}' contained conceal cchar=Ŷ +" syn match texMathSymbol '\\bar{a}' contained conceal cchar=a̅ + + syn match texMathSymbol '\\dot{B}' contained conceal cchar=Ḃ + syn match texMathSymbol '\\dot{b}' contained conceal cchar=ḃ + syn match texMathSymbol '\\dot{D}' contained conceal cchar=Ḋ + syn match texMathSymbol '\\dot{d}' contained conceal cchar=ḋ + syn match texMathSymbol '\\dot{F}' contained conceal cchar=Ḟ + syn match texMathSymbol '\\dot{f}' contained conceal cchar=ḟ + syn match texMathSymbol '\\dot{H}' contained conceal cchar=Ḣ + syn match texMathSymbol '\\dot{h}' contained conceal cchar=ḣ + syn match texMathSymbol '\\dot{M}' contained conceal cchar=Ṁ + syn match texMathSymbol '\\dot{m}' contained conceal cchar=ṁ + syn match texMathSymbol '\\dot{N}' contained conceal cchar=Ṅ + syn match texMathSymbol '\\dot{n}' contained conceal cchar=ṅ + syn match texMathSymbol '\\dot{P}' contained conceal cchar=Ṗ + syn match texMathSymbol '\\dot{p}' contained conceal cchar=ṗ + syn match texMathSymbol '\\dot{R}' contained conceal cchar=Ṙ + syn match texMathSymbol '\\dot{r}' contained conceal cchar=ṙ + syn match texMathSymbol '\\dot{S}' contained conceal cchar=Ṡ + syn match texMathSymbol '\\dot{s}' contained conceal cchar=ṡ + syn match texMathSymbol '\\dot{T}' contained conceal cchar=Ṫ + syn match texMathSymbol '\\dot{t}' contained conceal cchar=ṫ + syn match texMathSymbol '\\dot{W}' contained conceal cchar=Ẇ + syn match texMathSymbol '\\dot{w}' contained conceal cchar=ẇ + syn match texMathSymbol '\\dot{X}' contained conceal cchar=Ẋ + syn match texMathSymbol '\\dot{x}' contained conceal cchar=ẋ + syn match texMathSymbol '\\dot{Y}' contained conceal cchar=Ẏ + syn match texMathSymbol '\\dot{y}' contained conceal cchar=ẏ + syn match texMathSymbol '\\dot{Z}' contained conceal cchar=Ż + syn match texMathSymbol '\\dot{z}' contained conceal cchar=ż + + syn match texMathSymbol '\\dot{C}' contained conceal cchar=Ċ + syn match texMathSymbol '\\dot{c}' contained conceal cchar=ċ + syn match texMathSymbol '\\dot{E}' contained conceal cchar=Ė + syn match texMathSymbol '\\dot{e}' contained conceal cchar=ė + syn match texMathSymbol '\\dot{G}' contained conceal cchar=Ġ + syn match texMathSymbol '\\dot{g}' contained conceal cchar=ġ + syn match texMathSymbol '\\dot{I}' contained conceal cchar=İ + + syn match texMathSymbol '\\dot{A}' contained conceal cchar=Ȧ + syn match texMathSymbol '\\dot{a}' contained conceal cchar=ȧ + syn match texMathSymbol '\\dot{O}' contained conceal cchar=Ȯ + syn match texMathSymbol '\\dot{o}' contained conceal cchar=ȯ + endif + + " Greek {{{2 + if s:tex_conceal =~# 'g' + fun! s:Greek(group,pat,cchar) + exe 'syn match '.a:group." '".a:pat."' contained conceal cchar=".a:cchar + endfun + call s:Greek('texGreek','\\alpha\>' ,'α') + call s:Greek('texGreek','\\beta\>' ,'β') + call s:Greek('texGreek','\\gamma\>' ,'γ') + call s:Greek('texGreek','\\delta\>' ,'δ') + call s:Greek('texGreek','\\epsilon\>' ,'ϵ') + call s:Greek('texGreek','\\varepsilon\>' ,'ε') + call s:Greek('texGreek','\\zeta\>' ,'ζ') + call s:Greek('texGreek','\\eta\>' ,'η') + call s:Greek('texGreek','\\theta\>' ,'θ') + call s:Greek('texGreek','\\vartheta\>' ,'ϑ') + call s:Greek('texGreek','\\iota\>' ,'ι') + call s:Greek('texGreek','\\kappa\>' ,'κ') + call s:Greek('texGreek','\\lambda\>' ,'λ') + call s:Greek('texGreek','\\mu\>' ,'μ') + call s:Greek('texGreek','\\nu\>' ,'ν') + call s:Greek('texGreek','\\xi\>' ,'ξ') + call s:Greek('texGreek','\\pi\>' ,'π') + call s:Greek('texGreek','\\varpi\>' ,'ϖ') + call s:Greek('texGreek','\\rho\>' ,'ρ') + call s:Greek('texGreek','\\varrho\>' ,'ϱ') + call s:Greek('texGreek','\\sigma\>' ,'σ') + call s:Greek('texGreek','\\varsigma\>' ,'ς') + call s:Greek('texGreek','\\tau\>' ,'τ') + call s:Greek('texGreek','\\upsilon\>' ,'υ') + call s:Greek('texGreek','\\phi\>' ,'ϕ') + call s:Greek('texGreek','\\varphi\>' ,'φ') + call s:Greek('texGreek','\\chi\>' ,'χ') + call s:Greek('texGreek','\\psi\>' ,'ψ') + call s:Greek('texGreek','\\omega\>' ,'ω') + call s:Greek('texGreek','\\Gamma\>' ,'Γ') + call s:Greek('texGreek','\\Delta\>' ,'Δ') + call s:Greek('texGreek','\\Theta\>' ,'Θ') + call s:Greek('texGreek','\\Lambda\>' ,'Λ') + call s:Greek('texGreek','\\Xi\>' ,'Ξ') + call s:Greek('texGreek','\\Pi\>' ,'Π') + call s:Greek('texGreek','\\Sigma\>' ,'Σ') + call s:Greek('texGreek','\\Upsilon\>' ,'Υ') + call s:Greek('texGreek','\\Phi\>' ,'Φ') + call s:Greek('texGreek','\\Chi\>' ,'Χ') + call s:Greek('texGreek','\\Psi\>' ,'Ψ') + call s:Greek('texGreek','\\Omega\>' ,'Ω') + delfun s:Greek + endif + + " Superscripts/Subscripts {{{2 + if s:tex_conceal =~# 's' + if s:tex_fast =~# 's' + syn region texSuperscript matchgroup=texDelimiter start='\^{' skip="\\\\\|\\[{}]" end='}' contained concealends contains=texSpecialChar,texSuperscripts,texStatement,texSubscript,texSuperscript,texMathMatcher + syn region texSubscript matchgroup=texDelimiter start='_{' skip="\\\\\|\\[{}]" end='}' contained concealends contains=texSpecialChar,texSubscripts,texStatement,texSubscript,texSuperscript,texMathMatcher + endif + " s:SuperSub: + fun! s:SuperSub(group,leader,pat,cchar) + if a:pat =~# '^\\' || (a:leader == '\^' && a:pat =~# s:tex_superscripts) || (a:leader == '_' && a:pat =~# s:tex_subscripts) +" call Decho("SuperSub: group<".a:group."> leader<".a:leader."> pat<".a:pat."> cchar<".a:cchar.">") + exe 'syn match '.a:group." '".a:leader.a:pat."' contained conceal cchar=".a:cchar + exe 'syn match '.a:group."s '".a:pat ."' contained conceal cchar=".a:cchar.' nextgroup='.a:group.'s' + endif + endfun + call s:SuperSub('texSuperscript','\^','0','⁰') + call s:SuperSub('texSuperscript','\^','1','¹') + call s:SuperSub('texSuperscript','\^','2','²') + call s:SuperSub('texSuperscript','\^','3','³') + call s:SuperSub('texSuperscript','\^','4','⁴') + call s:SuperSub('texSuperscript','\^','5','⁵') + call s:SuperSub('texSuperscript','\^','6','⁶') + call s:SuperSub('texSuperscript','\^','7','⁷') + call s:SuperSub('texSuperscript','\^','8','⁸') + call s:SuperSub('texSuperscript','\^','9','⁹') + call s:SuperSub('texSuperscript','\^','a','ᵃ') + call s:SuperSub('texSuperscript','\^','b','ᵇ') + call s:SuperSub('texSuperscript','\^','c','ᶜ') + call s:SuperSub('texSuperscript','\^','d','ᵈ') + call s:SuperSub('texSuperscript','\^','e','ᵉ') + call s:SuperSub('texSuperscript','\^','f','ᶠ') + call s:SuperSub('texSuperscript','\^','g','ᵍ') + call s:SuperSub('texSuperscript','\^','h','ʰ') + call s:SuperSub('texSuperscript','\^','i','ⁱ') + call s:SuperSub('texSuperscript','\^','j','ʲ') + call s:SuperSub('texSuperscript','\^','k','ᵏ') + call s:SuperSub('texSuperscript','\^','l','ˡ') + call s:SuperSub('texSuperscript','\^','m','ᵐ') + call s:SuperSub('texSuperscript','\^','n','ⁿ') + call s:SuperSub('texSuperscript','\^','o','ᵒ') + call s:SuperSub('texSuperscript','\^','p','ᵖ') + call s:SuperSub('texSuperscript','\^','r','ʳ') + call s:SuperSub('texSuperscript','\^','s','ˢ') + call s:SuperSub('texSuperscript','\^','t','ᵗ') + call s:SuperSub('texSuperscript','\^','u','ᵘ') + call s:SuperSub('texSuperscript','\^','v','ᵛ') + call s:SuperSub('texSuperscript','\^','w','ʷ') + call s:SuperSub('texSuperscript','\^','x','ˣ') + call s:SuperSub('texSuperscript','\^','y','ʸ') + call s:SuperSub('texSuperscript','\^','z','ᶻ') + call s:SuperSub('texSuperscript','\^','A','ᴬ') + call s:SuperSub('texSuperscript','\^','B','ᴮ') + call s:SuperSub('texSuperscript','\^','D','ᴰ') + call s:SuperSub('texSuperscript','\^','E','ᴱ') + call s:SuperSub('texSuperscript','\^','G','ᴳ') + call s:SuperSub('texSuperscript','\^','H','ᴴ') + call s:SuperSub('texSuperscript','\^','I','ᴵ') + call s:SuperSub('texSuperscript','\^','J','ᴶ') + call s:SuperSub('texSuperscript','\^','K','ᴷ') + call s:SuperSub('texSuperscript','\^','L','ᴸ') + call s:SuperSub('texSuperscript','\^','M','ᴹ') + call s:SuperSub('texSuperscript','\^','N','ᴺ') + call s:SuperSub('texSuperscript','\^','O','ᴼ') + call s:SuperSub('texSuperscript','\^','P','ᴾ') + call s:SuperSub('texSuperscript','\^','R','ᴿ') + call s:SuperSub('texSuperscript','\^','T','ᵀ') + call s:SuperSub('texSuperscript','\^','U','ᵁ') + call s:SuperSub('texSuperscript','\^','V','ⱽ') + call s:SuperSub('texSuperscript','\^','W','ᵂ') + call s:SuperSub('texSuperscript','\^',',','︐') + call s:SuperSub('texSuperscript','\^',':','︓') + call s:SuperSub('texSuperscript','\^',';','︔') + call s:SuperSub('texSuperscript','\^','+','⁺') + call s:SuperSub('texSuperscript','\^','-','⁻') + call s:SuperSub('texSuperscript','\^','<','˂') + call s:SuperSub('texSuperscript','\^','>','˃') + call s:SuperSub('texSuperscript','\^','/','ˊ') + call s:SuperSub('texSuperscript','\^','(','⁽') + call s:SuperSub('texSuperscript','\^',')','⁾') + call s:SuperSub('texSuperscript','\^','\.','˙') + call s:SuperSub('texSuperscript','\^','=','˭') + call s:SuperSub('texSubscript','_','0','₀') + call s:SuperSub('texSubscript','_','1','₁') + call s:SuperSub('texSubscript','_','2','₂') + call s:SuperSub('texSubscript','_','3','₃') + call s:SuperSub('texSubscript','_','4','₄') + call s:SuperSub('texSubscript','_','5','₅') + call s:SuperSub('texSubscript','_','6','₆') + call s:SuperSub('texSubscript','_','7','₇') + call s:SuperSub('texSubscript','_','8','₈') + call s:SuperSub('texSubscript','_','9','₉') + call s:SuperSub('texSubscript','_','a','ₐ') + call s:SuperSub('texSubscript','_','e','ₑ') + call s:SuperSub('texSubscript','_','h','ₕ') + call s:SuperSub('texSubscript','_','i','ᵢ') + call s:SuperSub('texSubscript','_','j','ⱼ') + call s:SuperSub('texSubscript','_','k','ₖ') + call s:SuperSub('texSubscript','_','l','ₗ') + call s:SuperSub('texSubscript','_','m','ₘ') + call s:SuperSub('texSubscript','_','n','ₙ') + call s:SuperSub('texSubscript','_','o','ₒ') + call s:SuperSub('texSubscript','_','p','ₚ') + call s:SuperSub('texSubscript','_','r','ᵣ') + call s:SuperSub('texSubscript','_','s','ₛ') + call s:SuperSub('texSubscript','_','t','ₜ') + call s:SuperSub('texSubscript','_','u','ᵤ') + call s:SuperSub('texSubscript','_','v','ᵥ') + call s:SuperSub('texSubscript','_','x','ₓ') + call s:SuperSub('texSubscript','_',',','︐') + call s:SuperSub('texSubscript','_','+','₊') + call s:SuperSub('texSubscript','_','-','₋') + call s:SuperSub('texSubscript','_','/','ˏ') + call s:SuperSub('texSubscript','_','(','₍') + call s:SuperSub('texSubscript','_',')','₎') + call s:SuperSub('texSubscript','_','\.','‸') + call s:SuperSub('texSubscript','_','r','ᵣ') + call s:SuperSub('texSubscript','_','v','ᵥ') + call s:SuperSub('texSubscript','_','x','ₓ') + call s:SuperSub('texSubscript','_','\\beta\>' ,'ᵦ') + call s:SuperSub('texSubscript','_','\\delta\>','ᵨ') + call s:SuperSub('texSubscript','_','\\phi\>' ,'ᵩ') + call s:SuperSub('texSubscript','_','\\gamma\>','ᵧ') + call s:SuperSub('texSubscript','_','\\chi\>' ,'ᵪ') + + delfun s:SuperSub + endif + + " Accented characters and Ligatures: {{{2 + if s:tex_conceal =~# 'a' + if b:tex_stylish + syn match texAccent "\\[bcdvuH][^a-zA-Z@]"me=e-1 + syn match texLigature "\\\([ijolL]\|ae\|oe\|ss\|AA\|AE\|OE\)[^a-zA-Z@]"me=e-1 + syn match texLigature '--' + syn match texLigature '---' + else + fun! s:Accents(chr,...) + let i= 1 + for accent in ["`","\\'","^",'"','\~','\.','=',"c","H","k","r","u","v"] + if i > a:0 + break + endif + if strlen(a:{i}) == 0 || a:{i} == ' ' || a:{i} == '?' + let i= i + 1 + continue + endif + if accent =~# '\a' + exe "syn match texAccent '".'\\'.accent.'\(\s*{'.a:chr.'}\|\s\+'.a:chr.'\)'."' conceal cchar=".a:{i} + else + exe "syn match texAccent '".'\\'.accent.'\s*\({'.a:chr.'}\|'.a:chr.'\)'."' conceal cchar=".a:{i} + endif + let i= i + 1 + endfor + endfun + " \` \' \^ \" \~ \. \= \c \H \k \r \u \v + call s:Accents('a','à','á','â','ä','ã','ȧ','ā',' ',' ','ą','å','ă','ǎ') + call s:Accents('A','À','Á','Â','Ä','Ã','Ȧ','Ā',' ',' ','Ą','Å','Ă','Ǎ') + call s:Accents('c',' ','ć','ĉ',' ',' ','ċ',' ','ç',' ',' ',' ',' ','č') + call s:Accents('C',' ','Ć','Ĉ',' ',' ','Ċ',' ','Ç',' ',' ',' ',' ','Č') + call s:Accents('d',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','ď') + call s:Accents('D',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','Ď') + call s:Accents('e','è','é','ê','ë','ẽ','ė','ē','ȩ',' ','ę',' ','ĕ','ě') + call s:Accents('E','È','É','Ê','Ë','Ẽ','Ė','Ē','Ȩ',' ','Ę',' ','Ĕ','Ě') + call s:Accents('g',' ','ǵ','ĝ',' ',' ','ġ',' ','ģ',' ',' ',' ','ğ','ǧ') + call s:Accents('G',' ','Ǵ','Ĝ',' ',' ','Ġ',' ','Ģ',' ',' ',' ','Ğ','Ǧ') + call s:Accents('h',' ',' ','ĥ',' ',' ',' ',' ',' ',' ',' ',' ',' ','ȟ') + call s:Accents('H',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','Ȟ') + call s:Accents('i','ì','í','î','ï','ĩ','į','ī',' ',' ','į',' ','ĭ','ǐ') + call s:Accents('I','Ì','Í','Î','Ï','Ĩ','İ','Ī',' ',' ','Į',' ','Ĭ','Ǐ') + call s:Accents('J',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','ǰ') + call s:Accents('k',' ',' ',' ',' ',' ',' ',' ','ķ',' ',' ',' ',' ','ǩ') + call s:Accents('K',' ',' ',' ',' ',' ',' ',' ','Ķ',' ',' ',' ',' ','Ǩ') + call s:Accents('l',' ','ĺ','ľ',' ',' ',' ',' ','ļ',' ',' ',' ',' ','ľ') + call s:Accents('L',' ','Ĺ','Ľ',' ',' ',' ',' ','Ļ',' ',' ',' ',' ','Ľ') + call s:Accents('n',' ','ń',' ',' ','ñ',' ',' ','ņ',' ',' ',' ',' ','ň') + call s:Accents('N',' ','Ń',' ',' ','Ñ',' ',' ','Ņ',' ',' ',' ',' ','Ň') + call s:Accents('o','ò','ó','ô','ö','õ','ȯ','ō',' ','ő','ǫ',' ','ŏ','ǒ') + call s:Accents('O','Ò','Ó','Ô','Ö','Õ','Ȯ','Ō',' ','Ő','Ǫ',' ','Ŏ','Ǒ') + call s:Accents('r',' ','ŕ',' ',' ',' ',' ',' ','ŗ',' ',' ',' ',' ','ř') + call s:Accents('R',' ','Ŕ',' ',' ',' ',' ',' ','Ŗ',' ',' ',' ',' ','Ř') + call s:Accents('s',' ','ś','ŝ',' ',' ',' ',' ','ş',' ','ȿ',' ',' ','š') + call s:Accents('S',' ','Ś','Ŝ',' ',' ',' ',' ','Ş',' ',' ',' ',' ','Š') + call s:Accents('t',' ',' ',' ',' ',' ',' ',' ','ţ',' ',' ',' ',' ','ť') + call s:Accents('T',' ',' ',' ',' ',' ',' ',' ','Ţ',' ',' ',' ',' ','Ť') + call s:Accents('u','ù','ú','û','ü','ũ',' ','ū',' ','ű','ų','ů','ŭ','ǔ') + call s:Accents('U','Ù','Ú','Û','Ü','Ũ',' ','Ū',' ','Ű','Ų','Ů','Ŭ','Ǔ') + call s:Accents('w',' ',' ','ŵ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ') + call s:Accents('W',' ',' ','Ŵ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ') + call s:Accents('y','ỳ','ý','ŷ','ÿ','ỹ',' ',' ',' ',' ',' ',' ',' ',' ') + call s:Accents('Y','Ỳ','Ý','Ŷ','Ÿ','Ỹ',' ',' ',' ',' ',' ',' ',' ',' ') + call s:Accents('z',' ','ź',' ',' ',' ','ż',' ',' ',' ',' ',' ',' ','ž') + call s:Accents('Z',' ','Ź',' ',' ',' ','Ż',' ',' ',' ',' ',' ',' ','Ž') + call s:Accents('\\i','ì','í','î','ï','ĩ','į',' ',' ',' ',' ',' ','ĭ',' ') + " \` \' \^ \" \~ \. \= \c \H \k \r \u \v + delfun s:Accents + syn match texAccent '\\aa\>' conceal cchar=å + syn match texAccent '\\AA\>' conceal cchar=Å + syn match texAccent '\\o\>' conceal cchar=ø + syn match texAccent '\\O\>' conceal cchar=Ø + syn match texLigature '\\AE\>' conceal cchar=Æ + syn match texLigature '\\ae\>' conceal cchar=æ + syn match texLigature '\\oe\>' conceal cchar=œ + syn match texLigature '\\OE\>' conceal cchar=Œ + syn match texLigature '\\ss\>' conceal cchar=ß + syn match texLigature '--' conceal cchar=– + syn match texLigature '---' conceal cchar=— + endif + endif +endif + +" --------------------------------------------------------------------- +" LaTeX synchronization: {{{1 +syn sync maxlines=200 +syn sync minlines=50 + +syn sync match texSyncStop groupthere NONE "%stopzone\>" + +" Synchronization: {{{1 +" The $..$ and $$..$$ make for impossible sync patterns +" (one can't tell if a "$$" starts or stops a math zone by itself) +" The following grouptheres coupled with minlines above +" help improve the odds of good syncing. +if !exists("g:tex_no_math") + syn sync match texSyncMathZoneA groupthere NONE "\\end{abstract}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{center}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{description}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{enumerate}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{itemize}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{table}" + syn sync match texSyncMathZoneA groupthere NONE "\\end{tabular}" + syn sync match texSyncMathZoneA groupthere NONE "\\\(sub\)*section\>" +endif + +" --------------------------------------------------------------------- +" Highlighting: {{{1 + +" Define the default highlighting. {{{1 +if !exists("skip_tex_syntax_inits") + + " TeX highlighting groups which should share similar highlighting + if !exists("g:tex_no_error") + if !exists("g:tex_no_math") + hi def link texBadMath texError + hi def link texBadPar texBadMath + hi def link texMathDelimBad texError + hi def link texMathError texError + if !b:tex_stylish + hi def link texOnlyMath texError + endif + endif + hi def link texError Error + endif + + hi def link texBoldStyle Bold + hi def link texItalStyle Italic + hi def link texBoldItalStyle BoldItalic + hi def link texItalBoldStyle BoldItalic + hi def link texEmphStyle texItalStyle + hi def link texCite texRefZone + hi def link texDefCmd texDef + hi def link texDefName texDef + hi def link texDocType texCmdName + hi def link texDocTypeArgs texCmdArgs + hi def link texInputFileOpt texCmdArgs + hi def link texInputCurlies texDelimiter + hi def link texLigature texSpecialChar + if !exists("g:tex_no_math") + hi def link texMathDelimSet1 texMathDelim + hi def link texMathDelimSet2 texMathDelim + hi def link texMathDelimKey texMathDelim + hi def link texMathMatcher texMath + hi def link texAccent texStatement + hi def link texGreek texStatement + hi def link texSuperscript texStatement + hi def link texSubscript texStatement + hi def link texSuperscripts texSuperscript + hi def link texSubscripts texSubscript + hi def link texMathSymbol texStatement + hi def link texMathZoneV texMath + hi def link texMathZoneW texMath + hi def link texMathZoneX texMath + hi def link texMathZoneY texMath + hi def link texMathZoneV texMath + hi def link texMathZoneZ texMath + endif + hi def link texBeginEnd texCmdName + hi def link texBeginEndName texSection + hi def link texSpaceCode texStatement + hi def link texStyleStatement texStatement + hi def link texTypeSize texType + hi def link texTypeStyle texType + + " Basic TeX highlighting groups + hi def link texCmdArgs Number + hi def link texCmdName Statement + hi def link texComment Comment + hi def link texDef Statement + hi def link texDefParm Special + hi def link texDelimiter Delimiter + hi def link texEnvArgs Number + hi def link texInput Special + hi def link texInputFile Special + hi def link texLength Number + hi def link texMath Special + hi def link texMathDelim Statement + hi def link texMathOper Operator + hi def link texNewCmd Statement + hi def link texNewEnv Statement + hi def link texOption Number + hi def link texRefZone Special + hi def link texSection PreCondit + hi def link texSpaceCodeChar Special + hi def link texSpecialChar SpecialChar + hi def link texStatement Statement + hi def link texString String + hi def link texTodo Todo + hi def link texType Type + hi def link texZone PreCondit + +endif + +" Cleanup: {{{1 +delc TexFold +unlet s:extfname +let b:current_syntax = "tex" +let &cpo = s:keepcpo +unlet s:keepcpo +" vim: ts=8 fdm=marker diff --git a/git/usr/share/vim/vim92/syntax/texinfo.vim b/git/usr/share/vim/vim92/syntax/texinfo.vim new file mode 100644 index 0000000000000000000000000000000000000000..79a4dfe8217e29082e1bdb4ecd4d6a407f1f3579 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/texinfo.vim @@ -0,0 +1,46 @@ +" Vim syntax file +" Language: Texinfo (documentation format) +" Maintainer: Robert Dodier +" Latest Revision: 2021-12-15 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match texinfoControlSequence display '\(@end [a-zA-Z@]\+\|@[a-zA-Z@]\+\)' + +syn match texinfoComment display '^\s*\(@comment\|@c\)\>.*$' + +syn region texinfoCode matchgroup=texinfoControlSequence start="@code{" end="}" contains=ALL +syn region texinfoVerb matchgroup=texinfoControlSequence start="@verb{" end="}" contains=ALL + +syn region texinfoArgument matchgroup=texinfoBrace start="{" end="}" contains=ALLBUT + +syn region texinfoExample matchgroup=texinfoControlSequence start="^@example\s*$" end="^@end example\s*$" contains=ALL + +syn region texinfoVerbatim matchgroup=texinfoControlSequence start="^@verbatim\s*$" end="^@end verbatim\s*$" + +syn region texinfoMenu matchgroup=texinfoControlSequence start="^@menu\s*$" end="^@end menu\s*$" + +if exists("g:texinfo_delimiters") + syn match texinfoDelimiter display '[][{}]' +endif + +hi def link texinfoDelimiter Delimiter +hi def link texinfoComment Comment +hi def link texinfoControlSequence Identifier +hi def link texinfoBrace Operator +hi def link texinfoArgument Special +hi def link texinfoExample String +hi def link texinfoVerbatim String +hi def link texinfoVerb String +hi def link texinfoCode String +hi def link texinfoMenu String + +let b:current_syntax = "texinfo" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/texmf.vim b/git/usr/share/vim/vim92/syntax/texmf.vim new file mode 100644 index 0000000000000000000000000000000000000000..d1268faff747eae30fa75ebf929af4e0c75fc808 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/texmf.vim @@ -0,0 +1,74 @@ +" Vim syntax file +" This is a GENERATED FILE. Please always refer to source file at the URI below. +" Language: Web2C TeX texmf.cnf configuration file +" Maintainer: David Ne\v{c}as (Yeti) +" Last Change: 2001-05-13 +" URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match + +" Comments +syn match texmfComment "%..\+$" contains=texmfTodo +syn match texmfComment "%\s*$" contains=texmfTodo +syn keyword texmfTodo TODO FIXME XXX NOT contained + +" Constants and parameters +syn match texmfPassedParameter "[-+]\=%\w\W" +syn match texmfPassedParameter "[-+]\=%\w$" +syn match texmfNumber "\<\d\+\>" +syn match texmfVariable "\$\(\w\k*\|{\w\k*}\)" +syn match texmfSpecial +\\"\|\\$+ +syn region texmfString start=+"+ end=+"+ skip=+\\"\\\\+ contains=texmfVariable,texmfSpecial,texmfPassedParameter + +" Assignments +syn match texmfLHSStart "^\s*\w\k*" nextgroup=texmfLHSDot,texmfEquals +syn match texmfLHSVariable "\w\k*" contained nextgroup=texmfLHSDot,texmfEquals +syn match texmfLHSDot "\." contained nextgroup=texmfLHSVariable +syn match texmfEquals "\s*=" contained + +" Specialities +syn match texmfComma "," contained +syn match texmfColons ":\|;" +syn match texmfDoubleExclam "!!" contained + +" Catch errors caused by wrong parenthesization +syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent +syn match texmfBraceError "}" + +" Define the default highlighting + +hi def link texmfComment Comment +hi def link texmfTodo Todo + +hi def link texmfPassedParameter texmfVariable +hi def link texmfVariable Identifier + +hi def link texmfNumber Number +hi def link texmfString String + +hi def link texmfLHSStart texmfLHS +hi def link texmfLHSVariable texmfLHS +hi def link texmfLHSDot texmfLHS +hi def link texmfLHS Type + +hi def link texmfEquals Normal + +hi def link texmfBraceBrace texmfDelimiter +hi def link texmfComma texmfDelimiter +hi def link texmfColons texmfDelimiter +hi def link texmfDelimiter Preproc + +hi def link texmfDoubleExclam Statement +hi def link texmfSpecial Special + +hi def link texmfBraceError texmfError +hi def link texmfError Error + + +let b:current_syntax = "texmf" diff --git a/git/usr/share/vim/vim92/syntax/tf.vim b/git/usr/share/vim/vim92/syntax/tf.vim new file mode 100644 index 0000000000000000000000000000000000000000..df6adcf81960b899e4e1a54d6d221d45f9d09640 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tf.vim @@ -0,0 +1,196 @@ +" Vim syntax file +" Language: tf +" Maintainer: Lutz Eymers +" URL: http://www.isp.de/data/tf.vim +" Email: send syntax_vim.tgz +" Last Change: 2001 May 10 +" +" Options lite_minlines = x to sync at least x lines backwards + +" Remove any old syntax stuff hanging around + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match + +if !exists("main_syntax") + let main_syntax = 'tf' +endif + +" Special global variables +syn keyword tfVar HOME LANG MAIL SHELL TERM TFHELP TFLIBDIR TFLIBRARY TZ contained +syn keyword tfVar background backslash contained +syn keyword tfVar bamf bg_output borg clearfull cleardone clock connect contained +syn keyword tfVar emulation end_color gag gethostbyname gpri hook hilite contained +syn keyword tfVar hiliteattr histsize hpri insert isize istrip kecho contained +syn keyword tfVar kprefix login lp lpquote maildelay matching max_iter contained +syn keyword tfVar max_recur mecho more mprefix oldslash prompt_sec contained +syn keyword tfVar prompt_usec proxy_host proxy_port ptime qecho qprefix contained +syn keyword tfVar quite quitdone redef refreshtime scroll shpause snarf sockmload contained +syn keyword tfVar start_color tabsize telopt sub time_format visual contained +syn keyword tfVar watch_dog watchname wordpunct wrap wraplog wrapsize contained +syn keyword tfVar wrapspace contained + +" Worldvar +syn keyword tfWorld world_name world_character world_password world_host contained +syn keyword tfWorld world_port world_mfile world_type contained + +" Number +syn match tfNumber "-\=\<\d\+\>" + +" Float +syn match tfFloat "\(-\=\<\d+\|-\=\)\.\d\+\>" + +" Operator +syn match tfOperator "[-+=?:&|!]" +syn match tfOperator "/[^*~@]"he=e-1 +syn match tfOperator ":=" +syn match tfOperator "[^/%]\*"hs=s+1 +syn match tfOperator "$\+[([{]"he=e-1,me=e-1 +syn match tfOperator "\^\[\+"he=s+1 contains=tfSpecialCharEsc + +" Relational +syn match tfRelation "&&" +syn match tfRelation "||" +syn match tfRelation "[<>/!=]=" +syn match tfRelation "[<>]" +syn match tfRelation "[!=]\~" +syn match tfRelation "[=!]/" + + +" Readonly Var +syn match tfReadonly "[#*]" contained +syn match tfReadonly "\<-\=L\=\d\{-}\>" contained +syn match tfReadonly "\" contained +syn match tfReadonly "\" contained + +" Identifier +syn match tfIdentifier "%\+[a-zA-Z_#*-0-9]\w*" contains=tfVar,tfReadonly +syn match tfIdentifier "%\+[{]"he=e-1,me=e-1 +syn match tfIdentifier "\$\+{[a-zA-Z_#*-0-9]\w*}" contains=tfWorld + +" Function names +syn keyword tfFunctions ascii char columns echo filename ftime fwrite getopts +syn keyword tfFunctions getpid idle kbdel kbgoto kbhead kblen kbmatch kbpoint +syn keyword tfFunctions kbtail kbwordleft kbwordright keycode lines mod +syn keyword tfFunctions moresize pad rand read regmatch send strcat strchr +syn keyword tfFunctions strcmp strlen strncmp strrchr strrep strstr substr +syn keyword tfFunctions systype time tolower toupper + +syn keyword tfStatement addworld bamf beep bind break cat changes connect contained +syn keyword tfStatement dc def dokey echo edit escape eval export expr fg for contained +syn keyword tfStatement gag getfile grab help hilite histsize hook if input contained +syn keyword tfStatement kill lcd let list listsockets listworlds load contained +syn keyword tfStatement localecho log nohilite not partial paste ps purge contained +syn keyword tfStatement purgeworld putfile quit quote recall recordline save contained +syn keyword tfStatement saveworld send sh shift sub substitute contained +syn keyword tfStatement suspend telnet test time toggle trig trigger unbind contained +syn keyword tfStatement undef undefn undeft unhook untrig unworld contained +syn keyword tfStatement version watchdog watchname while world contained + +" Hooks +syn keyword tfHook ACTIVITY BACKGROUND BAMF CONFAIL CONFLICT CONNECT DISCONNECT +syn keyword tfHook KILL LOAD LOADFAIL LOG LOGIN MAIL MORE PENDING PENDING +syn keyword tfHook PROCESS PROMPT PROXY REDEF RESIZE RESUME SEND SHADOW SHELL +syn keyword tfHook SIGHUP SIGTERM SIGUSR1 SIGUSR2 WORLD + +" Conditional +syn keyword tfConditional if endif then else elseif contained + +" Repeat +syn keyword tfRepeat while do done repeat for contained + +" Statement +syn keyword tfStatement break quit contained + +" Include +syn keyword tfInclude require load save loaded contained + +" Define +syn keyword tfDefine bind unbind def undef undefn undefn purge hook unhook trig untrig contained +syn keyword tfDefine set unset setenv contained + +" Todo +syn keyword tfTodo TODO Todo todo contained + +" SpecialChar +syn match tfSpecialChar "\\[abcfnrtyv\\]" contained +syn match tfSpecialChar "\\\d\{3}" contained contains=tfOctalError +syn match tfSpecialChar "\\x[0-9a-fA-F]\{2}" contained +syn match tfSpecialCharEsc "\[\+" contained + +syn match tfOctalError "[89]" contained + +" Comment +syn region tfComment start="^;" end="$" contains=tfTodo + +" String +syn region tfString oneline matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=tfIdentifier,tfSpecialChar,tfEscape +syn region tfString matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=tfIdentifier,tfSpecialChar,tfEscape + +syn match tfParentError "[)}\]]" + +" Parents +syn region tfParent matchgroup=Delimiter start="(" end=")" contains=ALLBUT,tfReadonly +syn region tfParent matchgroup=Delimiter start="\[" end="\]" contains=ALL +syn region tfParent matchgroup=Delimiter start="{" end="}" contains=ALL + +syn match tfEndCommand "%%\{-};" +syn match tfJoinLines "\\$" + +" Types + +syn match tfType "/[a-zA-Z_~@][a-zA-Z0-9_]*" contains=tfConditional,tfRepeat,tfStatement,tfInclude,tfDefine,tfStatement + +" Catch /quote .. ' +syn match tfQuotes "/quote .\{-}'" contains=ALLBUT,tfString +" Catch $(/escape ) +syn match tfEscape "(/escape .*)" + +" sync +if exists("tf_minlines") + exec "syn sync minlines=" . tf_minlines +else + syn sync minlines=100 +endif + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tfComment Comment +hi def link tfString String +hi def link tfNumber Number +hi def link tfFloat Float +hi def link tfIdentifier Identifier +hi def link tfVar Identifier +hi def link tfWorld Identifier +hi def link tfReadonly Identifier +hi def link tfHook Identifier +hi def link tfFunctions Function +hi def link tfRepeat Repeat +hi def link tfConditional Conditional +hi def link tfLabel Label +hi def link tfStatement Statement +hi def link tfType Type +hi def link tfInclude Include +hi def link tfDefine Define +hi def link tfSpecialChar SpecialChar +hi def link tfSpecialCharEsc SpecialChar +hi def link tfParentError Error +hi def link tfTodo Todo +hi def link tfEndCommand Delimiter +hi def link tfJoinLines Delimiter +hi def link tfOperator Operator +hi def link tfRelation Operator + + +let b:current_syntax = "tf" + +if main_syntax == 'tf' + unlet main_syntax +endif + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/thrift.vim b/git/usr/share/vim/vim92/syntax/thrift.vim new file mode 100644 index 0000000000000000000000000000000000000000..502e98852a2ee51385498eca117b1976161ccfad --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/thrift.vim @@ -0,0 +1,74 @@ +" Vim syntax file +" Language: Thrift +" Original Author: Martin Smith +" Maintainer: Yinzuo Jiang +" Last Change: 2024/07/29 +" https://github.com/apache/thrift/blob/master/contrib/thrift.vim +" +" Licensed to the Apache Software Foundation (ASF) under one +" or more contributor license agreements. See the NOTICE file +" distributed with this work for additional information +" regarding copyright ownership. The ASF licenses this file +" to you under the Apache License, Version 2.0 (the +" "License"); you may not use this file except in compliance +" with the License. You may obtain a copy of the License at +" +" http://www.apache.org/licenses/LICENSE-2.0 +" +" Unless required by applicable law or agreed to in writing, +" software distributed under the License is distributed on an +" "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +" KIND, either express or implied. See the License for the +" specific language governing permissions and limitations +" under the License. +" + +if exists("b:current_syntax") + finish +endif + +" Todo +syn keyword thriftTodo TODO todo FIXME fixme XXX xxx contained + +" Comments +syn match thriftComment "#.*" contains=thriftTodo +syn region thriftComment start="/\*" end="\*/" contains=thriftTodo +syn match thriftComment "//.\{-}\(?>\|$\)\@=" + +" String +syn region thriftStringDouble matchgroup=None start=+"+ end=+"+ + +" Number +syn match thriftNumber "-\=\<\d\+\>" contained + +" Keywords +syn keyword thriftKeyword namespace +syn keyword thriftKeyword xsd_all xsd_optional xsd_nillable xsd_attrs +syn keyword thriftKeyword include cpp_include cpp_type const optional required +syn keyword thriftBasicTypes void bool byte i8 i16 i32 i64 double string binary +syn keyword thriftStructure map list set struct typedef exception enum throws union + +" Special +syn match thriftSpecial "\d\+:" + +" Structure +syn keyword thriftStructure service oneway extends +"async" { return tok_async; } +"exception" { return tok_xception; } +"extends" { return tok_extends; } +"throws" { return tok_throws; } +"service" { return tok_service; } +"enum" { return tok_enum; } +"const" { return tok_const; } + +hi def link thriftComment Comment +hi def link thriftKeyword Special +hi def link thriftBasicTypes Type +hi def link thriftStructure StorageClass +hi def link thriftTodo Todo +hi def link thriftString String +hi def link thriftNumber Number +hi def link thriftSpecial Special +hi def link thriftStructure Structure + +let b:current_syntax = "thrift" diff --git a/git/usr/share/vim/vim92/syntax/tiasm.vim b/git/usr/share/vim/vim92/syntax/tiasm.vim new file mode 100644 index 0000000000000000000000000000000000000000..c79596bdfe008abad8b450600d9ce67ec605aa63 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tiasm.vim @@ -0,0 +1,102 @@ +" Vim syntax file +" Language: TI linear assembly language +" Document: https://downloads.ti.com/docs/esd/SPRUI03B/#SPRUI03B_HTML/assembler-description.html +" Maintainer: Wu, Zhenyu +" Last Change: 2025 Jan 08 + +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" storage types +syn match tiasmType "\.bits" +syn match tiasmType "\.byte" +syn match tiasmType "\.char" +syn match tiasmType "\.cstring" +syn match tiasmType "\.double" +syn match tiasmType "\.field" +syn match tiasmType "\.float" +syn match tiasmType "\.half" +syn match tiasmType "\.int" +syn match tiasmType "\.long" +syn match tiasmType "\.short" +syn match tiasmType "\.string" +syn match tiasmType "\.ubyte" +syn match tiasmType "\.uchar" +syn match tiasmType "\.uhalf" +syn match tiasmType "\.uint" +syn match tiasmType "\.ulong" +syn match tiasmType "\.ushort" +syn match tiasmType "\.uword" +syn match tiasmType "\.word" + +syn match tiasmIdentifier "[a-z_][a-z0-9_]*" + +syn match tiasmDecimal "\<[1-9]\d*\>" display +syn match tiasmOctal "\<0[0-7][0-7]\+\>\|\<[0-7]\+[oO]\>" display +syn match tiasmHexadecimal "\<0[xX][0-9a-fA-F]\+\>\|\<[0-9][0-9a-fA-F]*[hH]\>" display +syn match tiasmBinary "\<0[bB][0-1]\+\>\|\<[01]\+[bB]\>" display + +syn match tiasmFloat "\<\d\+\.\d*\%(e[+-]\=\d\+\)\=\>" display +syn match tiasmFloat "\<\d\%(e[+-]\=\d\+\)\>" display + +syn match tiasmCharacter "'.'\|''\|'[^']'" + +syn region tiasmString start="\"" end="\"" skip="\"\"" + +syn match tiasmFunction "\$[a-zA-Z_][a-zA-Z_0-9]*\ze(" + +syn keyword tiasmTodo contained TODO FIXME XXX NOTE +syn region tiasmComment start=";" end="$" keepend contains=tiasmTodo,@Spell +syn match tiasmComment "^[*!].*" contains=tiasmTodo,@Spell +syn match tiasmLabel "^[^ *!;][^ :]*" + +syn match tiasmInclude "\.include" +syn match tiasmCond "\.if" +syn match tiasmCond "\.else" +syn match tiasmCond "\.endif" +syn match tiasmMacro "\.macro" +syn match tiasmMacro "\.endm" + +syn match tiasmDirective "\.[A-Za-z][0-9A-Za-z-_]*" + +syn case match + +hi def link tiasmLabel Label +hi def link tiasmComment Comment +hi def link tiasmTodo Todo +hi def link tiasmDirective Statement + +hi def link tiasmInclude Include +hi def link tiasmCond PreCondit +hi def link tiasmMacro Macro + +if exists('g:tiasm_legacy_syntax_groups') + hi def link hexNumber Number + hi def link decNumber Number + hi def link octNumber Number + hi def link binNumber Number + hi def link tiasmHexadecimal hexNumber + hi def link tiasmDecimal decNumber + hi def link tiasmOctal octNumber + hi def link tiasmBinary binNumber +else + hi def link tiasmHexadecimal Number + hi def link tiasmDecimal Number + hi def link tiasmOctal Number + hi def link tiasmBinary Number +endif +hi def link tiasmFloat Float + +hi def link tiasmString String +hi def link tiasmStringEscape Special +hi def link tiasmCharacter Character +hi def link tiasmCharacterEscape Special + +hi def link tiasmIdentifier Identifier +hi def link tiasmType Type +hi def link tiasmFunction Function + +let b:current_syntax = "tiasm" diff --git a/git/usr/share/vim/vim92/syntax/tidy.vim b/git/usr/share/vim/vim92/syntax/tidy.vim new file mode 100644 index 0000000000000000000000000000000000000000..7ffda90e55decfe1e966b8c0c50ea568a344fa9b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tidy.vim @@ -0,0 +1,276 @@ +" Vim syntax file +" Language: HMTL Tidy Configuration +" Maintainer: Doug Kearns +" Last Change: 2020 Sep 4 + +" Preamble {{{1 +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn iskeyword @,48-57,-,_ + +" Values {{{1 +syn match tidyWordSeparator contained ",\|\s" nextgroup=tidyWord skipwhite skipnl +syn match tidyMuteIDSeparator contained ",\|\s" nextgroup=tidyMuteID skipwhite skipnl + +syn case ignore +syn keyword tidyBoolean contained t[rue] f[alse] y[es] n[o] 1 0 +syn keyword tidyAutoBoolean contained t[rue] f[alse] y[es] n[o] 1 0 auto +syn case match +syn keyword tidyCustomTags contained no blocklevel empty inline pre +syn keyword tidyDoctype contained html5 omit auto strict loose transitional user +syn keyword tidyEncoding contained raw ascii latin0 latin1 utf8 iso2022 mac win1252 ibm858 utf16le utf16be utf16 big5 shiftjis +syn keyword tidyNewline contained LF CRLF CR +syn match tidyNumber contained "\<\d\+\>" +syn keyword tidyRepeat contained keep-first keep-last +syn keyword tidySorter contained alpha none +syn region tidyString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline +syn region tidyString contained start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline +" Tag and attribute lists +syn match tidyWord contained "\<\k\+\>:\@!" nextgroup=tidyWordSeparator skipwhite skipnl + +" Mute Message IDs {{{2 +syn keyword tidyMuteID ADDED_MISSING_CHARSET ANCHOR_DUPLICATED + \ ANCHOR_NOT_UNIQUE APOS_UNDEFINED APPLET_MISSING_ALT AREA_MISSING_ALT + \ ASCII_REQUIRES_DESCRIPTION ASSOCIATE_LABELS_EXPLICITLY + \ ASSOCIATE_LABELS_EXPLICITLY_FOR ASSOCIATE_LABELS_EXPLICITLY_ID + \ ATTRIBUTE_IS_NOT_ALLOWED ATTRIBUTE_VALUE_REPLACED + \ ATTR_VALUE_NOT_LCASE AUDIO_MISSING_TEXT_AIFF AUDIO_MISSING_TEXT_AU + \ AUDIO_MISSING_TEXT_RA AUDIO_MISSING_TEXT_RM AUDIO_MISSING_TEXT_SND + \ AUDIO_MISSING_TEXT_WAV BACKSLASH_IN_URI BAD_ATTRIBUTE_VALUE + \ BAD_ATTRIBUTE_VALUE_REPLACED BAD_CDATA_CONTENT BAD_SUMMARY_HTML5 + \ BAD_SURROGATE_LEAD BAD_SURROGATE_PAIR BAD_SURROGATE_TAIL + \ CANT_BE_NESTED COERCE_TO_ENDTAG COLOR_CONTRAST_ACTIVE_LINK + \ COLOR_CONTRAST_LINK COLOR_CONTRAST_TEXT COLOR_CONTRAST_VISITED_LINK + \ CONTENT_AFTER_BODY CUSTOM_TAG_DETECTED DATA_TABLE_MISSING_HEADERS + \ DATA_TABLE_MISSING_HEADERS_COLUMN DATA_TABLE_MISSING_HEADERS_ROW + \ DATA_TABLE_REQUIRE_MARKUP_COLUMN_HEADERS + \ DATA_TABLE_REQUIRE_MARKUP_ROW_HEADERS DISCARDING_UNEXPECTED + \ DOCTYPE_AFTER_TAGS DOCTYPE_MISSING DUPLICATE_FRAMESET + \ ELEMENT_NOT_EMPTY ELEMENT_VERS_MISMATCH_ERROR + \ ELEMENT_VERS_MISMATCH_WARN ENCODING_MISMATCH + \ ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_APPLET + \ ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_EMBED + \ ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_OBJECT + \ ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_SCRIPT ESCAPED_ILLEGAL_URI + \ FILE_CANT_OPEN FILE_CANT_OPEN_CFG FILE_NOT_FILE FIXED_BACKSLASH + \ FOUND_STYLE_IN_BODY FRAME_MISSING_LONGDESC FRAME_MISSING_NOFRAMES + \ FRAME_MISSING_TITLE FRAME_SRC_INVALID FRAME_TITLE_INVALID_NULL + \ FRAME_TITLE_INVALID_SPACES HEADERS_IMPROPERLY_NESTED + \ HEADER_USED_FORMAT_TEXT ID_NAME_MISMATCH ILLEGAL_NESTING + \ ILLEGAL_URI_CODEPOINT ILLEGAL_URI_REFERENCE + \ IMAGE_MAP_SERVER_SIDE_REQUIRES_CONVERSION + \ IMG_ALT_SUSPICIOUS_FILENAME IMG_ALT_SUSPICIOUS_FILE_SIZE + \ IMG_ALT_SUSPICIOUS_PLACEHOLDER IMG_ALT_SUSPICIOUS_TOO_LONG + \ IMG_BUTTON_MISSING_ALT IMG_MAP_CLIENT_MISSING_TEXT_LINKS + \ IMG_MAP_SERVER_REQUIRES_TEXT_LINKS IMG_MISSING_ALT IMG_MISSING_DLINK + \ IMG_MISSING_LONGDESC IMG_MISSING_LONGDESC_DLINK + \ INFORMATION_NOT_CONVEYED_APPLET INFORMATION_NOT_CONVEYED_IMAGE + \ INFORMATION_NOT_CONVEYED_INPUT INFORMATION_NOT_CONVEYED_OBJECT + \ INFORMATION_NOT_CONVEYED_SCRIPT INSERTING_AUTO_ATTRIBUTE + \ INSERTING_TAG INVALID_ATTRIBUTE INVALID_NCR INVALID_SGML_CHARS + \ INVALID_UTF16 INVALID_UTF8 INVALID_XML_ID JOINING_ATTRIBUTE + \ LANGUAGE_INVALID LANGUAGE_NOT_IDENTIFIED + \ LAYOUT_TABLES_LINEARIZE_PROPERLY LAYOUT_TABLE_INVALID_MARKUP + \ LINK_TEXT_MISSING LINK_TEXT_NOT_MEANINGFUL + \ LINK_TEXT_NOT_MEANINGFUL_CLICK_HERE LINK_TEXT_TOO_LONG + \ LIST_USAGE_INVALID_LI LIST_USAGE_INVALID_OL LIST_USAGE_INVALID_UL + \ MALFORMED_COMMENT MALFORMED_COMMENT_DROPPING MALFORMED_COMMENT_EOS + \ MALFORMED_COMMENT_WARN MALFORMED_DOCTYPE METADATA_MISSING + \ METADATA_MISSING_REDIRECT_AUTOREFRESH MISMATCHED_ATTRIBUTE_ERROR + \ MISMATCHED_ATTRIBUTE_WARN MISSING_ATTRIBUTE MISSING_ATTR_VALUE + \ MISSING_DOCTYPE MISSING_ENDTAG_BEFORE MISSING_ENDTAG_FOR + \ MISSING_ENDTAG_OPTIONAL MISSING_IMAGEMAP MISSING_QUOTEMARK + \ MISSING_QUOTEMARK_OPEN MISSING_SEMICOLON MISSING_SEMICOLON_NCR + \ MISSING_STARTTAG MISSING_TITLE_ELEMENT MOVED_STYLE_TO_HEAD + \ MULTIMEDIA_REQUIRES_TEXT NESTED_EMPHASIS NESTED_QUOTATION + \ NEWLINE_IN_URI NEW_WINDOWS_REQUIRE_WARNING_BLANK + \ NEW_WINDOWS_REQUIRE_WARNING_NEW NOFRAMES_CONTENT + \ NOFRAMES_INVALID_CONTENT NOFRAMES_INVALID_LINK + \ NOFRAMES_INVALID_NO_VALUE NON_MATCHING_ENDTAG OBJECT_MISSING_ALT + \ OBSOLETE_ELEMENT OPTION_REMOVED OPTION_REMOVED_APPLIED + \ OPTION_REMOVED_UNAPPLIED POTENTIAL_HEADER_BOLD + \ POTENTIAL_HEADER_ITALICS POTENTIAL_HEADER_UNDERLINE + \ PREVIOUS_LOCATION PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_APPLET + \ PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_EMBED + \ PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_OBJECT + \ PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_SCRIPT PROPRIETARY_ATTRIBUTE + \ PROPRIETARY_ATTR_VALUE PROPRIETARY_ELEMENT REMOVED_HTML5 + \ REMOVE_AUTO_REDIRECT REMOVE_AUTO_REFRESH REMOVE_BLINK_MARQUEE + \ REMOVE_FLICKER_ANIMATED_GIF REMOVE_FLICKER_APPLET + \ REMOVE_FLICKER_EMBED REMOVE_FLICKER_OBJECT REMOVE_FLICKER_SCRIPT + \ REPEATED_ATTRIBUTE REPLACE_DEPRECATED_HTML_APPLET + \ REPLACE_DEPRECATED_HTML_BASEFONT REPLACE_DEPRECATED_HTML_CENTER + \ REPLACE_DEPRECATED_HTML_DIR REPLACE_DEPRECATED_HTML_FONT + \ REPLACE_DEPRECATED_HTML_ISINDEX REPLACE_DEPRECATED_HTML_MENU + \ REPLACE_DEPRECATED_HTML_S REPLACE_DEPRECATED_HTML_STRIKE + \ REPLACE_DEPRECATED_HTML_U REPLACING_ELEMENT REPLACING_UNEX_ELEMENT + \ SCRIPT_MISSING_NOSCRIPT SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_CLICK + \ SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_DOWN + \ SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_MOVE + \ SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_OUT + \ SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_OVER + \ SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_UP SKIPOVER_ASCII_ART + \ SPACE_PRECEDING_XMLDECL STRING_ARGUMENT_BAD STRING_CONTENT_LOOKS + \ STRING_DOCTYPE_GIVEN STRING_MISSING_MALFORMED STRING_MUTING_TYPE + \ STRING_NO_SYSID STRING_UNKNOWN_OPTION + \ STYLESHEETS_REQUIRE_TESTING_LINK + \ STYLESHEETS_REQUIRE_TESTING_STYLE_ATTR + \ STYLESHEETS_REQUIRE_TESTING_STYLE_ELEMENT + \ STYLE_SHEET_CONTROL_PRESENTATION SUSPECTED_MISSING_QUOTE + \ TABLE_MAY_REQUIRE_HEADER_ABBR TABLE_MAY_REQUIRE_HEADER_ABBR_NULL + \ TABLE_MAY_REQUIRE_HEADER_ABBR_SPACES TABLE_MISSING_CAPTION + \ TABLE_MISSING_SUMMARY TABLE_SUMMARY_INVALID_NULL + \ TABLE_SUMMARY_INVALID_PLACEHOLDER TABLE_SUMMARY_INVALID_SPACES + \ TAG_NOT_ALLOWED_IN TEXT_EQUIVALENTS_REQUIRE_UPDATING_APPLET + \ TEXT_EQUIVALENTS_REQUIRE_UPDATING_OBJECT + \ TEXT_EQUIVALENTS_REQUIRE_UPDATING_SCRIPT TOO_MANY_ELEMENTS + \ TOO_MANY_ELEMENTS_IN TRIM_EMPTY_ELEMENT UNESCAPED_AMPERSAND + \ UNEXPECTED_ENDTAG UNEXPECTED_ENDTAG_ERR UNEXPECTED_ENDTAG_IN + \ UNEXPECTED_END_OF_FILE UNEXPECTED_END_OF_FILE_ATTR + \ UNEXPECTED_EQUALSIGN UNEXPECTED_GT UNEXPECTED_QUOTEMARK + \ UNKNOWN_ELEMENT UNKNOWN_ELEMENT_LOOKS_CUSTOM UNKNOWN_ENTITY + \ USING_BR_INPLACE_OF VENDOR_SPECIFIC_CHARS WHITE_IN_URI + \ XML_DECLARATION_DETECTED XML_ID_SYNTAX + \ contained nextgroup=tidyMuteIDSeparator skipwhite skipnl + +" Options {{{1 +syn keyword tidyCustomTagsOption custom-tags contained nextgroup=tidyCustomTagsDelimiter +syn match tidyCustomTagsDelimiter ":" nextgroup=tidyCustomTags contained skipwhite + +syn keyword tidyBooleanOption add-meta-charset add-xml-decl + \ add-xml-pi add-xml-space anchor-as-name ascii-chars + \ assume-xml-procins bare break-before-br clean coerce-endtags + \ decorate-inferred-ul drop-empty-paras drop-empty-elements + \ drop-font-tags drop-proprietary-attributes enclose-block-text + \ enclose-text escape-cdata escape-scripts fix-backslash + \ fix-style-tags fix-uri force-output gdoc gnu-emacs hide-comments + \ hide-endtags indent-attributes indent-cdata indent-with-tabs + \ input-xml join-classes join-styles keep-tabs keep-time language + \ literal-attributes logical-emphasis lower-literals markup + \ merge-emphasis mute-id ncr numeric-entities omit-optional-tags + \ output-html output-xhtml output-xml preserve-entities + \ punctuation-wrap quiet quote-ampersand quote-marks quote-nbsp raw + \ replace-color show-filename show-info show-meta-change show-warnings + \ skip-nested split strict-tags-attributes tidy-mark + \ uppercase-attributes uppercase-tags warn-proprietary-attributes + \ word-2000 wrap-asp wrap-attributes wrap-jste wrap-php + \ wrap-script-literals wrap-sections write-back + \ contained nextgroup=tidyBooleanDelimiter + +syn match tidyBooleanDelimiter ":" nextgroup=tidyBoolean contained skipwhite + +syn keyword tidyAutoBooleanOption fix-bad-comments indent merge-divs merge-spans output-bom show-body-only vertical-space contained nextgroup=tidyAutoBooleanDelimiter +syn match tidyAutoBooleanDelimiter ":" nextgroup=tidyAutoBoolean contained skipwhite + +syn keyword tidyCSSSelectorOption css-prefix contained nextgroup=tidyCSSSelectorDelimiter +syn match tidyCSSSelectorDelimiter ":" nextgroup=tidyCSSSelector contained skipwhite + +syn keyword tidyDoctypeOption doctype contained nextgroup=tidyDoctypeDelimiter +syn match tidyDoctypeDelimiter ":" nextgroup=tidyDoctype,tidyString contained skipwhite + +syn keyword tidyEncodingOption char-encoding input-encoding output-encoding contained nextgroup=tidyEncodingDelimiter +syn match tidyEncodingDelimiter ":" nextgroup=tidyEncoding contained skipwhite + +syn keyword tidyIntegerOption accessibility-check doctype-mode indent-spaces show-errors tab-size wrap contained nextgroup=tidyIntegerDelimiter +syn match tidyIntegerDelimiter ":" nextgroup=tidyNumber contained skipwhite + +syn keyword tidyNameOption slide-style contained nextgroup=tidyNameDelimiter +syn match tidyNameDelimiter ":" nextgroup=tidyName contained skipwhite + +syn keyword tidyNewlineOption newline contained nextgroup=tidyNewlineDelimiter +syn match tidyNewlineDelimiter ":" nextgroup=tidyNewline contained skipwhite + +syn keyword tidyAttributesOption priority-attributes contained nextgroup=tidyAttributesDelimiter +syn match tidyAttributesDelimiter ":" nextgroup=tidyWord contained skipwhite + +syn keyword tidyTagsOption new-blocklevel-tags new-empty-tags new-inline-tags new-pre-tags contained nextgroup=tidyTagsDelimiter +syn match tidyTagsDelimiter ":" nextgroup=tidyWord contained skipwhite + +syn keyword tidyRepeatOption repeated-attributes contained nextgroup=tidyRepeatDelimiter +syn match tidyRepeatDelimiter ":" nextgroup=tidyRepeat contained skipwhite + +syn keyword tidySorterOption sort-attributes contained nextgroup=tidySorterDelimiter +syn match tidySorterDelimiter ":" nextgroup=tidySorter contained skipwhite + +syn keyword tidyStringOption alt-text error-file gnu-emacs-file output-file contained nextgroup=tidyStringDelimiter +syn match tidyStringDelimiter ":" nextgroup=tidyString contained skipwhite + +syn keyword tidyMuteOption mute contained nextgroup=tidyMuteDelimiter +syn match tidyMuteDelimiter ":" nextgroup=tidyMuteID contained skipwhite + +syn cluster tidyOptions contains=tidy.*Option + +" Option line anchor {{{1 +syn match tidyStart "^" nextgroup=@tidyOptions +" Long standing bug - option lines (except the first) with leading whitespace +" are silently ignored. +syn match tidyErrorStart '^\s\+\ze\S' + +" Comments {{{1 +syn match tidyComment "^\s*//.*$" contains=tidyTodo +syn match tidyComment "^\s*#.*$" contains=tidyTodo +syn keyword tidyTodo TODO NOTE FIXME XXX contained + +" Default highlighting {{{1 +hi def link tidyAttributesOption Identifier +hi def link tidyAutoBooleanOption Identifier +hi def link tidyBooleanOption Identifier +hi def link tidyCSSSelectorOption Identifier +hi def link tidyCustomTagsOption Identifier +hi def link tidyDoctypeOption Identifier +hi def link tidyEncodingOption Identifier +hi def link tidyIntegerOption Identifier +hi def link tidyMuteOption Identifier +hi def link tidyNameOption Identifier +hi def link tidyNewlineOption Identifier +hi def link tidyRepeatOption Identifier +hi def link tidySorterOption Identifier +hi def link tidyStringOption Identifier +hi def link tidyTagsOption Identifier + +hi def link tidyAttributesDelimiter Special +hi def link tidyAutoBooleanDelimiter Special +hi def link tidyBooleanDelimiter Special +hi def link tidyCSSSelectorDelimiter Special +hi def link tidyCustomTagsDelimiter Special +hi def link tidyDoctypeDelimiter Special +hi def link tidyEncodingDelimiter Special +hi def link tidyIntegerDelimiter Special +hi def link tidyMuteDelimiter Special +hi def link tidyNameDelimiter Special +hi def link tidyNewlineDelimiter Special +hi def link tidyRepeatDelimiter Special +hi def link tidySorterDelimiter Special +hi def link tidyStringDelimiter Special +hi def link tidyTagsDelimiter Special + +hi def link tidyAutoBoolean Boolean +hi def link tidyBoolean Boolean +hi def link tidyCustomTags Constant +hi def link tidyDoctype Constant +hi def link tidyEncoding Constant +hi def link tidyMuteID Constant +hi def link tidyNewline Constant +hi def link tidyNumber Number +hi def link tidyRepeat Constant +hi def link tidySorter Constant +hi def link tidyString String +hi def link tidyWord Constant + +hi def link tidyComment Comment +hi def link tidyTodo Todo + +hi def link tidyErrorStart Error + +" Postscript {{{1 +let b:current_syntax = "tidy" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 fdm=marker diff --git a/git/usr/share/vim/vim92/syntax/tilde.vim b/git/usr/share/vim/vim92/syntax/tilde.vim new file mode 100644 index 0000000000000000000000000000000000000000..d2a3360d2430cfc83ed2b7dca7127b2b4ffedd5a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tilde.vim @@ -0,0 +1,41 @@ +" Vim syntax file +" This file works only for Vim6.x +" Language: Tilde +" Maintainer: Tobias Rundström +" URL: http://www.tildesoftware.net +" CVS: $Id: tilde.vim,v 1.1 2004/06/13 19:31:51 vimboss Exp $ + +if exists("b:current_syntax") + finish +endif + +"tilde dosent care ... +syn case ignore + +syn match tildeFunction "\~[a-z_0-9]\+"ms=s+1 +syn region tildeParen start="(" end=")" contains=tildeString,tildeNumber,tildeVariable,tildeField,tildeSymtab,tildeFunction,tildeParen,tildeHexNumber,tildeOperator +syn region tildeString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend +syn region tildeString contained start=+'+ skip=+\\\\\|\\"+ end=+'+ keepend +syn match tildeNumber "\d" contained +syn match tildeOperator "or\|and" contained +syn match tildeHexNumber "0x[a-z0-9]\+" contained +syn match tildeVariable "$[a-z_0-9]\+" contained +syn match tildeField "%[a-z_0-9]\+" contained +syn match tildeSymtab "@[a-z_0-9]\+" contained +syn match tildeComment "^#.*" +syn region tildeCurly start=+{+ end=+}+ contained contains=tildeLG,tildeString,tildeNumber,tildeVariable,tildeField,tildeFunction,tildeSymtab,tildeHexNumber +syn match tildeLG "=>" contained + + +hi def link tildeComment Comment +hi def link tildeFunction Operator +hi def link tildeOperator Operator +hi def link tildeString String +hi def link tildeNumber Number +hi def link tildeHexNumber Number +hi def link tildeVariable Identifier +hi def link tildeField Identifier +hi def link tildeSymtab Identifier +hi def link tildeError Error + +let b:current_syntax = "tilde" diff --git a/git/usr/share/vim/vim92/syntax/tli.vim b/git/usr/share/vim/vim92/syntax/tli.vim new file mode 100644 index 0000000000000000000000000000000000000000..b96d4a21192caaa5e8cccac7913398b4ffa550bb --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tli.vim @@ -0,0 +1,58 @@ +" Vim syntax file +" Language: TealInfo source files (*.tli) +" Maintainer: Kurt W. Andrews +" Last Change: 2001 May 10 +" Version: 1.0 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" TealInfo Objects + +syn keyword tliObject LIST POPLIST WINDOW POPWINDOW OUTLINE CHECKMARK GOTO +syn keyword tliObject LABEL IMAGE RECT TRES PASSWORD POPEDIT POPIMAGE CHECKLIST + +" TealInfo Fields + +syn keyword tliField X Y W H BX BY BW BH SX SY FONT BFONT CYCLE DELAY TABS +syn keyword tliField STYLE BTEXT RECORD DATABASE KEY TARGET DEFAULT TEXT +syn keyword tliField LINKS MAXVAL + +" TealInfo Styles + +syn keyword tliStyle INVERTED HORIZ_RULE VERT_RULE NO_SCROLL NO_BORDER BOLD_BORDER +syn keyword tliStyle ROUND_BORDER ALIGN_RIGHT ALIGN_CENTER ALIGN_LEFT_START ALIGN_RIGHT_START +syn keyword tliStyle ALIGN_CENTER_START ALIGN_LEFT_END ALIGN_RIGHT_END ALIGN_CENTER_END +syn keyword tliStyle LOCKOUT BUTTON_SCROLL BUTTON_SELECT STROKE_FIND FILLED REGISTER + +" String and Character constants + +syn match tliSpecial "@" +syn region tliString start=+"+ end=+"+ + +"TealInfo Numbers, identifiers and comments + +syn case ignore +syn match tliNumber "\d*" +syn match tliIdentifier "\<\h\w*\>" +syn match tliComment "#.*" +syn case match + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tliNumber Number +hi def link tliString String +hi def link tliComment Comment +hi def link tliSpecial SpecialChar +hi def link tliIdentifier Identifier +hi def link tliObject Statement +hi def link tliField Type +hi def link tliStyle PreProc + + +let b:current_syntax = "tli" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/tmux.vim b/git/usr/share/vim/vim92/syntax/tmux.vim new file mode 100644 index 0000000000000000000000000000000000000000..4b8454dd51107e79128157416d83ba0e0f103e25 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tmux.vim @@ -0,0 +1,172 @@ +" Language: tmux(1) configuration file +" Version: 3.4 (git-3d8ead8a) +" URL: https://github.com/ericpruitt/tmux.vim/ +" Maintainer: Eric Pruitt +" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause) + +if exists("b:current_syntax") + finish +endif + +" Explicitly change compatibility options to Vim's defaults because this file +" uses line continuations. +let s:original_cpo = &cpo +set cpo&vim + +let b:current_syntax = "tmux" +syntax iskeyword @,48-57,_,192-255,- +syntax case match + +" The values "yes" and "no" are synonyms for "on" and "off", so they do not +" appear in the option table file. +syn keyword tmuxEnums yes no + +syn keyword tmuxTodo FIXME NOTE TODO XXX contained + +syn match tmuxColour /\/ display +syn match tmuxKey /\(C-\|M-\|\^\)\+\S\+/ display +syn match tmuxNumber /\<\d\+\>/ display +syn match tmuxFlags /\s-\a\+/ display +syn match tmuxVariableExpansion /\$\({[A-Za-z_]\w*}\|[A-Za-z_]\w*\)/ display +syn match tmuxControl /\(^\|\s\)%\(if\|elif\|else\|endif\|hidden\)\($\|\s\)/ display +syn match tmuxEscape /\\\(u\x\{4\}\|U\x\{8\}\|\o\{3\}\|[\\ernt$]\)/ display + +" Missing closing bracket. +syn match tmuxInvalidVariableExpansion /\${[^}]*$/ display +" Starts with invalid character. +syn match tmuxInvalidVariableExpansion /\${[^A-Za-z_][^}]*}/ display +syn match tmuxInvalidVariableExpansion /\$[^A-Za-z_{ \t]/ display +" Contains invalid character. +syn match tmuxInvalidVariableExpansion /\${[^}]*[^A-Za-z0-9_}][^}]*}/ display + +syn region tmuxComment start=/#/ skip=/\\\@ 231 && s:i < 235)) ? 15 : "none" + exec "syn match tmuxColour" . s:i . " /\\/ display" +\ " | highlight tmuxColour" . s:i . " ctermfg=" . s:i . " ctermbg=" . s:bg + endfor +endif + +syn keyword tmuxOptions +\ activity-action after-bind-key after-capture-pane after-copy-mode +\ after-display-message after-display-panes after-kill-pane after-list-buffers +\ after-list-clients after-list-keys after-list-panes after-list-sessions +\ after-list-windows after-load-buffer after-lock-server after-new-session +\ after-new-window after-paste-buffer after-pipe-pane after-queue +\ after-refresh-client after-rename-session after-rename-window +\ after-resize-pane after-resize-window after-save-buffer after-select-layout +\ after-select-pane after-select-window after-send-keys after-set-buffer +\ after-set-environment after-set-hook after-set-option after-show-environment +\ after-show-messages after-show-options after-split-window after-unbind-key +\ aggressive-resize alert-activity alert-bell alert-silence allow-passthrough +\ allow-rename allow-set-title alternate-screen assume-paste-time +\ automatic-rename automatic-rename-format backspace base-index bell-action +\ buffer-limit client-active client-attached client-detached client-focus-in +\ client-focus-out client-resized client-session-changed clock-mode-color +\ clock-mode-colour clock-mode-style command-alias command-error copy-command +\ copy-mode-current-match-style copy-mode-mark-style copy-mode-match-style +\ cursor-color cursor-colour cursor-style default-command default-shell +\ default-size default-terminal destroy-unattached detach-on-destroy +\ display-panes-active-color display-panes-active-colour display-panes-color +\ display-panes-colour display-panes-time display-time editor escape-time +\ exit-empty exit-unattached extended-keys fill-character focus-events +\ history-file history-limit key-table lock-after-time lock-command +\ main-pane-height main-pane-width menu-border-lines menu-border-style +\ menu-selected-style menu-style message-command-style message-limit +\ message-line message-style mode-keys mode-style monitor-activity monitor-bell +\ monitor-silence mouse other-pane-height other-pane-width +\ pane-active-border-style pane-base-index pane-border-format +\ pane-border-indicators pane-border-lines pane-border-status pane-border-style +\ pane-colors pane-colours pane-died pane-exited pane-focus-in pane-focus-out +\ pane-mode-changed pane-set-clipboard pane-title-changed popup-border-lines +\ popup-border-style popup-style prefix prefix2 prompt-history-limit +\ remain-on-exit remain-on-exit-format renumber-windows repeat-time +\ scroll-on-clear session-closed session-created session-renamed +\ session-window-changed set-clipboard set-titles set-titles-string +\ silence-action status status-bg status-fg status-format status-interval +\ status-justify status-keys status-left status-left-length status-left-style +\ status-position status-right status-right-length status-right-style +\ status-style synchronize-panes terminal-features terminal-overrides +\ update-environment user-keys visual-activity visual-bell visual-silence +\ window-active-style window-layout-changed window-linked window-pane-changed +\ window-renamed window-resized window-size window-status-activity-style +\ window-status-bell-style window-status-current-format +\ window-status-current-style window-status-format window-status-last-style +\ window-status-separator window-status-style window-style window-unlinked +\ word-separators wrap-search xterm-keys + +syn keyword tmuxCommands +\ attach attach-session bind bind-key break-pane breakp capture-pane capturep +\ choose-buffer choose-client choose-session choose-tree choose-window +\ clear-history clear-prompt-history clearhist clearphist clock-mode +\ command-prompt confirm confirm-before copy-mode customize-mode delete-buffer +\ deleteb detach detach-client display display-menu display-message +\ display-panes display-popup displayp find-window findw has has-session if +\ if-shell info join-pane joinp kill-pane kill-server kill-session kill-window +\ killp killw last last-pane last-window lastp link-window linkw list-buffers +\ list-clients list-commands list-keys list-panes list-sessions list-windows +\ load-buffer loadb lock lock-client lock-server lock-session lockc locks ls +\ lsb lsc lscm lsk lsp lsw menu move-pane move-window movep movew new +\ new-session new-window neww next next-layout next-window nextl paste-buffer +\ pasteb pipe-pane pipep popup prev previous-layout previous-window prevl +\ refresh refresh-client rename rename-session rename-window renamew +\ resize-pane resize-window resizep resizew respawn-pane respawn-window +\ respawnp respawnw rotate-window rotatew run run-shell save-buffer saveb +\ select-layout select-pane select-window selectl selectp selectw send +\ send-keys send-prefix server-access server-info set set-buffer +\ set-environment set-hook set-option set-window-option setb setenv setw show +\ show-buffer show-environment show-hooks show-messages show-options +\ show-prompt-history show-window-options showb showenv showmsgs showphist +\ showw source source-file split-pane split-window splitp splitw start +\ start-server suspend-client suspendc swap-pane swap-window swapp swapw +\ switch-client switchc unbind unbind-key unlink-window unlinkw wait wait-for + +syn keyword tmuxEnums +\ absolute-centre all always any arrows bar blinking-bar blinking-block +\ blinking-underline block both bottom centre color colour current default +\ double emacs external failed heavy keep-group keep-last largest latest left +\ manual next no-detached none number off on other padded previous right +\ rounded simple single smallest top underline vi + +let &cpo = s:original_cpo +unlet! s:original_cpo s:bg s:i diff --git a/git/usr/share/vim/vim92/syntax/toml.vim b/git/usr/share/vim/vim92/syntax/toml.vim new file mode 100644 index 0000000000000000000000000000000000000000..c91c1c3ba07bc10553a3dc07a33038c422d54841 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/toml.vim @@ -0,0 +1,82 @@ +" Vim syntax file +" Language: TOML +" Homepage: https://github.com/cespare/vim-toml +" Maintainer: Aman Verma +" Previous Maintainer: Caleb Spare +" Last Change: Mar 10, 2026 + +if exists('b:current_syntax') + finish +endif + +syn match tomlEscape /\\[betnfr"/\\]/ display contained +syn match tomlEscape /\\x\x\{2}/ contained +syn match tomlEscape /\\u\x\{4}/ contained +syn match tomlEscape /\\U\x\{8}/ contained +syn match tomlLineEscape /\\$/ contained + +" Basic strings +syn region tomlString oneline start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=tomlEscape +" Multi-line basic strings +syn region tomlString start=/"""/ end=/"""/ contains=tomlEscape,tomlLineEscape +" Literal strings +syn region tomlString oneline start=/'/ end=/'/ +" Multi-line literal strings +syn region tomlString start=/'''/ end=/'''/ + +syn match tomlInteger /[+-]\=[1-9]\(_\=\d\)*/ display +syn match tomlInteger /[+-]\=0/ display +syn match tomlInteger /[+-]\=0x[[:xdigit:]]\(_\=[[:xdigit:]]\)*/ display +syn match tomlInteger /[+-]\=0o[0-7]\(_\=[0-7]\)*/ display +syn match tomlInteger /[+-]\=0b[01]\(_\=[01]\)*/ display +syn match tomlInteger /[+-]\=\(inf\|nan\)/ display + +syn match tomlFloat /[+-]\=\d\(_\=\d\)*\.\d\+/ display +syn match tomlFloat /[+-]\=\d\(_\=\d\)*\(\.\d\(_\=\d\)*\)\=[eE][+-]\=\d\(_\=\d\)*/ display + +syn match tomlBoolean /\<\%(true\|false\)\>/ display + +" https://tools.ietf.org/html/rfc3339 +syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}/ display +syn match tomlDate /\d\{2\}:\d\{2\}\%(:\d\{2\}\%(\.\d\+\)\?\)\?/ display +syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}[Tt ]\d\{2\}:\d\{2\}\%(:\d\{2\}\%(\.\d\+\)\?\)\?\%([Zz]\|[+-]\d\{2\}:\d\{2\}\)\?/ display + +syn match tomlDotInKey /\v[^.]+\zs\./ contained display +syn match tomlKey /\v(^|[{,])\s*\zs[[:alnum:]._-]+\ze\s*\=/ contains=tomlDotInKey display +syn region tomlKeyDq oneline start=/\v(^|[{,])\s*\zs"/ end=/"\ze\s*=/ contains=tomlEscape +syn region tomlKeySq oneline start=/\v(^|[{,])\s*\zs'/ end=/'\ze\s*=/ + +syn region tomlTable oneline start=/^\s*\[[^\[]/ end=/\]/ contains=tomlKey,tomlKeyDq,tomlKeySq,tomlDotInKey + +syn region tomlTableArray oneline start=/^\s*\[\[/ end=/\]\]/ contains=tomlKey,tomlKeyDq,tomlKeySq,tomlDotInKey + +syn region tomlKeyValueArray start=/=\s*\[\zs/ end=/\]/ contains=@tomlValue + +syn region tomlArray start=/\[/ end=/\]/ contains=@tomlValue contained + +syn cluster tomlValue contains=tomlArray,tomlString,tomlInteger,tomlFloat,tomlBoolean,tomlDate,tomlComment + +syn keyword tomlTodo TODO FIXME XXX BUG contained + +syn match tomlComment /#.*/ contains=@Spell,tomlTodo + +hi def link tomlComment Comment +hi def link tomlTodo Todo +hi def link tomlTableArray Title +hi def link tomlTable Title +hi def link tomlDotInKey Normal +hi def link tomlKeySq Identifier +hi def link tomlKeyDq Identifier +hi def link tomlKey Identifier +hi def link tomlDate Constant +hi def link tomlBoolean Boolean +hi def link tomlFloat Float +hi def link tomlInteger Number +hi def link tomlString String +hi def link tomlLineEscape SpecialChar +hi def link tomlEscape SpecialChar + +syn sync minlines=500 +let b:current_syntax = 'toml' + +" vim: et sw=2 sts=2 diff --git a/git/usr/share/vim/vim92/syntax/tpp.vim b/git/usr/share/vim/vim92/syntax/tpp.vim new file mode 100644 index 0000000000000000000000000000000000000000..e2b307b2a21c74e317ac380eb09aa794924e0737 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tpp.vim @@ -0,0 +1,83 @@ +" Vim syntax file +" Language: tpp - Text Presentation Program +" Maintainer: Debian Vim Maintainers +" Former Maintainer: Gerfried Fuchs +" Last Change: 2023 Jan 16 +" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/tpp.vim +" Filenames: *.tpp +" License: BSD +" +" XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain +" it only because patches have been submitted for it by Debian users and the +" former maintainer was MIA (Missing In Action), taking over its +" maintenance was thus the only way to include those patches. +" If you care about this file, and have time to maintain it please do so! +" +" Comments are very welcome - but please make sure that you are commenting on +" the latest version of this file. +" SPAM is _NOT_ welcome - be ready to be reported! + +" quit when a syntax file was already loaded +if exists('b:current_syntax') + finish +endif + +if !exists('main_syntax') + let main_syntax = 'tpp' +endif + + +"" list of the legal switches/options +syn match tppAbstractOptionKey contained "^--\%(author\|title\|date\|footer\) *" nextgroup=tppString +syn match tppPageLocalOptionKey contained "^--\%(heading\|center\|right\|huge\|sethugefont\|exec\) *" nextgroup=tppString +syn match tppPageLocalSwitchKey contained "^--\%(horline\|-\|\%(begin\|end\)\%(\%(shell\)\?output\|slide\%(left\|right\|top\|bottom\)\)\|\%(bold\|rev\|ul\)\%(on\|off\)\|withborder\)" +syn match tppNewPageOptionKey contained "^--newpage *" nextgroup=tppString +syn match tppColorOptionKey contained "^--\%(\%(bg\|fg\)\?color\) *" +syn match tppTimeOptionKey contained "^--sleep *" + +syn match tppString contained ".*" +syn match tppColor contained "\%(white\|yellow\|red\|green\|blue\|cyan\|magenta\|black\|default\)" +syn match tppTime contained "\d\+" + +syn region tppPageLocalSwitch start="^--" end="$" contains=tppPageLocalSwitchKey oneline +syn region tppColorOption start="^--\%(\%(bg\|fg\)\?color\)" end="$" contains=tppColorOptionKey,tppColor oneline +syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline +syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline +syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline +syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline + +if main_syntax !=# 'sh' + " shell command + syn include @tppShExec syntax/sh.vim + unlet b:current_syntax + + syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec + +endif + +syn match tppComment "^--##.*$" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tppAbstractOptionKey Special +hi def link tppPageLocalOptionKey Keyword +hi def link tppPageLocalSwitchKey Keyword +hi def link tppColorOptionKey Keyword +hi def link tppTimeOptionKey Comment +hi def link tppNewPageOptionKey PreProc +hi def link tppString String +hi def link tppColor String +hi def link tppTime Number +hi def link tppComment Comment +hi def link tppAbstractOption Error +hi def link tppPageLocalOption Error +hi def link tppPageLocalSwitch Error +hi def link tppColorOption Error +hi def link tppNewPageOption Error +hi def link tppTimeOption Error + + +let b:current_syntax = 'tpp' + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/trasys.vim b/git/usr/share/vim/vim92/syntax/trasys.vim new file mode 100644 index 0000000000000000000000000000000000000000..d52b5eeb4780b289821c055761b31251b6f9512b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/trasys.vim @@ -0,0 +1,160 @@ +" Vim syntax file +" Language: TRASYS input file +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.inp +" URL: http://www.naglenet.org/vim/syntax/trasys.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" Force free-form fortran format +let fortran_free_source=1 + +" Load FORTRAN syntax file +runtime! syntax/fortran.vim +unlet b:current_syntax + + +" Ignore case +syn case ignore + + + +" Define keywords for TRASYS +syn keyword trasysOptions model rsrec info maxfl nogo dmpdoc +syn keyword trasysOptions rsi rti rso rto bcdou cmerg emerg +syn keyword trasysOptions user1 nnmin erplot + +syn keyword trasysSurface icsn tx ty tz rotx roty rotz inc bcsn +syn keyword trasysSurface nnx nny nnz nnax nnr nnth unnx +syn keyword trasysSurface unny unnz unnax unnr unnth type idupsf +syn keyword trasysSurface imagsf act active com shade bshade axmin +syn keyword trasysSurface axmax zmin zmax rmin rmax thmin thmin +syn keyword trasysSurface thmax alpha emiss trani trans spri sprs +syn keyword trasysSurface refno posit com dupbcs dimensions +syn keyword trasysSurface dimension position prop surfn + +syn keyword trasysSurfaceType rect trap disk cyl cone sphere parab +syn keyword trasysSurfaceType box5 box6 shpero tor ogiv elem tape poly + +syn keyword trasysSurfaceArgs ff di top bottom in out both no only + +syn keyword trasysArgs fig smn nodea zero only ir sol +syn keyword trasysArgs both wband stepn initl + +syn keyword trasysOperations orbgen build + +"syn keyword trasysSubRoutine call +syn keyword trasysSubRoutine chgblk ndata ndatas odata odatas +syn keyword trasysSubRoutine pldta ffdata cmdata adsurf rbdata +syn keyword trasysSubRoutine rtdata pffshd orbit1 orbit2 orient +syn keyword trasysSubRoutine didt1 didt1s didt2 didt2s spin +syn keyword trasysSubRoutine spinav dicomp distab drdata gbdata +syn keyword trasysSubRoutine gbaprx rkdata rcdata aqdata stfaq +syn keyword trasysSubRoutine qodata qoinit modar modpr modtr +syn keyword trasysSubRoutine modprs modshd moddat rstoff rston +syn keyword trasysSubRoutine rsmerg ffread diread ffusr1 diusr1 +syn keyword trasysSubRoutine surfp didt3 didt3s romain stfrc +syn keyword trasysSubRoutine rornt rocstr romove flxdata title + +syn keyword trassyPrcsrSegm nplot oplot plot cmcal ffcal rbcal +syn keyword trassyPrcsrSegm rtcal dical drcal sfcal gbcal rccal +syn keyword trassyPrcsrSegm rkcal aqcal qocal + + + +" Define matches for TRASYS +syn match trasysOptions "list source" +syn match trasysOptions "save source" +syn match trasysOptions "no print" + +"syn match trasysSurface "^K *.* [^$]" +"syn match trasysSurface "^D *[0-9]*\.[0-9]\+" +"syn match trasysSurface "^I *.*[0-9]\+\.\=" +"syn match trasysSurface "^N *[0-9]\+" +"syn match trasysSurface "^M *[a-z[A-Z0-9]\+" +"syn match trasysSurface "^B[C][S] *[a-zA-Z0-9]*" +"syn match trasysSurface "^S *SURFN.*[0-9]" +syn match trasysSurface "P[0-9]* *="he=e-1 + +syn match trasysIdentifier "^L "he=e-1 +syn match trasysIdentifier "^K "he=e-1 +syn match trasysIdentifier "^D "he=e-1 +syn match trasysIdentifier "^I "he=e-1 +syn match trasysIdentifier "^N "he=e-1 +syn match trasysIdentifier "^M "he=e-1 +syn match trasysIdentifier "^B[C][S]" +syn match trasysIdentifier "^S "he=e-1 + +syn match trasysComment "^C.*$" +syn match trasysComment "^R.*$" +syn match trasysComment "\$.*$" + +syn match trasysHeader "^header[^,]*" + +syn match trasysMacro "^FAC" + +syn match trasysInteger "-\=\<[0-9]*\>" +syn match trasysFloat "-\=\<[0-9]*\.[0-9]*" +syn match trasysScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" + +syn match trasysBlank "' \+'"hs=s+1,he=e-1 + +syn match trasysEndData "^END OF DATA" + +if exists("thermal_todo") + execute 'syn match trasysTodo ' . '"^'.thermal_todo.'.*$"' +else + syn match trasysTodo "^?.*$" +endif + + + +" Define regions for TRASYS +syn region trasysComment matchgroup=trasysHeader start="^HEADER DOCUMENTATION DATA" end="^HEADER[^,]*" + + + +" Define synchronizing patterns for TRASYS +syn sync maxlines=500 +syn sync match trasysSync grouphere trasysComment "^HEADER DOCUMENTATION DATA" + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link trasysOptions Special +hi def link trasysSurface Special +hi def link trasysSurfaceType Constant +hi def link trasysSurfaceArgs Constant +hi def link trasysArgs Constant +hi def link trasysOperations Statement +hi def link trasysSubRoutine Statement +hi def link trassyPrcsrSegm PreProc +hi def link trasysIdentifier Identifier +hi def link trasysComment Comment +hi def link trasysHeader Typedef +hi def link trasysMacro Macro +hi def link trasysInteger Number +hi def link trasysFloat Float +hi def link trasysScientific Float + +hi def link trasysBlank SpecialChar + +hi def link trasysEndData Macro + +hi def link trasysTodo Todo + + + +let b:current_syntax = "trasys" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/treetop.vim b/git/usr/share/vim/vim92/syntax/treetop.vim new file mode 100644 index 0000000000000000000000000000000000000000..60bbf261933976cb7e0d1eb876befd3c61fe5a00 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/treetop.vim @@ -0,0 +1,110 @@ +" Vim syntax file +" Language: Treetop +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2011-03-14 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword treetopTodo + \ contained + \ TODO + \ FIXME + \ XXX + \ NOTE + +syn match treetopComment + \ '#.*' + \ display + \ contains=treetopTodo + +syn include @treetopRuby syntax/ruby.vim +unlet b:current_syntax + +syn keyword treetopKeyword + \ require + \ end +syn region treetopKeyword + \ matchgroup=treetopKeyword + \ start='\<\%(grammar\|include\|module\)\>\ze\s' + \ end='$' + \ transparent + \ oneline + \ keepend + \ contains=@treetopRuby +syn keyword treetopKeyword + \ rule + \ nextgroup=treetopRuleName + \ skipwhite skipnl + +syn match treetopGrammarName + \ '\u\w*' + \ contained + +syn match treetopRubyModuleName + \ '\u\w*' + \ contained + +syn match treetopRuleName + \ '\h\w*' + \ contained + +syn region treetopString + \ matchgroup=treetopStringDelimiter + \ start=+"+ + \ end=+"+ +syn region treetopString + \ matchgroup=treetopStringDelimiter + \ start=+'+ + \ end=+'+ + +syn region treetopCharacterClass + \ matchgroup=treetopCharacterClassDelimiter + \ start=+\[+ + \ skip=+\\\]+ + \ end=+\]+ + +syn region treetopRubyBlock + \ matchgroup=treetopRubyBlockDelimiter + \ start=+{+ + \ end=+}+ + \ contains=@treetopRuby + +syn region treetopSemanticPredicate + \ matchgroup=treetopSemanticPredicateDelimiter + \ start=+[!&]{+ + \ end=+}+ + \ contains=@treetopRuby + +syn region treetopSubclassDeclaration + \ matchgroup=treetopSubclassDeclarationDelimiter + \ start=+<+ + \ end=+>+ + \ contains=@treetopRuby + +syn match treetopEllipsis + \ +''+ + +hi def link treetopTodo Todo +hi def link treetopComment Comment +hi def link treetopKeyword Keyword +hi def link treetopGrammarName Constant +hi def link treetopRubyModuleName Constant +hi def link treetopRuleName Identifier +hi def link treetopString String +hi def link treetopStringDelimiter treetopString +hi def link treetopCharacterClass treetopString +hi def link treetopCharacterClassDelimiter treetopCharacterClass +hi def link treetopRubyBlockDelimiter PreProc +hi def link treetopSemanticPredicateDelimiter PreProc +hi def link treetopSubclassDeclarationDelimiter PreProc +hi def link treetopEllipsis Special + +let b:current_syntax = 'treetop' + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/trustees.vim b/git/usr/share/vim/vim92/syntax/trustees.vim new file mode 100644 index 0000000000000000000000000000000000000000..3a7d26e8966d3e1af72ae448b78fd3d7a9c80f99 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/trustees.vim @@ -0,0 +1,44 @@ +" Vim syntax file +" Language: trustees +" Maintainer: Nima Talebi +" Last Change: 2022 Jun 14 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syntax case match +syntax sync minlines=0 maxlines=0 + +" Errors & Comments +syntax match tfsError /.*/ +highlight link tfsError Error +syntax keyword tfsSpecialComment TODO XXX FIXME contained +highlight link tfsSpecialComment Todo +syntax match tfsComment ~\s*#.*~ contains=tfsSpecialComment +highlight link tfsComment Comment + +" Operators & Delimiters +highlight link tfsSpecialChar Operator +syntax match tfsSpecialChar ~[*!+]~ contained +highlight link tfsDelimiter Delimiter +syntax match tfsDelimiter ~:~ contained + +" Trustees Rules - Part 1 of 3 - The Device +syntax region tfsRuleDevice matchgroup=tfsDeviceContainer start=~\[/~ end=~\]~ nextgroup=tfsRulePath oneline +highlight link tfsRuleDevice Label +highlight link tfsDeviceContainer PreProc + +" Trustees Rules - Part 2 of 3 - The Path +syntax match tfsRulePath ~/[-_a-zA-Z0-9/]*~ nextgroup=tfsRuleACL contained contains=tfsDelimiter +highlight link tfsRulePath String + +" Trustees Rules - Part 3 of 3 - The ACLs +syntax match tfsRuleACL ~\(:\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\):[RWEBXODCU!]\+\)\+$~ contained contains=tfsDelimiter,tfsRuleWho,tfsRuleWhat +syntax match tfsRuleWho ~\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\)~ contained contains=tfsSpecialChar +highlight link tfsRuleWho Identifier +syntax match tfsRuleWhat ~[RWEBXODCU!]\+~ contained contains=tfsSpecialChar +highlight link tfsRuleWhat Structure + +let b:current_syntax = 'trustees' diff --git a/git/usr/share/vim/vim92/syntax/tsalt.vim b/git/usr/share/vim/vim92/syntax/tsalt.vim new file mode 100644 index 0000000000000000000000000000000000000000..6f74ad2eb3a67b24bc6a4e405d4043c659a4df9e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tsalt.vim @@ -0,0 +1,206 @@ +" Vim syntax file +" Language: Telix (Modem Comm Program) SALT Script +" Maintainer: Sean M. McKee +" Last Change: 2012 Feb 03 by Thilo Six +" Version Info: @(#)tsalt.vim 1.5 97/12/16 08:11:15 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" turn case matching off +syn case ignore + +"FUNCTIONS +" Character Handling Functions +syn keyword tsaltFunction IsAscii IsAlNum IsAlpha IsCntrl IsDigit +syn keyword tsaltFunction IsLower IsUpper ToLower ToUpper + +" Connect Device Operations +syn keyword tsaltFunction Carrier cInp_Cnt cGetC cGetCT cPutC cPutN +syn keyword tsaltFunction cPutS cPutS_TR FlushBuf Get_Baud +syn keyword tsaltFunction Get_DataB Get_Port Get_StopB Hangup +syn keyword tsaltFunction KillConnectDevice MakeConnectDevice +syn keyword tsaltFunction Send_Brk Set_ConnectDevice Set_Port + +" File Input/Output Operations +syn keyword tsaltFunction fClearErr fClose fDelete fError fEOF fFlush +syn keyword tsaltFunction fGetC fGetS FileAttr FileFind FileSize +syn keyword tsaltFunction FileTime fnStrip fOpen fPutC fPutS fRead +syn keyword tsaltFunction fRename fSeek fTell fWrite + +" File Transfers and Logs +syn keyword tsaltFunction Capture Capture_Stat Printer Receive Send +syn keyword tsaltFunction Set_DefProt UsageLog Usage_Stat UStamp + +" Input String Matching +syn keyword tsaltFunction Track Track_AddChr Track_Free Track_Hit +syn keyword tsaltFunction WaitFor + +" Keyboard Operations +syn keyword tsaltFunction InKey InKeyW KeyGet KeyLoad KeySave KeySet + +" Miscellaneous Functions +syn keyword tsaltFunction ChatMode Dos Dial DosFunction ExitTelix +syn keyword tsaltFunction GetEnv GetFon HelpScreen LoadFon NewDir +syn keyword tsaltFunction Randon Redial RedirectDOS Run +syn keyword tsaltFunction Set_Terminal Show_Directory TelixVersion +syn keyword tsaltFunction Terminal TransTab Update_Term + +" Script Management +syn keyword tsaltFunction ArgCount Call CallD CompileScript GetRunPath +syn keyword tsaltFunction Is_Loaded Load_Scr ScriptVersion +syn keyword tsaltFunction TelixForWindows Unload_Scr + +" Sound Functions +syn keyword tsaltFunction Alarm PlayWave Tone + +" String Handling +syn keyword tsaltFunction CopyChrs CopyStr DelChrs GetS GetSXY +syn keyword tsaltFunction InputBox InsChrs ItoS SetChr StoI StrCat +syn keyword tsaltFunction StrChr StrCompI StrLen StrLower StrMaxLen +syn keyword tsaltFunction StrPos StrPosI StrUpper SubChr SubChrs +syn keyword tsaltFunction SubStr + +" Time, Date, and Timer Operations +syn keyword tsaltFunction CurTime Date Delay Delay_Scr Get_OnlineTime +syn keyword tsaltFunction tDay tHour tMin tMonth tSec tYear Time +syn keyword tsaltFunction Time_Up Timer_Free Time_Restart +syn keyword tsaltFunction Time_Start Time_Total + +" Video Operations +syn keyword tsaltFunction Box CNewLine Cursor_OnOff Clear_Scr +syn keyword tsaltFunction GetTermHeight GetTermWidth GetX GetY +syn keyword tsaltFunction GotoXY MsgBox NewLine PrintC PrintC_Trm +syn keyword tsaltFunction PrintN PrintN_Trm PrintS PrintS_Trm +syn keyword tsaltFunction PrintSC PRintSC_Trm +syn keyword tsaltFunction PStrA PStrAXY Scroll Status_Wind vGetChr +syn keyword tsaltFunction vGetChrs vGetChrsA vPutChr vPutChrs +syn keyword tsaltFunction vPutChrsA vRstrArea vSaveArea + +" Dynamic Data Exchange (DDE) Operations +syn keyword tsaltFunction DDEExecute DDEInitiate DDEPoke DDERequest +syn keyword tsaltFunction DDETerminate DDETerminateAll +"END FUNCTIONS + +"PREDEFINED VARIABLES +syn keyword tsaltSysVar _add_lf _alarm_on _answerback_str _asc_rcrtrans +syn keyword tsaltSysVar _asc_remabort _asc_rlftrans _asc_scpacing +syn keyword tsaltSysVar _asc_scrtrans _asc_secho _asc_slpacing +syn keyword tsaltSysVar _asc_spacechr _asc_striph _back_color +syn keyword tsaltSysVar _capture_fname _connect_str _dest_bs +syn keyword tsaltSysVar _dial_pause _dial_time _dial_post +syn keyword tsaltSysVar _dial_pref1 _dial_pref2 _dial_pref3 +syn keyword tsaltSysVar _dial_pref4 _dir_prog _down_dir +syn keyword tsaltSysVar _entry_bbstype _entry_comment _entry_enum +syn keyword tsaltSysVar _entry_name _entry_num _entry_logonname +syn keyword tsaltSysVar _entry_pass _fore_color _image_file +syn keyword tsaltSysVar _local_echo _mdm_hang_str _mdm_init_str +syn keyword tsaltSysVar _no_connect1 _no_connect2 _no_connect3 +syn keyword tsaltSysVar _no_connect4 _no_connect5 _redial_stop +syn keyword tsaltSysVar _scr_chk_key _script_dir _sound_on +syn keyword tsaltSysVar _strip_high _swap_bs _telix_dir _up_dir +syn keyword tsaltSysVar _usage_fname _zmodauto _zmod_rcrash +syn keyword tsaltSysVar _zmod_scrash +"END PREDEFINED VARIABLES + +"TYPE +syn keyword tsaltType str int +"END TYPE + +"KEYWORDS +syn keyword tsaltStatement goto break return continue +syn keyword tsaltConditional if then else +syn keyword tsaltRepeat while for do +"END KEYWORDS + +syn keyword tsaltTodo contained TODO + +" the rest is pretty close to C ----------------------------------------- + +" String and Character constants +" Highlight special characters (those which have a backslash) differently +syn match tsaltSpecial contained "\^\d\d\d\|\^." +syn region tsaltString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=tsaltSpecial +syn match tsaltCharacter "'[^\\]'" +syn match tsaltSpecialCharacter "'\\.'" + +"catch errors caused by wrong parenthesis +syn region tsaltParen transparent start='(' end=')' contains=ALLBUT,tsaltParenError,tsaltIncluded,tsaltSpecial,tsaltTodo +syn match tsaltParenError ")" +syn match tsaltInParen contained "[{}]" + +hi link tsaltParenError tsaltError +hi link tsaltInParen tsaltError + +"integer number, or floating point number without a dot and with "f". +syn match tsaltNumber "\<\d\+\(u\=l\=\|lu\|f\)\>" +"floating point number, with dot, optional exponent +syn match tsaltFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, starting with a dot, optional exponent +syn match tsaltFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match tsaltFloat "\<\d\+e[-+]\=\d\+[fl]\=\>" +"hex number +syn match tsaltNumber "0x[0-9a-f]\+\(u\=l\=\|lu\)\>" +"syn match cIdentifier "\<[a-z_][a-z0-9_]*\>" + +syn region tsaltComment start="/\*" end="\*/" contains=cTodo +syn match tsaltComment "//.*" contains=cTodo +syn match tsaltCommentError "\*/" + +syn region tsaltPreCondit start="^[ \t]*#[ \t]*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=tsaltComment,tsaltString,tsaltCharacter,tsaltNumber,tsaltCommentError +syn region tsaltIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match tsaltIncluded contained "<[^>]*>" +syn match tsaltInclude "^[ \t]*#[ \t]*include\>[ \t]*["<]" contains=tsaltIncluded +"syn match TelixSalyLineSkip "\\$" +syn region tsaltDefine start="^[ \t]*#[ \t]*\(define\>\|undef\>\)" skip="\\$" end="$" contains=ALLBUT,tsaltPreCondit,tsaltIncluded,tsaltInclude,tsaltDefine,tsaltInParen +syn region tsaltPreProc start="^[ \t]*#[ \t]*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,tsaltPreCondit,tsaltIncluded,tsaltInclude,tsaltDefine,tsaltInParen + +" Highlight User Labels +syn region tsaltMulti transparent start='?' end=':' contains=ALLBUT,tsaltIncluded,tsaltSpecial,tsaltTodo + +syn sync ccomment tsaltComment + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link tsaltFunction Statement +hi def link tsaltSysVar Type +"hi def link tsaltLibFunc UserDefFunc +"hi def link tsaltConstants Type +"hi def link tsaltFuncArg Type +"hi def link tsaltOperator Operator +"hi def link tsaltLabel Label +"hi def link tsaltUserLabel Label +hi def link tsaltConditional Conditional +hi def link tsaltRepeat Repeat +hi def link tsaltCharacter SpecialChar +hi def link tsaltSpecialCharacter SpecialChar +hi def link tsaltNumber Number +hi def link tsaltFloat Float +hi def link tsaltCommentError tsaltError +hi def link tsaltInclude Include +hi def link tsaltPreProc PreProc +hi def link tsaltDefine Macro +hi def link tsaltIncluded tsaltString +hi def link tsaltError Error +hi def link tsaltStatement Statement +hi def link tsaltPreCondit PreCondit +hi def link tsaltType Type +hi def link tsaltString String +hi def link tsaltComment Comment +hi def link tsaltSpecial Special +hi def link tsaltTodo Todo + + +let b:current_syntax = "tsalt" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/tsscl.vim b/git/usr/share/vim/vim92/syntax/tsscl.vim new file mode 100644 index 0000000000000000000000000000000000000000..df804b2f8893d0c40b66ebc35a2afd6558bbac68 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tsscl.vim @@ -0,0 +1,204 @@ +" Vim syntax file +" Language: TSS (Thermal Synthesizer System) Command Line +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.tsscl +" URL: http://www.naglenet.org/vim/syntax/tsscl.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case ignore + + + +" +" +" Begin syntax definitions for tss geometry file. +" + +" Load TSS geometry syntax file +"source $VIM/myvim/tssgm.vim +"source $VIMRUNTIME/syntax/c.vim + +" Define keywords for TSS +syn keyword tssclCommand begin radk list heatrates attr draw + +syn keyword tssclKeyword cells rays error nodes levels objects cpu +syn keyword tssclKeyword units length positions energy time unit solar +syn keyword tssclKeyword solar_constant albedo planet_power + +syn keyword tssclEnd exit + +syn keyword tssclUnits cm feet meters inches +syn keyword tssclUnits Celsius Kelvin Fahrenheit Rankine + + + +" Define matches for TSS +syn match tssclString /"[^"]\+"/ contains=ALLBUT,tssInteger,tssclKeyword,tssclCommand,tssclEnd,tssclUnits + +syn match tssclComment "#.*$" + +" rational and logical operators +" < Less than +" > Greater than +" <= Less than or equal +" >= Greater than or equal +" == or = Equal to +" != Not equal to +" && or & Logical AND +" || or | Logical OR +" ! Logical NOT +" +" algebraic operators: +" ^ or ** Exponentation +" * Multiplication +" / Division +" % Remainder +" + Addition +" - Subtraction +" +syn match tssclOper "||\||\|&&\|&\|!=\|!\|>=\|<=\|>\|<\|+\|-\|^\|\*\*\|\*\|/\|%\|==\|=\|\." skipwhite + +" CLI Directive Commands, with arguments +" +" BASIC COMMAND LIST +" *ADD input_source +" *ARITHMETIC { [ON] | OFF } +" *CLOSE unit_number +" *CPU +" *DEFINE +" *ECHO[/qualifiers] { [ON] | OFF } +" *ELSE [IF { 0 | 1 } ] +" *END { IF | WHILE } +" *EXIT +" *IF { 0 | 1 } +" *LIST/n list variable +" *OPEN[/r | /r+ | /w | /w+ ] unit_number file_name +" *PROMPT prompt_string sybol_name +" *READ/unit=unit_number[/LOCAL | /GLOBAL ] sym1 [sym2, [sym3 ...]] +" *REWIND +" *STOP +" *STRCMP string_1 string_2 difference +" *SYSTEM command +" *UNDEFINE[/LOCAL][/GLOBAL] symbol_name +" *WHILE { 0 | 1 } +" *WRITE[/unit=unit_number] output text +" +syn match tssclDirective "\*ADD" +syn match tssclDirective "\*ARITHMETIC \+\(ON\|OFF\)" +syn match tssclDirective "\*CLOSE" +syn match tssclDirective "\*CPU" +syn match tssclDirective "\*DEFINE" +syn match tssclDirective "\*ECHO" +syn match tssclConditional "\*ELSE" +syn match tssclConditional "\*END \+\(IF\|WHILE\)" +syn match tssclDirective "\*EXIT" +syn match tssclConditional "\*IF" +syn match tssclDirective "\*LIST" +syn match tssclDirective "\*OPEN" +syn match tssclDirective "\*PROMPT" +syn match tssclDirective "\*READ" +syn match tssclDirective "\*REWIND" +syn match tssclDirective "\*STOP" +syn match tssclDirective "\*STRCMP" +syn match tssclDirective "\*SYSTEM" +syn match tssclDirective "\*UNDEFINE" +syn match tssclConditional "\*WHILE" +syn match tssclDirective "\*WRITE" + +syn match tssclContChar "-$" + +" C library functoins +" Bessel functions (jn, yn) +" Error and complementary error fuctions (erf, erfc) +" Exponential functions (exp) +" Logrithm (log, log10) +" Power (pow) +" Square root (sqrt) +" Floor (floor) +" Ceiling (ceil) +" Floating point remainder (fmod) +" Floating point absolute value (fabs) +" Gamma (gamma) +" Euclidean distance function (hypot) +" Hperbolic functions (sinh, cosh, tanh) +" Trigometric functions in radians (sin, cos, tan, asin, acos, atan, atan2) +" Trigometric functions in degrees (sind, cosd, tand, asind, acosd, atand, +" atan2d) +" +" local varialbles: cl_arg1, cl_arg2, etc. (cl_arg is an array of arguments) +" cl_args is the number of arguments +" +" +" I/O: *PROMPT, *WRITE, *READ +" +" Conditional branching: +" IF, ELSE IF, END +" *IF value *IF I==10 +" *ELSE IF value *ELSE IF I<10 +" *ELSE *ELSE +" *ENDIF *ENDIF +" +" +" Iterative looping: +" WHILE +" *WHILE test +" ..... +" *END WHILE +" +" +" EXAMPLE: +" *DEFINE I = 1 +" *WHILE (I <= 10) +" *WRITE I = 'I' +" *DEFINE I = (I + 1) +" *END WHILE +" + +syn match tssclQualifier "/[^/ ]\+"hs=s+1 +syn match tssclSymbol "'\S\+'" +"syn match tssclSymbol2 " \S\+ " contained + +syn match tssclInteger "-\=\<[0-9]*\>" +syn match tssclFloat "-\=\<[0-9]*\.[0-9]*" +syn match tssclScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link tssclCommand Statement +hi def link tssclKeyword Special +hi def link tssclEnd Macro +hi def link tssclUnits Special + +hi def link tssclComment Comment +hi def link tssclDirective Statement +hi def link tssclConditional Conditional +hi def link tssclContChar Macro +hi def link tssclQualifier Typedef +hi def link tssclSymbol Identifier +hi def link tssclSymbol2 Symbol +hi def link tssclString String +hi def link tssclOper Operator + +hi def link tssclInteger Number +hi def link tssclFloat Number +hi def link tssclScientific Number + + + +let b:current_syntax = "tsscl" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/tssgm.vim b/git/usr/share/vim/vim92/syntax/tssgm.vim new file mode 100644 index 0000000000000000000000000000000000000000..8ca7962e81879d42077cf8cb174ba34440a3c387 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tssgm.vim @@ -0,0 +1,98 @@ +" Vim syntax file +" Language: TSS (Thermal Synthesizer System) Geometry +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.tssgm +" URL: http://www.naglenet.org/vim/syntax/tssgm.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case ignore + + + +" +" +" Begin syntax definitions for tss geomtery file. +" + +" Define keywords for TSS +syn keyword tssgmParam units mirror param active sides submodel include +syn keyword tssgmParam iconductor nbeta ngamma optics material thickness color +syn keyword tssgmParam initial_temp +syn keyword tssgmParam initial_id node_ids node_add node_type +syn keyword tssgmParam gamma_boundaries gamma_add beta_boundaries +syn keyword tssgmParam p1 p2 p3 p4 p5 p6 rot1 rot2 rot3 tx ty tz + +syn keyword tssgmSurfType rectangle trapezoid disc ellipse triangle +syn keyword tssgmSurfType polygon cylinder cone sphere ellipic-cone +syn keyword tssgmSurfType ogive torus box paraboloid hyperboloid ellipsoid +syn keyword tssgmSurfType quadrilateral trapeziod + +syn keyword tssgmArgs OUT IN DOWN BOTH DOUBLE NONE SINGLE RADK CC FECC +syn keyword tssgmArgs white red blue green yellow orange violet pink +syn keyword tssgmArgs turquoise grey black +syn keyword tssgmArgs Arithmetic Boundary Heater + +syn keyword tssgmDelim assembly + +syn keyword tssgmEnd end + +syn keyword tssgmUnits cm feet meters inches +syn keyword tssgmUnits Celsius Kelvin Fahrenheit Rankine + + + +" Define matches for TSS +syn match tssgmDefault "^DEFAULT/LENGTH = \(ft\|in\|cm\|m\)" +syn match tssgmDefault "^DEFAULT/TEMP = [CKFR]" + +syn match tssgmComment /comment \+= \+".*"/ contains=tssParam,tssgmCommentString +syn match tssgmCommentString /".*"/ contained + +syn match tssgmSurfIdent " \S\+\.\d\+ \=$" + +syn match tssgmString /"[^" ]\+"/ms=s+1,me=e-1 contains=ALLBUT,tssInteger + +syn match tssgmArgs / = [xyz],"/ms=s+3,me=e-2 + +syn match tssgmInteger "-\=\<[0-9]*\>" +syn match tssgmFloat "-\=\<[0-9]*\.[0-9]*" +syn match tssgmScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link tssgmParam Statement +hi def link tssgmSurfType Type +hi def link tssgmArgs Special +hi def link tssgmDelim Typedef +hi def link tssgmEnd Macro +hi def link tssgmUnits Special + +hi def link tssgmDefault SpecialComment +hi def link tssgmComment Statement +hi def link tssgmCommentString Comment +hi def link tssgmSurfIdent Identifier +hi def link tssgmString Delimiter + +hi def link tssgmInteger Number +hi def link tssgmFloat Float +hi def link tssgmScientific Float + + + +let b:current_syntax = "tssgm" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/tssop.vim b/git/usr/share/vim/vim92/syntax/tssop.vim new file mode 100644 index 0000000000000000000000000000000000000000..6a775b2358440c1194dcf052e78fb8c81f39929c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tssop.vim @@ -0,0 +1,74 @@ +" Vim syntax file +" Language: TSS (Thermal Synthesizer System) Optics +" Maintainer: Adrian Nagle, anagle@ball.com +" Last Change: 2003 May 11 +" Filenames: *.tssop +" URL: http://www.naglenet.org/vim/syntax/tssop.vim +" MAIN URL: http://www.naglenet.org/vim/ + + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + + +" Ignore case +syn case ignore + + + +" +" +" Begin syntax definitions for tss optics file. +" + +" Define keywords for TSS +syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract +syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract +syn keyword tssopParam color + +"syn keyword tssopProp property + +syn keyword tssopArgs white red blue green yellow orange violet pink +syn keyword tssopArgs turquoise grey black + + + +" Define matches for TSS +syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString +syn match tssopCommentString /".*"/ contained + +syn match tssopProp "property " +syn match tssopProp "edit/optic " +syn match tssopPropName "^property \S\+" contains=tssopProp +syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp + +syn match tssopInteger "-\=\<[0-9]*\>" +syn match tssopFloat "-\=\<[0-9]*\.[0-9]*" +syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" + + + +" Define the default highlighting +" Only when an item doesn't have highlighting yet + +hi def link tssopParam Statement +hi def link tssopProp Identifier +hi def link tssopArgs Special + +hi def link tssopComment Statement +hi def link tssopCommentString Comment +hi def link tssopPropName Typedef + +hi def link tssopInteger Number +hi def link tssopFloat Float +hi def link tssopScientific Float + + + +let b:current_syntax = "tssop" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/tsv.vim b/git/usr/share/vim/vim92/syntax/tsv.vim new file mode 100644 index 0000000000000000000000000000000000000000..f0dd9f717dab827d4994008626ad896f581843a3 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tsv.vim @@ -0,0 +1,12 @@ +" Vim filetype plugin file +" Language: Tab separated values (TSV) +" Last Change: 2024 Jul 16 +" This runtime file is looking for a new maintainer. + +if exists('b:current_syntax') + finish +endif + +let b:csv_delimiter = '\t' " enforce tab delimiter +runtime! syntax/csv.vim +let b:current_syntax = 'tsv' diff --git a/git/usr/share/vim/vim92/syntax/tt2.vim b/git/usr/share/vim/vim92/syntax/tt2.vim new file mode 100644 index 0000000000000000000000000000000000000000..100eb6e6a1660972d3f9ed5deb2eef32bb9c84da --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tt2.vim @@ -0,0 +1,209 @@ +" Vim syntax file +" Language: TT2 (Perl Template Toolkit) +" Maintainer: vim-perl (need to be subscribed to post) +" Author: Moriki, Atsushi <4woods+vim@gmail.com> +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2018 Mar 28 +" +" Installation: +" put tt2.vim and tt2html.vim in to your syntax directory. +" +" add below in your filetype.vim. +" au BufNewFile,BufRead *.tt2 setf tt2 +" or +" au BufNewFile,BufRead *.tt2 +" \ if ( getline(1) . getline(2) . getline(3) =~ '<\chtml' | +" \ && getline(1) . getline(2) . getline(3) !~ '<[%?]' ) | +" \ || getline(1) =~ '' +" "PHP" +" :let b:tt2_syn_tags = '' +" "TT2 and HTML" +" :let b:tt2_syn_tags = '\[% %] ' +" +" Changes: +" 0.1.3 +" Changed fileformat from 'dos' to 'unix' +" Deleted 'echo' that print obstructive message +" 0.1.2 +" Added block comment syntax +" e.g. [%# COMMENT +" COMMENT TOO %] +" [%# IT'S SAFE %] HERE IS OUTSIDE OF TT2 DIRECTIVE +" [% # WRONG!! %] HERE STILL BE COMMENT +" 0.1.1 +" Release +" 0.1.0 +" Internal + +if !exists("b:tt2_syn_tags") + let b:tt2_syn_tags = '\[% %]' + "let b:tt2_syn_tags = '\[% %] \[\* \*]' +endif + +if !exists("b:tt2_syn_inc_perl") + let b:tt2_syn_inc_perl = 1 +endif + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case match + +syn cluster tt2_top_cluster contains=tt2_perlcode,tt2_tag_region + +" TT2 TAG Region +if exists("b:tt2_syn_tags") + + let s:str = b:tt2_syn_tags . ' ' + let s:str = substitute(s:str,'^ \+','','g') + let s:str = substitute(s:str,' \+',' ','g') + + while stridx(s:str,' ') > 0 + + let s:st = strpart(s:str,0,stridx(s:str,' ')) + let s:str = substitute(s:str,'[^ ]* ','',"") + + let s:ed = strpart(s:str,0,stridx(s:str,' ')) + let s:str = substitute(s:str,'[^ ]* ','',"") + + exec 'syn region tt2_tag_region '. + \ 'matchgroup=tt2_tag '. + \ 'start=+\(' . s:st .'\)[-]\=+ '. + \ 'end=+[-]\=\(' . s:ed . '\)+ '. + \ 'contains=@tt2_statement_cluster keepend extend' + + exec 'syn region tt2_commentblock_region '. + \ 'matchgroup=tt2_tag '. + \ 'start=+\(' . s:st .'\)[-]\=\(#\)\@=+ '. + \ 'end=+[-]\=\(' . s:ed . '\)+ '. + \ 'keepend extend' + + "Include Perl syntax when 'PERL' 'RAWPERL' block + if b:tt2_syn_inc_perl + syn include @Perl syntax/perl.vim + exec 'syn region tt2_perlcode '. + \ 'start=+\(\(RAW\)\=PERL\s*[-]\=' . s:ed . '\(\n\)\=\)\@<=+ ' . + \ 'end=+' . s:st . '[-]\=\s*END+me=s-1 contains=@Perl keepend' + endif + + "echo 'TAGS ' . s:st . ' ' . s:ed + unlet s:st + unlet s:ed + endwhile + +else + + syn region tt2_tag_region + \ matchgroup=tt2_tag + \ start=+\(\[%\)[-]\=+ + \ end=+[-]\=%\]+ + \ contains=@tt2_statement_cluster keepend extend + + syn region tt2_commentblock_region + \ matchgroup=tt2_tag + \ start=+\(\[%\)[-]\=#+ + \ end=+[-]\=%\]+ + \ keepend extend + + "Include Perl syntax when 'PERL' 'RAWPERL' block + if b:tt2_syn_inc_perl + syn include @Perl syntax/perl.vim + syn region tt2_perlcode + \ start=+\(\(RAW\)\=PERL\s*[-]\=%]\(\n\)\=\)\@<=+ + \ end=+\[%[-]\=\s*END+me=s-1 + \ contains=@Perl keepend + endif +endif + +" Directive +syn keyword tt2_directive contained + \ GET CALL SET DEFAULT DEBUG + \ LAST NEXT BREAK STOP BLOCK + \ IF IN UNLESS ELSIF FOR FOREACH WHILE SWITCH CASE + \ USE PLUGIN MACRO META + \ TRY FINAL RETURN LAST + \ CLEAR TO STEP AND OR NOT MOD DIV + \ ELSE PERL RAWPERL END +syn match tt2_directive +|+ contained +syn keyword tt2_directive contained nextgroup=tt2_string_q,tt2_string_qq,tt2_blockname skipwhite skipempty + \ INSERT INCLUDE PROCESS WRAPPER FILTER + \ THROW CATCH +syn keyword tt2_directive contained nextgroup=tt2_def_tag skipwhite skipempty + \ TAGS + +syn match tt2_def_tag "\S\+\s\+\S\+\|\<\w\+\>" contained + +syn match tt2_variable +\I\w*+ contained +syn match tt2_operator "[+*/%:?-]" contained +syn match tt2_operator "\<\(mod\|div\|or\|and\|not\)\>" contained +syn match tt2_operator "[!=<>]=\=\|&&\|||" contained +syn match tt2_operator "\(\s\)\@<=_\(\s\)\@=" contained +syn match tt2_operator "=>\|," contained +syn match tt2_deref "\([[:alnum:]_)\]}]\s*\)\@<=\." contained +syn match tt2_comment +#.*$+ contained +syn match tt2_func +\<\I\w*\(\s*(\)\@=+ contained nextgroup=tt2_bracket_r skipempty skipwhite +" +syn region tt2_bracket_r start=+(+ end=+)+ contained contains=@tt2_statement_cluster keepend extend +syn region tt2_bracket_b start=+\[+ end=+]+ contained contains=@tt2_statement_cluster keepend extend +syn region tt2_bracket_b start=+{+ end=+}+ contained contains=@tt2_statement_cluster keepend extend + +syn region tt2_string_qq start=+"+ end=+"+ skip=+\\"+ contained contains=tt2_ivariable keepend extend +syn region tt2_string_q start=+'+ end=+'+ skip=+\\'+ contained keepend extend + +syn match tt2_ivariable +\$\I\w*\>\(\.\I\w*\>\)*+ contained +syn match tt2_ivariable +\${\I\w*\>\(\.\I\w*\>\)*}+ contained + +syn match tt2_number "\d\+" contained +syn match tt2_number "\d\+\.\d\+" contained +syn match tt2_number "0x\x\+" contained +syn match tt2_number "0\o\+" contained + +syn match tt2_blockname "\f\+" contained nextgroup=tt2_blockname_joint skipwhite skipempty +syn match tt2_blockname "$\w\+" contained contains=tt2_ivariable nextgroup=tt2_blockname_joint skipwhite skipempty +syn region tt2_blockname start=+"+ end=+"+ skip=+\\"+ contained contains=tt2_ivariable nextgroup=tt2_blockname_joint keepend skipwhite skipempty +syn region tt2_blockname start=+'+ end=+'+ skip=+\\'+ contained nextgroup=tt2_blockname_joint keepend skipwhite skipempty +syn match tt2_blockname_joint "+" contained nextgroup=tt2_blockname skipwhite skipempty + +syn cluster tt2_statement_cluster contains=tt2_directive,tt2_variable,tt2_operator,tt2_string_q,tt2_string_qq,tt2_deref,tt2_comment,tt2_func,tt2_bracket_b,tt2_bracket_r,tt2_number + +" Synchronizing +syn sync minlines=50 + +hi def link tt2_tag Type +hi def link tt2_tag_region Type +hi def link tt2_commentblock_region Comment +hi def link tt2_directive Statement +hi def link tt2_variable Identifier +hi def link tt2_ivariable Identifier +hi def link tt2_operator Statement +hi def link tt2_string_qq String +hi def link tt2_string_q String +hi def link tt2_blockname String +hi def link tt2_comment Comment +hi def link tt2_func Function +hi def link tt2_number Number + +if exists("b:tt2_syn_tags") + unlet b:tt2_syn_tags +endif + +let b:current_syntax = "tt2" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim:ts=4:sw=4 diff --git a/git/usr/share/vim/vim92/syntax/tt2html.vim b/git/usr/share/vim/vim92/syntax/tt2html.vim new file mode 100644 index 0000000000000000000000000000000000000000..f489182d5fedb1b4665073cae98eaaa3abc2c667 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tt2html.vim @@ -0,0 +1,22 @@ +" Vim syntax file +" Language: TT2 embedded with HTML +" Maintainer: vim-perl (need to be subscribed to post) +" Author: Moriki, Atsushi <4woods+vim@gmail.com> +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2018 Mar 28 + +if exists("b:current_syntax") + finish +endif + +runtime! syntax/html.vim +unlet b:current_syntax + +runtime! syntax/tt2.vim +unlet b:current_syntax + +syn cluster htmlPreProc add=@tt2_top_cluster + +let b:current_syntax = "tt2html" diff --git a/git/usr/share/vim/vim92/syntax/tt2js.vim b/git/usr/share/vim/vim92/syntax/tt2js.vim new file mode 100644 index 0000000000000000000000000000000000000000..52e5a3c54a93c4d98c51f6ab859d8c9138424efd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tt2js.vim @@ -0,0 +1,22 @@ +" Vim syntax file +" Language: TT2 embedded with Javascript +" Maintainer: Andy Lester +" Author: Yates, Peter +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2018 Mar 28 + +if exists("b:current_syntax") + finish +endif + +runtime! syntax/javascript.vim +unlet b:current_syntax + +runtime! syntax/tt2.vim +unlet b:current_syntax + +syn cluster javascriptPreProc add=@tt2_top_cluster + +let b:current_syntax = "tt2js" diff --git a/git/usr/share/vim/vim92/syntax/tutor.vim b/git/usr/share/vim/vim92/syntax/tutor.vim new file mode 100644 index 0000000000000000000000000000000000000000..7d0cd31c1d1ed79d585f0559aa6f3234de2ec766 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/tutor.vim @@ -0,0 +1,86 @@ +" Language: Vim Tutor +" Maintainer: Vim Project +" Last Change: 2025 Apr 16 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn include @VIM syntax/vim.vim +unlet b:current_syntax +syn include @TUTORSHELL syntax/sh.vim +unlet b:current_syntax +syn include @VIMNORMAL syntax/vimnormal.vim + +syn match tutorLink /\[.\{-}\](.\{-})/ contains=tutorInlineNormal +syn match tutorLinkBands /\[\|\]\|(\|)/ contained containedin=tutorLink,tutorLinkAnchor conceal +syn match tutorLinkAnchor /(.\{-})/ contained containedin=tutorLink conceal +syn match tutorURL /\(https\?\|file\):\/\/[[:graph:]]\+\>\/\?/ +syn match tutorEmail /\<[[:graph:]]\+@[[:graph:]]\+\>/ +syn match tutorInternalAnchor /\*[[:alnum:]-]\+\*/ contained conceal containedin=tutorSection + +syn match tutorSection /^#\{1,6}\s.\+$/ fold contains=tutorInlineNormal +syn match tutorSectionBullet /#/ contained containedin=tutorSection + +syn match tutorTOC /\ctable of contents:/ + +syn match tutorConcealedEscapes /\\[`*!\[\]():$-]\@=/ conceal + +syn region tutorEmphasis matchgroup=Delimiter start=/[\*]\@/ + \ contains=@typescriptType + \ nextgroup=@typescriptExpression + \ contained skipwhite oneline + + +""""""""""""""""""""""""""""""""""""""""""""""""""" +" Source the part common with typescriptreact.vim +source :h/shared/typescriptcommon.vim + + +let b:current_syntax = "typescript" +if main_syntax == 'typescript' + unlet main_syntax +endif + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/typescriptreact.vim b/git/usr/share/vim/vim92/syntax/typescriptreact.vim new file mode 100644 index 0000000000000000000000000000000000000000..061ec4d81ec118cb780637d759045973fbe5a69a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/typescriptreact.vim @@ -0,0 +1,161 @@ +" Vim syntax file +" Language: TypeScript with React (JSX) +" Maintainer: The Vim Project +" Last Change: 2024 May 26 +" Based On: Herrington Darkholme's yats.vim +" Changes: See https://github.com/HerringtonDarkholme/yats.vim +" Credits: See yats.vim on github + +if !exists("main_syntax") + if exists("b:current_syntax") + finish + endif + let main_syntax = 'typescriptreact' +endif + +let s:cpo_save = &cpo +set cpo&vim + +syntax region tsxTag + \ start=+<\([^/!?<>="':]\+\)\@=+ + \ skip=+"']\+>+ + \ end=+/\@+ + \ end=+\(/>\)\@=+ + \ contained + \ contains=tsxTagName,tsxIntrinsicTagName,tsxAttrib,tsxEscJs, + \tsxCloseString,@tsxComment + +syntax match tsxTag /<>/ contained + + +" +" s~~~~~~~~~e +" and self close tag +" +" s~~~~e +" A big start regexp borrowed from https://git.io/vDyxc +syntax region tsxRegion + \ start=+<\_s*\z([a-zA-Z1-9\$_-]\+\(\.\k\+\)*\)+ + \ skip=++ + \ end=++ + \ matchgroup=tsxCloseString end=+/>+ + \ fold + \ contains=tsxRegion,tsxCloseString,tsxCloseTag,tsxTag,tsxCommentInvalid,tsxFragment,tsxEscJs,@Spell + \ keepend + \ extend + +" <> +" s~~~~~~e +" A big start regexp borrowed from https://git.io/vDyxc +syntax region tsxFragment + \ start=+\(\((\|{\|}\|\[\|,\|&&\|||\|?\|:\|=\|=>\|\Wreturn\|^return\|\Wdefault\|^\|>\)\_s*\)\@<=<>+ + \ skip=++ + \ end=++ + \ fold + \ contains=tsxRegion,tsxCloseString,tsxCloseTag,tsxTag,tsxCommentInvalid,tsxFragment,tsxEscJs,@Spell + \ keepend + \ extend + +" +" ~~~~~~ +syntax match tsxCloseTag + \ +"']\+>+ + \ contained + \ contains=tsxTagName,tsxIntrinsicTagName + +syntax match tsxCloseTag ++ contained + +syntax match tsxCloseString + \ +/>+ + \ contained + +" +" ~~~~~~~~ +syntax match tsxCommentInvalid // display + +syntax region tsxBlockComment + \ contained + \ start="/\*" + \ end="\*/" + +syntax match tsxLineComment + \ "//.*$" + \ contained + \ display + +syntax cluster tsxComment contains=tsxBlockComment,tsxLineComment + +syntax match tsxEntity "&[^; \t]*;" contains=tsxEntityPunct +syntax match tsxEntityPunct contained "[&.;]" + +" +" ~~~ +syntax match tsxTagName + \ +["'* ]\++hs=s+1 + \ contained + \ nextgroup=tsxAttrib + \ skipwhite + \ display +syntax match tsxIntrinsicTagName + \ +[ +" ~~~ +syntax match tsxAttrib + \ +[a-zA-Z_][-0-9a-zA-Z_]*+ + \ nextgroup=tsxEqual skipwhite + \ contained + \ display + +" +" ~ +syntax match tsxEqual +=+ display contained + \ nextgroup=tsxString skipwhite + +" +" s~~~~~~e +syntax region tsxString contained start=+"+ skip=+\\"+ end=+"+ contains=tsxEntity,@Spell display +syntax region tsxString contained start=+'+ skip=+\\'+ end=+'+ contains=tsxEntity,@Spell display + +" +" s~~~~~~~~~~~~~~e +syntax region tsxEscJs + \ contained + \ contains=@typescriptValue,@tsxComment,typescriptObjectSpread + \ matchgroup=typescriptBraces + \ start=+{+ + \ end=+}+ + \ extend + + +""""""""""""""""""""""""""""""""""""""""""""""""""" +" Source the part common with typescriptreact.vim +source :h/shared/typescriptcommon.vim + + +syntax cluster typescriptExpression add=tsxRegion,tsxFragment + +hi def link tsxTag htmlTag +hi def link tsxTagName Function +hi def link tsxIntrinsicTagName htmlTagName +hi def link tsxString String +hi def link tsxNameSpace Function +hi def link tsxCommentInvalid Error +hi def link tsxBlockComment Comment +hi def link tsxLineComment Comment +hi def link tsxAttrib Type +hi def link tsxEscJs tsxEscapeJs +hi def link tsxCloseTag htmlTag +hi def link tsxCloseString Identifier + +let b:current_syntax = "typescriptreact" +if main_syntax == 'typescriptreact' + unlet main_syntax +endif + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/typst.vim b/git/usr/share/vim/vim92/syntax/typst.vim new file mode 100644 index 0000000000000000000000000000000000000000..8ed2f69c89edaf45392443c9a2957e1e00527c79 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/typst.vim @@ -0,0 +1,479 @@ +" Vim syntax file +" Previous Maintainer: Luca Saccarola +" Maintainer: This runtime file is looking for a new maintainer. +" Language: Typst +" Based On: https://github.com/kaarmu/typst.vim +" Last Change: 2025 Aug 05 + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syntax sync fromstart +syntax spell toplevel + +" Common {{{1 +syntax cluster typstCommon + \ contains=@typstComment + +" Common > Comment {{{2 +syntax cluster typstComment + \ contains=typstCommentBlock,typstCommentLine +syntax region typstCommentBlock + \ start="/\*" end="\*/" keepend + \ contains=typstCommentTodo,@Spell +syntax match typstCommentLine + \ #//.*# + \ contains=typstCommentTodo,@Spell +syntax keyword typstCommentTodo + \ contained + \ TODO FIXME XXX TBD + + +" Code {{{1 +syntax cluster typstCode + \ contains=@typstCommon + \ ,@typstCodeKeywords + \ ,@typstCodeConstants + \ ,@typstCodeIdentifiers + \ ,@typstCodeFunctions + \ ,@typstCodeParens + +" Code > Keywords {{{2 +syntax cluster typstCodeKeywords + \ contains=typstCodeConditional + \ ,typstCodeRepeat + \ ,typstCodeKeyword + \ ,typstCodeStatement +syntax keyword typstCodeConditional + \ contained + \ if else +syntax keyword typstCodeRepeat + \ contained + \ while for +syntax keyword typstCodeKeyword + \ contained + \ not in and or return +syntax region typstCodeStatement + \ contained + \ matchgroup=typstCodeStatementWord start=/\v(let|set|import|include)>/ + \ matchgroup=Noise end=/\v%(;|$)/ + \ contains=@typstCode +syntax region typstCodeStatement + \ contained + \ matchgroup=typstCodeStatementWord start=/show/ + \ matchgroup=Noise end=/\v%(:|$)/ keepend + \ contains=@typstCode + \ skipwhite nextgroup=@typstCode,typstCodeShowRocket +syntax match typstCodeShowRocket + \ contained + \ /.*=>/ + \ contains=@typstCode + \ skipwhite nextgroup=@typstCode + +" Code > Identifiers {{{2 +syntax cluster typstCodeIdentifiers + \ contains=typstCodeIdentifier + \ ,typstCodeFieldAccess +syntax match typstCodeIdentifier + \ contained + \ /\v\w\k*>(<%(let|set|show|import|include))@(<%(let|set|show|import|include))@ Functions {{{2 +syntax cluster typstCodeFunctions + \ contains=typstCodeFunction +syntax match typstCodeFunction + \ contained + \ /\v\w\k*>(<%(let|set|show|import|include))@ Constants {{{2 +syntax cluster typstCodeConstants + \ contains=typstCodeConstant + \ ,typstCodeNumberInteger + \ ,typstCodeNumberFloat + \ ,typstCodeNumberLength + \ ,typstCodeNumberAngle + \ ,typstCodeNumberRatio + \ ,typstCodeNumberFraction + \ ,typstCodeString + \ ,typstCodeLabel +syntax match typstCodeConstant + \ contained + \ /\v<%(none|auto|true|false)-@!>/ +syntax match typstCodeNumberInteger + \ contained + \ /\v<\d+>/ + +syntax match typstCodeNumberFloat + \ contained + \ /\v<\d+\.\d*>/ +syntax match typstCodeNumberLength + \ contained + \ /\v<\d+(\.\d*)?(pt|mm|cm|in|em)>/ +syntax match typstCodeNumberAngle + \ contained + \ /\v<\d+(\.\d*)?(deg|rad)>/ +syntax match typstCodeNumberRatio + \ contained + \ /\v<\d+(\.\d*)?\%/ +syntax match typstCodeNumberFraction + \ contained + \ /\v<\d+(\.\d*)?fr>/ +syntax region typstCodeString + \ contained + \ start=/"/ skip=/\v\\\\|\\"/ end=/"/ + \ contains=@Spell +syntax match typstCodeLabel + \ contained + \ /\v\<\K%(\k*-*)*\>/ + +" Code > Parens {{{2 +syntax cluster typstCodeParens + \ contains=typstCodeParen + \ ,typstCodeBrace + \ ,typstCodeBracket + \ ,typstCodeDollar + \ ,typstMarkupRawInline + \ ,typstMarkupRawBlock +syntax region typstCodeParen + \ contained + \ matchgroup=Noise start=/(/ end=/)/ + \ contains=@typstCode +syntax region typstCodeBrace + \ contained + \ matchgroup=Noise start=/{/ end=/}/ + \ contains=@typstCode +syntax region typstCodeBracket + \ contained + \ matchgroup=Noise start=/\[/ end=/\]/ + \ contains=@typstMarkup +syntax region typstCodeDollar + \ contained + \ matchgroup=Number start=/\\\@ Keywords {{{2 +syntax cluster typstHashtagKeywords + \ contains=typstHashtagConditional + \ ,typstHashtagRepeat + \ ,typstHashtagKeywords + \ ,typstHashtagStatement + +" syntax match typstHashtagControlFlowError +" \ /\v#%(if|while|for)>-@!.{-}$\_.{-}%(\{|\[|\()/ +syntax match typstHashtagControlFlow + \ /\v#%(if|while|for)>.{-}\ze%(\{|\[|\()/ + \ contains=typstHashtagConditional,typstHashtagRepeat + \ nextgroup=@typstCode +syntax region typstHashtagConditional + \ contained + \ start=/\v#if>/ end=/\v\ze(\{|\[)/ + \ contains=@typstCode +syntax region typstHashtagRepeat + \ contained + \ start=/\v#(while|for)>/ end=/\v\ze(\{|\[)/ + \ contains=@typstCode +syntax match typstHashtagKeyword + \ /\v#(return)>/ + \ skipwhite nextgroup=@typstCode +syntax region typstHashtagStatement + \ matchgroup=typstHashtagStatementWord start=/\v#(let|set|import|include)>/ + \ matchgroup=Noise end=/\v%(;|$)/ + \ contains=@typstCode +syntax region typstHashtagStatement + \ matchgroup=typstHashtagStatementWord start=/#show/ + \ matchgroup=Noise end=/\v%(:|$)/ keepend + \ contains=@typstCode + \ skipwhite nextgroup=@typstCode,typstCodeShowRocket + +" Hashtag > Constants {{{2 +syntax cluster typstHashtagConstants + \ contains=typstHashtagConstant +syntax match typstHashtagConstant + \ /\v#(none|auto|true|false)>/ + +" Hashtag > Identifiers {{{2 +syntax cluster typstHashtagIdentifiers + \ contains=typstHashtagIdentifier + \ ,typstHashtagFieldAccess +syntax match typstHashtagIdentifier + \ /\v#\w\k*>(<%(let|set|show|import|include))@(<%(let|set|show|import|include))@ Functions {{{2 +syntax cluster typstHashtagFunctions + \ contains=typstHashtagFunction +syntax match typstHashtagFunction + \ /\v#\w\k*>(<%(let|set|show|import|include))@ Parens {{{2 +syntax cluster typstHashtagParens + \ contains=typstHashtagParen + \ ,typstHashtagBrace + \ ,typstHashtagBracket + \ ,typstHashtagDollar +syntax region typstHashtagParen + \ matchgroup=Noise start=/#(/ end=/)/ + \ contains=@typstCode +syntax region typstHashtagBrace + \ matchgroup=Noise start=/#{/ end=/}/ + \ contains=@typstCode +syntax region typstHashtagBracket + \ matchgroup=Noise start=/#\[/ end=/\]/ + \ contains=@typstMarkup +syntax region typstHashtagDollar + \ matchgroup=Noise start=/#\$/ end=/\\\@ Text {{{2 +syntax cluster typstMarkupText + \ contains=typstMarkupRawInline + \ ,typstMarkupRawBlock + \ ,typstMarkupLabel + \ ,typstMarkupReference + \ ,typstMarkupUrl + \ ,typstMarkupHeading + \ ,typstMarkupBulletList + \ ,typstMarkupEnumList + \ ,typstMarkupTermList + \ ,typstMarkupBold + \ ,typstMarkupItalic + \ ,typstMarkupLinebreak + \ ,typstMarkupNonbreakingSpace + \ ,typstMarkupShy + \ ,typstMarkupDash + \ ,typstMarkupEllipsis + +" Raw Text +syntax match typstMarkupRawInline + \ /`.\{-}`/ +syntax region typstMarkupRawBlock + \ matchgroup=Macro start=/```\w*/ + \ matchgroup=Macro end=/```/ keepend +syntax region typstMarkupCodeBlockTypst + \ matchgroup=Macro start=/```typst/ + \ matchgroup=Macro end=/```/ contains=@typstCode keepend + \ concealends + +for s:name in get(g:, 'typst_embedded_languages', []) + let s:include = ['syntax include' + \ ,'@typstEmbedded_'..s:name + \ ,'syntax/'..s:name..'.vim'] + let s:rule = ['syn region' + \,s:name + \,'matchgroup=Macro' + \,'start=/```'..s:name..'\>/ end=/```/' + \,'contains=@typstEmbedded_'..s:name + \,'keepend' + \,'concealends'] + execute 'silent! ' .. join(s:include, ' ') + unlet! b:current_syntax + execute join(s:rule, ' ') +endfor + +" Label & Reference +syntax match typstMarkupLabel + \ /\v\<\K%(\k*-*)*\>/ +syntax match typstMarkupReference + \ /\v\@\K%(\k*-*)*/ + +" URL +syntax match typstMarkupUrl + \ #\v\w+://\S*# + +" Heading +syntax match typstMarkupHeading + \ /^\s*\zs=\{1,6}\s.*$/ + \ contains=typstMarkupLabel,@Spell + +" Lists +syntax match typstMarkupBulletList + \ /\v^\s*-\s+/ +syntax match typstMarkupEnumList + \ /\v^\s*(\+|\d+\.)\s+/ +syntax region typstMarkupTermList + \ oneline start=/\v^\s*\/\s/ end=/:/ + \ contains=@typstMarkup + +" Bold & Italic +syntax match typstMarkupBold + \ /\v(\w|\\)@1 Parens {{{2 +syntax cluster typstMarkupParens + \ contains=typstMarkupBracket + \ ,typstMarkupDollar +syntax region typstMarkupBracket + \ matchgroup=Noise start=/\[/ end=/\]/ + \ contains=@typstMarkup +syntax region typstMarkupDollar + \ matchgroup=Special start=/\\\@/ + \ contained +syntax region typstMathQuote + \ matchgroup=String start=/"/ skip=/\\"/ end=/"/ + \ contained + +" Math > Linked groups {{{2 +highlight default link typstMathIdentifier Identifier +highlight default link typstMathFunction Statement +highlight default link typstMathNumber Number +highlight default link typstMathSymbol Statement + +" Highlighting {{{1 + +" Highlighting > Linked groups {{{2 +highlight default link typstCommentBlock Comment +highlight default link typstCommentLine Comment +highlight default link typstCommentTodo Todo +highlight default link typstCodeConditional Conditional +highlight default link typstCodeRepeat Repeat +highlight default link typstCodeKeyword Keyword +highlight default link typstCodeConstant Constant +highlight default link typstCodeNumberInteger Number +highlight default link typstCodeNumberFloat Number +highlight default link typstCodeNumberLength Number +highlight default link typstCodeNumberAngle Number +highlight default link typstCodeNumberRatio Number +highlight default link typstCodeNumberFraction Number +highlight default link typstCodeString String +highlight default link typstCodeLabel Structure +highlight default link typstCodeStatementWord Statement +highlight default link typstCodeIdentifier Identifier +highlight default link typstCodeFieldAccess Identifier +highlight default link typstCodeFunction Function +highlight default link typstCodeParen Noise +highlight default link typstCodeBrace Noise +highlight default link typstCodeBracket Noise +highlight default link typstCodeDollar Noise +" highlight default link typstHashtagControlFlowError Error +highlight default link typstHashtagConditional Conditional +highlight default link typstHashtagRepeat Repeat +highlight default link typstHashtagKeyword Keyword +highlight default link typstHashtagConstant Constant +highlight default link typstHashtagStatementWord Statement +highlight default link typstHashtagIdentifier Identifier +highlight default link typstHashtagFieldAccess Identifier +highlight default link typstHashtagFunction Function +highlight default link typstHashtagParen Noise +highlight default link typstHashtagBrace Noise +highlight default link typstHashtagBracket Noise +highlight default link typstHashtagDollar Noise +highlight default link typstMarkupRawInline Macro +highlight default link typstMarkupRawBlock Macro +highlight default link typstMarkupLabel Structure +highlight default link typstMarkupReference Structure +highlight default link typstMarkupBulletList Structure +" highlight default link typstMarkupItalicError Error +" highlight default link typstMarkupBoldError Error +highlight default link typstMarkupEnumList Structure +highlight default link typstMarkupLinebreak Structure +highlight default link typstMarkupNonbreakingSpace Structure +highlight default link typstMarkupShy Structure +highlight default link typstMarkupDash Structure +highlight default link typstMarkupEllipsis Structure +highlight default link typstMarkupTermList Structure +highlight default link typstMarkupDollar Noise + +" Highlighting > Custom Styling {{{2 +highlight! Conceal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE + +highlight default typstMarkupHeading term=underline,bold cterm=underline,bold gui=underline,bold +highlight default typstMarkupUrl term=underline cterm=underline gui=underline +highlight default typstMarkupBold term=bold cterm=bold gui=bold +highlight default typstMarkupItalic term=italic cterm=italic gui=italic +highlight default typstMarkupBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic + +let b:current_syntax = 'typst' + +let &cpo = s:cpo_save +unlet s:cpo_save + +" }}}1 diff --git a/git/usr/share/vim/vim92/syntax/uc.vim b/git/usr/share/vim/vim92/syntax/uc.vim new file mode 100644 index 0000000000000000000000000000000000000000..90d33396c538021c310f4636ab7f4e4bc32db29f --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/uc.vim @@ -0,0 +1,165 @@ +" Vim syntax file +" Language: UnrealScript +" Maintainer: Mark Ferrell +" URL: ftp://ftp.chaoticdreams.org/pub/ut/vim/uc.vim +" Credits: Based on the java.vim syntax file by Claudio Fleiner +" Last change: 2003 May 31 + +" Please check :help uc.vim for comments on some of the options available. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" some characters that cannot be in a UnrealScript program (outside a string) +syn match ucError "[\\@`]" +syn match ucError "<<<\|\.\.\|=>\|<>\|||=\|&&=\|[^-]->\|\*\/" + +" we define it here so that included files can test for it +if !exists("main_syntax") + let main_syntax='uc' +endif + +syntax case ignore + +" keyword definitions +syn keyword ucBranch break continue +syn keyword ucConditional if else switch +syn keyword ucRepeat while for do foreach +syn keyword ucBoolean true false +syn keyword ucConstant null +syn keyword ucOperator new instanceof +syn keyword ucType boolean char byte short int long float double +syn keyword ucType void Pawn sound state auto exec function ipaddr +syn keyword ucType ELightType actor ammo defaultproperties bool +syn keyword ucType native noexport var out vector name local string +syn keyword ucType event +syn keyword ucStatement return +syn keyword ucStorageClass static synchronized transient volatile final +syn keyword ucMethodDecl synchronized throws + +" UnrealScript defines classes in sorta fscked up fashion +syn match ucClassDecl "^[Cc]lass[\s$]*\S*[\s$]*expands[\s$]*\S*;" contains=ucSpecial,ucSpecialChar,ucClassKeys +syn keyword ucClassKeys class expands extends +syn match ucExternal "^\#exec.*" contains=ucCommentString,ucNumber +syn keyword ucScopeDecl public protected private abstract + +" UnrealScript Functions +syn match ucFuncDef "^.*function\s*[\(]*" contains=ucType,ucStorageClass +syn match ucEventDef "^.*event\s*[\(]*" contains=ucType,ucStorageClass +syn match ucClassLabel "[a-zA-Z0-9]*\'[a-zA-Z0-9]*\'" contains=ucCharacter + +syn region ucLabelRegion transparent matchgroup=ucLabel start="\" matchgroup=NONE end=":" contains=ucNumber +syn match ucUserLabel "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=ucLabel +syn keyword ucLabel default + +" The following cluster contains all java groups except the contained ones +syn cluster ucTop contains=ucExternal,ucError,ucError,ucBranch,ucLabelRegion,ucLabel,ucConditional,ucRepeat,ucBoolean,ucConstant,ucTypedef,ucOperator,ucType,ucType,ucStatement,ucStorageClass,ucMethodDecl,ucClassDecl,ucClassDecl,ucClassDecl,ucScopeDecl,ucError,ucError2,ucUserLabel,ucClassLabel + +" Comments +syn keyword ucTodo contained TODO FIXME XXX +syn region ucCommentString contained start=+"+ end=+"+ end=+\*/+me=s-1,he=s-1 contains=ucSpecial,ucCommentStar,ucSpecialChar +syn region ucComment2String contained start=+"+ end=+$\|"+ contains=ucSpecial,ucSpecialChar +syn match ucCommentCharacter contained "'\\[^']\{1,6\}'" contains=ucSpecialChar +syn match ucCommentCharacter contained "'\\''" contains=ucSpecialChar +syn match ucCommentCharacter contained "'[^\\]'" +syn region ucComment start="/\*" end="\*/" contains=ucCommentString,ucCommentCharacter,ucNumber,ucTodo +syn match ucCommentStar contained "^\s*\*[^/]"me=e-1 +syn match ucCommentStar contained "^\s*\*$" +syn match ucLineComment "//.*" contains=ucComment2String,ucCommentCharacter,ucNumber,ucTodo +hi link ucCommentString ucString +hi link ucComment2String ucString +hi link ucCommentCharacter ucCharacter + +syn cluster ucTop add=ucComment,ucLineComment + +" match the special comment /**/ +syn match ucComment "/\*\*/" + +" Strings and constants +syn match ucSpecialError contained "\\." +"syn match ucSpecialCharError contained "[^']" +syn match ucSpecialChar contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)" +syn region ucString start=+"+ end=+"+ contains=ucSpecialChar,ucSpecialError +syn match ucStringError +"\([^"\\]\|\\.\)*$+ +syn match ucCharacter "'[^']*'" contains=ucSpecialChar,ucSpecialCharError +syn match ucCharacter "'\\''" contains=ucSpecialChar +syn match ucCharacter "'[^\\]'" +syn match ucNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>" +syn match ucNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\=" +syn match ucNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>" +syn match ucNumber "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>" + +" unicode characters +syn match ucSpecial "\\u\d\{4\}" + +syn cluster ucTop add=ucString,ucCharacter,ucNumber,ucSpecial,ucStringError + +" catch errors caused by wrong parenthesis +syn region ucParen transparent start="(" end=")" contains=@ucTop,ucParen +syn match ucParenError ")" +hi link ucParenError ucError + +if !exists("uc_minlines") + let uc_minlines = 10 +endif +exec "syn sync ccomment ucComment minlines=" . uc_minlines + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link ucFuncDef Conditional +hi def link ucEventDef Conditional +hi def link ucBraces Function +hi def link ucBranch Conditional +hi def link ucLabel Label +hi def link ucUserLabel Label +hi def link ucConditional Conditional +hi def link ucRepeat Repeat +hi def link ucStorageClass StorageClass +hi def link ucMethodDecl ucStorageClass +hi def link ucClassDecl ucStorageClass +hi def link ucScopeDecl ucStorageClass +hi def link ucBoolean Boolean +hi def link ucSpecial Special +hi def link ucSpecialError Error +hi def link ucSpecialCharError Error +hi def link ucString String +hi def link ucCharacter Character +hi def link ucSpecialChar SpecialChar +hi def link ucNumber Number +hi def link ucError Error +hi def link ucStringError Error +hi def link ucStatement Statement +hi def link ucOperator Operator +hi def link ucOverLoaded Operator +hi def link ucComment Comment +hi def link ucDocComment Comment +hi def link ucLineComment Comment +hi def link ucConstant ucBoolean +hi def link ucTypedef Typedef +hi def link ucTodo Todo + +hi def link ucCommentTitle SpecialComment +hi def link ucDocTags Special +hi def link ucDocParam Function +hi def link ucCommentStar ucComment + +hi def link ucType Type +hi def link ucExternal Include + +hi def link ucClassKeys Conditional +hi def link ucClassLabel Conditional + +hi def link htmlComment Special +hi def link htmlCommentPart Special + + +let b:current_syntax = "uc" + +if main_syntax == 'uc' + unlet main_syntax +endif + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/uci.vim b/git/usr/share/vim/vim92/syntax/uci.vim new file mode 100644 index 0000000000000000000000000000000000000000..fdf5bfd9b3d50101c01c7a1361b4bff274ac4008 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/uci.vim @@ -0,0 +1,33 @@ +" Vim syntax file +" Language: OpenWrt Unified Configuration Interface +" Maintainer: Colin Caine +" Upstream: https://github.com/cmcaine/vim-uci +" Last Change: 2021 Sep 19 +" +" For more information on uci, see https://openwrt.org/docs/guide-user/base-system/uci + +if exists("b:current_syntax") + finish +endif + +" Fancy zero-width non-capturing look-behind to see what the last word was. +" Would be really nice if there was some less obscure or more efficient way to +" do this. +syntax match uciOptionName '\%(\%(option\|list\)\s\+\)\@<=\S*' +syntax match uciConfigName '\%(\%(package\|config\)\s\+\)\@<=\S*' +syntax keyword uciConfigDec package config nextgroup=uciConfigName skipwhite +syntax keyword uciOptionType option list nextgroup=uciOptionName skipwhite + +" Standard matches. +syntax match uciComment "#.*$" +syntax region uciString start=+"+ end=+"+ skip=+\\"+ +syntax region uciString start=+'+ end=+'+ skip=+\\'+ + +highlight default link uciConfigName Identifier +highlight default link uciOptionName Constant +highlight default link uciConfigDec Statement +highlight default link uciOptionType Type +highlight default link uciComment Comment +highlight default link uciString Normal + +let b:current_syntax = "uci" diff --git a/git/usr/share/vim/vim92/syntax/udevconf.vim b/git/usr/share/vim/vim92/syntax/udevconf.vim new file mode 100644 index 0000000000000000000000000000000000000000..82fd81daf65f044598844fec1a4f43b6cca62aca --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/udevconf.vim @@ -0,0 +1,39 @@ +" Vim syntax file +" Language: udev(8) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword udevconfTodo contained TODO FIXME XXX NOTE + +syn region udevconfComment display oneline start='^\s*#' end='$' + \ contains=udevconfTodo,@Spell + +syn match udevconfBegin display '^' + \ nextgroup=udevconfVariable,udevconfComment + \ skipwhite + +syn keyword udevconfVariable contained udev_root udev_db udev_rules udev_log + \ nextgroup=udevconfVariableEq + +syn match udevconfVariableEq contained '[[:space:]=]' + \ nextgroup=udevconfString skipwhite + +syn region udevconfString contained display oneline start=+"+ end=+"+ + +hi def link udevconfTodo Todo +hi def link udevconfComment Comment +hi def link udevconfVariable Identifier +hi def link udevconfVariableEq Operator +hi def link udevconfString String + +let b:current_syntax = "udevconf" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/udevperm.vim b/git/usr/share/vim/vim92/syntax/udevperm.vim new file mode 100644 index 0000000000000000000000000000000000000000..abda0b6663cde846b9d71ef1d799edb145e99093 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/udevperm.vim @@ -0,0 +1,69 @@ +" Vim syntax file +" Language: udev(8) permissions file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match udevpermBegin display '^' nextgroup=udevpermDevice + +syn match udevpermDevice contained display '[^:]\+' + \ contains=udevpermPattern + \ nextgroup=udevpermUserColon + +syn match udevpermPattern contained '[*?]' +syn region udevpermPattern contained start='\[!\=' end='\]' + \ contains=udevpermPatRange + +syn match udevpermPatRange contained '[^[-]-[^]-]' + +syn match udevpermUserColon contained display ':' + \ nextgroup=udevpermUser + +syn match udevpermUser contained display '[^:]\+' + \ nextgroup=udevpermGroupColon + +syn match udevpermGroupColon contained display ':' + \ nextgroup=udevpermGroup + +syn match udevpermGroup contained display '[^:]\+' + \ nextgroup=udevpermPermColon + +syn match udevpermPermColon contained display ':' + \ nextgroup=udevpermPerm + +syn match udevpermPerm contained display '\<0\=\o\+\>' + \ contains=udevpermOctalZero + +syn match udevpermOctalZero contained display '\<0' +syn match udevpermOctalError contained display '\<0\o*[89]\d*\>' + +syn keyword udevpermTodo contained TODO FIXME XXX NOTE + +syn region udevpermComment display oneline start='^\s*#' end='$' + \ contains=udevpermTodo,@Spell + +hi def link udevpermTodo Todo +hi def link udevpermComment Comment +hi def link udevpermDevice String +hi def link udevpermPattern SpecialChar +hi def link udevpermPatRange udevpermPattern +hi def link udevpermColon Normal +hi def link udevpermUserColon udevpermColon +hi def link udevpermUser Identifier +hi def link udevpermGroupColon udevpermColon +hi def link udevpermGroup Type +hi def link udevpermPermColon udevpermColon +hi def link udevpermPerm Number +hi def link udevpermOctalZero PreProc +hi def link udevpermOctalError Error + +let b:current_syntax = "udevperm" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/udevrules.vim b/git/usr/share/vim/vim92/syntax/udevrules.vim new file mode 100644 index 0000000000000000000000000000000000000000..ce156ccc13515499273c95bad5dd409651039f8e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/udevrules.vim @@ -0,0 +1,171 @@ +" Vim syntax file +" Language: udev(8) rules file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-12-18 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" TODO: Line continuations. + +syn keyword udevrulesTodo contained TODO FIXME XXX NOTE + +syn region udevrulesComment display oneline start='^\s*#' end='$' + \ contains=udevrulesTodo,@Spell + +syn keyword udevrulesRuleKey ACTION DEVPATH KERNEL SUBSYSTEM KERNELS + \ SUBSYSTEMS DRIVERS RESULT + \ nextgroup=udevrulesRuleTest + \ skipwhite + +syn keyword udevrulesRuleKey ATTRS nextgroup=udevrulesAttrsPath + +syn region udevrulesAttrsPath display transparent + \ matchgroup=udevrulesDelimiter start='{' + \ matchgroup=udevrulesDelimiter end='}' + \ contains=udevrulesPath + \ nextgroup=udevrulesRuleTest + \ skipwhite + +syn keyword udevrulesRuleKey ENV nextgroup=udevrulesEnvVar + +syn region udevrulesEnvVar display transparent + \ matchgroup=udevrulesDelimiter start='{' + \ matchgroup=udevrulesDelimiter end='}' + \ contains=udevrulesVariable + \ nextgroup=udevrulesRuleTest,udevrulesRuleEq + \ skipwhite + +syn keyword udevrulesRuleKey PROGRAM RESULT + \ nextgroup=udevrulesEStringTest,udevrulesEStringEq + \ skipwhite + +syn keyword udevrulesAssignKey NAME SYMLINK OWNER GROUP RUN + \ nextgroup=udevrulesEStringEq + \ skipwhite + +syn keyword udevrulesAssignKey MODE LABEL GOTO WAIT_FOR_SYSFS + \ nextgroup=udevrulesRuleEq + \ skipwhite + +syn keyword udevrulesAssignKey ATTR nextgroup=udevrulesAttrsPath + +syn region udevrulesAttrKey display transparent + \ matchgroup=udevrulesDelimiter start='{' + \ matchgroup=udevrulesDelimiter end='}' + \ contains=udevrulesKey + \ nextgroup=udevrulesRuleEq + \ skipwhite + +syn keyword udevrulesAssignKey IMPORT nextgroup=udevrulesImport, + \ udevrulesEStringEq + \ skipwhite + +syn region udevrulesImport display transparent + \ matchgroup=udevrulesDelimiter start='{' + \ matchgroup=udevrulesDelimiter end='}' + \ contains=udevrulesImportType + \ nextgroup=udevrulesEStringEq + \ skipwhite + +syn keyword udevrulesImportType program file parent + +syn keyword udevrulesAssignKey OPTIONS + \ nextgroup=udevrulesOptionsEq + +syn match udevrulesPath contained display '[^}]\+' + +syn match udevrulesVariable contained display '[^}]\+' + +syn match udevrulesRuleTest contained display '[=!:]=' + \ nextgroup=udevrulesString skipwhite + +syn match udevrulesEStringTest contained display '[=!+:]=' + \ nextgroup=udevrulesEString skipwhite + +syn match udevrulesRuleEq contained display '+=\|=\ze[^=]' + \ nextgroup=udevrulesString skipwhite + +syn match udevrulesEStringEq contained '+=\|=\ze[^=]' + \ nextgroup=udevrulesEString skipwhite + +syn match udevrulesOptionsEq contained '+=\|=\ze[^=]' + \ nextgroup=udevrulesOptions skipwhite + +syn region udevrulesEString contained display oneline start=+"+ end=+"+ + \ contains=udevrulesStrEscapes,udevrulesStrVars + +syn match udevrulesStrEscapes contained '%[knpbMmcPrN%]' + +" TODO: This can actually stand alone (without {…}), so add a nextgroup here. +syn region udevrulesStrEscapes contained start='%c{' end='}' + \ contains=udevrulesStrNumber + +syn region udevrulesStrEscapes contained start='%s{' end='}' + \ contains=udevrulesPath + +syn region udevrulesStrEscapes contained start='%E{' end='}' + \ contains=udevrulesVariable + +syn match udevrulesStrNumber contained '\d\++\=' + +syn match udevrulesStrVars contained display '$\%(kernel\|number\|devpath\|id\|major\|minor\|result\|parent\|root\|tempnode\)\>' + +syn region udevrulesStrVars contained start='$attr{' end='}' + \ contains=udevrulesPath + +syn region udevrulesStrVars contained start='$env{' end='}' + \ contains=udevrulesVariable + +syn match udevrulesStrVars contained display '\$\$' + +syn region udevrulesString contained display oneline start=+"+ end=+"+ + \ contains=udevrulesPattern + +syn match udevrulesPattern contained '[*?]' +syn region udevrulesPattern contained start='\[!\=' end='\]' + \ contains=udevrulesPatRange + +syn match udevrulesPatRange contained '[^[-]-[^]-]' + +syn region udevrulesOptions contained display oneline start=+"+ end=+"+ + \ contains=udevrulesOption,udevrulesOptionSep + +syn keyword udevrulesOption contained last_rule ignore_device ignore_remove + \ all_partitions + +syn match udevrulesOptionSep contained ',' + +hi def link udevrulesTodo Todo +hi def link udevrulesComment Comment +hi def link udevrulesRuleKey Keyword +hi def link udevrulesDelimiter Delimiter +hi def link udevrulesAssignKey Identifier +hi def link udevrulesPath Identifier +hi def link udevrulesVariable Identifier +hi def link udevrulesAttrKey Identifier +" XXX: setting this to Operator makes for extremely intense highlighting. +hi def link udevrulesEq Normal +hi def link udevrulesRuleEq udevrulesEq +hi def link udevrulesEStringEq udevrulesEq +hi def link udevrulesOptionsEq udevrulesEq +hi def link udevrulesEString udevrulesString +hi def link udevrulesStrEscapes SpecialChar +hi def link udevrulesStrNumber Number +hi def link udevrulesStrVars Identifier +hi def link udevrulesString String +hi def link udevrulesPattern SpecialChar +hi def link udevrulesPatRange SpecialChar +hi def link udevrulesOptions udevrulesString +hi def link udevrulesOption Type +hi def link udevrulesOptionSep Delimiter +hi def link udevrulesImportType Type + +let b:current_syntax = "udevrules" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/uil.vim b/git/usr/share/vim/vim92/syntax/uil.vim new file mode 100644 index 0000000000000000000000000000000000000000..088a0f6c8605a471014d1b136a91939521cd7bf4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/uil.vim @@ -0,0 +1,75 @@ +" Vim syntax file +" Language: Motif UIL (User Interface Language) +" Maintainer: Thomas Koehler +" Please be aware: I'm often slow to answer email due to a high +" non-computer related workload (sometimes 4-8 weeks) +" Last Change: 2016 September 6 +" URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" A bunch of useful keywords +syn keyword uilType arguments callbacks color +syn keyword uilType compound_string controls end +syn keyword uilType exported file include +syn keyword uilType module object procedure +syn keyword uilType user_defined xbitmapfile + +syn keyword uilTodo contained TODO + +" String and Character constants +" Highlight special characters (those which have a backslash) differently +syn match uilSpecial contained "\\\d\d\d\|\\." +syn region uilString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,uilSpecial +syn match uilCharacter "'[^\\]'" +syn region uilString start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,uilSpecial +syn match uilSpecialCharacter "'\\.'" +syn match uilSpecialStatement "Xm[^ =(){}:;]*" +syn match uilSpecialFunction "MrmNcreateCallback" +syn match uilRessource "XmN[^ =(){}:;]*" + +syn match uilNumber "-\=\<\d*\.\=\d\+\(e\=f\=\|[uU]\=[lL]\=\)\>" +syn match uilNumber "0[xX]\x\+\>" + +syn region uilComment start="/\*" end="\*/" contains=@Spell,uilTodo +syn match uilComment "!.*" contains=@Spell,uilTodo +syn match uilCommentError "\*/" + +syn region uilPreCondit start="^#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=uilComment,uilString,uilCharacter,uilNumber,uilCommentError +syn match uilIncluded contained "<[^>]*>" +syn match uilInclude "^#\s*include\s\+." contains=uilString,uilIncluded +syn match uilLineSkip "\\$" +syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError + +syn sync ccomment uilComment + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default highlighting. +hi def link uilCharacter uilString +hi def link uilSpecialCharacter uilSpecial +hi def link uilNumber uilString +hi def link uilCommentError uilError +hi def link uilInclude uilPreCondit +hi def link uilDefine uilPreCondit +hi def link uilIncluded uilString +hi def link uilSpecialFunction uilRessource +hi def link uilRessource Identifier +hi def link uilSpecialStatement Keyword +hi def link uilError Error +hi def link uilPreCondit PreCondit +hi def link uilType Type +hi def link uilString String +hi def link uilComment Comment +hi def link uilSpecial Special +hi def link uilTodo Todo + + + +let b:current_syntax = "uil" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/unison.vim b/git/usr/share/vim/vim92/syntax/unison.vim new file mode 100644 index 0000000000000000000000000000000000000000..a1f8cb09906a38bdb7c11e7635d74e49a3bd4eee --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/unison.vim @@ -0,0 +1,105 @@ +" Vim syntax file +" +" Language: unison +" Maintainer: Anton Parkhomenko +" Last Change: Oct 25, 2025 +" Original Author: John Williams, Paul Chiusano and Rúnar Bjarnason + +if exists("b:current_syntax") + finish +endif + +syntax include @markdown $VIMRUNTIME/syntax/markdown.vim + +syn cluster markdownLikeDocs contains=markdownBold,markdownItalic,markdownLinkText,markdownListMarker,markdownOrderedListMarker,markdownH1,markdownH2,markdownH3,markdownH4,markdownH5,markdownH6 + +syn match unisonOperator "[-!#$%&\*\+/<=>\?@\\^|~]" +syn match unisonDelimiter "[\[\](){},.]" + +" Strings and constants +syn match unisonSpecialChar contained "\\\([0-9]\+\|o[0-7]\+\|x[0-9a-fA-F]\+\|[\"\\'&\\abfnrtv]\|^[A-Z^_\[\\\]]\)" +syn match unisonSpecialChar contained "\\\(NUL\|SOH\|STX\|ETX\|EOT\|ENQ\|ACK\|BEL\|BS\|HT\|LF\|VT\|FF\|CR\|SO\|SI\|DLE\|DC1\|DC2\|DC3\|DC4\|NAK\|SYN\|ETB\|CAN\|EM\|SUB\|ESC\|FS\|GS\|RS\|US\|SP\|DEL\)" +syn match unisonSpecialCharError contained "\\&\|'''\+" +syn region unisonString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=unisonSpecialChar +syn match unisonCharacter "[^a-zA-Z0-9_']'\([^\\]\|\\[^']\+\|\\'\)'"lc=1 contains=unisonSpecialChar,unisonSpecialCharError +syn match unisonCharacter "^'\([^\\]\|\\[^']\+\|\\'\)'" contains=unisonSpecialChar,unisonSpecialCharError +syn match unisonNumber "\<[0-9]\+\>\|\<0[xX][0-9a-fA-F]\+\>\|\<0[oO][0-7]\+\>\|\<0[bB][01]\+\>" +syn match unisonFloat "\<[0-9]\+\.[0-9]\+\([eE][-+]\=[0-9]\+\)\=\>" + +" Keyword definitions. These must be patterns instead of keywords +" because otherwise they would match as keywords at the start of a +" "literate" comment (see lu.vim). +syn match unisonModule "\" +syn match unisonImport "\" +syn match unisonTypedef "\<\(unique\|structural\|∀\|forall\)\>" +syn match unisonStatement "\<\(ability\|do\|type\|where\|match\|cases\|;\|let\|with\|handle\)\>" +syn match unisonConditional "\<\(if\|else\|then\)\>" + +syn match unisonBoolean "\<\(true\|false\)\>" + +syn match unisonType "\<\C[A-Z][0-9A-Za-z_'!]*\>" +syn match unisonName "\<\C[a-z_][0-9A-Za-z_'!]*\>" contains=ALL +syn match unisonDef "^\C[A-Za-z_][0-9A-Za-z_'!]*:" + +" Comments +syn match unisonLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$" +syn region unisonBlockComment start="{-" end="-}" contains=unisonBlockComment +syn region unisonBelowFold start="^---" skip="." end="." contains=unisonBelowFold + +" Docs +syn region unisonDocBlock matchgroup=unisonDoc start="{{" end="}}" contains=unisonDocTypecheck,unisonDocQuasiquote,unisonDocDirective,unisonDocCode,unisonDocCodeInline,unisonDocCodeRaw,unisonDocMono,@markdownLikeDocs +syn region unisonDocQuasiquote contained matchgroup=unisonDocQuote start="{{" end= "}}" contains=TOP +syn region unisonDocCode contained matchgroup=unisonDocCode start="^\s*```\s*$" end="^\s*```\s*$" contains=TOP +syn region unisonDocTypecheck contained matchgroup=unisonDocCode start="^\s*@typecheck\s*```\s*$" end="^\s*```\s*$" contains=TOP +syn region unisonDocCodeRaw contained matchgroup=unisonDocCode start="^\s*```\s*raw\s*$" end="^\s*```\s*$" contains=NoSyntax +syn region unisonDocCodeInline contained matchgroup=unisonDocCode start="`\@" + +" things like +" > my_func 1 3 +" test> Function.tap.tests.t1 = check let +" use Nat == + +" ( 99, 100 ) === (withInitialValue 0 do +" : : : +syn match unisonWatch "^[A-Za-z]*>" + +hi def link unisonWatch Debug +hi def link unisonDocMono Delimiter +hi def link unisonDocDirective Import +hi def link unisonDocQuote Delimiter +hi def link unisonDocCode Delimiter +hi def link unisonDoc String +hi def link unisonBelowFold Comment +hi def link unisonBlockComment Comment +hi def link unisonBoolean Boolean +hi def link unisonCharacter Character +hi def link unisonComment Comment +hi def link unisonConditional Conditional +hi def link unisonConditional Conditional +hi def link unisonDebug Debug +hi def link unisonDelimiter Delimiter +hi def link unisonDocBlock String +hi def link unisonDocDirective Import +hi def link unisonDocIncluded Import +hi def link unisonFloat Float +hi def link unisonImport Include +hi def link unisonLineComment Comment +hi def link unisonLink Type +hi def link unisonName Identifier +hi def link unisonDef Typedef +hi def link unisonNumber Number +hi def link unisonOperator Operator +hi def link unisonSpecialChar SpecialChar +hi def link unisonSpecialCharError Error +hi def link unisonStatement Statement +hi def link unisonString String +hi def link unisonType Type +hi def link unisonTypedef Typedef + + +let b:current_syntax = "unison" + +" Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim diff --git a/git/usr/share/vim/vim92/syntax/updatedb.vim b/git/usr/share/vim/vim92/syntax/updatedb.vim new file mode 100644 index 0000000000000000000000000000000000000000..224a7dd2c2c967904649c6a3c5e36a72cc57dccb --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/updatedb.vim @@ -0,0 +1,41 @@ +" Vim syntax file +" Language: updatedb.conf(5) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2009-05-25 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword updatedbTodo contained TODO FIXME XXX NOTE + +syn region updatedbComment display oneline start='^\s*#' end='$' + \ contains=updatedbTodo,@Spell + +syn match updatedbBegin display '^' + \ nextgroup=updatedbName,updatedbComment skipwhite + +syn keyword updatedbName contained + \ PRUNEFS + \ PRUNENAMES + \ PRUNEPATHS + \ PRUNE_BIND_MOUNTS + \ nextgroup=updatedbNameEq + +syn match updatedbNameEq contained display '=' nextgroup=updatedbValue + +syn region updatedbValue contained display oneline start='"' end='"' + +hi def link updatedbTodo Todo +hi def link updatedbComment Comment +hi def link updatedbName Identifier +hi def link updatedbNameEq Operator +hi def link updatedbValue String + +let b:current_syntax = "updatedb" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/upstart.vim b/git/usr/share/vim/vim92/syntax/upstart.vim new file mode 100644 index 0000000000000000000000000000000000000000..140cd174e0a984a48abc8a836fcf4e63af6b8a89 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/upstart.vim @@ -0,0 +1,111 @@ +" Vim syntax file +" Language: Upstart job files +" Maintainer: Michael Biebl +" James Hunt +" Last Change: 2012 Jan 16 +" License: The Vim license +" Version: 0.4 +" Remark: Syntax highlighting for Upstart (init(8)) job files. +" +" It is inspired by the initng syntax file and includes sh.vim to do the +" highlighting of script blocks. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let is_bash = 1 +syn include @Shell syntax/sh.vim + +syn case match + +" avoid need to use 'match' for most events +setlocal iskeyword+=- + +syn match upstartComment /#.*$/ contains=upstartTodo +syn keyword upstartTodo TODO FIXME contained + +syn region upstartString start=/"/ end=/"/ skip=/\\"/ + +syn region upstartScript matchgroup=upstartStatement start="script" end="end script" contains=@upstartShellCluster + +syn cluster upstartShellCluster contains=@Shell + +" one argument +syn keyword upstartStatement description author version instance expect +syn keyword upstartStatement pid kill normal console env exit export +syn keyword upstartStatement umask nice oom chroot chdir exec + +" two arguments +syn keyword upstartStatement limit + +" one or more arguments (events) +syn keyword upstartStatement emits + +syn keyword upstartStatement on start stop + +" flag, no parameter +syn keyword upstartStatement respawn service instance manual debug task + +" prefix for exec or script +syn keyword upstartOption pre-start post-start pre-stop post-stop + +" option for kill +syn keyword upstartOption timeout +" option for oom +syn keyword upstartOption never +" options for console +syn keyword upstartOption output owner +" options for expect +syn keyword upstartOption fork daemon +" options for limit +syn keyword upstartOption unlimited + +" 'options' for start/stop on +syn keyword upstartOption and or + +" Upstart itself and associated utilities +syn keyword upstartEvent runlevel +syn keyword upstartEvent started +syn keyword upstartEvent starting +syn keyword upstartEvent startup +syn keyword upstartEvent stopped +syn keyword upstartEvent stopping +syn keyword upstartEvent control-alt-delete +syn keyword upstartEvent keyboard-request +syn keyword upstartEvent power-status-changed + +" D-Bus +syn keyword upstartEvent dbus-activation + +" Display Manager (ie gdm) +syn keyword upstartEvent desktop-session-start +syn keyword upstartEvent login-session-start + +" mountall +syn keyword upstartEvent all-swaps +syn keyword upstartEvent filesystem +syn keyword upstartEvent mounted +syn keyword upstartEvent mounting +syn keyword upstartEvent local-filesystems +syn keyword upstartEvent remote-filesystems +syn keyword upstartEvent virtual-filesystems + +" SysV umountnfs.sh +syn keyword upstartEvent mounted-remote-filesystems + +" upstart-udev-bridge and ifup/down +syn match upstartEvent /\<\i\{-1,}-device-\(added\|removed\|up\|down\)/ + +" upstart-socket-bridge +syn keyword upstartEvent socket + +hi def link upstartComment Comment +hi def link upstartTodo Todo +hi def link upstartString String +hi def link upstartStatement Statement +hi def link upstartOption Type +hi def link upstartEvent Define + +let b:current_syntax = "upstart" diff --git a/git/usr/share/vim/vim92/syntax/upstreamdat.vim b/git/usr/share/vim/vim92/syntax/upstreamdat.vim new file mode 100644 index 0000000000000000000000000000000000000000..e3b415a4bc02eec62d086c9fc23da0bbf675ded7 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/upstreamdat.vim @@ -0,0 +1,305 @@ +" Vim syntax file +" Language: Innovation Data Processing upstream.dat file +" Maintainer: Rob Owens +" Latest Revision: 2013-11-27 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Parameters: +syn keyword upstreamdat_Parameter ACCEPTPCREMOTE +syn keyword upstreamdat_Parameter ACCEPTREMOTE +syn keyword upstreamdat_Parameter ACTION +syn keyword upstreamdat_Parameter ACTIVATEONENTRY +syn keyword upstreamdat_Parameter ARCHIVEBIT +syn keyword upstreamdat_Parameter ARCHIVEBIT +syn keyword upstreamdat_Parameter ASCTOEBC +syn keyword upstreamdat_Parameter ASRBACKUP +syn keyword upstreamdat_Parameter ATTENDED +syn keyword upstreamdat_Parameter AUTHORITATIVE +syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE +syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE +syn keyword upstreamdat_Parameter BACKUPPROFILE +syn keyword upstreamdat_Parameter BACKUPPROFILE2 +syn keyword upstreamdat_Parameter BACKUPREPARSEFILES +syn keyword upstreamdat_Parameter BACKUPREPARSEFILES +syn keyword upstreamdat_Parameter BACKUPVERIFY +syn keyword upstreamdat_Parameter BLANKTRUNC +syn keyword upstreamdat_Parameter CALCDASDSIZE +syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS +syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS +syn keyword upstreamdat_Parameter COMPRESSLEVEL +syn keyword upstreamdat_Parameter CONTROLFILE +syn keyword upstreamdat_Parameter DASDOVERRIDE +syn keyword upstreamdat_Parameter DATELIMIT +syn keyword upstreamdat_Parameter DATELIMIT +syn keyword upstreamdat_Parameter DAYSOLD +syn keyword upstreamdat_Parameter DAYSOLD +syn keyword upstreamdat_Parameter DELETED +syn keyword upstreamdat_Parameter DELETED +syn keyword upstreamdat_Parameter DELETEPROMPTS +syn keyword upstreamdat_Parameter DELETEPROMPTS +syn keyword upstreamdat_Parameter DESTINATION +syn keyword upstreamdat_Parameter DESTINATION +syn keyword upstreamdat_Parameter DIRDELETE +syn keyword upstreamdat_Parameter DIRECTORVMC +syn keyword upstreamdat_Parameter DIRONLYRESTOREOK +syn keyword upstreamdat_Parameter DIRSONLY +syn keyword upstreamdat_Parameter DIRSONLY +syn keyword upstreamdat_Parameter DISASTERRECOVERY +syn keyword upstreamdat_Parameter DISPLAY +syn keyword upstreamdat_Parameter DRIVEALIAS +syn keyword upstreamdat_Parameter DRIVEALIAS +syn keyword upstreamdat_Parameter DUALCOPY +syn keyword upstreamdat_Parameter DUPDAYS +syn keyword upstreamdat_Parameter DUPLICATE +syn keyword upstreamdat_Parameter EBCTOASC +syn keyword upstreamdat_Parameter ENCRYPT +syn keyword upstreamdat_Parameter ENCRYPTLEVEL +syn keyword upstreamdat_Parameter EXCLUDELISTNAME +syn keyword upstreamdat_Parameter FAILBACKUPONERROR +syn keyword upstreamdat_Parameter FAILBACKUPONERROR +syn keyword upstreamdat_Parameter FAILIFNOFILES +syn keyword upstreamdat_Parameter FAILIFNOFILES +syn keyword upstreamdat_Parameter FAILIFSKIP +syn keyword upstreamdat_Parameter FAILJOB +syn keyword upstreamdat_Parameter FAILRESTOREONERROR +syn keyword upstreamdat_Parameter FAILRESTOREONERROR +syn keyword upstreamdat_Parameter FILEDATE +syn keyword upstreamdat_Parameter FILEDATE +syn keyword upstreamdat_Parameter FILEDELETE +syn keyword upstreamdat_Parameter FILEDELETE +syn keyword upstreamdat_Parameter FILES +syn keyword upstreamdat_Parameter FILES +syn keyword upstreamdat_Parameter FILESOPENFORUPDAT +syn keyword upstreamdat_Parameter FILESOPENFORUPDAT +syn keyword upstreamdat_Parameter FILETRANSFER +syn keyword upstreamdat_Parameter GETREMOTEFILES +syn keyword upstreamdat_Parameter HARDLINKDB +syn keyword upstreamdat_Parameter HARDLINKS +syn keyword upstreamdat_Parameter HARDLINKS +syn keyword upstreamdat_Parameter HIDDENFILES +syn keyword upstreamdat_Parameter HIDDENFILES +syn keyword upstreamdat_Parameter HOLDTAPE +syn keyword upstreamdat_Parameter HOLDUSERDIRS +syn keyword upstreamdat_Parameter HOSTFILENAME +syn keyword upstreamdat_Parameter HOSTRECORD +syn keyword upstreamdat_Parameter HOSTSORT +syn keyword upstreamdat_Parameter IGNOREPLUGINSFORRESTORE +syn keyword upstreamdat_Parameter INCRDB +syn keyword upstreamdat_Parameter INCRDBARCHIVEBIT +syn keyword upstreamdat_Parameter INCRDBDELETEDFILES +syn keyword upstreamdat_Parameter INCREMENTAL +syn keyword upstreamdat_Parameter INCREMENTAL +syn keyword upstreamdat_Parameter INQOPTIONS +syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT +syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT +syn keyword upstreamdat_Parameter JOBOPTIONS +syn keyword upstreamdat_Parameter JOBRETURNCODEMAP +syn keyword upstreamdat_Parameter JOBWAITTIMELIMIT +syn keyword upstreamdat_Parameter KEEPALIVE +syn keyword upstreamdat_Parameter LANINTERFACE +syn keyword upstreamdat_Parameter LANWSNAME +syn keyword upstreamdat_Parameter LANWSPASSWORD +syn keyword upstreamdat_Parameter LASTACCESS +syn keyword upstreamdat_Parameter LASTACCESS +syn keyword upstreamdat_Parameter LATESTDATE +syn keyword upstreamdat_Parameter LATESTDATE +syn keyword upstreamdat_Parameter LATESTTIME +syn keyword upstreamdat_Parameter LATESTTIME +syn keyword upstreamdat_Parameter LATESTVERSION +syn keyword upstreamdat_Parameter LINEBLOCK +syn keyword upstreamdat_Parameter LINETRUNC +syn keyword upstreamdat_Parameter LISTENFORREMOTE +syn keyword upstreamdat_Parameter LOCALBACKUP +syn keyword upstreamdat_Parameter LOCALBACKUPDIR +syn keyword upstreamdat_Parameter LOCALBACKUPMAX +syn keyword upstreamdat_Parameter LOCALBACKUPMAXFILESIZE +syn keyword upstreamdat_Parameter LOCALBACKUPMAXSIZE +syn keyword upstreamdat_Parameter LOCALEXCLUDEFILE +syn keyword upstreamdat_Parameter LOCALPARAMETERS +syn keyword upstreamdat_Parameter LOCALPASSWORD +syn keyword upstreamdat_Parameter LOCALRESTORE +syn keyword upstreamdat_Parameter LOCALUSER +syn keyword upstreamdat_Parameter LOFS +syn keyword upstreamdat_Parameter LOGNONFATAL +syn keyword upstreamdat_Parameter MAXBACKUPFILESFAIL +syn keyword upstreamdat_Parameter MAXBACKUPTIME +syn keyword upstreamdat_Parameter MAXDUPS +syn keyword upstreamdat_Parameter MAXFILENAMESIZE +syn keyword upstreamdat_Parameter MAXKFILESIZE +syn keyword upstreamdat_Parameter MAXLOGDAYS +syn keyword upstreamdat_Parameter MAXRESTOREFILESFAIL +syn keyword upstreamdat_Parameter MAXRESTORETIME +syn keyword upstreamdat_Parameter MAXRETRY +syn keyword upstreamdat_Parameter MAXRPTDAYS +syn keyword upstreamdat_Parameter MERGE +syn keyword upstreamdat_Parameter MIGRBITS +syn keyword upstreamdat_Parameter MIGRBITS +syn keyword upstreamdat_Parameter MINCOMPRESSSIZE +syn keyword upstreamdat_Parameter MINIMIZE +syn keyword upstreamdat_Parameter MODIFYFILE +syn keyword upstreamdat_Parameter MOUNTPOINTS +syn keyword upstreamdat_Parameter MOUNTPOINTS +syn keyword upstreamdat_Parameter NDS +syn keyword upstreamdat_Parameter NDS +syn keyword upstreamdat_Parameter NEWFILECOMPARE +syn keyword upstreamdat_Parameter NFSBELOW +syn keyword upstreamdat_Parameter NODATAOK +syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL +syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL +syn keyword upstreamdat_Parameter NONFILEDATABITMAP +syn keyword upstreamdat_Parameter NONFILEDATABITMAP +syn keyword upstreamdat_Parameter NOPOINTRESTORE +syn keyword upstreamdat_Parameter NOSPECINHERITANCE +syn keyword upstreamdat_Parameter NOTIFYEVENTS +syn keyword upstreamdat_Parameter NOTIFYFAILUREATTACHMENT +syn keyword upstreamdat_Parameter NOTIFYSUCCESSATTACHMENT +syn keyword upstreamdat_Parameter NOTIFYTARGETS +syn keyword upstreamdat_Parameter NOUIDGIDNAMES +syn keyword upstreamdat_Parameter NOUIDGIDNAMES +syn keyword upstreamdat_Parameter NOVELLMIGRATE +syn keyword upstreamdat_Parameter NOVELLMIGRATE +syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT +syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT +syn keyword upstreamdat_Parameter NOVELLPROFILE +syn keyword upstreamdat_Parameter NOVELLRECALL +syn keyword upstreamdat_Parameter NTFSADDPERMISSION +syn keyword upstreamdat_Parameter NTFSADDPERMISSION +syn keyword upstreamdat_Parameter NTREGRESTORE +syn keyword upstreamdat_Parameter OSTYPE +syn keyword upstreamdat_Parameter OUTPORT +syn keyword upstreamdat_Parameter PACKFLUSHAFTERFILE +syn keyword upstreamdat_Parameter PACKRECSIZE +syn keyword upstreamdat_Parameter PARAMETER +syn keyword upstreamdat_Parameter PASSWORD +syn keyword upstreamdat_Parameter PATHNAME +syn keyword upstreamdat_Parameter PATHNAME +syn keyword upstreamdat_Parameter PERFORMBITMAP +syn keyword upstreamdat_Parameter PERFORMNUMRECORDS +syn keyword upstreamdat_Parameter PERFORMRECORDSIZE +syn keyword upstreamdat_Parameter PLUGIN +syn keyword upstreamdat_Parameter PLUGIN +syn keyword upstreamdat_Parameter PLUGINPARAMETERS +syn keyword upstreamdat_Parameter PLUGINPARAMETERS +syn keyword upstreamdat_Parameter POSTJOB +syn keyword upstreamdat_Parameter PREJOB +syn keyword upstreamdat_Parameter PRTYCLASS +syn keyword upstreamdat_Parameter PRTYLEVEL +syn keyword upstreamdat_Parameter RECALLCLEANUP +syn keyword upstreamdat_Parameter RECALLOFFLINEFILES +syn keyword upstreamdat_Parameter RECALLOFFLINEFILES +syn keyword upstreamdat_Parameter RECORDSIZE +syn keyword upstreamdat_Parameter REMOTEADDR +syn keyword upstreamdat_Parameter REMOTEAPPLPREF +syn keyword upstreamdat_Parameter REMOTEAPPLRETRY +syn keyword upstreamdat_Parameter REMOTECONNECTTYPE +syn keyword upstreamdat_Parameter REMOTEFLAGS +syn keyword upstreamdat_Parameter REMOTEIPADAPTER +syn keyword upstreamdat_Parameter REMOTELOCALPARAMETERS +syn keyword upstreamdat_Parameter REMOTELOGMODE +syn keyword upstreamdat_Parameter REMOTELUNAME +syn keyword upstreamdat_Parameter REMOTEMAXRETRIES +syn keyword upstreamdat_Parameter REMOTEMODENAME +syn keyword upstreamdat_Parameter REMOTEPARAMETERFILE +syn keyword upstreamdat_Parameter REMOTEPORT +syn keyword upstreamdat_Parameter REMOTEREQUEST +syn keyword upstreamdat_Parameter REMOTERESTART +syn keyword upstreamdat_Parameter REMOTEROUTE +syn keyword upstreamdat_Parameter REMOTETARGETNAME +syn keyword upstreamdat_Parameter REMOTETCP +syn keyword upstreamdat_Parameter REMOTETIMEOUT +syn keyword upstreamdat_Parameter REMOTETMAXRETRY +syn keyword upstreamdat_Parameter REMOTETPN +syn keyword upstreamdat_Parameter REMOTEUSAPPL +syn keyword upstreamdat_Parameter REMOTEVERIFY +syn keyword upstreamdat_Parameter REMOTEWTOCOMP +syn keyword upstreamdat_Parameter REPORTNAME +syn keyword upstreamdat_Parameter REPORTOPTIONS +syn keyword upstreamdat_Parameter RESTARTLASTFILE +syn keyword upstreamdat_Parameter RESTART +syn keyword upstreamdat_Parameter RESTARTTYPE +syn keyword upstreamdat_Parameter RESTARTVERSIONDATE +syn keyword upstreamdat_Parameter RESTOREARCHIVEBIT +syn keyword upstreamdat_Parameter RESTORECHECKPOINT +syn keyword upstreamdat_Parameter RESTOREDATELIMIT +syn keyword upstreamdat_Parameter RESTOREDATELIMIT +syn keyword upstreamdat_Parameter RESTOREFILEFAIL +syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS +syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS +syn keyword upstreamdat_Parameter RESTORESEGMENTS +syn keyword upstreamdat_Parameter RESTORESEGMENTS +syn keyword upstreamdat_Parameter RESTORETODIFFFS +syn keyword upstreamdat_Parameter RETAIN +syn keyword upstreamdat_Parameter RETAIN +syn keyword upstreamdat_Parameter ROOTENTRY +syn keyword upstreamdat_Parameter ROOTENTRY +syn keyword upstreamdat_Parameter SAN +syn keyword upstreamdat_Parameter SCHEDULENAME +syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE +syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE +syn keyword upstreamdat_Parameter SEGMENTSIZE +syn keyword upstreamdat_Parameter SEGMENTSIZE +syn keyword upstreamdat_Parameter SENDHOSTDETAILS +syn keyword upstreamdat_Parameter SINGLEFS +syn keyword upstreamdat_Parameter SIZETRC +syn keyword upstreamdat_Parameter SKIP +syn keyword upstreamdat_Parameter SKIPBACKUPSCAN +syn keyword upstreamdat_Parameter SKIPOLD +syn keyword upstreamdat_Parameter SKIPOLD +syn keyword upstreamdat_Parameter SMSTARGETSERVICENAME +syn keyword upstreamdat_Parameter SMSTSA +syn keyword upstreamdat_Parameter SOLO +syn keyword upstreamdat_Parameter SORTBACKUP +syn keyword upstreamdat_Parameter SOSDISK +syn keyword upstreamdat_Parameter SOSDISK +syn keyword upstreamdat_Parameter SOSTIMESTAMP +syn keyword upstreamdat_Parameter SOSTIMESTAMP +syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH +syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH +syn keyword upstreamdat_Parameter SPECNUMBER +syn keyword upstreamdat_Parameter SPECNUMBER +syn keyword upstreamdat_Parameter SPECTYPE +syn keyword upstreamdat_Parameter SPECTYPE +syn keyword upstreamdat_Parameter STARTTIME +syn keyword upstreamdat_Parameter STORAGETYPE +syn keyword upstreamdat_Parameter SUBDIRECTORIES +syn keyword upstreamdat_Parameter SUBDIRECTORIES +syn keyword upstreamdat_Parameter SWITCHTOTAPEMB +syn keyword upstreamdat_Parameter TCPADDRESS +syn keyword upstreamdat_Parameter TCPTIMEOUT +syn keyword upstreamdat_Parameter TIMEOVERRIDE +syn keyword upstreamdat_Parameter TRACE +syn keyword upstreamdat_Parameter TRANSLATE +syn keyword upstreamdat_Parameter ULTRACOMP +syn keyword upstreamdat_Parameter ULTREG +syn keyword upstreamdat_Parameter ULTUPD +syn keyword upstreamdat_Parameter UNCMACHINEALIAS +syn keyword upstreamdat_Parameter UNCMACHINEALIAS +syn keyword upstreamdat_Parameter USEALEBRA +syn keyword upstreamdat_Parameter USECONTROLFILE +syn keyword upstreamdat_Parameter USEGID +syn keyword upstreamdat_Parameter USERID +syn keyword upstreamdat_Parameter USEUID +syn keyword upstreamdat_Parameter USNOUIDGIDERRORS +syn keyword upstreamdat_Parameter UTF8 +syn keyword upstreamdat_Parameter VAULTNUMBER +syn keyword upstreamdat_Parameter VERSIONDATE +syn keyword upstreamdat_Parameter WRITESPARSE +syn keyword upstreamdat_Parameter XFERECORDSIZE +syn keyword upstreamdat_Parameter XFERRECSEP +syn keyword upstreamdat_Parameter XFERRECUSECR + +" File Specs: +syn match upstreamdat_Filespec /file spec\c \d\{1,3}.*/ + +" Comments: +syn match upstreamdat_Comment /^#.*/ + +hi def link upstreamdat_Parameter Type +"hi def link upstreamdat_Filespec Underlined +hi def link upstreamdat_Comment Comment + +let b:current_syntax = "upstreamdat" diff --git a/git/usr/share/vim/vim92/syntax/upstreaminstalllog.vim b/git/usr/share/vim/vim92/syntax/upstreaminstalllog.vim new file mode 100644 index 0000000000000000000000000000000000000000..fb23fdcca0370bbff9c59d2b901f9aea5260fcfa --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/upstreaminstalllog.vim @@ -0,0 +1,27 @@ +" Vim syntax file +" Language: Innovation Data Processing UPSTREAMInstall.log file +" Maintainer: Rob Owens +" Latest Revision: 2013-06-17 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Date: +syn match upstreaminstalllog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/ +" Msg Types: +syn match upstreaminstalllog_MsgD /Msg #MSI\d\{4,5}D/ +syn match upstreaminstalllog_MsgE /Msg #MSI\d\{4,5}E/ +syn match upstreaminstalllog_MsgI /Msg #MSI\d\{4,5}I/ +syn match upstreaminstalllog_MsgW /Msg #MSI\d\{4,5}W/ +" IP Address: +syn match upstreaminstalllog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ + +hi def link upstreaminstalllog_Date Underlined +hi def link upstreaminstalllog_MsgD Type +hi def link upstreaminstalllog_MsgE Error +hi def link upstreaminstalllog_MsgW Constant +hi def link upstreaminstalllog_IPaddr Identifier + +let b:current_syntax = "upstreaminstalllog" diff --git a/git/usr/share/vim/vim92/syntax/upstreamlog.vim b/git/usr/share/vim/vim92/syntax/upstreamlog.vim new file mode 100644 index 0000000000000000000000000000000000000000..1439bdffe65e694d0add6ee1b07c32f28fa900f6 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/upstreamlog.vim @@ -0,0 +1,54 @@ +" Vim syntax file +" Language: Innovation Data Processing upstream.log file +" Maintainer: Rob Owens +" Latest Revision: 2013-09-19 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Date: +syn match upstreamlog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/ +" Msg Types: +syn match upstreamlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=upstreamlog_Process skipwhite +syn match upstreamlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=upstreamlog_Process skipwhite +syn match upstreamlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=upstreamlog_Process skipwhite +syn match upstreamlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=upstreamlog_Process skipwhite +" Processes: +syn region upstreamlog_Process start="(" end=")" contained +" IP Address: +syn match upstreamlog_IPaddr /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ +" Profile: +syn match upstreamlog_Profile /Using default configuration for profile \zs\S\{1,8}\ze/ +syn match upstreamlog_Profile /Now running profile \zs\S\{1,8}\ze/ +syn match upstreamlog_Profile /in profile set \zs\S\{1,8}\ze/ +syn match upstreamlog_Profile /Migrate disk backup from profile \zs\S\{1,8}\ze/ +syn match upstreamlog_Profile /Profileset=\zs\S\{1,8}\ze,/ +syn match upstreamlog_Profile /Vault \(disk\|tape\) backup to vault \d\{1,4} from profile \zs\S\{1,8}\ze/ +syn match upstreamlog_Profile /Profile name \zs\"\S\{1,8}\"/ +syn match upstreamlog_Profile / Profile: \zs\S\{1,8}/ +syn match upstreamlog_Profile / Profile: \zs\S\{1,8}\ze, / +syn match upstreamlog_Profile /, profile: \zs\S\{1,8}\ze,/ +syn match upstreamlog_Profile /found Profile: \zs\S\{1,8}\ze,/ +syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/ +syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/ +syn match upstreamlog_Profile /Full of \zs\S\{1,8}\ze$/ +syn match upstreamlog_Profile /Incr. of \zs\S\{1,8}\ze$/ +syn match upstreamlog_Profile /Profile=\zs\S\{1,8}\ze,/ +" Target: +syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]" +syn region upstreamlog_Target start="Computer name \zs\"" end="\"\ze" +syn region upstreamlog_Target start="request to registered name \zs" end=" " + + +hi def link upstreamlog_Date Underlined +hi def link upstreamlog_MsgD Type +hi def link upstreamlog_MsgE Error +hi def link upstreamlog_MsgW Constant +hi def link upstreamlog_Process Statement +hi def link upstreamlog_IPaddr Identifier +hi def link upstreamlog_Profile Identifier +hi def link upstreamlog_Target Identifier + +let b:current_syntax = "upstreamlog" diff --git a/git/usr/share/vim/vim92/syntax/upstreamrpt.vim b/git/usr/share/vim/vim92/syntax/upstreamrpt.vim new file mode 100644 index 0000000000000000000000000000000000000000..21c25633a24e836e09ab16c2e594523292d2f044 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/upstreamrpt.vim @@ -0,0 +1,310 @@ +" Vim syntax file +" Language: Innovation Data Processing upstream.rpt file +" Maintainer: Rob Owens +" Latest Revision: 2014-03-13 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +setlocal foldmethod=syntax + +" Parameters: +syn keyword upstreamdat_Parameter ACCEPTPCREMOTE +syn keyword upstreamdat_Parameter ACCEPTREMOTE +syn keyword upstreamdat_Parameter ACTION +syn keyword upstreamdat_Parameter ACTIVATEONENTRY +syn keyword upstreamdat_Parameter ARCHIVEBIT +syn keyword upstreamdat_Parameter ARCHIVEBIT +syn keyword upstreamdat_Parameter ASCTOEBC +syn keyword upstreamdat_Parameter ASRBACKUP +syn keyword upstreamdat_Parameter ATTENDED +syn keyword upstreamdat_Parameter AUTHORITATIVE +syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE +syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE +syn keyword upstreamdat_Parameter BACKUPPROFILE +syn keyword upstreamdat_Parameter BACKUPPROFILE2 +syn keyword upstreamdat_Parameter BACKUPREPARSEFILES +syn keyword upstreamdat_Parameter BACKUPREPARSEFILES +syn keyword upstreamdat_Parameter BACKUPVERIFY +syn keyword upstreamdat_Parameter BLANKTRUNC +syn keyword upstreamdat_Parameter CALCDASDSIZE +syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS +syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS +syn keyword upstreamdat_Parameter COMPRESSLEVEL +syn keyword upstreamdat_Parameter CONTROLFILE +syn keyword upstreamdat_Parameter DASDOVERRIDE +syn keyword upstreamdat_Parameter DATELIMIT +syn keyword upstreamdat_Parameter DATELIMIT +syn keyword upstreamdat_Parameter DAYSOLD +syn keyword upstreamdat_Parameter DAYSOLD +syn keyword upstreamdat_Parameter DELETED +syn keyword upstreamdat_Parameter DELETED +syn keyword upstreamdat_Parameter DELETEPROMPTS +syn keyword upstreamdat_Parameter DELETEPROMPTS +syn keyword upstreamdat_Parameter DESTINATION +syn keyword upstreamdat_Parameter DESTINATION +syn keyword upstreamdat_Parameter DIRDELETE +syn keyword upstreamdat_Parameter DIRECTORVMC +syn keyword upstreamdat_Parameter DIRONLYRESTOREOK +syn keyword upstreamdat_Parameter DIRSONLY +syn keyword upstreamdat_Parameter DIRSONLY +syn keyword upstreamdat_Parameter DISASTERRECOVERY +syn keyword upstreamdat_Parameter DISPLAY +syn keyword upstreamdat_Parameter DRIVEALIAS +syn keyword upstreamdat_Parameter DRIVEALIAS +syn keyword upstreamdat_Parameter DUALCOPY +syn keyword upstreamdat_Parameter DUPDAYS +syn keyword upstreamdat_Parameter DUPLICATE +syn keyword upstreamdat_Parameter EBCTOASC +syn keyword upstreamdat_Parameter ENCRYPT +syn keyword upstreamdat_Parameter ENCRYPTLEVEL +syn keyword upstreamdat_Parameter EXCLUDELISTNAME +syn keyword upstreamdat_Parameter FAILBACKUPONERROR +syn keyword upstreamdat_Parameter FAILBACKUPONERROR +syn keyword upstreamdat_Parameter FAILIFNOFILES +syn keyword upstreamdat_Parameter FAILIFNOFILES +syn keyword upstreamdat_Parameter FAILIFSKIP +syn keyword upstreamdat_Parameter FAILJOB +syn keyword upstreamdat_Parameter FAILRESTOREONERROR +syn keyword upstreamdat_Parameter FAILRESTOREONERROR +syn keyword upstreamdat_Parameter FILEDATE +syn keyword upstreamdat_Parameter FILEDATE +syn keyword upstreamdat_Parameter FILEDELETE +syn keyword upstreamdat_Parameter FILEDELETE +syn keyword upstreamdat_Parameter FILES +syn keyword upstreamdat_Parameter FILES +syn keyword upstreamdat_Parameter FILESOPENFORUPDAT +syn keyword upstreamdat_Parameter FILESOPENFORUPDAT +syn keyword upstreamdat_Parameter FILETRANSFER +syn keyword upstreamdat_Parameter GETREMOTEFILES +syn keyword upstreamdat_Parameter HARDLINKDB +syn keyword upstreamdat_Parameter HARDLINKS +syn keyword upstreamdat_Parameter HARDLINKS +syn keyword upstreamdat_Parameter HIDDENFILES +syn keyword upstreamdat_Parameter HIDDENFILES +syn keyword upstreamdat_Parameter HOLDTAPE +syn keyword upstreamdat_Parameter HOLDUSERDIRS +syn keyword upstreamdat_Parameter HOSTFILENAME +syn keyword upstreamdat_Parameter HOSTRECORD +syn keyword upstreamdat_Parameter HOSTSORT +syn keyword upstreamdat_Parameter IGNOREPLUGINSFORRESTORE +syn keyword upstreamdat_Parameter INCRDB +syn keyword upstreamdat_Parameter INCRDBARCHIVEBIT +syn keyword upstreamdat_Parameter INCRDBDELETEDFILES +syn keyword upstreamdat_Parameter INCREMENTAL +syn keyword upstreamdat_Parameter INCREMENTAL +syn keyword upstreamdat_Parameter INQOPTIONS +syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT +syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT +syn keyword upstreamdat_Parameter JOBOPTIONS +syn keyword upstreamdat_Parameter JOBRETURNCODEMAP +syn keyword upstreamdat_Parameter JOBWAITTIMELIMIT +syn keyword upstreamdat_Parameter KEEPALIVE +syn keyword upstreamdat_Parameter LANINTERFACE +syn keyword upstreamdat_Parameter LANWSNAME +syn keyword upstreamdat_Parameter LANWSPASSWORD +syn keyword upstreamdat_Parameter LASTACCESS +syn keyword upstreamdat_Parameter LASTACCESS +syn keyword upstreamdat_Parameter LATESTDATE +syn keyword upstreamdat_Parameter LATESTDATE +syn keyword upstreamdat_Parameter LATESTTIME +syn keyword upstreamdat_Parameter LATESTTIME +syn keyword upstreamdat_Parameter LATESTVERSION +syn keyword upstreamdat_Parameter LINEBLOCK +syn keyword upstreamdat_Parameter LINETRUNC +syn keyword upstreamdat_Parameter LISTENFORREMOTE +syn keyword upstreamdat_Parameter LOCALBACKUP +syn keyword upstreamdat_Parameter LOCALBACKUPDIR +syn keyword upstreamdat_Parameter LOCALBACKUPMAX +syn keyword upstreamdat_Parameter LOCALBACKUPMAXFILESIZE +syn keyword upstreamdat_Parameter LOCALBACKUPMAXSIZE +syn keyword upstreamdat_Parameter LOCALEXCLUDEFILE +syn keyword upstreamdat_Parameter LOCALPARAMETERS +syn keyword upstreamdat_Parameter LOCALPASSWORD +syn keyword upstreamdat_Parameter LOCALRESTORE +syn keyword upstreamdat_Parameter LOCALUSER +syn keyword upstreamdat_Parameter LOFS +syn keyword upstreamdat_Parameter LOGNONFATAL +syn keyword upstreamdat_Parameter MAXBACKUPFILESFAIL +syn keyword upstreamdat_Parameter MAXBACKUPTIME +syn keyword upstreamdat_Parameter MAXDUPS +syn keyword upstreamdat_Parameter MAXFILENAMESIZE +syn keyword upstreamdat_Parameter MAXKFILESIZE +syn keyword upstreamdat_Parameter MAXLOGDAYS +syn keyword upstreamdat_Parameter MAXRESTOREFILESFAIL +syn keyword upstreamdat_Parameter MAXRESTORETIME +syn keyword upstreamdat_Parameter MAXRETRY +syn keyword upstreamdat_Parameter MAXRPTDAYS +syn keyword upstreamdat_Parameter MERGE +syn keyword upstreamdat_Parameter MIGRBITS +syn keyword upstreamdat_Parameter MIGRBITS +syn keyword upstreamdat_Parameter MINCOMPRESSSIZE +syn keyword upstreamdat_Parameter MINIMIZE +syn keyword upstreamdat_Parameter MODIFYFILE +syn keyword upstreamdat_Parameter MOUNTPOINTS +syn keyword upstreamdat_Parameter MOUNTPOINTS +syn keyword upstreamdat_Parameter NDS +syn keyword upstreamdat_Parameter NDS +syn keyword upstreamdat_Parameter NEWFILECOMPARE +syn keyword upstreamdat_Parameter NFSBELOW +syn keyword upstreamdat_Parameter NODATAOK +syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL +syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL +syn keyword upstreamdat_Parameter NONFILEDATABITMAP +syn keyword upstreamdat_Parameter NONFILEDATABITMAP +syn keyword upstreamdat_Parameter NOPOINTRESTORE +syn keyword upstreamdat_Parameter NOSPECINHERITANCE +syn keyword upstreamdat_Parameter NOTIFYEVENTS +syn keyword upstreamdat_Parameter NOTIFYFAILUREATTACHMENT +syn keyword upstreamdat_Parameter NOTIFYSUCCESSATTACHMENT +syn keyword upstreamdat_Parameter NOTIFYTARGETS +syn keyword upstreamdat_Parameter NOUIDGIDNAMES +syn keyword upstreamdat_Parameter NOUIDGIDNAMES +syn keyword upstreamdat_Parameter NOVELLMIGRATE +syn keyword upstreamdat_Parameter NOVELLMIGRATE +syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT +syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT +syn keyword upstreamdat_Parameter NOVELLPROFILE +syn keyword upstreamdat_Parameter NOVELLRECALL +syn keyword upstreamdat_Parameter NTFSADDPERMISSION +syn keyword upstreamdat_Parameter NTFSADDPERMISSION +syn keyword upstreamdat_Parameter NTREGRESTORE +syn keyword upstreamdat_Parameter OSTYPE +syn keyword upstreamdat_Parameter OUTPORT +syn keyword upstreamdat_Parameter PACKFLUSHAFTERFILE +syn keyword upstreamdat_Parameter PACKRECSIZE +syn keyword upstreamdat_Parameter PARAMETER +syn keyword upstreamdat_Parameter PASSWORD +syn keyword upstreamdat_Parameter PATHNAME +syn keyword upstreamdat_Parameter PATHNAME +syn keyword upstreamdat_Parameter PERFORMBITMAP +syn keyword upstreamdat_Parameter PERFORMNUMRECORDS +syn keyword upstreamdat_Parameter PERFORMRECORDSIZE +syn keyword upstreamdat_Parameter PLUGIN +syn keyword upstreamdat_Parameter PLUGIN +syn keyword upstreamdat_Parameter PLUGINPARAMETERS +syn keyword upstreamdat_Parameter PLUGINPARAMETERS +syn keyword upstreamdat_Parameter POSTJOB +syn keyword upstreamdat_Parameter PREJOB +syn keyword upstreamdat_Parameter PRTYCLASS +syn keyword upstreamdat_Parameter PRTYLEVEL +syn keyword upstreamdat_Parameter RECALLCLEANUP +syn keyword upstreamdat_Parameter RECALLOFFLINEFILES +syn keyword upstreamdat_Parameter RECALLOFFLINEFILES +syn keyword upstreamdat_Parameter RECORDSIZE +syn keyword upstreamdat_Parameter REMOTEADDR +syn keyword upstreamdat_Parameter REMOTEAPPLPREF +syn keyword upstreamdat_Parameter REMOTEAPPLRETRY +syn keyword upstreamdat_Parameter REMOTECONNECTTYPE +syn keyword upstreamdat_Parameter REMOTEFLAGS +syn keyword upstreamdat_Parameter REMOTEIPADAPTER +syn keyword upstreamdat_Parameter REMOTELOCALPARAMETERS +syn keyword upstreamdat_Parameter REMOTELOGMODE +syn keyword upstreamdat_Parameter REMOTELUNAME +syn keyword upstreamdat_Parameter REMOTEMAXRETRIES +syn keyword upstreamdat_Parameter REMOTEMODENAME +syn keyword upstreamdat_Parameter REMOTEPARAMETERFILE +syn keyword upstreamdat_Parameter REMOTEPORT +syn keyword upstreamdat_Parameter REMOTEREQUEST +syn keyword upstreamdat_Parameter REMOTERESTART +syn keyword upstreamdat_Parameter REMOTEROUTE +syn keyword upstreamdat_Parameter REMOTETARGETNAME +syn keyword upstreamdat_Parameter REMOTETCP +syn keyword upstreamdat_Parameter REMOTETIMEOUT +syn keyword upstreamdat_Parameter REMOTETMAXRETRY +syn keyword upstreamdat_Parameter REMOTETPN +syn keyword upstreamdat_Parameter REMOTEUSAPPL +syn keyword upstreamdat_Parameter REMOTEVERIFY +syn keyword upstreamdat_Parameter REMOTEWTOCOMP +syn keyword upstreamdat_Parameter REPORTNAME +syn keyword upstreamdat_Parameter REPORTOPTIONS +syn keyword upstreamdat_Parameter RESTARTLASTFILE +syn keyword upstreamdat_Parameter RESTART +syn keyword upstreamdat_Parameter RESTARTTYPE +syn keyword upstreamdat_Parameter RESTARTVERSIONDATE +syn keyword upstreamdat_Parameter RESTOREARCHIVEBIT +syn keyword upstreamdat_Parameter RESTORECHECKPOINT +syn keyword upstreamdat_Parameter RESTOREDATELIMIT +syn keyword upstreamdat_Parameter RESTOREDATELIMIT +syn keyword upstreamdat_Parameter RESTOREFILEFAIL +syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS +syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS +syn keyword upstreamdat_Parameter RESTORESEGMENTS +syn keyword upstreamdat_Parameter RESTORESEGMENTS +syn keyword upstreamdat_Parameter RESTORETODIFFFS +syn keyword upstreamdat_Parameter RETAIN +syn keyword upstreamdat_Parameter RETAIN +syn keyword upstreamdat_Parameter ROOTENTRY +syn keyword upstreamdat_Parameter ROOTENTRY +syn keyword upstreamdat_Parameter SAN +syn keyword upstreamdat_Parameter SCHEDULENAME +syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE +syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE +syn keyword upstreamdat_Parameter SEGMENTSIZE +syn keyword upstreamdat_Parameter SEGMENTSIZE +syn keyword upstreamdat_Parameter SENDHOSTDETAILS +syn keyword upstreamdat_Parameter SINGLEFS +syn keyword upstreamdat_Parameter SIZETRC +syn keyword upstreamdat_Parameter SKIP +syn keyword upstreamdat_Parameter SKIPBACKUPSCAN +syn keyword upstreamdat_Parameter SKIPOLD +syn keyword upstreamdat_Parameter SKIPOLD +syn keyword upstreamdat_Parameter SMSTARGETSERVICENAME +syn keyword upstreamdat_Parameter SMSTSA +syn keyword upstreamdat_Parameter SOLO +syn keyword upstreamdat_Parameter SORTBACKUP +syn keyword upstreamdat_Parameter SOSDISK +syn keyword upstreamdat_Parameter SOSDISK +syn keyword upstreamdat_Parameter SOSTIMESTAMP +syn keyword upstreamdat_Parameter SOSTIMESTAMP +syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH +syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH +syn keyword upstreamdat_Parameter SPECNUMBER +syn keyword upstreamdat_Parameter SPECNUMBER +syn keyword upstreamdat_Parameter SPECTYPE +syn keyword upstreamdat_Parameter SPECTYPE +syn keyword upstreamdat_Parameter STARTTIME +syn keyword upstreamdat_Parameter STORAGETYPE +syn keyword upstreamdat_Parameter SUBDIRECTORIES +syn keyword upstreamdat_Parameter SUBDIRECTORIES +syn keyword upstreamdat_Parameter SWITCHTOTAPEMB +syn keyword upstreamdat_Parameter TCPADDRESS +syn keyword upstreamdat_Parameter TCPTIMEOUT +syn keyword upstreamdat_Parameter TIMEOVERRIDE +syn keyword upstreamdat_Parameter TRACE +syn keyword upstreamdat_Parameter TRANSLATE +syn keyword upstreamdat_Parameter ULTRACOMP +syn keyword upstreamdat_Parameter ULTREG +syn keyword upstreamdat_Parameter ULTUPD +syn keyword upstreamdat_Parameter UNCMACHINEALIAS +syn keyword upstreamdat_Parameter UNCMACHINEALIAS +syn keyword upstreamdat_Parameter USEALEBRA +syn keyword upstreamdat_Parameter USECONTROLFILE +syn keyword upstreamdat_Parameter USEGID +syn keyword upstreamdat_Parameter USERID +syn keyword upstreamdat_Parameter USEUID +syn keyword upstreamdat_Parameter USNOUIDGIDERRORS +syn keyword upstreamdat_Parameter UTF8 +syn keyword upstreamdat_Parameter VAULTNUMBER +syn keyword upstreamdat_Parameter VERSIONDATE +syn keyword upstreamdat_Parameter WRITESPARSE +syn keyword upstreamdat_Parameter XFERECORDSIZE +syn keyword upstreamdat_Parameter XFERRECSEP +syn keyword upstreamdat_Parameter XFERRECUSECR + +" File Specs: +syn match upstreamdat_Filespec /file spec\c \d\{1,3}.*/ + +" Comments: +syn match upstreamdat_Comment /^#.*/ + +" List Of Parameters: +syn region upstreamdat_Parms start="Current Parameters:" end="End Of Parameters" transparent fold + +hi def link upstreamdat_Parameter Type +"hi def link upstreamdat_Filespec Underlined +hi def link upstreamdat_Comment Comment + +let b:current_syntax = "upstreamrpt" diff --git a/git/usr/share/vim/vim92/syntax/urlshortcut.vim b/git/usr/share/vim/vim92/syntax/urlshortcut.vim new file mode 100644 index 0000000000000000000000000000000000000000..f6cc3835a2968b58b9c5afd7fd42c11a8dc414dd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/urlshortcut.vim @@ -0,0 +1,14 @@ +" Vim syntax file +" Language: MS Windows URL shortcut file +" Maintainer: ObserverOfTime +" LastChange: 2023-06-04 + +" Quit when a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif + +" Just use the dosini syntax for now +runtime! syntax/dosini.vim + +let b:current_syntax = "urlshortcut" diff --git a/git/usr/share/vim/vim92/syntax/usserverlog.vim b/git/usr/share/vim/vim92/syntax/usserverlog.vim new file mode 100644 index 0000000000000000000000000000000000000000..34a7e3dca0c22b0286145afdef2f36ff3181e03e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/usserverlog.vim @@ -0,0 +1,60 @@ +" Vim syntax file +" Language: Innovation Data Processing usserver.log file +" Maintainer: Rob Owens +" Latest Revision: 2013-09-19 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Date: +syn match usserverlog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/ +" Msg Types: +syn match usserverlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=usserverlog_Process skipwhite +syn match usserverlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=usserverlog_Process skipwhite +syn match usserverlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usserverlog_Process skipwhite +syn match usserverlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usserverlog_Process skipwhite +" Processes: +syn region usserverlog_Process start="(" end=")" contained +" IP Address: +syn match usserverlog_IPaddr /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ +" Profile: +syn match usserverlog_Profile /Using default configuration for profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Now running profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /in profile set \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Migrate disk backup from profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Using profile prefix for profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Add\/update profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Profileset=\zs\S\{1,8}\ze,/ +syn match usserverlog_Profile /profileset=\zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Vault \(disk\|tape\) backup to vault \d\{1,4} from profile \zs\S\{1,8}\ze/ +syn match usserverlog_Profile /Profile name \zs\"\S\{1,8}\"/ +syn match usserverlog_Profile / Profile: \zs\S\{1,8}/ +syn match usserverlog_Profile / Profile: \zs\S\{1,8}\ze, / +syn match usserverlog_Profile /, profile: \zs\S\{1,8}\ze,/ +syn match usserverlog_Profile /Expecting Profile: \zs\S\{1,8}\ze,/ +syn match usserverlog_Profile /found Profile: \zs\S\{1,8}\ze,/ +syn match usserverlog_Profile /Profile \zs\S\{1,8} \zeis a member of group: / +syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/ +syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/ +syn match usserverlog_Profile /Full of \zs\S\{1,8}\ze$/ +syn match usserverlog_Profile /Incr. of \zs\S\{1,8}\ze$/ +syn match usserverlog_Profile /Profile=\zs\S\{1,8}\ze,/ +" Target: +syn region usserverlog_Target start="Computer: \zs" end="\ze[\]\)]" +syn region usserverlog_Target start="Computer name \zs\"" end="\"\ze" +syn region usserverlog_Target start="Registration add request successful \zs" end="$" +syn region usserverlog_Target start="request to registered name \zs" end=" " +syn region usserverlog_Target start=", sending to \zs" end="$" + +hi def link usserverlog_Date Underlined +hi def link usserverlog_MsgD Type +hi def link usserverlog_MsgE Error +hi def link usserverlog_MsgW Constant +hi def link usserverlog_Process Statement +hi def link usserverlog_IPaddr Identifier +hi def link usserverlog_Profile Identifier +hi def link usserverlog_Target Identifier + +let b:current_syntax = "usserverlog" diff --git a/git/usr/share/vim/vim92/syntax/usw2kagtlog.vim b/git/usr/share/vim/vim92/syntax/usw2kagtlog.vim new file mode 100644 index 0000000000000000000000000000000000000000..a112340d12b32f3e7c79543e1d8c566af48c1fd0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/usw2kagtlog.vim @@ -0,0 +1,54 @@ +" Vim syntax file +" Language: Innovation Data Processing USW2KAgt.log file +" Maintainer: Rob Owens +" Latest Revision: 2014-04-01 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Date: +syn match usw2kagtlog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/ +" Msg Types: +syn match usw2kagtlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=usw2kagtlog_Process skipwhite +syn match usw2kagtlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=usw2kagtlog_Process skipwhite +syn match usw2kagtlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usw2kagtlog_Process skipwhite +syn match usw2kagtlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usw2kagtlog_Process skipwhite +" Processes: +syn region usw2kagtlog_Process start="(" end=")" contained +"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client request" +"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client request" +"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request" +"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request" +syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client" +syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client" +" IP Address: +syn match usw2kagtlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ +" Profile: + +syn match usw2kagtlog_Profile /Profile name \zs\"\S\{1,8}\"/ +syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}/ +syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}\ze, / +syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/ +syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/ +syn match usw2kagtlog_Profile /Full of \zs\S\{1,8}\ze$/ +syn match usw2kagtlog_Profile /Incr. of \zs\S\{1,8}\ze$/ +syn match usw2kagtlog_Profile /profile name "\zs\S\{1,8}\ze"/ +" Target: +syn region usw2kagtlog_Target start="Computer: \zs" end="\ze[\]\)]" +syn region usw2kagtlog_Target start="Computer name \zs\"" end="\"\ze" +" Agent Keywords: +syn keyword usw2kagtlog_Agentword opened closed + +hi def link usw2kagtlog_Date Underlined +hi def link usw2kagtlog_MsgD Type +hi def link usw2kagtlog_MsgE Error +hi def link usw2kagtlog_MsgW Constant +hi def link usw2kagtlog_Process Statement +hi def link usw2kagtlog_IPaddr Identifier +hi def link usw2kagtlog_Profile Identifier +hi def link usw2kagtlog_Target Identifier +hi def link usw2kagtlog_Agentword Special + +let b:current_syntax = "usw2kagentlog" diff --git a/git/usr/share/vim/vim92/syntax/valgrind.vim b/git/usr/share/vim/vim92/syntax/valgrind.vim new file mode 100644 index 0000000000000000000000000000000000000000..a9b4a8c8e72d9c49d1da073b5cefa658c5526225 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/valgrind.vim @@ -0,0 +1,110 @@ +" Vim syntax file +" Language: Valgrind Memory Debugger Output +" Maintainer: Roger Luethi +" Program URL: http://devel-home.kde.org/~sewardj/ +" Last Change: 2019 Jul 24 +" +" Notes: mostly based on strace.vim and xml.vim +" +" Contributors: Christoph Gysin + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim + +" Lines can be long with demangled c++ functions. +setlocal synmaxcol=8000 + +syn case match +syn sync minlines=50 + +syn match valgrindSpecLine "^[+-]\{2}\d\+[+-]\{2}.*$" + +syn region valgrindRegion + \ start=+^==\z(\d\+\)== \w.*$+ + \ skip=+^==\z1==\( \| .*\| \S.*\)$+ + \ end=+^+ + \ fold + \ keepend + \ contains=valgrindPidChunk,valgrindLine + +syn region valgrindPidChunk + \ start=+^==\zs+ + \ end=+\ze==+ + \ contained + \ contains=valgrindPid0,valgrindPid1,valgrindPid2,valgrindPid3,valgrindPid4,valgrindPid5,valgrindPid6,valgrindPid7,valgrindPid8,valgrindPid9 + \ keepend + +syn match valgrindPid0 "\d\+0=" contained +syn match valgrindPid1 "\d\+1=" contained +syn match valgrindPid2 "\d\+2=" contained +syn match valgrindPid3 "\d\+3=" contained +syn match valgrindPid4 "\d\+4=" contained +syn match valgrindPid5 "\d\+5=" contained +syn match valgrindPid6 "\d\+6=" contained +syn match valgrindPid7 "\d\+7=" contained +syn match valgrindPid8 "\d\+8=" contained +syn match valgrindPid9 "\d\+9=" contained + +syn region valgrindLine + \ start=+\(^==\d\+== \)\@<=+ + \ end=+$+ + \ keepend + \ contained + \ contains=valgrindOptions,valgrindMsg,valgrindLoc + +syn match valgrindOptions "[ ]\{3}-.*$" contained + +syn match valgrindMsg "\S.*$" contained + \ contains=valgrindError,valgrindNote,valgrindSummary +syn match valgrindError "\(Invalid\|\d\+ errors\|.* definitely lost\).*$" contained +syn match valgrindNote ".*still reachable.*" contained +syn match valgrindSummary ".*SUMMARY:" contained + +syn match valgrindLoc "\s\+\(by\|at\|Address\).*$" contained + \ contains=valgrindAt,valgrindAddr,valgrindFunc,valgrindBin,valgrindSrc +syn match valgrindAt "at\s\@=" contained +syn match valgrindAddr "\W\zs0x\x\+" contained + +syn match valgrindFunc ": \zs\h[a-zA-Z0-9_:\[\]()<>&*+\-,=%!|^ @.]*\ze([^)]*)$" contained +syn match valgrindBin "(\(with\)\=in \zs\S\+)\@=" contained +syn match valgrindSrc "(\zs[^)]*:\d\+)\@=" contained + +" Define the default highlighting + +hi def link valgrindSpecLine Type +"hi def link valgrindRegion Special + +hi def link valgrindPid0 Special +hi def link valgrindPid1 Comment +hi def link valgrindPid2 Type +hi def link valgrindPid3 Constant +hi def link valgrindPid4 Number +hi def link valgrindPid5 Identifier +hi def link valgrindPid6 Statement +hi def link valgrindPid7 Error +hi def link valgrindPid8 LineNr +hi def link valgrindPid9 Normal +"hi def link valgrindLine Special + +hi def link valgrindOptions Type +"hi def link valgrindMsg Special +"hi def link valgrindLoc Special + +hi def link valgrindError Special +hi def link valgrindNote Comment +hi def link valgrindSummary Type + +hi def link valgrindAt Special +hi def link valgrindAddr Number +hi def link valgrindFunc Type +hi def link valgrindBin Comment +hi def link valgrindSrc Statement + +let b:current_syntax = "valgrind" + +let &cpo = s:keepcpo +unlet s:keepcpo diff --git a/git/usr/share/vim/vim92/syntax/vb.vim b/git/usr/share/vim/vim92/syntax/vb.vim new file mode 100644 index 0000000000000000000000000000000000000000..607f6130ba3c89ff4583a61fddd73bd40ef8d40d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vb.vim @@ -0,0 +1,375 @@ +" Vim syntax file +" Language: Visual Basic +" Maintainer: Doug Kearns +" Former Maintainer: Tim Chase +" Former Maintainer: Robert M. Cortopassi +" (tried multiple times to contact, but email bounced) +" Last Change: +" 2021 Nov 26 Incorporated additions from Doug Kearns +" 2005 May 25 Synched with work by Thomas Barthel +" 2004 May 30 Added a few keywords + +" This was thrown together after seeing numerous requests on the +" VIM and VIM-DEV mailing lists. It is by no means complete. +" Send comments, suggestions and requests to the maintainer. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" VB is case insensitive +syn case ignore + +syn keyword vbConditional If Then ElseIf Else Select Case + +syn keyword vbOperator AddressOf And ByRef ByVal Eqv Imp In +syn keyword vbOperator Is Like Mod Not Or To Xor + +syn match vbOperator "[()+.,\-/*=&]" +syn match vbOperator "[<>]=\=" +syn match vbOperator "<>" +syn match vbOperator "\s\+_$" + +syn keyword vbBoolean True False +syn keyword vbConst Null Nothing + +syn keyword vbRepeat Do For ForEach Loop Next +syn keyword vbRepeat Step To Until Wend While + +syn keyword vbEvents AccessKeyPress Activate ActiveRowChanged +syn keyword vbEvents AfterAddFile AfterChangeFileName AfterCloseFile +syn keyword vbEvents AfterColEdit AfterColUpdate AfterDelete +syn keyword vbEvents AfterInsert AfterLabelEdit AfterRemoveFile +syn keyword vbEvents AfterUpdate AfterWriteFile AmbientChanged +syn keyword vbEvents ApplyChanges Associate AsyncProgress +syn keyword vbEvents AsyncReadComplete AsyncReadProgress AxisActivated +syn keyword vbEvents AxisLabelActivated AxisLabelSelected +syn keyword vbEvents AxisLabelUpdated AxisSelected AxisTitleActivated +syn keyword vbEvents AxisTitleSelected AxisTitleUpdated AxisUpdated +syn keyword vbEvents BeforeClick BeforeColEdit BeforeColUpdate +syn keyword vbEvents BeforeConnect BeforeDelete BeforeInsert +syn keyword vbEvents BeforeLabelEdit BeforeLoadFile BeforeUpdate +syn keyword vbEvents BeginRequest BeginTrans ButtonClick +syn keyword vbEvents ButtonCompleted ButtonDropDown ButtonGotFocus +syn keyword vbEvents ButtonLostFocus CallbackKeyDown Change Changed +syn keyword vbEvents ChartActivated ChartSelected ChartUpdated Click +syn keyword vbEvents Close CloseQuery CloseUp ColEdit ColResize +syn keyword vbEvents Collapse ColumnClick CommitTrans Compare +syn keyword vbEvents ConfigChageCancelled ConfigChanged +syn keyword vbEvents ConfigChangedCancelled Connect ConnectionRequest +syn keyword vbEvents CurrentRecordChanged DECommandAdded +syn keyword vbEvents DECommandPropertyChanged DECommandRemoved +syn keyword vbEvents DEConnectionAdded DEConnectionPropertyChanged +syn keyword vbEvents DEConnectionRemoved DataArrival DataChanged +syn keyword vbEvents DataUpdated DateClicked DblClick Deactivate +syn keyword vbEvents DevModeChange DeviceArrival DeviceOtherEvent +syn keyword vbEvents DeviceQueryRemove DeviceQueryRemoveFailed +syn keyword vbEvents DeviceRemoveComplete DeviceRemovePending +syn keyword vbEvents Disconnect DisplayChanged Dissociate +syn keyword vbEvents DoGetNewFileName Done DonePainting DownClick +syn keyword vbEvents DragDrop DragOver DropDown EditProperty EditQuery +syn keyword vbEvents EndRequest EnterCell EnterFocus ExitFocus Expand +syn keyword vbEvents FontChanged FootnoteActivated FootnoteSelected +syn keyword vbEvents FootnoteUpdated Format FormatSize GotFocus +syn keyword vbEvents HeadClick HeightChanged Hide InfoMessage +syn keyword vbEvents IniProperties InitProperties Initialize +syn keyword vbEvents ItemActivated ItemAdded ItemCheck ItemClick +syn keyword vbEvents ItemReloaded ItemRemoved ItemRenamed +syn keyword vbEvents ItemSeletected KeyDown KeyPress KeyUp LeaveCell +syn keyword vbEvents LegendActivated LegendSelected LegendUpdated +syn keyword vbEvents LinkClose LinkError LinkExecute LinkNotify +syn keyword vbEvents LinkOpen Load LostFocus MouseDown MouseMove +syn keyword vbEvents MouseUp NodeCheck NodeClick OLECompleteDrag +syn keyword vbEvents OLEDragDrop OLEDragOver OLEGiveFeedback OLESetData +syn keyword vbEvents OLEStartDrag ObjectEvent ObjectMove OnAddNew +syn keyword vbEvents OnComm Paint PanelClick PanelDblClick PathChange +syn keyword vbEvents PatternChange PlotActivated PlotSelected +syn keyword vbEvents PlotUpdated PointActivated PointLabelActivated +syn keyword vbEvents PointLabelSelected PointLabelUpdated PointSelected +syn keyword vbEvents PointUpdated PowerQuerySuspend PowerResume +syn keyword vbEvents PowerStatusChanged PowerSuspend ProcessTag +syn keyword vbEvents ProcessingTimeout QueryChangeConfig QueryClose +syn keyword vbEvents QueryComplete QueryCompleted QueryTimeout +syn keyword vbEvents QueryUnload ReadProperties RepeatedControlLoaded +syn keyword vbEvents RepeatedControlUnloaded Reposition +syn keyword vbEvents RequestChangeFileName RequestWriteFile Resize +syn keyword vbEvents ResultsChanged RetainedProject RollbackTrans +syn keyword vbEvents RowColChange RowCurrencyChange RowResize +syn keyword vbEvents RowStatusChanged Scroll SelChange SelectionChanged +syn keyword vbEvents SendComplete SendProgress SeriesActivated +syn keyword vbEvents SeriesSelected SeriesUpdated SettingChanged Show +syn keyword vbEvents SplitChange Start StateChanged StatusUpdate +syn keyword vbEvents SysColorsChanged Terminate TimeChanged Timer +syn keyword vbEvents TitleActivated TitleSelected TitleUpdated +syn keyword vbEvents UnboundAddData UnboundDeleteRow +syn keyword vbEvents UnboundGetRelativeBookmark UnboundReadData +syn keyword vbEvents UnboundWriteData Unformat Unload UpClick Updated +syn keyword vbEvents UserEvent Validate ValidationError +syn keyword vbEvents VisibleRecordChanged WillAssociate WillChangeData +syn keyword vbEvents WillDissociate WillExecute WillUpdateRows +syn keyword vbEvents WriteProperties + + +syn keyword vbFunction Abs Array Asc AscB AscW Atn Avg BOF CBool CByte +syn keyword vbFunction CCur CDate CDbl CInt CLng CSng CStr CVDate CVErr +syn keyword vbFunction CVar CallByName Cdec Choose Chr ChrB ChrW Command +syn keyword vbFunction Cos Count CreateObject CurDir DDB Date DateAdd +syn keyword vbFunction DateDiff DatePart DateSerial DateValue Day Dir +syn keyword vbFunction DoEvents EOF Environ Error Exp FV FileAttr +syn keyword vbFunction FileDateTime FileLen FilterFix Fix Format +syn keyword vbFunction FormatCurrency FormatDateTime FormatNumber +syn keyword vbFunction FormatPercent FreeFile GetAllStrings GetAttr +syn keyword vbFunction GetAutoServerSettings GetObject GetSetting Hex +syn keyword vbFunction Hour IIf IMEStatus IPmt InStr Input InputB +syn keyword vbFunction InputBox InstrB Int IsArray IsDate IsEmpty IsError +syn keyword vbFunction IsMissing IsNull IsNumeric IsObject Join LBound +syn keyword vbFunction LCase LOF LTrim Left LeftB Len LenB LoadPicture +syn keyword vbFunction LoadResData LoadResPicture LoadResString Loc Log +syn keyword vbFunction MIRR Max Mid MidB Min Minute Month MonthName +syn keyword vbFunction MsgBox NPV NPer Now Oct PPmt PV Partition Pmt +syn keyword vbFunction QBColor RGB RTrim Rate Replace Right RightB Rnd +syn keyword vbFunction Round SLN SYD Second Seek Sgn Shell Sin Space Spc +syn keyword vbFunction Split Sqr StDev StDevP Str StrComp StrConv +syn keyword vbFunction StrReverse String Sum Switch Tab Tan Time +syn keyword vbFunction TimeSerial TimeValue Timer Trim TypeName UBound +syn keyword vbFunction UCase Val Var VarP VarType Weekday WeekdayName +syn keyword vbFunction Year + +syn keyword vbMethods AboutBox Accept Activate Add AddCustom AddFile +syn keyword vbMethods AddFromFile AddFromGuid AddFromString +syn keyword vbMethods AddFromTemplate AddItem AddNew AddToAddInToolbar +syn keyword vbMethods AddToolboxProgID Append AppendAppendChunk +syn keyword vbMethods AppendChunk Arrange Assert AsyncRead BatchUpdate +syn keyword vbMethods BeginQueryEdit BeginTrans Bind BuildPath +syn keyword vbMethods CanPropertyChange Cancel CancelAsyncRead +syn keyword vbMethods CancelBatch CancelUpdate CaptureImage CellText +syn keyword vbMethods CellValue Circle Clear ClearFields ClearSel +syn keyword vbMethods ClearSelCols ClearStructure Clone Close Cls +syn keyword vbMethods ColContaining CollapseAll ColumnSize CommitTrans +syn keyword vbMethods CompactDatabase Compose Connect Copy CopyFile +syn keyword vbMethods CopyFolder CopyQueryDef Count CreateDatabase +syn keyword vbMethods CreateDragImage CreateEmbed CreateField +syn keyword vbMethods CreateFolder CreateGroup CreateIndex CreateLink +syn keyword vbMethods CreatePreparedStatement CreatePropery CreateQuery +syn keyword vbMethods CreateQueryDef CreateRelation CreateTableDef +syn keyword vbMethods CreateTextFile CreateToolWindow CreateUser +syn keyword vbMethods CreateWorkspace Customize Cut Delete +syn keyword vbMethods DeleteColumnLabels DeleteColumns DeleteFile +syn keyword vbMethods DeleteFolder DeleteLines DeleteRowLabels +syn keyword vbMethods DeleteRows DeselectAll DesignerWindow DoVerb Drag +syn keyword vbMethods Draw DriveExists Edit EditCopy EditPaste EndDoc +syn keyword vbMethods EnsureVisible EstablishConnection Execute Exists +syn keyword vbMethods Expand Export ExportReport ExtractIcon Fetch +syn keyword vbMethods FetchVerbs FileExists Files FillCache Find +syn keyword vbMethods FindFirst FindItem FindLast FindNext FindPrevious +syn keyword vbMethods FolderExists Forward GetAbsolutePathName +syn keyword vbMethods GetBaseName GetBookmark GetChunk GetClipString +syn keyword vbMethods GetData GetDrive GetDriveName GetFile GetFileName +syn keyword vbMethods GetFirstVisible GetFolder GetFormat GetHeader +syn keyword vbMethods GetLineFromChar GetNumTicks GetParentFolderName +syn keyword vbMethods GetRows GetSelectedPart GetSelection +syn keyword vbMethods GetSpecialFolder GetTempName GetText +syn keyword vbMethods GetVisibleCount GoBack GoForward Hide HitTest +syn keyword vbMethods HoldFields Idle Import InitializeLabels Insert +syn keyword vbMethods InsertColumnLabels InsertColumns InsertFile +syn keyword vbMethods InsertLines InsertObjDlg InsertRowLabels +syn keyword vbMethods InsertRows Item Keys KillDoc Layout Line Lines +syn keyword vbMethods LinkExecute LinkPoke LinkRequest LinkSend Listen +syn keyword vbMethods LoadFile LoadResData LoadResPicture LoadResString +syn keyword vbMethods LogEvent MakeCompileFile MakeCompiledFile +syn keyword vbMethods MakeReplica MoreResults Move MoveData MoveFile +syn keyword vbMethods MoveFirst MoveFolder MoveLast MoveNext +syn keyword vbMethods MovePrevious NavigateTo NewPage NewPassword +syn keyword vbMethods NextRecordset OLEDrag OnAddinsUpdate OnConnection +syn keyword vbMethods OnDisconnection OnStartupComplete Open +syn keyword vbMethods OpenAsTextStream OpenConnection OpenDatabase +syn keyword vbMethods OpenQueryDef OpenRecordset OpenResultset OpenURL +syn keyword vbMethods Overlay PSet PaintPicture PastSpecialDlg Paste +syn keyword vbMethods PeekData Play Point PopulatePartial PopupMenu +syn keyword vbMethods Print PrintForm PrintReport PropertyChanged Quit +syn keyword vbMethods Raise RandomDataFill RandomFillColumns +syn keyword vbMethods RandomFillRows ReFill Read ReadAll ReadFromFile +syn keyword vbMethods ReadLine ReadProperty Rebind Refresh RefreshLink +syn keyword vbMethods RegisterDatabase ReleaseInstance Reload Remove +syn keyword vbMethods RemoveAddInFromToolbar RemoveAll RemoveItem Render +syn keyword vbMethods RepairDatabase ReplaceLine Reply ReplyAll Requery +syn keyword vbMethods ResetCustom ResetCustomLabel ResolveName +syn keyword vbMethods RestoreToolbar Resync Rollback RollbackTrans +syn keyword vbMethods RowBookmark RowContaining RowTop Save SaveAs +syn keyword vbMethods SaveFile SaveToFile SaveToOle1File SaveToolbar +syn keyword vbMethods Scale ScaleX ScaleY Scroll SelPrint SelectAll +syn keyword vbMethods SelectPart Send SendData Set SetAutoServerSettings +syn keyword vbMethods SetData SetFocus SetOption SetSelection SetSize +syn keyword vbMethods SetText SetViewport Show ShowColor ShowFont +syn keyword vbMethods ShowHelp ShowOpen ShowPrinter ShowSave +syn keyword vbMethods ShowWhatsThis SignOff SignOn Size Skip SkipLine +syn keyword vbMethods Span Split SplitContaining StartLabelEdit +syn keyword vbMethods StartLogging Stop Synchronize Tag TextHeight +syn keyword vbMethods TextWidth ToDefaults Trace TwipsToChartPart +syn keyword vbMethods TypeByChartType URLFor Update UpdateControls +syn keyword vbMethods UpdateRecord UpdateRow Upto ValidateControls Value +syn keyword vbMethods WhatsThisMode Write WriteBlankLines WriteLine +syn keyword vbMethods WriteProperty WriteTemplate ZOrder +syn keyword vbMethods rdoCreateEnvironment rdoRegisterDataSource + +syn keyword vbStatement Alias AppActivate As Base Beep Begin Call ChDir +syn keyword vbStatement ChDrive Close Const Date Declare DefBool DefByte +syn keyword vbStatement DefCur DefDate DefDbl DefDec DefInt DefLng DefObj +syn keyword vbStatement DefSng DefStr DefVar Deftype DeleteSetting Dim Do +syn keyword vbStatement Each ElseIf End Enum Erase Error Event Exit +syn keyword vbStatement Explicit FileCopy For ForEach Function Get GoSub +syn keyword vbStatement GoTo Gosub Implements Kill LSet Let Lib LineInput +syn keyword vbStatement Load Lock Loop Mid MkDir Name Next On OnError Open +syn keyword vbStatement Option Preserve Private Property Public Put RSet +syn keyword vbStatement RaiseEvent Randomize ReDim Redim Reset Resume +syn keyword vbStatement Return RmDir SavePicture SaveSetting Seek SendKeys +syn keyword vbStatement Sendkeys Set SetAttr Static Step Stop Sub Time +syn keyword vbStatement Type Unload Unlock Until Wend While Width With +syn keyword vbStatement Write + +syn keyword vbKeyword As Binary ByRef ByVal Date Empty Error Friend Get +syn keyword vbKeyword Input Is Len Lock Me Mid New Nothing Null On +syn keyword vbKeyword Option Optional ParamArray Print Private Property +syn keyword vbKeyword Public PublicNotCreateable OnNewProcessSingleUse +syn keyword vbKeyword InSameProcessMultiUse GlobalMultiUse Resume Seek +syn keyword vbKeyword Set Static Step String Time WithEvents + +syn keyword vbTodo contained TODO + +"Datatypes +syn keyword vbTypes Boolean Byte Currency Date Decimal Double Empty +syn keyword vbTypes Integer Long Object Single String Variant + +"VB defined values +syn keyword vbDefine dbBigInt dbBinary dbBoolean dbByte dbChar +syn keyword vbDefine dbCurrency dbDate dbDecimal dbDouble dbFloat +syn keyword vbDefine dbGUID dbInteger dbLong dbLongBinary dbMemo +syn keyword vbDefine dbNumeric dbSingle dbText dbTime dbTimeStamp +syn keyword vbDefine dbVarBinary + +"VB defined values +syn keyword vbDefine vb3DDKShadow vb3DFace vb3DHighlight vb3DLight +syn keyword vbDefine vb3DShadow vbAbort vbAbortRetryIgnore +syn keyword vbDefine vbActiveBorder vbActiveTitleBar vbAlias +syn keyword vbDefine vbApplicationModal vbApplicationWorkspace +syn keyword vbDefine vbAppTaskManager vbAppWindows vbArchive vbArray +syn keyword vbDefine vbBack vbBinaryCompare vbBlack vbBlue vbBoolean +syn keyword vbDefine vbButtonFace vbButtonShadow vbButtonText vbByte +syn keyword vbDefine vbCalGreg vbCalHijri vbCancel vbCr vbCritical +syn keyword vbDefine vbCrLf vbCurrency vbCyan vbDatabaseCompare +syn keyword vbDefine vbDataObject vbDate vbDecimal vbDefaultButton1 +syn keyword vbDefine vbDefaultButton2 vbDefaultButton3 vbDefaultButton4 +syn keyword vbDefine vbDesktop vbDirectory vbDouble vbEmpty vbError +syn keyword vbDefine vbExclamation vbFirstFourDays vbFirstFullWeek +syn keyword vbDefine vbFirstJan1 vbFormCode vbFormControlMenu +syn keyword vbDefine vbFormFeed vbFormMDIForm vbFriday vbFromUnicode +syn keyword vbDefine vbGrayText vbGreen vbHidden vbHide vbHighlight +syn keyword vbDefine vbHighlightText vbHiragana vbIgnore vbIMEAlphaDbl +syn keyword vbDefine vbIMEAlphaSng vbIMEDisable vbIMEHiragana +syn keyword vbDefine vbIMEKatakanaDbl vbIMEKatakanaSng vbIMEModeAlpha +syn keyword vbDefine vbIMEModeAlphaFull vbIMEModeDisable +syn keyword vbDefine vbIMEModeHangul vbIMEModeHangulFull +syn keyword vbDefine vbIMEModeHiragana vbIMEModeKatakana +syn keyword vbDefine vbIMEModeKatakanaHalf vbIMEModeNoControl +syn keyword vbDefine vbIMEModeOff vbIMEModeOn vbIMENoOp vbIMEOff +syn keyword vbDefine vbIMEOn vbInactiveBorder vbInactiveCaptionText +syn keyword vbDefine vbInactiveTitleBar vbInfoBackground vbInformation +syn keyword vbDefine vbInfoText vbInteger vbKatakana vbKey0 vbKey1 +syn keyword vbDefine vbKey2 vbKey3 vbKey4 vbKey5 vbKey6 vbKey7 vbKey8 +syn keyword vbDefine vbKey9 vbKeyA vbKeyAdd vbKeyB vbKeyBack vbKeyC +syn keyword vbDefine vbKeyCancel vbKeyCapital vbKeyClear vbKeyControl +syn keyword vbDefine vbKeyD vbKeyDecimal vbKeyDelete vbKeyDivide +syn keyword vbDefine vbKeyDown vbKeyE vbKeyEnd vbKeyEscape vbKeyExecute +syn keyword vbDefine vbKeyF vbKeyF1 vbKeyF10 vbKeyF11 vbKeyF12 vbKeyF13 +syn keyword vbDefine vbKeyF14 vbKeyF15 vbKeyF16 vbKeyF2 vbKeyF3 vbKeyF4 +syn keyword vbDefine vbKeyF5 vbKeyF6 vbKeyF7 vbKeyF8 vbKeyF9 vbKeyG +syn keyword vbDefine vbKeyH vbKeyHelp vbKeyHome vbKeyI vbKeyInsert +syn keyword vbDefine vbKeyJ vbKeyK vbKeyL vbKeyLButton vbKeyLeft vbKeyM +syn keyword vbDefine vbKeyMButton vbKeyMenu vbKeyMultiply vbKeyN +syn keyword vbDefine vbKeyNumlock vbKeyNumpad0 vbKeyNumpad1 +syn keyword vbDefine vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 +syn keyword vbDefine vbKeyNumpad5 vbKeyNumpad6 vbKeyNumpad7 +syn keyword vbDefine vbKeyNumpad8 vbKeyNumpad9 vbKeyO vbKeyP +syn keyword vbDefine vbKeyPageDown vbKeyPageUp vbKeyPause vbKeyPrint +syn keyword vbDefine vbKeyQ vbKeyR vbKeyRButton vbKeyReturn vbKeyRight +syn keyword vbDefine vbKeyS vbKeySelect vbKeySeparator vbKeyShift +syn keyword vbDefine vbKeySnapshot vbKeySpace vbKeySubtract vbKeyT +syn keyword vbDefine vbKeyTab vbKeyU vbKeyUp vbKeyV vbKeyW vbKeyX +syn keyword vbDefine vbKeyY vbKeyZ vbLf vbLong vbLowerCase vbMagenta +syn keyword vbDefine vbMaximizedFocus vbMenuBar vbMenuText +syn keyword vbDefine vbMinimizedFocus vbMinimizedNoFocus vbMonday +syn keyword vbDefine vbMsgBox vbMsgBoxHelpButton vbMsgBoxRight +syn keyword vbDefine vbMsgBoxRtlReading vbMsgBoxSetForeground +syn keyword vbDefine vbMsgBoxText vbNarrow vbNewLine vbNo vbNormal +syn keyword vbDefine vbNormalFocus vbNormalNoFocus vbNull vbNullChar +syn keyword vbDefine vbNullString vbObject vbObjectError vbOK +syn keyword vbDefine vbOKCancel vbOKOnly vbProperCase vbQuestion +syn keyword vbDefine vbReadOnly vbRed vbRetry vbRetryCancel vbSaturday +syn keyword vbDefine vbScrollBars vbSingle vbString vbSunday vbSystem +syn keyword vbDefine vbSystemModal vbTab vbTextCompare vbThursday +syn keyword vbDefine vbTitleBarText vbTuesday vbUnicode vbUpperCase +syn keyword vbDefine vbUseSystem vbUseSystemDayOfWeek vbVariant +syn keyword vbDefine vbVerticalTab vbVolume vbWednesday vbWhite vbWide +syn keyword vbDefine vbWindowBackground vbWindowFrame vbWindowText +syn keyword vbDefine vbYellow vbYes vbYesNo vbYesNoCancel + +"Numbers +"integer number, or floating point number without a dot. +syn match vbNumber "\<\d\+\>" +"floating point number, with dot +syn match vbNumber "\<\d\+\.\d*\>" +"floating point number, starting with a dot +syn match vbNumber "\.\d\+\>" +"syn match vbNumber "{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&" +"syn match vbNumber ":[[:xdigit:]]\+" +"syn match vbNumber "[-+]\=\<\d\+\>" +syn match vbFloat "[-+]\=\<\d\+[eE][\-+]\=\d\+" +syn match vbFloat "[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\=" +syn match vbFloat "[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\=" + +" String and Character constants +syn region vbString start=+"+ end=+"\|$+ +syn region vbComment start="\(^\|\s\)REM\s" end="$" contains=vbTodo +syn region vbComment start="\(^\|\s\)\'" end="$" contains=vbTodo +syn match vbLineLabel "^\h\w\+:" +syn match vbLineNumber "^\d\+\(:\|\s\|$\)" +syn match vbTypeSpecifier "\<\a\w*[@\$%&!#]"ms=s+1 +syn match vbTypeSpecifier "#[a-zA-Z0-9]"me=e-1 +" Conditional Compilation +syn match vbPreProc "^#const\>" +syn region vbPreProc matchgroup=PreProc start="^#if\>" end="\" transparent contains=TOP +syn region vbPreProc matchgroup=PreProc start="^#elseif\>" end="\" transparent contains=TOP +syn match vbPreProc "^#else\>" +syn match vbPreProc "^#end\s*if\>" + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link vbBoolean Boolean +hi def link vbLineNumber Comment +hi def link vbLineLabel Comment +hi def link vbComment Comment +hi def link vbConditional Conditional +hi def link vbConst Constant +hi def link vbDefine Constant +hi def link vbError Error +hi def link vbFunction Identifier +hi def link vbIdentifier Identifier +hi def link vbNumber Number +hi def link vbFloat Float +hi def link vbMethods PreProc +hi def link vbOperator Operator +hi def link vbRepeat Repeat +hi def link vbString String +hi def link vbStatement Statement +hi def link vbKeyword Statement +hi def link vbEvents Special +hi def link vbTodo Todo +hi def link vbTypes Type +hi def link vbTypeSpecifier Type +hi def link vbPreProc PreProc + +let b:current_syntax = "vb" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vdf.vim b/git/usr/share/vim/vim92/syntax/vdf.vim new file mode 100644 index 0000000000000000000000000000000000000000..c690b706eac374706c21fb05556565ce1bcfd373 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vdf.vim @@ -0,0 +1,54 @@ +" Vim syntax file +" Language: Valve Data Format +" Maintainer: ObserverOfTime +" Filenames: *.vdf +" Last Change: 2022 Sep 15 + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpoptions +set cpoptions&vim + +" Comment +syn keyword vdfTodo contained TODO FIXME XXX +syn match vdfComment +//.*+ contains=vdfTodo + +" Macro +syn match vdfMacro /^\s*#.*/ + +" Tag +syn region vdfTag start=/"/ skip=/\\"/ end=/"/ + \ nextgroup=vdfValue skipwhite oneline + +" Section +syn region vdfSection matchgroup=vdfBrace + \ start=/{/ end=/}/ transparent fold + \ contains=vdfTag,vdfSection,vdfComment,vdfConditional + +" Conditional +syn match vdfConditional /\[\$\w\{1,1021}\]/ nextgroup=vdfTag + +" Value +syn region vdfValue start=/"/ skip=/\\"/ end=/"/ + \ oneline contained contains=vdfVariable,vdfNumber,vdfEscape +syn region vdfVariable start=/%/ skip=/\\%/ end=/%/ oneline contained +syn match vdfEscape /\\[nt\\"]/ contained +syn match vdfNumber /"-\?\d\+"/ contained + +hi def link vdfBrace Delimiter +hi def link vdfComment Comment +hi def link vdfConditional Constant +hi def link vdfEscape SpecialChar +hi def link vdfMacro Macro +hi def link vdfNumber Number +hi def link vdfTag Keyword +hi def link vdfTodo Todo +hi def link vdfValue String +hi def link vdfVariable Identifier + +let b:current_syntax = 'vdf' + +let &cpoptions = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/vera.vim b/git/usr/share/vim/vim92/syntax/vera.vim new file mode 100644 index 0000000000000000000000000000000000000000..b41c0a6cbf1c597167364e1574c8854bc1dfe3c9 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vera.vim @@ -0,0 +1,348 @@ +" Vim syntax file +" Language: Vera +" Maintainer: Dave Eggum (opine at bluebottle dOt com) +" Last Change: 2005 Dec 19 + +" NOTE: extra white space at the end of the line will be highlighted if you +" add this line to your colorscheme: + +" highlight SpaceError guibg=#204050 + +" (change the value for guibg to any color you like) + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" A bunch of useful Vera keywords +syn keyword veraStatement break return continue fork join terminate +syn keyword veraStatement breakpoint proceed + +syn keyword veraLabel bad_state bad_trans bind constraint coverage_group +syn keyword veraLabel class CLOCK default function interface m_bad_state +syn keyword veraLabel m_bad_trans m_state m_trans program randseq state +syn keyword veraLabel task trans + +syn keyword veraConditional if else case casex casez randcase +syn keyword veraRepeat repeat while for do foreach +syn keyword veraModifier after all any around assoc_size async +syn keyword veraModifier before big_endian bit_normal bit_reverse export +syn keyword veraModifier extends extern little_endian local hdl_node hdl_task +syn keyword veraModifier negedge none packed protected posedge public rules +syn keyword veraModifier shadow soft static super this typedef unpacked var +syn keyword veraModifier vca virtual virtuals wildcard with + +syn keyword veraType reg string enum event bit +syn keyword veraType rand randc integer port prod + +syn keyword veraDeprecated call_func call_task close_conn get_bind get_bind_id +syn keyword veraDeprecated get_conn_err mailbox_receive mailbox_send make_client +syn keyword veraDeprecated make_server simwave_plot up_connections + +" predefined tasks and functions +syn keyword veraTask alloc assoc_index cast_assign cm_coverage +syn keyword veraTask cm_get_coverage cm_get_limit delay error error_mode +syn keyword veraTask exit fclose feof ferror fflush flag fopen fprintf +syn keyword veraTask freadb freadh freadstr get_cycle get_env get_memsize +syn keyword veraTask get_plus_arg getstate get_systime get_time get_time_unit +syn keyword veraTask initstate lock_file mailbox_get mailbox_put os_command +syn keyword veraTask printf prodget prodset psprintf query query_str query_x +syn keyword veraTask rand48 random region_enter region_exit rewind +syn keyword veraTask semaphore_get semaphore_put setstate signal_connect +syn keyword veraTask sprintf srandom sscanf stop suspend_thread sync +syn keyword veraTask timeout trace trigger unit_delay unlock_file urand48 +syn keyword veraTask urandom urandom_range vera_bit_reverse vera_crc +syn keyword veraTask vera_pack vera_pack_big_endian vera_plot +syn keyword veraTask vera_report_profile vera_unpack vera_unpack_big_endian +syn keyword veraTask vsv_call_func vsv_call_task vsv_get_conn_err +syn keyword veraTask vsv_make_client vsv_make_server vsv_up_connections +syn keyword veraTask vsv_wait_for_done vsv_wait_for_input wait_child wait_var + +syn cluster veraOperGroup contains=veraOperator,veraOperParen,veraNumber,veraString,veraOperOk,veraType +" syn match veraOperator "++\|--\|&\|\~&\||\|\~|\|^\|\~^\|\~\|><" +" syn match veraOperator "*\|/\|%\|+\|-\|<<\|>>\|<\|<=\|>\|>=\|!in" +" syn match veraOperator "=?=\|!?=\|==\|!=\|===\|!==\|&\~\|^\~\||\~" +" syn match veraOperator "&&\|||\|=\|+=\|-=\|*=\|/=\|%=\|<<=\|>>=\|&=" +" syn match veraOperator "|=\|^=\|\~&=\|\~|=\|\~^=" + +syn match veraOperator "[&|\~>" +" "hex number +" syn match veraNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" +" syn match veraNumber "\(\<[0-9]\+\|\)'[bdoh][0-9a-fxzA-FXZ_]\+\>" +syn match veraNumber "\<\(\<[0-9]\+\)\?\('[bdoh]\)\?[0-9a-fxz_]\+\>" +" syn match veraNumber "\<[+-]\=[0-9]\+\>" +" Flag the first zero of an octal number as something special +syn match veraOctal display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=veraOctalZero +syn match veraOctalZero display contained "\<0" +syn match veraFloat display contained "\d\+f" +"floating point number, with dot, optional exponent +syn match veraFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +"floating point number, starting with a dot, optional exponent +syn match veraFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +"floating point number, without dot, with exponent +syn match veraFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" +"hexadecimal floating point number, optional leading digits, with dot, with exponent +syn match veraFloat display contained "0x\x*\.\x\+p[-+]\=\d\+[fl]\=\>" +"hexadecimal floating point number, with leading digits, optional dot, with exponent +syn match veraFloat display contained "0x\x\+\.\=p[-+]\=\d\+[fl]\=\>" + +" flag an octal number with wrong digits +syn match veraOctalError display contained "0\o*[89]\d*" +syn case match + +let vera_comment_strings = 1 + +if exists("vera_comment_strings") + " A comment can contain veraString, veraCharacter and veraNumber. + " But a "*/" inside a veraString in a veraComment DOES end the comment! So we + " need to use a special type of veraString: veraCommentString, which also ends on + " "*/", and sees a "*" at the start of the line as comment again. + " Unfortunately this doesn't work very well for // type of comments :-( + syntax match veraCommentSkip contained "^\s*\*\($\|\s\+\)" + syntax region veraCommentString contained start=+L\=\\\@" + +syn match veraClass "\zs\w\+\ze::" +syn match veraClass "\zs\w\+\ze\s\+\w\+\s*[=;,)\[]" contains=veraConstant,veraUserConstant +syn match veraClass "\zs\w\+\ze\s\+\w\+\s*$" contains=veraConstant,veraUserConstant +syn match veraUserMethod "\zs\w\+\ze\s*(" contains=veraConstant,veraUserConstant +syn match veraObject "\zs\w\+\ze\.\w" +syn match veraObject "\zs\w\+\ze\.\$\w" + +" Accept ` for # (Verilog) +syn region veraPreCondit start="^\s*\(`\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=veraComment,veraCppString,veraCharacter,veraCppParen,veraParenError,veraNumbers,veraCommentError,veraSpaceError +syn match veraPreCondit display "^\s*\(`\|#\)\s*\(else\|endif\)\>" +if !exists("vera_no_if0") + syn region veraCppOut start="^\s*\(`\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=veraCppOut2 + syn region veraCppOut2 contained start="0" end="^\s*\(`\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=veraSpaceError,veraCppSkip + syn region veraCppSkip contained start="^\s*\(`\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(`\|#\)\s*endif\>" contains=veraSpaceError,veraCppSkip +endif +syn region veraIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match veraIncluded display contained "<[^>]*>" +syn match veraInclude display "^\s*\(`\|#\)\s*include\>\s*["<]" contains=veraIncluded +"syn match veraLineSkip "\\$" +syn cluster veraPreProcGroup contains=veraPreCondit,veraIncluded,veraInclude,veraDefine,veraErrInParen,veraErrInBracket,veraUserLabel,veraSpecial,veraOctalZero,veraCppOut,veraCppOut2,veraCppSkip,veraFormat,veraNumber,veraFloat,veraOctal,veraOctalError,veraNumbersCom,veraString,veraCommentSkip,veraCommentString,veraComment2String,@veraCommentGroup,veraCommentStartError,veraParen,veraBracket,veraMulti +syn region veraDefine start="^\s*\(`\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 contains=ALLBUT,@veraPreProcGroup,@Spell +syn region veraPreProc start="^\s*\(`\|#\)\s*\(pragma\>\|line\>\|warning\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@veraPreProcGroup,@Spell + +" Highlight User Labels +syn cluster veraMultiGroup contains=veraIncluded,veraSpecial,veraCommentSkip,veraCommentString,veraComment2String,@veraCommentGroup,veraCommentStartError,veraUserCont,veraUserLabel,veraBitField,veraOctalZero,veraCppOut,veraCppOut2,veraCppSkip,veraFormat,veraNumber,veraFloat,veraOctal,veraOctalError,veraNumbersCom,veraCppParen,veraCppBracket,veraCppString +syn region veraMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@veraMultiGroup,@Spell +" syn region veraMulti transparent start='?' skip='::' end=':' contains=ALL +" The above causes veraCppOut2 to catch on: +" i = (isTrue) ? 0 : 1; +" which ends up commenting the rest of the file + +" Avoid matching foo::bar() by requiring that the next char is not ':' +syn cluster veraLabelGroup contains=veraUserLabel +syn match veraUserCont display "^\s*\I\i*\s*:$" contains=@veraLabelGroup +syn match veraUserCont display ";\s*\I\i*\s*:$" contains=@veraLabelGroup +syn match veraUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@veraLabelGroup +syn match veraUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@veraLabelGroup + +syn match veraUserLabel display "\I\i*" contained + +" Avoid recognizing most bitfields as labels +syn match veraBitField display "^\s*\I\i*\s*:\s*[1-9]"me=e-1 +syn match veraBitField display ";\s*\I\i*\s*:\s*[1-9]"me=e-1 + +if exists("vera_minlines") + let b:vera_minlines = vera_minlines +else + if !exists("vera_no_if0") + let b:vera_minlines = 50 " #if 0 constructs can be long + else + let b:vera_minlines = 15 " mostly for () constructs + endif +endif +exec "syn sync ccomment veraComment minlines=" . b:vera_minlines + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link veraClass Identifier +hi def link veraObject Identifier +hi def link veraUserMethod Function +hi def link veraTask Keyword +hi def link veraModifier Tag +hi def link veraDeprecated veraError +hi def link veraMethods Statement +" hi def link veraInterface Label +hi def link veraInterface Function + +hi def link veraFormat veraSpecial +hi def link veraCppString veraString +hi def link veraCommentL veraComment +hi def link veraCommentStart veraComment +hi def link veraLabel Label +hi def link veraUserLabel Label +hi def link veraConditional Conditional +hi def link veraRepeat Repeat +hi def link veraCharacter Character +hi def link veraSpecialCharacter veraSpecial +hi def link veraNumber Number +hi def link veraOctal Number +hi def link veraOctalZero PreProc " link this to Error if you want +hi def link veraFloat Float +hi def link veraOctalError veraError +hi def link veraParenError veraError +hi def link veraErrInParen veraError +hi def link veraErrInBracket veraError +hi def link veraCommentError veraError +hi def link veraCommentStartError veraError +hi def link veraSpaceError SpaceError +hi def link veraSpecialError veraError +hi def link veraOperator Operator +hi def link veraStructure Structure +hi def link veraInclude Include +hi def link veraPreProc PreProc +hi def link veraDefine Macro +hi def link veraIncluded veraString +hi def link veraError Error +hi def link veraStatement Statement +hi def link veraPreCondit PreCondit +hi def link veraType Type +" hi def link veraConstant Constant +hi def link veraConstant Keyword +hi def link veraUserConstant Constant +hi def link veraCommentString veraString +hi def link veraComment2String veraString +hi def link veraCommentSkip veraComment +hi def link veraString String +hi def link veraComment Comment +hi def link veraSpecial SpecialChar +hi def link veraTodo Todo +hi def link veraCppSkip veraCppOut +hi def link veraCppOut2 veraCppOut +hi def link veraCppOut Comment + + +let b:current_syntax = "vera" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/verilog.vim b/git/usr/share/vim/vim92/syntax/verilog.vim new file mode 100644 index 0000000000000000000000000000000000000000..bbaca491a7474b594a92df76b45e5554a3c3d119 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/verilog.vim @@ -0,0 +1,119 @@ +" Vim syntax file +" Language: Verilog +" Maintainer: Mun Johl +" Last Update: Wed Jul 20 16:04:19 PDT 2011 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Set the local value of the 'iskeyword' option. +" NOTE: '?' was added so that verilogNumber would be processed correctly when +" '?' is the last character of the number. +setlocal iskeyword=@,48-57,63,_,192-255 + +" A bunch of useful Verilog keywords + +syn keyword verilogStatement always and assign automatic buf +syn keyword verilogStatement bufif0 bufif1 cell cmos +syn keyword verilogStatement config deassign defparam design +syn keyword verilogStatement disable edge endconfig +syn keyword verilogStatement endfunction endgenerate endmodule +syn keyword verilogStatement endprimitive endspecify endtable endtask +syn keyword verilogStatement event force function +syn keyword verilogStatement generate genvar highz0 highz1 ifnone +syn keyword verilogStatement incdir include initial inout input +syn keyword verilogStatement instance integer large liblist +syn keyword verilogStatement library localparam macromodule medium +syn keyword verilogStatement module nand negedge nmos nor +syn keyword verilogStatement noshowcancelled not notif0 notif1 or +syn keyword verilogStatement output parameter pmos posedge primitive +syn keyword verilogStatement pull0 pull1 pulldown pullup +syn keyword verilogStatement pulsestyle_onevent pulsestyle_ondetect +syn keyword verilogStatement rcmos real realtime reg release +syn keyword verilogStatement rnmos rpmos rtran rtranif0 rtranif1 +syn keyword verilogStatement scalared showcancelled signed small +syn keyword verilogStatement specify specparam strong0 strong1 +syn keyword verilogStatement supply0 supply1 table task time tran +syn keyword verilogStatement tranif0 tranif1 tri tri0 tri1 triand +syn keyword verilogStatement trior trireg unsigned use vectored wait +syn keyword verilogStatement wand weak0 weak1 wire wor xnor xor +syn keyword verilogLabel begin end fork join +syn keyword verilogConditional if else case casex casez default endcase +syn keyword verilogRepeat forever repeat while for + +syn keyword verilogTodo contained TODO FIXME + +syn match verilogOperator "[&|~>" +syn match verilogGlobal "`celldefine" +syn match verilogGlobal "`default_nettype" +syn match verilogGlobal "`define" +syn match verilogGlobal "`else" +syn match verilogGlobal "`elsif" +syn match verilogGlobal "`endcelldefine" +syn match verilogGlobal "`endif" +syn match verilogGlobal "`ifdef" +syn match verilogGlobal "`ifndef" +syn match verilogGlobal "`include" +syn match verilogGlobal "`line" +syn match verilogGlobal "`nounconnected_drive" +syn match verilogGlobal "`resetall" +syn match verilogGlobal "`timescale" +syn match verilogGlobal "`unconnected_drive" +syn match verilogGlobal "`undef" +syn match verilogGlobal "$[a-zA-Z0-9_]\+\>" + +syn match verilogConstant "\<[A-Z][A-Z0-9_]\+\>" + +syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[bB]\s*[0-1_xXzZ?]\+\>" +syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[oO]\s*[0-7_xXzZ?]\+\>" +syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[dD]\s*[0-9_xXzZ?]\+\>" +syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[hH]\s*[0-9a-fA-F_xXzZ?]\+\>" +syn match verilogNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>" + +syn region verilogString start=+"+ skip=+\\"+ end=+"+ contains=verilogEscape,@Spell +syn match verilogEscape +\\[nt"\\]+ contained +syn match verilogEscape "\\\o\o\=\o\=" contained + +" Directives +syn match verilogDirective "//\s*synopsys\>.*$" +syn region verilogDirective start="/\*\s*synopsys\>" end="\*/" +syn region verilogDirective start="//\s*synopsys dc_script_begin\>" end="//\s*synopsys dc_script_end\>" + +syn match verilogDirective "//\s*\$s\>.*$" +syn region verilogDirective start="/\*\s*\$s\>" end="\*/" +syn region verilogDirective start="//\s*\$s dc_script_begin\>" end="//\s*\$s dc_script_end\>" + +"Modify the following as needed. The trade-off is performance versus +"functionality. +syn sync minlines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default highlighting. +hi def link verilogCharacter Character +hi def link verilogConditional Conditional +hi def link verilogRepeat Repeat +hi def link verilogString String +hi def link verilogTodo Todo +hi def link verilogComment Comment +hi def link verilogConstant Constant +hi def link verilogLabel Label +hi def link verilogNumber Number +hi def link verilogOperator Special +hi def link verilogStatement Statement +hi def link verilogGlobal Define +hi def link verilogDirective SpecialComment +hi def link verilogEscape Special + + +let b:current_syntax = "verilog" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/verilogams.vim b/git/usr/share/vim/vim92/syntax/verilogams.vim new file mode 100644 index 0000000000000000000000000000000000000000..7551b681a805f191e32ff5b28a3c846d83e42413 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/verilogams.vim @@ -0,0 +1,132 @@ +" Vim syntax file +" Language: Verilog-AMS +" Maintainer: S. Myles Prather +" +" Version 1.1 S. Myles Prather +" Moved some keywords to the type category. +" Added the metrix suffixes to the number matcher. +" Version 1.2 Prasanna Tamhankar +" Minor reserved keyword updates. +" Last Update: Thursday September 15 15:36:03 CST 2005 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Set the local value of the 'iskeyword' option +setlocal iskeyword=@,48-57,_,192-255 + +" Annex B.1 'All keywords' +syn keyword verilogamsStatement above abs absdelay acos acosh ac_stim +syn keyword verilogamsStatement always analog analysis and asin +syn keyword verilogamsStatement asinh assign atan atan2 atanh +syn keyword verilogamsStatement buf bufif0 bufif1 ceil cmos connectmodule +syn keyword verilogamsStatement connectrules cos cosh cross ddt ddx deassign +syn keyword verilogamsStatement defparam disable discipline +syn keyword verilogamsStatement driver_update edge enddiscipline +syn keyword verilogamsStatement endconnectrules endmodule endfunction endgenerate +syn keyword verilogamsStatement endnature endparamset endprimitive endspecify +syn keyword verilogamsStatement endtable endtask event exp final_step +syn keyword verilogamsStatement flicker_noise floor flow force fork +syn keyword verilogamsStatement function generate highz0 +syn keyword verilogamsStatement highz1 hypot idt idtmod if ifnone inf initial +syn keyword verilogamsStatement initial_step inout input join +syn keyword verilogamsStatement laplace_nd laplace_np laplace_zd laplace_zp +syn keyword verilogamsStatement large last_crossing limexp ln localparam log +syn keyword verilogamsStatement macromodule max medium min module nand nature +syn keyword verilogamsStatement negedge net_resolution nmos noise_table nor not +syn keyword verilogamsStatement notif0 notif1 or output paramset pmos +syn keyword verilogamsType parameter real integer electrical input output +syn keyword verilogamsType inout reg tri tri0 tri1 triand trior trireg +syn keyword verilogamsType string from exclude aliasparam ground genvar +syn keyword verilogamsType branch time realtime +syn keyword verilogamsStatement posedge potential pow primitive pull0 pull1 +syn keyword verilogamsStatement pullup pulldown rcmos release +syn keyword verilogamsStatement rnmos rpmos rtran rtranif0 rtranif1 +syn keyword verilogamsStatement scalared sin sinh slew small specify specparam +syn keyword verilogamsStatement sqrt strong0 strong1 supply0 supply1 +syn keyword verilogamsStatement table tan tanh task timer tran tranif0 +syn keyword verilogamsStatement tranif1 transition +syn keyword verilogamsStatement vectored wait wand weak0 weak1 +syn keyword verilogamsStatement white_noise wire wor wreal xnor xor zi_nd +syn keyword verilogamsStatement zi_np zi_zd zi_zp +syn keyword verilogamsRepeat forever repeat while for +syn keyword verilogamsLabel begin end +syn keyword verilogamsConditional if else case casex casez default endcase +syn match verilogamsConstant ":inf"lc=1 +syn match verilogamsConstant "-inf"lc=1 +" Annex B.2 Discipline/nature +syn keyword verilogamsStatement abstol access continuous ddt_nature discrete +syn keyword verilogamsStatement domain idt_nature units +" Annex B.3 Connect Rules +syn keyword verilogamsStatement connect merged resolveto split + +syn match verilogamsOperator "[&|~>" + +syn match verilogamsConstant "\<[A-Z][A-Z0-9_]\+\>" + +syn match verilogamsNumber "\(\<\d\+\|\)'[bB]\s*[0-1_xXzZ?]\+\>" +syn match verilogamsNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>" +syn match verilogamsNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>" +syn match verilogamsNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>" +syn match verilogamsNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)[TGMKkmunpfa]\=\>" + +syn region verilogamsString start=+"+ skip=+\\"+ end=+"+ contains=verilogamsEscape +syn match verilogamsEscape +\\[nt"\\]+ contained +syn match verilogamsEscape "\\\o\o\=\o\=" contained + +"Modify the following as needed. The trade-off is performance versus +"functionality. +syn sync lines=50 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default highlighting. +hi def link verilogamsCharacter Character +hi def link verilogamsConditional Conditional +hi def link verilogamsRepeat Repeat +hi def link verilogamsString String +hi def link verilogamsTodo Todo +hi def link verilogamsComment Comment +hi def link verilogamsConstant Constant +hi def link verilogamsLabel Label +hi def link verilogamsNumber Number +hi def link verilogamsOperator Special +hi def link verilogamsStatement Statement +hi def link verilogamsGlobal Define +hi def link verilogamsDirective SpecialComment +hi def link verilogamsEscape Special +hi def link verilogamsType Type +hi def link verilogamsSystask Function + + +let b:current_syntax = "verilogams" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vgrindefs.vim b/git/usr/share/vim/vim92/syntax/vgrindefs.vim new file mode 100644 index 0000000000000000000000000000000000000000..a194c108cb2f56169018e87779c849da34fba188 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vgrindefs.vim @@ -0,0 +1,46 @@ +" Vim syntax file +" Language: Vgrindefs +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" The Vgrindefs file is used to specify a language for vgrind + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Comments +syn match vgrindefsComment "^#.*" + +" The fields that vgrind recognizes +syn match vgrindefsField ":ab=" +syn match vgrindefsField ":ae=" +syn match vgrindefsField ":pb=" +syn match vgrindefsField ":bb=" +syn match vgrindefsField ":be=" +syn match vgrindefsField ":cb=" +syn match vgrindefsField ":ce=" +syn match vgrindefsField ":sb=" +syn match vgrindefsField ":se=" +syn match vgrindefsField ":lb=" +syn match vgrindefsField ":le=" +syn match vgrindefsField ":nc=" +syn match vgrindefsField ":tl" +syn match vgrindefsField ":oc" +syn match vgrindefsField ":kw=" + +" Also find the ':' at the end of the line, so all ':' are highlighted +syn match vgrindefsField ":\\$" +syn match vgrindefsField ":$" +syn match vgrindefsField "\\$" + +" Define the default highlighting. +" Only used when an item doesn't have highlighting yet +hi def link vgrindefsField Statement +hi def link vgrindefsComment Comment + +let b:current_syntax = "vgrindefs" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vhdl.vim b/git/usr/share/vim/vim92/syntax/vhdl.vim new file mode 100644 index 0000000000000000000000000000000000000000..06fc2e795e90b1b3ca960088e3a019fdfc0d562a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vhdl.vim @@ -0,0 +1,268 @@ +" Vim syntax file +" Language: VHDL [VHSIC (Very High Speed Integrated Circuit) Hardware Description Language] +" Maintainer: Daniel Kho +" Previous Maintainer: Czo +" Credits: Stephan Hegel +" Last Changed: 2020 Apr 04 by Daniel Kho + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" case is not significant +syn case ignore + +" VHDL 1076-2019 keywords +syn keyword vhdlStatement access after alias all +syn keyword vhdlStatement architecture array attribute +syn keyword vhdlStatement assert assume +syn keyword vhdlStatement begin block body buffer bus +syn keyword vhdlStatement case component configuration constant +syn keyword vhdlStatement context cover +syn keyword vhdlStatement default disconnect downto +syn keyword vhdlStatement elsif end entity exit +syn keyword vhdlStatement file for function +syn keyword vhdlStatement fairness force +syn keyword vhdlStatement generate generic group guarded +syn keyword vhdlStatement impure in inertial inout is +syn keyword vhdlStatement label library linkage literal loop +syn keyword vhdlStatement map +syn keyword vhdlStatement new next null +syn keyword vhdlStatement of on open others out +syn keyword vhdlStatement package port postponed procedure process pure +syn keyword vhdlStatement parameter property protected private +syn keyword vhdlStatement range record register reject report return +syn keyword vhdlStatement release restrict +syn keyword vhdlStatement select severity signal shared subtype +syn keyword vhdlStatement sequence strong +syn keyword vhdlStatement then to transport type +syn keyword vhdlStatement unaffected units until use +syn keyword vhdlStatement variable view +syn keyword vhdlStatement vpkg vmode vprop vunit +syn keyword vhdlStatement wait when while with + +" VHDL predefined severity levels +syn keyword vhdlAttribute note warning error failure + +" Linting of conditionals. +syn match vhdlStatement "\<\(if\|else\)\>" +syn match vhdlError "\" + +" Types and type qualifiers +" Predefined standard VHDL types +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" + +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" + +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn keyword vhdlType line text side width + +" Predefined standard IEEE VHDL types +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" +syn match vhdlType "\\'\=" + + +" array attributes +syn match vhdlAttribute "\'high" +syn match vhdlAttribute "\'left" +syn match vhdlAttribute "\'length" +syn match vhdlAttribute "\'low" +syn match vhdlAttribute "\'range" +syn match vhdlAttribute "\'reverse_range" +syn match vhdlAttribute "\'right" +syn match vhdlAttribute "\'ascending" +" block attributes +syn match vhdlAttribute "\'simple_name" +syn match vhdlAttribute "\'instance_name" +syn match vhdlAttribute "\'path_name" +syn match vhdlAttribute "\'foreign" " VHPI +" signal attribute +syn match vhdlAttribute "\'active" +syn match vhdlAttribute "\'delayed" +syn match vhdlAttribute "\'event" +syn match vhdlAttribute "\'last_active" +syn match vhdlAttribute "\'last_event" +syn match vhdlAttribute "\'last_value" +syn match vhdlAttribute "\'quiet" +syn match vhdlAttribute "\'stable" +syn match vhdlAttribute "\'transaction" +syn match vhdlAttribute "\'driving" +syn match vhdlAttribute "\'driving_value" +" type attributes +syn match vhdlAttribute "\'base" +syn match vhdlAttribute "\'subtype" +syn match vhdlAttribute "\'element" +syn match vhdlAttribute "\'leftof" +syn match vhdlAttribute "\'pos" +syn match vhdlAttribute "\'pred" +syn match vhdlAttribute "\'rightof" +syn match vhdlAttribute "\'succ" +syn match vhdlAttribute "\'val" +syn match vhdlAttribute "\'image" +syn match vhdlAttribute "\'value" +" VHDL-2019 interface attribute +syn match vhdlAttribute "\'converse" + +syn keyword vhdlBoolean true false + +" for this vector values case is significant +syn case match +" Values for standard VHDL types +syn match vhdlVector "\'[0L1HXWZU\-\?]\'" +syn case ignore + +syn match vhdlVector "B\"[01_]\+\"" +syn match vhdlVector "O\"[0-7_]\+\"" +syn match vhdlVector "X\"[0-9a-f_]\+\"" +syn match vhdlCharacter "'.'" +syn region vhdlString start=+"+ end=+"+ + +" floating numbers +syn match vhdlNumber "-\=\<\d\+\.\d\+\(E[+\-]\=\d\+\)\>" +syn match vhdlNumber "-\=\<\d\+\.\d\+\>" +syn match vhdlNumber "0*2#[01_]\+\.[01_]\+#\(E[+\-]\=\d\+\)\=" +syn match vhdlNumber "0*16#[0-9a-f_]\+\.[0-9a-f_]\+#\(E[+\-]\=\d\+\)\=" +" integer numbers +syn match vhdlNumber "-\=\<\d\+\(E[+\-]\=\d\+\)\>" +syn match vhdlNumber "-\=\<\d\+\>" +syn match vhdlNumber "0*2#[01_]\+#\(E[+\-]\=\d\+\)\=" +syn match vhdlNumber "0*16#[0-9a-f_]\+#\(E[+\-]\=\d\+\)\=" + +" operators +syn keyword vhdlOperator and nand or nor xor xnor +syn keyword vhdlOperator rol ror sla sll sra srl +syn keyword vhdlOperator mod rem abs not + +" Concatenation and math operators +syn match vhdlOperator "&\|+\|-\|\*\|\/" + +" Equality and comparison operators +syn match vhdlOperator "=\|\/=\|>\|<\|>=" + +" Assignment operators +syn match vhdlOperator "<=\|:=" +syn match vhdlOperator "=>" + +" VHDL-202x concurrent signal association (spaceship) operator +syn match vhdlOperator "<=>" + +" VHDL-2008 conversion, matching equality/non-equality operators +syn match vhdlOperator "??\|?=\|?\/=\|?<\|?<=\|?>\|?>=" + +" VHDL-2008 external names +syn match vhdlOperator "<<\|>>" + +" Linting for illegal operators +" '=' +syn match vhdlError "\(=\)[<=&+\-\*\/\\]\+" +syn match vhdlError "[=&+\-\*\\]\+\(=\)" +" '>', '<' +" Allow external names: '<< ... >>' +syn match vhdlError "\(>\)[<&+\-\/\\]\+" +syn match vhdlError "[&+\-\/\\]\+\(>\)" +syn match vhdlError "\(<\)[&+\-\/\\]\+" +syn match vhdlError "[>=&+\-\/\\]\+\(<\)" +" Covers most operators +" support negative sign after operators. E.g. q<=-b; +" Supports VHDL-202x spaceship (concurrent simple signal association). +syn match vhdlError "\(<=\)[<=&+\*\\?:]\+" +syn match vhdlError "[>=&+\-\*\\:]\+\(=>\)" +syn match vhdlError "\(&\|+\|\-\|\*\*\|\/=\|??\|?=\|?\/=\|?<=\|?>=\|>=\|:=\|=>\)[<>=&+\*\\?:]\+" +syn match vhdlError "[<>=&+\-\*\\:]\+\(&\|+\|\*\*\|\/=\|??\|?=\|?\/=\|?<\|?<=\|?>\|?>=\|>=\|<=\|:=\)" +syn match vhdlError "\(?<\|?>\)[<>&+\*\/\\?:]\+" +syn match vhdlError "\(<<\|>>\)[<>&+\*\/\\?:]\+" + +"syn match vhdlError "[?]\+\(&\|+\|\-\|\*\*\|??\|?=\|?\/=\|?<\|?<=\|?>\|?>=\|:=\|=>\)" +" '/' +syn match vhdlError "\(\/\)[<>&+\-\*\/\\?:]\+" +syn match vhdlError "[<>=&+\-\*\/\\:]\+\(\/\)" + +syn match vhdlSpecial "<>" +syn match vhdlSpecial "[().,;]" + + +" time +syn match vhdlTime "\<\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" +syn match vhdlTime "\<\d\+\.\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" + +syn case match +syn keyword vhdlTodo contained TODO NOTE +syn keyword vhdlFixme contained FIXME +syn case ignore + +syn region vhdlComment start="/\*" end="\*/" contains=vhdlTodo,vhdlFixme,@Spell +syn match vhdlComment "\(^\|\s\)--.*" contains=vhdlTodo,vhdlFixme,@Spell + +" Standard IEEE P1076.6 preprocessor directives (metacomments). +syn match vhdlPreProc "/\*\s*rtl_synthesis\s\+\(on\|off\)\s*\*/" +syn match vhdlPreProc "\(^\|\s\)--\s*rtl_synthesis\s\+\(on\|off\)\s*" +syn match vhdlPreProc "/\*\s*rtl_syn\s\+\(on\|off\)\s*\*/" +syn match vhdlPreProc "\(^\|\s\)--\s*rtl_syn\s\+\(on\|off\)\s*" + +" Industry-standard directives. These are not standard VHDL, but are commonly +" used in the industry. +syn match vhdlPreProc "/\*\s*synthesis\s\+translate_\(on\|off\)\s*\*/" +"syn match vhdlPreProc "/\*\s*simulation\s\+translate_\(on\|off\)\s*\*/" +syn match vhdlPreProc "/\*\s*pragma\s\+translate_\(on\|off\)\s*\*/" +syn match vhdlPreProc "/\*\s*pragma\s\+synthesis_\(on\|off\)\s*\*/" +syn match vhdlPreProc "/\*\s*synopsys\s\+translate_\(on\|off\)\s*\*/" + +syn match vhdlPreProc "\(^\|\s\)--\s*synthesis\s\+translate_\(on\|off\)\s*" +"syn match vhdlPreProc "\(^\|\s\)--\s*simulation\s\+translate_\(on\|off\)\s*" +syn match vhdlPreProc "\(^\|\s\)--\s*pragma\s\+translate_\(on\|off\)\s*" +syn match vhdlPreProc "\(^\|\s\)--\s*pragma\s\+synthesis_\(on\|off\)\s*" +syn match vhdlPreProc "\(^\|\s\)--\s*synopsys\s\+translate_\(on\|off\)\s*" + +"Modify the following as needed. The trade-off is performance versus functionality. +syn sync minlines=600 + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link vhdlSpecial Special +hi def link vhdlStatement Statement +hi def link vhdlCharacter Character +hi def link vhdlString String +hi def link vhdlVector Number +hi def link vhdlBoolean Number +hi def link vhdlTodo Todo +hi def link vhdlFixme Fixme +hi def link vhdlComment Comment +hi def link vhdlNumber Number +hi def link vhdlTime Number +hi def link vhdlType Type +hi def link vhdlOperator Operator +hi def link vhdlError Error +hi def link vhdlAttribute Special +hi def link vhdlPreProc PreProc + + +let b:current_syntax = "vhdl" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vim.vim b/git/usr/share/vim/vim92/syntax/vim.vim new file mode 100644 index 0000000000000000000000000000000000000000..a390df78ed5a17a9295ce7273831139c6b2d7f45 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vim.vim @@ -0,0 +1,2931 @@ +" Vim syntax file +" Language: Vim script +" Maintainer: Hirohito Higashi +" Doug Kearns +" Last Change: 2026 Apr 15 +" Former Maintainer: Charles E. Campbell + +" DO NOT CHANGE DIRECTLY. +" THIS FILE PARTLY GENERATED BY gen_syntax_vim.vim. +" (Search string "GEN_SYN_VIM:" in this file) + +" Quit when a syntax file was already loaded {{{1 +if exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim + +" Feature testing {{{1 + +" NOTE: vimsyn_force_vim9 for internal use only +let s:vim9script = get(b:, "vimsyn_force_vim9", v:false) || "\n" .. getline(1, 32)->join("\n") =~# '\n\s*vim9\%[script]\>' + +function s:has(feature) + return has(a:feature) || index(get(g:, "vimsyn_vim_features", []), a:feature) != -1 +endfunction + +" Automatically generated keyword lists: {{{1 + +" vimTodo: contains common special-notices for comments {{{2 +" Use the vimCommentGroup cluster to add your own. +syn keyword vimTodo contained COMBAK FIXME TODO XXX +syn cluster vimCommentGroup contains=vimTodo,@Spell + +" regular vim commands {{{2 +" GEN_SYN_VIM: vimCommand normal, START_STR='syn keyword vimCommand contained', END_STR='nextgroup=vimBang' +syn keyword vimCommand contained al[l] ar[gs] arga[dd] argd[elete] argded[upe] arge[dit] argg[lobal] argl[ocal] argu[ment] as[cii] b[uffer] bN[ext] ba[ll] bad[d] balt bd[elete] bf[irst] bl[ast] bm[odified] bn[ext] bp[revious] br[ewind] brea[k] buffers bun[load] bw[ipeout] cN[ext] cNf[ile] cabo[ve] cad[dbuffer] cadde[xpr] caddf[ile] caf[ter] cb[uffer] cbe[fore] cbel[ow] cbo[ttom] cc ccl[ose] ce[nter] cex[pr] cf[ile] cfir[st] cg[etfile] cgetb[uffer] cgete[xpr] changes che[ckpath] checkt[ime] chi[story] cl[ist] clip[reset] cla[st] clo[se] cle[arjumps] cn[ext] cnew[er] cnf[ile] col[der] colo[rscheme] comc[lear] comp[iler] con[tinue] cope[n] cp[revious] cpf[ile] cq[uit] cr[ewind] cs[cope] cst[ag] cw[indow] delm[arks] defc[ompile] di[splay] dif[fupdate] diffg[et] diffo[ff] nextgroup=vimBang +syn keyword vimCommand contained diffp[atch] diffpu[t] diffs[plit] difft[his] dig[raphs] disa[ssemble] dj[ump] dli[st] dr[op] ds[earch] dsp[lit] e[dit] ea[rlier] em[enu] endfo[r] endt[ry] endw[hile] ene[w] ex exi[t] exu[sage] f[ile] files fin[d] fina[lly] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] foldo[pen] g[lobal] go[to] gu[i] gv[im] helpc[lose] helpf[ind] helpt[ags] ha[rdcopy] ij[ump] il[ist] int[ro] ip[ut] is[earch] isp[lit] ju[mps] l[ist] lN[ext] lNf[ile] la[st] lab[ove] lad[dexpr] laddb[uffer] laddf[ile] laf[ter] lat[er] lb[uffer] lbe[fore] lbel[ow] lbo[ttom] lcl[ose] lcs[cope] le[ft] lex[pr] lf[ile] lfir[st] lg[etfile] lgetb[uffer] lgete[xpr] lhi[story] ll lla[st] lli[st] lmak[e] lne[xt] lnew[er] lnf[ile] lo[adview] lockv[ar] lol[der] lop[en] lp[revious] nextgroup=vimBang +syn keyword vimCommand contained lpf[ile] lr[ewind] lt[ag] lw[indow] ls m[ove] marks mes[sages] mk[exrc] mks[ession] mksp[ell] mkv[imrc] mkvie[w] mod[e] n[ext] nb[key] nbc[lose] nbs[tart] noh[lsearch] nu[mber] o[pen] ol[dfiles] on[ly] opt[ions] ow[nsyntax] p[rint] pa[ckadd] packl[oadall] pb[uffer] pc[lose] ped[it] po[p] pp[op] pre[serve] prev[ious] ps[earch] pt[ag] ptN[ext] ptf[irst] ptj[ump] ptl[ast] ptn[ext] ptp[revious] ptr[ewind] pts[elect] pu[t] pw[d] q[uit] quita[ll] qa[ll] r[ead] rec[over] red[o] redr[aw] redraws[tatus] redrawt[abline] redrawtabp[anel] reg[isters] res[ize] ret[ab] rew[ind] ri[ght] ru[ntime] rund[o] rv[iminfo] sN[ext] sa[rgument] sal[l] sav[eas] sb[uffer] sbN[ext] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbp[revious] sbr[ewind] scr[iptnames] nextgroup=vimBang +syn keyword vimCommand contained scripte[ncoding] scriptv[ersion] scs[cope] setf[iletype] sf[ind] sfir[st] sh[ell] sim[alt] sig[n] sla[st] sn[ext] so[urce] spe[llgood] spelld[ump] spelli[nfo] spellr[epall] spellra[re] spellu[ndo] spellw[rong] spr[evious] sre[wind] st[op] sta[g] star[tinsert] startg[replace] startr[eplace] stopi[nsert] stj[ump] sts[elect] sun[hide] sus[pend] sv[iew] sync[bind] smi[le] t tN[ext] ta[g] tags tabc[lose] tabe[dit] tabf[ind] tabfir[st] tabm[ove] tabl[ast] tabn[ext] tabnew tabo[nly] tabp[revious] tabN[ext] tabr[ewind] tabs te[aroff] tf[irst] tj[ump] tl[ast] tn[ext] tp[revious] tr[ewind] try ts[elect] u[ndo] undoj[oin] undol[ist] unh[ide] up[date] v[global] ve[rsion] vi[sual] vie[w] viu[sage] vne[w] vs[plit] w[rite] wN[ext] wa[ll] wi[nsize] nextgroup=vimBang +syn keyword vimCommand contained winp[os] wl[restore] wn[ext] wp[revious] wq wqa[ll] wu[ndo] wv[iminfo] x[it] xa[ll] xr[estore] y[ank] z dl dell delel deletl deletel dp dep delp delep deletp deletep a i nextgroup=vimBang + +" Lower priority :syn-match to allow for :command/function() distinction +" :chdir is handled specially elsewhere +syn match vimCommand "\" nextgroup=vimBang +syn match vimCommand "\" nextgroup=vimBang +syn match vimCommand "\" nextgroup=vimBang +syn match vimCommand "\" nextgroup=vimBang +syn match vimCommand "\" nextgroup=vimBang + +" GEN_SYN_VIM: vimCommand modifier, START_STR='syn keyword vimCommandModifier', END_STR='skipwhite nextgroup=vimCommandModifierBang,@vimCmdList' +syn keyword vimCommandModifier abo[veleft] bel[owright] bo[tright] hid[e] hor[izontal] kee[pmarks] keepj[umps] keepp[atterns] keepa[lt] lefta[bove] leg[acy] loc[kmarks] noa[utocmd] nos[wapfile] rightb[elow] san[dbox] sil[ent] tab to[pleft] uns[ilent] verb[ose] vert[ical] vim9[cmd] skipwhite nextgroup=vimCommandModifierBang,@vimCmdList +" :filter is handled specially elsewhere +syn match vimCommandModifierBang contained "\a\@1<=!" skipwhite nextgroup=@vimCmdList + +" Lower priority :syn-match to allow for :command/function() distinction +syn match vimCommand "\" skipwhite nextgroup=vimCommandModifierBang,@vimCmdList +syn match vimCommand "\" skipwhite nextgroup=vimCommandModifierBang,@vimCmdList + +" Lower priority for _new_ to distinguish constructors from the command. +syn match vimCommand contained "\(\@!" +syn match vimCommand contained "\" +syn keyword vimStdPlugin contained Arguments Asm Break Cfilter Clear Continue DiffOrig Evaluate Finish Gdb Lfilter Man Over Program Run S Source Step Stop Termdebug TermdebugCommand TOhtml Until Winbar XMLent XMLns + +" vimOptions are caught only when contained in a vimSet {{{2 +" GEN_SYN_VIM: vimOption normal, START_STR='syn keyword vimOption contained', END_STR='skipwhite nextgroup=vimSetEqual,vimSetMod' +syn keyword vimOption contained al aleph ari allowrevins ambw ambiwidth arab arabic arshape arabicshape acd autochdir ac autocomplete acl autocompletedelay act autocompletetimeout ai autoindent ar autoread asd autoshelldir aw autowrite awa autowriteall bg background bs backspace bk backup bkc backupcopy bdir backupdir bex backupext bsk backupskip bdlay balloondelay beval ballooneval bevalterm balloonevalterm bexpr balloonexpr bo belloff bin binary bomb brk breakat bri breakindent briopt breakindentopt bsdir browsedir bh bufhidden bl buflisted bt buftype cmp casemap cdh cdhome cd cdpath cedit ccv charconvert chi chistory cin cindent cink cinkeys cino cinoptions cinsd cinscopedecls cinw cinwords cb clipboard cpm clipmethod ch cmdheight cwh cmdwinheight cc colorcolumn skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained co columns com comments cms commentstring cp compatible cpt complete cfu completefunc cia completeitemalign cot completeopt cpp completepopup csl completeslash cto completetimeout cocu concealcursor cole conceallevel cf confirm ci copyindent cpo cpoptions cm cryptmethod cspc cscopepathcomp csprg cscopeprg csqf cscopequickfix csre cscoperelative cst cscopetag csto cscopetagorder csverb cscopeverbose crb cursorbind cuc cursorcolumn cul cursorline culopt cursorlineopt debug def define deco delcombine dict dictionary diff dia diffanchors dex diffexpr dip diffopt dg digraph dir directory dy display ead eadirection ed edcompatible emo emoji enc encoding eof endoffile eol endofline ea equalalways ep equalprg eb errorbells ef errorfile skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained efm errorformat ek esckeys ei eventignore eiw eventignorewin et expandtab ex exrc fenc fileencoding fencs fileencodings ff fileformat ffs fileformats fic fileignorecase ft filetype fcs fillchars ffu findfunc fixeol fixendofline fcl foldclose fdc foldcolumn fen foldenable fde foldexpr fdi foldignore fdl foldlevel fdls foldlevelstart fmr foldmarker fdm foldmethod fml foldminlines fdn foldnestmax fdo foldopen fdt foldtext fex formatexpr flp formatlistpat fo formatoptions fp formatprg fs fsync gd gdefault gfm grepformat gp grepprg gcr guicursor gfn guifont gfs guifontset gfw guifontwide ghr guiheadroom gli guiligatures go guioptions guipty gtl guitablabel gtt guitabtooltip hf helpfile hh helpheight hlg helplang hid hidden hl highlight skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained hi history hk hkmap hkp hkmapp hls hlsearch icon iconstring ic ignorecase imaf imactivatefunc imak imactivatekey imc imcmdline imd imdisable imi iminsert ims imsearch imsf imstatusfunc imst imstyle inc include inex includeexpr is incsearch inde indentexpr indk indentkeys inf infercase im insertmode isf isfname isi isident isk iskeyword isp isprint js joinspaces jop jumpoptions key kmp keymap km keymodel kpc keyprotocol kp keywordprg lmap langmap lm langmenu lnr langnoremap lrm langremap ls laststatus lz lazyredraw lhi lhistory lbr linebreak lines lsp linespace lisp lop lispoptions lw lispwords list lcs listchars lpl loadplugins luadll magic mef makeef menc makeencoding mp makeprg mps matchpairs mat matchtime mco maxcombine mfd maxfuncdepth skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained mmd maxmapdepth mm maxmem mmp maxmempattern mmt maxmemtot msc maxsearchcount mis menuitems mopt messagesopt msm mkspellmem ml modeline mle modelineexpr mls modelines mlst modelinestrict ma modifiable mod modified more mouse mousef mousefocus mh mousehide mousem mousemodel mousemev mousemoveevent mouses mouseshape mouset mousetime mzq mzquantum mzschemedll mzschemegcdll nf nrformats nu number nuw numberwidth ofu omnifunc odev opendevice opfunc operatorfunc ost osctimeoutlen pp packpath para paragraphs paste pt pastetoggle pex patchexpr pm patchmode pa path perldll pi preserveindent pvh previewheight pvp previewpopup pvw previewwindow pdev printdevice penc printencoding pexpr printexpr pfn printfont pheader printheader pmbcs printmbcharset skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained pmbfn printmbfont popt printoptions prompt pb pumborder ph pumheight pmw pummaxwidth pumopt pw pumwidth pythondll pythonhome pythonthreedll pythonthreehome pyx pyxversion qftf quickfixtextfunc qe quoteescape ro readonly rdt redrawtime re regexpengine rnu relativenumber remap rop renderoptions report rs restorescreen ri revins rl rightleft rlc rightleftcmd rubydll ru ruler ruf rulerformat rtp runtimepath scr scroll scb scrollbind scf scrollfocus sj scrolljump so scrolloff sop scrolloffpad sbo scrollopt sect sections secure sel selection slm selectmode ssop sessionoptions sh shell shcf shellcmdflag sp shellpipe shq shellquote srr shellredir ssl shellslash stmp shelltemp st shelltype sxe shellxescape sxq shellxquote sr shiftround sw shiftwidth skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained shm shortmess sn shortname sbr showbreak sc showcmd sloc showcmdloc sft showfulltag sm showmatch smd showmode stal showtabline stpl showtabpanel ss sidescroll siso sidescrolloff scl signcolumn scs smartcase si smartindent sta smarttab sms smoothscroll sts softtabstop spell spc spellcapcheck spf spellfile spl spelllang spo spelloptions sps spellsuggest sb splitbelow spk splitkeep spr splitright sol startofline stl statusline stlo statuslineopt su suffixes sua suffixesadd swf swapfile sws swapsync swb switchbuf smc synmaxcol syn syntax tcl tabclose tal tabline tpm tabpagemax tpl tabpanel tplo tabpanelopt ts tabstop tbs tagbsearch tc tagcase tfu tagfunc tl taglength tr tagrelative tag tags tgst tagstack tcldll term tbidi termbidi tenc termencoding skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained tgc termguicolors trz termresize tsy termsync twk termwinkey twsl termwinscroll tws termwinsize twt termwintype terse ta textauto tx textmode tw textwidth tsr thesaurus tsrfu thesaurusfunc top tildeop to timeout tm timeoutlen title titlelen titleold titlestring tb toolbar tbis toolbariconsize ttimeout ttm ttimeoutlen tbi ttybuiltin tf ttyfast ttym ttymouse tsl ttyscroll tty ttytype udir undodir udf undofile ul undolevels ur undoreload uc updatecount ut updatetime vsts varsofttabstop vts vartabstop vbs verbose vfile verbosefile vdir viewdir vop viewoptions vi viminfo vif viminfofile ve virtualedit vb visualbell warn wiv weirdinvert ww whichwrap wc wildchar wcm wildcharm wig wildignore wic wildignorecase wmnu wildmenu wim wildmode skipwhite nextgroup=vimSetEqual,vimSetMod +syn keyword vimOption contained wop wildoptions wak winaltkeys wcr wincolor wi window wfb winfixbuf wfh winfixheight wfw winfixwidth wh winheight whl winhighlight wmh winminheight wmw winminwidth winptydll wiw winwidth wse wlseat wst wlsteal wtm wltimeoutlen wrap wm wrapmargin ws wrapscan write wa writeany wb writebackup wd writedelay xtermcodes skipwhite nextgroup=vimSetEqual,vimSetMod + +" vimOptions: These are the turn-off setting variants {{{2 +" GEN_SYN_VIM: vimOption turn-off, START_STR='syn keyword vimOption contained', END_STR='' +syn keyword vimOption contained noari noallowrevins noarab noarabic noarshape noarabicshape noacd noautochdir noac noautocomplete noai noautoindent noar noautoread noasd noautoshelldir noaw noautowrite noawa noautowriteall nobk nobackup nobeval noballooneval nobevalterm noballoonevalterm nobin nobinary nobomb nobri nobreakindent nobl nobuflisted nocdh nocdhome nocin nocindent nocp nocompatible nocf noconfirm noci nocopyindent nocsre nocscoperelative nocst nocscopetag nocsverb nocscopeverbose nocrb nocursorbind nocuc nocursorcolumn nocul nocursorline nodeco nodelcombine nodiff nodg nodigraph noed noedcompatible noemo noemoji noeof noendoffile noeol noendofline noea noequalalways noeb noerrorbells noek noesckeys noet noexpandtab noex noexrc nofic nofileignorecase +syn keyword vimOption contained nofixeol nofixendofline nofen nofoldenable nofs nofsync nogd nogdefault noguipty nohid nohidden nohk nohkmap nohkp nohkmapp nohls nohlsearch noicon noic noignorecase noimc noimcmdline noimd noimdisable nois noincsearch noinf noinfercase noim noinsertmode nojs nojoinspaces nolnr nolangnoremap nolrm nolangremap nolz nolazyredraw nolbr nolinebreak nolisp nolist nolpl noloadplugins nomagic noml nomodeline nomle nomodelineexpr nomlst nomodelinestrict noma nomodifiable nomod nomodified nomore nomousef nomousefocus nomh nomousehide nomousemev nomousemoveevent nonu nonumber noodev noopendevice nopaste nopi nopreserveindent nopvw nopreviewwindow noprompt noro noreadonly nornu norelativenumber noremap nors norestorescreen nori norevins norl norightleft +syn keyword vimOption contained noru noruler noscb noscrollbind noscf noscrollfocus nosecure nossl noshellslash nostmp noshelltemp nosr noshiftround nosn noshortname nosc noshowcmd nosft noshowfulltag nosm noshowmatch nosmd noshowmode noscs nosmartcase nosi nosmartindent nosta nosmarttab nosms nosmoothscroll nospell nosb nosplitbelow nospr nosplitright nosol nostartofline noswf noswapfile notbs notagbsearch notr notagrelative notgst notagstack notbidi notermbidi notgc notermguicolors notsy notermsync noterse nota notextauto notx notextmode notop notildeop noto notimeout notitle nottimeout notbi nottybuiltin notf nottyfast noudf noundofile novb novisualbell nowarn nowiv noweirdinvert nowic nowildignorecase nowmnu nowildmenu nowfb nowinfixbuf nowfh nowinfixheight +syn keyword vimOption contained nowfw nowinfixwidth nowst nowlsteal nowrap nows nowrapscan nowrite nowa nowriteany nowb nowritebackup noxtermcodes + +" vimOptions: These are the invertible variants {{{2 +" GEN_SYN_VIM: vimOption invertible, START_STR='syn keyword vimOption contained', END_STR='' +syn keyword vimOption contained invari invallowrevins invarab invarabic invarshape invarabicshape invacd invautochdir invac invautocomplete invai invautoindent invar invautoread invasd invautoshelldir invaw invautowrite invawa invautowriteall invbk invbackup invbeval invballooneval invbevalterm invballoonevalterm invbin invbinary invbomb invbri invbreakindent invbl invbuflisted invcdh invcdhome invcin invcindent invcp invcompatible invcf invconfirm invci invcopyindent invcsre invcscoperelative invcst invcscopetag invcsverb invcscopeverbose invcrb invcursorbind invcuc invcursorcolumn invcul invcursorline invdeco invdelcombine invdiff invdg invdigraph inved invedcompatible invemo invemoji inveof invendoffile inveol invendofline invea invequalalways inveb inverrorbells +syn keyword vimOption contained invek invesckeys invet invexpandtab invex invexrc invfic invfileignorecase invfixeol invfixendofline invfen invfoldenable invfs invfsync invgd invgdefault invguipty invhid invhidden invhk invhkmap invhkp invhkmapp invhls invhlsearch invicon invic invignorecase invimc invimcmdline invimd invimdisable invis invincsearch invinf invinfercase invim invinsertmode invjs invjoinspaces invlnr invlangnoremap invlrm invlangremap invlz invlazyredraw invlbr invlinebreak invlisp invlist invlpl invloadplugins invmagic invml invmodeline invmle invmodelineexpr invmlst invmodelinestrict invma invmodifiable invmod invmodified invmore invmousef invmousefocus invmh invmousehide invmousemev invmousemoveevent invnu invnumber invodev invopendevice invpaste +syn keyword vimOption contained invpi invpreserveindent invpvw invpreviewwindow invprompt invro invreadonly invrnu invrelativenumber invremap invrs invrestorescreen invri invrevins invrl invrightleft invru invruler invscb invscrollbind invscf invscrollfocus invsecure invssl invshellslash invstmp invshelltemp invsr invshiftround invsn invshortname invsc invshowcmd invsft invshowfulltag invsm invshowmatch invsmd invshowmode invscs invsmartcase invsi invsmartindent invsta invsmarttab invsms invsmoothscroll invspell invsb invsplitbelow invspr invsplitright invsol invstartofline invswf invswapfile invtbs invtagbsearch invtr invtagrelative invtgst invtagstack invtbidi invtermbidi invtgc invtermguicolors invtsy invtermsync invterse invta invtextauto invtx invtextmode +syn keyword vimOption contained invtop invtildeop invto invtimeout invtitle invttimeout invtbi invttybuiltin invtf invttyfast invudf invundofile invvb invvisualbell invwarn invwiv invweirdinvert invwic invwildignorecase invwmnu invwildmenu invwfb invwinfixbuf invwfh invwinfixheight invwfw invwinfixwidth invwst invwlsteal invwrap invws invwrapscan invwrite invwa invwriteany invwb invwritebackup invxtermcodes +" termcap codes (which can also be set) {{{2 +" GEN_SYN_VIM: vimOption term output code, START_STR='syn keyword vimOption contained', END_STR='skipwhite nextgroup=vimSetEqual,vimSetMod' +syn keyword vimOption contained t_AB t_AF t_AU t_AL t_al t_bc t_BE t_BD t_cd t_ce t_Ce t_CF t_cl t_cm t_Co t_CS t_Cs t_cs t_CV t_da t_db t_DL t_dl t_ds t_Ds t_EC t_EI t_fs t_fd t_fe t_GP t_IE t_IS t_ke t_ks t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RF t_RB t_RC t_RI t_Ri t_RK t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_SI t_Si t_so t_SR t_sr t_ST t_Te t_te t_TE t_ti t_TI t_Ts t_ts t_u7 t_ue t_us t_Us t_ut t_vb t_ve t_vi t_VS t_vs t_WP t_WS t_XM t_xn t_xs t_ZH t_ZR t_8f t_8b t_8u t_xo t_BS t_ES skipwhite nextgroup=vimSetEqual,vimSetMod +" term key codes +syn keyword vimOption contained t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ku +syn match vimOption contained "t_%1" +syn match vimOption contained "t_#2" +syn match vimOption contained "t_#4" +syn match vimOption contained "t_@7" +syn match vimOption contained "t_*7" +syn match vimOption contained "t_&8" +syn match vimOption contained "t_%i" +syn match vimOption contained "t_k;" + +" vimOptions: These are the variable names {{{2 +" GEN_SYN_VIM: vimOption normal variable, START_STR='syn keyword vimOptionVarName contained', END_STR='' +syn keyword vimOptionVarName contained al aleph ari allowrevins ambw ambiwidth arab arabic arshape arabicshape acd autochdir ac autocomplete acl autocompletedelay act autocompletetimeout ai autoindent ar autoread asd autoshelldir aw autowrite awa autowriteall bg background bs backspace bk backup bkc backupcopy bdir backupdir bex backupext bsk backupskip bdlay balloondelay beval ballooneval bevalterm balloonevalterm bexpr balloonexpr bo belloff bin binary bomb brk breakat bri breakindent briopt breakindentopt bsdir browsedir bh bufhidden bl buflisted bt buftype cmp casemap cdh cdhome cd cdpath cedit ccv charconvert chi chistory cin cindent cink cinkeys cino cinoptions cinsd cinscopedecls cinw cinwords cb clipboard cpm clipmethod ch cmdheight cwh cmdwinheight cc colorcolumn +syn keyword vimOptionVarName contained co columns com comments cms commentstring cp compatible cpt complete cfu completefunc cia completeitemalign cot completeopt cpp completepopup csl completeslash cto completetimeout cocu concealcursor cole conceallevel cf confirm ci copyindent cpo cpoptions cm cryptmethod cspc cscopepathcomp csprg cscopeprg csqf cscopequickfix csre cscoperelative cst cscopetag csto cscopetagorder csverb cscopeverbose crb cursorbind cuc cursorcolumn cul cursorline culopt cursorlineopt debug def define deco delcombine dict dictionary diff dia diffanchors dex diffexpr dip diffopt dg digraph dir directory dy display ead eadirection ed edcompatible emo emoji enc encoding eof endoffile eol endofline ea equalalways ep equalprg eb errorbells ef errorfile +syn keyword vimOptionVarName contained efm errorformat ek esckeys ei eventignore eiw eventignorewin et expandtab ex exrc fenc fileencoding fencs fileencodings ff fileformat ffs fileformats fic fileignorecase ft filetype fcs fillchars ffu findfunc fixeol fixendofline fcl foldclose fdc foldcolumn fen foldenable fde foldexpr fdi foldignore fdl foldlevel fdls foldlevelstart fmr foldmarker fdm foldmethod fml foldminlines fdn foldnestmax fdo foldopen fdt foldtext fex formatexpr flp formatlistpat fo formatoptions fp formatprg fs fsync gd gdefault gfm grepformat gp grepprg gcr guicursor gfn guifont gfs guifontset gfw guifontwide ghr guiheadroom gli guiligatures go guioptions guipty gtl guitablabel gtt guitabtooltip hf helpfile hh helpheight hlg helplang hid hidden hl highlight +syn keyword vimOptionVarName contained hi history hk hkmap hkp hkmapp hls hlsearch icon iconstring ic ignorecase imaf imactivatefunc imak imactivatekey imc imcmdline imd imdisable imi iminsert ims imsearch imsf imstatusfunc imst imstyle inc include inex includeexpr is incsearch inde indentexpr indk indentkeys inf infercase im insertmode isf isfname isi isident isk iskeyword isp isprint js joinspaces jop jumpoptions key kmp keymap km keymodel kpc keyprotocol kp keywordprg lmap langmap lm langmenu lnr langnoremap lrm langremap ls laststatus lz lazyredraw lhi lhistory lbr linebreak lines lsp linespace lisp lop lispoptions lw lispwords list lcs listchars lpl loadplugins luadll magic mef makeef menc makeencoding mp makeprg mps matchpairs mat matchtime mco maxcombine +syn keyword vimOptionVarName contained mfd maxfuncdepth mmd maxmapdepth mm maxmem mmp maxmempattern mmt maxmemtot msc maxsearchcount mis menuitems mopt messagesopt msm mkspellmem ml modeline mle modelineexpr mls modelines mlst modelinestrict ma modifiable mod modified more mouse mousef mousefocus mh mousehide mousem mousemodel mousemev mousemoveevent mouses mouseshape mouset mousetime mzq mzquantum mzschemedll mzschemegcdll nf nrformats nu number nuw numberwidth ofu omnifunc odev opendevice opfunc operatorfunc ost osctimeoutlen pp packpath para paragraphs paste pt pastetoggle pex patchexpr pm patchmode pa path perldll pi preserveindent pvh previewheight pvp previewpopup pvw previewwindow pdev printdevice penc printencoding pexpr printexpr pfn printfont pheader printheader +syn keyword vimOptionVarName contained pmbcs printmbcharset pmbfn printmbfont popt printoptions prompt pb pumborder ph pumheight pmw pummaxwidth pumopt pw pumwidth pythondll pythonhome pythonthreedll pythonthreehome pyx pyxversion qftf quickfixtextfunc qe quoteescape ro readonly rdt redrawtime re regexpengine rnu relativenumber remap rop renderoptions report rs restorescreen ri revins rl rightleft rlc rightleftcmd rubydll ru ruler ruf rulerformat rtp runtimepath scr scroll scb scrollbind scf scrollfocus sj scrolljump so scrolloff sop scrolloffpad sbo scrollopt sect sections secure sel selection slm selectmode ssop sessionoptions sh shell shcf shellcmdflag sp shellpipe shq shellquote srr shellredir ssl shellslash stmp shelltemp st shelltype sxe shellxescape sxq shellxquote +syn keyword vimOptionVarName contained sr shiftround sw shiftwidth shm shortmess sn shortname sbr showbreak sc showcmd sloc showcmdloc sft showfulltag sm showmatch smd showmode stal showtabline stpl showtabpanel ss sidescroll siso sidescrolloff scl signcolumn scs smartcase si smartindent sta smarttab sms smoothscroll sts softtabstop spell spc spellcapcheck spf spellfile spl spelllang spo spelloptions sps spellsuggest sb splitbelow spk splitkeep spr splitright sol startofline stl statusline stlo statuslineopt su suffixes sua suffixesadd swf swapfile sws swapsync swb switchbuf smc synmaxcol syn syntax tcl tabclose tal tabline tpm tabpagemax tpl tabpanel tplo tabpanelopt ts tabstop tbs tagbsearch tc tagcase tfu tagfunc tl taglength tr tagrelative tag tags tgst tagstack +syn keyword vimOptionVarName contained tcldll term tbidi termbidi tenc termencoding tgc termguicolors trz termresize tsy termsync twk termwinkey twsl termwinscroll tws termwinsize twt termwintype terse ta textauto tx textmode tw textwidth tsr thesaurus tsrfu thesaurusfunc top tildeop to timeout tm timeoutlen title titlelen titleold titlestring tb toolbar tbis toolbariconsize ttimeout ttm ttimeoutlen tbi ttybuiltin tf ttyfast ttym ttymouse tsl ttyscroll tty ttytype udir undodir udf undofile ul undolevels ur undoreload uc updatecount ut updatetime vsts varsofttabstop vts vartabstop vbs verbose vfile verbosefile vdir viewdir vop viewoptions vi viminfo vif viminfofile ve virtualedit vb visualbell warn wiv weirdinvert ww whichwrap wc wildchar wcm wildcharm wig wildignore +syn keyword vimOptionVarName contained wic wildignorecase wmnu wildmenu wim wildmode wop wildoptions wak winaltkeys wcr wincolor wi window wfb winfixbuf wfh winfixheight wfw winfixwidth wh winheight whl winhighlight wmh winminheight wmw winminwidth winptydll wiw winwidth wse wlseat wst wlsteal wtm wltimeoutlen wrap wm wrapmargin ws wrapscan write wa writeany wb writebackup wd writedelay xtermcodes +" GEN_SYN_VIM: vimOption term output code variable, START_STR='syn keyword vimOptionVarName contained', END_STR='' +syn keyword vimOptionVarName contained t_AB t_AF t_AU t_AL t_al t_bc t_BE t_BD t_cd t_ce t_Ce t_CF t_cl t_cm t_Co t_CS t_Cs t_cs t_CV t_da t_db t_DL t_dl t_ds t_Ds t_EC t_EI t_fs t_fd t_fe t_GP t_IE t_IS t_ke t_ks t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RF t_RB t_RC t_RI t_Ri t_RK t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_SI t_Si t_so t_SR t_sr t_ST t_Te t_te t_TE t_ti t_TI t_Ts t_ts t_u7 t_ue t_us t_Us t_ut t_vb t_ve t_vi t_VS t_vs t_WP t_WS t_XM t_xn t_xs t_ZH t_ZR t_8f t_8b t_8u t_xo t_BS t_ES +syn keyword vimOptionVarName contained t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ku +syn match vimOptionVarName contained "t_%1" +syn match vimOptionVarName contained "t_#2" +syn match vimOptionVarName contained "t_#4" +syn match vimOptionVarName contained "t_@7" +syn match vimOptionVarName contained "t_*7" +syn match vimOptionVarName contained "t_&8" +syn match vimOptionVarName contained "t_%i" +syn match vimOptionVarName contained "t_k;" + +" unsupported settings: some were supported by vi but don't do anything in vim {{{2 +" GEN_SYN_VIM: Missing vimOption, START_STR='syn keyword vimErrSetting contained', END_STR='' +syn keyword vimErrSetting contained akm altkeymap anti antialias ap autoprint bf beautify biosk bioskey consk conskey fk fkmap fl flash gr graphic ht hardtabs macatsui mesg novice open opt optimize oft osfiletype redraw slow slowopen sourceany w1200 w300 w9600 +syn keyword vimErrSetting contained noakm noaltkeymap noanti noantialias noap noautoprint nobf nobeautify nobiosk nobioskey noconsk noconskey nofk nofkmap nofl noflash nogr nographic nomacatsui nomesg nonovice noopen noopt nooptimize noredraw noslow noslowopen nosourceany +syn keyword vimErrSetting contained invakm invaltkeymap invanti invantialias invap invautoprint invbf invbeautify invbiosk invbioskey invconsk invconskey invfk invfkmap invfl invflash invgr invgraphic invmacatsui invmesg invnovice invopen invopt invoptimize invredraw invslow invslowopen invsourceany + +" AutoCmd Events {{{2 +syn case ignore +" GEN_SYN_VIM: vimAutoEvent, START_STR='syn keyword vimAutoEvent contained', END_STR='skipwhite nextgroup=vimAutoEventSep,@vimAutocmdPattern' +syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre CmdlineChanged CmdlineEnter CmdlineLeave CmdlineLeavePre CmdUndefined CmdwinEnter CmdwinLeave ColorScheme ColorSchemePre CompleteChanged CompleteDone CompleteDonePre CursorHold CursorHoldI CursorMoved CursorMovedC CursorMovedI DiffUpdated DirChanged DirChangedPre EncodingChanged ExitPre FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre skipwhite nextgroup=vimAutoEventSep,@vimAutocmdPattern +syn keyword vimAutoEvent contained FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave InsertLeavePre KeyInputPre MenuPopup ModeChanged OptionSet QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SafeState SafeStateAgain SessionLoadPost SessionLoadPre SessionWritePost ShellCmdPost ShellFilterPost SigUSR1 SourceCmd SourcePost SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabClosed TabClosedPre TabEnter TabLeave TabNew TermChanged TerminalOpen TerminalWinOpen TermResponse TermResponseAll TextChanged TextChangedI TextChangedP TextChangedT TextYankPost VimEnter VimLeave VimLeavePre VimResized VimResume VimSuspend WinClosed WinEnter WinLeave WinNew WinNewPre skipwhite nextgroup=vimAutoEventSep,@vimAutocmdPattern +syn keyword vimAutoEvent contained WinResized WinScrolled skipwhite nextgroup=vimAutoEventSep,@vimAutocmdPattern + +syn keyword vimAutoEvent contained User skipwhite nextgroup=vimUserAutoEvent +syn match vimUserAutoEvent contained "\<\h\w*\>" skipwhite nextgroup=vimUserAutoEventSep,vimAutocmdMod,vimAutocmdBlock + +" Highlight commonly used Groupnames {{{2 +" GEN_SYN_VIM: vimGroup, START_STR='syn keyword vimGroup contained', END_STR='' +syn keyword vimGroup contained Added Bold BoldItalic Boolean Changed Character Comment Conditional Constant Debug Define Delimiter Error Exception Float Function Identifier Ignore Include Italic Keyword Label Macro Number Operator PreCondit PreProc Removed Repeat Special SpecialChar SpecialComment Statement StorageClass String Structure Tag Todo Type Typedef Underlined + +" Default highlighting groups {{{2 +" GEN_SYN_VIM: vimHLGroup, START_STR='syn keyword vimHLGroup contained', END_STR='' +syn keyword vimHLGroup contained ErrorMsg IncSearch ModeMsg NonText StatusLine StatusLineNC EndOfBuffer VertSplit VertSplitNC VisualNOS DiffText DiffTextAdd PmenuSbar TabLineSel TabLineFill TabPanel TabPanelSel TabPanelFill Cursor lCursor TitleBar TitleBarNC QuickFixLine CursorLineSign CursorLineFold CurSearch PmenuKind PmenuKindSel PmenuMatch PmenuMatchSel PmenuExtra PmenuExtraSel PmenuBorder PopupSelected MessageWindow PopupNotification PreInsert Normal Directory LineNr CursorLineNr MoreMsg Question Search SpellBad SpellCap SpellRare SpellLocal PmenuThumb PmenuShadow Pmenu PmenuSel SpecialKey Title WarningMsg WildMenu Folded FoldColumn SignColumn Visual DiffAdd DiffChange DiffDelete TabLine CursorColumn CursorLine ColorColumn MatchParen StatusLineTerm StatusLineTermNC +syn keyword vimHLGroup contained ToolbarLine ToolbarButton TitleBar TitleBarNC Menu Tooltip Scrollbar CursorIM ComplMatchIns LineNrAbove LineNrBelow MsgArea Terminal User1 User2 User3 User4 User5 User6 User7 User8 User9 +syn match vimHLGroup contained "\" +syn case match + +" Function Names {{{2 +" GEN_SYN_VIM: vimFuncName, START_STR='syn keyword vimFuncName contained', END_STR='' +syn keyword vimFuncName contained abs acos add and append appendbufline argc argidx arglistid argv asin assert_beeps assert_equal assert_equalfile assert_exception assert_fails assert_false assert_inrange assert_match assert_nobeep assert_notequal assert_notmatch assert_report assert_true atan atan2 autocmd_add autocmd_delete autocmd_get balloon_gettext balloon_show balloon_split base64_decode base64_encode bindtextdomain blob2list blob2str browse browsedir bufadd bufexists buflisted bufload bufloaded bufname bufnr bufwinid bufwinnr byte2line byteidx byteidxcomp call ceil ch_canread ch_close ch_close_in ch_evalexpr ch_evalraw ch_getbufnr ch_getjob ch_info ch_listen ch_log ch_logfile ch_open ch_read ch_readblob ch_readraw ch_sendexpr ch_sendraw ch_setoptions ch_status +syn keyword vimFuncName contained changenr char2nr charclass charcol charidx chdir cindent clearmatches cmdcomplete_info col complete complete_add complete_check complete_info confirm copy cos cosh count cscope_connection cursor debugbreak deepcopy delete deletebufline did_filetype diff diff_filler diff_hlID digraph_get digraph_getlist digraph_set digraph_setlist echoraw empty environ err_teapot escape eval eventhandler executable execute exepath exists exists_compiled exp expand expandcmd extend extendnew feedkeys filecopy filereadable filewritable filter finddir findfile flatten flattennew float2nr floor fmod fnameescape fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreach foreground fullcommand funcref function garbagecollect get getbufinfo +syn keyword vimFuncName contained getbufline getbufoneline getbufvar getcellpixels getcellwidths getchangelist getchar getcharmod getcharpos getcharsearch getcharstr getcmdcomplpat getcmdcompltype getcmdline getcmdpos getcmdprompt getcmdscreenpos getcmdtype getcmdwintype getcompletion getcompletiontype getcurpos getcursorcharpos getcwd getenv getfontname getfperm getfsize getftime getftype getimstatus getjumplist getline getloclist getmarklist getmatches getmousepos getmouseshape getpid getpos getqflist getreg getreginfo getregion getregionpos getregtype getscriptinfo getstacktrace gettabinfo gettabvar gettabwinvar gettagstack gettext getwininfo getwinpos getwinposx getwinposy getwinvar glob glob2regpat globpath has has_key haslocaldir hasmapto histadd histdel +syn keyword vimFuncName contained histget histnr hlID hlexists hlget hlset hostname iconv id indent index indexof input inputdialog inputlist inputrestore inputsave inputsecret insert instanceof interrupt invert isabsolutepath isdirectory isinf islocked isnan items job_getchannel job_info job_setoptions job_start job_status job_stop join js_decode js_encode json_decode json_encode keys keytrans len libcall libcallnr line line2byte lispindent list2blob list2str list2tuple listener_add listener_flush listener_remove localtime log log10 luaeval map maparg mapcheck maplist mapnew mapset match matchadd matchaddpos matcharg matchbufline matchdelete matchend matchfuzzy matchfuzzypos matchlist matchstr matchstrlist matchstrpos max menu_info min mkdir mode mzeval nextnonblank +syn keyword vimFuncName contained ngettext nr2char or pathshorten perleval popup_atcursor popup_beval popup_clear popup_close popup_create popup_dialog popup_filter_menu popup_filter_yesno popup_findecho popup_findinfo popup_findpreview popup_getoptions popup_getpos popup_hide popup_list popup_locate popup_menu popup_move popup_notification popup_setbuf popup_setoptions popup_settext popup_show pow preinserted prevnonblank printf prompt_getprompt prompt_setcallback prompt_setinterrupt prompt_setprompt prop_add prop_add_list prop_clear prop_find prop_list prop_remove prop_type_add prop_type_change prop_type_delete prop_type_get prop_type_list pum_getpos pumvisible py3eval pyeval pyxeval rand range readblob readdir readdirex readfile redraw_listener_add redraw_listener_remove +syn keyword vimFuncName contained reduce reg_executing reg_recording reltime reltimefloat reltimestr remote_expr remote_foreground remote_peek remote_read remote_send remote_startserver remove rename repeat resolve reverse round rubyeval screenattr screenchar screenchars screencol screenpos screenrow screenstring search searchcount searchdecl searchpair searchpairpos searchpos server2client serverlist setbufline setbufvar setcellwidths setcharpos setcharsearch setcmdline setcmdpos setcursorcharpos setenv setfperm setline setloclist setmatches setpos setqflist setreg settabvar settabwinvar settagstack setwinvar sha256 shellescape shiftwidth sign_define sign_getdefined sign_getplaced sign_jump sign_place sign_placelist sign_undefine sign_unplace sign_unplacelist +syn keyword vimFuncName contained simplify sin sinh slice sort sound_clear sound_playevent sound_playfile sound_stop soundfold spellbadword spellsuggest split sqrt srand state str2blob str2float str2list str2nr strcharlen strcharpart strchars strdisplaywidth strftime strgetchar stridx string strlen strpart strptime strridx strtrans strutf16len strwidth submatch substitute swapfilelist swapinfo swapname synID synIDattr synIDtrans synconcealed synstack system systemlist tabpagebuflist tabpagenr tabpagewinnr tagfiles taglist tan tanh tempname term_dumpdiff term_dumpload term_dumpwrite term_getaltscreen term_getansicolors term_getattr term_getcursor term_getjob term_getline term_getscrolled term_getsize term_getstatus term_gettitle term_gettty term_list term_scrape +syn keyword vimFuncName contained term_sendkeys term_setansicolors term_setapi term_setkill term_setrestore term_setsize term_start term_wait terminalprops test_alloc_fail test_autochdir test_feedinput test_garbagecollect_now test_garbagecollect_soon test_getvalue test_gui_event test_ignore_error test_mswin_event test_null_blob test_null_channel test_null_dict test_null_function test_null_job test_null_list test_null_partial test_null_string test_null_tuple test_option_not_set test_override test_refcount test_setmouse test_settime test_srand_seed test_unknown test_void timer_info timer_pause timer_start timer_stop timer_stopall tolower toupper tr trim trunc tuple2list type typename undofile undotree uniq uri_decode uri_encode utf16idx values virtcol virtcol2col +syn keyword vimFuncName contained visualmode wildmenumode wildtrigger win_execute win_findbuf win_getid win_gettype win_gotoid win_id2tabwin win_id2win win_move_separator win_move_statusline win_screenpos win_splitmove winbufnr wincol windowsversion winheight winlayout winline winnr winrestcmd winrestview winsaveview winwidth wordcount writefile xor + +" Predefined variable names {{{2 +" GEN_SYN_VIM: vimVarName, START_STR='syn keyword vimVimVarName contained', END_STR='' +syn keyword vimVimVarName contained count count1 prevcount errmsg warningmsg statusmsg shell_error this_session version lnum termresponse fname lang lc_time ctype charconvert_from charconvert_to fname_in fname_out fname_new fname_diff cmdarg foldstart foldend folddashes foldlevel progname servername dying exception throwpoint register cmdbang insertmode val key profiling fcs_reason fcs_choice beval_bufnr beval_winnr beval_winid beval_lnum beval_col beval_text scrollstart swapname swapchoice swapcommand char mouse_win mouse_winid mouse_lnum mouse_col operator searchforward hlsearch oldfiles windowid progpath completed_item option_new option_old option_oldlocal option_oldglobal option_command option_type errors false true none null numbermax numbermin numbersize +syn keyword vimVimVarName contained vim_did_enter testing t_number t_string t_func t_list t_dict t_float t_bool t_none t_job t_channel t_blob t_class t_object termrfgresp termrbgresp termu7resp termstyleresp termblinkresp event versionlong echospace argv collate exiting colornames sizeofint sizeoflong sizeofpointer maxcol python3_version t_typealias t_enum t_enumvalue stacktrace t_tuple wayland_display clipmethod termda1 termosc vim_did_init clipproviders + +"--- syntax here and above generated by runtime/syntax/generator/gen_syntax_vim.vim --- + +" Special Vim Highlighting (not automatic) {{{1 + +" Neovim keyword list additions {{{2 + +if s:has("nvim") + syn keyword vimOptionVarName contained channel inccommand mousescroll pumblend redrawdebug scrollback shada shadafile statuscolumn termpastefilter termsync winbar winblend winhighlight + syn keyword vimFuncName contained api_info buffer_exists buffer_name buffer_number chanclose chansend ctxget ctxpop ctxpush ctxset ctxsize dictwatcheradd dictwatcherdel file_readable highlight_exists highlightID jobclose jobpid jobresize jobsend jobstart jobstop jobwait last_buffer_nr menu_get msgpackdump msgpackparse reg_recorded rpcnotify rpcrequest rpcstart rpcstop serverstart serverstop sockconnect stdioopen stdpath termopen test_write_list_log wait + syn match vimFuncName contained "\" + syn keyword vimVimVarName contained lua msgpack_types relnum stderr termrequest virtnum +endif + +" Set up commands for this syntax highlighting file {{{2 + +com! -nargs=* Vim9 execute s:vim9script ? "" : "contained" +com! -nargs=* VimL execute s:vim9script ? "contained" : "" + +if exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[acefhiHlmpPrt]' + if g:vimsyn_folding =~# 'a' + com! -nargs=* VimFolda fold + else + com! -nargs=* VimFolda + endif + if g:vimsyn_folding =~# 'c' + com! -nargs=* VimFoldc fold + else + com! -nargs=* VimFoldc + endif + if g:vimsyn_folding =~# 'e' + com! -nargs=* VimFolde fold + else + com! -nargs=* VimFolde + endif + if g:vimsyn_folding =~# 'f' + com! -nargs=* VimFoldf fold + else + com! -nargs=* VimFoldf + endif + if g:vimsyn_folding =~# 'h' + com! -nargs=* VimFoldh fold + else + com! -nargs=* VimFoldh + endif + if g:vimsyn_folding =~# 'H' + com! -nargs=* VimFoldH fold + else + com! -nargs=* VimFoldH + endif + if g:vimsyn_folding =~# 'i' + com! -nargs=* VimFoldi fold + else + com! -nargs=* VimFoldi + endif + if g:vimsyn_folding =~# 'l' + com! -nargs=* VimFoldl fold + else + com! -nargs=* VimFoldl + endif + if g:vimsyn_folding =~# 'm' + com! -nargs=* VimFoldm fold + else + com! -nargs=* VimFoldm + endif + if g:vimsyn_folding =~# 'p' + com! -nargs=* VimFoldp fold + else + com! -nargs=* VimFoldp + endif + if g:vimsyn_folding =~# 'P' + com! -nargs=* VimFoldP fold + else + com! -nargs=* VimFoldP + endif + if g:vimsyn_folding =~# 'r' + com! -nargs=* VimFoldr fold + else + com! -nargs=* VimFoldr + endif + if g:vimsyn_folding =~# 't' + com! -nargs=* VimFoldt fold + else + com! -nargs=* VimFoldt + endif +else + com! -nargs=* VimFolda + com! -nargs=* VimFoldc + com! -nargs=* VimFolde + com! -nargs=* VimFoldf + com! -nargs=* VimFoldi + com! -nargs=* VimFoldh + com! -nargs=* VimFoldH + com! -nargs=* VimFoldl + com! -nargs=* VimFoldm + com! -nargs=* VimFoldp + com! -nargs=* VimFoldP + com! -nargs=* VimFoldr + com! -nargs=* VimFoldt +endif + +" Deprecated variable options {{{2 +if exists("g:vim_minlines") + let g:vimsyn_minlines= g:vim_minlines +endif +if exists("g:vim_maxlines") + let g:vimsyn_maxlines= g:vim_maxlines +endif +if exists("g:vimsyntax_noerror") + let g:vimsyn_noerror= g:vimsyntax_noerror +endif + +" Nulls {{{2 +" ===== +Vim9 syn keyword vim9Null null null_blob null_channel null_class null_dict null_function null_job null_list null_object null_partial null_string null_tuple + +" Booleans {{{2 +" ======== +Vim9 syn keyword vim9Boolean true false + +" Numbers {{{2 +" ======= +syn case ignore +syn match vimNumber "\<\d\+\%('\d\+\)*" skipwhite nextgroup=@vimComment,vimSubscript,vimGlobal,vimSubst1 +syn match vimNumber "\<\d\+\%('\d\+\)*\.\d\+\%(e[+-]\=\d\+\)\=" skipwhite nextgroup=@vimComment +syn match vimNumber "\<0b[01]\+\%('[01]\+\)*" skipwhite nextgroup=@vimComment,vimSubscript +syn match vimNumber "\<0o\=\o\+\%('\o\+\)*" skipwhite nextgroup=@vimComment,vimSubscript +syn match vimNumber "\<0x\x\+\%('\x\+\)*" skipwhite nextgroup=@vimComment,vimSubscript +syn match vimNumber '\<0z\>' skipwhite nextgroup=@vimComment +syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=@vimComment,vimSubscript +syn case match + +" All vimCommands are contained by vimIsCommand. {{{2 +syn cluster vimCmdList contains=vimAbb,vimAddress,vimAt,vimAutocmd,vimAugroup,vimBehave,vimBreakadd,vimBreakdel,vimBreaklist,vimCall,vimCatch,vimCd,vimCommandModifier,vimConst,vimDoautocmd,vimDebug,vimDebuggreedy,vimDef,vimDefFold,vimDefer,vimDelcommand,vimDelFunction,vimDoCommand,@vimEcho,vimElse,vimEnddef,vimEndfunction,vimEndif,vimEval,vimExecute,vimIsCommand,vimExtCmd,vimExFilter,vimExMark,vimFiletype,vimFor,vimFunction,vimFunctionFold,vimGrep,vimGrepAdd,vimGlobal,vimHelp,vimHelpgrep,vimHighlight,vimHistory,vimImport,vimLanguage,vimLet,vimLoadkeymap,vimLockvar,vimMake,vimMap,vimMark,vimMatch,vimNotFunc,vimNormal,vimProfdel,vimProfile,vimPrompt,vimRedir,vimSet,vimSleep,vimSort,vimSyntax,vimSyntime,vimSynColor,vimSynLink,vimTerminal,vimThrow,vimUniq,vimUnlet,vimUnlockvar,vimUnmap,vimUserCmd,vimVimgrep,vimVimgrepadd,vimWincmd,vimMenu,vimMenutranslate,@vim9CmdList,@vimExUserCmdList,vimLua,vimMzScheme,vimPerl,vimPython,vimPython3,vimPythonX,vimRuby,vimTcl +syn cluster vim9CmdList contains=vim9Abstract,vim9Class,vim9Const,vim9Enum,vim9Export,vim9Final,vim9For,vim9Interface,vim9Type,vim9Var +syn match vimCmdSep "\\\@1" nextgroup=vimBang contains=vimCommand +syn match vimBang contained "!" +syn match vimWhitespace contained "\s\+" + +syn region vimSubscript contained matchgroup=vimSubscriptBracket start="\[" end="]" nextgroup=vimSubscript contains=@vimExprList + +syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" nextgroup=vimSubscript contains=vim9Super,vim9This +syn match vimVar "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>" nextgroup=vimSubscript contains=vimVarScope +syn match vimVar "\" nextgroup=vimSubscript contains=vimVarScope +syn match vimFBVar contained "\<[bwglsta]:\h[a-zA-Z0-9#_]*\>" nextgroup=vimSubscript contains=vimVarScope + +" match the scope prefix independently of the retrofitted scope dictionary +syn match vimVarScope contained "\<[bwglstav]:" +syn match vimVimVar contained "\<[bwglstav]:\%(\h\|\d\)\@!" nextgroup=vimSubscript + +syn match vimVarNameError contained "\<\h\w*\>" +syn match vimVimVar "\" contains=vim9Super,vim9This + +Vim9 syn match vim9LhsVariableList "\[\_[^]]\+]\ze\s\+[-+/*%]\==" contains=vimVar,@vimSpecialVar +Vim9 syn match vim9LhsVariableList "\[\_[^]]\+]\ze\s\+=<<" skipwhite nextgroup=vimLetHeredoc contains=vimVar,@vimSpecialVar +Vim9 syn match vim9LhsVariableList "\[\_[^]]\+]\ze\s\+\.\.=" contains=vimVar,@vimSpecialVar + +Vim9 syn match vim9LhsRegister "@["0-9\-a-zA-Z#=*+_/]\ze\s\+\%(\.\.\)\==" + +syn cluster vimExprList contains=@vimSpecialVar,@vimFunc,vimNumber,vimOper,vimOperParen,vimLambda,vimString,vimVar,@vim9ExprList +syn cluster vim9ExprList contains=vim9Boolean,vim9LambdaParams,vim9Null + +" Insertions And Appends: insert append {{{2 +" (buftype != nofile test avoids having append, change, insert show up in the command window) +" ======================= +if &buftype != 'nofile' + syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$" matchgroup=vimCommand end="^\.$" extend + syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$" matchgroup=vimCommand end="^\.$" extend + syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$" matchgroup=vimCommand end="^\.$" extend +endif + +" Behave! {{{2 +" ======= +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror") + syn match vimBehaveError contained "[^ ]\+" +endif +syn match vimBehave "\" nextgroup=vimBehaveBang,vimBehaveModel,vimBehaveError skipwhite +syn match vimBehaveBang contained "\a\@1<=!" nextgroup=vimBehaveModel skipwhite +syn keyword vimBehaveModel contained mswin xterm + +" Break* commands {{{2 +" =============== +syn keyword vimBreakaddFunc contained func skipwhite nextgroup=vimBreakpointFunctionLine,vimBreakpointFunction +syn keyword vimBreakaddFile contained file skipwhite nextgroup=vimBreakpointFileLine,vimBreakpointFilename +syn keyword vimBreakaddHere contained here skipwhite nextgroup=vimComment,vim9Comment,vimSep +syn keyword vimBreakaddExpr contained expr skipwhite nextgroup=@vimExprList + +syn match vimBreakpointGlob contained "*" skipwhite nextgroup=vimComment,vim9Comment,vimSep +syn match vimBreakpointNumber contained "\<\d\+\>" skipwhite nextgroup=vimComment,vim9Comment,vimSep + +syn cluster vimBreakpointArg contains=vimBreakaddFunc,vimBreakaddFile,vimBreakaddHere,vimBreakaddExpr + +syn match vimBreakpointFunction contained "\<\%(\*\|\w\)\+\>" skipwhite nextgroup=vimComment,vim9Comment,vimSep +syn match vimBreakpointFilename contained "\<\%(\*\|\f\)\+\>" skipwhite nextgroup=vimComment,vim9Comment,vimSep +syn match vimBreakpointFunctionLine contained "\<\d\+\>" skipwhite nextgroup=vimBreakpointFunction +syn match vimBreakpointFileLine contained "\<\d\+\>" skipwhite nextgroup=vimBreakpointFilename + +syn keyword vimBreakadd breaka[dd] skipwhite nextgroup=@vimBreakpointArg +syn keyword vimBreakdel breakd[el] skipwhite nextgroup=@vimBreakpointArg,vimBreakpointNumber,vimBreakpointGlob +syn keyword vimBreaklist breakl[ist] skipwhite nextgroup=vimComment,vim9Comment,vimSep + +" Call {{{2 +" ==== +syn match vimCall "\" skipwhite nextgroup=vimVar,@vimFunc + +" Cd: {{{2 +" == +" GEN_SYN_VIM: vimCommand cd, START_STR='syn keyword vimCd', END_STR='skipwhite nextgroup=vimCdBang,vimCdArg,vimComment,vim9Comment,vimCmdSep' +syn keyword vimCd cd lc[d] lch[dir] tc[d] tch[dir] skipwhite nextgroup=vimCdBang,vimCdArg,vimComment,vim9Comment,vimCmdSep +syn match vimCd "\" skipwhite nextgroup=vimCdBang,vimCdArg,vimComment,vim9Comment,vimCmdSep +syn region vimCdArg contained + \ start=+["#|]\@!\S+ + \ end="\ze\s*$" + \ end=+\ze\s*\\\@1" contains=vimCount + +" Defer {{{2 +" ===== +syn match vimDefer "\" skipwhite nextgroup=@vimFunc,vim9LambdaParams + +" *Do commands {{{2 +" ============ +syn match vimDoCommandBang contained "\a\@1<=!" skipwhite nextgroup=@vimCmdList + +syn keyword vimDoCommand argdo bufd[o] skipwhite nextgroup=vimDoCommandBang,@vimCmdList +syn keyword vimDoCommand tabd[o] wind[o] skipwhite nextgroup=@vimCmdList +syn keyword vimDoCommand cdo cfd[o] skipwhite nextgroup=vimDoCommandBang,@vimCmdList +syn keyword vimDoCommand ld[o] lfd[o] skipwhite nextgroup=vimDoCommandBang,@vimCmdList +syn keyword vimDoCommand foldd[oopen] folddoc[losed] skipwhite nextgroup=@vimCmdList + +" Exception Handling {{{2 +syn keyword vimThrow th[row] skipwhite nextgroup=@vimExprList +syn keyword vimCatch cat[ch] skipwhite nextgroup=vimCatchPattern +syn region vimCatchPattern contained matchgroup=Delimiter start="\z([!#$%&'()*+,-./:;<=>?@[\]^_`{}~]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSubstList oneline + +" Export {{{2 +" ====== +if s:vim9script + syn keyword vim9Export export skipwhite nextgroup=vim9Abstract,vim9ClassBody,vim9Const,vim9Def,vim9EnumBody,vim9Final,vim9InterfaceBody,vim9Type,vim9Var +endif + +" Filetypes {{{2 +" ========= +syn match vimFiletype "\]" skipwhite nextgroup=vimHistoryRange,vimCmdSep,vimComment,vim9Comment +syn match vimHistoryRange contained "-\=\<\d\+\>\%(\s*,\)\=" skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment +syn match vimHistoryRange contained ",\s*-\=\d\+\>" skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment +syn match vimHistoryRange contained "-\=\<\d\+\s*,\s*-\=\d\+\>" skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment + +" Import {{{2 +" ====== +syn keyword vimImportAutoload contained autoload skipwhite nextgroup=vimImportFilename +if s:vim9script + syn region vimImportFilename contained + \ start="\S" + \ skip=+\%#=1 + "\ continuation operators at SOL + \\n\%(\s*#.*\n\)*\s*\%([[:punct:]]\+\&[^#"'(]\) + \\| + "\ continuation operators at EOL + \\%(\%([[:punct:]]\+\&[^#"')]\)\s*\%(#.*\)\=\)\@<=$ + \\| + \\n\%(\s*#.*\n\)*\s*as\s + \\| + \\%(^\s*#.*\)\@<=$ + \\| + \\n\s*\%(\\\|#\\ \) + \+ + \ matchgroup=vimCommand + \ end="\s\+\zsas\ze\s\+\h" + \ matchgroup=NONE + \ end="$" + \ skipwhite nextgroup=vimImportName + \ contains=@vim9Continue,@vimExprList,vim9Comment + \ transparent +else + syn region vimImportFilename contained + \ start="\S" + \ skip=+\n\s*\%(\\\|"\\ \)+ + \ matchgroup=vimCommand + \ end="\s\+\zsas\ze\s\+\h" + \ matchgroup=NONE + \ end="$" + \ skipwhite nextgroup=vimImportName + \ contains=@vimContinue,@vimExprList + \ transparent +endif +syn match vimImportName contained "\%(\" skipwhite nextgroup=@vimComment +syn match vimImport "\" skipwhite nextgroup=vimImportAutoload,vimImportFilename + +" Language {{{2 +" ======== +syn keyword vimLanguage lan[guage] skipwhite nextgroup=@vimLanguageName,vimLanguageCategory,vimSep,vimComment,vim9Comment +syn keyword vimLanguageCategory contained col[late] cty[pe] mes[sages] tim[e] skipwhite nextgroup=@vimLanguageName + +" [language[_territory][.codeset][@modifier]] and the reserved "C" and "POSIX" +syn match vimLanguageName contained "[[:alnum:]][[:alnum:]._@-]*[[:alnum:]]" nextgroup=vimSep,vimComment,vim9Comment +syn keyword vimLanguageNameReserved contained C POSIX nextgroup=vimSep,vimComment,vim9Comment +syn cluster vimLanguageName contains=vimLanguageName,vimLanguageNameReserved + +" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2 +" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking. +syn cluster vimAugroupList contains=@vimCmdList,vimFilter,@vimFunc,vimLineComment,vimSpecFile,vimOper,vimNumber,vimOperParen,@vimComment,vimString,vimSubst,vimRegister,vimCmplxRepeat,vimNotation,vimCtrlChar,vimContinue + +" define +VimFolda syn region vimAugroup + \ start="\\ze\s\+\%([eE][nN][dD]\%($\|[[:space:]|"#]\)\)\@!\S" + \ matchgroup=vimAugroupKey + \ end="\" skipwhite nextgroup=vimCmdSep,vimComment +syn match vimAugroupBang contained "\a\@1<=!" skipwhite nextgroup=vimAugroupName +syn keyword vimAugroupKey contained aug[roup] skipwhite nextgroup=vimAugroupBang,vimAugroupName,vimAugroupEnd + +" remove +syn match vimAugroup "\\ze\s*\%(["|]\|$\)" skipwhite nextgroup=vimCmdSep,vimComment contains=vimAugroupKey +Vim9 syn match vimAugroup "\\ze\s*\%([#|]\|$\)" skipwhite nextgroup=vimCmdSep,vim9Comment contains=vimAugroupKey + +" Operators: {{{2 +" ========= +syn cluster vimOperGroup contains=@vimContinue,@vimExprList,vim9Comment,vim9LineComment,vimContinueString +syn match vimOper "\a\@=\|<=\|=\~\|!\~\|>\|<\)[?#]\=" skipwhite skipnl nextgroup=@vimOperContinue,@vimExprList,vimContinueString,vimSpecFile +syn match vimOper "\" skipwhite skipnl nextgroup=@vimOperContinue,@vimExprList,vimContinueString,vimSpecFile +syn match vimOper "\" skipwhite nextgroup=@vimExprList +syn region vimLambda contained + \ matchgroup=vimLambdaBrace + \ start=+{\ze[[:space:][:alnum:]_.,]*\%(\n\s*\%(\\[[:space:][:alnum:]_.,]*\|"\\ .*\)\)*->+ + \ skip=+\n\s*\%(\\\|"\\ \)+ + \ end="}" end="$" + \ contains=@vimContinue,@vimExprList,vimLambdaParams +syn match vimLambdaParams contained "\%({\n\=\)\@1<=\_.\{-}\%(->\)\@=" nextgroup=vimLambdaOperator contains=@vimContinue,vimFunctionParam + +syn match vim9LambdaOperator contained "=>" skipwhite skipempty nextgroup=@vimExprList,vim9LambdaBlock,vim9LambdaOperatorComment +syn match vim9LambdaParen contained "[()]" +syn match vim9LambdaParams contained + \ "(\%(\" + \ skipwhite nextgroup=vim9LambdaOperator + \ contains=@vim9Continue,vimDefParam,vim9LambdaParen,vim9LambdaReturnType +syn region vim9LambdaReturnType contained start=")\@<=:\s" end="\ze\s*#" end="\ze\s*=>" contains=@vim9Continue,@vimType transparent +syn region vim9LambdaBlock contained matchgroup=vimSep start="{" end="^\s*\zs}" contains=@vimDefBodyList + +syn match vim9LambdaOperatorComment contained "#.*" skipwhite skipempty nextgroup=@vimExprList,vim9LambdaBlock,vim9LambdaOperatorComment + +" Functions: Tag is provided for those who wish to highlight tagged functions {{{2 +" ========= +syn cluster vimFunctionBodyCommon contains=@vimCmdList,vimCmplxRepeat,vimContinue,vimCtrlChar,vimDef,vimFBVar,vimFunction,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegister,vimSpecFile,vimString,vimSubst,vimFunctionFold,vimDefFold,vimCmdSep +syn cluster vimFunctionBodyList contains=@vimFunctionBodyCommon,vimComment,vimLineComment,vimInsert,vimConst,vimLet,vimSearch +syn cluster vimDefBodyList contains=@vimFunctionBodyCommon,vim9Comment,vim9LineComment,vim9Block,vim9Const,vim9Final,vim9Var,vim9Null,vim9Boolean,vim9For,vim9LhsVariable,vim9LhsVariableList,vim9LhsRegister,vim9Search,@vimSpecialVar,@vim9Func + +syn region vimFunctionPattern contained + \ matchgroup=vimOper + \ start="/" + \ end="$" + \ contains=@vimSubstList + +syn match vimFunctionBang contained "\a\@1<=!" skipwhite nextgroup=vimFunctionName +syn match vimDefBang contained "\a\@1<=!" skipwhite nextgroup=vimDefName +syn match vimFunctionSID contained "\c" +syn match vimFunctionScope contained "\<[bwglstav]:" +syn match vimFunctionName contained + \ "\%(<[sS][iI][dD]>\|[bwglstav]:\)\=\%([[:alnum:]_#.]\+\|{.\{-1,}}\)\+" + \ skipwhite nextgroup=vimFunctionParams,vimCmdSep,vimComment,vim9Comment + \ contains=vimFunctionError,vimFunctionScope,vimFunctionSID,Tag +syn match vimDefName contained + \ "\%(<[sS][iI][dD]>\|[bwglstav]:\)\=\%([[:alnum:]_#.]\+\|{.\{-1,}}\)\+" + \ nextgroup=vimDefTypeParams,vimDefParams,vimCmdSep,vimComment,vim9Comment + \ contains=vimFunctionError,vimFunctionScope,vimFunctionSID,Tag + +syn match vimFunction "\" skipwhite nextgroup=vimFunctionBang,vimFunctionName,vimFunctionPattern,vimCmdSep,vimComment +syn match vimDef "\" skipwhite nextgroup=vimDefBang,vimDefName,vimFunctionPattern,vimCmdSep,vimComment + +syn region vimFunctionComment contained + \ start=+".*+ + \ skip=+\n\s*\%(\\\|"\\ \)+ + \ end="$" + \ skipwhite skipempty nextgroup=vimFunctionBody,vimEndfunction +syn region vimDefComment contained + \ start="#.*" + \ skip=+\n\s*\%(\\\|#\\ \)+ + \ end="$" + \ skipwhite skipempty nextgroup=vimDefBody,vimEnddef + +syn region vimFunctionParams contained + \ matchgroup=Delimiter + \ start="(" + \ skip=+\n\s*\%(\\\|"\\ \)+ + \ end=")" + \ skipwhite skipempty nextgroup=vimFunctionBody,vimFunctionComment,vimEndfunction,vimFunctionMod,vim9CommentError + \ contains=vimFunctionParam,vimOperParen,@vimContinue +syn region vimDefParams contained + \ matchgroup=Delimiter + \ start="(" + \ end=")" + \ skipwhite skipempty nextgroup=vimDefBody,vimDefComment,vimEnddef,vimReturnType,vimCommentError + \ contains=vimDefParam,vim9Comment,vimFunctionParamEquals,vimOperParen +syn region vimDefTypeParams contained + \ matchgroup=Delimiter + \ start="<" + \ end=">" + \ nextgroup=vimDefParams + \ contains=vim9DefTypeParam +syn match vimFunctionParam contained "\<\h\w*\>\|\.\.\." skipwhite nextgroup=vimFunctionParamEquals +syn match vimDefParam contained "\<\h\w*\>" skipwhite nextgroup=vimParamType,vimFunctionParamEquals +syn match vim9DefTypeParam contained "\<\u\w*\>" + +syn match vimFunctionParamEquals contained "=" skipwhite nextgroup=@vimExprList +syn match vimFunctionMod contained "\<\%(abort\|closure\|dict\|range\)\>" skipwhite skipempty nextgroup=vimFunctionBody,vimFunctionComment,vimEndfunction,vimFunctionMod,vim9CommentError + +syn region vimFunctionBody contained + \ start="^." + \ matchgroup=vimCommand + \ end="\" + \ skipwhite nextgroup=vimCmdSep,vimComment,vim9CommentError + \ contains=@vimFunctionBodyList +syn region vimDefBody contained + \ start="^." + \ matchgroup=vimCommand + \ end="\" + \ skipwhite nextgroup=vimCmdSep,vim9Comment,vimCommentError + \ contains=@vimDefBodyList + +syn match vimEndfunction "\" skipwhite nextgroup=vimCmdSep,vimComment,vim9CommentError +syn match vimEnddef "\" skipwhite nextgroup=vimCmdSep,vim9Comment,vimCommentError + +if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f' + syn region vimFunctionFold + \ start="\" skipwhite nextgroup=vimDelfunctionBang,vimFunctionName + +" Types: {{{2 +" ===== + +syn region vimReturnType contained + \ start=":\%(\s\|\n\)\@=" + \ skip=+\n\s*\%(\\\|#\\ \)\|^\s*#\\ + + \ end="$" + \ matchgroup=vim9Comment + "\ allow for legacy script tail comment error + \ end="\ze[#"]" + \ skipwhite skipempty nextgroup=vimDefBody,vimDefComment,vimEnddef,vimCommentError + \ contains=@vim9Continue,@vimType + \ transparent +syn match vimParamType contained ":\s" skipwhite skipnl nextgroup=@vimType contains=vimTypeSep + +syn match vimTypeSep contained ":\%(\s\|\n\)\@=" skipwhite nextgroup=@vimType +syn keyword vimType contained blob bool channel float job number string void +syn keyword vimTypeAny contained any +syn match vimTypeObject contained "\" +syn region vimCompoundType contained matchgroup=vimType start="\" + +syn cluster vimType contains=vimType,vimTypeAny,vimTypeObject,vimCompoundType,vimUserType + +" Classes, Enums And Interfaces: {{{2 +" ============================= + +if s:vim9script + + " Methods {{{3 + syn match vim9MethodDef contained "\" skipwhite nextgroup=vim9MethodDefName,vim9ConstructorDefName + syn match vim9MethodDefName contained "\<\h\w*\>" nextgroup=vim9MethodDefParams,vim9MethodDefTypeParams contains=@vim9MethodName + syn region vim9MethodDefParams contained + \ matchgroup=Delimiter start="(" end=")" + \ skipwhite skipnl nextgroup=vim9MethodDefBody,vim9MethodDefComment,vimEnddef,vim9MethodDefReturnType,vimCommentError + \ contains=vimDefParam,vim9Comment,vimFunctionParamEquals + syn region vim9MethodDefTypeParams contained + \ matchgroup=Delimiter + \ start="<" + \ end=">" + \ nextgroup=vim9MethodDefParams + \ contains=vim9DefTypeParam + + syn match vim9ConstructorDefName contained "\<_\=new\w*\>" + \ nextgroup=vim9ConstructorDefParams,vim9ConstuctorDefTypeParams + \ contains=@vim9MethodName + syn match vim9ConstructorDefParam contained "\<\%(this\.\)\=\h\w*\>" + \ skipwhite nextgroup=vimParamType,vimFunctionParamEquals + \ contains=vim9This,vimOper + syn region vim9ConstructorDefParams contained + \ matchgroup=Delimiter start="(" end=")" + \ skipwhite skipnl nextgroup=vim9MethodDefBody,vim9MethodDefComment,vimEnddef,vimCommentError + \ contains=vim9ConstructorDefParam,vim9Comment,vimFunctionParamEquals + syn region vim9ConstuctorDefTypeParams contained + \ matchgroup=Delimiter + \ start="<" + \ end=">" + \ nextgroup=vim9ConstructorDefParams + \ contains=vim9DefTypeParam + + syn region vim9MethodDefReturnType contained + \ start=":\%(\s\|\n\)\@=" + \ skip=+\n\s*\%(\\\|#\\ \)\|^\s*#\\ + + \ end="$" + \ matchgroup=vim9Comment + \ end="\ze#" + \ skipwhite skipnl nextgroup=vim9MethodDefBody,vim9MethodDefComment,vimEnddef,vimCommentError + \ contains=@vim9Continue,vimType,vimTypeSep + \ transparent + + syn region vim9MethodDefComment contained + \ start="#.*" + \ skip=+\n\s*\%(\\\|#\\ \)+ + \ end="$" + \ skipwhite skipempty nextgroup=vim9MethodDefBody,vimEnddef + + syn region vim9MethodDefBody contained + \ start="^.\=" matchgroup=vimCommand end="\" + \ skipwhite nextgroup=vimCmdSep,vim9Comment,vimCommentError + \ contains=@vim9MethodDefBodyList + + syn cluster vim9MethodDefBodyList contains=@vimDefBodyList,vim9This,vim9Super + + if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") + syn match vim9MethodNameError contained "\<[a-z0-9]\i\>" + endif + syn match vim9MethodName contained "\<_\=new\w*\>" + syn keyword vim9MethodName contained empty len string + + syn cluster vim9MethodName contains=vim9MethodName,vim9MethodNameError + + if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f' + syn region vim9MethodDefFold contained + \ start="\%(^\s*\%(:\=static\s\+\)\=\)\@16<=:\=def\s\+\h\w*[<(]" + \ end="^\s*:\=enddef\>" + \ contains=vim9MethodDef + \ fold keepend extend transparent + endif + + syn cluster vim9MethodDef contains=vim9MethodDef,vim9MethodDefFold + + " Classes {{{3 + syn cluster vim9ClassBodyList contains=vim9Abstract,vim9Class,vim9Comment,vim9LineComment,@vim9Continue,@vimExprList,vim9Extends,vim9Implements,@vim9MethodDef,vim9Public,vim9Static,vim9Const,vim9Final,vim9This,vim9Super,vim9Var + + syn match vim9Class contained "\" skipwhite nextgroup=vim9ClassName + syn match vim9ClassName contained "\<\u\w*\>" skipwhite skipnl nextgroup=vim9Extends,vim9Implements + syn match vim9SuperClass contained "\<\u\w*\>" skipwhite skipnl nextgroup=vim9Implements + syn match vim9ImplementedInterface contained "\<\u\w*\>" skipwhite skipnl nextgroup=vim9InterfaceListComma,vim9Extends + syn match vim9InterfaceListComma contained "," skipwhite skipnl nextgroup=vim9ImplementedInterface + syn keyword vim9Abstract abstract skipwhite skipnl nextgroup=vim9ClassBody,vim9AbstractDef + syn keyword vim9Extends contained extends skipwhite skipnl nextgroup=vim9SuperClass + syn keyword vim9Implements contained implements skipwhite skipnl nextgroup=vim9ImplementedInterface + syn keyword vim9Public contained public + syn keyword vim9Static contained static + " FIXME: don't match as dictionary keys, remove when operators are not + " shared between Vim9 and legacy script + syn match vim9This contained "\.\@1:\@!" + " super must be followed by '.' + syn match vim9Super contained "\.\@1" matchgroup=vimCommand end="\" contains=@vim9ClassBodyList transparent + + " Enums {{{3 + syn cluster vim9EnumBodyList contains=vim9Comment,vim9LineComment,@vim9Continue,vim9Enum,@vimExprList,@vim9MethodDef,vim9Public,vim9Static,vim9Const,vim9Final,vim9This,vim9Var + + syn match vim9Enum contained "\" skipwhite nextgroup=vim9EnumName + + syn match vim9EnumName contained "\<\u\w*\>" skipwhite skipempty nextgroup=vim9EnumNameTrailing,vim9EnumNameEmpty,vim9EnumNameComment,@vim9EnumNameContinue,vim9EnumImplements + syn match vim9EnumNameTrailing contained "\S.*" + syn region vim9EnumNameComment contained + \ start="#" skip="\n\s*\%(\\\|#\\ \)" end="$" + \ skipwhite skipempty nextgroup=vim9EnumNameComment,vim9EnumValue + \ contains=@vimCommentGroup,vimCommentString + " vim9EnumName's "skipempty" should only apply to comments and enum values and not implements clauses + syn match vim9EnumNameEmpty contained "^" skipwhite skipempty nextgroup=vim9EnumNameComment,vim9EnumValue + " allow line continuation between enum name and "implements" + syn match vim9EnumNameContinue contained + \ "^\s*\\" + \ skipwhite skipnl nextgroup=vim9EnumNameTrailing,vim9EnumNameEmpty,vim9EnumNameComment,@vim9EnumNameContinue,vim9EnumImplements + \ contains=vimWhitespace + syn match vim9EnumNameContinueComment contained + \ "^\s*#\\ .*" + \ skipwhite skipnl nextgroup=vim9EnumNameEmpty,vim9EnumNameComment,@vim9EnumNameContinue + \ contains=vimWhitespace + syn cluster vim9EnumNameContinue contains=vim9EnumNameContinue,vim9EnumNameContinueComment + + " enforce enum value list location + syn match vim9EnumValue contained "\<\a\w*\>" nextgroup=vim9EnumValueTypeArgs,vim9EnumValueArgList,vim9EnumValueListComma,vim9Comment + syn match vim9EnumValueListComma contained "," skipwhite skipempty nextgroup=vim9EnumValue,vim9EnumValueListCommaComment + syn region vim9EnumValueListCommaComment contained + \ start="#" skip="\n\s*\%(\\\|#\\ \)" end="$" + \ skipwhite skipempty nextgroup=vim9EnumValueListCommaComment,vim9EnumValue + \ contains=@vimCommentGroup,vimCommentString + syn region vim9EnumValueTypeArgs contained + \ matchgroup=Delimiter + \ start="<\ze\a" + \ end=">" + \ nextgroup=vim9EnumValueArgList + \ contains=@vimType + \ oneline + syn region vim9EnumValueArgList contained + \ matchgroup=vimParenSep start="(" end=")" + \ nextgroup=vim9EnumValueListComma + \ contains=@vimExprList,vimContinueString,vim9Comment + + syn keyword vim9EnumImplements contained implements skipwhite nextgroup=vim9EnumImplementedInterface + syn match vim9EnumImplementedInterface contained "\<\u\w*\>" skipwhite skipnl nextgroup=vim9EnumInterfaceListComma,vim9EnumImplementedInterfaceComment,vim9EnumValue + syn match vim9EnumInterfaceListComma contained "," skipwhite nextgroup=vim9EnumImplementedInterface + syn region vim9EnumImplementedInterfaceComment contained + \ start="#" skip="\n\s*\%(\\\|#\\ \)" end="$" + \ skipwhite skipempty nextgroup=vim9EnumImplementedInterfaceComment,vim9EnumValue + \ contains=@vimCommentGroup,vimCommentString + + VimFolde syn region vim9EnumBody start="\" matchgroup=vimCommand end="\" contains=@vim9EnumBodyList transparent + + " Interfaces {{{3 + " TODO: limit to decl only - no init values + syn cluster vim9InterfaceBodyList contains=vim9Comment,vim9LineComment,@vim9Continue,vim9Extends,vim9Interface,vim9AbstractDef,vim9Var + + syn match vim9Interface contained "\" skipwhite nextgroup=vim9InterfaceName + syn match vim9InterfaceName contained "\<\u\w*\>" skipwhite skipnl nextgroup=vim9Extends + + syn keyword vim9AbstractDef contained def skipwhite nextgroup=vim9AbstractDefName + syn match vim9AbstractDefName contained "\<\h\w*\>" skipwhite nextgroup=vim9AbstractDefParams,vim9AbstractDefTypeParams contains=@vim9MethodName + syn region vim9AbstractDefParams contained + \ matchgroup=Delimiter start="(" end=")" + \ skipwhite skipnl nextgroup=vimDefComment,vim9AbstractDefReturnType,vimCommentError + \ contains=vimDefParam,vim9Comment,vimFunctionParamEquals + syn region vim9AbstractDefReturnType contained + \ start=":\s" end="$" matchgroup=vim9Comment end="\ze[#"]" + \ skipwhite skipnl nextgroup=vimDefComment,vimCommentError + \ contains=vimTypeSep + \ transparent + syn region vim9AbstractDefTypeParams contained + \ matchgroup=Delimiter + \ start="<" + \ end=">" + \ nextgroup=vim9AbstractDefParams + \ contains=vim9DefTypeParam + + VimFoldi syn region vim9InterfaceBody start="\" matchgroup=vimCommand end="\" contains=@vim9InterfaceBodyList transparent + + " Type Aliases {{{3 + syn match vim9Type "\" skipwhite nextgroup=vim9TypeAlias,vim9TypeAliasError + syn match vim9TypeAlias contained "\<\u\w*\>" skipwhite nextgroup=vim9TypeEquals + syn match vim9TypeEquals contained "=" skipwhite nextgroup=@vimType + if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_notypealiaserror") + syn match vim9TypeAliasError contained "\<\l\w*\>" skipwhite nextgroup=vim9TypeEquals + endif +endif + +" Blocks: {{{2 +" ====== +Vim9 syn region vim9Block + \ matchgroup=vimSep + \ start="{\ze\s*\%($\|[#|]\)" + \ end="^\s*\zs}" + \ skipwhite nextgroup=vim9Comment,vimCmdSep + \ contains=@vimDefBodyList + +" Keymaps: {{{2 +" ======= + +syn match vimKeymapStart "^" contained skipwhite nextgroup=vimKeymapLhs,@vimKeymapLineComment +syn match vimKeymapLhs "\S\+" contained skipwhite nextgroup=vimKeymapRhs contains=vimNotation +syn match vimKeymapRhs "\S\+" contained skipwhite nextgroup=vimKeymapTailComment contains=vimNotation +syn match vimKeymapTailComment "\S.*" contained + +" TODO: remove when :" comment is matched in parts as "ex-colon comment" --djk +if s:vim9script + syn match vim9KeymapLineComment "#.*" contained contains=@vimCommentGroup,vimCommentString,vim9CommentTitle +else + syn match vimKeymapLineComment +".*+ contained contains=@vimCommentGroup,vimCommentString,vimCommentTitle +endif +syn cluster vimKeymapLineComment contains=vim9\=KeymapLineComment + +syn region vimLoadkeymap matchgroup=vimCommand start="\" end="\%$" contains=vimKeymapStart + +" Special Filenames, Modifiers, Extension Removal: {{{2 +" =============================================== +syn match vimSpecFile "" nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFile "<\([acs]file\|amatch\|abuf\)>" nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFile "\s%[ \t:]"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFile "\s%$"ms=s+1 nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFile "\s%<"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFile "#\d\+\|[#%]<\>" nextgroup=vimSpecFileMod,vimSubst1 +syn match vimSpecFileMod "\(:[phtre]\)\+" contained + +syn match vimSpecFile contained "%[ \t:]"me=e-1 nextgroup=vimSpecFileMod +syn match vimSpecFile contained excludenl "%$" nextgroup=vimSpecFileMod +syn match vimSpecFile contained "%<"me=e-1 nextgroup=vimSpecFileMod + +" User-Specified Commands: {{{2 +" ======================= +syn cluster vimUserCmdList contains=@vimCmdList,vimCmplxRepeat,@vimComment,vimCtrlChar,vimEscapeBrace,@vimFunc,vimNotation,vimNumber,vimOper,vimRegister,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange + +syn match vimUserCmd "\!\=" skipwhite nextgroup=vimUserCmdAttrs,vimUserCmdName contains=vimBang +syn match vimUserCmd +\!\=\ze\s*\n\s*\%(\\\|["#]\\ \)+ skipwhite skipnl nextgroup=vimUserCmdAttrs,vimUserCmdName contains=vimBang + +syn region vimUserCmdAttrs contained + \ start="-\l" + \ start=+^\s*\%(\\\|["#]\\ \)+ + \ end="\ze\s\u" + \ skipwhite nextgroup=vimUserCmdName + \ contains=@vimContinue,vimUserCmdAttr,vimUserCmdAttrError + \ transparent +syn match vimUserCmdAttrError contained "-\a\+\ze\%(\s\|=\)" +syn match vimUserCmdAttr contained "-addr=" contains=vimUserCmdAttrKey nextgroup=vimUserCmdAttrAddr +syn match vimUserCmdAttr contained "-bang\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-bar\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-buffer\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-complete=" contains=vimUserCmdAttrKey nextgroup=vimUserCmdAttrComplete,vimUserCmdError +syn match vimUserCmdAttr contained "-count\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-count=" contains=vimUserCmdAttrKey nextgroup=vimNumber +syn match vimUserCmdAttr contained "-keepscript\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-nargs=" contains=vimUserCmdAttrKey nextgroup=vimUserCmdAttrNargs +syn match vimUserCmdAttr contained "-range\>" contains=vimUserCmdAttrKey +syn match vimUserCmdAttr contained "-range=" contains=vimUserCmdAttrKey nextgroup=vimNumber,vimUserCmdAttrRange +syn match vimUserCmdAttr contained "-register\>" contains=vimUserCmdAttrKey + +syn match vimUserCmdAttrNargs contained "[01*?+]" +syn match vimUserCmdAttrRange contained "%" + +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") + syn match vimUserCmdError contained "\S\+\>" +endif + +syn case ignore +syn keyword vimUserCmdAttrKey contained a[ddr] ban[g] bar bu[ffer] com[plete] cou[nt] k[eepscript] n[args] ra[nge] re[gister] + +" GEN_SYN_VIM: vimUserCmdAttrComplete, START_STR='syn keyword vimUserCmdAttrComplete contained', END_STR='' +syn keyword vimUserCmdAttrComplete contained arglist augroup behave breakpoint buffer color command compiler cscope diff_buffer dir dir_in_path environment event expression file file_in_path filetype filetypecmd function help highlight history keymap locale mapclear mapping menu messages option packadd retab runtime scriptnames shellcmd shellcmdline sign syntax syntime tag tag_listfiles user var +syn keyword vimUserCmdAttrComplete contained arglist augroup behave breakpoint buffer color command compiler cscope diff_buffer dir dir_in_path environment event expression file file_in_path filetype function help highlight history keymap locale mapclear mapping menu messages option packadd runtime scriptnames shellcmd shellcmdline sign syntax syntime tag tag_listfiles user var +syn keyword vimUserCmdAttrComplete contained custom customlist nextgroup=vimUserCmdAttrCompleteFunc,vimUserCmdError +syn match vimUserCmdAttrCompleteFunc contained ",\%([bwglstav]:\|<[sS][iI][dD]>\)\=\h\w*\%([.#]\h\w*\)*"hs=s+1 nextgroup=vimUserCmdError contains=vimVarScope,vimFunctionSID + +" GEN_SYN_VIM: vimUserCmdAttrAddr, START_STR='syn keyword vimUserCmdAttrAddr contained', END_STR='' +syn keyword vimUserCmdAttrAddr contained arguments arg buffers buf lines line loaded_buffers load other quickfix qf tabs tab windows win +syn keyword vimUserCmdAttrAddr contained arguments arg buffers buf lines line loaded_buffers load other quickfix qf tabs tab windows win +syn match vimUserCmdAttrAddr contained "?" +syn case match + +syn match vimUserCmdName contained "\<\u[[:alnum:]]*\>" skipwhite nextgroup=vimUserCmdBlock,vimUserCmdReplacement +syn match vimUserCmdName contained +\<\u[[:alnum:]]*\>\ze\s*\n\s*\%(\\\|["#]\\ \)+ skipwhite skipnl nextgroup=vimUserCmdBlock,vimUserCmdReplacement +syn region vimUserCmdReplacement contained + \ start="\S" + \ start=+^\s*\%(\\\|["#]\\ \)+ + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimContinue,@vimUserCmdList,vimComFilter + \ keepend +syn region vimUserCmdBlock contained + \ matchgroup=vimSep + \ start="{" + \ end="^\s*\zs}" + \ contains=@vimDefBodyList,@vimUserCmdList + +syn match vimDelcommand "\" skipwhite nextgroup=vimDelcommandAttr,vimDelcommandName +syn match vimDelcommandAttr contained "-buffer\>" skipwhite nextgroup=vimDelcommandName +syn match vimDelcommandName contained "\<\u[[:alnum:]]*\>" + +" Lower Priority Comments: after some vim commands... {{{2 +" ======================= +if get(g:, "vimsyn_comment_strings", 1) + syn region vimCommentString contained oneline start='\S\s\+"'ms=e end='"' extend +endif + +if s:vim9script + syn cluster vimComment contains=vim9Comment +else + syn cluster vimComment contains=vimComment +endif + +VimL syn region vimComment + \ excludenl + \ start=+"+ + \ skip=+\n\s*\%(\\\|"\\ \)+ + \ end="$" + \ contains=@vimCommentGroup,vimCommentString + \ extend +Vim9 syn region vim9Comment + \ excludenl + \ start="\%#=1\s\@1<=#\%({\@!\|{{\)" + \ skip="\n\s*\%(\\\|#\\ \)" + \ end="$" + \ contains=@vimCommentGroup,vimCommentString + \ extend + +syn match vim9CommentError contained "#.*" +syn match vimCommentError contained +".*+ + +" Environment Variables: {{{2 +" ===================== +syn match vimEnvvar "\$\I\i*" +syn match vimEnvvar "\${\I\i*}" + +" Strings {{{2 +" ======= + +" In-String Specials: +" Try to catch strings, if nothing else matches (therefore it must precede the others!) +" vimEscapeBrace handles ["] []"] (ie. "s don't terminate string inside []) +" syn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\zs\^\=\]\=" skip="\\\\\|\\\]" end="]"me=e-1 +syn match vimPatSepErr contained "\\)" +syn match vimPatSep contained "\\|" +syn region vimPatSepZone oneline contained matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\\]['"]" contains=@vimStringGroup +syn region vimPatRegion contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline +syn match vimNotPatSep contained "\\\\" +syn cluster vimStringGroup contains=vimEscape,vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell +syn region vimString oneline keepend matchgroup=vimString start=+[^a-zA-Z\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+ nextgroup=vimSubscript contains=@vimStringGroup extend +syn region vimString oneline matchgroup=vimString start=+[^a-zA-Z\\@]'+lc=1 end=+'+ nextgroup=vimSubscript contains=vimQuoteEscape extend +"syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup " see tst45.vim + +syn match vimEscape contained "\\." +" syn match vimEscape contained +\\[befnrt\"]+ +syn match vimEscape contained "\\\o\{1,3}\|\\[xX]\x\{1,2}\|\\u\x\{1,4}\|\\U\x\{1,8}" +syn match vimEscape contained "\\<" contains=vimNotation +syn match vimEscape contained "\\<\*[^>]*>\=>" +syn match vimQuoteEscape contained "''" + +syn region vimString oneline matchgroup=vimString start=+$'+ end=+'+ nextgroup=vimSubscript contains=@vimStringInterpolation,vimQuoteEscape extend +syn region vimString oneline matchgroup=vimString start=+$"+ end=+"+ nextgroup=vimSubscript contains=@vimStringInterpolation,@vimStringGroup extend +syn region vimStringInterpolationExpr oneline contained matchgroup=vimSep start=+{+ end=+}+ contains=@vimExprList +syn match vimStringInterpolationBrace contained "{{" +syn match vimStringInterpolationBrace contained "}}" +syn cluster vimStringInterpolation contains=vimStringInterpolationExpr,vimStringInterpolationBrace + +syn region vimContinueString contained matchgroup=vimContinueString start=+"+ skip=+\n\s*\%(\\\|["#]\\ \)+ end=+"+ end="$" skipwhite nextgroup=vimSubscript,vimComment contains=@vimContinue,@vimStringGroup +syn region vimContinueString contained matchgroup=vimContinueString start=+'+ skip=+\n\s*\%(\\\|["#]\\ \)+ end=+'+ end="$" skipwhite nextgroup=vimSubscript,vimComment contains=@vimContinue,vimQuoteEscape +syn region vimContinueString contained matchgroup=vimContinueString start=+$"+ skip=+\n\s*\%(\\\|["#]\\ \)+ end=+"+ end="$" skipwhite nextgroup=vimSubscript,vimComment contains=@vimContinue,@vimStringInterpolation,@vimStringGroup +syn region vimContinueString contained matchgroup=vimContinueString start=+$'+ skip=+\n\s*\%(\\\|["#]\\ \)+ end=+'+ end="$" skipwhite nextgroup=vimSubscript,vimComment contains=@vimContinue,@vimStringInterpolation,vimQuoteEscape + +" Substitutions: {{{2 +" ============= +syn cluster vimSubstList contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation +syn cluster vimSubstRepList contains=vimSubstSubstr,vimSubstTwoBS,vimNotation +syn cluster vimSubstList add=vimCollection +syn match vimSubst "^\s*\%(s\%[ubstitute]\|sm\%[agic]\|sno\%[magic]\)\>" skipwhite nextgroup=vimSubstPat,vimSubstFlags,vimSubstCount +syn match vimSubst "^\s*\%(s\%[ubstitute]\|sm\%[agic]\|sno\%[magic]\)[_#]\@=" skipwhite nextgroup=vimSubstPat +syn match vimSubst "^\s*\%(s\%[ubstitute]\|sm\%[agic]\|sno\%[magic]\)\%(\d\+\)\@=" skipwhite nextgroup=vimSubstCount +syn match vimSubst1 contained "\%(s\%[ubstitute]\|sm\%[agic]\>\|sno\%[magic]\)\>" skipwhite nextgroup=vimSubstPat,vimSubstFlags,vimSubstCount +syn match vimSubst1 contained "\%(s\%[ubstitute]\|sm\%[agic]\>\|sno\%[magic]\)[_#]\@=" skipwhite nextgroup=vimSubstPat +syn match vimSubst1 contained "\%(s\%[ubstitute]\|sm\%[agic]\>\|sno\%[magic]\)\%(\d\+\)\@=" skipwhite nextgroup=vimSubstCount +syn match vimSubstFlagErr contained "[^< \t\r|]\+" contains=vimSubstFlags +" & and # after :s are always pattern delimiters not flags +syn match vimSubstFlags contained "[&cegiIlnpr#]\+" skipwhite nextgroup=vimSubstCount +syn match vimSubstCount contained "\d\+\>" +" TODO: Vim9 illegal separators for abbreviated :s form are [-.:], :su\%[...] required +" : # is allowed but "not recommended" (see :h pattern-delimiter) +syn region vimSubstPat contained matchgroup=vimSubstDelim start="\z([!#$%&'()*+,-./:;<=>?@[\]^_`{}~]\)"rs=s+1 skip="\\\\\|\\\z1" end="\z1"re=e-1,me=e-1 contains=@vimSubstList nextgroup=vimSubstRep4 oneline +syn region vimSubstRep4 contained matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList nextgroup=vimSubstFlagErr oneline +syn region vimCollection contained transparent start="\\\@\|[[\]<>'`]\)\@=" nextgroup=@vimMarkArg +VimL syn match vimExMark "\" skipwhite nextgroup=@vimMarkArg +syn match vimExMark "\" skipwhite nextgroup=@vimMarkArg + +syn match vimMarkArg contained "[a-zA-Z]\>\|[[\]<>'`]" skipwhite nextgroup=vimCmdSep,vimComment +syn match vimMarkArgError contained "["^.(){}0-9]" +syn cluster vimMarkArg contains=vimMarkArg,vimMarkArgError + +" Marks, Registers, Addresses, Filters: {{{2 +syn match vimMark "'[a-zA-Z0-9]\ze\s*$" +syn match vimMark "'[[\]{}()<>'`"^.]\ze\s*$" +syn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst1 +syn match vimMark "'[[\]{}()<>'`"^.]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst1 +syn match vimMark ",\zs'[[\]{}()<>'`"^.]" nextgroup=vimFilter,vimMarkNumber,vimSubst1 +syn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimFilter,vimMarkNumber,vimSubst1 +syn match vimMarkNumber "[-+]\d\+" contained contains=vimOper nextgroup=vimSubst1 +syn match vimPlainMark contained "'[a-zA-Z0-9]" +syn match vimRange "[`'][a-zA-Z0-9],[`'][a-zA-Z0-9]" contains=vimMark skipwhite nextgroup=vimFilter + +syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]' +syn match vimRegister '@"' +syn match vimLetRegister contained '@["@0-9\-a-zA-Z:.%#=*+~_/]' + +syn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1 +syn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1 + +syn match vimFilter "^!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile +syn match vimFilter contained "!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile +syn match vimComFilter contained "|!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile + +" Complex Repeats: (:h complex-repeat) {{{2 +" =============== +syn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1 + +" NOTE: :* as an alias for :@ is not supported, this is considered a :range, +" see :help cpo-star +syn match vimAtArg contained +@\@1<=[0-9a-z".=*+:@]+ +syn match vimAt +@[0-9a-z".=*+:@]\ze\s*\%($\|[|"#]\)+ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment contains=vimAtArg +" Vim9: avoid LHS assignment mismatching of :@["#] +syn match vimAt +@\ze\s*\%($\||\|\s["#]\)+ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment + +" Set command and associated set-options (vimOptions) with comment {{{2 +syn match vimSet "\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skipwhite nextgroup=vimSetBang,vimCmdSep,vimComment,vimSetArgs +syn region vimSetComment contained start=+"+ skip=+\n\s*\%(\\\||"\\ \)+ end="$" contains=@vimCommentGroup,vimCommentString extend +syn match vimSetCmdSep contained "|" skipwhite nextgroup=@vimCmdList,vimSubst1,@vimFunc +syn match vimSetEscape contained "\\\%(\\[|"]\|.\)" +syn match vimSetBarEscape contained "\\|" +syn match vimSetQuoteEscape contained +\\"+ +syn region vimSetArgs contained + \ start="\l\|<" + \ skip=+\n\s*\%(\\\|["#]\\ \)\|^\s*"\\ + + \ end=+\ze\\\@1]\+>" contains=vimOption +syn region vimSetEqual contained + \ matchgroup=vimOper + \ start="[=:]\|[-+^]=" + \ skip=+\\\s\|^\s*\%(\\\|["#]\\ \)+ + \ end="\ze\s" + \ contains=@vimContinue,vimCtrlChar,vimEnvvar,vimNotation,vimSetSep,vimSetEscape,vimSetBarEscape,vimSetQuoteEscape +syn match vimSetBang contained "\a\@1<=!" skipwhite nextgroup=vimSetAll,vimSetTermcap +syn keyword vimSetAll contained all nextgroup=vimSetMod +syn keyword vimSetTermcap contained termcap +syn match vimSetSep contained "[,:]" +syn match vimSetMod contained "\a\@1<=\%(&vim\=\|[!&?<]\)" + +" Variable Declarations: {{{2 +" ===================== +VimL syn keyword vimLet let skipwhite nextgroup=@vimSpecialVar,vimVar,vimVarList,vimLetVar +VimL syn keyword vimConst cons[t] skipwhite nextgroup=@vimSpecialVar,vimVar,vimVarList,vimLetVar +syn region vimVarList contained + \ start="\[" end="]" + \ skipwhite nextgroup=vimLetHeredoc + \ contains=@vimContinue,@vimSpecialVar,vimVar +syn match vimLetVar contained "\<\%([bwglstav]:\)\=\h[a-zA-Z0-9#_]*\>\ze\%(\[.*]\)\=\s*=<<" skipwhite nextgroup=vimLetVarSubscript,vimLetHeredoc contains=vimVarScope,vimSubscript +hi link vimLetVar vimVar +syn region vimLetVarSubscript contained + \ matchgroup=vimSubscriptBracket + \ start="\S\@1<=\[" + \ end="]" + \ skipwhite nextgroup=vimLetVarSubscript,vimLetHeredoc + \ contains=@vimExprList + +syn keyword vimUnlet unl[et] skipwhite nextgroup=vimUnletBang,vimUnletVars +syn match vimUnletBang contained "\a\@1<=!" skipwhite nextgroup=vimUnletVars +syn region vimUnletVars contained + \ start="$\I\|\h" skip=+\n\s*\%(\\\|["#]\\ \)\|^\s*["#]\\ + end="$" end=+\ze\s*[|"#]+ + \ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment + \ contains=@vimContinue,vimEnvvar,vimVar,vimVimVar + +" TODO: type error after register or environment variables (strings) +VimFoldh syn region vimLetHeredoc contained + \ matchgroup=vimLetHeredocStart + \ start="\%(^\z(\s*\)\S.*\)\@<==<<\s*trim\%(\s\+\)\@>\z(\L\S*\)" + \ matchgroup=vimLetHeredocStop + \ end="^\z1\=\z2$" + \ extend +VimFoldh syn region vimLetHeredoc contained + \ matchgroup=vimLetHeredocStart + \ start="=<<\%(\s*\)\@>\z(\L\S*\)" + \ matchgroup=vimLetHeredocStop end="^\z1$" + \ extend +VimFoldh syn region vimLetHeredoc contained + \ matchgroup=vimLetHeredocStart + \ start="\%(^\z(\s*\)\S.*\)\@<==<<\s*\%(trim\s\+eval\|eval\s\+trim\)\%(\s\+\)\@>\z(\L\S*\)" + \ matchgroup=vimLetHeredocStop + \ end="^\z1\=\z2$" + \ contains=@vimStringInterpolation + \ extend +VimFoldh syn region vimLetHeredoc contained + \ matchgroup=vimLetHeredocStart + \ start="=<<\s*eval\%(\s\+\)\@>\z(\L\S*\)" + \ matchgroup=vimLetHeredocStop + \ end="^\z1$" + \ contains=@vimStringInterpolation + \ extend + +Vim9 syn keyword vim9Const const skipwhite nextgroup=vim9Variable,vim9VariableList +Vim9 syn keyword vim9Final final skipwhite nextgroup=vim9Variable,vim9VariableList +Vim9 syn keyword vim9Var var skipwhite nextgroup=vim9Variable,vim9VariableList + +syn match vim9Variable contained "\<\h\w*\>" skipwhite nextgroup=vim9VariableTypeSep,vimLetHeredoc,vimOper +syn region vim9VariableList contained start="\[" end="]" contains=@vimContinue,@vimSpecialVar,vim9Variable skipwhite nextgroup=vimLetHeredoc + +syn match vim9VariableTypeSep contained "\S\@1<=:\%(\s\|\n\)\@=" skipwhite nextgroup=@vim9VariableType +syn keyword vim9VariableType contained blob bool channel float job number string void skipwhite nextgroup=vimLetHeredoc +syn keyword vim9VariableTypeAny contained any skipwhite nextgroup=vimLetHeredoc +syn match vim9VariableTypeObject contained "\" skipwhite nextgroup=vimLetHeredoc +syn region vim9VariableCompoundType contained + \ matchgroup=vim9VariableType + \ start="\" skipwhite nextgroup=vimLetHeredoc + +syn cluster vim9VariableType contains=vim9VariableType,vim9VariableTypeAny,vim9VariableTypeObject,vim9VariableCompoundType,vim9VariableUserType + +" Lockvar and Unlockvar: {{{2 +" ===================== +syn keyword vimLockvar lockv[ar] skipwhite nextgroup=vimLockvarBang,vimLockvarDepth,vimLockvarVars +syn keyword vimUnlockvar unlo[ckvar] skipwhite nextgroup=vimLockvarBang,vimLockvarDepth,vimLockvarVars +syn match vimLockvarBang contained "\a\@1<=!" skipwhite nextgroup=vimLockvarVars +syn match vimLockvarDepth contained "\<[0-3]\>" skipwhite nextgroup=vimLockvarVars +syn region vimLockvarVars contained + \ start="\h" skip=+\n\s*\%(\\\|"\\ \)\|^\s*"\\ + end="$" end="\ze[|"]" + \ nextgroup=vimCmdSep,vimComment + \ contains=@vimContinue,vimVar + +hi def link vimLockvar vimCommand +hi def link vimUnlockvar vimCommand +hi def link vimLockvarBang vimBang +hi def link vimLockvarDepth vimNumber + +" For: {{{2 +" === +" handles Vim9 and legacy for now +syn region vimFor + \ matchgroup=vimCommand + \ start="\" end="\" + \ skipwhite skipnl nextgroup=@vimForInContinue,vim9ForInComment,@vimExprList + \ contains=@vimContinue,vimVar,vimVarList,vim9Variable,vim9VariableList + \ transparent + +syn match vim9ForInComment contained "#.*" skipwhite skipempty nextgroup=vimForInComment,@vimExprList + +syn match vimForInContinue contained "^\s*\zs\\" skipwhite skipnl nextgroup=@vimForInContinue,@vimExprList +syn match vimForInContinueComment contained '^\s*\zs["#]\\ .*' skipwhite skipnl nextgroup=@vimForInContinue,@vimExprList +syn cluster vimForInContinue contains=vimForInContinue,vimForInContinueComment + +" Abbreviations: {{{2 +" ============= +" GEN_SYN_VIM: vimCommand abbrev, START_STR='syn keyword vimAbb', END_STR='skipwhite nextgroup=vimMapMod,vimMapLhs' +syn keyword vimAbb ab[breviate] ca[bbrev] cnorea[bbrev] cuna[bbrev] ia[bbrev] inorea[bbrev] iuna[bbrev] norea[bbrev] una[bbreviate] skipwhite nextgroup=vimMapMod,vimMapLhs +" GEN_SYN_VIM: vimCommand abclear, START_STR='syn keyword vimAbb', END_STR='skipwhite nextgroup=vimMapMod' +syn keyword vimAbb abc[lear] cabc[lear] iabc[lear] skipwhite nextgroup=vimMapMod + +" Filename Patterns: {{{2 +" ================= + +syn match vimWildcardQuestion contained "?" +syn match vimWildcardStar contained "*" + +syn match vimWildcardBraceComma contained "," +syn region vimWildcardBrace contained + \ matchgroup=vimWildcard + \ start="{" + \ end="}" + \ contains=vimWildcardEscape,vimWildcardBrace,vimWildcardBraceComma,vimWildcardQuestion,vimWildcardStar,vimWildcardBracket + \ oneline + +syn match vimWildcardIntervalNumber contained "\d\+" +syn match vimWildcardInterval contained "\\\\\\{\d\+\%(,\d\+\)\=\\}" contains=vimWildcardIntervalNumber + + +syn match vimWildcardBracket contained "\[\%(\^\=]\=\%(\\.\|\[\([:.=]\)[^:.=]\+\1]\|[^][:space:]]\)*\)\@>]" + \ contains=vimWildcardBracketStart,vimWildcardEscape + +syn match vimWildcardBracketCharacter contained "." nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketHyphen,vimWildcardBracketEnd +syn match vimWildcardBracketRightBracket contained "]" nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketEnd +syn match vimWildcardBracketHyphen contained "-]\@!" nextgroup=@vimWildcardBracketCharacter +syn match vimWildcardBracketEscape contained "\\." nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketHyphen,vimWildcardBracketEnd +syn match vimWildcardBracketCharacterClass contained "\[:[^:]\+:]" nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketEnd +syn match vimWildcardBracketEquivalenceClass contained "\[=[^=]\+=]" nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketEnd +syn match vimWildcardBracketCollatingSymbol contained "\[\.[^.]\+\.]" nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketEnd + +syn match vimWildcardBracketStart contained "\[" nextgroup=vimWildcardBracketCaret,vimWildcardBracketRightBracket,@vimWildcardBracketCharacter +syn match vimWildcardBracketCaret contained "\^" nextgroup=@vimWildcardBracketCharacter,vimWildcardBracketRightBracket +syn match vimWildcardBracketEnd contained "]" + +syn cluster vimWildcardBracketCharacter contains=vimWildcardBracketCharacter,vimWildcardBracketEscape,vimWildcardBracketCharacterClass,vimWildcardBracketEquivalenceClass,vimWildcardBracketCollatingSymbol + +syn match vimWildcardEscape contained "\\." + +syn cluster vimWildcard contains=vimWildcardQuestion,vimWildcardStar,vimWildcardBrace,vimWildcardBracket,vimWildcardInterval + +" Autocmd and Doauto{cmd,all}: {{{2 +" =========================== + +" TODO: explicitly match the {cmd} arg rather than bailing out to TOP +syn region vimAutocmdBlock contained matchgroup=vimSep start="{" end="^\s*\zs}" contains=@vimDefBodyList + +syn match vimAutocmdGroup contained "\%(\\["|[:space:]]\|[^"|[:space:]]\)\+" skipwhite nextgroup=vimAutoEvent,vimAutoEventGlob +syn match vimAutocmdBang contained "\a\@1<=!" skipwhite nextgroup=vimAutocmdGroup,vimAutoEvent,vimAutoEventGlob + +" TODO: cleaner handling of | in pattern position +" : match pattern items in addition to wildcards +syn region vimAutocmdPattern contained + \ start="|\@!\S" + \ skip="\\\\\|\\[,[:space:]]" + \ end="\ze[,[:space:]]" + \ end="$" + \ skipwhite nextgroup=vimAutocmdPatternSep,vimAutocmdMod,vimAutocmdBlock,@vimFunc + \ contains=vimEnvvar,@vimWildcard,vimAutocmdPatternEscape +syn match vimAutocmdBufferPattern contained "" skipwhite nextgroup=vimAutocmdPatternSep,vimAutocmdMod,vimAutocmdBlock,@vimFunc +" trailing pattern separator comma allowed +syn match vimAutocmdPatternSep contained "," skipwhite nextgroup=@vimAutocmdPattern,vimAutocmdMod,vimAutocmdBlock +syn match vimAutocmdPatternEscape contained "\\." +syn cluster vimAutocmdPattern contains=vimAutocmdPattern,vimAutocmdBufferPattern + +" TODO: Vim9 requires '++' prefix +syn match vimAutocmdMod contained "\%(++\)\=\" skipwhite nextgroup=vimAutocmdMod,vimAutocmdBlock +syn match vimAutocmdMod contained "++once\>" skipwhite nextgroup=vimAutocmdMod,vimAutocmdBlock + +" higher priority than vimAutocmdGroup, assume no group is so named +syn match vimAutoEventGlob contained "*" skipwhite nextgroup=@vimAutocmdPattern +syn match vimAutoEventSep contained "\a\@1<=," nextgroup=vimAutoEvent +syn match vimUserAutoEventSep contained "\a\@1<=," nextgroup=vimUserAutoEvent + +syn match vimAutocmd "\" skipwhite nextgroup=vimAutocmdBang,vimAutocmdGroup,vimAutoEvent,vimAutoEventGlob + + +syn match vimDoautocmdMod contained "" skipwhite nextgroup=vimAutocmdGroup,vimAutoEvent +syn match vimDoautocmd "\" skipwhite nextgroup=vimDoautocmdMod,vimAutocmdGroup,vimAutoEvent +syn match vimDoautocmd "\" skipwhite nextgroup=vimDoautocmdMod,vimAutocmdGroup,vimAutoEvent + +" Echo And Execute: -- prefer strings! {{{2 +" ================ +" NOTE: No trailing comments + +syn region vimEcho + \ matchgroup=vimCommand + \ start="\" + \ start="\" + \ start="\" + \ start="\" + \ start="\" + \ start="\" + \ skip=+\\|\|||\|\n\s*\%(\\\|["#]\\ \)+ + \ end="\ze|" + \ excludenl end="$" + \ nextgroup=vimCmdSep + \ contains=@vimContinue,@vimExprList,vim9Comment + \ transparent + +syn match vimEchohl "\" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchohlNone +syn case ignore +syn keyword vimEchohlNone contained none +syn case match + +syn cluster vimEcho contains=vimEcho,vimEchohl + +syn region vimExecute + \ matchgroup=vimCommand + \ start="\" + \ skip=+\\|\|||\|\n\s*\%(\\\|["#]\\ \)+ + \ end="\ze|" + \ excludenl end="$" + \ nextgroup=vimCmdSep + \ contains=@vimContinue,@vimExprList,vim9Comment + \ transparent + +syn region vimEval + \ matchgroup=vimCommand + \ start="\" + \ skip=+\\|\|||\|\n\s*\%(\\\|["#]\\ \)+ + \ end="\ze|" + \ excludenl end="$" + \ nextgroup=vimCmdSep + \ contains=@vimContinue,@vimExprList,vim9Comment,vimComment + \ transparent + +" Filter: {{{2 +" ====== +syn match vimExFilter "\" skipwhite nextgroup=vimExFilterBang,vimExFilterPattern +syn region vimExFilterPattern contained + \ start="[[:ident:]]" + \ end="\ze[[:space:]\n]" + \ skipwhite nextgroup=@vimCmdList + \ contains=@vimSubstList + \ oneline +syn region vimExFilterPattern contained + \ matchgroup=Delimiter + \ start="\z([^[:space:][:ident:]|"]\)" + \ skip="\\\\\|\\\z1" + \ end="\z1" + \ skipwhite nextgroup=@vimCmdList + \ contains=@vimSubstList + \ oneline +syn match vimExFilterBang contained "\a\@1<=!" skipwhite nextgroup=vimExFilterPattern + +" Grep and Make: {{{2 +" ============= +" | is the command separator, escaped with \| all other backslashes are passed through literally, no tail comments +syn match vimGrep "\" skipwhite nextgroup=vimGrepBang,vimGrepArgs,vimCmdSep +syn match vimGrepadd "\" skipwhite nextgroup=vimGrepBang,vimGrepArgs,vimCmdSep +syn region vimGrepArgs contained + \ start="|\@!\S" + \ skip=+\n\s*\%(\\\|[#"]\\ \)+ + \ matchgroup=vimCmdSep + \ end="|" + \ end="$" + "\ TODO: include vimSpecFile + \ contains=vimGrepBarEscape +syn match vimGrepBarEscape contained "\\|" +syn match vimGrepBang contained "\a\@1<=!" skipwhite nextgroup=vimGrepArgs,vimCmdSep + +syn match vimMake "\" skipwhite nextgroup=vimMakeBang,vimMakeArgs,vimCmdSep +syn region vimMakeArgs contained + \ start="|\@!\S" + \ skip=+\n\s*\%(\\\|[#"]\\ \)+ + \ matchgroup=vimCmdSep + \ end="|" + \ end="$" + "\ TODO: include vimSpecFile + \ contains=vimMakeBarEscape +syn match vimMakeBarEscape contained "\\|" +syn match vimMakeBang contained "\a\@1<=!" skipwhite nextgroup=vimMakeArgs,vimCmdSep + +" Help*: {{{2 +" ===== +syn match vimHelp "\" skipwhite nextgroup=vimHelpBang,vimHelpArg,vimHelpNextCommand +" TODO: match wildcards, ignoring exceptions? +syn region vimHelpArg contained + \ start="\S" + \ matchgroup=Special + \ end="\%(@\a\a\)\=\ze\s*\%($\|\%x0d\|\%x00\||[^|]\)" + \ oneline +syn match vimHelpNextCommand contained "\ze|[^|]" skipwhite nextgroup=vimCmdSep +syn match vimHelpBang contained "\a\@1<=!" skipwhite nextgroup=vimHelpArg,vimHelpNextCommand + +syn match vimHelpgrep "\" skipwhite nextgroup=vimHelpgrepBang,vimHelpgrepPattern +syn region vimHelpgrepPattern contained + \ start="\S" + \ matchgroup=Special + \ end="@\a\a\>" + \ end="$" + \ contains=@vimSubstList + \ oneline + +" Vimgrep: {{{2 +" ======= +syn match vimVimgrep "\" skipwhite nextgroup=vimVimgrepBang,vimVimgrepPattern +syn match vimVimgrepadd "\" skipwhite nextgroup=vimVimgrepBang,vimVimgrepPattern +syn match vimVimgrepBang contained "\a\@1<=!" skipwhite nextgroup=vimVimgrepPattern +syn region vimVimgrepPattern contained + \ start="[[:ident:]]" + \ end="\ze[[:space:]\n]" + \ skipwhite nextgroup=vimVimgrepFile,vimCmdSep + \ contains=@vimSubstList + \ oneline +syn region vimVimgrepPattern contained + \ matchgroup=Delimiter + \ start="\z([^[:space:][:ident:]|"]\)" + \ skip="\\\\\|\\\z1" + \ end="\z1" + \ skipwhite nextgroup=vimVimgrepFlags,vimVimgrepFile,vimCmdSep + \ contains=@vimSubstList + \ oneline +syn match vimVimgrepEscape contained "\\\%(\\|\|.\)" +syn match vimVimgrepBarEscape contained "\\|" +syn region vimVimgrepFile contained + \ start="|\@!\S" + \ matchgroup=vimCmdSep + \ end="|" + \ end="\ze\s" + \ end="$" + \ skipwhite nextgroup=vimVimgrepFile + \ contains=vimSpecFile,vimVimgrepEscape,vimVimgrepBarEscape +syn match vimVimgrepFlags contained "\<[gjf]\{,3\}\>" skipwhite nextgroup=vimVimgrepfile + +" Maps: {{{2 +" ==== +" GEN_SYN_VIM: vimCommand map, START_STR='syn keyword vimMap', END_STR='skipwhite nextgroup=vimMapMod,vimMapLhs' +syn keyword vimMap cm[ap] cno[remap] im[ap] ino[remap] lm[ap] ln[oremap] nm[ap] nn[oremap] om[ap] ono[remap] smap snor[emap] tma[p] tno[remap] vm[ap] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapMod,vimMapLhs +syn match vimMap "\" skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs +syn keyword vimMap no[remap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs +" GEN_SYN_VIM: vimCommand mapclear, START_STR='syn keyword vimMap', END_STR='skipwhite nextgroup=vimMapMod' +syn keyword vimMap cmapc[lear] imapc[lear] lmapc[lear] nmapc[lear] omapc[lear] smapc[lear] tmapc[lear] vmapc[lear] xmapc[lear] skipwhite nextgroup=vimMapMod +syn keyword vimMap mapc[lear] skipwhite nextgroup=vimMapBang,vimMapMod +" GEN_SYN_VIM: vimCommand unmap, START_STR='syn keyword vimUnmap', END_STR='skipwhite nextgroup=vimMapMod,vimMapLhs' +syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] tunma[p] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapMod,vimMapLhs +syn keyword vimUnmap unm[ap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs + +syn match vimMapLhs contained "\%(.\|\S\)\+" contains=vimCtrlChar,vimNotation,vimMapLeader skipwhite nextgroup=vimMapRhs +syn match vimMapLhs contained "\%(.\|\S\)\+\ze\s*$" contains=vimCtrlChar,vimNotation,vimMapLeader skipwhite skipnl nextgroup=vimMapRhsContinue +syn match vimMapBang contained "\a\@1<=!" skipwhite nextgroup=vimMapMod,vimMapLhs +syn match vimMapMod contained "\%#=1<\%(buffer\|expr\|nowait\|script\|silent\|special\|unique\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs +syn region vimMapRhs contained + \ start="\S" + \ skip=+\\|\|\@1<=|\|\n\s*\%(\\\|["#]\\ \)+ + \ end="\ze|" + \ end="$" + \ nextgroup=vimCmdSep + \ contains=@vimContinue,vimCtrlChar,vimNotation,vimMapLeader +syn region vimMapRhsContinue contained + \ start=+^\s*\%(\\\|["#]\\ \)+ + \ skip=+\\|\|\@1<=|\|\n\s*\%(\\\|["#]\\ \)+ + \ end="\ze|" + \ end="$" + \ nextgroup=vimCmdSep + \ contains=@vimContinue,vimCtrlChar,vimNotation,vimMapLeader +syn match vimMapLeader contained "\%#=1\c<\%(local\)\=leader>" contains=vimMapLeaderKey +syn keyword vimMapModKey contained buffer expr nowait script silent special unique +syn case ignore +syn keyword vimMapLeaderKey contained leader localleader +syn case match + +" Menus: {{{2 +" ===== +" NOTE: tail comments disallowed +" GEN_SYN_VIM: vimCommand menu, START_STR='syn keyword vimMenu', END_STR='skipwhite nextgroup=vimMenuBang,vimMenuMod,vimMenuName,vimMenuPriority,vimMenuStatus' +syn keyword vimMenu am[enu] an[oremenu] aun[menu] cme[nu] cnoreme[nu] cunme[nu] ime[nu] inoreme[nu] iunme[nu] me[nu] nme[nu] nnoreme[nu] noreme[nu] nunme[nu] ome[nu] onoreme[nu] ounme[nu] sme[nu] snoreme[nu] sunme[nu] tlm[enu] tln[oremenu] tlu[nmenu] tm[enu] tu[nmenu] unme[nu] vme[nu] vnoreme[nu] vunme[nu] xme[nu] xnoreme[nu] xunme[nu] skipwhite nextgroup=vimMenuBang,vimMenuMod,vimMenuName,vimMenuPriority,vimMenuStatus +syn keyword vimMenu popu[p] skipwhite nextgroup=vimMenuBang,vimMenuName +syn region vimMenuRhs contained contains=@vimContinue,vimNotation start="|\@!\S" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ end="$" matchgroup=vimSep end="|" +syn region vimMenuRhsContinue contained contains=@vimContinue,vimNotation start=+^\s*\%(\\\|"\\ \)+ skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ end="$" matchgroup=vimSep end="|" +syn match vimMenuName "\.\@!\%(\\\s\|\S\)\+" contained contains=vimMenuNotation,vimNotation skipwhite nextgroup=vimCmdSep,vimMenuRhs +syn match vimMenuName "\.\@!\%(\\\s\|\S\)\+\ze\s*$" contained contains=vimMenuNotation,vimNotation skipwhite skipnl nextgroup=vimCmdSep,vimMenuRhsContinue +syn match vimMenuNotation "&\a\|&&\|\\\s\|\\\." contained +syn match vimMenuPriority "\<\d\+\%(\.\d\+\)*\>" contained skipwhite nextgroup=vimMenuName +syn match vimMenuMod "\c<\%(script\|silent\|special\)>" contained skipwhite nextgroup=vimMenuName,vimMenuPriority,vimMenuMod contains=vimMapModKey,vimMapModErr +syn keyword vimMenuStatus enable disable nextgroup=vimMenuName skipwhite +syn match vimMenuBang "\a\@1<=!" contained skipwhite nextgroup=vimMenuName,vimMenuMod + +syn region vimMenutranslate + \ matchgroup=vimCommand start="\" + \ skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ + \ end="$" matchgroup=vimCmdSep end="|" matchgroup=vimMenuClear end="\" skipwhite nextgroup=@vimExprList,vimNotation +syn match vimElse "\" skipwhite nextgroup=vimComment,vim9Comment +syn match vimEndif "\" skipwhite nextgroup=vimComment,vim9Comment + +" Angle-Bracket Notation: (tnx to Michael Geddes) {{{2 +" ====================== +syn case ignore +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd]-\)\{0,4}x\=\%(f\d\{1,2}\|[^ \t:]\|space\|bar\|bslash\|nl\|newline\|lf\|linefeed\|cr\|retu\%[rn]\|enter\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|csi\|right\|paste\%(start\|end\)\|left\|help\|undo\|k\=insert\|ins\|mouse\|[kz]\=home\|[kz]\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\%(page\)\=\%(\|down\|up\|k\d\>\)\)>" contains=vimBracket + +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}\%(net\|dec\|jsb\|pterm\|urxvt\|sgr\)mouse>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}\%(left\|middle\|right\)\%(mouse\|drag\|release\)>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}left\%(mouse\|release\)nm>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}x[12]\%(mouse\|drag\|release\)>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}sgrmouserelease>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}mouse\%(up\|down\|move\)>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd2-4]-\)\{0,4}scrollwheel\%(up\|down\|right\|left\)>" contains=vimBracket + +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%(sid\|nop\|nul\|lt\|drop\)>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%(snr\|plug\|cursorhold\|ignore\|cmd\|scriptcmd\|focus\%(gained\|lost\)\)>" contains=vimBracket +" syn match vimNotation contained '\%(\\\|\)\=[0-9a-z"%#:.\-=]'he=e-1 contains=vimBracket +syn match vimNotation contained '\%#=1\%(\\\|\)\=<\%([fq]-\)\=\%(line[12]\|count\|bang\|reg\|args\|mods\|lt\)>' contains=vimBracket skipwhite nextgroup=vimSubst1 +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([cas]file\|abuf\|amatch\|cexpr\|cword\|cWORD\|client\|stack\|script\|sf\=lnum\)>" contains=vimBracket +syn match vimNotation contained "\%#=1\%(\\\|\)\=<\%([scamd]-\)\{0,4}char-\%(\d\+\|0\o\+\|0x\x\+\)>" contains=vimBracket + +syn match vimBracket contained "[\\<>]" +syn case match + +" User Command Highlighting: {{{2 +syn match vimUsrCmd '^\s*\zs\u\%(\w*\)\@>\%([<.(#[]\|\s\+\%([-+*/%]\=\|\.\.\)=\)\@!' + +" Vim user commands + +" Compiler plugins +syn match vimCompilerSet "\" skipwhite nextgroup=vimSetArgs + +" runtime/makemenu.vim +syn match vimSynMenu "\" skipwhite nextgroup=vimSynMenuPath +syn match vimSynMenuPath contained ".*\ze:" nextgroup=vimSynMenuColon contains=vimMenuNotation +syn match vimSynMenuColon contained ":" nextgroup=vimSynMenuName +syn match vimSynMenuName contained "\w\+" + +" runtime/syntax/syncolor.vim +syn match vimSynColor "\" skipwhite nextgroup=vimSynColorGroup +syn match vimSynColorGroup contained "\<\h\w*\>" skipwhite nextgroup=vimHiKeyList contains=vimGroup +syn match vimSynLink "\" skipwhite nextgroup=vimSynLinkGroup +syn match vimSynLinkGroup contained "\<\h\w*\>" skipwhite nextgroup=vimGroup contains=vimGroup + +syn cluster vimExUserCmdList contains=vimCompilerSet,vimSynColor,vimSynLink,vimSynMenu + +" Errors And Warnings: {{{2 +" ==================== +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") + syn match vimFunctionError contained "[[:space:]!]\@1<=\<[a-z0-9]\w\{-}\ze\s*(" + syn match vimFunctionError contained "\%(<[sS][iI][dD]>\|[sg]:\)\d\w\{-}\ze\s*(" + syn match vimElseIfErr "\" + syn match vimBufnrWarn /\" skipwhite nextgroup=vimMatchGroup,vimMatchNone contains=vimCount +syn match vimMatchGroup contained "[[:alnum:]._-]\+" skipwhite nextgroup=vimMatchPattern +syn case ignore +syn keyword vimMatchNone contained none +syn case match +syn region vimMatchPattern contained + \ matchgroup=Delimiter + \ start="\z([!#$%&'()*+,-./:;<=>?@[\]^_`{}~]\)" + \ skip="\\\\\|\\\z1" + \ end="\z1" + \ contains=@vimSubstList + \ oneline + +" Normal: {{{2 +" ====== +syn match vimNormal "\!\=" skipwhite nextgroup=vimNormalArg contains=vimBang +syn region vimNormalArg contained start="\S" skip=+\n\s*\%(\\\|["#]\\ \)+ end="$" contains=@vimContinue + +" Profile: {{{2 +" ======= +syn match vimProfileBang contained "\a\@1<=!" skipwhite nextgroup=vimProfileArg +syn keyword vimProfileArg contained start skipwhite nextgroup=vimProfilePattern +syn keyword vimProfileArg contained func skipwhite nextgroup=vimProfilePattern +syn keyword vimProfileArg contained file skipwhite nextgroup=vimProfilePattern +syn keyword vimProfileArg contained stop pause skipwhite nextgroup=vimCmdSep,@vimComment +syn keyword vimProfileArg contained continue dump skipwhite nextgroup=vimCmdSep,@vimComment +" TODO: match file pattern +syn region vimProfilePattern contained + \ start="\S" + \ skip=+\\[|"#]+ + \ end="$" end=+\ze\s*[|"#]+ + \ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment +syn match vimProfile "\" skipwhite nextgroup=vimProfileBang,vimProfileArg + +syn keyword vimProfdelArg contained func skipwhite nextgroup=vimProfilePattern +syn keyword vimProfdelArg contained file skipwhite nextgroup=vimProfilePattern +syn keyword vimProfdelArg contained here skipwhite nextgroup=vimCmdSep,@vimComment +syn match vimProfdel "\" skipwhite nextgroup=vimProfdelArg + +" Prompt{find,repl}: {{{2 +" ================= +syn region vimPromptArg contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimContinue +syn keyword vimPrompt promptf[ind] promptr[epl] skipwhite nextgroup=vimPromptArg + +" Redir: {{{2 +" ===== +syn match vimRedir "\" skipwhite nextgroup=vimRedirBang,vimRedirFileOperator,vimRedirVariableOperator,vimRedirRegister,vimRedirEnd +syn match vimRedirBang contained "\a\@1<=!" skipwhite nextgroup=vimRedirFileOperator + +syn match vimRedirFileOperator contained ">>\=" skipwhite nextgroup=vimRedirFile +syn region vimRedirFile contained + \ start="\S" + \ matchgroup=Normal + \ end="\s*$" + \ end="\s*\ze[|"]" + \ nextgroup=vimCmdSep,vimComment + \ contains=vimSpecFile +syn match vimRedirRegisterOperator contained ">>\=" +syn match vimRedirRegister contained "@[a-zA-Z*+"]" nextgroup=vimRedirRegisterOperator +syn match vimRedirVariableOperator contained "=>>\=" skipwhite nextgroup=vimVar +syn keyword vimRedirEnd contained END + +" Sleep: {{{2 +" ===== +syn keyword vimSleep sl[eep] skipwhite nextgroup=vimSleepBang,vimSleepArg +syn match vimSleepBang contained "\a\@1<=!" skipwhite nextgroup=vimSleepArg +syn match vimSleepArg contained "\<\%(\d\+\)\=m\=\>" + +" Sort: {{{2 +" ==== +syn match vimSort "\" skipwhite nextgroup=vimSortBang,@vimSortOptions,vimSortPattern,vimCmdSep +syn match vimSortBang contained "\a\@1<=!" skipwhite nextgroup=@vimSortOptions,vimSortPattern,vimCmdSep +syn match vimSortOptionsError contained "\a\+" +syn match vimSortOptions contained "\<[ilur]*[nfxob]\=[ilur]*\>" skipwhite nextgroup=vimSortPattern,vimCmdSep +syn region vimSortPattern contained + \ matchgroup=Delimiter + \ start="\z([^[:space:][:alpha:]|]\)" + \ skip="\\\\\|\\\z1" + \ end="\z1" + \ skipwhite nextgroup=@vimSortOptions,vimCmdSep + \ contains=@vimSubstList + \ oneline + +syn cluster vimSortOptions contains=vimSortOptions,vimSortOptionsError + +" Terminal: {{{2 +" ======== +syn match vimTerminal "\" skipwhite nextgroup=vimTerminalOptions,vimTerminalCommand +syn match vimTerminal +\\ze\s*\n\s*\%(\\\|["#]\\ \)+ skipwhite skipnl nextgroup=vimTerminalOptions,vimTerminalCommand,@vimTerminalContinue + +syn match vimTerminalContinue contained "^\s*\\" skipwhite skipnl nextgroup=@vimTerminalContinue,vimTerminalOptions,vimTerminalCommand contains=vimWhitespace +syn match vimTerminalContinueComment contained '^\s*["#]\\ .*' skipwhite skipnl nextgroup=@vimTerminalContinue,vimTerminalOptions,vimTerminalCommand contains=vimWhitespace +syn cluster vimTerminalContinue contains=vimTerminalContinue,vimTerminalContinueComment + +syn region vimTerminalCommand contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimContinue + +syn region vimTerminalOptions contained + \ start="++" + \ skip=/\s\+++\|\%(\n\|^\)\s*\%(\\\|["#]\\ \)/ + \ end="\s" + \ end="$" + \ skipwhite nextgroup=vimTerminalCommand + \ contains=@vimContinue,vimTerminalOption + \ transparent + +syn match vimTerminalOption contained "++\%(\%(no\)\=close\|open\|curwin\|hidden\|norestore\|shell\)\>" +syn match vimTerminalOption contained "++kill=" nextgroup=vimTerminalKillOptionArg +syn match vimTerminalOption contained "++\%(rows\|cols\)=" nextgroup=vimTerminalSizeOptionArg +syn match vimTerminalOption contained "++eof=" nextgroup=vimTerminalEofOptionArg +syn match vimTerminalOption contained "++type=" nextgroup=vimTerminalTypeOptionArg +syn match vimTerminalOption contained "++api=" nextgroup=vimTerminalApiOptionArg + +syn match vimTerminalApiOptionArg contained "\<\S\+\>" +syn match vimTerminalEofOptionArg contained "\<\S\+\>" +syn match vimTerminalSizeOptionArg contained "\<\d\+\>" +syn keyword vimTerminalKillOptionArg contained term hup quit int kill +syn match vimTerminalKillOptionArg contained "\<\d\+\>" +syn keyword vimTerminalTypeOptionArg contained conpty winpty + +" Uniq: {{{2 +" ==== +syn match vimUniq "\" skipwhite nextgroup=vimUniqBang,@vimUniqOptions,vimUniqPattern,vimCmdSep +syn match vimUniqBang contained "\a\@1<=!" skipwhite nextgroup=@vimUniqOptions,vimUniqPattern,vimCmdSep +syn match vimUniqOptionsError contained "\a\+" +syn match vimUniqOptions contained "\<[ilur]*\>" skipwhite nextgroup=vimUniqPattern,vimCmdSep +syn region vimUniqPattern contained + \ matchgroup=Delimiter + \ start="\z([^[:space:][:alpha:]|]\)" + \ skip="\\\\\|\\\z1" + \ end="\z1" + \ skipwhite nextgroup=@vimUniqOptions,vimCmdSep + \ contains=@vimSubstList + \ oneline + +syn cluster vimUniqOptions contains=vimUniqOptions,vimUniqOptionsError + +" Wincmd: {{{2 +" ====== +syn match vimWincmd "\" skipwhite nextgroup=vimWincmdArg +" TODO: consider extracting this list from the help file +syn match vimWincmdArg contained + \ "\<[sSvnqojkhlwWtbpPrRxKJHLTfFz]\>\|[\^:=\-+_<>|\]}]\|\" + \ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment + +" only handles oneline assignments +Vim9 syn match vimWincmd "\s\=\\ze\s\+=\s*\%([#|]\|$\)" skipwhite nextgroup=vimWincmdArg + +" Syntax: {{{2 +"======= +syn region vimGroupList contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + "\ need to consume the whitespace + \ end="\s"he=e-1 + \ end="$" + \ contains=@vimGroupListContinue,vimGroupSpecial,vimGroupListContinueComma +syn keyword vimGroupSpecial contained ALL ALLBUT CONTAINED TOP +syn match vimGroupListComma contained "," +syn match vimGroupListContinueComma contained "\s\+,\s*\|,\s\+" contains=vimGroupListComma +syn match vimGroupListContinueComma contained "\s*,\s*\%(\n\s*\%(\\\s\+\|["#]\\ .*\)\)\+" contains=@vimGroupListContinue,vimGroupListComma + +syn match vimGroupListEquals contained "=" skipwhite skipnl nextgroup=vimGroupListContinueStart,vimGroupList +" the first continuation line does not terminate the list at whitepace after \ +syn match vimGroupListContinueStart contained "^\%(\s*["#]\\ .*\n\)*\s*\\\s\+" skipwhite nextgroup=vimGroupList contains=@vimGroupListContinue transparent + +syn match vimGroupListContinue contained "^\s*\\" skipwhite skipnl nextgroup=@vimGroupListContinue,vimGroupListContinueComma contains=vimWhitespace +syn match vimGroupListContinueComment contained '^\s*["#]\\ .*' skipwhite skipnl nextgroup=@vimGroupListContinue contains=vimWhitespace +syn cluster vimGroupListContinue contains=vimGroupListContinue,vimGroupListContinueComment + +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynerror") + syn match vimSynError contained "\i\+" +endif +syn match vimSynContains contained "\" skipwhite nextgroup=vimGroupListEquals +syn match vimSynContainedin contained "\" skipwhite nextgroup=vimGroupListEquals +syn match vimSynNextgroup contained "\" skipwhite nextgroup=vimGroupListEquals +if has("conceal") + " no whitespace allowed after '=' + syn match vimSynCchar contained "\" contains=vimCommand skipwhite nextgroup=vimSynType,@vimComment +syn cluster vimFunctionBodyList add=vimSyntax + +" Syntax: case {{{2 +syn keyword vimSynType contained case skipwhite nextgroup=vimSynCase,vimSynCaseError +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncaseerror") + syn match vimSynCaseError contained "\i\+" +endif +syn keyword vimSynCase contained ignore match + +" Syntax: clear {{{2 +syn keyword vimSynType contained clear + +" Syntax: cluster {{{2 +syn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName +syn region vimClusterName contained keepend matchgroup=vimGroupName start="\h\w*\>" skip=+\\\\\|\\\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="$\||" contains=@vimContinue,vimGroupAdd,vimGroupRem,vimSynContains,vimSynError +syn match vimGroupAdd contained "\" skipwhite nextgroup=vimGroupListEquals +syn match vimGroupRem contained "\" skipwhite nextgroup=vimGroupListEquals + +" Syntax: conceal {{{2 +syn match vimSynType contained "\" skipwhite nextgroup=vimSynConceal,vimSynConcealError +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynconcealerror") + syn match vimSynConcealError contained "\i\+" +endif +syn keyword vimSynConceal contained on off + +" Syntax: foldlevel {{{2 +syn keyword vimSynType contained foldlevel skipwhite nextgroup=vimSynFoldlevel,vimSynFoldlevelError +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynfoldlevelerror") + syn match vimSynFoldlevelError contained "\i\+" +endif +syn keyword vimSynFoldlevel contained start minimum + +" Syntax: iskeyword {{{2 +syn keyword vimSynType contained iskeyword skipwhite nextgroup=vimSynIskeyword +syn keyword vimSynIskeyword contained clear +syn match vimSynIskeyword contained "\S\+" contains=vimSynIskeywordSep +syn match vimSynIskeywordSep contained "," + +" Syntax: include {{{2 +syn keyword vimSynType contained include skipwhite nextgroup=vimSynIncludeCluster +syn match vimSynIncludeCluster contained "@[_a-zA-Z0-9]\+\>" + +" Syntax: keyword {{{2 +syn cluster vimSynKeyGroup contains=@vimContinue,vimSynCchar,vimSynNextgroup,vimSynKeyOpt,vimSynContainedin +syn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion +syn region vimSynKeyRegion contained keepend matchgroup=vimGroupName start="\h\w*\>" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|\|$" contains=@vimSynKeyGroup +syn match vimSynKeyOpt contained "\%#=1\<\%(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>" + +" Syntax: match {{{2 +syn cluster vimSynMtchGroup contains=@vimContinue,vimSynCchar,vimSynContains,vimSynContainedin,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation,vimMtchComment +syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion +syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\h\w*\>" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|\|$" contains=@vimSynMtchGroup +syn match vimSynMtchOpt contained "\%#=1\<\%(conceal\|transparent\|contained\|excludenl\|keepend\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" + +" Syntax: off and on {{{2 +syn keyword vimSynType contained enable list manual off on reset + +" Syntax: region {{{2 +syn cluster vimSynRegPatGroup contains=@vimContinue,vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation +syn cluster vimSynRegGroup contains=@vimContinue,vimSynCchar,vimSynContains,vimSynContainedin,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp +syn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion +syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\h\w*" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|\|$" contains=@vimSynRegGroup +syn match vimSynRegOpt contained "\%#=1\<\%(conceal\%(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>" +syn match vimSynReg contained "\<\%(start\|skip\|end\)=" nextgroup=vimSynRegPat +syn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup +syn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip=/\\\\\|\\\z1\|\n\s*\%(\\\|"\\ \)/ end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg +syn match vimSynPatMod contained "\%#=1\%(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\%([-+]\d\+\)\=" +syn match vimSynPatMod contained "\%#=1\%(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\%([-+]\d\+\)\=," nextgroup=vimSynPatMod +syn match vimSynPatMod contained "lc=\d\+" +syn match vimSynPatMod contained "lc=\d\+," nextgroup=vimSynPatMod +syn region vimSynPatRange contained start="\[" skip="\\\\\|\\]" end="]" +syn match vimSynNotPatRange contained "\\\\\|\\\[" +syn match vimMtchComment contained '"[^"]\+$' + +" Syntax: spell {{{2 +syn keyword vimSynType contained spell skipwhite nextgroup=vimSynSpell,vimSynSpellError +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynspellerror") + syn match vimSynSpellError contained "\i\+" +endif +syn keyword vimSynSpell contained default notoplevel toplevel + +" Syntax: sync {{{2 +" ============ +syn keyword vimSynType contained sync skipwhite nextgroup=vimSyncClear,vimSyncMatch,vimSyncError,vimSyncRegion,vimSyncArgs +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncerror") + syn match vimSyncError contained "\i\+" +endif + +syn region vimSyncArgs contained start="\S" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|\|$" contains=vimSyncLines,vimSyncLinebreak,vimSyncLinecont,vimSyncFromstart,vimSyncCcomment + +syn keyword vimSyncCcomment contained ccomment skipwhite nextgroup=vimGroupName +syn keyword vimSyncClear contained clear skipwhite nextgroup=vimSyncGroupName +syn keyword vimSyncFromstart contained fromstart +syn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName +syn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynRegion +syn match vimSyncLinebreak contained "\" skipwhite nextgroup=vimSyncKey +syn match vimSyncKey contained "\" skipwhite nextgroup=vimSyncGroup +syn match vimSyncKey contained "\" skipwhite nextgroup=vimSyncGroup +syn match vimSyncGroup contained "\<\h\w*\>" skipwhite nextgroup=vimSynRegPat,vimSyncNone +syn keyword vimSyncNone contained NONE + +" Syntime: {{{2 +" ======= +syn keyword vimSyntimeArg contained on off clear report skipwhite nextgroup=vimComment,vim9Comment,vimCmdSep +syn keyword vimSyntime synti[me] skipwhite nextgroup=vimSyntimeArg +" Additional IsCommand: here by reasons of precedence {{{2 +" ==================== +syn match vimIsCommand "\s*\a\+" transparent contains=vimCommand,vimNotation + +" Highlighting: {{{2 +" ============ +syn cluster vimHighlightCluster contains=vimHiLink,vimHiClear,vimHiKeyList,@vimComment +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimhictermerror") + syn match vimHiCtermError contained "\D\i*" +endif +syn match vimHighlight "\" skipwhite nextgroup=vimHiBang,@vimHighlightCluster +syn match vimHiBang contained "\a\@1<=!" skipwhite nextgroup=@vimHighlightCluster + +syn case ignore +" Conceal is a generated low-priority match +syn match vimHiGroup contained "\%(\\)\@!\i\+" +syn keyword vimHiNone contained NONE +syn keyword vimHiAttrib contained none bold inverse italic nocombine reverse standout strikethrough underline undercurl underdashed underdotted underdouble +syn keyword vimFgBgAttrib contained none bg background fg foreground +syn case match +syn match vimHiAttribList contained "\i\+" contains=vimHiAttrib +syn match vimHiAttribList contained "\i\+,"he=e-1 contains=vimHiAttrib nextgroup=vimHiAttribList +syn case ignore +syn keyword vimHiCtermColor contained black blue brown cyan darkblue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey grey40 grey50 grey90 lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred lightyellow magenta red seagreen white yellow +syn match vimHiCtermColor contained "\" +syn case match + +syn match vimHiFontname contained "[a-zA-Z\-*]\+" +syn match vimHiGuiFontname contained "'[a-zA-Z\-* ]\+'" +syn match vimHiGuiRgb contained "#\x\{6}" + +" Highlighting: hi group key=arg ... {{{2 +syn cluster vimHiCluster contains=vimGroup,vimHLGroup,vimHiGroup,vimHiNone,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiCtermul,vimHiCtermfont,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation,vimComment,vim9comment +syn region vimHiKeyList contained start="\i\+" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|" excludenl end="$" contains=@vimContinue,@vimHiCluster +if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimhikeyerror") + syn match vimHiKeyError contained "\i\+="he=e-1 +endif +syn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList +syn match vimHiStartStop contained "\c\%(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption +syn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList +syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError +syn match vimHiCtermul contained "\cctermul="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError +syn match vimHiCtermfont contained "\cctermfont="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError +syn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList +syn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname +syn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib +syn match vimHiTermcap contained "\S\+" contains=vimNotation +syn match vimHiNmbr contained '\d\+' + +" Highlight: clear {{{2 +syn keyword vimHiClear contained clear skipwhite nextgroup=vimGroup,vimHLGroup,vimHiGroup + +" Highlight: link {{{2 +" see tst24 (hi def vs hi) (Jul 06, 2018) +"syn region vimHiLink contained oneline matchgroup=vimCommand start="\(\\|\\)" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation +" TODO: simplify and allow line continuations --djk +syn region vimHiLink contained matchgroup=Type start="\%(\\|\\)" skip=+\\\\\|\\|\|\n\s*\%(\\\|"\\ \)+ matchgroup=vimCmdSep end="|" excludenl end="$" contains=@vimContinue,@vimHiCluster + +" Control Characters: {{{2 +" ================== +syn match vimCtrlChar "[- -]" + +" Embedded Scripts: {{{2 +" ================ +" perl,ruby : Benoit Cerrina +" python,tcl : Johannes Zellner +" mzscheme, lua : Charles Campbell + +" Allows users to specify the type of embedded script highlighting +" they want: (lua/mzscheme/perl/python/ruby/tcl support) +" g:vimsyn_embed == 0 : don't embed any scripts +" g:vimsyn_embed =~# 'l' : embed Lua +" g:vimsyn_embed =~# 'm' : embed MzScheme +" g:vimsyn_embed =~# 'p' : embed Perl +" g:vimsyn_embed =~# 'P' : embed Python +" g:vimsyn_embed =~# 'r' : embed Ruby +" g:vimsyn_embed =~# 't' : embed Tcl + +let s:interfaces = get(g:, "vimsyn_embed", "lP") + +" [-- lua --] {{{3 +if s:interfaces =~# 'l' + syn include @vimLuaScript syntax/lua.vim + unlet b:current_syntax +endif + +syn keyword vimLua lua skipwhite nextgroup=vimLuaHeredoc,vimLuaStatement +syn keyword vimLua luado skipwhite nextgroup=vimLuaStatement +syn keyword vimLua luafile + +syn region vimLuaStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimLuaScript,@vimContinue +VimFoldl syn region vimLuaHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimLuaScript +VimFoldl syn region vimLuaHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimLuaScript +VimFoldl syn region vimLuaHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimLuaScript +VimFoldl syn region vimLuaHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimLuaScript + +" [-- mzscheme --] {{{3 +if s:interfaces =~# 'm' + let s:iskKeep = &l:isk + syn include @vimMzSchemeScript syntax/scheme.vim + unlet b:current_syntax + let &l:isk = s:iskKeep +endif + +syn keyword vimMzScheme mz[scheme] skipwhite nextgroup=vimMzSchemeHeredoc,vimMzSchemeStatement +syn keyword vimMzScheme mzf[ile] + +syn region vimMzSchemeStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimMzSchemeScript,@vimContinue +VimFoldm syn region vimMzSchemeHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimMzSchemeScript +VimFoldm syn region vimMzSchemeHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimMzSchemeScript +VimFoldm syn region vimMzSchemeHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimMzSchemeScript +VimFoldm syn region vimMzSchemeHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimMzSchemeScript + +" [-- perl --] {{{3 +if s:interfaces =~# 'p' + syn include @vimPerlScript syntax/perl.vim + unlet b:current_syntax +endif + +syn keyword vimPerl pe[rl] skipwhite nextgroup=vimPerlHeredoc,vimPerlStatement +syn keyword vimPerl perld[o] skipwhite nextgroup=vimPerlStatement + +syn region vimPerlStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimPerlScript,@vimContinue +VimFoldp syn region vimPerlHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ contains=@vimPerlScript +VimFoldp syn region vimPerlHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimPerlScript +VimFoldp syn region vimPerlHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimPerlScript +VimFoldp syn region vimPerlHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimPerlScript + +" [-- python --] {{{3 +if s:interfaces =~# 'P' + syn include @vimPythonScript syntax/python2.vim + unlet b:current_syntax +endif + +syn keyword vimPython py[thon] skipwhite nextgroup=vimPythonHeredoc,vimPythonStatement +syn keyword vimPython pydo skipwhite nextgroup=vimPythonStatement +syn keyword vimPython pyfile + +syn region vimPythonStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimPythonScript,@vimContinue +VimFoldP syn region vimPythonHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimPythonScript +VimFoldP syn region vimPythonHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimPythonScript +VimFoldP syn region vimPythonHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimPythonScript +VimFoldP syn region vimPythonHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimPythonScript + +" [-- python3 --] {{{3 +if s:interfaces =~# 'P' + syn include @vimPython3Script syntax/python.vim + unlet b:current_syntax +endif + +syn keyword vimPython3 python3 py3 skipwhite nextgroup=vimPython3Heredoc,vimPython3Statement +syn keyword vimPython3 py3do skipwhite nextgroup=vimPython3Statement +syn keyword vimPython3 py3file + +syn region vimPython3Statement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimPython3Script,@vimContinue +VimFoldP syn region vimPython3Heredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimPython3Script +VimFoldP syn region vimPython3Heredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimPython3Script +VimFoldP syn region vimPython3Heredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimPython3Script +VimFoldP syn region vimPython3Heredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimPython3Script + +" [-- pythonx --] {{{3 +if s:interfaces =~# 'P' + if &pyxversion == 2 + syn cluster vimPythonXScript contains=@vimPythonScript + else + syn cluster vimPythonXScript contains=@vimPython3Script + endif +endif + +syn keyword vimPythonX pythonx pyx skipwhite nextgroup=vimPythonXHeredoc,vimPythonXStatement +syn keyword vimPythonX pyxdo skipwhite nextgroup=vimPythonXStatement +syn keyword vimPythonX pyxfile + +syn region vimPythonXStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimPythonXScript,@vimContinue +VimFoldP syn region vimPythonXHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimPythonXScript +VimFoldP syn region vimPythonXHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimPythonXScript +VimFoldP syn region vimPythonXHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimPythonXScript +VimFoldP syn region vimPythonXHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimPythonXScript + +" [-- ruby --] {{{3 +if s:interfaces =~# 'r' + syn include @vimRubyScript syntax/ruby.vim + unlet b:current_syntax +endif + +syn keyword vimRuby rub[y] skipwhite nextgroup=vimRubyHeredoc,vimRubyStatement +syn keyword vimRuby rubyd[o] skipwhite nextgroup=vimRubyStatement +syn keyword vimRuby rubyf[ile] + +syn region vimRubyStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimRubyScript,@vimContinue +VimFoldr syn region vimRubyHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimRubyScript +VimFoldr syn region vimRubyHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimRubyScript +VimFoldr syn region vimRubyHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimRubyScript +VimFoldr syn region vimRubyHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\.$+ + \ contains=@vimRubyScript + +" [-- tcl --] {{{3 +if s:interfaces =~# 't' + syn include @vimTclScript syntax/tcl.vim + unlet b:current_syntax +endif + +syn keyword vimTcl tcl skipwhite nextgroup=vimTclHeredoc,vimTclStatement +syn keyword vimTcl tcld[o] skipwhite nextgroup=vimTclStatement +syn keyword vimTcl tclf[ile] +syn region vimTclStatement contained + \ start="\S" + \ skip=+\n\s*\%(\\\|["#]\\ \)+ + \ end="$" + \ contains=@vimTclScript,@vimContinue +VimFoldt syn region vimTclHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\s*\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1$+ + \ contains=@vimTclScript +VimFoldt syn region vimTclHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+<<\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\.$+ + \ contains=@vimTclScript +VimFoldt syn region vimTclHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\s\+\z(\S\+\)\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\z2$+ + \ contains=@vimTclScript +VimFoldt syn region vimTclHeredoc contained + \ matchgroup=vimScriptHeredocStart + \ start=+\%(^\z(\s*\)\S.*\)\@<=<<\s*trim\ze\s*$+ + \ matchgroup=vimScriptHeredocStop + \ end=+^\z1\=\.$+ + \ contains=@vimTclScript + +unlet s:interfaces +" Function Call Highlighting: {{{2 +" (following Gautam Iyer's suggestion) +" ========================== +syn match vimFunc contained "\<\l\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vimFuncName +syn match vimUserFunc contained "\.\@1<=\l\w*\ze\%(\s*(\|<.*>(\)" skipwhite nextgroup=vimOperParen,vim9TypeArgs +syn match vimUserFunc contained "\<\%([[:upper:]_]\|\%(\h\w*\.\)\+\h\)\w*\ze\%(\s*(\|<.*>(\)" skipwhite nextgroup=vimOperParen,vim9TypeArgs contains=vim9MethodName,vim9Super,vim9This +syn match vimUserFunc contained "\<\%(g:\)\=\%(\h\w*#\)\+\h\w*\ze\%(\s*(\|<.*>(\)" skipwhite nextgroup=vimOperParen contains=vimVarScope +syn match vimUserFunc contained "\%(\<[sgbwtlav]:\|<[sS][iI][dD]>\)\%(\h\w*\.\)*\h\w*\ze\%(\s*(\|<.*>(\)" skipwhite nextgroup=vimOperParen,vim9TypeArgs contains=vimVarScope,vimNotation + +Vim9 syn match vim9UserFunc "^\s*\zs\%([sgbwtv]:\|<[sS][iI][dD]>\)\=\%(\h\w*[.#]\)*\h\w*\ze[<(]" skipwhite nextgroup=vimOperParen,vim9TypeArgs contains=vimVarScope,vimNotation,vim9MethodName,vim9Super,vim9This +Vim9 syn match vim9Func "^\s*\zs\l\w*\ze(" skipwhite nextgroup=vimOperParen contains=vimFuncName + +syn cluster vimFunc contains=vimFunc,vimUserFunc +syn cluster vim9Func contains=vim9Func,vim9UserFunc + +syn region vim9TypeArgs contained + \ matchgroup=Delimiter + \ start="<\ze\a" + \ end=">" + \ nextgroup=vimOperParen + \ contains=@vimType + \ oneline + +" Beginners - Patterns that involve ^ {{{2 +" ========= +Vim9 syn region vim9LineComment start=+^[ \t:]*\zs#.*$+ skip=+\n\s*\%(\\\|#\\ \)+ end="$" contains=@vimCommentGroup,vimCommentString,vim9CommentTitle extend +VimL syn region vimLineComment start=+^[ \t:]*\zs".*$+ skip=+\n\s*\%(\\\|"\\ \)+ end="$" contains=@vimCommentGroup,vimCommentString,vimCommentTitle extend + +syn match vimCommentTitle '"\s*\%([sS]:\|\h\w*#\)\=\u\w*\(\s\+\u\w*\)*:'hs=s+1 contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup +syn match vim9CommentTitle '#\s*\%([sS]:\|\h\w*#\)\=\%([A-DF-Z]\w*\|E\%(\d\{1,4}\>\)\@!\w*\)\(\s\+\u\w*\)*:'hs=s+1 contained contains=vim9CommentTitleLeader,vimTodo,@vimCommentGroup + +" allowed anywhere in the file +if !s:vim9script + syn match vimShebangError "^\s*\zs#!.*" display +endif +syn match vimShebang "\%^#!.*" display + +syn match vimContinue "^\s*\zs\\" +syn match vimContinueComment '^\s*\zs["#]\\ .*' extend +syn match vim9ContinueComment "^\s*\zs#\\ .*" extend +syn cluster vimContinue contains=vimContinue,vimContinueComment +syn cluster vim9Continue contains=vimContinue,vim9ContinueComment + +syn region vimString start='^\s*\\"' end='"' oneline keepend contains=@vimStringGroup,vimContinue +syn region vimString start="^\s*\\'" end="'" oneline keepend contains=vimQuoteEscape,vimContinue + +syn match vimCommentTitleLeader '"\s\+'ms=s+1 contained +syn match vim9CommentTitleLeader '#\s\+'ms=s+1 contained + +" Searches And Globals: {{{2 +" ==================== +VimL syn match vimSearch '^\s*[/?].*' contains=vimSearchDelim +syn match vimSearchDelim '^\s*\zs[/?]\|[/?]$' contained +Vim9 syn match vim9Search '^\s*:[/?].*' contains=vim9SearchDelim +syn match vim9SearchDelim '^\s*\zs:[/?]\|[/?]$' contained contains=vimCmdSep +syn region vimGlobal matchgroup=Statement start='\\s\+[eE][nN][dD]" + +" ==================== +" Highlighting Settings {{{2 +" ==================== + +if !exists("skip_vim_syntax_inits") + if !exists("g:vimsyn_noerror") + hi def link vimBehaveError vimError + hi def link vimCollClassErr vimError + hi def link vimErrSetting vimError + hi def link vimFTError vimError + hi def link vimFunctionError vimError + hi def link vimFunc vimError + hi def link vim9Func vimError + hi def link vimHiAttribList vimError + hi def link vimHiCtermError vimError + hi def link vimHiKeyError vimError + hi def link vimMapModErr vimError + hi def link vimMarkArgError vimError + hi def link vimShebangError vimError + hi def link vimSortOptionsError Error + hi def link vimSubstFlagErr vimError + hi def link vimSynCaseError vimError + hi def link vimSyncError vimError + hi def link vimSynConcealError vimError + hi def link vimSynError vimError + hi def link vimSynFoldlevelError vimError + hi def link vimSynIskeywordError vimError + hi def link vimSynSpellError vimError + hi def link vimBufnrWarn vimWarn + + hi def link vim9TypeAliasError vimError + endif + + hi def link vimAbb vimCommand + hi def link vimAddress vimMark + hi def link vimAt vimCommand + hi def link vimAtArg Special + hi def link vimAugroupBang vimBang + hi def link vimAugroupError vimError + hi def link vimAugroupKey vimCommand + hi def link vimAutocmd vimCommand + hi def link vimAutocmdBang vimBang + hi def link vimAutocmdPatternEscape Special + hi def link vimAutoEvent Type + hi def link vimAutoEventGlob Type + hi def link vimAutocmdBufferPattern Special + hi def link vimAutocmdMod Special + hi def link vimAutocmdPatternSep vimSep + hi def link vimBang vimOper + hi def link vimBehaveBang vimBang + hi def link vimBehaveModel vimBehave + hi def link vimBehave vimCommand + hi def link vimBracket Delimiter + hi def link vimBreakaddFunc Special + hi def link vimBreakaddFile Special + hi def link vimBreakaddHere Special + hi def link vimBreakaddExpr Special + hi def link vimBreakpointGlob Special + hi def link vimBreakadd vimCommand + hi def link vimBreakdel vimCommand + hi def link vimBreaklist vimCommand + hi def link vimCall vimCommand + hi def link vimCatch vimCommand + hi def link vimCd vimCommand + hi def link vimCdBang vimBang + hi def link vimCmplxRepeat SpecialChar + hi def link vimCommand Statement + hi def link vimCommandModifier vimCommand + hi def link vimCommandModifierBang vimBang + hi def link vimComment Comment + hi def link vimCommentError vimError + hi def link vimCommentString vimString + hi def link vimCommentTitle PreProc + hi def link vimCondHL vimCommand + hi def link vimConst vimCommand + hi def link vimContinue Special + hi def link vimContinueComment vimComment + hi def link vimContinueString vimString + hi def link vimCount Number + hi def link vimCtrlChar SpecialChar + hi def link vimDebug vimCommand + hi def link vimDebuggreedy vimCommand + hi def link vimDef vimCommand + hi def link vimDefBang vimBang + hi def link vimDefComment vim9Comment + hi def link vimDefer vimCommand + hi def link vimDefParam vimVar + hi def link vimDelcommand vimCommand + hi def link vimDelcommandAttr vimUserCmdAttr + hi def link vimDelfunction vimCommand + hi def link vimDelfunctionBang vimBang + hi def link vimDoautocmd vimCommand + hi def link vimDoautocmdMod Special + hi def link vimDoCommand vimCommand + hi def link vimDoCommandBang vimBang + hi def link vimEcho vimCommand + hi def link vimEchohlNone vimGroup + hi def link vimEchohl vimCommand + hi def link vimElse vimCommand + hi def link vimElseIfErr Error + hi def link vimEndfunction vimCommand + hi def link vimEnddef vimCommand + hi def link vimEndif vimCommand + hi def link vimEnvvar PreProc + hi def link vimError Error + hi def link vimEscape Special + hi def link vimEval vimCommand + hi def link vimExFilter vimCommand + hi def link vimExFilterBang vimBang + hi def link vimExMark vimCommand + hi def link vimFBVar vimVar + hi def link vimFgBgAttrib vimHiAttrib + hi def link vimFuncEcho vimCommand + hi def link vimFor vimCommand + hi def link vimForInContinue vimContinue + hi def link vimForInContinueComment vimContinueComment + hi def link vimFTCmd vimCommand + hi def link vimFTOption vimSynType + hi def link vimFunction vimCommand + hi def link vimFunctionBang vimBang + hi def link vimFunctionComment vimComment + hi def link vimFuncName Function + hi def link vimFunctionMod Special + hi def link vimFunctionParam vimVar + hi def link vimFunctionParamEquals vimOper + hi def link vimFunctionScope vimVarScope + hi def link vimFunctionSID vimNotation + hi def link vimGrep vimCommand + hi def link vimGrepadd vimCommand + hi def link vimGrepBang vimBang + hi def link vimGroup Type + hi def link vimGroupAdd vimSynOption + hi def link vimGroupListEquals vimSynOption + hi def link vimGroupListContinue vimContinue + hi def link vimGroupListContinueComment vimContinueComment + hi def link vimGroupName Normal + hi def link vimGroupRem vimSynOption + hi def link vimGroupSpecial Special + hi def link vimHelp vimCommand + hi def link vimHelpBang vimBang + hi def link vimHelpgrep vimCommand + hi def link vimHiAttrib PreProc + hi def link vimHiBang vimBang + hi def link vimHiClear Type + hi def link vimHiCtermColor Constant + hi def link vimHiCtermFgBg vimHiTerm + hi def link vimHiCtermfont vimHiTerm + hi def link vimHiCtermul vimHiTerm + hi def link vimHiCTerm vimHiTerm + hi def link vimHighlight vimCommand + hi def link vimHiGroup vimGroupName + hi def link vimHiGuiFgBg vimHiTerm + hi def link vimHiGuiFont vimHiTerm + hi def link vimHiGuiRgb vimNumber + hi def link vimHiGui vimHiTerm + hi def link vimHiNmbr Number + hi def link vimHiNone vimGroup + hi def link vimHiStartStop vimHiTerm + hi def link vimHiTerm Type + hi def link vimHLGroup vimGroup + hi def link vimHistory vimCommand + hi def link vimHistoryName Special + hi def link vimImport vimCommand + hi def link vimImportAutoload Special + hi def link vimImportAs vimImport + hi def link vimInsert vimString + hi def link vim9KeymapLineComment vimKeymapLineComment + hi def link vimKeymapLineComment vimComment + hi def link vimKeymapTailComment vimComment + hi def link vimLambdaBrace Delimiter + hi def link vimLambdaOperator vimOper + hi def link vimLanguage vimCommand + hi def link vimLanguageCategory Special + hi def link vimLanguageNameReserved Constant + hi def link vimLet vimCommand + hi def link vimLetHeredoc vimString + hi def link vimLetHeredocStart Special + hi def link vimLetHeredocStop Special + hi def link vimLetRegister vimRegister + hi def link vimLineComment vimComment + hi def link vimLua vimCommand + hi def link vimMake vimCommand + hi def link vimMakeadd vimCommand + hi def link vimMakeBang vimBang + hi def link vimMapBang vimBang + hi def link vimMapLeader vimBracket + hi def link vimMapLeaderKey vimNotation + hi def link vimMapModKey vimFunctionSID + hi def link vimMapMod vimBracket + hi def link vimMap vimCommand + hi def link vimMark Number + hi def link vimMarkNumber vimNumber + hi def link vimMatch vimCommand + hi def link vimMatchGroup vimGroup + hi def link vimMatchNone vimGroup + hi def link vimMenuBang vimBang + hi def link vimMenuClear Special + hi def link vimMenuMod vimMapMod + hi def link vimMenuName PreProc + hi def link vimMenu vimCommand + hi def link vimMenuNotation vimNotation + hi def link vimMenuPriority Number + hi def link vimMenuStatus Special + hi def link vimMenutranslateComment vimComment + hi def link vim9MethodName vimFuncName + hi def link vimMtchComment vimComment + hi def link vimMzScheme vimCommand + hi def link vimNonText NonText + hi def link vimNormal vimCommand + hi def link vimNotation Special + hi def link vimNotFunc vimCommand + hi def link vimNotPatSep vimString + hi def link vimNumber Number + hi def link vimOperError Error + hi def link vimOper Operator + hi def link vimOperContinue vimContinue + hi def link vimOperContinueComment vimContinueComment + hi def link vimOption PreProc + hi def link vimOptionVar Identifier + hi def link vimOptionVarName Identifier + hi def link vimParenSep Delimiter + hi def link vimPatSepErr vimError + hi def link vimPatSepR vimPatSep + hi def link vimPatSep SpecialChar + hi def link vimPatSepZone vimString + hi def link vimPatSepZ vimPatSep + hi def link vimPattern Type + hi def link vimPerl vimCommand + hi def link vimPlainMark vimMark + hi def link vimProfile vimCommand + hi def link vimProfileArg vimSpecial + hi def link vimProfileBang vimBang + hi def link vimProfdel vimCommand + hi def link vimProfdelArg vimSpecial + hi def link vimPrompt vimCommand + hi def link vimPython vimCommand + hi def link vimPython3 vimCommand + hi def link vimPythonX vimCommand + hi def link vimQuoteEscape vimEscape + hi def link vimRedir vimCommand + hi def link vimRedirBang vimBang + hi def link vimRedirFileOperator vimOper + hi def link vimRedirRegisterOperator vimOper + hi def link vimRedirVariableOperator vimOper + hi def link vimRedirEnd Special + hi def link vimRedirRegister vimRegister + hi def link vimRegister SpecialChar + hi def link vimRuby vimCommand + hi def link vimScriptDelim Comment + hi def link vimScriptHeredocStart vimLetHeredocStart + hi def link vimScriptHeredocStop vimLetHeredocStop + hi def link vimSearch vimString + hi def link vimSearchDelim Delimiter + hi def link vimSep Delimiter + hi def link vimSet vimCommand + hi def link vimSetAll vimOption + hi def link vimSetBang vimBang + hi def link vimSetComment vimComment + hi def link vimSetMod vimOption + hi def link vimSetSep vimSep + hi def link vimSetTermcap vimOption + hi def link vimShebang PreProc + hi def link vimSleep vimCommand + hi def link vimSleepArg Constant + hi def link vimSleepBang vimBang + hi def link vimSort vimCommand + hi def link vimSortBang vimBang + hi def link vimSortOptions Special + hi def link vimSpecFile Identifier + hi def link vimSpecFileMod vimSpecFile + hi def link vimSpecial Type + hi def link vimStringCont vimString + hi def link vimString String + hi def link vimStringEnd vimString + hi def link vimStringInterpolationBrace vimEscape + hi def link vimSubst1 vimSubst + hi def link vimSubstCount Number + hi def link vimSubstDelim Delimiter + hi def link vimSubstFlags Special + hi def link vimSubstSubstr SpecialChar + hi def link vimSubstTwoBS vimString + hi def link vimSubst vimCommand + hi def link vimSynCase Type + hi def link vimSyncCcomment Type + hi def link vimSynCchar vimSynOption + hi def link vimSynCcharValue Character + hi def link vimSyncClear Type + hi def link vimSyncFromstart Type + hi def link vimSyncGroup vimGroupName + hi def link vimSyncGroupName vimGroupName + hi def link vimSyncKey Type + hi def link vimSyncLinebreak Type + hi def link vimSyncLinecont Type + hi def link vimSyncLines Type + hi def link vimSyncMatch Type + hi def link vimSyncNone Type + hi def link vimSynConceal Type + hi def link vimSynContains vimSynOption + hi def link vimSyncRegion Type + hi def link vimSynFoldlevel Type + hi def link vimSynIskeyword Type + hi def link vimSynIskeywordSep Delimiter + hi def link vimSynContainedin vimSynContains + hi def link vimSynKeyOpt vimSynOption + hi def link vimSynMtchGrp vimSynOption + hi def link vimSynMtchOpt vimSynOption + hi def link vimSynNextgroup vimSynOption + hi def link vimSynNotPatRange vimSynRegPat + hi def link vimSynOption Special + hi def link vimSynPatRange vimString + hi def link vimSynReg Type + hi def link vimSynRegOpt vimSynOption + hi def link vimSynRegPat vimString + hi def link vimSynSpell Type + hi def link vimSyntax vimCommand + hi def link vimSynType vimSpecial + hi def link vimSyntime vimCommand + hi def link vimSyntimeArg vimSpecial + hi def link vimTcl vimCommand + hi def link vimTerminal vimCommand + hi def link vimTerminalContinue vimContinue + hi def link vimTerminalContinueComment vimContinueComment + hi def link vimTerminalOption vimSpecial + hi def link vimTerminalKillOptionArg Constant + hi def link vimTerminalSizeOptionArg Constant + hi def link vimTerminalTypeOptionArg Constant + hi def link vimThrow vimCommand + hi def link vimTodo Todo + hi def link vimType Type + hi def link vimTypeAny vimType + hi def link vimTypeObject vimType + hi def link vimTypeObjectBracket vimTypeObject + hi def link vimUniq vimCommand + hi def link vimUniqBang vimBang + hi def link vimUniqOptions Special + hi def link vimUnlet vimCommand + hi def link vimUnletBang vimBang + hi def link vimUnmap vimMap + hi def link vimUserCmd vimCommand + hi def link vimUserCmdAttrAddr vimSpecial + hi def link vimUserCmdAttrComplete vimSpecial + hi def link vimUserCmdAttrCompleteFunc vimVar + hi def link vimUserCmdAttrNargs vimSpecial + hi def link vimUserCmdAttrRange vimSpecial + hi def link vimUserCmdAttrKey vimUserCmdAttr + hi def link vimUserCmdAttr Special + hi def link vimUserCmdAttrError Error + hi def link vimUserCmdError Error + hi def link vimUserCmdKey vimCommand + hi def link vimUserFunc Normal + hi def link vimVar Normal + hi def link vimVarScope Identifier + hi def link vimVimgrep vimCommand + hi def link vimVimgrepadd vimCommand + hi def link vimVimgrepBang vimBang + hi def link vimVimgrepFlags Special + hi def link vimVimVar Identifier + hi def link vimVimVarName Identifier + hi def link vimWarn WarningMsg + hi def link vimWildcard Special + hi def link vimWildcardBraceComma vimWildcard + hi def link vimWildcardBracket vimWildcard + hi def link vimWildcardBracketCaret vimWildcard + hi def link vimWildcardBracketCharacter Normal + hi def link vimWildcardBracketCharacter Normal + hi def link vimWildcardBracketCharacterClass vimWildCard + hi def link vimWildcardBracketCollatingSymbol vimWildCard + hi def link vimWildcardBracketEnd vimWildcard + hi def link vimWildcardBracketEquivalenceClass vimWildCard + hi def link vimWildcardBracketEscape vimWildcard + hi def link vimWildcardBracketHyphen vimWildcard + hi def link vimWildcardBracketRightBracket vimWildcardBracketCharacter + hi def link vimWildcardBracketStart vimWildcard + hi def link vimWildcardEscape vimWildcard + hi def link vimWildcardInterval vimWildcard + hi def link vimWildcardQuestion vimWildcard + hi def link vimWildcardStar vimWildcard + hi def link vimWinCmd vimCommand + + hi def link vim9Abstract vimCommand + hi def link vim9Boolean Boolean + hi def link vim9Class vimCommand + hi def link vim9Comment Comment + hi def link vim9CommentError vimError + hi def link vim9CommentTitle PreProc + hi def link vim9ConstructorDefParam vimVar + hi def link vim9Const vimCommand + hi def link vim9ContinueComment vimContinueComment + hi def link vim9Enum vimCommand + hi def link vim9EnumImplementedInterfaceComment vim9Comment + hi def link vim9EnumImplements vim9Implements + hi def link vim9EnumNameComment vim9Comment + hi def link vim9EnumNameContinue vimContinue + hi def link vim9EnumNameContinueComment vim9Comment + hi def link vim9EnumValueListCommaComment vim9Comment + hi def link vim9Export vimCommand + hi def link vim9Extends Keyword + hi def link vim9Final vimCommand + hi def link vim9For vimCommand + hi def link vim9ForInComment vim9Comment + hi def link vim9Implements Keyword + hi def link vim9AbstractDef vimCommand + hi def link vim9Interface vimCommand + hi def link vim9LambdaOperator vimOper + hi def link vim9LambdaOperatorComment vim9Comment + hi def link vim9LambdaParen vimParenSep + hi def link vim9LhsRegister vimLetRegister + hi def link vim9LhsVariable vimVar + hi def link vim9LineComment vimComment + hi def link vim9MethodDef vimCommand + hi def link vim9MethodDefComment vimDefComment + hi def link vim9MethodNameError vimFunctionError + hi def link vim9Null Constant + hi def link vim9Public vimCommand + hi def link vim9Search vimString + hi def link vim9SearchDelim Delimiter + hi def link vim9Static vimCommand + hi def link vim9Super Identifier + hi def link vim9This Identifier + hi def link vim9Type vimCommand + hi def link vim9TypeEquals vimOper + hi def link vim9Variable vimVar + hi def link vim9VariableType vimType + hi def link vim9VariableTypeAny vimTypeAny + hi def link vim9VariableTypeObject vimTypeObject + hi def link vim9VariableTypeObjectBracket vimTypeObjectBracket + hi def link vim9Var vimCommand + hi def link vim9Vim9ScriptArg Special + hi def link vim9Vim9Script vimCommand + + hi def link vimCompilerSet vimCommand + hi def link vimSynColor vimCommand + hi def link vimSynLink vimCommand + hi def link vimSynMenu vimCommand + hi def link vimSynMenuPath vimMenuName +endif + +" Current Syntax Variable: {{{2 +let b:current_syntax = "vim" + +" --------------------------------------------------------------------- +" Cleanup: {{{1 +delc Vim9 +delc VimL +delc VimFolda +delc VimFoldc +delc VimFolde +delc VimFoldf +delc VimFoldh +delc VimFoldH +delc VimFoldi +delc VimFoldl +delc VimFoldm +delc VimFoldp +delc VimFoldP +delc VimFoldr +delc VimFoldt +let &cpo = s:keepcpo +unlet s:keepcpo s:vim9script +" vim:ts=18 fdm=marker ft=vim diff --git a/git/usr/share/vim/vim92/syntax/viminfo.vim b/git/usr/share/vim/vim92/syntax/viminfo.vim new file mode 100644 index 0000000000000000000000000000000000000000..06c59766d7105c676fcfbadb58c404d772f11e83 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/viminfo.vim @@ -0,0 +1,49 @@ +" Vim syntax file +" Language: Vim .viminfo file +" Maintainer: The Vim Project +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" The lines that are NOT recognized +syn match viminfoError "^[^\t].*" + +" The one-character one-liners that are recognized +syn match viminfoStatement "^[/&$@:?=%!<]" + +" The two-character one-liners that are recognized +syn match viminfoStatement "^[-'>"]." +syn match viminfoStatement +^"".+ +syn match viminfoStatement "^\~[/&]" +syn match viminfoStatement "^\~[hH]" +syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]" + +syn match viminfoOption "^\*.*=" contains=viminfoOptionName +syn match viminfoOptionName "\*\a*"ms=s+1 contained + +" Comments +syn match viminfoComment "^#.*" + +" New style lines. TODO: highlight numbers and strings. +syn match viminfoNew "^|.*" + +" Define the default highlighting. +" Only used when an item doesn't have highlighting yet +hi def link viminfoComment Comment +hi def link viminfoError Error +hi def link viminfoStatement Statement +hi def link viminfoNew String + +let b:current_syntax = "viminfo" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/vimnormal.vim b/git/usr/share/vim/vim92/syntax/vimnormal.vim new file mode 100644 index 0000000000000000000000000000000000000000..df672c523647bf48d6eacbe4d47bbaa1ad988a5e --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vimnormal.vim @@ -0,0 +1,16 @@ +syn match normalOp /[dcrypoaxv!"#%&.-\/:<>=?@ABCDGHIJKLMNOPQRSUVWXYZgmqstz~iu]/ nextgroup=normalMod +syn match normalMod /m\@BW\[\]`bstweE{}ftFT;,$]/ +syn match normalCount /[0-9]/ +syn region normalSearch start=/[/?]\@<=./ end=/.\@=/ contains=normalKey keepend +syn region normalChange start=/\([cr][wWbBeE()\[\]{}pst]\)\@<=./ end=/.\@=/ contains=normalKey keepend +syn match normalCharSearch /\c[ftr]\@<=\w/ +syn match normalMark /\(f\@'\@!/ + +hi! link normalOp Operator +hi! link normalMod PreProc +hi! link normalObject Structure +hi! link normalCount Number +hi! link normalMark Identifier +hi! link normalKey Special diff --git a/git/usr/share/vim/vim92/syntax/virata.vim b/git/usr/share/vim/vim92/syntax/virata.vim new file mode 100644 index 0000000000000000000000000000000000000000..0ed54fa899c8faeda7b2c776f6321d5b9ed041f5 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/virata.vim @@ -0,0 +1,207 @@ +" Vim syntax file +" Language: Virata AConfig Configuration Script +" Maintainer: Manuel M.H. Stol +" Last Change: 2003 May 11 +" Vim URL: http://www.vim.org/lang.html +" Virata URL: http://www.globespanvirata.com/ + + +" Virata AConfig Configuration Script syntax +" Can be detected by: 1) Extension .hw, .sw, .pkg and .module +" 2) The file name pattern "mk.*\.cfg" +" 3) The string "Virata" in the first 5 lines + + +" Setup Syntax: +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif +" Virata syntax is case insensitive (mostly) +syn case ignore + + + +" Comments: +" Virata comments start with %, but % is not a keyword character +syn region virataComment start="^%" start="\s%"lc=1 keepend end="$" contains=@virataGrpInComments +syn region virataSpclComment start="^%%" start="\s%%"lc=1 keepend end="$" contains=@virataGrpInComments +syn keyword virataInCommentTodo contained TODO FIXME XXX[XXXXX] REVIEW TBD +syn cluster virataGrpInComments contains=virataInCommentTodo +syn cluster virataGrpComments contains=@virataGrpInComments,virataComment,virataSpclComment + + +" Constants: +syn match virataStringError +["]+ +syn region virataString start=+"+ skip=+\(\\\\\|\\"\)+ end=+"+ oneline contains=virataSpclCharError,virataSpclChar,@virataGrpDefSubsts +syn match virataCharacter +'[^']\{-}'+ contains=virataSpclCharError,virataSpclChar +syn match virataSpclChar contained +\\\(x\x\+\|\o\{1,3}\|['\"?\\abefnrtv]\)+ +syn match virataNumberError "\<\d\{-1,}\I\{-1,}\>" +syn match virataNumberError "\<0x\x*\X\x*\>" +syn match virataNumberError "\<\d\+\.\d*\(e[+-]\=\d\+\)\=\>" +syn match virataDecNumber "\<\d\+U\=L\=\>" +syn match virataHexNumber "\<0x\x\+U\=L\=\>" +syn match virataSizeNumber "\<\d\+[BKM]\>"he=e-1 +syn match virataSizeNumber "\<\d\+[KM]B\>"he=e-2 +syn cluster virataGrpNumbers contains=virataNumberError,virataDecNumber,virataHexNumber,virataSizeNumber +syn cluster virataGrpConstants contains=@virataGrpNumbers,virataStringError,virataString,virataCharacter,virataSpclChar + + +" Identifiers: +syn match virataIdentError contained "\<\D\S*\>" +syn match virataIdentifier contained "\<\I\i\{-}\(\-\i\{-1,}\)*\>" contains=@virataGrpDefSubsts +syn match virataFileIdent contained "\F\f*" contains=@virataGrpDefSubsts +syn cluster virataGrpIdents contains=virataIdentifier,virataIdentError +syn cluster virataGrpFileIdents contains=virataFileIdent,virataIdentError + + +" Statements: +syn match virataStatement "^\s*Config\(\(/Kernel\)\=\.\(hs\=\|s\)\)\=\>" +syn match virataStatement "^\s*Config\s\+\I\i\{-}\(\-\i\{-1,}\)*\.\(hs\=\|s\)\>" +syn match virataStatement "^\s*Make\.\I\i\{-}\(\-\i\{-1}\)*\>" skipwhite nextgroup=@virataGrpIdents +syn match virataStatement "^\s*Make\.c\(at\)\=++\s"me=e-1 skipwhite nextgroup=@virataGrpIdents +syn match virataStatement "^\s*\(Architecture\|GetEnv\|Reserved\|\(Un\)\=Define\|Version\)\>" skipwhite nextgroup=@virataGrpIdents +syn match virataStatement "^\s*\(Hardware\|ModuleSource\|\(Release\)\=Path\|Software\)\>" skipwhite nextgroup=@virataGrpFileIdents +syn match virataStatement "^\s*\(DefaultPri\|Hydrogen\)\>" skipwhite nextgroup=virataDecNumber,virataNumberError +syn match virataStatement "^\s*\(NoInit\|PCI\|SysLink\)\>" +syn match virataStatement "^\s*Allow\s\+\(ModuleConfig\)\>" +syn match virataStatement "^\s*NoWarn\s\+\(Export\|Parse\=able\|Relative]\)\>" +syn match virataStatement "^\s*Debug\s\+O\(ff\|n\)\>" + +" Import (Package |Module from ) +syn region virataImportDef transparent matchgroup=virataStatement start="^\s*Import\>" keepend end="$" contains=virataInImport,virataModuleDef,virataNumberError,virataStringError,@virataGrpDefSubsts +syn match virataInImport contained "\<\(Module\|Package\|from\)\>" skipwhite nextgroup=@virataGrpFileIdents +" Export (Header
    |SLibrary ) +syn region virataExportDef transparent matchgroup=virataStatement start="^\s*Export\>" keepend end="$" contains=virataInExport,virataNumberError,virataStringError,@virataGrpDefSubsts +syn match virataInExport contained "\<\(Header\|[SU]Library\)\>" skipwhite nextgroup=@virataGrpFileIdents +" Process is +syn region virataProcessDef transparent matchgroup=virataStatement start="^\s*Process\>" keepend end="$" contains=virataInProcess,virataInExec,virataNumberError,virataStringError,@virataGrpDefSubsts,@virataGrpIdents +syn match virataInProcess contained "\" +" Instance of +syn region virataInstanceDef transparent matchgroup=virataStatement start="^\s*Instance\>" keepend end="$" contains=virataInInstance,virataNumberError,virataStringError,@virataGrpDefSubsts,@virataGrpIdents +syn match virataInInstance contained "\" +" Module from +syn region virataModuleDef transparent matchgroup=virataStatement start="^\s*\(Package\|Module\)\>" keepend end="$" contains=virataInModule,virataNumberError,virataStringError,@virataGrpDefSubsts +syn match virataInModule contained "^\s*Package\>"hs=e-7 skipwhite nextgroup=@virataGrpIdents +syn match virataInModule contained "^\s*Module\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents +syn match virataInModule contained "\" skipwhite nextgroup=@virataGrpFileIdents +" Colour from +syn region virataColourDef transparent matchgroup=virataStatement start="^\s*Colour\>" keepend end="$" contains=virataInColour,virataNumberError,virataStringError,@virataGrpDefSubsts +syn match virataInColour contained "^\s*Colour\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents +syn match virataInColour contained "\" skipwhite nextgroup=@virataGrpFileIdents +" Link {} +" Object {Executable []} +syn match virataStatement "^\s*\(Link\|Object\)" +" Executable [] +syn region virataExecDef transparent matchgroup=virataStatement start="^\s*Executable\>" keepend end="$" contains=virataInExec,virataNumberError,virataStringError +syn match virataInExec contained "^\s*Executable\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents +syn match virataInExec contained "\<\(epilogue\|pro\(logue\|cess\)\|qhandler\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents +syn match virataInExec contained "\<\(priority\|stack\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpNumbers +" Message {} +" MessageId +syn match virataStatement "^\s*Message\(Id\)\=\>" skipwhite nextgroup=@virataGrpNumbers +" MakeRule {} +syn region virataMakeDef transparent matchgroup=virataStatement start="^\s*MakeRule\>" keepend end="$" contains=virataInMake,@virataGrpDefSubsts +syn case match +syn match virataInMake contained "\" +syn case ignore +" (Append|Edit|Copy)Rule +syn match virataStatement "^\s*\(Append\|Copy\|Edit\)Rule\>" +" AlterRules in +syn region virataAlterDef transparent matchgroup=virataStatement start="^\s*AlterRules\>" keepend end="$" contains=virataInAlter,@virataGrpDefSubsts +syn match virataInAlter contained "\" skipwhite nextgroup=@virataGrpIdents +" Clustering +syn cluster virataGrpInStatmnts contains=virataInImport,virataInExport,virataInExec,virataInProcess,virataInAlter,virataInInstance,virataInModule,virataInColour +syn cluster virataGrpStatements contains=@virataGrpInStatmnts,virataStatement,virataImportDef,virataExportDef,virataExecDef,virataProcessDef,virataAlterDef,virataInstanceDef,virataModuleDef,virataColourDef + + +" MkFlash.Cfg File Statements: +syn region virataCfgFileDef transparent matchgroup=virataCfgStatement start="^\s*Dir\>" start="^\s*\a\{-}File\>" start="^\s*OutputFile\d\d\=\>" start="^\s*\a\w\{-}[NP]PFile\>" keepend end="$" contains=@virataGrpFileIdents +syn region virataCfgSizeDef transparent matchgroup=virataCfgStatement start="^\s*\a\{-}Size\>" start="^\s*ConfigInfo\>" keepend end="$" contains=@virataGrpNumbers,@virataGrpDefSubsts,virataIdentError +syn region virataCfgNumberDef transparent matchgroup=virataCfgStatement start="^\s*FlashchipNum\(b\(er\=\)\=\)\=\>" start="^\s*Granularity\>" keepend end="$" contains=@virataGrpNumbers,@virataGrpDefSubsts +syn region virataCfgMacAddrDef transparent matchgroup=virataCfgStatement start="^\s*MacAddress\>" keepend end="$" contains=virataNumberError,virataStringError,virataIdentError,virataInMacAddr,@virataGrpDefSubsts +syn match virataInMacAddr contained "\x[:]\x\{1,2}\>"lc=2 +syn match virataInMacAddr contained "\s\x\{1,2}[:]\x"lc=1,me=e-1,he=e-2 nextgroup=virataInMacAddr +syn match virataCfgStatement "^\s*Target\>" skipwhite nextgroup=@virataGrpIdents +syn cluster virataGrpCfgs contains=virataCfgStatement,virataCfgFileDef,virataCfgSizeDef,virataCfgNumberDef,virataCfgMacAddrDef,virataInMacAddr + + + +" PreProcessor Instructions: +" Defines +syn match virataDefine "^\s*\(Un\)\=Set\>" skipwhite nextgroup=@virataGrpIdents +syn match virataInclude "^\s*Include\>" skipwhite nextgroup=@virataGrpFileIdents +syn match virataDefSubstError "[^$]\$"lc=1 +syn match virataDefSubstError "\$\(\w\|{\(.\{-}}\)\=\)" +syn case match +syn match virataDefSubst "\$\(\d\|[DINORS]\|{\I\i\{-}\(\-\i\{-1,}\)*}\)" +syn case ignore +" Conditionals +syn cluster virataGrpCntnPreCon contains=ALLBUT,@virataGrpInComments,@virataGrpFileIdents,@virataGrpInStatmnts +syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*If\>" end="^\s*Endif\>" contains=@virataGrpCntnPreCon +syn match virataPreCondit contained "^\s*Else\(\s\+If\)\=\>" +syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*ForEach\>" end="^\s*Done\>" contains=@virataGrpCntnPreCon +" Pre-Processors +syn region virataPreProc start="^\s*Error\>" start="^\s*Warning\>" oneline end="$" contains=@virataGrpConstants,@virataGrpDefSubsts +syn cluster virataGrpDefSubsts contains=virataDefSubstError,virataDefSubst +syn cluster virataGrpPreProcs contains=@virataGrpDefSubsts,virataDefine,virataInclude,virataPreConDef,virataPreCondit,virataPreProc + + +" Synchronize Syntax: +syn sync clear +syn sync minlines=50 "for multiple region nesting + + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" Sub Links: +hi def link virataDefSubstError virataPreProcError +hi def link virataDefSubst virataPreProc +hi def link virataInAlter virataOperator +hi def link virataInExec virataOperator +hi def link virataInExport virataOperator +hi def link virataInImport virataOperator +hi def link virataInInstance virataOperator +hi def link virataInMake virataOperator +hi def link virataInModule virataOperator +hi def link virataInProcess virataOperator +hi def link virataInMacAddr virataHexNumber + +" Comment Group: +hi def link virataComment Comment +hi def link virataSpclComment SpecialComment +hi def link virataInCommentTodo Todo + +" Constant Group: +hi def link virataString String +hi def link virataStringError Error +hi def link virataCharacter Character +hi def link virataSpclChar Special +hi def link virataDecNumber Number +hi def link virataHexNumber Number +hi def link virataSizeNumber Number +hi def link virataNumberError Error + +" Identifier Group: +hi def link virataIdentError Error + +" PreProc Group: +hi def link virataPreProc PreProc +hi def link virataDefine Define +hi def link virataInclude Include +hi def link virataPreCondit PreCondit +hi def link virataPreProcError Error +hi def link virataPreProcWarn Todo + +" Directive Group: +hi def link virataStatement Statement +hi def link virataCfgStatement Statement +hi def link virataOperator Operator +hi def link virataDirective Keyword + + +let b:current_syntax = "virata" + +" vim:ts=8:sw=2:noet: diff --git a/git/usr/share/vim/vim92/syntax/vmasm.vim b/git/usr/share/vim/vim92/syntax/vmasm.vim new file mode 100644 index 0000000000000000000000000000000000000000..c5cbb1e3a27b0ddc35db63f3a2fb7b56a924b92b --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vmasm.vim @@ -0,0 +1,238 @@ +" Vim syntax file +" Language: (VAX) Macro Assembly +" Maintainer: Tom Uijldert +" Last change: 2004 May 16 +" +" This is incomplete. Feel free to contribute... +" + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" Partial list of register symbols +syn keyword vmasmReg r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 +syn keyword vmasmReg ap fp sp pc iv dv + +" All matches - order is important! +syn keyword vmasmOpcode adawi adwc ashl ashq bitb bitw bitl decb decw decl +syn keyword vmasmOpcode ediv emul incb incw incl mcomb mcomw mcoml +syn keyword vmasmOpcode movzbw movzbl movzwl popl pushl rotl sbwc +syn keyword vmasmOpcode cmpv cmpzv cmpc3 cmpc5 locc matchc movc3 movc5 +syn keyword vmasmOpcode movtc movtuc scanc skpc spanc crc extv extzv +syn keyword vmasmOpcode ffc ffs insv aobleq aoblss bbc bbs bbcci bbssi +syn keyword vmasmOpcode blbc blbs brb brw bsbb bsbw caseb casew casel +syn keyword vmasmOpcode jmp jsb rsb sobgeq sobgtr callg calls ret +syn keyword vmasmOpcode bicpsw bispsw bpt halt index movpsl nop popr pushr xfc +syn keyword vmasmOpcode insqhi insqti insque remqhi remqti remque +syn keyword vmasmOpcode addp4 addp6 ashp cmpp3 cmpp4 cvtpl cvtlp cvtps cvtpt +syn keyword vmasmOpcode cvtsp cvttp divp movp mulp subp4 subp6 editpc +syn keyword vmasmOpcode prober probew rei ldpctx svpctx mfpr mtpr bugw bugl +syn keyword vmasmOpcode vldl vldq vgathl vgathq vstl vstq vscatl vscatq +syn keyword vmasmOpcode vvcvt iota mfvp mtvp vsync +syn keyword vmasmOpcode beql[u] bgtr[u] blss[u] +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" +syn match vmasmOpcode "\" + +" Various number formats +syn match vmasmdecNumber "[+-]\=[0-9]\+\>" +syn match vmasmdecNumber "^d[0-9]\+\>" +syn match vmasmhexNumber "^x[0-9a-f]\+\>" +syn match vmasmoctNumber "^o[0-7]\+\>" +syn match vmasmbinNumber "^b[01]\+\>" +syn match vmasmfloatNumber "[-+]\=[0-9]\+E[-+]\=[0-9]\+" +syn match vmasmfloatNumber "[-+]\=[0-9]\+\.[0-9]*\(E[-+]\=[0-9]\+\)\=" + +" Valid labels +syn match vmasmLabel "^[a-z_$.][a-z0-9_$.]\{,30}::\=" +syn match vmasmLabel "\<[0-9]\{1,5}\$:\=" " Local label + +" Character string constants +" Too complex really. Could be "<...>" but those could also be +" expressions. Don't know how to handle chosen delimiters +" ("^...") +" syn region vmasmString start="<" end=">" oneline + +" Operators +syn match vmasmOperator "[-+*/@&!\\]" +syn match vmasmOperator "=" +syn match vmasmOperator "==" " Global assignment +syn match vmasmOperator "%length(.*)" +syn match vmasmOperator "%locate(.*)" +syn match vmasmOperator "%extract(.*)" +syn match vmasmOperator "^[amfc]" +syn match vmasmOperator "[bwlg]^" + +syn match vmasmOperator "\<\(not_\)\=equal\>" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\<\(not_\)\=defined\>" +syn match vmasmOperator "\<\(not_\)\=blank\>" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\<[gl]t\>" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\" +syn match vmasmOperator "\<[nlg]e\>" +syn match vmasmOperator "\" + +" Special items for comments +syn keyword vmasmTodo contained todo + +" Comments +syn match vmasmComment ";.*" contains=vmasmTodo + +" Include +syn match vmasmInclude "\.library\>" + +" Macro definition +syn match vmasmMacro "\.macro\>" +syn match vmasmMacro "\.mexit\>" +syn match vmasmMacro "\.endm\>" +syn match vmasmMacro "\.mcall\>" +syn match vmasmMacro "\.mdelete\>" + +" Conditional assembly +syn match vmasmPreCond "\.iff\=\>" +syn match vmasmPreCond "\.if_false\>" +syn match vmasmPreCond "\.iftf\=\>" +syn match vmasmPreCond "\.if_true\(_false\)\=\>" +syn match vmasmPreCond "\.iif\>" + +" Loop control +syn match vmasmRepeat "\.irpc\=\>" +syn match vmasmRepeat "\.repeat\>" +syn match vmasmRepeat "\.rept\>" +syn match vmasmRepeat "\.endr\>" + +" Directives +syn match vmasmDirective "\.address\>" +syn match vmasmDirective "\.align\>" +syn match vmasmDirective "\.asci[cdiz]\>" +syn match vmasmDirective "\.blk[abdfghloqw]\>" +syn match vmasmDirective "\.\(signed_\)\=byte\>" +syn match vmasmDirective "\.\(no\)\=cross\>" +syn match vmasmDirective "\.debug\>" +syn match vmasmDirective "\.default displacement\>" +syn match vmasmDirective "\.[dfgh]_floating\>" +syn match vmasmDirective "\.disable\>" +syn match vmasmDirective "\.double\>" +syn match vmasmDirective "\.dsabl\>" +syn match vmasmDirective "\.enable\=\>" +syn match vmasmDirective "\.endc\=\>" +syn match vmasmDirective "\.entry\>" +syn match vmasmDirective "\.error\>" +syn match vmasmDirective "\.even\>" +syn match vmasmDirective "\.external\>" +syn match vmasmDirective "\.extrn\>" +syn match vmasmDirective "\.float\>" +syn match vmasmDirective "\.globa\=l\>" +syn match vmasmDirective "\.ident\>" +syn match vmasmDirective "\.link\>" +syn match vmasmDirective "\.list\>" +syn match vmasmDirective "\.long\>" +syn match vmasmDirective "\.mask\>" +syn match vmasmDirective "\.narg\>" +syn match vmasmDirective "\.nchr\>" +syn match vmasmDirective "\.nlist\>" +syn match vmasmDirective "\.ntype\>" +syn match vmasmDirective "\.octa\>" +syn match vmasmDirective "\.odd\>" +syn match vmasmDirective "\.opdef\>" +syn match vmasmDirective "\.packed\>" +syn match vmasmDirective "\.page\>" +syn match vmasmDirective "\.print\>" +syn match vmasmDirective "\.psect\>" +syn match vmasmDirective "\.quad\>" +syn match vmasmDirective "\.ref[1248]\>" +syn match vmasmDirective "\.ref16\>" +syn match vmasmDirective "\.restore\(_psect\)\=\>" +syn match vmasmDirective "\.save\(_psect\)\=\>" +syn match vmasmDirective "\.sbttl\>" +syn match vmasmDirective "\.\(no\)\=show\>" +syn match vmasmDirective "\.\(sub\)\=title\>" +syn match vmasmDirective "\.transfer\>" +syn match vmasmDirective "\.warn\>" +syn match vmasmDirective "\.weak\>" +syn match vmasmDirective "\.\(signed_\)\=word\>" + +syn case match + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +" The default methods for highlighting. Can be overridden later +" Comment Constant Error Identifier PreProc Special Statement Todo Type +" +" Constant Boolean Character Number String +" Identifier Function +" PreProc Define Include Macro PreCondit +" Special Debug Delimiter SpecialChar SpecialComment Tag +" Statement Conditional Exception Keyword Label Operator Repeat +" Type StorageClass Structure Typedef + +hi def link vmasmComment Comment +hi def link vmasmTodo Todo + +hi def link vmasmhexNumber Number " Constant +hi def link vmasmoctNumber Number " Constant +hi def link vmasmbinNumber Number " Constant +hi def link vmasmdecNumber Number " Constant +hi def link vmasmfloatNumber Number " Constant + +" hi def link vmasmString String " Constant + +hi def link vmasmReg Identifier +hi def link vmasmOperator Identifier + +hi def link vmasmInclude Include " PreProc +hi def link vmasmMacro Macro " PreProc +" hi def link vmasmMacroParam Keyword " Statement + +hi def link vmasmDirective Special +hi def link vmasmPreCond Special + + +hi def link vmasmOpcode Statement +hi def link vmasmCond Conditional " Statement +hi def link vmasmRepeat Repeat " Statement + +hi def link vmasmLabel Type + +let b:current_syntax = "vmasm" + +" vim: ts=8 sw=2 diff --git a/git/usr/share/vim/vim92/syntax/voscm.vim b/git/usr/share/vim/vim92/syntax/voscm.vim new file mode 100644 index 0000000000000000000000000000000000000000..7d6bea754339e217804fc1a513e88ab3b9984f00 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/voscm.vim @@ -0,0 +1,94 @@ +" Vim syntax file +" Language: VOS CM macro +" Maintainer: Andrew McGill andrewm at lunch.za.net +" Last Change: Apr 06, 2007 +" Version: 1 +" URL: http://lunch.za.net/ +" + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match +" set iskeyword=48-57,_,a-z,A-Z + +syn match voscmStatement "^!" +syn match voscmStatement "&\(label\|begin_parameters\|end_parameters\|goto\|attach_input\|break\|continue\|control\|detach_input\|display_line\|display_line_partial\|echo\|eof\|eval\|if\|mode\|return\|while\|set\|set_string\|then\|else\|do\|done\|end\)\>" +syn match voscmJump "\(&label\|&goto\) *" nextgroup=voscmLabelId +syn match voscmLabelId contained "\<[A-Za-z][A-Z_a-z0-9]* *$" +syn match voscmSetvar "\(&set_string\|&set\) *" nextgroup=voscmVariable +syn match voscmError "\(&set_string\|&set\) *&" +syn match voscmVariable contained "\<[A-Za-z][A-Z_a-z0-9]\+\>" +syn keyword voscmParamKeyword contained number req string switch allow byte disable_input hidden length longword max min no_abbrev output_path req required req_for_form word +syn region voscmParamList matchgroup=voscmParam start="&begin_parameters" end="&end_parameters" contains=voscmParamKeyword,voscmString,voscmParamName,voscmParamId +syn match voscmParamName contained "\(^\s*[A-Za-z_0-9]\+\s\+\)\@<=\k\+" +syn match voscmParamId contained "\(^\s*\)\@<=\k\+" +syn region par1 matchgroup=par1 start=/(/ end=/)/ contains=voscmFunction,voscmIdentifier,voscmString transparent +" FIXME: functions should only be allowed after a bracket ... ie (ask ...): +syn keyword voscmFunction contained abs access after ask before break byte calc ceil command_status concat +syn keyword voscmFunction contained contents path_name copy count current_dir current_module date date_time +syn keyword voscmFunction contained decimal directory_name end_of_file exists file_info floor given group_name +syn keyword voscmFunction contained has_access hexadecimal home_dir index iso_date iso_date_time language_name +syn keyword voscmFunction contained length lock_type locked ltrim master_disk max message min mod module_info +syn keyword voscmFunction contained module_name object_name online path_name person_name process_dir process_info +syn keyword voscmFunction contained process_type quote rank referencing_dir reverse rtrim search +syn keyword voscmFunction contained software_purchased string substitute substr system_name terminal_info +syn keyword voscmFunction contained terminal_name time translate trunc unique_string unquote user_name verify +syn keyword voscmFunction contained where_path +syn keyword voscmTodo contained TODO FIXME XXX DEBUG NOTE +syn match voscmTab "\t\+" + +syn keyword voscmCommand add_entry_names add_library_path add_profile analyze_pc_samples attach_default_output attach_port batch bind break_process c c_preprocess call_thru cancel_batch_requests cancel_device_reservation cancel_print_requests cc change_current_dir check_posix cobol comment_on_manual compare_dirs compare_files convert_text_file copy_dir copy_file copy_tape cpp create_data_object create_deleted_record_index create_dir create_file create_index create_record_index create_tape_volumes cvt_fixed_to_stream cvt_stream_to_fixed debug delete_dir delete_file delete_index delete_library_path detach_default_output detach_port dismount_tape display display_access display_access_list display_batch_status display_current_dir display_current_module display_date_time display_default_access_list display_device_info display_dir_status display_disk_info display_disk_usage display_error display_file display_file_status display_line display_notices display_object_module_info display_print_defaults display_print_status display_program_module display_system_usage display_tape_params display_terminal_parameters dump_file dump_record dump_tape edit edit_form emacs enforce_region_locks fortran get_external_variable give_access give_default_access handle_sig_dfl harvest_pc_samples help kill line_edit link link_dirs list list_batch_requests list_devices list_gateways list_library_paths list_modules list_port_attachments list_print_requests list_process_cmd_limits list_save_tape list_systems list_tape list_terminal_types list_users locate_files locate_large_files login logout mount_tape move_device_reservation move_dir move_file mp_debug nls_edit_form pascal pl1 position_tape preprocess_file print profile propagate_access read_tape ready remove_access remove_default_access rename reserve_device restore_object save_object send_message set set_cpu_time_limit set_expiration_date set_external_variable set_file_allocation set_implicit_locking set_index_flags set_language set_library_paths set_line_wrap_width set_log_protected_file set_owner_access set_pipe_file set_priority set_ready set_safety_switch set_second_tape set_tape_drive_params set_tape_file_params set_tape_mount_params set_terminal_parameters set_text_file set_time_zone sleep sort start_logging start_process stop_logging stop_process tail_file text_data_merge translate_links truncate_file unlink update_batch_requests update_print_requests update_process_cmd_limits use_abbreviations use_message_file vcc verify_posix_access verify_save verify_system_access walk_dir where_command where_path who_locked write_tape + +syn match voscmIdentifier "&[A-Za-z][a-z0-9_A-Z]*&" + +syn match voscmString "'[^']*'" + +" Number formats +syn match voscmNumber "\<\d\+\>" +"Floating point number part only +syn match voscmDecimalNumber "\.\d\+\([eE][-+]\=\d\)\=\>" + +"syn region voscmComment start="^[ ]*&[ ]+" end="$" +"syn match voscmComment "^[ ]*&[ ].*$" +"syn match voscmComment "^&$" +syn region voscmComment start="^[ ]*&[ ]" end="$" contains=voscmTodo +syn match voscmComment "^&$" +syn match voscmContinuation "&+$" + +"syn match voscmIdentifier "[A-Za-z0-9&._-]\+" + +"Synchronization with Statement terminator $ +" syn sync maxlines=100 + +hi def link voscmConditional Conditional +hi def link voscmStatement Statement +hi def link voscmSetvar Statement +hi def link voscmNumber Number +hi def link voscmDecimalNumber Float +hi def link voscmString String +hi def link voscmIdentifier Identifier +hi def link voscmVariable Identifier +hi def link voscmComment Comment +hi def link voscmJump Statement +hi def link voscmContinuation Macro +hi def link voscmLabelId String +hi def link voscmParamList NONE +hi def link voscmParamId Identifier +hi def link voscmParamName String +hi def link voscmParam Statement +hi def link voscmParamKeyword Statement +hi def link voscmFunction Function +hi def link voscmCommand Structure +"hi def link voscmIdentifier NONE +"hi def link voscmSpecial Special " not used +hi def link voscmTodo Todo +hi def link voscmTab Error +hi def link voscmError Error + +let b:current_syntax = "voscm" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vrml.vim b/git/usr/share/vim/vim92/syntax/vrml.vim new file mode 100644 index 0000000000000000000000000000000000000000..2474493c94602ba20dc5545dcecc018884b5dca0 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vrml.vim @@ -0,0 +1,222 @@ +" Vim syntax file +" Language: VRML97 +" Modified from: VRML 1.0C by David Brown +" Maintainer: vacancy! +" Former Maintainer: Gregory Seidman +" Last change: 2006 May 03 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" keyword definitions + +syn keyword VRMLFields ambientIntensity appearance attenuation +syn keyword VRMLFields autoOffset avatarSize axisOfRotation backUrl +syn keyword VRMLFields bboxCenter bboxSize beamWidth beginCap +syn keyword VRMLFields bottom bottomRadius bottomUrl ccw center +syn keyword VRMLFields children choice collide color colorIndex +syn keyword VRMLFields colorPerVertex convex coord coordIndex +syn keyword VRMLFields creaseAngle crossSection cutOffAngle +syn keyword VRMLFields cycleInterval description diffuseColor +syn keyword VRMLFields directOutput direction diskAngle +syn keyword VRMLFields emissiveColor enabled endCap family +syn keyword VRMLFields fieldOfView fogType fontStyle frontUrl +syn keyword VRMLFields geometry groundAngle groundColor headlight +syn keyword VRMLFields height horizontal info intensity jump +syn keyword VRMLFields justify key keyValue language leftToRight +syn keyword VRMLFields leftUrl length level location loop material +syn keyword VRMLFields maxAngle maxBack maxExtent maxFront +syn keyword VRMLFields maxPosition minAngle minBack minFront +syn keyword VRMLFields minPosition mustEvaluate normal normalIndex +syn keyword VRMLFields normalPerVertex offset on orientation +syn keyword VRMLFields parameter pitch point position priority +syn keyword VRMLFields proxy radius range repeatS repeatT rightUrl +syn keyword VRMLFields rotation scale scaleOrientation shininess +syn keyword VRMLFields side size skyAngle skyColor solid source +syn keyword VRMLFields spacing spatialize specularColor speed spine +syn keyword VRMLFields startTime stopTime string style texCoord +syn keyword VRMLFields texCoordIndex texture textureTransform title +syn keyword VRMLFields top topToBottom topUrl translation +syn keyword VRMLFields transparency type url vector visibilityLimit +syn keyword VRMLFields visibilityRange whichChoice xDimension +syn keyword VRMLFields xSpacing zDimension zSpacing +syn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>" contains=VRMLComment,VRMLProtos,VRMLfTypes +" syn match VRMLFields "\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*\\(#.*$\)*\(,\|\s\)*\<[A-Za-z_][A-Za-z0-9_]*\>\(,\|\s\)*\(#.*$\)*" contains=VRMLComment,VRMLProtos +" syn region VRMLFields start="\<[A-Za-z_][A-Za-z0-9_]*\>" end=+\(,\|#\|\s\)+me=e-1 contains=VRMLComment,VRMLProtos + +syn keyword VRMLEvents addChildren ambientIntensity_changed +syn keyword VRMLEvents appearance_changed attenuation_changed +syn keyword VRMLEvents autoOffset_changed avatarSize_changed +syn keyword VRMLEvents axisOfRotation_changed backUrl_changed +syn keyword VRMLEvents beamWidth_changed bindTime bottomUrl_changed +syn keyword VRMLEvents center_changed children_changed +syn keyword VRMLEvents choice_changed collideTime collide_changed +syn keyword VRMLEvents color_changed coord_changed +syn keyword VRMLEvents cutOffAngle_changed cycleInterval_changed +syn keyword VRMLEvents cycleTime description_changed +syn keyword VRMLEvents diffuseColor_changed direction_changed +syn keyword VRMLEvents diskAngle_changed duration_changed +syn keyword VRMLEvents emissiveColor_changed enabled_changed +syn keyword VRMLEvents enterTime exitTime fogType_changed +syn keyword VRMLEvents fontStyle_changed fraction_changed +syn keyword VRMLEvents frontUrl_changed geometry_changed +syn keyword VRMLEvents groundAngle_changed headlight_changed +syn keyword VRMLEvents hitNormal_changed hitPoint_changed +syn keyword VRMLEvents hitTexCoord_changed intensity_changed +syn keyword VRMLEvents isActive isBound isOver jump_changed +syn keyword VRMLEvents keyValue_changed key_changed leftUrl_changed +syn keyword VRMLEvents length_changed level_changed +syn keyword VRMLEvents location_changed loop_changed +syn keyword VRMLEvents material_changed maxAngle_changed +syn keyword VRMLEvents maxBack_changed maxExtent_changed +syn keyword VRMLEvents maxFront_changed maxPosition_changed +syn keyword VRMLEvents minAngle_changed minBack_changed +syn keyword VRMLEvents minFront_changed minPosition_changed +syn keyword VRMLEvents normal_changed offset_changed on_changed +syn keyword VRMLEvents orientation_changed parameter_changed +syn keyword VRMLEvents pitch_changed point_changed position_changed +syn keyword VRMLEvents priority_changed radius_changed +syn keyword VRMLEvents removeChildren rightUrl_changed +syn keyword VRMLEvents rotation_changed scaleOrientation_changed +syn keyword VRMLEvents scale_changed set_ambientIntensity +syn keyword VRMLEvents set_appearance set_attenuation +syn keyword VRMLEvents set_autoOffset set_avatarSize +syn keyword VRMLEvents set_axisOfRotation set_backUrl set_beamWidth +syn keyword VRMLEvents set_bind set_bottomUrl set_center +syn keyword VRMLEvents set_children set_choice set_collide +syn keyword VRMLEvents set_color set_colorIndex set_coord +syn keyword VRMLEvents set_coordIndex set_crossSection +syn keyword VRMLEvents set_cutOffAngle set_cycleInterval +syn keyword VRMLEvents set_description set_diffuseColor +syn keyword VRMLEvents set_direction set_diskAngle +syn keyword VRMLEvents set_emissiveColor set_enabled set_fogType +syn keyword VRMLEvents set_fontStyle set_fraction set_frontUrl +syn keyword VRMLEvents set_geometry set_groundAngle set_headlight +syn keyword VRMLEvents set_height set_intensity set_jump set_key +syn keyword VRMLEvents set_keyValue set_leftUrl set_length +syn keyword VRMLEvents set_level set_location set_loop set_material +syn keyword VRMLEvents set_maxAngle set_maxBack set_maxExtent +syn keyword VRMLEvents set_maxFront set_maxPosition set_minAngle +syn keyword VRMLEvents set_minBack set_minFront set_minPosition +syn keyword VRMLEvents set_normal set_normalIndex set_offset set_on +syn keyword VRMLEvents set_orientation set_parameter set_pitch +syn keyword VRMLEvents set_point set_position set_priority +syn keyword VRMLEvents set_radius set_rightUrl set_rotation +syn keyword VRMLEvents set_scale set_scaleOrientation set_shininess +syn keyword VRMLEvents set_size set_skyAngle set_skyColor +syn keyword VRMLEvents set_source set_specularColor set_speed +syn keyword VRMLEvents set_spine set_startTime set_stopTime +syn keyword VRMLEvents set_string set_texCoord set_texCoordIndex +syn keyword VRMLEvents set_texture set_textureTransform set_topUrl +syn keyword VRMLEvents set_translation set_transparency set_type +syn keyword VRMLEvents set_url set_vector set_visibilityLimit +syn keyword VRMLEvents set_visibilityRange set_whichChoice +syn keyword VRMLEvents shininess_changed size_changed +syn keyword VRMLEvents skyAngle_changed skyColor_changed +syn keyword VRMLEvents source_changed specularColor_changed +syn keyword VRMLEvents speed_changed startTime_changed +syn keyword VRMLEvents stopTime_changed string_changed +syn keyword VRMLEvents texCoord_changed textureTransform_changed +syn keyword VRMLEvents texture_changed time topUrl_changed +syn keyword VRMLEvents touchTime trackPoint_changed +syn keyword VRMLEvents translation_changed transparency_changed +syn keyword VRMLEvents type_changed url_changed value_changed +syn keyword VRMLEvents vector_changed visibilityLimit_changed +syn keyword VRMLEvents visibilityRange_changed whichChoice_changed +syn region VRMLEvents start="\S+[^0-9]+\.[A-Za-z_]+"ms=s+1 end="\(,\|$\|\s\)"me=e-1 + +syn keyword VRMLNodes Anchor Appearance AudioClip Background +syn keyword VRMLNodes Billboard Box Collision Color +syn keyword VRMLNodes ColorInterpolator Cone Coordinate +syn keyword VRMLNodes CoordinateInterpolator Cylinder +syn keyword VRMLNodes CylinderSensor DirectionalLight +syn keyword VRMLNodes ElevationGrid Extrusion Fog FontStyle +syn keyword VRMLNodes Group ImageTexture IndexedFaceSet +syn keyword VRMLNodes IndexedLineSet Inline LOD Material +syn keyword VRMLNodes MovieTexture NavigationInfo Normal +syn keyword VRMLNodes NormalInterpolator OrientationInterpolator +syn keyword VRMLNodes PixelTexture PlaneSensor PointLight +syn keyword VRMLNodes PointSet PositionInterpolator +syn keyword VRMLNodes ProximitySensor ScalarInterpolator +syn keyword VRMLNodes Script Shape Sound Sphere SphereSensor +syn keyword VRMLNodes SpotLight Switch Text TextureCoordinate +syn keyword VRMLNodes TextureTransform TimeSensor TouchSensor +syn keyword VRMLNodes Transform Viewpoint VisibilitySensor +syn keyword VRMLNodes WorldInfo + +" the following line doesn't catch since \n +" doesn't match as an atom yet :-( +syn match VRMLNodes "[A-Za-z_][A-Za-z0-9_]*\(,\|\s\)*{"me=e-1 +syn region VRMLNodes start="\\(,\|\s\)*[A-Za-z_]"ms=e start="\\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLComment +syn region VRMLNodes start="PROTO\>\(,\|\s\)*[A-Za-z_]"ms=e start="PROTO\>\(,\|\s\)*" end="[\s]*\["me=e-1 contains=VRMLProtos,VRMLComment + +syn keyword VRMLTypes SFBool SFColor MFColor SFFloat MFFloat +syn keyword VRMLTypes SFImage SFInt32 MFInt32 SFNode MFNode +syn keyword VRMLTypes SFRotation MFRotation SFString MFString +syn keyword VRMLTypes SFTime MFTime SFVec2f MFVec2f SFVec3f MFVec3f + +syn keyword VRMLfTypes field exposedField eventIn eventOut + +syn keyword VRMLValues TRUE FALSE NULL + +syn keyword VRMLProtos contained EXTERNPROTO PROTO IS + +syn keyword VRMLRoutes contained ROUTE TO + +"containment! +syn include @jscript $VIMRUNTIME/syntax/javascript.vim +syn region VRMLjScriptString contained start=+"\(\(javascript\)\|\(vrmlscript\)\|\(ecmascript\)\):+ms=e+1 skip=+\\\\\|\\"+ end=+"+me=e-1 contains=@jscript + +" match definitions. +syn match VRMLSpecial contained "\\[0-9][0-9][0-9]\|\\." +syn region VRMLString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=VRMLSpecial,VRMLjScriptString +syn match VRMLCharacter "'[^\\]'" +syn match VRMLSpecialCharacter "'\\.'" +syn match VRMLNumber "[-+]\=\<[0-9]\+\(\.[0-9]\+\)\=\([eE]\{1}[-+]\=[0-9]\+\)\=\>\|0[xX][0-9a-fA-F]\+\>" +syn match VRMLNumber "0[xX][0-9a-fA-F]\+\>" +syn match VRMLComment "#.*$" + +" newlines should count as whitespace, but they can't be matched yet :-( +syn region VRMLRouteNode start="[^O]TO\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLComment +syn region VRMLRouteNode start="ROUTE\(,\|\s\)*" end="\."me=e-1 contains=VRMLRoutes,VRMLComment +syn region VRMLInstName start="DEF\>"hs=e+1 skip="DEF\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLComment +syn region VRMLInstName start="USE\>"hs=e+1 skip="USE\(,\|\s\)*" end="[A-Za-z0-9_]\(\s\|$\|,\)"me=e contains=VRMLInstances,VRMLComment + +syn keyword VRMLInstances contained DEF USE +syn sync minlines=1 + +"FOLDS! +syn sync fromstart +"setlocal foldmethod=syntax +syn region braceFold start="{" end="}" transparent fold contains=TOP +syn region bracketFold start="\[" end="]" transparent fold contains=TOP +syn region VRMLString start=+"+ skip=+\\\\\|\\"+ end=+"+ fold contains=VRMLSpecial,VRMLjScriptString + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link VRMLCharacter VRMLString +hi def link VRMLSpecialCharacter VRMLSpecial +hi def link VRMLNumber VRMLString +hi def link VRMLValues VRMLString +hi def link VRMLString String +hi def link VRMLSpecial Special +hi def link VRMLComment Comment +hi def link VRMLNodes Statement +hi def link VRMLFields Type +hi def link VRMLEvents Type +hi def link VRMLfTypes LineNr +" hi VRMLfTypes ctermfg=6 guifg=Brown +hi def link VRMLInstances PreCondit +hi def link VRMLRoutes PreCondit +hi def link VRMLProtos PreProc +hi def link VRMLRouteNode Identifier +hi def link VRMLInstName Identifier +hi def link VRMLTypes Identifier + + +let b:current_syntax = "vrml" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/vroom.vim b/git/usr/share/vim/vim92/syntax/vroom.vim new file mode 100644 index 0000000000000000000000000000000000000000..0509e30b17bd68f8059f1f70f0518ba98f178f43 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vroom.vim @@ -0,0 +1,110 @@ +" Vim syntax file +" Language: Vroom (vim testing and executable documentation) +" Maintainer: David Barnett (https://github.com/google/vim-ft-vroom) +" Last Change: 2014 Jul 23 + +" quit when a syntax file was already loaded +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpo +set cpo-=C + + +syn include @vroomVim syntax/vim.vim +syn include @vroomShell syntax/sh.vim + +syntax region vroomAction + \ matchgroup=vroomOutput + \ start='\m^ ' end='\m$' keepend + \ contains=vroomControlBlock + +syntax region vroomAction + \ matchgroup=vroomOutput + \ start='\m^ & ' end='\m$' keepend + \ contains=vroomControlBlock + +syntax match vroomOutput '\m^ &$' + +syntax region vroomMessageBody + \ matchgroup=vroomMessage + \ start='\m^ \~ ' end='\m$' keepend + \ contains=vroomControlBlock + +syntax region vroomColoredAction + \ matchgroup=vroomInput + \ start='\m^ > ' end='\m$' keepend + \ contains=vimNotation,vroomControlBlock +syntax region vroomAction + \ matchgroup=vroomInput + \ start='\m^ % ' end='\m$' keepend + \ contains=vimNotation,vroomControlBlock + +syntax region vroomAction + \ matchgroup=vroomContinuation + \ start='\m^ |' end='\m$' keepend + +syntax region vroomAction + \ start='\m^ \ze:' end='\m$' keepend + \ contains=@vroomVim,vroomControlBlock + +syntax region vroomAction + \ matchgroup=vroomDirective + \ start='\m^ @\i\+' end='\m$' keepend + \ contains=vroomControlBlock + +syntax region vroomSystemAction + \ matchgroup=vroomSystem + \ start='\m^ ! ' end='\m$' keepend + \ contains=@vroomShell,vroomControlBlock + +syntax region vroomHijackAction + \ matchgroup=vroomHijack + \ start='\m^ \$ ' end='\m$' keepend + \ contains=vroomControlBlock + +syntax match vroomControlBlock contains=vroomControlEscape,@vroomControls + \ '\v \([^&()][^()]*\)$' + +syntax match vroomControlEscape '\m&' contained + +syntax cluster vroomControls + \ contains=vroomDelay,vroomMode,vroomBuffer,vroomRange + \,vroomChannel,vroomBind,vroomStrictness +syntax match vroomRange '\v\.(,\+?(\d+|\$)?)?' contained +syntax match vroomRange '\v\d*,\+?(\d+|\$)?' contained +syntax match vroomBuffer '\v\d+,@!' contained +syntax match vroomDelay '\v\d+(\.\d+)?s' contained +syntax match vroomMode '\v<%(regex|glob|verbatim)' contained +syntax match vroomChannel '\v<%(stderr|stdout|command|status)>' contained +syntax match vroomBind '\v' contained +syntax match vroomStrictness '\v\<%(STRICT|RELAXED|GUESS-ERRORS)\>' contained + +highlight default link vroomInput Identifier +highlight default link vroomDirective vroomInput +highlight default link vroomControlBlock vroomInput +highlight default link vroomSystem vroomInput +highlight default link vroomOutput Statement +highlight default link vroomContinuation Constant +highlight default link vroomHijack Special +highlight default link vroomColoredAction Statement +highlight default link vroomSystemAction vroomSystem +highlight default link vroomHijackAction vroomHijack +highlight default link vroomMessage vroomOutput +highlight default link vroomMessageBody Constant + +highlight default link vroomControlEscape Special +highlight default link vroomBuffer vroomInput +highlight default link vroomRange Include +highlight default link vroomMode Constant +highlight default link vroomDelay Type +highlight default link vroomStrictness vroomMode +highlight default link vroomChannel vroomMode +highlight default link vroomBind vroomMode + +let b:current_syntax = 'vroom' + + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/vsejcl.vim b/git/usr/share/vim/vim92/syntax/vsejcl.vim new file mode 100644 index 0000000000000000000000000000000000000000..f329836236cbb7545aa37a5c9e87991275d0ae4a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vsejcl.vim @@ -0,0 +1,36 @@ +" Vim syntax file +" Language: JCL job control language - DOS/VSE +" Maintainer: Davyd Ondrejko +" URL: +" Last change: 2001 May 10 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" tags +syn keyword vsejclKeyword DLBL EXEC JOB ASSGN EOJ +syn keyword vsejclField JNM CLASS DISP USER SYSID JSEP SIZE +syn keyword vsejclField VSAM +syn region vsejclComment start="^/\*" end="$" +syn region vsejclComment start="^[\* ]\{}$" end="$" +syn region vsejclMisc start="^ " end="$" contains=Jparms +syn match vsejclString /'.\{-}'/ +syn match vsejclParms /(.\{-})/ contained + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link vsejclComment Comment +hi def link vsejclField Type +hi def link vsejclKeyword Statement +hi def link vsejclObject Constant +hi def link vsejclString Constant +hi def link vsejclMisc Special +hi def link vsejclParms Constant + + +let b:current_syntax = "vsejcl" + +" vim: ts=4 diff --git a/git/usr/share/vim/vim92/syntax/vue.vim b/git/usr/share/vim/vim92/syntax/vue.vim new file mode 100644 index 0000000000000000000000000000000000000000..bad0e26c42110744444f69aac1d79526986beb79 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/vue.vim @@ -0,0 +1,14 @@ +" Vim syntax file +" Language: Vue.js Single File Component +" Maintainer: Ralph Giles +" URL: https://vuejs.org/v2/guide/single-file-components.html +" Last Change: 2019 Jul 8 + +" Quit if a syntax file was already loaded. +if exists("b:current_syntax") + finish +endif + +" We have a collection of html, css and javascript wrapped in +" tags. The default HTML syntax highlight works well enough. +runtime! syntax/html.vim diff --git a/git/usr/share/vim/vim92/syntax/wat.vim b/git/usr/share/vim/vim92/syntax/wat.vim new file mode 100644 index 0000000000000000000000000000000000000000..a6b926be9863a94a71369c987b01027928e63a76 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wat.vim @@ -0,0 +1,97 @@ +" Vim syntax file +" Language: WebAssembly +" Maintainer: rhysd +" Last Change: Nov 14, 2023 +" For bugs, patches and license go to https://github.com/rhysd/vim-wasm + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn cluster watNotTop contains=watModule,watInstWithType,watInstGetSet,watInstGeneral,watParamInst,watControlInst,watSimdInst,watString,watNamedVar,watUnnamedVar,watFloat,watNumber,watComment,watList,watType + +" Instructions +" https://webassembly.github.io/spec/core/text/instructions.html +" Note: memarg (align=,offset=) can be added to memory instructions +syn match watInstWithType "\%((\s*\)\@<=\<\%(i32\|i64\|f32\|f64\|memory\)\.[[:alnum:]_]\+\%(/\%(i32\|i64\|f32\|f64\)\)\=\>\%(\s\+\%(align\|offset\)=\)\=" contained display +syn match watInstGeneral "\%((\s*\)\@<=\<[[:alnum:]_]\+\>" contained display +syn match watInstGetSet "\%((\s*\)\@<=\<\%(local\|global\)\.\%(get\|set\)\>" contained display +" https://webassembly.github.io/spec/core/text/instructions.html#control-instructions +syn match watControlInst "\%((\s*\)\@<=\<\%(block\|end\|loop\|if\|then\|else\|unreachable\|nop\|br\|br_if\|br_table\|return\|call\|call_indirect\)\>" contained display +" https://webassembly.github.io/spec/core/text/instructions.html#parametric-instructions +syn match watParamInst "\%((\s*\)\@<=\<\%(drop\|select\)\>" contained display +" SIMD instructions +" https://webassembly.github.io/simd/core/text/instructions.html#simd-instructions +syn match watSimdInst "\<\%(v128\|i8x16\|i16x8\|i32x4\|i64x2\|f32x4\|f64x2)\)\.[[:alnum:]_]\+\%(\s\+\%(i8x16\|i16x8\|i32x4\|i64x2\|f32x4\|f64x2\)\)\=\>" contained display + +" Identifiers +" https://webassembly.github.io/spec/core/text/values.html#text-id +syn match watNamedVar "$\+[[:alnum:]!#$%&'∗./:=>" display contained +syn match watNumber "\<-\=0x\x\%(_\=\x\)*\>" display contained + +" Comments +" https://webassembly.github.io/spec/core/text/lexical.html#comments +syn region watComment start=";;" end="$" +syn region watComment start="(;;\@!" end=";)" + +syn region watList matchgroup=watListDelimiter start="(;\@!" matchgroup=watListDelimiter end=";\@ +" Last Change: 25 Apr 2001 +" URL: http://alfie.ist.org/vim/syntax/wdiff.vim +" +" Comments are very welcome - but please make sure that you are commenting on +" the latest version of this file. +" SPAM is _NOT_ welcome - be ready to be reported! + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +syn region wdiffOld start=+\[-+ end=+-]+ +syn region wdiffNew start="{+" end="+}" + + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link wdiffOld Special +hi def link wdiffNew Identifier + + +let b:current_syntax = "wdiff" diff --git a/git/usr/share/vim/vim92/syntax/wdl.vim b/git/usr/share/vim/vim92/syntax/wdl.vim new file mode 100644 index 0000000000000000000000000000000000000000..3b8369e8bd159c3d1b26bccc10aa020ee2fa9cd1 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wdl.vim @@ -0,0 +1,41 @@ +" Vim syntax file +" Language: wdl +" Maintainer: Matt Dunford (zenmatic@gmail.com) +" URL: https://github.com/zenmatic/vim-syntax-wdl +" Last Change: 2022 Nov 24 + +" https://github.com/openwdl/wdl + +" quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match + +syn keyword wdlStatement alias task input command runtime input output workflow call scatter import as meta parameter_meta in version +syn keyword wdlConditional if then else +syn keyword wdlType struct Array String File Int Float Boolean Map Pair Object + +syn keyword wdlFunctions stdout stderr read_lines read_tsv read_map read_object read_objects read_json read_int read_string read_float read_boolean write_lines write_tsv write_map write_object write_objects write_json size sub range transpose zip cross length flatten prefix select_first defined basename floor ceil round + +syn region wdlCommandSection start="<<<" end=">>>" + +syn region wdlString start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn region wdlString start=+'+ skip=+\\\\\|\\'+ end=+'+ + +" Comments; their contents +syn keyword wdlTodo contained TODO FIXME XXX BUG +syn cluster wdlCommentGroup contains=wdlTodo +syn region wdlComment start="#" end="$" contains=@wdlCommentGroup + +hi def link wdlStatement Statement +hi def link wdlConditional Conditional +hi def link wdlType Type +hi def link wdlFunctions Function +hi def link wdlString String +hi def link wdlCommandSection String +hi def link wdlComment Comment +hi def link wdlTodo Todo + +let b:current_syntax = 'wdl' diff --git a/git/usr/share/vim/vim92/syntax/web.vim b/git/usr/share/vim/vim92/syntax/web.vim new file mode 100644 index 0000000000000000000000000000000000000000..54eebda3997d3e27e45a801e1c039e01966a36e4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/web.vim @@ -0,0 +1,32 @@ +" Vim syntax file +" Language: WEB +" Maintainer: Andreas Scherer +" Last Change: April 30, 2001 + +" Details of the WEB language can be found in the article by Donald E. Knuth, +" "The WEB System of Structured Documentation", included as "webman.tex" in +" the standard WEB distribution, available for anonymous ftp at +" ftp://labrea.stanford.edu/pub/tex/web/. + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Although WEB is the ur-language for the "Literate Programming" paradigm, +" we base this syntax file on the modern superset, CWEB. Note: This shortcut +" may introduce some illegal constructs, e.g., CWEB's "@c" does _not_ start a +" code section in WEB. Anyway, I'm not a WEB programmer. +runtime! syntax/cweb.vim +unlet b:current_syntax + +" Replace C/C++ syntax by Pascal syntax. +syntax include @webIncludedC :p:h/pascal.vim + +" Double-@ means single-@, anywhere in the WEB source (as in CWEB). +" Don't misinterpret "@'" as the start of a Pascal string. +syntax match webIgnoredStuff "@[@']" + +let b:current_syntax = "web" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/webmacro.vim b/git/usr/share/vim/vim92/syntax/webmacro.vim new file mode 100644 index 0000000000000000000000000000000000000000..95975251af750339eebe283daaa5fafce0fcf2cc --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/webmacro.vim @@ -0,0 +1,67 @@ +" WebMacro syntax file +" Language: WebMacro +" Maintainer: Claudio Fleiner +" URL: http://www.fleiner.com/vim/syntax/webmacro.vim +" Last Change: 2003 May 11 + +" webmacro is a nice little language that you should +" check out if you use java servlets. +" webmacro: http://www.webmacro.org + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if !exists("main_syntax") + " quit when a syntax file was already loaded + if exists("b:current_syntax") + finish + endif + let main_syntax = 'webmacro' +endif + + +runtime! syntax/html.vim +unlet b:current_syntax + +syn cluster htmlPreProc add=webmacroIf,webmacroUse,webmacroBraces,webmacroParse,webmacroInclude,webmacroSet,webmacroForeach,webmacroComment + +syn match webmacroVariable "\$[a-zA-Z0-9.()]*;\=" +syn match webmacroNumber "[-+]\=\d\+[lL]\=" contained +syn keyword webmacroBoolean true false contained +syn match webmacroSpecial "\\." contained +syn region webmacroString contained start=+"+ end=+"+ contains=webmacroSpecial,webmacroVariable +syn region webmacroString contained start=+'+ end=+'+ contains=webmacroSpecial,webmacroVariable +syn region webmacroList contained matchgroup=Structure start="\[" matchgroup=Structure end="\]" contains=webmacroString,webmacroVariable,webmacroNumber,webmacroBoolean,webmacroList + +syn region webmacroIf start="#if" start="#else" end="{"me=e-1 contains=webmacroVariable,webmacroNumber,webmacroString,webmacroBoolean,webmacroList nextgroup=webmacroBraces +syn region webmacroForeach start="#foreach" end="{"me=e-1 contains=webmacroVariable,webmacroNumber,webmacroString,webmacroBoolean,webmacroList nextgroup=webmacroBraces +syn match webmacroSet "#set .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList +syn match webmacroInclude "#include .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList +syn match webmacroParse "#parse .*$" contains=webmacroVariable,webmacroNumber,webmacroBoolean,webmacroString,webmacroList +syn region webmacroUse matchgroup=PreProc start="#use .*" matchgroup=PreProc end="^-.*" contains=webmacroHash,@HtmlTop +syn region webmacroBraces matchgroup=Structure start="{" matchgroup=Structure end="}" contained transparent +syn match webmacroBracesError "[{}]" +syn match webmacroComment "##.*$" +syn match webmacroHash "[#{}\$]" contained + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link webmacroComment CommentTitle +hi def link webmacroVariable PreProc +hi def link webmacroIf webmacroStatement +hi def link webmacroForeach webmacroStatement +hi def link webmacroSet webmacroStatement +hi def link webmacroInclude webmacroStatement +hi def link webmacroParse webmacroStatement +hi def link webmacroStatement Function +hi def link webmacroNumber Number +hi def link webmacroBoolean Boolean +hi def link webmacroSpecial Special +hi def link webmacroString String +hi def link webmacroBracesError Error + +let b:current_syntax = "webmacro" + +if main_syntax == 'webmacro' + unlet main_syntax +endif diff --git a/git/usr/share/vim/vim92/syntax/wget.vim b/git/usr/share/vim/vim92/syntax/wget.vim new file mode 100644 index 0000000000000000000000000000000000000000..8d642b14115138b5cf44b6d90d78269d675f5f79 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wget.vim @@ -0,0 +1,241 @@ +" Vim syntax file +" Language: Wget configuration file (/etc/wgetrc ~/.wgetrc) +" Maintainer: Doug Kearns +" Last Change: 2026 Jan 07 + +" GNU Wget 1.25 built on linux-gnu. + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match wgetComment "#.*" contains=wgetTodo contained + +syn keyword wgetTodo TODO NOTE FIXME XXX contained + +syn region wgetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline +syn region wgetString start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline + +syn case ignore + +syn keyword wgetBoolean on off yes no contained +syn keyword wgetNumber inf contained +syn match wgetNumber "\<\d\+>" contained +syn match wgetQuota "\<\d\+[kmgt]\>" contained +syn match wgetTime "\<\d\+[smhdw]\>" contained + +"{{{ Commands +let s:commands =<< trim EOL + accept + accept-regex + add-host-dir + adjust-extension + always-rest + ask-password + auth-no-challenge + background + backup-converted + backups + base + bind-address + bind-dns-address + body-data + body-file + ca-certificate + ca-directory + cache + certificate + certificate-type + check-certificate + choose-config + ciphers + compression + connect-timeout + content-disposition + content-on-error + continue + convert-file-only + convert-links + cookies + crl-file + cut-dirs + debug + default-page + delete-after + dns-cache + dns-servers + dns-timeout + dir-prefix + dir-struct + domains + dot-bytes + dots-in-line + dot-spacing + dot-style + egd-file + exclude-directories + exclude-domains + follow-ftp + follow-tags + force-html + ftp-passwd + ftp-password + ftp-user + ftp-proxy + ftps-clear-data-connection + ftps-fallback-to-ftp + ftps-implicit + ftps-resume-ssl + hsts + hsts-file + ftp-stmlf + glob + header + html-extension + htmlify + http-keep-alive + http-passwd + http-password + http-proxy + https-proxy + https-only + http-user + if-modified-since + ignore-case + ignore-length + ignore-tags + include-directories + inet4-only + inet6-only + input + input-meta-link + iri + keep-bad-hash + keep-session-cookies + kill-longer + limit-rate + load-cookies + locale + local-encoding + logfile + login + max-redirect + metalink-index + metalink-over-http + method + mirror + netrc + no-clobber + no-config + no-parent + no-proxy + numtries + output-document + page-requisites + passive-ftp + passwd + password + pinned-pubkey + post-data + post-file + prefer-family + preferred-location + preserve-permissions + private-key + private-key-type + progress + protocol-directories + proxy-passwd + proxy-password + proxy-user + quiet + quota + random-file + random-wait + read-timeout + rec-level + recursive + referer + regex-type + reject + rejected-log + reject-regex + relative-only + remote-encoding + remove-listing + report-speed + restrict-file-names + retr-symlinks + retry-connrefused + retry-on-host-error + retry-on-http-error + robots + save-cookies + save-headers + secure-protocol + server-response + show-all-dns-entries + show-progress + simple-host-check + span-hosts + spider + start-pos + strict-comments + sslcertfile + sslcertkey + timeout + timestamping + use-server-timestamps + tries + trust-server-names + unlink + use-askpass + user + use-proxy + user-agent + verbose + wait + wait-retry + warc-cdx + warc-cdx-dedup + warc-compression + warc-digests + warc-file + warc-header + warc-keep-log + warc-max-size + warc-temp-dir + wdebug + xattr +EOL +"}}} + +for cmd in s:commands + exe 'syn match wgetCommand "\<' .. substitute(cmd, '-', '[-_]\\=', "g") .. '\>" nextgroup=wgetAssignmentOperator skipwhite contained' +endfor +unlet s:commands + +syn case match + +syn match wgetLineStart "^" nextgroup=wgetCommand,wgetComment skipwhite +syn match wgetAssignmentOperator "=" nextgroup=wgetString,wgetBoolean,wgetNumber,wgetQuota,wgetTime skipwhite contained + +hi def link wgetAssignmentOperator Special +hi def link wgetBoolean Boolean +hi def link wgetCommand Identifier +hi def link wgetComment Comment +hi def link wgetNumber Number +hi def link wgetQuota Number +hi def link wgetString String +hi def link wgetTime Number +hi def link wgetTodo Todo + +let b:current_syntax = "wget" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 fdm=marker: diff --git a/git/usr/share/vim/vim92/syntax/wget2.vim b/git/usr/share/vim/vim92/syntax/wget2.vim new file mode 100644 index 0000000000000000000000000000000000000000..f256d53e6a55694ae4aa2b802c643104b2e6161a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wget2.vim @@ -0,0 +1,251 @@ +" Vim syntax file +" Language: Wget2 configuration file (/etc/wget2rc ~/.wget2rc) +" Maintainer: Doug Kearns +" Last Change: 2026 Jan 07 + +" GNU Wget2 2.2.1 - multithreaded metalink/file/website downloader + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn match wget2Comment "#.*" contains=wget2Todo contained + +syn keyword wget2Todo TODO NOTE FIXME XXX contained + +syn region wget2String start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline +syn region wget2String start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline + +syn case ignore + +syn keyword wget2Boolean on off yes no y n contained +syn keyword wget2Number infinity inf contained +syn match wget2Number "\<\d\+>" contained +syn match wget2Quota "\<\d\+[kmgt]\>" contained +syn match wget2Time "\<\d\+[smhd]\>" contained + +"{{{ Commands +let s:commands =<< trim EOL + accept + accept-regex + adjust-extension + append-output + ask-password + auth-no-challenge + background + backup-converted + backups + base + bind-address + bind-interface + body-data + body-file + ca-certificate + ca-directory + cache + certificate + certificate-type + check-certificate + check-hostname + chunk-size + clobber + compression + config + connect-timeout + content-disposition + content-on-error + continue + convert-file-only + convert-links + cookie-suffixes + cookies + crl-file + cut-dirs + cut-file-get-vars + cut-url-get-vars + dane + debug + default-http-port + default-https-port + default-page + delete-after + directories + directory-prefix + dns-cache + dns-cache-preload + dns-timeout + domains + download-attr + egd-file + exclude-directories + exclude-domains + execute + filter-mime-type + filter-urls + follow-sitemaps + follow-tags + force-atom + force-css + force-directories + force-html + force-metalink + force-progress + force-rss + force-sitemap + fsync-policy + gnupg-homedir + header + help + host-directories + hpkp + hpkp-file + hsts + hsts-file + hsts-preload + hsts-preload-file + html-extension + http-keep-alive + http-password + http-proxy + http-proxy-password + http-proxy-user + http-user + http2 + http2-only + http2-request-window + https-enforce + https-only + https-proxy + hyperlink + if-modified-since + ignore-case + ignore-length + ignore-tags + include-directories + inet4-only + inet6-only + input-encoding + input-file + keep-extension + keep-session-cookies + level + limit-rate + list-plugins + load-cookies + local-db + local-encoding + local-plugin + max-redirect + max-threads + metalink + method + mirror + netrc + netrc-file + ocsp + ocsp-date + ocsp-file + ocsp-nonce + ocsp-server + ocsp-stapling + output-document + output-file + page-requisites + parent + password + plugin + plugin-dirs + plugin-help + plugin-opt + post-data + post-file + prefer-family + private-key + private-key-type + progress + protocol-directories + proxy + quiet + quota + random-file + random-wait + read-timeout + recursive + referer + regex-type + reject + reject-regex + remote-encoding + report-speed + restrict-file-names + retry-connrefused + retry-on-http-error + robots + save-content-on + save-cookies + save-headers + secure-protocol + server-response + show-progress + signature-extensions + span-hosts + spider + start-pos + stats-dns + stats-ocsp + stats-server + stats-site + stats-tls + strict-comments + tcp-fastopen + timeout + timestamping + tls-false-start + tls-resume + tls-session-file + tries + trust-server-names + unlink + use-askpass + use-server-timestamps + user + user-agent + verbose + verify-save-failed + verify-sig + version + wait + waitretry + xattr +EOL +"}}} + +for cmd in s:commands + exe 'syn match wget2Command "\<\%(no[-_]\)\=' .. substitute(cmd, '-', '[-_]\\=', "g") .. '\>" nextgroup=wget2AssignmentOperator skipwhite contained' +endfor +unlet s:commands + +syn case match + +syn match wget2LineStart "^" nextgroup=wget2Command,wget2Comment skipwhite +syn match wget2AssignmentOperator "=" nextgroup=wget2String,wget2Boolean,wget2Number,wget2Quota,wget2Time skipwhite contained + +hi def link wget2AssignmentOperator Special +hi def link wget2Boolean Boolean +hi def link wget2Command Identifier +hi def link wget2Comment Comment +hi def link wget2Number Number +hi def link wget2Quota Number +hi def link wget2String String +hi def link wget2Time Number +hi def link wget2Todo Todo + +let b:current_syntax = "wget2" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 fdm=marker: diff --git a/git/usr/share/vim/vim92/syntax/whitespace.vim b/git/usr/share/vim/vim92/syntax/whitespace.vim new file mode 100644 index 0000000000000000000000000000000000000000..4d2e32eb71848c66c2b9853e04e7b992b0ceb511 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/whitespace.vim @@ -0,0 +1,13 @@ +" Simplistic way to make spaces and Tabs visible + +" This can be added to an already active syntax. + +syn match Space " " +syn match Tab "\t" +if &background == "dark" + hi def Space ctermbg=darkred guibg=#500000 + hi def Tab ctermbg=darkgreen guibg=#003000 +else + hi def Space ctermbg=lightred guibg=#ffd0d0 + hi def Tab ctermbg=lightgreen guibg=#d0ffd0 +endif diff --git a/git/usr/share/vim/vim92/syntax/winbatch.vim b/git/usr/share/vim/vim92/syntax/winbatch.vim new file mode 100644 index 0000000000000000000000000000000000000000..15ea0fc77bd774680b8011174a7ff7a55ff119a4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/winbatch.vim @@ -0,0 +1,174 @@ +" Vim syntax file +" Language: WinBatch/Webbatch (*.wbt, *.web) +" Maintainer: dominique@mggen.com +" URL: http://www.mggen.com/vim/syntax/winbatch.zip +" Last change: 2001 May 10 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +syn keyword winbatchCtl if then else endif break end return exit next +syn keyword winbatchCtl while for gosub goto switch select to case +syn keyword winbatchCtl endselect endwhile endselect endswitch + +" String +syn region winbatchVar start=+%+ end=+%+ +" %var% in strings +syn region winbatchString start=+"+ end=+"+ contains=winbatchVar + +syn match winbatchComment ";.*$" +syn match winbatchLabel "^\ *:[0-9a-zA-Z_\-]\+\>" + +" constant (bezgin by @) +syn match winbatchConstant "@[0_9a-zA-Z_\-]\+" + +" number +syn match winbatchNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>" + +syn keyword winbatchImplicit aboveicons acc_attrib acc_chng_nt acc_control acc_create +syn keyword winbatchImplicit acc_delete acc_full_95 acc_full_nt acc_list acc_pfull_nt +syn keyword winbatchImplicit acc_pmang_nt acc_print_nt acc_read acc_read_95 acc_read_nt +syn keyword winbatchImplicit acc_write amc arrange ascending attr_a attr_a attr_ci attr_ci +syn keyword winbatchImplicit attr_dc attr_dc attr_di attr_di attr_dm attr_dm attr_h attr_h +syn keyword winbatchImplicit attr_ic attr_ic attr_p attr_p attr_ri attr_ri attr_ro attr_ro +syn keyword winbatchImplicit attr_sh attr_sh attr_sy attr_sy attr_t attr_t attr_x attr_x +syn keyword winbatchImplicit avogadro backscan boltzmann cancel capslock check columns +syn keyword winbatchImplicit commonformat cr crlf ctrl default default deg2rad descending +syn keyword winbatchImplicit disable drive electric enable eulers false faraday float8 +syn keyword winbatchImplicit fwdscan gftsec globalgroup gmtsec goldenratio gravitation hidden +syn keyword winbatchImplicit icon lbutton lclick ldblclick lf lightmps lightmtps localgroup +syn keyword winbatchImplicit magfield major mbokcancel mbutton mbyesno mclick mdblclick minor +syn keyword winbatchImplicit msformat multiple ncsaformat no none none noresize normal +syn keyword winbatchImplicit notify nowait numlock off on open parsec parseonly pi +syn keyword winbatchImplicit planckergs planckjoules printer rad2deg rbutton rclick rdblclick +syn keyword winbatchImplicit regclasses regcurrent regmachine regroot regusers rows save +syn keyword winbatchImplicit scrolllock server shift single sorted stack string tab tile +syn keyword winbatchImplicit true uncheck unsorted wait wholesection word1 word2 word4 yes +syn keyword winbatchImplicit zoomed about abs acos addextender appexist appwaitclose asin +syn keyword winbatchImplicit askfilename askfiletext askitemlist askline askpassword askyesno +syn keyword winbatchImplicit atan average beep binaryalloc binarycopy binaryeodget binaryeodset +syn keyword winbatchImplicit binaryfree binaryhashrec binaryincr binaryincr2 binaryincr4 +syn keyword winbatchImplicit binaryincrflt binaryindex binaryindexnc binaryoletype binarypeek +syn keyword winbatchImplicit binarypeek2 binarypeek4 binarypeekflt binarypeekstr binarypoke +syn keyword winbatchImplicit binarypoke2 binarypoke4 binarypokeflt binarypokestr binaryread +syn keyword winbatchImplicit binarysort binarystrcnt binarywrite boxbuttondraw boxbuttonkill +syn keyword winbatchImplicit boxbuttonstat boxbuttonwait boxcaption boxcolor +syn keyword winbatchImplicit boxdataclear boxdatatag +syn keyword winbatchImplicit boxdestroy boxdrawcircle boxdrawline boxdrawrect boxdrawtext +syn keyword winbatchImplicit boxesup boxmapmode boxnew boxopen boxpen boxshut boxtext boxtextcolor +syn keyword winbatchImplicit boxtextfont boxtitle boxupdates break buttonnames by call +syn keyword winbatchImplicit callext ceiling char2num clipappend clipget clipput +syn keyword winbatchImplicit continue cos cosh datetime +syn keyword winbatchImplicit ddeexecute ddeinitiate ddepoke dderequest ddeterminate +syn keyword winbatchImplicit ddetimeout debug debugdata decimals delay dialog +syn keyword winbatchImplicit dialogbox dirattrget dirattrset dirchange direxist +syn keyword winbatchImplicit dirget dirhome diritemize dirmake dirremove dirrename +syn keyword winbatchImplicit dirwindows diskexist diskfree diskinfo diskscan disksize +syn keyword winbatchImplicit diskvolinfo display dllcall dllfree dllhinst dllhwnd dllload +syn keyword winbatchImplicit dosboxcursorx dosboxcursory dosboxgetall dosboxgetdata +syn keyword winbatchImplicit dosboxheight dosboxscrmode dosboxversion dosboxwidth dosversion +syn keyword winbatchImplicit drop edosgetinfo edosgetvar edoslistvars edospathadd edospathchk +syn keyword winbatchImplicit edospathdel edossetvar +syn keyword winbatchImplicit endsession envgetinfo envgetvar environment +syn keyword winbatchImplicit environset envitemize envlistvars envpathadd envpathchk +syn keyword winbatchImplicit envpathdel envsetvar errormode exclusive execute exetypeinfo +syn keyword winbatchImplicit exp fabs fileappend fileattrget fileattrset fileclose +syn keyword winbatchImplicit filecompare filecopy filedelete fileexist fileextension filefullname +syn keyword winbatchImplicit fileitemize filelocate filemapname filemove filenameeval1 +syn keyword winbatchImplicit filenameeval2 filenamelong filenameshort fileopen filepath +syn keyword winbatchImplicit fileread filerename fileroot filesize filetimecode filetimeget +syn keyword winbatchImplicit filetimeset filetimetouch fileverinfo filewrite fileymdhms +syn keyword winbatchImplicit findwindow floor getexacttime gettickcount +syn keyword winbatchImplicit iconarrange iconreplace ignoreinput inidelete inideletepvt +syn keyword winbatchImplicit iniitemize iniitemizepvt iniread inireadpvt iniwrite iniwritepvt +syn keyword winbatchImplicit installfile int intcontrol isdefined isfloat isint iskeydown +syn keyword winbatchImplicit islicensed isnumber itemcount itemextract iteminsert itemlocate +syn keyword winbatchImplicit itemremove itemselect itemsort keytoggleget keytoggleset +syn keyword winbatchImplicit lasterror log10 logdisk loge max message min mod mouseclick +syn keyword winbatchImplicit mouseclickbtn mousedrag mouseinfo mousemove msgtextget n3attach +syn keyword winbatchImplicit n3captureend n3captureprt n3chgpassword n3detach n3dirattrget +syn keyword winbatchImplicit n3dirattrset n3drivepath n3drivepath2 n3drivestatus n3fileattrget +syn keyword winbatchImplicit n3fileattrset n3getloginid n3getmapped n3getnetaddr n3getuser +syn keyword winbatchImplicit n3getuserid n3logout n3map n3mapdelete n3mapdir n3maproot n3memberdel +syn keyword winbatchImplicit n3memberget n3memberset n3msgsend n3msgsendall n3serverinfo +syn keyword winbatchImplicit n3serverlist n3setsrchdrv n3usergroups n3version n4attach +syn keyword winbatchImplicit n4captureend n4captureprt n4chgpassword n4detach n4dirattrget +syn keyword winbatchImplicit n4dirattrset n4drivepath n4drivestatus n4fileattrget n4fileattrset +syn keyword winbatchImplicit n4getloginid n4getmapped n4getnetaddr n4getuser n4getuserid +syn keyword winbatchImplicit n4login n4logout n4map n4mapdelete n4mapdir n4maproot n4memberdel +syn keyword winbatchImplicit n4memberget n4memberset n4msgsend n4msgsendall n4serverinfo +syn keyword winbatchImplicit n4serverlist n4setsrchdrv n4usergroups n4version netadddrive +syn keyword winbatchImplicit netaddprinter netcancelcon netdirdialog netgetcon netgetuser +syn keyword winbatchImplicit netinfo netresources netversion num2char objectclose +syn keyword winbatchImplicit objectopen parsedata pause playmedia playmidi playwaveform +syn keyword winbatchImplicit print random regapp regclosekey regconnect regcreatekey +syn keyword winbatchImplicit regdeletekey regdelvalue regentrytype regloadhive regopenkey +syn keyword winbatchImplicit regquerybin regquerydword regqueryex regqueryexpsz regqueryitem +syn keyword winbatchImplicit regquerykey regquerymulsz regqueryvalue regsetbin +syn keyword winbatchImplicit regsetdword regsetex regsetexpsz regsetmulsz regsetvalue +syn keyword winbatchImplicit regunloadhive reload reload rtstatus run runenviron +syn keyword winbatchImplicit runexit runhide runhidewait runicon runiconwait runshell runwait +syn keyword winbatchImplicit runzoom runzoomwait sendkey sendkeyschild sendkeysto +syn keyword winbatchImplicit sendmenusto shellexecute shortcutedit shortcutextra shortcutinfo +syn keyword winbatchImplicit shortcutmake sin sinh snapshot sounds sqrt +syn keyword winbatchImplicit srchfree srchinit srchnext strcat strcharcount strcmp +syn keyword winbatchImplicit strfill strfix strfixchars stricmp strindex strlen +syn keyword winbatchImplicit strlower strreplace strscan strsub strtrim strupper +syn keyword winbatchImplicit tan tanh tcpaddr2host tcpftpchdir tcpftpclose tcpftpget +syn keyword winbatchImplicit tcpftplist tcpftpmode tcpftpopen tcpftpput tcphost2addr tcphttpget +syn keyword winbatchImplicit tcphttppost tcpparmget tcpparmset tcpping tcpsmtp terminate +syn keyword winbatchImplicit textbox textboxsort textoutbufdel textoutbuffer textoutdebug +syn keyword winbatchImplicit textoutfree textoutinfo textoutreset textouttrack textouttrackb +syn keyword winbatchImplicit textouttrackp textoutwait textselect timeadd timedate +syn keyword winbatchImplicit timedelay timediffdays timediffsecs timejulianday timejultoymd +syn keyword winbatchImplicit timesubtract timewait timeymdhms version versiondll +syn keyword winbatchImplicit w3addcon w3cancelcon w3dirbrowse w3getcaps w3getcon w3netdialog +syn keyword winbatchImplicit w3netgetuser w3prtbrowse w3version w95accessadd w95accessdel +syn keyword winbatchImplicit w95adddrive w95addprinter w95cancelcon w95dirdialog w95getcon +syn keyword winbatchImplicit w95getuser w95resources w95shareadd w95sharedel w95shareset +syn keyword winbatchImplicit w95version waitforkey wallpaper webbaseconv webcloselog +syn keyword winbatchImplicit webcmddata webcondata webcounter webdatdata webdumperror webhashcode +syn keyword winbatchImplicit webislocal weblogline webopenlog webout weboutfile webparamdata +syn keyword winbatchImplicit webparamnames websettimeout webverifycard winactivate +syn keyword winbatchImplicit winactivchild winarrange winclose winclosenot winconfig winexename +syn keyword winbatchImplicit winexist winparset winparget winexistchild wingetactive +syn keyword winbatchImplicit winhelp winhide winiconize winidget winisdos winitemchild +syn keyword winbatchImplicit winitemize winitemnameid winmetrics winname winparmget +syn keyword winbatchImplicit winparmset winplace winplaceget winplaceset +syn keyword winbatchImplicit winposition winresources winshow winstate winsysinfo +syn keyword winbatchImplicit wintitle winversion winwaitchild winwaitclose winwaitexist +syn keyword winbatchImplicit winzoom wnaddcon wncancelcon wncmptrinfo wndialog +syn keyword winbatchImplicit wndlgbrowse wndlgcon wndlgcon2 wndlgcon3 +syn keyword winbatchImplicit wndlgcon4 wndlgdiscon wndlgnoshare wndlgshare wngetcaps +syn keyword winbatchImplicit wngetcon wngetuser wnnetnames wnrestore wnservers wnsharecnt +syn keyword winbatchImplicit wnsharename wnsharepath wnshares wntaccessadd wntaccessdel +syn keyword winbatchImplicit wntaccessget wntadddrive wntaddprinter wntcancelcon wntdirdialog +syn keyword winbatchImplicit wntgetcon wntgetuser wntlistgroups wntmemberdel wntmemberget +syn keyword winbatchImplicit wntmembergrps wntmemberlist wntmemberset wntresources wntshareadd +syn keyword winbatchImplicit wntsharedel wntshareset wntversion wnversion wnwrkgroups wwenvunload +syn keyword winbatchImplicit xbaseconvert xcursorset xdisklabelget xdriveready xextenderinfo +syn keyword winbatchImplicit xgetchildhwnd xgetelapsed xhex xmemcompact xmessagebox +syn keyword winbatchImplicit xsendmessage xverifyccard yield + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link winbatchLabel PreProc +hi def link winbatchCtl Operator +hi def link winbatchStatement Statement +hi def link winbatchTodo Todo +hi def link winbatchString String +hi def link winbatchVar Type +hi def link winbatchComment Comment +hi def link winbatchImplicit Special +hi def link winbatchNumber Number +hi def link winbatchConstant StorageClass + + +let b:current_syntax = "winbatch" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/wks.vim b/git/usr/share/vim/vim92/syntax/wks.vim new file mode 100644 index 0000000000000000000000000000000000000000..1d242ada128d25badc176d77b7858cd113853405 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wks.vim @@ -0,0 +1,29 @@ +" Vim syntax file +" Language: OpenEmbedded Image Creator (WIC) Kickstarter files wks +" Maintainer: Anakin Childerhose +" Last Change: 2026 Mar 23 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn case match + +syn match wksComment "#.*$" +syn match wksCommand "\" +syn match wksCommand "\<\(part\|partition\)\>" skipwhite nextgroup=wksMountPoint +syn match wksMountPoint "\(/[^ \t]*\|swap\)" contained + +syn match wksOption "--[a-zA-Z_-]\+" + +hi def link wksComment Comment +hi def link wksCommand Statement +hi def link wksMountPoint Identifier +hi def link wksOption Special + +let b:current_syntax = "wks" +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/wml.vim b/git/usr/share/vim/vim92/syntax/wml.vim new file mode 100644 index 0000000000000000000000000000000000000000..73bf822e408952b741daf0b373016079d78b5c5c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wml.vim @@ -0,0 +1,150 @@ +" Vim syntax file +" Language: WML - Website MetaLanguage +" Maintainer: Gerfried Fuchs +" Filenames: *.wml +" Last Change: 07 Feb 2002 +" URL: http://alfie.ist.org/software/vim/syntax/wml.vim +" +" Original Version: Craig Small + +" Comments are very welcome - but please make sure that you are commenting on +" the latest version of this file. +" SPAM is _NOT_ welcome - be ready to be reported! + +" If you are looking for the "Wireless Markup Language" syntax file, +" please take a look at the wap.vim file done by Ralf Schandl, soon in a +" vim-package around your corner :) + + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" A lot of the web stuff looks like HTML so we load that first +runtime! syntax/html.vim +unlet b:current_syntax + +if !exists("main_syntax") + let main_syntax = 'wml' +endif + +" special character +syn match wmlNextLine "\\$" + +" Redfine htmlTag +syn clear htmlTag +syn region htmlTag start=+<[^/<]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition + +" +" Add in extra Arguments used by wml +syn keyword htmlTagName contained gfont imgbg imgdot lowsrc +syn keyword htmlTagName contained navbar:define navbar:header +syn keyword htmlTagName contained navbar:footer navbar:prolog +syn keyword htmlTagName contained navbar:epilog navbar:button +syn keyword htmlTagName contained navbar:filter navbar:debug +syn keyword htmlTagName contained navbar:render +syn keyword htmlTagName contained preload rollover +syn keyword htmlTagName contained space hspace vspace over +syn keyword htmlTagName contained ps ds pi ein big sc spaced headline +syn keyword htmlTagName contained ue subheadline zwue verbcode +syn keyword htmlTagName contained isolatin pod sdf text url verbatim +syn keyword htmlTagName contained xtable +syn keyword htmlTagName contained csmap fsview import box +syn keyword htmlTagName contained case:upper case:lower +syn keyword htmlTagName contained grid cell info lang: logo page +syn keyword htmlTagName contained set-var restore +syn keyword htmlTagName contained array:push array:show set-var ifdef +syn keyword htmlTagName contained say m4 symbol dump enter divert +syn keyword htmlTagName contained toc +syn keyword htmlTagName contained wml card do refresh oneevent catch spawn + +" +" The wml arguments +syn keyword htmlArg contained adjust background base bdcolor bdspace +syn keyword htmlArg contained bdwidth complete copyright created crop +syn keyword htmlArg contained direction description domainname eperlfilter +syn keyword htmlArg contained file hint imgbase imgstar interchar interline +syn keyword htmlArg contained keephr keepindex keywords layout spacing +syn keyword htmlArg contained padding nonetscape noscale notag notypo +syn keyword htmlArg contained onload oversrc pos select slices style +syn keyword htmlArg contained subselected txtcol_select txtcol_normal +syn keyword htmlArg contained txtonly via +syn keyword htmlArg contained mode columns localsrc ordered + + +" Lines starting with an # are usually comments +syn match wmlComment "^\s*#.*" +" The different exceptions to comments +syn match wmlSharpBang "^#!.*" +syn match wmlUsed contained "\s\s*[A-Za-z:_-]*" +syn match wmlUse "^\s*#\s*use\s\+" contains=wmlUsed +syn match wmlInclude "^\s*#\s*include.+" + +syn region wmlBody contained start=+<<+ end=+>>+ + +syn match wmlLocationId contained "[A-Za-z]\+" +syn region wmlLocation start=+<<+ end=+>>+ contains=wmlLocationId +"syn region wmlLocation start=+{#+ end=+#}+ contains=wmlLocationId +"syn region wmlLocationed contained start=+<<+ end=+>>+ contains=wmlLocationId + +syn match wmlDivert "\.\.[a-zA-Z_]\+>>" +syn match wmlDivertEnd "<<\.\." +" new version +"syn match wmlDivert "{#[a-zA-Z_]\+#:" +"syn match wmlDivertEnd ":##}" + +syn match wmlDefineName contained "\s\+[A-Za-z-]\+" +syn region htmlTagName start="\<\(define-tag\|define-region\)" end="\>" contains=wmlDefineName + +" The perl include stuff +if main_syntax != 'perl' + " Perl script + syn include @wmlPerlScript syntax/perl.vim + unlet b:current_syntax + + syn region perlScript start=++ keepend end=++ contains=@wmlPerlScript,wmlPerlTag +" eperl between '<:' and ':>' -- Alfie [1999-12-26] + syn region perlScript start=+<:+ keepend end=+:>+ contains=@wmlPerlScript,wmlPerlTag + syn match wmlPerlTag contained "" contains=wmlPerlTagN + syn keyword wmlPerlTagN contained perl + + hi link wmlPerlTag htmlTag + hi link wmlPerlTagN htmlStatement +endif + +" verbatim tags -- don't highlight anything in between -- Alfie [2002-02-07] +syn region wmlVerbatimText start=++ keepend end=++ contains=wmlVerbatimTag +syn match wmlVerbatimTag contained "" contains=wmlVerbatimTagN +syn keyword wmlVerbatimTagN contained verbatim +hi link wmlVerbatimTag htmlTag +hi link wmlVerbatimTagN htmlStatement + +if main_syntax == "html" + syn sync match wmlHighlight groupthere NONE "" + syn sync match wmlHighlightSkip "^.*['\"].*$" + syn sync minlines=10 +endif + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link wmlNextLine Special +hi def link wmlUse Include +hi def link wmlUsed String +hi def link wmlBody Special +hi def link wmlDiverted Label +hi def link wmlDivert Delimiter +hi def link wmlDivertEnd Delimiter +hi def link wmlLocationId Label +hi def link wmlLocation Delimiter +" hi def link wmlLocationed Delimiter +hi def link wmlDefineName String +hi def link wmlComment Comment +hi def link wmlInclude Include +hi def link wmlSharpBang PreProc + + +let b:current_syntax = "wml" diff --git a/git/usr/share/vim/vim92/syntax/wsh.vim b/git/usr/share/vim/vim92/syntax/wsh.vim new file mode 100644 index 0000000000000000000000000000000000000000..4b664a177e5b95e97e9dd0ad8322434edafecee3 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wsh.vim @@ -0,0 +1,45 @@ +" Vim syntax file +" Language: Windows Scripting Host +" Maintainer: Paul Moore +" Last Change: Fre, 24 Nov 2000 21:54:09 +0100 + +" This reuses the XML, VB and JavaScript syntax files. While VB is not +" VBScript, it's close enough for us. No attempt is made to handle +" other languages. +" Send comments, suggestions and requests to the maintainer. + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:wsh_cpo_save = &cpo +set cpo&vim + +runtime! syntax/xml.vim +unlet b:current_syntax + +syn case ignore +syn include @wshVBScript :p:h/vb.vim +unlet b:current_syntax +syn include @wshJavaScript :p:h/javascript.vim +unlet b:current_syntax +syn region wshVBScript + \ matchgroup=xmlTag start="]*VBScript\(>\|[^>]*[^/>]>\)" + \ matchgroup=xmlEndTag end="" + \ fold + \ contains=@wshVBScript + \ keepend +syn region wshJavaScript + \ matchgroup=xmlTag start="]*J\(ava\)\=Script\(>\|[^>]*[^/>]>\)" + \ matchgroup=xmlEndTag end="" + \ fold + \ contains=@wshJavaScript + \ keepend + +syn cluster xmlRegionHook add=wshVBScript,wshJavaScript + +let b:current_syntax = "wsh" + +let &cpo = s:wsh_cpo_save +unlet s:wsh_cpo_save diff --git a/git/usr/share/vim/vim92/syntax/wsml.vim b/git/usr/share/vim/vim92/syntax/wsml.vim new file mode 100644 index 0000000000000000000000000000000000000000..d01294caac627b500d9b0a6a9f3192b81cb957dc --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wsml.vim @@ -0,0 +1,113 @@ +" Vim syntax file +" Language: WSML +" Maintainer: Thomas Haselwanter +" URL: none +" Last Change: 2006 Apr 30 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" WSML +syn keyword wsmlHeader wsmlVariant +syn keyword wsmlNamespace namespace +syn keyword wsmlTopLevel concept instance relationInstance ofType usesMediator usesService relation sharedVariables importsOntology +syn keyword wsmlOntology hasValue memberOf ofType impliesType subConceptOf +syn keyword wsmlAxiom axiom definedBy +syn keyword wsmlService assumption effect postcondition precondition capability interface +syn keyword wsmlTopLevel ooMediator wwMediator wgMediator ggMediator +syn keyword wsmlMediation usesService source target +syn match wsmlDataTypes "\( _string\| _decimal\| _integer\| _float\| _double\| _iri\| _sqname\| _boolean\| _duration\| _dateTime\| _time\| _date\| _gyearmonth\| _gyear\| _gmonthday\| _gday\| _gmonth\| _hexbinary\| _base64binary\)\((\S*)\)\?" contains=wsmlString,wsmlNumber,wsmlCharacter +syn keyword wsmlTopLevel goal webService ontology +syn keyword wsmlKeywordsInsideLEs true false memberOf hasValue subConceptOf ofType impliesType and or implies impliedBy equivalent neg naf forall exists +syn keyword wsmlNFP nfp endnfp nonFunctionalProperties endNonFunctionalProperties +syn region wsmlNFPregion start="nfp\|nonFunctionalProperties" end="endnfp\|endNonFunctionalProperties" contains=ALL +syn region wsmlNamespace start="namespace" end="}" contains=wsmlIdentifier +syn match wsmlOperator "!=\|:=:\|=<\|>=\|=\|+\|\*\|/\|<->\|->\|<-\|:-\|!-\|-\|<\|>" +syn match wsmlBrace "(\|)\|\[\|\]\|{\|}" +syn match wsmlIdentifier +_"\S*"+ +syn match wsmlIdentifier "_#\d*" +syn match wsmlSqName "[0-9A-Za-z]\+#[0-9A-Za-z]\+" +syn match wsmlVariable "?[0-9A-Za-z]\+" + +" ASM-specific code +syn keyword wsmlBehavioral choreography orchestration transitionRules +syn keyword wsmlChoreographyPri stateSignature in out shared static controlled +syn keyword wsmlChoreographySec with do withGrounding forall endForall choose if then endIf +syn match wsmlChoreographyTer "\(\s\|\_^\)\(add\|delete\|update\)\s*(.*)" contains=wsmlKeywordsInsideLEs,wsmlIdentifier,wsmlSqName,wsmlString,wsmlNumber,wsmlDataTypes,wsmlVariable + +" Comments +syn keyword wsmlTodo contained TODO +syn keyword wsmlFixMe contained FIXME +if exists("wsml_comment_strings") + syn region wsmlCommentString contained start=+"+ end=+"+ end=+$+ end=+\*/+me=s-1,he=s-1 contains=wsmlSpecial,wsmlCommentStar,wsmlSpecialChar,@Spell + syn region wsmlComment2String contained start=+"+ end=+$\|"+ contains=wsmlSpecial,wsmlSpecialChar,@Spell + syn match wsmlCommentCharacter contained "'\\[^']\{1,6\}'" contains=wsmlSpecialChar + syn match wsmlCommentCharacter contained "'\\''" contains=wsmlSpecialChar + syn match wsmlCommentCharacter contained "'[^\\]'" + syn cluster wsmlCommentSpecial add=wsmlCommentString,wsmlCommentCharacter,wsmlNumber + syn cluster wsmlCommentSpecial2 add=wsmlComment2String,wsmlCommentCharacter,wsmlNumber +endif + +syn region wsmlComment start="/\*" end="\*/" contains=@wsmlCommentSpecial,wsmlTodo,wsmlFixMe,@Spell +syn match wsmlCommentStar contained "^\s*\*[^/]"me=e-1 +syn match wsmlCommentStar contained "^\s*\*$" +syn match wsmlLineComment "//.*" contains=@wsmlCommentSpecial2,wsmlTodo,@Spell + +syn cluster wsmlTop add=wsmlComment,wsmlLineComment + +"match the special comment /**/ +syn match wsmlComment "/\*\*/" + +" Strings +syn region wsmlString start=+"+ end=+"+ contains=wsmlSpecialChar,wsmlSpecialError,@Spell +syn match wsmlCharacter "'[^']*'" contains=javaSpecialChar,javaSpecialCharError +syn match wsmlCharacter "'\\''" contains=javaSpecialChar +syn match wsmlCharacter "'[^\\]'" +syn match wsmlNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>" +syn match wsmlNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\=" +syn match wsmlNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>" +syn match wsmlNumber "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>" + +" unicode characters +syn match wsmlSpecial "\\u\d\{4\}" + +syn cluster wsmlTop add=wsmlString,wsmlCharacter,wsmlNumber,wsmlSpecial,wsmlStringError + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +hi def link wsmlHeader TypeDef +hi def link wsmlNamespace TypeDef +hi def link wsmlOntology Statement +hi def link wsmlAxiom TypeDef +hi def link wsmlService TypeDef +hi def link wsmlNFP TypeDef +hi def link wsmlTopLevel TypeDef +hi def link wsmlMediation TypeDef +hi def link wsmlBehavioral TypeDef +hi def link wsmlChoreographyPri TypeDef +hi def link wsmlChoreographySec Operator +hi def link wsmlChoreographyTer Special +hi def link wsmlString String +hi def link wsmlIdentifier Normal +hi def link wsmlSqName Normal +hi def link wsmlVariable Define +hi def link wsmlKeywordsInsideLEs Operator +hi def link wsmlOperator Operator +hi def link wsmlBrace Operator +hi def link wsmlCharacter Character +hi def link wsmlNumber Number +hi def link wsmlDataTypes Special +hi def link wsmlComment Comment +hi def link wsmlDocComment Comment +hi def link wsmlLineComment Comment +hi def link wsmlTodo Todo +hi def link wsmlFixMe Error +hi def link wsmlCommentTitle SpecialComment +hi def link wsmlCommentStar wsmlComment + + +let b:current_syntax = "wsml" +let b:spell_options="contained" + diff --git a/git/usr/share/vim/vim92/syntax/wvdial.vim b/git/usr/share/vim/vim92/syntax/wvdial.vim new file mode 100644 index 0000000000000000000000000000000000000000..035138b655ede94c8dbb7c344fa356160a8c28c4 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/wvdial.vim @@ -0,0 +1,28 @@ +" Vim syntax file +" Language: Configuration file for WvDial +" Maintainer: Prahlad Vaidyanathan +" Last Update: Mon, 15 Oct 2001 09:39:03 Indian Standard Time + +" Quit if syntax file is already loaded +if exists("b:current_syntax") + finish +endif + +syn match wvdialComment "^;.*$"lc=1 +syn match wvdialComment "[^\\];.*$"lc=1 +syn match wvdialSection "^\s*\[.*\]" +syn match wvdialValue "=.*$"ms=s+1 +syn match wvdialValue "\s*[^ ;"' ]\+"lc=1 +syn match wvdialVar "^\s*\(Inherits\|Modem\|Baud\|Init.\|Phone\|Area\ Code\|Dial\ Prefix\|Dial\ Command\|Login\|Login\| Prompt\|Password\|Password\ Prompt\|PPPD\ Path\|Force\ Address\|Remote\ Name\|Carrier\ Check\|Stupid\ [Mm]ode\|New\ PPPD\|Default\ Reply\|Auto\ Reconnect\|SetVolume\|Username\)" +syn match wvdialEqual "=" + +" The default highlighting +hi def link wvdialComment Comment +hi def link wvdialSection PreProc +hi def link wvdialVar Identifier +hi def link wvdialValue String +hi def link wvdialEqual Statement + +let b:current_syntax = "wvdial" + +"EOF vim: tw=78:ft=vim:ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xbl.vim b/git/usr/share/vim/vim92/syntax/xbl.vim new file mode 100644 index 0000000000000000000000000000000000000000..97837e38ec23d3d72dce39ef5412d677894c6cb1 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xbl.vim @@ -0,0 +1,29 @@ +" Vim syntax file +" Language: XBL 1.0 +" Maintainer: Doug Kearns +" Latest Revision: 2007 November 5 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +runtime! syntax/xml.vim +unlet b:current_syntax + +syn include @javascriptTop syntax/javascript.vim +unlet b:current_syntax + +syn region xblJavascript + \ matchgroup=xmlCdataStart start=++ + \ contains=@javascriptTop keepend extend + +let b:current_syntax = "xbl" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xcompose.vim b/git/usr/share/vim/vim92/syntax/xcompose.vim new file mode 100644 index 0000000000000000000000000000000000000000..3637b9f3b686a4849668d899359525a51aaa1809 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xcompose.vim @@ -0,0 +1,37 @@ +" Vim syntax file +" Language: XCompose +" Maintainer: ObserverOfTime +" Filenames: .XCompose, Compose +" Last Change: 2023 Nov 09 + +" Comments +syn keyword xcomposeTodo contained TODO FIXME XXX +syn match xcomposeComment /#.*/ contains=xcomposeTodo + +" Includes +syn keyword xcomposeInclude include nextgroup=xcomposeFile skipwhite +syn match xcomposeFile /"\([^"]\|\\"\)\+"/ contained +syn match xcomposeSubstitution /%[HLS]/ contained containedin=xcomposeFile + +" Modifiers +syn keyword xcomposeModifier Ctrl Lock Caps Shift Alt Meta None +syn match xcomposeModifierPrefix /\s*\zs[!~]\ze\s*/ + +" Keysyms +syn match xcomposeKeysym /<[A-Za-z0-9_]\+>/ +syn match xcomposeKeysym /[A-Za-z0-9_]\+/ contained +syn match xcomposeString /"\([^"]\|\\"\)\+"/ contained nextgroup=xcomposeKeysym skipwhite +syn match xcomposeColon /:/ nextgroup=xcomposeKeysym,xcomposeString skipwhite + +hi def link xcomposeColon Delimiter +hi def link xcomposeComment Comment +hi def link xcomposeFile String +hi def link xcomposeInclude Include +hi def link xcomposeKeysym Constant +hi def link xcomposeModifier Function +hi def link xcomposeModifierPrefix Operator +hi def link xcomposeString String +hi def link xcomposeSubstitution Special +hi def link xcomposeTodo Todo + +let b:current_syntax = 'xcompose' diff --git a/git/usr/share/vim/vim92/syntax/xdefaults.vim b/git/usr/share/vim/vim92/syntax/xdefaults.vim new file mode 100644 index 0000000000000000000000000000000000000000..7da5969cdebf32de532ed97d8720f61b102b7b95 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xdefaults.vim @@ -0,0 +1,132 @@ +" Vim syntax file +" Language: X resources files like ~/.Xdefaults (xrdb) +" Maintainer: Johannes Zellner +" Author and previous maintainer: +" Gautam H. Mudunuri +" Last Change: Di, 09 Mai 2006 23:10:23 CEST +" $Id: xdefaults.vim,v 1.2 2007/05/05 17:19:40 vimboss Exp $ +" +" REFERENCES: +" xrdb manual page +" xrdb source: ftp://ftp.x.org/pub/R6.4/xc/programs/xrdb/xrdb.c + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" turn case on +syn case match + + +if !exists("xdefaults_no_colon_errors") + " mark lines which do not contain a colon as errors. + " This does not really catch all errors but only lines + " which contain at least two WORDS and no colon. This + " was done this way so that a line is not marked as + " error while typing (which would be annoying). + syntax match xdefaultsErrorLine "^\s*[a-zA-Z.*]\+\s\+[^: ]\+" +endif + + +" syn region xdefaultsLabel start=+^[^:]\{-}:+he=e-1 skip=+\\+ end="$" +syn match xdefaultsLabel +^[^:]\{-}:+he=e-1 contains=xdefaultsPunct,xdefaultsSpecial,xdefaultsLineEnd +syn region xdefaultsValue keepend start=+:+lc=1 skip=+\\+ end=+$+ contains=xdefaultsSpecial,xdefaultsLabel,xdefaultsLineEnd + +syn match xdefaultsSpecial contained +#override+ +syn match xdefaultsSpecial contained +#augment+ +syn match xdefaultsPunct contained +[.*:]+ +syn match xdefaultsLineEnd contained +\\$+ +syn match xdefaultsLineEnd contained +\\n\\$+ +syn match xdefaultsLineEnd contained +\\n$+ + + + +" COMMENTS + +" note, that the '!' must be at the very first position of the line +syn match xdefaultsComment "^!.*$" contains=xdefaultsTodo,@Spell + +" lines starting with a '#' mark and which are not preprocessor +" lines are skipped. This is not part of the xrdb documentation. +" It was reported by Bram Moolenaar and could be confirmed by +" having a look at xrdb.c:GetEntries() +syn match xdefaultsCommentH "^#.*$" +"syn region xdefaultsComment start="^#" end="$" keepend contains=ALL +syn region xdefaultsComment start="/\*" end="\*/" contains=xdefaultsTodo,@Spell + +syntax match xdefaultsCommentError "\*/" + +syn keyword xdefaultsTodo contained TODO FIXME XXX display + + + +" PREPROCESSOR STUFF + +syn region xdefaultsPreProc start="^\s*#\s*\(if\|ifdef\|ifndef\|elif\|else\|endif\)\>" skip="\\$" end="$" contains=xdefaultsSymbol +if !exists("xdefaults_no_if0") + syn region xdefaultsCppOut start="^\s*#\s*if\s\+0\>" end=".\|$" contains=xdefaultsCppOut2 + syn region xdefaultsCppOut2 contained start="0" end="^\s*#\s*\(endif\>\|else\>\|elif\>\)" contains=xdefaultsCppSkip + syn region xdefaultsCppSkip contained start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*#\s*endif\>" contains=xdefaultsCppSkip +endif +syn region xdefaultsIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+ +syn match xdefaultsIncluded contained "<[^>]*>" +syn match xdefaultsInclude "^\s*#\s*include\>\s*["<]" contains=xdefaultsIncluded +syn cluster xdefaultsPreProcGroup contains=xdefaultsPreProc,xdefaultsIncluded,xdefaultsInclude,xdefaultsDefine,xdefaultsCppOut,xdefaultsCppOut2,xdefaultsCppSkip +syn region xdefaultsDefine start="^\s*#\s*\(define\|undef\)\>" skip="\\$" end="$" contains=ALLBUT,@xdefaultsPreProcGroup,xdefaultsCommentH,xdefaultsErrorLine,xdefaultsLabel,xdefaultsValue +syn region xdefaultsPreProc start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@xdefaultsPreProcGroup,xdefaultsCommentH,xdefaultsErrorLine,xdefaultsLabel,xdefaultsValue + + + +" symbols as defined by xrdb +syn keyword xdefaultsSymbol contained SERVERHOST +syn match xdefaultsSymbol contained "SRVR_[a-zA-Z0-9_]\+" +syn keyword xdefaultsSymbol contained HOST +syn keyword xdefaultsSymbol contained DISPLAY_NUM +syn keyword xdefaultsSymbol contained CLIENTHOST +syn match xdefaultsSymbol contained "CLNT_[a-zA-Z0-9_]\+" +syn keyword xdefaultsSymbol contained RELEASE +syn keyword xdefaultsSymbol contained REVISION +syn keyword xdefaultsSymbol contained VERSION +syn keyword xdefaultsSymbol contained VENDOR +syn match xdefaultsSymbol contained "VNDR_[a-zA-Z0-9_]\+" +syn match xdefaultsSymbol contained "EXT_[a-zA-Z0-9_]\+" +syn keyword xdefaultsSymbol contained NUM_SCREENS +syn keyword xdefaultsSymbol contained SCREEN_NUM +syn keyword xdefaultsSymbol contained BITS_PER_RGB +syn keyword xdefaultsSymbol contained CLASS +syn keyword xdefaultsSymbol contained StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor +syn match xdefaultsSymbol contained "CLASS_\(StaticGray\|GrayScale\|StaticColor\|PseudoColor\|TrueColor\|DirectColor\)" +syn keyword xdefaultsSymbol contained COLOR +syn match xdefaultsSymbol contained "CLASS_\(StaticGray\|GrayScale\|StaticColor\|PseudoColor\|TrueColor\|DirectColor\)_[0-9]\+" +syn keyword xdefaultsSymbol contained HEIGHT +syn keyword xdefaultsSymbol contained WIDTH +syn keyword xdefaultsSymbol contained PLANES +syn keyword xdefaultsSymbol contained X_RESOLUTION +syn keyword xdefaultsSymbol contained Y_RESOLUTION + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +hi def link xdefaultsLabel Type +hi def link xdefaultsValue Constant +hi def link xdefaultsComment Comment +hi def link xdefaultsCommentH xdefaultsComment +hi def link xdefaultsPreProc PreProc +hi def link xdefaultsInclude xdefaultsPreProc +hi def link xdefaultsCppSkip xdefaultsCppOut +hi def link xdefaultsCppOut2 xdefaultsCppOut +hi def link xdefaultsCppOut Comment +hi def link xdefaultsIncluded String +hi def link xdefaultsDefine Macro +hi def link xdefaultsSymbol Statement +hi def link xdefaultsSpecial Statement +hi def link xdefaultsErrorLine Error +hi def link xdefaultsCommentError Error +hi def link xdefaultsPunct Normal +hi def link xdefaultsLineEnd Special +hi def link xdefaultsTodo Todo + + +let b:current_syntax = "xdefaults" + +" vim:ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xf86conf.vim b/git/usr/share/vim/vim92/syntax/xf86conf.vim new file mode 100644 index 0000000000000000000000000000000000000000..0f4e5036ffdcb8d98c5c27fed1e07f5863d106c2 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xf86conf.vim @@ -0,0 +1,207 @@ +" Vim syntax file +" Language: XF86Config (XFree86 configuration file) +" Maintainer: This runtime file is looking for a new maintainer. +" Last Change: 2025 Jan 06 by Jan-Arvid Harrach (#16397) +" Former Maintainer: David Ne\v{c}as (Yeti) +" Last Change By David: 2010 Nov 01 +" +" Options: let xf86conf_xfree86_version = 3 or 4 +" to force XFree86 3.x or 4.x XF86Config syntax + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +if !exists("b:xf86conf_xfree86_version") + if exists("xf86conf_xfree86_version") + let b:xf86conf_xfree86_version = xf86conf_xfree86_version + else + let b:xf86conf_xfree86_version = 4 + endif +endif + +syn case ignore + +" Comments +syn match xf86confComment "#.*$" contains=xf86confTodo +syn case match +syn keyword xf86confTodo FIXME TODO XXX NOT contained +syn case ignore +syn match xf86confTodo "???" contained + +" Sectioning errors +syn keyword xf86confSectionError Section contained +syn keyword xf86confSectionError EndSection +syn keyword xf86confSubSectionError SubSection +syn keyword xf86confSubSectionError EndSubSection +syn keyword xf86confModeSubSectionError Mode +syn keyword xf86confModeSubSectionError EndMode +syn cluster xf86confSectionErrors contains=xf86confSectionError,xf86confSubSectionError,xf86confModeSubSectionError + +" Values +if b:xf86conf_xfree86_version >= 4 + syn region xf86confString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=xf86confSpecialChar,xf86confConstant,xf86confOptionName oneline keepend nextgroup=xf86confValue skipwhite +else + syn region xf86confString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=xf86confSpecialChar,xf86confOptionName oneline keepend +endif +syn match xf86confSpecialChar "\\\d\d\d\|\\." contained +syn match xf86confDecimalNumber "\(\s\|-\)\zs\d*\.\=\d\+\>" +syn match xf86confFrequency "\(\s\|-\)\zs\d\+\.\=\d*\(Hz\|k\|kHz\|M\|MHz\)" +syn match xf86confOctalNumber "\<0\o\+\>" +syn match xf86confOctalNumberError "\<0\o\+[89]\d*\>" +syn match xf86confHexadecimalNumber "\<0x\x\+\>" +syn match xf86confValue "\s\+.*$" contained contains=xf86confComment,xf86confString,xf86confFrequency,xf86conf\w\+Number,xf86confConstant +syn keyword xf86confOption Option nextgroup=xf86confString skipwhite +syn match xf86confModeLineValue "\"[^\"]\+\"\(\_s\+[0-9.]\+\)\{9}" nextgroup=xf86confSync skipwhite skipnl + +" Sections and subsections +if b:xf86conf_xfree86_version >= 4 + syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\|InputClass\|OutputClass\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,xf86confSectionError + syn region xf86confSectionModule matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Module\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOption,xf86confKeyword + syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword + syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment + syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOption,xf86confKeyword + syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors + syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confKeyword,@xf86confSectionErrors + syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors +else + syn region xf86confSection matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Device\|Keyboard\|Pointer\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword + syn region xf86confSectionMX matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"\(Module\|Xinput\)\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionAny,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword + syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword + syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword + syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors + syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors + syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOptionName,xf86confOption,xf86confKeyword,@xf86confSectionErrors +endif + +" Options +if b:xf86conf_xfree86_version >= 4 + command -nargs=+ Xf86confdeclopt syn keyword xf86confOptionName contained +else + command -nargs=+ Xf86confdeclopt syn keyword xf86confOptionName contained nextgroup=xf86confValue,xf86confComment skipwhite +endif + +Xf86confdeclopt 18bitBus AGPFastWrite AGPMode Accel AllowClosedownGrabs AllowDeactivateGrabs +Xf86confdeclopt AllowMouseOpenFail AllowNonLocalModInDev AllowNonLocalXvidtune AlwaysCore +Xf86confdeclopt AngleOffset AutoRepeat BaudRate BeamTimeout Beep BlankTime BlockWrite BottomX +Xf86confdeclopt BottomY ButtonNumber ButtonThreshold Buttons ByteSwap CacheLines ChordMiddle +Xf86confdeclopt ClearDTR ClearDTS ClickMode CloneDisplay CloneHSync CloneMode CloneVRefresh +Xf86confdeclopt ColorKey Composite CompositeSync CoreKeyboard CorePointer Crt2Memory CrtScreen +Xf86confdeclopt CrtcNumber CyberShadow CyberStretch DDC DDCMode DMAForXv DPMS Dac6Bit DacSpeed +Xf86confdeclopt DataBits Debug DebugLevel DefaultServerLayout DeltaX DeltaY Device DeviceName +Xf86confdeclopt DisableModInDev DisableVidModeExtension Display Display1400 DontVTSwitch +Xf86confdeclopt DontZap DontZoom DoubleScan DozeMode DozeScan DozeTime DragLockButtons +Xf86confdeclopt DualCount DualRefresh EarlyRasPrecharge Emulate3Buttons Emulate3Timeout +Xf86confdeclopt EmulateWheel EmulateWheelButton EmulateWheelInertia EnablePageFlip EnterCount +Xf86confdeclopt EstimateSizesAggressively ExternDisp FPClock16 FPClock24 FPClock32 +Xf86confdeclopt FPClock8 FPDither FastDram FifoAggresive FifoConservative FifoModerate +Xf86confdeclopt FireGL3000 FixPanelSize FlatPanel FlipXY FlowControl ForceCRT1 ForceCRT2Type +Xf86confdeclopt ForceLegacyCRT ForcePCIMode FpmVRAM FrameBufferWC FullMMIO GammaBrightness +Xf86confdeclopt HWClocks HWCursor HandleSpecialKeys HistorySize Interlace Interlaced InternDisp +Xf86confdeclopt InvX InvY InvertX InvertY KeepShape LCDClock LateRasPrecharge LcdCenter +Xf86confdeclopt LeftAlt Linear MGASDRAM MMIO MMIOCache MTTR MaxX MaxY MaximumXPosition +Xf86confdeclopt MaximumYPosition MinX MinY MinimumXPosition MinimumYPosition NoAccel +Xf86confdeclopt NoAllowMouseOpenFail NoAllowNonLocalModInDev NoAllowNonLocalXvidtune +Xf86confdeclopt NoBlockWrite NoCompositeSync NoCompression NoCrtScreen NoCyberShadow NoDCC +Xf86confdeclopt NoDDC NoDac6Bit NoDebug NoDisableModInDev NoDisableVidModeExtension NoDontZap +Xf86confdeclopt NoDontZoom NoFireGL3000 NoFixPanelSize NoFpmVRAM NoFrameBufferWC NoHWClocks +Xf86confdeclopt NoHWCursor NoHal NoLcdCenter NoLinear NoMGASDRAM NoMMIO NoMMIOCache NoMTTR +Xf86confdeclopt NoOverClockMem NoOverlay NoPC98 NoPM NoPciBurst NoPciRetry NoProbeClock +Xf86confdeclopt NoSTN NoSWCursor NoShadowFb NoShowCache NoSlowEDODRAM NoStretch NoSuspendHack +Xf86confdeclopt NoTexturedVideo NoTrapSignals NoUseFBDev NoUseModeline NoUseVclk1 NoVTSysReq +Xf86confdeclopt NoXVideo NvAGP OSMImageBuffers OffTime Origin OverClockMem Overlay +Xf86confdeclopt PC98 PCIBurst PM PWMActive PWMSleep PanelDelayCompensation PanelHeight +Xf86confdeclopt PanelOff PanelWidth Parity PciBurst PciRetry Pixmap Port PressDur PressPitch +Xf86confdeclopt PressVol ProbeClocks ProgramFPRegs Protocol RGBBits ReleaseDur ReleasePitch +Xf86confdeclopt ReportingMode Resolution RightAlt RightCtl Rotate STN SWCursor SampleRate +Xf86confdeclopt ScreenNumber ScrollLock SendCoreEvents SendDragEvents Serial ServerNumLock +Xf86confdeclopt SetLcdClk SetMClk SetRefClk ShadowFb ShadowStatus ShowCache SleepMode +Xf86confdeclopt SleepScan SleepTime SlowDram SlowEDODRAM StandbyTime StopBits Stretch +Xf86confdeclopt SuspendHack SuspendTime SwapXY SyncOnGreen TV TVOutput TVOverscan TVStandard +Xf86confdeclopt TVXPosOffset TVYPosOffset TexturedVideo Threshold Tilt TopX TopY TouchTime +Xf86confdeclopt TrapSignals Type USB UseBIOS UseFB UseFBDev UseFlatPanel UseModeline +Xf86confdeclopt UseROMData UseVclk1 VTInit VTSysReq VTime VideoKey Vmin XAxisMapping +Xf86confdeclopt XLeds XVideo XaaNoCPUToScreenColorExpandFill XaaNoColor8x8PatternFillRect +Xf86confdeclopt XaaNoColor8x8PatternFillTrap XaaNoDashedBresenhamLine XaaNoDashedTwoPointLine +Xf86confdeclopt XaaNoImageWriteRect XaaNoMono8x8PatternFillRect XaaNoMono8x8PatternFillTrap +Xf86confdeclopt XaaNoOffscreenPixmaps XaaNoPixmapCache XaaNoScanlineCPUToScreenColorExpandFill +Xf86confdeclopt XaaNoScanlineImageWriteRect XaaNoScreenToScreenColorExpandFill +Xf86confdeclopt XaaNoScreenToScreenCopy XaaNoSolidBresenhamLine XaaNoSolidFillRect +Xf86confdeclopt XaaNoSolidFillTrap XaaNoSolidHorVertLine XaaNoSolidTwoPointLine Xinerama +Xf86confdeclopt XkbCompat XkbDisable XkbGeometry XkbKeycodes XkbKeymap XkbLayout XkbModel +Xf86confdeclopt XkbOptions XkbRules XkbSymbols XkbTypes XkbVariant XvBskew XvHsync XvOnCRT2 +Xf86confdeclopt XvRskew XvVsync YAxisMapping ZAxisMapping ZoomOnLCD + +delcommand Xf86confdeclopt + +" Keywords +syn keyword xf86confKeyword Device Driver FontPath Group Identifier Load ModelName ModulePath Monitor RGBPath VendorName VideoAdaptor Visual nextgroup=xf86confComment,xf86confString skipwhite +syn keyword xf86confKeyword BiosBase Black BoardName BusID ChipID ChipRev Chipset nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword ClockChip Clocks DacSpeed DefaultDepth DefaultFbBpp nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword DefaultColorDepth nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword Depth DisplaySize DotClock FbBpp Flags Gamma HorizSync nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword Hskew HTimings InputDevice IOBase MemBase Mode nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword Modes Ramdac Screen TextClockFreq UseModes VendorName nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword VertRefresh VideoRam ViewPort Virtual VScan VTimings nextgroup=xf86confComment,xf86confValue +syn keyword xf86confKeyword Weight White nextgroup=xf86confComment,xf86confValue +syn keyword xf86confMatch MatchDevicePath MatchDriver MatchLayout MatchOS MatchPnPID MatchProduct MatchTag MatchUSBID MatchVendor nextgroup=xf86confComment,xf86confString skipwhite +syn keyword xf86confMatch MatchIsPointer MatchIsKeyboard MatchIsTouchpad MatchIsTouchscreen MatchIsJoystick nextgroup=xf86confComment,xf86confValue skipwhite +syn keyword xf86confModeLine ModeLine nextgroup=xf86confComment,xf86confModeLineValue skipwhite skipnl + +" Constants +if b:xf86conf_xfree86_version >= 4 + syn keyword xf86confConstant true false on off yes no omit contained +else + syn keyword xf86confConstant Meta Compose Control +endif +syn keyword xf86confConstant StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor contained +syn keyword xf86confConstant Absolute RightOf LeftOf Above Below Relative StaticGray GrayScale StaticColor PseudoColor TrueColor DirectColor contained +syn match xf86confSync "\(\s\+[+-][CHV]_*Sync\)\+" contained + +" Synchronization +if b:xf86conf_xfree86_version >= 4 + syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Input[_ ]*Device\|Device\|Video[_ ]*Adaptor\|Server[_ ]*Layout\|DRI\|Extensions\|Vendor\|Keyboard\|Pointer\|InputClass\|OutputClass\)\"" + syn sync match xf86confSyncSectionModule grouphere xf86confSectionModule "^\s*Section\s\+\"Module\"" + syn sync match xf86confSyncSectionModes groupthere xf86confSectionModes "^\s*Section\s\+\"Modes\"" +else + syn sync match xf86confSyncSection grouphere xf86confSection "^\s*Section\s\+\"\(Files\|Server[_ ]*Flags\|Device\|Keyboard\|Pointer\)\"" + syn sync match xf86confSyncSectionMX grouphere xf86confSectionMX "^\s*Section\s\+\"\(Module\|Xinput\)\"" +endif +syn sync match xf86confSyncSectionMonitor groupthere xf86confSectionMonitor "^\s*Section\s\+\"Monitor\"" +syn sync match xf86confSyncSectionScreen groupthere xf86confSectionScreen "^\s*Section\s\+\"Screen\"" +syn sync match xf86confSyncEndSection groupthere NONE "^\s*End_*Section\s*$" + +" Define the default highlighting +hi def link xf86confComment Comment +hi def link xf86confTodo Todo +hi def link xf86confSectionDelim Statement +hi def link xf86confOptionName Identifier + +hi def link xf86confSectionError xf86confError +hi def link xf86confSubSectionError xf86confError +hi def link xf86confModeSubSectionError xf86confError +hi def link xf86confOctalNumberError xf86confError +hi def link xf86confError Error + +hi def link xf86confOption xf86confKeyword +hi def link xf86confMatch xf86confKeyword +hi def link xf86confModeLine xf86confKeyword +hi def link xf86confKeyword Type + +hi def link xf86confDecimalNumber xf86confNumber +hi def link xf86confOctalNumber xf86confNumber +hi def link xf86confHexadecimalNumber xf86confNumber +hi def link xf86confFrequency xf86confNumber +hi def link xf86confModeLineValue Constant +hi def link xf86confNumber Constant + +hi def link xf86confSync xf86confConstant +hi def link xf86confConstant Special +hi def link xf86confSpecialChar Special +hi def link xf86confString String + +hi def link xf86confValue Constant + +let b:current_syntax = "xf86conf" diff --git a/git/usr/share/vim/vim92/syntax/xhtml.vim b/git/usr/share/vim/vim92/syntax/xhtml.vim new file mode 100644 index 0000000000000000000000000000000000000000..0c6ea734033d7ac9c2001995376d576743322d56 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xhtml.vim @@ -0,0 +1,11 @@ +" Vim syntax file +" Language: XHTML +" Maintainer: noone +" Last Change: 2003 Feb 04 + +" Load the HTML syntax for now. +runtime! syntax/html.vim + +let b:current_syntax = "xhtml" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xinetd.vim b/git/usr/share/vim/vim92/syntax/xinetd.vim new file mode 100644 index 0000000000000000000000000000000000000000..fab3a916ead7aafea00d240d2dfd1483c10a1641 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xinetd.vim @@ -0,0 +1,347 @@ +" Vim syntax file +" Language: xinetd.conf(5) configuration file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword xinetdTodo contained TODO FIXME XXX NOTE + +syn region xinetdComment display oneline start='^\s*#' end='$' + \ contains=xinetdTodo,@Spell + +syn match xinetdService '^\s*service\>' + \ nextgroup=xinetdServiceName skipwhite + +syn match xinetdServiceName contained '\S\+' + \ nextgroup=xinetdServiceGroup skipwhite skipnl + +syn match xinetdDefaults '^\s*defaults' + \ nextgroup=xinetdServiceGroup skipwhite skipnl + +syn region xinetdServiceGroup contained transparent + \ matchgroup=xinetdServiceGroupD start='{' + \ matchgroup=xinetdServiceGroupD end='}' + \ contains=xinetdAttribute,xinetdReqAttribute, + \ xinetdDisable + +syn keyword xinetdReqAttribute contained user server protocol + \ nextgroup=xinetdStringEq skipwhite + +syn keyword xinetdAttribute contained id group bind + \ interface + \ nextgroup=xinetdStringEq skipwhite + +syn match xinetdStringEq contained display '=' + \ nextgroup=xinetdString skipwhite + +syn match xinetdString contained display '\S\+' + +syn keyword xinetdAttribute contained type nextgroup=xinetdTypeEq skipwhite + +syn match xinetdTypeEq contained display '=' + \ nextgroup=xinetdType skipwhite + +syn keyword xinetdType contained RPC INTERNAL TCPMUX TCPMUXPLUS + \ UNLISTED + \ nextgroup=xinetdType skipwhite + +syn keyword xinetdAttribute contained flags + \ nextgroup=xinetdFlagsEq skipwhite + +syn cluster xinetdFlagsC contains=xinetdFlags,xinetdDeprFlags + +syn match xinetdFlagsEq contained display '=' + \ nextgroup=@xinetdFlagsC skipwhite + +syn keyword xinetdFlags contained INTERCEPT NORETRY IDONLY NAMEINARGS + \ NODELAY KEEPALIVE NOLIBWRAP SENSOR IPv4 IPv6 + \ nextgroup=@xinetdFlagsC skipwhite + +syn keyword xinetdDeprFlags contained REUSE nextgroup=xinetdFlagsC skipwhite + +syn keyword xinetdDisable contained disable + \ nextgroup=xinetdBooleanEq skipwhite + +syn match xinetdBooleanEq contained display '=' + \ nextgroup=xinetdBoolean skipwhite + +syn keyword xinetdBoolean contained yes no + +syn keyword xinetdReqAttribute contained socket_type + \ nextgroup=xinetdSocketTypeEq skipwhite + +syn match xinetdSocketTypeEq contained display '=' + \ nextgroup=xinetdSocketType skipwhite + +syn keyword xinetdSocketType contained stream dgram raw seqpacket + +syn keyword xinetdReqAttribute contained wait + \ nextgroup=xinetdBooleanEq skipwhite + +syn keyword xinetdAttribute contained groups mdns + \ nextgroup=xinetdBooleanEq skipwhite + +syn keyword xinetdAttribute contained instances per_source rlimit_cpu + \ rlimit_data rlimit_rss rlimit_stack + \ nextgroup=xinetdUNumberEq skipwhite + +syn match xinetdUNumberEq contained display '=' + \ nextgroup=xinetdUnlimited,xinetdNumber + \ skipwhite + +syn keyword xinetdUnlimited contained UNLIMITED + +syn match xinetdNumber contained display '\<\d\+\>' + +syn keyword xinetdAttribute contained nice + \ nextgroup=xinetdSignedNumEq skipwhite + +syn match xinetdSignedNumEq contained display '=' + \ nextgroup=xinetdSignedNumber skipwhite + +syn match xinetdSignedNumber contained display '[+-]\=\d\+\>' + +syn keyword xinetdAttribute contained server_args + \ enabled + \ nextgroup=xinetdStringsEq skipwhite + +syn match xinetdStringsEq contained display '=' + \ nextgroup=xinetdStrings skipwhite + +syn match xinetdStrings contained display '\S\+' + \ nextgroup=xinetdStrings skipwhite + +syn keyword xinetdAttribute contained only_from no_access passenv + \ nextgroup=xinetdStringsAdvEq skipwhite + +syn match xinetdStringsAdvEq contained display '[+-]\==' + \ nextgroup=xinetdStrings skipwhite + +syn keyword xinetdAttribute contained access_times + \ nextgroup=xinetdTimeRangesEq skipwhite + +syn match xinetdTimeRangesEq contained display '=' + \ nextgroup=xinetdTimeRanges skipwhite + +syn match xinetdTimeRanges contained display + \ '\%(0?\d\|1\d\|2[0-3]\):\%(0?\d\|[1-5]\d\)-\%(0?\d\|1\d\|2[0-3]\):\%(0?\d\|[1-5]\d\)' + \ nextgroup=xinetdTimeRanges skipwhite + +syn keyword xinetdAttribute contained log_type nextgroup=xinetdLogTypeEq + \ skipwhite + +syn match xinetdLogTypeEq contained display '=' + \ nextgroup=xinetdLogType skipwhite + +syn keyword xinetdLogType contained SYSLOG nextgroup=xinetdSyslogType + \ skipwhite + +syn keyword xinetdLogType contained FILE nextgroup=xinetdLogFile skipwhite + +syn keyword xinetdSyslogType contained daemon auth authpriv user mail lpr + \ news uucp ftp local0 local1 local2 local3 + \ local4 local5 local6 local7 + \ nextgroup=xinetdSyslogLevel skipwhite + +syn keyword xinetdSyslogLevel contained emerg alert crit err warning notice + \ info debug + +syn match xinetdLogFile contained display '\S\+' + \ nextgroup=xinetdLogSoftLimit skipwhite + +syn match xinetdLogSoftLimit contained display '\<\d\+\>' + \ nextgroup=xinetdLogHardLimit skipwhite + +syn match xinetdLogHardLimit contained display '\<\d\+\>' + +syn keyword xinetdAttribute contained log_on_success + \ nextgroup=xinetdLogSuccessEq skipwhite + +syn match xinetdLogSuccessEq contained display '[+-]\==' + \ nextgroup=xinetdLogSuccess skipwhite + +syn keyword xinetdLogSuccess contained PID HOST USERID EXIT DURATION TRAFFIC + \ nextgroup=xinetdLogSuccess skipwhite + +syn keyword xinetdAttribute contained log_on_failure + \ nextgroup=xinetdLogFailureEq skipwhite + +syn match xinetdLogFailureEq contained display '[+-]\==' + \ nextgroup=xinetdLogFailure skipwhite + +syn keyword xinetdLogFailure contained HOST USERID ATTEMPT + \ nextgroup=xinetdLogFailure skipwhite + +syn keyword xinetdReqAttribute contained rpc_version + \ nextgroup=xinetdRPCVersionEq skipwhite + +syn match xinetdRPCVersionEq contained display '=' + \ nextgroup=xinetdRPCVersion skipwhite + +syn match xinetdRPCVersion contained display '\d\+\%(-\d\+\)\=\>' + +syn keyword xinetdReqAttribute contained rpc_number port + \ nextgroup=xinetdNumberEq skipwhite + +syn match xinetdNumberEq contained display '=' + \ nextgroup=xinetdNumber skipwhite + +syn keyword xinetdAttribute contained env nextgroup=xinetdEnvEq skipwhite + +syn match xinetdEnvEq contained display '+\==' + \ nextgroup=xinetdEnvName skipwhite + +syn match xinetdEnvName contained display '[^=]\+' + \ nextgroup=xinetdEnvNameEq + +syn match xinetdEnvNameEq contained display '=' nextgroup=xinetdEnvValue + +syn match xinetdEnvValue contained display '\S\+' + \ nextgroup=xinetdEnvName skipwhite + +syn keyword xinetdAttribute contained banner banner_success banner_failure + \ nextgroup=xinetdPathEq skipwhite + +syn keyword xinetdPPAttribute include includedir + \ nextgroup=xinetdPath skipwhite + +syn match xinetdPathEq contained display '=' + \ nextgroup=xinetdPath skipwhite + +syn match xinetdPath contained display '\S\+' + +syn keyword xinetdAttribute contained redirect nextgroup=xinetdRedirectEq + \ skipwhite + +syn match xinetdRedirectEq contained display '=' + \ nextgroup=xinetdRedirectIP skipwhite + +syn match xinetdRedirectIP contained display '\S\+' + \ nextgroup=xinetdNumber skipwhite + +syn keyword xinetdAttribute contained cps nextgroup=xinetdCPSEq skipwhite + +syn match xinetdCPSEq contained display '=' + \ nextgroup=xinetdCPS skipwhite + +syn match xinetdCPS contained display '\<\d\+\>' + \ nextgroup=xinetdNumber skipwhite + +syn keyword xinetdAttribute contained max_load nextgroup=xinetdFloatEq + \ skipwhite + +syn match xinetdFloatEq contained display '=' + \ nextgroup=xinetdFloat skipwhite + +syn match xinetdFloat contained display '\d\+\.\d*\|\.\d\+' + +syn keyword xinetdAttribute contained umask nextgroup=xinetdOctalEq + \ skipwhite + +syn match xinetdOctalEq contained display '=' + \ nextgroup=xinetdOctal,xinetdOctalError + \ skipwhite + +syn match xinetdOctal contained display '\<0\o\+\>' + \ contains=xinetdOctalZero +syn match xinetdOctalZero contained display '\<0' +syn match xinetdOctalError contained display '\<0\o*[89]\d*\>' + +syn keyword xinetdAttribute contained rlimit_as nextgroup=xinetdASEq + \ skipwhite + +syn match xinetdASEq contained display '=' + \ nextgroup=xinetdAS,xinetdUnlimited + \ skipwhite + +syn match xinetdAS contained display '\d\+' nextgroup=xinetdASMult + +syn match xinetdASMult contained display '[KM]' + +syn keyword xinetdAttribute contained deny_time nextgroup=xinetdDenyTimeEq + \ skipwhite + +syn match xinetdDenyTimeEq contained display '=' + \ nextgroup=xinetdDenyTime,xinetdNumber + \ skipwhite + +syn keyword xinetdDenyTime contained FOREVER NEVER + +hi def link xinetdTodo Todo +hi def link xinetdComment Comment +hi def link xinetdService Keyword +hi def link xinetdServiceName String +hi def link xinetdDefaults Keyword +hi def link xinetdServiceGroupD Delimiter +hi def link xinetdReqAttribute Keyword +hi def link xinetdAttribute Type +hi def link xinetdEq Operator +hi def link xinetdStringEq xinetdEq +hi def link xinetdString String +hi def link xinetdTypeEq xinetdEq +hi def link xinetdType Identifier +hi def link xinetdFlagsEq xinetdEq +hi def link xinetdFlags xinetdType +hi def link xinetdDeprFlags WarningMsg +hi def link xinetdDisable Special +hi def link xinetdBooleanEq xinetdEq +hi def link xinetdBoolean Boolean +hi def link xinetdSocketTypeEq xinetdEq +hi def link xinetdSocketType xinetdType +hi def link xinetdUNumberEq xinetdEq +hi def link xinetdUnlimited Define +hi def link xinetdNumber Number +hi def link xinetdSignedNumEq xinetdEq +hi def link xinetdSignedNumber xinetdNumber +hi def link xinetdStringsEq xinetdEq +hi def link xinetdStrings xinetdString +hi def link xinetdStringsAdvEq xinetdEq +hi def link xinetdTimeRangesEq xinetdEq +hi def link xinetdTimeRanges Number +hi def link xinetdLogTypeEq xinetdEq +hi def link xinetdLogType Keyword +hi def link xinetdSyslogType xinetdType +hi def link xinetdSyslogLevel Number +hi def link xinetdLogFile xinetdPath +hi def link xinetdLogSoftLimit xinetdNumber +hi def link xinetdLogHardLimit xinetdNumber +hi def link xinetdLogSuccessEq xinetdEq +hi def link xinetdLogSuccess xinetdType +hi def link xinetdLogFailureEq xinetdEq +hi def link xinetdLogFailure xinetdType +hi def link xinetdRPCVersionEq xinetdEq +hi def link xinetdRPCVersion xinetdNumber +hi def link xinetdNumberEq xinetdEq +hi def link xinetdEnvEq xinetdEq +hi def link xinetdEnvName Identifier +hi def link xinetdEnvNameEq xinetdEq +hi def link xinetdEnvValue String +hi def link xinetdPPAttribute PreProc +hi def link xinetdPathEq xinetdEq +hi def link xinetdPath String +hi def link xinetdRedirectEq xinetdEq +hi def link xinetdRedirectIP String +hi def link xinetdCPSEq xinetdEq +hi def link xinetdCPS xinetdNumber +hi def link xinetdFloatEq xinetdEq +hi def link xinetdFloat xinetdNumber +hi def link xinetdOctalEq xinetdEq +hi def link xinetdOctal xinetdNumber +hi def link xinetdOctalZero PreProc +hi def link xinetdOctalError Error +hi def link xinetdASEq xinetdEq +hi def link xinetdAS xinetdNumber +hi def link xinetdASMult PreProc +hi def link xinetdDenyTimeEq xinetdEq +hi def link xinetdDenyTime PreProc + +let b:current_syntax = "xinetd" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/xkb.vim b/git/usr/share/vim/vim92/syntax/xkb.vim new file mode 100644 index 0000000000000000000000000000000000000000..22be56d7250842d8b33ae1ec2e6b29039bcf88c8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xkb.vim @@ -0,0 +1,79 @@ +" Vim syntax file +" This is a GENERATED FILE. Please always refer to source file at the URI below. +" Language: XKB (X Keyboard Extension) components +" Maintainer: David Ne\v{c}as (Yeti) +" Last Change: 2020 Oct 18 +" URL: http://trific.ath.cx/Ftp/vim/syntax/xkb.vim + +" Setup +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case match +syn sync minlines=100 + +" Comments +syn region xkbComment start="//" skip="\\$" end="$" keepend contains=xkbTodo +syn region xkbComment start="/\*" matchgroup=NONE end="\*/" contains=xkbCommentStartError,xkbTodo +syn match xkbCommentError "\*/" +syntax match xkbCommentStartError "/\*" contained +syn sync ccomment xkbComment +syn keyword xkbTodo TODO FIXME contained + +" Literal strings +syn match xkbSpecialChar "\\\d\d\d\|\\." contained +syn region xkbString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xkbSpecialChar oneline + +" Catch errors caused by wrong parenthesization +syn region xkbParen start='(' end=')' contains=ALLBUT,xkbParenError,xkbSpecial,xkbTodo transparent +syn match xkbParenError ")" +syn region xkbBrace start='{' end='}' contains=ALLBUT,xkbBraceError,xkbSpecial,xkbTodo transparent +syn match xkbBraceError "}" +syn region xkbBracket start='\[' end='\]' contains=ALLBUT,xkbBracketError,xkbSpecial,xkbTodo transparent +syn match xkbBracketError "\]" + +" Physical keys +syn match xkbPhysicalKey "<\w\+>" + +" Keywords +syn keyword xkbPreproc augment include replace +syn keyword xkbConstant False True +syn keyword xkbModif override replace +syn keyword xkbIdentifier action affect alias allowExplicit approx baseColor button clearLocks color controls cornerRadius count ctrls description driveskbd font fontSize gap group groups height indicator indicatorDrivesKeyboard interpret key keys labelColor latchToLock latchMods left level_name map maximum minimum modifier_map modifiers name offColor onColor outline preserve priority repeat row section setMods shape slant solid symbols text top type useModMapMods virtualModifier virtualMods virtual_modifiers weight whichModState width +syn keyword xkbFunction AnyOf ISOLock LatchGroup LatchMods LockControls LockGroup LockMods LockPointerButton MovePtr NoAction PointerButton SetControls SetGroup SetMods SetPtrDflt Terminate +syn keyword xkbTModif default hidden partial virtual +syn keyword xkbSect alphanumeric_keys alternate_group function_keys keypad_keys modifier_keys xkb_compatibility xkb_geometry xkb_keycodes xkb_keymap xkb_semantics xkb_symbols xkb_types + +" Define the default highlighting + +hi def link xkbModif xkbPreproc +hi def link xkbTModif xkbPreproc +hi def link xkbPreproc Preproc + +hi def link xkbIdentifier Keyword +hi def link xkbFunction Function +hi def link xkbSect Type +hi def link xkbPhysicalKey Identifier +hi def link xkbKeyword Keyword + +hi def link xkbComment Comment +hi def link xkbTodo Todo + +hi def link xkbConstant Constant +hi def link xkbString String + +hi def link xkbSpecialChar xkbSpecial +hi def link xkbSpecial Special + +hi def link xkbParenError xkbBalancingError +hi def link xkbBraceError xkbBalancingError +hi def link xkbBraketError xkbBalancingError +hi def link xkbBalancingError xkbError +hi def link xkbCommentStartError xkbCommentError +hi def link xkbCommentError xkbError +hi def link xkbError Error + + +let b:current_syntax = "xkb" diff --git a/git/usr/share/vim/vim92/syntax/xmath.vim b/git/usr/share/vim/vim92/syntax/xmath.vim new file mode 100644 index 0000000000000000000000000000000000000000..466c1159c7db57c8c24d051ba048f52a89043996 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xmath.vim @@ -0,0 +1,227 @@ +" Vim syntax file +" Language: xmath (a simulation tool) +" Maintainer: This runtime file is looking for a new maintainer. +" Former Maintainer: Charles E. Campbell +" Last Change: Aug 31, 2016 +" 2024 Feb 19 by Vim Project (announce adoption) +" Version: 10 +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XMATH + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" parenthesis sanity checker +syn region xmathZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathCurlyError +syn region xmathZone matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathParenError +syn region xmathZone matchgroup=Delimiter start="\[" matchgroup=Delimiter end="]" transparent contains=ALLBUT,xmathError,xmathCurlyError,xmathParenError +syn match xmathError "[)\]}]" +syn match xmathBraceError "[)}]" contained +syn match xmathCurlyError "[)\]]" contained +syn match xmathParenError "[\]}]" contained +syn match xmathComma "[,;:]" +syn match xmathComma "\.\.\.$" + +" A bunch of useful xmath keywords +syn case ignore +syn keyword xmathFuncCmd function endfunction command endcommand +syn keyword xmathStatement abort beep debug default define +syn keyword xmathStatement execute exit pause return undefine +syn keyword xmathConditional if else elseif endif +syn keyword xmathRepeat while for endwhile endfor +syn keyword xmathCmd anigraph deletedatastore keep renamedatastore +syn keyword xmathCmd autocode deletestd linkhyper renamestd +syn keyword xmathCmd build deletesuperblock linksim renamesuperblock +syn keyword xmathCmd comment deletetransition listusertype save +syn keyword xmathCmd copydatastore deleteusertype load sbadisplay +syn keyword xmathCmd copystd detailmodel lock set +syn keyword xmathCmd copysuperblock display minmax_display setsbdefault +syn keyword xmathCmd createblock documentit modifyblock show +syn keyword xmathCmd createbubble editcatalog modifybubble showlicense +syn keyword xmathCmd createconnection erase modifystd showsbdefault +syn keyword xmathCmd creatertf expandsuperbubble modifysuperblock stop +syn keyword xmathCmd createstd for modifytransition stopcosim +syn keyword xmathCmd createsuperblock go modifyusertype syntax +syn keyword xmathCmd createsuperbubble goto new unalias +syn keyword xmathCmd createtransition hardcopy next unlock +syn keyword xmathCmd createusertype help polargraph usertype +syn keyword xmathCmd delete hyperbuild print whatis +syn keyword xmathCmd deleteblock if printmodel while +syn keyword xmathCmd deletebubble ifilter quit who +syn keyword xmathCmd deleteconnection ipcwc remove xgraph + +syn keyword xmathFunc abcd eye irea querystdoptions +syn keyword xmathFunc abs eyepattern is querysuperblock +syn keyword xmathFunc acos feedback ISID querysuperblockopt +syn keyword xmathFunc acosh fft ISID Models querytransition +syn keyword xmathFunc adconversion fftpdm kronecker querytransitionopt +syn keyword xmathFunc afeedback filter length qz +syn keyword xmathFunc all find limit rampinvar +syn keyword xmathFunc ambiguity firparks lin random +syn keyword xmathFunc amdemod firremez lin30 randpdm +syn keyword xmathFunc analytic firwind linearfm randpert +syn keyword xmathFunc analyze fmdemod linfnorm randsys +syn keyword xmathFunc any forwdiff lintodb rank +syn keyword xmathFunc append fprintf list rayleigh +syn keyword xmathFunc argn frac log rcepstrum +syn keyword xmathFunc argv fracred log10 rcond +syn keyword xmathFunc arma freq logm rdintegrate +syn keyword xmathFunc arma2ss freqcircle lognormal read +syn keyword xmathFunc armax freqcont logspace real +syn keyword xmathFunc ascii frequencyhop lowpass rectify +syn keyword xmathFunc asin fsesti lpopt redschur +syn keyword xmathFunc asinh fslqgcomp lqgcomp reflect +syn keyword xmathFunc atan fsregu lqgltr regulator +syn keyword xmathFunc atan2 fwls ls residue +syn keyword xmathFunc atanh gabor ls2unc riccati +syn keyword xmathFunc attach_ac100 garb ls2var riccati_eig +syn keyword xmathFunc backdiff gaussian lsjoin riccati_schur +syn keyword xmathFunc balance gcexp lu ricean +syn keyword xmathFunc balmoore gcos lyapunov rifd +syn keyword xmathFunc bandpass gdfileselection makecontinuous rlinfo +syn keyword xmathFunc bandstop gdmessage makematrix rlocus +syn keyword xmathFunc bj gdselection makepoly rms +syn keyword xmathFunc blknorm genconv margin rootlocus +syn keyword xmathFunc bode get markoff roots +syn keyword xmathFunc bpm get_info30 matchedpz round +syn keyword xmathFunc bpm2inn get_inn max rref +syn keyword xmathFunc bpmjoin gfdm maxlike rve_get +syn keyword xmathFunc bpmsplit gfsk mean rve_info +syn keyword xmathFunc bst gfskernel mergeseg rve_reset +syn keyword xmathFunc buttconstr gfunction min rve_update +syn keyword xmathFunc butterworth ggauss minimal samplehold +syn keyword xmathFunc cancel giv mkpert schur +syn keyword xmathFunc canform giv2var mkphase sdf +syn keyword xmathFunc ccepstrum givjoin mma sds +syn keyword xmathFunc char gpsk mmaget sdtrsp +syn keyword xmathFunc chebconstr gpulse mmaput sec +syn keyword xmathFunc chebyshev gqam mod sech +syn keyword xmathFunc check gqpsk modal siginterp +syn keyword xmathFunc cholesky gramp modalstate sign +syn keyword xmathFunc chop gsawtooth modcarrier sim +syn keyword xmathFunc circonv gsigmoid mreduce sim30 +syn keyword xmathFunc circorr gsin mtxplt simin +syn keyword xmathFunc clock gsinc mu simin30 +syn keyword xmathFunc clocus gsqpsk mulhank simout +syn keyword xmathFunc clsys gsquarewave multipath simout30 +syn keyword xmathFunc coherence gstep musynfit simtransform +syn keyword xmathFunc colorind GuiDialogCreate mxstr2xmstr sin +syn keyword xmathFunc combinepf GuiDialogDestroy mxstring2xmstring singriccati +syn keyword xmathFunc commentof GuiFlush names sinh +syn keyword xmathFunc compare GuiGetValue nichols sinm +syn keyword xmathFunc complementaryerf GuiManage noisefilt size +syn keyword xmathFunc complexenvelope GuiPlot none smargin +syn keyword xmathFunc complexfreqshift GuiPlotGet norm sns2sys +syn keyword xmathFunc concatseg GuiSetValue numden sort +syn keyword xmathFunc condition GuiShellCreate nyquist spectrad +syn keyword xmathFunc conj GuiShellDeiconify obscf spectrum +syn keyword xmathFunc conmap GuiShellDestroy observable spline +syn keyword xmathFunc connect GuiShellIconify oe sprintf +syn keyword xmathFunc conpdm GuiShellLower ones sqrt +syn keyword xmathFunc constellation GuiShellRaise ophank sqrtm +syn keyword xmathFunc consys GuiShellRealize optimize sresidualize +syn keyword xmathFunc controllable GuiShellUnrealize optscale ss2arma +syn keyword xmathFunc convolve GuiTimer orderfilt sst +syn keyword xmathFunc correlate GuiToolCreate orderstate ssv +syn keyword xmathFunc cos GuiToolDestroy orth stable +syn keyword xmathFunc cosh GuiToolExist oscmd stair +syn keyword xmathFunc cosm GuiUnmanage oscope starp +syn keyword xmathFunc cot GuiWidgetExist osscale step +syn keyword xmathFunc coth h2norm padcrop stepinvar +syn keyword xmathFunc covariance h2syn partialsum string +syn keyword xmathFunc csc hadamard pdm stringex +syn keyword xmathFunc csch hankelsv pdmslice substr +syn keyword xmathFunc csum hessenberg pem subsys +syn keyword xmathFunc ctrcf highpass perfplots sum +syn keyword xmathFunc ctrlplot hilbert period svd +syn keyword xmathFunc daug hilberttransform pfscale svplot +syn keyword xmathFunc dbtolin hinfcontr phaseshift sweep +syn keyword xmathFunc dct hinfnorm pinv symbolmap +syn keyword xmathFunc decimate hinfsyn plot sys2sns +syn keyword xmathFunc defFreqRange histogram plot30 sysic +syn keyword xmathFunc defTimeRange idfreq pmdemod Sysid +syn keyword xmathFunc delay idimpulse poisson system +syn keyword xmathFunc delsubstr idsim poissonimpulse tan +syn keyword xmathFunc det ifft poleplace tanh +syn keyword xmathFunc detrend imag poles taper +syn keyword xmathFunc dht impinvar polezero tfid +syn keyword xmathFunc diagonal impplot poltrend toeplitz +syn keyword xmathFunc differentiate impulse polyfit trace +syn keyword xmathFunc directsequence index polynomial tril +syn keyword xmathFunc discretize indexlist polyval trim +syn keyword xmathFunc divide initial polyvalm trim30 +syn keyword xmathFunc domain initmodel prbs triu +syn keyword xmathFunc dst initx0 product trsp +syn keyword xmathFunc eig inn2bpm psd truncate +syn keyword xmathFunc ellipconstr inn2pe put_inn tustin +syn keyword xmathFunc elliptic inn2unc qpopt uniform +syn keyword xmathFunc erf insertseg qr val +syn keyword xmathFunc error int quantize variance +syn keyword xmathFunc estimator integrate queryblock videolines +syn keyword xmathFunc etfe integratedump queryblockoptions wcbode +syn keyword xmathFunc exist interp querybubble wcgain +syn keyword xmathFunc exp interpolate querybubbleoptionswindow +syn keyword xmathFunc expm inv querycatalog wtbalance +syn keyword xmathFunc extractchan invhilbert queryconnection zeros +syn keyword xmathFunc extractseg iqmix querystd + +syn case match + +" Labels (supports xmath's goto) +syn match xmathLabel "^\s*<[a-zA-Z_][a-zA-Z0-9]*>" + +" String and Character constants +" Highlight special characters (those which have a backslash) differently +syn match xmathSpecial contained "\\\d\d\d\|\\." +syn region xmathString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xmathSpecial,@Spell +syn match xmathCharacter "'[^\\]'" +syn match xmathSpecialChar "'\\.'" + +syn match xmathNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" + +" Comments: +" xmath supports #... (like Unix shells) +" and #{ ... }# comment blocks +syn cluster xmathCommentGroup contains=xmathString,xmathTodo,@Spell +syn keyword xmathTodo contained COMBAK DEBUG FIXME Todo TODO XXX +syn match xmathComment "#.*$" contains=@xmathCommentGroup +syn region xmathCommentBlock start="#{" end="}#" contains=@xmathCommentGroup + +" synchronizing +syn sync match xmathSyncComment grouphere xmathCommentBlock "#{" +syn sync match xmathSyncComment groupthere NONE "}#" + +" Define the default highlighting. +if !exists("skip_xmath_syntax_inits") + + hi def link xmathBraceError xmathError + hi def link xmathCmd xmathStatement + hi def link xmathCommentBlock xmathComment + hi def link xmathCurlyError xmathError + hi def link xmathFuncCmd xmathStatement + hi def link xmathParenError xmathError + + " The default methods for highlighting. Can be overridden later + hi def link xmathCharacter Character + hi def link xmathComma Delimiter + hi def link xmathComment Comment + hi def link xmathCommentBlock Comment + hi def link xmathConditional Conditional + hi def link xmathError Error + hi def link xmathFunc Function + hi def link xmathLabel PreProc + hi def link xmathNumber Number + hi def link xmathRepeat Repeat + hi def link xmathSpecial Type + hi def link xmathSpecialChar SpecialChar + hi def link xmathStatement Statement + hi def link xmathString String + hi def link xmathTodo Todo + +endif + +let b:current_syntax = "xmath" + +" vim: ts=17 diff --git a/git/usr/share/vim/vim92/syntax/xml.vim b/git/usr/share/vim/vim92/syntax/xml.vim new file mode 100644 index 0000000000000000000000000000000000000000..d99f8b467a38219ff4774901a4a208013de30ff1 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xml.vim @@ -0,0 +1,361 @@ +" Vim syntax file +" Language: XML +" Maintainer: Christian Brabandt +" Repository: https://github.com/chrisbra/vim-xml-ftplugin +" Previous Maintainer: Johannes Zellner +" Author: Paul Siegmann +" Last Changed: Nov 03, 2019 +" Filenames: *.xml +" Last Change: +" 20190923 - Fix xmlEndTag to match xmlTag (vim/vim#884) +" 20190924 - Fix xmlAttribute property (amadeus/vim-xml@d8ce1c946) +" 20191103 - Enable spell checking globally +" 20210428 - Improve syntax synchronizing + +" CONFIGURATION: +" syntax folding can be turned on by +" +" let g:xml_syntax_folding = 1 +" +" before the syntax file gets loaded (e.g. in ~/.vimrc). +" This might slow down syntax highlighting significantly, +" especially for large files. +" +" CREDITS: +" The original version was derived by Paul Siegmann from +" Claudio Fleiner's html.vim. +" +" REFERENCES: +" [1] http://www.w3.org/TR/2000/REC-xml-20001006 +" [2] http://www.w3.org/XML/1998/06/xmlspec-report-19980910.htm +" +" as pointed out according to reference [1] +" +" 2.3 Common Syntactic Constructs +" [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender +" [5] Name ::= (Letter | '_' | ':') (NameChar)* +" +" NOTE: +" 1) empty tag delimiters "/>" inside attribute values (strings) +" confuse syntax highlighting. +" 2) for large files, folding can be pretty slow, especially when +" loading a file the first time and viewoptions contains 'folds' +" so that folds of previous sessions are applied. +" Don't use 'foldmethod=syntax' in this case. + + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:xml_cpo_save = &cpo +set cpo&vim + +syn case match + +" Allow spell checking in tag values, +" there is no syntax region for that, +" so enable spell checking in top-level elements +" This text is spell checked +syn spell toplevel + +" mark illegal characters +syn match xmlError "[<&]" + +" strings (inside tags) aka VALUES +" +" EXAMPLE: +" +" +" ^^^^^^^ +syn region xmlString contained start=+"+ end=+"+ contains=xmlEntity,@Spell display +syn region xmlString contained start=+'+ end=+'+ contains=xmlEntity,@Spell display + + +" punctuation (within attributes) e.g. +" ^ ^ +" syn match xmlAttribPunct +[-:._]+ contained display +syn match xmlAttribPunct +[:.]+ contained display + +" no highlighting for xmlEqual (xmlEqual has no highlighting group) +syn match xmlEqual +=+ display + + +" attribute, everything before the '=' +" +" PROVIDES: @xmlAttribHook +" +" EXAMPLE: +" +" +" ^^^^^^^^^^^^^ +" +syn match xmlAttrib + \ +[-'"<]\@1\%(['"]\@!\|$\)+ + \ contained + \ contains=xmlAttribPunct,@xmlAttribHook + \ display + + +" namespace spec +" +" PROVIDES: @xmlNamespaceHook +" +" EXAMPLE: +" +" +" ^^^ +" +if exists("g:xml_namespace_transparent") +syn match xmlNamespace + \ +\(<\|"':]\+[:]\@=+ + \ contained + \ contains=@xmlNamespaceHook + \ transparent + \ display +else +syn match xmlNamespace + \ +\(<\|"':]\+[:]\@=+ + \ contained + \ contains=@xmlNamespaceHook + \ display +endif + + +" tag name +" +" PROVIDES: @xmlTagHook +" +" EXAMPLE: +" +" +" ^^^ +" +syn match xmlTagName + \ +\%(<\|"']\++ + \ contained + \ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook + \ display + + +if exists('g:xml_syntax_folding') + + " start tag + " use matchgroup=xmlTag to skip over the leading '<' + " + " PROVIDES: @xmlStartTagHook + " + " EXAMPLE: + " + " + " s^^^^^^^^^^^^^^^e + " + syn region xmlTag + \ matchgroup=xmlTag start=+<[^ /!?<>"']\@=+ + \ matchgroup=xmlTag end=+>+ + \ contained + \ contains=xmlError,xmlTagName,xmlAttrib,xmlEqual,xmlString,@xmlStartTagHook + + + " highlight the end tag + " + " PROVIDES: @xmlTagHook + " (should we provide a separate @xmlEndTagHook ?) + " + " EXAMPLE: + " + " + " ^^^^^^ + " + syn region xmlEndTag + \ matchgroup=xmlTag start=+"']\@=+ + \ matchgroup=xmlTag end=+>+ + \ contained + \ contains=xmlTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook + + " tag elements with syntax-folding. + " NOTE: NO HIGHLIGHTING -- highlighting is done by contained elements + " + " PROVIDES: @xmlRegionHook + " + " EXAMPLE: + " + " + " + " + " + " some data + " + " + syn region xmlRegion + \ start=+<\z([^ /!?<>"']\+\)+ + \ skip=++ + \ end=++ + \ end=+/>+ + \ fold + \ contains=xmlTag,xmlEndTag,xmlCdata,xmlRegion,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook,@Spell + \ keepend + \ extend + +else + + " no syntax folding: + " - contained attribute removed + " - xmlRegion not defined + " + syn region xmlTag + \ matchgroup=xmlTag start=+<[^ /!?<>"']\@=+ + \ matchgroup=xmlTag end=+>+ + \ contains=xmlError,xmlTagName,xmlAttrib,xmlEqual,xmlString,@xmlStartTagHook + + syn region xmlEndTag + \ matchgroup=xmlTag start=+"']\@=+ + \ matchgroup=xmlTag end=+>+ + \ contains=xmlTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook + +endif + + +" &entities; compare with dtd +syn match xmlEntity "&[^; \t]*;" contains=xmlEntityPunct +syn match xmlEntityPunct contained "[&.;]" + +if exists('g:xml_syntax_folding') + + " The real comments (this implements the comments as defined by xml, + " but not all xml pages actually conform to it. Errors are flagged. + syn region xmlComment + \ start=++ + \ contains=xmlCommentStart,xmlCommentError + \ extend + \ fold + +else + + " no syntax folding: + " - fold attribute removed + " + syn region xmlComment + \ start=++ + \ contains=xmlCommentStart,xmlCommentError + \ extend + +endif + +syn match xmlCommentStart contained "+ + \ contains=xmlCdataStart,xmlCdataEnd,@xmlCdataHook,@Spell + \ keepend + \ extend + +" using the following line instead leads to corrupt folding at CDATA regions +" syn match xmlCdata ++ contains=xmlCdataStart,xmlCdataEnd,@xmlCdataHook +syn match xmlCdataStart ++ contained + + +" Processing instructions +" This allows "?>" inside strings -- good idea? +syn region xmlProcessing matchgroup=xmlProcessingDelim start="" contains=xmlAttrib,xmlEqual,xmlString + + +if exists('g:xml_syntax_folding') + + " DTD -- we use dtd.vim here + syn region xmlDocType matchgroup=xmlDocTypeDecl + \ start="" + \ fold + \ contains=xmlDocTypeKeyword,xmlInlineDTD,xmlString +else + + " no syntax folding: + " - fold attribute removed + " + syn region xmlDocType matchgroup=xmlDocTypeDecl + \ start="" + \ contains=xmlDocTypeKeyword,xmlInlineDTD,xmlString + +endif + +syn keyword xmlDocTypeKeyword contained DOCTYPE PUBLIC SYSTEM +syn region xmlInlineDTD contained matchgroup=xmlDocTypeDecl start="\[" end="]" contains=@xmlDTD +syn include @xmlDTD :p:h/dtd.vim +unlet b:current_syntax + + +" synchronizing + +syn sync match xmlSyncComment grouphere xmlComment ++ + +" The following is slow on large documents (and the doctype is optional +" syn sync match xmlSyncDT grouphere xmlDocType +\_.\(+ + +if exists('g:xml_syntax_folding') + syn sync match xmlSync grouphere xmlRegion +\_.\(<[^ /!?<>"']\+\)\@=+ + " syn sync match xmlSync grouphere xmlRegion "<[^ /!?<>"']*>" + syn sync match xmlSync groupthere xmlRegion +"']\+>+ +endif + +syn sync minlines=100 maxlines=200 + + +" The default highlighting. +hi def link xmlTodo Todo +hi def link xmlTag Function +hi def link xmlTagName Function +hi def link xmlEndTag Identifier +if !exists("g:xml_namespace_transparent") + hi def link xmlNamespace Tag +endif +hi def link xmlEntity Statement +hi def link xmlEntityPunct Type + +hi def link xmlAttribPunct Comment +hi def link xmlAttrib Type + +hi def link xmlString String +hi def link xmlComment Comment +hi def link xmlCommentStart xmlComment +hi def link xmlCommentPart Comment +hi def link xmlCommentError Error +hi def link xmlError Error + +hi def link xmlProcessingDelim Comment +hi def link xmlProcessing Type + +hi def link xmlCdata String +hi def link xmlCdataCdata Statement +hi def link xmlCdataStart Type +hi def link xmlCdataEnd Type + +hi def link xmlDocTypeDecl Function +hi def link xmlDocTypeKeyword Statement +hi def link xmlInlineDTD Function + +let b:current_syntax = "xml" + +let &cpo = s:xml_cpo_save +unlet s:xml_cpo_save + +" vim: ts=4 diff --git a/git/usr/share/vim/vim92/syntax/xmodmap.vim b/git/usr/share/vim/vim92/syntax/xmodmap.vim new file mode 100644 index 0000000000000000000000000000000000000000..28cae3eb71472ed2fadb6c184fd890615191849a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xmodmap.vim @@ -0,0 +1,677 @@ +" Vim syntax file +" Language: xmodmap(1) definition file +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn keyword xmodmapTodo contained TODO FIXME XXX NOTE + +syn region xmodmapComment display oneline start='^!' end='$' + \ contains=xmodmapTodo,@Spell + +syn case ignore +syn match xmodmapInt display '\<\d\+\>' +syn match xmodmapHex display '\<0x\x\+\>' +syn match xmodmapOctal display '\<0\o\+\>' +syn match xmodmapOctalError display '\<0\o*[89]\d*' +syn case match + +syn match xmodmapKeySym display '\<[A-Za-z]\>' + +" #include +syn keyword xmodmapKeySym XK_VoidSymbol XK_BackSpace XK_Tab XK_Linefeed + \ XK_Clear XK_Return XK_Pause XK_Scroll_Lock + \ XK_Sys_Req XK_Escape XK_Delete XK_Multi_key + \ XK_Codeinput XK_SingleCandidate + \ XK_MultipleCandidate XK_PreviousCandidate + \ XK_Kanji XK_Muhenkan XK_Henkan_Mode + \ XK_Henkan XK_Romaji XK_Hiragana XK_Katakana + \ XK_Hiragana_Katakana XK_Zenkaku XK_Hankaku + \ XK_Zenkaku_Hankaku XK_Touroku XK_Massyo + \ XK_Kana_Lock XK_Kana_Shift XK_Eisu_Shift + \ XK_Eisu_toggle XK_Kanji_Bangou XK_Zen_Koho + \ XK_Mae_Koho XK_Home XK_Left XK_Up XK_Right + \ XK_Down XK_Prior XK_Page_Up XK_Next + \ XK_Page_Down XK_End XK_Begin XK_Select + \ XK_Print XK_Execute XK_Insert XK_Undo XK_Redo + \ XK_Menu XK_Find XK_Cancel XK_Help XK_Break + \ XK_Mode_switch XK_script_switch XK_Num_Lock + \ XK_KP_Space XK_KP_Tab XK_KP_Enter XK_KP_F1 + \ XK_KP_F2 XK_KP_F3 XK_KP_F4 XK_KP_Home + \ XK_KP_Left XK_KP_Up XK_KP_Right XK_KP_Down + \ XK_KP_Prior XK_KP_Page_Up XK_KP_Next + \ XK_KP_Page_Down XK_KP_End XK_KP_Begin + \ XK_KP_Insert XK_KP_Delete XK_KP_Equal + \ XK_KP_Multiply XK_KP_Add XK_KP_Separator + \ XK_KP_Subtract XK_KP_Decimal XK_KP_Divide + \ XK_KP_0 XK_KP_1 XK_KP_2 XK_KP_3 XK_KP_4 + \ XK_KP_5 XK_KP_6 XK_KP_7 XK_KP_8 XK_KP_9 XK_F1 + \ XK_F2 XK_F3 XK_F4 XK_F5 XK_F6 XK_F7 XK_F8 + \ XK_F9 XK_F10 XK_F11 XK_L1 XK_F12 XK_L2 XK_F13 + \ XK_L3 XK_F14 XK_L4 XK_F15 XK_L5 XK_F16 XK_L6 + \ XK_F17 XK_L7 XK_F18 XK_L8 XK_F19 XK_L9 XK_F20 + \ XK_L10 XK_F21 XK_R1 XK_F22 XK_R2 XK_F23 + \ XK_R3 XK_F24 XK_R4 XK_F25 XK_R5 XK_F26 + \ XK_R6 XK_F27 XK_R7 XK_F28 XK_R8 XK_F29 + \ XK_R9 XK_F30 XK_R10 XK_F31 XK_R11 XK_F32 + \ XK_R12 XK_F33 XK_R13 XK_F34 XK_R14 XK_F35 + \ XK_R15 XK_Shift_L XK_Shift_R XK_Control_L + \ XK_Control_R XK_Caps_Lock XK_Shift_Lock + \ XK_Meta_L XK_Meta_R XK_Alt_L XK_Alt_R + \ XK_Super_L XK_Super_R XK_Hyper_L XK_Hyper_R + \ XK_dead_hook XK_dead_horn XK_3270_Duplicate + \ XK_3270_FieldMark XK_3270_Right2 XK_3270_Left2 + \ XK_3270_BackTab XK_3270_EraseEOF + \ XK_3270_EraseInput XK_3270_Reset + \ XK_3270_Quit XK_3270_PA1 XK_3270_PA2 + \ XK_3270_PA3 XK_3270_Test XK_3270_Attn + \ XK_3270_CursorBlink XK_3270_AltCursor + \ XK_3270_KeyClick XK_3270_Jump + \ XK_3270_Ident XK_3270_Rule XK_3270_Copy + \ XK_3270_Play XK_3270_Setup XK_3270_Record + \ XK_3270_ChangeScreen XK_3270_DeleteWord + \ XK_3270_ExSelect XK_3270_CursorSelect + \ XK_3270_PrintScreen XK_3270_Enter XK_space + \ XK_exclam XK_quotedbl XK_numbersign XK_dollar + \ XK_percent XK_ampersand XK_apostrophe + \ XK_quoteright XK_parenleft XK_parenright + \ XK_asterisk XK_plus XK_comma XK_minus + \ XK_period XK_slash XK_0 XK_1 XK_2 XK_3 + \ XK_4 XK_5 XK_6 XK_7 XK_8 XK_9 XK_colon + \ XK_semicolon XK_less XK_equal XK_greater + \ XK_question XK_at XK_A XK_B XK_C XK_D XK_E + \ XK_F XK_G XK_H XK_I XK_J XK_K XK_L XK_M XK_N + \ XK_O XK_P XK_Q XK_R XK_S XK_T XK_U XK_V XK_W + \ XK_X XK_Y XK_Z XK_bracketleft XK_backslash + \ XK_bracketright XK_asciicircum XK_underscore + \ XK_grave XK_quoteleft XK_a XK_b XK_c XK_d + \ XK_e XK_f XK_g XK_h XK_i XK_j XK_k XK_l + \ XK_m XK_n XK_o XK_p XK_q XK_r XK_s XK_t XK_u + \ XK_v XK_w XK_x XK_y XK_z XK_braceleft XK_bar + \ XK_braceright XK_asciitilde XK_nobreakspace + \ XK_exclamdown XK_cent XK_sterling XK_currency + \ XK_yen XK_brokenbar XK_section XK_diaeresis + \ XK_copyright XK_ordfeminine XK_guillemotleft + \ XK_notsign XK_hyphen XK_registered XK_macron + \ XK_degree XK_plusminus XK_twosuperior + \ XK_threesuperior XK_acute XK_mu XK_paragraph + \ XK_periodcentered XK_cedilla XK_onesuperior + \ XK_masculine XK_guillemotright XK_onequarter + \ XK_onehalf XK_threequarters XK_questiondown + \ XK_Agrave XK_Aacute XK_Acircumflex XK_Atilde + \ XK_Adiaeresis XK_Aring XK_AE XK_Ccedilla + \ XK_Egrave XK_Eacute XK_Ecircumflex + \ XK_Ediaeresis XK_Igrave XK_Iacute + \ XK_Icircumflex XK_Idiaeresis XK_ETH XK_Eth + \ XK_Ntilde XK_Ograve XK_Oacute XK_Ocircumflex + \ XK_Otilde XK_Odiaeresis XK_multiply + \ XK_Ooblique XK_Ugrave XK_Uacute XK_Ucircumflex + \ XK_Udiaeresis XK_Yacute XK_THORN XK_Thorn + \ XK_ssharp XK_agrave XK_aacute XK_acircumflex + \ XK_atilde XK_adiaeresis XK_aring XK_ae + \ XK_ccedilla XK_egrave XK_eacute XK_ecircumflex + \ XK_ediaeresis XK_igrave XK_iacute + \ XK_icircumflex XK_idiaeresis XK_eth XK_ntilde + \ XK_ograve XK_oacute XK_ocircumflex XK_otilde + \ XK_odiaeresis XK_division XK_oslash XK_ugrave + \ XK_uacute XK_ucircumflex XK_udiaeresis + \ XK_yacute XK_thorn XK_ydiaeresis XK_Aogonek + \ XK_breve XK_Lstroke XK_Lcaron XK_Sacute + \ XK_Scaron XK_Scedilla XK_Tcaron XK_Zacute + \ XK_Zcaron XK_Zabovedot XK_aogonek XK_ogonek + \ XK_lstroke XK_lcaron XK_sacute XK_caron + \ XK_scaron XK_scedilla XK_tcaron XK_zacute + \ XK_doubleacute XK_zcaron XK_zabovedot + \ XK_Racute XK_Abreve XK_Lacute XK_Cacute + \ XK_Ccaron XK_Eogonek XK_Ecaron XK_Dcaron + \ XK_Dstroke XK_Nacute XK_Ncaron XK_Odoubleacute + \ XK_Rcaron XK_Uring XK_Udoubleacute + \ XK_Tcedilla XK_racute XK_abreve XK_lacute + \ XK_cacute XK_ccaron XK_eogonek XK_ecaron + \ XK_dcaron XK_dstroke XK_nacute XK_ncaron + \ XK_odoubleacute XK_udoubleacute XK_rcaron + \ XK_uring XK_tcedilla XK_abovedot XK_Hstroke + \ XK_Hcircumflex XK_Iabovedot XK_Gbreve + \ XK_Jcircumflex XK_hstroke XK_hcircumflex + \ XK_idotless XK_gbreve XK_jcircumflex + \ XK_Cabovedot XK_Ccircumflex XK_Gabovedot + \ XK_Gcircumflex XK_Ubreve XK_Scircumflex + \ XK_cabovedot XK_ccircumflex XK_gabovedot + \ XK_gcircumflex XK_ubreve XK_scircumflex XK_kra + \ XK_kappa XK_Rcedilla XK_Itilde XK_Lcedilla + \ XK_Emacron XK_Gcedilla XK_Tslash XK_rcedilla + \ XK_itilde XK_lcedilla XK_emacron XK_gcedilla + \ XK_tslash XK_ENG XK_eng XK_Amacron XK_Iogonek + \ XK_Eabovedot XK_Imacron XK_Ncedilla XK_Omacron + \ XK_Kcedilla XK_Uogonek XK_Utilde XK_Umacron + \ XK_amacron XK_iogonek XK_eabovedot XK_imacron + \ XK_ncedilla XK_omacron XK_kcedilla XK_uogonek + \ XK_utilde XK_umacron XK_Babovedot XK_babovedot + \ XK_Dabovedot XK_Wgrave XK_Wacute XK_dabovedot + \ XK_Ygrave XK_Fabovedot XK_fabovedot + \ XK_Mabovedot XK_mabovedot XK_Pabovedot + \ XK_wgrave XK_pabovedot XK_wacute XK_Sabovedot + \ XK_ygrave XK_Wdiaeresis XK_wdiaeresis + \ XK_sabovedot XK_Wcircumflex XK_Tabovedot + \ XK_Ycircumflex XK_wcircumflex + \ XK_tabovedot XK_ycircumflex XK_OE XK_oe + \ XK_Ydiaeresis XK_overline XK_kana_fullstop + \ XK_kana_openingbracket XK_kana_closingbracket + \ XK_kana_comma XK_kana_conjunctive + \ XK_kana_middledot XK_kana_WO XK_kana_a + \ XK_kana_i XK_kana_u XK_kana_e XK_kana_o + \ XK_kana_ya XK_kana_yu XK_kana_yo + \ XK_kana_tsu XK_kana_tu XK_prolongedsound + \ XK_kana_A XK_kana_I XK_kana_U XK_kana_E + \ XK_kana_O XK_kana_KA XK_kana_KI XK_kana_KU + \ XK_kana_KE XK_kana_KO XK_kana_SA XK_kana_SHI + \ XK_kana_SU XK_kana_SE XK_kana_SO XK_kana_TA + \ XK_kana_CHI XK_kana_TI XK_kana_TSU + \ XK_kana_TU XK_kana_TE XK_kana_TO XK_kana_NA + \ XK_kana_NI XK_kana_NU XK_kana_NE XK_kana_NO + \ XK_kana_HA XK_kana_HI XK_kana_FU XK_kana_HU + \ XK_kana_HE XK_kana_HO XK_kana_MA XK_kana_MI + \ XK_kana_MU XK_kana_ME XK_kana_MO XK_kana_YA + \ XK_kana_YU XK_kana_YO XK_kana_RA XK_kana_RI + \ XK_kana_RU XK_kana_RE XK_kana_RO XK_kana_WA + \ XK_kana_N XK_voicedsound XK_semivoicedsound + \ XK_kana_switch XK_Farsi_0 XK_Farsi_1 + \ XK_Farsi_2 XK_Farsi_3 XK_Farsi_4 XK_Farsi_5 + \ XK_Farsi_6 XK_Farsi_7 XK_Farsi_8 XK_Farsi_9 + \ XK_Arabic_percent XK_Arabic_superscript_alef + \ XK_Arabic_tteh XK_Arabic_peh XK_Arabic_tcheh + \ XK_Arabic_ddal XK_Arabic_rreh XK_Arabic_comma + \ XK_Arabic_fullstop XK_Arabic_0 XK_Arabic_1 + \ XK_Arabic_2 XK_Arabic_3 XK_Arabic_4 + \ XK_Arabic_5 XK_Arabic_6 XK_Arabic_7 + \ XK_Arabic_8 XK_Arabic_9 XK_Arabic_semicolon + \ XK_Arabic_question_mark XK_Arabic_hamza + \ XK_Arabic_maddaonalef XK_Arabic_hamzaonalef + \ XK_Arabic_hamzaonwaw XK_Arabic_hamzaunderalef + \ XK_Arabic_hamzaonyeh XK_Arabic_alef + \ XK_Arabic_beh XK_Arabic_tehmarbuta + \ XK_Arabic_teh XK_Arabic_theh XK_Arabic_jeem + \ XK_Arabic_hah XK_Arabic_khah XK_Arabic_dal + \ XK_Arabic_thal XK_Arabic_ra XK_Arabic_zain + \ XK_Arabic_seen XK_Arabic_sheen + \ XK_Arabic_sad XK_Arabic_dad XK_Arabic_tah + \ XK_Arabic_zah XK_Arabic_ain XK_Arabic_ghain + \ XK_Arabic_tatweel XK_Arabic_feh XK_Arabic_qaf + \ XK_Arabic_kaf XK_Arabic_lam XK_Arabic_meem + \ XK_Arabic_noon XK_Arabic_ha XK_Arabic_heh + \ XK_Arabic_waw XK_Arabic_alefmaksura + \ XK_Arabic_yeh XK_Arabic_fathatan + \ XK_Arabic_dammatan XK_Arabic_kasratan + \ XK_Arabic_fatha XK_Arabic_damma + \ XK_Arabic_kasra XK_Arabic_shadda + \ XK_Arabic_sukun XK_Arabic_madda_above + \ XK_Arabic_hamza_above XK_Arabic_hamza_below + \ XK_Arabic_jeh XK_Arabic_veh XK_Arabic_keheh + \ XK_Arabic_gaf XK_Arabic_noon_ghunna + \ XK_Arabic_heh_doachashmee XK_Farsi_yeh + \ XK_Arabic_yeh_baree XK_Arabic_heh_goal + \ XK_Arabic_switch XK_Cyrillic_GHE_bar + \ XK_Cyrillic_ghe_bar XK_Cyrillic_ZHE_descender + \ XK_Cyrillic_zhe_descender + \ XK_Cyrillic_KA_descender + \ XK_Cyrillic_ka_descender + \ XK_Cyrillic_KA_vertstroke + \ XK_Cyrillic_ka_vertstroke + \ XK_Cyrillic_EN_descender + \ XK_Cyrillic_en_descender + \ XK_Cyrillic_U_straight XK_Cyrillic_u_straight + \ XK_Cyrillic_U_straight_bar + \ XK_Cyrillic_u_straight_bar + \ XK_Cyrillic_HA_descender + \ XK_Cyrillic_ha_descender + \ XK_Cyrillic_CHE_descender + \ XK_Cyrillic_che_descender + \ XK_Cyrillic_CHE_vertstroke + \ XK_Cyrillic_che_vertstroke XK_Cyrillic_SHHA + \ XK_Cyrillic_shha XK_Cyrillic_SCHWA + \ XK_Cyrillic_schwa XK_Cyrillic_I_macron + \ XK_Cyrillic_i_macron XK_Cyrillic_O_bar + \ XK_Cyrillic_o_bar XK_Cyrillic_U_macron + \ XK_Cyrillic_u_macron XK_Serbian_dje + \ XK_Macedonia_gje XK_Cyrillic_io + \ XK_Ukrainian_ie XK_Ukranian_je + \ XK_Macedonia_dse XK_Ukrainian_i XK_Ukranian_i + \ XK_Ukrainian_yi XK_Ukranian_yi XK_Cyrillic_je + \ XK_Serbian_je XK_Cyrillic_lje XK_Serbian_lje + \ XK_Cyrillic_nje XK_Serbian_nje XK_Serbian_tshe + \ XK_Macedonia_kje XK_Ukrainian_ghe_with_upturn + \ XK_Byelorussian_shortu XK_Cyrillic_dzhe + \ XK_Serbian_dze XK_numerosign + \ XK_Serbian_DJE XK_Macedonia_GJE + \ XK_Cyrillic_IO XK_Ukrainian_IE XK_Ukranian_JE + \ XK_Macedonia_DSE XK_Ukrainian_I XK_Ukranian_I + \ XK_Ukrainian_YI XK_Ukranian_YI XK_Cyrillic_JE + \ XK_Serbian_JE XK_Cyrillic_LJE XK_Serbian_LJE + \ XK_Cyrillic_NJE XK_Serbian_NJE XK_Serbian_TSHE + \ XK_Macedonia_KJE XK_Ukrainian_GHE_WITH_UPTURN + \ XK_Byelorussian_SHORTU XK_Cyrillic_DZHE + \ XK_Serbian_DZE XK_Cyrillic_yu + \ XK_Cyrillic_a XK_Cyrillic_be XK_Cyrillic_tse + \ XK_Cyrillic_de XK_Cyrillic_ie XK_Cyrillic_ef + \ XK_Cyrillic_ghe XK_Cyrillic_ha XK_Cyrillic_i + \ XK_Cyrillic_shorti XK_Cyrillic_ka + \ XK_Cyrillic_el XK_Cyrillic_em XK_Cyrillic_en + \ XK_Cyrillic_o XK_Cyrillic_pe XK_Cyrillic_ya + \ XK_Cyrillic_er XK_Cyrillic_es XK_Cyrillic_te + \ XK_Cyrillic_u XK_Cyrillic_zhe XK_Cyrillic_ve + \ XK_Cyrillic_softsign XK_Cyrillic_yeru + \ XK_Cyrillic_ze XK_Cyrillic_sha XK_Cyrillic_e + \ XK_Cyrillic_shcha XK_Cyrillic_che + \ XK_Cyrillic_hardsign XK_Cyrillic_YU + \ XK_Cyrillic_A XK_Cyrillic_BE XK_Cyrillic_TSE + \ XK_Cyrillic_DE XK_Cyrillic_IE XK_Cyrillic_EF + \ XK_Cyrillic_GHE XK_Cyrillic_HA XK_Cyrillic_I + \ XK_Cyrillic_SHORTI XK_Cyrillic_KA + \ XK_Cyrillic_EL XK_Cyrillic_EM XK_Cyrillic_EN + \ XK_Cyrillic_O XK_Cyrillic_PE XK_Cyrillic_YA + \ XK_Cyrillic_ER XK_Cyrillic_ES XK_Cyrillic_TE + \ XK_Cyrillic_U XK_Cyrillic_ZHE XK_Cyrillic_VE + \ XK_Cyrillic_SOFTSIGN XK_Cyrillic_YERU + \ XK_Cyrillic_ZE XK_Cyrillic_SHA XK_Cyrillic_E + \ XK_Cyrillic_SHCHA XK_Cyrillic_CHE + \ XK_Cyrillic_HARDSIGN XK_Greek_ALPHAaccent + \ XK_Greek_EPSILONaccent XK_Greek_ETAaccent + \ XK_Greek_IOTAaccent XK_Greek_IOTAdieresis + \ XK_Greek_OMICRONaccent XK_Greek_UPSILONaccent + \ XK_Greek_UPSILONdieresis + \ XK_Greek_OMEGAaccent XK_Greek_accentdieresis + \ XK_Greek_horizbar XK_Greek_alphaaccent + \ XK_Greek_epsilonaccent XK_Greek_etaaccent + \ XK_Greek_iotaaccent XK_Greek_iotadieresis + \ XK_Greek_iotaaccentdieresis + \ XK_Greek_omicronaccent XK_Greek_upsilonaccent + \ XK_Greek_upsilondieresis + \ XK_Greek_upsilonaccentdieresis + \ XK_Greek_omegaaccent XK_Greek_ALPHA + \ XK_Greek_BETA XK_Greek_GAMMA XK_Greek_DELTA + \ XK_Greek_EPSILON XK_Greek_ZETA XK_Greek_ETA + \ XK_Greek_THETA XK_Greek_IOTA XK_Greek_KAPPA + \ XK_Greek_LAMDA XK_Greek_LAMBDA XK_Greek_MU + \ XK_Greek_NU XK_Greek_XI XK_Greek_OMICRON + \ XK_Greek_PI XK_Greek_RHO XK_Greek_SIGMA + \ XK_Greek_TAU XK_Greek_UPSILON XK_Greek_PHI + \ XK_Greek_CHI XK_Greek_PSI XK_Greek_OMEGA + \ XK_Greek_alpha XK_Greek_beta XK_Greek_gamma + \ XK_Greek_delta XK_Greek_epsilon XK_Greek_zeta + \ XK_Greek_eta XK_Greek_theta XK_Greek_iota + \ XK_Greek_kappa XK_Greek_lamda XK_Greek_lambda + \ XK_Greek_mu XK_Greek_nu XK_Greek_xi + \ XK_Greek_omicron XK_Greek_pi XK_Greek_rho + \ XK_Greek_sigma XK_Greek_finalsmallsigma + \ XK_Greek_tau XK_Greek_upsilon XK_Greek_phi + \ XK_Greek_chi XK_Greek_psi XK_Greek_omega + \ XK_Greek_switch XK_leftradical + \ XK_topleftradical XK_horizconnector + \ XK_topintegral XK_botintegral + \ XK_vertconnector XK_topleftsqbracket + \ XK_botleftsqbracket XK_toprightsqbracket + \ XK_botrightsqbracket XK_topleftparens + \ XK_botleftparens XK_toprightparens + \ XK_botrightparens XK_leftmiddlecurlybrace + \ XK_rightmiddlecurlybrace + \ XK_topleftsummation XK_botleftsummation + \ XK_topvertsummationconnector + \ XK_botvertsummationconnector + \ XK_toprightsummation XK_botrightsummation + \ XK_rightmiddlesummation XK_lessthanequal + \ XK_notequal XK_greaterthanequal XK_integral + \ XK_therefore XK_variation XK_infinity + \ XK_nabla XK_approximate XK_similarequal + \ XK_ifonlyif XK_implies XK_identical XK_radical + \ XK_includedin XK_includes XK_intersection + \ XK_union XK_logicaland XK_logicalor + \ XK_partialderivative XK_function XK_leftarrow + \ XK_uparrow XK_rightarrow XK_downarrow XK_blank + \ XK_soliddiamond XK_checkerboard XK_ht XK_ff + \ XK_cr XK_lf XK_nl XK_vt XK_lowrightcorner + \ XK_uprightcorner XK_upleftcorner + \ XK_lowleftcorner XK_crossinglines + \ XK_horizlinescan1 XK_horizlinescan3 + \ XK_horizlinescan5 XK_horizlinescan7 + \ XK_horizlinescan9 XK_leftt XK_rightt XK_bott + \ XK_topt XK_vertbar XK_emspace XK_enspace + \ XK_em3space XK_em4space XK_digitspace + \ XK_punctspace XK_thinspace XK_hairspace + \ XK_emdash XK_endash XK_signifblank XK_ellipsis + \ XK_doubbaselinedot XK_onethird XK_twothirds + \ XK_onefifth XK_twofifths XK_threefifths + \ XK_fourfifths XK_onesixth XK_fivesixths + \ XK_careof XK_figdash XK_leftanglebracket + \ XK_decimalpoint XK_rightanglebracket + \ XK_marker XK_oneeighth XK_threeeighths + \ XK_fiveeighths XK_seveneighths XK_trademark + \ XK_signaturemark XK_trademarkincircle + \ XK_leftopentriangle XK_rightopentriangle + \ XK_emopencircle XK_emopenrectangle + \ XK_leftsinglequotemark XK_rightsinglequotemark + \ XK_leftdoublequotemark XK_rightdoublequotemark + \ XK_prescription XK_minutes XK_seconds + \ XK_latincross XK_hexagram XK_filledrectbullet + \ XK_filledlefttribullet XK_filledrighttribullet + \ XK_emfilledcircle XK_emfilledrect + \ XK_enopencircbullet XK_enopensquarebullet + \ XK_openrectbullet XK_opentribulletup + \ XK_opentribulletdown XK_openstar + \ XK_enfilledcircbullet XK_enfilledsqbullet + \ XK_filledtribulletup XK_filledtribulletdown + \ XK_leftpointer XK_rightpointer XK_club + \ XK_diamond XK_heart XK_maltesecross + \ XK_dagger XK_doubledagger XK_checkmark + \ XK_ballotcross XK_musicalsharp XK_musicalflat + \ XK_malesymbol XK_femalesymbol XK_telephone + \ XK_telephonerecorder XK_phonographcopyright + \ XK_caret XK_singlelowquotemark + \ XK_doublelowquotemark XK_cursor + \ XK_leftcaret XK_rightcaret XK_downcaret + \ XK_upcaret XK_overbar XK_downtack XK_upshoe + \ XK_downstile XK_underbar XK_jot XK_quad + \ XK_uptack XK_circle XK_upstile XK_downshoe + \ XK_rightshoe XK_leftshoe XK_lefttack + \ XK_righttack XK_hebrew_doublelowline + \ XK_hebrew_aleph XK_hebrew_bet XK_hebrew_beth + \ XK_hebrew_gimel XK_hebrew_gimmel + \ XK_hebrew_dalet XK_hebrew_daleth + \ XK_hebrew_he XK_hebrew_waw XK_hebrew_zain + \ XK_hebrew_zayin XK_hebrew_chet XK_hebrew_het + \ XK_hebrew_tet XK_hebrew_teth XK_hebrew_yod + \ XK_hebrew_finalkaph XK_hebrew_kaph + \ XK_hebrew_lamed XK_hebrew_finalmem + \ XK_hebrew_mem XK_hebrew_finalnun XK_hebrew_nun + \ XK_hebrew_samech XK_hebrew_samekh + \ XK_hebrew_ayin XK_hebrew_finalpe XK_hebrew_pe + \ XK_hebrew_finalzade XK_hebrew_finalzadi + \ XK_hebrew_zade XK_hebrew_zadi XK_hebrew_qoph + \ XK_hebrew_kuf XK_hebrew_resh XK_hebrew_shin + \ XK_hebrew_taw XK_hebrew_taf XK_Hebrew_switch + \ XK_Thai_kokai XK_Thai_khokhai XK_Thai_khokhuat + \ XK_Thai_khokhwai XK_Thai_khokhon + \ XK_Thai_khorakhang XK_Thai_ngongu + \ XK_Thai_chochan XK_Thai_choching + \ XK_Thai_chochang XK_Thai_soso XK_Thai_chochoe + \ XK_Thai_yoying XK_Thai_dochada XK_Thai_topatak + \ XK_Thai_thothan XK_Thai_thonangmontho + \ XK_Thai_thophuthao XK_Thai_nonen + \ XK_Thai_dodek XK_Thai_totao XK_Thai_thothung + \ XK_Thai_thothahan XK_Thai_thothong + \ XK_Thai_nonu XK_Thai_bobaimai XK_Thai_popla + \ XK_Thai_phophung XK_Thai_fofa XK_Thai_phophan + \ XK_Thai_fofan XK_Thai_phosamphao XK_Thai_moma + \ XK_Thai_yoyak XK_Thai_rorua XK_Thai_ru + \ XK_Thai_loling XK_Thai_lu XK_Thai_wowaen + \ XK_Thai_sosala XK_Thai_sorusi XK_Thai_sosua + \ XK_Thai_hohip XK_Thai_lochula XK_Thai_oang + \ XK_Thai_honokhuk XK_Thai_paiyannoi + \ XK_Thai_saraa XK_Thai_maihanakat + \ XK_Thai_saraaa XK_Thai_saraam XK_Thai_sarai + \ XK_Thai_saraii XK_Thai_saraue XK_Thai_sarauee + \ XK_Thai_sarau XK_Thai_sarauu XK_Thai_phinthu + \ XK_Thai_maihanakat_maitho XK_Thai_baht + \ XK_Thai_sarae XK_Thai_saraae XK_Thai_sarao + \ XK_Thai_saraaimaimuan XK_Thai_saraaimaimalai + \ XK_Thai_lakkhangyao XK_Thai_maiyamok + \ XK_Thai_maitaikhu XK_Thai_maiek XK_Thai_maitho + \ XK_Thai_maitri XK_Thai_maichattawa + \ XK_Thai_thanthakhat XK_Thai_nikhahit + \ XK_Thai_leksun XK_Thai_leknung XK_Thai_leksong + \ XK_Thai_leksam XK_Thai_leksi XK_Thai_lekha + \ XK_Thai_lekhok XK_Thai_lekchet XK_Thai_lekpaet + \ XK_Thai_lekkao XK_Hangul XK_Hangul_Start + \ XK_Hangul_End XK_Hangul_Hanja XK_Hangul_Jamo + \ XK_Hangul_Romaja XK_Hangul_Codeinput + \ XK_Hangul_Jeonja XK_Hangul_Banja + \ XK_Hangul_PreHanja XK_Hangul_PostHanja + \ XK_Hangul_SingleCandidate + \ XK_Hangul_MultipleCandidate + \ XK_Hangul_PreviousCandidate XK_Hangul_Special + \ XK_Hangul_switch XK_Hangul_Kiyeog + \ XK_Hangul_SsangKiyeog XK_Hangul_KiyeogSios + \ XK_Hangul_Nieun XK_Hangul_NieunJieuj + \ XK_Hangul_NieunHieuh XK_Hangul_Dikeud + \ XK_Hangul_SsangDikeud XK_Hangul_Rieul + \ XK_Hangul_RieulKiyeog XK_Hangul_RieulMieum + \ XK_Hangul_RieulPieub XK_Hangul_RieulSios + \ XK_Hangul_RieulTieut XK_Hangul_RieulPhieuf + \ XK_Hangul_RieulHieuh XK_Hangul_Mieum + \ XK_Hangul_Pieub XK_Hangul_SsangPieub + \ XK_Hangul_PieubSios XK_Hangul_Sios + \ XK_Hangul_SsangSios XK_Hangul_Ieung + \ XK_Hangul_Jieuj XK_Hangul_SsangJieuj + \ XK_Hangul_Cieuc XK_Hangul_Khieuq + \ XK_Hangul_Tieut XK_Hangul_Phieuf + \ XK_Hangul_Hieuh XK_Hangul_A XK_Hangul_AE + \ XK_Hangul_YA XK_Hangul_YAE XK_Hangul_EO + \ XK_Hangul_E XK_Hangul_YEO XK_Hangul_YE + \ XK_Hangul_O XK_Hangul_WA XK_Hangul_WAE + \ XK_Hangul_OE XK_Hangul_YO XK_Hangul_U + \ XK_Hangul_WEO XK_Hangul_WE XK_Hangul_WI + \ XK_Hangul_YU XK_Hangul_EU XK_Hangul_YI + \ XK_Hangul_I XK_Hangul_J_Kiyeog + \ XK_Hangul_J_SsangKiyeog XK_Hangul_J_KiyeogSios + \ XK_Hangul_J_Nieun XK_Hangul_J_NieunJieuj + \ XK_Hangul_J_NieunHieuh XK_Hangul_J_Dikeud + \ XK_Hangul_J_Rieul XK_Hangul_J_RieulKiyeog + \ XK_Hangul_J_RieulMieum XK_Hangul_J_RieulPieub + \ XK_Hangul_J_RieulSios XK_Hangul_J_RieulTieut + \ XK_Hangul_J_RieulPhieuf XK_Hangul_J_RieulHieuh + \ XK_Hangul_J_Mieum XK_Hangul_J_Pieub + \ XK_Hangul_J_PieubSios XK_Hangul_J_Sios + \ XK_Hangul_J_SsangSios XK_Hangul_J_Ieung + \ XK_Hangul_J_Jieuj XK_Hangul_J_Cieuc + \ XK_Hangul_J_Khieuq XK_Hangul_J_Tieut + \ XK_Hangul_J_Phieuf XK_Hangul_J_Hieuh + \ XK_Hangul_RieulYeorinHieuh + \ XK_Hangul_SunkyeongeumMieum + \ XK_Hangul_SunkyeongeumPieub XK_Hangul_PanSios + \ XK_Hangul_KkogjiDalrinIeung + \ XK_Hangul_SunkyeongeumPhieuf + \ XK_Hangul_YeorinHieuh XK_Hangul_AraeA + \ XK_Hangul_AraeAE XK_Hangul_J_PanSios + \ XK_Hangul_J_KkogjiDalrinIeung + \ XK_Hangul_J_YeorinHieuh XK_Korean_Won + \ XK_Armenian_eternity XK_Armenian_ligature_ew + \ XK_Armenian_full_stop XK_Armenian_verjaket + \ XK_Armenian_parenright XK_Armenian_parenleft + \ XK_Armenian_guillemotright + \ XK_Armenian_guillemotleft XK_Armenian_em_dash + \ XK_Armenian_dot XK_Armenian_mijaket + \ XK_Armenian_separation_mark XK_Armenian_but + \ XK_Armenian_comma XK_Armenian_en_dash + \ XK_Armenian_hyphen XK_Armenian_yentamna + \ XK_Armenian_ellipsis XK_Armenian_exclam + \ XK_Armenian_amanak XK_Armenian_accent + \ XK_Armenian_shesht XK_Armenian_question + \ XK_Armenian_paruyk XK_Armenian_AYB + \ XK_Armenian_ayb XK_Armenian_BEN + \ XK_Armenian_ben XK_Armenian_GIM + \ XK_Armenian_gim XK_Armenian_DA XK_Armenian_da + \ XK_Armenian_YECH XK_Armenian_yech + \ XK_Armenian_ZA XK_Armenian_za XK_Armenian_E + \ XK_Armenian_e XK_Armenian_AT XK_Armenian_at + \ XK_Armenian_TO XK_Armenian_to + \ XK_Armenian_ZHE XK_Armenian_zhe + \ XK_Armenian_INI XK_Armenian_ini + \ XK_Armenian_LYUN XK_Armenian_lyun + \ XK_Armenian_KHE XK_Armenian_khe + \ XK_Armenian_TSA XK_Armenian_tsa + \ XK_Armenian_KEN XK_Armenian_ken XK_Armenian_HO + \ XK_Armenian_ho XK_Armenian_DZA XK_Armenian_dza + \ XK_Armenian_GHAT XK_Armenian_ghat + \ XK_Armenian_TCHE XK_Armenian_tche + \ XK_Armenian_MEN XK_Armenian_men XK_Armenian_HI + \ XK_Armenian_hi XK_Armenian_NU XK_Armenian_nu + \ XK_Armenian_SHA XK_Armenian_sha XK_Armenian_VO + \ XK_Armenian_vo XK_Armenian_CHA XK_Armenian_cha + \ XK_Armenian_PE XK_Armenian_pe XK_Armenian_JE + \ XK_Armenian_je XK_Armenian_RA XK_Armenian_ra + \ XK_Armenian_SE XK_Armenian_se XK_Armenian_VEV + \ XK_Armenian_vev XK_Armenian_TYUN + \ XK_Armenian_tyun XK_Armenian_RE + \ XK_Armenian_re XK_Armenian_TSO + \ XK_Armenian_tso XK_Armenian_VYUN + \ XK_Armenian_vyun XK_Armenian_PYUR + \ XK_Armenian_pyur XK_Armenian_KE XK_Armenian_ke + \ XK_Armenian_O XK_Armenian_o XK_Armenian_FE + \ XK_Armenian_fe XK_Armenian_apostrophe + \ XK_Armenian_section_sign XK_Georgian_an + \ XK_Georgian_ban XK_Georgian_gan + \ XK_Georgian_don XK_Georgian_en XK_Georgian_vin + \ XK_Georgian_zen XK_Georgian_tan + \ XK_Georgian_in XK_Georgian_kan XK_Georgian_las + \ XK_Georgian_man XK_Georgian_nar XK_Georgian_on + \ XK_Georgian_par XK_Georgian_zhar + \ XK_Georgian_rae XK_Georgian_san + \ XK_Georgian_tar XK_Georgian_un + \ XK_Georgian_phar XK_Georgian_khar + \ XK_Georgian_ghan XK_Georgian_qar + \ XK_Georgian_shin XK_Georgian_chin + \ XK_Georgian_can XK_Georgian_jil + \ XK_Georgian_cil XK_Georgian_char + \ XK_Georgian_xan XK_Georgian_jhan + \ XK_Georgian_hae XK_Georgian_he XK_Georgian_hie + \ XK_Georgian_we XK_Georgian_har XK_Georgian_hoe + \ XK_Georgian_fi XK_Ccedillaabovedot + \ XK_Xabovedot XK_Qabovedot XK_IE XK_UO + \ XK_Zstroke XK_ccedillaabovedot XK_xabovedot + \ XK_qabovedot XK_ie XK_uo XK_zstroke XK_SCHWA + \ XK_schwa XK_Lbelowdot XK_Lstrokebelowdot + \ XK_lbelowdot XK_lstrokebelowdot XK_Gtilde + \ XK_gtilde XK_Abelowdot XK_abelowdot + \ XK_Ahook XK_ahook XK_Acircumflexacute + \ XK_acircumflexacute XK_Acircumflexgrave + \ XK_acircumflexgrave XK_Acircumflexhook + \ XK_acircumflexhook XK_Acircumflextilde + \ XK_acircumflextilde XK_Acircumflexbelowdot + \ XK_acircumflexbelowdot XK_Abreveacute + \ XK_abreveacute XK_Abrevegrave XK_abrevegrave + \ XK_Abrevehook XK_abrevehook XK_Abrevetilde + \ XK_abrevetilde XK_Abrevebelowdot + \ XK_abrevebelowdot XK_Ebelowdot XK_ebelowdot + \ XK_Ehook XK_ehook XK_Etilde XK_etilde + \ XK_Ecircumflexacute XK_ecircumflexacute + \ XK_Ecircumflexgrave XK_ecircumflexgrave + \ XK_Ecircumflexhook XK_ecircumflexhook + \ XK_Ecircumflextilde XK_ecircumflextilde + \ XK_Ecircumflexbelowdot XK_ecircumflexbelowdot + \ XK_Ihook XK_ihook XK_Ibelowdot XK_ibelowdot + \ XK_Obelowdot XK_obelowdot XK_Ohook XK_ohook + \ XK_Ocircumflexacute XK_ocircumflexacute + \ XK_Ocircumflexgrave XK_ocircumflexgrave + \ XK_Ocircumflexhook XK_ocircumflexhook + \ XK_Ocircumflextilde XK_ocircumflextilde + \ XK_Ocircumflexbelowdot XK_ocircumflexbelowdot + \ XK_Ohornacute XK_ohornacute XK_Ohorngrave + \ XK_ohorngrave XK_Ohornhook XK_ohornhook + \ XK_Ohorntilde XK_ohorntilde XK_Ohornbelowdot + \ XK_ohornbelowdot XK_Ubelowdot XK_ubelowdot + \ XK_Uhook XK_uhook XK_Uhornacute XK_uhornacute + \ XK_Uhorngrave XK_uhorngrave XK_Uhornhook + \ XK_uhornhook XK_Uhorntilde XK_uhorntilde + \ XK_Uhornbelowdot XK_uhornbelowdot XK_Ybelowdot + \ XK_ybelowdot XK_Yhook XK_yhook XK_Ytilde + \ XK_ytilde XK_Ohorn XK_ohorn XK_Uhorn XK_uhorn + \ XK_combining_tilde XK_combining_grave + \ XK_combining_acute XK_combining_hook + \ XK_combining_belowdot XK_EcuSign XK_ColonSign + \ XK_CruzeiroSign XK_FFrancSign XK_LiraSign + \ XK_MillSign XK_NairaSign XK_PesetaSign + \ XK_RupeeSign XK_WonSign XK_NewSheqelSign + \ XK_DongSign XK_EuroSign + +" #include +syn keyword xmodmapKeySym SunXK_Sys_Req SunXK_Print_Screen SunXK_Compose + \ SunXK_AltGraph SunXK_PageUp SunXK_PageDown + \ SunXK_Undo SunXK_Again SunXK_Find SunXK_Stop + \ SunXK_Props SunXK_Front SunXK_Copy SunXK_Open + \ SunXK_Paste SunXK_Cut SunXK_PowerSwitch + \ SunXK_AudioLowerVolume SunXK_AudioMute + \ SunXK_AudioRaiseVolume SunXK_VideoDegauss + \ SunXK_VideoLowerBrightness + \ SunXK_VideoRaiseBrightness + \ SunXK_PowerSwitchShift + +" #include +syn keyword xmodmapKeySym XF86XK_ModeLock XF86XK_Standby + \ XF86XK_AudioLowerVolume XF86XK_AudioMute + \ XF86XK_AudioRaiseVolume XF86XK_AudioPlay + \ XF86XK_AudioStop XF86XK_AudioPrev + \ XF86XK_AudioNext XF86XK_HomePage + \ XF86XK_Mail XF86XK_Start XF86XK_Search + \ XF86XK_AudioRecord XF86XK_Calculator + \ XF86XK_Memo XF86XK_ToDoList XF86XK_Calendar + \ XF86XK_PowerDown XF86XK_ContrastAdjust + \ XF86XK_RockerUp XF86XK_RockerDown + \ XF86XK_RockerEnter XF86XK_Back XF86XK_Forward + \ XF86XK_Stop XF86XK_Refresh XF86XK_PowerOff + \ XF86XK_WakeUp XF86XK_Eject XF86XK_ScreenSaver + \ XF86XK_WWW XF86XK_Sleep XF86XK_Favorites + \ XF86XK_AudioPause XF86XK_AudioMedia + \ XF86XK_MyComputer XF86XK_VendorHome + \ XF86XK_LightBulb XF86XK_Shop XF86XK_History + \ XF86XK_OpenURL XF86XK_AddFavorite + \ XF86XK_HotLinks XF86XK_BrightnessAdjust + \ XF86XK_Finance XF86XK_Community + \ XF86XK_AudioRewind XF86XK_XF86BackForward + \ XF86XK_Launch0 XF86XK_Launch1 XF86XK_Launch2 + \ XF86XK_Launch3 XF86XK_Launch4 XF86XK_Launch5 + \ XF86XK_Launch6 XF86XK_Launch7 XF86XK_Launch8 + \ XF86XK_Launch9 XF86XK_LaunchA XF86XK_LaunchB + \ XF86XK_LaunchC XF86XK_LaunchD XF86XK_LaunchE + \ XF86XK_LaunchF XF86XK_ApplicationLeft + \ XF86XK_ApplicationRight XF86XK_Book + \ XF86XK_CD XF86XK_Calculater XF86XK_Clear + \ XF86XK_Close XF86XK_Copy XF86XK_Cut + \ XF86XK_Display XF86XK_DOS XF86XK_Documents + \ XF86XK_Excel XF86XK_Explorer XF86XK_Game + \ XF86XK_Go XF86XK_iTouch XF86XK_LogOff + \ XF86XK_Market XF86XK_Meeting XF86XK_MenuKB + \ XF86XK_MenuPB XF86XK_MySites XF86XK_New + \ XF86XK_News XF86XK_OfficeHome XF86XK_Open + \ XF86XK_Option XF86XK_Paste XF86XK_Phone + \ XF86XK_Q XF86XK_Reply XF86XK_Reload + \ XF86XK_RotateWindows XF86XK_RotationPB + \ XF86XK_RotationKB XF86XK_Save XF86XK_ScrollUp + \ XF86XK_ScrollDown XF86XK_ScrollClick + \ XF86XK_Send XF86XK_Spell XF86XK_SplitScreen + \ XF86XK_Support XF86XK_TaskPane XF86XK_Terminal + \ XF86XK_Tools XF86XK_Travel XF86XK_UserPB + \ XF86XK_User1KB XF86XK_User2KB XF86XK_Video + \ XF86XK_WheelButton XF86XK_Word XF86XK_Xfer + \ XF86XK_ZoomIn XF86XK_ZoomOut XF86XK_Away + \ XF86XK_Messenger XF86XK_WebCam + \ XF86XK_MailForward XF86XK_Pictures + \ XF86XK_Music XF86XK_Switch_VT_1 + \ XF86XK_Switch_VT_2 XF86XK_Switch_VT_3 + \ XF86XK_Switch_VT_4 XF86XK_Switch_VT_5 + \ XF86XK_Switch_VT_6 XF86XK_Switch_VT_7 + \ XF86XK_Switch_VT_8 XF86XK_Switch_VT_9 + \ XF86XK_Switch_VT_10 XF86XK_Switch_VT_11 + \ XF86XK_Switch_VT_12 XF86XK_Ungrab + \ XF86XK_ClearGrab XF86XK_Next_VMode + \ XF86XK_Prev_VMode + +syn keyword xmodmapKeyword keycode keysym clear add remove pointer + +hi def link xmodmapComment Comment +hi def link xmodmapTodo Todo +hi def link xmodmapInt Number +hi def link xmodmapHex Number +hi def link xmodmapOctal Number +hi def link xmodmapOctalError Error +hi def link xmodmapKeySym Constant +hi def link xmodmapKeyword Keyword + +let b:current_syntax = "xmodmap" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/xpm.vim b/git/usr/share/vim/vim92/syntax/xpm.vim new file mode 100644 index 0000000000000000000000000000000000000000..0cfdbe5aa00efafc442a4b3bb32eed80d4cf7d90 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xpm.vim @@ -0,0 +1,154 @@ +" Vim syntax file +" Language: X Pixmap +" Maintainer: Ronald Schild +" Last Change: 2023 May 24 +" Version: 5.4n.2 +" Jemma Nelson added termguicolors support +" Dominique Pellé fixed spelling support +" Christian J. Robinson fixed use of global variables, moved +" loop into a compiled function + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn spell notoplevel + +syn keyword xpmType char +syn keyword xpmStorageClass static +syn keyword xpmTodo TODO FIXME XXX contained +syn region xpmComment start="/\*" end="\*/" contains=xpmTodo,@Spell +syn region xpmPixelString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@xpmColors + +if has("gui_running") || has("termguicolors") && &termguicolors + +def s:CreateSyntax(): void + var color = "" + var chars = "" + var colors = 0 + var cpp = 0 + var n = 0 + var lines = getline(1, '$') + + for line in lines # scanning all lines + + var s = matchstr(line, '".\{-1,}"') + + if s != "" # does line contain a string? + + if n == 0 # first string is the Values string + + var values = split(s[1 : -2]) + + # Values string invalid, bail out + if len(values) != 4 && len(values) != 6 && len(values) != 7 + return + endif + + # get the 3rd value: colors = number of colors + colors = str2nr(values[2]) + # get the 4th value: cpp = number of character per pixel + cpp = str2nr(values[3]) + + # these values must be positive, nonzero + if colors < 1 || cpp < 1 + return + endif + + # Highlight the Values string as normal string (no pixel string). + # Only when there is no slash, it would terminate the pattern. + if s !~ '/' + exe 'syn match xpmValues /' .. s .. '/' + endif + hi link xpmValues String + + n = 1 # n = color index + + elseif n <= colors # string is a color specification + + # get chars = length string representing the pixels + # (first incl. the following whitespace) + chars = substitute(s, '"\(.\{' .. cpp .. '}\s\).*"', '\1', '') + + # now get color, first try 'c' key if any (color visual) + color = substitute(s, '".*\sc\s\+\(.\{-}\)\s*\(\(g4\=\|[ms]\)\s.*\)*\s*"', '\1', '') + if color == s + # no 'c' key, try 'g' key (grayscale with more than 4 levels) + color = substitute(s, '".*\sg\s\+\(.\{-}\)\s*\(\(g4\|[ms]\)\s.*\)*\s*"', '\1', '') + if color == s + # next try: 'g4' key (4-level grayscale) + color = substitute(s, '".*\sg4\s\+\(.\{-}\)\s*\([ms]\s.*\)*\s*"', '\1', '') + if color == s + # finally try 'm' key (mono visual) + color = substitute(s, '".*\sm\s\+\(.\{-}\)\s*\(s\s.*\)*\s*"', '\1', '') + if color == s + color = "" + endif + endif + endif + endif + + # Vim cannot handle RGB codes with more than 6 hex digits + if color =~ '#\x\{10,}$' + color = substitute(color, '\(\x\x\)\x\x', '\1', 'g') + elseif color =~ '#\x\{7,}$' + color = substitute(color, '\(\x\x\)\x', '\1', 'g') + # nor with 3 digits + elseif color =~ '#\x\{3}$' + color = substitute(color, '\(\x\)\(\x\)\(\x\)', '0\10\20\3', '') + endif + + # escape meta characters in patterns + s = escape(s, '/\*^$.~[]') + chars = escape(chars, '/\*^$.~[]') + + # now create syntax items + # highlight the color string as normal string (no pixel string) + exe 'syn match xpmCol' .. n .. 'Def /' .. s .. '/ contains=xpmCol' .. n .. 'inDef' + exe 'hi link xpmCol' .. n .. 'Def String' + + # but highlight the first whitespace after chars in its color + exe 'syn match xpmCol' .. n .. 'inDef /"' .. chars .. '/hs=s+' .. (cpp + 1) .. ' contained' + exe 'hi link xpmCol' .. n .. 'inDef xpmColor' .. n + + # remove the following whitespace from chars + chars = substitute(chars, '.$', '', '') + + # and create the syntax item contained in the pixel strings + exe 'syn match xpmColor' .. n .. ' /' .. chars .. '/ contained' + exe 'syn cluster xpmColors add=xpmColor' .. n + + # if no color or color = "None" show background + if color == "" || substitute(color, '.*', '\L&', '') == 'none' + exe 'hi xpmColor' .. n .. ' guifg=bg' + exe 'hi xpmColor' .. n .. ' guibg=NONE' + elseif color !~ "'" + exe 'hi xpmColor' .. n .. " guifg='" .. color .. "'" + exe 'hi xpmColor' .. n .. " guibg='" .. color .. "'" + endif + n += 1 + else + break # no more color string + endif + endif + endfor +enddef + +call s:CreateSyntax() + +endif " has("gui_running") || has("termguicolors") && &termguicolors + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link xpmType Type +hi def link xpmStorageClass StorageClass +hi def link xpmTodo Todo +hi def link xpmComment Comment +hi def link xpmPixelString String + + +let b:current_syntax = "xpm" + +" vim: ts=8:sw=3:noet: diff --git a/git/usr/share/vim/vim92/syntax/xpm2.vim b/git/usr/share/vim/vim92/syntax/xpm2.vim new file mode 100644 index 0000000000000000000000000000000000000000..dfa6945a3195d482ed43f9ea0754ea4958493400 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xpm2.vim @@ -0,0 +1,153 @@ +" Vim syntax file +" Language: X Pixmap v2 +" Maintainer: Steve Wall (hitched97@velnet.com) +" Last Change: 2017 Feb 01 +" (Dominique Pelle added @Spell) +" Version: 5.8 +" Jemma Nelson added termguicolors support +" +" Made from xpm.vim by Ronald Schild + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +syn region xpm2PixelString start="^" end="$" contains=@xpm2Colors +syn keyword xpm2Todo TODO FIXME XXX contained +syn match xpm2Comment "\!.*$" contains=@Spell,xpm2Todo + + +command -nargs=+ Hi hi def + +if has("gui_running") || has("termguicolors") && &termguicolors + + let color = "" + let chars = "" + let colors = 0 + let cpp = 0 + let n = 0 + let i = 1 + + while i <= line("$") " scanning all lines + + let s = getline(i) + if match(s,"\!.*$") != -1 + let s = matchstr(s, "^[^\!]*") + endif + if s != "" " does line contain a string? + + if n == 0 " first string is the Values string + + " get the 3rd value: colors = number of colors + let colors = substitute(s, '\s*\d\+\s\+\d\+\s\+\(\d\+\).*', '\1', '') + " get the 4th value: cpp = number of character per pixel + let cpp = substitute(s, '\s*\d\+\s\+\d\+\s\+\d\+\s\+\(\d\+\).*', '\1', '') + if cpp =~ '[^0-9]' + break " if cpp is not made of digits there must be something wrong + endif + + " Highlight the Values string as normal string (no pixel string). + " Only when there is no slash, it would terminate the pattern. + if s !~ '/' + exe 'syn match xpm2Values /' . s . '/' + endif + hi def link xpm2Values Statement + + let n = 1 " n = color index + + elseif n <= colors " string is a color specification + + " get chars = length string representing the pixels + " (first incl. the following whitespace) + let chars = substitute(s, '\(.\{'.cpp.'}\s\+\).*', '\1', '') + + " now get color, first try 'c' key if any (color visual) + let color = substitute(s, '.*\sc\s\+\(.\{-}\)\s*\(\(g4\=\|[ms]\)\s.*\)*\s*', '\1', '') + if color == s + " no 'c' key, try 'g' key (grayscale with more than 4 levels) + let color = substitute(s, '.*\sg\s\+\(.\{-}\)\s*\(\(g4\|[ms]\)\s.*\)*\s*', '\1', '') + if color == s + " next try: 'g4' key (4-level grayscale) + let color = substitute(s, '.*\sg4\s\+\(.\{-}\)\s*\([ms]\s.*\)*\s*', '\1', '') + if color == s + " finally try 'm' key (mono visual) + let color = substitute(s, '.*\sm\s\+\(.\{-}\)\s*\(s\s.*\)*\s*', '\1', '') + if color == s + let color = "" + endif + endif + endif + endif + + " Vim cannot handle RGB codes with more than 6 hex digits + if color =~ '#\x\{10,}$' + let color = substitute(color, '\(\x\x\)\x\x', '\1', 'g') + elseif color =~ '#\x\{7,}$' + let color = substitute(color, '\(\x\x\)\x', '\1', 'g') + " nor with 3 digits + elseif color =~ '#\x\{3}$' + let color = substitute(color, '\(\x\)\(\x\)\(\x\)', '0\10\20\3', '') + endif + + " escape meta characters in patterns + let s = escape(s, '/\*^$.~[]') + let chars = escape(chars, '/\*^$.~[]') + + " change whitespace to "\s\+" + let s = substitute(s, "[ \t][ \t]*", "\\\\s\\\\+", "g") + let chars = substitute(chars, "[ \t][ \t]*", "\\\\s\\\\+", "g") + + " now create syntax items + " highlight the color string as normal string (no pixel string) + exe 'syn match xpm2Col'.n.'Def /'.s.'/ contains=xpm2Col'.n.'inDef' + exe 'hi def link xpm2Col'.n.'Def Constant' + + " but highlight the first whitespace after chars in its color + exe 'syn match xpm2Col'.n.'inDef /^'.chars.'/hs=s+'.(cpp).' contained' + exe 'hi def link xpm2Col'.n.'inDef xpm2Color'.n + + " remove the following whitespace from chars + let chars = substitute(chars, '\\s\\+$', '', '') + + " and create the syntax item contained in the pixel strings + exe 'syn match xpm2Color'.n.' /'.chars.'/ contained' + exe 'syn cluster xpm2Colors add=xpm2Color'.n + + " if no color or color = "None" show background + if color == "" || substitute(color, '.*', '\L&', '') == 'none' + exe 'Hi xpm2Color'.n.' guifg=bg guibg=NONE' + elseif color !~ "'" + exe 'Hi xpm2Color'.n." guifg='".color."' guibg='".color."'" + endif + let n = n + 1 + else + break " no more color string + endif + endif + let i = i + 1 + endwhile + + unlet color chars colors cpp n i s + +endif " has("gui_running") || has("termguicolors") && &termguicolors + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet +" The default highlighting. +hi def link xpm2Type Type +hi def link xpm2StorageClass StorageClass +hi def link xpm2Todo Todo +hi def link xpm2Comment Comment +hi def link xpm2PixelString String + +delcommand Hi + +let b:current_syntax = "xpm2" + +let &cpo = s:cpo_save +unlet s:cpo_save +" vim: ts=8:sw=2:noet: diff --git a/git/usr/share/vim/vim92/syntax/xquery.vim b/git/usr/share/vim/vim92/syntax/xquery.vim new file mode 100644 index 0000000000000000000000000000000000000000..0c6b72a407fb2b05d608ebafcb1b722b558ae28d --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xquery.vim @@ -0,0 +1,82 @@ +" Vim syntax file +" Language: XQuery +" Author: René Neumann +" Author: Steve Spigarelli +" Original Author: Jean-Marc Vanel +" Last Change: mar jui 12 18:04:05 CEST 2005 +" Filenames: *.xq +" URL: http://jmvanel.free.fr/vim/xquery.vim + +" REFERENCES: +" [1] http://www.w3.org/TR/xquery/ + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" - is allowed in keywords +setlocal iskeyword+=- + +runtime syntax/xml.vim + +syn case match + +" From XQuery grammar: +syn keyword xqStatement ancestor ancestor-or-self and as ascending at attribute base-uri boundary-space by case cast castable child collation construction declare default descendant descendant-or-self descending div document element else empty encoding eq every except external following following-sibling for function ge greatest gt idiv if import in inherit-namespaces instance intersect is le least let lt mod module namespace ne no of or order ordered ordering parent preceding preceding-sibling preserve return satisfies schema self some stable strip then to treat typeswitch union unordered validate variable version where xmlspace xquery yes + +" TODO contains clashes with vim keyword +syn keyword xqFunction abs adjust-date-to-timezone adjust-date-to-timezone adjust-dateTime-to-timezone adjust-dateTime-to-timezone adjust-time-to-timezone adjust-time-to-timezone avg base-uri base-uri boolean ceiling codepoint-equal codepoints-to-string collection collection compare concat count current-date current-dateTime current-time data dateTime day-from-date day-from-dateTime days-from-duration deep-equal deep-equal default-collation distinct-values distinct-values doc doc-available document-uri empty ends-with ends-with error error error error escape-uri exactly-one exists false floor hours-from-dateTime hours-from-duration hours-from-time id id idref idref implicit-timezone in-scope-prefixes index-of index-of insert-before lang lang last local-name local-name local-name-from-QName lower-case matches matches max max min min minutes-from-dateTime minutes-from-duration minutes-from-time month-from-date month-from-dateTime months-from-duration name name namespace-uri namespace-uri namespace-uri-for-prefix namespace-uri-from-QName nilled node-name normalize-space normalize-space normalize-unicode normalize-unicode not number number one-or-more position prefix-from-QName QName remove replace replace resolve-QName resolve-uri resolve-uri reverse root root round round-half-to-even round-half-to-even seconds-from-dateTime seconds-from-duration seconds-from-time starts-with starts-with static-base-uri string string string-join string-length string-length string-to-codepoints subsequence subsequence substring substring substring-after substring-after substring-before substring-before sum sum timezone-from-date timezone-from-dateTime timezone-from-time tokenize tokenize trace translate true unordered upper-case year-from-date year-from-dateTime years-from-duration zero-or-one + +syn keyword xqOperator add-dayTimeDuration-to-date add-dayTimeDuration-to-dateTime add-dayTimeDuration-to-time add-dayTimeDurations add-yearMonthDuration-to-date add-yearMonthDuration-to-dateTime add-yearMonthDurations base64Binary-equal boolean-equal boolean-greater-than boolean-less-than concatenate date-equal date-greater-than date-less-than dateTime-equal dateTime-greater-than dateTime-less-than dayTimeDuration-equal dayTimeDuration-greater-than dayTimeDuration-less-than divide-dayTimeDuration divide-dayTimeDuration-by-dayTimeDuration divide-yearMonthDuration divide-yearMonthDuration-by-yearMonthDuration except gDay-equal gMonth-equal gMonthDay-equal gYear-equal gYearMonth-equal hexBinary-equal intersect is-same-node multiply-dayTimeDuration multiply-yearMonthDuration node-after node-before NOTATION-equal numeric-add numeric-divide numeric-equal numeric-greater-than numeric-integer-divide numeric-less-than numeric-mod numeric-multiply numeric-subtract numeric-unary-minus numeric-unary-plus QName-equal subtract-dates-yielding-dayTimeDuration subtract-dateTimes-yielding-dayTimeDuration subtract-dayTimeDuration-from-date subtract-dayTimeDuration-from-dateTime subtract-dayTimeDuration-from-time subtract-dayTimeDurations subtract-times subtract-yearMonthDuration-from-date subtract-yearMonthDuration-from-dateTime subtract-yearMonthDurations time-equal time-greater-than time-less-than to union yearMonthDuration-equal yearMonthDuration-greater-than yearMonthDuration-less-than + +syn match xqType "xs:\(\|Datatype\|primitive\|string\|boolean\|float\|double\|decimal\|duration\|dateTime\|time\|date\|gYearMonth\|gYear\|gMonthDay\|gDay\|gMonth\|hexBinary\|base64Binary\|anyURI\|QName\|NOTATION\|\|normalizedString\|token\|language\|IDREFS\|ENTITIES\|NMTOKEN\|NMTOKENS\|Name\|NCName\|ID\|IDREF\|ENTITY\|integer\|nonPositiveInteger\|negativeInteger\|long\|int\|short\|byte\|nonNegativeInteger\|unsignedLong\|unsignedInt\|unsignedShort\|unsignedByte\|positiveInteger\)" + + +" From XPath grammar: +syn keyword xqXPath some every in in satisfies if then else to div idiv mod union intersect except instance of treat castable cast eq ne lt le gt ge is child descendant attribute self descendant-or-self following-sibling following namespace parent ancestor preceding-sibling preceding ancestor-or-self void item node document-node text comment processing-instruction attribute schema-attribute schema-element + +" eXist extensions +syn match xqExist "&=" + +" XQdoc +syn match XQdoc contained "@\(param\|return\|author\)\>" + +" floating point number, with dot, optional exponent +syn match xqFloat "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +" floating point number, starting with a dot, optional exponent +syn match xqFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" +" floating point number, without dot, with exponent +syn match xqFloat "\d\+e[-+]\=\d\+[fl]\=\>" +syn match xqNumber "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" +syn match xqNumber "\<\d\+\>" + +syn region xqString start=+\z(['"]\)+ skip=+\\.+ end=+\z1+ +syn region xqComment start='(:' excludenl end=':)' contains=XQdoc + +syn match xqVariable "$\<[a-zA-Z:_][-.0-9a-zA-Z0-9:_]*\>" +syn match xqSeparator ",\|;" +syn region xqCode transparent contained start='{' excludenl end='}' contains=xqFunction,xqCode,xmlRegionBis,xqComment,xqStatement,xmlString,xqSeparator,xqNumber,xqVariable,xqString keepend extend + +syn region xmlRegionBis start=+<\z([^ /!?<>"']\+\)+ skip=++ end=++ end=+/>+ fold contains=xmlTag,xmlEndTag,xmlCdata,xmlRegionBis,xmlComment,xmlEntity,xmlProcessing,xqCode keepend extend + +hi def link xqNumber Number +hi def link xqFloat Number +hi def link xqString String +hi def link xqVariable Identifier +hi def link xqComment Comment +hi def link xqSeparator Operator +hi def link xqStatement Statement +hi def link xqFunction Function +hi def link xqOperator Operator +hi def link xqType Type +hi def link xqXPath Operator +hi def link XQdoc Special +hi def link xqExist Operator + +" override the xml highlighting +"hi link xmlTag Structure +"hi link xmlTagName Structure +"hi link xmlEndTag Structure + +let b:current_syntax = "xquery" diff --git a/git/usr/share/vim/vim92/syntax/xs.vim b/git/usr/share/vim/vim92/syntax/xs.vim new file mode 100644 index 0000000000000000000000000000000000000000..90f8d3710adccb1c670556aba713a9079535db91 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xs.vim @@ -0,0 +1,3680 @@ +" Vim syntax file +" Language: XS (Perl extension interface language) +" Author: Autogenerated from perl headers, on an original basis of Michael W. Dodge +" Maintainer: vim-perl (need to be subscribed to post) +" Previous: Vincent Pit +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2018 Mar 28 + +if exists("b:current_syntax") + finish +endif + +runtime! syntax/c.vim + +" Configuration: +" let xs_superseded = 0 " mark C functions superseded by Perl replacements (ex. memcpy vs Copy) +" let xs_not_core = 0 " mark private core functions + +if get(g:, 'xs_superseded', 0) +syn keyword xsSuperseded atof atol calloc clearerr exit fclose feof ferror +syn keyword xsSuperseded fflush fgetc fgetpos fgets fopen fprintf fputc fputs +syn keyword xsSuperseded fread free freopen fseek fsetpos fwrite getc getenv +syn keyword xsSuperseded isalnum isalpha iscntrl isdigit isgraph islower +syn keyword xsSuperseded isprint ispunct isspace isupper isxdigit malloc +syn keyword xsSuperseded memcpy memmove memset printf putc rand realloc +syn keyword xsSuperseded rewind setenv sprintf srand stderr stdin stdout +syn keyword xsSuperseded strcat strcmp strcpy strdup strlen strncat strncmp +syn keyword xsSuperseded strncpy strstr strtod strtol strtoul system tolower +syn keyword xsSuperseded toupper ungetc +endif +if get(g:, 'xs_not_core', 0) +syn keyword xsPrivate F0convert Perl__add_range_to_invlist +syn keyword xsPrivate Perl__core_swash_init Perl__get_encoding +syn keyword xsPrivate Perl__get_swash_invlist Perl__invlist_contents +syn keyword xsPrivate Perl__invlist_dump +syn keyword xsPrivate Perl__invlist_intersection_maybe_complement_2nd +syn keyword xsPrivate Perl__invlist_invert Perl__invlist_populate_swatch +syn keyword xsPrivate Perl__invlist_search +syn keyword xsPrivate Perl__invlist_union_maybe_complement_2nd +syn keyword xsPrivate Perl__load_PL_utf8_foldclosures Perl__new_invlist +syn keyword xsPrivate Perl__setup_canned_invlist Perl__swash_inversion_hash +syn keyword xsPrivate Perl__swash_to_invlist Perl__to_fold_latin1 +syn keyword xsPrivate Perl__warn_problematic_locale Perl_av_reify +syn keyword xsPrivate Perl_current_re_engine Perl_cv_ckproto_len_flags +syn keyword xsPrivate Perl_emulate_cop_io Perl_find_rundefsvoffset +syn keyword xsPrivate Perl_get_re_arg Perl_grok_atoUV Perl_isALNUM_lazy +syn keyword xsPrivate Perl_isIDFIRST_lazy Perl_is_uni_alnum +syn keyword xsPrivate Perl_is_uni_alnum_lc Perl_is_uni_alnumc +syn keyword xsPrivate Perl_is_uni_alnumc_lc Perl_is_uni_alpha +syn keyword xsPrivate Perl_is_uni_alpha_lc Perl_is_uni_ascii +syn keyword xsPrivate Perl_is_uni_ascii_lc Perl_is_uni_blank +syn keyword xsPrivate Perl_is_uni_blank_lc Perl_is_uni_cntrl +syn keyword xsPrivate Perl_is_uni_cntrl_lc Perl_is_uni_digit +syn keyword xsPrivate Perl_is_uni_digit_lc Perl_is_uni_graph +syn keyword xsPrivate Perl_is_uni_graph_lc Perl_is_uni_idfirst +syn keyword xsPrivate Perl_is_uni_idfirst_lc Perl_is_uni_lower +syn keyword xsPrivate Perl_is_uni_lower_lc Perl_is_uni_print +syn keyword xsPrivate Perl_is_uni_print_lc Perl_is_uni_punct +syn keyword xsPrivate Perl_is_uni_punct_lc Perl_is_uni_space +syn keyword xsPrivate Perl_is_uni_space_lc Perl_is_uni_upper +syn keyword xsPrivate Perl_is_uni_upper_lc Perl_is_uni_xdigit +syn keyword xsPrivate Perl_is_uni_xdigit_lc Perl_is_utf8_alnum +syn keyword xsPrivate Perl_is_utf8_alnumc Perl_is_utf8_alpha +syn keyword xsPrivate Perl_is_utf8_ascii Perl_is_utf8_blank Perl_is_utf8_char +syn keyword xsPrivate Perl_is_utf8_cntrl Perl_is_utf8_digit +syn keyword xsPrivate Perl_is_utf8_graph Perl_is_utf8_idcont +syn keyword xsPrivate Perl_is_utf8_idfirst Perl_is_utf8_lower +syn keyword xsPrivate Perl_is_utf8_mark Perl_is_utf8_perl_space +syn keyword xsPrivate Perl_is_utf8_perl_word Perl_is_utf8_posix_digit +syn keyword xsPrivate Perl_is_utf8_print Perl_is_utf8_punct +syn keyword xsPrivate Perl_is_utf8_space Perl_is_utf8_upper +syn keyword xsPrivate Perl_is_utf8_xdigit Perl_is_utf8_xidcont +syn keyword xsPrivate Perl_is_utf8_xidfirst Perl_mg_find_mglob Perl_mg_length +syn keyword xsPrivate Perl_multideref_stringify Perl_new_warnings_bitfield +syn keyword xsPrivate Perl_op_clear Perl_ptr_table_clear Perl_qerror +syn keyword xsPrivate Perl_reg_named_buff Perl_reg_named_buff_iter +syn keyword xsPrivate Perl_reg_numbered_buff_fetch +syn keyword xsPrivate Perl_reg_numbered_buff_length +syn keyword xsPrivate Perl_reg_numbered_buff_store Perl_reg_qr_package +syn keyword xsPrivate Perl_reg_temp_copy Perl_regprop Perl_report_uninit +syn keyword xsPrivate Perl_sv_magicext_mglob Perl_sv_setsv_cow +syn keyword xsPrivate Perl_to_uni_lower_lc Perl_to_uni_title_lc +syn keyword xsPrivate Perl_to_uni_upper_lc Perl_try_amagic_bin +syn keyword xsPrivate Perl_try_amagic_un Perl_utf8_to_uvchr +syn keyword xsPrivate Perl_utf8_to_uvuni Perl_utf8_to_uvuni_buf +syn keyword xsPrivate Perl_valid_utf8_to_uvuni Perl_validate_proto +syn keyword xsPrivate Perl_vivify_defelem Perl_yylex S_F0convert +syn keyword xsPrivate S__append_range_to_invlist S__make_exactf_invlist +syn keyword xsPrivate S_add_above_Latin1_folds S_add_data S_add_multi_match +syn keyword xsPrivate S_add_utf16_textfilter S_adjust_size_and_find_bucket +syn keyword xsPrivate S_advance_one_SB S_advance_one_WB S_amagic_cmp +syn keyword xsPrivate S_amagic_cmp_locale S_amagic_i_ncmp S_amagic_ncmp +syn keyword xsPrivate S_anonymise_cv_maybe S_ao S_apply_attrs +syn keyword xsPrivate S_apply_attrs_my S_assert_uft8_cache_coherent +syn keyword xsPrivate S_assignment_type S_backup_one_SB S_backup_one_WB +syn keyword xsPrivate S_bad_type_gv S_bad_type_pv +syn keyword xsPrivate S_check_locale_boundary_crossing S_check_type_and_open +syn keyword xsPrivate S_check_uni S_checkcomma S_ckwarn_common +syn keyword xsPrivate S_clear_placeholders S_clear_special_blocks +syn keyword xsPrivate S_cntrl_to_mnemonic S_construct_ahocorasick_from_trie +syn keyword xsPrivate S_cop_free S_could_it_be_a_POSIX_class S_cr_textfilter +syn keyword xsPrivate S_curse S_cv_dump S_deb_curcv S_deb_stack_n S_debprof +syn keyword xsPrivate S_debug_start_match S_del_sv +syn keyword xsPrivate S_deprecate_commaless_var_list S_destroy_matcher +syn keyword xsPrivate S_div128 S_do_chomp S_do_delete_local S_do_oddball +syn keyword xsPrivate S_do_smartmatch S_do_trans_complex +syn keyword xsPrivate S_do_trans_complex_utf8 S_do_trans_count +syn keyword xsPrivate S_do_trans_count_utf8 S_do_trans_simple +syn keyword xsPrivate S_do_trans_simple_utf8 S_docatch S_doeval S_dofindlabel +syn keyword xsPrivate S_doform S_dooneliner S_doopen_pm S_doparseform +syn keyword xsPrivate S_dopoptoeval S_dopoptogiven S_dopoptolabel +syn keyword xsPrivate S_dopoptoloop S_dopoptosub_at S_dopoptowhen +syn keyword xsPrivate S_dump_exec_pos S_dump_trie S_dump_trie_interim_list +syn keyword xsPrivate S_dump_trie_interim_table S_dumpuntil S_dup_attrlist +syn keyword xsPrivate S_exec_failed S_expect_number S_filter_gets +syn keyword xsPrivate S_finalize_op S_find_and_forget_pmops +syn keyword xsPrivate S_find_array_subscript S_find_beginning S_find_byclass +syn keyword xsPrivate S_find_default_stash S_find_hash_subscript +syn keyword xsPrivate S_find_in_my_stash S_find_uninit_var S_first_symbol +syn keyword xsPrivate S_fixup_errno_string S_fold_constants S_forbid_setid +syn keyword xsPrivate S_force_ident S_force_ident_maybe_lex S_force_list +syn keyword xsPrivate S_force_next S_force_strict_version S_force_version +syn keyword xsPrivate S_force_word S_forget_pmop S_form_short_octal_warning +syn keyword xsPrivate S_gen_constant_list S_get_ANYOF_cp_list_for_ssc +syn keyword xsPrivate S_get_aux_mg S_get_num S_glob_2number +syn keyword xsPrivate S_glob_assign_glob S_grok_bslash_N S_grok_bslash_c +syn keyword xsPrivate S_grok_bslash_o S_group_end S_gv_init_svtype +syn keyword xsPrivate S_gv_is_in_main S_gv_magicalize S_gv_magicalize_isa +syn keyword xsPrivate S_handle_regex_sets S_hfreeentries S_hsplit +syn keyword xsPrivate S_hv_auxinit S_hv_auxinit_internal S_hv_delete_common +syn keyword xsPrivate S_hv_free_ent_ret S_hv_magic_check S_hv_notallowed +syn keyword xsPrivate S_incline S_incpush S_incpush_if_exists +syn keyword xsPrivate S_incpush_use_sep S_ingroup S_init_ids S_init_interp +syn keyword xsPrivate S_init_main_stash S_init_perllib +syn keyword xsPrivate S_init_postdump_symbols S_init_predump_symbols +syn keyword xsPrivate S_inplace_aassign S_intuit_method S_intuit_more +syn keyword xsPrivate S_invlist_extend S_invlist_iternext +syn keyword xsPrivate S_invoke_exception_hook S_isFOO_lc S_isFOO_utf8_lc +syn keyword xsPrivate S_isGCB S_isSB S_isWB S_is_an_int +syn keyword xsPrivate S_is_handle_constructor S_is_ssc_worth_it S_isa_lookup +syn keyword xsPrivate S_join_exact S_leave_common S_listkids +syn keyword xsPrivate S_looks_like_bool S_magic_methcall1 S_make_matcher +syn keyword xsPrivate S_make_trie S_matcher_matches_sv S_maybe_multimagic_gv +syn keyword xsPrivate S_mayberelocate S_measure_struct S_mem_log_common +syn keyword xsPrivate S_mess_alloc S_minus_v S_missingterm S_modkids +syn keyword xsPrivate S_more_sv S_move_proto_attr S_mro_clean_isarev +syn keyword xsPrivate S_mro_gather_and_rename S_mro_get_linear_isa_dfs +syn keyword xsPrivate S_mul128 S_mulexp10 S_my_bytes_to_utf8 S_my_exit_jump +syn keyword xsPrivate S_my_kid S_need_utf8 S_newGIVWHENOP S_new_constant +syn keyword xsPrivate S_new_he S_new_logop S_next_symbol S_nextchar +syn keyword xsPrivate S_no_bareword_allowed S_no_fh_allowed S_no_op +syn keyword xsPrivate S_not_a_number S_not_incrementable S_nuke_stacks +syn keyword xsPrivate S_num_overflow S_open_script S_openn_cleanup +syn keyword xsPrivate S_openn_setup S_pack_rec S_pad_alloc_name +syn keyword xsPrivate S_pad_check_dup S_pad_findlex S_pad_reset S_parse_body +syn keyword xsPrivate S_parse_gv_stash_name S_parse_ident +syn keyword xsPrivate S_parse_lparen_question_flags S_pending_ident S_pidgone +syn keyword xsPrivate S_pm_description S_pmtrans +syn keyword xsPrivate S_populate_ANYOF_from_invlist S_printbuf +syn keyword xsPrivate S_process_special_blocks S_ptr_table_find +syn keyword xsPrivate S_put_charclass_bitmap_innards S_put_code_point +syn keyword xsPrivate S_put_range S_qsortsvu S_re_croak2 S_ref_array_or_hash +syn keyword xsPrivate S_refcounted_he_value S_refkids S_refto S_reg +syn keyword xsPrivate S_reg2Lanode S_reg_check_named_buff_matched S_reg_node +syn keyword xsPrivate S_reg_recode S_reg_scan_name S_reganode S_regatom +syn keyword xsPrivate S_regbranch S_regclass S_regcppop S_regcppush +syn keyword xsPrivate S_regdump_extflags S_regdump_intflags +syn keyword xsPrivate S_regex_set_precedence S_reghop3 S_reghop4 +syn keyword xsPrivate S_reghopmaybe3 S_reginclass S_reginsert S_regmatch +syn keyword xsPrivate S_regnode_guts S_regpatws S_regpiece S_regrepeat +syn keyword xsPrivate S_regtail S_regtail_study S_regtry S_require_tie_mod +syn keyword xsPrivate S_restore_magic S_run_body S_run_user_filter +syn keyword xsPrivate S_rxres_free S_rxres_restore S_save_hek_flags +syn keyword xsPrivate S_save_lines S_save_magic_flags S_save_pushptri32ptr +syn keyword xsPrivate S_save_scalar_at S_scalar_mod_type S_scalarboolean +syn keyword xsPrivate S_scalarkids S_scalarseq S_scan_commit S_scan_const +syn keyword xsPrivate S_scan_formline S_scan_heredoc S_scan_ident +syn keyword xsPrivate S_scan_inputsymbol S_scan_pat S_scan_str S_scan_subst +syn keyword xsPrivate S_scan_trans S_scan_word S_search_const S_sequence_num +syn keyword xsPrivate S_set_ANYOF_arg S_share_hek_flags S_simplify_sort +syn keyword xsPrivate S_skipspace_flags S_sortcv S_sortcv_stacked +syn keyword xsPrivate S_sortcv_xsub S_space_join_names_mortal S_ssc_and +syn keyword xsPrivate S_ssc_anything S_ssc_finalize S_ssc_init +syn keyword xsPrivate S_ssc_is_anything S_ssc_is_cp_posixl_init S_ssc_or +syn keyword xsPrivate S_stdize_locale S_strip_return S_study_chunk +syn keyword xsPrivate S_sublex_done S_sublex_push S_sublex_start +syn keyword xsPrivate S_sv_2iuv_common S_sv_2iuv_non_preserve S_sv_add_arena +syn keyword xsPrivate S_sv_buf_to_rw S_sv_display S_sv_dup_common +syn keyword xsPrivate S_sv_dup_inc_multiple S_sv_exp_grow S_sv_i_ncmp +syn keyword xsPrivate S_sv_ncmp S_sv_pos_b2u_midway S_sv_pos_u2b_cached +syn keyword xsPrivate S_sv_pos_u2b_forwards S_sv_pos_u2b_midway +syn keyword xsPrivate S_sv_release_COW S_swallow_bom S_swash_scan_list_line +syn keyword xsPrivate S_swatch_get S_to_byte_substr S_to_lower_latin1 +syn keyword xsPrivate S_to_utf8_substr S_tokenize_use S_tokeq S_tokereport +syn keyword xsPrivate S_too_few_arguments_pv S_too_many_arguments_pv +syn keyword xsPrivate S_uiv_2buf S_unpack_rec S_unreferenced_to_tmp_stack +syn keyword xsPrivate S_unshare_hek_or_pvn S_unwind_handler_stack +syn keyword xsPrivate S_update_debugger_info S_usage S_utf16_textfilter +syn keyword xsPrivate S_utf8_mg_len_cache_update S_utf8_mg_pos_cache_update +syn keyword xsPrivate S_validate_suid S_visit S_with_queued_errors +syn keyword xsPrivate S_xs_version_bootcheck S_yywarn _add_range_to_invlist +syn keyword xsPrivate _append_range_to_invlist _core_swash_init _get_encoding +syn keyword xsPrivate _get_swash_invlist _invlist_array_init +syn keyword xsPrivate _invlist_contains_cp _invlist_contents _invlist_dump +syn keyword xsPrivate _invlist_intersection +syn keyword xsPrivate _invlist_intersection_maybe_complement_2nd +syn keyword xsPrivate _invlist_invert _invlist_len _invlist_populate_swatch +syn keyword xsPrivate _invlist_search _invlist_subtract _invlist_union +syn keyword xsPrivate _invlist_union_maybe_complement_2nd +syn keyword xsPrivate _load_PL_utf8_foldclosures _make_exactf_invlist +syn keyword xsPrivate _new_invlist _setup_canned_invlist +syn keyword xsPrivate _swash_inversion_hash _swash_to_invlist _to_fold_latin1 +syn keyword xsPrivate _warn_problematic_locale add_above_Latin1_folds +syn keyword xsPrivate add_cp_to_invlist add_data add_multi_match +syn keyword xsPrivate add_utf16_textfilter adjust_size_and_find_bucket +syn keyword xsPrivate advance_one_SB advance_one_WB +syn keyword xsPrivate alloc_maybe_populate_EXACT amagic_cmp amagic_cmp_locale +syn keyword xsPrivate amagic_i_ncmp amagic_ncmp anonymise_cv_maybe ao +syn keyword xsPrivate apply_attrs apply_attrs_my assert_uft8_cache_coherent +syn keyword xsPrivate assignment_type av_reify backup_one_SB backup_one_WB +syn keyword xsPrivate bad_type_gv bad_type_pv check_locale_boundary_crossing +syn keyword xsPrivate check_type_and_open check_uni checkcomma ckwarn_common +syn keyword xsPrivate clear_placeholders clear_special_blocks +syn keyword xsPrivate cntrl_to_mnemonic compute_EXACTish +syn keyword xsPrivate construct_ahocorasick_from_trie cop_free +syn keyword xsPrivate could_it_be_a_POSIX_class cr_textfilter +syn keyword xsPrivate current_re_engine curse cv_ckproto_len_flags cv_dump +syn keyword xsPrivate deb_curcv deb_stack_n debprof debug_start_match del_sv +syn keyword xsPrivate deprecate_commaless_var_list destroy_matcher div128 +syn keyword xsPrivate do_aexec do_chomp do_delete_local do_exec do_oddball +syn keyword xsPrivate do_smartmatch do_trans_complex do_trans_complex_utf8 +syn keyword xsPrivate do_trans_count do_trans_count_utf8 do_trans_simple +syn keyword xsPrivate do_trans_simple_utf8 docatch doeval dofindlabel doform +syn keyword xsPrivate dooneliner doopen_pm doparseform dopoptoeval +syn keyword xsPrivate dopoptogiven dopoptolabel dopoptoloop dopoptosub_at +syn keyword xsPrivate dopoptowhen dump_exec_pos dump_trie +syn keyword xsPrivate dump_trie_interim_list dump_trie_interim_table +syn keyword xsPrivate dumpuntil dup_attrlist exec_failed expect_number +syn keyword xsPrivate filter_gets finalize_op find_and_forget_pmops +syn keyword xsPrivate find_array_subscript find_beginning find_byclass +syn keyword xsPrivate find_default_stash find_hash_subscript find_in_my_stash +syn keyword xsPrivate find_rundefsvoffset find_uninit_var first_symbol +syn keyword xsPrivate fixup_errno_string fold_constants forbid_setid +syn keyword xsPrivate force_ident force_ident_maybe_lex force_list force_next +syn keyword xsPrivate force_strict_version force_version force_word +syn keyword xsPrivate forget_pmop form_short_octal_warning free_c_backtrace +syn keyword xsPrivate gen_constant_list get_ANYOF_cp_list_for_ssc get_aux_mg +syn keyword xsPrivate get_invlist_iter_addr get_invlist_offset_addr +syn keyword xsPrivate get_invlist_previous_index_addr get_num glob_2number +syn keyword xsPrivate glob_assign_glob grok_atoUV grok_bslash_N grok_bslash_c +syn keyword xsPrivate grok_bslash_o grok_bslash_x group_end gv_init_svtype +syn keyword xsPrivate gv_is_in_main gv_magicalize gv_magicalize_isa +syn keyword xsPrivate handle_regex_sets hfreeentries hsplit hv_auxinit +syn keyword xsPrivate hv_auxinit_internal hv_delete_common hv_free_ent_ret +syn keyword xsPrivate hv_magic_check hv_notallowed incline incpush +syn keyword xsPrivate incpush_if_exists incpush_use_sep ingroup init_ids +syn keyword xsPrivate init_interp init_main_stash init_perllib +syn keyword xsPrivate init_postdump_symbols init_predump_symbols +syn keyword xsPrivate inplace_aassign intuit_method intuit_more invlist_array +syn keyword xsPrivate invlist_clone invlist_extend invlist_highest +syn keyword xsPrivate invlist_is_iterating invlist_iterfinish +syn keyword xsPrivate invlist_iterinit invlist_iternext invlist_max +syn keyword xsPrivate invlist_previous_index invlist_set_len +syn keyword xsPrivate invlist_set_previous_index invlist_trim +syn keyword xsPrivate invoke_exception_hook isALNUM_lazy isFOO_lc +syn keyword xsPrivate isFOO_utf8_lc isGCB isIDFIRST_lazy isSB isWB is_an_int +syn keyword xsPrivate is_handle_constructor is_ssc_worth_it is_uni_alnum +syn keyword xsPrivate is_uni_alnum_lc is_uni_alnumc is_uni_alnumc_lc +syn keyword xsPrivate is_uni_alpha is_uni_alpha_lc is_uni_ascii +syn keyword xsPrivate is_uni_ascii_lc is_uni_blank is_uni_blank_lc +syn keyword xsPrivate is_uni_cntrl is_uni_cntrl_lc is_uni_digit +syn keyword xsPrivate is_uni_digit_lc is_uni_graph is_uni_graph_lc +syn keyword xsPrivate is_uni_idfirst is_uni_idfirst_lc is_uni_lower +syn keyword xsPrivate is_uni_lower_lc is_uni_print is_uni_print_lc +syn keyword xsPrivate is_uni_punct is_uni_punct_lc is_uni_space +syn keyword xsPrivate is_uni_space_lc is_uni_upper is_uni_upper_lc +syn keyword xsPrivate is_uni_xdigit is_uni_xdigit_lc is_utf8_alnum +syn keyword xsPrivate is_utf8_alnumc is_utf8_alpha is_utf8_ascii +syn keyword xsPrivate is_utf8_blank is_utf8_char is_utf8_cntrl is_utf8_digit +syn keyword xsPrivate is_utf8_graph is_utf8_idcont is_utf8_idfirst +syn keyword xsPrivate is_utf8_lower is_utf8_mark is_utf8_perl_space +syn keyword xsPrivate is_utf8_perl_word is_utf8_posix_digit is_utf8_print +syn keyword xsPrivate is_utf8_punct is_utf8_space is_utf8_upper +syn keyword xsPrivate is_utf8_xdigit is_utf8_xidcont is_utf8_xidfirst +syn keyword xsPrivate isa_lookup join_exact leave_common listkids +syn keyword xsPrivate looks_like_bool magic_methcall1 make_matcher make_trie +syn keyword xsPrivate matcher_matches_sv maybe_multimagic_gv mayberelocate +syn keyword xsPrivate measure_struct mem_log_common mess_alloc mg_find_mglob +syn keyword xsPrivate mg_length minus_v missingterm modkids more_sv +syn keyword xsPrivate move_proto_attr mro_clean_isarev mro_gather_and_rename +syn keyword xsPrivate mro_get_linear_isa_dfs mul128 mulexp10 +syn keyword xsPrivate multideref_stringify my_bytes_to_utf8 my_exit_jump +syn keyword xsPrivate my_kid need_utf8 newGIVWHENOP new_he new_logop +syn keyword xsPrivate next_symbol nextchar no_bareword_allowed no_fh_allowed +syn keyword xsPrivate no_op not_a_number not_incrementable nuke_stacks +syn keyword xsPrivate num_overflow op_clear open_script openn_cleanup +syn keyword xsPrivate openn_setup pack_rec pad_alloc_name pad_check_dup +syn keyword xsPrivate pad_findlex pad_reset parse_body parse_gv_stash_name +syn keyword xsPrivate parse_ident parse_lparen_question_flags pending_ident +syn keyword xsPrivate pidgone pm_description pmtrans +syn keyword xsPrivate populate_ANYOF_from_invlist printbuf +syn keyword xsPrivate process_special_blocks ptr_table_clear ptr_table_find +syn keyword xsPrivate put_charclass_bitmap_innards put_code_point put_range +syn keyword xsPrivate qerror qsortsvu re_croak2 ref_array_or_hash +syn keyword xsPrivate refcounted_he_value refkids refto reg reg2Lanode +syn keyword xsPrivate reg_check_named_buff_matched reg_named_buff +syn keyword xsPrivate reg_named_buff_iter reg_node reg_numbered_buff_fetch +syn keyword xsPrivate reg_numbered_buff_length reg_numbered_buff_store +syn keyword xsPrivate reg_qr_package reg_recode reg_scan_name reg_skipcomment +syn keyword xsPrivate reg_temp_copy reganode regatom regbranch regclass +syn keyword xsPrivate regcppop regcppush regcurly regdump_extflags +syn keyword xsPrivate regdump_intflags regex_set_precedence reghop3 reghop4 +syn keyword xsPrivate reghopmaybe3 reginclass reginsert regmatch regnode_guts +syn keyword xsPrivate regpatws regpiece regpposixcc regprop regrepeat regtail +syn keyword xsPrivate regtail_study regtry report_uninit require_tie_mod +syn keyword xsPrivate restore_magic run_body run_user_filter rxres_free +syn keyword xsPrivate rxres_restore save_hek_flags save_lines +syn keyword xsPrivate save_magic_flags save_pushptri32ptr save_scalar_at +syn keyword xsPrivate scalar_mod_type scalarboolean scalarkids scalarseq +syn keyword xsPrivate scan_commit scan_const scan_formline scan_heredoc +syn keyword xsPrivate scan_ident scan_inputsymbol scan_pat scan_str +syn keyword xsPrivate scan_subst scan_trans scan_word search_const +syn keyword xsPrivate sequence_num set_ANYOF_arg share_hek_flags +syn keyword xsPrivate simplify_sort skipspace_flags sortcv sortcv_stacked +syn keyword xsPrivate sortcv_xsub space_join_names_mortal ssc_add_range +syn keyword xsPrivate ssc_and ssc_anything ssc_clear_locale ssc_cp_and +syn keyword xsPrivate ssc_finalize ssc_init ssc_intersection ssc_is_anything +syn keyword xsPrivate ssc_is_cp_posixl_init ssc_or ssc_union stdize_locale +syn keyword xsPrivate strip_return study_chunk sublex_done sublex_push +syn keyword xsPrivate sublex_start sv_2iuv_common sv_2iuv_non_preserve +syn keyword xsPrivate sv_add_arena sv_buf_to_rw sv_copypv sv_display +syn keyword xsPrivate sv_dup_common sv_dup_inc_multiple sv_exp_grow sv_i_ncmp +syn keyword xsPrivate sv_magicext_mglob sv_ncmp sv_only_taint_gmagic +syn keyword xsPrivate sv_or_pv_pos_u2b sv_pos_b2u_midway sv_pos_u2b_cached +syn keyword xsPrivate sv_pos_u2b_forwards sv_pos_u2b_midway sv_release_COW +syn keyword xsPrivate sv_setsv_cow swallow_bom swash_scan_list_line +syn keyword xsPrivate swatch_get to_byte_substr to_lower_latin1 +syn keyword xsPrivate to_uni_lower_lc to_uni_title_lc to_uni_upper_lc +syn keyword xsPrivate to_utf8_substr tokenize_use tokeq tokereport +syn keyword xsPrivate too_few_arguments_pv too_many_arguments_pv uiv_2buf +syn keyword xsPrivate unpack_rec unreferenced_to_tmp_stack unshare_hek_or_pvn +syn keyword xsPrivate unwind_handler_stack update_debugger_info usage +syn keyword xsPrivate utf16_textfilter utf8_mg_len_cache_update +syn keyword xsPrivate utf8_mg_pos_cache_update utf8_to_uvchr utf8_to_uvuni +syn keyword xsPrivate utf8_to_uvuni_buf valid_utf8_to_uvuni validate_proto +syn keyword xsPrivate visit vivify_defelem with_queued_errors yylex yywarn +endif +syn keyword xsType AMT AMTS ANY AV BHK BINOP BLOCK CHECKPOINT CLONE_PARAMS +syn keyword xsType COP COPHH CV DB_Hash_t DB_Prefix_t DEBUG_t Direntry_t +syn keyword xsType Fpos_t Free_t GCB_enum GP GV Gid_t Groups_t HE HEK HV I16 +syn keyword xsType I32 I64 I8 IO IV Int64 JMPENV LISTOP LOGOP LOOP MAGIC +syn keyword xsType METHOP MGS MGVTBL Malloc_t Mmap_t Mode_t NV Netdb_hlen_t +syn keyword xsType Netdb_host_t Netdb_name_t Netdb_net_t OP OPCODE OPSLAB +syn keyword xsType OPSLOT Off_t Optype PAD PADLIST PADNAME PADNAMELIST +syn keyword xsType PADOFFSET PADOP PERL_CONTEXT PERL_DRAND48_T PERL_SI PMOP +syn keyword xsType PTR_TBL_ENT_t PTR_TBL_t PVOP PerlHandShakeInterpreter +syn keyword xsType PerlIO PerlIO_funcs PerlIO_list_s PerlIO_list_t PerlIOl +syn keyword xsType PerlInterpreter Pid_t Quad_t REGEXP RExC_state_t +syn keyword xsType Rand_seed_t SB_enum SSize_t STRLEN STRUCT_SV SUBLEXINFO SV +syn keyword xsType SVOP Select_fd_set_t Shmat_t Signal_t Sigsave_t Size_t +syn keyword xsType Sock_size_t Stat_t TM64 Time64_T Time_t U16 U32 U64 U8 +syn keyword xsType UNOP UNOP_AUX UV Uid_t Uquad_t WB_enum XINVLIST XOP XPV +syn keyword xsType XPVAV XPVBM XPVCV XPVFM XPVGV XPVHV XPVIO XPVIV XPVLV +syn keyword xsType XPVMG XPVNV XPVUV Year _PerlIO _PerlIO_funcs +syn keyword xsType _char_class_number _pMY_CXT _pTHX _reg_ac_data +syn keyword xsType _reg_trie_data _reg_trie_state _reg_trie_trans +syn keyword xsType _reg_trie_trans_list_elem _sublex_info _xhvnameu _xivu +syn keyword xsType _xmgu _xnvu am_table am_table_short block_eval +syn keyword xsType block_format block_givwhen block_hooks block_loop +syn keyword xsType block_sub bound_type clone_params custom_op cv_flags_t +syn keyword xsType expectation gccbug_semun line_t magic mem_log_type methop +syn keyword xsType mgvtbl mro_alg mro_meta my_cxt_t opcode opslab opslot p5rx +syn keyword xsType pMY_CXT pMY_CXT_ pTHX pTHX_ padlist padname +syn keyword xsType padname_with_str padnamelist padtidy_type perl_cond +syn keyword xsType perl_debug_pad perl_drand48_t perl_key +syn keyword xsType perl_memory_debug_header perl_mstats perl_mstats_t +syn keyword xsType perl_mutex perl_os_thread perl_phase perl_vars +syn keyword xsType pthread_addr_t ptr_tbl ptr_tbl_ent refcounted_he +syn keyword xsType reg_ac_data reg_code_block reg_data reg_substr_data +syn keyword xsType reg_substr_datum reg_trie_data reg_trie_state +syn keyword xsType reg_trie_trans reg_trie_trans_le regex_charset regnode +syn keyword xsType regnode_1 regnode_2 regnode_2L regnode_charclass +syn keyword xsType regnode_charclass_class regnode_charclass_posixl +syn keyword xsType regnode_ssc regnode_string semun shared_he svtype ufuncs +syn keyword xsType unop_aux xop_flags_enum xpv xpvav xpvcv xpvfm xpvgv xpvhv +syn keyword xsType xpvhv_aux xpvinvlist xpvio xpviv xpvlv xpvmg xpvnv xpvuv +syn keyword xsType yytokentype +syn keyword xsString IVdf NVef NVff NVgf SVf SVf256 SVf32 SVf_ UVof UVuf UVxf +syn keyword xsConstant CXt_BLOCK CXt_EVAL CXt_FORMAT CXt_GIVEN CXt_LOOP_FOR +syn keyword xsConstant CXt_LOOP_LAZYIV CXt_LOOP_LAZYSV CXt_LOOP_PLAIN +syn keyword xsConstant CXt_NULL CXt_SUB CXt_SUBST CXt_WHEN GCB_BOUND GCB_CR +syn keyword xsConstant GCB_Control GCB_EDGE GCB_Extend GCB_L GCB_LF GCB_LV +syn keyword xsConstant GCB_LVT GCB_Other GCB_Prepend GCB_Regional_Indicator +syn keyword xsConstant GCB_SpacingMark GCB_T GCB_V G_ARRAY G_DISCARD G_EVAL +syn keyword xsConstant G_FAKINGEVAL G_KEEPERR G_METHOD G_METHOD_NAMED +syn keyword xsConstant G_NOARGS G_NODEBUG G_RE_REPARSING G_SCALAR +syn keyword xsConstant G_UNDEF_FILL G_VOID G_WANT G_WARN_ALL_MASK +syn keyword xsConstant G_WARN_ALL_OFF G_WARN_ALL_ON G_WARN_OFF G_WARN_ON +syn keyword xsConstant G_WARN_ONCE G_WRITING_TO_STDERR OA_AVREF OA_BASEOP +syn keyword xsConstant OA_BASEOP_OR_UNOP OA_BINOP OA_CLASS_MASK OA_COP +syn keyword xsConstant OA_CVREF OA_DANGEROUS OA_DEFGV OA_FILEREF +syn keyword xsConstant OA_FILESTATOP OA_FOLDCONST OA_HVREF OA_LIST OA_LISTOP +syn keyword xsConstant OA_LOGOP OA_LOOP OA_LOOPEXOP OA_MARK OA_METHOP +syn keyword xsConstant OA_OPTIONAL OA_OTHERINT OA_PADOP OA_PMOP +syn keyword xsConstant OA_PVOP_OR_SVOP OA_RETSCALAR OA_SCALAR OA_SCALARREF +syn keyword xsConstant OA_SVOP OA_TARGET OA_TARGLEX OA_UNOP OA_UNOP_AUX +syn keyword xsConstant OP_AASSIGN OP_ABS OP_ACCEPT OP_ADD OP_AEACH OP_AELEM +syn keyword xsConstant OP_AELEMFAST OP_AELEMFAST_LEX OP_AKEYS OP_ALARM OP_AND +syn keyword xsConstant OP_ANDASSIGN OP_ANONCODE OP_ANONCONST OP_ANONHASH +syn keyword xsConstant OP_ANONLIST OP_ASLICE OP_ATAN2 OP_AV2ARYLEN OP_AVALUES +syn keyword xsConstant OP_BACKTICK OP_BIND OP_BINMODE OP_BIT_AND OP_BIT_OR +syn keyword xsConstant OP_BIT_XOR OP_BLESS OP_BREAK OP_CALLER OP_CHDIR +syn keyword xsConstant OP_CHMOD OP_CHOMP OP_CHOP OP_CHOWN OP_CHR OP_CHROOT +syn keyword xsConstant OP_CLONECV OP_CLOSE OP_CLOSEDIR OP_COMPLEMENT +syn keyword xsConstant OP_CONCAT OP_COND_EXPR OP_CONNECT OP_CONST OP_CONTINUE +syn keyword xsConstant OP_COREARGS OP_COS OP_CRYPT OP_CUSTOM OP_DBMCLOSE +syn keyword xsConstant OP_DBMOPEN OP_DBSTATE OP_DEFINED OP_DELETE OP_DIE +syn keyword xsConstant OP_DIVIDE OP_DOFILE OP_DOR OP_DORASSIGN OP_DUMP +syn keyword xsConstant OP_EACH OP_EGRENT OP_EHOSTENT OP_ENETENT OP_ENTER +syn keyword xsConstant OP_ENTEREVAL OP_ENTERGIVEN OP_ENTERITER OP_ENTERLOOP +syn keyword xsConstant OP_ENTERSUB OP_ENTERTRY OP_ENTERWHEN OP_ENTERWRITE +syn keyword xsConstant OP_EOF OP_EPROTOENT OP_EPWENT OP_EQ OP_ESERVENT +syn keyword xsConstant OP_EXEC OP_EXISTS OP_EXIT OP_EXP OP_FC OP_FCNTL +syn keyword xsConstant OP_FILENO OP_FLIP OP_FLOCK OP_FLOP OP_FORK OP_FORMLINE +syn keyword xsConstant OP_FTATIME OP_FTBINARY OP_FTBLK OP_FTCHR OP_FTCTIME +syn keyword xsConstant OP_FTDIR OP_FTEEXEC OP_FTEOWNED OP_FTEREAD OP_FTEWRITE +syn keyword xsConstant OP_FTFILE OP_FTIS OP_FTLINK OP_FTMTIME OP_FTPIPE +syn keyword xsConstant OP_FTREXEC OP_FTROWNED OP_FTRREAD OP_FTRWRITE +syn keyword xsConstant OP_FTSGID OP_FTSIZE OP_FTSOCK OP_FTSUID OP_FTSVTX +syn keyword xsConstant OP_FTTEXT OP_FTTTY OP_FTZERO OP_GE OP_GELEM OP_GETC +syn keyword xsConstant OP_GETLOGIN OP_GETPEERNAME OP_GETPGRP OP_GETPPID +syn keyword xsConstant OP_GETPRIORITY OP_GETSOCKNAME OP_GGRENT OP_GGRGID +syn keyword xsConstant OP_GGRNAM OP_GHBYADDR OP_GHBYNAME OP_GHOSTENT OP_GLOB +syn keyword xsConstant OP_GMTIME OP_GNBYADDR OP_GNBYNAME OP_GNETENT OP_GOTO +syn keyword xsConstant OP_GPBYNAME OP_GPBYNUMBER OP_GPROTOENT OP_GPWENT +syn keyword xsConstant OP_GPWNAM OP_GPWUID OP_GREPSTART OP_GREPWHILE +syn keyword xsConstant OP_GSBYNAME OP_GSBYPORT OP_GSERVENT OP_GSOCKOPT OP_GT +syn keyword xsConstant OP_GV OP_GVSV OP_HELEM OP_HEX OP_HINTSEVAL OP_HSLICE +syn keyword xsConstant OP_INDEX OP_INT OP_INTROCV OP_IOCTL OP_ITER OP_I_ADD +syn keyword xsConstant OP_I_DIVIDE OP_I_EQ OP_I_GE OP_I_GT OP_I_LE OP_I_LT +syn keyword xsConstant OP_I_MODULO OP_I_MULTIPLY OP_I_NCMP OP_I_NE +syn keyword xsConstant OP_I_NEGATE OP_I_POSTDEC OP_I_POSTINC OP_I_PREDEC +syn keyword xsConstant OP_I_PREINC OP_I_SUBTRACT OP_JOIN OP_KEYS OP_KILL +syn keyword xsConstant OP_KVASLICE OP_KVHSLICE OP_LAST OP_LC OP_LCFIRST OP_LE +syn keyword xsConstant OP_LEAVE OP_LEAVEEVAL OP_LEAVEGIVEN OP_LEAVELOOP +syn keyword xsConstant OP_LEAVESUB OP_LEAVESUBLV OP_LEAVETRY OP_LEAVEWHEN +syn keyword xsConstant OP_LEAVEWRITE OP_LEFT_SHIFT OP_LENGTH OP_LINESEQ +syn keyword xsConstant OP_LINK OP_LIST OP_LISTEN OP_LOCALTIME OP_LOCK OP_LOG +syn keyword xsConstant OP_LSLICE OP_LSTAT OP_LT OP_LVAVREF OP_LVREF +syn keyword xsConstant OP_LVREFSLICE OP_MAPSTART OP_MAPWHILE OP_MATCH +syn keyword xsConstant OP_METHOD OP_METHOD_NAMED OP_METHOD_REDIR +syn keyword xsConstant OP_METHOD_REDIR_SUPER OP_METHOD_SUPER OP_MKDIR +syn keyword xsConstant OP_MODULO OP_MSGCTL OP_MSGGET OP_MSGRCV OP_MSGSND +syn keyword xsConstant OP_MULTIDEREF OP_MULTIPLY OP_NBIT_AND OP_NBIT_OR +syn keyword xsConstant OP_NBIT_XOR OP_NCMP OP_NCOMPLEMENT OP_NE OP_NEGATE +syn keyword xsConstant OP_NEXT OP_NEXTSTATE OP_NOT OP_NULL OP_OCT OP_ONCE +syn keyword xsConstant OP_OPEN OP_OPEN_DIR OP_OR OP_ORASSIGN OP_ORD OP_PACK +syn keyword xsConstant OP_PADANY OP_PADAV OP_PADCV OP_PADHV OP_PADRANGE +syn keyword xsConstant OP_PADSV OP_PIPE_OP OP_POP OP_POS OP_POSTDEC +syn keyword xsConstant OP_POSTINC OP_POW OP_PREDEC OP_PREINC OP_PRINT +syn keyword xsConstant OP_PROTOTYPE OP_PRTF OP_PUSH OP_PUSHMARK OP_PUSHRE +syn keyword xsConstant OP_QR OP_QUOTEMETA OP_RAND OP_RANGE OP_RCATLINE +syn keyword xsConstant OP_REACH OP_READ OP_READDIR OP_READLINE OP_READLINK +syn keyword xsConstant OP_RECV OP_REDO OP_REF OP_REFASSIGN OP_REFGEN +syn keyword xsConstant OP_REGCMAYBE OP_REGCOMP OP_REGCRESET OP_RENAME +syn keyword xsConstant OP_REPEAT OP_REQUIRE OP_RESET OP_RETURN OP_REVERSE +syn keyword xsConstant OP_REWINDDIR OP_RIGHT_SHIFT OP_RINDEX OP_RKEYS +syn keyword xsConstant OP_RMDIR OP_RUNCV OP_RV2AV OP_RV2CV OP_RV2GV OP_RV2HV +syn keyword xsConstant OP_RV2SV OP_RVALUES OP_SASSIGN OP_SAY OP_SBIT_AND +syn keyword xsConstant OP_SBIT_OR OP_SBIT_XOR OP_SCALAR OP_SCHOMP OP_SCHOP +syn keyword xsConstant OP_SCMP OP_SCOMPLEMENT OP_SCOPE OP_SEEK OP_SEEKDIR +syn keyword xsConstant OP_SELECT OP_SEMCTL OP_SEMGET OP_SEMOP OP_SEND OP_SEQ +syn keyword xsConstant OP_SETPGRP OP_SETPRIORITY OP_SGE OP_SGRENT OP_SGT +syn keyword xsConstant OP_SHIFT OP_SHMCTL OP_SHMGET OP_SHMREAD OP_SHMWRITE +syn keyword xsConstant OP_SHOSTENT OP_SHUTDOWN OP_SIN OP_SLE OP_SLEEP OP_SLT +syn keyword xsConstant OP_SMARTMATCH OP_SNE OP_SNETENT OP_SOCKET OP_SOCKPAIR +syn keyword xsConstant OP_SORT OP_SPLICE OP_SPLIT OP_SPRINTF OP_SPROTOENT +syn keyword xsConstant OP_SPWENT OP_SQRT OP_SRAND OP_SREFGEN OP_SSELECT +syn keyword xsConstant OP_SSERVENT OP_SSOCKOPT OP_STAT OP_STRINGIFY OP_STUB +syn keyword xsConstant OP_STUDY OP_SUBST OP_SUBSTCONT OP_SUBSTR OP_SUBTRACT +syn keyword xsConstant OP_SYMLINK OP_SYSCALL OP_SYSOPEN OP_SYSREAD OP_SYSSEEK +syn keyword xsConstant OP_SYSTEM OP_SYSWRITE OP_TELL OP_TELLDIR OP_TIE +syn keyword xsConstant OP_TIED OP_TIME OP_TMS OP_TRANS OP_TRANSR OP_TRUNCATE +syn keyword xsConstant OP_UC OP_UCFIRST OP_UMASK OP_UNDEF OP_UNLINK OP_UNPACK +syn keyword xsConstant OP_UNSHIFT OP_UNSTACK OP_UNTIE OP_UTIME OP_VALUES +syn keyword xsConstant OP_VEC OP_WAIT OP_WAITPID OP_WANTARRAY OP_WARN OP_XOR +syn keyword xsConstant OP_max OPf_FOLDED OPf_KIDS OPf_KNOW OPf_LIST OPf_MOD +syn keyword xsConstant OPf_PARENS OPf_REF OPf_SPECIAL OPf_STACKED OPf_WANT +syn keyword xsConstant OPf_WANT_LIST OPf_WANT_SCALAR OPf_WANT_VOID +syn keyword xsConstant OPpALLOW_FAKE OPpARG1_MASK OPpARG2_MASK OPpARG3_MASK +syn keyword xsConstant OPpARG4_MASK OPpASSIGN_BACKWARDS OPpASSIGN_COMMON +syn keyword xsConstant OPpASSIGN_CV_TO_GV OPpCONST_BARE OPpCONST_ENTERED +syn keyword xsConstant OPpCONST_NOVER OPpCONST_SHORTCIRCUIT OPpCONST_STRICT +syn keyword xsConstant OPpCOREARGS_DEREF1 OPpCOREARGS_DEREF2 +syn keyword xsConstant OPpCOREARGS_PUSHMARK OPpCOREARGS_SCALARMOD OPpDEREF +syn keyword xsConstant OPpDEREF_AV OPpDEREF_HV OPpDEREF_SV OPpDONT_INIT_GV +syn keyword xsConstant OPpEARLY_CV OPpENTERSUB_AMPER OPpENTERSUB_DB +syn keyword xsConstant OPpENTERSUB_HASTARG OPpENTERSUB_INARGS +syn keyword xsConstant OPpENTERSUB_LVAL_MASK OPpENTERSUB_NOPAREN +syn keyword xsConstant OPpEVAL_BYTES OPpEVAL_COPHH OPpEVAL_HAS_HH +syn keyword xsConstant OPpEVAL_RE_REPARSING OPpEVAL_UNICODE OPpEXISTS_SUB +syn keyword xsConstant OPpFLIP_LINENUM OPpFT_ACCESS OPpFT_AFTER_t +syn keyword xsConstant OPpFT_STACKED OPpFT_STACKING OPpGREP_LEX +syn keyword xsConstant OPpHINT_STRICT_REFS OPpHUSH_VMSISH OPpITER_DEF +syn keyword xsConstant OPpITER_REVERSED OPpLIST_GUESSED OPpLVALUE +syn keyword xsConstant OPpLVAL_DEFER OPpLVAL_INTRO OPpLVREF_AV OPpLVREF_CV +syn keyword xsConstant OPpLVREF_ELEM OPpLVREF_HV OPpLVREF_ITER OPpLVREF_SV +syn keyword xsConstant OPpLVREF_TYPE OPpMAYBE_LVSUB OPpMAYBE_TRUEBOOL +syn keyword xsConstant OPpMAY_RETURN_CONSTANT OPpMULTIDEREF_DELETE +syn keyword xsConstant OPpMULTIDEREF_EXISTS OPpOFFBYONE OPpOPEN_IN_CRLF +syn keyword xsConstant OPpOPEN_IN_RAW OPpOPEN_OUT_CRLF OPpOPEN_OUT_RAW +syn keyword xsConstant OPpOUR_INTRO OPpPADRANGE_COUNTMASK +syn keyword xsConstant OPpPADRANGE_COUNTSHIFT OPpPAD_STATE OPpPV_IS_UTF8 +syn keyword xsConstant OPpREFCOUNTED OPpREPEAT_DOLIST OPpREVERSE_INPLACE +syn keyword xsConstant OPpRUNTIME OPpSLICE OPpSLICEWARNING OPpSORT_DESCEND +syn keyword xsConstant OPpSORT_INPLACE OPpSORT_INTEGER OPpSORT_NUMERIC +syn keyword xsConstant OPpSORT_QSORT OPpSORT_REVERSE OPpSORT_STABLE +syn keyword xsConstant OPpSPLIT_IMPLIM OPpSUBSTR_REPL_FIRST OPpTARGET_MY +syn keyword xsConstant OPpTRANS_ALL OPpTRANS_COMPLEMENT OPpTRANS_DELETE +syn keyword xsConstant OPpTRANS_FROM_UTF OPpTRANS_GROWS OPpTRANS_IDENTICAL +syn keyword xsConstant OPpTRANS_SQUASH OPpTRANS_TO_UTF OPpTRUEBOOL +syn keyword xsConstant PERL_MAGIC_READONLY_ACCEPTABLE +syn keyword xsConstant PERL_MAGIC_TYPE_IS_VALUE_MAGIC +syn keyword xsConstant PERL_MAGIC_TYPE_READONLY_ACCEPTABLE +syn keyword xsConstant PERL_MAGIC_UTF8_CACHESIZE PERL_MAGIC_VALUE_MAGIC +syn keyword xsConstant PERL_MAGIC_VTABLE_MASK PERL_MAGIC_arylen +syn keyword xsConstant PERL_MAGIC_arylen_p PERL_MAGIC_backref PERL_MAGIC_bm +syn keyword xsConstant PERL_MAGIC_checkcall PERL_MAGIC_collxfrm +syn keyword xsConstant PERL_MAGIC_dbfile PERL_MAGIC_dbline +syn keyword xsConstant PERL_MAGIC_debugvar PERL_MAGIC_defelem PERL_MAGIC_env +syn keyword xsConstant PERL_MAGIC_envelem PERL_MAGIC_ext PERL_MAGIC_fm +syn keyword xsConstant PERL_MAGIC_hints PERL_MAGIC_hintselem PERL_MAGIC_isa +syn keyword xsConstant PERL_MAGIC_isaelem PERL_MAGIC_lvref PERL_MAGIC_nkeys +syn keyword xsConstant PERL_MAGIC_overload_table PERL_MAGIC_pos PERL_MAGIC_qr +syn keyword xsConstant PERL_MAGIC_regdata PERL_MAGIC_regdatum +syn keyword xsConstant PERL_MAGIC_regex_global PERL_MAGIC_rhash +syn keyword xsConstant PERL_MAGIC_shared PERL_MAGIC_shared_scalar +syn keyword xsConstant PERL_MAGIC_sig PERL_MAGIC_sigelem PERL_MAGIC_substr +syn keyword xsConstant PERL_MAGIC_sv PERL_MAGIC_symtab PERL_MAGIC_taint +syn keyword xsConstant PERL_MAGIC_tied PERL_MAGIC_tiedelem +syn keyword xsConstant PERL_MAGIC_tiedscalar PERL_MAGIC_utf8 PERL_MAGIC_uvar +syn keyword xsConstant PERL_MAGIC_uvar_elem PERL_MAGIC_vec PERL_MAGIC_vstring +syn keyword xsConstant REGEX_ASCII_MORE_RESTRICTED_CHARSET +syn keyword xsConstant REGEX_ASCII_RESTRICTED_CHARSET REGEX_DEPENDS_CHARSET +syn keyword xsConstant REGEX_LOCALE_CHARSET REGEX_UNICODE_CHARSET SB_ATerm +syn keyword xsConstant SB_BOUND SB_CR SB_Close SB_EDGE SB_Extend SB_Format +syn keyword xsConstant SB_LF SB_Lower SB_Numeric SB_OLetter SB_Other +syn keyword xsConstant SB_SContinue SB_STerm SB_Sep SB_Sp SB_Upper SVfARG +syn keyword xsConstant SVf_AMAGIC SVf_BREAK SVf_FAKE SVf_IOK SVf_IVisUV +syn keyword xsConstant SVf_IsCOW SVf_NOK SVf_OK SVf_OOK SVf_POK SVf_PROTECT +syn keyword xsConstant SVf_READONLY SVf_ROK SVf_THINKFIRST SVf_UTF8 SVp_IOK +syn keyword xsConstant SVp_NOK SVp_POK SVp_SCREAM SVpad_OUR SVpad_STATE +syn keyword xsConstant SVpad_TYPED SVpav_REAL SVpav_REIFY SVpbm_TAIL +syn keyword xsConstant SVpbm_VALID SVpgv_GP SVphv_CLONEABLE SVphv_HASKFLAGS +syn keyword xsConstant SVphv_LAZYDEL SVphv_SHAREKEYS SVprv_PCS_IMPORTED +syn keyword xsConstant SVprv_WEAKREF SVs_GMG SVs_OBJECT SVs_PADMY +syn keyword xsConstant SVs_PADSTALE SVs_PADTMP SVs_RMG SVs_SMG SVs_TEMP +syn keyword xsConstant SVt_INVLIST SVt_IV SVt_LAST SVt_NULL SVt_NV SVt_PV +syn keyword xsConstant SVt_PVAV SVt_PVBM SVt_PVCV SVt_PVFM SVt_PVGV SVt_PVHV +syn keyword xsConstant SVt_PVIO SVt_PVIV SVt_PVLV SVt_PVMG SVt_PVNV +syn keyword xsConstant SVt_REGEXP SVt_RV TRADITIONAL_BOUND WB_ALetter +syn keyword xsConstant WB_BOUND WB_CR WB_Double_Quote WB_EDGE WB_Extend +syn keyword xsConstant WB_ExtendNumLet WB_Format WB_Hebrew_Letter WB_Katakana +syn keyword xsConstant WB_LF WB_MidLetter WB_MidNum WB_MidNumLet WB_Newline +syn keyword xsConstant WB_Numeric WB_Other WB_Regional_Indicator +syn keyword xsConstant WB_Single_Quote WB_UNKNOWN XATTRBLOCK XATTRTERM XBLOCK +syn keyword xsConstant XBLOCKTERM XOPERATOR XOPe_xop_class XOPe_xop_desc +syn keyword xsConstant XOPe_xop_name XOPe_xop_peep XOPe_xop_ptr XPOSTDEREF +syn keyword xsConstant XREF XSTATE XTERM XTERMBLOCK XTERMORDORDOR +syn keyword xsConstant _CC_ENUM_ALPHA _CC_ENUM_ALPHANUMERIC _CC_ENUM_ASCII +syn keyword xsConstant _CC_ENUM_BLANK _CC_ENUM_CASED _CC_ENUM_CNTRL +syn keyword xsConstant _CC_ENUM_DIGIT _CC_ENUM_GRAPH _CC_ENUM_LOWER +syn keyword xsConstant _CC_ENUM_PRINT _CC_ENUM_PUNCT _CC_ENUM_SPACE +syn keyword xsConstant _CC_ENUM_UPPER _CC_ENUM_VERTSPACE _CC_ENUM_WORDCHAR +syn keyword xsConstant _CC_ENUM_XDIGIT padtidy_FORMAT padtidy_SUB +syn keyword xsConstant padtidy_SUBCLONE +syn keyword xsException XCPT_CATCH XCPT_RETHROW XCPT_TRY_END XCPT_TRY_START +syn keyword xsException dXCPT +syn keyword xsKeyword ALIAS: BOOT: CASE: CLEANUP: CODE: C_ARGS: DISABLE +syn keyword xsKeyword ENABLE FALLBACK: IN INCLUDE: INIT: INPUT: INTERFACE: +syn keyword xsKeyword INTERFACE_MACRO: IN_OUT IN_OUTLIST MODULE NO_INIT: +syn keyword xsKeyword NO_OUTPUT: OUT OUTLIST OUTPUT: OVERLOAD: PACKAGE +syn keyword xsKeyword POSTCALL: PPCODE: PREFIX PREINIT: PROTOTYPE: +syn keyword xsKeyword PROTOTYPES: REQUIRE: SCOPE: VERSIONCHECK: length +syn keyword xsFunction GetVars Gv_AMupdate PerlIO_clearerr PerlIO_close +syn keyword xsFunction PerlIO_eof PerlIO_error PerlIO_fileno PerlIO_fill +syn keyword xsFunction PerlIO_flush PerlIO_get_base PerlIO_get_bufsiz +syn keyword xsFunction PerlIO_get_cnt PerlIO_get_ptr PerlIO_read PerlIO_seek +syn keyword xsFunction PerlIO_set_cnt PerlIO_set_ptrcnt PerlIO_setlinebuf +syn keyword xsFunction PerlIO_stderr PerlIO_stdin PerlIO_stdout PerlIO_tell +syn keyword xsFunction PerlIO_unread PerlIO_write Perl_GetVars +syn keyword xsFunction Perl_Gv_AMupdate Perl_PerlIO_clearerr +syn keyword xsFunction Perl_PerlIO_close Perl_PerlIO_context_layers +syn keyword xsFunction Perl_PerlIO_eof Perl_PerlIO_error Perl_PerlIO_fileno +syn keyword xsFunction Perl_PerlIO_fill Perl_PerlIO_flush +syn keyword xsFunction Perl_PerlIO_get_base Perl_PerlIO_get_bufsiz +syn keyword xsFunction Perl_PerlIO_get_cnt Perl_PerlIO_get_ptr +syn keyword xsFunction Perl_PerlIO_read Perl_PerlIO_seek Perl_PerlIO_set_cnt +syn keyword xsFunction Perl_PerlIO_set_ptrcnt Perl_PerlIO_setlinebuf +syn keyword xsFunction Perl_PerlIO_stderr Perl_PerlIO_stdin +syn keyword xsFunction Perl_PerlIO_stdout Perl_PerlIO_tell Perl_PerlIO_unread +syn keyword xsFunction Perl_PerlIO_write Perl__get_regclass_nonbitmap_data +syn keyword xsFunction Perl__is_cur_LC_category_utf8 +syn keyword xsFunction Perl__is_in_locale_category Perl__is_uni_FOO +syn keyword xsFunction Perl__is_uni_perl_idcont Perl__is_uni_perl_idstart +syn keyword xsFunction Perl__is_utf8_FOO Perl__is_utf8_idcont +syn keyword xsFunction Perl__is_utf8_idstart Perl__is_utf8_mark +syn keyword xsFunction Perl__is_utf8_perl_idcont Perl__is_utf8_perl_idstart +syn keyword xsFunction Perl__is_utf8_xidcont Perl__is_utf8_xidstart +syn keyword xsFunction Perl__new_invlist_C_array Perl__to_uni_fold_flags +syn keyword xsFunction Perl__to_utf8_fold_flags Perl__to_utf8_lower_flags +syn keyword xsFunction Perl__to_utf8_title_flags Perl__to_utf8_upper_flags +syn keyword xsFunction Perl_alloccopstash Perl_amagic_call +syn keyword xsFunction Perl_amagic_deref_call Perl_any_dup +syn keyword xsFunction Perl_apply_attrs_string Perl_atfork_lock +syn keyword xsFunction Perl_atfork_unlock Perl_av_arylen_p Perl_av_clear +syn keyword xsFunction Perl_av_create_and_push Perl_av_create_and_unshift_one +syn keyword xsFunction Perl_av_delete Perl_av_exists Perl_av_extend +syn keyword xsFunction Perl_av_fetch Perl_av_fill Perl_av_iter_p Perl_av_len +syn keyword xsFunction Perl_av_make Perl_av_pop Perl_av_push Perl_av_shift +syn keyword xsFunction Perl_av_store Perl_av_undef Perl_av_unshift +syn keyword xsFunction Perl_block_end Perl_block_gimme Perl_block_start +syn keyword xsFunction Perl_blockhook_register Perl_bytes_cmp_utf8 +syn keyword xsFunction Perl_bytes_from_utf8 Perl_bytes_to_utf8 Perl_call_argv +syn keyword xsFunction Perl_call_atexit Perl_call_list Perl_call_method +syn keyword xsFunction Perl_call_pv Perl_call_sv Perl_caller_cx Perl_calloc +syn keyword xsFunction Perl_cast_i32 Perl_cast_iv Perl_cast_ulong +syn keyword xsFunction Perl_cast_uv Perl_ck_entersub_args_list +syn keyword xsFunction Perl_ck_entersub_args_proto +syn keyword xsFunction Perl_ck_entersub_args_proto_or_list Perl_ck_warner +syn keyword xsFunction Perl_ck_warner_d Perl_ckwarn Perl_ckwarn_d +syn keyword xsFunction Perl_clone_params_del Perl_clone_params_new +syn keyword xsFunction Perl_cop_fetch_label Perl_cop_store_label Perl_croak +syn keyword xsFunction Perl_croak_no_modify Perl_croak_nocontext +syn keyword xsFunction Perl_croak_sv Perl_croak_xs_usage Perl_csighandler +syn keyword xsFunction Perl_custom_op_desc Perl_custom_op_name +syn keyword xsFunction Perl_custom_op_register Perl_cv_clone Perl_cv_const_sv +syn keyword xsFunction Perl_cv_get_call_checker Perl_cv_name +syn keyword xsFunction Perl_cv_set_call_checker +syn keyword xsFunction Perl_cv_set_call_checker_flags Perl_cv_undef +syn keyword xsFunction Perl_cx_dump Perl_cx_dup Perl_cxinc Perl_deb +syn keyword xsFunction Perl_deb_nocontext Perl_debop Perl_debprofdump +syn keyword xsFunction Perl_debstack Perl_debstackptrs Perl_delimcpy +syn keyword xsFunction Perl_despatch_signals Perl_die Perl_die_nocontext +syn keyword xsFunction Perl_die_sv Perl_dirp_dup Perl_do_aspawn +syn keyword xsFunction Perl_do_binmode Perl_do_close Perl_do_gv_dump +syn keyword xsFunction Perl_do_gvgv_dump Perl_do_hv_dump Perl_do_join +syn keyword xsFunction Perl_do_magic_dump Perl_do_op_dump Perl_do_open9 +syn keyword xsFunction Perl_do_openn Perl_do_pmop_dump Perl_do_spawn +syn keyword xsFunction Perl_do_spawn_nowait Perl_do_sprintf Perl_do_sv_dump +syn keyword xsFunction Perl_doing_taint Perl_doref Perl_dounwind +syn keyword xsFunction Perl_dowantarray Perl_dump_all Perl_dump_c_backtrace +syn keyword xsFunction Perl_dump_eval Perl_dump_form Perl_dump_indent +syn keyword xsFunction Perl_dump_mstats Perl_dump_packsubs Perl_dump_sub +syn keyword xsFunction Perl_dump_vindent Perl_eval_pv Perl_eval_sv +syn keyword xsFunction Perl_fbm_compile Perl_fbm_instr Perl_filter_add +syn keyword xsFunction Perl_filter_del Perl_filter_read Perl_find_runcv +syn keyword xsFunction Perl_find_rundefsv Perl_foldEQ Perl_foldEQ_latin1 +syn keyword xsFunction Perl_foldEQ_locale Perl_foldEQ_utf8_flags Perl_form +syn keyword xsFunction Perl_form_nocontext Perl_fp_dup Perl_fprintf_nocontext +syn keyword xsFunction Perl_free_global_struct Perl_free_tmps Perl_get_av +syn keyword xsFunction Perl_get_c_backtrace_dump Perl_get_context Perl_get_cv +syn keyword xsFunction Perl_get_cvn_flags Perl_get_hv Perl_get_mstats +syn keyword xsFunction Perl_get_op_descs Perl_get_op_names Perl_get_ppaddr +syn keyword xsFunction Perl_get_sv Perl_get_vtbl Perl_getcwd_sv Perl_gp_dup +syn keyword xsFunction Perl_gp_free Perl_gp_ref Perl_grok_bin Perl_grok_hex +syn keyword xsFunction Perl_grok_infnan Perl_grok_number +syn keyword xsFunction Perl_grok_number_flags Perl_grok_numeric_radix +syn keyword xsFunction Perl_grok_oct Perl_gv_add_by_type Perl_gv_autoload_pv +syn keyword xsFunction Perl_gv_autoload_pvn Perl_gv_autoload_sv Perl_gv_check +syn keyword xsFunction Perl_gv_const_sv Perl_gv_dump Perl_gv_efullname +syn keyword xsFunction Perl_gv_efullname4 Perl_gv_fetchfile +syn keyword xsFunction Perl_gv_fetchfile_flags Perl_gv_fetchmeth_pv +syn keyword xsFunction Perl_gv_fetchmeth_pv_autoload Perl_gv_fetchmeth_pvn +syn keyword xsFunction Perl_gv_fetchmeth_pvn_autoload Perl_gv_fetchmeth_sv +syn keyword xsFunction Perl_gv_fetchmeth_sv_autoload +syn keyword xsFunction Perl_gv_fetchmethod_autoload +syn keyword xsFunction Perl_gv_fetchmethod_pv_flags +syn keyword xsFunction Perl_gv_fetchmethod_pvn_flags +syn keyword xsFunction Perl_gv_fetchmethod_sv_flags Perl_gv_fetchpv +syn keyword xsFunction Perl_gv_fetchpvn_flags Perl_gv_fetchsv +syn keyword xsFunction Perl_gv_fullname Perl_gv_fullname4 Perl_gv_handler +syn keyword xsFunction Perl_gv_init_pv Perl_gv_init_pvn Perl_gv_init_sv +syn keyword xsFunction Perl_gv_name_set Perl_gv_stashpv Perl_gv_stashpvn +syn keyword xsFunction Perl_gv_stashsv Perl_he_dup Perl_hek_dup +syn keyword xsFunction Perl_hv_assert Perl_hv_clear +syn keyword xsFunction Perl_hv_clear_placeholders Perl_hv_common +syn keyword xsFunction Perl_hv_common_key_len Perl_hv_copy_hints_hv +syn keyword xsFunction Perl_hv_delayfree_ent Perl_hv_eiter_p +syn keyword xsFunction Perl_hv_eiter_set Perl_hv_fill Perl_hv_free_ent +syn keyword xsFunction Perl_hv_iterinit Perl_hv_iterkey Perl_hv_iterkeysv +syn keyword xsFunction Perl_hv_iternext_flags Perl_hv_iternextsv +syn keyword xsFunction Perl_hv_iterval Perl_hv_ksplit Perl_hv_name_set +syn keyword xsFunction Perl_hv_placeholders_get Perl_hv_placeholders_set +syn keyword xsFunction Perl_hv_rand_set Perl_hv_riter_p Perl_hv_riter_set +syn keyword xsFunction Perl_hv_scalar Perl_init_global_struct +syn keyword xsFunction Perl_init_i18nl10n Perl_init_i18nl14n Perl_init_stacks +syn keyword xsFunction Perl_init_tm Perl_instr Perl_intro_my +syn keyword xsFunction Perl_is_invariant_string Perl_is_lvalue_sub +syn keyword xsFunction Perl_is_utf8_string Perl_is_utf8_string_loclen +syn keyword xsFunction Perl_isinfnan Perl_leave_scope Perl_lex_bufutf8 +syn keyword xsFunction Perl_lex_discard_to Perl_lex_grow_linestr +syn keyword xsFunction Perl_lex_next_chunk Perl_lex_peek_unichar +syn keyword xsFunction Perl_lex_read_space Perl_lex_read_to +syn keyword xsFunction Perl_lex_read_unichar Perl_lex_start Perl_lex_stuff_pv +syn keyword xsFunction Perl_lex_stuff_pvn Perl_lex_stuff_sv Perl_lex_unstuff +syn keyword xsFunction Perl_load_module Perl_load_module_nocontext +syn keyword xsFunction Perl_looks_like_number Perl_magic_dump Perl_malloc +syn keyword xsFunction Perl_markstack_grow Perl_mess Perl_mess_nocontext +syn keyword xsFunction Perl_mess_sv Perl_mfree Perl_mg_clear Perl_mg_copy +syn keyword xsFunction Perl_mg_dup Perl_mg_find Perl_mg_findext Perl_mg_free +syn keyword xsFunction Perl_mg_free_type Perl_mg_get Perl_mg_magical +syn keyword xsFunction Perl_mg_set Perl_mg_size Perl_mini_mktime +syn keyword xsFunction Perl_moreswitches Perl_mro_get_from_name +syn keyword xsFunction Perl_mro_get_linear_isa Perl_mro_get_private_data +syn keyword xsFunction Perl_mro_method_changed_in Perl_mro_register +syn keyword xsFunction Perl_mro_set_mro Perl_mro_set_private_data +syn keyword xsFunction Perl_my_atof Perl_my_atof2 Perl_my_bcopy Perl_my_bzero +syn keyword xsFunction Perl_my_chsize Perl_my_cxt_index Perl_my_cxt_init +syn keyword xsFunction Perl_my_dirfd Perl_my_exit Perl_my_failure_exit +syn keyword xsFunction Perl_my_fflush_all Perl_my_fork Perl_my_memcmp +syn keyword xsFunction Perl_my_memset Perl_my_pclose Perl_my_popen +syn keyword xsFunction Perl_my_popen_list Perl_my_setenv Perl_my_setlocale +syn keyword xsFunction Perl_my_snprintf Perl_my_socketpair Perl_my_sprintf +syn keyword xsFunction Perl_my_strerror Perl_my_strftime Perl_my_strlcat +syn keyword xsFunction Perl_my_strlcpy Perl_my_vsnprintf Perl_newANONATTRSUB +syn keyword xsFunction Perl_newANONHASH Perl_newANONLIST Perl_newANONSUB +syn keyword xsFunction Perl_newASSIGNOP Perl_newAVREF Perl_newBINOP +syn keyword xsFunction Perl_newCONDOP Perl_newCONSTSUB Perl_newCONSTSUB_flags +syn keyword xsFunction Perl_newCVREF Perl_newDEFSVOP Perl_newFORM +syn keyword xsFunction Perl_newFOROP Perl_newGIVENOP Perl_newGVOP +syn keyword xsFunction Perl_newGVREF Perl_newGVgen_flags Perl_newHVREF +syn keyword xsFunction Perl_newHVhv Perl_newLISTOP Perl_newLOGOP +syn keyword xsFunction Perl_newLOOPEX Perl_newLOOPOP Perl_newMETHOP +syn keyword xsFunction Perl_newMETHOP_named Perl_newMYSUB Perl_newNULLLIST +syn keyword xsFunction Perl_newOP Perl_newPADNAMELIST Perl_newPADNAMEouter +syn keyword xsFunction Perl_newPADNAMEpvn Perl_newPADOP Perl_newPMOP +syn keyword xsFunction Perl_newPROG Perl_newPVOP Perl_newRANGE Perl_newRV +syn keyword xsFunction Perl_newRV_noinc Perl_newSLICEOP Perl_newSTATEOP +syn keyword xsFunction Perl_newSV Perl_newSVOP Perl_newSVREF Perl_newSV_type +syn keyword xsFunction Perl_newSVhek Perl_newSViv Perl_newSVnv Perl_newSVpv +syn keyword xsFunction Perl_newSVpv_share Perl_newSVpvf +syn keyword xsFunction Perl_newSVpvf_nocontext Perl_newSVpvn +syn keyword xsFunction Perl_newSVpvn_flags Perl_newSVpvn_share Perl_newSVrv +syn keyword xsFunction Perl_newSVsv Perl_newSVuv Perl_newUNOP +syn keyword xsFunction Perl_newUNOP_AUX Perl_newWHENOP Perl_newWHILEOP +syn keyword xsFunction Perl_newXS Perl_newXS_flags Perl_new_collate +syn keyword xsFunction Perl_new_ctype Perl_new_numeric Perl_new_stackinfo +syn keyword xsFunction Perl_new_version Perl_ninstr Perl_nothreadhook +syn keyword xsFunction Perl_op_append_elem Perl_op_append_list +syn keyword xsFunction Perl_op_contextualize Perl_op_convert_list +syn keyword xsFunction Perl_op_dump Perl_op_free Perl_op_linklist +syn keyword xsFunction Perl_op_null Perl_op_parent Perl_op_prepend_elem +syn keyword xsFunction Perl_op_refcnt_lock Perl_op_refcnt_unlock +syn keyword xsFunction Perl_op_scope Perl_op_sibling_splice Perl_pack_cat +syn keyword xsFunction Perl_packlist Perl_pad_add_anon Perl_pad_add_name_pv +syn keyword xsFunction Perl_pad_add_name_pvn Perl_pad_add_name_sv +syn keyword xsFunction Perl_pad_alloc Perl_pad_compname_type +syn keyword xsFunction Perl_pad_findmy_pv Perl_pad_findmy_pvn +syn keyword xsFunction Perl_pad_findmy_sv Perl_pad_new Perl_pad_setsv +syn keyword xsFunction Perl_pad_sv Perl_pad_tidy Perl_padnamelist_fetch +syn keyword xsFunction Perl_padnamelist_store Perl_parse_arithexpr +syn keyword xsFunction Perl_parse_barestmt Perl_parse_block +syn keyword xsFunction Perl_parse_fullexpr Perl_parse_fullstmt +syn keyword xsFunction Perl_parse_label Perl_parse_listexpr +syn keyword xsFunction Perl_parse_stmtseq Perl_parse_termexpr Perl_parser_dup +syn keyword xsFunction Perl_pmop_dump Perl_pop_scope Perl_pregcomp +syn keyword xsFunction Perl_pregexec Perl_pregfree Perl_pregfree2 +syn keyword xsFunction Perl_prescan_version Perl_printf_nocontext +syn keyword xsFunction Perl_ptr_table_fetch Perl_ptr_table_free +syn keyword xsFunction Perl_ptr_table_new Perl_ptr_table_split +syn keyword xsFunction Perl_ptr_table_store Perl_push_scope Perl_pv_display +syn keyword xsFunction Perl_pv_escape Perl_pv_pretty Perl_pv_uni_display +syn keyword xsFunction Perl_quadmath_format_needed +syn keyword xsFunction Perl_quadmath_format_single Perl_re_compile +syn keyword xsFunction Perl_re_dup_guts Perl_re_intuit_start +syn keyword xsFunction Perl_re_intuit_string Perl_realloc Perl_reentrant_free +syn keyword xsFunction Perl_reentrant_init Perl_reentrant_retry +syn keyword xsFunction Perl_reentrant_size Perl_reg_named_buff_all +syn keyword xsFunction Perl_reg_named_buff_exists Perl_reg_named_buff_fetch +syn keyword xsFunction Perl_reg_named_buff_firstkey +syn keyword xsFunction Perl_reg_named_buff_nextkey Perl_reg_named_buff_scalar +syn keyword xsFunction Perl_regclass_swash Perl_regdump Perl_regdupe_internal +syn keyword xsFunction Perl_regexec_flags Perl_regfree_internal +syn keyword xsFunction Perl_reginitcolors Perl_regnext Perl_repeatcpy +syn keyword xsFunction Perl_require_pv Perl_rninstr Perl_rsignal +syn keyword xsFunction Perl_rsignal_state Perl_runops_debug +syn keyword xsFunction Perl_runops_standard Perl_rv2cv_op_cv Perl_rvpv_dup +syn keyword xsFunction Perl_safesyscalloc Perl_safesysfree Perl_safesysmalloc +syn keyword xsFunction Perl_safesysrealloc Perl_save_I16 Perl_save_I32 +syn keyword xsFunction Perl_save_I8 Perl_save_adelete Perl_save_aelem_flags +syn keyword xsFunction Perl_save_alloc Perl_save_aptr Perl_save_ary +syn keyword xsFunction Perl_save_bool Perl_save_clearsv Perl_save_delete +syn keyword xsFunction Perl_save_destructor Perl_save_destructor_x +syn keyword xsFunction Perl_save_generic_pvref Perl_save_generic_svref +syn keyword xsFunction Perl_save_gp Perl_save_hash Perl_save_hdelete +syn keyword xsFunction Perl_save_helem_flags Perl_save_hints Perl_save_hptr +syn keyword xsFunction Perl_save_int Perl_save_item Perl_save_iv +syn keyword xsFunction Perl_save_list Perl_save_long Perl_save_nogv +syn keyword xsFunction Perl_save_padsv_and_mortalize Perl_save_pptr +syn keyword xsFunction Perl_save_pushi32ptr Perl_save_pushptr +syn keyword xsFunction Perl_save_pushptrptr Perl_save_re_context +syn keyword xsFunction Perl_save_scalar Perl_save_set_svflags +syn keyword xsFunction Perl_save_shared_pvref Perl_save_sptr Perl_save_svref +syn keyword xsFunction Perl_save_vptr Perl_savepv Perl_savepvn +syn keyword xsFunction Perl_savesharedpv Perl_savesharedpvn +syn keyword xsFunction Perl_savesharedsvpv Perl_savestack_grow +syn keyword xsFunction Perl_savestack_grow_cnt Perl_savesvpv Perl_scan_bin +syn keyword xsFunction Perl_scan_hex Perl_scan_num Perl_scan_oct +syn keyword xsFunction Perl_scan_version Perl_scan_vstring Perl_seed +syn keyword xsFunction Perl_set_context Perl_set_numeric_local +syn keyword xsFunction Perl_set_numeric_radix Perl_set_numeric_standard +syn keyword xsFunction Perl_setdefout Perl_share_hek Perl_si_dup Perl_sortsv +syn keyword xsFunction Perl_sortsv_flags Perl_ss_dup Perl_stack_grow +syn keyword xsFunction Perl_start_subparse Perl_str_to_version +syn keyword xsFunction Perl_sv_2bool_flags Perl_sv_2cv Perl_sv_2io +syn keyword xsFunction Perl_sv_2iv_flags Perl_sv_2mortal Perl_sv_2nv_flags +syn keyword xsFunction Perl_sv_2pv_flags Perl_sv_2pvbyte Perl_sv_2pvutf8 +syn keyword xsFunction Perl_sv_2uv_flags Perl_sv_backoff Perl_sv_bless +syn keyword xsFunction Perl_sv_cat_decode Perl_sv_catpv Perl_sv_catpv_flags +syn keyword xsFunction Perl_sv_catpv_mg Perl_sv_catpvf Perl_sv_catpvf_mg +syn keyword xsFunction Perl_sv_catpvf_mg_nocontext Perl_sv_catpvf_nocontext +syn keyword xsFunction Perl_sv_catpvn_flags Perl_sv_catsv_flags Perl_sv_chop +syn keyword xsFunction Perl_sv_clear Perl_sv_cmp Perl_sv_cmp_flags +syn keyword xsFunction Perl_sv_cmp_locale Perl_sv_cmp_locale_flags +syn keyword xsFunction Perl_sv_collxfrm_flags Perl_sv_copypv_flags +syn keyword xsFunction Perl_sv_dec Perl_sv_dec_nomg Perl_sv_derived_from +syn keyword xsFunction Perl_sv_derived_from_pv Perl_sv_derived_from_pvn +syn keyword xsFunction Perl_sv_derived_from_sv Perl_sv_destroyable +syn keyword xsFunction Perl_sv_does Perl_sv_does_pv Perl_sv_does_pvn +syn keyword xsFunction Perl_sv_does_sv Perl_sv_dump Perl_sv_dup +syn keyword xsFunction Perl_sv_dup_inc Perl_sv_eq_flags +syn keyword xsFunction Perl_sv_force_normal_flags Perl_sv_free +syn keyword xsFunction Perl_sv_get_backrefs Perl_sv_gets Perl_sv_grow +syn keyword xsFunction Perl_sv_inc Perl_sv_inc_nomg Perl_sv_insert_flags +syn keyword xsFunction Perl_sv_isa Perl_sv_isobject Perl_sv_iv Perl_sv_len +syn keyword xsFunction Perl_sv_len_utf8 Perl_sv_magic Perl_sv_magicext +syn keyword xsFunction Perl_sv_newmortal Perl_sv_newref Perl_sv_nosharing +syn keyword xsFunction Perl_sv_nounlocking Perl_sv_nv Perl_sv_peek +syn keyword xsFunction Perl_sv_pos_b2u Perl_sv_pos_b2u_flags Perl_sv_pos_u2b +syn keyword xsFunction Perl_sv_pos_u2b_flags Perl_sv_pvbyten +syn keyword xsFunction Perl_sv_pvbyten_force Perl_sv_pvn +syn keyword xsFunction Perl_sv_pvn_force_flags Perl_sv_pvn_nomg +syn keyword xsFunction Perl_sv_pvutf8n Perl_sv_pvutf8n_force +syn keyword xsFunction Perl_sv_recode_to_utf8 Perl_sv_reftype Perl_sv_replace +syn keyword xsFunction Perl_sv_report_used Perl_sv_reset Perl_sv_rvweaken +syn keyword xsFunction Perl_sv_setiv Perl_sv_setiv_mg Perl_sv_setnv +syn keyword xsFunction Perl_sv_setnv_mg Perl_sv_setpv Perl_sv_setpv_mg +syn keyword xsFunction Perl_sv_setpvf Perl_sv_setpvf_mg +syn keyword xsFunction Perl_sv_setpvf_mg_nocontext Perl_sv_setpvf_nocontext +syn keyword xsFunction Perl_sv_setpviv Perl_sv_setpviv_mg Perl_sv_setpvn +syn keyword xsFunction Perl_sv_setpvn_mg Perl_sv_setref_iv Perl_sv_setref_nv +syn keyword xsFunction Perl_sv_setref_pv Perl_sv_setref_pvn Perl_sv_setref_uv +syn keyword xsFunction Perl_sv_setsv_flags Perl_sv_setsv_mg Perl_sv_setuv +syn keyword xsFunction Perl_sv_setuv_mg Perl_sv_tainted Perl_sv_true +syn keyword xsFunction Perl_sv_uni_display Perl_sv_unmagic Perl_sv_unmagicext +syn keyword xsFunction Perl_sv_unref_flags Perl_sv_untaint Perl_sv_upgrade +syn keyword xsFunction Perl_sv_usepvn_flags Perl_sv_utf8_decode +syn keyword xsFunction Perl_sv_utf8_downgrade Perl_sv_utf8_encode +syn keyword xsFunction Perl_sv_utf8_upgrade_flags_grow Perl_sv_uv +syn keyword xsFunction Perl_sv_vcatpvf Perl_sv_vcatpvf_mg Perl_sv_vcatpvfn +syn keyword xsFunction Perl_sv_vcatpvfn_flags Perl_sv_vsetpvf +syn keyword xsFunction Perl_sv_vsetpvf_mg Perl_sv_vsetpvfn Perl_swash_fetch +syn keyword xsFunction Perl_swash_init Perl_sync_locale Perl_sys_init +syn keyword xsFunction Perl_sys_init3 Perl_sys_intern_clear +syn keyword xsFunction Perl_sys_intern_dup Perl_sys_intern_init Perl_sys_term +syn keyword xsFunction Perl_taint_env Perl_taint_proper Perl_to_uni_lower +syn keyword xsFunction Perl_to_uni_title Perl_to_uni_upper Perl_to_utf8_case +syn keyword xsFunction Perl_unlnk Perl_unpack_str Perl_unpackstring +syn keyword xsFunction Perl_unsharepvn Perl_upg_version Perl_utf16_to_utf8 +syn keyword xsFunction Perl_utf16_to_utf8_reversed Perl_utf8_distance +syn keyword xsFunction Perl_utf8_hop Perl_utf8_length Perl_utf8_to_bytes +syn keyword xsFunction Perl_utf8n_to_uvchr Perl_utf8n_to_uvuni +syn keyword xsFunction Perl_uvoffuni_to_utf8_flags Perl_uvuni_to_utf8 +syn keyword xsFunction Perl_uvuni_to_utf8_flags Perl_valid_utf8_to_uvchr +syn keyword xsFunction Perl_vcmp Perl_vcroak Perl_vdeb Perl_vform +syn keyword xsFunction Perl_vload_module Perl_vmess Perl_vnewSVpvf +syn keyword xsFunction Perl_vnormal Perl_vnumify Perl_vstringify Perl_vverify +syn keyword xsFunction Perl_vwarn Perl_vwarner Perl_warn Perl_warn_nocontext +syn keyword xsFunction Perl_warn_sv Perl_warner Perl_warner_nocontext +syn keyword xsFunction Perl_whichsig_pv Perl_whichsig_pvn Perl_whichsig_sv +syn keyword xsFunction Perl_wrap_op_checker _get_regclass_nonbitmap_data +syn keyword xsFunction _is_cur_LC_category_utf8 _is_in_locale_category +syn keyword xsFunction _is_uni_FOO _is_uni_perl_idcont _is_uni_perl_idstart +syn keyword xsFunction _is_utf8_FOO _is_utf8_char_slow _is_utf8_idcont +syn keyword xsFunction _is_utf8_idstart _is_utf8_mark _is_utf8_perl_idcont +syn keyword xsFunction _is_utf8_perl_idstart _is_utf8_xidcont +syn keyword xsFunction _is_utf8_xidstart _new_invlist_C_array +syn keyword xsFunction _to_uni_fold_flags _to_utf8_fold_flags +syn keyword xsFunction _to_utf8_lower_flags _to_utf8_title_flags +syn keyword xsFunction _to_utf8_upper_flags alloccopstash amagic_call +syn keyword xsFunction amagic_deref_call any_dup append_utf8_from_native_byte +syn keyword xsFunction apply_attrs_string atfork_lock atfork_unlock av_clear +syn keyword xsFunction av_delete av_exists av_extend av_fetch av_fill av_len +syn keyword xsFunction av_make av_pop av_push av_shift av_store av_top_index +syn keyword xsFunction av_undef av_unshift block_end block_gimme block_start +syn keyword xsFunction bytes_cmp_utf8 bytes_from_utf8 bytes_to_utf8 call_argv +syn keyword xsFunction call_atexit call_list call_method call_pv call_sv +syn keyword xsFunction caller_cx cast_i32 cast_iv cast_ulong cast_uv +syn keyword xsFunction ck_entersub_args_list ck_entersub_args_proto +syn keyword xsFunction ck_entersub_args_proto_or_list ck_warner ck_warner_d +syn keyword xsFunction croak croak_memory_wrap croak_no_modify +syn keyword xsFunction croak_nocontext croak_sv croak_xs_usage csighandler +syn keyword xsFunction custom_op_desc custom_op_name cv_clone cv_const_sv +syn keyword xsFunction cv_get_call_checker cv_name cv_set_call_checker +syn keyword xsFunction cv_set_call_checker_flags cv_undef cx_dump cx_dup +syn keyword xsFunction cxinc deb deb_nocontext debop debprofdump debstack +syn keyword xsFunction debstackptrs delimcpy despatch_signals die +syn keyword xsFunction die_nocontext die_sv dirp_dup do_aspawn do_binmode +syn keyword xsFunction do_close do_gv_dump do_gvgv_dump do_hv_dump do_join +syn keyword xsFunction do_magic_dump do_op_dump do_open9 do_openn +syn keyword xsFunction do_pmop_dump do_spawn do_spawn_nowait do_sprintf +syn keyword xsFunction do_sv_dump doing_taint doref dounwind dowantarray +syn keyword xsFunction dump_all dump_c_backtrace dump_eval dump_form +syn keyword xsFunction dump_indent dump_mstats dump_packsubs dump_sub +syn keyword xsFunction dump_vindent eval_pv eval_sv fbm_compile fbm_instr +syn keyword xsFunction filter_add filter_del filter_read find_runcv +syn keyword xsFunction find_rundefsv foldEQ foldEQ_latin1 foldEQ_locale +syn keyword xsFunction foldEQ_utf8_flags form form_nocontext fp_dup +syn keyword xsFunction fprintf_nocontext free_global_struct free_tmps get_av +syn keyword xsFunction get_c_backtrace_dump get_context get_cv get_cvn_flags +syn keyword xsFunction get_hv get_mstats get_op_descs get_op_names get_ppaddr +syn keyword xsFunction get_sv get_vtbl getcwd_sv gp_dup gp_free gp_ref +syn keyword xsFunction grok_bin grok_hex grok_infnan grok_number +syn keyword xsFunction grok_number_flags grok_numeric_radix grok_oct +syn keyword xsFunction gv_add_by_type gv_autoload_pv gv_autoload_pvn +syn keyword xsFunction gv_autoload_sv gv_check gv_const_sv gv_dump +syn keyword xsFunction gv_efullname gv_efullname4 gv_fetchfile +syn keyword xsFunction gv_fetchfile_flags gv_fetchmeth_pv +syn keyword xsFunction gv_fetchmeth_pv_autoload gv_fetchmeth_pvn +syn keyword xsFunction gv_fetchmeth_pvn_autoload gv_fetchmeth_sv +syn keyword xsFunction gv_fetchmeth_sv_autoload gv_fetchmethod_autoload +syn keyword xsFunction gv_fetchmethod_pv_flags gv_fetchmethod_pvn_flags +syn keyword xsFunction gv_fetchmethod_sv_flags gv_fetchpv gv_fetchpvn_flags +syn keyword xsFunction gv_fetchsv gv_fullname gv_fullname4 gv_handler +syn keyword xsFunction gv_init_pv gv_init_pvn gv_init_sv gv_name_set +syn keyword xsFunction gv_stashpv gv_stashpvn gv_stashsv he_dup hek_dup +syn keyword xsFunction hv_clear hv_clear_placeholders hv_common +syn keyword xsFunction hv_common_key_len hv_copy_hints_hv hv_delayfree_ent +syn keyword xsFunction hv_free_ent hv_iterinit hv_iterkey hv_iterkeysv +syn keyword xsFunction hv_iternext_flags hv_iternextsv hv_iterval hv_ksplit +syn keyword xsFunction hv_name_set hv_rand_set hv_scalar init_global_struct +syn keyword xsFunction init_i18nl10n init_i18nl14n init_stacks init_tm instr +syn keyword xsFunction intro_my is_invariant_string is_lvalue_sub +syn keyword xsFunction is_safe_syscall is_utf8_string is_utf8_string_loclen +syn keyword xsFunction isinfnan leave_scope lex_bufutf8 lex_discard_to +syn keyword xsFunction lex_grow_linestr lex_next_chunk lex_peek_unichar +syn keyword xsFunction lex_read_space lex_read_to lex_read_unichar lex_start +syn keyword xsFunction lex_stuff_pv lex_stuff_pvn lex_stuff_sv lex_unstuff +syn keyword xsFunction load_module load_module_nocontext looks_like_number +syn keyword xsFunction magic_dump markstack_grow mess mess_nocontext mess_sv +syn keyword xsFunction mg_clear mg_copy mg_dup mg_find mg_findext mg_free +syn keyword xsFunction mg_free_type mg_get mg_magical mg_set mg_size +syn keyword xsFunction mini_mktime moreswitches mro_get_linear_isa +syn keyword xsFunction mro_method_changed_in my_atof my_atof2 my_bcopy +syn keyword xsFunction my_bzero my_chsize my_dirfd my_exit my_failure_exit +syn keyword xsFunction my_fflush_all my_fork my_memcmp my_memset my_pclose +syn keyword xsFunction my_popen my_popen_list my_setenv my_setlocale +syn keyword xsFunction my_socketpair my_strerror my_strftime newANONATTRSUB +syn keyword xsFunction newANONHASH newANONLIST newANONSUB newASSIGNOP +syn keyword xsFunction newAVREF newBINOP newCONDOP newCONSTSUB +syn keyword xsFunction newCONSTSUB_flags newCVREF newDEFSVOP newFORM newFOROP +syn keyword xsFunction newGIVENOP newGVOP newGVREF newGVgen_flags newHVREF +syn keyword xsFunction newHVhv newLISTOP newLOGOP newLOOPEX newLOOPOP +syn keyword xsFunction newMETHOP newMETHOP_named newMYSUB newNULLLIST newOP +syn keyword xsFunction newPADNAMELIST newPADNAMEouter newPADNAMEpvn newPADOP +syn keyword xsFunction newPMOP newPROG newPVOP newRANGE newRV newRV_noinc +syn keyword xsFunction newSLICEOP newSTATEOP newSV newSVOP newSVREF +syn keyword xsFunction newSV_type newSVhek newSViv newSVnv newSVpv +syn keyword xsFunction newSVpv_share newSVpvf newSVpvf_nocontext newSVpvn +syn keyword xsFunction newSVpvn_flags newSVpvn_share newSVrv newSVsv newSVuv +syn keyword xsFunction newUNOP newUNOP_AUX newWHENOP newWHILEOP newXS +syn keyword xsFunction newXS_flags new_collate new_ctype new_numeric +syn keyword xsFunction new_stackinfo new_version ninstr nothreadhook +syn keyword xsFunction op_append_elem op_append_list op_contextualize +syn keyword xsFunction op_convert_list op_dump op_free op_linklist op_null +syn keyword xsFunction op_parent op_prepend_elem op_refcnt_lock +syn keyword xsFunction op_refcnt_unlock op_scope op_sibling_splice pack_cat +syn keyword xsFunction packlist pad_add_anon pad_add_name_pv pad_add_name_pvn +syn keyword xsFunction pad_add_name_sv pad_alloc pad_compname_type +syn keyword xsFunction pad_findmy_pv pad_findmy_pvn pad_findmy_sv pad_new +syn keyword xsFunction pad_setsv pad_sv pad_tidy padnamelist_fetch +syn keyword xsFunction padnamelist_store parse_arithexpr parse_barestmt +syn keyword xsFunction parse_block parse_fullexpr parse_fullstmt parse_label +syn keyword xsFunction parse_listexpr parse_stmtseq parse_termexpr parser_dup +syn keyword xsFunction pmop_dump pop_scope pregcomp pregexec pregfree +syn keyword xsFunction pregfree2 prescan_version printf_nocontext +syn keyword xsFunction ptr_table_fetch ptr_table_free ptr_table_new +syn keyword xsFunction ptr_table_split ptr_table_store push_scope pv_display +syn keyword xsFunction pv_escape pv_pretty pv_uni_display +syn keyword xsFunction quadmath_format_needed quadmath_format_single +syn keyword xsFunction re_compile re_dup_guts re_intuit_start +syn keyword xsFunction re_intuit_string reentrant_free reentrant_init +syn keyword xsFunction reentrant_retry reentrant_size reg_named_buff_all +syn keyword xsFunction reg_named_buff_exists reg_named_buff_fetch +syn keyword xsFunction reg_named_buff_firstkey reg_named_buff_nextkey +syn keyword xsFunction reg_named_buff_scalar regclass_swash regdump +syn keyword xsFunction regdupe_internal regexec_flags regfree_internal +syn keyword xsFunction reginitcolors regnext repeatcpy require_pv rninstr +syn keyword xsFunction rsignal rsignal_state runops_debug runops_standard +syn keyword xsFunction rv2cv_op_cv rvpv_dup safesyscalloc safesysfree +syn keyword xsFunction safesysmalloc safesysrealloc save_I16 save_I32 save_I8 +syn keyword xsFunction save_adelete save_aelem_flags save_alloc save_aptr +syn keyword xsFunction save_ary save_bool save_clearsv save_delete +syn keyword xsFunction save_destructor save_destructor_x save_generic_pvref +syn keyword xsFunction save_generic_svref save_gp save_hash save_hdelete +syn keyword xsFunction save_helem_flags save_hints save_hptr save_int +syn keyword xsFunction save_item save_iv save_list save_long save_nogv +syn keyword xsFunction save_padsv_and_mortalize save_pptr save_pushi32ptr +syn keyword xsFunction save_pushptr save_pushptrptr save_re_context +syn keyword xsFunction save_scalar save_set_svflags save_shared_pvref +syn keyword xsFunction save_sptr save_svref save_vptr savepv savepvn +syn keyword xsFunction savesharedpv savesharedpvn savesharedsvpv +syn keyword xsFunction savestack_grow savestack_grow_cnt savesvpv scan_bin +syn keyword xsFunction scan_hex scan_num scan_oct scan_version scan_vstring +syn keyword xsFunction seed set_context set_numeric_local set_numeric_radix +syn keyword xsFunction set_numeric_standard setdefout share_hek si_dup sortsv +syn keyword xsFunction sortsv_flags ss_dup stack_grow start_subparse +syn keyword xsFunction str_to_version sv_2bool_flags sv_2cv sv_2io +syn keyword xsFunction sv_2iv_flags sv_2mortal sv_2nv_flags sv_2pv_flags +syn keyword xsFunction sv_2pvbyte sv_2pvutf8 sv_2uv_flags sv_backoff sv_bless +syn keyword xsFunction sv_cat_decode sv_catpv sv_catpv_flags sv_catpv_mg +syn keyword xsFunction sv_catpvf sv_catpvf_mg sv_catpvf_mg_nocontext +syn keyword xsFunction sv_catpvf_nocontext sv_catpvn_flags sv_catsv_flags +syn keyword xsFunction sv_chop sv_clear sv_cmp_flags sv_cmp_locale_flags +syn keyword xsFunction sv_collxfrm_flags sv_copypv_flags sv_dec sv_dec_nomg +syn keyword xsFunction sv_derived_from sv_derived_from_pv sv_derived_from_pvn +syn keyword xsFunction sv_derived_from_sv sv_destroyable sv_does sv_does_pv +syn keyword xsFunction sv_does_pvn sv_does_sv sv_dump sv_dup sv_dup_inc +syn keyword xsFunction sv_eq_flags sv_force_normal_flags sv_free +syn keyword xsFunction sv_get_backrefs sv_gets sv_grow sv_inc sv_inc_nomg +syn keyword xsFunction sv_insert_flags sv_isa sv_isobject sv_iv sv_len +syn keyword xsFunction sv_len_utf8 sv_magic sv_magicext sv_newmortal +syn keyword xsFunction sv_newref sv_nosharing sv_nounlocking sv_nv sv_peek +syn keyword xsFunction sv_pos_b2u sv_pos_b2u_flags sv_pos_u2b +syn keyword xsFunction sv_pos_u2b_flags sv_pvbyten sv_pvbyten_force sv_pvn +syn keyword xsFunction sv_pvn_force_flags sv_pvn_nomg sv_pvutf8n +syn keyword xsFunction sv_pvutf8n_force sv_recode_to_utf8 sv_reftype +syn keyword xsFunction sv_replace sv_report_used sv_reset sv_rvweaken +syn keyword xsFunction sv_setiv sv_setiv_mg sv_setnv sv_setnv_mg sv_setpv +syn keyword xsFunction sv_setpv_mg sv_setpvf sv_setpvf_mg +syn keyword xsFunction sv_setpvf_mg_nocontext sv_setpvf_nocontext sv_setpviv +syn keyword xsFunction sv_setpviv_mg sv_setpvn sv_setpvn_mg sv_setref_iv +syn keyword xsFunction sv_setref_nv sv_setref_pv sv_setref_pvn sv_setref_uv +syn keyword xsFunction sv_setsv_flags sv_setsv_mg sv_setuv sv_setuv_mg +syn keyword xsFunction sv_tainted sv_true sv_uni_display sv_unmagic +syn keyword xsFunction sv_unmagicext sv_unref_flags sv_untaint sv_upgrade +syn keyword xsFunction sv_usepvn_flags sv_utf8_decode sv_utf8_downgrade +syn keyword xsFunction sv_utf8_encode sv_utf8_upgrade_flags_grow sv_uv +syn keyword xsFunction sv_vcatpvf sv_vcatpvf_mg sv_vcatpvfn sv_vcatpvfn_flags +syn keyword xsFunction sv_vsetpvf sv_vsetpvf_mg sv_vsetpvfn swash_fetch +syn keyword xsFunction swash_init sync_locale sys_intern_clear sys_intern_dup +syn keyword xsFunction sys_intern_init taint_env taint_proper to_uni_lower +syn keyword xsFunction to_uni_title to_uni_upper to_utf8_case unlnk +syn keyword xsFunction unpack_str unpackstring unsharepvn upg_version +syn keyword xsFunction utf16_to_utf8 utf16_to_utf8_reversed utf8_distance +syn keyword xsFunction utf8_hop utf8_length utf8_to_bytes utf8n_to_uvchr +syn keyword xsFunction utf8n_to_uvuni uvoffuni_to_utf8_flags uvuni_to_utf8 +syn keyword xsFunction uvuni_to_utf8_flags valid_utf8_to_uvchr vcmp vcroak +syn keyword xsFunction vdeb vform vload_module vmess vnewSVpvf vnormal +syn keyword xsFunction vnumify vstringify vverify vwarn vwarner warn +syn keyword xsFunction warn_nocontext warn_sv warner warner_nocontext +syn keyword xsFunction whichsig_pv whichsig_pvn whichsig_sv wrap_op_checker +syn keyword xsVariable MARK MY_CXT ORIGMARK PL_I PL_No PL_Vars PL_VarsPtr +syn keyword xsVariable PL_Yes PL_a2e PL_bincompat_options PL_bitcount +syn keyword xsVariable PL_block_type PL_bufend PL_bufptr PL_charclass +syn keyword xsVariable PL_check PL_copline PL_core_reg_engine PL_cshname +syn keyword xsVariable PL_e2a PL_e2utf PL_error_count PL_expect PL_fold +syn keyword xsVariable PL_fold_latin1 PL_fold_locale PL_force_link_funcs +syn keyword xsVariable PL_freq PL_global_struct_size PL_hexdigit PL_in_my +syn keyword xsVariable PL_in_my_stash PL_interp_size PL_interp_size_5_18_0 +syn keyword xsVariable PL_last_lop PL_last_lop_op PL_last_uni PL_latin1_lc +syn keyword xsVariable PL_lex_allbrackets PL_lex_brackets PL_lex_brackstack +syn keyword xsVariable PL_lex_casemods PL_lex_casestack PL_lex_defer +syn keyword xsVariable PL_lex_dojoin PL_lex_fakeeof PL_lex_formbrack +syn keyword xsVariable PL_lex_inpat PL_lex_inwhat PL_lex_op PL_lex_repl +syn keyword xsVariable PL_lex_starts PL_lex_state PL_lex_stuff PL_linestart +syn keyword xsVariable PL_linestr PL_magic_data PL_magic_vtable_names +syn keyword xsVariable PL_memory_wrap PL_mod_latin1_uc PL_multi_close +syn keyword xsVariable PL_multi_end PL_multi_open PL_multi_start PL_nexttoke +syn keyword xsVariable PL_nexttype PL_nextval PL_no_aelem PL_no_dir_func +syn keyword xsVariable PL_no_func PL_no_helem_sv PL_no_localize_ref PL_no_mem +syn keyword xsVariable PL_no_modify PL_no_myglob PL_no_security +syn keyword xsVariable PL_no_sock_func PL_no_symref PL_no_symref_sv +syn keyword xsVariable PL_no_usym PL_no_wrongref PL_oldbufptr PL_oldoldbufptr +syn keyword xsVariable PL_op_desc PL_op_name PL_op_private_bitdef_ix +syn keyword xsVariable PL_op_private_bitdefs PL_op_private_bitfields +syn keyword xsVariable PL_op_private_labels PL_op_private_valid PL_opargs +syn keyword xsVariable PL_phase_names PL_ppaddr PL_preambled +syn keyword xsVariable PL_reg_extflags_name PL_reg_intflags_name PL_reg_name +syn keyword xsVariable PL_regkind PL_revision PL_rsfp PL_rsfp_filters +syn keyword xsVariable PL_runops_dbg PL_runops_std PL_sh_path PL_sig_name +syn keyword xsVariable PL_sig_num PL_simple PL_simple_bitmask PL_sublex_info +syn keyword xsVariable PL_subversion PL_tokenbuf PL_utf2e PL_utf8skip +syn keyword xsVariable PL_uudmap PL_uuemap PL_valid_types_IVX +syn keyword xsVariable PL_valid_types_IV_set PL_valid_types_NVX +syn keyword xsVariable PL_valid_types_NV_set PL_valid_types_PVX +syn keyword xsVariable PL_valid_types_RV PL_varies PL_varies_bitmask +syn keyword xsVariable PL_version PL_warn_nl PL_warn_nosemi PL_warn_reserved +syn keyword xsVariable PL_warn_uninit PL_warn_uninit_sv RETVAL SP TARG +syn keyword xsVariable _aMY_CXT _aTHX aMY_CXT aMY_CXT_ aTHX aTHX_ items +syn keyword xsMacro ABORT ACCEPT ADDOP AHOCORASICK AHOCORASICKC +syn keyword xsMacro ALLOC_THREAD_KEY AMG_CALLun AMG_CALLunary AMGf_assign +syn keyword xsMacro AMGf_noleft AMGf_noright AMGf_numarg AMGf_numeric +syn keyword xsMacro AMGf_set AMGf_unary AMGf_want_list AMGfallNEVER AMGfallNO +syn keyword xsMacro AMGfallYES AMT_AMAGIC AMT_AMAGIC_off AMT_AMAGIC_on +syn keyword xsMacro AMTf_AMAGIC ANDAND ANDOP ANGSTROM_SIGN ANONSUB ANYOF +syn keyword xsMacro ANYOFL ANYOF_ALNUM ANYOF_ALNUML ANYOF_ALPHA +syn keyword xsMacro ANYOF_ALPHANUMERIC ANYOF_ASCII ANYOF_BIT ANYOF_BITMAP +syn keyword xsMacro ANYOF_BITMAP_BYTE ANYOF_BITMAP_CLEAR +syn keyword xsMacro ANYOF_BITMAP_CLEARALL ANYOF_BITMAP_SET +syn keyword xsMacro ANYOF_BITMAP_SETALL ANYOF_BITMAP_SIZE ANYOF_BITMAP_TEST +syn keyword xsMacro ANYOF_BITMAP_ZERO ANYOF_BLANK ANYOF_CASED +syn keyword xsMacro ANYOF_CLASS_CLEAR ANYOF_CLASS_OR ANYOF_CLASS_SET +syn keyword xsMacro ANYOF_CLASS_SETALL ANYOF_CLASS_TEST +syn keyword xsMacro ANYOF_CLASS_TEST_ANY_SET ANYOF_CLASS_ZERO ANYOF_CNTRL +syn keyword xsMacro ANYOF_COMMON_FLAGS ANYOF_DIGIT ANYOF_FLAGS +syn keyword xsMacro ANYOF_FLAGS_ALL ANYOF_FOLD_SHARP_S ANYOF_GRAPH +syn keyword xsMacro ANYOF_HAS_NONBITMAP_NON_UTF8_MATCHES +syn keyword xsMacro ANYOF_HAS_UTF8_NONBITMAP_MATCHES ANYOF_HORIZWS +syn keyword xsMacro ANYOF_INVERT ANYOF_LOCALE_FLAGS ANYOF_LOC_FOLD +syn keyword xsMacro ANYOF_LOWER ANYOF_MATCHES_ALL_ABOVE_BITMAP +syn keyword xsMacro ANYOF_MATCHES_ALL_NON_UTF8_NON_ASCII ANYOF_MATCHES_POSIXL +syn keyword xsMacro ANYOF_MAX ANYOF_NALNUM ANYOF_NALNUML ANYOF_NALPHA +syn keyword xsMacro ANYOF_NALPHANUMERIC ANYOF_NASCII ANYOF_NBLANK +syn keyword xsMacro ANYOF_NCASED ANYOF_NCNTRL ANYOF_NDIGIT ANYOF_NGRAPH +syn keyword xsMacro ANYOF_NHORIZWS ANYOF_NLOWER ANYOF_NPRINT ANYOF_NPUNCT +syn keyword xsMacro ANYOF_NSPACE ANYOF_NSPACEL ANYOF_NUPPER ANYOF_NVERTWS +syn keyword xsMacro ANYOF_NWORDCHAR ANYOF_NXDIGIT ANYOF_ONLY_HAS_BITMAP +syn keyword xsMacro ANYOF_POSIXL_AND ANYOF_POSIXL_CLEAR ANYOF_POSIXL_MAX +syn keyword xsMacro ANYOF_POSIXL_OR ANYOF_POSIXL_SET ANYOF_POSIXL_SETALL +syn keyword xsMacro ANYOF_POSIXL_SKIP ANYOF_POSIXL_SSC_TEST_ALL_SET +syn keyword xsMacro ANYOF_POSIXL_SSC_TEST_ANY_SET ANYOF_POSIXL_TEST +syn keyword xsMacro ANYOF_POSIXL_TEST_ALL_SET ANYOF_POSIXL_TEST_ANY_SET +syn keyword xsMacro ANYOF_POSIXL_ZERO ANYOF_PRINT ANYOF_PUNCT ANYOF_SKIP +syn keyword xsMacro ANYOF_SPACE ANYOF_SPACEL ANYOF_UNIPROP ANYOF_UPPER +syn keyword xsMacro ANYOF_VERTWS ANYOF_WARN_SUPER ANYOF_WORDCHAR ANYOF_XDIGIT +syn keyword xsMacro ARCHLIB ARCHLIB_EXP ARCHNAME ARG ARG1 ARG1_LOC ARG1_SET +syn keyword xsMacro ARG2 ARG2L ARG2L_LOC ARG2L_SET ARG2_LOC ARG2_SET ARGTARG +syn keyword xsMacro ARG_LOC ARG_SET ARG_VALUE ARG__SET ARROW +syn keyword xsMacro ASCII_MORE_RESTRICT_PAT_MODS ASCII_RESTRICT_PAT_MOD +syn keyword xsMacro ASCII_RESTRICT_PAT_MODS ASCII_TO_NATIVE ASCTIME_R_PROTO +syn keyword xsMacro ASSERT_CURPAD_ACTIVE ASSERT_CURPAD_LEGAL ASSIGNOP ASSUME +syn keyword xsMacro Atof Atol Atoul AvALLOC AvARRAY AvARYLEN AvFILL AvFILLp +syn keyword xsMacro AvMAX AvREAL AvREALISH AvREAL_off AvREAL_on AvREAL_only +syn keyword xsMacro AvREIFY AvREIFY_off AvREIFY_on AvREIFY_only BADVERSION +syn keyword xsMacro BASEOP BHKf_bhk_eval BHKf_bhk_post_end BHKf_bhk_pre_end +syn keyword xsMacro BHKf_bhk_start BIN BIN_EXP BITANDOP BITMAP_BYTE +syn keyword xsMacro BITMAP_TEST BITOROP BIT_BUCKET BIT_DIGITS BOL +syn keyword xsMacro BOM_UTF8_FIRST_BYTE BOM_UTF8_TAIL BOUND BOUNDA BOUNDL +syn keyword xsMacro BOUNDU BRANCH BRANCHJ BRANCH_next BRANCH_next_fail +syn keyword xsMacro BSD_GETPGRP BSD_SETPGRP BSDish BUFSIZ BYTEORDER +syn keyword xsMacro BhkDISABLE BhkENABLE BhkENTRY BhkENTRY_set BhkFLAGS Bit +syn keyword xsMacro BmFLAGS BmPREVIOUS BmRARE BmUSEFUL CALLREGCOMP +syn keyword xsMacro CALLREGCOMP_ENG CALLREGDUPE CALLREGDUPE_PVT CALLREGEXEC +syn keyword xsMacro CALLREGFREE CALLREGFREE_PVT CALLREG_INTUIT_START +syn keyword xsMacro CALLREG_INTUIT_STRING CALLREG_NAMED_BUFF_ALL +syn keyword xsMacro CALLREG_NAMED_BUFF_CLEAR CALLREG_NAMED_BUFF_COUNT +syn keyword xsMacro CALLREG_NAMED_BUFF_DELETE CALLREG_NAMED_BUFF_EXISTS +syn keyword xsMacro CALLREG_NAMED_BUFF_FETCH CALLREG_NAMED_BUFF_FIRSTKEY +syn keyword xsMacro CALLREG_NAMED_BUFF_NEXTKEY CALLREG_NAMED_BUFF_SCALAR +syn keyword xsMacro CALLREG_NAMED_BUFF_STORE CALLREG_NUMBUF_FETCH +syn keyword xsMacro CALLREG_NUMBUF_LENGTH CALLREG_NUMBUF_STORE +syn keyword xsMacro CALLREG_PACKAGE CALLRUNOPS CALL_BLOCK_HOOKS +syn keyword xsMacro CALL_CHECKER_REQUIRE_GV CALL_FPTR CANY CAN_COW_FLAGS +syn keyword xsMacro CAN_COW_MASK CAN_PROTOTYPE CAN_VAPROTO +syn keyword xsMacro CASE_STD_PMMOD_FLAGS_PARSE_SET CASTFLAGS CASTNEGFLOAT +syn keyword xsMacro CAT2 CATCH_GET CATCH_SET CHANGE_MULTICALL_FLAGS CHARBITS +syn keyword xsMacro CHARSET_PAT_MODS CHECK_MALLOC_TAINT +syn keyword xsMacro CHECK_MALLOC_TOO_LATE_FOR CHECK_MALLOC_TOO_LATE_FOR_ +syn keyword xsMacro CLEAR_ARGARRAY CLEAR_ERRSV CLONEf_CLONE_HOST +syn keyword xsMacro CLONEf_COPY_STACKS CLONEf_JOIN_IN CLONEf_KEEP_PTR_TABLE +syn keyword xsMacro CLOSE CLUMP CLUMP_2IV CLUMP_2UV COLONATTR +syn keyword xsMacro COMBINING_GRAVE_ACCENT_UTF8 COMMIT COMMIT_next +syn keyword xsMacro COMMIT_next_fail COND_BROADCAST COND_DESTROY COND_INIT +syn keyword xsMacro COND_SIGNAL COND_WAIT CONTINUE CONTINUE_PAT_MOD +syn keyword xsMacro COPHH_KEY_UTF8 COP_SEQMAX_INC COP_SEQ_RANGE_HIGH +syn keyword xsMacro COP_SEQ_RANGE_LOW CPERLarg CPERLarg_ CPERLscope CPPLAST +syn keyword xsMacro CPPMINUS CPPRUN CPPSTDIN CRYPT_R_PROTO CR_NATIVE CSH +syn keyword xsMacro CTERMID_R_PROTO CTIME_R_PROTO CTYPE256 CURLY CURLYM +syn keyword xsMacro CURLYM_A CURLYM_A_fail CURLYM_B CURLYM_B_fail CURLYN +syn keyword xsMacro CURLYX CURLYX_end CURLYX_end_fail CURLY_B_max +syn keyword xsMacro CURLY_B_max_fail CURLY_B_min CURLY_B_min_fail +syn keyword xsMacro CURLY_B_min_known CURLY_B_min_known_fail +syn keyword xsMacro CURRENT_FEATURE_BUNDLE CURRENT_HINTS CUTGROUP +syn keyword xsMacro CUTGROUP_next CUTGROUP_next_fail CV_NAME_NOTQUAL +syn keyword xsMacro CV_UNDEF_KEEP_NAME CVf_ANON CVf_ANONCONST CVf_AUTOLOAD +syn keyword xsMacro CVf_BUILTIN_ATTRS CVf_CLONE CVf_CLONED CVf_CONST +syn keyword xsMacro CVf_CVGV_RC CVf_DYNFILE CVf_HASEVAL CVf_ISXSUB +syn keyword xsMacro CVf_LEXICAL CVf_LVALUE CVf_METHOD CVf_NAMED CVf_NODEBUG +syn keyword xsMacro CVf_SLABBED CVf_UNIQUE CVf_WEAKOUTSIDE CXINC CXTYPEMASK +syn keyword xsMacro CX_CURPAD_SAVE CX_CURPAD_SV CXp_FOR_DEF CXp_FOR_LVREF +syn keyword xsMacro CXp_HASARGS CXp_MULTICALL CXp_ONCE CXp_REAL CXp_SUB_RE +syn keyword xsMacro CXp_SUB_RE_FAKE CXp_TRYBLOCK C_ARRAY_END C_ARRAY_LENGTH +syn keyword xsMacro C_FAC_POSIX CopFILE CopFILEAV CopFILEAVx CopFILEGV +syn keyword xsMacro CopFILEGV_set CopFILESV CopFILE_free CopFILE_set +syn keyword xsMacro CopFILE_setn CopHINTHASH_get CopHINTHASH_set CopHINTS_get +syn keyword xsMacro CopHINTS_set CopLABEL CopLABEL_alloc CopLABEL_len +syn keyword xsMacro CopLABEL_len_flags CopLINE CopLINE_dec CopLINE_inc +syn keyword xsMacro CopLINE_set CopSTASH CopSTASHPV CopSTASHPV_set +syn keyword xsMacro CopSTASH_eq CopSTASH_ne CopSTASH_set Copy CopyD CowREFCNT +syn keyword xsMacro Ctl CvANON CvANONCONST CvANONCONST_off CvANONCONST_on +syn keyword xsMacro CvANON_off CvANON_on CvAUTOLOAD CvAUTOLOAD_off +syn keyword xsMacro CvAUTOLOAD_on CvCLONE CvCLONED CvCLONED_off CvCLONED_on +syn keyword xsMacro CvCLONE_off CvCLONE_on CvCONST CvCONST_off CvCONST_on +syn keyword xsMacro CvCVGV_RC CvCVGV_RC_off CvCVGV_RC_on CvDEPTH +syn keyword xsMacro CvDEPTHunsafe CvDYNFILE CvDYNFILE_off CvDYNFILE_on CvEVAL +syn keyword xsMacro CvEVAL_off CvEVAL_on CvFILE CvFILEGV CvFILE_set_from_cop +syn keyword xsMacro CvFLAGS CvGV CvGV_set CvHASEVAL CvHASEVAL_off +syn keyword xsMacro CvHASEVAL_on CvHASGV CvHSCXT CvISXSUB CvISXSUB_off +syn keyword xsMacro CvISXSUB_on CvLEXICAL CvLEXICAL_off CvLEXICAL_on CvLVALUE +syn keyword xsMacro CvLVALUE_off CvLVALUE_on CvMETHOD CvMETHOD_off +syn keyword xsMacro CvMETHOD_on CvNAMED CvNAMED_off CvNAMED_on CvNAME_HEK_set +syn keyword xsMacro CvNODEBUG CvNODEBUG_off CvNODEBUG_on CvOUTSIDE +syn keyword xsMacro CvOUTSIDE_SEQ CvPADLIST CvPADLIST_set CvPROTO CvPROTOLEN +syn keyword xsMacro CvROOT CvSLABBED CvSLABBED_off CvSLABBED_on CvSPECIAL +syn keyword xsMacro CvSPECIAL_off CvSPECIAL_on CvSTART CvSTASH CvSTASH_set +syn keyword xsMacro CvUNIQUE CvUNIQUE_off CvUNIQUE_on CvWEAKOUTSIDE +syn keyword xsMacro CvWEAKOUTSIDE_off CvWEAKOUTSIDE_on CvXSUB CvXSUBANY +syn keyword xsMacro CxFOREACH CxFOREACHDEF CxHASARGS CxITERVAR +syn keyword xsMacro CxITERVAR_PADSV CxLABEL CxLABEL_len CxLABEL_len_flags +syn keyword xsMacro CxLVAL CxMULTICALL CxOLD_IN_EVAL CxOLD_OP_TYPE CxONCE +syn keyword xsMacro CxPADLOOP CxPOPSUB_DONE CxREALEVAL CxTRYBLOCK CxTYPE +syn keyword xsMacro CxTYPE_is_LOOP DBL_DIG DBL_MAX DBL_MIN DBM_ckFilter +syn keyword xsMacro DBM_setFilter DBVARMG_COUNT DBVARMG_SIGNAL DBVARMG_SINGLE +syn keyword xsMacro DBVARMG_TRACE DB_VERSION_MAJOR_CFG DB_VERSION_MINOR_CFG +syn keyword xsMacro DB_VERSION_PATCH_CFG DEBUG_A DEBUG_A_FLAG DEBUG_A_TEST +syn keyword xsMacro DEBUG_A_TEST_ DEBUG_B DEBUG_BUFFERS_r DEBUG_B_FLAG +syn keyword xsMacro DEBUG_B_TEST DEBUG_B_TEST_ DEBUG_C DEBUG_COMPILE_r +syn keyword xsMacro DEBUG_CX DEBUG_C_FLAG DEBUG_C_TEST DEBUG_C_TEST_ DEBUG_D +syn keyword xsMacro DEBUG_DB_RECURSE_FLAG DEBUG_DUMP_r DEBUG_D_FLAG +syn keyword xsMacro DEBUG_D_TEST DEBUG_D_TEST_ DEBUG_EXECUTE_r DEBUG_EXTRA_r +syn keyword xsMacro DEBUG_FLAGS_r DEBUG_GPOS_r DEBUG_H DEBUG_H_FLAG +syn keyword xsMacro DEBUG_H_TEST DEBUG_H_TEST_ DEBUG_INTUIT_r DEBUG_J_FLAG +syn keyword xsMacro DEBUG_J_TEST DEBUG_J_TEST_ DEBUG_L DEBUG_L_FLAG +syn keyword xsMacro DEBUG_L_TEST DEBUG_L_TEST_ DEBUG_M DEBUG_MASK +syn keyword xsMacro DEBUG_MATCH_r DEBUG_M_FLAG DEBUG_M_TEST DEBUG_M_TEST_ +syn keyword xsMacro DEBUG_OFFSETS_r DEBUG_OPTIMISE_MORE_r DEBUG_OPTIMISE_r +syn keyword xsMacro DEBUG_P DEBUG_PARSE_r DEBUG_P_FLAG DEBUG_P_TEST +syn keyword xsMacro DEBUG_P_TEST_ DEBUG_Pv DEBUG_Pv_TEST DEBUG_Pv_TEST_ +syn keyword xsMacro DEBUG_R DEBUG_R_FLAG DEBUG_R_TEST DEBUG_R_TEST_ DEBUG_S +syn keyword xsMacro DEBUG_SCOPE DEBUG_STACK_r DEBUG_STATE_r DEBUG_S_FLAG +syn keyword xsMacro DEBUG_S_TEST DEBUG_S_TEST_ DEBUG_T DEBUG_TEST_r +syn keyword xsMacro DEBUG_TOP_FLAG DEBUG_TRIE_COMPILE_MORE_r +syn keyword xsMacro DEBUG_TRIE_COMPILE_r DEBUG_TRIE_EXECUTE_MORE_r +syn keyword xsMacro DEBUG_TRIE_EXECUTE_r DEBUG_TRIE_r DEBUG_T_FLAG +syn keyword xsMacro DEBUG_T_TEST DEBUG_T_TEST_ DEBUG_U DEBUG_U_FLAG +syn keyword xsMacro DEBUG_U_TEST DEBUG_U_TEST_ DEBUG_Uv DEBUG_Uv_TEST +syn keyword xsMacro DEBUG_Uv_TEST_ DEBUG_X DEBUG_X_FLAG DEBUG_X_TEST +syn keyword xsMacro DEBUG_X_TEST_ DEBUG_Xv DEBUG_Xv_TEST DEBUG_Xv_TEST_ +syn keyword xsMacro DEBUG__ DEBUG_c DEBUG_c_FLAG DEBUG_c_TEST DEBUG_c_TEST_ +syn keyword xsMacro DEBUG_f DEBUG_f_FLAG DEBUG_f_TEST DEBUG_f_TEST_ DEBUG_l +syn keyword xsMacro DEBUG_l_FLAG DEBUG_l_TEST DEBUG_l_TEST_ DEBUG_m +syn keyword xsMacro DEBUG_m_FLAG DEBUG_m_TEST DEBUG_m_TEST_ DEBUG_o +syn keyword xsMacro DEBUG_o_FLAG DEBUG_o_TEST DEBUG_o_TEST_ DEBUG_p +syn keyword xsMacro DEBUG_p_FLAG DEBUG_p_TEST DEBUG_p_TEST_ DEBUG_q +syn keyword xsMacro DEBUG_q_FLAG DEBUG_q_TEST DEBUG_q_TEST_ DEBUG_r +syn keyword xsMacro DEBUG_r_FLAG DEBUG_r_TEST DEBUG_r_TEST_ DEBUG_s +syn keyword xsMacro DEBUG_s_FLAG DEBUG_s_TEST DEBUG_s_TEST_ DEBUG_t_FLAG +syn keyword xsMacro DEBUG_t_TEST DEBUG_t_TEST_ DEBUG_u DEBUG_u_FLAG +syn keyword xsMacro DEBUG_u_TEST DEBUG_u_TEST_ DEBUG_v DEBUG_v_FLAG +syn keyword xsMacro DEBUG_v_TEST DEBUG_v_TEST_ DEBUG_x DEBUG_x_FLAG +syn keyword xsMacro DEBUG_x_TEST DEBUG_x_TEST_ +syn keyword xsMacro DECLARATION_FOR_LC_NUMERIC_MANIPULATION +syn keyword xsMacro DECLARATION_FOR_STORE_LC_NUMERIC_SET_TO_NEEDED +syn keyword xsMacro DECLARE_STORE_LC_NUMERIC_SET_TO_NEEDED DEFAULT +syn keyword xsMacro DEFAULT_PAT_MOD DEFINEP DEFSV DEFSV_set DEL_NATIVE +syn keyword xsMacro DEPENDS_PAT_MOD DEPENDS_PAT_MODS DETACH DIE DM_ARRAY_ISA +syn keyword xsMacro DM_DELAY DM_EGID DM_EUID DM_GID DM_RGID DM_RUID DM_UID DO +syn keyword xsMacro DOINIT DOLSHARP DONT_DECLARE_STD DORDOR DOROP DOSISH +syn keyword xsMacro DOTDOT DOUBLEKIND DOUBLESIZE DOUBLE_BIG_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_32_BIT_BIG_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_32_BIT_LITTLE_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_64_BIT_BIG_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_64_BIT_LITTLE_ENDIAN +syn keyword xsMacro DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_BE_LE +syn keyword xsMacro DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_LE_BE +syn keyword xsMacro DOUBLE_IS_UNKNOWN_FORMAT DOUBLE_LITTLE_ENDIAN +syn keyword xsMacro DOUBLE_MIX_ENDIAN DO_UTF8 DPTR2FPTR DRAND48_R_PROTO +syn keyword xsMacro DUP_WARNINGS Drand01 ELSE ELSIF EMBEDMYMALLOC END +syn keyword xsMacro ENDGRENT_R_PROTO ENDHOSTENT_R_PROTO ENDLIKE +syn keyword xsMacro ENDNETENT_R_PROTO ENDPROTOENT_R_PROTO ENDPWENT_R_PROTO +syn keyword xsMacro ENDSERVENT_R_PROTO END_EXTERN_C ENTER ENTER_with_name +syn keyword xsMacro ENTRY_PROBE EOF EOL EOS EQOP ERRSV ESC_NATIVE EVAL +syn keyword xsMacro EVAL_AB EVAL_AB_fail EVAL_INEVAL EVAL_INREQUIRE +syn keyword xsMacro EVAL_KEEPERR EVAL_NULL EVAL_RE_REPARSING EVAL_WARNONLY +syn keyword xsMacro EXACT EXACTF EXACTFA EXACTFA_NO_TRIE EXACTFL EXACTFLU8 +syn keyword xsMacro EXACTFU EXACTFU_SS EXACTL EXEC_ARGV_CAST EXEC_PAT_MOD +syn keyword xsMacro EXEC_PAT_MODS EXPECT EXT EXTCONST EXTEND EXTEND_MORTAL +syn keyword xsMacro EXTERN_C EXTPERLIO EXTRA_SIZE EXTRA_STEP_2ARGS EXT_MGVTBL +syn keyword xsMacro EXT_PAT_MODS FAKE_BIT_BUCKET FAKE_DEFAULT_SIGNAL_HANDLERS +syn keyword xsMacro FAKE_PERSISTENT_SIGNAL_HANDLERS FALSE FBMcf_TAIL +syn keyword xsMacro FBMcf_TAIL_DOLLAR FBMcf_TAIL_DOLLARM FBMcf_TAIL_Z +syn keyword xsMacro FBMcf_TAIL_z FBMrf_MULTILINE FCNTL_CAN_LOCK FD_CLR +syn keyword xsMacro FD_ISSET FD_SET FD_ZERO FEATURE_ARYBASE_IS_ENABLED +syn keyword xsMacro FEATURE_BITWISE_IS_ENABLED FEATURE_BUNDLE_510 +syn keyword xsMacro FEATURE_BUNDLE_511 FEATURE_BUNDLE_515 +syn keyword xsMacro FEATURE_BUNDLE_CUSTOM FEATURE_BUNDLE_DEFAULT +syn keyword xsMacro FEATURE_EVALBYTES_IS_ENABLED FEATURE_FC_IS_ENABLED +syn keyword xsMacro FEATURE_IS_ENABLED FEATURE_LEXSUBS_IS_ENABLED +syn keyword xsMacro FEATURE_POSTDEREF_IS_ENABLED +syn keyword xsMacro FEATURE_POSTDEREF_QQ_IS_ENABLED +syn keyword xsMacro FEATURE_REFALIASING_IS_ENABLED FEATURE_SAY_IS_ENABLED +syn keyword xsMacro FEATURE_SIGNATURES_IS_ENABLED FEATURE_STATE_IS_ENABLED +syn keyword xsMacro FEATURE_SWITCH_IS_ENABLED FEATURE_UNICODE_IS_ENABLED +syn keyword xsMacro FEATURE_UNIEVAL_IS_ENABLED FEATURE___SUB___IS_ENABLED +syn keyword xsMacro FFLUSH_NULL FF_0DECIMAL FF_BLANK FF_CHECKCHOP FF_CHECKNL +syn keyword xsMacro FF_CHOP FF_DECIMAL FF_END FF_FETCH FF_HALFSPACE FF_ITEM +syn keyword xsMacro FF_LINEGLOB FF_LINEMARK FF_LINESNGL FF_LITERAL FF_MORE +syn keyword xsMacro FF_NEWLINE FF_SKIP FF_SPACE FILE FILE_base FILE_bufsiz +syn keyword xsMacro FILE_cnt FILE_ptr FILL_ADVANCE_NODE +syn keyword xsMacro FILL_ADVANCE_NODE_2L_ARG FILL_ADVANCE_NODE_ARG +syn keyword xsMacro FILTER_DATA FILTER_ISREADER FILTER_READ +syn keyword xsMacro FIND_RUNCV_level_eq FIND_RUNCV_padid_eq +syn keyword xsMacro FIRST_SURROGATE_UTF8_FIRST_BYTE FITS_IN_8_BITS FLAGS +syn keyword xsMacro FLEXFILENAMES FOLDEQ_LOCALE FOLDEQ_S1_ALREADY_FOLDED +syn keyword xsMacro FOLDEQ_S1_FOLDS_SANE FOLDEQ_S2_ALREADY_FOLDED +syn keyword xsMacro FOLDEQ_S2_FOLDS_SANE FOLDEQ_UTF8_NOMIX_ASCII +syn keyword xsMacro FOLD_FLAGS_FULL FOLD_FLAGS_LOCALE FOLD_FLAGS_NOMIX_ASCII +syn keyword xsMacro FOR FORMAT FORMLBRACK FORMRBRACK FPTR2DPTR FP_PINF +syn keyword xsMacro FP_QNAN FREETMPS FREE_THREAD_KEY FSEEKSIZE FUNC FUNC0 +syn keyword xsMacro FUNC0OP FUNC0SUB FUNC1 FUNCMETH FUNCTION__ F_atan2_amg +syn keyword xsMacro F_cos_amg F_exp_amg F_log_amg F_pow_amg F_sin_amg +syn keyword xsMacro F_sqrt_amg Fflush FmLINES FreeOp Fstat GCB_ENUM_COUNT +syn keyword xsMacro GCC_DIAG_IGNORE GCC_DIAG_PRAGMA GCC_DIAG_RESTORE +syn keyword xsMacro GDBMNDBM_H_USES_PROTOTYPES GETATARGET GETGRENT_R_PROTO +syn keyword xsMacro GETGRGID_R_PROTO GETGRNAM_R_PROTO GETHOSTBYADDR_R_PROTO +syn keyword xsMacro GETHOSTBYNAME_R_PROTO GETHOSTENT_R_PROTO GETLOGIN_R_PROTO +syn keyword xsMacro GETNETBYADDR_R_PROTO GETNETBYNAME_R_PROTO +syn keyword xsMacro GETNETENT_R_PROTO GETPROTOBYNAME_R_PROTO +syn keyword xsMacro GETPROTOBYNUMBER_R_PROTO GETPROTOENT_R_PROTO +syn keyword xsMacro GETPWENT_R_PROTO GETPWNAM_R_PROTO GETPWUID_R_PROTO +syn keyword xsMacro GETSERVBYNAME_R_PROTO GETSERVBYPORT_R_PROTO +syn keyword xsMacro GETSERVENT_R_PROTO GETSPNAM_R_PROTO GETTARGET +syn keyword xsMacro GETTARGETSTACKED GET_RE_DEBUG_FLAGS +syn keyword xsMacro GET_RE_DEBUG_FLAGS_DECL GIMME GIMME_V GIVEN +syn keyword xsMacro GLOBAL_PAT_MOD GMTIME_MAX GMTIME_MIN GMTIME_R +syn keyword xsMacro GMTIME_R_PROTO GOSTART GOSUB GPOS GPf_ALIASED_SV +syn keyword xsMacro GRAMBARESTMT GRAMBLOCK GRAMEXPR GRAMFULLSTMT GRAMPROG +syn keyword xsMacro GRAMSTMTSEQ GREEK_CAPITAL_LETTER_IOTA_UTF8 +syn keyword xsMacro GREEK_CAPITAL_LETTER_MU GREEK_SMALL_LETTER_MU +syn keyword xsMacro GREEK_SMALL_LETTER_MU_UTF8 GROK_NUMERIC_RADIX GROUPP +syn keyword xsMacro GRPASSWD GV_ADD GV_ADDMG GV_ADDMULTI GV_ADDWARN +syn keyword xsMacro GV_AUTOLOAD GV_AUTOLOAD_ISMETHOD GV_CACHE_ONLY GV_CROAK +syn keyword xsMacro GV_NOADD_MASK GV_NOADD_NOINIT GV_NOEXPAND GV_NOINIT +syn keyword xsMacro GV_NOTQUAL GV_NO_SVGMAGIC GV_SUPER GVf_ASSUMECV +syn keyword xsMacro GVf_IMPORTED GVf_IMPORTED_AV GVf_IMPORTED_CV +syn keyword xsMacro GVf_IMPORTED_HV GVf_IMPORTED_SV GVf_INTRO GVf_MULTI +syn keyword xsMacro Gconvert Gid_t_f Gid_t_sign Gid_t_size GvALIASED_SV +syn keyword xsMacro GvALIASED_SV_off GvALIASED_SV_on GvASSIGN_GENERATION +syn keyword xsMacro GvASSIGN_GENERATION_set GvASSUMECV GvASSUMECV_off +syn keyword xsMacro GvASSUMECV_on GvAV GvAVn GvCV GvCVGEN GvCV_set GvCVu +syn keyword xsMacro GvEGV GvEGVx GvENAME GvENAMELEN GvENAMEUTF8 GvENAME_HEK +syn keyword xsMacro GvESTASH GvFILE GvFILEGV GvFILE_HEK GvFILEx GvFLAGS +syn keyword xsMacro GvFORM GvGP GvGPFLAGS GvGP_set GvHV GvHVn GvIMPORTED +syn keyword xsMacro GvIMPORTED_AV GvIMPORTED_AV_off GvIMPORTED_AV_on +syn keyword xsMacro GvIMPORTED_CV GvIMPORTED_CV_off GvIMPORTED_CV_on +syn keyword xsMacro GvIMPORTED_HV GvIMPORTED_HV_off GvIMPORTED_HV_on +syn keyword xsMacro GvIMPORTED_SV GvIMPORTED_SV_off GvIMPORTED_SV_on +syn keyword xsMacro GvIMPORTED_off GvIMPORTED_on GvINTRO GvINTRO_off +syn keyword xsMacro GvINTRO_on GvIN_PAD GvIN_PAD_off GvIN_PAD_on GvIO GvIOn +syn keyword xsMacro GvIOp GvLINE GvMULTI GvMULTI_off GvMULTI_on GvNAME +syn keyword xsMacro GvNAMELEN GvNAMELEN_get GvNAMEUTF8 GvNAME_HEK GvNAME_get +syn keyword xsMacro GvREFCNT GvSTASH GvSV GvSVn GvXPVGV Gv_AMG HANDY_H +syn keyword xsMacro HASATTRIBUTE_DEPRECATED HASATTRIBUTE_FORMAT +syn keyword xsMacro HASATTRIBUTE_MALLOC HASATTRIBUTE_NONNULL +syn keyword xsMacro HASATTRIBUTE_NORETURN HASATTRIBUTE_PURE +syn keyword xsMacro HASATTRIBUTE_UNUSED HASATTRIBUTE_WARN_UNUSED_RESULT +syn keyword xsMacro HASCONST HASHBRACK HASVOLATILE HAS_ACCESS HAS_ACOSH +syn keyword xsMacro HAS_ALARM HAS_ASINH HAS_ATANH HAS_ATOLL HAS_BACKTRACE +syn keyword xsMacro HAS_BCMP HAS_BCOPY HAS_BOOL HAS_BUILTIN_CHOOSE_EXPR +syn keyword xsMacro HAS_BUILTIN_EXPECT HAS_BZERO HAS_C99 +syn keyword xsMacro HAS_C99_VARIADIC_MACROS HAS_CBRT HAS_CHOWN HAS_CHROOT +syn keyword xsMacro HAS_CLEARENV HAS_COPYSIGN HAS_COPYSIGNL HAS_CRYPT +syn keyword xsMacro HAS_CTERMID HAS_CUSERID HAS_DBL_DIG HAS_DBMINIT_PROTO +syn keyword xsMacro HAS_DIFFTIME HAS_DIRFD HAS_DLADDR HAS_DLERROR +syn keyword xsMacro HAS_DRAND48_PROTO HAS_DUP2 HAS_EACCESS HAS_ENDGRENT +syn keyword xsMacro HAS_ENDHOSTENT HAS_ENDNETENT HAS_ENDPROTOENT HAS_ENDPWENT +syn keyword xsMacro HAS_ENDSERVENT HAS_ERF HAS_ERFC HAS_EXP2 HAS_EXPM1 +syn keyword xsMacro HAS_FCHDIR HAS_FCHMOD HAS_FCHOWN HAS_FCNTL HAS_FDIM +syn keyword xsMacro HAS_FD_SET HAS_FEGETROUND HAS_FGETPOS HAS_FINITE +syn keyword xsMacro HAS_FINITEL HAS_FLOCK HAS_FLOCK_PROTO HAS_FMA HAS_FMAX +syn keyword xsMacro HAS_FMIN HAS_FORK HAS_FPATHCONF HAS_FPCLASSIFY HAS_FREXPL +syn keyword xsMacro HAS_FSEEKO HAS_FSETPOS HAS_FSTATFS HAS_FSTATVFS HAS_FSYNC +syn keyword xsMacro HAS_FTELLO HAS_FUTIMES HAS_GETADDRINFO HAS_GETCWD +syn keyword xsMacro HAS_GETGRENT HAS_GETGROUPS HAS_GETHOSTBYADDR +syn keyword xsMacro HAS_GETHOSTBYNAME HAS_GETHOSTENT HAS_GETHOSTNAME +syn keyword xsMacro HAS_GETHOST_PROTOS HAS_GETITIMER HAS_GETLOGIN +syn keyword xsMacro HAS_GETMNTENT HAS_GETNAMEINFO HAS_GETNETBYADDR +syn keyword xsMacro HAS_GETNETBYNAME HAS_GETNETENT HAS_GETNET_PROTOS +syn keyword xsMacro HAS_GETPAGESIZE HAS_GETPGID HAS_GETPGRP HAS_GETPPID +syn keyword xsMacro HAS_GETPRIORITY HAS_GETPROTOBYNAME HAS_GETPROTOBYNUMBER +syn keyword xsMacro HAS_GETPROTOENT HAS_GETPROTO_PROTOS HAS_GETPWENT +syn keyword xsMacro HAS_GETSERVBYNAME HAS_GETSERVBYPORT HAS_GETSERVENT +syn keyword xsMacro HAS_GETSERV_PROTOS HAS_GETSPNAM HAS_GETTIMEOFDAY +syn keyword xsMacro HAS_GNULIBC HAS_GROUP HAS_HASMNTOPT HAS_HTONL HAS_HTONS +syn keyword xsMacro HAS_HYPOT HAS_ILOGB HAS_ILOGBL HAS_INETNTOP HAS_INETPTON +syn keyword xsMacro HAS_INET_ATON HAS_INT64_T HAS_IOCTL HAS_IPV6_MREQ +syn keyword xsMacro HAS_IP_MREQ HAS_IP_MREQ_SOURCE HAS_ISASCII HAS_ISBLANK +syn keyword xsMacro HAS_ISFINITE HAS_ISINF HAS_ISINFL HAS_ISNAN HAS_ISNANL +syn keyword xsMacro HAS_ISNORMAL HAS_J0 HAS_J0L HAS_KILL HAS_KILLPG +syn keyword xsMacro HAS_LCHOWN HAS_LC_MONETARY_2008 HAS_LDBL_DIG HAS_LDEXPL +syn keyword xsMacro HAS_LGAMMA HAS_LGAMMA_R HAS_LINK HAS_LLRINT HAS_LLRINTL +syn keyword xsMacro HAS_LLROUND HAS_LLROUNDL HAS_LOCALECONV HAS_LOCKF +syn keyword xsMacro HAS_LOG1P HAS_LOG2 HAS_LOGB HAS_LONG_DOUBLE HAS_LONG_LONG +syn keyword xsMacro HAS_LRINT HAS_LRINTL HAS_LROUND HAS_LROUNDL +syn keyword xsMacro HAS_LSEEK_PROTO HAS_LSTAT HAS_MADVISE HAS_MBLEN +syn keyword xsMacro HAS_MBSTOWCS HAS_MBTOWC HAS_MEMCHR HAS_MEMCMP HAS_MEMCPY +syn keyword xsMacro HAS_MEMMOVE HAS_MEMSET HAS_MKDIR HAS_MKDTEMP HAS_MKFIFO +syn keyword xsMacro HAS_MKSTEMP HAS_MKSTEMPS HAS_MKTIME HAS_MMAP HAS_MODFL +syn keyword xsMacro HAS_MODFL_PROTO HAS_MPROTECT HAS_MSG HAS_MSG_CTRUNC +syn keyword xsMacro HAS_MSG_DONTROUTE HAS_MSG_OOB HAS_MSG_PEEK HAS_MSG_PROXY +syn keyword xsMacro HAS_MSYNC HAS_MUNMAP HAS_NAN HAS_NEARBYINT HAS_NEXTAFTER +syn keyword xsMacro HAS_NEXTTOWARD HAS_NICE HAS_NL_LANGINFO HAS_NTOHL +syn keyword xsMacro HAS_NTOHS HAS_OPEN3 HAS_PASSWD HAS_PATHCONF HAS_PAUSE +syn keyword xsMacro HAS_PIPE HAS_POLL HAS_PRCTL HAS_PRCTL_SET_NAME +syn keyword xsMacro HAS_PROCSELFEXE HAS_PTHREAD_ATFORK +syn keyword xsMacro HAS_PTHREAD_ATTR_SETSCOPE +syn keyword xsMacro HAS_PTHREAD_UNCHECKED_GETSPECIFIC_NP HAS_PTHREAD_YIELD +syn keyword xsMacro HAS_PTRDIFF_T HAS_READDIR HAS_READLINK HAS_READV +syn keyword xsMacro HAS_RECVMSG HAS_REGCOMP HAS_REMAINDER HAS_REMQUO +syn keyword xsMacro HAS_RENAME HAS_REWINDDIR HAS_RINT HAS_RMDIR HAS_ROUND +syn keyword xsMacro HAS_SANE_MEMCMP HAS_SBRK_PROTO HAS_SCALBN HAS_SCALBNL +syn keyword xsMacro HAS_SCHED_YIELD HAS_SCM_RIGHTS HAS_SEEKDIR HAS_SELECT +syn keyword xsMacro HAS_SEM HAS_SENDMSG HAS_SETEGID HAS_SETEUID HAS_SETGRENT +syn keyword xsMacro HAS_SETGROUPS HAS_SETHOSTENT HAS_SETITIMER HAS_SETLINEBUF +syn keyword xsMacro HAS_SETLOCALE HAS_SETNETENT HAS_SETPGID HAS_SETPGRP +syn keyword xsMacro HAS_SETPRIORITY HAS_SETPROTOENT HAS_SETPWENT HAS_SETREGID +syn keyword xsMacro HAS_SETRESGID HAS_SETRESUID HAS_SETREUID HAS_SETSERVENT +syn keyword xsMacro HAS_SETSID HAS_SETVBUF HAS_SHM HAS_SHMAT_PROTOTYPE +syn keyword xsMacro HAS_SIGACTION HAS_SIGNBIT HAS_SIGPROCMASK HAS_SIGSETJMP +syn keyword xsMacro HAS_SIN6_SCOPE_ID HAS_SKIP_LOCALE_INIT HAS_SNPRINTF +syn keyword xsMacro HAS_SOCKADDR_IN6 HAS_SOCKATMARK HAS_SOCKATMARK_PROTO +syn keyword xsMacro HAS_SOCKET HAS_SQRTL HAS_STAT HAS_STATIC_INLINE +syn keyword xsMacro HAS_STRCHR HAS_STRCOLL HAS_STRFTIME HAS_STRTOD HAS_STRTOL +syn keyword xsMacro HAS_STRTOLD HAS_STRTOLL HAS_STRTOQ HAS_STRTOUL +syn keyword xsMacro HAS_STRTOULL HAS_STRTOUQ HAS_STRUCT_CMSGHDR +syn keyword xsMacro HAS_STRUCT_MSGHDR HAS_STRUCT_STATFS +syn keyword xsMacro HAS_STRUCT_STATFS_F_FLAGS HAS_STRXFRM HAS_SYMLINK +syn keyword xsMacro HAS_SYSCALL HAS_SYSCALL_PROTO HAS_SYSCONF HAS_SYSTEM +syn keyword xsMacro HAS_SYS_ERRLIST HAS_TCGETPGRP HAS_TCSETPGRP HAS_TELLDIR +syn keyword xsMacro HAS_TELLDIR_PROTO HAS_TGAMMA HAS_TIME HAS_TIMEGM +syn keyword xsMacro HAS_TIMES HAS_TM_TM_GMTOFF HAS_TM_TM_ZONE HAS_TRUNC +syn keyword xsMacro HAS_TRUNCATE HAS_TRUNCL HAS_TZNAME HAS_UALARM HAS_UMASK +syn keyword xsMacro HAS_UNAME HAS_UNSETENV HAS_USLEEP HAS_USLEEP_PROTO +syn keyword xsMacro HAS_USTAT HAS_UTIME HAS_VPRINTF HAS_VSNPRINTF HAS_WAIT +syn keyword xsMacro HAS_WAIT4 HAS_WAITPID HAS_WCSCMP HAS_WCSTOMBS HAS_WCSXFRM +syn keyword xsMacro HAS_WCTOMB HAS_WRITEV HEK_BASESIZE HEK_FLAGS HEK_HASH +syn keyword xsMacro HEK_KEY HEK_LEN HEK_UTF8 HEK_UTF8_off HEK_UTF8_on +syn keyword xsMacro HEK_WASUTF8 HEK_WASUTF8_off HEK_WASUTF8_on HEKf HEKf256 +syn keyword xsMacro HEKfARG HE_SVSLOT HEf_SVKEY HINTS_REFCNT_INIT +syn keyword xsMacro HINTS_REFCNT_LOCK HINTS_REFCNT_TERM HINTS_REFCNT_UNLOCK +syn keyword xsMacro HINT_BLOCK_SCOPE HINT_BYTES HINT_EXPLICIT_STRICT_REFS +syn keyword xsMacro HINT_EXPLICIT_STRICT_SUBS HINT_EXPLICIT_STRICT_VARS +syn keyword xsMacro HINT_FEATURE_MASK HINT_FEATURE_SHIFT HINT_FILETEST_ACCESS +syn keyword xsMacro HINT_INTEGER HINT_LEXICAL_IO_IN HINT_LEXICAL_IO_OUT +syn keyword xsMacro HINT_LOCALE HINT_LOCALE_PARTIAL HINT_LOCALIZE_HH +syn keyword xsMacro HINT_NEW_BINARY HINT_NEW_FLOAT HINT_NEW_INTEGER +syn keyword xsMacro HINT_NEW_RE HINT_NEW_STRING HINT_NO_AMAGIC HINT_RE_EVAL +syn keyword xsMacro HINT_RE_FLAGS HINT_RE_TAINT HINT_SORT_MERGESORT +syn keyword xsMacro HINT_SORT_QUICKSORT HINT_SORT_SORT_BITS HINT_SORT_STABLE +syn keyword xsMacro HINT_STRICT_REFS HINT_STRICT_SUBS HINT_STRICT_VARS +syn keyword xsMacro HINT_UNI_8_BIT HINT_UTF8 HS_APIVERLEN_MAX HS_CXT +syn keyword xsMacro HS_GETAPIVERLEN HS_GETINTERPSIZE HS_GETXSVERLEN HS_KEY +syn keyword xsMacro HS_KEYp HS_XSVERLEN_MAX HSf_IMP_CXT HSf_NOCHK HSf_POPMARK +syn keyword xsMacro HSf_SETXSUBFN HSm_APIVERLEN HSm_INTRPSIZE HSm_KEY_MATCH +syn keyword xsMacro HSm_XSVERLEN HV_DELETE HV_DISABLE_UVAR_XKEY +syn keyword xsMacro HV_FETCH_EMPTY_HE HV_FETCH_ISEXISTS HV_FETCH_ISSTORE +syn keyword xsMacro HV_FETCH_JUST_SV HV_FETCH_LVALUE +syn keyword xsMacro HV_ITERNEXT_WANTPLACEHOLDERS HV_NAME_SETALL +syn keyword xsMacro HVhek_ENABLEHVKFLAGS HVhek_FREEKEY HVhek_KEYCANONICAL +syn keyword xsMacro HVhek_MASK HVhek_PLACEHOLD HVhek_UNSHARED HVhek_UTF8 +syn keyword xsMacro HVhek_WASUTF8 HVrhek_IV HVrhek_PV HVrhek_PV_UTF8 +syn keyword xsMacro HVrhek_UV HVrhek_delete HVrhek_typemask HVrhek_undef +syn keyword xsMacro HYPHEN_UTF8 H_EBCDIC_TABLES H_PERL H_REGCHARCLASS +syn keyword xsMacro H_UNICODE_CONSTANTS H_UTF8 HeHASH HeKEY HeKEY_hek +syn keyword xsMacro HeKEY_sv HeKFLAGS HeKLEN HeKLEN_UTF8 HeKUTF8 HeKWASUTF8 +syn keyword xsMacro HeNEXT HePV HeSVKEY HeSVKEY_force HeSVKEY_set HeUTF8 +syn keyword xsMacro HeVAL HvAMAGIC HvAMAGIC_off HvAMAGIC_on HvARRAY HvAUX +syn keyword xsMacro HvAUXf_NO_DEREF HvAUXf_SCAN_STASH HvEITER HvEITER_get +syn keyword xsMacro HvEITER_set HvENAME HvENAMELEN HvENAMELEN_get HvENAMEUTF8 +syn keyword xsMacro HvENAME_HEK HvENAME_HEK_NN HvENAME_get HvFILL HvHASKFLAGS +syn keyword xsMacro HvHASKFLAGS_off HvHASKFLAGS_on HvKEYS HvLASTRAND_get +syn keyword xsMacro HvLAZYDEL HvLAZYDEL_off HvLAZYDEL_on HvMAX HvMROMETA +syn keyword xsMacro HvNAME HvNAMELEN HvNAMELEN_get HvNAMEUTF8 HvNAME_HEK +syn keyword xsMacro HvNAME_HEK_NN HvNAME_get HvPLACEHOLDERS +syn keyword xsMacro HvPLACEHOLDERS_get HvPLACEHOLDERS_set HvRAND_get HvRITER +syn keyword xsMacro HvRITER_get HvRITER_set HvSHAREKEYS HvSHAREKEYS_off +syn keyword xsMacro HvSHAREKEYS_on HvTOTALKEYS HvUSEDKEYS I16SIZE I16TYPE +syn keyword xsMacro I16_MAX I16_MIN I32SIZE I32TYPE I32_MAX I32_MAX_P1 +syn keyword xsMacro I32_MIN I64SIZE I64TYPE I8SIZE I8TYPE I8_TO_NATIVE +syn keyword xsMacro I8_TO_NATIVE_UTF8 IF IFMATCH IFMATCH_A IFMATCH_A_fail +syn keyword xsMacro IFTHEN IGNORE_PAT_MOD ILLEGAL_UTF8_BYTE INIT INIT_THREADS +syn keyword xsMacro INIT_TRACK_MEMPOOL INSUBP INT2PTR INT32_MIN INT64_C +syn keyword xsMacro INT64_MIN INTSIZE INT_64_T INT_PAT_MODS IN_BYTES +syn keyword xsMacro IN_ENCODING IN_LC IN_LC_ALL_COMPILETIME IN_LC_ALL_RUNTIME +syn keyword xsMacro IN_LC_COMPILETIME IN_LC_PARTIAL_COMPILETIME +syn keyword xsMacro IN_LC_PARTIAL_RUNTIME IN_LC_RUNTIME IN_LOCALE +syn keyword xsMacro IN_LOCALE_COMPILETIME IN_LOCALE_RUNTIME +syn keyword xsMacro IN_PERL_COMPILETIME IN_PERL_RUNTIME IN_SOME_LOCALE_FORM +syn keyword xsMacro IN_SOME_LOCALE_FORM_COMPILETIME +syn keyword xsMacro IN_SOME_LOCALE_FORM_RUNTIME IN_UNI_8_BIT +syn keyword xsMacro IN_UTF8_CTYPE_LOCALE IOCPARM_LEN IOf_ARGV IOf_DIDTOP +syn keyword xsMacro IOf_FAKE_DIRP IOf_FLUSH IOf_NOLINE IOf_START IOf_UNTAINT +syn keyword xsMacro ISA_VERSION_OBJ IS_ANYOF_TRIE +syn keyword xsMacro IS_NUMBER_GREATER_THAN_UV_MAX IS_NUMBER_INFINITY +syn keyword xsMacro IS_NUMBER_IN_UV IS_NUMBER_NAN IS_NUMBER_NEG +syn keyword xsMacro IS_NUMBER_NOT_INT IS_NUMBER_TRAILING IS_NUMERIC_RADIX +syn keyword xsMacro IS_PADCONST IS_PADGV IS_SAFE_PATHNAME IS_SAFE_SYSCALL +syn keyword xsMacro IS_TRIE_AC IS_UTF8_CHAR IS_UTF8_CHAR_FAST IVSIZE IVTYPE +syn keyword xsMacro IV_DIG IV_MAX IV_MAX_P1 IV_MIN I_32 I_ARPA_INET I_ASSERT +syn keyword xsMacro I_BFD I_CRYPT I_DBM I_DIRENT I_DLFCN I_EXECINFO I_FENV +syn keyword xsMacro I_FLOAT I_GDBM I_GDBMNDBM I_GRP I_INTTYPES I_LANGINFO +syn keyword xsMacro I_LIMITS I_LOCALE I_MATH I_MNTENT I_NETDB I_NETINET_IN +syn keyword xsMacro I_NETINET_TCP I_POLL I_PTHREAD I_PWD I_QUADMATH I_SHADOW +syn keyword xsMacro I_STDARG I_STDBOOL I_STDDEF I_STDINT I_STDLIB I_STRING +syn keyword xsMacro I_SYSLOG I_SYSUIO I_SYSUTSNAME I_SYS_DIR I_SYS_FILE +syn keyword xsMacro I_SYS_IOCTL I_SYS_MOUNT I_SYS_PARAM I_SYS_POLL +syn keyword xsMacro I_SYS_RESOURCE I_SYS_SELECT I_SYS_STAT I_SYS_STATFS +syn keyword xsMacro I_SYS_STATVFS I_SYS_TIME I_SYS_TIMES I_SYS_TYPES I_SYS_UN +syn keyword xsMacro I_SYS_VFS I_SYS_WAIT I_TERMIOS I_TIME I_UNISTD I_USTAT +syn keyword xsMacro I_UTIME I_V I_VALUES IoANY IoBOTTOM_GV IoBOTTOM_NAME +syn keyword xsMacro IoDIRP IoFLAGS IoFMT_GV IoFMT_NAME IoIFP IoLINES +syn keyword xsMacro IoLINES_LEFT IoOFP IoPAGE IoPAGE_LEN IoTOP_GV IoTOP_NAME +syn keyword xsMacro IoTYPE IoTYPE_APPEND IoTYPE_CLOSED IoTYPE_IMPLICIT +syn keyword xsMacro IoTYPE_NUMERIC IoTYPE_PIPE IoTYPE_RDONLY IoTYPE_RDWR +syn keyword xsMacro IoTYPE_SOCKET IoTYPE_STD IoTYPE_WRONLY IsSet +syn keyword xsMacro JMPENV_BOOTSTRAP JMPENV_JUMP JMPENV_POP JMPENV_PUSH JOIN +syn keyword xsMacro KEEPCOPY_PAT_MOD KEEPCOPY_PAT_MODS KEEPS KEEPS_next +syn keyword xsMacro KEEPS_next_fail KELVIN_SIGN KEYWORD_PLUGIN_DECLINE +syn keyword xsMacro KEYWORD_PLUGIN_EXPR KEYWORD_PLUGIN_STMT KEY_AUTOLOAD +syn keyword xsMacro KEY_BEGIN KEY_CHECK KEY_DESTROY KEY_END KEY_INIT KEY_NULL +syn keyword xsMacro KEY_UNITCHECK KEY___DATA__ KEY___END__ KEY___FILE__ +syn keyword xsMacro KEY___LINE__ KEY___PACKAGE__ KEY___SUB__ KEY_abs +syn keyword xsMacro KEY_accept KEY_alarm KEY_and KEY_atan2 KEY_bind +syn keyword xsMacro KEY_binmode KEY_bless KEY_break KEY_caller KEY_chdir +syn keyword xsMacro KEY_chmod KEY_chomp KEY_chop KEY_chown KEY_chr KEY_chroot +syn keyword xsMacro KEY_close KEY_closedir KEY_cmp KEY_connect KEY_continue +syn keyword xsMacro KEY_cos KEY_crypt KEY_dbmclose KEY_dbmopen KEY_default +syn keyword xsMacro KEY_defined KEY_delete KEY_die KEY_do KEY_dump KEY_each +syn keyword xsMacro KEY_else KEY_elsif KEY_endgrent KEY_endhostent +syn keyword xsMacro KEY_endnetent KEY_endprotoent KEY_endpwent KEY_endservent +syn keyword xsMacro KEY_eof KEY_eq KEY_eval KEY_evalbytes KEY_exec KEY_exists +syn keyword xsMacro KEY_exit KEY_exp KEY_fc KEY_fcntl KEY_fileno KEY_flock +syn keyword xsMacro KEY_for KEY_foreach KEY_fork KEY_format KEY_formline +syn keyword xsMacro KEY_ge KEY_getc KEY_getgrent KEY_getgrgid KEY_getgrnam +syn keyword xsMacro KEY_gethostbyaddr KEY_gethostbyname KEY_gethostent +syn keyword xsMacro KEY_getlogin KEY_getnetbyaddr KEY_getnetbyname +syn keyword xsMacro KEY_getnetent KEY_getpeername KEY_getpgrp KEY_getppid +syn keyword xsMacro KEY_getpriority KEY_getprotobyname KEY_getprotobynumber +syn keyword xsMacro KEY_getprotoent KEY_getpwent KEY_getpwnam KEY_getpwuid +syn keyword xsMacro KEY_getservbyname KEY_getservbyport KEY_getservent +syn keyword xsMacro KEY_getsockname KEY_getsockopt KEY_given KEY_glob +syn keyword xsMacro KEY_gmtime KEY_goto KEY_grep KEY_gt KEY_hex KEY_if +syn keyword xsMacro KEY_index KEY_int KEY_ioctl KEY_join KEY_keys KEY_kill +syn keyword xsMacro KEY_last KEY_lc KEY_lcfirst KEY_le KEY_length KEY_link +syn keyword xsMacro KEY_listen KEY_local KEY_localtime KEY_lock KEY_log +syn keyword xsMacro KEY_lstat KEY_lt KEY_m KEY_map KEY_mkdir KEY_msgctl +syn keyword xsMacro KEY_msgget KEY_msgrcv KEY_msgsnd KEY_my KEY_ne KEY_next +syn keyword xsMacro KEY_no KEY_not KEY_oct KEY_open KEY_opendir KEY_or +syn keyword xsMacro KEY_ord KEY_our KEY_pack KEY_package KEY_pipe KEY_pop +syn keyword xsMacro KEY_pos KEY_print KEY_printf KEY_prototype KEY_push KEY_q +syn keyword xsMacro KEY_qq KEY_qr KEY_quotemeta KEY_qw KEY_qx KEY_rand +syn keyword xsMacro KEY_read KEY_readdir KEY_readline KEY_readlink +syn keyword xsMacro KEY_readpipe KEY_recv KEY_redo KEY_ref KEY_rename +syn keyword xsMacro KEY_require KEY_reset KEY_return KEY_reverse +syn keyword xsMacro KEY_rewinddir KEY_rindex KEY_rmdir KEY_s KEY_say +syn keyword xsMacro KEY_scalar KEY_seek KEY_seekdir KEY_select KEY_semctl +syn keyword xsMacro KEY_semget KEY_semop KEY_send KEY_setgrent KEY_sethostent +syn keyword xsMacro KEY_setnetent KEY_setpgrp KEY_setpriority KEY_setprotoent +syn keyword xsMacro KEY_setpwent KEY_setservent KEY_setsockopt KEY_shift +syn keyword xsMacro KEY_shmctl KEY_shmget KEY_shmread KEY_shmwrite +syn keyword xsMacro KEY_shutdown KEY_sin KEY_sleep KEY_socket KEY_socketpair +syn keyword xsMacro KEY_sort KEY_splice KEY_split KEY_sprintf KEY_sqrt +syn keyword xsMacro KEY_srand KEY_stat KEY_state KEY_study KEY_sub KEY_substr +syn keyword xsMacro KEY_symlink KEY_syscall KEY_sysopen KEY_sysread +syn keyword xsMacro KEY_sysseek KEY_system KEY_syswrite KEY_tell KEY_telldir +syn keyword xsMacro KEY_tie KEY_tied KEY_time KEY_times KEY_tr KEY_truncate +syn keyword xsMacro KEY_uc KEY_ucfirst KEY_umask KEY_undef KEY_unless +syn keyword xsMacro KEY_unlink KEY_unpack KEY_unshift KEY_untie KEY_until +syn keyword xsMacro KEY_use KEY_utime KEY_values KEY_vec KEY_wait KEY_waitpid +syn keyword xsMacro KEY_wantarray KEY_warn KEY_when KEY_while KEY_write KEY_x +syn keyword xsMacro KEY_xor KEY_y LABEL LATIN1_TO_NATIVE +syn keyword xsMacro LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE +syn keyword xsMacro LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE +syn keyword xsMacro LATIN_CAPITAL_LETTER_SHARP_S +syn keyword xsMacro LATIN_CAPITAL_LETTER_SHARP_S_UTF8 +syn keyword xsMacro LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS +syn keyword xsMacro LATIN_SMALL_LETTER_A_WITH_RING_ABOVE +syn keyword xsMacro LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE +syn keyword xsMacro LATIN_SMALL_LETTER_LONG_S LATIN_SMALL_LETTER_LONG_S_UTF8 +syn keyword xsMacro LATIN_SMALL_LETTER_SHARP_S +syn keyword xsMacro LATIN_SMALL_LETTER_SHARP_S_NATIVE +syn keyword xsMacro LATIN_SMALL_LETTER_Y_WITH_DIAERESIS +syn keyword xsMacro LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE +syn keyword xsMacro LATIN_SMALL_LIGATURE_LONG_S_T +syn keyword xsMacro LATIN_SMALL_LIGATURE_LONG_S_T_UTF8 +syn keyword xsMacro LATIN_SMALL_LIGATURE_ST LATIN_SMALL_LIGATURE_ST_UTF8 +syn keyword xsMacro LDBL_DIG LEAVE LEAVESUB LEAVE_SCOPE LEAVE_with_name +syn keyword xsMacro LEX_DONT_CLOSE_RSFP LEX_EVALBYTES LEX_IGNORE_UTF8_HINTS +syn keyword xsMacro LEX_KEEP_PREVIOUS LEX_NOTPARSING LEX_START_COPIED +syn keyword xsMacro LEX_START_FLAGS LEX_START_SAME_FILTER LEX_STUFF_UTF8 +syn keyword xsMacro LF_NATIVE LIBERAL LIBM_LIB_VERSION LIB_INVARG LIKELY +syn keyword xsMacro LINKLIST LNBREAK LOADED_FILE_PROBE LOADING_FILE_PROBE +syn keyword xsMacro LOCAL LOCALE_PAT_MOD LOCALE_PAT_MODS LOCALTIME_MAX +syn keyword xsMacro LOCALTIME_MIN LOCALTIME_R LOCALTIME_R_PROTO +syn keyword xsMacro LOCAL_PATCH_COUNT LOCK_DOLLARZERO_MUTEX +syn keyword xsMacro LOCK_LC_NUMERIC_STANDARD LOCK_NUMERIC_STANDARD LOC_SED +syn keyword xsMacro LOGICAL LONGDOUBLE_BIG_ENDIAN LONGDOUBLE_DOUBLEDOUBLE +syn keyword xsMacro LONGDOUBLE_LITTLE_ENDIAN LONGDOUBLE_X86_80_BIT LONGJMP +syn keyword xsMacro LONGLONGSIZE LONGSIZE LONG_DOUBLEKIND LONG_DOUBLESIZE +syn keyword xsMacro LONG_DOUBLE_EQUALS_DOUBLE LONG_DOUBLE_IS_DOUBLE +syn keyword xsMacro LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN +syn keyword xsMacro LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN +syn keyword xsMacro LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN +syn keyword xsMacro LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN +syn keyword xsMacro LONG_DOUBLE_IS_UNKNOWN_FORMAT +syn keyword xsMacro LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN +syn keyword xsMacro LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN LOOPEX +syn keyword xsMacro LOOP_PAT_MODS LSEEKSIZE LSTOP LSTOPSUB LVRET L_R_TZSET +syn keyword xsMacro LvFLAGS LvSTARGOFF LvTARG LvTARGLEN LvTARGOFF LvTYPE +syn keyword xsMacro MALLOC_CHECK_TAINT MALLOC_CHECK_TAINT2 MALLOC_CTL_H +syn keyword xsMacro MALLOC_INIT MALLOC_OVERHEAD MALLOC_TERM +syn keyword xsMacro MALLOC_TOO_LATE_FOR MARKPOINT MARKPOINT_next +syn keyword xsMacro MARKPOINT_next_fail MASK MATCHOP MAXARG MAXO MAXPATHLEN +syn keyword xsMacro MAXSYSFD MAX_CHARSET_NAME_LENGTH MAX_FEATURE_LEN +syn keyword xsMacro MAX_PORTABLE_UTF8_TWO_BYTE +syn keyword xsMacro MAX_PRINT_A_FOR_USE_ONLY_BY_REGCOMP_DOT_C +syn keyword xsMacro MAX_RECURSE_EVAL_NOCHANGE_DEPTH MAX_UTF8_TWO_BYTE +syn keyword xsMacro MAYBE_DEREF_GV MAYBE_DEREF_GV_flags MAYBE_DEREF_GV_nomg +syn keyword xsMacro MBOL MB_CUR_MAX MDEREF_ACTION_MASK MDEREF_AV_gvav_aelem +syn keyword xsMacro MDEREF_AV_gvsv_vivify_rv2av_aelem MDEREF_AV_padav_aelem +syn keyword xsMacro MDEREF_AV_padsv_vivify_rv2av_aelem +syn keyword xsMacro MDEREF_AV_pop_rv2av_aelem MDEREF_AV_vivify_rv2av_aelem +syn keyword xsMacro MDEREF_FLAG_last MDEREF_HV_gvhv_helem +syn keyword xsMacro MDEREF_HV_gvsv_vivify_rv2hv_helem MDEREF_HV_padhv_helem +syn keyword xsMacro MDEREF_HV_padsv_vivify_rv2hv_helem +syn keyword xsMacro MDEREF_HV_pop_rv2hv_helem MDEREF_HV_vivify_rv2hv_helem +syn keyword xsMacro MDEREF_INDEX_MASK MDEREF_INDEX_const MDEREF_INDEX_gvsv +syn keyword xsMacro MDEREF_INDEX_none MDEREF_INDEX_padsv MDEREF_MASK +syn keyword xsMacro MDEREF_SHIFT MDEREF_reload MEMBER_TO_FPTR MEM_ALIGNBYTES +syn keyword xsMacro MEM_LOG_ALLOC MEM_LOG_FREE MEM_LOG_REALLOC MEM_SIZE +syn keyword xsMacro MEM_SIZE_MAX MEM_WRAP_CHECK MEM_WRAP_CHECK_ +syn keyword xsMacro MEM_WRAP_CHECK_1 MEM_WRAP_CHECK_2 MEOL METHOD MEXTEND +syn keyword xsMacro MGf_BYTES MGf_COPY MGf_DUP MGf_GSKIP MGf_LOCAL +syn keyword xsMacro MGf_MINMATCH MGf_PERSIST MGf_REFCOUNTED MGf_REQUIRE_GV +syn keyword xsMacro MGf_TAINTEDDIR MICRO_SIGN MICRO_SIGN_NATIVE MINMOD +syn keyword xsMacro MJD_OFFSET_DEBUG MRO_GET_PRIVATE_DATA MSPAGAIN MULOP +syn keyword xsMacro MULTICALL MULTILINE_PAT_MOD MULTIPLICITY MURMUR_C1 +syn keyword xsMacro MURMUR_C2 MURMUR_C3 MURMUR_C4 MURMUR_C5 MURMUR_DOBLOCK +syn keyword xsMacro MURMUR_DOBYTES MUTABLE_AV MUTABLE_CV MUTABLE_GV +syn keyword xsMacro MUTABLE_HV MUTABLE_IO MUTABLE_PTR MUTABLE_SV +syn keyword xsMacro MUTEX_DESTROY MUTEX_INIT MUTEX_INIT_NEEDS_MUTEX_ZEROED +syn keyword xsMacro MUTEX_LOCK MUTEX_UNLOCK MY MY_CXT_CLONE MY_CXT_INDEX +syn keyword xsMacro MY_CXT_INIT MY_CXT_INIT_ARG MY_CXT_INIT_INTERP M_PAT_MODS +syn keyword xsMacro MgBYTEPOS MgBYTEPOS_set MgPV MgPV_const MgPV_nolen_const +syn keyword xsMacro MgTAINTEDDIR MgTAINTEDDIR_off MgTAINTEDDIR_on Mkdir Move +syn keyword xsMacro MoveD NAN_COMPARE_BROKEN NATIVE8_TO_UNI +syn keyword xsMacro NATIVE_BYTE_IS_INVARIANT NATIVE_SKIP NATIVE_TO_ASCII +syn keyword xsMacro NATIVE_TO_I8 NATIVE_TO_LATIN1 NATIVE_TO_UNI NATIVE_TO_UTF +syn keyword xsMacro NATIVE_UTF8_TO_I8 NBOUND NBOUNDA NBOUNDL NBOUNDU +syn keyword xsMacro NBSP_NATIVE NBSP_UTF8 NDBM_H_USES_PROTOTYPES NDEBUG +syn keyword xsMacro NEED_PTHREAD_INIT NEED_VA_COPY NEGATIVE_INDICES_VAR +syn keyword xsMacro NETDB_R_OBSOLETE NEWSV NEW_VERSION NEXTOPER +syn keyword xsMacro NEXT_LINE_CHAR NEXT_OFF NGROUPP NOAMP NOCAPTURE_PAT_MOD +syn keyword xsMacro NOCAPTURE_PAT_MODS NODE_ALIGN NODE_ALIGN_FILL NODE_STEP_B +syn keyword xsMacro NODE_STEP_REGNODE NODE_SZ_STR NOLINE NONDESTRUCT_PAT_MOD +syn keyword xsMacro NONDESTRUCT_PAT_MODS +syn keyword xsMacro NON_OTHER_COUNT_FOR_USE_ONLY_BY_REGCOMP_DOT_C NOOP +syn keyword xsMacro NORETURN_FUNCTION_END NORMAL NOTHING NOTOP NOT_IN_PAD +syn keyword xsMacro NOT_REACHED NO_ENV_ARRAY_IN_MAIN NO_LOCALE +syn keyword xsMacro NO_LOCALECONV_MON_THOUSANDS_SEP NO_TAINT_SUPPORT NPOSIXA +syn keyword xsMacro NPOSIXD NPOSIXL NPOSIXU NREF NREFF NREFFA NREFFL NREFFU +syn keyword xsMacro NSIG NUM2PTR NUM_ANYOF_CODE_POINTS NVSIZE NVTYPE +syn keyword xsMacro NV_BIG_ENDIAN NV_DIG NV_EPSILON NV_INF NV_LITTLE_ENDIAN +syn keyword xsMacro NV_MANT_DIG NV_MAX NV_MAX_10_EXP NV_MAX_EXP NV_MIN +syn keyword xsMacro NV_MIN_10_EXP NV_MIN_EXP NV_MIX_ENDIAN NV_NAN +syn keyword xsMacro NV_OVERFLOWS_INTEGERS_AT NV_PRESERVES_UV_BITS +syn keyword xsMacro NV_WITHIN_IV NV_WITHIN_UV New NewOp NewOpSz Newc Newx +syn keyword xsMacro Newxc Newxz Newz NofAMmeth Null Nullav Nullch Nullcv +syn keyword xsMacro Nullfp Nullgv Nullhe Nullhek Nullhv Nullop Nullsv OASHIFT +syn keyword xsMacro OCSHIFT OCTAL_VALUE OFFUNISKIP ONCE_PAT_MOD ONCE_PAT_MODS +syn keyword xsMacro OPEN OPERAND OPFAIL OPSLOT_HEADER OPSLOT_HEADER_P +syn keyword xsMacro OPTIMIZED OP_BINARY OP_CHECK_MUTEX_INIT +syn keyword xsMacro OP_CHECK_MUTEX_LOCK OP_CHECK_MUTEX_TERM +syn keyword xsMacro OP_CHECK_MUTEX_UNLOCK OP_CLASS OP_DESC OP_ENTRY_PROBE +syn keyword xsMacro OP_FREED OP_GIMME OP_GIMME_REVERSE OP_IS_DIRHOP +syn keyword xsMacro OP_IS_FILETEST OP_IS_FILETEST_ACCESS OP_IS_INFIX_BIT +syn keyword xsMacro OP_IS_NUMCOMPARE OP_IS_SOCKET OP_LVALUE_NO_CROAK OP_NAME +syn keyword xsMacro OP_REFCNT_INIT OP_REFCNT_LOCK OP_REFCNT_TERM +syn keyword xsMacro OP_REFCNT_UNLOCK OP_SIBLING OP_TYPE_IS OP_TYPE_ISNT +syn keyword xsMacro OP_TYPE_ISNT_AND_WASNT OP_TYPE_ISNT_AND_WASNT_NN +syn keyword xsMacro OP_TYPE_ISNT_NN OP_TYPE_IS_NN OP_TYPE_IS_OR_WAS +syn keyword xsMacro OP_TYPE_IS_OR_WAS_NN OROP OROR OSNAME OSVERS O_CREAT +syn keyword xsMacro O_RDONLY O_RDWR O_TEXT O_WRONLY Off Off_t_size +syn keyword xsMacro OpHAS_SIBLING OpLASTSIB_set OpMAYBESIB_set OpMORESIB_set +syn keyword xsMacro OpREFCNT_dec OpREFCNT_inc OpREFCNT_set OpSIBLING OpSLAB +syn keyword xsMacro OpSLOT OpslabREFCNT_dec OpslabREFCNT_dec_padok OutCopFILE +syn keyword xsMacro PADNAME_FROM_PV PADNAMEt_LVALUE PADNAMEt_OUR +syn keyword xsMacro PADNAMEt_OUTER PADNAMEt_STATE PADNAMEt_TYPED PAD_BASE_SV +syn keyword xsMacro PAD_CLONE_VARS PAD_COMPNAME PAD_COMPNAME_FLAGS +syn keyword xsMacro PAD_COMPNAME_FLAGS_isOUR PAD_COMPNAME_GEN +syn keyword xsMacro PAD_COMPNAME_GEN_set PAD_COMPNAME_OURSTASH +syn keyword xsMacro PAD_COMPNAME_PV PAD_COMPNAME_SV PAD_COMPNAME_TYPE +syn keyword xsMacro PAD_FAKELEX_ANON PAD_FAKELEX_MULTI PAD_RESTORE_LOCAL +syn keyword xsMacro PAD_SAVE_LOCAL PAD_SAVE_SETNULLPAD PAD_SETSV PAD_SET_CUR +syn keyword xsMacro PAD_SET_CUR_NOSAVE PAD_SV PAD_SVl PARENT_FAKELEX_FLAGS +syn keyword xsMacro PARENT_PAD_INDEX PARSE_OPTIONAL PASS1 PASS2 PATCHLEVEL +syn keyword xsMacro PERLDB_ALL PERLDB_GOTO PERLDB_INTER PERLDB_LINE +syn keyword xsMacro PERLDB_NAMEANON PERLDB_NAMEEVAL PERLDB_NOOPT +syn keyword xsMacro PERLDB_SAVESRC PERLDB_SAVESRC_INVALID +syn keyword xsMacro PERLDB_SAVESRC_NOSUBS PERLDB_SINGLE PERLDB_SUB +syn keyword xsMacro PERLDB_SUBLINE PERLDB_SUB_NN PERLDBf_GOTO PERLDBf_INTER +syn keyword xsMacro PERLDBf_LINE PERLDBf_NAMEANON PERLDBf_NAMEEVAL +syn keyword xsMacro PERLDBf_NONAME PERLDBf_NOOPT PERLDBf_SAVESRC +syn keyword xsMacro PERLDBf_SAVESRC_INVALID PERLDBf_SAVESRC_NOSUBS +syn keyword xsMacro PERLDBf_SINGLE PERLDBf_SUB PERLDBf_SUBLINE +syn keyword xsMacro PERLIOBUF_DEFAULT_BUFSIZ PERLIO_DUP_CLONE PERLIO_DUP_FD +syn keyword xsMacro PERLIO_FUNCS_CAST PERLIO_FUNCS_CONST PERLIO_FUNCS_DECL +syn keyword xsMacro PERLIO_F_APPEND PERLIO_F_CANREAD PERLIO_F_CANWRITE +syn keyword xsMacro PERLIO_F_CLEARED PERLIO_F_CRLF PERLIO_F_EOF +syn keyword xsMacro PERLIO_F_ERROR PERLIO_F_FASTGETS PERLIO_F_LINEBUF +syn keyword xsMacro PERLIO_F_NOTREG PERLIO_F_OPEN PERLIO_F_RDBUF +syn keyword xsMacro PERLIO_F_TEMP PERLIO_F_TRUNCATE PERLIO_F_TTY +syn keyword xsMacro PERLIO_F_UNBUF PERLIO_F_UTF8 PERLIO_F_WRBUF PERLIO_INIT +syn keyword xsMacro PERLIO_IS_STDIO PERLIO_K_BUFFERED PERLIO_K_CANCRLF +syn keyword xsMacro PERLIO_K_DESTRUCT PERLIO_K_DUMMY PERLIO_K_FASTGETS +syn keyword xsMacro PERLIO_K_MULTIARG PERLIO_K_RAW PERLIO_K_UTF8 +syn keyword xsMacro PERLIO_LAYERS PERLIO_NOT_STDIO PERLIO_STDTEXT PERLIO_TERM +syn keyword xsMacro PERLIO_USING_CRLF PERLSI_DESTROY PERLSI_DIEHOOK +syn keyword xsMacro PERLSI_MAGIC PERLSI_MAIN PERLSI_OVERLOAD PERLSI_REQUIRE +syn keyword xsMacro PERLSI_SIGNAL PERLSI_SORT PERLSI_UNDEF PERLSI_UNKNOWN +syn keyword xsMacro PERLSI_WARNHOOK PERL_ABS PERL_ALLOC_CHECK PERL_ANY_COW +syn keyword xsMacro PERL_API_REVISION PERL_API_SUBVERSION PERL_API_VERSION +syn keyword xsMacro PERL_API_VERSION_STRING PERL_ARENA_ROOTS_SIZE +syn keyword xsMacro PERL_ARENA_SIZE PERL_ARGS_ASSERT_ADD_ABOVE_LATIN1_FOLDS +syn keyword xsMacro PERL_ARGS_ASSERT_ADD_DATA +syn keyword xsMacro PERL_ARGS_ASSERT_ADD_MULTI_MATCH +syn keyword xsMacro PERL_ARGS_ASSERT_ADD_UTF16_TEXTFILTER +syn keyword xsMacro PERL_ARGS_ASSERT_ADJUST_SIZE_AND_FIND_BUCKET +syn keyword xsMacro PERL_ARGS_ASSERT_ADVANCE_ONE_SB +syn keyword xsMacro PERL_ARGS_ASSERT_ADVANCE_ONE_WB +syn keyword xsMacro PERL_ARGS_ASSERT_ALLOCCOPSTASH PERL_ARGS_ASSERT_ALLOCMY +syn keyword xsMacro PERL_ARGS_ASSERT_ALLOC_MAYBE_POPULATE_EXACT +syn keyword xsMacro PERL_ARGS_ASSERT_AMAGIC_CALL PERL_ARGS_ASSERT_AMAGIC_CMP +syn keyword xsMacro PERL_ARGS_ASSERT_AMAGIC_CMP_LOCALE +syn keyword xsMacro PERL_ARGS_ASSERT_AMAGIC_DEREF_CALL +syn keyword xsMacro PERL_ARGS_ASSERT_AMAGIC_I_NCMP +syn keyword xsMacro PERL_ARGS_ASSERT_AMAGIC_NCMP +syn keyword xsMacro PERL_ARGS_ASSERT_ANONYMISE_CV_MAYBE +syn keyword xsMacro PERL_ARGS_ASSERT_ANY_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE +syn keyword xsMacro PERL_ARGS_ASSERT_APPLY PERL_ARGS_ASSERT_APPLY_ATTRS +syn keyword xsMacro PERL_ARGS_ASSERT_APPLY_ATTRS_MY +syn keyword xsMacro PERL_ARGS_ASSERT_APPLY_ATTRS_STRING +syn keyword xsMacro PERL_ARGS_ASSERT_ASSERT_UFT8_CACHE_COHERENT +syn keyword xsMacro PERL_ARGS_ASSERT_AV_ARYLEN_P PERL_ARGS_ASSERT_AV_CLEAR +syn keyword xsMacro PERL_ARGS_ASSERT_AV_CREATE_AND_PUSH +syn keyword xsMacro PERL_ARGS_ASSERT_AV_CREATE_AND_UNSHIFT_ONE +syn keyword xsMacro PERL_ARGS_ASSERT_AV_DELETE PERL_ARGS_ASSERT_AV_EXISTS +syn keyword xsMacro PERL_ARGS_ASSERT_AV_EXTEND +syn keyword xsMacro PERL_ARGS_ASSERT_AV_EXTEND_GUTS PERL_ARGS_ASSERT_AV_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_AV_FILL PERL_ARGS_ASSERT_AV_ITER_P +syn keyword xsMacro PERL_ARGS_ASSERT_AV_LEN PERL_ARGS_ASSERT_AV_MAKE +syn keyword xsMacro PERL_ARGS_ASSERT_AV_POP PERL_ARGS_ASSERT_AV_PUSH +syn keyword xsMacro PERL_ARGS_ASSERT_AV_REIFY PERL_ARGS_ASSERT_AV_SHIFT +syn keyword xsMacro PERL_ARGS_ASSERT_AV_STORE PERL_ARGS_ASSERT_AV_TOP_INDEX +syn keyword xsMacro PERL_ARGS_ASSERT_AV_UNDEF PERL_ARGS_ASSERT_AV_UNSHIFT +syn keyword xsMacro PERL_ARGS_ASSERT_BACKUP_ONE_SB +syn keyword xsMacro PERL_ARGS_ASSERT_BACKUP_ONE_WB +syn keyword xsMacro PERL_ARGS_ASSERT_BAD_TYPE_GV PERL_ARGS_ASSERT_BAD_TYPE_PV +syn keyword xsMacro PERL_ARGS_ASSERT_BIND_MATCH +syn keyword xsMacro PERL_ARGS_ASSERT_BLOCKHOOK_REGISTER +syn keyword xsMacro PERL_ARGS_ASSERT_BYTES_CMP_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_BYTES_FROM_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_BYTES_TO_UTF8 PERL_ARGS_ASSERT_CALL_ARGV +syn keyword xsMacro PERL_ARGS_ASSERT_CALL_LIST PERL_ARGS_ASSERT_CALL_METHOD +syn keyword xsMacro PERL_ARGS_ASSERT_CALL_PV PERL_ARGS_ASSERT_CALL_SV +syn keyword xsMacro PERL_ARGS_ASSERT_CANDO PERL_ARGS_ASSERT_CHECKCOMMA +syn keyword xsMacro PERL_ARGS_ASSERT_CHECK_LOCALE_BOUNDARY_CROSSING +syn keyword xsMacro PERL_ARGS_ASSERT_CHECK_TYPE_AND_OPEN +syn keyword xsMacro PERL_ARGS_ASSERT_CHECK_UTF8_PRINT +syn keyword xsMacro PERL_ARGS_ASSERT_CK_ANONCODE PERL_ARGS_ASSERT_CK_BACKTICK +syn keyword xsMacro PERL_ARGS_ASSERT_CK_BITOP PERL_ARGS_ASSERT_CK_CMP +syn keyword xsMacro PERL_ARGS_ASSERT_CK_CONCAT PERL_ARGS_ASSERT_CK_DEFINED +syn keyword xsMacro PERL_ARGS_ASSERT_CK_DELETE PERL_ARGS_ASSERT_CK_EACH +syn keyword xsMacro PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_CORE +syn keyword xsMacro PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_LIST +syn keyword xsMacro PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO +syn keyword xsMacro PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO_OR_LIST +syn keyword xsMacro PERL_ARGS_ASSERT_CK_EOF PERL_ARGS_ASSERT_CK_EVAL +syn keyword xsMacro PERL_ARGS_ASSERT_CK_EXEC PERL_ARGS_ASSERT_CK_EXISTS +syn keyword xsMacro PERL_ARGS_ASSERT_CK_FTST PERL_ARGS_ASSERT_CK_FUN +syn keyword xsMacro PERL_ARGS_ASSERT_CK_GLOB PERL_ARGS_ASSERT_CK_GREP +syn keyword xsMacro PERL_ARGS_ASSERT_CK_INDEX PERL_ARGS_ASSERT_CK_JOIN +syn keyword xsMacro PERL_ARGS_ASSERT_CK_LENGTH PERL_ARGS_ASSERT_CK_LFUN +syn keyword xsMacro PERL_ARGS_ASSERT_CK_LISTIOB PERL_ARGS_ASSERT_CK_MATCH +syn keyword xsMacro PERL_ARGS_ASSERT_CK_METHOD PERL_ARGS_ASSERT_CK_NULL +syn keyword xsMacro PERL_ARGS_ASSERT_CK_OPEN PERL_ARGS_ASSERT_CK_PROTOTYPE +syn keyword xsMacro PERL_ARGS_ASSERT_CK_READLINE +syn keyword xsMacro PERL_ARGS_ASSERT_CK_REFASSIGN PERL_ARGS_ASSERT_CK_REPEAT +syn keyword xsMacro PERL_ARGS_ASSERT_CK_REQUIRE PERL_ARGS_ASSERT_CK_RETURN +syn keyword xsMacro PERL_ARGS_ASSERT_CK_RFUN PERL_ARGS_ASSERT_CK_RVCONST +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SASSIGN PERL_ARGS_ASSERT_CK_SELECT +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SHIFT PERL_ARGS_ASSERT_CK_SMARTMATCH +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SORT PERL_ARGS_ASSERT_CK_SPAIR +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SPLIT PERL_ARGS_ASSERT_CK_STRINGIFY +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SUBR PERL_ARGS_ASSERT_CK_SUBSTR +syn keyword xsMacro PERL_ARGS_ASSERT_CK_SVCONST PERL_ARGS_ASSERT_CK_TELL +syn keyword xsMacro PERL_ARGS_ASSERT_CK_TRUNC PERL_ARGS_ASSERT_CK_WARNER +syn keyword xsMacro PERL_ARGS_ASSERT_CK_WARNER_D +syn keyword xsMacro PERL_ARGS_ASSERT_CLEAR_PLACEHOLDERS +syn keyword xsMacro PERL_ARGS_ASSERT_CLEAR_SPECIAL_BLOCKS +syn keyword xsMacro PERL_ARGS_ASSERT_CLONE_PARAMS_DEL +syn keyword xsMacro PERL_ARGS_ASSERT_CLONE_PARAMS_NEW +syn keyword xsMacro PERL_ARGS_ASSERT_CLOSEST_COP +syn keyword xsMacro PERL_ARGS_ASSERT_COMPUTE_EXACTISH +syn keyword xsMacro PERL_ARGS_ASSERT_CONSTRUCT_AHOCORASICK_FROM_TRIE +syn keyword xsMacro PERL_ARGS_ASSERT_COP_FETCH_LABEL +syn keyword xsMacro PERL_ARGS_ASSERT_COP_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_COP_STORE_LABEL +syn keyword xsMacro PERL_ARGS_ASSERT_CORESUB_OP +syn keyword xsMacro PERL_ARGS_ASSERT_CORE_PROTOTYPE +syn keyword xsMacro PERL_ARGS_ASSERT_COULD_IT_BE_A_POSIX_CLASS +syn keyword xsMacro PERL_ARGS_ASSERT_CROAK_SV PERL_ARGS_ASSERT_CROAK_XS_USAGE +syn keyword xsMacro PERL_ARGS_ASSERT_CURSE PERL_ARGS_ASSERT_CUSTOM_OP_DESC +syn keyword xsMacro PERL_ARGS_ASSERT_CUSTOM_OP_GET_FIELD +syn keyword xsMacro PERL_ARGS_ASSERT_CUSTOM_OP_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_CUSTOM_OP_REGISTER +syn keyword xsMacro PERL_ARGS_ASSERT_CVGV_FROM_HEK PERL_ARGS_ASSERT_CVGV_SET +syn keyword xsMacro PERL_ARGS_ASSERT_CVSTASH_SET +syn keyword xsMacro PERL_ARGS_ASSERT_CV_CKPROTO_LEN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_CV_CLONE PERL_ARGS_ASSERT_CV_CLONE_INTO +syn keyword xsMacro PERL_ARGS_ASSERT_CV_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_CV_GET_CALL_CHECKER +syn keyword xsMacro PERL_ARGS_ASSERT_CV_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER +syn keyword xsMacro PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_CV_UNDEF PERL_ARGS_ASSERT_CV_UNDEF_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_CX_DUMP PERL_ARGS_ASSERT_CX_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_DEB PERL_ARGS_ASSERT_DEBOP +syn keyword xsMacro PERL_ARGS_ASSERT_DEBPROF +syn keyword xsMacro PERL_ARGS_ASSERT_DEBUG_START_MATCH +syn keyword xsMacro PERL_ARGS_ASSERT_DEB_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_DEB_STACK_N +syn keyword xsMacro PERL_ARGS_ASSERT_DEFELEM_TARGET PERL_ARGS_ASSERT_DELIMCPY +syn keyword xsMacro PERL_ARGS_ASSERT_DEL_SV PERL_ARGS_ASSERT_DESTROY_MATCHER +syn keyword xsMacro PERL_ARGS_ASSERT_DIE_SV PERL_ARGS_ASSERT_DIE_UNWIND +syn keyword xsMacro PERL_ARGS_ASSERT_DIRP_DUP PERL_ARGS_ASSERT_DIV128 +syn keyword xsMacro PERL_ARGS_ASSERT_DOFILE PERL_ARGS_ASSERT_DOFINDLABEL +syn keyword xsMacro PERL_ARGS_ASSERT_DOFORM PERL_ARGS_ASSERT_DOONELINER +syn keyword xsMacro PERL_ARGS_ASSERT_DOOPEN_PM PERL_ARGS_ASSERT_DOPARSEFORM +syn keyword xsMacro PERL_ARGS_ASSERT_DOPOPTOLABEL +syn keyword xsMacro PERL_ARGS_ASSERT_DOPOPTOSUB_AT PERL_ARGS_ASSERT_DOREF +syn keyword xsMacro PERL_ARGS_ASSERT_DO_AEXEC PERL_ARGS_ASSERT_DO_AEXEC5 +syn keyword xsMacro PERL_ARGS_ASSERT_DO_ASPAWN PERL_ARGS_ASSERT_DO_BINMODE +syn keyword xsMacro PERL_ARGS_ASSERT_DO_CHOMP PERL_ARGS_ASSERT_DO_DUMP_PAD +syn keyword xsMacro PERL_ARGS_ASSERT_DO_EOF PERL_ARGS_ASSERT_DO_EXEC +syn keyword xsMacro PERL_ARGS_ASSERT_DO_EXEC3 PERL_ARGS_ASSERT_DO_GVGV_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_DO_GV_DUMP PERL_ARGS_ASSERT_DO_HV_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_DO_IPCCTL PERL_ARGS_ASSERT_DO_IPCGET +syn keyword xsMacro PERL_ARGS_ASSERT_DO_JOIN PERL_ARGS_ASSERT_DO_MAGIC_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_DO_MSGRCV PERL_ARGS_ASSERT_DO_MSGSND +syn keyword xsMacro PERL_ARGS_ASSERT_DO_NCMP PERL_ARGS_ASSERT_DO_ODDBALL +syn keyword xsMacro PERL_ARGS_ASSERT_DO_OPEN PERL_ARGS_ASSERT_DO_OPEN6 +syn keyword xsMacro PERL_ARGS_ASSERT_DO_OPEN9 PERL_ARGS_ASSERT_DO_OPENN +syn keyword xsMacro PERL_ARGS_ASSERT_DO_OPEN_RAW PERL_ARGS_ASSERT_DO_OP_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_DO_PMOP_DUMP PERL_ARGS_ASSERT_DO_PRINT +syn keyword xsMacro PERL_ARGS_ASSERT_DO_SEMOP PERL_ARGS_ASSERT_DO_SHMIO +syn keyword xsMacro PERL_ARGS_ASSERT_DO_SPAWN +syn keyword xsMacro PERL_ARGS_ASSERT_DO_SPAWN_NOWAIT +syn keyword xsMacro PERL_ARGS_ASSERT_DO_SPRINTF PERL_ARGS_ASSERT_DO_SV_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_DO_SYSSEEK PERL_ARGS_ASSERT_DO_TELL +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_COMPLEX +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_COMPLEX_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_COUNT +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_COUNT_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_SIMPLE +syn keyword xsMacro PERL_ARGS_ASSERT_DO_TRANS_SIMPLE_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_DO_VECGET PERL_ARGS_ASSERT_DO_VECSET +syn keyword xsMacro PERL_ARGS_ASSERT_DO_VOP PERL_ARGS_ASSERT_DRAND48_INIT_R +syn keyword xsMacro PERL_ARGS_ASSERT_DRAND48_R PERL_ARGS_ASSERT_DUMPUNTIL +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_C_BACKTRACE +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_EXEC_POS PERL_ARGS_ASSERT_DUMP_FORM +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_INDENT PERL_ARGS_ASSERT_DUMP_MSTATS +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_PACKSUBS +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_PACKSUBS_PERL +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_SUB PERL_ARGS_ASSERT_DUMP_SUB_PERL +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_SV_CHILD PERL_ARGS_ASSERT_DUMP_TRIE +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_LIST +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_TABLE +syn keyword xsMacro PERL_ARGS_ASSERT_DUMP_VINDENT +syn keyword xsMacro PERL_ARGS_ASSERT_DUP_ATTRLIST +syn keyword xsMacro PERL_ARGS_ASSERT_EMULATE_COP_IO PERL_ARGS_ASSERT_EVAL_PV +syn keyword xsMacro PERL_ARGS_ASSERT_EVAL_SV PERL_ARGS_ASSERT_EXEC_FAILED +syn keyword xsMacro PERL_ARGS_ASSERT_EXPECT_NUMBER PERL_ARGS_ASSERT_F0CONVERT +syn keyword xsMacro PERL_ARGS_ASSERT_FBM_COMPILE PERL_ARGS_ASSERT_FBM_INSTR +syn keyword xsMacro PERL_ARGS_ASSERT_FEATURE_IS_ENABLED +syn keyword xsMacro PERL_ARGS_ASSERT_FILTER_DEL PERL_ARGS_ASSERT_FILTER_GETS +syn keyword xsMacro PERL_ARGS_ASSERT_FILTER_READ PERL_ARGS_ASSERT_FINALIZE_OP +syn keyword xsMacro PERL_ARGS_ASSERT_FINALIZE_OPTREE +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_AND_FORGET_PMOPS +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_ARRAY_SUBSCRIPT +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_BEGINNING +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_BYCLASS +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_DEFAULT_STASH +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_HASH_SUBSCRIPT +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_IN_MY_STASH +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_RUNDEFSV2 +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_SCRIPT +syn keyword xsMacro PERL_ARGS_ASSERT_FIND_UNINIT_VAR +syn keyword xsMacro PERL_ARGS_ASSERT_FIRST_SYMBOL +syn keyword xsMacro PERL_ARGS_ASSERT_FIXUP_ERRNO_STRING +syn keyword xsMacro PERL_ARGS_ASSERT_FOLDEQ PERL_ARGS_ASSERT_FOLDEQ_LATIN1 +syn keyword xsMacro PERL_ARGS_ASSERT_FOLDEQ_LOCALE +syn keyword xsMacro PERL_ARGS_ASSERT_FOLDEQ_UTF8_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_FOLD_CONSTANTS +syn keyword xsMacro PERL_ARGS_ASSERT_FORCE_IDENT +syn keyword xsMacro PERL_ARGS_ASSERT_FORCE_STRICT_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_FORCE_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_FORCE_WORD PERL_ARGS_ASSERT_FORGET_PMOP +syn keyword xsMacro PERL_ARGS_ASSERT_FORM PERL_ARGS_ASSERT_FORM_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_FORM_SHORT_OCTAL_WARNING +syn keyword xsMacro PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_FP_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_FREE_GLOBAL_STRUCT +syn keyword xsMacro PERL_ARGS_ASSERT_GETCWD_SV PERL_ARGS_ASSERT_GETENV_LEN +syn keyword xsMacro PERL_ARGS_ASSERT_GET_AND_CHECK_BACKSLASH_N_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_GET_ANYOF_CP_LIST_FOR_SSC +syn keyword xsMacro PERL_ARGS_ASSERT_GET_AUX_MG PERL_ARGS_ASSERT_GET_AV +syn keyword xsMacro PERL_ARGS_ASSERT_GET_CV PERL_ARGS_ASSERT_GET_CVN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GET_DB_SUB +syn keyword xsMacro PERL_ARGS_ASSERT_GET_DEBUG_OPTS +syn keyword xsMacro PERL_ARGS_ASSERT_GET_HASH_SEED PERL_ARGS_ASSERT_GET_HV +syn keyword xsMacro PERL_ARGS_ASSERT_GET_INVLIST_ITER_ADDR +syn keyword xsMacro PERL_ARGS_ASSERT_GET_INVLIST_OFFSET_ADDR +syn keyword xsMacro PERL_ARGS_ASSERT_GET_INVLIST_PREVIOUS_INDEX_ADDR +syn keyword xsMacro PERL_ARGS_ASSERT_GET_MSTATS PERL_ARGS_ASSERT_GET_NUM +syn keyword xsMacro PERL_ARGS_ASSERT_GET_SV PERL_ARGS_ASSERT_GLOB_2NUMBER +syn keyword xsMacro PERL_ARGS_ASSERT_GLOB_ASSIGN_GLOB PERL_ARGS_ASSERT_GP_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_ATOUV PERL_ARGS_ASSERT_GROK_BIN +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_BSLASH_N +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_BSLASH_O +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_BSLASH_X PERL_ARGS_ASSERT_GROK_HEX +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_INFNAN PERL_ARGS_ASSERT_GROK_NUMBER +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_NUMBER_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX +syn keyword xsMacro PERL_ARGS_ASSERT_GROK_OCT PERL_ARGS_ASSERT_GROUP_END +syn keyword xsMacro PERL_ARGS_ASSERT_GV_AMUPDATE +syn keyword xsMacro PERL_ARGS_ASSERT_GV_AUTOLOAD_PV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_AUTOLOAD_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_GV_AUTOLOAD_SV PERL_ARGS_ASSERT_GV_CHECK +syn keyword xsMacro PERL_ARGS_ASSERT_GV_CONST_SV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_EFULLNAME +syn keyword xsMacro PERL_ARGS_ASSERT_GV_EFULLNAME3 +syn keyword xsMacro PERL_ARGS_ASSERT_GV_EFULLNAME4 +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHFILE +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETHOD +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETHOD_PVN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETHOD_PV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETHOD_SV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_PV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_PVN_AUTOLOAD +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_PV_AUTOLOAD +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_SV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHMETH_SV_AUTOLOAD +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHPV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHPVN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FETCHSV PERL_ARGS_ASSERT_GV_FULLNAME +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FULLNAME3 +syn keyword xsMacro PERL_ARGS_ASSERT_GV_FULLNAME4 PERL_ARGS_ASSERT_GV_INIT_PV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_INIT_PVN PERL_ARGS_ASSERT_GV_INIT_SV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_INIT_SVTYPE +syn keyword xsMacro PERL_ARGS_ASSERT_GV_IS_IN_MAIN +syn keyword xsMacro PERL_ARGS_ASSERT_GV_MAGICALIZE +syn keyword xsMacro PERL_ARGS_ASSERT_GV_MAGICALIZE_ISA +syn keyword xsMacro PERL_ARGS_ASSERT_GV_NAME_SET PERL_ARGS_ASSERT_GV_OVERRIDE +syn keyword xsMacro PERL_ARGS_ASSERT_GV_SETREF PERL_ARGS_ASSERT_GV_STASHPV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_STASHPVN +syn keyword xsMacro PERL_ARGS_ASSERT_GV_STASHPVN_INTERNAL +syn keyword xsMacro PERL_ARGS_ASSERT_GV_STASHSV +syn keyword xsMacro PERL_ARGS_ASSERT_GV_TRY_DOWNGRADE +syn keyword xsMacro PERL_ARGS_ASSERT_HANDLE_REGEX_SETS +syn keyword xsMacro PERL_ARGS_ASSERT_HEK_DUP PERL_ARGS_ASSERT_HE_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_HFREEENTRIES +syn keyword xsMacro PERL_ARGS_ASSERT_HFREE_NEXT_ENTRY PERL_ARGS_ASSERT_HSPLIT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ASSERT PERL_ARGS_ASSERT_HV_AUXINIT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_AUXINIT_INTERNAL +syn keyword xsMacro PERL_ARGS_ASSERT_HV_BACKREFERENCES_P +syn keyword xsMacro PERL_ARGS_ASSERT_HV_CLEAR_PLACEHOLDERS +syn keyword xsMacro PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN +syn keyword xsMacro PERL_ARGS_ASSERT_HV_DELAYFREE_ENT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_DELETE PERL_ARGS_ASSERT_HV_DELETE_ENT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_EITER_P PERL_ARGS_ASSERT_HV_EITER_SET +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ENAME_ADD +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ENAME_DELETE +syn keyword xsMacro PERL_ARGS_ASSERT_HV_EXISTS PERL_ARGS_ASSERT_HV_EXISTS_ENT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_FETCH PERL_ARGS_ASSERT_HV_FETCH_ENT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_FILL PERL_ARGS_ASSERT_HV_FREE_ENT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_FREE_ENT_RET +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERINIT PERL_ARGS_ASSERT_HV_ITERKEY +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERKEYSV +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERNEXT +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERNEXTSV +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_HV_ITERVAL +syn keyword xsMacro PERL_ARGS_ASSERT_HV_KILL_BACKREFS +syn keyword xsMacro PERL_ARGS_ASSERT_HV_KSPLIT PERL_ARGS_ASSERT_HV_MAGIC +syn keyword xsMacro PERL_ARGS_ASSERT_HV_MAGIC_CHECK +syn keyword xsMacro PERL_ARGS_ASSERT_HV_NAME_SET +syn keyword xsMacro PERL_ARGS_ASSERT_HV_NOTALLOWED +syn keyword xsMacro PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET +syn keyword xsMacro PERL_ARGS_ASSERT_HV_PLACEHOLDERS_P +syn keyword xsMacro PERL_ARGS_ASSERT_HV_PLACEHOLDERS_SET +syn keyword xsMacro PERL_ARGS_ASSERT_HV_RAND_SET PERL_ARGS_ASSERT_HV_RITER_P +syn keyword xsMacro PERL_ARGS_ASSERT_HV_RITER_SET PERL_ARGS_ASSERT_HV_SCALAR +syn keyword xsMacro PERL_ARGS_ASSERT_INCLINE PERL_ARGS_ASSERT_INCPUSH +syn keyword xsMacro PERL_ARGS_ASSERT_INCPUSH_IF_EXISTS +syn keyword xsMacro PERL_ARGS_ASSERT_INCPUSH_USE_SEP +syn keyword xsMacro PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS +syn keyword xsMacro PERL_ARGS_ASSERT_INIT_POSTDUMP_SYMBOLS +syn keyword xsMacro PERL_ARGS_ASSERT_INIT_TM PERL_ARGS_ASSERT_INPLACE_AASSIGN +syn keyword xsMacro PERL_ARGS_ASSERT_INSTR PERL_ARGS_ASSERT_INTUIT_METHOD +syn keyword xsMacro PERL_ARGS_ASSERT_INTUIT_MORE +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_ARRAY +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_CLONE +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_EXTEND +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_HIGHEST +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_IS_ITERATING +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_ITERFINISH +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_ITERINIT +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_ITERNEXT +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_MAX +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_PREVIOUS_INDEX +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_SET_LEN +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_SET_PREVIOUS_INDEX +syn keyword xsMacro PERL_ARGS_ASSERT_INVLIST_TRIM PERL_ARGS_ASSERT_IO_CLOSE +syn keyword xsMacro PERL_ARGS_ASSERT_ISALNUM_LAZY PERL_ARGS_ASSERT_ISA_LOOKUP +syn keyword xsMacro PERL_ARGS_ASSERT_ISFOO_UTF8_LC +syn keyword xsMacro PERL_ARGS_ASSERT_ISIDFIRST_LAZY +syn keyword xsMacro PERL_ARGS_ASSERT_ISINFNANSV PERL_ARGS_ASSERT_ISSB +syn keyword xsMacro PERL_ARGS_ASSERT_ISWB PERL_ARGS_ASSERT_IS_AN_INT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_HANDLE_CONSTRUCTOR +syn keyword xsMacro PERL_ARGS_ASSERT_IS_INVARIANT_STRING +syn keyword xsMacro PERL_ARGS_ASSERT_IS_SAFE_SYSCALL +syn keyword xsMacro PERL_ARGS_ASSERT_IS_SSC_WORTH_IT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_ALNUM +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_ALNUMC +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_ALPHA +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_ASCII +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_BLANK +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_CHAR +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_CNTRL +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_COMMON +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_DIGIT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_GRAPH +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_IDCONT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_IDFIRST +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_LOWER +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_MARK +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_PERL_SPACE +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_PERL_WORD +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_POSIX_DIGIT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_PRINT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_PUNCT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_SPACE +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_STRING +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_UPPER +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_XDIGIT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_XIDCONT +syn keyword xsMacro PERL_ARGS_ASSERT_IS_UTF8_XIDFIRST PERL_ARGS_ASSERT_JMAYBE +syn keyword xsMacro PERL_ARGS_ASSERT_JOIN_EXACT PERL_ARGS_ASSERT_KEYWORD +syn keyword xsMacro PERL_ARGS_ASSERT_KEYWORD_PLUGIN_STANDARD +syn keyword xsMacro PERL_ARGS_ASSERT_LEAVE_COMMON +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_DISCARD_TO +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_READ_TO +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_STUFF_PV +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_STUFF_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_STUFF_SV +syn keyword xsMacro PERL_ARGS_ASSERT_LEX_UNSTUFF PERL_ARGS_ASSERT_LOAD_MODULE +syn keyword xsMacro PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_LOCALIZE +syn keyword xsMacro PERL_ARGS_ASSERT_LOOKS_LIKE_BOOL +syn keyword xsMacro PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER PERL_ARGS_ASSERT_LOP +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARARYLEN_P +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARENV +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARHINT +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARHINTS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARISA +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEARSIG +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_COPYCALLCHECKER +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_EXISTSPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_FREEOVRLD +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GET +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETARYLEN +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETDEBUGVAR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETDEFELEM +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETNKEYS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETPOS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETSIG +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETSUBSTR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETTAINT +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETUVAR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_GETVEC +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_KILLBACKREFS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_METHCALL +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_METHCALL1 +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_METHPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_NEXTPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SCALARPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SET +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETARYLEN +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETDBLINE +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETDEBUGVAR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETDEFELEM +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETENV +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETHINT +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETISA +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETLVREF +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETMGLOB +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETNKEYS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETPOS +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETREGEXP +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETSIG +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETSUBSTR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETTAINT +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETUTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETUVAR +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SETVEC +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_SIZEPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAGIC_WIPEPACK +syn keyword xsMacro PERL_ARGS_ASSERT_MAKE_MATCHER PERL_ARGS_ASSERT_MAKE_TRIE +syn keyword xsMacro PERL_ARGS_ASSERT_MALLOCED_SIZE +syn keyword xsMacro PERL_ARGS_ASSERT_MATCHER_MATCHES_SV +syn keyword xsMacro PERL_ARGS_ASSERT_MAYBERELOCATE +syn keyword xsMacro PERL_ARGS_ASSERT_MAYBE_MULTIMAGIC_GV +syn keyword xsMacro PERL_ARGS_ASSERT_MEASURE_STRUCT +syn keyword xsMacro PERL_ARGS_ASSERT_MEM_COLLXFRM +syn keyword xsMacro PERL_ARGS_ASSERT_MEM_LOG_COMMON PERL_ARGS_ASSERT_MESS +syn keyword xsMacro PERL_ARGS_ASSERT_MESS_NOCONTEXT PERL_ARGS_ASSERT_MESS_SV +syn keyword xsMacro PERL_ARGS_ASSERT_MG_CLEAR PERL_ARGS_ASSERT_MG_COPY +syn keyword xsMacro PERL_ARGS_ASSERT_MG_DUP PERL_ARGS_ASSERT_MG_FIND_MGLOB +syn keyword xsMacro PERL_ARGS_ASSERT_MG_FREE PERL_ARGS_ASSERT_MG_FREE_TYPE +syn keyword xsMacro PERL_ARGS_ASSERT_MG_GET PERL_ARGS_ASSERT_MG_LENGTH +syn keyword xsMacro PERL_ARGS_ASSERT_MG_LOCALIZE PERL_ARGS_ASSERT_MG_MAGICAL +syn keyword xsMacro PERL_ARGS_ASSERT_MG_SET PERL_ARGS_ASSERT_MG_SIZE +syn keyword xsMacro PERL_ARGS_ASSERT_MINI_MKTIME +syn keyword xsMacro PERL_ARGS_ASSERT_MORESWITCHES +syn keyword xsMacro PERL_ARGS_ASSERT_MOVE_PROTO_ATTR +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_CLEAN_ISAREV +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_GATHER_AND_RENAME +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_GET_FROM_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA_DFS +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_GET_PRIVATE_DATA +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_ISA_CHANGED_IN +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_META_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_META_INIT +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_METHOD_CHANGED_IN +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_PACKAGE_MOVED +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_REGISTER +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_SET_MRO +syn keyword xsMacro PERL_ARGS_ASSERT_MRO_SET_PRIVATE_DATA +syn keyword xsMacro PERL_ARGS_ASSERT_MUL128 +syn keyword xsMacro PERL_ARGS_ASSERT_MULTIDEREF_STRINGIFY +syn keyword xsMacro PERL_ARGS_ASSERT_MY_ATOF PERL_ARGS_ASSERT_MY_ATOF2 +syn keyword xsMacro PERL_ARGS_ASSERT_MY_ATTRS PERL_ARGS_ASSERT_MY_BCOPY +syn keyword xsMacro PERL_ARGS_ASSERT_MY_BYTES_TO_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_MY_BZERO PERL_ARGS_ASSERT_MY_CXT_INDEX +syn keyword xsMacro PERL_ARGS_ASSERT_MY_CXT_INIT PERL_ARGS_ASSERT_MY_KID +syn keyword xsMacro PERL_ARGS_ASSERT_MY_MEMCMP PERL_ARGS_ASSERT_MY_MEMSET +syn keyword xsMacro PERL_ARGS_ASSERT_MY_POPEN PERL_ARGS_ASSERT_MY_POPEN_LIST +syn keyword xsMacro PERL_ARGS_ASSERT_MY_SNPRINTF PERL_ARGS_ASSERT_MY_SPRINTF +syn keyword xsMacro PERL_ARGS_ASSERT_MY_STRFTIME +syn keyword xsMacro PERL_ARGS_ASSERT_MY_VSNPRINTF PERL_ARGS_ASSERT_NEED_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_NEWAVREF PERL_ARGS_ASSERT_NEWCONDOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWFOROP PERL_ARGS_ASSERT_NEWGIVENOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWGIVWHENOP PERL_ARGS_ASSERT_NEWGP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWGVGEN_FLAGS PERL_ARGS_ASSERT_NEWGVOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWHVREF PERL_ARGS_ASSERT_NEWLOGOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWLOOPEX PERL_ARGS_ASSERT_NEWMETHOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWMETHOP_NAMED +syn keyword xsMacro PERL_ARGS_ASSERT_NEWMYSUB +syn keyword xsMacro PERL_ARGS_ASSERT_NEWPADNAMEOUTER +syn keyword xsMacro PERL_ARGS_ASSERT_NEWPADNAMEPVN PERL_ARGS_ASSERT_NEWPADOP +syn keyword xsMacro PERL_ARGS_ASSERT_NEWPROG PERL_ARGS_ASSERT_NEWRANGE +syn keyword xsMacro PERL_ARGS_ASSERT_NEWRV PERL_ARGS_ASSERT_NEWRV_NOINC +syn keyword xsMacro PERL_ARGS_ASSERT_NEWSTUB PERL_ARGS_ASSERT_NEWSVAVDEFELEM +syn keyword xsMacro PERL_ARGS_ASSERT_NEWSVOP PERL_ARGS_ASSERT_NEWSVPVF +syn keyword xsMacro PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_NEWSVREF PERL_ARGS_ASSERT_NEWSVRV +syn keyword xsMacro PERL_ARGS_ASSERT_NEWWHENOP PERL_ARGS_ASSERT_NEWXS +syn keyword xsMacro PERL_ARGS_ASSERT_NEWXS_DEFFILE +syn keyword xsMacro PERL_ARGS_ASSERT_NEWXS_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_NEWXS_LEN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_NEW_CONSTANT PERL_ARGS_ASSERT_NEW_CTYPE +syn keyword xsMacro PERL_ARGS_ASSERT_NEW_LOGOP PERL_ARGS_ASSERT_NEW_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_NEW_WARNINGS_BITFIELD +syn keyword xsMacro PERL_ARGS_ASSERT_NEXTARGV PERL_ARGS_ASSERT_NEXTCHAR +syn keyword xsMacro PERL_ARGS_ASSERT_NEXT_SYMBOL PERL_ARGS_ASSERT_NINSTR +syn keyword xsMacro PERL_ARGS_ASSERT_NOPERL_DIE PERL_ARGS_ASSERT_NOT_A_NUMBER +syn keyword xsMacro PERL_ARGS_ASSERT_NOT_INCREMENTABLE +syn keyword xsMacro PERL_ARGS_ASSERT_NO_BAREWORD_ALLOWED +syn keyword xsMacro PERL_ARGS_ASSERT_NO_FH_ALLOWED PERL_ARGS_ASSERT_NO_OP +syn keyword xsMacro PERL_ARGS_ASSERT_OOPSAV PERL_ARGS_ASSERT_OOPSHV +syn keyword xsMacro PERL_ARGS_ASSERT_OPENN_CLEANUP +syn keyword xsMacro PERL_ARGS_ASSERT_OPENN_SETUP PERL_ARGS_ASSERT_OPEN_SCRIPT +syn keyword xsMacro PERL_ARGS_ASSERT_OPMETHOD_STASH +syn keyword xsMacro PERL_ARGS_ASSERT_OPSLAB_FORCE_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_OPSLAB_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_OPSLAB_FREE_NOPAD +syn keyword xsMacro PERL_ARGS_ASSERT_OP_CLEAR +syn keyword xsMacro PERL_ARGS_ASSERT_OP_CONTEXTUALIZE +syn keyword xsMacro PERL_ARGS_ASSERT_OP_DUMP PERL_ARGS_ASSERT_OP_INTEGERIZE +syn keyword xsMacro PERL_ARGS_ASSERT_OP_LINKLIST PERL_ARGS_ASSERT_OP_NULL +syn keyword xsMacro PERL_ARGS_ASSERT_OP_PARENT PERL_ARGS_ASSERT_OP_REFCNT_DEC +syn keyword xsMacro PERL_ARGS_ASSERT_OP_RELOCATE_SV +syn keyword xsMacro PERL_ARGS_ASSERT_OP_STD_INIT PERL_ARGS_ASSERT_PACKAGE +syn keyword xsMacro PERL_ARGS_ASSERT_PACKAGE_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_PACKLIST PERL_ARGS_ASSERT_PACK_CAT +syn keyword xsMacro PERL_ARGS_ASSERT_PACK_REC PERL_ARGS_ASSERT_PADLIST_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_PADLIST_STORE +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAMELIST_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAMELIST_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAMELIST_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAMELIST_STORE +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAME_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_PADNAME_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ADD_ANON +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ADD_NAME_PV +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ADD_NAME_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ADD_NAME_SV +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ADD_WEAKREF +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_ALLOC_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_CHECK_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_FINDLEX +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_FINDMY_PV +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_FINDMY_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_FINDMY_SV +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_FIXUP_INNER_ANONS +syn keyword xsMacro PERL_ARGS_ASSERT_PAD_PUSH PERL_ARGS_ASSERT_PAD_SETSV +syn keyword xsMacro PERL_ARGS_ASSERT_PARSER_DUP PERL_ARGS_ASSERT_PARSER_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_PARSER_FREE_NEXTTOKE_OPS +syn keyword xsMacro PERL_ARGS_ASSERT_PARSE_GV_STASH_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_PARSE_IDENT +syn keyword xsMacro PERL_ARGS_ASSERT_PARSE_LPAREN_QUESTION_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_PARSE_UNICODE_OPTS +syn keyword xsMacro PERL_ARGS_ASSERT_PATH_IS_SEARCHABLE +syn keyword xsMacro PERL_ARGS_ASSERT_PERLIO_READ +syn keyword xsMacro PERL_ARGS_ASSERT_PERLIO_UNREAD +syn keyword xsMacro PERL_ARGS_ASSERT_PERLIO_WRITE +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_ALLOC_USING +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_CLONE +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_CLONE_USING +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_CONSTRUCT +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_DESTRUCT PERL_ARGS_ASSERT_PERL_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_PERL_PARSE PERL_ARGS_ASSERT_PERL_RUN +syn keyword xsMacro PERL_ARGS_ASSERT_PMRUNTIME PERL_ARGS_ASSERT_PMTRANS +syn keyword xsMacro PERL_ARGS_ASSERT_PM_DESCRIPTION +syn keyword xsMacro PERL_ARGS_ASSERT_POPULATE_ANYOF_FROM_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT_POPULATE_ISA PERL_ARGS_ASSERT_PREGCOMP +syn keyword xsMacro PERL_ARGS_ASSERT_PREGEXEC PERL_ARGS_ASSERT_PREGFREE2 +syn keyword xsMacro PERL_ARGS_ASSERT_PRESCAN_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_PRINTBUF +syn keyword xsMacro PERL_ARGS_ASSERT_PRINTF_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_PROCESS_SPECIAL_BLOCKS +syn keyword xsMacro PERL_ARGS_ASSERT_PTR_TABLE_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_PTR_TABLE_FIND +syn keyword xsMacro PERL_ARGS_ASSERT_PTR_TABLE_SPLIT +syn keyword xsMacro PERL_ARGS_ASSERT_PTR_TABLE_STORE +syn keyword xsMacro PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS +syn keyword xsMacro PERL_ARGS_ASSERT_PUT_CODE_POINT +syn keyword xsMacro PERL_ARGS_ASSERT_PUT_RANGE PERL_ARGS_ASSERT_PV_DISPLAY +syn keyword xsMacro PERL_ARGS_ASSERT_PV_ESCAPE PERL_ARGS_ASSERT_PV_PRETTY +syn keyword xsMacro PERL_ARGS_ASSERT_PV_UNI_DISPLAY PERL_ARGS_ASSERT_QERROR +syn keyword xsMacro PERL_ARGS_ASSERT_QSORTSVU +syn keyword xsMacro PERL_ARGS_ASSERT_QUADMATH_FORMAT_NEEDED +syn keyword xsMacro PERL_ARGS_ASSERT_QUADMATH_FORMAT_SINGLE +syn keyword xsMacro PERL_ARGS_ASSERT_REENTRANT_RETRY +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PV +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_SV +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PV +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_SV +syn keyword xsMacro PERL_ARGS_ASSERT_REFCOUNTED_HE_VALUE +syn keyword xsMacro PERL_ARGS_ASSERT_REFTO PERL_ARGS_ASSERT_REG +syn keyword xsMacro PERL_ARGS_ASSERT_REG2LANODE PERL_ARGS_ASSERT_REGANODE +syn keyword xsMacro PERL_ARGS_ASSERT_REGATOM PERL_ARGS_ASSERT_REGBRANCH +syn keyword xsMacro PERL_ARGS_ASSERT_REGCLASS PERL_ARGS_ASSERT_REGCLASS_SWASH +syn keyword xsMacro PERL_ARGS_ASSERT_REGCPPOP PERL_ARGS_ASSERT_REGCPPUSH +syn keyword xsMacro PERL_ARGS_ASSERT_REGCURLY PERL_ARGS_ASSERT_REGDUMP +syn keyword xsMacro PERL_ARGS_ASSERT_REGDUPE_INTERNAL +syn keyword xsMacro PERL_ARGS_ASSERT_REGEXEC_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_REGFREE_INTERNAL +syn keyword xsMacro PERL_ARGS_ASSERT_REGHOP3 PERL_ARGS_ASSERT_REGHOP4 +syn keyword xsMacro PERL_ARGS_ASSERT_REGHOPMAYBE3 PERL_ARGS_ASSERT_REGINCLASS +syn keyword xsMacro PERL_ARGS_ASSERT_REGINSERT PERL_ARGS_ASSERT_REGMATCH +syn keyword xsMacro PERL_ARGS_ASSERT_REGNODE_GUTS PERL_ARGS_ASSERT_REGPATWS +syn keyword xsMacro PERL_ARGS_ASSERT_REGPIECE PERL_ARGS_ASSERT_REGPPOSIXCC +syn keyword xsMacro PERL_ARGS_ASSERT_REGPROP PERL_ARGS_ASSERT_REGREPEAT +syn keyword xsMacro PERL_ARGS_ASSERT_REGTAIL PERL_ARGS_ASSERT_REGTAIL_STUDY +syn keyword xsMacro PERL_ARGS_ASSERT_REGTRY +syn keyword xsMacro PERL_ARGS_ASSERT_REG_CHECK_NAMED_BUFF_MATCHED +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NODE +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH +syn keyword xsMacro PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE +syn keyword xsMacro PERL_ARGS_ASSERT_REG_QR_PACKAGE +syn keyword xsMacro PERL_ARGS_ASSERT_REG_RECODE +syn keyword xsMacro PERL_ARGS_ASSERT_REG_SCAN_NAME +syn keyword xsMacro PERL_ARGS_ASSERT_REG_SKIPCOMMENT +syn keyword xsMacro PERL_ARGS_ASSERT_REG_TEMP_COPY PERL_ARGS_ASSERT_REPEATCPY +syn keyword xsMacro PERL_ARGS_ASSERT_REPORT_REDEFINED_CV +syn keyword xsMacro PERL_ARGS_ASSERT_REQUIRE_PV +syn keyword xsMacro PERL_ARGS_ASSERT_REQUIRE_TIE_MOD +syn keyword xsMacro PERL_ARGS_ASSERT_RE_COMPILE PERL_ARGS_ASSERT_RE_CROAK2 +syn keyword xsMacro PERL_ARGS_ASSERT_RE_DUP_GUTS +syn keyword xsMacro PERL_ARGS_ASSERT_RE_INTUIT_START +syn keyword xsMacro PERL_ARGS_ASSERT_RE_INTUIT_STRING +syn keyword xsMacro PERL_ARGS_ASSERT_RE_OP_COMPILE PERL_ARGS_ASSERT_RNINSTR +syn keyword xsMacro PERL_ARGS_ASSERT_RSIGNAL_SAVE +syn keyword xsMacro PERL_ARGS_ASSERT_RUN_USER_FILTER +syn keyword xsMacro PERL_ARGS_ASSERT_RV2CV_OP_CV PERL_ARGS_ASSERT_RVPV_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_RXRES_FREE +syn keyword xsMacro PERL_ARGS_ASSERT_RXRES_RESTORE +syn keyword xsMacro PERL_ARGS_ASSERT_RXRES_SAVE PERL_ARGS_ASSERT_SAME_DIRENT +syn keyword xsMacro PERL_ARGS_ASSERT_SAVESHAREDSVPV PERL_ARGS_ASSERT_SAVESVPV +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_ADELETE +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_AELEM_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_ALIASED_SV +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_APTR PERL_ARGS_ASSERT_SAVE_ARY +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_BOOL PERL_ARGS_ASSERT_SAVE_CLEARSV +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_DELETE +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_DESTRUCTOR +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_GP PERL_ARGS_ASSERT_SAVE_HASH +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_HDELETE +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_HEK_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_HPTR PERL_ARGS_ASSERT_SAVE_I16 +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_I32 PERL_ARGS_ASSERT_SAVE_I8 +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_INT PERL_ARGS_ASSERT_SAVE_ITEM +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_IV PERL_ARGS_ASSERT_SAVE_LINES +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_LIST PERL_ARGS_ASSERT_SAVE_LONG +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_MAGIC_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_MORTALIZESV +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_NOGV PERL_ARGS_ASSERT_SAVE_PPTR +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SCALAR +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SCALAR_AT +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SET_SVFLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SHARED_PVREF +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SPTR PERL_ARGS_ASSERT_SAVE_STRLEN +syn keyword xsMacro PERL_ARGS_ASSERT_SAVE_SVREF PERL_ARGS_ASSERT_SAVE_VPTR +syn keyword xsMacro PERL_ARGS_ASSERT_SCALARBOOLEAN +syn keyword xsMacro PERL_ARGS_ASSERT_SCALARVOID PERL_ARGS_ASSERT_SCAN_BIN +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_COMMIT PERL_ARGS_ASSERT_SCAN_CONST +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_FORMLINE +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_HEREDOC PERL_ARGS_ASSERT_SCAN_HEX +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_IDENT +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_INPUTSYMBOL +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_NUM PERL_ARGS_ASSERT_SCAN_OCT +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_PAT PERL_ARGS_ASSERT_SCAN_STR +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_SUBST PERL_ARGS_ASSERT_SCAN_TRANS +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_SCAN_VSTRING PERL_ARGS_ASSERT_SCAN_WORD +syn keyword xsMacro PERL_ARGS_ASSERT_SEARCH_CONST PERL_ARGS_ASSERT_SETDEFOUT +syn keyword xsMacro PERL_ARGS_ASSERT_SET_ANYOF_ARG +syn keyword xsMacro PERL_ARGS_ASSERT_SET_CONTEXT PERL_ARGS_ASSERT_SET_PADLIST +syn keyword xsMacro PERL_ARGS_ASSERT_SHARE_HEK +syn keyword xsMacro PERL_ARGS_ASSERT_SHARE_HEK_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SHOULD_WARN_NL +syn keyword xsMacro PERL_ARGS_ASSERT_SIMPLIFY_SORT PERL_ARGS_ASSERT_SI_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_SKIPSPACE_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SLAB_FREE PERL_ARGS_ASSERT_SLAB_TO_RO +syn keyword xsMacro PERL_ARGS_ASSERT_SLAB_TO_RW PERL_ARGS_ASSERT_SOFTREF2XV +syn keyword xsMacro PERL_ARGS_ASSERT_SORTCV PERL_ARGS_ASSERT_SORTCV_STACKED +syn keyword xsMacro PERL_ARGS_ASSERT_SORTCV_XSUB PERL_ARGS_ASSERT_SORTSV +syn keyword xsMacro PERL_ARGS_ASSERT_SORTSV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SPACE_JOIN_NAMES_MORTAL +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_ADD_RANGE PERL_ARGS_ASSERT_SSC_AND +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_ANYTHING +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_CLEAR_LOCALE +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_CP_AND PERL_ARGS_ASSERT_SSC_FINALIZE +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_INIT +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_INTERSECTION +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_IS_ANYTHING +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_IS_CP_POSIXL_INIT +syn keyword xsMacro PERL_ARGS_ASSERT_SSC_OR PERL_ARGS_ASSERT_SSC_UNION +syn keyword xsMacro PERL_ARGS_ASSERT_SS_DUP PERL_ARGS_ASSERT_STACK_GROW +syn keyword xsMacro PERL_ARGS_ASSERT_START_GLOB +syn keyword xsMacro PERL_ARGS_ASSERT_STDIZE_LOCALE +syn keyword xsMacro PERL_ARGS_ASSERT_STRIP_RETURN +syn keyword xsMacro PERL_ARGS_ASSERT_STR_TO_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_STUDY_CHUNK +syn keyword xsMacro PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2BOOL_FLAGS PERL_ARGS_ASSERT_SV_2CV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2IO PERL_ARGS_ASSERT_SV_2IUV_COMMON +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2IV PERL_ARGS_ASSERT_SV_2IV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2NUM PERL_ARGS_ASSERT_SV_2NV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PV PERL_ARGS_ASSERT_SV_2PVBYTE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PVBYTE_NOLEN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PVUTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PVUTF8_NOLEN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2PV_NOLEN PERL_ARGS_ASSERT_SV_2UV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_2UV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_ADD_ARENA +syn keyword xsMacro PERL_ARGS_ASSERT_SV_ADD_BACKREF +syn keyword xsMacro PERL_ARGS_ASSERT_SV_BACKOFF PERL_ARGS_ASSERT_SV_BLESS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_BUF_TO_RO +syn keyword xsMacro PERL_ARGS_ASSERT_SV_BUF_TO_RW PERL_ARGS_ASSERT_SV_CATPV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVF PERL_ARGS_ASSERT_SV_CATPVF_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPVN_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATPV_MG PERL_ARGS_ASSERT_SV_CATSV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATSV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CATSV_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CAT_DECODE PERL_ARGS_ASSERT_SV_CHOP +syn keyword xsMacro PERL_ARGS_ASSERT_SV_CLEAR +syn keyword xsMacro PERL_ARGS_ASSERT_SV_COLLXFRM_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_COPYPV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_COPYPV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DEL_BACKREF +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DERIVED_FROM +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DERIVED_FROM_PV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DERIVED_FROM_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DERIVED_FROM_SV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DISPLAY PERL_ARGS_ASSERT_SV_DOES +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DOES_PV PERL_ARGS_ASSERT_SV_DOES_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DOES_SV PERL_ARGS_ASSERT_SV_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DUP PERL_ARGS_ASSERT_SV_DUP_COMMON +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DUP_INC +syn keyword xsMacro PERL_ARGS_ASSERT_SV_DUP_INC_MULTIPLE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_EXP_GROW +syn keyword xsMacro PERL_ARGS_ASSERT_SV_FORCE_NORMAL +syn keyword xsMacro PERL_ARGS_ASSERT_SV_FORCE_NORMAL_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_FREE2 PERL_ARGS_ASSERT_SV_GETS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_GET_BACKREFS PERL_ARGS_ASSERT_SV_GROW +syn keyword xsMacro PERL_ARGS_ASSERT_SV_INSERT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_INSERT_FLAGS PERL_ARGS_ASSERT_SV_ISA +syn keyword xsMacro PERL_ARGS_ASSERT_SV_IV PERL_ARGS_ASSERT_SV_I_NCMP +syn keyword xsMacro PERL_ARGS_ASSERT_SV_KILL_BACKREFS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_LEN_UTF8_NOMG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_MAGIC PERL_ARGS_ASSERT_SV_MAGICEXT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_MAGICEXT_MGLOB +syn keyword xsMacro PERL_ARGS_ASSERT_SV_NCMP PERL_ARGS_ASSERT_SV_NV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_ONLY_TAINT_GMAGIC +syn keyword xsMacro PERL_ARGS_ASSERT_SV_OR_PV_POS_U2B +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_B2U +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_B2U_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_B2U_MIDWAY +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_U2B +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_U2B_CACHED +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_U2B_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_U2B_FORWARDS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_POS_U2B_MIDWAY PERL_ARGS_ASSERT_SV_PV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVBYTE PERL_ARGS_ASSERT_SV_PVBYTEN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVBYTEN_FORCE PERL_ARGS_ASSERT_SV_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVN_FORCE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVN_FORCE_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVN_NOMG PERL_ARGS_ASSERT_SV_PVUTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVUTF8N +syn keyword xsMacro PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_RECODE_TO_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_SV_REF PERL_ARGS_ASSERT_SV_REFTYPE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_RELEASE_COW +syn keyword xsMacro PERL_ARGS_ASSERT_SV_REPLACE PERL_ARGS_ASSERT_SV_RESET +syn keyword xsMacro PERL_ARGS_ASSERT_SV_RVWEAKEN PERL_ARGS_ASSERT_SV_SETHEK +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETIV PERL_ARGS_ASSERT_SV_SETIV_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETNV PERL_ARGS_ASSERT_SV_SETNV_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPV PERL_ARGS_ASSERT_SV_SETPVF +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVF_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVIV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVIV_MG PERL_ARGS_ASSERT_SV_SETPVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPVN_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETPV_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETREF_IV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETREF_NV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETREF_PV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETREF_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETREF_UV PERL_ARGS_ASSERT_SV_SETSV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETSV_COW +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETSV_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETSV_MG PERL_ARGS_ASSERT_SV_SETUV +syn keyword xsMacro PERL_ARGS_ASSERT_SV_SETUV_MG PERL_ARGS_ASSERT_SV_TAINT +syn keyword xsMacro PERL_ARGS_ASSERT_SV_TAINTED PERL_ARGS_ASSERT_SV_UNGLOB +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UNI_DISPLAY +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UNMAGIC +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UNMAGICEXT PERL_ARGS_ASSERT_SV_UNREF +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UNREF_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UNTAINT PERL_ARGS_ASSERT_SV_UPGRADE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_USEPVN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_USEPVN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_USEPVN_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UTF8_DECODE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UTF8_ENCODE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UTF8_UPGRADE +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UTF8_UPGRADE_FLAGS_GROW +syn keyword xsMacro PERL_ARGS_ASSERT_SV_UV PERL_ARGS_ASSERT_SV_VCATPVF +syn keyword xsMacro PERL_ARGS_ASSERT_SV_VCATPVFN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_VCATPVFN_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_SV_VCATPVF_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SV_VSETPVF PERL_ARGS_ASSERT_SV_VSETPVFN +syn keyword xsMacro PERL_ARGS_ASSERT_SV_VSETPVF_MG +syn keyword xsMacro PERL_ARGS_ASSERT_SWALLOW_BOM PERL_ARGS_ASSERT_SWASH_FETCH +syn keyword xsMacro PERL_ARGS_ASSERT_SWASH_INIT +syn keyword xsMacro PERL_ARGS_ASSERT_SWASH_SCAN_LIST_LINE +syn keyword xsMacro PERL_ARGS_ASSERT_SWATCH_GET PERL_ARGS_ASSERT_SYS_INIT +syn keyword xsMacro PERL_ARGS_ASSERT_SYS_INIT3 +syn keyword xsMacro PERL_ARGS_ASSERT_SYS_INTERN_DUP +syn keyword xsMacro PERL_ARGS_ASSERT_TAINT_PROPER +syn keyword xsMacro PERL_ARGS_ASSERT_TIED_METHOD +syn keyword xsMacro PERL_ARGS_ASSERT_TOKENIZE_USE PERL_ARGS_ASSERT_TOKEQ +syn keyword xsMacro PERL_ARGS_ASSERT_TOKEREPORT +syn keyword xsMacro PERL_ARGS_ASSERT_TOO_FEW_ARGUMENTS_PV +syn keyword xsMacro PERL_ARGS_ASSERT_TOO_MANY_ARGUMENTS_PV +syn keyword xsMacro PERL_ARGS_ASSERT_TO_BYTE_SUBSTR +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UNI_LOWER +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UNI_TITLE +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UNI_UPPER +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_CASE +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_FOLD +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_LOWER +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_SUBSTR +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_TITLE +syn keyword xsMacro PERL_ARGS_ASSERT_TO_UTF8_UPPER +syn keyword xsMacro PERL_ARGS_ASSERT_TRANSLATE_SUBSTR_OFFSETS +syn keyword xsMacro PERL_ARGS_ASSERT_UIV_2BUF PERL_ARGS_ASSERT_UNLNK +syn keyword xsMacro PERL_ARGS_ASSERT_UNPACKSTRING PERL_ARGS_ASSERT_UNPACK_REC +syn keyword xsMacro PERL_ARGS_ASSERT_UNPACK_STR +syn keyword xsMacro PERL_ARGS_ASSERT_UNREFERENCED_TO_TMP_STACK +syn keyword xsMacro PERL_ARGS_ASSERT_UPG_VERSION +syn keyword xsMacro PERL_ARGS_ASSERT_UTF16_TEXTFILTER +syn keyword xsMacro PERL_ARGS_ASSERT_UTF16_TO_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_UTF16_TO_UTF8_REVERSED +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8N_TO_UVCHR +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8N_TO_UVUNI +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_DISTANCE PERL_ARGS_ASSERT_UTF8_HOP +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_LENGTH +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_MG_LEN_CACHE_UPDATE +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_MG_POS_CACHE_UPDATE +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_TO_BYTES +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_TO_UVCHR +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_TO_UVUNI +syn keyword xsMacro PERL_ARGS_ASSERT_UTF8_TO_UVUNI_BUF +syn keyword xsMacro PERL_ARGS_ASSERT_UTILIZE +syn keyword xsMacro PERL_ARGS_ASSERT_UVOFFUNI_TO_UTF8_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_UVUNI_TO_UTF8 +syn keyword xsMacro PERL_ARGS_ASSERT_UVUNI_TO_UTF8_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT_VALIDATE_PROTO +syn keyword xsMacro PERL_ARGS_ASSERT_VALIDATE_SUID +syn keyword xsMacro PERL_ARGS_ASSERT_VALID_UTF8_TO_UVCHR +syn keyword xsMacro PERL_ARGS_ASSERT_VALID_UTF8_TO_UVUNI +syn keyword xsMacro PERL_ARGS_ASSERT_VCMP PERL_ARGS_ASSERT_VDEB +syn keyword xsMacro PERL_ARGS_ASSERT_VFORM PERL_ARGS_ASSERT_VISIT +syn keyword xsMacro PERL_ARGS_ASSERT_VIVIFY_DEFELEM +syn keyword xsMacro PERL_ARGS_ASSERT_VIVIFY_REF PERL_ARGS_ASSERT_VLOAD_MODULE +syn keyword xsMacro PERL_ARGS_ASSERT_VMESS PERL_ARGS_ASSERT_VNEWSVPVF +syn keyword xsMacro PERL_ARGS_ASSERT_VNORMAL PERL_ARGS_ASSERT_VNUMIFY +syn keyword xsMacro PERL_ARGS_ASSERT_VSTRINGIFY PERL_ARGS_ASSERT_VVERIFY +syn keyword xsMacro PERL_ARGS_ASSERT_VWARN PERL_ARGS_ASSERT_VWARNER +syn keyword xsMacro PERL_ARGS_ASSERT_WAIT4PID PERL_ARGS_ASSERT_WARN +syn keyword xsMacro PERL_ARGS_ASSERT_WARNER PERL_ARGS_ASSERT_WARNER_NOCONTEXT +syn keyword xsMacro PERL_ARGS_ASSERT_WARN_NOCONTEXT PERL_ARGS_ASSERT_WARN_SV +syn keyword xsMacro PERL_ARGS_ASSERT_WATCH PERL_ARGS_ASSERT_WHICHSIG_PV +syn keyword xsMacro PERL_ARGS_ASSERT_WHICHSIG_PVN +syn keyword xsMacro PERL_ARGS_ASSERT_WHICHSIG_SV +syn keyword xsMacro PERL_ARGS_ASSERT_WIN32_CROAK_NOT_IMPLEMENTED +syn keyword xsMacro PERL_ARGS_ASSERT_WITH_QUEUED_ERRORS +syn keyword xsMacro PERL_ARGS_ASSERT_WRAP_OP_CHECKER +syn keyword xsMacro PERL_ARGS_ASSERT_WRITE_TO_STDERR +syn keyword xsMacro PERL_ARGS_ASSERT_XS_HANDSHAKE +syn keyword xsMacro PERL_ARGS_ASSERT_XS_VERSION_BOOTCHECK +syn keyword xsMacro PERL_ARGS_ASSERT_YYERROR PERL_ARGS_ASSERT_YYERROR_PV +syn keyword xsMacro PERL_ARGS_ASSERT_YYERROR_PVN PERL_ARGS_ASSERT_YYWARN +syn keyword xsMacro PERL_ARGS_ASSERT__APPEND_RANGE_TO_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT__CORE_SWASH_INIT +syn keyword xsMacro PERL_ARGS_ASSERT__GET_REGCLASS_NONBITMAP_DATA +syn keyword xsMacro PERL_ARGS_ASSERT__GET_SWASH_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_ARRAY_INIT +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_CONTAINS_CP +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_CONTENTS +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_DUMP +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_INTERSECTION_MAYBE_COMPLEMENT_2ND +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_INVERT +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_LEN +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_POPULATE_SWATCH +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_SEARCH +syn keyword xsMacro PERL_ARGS_ASSERT__INVLIST_UNION_MAYBE_COMPLEMENT_2ND +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_CHAR_SLOW +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_FOO +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_IDCONT +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_IDSTART +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_MARK +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_PERL_IDCONT +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_PERL_IDSTART +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_XIDCONT +syn keyword xsMacro PERL_ARGS_ASSERT__IS_UTF8_XIDSTART +syn keyword xsMacro PERL_ARGS_ASSERT__MAKE_EXACTF_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT__NEW_INVLIST_C_ARRAY +syn keyword xsMacro PERL_ARGS_ASSERT__SETUP_CANNED_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT__SWASH_INVERSION_HASH +syn keyword xsMacro PERL_ARGS_ASSERT__SWASH_TO_INVLIST +syn keyword xsMacro PERL_ARGS_ASSERT__TO_FOLD_LATIN1 +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UNI_FOLD_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UPPER_TITLE_LATIN1 +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UTF8_FOLD_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UTF8_LOWER_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UTF8_TITLE_FLAGS +syn keyword xsMacro PERL_ARGS_ASSERT__TO_UTF8_UPPER_FLAGS PERL_ASYNC_CHECK +syn keyword xsMacro PERL_BITFIELD16 PERL_BITFIELD32 PERL_BITFIELD8 +syn keyword xsMacro PERL_CALLCONV PERL_CALLCONV_NO_RET PERL_CHECK_INITED +syn keyword xsMacro PERL_CKDEF PERL_DEB PERL_DEB2 PERL_DEBUG PERL_DEBUG_PAD +syn keyword xsMacro PERL_DEBUG_PAD_ZERO PERL_DECIMAL_VERSION +syn keyword xsMacro PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION +syn keyword xsMacro PERL_DONT_CREATE_GVSV PERL_DRAND48_QUAD +syn keyword xsMacro PERL_ENABLE_EXPERIMENTAL_REGEX_OPTIMISATIONS +syn keyword xsMacro PERL_ENABLE_EXTENDED_TRIE_OPTIMISATION +syn keyword xsMacro PERL_ENABLE_POSITIVE_ASSERTION_STUDY +syn keyword xsMacro PERL_ENABLE_TRIE_OPTIMISATION PERL_EXIT_ABORT +syn keyword xsMacro PERL_EXIT_DESTRUCT_END PERL_EXIT_EXPECTED PERL_EXIT_WARN +syn keyword xsMacro PERL_EXPORT_C PERL_FILE_IS_ABSOLUTE PERL_FILTER_EXISTS +syn keyword xsMacro PERL_FLUSHALL_FOR_CHILD PERL_FPU_INIT PERL_FPU_POST_EXEC +syn keyword xsMacro PERL_FPU_PRE_EXEC PERL_FS_VERSION PERL_FS_VER_FMT +syn keyword xsMacro PERL_GCC_BRACE_GROUPS_FORBIDDEN PERL_GET_CONTEXT +syn keyword xsMacro PERL_GET_INTERP PERL_GET_THX PERL_GET_VARS +syn keyword xsMacro PERL_GIT_UNPUSHED_COMMITS PERL_GLOBAL_STRUCT +syn keyword xsMacro PERL_GPROF_MONCONTROL PERL_HASH PERL_HASH_DEFAULT_HvMAX +syn keyword xsMacro PERL_HASH_FUNC PERL_HASH_FUNC_ONE_AT_A_TIME_HARD +syn keyword xsMacro PERL_HASH_INTERNAL PERL_HASH_ITER_BUCKET +syn keyword xsMacro PERL_HASH_RANDOMIZE_KEYS PERL_HASH_SEED +syn keyword xsMacro PERL_HASH_SEED_BYTES PERL_HASH_WITH_SEED +syn keyword xsMacro PERL_HV_ALLOC_AUX_SIZE PERL_HV_ARRAY_ALLOC_BYTES +syn keyword xsMacro PERL_IMPLICIT_CONTEXT PERL_INTERPRETER_SIZE_UPTO_MEMBER +syn keyword xsMacro PERL_INT_MAX PERL_INT_MIN PERL_LOADMOD_DENY +syn keyword xsMacro PERL_LOADMOD_IMPORT_OPS PERL_LOADMOD_NOIMPORT +syn keyword xsMacro PERL_LONG_MAX PERL_LONG_MIN PERL_MALLOC_WRAP +syn keyword xsMacro PERL_MEMORY_DEBUG_HEADER_SIZE PERL_MG_UFUNC +syn keyword xsMacro PERL_MY_SNPRINTF_GUARDED PERL_MY_SNPRINTF_POST_GUARD +syn keyword xsMacro PERL_MY_VSNPRINTF_GUARDED PERL_MY_VSNPRINTF_POST_GUARD +syn keyword xsMacro PERL_NEW_COPY_ON_WRITE PERL_NO_DEV_RANDOM +syn keyword xsMacro PERL_OBJECT_THIS PERL_OBJECT_THIS_ PERL_PADNAME_MINIMAL +syn keyword xsMacro PERL_PADSEQ_INTRO PERL_PATCHNUM PERL_POISON_EXPR +syn keyword xsMacro PERL_PPADDR_INITED PERL_PPDEF PERL_PRESERVE_IVUV +syn keyword xsMacro PERL_PRIeldbl PERL_PRIfldbl PERL_PRIgldbl +syn keyword xsMacro PERL_PV_ESCAPE_ALL PERL_PV_ESCAPE_DWIM +syn keyword xsMacro PERL_PV_ESCAPE_FIRSTCHAR PERL_PV_ESCAPE_NOBACKSLASH +syn keyword xsMacro PERL_PV_ESCAPE_NOCLEAR PERL_PV_ESCAPE_NONASCII +syn keyword xsMacro PERL_PV_ESCAPE_QUOTE PERL_PV_ESCAPE_RE PERL_PV_ESCAPE_UNI +syn keyword xsMacro PERL_PV_ESCAPE_UNI_DETECT PERL_PV_PRETTY_DUMP +syn keyword xsMacro PERL_PV_PRETTY_ELLIPSES PERL_PV_PRETTY_EXACTSIZE +syn keyword xsMacro PERL_PV_PRETTY_LTGT PERL_PV_PRETTY_NOCLEAR +syn keyword xsMacro PERL_PV_PRETTY_QUOTE PERL_PV_PRETTY_REGPROP PERL_QUAD_MAX +syn keyword xsMacro PERL_QUAD_MIN PERL_REENTR_API PERL_REGMATCH_SLAB_SLOTS +syn keyword xsMacro PERL_RELOCATABLE_INC PERL_REVISION PERL_SAWAMPERSAND +syn keyword xsMacro PERL_SCAN_ALLOW_UNDERSCORES PERL_SCAN_DISALLOW_PREFIX +syn keyword xsMacro PERL_SCAN_GREATER_THAN_UV_MAX PERL_SCAN_SILENT_ILLDIGIT +syn keyword xsMacro PERL_SCAN_SILENT_NON_PORTABLE PERL_SCAN_TRAILING +syn keyword xsMacro PERL_SCNfldbl PERL_SCRIPT_MODE PERL_SEEN_HV_FUNC_H +syn keyword xsMacro PERL_SET_CONTEXT PERL_SET_INTERP PERL_SET_PHASE +syn keyword xsMacro PERL_SET_THX PERL_SHORT_MAX PERL_SHORT_MIN +syn keyword xsMacro PERL_SIGNALS_UNSAFE_FLAG PERL_SNPRINTF_CHECK +syn keyword xsMacro PERL_STACK_OVERFLOW_CHECK PERL_STATIC_INLINE +syn keyword xsMacro PERL_STATIC_INLINE_NO_RET PERL_STATIC_NO_RET +syn keyword xsMacro PERL_STRLEN_EXPAND_SHIFT PERL_STRLEN_ROUNDUP +syn keyword xsMacro PERL_STRLEN_ROUNDUP_QUANTUM PERL_SUBVERSION +syn keyword xsMacro PERL_SUB_DEPTH_WARN PERL_SYS_FPU_INIT PERL_SYS_INIT +syn keyword xsMacro PERL_SYS_INIT3 PERL_SYS_INIT3_BODY PERL_SYS_INIT_BODY +syn keyword xsMacro PERL_SYS_TERM PERL_SYS_TERM_BODY PERL_TARGETARCH +syn keyword xsMacro PERL_UCHAR_MAX PERL_UCHAR_MIN PERL_UINT_MAX PERL_UINT_MIN +syn keyword xsMacro PERL_ULONG_MAX PERL_ULONG_MIN PERL_UNICODE_ALL_FLAGS +syn keyword xsMacro PERL_UNICODE_ARGV PERL_UNICODE_ARGV_FLAG +syn keyword xsMacro PERL_UNICODE_DEFAULT_FLAGS PERL_UNICODE_IN +syn keyword xsMacro PERL_UNICODE_INOUT PERL_UNICODE_INOUT_FLAG +syn keyword xsMacro PERL_UNICODE_IN_FLAG PERL_UNICODE_LOCALE +syn keyword xsMacro PERL_UNICODE_LOCALE_FLAG PERL_UNICODE_MAX +syn keyword xsMacro PERL_UNICODE_OUT PERL_UNICODE_OUT_FLAG PERL_UNICODE_STD +syn keyword xsMacro PERL_UNICODE_STDERR PERL_UNICODE_STDERR_FLAG +syn keyword xsMacro PERL_UNICODE_STDIN PERL_UNICODE_STDIN_FLAG +syn keyword xsMacro PERL_UNICODE_STDOUT PERL_UNICODE_STDOUT_FLAG +syn keyword xsMacro PERL_UNICODE_STD_FLAG PERL_UNICODE_UTF8CACHEASSERT +syn keyword xsMacro PERL_UNICODE_UTF8CACHEASSERT_FLAG +syn keyword xsMacro PERL_UNICODE_WIDESYSCALLS PERL_UNICODE_WIDESYSCALLS_FLAG +syn keyword xsMacro PERL_UNUSED_ARG PERL_UNUSED_CONTEXT PERL_UNUSED_DECL +syn keyword xsMacro PERL_UNUSED_RESULT PERL_UNUSED_VAR PERL_UQUAD_MAX +syn keyword xsMacro PERL_UQUAD_MIN PERL_USES_PL_PIDSTATUS +syn keyword xsMacro PERL_USE_GCC_BRACE_GROUPS PERL_USHORT_MAX PERL_USHORT_MIN +syn keyword xsMacro PERL_VERSION PERL_VERSION_DECIMAL PERL_VERSION_GE +syn keyword xsMacro PERL_VERSION_LT PERL_VERSION_STRING +syn keyword xsMacro PERL_WAIT_FOR_CHILDREN PERL_WARNHOOK_FATAL +syn keyword xsMacro PERL_WRITE_MSG_TO_CONSOLE PERL_XS_EXPORT_C +syn keyword xsMacro PHASE_CHANGE_PROBE PHOSTNAME PIPESOCK_MODE PIPE_OPEN_MODE +syn keyword xsMacro PLUGEXPR PLUGSTMT PLUS PL_AboveLatin1 PL_Argv PL_Cmd +syn keyword xsMacro PL_DBcontrol PL_DBcv PL_DBgv PL_DBline PL_DBsignal +syn keyword xsMacro PL_DBsignal_iv PL_DBsingle PL_DBsingle_iv PL_DBsub +syn keyword xsMacro PL_DBtrace PL_DBtrace_iv PL_Dir PL_Env PL_GCB_invlist +syn keyword xsMacro PL_Gappctx PL_Gcheck PL_Gcheck_mutex PL_Gcsighandlerp +syn keyword xsMacro PL_Gcurinterp PL_Gdo_undump PL_Gdollarzero_mutex +syn keyword xsMacro PL_Gfold_locale PL_Ghash_seed PL_Ghash_seed_set +syn keyword xsMacro PL_Ghints_mutex PL_Gkeyword_plugin PL_Gmalloc_mutex +syn keyword xsMacro PL_Gmmap_page_size PL_Gmy_ctx_mutex PL_Gmy_cxt_index +syn keyword xsMacro PL_Gop_mutex PL_Gop_seq PL_Gop_sequence +syn keyword xsMacro PL_Gperlio_debug_fd PL_Gperlio_fd_refcnt +syn keyword xsMacro PL_Gperlio_fd_refcnt_size PL_Gperlio_mutex PL_Gppaddr +syn keyword xsMacro PL_Gsh_path PL_Gsig_defaulting PL_Gsig_handlers_initted +syn keyword xsMacro PL_Gsig_ignoring PL_Gsig_trapped PL_Gsigfpe_saved +syn keyword xsMacro PL_Gsv_placeholder PL_Gthr_key PL_Gtimesbase +syn keyword xsMacro PL_Guse_safe_putenv PL_Gveto_cleanup PL_Gwatch_pvx +syn keyword xsMacro PL_HASH_RAND_BITS_ENABLED PL_HasMultiCharFold PL_InBitmap +syn keyword xsMacro PL_LIO PL_Latin1 PL_Mem PL_MemParse PL_MemShared +syn keyword xsMacro PL_NonL1NonFinalFold PL_Posix_ptrs PL_Proc +syn keyword xsMacro PL_RANDOM_STATE_TYPE PL_SB_invlist PL_Sock PL_StdIO PL_Sv +syn keyword xsMacro PL_UpperLatin1 PL_WB_invlist PL_XPosix_ptrs PL_Xpv +syn keyword xsMacro PL_amagic_generation PL_an PL_appctx PL_argvgv +syn keyword xsMacro PL_argvout_stack PL_argvoutgv PL_basetime PL_beginav +syn keyword xsMacro PL_beginav_save PL_blockhooks PL_body_arenas +syn keyword xsMacro PL_body_roots PL_bodytarget PL_breakable_sub_gen +syn keyword xsMacro PL_check_mutex PL_checkav PL_checkav_save PL_chopset +syn keyword xsMacro PL_clocktick PL_collation_ix PL_collation_name +syn keyword xsMacro PL_collation_standard PL_collxfrm_base PL_collxfrm_mult +syn keyword xsMacro PL_colors PL_colorset PL_compcv PL_compiling PL_comppad +syn keyword xsMacro PL_comppad_name PL_comppad_name_fill +syn keyword xsMacro PL_comppad_name_floor PL_constpadix PL_cop_seqmax +syn keyword xsMacro PL_cryptseen PL_cshlen PL_csighandlerp PL_curcop +syn keyword xsMacro PL_curcopdb PL_curinterp PL_curpad PL_curpm PL_curstack +syn keyword xsMacro PL_curstackinfo PL_curstash PL_curstname +syn keyword xsMacro PL_custom_op_descs PL_custom_op_names PL_custom_ops +syn keyword xsMacro PL_cv_has_eval PL_dbargs PL_debstash PL_debug +syn keyword xsMacro PL_debug_pad PL_def_layerlist PL_defgv PL_defoutgv +syn keyword xsMacro PL_defstash PL_delaymagic PL_delaymagic_egid +syn keyword xsMacro PL_delaymagic_euid PL_delaymagic_gid PL_delaymagic_uid +syn keyword xsMacro PL_destroyhook PL_diehook PL_dirty PL_do_undump +syn keyword xsMacro PL_dollarzero_mutex PL_doswitches PL_dowarn PL_dumper_fd +syn keyword xsMacro PL_dumpindent PL_e_script PL_efloatbuf PL_efloatsize +syn keyword xsMacro PL_encoding PL_endav PL_envgv PL_errgv PL_errors +syn keyword xsMacro PL_eval_root PL_eval_start PL_evalseq PL_exit_flags +syn keyword xsMacro PL_exitlist PL_exitlistlen PL_fdpid PL_filemode +syn keyword xsMacro PL_firstgv PL_forkprocess PL_formtarget PL_generation +syn keyword xsMacro PL_gensym PL_globalstash PL_globhook PL_hash_rand_bits +syn keyword xsMacro PL_hash_rand_bits_enabled PL_hash_seed PL_hash_seed_set +syn keyword xsMacro PL_hintgv PL_hints PL_hints_mutex PL_hv_fetch_ent_mh +syn keyword xsMacro PL_in_clean_all PL_in_clean_objs PL_in_eval +syn keyword xsMacro PL_in_load_module PL_in_utf8_CTYPE_locale PL_incgv +syn keyword xsMacro PL_initav PL_inplace PL_isarev PL_keyword_plugin +syn keyword xsMacro PL_known_layers PL_last_in_gv PL_last_swash_hv +syn keyword xsMacro PL_last_swash_key PL_last_swash_klen PL_last_swash_slen +syn keyword xsMacro PL_last_swash_tmps PL_lastfd PL_lastgotoprobe +syn keyword xsMacro PL_laststatval PL_laststype PL_lex_encoding PL_localizing +syn keyword xsMacro PL_localpatches PL_lockhook PL_main_cv PL_main_root +syn keyword xsMacro PL_main_start PL_mainstack PL_malloc_mutex PL_markstack +syn keyword xsMacro PL_markstack_max PL_markstack_ptr PL_max_intro_pending +syn keyword xsMacro PL_maxo PL_maxsysfd PL_memory_debug_header PL_mess_sv +syn keyword xsMacro PL_min_intro_pending PL_minus_E PL_minus_F PL_minus_a +syn keyword xsMacro PL_minus_c PL_minus_l PL_minus_n PL_minus_p +syn keyword xsMacro PL_mmap_page_size PL_modcount PL_modglobal +syn keyword xsMacro PL_multideref_pc PL_my_ctx_mutex PL_my_cxt_index +syn keyword xsMacro PL_my_cxt_keys PL_my_cxt_list PL_my_cxt_size PL_nomemok +syn keyword xsMacro PL_numeric_local PL_numeric_name PL_numeric_radix_sv +syn keyword xsMacro PL_numeric_standard PL_ofsgv PL_oldname PL_op +syn keyword xsMacro PL_op_exec_cnt PL_op_mask PL_op_mutex PL_op_seq +syn keyword xsMacro PL_op_sequence PL_opfreehook PL_origalen PL_origargc +syn keyword xsMacro PL_origargv PL_origenviron PL_origfilename PL_ors_sv +syn keyword xsMacro PL_osname PL_pad_reset_pending PL_padix PL_padix_floor +syn keyword xsMacro PL_padlist_generation PL_padname_const PL_padname_undef +syn keyword xsMacro PL_parser PL_patchlevel PL_peepp PL_perl_destruct_level +syn keyword xsMacro PL_perldb PL_perlio PL_perlio_debug_fd +syn keyword xsMacro PL_perlio_fd_refcnt PL_perlio_fd_refcnt_size +syn keyword xsMacro PL_perlio_mutex PL_phase PL_pidstatus PL_preambleav +syn keyword xsMacro PL_profiledata PL_psig_name PL_psig_pend PL_psig_ptr +syn keyword xsMacro PL_ptr_table PL_random_state PL_reentrant_buffer +syn keyword xsMacro PL_reentrant_retint PL_reg_curpm PL_regex_pad +syn keyword xsMacro PL_regex_padav PL_registered_mros PL_regmatch_slab +syn keyword xsMacro PL_regmatch_state PL_replgv PL_restartjmpenv PL_restartop +syn keyword xsMacro PL_rpeepp PL_rs PL_runops PL_savebegin PL_savestack +syn keyword xsMacro PL_savestack_ix PL_savestack_max PL_sawalias +syn keyword xsMacro PL_sawampersand PL_scopestack PL_scopestack_ix +syn keyword xsMacro PL_scopestack_max PL_scopestack_name PL_secondgv +syn keyword xsMacro PL_sharehook PL_sig_defaulting PL_sig_handlers_initted +syn keyword xsMacro PL_sig_ignoring PL_sig_pending PL_sig_trapped +syn keyword xsMacro PL_sigfpe_saved PL_sighandlerp PL_signalhook PL_signals +syn keyword xsMacro PL_sort_RealCmp PL_sortcop PL_sortstash PL_splitstr +syn keyword xsMacro PL_srand_called PL_stack_base PL_stack_max PL_stack_sp +syn keyword xsMacro PL_start_env PL_stashcache PL_stashpad PL_stashpadix +syn keyword xsMacro PL_stashpadmax PL_statbuf PL_statcache PL_statgv +syn keyword xsMacro PL_statname PL_statusvalue PL_statusvalue_posix +syn keyword xsMacro PL_statusvalue_vms PL_stderrgv PL_stdingv PL_strtab +syn keyword xsMacro PL_sub_generation PL_subline PL_subname PL_sv_arenaroot +syn keyword xsMacro PL_sv_consts PL_sv_count PL_sv_no PL_sv_placeholder +syn keyword xsMacro PL_sv_root PL_sv_serial PL_sv_undef PL_sv_yes +syn keyword xsMacro PL_sys_intern PL_taint_warn PL_tainted PL_tainting +syn keyword xsMacro PL_thr_key PL_threadhook PL_timesbase PL_timesbuf +syn keyword xsMacro PL_tmps_floor PL_tmps_ix PL_tmps_max PL_tmps_stack +syn keyword xsMacro PL_top_env PL_toptarget PL_unicode PL_unitcheckav +syn keyword xsMacro PL_unitcheckav_save PL_unlockhook PL_unsafe +syn keyword xsMacro PL_use_safe_putenv PL_utf8_charname_begin +syn keyword xsMacro PL_utf8_charname_continue PL_utf8_foldable +syn keyword xsMacro PL_utf8_foldclosures PL_utf8_idcont PL_utf8_idstart +syn keyword xsMacro PL_utf8_mark PL_utf8_perl_idcont PL_utf8_perl_idstart +syn keyword xsMacro PL_utf8_swash_ptrs PL_utf8_tofold PL_utf8_tolower +syn keyword xsMacro PL_utf8_totitle PL_utf8_toupper PL_utf8_xidcont +syn keyword xsMacro PL_utf8_xidstart PL_utf8cache PL_utf8locale +syn keyword xsMacro PL_veto_cleanup PL_vtbl_arylen PL_vtbl_arylen_p +syn keyword xsMacro PL_vtbl_backref PL_vtbl_bm PL_vtbl_checkcall +syn keyword xsMacro PL_vtbl_collxfrm PL_vtbl_dbline PL_vtbl_debugvar +syn keyword xsMacro PL_vtbl_defelem PL_vtbl_env PL_vtbl_envelem PL_vtbl_fm +syn keyword xsMacro PL_vtbl_hints PL_vtbl_hintselem PL_vtbl_isa +syn keyword xsMacro PL_vtbl_isaelem PL_vtbl_lvref PL_vtbl_mglob PL_vtbl_nkeys +syn keyword xsMacro PL_vtbl_ovrld PL_vtbl_pack PL_vtbl_packelem PL_vtbl_pos +syn keyword xsMacro PL_vtbl_regdata PL_vtbl_regdatum PL_vtbl_regexp +syn keyword xsMacro PL_vtbl_sigelem PL_vtbl_substr PL_vtbl_sv PL_vtbl_taint +syn keyword xsMacro PL_vtbl_utf8 PL_vtbl_uvar PL_vtbl_vec PL_warn_locale +syn keyword xsMacro PL_warnhook PL_watch_pvx PL_watchaddr PL_watchok +syn keyword xsMacro PL_xsubfilename PMFUNC PM_GETRE PM_SETRE PMf_BASE_SHIFT +syn keyword xsMacro PMf_CHARSET PMf_CODELIST_PRIVATE PMf_CONST PMf_CONTINUE +syn keyword xsMacro PMf_EVAL PMf_EXTENDED PMf_EXTENDED_MORE PMf_FOLD +syn keyword xsMacro PMf_GLOBAL PMf_HAS_CV PMf_IS_QR PMf_KEEP PMf_KEEPCOPY +syn keyword xsMacro PMf_MULTILINE PMf_NOCAPTURE PMf_NONDESTRUCT PMf_ONCE +syn keyword xsMacro PMf_RETAINT PMf_SINGLELINE PMf_SPLIT PMf_STRICT PMf_USED +syn keyword xsMacro PMf_USE_RE_EVAL PNf PNfARG POPBLOCK POPEVAL POPFORMAT +syn keyword xsMacro POPLOOP POPMARK POPSTACK POPSTACK_TO POPSUB POPSUBST +syn keyword xsMacro POP_MULTICALL POP_SAVEARRAY POPi POPl POPn POPp POPpbytex +syn keyword xsMacro POPpconstx POPpx POPs POPu POPul POSIXA POSIXD POSIXL +syn keyword xsMacro POSIXU POSIX_CC_COUNT POSIX_SWASH_COUNT POSTDEC POSTINC +syn keyword xsMacro POSTJOIN POWOP PP PREC_LOW PREDEC PREGf_ANCH +syn keyword xsMacro PREGf_ANCH_GPOS PREGf_ANCH_MBOL PREGf_ANCH_SBOL +syn keyword xsMacro PREGf_CANY_SEEN PREGf_CUTGROUP_SEEN PREGf_GPOS_FLOAT +syn keyword xsMacro PREGf_GPOS_SEEN PREGf_IMPLICIT PREGf_NAUGHTY PREGf_NOSCAN +syn keyword xsMacro PREGf_SKIP PREGf_USE_RE_EVAL PREGf_VERBARG_SEEN PREINC +syn keyword xsMacro PRESCAN_VERSION PREVOPER PRINTF_FORMAT_NULL_OK PRIVATEREF +syn keyword xsMacro PRIVLIB PRIVLIB_EXP PRIVSHIFT PROCSELFEXE_PATH PRUNE +syn keyword xsMacro PSEUDO PTHREAD_ATFORK PTHREAD_ATTR_SETDETACHSTATE +syn keyword xsMacro PTHREAD_CREATE PTHREAD_CREATE_JOINABLE +syn keyword xsMacro PTHREAD_GETSPECIFIC PTHREAD_GETSPECIFIC_INT PTR2IV PTR2NV +syn keyword xsMacro PTR2UV PTR2nat PTR2ul PTRSIZE PTRV PUSHBLOCK PUSHEVAL +syn keyword xsMacro PUSHFORMAT PUSHGIVEN PUSHLOOP_FOR PUSHLOOP_PLAIN PUSHMARK +syn keyword xsMacro PUSHSTACK PUSHSTACKi PUSHSUB PUSHSUBST PUSHSUB_BASE +syn keyword xsMacro PUSHSUB_DB PUSHSUB_GET_LVALUE_MASK PUSHTARG PUSHWHEN +syn keyword xsMacro PUSH_MULTICALL PUSH_MULTICALL_FLAGS PUSHi PUSHmortal +syn keyword xsMacro PUSHn PUSHp PUSHs PUSHu PUTBACK PWGECOS PWPASSWD PadARRAY +syn keyword xsMacro PadMAX PadlistARRAY PadlistMAX PadlistNAMES +syn keyword xsMacro PadlistNAMESARRAY PadlistNAMESMAX PadlistREFCNT +syn keyword xsMacro PadnameFLAGS PadnameIsOUR PadnameIsSTATE +syn keyword xsMacro PadnameIsSTATE_on PadnameLEN PadnameLVALUE +syn keyword xsMacro PadnameLVALUE_on PadnameOURSTASH PadnameOURSTASH_set +syn keyword xsMacro PadnameOUTER PadnamePROTOCV PadnamePV PadnameREFCNT +syn keyword xsMacro PadnameREFCNT_dec PadnameSV PadnameTYPE PadnameTYPE_set +syn keyword xsMacro PadnameUTF8 PadnamelistARRAY PadnamelistMAX +syn keyword xsMacro PadnamelistMAXNAMED PadnamelistREFCNT +syn keyword xsMacro PadnamelistREFCNT_dec Pause PeRl_CaTiFy PeRl_INT64_C +syn keyword xsMacro PeRl_StGiFy PeRl_UINT64_C PerlDir_chdir PerlDir_close +syn keyword xsMacro PerlDir_mapA PerlDir_mapW PerlDir_mkdir PerlDir_open +syn keyword xsMacro PerlDir_read PerlDir_rewind PerlDir_rmdir PerlDir_seek +syn keyword xsMacro PerlDir_tell PerlEnv_ENVgetenv PerlEnv_ENVgetenv_len +syn keyword xsMacro PerlEnv_clearenv PerlEnv_free_childdir +syn keyword xsMacro PerlEnv_free_childenv PerlEnv_get_child_IO +syn keyword xsMacro PerlEnv_get_childdir PerlEnv_get_childenv PerlEnv_getenv +syn keyword xsMacro PerlEnv_getenv_len PerlEnv_lib_path PerlEnv_os_id +syn keyword xsMacro PerlEnv_putenv PerlEnv_sitelib_path PerlEnv_uname +syn keyword xsMacro PerlEnv_vendorlib_path PerlIOArg PerlIOBase PerlIONext +syn keyword xsMacro PerlIOSelf PerlIOValid PerlIO_canset_cnt +syn keyword xsMacro PerlIO_exportFILE PerlIO_fast_gets PerlIO_fdopen +syn keyword xsMacro PerlIO_findFILE PerlIO_getc PerlIO_getname +syn keyword xsMacro PerlIO_has_base PerlIO_has_cntptr PerlIO_importFILE +syn keyword xsMacro PerlIO_isutf8 PerlIO_open PerlIO_printf PerlIO_putc +syn keyword xsMacro PerlIO_puts PerlIO_releaseFILE PerlIO_reopen +syn keyword xsMacro PerlIO_rewind PerlIO_stdoutf PerlIO_tmpfile PerlIO_ungetc +syn keyword xsMacro PerlIO_vprintf PerlLIO_access PerlLIO_chmod PerlLIO_chown +syn keyword xsMacro PerlLIO_chsize PerlLIO_close PerlLIO_dup PerlLIO_dup2 +syn keyword xsMacro PerlLIO_flock PerlLIO_fstat PerlLIO_ioctl PerlLIO_isatty +syn keyword xsMacro PerlLIO_link PerlLIO_lseek PerlLIO_lstat PerlLIO_mkstemp +syn keyword xsMacro PerlLIO_mktemp PerlLIO_open PerlLIO_open3 PerlLIO_read +syn keyword xsMacro PerlLIO_rename PerlLIO_setmode PerlLIO_stat +syn keyword xsMacro PerlLIO_tmpnam PerlLIO_umask PerlLIO_unlink PerlLIO_utime +syn keyword xsMacro PerlLIO_write PerlMemParse_calloc PerlMemParse_free +syn keyword xsMacro PerlMemParse_free_lock PerlMemParse_get_lock +syn keyword xsMacro PerlMemParse_is_locked PerlMemParse_malloc +syn keyword xsMacro PerlMemParse_realloc PerlMemShared_calloc +syn keyword xsMacro PerlMemShared_free PerlMemShared_free_lock +syn keyword xsMacro PerlMemShared_get_lock PerlMemShared_is_locked +syn keyword xsMacro PerlMemShared_malloc PerlMemShared_realloc PerlMem_calloc +syn keyword xsMacro PerlMem_free PerlMem_free_lock PerlMem_get_lock +syn keyword xsMacro PerlMem_is_locked PerlMem_malloc PerlMem_realloc +syn keyword xsMacro PerlProc_DynaLoad PerlProc_GetOSError PerlProc__exit +syn keyword xsMacro PerlProc_abort PerlProc_crypt PerlProc_execl +syn keyword xsMacro PerlProc_execv PerlProc_execvp PerlProc_exit +syn keyword xsMacro PerlProc_fork PerlProc_getegid PerlProc_geteuid +syn keyword xsMacro PerlProc_getgid PerlProc_getlogin PerlProc_getpid +syn keyword xsMacro PerlProc_gettimeofday PerlProc_getuid PerlProc_kill +syn keyword xsMacro PerlProc_killpg PerlProc_lasthost PerlProc_longjmp +syn keyword xsMacro PerlProc_pause PerlProc_pclose PerlProc_pipe +syn keyword xsMacro PerlProc_popen PerlProc_popen_list PerlProc_setgid +syn keyword xsMacro PerlProc_setjmp PerlProc_setuid PerlProc_signal +syn keyword xsMacro PerlProc_sleep PerlProc_spawnvp PerlProc_times +syn keyword xsMacro PerlProc_wait PerlProc_waitpid PerlSIO_canset_cnt +syn keyword xsMacro PerlSIO_clearerr PerlSIO_fast_gets PerlSIO_fclose +syn keyword xsMacro PerlSIO_fdopen PerlSIO_fdupopen PerlSIO_feof +syn keyword xsMacro PerlSIO_ferror PerlSIO_fflush PerlSIO_fgetc +syn keyword xsMacro PerlSIO_fgetpos PerlSIO_fgets PerlSIO_fileno +syn keyword xsMacro PerlSIO_fopen PerlSIO_fputc PerlSIO_fputs PerlSIO_fread +syn keyword xsMacro PerlSIO_freopen PerlSIO_fseek PerlSIO_fsetpos +syn keyword xsMacro PerlSIO_ftell PerlSIO_fwrite PerlSIO_get_base +syn keyword xsMacro PerlSIO_get_bufsiz PerlSIO_get_cnt PerlSIO_get_ptr +syn keyword xsMacro PerlSIO_has_base PerlSIO_has_cntptr PerlSIO_init +syn keyword xsMacro PerlSIO_printf PerlSIO_rewind PerlSIO_set_cnt +syn keyword xsMacro PerlSIO_set_ptr PerlSIO_setbuf PerlSIO_setlinebuf +syn keyword xsMacro PerlSIO_setvbuf PerlSIO_stderr PerlSIO_stdin +syn keyword xsMacro PerlSIO_stdout PerlSIO_stdoutf PerlSIO_tmpfile +syn keyword xsMacro PerlSIO_ungetc PerlSIO_vprintf PerlSock_accept +syn keyword xsMacro PerlSock_bind PerlSock_closesocket PerlSock_connect +syn keyword xsMacro PerlSock_endhostent PerlSock_endnetent +syn keyword xsMacro PerlSock_endprotoent PerlSock_endservent +syn keyword xsMacro PerlSock_gethostbyaddr PerlSock_gethostbyname +syn keyword xsMacro PerlSock_gethostent PerlSock_gethostname +syn keyword xsMacro PerlSock_getnetbyaddr PerlSock_getnetbyname +syn keyword xsMacro PerlSock_getnetent PerlSock_getpeername +syn keyword xsMacro PerlSock_getprotobyname PerlSock_getprotobynumber +syn keyword xsMacro PerlSock_getprotoent PerlSock_getservbyname +syn keyword xsMacro PerlSock_getservbyport PerlSock_getservent +syn keyword xsMacro PerlSock_getsockname PerlSock_getsockopt PerlSock_htonl +syn keyword xsMacro PerlSock_htons PerlSock_inet_addr PerlSock_inet_ntoa +syn keyword xsMacro PerlSock_listen PerlSock_ntohl PerlSock_ntohs +syn keyword xsMacro PerlSock_recv PerlSock_recvfrom PerlSock_select +syn keyword xsMacro PerlSock_send PerlSock_sendto PerlSock_sethostent +syn keyword xsMacro PerlSock_setnetent PerlSock_setprotoent +syn keyword xsMacro PerlSock_setservent PerlSock_setsockopt PerlSock_shutdown +syn keyword xsMacro PerlSock_socket PerlSock_socketpair Perl_acos Perl_asin +syn keyword xsMacro Perl_assert Perl_atan Perl_atan2 Perl_atof Perl_atof2 +syn keyword xsMacro Perl_ceil Perl_cos Perl_cosh Perl_custom_op_xop +syn keyword xsMacro Perl_debug_log Perl_drand48 Perl_drand48_init +syn keyword xsMacro Perl_error_log Perl_exp Perl_floor Perl_fmod +syn keyword xsMacro Perl_fp_class_denorm Perl_fp_class_inf Perl_fp_class_nan +syn keyword xsMacro Perl_fp_class_ndenorm Perl_fp_class_ninf +syn keyword xsMacro Perl_fp_class_nnorm Perl_fp_class_norm +syn keyword xsMacro Perl_fp_class_nzero Perl_fp_class_pdenorm +syn keyword xsMacro Perl_fp_class_pinf Perl_fp_class_pnorm +syn keyword xsMacro Perl_fp_class_pzero Perl_fp_class_qnan Perl_fp_class_snan +syn keyword xsMacro Perl_fp_class_zero Perl_free_c_backtrace Perl_frexp +syn keyword xsMacro Perl_isfinite Perl_isfinitel Perl_isinf Perl_isnan +syn keyword xsMacro Perl_ldexp Perl_log Perl_log10 Perl_malloc_good_size +syn keyword xsMacro Perl_modf Perl_pow Perl_pp_accept Perl_pp_aelemfast_lex +syn keyword xsMacro Perl_pp_andassign Perl_pp_avalues Perl_pp_bind +syn keyword xsMacro Perl_pp_bit_xor Perl_pp_chmod Perl_pp_chomp +syn keyword xsMacro Perl_pp_connect Perl_pp_cos Perl_pp_custom +syn keyword xsMacro Perl_pp_dbmclose Perl_pp_dofile Perl_pp_dor +syn keyword xsMacro Perl_pp_dorassign Perl_pp_dump Perl_pp_egrent +syn keyword xsMacro Perl_pp_enetent Perl_pp_eprotoent Perl_pp_epwent +syn keyword xsMacro Perl_pp_eservent Perl_pp_exp Perl_pp_fcntl +syn keyword xsMacro Perl_pp_ftatime Perl_pp_ftbinary Perl_pp_ftblk +syn keyword xsMacro Perl_pp_ftchr Perl_pp_ftctime Perl_pp_ftdir +syn keyword xsMacro Perl_pp_fteexec Perl_pp_fteowned Perl_pp_fteread +syn keyword xsMacro Perl_pp_ftewrite Perl_pp_ftfile Perl_pp_ftmtime +syn keyword xsMacro Perl_pp_ftpipe Perl_pp_ftrexec Perl_pp_ftrwrite +syn keyword xsMacro Perl_pp_ftsgid Perl_pp_ftsize Perl_pp_ftsock +syn keyword xsMacro Perl_pp_ftsuid Perl_pp_ftsvtx Perl_pp_ftzero +syn keyword xsMacro Perl_pp_getpeername Perl_pp_getsockname Perl_pp_ggrgid +syn keyword xsMacro Perl_pp_ggrnam Perl_pp_ghbyaddr Perl_pp_ghbyname +syn keyword xsMacro Perl_pp_gnbyaddr Perl_pp_gnbyname Perl_pp_gpbyname +syn keyword xsMacro Perl_pp_gpbynumber Perl_pp_gpwnam Perl_pp_gpwuid +syn keyword xsMacro Perl_pp_gsbyname Perl_pp_gsbyport Perl_pp_gsockopt +syn keyword xsMacro Perl_pp_hex Perl_pp_i_postdec Perl_pp_i_postinc +syn keyword xsMacro Perl_pp_i_predec Perl_pp_i_preinc Perl_pp_keys +syn keyword xsMacro Perl_pp_kill Perl_pp_lcfirst Perl_pp_lineseq +syn keyword xsMacro Perl_pp_listen Perl_pp_localtime Perl_pp_log +syn keyword xsMacro Perl_pp_lstat Perl_pp_mapstart Perl_pp_msgctl +syn keyword xsMacro Perl_pp_msgget Perl_pp_msgrcv Perl_pp_msgsnd +syn keyword xsMacro Perl_pp_nbit_xor Perl_pp_orassign Perl_pp_padany +syn keyword xsMacro Perl_pp_pop Perl_pp_postdec Perl_pp_predec Perl_pp_reach +syn keyword xsMacro Perl_pp_read Perl_pp_recv Perl_pp_regcmaybe +syn keyword xsMacro Perl_pp_rindex Perl_pp_rv2hv Perl_pp_rvalues Perl_pp_say +syn keyword xsMacro Perl_pp_sbit_xor Perl_pp_scalar Perl_pp_schomp +syn keyword xsMacro Perl_pp_scope Perl_pp_seek Perl_pp_semop Perl_pp_send +syn keyword xsMacro Perl_pp_sge Perl_pp_sgrent Perl_pp_sgt Perl_pp_shmctl +syn keyword xsMacro Perl_pp_shmget Perl_pp_shmread Perl_pp_shutdown +syn keyword xsMacro Perl_pp_slt Perl_pp_snetent Perl_pp_socket +syn keyword xsMacro Perl_pp_sprotoent Perl_pp_spwent Perl_pp_sqrt +syn keyword xsMacro Perl_pp_sservent Perl_pp_ssockopt Perl_pp_symlink +syn keyword xsMacro Perl_pp_transr Perl_pp_unlink Perl_pp_utime +syn keyword xsMacro Perl_pp_values Perl_safesysmalloc_size Perl_sharepvn +syn keyword xsMacro Perl_signbit Perl_sin Perl_sinh Perl_sqrt Perl_strtod +syn keyword xsMacro Perl_tan Perl_tanh Perl_va_copy PmopSTASH PmopSTASHPV +syn keyword xsMacro PmopSTASHPV_set PmopSTASH_set Poison PoisonFree PoisonNew +syn keyword xsMacro PoisonPADLIST PoisonWith QR_PAT_MODS QUADKIND QUAD_IS_INT +syn keyword xsMacro QUAD_IS_INT64_T QUAD_IS_LONG QUAD_IS_LONG_LONG +syn keyword xsMacro QUAD_IS___INT64 QUESTION_MARK_CTRL QWLIST RANDBITS +syn keyword xsMacro RANDOM_R_PROTO RD_NODATA READDIR64_R_PROTO +syn keyword xsMacro READDIR_R_PROTO READ_XDIGIT REENTRANT_PROTO_B_B +syn keyword xsMacro REENTRANT_PROTO_B_BI REENTRANT_PROTO_B_BW +syn keyword xsMacro REENTRANT_PROTO_B_CCD REENTRANT_PROTO_B_CCS +syn keyword xsMacro REENTRANT_PROTO_B_IBI REENTRANT_PROTO_B_IBW +syn keyword xsMacro REENTRANT_PROTO_B_SB REENTRANT_PROTO_B_SBI +syn keyword xsMacro REENTRANT_PROTO_I_BI REENTRANT_PROTO_I_BW +syn keyword xsMacro REENTRANT_PROTO_I_CCSBWR REENTRANT_PROTO_I_CCSD +syn keyword xsMacro REENTRANT_PROTO_I_CII REENTRANT_PROTO_I_CIISD +syn keyword xsMacro REENTRANT_PROTO_I_CSBI REENTRANT_PROTO_I_CSBIR +syn keyword xsMacro REENTRANT_PROTO_I_CSBWR REENTRANT_PROTO_I_CSBWRE +syn keyword xsMacro REENTRANT_PROTO_I_CSD REENTRANT_PROTO_I_CWISBWRE +syn keyword xsMacro REENTRANT_PROTO_I_CWISD REENTRANT_PROTO_I_D +syn keyword xsMacro REENTRANT_PROTO_I_H REENTRANT_PROTO_I_IBI +syn keyword xsMacro REENTRANT_PROTO_I_IBW REENTRANT_PROTO_I_ICBI +syn keyword xsMacro REENTRANT_PROTO_I_ICSBWR REENTRANT_PROTO_I_ICSD +syn keyword xsMacro REENTRANT_PROTO_I_ID REENTRANT_PROTO_I_IISD +syn keyword xsMacro REENTRANT_PROTO_I_ISBWR REENTRANT_PROTO_I_ISD +syn keyword xsMacro REENTRANT_PROTO_I_LISBI REENTRANT_PROTO_I_LISD +syn keyword xsMacro REENTRANT_PROTO_I_SB REENTRANT_PROTO_I_SBI +syn keyword xsMacro REENTRANT_PROTO_I_SBIE REENTRANT_PROTO_I_SBIH +syn keyword xsMacro REENTRANT_PROTO_I_SBIR REENTRANT_PROTO_I_SBWR +syn keyword xsMacro REENTRANT_PROTO_I_SBWRE REENTRANT_PROTO_I_SD +syn keyword xsMacro REENTRANT_PROTO_I_TISD REENTRANT_PROTO_I_TS +syn keyword xsMacro REENTRANT_PROTO_I_TSBI REENTRANT_PROTO_I_TSBIR +syn keyword xsMacro REENTRANT_PROTO_I_TSBWR REENTRANT_PROTO_I_TSR +syn keyword xsMacro REENTRANT_PROTO_I_TsISBWRE REENTRANT_PROTO_I_UISBWRE +syn keyword xsMacro REENTRANT_PROTO_I_uISBWRE REENTRANT_PROTO_S_CBI +syn keyword xsMacro REENTRANT_PROTO_S_CCSBI REENTRANT_PROTO_S_CIISBIE +syn keyword xsMacro REENTRANT_PROTO_S_CSBI REENTRANT_PROTO_S_CSBIE +syn keyword xsMacro REENTRANT_PROTO_S_CWISBIE REENTRANT_PROTO_S_CWISBWIE +syn keyword xsMacro REENTRANT_PROTO_S_ICSBI REENTRANT_PROTO_S_ISBI +syn keyword xsMacro REENTRANT_PROTO_S_LISBI REENTRANT_PROTO_S_SBI +syn keyword xsMacro REENTRANT_PROTO_S_SBIE REENTRANT_PROTO_S_SBW +syn keyword xsMacro REENTRANT_PROTO_S_TISBI REENTRANT_PROTO_S_TSBI +syn keyword xsMacro REENTRANT_PROTO_S_TSBIE REENTRANT_PROTO_S_TWISBIE +syn keyword xsMacro REENTRANT_PROTO_V_D REENTRANT_PROTO_V_H +syn keyword xsMacro REENTRANT_PROTO_V_ID REENTR_H REENTR_MEMZERO REF +syn keyword xsMacro REFCOUNTED_HE_EXISTS REFCOUNTED_HE_KEY_UTF8 REFF REFFA +syn keyword xsMacro REFFL REFFU REFGEN REF_HE_KEY REGMATCH_STATE_MAX +syn keyword xsMacro REGNODE_MAX REGNODE_SIMPLE REGNODE_VARIES REG_ANY +syn keyword xsMacro REG_CANY_SEEN REG_CUTGROUP_SEEN REG_EXTFLAGS_NAME_SIZE +syn keyword xsMacro REG_GOSTART_SEEN REG_GPOS_SEEN REG_INFTY +syn keyword xsMacro REG_INTFLAGS_NAME_SIZE REG_LOOKBEHIND_SEEN REG_MAGIC +syn keyword xsMacro REG_RECURSE_SEEN REG_RUN_ON_COMMENT_SEEN +syn keyword xsMacro REG_TOP_LEVEL_BRANCHES_SEEN REG_UNBOUNDED_QUANTIFIER_SEEN +syn keyword xsMacro REG_UNFOLDED_MULTI_SEEN REG_VERBARG_SEEN +syn keyword xsMacro REG_ZERO_LEN_SEEN RELOP RENUM REQUIRE RESTORE_ERRNO +syn keyword xsMacro RESTORE_LC_NUMERIC RESTORE_LC_NUMERIC_STANDARD +syn keyword xsMacro RESTORE_LC_NUMERIC_UNDERLYING RESTORE_NUMERIC_LOCAL +syn keyword xsMacro RESTORE_NUMERIC_STANDARD RETPUSHNO RETPUSHUNDEF +syn keyword xsMacro RETPUSHYES RETSETNO RETSETTARG RETSETUNDEF RETSETYES +syn keyword xsMacro RETURN RETURNOP RETURNX RETURN_PROBE REXEC_CHECKED +syn keyword xsMacro REXEC_COPY_SKIP_POST REXEC_COPY_SKIP_PRE REXEC_COPY_STR +syn keyword xsMacro REXEC_FAIL_ON_UNDERFLOW REXEC_IGNOREPOS REXEC_NOT_FIRST +syn keyword xsMacro REXEC_SCREAM RE_DEBUG_COMPILE_DUMP RE_DEBUG_COMPILE_FLAGS +syn keyword xsMacro RE_DEBUG_COMPILE_MASK RE_DEBUG_COMPILE_OPTIMISE +syn keyword xsMacro RE_DEBUG_COMPILE_PARSE RE_DEBUG_COMPILE_TEST +syn keyword xsMacro RE_DEBUG_COMPILE_TRIE RE_DEBUG_EXECUTE_INTUIT +syn keyword xsMacro RE_DEBUG_EXECUTE_MASK RE_DEBUG_EXECUTE_MATCH +syn keyword xsMacro RE_DEBUG_EXECUTE_TRIE RE_DEBUG_EXTRA_BUFFERS +syn keyword xsMacro RE_DEBUG_EXTRA_GPOS RE_DEBUG_EXTRA_MASK +syn keyword xsMacro RE_DEBUG_EXTRA_OFFDEBUG RE_DEBUG_EXTRA_OFFSETS +syn keyword xsMacro RE_DEBUG_EXTRA_OPTIMISE RE_DEBUG_EXTRA_STACK +syn keyword xsMacro RE_DEBUG_EXTRA_STATE RE_DEBUG_EXTRA_TRIE RE_DEBUG_FLAG +syn keyword xsMacro RE_DEBUG_FLAGS RE_PV_COLOR_DECL RE_PV_QUOTED_DECL +syn keyword xsMacro RE_SV_DUMPLEN RE_SV_ESCAPE RE_SV_TAIL +syn keyword xsMacro RE_TRACK_PATTERN_OFFSETS RE_TRIE_MAXBUF_INIT +syn keyword xsMacro RE_TRIE_MAXBUF_NAME RMS_DIR RMS_FAC RMS_FEX RMS_FNF +syn keyword xsMacro RMS_IFI RMS_ISI RMS_PRV ROTL32 ROTL64 ROTL_UV +syn keyword xsMacro RUNOPS_DEFAULT RV2CVOPCV_FLAG_MASK RV2CVOPCV_MARK_EARLY +syn keyword xsMacro RV2CVOPCV_MAYBE_NAME_GV RV2CVOPCV_RETURN_NAME_GV +syn keyword xsMacro RV2CVOPCV_RETURN_STUB RX_ANCHORED_SUBSTR RX_ANCHORED_UTF8 +syn keyword xsMacro RX_BUFF_IDX_CARET_FULLMATCH RX_BUFF_IDX_CARET_POSTMATCH +syn keyword xsMacro RX_BUFF_IDX_CARET_PREMATCH RX_BUFF_IDX_FULLMATCH +syn keyword xsMacro RX_BUFF_IDX_POSTMATCH RX_BUFF_IDX_PREMATCH +syn keyword xsMacro RX_CHECK_SUBSTR RX_COMPFLAGS RX_ENGINE RX_EXTFLAGS +syn keyword xsMacro RX_FLOAT_SUBSTR RX_FLOAT_UTF8 RX_GOFS RX_HAS_CUTGROUP +syn keyword xsMacro RX_INTFLAGS RX_ISTAINTED RX_LASTCLOSEPAREN RX_LASTPAREN +syn keyword xsMacro RX_MATCH_COPIED RX_MATCH_COPIED_off RX_MATCH_COPIED_on +syn keyword xsMacro RX_MATCH_COPIED_set RX_MATCH_COPY_FREE RX_MATCH_TAINTED +syn keyword xsMacro RX_MATCH_TAINTED_off RX_MATCH_TAINTED_on +syn keyword xsMacro RX_MATCH_TAINTED_set RX_MATCH_UTF8 RX_MATCH_UTF8_off +syn keyword xsMacro RX_MATCH_UTF8_on RX_MATCH_UTF8_set RX_MINLEN RX_MINLENRET +syn keyword xsMacro RX_NPARENS RX_OFFS RX_PRECOMP RX_PRECOMP_const RX_PRELEN +syn keyword xsMacro RX_REFCNT RX_SAVED_COPY RX_SUBBEG RX_SUBCOFFSET RX_SUBLEN +syn keyword xsMacro RX_SUBOFFSET RX_TAINT_on RX_UTF8 RX_WRAPLEN RX_WRAPPED +syn keyword xsMacro RX_WRAPPED_const RX_ZERO_LEN RXapif_ALL RXapif_CLEAR +syn keyword xsMacro RXapif_DELETE RXapif_EXISTS RXapif_FETCH RXapif_FIRSTKEY +syn keyword xsMacro RXapif_NEXTKEY RXapif_ONE RXapif_REGNAME RXapif_REGNAMES +syn keyword xsMacro RXapif_REGNAMES_COUNT RXapif_SCALAR RXapif_STORE +syn keyword xsMacro RXf_BASE_SHIFT RXf_CHECK_ALL RXf_COPY_DONE RXf_EVAL_SEEN +syn keyword xsMacro RXf_INTUIT_TAIL RXf_IS_ANCHORED RXf_MATCH_UTF8 +syn keyword xsMacro RXf_NO_INPLACE_SUBST RXf_NULL RXf_PMf_CHARSET +syn keyword xsMacro RXf_PMf_COMPILETIME RXf_PMf_EXTENDED +syn keyword xsMacro RXf_PMf_EXTENDED_MORE RXf_PMf_FLAGCOPYMASK RXf_PMf_FOLD +syn keyword xsMacro RXf_PMf_KEEPCOPY RXf_PMf_MULTILINE RXf_PMf_NOCAPTURE +syn keyword xsMacro RXf_PMf_SINGLELINE RXf_PMf_SPLIT RXf_PMf_STD_PMMOD +syn keyword xsMacro RXf_PMf_STD_PMMOD_SHIFT RXf_PMf_STRICT RXf_SKIPWHITE +syn keyword xsMacro RXf_SPLIT RXf_START_ONLY RXf_TAINTED RXf_TAINTED_SEEN +syn keyword xsMacro RXf_UNBOUNDED_QUANTIFIER_SEEN RXf_USE_INTUIT +syn keyword xsMacro RXf_USE_INTUIT_ML RXf_USE_INTUIT_NOML RXf_WHITE RXi_GET +syn keyword xsMacro RXi_GET_DECL RXi_SET RXp_COMPFLAGS RXp_EXTFLAGS +syn keyword xsMacro RXp_INTFLAGS RXp_MATCH_COPIED RXp_MATCH_COPIED_off +syn keyword xsMacro RXp_MATCH_COPIED_on RXp_MATCH_TAINTED +syn keyword xsMacro RXp_MATCH_TAINTED_on RXp_MATCH_UTF8 RXp_PAREN_NAMES ReANY +syn keyword xsMacro ReREFCNT_dec ReREFCNT_inc Renew Renewc RsPARA RsRECORD +syn keyword xsMacro RsSIMPLE RsSNARF SAFE_TRIE_NODENUM SANY SAVEADELETE +syn keyword xsMacro SAVEBOOL SAVECLEARSV SAVECOMPILEWARNINGS SAVECOMPPAD +syn keyword xsMacro SAVECOPFILE SAVECOPFILE_FREE SAVECOPLINE +syn keyword xsMacro SAVECOPSTASH_FREE SAVEDELETE SAVEDESTRUCTOR +syn keyword xsMacro SAVEDESTRUCTOR_X SAVEFREECOPHH SAVEFREEOP SAVEFREEPADNAME +syn keyword xsMacro SAVEFREEPV SAVEFREESV SAVEGENERICPV SAVEGENERICSV +syn keyword xsMacro SAVEHDELETE SAVEHINTS SAVEI16 SAVEI32 SAVEI8 SAVEINT +syn keyword xsMacro SAVEIV SAVELONG SAVEMORTALIZESV SAVEOP +syn keyword xsMacro SAVEPADSVANDMORTALIZE SAVEPARSER SAVEPPTR SAVESETSVFLAGS +syn keyword xsMacro SAVESHAREDPV SAVESPTR SAVESTACK_POS SAVESWITCHSTACK +syn keyword xsMacro SAVETMPS SAVEVPTR SAVE_DEFSV SAVE_ERRNO SAVE_MASK +syn keyword xsMacro SAVE_TIGHT_SHIFT SAVEf_KEEPOLDELEM SAVEf_SETMAGIC +syn keyword xsMacro SAVEt_ADELETE SAVEt_AELEM SAVEt_ALLOC SAVEt_APTR +syn keyword xsMacro SAVEt_ARG0_MAX SAVEt_ARG1_MAX SAVEt_ARG2_MAX SAVEt_AV +syn keyword xsMacro SAVEt_BOOL SAVEt_CLEARPADRANGE SAVEt_CLEARSV +syn keyword xsMacro SAVEt_COMPILE_WARNINGS SAVEt_COMPPAD SAVEt_DELETE +syn keyword xsMacro SAVEt_DESTRUCTOR SAVEt_DESTRUCTOR_X SAVEt_FREECOPHH +syn keyword xsMacro SAVEt_FREEOP SAVEt_FREEPADNAME SAVEt_FREEPV SAVEt_FREESV +syn keyword xsMacro SAVEt_GENERIC_PVREF SAVEt_GENERIC_SVREF SAVEt_GP +syn keyword xsMacro SAVEt_GP_ALIASED_SV SAVEt_GVSLOT SAVEt_GVSV SAVEt_HELEM +syn keyword xsMacro SAVEt_HINTS SAVEt_HPTR SAVEt_HV SAVEt_I16 SAVEt_I32 +syn keyword xsMacro SAVEt_I32_SMALL SAVEt_I8 SAVEt_INT SAVEt_INT_SMALL +syn keyword xsMacro SAVEt_ITEM SAVEt_IV SAVEt_LONG SAVEt_MORTALIZESV +syn keyword xsMacro SAVEt_NSTAB SAVEt_OP SAVEt_PADSV_AND_MORTALIZE +syn keyword xsMacro SAVEt_PARSER SAVEt_PPTR SAVEt_READONLY_OFF +syn keyword xsMacro SAVEt_REGCONTEXT SAVEt_SAVESWITCHSTACK SAVEt_SET_SVFLAGS +syn keyword xsMacro SAVEt_SHARED_PVREF SAVEt_SPTR SAVEt_STACK_POS +syn keyword xsMacro SAVEt_STRLEN SAVEt_SV SAVEt_SVREF SAVEt_VPTR +syn keyword xsMacro SAWAMPERSAND_LEFT SAWAMPERSAND_MIDDLE SAWAMPERSAND_RIGHT +syn keyword xsMacro SBOL SB_ENUM_COUNT SCAN_DEF SCAN_REPL SCAN_TR +syn keyword xsMacro SCAN_VERSION SCHED_YIELD SCOPE_SAVES_SIGNAL_MASK SEEK_CUR +syn keyword xsMacro SEEK_END SEEK_SET SELECT_MIN_BITS SEOL SETERRNO +syn keyword xsMacro SETGRENT_R_PROTO SETHOSTENT_R_PROTO SETLOCALE_R_PROTO +syn keyword xsMacro SETNETENT_R_PROTO SETPROTOENT_R_PROTO SETPWENT_R_PROTO +syn keyword xsMacro SETSERVENT_R_PROTO SETTARG SET_MARK_OFFSET +syn keyword xsMacro SET_NUMERIC_LOCAL SET_NUMERIC_STANDARD +syn keyword xsMacro SET_NUMERIC_UNDERLYING SET_THR SET_THREAD_SELF SETi SETn +syn keyword xsMacro SETp SETs SETu SHARP_S_SKIP SHIFTOP SHORTSIZE SH_PATH +syn keyword xsMacro SIGABRT SIGILL SIG_NAME SIG_NUM SIG_SIZE SINGLE_PAT_MOD +syn keyword xsMacro SIPROUND SITEARCH SITEARCH_EXP SITELIB SITELIB_EXP +syn keyword xsMacro SITELIB_STEM SIZE_ALIGN SIZE_ONLY SKIP SKIP_next +syn keyword xsMacro SKIP_next_fail SLOPPYDIVIDE SOCKET_OPEN_MODE SPAGAIN +syn keyword xsMacro SPRINTF_RETURNS_STRLEN SRAND48_R_PROTO SRANDOM_R_PROTO +syn keyword xsMacro SSCHECK SSC_MATCHES_EMPTY_STRING SSGROW SSNEW SSNEWa +syn keyword xsMacro SSNEWat SSNEWt SSPOPBOOL SSPOPDPTR SSPOPDXPTR SSPOPINT +syn keyword xsMacro SSPOPIV SSPOPLONG SSPOPPTR SSPOPUV SSPTR SSPTRt +syn keyword xsMacro SSPUSHBOOL SSPUSHDPTR SSPUSHDXPTR SSPUSHINT SSPUSHIV +syn keyword xsMacro SSPUSHLONG SSPUSHPTR SSPUSHUV SS_ACCVIO SS_ADD_BOOL +syn keyword xsMacro SS_ADD_DPTR SS_ADD_DXPTR SS_ADD_END SS_ADD_INT SS_ADD_IV +syn keyword xsMacro SS_ADD_LONG SS_ADD_PTR SS_ADD_UV SS_BUFFEROVF +syn keyword xsMacro SS_DEVOFFLINE SS_IVCHAN SS_MAXPUSH SS_NOPRIV SS_NORMAL +syn keyword xsMacro SSize_t_MAX ST STANDARD_C STAR STARTPERL START_EXTERN_C +syn keyword xsMacro START_MY_CXT STATIC STATIC_ASSERT_1 STATIC_ASSERT_2 +syn keyword xsMacro STATIC_ASSERT_GLOBAL STATIC_ASSERT_STMT +syn keyword xsMacro STATUS_ALL_FAILURE STATUS_ALL_SUCCESS STATUS_CURRENT +syn keyword xsMacro STATUS_EXIT STATUS_EXIT_SET STATUS_NATIVE +syn keyword xsMacro STATUS_NATIVE_CHILD_SET STATUS_UNIX STATUS_UNIX_EXIT_SET +syn keyword xsMacro STATUS_UNIX_SET STDCHAR STDIO_STREAM_ARRAY STD_PAT_MODS +syn keyword xsMacro STD_PMMOD_FLAGS_CLEAR STD_PMMOD_FLAGS_PARSE_X_WARN +syn keyword xsMacro STMT_END STMT_START STORE_LC_NUMERIC_FORCE_TO_UNDERLYING +syn keyword xsMacro STORE_LC_NUMERIC_SET_TO_NEEDED +syn keyword xsMacro STORE_LC_NUMERIC_STANDARD_SET_UNDERLYING +syn keyword xsMacro STORE_LC_NUMERIC_UNDERLYING_SET_STANDARD +syn keyword xsMacro STORE_NUMERIC_LOCAL_SET_STANDARD +syn keyword xsMacro STORE_NUMERIC_STANDARD_FORCE_LOCAL +syn keyword xsMacro STORE_NUMERIC_STANDARD_SET_LOCAL STRERROR_R_PROTO STRING +syn keyword xsMacro STRINGIFY STRUCT_OFFSET STRUCT_SV STR_LEN STR_SZ +syn keyword xsMacro STR_WITH_LEN ST_INO_SIGN ST_INO_SIZE SUB +syn keyword xsMacro SUBST_TAINT_BOOLRET SUBST_TAINT_PAT SUBST_TAINT_REPL +syn keyword xsMacro SUBST_TAINT_RETAINT SUBST_TAINT_STR SUBVERSION SUCCEED +syn keyword xsMacro SUSPEND SVTYPEMASK SV_CATBYTES SV_CATUTF8 +syn keyword xsMacro SV_CHECK_THINKFIRST SV_CHECK_THINKFIRST_COW_DROP SV_CONST +syn keyword xsMacro SV_CONSTS_COUNT SV_CONST_BINMODE SV_CONST_CLEAR +syn keyword xsMacro SV_CONST_CLOSE SV_CONST_DELETE SV_CONST_DESTROY +syn keyword xsMacro SV_CONST_EOF SV_CONST_EXISTS SV_CONST_EXTEND +syn keyword xsMacro SV_CONST_FETCH SV_CONST_FETCHSIZE SV_CONST_FILENO +syn keyword xsMacro SV_CONST_FIRSTKEY SV_CONST_GETC SV_CONST_NEXTKEY +syn keyword xsMacro SV_CONST_OPEN SV_CONST_POP SV_CONST_PRINT SV_CONST_PRINTF +syn keyword xsMacro SV_CONST_PUSH SV_CONST_READ SV_CONST_READLINE +syn keyword xsMacro SV_CONST_RETURN SV_CONST_SCALAR SV_CONST_SEEK +syn keyword xsMacro SV_CONST_SHIFT SV_CONST_SPLICE SV_CONST_STORE +syn keyword xsMacro SV_CONST_STORESIZE SV_CONST_TELL SV_CONST_TIEARRAY +syn keyword xsMacro SV_CONST_TIEHANDLE SV_CONST_TIEHASH SV_CONST_TIESCALAR +syn keyword xsMacro SV_CONST_UNSHIFT SV_CONST_UNTIE SV_CONST_WRITE +syn keyword xsMacro SV_COW_DROP_PV SV_COW_OTHER_PVS SV_COW_REFCNT_MAX +syn keyword xsMacro SV_COW_SHARED_HASH_KEYS SV_DO_COW_SVSETSV +syn keyword xsMacro SV_FORCE_UTF8_UPGRADE SV_GMAGIC SV_HAS_TRAILING_NUL +syn keyword xsMacro SV_IMMEDIATE_UNREF SV_MUTABLE_RETURN SV_NOSTEAL +syn keyword xsMacro SV_SAVED_COPY SV_SKIP_OVERLOAD SV_SMAGIC +syn keyword xsMacro SV_UNDEF_RETURNS_NULL SV_UTF8_NO_ENCODING SVrepl_EVAL +syn keyword xsMacro SVt_FIRST SVt_MASK SWITCHSTACK SYMBIAN SYSTEM_GMTIME_MAX +syn keyword xsMacro SYSTEM_GMTIME_MIN SYSTEM_LOCALTIME_MAX +syn keyword xsMacro SYSTEM_LOCALTIME_MIN S_IEXEC S_IFIFO S_IFMT S_IREAD +syn keyword xsMacro S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU S_ISBLK +syn keyword xsMacro S_ISCHR S_ISDIR S_ISFIFO S_ISGID S_ISLNK S_ISREG S_ISSOCK +syn keyword xsMacro S_ISUID S_IWGRP S_IWOTH S_IWRITE S_IWUSR S_IXGRP S_IXOTH +syn keyword xsMacro S_IXUSR S_PAT_MODS Safefree Semctl Sigjmp_buf Siglongjmp +syn keyword xsMacro Sigsetjmp Size_t_MAX Size_t_size StGiFy StashHANDLER Stat +syn keyword xsMacro Strerror Strtol Strtoul StructCopy SvAMAGIC SvANY +syn keyword xsMacro SvCANCOW SvCANEXISTDELETE SvCOMPILED SvCOMPILED_off +syn keyword xsMacro SvCOMPILED_on SvCUR SvCUR_set SvDESTROYABLE SvEND +syn keyword xsMacro SvEND_set SvENDx SvEVALED SvEVALED_off SvEVALED_on SvFAKE +syn keyword xsMacro SvFAKE_off SvFAKE_on SvFLAGS SvGAMAGIC SvGETMAGIC SvGID +syn keyword xsMacro SvGMAGICAL SvGMAGICAL_off SvGMAGICAL_on SvGROW +syn keyword xsMacro SvGROW_mutable SvIMMORTAL SvIOK SvIOK_UV SvIOK_nog +syn keyword xsMacro SvIOK_nogthink SvIOK_notUV SvIOK_off SvIOK_on SvIOK_only +syn keyword xsMacro SvIOK_only_UV SvIOKp SvIOKp_on SvIS_FREED SvIV SvIVX +syn keyword xsMacro SvIVXx SvIV_nomg SvIV_please SvIV_please_nomg SvIV_set +syn keyword xsMacro SvIVx SvIsCOW SvIsCOW_normal SvIsCOW_off SvIsCOW_on +syn keyword xsMacro SvIsCOW_shared_hash SvIsUV SvIsUV_off SvIsUV_on SvLEN +syn keyword xsMacro SvLEN_set SvLENx SvLOCK SvMAGIC SvMAGICAL SvMAGICAL_off +syn keyword xsMacro SvMAGICAL_on SvMAGIC_set SvNIOK SvNIOK_nog +syn keyword xsMacro SvNIOK_nogthink SvNIOK_off SvNIOKp SvNOK SvNOK_nog +syn keyword xsMacro SvNOK_nogthink SvNOK_off SvNOK_on SvNOK_only SvNOKp +syn keyword xsMacro SvNOKp_on SvNV SvNVX SvNVXx SvNV_nomg SvNV_set SvNVx +syn keyword xsMacro SvOBJECT SvOBJECT_off SvOBJECT_on SvOK SvOK_off +syn keyword xsMacro SvOK_off_exc_UV SvOKp SvOOK SvOOK_off SvOOK_offset +syn keyword xsMacro SvOOK_on SvOURSTASH SvOURSTASH_set SvPADMY SvPADMY_on +syn keyword xsMacro SvPADSTALE SvPADSTALE_off SvPADSTALE_on SvPADTMP +syn keyword xsMacro SvPADTMP_off SvPADTMP_on SvPAD_OUR SvPAD_OUR_on +syn keyword xsMacro SvPAD_STATE SvPAD_STATE_on SvPAD_TYPED SvPAD_TYPED_on +syn keyword xsMacro SvPCS_IMPORTED SvPCS_IMPORTED_off SvPCS_IMPORTED_on +syn keyword xsMacro SvPEEK SvPOK SvPOK_byte_nog SvPOK_byte_nogthink +syn keyword xsMacro SvPOK_byte_pure_nogthink SvPOK_nog SvPOK_nogthink +syn keyword xsMacro SvPOK_off SvPOK_on SvPOK_only SvPOK_only_UTF8 +syn keyword xsMacro SvPOK_pure_nogthink SvPOK_utf8_nog SvPOK_utf8_nogthink +syn keyword xsMacro SvPOK_utf8_pure_nogthink SvPOKp SvPOKp_on SvPV SvPVX +syn keyword xsMacro SvPVX_const SvPVX_mutable SvPVXtrue SvPVXx SvPV_const +syn keyword xsMacro SvPV_flags SvPV_flags_const SvPV_flags_const_nolen +syn keyword xsMacro SvPV_flags_mutable SvPV_force SvPV_force_flags +syn keyword xsMacro SvPV_force_flags_mutable SvPV_force_flags_nolen +syn keyword xsMacro SvPV_force_mutable SvPV_force_nolen SvPV_force_nomg +syn keyword xsMacro SvPV_force_nomg_nolen SvPV_free SvPV_mutable SvPV_nolen +syn keyword xsMacro SvPV_nolen_const SvPV_nomg SvPV_nomg_const +syn keyword xsMacro SvPV_nomg_const_nolen SvPV_nomg_nolen SvPV_renew SvPV_set +syn keyword xsMacro SvPV_shrink_to_cur SvPVbyte SvPVbyte_force SvPVbyte_nolen +syn keyword xsMacro SvPVbytex SvPVbytex_force SvPVbytex_nolen SvPVutf8 +syn keyword xsMacro SvPVutf8_force SvPVutf8_nolen SvPVutf8x SvPVutf8x_force +syn keyword xsMacro SvPVx SvPVx_const SvPVx_force SvPVx_nolen +syn keyword xsMacro SvPVx_nolen_const SvREADONLY SvREADONLY_off SvREADONLY_on +syn keyword xsMacro SvREFCNT SvREFCNT_IMMORTAL SvREFCNT_dec SvREFCNT_dec_NN +syn keyword xsMacro SvREFCNT_inc SvREFCNT_inc_NN SvREFCNT_inc_simple +syn keyword xsMacro SvREFCNT_inc_simple_NN SvREFCNT_inc_simple_void +syn keyword xsMacro SvREFCNT_inc_simple_void_NN SvREFCNT_inc_void +syn keyword xsMacro SvREFCNT_inc_void_NN SvRELEASE_IVX SvRELEASE_IVX_ +syn keyword xsMacro SvRMAGICAL SvRMAGICAL_off SvRMAGICAL_on SvROK SvROK_off +syn keyword xsMacro SvROK_on SvRV SvRV_const SvRV_set SvRVx SvRX SvRXOK +syn keyword xsMacro SvSCREAM SvSCREAM_off SvSCREAM_on SvSETMAGIC SvSHARE +syn keyword xsMacro SvSHARED_HASH SvSHARED_HEK_FROM_PV SvSMAGICAL +syn keyword xsMacro SvSMAGICAL_off SvSMAGICAL_on SvSTASH SvSTASH_set +syn keyword xsMacro SvSetMagicSV SvSetMagicSV_nosteal SvSetSV SvSetSV_and +syn keyword xsMacro SvSetSV_nosteal SvSetSV_nosteal_and SvTAIL SvTAIL_off +syn keyword xsMacro SvTAIL_on SvTAINT SvTAINTED SvTAINTED_off SvTAINTED_on +syn keyword xsMacro SvTEMP SvTEMP_off SvTEMP_on SvTHINKFIRST SvTIED_mg +syn keyword xsMacro SvTIED_obj SvTRUE SvTRUE_NN SvTRUE_common SvTRUE_nomg +syn keyword xsMacro SvTRUE_nomg_NN SvTRUEx SvTRUEx_nomg SvTYPE SvUID SvUNLOCK +syn keyword xsMacro SvUOK SvUOK_nog SvUOK_nogthink SvUPGRADE SvUTF8 +syn keyword xsMacro SvUTF8_off SvUTF8_on SvUV SvUVX SvUVXx SvUV_nomg SvUV_set +syn keyword xsMacro SvUVx SvVALID SvVALID_off SvVALID_on SvVOK SvVSTRING_mg +syn keyword xsMacro SvWEAKREF SvWEAKREF_off SvWEAKREF_on Sv_Grow TAIL TAINT +syn keyword xsMacro TAINTING_get TAINTING_set TAINT_ENV TAINT_IF TAINT_NOT +syn keyword xsMacro TAINT_PROPER TAINT_WARN_get TAINT_WARN_set TAINT_get +syn keyword xsMacro TAINT_set THING THR THREAD_CREATE +syn keyword xsMacro THREAD_CREATE_NEEDS_STACK THREAD_POST_CREATE +syn keyword xsMacro THREAD_RET_CAST THREAD_RET_TYPE +syn keyword xsMacro TIED_METHOD_ARGUMENTS_ON_STACK +syn keyword xsMacro TIED_METHOD_MORTALIZE_NOT_NEEDED TIED_METHOD_SAY +syn keyword xsMacro TIME64_CONFIG_H TIME64_H TM TMPNAM_R_PROTO TOO_LATE_FOR +syn keyword xsMacro TOO_LATE_FOR_ TOPBLOCK TOPMARK TOPi TOPl TOPm1s TOPn TOPp +syn keyword xsMacro TOPp1s TOPpx TOPs TOPu TOPul TRIE TRIEC TRIE_BITMAP +syn keyword xsMacro TRIE_BITMAP_BYTE TRIE_BITMAP_CLEAR TRIE_BITMAP_SET +syn keyword xsMacro TRIE_BITMAP_TEST TRIE_CHARCOUNT TRIE_NODEIDX TRIE_NODENUM +syn keyword xsMacro TRIE_WORDS_OFFSET TRIE_next TRIE_next_fail TRUE +syn keyword xsMacro TTYNAME_R_PROTO TWO_BYTE_UTF8_TO_NATIVE +syn keyword xsMacro TWO_BYTE_UTF8_TO_UNI TYPE_CHARS TYPE_DIGITS Timeval +syn keyword xsMacro U16SIZE U16TYPE U16_CONST U16_MAX U16_MIN U32SIZE U32TYPE +syn keyword xsMacro U32_ALIGNMENT_REQUIRED U32_CONST U32_MAX U32_MAX_P1 +syn keyword xsMacro U32_MAX_P1_HALF U32_MIN U64SIZE U64TYPE U64_CONST U8SIZE +syn keyword xsMacro U8TO16_LE U8TO32_LE U8TO64_LE U8TYPE U8_MAX U8_MIN +syn keyword xsMacro UCHARAT UINT32_MIN UINT64_C UINT64_MIN UMINUS +syn keyword xsMacro UNALIGNED_SAFE UNDERBAR UNICODE_ALLOW_ANY +syn keyword xsMacro UNICODE_ALLOW_SUPER UNICODE_ALLOW_SURROGATE +syn keyword xsMacro UNICODE_BYTE_ORDER_MARK UNICODE_DISALLOW_FE_FF +syn keyword xsMacro UNICODE_DISALLOW_ILLEGAL_INTERCHANGE +syn keyword xsMacro UNICODE_DISALLOW_NONCHAR UNICODE_DISALLOW_SUPER +syn keyword xsMacro UNICODE_DISALLOW_SURROGATE +syn keyword xsMacro UNICODE_GREEK_CAPITAL_LETTER_SIGMA +syn keyword xsMacro UNICODE_GREEK_SMALL_LETTER_FINAL_SIGMA +syn keyword xsMacro UNICODE_GREEK_SMALL_LETTER_SIGMA +syn keyword xsMacro UNICODE_IS_BYTE_ORDER_MARK UNICODE_IS_FE_FF +syn keyword xsMacro UNICODE_IS_NONCHAR UNICODE_IS_REPLACEMENT +syn keyword xsMacro UNICODE_IS_SUPER UNICODE_IS_SURROGATE UNICODE_LINE_SEPA_0 +syn keyword xsMacro UNICODE_LINE_SEPA_1 UNICODE_LINE_SEPA_2 +syn keyword xsMacro UNICODE_PARA_SEPA_0 UNICODE_PARA_SEPA_1 +syn keyword xsMacro UNICODE_PARA_SEPA_2 UNICODE_PAT_MOD UNICODE_PAT_MODS +syn keyword xsMacro UNICODE_REPLACEMENT UNICODE_SURROGATE_FIRST +syn keyword xsMacro UNICODE_SURROGATE_LAST UNICODE_WARN_FE_FF +syn keyword xsMacro UNICODE_WARN_ILLEGAL_INTERCHANGE UNICODE_WARN_NONCHAR +syn keyword xsMacro UNICODE_WARN_SUPER UNICODE_WARN_SURROGATE UNIOP UNIOPSUB +syn keyword xsMacro UNISKIP UNI_DISPLAY_BACKSLASH UNI_DISPLAY_ISPRINT +syn keyword xsMacro UNI_DISPLAY_QQ UNI_DISPLAY_REGEX UNI_IS_INVARIANT +syn keyword xsMacro UNI_TO_NATIVE UNKNOWN_ERRNO_MSG UNLESS UNLESSM UNLIKELY +syn keyword xsMacro UNLINK UNLOCK_DOLLARZERO_MUTEX UNLOCK_LC_NUMERIC_STANDARD +syn keyword xsMacro UNLOCK_NUMERIC_STANDARD UNOP_AUX_item_sv UNTIL +syn keyword xsMacro UPG_VERSION USE USE_64_BIT_ALL USE_64_BIT_INT +syn keyword xsMacro USE_64_BIT_RAWIO USE_64_BIT_STDIO USE_BSDPGRP +syn keyword xsMacro USE_DYNAMIC_LOADING USE_ENVIRON_ARRAY USE_HASH_SEED +syn keyword xsMacro USE_HEAP_INSTEAD_OF_STACK USE_LARGE_FILES USE_LEFT +syn keyword xsMacro USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE +syn keyword xsMacro USE_LOCALE_MESSAGES USE_LOCALE_MONETARY +syn keyword xsMacro USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO +syn keyword xsMacro USE_PERL_PERTURB_KEYS USE_REENTRANT_API +syn keyword xsMacro USE_SEMCTL_SEMID_DS USE_SEMCTL_SEMUN USE_STAT_BLOCKS +syn keyword xsMacro USE_STAT_RDEV USE_STDIO USE_STRUCT_COPY USE_SYSTEM_GMTIME +syn keyword xsMacro USE_SYSTEM_LOCALTIME USE_THREADS USE_TM64 +syn keyword xsMacro USE_UTF8_IN_NAMES USING_MSVC6 UTF8SKIP UTF8_ACCUMULATE +syn keyword xsMacro UTF8_ALLOW_ANY UTF8_ALLOW_ANYUV UTF8_ALLOW_CONTINUATION +syn keyword xsMacro UTF8_ALLOW_DEFAULT UTF8_ALLOW_EMPTY UTF8_ALLOW_FFFF +syn keyword xsMacro UTF8_ALLOW_LONG UTF8_ALLOW_NON_CONTINUATION +syn keyword xsMacro UTF8_ALLOW_SHORT UTF8_ALLOW_SURROGATE UTF8_CHECK_ONLY +syn keyword xsMacro UTF8_DISALLOW_FE_FF UTF8_DISALLOW_ILLEGAL_INTERCHANGE +syn keyword xsMacro UTF8_DISALLOW_NONCHAR UTF8_DISALLOW_SUPER +syn keyword xsMacro UTF8_DISALLOW_SURROGATE UTF8_EIGHT_BIT_HI +syn keyword xsMacro UTF8_EIGHT_BIT_LO +syn keyword xsMacro UTF8_FIRST_PROBLEMATIC_CODE_POINT_FIRST_BYTE +syn keyword xsMacro UTF8_IS_ABOVE_LATIN1 UTF8_IS_CONTINUATION +syn keyword xsMacro UTF8_IS_CONTINUED UTF8_IS_DOWNGRADEABLE_START +syn keyword xsMacro UTF8_IS_INVARIANT UTF8_IS_NEXT_CHAR_DOWNGRADEABLE +syn keyword xsMacro UTF8_IS_NONCHAR_ +syn keyword xsMacro UTF8_IS_NONCHAR_GIVEN_THAT_NON_SUPER_AND_GE_PROBLEMATIC +syn keyword xsMacro UTF8_IS_REPLACEMENT UTF8_IS_START UTF8_IS_SUPER +syn keyword xsMacro UTF8_IS_SURROGATE UTF8_MAXBYTES UTF8_MAXBYTES_CASE +syn keyword xsMacro UTF8_MAXLEN UTF8_MAX_FOLD_CHAR_EXPAND UTF8_QUAD_MAX +syn keyword xsMacro UTF8_TWO_BYTE_HI UTF8_TWO_BYTE_HI_nocast UTF8_TWO_BYTE_LO +syn keyword xsMacro UTF8_TWO_BYTE_LO_nocast UTF8_WARN_FE_FF +syn keyword xsMacro UTF8_WARN_ILLEGAL_INTERCHANGE UTF8_WARN_NONCHAR +syn keyword xsMacro UTF8_WARN_SUPER UTF8_WARN_SURROGATE UTF8f UTF8fARG +syn keyword xsMacro UTF_ACCUMULATION_OVERFLOW_MASK UTF_ACCUMULATION_SHIFT +syn keyword xsMacro UTF_CONTINUATION_MARK UTF_CONTINUATION_MASK +syn keyword xsMacro UTF_START_MARK UTF_START_MASK UTF_TO_NATIVE +syn keyword xsMacro UVCHR_IS_INVARIANT UVCHR_SKIP UVSIZE UVTYPE UVXf UV_DIG +syn keyword xsMacro UV_MAX UV_MAX_P1 UV_MAX_P1_HALF UV_MIN UVf U_32 U_I U_L +syn keyword xsMacro U_S U_V Uid_t_f Uid_t_sign Uid_t_size VAL_EAGAIN +syn keyword xsMacro VAL_O_NONBLOCK VCMP VERB VNORMAL VNUMIFY VOL VSTRINGIFY +syn keyword xsMacro VTBL_amagic VTBL_amagicelem VTBL_arylen VTBL_bm +syn keyword xsMacro VTBL_collxfrm VTBL_dbline VTBL_defelem VTBL_env +syn keyword xsMacro VTBL_envelem VTBL_fm VTBL_glob VTBL_isa VTBL_isaelem +syn keyword xsMacro VTBL_mglob VTBL_nkeys VTBL_pack VTBL_packelem VTBL_pos +syn keyword xsMacro VTBL_regdata VTBL_regdatum VTBL_regexp VTBL_sigelem +syn keyword xsMacro VTBL_substr VTBL_sv VTBL_taint VTBL_uvar VTBL_vec +syn keyword xsMacro VT_NATIVE VUTIL_REPLACE_CORE VVERIFY WARN_ALL +syn keyword xsMacro WARN_ALLstring WARN_AMBIGUOUS WARN_BAREWORD WARN_CLOSED +syn keyword xsMacro WARN_CLOSURE WARN_DEBUGGING WARN_DEPRECATED WARN_DIGIT +syn keyword xsMacro WARN_EXEC WARN_EXITING WARN_EXPERIMENTAL +syn keyword xsMacro WARN_EXPERIMENTAL__AUTODEREF WARN_EXPERIMENTAL__BITWISE +syn keyword xsMacro WARN_EXPERIMENTAL__CONST_ATTR +syn keyword xsMacro WARN_EXPERIMENTAL__LEXICAL_SUBS +syn keyword xsMacro WARN_EXPERIMENTAL__LEXICAL_TOPIC +syn keyword xsMacro WARN_EXPERIMENTAL__POSTDEREF +syn keyword xsMacro WARN_EXPERIMENTAL__REFALIASING +syn keyword xsMacro WARN_EXPERIMENTAL__REGEX_SETS +syn keyword xsMacro WARN_EXPERIMENTAL__RE_STRICT +syn keyword xsMacro WARN_EXPERIMENTAL__SIGNATURES +syn keyword xsMacro WARN_EXPERIMENTAL__SMARTMATCH +syn keyword xsMacro WARN_EXPERIMENTAL__WIN32_PERLIO WARN_GLOB +syn keyword xsMacro WARN_ILLEGALPROTO WARN_IMPRECISION WARN_INPLACE +syn keyword xsMacro WARN_INTERNAL WARN_IO WARN_LAYER WARN_LOCALE WARN_MALLOC +syn keyword xsMacro WARN_MISC WARN_MISSING WARN_NEWLINE WARN_NONCHAR +syn keyword xsMacro WARN_NONEstring WARN_NON_UNICODE WARN_NUMERIC WARN_ONCE +syn keyword xsMacro WARN_OVERFLOW WARN_PACK WARN_PARENTHESIS WARN_PIPE +syn keyword xsMacro WARN_PORTABLE WARN_PRECEDENCE WARN_PRINTF WARN_PROTOTYPE +syn keyword xsMacro WARN_QW WARN_RECURSION WARN_REDEFINE WARN_REDUNDANT +syn keyword xsMacro WARN_REGEXP WARN_RESERVED WARN_SEMICOLON WARN_SEVERE +syn keyword xsMacro WARN_SIGNAL WARN_SUBSTR WARN_SURROGATE WARN_SYNTAX +syn keyword xsMacro WARN_SYSCALLS WARN_TAINT WARN_THREADS WARN_UNINITIALIZED +syn keyword xsMacro WARN_UNOPENED WARN_UNPACK WARN_UNTIE WARN_UTF8 WARN_VOID +syn keyword xsMacro WARNshift WARNsize WB_ENUM_COUNT WEXITSTATUS WHEN WHILE +syn keyword xsMacro WHILEM WHILEM_A_max WHILEM_A_max_fail WHILEM_A_min +syn keyword xsMacro WHILEM_A_min_fail WHILEM_A_pre WHILEM_A_pre_fail +syn keyword xsMacro WHILEM_B_max WHILEM_B_max_fail WHILEM_B_min +syn keyword xsMacro WHILEM_B_min_fail WIDEST_UTYPE WIFEXITED WIFSIGNALED +syn keyword xsMacro WIFSTOPPED WIN32SCK_IS_STDSCK WNOHANG WORD WSTOPSIG +syn keyword xsMacro WTERMSIG WUNTRACED XDIGIT_VALUE XHvTOTALKEYS +syn keyword xsMacro XOPd_xop_class XOPd_xop_desc XOPd_xop_name XOPd_xop_peep +syn keyword xsMacro XOPf_xop_class XOPf_xop_desc XOPf_xop_name XOPf_xop_peep +syn keyword xsMacro XPUSHTARG XPUSHi XPUSHmortal XPUSHn XPUSHp XPUSHs XPUSHu +syn keyword xsMacro XPUSHundef XS XSANY XSINTERFACE_CVT XSINTERFACE_CVT_ANON +syn keyword xsMacro XSINTERFACE_FUNC XSINTERFACE_FUNC_SET XSPROTO XSRETURN +syn keyword xsMacro XSRETURN_EMPTY XSRETURN_IV XSRETURN_NO XSRETURN_NV +syn keyword xsMacro XSRETURN_PV XSRETURN_PVN XSRETURN_UNDEF XSRETURN_UV +syn keyword xsMacro XSRETURN_YES XST_mIV XST_mNO XST_mNV XST_mPV XST_mPVN +syn keyword xsMacro XST_mUNDEF XST_mUV XST_mYES XS_APIVERSION_BOOTCHECK +syn keyword xsMacro XS_APIVERSION_POPMARK_BOOTCHECK +syn keyword xsMacro XS_APIVERSION_SETXSUBFN_POPMARK_BOOTCHECK +syn keyword xsMacro XS_BOTHVERSION_BOOTCHECK XS_BOTHVERSION_POPMARK_BOOTCHECK +syn keyword xsMacro XS_BOTHVERSION_SETXSUBFN_POPMARK_BOOTCHECK +syn keyword xsMacro XS_DYNAMIC_FILENAME XS_EXTERNAL XS_INTERNAL +syn keyword xsMacro XS_SETXSUBFN_POPMARK XS_VERSION_BOOTCHECK XSprePUSH +syn keyword xsMacro XTENDED_PAT_MOD XopDISABLE XopENABLE XopENTRY +syn keyword xsMacro XopENTRYCUSTOM XopENTRY_set XopFLAGS YADAYADA YIELD +syn keyword xsMacro YYEMPTY YYSTYPE_IS_DECLARED YYSTYPE_IS_TRIVIAL +syn keyword xsMacro YYTOKENTYPE Zero ZeroD _ _CANNOT _CC_ALPHA +syn keyword xsMacro _CC_ALPHANUMERIC _CC_ASCII _CC_BLANK _CC_CASED +syn keyword xsMacro _CC_CHARNAME_CONT _CC_CNTRL _CC_DIGIT _CC_GRAPH +syn keyword xsMacro _CC_IDFIRST _CC_IS_IN_SOME_FOLD _CC_LOWER +syn keyword xsMacro _CC_MNEMONIC_CNTRL _CC_NONLATIN1_FOLD +syn keyword xsMacro _CC_NONLATIN1_SIMPLE_FOLD _CC_NON_FINAL_FOLD _CC_PRINT +syn keyword xsMacro _CC_PUNCT _CC_QUOTEMETA _CC_SPACE _CC_UPPER _CC_VERTSPACE +syn keyword xsMacro _CC_WORDCHAR _CC_XDIGIT _CC_mask _CC_mask_A +syn keyword xsMacro _CHECK_AND_OUTPUT_WIDE_LOCALE_CP_MSG +syn keyword xsMacro _CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG +syn keyword xsMacro _CHECK_AND_WARN_PROBLEMATIC_LOCALE +syn keyword xsMacro _CORE_SWASH_INIT_ACCEPT_INVLIST +syn keyword xsMacro _CORE_SWASH_INIT_RETURN_IF_UNDEF +syn keyword xsMacro _CORE_SWASH_INIT_USER_DEFINED_PROPERTY _CPERLarg +syn keyword xsMacro _FIRST_NON_SWASH_CC _GNU_SOURCE +syn keyword xsMacro _HAS_NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C +syn keyword xsMacro _HAS_NONLATIN1_SIMPLE_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C +syn keyword xsMacro _HIGHEST_REGCOMP_DOT_H_SYNC _INC_PERL_XSUB_H +syn keyword xsMacro _IS_IN_SOME_FOLD_ONLY_FOR_USE_BY_REGCOMP_DOT_C +syn keyword xsMacro _IS_MNEMONIC_CNTRL_ONLY_FOR_USE_BY_REGCOMP_DOT_C +syn keyword xsMacro _IS_NON_FINAL_FOLD_ONLY_FOR_USE_BY_REGCOMP_DOT_C _LC_CAST +syn keyword xsMacro _MEM_WRAP_NEEDS_RUNTIME_CHECK _MEM_WRAP_WILL_WRAP +syn keyword xsMacro _NOT_IN_NUMERIC_STANDARD _NOT_IN_NUMERIC_UNDERLYING +syn keyword xsMacro _NV_BODYLESS_UNION _OP_SIBPARENT_FIELDNAME _PERLIOL_H +syn keyword xsMacro _PERLIO_H _PERL_OBJECT_THIS _REGEXP_COMMON +syn keyword xsMacro _RXf_PMf_CHARSET_SHIFT _RXf_PMf_SHIFT_COMPILETIME +syn keyword xsMacro _RXf_PMf_SHIFT_NEXT _STDIO_H _STDIO_INCLUDED _V +syn keyword xsMacro _XPVCV_COMMON _XPV_HEAD __ASSERT_ __BASE_TWO_BYTE_HI +syn keyword xsMacro __BASE_TWO_BYTE_LO __Inc__IPerl___ +syn keyword xsMacro __PATCHLEVEL_H_INCLUDED__ __PL_inf_float_int32 +syn keyword xsMacro __PL_nan_float_int32 __STDIO_LOADED +syn keyword xsMacro __attribute__deprecated__ __attribute__format__ +syn keyword xsMacro __attribute__format__null_ok__ __attribute__malloc__ +syn keyword xsMacro __attribute__nonnull__ __attribute__noreturn__ +syn keyword xsMacro __attribute__pure__ __attribute__unused__ +syn keyword xsMacro __attribute__warn_unused_result__ __filbuf __flsbuf +syn keyword xsMacro __has_builtin __perlapi_h__ _config_h_ _exit _filbuf +syn keyword xsMacro _flsbuf _generic_LC _generic_LC_base +syn keyword xsMacro _generic_LC_func_utf8 _generic_LC_swash_utf8 +syn keyword xsMacro _generic_LC_swash_uvchr _generic_LC_underscore +syn keyword xsMacro _generic_LC_utf8 _generic_LC_uvchr _generic_func_utf8 +syn keyword xsMacro _generic_isCC _generic_isCC_A _generic_swash_uni +syn keyword xsMacro _generic_swash_utf8 _generic_toFOLD_LC +syn keyword xsMacro _generic_toLOWER_LC _generic_toUPPER_LC _generic_uni +syn keyword xsMacro _generic_utf8 _generic_utf8_no_upper_latin1 _isQMC +syn keyword xsMacro _isQUOTEMETA _swab_16_ _swab_32_ _swab_64_ aTHXa aTHXo +syn keyword xsMacro aTHXo_ aTHXx aTHXx_ abort accept access +syn keyword xsMacro anchored_end_shift anchored_offset anchored_substr +syn keyword xsMacro anchored_utf8 asctime assert assert_ assert_not_ROK +syn keyword xsMacro assert_not_glob atoll av_tindex bcmp bind blk_eval +syn keyword xsMacro blk_format blk_gimme blk_givwhen blk_loop blk_oldcop +syn keyword xsMacro blk_oldmarksp blk_oldpm blk_oldscopesp blk_oldsp blk_sub +syn keyword xsMacro blk_u16 bool boolSV cBINOP cBINOPo cBINOPx cBOOL cCOP +syn keyword xsMacro cCOPo cCOPx cGVOP_gv cGVOPo_gv cGVOPx_gv cLISTOP cLISTOPo +syn keyword xsMacro cLISTOPx cLOGOP cLOGOPo cLOGOPx cLOOP cLOOPo cLOOPx +syn keyword xsMacro cMETHOPx cMETHOPx_meth cMETHOPx_rclass cPADOP cPADOPo +syn keyword xsMacro cPADOPx cPMOP cPMOPo cPMOPx cPVOP cPVOPo cPVOPx cSVOP +syn keyword xsMacro cSVOP_sv cSVOPo cSVOPo_sv cSVOPx cSVOPx_sv cSVOPx_svp +syn keyword xsMacro cUNOP cUNOP_AUX cUNOP_AUXo cUNOP_AUXx cUNOPo cUNOPx chdir +syn keyword xsMacro check_end_shift check_offset_max check_offset_min +syn keyword xsMacro check_substr check_utf8 child_offset_bits chmod chsize +syn keyword xsMacro ckDEAD ckWARN ckWARN2 ckWARN2_d ckWARN3 ckWARN3_d ckWARN4 +syn keyword xsMacro ckWARN4_d ckWARN_d close closedir connect cop_hints_2hv +syn keyword xsMacro cop_hints_fetch_pv cop_hints_fetch_pvn +syn keyword xsMacro cop_hints_fetch_pvs cop_hints_fetch_sv cophh_2hv +syn keyword xsMacro cophh_copy cophh_delete_pv cophh_delete_pvn +syn keyword xsMacro cophh_delete_pvs cophh_delete_sv cophh_fetch_pv +syn keyword xsMacro cophh_fetch_pvn cophh_fetch_pvs cophh_fetch_sv cophh_free +syn keyword xsMacro cophh_new_empty cophh_store_pv cophh_store_pvn +syn keyword xsMacro cophh_store_pvs cophh_store_sv crypt ctermid ctime +syn keyword xsMacro cv_ckproto cx_type cxstack cxstack_ix cxstack_max +syn keyword xsMacro dATARGET dAX dAXMARK dEXT dEXTCONST dITEMS dJMPENV dMARK +syn keyword xsMacro dMULTICALL dMY_CXT dMY_CXT_INTERP dMY_CXT_SV dNOOP +syn keyword xsMacro dORIGMARK dPOPPOPiirl dPOPPOPnnrl dPOPPOPssrl dPOPTOPiirl +syn keyword xsMacro dPOPTOPiirl_nomg dPOPTOPiirl_ul_nomg dPOPTOPnnrl +syn keyword xsMacro dPOPTOPnnrl_nomg dPOPTOPssrl dPOPXiirl dPOPXiirl_ul_nomg +syn keyword xsMacro dPOPXnnrl dPOPXssrl dPOPiv dPOPnv dPOPnv_nomg dPOPss +syn keyword xsMacro dPOPuv dSAVEDERRNO dSAVE_ERRNO dSP dSS_ADD dTARG dTARGET +syn keyword xsMacro dTARGETSTACKED dTHR dTHX dTHXa dTHXo dTHXoa dTHXs dTHXx +syn keyword xsMacro dTOPiv dTOPnv dTOPss dTOPuv dUNDERBAR dVAR dXSARGS +syn keyword xsMacro dXSBOOTARGSAPIVERCHK dXSBOOTARGSNOVERCHK +syn keyword xsMacro dXSBOOTARGSXSAPIVERCHK dXSFUNCTION dXSI32 dXSTARG +syn keyword xsMacro dXSUB_SYS deprecate djSP do_open dup dup2 endgrent +syn keyword xsMacro endhostent endnetent endprotoent endpwent endservent +syn keyword xsMacro environ execl execv execvp fcntl fd_set fdopen fileno +syn keyword xsMacro float_end_shift float_max_offset float_min_offset +syn keyword xsMacro float_substr float_utf8 flock flockfile foldEQ_utf8 +syn keyword xsMacro frewind fscanf fstat ftell ftruncate ftrylockfile +syn keyword xsMacro funlockfile fwrite1 get_cvs getc_unlocked getegid geteuid +syn keyword xsMacro getgid getgrent getgrgid getgrnam gethostbyaddr +syn keyword xsMacro gethostbyname gethostent gethostname getlogin +syn keyword xsMacro getnetbyaddr getnetbyname getnetent getpeername getpid +syn keyword xsMacro getprotobyname getprotobynumber getprotoent getpwent +syn keyword xsMacro getpwnam getpwuid getservbyname getservbyport getservent +syn keyword xsMacro getsockname getsockopt getspnam gettimeofday getuid getw +syn keyword xsMacro gv_AVadd gv_HVadd gv_IOadd gv_SVadd gv_autoload4 +syn keyword xsMacro gv_efullname3 gv_fetchmeth gv_fetchmeth_autoload +syn keyword xsMacro gv_fetchmethod gv_fetchmethod_flags gv_fetchpvn +syn keyword xsMacro gv_fetchpvs gv_fetchsv_nomg gv_fullname3 gv_init +syn keyword xsMacro gv_method_changed gv_stashpvs htoni htonl htons htovl +syn keyword xsMacro htovs hv_delete hv_delete_ent hv_deletehek hv_exists +syn keyword xsMacro hv_exists_ent hv_fetch hv_fetch_ent hv_fetchhek hv_fetchs +syn keyword xsMacro hv_iternext hv_magic hv_store hv_store_ent hv_store_flags +syn keyword xsMacro hv_storehek hv_stores hv_undef ibcmp ibcmp_locale +syn keyword xsMacro ibcmp_utf8 inet_addr inet_ntoa init_os_extras ioctl +syn keyword xsMacro isALNUM isALNUMC isALNUMC_A isALNUMC_L1 isALNUMC_LC +syn keyword xsMacro isALNUMC_LC_utf8 isALNUMC_LC_uvchr isALNUMC_uni +syn keyword xsMacro isALNUMC_utf8 isALNUMU isALNUM_LC isALNUM_LC_utf8 +syn keyword xsMacro isALNUM_LC_uvchr isALNUM_lazy_if isALNUM_uni isALNUM_utf8 +syn keyword xsMacro isALPHA isALPHANUMERIC isALPHANUMERIC_A isALPHANUMERIC_L1 +syn keyword xsMacro isALPHANUMERIC_LC isALPHANUMERIC_LC_utf8 +syn keyword xsMacro isALPHANUMERIC_LC_uvchr isALPHANUMERIC_uni +syn keyword xsMacro isALPHANUMERIC_utf8 isALPHAU isALPHA_A isALPHA_FOLD_EQ +syn keyword xsMacro isALPHA_FOLD_NE isALPHA_L1 isALPHA_LC isALPHA_LC_utf8 +syn keyword xsMacro isALPHA_LC_uvchr isALPHA_uni isALPHA_utf8 isASCII +syn keyword xsMacro isASCII_A isASCII_L1 isASCII_LC isASCII_LC_utf8 +syn keyword xsMacro isASCII_LC_uvchr isASCII_uni isASCII_utf8 isBLANK +syn keyword xsMacro isBLANK_A isBLANK_L1 isBLANK_LC isBLANK_LC_uni +syn keyword xsMacro isBLANK_LC_utf8 isBLANK_LC_uvchr isBLANK_uni isBLANK_utf8 +syn keyword xsMacro isCHARNAME_CONT isCNTRL isCNTRL_A isCNTRL_L1 isCNTRL_LC +syn keyword xsMacro isCNTRL_LC_utf8 isCNTRL_LC_uvchr isCNTRL_uni isCNTRL_utf8 +syn keyword xsMacro isDIGIT isDIGIT_A isDIGIT_L1 isDIGIT_LC isDIGIT_LC_utf8 +syn keyword xsMacro isDIGIT_LC_uvchr isDIGIT_uni isDIGIT_utf8 isGRAPH +syn keyword xsMacro isGRAPH_A isGRAPH_L1 isGRAPH_LC isGRAPH_LC_utf8 +syn keyword xsMacro isGRAPH_LC_uvchr isGRAPH_uni isGRAPH_utf8 isGV +syn keyword xsMacro isGV_with_GP isGV_with_GP_off isGV_with_GP_on isIDCONT +syn keyword xsMacro isIDCONT_A isIDCONT_L1 isIDCONT_LC isIDCONT_LC_utf8 +syn keyword xsMacro isIDCONT_LC_uvchr isIDCONT_uni isIDCONT_utf8 isIDFIRST +syn keyword xsMacro isIDFIRST_A isIDFIRST_L1 isIDFIRST_LC isIDFIRST_LC_utf8 +syn keyword xsMacro isIDFIRST_LC_uvchr isIDFIRST_lazy_if isIDFIRST_uni +syn keyword xsMacro isIDFIRST_utf8 isLEXWARN_off isLEXWARN_on isLOWER +syn keyword xsMacro isLOWER_A isLOWER_L1 isLOWER_LC isLOWER_LC_utf8 +syn keyword xsMacro isLOWER_LC_uvchr isLOWER_uni isLOWER_utf8 isOCTAL +syn keyword xsMacro isOCTAL_A isOCTAL_L1 isPRINT isPRINT_A isPRINT_L1 +syn keyword xsMacro isPRINT_LC isPRINT_LC_utf8 isPRINT_LC_uvchr isPRINT_uni +syn keyword xsMacro isPRINT_utf8 isPSXSPC isPSXSPC_A isPSXSPC_L1 isPSXSPC_LC +syn keyword xsMacro isPSXSPC_LC_utf8 isPSXSPC_LC_uvchr isPSXSPC_uni +syn keyword xsMacro isPSXSPC_utf8 isPUNCT isPUNCT_A isPUNCT_L1 isPUNCT_LC +syn keyword xsMacro isPUNCT_LC_utf8 isPUNCT_LC_uvchr isPUNCT_uni isPUNCT_utf8 +syn keyword xsMacro isREGEXP isSPACE isSPACE_A isSPACE_L1 isSPACE_LC +syn keyword xsMacro isSPACE_LC_utf8 isSPACE_LC_uvchr isSPACE_uni isSPACE_utf8 +syn keyword xsMacro isUPPER isUPPER_A isUPPER_L1 isUPPER_LC isUPPER_LC_utf8 +syn keyword xsMacro isUPPER_LC_uvchr isUPPER_uni isUPPER_utf8 isUTF8_CHAR +syn keyword xsMacro isVERTWS_uni isVERTWS_utf8 isWARN_ONCE isWARN_on +syn keyword xsMacro isWARNf_on isWORDCHAR isWORDCHAR_A isWORDCHAR_L1 +syn keyword xsMacro isWORDCHAR_LC isWORDCHAR_LC_utf8 isWORDCHAR_LC_uvchr +syn keyword xsMacro isWORDCHAR_lazy_if isWORDCHAR_uni isWORDCHAR_utf8 +syn keyword xsMacro isXDIGIT isXDIGIT_A isXDIGIT_L1 isXDIGIT_LC +syn keyword xsMacro isXDIGIT_LC_utf8 isXDIGIT_LC_uvchr isXDIGIT_uni +syn keyword xsMacro isXDIGIT_utf8 is_ANYOF_SYNTHETIC is_FOLDS_TO_MULTI_utf8 +syn keyword xsMacro is_HORIZWS_cp_high is_HORIZWS_high is_LAX_VERSION +syn keyword xsMacro is_LNBREAK_latin1_safe is_LNBREAK_safe +syn keyword xsMacro is_LNBREAK_utf8_safe is_MULTI_CHAR_FOLD_latin1_safe +syn keyword xsMacro is_MULTI_CHAR_FOLD_utf8_safe +syn keyword xsMacro is_MULTI_CHAR_FOLD_utf8_safe_part0 +syn keyword xsMacro is_MULTI_CHAR_FOLD_utf8_safe_part1 is_NONCHAR_utf8 +syn keyword xsMacro is_PATWS_cp is_PATWS_safe +syn keyword xsMacro is_PROBLEMATIC_LOCALE_FOLDEDS_START_cp +syn keyword xsMacro is_PROBLEMATIC_LOCALE_FOLDEDS_START_utf8 +syn keyword xsMacro is_PROBLEMATIC_LOCALE_FOLD_cp +syn keyword xsMacro is_PROBLEMATIC_LOCALE_FOLD_utf8 is_QUOTEMETA_high +syn keyword xsMacro is_QUOTEMETA_high_part0 is_QUOTEMETA_high_part1 +syn keyword xsMacro is_REPLACEMENT_utf8_safe is_STRICT_VERSION +syn keyword xsMacro is_SURROGATE_utf8 is_UTF8_CHAR_utf8_no_length_checks +syn keyword xsMacro is_VERTWS_cp_high is_VERTWS_high is_XDIGIT_cp_high +syn keyword xsMacro is_XDIGIT_high is_XPERLSPACE_cp_high is_XPERLSPACE_high +syn keyword xsMacro is_ascii_string is_utf8_char_buf is_utf8_string_loc +syn keyword xsMacro isatty isnormal kBINOP kCOP kGVOP_gv kLISTOP kLOGOP kLOOP +syn keyword xsMacro kPADOP kPMOP kPVOP kSVOP kSVOP_sv kUNOP kUNOP_AUX kill +syn keyword xsMacro killpg lex_stuff_pvs link listen lockf longjmp lseek +syn keyword xsMacro lstat mPUSHi mPUSHn mPUSHp mPUSHs mPUSHu mXPUSHi mXPUSHn +syn keyword xsMacro mXPUSHp mXPUSHs mXPUSHu memEQ memEQs memNE memNEs memchr +syn keyword xsMacro memcmp memzero mkdir mktemp my my_binmode my_lstat +syn keyword xsMacro my_setlocale my_snprintf my_sprintf my_stat my_strlcat +syn keyword xsMacro my_strlcpy my_vsnprintf newATTRSUB newAV newGVgen newHV +syn keyword xsMacro newIO newRV_inc newSUB newSVpadname newSVpvn_utf8 +syn keyword xsMacro newSVpvs newSVpvs_flags newSVpvs_share newXSproto ntohi +syn keyword xsMacro ntohl ntohs opASSIGN op_lvalue open opendir pTHX_1 +syn keyword xsMacro pTHX_12 pTHX_2 pTHX_3 pTHX_4 pTHX_5 pTHX_6 pTHX_7 pTHX_8 +syn keyword xsMacro pTHX_9 pTHX_FORMAT pTHX_VALUE pTHX_VALUE_ pTHX__FORMAT +syn keyword xsMacro pTHX__VALUE pTHX__VALUE_ pTHXo pTHXo_ pTHXx pTHXx_ pVAR +syn keyword xsMacro pWARN_ALL pWARN_NONE pWARN_STD packWARN packWARN2 +syn keyword xsMacro packWARN3 packWARN4 pad_add_name_pvs pad_findmy_pvs +syn keyword xsMacro pad_peg padadd_NO_DUP_CHECK padadd_OUR padadd_STALEOK +syn keyword xsMacro padadd_STATE padnew_CLONE padnew_SAVE padnew_SAVESUB +syn keyword xsMacro panic_write2 pause pclose pipe popen prepare_SV_for_RV +syn keyword xsMacro pthread_attr_init pthread_condattr_default pthread_create +syn keyword xsMacro pthread_key_create pthread_keycreate +syn keyword xsMacro pthread_mutexattr_default pthread_mutexattr_init +syn keyword xsMacro pthread_mutexattr_settype putc_unlocked putenv putw read +syn keyword xsMacro readdir readdir64 recv recvfrom ref +syn keyword xsMacro refcounted_he_fetch_pvs refcounted_he_new_pvs rename +syn keyword xsMacro rewinddir rmdir safecalloc safefree safemalloc +syn keyword xsMacro saferealloc save_aelem save_freeop save_freepv +syn keyword xsMacro save_freesv save_helem save_mortalizesv save_op savepvs +syn keyword xsMacro savesharedpvs sb_dstr sb_iters sb_m sb_maxiters +syn keyword xsMacro sb_oldsave sb_orig sb_rflags sb_rx sb_rxres sb_rxtainted +syn keyword xsMacro sb_s sb_strend sb_targ seedDrand01 seekdir select send +syn keyword xsMacro sendto set_ANYOF_SYNTHETIC setbuf setgid setgrent +syn keyword xsMacro sethostent setjmp setlinebuf setlocale setmode setnetent +syn keyword xsMacro setprotoent setpwent setregid setreuid setservent +syn keyword xsMacro setsockopt setuid setvbuf share_hek_hek sharepvn shutdown +syn keyword xsMacro signal sleep socket socketpair specialWARN stat stdoutf +syn keyword xsMacro strEQ strGE strGT strLE strLT strNE strchr strerror +syn keyword xsMacro strnEQ strnNE strrchr strtoll strtoull sv_2bool +syn keyword xsMacro sv_2bool_nomg sv_2iv sv_2nv sv_2pv sv_2pv_nolen +syn keyword xsMacro sv_2pv_nomg sv_2pvbyte_nolen sv_2pvutf8_nolen sv_2uv +syn keyword xsMacro sv_cathek sv_catpv_nomg sv_catpvn sv_catpvn_mg +syn keyword xsMacro sv_catpvn_nomg sv_catpvn_nomg_maybeutf8 +syn keyword xsMacro sv_catpvn_nomg_utf8_upgrade sv_catpvs sv_catpvs_flags +syn keyword xsMacro sv_catpvs_mg sv_catpvs_nomg sv_catsv sv_catsv_mg +syn keyword xsMacro sv_catsv_nomg sv_catxmlpvs sv_cmp sv_cmp_locale +syn keyword xsMacro sv_collxfrm sv_copypv_nomg sv_eq sv_force_normal +syn keyword xsMacro sv_insert sv_mortalcopy sv_nolocking sv_nounlocking +syn keyword xsMacro sv_or_pv_len_utf8 sv_pv sv_pvbyte sv_pvn_force +syn keyword xsMacro sv_pvn_force_nomg sv_pvutf8 sv_setgid sv_setpvs +syn keyword xsMacro sv_setpvs_mg sv_setref_pvs sv_setsv sv_setsv_nomg +syn keyword xsMacro sv_setuid sv_taint sv_unref sv_usepvn sv_usepvn_mg +syn keyword xsMacro sv_utf8_upgrade sv_utf8_upgrade_flags +syn keyword xsMacro sv_utf8_upgrade_nomg tTHX telldir times tmpfile tmpnam +syn keyword xsMacro toCTRL toFOLD toFOLD_A toFOLD_LC toFOLD_uni toFOLD_utf8 +syn keyword xsMacro toLOWER toLOWER_A toLOWER_L1 toLOWER_LATIN1 toLOWER_LC +syn keyword xsMacro toLOWER_uni toLOWER_utf8 toTITLE toTITLE_A toTITLE_uni +syn keyword xsMacro toTITLE_utf8 toUPPER toUPPER_A toUPPER_LATIN1_MOD +syn keyword xsMacro toUPPER_LC toUPPER_uni toUPPER_utf8 to_uni_fold +syn keyword xsMacro to_utf8_fold to_utf8_lower to_utf8_title to_utf8_upper +syn keyword xsMacro truncate tryAMAGICbin_MG tryAMAGICunDEREF +syn keyword xsMacro tryAMAGICunTARGETlist tryAMAGICun_MG ttyname umask uname +syn keyword xsMacro unlink unpackWARN1 unpackWARN2 unpackWARN3 unpackWARN4 +syn keyword xsMacro utf8_to_uvchr_buf utime uvchr_to_utf8 uvchr_to_utf8_flags +syn keyword xsMacro vTHX vfprintf vtohl vtohs wait want_vtbl_bm want_vtbl_fm +syn keyword xsMacro whichsig write xio_any xio_dirp xiv_iv xlv_targoff +syn keyword xsMacro xpv_len xuv_uv yystype + +" Define the default highlighting. +hi def link xsPrivate Error +hi def link xsSuperseded Error +hi def link xsType Type +hi def link xsString String +hi def link xsConstant Constant +hi def link xsException Exception +hi def link xsKeyword Keyword +hi def link xsFunction Function +hi def link xsVariable Identifier +hi def link xsMacro Macro + +let b:current_syntax = "xs" + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xsd.vim b/git/usr/share/vim/vim92/syntax/xsd.vim new file mode 100644 index 0000000000000000000000000000000000000000..5ba6b4499a7e3acbcbd9e3e636ad8cec9602cb09 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xsd.vim @@ -0,0 +1,61 @@ +" Vim syntax file +" Language: XSD (XML Schema) +" Maintainer: Johannes Zellner +" Last Change: Tue, 27 Apr 2004 14:54:59 CEST +" Filenames: *.xsd +" $Id: xsd.vim,v 1.1 2004/06/13 18:20:48 vimboss Exp $ + +" REFERENCES: +" [1] http://www.w3.org/TR/xmlschema-0 +" + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +runtime syntax/xml.vim + +syn cluster xmlTagHook add=xsdElement +syn case match + +syn match xsdElement '\%(xsd:\)\@<=all' +syn match xsdElement '\%(xsd:\)\@<=annotation' +syn match xsdElement '\%(xsd:\)\@<=any' +syn match xsdElement '\%(xsd:\)\@<=anyAttribute' +syn match xsdElement '\%(xsd:\)\@<=appInfo' +syn match xsdElement '\%(xsd:\)\@<=attribute' +syn match xsdElement '\%(xsd:\)\@<=attributeGroup' +syn match xsdElement '\%(xsd:\)\@<=choice' +syn match xsdElement '\%(xsd:\)\@<=complexContent' +syn match xsdElement '\%(xsd:\)\@<=complexType' +syn match xsdElement '\%(xsd:\)\@<=documentation' +syn match xsdElement '\%(xsd:\)\@<=element' +syn match xsdElement '\%(xsd:\)\@<=enumeration' +syn match xsdElement '\%(xsd:\)\@<=extension' +syn match xsdElement '\%(xsd:\)\@<=field' +syn match xsdElement '\%(xsd:\)\@<=group' +syn match xsdElement '\%(xsd:\)\@<=import' +syn match xsdElement '\%(xsd:\)\@<=include' +syn match xsdElement '\%(xsd:\)\@<=key' +syn match xsdElement '\%(xsd:\)\@<=keyref' +syn match xsdElement '\%(xsd:\)\@<=length' +syn match xsdElement '\%(xsd:\)\@<=list' +syn match xsdElement '\%(xsd:\)\@<=maxInclusive' +syn match xsdElement '\%(xsd:\)\@<=maxLength' +syn match xsdElement '\%(xsd:\)\@<=minInclusive' +syn match xsdElement '\%(xsd:\)\@<=minLength' +syn match xsdElement '\%(xsd:\)\@<=pattern' +syn match xsdElement '\%(xsd:\)\@<=redefine' +syn match xsdElement '\%(xsd:\)\@<=restriction' +syn match xsdElement '\%(xsd:\)\@<=schema' +syn match xsdElement '\%(xsd:\)\@<=selector' +syn match xsdElement '\%(xsd:\)\@<=sequence' +syn match xsdElement '\%(xsd:\)\@<=simpleContent' +syn match xsdElement '\%(xsd:\)\@<=simpleType' +syn match xsdElement '\%(xsd:\)\@<=union' +syn match xsdElement '\%(xsd:\)\@<=unique' + +hi def link xsdElement Statement + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xslt.vim b/git/usr/share/vim/vim92/syntax/xslt.vim new file mode 100644 index 0000000000000000000000000000000000000000..900b8ca0490de313c0d15862524ba87c60fd0019 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xslt.vim @@ -0,0 +1,71 @@ +" Vim syntax file +" Language: XSLT +" Maintainer: Bogdan Barbu +" Previous Maintainer: Johannes Zellner +" Last Change: Fri, 17 Jan 2020 07:15:37 +0200 +" Filenames: *.xsl +" $Id: xslt.vim,v 1.1 2004/06/13 15:52:10 vimboss Exp $ + +" REFERENCES: +" [1] http://www.w3.org/TR/xslt +" [2] http://www.w3.org/TR/xslt20 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +runtime syntax/xml.vim + +syn cluster xmlTagHook add=xslElement +syn case match + +syn match xslElement '\%(xsl:\)\@<=analyze-string' +syn match xslElement '\%(xsl:\)\@<=apply-imports' +syn match xslElement '\%(xsl:\)\@<=apply-templates' +syn match xslElement '\%(xsl:\)\@<=attribute' +syn match xslElement '\%(xsl:\)\@<=attribute-set' +syn match xslElement '\%(xsl:\)\@<=call-template' +syn match xslElement '\%(xsl:\)\@<=character-map' +syn match xslElement '\%(xsl:\)\@<=choose' +syn match xslElement '\%(xsl:\)\@<=comment' +syn match xslElement '\%(xsl:\)\@<=copy' +syn match xslElement '\%(xsl:\)\@<=copy-of' +syn match xslElement '\%(xsl:\)\@<=decimal-format' +syn match xslElement '\%(xsl:\)\@<=document' +syn match xslElement '\%(xsl:\)\@<=element' +syn match xslElement '\%(xsl:\)\@<=fallback' +syn match xslElement '\%(xsl:\)\@<=for-each' +syn match xslElement '\%(xsl:\)\@<=for-each-group' +syn match xslElement '\%(xsl:\)\@<=function' +syn match xslElement '\%(xsl:\)\@<=if' +syn match xslElement '\%(xsl:\)\@<=include' +syn match xslElement '\%(xsl:\)\@<=import' +syn match xslElement '\%(xsl:\)\@<=import-schema' +syn match xslElement '\%(xsl:\)\@<=key' +syn match xslElement '\%(xsl:\)\@<=message' +syn match xslElement '\%(xsl:\)\@<=namespace' +syn match xslElement '\%(xsl:\)\@<=namespace-alias' +syn match xslElement '\%(xsl:\)\@<=number' +syn match xslElement '\%(xsl:\)\@<=otherwise' +syn match xslElement '\%(xsl:\)\@<=output' +syn match xslElement '\%(xsl:\)\@<=param' +syn match xslElement '\%(xsl:\)\@<=perform-sort' +syn match xslElement '\%(xsl:\)\@<=processing-instruction' +syn match xslElement '\%(xsl:\)\@<=preserve-space' +syn match xslElement '\%(xsl:\)\@<=script' +syn match xslElement '\%(xsl:\)\@<=sequence' +syn match xslElement '\%(xsl:\)\@<=sort' +syn match xslElement '\%(xsl:\)\@<=strip-space' +syn match xslElement '\%(xsl:\)\@<=stylesheet' +syn match xslElement '\%(xsl:\)\@<=template' +syn match xslElement '\%(xsl:\)\@<=transform' +syn match xslElement '\%(xsl:\)\@<=text' +syn match xslElement '\%(xsl:\)\@<=value-of' +syn match xslElement '\%(xsl:\)\@<=variable' +syn match xslElement '\%(xsl:\)\@<=when' +syn match xslElement '\%(xsl:\)\@<=with-param' + +hi def link xslElement Statement + +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/xxd.vim b/git/usr/share/vim/vim92/syntax/xxd.vim new file mode 100644 index 0000000000000000000000000000000000000000..1c06b4296f19f566480bc7dee712f818c573b4fd --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/xxd.vim @@ -0,0 +1,32 @@ +" Vim syntax file +" Language: bin using xxd +" Maintainer: This runtime file is looking for a new maintainer. +" Former Maintainer: Charles E. Campbell +" Last Change: Aug 31, 2016 +" Version: 11 +" 2024 Feb 19 by Vim Project (announce adoption) +" Notes: use :help xxd to see how to invoke it +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn match xxdAddress "^[0-9a-f]\+:" contains=xxdSep +syn match xxdSep contained ":" +syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot +syn match xxdDot contained "[.\r]" + +" Define the default highlighting. +if !exists("skip_xxd_syntax_inits") + + hi def link xxdAddress Constant + hi def link xxdSep Identifier + hi def link xxdAscii Statement + +endif + +let b:current_syntax = "xxd" + +" vim: ts=4 diff --git a/git/usr/share/vim/vim92/syntax/yacc.vim b/git/usr/share/vim/vim92/syntax/yacc.vim new file mode 100644 index 0000000000000000000000000000000000000000..8100489422bbc553b58392fecb7799c4c0a19569 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/yacc.vim @@ -0,0 +1,121 @@ +" Vim syntax file +" Language: Yacc +" Former Maintainer: Charles E. Campbell +" Last Change: Mar 25, 2019 +" Version: 17 +" 2024 Feb 19 by Vim Project (announce adoption) +" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_YACC +" +" Options: {{{1 +" g:yacc_uses_cpp : if this variable exists, then C++ is loaded rather than C + +" --------------------------------------------------------------------- +" this version of syntax/yacc.vim requires 6.0 or later +if exists("b:current_syntax") + syntax clear +endif + +" --------------------------------------------------------------------- +" Folding Support {{{1 +if has("folding") + com! -nargs=+ SynFold fold +else + com! -nargs=+ SynFold +endif + +" --------------------------------------------------------------------- +" Read the C syntax to start with {{{1 +" Read the C/C++ syntax to start with +let s:Cpath= fnameescape(expand(":p:h").(exists("g:yacc_uses_cpp")? "/cpp.vim" : "/c.vim")) +if !filereadable(s:Cpath) + for s:Cpath in split(globpath(&rtp,(exists("g:yacc_uses_cpp")? "syntax/cpp.vim" : "syntax/c.vim")),"\n") + if filereadable(fnameescape(s:Cpath)) + let s:Cpath= fnameescape(s:Cpath) + break + endif + endfor +endif +exe "syn include @yaccCode ".s:Cpath + +" --------------------------------------------------------------------- +" Yacc Clusters: {{{1 +syn cluster yaccInitCluster contains=yaccKey,yaccKeyActn,yaccBrkt,yaccType,yaccString,yaccUnionStart,yaccHeader2,yaccComment,yaccDefines,yaccParseParam,yaccParseOption +syn cluster yaccRulesCluster contains=yaccNonterminal,yaccString,yaccComment + +" --------------------------------------------------------------------- +" Yacc Sections: {{{1 +SynFold syn region yaccInit start='.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%\ze\(\s*/[*/].*\)\=$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty contained +SynFold syn region yaccInit2 start='\%^.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%\ze\(\s*/[*/].*\)\=$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty +SynFold syn region yaccHeader2 matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty contained +SynFold syn region yaccHeader matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty +SynFold syn region yaccRules matchgroup=yaccSectionSep start='^%%\ze\(\s*/[*/].*\)\=$' end='^%%\ze\(\s*/[*/].*\)\=$'me=e-2,re=e-2 contains=@yaccRulesCluster nextgroup=yaccEndCode skipwhite skipempty contained +SynFold syn region yaccEndCode matchgroup=yaccSectionSep start='^%%\ze\(\s*/[*/].*\)\=$' end='\%$' contains=@yaccCode contained + +" --------------------------------------------------------------------- +" Yacc Commands: {{{1 +syn match yaccDefines '^%define\s\+.*$' +syn match yaccParseParam '%\(parse\|lex\)-param\>' skipwhite nextgroup=yaccParseParamStr +syn match yaccParseOption '%\%(api\.pure\|pure-parser\|locations\|error-verbose\)\>' +syn region yaccParseParamStr contained matchgroup=Delimiter start='{' end='}' contains=cStructure + +syn match yaccDelim "[:|]" contained +syn match yaccOper "@\d\+" contained + +syn match yaccKey "^\s*%\(token\|type\|left\|right\|start\|ident\|nonassoc\)\>" contained +syn match yaccKey "\s%\(prec\|expect\)\>" contained +syn match yaccKey "\$\(<[a-zA-Z_][a-zA-Z_0-9]*>\)\=[\$0-9]\+" contained +syn keyword yaccKeyActn yyerrok yyclearin contained + +syn match yaccUnionStart "^%union" skipwhite skipnl nextgroup=yaccUnion contained +SynFold syn region yaccUnion matchgroup=yaccCurly start="{" matchgroup=yaccCurly end="}" contains=@yaccCode contained +syn match yaccBrkt "[<>]" contained +syn match yaccType "<[a-zA-Z_][a-zA-Z0-9_]*>" contains=yaccBrkt contained + +SynFold syn region yaccNonterminal start="^\s*\a\w*\ze\_s*\(/\*\_.\{-}\*/\)\=\_s*:" matchgroup=yaccDelim end=";" matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=yaccAction,yaccDelim,yaccString,yaccComment contained +syn region yaccComment start="/\*" end="\*/" +syn region yaccComment start="//" end="$" +syn match yaccString "'[^']*'" contained + + +" --------------------------------------------------------------------- +" I'd really like to highlight just the outer {}. Any suggestions??? {{{1 +syn match yaccCurlyError "[{}]" +SynFold syn region yaccAction matchgroup=yaccCurly start="{" end="}" contains=@yaccCode,yaccVar contained +syn match yaccVar '\$\d\+\|\$\$\|\$<\I\i*>\$\|\$<\I\i*>\d\+' containedin=cParen,cPreProc,cMulti contained + +" --------------------------------------------------------------------- +" Yacc synchronization: {{{1 +syn sync fromstart + +" --------------------------------------------------------------------- +" Define the default highlighting. {{{1 +if !exists("skip_yacc_syn_inits") + hi def link yaccBrkt yaccStmt + hi def link yaccComment Comment + hi def link yaccCurly Delimiter + hi def link yaccCurlyError Error + hi def link yaccDefines cDefine + hi def link yaccDelim Delimiter + hi def link yaccKeyActn Special + hi def link yaccKey yaccStmt + hi def link yaccNonterminal Function + hi def link yaccOper yaccStmt + hi def link yaccParseOption cDefine + hi def link yaccParseParam yaccParseOption + hi def link yaccSectionSep Todo + hi def link yaccSep Delimiter + hi def link yaccStmt Statement + hi def link yaccString String + hi def link yaccType Type + hi def link yaccUnionStart yaccKey + hi def link yaccVar Special +endif + +" --------------------------------------------------------------------- +" Cleanup: {{{1 +delcommand SynFold +let b:current_syntax = "yacc" + +" --------------------------------------------------------------------- +" Modelines: {{{1 +" vim: ts=15 fdm=marker diff --git a/git/usr/share/vim/vim92/syntax/yaml.vim b/git/usr/share/vim/vim92/syntax/yaml.vim new file mode 100644 index 0000000000000000000000000000000000000000..e992bc02e689ab0fd47602a95a4880e11945fca8 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/yaml.vim @@ -0,0 +1,275 @@ +" Vim syntax file +" Language: YAML (YAML Ain't Markup Language) 1.2 +" Maintainer: Nikolai Pavlov +" First author: Nikolai Weibull +" Latest Revision: 2024-04-01 + +if exists('b:current_syntax') + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +" Choose the schema to use +" TODO: Validate schema +if !exists('b:yaml_schema') + if exists('g:yaml_schema') + let b:yaml_schema = g:yaml_schema + else + let b:yaml_schema = 'core' + endif +endif + +let s:ns_char = '\%([\n\r\uFEFF \t]\@!\p\)' +let s:ns_word_char = '[[:alnum:]_\-]' +let s:ns_uri_char = '\%(%\x\x\|'.s:ns_word_char.'\|[#/;?:@&=+$,.!~*''()[\]]\)' +let s:ns_tag_char = '\%(%\x\x\|'.s:ns_word_char.'\|[#/;?:@&=+$.~*''()]\)' +let s:c_indicator = '[\-?:,[\]{}#&*!|>''"%@`]' +let s:c_flow_indicator = '[,[\]{}]' + +let s:ns_anchor_char = substitute(s:ns_char, '\v\C[\zs', '\=s:c_flow_indicator[1:-2]', '') +let s:ns_char_without_c_indicator = substitute(s:ns_char, '\v\C[\zs', '\=s:c_indicator[1:-2]', '') + +let s:_collection = '[^\@!\(\%(\\\.\|\[^\\\]]\)\+\)]' +let s:_neg_collection = '[^\(\%(\\\.\|\[^\\\]]\)\+\)]' +function s:SimplifyToAssumeAllPrintable(p) + return substitute(a:p, '\V\C\\%('.s:_collection.'\\@!\\p\\)', '[^\1]', '') +endfunction +let s:ns_char = s:SimplifyToAssumeAllPrintable(s:ns_char) +let s:ns_anchor_char = s:SimplifyToAssumeAllPrintable(s:ns_anchor_char) +let s:ns_char_without_c_indicator = s:SimplifyToAssumeAllPrintable(s:ns_char_without_c_indicator) + +function s:SimplifyAdjacentCollections(p) + return substitute(a:p, '\V\C'.s:_collection.'\\|'.s:_collection, '[\1\2]', 'g') +endfunction +let s:ns_uri_char = s:SimplifyAdjacentCollections(s:ns_uri_char) +let s:ns_tag_char = s:SimplifyAdjacentCollections(s:ns_tag_char) + +let s:c_verbatim_tag = '!<'.s:ns_uri_char.'\+>' +let s:c_named_tag_handle = '!'.s:ns_word_char.'\+!' +let s:c_secondary_tag_handle = '!!' +let s:c_primary_tag_handle = '!' +let s:c_tag_handle = '\%('.s:c_named_tag_handle. + \ '\|'.s:c_secondary_tag_handle. + \ '\|'.s:c_primary_tag_handle.'\)' +let s:c_ns_shorthand_tag = s:c_tag_handle . s:ns_tag_char.'\+' +let s:c_non_specific_tag = '!' +let s:c_ns_tag_property = s:c_verbatim_tag. + \ '\|'.s:c_ns_shorthand_tag. + \ '\|'.s:c_non_specific_tag + +let s:c_ns_anchor_name = s:ns_anchor_char.'\+' +let s:c_ns_anchor_property = '&'.s:c_ns_anchor_name +let s:c_ns_alias_node = '\*'.s:c_ns_anchor_name +let s:c_ns_properties = '\%(\%('.s:c_ns_tag_property.'\|'.s:c_ns_anchor_property.'\)\s\+\)\+' + +let s:ns_directive_name = s:ns_char.'\+' + +let s:ns_local_tag_prefix = '!'.s:ns_uri_char.'*' +let s:ns_global_tag_prefix = s:ns_tag_char.s:ns_uri_char.'*' +let s:ns_tag_prefix = s:ns_local_tag_prefix. + \ '\|'.s:ns_global_tag_prefix + +let s:ns_plain_safe_out = s:ns_char +let s:ns_plain_safe_in = '\%('.s:c_flow_indicator.'\@!'.s:ns_char.'\)' + +let s:ns_plain_safe_in = substitute(s:ns_plain_safe_in, '\V\C\\%('.s:_collection.'\\@!'.s:_neg_collection.'\\)', '[^\1\2]', '') +let s:ns_plain_safe_in_without_colhash = substitute(s:ns_plain_safe_in, '\V\C'.s:_neg_collection, '[^\1:#]', '') +let s:ns_plain_safe_out_without_colhash = substitute(s:ns_plain_safe_out, '\V\C'.s:_neg_collection, '[^\1:#]', '') + +let s:ns_plain_first_in = '\%('.s:ns_char_without_c_indicator.'\|[?:\-]\%('.s:ns_plain_safe_in.'\)\@=\)' +let s:ns_plain_first_out = '\%('.s:ns_char_without_c_indicator.'\|[?:\-]\%('.s:ns_plain_safe_out.'\)\@=\)' + +let s:ns_plain_char_in = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_in.'\|'.s:ns_plain_safe_in_without_colhash.'\)' +let s:ns_plain_char_out = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_out.'\|'.s:ns_plain_safe_out_without_colhash.'\)' + +let s:ns_plain_out = s:ns_plain_first_out . s:ns_plain_char_out.'*' +let s:ns_plain_in = s:ns_plain_first_in . s:ns_plain_char_in.'*' + + +syn keyword yamlTodo contained TODO FIXME XXX NOTE + +syn region yamlComment display oneline start='\%\(^\|\s\)#' end='$' + \ contains=yamlTodo + +execute 'syn region yamlDirective oneline start='.string('^\ze%'.s:ns_directive_name.'\s\+').' '. + \ 'end="$" '. + \ 'contains=yamlTAGDirective,'. + \ 'yamlYAMLDirective,'. + \ 'yamlReservedDirective '. + \ 'keepend' + +syn match yamlTAGDirective /%TAG\ze\s/ contained nextgroup=yamlTagHandle skipwhite +execute 'syn match yamlTagHandle' string(s:c_tag_handle) 'contained nextgroup=yamlTagPrefix skipwhite' +execute 'syn match yamlTagPrefix' string(s:ns_tag_prefix) 'contained nextgroup=yamlComment skipwhite' + +syn match yamlYAMLDirective /%YAML\ze\s/ contained nextgroup=yamlYAMLVersion skipwhite +syn match yamlYAMLVersion /\d\+\.\d\+/ contained nextgroup=yamlComment skipwhite + +execute 'syn match yamlReservedDirective contained nextgroup=yamlComment '. + \string('%\%(\%(TAG\|YAML\)\s\)\@!'.s:ns_directive_name) + +syn region yamlFlowString matchgroup=yamlFlowStringDelimiter start='"' skip='\\"' end='"' + \ contains=yamlEscape contained nextgroup=yamlFlowMappingDelimiter,yamlComment skipwhite +syn region yamlFlowString matchgroup=yamlFlowStringDelimiter start="'" skip="''" end="'" + \ contains=yamlSingleEscape contained nextgroup=yamlFlowMappingDelimiter,yamlComment skipwhite +syn match yamlEscape contained '\\\%([\\"abefnrtv\^0_ NLP\n]\|x\x\x\|u\x\{4}\|U\x\{8}\)' +syn match yamlSingleEscape contained "''" + +syn cluster yamlConstant contains=yamlBool,yamlNull + +syn cluster yamlFlowNode contains=yamlFlowString,yamlFlowMapping,yamlFlowCollection +syn cluster yamlFlowNode add=yamlFlowMappingKey,yamlFlowMappingKeyStart,yamlFlowMappingMerge +syn cluster yamlFlowNode add=@yamlConstant,yamlPlainScalar,yamlFloat,yamlComment +syn cluster yamlFlowNode add=yamlTimestamp,yamlInteger,yamlAlias,yamlFlowNodeProperties +syn region yamlFlowMapping matchgroup=yamlFlowIndicator start='{\@]\%([1-9][+-]\|[+-]\?[1-9]\?\)\%(\s\+#.*\)\?$' contained + \ contains=yamlComment nextgroup=yamlBlockString skipnl +syn region yamlBlockString start=/^\z(\s\+\)/ skip=/^$/ end=/^\%(\z1\)\@!/ contained + +syn cluster yamlBlockNode contains=@yamlFlowNode,yamlBlockMappingKey,yamlBlockMappingKeyString, + \yamlBlockMappingMerge,yamlBlockMappingKeyStart,yamlBlockCollectionItemStart, + \yamlBlockNodeProperties,yamlBlockScalarHeader + +syn cluster yamlScalarWithSpecials contains=yamlPlainScalar,yamlBlockMappingKey,yamlFlowMappingKey + +let s:_bounder = s:SimplifyToAssumeAllPrintable('\%([[\]{}, \t]\@!\p\)') +if b:yaml_schema is# 'json' + syn keyword yamlNull null contained containedin=@yamlScalarWithSpecials + syn keyword yamlBool true false + exe 'syn match yamlInteger /'.s:_bounder.'\@1 +" Last Change: 2003 May 11 + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +" Common Z80 Assembly instructions +syn keyword z8aInstruction adc add and bit ccf cp cpd cpdr cpi cpir cpl +syn keyword z8aInstruction daa di djnz ei exx halt im in +syn keyword z8aInstruction ind ini indr inir jp jr ld ldd lddr ldi ldir +syn keyword z8aInstruction neg nop or otdr otir out outd outi +syn keyword z8aInstruction res rl rla rlc rlca rld +syn keyword z8aInstruction rr rra rrc rrca rrd sbc scf set sla sra +syn keyword z8aInstruction srl sub xor +" syn keyword z8aInstruction push pop call ret reti retn inc dec ex rst + +" Any other stuff +syn match z8aIdentifier "[a-z_][a-z0-9_]*" + +" Instructions changing stack +syn keyword z8aSpecInst push pop call ret reti retn rst +syn match z8aInstruction "\" +syn match z8aInstruction "\" +syn match z8aInstruction "\" +syn match z8aSpecInst "\"me=s+3 +syn match z8aSpecInst "\"me=s+3 +syn match z8aSpecInst "\"me=s+2 + +"Labels +syn match z8aLabel "[a-z_][a-z0-9_]*:" +syn match z8aSpecialLabel "[a-z_][a-z0-9_]*::" + +" PreProcessor commands +syn match z8aPreProc "\.org" +syn match z8aPreProc "\.globl" +syn match z8aPreProc "\.db" +syn match z8aPreProc "\.dw" +syn match z8aPreProc "\.ds" +syn match z8aPreProc "\.byte" +syn match z8aPreProc "\.word" +syn match z8aPreProc "\.blkb" +syn match z8aPreProc "\.blkw" +syn match z8aPreProc "\.ascii" +syn match z8aPreProc "\.asciz" +syn match z8aPreProc "\.module" +syn match z8aPreProc "\.title" +syn match z8aPreProc "\.sbttl" +syn match z8aPreProc "\.even" +syn match z8aPreProc "\.odd" +syn match z8aPreProc "\.area" +syn match z8aPreProc "\.page" +syn match z8aPreProc "\.setdp" +syn match z8aPreProc "\.radix" +syn match z8aInclude "\.include" +syn match z8aPreCondit "\.if" +syn match z8aPreCondit "\.else" +syn match z8aPreCondit "\.endif" + +" Common strings +syn match z8aString "\".*\"" +syn match z8aString "\'.*\'" + +" Numbers +syn match z8aNumber "[0-9]\+" +syn match z8aNumber "0[xXhH][0-9a-fA-F]\+" +syn match z8aNumber "0[bB][0-1]*" +syn match z8aNumber "0[oO\@qQ][0-7]\+" +syn match z8aNumber "0[dD][0-9]\+" + +" Character constant +syn match z8aString "\#\'."hs=s+1 + +" Comments +syn match z8aComment ";.*" + +syn case match + +" Define the default highlighting. +" Only when an item doesn't have highlighting yet + +hi def link z8aSection Special +hi def link z8aLabel Label +hi def link z8aSpecialLabel Label +hi def link z8aComment Comment +hi def link z8aInstruction Statement +hi def link z8aSpecInst Statement +hi def link z8aInclude Include +hi def link z8aPreCondit PreCondit +hi def link z8aPreProc PreProc +hi def link z8aNumber Number +hi def link z8aString String + + +let b:current_syntax = "z8a" +" vim: ts=8 diff --git a/git/usr/share/vim/vim92/syntax/zathurarc.vim b/git/usr/share/vim/vim92/syntax/zathurarc.vim new file mode 100644 index 0000000000000000000000000000000000000000..3e35522e968c68426b6101cfddfb39db37787235 --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/zathurarc.vim @@ -0,0 +1,64 @@ +" Vim syntax file +" Language: Zathurarc +" Maintainer: Wu, Zhenyu +" Documentation: https://pwmt.org/projects/zathura/documentation/ +" Upstream: https://github.com/Freed-Wu/zathurarc.vim +" Latest Revision: 2024-09-16 +" 2026 Apr 04 by Vim project: add page-v-padding and page-h-padding + +if exists('b:current_syntax') + finish +endif +let b:current_syntax = 'zathurarc' + +syntax case match +syntax iskeyword @,48-57,_,192-255,- + +syntax region zathurarcComment start="\%([ \t]*\&\([^\\]\zs\|^\)\)#" end="$" +syntax match zathurarcBracket /[<>]/ contained +syntax match zathurarcNotation `<[A-Z][a-z0-9]\+>` contains=zathurarcBracket +syntax match zathurarcNumber `\<[0-9.]\>` +syntax region zathurarcString start=`"` skip=`\\"` end=`"` +syntax region zathurarcString start=`'` skip=`\\'` end=`'` +syntax keyword zathurarcMode normal fullscreen presentation index +syntax keyword zathurarcBoolean true false +syntax keyword zathurarcCommand include map set unmap +syntax keyword zathurarcOption abort-clear-search adjust-open advance-pages-per-row +syntax keyword zathurarcOption completion-bg completion-fg completion-group-bg +syntax keyword zathurarcOption completion-group-fg completion-highlight-bg +syntax keyword zathurarcOption completion-highlight-fg continuous-hist-save database +syntax keyword zathurarcOption dbus-raise-window dbus-service default-bg default-fg +syntax keyword zathurarcOption double-click-follow exec-command filemonitor +syntax keyword zathurarcOption first-page-column font guioptions highlight-active-color +syntax keyword zathurarcOption highlight-color highlight-fg highlight-transparency +syntax keyword zathurarcOption incremental-search index-active-bg index-active-fg index-bg +syntax keyword zathurarcOption index-fg inputbar-bg inputbar-fg link-hadjust link-zoom +syntax keyword zathurarcOption n-completion-items notification-bg notification-error-bg +syntax keyword zathurarcOption notification-error-fg notification-fg +syntax keyword zathurarcOption notification-warning-bg notification-warning-fg +syntax keyword zathurarcOption page-cache-size page-h-padding page-v-padding +syntax keyword zathurarcOption page-right-to-left page-thumbnail-size pages-per-row recolor +syntax keyword zathurarcOption recolor-darkcolor recolor-keephue recolor-lightcolor +syntax keyword zathurarcOption recolor-reverse-video render-loading render-loading-bg +syntax keyword zathurarcOption render-loading-fg sandbox scroll-full-overlap scroll-hstep +syntax keyword zathurarcOption scroll-page-aware scroll-step scroll-wrap search-hadjust +syntax keyword zathurarcOption selection-clipboard selection-notification show-directories +syntax keyword zathurarcOption show-hidden show-recent statusbar-basename statusbar-bg +syntax keyword zathurarcOption statusbar-fg statusbar-h-padding statusbar-home-tilde +syntax keyword zathurarcOption statusbar-page-percent statusbar-v-padding synctex +syntax keyword zathurarcOption synctex-editor-command vertical-center window-height +syntax keyword zathurarcOption window-icon window-icon-document window-title-basename +syntax keyword zathurarcOption window-title-home-tilde window-title-page window-width +syntax keyword zathurarcOption zoom-center zoom-max zoom-min zoom-step + +highlight default link zathurarcComment Comment +highlight default link zathurarcNumber Number +highlight default link zathurarcMode Macro +highlight default link zathurarcString String +highlight default link zathurarcBoolean Boolean +" same as vim +highlight default link zathurarcBracket Delimiter +highlight default link zathurarcNotation Special +highlight default link zathurarcCommand Statement +highlight default link zathurarcOption PreProc +" ex: nowrap diff --git a/git/usr/share/vim/vim92/syntax/zig.vim b/git/usr/share/vim/vim92/syntax/zig.vim new file mode 100644 index 0000000000000000000000000000000000000000..121b0195b0625a1daab2484d4ebc237f12d0ce4c --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/zig.vim @@ -0,0 +1,297 @@ +" Vim syntax file +" Language: Zig +" Upstream: https://github.com/ziglang/zig.vim + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +let s:zig_syntax_keywords = { + \ 'zigBoolean': ["true" + \ , "false"] + \ , 'zigNull': ["null"] + \ , 'zigType': ["bool" + \ , "f16" + \ , "f32" + \ , "f64" + \ , "f80" + \ , "f128" + \ , "void" + \ , "type" + \ , "anytype" + \ , "anyerror" + \ , "anyframe" + \ , "volatile" + \ , "linksection" + \ , "noreturn" + \ , "allowzero" + \ , "i0" + \ , "u0" + \ , "isize" + \ , "usize" + \ , "comptime_int" + \ , "comptime_float" + \ , "c_char" + \ , "c_short" + \ , "c_ushort" + \ , "c_int" + \ , "c_uint" + \ , "c_long" + \ , "c_ulong" + \ , "c_longlong" + \ , "c_ulonglong" + \ , "c_longdouble" + \ , "anyopaque"] + \ , 'zigConstant': ["undefined" + \ , "unreachable"] + \ , 'zigConditional': ["if" + \ , "else" + \ , "switch"] + \ , 'zigRepeat': ["while" + \ , "for"] + \ , 'zigComparatorWord': ["and" + \ , "or" + \ , "orelse"] + \ , 'zigStructure': ["struct" + \ , "enum" + \ , "union" + \ , "error" + \ , "packed" + \ , "opaque"] + \ , 'zigException': ["error"] + \ , 'zigVarDecl': ["var" + \ , "const" + \ , "comptime" + \ , "threadlocal"] + \ , 'zigDummyVariable': ["_"] + \ , 'zigKeyword': ["fn" + \ , "try" + \ , "test" + \ , "pub" + \ , "usingnamespace"] + \ , 'zigExecution': ["return" + \ , "break" + \ , "continue"] + \ , 'zigMacro': ["defer" + \ , "errdefer" + \ , "async" + \ , "nosuspend" + \ , "await" + \ , "suspend" + \ , "resume" + \ , "export" + \ , "extern"] + \ , 'zigPreProc': ["catch" + \ , "inline" + \ , "noinline" + \ , "asm" + \ , "callconv" + \ , "noalias"] + \ , 'zigBuiltinFn': ["align" + \ , "@addWithOverflow" + \ , "@as" + \ , "@atomicLoad" + \ , "@atomicStore" + \ , "@bitCast" + \ , "@breakpoint" + \ , "@trap" + \ , "@alignCast" + \ , "@alignOf" + \ , "@cDefine" + \ , "@cImport" + \ , "@cInclude" + \ , "@cUndef" + \ , "@clz" + \ , "@cmpxchgWeak" + \ , "@cmpxchgStrong" + \ , "@compileError" + \ , "@compileLog" + \ , "@constCast" + \ , "@ctz" + \ , "@popCount" + \ , "@divExact" + \ , "@divFloor" + \ , "@divTrunc" + \ , "@embedFile" + \ , "@export" + \ , "@extern" + \ , "@tagName" + \ , "@TagType" + \ , "@errorName" + \ , "@call" + \ , "@errorReturnTrace" + \ , "@fence" + \ , "@fieldParentPtr" + \ , "@field" + \ , "@unionInit" + \ , "@frameAddress" + \ , "@import" + \ , "@inComptime" + \ , "@newStackCall" + \ , "@asyncCall" + \ , "@ptrFromInt" + \ , "@max" + \ , "@min" + \ , "@memcpy" + \ , "@memset" + \ , "@mod" + \ , "@mulAdd" + \ , "@mulWithOverflow" + \ , "@splat" + \ , "@src" + \ , "@bitOffsetOf" + \ , "@byteOffsetOf" + \ , "@offsetOf" + \ , "@OpaqueType" + \ , "@panic" + \ , "@prefetch" + \ , "@ptrCast" + \ , "@intFromPtr" + \ , "@rem" + \ , "@returnAddress" + \ , "@setCold" + \ , "@Type" + \ , "@shuffle" + \ , "@reduce" + \ , "@select" + \ , "@setRuntimeSafety" + \ , "@setEvalBranchQuota" + \ , "@setFloatMode" + \ , "@shlExact" + \ , "@This" + \ , "@hasDecl" + \ , "@hasField" + \ , "@shlWithOverflow" + \ , "@shrExact" + \ , "@sizeOf" + \ , "@bitSizeOf" + \ , "@sqrt" + \ , "@byteSwap" + \ , "@subWithOverflow" + \ , "@intCast" + \ , "@floatCast" + \ , "@floatFromInt" + \ , "@intFromFloat" + \ , "@intFromBool" + \ , "@errorCast" + \ , "@truncate" + \ , "@typeInfo" + \ , "@typeName" + \ , "@TypeOf" + \ , "@atomicRmw" + \ , "@errorFromInt" + \ , "@intFromError" + \ , "@enumFromInt" + \ , "@intFromEnum" + \ , "@setAlignStack" + \ , "@frame" + \ , "@Frame" + \ , "@frameSize" + \ , "@bitReverse" + \ , "@Vector" + \ , "@volatileCast" + \ , "@sin" + \ , "@cos" + \ , "@tan" + \ , "@exp" + \ , "@exp2" + \ , "@log" + \ , "@log2" + \ , "@log10" + \ , "@abs" + \ , "@floor" + \ , "@ceil" + \ , "@trunc" + \ , "@wasmMemorySize" + \ , "@wasmMemoryGrow" + \ , "@round"] + \ } + +function! s:syntax_keyword(dict) + for key in keys(a:dict) + execute 'syntax keyword' key join(a:dict[key], ' ') + endfor +endfunction + +call s:syntax_keyword(s:zig_syntax_keywords) + +syntax match zigType "\v<[iu][1-9]\d*>" +syntax match zigOperator display "\V\[-+/*=^&?|!><%~]" +syntax match zigArrowCharacter display "\V->" + +" 12_34 (. but not ..)? (12_34)? (exponent 12_34)? +syntax match zigDecNumber display "\v<\d%(_?\d)*%(\.\.@!)?%(\d%(_?\d)*)?%([eE][+-]?\d%(_?\d)*)?" +syntax match zigHexNumber display "\v<0x\x%(_?\x)*%(\.\.@!)?%(\x%(_?\x)*)?%([pP][+-]?\d%(_?\d)*)?" +syntax match zigOctNumber display "\v<0o\o%(_?\o)*" +syntax match zigBinNumber display "\v<0b[01]%(_?[01])*" + +syntax match zigCharacterInvalid display contained /b\?'\zs[\n\r\t']\ze'/ +syntax match zigCharacterInvalidUnicode display contained /b'\zs[^[:cntrl:][:graph:][:alnum:][:space:]]\ze'/ +syntax match zigCharacter /b'\([^\\]\|\\\(.\|x\x\{2}\)\)'/ contains=zigEscape,zigEscapeError,zigCharacterInvalid,zigCharacterInvalidUnicode +syntax match zigCharacter /'\([^\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{6}\)\)'/ contains=zigEscape,zigEscapeUnicode,zigEscapeError,zigCharacterInvalid + +syntax region zigBlock start="{" end="}" transparent fold + +syntax region zigCommentLine start="//" end="$" contains=zigTodo,@Spell +syntax region zigCommentLineDoc start="//[/!]/\@!" end="$" contains=zigTodo,@Spell + +syntax match zigMultilineStringPrefix /c\?\\\\/ contained containedin=zigMultilineString +syntax region zigMultilineString matchgroup=zigMultilineStringDelimiter start="c\?\\\\" end="$" contains=zigMultilineStringPrefix display + +syntax keyword zigTodo contained TODO + +syntax region zigString matchgroup=zigStringDelimiter start=+c\?"+ skip=+\\\\\|\\"+ end=+"+ oneline contains=zigEscape,zigEscapeUnicode,zigEscapeError,@Spell +syntax match zigEscapeError display contained /\\./ +syntax match zigEscape display contained /\\\([nrt\\'"]\|x\x\{2}\)/ +syntax match zigEscapeUnicode display contained /\\\(u\x\{4}\|U\x\{6}\)/ + +highlight default link zigDecNumber zigNumber +highlight default link zigHexNumber zigNumber +highlight default link zigOctNumber zigNumber +highlight default link zigBinNumber zigNumber + +highlight default link zigBuiltinFn Statement +highlight default link zigKeyword Keyword +highlight default link zigType Type +highlight default link zigCommentLine Comment +highlight default link zigCommentLineDoc Comment +highlight default link zigDummyVariable Comment +highlight default link zigTodo Todo +highlight default link zigString String +highlight default link zigStringDelimiter String +highlight default link zigMultilineString String +highlight default link zigMultilineStringContent String +highlight default link zigMultilineStringPrefix String +highlight default link zigMultilineStringDelimiter Delimiter +highlight default link zigCharacterInvalid Error +highlight default link zigCharacterInvalidUnicode zigCharacterInvalid +highlight default link zigCharacter Character +highlight default link zigEscape Special +highlight default link zigEscapeUnicode zigEscape +highlight default link zigEscapeError Error +highlight default link zigBoolean Boolean +highlight default link zigNull Boolean +highlight default link zigConstant Constant +highlight default link zigNumber Number +highlight default link zigArrowCharacter zigOperator +highlight default link zigOperator Operator +highlight default link zigStructure Structure +highlight default link zigExecution Special +highlight default link zigMacro Macro +highlight default link zigConditional Conditional +highlight default link zigComparatorWord Keyword +highlight default link zigRepeat Repeat +highlight default link zigSpecial Special +highlight default link zigVarDecl Function +highlight default link zigPreProc PreProc +highlight default link zigException Exception + +delfunction s:syntax_keyword + +let b:current_syntax = "zig" + +let &cpo = s:cpo_save +unlet! s:cpo_save diff --git a/git/usr/share/vim/vim92/syntax/zimbu.vim b/git/usr/share/vim/vim92/syntax/zimbu.vim new file mode 100644 index 0000000000000000000000000000000000000000..472559520ebe95fb5851b985e0b4cb209b61c8ab --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/zimbu.vim @@ -0,0 +1,161 @@ +" Vim syntax file +" Language: Zimbu +" Maintainer: The·Vim·Project· +" Last Change: 2023 Aug 13 +" Note: Zimbu seems to be dead :( + +if exists("b:current_syntax") + finish +endif + +syn include @Ccode syntax/c.vim + +syn keyword zimbuTodo TODO FIXME XXX contained +syn match zimbuNoBar "|" contained +syn match zimbuParam "|[^| ]\+|" contained contains=zimbuNoBar +syn match zimbuNoBacktick "`" contained +syn match zimbuCode "`[^`]\+`" contained contains=zimbuNoBacktick +syn match zimbuComment "#.*$" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell +syn match zimbuComment "/\*.\{-}\*/" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell + +syn match zimbuChar "'\\\=.'" + +syn keyword zimbuBasicType bool status +syn keyword zimbuBasicType int1 int2 int3 int4 int5 int6 int7 +syn keyword zimbuBasicType int9 int10 int11 int12 int13 int14 int15 +syn keyword zimbuBasicType int int8 int16 int32 int64 bigInt +syn keyword zimbuBasicType nat nat8 byte nat16 nat32 nat64 bigNat +syn keyword zimbuBasicType nat1 nat2 nat3 nat4 nat5 nat6 nat7 +syn keyword zimbuBasicType nat9 nat10 nat11 nat12 nat13 nat14 nat15 +syn keyword zimbuBasicType float float32 float64 float80 float128 +syn keyword zimbuBasicType fixed1 fixed2 fixed3 fixed4 fixed5 fixed6 +syn keyword zimbuBasicType fixed7 fixed8 fixed9 fixed10 fixed11 fixed12 +syn keyword zimbuBasicType fixed13 fixed14 fixed15 + +syn keyword zimbuCompType string varString +syn keyword zimbuCompType byteString varByteString +syn keyword zimbuCompType tuple array list dict dictList set callback +syn keyword zimbuCompType sortedList multiDict multiDictList multiSet +syn keyword zimbuCompType complex complex32 complex64 complex80 complex128 +syn keyword zimbuCompType proc func def thread evalThread lock cond pipe + +syn keyword zimbuType VAR dyn type USE GET +syn match zimbuType "IO.File" +syn match zimbuType "IO.Stat" + +syn keyword zimbuStatement IF ELSE ELSEIF IFNIL WHILE REPEAT FOR IN TO STEP +syn keyword zimbuStatement DO UNTIL SWITCH WITH +syn keyword zimbuStatement TRY CATCH FINALLY +syn keyword zimbuStatement GENERATE_IF GENERATE_ELSE GENERATE_ELSEIF +syn keyword zimbuStatement GENERATE_ERROR +syn keyword zimbuStatement BUILD_IF BUILD_ELSE BUILD_ELSEIF +syn keyword zimbuStatement CASE DEFAULT FINAL ABSTRACT VIRTUAL DEFINE REPLACE +syn keyword zimbuStatement IMPLEMENTS EXTENDS PARENT LOCAL +syn keyword zimbuStatement PART ALIAS TYPE CONNECT WRAP +syn keyword zimbuStatement BREAK CONTINUE PROCEED +syn keyword zimbuStatement RETURN EXIT THROW DEFER +syn keyword zimbuStatement IMPORT AS OPTIONS MAIN +syn keyword zimbuStatement INTERFACE PIECE INCLUDE MODULE ENUM BITS +syn keyword zimbuStatement SHARED STATIC +syn keyword zimbuStatement LAMBDA +syn match zimbuStatement "\<\(FUNC\|PROC\|DEF\)\>" +syn match zimbuStatement "\" +syn match zimbuStatement "}" + +syn match zimbuAttribute "@backtrace=no\>" +syn match zimbuAttribute "@backtrace=yes\>" +syn match zimbuAttribute "@abstract\>" +syn match zimbuAttribute "@earlyInit\>" +syn match zimbuAttribute "@default\>" +syn match zimbuAttribute "@define\>" +syn match zimbuAttribute "@replace\>" +syn match zimbuAttribute "@final\>" +syn match zimbuAttribute "@primitive\>" +syn match zimbuAttribute "@notOnExit\>" + +syn match zimbuAttribute "@private\>" +syn match zimbuAttribute "@protected\>" +syn match zimbuAttribute "@public\>" +syn match zimbuAttribute "@local\>" +syn match zimbuAttribute "@file\>" +syn match zimbuAttribute "@directory\>" +syn match zimbuAttribute "@read=private\>" +syn match zimbuAttribute "@read=protected\>" +syn match zimbuAttribute "@read=public\>" +syn match zimbuAttribute "@read=file\>" +syn match zimbuAttribute "@read=directory\>" +syn match zimbuAttribute "@items=private\>" +syn match zimbuAttribute "@items=protected\>" +syn match zimbuAttribute "@items=public\>" +syn match zimbuAttribute "@items=file\>" +syn match zimbuAttribute "@items=directory\>" + +syn keyword zimbuMethod NEW EQUAL COPY COMPARE SIZE GET SET INIT EARLYINIT + +syn keyword zimbuOperator IS ISNOT ISA ISNOTA + +syn keyword zimbuModule ARG CHECK E GC IO LOG PROTO SYS HTTP ZC ZWT T TIME THREAD + +syn match zimbuImport "\.\zsPROTO" +syn match zimbuImport "\.\zsCHEADER" + +"syn match zimbuString +"\([^"\\]\|\\.\)*\("\|$\)+ contains=zimbuStringExpr +syn region zimbuString start=+"+ skip=+[^"\\]\|\\.+ end=+"\|$+ contains=zimbuStringExpr +syn match zimbuString +R"\([^"]\|""\)*\("\|$\)+ +syn region zimbuLongString start=+''"+ end=+"''+ +syn match zimbuStringExpr +\\([^)]*)+hs=s+2,he=e-1 contained contains=zimbuString,zimbuParenPairOuter +syn region zimbuParenPairOuter start=+(+ms=s+1 end=+)+me=e-1 contained contains=zimbuString,zimbuParenPair +syn region zimbuParenPair start=+(+ end=+)+ contained contains=zimbuString,zimbuParenPair + +syn keyword zimbuFixed TRUE FALSE NIL THIS THISTYPE FAIL OK +syn keyword zimbuError NULL + +" trailing whitespace +syn match zimbuSpaceError display excludenl "\S\s\+$"ms=s+1 +" mixed tabs and spaces +syn match zimbuSpaceError display " \+\t" +syn match zimbuSpaceError display "\t\+ " + +syn match zimbuUses contained "\ +" Last Change: 2023 Jun 18 +" +" Zserio is a serialization schema language for modeling binary +" data types, bitstreams or file formats. Based on the zserio +" language it is possible to automatically generate encoders and +" decoders for a given schema in various target languages +" (e.g. Java, C++, Python). +" +" Zserio is an evolution of the DataScript language. +" +" For more information, see: +" - http://zserio.org/ +" - https://github.com/ndsev/zserio + +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:keepcpo= &cpo +set cpo&vim + +syn case match + +syn keyword zserioPackage import package zserio_compatibility_version +syn keyword zserioType bit bool string +syn keyword zserioType int int8 int16 int32 int64 +syn keyword zserioType uint8 uint16 uint32 uint64 +syn keyword zserioType float16 float32 float64 +syn keyword zserioType varint varint16 varint32 varint64 +syn keyword zserioType varuint varsize varuint16 varuint32 varuint64 +syn keyword zserioAlign align +syn keyword zserioLabel case default +syn keyword zserioConditional if condition +syn keyword zserioBoolean true false +syn keyword zserioCompound struct union choice on enum bitmask subtype +syn keyword zserioKeyword function return +syn keyword zserioOperator lengthof valueof instanceof numbits isset +syn keyword zserioRpc service pubsub topic publish subscribe +syn keyword zserioRule rule_group rule +syn keyword zserioStorageClass const implicit packed instantiate +syn keyword zserioTodo contained TODO FIXME XXX +syn keyword zserioSql sql sql_table sql_database sql_virtual sql_without_rowid +syn keyword zserioSql explicit using + +" zserioCommentGroup allows adding matches for special things in comments. +syn cluster zserioCommentGroup contains=zserioTodo + +syn match zserioOffset display "^\s*[a-zA-Z_:\.][a-zA-Z0-9_:\.]*\s*:" + +syn match zserioNumber display "\<\d\+\>" +syn match zserioNumberHex display "\<0[xX]\x\+\>" +syn match zserioNumberBin display "\<[01]\+[bB]\>" contains=zserioBinaryB +syn match zserioBinaryB display contained "[bB]\>" +syn match zserioOctal display "\<0\o\+\>" contains=zserioOctalZero +syn match zserioOctalZero display contained "\<0" + +syn match zserioOctalError display "\<0\o*[89]\d*\>" + +syn match zserioCommentError display "\*/" +syn match zserioCommentStartError display "/\*"me=e-1 contained + +syn region zserioCommentL + \ start="//" skip="\\$" end="$" keepend + \ contains=@zserioCommentGroup,@Spell +syn region zserioComment + \ matchgroup=zserioCommentStart start="/\*" end="\*/" + \ contains=@zserioCommentGroup,zserioCommentStartError,@Spell extend + +syn region zserioString + \ start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell + +syn sync ccomment zserioComment + +" Define the default highlighting. +hi def link zserioType Type +hi def link zserioEndian StorageClass +hi def link zserioStorageClass StorageClass +hi def link zserioAlign Label +hi def link zserioLabel Label +hi def link zserioOffset Label +hi def link zserioSql PreProc +hi def link zserioCompound Structure +hi def link zserioConditional Conditional +hi def link zserioBoolean Boolean +hi def link zserioKeyword Statement +hi def link zserioRpc Keyword +hi def link zserioRule Keyword +hi def link zserioString String +hi def link zserioNumber Number +hi def link zserioNumberBin Number +hi def link zserioBinaryB Special +hi def link zserioOctal Number +hi def link zserioOctalZero Special +hi def link zserioOctalError Error +hi def link zserioNumberHex Number +hi def link zserioTodo Todo +hi def link zserioOperator Operator +hi def link zserioPackage Include +hi def link zserioCommentError Error +hi def link zserioCommentStartError Error +hi def link zserioCommentStart zserioComment +hi def link zserioCommentL zserioComment +hi def link zserioComment Comment + +let b:current_syntax = "zserio" + +let &cpo = s:keepcpo +unlet s:keepcpo diff --git a/git/usr/share/vim/vim92/syntax/zsh.vim b/git/usr/share/vim/vim92/syntax/zsh.vim new file mode 100644 index 0000000000000000000000000000000000000000..3bd0b87b7583cac68a69695c7fb929134e4b188a --- /dev/null +++ b/git/usr/share/vim/vim92/syntax/zsh.vim @@ -0,0 +1,361 @@ +" Vim syntax file +" Language: Zsh shell script +" Maintainer: Christian Brabandt +" Previous Maintainer: Nikolai Weibull +" Latest Revision: 2025 Feb 18 +" License: Vim (see :h license) +" Repository: https://github.com/chrisbra/vim-zsh + +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +function! s:ContainedGroup() + " needs 7.4.2008 for execute() function + let result='TOP' + " vim-pandoc syntax defines the @langname cluster for embedded syntax languages + " However, if no syntax is defined yet, `syn list @zsh` will return + " "No syntax items defined", so make sure the result is actually a valid syn cluster + for cluster in ['markdownHighlight_zsh', 'zsh'] + try + " markdown syntax defines embedded clusters as @markdownhighlight_, + " pandoc just uses @, so check both for both clusters + let a=split(execute('syn list @'. cluster), "\n") + if len(a) == 2 && a[0] =~# '^---' && a[1] =~? cluster + return '@'. cluster + endif + catch /E392/ + " ignore + endtry + endfor + return result +endfunction + +let s:contained=s:ContainedGroup() + +syn iskeyword @,48-57,_,192-255,#,- + +syn match zshQuoted '\\.' +syn match zshPOSIXQuoted '\\[xX][0-9a-fA-F]\{1,2}' +syn match zshPOSIXQuoted '\\[0-7]\{1,3}' +syn match zshPOSIXQuoted '\\u[0-9a-fA-F]\{1,4}' +syn match zshPOSIXQuoted '\\U[1-9a-fA-F]\{1,8}' + +syn region zshString matchgroup=zshStringDelimiter start=+"+ end=+"+ + \ contains=@Spell,zshQuoted,@zshDerefs,@zshSubstQuoted fold +syn region zshString matchgroup=zshStringDelimiter start=+'+ end=+'+ fold + \ contains=@Spell +syn region zshPOSIXString matchgroup=zshStringDelimiter start=+\$'+ + \ skip=+\\[\\']+ end=+'+ contains=zshPOSIXQuoted,zshQuoted +syn match zshJobSpec '%\(\d\+\|?\=\w\+\|[%+-]\)' + +syn match zshNumber '[+-]\=\<\d\+\>' +syn match zshNumber '[+-]\=\<0x\x\+\>' +syn match zshNumber '[+-]\=\<0\o\+\>' +syn match zshNumber '[+-]\=\d\+#[-+]\=\w\+\>' +syn match zshNumber '[+-]\=\d\+\.\d\+\>' + +syn keyword zshPrecommand noglob nocorrect exec command builtin - time + +syn keyword zshDelimiter do done end + +syn keyword zshConditional if then elif else fi esac select + +syn keyword zshCase case nextgroup=zshCaseWord skipwhite +syn match zshCaseWord /\S\+/ nextgroup=zshCaseIn skipwhite contained transparent +syn keyword zshCaseIn in nextgroup=zshComment,zshCasePattern skipwhite skipnl contained +syn match zshCasePattern /\S[^)]*)/ contained + +syn keyword zshRepeat while until repeat + +syn keyword zshRepeat for foreach nextgroup=zshVariable skipwhite + +syn keyword zshException always + +syn keyword zshKeyword function nextgroup=zshKSHFunction skipwhite + +syn match zshKSHFunction contained '\w\S\+' +syn match zshFunction '^\s*\k\+\ze\s*()' + +syn match zshOperator '||\|&&\|;\|&!\=' + + " <<<, <, <>, and variants. +syn match zshRedir '\d\=\(<<<\|<&\s*[0-9p-]\=\|<>\?\)' + " >, >>, and variants. +syn match zshRedir '\d\=\(>&\s*[0-9p-]\=\|&>>\?\|>>\?&\?\)[|!]\=' + " | and |&, but only if it's not preceded or + " followed by a | to avoid matching ||. +syn match zshRedir '|\@1' + +syn match zshLongDeref '\$\%(ARGC\|argv\|status\|pipestatus\|CPUTYPE\|EGID\|EUID\|ERRNO\|GID\|HOST\|LINENO\|LOGNAME\)' +syn match zshLongDeref '\$\%(MACHTYPE\|OLDPWD OPTARG\|OPTIND\|OSTYPE\|PPID\|PWD\|RANDOM\|SECONDS\|SHLVL\|signals\)' +syn match zshLongDeref '\$\%(TRY_BLOCK_ERROR\|TTY\|TTYIDLE\|UID\|USERNAME\|VENDOR\|ZSH_NAME\|ZSH_VERSION\|REPLY\|reply\|TERM\)' + +syn match zshDollarVar '\$\h\w*' +syn match zshDeref '\$[=^~]*[#+]*\h\w*\>' + +syn match zshCommands '\%(^\|\s\)[.:]\ze\s' +syn keyword zshCommands alias autoload bg bindkey break bye cap cd + \ chdir clone comparguments compcall compctl + \ compdescribe compfiles compgroups compquote + \ comptags comptry compvalues continue dirs + \ disable disown echo echotc echoti emulate + \ enable eval exec exit export false fc fg + \ functions getcap getln getopts hash history + \ jobs kill let limit log logout popd print + \ printf prompt pushd pushln pwd r read + \ rehash return sched set setcap shift + \ source stat suspend test times trap true + \ ttyctl type ulimit umask unalias unfunction + \ unhash unlimit unset vared wait + \ whence where which zcompile zformat zftp zle + \ zmodload zparseopts zprof zpty zrecompile + \ zregexparse zsocket zstyle ztcp + +" Options, generated by from the zsh source with the make-options.zsh script. +syn case ignore +syn match zshOptStart + \ /\v^\s*%(%(un)?setopt|set\s+[-+]o)/ + \ nextgroup=zshOption skipwhite + +" this list is generated using the make-options.zsh script and the zsh source repository +syn keyword zshOption nextgroup=zshOption,zshComment skipwhite contained + \ auto_cd no_auto_cd autocd noautocd auto_pushd no_auto_pushd autopushd noautopushd cdable_vars + \ no_cdable_vars cdablevars nocdablevars cd_silent no_cd_silent cdsilent nocdsilent chase_dots + \ no_chase_dots chasedots nochasedots chase_links no_chase_links chaselinks nochaselinks posix_cd + \ posixcd no_posix_cd noposixcd pushd_ignore_dups no_pushd_ignore_dups pushdignoredups + \ nopushdignoredups pushd_minus no_pushd_minus pushdminus nopushdminus pushd_silent no_pushd_silent + \ pushdsilent nopushdsilent pushd_to_home no_pushd_to_home pushdtohome nopushdtohome + \ always_last_prompt no_always_last_prompt alwayslastprompt noalwayslastprompt always_to_end + \ no_always_to_end alwaystoend noalwaystoend auto_list no_auto_list autolist noautolist auto_menu + \ no_auto_menu automenu noautomenu auto_name_dirs no_auto_name_dirs autonamedirs noautonamedirs + \ auto_param_keys no_auto_param_keys autoparamkeys noautoparamkeys auto_param_slash + \ no_auto_param_slash autoparamslash noautoparamslash auto_remove_slash no_auto_remove_slash + \ autoremoveslash noautoremoveslash bash_auto_list no_bash_auto_list bashautolist nobashautolist + \ complete_aliases no_complete_aliases completealiases nocompletealiases complete_in_word + \ no_complete_in_word completeinword nocompleteinword glob_complete no_glob_complete globcomplete + \ noglobcomplete hash_list_all no_hash_list_all hashlistall nohashlistall list_ambiguous + \ no_list_ambiguous listambiguous nolistambiguous list_beep no_list_beep listbeep nolistbeep + \ list_packed no_list_packed listpacked nolistpacked list_rows_first no_list_rows_first listrowsfirst + \ nolistrowsfirst list_types no_list_types listtypes nolisttypes menu_complete no_menu_complete + \ menucomplete nomenucomplete rec_exact no_rec_exact recexact norecexact bad_pattern no_bad_pattern + \ badpattern nobadpattern bare_glob_qual no_bare_glob_qual bareglobqual nobareglobqual brace_ccl + \ no_brace_ccl braceccl nobraceccl case_glob no_case_glob caseglob nocaseglob case_match + \ no_case_match casematch nocasematch case_paths no_case_paths casepaths nocasepaths csh_null_glob + \ no_csh_null_glob cshnullglob nocshnullglob equals no_equals noequals extended_glob no_extended_glob + \ extendedglob noextendedglob force_float no_force_float forcefloat noforcefloat glob no_glob noglob + \ glob_assign no_glob_assign globassign noglobassign glob_dots no_glob_dots globdots noglobdots + \ glob_star_short no_glob_star_short globstarshort noglobstarshort glob_subst no_glob_subst globsubst + \ noglobsubst hist_subst_pattern no_hist_subst_pattern histsubstpattern nohistsubstpattern + \ ignore_braces no_ignore_braces ignorebraces noignorebraces ignore_close_braces + \ no_ignore_close_braces ignoreclosebraces noignoreclosebraces ksh_glob no_ksh_glob kshglob nokshglob + \ magic_equal_subst no_magic_equal_subst magicequalsubst nomagicequalsubst mark_dirs no_mark_dirs + \ markdirs nomarkdirs multibyte no_multibyte nomultibyte nomatch no_nomatch nonomatch null_glob + \ no_null_glob nullglob nonullglob numeric_glob_sort no_numeric_glob_sort numericglobsort + \ nonumericglobsort rc_expand_param no_rc_expand_param rcexpandparam norcexpandparam rematch_pcre + \ no_rematch_pcre rematchpcre norematchpcre sh_glob no_sh_glob shglob noshglob unset no_unset nounset + \ warn_create_global no_warn_create_global warncreateglobal nowarncreateglobal warn_nested_var + \ no_warn_nested_var warnnestedvar no_warnnestedvar nowarnnestedvar append_history no_append_history + \ appendhistory noappendhistory bang_hist no_bang_hist banghist nobanghist extended_history + \ no_extended_history extendedhistory noextendedhistory hist_allow_clobber no_hist_allow_clobber + \ histallowclobber nohistallowclobber hist_beep no_hist_beep histbeep nohistbeep + \ hist_expire_dups_first no_hist_expire_dups_first histexpiredupsfirst nohistexpiredupsfirst + \ hist_fcntl_lock no_hist_fcntl_lock histfcntllock nohistfcntllock hist_find_no_dups + \ no_hist_find_no_dups histfindnodups nohistfindnodups hist_ignore_all_dups no_hist_ignore_all_dups + \ histignorealldups nohistignorealldups hist_ignore_dups no_hist_ignore_dups histignoredups + \ nohistignoredups hist_ignore_space no_hist_ignore_space histignorespace nohistignorespace + \ hist_lex_words no_hist_lex_words histlexwords nohistlexwords hist_no_functions no_hist_no_functions + \ histnofunctions nohistnofunctions hist_no_store no_hist_no_store histnostore nohistnostore + \ hist_reduce_blanks no_hist_reduce_blanks histreduceblanks nohistreduceblanks hist_save_by_copy + \ no_hist_save_by_copy histsavebycopy nohistsavebycopy hist_save_no_dups no_hist_save_no_dups + \ histsavenodups nohistsavenodups hist_verify no_hist_verify histverify nohistverify + \ inc_append_history no_inc_append_history incappendhistory noincappendhistory + \ inc_append_history_time no_inc_append_history_time incappendhistorytime noincappendhistorytime + \ share_history no_share_history sharehistory nosharehistory all_export no_all_export allexport + \ noallexport global_export no_global_export globalexport noglobalexport global_rcs no_global_rcs + \ globalrcs noglobalrcs rcs no_rcs norcs aliases no_aliases noaliases clobber no_clobber noclobber + \ clobber_empty no_clobber_empty clobberempty noclobberempty correct no_correct nocorrect correct_all + \ no_correct_all correctall nocorrectall dvorak no_dvorak nodvorak flow_control no_flow_control + \ flowcontrol noflowcontrol ignore_eof no_ignore_eof ignoreeof noignoreeof interactive_comments + \ no_interactive_comments interactivecomments nointeractivecomments hash_cmds no_hash_cmds hashcmds + \ nohashcmds hash_dirs no_hash_dirs hashdirs nohashdirs hash_executables_only + \ no_hash_executables_only hashexecutablesonly nohashexecutablesonly mail_warning no_mail_warning + \ mailwarning nomailwarning path_dirs no_path_dirs pathdirs nopathdirs path_script no_path_script + \ pathscript nopathscript print_eight_bit no_print_eight_bit printeightbit noprinteightbit + \ print_exit_value no_print_exit_value printexitvalue noprintexitvalue rc_quotes no_rc_quotes + \ rcquotes norcquotes rm_star_silent no_rm_star_silent rmstarsilent normstarsilent rm_star_wait + \ no_rm_star_wait rmstarwait normstarwait short_loops no_short_loops shortloops noshortloops + \ short_repeat no_short_repeat shortrepeat noshortrepeat sun_keyboard_hack no_sun_keyboard_hack + \ sunkeyboardhack nosunkeyboardhack auto_continue no_auto_continue autocontinue noautocontinue + \ auto_resume no_auto_resume autoresume noautoresume bg_nice no_bg_nice bgnice nobgnice check_jobs + \ no_check_jobs checkjobs nocheckjobs check_running_jobs no_check_running_jobs checkrunningjobs + \ nocheckrunningjobs hup no_hup nohup long_list_jobs no_long_list_jobs longlistjobs nolonglistjobs + \ monitor no_monitor nomonitor notify no_notify nonotify posix_jobs posixjobs no_posix_jobs + \ noposixjobs prompt_bang no_prompt_bang promptbang nopromptbang prompt_cr no_prompt_cr promptcr + \ nopromptcr prompt_sp no_prompt_sp promptsp nopromptsp prompt_percent no_prompt_percent + \ promptpercent nopromptpercent prompt_subst no_prompt_subst promptsubst nopromptsubst + \ transient_rprompt no_transient_rprompt transientrprompt notransientrprompt alias_func_def + \ no_alias_func_def aliasfuncdef noaliasfuncdef c_bases no_c_bases cbases nocbases c_precedences + \ no_c_precedences cprecedences nocprecedences debug_before_cmd no_debug_before_cmd debugbeforecmd + \ nodebugbeforecmd err_exit no_err_exit errexit noerrexit err_return no_err_return errreturn + \ noerrreturn eval_lineno no_eval_lineno evallineno noevallineno exec no_exec noexec function_argzero + \ no_function_argzero functionargzero nofunctionargzero local_loops no_local_loops localloops + \ nolocalloops local_options no_local_options localoptions nolocaloptions local_patterns + \ no_local_patterns localpatterns nolocalpatterns local_traps no_local_traps localtraps nolocaltraps + \ multi_func_def no_multi_func_def multifuncdef nomultifuncdef multios no_multios nomultios + \ octal_zeroes no_octal_zeroes octalzeroes nooctalzeroes pipe_fail no_pipe_fail pipefail nopipefail + \ source_trace no_source_trace sourcetrace nosourcetrace typeset_silent no_typeset_silent + \ typesetsilent notypesetsilent typeset_to_unset no_typeset_to_unset typesettounset notypesettounset + \ verbose no_verbose noverbose xtrace no_xtrace noxtrace append_create no_append_create appendcreate + \ noappendcreate bash_rematch no_bash_rematch bashrematch nobashrematch bsd_echo no_bsd_echo bsdecho + \ nobsdecho continue_on_error no_continue_on_error continueonerror nocontinueonerror + \ csh_junkie_history no_csh_junkie_history cshjunkiehistory nocshjunkiehistory csh_junkie_loops + \ no_csh_junkie_loops cshjunkieloops nocshjunkieloops csh_junkie_quotes no_csh_junkie_quotes + \ cshjunkiequotes nocshjunkiequotes csh_nullcmd no_csh_nullcmd cshnullcmd nocshnullcmd ksh_arrays + \ no_ksh_arrays ksharrays noksharrays ksh_autoload no_ksh_autoload kshautoload nokshautoload + \ ksh_option_print no_ksh_option_print kshoptionprint nokshoptionprint ksh_typeset no_ksh_typeset + \ kshtypeset nokshtypeset ksh_zero_subscript no_ksh_zero_subscript kshzerosubscript + \ nokshzerosubscript posix_aliases no_posix_aliases posixaliases noposixaliases posix_argzero + \ no_posix_argzero posixargzero noposixargzero posix_builtins no_posix_builtins posixbuiltins + \ noposixbuiltins posix_identifiers no_posix_identifiers posixidentifiers noposixidentifiers + \ posix_strings no_posix_strings posixstrings noposixstrings posix_traps no_posix_traps posixtraps + \ noposixtraps sh_file_expansion no_sh_file_expansion shfileexpansion noshfileexpansion sh_nullcmd + \ no_sh_nullcmd shnullcmd noshnullcmd sh_option_letters no_sh_option_letters shoptionletters + \ noshoptionletters sh_word_split no_sh_word_split shwordsplit noshwordsplit traps_async + \ no_traps_async trapsasync notrapsasync interactive no_interactive nointeractive login no_login + \ nologin privileged no_privileged noprivileged restricted no_restricted norestricted shin_stdin + \ no_shin_stdin shinstdin noshinstdin single_command no_single_command singlecommand nosinglecommand + \ beep no_beep nobeep combining_chars no_combining_chars combiningchars nocombiningchars emacs + \ no_emacs noemacs overstrike no_overstrike nooverstrike single_line_zle no_single_line_zle + \ singlelinezle nosinglelinezle vi no_vi novi zle no_zle nozle brace_expand no_brace_expand + \ braceexpand nobraceexpand dot_glob no_dot_glob dotglob nodotglob hash_all no_hash_all hashall + \ nohashall hist_append no_hist_append histappend nohistappend hist_expand no_hist_expand histexpand + \ nohistexpand log no_log nolog mail_warn no_mail_warn mailwarn nomailwarn one_cmd no_one_cmd onecmd + \ noonecmd physical no_physical nophysical prompt_vars no_prompt_vars promptvars nopromptvars stdin + \ no_stdin nostdin track_all no_track_all trackall notrackall +syn case match + +syn keyword zshTypes float integer local typeset declare private readonly + +" XXX: this may be too much +" syn match zshSwitches '\s\zs--\=[a-zA-Z0-9-]\+' + +" TODO: $[...] is the same as $((...)), so add that as well. +syn cluster zshSubst contains=zshSubst,zshOldSubst,zshMathSubst +syn cluster zshSubstQuoted contains=zshSubstQuoted,zshOldSubst,zshMathSubst +exe 'syn region zshSubst matchgroup=zshSubstDelim transparent start=/\$(/ skip=/\\)/ end=/)/ contains='.s:contained. ' fold' +exe 'syn region zshSubstQuoted matchgroup=zshSubstDelim transparent start=/\$(/ skip=/\\)/ end=/)/ contains='.s:contained. ' fold' +syn region zshSubstQuoted matchgroup=zshSubstDelim start='\${' skip='\\}' end='}' contains=@zshSubst,zshBrackets,zshQuoted fold +syn region zshParentheses transparent start='(' skip='\\)' end=')' fold +syn region zshGlob start='(#' end=')' +syn region zshMathSubst matchgroup=zshSubstDelim transparent + \ start='\%(\$\?\)[<=>]\@' + +syn keyword zshTodo contained TODO FIXME XXX NOTE + +syn region zshComment oneline start='\%(^\|\s\+\)#' end='$' + \ contains=zshTodo,@Spell fold + +syn region zshComment start='^\s*#' end='^\%(\s*#\)\@!' + \ contains=zshTodo,@Spell fold + +syn match zshPreProc '^\%1l#\%(!\|compdef\|autoload\).*$' + +hi def link zshTodo Todo +hi def link zshComment Comment +hi def link zshPreProc PreProc +hi def link zshQuoted SpecialChar +hi def link zshPOSIXQuoted SpecialChar +hi def link zshString String +hi def link zshStringDelimiter zshString +hi def link zshPOSIXString zshString +hi def link zshJobSpec Special +hi def link zshPrecommand Special +hi def link zshDelimiter Keyword +hi def link zshConditional Conditional +hi def link zshCase zshConditional +hi def link zshCaseIn zshCase +hi def link zshException Exception +hi def link zshRepeat Repeat +hi def link zshKeyword Keyword +hi def link zshFunction None +hi def link zshKSHFunction zshFunction +hi def link zshHereDoc String +hi def link zshOperator Operator +hi def link zshRedir Operator +hi def link zshVariable None +hi def link zshVariableDef zshVariable +hi def link zshDereferencing PreProc +hi def link zshShortDeref zshDereferencing +hi def link zshLongDeref zshDereferencing +hi def link zshDeref zshDereferencing +hi def link zshDollarVar zshDereferencing +hi def link zshCommands Keyword +hi def link zshOptStart Keyword +hi def link zshOption Constant +hi def link zshTypes Type +hi def link zshSwitches Special +hi def link zshNumber Number +hi def link zshSubst PreProc +hi def link zshSubstQuoted zshSubst +hi def link zshMathSubst zshSubst +hi def link zshOldSubst zshSubst +hi def link zshSubstDelim zshSubst +hi def link zshGlob zshSubst + +let b:current_syntax = "zsh" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/git/usr/share/vim/vim92/tools/README.txt b/git/usr/share/vim/vim92/tools/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..1758ca65330faedd41b5e16964cba35355bf5244 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/README.txt @@ -0,0 +1,40 @@ +Some tools that can be used with Vim: + +blink.c: C program to make the cursor blink in an xterm. + +ccfilter*: C program to filter the output of a few compilers to a common + QuickFix format. + +efm_filter.*: Perl script to filter compiler messages to QuickFix format. + +efm_perl.pl: Perl script to filter error messages from the Perl interpreter + for use with Vim quickfix mode. + +mve.* Awk script to filter error messages to QuickFix format. + +pltags.pl: Perl script to create a tags file from Perl scripts. + +ref: Shell script for the K command. + +preproc_indent.vim: + Fix preprocessor indentation in Vim's C source code. + +shtags.*: Perl script to create a tags file from a shell script. + +vim132: Shell script to edit in 132 column mode on vt100 compatible + terminals. + +vimm: Shell script to start Vim on a DEC terminal with mouse + enabled. + +vimspell.*: Shell script for highlighting spelling mistakes. + +vim_vs_net.cmd: MS-Windows command file to use Vim with MS Visual Studio 7 and + later. + +xcmdsrv_client.c: Example for a client program that communicates with a Vim + server through the X-Windows interface. + +unicode.vim Vim script to generate tables for src/mbyte.c. + +[xxd can be found in the src directory] diff --git a/git/usr/share/vim/vim92/tools/ccfilter.1 b/git/usr/share/vim/vim92/tools/ccfilter.1 new file mode 100644 index 0000000000000000000000000000000000000000..92fe624dc8ee1504c04e7b5706d0737817d33604 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/ccfilter.1 @@ -0,0 +1,93 @@ +.TH ccfilter 1 "01-Apr-97" +.SH NAME +ccfilter \- a compiler's output filter for vim quickfix +.SH SYNOPSIS +ccfilter [ +.B +] +.SH DESCRIPTION +The ccfilter utility "filters" the output of several compilers +and makers (make/gmake) from several platforms (see NOTES below) +to a standardized format which easily fits in vim's quickfix +feature. For further details, see in vim ":help quickfix". +.PP +ccfilter reads +.B 'stdin' +and outputs to +.B 'stdout' +\. +.PP +The need for ccfilter is clear, as some compilers have irregular +and/or multiple line error messages (with the relevant information on +line 2), which makes it impossible for the errorformat to correctly +display them ! + +When working on different platforms, and with different compilers, +ccfilter eases the utilization of quickfix, due to its standardized +output, allowing to have in .vimrc a plain +.br +.B \ \ \ \ :set\ errorformat=%f:%l:%c:%t:%m + +.SH USAGE +When using ccfilter, one would include the following lines in .vimrc: +.br +.B \ \ \ \ :set shellpipe=\\\\|&ccfilter\\\\> +.br +.B \ \ \ \ :set errorformat=%f:%l:%c:%t:%m + +.SH OPTIONS +.TP 16 +-c +Decrement column by one. This may be needed, depending on +the compiler being used. +.TP +-r +Decrement row by one. This may be needed, depending on +the compiler being used. +.TP +-v +Verbose (Outputs also invalid lines). +This option makes ccfilter output also the lines that +couldn't be correctly parsed. This is used mostly for +ccfilter debugging. +.TP +-o +Treat input as 's output. +Even when configuring ccfilter to assume a default +COMPILER, sometimes it's helpful to be able to specify +the COMPILER used to generate ccfilter's input. +For example, when cross-compiling on a network from a +single machine. +.TP +-h +Shows a brief help, describing the configured default COMPILER +and the valid parameters for COMPILER. + +.SH NOTES +Currently, ccfilter accepts output from several compilers, as +described below: +.TP 10 +GCC +GCC compiler +.TP +AIX +AIX's C compiler +.TP +ATT +AT&T/NCR's High Performance C Compiler +.TP +IRIX +IRIX's MIPS/MIPSpro C compiler +.TP +SOLARIS +SOLARIS's SparcWorks C compiler +.TP +HPUX +HPUX's C compiler + +.SH AUTHOR +.B ccfilter +was developed by +.B Pablo Ariel Kohan +.BR +.B mailto:pablo@memco.co.il diff --git a/git/usr/share/vim/vim92/tools/ccfilter_README.txt b/git/usr/share/vim/vim92/tools/ccfilter_README.txt new file mode 100644 index 0000000000000000000000000000000000000000..ea989f2574129b8ed486e6b3f5d302ee06232016 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/ccfilter_README.txt @@ -0,0 +1,101 @@ +READ THIS FIRST +=============== + +ccfilter is a C program to filter the output of a few compilers to a common +QuickFix format. It is provided with Vim to make quickfix useful for more +compilers. + +ccfilter WILL FAIL with long lines (more than 2047 bytes). + + +COMPILING AND INSTALLING: +========================= + +To compile ccfilter, you can just do a plain: + cc ccfilter.c -o ccfilter +Though, it may be wise to have your default compiler defined, +so you would normally compile it with one of the following: + cc -D_GCC ccfilter.c -o ccfilter + cc -D_AIX ccfilter.c -o ccfilter + cc -D_ATT ccfilter.c -o ccfilter + cc -D_IRIX ccfilter.c -o ccfilter + cc -D_SOLARIS ccfilter.c -o ccfilter + cc -D_HPUX ccfilter.c -o ccfilter +You can then copy ccfilter to its target destination (i.e: /usr/local/bin). +The man page ccfilter.1 has to be copied to somewhere in your MANPATH, +under a man1 directory (i.e: /usr/local/man/man1). + + +SUPPORTED COMPILERS/PORTING NOTES: +================================== + +The supported formats for the different compilers are described below: +In this section, meta-names are used as place-holders in the line +formats: <> +The <> denotes ignored text. +Line formats are delimited by the ^ (caret) symbol. + +0) Special case: "gmake directory change" lines: + Lines with a format like: + ^gmake[]: Entering directory `'^ + are used to follow the directory changes during the make process, + providing in the part, a relative (if possible) directory + path to the erroneous file. + + +1) GCC: + Recognized lines are of the format: + - ^In file included from ::^ + Line following this one is used as + is always 'e' (error) + is always '0' + + - ^::^ + is always 'e' (error) + is always '0' + + +2) AIX: + Recognized lines are of the format: + - ^"", line .: <> () ", + + +3) HPUX: + Recognized lines are of the format: + - ^cc: "", line : : ^ + is always '0' + + +4) SOLARIS: + Recognized lines are of the format: + - ^"", line : warning: ^ + This assumes is "W" + is always '0' + + - ^"", line : ^ + This assumes is "E" + is always '0' + + +5) ATT / NCR: + Recognized lines are of the format: + - ^ "",L/C<>:^ + or + - ^ "",L/C:^ + Following lines beginning with a pipe (|) are continuation + lines, and are therefore appended to the + + - ^ "",L:^ + is '0' + Following lines beginning with a pipe (|) are continuation + lines, and are therefore appended to the + + +6) SGI-IRIX: + Recognized lines are of the format: + - ^cfe: : : : ^ + or + ^cfe: : , line : ^ + Following lines beginning with a dash (-) are "column-bar" + that end with a caret in the column of the error. These lines + are analyzed to generate the . diff --git a/git/usr/share/vim/vim92/tools/demoserver.py b/git/usr/share/vim/vim92/tools/demoserver.py new file mode 100644 index 0000000000000000000000000000000000000000..2667aed3961eaff777911b8c21030a37a03c2fee --- /dev/null +++ b/git/usr/share/vim/vim92/tools/demoserver.py @@ -0,0 +1,107 @@ +#!/usr/bin/python +# +# Server that will accept connections from a Vim channel. +# Run this server and then in Vim you can open the channel: +# :let handle = ch_open('localhost:8765') +# +# Then Vim can send requests to the server: +# :let response = ch_sendexpr(handle, 'hello!') +# +# And you can control Vim by typing a JSON message here, e.g.: +# ["ex","echo 'hi there'"] +# +# There is no prompt, just type a line and press Enter. +# To exit cleanly type "quit". +# +# See ":help channel-demo" in Vim. +# +# This requires Python 2.6 or later. + +from __future__ import print_function +import json +import socket +import sys +import threading + +try: + # Python 3 + import socketserver +except ImportError: + # Python 2 + import SocketServer as socketserver + +thesocket = None + +class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): + + def handle(self): + print("=== socket opened ===") + global thesocket + thesocket = self.request + while True: + try: + data = self.request.recv(4096).decode('utf-8') + except socket.error: + print("=== socket error ===") + break + if data == '': + print("=== socket closed ===") + break + print("received: {0}".format(data)) + try: + decoded = json.loads(data) + except ValueError: + print("json decoding failed") + decoded = [-1, ''] + + # Send a response if the sequence number is positive. + # Negative numbers are used for "eval" responses. + if decoded[0] >= 0: + if decoded[1] == 'hello!': + response = "got it" + id = decoded[0] + elif decoded[1] == 'hello channel!': + response = "got that" + # response is not to a specific message callback but to the + # channel callback, need to use ID zero + id = 0 + else: + response = "what?" + id = decoded[0] + encoded = json.dumps([id, response]) + print("sending {0}".format(encoded)) + self.request.sendall(encoded.encode('utf-8')) + thesocket = None + +class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer): + pass + +if __name__ == "__main__": + HOST, PORT = "localhost", 8765 + + server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler) + ip, port = server.server_address + + # Start a thread with the server -- that thread will then start one + # more thread for each request + server_thread = threading.Thread(target=server.serve_forever) + + # Exit the server thread when the main thread terminates + server_thread.daemon = True + server_thread.start() + print("Server loop running in thread: ", server_thread.name) + + print("Listening on port {0}".format(PORT)) + while True: + typed = sys.stdin.readline() + if "quit" in typed: + print("Goodbye!") + break + if thesocket is None: + print("No socket yet") + else: + print("sending {0}".format(typed)) + thesocket.sendall(typed.encode('utf-8')) + + server.shutdown() + server.server_close() diff --git a/git/usr/share/vim/vim92/tools/efm_filter.pl b/git/usr/share/vim/vim92/tools/efm_filter.pl new file mode 100644 index 0000000000000000000000000000000000000000..1d1a4f303bc0373de751c875e06e6e46eb4f25a0 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/efm_filter.pl @@ -0,0 +1,39 @@ +#!/usr/bin/env perl +# +# This program works as a filter that reads from stdin, copies to +# stdout *and* creates an error file that can be read by vim. +# +# This program has only been tested on SGI, Irix5.3. +# +# Written by Ives Aerts in 1996. This little program is not guaranteed +# to do (or not do) anything at all and can be freely used for +# whatever purpose you can think of. + +$args = @ARGV; + +unless ($args == 1) { + die("Usage: vimccparse \n"); +} + +$filename = @ARGV[0]; +open (OUT, ">$filename") || die ("Can't open file: \"$filename\""); + +while () { + print; + if ( (/"(.*)", line (\d+): (e)rror\((\d+)\):/) + || (/"(.*)", line (\d+): (w)arning\((\d+)\):/) ) { + $file=$1; + $line=$2; + $errortype="\u$3"; + $errornr=$4; + chop($errormsg=); + $errormsg =~ s/^\s*//; + $sourceline=; + $column=index(, "^") - 1; + + print OUT "$file>$line:$column:$errortype:$errornr:$errormsg\n"; + } +} + +close(OUT); +exit(0); diff --git a/git/usr/share/vim/vim92/tools/efm_filter.txt b/git/usr/share/vim/vim92/tools/efm_filter.txt new file mode 100644 index 0000000000000000000000000000000000000000..d3f97f45ad0bc1a07a55c3785c192b4cedb68c64 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/efm_filter.txt @@ -0,0 +1,31 @@ +[adopted from a message that Ives posted in the Vim mailing list] + +Some compilers produce an error message that cannot be handled with +'errorformat' in Vim. Following is an example of a Perl script that +translates one error message into something that Vim understands. + + +The compiler that generates this kind of error messages (4 lines): + +"/tmp_mnt/cm/src/apertos/MoU/MetaCore/MetaCore/common/src/MetaCoreImp_M.cc", +line 50: error(3114): + identifier "PRIMITIVE_M" is undefined + return(ExecuteCore(PRIMITIVE_M, + +You can find a small perl program at the end. +The way I use it is: + +:set errorformat=%f>%l:%c:%t:%n:%m +:set makeprg=clearmake\ -C\ gnu +:set shellpipe=2>&1\|\ vimccparse + +If somebody thinks this is useful: feel free to do whatever you can think +of with this code. + +-Ives +____________________________________________________________ +Ives Aerts (SW Developer) Sony Telecom Europe +ives@sonytel.be St.Stevens Woluwestr. 55 +`Death could create most things, B-1130 Brussels, Belgium + except for plumbing.' PHONE : +32 2 724 19 67 + (Soul Music - T.Pratchett) FAX : +32 2 726 26 86 diff --git a/git/usr/share/vim/vim92/tools/efm_perl.pl b/git/usr/share/vim/vim92/tools/efm_perl.pl new file mode 100644 index 0000000000000000000000000000000000000000..1aab2d4ea02d325d48ea8f89c3963539d05bb90b --- /dev/null +++ b/git/usr/share/vim/vim92/tools/efm_perl.pl @@ -0,0 +1,153 @@ +#!/usr/bin/perl -w + +# vimparse.pl - Reformats the error messages of the Perl interpreter for use +# with the quickfix mode of Vim +# +# Copyright (c) 2001 by Joerg Ziefle +# You may use and distribute this software under the same terms as Perl itself. +# +# Usage: put one of the two configurations below in your ~/.vimrc (without the +# description and '# ') and enjoy (be sure to adjust the paths to vimparse.pl +# before): +# +# Program is run interactively with 'perl -w': +# +# set makeprg=$HOME/bin/vimparse.pl\ %\ $* +# set errorformat=%f:%l:%m +# +# Program is only compiled with 'perl -wc': +# +# set makeprg=$HOME/bin/vimparse.pl\ -c\ %\ $* +# set errorformat=%f:%l:%m +# +# Usage: +# vimparse.pl [-c] [-f ] [programargs] +# +# -c compile only, don't run (perl -wc) +# -f write errors to +# +# Example usages: +# * From the command line: +# vimparse.pl program.pl +# +# vimparse.pl -c -f errorfile program.pl +# Then run vim -q errorfile to edit the errors with Vim. +# +# * From Vim: +# Edit in Vim (and save, if you don't have autowrite on), then +# type ':mak' or ':mak args' (args being the program arguments) +# to error check. +# +# Version history: +# 0.2 (04/12/2001): +# * First public version (sent to Bram) +# * -c command line option for compiling only +# * grammatical fix: 'There was 1 error.' +# * bug fix for multiple arguments +# * more error checks +# * documentation (top of file, &usage) +# * minor code clean ups +# 0.1 (02/02/2001): +# * Initial version +# * Basic functionality +# +# Todo: +# * test on more systems +# * use portable way to determine the location of perl ('use Config') +# * include option that shows perldiag messages for each error +# * allow to pass in program by STDIN +# * more intuitive behaviour if no error is found (show message) +# +# Tested under SunOS 5.7 with Perl 5.6.0. Let me know if it's not working for +# you. + +use strict; +use Getopt::Std; + +use vars qw/$opt_c $opt_f $opt_h/; # needed for Getopt in combination with use strict 'vars' + +use constant VERSION => 0.2; + +getopts('cf:h'); + +&usage if $opt_h; # not necessarily needed, but good for further extension + +if (defined $opt_f) { + + open FILE, "> $opt_f" or do { + warn "Couldn't open $opt_f: $!. Using STDOUT instead.\n"; + undef $opt_f; + }; + +}; + +my $handle = (defined $opt_f ? \*FILE : \*STDOUT); + +(my $file = shift) or &usage; # display usage if no filename is supplied +my $args = (@ARGV ? ' ' . join ' ', @ARGV : ''); + +my @lines = `perl @{[defined $opt_c ? '-c ' : '' ]} -w "$file$args" 2>&1`; + +my $errors = 0; +foreach my $line (@lines) { + + chomp($line); + my ($file, $lineno, $message, $rest); + + if ($line =~ /^(.*)\sat\s(.*)\sline\s(\d+)(\.|,\snear\s\".*\")$/) { + + ($message, $file, $lineno, $rest) = ($1, $2, $3, $4); + $errors++; + $message .= $rest if ($rest =~ s/^,//); + print $handle "$file:$lineno:$message\n"; + + } else { next }; + +} + +if (defined $opt_f) { + + my $msg; + if ($errors == 1) { + + $msg = "There was 1 error.\n"; + + } else { + + $msg = "There were $errors errors.\n"; + + }; + + print STDOUT $msg; + close FILE; + unlink $opt_f unless $errors; + +}; + +sub usage { + + (local $0 = $0) =~ s/^.*\/([^\/]+)$/$1/; # remove path from name of program + print<] [programargs] + + -c compile only, don't run (executes 'perl -wc') + -f write errors to + +Examples: + * At the command line: + $0 program.pl + Displays output on STDOUT. + + $0 -c -f errorfile program.pl + Then run 'vim -q errorfile' to edit the errors with Vim. + + * In Vim: + Edit in Vim (and save, if you don't have autowrite on), then + type ':mak' or ':mak args' (args being the program arguments) + to error check. +EOT + + exit 0; + +}; diff --git a/git/usr/share/vim/vim92/tools/emoji_list.vim b/git/usr/share/vim/vim92/tools/emoji_list.vim new file mode 100644 index 0000000000000000000000000000000000000000..d361b7ee985ad8afdca37ac87cb8cbcb342d0b69 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/emoji_list.vim @@ -0,0 +1,23 @@ +" Script to fill the window with emoji characters, one per line. +" Source this script: :source % + +if &modified + new +else + enew +endif + +" Use a compiled Vim9 function for speed +def DoIt() + var lnum = 1 + for c in range(0x100, 0x1ffff) + var cs = nr2char(c) + if charclass(cs) == 3 + setline(lnum, '|' .. cs .. '| ' .. strwidth(cs)) + lnum += 1 + endif + endfor +enddef + +call DoIt() +set nomodified diff --git a/git/usr/share/vim/vim92/tools/mve.awk b/git/usr/share/vim/vim92/tools/mve.awk new file mode 100644 index 0000000000000000000000000000000000000000..2f6de8905642eac0fa53f19b8807d26a7f815305 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/mve.awk @@ -0,0 +1,23 @@ +#!/usr/bin/gawk -f +# +# Change "nawk" to "awk" or "gawk" if you get errors. +# +# Make Vim Errors +# Processes errors from cc for use by Vim's quick fix tools +# specifically it translates the ---------^ notation to a +# column number +# +BEGIN { FS="[:,]" } + +/^cfe/ { file=$3 + msg=$5 + split($4,s," ") + line=s[2] +} + +# You may have to substitute a tab character for the \t here: +/^[\t-]*\^/ { + p=match($0, ".*\\^" ) + col=RLENGTH-2 + printf("%s, line %d, col %d : %s\n", file,line,col,msg) +} diff --git a/git/usr/share/vim/vim92/tools/mve.txt b/git/usr/share/vim/vim92/tools/mve.txt new file mode 100644 index 0000000000000000000000000000000000000000..8aa5cf66bfb866cbc5f0a2eef3647d61b31ceffc --- /dev/null +++ b/git/usr/share/vim/vim92/tools/mve.txt @@ -0,0 +1,20 @@ +[ The mve awk script was posted on the vimdev mailing list ] + +From: jimmer@barney.mdhc.mdc.com (J. McGlasson) +Date: Mon, 31 Mar 1997 13:16:49 -0700 (Mar) + +My compiler (SGI MIPSpro C compiler - IRIX 6.4) works like this. +I have written a script mve (make vim errors), through which I pipe my make +output, which translates output of the following form: + +cfe: Error: syntax.c, line 4: Syntax Error + int i[12; + ------------^ + +into: + + cl.c, line 4, col 12 : Syntax Error + +(in vim notation: %f, line %l, col %c : %m) + +You might be able to tailor this for your compiler's output. diff --git a/git/usr/share/vim/vim92/tools/pltags.pl b/git/usr/share/vim/vim92/tools/pltags.pl new file mode 100644 index 0000000000000000000000000000000000000000..7a74682b87173542203814d2ed2d903d15b8114b --- /dev/null +++ b/git/usr/share/vim/vim92/tools/pltags.pl @@ -0,0 +1,300 @@ +#!/usr/bin/env perl + +# pltags - create a tags file for Perl code, for use by vi(m) +# +# Distributed with Vim , latest version always available +# at +# +# Version 2.3, 28 February 2002 +# +# Written by Michael Schaap . Suggestions for improvement +# are very welcome! +# +# This script will not work with Perl 4 or below! +# +# Revision history: +# 1.0 1997? Original version, quickly hacked together +# 2.0 1999? Completely rewritten, better structured and documented, +# support for variables, packages, Exuberant Ctags extensions +# 2.1 Jun 2000 Fixed critical bug (typo in comment) ;-) +# Support multiple level packages (e.g. Archive::Zip::Member) +# 2.2 Jul 2001 'Glob' wildcards - especially useful under Windows +# (thanks to Serge Sivkov and Jason King) +# Bug fix: reset package name for each file +# 2.21 Jul 2001 Oops... bug in variable detection (/local../ -> /^local.../) +# 2.3 Feb 2002 Support variables declared with "our" +# (thanks to Lutz Mende) + +# Complain about undeclared variables +use strict; + +# Used modules +use Getopt::Long; + +# Options with their defaults +my $do_subs = 1; # --subs, --nosubs include subs in tags file? +my $do_vars = 1; # --vars, --novars include variables in tags file? +my $do_pkgs = 1; # --pkgs, --nopkgs include packages in tags file? +my $do_exts = 1; # --extensions, --noextensions + # include Exuberant Ctags extensions + +# Global variables +my $VERSION = "2.21"; # pltags version +my $status = 0; # GetOptions return value +my $file = ""; # File being processed +my @tags = (); # List of produced tags +my $is_pkg = 0; # Are we tagging a package? +my $has_subs = 0; # Has this file any subs yet? +my $package_name = ""; # Name of current package +my $var_continues = 0; # Variable declaration continues on last line +my $line = ""; # Current line in file +my $stmt = ""; # Current Perl statement +my @vars = (); # List of variables in declaration +my $var = ""; # Variable in declaration +my $tagline = ""; # Tag file line + +# Create a tag file line and push it on the list of found tags +sub MakeTag($$$$$) +{ + my ($tag, # Tag name + $type, # Type of tag + $is_static, # Is this a static tag? + $file, # File in which tag appears + $line) = @_; # Line in which tag appears + + my $tagline = ""; # Created tag line + + # Only process tag if not empty + if ($tag) + { + # Get rid of \n, and escape / and \ in line + chomp $line; + $line =~ s/\\/\\\\/g; + $line =~ s/\//\\\//g; + + # Create a tag line + $tagline = "$tag\t$file\t/^$line\$/"; + + # If we're told to do so, add extensions + if ($do_exts) + { + $tagline .= ";\"\t$type" + . ($is_static ? "\tfile:" : "") + . ($package_name ? "\tclass:$package_name" : ""); + } + + # Push it on the stack + push (@tags, $tagline); + } +} + +# Parse package name from statement +sub PackageName($) +{ + my ($stmt) = @_; # Statement + + # Look for the argument to "package". Return it if found, else return "" + if ($stmt =~ /^package\s+([\w:]+)/) + { + my $pkgname = $1; + + # Remove any parent package name(s) + $pkgname =~ s/.*://; + return $pkgname; + } + else + { + return ""; + } +} + +# Parse sub name from statement +sub SubName($) +{ + my ($stmt) = @_; # Statement + + # Look for the argument to "sub". Return it if found, else return "" + if ($stmt =~ /^sub\s+([\w:]+)/) + { + my $subname = $1; + + # Remove any parent package name(s) + $subname =~ s/.*://; + return $subname; + } + else + { + return ""; + } +} + +# Parse all variable names from statement +sub VarNames($) +{ + my ($stmt) = @_; + + # Remove my or local from statement, if present + $stmt =~ s/^(my|our|local)\s+//; + + # Remove any assignment piece + $stmt =~ s/\s*=.*//; + + # Now find all variable names, i.e. "words" preceded by $, @ or % + @vars = ($stmt =~ /[\$\@\%]([\w:]+)\b/g); + + # Remove any parent package name(s) + map(s/.*://, @vars); + + return (@vars); +} + +############### Start ############### + +print "\npltags $VERSION by Michael Schaap \n\n"; + +# Get options +$status = GetOptions("subs!" => \$do_subs, + "vars!" => \$do_vars, + "pkgs!" => \$do_pkgs, + "extensions!" => \$do_exts); + +# Usage if error in options or no arguments given +unless ($status && @ARGV) +{ + print "\n" unless ($status); + print " Usage: $0 [options] filename ...\n\n"; + print " Where options can be:\n"; + print " --subs (--nosubs) (don't) include sub declarations in tag file\n"; + print " --vars (--novars) (don't) include variable declarations in tag file\n"; + print " --pkgs (--nopkgs) (don't) include package declarations in tag file\n"; + print " --extensions (--noextensions)\n"; + print " (don't) include Exuberant Ctags / Vim style\n"; + print " extensions in tag file\n\n"; + print " Default options: "; + print ($do_subs ? "--subs " : "--nosubs "); + print ($do_vars ? "--vars " : "--novars "); + print ($do_pkgs ? "--pkgs " : "--nopkgs "); + print ($do_exts ? "--extensions\n\n" : "--noextensions\n\n"); + print " Example: $0 *.pl *.pm ../shared/*.pm\n\n"; + exit; +} + +# Loop through files on command line - 'glob' any wildcards, since Windows +# doesn't do this for us +foreach $file (map { glob } @ARGV) +{ + # Skip if this is not a file we can open. Also skip tags files and backup + # files + next unless ((-f $file) && (-r $file) && ($file !~ /tags$/) + && ($file !~ /~$/)); + + print "Tagging file $file...\n"; + + $is_pkg = 0; + $package_name = ""; + $has_subs = 0; + $var_continues = 0; + + open (IN, $file) or die "Can't open file '$file': $!"; + + # Loop through file + foreach $line () + { + # Statement is line with comments and whitespace trimmed + ($stmt = $line) =~ s/#.*//; + $stmt =~ s/^\s*//; + $stmt =~ s/\s*$//; + + # Nothing left? Never mind. + next unless ($stmt); + + # This is a variable declaration if one was started on the previous + # line, or if this line starts with my or local + if ($var_continues or ($stmt =~/^my\b/) + or ($stmt =~/^our\b/) or ($stmt =~/^local\b/)) + { + # The declaration continues if the line does not end with ; + $var_continues = ($stmt !~ /;$/); + + # Loop through all variable names in the declaration + foreach $var (VarNames($stmt)) + { + # Make a tag for this variable unless we're told not to. We + # assume that a variable is always static, unless it appears + # in a package before any sub. (Not necessarily true, but + # it's ok for most purposes and Vim works fine even if it is + # incorrect) + if ($do_vars) + { + MakeTag($var, "v", (!$is_pkg or $has_subs), $file, $line); + } + } + } + + # This is a package declaration if the line starts with package + elsif ($stmt =~/^package\b/) + { + # Get name of the package + $package_name = PackageName($stmt); + + if ($package_name) + { + # Remember that we're doing a package + $is_pkg = 1; + + # Make a tag for this package unless we're told not to. A + # package is never static. + if ($do_pkgs) + { + MakeTag($package_name, "p", 0, $file, $line); + } + } + } + + # This is a sub declaration if the line starts with sub + elsif ($stmt =~/^sub\b/) + { + # Remember that this file has subs + $has_subs = 1; + + # Make a tag for this sub unless we're told not to. We assume + # that a sub is static, unless it appears in a package. (Not + # necessarily true, but it's ok for most purposes and Vim works + # fine even if it is incorrect) + if ($do_subs) + { + MakeTag(SubName($stmt), "s", (!$is_pkg), $file, $line); + } + } + } + close (IN); +} + +# Do we have any tags? If so, write them to the tags file +if (@tags) +{ + # Add some tag file extensions if we're told to + if ($do_exts) + { + push (@tags, "!_TAG_FILE_FORMAT\t2\t/extended format/"); + push (@tags, "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted/"); + push (@tags, "!_TAG_PROGRAM_AUTHOR\tMichael Schaap\t/mscha\@mscha.com/"); + push (@tags, "!_TAG_PROGRAM_NAME\tpltags\t//"); + push (@tags, "!_TAG_PROGRAM_VERSION\t$VERSION\t/supports multiple tags and extended format/"); + } + + print "\nWriting tags file.\n"; + + open (OUT, ">tags") or die "Can't open tags file: $!"; + + foreach $tagline (sort @tags) + { + print OUT "$tagline\n"; + } + + close (OUT); +} +else +{ + print "\nNo tags found.\n"; +} diff --git a/git/usr/share/vim/vim92/tools/preproc_indent.vim b/git/usr/share/vim/vim92/tools/preproc_indent.vim new file mode 100644 index 0000000000000000000000000000000000000000..b6d296a61e96bc41ae879756f5e06f225911b45c --- /dev/null +++ b/git/usr/share/vim/vim92/tools/preproc_indent.vim @@ -0,0 +1,148 @@ +vim9script +# Script to fix preprocessor indentation in Vim's C source code. +# +# Usage: Vim -S +# +# Specifications: +# - If there is no indentation on the line containing the preprocessor +# directive (`#`) following the first `#if~`, the indentation amount is +# `nesting level - 1` spaces. Otherwise, the indentation amount is `nesting +# level` spaces. +# - However, if a preprocessor directive line is detected after the +# corresponding `#endif` of the above `#if~`, the indentation amount is +# fixed at `nesting level` and the line is reprocessed from the first line. +# - If the preprocessor directive line ends with a line continuation (`\`) and +# the next line is blank, the line continuation (`\`) and the next line are +# deleted. +# +# Author: Hirohito Higashi (@h-east) +# Last Update: 2026 Apr 02 + +def Get_C_source_files(): list + var list_of_c_files: list = [] + if empty(list_of_c_files) + var fpath = '../../src' + var list = glob(fpath .. '/*.[ch]', 0, 1) + [fpath .. '/xxd/xxd.c'] + # Some files are auto-generated, so skip those + list_of_c_files = filter(list, (i, v) => v !~ 'dlldata.c\|if_ole.h\|iid_ole.c') + endif + return list_of_c_files +enddef + +def FixPreprocessorIndent(fname: string) + execute 'noswapfile edit! ' .. fname + + var nest: number = 0 + var indent_offset: number = 0 # -1 if whole-file guard detected + var first_if_seen: bool = false + var offset_determined: bool = false + var whole_file_guard_ended = false + + # First pass: remove trailing backslash + empty next line + var lnum = 1 + while lnum <= line('$') + var line: string = getline(lnum) + if line =~# '^\s*#.*\\$' + var next_line: string = getline(lnum + 1) + if next_line =~# '^\s*$' + # Remove backslash from current line and delete next line + setline(lnum, substitute(line, '\s*\\$', '', '')) + deletebufline('%', lnum + 1) + continue # Don't increment, check same line again + endif + endif + lnum += 1 + endwhile + + # Second pass: fix preprocessor indent + while true + var is_reprocess: bool = false + for l in range(1, line('$')) + var line: string = getline(l) + + # Skip if not a preprocessor directive + if line !~# '^\s*#' + continue + endif + + # Extract directive and current indent + var match_li: list = matchlist(line, '^\(\s*\)#\(\s*\)\(\w\+\)') + if empty(match_li) + continue + endif + var cur_spaces: string = !empty(match_li[1]) ? match_li[1] : match_li[2] + var directive: string = match_li[3] + + # If indent_offset != 0 but we encounter indented #, it's not whole-file + # guard. Reprocess from line 1 with indent_offset=0 + if whole_file_guard_ended && offset_determined && indent_offset != 0 + indent_offset = 0 + nest = 0 + is_reprocess = true + break + endif + + # After first #if, determine offset from first nested directive + # Only check if # is at column 1 (no leading spaces) + if first_if_seen && !offset_determined + offset_determined = true + if empty(cur_spaces) + # No indent after first `#if` --> whole-file guard style + indent_offset = -1 + endif + endif + + # Determine expected indent based on directive type + var expected_indent: number + + if directive ==# 'if' || directive ==# 'ifdef' || directive ==# 'ifndef' + if !first_if_seen + first_if_seen = true + endif + expected_indent = nest + indent_offset + nest += 1 + elseif directive ==# 'elif' || directive ==# 'else' + expected_indent = nest - 1 + indent_offset + elseif directive ==# 'endif' + nest -= 1 + if nest <= 0 + # Reset for next top-level block (but keep offset_determined) + nest = 0 + whole_file_guard_ended = true + endif + expected_indent = nest + indent_offset + else + # Other directives (#define, #include, #error, #pragma, etc.) + expected_indent = nest + indent_offset + endif + + if expected_indent < 0 + expected_indent = 0 + endif + + # Build expected line + var rest = substitute(line, '^\s*#\s*', '', '') + var expected_line: string + expected_line = '#' .. repeat(' ', expected_indent) .. rest + + # Update line if different + if line !=# expected_line + setline(l, expected_line) + endif + endfor + + if !is_reprocess + break + endif + endwhile + + update +enddef + +# Main +for fname in Get_C_source_files() + FixPreprocessorIndent(fname) +endfor + +qall! +# vim: et ts=2 sw=0 diff --git a/git/usr/share/vim/vim92/tools/ref b/git/usr/share/vim/vim92/tools/ref new file mode 100644 index 0000000000000000000000000000000000000000..77bfc805e24c472265aaa053d8281c7947e8c869 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/ref @@ -0,0 +1,11 @@ +#!/bin/sh +# +# ref - Check spelling of the arguments +# +# Usage: ref word .. +# +# can be used for the K command of Vim +# +spell <\fP] [\fI-s \fP] +.SH DESCRIPTION +\fBshtags\fP creates a \fBvi(1)\fP tags file for shell scripts - which +essentially turns your code into a hypertext document. \fBshtags\fP +attempts to create tags for all function and variable definitions, +although this is a little difficult, because in most shell languages, +variables don't need to be explicitly defined, and as such there is +often no distinct "variable definition". If this is the case, +\fBshtags\fP simply creates a tag for the first instance of a variable +which is being set in a simple way, ie: \fIset x = 5\fP. +.SH OPTIONS +.IP "\fB-t \fP" +Name of tags file to create. (default is 'tags') +.IP "\fB-s \fP" +The name of the shell used by the script(s). By default, +\fBshtags\fP tries to work out which is the appropriate shell for each +file individually by looking at the first line of each file. This won't +work however, if the script starts as a bourne shell script and tries +to be clever about starting the shell it really wants. +.b +Currently supported shells are: +.RS +.IP \fBsh\fP +Bourne Shell +.IP \fBperl\fP +Perl (versions 4 and 5) +.IP \fBksh\fP +Korn Shell +.IP \fBtclsh\fP +The TCL shell +.IP \fBwish\fP +The TK Windowing shell (same as tclsh) +.RE + +.IP \fB-v\fP +Include variable definitions (variables mentioned at the start of a line) +.IP \fB-V\fP +Print version information. +.IP \fB-w\fP +Suppress "duplicate tag" warning messages. +.IP \fB-x\fP +Explicitly create a new tags file. Normally new tags are merged with +the old tags file. +.PP +\fBshtags\fP scans the specified files for subroutines and possibly +variable definitions, and creates a \fBvi\fP style tags file. +.SH FILES +.IP \fBtags\fP +A tags file contains a sorted list of tags, one tag per line. The +format is the same as that used by \fBvi\fP(1) +.SH AUTHOR +Stephen Riehm +.br +sr@pc-plus.de +.SH "SEE ALSO" +ctags(1), etags(1), perl(1), tclsh(1), wish(1), sh(1), ksh(1). diff --git a/git/usr/share/vim/vim92/tools/shtags.pl b/git/usr/share/vim/vim92/tools/shtags.pl new file mode 100644 index 0000000000000000000000000000000000000000..49a469a22ef8d1dc3d26af65f7e8eb2667c70a36 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/shtags.pl @@ -0,0 +1,144 @@ +#!/usr/bin/env perl +# +# shtags: create a tags file for perl scripts +# +# Author: Stephen Riehm +# Updated by: David Woodfall +# Last Changed: 2018/04/02 +# + +use Getopt::Std; + +# obvious... :-) +sub usage + { + print <<_EOUSAGE_ ; +USAGE: $program [-kvwVx] [-t ] + -t Name of tags file to create. (default is 'tags') + -s Name of the shell language in the script + -v Include variable definitions. + (variables mentioned at the start of a line) + -V Print version information. + -w Suppress "duplicate tag" warnings. + -x Explicitly create a new tags file. Normally tags are merged. + List of files to scan for tags. +_EOUSAGE_ + exit 0 + } + +sub version +{ + # + # Version information + # + @id = split( ', ', 'scripts/bin/shtags, /usr/local/, LOCAL_SCRIPTS, 1.2, 18/04/02, 07:37' ); + $id[0] =~ s,.*/,,; + print <<_EOVERS; +$id[0]: $id[3] +Last Modified: @id[4,5] +Component: $id[1] +Release: $id[2] +_EOVERS + exit( 1 ); +} + +# +# initialisations +# +($program = $0) =~ s,.*/,,; + +# +# parse command line +# +getopts( "t:s:vVwx" ) || &usage(); +$tags_file = $opt_t || 'tags'; +$explicit = $opt_x; +$variable_tags = $opt_v; +$allow_warnings = ! $opt_w; +&version if $opt_V; +&usage() unless @ARGV != 0; + +# slurp up the existing tags. Some will be replaced, the ones that aren't +# will be re-written exactly as they were read +if( ! $explicit && open( TAGS, "< $tags_file" ) ) + { + while( ) + { + /^\S+/; + $tags{$&} = $_; + } + close( TAGS ); + } + +# +# for each line of every file listed on the command line, look for a +# 'sub' definition, or, if variables are wanted as well, look for a +# variable definition at the start of a line +# +while( <> ) + { + &check_shell($_), ( $old_file = $ARGV ) if $ARGV ne $old_file; + next unless $shell; + if( $shell eq "sh" ) + { + next unless /^\s*(((\w+)))\s*\(\s*\)/ + || ( $variable_tags && /^(((\w+)=))/ ); + $match = $3; + } + if( $shell eq "ksh" ) + { + # ksh + next unless /^\s*function\s+(((\w+)))/ + || ( $variable_tags && /^(((\w+)=))/ ); + $match = $3; + } + if( $shell eq "perl" ) + { + # perl + next unless /^\s*sub\s+(\w+('|::))?(\w+)/ + || /^\s*(((\w+))):/ + || ( $variable_tags && /^(([(\s]*[\$\@\%]{1}(\w+).*=))/ ); + $match = $3; + } + if( $shell eq "tcl" ) + { + next unless /^\s*proc\s+(((\S+)))/ + || ( $variable_tags && /^\s*set\s+(((\w+)\s))/ ); + $match = $3; + } + chop; + warn "$match - duplicate ignored\n" + if ( $new{$match}++ + || !( $tags{$match} = sprintf( "%s\t%s\t?^%s\$?\n", $match, $ARGV, $_ ) ) ) + && $allow_warnings; + } + +# write the new tags to the tags file - note that the whole file is rewritten +open( TAGS, "> $tags_file" ); +foreach( sort( keys %tags ) ) + { + print TAGS "$tags{$_}"; + } +close( TAGS ); + +sub check_shell + { + local( $_ ) = @_; + # read the first line of a script, and work out which shell it is, + # unless a shell was specified on the command line + # + # This routine can't handle clever scripts which start sh and then + # use sh to start the shell they really wanted. + if( $opt_s ) + { + $shell = $opt_s; + } + else + { + $shell = "sh" if /^:$/ || /^#!.*\/bin\/sh/; + $shell = "ksh" if /^#!.*\/ksh/; + $shell = "perl" if /^#!.*\/perl/; + $shell = "tcl" if /^#!.*\/wish/; + printf "Using $shell for $ARGV\n"; + } + } diff --git a/git/usr/share/vim/vim92/tools/unicode.vim b/git/usr/share/vim/vim92/tools/unicode.vim new file mode 100644 index 0000000000000000000000000000000000000000..4086b188f344c6cd2794274f1d82378d2c58c318 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/unicode.vim @@ -0,0 +1,475 @@ +" Script to extract tables from Unicode .txt files, to be used in src/mbyte.c. +" The format of the UnicodeData.txt file is explained here: +" http://www.unicode.org/Public/5.1.0/ucd/UCD.html +" For the other files see the header. +" +" Might need to update the URL to the emoji-data.txt +" Usage: Vim -S +" +" Author: Bram Moolenaar +" Last Update: 2025 Sep 21 + +" Parse lines of UnicodeData.txt. Creates a list of lists in s:dataprops. +func! ParseDataToProps() + let s:dataprops = [] + let lnum = 1 + while lnum <= line('$') + let l = split(getline(lnum), '\s*;\s*', 1) + if len(l) != 15 + echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 15' + return + endif + call add(s:dataprops, l) + let lnum += 1 + endwhile +endfunc + +" Parse lines of CaseFolding.txt. Creates a list of lists in s:foldprops. +func! ParseFoldProps() + let s:foldprops = [] + let lnum = 1 + while lnum <= line('$') + let line = getline(lnum) + if line !~ '^#' && line !~ '^\s*$' + let l = split(line, '\s*;\s*', 1) + if len(l) != 4 + echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 4' + return + endif + call add(s:foldprops, l) + endif + let lnum += 1 + endwhile +endfunc + +" Parse lines of EastAsianWidth.txt. Creates a list of lists in s:widthprops. +func! ParseWidthProps() + let s:widthprops = [] + let lnum = 1 + while lnum <= line('$') + let line = getline(lnum) + if line !~ '^#' && line !~ '^\s*$' + let l = split(line, '\s*;\s*', 1) + if len(l) != 2 + echoerr 'Found ' . len(l) . ' items in line ' . lnum . ', expected 2' + return + endif + call add(s:widthprops, l) + endif + let lnum += 1 + endwhile +endfunc + +" Build the toLower or toUpper table in a new buffer. +" Uses s:dataprops. +func! BuildCaseTable(name, index) + let start = -1 + let end = -1 + let step = 0 + let add = -1 + let ranges = [] + for p in s:dataprops + if p[a:index] != '' + let n = ('0x' . p[0]) + 0 + let nl = ('0x' . p[a:index]) + 0 + if start >= 0 && add == nl - n && (step == 0 || n - end == step) + " continue with same range. + let step = n - end + let end = n + else + if start >= 0 + " produce previous range + call Range(ranges, start, end, step, add) + endif + let start = n + let end = n + let step = 0 + let add = nl - n + endif + endif + endfor + if start >= 0 + call Range(ranges, start, end, step, add) + endif + + " New buffer to put the result in. + new + exe "file to" . a:name + call setline(1, "static convertStruct to" . a:name . "[] =") + call setline(2, "{") + call append('$', ranges) + call setline('$', getline('$')[:-2]) " remove last comma + call setline(line('$') + 1, "};") + wincmd p +endfunc + +" Build the foldCase table in a new buffer. +" Uses s:foldprops. +func! BuildFoldTable() + let start = -1 + let end = -1 + let step = 0 + let add = -1 + let ranges = [] + for p in s:foldprops + if p[1] == 'C' || p[1] == 'S' + let n = ('0x' . p[0]) + 0 + let nl = ('0x' . p[2]) + 0 + if start >= 0 && add == nl - n && (step == 0 || n - end == step) + " continue with same range. + let step = n - end + let end = n + else + if start >= 0 + " produce previous range + call Range(ranges, start, end, step, add) + endif + let start = n + let end = n + let step = 0 + let add = nl - n + endif + endif + endfor + if start >= 0 + call Range(ranges, start, end, step, add) + endif + + " New buffer to put the result in. + new + file foldCase + call setline(1, "static convertStruct foldCase[] =") + call setline(2, "{") + call append('$', ranges) + call setline('$', getline('$')[:-2]) " remove last comma + call setline(line('$') + 1, "};") + wincmd p +endfunc + +func! Range(ranges, start, end, step, add) + let s = printf("\t{0x%x,0x%x,%d,%d},", a:start, a:end, a:step == 0 ? -1 : a:step, a:add) + call add(a:ranges, s) +endfunc + +" Build the combining table. +" Uses s:dataprops. +func! BuildCombiningTable() + let start = -1 + let end = -1 + let ranges = [] + for p in s:dataprops + " The 'Mc' property was removed, it does take up space. + if p[2] == 'Mn' || p[2] == 'Me' + let n = ('0x' . p[0]) + 0 + if start >= 0 && end + 1 == n + " continue with same range. + let end = n + else + if start >= 0 + " produce previous range + call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end)) + endif + let start = n + let end = n + endif + endif + endfor + if start >= 0 + call add(ranges, printf("\t{0x%04x, 0x%04x},", start, end)) + endif + + " New buffer to put the result in. + new + file combining + call setline(1, " static struct interval combining[] =") + call setline(2, " {") + call append('$', ranges) + call setline('$', getline('$')[:-2]) " remove last comma + call setline(line('$') + 1, " };") + wincmd p +endfunc + +" Build the double width or ambiguous width table in a new buffer. +" Uses s:widthprops and s:dataprops. +func! BuildWidthTable(pattern, tableName) + let start = -1 + let end = -1 + let ranges = [] + let dataidx = 0 + " Account for indentation differences between ambiguous and doublewidth + " table in mbyte.c + if a:pattern == 'A' + let spc = ' ' + else + let spc = "\t" + endif + for p in s:widthprops + if p[1][0] =~ a:pattern + if p[0] =~ '\.\.' + " It is a range. we don't check for composing char then. + let rng = split(p[0], '\.\.') + if len(rng) != 2 + echoerr "Cannot parse range: '" . p[0] . "' in width table" + endif + let n = ('0x' . rng[0]) + 0 + let n_last = ('0x' . rng[1]) + 0 + else + let n = ('0x' . p[0]) + 0 + let n_last = n + endif + " Find this char in the data table. + while 1 + let dn = ('0x' . s:dataprops[dataidx][0]) + 0 + if dn >= n + break + endif + let dataidx += 1 + endwhile + if dn != n && n_last == n + echoerr "Cannot find character " . n . " in data table" + endif + " Only use the char when it's not a composing char. + " But use all chars from a range. + let dp = s:dataprops[dataidx] + if n_last > n || (dp[2] != 'Mn' && dp[2] != 'Mc' && dp[2] != 'Me') + if start >= 0 && end + 1 == n + " continue with same range. + else + if start >= 0 + " produce previous range + call add(ranges, printf("%s{0x%04x, 0x%04x},", spc, start, end)) + if a:pattern == 'A' + call add(s:ambitable, [start, end]) + else + call add(s:doubletable, [start, end]) + endif + endif + let start = n + endif + let end = n_last + endif + endif + endfor + if start >= 0 + call add(ranges, printf("%s{0x%04x, 0x%04x},", spc, start, end)) + if a:pattern == 'A' + call add(s:ambitable, [start, end]) + else + call add(s:doubletable, [start, end]) + endif + endif + + " New buffer to put the result in. + new + exe "file " . a:tableName + if a:pattern == 'A' + call setline(1, "static struct interval " . a:tableName . "[] =") + call setline(2, "{") + else + call setline(1, " static struct interval " . a:tableName . "[] =") + call setline(2, " {") + endif + call append('$', ranges) + call setline('$', getline('$')[:-2]) " remove last comma + if a:pattern == 'A' + call setline(line('$') + 1, "};") + else + call setline(line('$') + 1, " };") + endif + wincmd p +endfunc + + +" Get characters from a list of lines in form "12ab .." or "12ab..56cd ..." +" and put them in dictionary "chardict" +func AddLinesToCharDict(lines, chardict) + for line in a:lines + let tokens = split(line, '\.\.') + let first = str2nr(tokens[0], 16) + if len(tokens) == 1 + let last = first + else + let last = str2nr(tokens[1], 16) + endif + for nr in range(first, last) + let a:chardict[nr] = 1 + endfor + endfor +endfunc + +func Test_AddLinesToCharDict() + let dict = {} + call AddLinesToCharDict([ + \ '1234 blah blah', + \ '1235 blah blah', + \ '12a0..12a2 blah blah', + \ '12a1 blah blah', + \ ], dict) + call assert_equal({0x1234: 1, 0x1235: 1, + \ 0x12a0: 1, 0x12a1: 1, 0x12a2: 1, + \ }, dict) + if v:errors != [] + echoerr 'AddLinesToCharDict' v:errors + return 1 + endif + return 0 +endfunc + + +func CharDictToPairList(chardict) + let result = [] + let keys = keys(a:chardict)->map('str2nr(v:val)')->sort('N') + let low = keys[0] + let high = keys[0] + for key in keys + if key > high + 1 + call add(result, [low, high]) + let low = key + let high = key + else + let high = key + endif + endfor + call add(result, [low, high]) + return result +endfunc + +func Test_CharDictToPairList() + let dict = {0x1020: 1, 0x1021: 1, 0x1022: 1, + \ 0x1024: 1, + \ 0x2022: 1, + \ 0x2024: 1, 0x2025: 1} + call assert_equal([ + \ [0x1020, 0x1022], + \ [0x1024, 0x1024], + \ [0x2022, 0x2022], + \ [0x2024, 0x2025], + \ ], CharDictToPairList(dict)) + if v:errors != [] + echoerr 'CharDictToPairList' v:errors + return 1 + endif + return 0 +endfunc + + +" Build the amoji width table in a new buffer. +func BuildEmojiTable() + " First make the table for all emojis. + let pattern = '; Emoji\s\+#\s' + let lines = map(filter(filter(getline(1, '$'), 'v:val=~"^[1-9]"'), 'v:val=~pattern'), 'matchstr(v:val,"^\\S\\+")') + + " Make a dictionary with an entry for each character. + let chardict = {} + call AddLinesToCharDict(lines, chardict) + let pairlist = CharDictToPairList(chardict) + let allranges = map(pairlist, 'printf(" {0x%04x, 0x%04x},", v:val[0], v:val[1])') + + " New buffer to put the result in. + new + exe 'file emoji_all' + call setline(1, "static struct interval emoji_all[] =") + call setline(2, "{") + call append('$', allranges) + call setline('$', getline('$')[:-2]) " remove last comma + call setline(line('$') + 1, "};") + wincmd p + + " Make the table for wide emojis. + let pattern = '; Emoji_\(Presentation\|Modifier_Base\)\s\+#\s' + let lines = map(filter(filter(getline(1, '$'), 'v:val=~"^[1-9]"'), 'v:val=~pattern'), 'matchstr(v:val,"^\\S\\+")') + + " Make a dictionary with an entry for each character. + let chardict = {} + call AddLinesToCharDict(lines, chardict) + + " exclude characters that are in the "ambiguous" or "doublewidth" table + for ambi in s:ambitable + for nr in range(ambi[0], ambi[1]) + if has_key(chardict, nr) + call remove(chardict, nr) + endif + endfor + endfor + + for wide in s:doubletable + for nr in range(wide[0], wide[1]) + if has_key(chardict, nr) + call remove(chardict, nr) + endif + endfor + endfor + + let pairlist = CharDictToPairList(chardict) + let wide_ranges = map(pairlist, 'printf("\t{0x%04x, 0x%04x},", v:val[0], v:val[1])') + + " New buffer to put the result in. + new + exe 'file emoji_wide' + call setline(1, " static struct interval emoji_wide[] =") + call setline(2, " {") + call append('$', wide_ranges) + call setline('$', getline('$')[:-2]) " remove last comma + call setline(line('$') + 1, " };") + wincmd p +endfunc + +" First test a few things +let v:errors = [] +if Test_AddLinesToCharDict() || Test_CharDictToPairList() + finish +endif + +if !exists("g:loaded_netrwPlugin") + echomsg "Netrw not available, cannot download" + finish +endif + +" Try to avoid hitting E36 +set equalalways + +" Edit the Unicode text file. Requires the netrw plugin. +edit http://unicode.org/Public/UNIDATA/UnicodeData.txt + +" Parse each line, create a list of lists. +call ParseDataToProps() + +" Build the toLower table. +call BuildCaseTable("Lower", 13) + +" Build the toUpper table. +call BuildCaseTable("Upper", 12) + +" Build the ranges of composing chars. +call BuildCombiningTable() + +" Edit the case folding text file. Requires the netrw plugin. +edit http://www.unicode.org/Public/UNIDATA/CaseFolding.txt + +" Parse each line, create a list of lists. +call ParseFoldProps() + +" Build the foldCase table. +call BuildFoldTable() + +" Edit the width text file. Requires the netrw plugin. +edit http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt + +" Parse each line, create a list of lists. +call ParseWidthProps() + +" Build the double width table. +let s:doubletable = [] +call BuildWidthTable('[WF]', 'doublewidth') + +" Build the ambiguous width table. +let s:ambitable = [] +call BuildWidthTable('A', 'ambiguous') + +" Edit the emoji text file. Requires the netrw plugin. +" commented out, because it drops too many characters +"edit https://unicode.org/Public/15.0.0/ucd/emoji/emoji-data.txt +" +"" Build the emoji table. Ver. 1.0 - 6.0 +"" Must come after the "ambiguous" and "doublewidth" tables +"call BuildEmojiTable() diff --git a/git/usr/share/vim/vim92/tools/vim132 b/git/usr/share/vim/vim92/tools/vim132 new file mode 100644 index 0000000000000000000000000000000000000000..29ea4ce1ff49192c53d80ba04aedb55a15a06213 --- /dev/null +++ b/git/usr/share/vim/vim92/tools/vim132 @@ -0,0 +1,13 @@ +#!/bin/csh +# +# Shell script for use with UNIX +# Starts up Vim with the terminal in 132 column mode +# Only works on VT-100 terminals and lookalikes +# You need to have a termcap entry "vt100-w". Same as vt100 but 132 columns. +# +set oldterm=$term +echo "[?3h" +setenv TERM vt100-w +vim $* +set term=$oldterm +echo "[?3l" diff --git a/git/usr/share/vim/vim92/tools/vim_vs_net.cmd b/git/usr/share/vim/vim92/tools/vim_vs_net.cmd new file mode 100644 index 0000000000000000000000000000000000000000..335236c920dfad5fa13384a7eead45c7cdd65f8a --- /dev/null +++ b/git/usr/share/vim/vim92/tools/vim_vs_net.cmd @@ -0,0 +1,23 @@ +@rem +@rem To use this with Visual Studio .Net +@rem Tools->External Tools... +@rem Add +@rem Title - Vim +@rem Command - d:\files\util\vim_vs_net.cmd +@rem Arguments - +$(CurLine) $(ItemPath) +@rem Init Dir - Empty +@rem +@rem Courtesy of Brian Sturk +@rem +@rem --remote-silent +%1 is a command +954, move ahead 954 lines +@rem --remote-silent %2 full path to file +@rem In Vim +@rem :h --remote-silent for more details +@rem +@rem --servername VS_NET +@rem This will create a new instance of vim called VS_NET. So if you open +@rem multiple files from VS, they will use the same instance of Vim. +@rem This allows you to have multiple copies of Vim running, but you can +@rem control which one has VS files in it. +@rem +start /b gvim.exe --servername VS_NET --remote-silent "%1" "%2" diff --git a/git/usr/share/vim/vim92/tools/vimm b/git/usr/share/vim/vim92/tools/vimm new file mode 100644 index 0000000000000000000000000000000000000000..7b84cb255e72987722629f1ac1efe6fa762c841c --- /dev/null +++ b/git/usr/share/vim/vim92/tools/vimm @@ -0,0 +1,6 @@ +#!/bin/sh +# enable DEC locator input model on remote terminal +printf "\033[1;2'z\033[1;3'{\c" +vim "$@" +# disable DEC locator input model on remote terminal +printf "\033[2;4'{\033[0'z\c" diff --git a/git/usr/share/vim/vim92/tools/vimspell.sh b/git/usr/share/vim/vim92/tools/vimspell.sh new file mode 100644 index 0000000000000000000000000000000000000000..d336fe6c3126cf0ac6097e702dd287facf24eb8b --- /dev/null +++ b/git/usr/share/vim/vim92/tools/vimspell.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Spell a file & generate the syntax statements necessary to +# highlight in vim. Based on a program from Krishna Gadepalli +# . +# +# I use the following mappings (in .vimrc): +# +# noremap :so `vimspell.sh %` +# noremap :syntax clear SpellErrors +# +# Neil Schemenauer +# March 1999 +# updated 2008 Jul 17 by Bram +# +# Safe method for the temp file by Javier Fernndez-Sanguino_Pea + +INFILE=$1 +tmp="${TMPDIR-/tmp}" +OUTFILE=`mktemp -t vimspellXXXXXX || tempfile -p vimspell || echo none` +# If the standard commands failed then create the file +# since we cannot create a directory (we cannot remove it on exit) +# create a file in the safest way possible. +if test "$OUTFILE" = none; then + OUTFILE=$tmp/vimspell$$ + [ -e $OUTFILE ] && { echo "Cannot use temporary file $OUTFILE, it already exists!"; exit 1 ; } + (umask 077; touch $OUTFILE) +fi +# Note the copy of vimspell cannot be deleted on exit since it is +# used by vim, otherwise it should do this: +# trap "rm -f $OUTFILE" 0 1 2 3 9 11 13 15 + + +# +# local spellings +# +LOCAL_DICT=${LOCAL_DICT-$HOME/local/lib/local_dict} + +if [ -f $LOCAL_DICT ] +then + SPELL_ARGS="+$LOCAL_DICT" +fi + +spell $SPELL_ARGS $INFILE | sort -u | +awk ' + { + printf "syntax match SpellErrors \"\\<%s\\>\"\n", $0 ; + } + +END { + printf "highlight link SpellErrors ErrorMsg\n\n" ; + } +' > $OUTFILE +echo "!rm $OUTFILE" >> $OUTFILE +echo $OUTFILE diff --git a/git/usr/share/vim/vim92/tools/vimspell.txt b/git/usr/share/vim/vim92/tools/vimspell.txt new file mode 100644 index 0000000000000000000000000000000000000000..2842af7bd8c68a8e41857bf357d57b972cf9a2fd --- /dev/null +++ b/git/usr/share/vim/vim92/tools/vimspell.txt @@ -0,0 +1,22 @@ +vimspell.sh +=========== + +This is a simple script to spell check a file and generate the syntax +statements necessary to highlight the errors in vim. It is based on a +similar program by Krishna Gadepalli . + +To use this script, first place it in a directory in your path. Next, +you should add some convenient key mappings. I use the following (in +.vimrc): + + noremap :so `vimspell.sh %` + noremap :syntax clear SpellErrors + +This program requires the old Unix "spell" command. On my Debian +system, "spell" is a wrapper around "ispell". For better security, +you should uncomment the line in the script that uses "tempfile" to +create a temporary file. As all systems don't have "tempfile" the +insecure "pid method" is used. + + + Neil Schemenauer diff --git a/git/usr/share/vim/vim92/tutor/README.el.txt b/git/usr/share/vim/vim92/tutor/README.el.txt new file mode 100644 index 0000000000000000000000000000000000000000..69204019b3b2a5958d4cb6c9b1c31409ca3beb7e --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/README.el.txt @@ -0,0 +1,24 @@ +Το Tutor είναι μία "χειρονακτική" περιήγηση για νέους χρήστες του +συντάκτη Vim. + +Οι περισσότεροι νέοι χρήστες μπορούν να το τελειώσουν σε λιγότερο από +μία ώρα. Το αποτέλεσμα είναι ότι μπορείτε να κάνετε μία απλή εργασία +επεξεργασίας κειμένου χρησιμοποιώντας τον συντάκτη Vim. + +Το Tutor είναι ένα αρχείο που περιέχει τα μαθήματα της προπαρασκευής. +Μπορείτε να εκτελέσετε απλά "vim tutor" και μετά να ακολουθήσετε τις +οδηγίες στα μαθήματα. Τα μαθήματα θα σας πούνε να τροποποιήσετε +το αρχείο, επομένως ΜΗΝ ΤΟ ΚΑΝΕΤΕ ΣΤΟ ΠΡΩΤΟΤΥΠΟ ΑΝΤΙΓΡΑΦΟ ΣΑΣ. + +Σε σύστημα Unix μπορείτε επίσης να χρησιμοποιήσετε το πρόγραμμα "vimtutor". +Θα δημιουργήσει πρώτα ένα πρόχειρο αντίγραφο του tutor. + +Έχω σκεφτεί να προσθέσω περισσότερα προχωρημένα μαθήματα αλλά δεν έχω βρει +τον απαραίτητο χρόνο. Ενημερώστε με παρακαλώ πώς θα το θέλατε και στείλετε +μου οποιεσδήποτε βελτιώσεις κάνετε. + +Bob Ware, Colorado School of Mines, Golden, Co 80401, USA +(303) 273-3987 +bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet + +[Το αρχείο αυτό τροποποιήθηκε για τον Vim από τον Bram Moolenaar] diff --git a/git/usr/share/vim/vim92/tutor/README.ru.txt b/git/usr/share/vim/vim92/tutor/README.ru.txt new file mode 100644 index 0000000000000000000000000000000000000000..875cbbb2668cf1c418577fe0f59d650f6233666e --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/README.ru.txt @@ -0,0 +1,36 @@ +«Учебник» — это практическое пособие для начинающих пользователей редактора Vim. + +На освоение представленного материала большинству начинающих пользователей +потребуется менее часа. По окончанию курса вы сможете выполнять несложные +операции над текстом с помощью редактора Vim. + +Файл, содержащий обучающие уроки, называется «tutor». Чтобы начать с ним +работать, просто наберите команду "vim tutor1" и следуйте инструкциям, +приведённым в уроках. Задания в учебнике предполагают редактирование файла, +поэтому НЕ ДЕЛАЙТЕ ЭТОГО В ОРИГИНАЛЬНОЙ КОПИИ ФАЙЛА. + +Для полноценной работы с учебником вы можете использовать программу "vimtutor". +При запуске этой программы будет создана временная копия файла для работы с ним. + +Я планировал добавление в учебник более развёрнутых уроков, но на это уже не +хватило времени. Если занятия вам понравились, то, пожалуйста, напишите мне об +этом и присылайте любые улучшения, которые вы сделаете. + +Боб Уэр (Bob Ware), Colorado School of Mines, США, Колорадо, Голден, 80401, +(303) 273-3987 +bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet + +Все вышесказанное, касающееся первой главы учебника, также относится и +ко второй главе учебника. За исключением того, что для открытия второй главы +необходимо воспользоваться командой "vim tutor2". + +Вторая глава учебника была написана Полом Д. Паркером (Paul D. Parker). + +Переводы +----------- + +Файлы tutor1.xx для первой главы и tutor2.xx для второй главы учебника являются +переводами (где xx — код языка). Кодировка файлов tutor1.xx и tutor2.xx должна +быть UTF-8. + +[Брам Моленар (Bram Moolenaar) и др. изменили этот файл для редактора Vim] diff --git a/git/usr/share/vim/vim92/tutor/README.sv.txt b/git/usr/share/vim/vim92/tutor/README.sv.txt new file mode 100644 index 0000000000000000000000000000000000000000..cf96c054e29aad06e5fc352992f480544c0f1903 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/README.sv.txt @@ -0,0 +1,36 @@ +Tutor är en praktisk handledning för nya användare av Vim-redigeraren. + +De flesta nya användare kan gå igenom den på mindre än en timme. Resultatet +är att du kan utföra enkla redigeringsuppgifter med Vim-redigeraren. + +Tutor är en fil som innehåller handledningslektionerna. Du kan helt enkelt +köra ”vim tutor1” och sedan följa instruktionerna i lektionerna. +Lektionerna uppmanar dig att ändra filen, så GÖR INTE DETTA PÅ DIN +ORIGINALKOPIA. + +På UNIX-liknande system kan du också använda programmet ”vimtutor”. +Det skapar först en provkopia av handledaren. + +Jag har funderat på att lägga till mer avancerade lektioner, men har inte hittat +tid. Låt mig veta vad du tycker om den och skicka eventuella förbättringar du +gör. + +Bob Ware, Colorado School of Mines, Golden, Co 80401, USA +(303) 273-3987 +bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet + +Allt ovanstående om kapitel ett i handledningen gäller även kapitel +två i handledningen. Förutom att du måste använda kommandot ”vim tutor2” för att öppna +kapitel två. + +Kapitel två i handledningen är skrivet av Paul D. Parker. + +Översättning +----------- +Filerna tutor1.xx för kapitel ett och tutor2.xx för kapitel två i handledningen +är översatta filer (där xx är språkkoden). +Kodningen av tutor1.xx och tutor2.xx måste vara utf-8. + +Översättning av Daniel Nylander . + +[Denna fil har modifierats för Vim av Bram Moolenaar et al. diff --git a/git/usr/share/vim/vim92/tutor/README.txt b/git/usr/share/vim/vim92/tutor/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..e8f02abf25cbdf093d9a25ca4068d4635853d48b --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/README.txt @@ -0,0 +1,34 @@ +Tutor is a "hands on" tutorial for new users of the Vim editor. + +Most new users can get through it in less than one hour. The result +is that you can do a simple editing task using the Vim editor. + +Tutor is a file that contains the tutorial lessons. You can simply +execute "vim tutor1" and then follow the instructions in the lessons. +The lessons tell you to modify the file, so DON'T DO THIS ON YOUR +ORIGINAL COPY. + +On UNIX-like systems you can also use the "vimtutor" program. +It will make a scratch copy of the tutor first. + +I have considered adding more advanced lessons but have not found the +time. Please let me know how you like it and send any improvements you +make. + +Bob Ware, Colorado School of Mines, Golden, Co 80401, USA +(303) 273-3987 +bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet + +All of the above regarding chapter one of the tutorial also applies to chapter +two of the tutorial. Except that you must use the command “vim tutor2” to open +chapter two. + +The chapter two of the tutorial was written by Paul D. Parker. + +Translation +----------- +The files tutor1.xx for chapter one and tutor2.xx chapter two of the tutorial +are translated files (where xx is the language code). +The encoding of tutor1.xx and tutor2.xx must be utf-8. + +[This file was modified for Vim by Bram Moolenaar et al.] diff --git a/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor b/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..28d2110cb24beb4ae82ffde14fc63813bacbf50d --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor @@ -0,0 +1,998 @@ +# Welcome to the VIM Tutor + +# CHAPTER ONE + +Vim is a very powerful editor that has many commands, too many to explain in +a tutor such as this. This tutor is designed to describe enough of the +commands that you will be able to easily use Vim as an all-purpose editor. +It is IMPORTANT to remember that this tutor is set up to teach by use. That +means that you need to do the exercises to learn them properly. If you only +read the text, you will soon forget what is most important! + +For now, make sure that your Shift-Lock key is NOT depressed and press the +`j`{normal} key enough times to move the cursor so that Lesson 0 completely +fills the screen. + +# Lesson 0 + +NOTE: The commands in the lessons will modify the text, but those changes +won't be saved. Don't worry about messing things up; just remember that +pressing []() and then [u](u) will undo the latest change. + +This tutorial is interactive, and there are a few things you should know. +- Type []() on links [like this](holy-grail) to open the linked help section. +- Or simply type [K](K) on any word to find its documentation! +- Sometimes you will be required to modify text like +this here +Once you have done the changes correctly, the ✗ sign at the left will change +to ✓. I imagine you can already see how neat Vim can be. ;) +Other times, you'll be prompted to run a command (I'll explain this later): +~~~ cmd + :help +~~~ +or press a sequence of keys +~~~ normal + 0fd3wP$P +~~~ + +Text within <'s and >'s (like ``{normal}) describes a key to press +instead of text to type. + +Now, move to the next lesson (use the `j`{normal} key to scroll down). + +# Lesson 1.1: MOVING THE CURSOR + +** To move the cursor, press the `h`, `j`, `k`, `l` keys as indicated. ** + + ↑ + k Hint: The `h`{normal} key is at the left and moves left. + ← h l → The `l`{normal} key is at the right and moves right. + j The `j`{normal} key looks like a down arrow. + ↓ + + 1. Move the cursor around the screen until you are comfortable. + + 2. Hold down the down key (`j`{normal}) until it repeats. + Now you know how to move to the next lesson. + + 3. Using the down key, move to Lesson 1.2. + +NOTE: If you are ever unsure about something you typed, press to place + you in Normal mode. Then retype the command you wanted. + +NOTE: The cursor keys should also work. But using hjkl you will be able to + move around much faster, once you get used to it. Really! + +# Lesson 1.2: EXITING VIM + +!! NOTE: Before executing any of the steps below, +read this entire lesson !! + + 1. Press the key (to make sure you are in Normal mode). + + 2. Type: + + `:q!`{vim} ``{normal}. + + This exits the editor, DISCARDING any changes you have made. + + 3. Open vim and get back here by executing the command that got you into + this tutor. That might be: + + :Tutor + + 4. If you have these steps memorized and are confident, execute steps + 1 through 3 to exit and re-enter the editor. + +NOTE: [:q!](:q) discards any changes you made. In a few lessons you + will learn how to save the changes to a file. + + 5. Move the cursor down to Lesson 1.3. + +# Lesson 1.3: TEXT EDITING - DELETION + +** Press `x`{normal} to delete the character under the cursor. ** + + 1. Move the cursor to the line below marked ✗. + + 2. To fix the errors, move the cursor until it is on top of the + character to be deleted. + + 3. Press [the x key](x) to delete the unwanted character. + + 4. Repeat steps 2 through 4 until the sentence is correct. + +The ccow jumpedd ovverr thhe mooon. + + 5. Now that the line is correct, go on to Lesson 1.4. + +NOTE: As you go through this tutor, do not try to memorize, learn by + usage. + +# Lesson 1.4: TEXT EDITING: INSERTION + +** Press `i`{normal} to insert text. ** + + 1. Move the cursor to the first line below marked ✗. + + 2. To make the first line the same as the second, move the cursor on top + of the first character AFTER where the text is to be inserted. + + 3. Press `i`{normal} and type in the necessary additions. + + 4. As each error is fixed press ``{normal} to return to Normal mode. + Repeat steps 2 through 4 to correct the sentence. + +There is text misng this . +There is some text missing from this line. + + 5. When you are comfortable inserting text move to Lesson 1.5. + +# Lesson 1.5: TEXT EDITING: APPENDING + +** Press `A`{normal} to append text. ** + + 1. Move the cursor to the first line below marked ✗. + It does not matter on what character the cursor is in that line. + + 2. Press [A](A) and type in the necessary additions. + + 3. As the text has been appended press ``{normal} to return to Normal + mode. + + 4. Move the cursor to the second line marked ✗ and repeat + steps 2 and 3 to correct this sentence. + +There is some text missing from th +There is some text missing from this line. +There is also some text miss +There is also some text missing here. + + 5. When you are comfortable appending text move to Lesson 1.6. + +# Lesson 1.6: EDITING A FILE + +** Use `:wq`{vim} to save a file and exit. ** + +!! NOTE: Before executing any of the steps below, read this entire lesson !! + + 1. Exit this tutor as you did in Lesson 1.2: `:q!`{vim} + Or, if you have access to another terminal, do the following there. + + 2. At the shell prompt type this command: +~~~ sh + $ vim tutor +~~~ + 'vim' is the command to start the Vim editor, 'tutor' is the name of + the file you wish to edit. Use a file that may be changed. + + 3. Insert and delete text as you learned in the previous lessons. + + 4. Save the file with changes and exit Vim with: +~~~ cmd + :wq +~~~ + + Note you'll need to press `` to execute the command. + + 5. If you have quit vimtutor in step 1 restart the vimtutor and move down + to the following summary. + + 6. After reading the above steps and understanding them: do it. + +# Lesson 1 SUMMARY + + 1. The cursor is moved using either the arrow keys or the hjkl keys. + h (left) j (down) k (up) l (right) + + 2. To start Vim from the shell prompt type: + +~~~ sh + $ vim FILENAME +~~~ + + 3. To exit Vim type: ``{normal} `:q!`{vim} ``{normal} to trash + all changes. + OR type: ``{normal} `:wq`{vim} ``{normal} to save + the changes. + + 4. To delete the character at the cursor type: `x`{normal} + + 5. To insert or append text type: + `i`{normal} insert text ``{normal} insert before the cursor. + `A`{normal} append text ``{normal} append after the line. + +NOTE: Pressing ``{normal} will place you in Normal mode or will cancel + an unwanted and partially completed command. + +Now continue with Lesson 2. + +# Lesson 2.1: DELETION COMMANDS + +** Type `dw`{normal} to delete a word. ** + + 1. Press ``{normal} to make sure you are in Normal mode. + + 2. Move the cursor to the line below marked ✗. + + 3. Move the cursor to the beginning of a word that needs to be deleted. + + 4. Type [d](d)[w](w) to make the word disappear. + +There are a some words fun that don't belong paper in this sentence. + + 5. Repeat steps 3 and 4 until the sentence is correct and go to Lesson 2.2. + +# Lesson 2.2: MORE DELETION COMMANDS + +** Type `d$`{normal} to delete to the end of the line. ** + + 1. Press ``{normal} to make sure you are in Normal mode. + + 2. Move the cursor to the line below marked ✗. + + 3. Move the cursor to the end of the correct line (AFTER the first . ). + + 4. Type `d$`{normal} to delete to the end of the line. + +Somebody typed the end of this line twice. end of this line twice. + + 5. Move on to Lesson 2.3 to understand what is happening. + +# Lesson 2.3: ON OPERATORS AND MOTIONS + +Many commands that change text are made from an [operator](operator) and +a [motion](navigation). +The format for a delete command with the [d](d) delete operator is as follows: + + d motion + + Where: + d - is the delete operator. + motion - is what the operator will operate on (listed below). + + A short list of motions: + [w](w) - until the start of the next word, EXCLUDING its first character. + [e](e) - to the end of the current word, INCLUDING the last character. + [$]($) - to the end of the line, INCLUDING the last character. + + Thus typing `de`{normal} will delete from the cursor to the end of the word. + +NOTE: Pressing just the motion while in Normal mode without an operator + will move the cursor as specified. + +# Lesson 2.4: USING A COUNT FOR A MOTION + +** Typing a number before a motion repeats it that many times. ** + + 1. Move the cursor to the start of the line marked ✓ below. + + 2. Type `2w`{normal} to move the cursor two words forward. + + 3. Type `3e`{normal} to move the cursor to the end of the third word forward. + + 4. Type `0`{normal} ([zero](0)) to move to the start of the line. + + 5. Repeat steps 2 and 3 with different numbers. + +This is just a line with words you can move around in. + + 6. Move on to Lesson 2.5. + +# Lesson 2.5: USING A COUNT TO DELETE MORE + +** Typing a number with an operator repeats it that many times. ** + +In the combination of the delete operator and a motion mentioned above you +insert a count before the motion to delete more: + d number motion + + 1. Move the cursor to the first UPPER CASE word in the line marked ✗. + + 2. Type `d2w`{normal} to delete the two UPPER CASE words + + 3. Repeat steps 1 and 2 with a different count to delete the consecutive + UPPER CASE words with one command + +This ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up. + +# Lesson 2.6: OPERATING ON LINES + +** Type `dd`{normal} to delete a whole line. ** + +Due to the frequency of whole line deletion, the designers of Vi decided +it would be easier to simply type two d's to delete a line. + + 1. Move the cursor to the second line in the phrase below. + 2. Type [dd](dd) to delete the line. + 3. Now move to the fourth line. + 4. Type `2dd`{normal} to delete two lines. + +1) Roses are red, +2) Mud is fun, +3) Violets are blue, +4) I have a car, +5) Clocks tell time, +6) Sugar is sweet +7) And so are you. + +# Lesson 2.7: THE UNDO COMMAND + +** Press `u`{normal} to undo the last commands, `U`{normal} to fix a whole line. ** + + 1. Move the cursor to the line below marked ✗ and place it on the + first error. + 2. Type `x`{normal} to delete the first unwanted character. + 3. Now type `u`{normal} to undo the last command executed. + 4. This time fix all the errors on the line using the `x`{normal} command. + 5. Now type a capital `U`{normal} to return the line to its original state. + 6. Now type `u`{normal} a few times to undo the `U`{normal} and preceding + commands. + 7. Now type ``{normal} (Control + R) a few times to redo the commands + (undo the undos). + +Fiix the errors oon thhis line and reeplace them witth undo. + + 8. These are very useful commands. Now move on to the Lesson 2 Summary. + +# Lesson 2 SUMMARY + + 1. To delete from the cursor up to the next word type: `dw`{normal} + 2. To delete from the cursor to the end of a line type: `d$`{normal} + 3. To delete a whole line type: `dd`{normal} + 4. To repeat a motion prepend it with a number: `2w`{normal} + + 5. The format for a change command is: + operator [number] motion + where: + operator - is what to do, such as [d](d) for delete + [number] - is an optional count to repeat the motion + motion - moves over the text to operate on, such as: + [w](w) (word), + [$]($) (to the end of line), etc. + + 6. To move to the start of the line use a zero: [0](0) + + 7. To undo previous actions, type: `u`{normal} (lowercase u) + To undo all the changes on a line, type: `U`{normal} (capital U) + To undo the undo's, type: ``{normal} + +# Lesson 3.1: THE PUT COMMAND + +** Type `p`{normal} to put previously deleted text after the cursor. ** + + 1. Move the cursor to the first ✓ line below. + + 2. Type `dd`{normal} to delete the line and store it in a Vim register. + + 3. Move the cursor to the c) line, ABOVE where the deleted line should go. + + 4. Type `p`{normal} to put the line below the cursor. + + 5. Repeat steps 2 through 4 to put all the lines in correct order. + +d) Can you learn too? +b) Violets are blue, +c) Intelligence is learned, +a) Roses are red, + +# Lesson 3.2: THE REPLACE COMMAND + +** Type `rx`{normal} to replace the character at the cursor with x. ** + + 1. Move the cursor to the first line below marked ✗. + + 2. Move the cursor so that it is on top of the first error. + + 3. Type `r`{normal} and then the character which should be there. + + 4. Repeat steps 2 and 3 until the first line is equal to the second one. + +Whan this lime was tuoed in, someone presswd some wrojg keys! +When this line was typed in, someone pressed some wrong keys! + + 5. Now move on to Lesson 3.3. + +NOTE: Remember that you should be learning by doing, not memorization. + +# Lesson 3.3: THE CHANGE OPERATOR + +** To change until the end of a word, type `ce`{normal}. ** + + 1. Move the cursor to the first line below marked ✗. + + 2. Place the cursor on the "u" in "lubw". + + 3. Type `ce`{normal} and the correct word (in this case, type "ine" ). + + 4. Press ``{normal} and move to the next character that needs to be + changed. + + 5. Repeat steps 3 and 4 until the first sentence is the same as the second. + +This lubw has a few wptfd that mrrf changing usf the change operator. +This line has a few words that need changing using the change operator. + +Notice that [c](c)e deletes the word and places you in Insert mode. + +# Lesson 3.4: MORE CHANGES USING `c`{normal} + +** The change operator is used with the same motions as delete. ** + + 1. The change operator works in the same way as delete. The format is: + + c [number] motion + + 2. The motions are the same, such as `w`{normal} (word) and `$`{normal} (end of line). + + 3. Move to the first line below marked ✗. + + 4. Move the cursor to the first error. + + 5. Type `c$`{normal} and type the rest of the line like the second and press ``{normal}. + +The end of this line needs some help to make it like the second. +The end of this line needs to be corrected using the c$ command. + +NOTE: You can use the Backspace key to correct mistakes while typing. + +# Lesson 3 SUMMARY + + 1. To put back text that has just been deleted, type [p](p). This puts the + deleted text AFTER the cursor (if a line was deleted it will go on the + line below the cursor). + + 2. To replace the character under the cursor, type [r](r) and then the + character you want to have there. + + 3. The [change operator](c) allows you to change from the cursor to where + the motion takes you. Type `ce`{normal} to change from the cursor to the + end of the word, `c$`{normal} to change to the end of a line. + + 4. The format for change is: + + c [number] motion + +Now go on to the next lesson. + +# Lesson 4.1: CURSOR LOCATION AND FILE STATUS + +** Type ``{normal} to show your location in a file and the file status. + Type `{count}G`{normal} to move to line {count} in the file. ** + +NOTE: Read this entire lesson before executing any of the steps!! + + 1. Hold down the ``{normal} key and press `g`{normal}. We call this + ``{normal}. A message will appear at the bottom of the page with the + filename and the position in the file. Remember the line number for + Step 3. + +NOTE: You may see the cursor position in the lower right corner of the + screen. This happens when the ['ruler']('ruler') option is set. + 2. Press [G](G) to move you to the bottom of the file. + Type [gg](gg) to move you to the start of the file. + + 3. Type the number of the line you were on and then `G`{normal}. This will + return you to the line you were on when you first pressed ``{normal}. + + 4. If you feel confident to do this, execute steps 1 through 3. + +# Lesson 4.2: THE SEARCH COMMAND + +** Type `/`{normal} followed by a phrase to search for the phrase. ** + + 1. In Normal mode type the `/`{normal} character. Notice that it and the + cursor appear at the bottom of the screen as with the `:`{normal} command. + + 2. Now type 'errroor' ``{normal}. This is the word you want to search + for. + + 3. To search for the same phrase again, simply type [n](n). + To search for the same phrase in the opposite direction, type [N](N). + + 4. To search for a phrase in the backward direction, use [?](?) instead + of `/`{normal}. + + 5. To go back to where you came from press ``{normal} (keep ``{normal} pressed down while pressing the letter `o`{normal}). Repeat to go back + further. ``{normal} goes forward. + +"errroor" is not the way to spell error; errroor is an error. + +NOTE: When the search reaches the end of the file it will continue at the + start, unless the ['wrapscan']('wrapscan') option has been reset. + +# Lesson 4.3: MATCHING PARENTHESES SEARCH + +** Type `%`{normal} to find a matching ),], or }. ** + + 1. Place the cursor on any (, [, or { in the line below marked ✓. + + 2. Now type the [%](%) character. + + 3. The cursor will move to the matching parenthesis or bracket. + + 4. Type `%`{normal} to move the cursor to the other matching bracket. + + 5. Move the cursor to another (,),[,],{ or } and see what `%`{normal} does. + +This ( is a test line with ('s, ['s ] and {'s } in it. )) + +NOTE: This is very useful in debugging a program with unmatched parentheses! + +# Lesson 4.4: THE SUBSTITUTE COMMAND + +** Type `:s/old/new/g` to substitute "new" for "old". ** + + 1. Move the cursor to the line below marked ✗. + + 2. Type +~~~ cmd + :s/thee/the/ +~~~ + + NOTE that the [:s](:s) command only changed the first occurrence of "thee" in the line. + + 3. Now type +~~~ cmd + :s/thee/the/g +~~~ + + Adding the g [flag](:s_flags) means to substitute globally in the line, + change all occurrences of "thee" in the line. + +Usually thee best time to see thee flowers is in thee spring. + + 4. To change every occurrence of a character string between two lines, type +~~~ cmd + :#,#s/old/new/g +~~~ + where #,# are the line numbers of the range of lines where the + substitution is to be done. + + Type +~~~ cmd + :%s/old/new/g +~~~ + to change every occurrence in the whole file. + + Type +~~~ cmd + :%s/old/new/gc +~~~ + to find every occurrence in the whole file, with a prompt whether to + substitute or not. + +# Lesson 4 SUMMARY + + 1. ``{normal} displays your location and the file status. + `G`{normal} moves to the end of the file. + number `G`{normal} moves to that line number. + `gg`{normal} moves to the first line. + + 2. Typing `/`{normal} followed by a phrase searches FORWARD for the phrase. + Typing `?`{normal} followed by a phrase searches BACKWARD for the phrase. + After a search type `n`{normal} to find the next occurrence in the same + direction or `N`{normal} to search in the opposite direction. + ``{normal} takes you back to older positions, ``{normal} to + newer positions. + + 3. Typing `%`{normal} while the cursor is on a (,),[,],{, or } goes to its + match. + + 4. To substitute new for the first old in a line type +~~~ cmd + :s/old/new +~~~ + To substitute new for all 'old's on a line type +~~~ cmd + :s/old/new/g +~~~ + To substitute phrases between two line #'s type +~~~ cmd + :#,#s/old/new/g +~~~ + To substitute all occurrences in the file type +~~~ cmd + :%s/old/new/g +~~~ + To ask for confirmation each time add 'c' +~~~ cmd + :%s/old/new/gc +~~~ + +# Lesson 5.1: HOW TO EXECUTE AN EXTERNAL COMMAND + +** Type `:!`{vim} followed by an external command to execute that command. ** + + 1. Type the familiar command `:`{normal} to set the cursor at the bottom of + the screen. This allows you to enter a command-line command. + + 2. Now type the [!](!cmd) (exclamation point) character. This allows you to + execute any external shell command. + + 3. As an example type "ls" following the "!" and then hit ``{normal}. + This will show you a listing of your directory, just as if you were + at the shell prompt. + +NOTE: It is possible to execute any external command this way, also with + arguments. + +NOTE: All `:`{vim} commands must be finished by hitting ``{normal}. + From here on we will not always mention it. + +# Lesson 5.2: MORE ON WRITING FILES + +** To save the changes made to the text, type `:w`{vim} FILENAME. ** + + 1. Type `:!ls`{vim} to get a listing of your directory. + You already know you must hit ``{normal} after this. + + 2. Choose a filename that does not exist yet, such as TEST. + + 3. Now type: +~~~ cmd + :w TEST +~~~ + (where TEST is the filename you chose.) + + 4. This saves the whole file (the Vim Tutor) under the name TEST. + To verify this, type `:!ls`{vim} again to see your directory. + +NOTE: If you were to exit Vim and start it again with `vim TEST`, the file + would be an exact copy of the tutor when you saved it. + + 5. Now remove the file by typing: +~~~ cmd + :!rm TEST +~~~ + +# Lesson 5.3: SELECTING TEXT TO WRITE + +** To save part of the file, type `v`{normal} motion `:w FILENAME`{vim}. ** + + 1. Move the cursor to this line. + + 2. Press [v](v) and move the cursor to the fifth item below. Notice that the + text is highlighted. + + 3. Press the `:`{normal} character. At the bottom of the screen + + :'<,'> + + will appear. + + 4. Type + + `:w TEST`{vim} + + where TEST is a filename that does not exist yet. Verify that you see + + `:'<,'>w TEST`{vim} + + before you press ``{normal}. + + 5. Vim will write the selected lines to the file TEST. Use `:!ls`{vim} to see it. Do not remove it yet! We will use it in the next lesson. + +NOTE: Pressing [v](v) starts [Visual selection](visual-mode). You can move + the cursor around to make the selection bigger or smaller. Then you can + use an operator to do something with the text. For example, `d`{normal} + deletes the text. + +# Lesson 5.4: RETRIEVING AND MERGING FILES + +** To insert the contents of a file, type `:r FILENAME`{vim}. ** + + 1. Place the cursor just above this line. + +NOTE: After executing Step 2 you will see text from Lesson 5.3. Then move + DOWN to see this lesson again. + + 2. Now retrieve your TEST file using the command + + `:r TEST`{vim} + + where TEST is the name of the file you used. + The file you retrieve is placed below the cursor line. + + 3. To verify that a file was retrieved, cursor back and notice that there + are now two copies of Lesson 5.3, the original and the file version. + +NOTE: You can also read the output of an external command. For example, + + `:r !ls`{vim} + + reads the output of the `ls` command and puts it below the cursor. + +# Lesson 5 SUMMARY + + 1. [:!command](:!cmd) executes an external command. + + Some useful examples are: + `:!ls`{vim} - shows a directory listing + `:!rm FILENAME`{vim} - removes file FILENAME + + 2. [:w](:w) FILENAME writes the current Vim file to disk with + name FILENAME. + + 3. [v](v) motion :w FILENAME saves the Visually selected lines in file + FILENAME. + + 4. [:r](:r) FILENAME retrieves disk file FILENAME and puts it + below the cursor position. + + 5. [:r !dir](:r!) reads the output of the dir command and + puts it below the cursor position. + +# Lesson 6.1: THE OPEN COMMAND + +** Type `o`{normal} to open a line below the cursor and place you in Insert mode. ** + + 1. Move the cursor to the line below marked ✓. + + 2. Type the lowercase letter `o`{normal} to [open](o) up a line BELOW the + cursor and place you in Insert mode. + + 3. Now type some text and press ``{normal} to exit Insert mode. + +After typing `o`{normal} the cursor is placed on the open line in Insert mode. + + 4. To open up a line ABOVE the cursor, simply type a [capital O](O), rather + than a lowercase `o`{normal}. Try this on the line below. + +Open up a line above this by typing O while the cursor is on this line. + +# Lesson 6.2: THE APPEND COMMAND + +** Type `a`{normal} to insert text AFTER the cursor. ** + + 1. Move the cursor to the start of the line below marked ✗. + + 2. Press `e`{normal} until the cursor is on the end of "li". + + 3. Type the lowercase letter `a`{normal} to [append](a) text AFTER the + cursor. + + 4. Complete the word like the line below it. Press ``{normal} to exit + Insert mode. + + 5. Use `e`{normal} to move to the next incomplete word and repeat steps 3 + and 4. + +This li will allow you to pract appendi text to a line. +This line will allow you to practice appending text to a line. + +NOTE: [a](a), [i](i) and [A](A) all go to the same Insert mode, the only + difference is where the characters are inserted. + +# Lesson 6.3: ANOTHER WAY TO REPLACE + +** Type a capital `R`{normal} to replace more than one character. ** + + 1. Move the cursor to the first line below marked ✗. Move the cursor to + the beginning of the first "xxx". + + 2. Now press `R`{normal} ([capital R](R)) and type the number below it in the + second line, so that it replaces the "xxx". + + 3. Press ``{normal} to leave [Replace mode](mode-replace). Notice that + the rest of the line remains unmodified. + + 4. Repeat the steps to replace the remaining "xxx". + +Adding 123 to xxx gives you xxx. +Adding 123 to 456 gives you 579. + +NOTE: Replace mode is like Insert mode, but every typed character deletes an + existing character. + +# Lesson 6.4: COPY AND PASTE TEXT + +** Use the `y`{normal} operator to copy text and `p`{normal} to paste it. ** + + 1. Go to the line marked with ✓ below and place the cursor after "a)". + + 2. Start Visual mode with `v`{normal} and move the cursor to just before + "first". + + 3. Type `y`{normal} to [yank](yank) (copy) the highlighted text. + + 4. Move the cursor to the end of the next line: `j$`{normal} + + 5. Type `p`{normal} to [put](put) (paste) the text. + + 6. Press `a`{normal} and then type "second". Press ``{normal} to leave + Insert mode. + + 7. Use Visual mode to select "item.", yank it with `y`{normal}, move to the + end of the next line with `j$`{normal} and put the text there with `p`{normal} + +a) This is the first item. +b) + +NOTE: you can use `y`{normal} as an operator: `yw`{normal} yanks one word. + +# Lesson 6.5: SET OPTION + +** Set an option so a search or substitute ignores case. ** + + 1. Search for 'ignore' by entering: `/ignore` + Repeat several times by pressing `n`{normal}. + + 2. Set the 'ic' (Ignore case) option by entering: +~~~ cmd + :set ic +~~~ + 3. Now search for 'ignore' again by pressing `n`{normal}. + Notice that Ignore and IGNORE are now also found. + + 4. Set the 'hlsearch' and 'incsearch' options: +~~~ cmd + :set hls is +~~~ + 5. Now type the search command again and see what happens: /ignore + + 6. To disable ignoring case enter: +~~~ cmd + :set noic +~~~ + 7. To toggle the value of a setting, prepend it with "inv": +~~~ cmd + :set invic +~~~ +NOTE: To remove the highlighting of matches enter: +~~~ cmd + :nohlsearch +~~~ +NOTE: If you want to ignore case for just one search command, use [\c](/\c) + in the phrase: /ignore\c + +# Lesson 6 SUMMARY + + 1. Type `o`{normal} to open a line BELOW the cursor and start Insert mode. + Type `O`{normal} to open a line ABOVE the cursor. + + 2. Type `a`{normal} to insert text AFTER the cursor. + Type `A`{normal} to insert text after the end of the line. + + 3. The `e`{normal} command moves to the end of a word. + + 4. The `y`{normal} operator copies text, `p`{normal} pastes it. + + 5. Typing a capital `R`{normal} enters Replace mode until ``{normal} is + pressed. + + 6. Typing "[:set](:set) xxx" sets the option "xxx". Some options are: + + 'ic' 'ignorecase' ignore upper/lower case when searching + 'is' 'incsearch' show partial matches for a search phrase + 'hls' 'hlsearch' highlight all matching phrases + + You can either use the long or the short option name. + + 7. Prepend "no" to switch an option off: +~~~ cmd + :set noic +~~~ + 8. Prepend "inv" to toggle an option: +~~~ cmd + :set invic +~~~ + +# Lesson 7.1: GETTING HELP + +** Use the on-line help system. ** + +Vim has a comprehensive on-line help system. To get started, try one of +these three: + - press the ``{normal} key (if you have one) + - press the ``{normal} key (if you have one) + - type + `:help`{vim} + +Read the text in the help window to find out how the help works. +Type ``{normal} to jump from one window to another. +Type `:q`{vim} to close the help window. + +You can find help on just about any subject, by giving an argument to the +":help" command. Try these (don't forget pressing ): +~~~ cmd + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~ +# Lesson 7.2: CREATE A STARTUP SCRIPT + +** Enable Vim features. ** + +Vim has many more features than Vi, but most of them are disabled by +default. To start using more features you have to create a "vimrc" file. + + 1. Start editing the "vimrc" file. This depends on your system: + for UNIX-like for Windows + `:e ~/.vimrc`{vim} `:e ~/_vimrc`{vim} + + 2. Now read the example "vimrc" file contents: + `:r $VIMRUNTIME/vimrc_example.vim`{vim} + + 3. Write the file with: + `:w`{vim} + + The next time you start Vim it will use syntax highlighting. + You can add all your preferred settings to this "vimrc" file. + For more information type `:help vimrc-intro`{vim}. + +# Lesson 7.3: COMPLETION + +** Command line completion with ``{normal} and ``{normal}. ** + + 1. Look what files exist in the directory: `:!ls`{vim} + + 2. Type the start of a command: `:e`{vim} + + 3. Press ``{normal} and Vim will show a list of commands that start + with "e". + + 4. Press ``{normal} and Vim will show a menu with possible completions + (or complete the match, if the entered command is unique, e.g. + ":ed``{normal}" will be completed to ":edit"). + + 5. Use ``{normal} or ``{normal} to go to the next match. Or use + ``{normal} or ``{normal} to go to the previous match. + + 6. Choose the entry `edit`{vim}. Now you can see that the word `edit`{vim} + have been automatically inserted to the command line. + + 7. Now add a space and the start of an existing file name: `:edit FIL`{vim} + + 8. Press ``{normal}. Vim will show a completion menu with list of file + names that start with `FIL` + +NOTE: Completion works for many commands. It is especially useful for + `:help`{vim}. + +# Lesson 7 SUMMARY + + 1. Type `:help`{vim} + or press ``{normal} or ``{normal} to open a help window. + + 2. Type `:help TOPIC`{vim} to find help on TOPIC. + + 3. Type ``{normal} to jump to another window + + 4. Type `:q`{vim} to close the help window + + 5. Create a vimrc startup script to keep your preferred settings. + + 6. While in command mode, press ``{normal} to see possible completions. + Press ``{normal} to use the completion menu and select a match. + +# CONCLUSION + +This concludes Chapter 1 of the Vim Tutor. Consider continuing with +[Chapter 2](@tutor:vim-02-beginner). + +This was intended to give a brief overview of the Vim editor, just enough to +allow you to use the editor fairly easily. It is far from complete as Vim has +many many more commands. Consult the help often. + +There are many resources online to learn more about vim. Here's a bunch of +them: + +- *Learn Vim Progressively*: http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ +- *Learning Vim in 2014*: http://benmccormick.org/learning-vim-in-2014/ +- *Vimcasts*: http://vimcasts.org/ +- *Vim Video-Tutorials by Derek Wyatt*: http://derekwyatt.org/vim/tutorials/ +- *Learn Vimscript the Hard Way*: http://learnvimscriptthehardway.stevelosh.com/ +- *7 Habits of Effective Text Editing*: http://www.moolenaar.net/habits.html +- *vim-galore*: https://github.com/mhinz/vim-galore + +If you prefer a book, *Practical Vim* and the sequel *Modern Vim* by Drew Neil +are recommended often. + +This tutorial was written by Michael C. Pierce and Robert K. Ware, Colorado +School of Mines using ideas supplied by Charles Smith, Colorado State +University. E-mail: bware@mines.colorado.edu. + +Modified for Vim by Bram Moolenaar. +Modified for vim-tutor-mode by Felipe Morales. diff --git a/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..856a15efdeec25db168cce703a6ac49980a77509 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/en/vim-01-beginner.tutor.json @@ -0,0 +1,45 @@ +{ + "expect": { + "26": -1, + "105": "The cow jumped over the moon.", + "126": "There is some text missing from this line.", + "127": "There is some text missing from this line.", + "146": "There is some text missing from this line.", + "147": "There is some text missing from this line.", + "148": "There is also some text missing here.", + "149": "There is also some text missing here.", + "222": "There are some words that don't belong in this sentence.", + "238": "Somebody typed the end of this line twice.", + "278": -1, + "297": "This line of words is cleaned up.", + "311": -1, + "312": -1, + "313": -1, + "314": -1, + "315": -1, + "316": -1, + "317": -1, + "334": "Fix the errors on this line and replace them with undo.", + "374": -1, + "375": -1, + "376": -1, + "377": -1, + "391": "When this line was typed in, someone pressed some wrong keys!", + "392": "When this line was typed in, someone pressed some wrong keys!", + "413": "This line has a few words that need changing using the change operator.", + "414": "This line has a few words that need changing using the change operator.", + "434": "The end of this line needs to be corrected using the c$ command.", + "435": "The end of this line needs to be corrected using the c$ command.", + "499": -1, + "518": -1, + "543": "Usually the best time to see the flowers is in the spring.", + "737": -1, + "742": -1, + "761": "This line will allow you to practice appending text to a line.", + "762": "This line will allow you to practice appending text to a line.", + "782": "Adding 123 to 456 gives you 579.", + "783": "Adding 123 to 456 gives you 579.", + "809": "a) This is the first item.", + "810": "b) This is the second item." + } +} diff --git a/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor b/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..d68e0a884c795b96c5c03263d6085ed30ffa006f --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor @@ -0,0 +1,288 @@ +# Welcome to the VIM Tutor + +# CHAPTER TWO + + Hic Sunt Dracones: if this is your first exposure to vim and you + intended to avail yourself of the introductory chapter, kindly type + on the command line of the Vim editor +~~~ cmd + :Tutor vim-01-beginner +~~~ + Or just open the [first chapter](@tutor:vim-01-beginner) of the tutor at the link. + + The approximate time required to complete this chapter is 8-10 minutes, + depending upon how much time is spent with experimentation. + + +# Lesson 2.1.1: MASTERING TEXT OBJECTS + + ** Operate on logical text blocks with precision using text objects ** + + 1. Practice word operations: + - Place cursor on any word in the line below + - Type `diw`{normal} to delete INNER word (word without surrounding space) + - Type `daw`{normal} to delete A WORD (including trailing whitespace) + - Try with other operators: `ciw`{normal} (change), `yiw`{normal} (yank), + `gqiw`{normal} (format) + +Practice on: "Vim's", (text_object), and 'powerful' words here. + + 2. Work with bracketed content: + - Put cursor inside any () {} [] <> pair below + - Type `di(`{normal} or `dib`{normal} (delete inner bracket) + - Type `da(`{normal} or `dab`{normal} (delete around brackets) + - Try same with `i"`{normal}/`a"`{normal} for quotes, `it`{normal}/`at`{normal} for HTML/XML tags + +Test cases: {curly}, [square], , and "quoted" items. + + 3. Paragraph and sentence manipulation: + - Use `dip`{normal} to delete inner paragraph (cursor anywhere in paragraph) + - Use `vap`{normal} to visually select entire paragraph + - Try `das`{normal} to delete a sentence (works between .!? punctuation) + + 4. Advanced combinations: + - `ciwnew`{normal} - Change current word to "new" + - `ciw"-"`{normal} - Wrap current word in quotes + - `gUit`{normal} - Uppercase inner HTML tag content + - `va"p`{normal} - Select quoted text and paste over it + +Final exercise: (Modify "this" text) by [applying {various} operations]< + + +# Lesson 2.1.2: THE NAMED REGISTERS + +** Store two yanked words concurrently and then paste them ** + + 1. Move the cursor to the line below marked ✓ + + 2. Navigate to any point on the word 'Edward' and type `"ayiw`{normal} + +**MNEMONIC**: *into register(") named (a) (y)ank (i)nner (w)ord* + + 3. Navigate forward to the word 'cookie' (`fk`{normal} or `3fc`{normal} + or `$2b`{normal} or `/co`{normal} ``{normal}) and type `"byiw`{normal} + + 4. Navigate to any point on the word 'Vince' and type `ciwa`{normal} + +**MNEMONIC**: *(c)hange (i)nner (w)ord with named (a)* + + 5. Navigate to any point on the word 'cake' and type `ciwb`{normal} + +a) Edward will henceforth be in charge of the cookie rations +b) In this capacity, Vince will have sole cake discretionary powers + +NOTE: Delete also works into registers, i.e. `"sdiw`{normal} will delete + the word under the cursor into register s. + +REFERENCE: [Registers](registers) + [Named Registers](quotea) + [Motion](text-objects) + [CTRL-R](i_CTRL-R) + + +# Lesson 2.1.3: THE EXPRESSION REGISTER + +** Insert the results of calculations on the fly ** + + 1. Move the cursor to the line below marked ✗ + + 2. Navigate to any point on the supplied number + + 3. Type `ciw=`{normal}60\*60\*24 ``{normal} + + 4. On the next line, enter insert mode and add today's date with + `=`{normal}`system('date')`{vim} ``{normal} + +NOTE: All calls to system are OS dependent, e.g. on Windows use + `system('date /t')`{vim} or `:r!date /t`{vim} + +I have forgotten the exact number of seconds in a day, is it 84600? +Today's date is: + +NOTE: the same can be achieved with `:pu=`{normal}`system('date')`{vim} + or, with fewer keystrokes `:r!date`{vim} + +REFERENCE: [Expression Register](quote=) + + +# Lesson 2.1.4: THE NUMBERED REGISTERS + +** Press `yy`{normal} and `dd`{normal} to witness their effect on the registers ** + + 1. Move the cursor to the line below marked ✓ + + 2. Yank the line starting with "0.", then inspect registers with `:reg`{vim} ``{normal} + + 3. Delete line 0 with `"cdd`{normal}, then inspect registers + (Where do you expect line 0 to be?) + + 4. Continue deleting each successive line, inspecting `:reg`{vim} as you go + +NOTE: You should notice that old full-line deletions move down the list + as new full-line deletions are added + + 5. Now (p)aste the following registers in order; c, 7, 4, 8, 2. i.e. `"7p`{normal} + +0. This +9. wobble +8. secret +7. is +6. on +5. axis +4. a +3. war +2. message +1. tribute + + +NOTE: Whole line deletions (`dd`{normal}) are much longer lived in the + numbered registers than whole line yanks, or deletions involving + smaller movements + +REFERENCE: [Numbered Registers](quote0) + + +# Lesson 2.1.5: SPECIAL REGISTERS + + ** Use system clipboard and blackhole registers for advanced editing ** + + Note: Clipboard use requires X11/Wayland libraries on Linux systems AND + a Vim built with "+clipboard" (usually a Huge build). Check with + `:version`{vim} and `:echo has('clipboard_working')`{vim} + + 1. Clipboard registers `+`{normal} and `*`{normal} : + - `"+y`{normal} - Yank to system clipboard (e.g. `"+yy`{normal} for current line) + - `"+p`{normal} - Paste from system clipboard + - `"*`{normal} is primary selection on X11 (middle-click), `"+`{normal} is clipboard + +Try: "+yy then paste into another application with Ctrl-V or Cmd+V + + 2. Blackhole register `_`{normal} discards text: + - `"_daw`{normal} - Delete word without saving to any register + - Useful when you don't want to overwrite your default `"`{normal} register + - Note this is using the "a Word" text object, introduced in a previous + lession + - `"_dd`{normal} - Delete line without saving + - `"_dap`{normal} - Delete paragraph without saving + - Combine with counts: `3"_dw`{normal} + +Practice: "_diw on any word to delete it without affecting yank history + + 3. Combine with visual selections: + - Select text with V then `"+y`{normal} + - To paste from clipboard in insert mode: `+`{normal} + - Try opening another application and paste from clipboard + + 4. Remember: + - Clipboard registers work across different Vim instances + - Clipboard register is not always working + - Blackhole prevents accidental register overwrites + - Default `"`{normal} register is still available for normal yank/paste + - Named registers (a-z) remain private to each Vim session + + 5. Clipboard troubleshooting: + - Check support with `:echo has('clipboard_working')`{vim} + - 1 means available, 0 means not compiled in + - On Linux, may need vim-gtk or vim-x11 package + (check `:version`{vim} output) + + +# Lesson 2.1.6: THE BEAUTY OF MARKS + +** Code monkey arithmetic avoidance ** + +NOTE: a common conundrum when coding is moving around large chunks of code. + The following technique helps avoid number line calculations associated + with operations like `"a147d`{normal} or `:945,1091d a`{vim} or even worse + using `i=`{normal}1091-945 ``{normal} first + + 1. Move the cursor to the line below marked ✓ + + 2. Go to the first line of the function and mark it with `ma`{normal} + +NOTE: exact position on line is NOT important! + + 3. Navigate to the end of the line and then the end of the code block + with `$%`{normal} + + 4. Delete the block into register a with `"ad'a`{normal} + +**MNEMONIC**: *into register(") named (a) put the (d)eletion from the cursor to + the LINE containing mark(') (a)* + + 5. Paste the block between BBB and CCC `"ap`{normal} + +NOTE: practice this operation multiple times to become fluent `ma$%"ad'a`{normal} + +~~~ cmd +AAA +function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // the taxonomy of our function has changed and it + // no longer makes alphabetical sense in its current position + + // imagine hundreds of lines of code + + // naively you could navigate to the start and end and record or + // remember each line number +} +BBB +CCC +~~~ + +NOTE: marks and registers do not share a namespace, therefore register a is + completely independent of mark a. This is not true of registers and + macros. + +REFERENCE: [Marks](marks) + [Mark Motions](mark-motions) (difference between ' and \`) + + +# Lesson 2.1 SUMMARY + + 1. Text objects provide precision editing: + - `iw`{normal}/`aw`{normal} - inner/around word + - `i[`{normal}/`a[`{normal} - inner/around bracket + - `i"`{normal}/`a"`{normal} - inner/around quotes + - `it`{normal}/`at`{normal} - inner/around tag + - `ip`{normal}/`ap`{normal} - inner/around paragraph + - `is`{normal}/`as`{normal} - inner/around sentence + + 2. To store (yank, delete) text into, and retrieve (paste) from, a total of + 26 registers (a-z) + 3. Yank a whole word from anywhere within a word: `yiw`{normal} + 4. Change a whole word from anywhere within a word: `ciw`{normal} + 5. Insert text directly from registers in insert mode: `a`{normal} + + 6. Insert the results of simple arithmetic operations: + `=`{normal}60\*60``{normal} in insert mode + 7. Insert the results of system calls: + `=`{normal}`system('ls -1')`{vim}``{normal} in insert mode + + 8. Inspect registers with `:reg`{vim} + 9. Learn the final destination of whole line deletions: `dd`{normal} in + the numbered registers, i.e. descending from register 1 - 9. Appreciate + that whole line deletions are preserved in the numbered registers longer + than any other operation + 10. Learn the final destination of all yanks in the numbered registers and + how ephemeral they are + + 11. Place marks from command mode `m[a-zA-Z0-9]`{normal} + 12. Move line-wise to a mark with `'`{normal} + + 13. Special registers: + - `"+`{normal}/`"*`{normal} - System clipboard (OS dependent) + - `"_`{normal} - Blackhole (discard deleted/yanked text) + - `"=`{normal} - Expression register + - `"-`{normal} - Small delete register + + +# CONCLUSION + + This concludes chapter two of the Vim Tutor. It is a work in progress. + + This chapter was written by Paul D. Parker and Christian Brabandt. + + Modified for vim-tutor-mode by Restorer. diff --git a/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..04235258c484a9f884d2f1560b26e4a84b7db47b --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/en/vim-02-beginner.tutor.json @@ -0,0 +1,15 @@ +{ + "expect": { + "28": -1, + "36": -1, + "49": -1, + "71": -1, + "72": "b) In this capacity, Edward will have sole cookie discretionary powers", + "99": "I have forgotten the exact number of seconds in a day, is it 86400", + "100": -1, + "126": -1, + "158": -1, + "169": -1, + "218": -1 + } +} diff --git a/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor b/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..bb8787aaafe7276ce04498ae67f49496955dac31 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor @@ -0,0 +1,1029 @@ +# Benvenuto alla guida introduttiva VIM + +Vim è un editor molto potente, che ha molti comandi, troppi per poterli +spiegare in una guida introduttiva come questa. Questa guida introduttiva è +stata preparata per descrivere i comandi che servono a poter usare facilmente +Vim come editor di uso generale. È IMPORTANTE ricordarsi che questa guida è +stata preparata per apprendere facendo pratica. Ciò significa che occorre fare +gli esercizi, per poter apprendere davvero. Limitandosi a leggere il testo, si +finirebbe per dimenticare presto le cose più importanti! + +Per iniziare, assicuratevi che il tasto di blocco maiuscole NON sia premuto e +premete ripetutamente il tasto `j`{normal} per muovere il cursore, finché la +Lezione 0 riempia completamente lo schermo. + +# Lezione 0 + +NOTA: I comandi dati durante le lezioni modificheranno il testo, ma le +modifiche da voi effettuate non saranno salvate. Quindi non preoccupatevi +se fate pasticci; ricordate che premendo il tasto []() e poi +[u](u) verrà annullata l'ultima modifica. + +Questa guida è interattiva, e ci sono alcune cose che dovreste sapere. +- Battete []() sui link [come questo](holy-grail ) per aprire la parte di help relativa. +- O semplicemente battete [K](K) su una parola qualsiasi per trovare la relativa + documentazione! +- Talvolta vi viene richiesto di modificare righe di testo come +questa qui +Una volta fatte correttamente le modifiche richieste, il segno ✗ a sinistra +della riga diverrà ✓. Penso iniziate a intuire quanto Vim sia bello. ;) +Altre volte vi viene richiesto di eseguire un comando (vedere più sotto): +~~~ cmd + :help +~~~ +o di battere una sequenza di tasti +~~~ normal + 0fd3wP$P +~~~ + +I testi racchiusi tra i segni '<' e '>' (come ``{normal}) indicano un tasto +da premere, invece di un testo da immettere. + +Ora, avanziamo verso la prossima Lezione (usa il tasto `j`{normal} per scorrere +verso il basso). + +# Lezione 1.1: SPOSTARE IL CURSORE + +** Per spostare il cursore, premete i tasti `h`, `j`, `k`, `l` come indicato. + + ↑ + k Nota: Il tasto `h`{normal} è a sinistra e sposta a sinistra. + ← h l → Il tasto `l`{normal} è a destra e sposta a destra. + j Il tasto `j`{normal} assomiglia a una freccia in giù. + ↓ + + 1. Muovete il cursore sullo schermo, finché vi sentite a vostro agio. + + 2. Tenete schiacciato il tasto "giù" (`j`{normal}) per far ripetere l'azione. + Adesso sapete come andare alla prossima Lezione. + + 3. Usando il tasto "giù", passate alla Lezione 1.2. + +NOTA: Se non siete sicuri di aver usato i tasti giusti, premete per + tornare al modo Normal. Poi immettete ancora il comando che volevate. + +NOTA: I tasti del cursore hanno lo steso effetto. Ma usando hjkl sarete in grado + di spostarvi molto più velocemente, dopo che vi siete abituati. Davvero! + +# Lezione 1.2: USCIRE DA VIM + +!! NOTA: Prima di eseguire i passi elencati sotto, +leggetevi l'intera Lezione !! + + 1. Premete il tasto (per accertarvi di essere nel modo Normal). + + 2. Battete: + + `:q!`{vim} ``{normal}. + + Così si esce dall'editor, SCARTANDO qualsiasi modifica fatta. + + 3. Aprite vim e tornate qui eseguendo il comando che vi ha portato a questa + guida. Potrebbe essere: + + :Tutor + + 4. Se siete sicuri di aver memorizzato questi passi, eseguite i passi + dall'1 al 3 per uscire dall'editor e rientrarvi. + +NOTA: [:q!](:q) SCARTA qualsiasi modifica fatta. Tra qualche Lezione + vedremo come salvare le modifiche su un file. + + 5. Spostatevi in giù col cursore, alla Lezione 1.3. + +# Lezione 1.3: MODIFICARE TESTO - CANCELLARE + +** Premete `x`{normal} per cancellare il carattere sotto il cursore. ** + + 1. Portatevi col cursore alla riga qui sotto marcata ✗. + + 2. Per correggere, spostate il cursore posizionandolo sopra il + carattere da cancellare. + + 3. Premete [il tasto x](x) per cancellare il carattere di troppo. + + 4. Ripetete i passi da 2 a 4 finché la frase è corretta. + +La mmucca saltòò soppra lla luuna. + + 5. Ora che la riga è corretta, passate alla Lezione 1.4. + +NOTA: Nel seguire questa guida, non tentate di memorizzare, è + meglio imparare facendo pratica. + +# Lezione 1.4: EDITARE UN TESTO: INSERIMENTI + +** Premete `i`{normal} per inserire del testo. ** + + 1. Portatevi col cursore alla prima riga sotto, marcata ✗. + + 2. Per rendere la riga uguale alla seguente, spostate il cursore fino + a sovrapporvi al print carattere DOPO il testo che va inserito. + + 3. Premete `i`{normal} e immettete le aggiunte richieste. + + 4. Dopo aver corretto ogni siingolo errore premete ``{normal} + per ritornare al modo Normal. + Ripetete i passi da 2 a 4 per correggere la frase. + +Un po' testo mca questa . +Un po' di testo manca da questa riga. + + 5. Quando vi sentite a vostro agio nell'inserire del testo, passate alla + Lezione 1.5. + +# Lezione 1.5: EDITARE UN TESTO: AGGIUNGERE A FINE RIGA + +** Premete `A`{normal} per aggiungere del testo a fine riga. ** + + 1. Portatevi col cursore alla prima riga sotto marcata ✗. + Non importa su che carattere sta il cursore nella riga. + + 2. Premete [A](A) e aggiungete quanto manca. + + 3. Una volta finito di aggiungere testo, premete ``{normal} + per ritornare al modo Normal. + + 4. Portatevi col cursore alla seconda riga marcata ✗ e ripetete + i passi 2 e 3 per correggere la frase. + +Un po' di testo manca da que +Un po' di testo manca da questa riga. +Un po' di testo man +Un po' di testo manca anche qui. + + 5. Quando vi sentite a vostro agio nell'aggiungere del testo in fondo + alla riga, passate alla Lezione 1.6. + +# Lezione 1.6: EDITARE UN FILE + +** Usate `:wq`{vim} per salvare un file e uscire da Vim. ** + +!! NOTA: Prima di eseguire i passi elencati sotto, +leggetevi l'intera Lezione !! + + 1. Uscite da questa guida come avete fatto nella Lezione 1.2: `:q!`{vim} + O, se avete accesso a un altro terminale, digitate quel che segue in + quel terminale. + + 2. Dal prompt della shell battete questo comando: +~~~ sh + $ vim tutor +~~~ + 'vim' è il comando che fa partire l'editor Vim, 'tutor' è il nome + del file che desiderate editare. Usate un file che siete in grado di + modificare. + + 3. Inserite e cancellate del testo, come visto nella Lezione precedente. + + 4. Salvate il file con le modifiche da voi fatte e uscite da Vim immettendo: +~~~ cmd + :wq +~~~ + + Notate che occorre premete `` perché il comando sia eseguito. + + 5. Se siete usciti dalla guida Vim nel Passo 1, fate ripartire la guida Vim + e posizionatevi sul sommario qui sotto. + + 6. Dopo aver letto e capito tutti i passi visti qui sopra: metteteli in pratica. + +# Lezione 1 SOMMARIO + + 1. Il cursore su muove usando i tasti freccia o i tasti h j k l. + h (sinistra) j (giù) k (sù) l (destra) + + 2. Per far partire Vim dal prompt della shell immettete: + +~~~ sh + $ vim NOME-DI-FILE +~~~ + + 3. Per uscire da Vim battete: ``{normal} `:q!`{vim} ``{normal} + per buttar via tutte le modifiche. + OPPURE battete: ``{normal} `:wq`{vim} ``{normal} + per salvare le modifiche fatte. + + 4. Per cancellare il carattere sotto il cursore battete: `x`{normal} + + 5. Per inserire o aggiungere in fondo del testo battete: + `i`{normal} inserire testo ``{normal} inserire prima del cursore. + `A`{normal} aggiungere testo ``{normal} aggiungere a fine riga. + +NOTA: Premendo ``{normal} si entra nel modo Normal e, se del caso, si + annulla un comando parzialmente immesso, che non volete eseguire. + +Ora continuate con la Lezione 2. + +# Lezione 2.1: COMANDI PER CANCELLARE + +** Battete `dw`{normal} per cancellare una parola. ** + + 1. Premete ``{normal} per assicurarvi di essere nel modo Normal. + + 2. Portatevi col cursore alla riga qui sotto marcata ✗. + + 3. Portatevi col cursore all'inizio di una parola che va cancellata + + 4. Battete [d](d)[w](w) per cancellare la parola. + +Ci sono penna alcune parole matita che non appartengono carta a questa frase. + + 5. Ripetete i passi 3 e 4 finché la frase è corretta e andate alla Lezione 2.2. + +# Lezione 2.2: ANCORA COMANDI PER CANCELLARE + +** Battete `d$`{normal} per cancellare fino a fine riga. ** + + 1. Premete ``{normal} per assicurarvi di essere nel modo Normal. + + 2. Portatevi col cursore alla riga qui sotto marcata ✗. + + 3. Portatevi col cursore alla fine della riga corretta (DOPO il primo . ). + + 4. Battete `d$`{normal} per cancellare fino a fine riga. + +Qualcuno ha scritto due volte la fine di questa riga. fine di questa riga. + + 5. Passate alla Lezione 2.3 per capire cosa sta accadendo. + +# Lezione 2.3: OPERATORI E MOVIMENTI + +Molti comandi che modificano del testo sono composti da un [operatore](operator) e +da un [movimento](navigation). +Il formato di un comando delete con l'operatore [d](d) è il seguente: + + d movimento + + Dove: + d - è l'operatore per "delete" (cancella) + movimento - indice dove l'operatore agisce (vedere sotto). + + Una breve lista di movimenti: + [w](w) - fino a inizio prossima parola, ESCLUSO il carattere iniziale. + [e](e) - fino alla fine della parola corrente, INCLUSO l'ultimo carattere. + [$]($) - fino a fine riga, INCLUSO l'ultimo carattere. + + Quindi battendo `de`{normal} cancella dalla posizione del cursore a fine parola. + +NOTA: Premendo solo il carattere di movimento in modo Normal, senza un operatore + sposterà il cursore come specificato. + +# Lezione 2.4: USARE UN CONTATORE PER UN MOVIMENTO + +** Un numero prima di un movimento lo ripete altrettante volte. ** + + 1. Portatevi col cursore all'inizio della riga qui sotto, marcata ✓ . + + 2. Battete `2w`{normal} per spostare il cursore due parole in avanti. + + 3. Battete `3e`{normal} per spostare il cursore alla fine della terza parola + in avanti. + + 4. Battete `0`{normal} ([zero](0)) per andare all'inizio della riga. + + 5. Ripetete i passi 2 e 3 con numeri differenti. + +Questa è solo una riga con delle parole per imparare a muovere il cursore. + + 6. Passate alla Lezione 2.5. + +# Lezione 2.5: USARE UN CONTATORE PER CANCELLARE DI PIÙ + +** Un numero prima di un operatore lo ripete altrettante volte. ** + +Usando l'operatore delete con un movimento di quelli visti sopra, si può +inserire un contatore prima del movimento, per cancellare di più + d numero movimento + + 1. Portatevi col cursore alla prima parola MAIUSCOLA sulla riga marcata ✗. + + 2. Battete `d2w`{normal} per cancellare le due parole MAIUSCOLE. + + 3. Ripetete i passi 1 e 2 con un contatore differente per cancellare tutte + le parole MAIUSCOLE consecutive, con un solo comando. + +Questa ABC DE riga FGHI JK LMN OP di parole è stata Q RS TUV pulita. + +# Lezione 2.6: AGIRE SU INTERE RIGHE + +** Battete `dd`{normal} per cancellare un'intera riga. ** + +A causa della frequenza con cui capita di cancellare intere righe, +chi ha progettato Vim ha deciso che sarebbe stato più semplice battere +due volte la lettera d per cancellare una riga. + + 1. Portatevi col cursore alla seconda riga nella frase sotto. + 2. Battete [dd](dd) per cancellare la riga. + 3. Poi spostatevi alla riga numero 4. + 4. Battete `2dd`{normal} per cancellare due righe. + +1) Le rose sono rosse, +2) Il fango è divertente, +3) Le viole sono blu, +4) Io ho un'automobile, +5) Gli orologi ti dicono l'ora, +6) Dolce è lo zucchero, +7) Ma non quanto sei tu. + +# Lezione 2.7: IL COMANDO UNDO + +** Premete `u`{normal} per annullare l'ultimo comando, `U`{normal} per farlo su un'intera riga. ** + + 1. Portatevi col cursore alla riga qui sotto marcata ✗ e posizionatelo + sul primo errore. + 2. Battete `x`{normal} per cancellare il primo carattere indesiderato. + 3. Poi battete `u`{normal} per annullare l'ultimo comando eseguito. + 4. Poi correggete tutti gli errori sulla riga con il comando `x`{normal}. + 5. Poi battete `U`{normal} per riportare la riga a come era all'inizio. + 6. Poi battete `u`{normal} più volte per annullare l'effetto di `U`{normal} + e i comandi precedenti. + 7. Ora battete ``{normal} (Control + R) più volte per rieseguire i comandi + (annullare gli annullamenti). + +Corregggete gli errori ssu queesta riga e rimettetelli usanndo undo. + + 8. Questi comandi sono molto utili. Potete procedere al Sommario della Lezione 2. + +# Lezione 2 SOMMARIO + + 1. Per cancellare dal cursore fino alla parola seguente battete: `dw`{normal} + 2. Per cancellare dal cursore a fine riga battete: `d$`{normal} + 3. Per cancellare un'intera riga battete: `dd`{normal} + 4. Per ripetere un movimento metteteci davanti un numero: `2w`{normal} + + 5. Il formato di un comando di modifica è: + operatore [numero] movimento + dove: + operatore - indica l'azione, come [d](d) per cancellare (delete) + [numero] - è un contatore opzionale per ripetere il movimento + movimento - indica quanto esteso è il campo su cui operare, come: + [w](w) (parola, word), + [$]($) (fine della riga), etc. + + 6. Per spostarsi a inizio riga si usa uno zero: [0](0) + + 7. Per annullare azioni precedenti, battete: `u`{normal} (u minuscolo) + Per annullare tutte le modifiche a una riga, battete: `U`{normal} (U maiuscolo) + Per annullare gli annulli, battete: ``{normal} + +# Lezione 3.1: IL COMANDO PUT + +** Battete `p`{normal} per inserire il testo appena cancellato dopo il cursore. ** + + 1. Portatevi col cursore alla prima riga marcata ✓ sotto. + + 2. Battete `dd`{normal} per cancellare la riga e metterla in un registro Vim. + + 3. Portatevi col cursore alla riga c), SOPRA dove va messa la riga cancellata. + + 4. Battete `p`{normal} per inserire la riga sotto quella dove è il cursore. + + 5. Ripetete i passi da 2 a 4 per inserire tutte le righe nell'ordine corretto. + +d) Puoi impararla anche tu? +b) Le viole sono blu, +c) L'intelligenza si impara. +a) Le rose sono rosse, + +# Lezione 3.2: IL COMANDO RIMPIAZZA + +** Battete `rx`{normal} per rimpiazzare il carattere sotto il cursore con x. ** + + 1. Portatevi col cursore alla prima riga sotto marcata ✗. + + 2. Spostate il cursore fino a posizionarlo sopra al primo errore. + + 3. Battete `r`{normal} e poi il carattere "giusto". + + 4. Ripetete i passi 2 e 3 finché la prima riga è uguale alla seconda. + +Quwndo questa riga è stata imbessa, qualcuno ha premato i tasti sballiati! +Quando questa riga è stata immessa, qualcuno ha premuto i tasti sbagliati! + + 5. Ora passate alla Lezione 3.3. + +NOTA: Non dimenticate è meglio imparare provando, e non memorizzando. + +# Lezione 3.3: L'OPERATORE CAMBIA `c`{normal} + +** Per cambiare fino alla fine di una parola, battete `ce`{normal}. ** + + 1. Portatevi col cursore alla prima riga sotto marcata ✗. + + 2. Posizionate il cursore sulla prima "a" di "rana". + + 3. Battete `ce`{normal} e la parola corretta (in questo caso, battete "iga" ). + + 4. Premete ``{normal} e posizionatevi sul successivo carattere da + cambiare. + + 5. Ripetete i passi 3 e 4 finché la prima frase è uguale alla seconda. + +Questa rana ha alcune papere che vanga cambiate uscita il comando change. +Questa riga ha alcune parole che vanno cambiate usando il comando change. + +Notare che [c](c)e cancella la parole e vi mette in modo Insert. + +# Lezione 3.4: ALTRE MODIFICHE USANDO `c`{normal} + +** L'operatore cambia si usa con gli stessi movimenti di cancella. ** + + 1. L'operatore cambia funziona come l'operatore cancella. Il formato è: + + c [numero] movimento + + 2. I movimenti sono gli stessi, come `w`{normal} (parola) e `$`{normal} (fine-riga). + + 3. Spostatevi alla prima riga sotto marcata ✗. + + 4. Portatevi col cursore alla prima parola errata. + + 5. Battete `c$`{normal} e battete il resto della riga come la seguente + e premete ``{normal}. + +La fine di questa riga ha bisogno di aiuto per divenire uguale alla seguente. +La fine di questa riga va corretta usando il comando `c$`. + +NOTA: Si può usare il tasto Backspace per correggere errori di battitura. + +# Lezione 3 SOMMARIO + + 1. Per reinserire del testo che è stato appena cancellato, battete [p](p). + Questo comando mette il testo appena cancellato DOPO il cursore + (se una riga intera era stata cancellata, questa diverrà la riga SOTTO + il cursore). + + 2. Per rimpiazzare il carattere sotto il cursore, battete [r](r) e poi il + carattere che volete sostituire a quello. + + 3. Il comando [change](c) consente di cambiare il testo dalla posizione + del cursore fino a dove il movimento lo porta. Battete `ce`{normal} + per cambiare dalla posizione del cursore alla fine della parola, e + `c$`{normal} per cambiare il testo fino alla fine della riga. + + 4. Il formato per il comando che cambia del testo è: + + c [numero] movimento + +Adesso passate alla prossima Lezione. + +# Lezione 4.1: POSIZIONE DEL CURSORE E STATO DEL FILE + +** Battete ``{normal} per visualizzare la vostra posizione + all'interno del file, e lo stato del file. + Battete `G`{normal} per andare a una data riga nel file. ** + +!! NOTA: Prima di eseguire i passi elencati sotto, +leggetevi l'intera Lezione !! + + 1. Tenendo premuto il tasto ``{normal} premete `g`{normal}. Questo si indica + scrivendo ``{normal}. Un messaggio apparirà in fondo alla pagina + con il nome del file e la posizione all'interno del file. Memorizzate + il numero di riga per il Passo 3 sotto. + +NOTA: La posizione del cursore si può vedere nell'angolo in basso a destra + dello schermo. Ciò accada se è stata specificata l'opzione ['ruler']('ruler'). + 2. Battete [G](G) per portarvi in fondo al file. + Battete [gg](gg) per portarvi in cima al file. + + 3. Battete il numero della riga in cui eravate e poi `G`{normal}. In questo modo + tornerete alla riga in cui eravate al momento di battere ``{normal}. + + 4. Se vi sentite sicuri del fatto vostro, eseguite i passi da 1 a 3. + +# Lezione 4.2: IL COMANDO CERCA + +** Battete `/`{normal} seguito da una frase, per cercare quella frase. ** + + 1. In modo Normal battete il carattere `/`{normal}. Notate che il carattere + stesso e il cursore sono in fondo alla schermo, dove vengono anche + visualizzati i comandi che iniziano per `:`{normal}. + + 2. Ora battete 'errroore' ``{normal}. Questa è la parola che volete + cercare. + + 3. Per cercare ancora la stessa frase, simply battete [n](n). + Per cercare la stessa frase nella direzione opposta, battete [N](N). + + 4. Per cerca una frase all'indietro, usate [?](?) invece che `/`{normal}. + + 5. Per tornare dove eravate prima premete ``{normal} (tenendo premuto + il tasto ``{normal} premete la lettera `o`{normal}). Ripetete + per tornare ancora più indietro. ``{normal} per andare in avanti. + +"errroore" non è il modo giusto di scrivere errore; errroore è un errore. + +NOTA: Quando la ricerca arriva a fine file, ricomincia dall'inizio, a meno + che l'opzione ['wrapscan']('wrapscan') sia inattiva. + +# Lezione 4.3: CERCARE PARENTESI CORRISPONDENTI + +** Battete `%`{normal} per trovare una corrispondenza a ),], o }. ** + + 1. Posizionate il cursore su una qualsiasi (, [, o { nella riga sotto + marcata ✓. + + 2. Ora battete il carattere [%](%). + + 3. Il cursore si sposterà sulla parentesi corrispondente. + + 4. Battete `%`{normal} per spostare il cursore sull'altra parentesi + corrispondente. + + 5. Portatevi col cursore su un'altra (,),[,],{ o } e guardate cosa fa + il comando `%`{normal}. + +Questa ( è una riga di test che contiene (, [, ] e { } al suo interno. )) + +NOTA: Questo comando è molto utile per correggere un programma con qualche + parentesi mancante o posizionata male! + +# Lezione 4.4: IL COMANDO SOSTITUISCI + +** Battete `:s/vecchio/nuovo/g` per sostituire "nuovo" a "vecchio". ** + + 1. Portatevi col cursore alla riga qui sotto marcata ✗. + + 2. Battete +~~~ cmd + :s/laa/la/ +~~~ + + NOTATE che il comando [:s](:s) la cambiato solo il primo "laa" della riga. + + 3. Adesso battete +~~~ cmd + :s/laa/la/g +~~~ + + Aggiungendo il flag [flag](:s_flags) si chiede di sostituire globalmente + sulla riga, ossia di cambiare tutte le occorrenze di "laa" della riga. + +Di solito laa stagione migliore per ammirare i fiori è laa primavera. + + 4. Per cambiare ogni occorrenza di una stringa in un gruppo di righe + battete +~~~ cmd + :#,#s/vecchio/nuovo/g +~~~ + Dove #,# sono i numeri iniziale e finale del gruppo di righe dove va + fatta la sostituzione. + + Battete +~~~ cmd + :%s/vecchio/nuovo/g +~~~ + per cambiare ogni occorrenza di una stringa nell'intero file. + + Battete +~~~ cmd + :%s/vecchio/nuovo/gc +~~~ + per trovare ogni occorrenza di una stringa nell'intero file, e ricevere + la richiesta se cambiare oppure no ogni particolare occorrenza. + +# Lezione 4 SOMMARIO + + 1. ``{normal} visualizza posizione e stato del file. + `G`{normal} va all'ultima riga del file. + numero `G`{normal} va al numero di riga specificato. + `gg`{normal} va alla prima riga del file. + + 2. Battendo `/`{normal} seguito da una frase cerca la frase in AVANTI. + Battendo `?`{normal} seguito da una frase cerca la frase all'INDIETRO. + Dopo aver trovato una corrispondenza battete `n`{normal} per cercare la + corrispondenza successiva nella stessa direzione, oppure `N`{normal} + per cercarla nella direzione opposta. + ``{normal} vi riposta indietro a posizioni precedenti, + ``{normal} vi riporta avanti verso le posizioni più recenti. + + 3. Battendo `%`{normal} mentre il cursore è su (,),[,],{, o } sposta il + cursore alla parentesi corrispondente. + + 4. Per sostituire "nuovo" alla prima occorrenza di "vecchio" in una riga + battete +~~~ cmd + :s/vecchio/nuovo +~~~ + Per sostituire "nuovo" per tutti i "vecchio" di una riga battete +~~~ cmd + :s/vecchio/nuovo/g +~~~ + Per sostituire frasi nell'intervallo di righe da "#" a "#" battete +~~~ cmd + :#,#s/vecchio/nuovo/g +~~~ + Per sostituire tutte le occorrenze nel file battete +~~~ cmd + :%s/vecchio/nuovo/g +~~~ + Per chiedere conferma per ogni possibile modifica, aggiungete il flag 'c' +~~~ cmd + :%s/vecchio/nuovo/gc +~~~ +%%%% +# Lezione 5.1: COME ESEGUIRE UN COMANDO ESTERNO + +** Battete `:!`{vim} seguito da un comando esterno, per eseguire quel comando. ** + + 1. Battete il familiare comando `:`{normal} per portare il cursore in fondo allo + schermo. Ciò vi consente di immettere un comando dalla riga-di-comando. + + 2. Ora battete il carattere [!](!cmd) (punto esclamativo). Questo permette di + eseguire qualsiasi comando esterno della shell. + + 3. Come esempio battete "ls" dopo il "!" e poi date ``{normal}. + Ciò vi mostrerà una lista dei file nella vostra directory, proprio come se + deste il comando dalla shell. + +NOTA: Si può eseguire qualsiasi comando esterno in questo modo, si possono + anche specificare degli argomenti per il comando. + +NOTA: Tutti il comandi `:`{vim} vanno completati battendo ``{normal}. + Da qui in poi non lo ricorderemo tutte le volte. + +# Lezione 5.2: RISCRIVERE I FILE + +** Per salvare le modifiche fatte al testo, battete `:w`{vim} NOME-FILE. ** + + 1. Battete `:!ls`{vim} per ottenere la lista dei file nella vostra directory. + Già sapete di dover battere ``{normal} per far eseguire il comando. + + 2. Scegliete un nome-file che ancora non esiste, come TEST. + + 3. Poi battete: +~~~ cmd + :w TEST +~~~ + (dove TEST indica il nome-file da voi scelto.) + + 4. Questo comando salva l'intero file (il file Vim Tutor) con il nome TEST. + Per verificarlo, battete `:!ls`{vim} ancora per vedere i file nella + vostra directory. + +NOTA: Se uscite da Vim e chiamate Vim di nuovo battendo `vim TEST`, il file + in edit è una copia esatta del file di guida, quando è stato salvato. + + 5. Ora cancellate il file battendo: +~~~ cmd + :!rm TEST +~~~ + +# Lezione 5.3: SCRIVERE SOLO PARTE DEL TESTO + +** Per salvare solo una parte del file, battete `v`{normal} movimento + `:w NOME-FILE`{vim}. ** + + 1. Portatevi col cursore su questa riga. + + 2. Premete [v](v) e spostate il cursore alla riga marcata 5. qui sotto. + Notate che il testo selezionato è evidenziato. + + 3. Premete il tasto `:`{normal}. A fondo schermo apparirà + + :'<,'> + + 4. Battete + + `:w TEST`{vim} + + dove TEST è un nome-file non ancora esistente. Verificate di vedere + + `:'<,'>w TEST`{vim} + + prima di premere ``{normal}. + + 5. Vim scriverà le righe selezionate al file TEST. Usate `:!ls`{vim} per + controllare. + Non cancellate subito il file! Sarà usato nella prossima Lezione. + +NOTA: Premendo [v](v) iniziate il modo [selezione Visuale](visual-mode). Potete + usare il cursore per rendere la selezione più piccola o più grande. + Poi potete usare un operatore per fare qualcosa col testo così + selezionato. Per esempio, `d`{normal} cancella tutto il testo. + +# Lezione 5.4: AGGIUNGERE INTERI FILE E UNIRE FILE + +** Per inserire il contenuto di un file, battete `:r NOME-FILE`{vim}. ** + + 1. Posizionate il cursore sopra questa riga. + +NOTA: Dopo aver eseguito il Passo 2 vedrete del testo dalla Lezione 5.3. + Quindi, spostatevi in GIÙ per vedere di nuovo questa Lezione. + + 2. A questo punto, inserite il vostro file TEST usando il comando + + `:r TEST`{vim} + + dove TEST è il nome del file che avete usato più sopra. + Il file da voi letto viene inserito sotto la riga del cursore. + + 3. Per verificare che è stato inserito un file, portatevi indietro col + cursore e vedrete che ci sono ora due copie della Lezione 5.3, quella + originale e quella inserita da voi, prendendola dal file. + +NOTA: Si può anche leggere l'output prodotto da un comando esterno. + Per esempio, + + `:r !ls`{vim} + + mette l'output del comando `ls` a partire dalla riga sotto il cursore. + +# Lezione 5 SOMMARIO + + 1. [:!comando](:!cmd) esegue un comando esterno. + + Alcune esempi utili sono: + `:!ls`{vim} - mostra i file di una directory + `:!rm NOME-FILE`{vim} - cancella il file NOME-FILE + + 2. [:w](:w) NOME-FILE scrive il file in edit su disco con il nome + NOME-FILE. + + 3. [v](v) movimento :w NOME-FILE salva le righe selezionate in + modo Visual nel file chiamato NOME-FILE. + + 4. [:r](:r) NOME-FILE legge da disco il file NOME-FILE e lo + inserisce nella riga sotto il cursore. + + 5. [:r !dir](:r!) legge l'output del comando dir e lo + inserisce nella riga sotto il cursore. + +# Lezione 6.1: IL COMANDO OPEN + +** Battete `o`{normal} per aprire una nuova riga sotto a quella del cursore + e per mettervi in modo Insert sulla riga. ** + + 1. Portatevi col cursore alla riga qui sotto marcata ✓. + + 2. Battete la lettera minuscola `o`{normal} per [aprire](o) una riga sotto il + cursore e mettervi in modo Insert. + + 3. Ora battete del testo e premete ``{normal} per uscire dal modo Insert. + +Dopo battuto `o`{normal} il cursore si sposta sulla riga nuova in modo Insert. + + 4. Per aprire una riga SOPRA il cursore, semplicemente battete una + [O maiuscola](O), invece che una `o`{normal} minuscola. + Provate a farlo con la riga sotto. + +Aprite una riga sopra questa battendo O mentre il cursore è su questa riga. + +# Lezione 6.2: IL COMANDO AGGIUNGI + +** Battete `a`{normal} per inserire del testo DOPO il cursore. ** + + 1. Portatevi col cursore all'inizio della riga sotto marcata ✗. + + 2. Premete `e`{normal} fino a che il cursore sia alla fine di "ri". + + 3. Battete la lettera minuscola `a`{normal} per [aggiungere](a) testo DOPO + il cursore. + + 4. Completate la parole come nella riga sotto. Premete ``{normal} per + uscire dal modo Insert. + + 5. Usate `e`{normal} per spostarvi sulla parola incompleta seguente e + ripetete i passi 3 e 4. + +Questa ri serve per far prat ad aggiungere testo a una riga. +Questa riga serve per far pratica ad aggiungere testo a una riga. + +NOTA: I comandi [a](a), [i](i) e [A](A) fanno tutti andate al modo Insert, + la sola differenza è dove vengono inseriti i caratteri. + +# Lezione 6.3: UN ALTRO MODO PER RIMPIAZZARE + +** Battete una `R`{normal} maiuscola per rimpiazzare più caratteri. ** + + 1. Portatevi col cursore alla prima riga sotto marcata ✗. Portatevi col + cursore all'inizio del primo "xxx". + + 2. Poi premete `R`{normal} ([R maiuscolo](R)) e inserite il numero che + vedete sulla riga seguente, in modo da rimpiazzare "xxx". + + 3. Premete ``{normal} per uscire dal [modo Replace](mode-replace). + Notate che il resto della riga non viene cambiato. + + 4. Ripetete i passi per rimpiazzare l'altro "xxx". + +Sommando 123 a xxx si ottiene xxx. +Sommando 123 a 456 si ottiene 579. + +NOTA: Il modo Replace è come il modo Insert, ma ogni carattere immesso cancella + un carattere del testo. + +# Lezione 6.4: COPIARE E INCOLLARE TESTO + +** Usare l'operatore `y`{normal} per copiare testo e `p`{normal} per incollarlo. ** + + 1. Andate alla riga marcata con ✓ sotto e posizionate il cursore dopo "a)". + + 2. Entrate in mod Visual con `v`{normal} e spostate il cursore subito prima + di "primo". + + 3. Battete `y`{normal} per [copiare](yank) (copy) il testo evidenziato. + + 4. Portatevi col cursore alla fine delle riga seguente: `j$`{normal} + + 5. Battete `p`{normal} per [incollare](put) il testo. + + 6. Premete `a`{normal} e poi battete "secondo". Premete ``{normal} per + uscire dal modo Insert. + + 7. Usate il modo Visual per selezionare "elemento.", copiatelo con `y`{normal}, + andate alla fine della riga seguente con `j$`{normal} e incollate lì il + testo con `p`{normal} + +a) Questo è il primo elemento. +b) + +NOTA: SI può usare `y`{normal} come un operatore: `yw`{normal} copia una parola. + +# Lezione 6.5: IMPOSTARE UN'OPZIONE + +** Impostare un'opzione per ignorare la distinzione maiuscolo/minuscolo + quando si cerca o si sostituisce. ** + + 1. Cercate la parola 'premete' col comando: `/premete` + ripetete più volte premendo `n`{normal}. + + 2. Impostate l'opzione the 'ic' (Ignora MAIUSCOLO/minuscolo) battendo: +~~~ cmd + :set ic +~~~ + 3. Poi cercate ancora 'ignore' premendo `n`{normal}. + Notate che ora vengono trovate anche le parole Premete e PREMETE. + + 4. Impostate le opzioni 'hlsearch' e 'incsearch': +~~~ cmd + :set hls is +~~~ + 5. Ora battete il comando di ricerca e guardate cosa succede: + /premete + + 6. Per tornare a distinguere MAIUSCOLO/minuscolo battete: +~~~ cmd + :set noic +~~~ + 7. Per invertire il valore di un'opzione, metteteci davanti "inv": +~~~ cmd + :set invic +~~~ +NOTA: Per rimuovere l'evidenziazione delle corrispondenze battete: +~~~ cmd + :nohlsearch +~~~ +NOTA: Se volete ignorare la distinzione MAIUSCOLO/minuscolo solo una volta, + usate [\c](/\c) nel comando: /premete\c + +# Lezione 6 SOMMARIO + + 1. Battete `o`{normal} per aprire una riga sotto il cursore e entrare + in modo Insert. + Battete `O`{normal} per aprire una riga SOPRA il cursore. + + 2. Battete `a`{normal} per inserire del testo DOPO il cursore. + Battete `A`{normal} per aggiungere del testo a fine riga. + + 3. Il comando `e`{normal} sposta il cursore a fine parola. + + 4. Il comando `y`{normal} copia del testo, `p`{normal} lo incolla. + + 5. Battendo `R`{normal} maiuscola si entra nel modo Replace + fino a quando non si preme il tasto ``{normal}. + + 6. Battendo "[:set](:set) xxx" imposta l'opzione "xxx". + Alcune opzioni sono: + + 'ic' 'ignorecase' ignorare MAIUSCOLO/minuscole nella ricerca + 'is' 'incsearch' mostra corrispondenze parziali in ricerca + 'hls' 'hlsearch' evidenzia tutte le corrispondenze trovate + + Si può usare sia il nome lungo di un'opzione, che quello corto. + + 7. Premettete "no" per annullare un'opzione: +~~~ cmd + :set noic +~~~ + 8. Premettete "inv" per invertire un'opzione: +~~~ cmd + :set invic +~~~ + +# Lezione 7.1: OTTENERE AIUTO + +** Usate il sistema di aiuto on-line. ** + +Vim ha un ampio sistema di aiuto on-line. Per iniziare, provate una +di queste alternative: + - premete il taso ``{normal} (se disponibile) + - premete il taso ``{normal} (se disponibile) + - Battete + `:help`{vim} + +Leggete il testo nella finestra di help per vedere come funziona. +Battete ``{normal} per passare da una finestra all'altra. +Battete `:q`{vim} per chiudere la finestra di aiuto. + +Potete trovare aiuto su quasi tutto, fornendo un argomento al comando +":help". Potete provare questi (non dimenticatevi di battere ): +~~~ cmd + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~ +# Lezione 7.2: CREARE UNO SCRIPT INIZIALE + +** Abilitare funzionalità di Vim. ** + +Vim ha molte più funzionalità rispetto a Vi, ma molte di esse sono +disabilitate per default. Per iniziare a usare più funzionalità occorre +creare un file "vimrc". + + 1. Iniziate a editare il file "vimrc" con: + `:call mkdir(stdpath('config'),'p')`{vim} + `:exe 'edit' stdpath('config').'/init.vim'`{vim} + + 2. Salvate il file con: + `:w`{vim} + + Potete aggiungere a questo file "vimrc" tutte le vostre impostazioni + preferite. Per maggiori informazioni battete `:help vimrc-intro`{vim}. + +# Lezione 7.3: COMPLETAMENTI + +** Completamenti nella riga-di-comando con ``{normal} e ``{normal}. ** + + 1. Guardate i file che esistono nella directory corrente: `:!ls`{vim} + + 2. Battete l'inizio di un comando: `:e`{vim} + + 3. Premete ``{normal} e Vim vi mostra una lista di tutti i comandi che + iniziano con la lettera "e". + + 4. Premete ``{normal} e Vim completerà il nome comando a ":edit". + + 5. Ora aggiungete uno spazio e la lettera iniziale di un file nella vostra + directory: `:edit FIL`{vim} + + 6. Premete ``{normal}. Vim completerà il nome (se è il solo possibile + completamento). + +NOTA: Il completamento è disponibile in parecchi comandi. È particolarmente + utile per il comando `:help`{vim}. + +# Lezione 7 SOMMARIO + + 1. Battete `:help`{vim} + o premete il tasto ``{normal} o ``{normal} per aprire una + finestra di aiuto. + + 2. Battete `:help ARGOMENTO`{vim} per trovare aiuto su ARGOMENTO. + + 3. Battete ``{normal} per saltare da una finestra all'altra. + + 4. Battete `:q`{vim} per chiudere la finestra di help. + + 5. Create uno script iniziale vimrc mettendoci le vostre impostazioni + preferite. + + 6. Mentre immettete un comando, premete ``{normal} per vedere i + completamenti possibili. + Premete ``{normal} per usare uno dei completamenti visualizzati. + +# CONCLUSIONE + +Lo scopo di questa guida era di dare una breve panoramica sull'editor Vim, +che fosse sufficiente a permettervi di usare l'editore abbastanza facilmente. +La guida è tutt'altro che completa, Vim ha molti altri comandi. +Consultate spesso l''help. + +Ci sono molte risorse on-line (in inglese) per saperne di più riguardo a Vim. +Qui sotto potete trovare un breve elenco: + +- *Learn Vim Progressively*: http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ +- *Learning Vim in 2014*: http://benmccormick.org/learning-vim-in-2014/ +- *Vimcasts*: http://vimcasts.org/ +- *Vim Video-Tutorials by Derek Wyatt*: http://derekwyatt.org/vim/tutorials/ +- *Learn Vimscript the Hard Way*: http://learnvimscriptthehardway.stevelosh.com/ +- *7 Habits of Effective testo Editing*: http://www.moolenaar.net/habits.html +- *vim-galore*: https://github.com/mhinz/vim-galore + +Se preferite un libro (sempre in inglese), *Practical Vim* e il suo seguito +*Modern Vim* di Drew Neil sono spesso raccomandati. + +Le parti più importanti dell'help di Vim (inclusa una traduzione completa +della "User Guide") sono disponibili anche in italiano. +Per procurarsi la versione italiana, vedere: +https://sites.google.com/view/vimdoc-it + +Questa guida è stata scritta di Michael C. Pierce e Robert K. Ware, Colorado +School of Mines usando idee fornite da Charles Smith, Colorado State +University. E-mail: bware@mines.colorado.edu. + +Modificato per Vim da Bram Moolenaar. +Modificato per vim-tutor-mode da Felipe Morales. +Tradotto in italiano da Antonio Colombo. diff --git a/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..48b7743fc4f8a92c5d030706af7ce342f853c2cb --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/it/vim-01-beginner.tutor.json @@ -0,0 +1,45 @@ +{ + "expect": { + "27": -1, + "107": "La mucca saltò sopra la luna.", + "129": "Un po' di testo manca da questa riga.", + "130": "Un po' di testo manca da questa riga.", + "150": "Un po' di testo manca da questa riga.", + "151": "Un po' di testo manca da questa riga.", + "152": "Un po' di testo manca anche qui.", + "153": "Un po' di testo manca anche qui.", + "230": "Ci sono alcune parole che non appartengono a questa frase.", + "246": "Qualcuno ha scritto due volte la fine di questa riga.", + "287": -1, + "306": "Questa riga di parole è stata pulita.", + "321": -1, + "322": -1, + "323": -1, + "324": -1, + "325": -1, + "326": -1, + "327": -1, + "344": "Correggete gli errori su questa riga e rimetteteli usando undo.", + "384": -1, + "385": -1, + "386": -1, + "387": -1, + "401": "Quando questa riga è stata immessa, qualcuno ha premuto i tasti sbagliati!", + "402": "Quando questa riga è stata immessa, qualcuno ha premuto i tasti sbagliati!", + "423": "Questa riga ha alcune parole che vanno cambiate usando il comando change.", + "424": "Questa riga ha alcune parole che vanno cambiate usando il comando change.", + "445": "La fine di questa riga va corretta usando il comando `c$`.", + "446": "La fine di questa riga va corretta usando il comando `c$`.", + "515": -1, + "537": -1, + "563": "Di solito la stagione migliore per ammirare i fiori è la primavera.", + "765": -1, + "771": -1, + "790": "Questa riga serve per far pratica ad aggiungere testo a una riga.", + "791": "Questa riga serve per far pratica ad aggiungere testo a una riga.", + "811": "Sommando 123 a 456 si ottiene 579.", + "812": "Sommando 123 a 456 si ottiene 579.", + "839": "a) Questo è il primo elemento.", + "840": "b) Questo è il secondo elemento." + } +} diff --git a/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor b/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..087e84a2d8a645032637276edcd7762791743cd0 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor @@ -0,0 +1,1202 @@ +# ДОБРО ПОЖАЛОВАТЬ НА ЗАНЯТИЯ ПО РЕДАКТОРУ Vim + +# ГЛАВА ПЕРВАЯ + + Программа Vim — это очень мощный текстовый редактор, имеющий множество + команд, и все их просто невозможно описать в рамках этого учебника. + Данный же учебник призван объяснить те команды, которые позволят вам с + лёгкостью использовать программу Vim в качестве редактора общего назначения. + + Важно помнить, что этот учебник предназначен для практического обучения. + Это означает, что вы должны применять команды для того, чтобы как следует + их изучить. Если вы просто прочитаете этот текст, то не запомните команды! + + Теперь, убедившись, что не включена клавиша ``{normal}, + нажмите клавишу `j`{normal} несколько раз, так, чтобы урок 0 полностью + поместился на экране. + +# ВВОДНАЯ ЧАСТЬ + +**Важно!** + Выполняя задания уроков, вы будете изменять некоторый текст этих заданий, + но эти изменения не будут сохранятся в файле. Так что не бойтесь что что‐то + испортится; просто помните, что нажав клавишу []() и затем клавишу + [u](u) можно отменить последние сделанные изменения. + +Это интерактивный учебник, и есть несколько важных моментов, о которых надо знать. +‑ Если нажать клавишу []() когда каретка находится + на [такой ссылке](holy-grail), то будет открыт связанный с ней раздел + документации. +‑ К тому же, если нажать клавишу [K](K) на любом слове, то будет выполнен поиск + этого слова в документации. +- Также в ходе урока вам потребуется изменять текст, например, +как этот + Если задание будет выполнено правильно, то значок ✗ справа изменится на ✓. + Надеюсь, вы уже начинаете понимать насколько удобным может быть редактора Vim. +- Либо может быть предложено набрать команду, похожую на эту (объяснение далее): +~~~ cmd + :help +~~~ +или нажать последовательность клавиш +~~~ normal + 0fd3wP$P +~~~ +Текст, заключённый в угловые скобки (вроде ``{normal}), означает клавиши, +которые надо нажать на клавиатуре, а не текст который надо набирать. + +Ну что ж, переходим к следующему уроку (используйте для этого клавишу `j`{normal} +для прокрутки окна вниз). + + +# Урок 1.1.1. ПЕРЕМЕЩЕНИЕ КАРЕТКИ + +** Чтобы перемещать каретку в указанных направлениях, нажмите клавиши + `h`, `j`, `k`, `l`** + + ↑ *Подсказка.* + k Клавиша `h`{normal} слева и удобна для перемещения влево. + ← h l → Клавиша `l`{normal} справа и удобна для перемещения вправо. + j Клавиша `j`{normal} похожа на стрелку »вниз». + ↓ + 1. Перемещайте каретку в разных направлениях, пока не ощутите уверенность. + + 2. Удерживайте нажатой клавишу «вниз» (`j`{normal}) для беспрерывного + перемещения каретки. Теперь вы знаете, как перейти к следующему уроку. + + 3. Используя клавишу «вниз», то есть `j`{normal}, перейдите к уроку 1.1.2 + +**Совет.** + Если вы не уверены в правильности набранного текста, нажмите клавишу + ``{normal}, чтобы переключить редактор в режим команд. + После этого повторите набор. + +**Примечание.** + Клавиши управления курсором (стрелки) также должны работать. + Но учтите, что немного потренировавшись вы поймёте, что намного быстрее + перемещать каретку клавишами `h`{normal} `j`{normal} `k`{normal} `l`{normal} + + +# Урок 1.1.2. ЗАВЕРШЕНИЕ РАБОТЫ ПРОГРАММЫ *1-1-2* + +**ВНИМАНИЕ!** Перед выполнением описанных ниже действий, прочтите урок полностью! + + 1. Нажмите клавишу ``{normal} (чтобы убедиться, что включен режим команд). + + 2. Наберите + + `:q!`{vim} ``{normal} + + Это означает, что надо набрать три символа : q ! и нажать клавишу <ВВОД> + Исполнение этой команды вызовет завершение работы редактора БЕЗ СОХРАНЕНИЯ + любых сделанных изменений. + + 3. Снова запустите редактор Vim и повторно наберите команду, через которую вы + открыли этот учебник. Это может быть + + `:Tutor`{vim} ``{normal} + + 4. Если уверены в том, что поняли смысл вышесказанного, выполните шаги + с 1 до 3, чтобы завершить работу и снова запустить редактор. + +**Примечание.** + По команде [:q!](:q) ``{normal} будут сброшены сделанные изменения. + Через несколько уроков вы узнаете как сохранять изменения в файл. + + 5. Переместите каретку вниз к уроку [1.1.3](*1-1-3*). + + +# Урок 1.1.3. РЕДАКТИРОВАНИЕ — УДАЛЕНИЕ ТЕКСТА *1-1-3* + +** Чтобы удалить символ под кареткой, нажмите клавишу `x`{normal} ** + + 1. Переместите каретку к строке помеченной ✗. + + 2. Чтобы исправить ошибки, перемещайте каретку, пока она не окажется над + удаляемым символом. + + 3. Нажмите клавишу [x](x) для удаления требуемого символа. + + 4. Повторите шаги со 2 по 4, пока строка не будет исправлена. + +От тттопота копытт пппыль ппо ппполю леттитт. + + 5. Теперь, когда строка исправлена, переходите к уроку [1.1.4](*1-1-4*). + +**Примечание.** + В ходе этих занятий не пытайтесь сразу всё запоминать, учитесь в процессе + работы. + + +# Урок 1.1.4. РЕДАКТИРОВАНИЕ — ВСТАВКА ТЕКСТА *1-1-4* + +** Чтобы вставить текст, нажмите клавишу `i`{normal} ** + + 1. Переместите каретку к первой строке помеченной ✗. + + 2. Чтобы сделать первую строку идентичной второй, установите каретку на тот + символ, ПЕРЕД которым следует вставить текст. + + 3. Нажмите клавишу [i](i) и наберите текст, который требуется вставить. + + 4. После исправления каждого ошибочного слова, нажмите клавишу ``{normal} + для переключения в режим команд. + + Повторите шаги со 2 по 4, пока предложение не будет исправлено полностью. + +Часть текта в строке бесследно . +Часть текста в этой строке бесследно пропало. + + 5. Когда освоите вставку текста, переходите к уроку [1.1.5](*1-1-5*). + + +# Урок 1.1.5. РЕДАКТИРОВАНИЕ — ДОБАВЛЕНИЕ ТЕКСТА *1-1-5* + +** Чтобы добавить текст, нажмите клавишу `A`{normal} ** + + 1. Переместите каретку к первой строке помеченной ✗. + Сейчас неважно, на каком символе расположена каретка в этой строке. + + 2. Нажмите клавишу [A](A) и наберите текст, который требуется добавить. + + 3. После добавления текста нажмите клавишу ``{normal} для возврата + в режим команд. + + 4. Переместите каретку на следующую строку, помеченную ✗ + и повторите шаги со 2 по 3 для исправления этой строки. + +Часть текста в этой строке бессле +Часть текста в этой строке бесследно пропало. +Здесь также недостаёт час +Здесь также недостаёт части текста. + + 5. Когда освоите добавление текста, переходите к уроку [1.1.6](*1-1-6*). + + +# УРОК 1.1.6. РЕДАКТИРОВАНИЕ И ЗАПИСЬ ФАЙЛА *1-1-6* + + ** Чтобы сохранить файл и закрыть редактор, используйте команды `:wq`{vim} ** + + **ВНИМАНИЕ!** Перед выполнением описанных ниже действий, прочтите урок полностью! + + 1. Завершите работу редактора Vim, как указано в уроке [1.1.2](*1-1-2*) + `:q!`{vim} + Если есть доступ к другому терминалу, то там можете сделать следующее: + + 2. В приглашении командной оболочки введите команду +~~~ sh + $ vim tutor +~~~ + где vim - команда для запуска редактора Vim, а tutor - наименование + файла для редактирования. Укажите такой файл, который можно изменять. + + 3. Вставляйте и удаляйте текст, как описано в предыдущих уроках. + + 4. Сохраните этот изменённый файл и завершите работу программы Vim, + набрав команду +~~~ cmd + :wq +~~~ + 5. Если вы вышли из vimtutor на шаге 1, перезапустите vimtutor и переходите + далее к резюме. + + 6. После того как вы прочли и поняли вышесказанное, выполните описанные шаги. + + +# РЕЗЮМЕ УРОКА 1.1 + + 1. Каретку можно перемещать либо клавишами со стрелками, либо клавишами hjkl. + h (влево) j (вниз) k (вверх) l (вправо) + + 2. Чтобы запустить редактор Vim из приглашения командной оболочки, наберите +~~~ sh + $ vim ФАЙЛ +~~~ + 3. Чтобы завершить работу редактора Vim, выполните одно из следующих: + ``{normal} `:q!`{vim} ``{normal} + по этой команде не будут сохранены изменения; + или + ``{normal} `:wq`{vim} ``{normal} + по этой команде будут сохранены изменения. + + 4. Чтобы удалить символ под кареткой, нажмите клавишу `x`{normal}. + + 5. Чтобы вставить текст перед кареткой: + `i`{normal} вставляемый текст ``{normal} + Чтобы добавить текст в конце строки: + `A`{normal} добавляемый текст ``{normal} + +**Примечание.** + По нажатию клавиши ``{normal} будет выполнено переключение редактора + в режим команд с прерыванием обработки любой ранее набранной команды. + +Теперь переходите к уроку [1.2](*1-2-1*). + + +# Урок 1.2.1. КОМАНДЫ УДАЛЕНИЯ *1-2-1* + + ** Чтобы удалить слово под кареткой, используйте команду `dw`{vim} ** + + 1. Переключите редактор в режим команд, нажав клавишу ``{normal}. + + 2. Переместите каретку к строке помеченной ✗ + + 3. Установите каретку на начало слова, которое следует удалить. + + 4. Наберите [dw](dw) для удаления этого слова. + +**Примечание.** + При наборе оператора `d`{normal} он отобразится в самой нижней строке справа, + и программа будет ожидать ввода следующей команды, + в данном случае - `w`{normal} (объект слово). + Если что-то не получается, нажмите клавишу ``{normal} и начните сначала. + +Несколько слов рафинад в этом предложении автокран излишни. + + 5. Повторите шаги 3 и 4, пока не исправите все ошибки, и переходите + к уроку [1.2.2](*1-2-2*). + + +# Урок 1.2.2. ЕЩЁ ОДНА КОМАНДА УДАЛЕНИЯ *1-2-2* + +** Чтобы удалить текст до конца строки, используйте команду `d$`{vim} ** + + 1. Переключите редактор в режим команд, нажав клавишу ``{normal}. + + 2. Переместите каретку к строке помеченной ✗ + + 3. Установите каретку после корректного предложения (ПОСЛЕ первой точки). + + 4. Наберите [d$](d$) для удаления остатка строки. + +Кто-то набрал окончание этой строки дважды. окончание этой строки дважды. + + 5. Чтобы лучше разобраться в том как это происходит, + обратитесь к уроку [1.2.3](*1-2-3*). + + +# Урок 1.2.3. ОПЕРАТОРЫ И ОБЪЕКТЫ *1-2-3* + + Многие команды, изменяющие текст, являются составными и формируются + из [оператора](operator) и [объекта](navigation), к которому применяется + этот оператор. + Так, например, формат команды удаления с оператором [d](d) следующий: + + d объект + где + d - оператор удаления; + объект - область текста (указаны ниже), к которой будет применён оператор. + + Краткий перечень объектов: + [w](w) - от позиции каретки до конца слова, включая последующий пробел; + [e](e) - от позиции каретки до конца слова, исключая последующий пробел; + [$]($) - от позиции каретки до конца строки, включая последний символ. + + Таким образом, ввод команды `de`{normal} вызывает удаление текста + от позиции каретки до конца слова. + +**Примечание.** + Если в режиме команд, без ввода оператор, нажать клавишу с символом, + с которым ассоциирован объект, то каретка будет перемещена так, как + указано в перечне объектов. + + +# Урок 1.2.4. ПРИМЕНЕНИЕ СЧЁТЧИКА СОВМЕСТНО С ОБЪЕКТАМИ + +** Чтобы перемещение каретка выполнялось необходимое количество раз, + укажите перед объектом требуемое число ** + + 1. Установите каретку на начало строки помеченной ✓ + + 2. Наберите `2w`{normal} для перемещения каретки вперёд к началу второго слова. + + 3. Наберите `3e`{normal} для перемещения каретки вперёд к концу третьего слова. + + 4. Наберите `0`{normal} ([ноль](0)) для перемещения каретки к началу строки. + + 5. Повторите шаги 2 и 3 с различными значениями чисел. + +Обычная строка из слов, чтобы вы на ней потренировались перемещать каретку. + + 6. Когда освоите это, переходите к уроку [1.2.5.](*1-2-5*) + + +# Урок 1.2.5. ПРИМЕНЕНИЕ СЧЁТЧИКА ДЛЯ МНОЖЕСТВЕННОГО УДАЛЕНИЯ *1-2-5* + +** Чтобы применить оператор несколько раз, укажите число требуемых повторов ** + + Используя приведённые ранее составные команды удаления и перемещения, + укажите перед объектом число повторов выполнения операции удаления. + + d число объект + + 1. Установите каретку на первом слове из прописных букв в строке ✗ + + 2. Наберите `d2w`{normal} для удаления двух идущих друг за другом слов + из прописных букв. + + 3. Повторите шаги 1 и 2 с указанием других числовых значений, чтобы удалить + группы слов из прописных букв одной командой. + +Эта АБВ ГД строка ЕЖЗИ КЛ МНО очищена от П РС ТУФ лишних слов. + + +# Урок 1.2.6. ОПЕРАЦИИ СО СТРОКАМИ + +** Чтобы удалить строку целиком, используйте команду `dd`{normal} ** + + Так как часто требуется выполнять удаление всей строки целиком, создатели + редактора решили облегчить этот процесс, и предложили для этого просто + дважды нажать на клавишу с буквой d. + + 1. Переместите каретку к строке номер два. + 2. Наберите [dd](dd) для удаления строки. + 3. Теперь переместите каретку к строке номер четыре. + 4. Наберите `2dd`{normal} для удаления двух строк подряд. + +1) Летом я хожу на стадион, +2) О, как внезапно кончился диван! +3) Я болею за «Зенит», «Зенит» — чемпион! +4) Печально я гляжу на наше поколенье! +5) Его грядущее — иль пусто, иль темно... +6) Я сижу на скамейке в ложе «Б» +7) И играю на большой жестяной трубе + + + + Дублирование оператора для обработки целой строки применяется и с другими + операторами, о которых говорится далее. + + +# Урок 1.2.7. КОМАНДА ОТМЕНЫ + +** Чтобы отменить результат предыдущей команды, нажмите клавишу `u`{normal} + Чтобы отменить правки для всей строки, нажмите клавишу `U`{normal} ** + + 1. Установите каретку на первой ошибке, в строке помеченной ✗ + + 2. Нажмите клавишу `x`{normal} для удаления первого ошибочного символа. + + 3. Теперь нажмите клавишу `u`{normal} для отмены последней выполненной команды. + + 4. Исправьте все ошибки в строке, используя команду `x`{normal}. + + 5. Теперь нажмите клавишу `U`{normal}, чтобы вернуть всю строку + в исходное состояние. + + 6. Нажмите клавишу `u`{normal} несколько раз для отмены команды `U`{normal} + и предыдущих команд. + + 7. Теперь нажмите клавиши ``{normal} (т. е. удерживая клавишу ``, + нажмите клавишу `r`) несколько раз для возврата действий команд. + +Испрравьте оошибки в этойй строке и вернитте их сс помощьью команды «отмена». + + 8. Это очень нужные и полезные команды. + +Далее переходите к резюме урока [1.2](*1-2*). + + +# РЕЗЮМЕ УРОКА 1.2 + + 1. Чтобы удалить слово, установите каретку в его начало и наберите `dw`{normal} + + 2. Чтобы удалить текст от позиции каретки до конца слова, наберите `de`{normal} + + 3. Чтобы удалить текст от позиции каретки до конца строки, наберите `d$`{normal} + + 4. Чтобы удалить всю строку целиком, наберите `dd`{normal} + + 5. Чтобы переместить каретку за один раз на некоторое количество объектов, + укажите их число, например, `2w`{normal} + + 6. Формат команд изменения: + оператор [число] объект + где + оператор - необходимые действия, например, [d](d) для удаления; + [число] - количество подпадающих под действие оператора объектов, + если не указано, то один объект; + объект - на что воздействует оператор, например, [w](w) (слово), + [$]($) (всё, что есть до конца строки) и т. п. + + 7. Чтобы переместить каретку к началу строки, нажмите клавишу [0](0) (ноль) + + 8. Чтобы отменить предшествующие действие, нажмите `u`{normal} (строчная u) + Чтобы отменить все изменения в строке, нажмите `U`{normal} (прописная U) + Чтобы вернуть отменённые изменения, нажмите ``{normal} + + +# Урок 1.3.1. КОМАНДА ВСТАВКИ + +** Чтобы вставить последний удалённый текст, наберите команду `p`{normal} ** + + 1. Переместите каретку к первой строке помеченной ✓ + + 2. Наберите `dd`{normal}, чтобы удалить строку, при этом она будет + автоматически помещена в специальный регистр редактора Vim. + + 3. Установите каретку на строку ВЫШЕ той, в которой следует вставить + удалённую строку. + + 4. Убедитесь, что программа в режиме команд и нажмите клавишу [p](p) + для вставки строки ниже позиции каретки. + + 5. Повторите шаги со 2 по 4, пока не расставите все строки в нужном порядке. + +г) И лучше выдумать не мог. +б) Когда не в шутку занемог, +в) Он уважать себя заставил +а) Мой дядя самых честных правил + + +# Урок 1.3.2. КОМАНДА ЗАМЕНЫ + +** Чтобы заменить символ под кареткой, наберите `r`{normal} и заменяющий символ ** + + 1. Переместите каретку к первой строке помеченной ✗ + + 2. Установите каретку так, чтобы она находилась над первым ошибочным символом. + + 3. Нажмите клавишу [r](r) и затем наберите символ, исправляющий ошибку. + + 4. Повторите шаги 2 и 3, пока первая строка не будет соответствовать второй. + +В момегт набтра этой чтроки кое0кто с трудом попвдал по клваишам! +В момент набора этой строки кое-кто с трудом попадал по клавишам! + + 5. Теперь переходите к уроку [1.3.3](*1-3-3*). + +**Примечание.** + Помните, что вы должны учиться в процессе работы, а не просто зубрить. + + +# Урок 1.3.3. ОПЕРАТОР ИЗМЕНЕНИЯ *1-3-3* + +** Чтобы изменить окончание слова, наберите команду `ce`{normal} ** + + 1. Переместите каретку к первой строке помеченной ✗ + + 2. Установите каретку над буквой «o» в слове «сола». + + 3. Наберите команду `ce`{normal} и исправьте слово + (в данном случае, наберите «лов»). + + 4. Нажмите клавишу ``{normal} и переместите каретку к следующей ошибке + (к первому символу, начиная с которого надо изменить окончание слова). + + 5. Повторите шаги 3 и 4 пока первая строка не будет соответствовать второй. + +Несколько сола в эьгц строке тпгшцбь истравыиться. +Несколько слов в этой строке требуется исправить. + +**Примечание.** + Обратите внимание, что по команде `ce`{normal} не только удаляется часть + слова, но и происходит переключение редактора в режим вставки. + По команде `cc`{normal} будет выполнятся то же самое, но для целой строки. + + +# УРОК 1.3.4. ЕЩЁ НЕСКОЛЬКО СПОСОБОВ РАБОТЫ С ОПЕРАТОРОМ ИЗМЕНЕНИЯ `c`{normal} + +** К оператору изменения применимы те же объекты, что и к оператору удаления ** + + 1. Оператор изменения работает аналогично оператору удаления. Формат команды: + + c [число] объект + + 2. Объекты - это то же самое, что и ранее: `w`{normal} (слово), + `$`{normal} (конец строки) и т. п. + + 3. Переместите каретку к первой строке помеченной ✗ + + 4. Установите каретку на первой ошибке. + + 5. Наберите `c$`{normal} и отредактируйте первую строку так, чтобы она + совпадала со второй, после чего нажмите клавишу ``{normal}. + +Окончание этой строки нужно сделать похожим как во второй строке. +Окончание этой строки нужно исправить через команду c$. + +**Примечание.** + Клавиша ``{normal} используется для исправления при наборе текста. + + +# РЕЗЮМЕ УРОКА 1.3 + + 1. Чтобы вставить текст, который был только что удалён, наберите команду [p](p). + Текст будет вставлен ПОСЛЕ позиции каретки (если была удалена строка, + то она будет помещена в строке ниже строки с кареткой). + + 2. Чтобы заменить символ под кареткой, наберите команду [r](r) и затем + заменяющий символ. + + 3. [Операторы изменения](c) изменяют указанный объект текста от позиции каретки + до конечной точки перемещения. + Например, по команде `ce`{normal} можно изменить текст от позиции каретки + до конца слова, а по команде `c$`{normal} - до конца строки. + + 4. Формат команд изменения: + + c [число] объект + + где c - оператор изменения; + [число] - количество изменяемых объектов (необязательная часть); + объект - объект текста, который будет изменён. + +Теперь переходите к следующему уроку. + + +# УРОК 1.4.1. ИНФОРМАЦИЯ О ФАЙЛЕ И ПОЗИЦИЯ КАРЕТКИ + +** Чтобы получить информацию о файле и позиции каретки, нажмите ``{normal} + Чтобы переместить каретку к заданной строке в файле, нажмите `G`{normal} ** + + **ВНИМАНИЕ!** Прочитайте весь урок, прежде чем выполнять любые действия! + + 1. Удерживая клавишу ``{normal}, нажмите клавишу `g`{normal}. + Внизу экрана появится сообщение с наименованием файла и номером строки, + в которой находится каретка. Запомните этот номер строки, + он потребуется на шаге 3. + + **Примечание.** + Позиция каретки может отображаться в правом нижнем углу окна программы, + если установлен параметр ['ruler']('ruler'). + + 2. Нажмите клавишу [G](G) для перемещения каретки на последнюю строку файла. + Теперь наберите [gg](gg) для перемещения каретки на первую строку файла. + + 3. Наберите номер строки, которой был получен на шаге 1, и нажмите клавишу + `G`{normal}. Каретка будет перемещена в ту строку, где она находилась, + когда в первый раз были нажаты клавиши ``{normal}. + + 4. Если вы запомнили всё вышесказанное, выполните шаги с 1 по 3. + + +# Урок 1.4.2. КОМАНДЫ ПОИСКА + +** Чтобы что-то найти, наберите команду `/`{normal} и введите искомую фразу ** + + 1. В режиме команд наберите символ `/`{normal}. + Обратите внимание, что этот символ будет отображаться внизу экрана. Так же, + как и при наборе команды `:`{normal} + + 2. Теперь наберите ошшшибка ``{normal}. + Это то слово, которое требуется найти. + + 3. Чтобы повторить поиск искомого слова, просто нажмите клавишу [n](n). + Чтобы искать это слово в обратном направлении, нажмите клавиши [N](N). + + 4. Если требуется сразу выполнить поиск в обратном направлении, используйте + команду [?](?) вместо команды `/`{normal}. + + 5. Чтобы вернуться туда, откуда был начат поиск, нажмите несколько раз + клавиши ``{normal}. + Для перехода вперёд, используйте команду ``{normal}. + +"ошшшибка" это не способ написания слова "ошибка"; ошшшибка — это ошибка. + +**Примечание.** + Если будет достигнут конец файла, то поиск будет продолжен от начала файла. + + +# Урок 1.4.3. ПОИСК ПАРНЫХ СКОБОК + +** Чтобы найти парную скобку для (, [ или {, наберите команду `%`{normal} ** + + 1. Поместите каретку на любой из скобок (, [ или { в строке помеченной ✓ + + 2. Теперь нажмите на клавиатуре клавишу с символом [%](%). + + 3. Каретка будет перемещена на парную скобку для той скобки, на которой + установлена каретка. + + 4. Наберите `%`{normal} для возврата каретки назад к первой парной скобке. + +В этой ( строке есть такие (, такие [ ] и { такие } скобки. )) + +**Примечание.** + Это очень удобно при отладке программ, когда в коде пропущены скобки! + + +# Урок 1.4.4. СПОСОБ ЗАМЕНЫ СЛОВ + +** Чтобы «что-то» заменить «чем-то», наберите команду `:s/что/чем/g`{vim} ** + + 1. Переместите каретку к строке помеченной ✗ + + 2. Наберите +~~~ cmd + :s/уводю/увожу/ +~~~ + Обратите внимание на то, что по этой команде будет замена только первого + найденного вхождение в строке. + + 3. Теперь наберите +~~~ cmd + :s/уводю/увожу/g +~~~ + Здесь добавленный [флаг](:s_flags) 'g' означает замена во всей строке. + Будет выполнена замена всех найденных в строке совпадений. + +Я уводю к отверженным селеньям, я уводю сквозь вековечный стон, я уводю к забытым поколеньям. + + 4. Чтобы заменить все вхождения искомого слова в каком-то диапазоне строк, + наберите +~~~ cmd + :#,#s/что/чем/g +~~~ + где #,# - номер начальной и конечной строки диапазона, + в котором будет выполнена замена. + + Наберите +~~~ cmd + :%s/что/чем/g +~~~ + чтобы заменить все вхождения во всём файле. + + Наберите +~~~ cmd + :%s/что/чем/gc +~~~ + чтобы выдавался запрос подтверждения перед каждой заменой. + + +# РЕЗЮМЕ УРОКА 1.4 + + 1. По приведённым ниже командам будет выполнено: + ``{normal} - вывод информации о файле и текущей позиции каретки + в этом файле + `G`{normal} - переход на последнюю строку файла + номер и `G`{normal} - переход на строку с указанным номером + `gg`{normal} - переход на первую строку файла + + 2. При вводе символа `/`{normal} с последующим набором слова, будет выполнен + поиск этого слова ВПЕРЁД по тексту. + При вводе символа `?`{normal} с последующим набором слова, будет выполнен + поиск этого слова НАЗАД по тексту. + После показа первого совпадения, нажмите `n`{normal} для перехода + к следующему слову в том же направлении поиска или `N`{normal} для поиска + в противоположном направлении. + При нажатии клавиш ``{normal} будет возврат к предыдущему слову, + а при нажатии клавиш ``{normal} будет переход к ранее найденному + слову. + + 3. При нажатии `%`{normal}, когда каретка на одной из скобок ( ), [ ] или { }, + будет найдена её парная скобка. + + 4. Чтобы заменить первое найденное слово в строке, наберите +~~~ cmd + :s/что/чем +~~~ + Чтобы заменить все найденные слова в строке, наберите +~~~ cmd + :s/что/чем/g +~~~ + Чтобы заменить в указанными диапазоне строк, наберите +~~~ cmd + :#,#s/что/чем/g +~~~ + Чтобы заменить все найденные слова в файле, наберите +~~~ cmd + :%s/что/чем/g +~~~ + Чтобы запрашивалось подтверждение для каждой замены, добавьте флаг 'c' +~~~ cmd + :%s/что/чем/gc +~~~ + +# Урок 1.5.1. КАК ВЫЗВАТЬ ИЗ РЕДАКТОРА ВНЕШНЮЮ КОМАНДУ + +** Чтобы вызвать команду командной оболочки, наберите в редакторе `:!`{vim} ** + + 1. Наберите уже знакомую команду `:`{normal}, чтобы каретка была установлена + в командной строке редактора и можно было ввести необходимую команду. + + 2. Теперь наберите символ [!](!cmd) (восклицательный знак). По этой команде + будет вызвана указанная следующей внешняя команда командной оболочки. + + 3. Например, наберите "ls" сразу после "!" и нажмите ``{normal}. + Будет выведен перечень файлов в текущем каталоге. То есть будет выполнено + точно то же самое, как если бы ввести команду `ls` в приглашении командной + оболочки. + Если в системе не поддерживается команда `ls`, наберите команду `:!dir`{vim} + +**Примечание.** + Таким способом можно выполнить любую внешнюю команду, + в том числе и с указанием необходимых аргументов этой команды. + +**Важно.** + После ввода команды, начинающейся с `:`{vim}, должна быть нажата клавиша + ``{normal}. + В дальнейшем это может не указываться отдельно, но подразумеваться. + + +# Урок 1.5.2. КАК ЗАПИСАТЬ ФАЙЛ + +** Чтобы сохранить файл со всеми изменениями в тексте, наберите `:w`{vim} ФАЙЛ ** + + 1. Наберите `:!dir`{vim} или `:!ls`{vim} для получения перечня файлов + в текущем каталоге. + Как вы помните, после набора команды нажмите клавишу ``{normal} + + 2. Придумайте название для файла, которое ещё не существует, например, «TEST». + + 3. Теперь наберите +~~~ cmd + :w TEST +~~~ + (здесь TEST - это придуманное вами название файла). + + 4. По этой команде будет полностью сохранён текущий файл («tutor») под новым + название «TEST». Чтобы проверить это, снова наберите команду `:!dir`{vim} + или `:!ls`{vim} и просмотрите содержимое каталога. + +**Примечание.** + Если завершить работу редактора Vim и затем запустить его снова с файлом + TEST (т. е. набрать команду `vim TEST`), этот файл будет точной копией + учебника в тот момент, когда он был сохранён. + + 5. Теперь удалите этот файл, набрав в редакторе команду +~~~ cmd + :!del TEST +~~~ + (для ОС Windows) или +~~~ cmd + :!rm TEST +~~~ + (для UNIX-подобных ОС) + + +# Урок 1.5.3. ВЫБОРОЧНАЯ ЗАПИСЬ СТРОК + +** Чтобы сохранить часть файла, нажмите клавишу `v`{normal}, выделите строки + и наберите команду `:w ФАЙЛ`{vim} ** + + 1. Переместите каретку на эту строку. + + 2. Нажмите клавишу [v](v) и переместите каретку ниже к строке с пятым пунктом. + Обратите внимание, что текст подсвечен. + + 3. Нажмите клавишу с символом `:`{normal} и внизу экрана появится + + `:'<,'>`{vim} + + 4. Наберите команду + + `w TEST`{vim} + + (здесь TEST - наименование файла, который ещё не существует). + В командной строке должно быть + + `:'<,'>w TEST`{vim} + + и нажмите клавишу + + 5. По этой команде выбранные строки будут записаны в файл «TEST». Убедитесь в + наличии этого файла, воспользовавшись командой `:!dir`{vim} или `:!ls`{vim}. + Не удаляйте этот файл, он потребуется на следующем уроке. + +**Примечание.** + По нажатию клавиши [v](v) выполняется переключение в визуальный режим. + Чтобы изменить размер выбранной области, нужно переместить каретку. + К выделенному фрагменту можно применить любой оператор, например, `d`{normal} + для его удаления. + + +# Урок 1.5.4. СЧИТЫВАНИЕ И ОБЪЕДИНЕНИЕ ФАЙЛОВ + +** Чтобы вставить содержащийся в файле текст, наберите `:r ФАЙЛ`{vim} ** + + 1. Установите каретку над этой строкой. + +**Внимание!** + После выполнения описанного в пункте 2 вы увидите текст из урока 1.5.3. + Переместите каретку вниз по тексту до текущего урока. + + 2. Теперь считайте содержимое файла TEST, используя команду + + `:r TEST`{vim} + + здесь TEST - это наименование файла. + Файл будет считан, и его содержимое помещено ниже строки с кареткой. + + 3. Для проверки, что содержимое файла было вставлено, переместите каретку + вверх по тексту и удостоверьтесь, что теперь здесь два урока 1.5.3. - + исходный и из файла TEST. + +**Примечание.** + Вставить можно и результат внешней команды. Например, по команде + + `:r !ls`{vim} + + будет получен вывод команды `ls` и вставлен ниже позиции каретки. + + +# РЕЗЮМЕ УРОКА 1.5 + + 1. По команде [:!command](:!cmd) будет исполнена указанная внешняя команда. + + Некоторые полезные примеры: + (Windows) (UNIX) + `:!dir`{vim} `:!ls`{vim} - вывести перечень файлов в каталоге; + `:!del ФАЙЛ`{vim} `:!rm ФАЙЛ`{vim} - удалить файл с указанным названием. + + 2. По команде [:w](:w) ФАЙЛ — текущий редактируемый файл будет записан + с указанным наименованием. + + 3. Используя команды [v](v), перемещение каретки и `:w ФАЙЛ`{vim} — можно + сохранить визуально выделенные строки в файл с указанным наименованием. + + 4. По команде [:r](:r) ФАЙЛ — будет прочитан файл с указанным наименованием + и его содержимое помещено ниже позиции каретки. + + 5. По команде [:r !dir](:r!) — будет получен вывод команды `dir` и помещён + ниже позиции каретки. + + +# УРОК 1.6.1. КОМАНДЫ ДЛЯ СОЗДАНИЯ СТРОК + +** Чтобы открыть новую строку с переходом в режим вставки, наберите `o`{normal} ** + + 1. Переместите каретку вниз, к первой строке помеченной ✓ + + 2. Нажмите клавишу `o`{normal} для того, чтобы создать [пустую строку](o) НИЖЕ + позиции каретки и переключить редактор в режим вставки. + + 3. Теперь наберите какой-нибудь текст и нажмите клавишу ``{normal} для + выхода из режима вставки. + +При нажатии `o`{normal}, ниже будет открыта новая пустая строка в режиме вставки. + + 4. Для создания строки ВЫШЕ позиции каретки, наберите прописную букву [O](O), + вместо строчной буквы `o`{normal}. Попробуйте это сделать для строки ниже. + +Создайте новую строку над этой, поместив сюда каретку и нажав клавишу `O`{normal}. + + +# УРОК 1.6.2. КОМАНДА ДЛЯ ДОБАВЛЕНИЯ ТЕКСТА + +** Чтобы вставить текст после позиции каретки, наберите `a`{normal} ** + + 1. Переместите каретку вниз, в начало первой строки помеченной ✗ + + 2. Нажмите клавишу `e`{normal}, пока каретка не окажется на последнем символе + слова «стро». + + 3. Нажмите клавишу `a`{normal} для [добавления](a) текста ПОСЛЕ символа, + находящегося под кареткой. + + 4. Допишите слово как в строке ниже. Нажмите клавишу ``{normal} для выхода + из режима вставки. + + 5. Используйте клавишу `e`{normal} для перехода к следующему незавершённому + слову и повторите действия, описанные в пунктах 3 и 4. + +На этой стро вы можете попрактиков в добавле текста. +На этой строке вы можете попрактиковаться в добавлении текста. + +**Примечание.** + По команде [a](a), [i](i) и [A](A) будет выполнено переключение в один + и тот же режим вставки, различие только в том, где вставляются символы. + + +# Урок 1.6.3. ЕЩЁ ОДИН СПОСОБ ЗАМЕНЫ + +** Чтобы заменить несколько символов в строке, наберите `R`{normal} ** + + 1. Переместите каретку в начало первого слова «xxx» в строке помеченной ✗ + + 2. Теперь нажмите [R](R) и введите число, указанное ниже во второй строке, + чтобы заменить символы «xxx». + + 3. Нажмите клавишу ``{normal} для выхода из режима замены. Заметьте, + что остаток строки не был изменён. + + 4. Повторите эти шаги для замены оставшихся слов «xxx». + +При сложении числа 123 с числом xxx сумма будет xxx. +При сложении числа 123 с числом 456 сумма будет 579. + +**Примечание.** + Режим замены похож на режим вставки, но каждый введённый символ удаляет + существующий символ в строке. + + +# Урок 1.6.4. КОПИРОВАНИЕ И ВСТАВКА ТЕКСТА + +** Чтобы копировать текст, используйте оператор `y`{normal}, + чтобы вставить — команду `p`{normal} ** + + 1. Установите каретку после символов «а)» в строке помеченной ✓ + + 2. Переключите редактор в визуальный режим командой `v`{normal} и переместите + каретку вперёд до слова «первый». + + 3. Нажмите клавишу `y`{normal} для [копирования](yank) подсвеченного текста. + + 4. Переместите каретку в конец следующей строки, набрав команду `j$`{normal}. + + 5. Нажмите клавишу `p`{normal} для [вставки](put) текста. + + 6. Затем наберите команду `a`{normal}, напечатайте слово "второй" + и нажмите клавишу ``{normal}. + + 7. Повторите шаги с 1 по 4, только установите каретку после слова «первый», + выделите, скопируйте и вставьте слово « пункт.» + +а) Это первый пункт. +б) + +**Примечание.** + Для копирования одного слова можно использовать команду `yw`{normal} + (оператор `y`{normal} и объект `w`{normal}). + По команде `yy`{normal} будет скопирована целая строка, а по команде + `p`{normal} вставлена. + + +# Урок 1.6.5. УСТАНОВКА ПАРАМЕТРОВ + +** Чтобы при поиске или замене не учитывался регистр символов, + задайте соответствующие настройки ** + + 1. Найдите слово «игнорировать», набрав команду `/игнорировать`{normal}. + Повторите поиск несколько раз, нажимая клавишу `n`{normal} . + + 2. Установите параметр 'ic' (игнорировать регистр), набрав команду +~~~ cmd + :set ic +~~~ + 3. Ещё раз повторите поиск слова «игнорировать», нажимая клавишу `n`{normal} + Заметьте, что теперь будут найдены слова «Игнорировать» и «ИГНОРИРОВАТЬ». + + 4. Установите параметры 'hlsearch' и 'incsearch' командой +~~~ cmd + :set hls is +~~~ + 5. Повторно введите команду поиска `/игнорировать` и посмотрите, что получится + + 6. Для возврата учёта регистра символов при поиске, введите команду +~~~ cmd + :set noic +~~~ +**Примечание.** + Для отключения подсветки совпадений, наберите команду +~~~ cmd + :nohlsearch +~~~ +**Примечание.** + Если требуется не учитывать регистр символов только единоразово, используйте + ключ [\c](/\c) в команде поиска, например, `/игнорировать\c```{normal} + + +# РЕЗЮМЕ УРОКА 1.6 + + 1. По команде `o`{normal} будет создана пустая строка ниже строки с кареткой + и редактор будет переключен в режим вставки + По команде `O`{normal} будет создана пустая строка выше строки с кареткой + и редактор будет переключен в режим вставки + + 2. По команде `a`{normal} выполняется вставки текста ПОСЛЕ позиции каретки. + По команде `A`{normal} выполняется вставки текста в конце строки. + + 3. По команде `e`{normal} выполняется установка каретки в конце слова. + + 4. Оператор `y`{normal} используется для копирования текста, + а по команде `p`{normal} происходит вставка скопированного текста. + + 5. При нажатии клавиш `R`{normal} выполняется переключение в режим замены, + а отключение - нажатием клавиши ``{normal}. + + 6. Наберите [:set](:set) xxx для установки параметра 'xxx'. + + Вот некоторые параметры (можно указывать полные или сокращённые наименования): + 'ic' 'ignorecase' игнорирование регистра символов при поиске + 'is' 'incsearch' отображение частичных совпадений при поиске + 'hls' 'hlsearch' подсветка всех совпадений при поиске + + 7. Для сброса параметра, добавьте приставку "no" к его названию +~~~ cmd + :set noic +~~~ + 8. Для переключения состояния параметра, добавьте приставку "inv" к названию +~~~ cmd + :set invic +~~~ + +# УРОК 1.7.1. ВСТРОЕННАЯ СПРАВОЧНАЯ СИСТЕМА + +** Используйте встроенную справочную систему ** + + В редакторе Vim имеется мощная встроенная справочная система, и чтобы начать + ей пользоваться, попробуйте один из трёх вариантов: + - нажмите клавишу ``{normal} (если она есть на клавиатуре) + - нажмите клавишу ``{normal} (если она есть на клавиатуре) + - наберите + `:help`{vim} + + Ознакомьтесь с информацией в окне справочной системы, чтобы получить + представление о том как работать с документацией. + + Нажмите ``{normal} для перемещения каретки из одного окна + в другое окно. + Наберите `:q`{normal}, чтобы закрыть окно справочной системы (когда каретка + находится в этом окне). + + Можно найти описание для любого понятия или команды, задав соответствующий + аргумент команде `:help`{vim}. + Попробуйте следующее (не забудьте нажать ``{normal}): +~~~ cmd + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~ + +# Урок 1.7.2. СОЗДАНИЕ СТАРТОВОГО КОМАНДНОГО ФАЙЛА + +** Включим все возможности редактора Vim ** + + Редактор Vim более функционален по сравнению с редактором Vi, но большинство + из этих возможностей отключены при запуске программы. Чтобы активировать + весь потенциала редактора, необходимо создать файл «vimrc». + + 1. Создайте новый файл "vimrc". Его местонахождение зависит от используемой + системы: +~~~ cmd + :e ~/.vimrc +~~~ + для UNIX-подобных систем +~~~ cmd + :e $VIM\_vimrc +~~~ + для MS Windows + + 2. Теперь добавьте в этот файл содержимое шаблонного файла «vimrc» +~~~ cmd + :r $VIMRUNTIME/vimrc_example.vim +~~~ + 3. Запишите созданный вами файл «vimrc» + `:w`{vim} + + Теперь при следующем запуске редактора Vim будет включена подсветка синтаксиса. + + Все необходимые вам настройки могут быть добавлены в файл «vimrc». + Чтобы получить подробную информацию, наберите `:help vimrc-intro`{vim} + + +# Урок 1.7.3. ПОДСТАНОВКА КОМАНД + +** Подстановка в командной строке выполняется при помощи следующих клавиш + ``{normal} и ``{normal}** + + 1. Отключите совместимость с редактором Vi +~~~ cmd + :set nocp +~~~ + 2. Посмотрите, какие файлы есть в каталоге, набрав команду + `:!ls`{vim} или `:!dir`{vim} + + 3. Наберите начало команды для открытия файла на редактирование `:e`{vim} + + 4. Нажмите клавиши ``{normal}, и будет показан перечень команд + редактора Vim начинающихся с буквы «e». + + 5. Нажмите клавиши `d`{normal}, и будет отображено меню с возможными + наименованиями команд для подстановки (или подставлено соответствующее + наименование, если введённая команда достаточно уникально, например, для + `:ed`{vim} будет подставлена команда `:edit`{vim}). + + 6. Используйте или для перехода к следующему соответствию. + Или либо CTRL-P> для перехода к предыдущему соответствию. + + 7. Выберите пункт edit. И команда `edit`{vim} будет автоматически подставлена + в командную строку. + + 8. Теперь напечатайте пробел и начало наименования существующего файла + `:edit TE`{vim} + + 9. Нажмите клавишу ``{normal} и будет подставлено наименование файла, + если оно уникальное. + +**Примечание.** + Подстановка работает для множества команд. Просто попробуйте нажать клавиши + ``{normal} и ``{normal} для любой из команд редактора. + Это особенно полезно для команды `:help`{vim}. + + +# РЕЗЮМЕ УРОКА 1.7 + + 1. Чтобы открыть встроенную справочную систему редактора, наберите команду + `:help`{vim} или нажмите клавишу ``{normal}, или ``{normal}. + + 2. Чтобы найти справочную информацию о какой-либо команде, + наберите `:help cmd`{vim} (вместо «cmd» укажите наименование команды). + + 3. Чтобы переместить каретку в другое окно, нажмите клавиши + ``{normal}. + + 4. Чтобы закрыть окна справочной системы (если оно активно), наберите `:q`{vim}. + + 5. Чтобы при запуске всегда применялись необходимые вам настройки, создайте + стартовый командный файл vimrc. + + 6. При наборе команды, начинающейся с символа `:`{normal}, нажмите клавиши + ``{normal}, чтобы просмотреть возможные варианты подстановки. + Нажмите клавишу ``{normal} для подстановки необходимого варианта. + + +# ЗАКЛЮЧЕНИЕ + + На этом можно завершить первую часть занятий, посвящённые редактору Vim. + Далее вы можете пройти [вторую часть](@tutor:vim-02-beginner) занятий. + + Целью данного курса было дать краткий обзор редактора Vim, достаточный для + того, чтобы не возникало сложностей при его использовании. Это далеко не + полный обзор, поскольку в редакторе Vim есть ещё много-много команд. + + Чтобы расширить свои познания, ознакомьтесь с руководством пользователя, + набрав команду `:help user-manual`{vim}. + + Для дальнейшего чтения рекомендуется книга + «*Vim - Vi Improved*», автор Steve Oualline, издательство New Riders. + Она полностью посвящена редактору Vim и будет особенно полезна новичкам. + В книге имеется множество примеров и иллюстраций. + См. https://iccf-holland.org/click5.html + + Также рекомендуется книга «*Practical Vim*», автор Drew Neil, + издательство Pragmatic Bookshelf. + См. https://pragprog.com/titles/dnvim2/practical-vim-second-edition/ + + Ещё одна книга более почтенного возраста и посвящена больше редактору Vi, + чем редактору Vim, однако также рекомендуется к прочтению + «*Learning the Vi Editor*», автор Linda Lamb, + издательство O'Reilly & Associates Inc. + Это хорошая книга, чтобы узнать всё, что только можно сделать в редакторе Vi. + Шестое издание этой книги включает информацию о редакторе Vim. + + К тому же в Интернет есть множество ресурсов, где можно узнать многое + о редакторе Vim. Вот некоторые из них: + + - *Learn Vim Progressively*: + http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ + - *Learning Vim in 2014*: + http://benmccormick.org/learning-vim-in-2014/ + - *Vimcasts*: + http://vimcasts.org/ + - *Vim Video-Tutorials by Derek Wyatt*: + http://derekwyatt.org/vim/tutorials/ + - *Learn Vimscript the Hard Way*: + http://learnvimscriptthehardway.stevelosh.com/ + - *7 Habits of Effective Text Editing*: + http://www.moolenaar.net/habits.html + - *vim-galore*: + https://github.com/mhinz/vim-galore + + Эти уроки были составлены Michael C. Pierce и Robert K. Ware из Colorado + School of Mines с учётом идей, предложенных Charles Smith из Colorado State + University. E-mail: bware@mines.colorado.edu (теперь недоступен). + + Уроки доработаны Bram Moolenaar для использования в редакторе Vim. + Уроки доработаны Felipe Morales для обучающего режима редактора Vim. + + Андрей Киселёв, перевод на русский язык, 2002, a_kissel@eudoramail.com + Сергей Алёшин, перевод на русский язык, 2014, alyoshin.s@gmail.com + Restorer, редактура, 2022, restorer@mail2k.ru diff --git a/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..50d32b23e345c5a2f06c8914f3a57ab9af4f84a9 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/ru/vim-01-beginner.tutor.json @@ -0,0 +1,45 @@ +{ + "expect": { + "33": -1, + "121": "От топота копыт пыль по полю летит.", + "146": "Часть текста в этой строке бесследно пропало.", + "147": "Часть текста в этой строке бесследно пропало.", + "167": "Часть текста в этой строке бесследно пропало.", + "168": "Часть текста в этой строке бесследно пропало.", + "169": "Здесь также недостаёт части текста.", + "170": "Здесь также недостаёт части текста.", + "253": "Несколько слов в этом предложении излишни.", + "271": "Кто-то набрал окончание этой строки дважды.", + "318": -1, + "340": "Эта строка очищена от лишних слов.", + "356": -1, + "357": -1, + "358": -1, + "359": -1, + "360": -1, + "361": -1, + "362": -1, + "392": "Исправьте ошибки в этой строке и верните их с помощью команды «отмена».", + "445": -1, + "446": -1, + "447": -1, + "448": -1, + "463": "В момент набора этой строки кое-кто с трудом попадал по клавишам!", + "464": "В момент набора этой строки кое-кто с трудом попадал по клавишам!", + "488": "Несколько слов в этой строке требуется исправить.", + "489": "Несколько слов в этой строке требуется исправить.", + "515": "Окончание этой строки нужно исправить через команду c$.", + "516": "Окончание этой строки нужно исправить через команду c$.", + "594": -1, + "613": -1, + "639": "Я увожу к отверженным селеньям, я увожу сквозь вековечный стон, я увожу к забытым поколеньям.", + "867": -1, + "872": -1, + "893": "На этой строке вы можете попрактиковаться в добавлении текста.", + "894": "На этой строке вы можете попрактиковаться в добавлении текста.", + "915": "При сложении числа 123 с числом 456 сумма будет 579.", + "916": "При сложении числа 123 с числом 456 сумма будет 579.", + "945": "а) Это первый пункт.", + "946": "б) Это второй пункт." + } +} diff --git a/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor b/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..caf58afbc332fdf41453d5ab3915464be761b643 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor @@ -0,0 +1,339 @@ +# ДОБРО ПОЖАЛОВАТЬ НА ЗАНЯТИЯ ПО РЕДАКТОРУ Vim + +# ГЛАВА ВТОРАЯ + + Что‐то неожиданное и непонятное? + Если это ваше первое знакомство с редактором Vim и вы планировали начать + с вводной главы учебника, не расстраивайтесь и сделайте вот что. + Наберите в командной строке редактора Vim следующую команду +~~~ cmd + :Tutor vim-01-beginner +~~~ + Или просто откройте по ссылке [первую главу](@tutor:vim-01-beginner) учебника. + + Приблизительное время, необходимое для изучения второй главы учебника, + составляет около 8–10 минут, и зависит от того, сколько времени вы посвятите + выполнению заданий. + + +# Урок 2.1.1. ОСВОЕНИЕ ТЕКСТОВЫХ ОБЪЕКТОВ + +** Точечные операции с логическими частями текста используя текстовые объекты ** + + 1. Попрактикуйтесь в аккуратной работе со словами: + - Поместите каретку на любое слово в строке помеченной ✓ + - Наберите `diw`{normal}, чтобы удалить ТОЛЬКО слово + (слово без окружающих пробелов) + - Наберите `daw`{normal}, чтобы удалить СЛОВО (включая конечные пробелы) + - Попробуйте другие операторы: `ciw`{normal} (изменить), + `yiw`{normal} (копировать), `gqiw`{normal} (форматировать) + +Потренируйтесь здесь на словах: «Vim'овский», (text_object) и 'мощный'. + + 2. Работа с содержимым скобок: + - Поместите каретку внутри любой пары () {} [] <> в строке помеченной ✓ + - Наберите `di(`{normal} или `dib`{normal} + (удалить всё, что внутри круглых скобок) + - Наберите `da(`{normal} или `dab`{normal} + (удалить внутри круглых скобок и сами скобки) + - Попробуйте то же самое с `i"`{normal} и `a"`{normal} для машинописных + кавычек или `it`{normal} и `at`{normal} для тегов HTML и XML. + +Примеры: {фигурные}, [прямоугольные], <угловые>, (круглые) и "quoted". + + 3. Операции с абзацами и предложениями: + - Наберите `dip`{normal} для удаления ТОЛЬКО абзаца + (каретка может быть в любом месте абзаца) + - Наберите `vap`{normal} для визуального выделения всего абзаца + - Попробуйте `das`{normal} для удаления предложения + (работает при наличии знаков препинания .!? ) + + 4. Расширенные комбинации: + - `ciwnew`{normal} — изменить текущее слово на «new» + - `ciw"-"`{normal} — обернуть всю строку в кавычки + - `gUit`{normal} — преобразовать внутреннее содержимое HTML-тега в верхний + регистр + - `va"p`{normal} — выделить текст в кавычках и вставить поверх него + +Итоговое задание: (Измените "этот" текст) [применив {различные} операции]< + + +# Урок 2.1.2. ИМЕНОВАННЫЕ РЕГИСТРЫ В РЕДАКТОРЕ Vim + +** Копирование с сохранением двух разных слов и последующая их вставка в текст ** + + 1. Переместите каретку к строке помеченной ✓ + + 2. Установите каретку на любом символе слова «Эдуард» и наберите команду + `"ayiw`{normal} + +Эта команда означает следующее: + *в регистр(") с названием(a) скопировать(y) только(i) слово(w)* + + 3. Сдвиньте каретку вперёд на слово «печенье» + (это можно сделать одним из следующих способов: + `fп`{normal} или `3fч`{normal}, или `$`{normal}, или `/пе`{normal}) + и наберите команду + `"byiw`{normal} + + 4. Переместите каретку на любой символ слова «Виктор» и наберите на клавиатуре + `ciwa`{normal} + +Эта команда означает следующее: + *изменить(c) только(i) слово(w) на <содержимое регистра(r)> с названием(a)* + + 5. Установите каретку на любой символ слова «тортов» и наберите + `ciwb`{normal} + +а) Отныне Эдуард будет отвечать за раздачу печенья +б) Таким образом Виктор имеет единоличные права по распределению тортов + +**Примечание.** + Регистры можно использовать также и для вырезания текста, например, + по команде `"sdiw`{normal} будет выполнено удаление слова под кареткой + в регистр с названием «s». + +Разделы документации: + [регистры](registers) + [именованные регистры](quote_alpha) + [перемещение](text-objects) + [CTRL-R](i_CTRL-R) + + +# Урок 2.1.3. РЕГИСТР РЕЗУЛЬТАТА ВЫЧИСЛЕНИЙ + +** Вставка результатов вычислений напрямую в текст ** + + 1. Переместите каретку к строке помеченной ✗ + + 2. Установите каретку на любой цифре приведённого числа + + 3. Наберите на клавиатуре `ciw=60*60*24`{normal} ``{normal} + + 4. Переместите каретку в конец следующей строки, переключите редактор в режим + вставки, и добавьте сегодняшнюю дату с помощью следующей команды + `=`{normal}`system('date')`{vim} ``{normal} + +Примечание. + Результат вызова функции `system()`{vim} зависит от текущей операционной + системы, например, в ОС Windows необходимо использовать такую команду + `system('date /t')`{vim} или `:r!date /t`{vim} + +Правильно ли я помню, что в сутках 84600 секунд? +Сегодняшняя дата + +Примечание. + Тот же результат можно получить с помощью такой команды + `:pu=`{normal}`system('date')`{vim} или более короткой команды `:r!date`{vim} + +Разделы документации: + [регистр результата вычислений](quote=) + + +# Урок 2.1.4. НУМЕРОВАННЫЕ РЕГИСТРЫ В РЕДАКТОРЕ Vim + +** Как команды `yy`{normal} и `dd`{normal} влияют на содержимое регистров ** + + 1. Переместите каретку к строке помеченной ✓ + + 2. Скопируйте строку, начинающуюся с цифры 0, и проверьте состояние регистров + с помощью команды `:reg`{vim} ``{normal} + + 3. Удалите строку, начинающуюся с цифры 0, с помощью команды `"cdd`{normal} + и ещё раз проверьте состояние регистров (где будет строка, начинающаяся + с цифры 0?) + + 4. Продолжайте удалять все последующие нумерованные строки, проверяя состояние + регистров после каждой операции. + +**Примечание.** + В ходе этих действий вы заметите, что ранее удалённые строки смещаются вниз + по мере того, как новые удалённые строки добавляются в перечень регистров. + + 5. Теперь вставьте содержимое регистров в следующем порядке: c, 7, 4, 8, 2. + То есть наберите команды `"cp`{normal}, `"7p`{normal} и так далее. + +0. Здесь +9. шататься +8. секретное +7. будет +6. на +5. шесте +4. это +3. войны +2. послание +1. наградой + + +**Примечание.** + Целые строки, удалённые по команде `dd`{normal}, дольше сохраняются + в нумерованных регистрах, чем строки, которые были скопированы или когда + с оператором удаления указывается объект текста для перемещения каретки. + +Разделы документации: + [нумерованные регистры](quote_number) + + +# Урок 2.1.5. СПЕЦИАЛЬНЫЕ РЕГИСТРЫ + +** Применение регистров буфера обмена и «чёрная дыра» для расширенной правки ** + + Примечание. + Для использования системного буфера обмена в системе Linux требуются + библиотеки X11 или Wayland, и сам редактор Vim должен быть скомпилирован + с включённым компонентом «+clipboard» (обычно это максимальная версия). + Это можно проверить с помощью следующих команд редактора Vim: + `:version`{vim} и `:echo has('clipboard_working')`{vim} + + 1. Регистры буфера обмена `+`{normal} и `*`{normal}: + - `"+y`{normal} — копирование в системный буфер обмена + (например, по команде `"+yy`{normal} будет скопирована текущая строка) + - `"+p`{normal} — вставка из системного буфера обмена + - `"*`{normal} — основной выбор в X11 (средняя кнопка «мыши»), + а `"+`{normal} — буфер обмена + +"+yy в этой строке, затем вставьте в другое приложение по Ctrl+V или Cmd+V + + 2. Регистр «чёрная дыра» `_`{normal} стирает текст: + - `"_daw`{normal} — сотрёт слово без сохранения в регистре + - Полезно, когда вы не хотите перезаписывать регистр по умолчанию `"`{normal} + - Обратите внимание, что здесь используется текстовый объект «a Word», + описанный в предыдущем уроке + - `"_dd`{normal} — сотрёт строку без сохранения + - `"_dap`{normal} — сотрёт абзац без сохранения + - Комбинируйте со счётчиками: `3"_dw`{normal} + +"_diw на любом слове, чтобы удалить его, не затрагивая историю копирования + + 3. Совместите с визуальным выделением: + - Выделите текст с помощью , a затем `"+y`{normal} + - Чтобы вставить из буфера обмена в режиме вставки — `+`{normal} + - Попробуйте открыть другое приложение и вставить из системного буфера обмена + + 4. Запомните: + - Регистры буфера обмена доступны между разными экземплярами редактора Vim + - Регистр буфера обмена не всегда работает + - Регистр «чёрная дыра» предотвращает случайную перезапись других регистров + - Регистр `"`{normal} по-прежнему доступен для копирования и вставки + - Именованные регистры (a-z) остаются частными для каждой сессии Vim + + 5. Устранение неполадок с буфером обмена: + - Проверьте доступность с помощью команды + `:echo has('clipboard_working')`{vim} + - При выводе 1 — означает доступно, 0 — означает, что компонент не включен + - В системе Linux может потребоваться пакет vim-gtk или vim-x11 + (посмотрите вывод команды `:version`{vim}) + + +# Урок 2.1.6. ИЗЯЩЕСТВО ЗАКЛАДОК + +** Избегайте действий, свойственных для дятлокодеров ** + +**Примечание.** + При написании программ часто возникает необходимость перемещения больших + фрагментов кода. Приём, приведённый далее, поможет избежать подсчёта номеров + строк, требуемых для операций вроде `"a147d`{normal} или `:945,1091d a`{vim}, + или даже хуже — `i=1091-935`{normal}, как первое действие. + + 1. Переместите каретку к строке помеченной ✓ + + 2. Установите каретку на следующую строку, где начинается описание функции, + и поставьте закладку, воспользовавшись командой `ma`{normal} + +**Примечание.** + Неважно где будет находиться каретка в этой строке. + + 3. С помощью следующей команды `$%`{normal} установите каретку на последний + символ в этой строке с последующим перемещением на окончание блока кода + + 4. Удалите весь это блок кода в регистр с названием «a» с помощью команды + `"ad'a`{normal} + +Эта команда означает следующее: + *в регистр(") с названием (a) поместить удалённые строки от позиции каретки + до строки, в которой установлена закладка(') с названием (a)* + + 5. Вставьте удалённый блок между символами BBB и CCC с помощь команды + `"ap`{normal} + +~~~ cmd +AAA +function ItGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // таксономия нашей функции изменилась, и её текущее положение больше + // не имеет привязки к алфавитному порядку + + // а теперь представьте, что здесь сотни строк кода + + // было бы глупо искать начальную и конечную строку этого блока кода, + // чтобы записывать или запоминать номер строки для каждой из них +} +BBB +CCC +~~~ + +**Примечание.** + Пространство именования закладок и регистров не пересекаются между собой, + поэтому регистр «a» полностью независим от закладки с таким же названием «a». + Это правило не распространяется на регистры и макросы. + +Разделы документации: + [закладки](marks) + [перемещение к закладкам](mark-motions) (различие между \` и ') + + +# РЕЗЮМЕ УРОКА 2.1 + + 1. Текстовые объекты обеспечивают точное редактирование: + - `iw`{normal} или `aw`{normal} — только или включая слово + - `i[`{normal} или `a[`{normal} — внутри или включая скобки + - `i"`{normal} или `a"`{normal} — внутри или включая кавычки + - `it`{normal} или `at`{normal} — внутри или включая теги + - `ip`{normal} или `ap`{normal} — только или включая абзаца + - `is`{normal} или `as`{normal} — только или включая предложения + + 2. Чтобы сохранить (при удалении или копировании) текст для последующей + вставки, используйте имеющиеся 26 именованных регистра (a-z). + 3. Чтобы скопировать целое слово при нахождении каретки на любом символе + в этом слове, воспользуйтесь командой `yiw`{normal} + 4. Чтобы изменить целое слово при нахождении каретки на любом символе в этом + слове, воспользуйтесь командой `ciw`{normal} + 5. Чтобы в режиме вставки вставить текст непосредственно из регистра, + воспользуйтесь командой `a`{normal} + + 6. Чтобы в режиме вставки вставить результат вычисления простых математических + операций, воспользуйтесь командой `=60*60`{normal} + 7. Чтобы в режиме вставки вставить результат выполнения команд системы, + воспользуйтесь командой `=`{normal}`system('ls -l')`{vim} + + 8. Чтобы просмотреть содержимое регистров, воспользуйтесь командой `:reg`{vim} + 9. Учитывайте распределение удалённых целиком строк по команде `dd`{normal} — + это нумерованные регистры в порядке убывания, т. е. от 1 до 9. + Помните, что в нумерованных регистрах дольше хранятся те строки, которые + были удалены целиком, в отличие от любых других операций + 10. Учитывайте, что в нумерованных регистрах кратковременно сохраняется всё + что скопировано. + + 11. Чтобы установить закладку в режиме команд, воспользуйтесь командой + `m[a-zA-Z0-9]`{normal} + 12. Чтобы переместить каретку на строку в которой установлена закладка, + воспользуйтесь командой `'`{normal} + + 13. Специальные регистры: + - `"+`{normal} и `"*`{normal} — системный буфер обмена (зависит от ОС) + - `"_`{normal} — «чёрная дыра» (стирание удалённого или скопированного текста) + - `"=`{normal} — регистр результата вычислений + - `"-`{normal} — регистр малых удалений + + +# ЗАКЛЮЧЕНИЕ + + На этом пока заканчивается вторая глава учебника по редактору Vim. + Работа над этой главой будет продолжена. + + Вторая глава учебника была написана Полом Д. Паркером (Paul D. Parker). + и Кристианом Брабандт (Christian Brabandt). + + Restorer, перевод на русский язык, 2025, restorer@mail2k.ru diff --git a/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..1bf6a981920974164cdd4d80c1923a9e721e8807 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/ru/vim-02-beginner.tutor.json @@ -0,0 +1,15 @@ +{ + "expect": { + "31": -1, + "42": -1, + "58": -1, + "88": -1, + "89": "б) Таким образом Эдуард имеет единоличные права по распределению печенья", + "122": "Правильно ли я помню, что в сутках 86400 секунд?", + "123": -1, + "156": -1, + "195": -1, + "206": -1, + "260": -1 + } +} diff --git a/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor b/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..e1ec335f49a15b2f9f27d79878e3ac02e630190b --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor @@ -0,0 +1,1009 @@ +# Добродошли у VIM приручник + +# ПРВО ПОГЛАВЉЕ + +Vim је моћан едитор са много команди, сувише да бисмо их овде све описали. +Приручник је замишљен тако да опише довољан број команди помоћу којих Vim можете +лагодно користите као едитор опште намене. Врло је ВАЖНО запамтити да је овај +приручник прилагођен за учење употребом. То значи да вежбе морате урадити да би +их научили како треба. Ако само читате текст, ускоро ћете заборавити оно што је +најважније! + +За сада, ако је Caps Lock укључен ИСКЉУЧИТЕ га. Притисните тастер `j`{normal} довољно пута +тако да цела лекција 0 стане на екран. + +# Лекција 0 + +НАПОМЕНА: команде у лекцијама ће мењати текст, али те измене се неће чувати. +Не брините ако забрљате ствари; просто упамтите да ће притисак на []() па +онда на [u](u) да поништи последњу измену. + +Овај приручник је интерактиван и постоји неколико ствари које треба да знате. +- На линковима као што је [овај](holy-grail ) притисните []() и отвориће се одређени + одељак помоћи. +- Или једноставно притисните [K](K) на било којој речи да пронађете њену + документацију! +- Понекад ће бити потребно да измените линију текста као што је +ова овде +Када извршите исправне измене, знак ✗ са леве стране ће се променити у ✓. +Већ видим како схватате колико је Vim опасан. ;) +На другим местима ће се од вас затражити да извршите команду (то ћу да објасним +касније): +~~~ cmd + :help +~~~ +или да притиснете низ тастера +~~~ normal + 0fd3wP$P +~~~ + +Текст унутар < и > (као ``{normal}) описује тастер који треба да се +притисне, а не текст који се куца. + +А сада, пређите на наредну лекцију (употребите тастер `j`{normal} да скролујете +наниже). + +# Лекција 1.1: ПОМЕРАЊЕ КУРСОРА + +** За померање курсора, притискајте тастере `h`, `j`, `k`, `l` како је приказано. ** + + ↑ + k Савет: тастер `h`{normal} је са леве стране и помера курсор у лево. + ← h l → тастер `l`{normal} је са десне стране и помера курсор у десно. + j тастер `j`{normal} изгледа као стрелица наниже. + ↓ + + 1. Померајте курсор по екрану док се не навикнете на команде. + + 2. Притисните тастер (`j`{normal}) док не почне да се понавља. + Сада знате како да дођете до наредне лекције. + + 3. Користећи тастер наниже, пређите на лекцију 1.2. + +НАПОМЕНА: ако било када не будете сигурни у то шта сете управо откуцали, + притисните да пређете у Нормални режим. Па затим поново + откуцајте команду коју сте хтели. + +НАПОМЕНА: курсорске стрелице би такође требало да раде. Али ако користите + тастере hjkl, једном када се навикнете, моћи ћете да се крећете много + брже. Заиста! + +# Лекција 1.2: ИЗЛАЗАК ИЗ ПРОГРАМА VIM + +!! НАПОМЕНА: пре извођења било ког корака, обавезно прочитајте целу лекцију !! + + 1. Притисните тастер (да се сигурно нађете у Нормалном режиму). + + 2. Откуцајте: + + `:q!`{vim} `<Ентер>`{normal}. + + Овим се напушта едитор, уз ОДБАЦИВАЊЕ свих измена које сте направили. + + 3. Отворите vim и вратите се назад овде тако што ћете извршити команду која + вас је и довела у овај приручник. То би могло да буде: + + :Tutor <Ентер> + + 4. Ако сте запамтили ове кораке, извршите их редом од 1 до 3 тако да изађете из + едитора и поново уђете у њега. + +НАПОМЕНА: [:q!](:q) <Ентер> ће да одбаци све измене које сте направили. За неколико + лекција ћете научити како да сачувате измене. + + 5. Померите курсор наниже на лекцију 1.3. + +# Лекција 1.3: УРЕЂИВАЊЕ ТЕКСТА: БРИСАЊЕ + +** Притисните `x`{normal} за брисање карактера под курсором. ** + + 1. Померите курсор на линију испод означену са ✗. + + 2. Да бисте исправили грешке, померајте курсор све док се не нађе на слову које + треба да се избрише. + + 3. Притисните [тастер x](x) да обришете нежељени карактер. + + 4. Понављајте кораке 2 до 4 све док реченица није исправна. + +РРРибаа рииби гризззе ррреепп. + + 5. Сада када је ред исправљен, пређите на лекцију 1.4. + +НАПОМЕНА: док користите приручник, немојте учити команде напамет, већ вежбајте + њихову примену. + +# Лекција 1.4: УРЕЂИВАЊЕ ТЕКСТА: УМЕТАЊЕ + +** Притисните `i`{normal} да уметнете текст. ** + + 1. Померите курсор на прву линију испод означену са ✗. + + 2. Да бисте текст првог реда исправили тако да буде исти као текст у другом + реду, поставите курсор на први карактер ИЗА места на које текст треба да се + уметне. + + 3. Притисните `i`{normal} и откуцајте потребно. + + 4. Када исправите једну грешку, притисните ``{normal} да се вратите у + Нормални режим. Понављајте кораке 2 до 4 да исправите целу реченицу. + +До тека неоје в ред. +Део текста недостаје из овог реда. + + 5. Када осетите да поуздано умећете текст, пређите на лекцију 1.5. + +# Лекција 1.5: УРЕЂИВАЊЕ ТЕКСТА: НАДОВЕЗИВАЊЕ + +** Притисните `A`{normal} за надовезивање текста. ** + + 1. Померите курсор на прву линију испод означену са ✗. Није важно на ком + карактеру се курсор налази унутар тог реда. + + 2. Притисните [A](A) и откуцајте текст који недостаје. + + 3. Када надовежете текст притисните ``{normal} да се вратите у Нормални + режим. + + 4. Померите курсор на другу линију означену са ✗ и понављајте кораке 2 и 3 да + исправите реченицу. + +Део текста недостаје у +Део текста недостаје у овом реду. +Део текста недостаје +Део текста недостаје и овде. + + 5. Када осетите да поуздано надовезујете текст, пређите на лекцију 1.6. + +# Лекција 1.6: УРЕЂИВАЊЕ ФАЈЛА + +** Користите `:wq`{vim} да сачувате фајл и изађете из едитора. ** + +!! НАПОМЕНА: пре извођења било ког корака, обавезно прочитајте целу лекцију !! + + 1. Изађите из приручника као у лекцији 1.2: `:q!`{vim} + Или, ако имате приступ другом терминалу, ово што следи изведите у њему. + + 2. На одзиву љуске откуцајте следећу команду: +~~~ sh + $ vim tutor +~~~ + 'vim' је команда која покреће Vim едитор, 'tutor' је име фајла који желите + да уређујете. Употребите фајл који може да се мења. + + 3. Уметните и обришите текст онако како сте научили у претходним лекцијама. + + 4. Сачувајте фајл са изменама и напустите Vim са: +~~~ cmd + :wq +~~~ + Приметите да је потребно да притиснете `<Ентер>` да би се извршила команда. + + 5. Ако сте сте напустили vimtutor у кораку 1, покрените га поново и пређите на + резиме који следи. + + 6. Када прочитате и у потпуности разумете кораке изнад: извршите их. + +# РЕЗИМЕ лекције 1 + + 1. Курсор се помера или стрелицама или тастерима hjkl. + h (лево) j (десно) k (горе) l (доле) + + 2. Да бисте покренули Vim из одзива љуске, откуцајте: + +~~~ sh + $ vim ИМЕФАЈЛА +~~~ + + 3. Да напустите Vim откуцајте: ``{normal} `:q!`{vim} `<Ентер>`{normal} да + одбаците све измене. + ИЛИ откуцајте: ``{normal} `:wq`{vim} `<Ентер>`{normal} да + сачувате измене. + + 4. Да бисте обрисали карактер на курсору откуцајте: `x`{normal} + + 5. Да уметнете или надовежете текст, откуцајте: + `i`{normal} уметните текст ``{normal} умеће текст испред курсора. + `A`{normal} надовежите текст ``{normal} надовезује на крај реда. + +НАПОМЕНА: притисак на ``{normal} вас поставља у Нормални режим или отказује + нежељену или делимично извршену команду. + +Наставите сада са лекцијом 2. + +# Лекција 2.1: КОМАНДЕ БРИСАЊА + +** Откуцајте `dw`{normal} да обришете реч. ** + + 1. Притисните ``{normal} да се сигурно нађете у Нормалном режиму. + + 2. Померите курсор на линију испод, обележену са ✗. + + 3. Померите курсор на почетак речи која треба да се обрише. + + 4. Откуцајте [d](d)[w](w) да бисте уклонили реч. + +Неке речи смешно не припадају на папир овој реченици. + + 5. Понављајте кораке 3 и 4 све док не исправите реченицу, па пређите на лекцију + 2.2. + +# Лекција 2.2: ЈОШ КОМАНДИ БРИСАЊА + +** Откуцајте `d$`{normal} да обришете све до краја реда. ** + + 1. Притисните ``{normal} да се сигурно нађете у Нормалном режиму. + + 2. Померите курсор на линију испод, обележену са ✗. + + 3. Померите курсор на крај исправног реда (ПОСЛЕ прве . ). + + 4. Откуцајте `d$`{normal} да обришете све до краја реда. + +Неко је унео крај овог реда двапут. крај овог реда двапут. + + 5. Пређите на лекцију 2.3 у којој следи подробније објашњење. + +# Лекција 2.3: О ОПЕРАТОРИМА И ПОКРЕТИМА + +Многе команде које мењају текст се састоје од [оператора](operator) и [покрета](motion). +Облик команде брисања са [d](d) оператором брисања је следећи: + + d покрет + + При чему је: + d - оператор брисања. + покрет - оно на чему ће оператор да делује (наведено испод). + + Кратак списак покрета: + [w](w) - до почетка наредне речи, НЕ УКЉУЧУЈУЋИ њен први карактер. + [e](e) - до краја текуће речи, УКЉУЧУЈУЋИ последњи карактер. + [$]($) - до краја линије, УКЉУЧУЈУЋИ последњи карактер. + + Дакле, куцање `de`{normal} ће да обрише текст од курсора до краја речи. + +НАПОМЕНА: притиском само на тастер покрета док сте у Нормалном режиму, без + оператора, курсор се помера на начин који одговара том покрету. + +# Лекција 2.4: КОРИШЋЕЊЕ БРОЈАЊА ЗА ПОКРЕТ + +** Уношење неког броја пре покрета, он се извршава наведени број пута. ** + + 1. Поставите курсор на почетак доњег реда означеног са ✓. + + 2. Откуцајте `2w`{normal} да померите курсор две речи унапред. + + 3. Откуцајте `3e`{normal} да омерите курсор на крај треће наредне речи. + + 4. Откуцајте `0`{normal} ([нулу](0)) да померите курсор на почетак реда. + + 5. Поновите кораке 2 и 3 са неким другим бројевима. + +Реченица са речима по којој можете померати курсор. + + 6. Пређите на лекцију 2.5. + +# Лекција 2.5: КОРИШЋЕЊЕ БРОЈАЊА ЗА ВЕЋЕ БРИСАЊЕ + +** Уношење неког броја с оператором понавља оператор тај број пута. ** + +Комбинацијом оператора брисања и покрета поменутог изнад, можете унети број +понављања пре покрета да бисте обрисали више: + d број покрет + + 1. Померите курсор на прво слово речи исписане ВЕЛИКИМ СЛОВИМА у реду + означеном са ✗. + + 2. Откуцајте `d2w`{normal} да обришете две речи са ВЕЛИКИМ СЛОВИМА + + 3. Понављајте кораке 1 и 2 са различитим бројем понављања тако да једном + командом обришете узастопне речи са ВЕЛИКИМ СЛОВИМА + +Овај АБВГД ЂЕЖ ред ЗИЈК ЛЉ МНЊ ОП речи је РСТ ЋУФХЦ исправљен. + +# Лекција 2.6: ОПЕРАЦИЈЕ НАД РЕДОВИМА + +** Откуцајте `dd`{normal} да обришете цео ред. ** + +Због учесталости брисања целих редова, аутори програма Vi су дошли до закључка +да је лакше брисати редове ако се d просто откуца двапут. + + 1. Померите курсор на други ред у доњој строфи. + 2. Откуцајте [dd](dd) да обришете ред. + 3. Сада се померите на четврти ред. + 4. Откуцајте `2dd`{normal} да обришете два реда. + +1) Седло ми је од мараме, +2) блато на све стране, +3) узда од канапа, +4) ауто ми је овде, +5) сатови показују време, +6) а бич ми је од очина +7) пребијена штапа. + +# Лекција 2.7: КОМАНДА ЗА ПОНИШТАВАЊЕ + +** Притисните `u`{normal} да поништите последње команде, `U`{normal} да исправите цео ред. ** + + 1. Померите курсор на линију испод, означену са ✗ и поставите га на прву + грешку. + 2. Откуцајте `x`{normal} да обришете први нежељени карактер. + 3. Сада откуцајте `u`{normal} да поништите последњу извршену команду. + 4. Овај пут исправите све грешке у реду користећи команду `x`{normal}. + 5. Онда откуцајте велико `U`{normal} да ред вратите у првобитно стање. + 6. Онда неколико пута откуцајте `u`{normal} да поништите команду `U`{normal} и претходне команде. + 7. Сада откуцајте ``{normal} (Control + R) неколико пута да вратите измене + (поништите поништавања). + +Ииисправите грешке уу оввом реду ии пооништитеее их. + + 8. Ово су веома корисне команде. Пређите сада на резиме лекције 2. + +# РЕЗИМЕ лекције 2 + + 1. Да обришете од курсора до наредне речи, откуцајте: `dw`{normal} + 2. Да обришете од курсора до краја реда, откуцајте: `d$`{normal} + 3. Да обришете цео ред, откуцајте: `dd`{normal} + 4. Да поновите покрет, унесите број испред њега: `2w`{normal} + + 5. Облик команде измене: + оператор [број] покрет + где је: + оператор - представља радњу, рецимо [d](d) за брисање + [број] - необавезан број понављања покрета + покрет - кретање преко текста над којем се ради, на пример: + [w](w) (реч), + [$]($) (до краја реда), итд. + + 6. Да се померите на почетак реда, употребите нулу: [0](0) + + 7. Да поништите претходне акције, откуцајте: `u`{normal} (мало u) + Да поништите све измене у реду, откуцајте: `U`{normal} (велико U) + Да вратите измене, откуцајте: ``{normal} + +# Лекција 3.1: КОМАНДА ПОСТАВЉАЊА + +** Откуцајте `p`{normal} да поставите претходно обрисани текст иза курсора. ** + + 1. Померите курсор на први ✓ ред испод. + + 2. Откуцајте `dd`{normal} да обришете ред и да га сместите у Vim регистар. + + 3. Померите курсор на ред c), ИЗНАД места где треба поставити избрисани ред. + + 4. Откуцајте `p`{normal} да поставите ред испод курсора. + + 5. Понављајте кораке 2 до 4 да поставите све линије у правилном редоследу. + +г) пребијена штапа. +б) узда од канапа, +в) а бич ми је од очина +а) Седло ми је од мараме, + +# Лекција 3.2: КОМАНДА ЗАМЕНЕ + +** Откуцајте `rx`{normal} да карактер испод курсора замените са x. ** + + 1. Померите курсор на први наредни ред обележен са ✗. + + 2. Померите курсор тако да се нађе на првој грешки. + + 3. Откуцајте `r`{normal} па затим карактер који би ту требало да буде. + + 4. Понављајте кораке 2 и 3 све док први ред не постане исти као други. + +Кеди ју овеј ред угашен, нако је протресао пусташне тестере! +Када је овај ред уношен, неко је притискао погрешне тастере! + + 5. Сада пређите на лекцију 3.3. + +НАПОМЕНА: упамтите да је потребно да учите вежбањем, а не памћењем. + +# Лекција 3.3: ОПЕРАТОР ИЗМЕНЕ + +** Да измените текст до краја речи, откуцајте `ce`{normal}. ** + + 1. Померите курсор на први следећи ред означен са ✗. + + 2. Поставите курсор на „а” у „ракдур”. + + 3. Откуцајте `ce`{normal} и исправите реч (у овом случају, откуцајте „ед”). + + 4. Притисните ``{normal} и померите курсор на наредни карактер који треба + исправити. + + 5. Понављајте кораке 3 и 4 све док прва реченица не буде иста као друга. + +Овај ракдур има неколико рејга које трефља испрпикати операгром измене. +Овај ред има неколико речи које треба исправити оператором измене. + +Уочите да [c](c)e брише реч и поставља едитор у режим Уметање. + +# Лекција 3.4: ЈОШ ИЗМЕНА УПОТРЕБОМ `c`{normal} + +** Оператор измене се користи са истим покретима као и оператор брисања. ** + + 1. Оператор измене функционише на исти начин као и оператор брисања. Облик је + следећи: + + c [број] покрет + + 2. Покрети су исти, рецимо `w`{normal} (реч) и `$`{normal} (крај реда). + + 3. Померите курсор на први следећи ред означен са ✗. + + 4. Померите курсор на прву грешку. + + 5. Откуцајте `c$`{normal} и унесите остатак реда тако да буде исти као други + ред, па притисните ``{normal}. + +Крај овог реда треба изменити тако да изгледа као ред испод. +Крај овог реда треба исправити коришћењем `c$`{normal} команде. + +НАПОМЕНА: за исправљање грешака током куцања, можете користити тастер брисања у + лево. + +# РЕЗИМЕ лекције 3 + + 1. За постављање текста који сте управо обрисали, притисните [p](p). Ово + обрисани текст поставља непосредно ИЗА курсора (ако је био обрисан један + или више редова, садржај ће доћи на ред испод курсора). + + 2. Да замените карактер под курсором, откуцајте [r](r) па затим карактер који + желите на том месту. + + 3. [Оператор измене](c) вам дозвољава промену текста од курсора до позиције на + којој се завршава покрет. Примера ради, откуцајте `ce`{normal} да измените + текст од позиције курсора до краја речи, `c$`{normal} да измените до краја + реда. + + 4. Облик операције измене је: + + c [број] покрет + +Пређите сада на наредну лекцију. + +# Лекција 4.1: ПОЗИЦИЈА КУРСОРА И СТАТУС ФАЈЛА + +** Притисните ``{normal} да вам се прикаже позиција курсора у фајлу и + статус фајла. Притисните `G`{normal} да се померите на неки ред у фајлу. ** + +НАПОМЕНА: прочитајте целу лекцију пре извођења било ког корака!! + + 1. Држите тастер ``{normal} и притисните `g`{normal}. Ово зовемо ``{normal}. Едитор ће на дну + екрана исписати поруку са именом фајла и позицијом курсора у фајлу. + Запамтите број реда за корак 3. + +НАПОМЕНА: у доњем десном углу може се видети позиција курсора ако је укључена + опција ['ruler']('ruler'). + + 2. Притисните [G](G) да се померите на крај фајла. + Откуцајте [gg](gg) да се преместите на почетак фајла. + + 3. Откуцајте број реда на коме сте били малопре, па онда `G`{normal}. Курсор ће се + вратити на ред у којем је био када сте притиснули ``{normal}. + + 4. Ако се осећате спремним, извршите кораке 1 до 3. + +# Лекција 4.2: КОМАНДА ПРЕТРАЖИВАЊА + +** Откуцајте `/`{normal} па израз који желите да пронађете. ** + + 1. У Нормалном режиму откуцајте карактер `/`{normal}. Приметите да се он и + курсор појављују на дну екрана као и `:`{normal} команда. + + 2. Сада откуцајте ’грррешка’ ``{normal}. Ово је реч коју желите да + пронађете. + + 3. За поновно тражење истог израза, једноставно притисните [n](n). + За тражење истог израза у супротном смеру, притисните [N](N). + + 4. За тражење израза унатраг, употребите [?](?) уместо `/`{normal}. + + 5. За повратак на претходну позицију са које сте скочили, притисните ``{normal} + (држите притиснут тастер ``{normal} док притискате слово `o`{normal}). Понављајте + за раније позиције. ``{normal} иде унапред. + +„грррешка” је погрешно; уместо грррешка треба да стоји грешка. + +НАПОМЕНА: ако претрага дође до краја текста, тражење ће се наставити од његовог + почетка, осим ако је опција ['wrapscan']('wrapscan') искључена. + +# Лекција 4.3: ТРАЖЕЊЕ ПАРА ЗАГРАДЕ + +** Откуцајте `%`{normal} да пронађете пар ),], или }. ** + + 1. Поставите курсор на било коју (, [, или { отворену заграду у реду испод + означеном са ✓. + + 2. Откуцајте сада карактер [%](%). + + 3. Курсор ће се померити на одговарајућу затворену заграду. + + 4. Откуцајте `%`{normal} да померите курсор на другу заграду пара. + + 5. Померите курсор на неку од осталих (,),[,],{ or } и проверите шта ради `%`{normal}. + +Ред ( тестирања обичних ( [ угластих ] и { витичастих } заграда.)) + +НАПОМЕНА: ово је врло корисно у исправљању кода са распареним заградама! + +# Лекција 4.4: КОМАНДА ЗАМЕНЕ + +** Откуцајте `:s/старо/ново/g` да замените „старо” са „ново”. ** + + 1. Померите курсор на ред испод означен са ✗. + + 2. Откуцајте +~~~ cmd + :s/рди/ри/ +~~~ + + ПРИМЕТИТЕ да је команда [:s](:s) заменила само прво појављивање „рди” у реду. + + 3. Откуцајте сада +~~~ cmd + :s/рди/ри/g +~~~ + + Додавање [заставице](:s_flags) g значи да ће команда функционисати у целом + реду, замењујући сва појављивања „рди” у њему. + +Рдиба рдиби грдизе реп. + + 4. Да замените сва појављивања низа карактера између нека два реда, откуцајте +~~~ cmd + :#,#s/старо/ново/g +~~~ + где су #,# крајњи бројеви редова у опсегу у којем треба да се изврши + замена. + + Откуцајте +~~~ cmd + :%s/старо/ново/g +~~~ + да замените сва појављивања у целом фајлу. + + Откуцајте +~~~ cmd + :%s/старо/ново/gc +~~~ + да пронађете сва појављивања у целом фајлу, уз приказивање питања за свако + од њих, да ли извршити замену или не. + +# РЕЗИМЕ лекције 4 + + 1. ``{normal} приказује позицију курсора у тексту и статус фајла. + `G`{normal} помера курсор на крај фајла. + број `G`{normal} помера курсор на наведени ред. + `gg`{normal} помера курсор на први ред. + + 2. Куцањем `/`{normal} након чека следи израз, тражи се УНАПРЕД тај израз. + Куцањем `?`{normal} након чека следи израз, тражи се УНАЗАД тај израз. + Након претраге, користите `n`{normal} да пронађете наредно појављивање у + истом смеру, или `N`{normal} да га пронађете у супротном смеру. + ``{normal} вас води на раније позиције, ``{normal} на новије позиције. + + 3. Када се курсор налази на (,),[,],{, или }, куцање `%`{normal} помера курсор на њен + пар. + + 4. Да замените први израз старо у линији, откуцајте +~~~ cmd + :s/старо/ново +~~~ + Да замените сва појављивања старо са ново у линији, откуцајте +~~~ cmd + :s/старо/ново/g +~~~ + Да замените сва појављивања у опсегу редова #, откуцајте +~~~ cmd + :#,#s/старо/ново/g +~~~ + Да замените сва појављивања у целом фајлу, откуцајте +~~~ cmd + :%s/старо/ново/g +~~~ + За затражите потврду сваке замене, додајте заставицу ’c’ +~~~ cmd + :%s/старо/ново/gc +~~~ + +# Лекција 5.1: КАКО СЕ ИЗВРШАВА СПОЉНА КОМАНДА + +** Откуцајте `:!`{vim} па име спољне команде коју желите да извршите. ** + + 1. Откуцајте познату команду `:`{normal} да поставите курсор на дно екрана. + На тај начин можете да унесете команду командне-линије. + + 2. Откуцајте сада [!](!cmd) (узвичник). Ово вам омогућава да извршите било коју + спољну команду љуске. + + 3. Као пример, откуцајте „ls” након „!”, па притисните ``{normal}. + Ово ће вам приказати садржај директоријума, као да сте у одзиву љуске. + +НАПОМЕНА: На овај начин може да се изврши било која спољна команда, заједно са + аргументима. + +НАПОМЕНА: Све `:`{vim} команде морају да се заврше притиском на ``{normal}. + У даљем тексту то нећемо увек напомињати. + +# Лекција 5.2: ВИШЕ О ЧУВАЊУ ФАЈЛОВА + +** За чување измена над текстом, откуцајте `:w`{vim} ИМЕ_ФАЈЛА. ** + + 1. Откуцајте `:!ls`{vim} да видите садржај директоријума. + Већ знате да морате притиснути ``{normal} након тога. + + 2. Изаберите име фајла које још увек не постоји, нпр. TEST. + + 3. Сада откуцајте: +~~~ cmd + :w TEST +~~~ + (где је тест TEST име фајла које сте изабрали) + + 4. На овај начин чувате цео фајл (Vim тутор) под именом TEST. + Да бисте то проверили, откуцајте поново `:!ls`{vim} да погледате директоријум. + +НАПОМЕНА: Ако бисте напустили Vim и покренули га поново са `vim TEST`, фајл би + био тачна копија овог фајла у тренутку када сте га сачували. + + 5. Избришите сада фајл тако што ћете откуцати: +~~~ cmd + :!rm TEST +~~~ + +# Лекција 5.3: ЧУВАЊЕ ОЗНАЧЕНОГ ТЕКСТА + +** Да бисте сачували део фајла, откуцајте `v`{normal} покрет `:w ИМЕ_ФАЈЛА`{vim}. ** + + 1. Померите курсор на ову линију. + + 2. Притисните [v](v) и померите курсор пет редова наниже. Приметите да је текст + истакнут. + + 3. Притисните карактер `:`{normal}. Појавиће се + + :'<,'> + + на дну екрана. + + 4. Откуцајте + + `:w TEST`{vim} + + где је TEST име фајла који још увек не постоји. Проверите да заиста пише + + `:'<,'>w TEST`{vim} + + пре него што притиснете ``{normal}. + + 5. Vim ће сачувати означене редове у фајл TEST. Употребите `:!ls`{vim} да то + проверите. Не бришите га још! Користићемо га у следећој лекцији. + +НАПОМЕНА: Притисак на [v](v) покреће [Визуелни избор](visual-mode). Можете да померате курсор + наоколо и тако мењате величино изабраног текста. Затим можете да + употребите операторе над тим текстом. На пример, `d`{normal} ће да избрише + текст. + +# Лекција 5.4: УЧИТАВАЊЕ ФАЈЛОВА У ТЕКСТ + +** Да садржај фајла уметнете у текст, откуцајте `:r ИМЕ_ФАЈЛА`{vim}. ** + + 1. Поставите курсор непосредно изнад ове линије. + +НАПОМЕНА: Када извршите корак 2, видећете текст из лекције 5.3. Затим померите + курсор НАНИЖЕ да бисте поново видели ову лекцију. + + 2. Учитајте сада фајл TEST користећи команду + + `:r TEST`{vim} + + где је TEST име фајла које сте користили у претходној лекцији. Садржај + учитаног фајла је убачен испод курсора. + + 3. Да бисте потврдили да је фајл учитан, вратите курсор уназад и уочите да + постоје две копије лекције 5.3, оригинална и она из фајла. + +НАПОМЕНА: Такође можете и да учитате и излаз спољне команде. На пример, + + `:r !ls`{vim} + + учитава излаз команде `ls` и поставља га испод курсора. + +# РЕЗИМЕ лекције 5 + + 1. [:!команда](:!cmd) извршава спољну команду. + + Корисни примери: + `:!ls`{vim} - приказује садржај директоријума + `:!rm ИМЕ_ФАЈЛА`{vim} - уклања ИМЕ_ФАЈЛА + + 2. [:w](:w) ИМЕ_ФАЈЛА уписује текући Vim фајл на диск под именом + ИМЕ_ФАЈЛА. + + 3. [v](v) покрет :w ИМЕ_ФАЈЛА чува Визуелно изабране линије у фајл + ИМЕ_ФАЈЛА. + + 4. [:r](:r) ИМЕ_ФАЈЛА учитава фајл ИМЕ_ФАЈЛА са диска и поставља + његов садржај испод позиције курсора. + + 5. [:r !dir](:r!) чита излаз dir команде и поставља га испод + позиције курсора. + +# Лекција 6.1: КОМАНДА ОТВОРИ + +** Откуцајте `o`{normal} да отворите ред испод курсора и пређете у режим Уметање. ** + + 1. Померите курсор на линију испод означену са ✓. + + 2. Откуцајте мало слово `o`{normal} да [отворите](o) нови ред ИСПОД курсора и пређете + у режим Уметање. + + 3. Сада откуцајте неки текст и притисните ``{normal} да напустите режим + Уметање. + +Када притиснете `o`{normal} курсор прелази у новоотворени ред у режиму Уметање. + + 4. Да бисте линију отворили ИЗНАД курсора, уместо малог `o`{normal} откуцајте [велико O](O). + Пробајте ово у реду испод. + +Отворите ред изнад овог куцањем великог O док је курсор у овом реду. + +# Лекција 6.2: КОМАНДА НАДОВЕЗИВАЊА + +** Откуцајте `a`{normal} да уметнете текст ИЗА курсора. ** + + 1. Померите курсор на почетак следећег реда означеног са ✗. + + 2. Притискајте `e`{normal} све док се курсор не нађе на крају речи „ре”. + + 3. Откуцајте мало `a`{normal} да [append-надовежете](a) текст ИЗА курсора. + + 4. Допуните реч као што је приказано у реду испод њега. Притисните ``{normal} да + напустите режим Уметање. + + 5. Употребите `e`{normal} да се померите на наредну непотпуну реч и поновите кораке 3 + и 4. + +Овај ре омогућава ве надов текста у неком реду. +Овај ред омогућава вежбање надовезивања текста у неком реду. + +НАПОМЕНА: Команде [a](a), [i](i) и [A](A) све активирају исти режим Уметање, једина разлика + је у позицији од које се умећу нови карактери. + +# Лекција 6.3: ДРУГИ НАЧИН ЗА ЗАМЕНУ + +** Откуцајте велико `R`{normal} да замените више од једног карактера. ** + + 1. Померите курсор на први наредни ред означен са ✗. Померите курсор на + почетак првог „xxx”. + + 2. Сада притисните `R`{normal} ([велико R](R)) и откуцајте број који се налази испод, у + наредном реду, тако да замени „xxx”. + + 3. Притисните ``{normal} да напустите [режим Замена](mode-replace). Приметите да остатак реда + остаје неизмењен. + + 4. Поновите кораке да замените и друго „xxx”. + +Додавање 123 на xxx даје xxx. +Додавање 123 на 456 даје 579. + +НАПОМЕНА: Режим Замена је исти као режим Уметање, само што сваки откуцани + карактер брише постојећи карактер. + +# Лекција 6.4: КОПИРАЊЕ И НАЛЕПЉИВАЊЕ ТЕКСТА + +** Користите оператор `y`{normal} да копирате текст, а `p`{normal} да га налепите. ** + + 1. Померите курсор наниже на линију означену са ✓ и поставите курсор након „а)”. + + 2. Покрените Визуелни режим са `v`{normal} и померите курсор непосредно испред „први”. + + 3. Откуцајте `y`{normal} да [yank-тргнете](yank) (копирате) истакнути текст. + + 4. Померите курсор до краја наредног реда: `j$`{normal} + + 5. Притисните `p`{normal} да [put-поставите](put) (налепите) текст. + + 6. Притисните `a`{normal} па откуцајте „други”. Притисните ``{normal} да напустите + режим Уметање. + + 7. Употребите Визуелни режим да изаберете „ред.”, тргните га са `y`{normal}, померите + курсор на крај наредног реда са `j$`{normal} и тамо налепите текст са `p`{normal} + +а) Ово је први ред. +б) + +НАПОМЕНА: `y`{normal} можете да користите и као оператор: `yw`{normal} ће да тргне једну реч. + +# Лекција 6.5: ПОСТАВЉАЊЕ ОПЦИЈА + +** Поставите опцију тако да претрага и замена игноришу величину слова. ** + + 1. Потражите реч ’разлика’ са: `/разлика` + Поновите неколико пута притиском на `n`{normal}. + + 2. Поставите опцију 'ic' (Ignore case) тако што унесете: +~~~ cmd + :set ic +~~~ + 3. Сада поново потражите реч ’разлика’ притиском на `n`{normal}. + Уочите да се сада проналазе и Разлика и РАЗЛИКА. + + 4. Поставите опције 'hlsearch' и 'incsearch': +~~~ cmd + :set hls is +~~~ + 5. Сада откуцајте поново команду претраге и уочите шта се дешава: /разлика + + 6. Поново искључите игнорисање разлике у величини слова: +~~~ cmd + :set noic +~~~ + 7. Ако желите да промените стање опције, ставите испред „inv” испред њеног имена: +~~~ cmd + :set invic +~~~ +НАПОМЕНА: Да уклоните истицање подударања, унесите: +~~~ cmd + :nohlsearch +~~~ +НАПОМЕНА: Ако желите да се не прави разлика у величини слова само за једну + команду претраге, употребите [\c](/\c) у изразу: /игнориши\c + +# РЕЗИМЕ лекције 6 + + 1. Притисните `o`{normal} да отворите ред ИСПОД курсора и покренете режим Уметање. + Притисните `O`{normal} да отворите ред ИЗНАД курсора. + + 2. Притисните `a`{normal} да уметнете текст ИЗА курсора. + Притисните `A`{normal} да уметнете текст на крај реда. + + 3. Команда `e`{normal} помера курсор на крај речи. + + 4. Оператор `y`{normal} копира текст, `p`{normal} га налепљује. + + 5. Куцање великог `R`{normal} активира режим Замена све док се не притисне ``{normal}. + + 6. Куцање „[:set](:set) xxx” поставља опцију „xxx”. Неке од опција су: + + 'ic' 'ignorecase' не разликују се велика/мала слова током претраге + 'is' 'incsearch' приказују се делимична подударања израза претраге + 'hls' 'hlsearch' истичу се сви пронађени изрази + + Можете да користите или кратко или дуго име опције. + + 7. Ставите „no” испред имена опције да је искључите: +~~~ cmd + :set noic +~~~ + 8. Ставите „inv” да промените стање опције: +~~~ cmd + :set invic +~~~ + +# Лекција 7.1: ДОБИЈАЊЕ ПОМОЋИ + +** Користите систем директне помоћи. ** + +Vim има детаљни систем директне помоћи. За почетак, покушајте нешто од следећег: + - притисните тастер ``{normal} (ако га имате на тастатури) + - притисните тастер ``{normal} (ако га имате на тастатури) + - откуцајте + `:help`{vim} + +Прочитајте текст у прозору помоћи да сазнате начин на који помоћ ради. +Откуцајте ``{normal} да прелазите из једног прозора у други. +Откуцајте `:q`{vim} да затворите прозор помоћи. + +Помоћ о практично било којој теми можете добити додавањем аргумента команди +„:help”. Покушајте следеће (не заборавите да притиснете на крају): +~~~ cmd + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~ +# Лекција 7.2: ПРАВЉЕЊЕ СКРИПТЕ ЗА ПОКРЕТАЊЕ + +** Активирајте Vim могућности. ** + +Vim има много више могућности него Vi, али је већина њих подразумевано +искључена. Да бисте укључили још функционалности, морате да креирате „vimrc” +фајл. + + 1. Започните уређивање „vimrc” фајла. То зависи од вашег система: + за UNIX системе за Windows + `:e ~/.vimrc`{vim} `:e ~/_vimrc`{vim} + + 2. Сада учитајте садржај „vimrc” фајла за пример: + `:r $VIMRUNTIME/vimrc_example.vim`{vim} + + 3. Сачувајте фајл са: + `:w`{vim} + + Следећи пут када покренете Vim користиће се истицање синтаксе. + У овај „vimrc” фајл можете додати сва подешавања која желите. + За више информација откуцајте `:help vimrc-intro`{vim}. + +# Lesson 7.3: АУТОМАТСКО ДОВРШАВАЊЕ + +** Довршавање команде линије са ``{normal} и ``{normal}. ** + + 1. Погледајте који фајлови постоје у директоријуму: `:!ls`{vim} + + 2. Откуцајте почетак команде: `:e`{vim} + + 3. Притисните ``{normal} и Vim ће вам приказати списак команди које почињу на + „e”. + + 4. Притисните ``{normal} и Vim ће да прикаже мени са могућим довршавањима + (или да доврши подударање ако је унета команда јединствена, нпр. + „:ed``{normal}” ће се довршити на „:edit”). + + 5. Употребите ``{normal} или ``{normal} да одете на наредно подударање. + Или употребите ``{normal} или ``{normal} да одете на претходно + подударање. + + 6. Изаберите ставку `edit`{vim}. Сада можете видети да је реч `edit`{vim} + аутоматски унета у командну линију. + + 7. Сада додајте размак и почните да пишете име постојећег фајла: `:edit FIL`{vim} + + 8. Притисните ``{normal}. Vim ће да прикаже мени довршавања са листом + фајлова чије име почиње на `FIL` + +НАПОМЕНА: Довршавање функционише за многе команде. Нарочито је корисно за + `:help`{vim}. + +# РЕЗИМЕ лекције 7 + + 1. Откуцајте `:help`{vim} + или притисните ``{normal} или ``{normal} да отворите прозор помоћи. + + 2. Откуцајте `:help ТЕМА`{vim} да пронађете помоћ о ТЕМА. + + 3. Откуцајте ``{normal} да пређете у други прозор + + 4. Откуцајте `:q`{vim} да затворите прозор помоћи + + 5. Направите vimrc скрипту за покретање у којој чувате ваша омиљена подешавања. + + 6. Док се налазите у командном режиму, притисните ``{normal} да видите сва могућа + довршавања. Притисните ``{normal} да изаберете једно од њих. + +# ЗАКЉУЧАК + +Овим се завршава Прво поглавље Vim приручника. Ако желите, можете да наставите са +[Другим поглављем](@tutor:vim-02-beginner). + +Циљ овог поглавља је био кратак преглед Vim едитора, колико да вам омогући да +га релативно једноставно користите. Оно дефинитивно није потпуно, јер Vim има +много, много више команди. Консултујте помоћ често. + +На мрежи постоји много ресурса помоћу којих можете више да научите о Vim +едитору. Ево неколико: + +- *Learn Vim Progressively*: http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ +- *Learning Vim in 2014*: http://benmccormick.org/learning-vim-in-2014/ +- *Vimcasts*: http://vimcasts.org/ +- *Vim Video-Tutorials by Derek Wyatt*: http://derekwyatt.org/vim/tutorials/ +- *Learn Vimscript the Hard Way*: http://learnvimscriptthehardway.stevelosh.com/ +- *7 Habits of Effective Text Editing*: http://www.moolenaar.net/habits.html +- *vim-galore*: https://github.com/mhinz/vim-galore + +Ако вам више одговара књига, често се препоручују *Practical Vim* и наставак +*Modern Vim* аутора Дру Нила. + +Овај приручник су написали Мајкл С. Пирс и Роберт К. Вер, Колорадо рударска +школа, користећи идеје које је доставио Чарлс Смит из Колорадо државног +универзитета. И-мејл: bware@mines.colorado.edu. + +Прилагодио за Vim Брам Моленар. +Прилагодио за vim-tutor-mode Фелипе Моралес. + +Превод на српски: Иван Нејгебауер +Верзија 1.0, мај/јуни 2014. +Прилагодио и дорадио за vim-tutor-mode Иван Пешић. diff --git a/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..28bea5b7fe3ce78383d5ee996e6fc9e2083e4a49 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sr/vim-01-beginner.tutor.json @@ -0,0 +1,45 @@ +{ + "expect": { + "27": -1, + "109": "Риба риби гризе реп.", + "131": "Део текста недостаје из овог реда.", + "132": "Део текста недостаје из овог реда.", + "151": "Део текста недостаје у овом реду.", + "152": "Део текста недостаје у овом реду.", + "153": "Део текста недостаје и овде.", + "154": "Део текста недостаје и овде.", + "226": "Неке речи не припадају овој реченици.", + "243": "Неко је унео крај овог реда двапут.", + "282": -1, + "302": "Овај ред речи је исправљен.", + "316": -1, + "317": -1, + "318": -1, + "319": -1, + "320": -1, + "321": -1, + "322": -1, + "338": "Исправите грешке у овом реду и поништите их.", + "378": -1, + "379": -1, + "380": -1, + "381": -1, + "395": "Када је овај ред уношен, неко је притискао погрешне тастере!", + "396": "Када је овај ред уношен, неко је притискао погрешне тастере!", + "417": "Овај ред има неколико речи које треба исправити оператором измене.", + "418": "Овај ред има неколико речи које треба исправити оператором измене.", + "440": "Крај овог реда треба исправити коришћењем `c$` команде.", + "441": "Крај овог реда треба исправити коришћењем `c$` команде.", + "507": -1, + "527": -1, + "552": "Риба риби гризе реп.", + "746": -1, + "751": -1, + "769": "Овај ред омогућава вежбање надовезивања текста у неком реду.", + "770": "Овај ред омогућава вежбање надовезивања текста у неком реду.", + "790": "Додавање 123 на 456 даје 579.", + "791": "Додавање 123 на 456 даје 579.", + "816": "а) Ово је први ред.", + "817": "б) Ово је други ред." + } +} diff --git a/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor b/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..9f17c5760075a1fae8c8b78fe58a4ee6029be646 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor @@ -0,0 +1,203 @@ +# Добродошли у VIM приручник + +# ДРУГО ПОГЛАВЉЕ + + Ево змајева: ако је ово ваш први додир са програмом vim и намеравали + сте да уроните у уводно поглавље, молимо вас да на командној линији + Vim едитора откуцате +~~~ cmd + :Tutor vim-01-beginner +~~~ + или само отворите [прво поглавље](@tutor:vim-01-beginner) приручника на линку. + + Приближно време потребно за успешан завршетак овог поглавља је + између 8 и 10 минута, у зависности од времена потрошеног на + експериментисање. + + +# Лекција 2.1.1: ИМЕНОВАНИ РЕГИСТРИ + +** Сачувајте истовремено две тргнуте речи, па их налепите ** + + 1. Померите курсор на линију испод обележену са ✓ + + 2. Поставите се на било које слово речи ’Пера’ и откуцајте `"ayiw`{normal} + +**ПАМЋЕЊЕ** *у регистар(”) (а) (y)ank [тргни] (i)nner [унутрашњу] (w)ord [реч]* + + 3. Поставите се унапред на реч ’колачића’ (`fk`{normal} или `$B`{normal} + или `/ко`{normal} `<ЕНТЕР>`{normal}) и откуцајте `"byiw`{normal} + + 4. Поставите се на било које слово речи ’Жика’ и откуцајте `ciwa`{normal} + +**ПАМЋЕЊЕ**: *(c)hange [измени] (i)nner [унутрашњу] (w)ord [реч] са <садржајем +(r)егистра> (a)* + + 5. Поставите се на било које слово речи ’торте’ и откуцајте `ciwb`{normal} + + +а) Од сада ће Пера бити задужен за следовања колачића +б) У том смислу, Жика ће самостално одлучивати о судбини торте + +НАПОМЕНА: У регистре може и да се брише, нпр. `"sdiw`{normal} ће обрисати + реч под курсором у регистар s. + +РЕФЕРЕНЦЕ: [Регистри](registers) + [Именовани регистри](quotea) + [Покрети](text-objects) + [CTRL-R](i_CTRL-R) + + +# Лекција 2.1.2: РЕГИСТАР ИЗРАЗА + +** Умећите резултате израчунавања „у лету” ** + + 1. Померите курсор на линију испод обележену са ✗ + + 2. Поставите се на било коју цифру броја у њој + + 3. Откуцајте `ciw=`{normal}60\*60\*24 `<ЕНТЕР>`{normal} + + 4. У наредној линији, пређите у режим уметање и додајте данашњи датум + помоћу `=`{normal}`system('date')`{vim} `<ЕНТЕР>`{normal} + +НАПОМЕНА: Сви позиви оперативном систему зависе од система на којем се + извршавају, нпр. на Windows употребите `system('date /t’)`{vim} или + `:r!date /t`{vim} + +Заборавио сам колико секунди има у дану, 84600 је л’ да? +Данас је: + +НАПОМЕНА: исто може да се постигне са `:pu=`{normal}`system('date')`{vim} + или, са мање притисака на тастере `:r!date`{vim} + +РЕФЕРЕНЦА: [Регистар израза](quote=) + + +# Лекција 2.1.3: БРОЈЧАНИ РЕГИСТРИ + +** Притискајте `yy`{normal} и `dd`{normal} и уочите ефекат који имају на регистре ** + + 1. Померите курсор на линију испод обележену са ✓ + + 2. тргните нулту линију, па затим погледајте садржаје регистара са + `:reg`{vim} `<ЕНТЕР>`{normal} + + 3. обришите линију 0. са `"cdd`{normal}, па затим погледајте садржаје регистара + (где очекујете да видите линију 0?) + + 4. наставите да бришете сваку наредну линију, посматрајући успут регистре `:reg`{vim} + +НАПОМЕНА: требало би да приметите како се брисања целих линија померају низ + листу након додавања нових обрисаних линија + + 5. Сада (p)aste [налепите] следеће регистре у редоследу: + c, 7, 4, 8, 2. тј. са `"7p`{normal} + + +0. Ово +9. лелујаво +8. тајна +7. је +6. на +5. оси +4. једна +3. ратна +2. порука +1. поштовања + + +НАПОМЕНА: брисања комплетних линија (`dd`{normal}) много дуже остају у бројчаним + регистрима у односу на тргања целих линија или брисања која + користе мање покрете + +РЕФЕРЕНЦА: [Бројчани регистри](quote0) + + +# Лекција 2.1.4: ЛЕПОТА МАРКЕРА + +** Избегавање аритметике код неискусних програмера ** + +НАПОМЕНА: уобичајен проблем приликом писања кода је премештање великих + делова кода. Следећа техника помаже да се спречи потреба за + израчунавањима броја линије који је потребан у операцијама као што + су `"a147d`{normal} или `:945,1091d a`{vim} или још горе, првобитном употребом + `i=`{normal}1091-945 `<ЕНТЕР>`{normal} + + 1. Померите курсор на линију испод обележену са ✓ + + 2. Пређите на прву линију функције и маркирајте је са `ma`{normal} + +НАПОМЕНА: тачна позиција унутар линије НИЈЕ битна! + + 3. Померите се на крај линије и онда на крај блока кода са `$%`{normal} + + 4. Обришите блок у регистар са `"ad'a`{normal} + +**ПАМЋЕЊЕ**: *у регистар(") (a) постави (d)eletion [брисање] од курсора до + ЛИНИЈЕ која садржи маркер(') (a)* + + 5. Налепите блок између BBB и CCC са `"ap`{normal} + +НАПОМЕНА: вежбајте више пута ову операцију да би вам постала природна `ma$%"ad'a`{normal} + +~~~ cmd +AAA +function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // таксономија наше функције се изменила па више нема + // азбучног смисла на својој тренутној позицији + + // замислите стотине линија кода + + // наивно бисте се померили на почетак и крај и записали или + // запамтили оба броја линије +} +BBB +CCC +~~~ + +НАПОМЕНА: маркери и регистри не деле простор имена, тако да је регистар а + потпуно независан од маркера а. Ово није случај са регистрима и + макроима. + +РЕФЕРЕНЦЕ: [Маркери](marks) + [Покрети маркера](mark-motions) (разлика између ' и \`) + + +# РЕЗИМЕ лекције 2.1 + + 1. Да сачувате (тргнете, обришете) текст у, и вратите (налепите) из, укупно + 26 регистара (a-z) + 2. Тргните целу реч са било које позиције унутар речи: `yiw`{normal} + 3. Измените целу реч са било које позиције унутар речи: `ciw`{normal} + 4. Уметните текст директно из регистра у режиму уметање: `a`{normal} + + 5. Уметните резултате простих аритметичких операција: + `=`{normal}60\*60 `<ЕНТЕР>`{normal} у режиму уметања + 6. Уметните резултате системских позива: + `=`{normal}`system('ls -1')`{vim} у режиму уметања + + 7. Погледајте садржај регистара са `:reg`{vim} + 8. Научите крајње одредиште брисања комплетних линија: `dd`{normal} у + бројчане регистре, тј. опадајући од регистра 1 - 9. Имајте на уму да + се брисања целих линија одржавају у регистрима дуже од било које друге + операције + 9. Научите крајња одредишта свих тргања у бројчане регистре и колико се + тамо задржавају + + 10. Постављајте маркере из командног режима `m[a-zA-Z0-9]`{normal} + 11. Премештајте по линијама на маркер са `'`{normal} + + +# ЗАКЉУЧАК + + Овим се завршава друго поглавље Vim приручника. Још увек се ради на њему. + + Ово поглавље је написао Пол Д. Паркер. + + Изменио за vim-tutor-режим Restorer + + Превео на српски Иван Пешић. diff --git a/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..33db745dff353eac3fcc13255682528e3dfcd493 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sr/vim-02-beginner.tutor.json @@ -0,0 +1,10 @@ +{ + "expect": { + "39": -1, + "40": "б) У том смислу, Пера ће самостално одлучивати о судбини колачића", + "68": "Заборавио сам колико секунди има у дану, 86400 је л’ да?", + "69": -1, + "98": -1, + "145": -1 + } +} diff --git a/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor b/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..24a138452328f0046d25f96bd0a8ff5a881669f2 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor @@ -0,0 +1,1000 @@ +# Välkommen till VIM-handledningen + +# KAPITEL ETT + +Vim är en mycket kraftfull redigerare som har många kommandon, för många för att förklara i +en handledare som denna. Denna handledare är utformad för att beskriva tillräckligt många +kommandon för att du enkelt ska kunna använda Vim som en allsidig redigerare. +Det är VIKTIGT att komma ihåg att denna handledare är utformad för att lära ut genom användning. Det +betyder att du måste göra övningarna för att lära dig dem ordentligt. Om du bara +läser texten kommer du snart att glömma det viktigaste! + +Se till att Shift-Lock-tangenten INTE är nedtryckt och tryck på +`j`{normal} tillräckligt många gånger för att flytta markören så att lektion 0 fyller hela +skärmen. + +# Lektion 0 + +OBS: Kommandona i lektionerna kommer att ändra texten, men dessa ändringar +sparas inte. Oroa dig inte för att förstöra något; kom bara ihåg att +om du trycker på []() och sedan [u](u) kommer den senaste ändringen att ångras. + +Denna handledning är interaktiv, och det finns några saker du bör veta. +- Skriv []() på länkar [som denna](holy-grail ) för att öppna den länkade hjälpsidan. +- Eller skriv helt enkelt [K](K) på valfritt ord för att hitta dokumentationen för det! +- Ibland kommer du att behöva ändra text som +den här +När du har gjort ändringarna korrekt kommer tecknet ✗ till vänster att ändras +till ✓. Jag antar att du redan kan se hur smidigt Vim kan vara. ;) +Andra gånger kommer du att uppmanas att köra ett kommando (jag förklarar detta senare): +~~~ cmd +:help +~~~ +eller trycka på en sekvens av tangenter +~~~ normal +0fd3wP$P +~~~ + +Text inom < och > (som ``{normal}) beskriver en tangent som ska tryckas +istället för text som ska skrivas. + +Gå nu vidare till nästa lektion (använd tangenten `j`{normal} för att bläddra nedåt). + +# Lektion 1.1: FLYTTA MARKÖREN + +** För att flytta markören, tryck på tangenterna `h`, `j`, `k`, `l` enligt anvisningarna. ** + +↑ +k Tips: Tangenten `h`{normal} finns till vänster och flyttar markören åt vänster. +← h l → Tangenten `l`{normal} finns till höger och flyttar markören åt höger. +j Tangenten `j` {normal} ser ut som en nedåtpil. +↓ + +1. Flytta markören runt på skärmen tills du känner dig bekväm. + +2. Håll ned nedåtknappen (`j`{normal}) tills den upprepas. +Nu vet du hur du går vidare till nästa lektion. + +3. Använd nedåtknappen för att gå till Lektion 1.2. + +OBS: Om du är osäker på något du har skrivit, tryck på för att gå +till normalt läge. Skriv sedan om kommandot du ville ha. + +OBS: Piltangenterna bör också fungera. Men med hjkl kan du +röra dig mycket snabbare, när du väl vant dig vid det. Verkligen! + +# Lektion 1.2: AVSLUTA VIM + +!! OBS: Innan du utför något av stegen nedan, +läs hela lektionen !! + +1. Tryck på -tangenten (för att säkerställa att du är i normalt läge). + +2. Skriv: + +`:q!`{vim} ``{normal}. + +Detta avslutar redigeraren och FÖRKASTAR alla ändringarna du har gjort. + +3. Öppna vim och återgå hit genom att utföra kommandot som tog dig till +denna handledning. Det kan vara: + +:Tutor + +4. Om du har memorerat dessa steg och känner dig säker, utför steg +1 till 3 för att stänga och öppna redigeraren igen. + +OBS: [:q!](:q) raderar alla ändringar du har gjort. I några lektioner +kommer du att lära dig hur du sparar ändringarna i en fil. + +5. Flytta markören nedåt till lektion 1.3. + +# Lektion 1.3: TEXTREDAKTING – RADERING + +** Tryck på `x`{normal} för att radera tecknet under markören. ** + +1. Flytta markören till raden under märket ✗. + +2. För att korrigera felen flyttar du markören till det +tecken som ska raderas. + +3. Tryck på [x-tangenten](x) för att radera det oönskade tecknet. + +4. Upprepa steg 2 till 4 tills meningen är korrekt. + +Kossan hoppade över månen. + +5. Nu när raden är korrekt kan du gå vidare till Lektion 1.4. + +OBS: När du går igenom denna handledning ska du inte försöka memorera, utan lära dig genom +användning. + +# Lektion 1.4: TEXTREDIGERING: INFOGNING + +** Tryck på `i`{normal} för att infoga text. ** + +1. Flytta markören till den första raden under märket ✗. + +2. För att göra den första raden samma som den andra, flytta markören ovanför +det första tecknet EFTER den plats där texten ska infogas. + +3. Tryck på `i`{normal} och skriv in nödvändiga tillägg. + +4. När varje fel har rättats trycker du på ``{normal} för att återgå till normalt läge. +Upprepa steg 2 till 4 för att korrigera meningen. + +Det saknas text här . +Det saknas text i denna rad. + +5. När du känner dig bekväm med att infoga text går du vidare till Lektion 1.5. + +# Lektion 1.5: TEXTREDIGERING: TILLÄGG + +** Tryck på `A`{normal} för att lägga till text. ** + +1. Flytta markören till den första raden under märket ✗. +Det spelar ingen roll på vilket tecken markören står på i den raden. + +2. Tryck på [A](A) och skriv in nödvändiga tillägg. + +3. När texten har lagts till trycker du på ``{normal} för att återgå till normal +läge. + +4. Flytta markören till den andra raden markerad med ✗ och upprepa +steg 2 och 3 för att korrigera denna mening. + +Det saknas lite text i +Det saknas lite text i denna rad. +Det saknas också lite text +Det saknas också lite text här. + +5. När du känner dig bekväm med att lägga till text går du vidare till lektion 1.6. + +# Lektion 1.6: REDIGERA EN FIL + +** Använd `:wq`{vim} för att spara en fil och avsluta. ** + +!! OBS: Läs hela lektionen innan du utför något av stegen nedan !! + +1. Avsluta denna handledning som du gjorde i Lektion 1.2: `:q!`{vim} +Eller, om du har tillgång till en annan terminal, gör följande där. + +2. Skriv följande kommando i shell-prompten: +~~~ sh +$ vim tutor +~~~ +’vim’ är kommandot för att starta Vim-redigeraren, ’tutor’ är namnet på +filen du vill redigera. Använd en fil som kan ändras. + +3. Infoga och ta bort text som du lärde dig i de tidigare lektionerna. + +4. Spara filen med ändringarna och avsluta Vim med: +~~~ cmd +:wq +~~~ + +Observera att du måste trycka på `` för att utföra kommandot. + +5. Om du har avslutat vimtutor i steg 1, starta om vimtutor och gå vidare +till följande sammanfattning. + +6. När du har läst och förstått ovanstående steg: gör det. + +# Lektion 1 SAMMANFATTNING + +1. Markören flyttas med hjälp av piltangenterna eller hjkl-tangenterna. +h (vänster) j (nedåt) k (uppåt) l (höger) + +2. För att starta Vim från shell-prompten, skriv: + +~~~ sh +$ vim FILNAMN +~~~ + +3. För att avsluta Vim, skriv: ``{normal} `:q!` {vim} ``{normal} för att kasta +alla ändringar. +ELLER skriv: ``{normal} `:wq`{vim} ``{normal} för att spara +ändringarna. + +4. För att radera tecknet vid markören, skriv: `x`{normal} + +5. För att infoga eller lägga till text, skriv: +`i`{normal} infoga text ``{normal} infoga före markören. +`A`{normal} lägg till text ``{normal} lägg till efter raden. + +OBS: Om du trycker på ``{normal} kommer du till normalt läge eller avbryter +ett oönskat och delvis slutfört kommando. + +Fortsätt nu med lektion 2. + +# Lektion 2.1: RADERINGSKOMMANDON + +** Skriv `dw`{normal} för att radera ett ord. ** + +1. Tryck på ``{normal} för att se till att du är i normalt läge. + +2. Flytta markören till raden under märket ✗. + +3. Flytta markören till början av ett ord som behöver raderas. + +4. Skriv [d](d) [w](w) för att få ordet att försvinna. + +Det finns några ord som inte hör hemma i den här meningen. + +5. Upprepa steg 3 och 4 tills meningen är korrekt och gå vidare till Lektion 2.2. + +# Lektion 2.2: FLER RADERINGSKOMMANDON + +** Skriv `d$`{normal} för att radera till slutet av raden. ** + +1. Tryck på ``{normal} för att se till att du är i normalt läge. + +2. Flytta markören till raden under märket ✗. + +3. Flytta markören till slutet av rätt rad (EFTER den första . ). + +4. Skriv `d$`{normal} för att radera till slutet av raden. + +Någon har skrivit slutet på denna rad två gånger. slutet på denna rad två gånger. + +5. Gå vidare till lektion 2.3 för att förstå vad som händer. + +# Lektion 2.3: OM OPERATORER OCH RÖRELSER + +Många kommandon som ändrar text består av en [operator] (operator) och +en [rörelse](navigering). +Formatet för ett raderingskommando med [d](d) raderingsoperatorn är som följer: + +d motion + +Där: +d - är raderingsoperatorn. +motion - är vad operatorn kommer att verka på (listat nedan). + +En kort lista över rörelser: +[w](w) - till början av nästa ord, UTAN dess första tecken. +[e](e) - till slutet av det aktuella ordet, INKLUSIVE det sista tecknet. +[$]($) - till slutet av raden, INKLUSIVE det sista tecknet. + +Om du skriver `de`{normal} raderas alltså från markören till slutet av ordet. + +OBS: Om du bara trycker på rörelsen i normalt läge utan en operator +kommer markören att flyttas enligt specifikationen. + +# Lektion 2.4: ANVÄNDA ETT ANTAL FÖR EN RÖRELSE + +** Om du skriver ett tal före en rörelse upprepas den så många gånger. ** + +1. Flytta markören till början av raden markerad med ✓ nedan. + +2. Skriv `2w`{normal} för att flytta markören två ord framåt. + +3. Skriv `3e`{normal} för att flytta markören till slutet av det tredje ordet framåt. + +4. Skriv `0`{normal} ([noll](0)) för att flytta till början av raden. + +5. Upprepa steg 2 och 3 med olika siffror. + +Detta är bara en rad med ord som du kan flytta runt i. + +6. Gå vidare till lektion 2.5. + +# Lektion 2.5: ANVÄNDA ETT ANTAL FÖR ATT RADERA MER + +** Om du skriver ett tal med en operator upprepas det så många gånger. ** + +I kombinationen av raderingsoperatorn och en rörelse som nämns ovan +infogar du ett antal före rörelsen för att radera mer: +d nummer rörelse + +1. Flytta markören till det första ordet med STORA BOKSTÄVER i raden markerad med ✗. + +2. Skriv `d2w`{normal} för att radera de två orden med STORA BOKSTÄVER + +3. Upprepa steg 1 och 2 med ett annat antal för att radera de på varandra följande +orden med STORA BOKSTÄVER med ett kommando + +Denna rad med orden ABC DE FGHI JK LMN OP Q RS TUV rensas. + +# Lektion 2.6: ARBETA MED RADER + +** Skriv `dd`{normal} för att radera en hel rad. ** + +På grund av hur ofta hela rader raderas bestämde utvecklarna av Vi +att det skulle vara enklare att bara skriva två d för att radera en rad. + +1. Flytta markören till den andra raden i frasen nedan. +2. Skriv [dd](dd) för att radera raden. +3. Flytta nu till den fjärde raden. +4. Skriv `2dd`{normal} för att radera två rader. + +1) Rosor är röda, +2) Lera är roligt, +3) Violeter är blåa, +4) Jag har en bil, +5) Klockor visar tiden, +6) Socker är sött +7) Och det är du också. + +# Lektion 2.7: KOMMANDOT ÅNGRA + +** Tryck på `u`{normal} för att ångra de senaste kommandona, `U` {normal} för att korrigera en hel rad. ** + +1. Flytta markören till raden under märket ✗ och placera den på det +första felet. +2. Skriv `x`{normal} för att radera det första oönskade tecknet. +3. Skriv nu `u`{normal} för att ångra det senaste kommandot som utfördes. +4. Korrigera nu alla fel på raden med kommandot `x`{normal}. +5. Skriv nu ett stort `U`{normal} för att återställa raden till sitt ursprungliga tillstånd. +6. Skriv nu `u`{normal} några gånger för att ångra `U`{normal} och föregående +kommandon. +7. Skriv nu ``{normal} (Control + R) några gånger för att göra om kommandona +(ångra ångrandena). + +Korrigera felen på denna rad och ersätt dem med ångra. + +8. Dessa är mycket användbara kommandon. Gå nu vidare till sammanfattningen av lektion 2. + +# Lektion 2 SAMMANFATTNING + +1. För att radera från markören till nästa ord, skriv: `dw`{normal} +2. För att radera från markören till slutet av en rad, skriv: `d$` {normal} +3. För att radera en hel rad, skriv: `dd`{normal} +4. För att upprepa en rörelse, lägg till ett nummer framför: `2w`{normal} + +5. Formatet för ett ändringskommando är: +operator [nummer] rörelse +där: +operator - är vad som ska göras, till exempel [d](d) för att radera +[nummer] - är ett valfritt tal för att upprepa rörelsen +rörelse - flyttar över texten som ska bearbetas, till exempel: +[w](w) (ord), +[$]($) (till slutet av raden) osv. + +6. För att flytta till början av raden använder du noll: [0](0) + +7. För att ångra tidigare åtgärder skriver du: `u`{normal} (liten u) +För att ångra alla ändringar på en rad skriver du: `U`{normal} (stor U) +För att ångra ångrandet skriver du: `` {normal} + +# Lektion 3.1: KOMMANDOT LÄGG IN + +** Skriv `p`{normal} för att placera tidigare raderad text efter markören. ** + +1. Flytta markören till den första ✓ raden nedan. + +2. Skriv `dd`{normal} för att radera raden och lagra den i ett Vim-register. + +3. Flytta markören till raden c), OVANFÖR där den raderade raden ska placeras. + +4. Skriv `p`{normal} för att placera raden under markören. + +5. Upprepa steg 2 till 4 för att placera alla rader i rätt ordning. + +d) Kan du också lära dig? +b) Violetter är blåa, +c) Intelligens är något man lär sig, +a) Rosor är röda, + +# Lektion 3.2: KOMMANDOT ERSÄTT + +** Skriv `rx`{normal} för att ersätta tecknet vid markören med x. ** + +1. Flytta markören till den första raden nedan markerad med ✗. + +2. Flytta markören så att den hamnar ovanför det första felet. + +3. Skriv `r`{normal} och sedan det tecken som ska stå där. + +4. Upprepa steg 2 och 3 tills den första raden är identisk med den andra. + +När denna rad skrevs in tryckte någon på fel tangenter! +När denna rad skrevs in tryckte någon på fel tangenter! + +5. Gå nu vidare till lektion 3.3. + +OBS: Kom ihåg att du ska lära dig genom att göra, inte genom att memorera. + +# Lektion 3.3: ÄNDRINGSOPERATORN + +** För att ändra till slutet av ett ord, skriv `ce`{normal}. ** + +1. Flytta markören till den första raden nedan markerad med ✗. + +2. Placera markören på ”u” i ’lubw’. + +3. Skriv `ce`{normal} och det korrekta ordet (i detta fall skriver du ”ine” ). + +4. Tryck på ``{normal} och flytta till nästa tecken som behöver +ändras. + +5. Upprepa steg 3 och 4 tills den första meningen är densamma som den andra. + +Denna lubw har några wptfd som mrrf ändrar usf ändringsoperatorn. +Denna rad har några ord som behöver ändras med hjälp av ändringsoperatorn. + +Observera att [c](c)e raderar ordet och placerar dig i infogningsläge. + +# Lektion 3.4: FLER ÄNDRINGAR MED `c`{normal} + +** Ändringsoperatorn används med samma rörelser som delete. ** + +1. Ändringsoperatorn fungerar på samma sätt som delete. Formatet är: + +c [nummer] motion + +2. Rörelserna är desamma, till exempel `w`{normal} (ord) och `$`{normal} (slutet av raden). + +3. Flytta till den första raden nedan markerad med ✗. + +4. Flytta markören till det första felet. + +5. Skriv `c$`{normal} och skriv resten av raden som den andra och tryck på ``{normal}. + +Slutet av denna rad behöver lite hjälp för att bli som den andra. +Slutet av denna rad måste korrigeras med kommandot c$. + +OBS: Du kan använda Backspace-tangenten för att korrigera misstag medan du skriver. + +# Lektion 3 SAMMANFATTNING + +1. För att återställa text som just har raderats, skriv [p](p). Detta placerar den +raderade texten EFTER markören (om en rad har raderats kommer den att placeras på +raden under markören). + +2. För att ersätta tecknet under markören, skriv [r](r) och sedan det +tecken du vill ha där. + +3. Med [ändringsoperatorn](c) kan du ändra från markören till den plats +dit rörelsen tar dig. Skriv `ce`{normal} för att ändra från markören till +slutet av ordet, `c$`{normal} för att ändra till slutet av en rad. + +4. Formatet för ändring är: + +c [nummer] rörelse + +Gå nu vidare till nästa lektion. + +# Lektion 4.1: MARKÖRENS PLATS OCH FILSTATUS + +** Skriv ``{normal} för att visa din plats i en fil och filstatus. +Skriv `{count}G`{normal} för att flytta till rad {count} i filen. ** + +OBS: Läs hela lektionen innan du utför något av stegen! + +1. Håll ned ``{normal} och tryck på `g`{normal}. Vi kallar detta +``{normal}. Ett meddelande visas längst ned på sidan med +filnamnet och positionen i filen. Kom ihåg radnumret för +steg 3. + +OBS: Du kan se markörens position i det nedre högra hörnet av +skärmen. Detta händer när alternativet [’ruler’](’ruler’) är aktiverat. +2. Tryck på [G](G) för att flytta till slutet av filen. +Skriv [gg](gg) för att flytta till början av filen. + +3. Skriv numret på den rad du befann dig på och sedan `G`{normal}. Detta +tar dig tillbaka till den rad du befann dig på när du först tryckte på ``{normal}. + +4. Om du känner dig säker på att göra detta, utför steg 1 till 3. + +# Lektion 4.2: SÖKKOMMANDOT + +** Skriv `/` +{normal} följt av en fras för att söka efter frasen. ** + +1. I normalt läge skriver du tecknet `/`{normal}. Observera att det och +markören visas längst ner på skärmen, precis som med kommandot `:`{normal}. + +2. Skriv nu ’errroor’ ``{normal}. Detta är ordet du vill söka +efter. + +3. För att söka efter samma fras igen, skriv helt enkelt [n](n). +För att söka efter samma fras i motsatt riktning, skriv [N](N). + +4. För att söka efter en fras bakåt, använd [?](?) istället +för `/`{normal}. + +5. För att gå tillbaka till där du kom ifrån trycker du på ``{normal} (håll ``{normal} intryckt medan du trycker på bokstaven `o`{normal}). Upprepa för att gå längre tillbaka. + ``{normal} går framåt. + +”errroor” är inte rätt stavning av error; errroor är ett fel. + +OBS: När sökningen når slutet av filen fortsätter den från +början, såvida inte alternativet [’wrapscan’](’wrapscan’) har återställts. + +# Lektion 4.3: SÖKNING EFTER MATCHANDE PARENTESER + +** Skriv `%`{normal} för att hitta en matchande ),], eller }. ** + +1. Placera markören på valfri (, [, eller { i raden nedan markerad med ✓. + +2. Skriv nu tecknet [%](%). + +3. Markören flyttas till den matchande parentesen eller hakparentesen. + +4. Skriv `%`{normal} för att flytta markören till den andra matchande hakparentesen. + +5. Flytta markören till en annan (,),[,],{ eller } och se vad `%`{normal} gör. + +Detta ( är en testrad med ('s, ['s ] och {'s } i sig. )) + +OBS: Detta är mycket användbart vid felsökning av ett program med omatchade parenteser! + +# Lektion 4.4: KOMMANDOT ERSÄTT + +** Skriv `:s/old/new/g` för att ersätta ”old” med ”new”. ** + +1. Flytta markören till raden under märket ✗. + +2. Skriv +~~~ cmd +:s/thee/the/ +~~~ + +OBSERVERA att kommandot [:s](:s) endast ändrade den första förekomsten av ”thee” i raden. + +3. Skriv nu +~~~ cmd +:s/thee/the/g +~~~ + +Att lägga till g [flagga](:s_flags) innebär att ersätta globalt i raden, +ändra alla förekomster av ”thee” i raden. + +Vanligtvis är den bästa tiden att se blommorna på våren. + +4. För att ändra alla förekomster av en teckensträng mellan två rader, skriv +~~~ cmd +:#,#s/old/new/g +~~~ +där #,# är radnumren för det intervall där +ersättningen ska göras. + +Skriv +~~~ cmd +:%s/old/new/g +~~~ +för att ändra alla förekomster i hela filen. + +Skriv +~~~ cmd +:%s/old/new/gc +~~~ +för att hitta alla förekomster i hela filen, med en fråga om du vill +ersätta eller inte. + +# Lektion 4 SAMMANFATTNING + +1. ``{normal} visar din position och filstatus. +`G`{normal} flyttar till slutet av filen. +nummer `G`{normal} flyttar till det radnumret. +`gg`{normal} flyttar till första raden. + +2. Om du skriver `/`{normal} följt av en fras söker du FRAMÅT efter frasen. +Om du skriver `?`{normal} följt av en fras söker du BAKÅT efter frasen. +Efter en sökning skriver du `n`{normal} för att hitta nästa förekomst i samma +riktning eller `N`{normal} för att söka i motsatt riktning. +``{normal} tar dig tillbaka till äldre positioner, ``{normal} till +nyare positioner. + +3. Om du skriver `%`{normal} medan markören står på (,),[,],{ eller } går du till dess +matchning. + +4. För att ersätta det första gamla med det nya i en rad skriver du +~~~ cmd +:s/old/new +~~~ +För att ersätta alla ”gamla” med det nya i en rad skriver du +~~~ cmd +:s/old/new/g +~~~ +För att ersätta fraser mellan två radnummer, skriv +~~~ cmd +:#,#s/old/new/g +~~~ +För att ersätta alla förekomster i filen, skriv +~~~ cmd +:%s/old/new/g +~~~ +För att be om bekräftelse varje gång, lägg till ’c’ +~~~ cmd +:%s/old/new/gc +~~~ + +# Lektion 5.1: HUR MAN UTFÖR ETT EXTERNT KOMMANDO + +** Skriv `:!`{vim} följt av ett externt kommando för att utföra det kommandot. ** + +1. Skriv det välbekanta kommandot `:`{normal} för att placera markören längst ner på +skärmen. Detta gör att du kan skriva in ett kommandoradskommando. + +2. Skriv nu tecknet [!](!cmd) (utropstecken). Detta gör att du kan +utföra vilket externt shell-kommando som helst. + +3. Skriv till exempel ”ls” efter ”!” och tryck sedan på `` {normal}. +Detta visar en lista över din katalog, precis som om du befann dig +vid shell-prompten. + +OBS: Det är möjligt att utföra vilket externt kommando som helst på detta sätt, även med +argument. + +OBS: Alla `:`{vim} kommandon måste avslutas genom att trycka på ``{normal}. +Hädanefter kommer vi inte alltid att nämna detta. + +# Lektion 5.2: MER OM ATT SKRIVA FILER + +** För att spara ändringarna i texten skriver du `:w`{vim} FILNAMN. ** + +1. Skriv `:!ls`{vim} för att få en lista över din katalog. +Du vet redan att du måste trycka på ``{normal} efter detta. + +2. Välj ett filnamn som inte finns ännu, till exempel TEST. + +3. Skriv nu: +~~~ cmd +:w TEST +~~~ +(där TEST är det filnamn du valde). + +4. Detta sparar hela filen (Vim Tutor) under namnet TEST. +För att verifiera detta, skriv `:!ls`{vim} igen för att se din katalog. + +OBS: Om du skulle avsluta Vim och starta om det med `vim TEST`, skulle filen +vara en exakt kopia av handledaren när du sparade den. + +5. Ta nu bort filen genom att skriva: +~~~ cmd +:!rm TEST +~~~ + +# Lektion 5.3: VÄLJA TEXT ATT SKRIVA + +** För att spara en del av filen, skriv `v`{normal} motion `:w FILNAMN`{vim}. ** + +1. Flytta markören till denna rad. + +2. Tryck på [v](v) och flytta markören till det femte objektet nedan. Lägg märke till att +texten är markerad. + +3. Tryck på tecknet `:`{normal}. Längst ner på skärmen + +:’<,’> + +kommer att visas. + +4. Skriv + +`:w TEST`{vim} + +där TEST är ett filnamn som ännu inte finns. Kontrollera att du ser + +`:’<,’>w TEST`{vim} + +innan du trycker på ``{normal}. + +5. Vim skriver de markerade raderna till filen TEST. Använd `:!ls`{vim} för att se den. Ta inte bort den ännu! Vi kommer att använda den i nästa lektion. + +OBS: Om du trycker på [v](v) startar [Visuell markering](visual-mode). Du kan flytta +markören för att göra markeringen större eller mindre. Sedan kan du +använda en operator för att göra något med texten. Till exempel raderar `d`{normal} +texten. + +# Lektion 5.4: HÄMTA OCH SLÅ IHOP FILER + +** För att infoga innehållet i en fil, skriv `:r FILENAME`{vim}. ** + +1. Placera markören precis ovanför denna rad. + +OBS: Efter att du har utfört steg 2 kommer du att se texten från Lektion 5.3. Flytta sedan +NEDÅT för att se denna lektion igen. + +2. Hämta nu din TEST-fil med kommandot + +`:r TEST`{vim} + +där TEST är namnet på den fil du använde. +Den fil du hämtar placeras under markörraden. + +3. För att verifiera att filen hämtades, flytta tillbaka markören och notera att det +nu finns två kopior av lektion 5.3, originalet och filversionen. + +OBS: Du kan också läsa utdata från ett externt kommando. Till exempel läser + +`:r !ls`{vim} + +utdata från kommandot `ls` och placerar det under markören. + +# Lektion 5 SAMMANFATTNING + +1. [:!kommando](:!cmd) utför ett externt kommando. + +Några användbara exempel är: +`:!ls`{vim} - visar en kataloglista +`:!rm FILENAME`{vim} - tar bort filen FILENAME + +2. [:w](:w) FILENAME skriver den aktuella Vim-filen till disken med +namnet FILENAME. + +3. [v](v) motion :w FILENAME sparar de visuellt markerade raderna i filen +FILENAME. + +4. [:r](:r) FILENAME hämtar diskfilen FILENAME och placerar den +under markörpositionen. + +5. [:r !dir](:r!) läser utdata från kommandot dir och +placerar den under markörpositionen. + +# Lektion 6.1: KOMMANDOT OPEN + +** Skriv `o`{normal} för att öppna en rad under markören och placera dig i infogningsläge. ** + +1. Flytta markören till raden under markerad med ✓. + +2. Skriv gemena bokstaven `o`{normal} för att [öppna](o) en rad UNDER +markören och placera dig i infogningsläge. + +3. Skriv nu lite text och tryck på ``{normal} för att lämna infogningsläget. + +Efter att ha skrivit `o`{normal} placeras markören på den öppna raden i infogningsläge. + +4. För att öppna en rad OVANFÖR markören skriver du helt enkelt ett [stort O](O) istället för +ett gemener `o`{normal}. Prova detta på raden nedan. + +Öppna en rad ovanför denna genom att skriva O medan markören är på denna rad. + +# Lektion 6.2: KOMMANDOT LÄGG TILL EFTER + +** Skriv `a`{normal} för att infoga text EFTER markören. ** + +1. Flytta markören till början av raden nedan markerad med ✗. + +2. Tryck på `e`{normal} tills markören är i slutet av ”li”. + +3. Skriv småbokstaven `a`{normal} för att [lägga till](a) text EFTER +markören. + +4. Fyll i ordet som i raden nedanför. Tryck på ``{normal} för att lämna +införingsläget. + +5. Använd `e` {normal} för att flytta till nästa ofullständiga ord och upprepa steg 3 +och 4. + +Denna li låter dig öva på att lägga till text till en rad. +Denna rad låter dig öva på att lägga till text till en rad. + +OBS: [a](a), [i](i) och [A](A) går alla till samma infogningsläge, den enda +skillnaden är var tecknen infogas. + +# Lektion 6.3: ETT ANNAT SÄTT ATT ERSÄTTA + +** Skriv ett stort `R`{normal} för att ersätta mer än ett tecken. ** + +1. Flytta markören till den första raden under markeringen ✗. Flytta markören till +början av det första ”xxx”. + +2. Tryck nu på `R`{normal} ([stort R](R)) och skriv siffran under den i +andra raden, så att den ersätter ”xxx”. + +3. Tryck på ``{normal} för att lämna [Ersättningsläget](mode-replace). Observera att +resten av raden förblir oförändrad. + +4. Upprepa stegen för att ersätta resterande ”xxx”. + +Om du lägger till 123 till xxx får du xxx. +Om du lägger till 123 till 456 får du 579. + +OBS: Ersättningsläget liknar infogningsläget, men varje tecken som skrivs raderar ett +befintligt tecken. + +# Lektion 6.4: KOPIERA OCH KLISTRA IN TEXT + +** Använd `y`{normal} för att kopiera text och `p`{normal} för att klistra in den. ** + +1. Gå till raden markerad med ✓ nedan och placera markören efter ”a)”. + +2. Starta visuellt läge med `v`{normal} och flytta markören till strax före +”first”. + +3. Skriv `y`{normal} för att [yank](yank) (kopiera) den markerade texten. + +4. Flytta markören till slutet av nästa rad: `j$`{normal} + +5. Skriv `p`{normal} för att [put](put) (klistra in) texten. + +6. Tryck på `a`{normal} och skriv sedan ”second”. Tryck på ``{normal} för att lämna +Insert-läget. + +7. Använd Visual-läget för att markera ”item.”, kopiera det med `y`{normal}, flytta till +slutet av nästa rad med `j$`{normal} och klistra in texten där med `p`{normal} + +a) Detta är det första objektet. +b) + +OBS: du kan använda `y`{normal} som en operator: `yw`{normal} kopierar ett ord. + +# Lektion 6.5: STÄLL IN ALTERNATIV + +** Ställ in ett alternativ så att en sökning eller ersättning ignorerar versaler och gemener. ** + +1. Sök efter ’ignore’ genom att skriva: `/ignore` +Upprepa flera gånger genom att trycka på `n`{normal}. + +2. Ställ in alternativet ’ic’ (Ignorera versaler och gemener) genom att skriva: +~~~ cmd +:set ic +~~~ +3. Sök nu efter ’ignore’ igen genom att trycka på `n`{normal}. +Lägg märke till att Ignore och IGNORE nu också hittas. + +4. Ställ in alternativen ’hlsearch’ och ’incsearch’: +~~~ cmd +:set hls is +~~~ +5. Skriv nu sökkommandot igen och se vad som händer: /ignore + +6. För att inaktivera ignorering av versaler och gemener, skriv: +~~~ cmd +:set noic +~~~ +7. För att växla mellan värdena för en inställning, lägg till ”inv” framför: +~~~ cmd +:set invic +~~~ +OBS: För att ta bort markeringen av träffar, skriv: +~~~ cmd +:nohlsearch +~~~ +OBS: Om du vill ignorera versaler och gemener för endast ett sökkommando, använd [\c](/\c) +i frasen: /ignore\c + +# Lektion 6 SAMMANFATTNING + +1. Skriv `o` {normal} för att öppna en rad UNDER markören och starta infogningsläget. +Skriv `O`{normal} för att öppna en rad ÖVER markören. + +2. Skriv `a`{normal} för att infoga text EFTER markören. +Skriv `A`{normal} för att infoga text efter slutet av raden. + +3. Kommandot `e`{normal} flyttar till slutet av ett ord. + +4. Operatören `y`{normal} kopierar text, `p`{normal} klistrar in den. + +5. Om du skriver ett stort `R`{normal} går du in i ersättningsläget tills du trycker på ``{normal} +. + +6. Om du skriver ”[:set](:set) xxx” ställer du in alternativet ”xxx”. Några alternativ är: + +’ic’ 'ignorecase' ignorera versaler/gemener vid sökning +’is’ 'incsearch' visa partiella träffar för en sökfras +’hls’ 'hlsearch' markera alla matchande fraser + +Du kan använda antingen det långa eller det korta alternativnamnet. + +7. Lägg till ”no” för att inaktivera ett alternativ: +~~~ cmd +:set noic +~~~ +8. Lägg till ”inv” för att växla ett alternativ: +~~~ cmd +:set invic +~~~ + +# Lektion 7.1: FÅ HJÄLP + +** Använd online-hjälpsystemet. ** + +Vim har ett omfattande online-hjälpsystem. För att komma igång, prova något av +dessa tre alternativ: +- tryck på ``{normal} -tangenten (om du har en sådan) +- tryck på ``{normal} -tangenten (om du har en sådan) +- skriv +`:help`{vim} + +Läs texten i hjälp-fönstret för att ta reda på hur hjälpen fungerar. +Skriv ``{normal} för att hoppa från ett fönster till ett annat. +Skriv `:q`{vim} för att stänga hjälpfönstret. + +Du kan hitta hjälp om nästan vilket ämne som helst genom att ange ett argument till kommandot +”:help”. Prova dessa (glöm inte att trycka på ): +~~~ cmd +:help w +:help c_CTRL-D +:help insert-index +:help user-manual +~~~ +# Lektion 7.2: SKAPA ETT STARTSKRIPT + +** Aktivera Vim-funktioner. ** + +Vim har många fler funktioner än Vi, men de flesta av dem är inaktiverade som +standard. För att börja använda fler funktioner måste du skapa en ”vimrc”-fil. + +1. Börja redigera ”vimrc”-filen. Detta beror på ditt system: +för UNIX-liknande för Windows +`:e ~/.vimrc`{vim} `:e ~/_vimrc`{vim} + +2. Läs nu innehållet i exempel-filen ”vimrc”: +`:r $VIMRUNTIME/vimrc_example.vim`{vim} + +3. Spara filen med: +`:w`{vim} + +Nästa gång du startar Vim kommer syntaxmarkering att användas. +Du kan lägga till alla dina önskade inställningar i denna ”vimrc”-filen. +För mer information, skriv `:help vimrc-intro`{vim}. + +# Lektion 7.3: KOMPLETTERING + +** Kommandoradskomplettering med ``{normal} och ``{normal}. ** + +1. Se vilka filer som finns i katalogen: `:!ls` {vim} + +2. Skriv början på ett kommando: `:e`{vim} + +3. Tryck på ``{normal} så visar Vim en lista över kommandon som börjar +med ”e”. + +4. Tryck på ``{normal} så visar Vim en meny med möjliga kompletteringar +(eller kompletterar matchningen, om det inmatade kommandot är unikt, t.ex. +": ed``{normal}” kompletteras till ”:edit"). + +5. Använd ``{normal} eller ``{normal} för att gå till nästa matchning. Eller använd +``{normal} eller ``{normal} för att gå till föregående matchning. + +6. Välj posten `edit`{vim}. Nu kan du se att ordet `edit`{vim} +har infogats automatiskt i kommandoraden. + +7. Lägg nu till ett mellanslag och början på ett befintligt filnamn: `:edit FIL`{vim} + +8. Tryck på ``{normal}. Vim visar en kompletteringsmeny med en lista över filnamn +som börjar med `FIL` + +OBS: Komplettering fungerar för många kommandon. Det är särskilt användbart för +`:help`{vim}. + +# Lektion 7 SAMMANFATTNING + +1. Skriv `:help`{vim} +eller tryck på ``{normal} eller `` {normal} för att öppna ett hjälp-fönster. + +2. Skriv `:help ÄMNE`{vim} för att hitta hjälp om ÄMNE. + +3. Skriv ``{normal} för att hoppa till ett annat fönster + +4. Skriv `:q`{vim} för att stänga hjälp-fönstret + +5. Skapa ett vimrc-startskript för att behålla dina önskade inställningar. + +6. I kommandoläge trycker du på ``{normal} för att se möjliga kompletteringar. +Tryck på ``{normal} för att använda kompletteringsmenyn och välja en matchning. + +# SLUTSATS + +Detta avslutar kapitel 1 i Vim Tutor. Fortsätt gärna med +[kapitel 2](@tutor:vim-02-beginner). + +Detta var avsett att ge en kort översikt över Vim-redigeraren, precis tillräckligt för att +du ska kunna använda redigeraren ganska enkelt. Det är långt ifrån komplett eftersom Vim har +många fler kommandon. Konsultera hjälpen ofta. + +Det finns många resurser online för att lära sig mer om vim. Här är några av +dem: + +- *Learn Vim Progressively*: http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ +- *Learning Vim in 2014*: http://benmccormick.org/learning-vim-in-2014/ +- *Vimcasts*: http://vimcasts.org/ +- *Vim Video-Tutorials by Derek Wyatt*: http://derekwyatt.org/vim/tutorials/ +- *Learn Vimscript the Hard Way*: http:// learnvimscriptthehardway.stevelosh.com/ +- *7 vanor för effektiv textredigering*: http://www.moolenaar.net/habits.html +- *vim-galore*: https://github.com/mhinz/vim-galore + +Om du föredrar en bok rekommenderas ofta *Practical Vim* och uppföljaren *Modern Vim* av Drew Neil +. + +Denna handledning har skrivits av Michael C. Pierce och Robert K. Ware, Colorado +School of Mines, med idéer från Charles Smith, Colorado State +University. E-post: bware@mines.colorado.edu. + +Modifierad för Vim av Bram Moolenaar. +Modifierad för vim-tutor-mode av Felipe Morales. +Översatt av Daniel Nylander . \ No newline at end of file diff --git a/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..ded2cdc26897cf1629be892ef716ace0cbf93322 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sv/vim-01-beginner.tutor.json @@ -0,0 +1,45 @@ +{ +”expect”: { +”26”: -1, +”105”: ”Kossan hoppade över månen.”, +”126”: ”Det saknas text i denna rad.”, +”127”: ”Det saknas text i denna rad.”, +’146’: ”Det saknas text i denna rad.”, +”147”: ”Det saknas text i denna rad.”, +”148”: ”Det saknas också text här.”, +”149”: ”Det saknas också text här.”, +’222’: ”Det finns några ord som inte hör hemma i denna mening.”, +”238”: ”Någon har skrivit slutet av denna rad två gånger.”, +”278”: -1, +”297”: ”Denna rad med ord är rensad.”, +”311”: -1, +’312’: -1, +”313”: -1, +”314”: -1, +”315”: -1, +”316”: -1, +”317”: -1, +”334”: ”Korrigera felen i denna rad och ersätt dem med ångra.”, +’374’: -1, +”375”: -1, +”376”: -1, +”377”: -1, +”391”: ”När denna rad skrevs in tryckte någon på fel tangenter!”, +”392”: ”När denna rad skrevs in tryckte någon på fel tangenter!”, +’413’: ”Denna rad innehåller några ord som måste ändras med hjälp av ändringsoperatorn.”, +”414”: ”Denna rad har några ord som behöver ändras med hjälp av ändringsoperatorn.”, +”434”: ”Slutet på denna rad måste korrigeras med hjälp av kommandot c$.”, +”435”: ”Slutet på denna rad måste korrigeras med hjälp av kommandot c$.”, +’499’: -1, +”518”: -1, +”543”: ”Vanligtvis är våren den bästa tiden att se blommorna.”, +”737”: -1, +”742”: -1, +”761”: ”Denna rad låter dig öva på att lägga till text till en rad.”, +’762’: ”Denna rad låter dig öva på att lägga till text till en rad.”, +”782”: ”Om du lägger till 123 till 456 får du 579.”, +”783”: ”Om du lägger till 123 till 456 får du 579.”, +”809”: ”a) Detta är det första objektet.”, +’810’: ”b) Detta är det andra objektet.” +} +} diff --git a/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor b/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor new file mode 100644 index 0000000000000000000000000000000000000000..60471f5efe46fbcd03abebe3135f3ba84b53ac4b --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor @@ -0,0 +1,290 @@ +# Välkommen till VIM-handledningen + +# KAPITEL TVÅ + +Hic Sunt Dracones: om detta är din första kontakt med vim och du +vill utnyttja introduktionskapitlet, skriv +på kommandoraden i Vim-redigeraren +~~~ cmd +:Tutor vim-01-beginner +~~~ +Eller öppna bara [första kapitlet](@tutor:vim-01-beginner) i handledningen via länken. + +Det tar ungefär 8–10 minuter att gå igenom detta kapitel, +beroende på hur mycket tid du lägger på att experimentera. + + +# Lektion 2.1.1: BEHÄRSKA TEXTOBJEKT + +** Arbeta med logiska textblock med precision med hjälp av textobjekt ** + +1. Öva på ordoperationer: +- Placera markören på valfritt ord i raden nedan +- Skriv `diw`{normal} för att radera INNER ord (ord utan omgivande mellanslag) +- Skriv `daw`{normal} för att radera ETT ORD (inklusive efterföljande blanksteg) +- Prova med andra operatorer: `ciw`{normal} (ändra), `yiw`{normal} (yank), +`gqiw`{normal} (formatera) + +Öva på: ”Vim's”, (text_object) och ’powerful’ här. + +2. Arbeta med innehåll inom parenteser: +- Placera markören inom något av parenteserna () {} [] <> nedan +- Skriv `di(`{normal} eller `dib`{normal} (ta bort inre parentes) +- Skriv `da(`{normal} eller `dab`{normal} (ta bort runt parenteserna) +- Prova samma sak med `i”`{normal}/`a”`{normal} för citattecken, `it`{normal}/`at`{normal} för HTML/XML-taggar + +Testfall: {curly}, [square], och ”quoted” objekt. + +3. Manipulering av stycken och meningar: +- Använd `dip`{normal} för att radera inre stycke (markören var som helst i stycket) +- Använd `vap`{normal} för att visuellt markera hela stycket +- Prova `das`{normal} för att radera en mening (fungerar mellan .!? skiljetecken) + +4. Avancerade kombinationer: +- `ciwnew`{normal} - Ändra aktuellt ord till ”new” +- `ciw”-”`{normal} - Sätt aktuellt ord inom citattecken +- `gUit`{normal} - Skriv inre HTML-tagginnehåll med versaler +- `va”p`{normal} - Markera text inom citattecken och klistra in över den + +Slutlig övning: (Ändra ”denna" text) genom att [tillämpa {olika} operationer]< + + +# Lektion 2.1.2: DE NAMNGIVNA REGISTREN + +** Lagra två kopierade ord samtidigt och klistra sedan in dem ** + +1. Flytta markören till raden under märket ✓ + +2. Navigera till valfri punkt i ordet ”Edward” och skriv `”ayiw`{normal} + +**MINNESREGEL**: *in i register(”) med namnet (a) (y)ank (i)nner (w)ord* + +3. Navigera framåt till ordet ’cookie’ (`fk`{normal} eller `3fc`{normal} +eller `$2b`{normal} eller `/co`{normal} ``{normal}) och skriv `"byiw`{normal} + +4. Navigera till valfri punkt i ordet ’Vince’ och skriv `ciwa` {normal} + +**MNEMONIC**: *(c)hange (i)nner (w)ord med med namnet (a)* + +5. Navigera till valfri punkt i ordet ”cake” och skriv `ciwb`{normal} + +a) Edward kommer hädanefter att ansvara för kakorna +b) I denna egenskap kommer Vince att ha ensamrätt att bestämma över kakorna + +OBS: Delete fungerar även i register, dvs. `"sdiw`{normal} raderar +ordet under markören till register s. + +REFERENS: [Register](register) +[Namngivna register](quotea) +[Motion](text-objects) +[CTRL-R](i_CTRL-R) + + +# Lektion 2.1.3: UTTRYCKREGISTRET + +** Infoga resultaten av beräkningar direkt ** + +1. Flytta markören till raden under märket ✗ + +2. Navigera till valfri punkt på det angivna talet + +3. Skriv `ciw=`{normal}60\*60\*24 ``{normal} + +4. På nästa rad går du in i infogningsläget och lägger till dagens datum med +`=`{normal}`system(’date’)`{vim} ``{normal} + +OBS: Alla anrop till system är beroende av operativsystemet, t.ex. på Windows använder du +`system(’date /t’)`{vim} eller `:r!date /t`{vim} + +Jag har glömt det exakta antalet sekunder i en dag, är det 84600? +Dagens datum är: + +OBS: samma sak kan uppnås med `:pu=`{normal}`system(’date’)` {vim} +eller, med färre tangenttryckningar `:r!date`{vim} + +REFERENS: [Uttrycksregister](quote=) + + +# Lektion 2.1.4: DE NUMMERERADE REGISTRA + +** Tryck på `yy`{normal} och `dd`{normal} för att se deras effekt på registren ** + +1. Flytta markören till raden under den markerade ✓ + +2. Kopiera raden som börjar med ”0.”, och inspektera sedan registren med `:reg`{vim} ``{normal} + +3. Ta bort rad 0 med `"cdd`{normal}, och inspektera sedan registren +(Var förväntar du dig att rad 0 ska vara?) + +4. Fortsätt att radera varje efterföljande rad och kontrollera `:reg`{vim} medan du gör det + +OBS: Du bör lägga märke till att gamla rader som raderats flyttas nedåt i listan +när nya rader som raderats läggs till + +5. Klistra nu in följande register i ordning: c, 7, 4, 8, 2. Dvs. `"7p`{normal} + +0. Detta +9. vagga +8. hemlighet +7. är +6. på +5. axeln +4. en +3. krig +2. meddelande +1. hyllning + + +OBS: Radradering av hela rader (`dd`{normal}) lever mycket längre i de +numrerade registren än radradering av hela rader eller radering som involverar +mindre rörelser + +REFERENS: [Numrerade register](quote0) + + +# Lektion 2.1.5: SPECIALREGISTER + +** Använd systemets urklipp och blackhole-register för avancerad redigering ** + +Obs: Användning av urklipp kräver X11/Wayland-bibliotek på Linux-system OCH +en Vim byggd med ”+clipboard” (vanligtvis en Huge-byggnad). Kontrollera med +`:version`{vim} och `:echo has(’clipboard_working’)`{vim} + +1. Urklippsregister `+`{normal} och `*`{normal} : +- `”+y`{normal} - Kopiera till systemets urklipp (t.ex. `”+yy`{normal} för aktuell rad) +- `"+p`{normal} - Klistra in från systemets urklipp +- `”*`{normal} är primärt val på X11 (mittenklick), `”+`{normal} är urklipp + +Prova: ”+yy och klistra sedan in i ett annat program med Ctrl-V eller Cmd+V + +2. Blackhole-registret `_`{normal} raderar text: +- `”_daw`{normal} - Radera ord utan att spara i något register +- Användbart när du inte vill skriva över ditt standardregister `”`{normal} +- Observera att detta använder textobjektet ”a Word”, som introducerades i en tidigare +lektion +- `”_dd`{normal} - Ta bort rad utan att spara +- `”_dap`{normal} - Ta bort stycke utan att spara +- Kombinera med antal: `3”_dw`{normal} + +Övning: ”_diw på valfritt ord för att radera det utan att påverka yank-historiken + +3. Kombinera med visuella markeringar: +- Markera text med V och sedan `”+y`{normal} +- För att klistra in från urklipp i infogningsläge: `+`{normal} +- Försök öppna ett annat program och klistra in från urklipp + +4. Kom ihåg: +- Urklippsregister fungerar mellan olika Vim-instanser +- Urklippsregistret fungerar inte alltid +- Blackhole förhindrar oavsiktlig överskrivning av register +- Standardregistret `"`{normal} är fortfarande tillgängligt för normal yank/paste +- Namngivna register (a-z) förblir privata för varje Vim-session + +5. Felsökning av urklipp: +- Kontrollera stöd med `:echo has(’clipboard_working’)`{vim} +- 1 betyder tillgängligt, 0 betyder inte kompilerat +- På Linux kan vim-gtk- eller vim-x11-paketet behövas +(kontrollera `:version`{vim} -utdata) + + +# Lektion 2.1.6: SKÖNHETEN I MARKERINGAR + +** Undvik aritmetik för kodapor ** + +OBS: ett vanligt problem vid kodning är att flytta runt stora kodblock. +Följande teknik hjälper till att undvika beräkningar på talraden i samband +med operationer som `"a147d`{normal} eller `:945,1091d a`{vim} eller ännu värre +med `i=`{normal}1091-945 `` {normal} först + +1. Flytta markören till raden nedan markerad med ✓ + +2. Gå till den första raden i funktionen och markera den med `ma`{normal} + +OBS: den exakta positionen på raden är INTE viktig! + +3. Navigera till slutet av raden och sedan till slutet av kodblocket +med `$%`{normal} + +4. Ta bort blocket till register a med `”ad'a`{normal} + +**MINNESREGEL**: *till register(”) med namnet (a) lägg (d)eletionen från markören till +raden som innehåller markeringen(') (a)* + +5. Klistra in blocket mellan BBB och CCC `"ap` {normal} + +OBS: öva på denna operation flera gånger för att bli flytande `ma$%"ad'a`{normal} + +~~~ cmd +AAA +function itGotRealBigRealFast() { +if ( somethingIsTrue ) { +doIt() +} +// taxonomin för vår funktion har ändrats och den +// är inte längre alfabetiskt logisk i sin nuvarande position + +// föreställ dig hundratals rader med kod + +// naivt sett skulle du kunna navigera till början och slutet och registrera eller +// komma ihåg varje radnummer +} +BBB +CCC +~~~ + +OBS: märken och register delar inte samma namnområde, därför är register a +helt oberoende av märket a. Detta gäller inte register och +makron. + +REFERENS: [Markeringar](markeringar) +[Markeringsrörelser](markeringsrörelser) (skillnaden mellan ' och \`) + + +# Lektion 2.1 SAMMANFATTNING + +1. Textobjekt möjliggör precisionsredigering: +- `iw`{normal}/`aw`{normal} - inuti/runt ord +- `i[`{normal}/`a[`{normal} - inuti/runt parentes +- `i”`{normal}/`a”`{normal} - inuti/runt citattecken +- `it`{normal}/`at`{normal} - inuti/runt tagg +- `ip`{normal}/`ap`{normal} - inuti/runt stycke +- `is`{normal}/`as`{normal} - inuti/runt mening + +2. För att lagra (kopiera, radera) text i och hämta (klistra in) från totalt +26 register (a-z) +3. Kopiera ett helt ord från valfri plats i ett ord: `yiw`{normal} +4. Ändra ett helt ord från valfri plats i ett ord: `ciw` {normal} +5. Infoga text direkt från register i infogningsläge: `a`{normal} + +6. Infoga resultaten av enkla aritmetiska operationer: +`=`{normal}60\*60``{normal} i infogningsläge +7. Infoga resultaten av systemanrop: +`=`{normal}`system(’ls -1’)`{vim}``{normal} i infogningsläge + +8. Inspektera register med `:reg`{vim} +9. Lär dig den slutliga destinationen för raderingar av hela rader: `dd`{normal} i +de numrerade registren, dvs. i fallande ordning från register 1 till 9. Uppskatta +att raderingar av hela rader bevaras i de numrerade registren längre +än någon annan operation +10. Lär dig den slutliga destinationen för alla yanks i de numrerade registren och +hur kortlivade de är + +11. Placera markeringar från kommandoläge `m[a-zA-Z0-9]` {normal} +12. Flytta radvis till en markering med `'`{normal} + +13. Specialregister: +- `”+`{normal}/`”*`{normal} - Systemets urklipp (beroende på operativsystem) +- `"_`{normal} - Blackhole (kasta bort raderad/yankad text) +- `”=`{normal} - Uttrycksregister +- `”-`{normal} - Litet raderingsregister + + +# SLUTSATS + +Detta avslutar kapitel två i Vim Tutor. Det är ett pågående arbete. + +Detta kapitel är skrivet av Paul D. Parker och Christian Brabandt. + +Modifierat för vim-tutor-mode av Restorer. + +Översatt av Daniel Nylander . \ No newline at end of file diff --git a/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor.json b/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..9f9a39b575501fdeb7ffddf16043e805a63f9f4e --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/sv/vim-02-beginner.tutor.json @@ -0,0 +1,15 @@ +{ + "expect": { + "28": -1, + "36": -1, + "49": -1, + "71": -1, + "72": "b) I denna egenskap kommer Edward att ha ensamrätt att fatta beslut om cookies", + "99": "Jag har glömt det exakta antalet sekunder i en dag, är det 86400", + "100": -1, + "126": -1, + "158": -1, + "169": -1, + "218": -1 + } +} diff --git a/git/usr/share/vim/vim92/tutor/tutor.tutor b/git/usr/share/vim/vim92/tutor/tutor.tutor new file mode 100644 index 0000000000000000000000000000000000000000..cdef5d55ce9435239576729b3324ffa861bcda1f --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor.tutor @@ -0,0 +1,240 @@ +# CREATING A VIM TUTORIAL WITH VIM-TUTOR-MODE + +This tutorial will guide you through the steps required to create a tutorial +file for vim-tutor-mode. It is also meant as a demo of vim-tutor-mode +capabilities. + +Table of contents: + +- [Setting up](*setting-up*) +- [vim-tutor-mode's markup](*markup*) + - [emphasis](*emphasis*) + - [headers](*headers*) + - [links](*links*) + - [codeblocks](*codeblocks*) +- [Interactive elements](*interactive*) + - [expect](*expect*) + +## SETTING UP *setting-up* + +Create a new .tutor file (we will be practicing on this very file, so you don't +need to do this now): +~~~ cmd + :e new-tutorial.tutor +~~~ + +## VIM-TUTOR-MODE's MARKDOWN *markup* + +vim-tutor-mode uses a subset of markdown's syntax to format the tutorials. The +subset supported should be enough for most tutorials and the maintainers will +try to keep it as small as possible (if regular markdown allows for several +ways to do the same thing, tutor markdown will only provide the one the +maintainers think is easier to handle). + +### Emphasis *emphasis* + +For emphasized text (italics), as in normal markdown, you use \*. E.g.: + + \*text\* + +is displayed like + + *text* + +Note: The underscores variant is not supported. + +For strong emphasis (bold), you use \*\*. E.g.: + + \*\*this\*\* + +is displayed like + + **this** + +1. Format the line below so it becomes a lesson description: + +This is text with important information +This is text with **important information** + +Note: Some words (e.g., NOTE, IMPORTANT, tip, ATTENTION, etc.) will also be +highlighted. You don't need to mark them specially. + +2. Turn the line below into a TODO item: + +Document '&variable' +TODO: Document '&variable' + +### Headers *headers* + +3. Practice fixing the lines below: + +This is a level 1 header +# This is a level 1 header +This is a level 3 header +### This is a level 3 header +This is a header with a label +# This is a header with a label {*label*} + +4. Now, create a 4th level section here, and add a label like in the previous +exercise: + + + + ATTENTION We will use this label later, so remember it. + +### Links *links* + +It is good practice to include links in your tutorials to reference materials, +like vim's own help or external documents. You can also link to other parts of +the document. + +Links have the syntax + + \[label\]\(target\) + +#### Help links + +If the target of a link matches a help topic, opening it will open it. + +5. Fix the following line: + +A link to help for the 'breakindent' option +A link to help for the ['breakindent']('breakindent') option + +#### Anchor links + +A link can also lead to a place in the file itself. Anchors are written + + \*anchor\* + +and are hidden by default. Links to them look like + + \[label\]\(\*anchor\*\) + +6. Add the appropriate link: + +A link to the Links section +A link to the [Links](*links*) section + +7. Now, create a link to the section you created on exercise 4 + above. + + + +# Tutorial links + +You can also have links to other tutorials. For this, you'll write the anchor in the format + + @tutor:TUTORIAL + +7. Create a link to this tutorial: + +A link to the vim-tutor-mode tutorial +A link to [the vim-tutor-mode tutorial](@tutor:tutor) + +### Codeblocks *codeblocks* + +vim-tutor-mode tutorials can include viml sections + + ~~~ cmd + echom "hello" + ~~~ + +is displayed as +~~~ cmd +echom "hello" +~~~ + +8. Copy the viml section below + + + + + +~~~ viml +echom 'the value of &number is'.string(&number) +~~~ + +You can inline viml code using "\`" and "\`{vim}": + + \`call myFunction()\`{vim} + +is displayed as + + `call myFunction()`{vim} + +[normal](Normal-mode) commands can also be embedded in tutorials. + + ~~~ normal + ftdaW + ~~~ + +is displayed as +~~~ normal +ftdaW +~~~ + +Note: you can also write `norm` or `normal`. + +9. Copy the normal section below + + + + + +~~~ normal +d2w +~~~ + +You can also inline normal commands by using "\`" and "\`{normal}": + + \`gq\`{normal} is very useful. + +is displayed: + + `gq`{normal} is very useful. + +10. Complete the line as shown + +d +`d2w`{normal} + +Commands to run in the system shell can be highlighted by indenting a line +starting with "$". + +~~~ sh + $ vim --version +~~~ + +## INTERACTIVE ELEMENTS *interactive* + +As visible in this very document, vim-tutor-mode includes some interactive +elements to provide feedback to the user about his progress. If the text in +these elements satisfies some set condition, a ✓ sign will appear in the gutter +to the left. Otherwise, a ✗ sign is displayed. + +### expect *expect* + +"expect" lines check that the contents of the line are identical to some preset text +(like in the exercises above). + +These elements are specified in separate JSON files like this + +~~~ json +{ + "expect": { + "1": "This is how this line should look.", + "2": "This is how this line should look.", + "3": -1 + } +} +~~~ + +These files contain an "expect" dictionary, for which the keys are line numbers and +the values are the expected text. A value of -1 means that the condition for the line +will always be satisfied, no matter what (this is useful for letting the user play a bit). + +This is an "expect" line that is always satisfied. Try changing it. + +These files conventionally have the same name as the tutorial document with the `.json` +extension appended (for a full example, see the file that corresponds to this tutorial). diff --git a/git/usr/share/vim/vim92/tutor/tutor.tutor.json b/git/usr/share/vim/vim92/tutor/tutor.tutor.json new file mode 100644 index 0000000000000000000000000000000000000000..9ee0974463b166d652d532ef4ace9b78ddc1afb0 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor.tutor.json @@ -0,0 +1,35 @@ +{ + "expect": { + "56": "This is text with **important information**", + "57": "This is text with **important information**", + "64": "TODO: Document '&variable'", + "65": "TODO: Document '&variable'", + "71": "# This is a level 1 header", + "72": "# This is a level 1 header", + "73": "### This is a level 3 header", + "74": "### This is a level 3 header", + "75": "# This is a header with a label {*label*}", + "76": "# This is a header with a label {*label*}", + "101": "A link to help for the ['breakindent']('breakindent') option", + "102": "A link to help for the ['breakindent']('breakindent') option", + "116": "A link to the [Links](*links*) section", + "117": "A link to the [Links](*links*) section", + "132": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", + "133": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", + "150": "~~~ viml", + "151": "echom 'the value of &number is'.string(&number)", + "152": "~~~", + "154": "~~~ viml", + "155": "echom 'the value of &number is'.string(&number)", + "156": "~~~", + "181": "~~~ normal", + "182": "d2w", + "183": "~~~", + "185": "~~~ normal", + "186": "d2w", + "187": "~~~", + "199": "`d2w`{normal}", + "200": "`d2w`{normal}", + "237": -1 + } +} diff --git a/git/usr/share/vim/vim92/tutor/tutor.vim b/git/usr/share/vim/vim92/tutor/tutor.vim new file mode 100644 index 0000000000000000000000000000000000000000..4771f28752040a24e851cb1d1684d8d3e14c6f81 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor.vim @@ -0,0 +1,96 @@ +" Vim tutor support file +" Author: Eduardo F. Amatria +" Maintainer: The·Vim·Project· +" Last Change: 2025 Jun 20 + +" This Vim script is used for detecting if a translation of the +" tutor file exist, i.e., a tutor.xx file, where xx is the language. +" If the translation does not exist, or no extension is given, +" it defaults to the English version. + +" It is invoked by the vimtutor shell script. + +" 1. Build the extension of the file, if any: +let s:ext = "" +if strlen($xx) > 1 + let s:ext = "." .. $xx +else + let s:lang = "" + " Check that a potential value has at least two letters. + " Ignore "1043" and "C". + if exists("v:lang") && v:lang =~ '\a\a' + let s:lang = v:lang + elseif $LC_ALL =~ '\a\a' + let s:lang = $LC_ALL + elseif $LC_MESSAGES =~ '\a\a' || $LC_MESSAGES ==# "C" + " LC_MESSAGES=C can be used to explicitly ask for English messages while + " keeping LANG non-English; don't set s:lang then. + if $LC_MESSAGES =~ '\a\a' + let s:lang = $LC_MESSAGES + endif + elseif $LANG =~ '\a\a' + let s:lang = $LANG + endif + if s:lang != "" + " Remove "@euro" (ignoring case), it may be at the end + let s:lang = substitute(s:lang, '\c@euro', '', '') + " On MS-Windows it may be German_Germany.1252 or Polish_Poland.1250. How + " about other languages? + if s:lang =~ "German" + let s:ext = ".de" + elseif s:lang =~ "Polish" + let s:ext = ".pl" + elseif s:lang =~ "Slovak" + let s:ext = ".sk" + elseif s:lang =~ "Serbian" + let s:ext = ".sr" + elseif s:lang =~ "Czech" + let s:ext = ".cs" + elseif s:lang =~ "Dutch" + let s:ext = ".nl" + elseif s:lang =~ "Bulgarian" + let s:ext = ".bg" + else + let s:ext = "." .. strpart(s:lang, 0, 2) + endif + endif +endif + +" Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch). +if s:ext =~? '\.ge' + let s:ext = ".de" +endif + +if s:ext =~? '\.en' + let s:ext = "" +endif + +" Choose between Chinese (Simplified) and Chinese (Traditional) +" based on the language, suggested by Alick Zhao. +if s:ext =~? '\.zh' + if s:ext =~? 'zh_tw' || (exists("s:lang") && s:lang =~? 'zh_tw') + let s:ext = ".zh_tw" + else + let s:ext = ".zh_cn" + endif +endif + +" 2. Build the name of the file and chapter +let s:chapter = exists("$CHAPTER") ? $CHAPTER : 1 + +let s:tutorfile = "/tutor/tutor" .. s:chapter +let s:tutorxx = $VIMRUNTIME .. s:tutorfile .. s:ext + +" 3. Finding the file: +if filereadable(s:tutorxx) + let $TUTOR = s:tutorxx +else + let $TUTOR = $VIMRUNTIME .. s:tutorfile + echo "The file " .. s:tutorxx .. " does not exist.\n" + echo "Copying English version: " .. $TUTOR + 4sleep +endif + +" 4. Making the copy and exiting Vim: +e $TUTOR +wq! $TUTORCOPY diff --git a/git/usr/share/vim/vim92/tutor/tutor1 b/git/usr/share/vim/vim92/tutor/tutor1 new file mode 100644 index 0000000000000000000000000000000000000000..790de39446572a3e19c0ce3eb3a8eeeaeff8fddc --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1 @@ -0,0 +1,974 @@ +=============================================================================== += W e l c o m e t o t h e V I M T u t o r - Version 1.7 = +=============================================================================== += C H A P T E R ONE = +=============================================================================== + + Vim is a very powerful editor that has many commands, too many to + explain in a tutor such as this. This tutor is designed to describe + enough of the commands that you will be able to easily use Vim as + an all-purpose editor. + The approximate time required to complete the tutor is 30 minutes, + depending upon how much time is spent with experimentation. + + ATTENTION: + The commands in the lessons will modify the text. Make a copy of this + file to practice on (if you started "vimtutor" this is already a copy). + + It is important to remember that this tutor is set up to teach by + use. That means that you need to execute the commands to learn them + properly. If you only read the text, you will forget the commands! + Now, make sure that your Caps-Lock key is NOT depressed and press + the j key enough times to move the cursor so that lesson 1.1.1 + completely fills the screen. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.1: MOVING THE CURSOR + + + ** To move the cursor, press the h,j,k,l keys as indicated. ** + ^ + k Hint: The h key is at the left and moves left. + < h l > The l key is at the right and moves right. + j The j key looks like a down arrow. + v + 1. Move the cursor around the screen until you are comfortable. + + 2. Hold down the down key (j) until it repeats. + Now you know how to move to the next lesson. + + 3. Using the down key, move to lesson 1.1.2. + +NOTE: If you are ever unsure about something you typed, press to place + you in Normal mode. Then retype the command you wanted. + +NOTE: The cursor keys should also work. But using hjkl you will be able to + move around much faster, once you get used to it. Really! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.2: EXITING VIM + + + !! NOTE: Before executing any of the steps below, read this entire lesson!! + + 1. Press the key (to make sure you are in Normal mode). + + 2. Type: :q! . + This exits the editor, DISCARDING any changes you have made. + + 3. Get back here by executing the command that got you into this tutor. That + might be: vimtutor + + 4. If you have these steps memorized and are confident, execute steps + 1 through 3 to exit and re-enter the editor. + +NOTE: :q! discards any changes you made. In a few lessons you + will learn how to save the changes to a file. + + 5. Move the cursor down to lesson 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.3: TEXT EDITING - DELETION + + + ** Press x to delete the character under the cursor. ** + + 1. Move the cursor to the line below marked --->. + + 2. To fix the errors, move the cursor until it is on top of the + character to be deleted. + + 3. Press the x key to delete the unwanted character. + + 4. Repeat steps 2 through 4 until the sentence is correct. + +---> The ccow jumpedd ovverr thhe mooon. + + 5. Now that the line is correct, go on to lesson 1.1.4. + +NOTE: As you go through this tutor, do not try to memorize, learn by usage. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.4: TEXT EDITING - INSERTION + + + ** Press i to insert text. ** + + 1. Move the cursor to the first line below marked --->. + + 2. To make the first line the same as the second, move the cursor on top + of the character BEFORE which the text is to be inserted. + + 3. Press i and type in the necessary additions. + + 4. As each error is fixed press to return to Normal mode. + Repeat steps 2 through 4 to correct the sentence. + +---> There is text misng this . +---> There is some text missing from this line. + + 5. When you are comfortable inserting text move to lesson 1.1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.5: TEXT EDITING - APPENDING + + + ** Press A to append text. ** + + 1. Move the cursor to the first line below marked --->. + It does not matter on what character the cursor is in that line. + + 2. Press A and type in the necessary additions. + + 3. As the text has been appended press to return to Normal mode. + + 4. Move the cursor to the second line marked ---> and repeat + steps 2 and 3 to correct this sentence. + +---> There is some text missing from th + There is some text missing from this line. +---> There is also some text miss + There is also some text missing here. + + 5. When you are comfortable appending text move to lesson 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.6: EDITING A FILE + + ** Use :wq to save a file and exit. ** + + !! NOTE: Before executing any of the steps below, read this entire lesson!! + + 1. If you have access to another terminal, do the following there. + Otherwise, exit this tutor as you did in lesson 1.1.2: :q! + + 2. At the shell prompt type this command: vim file.txt + 'vim' is the command to start the Vim editor, 'file.txt' is the name of + the file you wish to edit. Use the name of a file that you can change. + + 3. Insert and delete text as you learned in the previous lessons. + + 4. Save the file with changes and exit Vim with: :wq + + 5. If you have quit vimtutor in step 1 restart the vimtutor and move down to + the following summary. + + 6. After reading the above steps and understanding them: do it. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1 SUMMARY + + + 1. The cursor is moved using either the arrow keys or the hjkl keys. + h (left) j (down) k (up) l (right) + + 2. To start Vim from the shell prompt type: vim FILENAME + + 3. To exit Vim type: :q! to trash all changes. + OR type: :wq to save the changes. + + 4. To delete the character at the cursor type: x + + 5. To insert or append text type: + i type inserted text insert before the cursor + A type appended text append after the line + +NOTE: Pressing will place you in Normal mode or will cancel + an unwanted and partially completed command. + +Now continue with lesson 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.1: DELETION COMMANDS + + + ** Type dw to delete a word. ** + + 1. Press to make sure you are in Normal mode. + + 2. Move the cursor to the line below marked --->. + + 3. Move the cursor to the beginning of a word that needs to be deleted. + + 4. Type dw to make the word disappear. + + NOTE: The letter d will appear on the last line of the screen as you type + it. Vim is waiting for you to type w . If you see another character + than d you typed something wrong; press and start over. + +---> There are a some words fun that don't belong paper in this sentence. + + 5. Repeat steps 3 and 4 until the sentence is correct and go to lesson 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.2: MORE DELETION COMMANDS + + + ** Type d$ to delete to the end of the line. ** + + 1. Press to make sure you are in Normal mode. + + 2. Move the cursor to the line below marked --->. + + 3. Move the cursor to the end of the correct line (AFTER the first . ). + + 4. Type d$ to delete to the end of the line. + +---> Somebody typed the end of this line twice. end of this line twice. + + + 5. Move on to lesson 1.2.3 to understand what is happening. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.3: ON OPERATORS AND MOTIONS + + + Many commands that change text are made from an operator and a motion. + The format for a delete command with the d delete operator is as follows: + + d motion + + Where: + d - is the delete operator. + motion - is what the operator will operate on (listed below). + + A short list of motions: + w - until the start of the next word, EXCLUDING its first character. + e - to the end of the current word, INCLUDING the last character. + $ - to the end of the line, INCLUDING the last character. + + Thus typing de will delete from the cursor to the end of the word. + +NOTE: Pressing just the motion while in Normal mode without an operator will + move the cursor as specified. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.4: USING A COUNT FOR A MOTION + + + ** Typing a number before a motion repeats it that many times. ** + + 1. Move the cursor to the start of the line below marked --->. + + 2. Type 2w to move the cursor two words forward. + + 3. Type 3e to move the cursor to the end of the third word forward. + + 4. Type 0 (zero) to move to the start of the line. + + 5. Repeat steps 2 and 3 with different numbers. + +---> This is just a line with words you can move around in. + + 6. Move on to lesson 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.5: USING A COUNT TO DELETE MORE + + + ** Typing a number with an operator repeats it that many times. ** + + In the combination of the delete operator and a motion mentioned above you + insert a count before the motion to delete more: + d number motion + + 1. Move the cursor to the first UPPER CASE word in the line marked --->. + + 2. Type d2w to delete the two UPPER CASE words. + + 3. Repeat steps 1 and 2 with a different count to delete the consecutive + UPPER CASE words with one command. + +---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.6: OPERATING ON LINES + + + ** Type dd to delete a whole line. ** + + Due to the frequency of whole line deletion, the designers of Vi decided + it would be easier to simply type two d's to delete a line. + + 1. Move the cursor to the second line in the phrase below. + 2. Type dd to delete the line. + 3. Now move to the fourth line. + 4. Type 2dd to delete two lines. + +---> 1) Roses are red, +---> 2) Mud is fun, +---> 3) Violets are blue, +---> 4) I have a car, +---> 5) Clocks tell time, +---> 6) Sugar is sweet +---> 7) And so are you. + +Doubling to operate on a line also works for operators mentioned below. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.7: THE UNDO COMMAND + + + ** Press u to undo the last commands, U to fix a whole line. ** + + 1. Move the cursor to the line below marked ---> and place it on the + first error. + 2. Type x to delete the first unwanted character. + 3. Now type u to undo the last command executed. + 4. This time fix all the errors on the line using the x command. + 5. Now type a capital U to return the line to its original state. + 6. Now type u a few times to undo the U and preceding commands. + 7. Now type CTRL-R (keeping CTRL key pressed while hitting R) a few times + to redo the commands (undo the undos). + +---> Fiix the errors oon thhis line and reeplace them witth undo. + + 8. These are very useful commands. Now move on to the lesson 1.2 Summary. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2 SUMMARY + + 1. To delete from the cursor up to the next word type: dw + 2. To delete from the cursor up to the end of the word type: de + 3. To delete from the cursor to the end of a line type: d$ + 4. To delete a whole line type: dd + + 5. To repeat a motion prepend it with a number: 2w + 6. The format for a change command is: + operator [number] motion + where: + operator - is what to do, such as d for delete + [number] - is an optional count to repeat the motion + motion - moves over the text to operate on, such as w (word), + e (end of word), $ (end of the line), etc. + + 7. To move to the start of the line use a zero: 0 + + 8. To undo previous actions, type: u (lowercase u) + To undo all the changes on a line, type: U (capital U) + To undo the undos, type: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.1: THE PUT COMMAND + + + ** Type p to put previously deleted text after the cursor. ** + + 1. Move the cursor to the first line below marked --->. + + 2. Type dd to delete the line and store it in a Vim register. + + 3. Move the cursor to the c) line, ABOVE where the deleted line should go. + + 4. Type p to put the line below the cursor. + + 5. Repeat steps 2 through 4 to put all the lines in correct order. + +---> d) Can you learn too? +---> b) Violets are blue, +---> c) Intelligence is learned, +---> a) Roses are red, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.2: THE REPLACE COMMAND + + + ** Type rx to replace the character at the cursor with x . ** + + 1. Move the cursor to the first line below marked --->. + + 2. Move the cursor so that it is on top of the first error. + + 3. Type r and then the character which should be there. + + 4. Repeat steps 2 and 3 until the first line is equal to the second one. + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. Now move on to lesson 1.3.3. + +NOTE: Remember that you should be learning by doing, not memorization. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.3: THE CHANGE OPERATOR + + + ** To change until the end of a word, type ce . ** + + 1. Move the cursor to the first line below marked --->. + + 2. Place the cursor on the u in lubw. + + 3. Type ce and the correct word (in this case, type ine ). + + 4. Press and move to the next character that needs to be changed. + + 5. Repeat steps 3 and 4 until the first sentence is the same as the second. + +---> This lubw has a few wptfd that mrrf changing usf the change operator. +---> This line has a few words that need changing using the change operator. + +Notice that ce deletes the word and places you in Insert mode. + cc does the same for the whole line. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.4: MORE CHANGES USING c + + + ** The change operator is used with the same motions as delete. ** + + 1. The change operator works in the same way as delete. The format is: + + c [number] motion + + 2. The motions are the same, such as w (word) and $ (end of line). + + 3. Move the cursor to the first line below marked --->. + + 4. Move the cursor to the first error. + + 5. Type c$ and type the rest of the line like the second and press . + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + +NOTE: You can use the Backspace key to correct mistakes while typing. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3 SUMMARY + + + 1. To put back text that has just been deleted, type p . This puts the + deleted text AFTER the cursor (if a line was deleted it will go on the + line below the cursor). + + 2. To replace the character under the cursor, type r and then the + character you want to have there. + + 3. The change operator allows you to change from the cursor to where the + motion takes you. eg. Type ce to change from the cursor to the end of + the word, c$ to change to the end of a line. + + 4. The format for change is: + + c [number] motion + +Now go on to the next lesson. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.1: CURSOR LOCATION AND FILE STATUS + + ** Type CTRL-G to show your location in the file and the file status. + Type G to move to a line in the file. ** + + NOTE: Read this entire lesson before executing any of the steps!! + + 1. Hold down the Ctrl key and press g . We call this CTRL-G. + A message will appear at the bottom of the page with the filename and the + position in the file. Remember the line number for Step 3. + +NOTE: You may see the cursor position in the lower right corner of the screen + This happens when the 'ruler' option is set (see :help 'ruler' ) + + 2. Press G to move you to the bottom of the file. + Type gg to move you to the start of the file. + + 3. Type the number of the line you were on and then G . This will + return you to the line you were on when you first pressed CTRL-G. + + 4. If you feel confident to do this, execute steps 1 through 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.2: THE SEARCH COMMAND + + + ** Type / followed by a phrase to search for the phrase. ** + + 1. In Normal mode type the / character. Notice that it and the cursor + appear at the bottom of the screen as with the : command. + + 2. Now type 'errroor' . This is the word you want to search for. + + 3. To search for the same phrase again, simply type n . + To search for the same phrase in the opposite direction, type N . + + 4. To search for a phrase in the backward direction, use ? instead of / . + + 5. To go back to where you came from press CTRL-O (Keep Ctrl down while + pressing the letter o). Repeat to go back further. CTRL-I goes forward. + +---> "errroor" is not the way to spell error; errroor is an error. +NOTE: When the search reaches the end of the file it will continue at the + start, unless the 'wrapscan' option has been reset. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.3: MATCHING PARENTHESES SEARCH + + + ** Type % to find a matching ),], or } . ** + + 1. Place the cursor on any (, [, or { in the line below marked --->. + + 2. Now type the % character. + + 3. The cursor will move to the matching parenthesis or bracket. + + 4. Type % to move the cursor to the other matching bracket. + + 5. Move the cursor to another (,),[,],{ or } and see what % does. + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + + +NOTE: This is very useful in debugging a program with unmatched parentheses! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.4: THE SUBSTITUTE COMMAND + + + ** Type :s/old/new/g to substitute 'new' for 'old'. ** + + 1. Move the cursor to the line below marked --->. + + 2. Type :s/thee/the . Note that this command only changes the + first occurrence of "thee" in the line. + + 3. Now type :s/thee/the/g . Adding the g flag means to substitute + globally in the line, change all occurrences of "thee" in the line. + +---> thee best time to see thee flowers is in thee spring. + + 4. To change every occurrence of a character string between two lines, + type :#,#s/old/new/g where #,# are the line numbers of the range + of lines where the substitution is to be done. + Type :%s/old/new/g to change every occurrence in the whole file. + Type :%s/old/new/gc to find every occurrence in the whole file, + with a prompt whether to substitute or not. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4 SUMMARY + + + 1. CTRL-G displays your location in the file and the file status. + G moves to the end of the file. + number G moves to that line number. + gg moves to the first line. + + 2. Typing / followed by a phrase searches FORWARD for the phrase. + Typing ? followed by a phrase searches BACKWARD for the phrase. + After a search type n to find the next occurrence in the same direction + or N to search in the opposite direction. + CTRL-O takes you back to older positions, CTRL-I to newer positions. + + 3. Typing % while the cursor is on a (,),[,],{, or } goes to its match. + + 4. To substitute new for the first old in a line type :s/old/new + To substitute new for all 'old's on a line type :s/old/new/g + To substitute phrases between two line #'s type :#,#s/old/new/g + To substitute all occurrences in the file type :%s/old/new/g + To ask for confirmation each time add 'c' :%s/old/new/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.1: HOW TO EXECUTE AN EXTERNAL COMMAND + + + ** Type :! followed by an external command to execute that command. ** + + 1. Type the familiar command : to set the cursor at the bottom of the + screen. This allows you to enter a command-line command. + + 2. Now type the ! (exclamation point) character. This allows you to + execute any external shell command. + + 3. As an example type ls following the ! and then hit . This + will show you a listing of your directory, just as if you were at the + shell prompt. Or use :!dir if ls doesn't work. + +NOTE: It is possible to execute any external command this way, also with + arguments. + +NOTE: All : commands must be finished by hitting + From here on we will not always mention it. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.2: MORE ON WRITING FILES + + + ** To save the changes made to the text, type :w FILENAME ** + + 1. Type :!dir or :!ls to get a listing of your directory. + You already know you must hit after this. + + 2. Choose a filename that does not exist yet, such as TEST. + + 3. Now type: :w TEST (where TEST is the filename you chose.) + + 4. This saves the whole file (the Vim Tutor) under the name TEST. + To verify this, type :!dir or :!ls again to see your directory. + +NOTE: If you were to exit Vim and start it again with vim TEST , the file + would be an exact copy of the tutor when you saved it. + + 5. Now remove the file by typing (Windows): :!del TEST + or (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.3: SELECTING TEXT TO WRITE + + + ** To save part of the file, type v motion :w FILENAME ** + + 1. Move the cursor to this line. + + 2. Press v and move the cursor to the fifth item below. Notice that the + text is highlighted. + + 3. Press the : character. At the bottom of the screen :'<,'> will appear. + + 4. Type w TEST , where TEST is a filename that does not exist yet. Verify + that you see :'<,'>w TEST before you press . + + 5. Vim will write the selected lines to the file TEST. Use :!dir or :!ls + to see it. Do not remove it yet! We will use it in the next lesson. + +NOTE: Pressing v starts Visual selection. You can move the cursor around + to make the selection bigger or smaller. Then you can use an operator + to do something with the text. For example, d deletes the text. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.4: RETRIEVING AND MERGING FILES + + + ** To insert the contents of a file, type :r FILENAME ** + + 1. Place the cursor just above this line. + +NOTE: After executing Step 2 you will see text from lesson 1.5.3. Then move + DOWN to see this lesson again. + + 2. Now retrieve your TEST file using the command :r TEST where TEST is + the name of the file you used. + The file you retrieve is placed below the cursor line. + + 3. To verify that a file was retrieved, cursor back and notice that there + are now two copies of lesson 1.5.3, the original and the file version. + +NOTE: You can also read the output of an external command. For example, + :r !ls reads the output of the ls command and puts it below the + cursor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5 SUMMARY + + + 1. :!command executes an external command. + + Some useful examples are: + (Windows) (Unix) + :!dir :!ls - shows a directory listing. + :!del FILENAME :!rm FILENAME - removes file FILENAME. + + 2. :w FILENAME writes the current Vim file to disk with name FILENAME. + + 3. v motion :w FILENAME saves the Visually selected lines in file + FILENAME. + + 4. :r FILENAME retrieves disk file FILENAME and puts it below the + cursor position. + + 5. :r !dir reads the output of the dir command and puts it below the + cursor position. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.1: THE OPEN COMMAND + + + ** Type o to open a line below the cursor and place you in Insert mode. ** + + 1. Move the cursor to the first line below marked --->. + + 2. Type the lowercase letter o to open up a line BELOW the cursor and place + you in Insert mode. + + 3. Now type some text and press to exit Insert mode. + +---> After typing o the cursor is placed on the open line in Insert mode. + + 4. To open up a line ABOVE the cursor, simply type a capital O , rather + than a lowercase o. Try this on the line below. + +---> Open up a line above this by typing O while the cursor is on this line. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.2: THE APPEND COMMAND + + + ** Type a to insert text AFTER the cursor. ** + + 1. Move the cursor to the start of the first line below marked --->. + + 2. Press e until the cursor is on the end of li . + + 3. Type an a (lowercase) to append text AFTER the cursor. + + 4. Complete the word like the line below it. Press to exit Insert + mode. + + 5. Use e to move to the next incomplete word and repeat steps 3 and 4. + +---> This li will allow you to pract appendi text to a line. +---> This line will allow you to practice appending text to a line. + +NOTE: a, i and A all go to the same Insert mode, the only difference is where + the characters are inserted. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.3: ANOTHER WAY TO REPLACE + + + ** Type a capital R to replace more than one character. ** + + 1. Move the cursor to the first line below marked --->. Move the cursor to + the beginning of the first xxx . + + 2. Now press R and type the number below it in the second line, so that it + replaces the xxx . + + 3. Press to leave Replace mode. Notice that the rest of the line + remains unmodified. + + 4. Repeat the steps to replace the remaining xxx. + +---> Adding 123 to xxx gives you xxx. +---> Adding 123 to 456 gives you 579. + +NOTE: Replace mode is like Insert mode, but every typed character deletes an + existing character. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.4: COPY AND PASTE TEXT + + ** Use the y operator to copy text and p to paste it ** + + 1. Move to the line below marked ---> and place the cursor after "a)". + + 2. Start Visual mode with v and move the cursor to just before "first". + + 3. Type y to yank (copy) the highlighted text. + + 4. Move the cursor to the end of the next line: j$ + + 5. Type p to put (paste) the text. Then type: a second . + + 6. Use Visual mode to select " item.", yank it with y , move to the end of + the next line with j$ and put the text there with p . + +---> a) this is the first item. + b) + + NOTE: You can also use y as an operator: yw yanks one word, + yy yanks the whole line, then p puts that line. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.5: SET OPTION + + + ** Set an option so a search or substitute ignores case ** + + 1. Search for 'ignore' by entering: /ignore + Repeat several times by pressing n . + + 2. Set the 'ic' (Ignore case) option by entering: :set ic + + 3. Now search for 'ignore' again by pressing n + Notice that Ignore and IGNORE are now also found. + + 4. Set the 'hlsearch' and 'incsearch' options: :set hls is + + 5. Now type the search command again and see what happens: /ignore + + 6. To disable ignoring case enter: :set noic + +NOTE: To remove the highlighting of matches enter: :nohlsearch +NOTE: If you want to ignore case for just one search command, use \c + in the phrase: /ignore\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6 SUMMARY + + 1. Type o to open a line BELOW the cursor and start Insert mode. + Type O to open a line ABOVE the cursor. + + 2. Type a to insert text AFTER the cursor. + Type A to insert text after the end of the line. + + 3. The e command moves to the end of a word. + + 4. The y operator yanks (copies) text, p puts (pastes) it. + + 5. Typing a capital R enters Replace mode until is pressed. + + 6. Typing ":set xxx" sets the option "xxx". Some options are: + 'ic' 'ignorecase' ignore upper/lower case when searching + 'is' 'incsearch' show partial matches for a search phrase + 'hls' 'hlsearch' highlight all matching phrases + You can either use the long or the short option name. + + 7. Prepend "no" to switch an option off: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7.1: GETTING HELP + + + ** Use the on-line help system ** + + Vim has a comprehensive on-line help system. To get started, try one of + these three: + - press the key (if you have one) + - press the key (if you have one) + - type :help + + Read the text in the help window to find out how the help works. + Type CTRL-W CTRL-W to jump from one window to another. + Type :q to close the help window. + + You can find help on just about any subject, by giving an argument to the + ":help" command. Try these (don't forget pressing ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7.2: CREATE A STARTUP SCRIPT + + + ** Enable Vim features ** + + Vim has many more features than Vi, but most of them are disabled by + default. To start using more features you should create a "vimrc" file. + + 1. Start editing the "vimrc" file. This depends on your system: + :e ~/.vimrc for Unix + :e ~/_vimrc for Windows + + 2. Now read the example "vimrc" file contents: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Write the file with: + :w + + The next time you start Vim it will use syntax highlighting. + You can add all your preferred settings to this "vimrc" file. + For more information type :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7.3: COMPLETION + + + ** Command line completion with CTRL-D and ** + + 1. Make sure Vim is not in compatible mode: :set nocp + + 2. Look what files exist in the directory: :!ls or :!dir + + 3. Type the start of a command: :e + + 4. Press CTRL-D and Vim will show a list of commands that start with "e". + + 5. Type d and Vim will complete the command name to ":edit". + + 6. Now add a space and the start of an existing file name: :edit FIL + + 7. Press . Vim will complete the name (if it is unique). + +NOTE: Completion works for many commands. Just try pressing CTRL-D and + . It is especially useful for :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7 SUMMARY + + + 1. Type :help or press or to open a help window. + + 2. Type :help cmd to find help on cmd . + + 3. Type CTRL-W CTRL-W to jump to another window. + + 4. Type :q to close the help window. + + 5. Create a vimrc startup script to keep your preferred settings. + + 6. When typing a : command, press CTRL-D to see possible completions. + Press to use one completion. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + This concludes Chapter 1 of the Vim Tutor. Consider continuing with + Chapter 2 which covers registers, marks and the use of text objects. + + It was intended to give a brief overview of the Vim editor, just enough to + allow you to use the editor fairly easily. It is far from complete as Vim + has many many more commands. + + Read the user manual next: ":help user-manual". + + For further reading and studying, this book is recommended: + Vim - Vi Improved - by Steve Oualline + Publisher: New Riders + The first book completely dedicated to Vim. Especially useful for beginners. + There are many examples and pictures. + See https://iccf-holland.org/click5.html + + This book is older and more about Vi than Vim, but also recommended: + Learning the Vi Editor - by Linda Lamb + Publisher: O'Reilly & Associates Inc. + It is a good book to get to know almost anything you want to do with Vi. + The sixth edition also includes information on Vim. + + This tutorial was written by Michael C. Pierce and Robert K. Ware, + Colorado School of Mines using ideas supplied by Charles Smith, + Colorado State University. E-mail: bware@mines.colorado.edu. + + Modified for Vim by Bram Moolenaar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.bar b/git/usr/share/vim/vim92/tutor/tutor1.bar new file mode 100644 index 0000000000000000000000000000000000000000..74c3889d67b9affbc607b8f7d37cc0b3971f1e0e --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.bar @@ -0,0 +1,983 @@ +=============================================================================== += G o t i k a m i n n W I M M - S c h a i n e r - Fassung 1.7 = +=============================================================================== += C H A P T E R - 1 = +=============================================================================== + + Dyr Wimm ist ayn gro mächtigs Blat, dös was mit aynn Wösn Befelh aufwartt; z + vil, däß myn s allsand in aynn Schainer wie dönn daader unterbräng. Der + Schainer ist yso aufbaut, däß yr halt netty die Befelh allsand bringt, wost + brauchst, däßst mit iem für s Eerste wirklich öbbs anfangen kanst. + Durchhinarechtn kanst di, wennst willst, in ayner halbetn Stund; dös haisst, + wennst di nit grooß mit n Pröbln und Tüftln aufhaltst. + + OBACHT: + Die Faudungen, wost daader finddst, gaand istig s Gwort öndern. Dösswögn + machst eyn n Böstn glei ayn Aamum von derer Dautticht daader. Haast alsnan + dös Gwort daader mit n Befelh "vimtutor bar" ausherlaassn, ist s ee schoon + ayn Aamum. + Mir kan s nit oft gnueg sagn, däß der Schainer daader istig gan n Üebn + ghoert. Also muesst schoon aau die Befelh +ausfüern, wennst ys gscheid ler- + nen willst. Mit n Lösn yllain ist s +nit taan! + + Ietz schaust grad non, däß dein Föststölltastn nit druckt ist; und aft geest + glei aynmaal mit dyr j-Tastn abwärts (yso laaufft dös nömlich), hinst däßst + de gantze Letzn 1.1.1 auf n Bildschirm haast. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.1: MIT N MÖRKL UMAYNANDFARN + +** Dyrmitst mit n Mörkl umaynandkimmst, druck h, j, k und l wie unt zaigt. ** + ^ Ayn Öslsbrugg: + k De Tastn h ist winster und +geet aau gan winster. + < h l > S l leit zesm und richtt si gan zesm. + j S j kan myn wie aynn Pfeil gan unt seghn. + v Mit n k kimmst gan n KOPF. + 1. Ietz ruedertst ainfach mit n Mörkl auf n Bildschirm umaynand, hinst däßst + di sicher füelst. + 2. Halt d Abhin-Tastn (j) druckt; aft rumplt s ainfach weiter. Netty yso + kimmst gan dyr naehstn Letzn. + + 3. Wie gsait, ietz bewögst di also mit derer Tastn gan dyr Letzn 1.1.2. + +Non öbbs: Allweil, wenn dyr niemer ganz wol ist, wasst öbbenn druckt haast, aft + zipfst ; naacher bist wider ganz gwon in dyr Befelhs-Artweis. + + + Nöbnbei gsait kimmst gwonerweil aau mit de Pfeiltastnen weiter. Aber + hjkl seind z haissn s Wimm-Urgstain; und de "Hörtn" seind ganz dyr- + für, däß myn bei +dene bleibt. Pröblt s ainfach aus! +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.2: ÖNN WIMM AUSSCHALTTN + + + ALSO, EE WENNST ÖBBS VON DAA UNT AUSFÜERST, LIS LIEBER ZEERST DE GANTZE LET- + ZN! + + 1. Druck d -Tastn, dyrmitst aau gwiß in dyr Befelhs-Artweis bist. + + 2. Demmlt :q! . + Daa dyrmit benddst ys Blat und verwirffst allss, wasst öbbenn göndert + haast. + + 3. Balst önn Eingib seghst, gib dö Faudung ein, wo di zo dönn Schainer brun- + gen haat, also vimtutor bar . + + 4. Also, wenn ietz allsse sitzt, naacherd füerst d Schritt 1 hinst 3 aus, mit + wasst ys Blat verlaasst und aft wider einhinkimmst. + +Anmörkung: Mit :q! verwirffst allss, wasst göndert older enther gschribn + haast. In aynn Öttlych Letznen lernst acht, wiest dös allss in ayner + Dautticht speichertst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.3: GWORT BARECHTN - LÖSCHN + + + ** Druck x , dyrmitst dös Zaichen unter n Mörkl löschst. ** + + 1. Bewög di mit n Mörkl auf de mit ---> angmörkte Zeil unt. + + 2. Zo n Faeler Verbössern farst mit n Mörkl netty auf dös Zaichen, dös wo + glöscht ghoert. + + 3. Druck de Tastn x , däßst dös überflüssige Zaichen löschst. + + 4. Ietz tuest so lang weiter mit 2 hinst 4, hinst däß dyr Saz stimmt. + +---> De Kkuue sprangg übber nn Maanad. + + 5. Wenn ietz de Zeil verbössert ist, geest gan dyr Letzn 1.1.4. weiter. + +Und ganz wichtig: Dyrweilst dönn Schainer durcharechtst, versuech nit öbbenn, + allss auswendig z lernen; nän, lern ainfach mit n Anwenddn! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.4: GWORT BARECHTN - EINFÜEGN + + + ** Druck i , dyrmitst öbbs einfüegst. ** + + 1. Bewög önn Mörkl zo dyr eerstn untignen Zeil, wo mit ---> angeet. + + 2. Dyrmitst de eerste Zeil wie de zwaitte machst, bewög önn Mörkl auf dös + eerste Zaichen NAACH derer Stöll, daa wo s Gwort eingfüegt werdn sollt. + + 3. Druck i und gib dös ein, was abgeet. + + 4. Wenn ieweils ayn Faeler verweitert ist, aft druck ; dyrmit kimmst + gan dyr Befelhsartweis zrugg. + So, und ietz tuest ainfach yso weiter, hinst däß dyr Saz stimmt. + +---> Daader gt dd öbbs b. +---> Daader geet diend öbbs ab. + + 5. Balst mainst, däßst ys Gwort-Einfüegn kanst, aft geest gan dyr Letzn 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.5: GWORT BARECHTN - ANFÜEGN + + + ** Druck A gan n Gwort Anfüegn. ** + + 1. Gee mit n Mörkl gan dyr eerstn untignen Zeil, wo ayn ---> dyrvor haat. + Daa ist s gleich, wo gnaun dyr Mörkl in derer Zeil steet. + + 2. Demmlt A und gib de entspröchetn Ergöntzungen ein. + + 3. Wennst mit n Anfüegn förtig bist, aft druckst , däßst wider eyn de + Befelhsartweis zruggkimmst. + + 4. So, und ietz geest aft non gan dyr zwaittn mit ---> angmörktn Zeil; und + daadl machst ys netty yso. + +---> In derer Zeil gee + In derer Zeil geet ayn Weeng ayn Gwort ab. +---> Aau daader stee + Aau daader steet öbbs Unvollstöndigs. + + 5. Wennst s Anfüegn von Gwort drauf haast, naacherd gee gan dyr Letzn 1.1.6. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.1.6: AYN DAUTTICHT BARECHTN + + + ** Mit :wq speichertst ayn Dautticht und verlaasst önn Wimm ganz. ** + + !! OBACHT: Ee wennst mit dönn alln daa unt weitertuest, lis zeerst de gantze + Letzn durch!! + + 1. Verlaaß also s Blat, wie s in dyr Letzn 1.1.2. haisst, mit :q! ! + + 2. Gib dö Faudung eyn n Eingib ein: vim Schainer . 'vim' ruefft s Blat + auf, und 'Schainer' haisst de Dautticht, wost barechtn willst. Dyrmit + haast also ayn Dautticht, dö wost barechtn kanst. + + 3. Ietz füegst öbbs ein older löschst öbbs, wiest ys in de vorignen Letznen + glernt haast. + + 4. Speichert de gönderte Dautticht und verlaaß önn Wimm mit :wq . + + 5. Schmeiß önn Wimmschainer neu an und gee gan dyr folgetn Zammenfassung. + + 6. Aft däßst de obignen Schritt glösn und käppt haast, kanst ys durchfüern. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.1 + + + 1. Dyr Mörkl werd mit de Tastnen hjkl older aau mit de Pfeiltastnen gsteuert. + h (winst) j (ab) k (auf) l (zes) + + 2. Um önn Wimm umbb n Eingib aus z ginnen, demmlt: vim DAUTTICHT . + + 3. Willst önn Wimm verlaassn und aau allss verwerffen, aft gibst ein: + und :q! . + Gan n Verlaassn und Speichern aber zipfst und :wq . + + 4. Willst dös Zaichen löschn, daa wo dyr Mörkl drauf ist, demmltst x . + + 5. Willst öbbs vor n Mörkl eingöbn, zipfst i und drafter . + Mechst ys aber eyn s Zeilnend anhinhöngen, benutzt ys A . + Und ainfach naach n Mörkl füegst ys mit a ein. + +Anmörkung: Druckst , kimmst eyn de Befelhsartweis zrugg older brichst + ayn Faudung ab, dö wo dyr schiefgangen ist. + + Ietz tue mit dyr Letzn 1.2 weiter. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.1: LÖSHFAUDUNGEN + + + ** Demmlt dw , dyrmitst ayn Wort löschst. ** + + 1. Druck , dyrmit s aau gwiß ist, däßst in dyr Befelhsartweis bist. + + 2. Bewög önn Mörkl zo dyr mit ---> angmörktn Zeil unt. + + 3. Und daa geest ietz auf n Anfang von aynn Wort, dös wo glöscht ghoert. + + 4. Zipf dw , däßst dös gantze Wort löschst. + + Nöbnbei: Dyr Buechstabn d erscheint auf dyr lösstn Zeil von n Bildschirm, + sobaldst n eingibst. Dyr Wimm wartt ietz drauf, däß öbbs kimmt, al- + so daader ayn w . Seghst freilich öbbs Anderts wie ayn d , + naacherd haast öbbs Falschs demmlt. Druck aft und pröblt + s non aynmaal. +---> Ayn Öttlych Wörter lustig ghoernd nit Fisper eyn dönn Saz einhin. + + 5. Äfert d Schritt 3 und 4, hinst däß dyr Saz pässt, und gee aft gan dyr + Letzn 1.2.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.2: NON MEERER LÖSHFAUDUNGEN + + + ** Gib d$ ein, däßst hinst eyn s Zeilnend löschst. ** + + 1. Druck , dyrmitst aau gwiß in dyr Befelhsartweis bist. + + 2. Bewög önn Mörkl hinst eyn de mit ---> angmörkte Zeil untn. + + 3. Gee mit n Mörkl auf s End von dyr faelerfreien Zeil, NAACH n eerstn . . + + 4. Zipf d$ , däßst hinst eyn s End von dyr Zeil löschst. + +---> Öbber haat s End von dyr Zeil doplt eingöbn. doplt eingöbn. + + + 5. Gee weiter gan dyr Letzn 1.2.3, dyrmitst versteest, was daader ablaaufft. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.3: PFEMERER UND WOLENDER + + + Vil Faudungen, wo s Gwort öndernd, sötznd si aus aynn Pfemerer und aynn Wo- + lend zamm. Bal i also öbbs löschn will, schreib i ainsting d und aft s "Wo- + lend", dös haisst also, "wolend", "wohin" däß i will - older was i halt gnaun + löschn will. + + + + + + + Daader also, was i wie löschn kan: + w - hinst eyn n Anfang von n naehstn Wort AANE dönn sein eersts Zaichen. + e - gan n End von n ietzundn Wort MIT dönn seinn lösstn Zaichen. + $ - zo n End von dyr Zeil MIT derer irn lösstn Zaichen. + + Also löscht de Tastnfolg de allss umbb n Mörkl hinst eyn s Wortend. +Anmörkung: Gib i grad dös zwaitte Zaichen yllain ein, ruckt halt dyr Mörkl + entspröchet weiter. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.4: MIT AYNN ZÖLER D WOLENDER ÄFERN + + + ** Gib i ayn Zal vor aynn Wolend ein, werd dös Sel entspröchet oft gangen. ** + + 1. Bewög önn Mörkl gan n Anfang von dyr Zeil mit ---> dyrvor unt. + + 2. Zipf 2w , däßst mit n Mörkl zwai Wörter weitergeest. + + 3. Zipf 3e , däßst mit n Mörkl auf s End von n drittn Wort kimmst. + + 4. Zipf 0 (aynn Nuller), däßst eyn n Anfang von dyr Zeil hinkimmst. + + 5. Widerhol d Schritt 2 und 3 mit verschaidne Zöler. + + ---> Dös ist ietz grad ayn Zeil zo n drinn Umaynanderruedern. + + 6. Gee weiter gan dyr Letzn 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.5: DURCH AYNN ZÖLER GLEI MEERER LÖSCHN + + + ** Ayn Zal vor aynn Pfemerer füert dönn entspröchet oft aus. ** + + Also, i mecht löschn, und zwaar öbbs Bestimmts, und dös so und so oft: Daa + dyrzue benutz i aynn Zöler: + d Zöler Wolend (also önn Bewögungsschrit) + + 1. Bewög önn Mörkl zo n eerstn Wort in GROOSSBUECHSTABN in dyr mit ---> an- + gmörktn Zeil. + + 2. Demmlt d2w , dyrmitst de ganz grooßgschribnen Wörter löschst. + + 3. Äfert d Schritt 1 und 2 mit dönn entspröchetn Zöler, dyrmitst de drauf- + folgetn ganz großgschribnen Wörter mit ayner ainzignen Faudung löschst: + + +---> Dö ABC DE Zeil FGHI JK LMN OP mit Wörter ist Q RS TUV ietz berichtigt. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.6: ARECHTN AUF ZEILN + + + ** Zipf dd , um ayn gantze Zeil z löschn. ** + + Weil s gro oft vürkimmt, däß myn gantze Zeiln löscht, kaamend schoon d Ent- + wickler von n Urwimm daa drauf, däß myn ainfach dd gan dönn Zwök schreibt. + + + 1. Bewög önn Mörkl gan dyr zwaittn Zeil in n untignen "Gedicht". + 2. Zipf dd , um dö Zeil z löschn. + 3. Ietz bewögst di gan dyr viertn Zeil. + 4. Zipf 2dd , um zwo Zeiln zo n Löschn. + +---> 1) Roosn seind root; +---> 2) Drunter ist s Koot. +---> 3) Veigerln seind blau. +---> 4) Umgrabn tuet s d Sau. +---> 5) D Ur sait de Zeit, +---> 6) Sait, däß s mi freut, +---> 7) Dirndl, dein Gschau. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.2.7: RUGGGÖNGIG MACHEN (RUGGLN) + + + ** Zipf u , dyrmitst de lösstn Faudungen ruggltst ** + ** older U , um ayn gantze Zeil widerherzstölln. ** + + 1. Bewög önn Mörkl gan dyr mit ---> angmörktn Zeil unt und gee dyrmit auf n + eerstn Faeler. + 2. Zipf x , däßst dös eerste z vile Zaichen löschst. + 3. Ietz demmlt u , dyrmitst de lösste Faudung ruggltst. + 4. Ietz behöb allsand Faeler auf dyr Zeil mit dyr Hilf von n Befelh x . + 5. Aft gibst ayn U (grooß) ein, däßst de Zeil wider yso hinbringst, wie s + gwösn ist. + 6. So, und ietz demmltst so oft u , hinst däßst s U und de andern Fau- + dungen rugggöngig gmacht haast. + 7. Und ietzet widerum schreibst so oft r , hinst däßst allsand Be- + felh widerhergstöllt, z haissn allsse rugg-grugglt haast (also d Rugggön- + gigmachungen rugggöngig gmacht). +---> Beerichtig d Faeller voon dehrer Zeiil und sttöll s mitt n Ruggruggln wi- + der her. + 8. Die Faudungen seind gro wichtig; sö helffend ainn närrisch weiter. + Ietz gee weiter gan dyr Zammenfassung von dyr Letzn 1.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.2 + + + 1. Um von n Mörkl aus hinst eyn s naehste Wort zo n Löschn, zipf: dw + 2. Um umbb n Mörkl hinst eyn s End von dyr Zeil zo n Löschn, demmlt d$ + 3. Dyrmitst ayn gantze Zeil löschst, gib ein: dd + 4. Mechst ayn Bewögung, ayn "Wolend", öfters, stöll de entspröchete Zal dyr- + vor: 3dw older aau: d3w + 5. Dyr Pfueg für ayn Önderungsfaudung lautt yso: + Pfemerer [Zal] Bewögungsschrit (Wolend) + Und dös haisst: + Dyr PFEMERER gibt an, WAS taan ghoert, öbbenn d = löschn (»delete«). + [ZAL] - Ayn Zal KAN myn angöbn, wenn myn halt ayn Wolend öfter habn will. + S WOLEND, also dyr Schrit WOHIN, besagt, auf was i aushin will, öbbenn + auf aynn Wortanfang ( w ), s End von dyr Zeil ( $ ) und so weiter. + + 6. Däßst eyn n Anfang von dyr Zeil hinkimmst, schreib aynn Nuller: 0 + + 7. Um öbbs Vorigs wider z ruggln, gib ein: u (klain also) + Um allsand Önderungen in ayner Zeil z ruggln, haast: U (also grooß) + Um "rugg-z-ruggln", also allss wider herzstölln, zipf: r + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.3.1: ANFÜEGN (»put«) + + + ** Zipf p , dyrmitst öbbs gnetty Glöschts naach n Mörkl anfüegst. ** + + 1. Bewög önn Mörkl gan dyr eerstn untignen Zeil mit ---> dyrvor. + + 2. Zipf dd , um sele Zeil z löschn und dyrmit in ayner Wimm-Osn zo n Spei- + chern. + + 3. Bewög önn Mörkl gan dyr Zeil c), ÜBER derer, daa wo de glöschte Zeil ein- + hinkemmen sollt. + + 4. So, und ietz gibst ainfach p ein, und schoon haast dö Zeil unter derer + mit n Mörkl drinn. + 5. Äfert d Schritt 2 hinst 4, hinst däßst allsand Zeiln yso naachynaynand + haast, wie s hinghoernd. + +---> d) Kanst du dös aau? +---> b) Veigerln seind blau. +---> c) Bedachtn kan myn lernen. +---> a) Roosn seind root. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.3.2: ERSÖTZN (»replace«) + + + ** Zipf rx , um dös Zaichen unter n Mörkl durch x z ersötzn. ** + + 1. Bewög önn Mörkl zo dyr eerstn untignen Zeil mit ---> dyrvor. + + 2. Bewög önn Mörkl, hinst däß yr auf n eerstn Faeler steet. + + 3. Zipf r und drafter dös Zaichen, wo dyrfür daa hinghoert. + + 4. Widerhol d Schritt 2 und 3, hinst däßst de eerste Zeil gmaeß dyr zwaittn + berichtigt haast: +---> Wie dö Zeit eingobn wurd, wurdnd ainike falsche Zastnen zipft! +---> Wie dö Zeil eingöbn wurd, wurdnd ainige falsche Tastnen zipft! + + 5. Ietz tue mit dyr Letzn 1.3.3 weiter. + +Anmörkung: Vergiß nit drauf, däßst mit n Anwenddn lernen solltst und nit öbbenn + mit n Auswendiglernen! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.3.3: ÖNDERN (»change«) + + + ** Um hinst eyn s Wortend z öndern, zipf ce . ** + + 1. Gee mit n Mörkl auf de eerste mit ---> angmörkte Zeil. + + 2. Ietz farst netty auf s "s" von Wstwr hin. + + 3. Zipf ce ein und aft d Wortberichtigung, daader also örter . + + 4. Druck und bewög önn Mörkl zo n naehstn Zaichen, wo göndert ghoert. + + 5. Äfert d Schritt 3 und 4, hinst däß dyr eerste Saz wie dyr zwaitte ist. + +---> Ainige Wstwr von derer Zlww ghhnnd mit n Öndern-Pfemerer gaauu. +---> Ainige Wörter von derer Zeil ghoernd mit n Öndern-Pfemerer göndert. + +ce löscht also s Wort und schlaaufft di eyn d Eingaab-Artweis. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 3.4.: NON MEERER ÖNDERUNGEN PFELFS c + + + ** D Löshfaudung c arechtt mit de nömlichnen Wolender wie dö mit d ** + + 1. Dyr Önder-Pfemerer arechtt anleich wie d Löshfaudung mit d , und zwaar + yso: + c [Zal] Bewögungsschrit (Wolend) + + 2. D Wolender seind de gleichn, öbbenn w für Wort und $ für s Zeilnend. + + + 3. Bewög di zo dyr eerstn untignen Zeil mit ---> . + + 4. Ietz geest auf dönn eerstn Faeler. + + 5. Zipf c$ , gib önn Rest von dyr Zeil wie in dyr zwaittn ein und druck aft + . +---> S End von derer Zeil sollt an de zwaitte daader anglichen werdn. +---> S End von derer Zeil sollt mit n Befelh c$ berichtigt werdn. + +Denk allweil dran, däßst iederzeit mit dyr Ruggtastn Faeler ausbössern kanst. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.3 + + + 1. Um ayn vorher glöschts Gwort anzfüegn, zipf p . Daa dyrmit werd dös + gantze Gwort NAACH n Mörkl angfüegt. Wenn s ayn gantze Zeil gwösn ist, + werd dö sel als de Zeil unterhalb n Mörkl eingfüegt. + + 2. Um dös Zaichen unter n Mörkl, also wo dyr Mörkl ist, z ersötzn, zipf r + und aft dös Zaichen, wost daadl habn willst. + + 3. Dyr Önderungspfemerer ( c = »change«) laasst ainn umbb n Mörkl hinst eyn s + End von n Wolend öndern. Zipf ce , dyrmitst umbb n Mörkl hinst eyn s End + von n Wort öndertst, und c$ hinst eyn s End von dyr Zeil. + + 4. Für d Önderung lautt dyr Pfueg: + + c [Zal] Wolend + +Ietz tue mit dyr naehstn Letzn weiter. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.4.1: MÖRKLSTÖLLUNG UND DAUTTICHTDARSTAND + +** Demmlt g, däßst önn Befand und Darstand von dyr Dautticht anzaigst. ** + ** Zipf G , dyrmitst auf ayn bestimmte Zeil in dyr Dautticht hinkimmst. ** + +Anmörkung: Lis dö gantze Letzn daader durch, ee wennst iewign öbbs unternimmst! + + 1. Druck g . Auf dös hin erscheint auf derer Seitt ganz unt ayn Dar- + standsmeldung mit n Dauttichtnam und n Befand innerhalb dyr Dautticht. + Mörk dyr de Zeilnnummer für n Schrit 3. + +Anmörkung: Müglicherweis seghst aau önn Mörklbefand in n zesmen untern Bild- + schirmögg. Aft ist s "Lindl" (»ruler«) eingstöllt; meerer über dös + laasst dyr dyr Befelh :help 'ruler' ausher. + 2. Druck G , um an s End von dyr Dautticht z kemmen. + gg gibst ein, däßst gan n Anfang von dyr Dautticht aufhinkimmst. + + 3. Gib d Nummer von derer Zeil ein, daa wost vorher warst, und aft non G . + Dös bringt di zrugg gan seler Zeil, daa wost stuenddst, wiest dös eerste + Maal g gadruckst. + + 4. Wennst di sicher gnueg füelst, aft füer d Schritt 1 hinst 3 aus. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.4.2: DYR BEFELH ZO N SUECHEN + + + ** Zipf / und dyrnaach aynn Ausdruk, um selbignen zo n Suechen. ** + + 1. Du gibst also in dyr Befelhsartweis s Zaichen / ein. Dös sel wie aau dyr + Mörkl erscheinend drauf unt auf n Schirm, netty wie bei dyr Faudung : . + + 2. Ietz zipf Faeeler . Netty um dös 'Faeeler' willst ietz suechen. + + 3. Willst um gnaun dönn Ausdruk weitersuechen, zipf ainfach n (wie »next«). + Willst hinzrugg suechen, aft gibst N ein. + + 4. Um von Haus aus zruggaus z suechen, nimm ? statt / her. + + 5. Dyrmitst wider daa hinkimmst, wost herkemmen bist, nimm o , und dös + öfter, wennst weiter zrugg willst. Mit i widerum kimmst vorwärts. + +---> Aynn Faeler schreibt myn nit "Faeeler"; Faeeler ist ayn Faeler + +Anmörkung: Wenn d Suech s Dauttichtend dyrraicht haat, geet s eyn n Anfang wi- + der weiter dyrmit, men Sach dyr Schaltter 'wrapscan' wär auf aus. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.4.3: DE GÖGNKLAMMERN FINDDN + + + ** Zipf % , um de entspröchete Klammer ) , ] older } z finddn. ** + + 1. Sötz önn Mörkl auf iewign aine von dene drei Klammern ( , [ older { + in dyr untignen Zeil, wo mit ---> angmörkt ist. + + 2. Ietzet zipf s Zaichen % . + + 3. Dyr Mörkl geet ietz auf de pässete schliessete Klammer. + + 4. Ietz demmlt % , und dyrmit kimmst gan dyr öffneretn Klammer zrugg. + + 5. Sötz önn Mörkl auf ayn anderne Klammer von ({[]}) und pröblt % aus. + +---> Dös ( ist blooß ayn Pochzeil ( mit [ verschaidne ] { Klammern } drinn. )) + +Anmörkung: Um dö Müglichkeit gaast bsunders froo sein, wennst aynmaal in aynn + Spaichgwort verzweiflt ayn faelete Gögnklammer suechst! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.4.4: D ERSÖTZUNGSFAUDUNG (»substitute«) + + + ** Zipf :s/alt/neu/g , um 'alt' durch 'neu' zo n Ersötzn. ** + + 1. Gee mit n Mörkl zo dyr unt steehetn mit ---> angmörktn Zeil. + + 2. Zipf :s/dee/de . Der Befelh ersötzt alsnan grad dös +eerste "dee", + wo vürkimmt. + + 3. Ietz pröblt s mit :s/dee/de/g . Dös zuesötzliche g ("Pflok" nennt myn + öbbs Sölchers) bewirkt, däß allss, was dyrmit kennzaichnet ist, innerhalb + von dyr ainn Zeil ersötzt werd. + +---> Dee schoenste Zeit, däß myn dee Blüemln anschaut, ist dee schoene Lan- + gesszeit. + 4. Um ietz allsand Suechbegriff innerhalb von zwo Zeiln zo n Öndern, zipf + :#,#s/alt/neu/g , wobei # ieweils für de eerste und lösste Zeil von dönn + Pfraich steet. + :%s/alt/neu/g zipfst, däßst d Vürkemmen in dyr gantzn Dautticht öndertst. + Mit :%s/alt/neu/gc finddst allsand Vürkemmen in dyr gsamtn Dautticht; + daa werst aber zeerst non gfraagt, obst ys ersötzn willst older nity. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.4 + + 1. g zaigt dönn ietzundn Dauttichtbefand und önn Darstand dyrvon an. + G bringt di an s End von dyr Dautticht. + G bringt di gan dyr entspröchetn Zeilnnummer. + gg geet +grad yso. + gg bringt di zo dyr eerstn Zeil. + 2. D Eingaab von / mit aynn Ausdruk suecht VÜRSHLING um dönn Ausdruk. + Gibst ? und aynn Suechbegrif ein, suecht s um dönn ÄRSHLING. + Zipf naach ayner Suech n ; naacherd werd in de gleiche Richtung weiter- + gsuecht. Mit N geet s umkeerter weiter. + o bringt di zo ölterne Befändd zrugg, i zo neuerne. + + 3. D Eingaab von % , wenn dyr Mörkl auf ainer von dene Klammern steet: ({[ + )]} , bringt di zo dyr Gögnklammer. + + 4. Um dös eerste Vürkemmen von "alt" in ayner Zeil durch "neu" z ersötzn, + zipf :s/alt/neu . + Um allsand in ayner Zeil z ersötzn, zipf :s/alt/neu/g . + Mechst allss in zwo Zeiln ersötzn, demmlt zo n Beispil :5,6s/alt/neu/g . + Mechst allss in dyr gantzn Dautticht ersötzn, gib ein: :%s/alt/neu/g . + Willst ayn ieds Maal bstaetln, höng 'c' wie »confirm« hint anhin. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.5.1: ZWISCHNDRINN AYNN AUSSERIGNEN BEFELH AUSFÜERN + + + ** Willst ayn Gfäßfaudung ausfüern, gib ainfach dö sel naach :! ein. ** + + 1. Zipf dönn bekanntn Befelh : , dyrmitst mit n Mörkl auf n Bildschirm + ganz abhin kimmst. Draufhin kanst aynn gwonen Gfäßbefelh eingöbn. + + 2. Zeerst kimmt aber non ayn Ruefzaichen ! . Und ietzet haast d Müglich- + keit, ayn beliebige ausserige Gfäßfaudung auszfüern. + + 3. Als Beispil zipf :!ls ; und schoon haast ayn Auflistung von deinn + Verzaichniss, netty wie wennst ganz gwon in n Eingib wärst. Geet ls + aus iewign aynn Grund nit, aft pröblt s mit :!dir . + +Also non aynmaal: Mit dönn Angang kan ayn iede beliebige ausserige Faudung aus- + gfüert werdn, aau mit Auerwerdd. + +Und wolgmörkt: Alle Befelh, wo mit : angeend, müessend mit bstö- + tigt werdn. Dös dyrsagn myr fürbaß +niemer. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.5.2: NON MEERER DRÜBER, WIE MYN DAUTTICHTN SCHREIBT + + + ** Um öbbs Gönderts neu z speichern, zipf :w NEUER_DAUTTICHTNAM . ** + + 1. Zipf :!dir older :!ls , däßst dyr ayn Auflistung von deinn Verzaich- + niss ausherlaasst. Däßst drafter eingöbn muesst, waisst ee schoon. + + 2. Suech dyr aynn Dauttichtnam aus, dönn wo s non nit geit, öbbenn POCH . + + 3. Ietz demmlt: :w POCH (also mit POCH als dönn neuen Dauttichtnam). + + 4. Dös speichert ietz de gantze Dautticht, also önn Wimmschainer, unter dönn + Nam POCH. Dös kanst leicht überprüeffen, indem däßst ainfach :!ls older + :!dir zipfst und dyrmit deinn Verzaichnissinhalt seghst. + +Anmörkung: Stigst ietz aus n Wimm aus und gännst n aft wider mit vim POCH , + naacherd wär dö Dautticht ayn gnaune Aamum von n Schainer dyrselbn, + wiest n gspeichert haast. + + 5. Ietz verweitert dö Dautticht - fallsst s Fenstl haast - , mit :!del POCH + beziehungsweis bei aynn Unixgebäu mit :!rm POCH . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.5.3: AYNN TAIL VON N GWORT ZO N SPEICHERN AUSWALN + +** Um aynn Tail von dyr Dautticht z speichern, zipf v [Wolend] :w DAUTTICHT ** + + 1. Ruck önn Mörkl auf netty dö Zeil daader. + + 2. Demmlt v und gee mit n Mörkl auf dönn fümftn Auflistungspunt untet. Du + seghst glei, däß s Gwort vürherghöbt erscheint. + + 3. Druck s Zaichen : . Ganz unt auf n Bildschirm erscheint :'<,'> . + + 4. Zipf w POCH , wobei s dönn Dauttichtnam POCH non nit geit. Vergwiß di, + däßst dös :'<,'>w POCH aau +seghst, ee wennst druckst. + + 5. Dyr Wimm schreibt de ausgwaltn Zeiln eyn de Dautticht POCH einhin. Benutz + :!dir older :!ls , däßst dös überprüeffst. Lösh s fein nit öbbenn! Mir + brauchend s nömlich für de naehste Letzn. + +Anmörkung: Druckt myn v , ginnt d Sichtisch-Auswal. Du kanst mit n Mörkl um- + aynandfarn, um d Auswal z veröndern. Drafter kan myn mit yn aynn + Pfemerer mit dönn Gwort öbbs machen. Zo n Beispil löscht d dös + Gwort. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.5.4: EINLÖSN UND ZAMMENFÜERN VON DAUTTICHTN + + + ** Um önn Inhalt von ayner Dautticht einzlösn, zipf :r DAUTTICHTNAM ** + + 1. Sötz önn Mörkl über dö Zeil daader. + +OBACHT: Aft däßst önn Schrit 2 ausgfüert haast, seghst auf aynmaal öbbs aus + dyr Letzn 1.5.3. Bewög di naacherd wider abwärts, dyrmitst dö Letzn wi- + derfinddst. + 2. Ietz lis dein Dautticht POCH ein, indem däßst d Faudung :r POCH aus- + füerst, wobei wie gsait POCH für dönn von dir ausgsuechtn Dauttichtnam + steet. De einglösne Dautticht werd unterhalb dyr Mörklzeil eingfüegt. + + 3. Um zo n Überprüeffen, ob de Dautticht aau gwiß einglösn ist, gee zrugg; + und du seghst, däß s ietz zwo Ausförtigungen von dyr Letzn 1.5.3. geit, s + Urniss und de eingfüegte Dauttichtfassung. + +Anmörkung: Du kanst aau d Ausgaab von aynn Ausserigbefelh einlösn. Zo n Bei- + spil list :r !ls d Ausgaab von dyr Faudung ls ein und füegt s + unterhalb n Mörkl ein. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.5 + + + 1. :!FAUDUNG füert aynn ausserignen Befelh aus. + + Daader ayn Öttlych gwänddte Beispiler: + (Fenstl) (Unix - Linux) + :!dir :!ls - listt s Verzaichniss auf. + :!del DAUTTICHT :!rm DAUTTICHT - verweitert sele Dautticht. + + 2. :w DAUTTICHT speichert de ietzunde Wimmdautticht unter dönn besagtn Nam. + + 3. v WOLEND :w DAUTTICHTNAM schreibt de sichtisch ausgwaltn Zeiln eyn de + Dautticht mit seln Nam. + + 4. :r DAUTTICHTNAM ladt sele Dautticht und füegt s unterhalb n Mörklbefand + ein. + + 5. :r !dir list d Ausgaab von dyr Faudung dir und füegt s unterhalb n + Mörklbefand ein. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.6.1: ZEIL ÖFFNEN (»open«) + + + ** Zipf o , um ayn Zeil unterhalb n Mörkl z öffnen und eyn d ** + ** Einfüegartweis z kemmen. ** + + 1. Bewög önn Mörkl zo dyr eerstn mit ---> angmörktn Zeil unt. + + 2. Zipf o (klain), um ayn Zeil UNTERHALB n Mörkl z öffnen und mit dyr Ein- + füegartweis weiterztuen. + + 3. Ietzet zipf ayn Weeng öbbs und druck , um d Einfüegartweis z ver- + laassn. +---> Mit o werd dyr Mörkl in dyr Einfüegartweis auf de offene Zeil gsötzt. + + 4. Um ayn Zeil OBERHALB n Mörkl aufzmachen, gib ainfach ayn groosss O statt + yn aynn klainen ein. Versuech dös auf dyr untignen Zeil. + +---> Öffnet ayn Zeil über derer daader mit O , wenn dyr Mörkl auf derer Zeil + ist. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.6.2: GWORT ANFÜEGN (»append«) + + + ** Zipf a , um öbbs NAACH n Mörkl einzfüegn. ** + + 1. Bewög önn Mörkl gan n Anfang von dyr eerstn Üebungszeil mit ---> unt. + + 2. Druck e , hinst däß dyr Mörkl an n End von Zei steet. + + 3. Zipf ayn klains a , um öbbs NAACH n Mörkl anzfüegn. + + 4. Vergöntz dös Wort wie in dyr Zeil drunter. Druck , um d Schreib- + Artweis z verlaassn. + + 5. Bewög di mit e zo n naehstn ungantzn Wort und widerhol d Schritt 3 und + 4. + +---> Dö Ze biett ayn Glögn , ayn Gwort in ayner Zeil anzfü. +---> Dö Zeil biett ayn Glögnet, ayn Gwort in ayner Zeil anzfüegn. + +Anmörkung: a , i und A bringend ainn gleichermaaßn eyn d Einfüegartweis; + dyr ainzige Unterschaid ist, WO mit n Einfüegn angfangt werd. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.6.3: AYN ANDERNE WEIS ZO N ERSÖTZN (»replace«) + + + ** Demmlt ayn groosss R , um meerer als wie grad ain Zaichen z ersötzn. ** + + 1. Bewög önn Mörkl zo dyr eerstn untignen, mit ---> angmörktn Zeil. + Gee mit n Mörkl gan n Anfang von n eerstn xxx . + + 2. Ietz druck R und zipf sele Zal, wo drunter in dyr zwaittn Zeil steet, + yso däß de sel s xxx ersötzt. + + 3. Druck , um d Ersötzungsartweis z verlaassn. Du gspannst, däß dyr + Rest von dyr Zeil unveröndert bleibt. + + 4. Äfert die Schritt, um dös überblibne xxx z ersötzn. + +---> S Zunddn von 123 zo xxx ergibt xxx. +---> S Zunddn von 123 zo 456 ergibt 579. + +Anmörkung: D Ersötzungsartweis ist wie d Einfüegartweis, aber ayn ieds eindem- + mlte Zaichen löscht ayn vorhanddns. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.6.4: GWORT AAMEN UND EINFÜEGN + + ** Benutz önn Pfemerer y , um öbbs z aamen, und p , um öbbs einzfüegn. ** + + 1. Gee zo dyr mit ---> angmörktn Zeil unt und sötz önn Mörkl hinter "a)". + + 2. Ginn d Sichtisch-Artweis mit v und bewög önn Mörkl gnaun vor "eerste". + + 3. Zipf y , um dönn vürherghöbtn Tail z aamen. + + 4. Bewög önn Mörkl gan n End von dyr naehstn Zeil: j$ + + 5. Demmlt p , um dös Gwort einzfüegn, und aft: a zwaitte . + + 6. Benutz d Sichtischartweis, um " Eintrag." auszwaln, aam s mittls y , be- + wög di gan n End von dyr naehstn Zeil mit j$ und füeg s Gwort dortn mit + p an. + +---> a) dös ist dyr eerste Eintrag. + b) +Anmörkung: Du kanst y aau als Pfemerer verwenddn; yw zo n Beispil aamt + hinst eyn n naehstn Wortanfang (aane dönn selber). +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.6.5: SCHALTTER SÖTZN + +** Sötz aynn Schaltter yso, däß ayn Suech older Ersötzung Grooß- und Klain- ** + ** schreibung übergeet. ** + + 1. Suech um 'übergee", indem däßst /übergee eingibst. + Widerhol d Suech ayn Öttlych Maal, indem däßst de Tastn n druckst. + + 2. Sötz de Zwisl - önn Schaltter - 'ic' (»ignore case«), indem däßst :set ic + eingibst. + 3. Ietz suech wider um 'übergee' und tue aau wider mit n weiter. Daa fallt + dyr auf, däß ietz öbbenn aau Übergee und ÜBERGEE hergeet. + + 4. Sötz de Zwisln 'hlsearch' und 'incsearch' pfelfs: :set hls is + + 5. Widerhol d Suech und bobacht, was ietz gschieght: /übergee + + 6. Däßst grooß und klain wider gwon unterscheidst, zipf: :set noic + +Anmörkung: Mechst de Tröffer niemer vürherghöbt seghn, gib ein: :nohlsearch +Anmörkung: Sollt klain/grooß bei ayner ainzignen Suech wurst sein, benutz \c + in n Suechausdruk: /übergee\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.6 + + 1. Zipf o , um ayn Zeil UNTERHALB n Mörkl z öffnen und d Einfüegartweis z + ginnen. + Zipf O , um ayn Zeil OBERHALB n Mörkl z öffnen. + + 2. Zipf a , um NAACH n Mörkl ayn Gwort einzfüegn. + Zipf A , um ayn Gwort naach n Zeilnend anzfüegn. + + 3. D Faudung e bringt di gan n End von aynn Wort. + + 4. Dyr Pfemerer y (»yank«) aamt öbbs, p (»put«) füegt dös ein. + + 5. Ayn groosss R geet eyn d Ersötzungsartweis, hinst däß myn druckt. + + 6. D Eingaab von ":set xxx" sötzt de Zwisl "xxx". Ayn Öttlych Zwisln seind: + 'ic' 'ignorecase' Grooß/klain wurst bei ayner Suech + 'is' 'incsearch' Zaig aau schoon ayn Tailüberainstimmung + 'hls' 'hlsearch' Höb allsand pässetn Ausdrück vürher + Dyr Schaltternam kan in dyr Kurz- older Langform angöbn werdn. + + 7. Stöll yn ayner Zwisl "no" voran, däßst ys abschalttst: :set noic +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.7.1: AYN HILFGWORT AUFRUEFFEN + + + ** Nutz dös einbaute Hilfgebäu, de "Betribsanlaittung". ** + + Eyn n Wimm ist ayn ausfüerliche "Gebrauchsanweisung" einbaut. Für s Eerste + pröblt ainfach ains von dene dreu aus: + - Druck d -Tastn, wennst öbbenn aine haast. + - Druck de Tastn , fallsst ys haast. + - Zipf :help + + Lis di eyn s Hilffenster ein, dyrmitst draufkimmst, wie dös mit dyr Hilf geet. + Demmlt w w , um von ainn Fenster zo n andern zo n Springen. + Demmlt :q , um s Hilffenster zo n Schliessn. + + Du kanst zo so guet wie allssand ayn Hilf finddn, indem däßst yn dyr Faudung + :help aynn Auerwerd naachstöllst und istig nit vergisst. Pröblt dös: + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.7.2: ERSTÖLL AYN GIN-SCHRIPF + + + ** Mutz önn Wimm mit de einbautn Faehigkeitn auf. ** + + Dyr Wimm besitzt ayn Wösn Schäftungen, wo über n Urwimm aushingeend, aber de + meerern dyrvon seind in dyr Vorgaab ausgschaltt. Dyrmitst meerer aus n Wimm + ausherholst, erstöllst ayn "vimrc"-Dautticht. + + 1. Lög ayn "vimrc"-Dautticht an; dös geet ie naach Betribsgebäu verschidn: + :e ~/.vimrc für s Unix + :e ~/_vimrc bei n Fenstl + + 2. Ietz lis önn Inhalt von dyr Beispil-"vimrc"-Dautticht ein: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Speichert de Dautticht mit: + :w + + 4. Bei n naehstn Gin von n Wimm ist aft d Füegnussvürherhöbung zuegschalttn. + Du kanst dyr allss eyn dö Dautticht einhinschreibn, wasst bständig habn + willst. Meerer dyrzue erfarst unter: :help vimrc-intro +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Letzn 1.7.3: VERGÖNTZN + + + ** Befelhszeilnvergöntzung mit d und ** + + 1. Vergwiß di, däß dyr Wimm nit auf n Urwimm-"Glais" fart: :set nocp + + 2. Schaug naach, wölcherne Dauttichtn däß s in n Verzaichniss geit: :!ls + older :!dir + 3. Zipf önn Anfang von ayner Faudung: :e + + 4. Druck d , und dyr Wimm zaigt ayn Listn von Faudungen, wo mit "e" + angeend. + 5. Druck , und dyr Wimm vervollstöndigt önn Faudungsnam zo ":edit". + + 6. Füeg ayn Laerzaichen und önn Anfang von ayner besteehetn Dautticht an: + :edit DAU + + 7. Druck . Dyr Wimm vergöntzt önn Nam, dös haisst, wenn yr aindeuttig + ist. +Anmörkung: D Vergöntzung geit s für aynn Hauffen Faudungen. Versuech ainfach + d und . Bsunders nützlich ist dös bei :help . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZAMMENFASSUNG VON DYR LETZN 1.7 + + + 1. Zipf :help oder druck oder , um ayn Hilffenster z öffnen. + + 2. Zipf :help FAUDUNG , um auf ayn Hilf gan aynn Befelh z kemmen. + + 3. Zipf w w , um zo n andern Fenster z springen. + + 4. Zipf :q , um s Hilffenster z schliessn. + + 5. Erstöll ayn vimrc-Ginschripf zuer Sicherung von deine Mötzneinstöllungen. + + 6. Druck d , aft däßst naach : ayn Faudung angfangt haast, dyr- + mitst mügliche Vergöntzungen anzaigt kriegst. + Druck für ain Vervollstöndigung yllain. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Dös wär ietzet s End von n Wimmschainer. Gangen ist s daa drum, aynn kurtzn + und bündignen Überblik über s Blat WIMM z lifern, netty vil gnueg, däß myn + für s Eerste wirklich öbbs dyrmit anfangen kan. Dyrmit ist s aber auf kain + Weitn non nit taan; dyr Wimm haat schoon non vil meerer auf Lager. Lis als + Naehsts aynmaal s Benutzerhandbuech: :help user-manual + + Zo n Weiterlösn und Weiterlernen wör dös Buech daader zo n Empfelhen: + Vim - Vi Improved - von n OUALLINE Steve + Verlaag: New Riders + Dös ist dös eerste Buech, wo ganz yn n Wimm gwidmt ist, netty dös Grechte für + Anfönger. Es haat ayn Wösn Beispiler und aau Bilder drinn. + See https://iccf-holland.org/click5.html + + Dös folgete Buech ist schoon ölter und meerer über n Urwimm als wie über n + Wimm, aber aau zo n Empfelhen: Textbearbeitung mit dem vi-Editor - von dyr + LAMB Linda und n ROBBINS Arnold - Verlaag O'Reilly - Buechlaittzal (ISBN): + 3897211262 + In dönn Buech kan myn fast allss finddn, was myn mit n Urwimm angeen mecht. + De söxte Ausgaab enthaltt aau schoon öbbs über n Wimm. + Als ietzunde Bezugniss für d Fassung 7 und ayn pfrenge Einfüerung dient dös + folgete Buech: + vim ge-packt von n WOBST Reinhard + mitp-Verlaag, Buechlaittzal 978-3-8266-1781-2 + Trotz dyr recht pfrengen Darstöllung ist s durch seine viln nützlichnen Bei- + spiler aau für Einsteiger grad grecht. Probhaeupster und de Beispilschripfer + seind zesig zo n Kriegn; see https://iccf-holland.org/click5.html + + Verfasst habnd dönn Schainer dyr PIERCE Michael C. und WARE Robert K. von dyr + Kolraader Knappnschuel (Colorado School of Mines). Er beruet auf Entwürff, wo + dyr SMITH Charles von dyr Kolraader Allschuel (Colorado State University) + zuer Verfüegung gstöllt haat. Gundpost: bware@mines.colorado.edu + Für n Wimm haat n dyr MOOLENAAR Bram barechtt. + De bairische Übersötzung stammt von n HELL Sepp 2009, ayn Weeng überarechtt + 2011. Sein Gundpostbrächt ist sturmibund@t-online.de + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.bg b/git/usr/share/vim/vim92/tutor/tutor1.bg new file mode 100644 index 0000000000000000000000000000000000000000..0426291e0748d88f983daac185056793c251d797 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.bg @@ -0,0 +1,1037 @@ +=============================================================================== += Добре дошли в самоучителя на V I M - Версия 1.7 = +=============================================================================== + + Vim е много мощен редактор с много команди - твърде много, за да бъдат + обяснени в ръководство като това. Този самоучител е създаден, за да обясни + достатъчно от тях, така че да можете да използвате Vim за всякакви цели. + + Времето, необходимо за уроците, е около 25-30 минути, в зависимост от + това, колко време ви трябва за упражненията. + + ВНИМАНИЕ! + Командите в уроците ще променят текста им. Запишете файла другаде, за да + се упражнявате (ако сте отворили самоучителя с "vimtutor", това вече е + направено). + + Важно е да се запомни, че този самоучител е съставен с цел да се учите + чрез употреба. Това означава да изпълнявате командите, за да ги научите + правилно. Ако просто четете текста, ще забравите командите! + + + И така, уверете се, че клавишът CapsLock не е натиснат, и натиснете клавиша + j няколко пъти, така че Урок 1.1 да се побере на екрана. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.1: ПРИДВИЖВАНЕ НА ПОКАЗАЛЕЦА + + + ** За да преместите показалеца, натискайте клавишите h,j,k,l както е указано. ** + ^ + k Подсказка: Клавишът h е вляво и премества показалеца наляво. + < h l > Клавишът l е вдясно и премества показалеца надясно. + j Клавишът j прилича на стрелка, насочена надолу. + v + 1. Движете показалеца насам-натам по екрана, докато свикнете. + + 2. Задръжте клавиша за преместване надолу (j), докато започне да повтаря + действието си. Сега знаете как да се придвижите до следващия урок. + + 3. Използвайте клавиша за движение надолу, за да стигнете до Урок 1.2. + +Важно! Ако се окаже, че не сте сигурни какво сте въвели, натиснете , за да + отидете в нормален режим. След това въведете желаната команда отново. + +Важно! Клавишите със стрелки би трябвало също да работят, но ако използвате + hjkl ще можете да се придвижвате по-бързо, след като свикнете. Наистина! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.2: Излизане от VIM (quit) + + + Важно!!! Преди да изпълните която и да е от стъпките по-долу, прочетете + целия урок!!! + + 1. Натиснете клавиша (за да се уверите, че сте в нормален режим). + + 2. Напишете: :q! . + Така излизате от редактора без да записвате промените, които сте направили. + + 3. Върнете се тук като изпълните командата, с която пуснахте този самоучител. + Това ще да е: vimtutor + + 4. Ако сте сигурни, че сте запомнили стъпките от 1 до 3, изпълнете ги и + влезте отново в редактора. + +Внимание! :q! отхвърля всички промени, които сте направили. След + няколко урока ще се научите как да записвате промени във файл. + + 5. Придвижете показалеца надолу до Урок 1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.3: ПРОМЯНА НА ТЕКСТ - ИЗТРИВАНЕ (DELETE) + + + ** Натиснете x , за да изтриете буквата под показалеца. ** + + 1. Придвижете показалеца до реда по-долу, означен със --->. + + 2. За да поправите грешките, придвижете показалеца върху буквата, + която ще триете. + + 3. Натиснете клавиша x, за да изтриете нежеланата буква. + + 4. Повтаряйте стъпки от 2 до 4, докато поправите изречението. + +---> Кккравата сскоочии връъъъзз ллуннатааа. + + 5. След като горният ред е вече поправен, можем да отидем на Урок 1.4. + +Важно! Като правите този урок, не се опитвайте да помните, учете се с правене. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.4: ПРОМЯНА НА ТЕКСТ - ВЪВЕЖДАНЕ (INSERT) + + + ** Бележка на преводача ** + В упражненията нататък ще ви се налага да въвеждате текст на български. Vim + притежава собствена система за въвеждане на не-латински букви. За да можете + да пишете български букви, докато сте в режим за въвеждане, и едновременно с + това командите ви да се въвеждат с латински букви, направете следното: + + Натиснете , за да се уверите, че не сте в режим за въвеждане. + + Въведете ":set keymap=bulgarian-phonetic" или ":set keymap=bulgarian-bds" + (без кавичките!), в зависимост от това коя подредба предпочитате. Забележете, + че щом въведете : , те ще се появят в дъното на екрана. Вече можете да + въвеждате български букви, без да ползвате системната клавиатурна подредба. + + За да превключвате между двете подредби, докато сте в режим за въвеждане, + натискайте CTRL-^ (дръжте натиснати CTRL и SHIFT и натиснете ^). + + + ** Натиснете i, за да въведете текст. ** + + 1. Придвижете показалеца до първия ред долу, означен със --->. + + 2. За да направите първия ред същия като втория, придвижете показалеца върху + първата буква СЛЕД мястото, където трябва да бъде въведен текстът. + + 3. Натиснете i и напишете каквото трябва да се добави. + + 4. След поправяне на всяка грешка натискайте , за да се върнете към + Нормален режим. Повтаряйте стъпки от 2 до 4, докато поправите изречението. + +---> Част текс липс н тзи . +---> Част от текста липсва на този ред. + + 5. След като усвоите въвеждането на текст, отидете на Урок 1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.5: ПРОМЯНА НА ТЕКСТ - ДОБАВЯНЕ (APPEND) + + + ** Натиснете A (SHIFT+a) , за да добавите текст. ** + + 1. Придвижете показалеца до реда долу, означен със --->. + Няма значение на коя буква в реда се намира показалеца. + + 2. Натиснете A и добавете каквото е нужно. + + 3. След като сте добавили каквото е нужно, натиснете , за да се върнете + в Нормален режим. + + 4. Придвижете показалеца до втория ред означен със ---> и повторете стъпки 2, + и 3, за да поправите изречението. + +---> Има текст, който липсва + Има текст, които липсва на този ред. +---> Тук също има текст, + Тук също има текст, който липсва. + + 5. След като овладеете добавянето на текст, отидете на Урок 1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.6: ПРОМЯНА НА ФАЙЛ + + ** Използвайте :wq (write and quit), за да запишете файла и + излезете. ** + + Внимание! Преди да изпълните която и да е от стъпките долу, прочетете целия урок!! + + 1. Излезте от самоучителя, както направихте в Урок 1.1.2: :q! + Или, ако имате достъп до друг терминал, направете следното там. + + 2. На командния ред напишете следното и натиснете : vim tutor + 'vim' е командата, която стартира редактора Vim, 'tutor' е името на файла, + които искате да промените. Използвайте файл който може да бъде променян. + + 3. Въвеждайте и изтривайте текст по начините, научени в предишните уроци. + + 4. Запишете файла и излезте от Vim с: :wq + + 5. Ако сте излезли от vimtutor в стъпка 1, пуснете го отново и се придвижете + надолу до обобщението, което следва. + + 6. След като прочетете и разберете горните стъпки, направете ги. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1 ОБОБЩЕНИЕ + + + 1. Показалецът се премества като използвате клавишите със стрелки или с клавишите. + h (наляво) j (надолу) k (нагоре) l (надясно) + + 2. За да пуснете Vim от командния ред, напишете: vim ИМЕ-НА-ФАЙЛ + + 3. За да излезете от Vim, напишете: + :q! за да отхвърлите всички промени. + ИЛИ напишете: :wq за да запишете промените. + + 4. За да изтриете буква намираща се под показалеца, натиснете: x . + + 5. За да въведете или добавите текст, натиснете: + i въведете текста, натиснете . Въвежда преди показалеца. + A добавете текста, натиснете . Добавя в края на реда. + +Внимание! С натискане на преминавате в Нормален режим или отменяте + нежелана, недописана команда. + +Сега продължете с Урок 2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.1: КОМАНДИ ЗА ИЗТРИВАНЕ + + + ** Въведете dw , за да изтриете дума. ** + + 1. Натиснете , за да се уверите, че сте в Нормален режим. + + 2. Придвижете показалеца до реда по-долу, означен със --->. + + 3. Придвижете показалеца до началото на думата, която трябва да бъде изтрита. + + 4. Натиснете последователно dw , и думата ще изчезне. + + Забележка! Буквата d ще се появи на последния ред от екрана, когато я + натиснете. Vim ви чака да натиснете w. Ако видите друга буква, значи сте + натиснали грешен клавиш. Натиснете и започнете отначало. + +---> Има някои думи хартия, които забава не са част от това изречение. + + 5. Повтаряйте стъпки 3 и 4, докато поправите изречението, и преминете към + Урок 2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.2: ОЩЕ КОМАНДИ ЗА ИЗТРИВАНЕ + + + ** Въведете d$ , за да изтриете всичко до края на реда. ** + + 1. Натиснете , за да се уверите, че сте в Нормален режим. + + 2. Придвижете показалеца до реда по-долу, означен със --->. + + 3. Придвижете показалеца до правилния ред (СЛЕД първата .). + + 4. Натиснете последователно d$ , за да изтриете всичко до края на реда. + +---> Някой е въвел края на този ред двукратно. края на този ред двукратно. + + + 5. Отидете до Урок 2.3, за да разберете какво се случва. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.3: ЗА ОПЕРАТОРИТЕ И ДВИЖЕНИЯТА + + + Много команди, които променят текст, се състоят от оператор и движение. + Форматът за командата за изтриване с оператора d (delete) е както следва. + + d движение + + Където: + d е операторът за изтриване. + движение - върху какво ще се приложи операторът (списъкът долу). + + Кратък списък с движения: + w - (word) до началото на следващата дума, като се ИЗКЛЮЧВА първата ѝ буква. + e - (end of word) до края на текущата дума, ВКЛЮЧИТЕЛНО последната буква. + $ - До края на реда, ВКЛЮЧИТЕЛНО последния символ. + + Така, като въведете de, ще изтриете от мястото на показалеца до края на + думата. + +Забележка! Като натиснете само клавиша за движение, ще преместите показалеца на + съответното място. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.4: ИЗПОЛЗВАНЕ НА БРОЯЧ ПРИ ДВИЖЕНИЕ + + + ** Ако въведете число преди движението, то се повтаря толкова пъти + колкото е числото. ** + + 1. Придвижете показалеца до началото на реда долу, означен със --->. + + 2. Въведете 2w , за да преместите показалеца с две думи напред. + + 3. Въведете 3e , за да преместите показалеца до края на третата дума + напред. + + 4. Въведете 0 (нула), за да отидете в началото на реда. + + 5. Повтаряйте стъпки 2 и 3 с различни числа. + +---> Това е просто ред с думи, в който можете да се движите. + + 6. Отидете на Урок 2.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.5: ИЗПОЛЗВАЙТЕ БРОЯЧ, ЗА ДА ТРИЕТЕ ПОВЕЧЕ + + + ** Ако въведете число преди оператор, действието се повтаря толкова пъти + колкото е числото. ** + + Както е упоменато горе, за да изтриете повече при използване на оператора за + изтриване заедно с движение, трябва да въведете числото преди движението: + d число движение + + 1. Придвижете показалеца до първата дума, изписана с ГЛАВНИ БУКВИ в реда, + означен със --->. + + 2. Въведете d2w , за да изтриете думите, написани с ГЛАВНИ БУКВИ. + + 3. Повторете стъпки 1 и 2, за да изтриете последователните + думи, изписани с големи букви с една команда. + +---> този АБВ ГДЕ ред ЖЗИЙ КЛ МНОП РСТ с думи УФХ ЦЧШ ЩЪЬЮЯ е почистен. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.6: РАБОТА С РЕДОВЕ + + + ** Въведете dd , за да изтриете цял ред. ** + + Понеже често се налага да се трие цял ред, създателите на Vim са решили, че ще + е по-лесно да се натисне два пъти d, за да се изтрие ред. + + 1. Придвижете показалеца на втория ред в абзаца долу. + 2. Въведете dd , за да изтриете реда. + 3. Сега отидете на четвъртия ред. + 4. Въведете 2dd , за да изтриете два реда. + +---> 1) Розите са червени, +---> 2) Калта е забавление, +---> 3) Теменужките са сини, +---> 4) Аз имам кола, +---> 5) Часовниците показват часа, +---> 6) Захарта е сладка, +---> 7) Както и ти. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.7: ОТМЯНА + + + ** Натиснете u , за да отмените (undo) последната команда; U , за + отмяна на всички команди на текущия ред. ** + + 1. Придвижете показалеца до началото на реда долу, означен със --->, и го + поставете на първата грешка. + 2. Въведете x , за да изтриете първата нежелана буква. + 3. Сега натиснете u , за да отмените последната изпълнена команда. + 4. Този път поправете всички грешки, като използвате командата x. + 5. Сега въведете главно U (SHIFT+U), за да върнете реда в първоначалния му вид. + 6. А сега натиснете u няколко пъти, за да отмените предишното U и командите + преди него. + 7. Сега натиснете CTRL-R (redo) (дръжте клавиша CTRL натиснат, докато натискате R) + неколкократно, за да изпълните отново командите (да отмените отмените). + +---> Пооправеете грешшките нна този реди и ги заменете с отмянаа. + + 8. Това са много полезни команди. Сега отидете на обобщението за Урок 2. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 2 ОБОБЩЕНИЕ + + + 1. За да изтриете всичко от показалеца до началото на следващата дума, въведете dw + 2. За да изтриете всичко от показалеца до края на реда, въведете d$ + 3. За да изтриете цял ред, въведете dd + + 4. За да повторите движение въведете преди него число 2w + 5. Форматът за команда за промяна е: + команда [число] движение + където: + оператор - това, което трябва да се направи (заповед), например d за изтриване + [число] - незадължителен брой повторения на движението + движение - придвижване в текста, върху който се работи, например w (word), + $ (до края на реда) и т.н. + + 6. За да се придвижите до началото на ред, натиснете нула - 0 + + 7. За да отмените предишни действия, натиснете u (малка буква u) + За да отмените всички промени на един ред, въведете U (главна буква U) + За да отмените отмените, натиснете CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.1: КОМАНДАТА ЗА ПОСТАВЯНЕ (PUT) + + + ** Въведете p , за да поставите изтрит преди това текст след + показалеца.** + + 1. Придвижете показалеца до първия ред, означен със ---> долу. + + 2. Въведете dd , за да изтриете реда и да го запишете в регистъра на Vim. + + 3. Придвижете показалеца до реда, означен със c), НАД мястото, където трябва да + се постави изтрития ред. + + 4. Въведете p , за да поставите (put) реда под реда, на който е показалеца. + + 5. Повтаряйте стъпки от 2 до 4, за да подредите правилно редовете. + +---> d) Ти можеш ли да учиш? +---> b) Теменужките са сини, +---> c) Уменията се научават, +---> a) Розите са червени, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.2: КОМАНДАТА ЗА ЗАМЕСТВАНЕ (REPLACE) + + + ** Въведете rx , за да заместите буквата под показалеца с x . ** + + 1. Придвижете показалеца до първия ред, означен със ---> долу. + + 2. Наместете показалеца така, че да се окаже върху първата грешка. + + 3. Въведете r и след това буквата, с която ще замествате. + + 4. Повтаряйте стъпки 2 и 3 докато първият ред стане същия като втория. + +---> Катишо тизе гад и песен, никей а нарескъл гришнета бливочи! +---> Когато този ред е писан, някой е натискал грешните клавиши! + + 5. Сега отидете на урок 3.3. + +Забележка! Помнете, че трябва да се учите, като се упражнявате, а не като се + опитвате да запомните. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.3: ОПЕРАТОРЪТ ЗА ПРОМЯНА (CHANGE) + + + ** За да промените от мястото на показалеца до края на дума, въведете ce . ** + + 1. Придвижете показалеца до първия ред долу, означен със --->. + + 2. Поставете показалеца върху з в тзии. + + 3. Въведете ce и правилния остатък от думата ( в този случай ози). + + 4. Натиснете и отидете на следващата група букви, които трябва да се променят. + + 5. Повтаряйте стъпки 3 и 4, докато първото изречение стане същото като второто. + +---> На тзии ред иам неклико дмуи, ктоио требав да се прмнеято като се изповлза оепртореа за промяна. +---> На този ред има няколко думи, които трябва да се променят като се използва оператора за промяна. + + Забележете, че ce изтрива думата и преминавате в режим за въвеждане. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.4: ОЩЕ ПРОМЕНИ С ИЗПОЛЗВАНЕ НА c + + + ** Операторът за промяна се използва със същите движения както при триене ** + + 1. Операторът за промяна работи по същия начин като операторът за триене. + Форматът е: + + c [число] движение + + 2. Движенията са същите, например: w (word) и $ (край на ред). + + 3. Отидете на първия ред долу, отбелязан със --->. + + 4. Придвижете показалеца до първата грешка. + + 5. Въведете c$ и допишете остатъка от реда така, че да стане същият като + долния ред. След това натиснете . + +---> Краят на този ред трябва да изглежда като долния. +---> Краят на този ред трябва да бъде поправен с командата c$. + +Забележка! Можете да използвате клавиша Backspace за поправка на грешки, докато въвеждате. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 3 ОБОБЩЕНИЕ + + + 1. За да поставите изтрит преди това отнякъде текст, въведете p . + Това поставя изтрития текст СЛЕД мястото, на което се намира показалеца. + Ако сте изтрили преди това цял ред, той ще бъде поставен като следващ ред. + + 2. За да заместите буква, намираща се под показалеца, въведете r и след + това буквата, с която искате да заместите. + + 3. Операторът за промяна ви позволява да променяте текста от мястото на + показалеца до мястото, указано от съответното движение. Например, въведете + ce за да изтриете от мястото на показалеца до края на думата, или, + въведете c$ ,за да замените с нов текст до края на реда. + + 4. Форматът на оператора за промяна е: + + c [число] движение + +Сега отидете на следващия урок. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.1: МЕСТОПОЛОЖЕНИЕ НА ПОКАЗАЛЕЦА И СЪСТОЯНИЕ НА ФАЙЛА + + ** Въведете CTRL-G, за да видите къде се намирате във файла и неговото + състояние. Въведете G , за да отидете на някой ред. ** + +Внимание! Прочетете целия урок, преди да изпълните стъпките в него! + + 1. Задръжте натиснат клавиша Ctrl и натиснете g. Това действие го наричаме + CTRL-G. В дъното на екрана ще се появи съобщение с името на файла и + мястото, където се намира показалецът. Запомнете номера на реда за стъпка 3. + +Забележка: Може би виждате мястото на показалеца в долния десен ъгъл на екрана. +Това се случва, когато настройката 'ruler' е зададена (вижте :help 'ruler' ) + + 2. Натиснете G , за да отидете в края на файла. + Въведете gg , за да отидете в началото на файла. + + 3. Въведете номера на реда, на който бяхте, и след това натиснете G. Това ще + ви върне на мястото където бяхте, когато натиснахте CTRL-G. + + 4. Ако вече се чувствате уверени, изпълнете стъпките от 1 до 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.2: КОМАНДАТА ЗА ТЪРСЕНЕ + + + ** Въведете / , последвана от фраза, за да потърсите фразата. ** + + 1. В Нормален режим въведете знака / . Забележете, че / (наклонената + черта) и показалецът се появяват в дъното на екрана, както се случва при + използването на командата : . + + 2. Сега въведете 'грешшшка' . Това е думата, която ще търсите. + + 3. За да търсите същата дума отново, натиснете n . + За да търсите същата дума отново, но в обратната посока, натиснете N . + + 4. За да търсите за фраза в обратната посока използвайте ? вместо / . + + 5. За да се върнете, там където сте били, натиснете CTRL-O (задръжте Ctrl + натиснат докато натискате клавиша o). Повторете, за да отидете още + по-назад. С CTRL-I пък отивате напред. + +---> "грешшшка" се се пише "грешка" грешшшка е грешка. +Внимание! Когато търсенето достигне до края на файла, то ще продължи от +началото на файла, освен ако настройката 'wrapscan' е била нулирана. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.3: ТЪРСЕНЕ НА СЪОТВЕТСТВАЩИ СКОБИ + + + ** Въведете % , за да на мерите съответната ),], или } . ** + + 1. Поставете показалеца върху някоя скоба (, [, или { в реда долу, означен със --->. + + 2. Сега Въведете символа % . + + 3. Показалецът ще се премести върху съответстващата фигурна, квадратна или + обикновена скоба. + + 4. Въведете % , за да преместите показалеца на другата съответстваща скоба. + + 5. Придвижете показалеца до друга (,),[,],{ или } скоба и вижте какво прави % . + +---> Това ( е ред за проверка с различни скоби като (, [ ] и { } в него. )) + + +Забележка! Това е много полезно при откриване на грешки в програми с несъответстващи скоби. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.4: КОМАНДАТА ЗА ЗАМЕСТВАНЕ (SUBSTITUTE) + + + ** Въведете :s/старо/ново/g за да заместите 'старо' със 'ново'. ** + + 1. Придвижете показалеца до реда долу, означен със --->. + + 2. Въведете :s/тоо/то . Забележете, че командата замества само + първото съвпадение с "тоо" на реда. + + 3. Сега въведете :s/тоо/то/g . Като добавите знака g (globally) това + означава, че искате да се заместят всички съвпадения, навсякъде в реда. + +---> Най-добротоо време да сте на полетоо е лятотоо. + + 4. За да заместите всяко съвпадение на дадена последователност от символи + между два реда: + Въведете :#,#s/old/new/g където #,# са числата на редовете + (първи и последен), обхватът, в който искате да + стане заместването. + Въведете :%s/old/new/g за да промените всяко съвпадение в целия файл. + Въведете :%s/old/new/gc да бъдете питани при всяко съвпадение, дали + да се замести или не. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 4 ОБОБЩЕНИЕ + + + 1. CTRL-G показва къде се намирате във файл и състоянието му. + G ви отвежда до края на файла. + число G ви отвежда до съответния ред. + gg ви отвежда до първия ред. + + 2. Ако натиснете / , последвана от низ за търсене, търсите НАПРЕД. + Ако натиснете / , последвана от низ за търсене, търсите НАЗАД. + След търсене, въведете n , за да намерите следващо съвпадение с низа, + който търсите в същата посока, в която търсите или N , за да търсите в + обратната посока. + CTRL-O ви отвежда назад до старо място във файла, CTRL-I обратно до + по-нови места. + + 3. Ако натиснете % докато показалеца се намира на (,),[,],{, или }, той + отива до съответстващата скоба. + + 4. За да заместите един низ с друг, въведете :s/низ/друг + За да заместите един низ с друг навсякъде в един ред, въведете :s/низ/друг/g + За да заместите в даден обхват от редове, въведете :#,#s/низ/друг/g + За да заместите всички съвпадения във файл, въведете :%s/низ/друг/g + За да бъдете питани при всяко съвпадение, добавете 'c' :%s/низ/друг/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.1: КАК ДА ИЗПЪЛНИМ ВЪНШНА КОМАНДА + + + ** Въведете :! , последвано от външна команда, за да я изпълните. ** + + 1. Въведете познатото ви вече : , за да поставите показалеца в дъното на + екрана. Това ви позволява да въвеждате команда. + + 2. Сега въведете ! (удивителен знак). Това ви позволява да изпълнявате + всякакви външни команди. + + 3. Например, след ! въведете ls и след това натиснете . Това ще + ви покаже списък с файловете и папките точно както ако сте в терминал. + Напишете :!dir ако ls не работи. + +Забележка: По този начин можете да изпълнявате всякакви външни команди и с аргументи. + +Забележка: Всички команди, започващи с : завършват с натискането на + От сега нататък няма да го споменаваме постоянно. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.2: ПОВЕЧЕ ЗА ЗАПИСВАНЕТО НА ФАЙЛОВЕ + + + ** За да запишете промените, направени в текста въведете :w ИМЕНАФАЙЛ. ** + + 1. Въведете :!dir или :!ls за да видите списък със съдържанието на + текущата папка. Вече знаете, че трябва да натиснете след това. + + 2. Изберете име на файла, което не съществува, например TEST. + + 3. Сега въведете :w TEST (където TEST е името на файла). + + 4. Това записва целия файл (Самоучителя за Vim) под името TEST. + За да проверите, напишете :!dir или :!ls отново и вижте съдържанието + на вашата папка. + +Забележете! Ако излезете от Vim и го пуснете отново, като напишете на командния + ред vim TEST , файлът ще бъде точно копие на самоучителя, когато + сте го записали. + + 5. Сега изтрийте файла като напишете (в MS-DOS): :!del TEST + или (в какъвто и да е Unix) :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.3: ИЗБОР НА ТЕКСТ ЗА ЗАПИС + + + ** За да запишете част от файла, натиснете v , следвано от движение :w FILENAME ** + + 1. Придвижете показалеца на този ред. + + 2. Натиснете v и придвижете показалеца пет реда надолу. Забележете, че + текстът се осветява. + + 3. Натиснете : . В дъното на екрана ще се появи :'<,'> . + + 4. Напишете w TEST , където TEST е име на файл, който все още не съществува. + Уверете се, че виждате :'<,'>w TEST преди да натиснете . + + 5. Vim ще запише избраните редове във файла TEST. Използвайте :!dir или :!ls , + за да го видите. Не го изтривайте все още! Ще го използваме в следващия урок. + +Забележете! Като натиснете v , започвате видимо избиране (Visual selection). + Може да движите показалеца наоколо, за да направите избраното + по-голямо или по-малко. След което, можете да използвате оператор, + за да направите нещо с текста. Например, d изтрива текста. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.4: ИЗВЛИЧАНЕ И СЛИВАНЕ НА ФАЙЛОВЕ + + + ** За да вмъкнете съдържание на файл в текущия, въведете :r ИМЕНАФАЙЛ ** + + 1. Поставете показалеца над този ред. + +Важно! След като изпълните стъпка 2, ще видите текста от Урок 5.3. След това + отидете НАДОЛУ, за да видите този урок отново. + + 2. Сега извлечете файла TEST, като използвате командата :r TEST , където TEST + е името на файла, което сте използвали. Файла, който извлекохте е вмъкнат + под реда, на който се намира показалеца. + + 3. За да проверите, че файла е извлечен, отидете назад и ще забележите, че + има два урока 5.3 - оригинала и копието от извлечения файл. + +Важно! Също така можете да четете изхода от външна команда. + :r !ls прочита показаното от ls и го поставя под показалеца. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 5 ОБОБЩЕНИЕ + + + 1. :!команда изпълнява външна команда. + + Някои полезни примери са: + (MS-DOS) (Unix) + :!dir :!ls - показва съдържанието на директорията, в която + се намирате. + :!del FILENAME :!rm FILENAME - изтрива файла FILENAME. + + 2. :w FILENAME записва текущия файл под името FILENAME. + + 3. v движение :w FILENAME записва видимо избраните редове във файл с име + FILENAME. + + 4. :r FILENAME извлича съдържанието на файла с име FILENAME и го вмъква под + мястото, където се намира показалеца + + 5. :r !dir чете изхода на командата dir и го поставя под мястото, на + което се намира показалеца. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.1: КОМАНДАТА ЗА ОТВАРЯНЕ (OPEN) + + + ** Натиснете o , за да отворите ред под показалеца и да преминете в + режим за въвеждане. ** + + 1. Придвижете показалеца до реда долу, означен със --->. + + 2. Натиснете клавиша o , за да отворите нов ред ПОД показалеца и да преминете + в режим за въвеждане. + + 3. Сега въведете някакъв текст и натиснете , за да излезете от режима + за въвеждане. + +---> След като натиснете o , показалеца отива на новоотворения ред и + преминавате в режим за въвеждане. + + 4. За да отворите нов ред НАД показалеца, просто въведете главно O вместо + малко. Пробвайте това на долния ред. + +---> Отворете нов ред над този, като натиснете O , докато показалеца е на + този ред. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.2: КОМАНДАТА ЗА ДОБАВЯНЕ (APPEND) + + + ** Натиснете a , за да въведете текст СЛЕД показалеца. ** + + 1. Придвижете показалеца до началото на реда долу, означен със --->. + + 2. Натискайте e , докато показалеца отиде до края на ре . + + 3. Натиснете a (малка буква), за да добавите текст СЛЕД показалеца. + + 4. Допълнете думата както е на следващия ред. Натиснете , за да + излезете от режима за въвеждане. + + 5. Използвайте e , за да се придвижите до следващата непълна дума и + повторете стъпки 3 и 4. + +---> Този ре ви позволява да упраж добав на тек в ред. +---> Този ред ви позволява да упражнявате добавяне на текст в ред. + +Важно! a, i и A - с всички тях отивате в режим за въвеждане. Единствената + разлика е в това, къде се въвеждат знаците. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.3: ДРУГ НАЧИН ЗА ЗАМЕСТВАНЕ + + + ** Натиснете главно R , за да заместите повече от един знак. ** + + 1. Придвижете показалеца до първия ред долу означен със --->. Придвижете + показалеца до началото на първото xxx. + + 2. Сега натиснете R и въведете числото от долния ред, така че да замести xxx . + + 3. Натиснете , за да излезете от режима за заместване. Забележете, че + остатъка от реда остава непроменен. + + 4. Повторете стъпките, за да заместите другото xxx. + +---> Ако добавите 123 към xxx ще получите xxx. +---> Ако добавите 123 към 456 ще получите 579. + +Важно! Режимът за заместване е същия като режима за въвеждане, но всеки въведен + знак изтрива съществуващ знак. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.4: КОПИРАНЕ И ЗАМЕСТВАНЕ + + + ** Използвайте операторът y (yank), за да копирате текст и p (paste), + за да го поставите. ** + + 1. Отидете до реда, означен със ---> долу и поставете показалеца след "a)". + + 2. Преминете във режим за видимо избиране като използвате v и преместете + показалеца точно пред "първата". + + 3. Натиснете y , за да копирате (yank) осветения текст. + + 4. Преместете показалеца на края на следващия ред с j$ + + 5. Натиснете p ,за да поставите (paste) текста. След това натиснете пак . + + 6. Използвайте режима за видимо избиране, за да изберете " точка.", вземете + го с y , отидете на края на следващия ред с j$ и поставете текста с p . + +---> a) това е първата точка. + b) + + Важно! Можете да използвате y също и като оператор. yw взима цяла дума. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.5: ЗАДАВАНЕ НА НАСТРОЙКА + + + ** Задайте настройка, та при търсене и заместване, да не се различават + големи и малки букви. ** + + 1. Търсете 'разли' като въведете /разли + Повторете няколко пъти като натискате n . + + 2. Задайте настройката 'ic' (Ignore case) като въведете :set ic + + 3.Сега търсете 'разли' отново като натискате n . + Забележете, че сега Разлика и РАЗЛИКА също биват намерени. + + 4. Задайте настройките 'hlsearch' (highlight search) + и 'incsearch' (incremental search): :set hls is + Тези настройки означават съответно "осветяване на намереното" + и "частично търсене". + + 5. Сега въведете отново командата за търсене и вижте какво се случва: + /разли + + 6. За да изключите нечувствителното към регистъра на буквите търсене, въведете + :set noic + +Забележка! За да премахнете осветяването, въведете :nohlsearch +Забележка! Ако искате да не се прави разлика между главни и малки букви само + при едно търсене, въведете \c (латинско ц) в края на низа, който + търсите: /разлика\c + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 6 ОБОБЩЕНИЕ + + 1. Натиснете o , за да отворите нов ред ПОД показалеца и да преминете в + режим за въвеждане. + Натиснете O , за да отворите ред НАД показалеца. + + 2. Натиснете a , за да въведете текст СЛЕД показалеца. + Натиснете A , за да въведете текст след края на реда. + + 3. Командата e ви отвежда в края на дума. + + 4. Операторът y взима (yank) текст, а p го поставя (paste). + + 5. Ако въведете R , докато сте в нормален режим, преминавате в режим за + заместване, докато натиснете . + + 6. Ако напишете ":set xxx", задавате настройката "xxx". Ето някои настройки: + 'ic' 'ignorecase' Търсенето не прави разлика между главни и малки букви + 'is' 'incsearch' Показва частични съвпадения на търсеното + 'hls' 'hlsearch' Осветява всички намерени съвпадения + Можете да ползвате кратките или дългите наименувания на настройките + + 7. Поставете "no" отпред за да изключите настройка: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.1: КАК ДА НАМЕРИМ ПОМОЩ + + + ** Ползвайте наличната система за помощ ** + + Vim върви с изчерпателна система за помощ. За да започнете, опитайте някоя от + следните три възможности: + - натиснете клавиша (ако имате такъв на клавиатурата си) + - натиснете клавиша (ако имате такъв на клавиатурата си) + - напишете :help + + Прочетете текста в прозореца за помощ, за да разберете как работи системата. + Натиснете CTRL-W CTRL-W (два пъти CTRL-W), за да прескочите от един прозорец в друг. + Въведете :q , за да затворите прозореца за помощ. + + Можете да намерите помощ по всякакъв въпрос, като напишете + ":help" именакоманда. Опитайте следните (не забравяйте да натискате ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.2: СЪЗДАЙТЕ СКРИПТ ЗА СТАРТИРАНЕ + + + ** Включване на възможностите на Vim ** + + Vim има много повече възможности от Vi, но по подразбиране повечето от тях не + са включени. За да започнете да ползвате тези възможности, трябва да + създадете файл, наречен "vimrc". + + 1. Създайте вашия файл "vimrc". В зависимост от вашата операционна система: + :e ~/.vimrc за всеки вид Unix + :e ~/_vimrc за MS-Windows + + 2. Сега прочетете съдържанието на примерния файл "vimrc": + :r $VIMRUNTIME/vimrc_example.vim + + 3. Запишете файла с: + :w + + Следващият път като пуснете Vim той ще осветява текста във файловете, които + отваряте в зависимост от синтаксиса им. Можете да добавите всичките си + предпочитани настройки в този файл. За повече информация, въведете + :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.3: ДОВЪРШВАНЕ + + + ** Довършване на команди с CTRL-D и ** + + 1. Уверете се, че Vim е в несъвместим режим: :set nocp + + 2. Вижте какви файлове има в папката ви: :!ls или :!dir + + 3. Въведете началото на команда: :e + + 4. Натиснете CTRL-D и Vim ще ви покаже команди, започващи с "e". + + 5. Натиснете и Vim ще допълни командата до ":edit". + + 6. Сега добавете празно пространство и началото на името на съществуващ файл: + :edit FIL + + 7. Натиснете . Vim ще допълни името (ако е единствено). + +Важно! Допълването работи за много команди. Просто натиснете CTRL-D и/или + . Особено полезно е при намиране на помощ :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 7 ОБОБЩЕНИЕ + + + 1. Напишете :help или натиснете или за да отворите помощния + прозорец. + + 2. Напишете :help cmd , за да намерите помощ за cmd . + + 3. Натиснете CTRL-W CTRL-W , за да прескочите в друг прозорец. + 4. Напишете :q , за да затворите помощния прозорец. + + 5. Създайте файл за стартиране vimrc, за да запазите предпочитаните от вас + настройки. + + 6. Когато въвеждате команда след : , натиснете CTRL-D , за да видите + възможностите за допълване. Натиснете , за да използвате някоя от + предложените възможности за допълване. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + С това завършва Самоучителят на Vim. Той бе предназначен да даде кратък + преглед на текстовия редактор Vim. Съвсем достатъчно, за да можете да + ползвате редактора лесно. Самоучителят е доста непълен, понеже Vim има много + повече команди. Сега прочете наръчника за потребителя: ":help user-manual". + + Препоръчваме следната книга за по-нататъшно четене: + Vim - Vi Improved - от Steve Oualline + Издател: New Riders + Това е първата книга, изцяло посветена на Vim. Особено полезна е за + начинаещи. В нея ще намерите много примери и картинки. + Вижте https://iccf-holland.org/click5.html + + Следната книга е по-стара и по-скоро за Vi отколкото за Vim, но също се препоръчва: + Learning the Vi Editor - от Linda Lamb + Издател: O'Reilly & Associates Inc. + Това е книга, която ще ви запознае с почти всичко във Vi. + Шестото издание включва и информация за Vim. + + Този самоучител е написан от Michael C. Pierce и Robert K. Ware, + Colorado School of Mines, като използва идеи предоставени от Charles Smith, + Colorado State University. E-mail: bware@mines.colorado.edu. + + Променен за Vim от Bram Moolenaar. + + Превод от Красимир Беров , юли 2016. + Този превод е подарък за сина ми Павел и е посветен на българските деца. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + diff --git a/git/usr/share/vim/vim92/tutor/tutor1.ca b/git/usr/share/vim/vim92/tutor/tutor1.ca new file mode 100644 index 0000000000000000000000000000000000000000..98bda7e6c1c2ead1ccb5c93bd662dadd5a1ed084 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.ca @@ -0,0 +1,809 @@ +=============================================================================== += B e n v i n g u t s a l t u t o r d e l V I M - Versió 1.5 = +=============================================================================== + + El Vim és un editor potent i té moltes ordres, massa com per a + explicar-les totes un tutor com aquest. Aquest tutor està pensat per a + ensenyar les ordres bàsiques que us permetin fer servir el Vim com a + editor de propòsit general. + + El temps aproximat de completar el tutor és d'uns 25 o 30 minuts + depenent de quant temps dediqueu a experimentar. + + Feu una còpia d'aquest fitxer per a practicar-hi (si heu començat amb + el programa vimtutor això que esteu llegint ja és una còpia). + + És important recordar que aquest tutor està pensat per a ensenyar + practicant, és a dir que haureu d'executar les ordres si les voleu + aprendre. Si només llegiu el text el més probable és que les oblideu. + + Ara assegureu-vos que la tecla de bloqueig de majúscules no està + activada i premeu la tecla j per a moure el cursor avall, fins que la + lliçó 1.1.1 ocupi completament la pantalla. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.1.1: MOURE EL CURSOR + + + ** Per a moure el cursor premeu les tecles h, j, k, l tal com s'indica. ** + ^ + k Pista: La h és a l'esquerra i mou el cursor cap a l'esquerra. + < h l > La l és a la dreta i mou el cursor cap a la dreta. + j La j sembla una fletxa cap avall. + v + 1. Moveu el cursor per la pantalla fins que us sentiu confortables. + + 2. Mantingueu premuda la tecla avall (j) una estona. +---> Ara ja sabeu com moure-us fins a la següent lliçó. + + 3. Usant la tecla avall, aneu a la lliçó 1.1.2. + +Nota: Si no esteu segurs de la tecla que heu premut, premeu per a + tornar al mode Normal. Llavors torneu a teclejar l'ordre que volíeu. + +Nota: Les tecles de moviment del cursor (fletxes) també funcionen. Però + usant hjkl anireu més ràpid un cop us hi hagueu acostumant. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.1.2: ENTRAR I SORTIR DEL VIM + + + !! NOTA: Abans de seguir els passos següents llegiu *tota* la lliçó!! + + 1. Premeu (per a estar segurs que esteu en el mode Normal). + + 2. Teclegeu: :q! . + +---> Amb això sortireu de l'editor SENSE desar els canvis que hagueu pogut + fer. Si voleu desar els canvis teclegeu: + :wq + + 3. Quan vegeu l'introductor de l'intèrpret escriviu l'ordre amb la + qual heu arribat a aquest tutor. Podria ser: vimtutor + O bé: vim tutor + +---> 'vim' és l'editor vim, i 'tutor' és el fitxer que voleu editar. + + 4. Si heu memoritzat les ordres, feu els passos anteriors, de l'1 al 3, + per a sortir i tornar a entrar a l'editor. Llavors moveu el cursor + avall fins a la lliçó 1.1.3. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.1.3: EDITAR TEXT - ESBORRAR + + + ** En mode Normal premeu x per a esborrar el caràcter sota el cursor. ** + + 1. Moveu el cursor fins a la línia que hi ha més avall senyalada amb --->. + + 2. Poseu el cursor a sobre el caràcter que cal esborrar per a corregir + els errors. + + 3. Premeu la tecla x per a esborrar el caràcter. + + 4. Repetiu els passos 2 i 3 fins que la frase sigui correcta. + +---> Unna vaaca vva salttar perr sobbree la llluna. + + 5. Ara que la línia és correcta, aneu a la lliçó 1.1.4. + +NOTA: Mentre aneu fent no tracteu de memoritzar, practiqueu i prou. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.1.4: EDITAR TEXT - INSERIR + + + ** En mode Normal premeu i per a inserir text. ** + + 1. Moveu el cursor avall fins la primera línia senyalada amb --->. + + 2. Per a fer la primera línia igual que la segona poseu el cursor sobre + el primer caràcter POSTERIOR al text que s'ha d'inserir. + + 3. Premeu la tecla i i escriviu el text que falta. + + 4. Quan hageu acabat premeu per tornar al mode Normal. Repetiu + els passos 2, 3 i 4 fins a corregir la frase. + +---> Falten carctrs en aquesta . +---> Falten alguns caràcters en aquesta línia. + + 5. Quan us trobeu còmodes inserint text aneu al sumari de baix. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.1 SUMARI + + + 1. El cursor es mou amb les fletxes o bé amb les tecles hjkl. + h (esquerra) j (avall) k (amunt) l (dreta) + + 2. Per a entrar al Vim (des de l'intèrpret) escriviu: vim FITXER + + 3. Per a sortir teclegeu: :q! per a descartar els canvis. + O BÉ teclegeu: :wq per a desar els canvis. + + 4. Per a esborrar el caràcter de sota el cursor en el mode Normal premeu: x + + 5. Per a inserir text on hi ha el cursor, en mode Normal, premeu: + i escriviu el text + +NOTA: La tecla us porta al mode Normal o cancel·la una ordre que + estigui a mitges. + +Ara continueu a la lliçó 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.2.1: ORDRES PER ESBORRAR + + + ** Teclegeu dw per a esborrar fins al final d'una paraula. ** + + 1. Premeu per estar segurs que esteu en mode normal. + + 2. Moveu el cursor avall fins a la línia senyalada amb --->. + + 3. Moveu el cursor fins al principi de la paraula que s'ha d'esborrar. + + 4. Teclegeu dw per a fer desaparèixer la paraula. + +NOTA: Les lletres dw apareixeran a la línia de baix de la pantalla mentre + les aneu escrivint. Si us equivoqueu premeu i torneu a començar. + +---> Hi ha algunes paraules divertit que no pertanyen paper a aquesta frase. + + 5. Repetiu el passos 3 i 4 fins que la frase sigui correcta i continueu + a la lliçó 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.2.2: MÉS ORDRES PER ESBORRAR + + + ** Escriviu d$ per a esborrar fins al final de la línia. ** + + 1. Premeu per a estar segurs que esteu en el mode Normal. + + 2. Moveu el cursor avall fins a la línia senyalada amb --->. + + 3. Moveu el cursor fins al final de la línia correcta + (DESPRÉS del primer . ). + + 4. Teclegeu d$ per a esborrar fins al final de la línia. + +---> Algú ha escrit el final d'aquesta línia dos cops. línia dos cops. + + 5. Aneu a la lliçó 1.2.3 per a entendre què està passant. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.2.3: SOBRE ORDRES I OBJECTES + + + El format de l'ordre d'esborrar d és el següent: + + [nombre] d objecte O BÉ d [nombre] objecte + On: + nombre - és el nombre de cops que s'ha d'executar (opcional, omissió=1). + d - és l'ordre d'esborrar. + objecte - és la cosa amb la qual operar (llista a baix). + + Una petita llista d'objectes: + w - des del cursor fins al final de la paraula, incloent l'espai. + e - des del cursor fins al final de la paraula, SENSE incloure l'espai. + $ - des del cursor fins al final de la línia. + +NOTA: Per als aventurers: si teclegeu només l'objecte, en el mode Normal, + sense cap ordre, el cursor es mourà tal com està descrit a la llista + d'objectes. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.2.4: UNA EXCEPCIÓ A 'ORDRE-OBJECTE' + + + ** Teclegeu dd per a esborrar tota la línia. ** + + Com que molt sovint s'han d'eliminar línies senceres, els programadors + del Vi van creure que seria més convenient teclejar dd per a esborrar + tota la línia. + + 1. Moveu el cursor a la segona línia de la frase de baix. + 2. Teclegeu dd per a esborrar la línia. + 3. Ara aneu a la quarta línia. + 4. Teclegeu 2dd per a esborrar dues línies (recordeu nombre-ordre-objecte). + + 1) Les roses són vermelles, + 2) El fang és divertit, + 3) Les violetes són blaves, + 4) Tinc un cotxe, + 5) Els rellotges diuen l'hora, + 6) El sucre és dolç, + 7) Igual que tu. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.2.5: L'ORDRE DESFER + + + ** Premeu u per a desfer els canvis, U per a restaurar tota la línia. ** + + 1. Moveu el cursor sobre el primer error de línia de baix senyalada amb ---> + 2. Premeu x per a esborrar el caràcter no desitjat. + 3. Ara premeu u per a desfer l'última ordre executada. + 4. Aquest cop corregiu tots els errors de la línia amb l'ordre x. + 5. Ara premeu U per a restablir la línia al seu estat original. + 6. Ara premeu u uns quants cops per a desfer U i les ordres anteriors. + 7. Ara premeu CONTROL-R (les dues tecles al mateix temps) uns quants cops + per a refer les ordres. + +---> Correegiu els errors d'aqquesta línia i dessfeu-los aamb desfer. + + 8. Aquestes ordres són molt útils. Ara aneu al sumari de la lliçó 1.2. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.2 SUMARI + + + 1. Per a esborrar del cursor al final de la paraula teclegeu: dw + + 2. Per a esborrar del cursor al final de la línia teclegeu: d$ + + 3. Per a esborrar una línia sencera teclegeu: dd + + 4. El format de qualsevol ordre del mode Normal és: + + [nombre] ordre objecte O BÉ ordre [nombre] objecte + on: + nombre - és quants cops repetir l'ordre + ordre - és què fer, com ara d per esborrar + objecte - és amb què s'ha d'actuar, com ara w (paraula), + $ (fins a final de línia), etc. + + 5. Per a desfer les accions anteriors premeu: u + Per a desfer tots el canvis en una línia premeu: U + Per a desfer l'ordre desfer premeu: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.3.1: L'ORDRE 'POSAR' + + + ** Premeu p per a inserir l'última cosa que heu esborrat + després del cursor. ** + + + 1. Moveu el cursor a la primera línia de llista de baix. + + 2. Teclegeu dd per a esborrar la línia i desar-la a la memòria. + + 3. Moveu el cursor a la línia ANTERIOR d'on hauria d'anar. + + 4. En mode Normal, premeu p per a inserir la línia. + + 5. Repetiu els passos 2, 3 i 4 per a ordenar les línies correctament. + + d) Pots aprendre tu? + b) Les violetes són blaves, + c) La intel·ligència s'aprèn, + a) Les roses són vermelles, + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.3.2: L'ORDRE SUBSTITUIR + + + ** Premeu r i un caràcter per a substituir el caràcter + de sota el cursor. ** + + 1. Moveu el cursor a la primera línia de sota senyalada amb --->. + + 2. Moveu el cursor a sobre del primer caràcter equivocat. + + 3. Premeu r i tot seguit el caràcter correcte per a corregir l'error. + + 4. Repetiu els passos 2 i 3 fins que la línia sigui correcta. + +---> Quen van escroure aquerta línia, algh va prémer tikles equivocades! +---> Quan van escriure aquesta línia, algú va prémer tecles equivocades! + + 5. Ara continueu a la lliçó 1.3.2. + +NOTA: Recordeu que heu de practicar, no memoritzar. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.3.3: L'ORDRE CANVIAR + + + ** Per a canviar una part o tota la paraula, escriviu cw . ** + + 1. Moveu el cursor a la primera línia de sota senyalada amb --->. + + 2. Poseu el cursor sobre la u de 'lughc'. + + 3. Teclegeu cw i corregiu la paraula (en aquest cas, escrivint 'ínia'.) + + 4. Premeu i aneu al següent error. + + 5. Repetiu els passos 3 i 4 fins que les dues frases siguin iguals. + +---> Aquesta lughc té algunes paradskl que s'han de cdddf. +---> Aquesta línia té algunes paraules que s'han de canviar. + +Noteu que cw no només canvia la paraula, també us posa en mode d'inserció. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.3.4: MÉS CANVIS AMB c + + + ** L'ordre canviar s'usa amb els mateixos objectes que l'ordre esborrar. ** + + 1. L'ordre canviar funciona igual que la d'esborrar. El format és: + + [nombre] c objecte O BÉ c [nombre] objecte + + 2. Els objectes són els mateixos, w (paraula), $ (final de línia), etc. + + 3. Moveu el cursor fins la primera línia senyalada amb --->. + + 4. Avanceu fins al primer error. + + 5. Premeu c$ per fer la línia igual que la segona i premeu . + +---> El final d'aquesta línia necessita canvis per ser igual que la segona. +---> El final d'aquesta línia s'ha de corregir amb l'ordre c$. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.3 SUMARI + + + 1. Per a tornar a posar el text que heu esborrat, premeu p . Això posa + el text esborrat DESPRÉS del cursor (si heu esborrat una línia anirà + a parar a la línia SEGÜENT d'on hi ha el cursor). + + 2. Per a substituir el caràcter de sota el cursor, premeu r i tot + seguit el caràcter que ha de reemplaçar l'original. + + 3. L'ordre canviar permet canviar l'objecte especificat, des del cursor + fins el final de l'objecte. Per exemple, cw canvia el que hi ha des + del cursor fins al final de la paraula, i c$ fins al final de + línia. + + 4. El format de l'ordre canviar és: + + [nombre] c objecte O BÉ c [nombre] objecte + +Ara aneu a la següent lliçó. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.4.1: SITUACIÓ I ESTAT DEL FITXER + + + ** Premeu CTRL-g per a veure la situació dins del fitxer i el seu estat. + Premeu SHIFT-g per a anar a una línia determinada. ** + + Nota: No proveu res fins que hagueu llegit TOTA la lliçó!! + + 1. Mantingueu premuda la tecla Control i premeu g . A la part de baix + de la pàgina apareixerà un línia amb el nom del fitxer i la línia en + la qual us trobeu. Recordeu el número de la línia pel Pas 3. + + 2. Premeu Shift-g per a anar al final de tot del fitxer. + + 3. Teclegeu el número de la línia on éreu i després premeu Shift-g. Això + us tornarà a la línia on éreu quan heu premut per primer cop Ctrl-g. + (Quan teclegeu el número NO es veurà a la pantalla.) + + 4. Ara executeu els passos de l'1 al 3. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.4.2: L'ORDRE CERCAR + + + ** Premeu / seguit de la frase que vulgueu cercar. ** + + 1. En el mode Normal premeu el caràcter / . Noteu que el cursor apareix + a la part de baix de la pantalla igual que amb l'ordre : . + + 2. Ara escriviu 'errroor' . Aquesta és la paraula que voleu + cercar. + + 3. Per a tornar a cercar la mateixa frase, premeu n . Per a cercar la + mateixa frase en direcció contraria, premeu Shift-n . + + 4. Si voleu cercar una frase en direcció ascendent, useu l'ordre ? en + lloc de /. + +---> "errroor" no és com s'escriu error; errroor és un error. + +Nota: Quan la cerca arribi al final del fitxer continuarà a l'inici. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.4.3: CERCA DE PARÈNTESIS + + + ** Premeu % per cercar el ), ], o } corresponent. ** + + 1. Poseu el cursor a qualsevol (, [, o { de la línia senyalada amb --->. + + 2. Ara premeu el caràcter % . + + 3. El cursor hauria d'anar a la clau o parèntesis corresponent. + + 4. Premeu % per a tornar el cursor al primer parèntesi. + +---> Això ( és una línia amb caràcters (, [ ] i { } de prova. )) + +Nota: Això és molt útil per a trobar errors en programes informàtics! + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.4.4: UNA MANERA DE CORREGIR ERRORS + + + ** Escriviu :s/vell/nou/g per a substituir 'vell' per 'nou'. ** + + 1. Moveu el cursor a la línia de sota senyalada amb --->. + + 2. Escriviu :s/laa/la . Aquesta ordre només canvia la primera + coincidència que es trobi a la línia. + + 3. Ara escriviu :s/laa/la/g per a fer una substitució global. Això + canviarà totes les coincidències que es trobin a la línia. + +---> laa millor època per a veure laa flor és laa primavera. + + 4. Per a canviar totes les coincidències d'una cadena entre dues línies, + escriviu :#,#s/vell/nou/g on #,# són els nombres de les línies. + Escriviu :%s/vell/nou/g per a substituir la cadena a tot el fitxer. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.4 SUMARI + + + 1. Ctrl-g mostra la posició dins del fitxer i l'estat del mateix. + Shift-g us porta al final del fitxer. Un número seguit de Shift-g us + porta a la línia corresponent. + + 2. L'ordre / seguida d'una frase cerca la frase cap ENDAVANT. + L'ordre ? seguida d'una frase cerca la frase cap ENDARRERE. + Després d'una cerca premeu n per a trobar la pròxima coincidència en + la mateixa direcció, o Shift-n per a cercar en la direcció contrària. + + 3. L'ordre % quan el cursor es troba en un (, ), [, ], {, o } troba la + parella corresponent. + + 4. Per a substituir el primer 'vell' per 'nou' en una línia :s/vell/nou + Per a substituir tots els 'vell' per 'nou' en una línia :s/vell/nou/g + Per a substituir frases entre les línies # i # :#,#s/vell/nou/g + Per a substituir totes les coincidències en el fitxer :%s/vell/nou/g + Per a demanar confirmació cada cop afegiu 'c' :%s/vell/nou/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.5.1: COM EXECUTAR UNA ORDRE EXTERNA + + + ** Teclegeu :! seguit d'una ordre externa per a executar-la. ** + + 1. Premeu el familiar : per a col·locar el cursor a la part de baix de + la pantalla. Això us permet entrar una ordre. + + 2. Ara teclegeu el caràcter ! (signe d'exclamació). Això us permet + executar qualsevol ordre de l'intèrpret del sistema. + + 3. Per exemple, escriviu ls i tot seguit premeu . Això us + mostrarà el contingut del directori, tal com si estiguéssiu a la + línia d'ordres. Proveu :!dir si ls no funciona. + +Nota: D'aquesta manera és possible executar qualsevol ordre externa. + +Nota: Totes les ordres : s'han d'acabar amb la tecla + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.5.2: MÉS SOBRE L'ESCRIPTURA DE FITXERS + + + ** Per a desar els canvis fets, escriviu :w FITXER. ** + + 1. Escriviu :!dir o bé :!ls per a obtenir un llistat del directori. + Ja sabeu que heu de prémer després d'això. + + 2. Trieu un nom de fitxer que no existeixi, com ara PROVA. + + 3. Ara feu: :w PROVA (on PROVA és el nom que heu triat.) + + 4. Això desa el text en un fitxer amb el nom de PROVA. Per a comprovar-ho + escriviu :!dir i mireu el contingut del directori. + +Note: Si sortiu del Vim i entreu una altra vegada amb el fitxer PROVA, el + fitxer serà una còpia exacta del tutor que heu desat. + + 5. Ara esborreu el fitxer teclejant (MS-DOS): :!del PROVA + o bé (Unix): :!rm PROVA + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.5.3: UNA ORDRE SELECTIVA PER A DESAR + + + ** Per a desar una part del fitxer, escriviu :#,# w FITXER ** + + 1. Un altre cop, feu :!dir o :!ls per a obtenir un llistat del + directori i trieu un nom de fitxer adequat com ara PROVA. + + 2. Moveu el cursor a dalt de tot de la pàgina i premeu Ctrl-g per + saber el número de la línia. RECORDEU AQUEST NÚMERO! + + 3. Ara aneu a baix de tot de la pàgina i torneu a prémer Ctrl-g. + RECORDEU AQUEST NÚMERO TAMBÉ! + + 4. Per a desar NOMÉS una secció en un fitxer, escriviu :#,# w PROVA on + #,# són els dos números que heu recordat (dalt, baix) i PROVA el nom + del fitxer. + + 5. Comproveu que el fitxer nou hi sigui amb :!dir però no l'esborreu. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.5.4: OBTENIR I AJUNTAR FITXERS + + + ** Per a inserir el contingut d'un fitxer, feu :r FITXER ** + + 1. Assegureu-vos, amb l'ordre :!dir , que el fitxer PROVA encara hi és. + + 2. Situeu el cursor a dalt de tot d'aquesta pàgina. + +NOTA: Després d'executar el Pas 3 veureu la lliçó 1.5.3. Tireu cap avall + fins a aquesta lliçó un altre cop. + + 3. Ara obtingueu el fitxer PROVA amb l'ordre :r PROVA on PROVA és el + nom del fitxer. + +NOTA: El fitxer que obtingueu s'insereix en el lloc on hi hagi el cursor. + + 4. Per a comprovar que s'ha obtingut el fitxer tireu enrere i mireu com + ara hi ha dues còpies de la lliçó 1.5.3, l'original i la del fitxer. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.5 SUMARI + + + 1. :!ordre executa una ordre externa. + + Alguns exemples útils: + (MS-DOS) (Unix) + :!dir :!ls - mostra un llistat del directori + :!del FITXER :!rm FITXER - esborra el fitxer FITXER + + 2. :w FITXER escriu el fitxer editat al disc dur, amb el nom FITXER. + + 3. :#,#w FITXER desa les línies de # a # en el fitxer FITXER. + + 4. :r FITXER llegeix el fitxer FITXER del disc dur i l'insereix en el + fitxer editat a la posició on hi ha el cursor. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.6.1: L'ORDRE OBRIR + + + ** Premeu o per a obrir una línia i entrar en mode inserció. ** + + 1. Moveu el cursor a la línia de sota senyalada amb --->. + + 2. Premeu o (minúscula) per a obrir una línia a BAIX del cursor i + situar-vos en mode d'inserció. + + 3. Copieu la línia senyalada amb ---> i premeu per a tornar al mode + normal. + +---> Després de prémer o el cursor se situa a la línia nova en mode inserció. + + 4. Per a obrir una línia a SOBRE del cursor, premeu la O majúscula, en lloc + de la minúscula. Proveu-ho amb la línia de sota. +Obriu una línia sobre aquesta prement Shift-o amb el cursor en aquesta línia. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.6.2: L'ORDRE AFEGIR + + + ** Premeu a per a afegir text DESPRÉS del cursor. ** + + 1. Moveu el cursor al final de la primera línia de sota senyalada + amb ---> prement $ en el mode Normal. + + 2. Premeu la lletra a (minúscula) per a afegir text DESPRÉS del caràcter + sota el cursor. (La A majúscula afegeix text al final de la línia.) + +Nota: Així s'evita haver de prémer i , l'últim caràcter, el text a inserir, + la tecla , cursor a la dreta, i finalment x , només per afegir + text a final de línia. + + 3. Ara completeu la primera línia. Tingueu en compte que aquesta ordre + és exactament igual que la d'inserir, excepte pel que fa al lloc on + s'insereix el text. + +---> Aquesta línia us permetrà practicar +---> Aquesta línia us permetrà practicar afegir text a final de línia. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.6.3: UNA ALTRA MANERA DE SUBSTITUIR + + + ** Teclegeu una R majúscula per a substituir més d'un caràcter. ** + + 1. Moveu el cursor a la línia de sota senyalada amb --->. + + 2. Poseu el cursor al principi de la primera paraula que és diferent + respecte a la segona línia senyalada amb ---> (la paraula "l'última"). + + 3. Ara premeu R i substituïu el que queda de text a la primera línia + escrivint sobre el text vell, per a fer-la igual que la segona. + +---> Per a fer aquesta línia igual que l'última useu les tecles. +---> Per a fer aquesta línia igual que la segona, premeu R i el text nou. + + 4. Tingueu en compte que en prémer per a sortir, el text que no + s'hagi alterat es manté. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lliçó 1.6.4: ESTABLIR OPCIONS + + ** Feu que les ordres cercar o substituir ignorin les diferències + entre majúscules i minúscules ** + + 1. Cerqueu la paraula 'ignorar' amb: /ignorar + Repetiu-ho uns quants cops amb la tecla n. + + 2. Establiu l'opció 'ic' (ignore case) escrivint: + :set ic + + 3. Ara cerqueu 'ignorar' un altre cop amb la tecla n. + Repetiu-ho uns quants cops més. + + 4. Establiu les opcions 'hlsearch' i 'incsearch': + :set hls is + + 5. Ara torneu a executar una ordre de cerca, i mireu què passa: + /ignorar + + 6. Per a treure el ressaltat dels resultats, feu: + :nohlsearch +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.6 SUMARI + + + 1. L'ordre o obre una línia a SOTA la del cursor i mou el cursor a la nova + línia, en mode Inserció. + La O majúscula obre la línia a SOBRE la que hi ha el cursor. + + 2. Premeu una a per a afegir text DESPRÉS del caràcter a sota del cursor. + La A majúscula afegeix automàticament el text a final de línia. + + 3. L'ordre R majúscula us posa en mode substitució fins que premeu . + + 4. Escriviu ":set xxx" per a establir l'opció "xxx" + + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LLIÇÓ 1.7: ORDRES D'AJUDA + + + ** Utilitzeu el sistema intern d'ajuda ** + + El Vim té un extens sistema d'ajuda. Per a llegir una introducció proveu una + d'aquestes tres coses: + - premeu la tecla (si la teniu) + - premeu la tecla (si la teniu) + - escriviu :help + + Teclegeu :q per a tancar la finestra d'ajuda. + + Podeu trobar ajuda sobre pràcticament qualsevol tema passant un argument + a l'ordre ":help". Proveu el següent (no oblideu prémer ): + + :help w + :help c_ Klávesa l je vpravo a vykoná pohyb vpravo. + j Klávesa j vypadá na šipku dolu. + v + 1. Pohybuj kurzorem po obrazovce dokud si na to nezvykneš. + + 2. Drž klávesu pro pohyb dolu (j), dokud se její funkce nezopakuje. +---> Teď víš jak se přesunout na následující lekci. + + 3. Použitím klávesy dolu přejdi na lekci 1.1.2. + +Poznámka: Pokud si někdy nejsi jist něčím, co jsi napsal, stlač pro + přechod do Normálního módu. Poté přepiš požadovaný příkaz. + +Poznámka: Kurzorové klávesy také fungují, avšak používání hjkl je rychlejší + jakmile si na něj zvykneš. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.1.2: SPUŠTĚNÍ A UKONČENÍ VIM + + + !! POZNÁMKA: Před vykonáním těchto kroků si přečti celou lekci!! + + 1. Stlač (pro ujištění, že se nacházíš v Normálním módu). + + 2. Napiš: :q! . + +---> Tímto ukončíš editor BEZ uložení změn, které si vykonal. + Pokud chceš uložit změny a ukončit editor napiš: + :wq + + 3. Až se dostaneš na příkazový řádek, napiš příkaz, kterým se dostaneš zpět + do této výuky. To může být: vimtutor + Běžně se používá: vim tutor + +---> 'vim' znamená spuštění editoru, 'tutor' je soubor k editaci. + + 4. Pokud si tyto kroky spolehlivě pamatuješ, vykonej kroky 1 až 3, čímž + ukončíš a znovu spustíš editor. Potom přesuň kurzor dolu na lekci 1.1.3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.1.3: ÚPRAVA TEXTU - MAZÁNÍ + + + ** Stisknutím klávesy x v Normálním módu smažeš znak na místě kurzoru. ** + + 1. Přesuň kurzor níže na řádek označený --->. + + 2. K odstranění chyb přejdi kurzorem na znak, který chceš smazat. + + 3. Stlač klávesu x k odstranění nechtěných znaků. + + 4. Opakuj kroky 2 až 4 dokud není věta správně. + +---> Krááva skoččilla přess měssíc. + + 5. Pokud je věta správně, přejdi na lekci 1.1.4. + +POZNÁMKA: Nesnaž se pouze zapamatovat předváděné příkazy, uč se je používáním. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.1.4: ÚPRAVA TEXTU - VKLÁDÁNÍ + + + ** Stlačení klávesy i v Normálním módu umožňuje vkládání textu. ** + + 1. Přesuň kurzor na první řádek označený --->. + + 2. Pro upravení prvního řádku do podoby řádku druhého, přesuň kurzor na + první znak za místo, kde má být text vložený. + + 3. Stlač i a napiš potřebný dodatek. + + 4. Po opravení každé chyby stlač pro návrat do Normálního módu. + Opakuj kroky 2 až 4 dokud není věta správně. + +---> Nějaký txt na této . +---> Nějaký text chybí na této řádce. + + 5. Pokud již ovládáš vkládání textu, přejdi na následující shrnutí. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRNUTÍ LEKCE 1.1 + + + 1. Kurzorem se pohybuje pomocí šipek nebo klávesami hjkl. + h (vlevo) j (dolu) k (nahoru) l (vpravo) + + 2. Pro spuštění Vimu (z příkazového řádku) napiš: vim SOUBOR + + 3. Pro ukončení Vimu napiš: :q! bez uložení změn. + anebo: :wq pro uložení změn. + + 4. Pro smazání znaku pod kurzorem napiš v Normálním módu: x + + 5. Pro vkládání textu od místa kurzoru napiš v Normálním módu: + i vkládaný text + +POZNÁMKA: Stlačení tě přemístí do Normálního módu nebo zruší nechtěný + a částečně dokončený příkaz. + +Nyní pokračuj Lekcí 2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.2.1: PŘÍKAZY MAZÁNÍ + + + ** Příkaz dw smaže znaky do konce slova. ** + + 1. Stlač k ubezpečení, že jsi v Normálním módu. + + 2. Přesuň kurzor níže na řádek označený --->. + + 3. Přesuň kurzor na začátek slova, které je potřeba smazat. + + 4. Napiš dw , aby slovo zmizelo. + +POZNÁMKA: Písmena dw se zobrazí na posledním řádku obrazovky jakmile je + napíšeš. Když napíšeš něco špatně, stlač a začni znova. + +---> Jsou tu nějaká slova zábava, která nepatří list do této věty. + + 5. Opakuj kroky 3 až 4 dokud není věta správně a přejdi na lekci 1.2.2. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.2.2: VÍCE PŘÍKAZŮ MAZÁNÍ + + + ** Napsání příkazu d$ smaže vše až do konce řádky. ** + + 1. Stlač k ubezpečení, že jsi v Normálním módu. + + 2. Přesuň kurzor níže na řádek označený --->. + + 3. Přesuň kurzor na konec správné věty (ZA první tečku). + + 4. Napiš d$ ,aby jsi smazal znaky až do konce řádku. + +---> Někdo napsal konec této věty dvakrát. konec této věty dvakrát. + + + 5. Přejdi na lekci 1.2.3 pro pochopení toho, co se stalo. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.2.3: ROZŠIŘOVACÍ PŘÍKAZY A OBJEKTY + + + Formát mazacího příkazu d je následující: + + [číslo] d objekt NEBO d [číslo] objekt + Kde: + číslo - udává kolikrát se příkaz vykoná (volitelné, výchozí=1). + d - je příkaz mazání. + objekt - udává na čem se příkaz vykonává (vypsané níže). + + Krátký výpis objektů: + w - od kurzoru do konce slova, včetně mezer. + e - od kurzoru do konce slova, BEZ mezer. + $ - od kurzoru do konce řádku. + +POZNÁMKA: Stlačením klávesy objektu v Normálním módu se kurzor přesune na + místo upřesněné ve výpisu objektů. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.2.4: VÝJIMKA Z 'PŘÍKAZ-OBJEKT' + + + ** Napsáním dd smažeš celý řádek. ** + + Vzhledem k častosti mazání celého řádku se autoři Vimu rozhodli, že bude + jednoduší napsat prostě dvě d k smazání celého řádku. + + 1. Přesuň kurzor na druhý řádek spodního textu. + 2. Napiš dd pro smazání řádku. + 3. Přejdi na čtvrtý řádek. + 4. Napiš 2dd (vzpomeň si číslo-příkaz-objekt) pro smazání dvou řádků. + + 1) Růže jsou červené, + 2) Bláto je zábavné, + 3) Fialky jsou modré, + 4) Mám auto, + 5) Hodinky ukazují čas, + 6) Cukr je sladký, + 7) A to jsi i ty. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.2.5: PŘÍKAZ UNDO + + + ** Stlač u pro vrácení posledního příkazu, U pro celou řádku. ** + + 1. Přesuň kurzor níže na řádek označený ---> a přemísti ho na první chybu. + 2. Napiš x pro smazání prvního nechtěného znaku. + 3. Teď napiš u čímž vrátíš zpět poslední vykonaný příkaz. + 4. Nyní oprav všechny chyby na řádku pomocí příkazu x . + 5. Napiš velké U čímž vrátíš řádek do původního stavu. + 6. Teď napiš u několikrát, čímž vrátíš zpět příkaz U . + 7. Stlač CTRL-R (klávesu CTRL drž stlačenou a stiskni R) několikrát, + čímž vrátíš zpět předtím vrácené příkazy (redo). + +---> Opprav chybby nna toomto řádku a nahraď je pommocí undo. + + 8. Toto jsou velmi užitečné příkazy. Nyní přejdi na souhrn Lekce 1.2. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRNUTÍ LEKCE 1.2 + + + 1. Pro smazání znaků od kurzoru do konce slova napiš: dw + + 2. Pro smazání znaků od kurzoru do konce řádku napiš: d$ + + 3. Pro smazání celého řádku napiš: dd + + 4. Formát příkazu v Normálním módu je: + + [číslo] příkaz objekt NEBO příkaz [číslo] objekt + kde: + číslo - udává počet opakování příkazu + příkaz - udává co je třeba vykonat, například d maže + objekt - udává rozsah příkazu, například w (slovo), + $ (do konce řádku), atd. + + 5. Pro vrácení předešlé činnosti, napiš: u (malé u) + Pro vrácení všech úprav na řádku napiš: U (velké U) + Pro vrácení vrácených úprav (redo) napiš: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.3.1: PŘÍKAZ VLOŽIT + + + ** Příka p vloží poslední vymazaný text za kurzor. ** + + 1. Přesuň kurzor níže na poslední řádek textu. + + 2. Napiš dd pro smazání řádku a jeho uložení do bufferu. + + 3. Přesuň kurzor VÝŠE tam, kam smazaný řádek patří. + + 4. V Normálním módu napiš p pro opětné vložení řádku. + + 5. Opakuj kroky 2 až 4 dokud řádky nebudou ve správném pořadí. + + d) Také se dokážeš vzdělávat? + b) Fialky jsou modré, + c) Inteligence se učí, + a) Růže jsou červené, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.3.2: PŘÍKAZ NAHRAZENÍ + + + ** Napsáním r a znaku se nahradí znak pod kurzorem. ** + + 1. Přesuň kurzor níže na první řádek označený --->. + + 2. Přesuň kurzor na začátek první chyby. + + 3. Napiš r a potom znak, který nahradí chybu. + + 4. Opakuj kroky 2 až 3 dokud není první řádka správně. + +---> Kdiž byl pzán tento řádeg, někdu stlažil špaqné klávesy! +---> Když byl psán tento řádek, někdo stlačíl špatné klávesy! + + 5. Nyní přejdi na Lekci 1.3.2. + +POZNÁMKA: Zapamatuj si, že by ses měl učit používáním, ne zapamatováním. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.3.3: PŘÍKAZ ÚPRAVY + + + ** Pokud chceš změnit část nebo celé slovo, napiš cw . ** + + 1. Přesuň kurzor níže na první řádek označený --->. + + 2. Umísti kurzor na písmeno i v slově řiťok. + + 3. Napiš cw a oprav slovo (v tomto případě napiš 'ádek'.) + + 4. Stlač a přejdi na další chybu (první znak, který třeba změnit.) + + 5. Opakuj kroky 3 až 4 dokud není první věta stejná jako ta druhá. + +---> Tento řiťok má několik skic, které psadoinsa změnit pasdgf příkazu. +---> Tento řádek má několik slov, které potřebují změnit pomocí příkazu. + +Všimni si, že cw nejen nahrazuje slovo, ale také přemístí do vkládání. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.3.4: VÍCE ZMĚN POUŽITÍM c + + + ** Příkaz pro úpravu se druží se stejnými objekty jako ten pro mazání. ** + + 1. Příkaz pro úpravu pracuje stejně jako pro mazání. Formát je: + + [číslo] c objekt NEBO c [číslo] objekt + + 2. Objekty jsou také shodné, jako např.: w (slovo), $ (konec řádku), atd. + + 3. Přejdi níže na první řádek označený --->. + + 4. Přesuň kurzor na první rozdíl. + + 5. Napiš c$ pro upravení zbytku řádku podle toho druhého a stlač . + +---> Konec tohoto řádku potřebuje pomoc, aby byl jako ten druhý. +---> Konec tohoto řádku potřebuje opravit použitím příkazu c$ . + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRNUTÍ LEKCE 1.3 + + + 1. Pro vložení textu, který byl smazán, napiš p . To vloží smazaný text + ZA kurzor (pokud byl řádek smazaný, přejde na řádek pod kurzorem). + + 2. Pro nahrazení znaku pod kurzorem, napiš r a potom znak, kterým + chceš původní znak nahradit. + + 3. Příkaz na upravování umožňuje změnit specifikovaný objekt od kurzoru + do konce objektu. Například: Napiš cw ,čímž změníš text od pozice + kurzoru do konce slova, c$ změní text do konce řádku. + + 4. Formát pro nahrazování je: + + [číslo] c objekt NEBO c [číslo] objekt + +Nyní přejdi na následující lekci. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.4.1: POZICE A STATUS SOUBORU + + + ** Stlač CTRL-g pro zobrazení své pozice v souboru a statusu souboru. + Stlač SHIFT-G pro přechod na řádek v souboru. ** + + Poznámka: Přečti si celou lekci než začneš vykonávat kroky!! + + 1. Drž klávesu Ctrl stlačenou a stiskni g . Vespod obrazovky se zobrazí + stavový řádek s názvem souboru a řádkou na které se nacházíš. Zapamatuj + si číslo řádku pro krok 3. + + 2. Stlač shift-G pro přesun na konec souboru. + + 3. Napiš číslo řádku na kterém si se nacházel a stlač shift-G. To tě + vrátí na řádek, na kterém jsi dříve stiskl Ctrl-g. + (Když píšeš čísla, tak se NEZOBRAZUJÍ na obrazovce.) + + 4. Pokud se cítíš schopný vykonat tyto kroky, vykonej je. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.4.2: PŘÍKAZ VYHLEDÁVÁNÍ + + + ** Napiš / následované řetězcem pro vyhledání onoho řetězce. ** + + 1. Stiskni / v Normálním módu. Všimni si, že tento znak se spolu s + kurzorem zobrazí v dolní části obrazovky jako příkaz : . + + 2. Nyní napiš 'chhybba' . To je slovo, které chceš vyhledat. + + 3. Pro vyhledání dalšího výsledku stejného řetězce, jednoduše stlač n . + Pro vyhledání dalšího výsledku stejného řetězce opačným směrem, stiskni + Shift-N. + + 4. Pokud chceš vyhledat řetězec v opačném směru, použij příkaz ? místo + příkazu / . + +---> "chhybba" není způsob, jak hláskovat chyba; chhybba je chyba. + +Poznámka: Když vyhledávání dosáhne konce souboru, bude pokračovat na jeho + začátku. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.4.3: VYHLEDÁVÁNÍ PÁROVÉ ZÁVORKY + + + ** Napiš % pro nalezení párové ),], nebo } . ** + + 1. Přemísti kurzor na kteroukoli (, [, nebo { v řádku označeném --->. + + 2. Nyní napiš znak % . + + 3. Kurzor se přemístí na odpovídající závorku. + + 4. Stlač % pro přesun kurzoru zpět na otvírající závorku. + +---> Toto ( je testovací řádek ('s, ['s ] a {'s } v něm. )) + +Poznámka: Toto je velmi užitečné pří ladění programu s chybějícími + uzavíracími závorkami. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.4.4: ZPŮSOB JAK ZMĚNIT CHYBY + + + ** Napiš :s/staré/nové/g pro nahrazení slova 'nové' za 'staré'. ** + + 1. Přesuň kurzor na řádek označený --->. + + 2. Napiš :s/dobréé/dobré . Všimni si, že tento příkaz změní pouze + první výskyt v řádku. + + 3. Nyní napiš :s/dobréé/dobré/g což znamená celkové nahrazení v řádku. + Toto nahradí všechny výskyty v řádku. + +---> dobréé suroviny a dobréé náčiní jsou základem dobréé kuchyně. + + 4. Pro změnu všech výskytů řetězce mezi dvěma řádky, + Napiš :#,#s/staré/nové/g kde #,# jsou čísla oněch řádek. + Napiš :%s/staré/nové/g pro změnu všech výskytů v celém souboru. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRNUTÍ LEKCE 1.4 + + + 1. Ctrl-g vypíše tvou pozici v souboru a status souboru. + Shift-G tě přemístí na konec souboru. Číslo následované + Shift-G tě přesune na dané číslo řádku. + + 2. Napsání / následované řetězcem vyhledá řetězec směrem DOPŘEDU. + Napsání ? následované řetězcem vyhledá řetězec směrem DOZADU. + Napsání n po vyhledávání najde následující výskyt řetězce ve stejném + směru, Shift-N ve směru opačném. + + 3. Stisknutí % když je kurzor na (,),[,],{, nebo } najde odpovídající + párovou závorku. + + 4. Pro nahrazení nového za první starý v řádku napiš :s/staré/nové + Pro nahrazení nového za všechny staré v řádku napiš :s/staré/nové/g + Pro nahrazení řetězců mezi dvěmi řádkami # napiš :#,#s/staré/nové/g + Pro nahrazení všech výskytů v souboru napiš :%s/staré/nové/g + Pro potvrzení každého nahrazení přidej 'c' :%s/staré/nové/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.5.1: JAK VYKONAT VNĚJŠÍ PŘÍKAZ + + + ** Napiš :! následované vnějším příkazem pro spuštění příkazu. ** + + 1. Napiš obvyklý příkaz : , který umístí kurzor na spodek obrazovky + To umožní napsat příkaz. + + 2. Nyní stiskni ! (vykřičník). To umožní vykonat jakýkoliv vnější + příkaz z příkazového řádku. + + 3. Například napiš ls za ! a stiskni . Tento příkaz zobrazí + obsah tvého adresáře jako v příkazovém řádku. + Vyzkoušej :!dir pokud ls nefunguje. + +Poznámka: Takto je možné vykonat jakýkoliv příkaz. + +Poznámka: Všechny příkazy : musí být dokončené stisknutím + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.5.2: VÍCE O UKLÁDÁNÍ SOUBORŮ + + + ** Pro uložení změn v souboru napiš :w SOUBOR. ** + + 1. Napiš :!dir nebo :!ls pro výpis aktuálního adresáře. + Už víš, že za tímto musíš stisknout . + + 2. Vyber si název souboru, který ještě neexistuje, například TEST. + + 3. Nyní napiš: :w TEST (kde TEST je vybraný název souboru.) + + 4. To uloží celý soubor (Výuka Vimu) pod názvem TEST. + Pro ověření napiš znovu :!dir , čímž zobrazíš obsah adresáře. + +Poznámka: Jakmile ukončíš Vim a znovu ho spustíš s názvem souboru TEST, + soubor bude přesná kopie výuky, když si ji ukládal. + + 5. Nyní odstraň soubor napsáním (MS-DOS): :!del TEST + nebo (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.5.3: VÝBĚROVÝ PŘÍKAZ ULOŽENÍ + + + ** Pro uložení části souboru napiš :#,# w SOUBOR ** + + 1. Ještě jednou napiš :!dir nebo :!ls pro výpis aktuálního adresáře + a vyber vhodný název souboru jako např. TEST. + + 2. Přesuň kurzor na vrch této stránky a stiskni Ctrl-g pro zobrazení + čísla řádku. ZAPAMATUJ SI TOTO ČÍSLO! + + 3. Nyní se přesuň na spodek této stránky a opět stiskni Ctrl-g. + ZAPAMATUJ SI I ČÍSLO TOHOTO ŘÁDKU! + + 4. Pro uložení POUZE části souboru, napiš :#,# w TEST kde #,# jsou + čísla dvou zapamatovaných řádků (vrch, spodek) a TEST je název souboru. + + 5. Znova se ujisti, že tam ten soubor je pomocí :!dir ale NEODSTRAŇUJ ho. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.5.4: SLUČOVÁNÍ SOUBORŮ + + + ** K vložení obsahu souboru napiš :r NÁZEV_SOUBORU ** + + 1. Napiš :!dir pro ujištění, že soubor TEST stále existuje. + + 2. Přesuň kurzor na vrch této stránky. + +POZNÁMKA: Po vykonání kroku 3 uvidíš lekci 1.5.3. Potom se opět přesuň dolů + na tuto lekci. + + 3. Nyní vlož soubor TEST použitím příkazu :r TEST kde TEST je název + souboru. + +POZNÁMKA: Soubor, který vkládáš se vloží od místa, kde se nachází kurzor. + + 4. Pro potvrzení vložení souboru, přesuň kurzor zpět a všimni si, že teď + máš dvě kopie lekce 1.5.3, originál a souborovou verzi. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRNUTÍ LEKCE 1.5 + + + 1. :!příkaz vykoná vnější příkaz. + + Některé užitečné příklady jsou: + (MS-DOS) (Unix) + :!dir :!ls - zobrazí obsah souboru. + :!del SOUBOR :!rm SOUBOR - odstraní SOUBOR. + + 2. :w SOUBOR uloží aktuální text jako SOUBOR na disk. + + 3. :#,#w SOUBOR uloží řádky od # do # do SOUBORU. + + 4. :r SOUBOR vybere z disku SOUBOR a vloží ho do editovaného souboru + za pozici kurzoru. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.6.1: PŘÍKAZ OTEVŘÍT + + + ** Napiš o pro vložení řádku pod kurzor a přepnutí do Vkládacího módu. ** + + 1. Přemísti kurzor níže na řádek označený --->. + + 2. Napiš o (malé) pro vložení řádku POD kurzor a přepnutí do + Vkládacího módu. + + 3. Nyní zkopíruj řádek označený ---> a stiskni pro ukončení + Vkládacího módu. + +---> Po stisknutí o se kurzor přemístí na vložený řádek do Vkládacího + módu. + + 4. Pro otevření řádku NAD kurzorem jednoduše napiš velké O , místo + malého o. Vyzkoušej si to na následujícím řádku. +Vlož řádek nad tímto napsáním Shift-O po umístění kurzoru na tento řádek. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.6.2: PŘÍKAZ PŘIDAT + + + ** Stiskni a pro vložení textu ZA kurzor. ** + + 1. Přesuň kurzor na níže na konec řádky označené ---> + stisknutím $ v Normálním módu. + + 2. Stiskni a (malé) pro přidání textu ZA znak, který je pod kurzorem. + (Velké A přidá na konec řádku.) + +Poznámka: Tímto se vyhneš stisknutí i , posledního znaku, textu na vložení, + , kurzor doprava, a nakonec x na přidávání na konec řádku! + + 3. Nyní dokončí první řádek. Všimni si, že přidávání je vlastně stejné jako + Vkládací mód, kromě místa, kam se text vkládá. + +---> Tento řádek ti umožňuje nacvičit +---> Tento řádek ti umožňuje nacvičit přidávání textu na konec řádky. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.6.3: JINÝ ZPŮSOB NAHRAZOVÁNÍ + + + ** Napiš velké R pro nahrazení víc než jednoho znaku. ** + + 1. Přesuň kurzor na první řádek označený --->. + + 2. Umísti kurzor na začátek prvního slova, které je odlišné od druhého + řádku označeného ---> (slovo 'poslední'). + + 3. Nyní stiskni R a nahraď zbytek textu na prvním řádku přepsáním + starého textu tak, aby byl první řádek stejný jako ten druhý. + +---> Pro upravení prvního řádku do tvaru toho poslední na straně použij kl. +---> Pro upravení prvního řádku do tvaru toho druhého, napiš R a nový text. + + 4. Všimni si, že jakmile stiskneš všechen nezměněný text zůstává. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekce 1.6.4: NASTAVENÍ MOŽNOSTÍ + + ** Nastav možnost, že vyhledávání anebo nahrazování nedbá velikosti písmen ** + + 1. Vyhledej řetězec 'ignore' napsáním: + /ignore + Zopakuj několikrát stisknutí klávesy n. + + 2. Nastav možnost 'ic' (Ignore case) napsáním příkazu: + :set ic + + 3. Nyní znovu vyhledej 'ignore' stisknutím: n + Několikrát hledání zopakuj stisknutím klávesy n. + + 4. Nastav možnosti 'hlsearch' a 'incsearch': + :set hls is + + 5. Nyní znovu vykonej vyhledávací příkaz a sleduj, co se stane: + /ignore + + 6. Pro vypnutí zvýrazňování výsledků napiš: + :nohlsearch +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SHRHNUTÍ LEKCE 1.6 + + + 1. Stisknutí o otevře nový řádek POD kurzorem a umístí kurzor na vložený + řádek do Vkládacího módu. + Napsání velkého O otevře řádek NAD řádkem, na kterém je kurzor. + + 2. Stiskni a pro vložení textu ZA znak na pozici kurzoru. + Napsání velkého A automaticky přidá text na konec řádku. + + 3. Stisknutí velkého R přepne do Nahrazovacího módu, dokud + nestiskneš pro jeho ukončení. + + 4. Napsání ":set xxx" nastaví možnosti "xxx". + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCE 1.7: PŘÍKAZY ON-LINE NÁPOVĚDY + + + ** Používej on-line systém nápovědy ** + + Vim má obsáhlý on-line systém nápovědy. Pro začátek vyzkoušej jeden z + následujících: + - stiskni klávesu (pokud ji máš) + - stiskni klávesu (pokud ji máš) + - napiš :help + + Napiš :q pro uzavření okna nápovědy. + + Můžeš najít nápovědu k jakémukoliv tématu přidáním argumentu k + příkazu ":help". Zkus tyto (nezapomeň stisknout ): + + :help w + :help c_ L-tasten er til højre og flytter til højre. + j J-tasten ligner en ned-pil. + v + 1. Flyt markøren rundt på skærmen indtil du er fortrolig med det. + + 2. Hold ned-tasten (j) nede, indtil den gentager. + Nu ved du hvordan du flytter til den næste lektion. + + 3. Brug ned-tasten til at flytte til lektion 1.2. + +BEMÆRK: Hvis du nogensinde bliver i tvivl om noget du skrev, så tryk på + for at stille dig i normal tilstand. Skriv så kommandoen igen. + +BEMÆRK: Piletasterne bør også virke. Men med hjkl kan du flytte rundt + meget hurtigere, når du har vænnet dig til det. Seriøst! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.2: AFSLUT VIM + + + !! BEMÆRK: Læs hele lektionen, inden trinnene nedenfor udføres!! + + 1. Tryk på -tasten (for at være sikker på, at du er i normal tilstand). + + 2. Skriv: :q! . + Det afslutter editoren, hvorved ændringer som du har foretaget forkastes. + + 3. Vend tilbage hertil ved at udføre kommandoen som fik dig ind i + vejledningen. Det var muligvis: vimtutor + + 4. Hvis du har lært trinnene udenad og er klar, så udfør trin + 1 til 3 for at afslutte og komme ind i editoren igen. + +BEMÆRK: :q! forkaster ændringer som du har foretaget. Om få lektioner + vil du lære at gemme ændringerne til en fil. + + 5. Flyt markøren ned til lektion 1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.3: TEKSTREDIGERING - SLET + + + ** Tryk på x for at slette tegnet som markøren er ovenpå. ** + + 1. Flyt markøren ned til linjen med --->. + + 2. Ret fejlene ved at flytte markøren indtil den er ovenpå + tegnet som skal slettes. + + 3. Tryk på x-tasten for at slette det uønskede tegn. + + 4. Gentag trin 2 til 4 indtil sætningen er korrekt. + +---> Kkoen sprangg ovverr måånen. + + 5. Gå videre til lektion 1.4, nu hvor linjen er korrekt. + +BEMÆRK: Efterhånden som du gennemgår vejledningen, så lær det ikke udenad, + lær det ved at gøre det. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.4: TEKSTREDIGERING - INDSÆT + + + ** Tryk på i for at indsætte tekst. ** + + 1. Flyt markøren ned til den første linje med --->. + + 2. For at gøre den første linje magen til den anden, skal markøren flyttes + ovenpå det først tegn EFTER der hvor teksten skal indsættes. + + 3. Tryk på i og skriv de nødvendige tilføjelser. + + 4. Efterhånden som hver fejl rettes, så tryk på for at vende tilbage + til normal tilstand. Gentag trin 2 til 4 for at rette sætningen. + +---> Der mangler tekst dene . +---> Der mangler noget tekst på denne linje. + + 5. Når du fortrolig med at indsætte tekst, så flyt til lektion 1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.5: TEKSTREDIGERING - VEDHÆFT + + + ** Tryk på A for at vedhæfte tekst. ** + + 1. Flyt markøren ned til den første linje med --->. + Det er lige meget hvilket tegn markøren er på, på linjen. + + 2. Tryk på A og skriv de nødvendige tilføjelser. + + 3. Tryk på når teksten er blevet vedhæftet for at vende tilbage til normal tilstand. + + 4. Flyt markøren til den anden linje med ---> og gentag + trin 2 og 3 for at rette sætningen. + +---> Der mangler noget tekst på den + Der mangler noget tekst på denne linje. +---> Der mangler også noget tek + Der mangler også noget tekst her. + + 5. Når du er fortrolig med at vedhæfte tekst, så flyt til lektion 1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.6: REDIGER EN FIL + + ** Brug :wq til at gemme en fil og afslutte. ** + + !! BEMÆRK: Læs hele lektionen, inden trinnene nedenfor udføres!! + + 1. Afslut vejledningen som du gjorde i lektion 1.1.2: :q! + Eller gør følgende i en anden terminal, hvis du har adgang til en. + + 2. Skriv denne kommando i skalprompten: vim tutor + 'vim' er kommandoen til at starte Vim-editoren, 'tutor' er navnet på + filen som du vil redigere. Brug en fil som kan ændres. + + 3. Indsæt og slet tekst, som du lærte vi de forrige lektioner. + + 4. Gem filen med ændringer og afslut Vim med: :wq + + 5. Hvis du afsluttede vimtutor i trin 1, så genstart vimtutor og flyt ned + til følgende opsummering. + + 6. Udfør trinnene ovenfor, når du har læst og forstået dem. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1 OPSUMMERING + + + 1. Markøren flyttes enten med piletasterne eller hjkl-tasterne. + h (venstre) j (ned) k (op) l (højre) + + 2. Vim startes fra skalprompten, ved at skrive: vim FILNAVN + + 3. Vim afsluttes, ved at skrive: :q! for at forkaste alle ændringer. + ELLER, ved at skrive: :wq for at gemme ændringerne. + + 4. Slet tegn ved markøren, ved at skrive: x + + 5. Indsæt eller vedhæft tekst, ved at skrive: + i skriv indsat tekst indsæt inden markøren + A skriv vedhæftet tekst vedhæft efter linjen + +BEMÆRK: Når der trykkes på , så stilles du i normal tilstand eller også + annulleres en uønsket og delvist fuldført kommando. + +Fortsæt nu med lektion 2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.1: SLETTEKOMMANDOER + + + ** Skriv dw for at slette et ord. ** + + 1. Tryk på for at være sikker på, at du er i normal tilstand. + + 2. Flyt markøren ned til linjen med --->. + + 3. Flyt markøren til begyndelsen af et ord som skal slettes. + + 4. Skriv dw for at få ordet til at forsvinde. + + BEMÆRK: Bogstavet d vises på den sidste linje på den skærm du skrev + det på. Vim venter på at du skriver w . Hvis du ser et andet tegn + end d , så skrev du forkert; tryk på og start forfra. + +---> Der er regnorm nogle ord som sjovt ikke hører til papir i sætningen. + + 5. Gentag trin 3 og 4 indtil sætningen er korrekt og gå til lektion 2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.2: FLERE SLETTEKOMMANDOER + + + ** Skriv d$ for at slette til slutningen af linjen. ** + + 1. Tryk på for at være sikker på, at du er i normal tilstand. + + 2. Flyt markøren ned til linjen med --->. + + 3. Flyt markøren til slutningen af den rette linje (EFTER det første . ). + + 4. Skriv d$ for at slette til slutningen af linjen. + +---> Nogen skrev slutningen af linjen to gange. slutningen af linjen to gange. + + + 5. Flyt videre til lektion 2.3 for at forstå hvad der sker. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.3: OM OPERATORER OG BEVÆGELSER + + + Mange kommandoer som ændre tekst skabes fra en operator og en bevægelse. + Formatet til en slettekommando med sletteoperatoren d er som følger: + + d bevægelse + + Hvor: + d - er sletteoperatoren. + bevægelse - er hvad operatoren skal arbejde på (oplistet nedenfor). + + En kort liste over bevægelser: + w - indtil begyndelsen af det næste ord, EKSKLUSIV dets første tegn. + e - til slutningen af det nuværende ord, INKLUSIV det sidste tegn. + $ - til slutningen af linjen, INKLUSIV det sidste tegn. + + Så når der skrives de så slettes der fra markøren til slutningen af ordet. + +BEMÆRK: Når kun bevægelsen trykkes i normal tilstand, uden en operator, + så flyttes markøren som angivet. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.4: BRUG TÆLLER TIL EN BEVÆGELSE + + + ** Når der skrives et nummer inden en bevægelse, så gentages den det antal gange. ** + + 1. Flyt markøren ned til begyndelsen af linjen med --->. + + 2. Skriv 2w for at flytte markøren fremad to ord. + + 3. Skriv 3e for at flytte markøren fremad til slutningen af det tredje ord. + + 4. Skriv 0 (nul) for at flytte til begyndelsen af linjen. + + 5. Gentag trin 2 og 3 med forskellige numre. + +---> Dette er blot en linje med ord som du kan flytte rundt i. + + 6. Flyt videre til lektion 2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.5: BRUG TÆLLER TIL AT SLETTE FLERE + + + ** Når der skrives et nummer med en operator, så gentages den det antal gange. ** + + I kombinationen med sletteoperatoren og en bevægelse nævnt ovenfor kan du + indsætte en tæller inden bevægelsen for at slette flere: + d nummer bevægelse + + 1. Flyt markøren til det første ord MED STORT på linjen med --->. + + 2. Skriv d2w for at slette de to ord MED STORT + + 3. Gentag trin 1 og 2 med en anden tæller for at slette de efterfølgende + ord MED STORT med én kommando + +---> denne ABC DE linje FGHI JK LMN OP med ord er Q RS TUV renset. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.6: ARBEJD PÅ LINJER + + + ** Skriv dd for at slette en hel linje. ** + + Pga. at sletning af linjer bruges så ofte, så besluttede designerne af Vi + at det ville være lettere bare at skrive to d'er for at slette en linje. + + 1. Flyt markøren til den anden linje i frasen nedenfor. + 2. Skriv dd for at slette linjen. + 3. Flyt nu til den fjerde linje. + 4. Skriv 2dd for at slette to linjer. + +---> 1) Roser er røde, +---> 2) Mudder er sjovt, +---> 3) Violer er blå, +---> 4) Jeg har en scooter, +---> 5) Ure viser tiden, +---> 6) Sukker er sødt +---> 7) Og du er lige så. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.7: FORTRYD-KOMMANDOEN + + + ** Tryk på u for at fortryde de sidste kommandoer, U for at rette en hel linje. ** + + 1. Flyt markøren ned til linjen med ---> og placer den på + den første fejl. + 2. Skriv x for at slette det første uønskede tegn. + 3. Skriv nu u for at fortryde den sidste kommando der blev udført. + 4. Ret denne gang alle fejlene på linjen med x-kommadoen. + 5. Skriv nu et stort U for at få linjen tilbage til dens oprindelige tilstand. + 6. Skriv nu u nogle få gange for at fortryde U'et og forudgående kommandoer. + 7. Skriv nu CTRL-R (hold CTRL-tasten nede mens der trykkes på R) nogle få gange + for at omgøre kommandoerne (fortryd fortrydelserne). + +---> Rett fejlene ppå liinjen og errstat dem meed fortryd. + + 8. Det er meget nyttige kommandoer. Flyt nu til lektion 2 opsummering. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 2 OPSUMMERING + + + 1. Slet fra markøren op til det næste ord, ved at skrive: dw + 2. Slet fra markøren til slutningen af en linje, ved at skrive: d$ + 3. Slet en hel linje, ved at skrive: dd + + 4. Gentag en bevægelse ved at vedhæfte et nummer i begyndelsen: 2w + 5. Formatet til en ændr-kommando er: + operator [nummer] bevægelse + hvor: + operator - er hvad der skal gøres, såsom d for at slette + [nummer] - er en valgfri tæller til at gentage bevægelsen + bevægelse - flytter over teksten som der skal arbejde på, såsom w (ord), + $ (til slutningen af linjen), osv. + + 6. Flyt til begyndelsen af linjen med et nul: 0 + + 7. Fortryd tidligere handlinger, ved at skrive: u (lille u) + Fortryd alle ændringerne på en linje, ved at skrive: U (stort U) + Fortryd fortrydelserne, ved at skrive: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.1: PUT-INDSÆTTE-KOMMANDOEN + + + ** Skriv p for at put-indsætte tidligere slettede tekst efter markøren. ** + + 1. Flyt markøren ned til den første linje med --->. + + 2. Skriv dd for at slette linjen og gemme den i et Vim-register. + + 3. Flyt markøren til c)-linjen, OVER hvor den slettede linje skal være. + + 4. Skriv p for at put-indsætte linjen nedenunder markøren. + + 5. Gentag trin 2 til 4 for at put-indsætte alle linjerne i den rigtige rækkefølge. + +---> d) Kan du lære lige så? +---> b) Violer er blå, +---> c) Intelligens skal læres, +---> a) Roser er røde, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.2: ERSTAT-KOMMANDOEN + + + ** Skriv rx for at erstatte tegnet ved markøren med x . ** + + 1. Flyt markøren ned til den første linje med --->. + + 2. Flyt markøren så den er ovenpå den første fejl. + + 3. Skriv r og så tegnet som skal være der. + + 4. Gentag trin 2 og 3 indtil den første linje er magen til den anden. + +---> Def var nohen der trukkede på de forkerge taster, da linjem blev skrevet! +---> Der var nogen der trykkede på de forkerte taster, da linjen blev skrevet! + + 5. Flyt nu videre til lektion 3.3. + +BEMÆRK: Husk på at du skal lære ved at gøre det, ikke ved at lære det udenad. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.3: ÆNDRINGSOPERATOREN + + + ** Ændr indtil slutningen af et ord, ved at skrive ce . ** + + 1. Flyt markøren ned til den første linje med --->. + + 2. Placer markøren på k'et i likibj. + + 3. Skriv ce og det korrekte ord (i dette tilfælde skrives njen ). + + 4. Tryk på og flyt til det næste tegn der skal ændres. + + 5. Gentag trin 3 og 4 indtil den første sætning er magen til den anden. + +---> Likibj har nogle få ndo som vnes ændres vrf ændringsoperatoren. +---> Linjen har nogle få ord som skal ændres med ændringsoperatoren. + +Bemærk at ce sletter ordet og stiller dig i indsæt-tilstand. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.4: FLERE ÆNDRINGER MED c + + + ** ÆNDRINGSOPERATOREN bruges med de samme bevægelser som slet. ** + + 1. Ændringsoperatoren virker på samme måde som slet. Formatet er: + + c [nummer] bevægelse + + 2. Bevægelserne er de samme, såsom w (ord) og $ (slutningen af linjen). + + 3. Flyt ned til den første linje med --->. + + 4. Flyt markøren til den første fejl. + + 5. Skriv c$ og skriv resten af linjen som den anden linje og tryk på . + +---> Slutningen af linjen har brug for lidt hjælp til at blive ligesom den anden. +---> Slutningen af linjen skal rettes med c$-kommandoen. + +BEMÆRK: Du kan bruge backspace-tasten til at rette fejl når du skriver. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 3 OPSUMMERING + + + 1. Put-indsæt tekst tilbage som lige er blevet slettet, ved at skrive p . + Det put-indsætter den slettede tekst EFTER markøren (hvis en linje blev + slettet, så vil den være på linjen nedenunder markøren). + + 2. Erstat tegnet under markøren, ved at skrive r og så + tegnet som du vil have der. + + 3. Ændringsoperatoren giver dig mulighed for at ændre fra markøren til hvor + bevægelsen tager dig hen. Skriv f.eks. ce for at ændre fra markøren til + slutningen af ordet, c$ for at ændre til slutningen af en linjen. + + 4. Formatet til at ændre er: + + c [nummer] bevægelse + +Gå nu videre til den næste lektion. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.1: MARKØRPLACERING OG FILSTATUS + + ** Skriv CTRL-G for at vise din placering i filen og filstatussen. + Skriv G for at flytte til en linje i filen. ** + + BEMÆRK: Læs hele lektionen, inden trinnene udføres!! + + 1. Hold Ctrl-tasten nede og tryk på g . Vi kalder det CTRL-G. + Der vises en meddelelse nederst på siden med filnavnet og + placeringen i filen. Husk linjenummeret til trin 3. + +BEMÆRK: Du ser muligvis markørplaceringen nederst i højre hjørne af skærmen. + Det sker når 'ruler'-valgmuligheden er sat (se :help 'ruler' ) + + 2. Tryk på G for at flytte dig nederst i filen. + Skriv gg for at flytte dig øverst i filen. + + 3. Skriv nummeret på den linje du var på, og så G . Det + returnerer dig til den linje du var på da du første trykkede på CTRL-G. + + 4. Hvis du føler dig klar til at gøre det, så udføre trin 1 til 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.2: SØG-KOMMANDOEN + + + ** Skriv / efterfulgt af en frase for at søge efter frasen. ** + + 1. I normal tilstand, skriv /-tegnet . Bemærk at det og markøren + vises i bunden af skærmen som med :-kommandoen . + + 2. Skriv nu 'feeejjl' . Det er ordet du vil søge efter. + + 3. Søg efter den samme frase igen, ved blot at skrive n . + Søg efter den samme frase i den anden retning, ved at skrive N . + + 4. Søg efter en frase i den modsatte retning, ved at bruge ? i stedet for / . + + 5. Gå tilbage hvor du kom fra, ved at trykke på CTRL-O (Hold Ctrl nede mens + der trykkes på bogstavet o). Gentag for at gå længere tilbage. CTRL-I går fremad. + +---> "feeejjl" er den forkerte måde at stave til fejl; feeejjl er en fejl. +BEMÆRK: Når søgningen når slutningen af filen, så fortsætter den ved + begyndelsen, men mindre 'wrapscan'-valgmuligheden er blevet slået fra. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.3: SØG EFTER MODSVARENDE PARENTESER + + + ** Skriv % for at finde en modsvarende ),], eller } . ** + + 1. Placer markøren på (, [, eller { på linjen nedenfor med --->. + + 2. Skriv nu %-tegnet . + + 3. Markøren flytter til den modsvarende parentes eller klamme. + + 4. Skriv % for at flytte markøren til den anden modsvarende klamme. + + 5. Flyt markøren til en anden (,),[,],{ eller } og se hvad % gør. + +---> Dette ( er en testlinje med ('er, ['er ] og {'er }. )) + + +BEMÆRK: Det er meget nyttigt ved fejlretning af et program som mangler + modsvarende parenteser! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.4: UDSKIFT-KOMMANDOEN + + + ** Skriv :s/gammel/ny/g for at udskifte 'gammel' med 'ny'. ** + + 1. Flyt markøren ned til linjen med --->. + + 2. Skriv :s/dett/det . Bemærk at kommandoen kun ændre den + første forekomst af "dett" på linjen. + + 3. Skriv nu :s/dett/det/g . Når g-flaget tilføjes, så udskiftes der + globalt på linjen, altså ændre alle forekomster af "dett" på linjen. + +---> dett siges at dett er bedst at se på blomster når dett er forår. + + 4. Ændr hver forekomst af en tegnstreng mellem to linjer, + ved at skrive :#,#s/gammel/ny/g hvor #,# er linjenumrene over området + af linjer hvor udskiftningen skal ske. + Skriv :%s/gammel/ny/g for at ændre hver forekomst i hele filen. + Skriv :%s/gammel/ny/gc for at finde hver forekomst i hele filen, + med en prompt om hvorvidt der skal udskiftes eller ej. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 4 OPSUMMERING + + + 1. CTRL-G viser din placering i filen og filstatussen. + G flytter til slutningen af filen. + nummer G flytter til linjenummeret. + gg flytter til den første linje. + + 2. Når der skrives / efterfulgt af en frase, så søges der FREMAD efter frasen. + Når der skrives ? efterfulgt af en frase, så søges der BAGLÆNS efter frasen. + Skriv n efter en søgning, for at finde den næste forekomst i den samme retning, + eller N for at søge i den modsatte retning. + CTRL-O tager dig tilbage til ældre placeringer, CTRL-I til nyere placeringer. + + 3. Når der skrives % mens markøren er på et (,),[,],{, eller }, så går den til dens match. + + 4. Udskift den første første gammel med ny på en linje, ved at skrive :s/gammel/ny + Udskift alle gammel med ny på en linje, ved at skrive :s/gammel/ny/g + Udskift fraser mellem to linenumre, ved at skrive :#,#s/gammel/ny/g + Udskift alle forekomster i filen, ved at skrive :%s/gammel/ny/g + Spørg om bekræftelse hver gang, ved at tilføje 'c' :%s/gammel/ny/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.1: UDFØR EN EKSTERN KOMMANDO + + + ** Skriv :! efterfulgt af en ekstern kommando, for at udføre kommandoen. ** + + 1. Skriv den velkendte kommando : for at sætte markøren nederst på + skærmen. Det giver dig mulighed for at indtaste en kommandolinjekommando. + + 2. Skriv nu !-tegnet (udråbstegn). Det giver dig mulighed + for at udføre enhver ekstern skalkommando. + + 3. Skriv f.eks. ls efter ! og tryk så på . Det + viser dig en liste over din mappe, ligesom hvis du var ved + skalprompten. Eller brug :!dir hvis ikke ls virker. + +BEMÆRK: Det er muligt at udføre enhver ekstern kommando på denne måde, + også med argumenter. + +BEMÆRK: Alle :-kommandoer skal afsluttes ved at trykke på . + Vi nævner det ikke altid herefter. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.2: MERE OM AT SKRIVE FILER + + + ** Gem ændringerne som er foretaget til teksten, ved at skrive :w FILNAVN. ** + + 1. Skriv :!dir eller :!ls for at få en liste over din mappe. + Du ved allerede at du skal trykke på bagefter. + + 2. Vælg et filnavn som ikke findes endnu, såsom TEST. + + 3. Skriv nu: :w TEST (hvor TEST er filnavnet som du vælger.) + + 4. Det gemmer hele filen (Vim-vejledningen) under navnet TEST. + Bekræft det, ved igen at skrive :!dir eller :!ls for at se din mappe. + +BEMÆRK: Hvis du afslutter Vim og starter den igen med vim TEST , så vil + filen være en nøjagtig kopi af vejledningen da du gemte den. + + 5. Fjern nu filen, ved at skrive (MS-DOS): :!del TEST + eller (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.3: MARKÉR TEKST SOM SKAL SKRIVES + + + ** Gem en del af en fil, ved at skrive v bevægelse :w FILNAVN ** + + 1. Flyt markøren til denne linje. + + 2. Tryk på v og flyt markøren til the femte punkt nedenfor. Bemærk at + teksten er fremhævet. + + 3. Tryk på :-tegnet . Nederst på skærmen vises :'<,'>. + + 4. Skriv w TEST , hvor TEST er filnavnet som endnu ikke findes. Bekræft + at du ser :'<,'>w TEST inden du trykker på . + + 5. Vim skriver de markerede linjer til filen TEST. Brug :!dir eller :!ls + for at se den. Fjern den ikke endnu! Vi bruger den i den næste lektion. + +BEMÆRK: Når der trykkes på v startes visuel markering. Du kan flytte markøren + rundt for at gøre markeringen større eller mindre. Du kan så bruge en + operator til at gøre noget med teksten. F.eks. vil d slette teksten. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.4: INDHENT OG SAMMENLÆG FILER + + + ** Indsæt indholdet af en fil, ved at skrive :r FILNAVN ** + + 1. Placer markøren lige ovenover denne linje. + +BEMÆRK: Når trin 2 er udført vil du se teksten fra lektion 5.3. Flyt så + NED for at se denne lektion igen. + + 2. Indhent nu din TEST-fil med kommandoen :r TEST , hvor TEST er + navnet på filen som du brugte. + Filen som du indhenter placeres under markørens linje. + + 3. Bekræft at en fil blev indhentet, ved at flytte markøren tilbage og bemærk + at der nu er to kopier af lektion 5.3, den originale og filversionen. + +BEMÆRK: Du kan også læse outputtet fra en ekstern kommando. F.eks. læser + :r !ls outputtet fra ls-kommandoen og indsætter det under + markøren. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 5 OPSUMMERING + + + 1. :!kommando udfører en ekstern kommando. + + Nogle nyttige eksempler er: + (MS-DOS) (Unix) + :!dir :!ls - viser en liste over mapper. + :!del FILNAVN :!rm FILNAVN - fjerner filen FILNAVN. + + 2. :w FILNAVN skriver den nuværende Vim-fil til disken med navnet FILNAVN. + + 3. v bevægelse :w FILNAVN gemmer de visuelt markerede linjer i filen + FILNAVN. + + 4. :r FILNAVN indhenter diskfilen FILNAVN og indsætter den under + markørens placering. + + 5. :r !dir læser outputtet fra dir-kommandoen og indsætter det under + markørens placering. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.1: ÅBN-KOMMANDOEN + + + ** Skriv o for at åbne en linje under markøren og stille dig i indsæt-tilstand. ** + + 1. Flyt markøren ned til linjen med --->. + + 2. Skriv bogstavet o med småt, for at åbne en linje UNDER markøren og stille + dig i indsæt-tilstand. + + 3. Skriv nu noget tekst og tryk på for at afslutte indsæt-tilstand. + +---> Efter o er blevet skrevet, placeres markøren på den åbne linje i indsæt-tilstand. + + 4. Skriv blot et stort O , i stedet for et lille o , for at + åbne en linje OVENOVER markøren. Prøv det på linjen nedenfor. + +---> Åbn en line ovenover denne, ved at skrive O mens markøren er på denne linje. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.2: VEDHÆFT-KOMMANDOEN + + + ** Skriv a for at indsætte tekst EFTER markøren. ** + + 1. Flyt markøren ned til begyndelsen af linjen med --->. + + 2. Tryk på e indtil markøren er på slutningen af lin . + + 3. Skriv et a (med småt) for at vedhæfte tekst EFTER markøren. + + 4. Fuldfør ordet ligesom linjen under det. Tryk på for at afslutte + indsæt-tilstand. + + 5. Brug e til at flytte til det næste ufærdige ord og gentag trin 3 og 4. + +---> Lin giver dig mulighed for at øv vedhæftnin af tekst til en linje. +---> Linjen giver dig mulighed for at øve vedhæftning af tekst til en linje. + +BEMÆRK: a, i og A går alle til den samme indsæt-tilstand, + den eneste forskel er hvor tegnene indsættes. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.3: AN ANDEN MÅDE AT ERSTATTE + + + ** Skriv et stort R for at erstatte flere end ét tegn. ** + + 1. Flyt markøren ned til den første linje med --->. Flyt markøren til + begyndelsen af den første xxx . + + 2. Tryk nu på R og skriv nummeret som er under det på den anden linje, + så det erstatter xxx . + + 3. Tryk på for at forlade erstat-tilstand. Bemærk at resten af linjen + forbliver uændret. + + 4. Gentag trinnene for at erstatte det sidste xxx. + +---> Når 123 lægges sammen med xxx giver det xxx. +---> Når 123 lægges sammen med 456 giver det 579. + +BEMÆRK: Erstat-tilstand er ligesom indsæt-tilstand, men hvert indtastede + tegn sletter et eksisterende tegn. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.4: KOPÍER OG INDSÆT TEKST + + + ** Brug y-operatoren til at kopiere tekst og p til at indsætte den ** + + 1. Gå ned til linjen med ---> og placer markøren efter "a)". + + 2. Start visuel tilstand med v og flyt markøren til lige inden "første". + + 3. Skriv y for at yank-udtrække (kopiere) den fremhævede tekst. + + 4. Flyt markøren til slutningen af den næste linje: j$ + + 5. Skriv p for at put-indsætte (indsætte) teksten. Skriv så: a andet . + + 6. Brug visuel tilstand til at markere " punkt.", yank-udtræk med y , flyt + til slutningen af næste linje med j$ og put-indsæt teksten der med p . + +---> a) dette er det første punkt. + b) + + BEMÆRK: du kan også bruge y som en operator; yw yank-udtrækker et ord. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.5: SÆT VALGMULIGHED + + + ** Sæt en valgmulighed så en søgning eller udskiftning ignorerer forskelle på store/små bogstaver ** + + 1. Søg efter 'ignorer', ved at skrive: /ignorer + Gentag flere gange ved at trykke på n . + + 2. Sæt 'ic'-valgmuligheden (Ignorer forskelle på store/små bogstaver), ved at skrive: :set ic + + 3. Søg nu efter 'ignorer' igen, ved at trykke på n + Bemærk at Ignorer og IGNORER nu også bliver fundet. + + 4. Sæt 'hlsearch'- og 'incsearch'-valgmulighederne: :set hls is + + 5. Skriv nu søg-kommandoen igen og se hvad der sker: /ignorer + + 6. Deaktivér ignorering af forskelle på store/små bogstaver, ved at skrive: :set noic + +BEMÆRK: Fjern fremhævningen af matches, ved at skrive: :nohlsearch +BEMÆRK: Hvis du vil ignorere case for en enkelt søg-kommando, så brug \c + i frasen: /ignorer\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 6 OPSUMMERING + + 1. Skriv o for at åbne en linje NEDENUNDER markøren og starte indsæt-tilstand. + Skriv O for at åbne en linje OVENOVER markøren. + + 2. Skriv a for at indsætte tekst EFTER markøren. + Skriv A for at indsætte tekst efter slutningen af linjen. + + 3. e-kommandoen flytter til slutningen af et ord. + + 4. y-operatoren yank-udtrækker (kopierer) tekst, p put-indsætter (indsætter) den. + + 5. Når der skrives et stort R stilles du i erstat-tilstand indtil der trykkes på . + + 6. Når der skrives ":set xxx", så sættes valgmuligheden "xxx". Nogle valgmuligheder er: + 'ic' 'ignorecase' ignorer forskelle på store/små bogstaver når der søges + 'is' 'incsearch' vis delvise match for en søgefrase + 'hls' 'hlsearch' fremhæv alle fraser som matcher + Du kan enten bruge det lange eller korte valgmulighedsnavn. + + 7. Vedhæft "no" i begyndelsen, for at slå en valgmulighed fra: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.1: FÅ HJÆLP + + + ** Brug online-hjælpesystemet ** + + Vim har et omfattende online-hjælpesystem. Prøv en af disse tre, + for at komme i gang: + - tryk på -tasten (hvis du har en) + - tryk på -tasten (hvis du har en) + - skriv :help + + Læs teksten i hjælpevinduet for at finde ud af hvordan hjælpen virker. + Skriv CTRL-W CTRL-W for at hoppe fra et vindue til et andet. + Skriv :q for at lukke hjælpevinduet. + + Du kan finde hjælp om næsten alle emner, ved at give et argument til + ":help"-kommandoen. Prøv disse (husk at trykke på ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.2: OPRET ET OPSTARTS-SCRIPT + + + ** Aktivér Vim-funktionaliteter ** + + Vim har mange flere funktionaliteter end Vi, men de fleste er deaktiveret som + standard. For at bruge flere funktionaliteter skal du oprette en "vimrc"-fil. + + 1. Begynd at redigere "vimrc"-filen. Det afhænger af dit system: + :e ~/.vimrc i Unix + :e ~/_vimrc i MS-Windows + + 2. Læs nu indholdet af eksempel "vimrc"-filen: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Skriv filen med: + :w + + Næste gang du starter Vim bruger den syntaksfremhævning. + Du kan tilføje alle dine foretrukne indstillinger til "vimrc"-filen. + Få mere information, ved at skrive :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.3: FULDFØRELSE + + + ** Kommandolinjefuldførelse med CTRL-D og ** + + 1. Sørg for at Vim ikke er i kompatibel tilstand: :set nocp + + 2. Se hvilke filer der er i mappen: :!ls eller :!dir + + 3. Skriv begyndelsen af en kommando: :e + + 4. Tryk på CTRL-D og Vim viser en liste over kommandoer der begynder med "e". + + 5. Tryk på og Vim vil fuldføre kommandonavnet til ":edit". + + 6. Tilføj nu et mellemrum og begyndelsen af et eksisterende filnavn: :edit FIL + + 7. Tryk på . Vim fuldfører navnet (hvis det er unikt). + +BEMÆRK: Fuldførelse virker til mange kommandoer. Prøv blot at trykke på + CTRL-D og . Det er særligt nyttigt til :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 7 OPSUMMERING + + + 1. Skriv :help eller tryk på eller for at åbne et hjælpevindue. + + 2. Skriv :help kommando for at finde hjælp om kommando . + + 3. Skriv CTRL-W CTRL-W for at hoppe til et andet vindue + + 4. Skriv :q for at lukke hjælpevinduet + + 5. Opret et vimrc-opstarts-script for at bevare dine foretrukne indstillinger. + + 6. Når der skrives en :-kommando , så tryk på CTRL-D for at se + mulige fuldførelser. Tryk på for at bruge en fuldførelse. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Det afslutter Vim-vejledningen. Det var meningen den skulle give et + kortfattet overblik af Vim-editoren, lige nok til at du kan bruge editoren + nogenlunde let. Den er langt fra komplet, da Vim har mange mange flere + kommandoer. Læs brugermanualen som det næste: ":help user-manual". + + Denne bog anbefales, til yderligere læsning og studering: + Vim - Vi Improved - af Steve Oualline + Forlag: New Riders + Den første bog som helt er tilegnet Vim. Specielt nyttig for begyndere. + Der er mange eksempler og billeder. + Se https://iccf-holland.org/click5.html + + Denne bog er ældre og mere om Vi end Vim, men anbefales også: + Learning the Vi Editor - af Linda Lamb + Forlag: O'Reilly & Associates Inc. + Det er en god bog til at komme til kende næsten alt hvad du vil gøre med Vi. + Den sjette udgave inkluderer også information om Vim. + + Vejledningen blev skrevet af Michael C. Pierce og Robert K. Ware, + Colorado School of Mines med ideer af Charles Smith, + Colorado State University. E-mail: bware@mines.colorado.edu. + + Ændret til Vim af Bram Moolenaar. + + Oversat af scootergrisen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.de b/git/usr/share/vim/vim92/tutor/tutor1.de new file mode 100644 index 0000000000000000000000000000000000000000..7c4fd28488377e7c84d4f5f7988de8529a8fd941 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.de @@ -0,0 +1,982 @@ +=============================================================================== += W i l l k o m m e n im V I M T u t o r - Version 1.7.de.1 = +=============================================================================== + + Vim ist ein sehr mächtiger Editor, der viele Befehle bereitstellt; zu viele, + um alle in einem Tutor wie diesem zu erklären. Dieser Tutor ist so + gestaltet, um genug Befehle vorzustellen, dass Du die Fähigkeit erlangst, + Vim mit Leichtigkeit als einen Allzweck-Editor zu verwenden. + Die Zeit für das Durcharbeiten dieses Tutors beträgt ca. 25-30 Minuten, + abhängig davon, wie viel Zeit Du mit Experimentieren verbringst. + + ACHTUNG: + Die in den Lektionen angewendeten Kommandos werden den Text modifizieren. + Erstelle eine Kopie dieser Datei, in der Du üben willst (falls Du "vimtutor" + aufgerufen hast, ist dies bereits eine Kopie). + + Es ist wichtig, sich zu vergegenwärtigen, dass dieser Tutor für das Anwenden + konzipiert ist. Das bedeutet, dass Du die Befehle anwenden musst, um sie + richtig zu lernen. Wenn Du nur den Text liest, vergisst Du die Befehle! + + Jetzt stelle sicher, dass deine Umstelltaste NICHT gedrückt ist und betätige + die j Taste genügend Mal, um den Cursor nach unten zu bewegen, so dass + Lektion 1.1.1 den Bildschirm vollkommen ausfüllt. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.1: BEWEGEN DES CURSORS + + ** Um den Cursor zu bewegen, drücke die h,j,k,l Tasten wie unten gezeigt. ** + ^ Hilfestellung: + k Die h Taste befindet sich links und bewegt nach links. + < h l > Die l Taste liegt rechts und bewegt nach rechts. + j Die j Taste ähnelt einem Pfeil nach unten. + v + 1. Bewege den Cursor auf dem Bildschirm umher, bis Du Dich sicher fühlst. + + 2. Halte die Nach-Unten-Taste (j) gedrückt, bis sie sich wiederholt. + Jetzt weißt Du, wie Du Dich zur nächsten Lektion bewegen kannst. + + 3. Benutze die Nach-Unten-Taste, um Dich zu Lektion 1.1.2 zu bewegen. + +Anmerkung: Immer, wenn Du Dir unsicher bist über das, was Du getippt hast, + drücke , um Dich in den Normalmodus zu begeben. + Dann gib das gewünschte Kommando noch einmal ein. + +Anmerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du + hjkl benutzt, wirst Du in der Lage sein, Dich sehr viel schneller + umherzubewegen, wenn Du Dich einmal daran gewöhnt hast. Wirklich! +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.2: VIM BEENDEN + + + !! Hinweis: Bevor Du einen der unten aufgeführten Schritte ausführst, lies + diese gesamte Lektion!! + + 1. Drücke die Taste (um sicherzustellen, dass Du im Normalmodus bist). + + 2. Tippe: :q! . + Dies beendet den Editor und VERWIRFT alle Änderungen, die Du gemacht hast. + + 3. Wenn Du die Eingabeaufforderung siehst, gib das Kommando ein, das Dich zu + diesem Tutor geführt hat. Dies wäre: vimtutor + + 4. Wenn Du Dir diese Schritte eingeprägt hast und Du Dich sicher fühlst, + führe Schritte 1 bis 3 aus, um den Editor zu verlassen und wieder + hineinzugelangen. + +Anmerkung: :q! verwirft alle Änderungen, die Du gemacht hast. Einige + Lektionen später lernst Du, die Änderungen in einer Datei zu speichern. + + 5. Bewege den Cursor abwärts zu Lektion 1.1.3. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.3: TEXT EDITIEREN - LÖSCHEN + + + ** Drücke x , um das Zeichen unter dem Cursor zu löschen. ** + + 1. Bewege den Cursor zu der mit ---> markierten Zeile unten. + + 2. Um die Fehler zu beheben, bewege den Cursor, bis er über dem Zeichen steht, + das gelöscht werden soll. + + 3. Drücke die x Taste, um das unerwünschte Zeichen zu löschen. + + 4. Wiederhole die Schritte 2 bis 4, bis der Satz korrekt ist. + +---> Die Kkuh sprangg übberr deen Moond. + + 5. Nun, da die Zeile korrekt ist, gehe weiter zur Lektion 1.1.4. + +Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu + lernen, lerne vielmehr durch Anwenden. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.4: TEXT EDITIEREN - EINFÜGEN + + + ** Drücke i , um Text einzufügen. ** + + 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile. + + 2. Um die erste Zeile mit der zweiten gleichzumachen, bewege den Cursor auf + das erste Zeichen NACH der Stelle, an der Text eingefügt werden soll. + + 3. Drücke i und gib die nötigen Ergänzungen ein. + + 4. Wenn jeweils ein Fehler beseitigt ist, drücke , um zum Normalmodus + zurückzukehren. + Wiederhole Schritte 2 bis 4, um den Satz zu korrigieren. + +---> In dieser ft etwas . +---> In dieser Zeile fehlt etwas Text. + + 5. Wenn Du Dich mit dem Einfügen von Text sicher fühlst, gehe zu Lektion 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.5: TEXT EDITIEREN - ANFÜGEN + + + ** Drücke A , um Text anzufügen. ** + + 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile. + Dabei ist gleichgültig, auf welchem Zeichen der Zeile der Cursor steht. + + 2. Drücke A und gib die erforderlichen Ergänzungen ein. + + 3. Wenn das Anfügen abgeschlossen ist, drücke , um in den Normalmodus + zurückzukehren. + + 4. Bewege den Cursor zur zweiten mit ---> markierten Zeile und wiederhole + die Schritte 2 und 3, um den Satz auszubessern. + +---> In dieser Zeile feh + In dieser Zeile fehlt etwas Text. +---> Auch hier steh + Auch hier steht etwas Unvollständiges. + + 5. Wenn Du Dich mit dem Anfügen von Text sicher fühlst, gehe zu Lektion 1.1.6. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.6: EINE DATEI EDITIEREN + + ** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. ** + + !! Hinweis: Bevor Du einen der unten aufgeführten Schritte ausführst, lies + diese gesamte Lektion!! + + 1. Verlasse den Editor so wie in Lektion 1.1.2: :q! + Oder, falls Du Zugriff zu einem anderen Terminal hast, führe das + Folgende dort aus. + + 2. Gib dieses Kommando in die Eingabeaufforderung ein: vim tutor + 'vim' ist der Aufruf des Editors, 'tutor' ist die zu editierende Datei. + Benutze eine Datei, die geändert werden darf. + + 3. Füge Text ein oder lösche ihn, wie Du in den vorangehenden Lektionen + gelernt hast. + + 4. Speichere die geänderte Datei und verlasse Vim mit: :wq + + 5. Falls Du in Schritt 1 den vimtutor beendet hast, starte vimtutor neu und + bewege Dich abwärts bis zur folgenden Zusammenfassung. + + 6. Nachdem Du obige Schritte gelesen und verstanden hast: führe sie durch. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.1 + + + 1. Der Cursor wird mit den Pfeiltasten oder den Tasten hjkl bewegt. + h (links) j (unten) k (aufwärts) l (rechts) + + 2. Um Vim aus der Eingabeaufforderung zu starten, tippe: vim DATEI + + 3. Um Vim zu verlassen und alle Änderungen zu verwerfen, tippe: + :q! . + + 4. Um das Zeichen unter dem Cursor zu löschen, tippe: x + + 5. Um Text einzufügen oder anzufügen, tippe: + i Einzufügenden Text eingeben Einfügen vor dem Cursor + A Anzufügenden Text eingeben Anfügen nach dem Zeilenende + +Anmerkung: Drücken von bringt Dich in den Normalmodus oder bricht ein + ungewolltes, erst teilweise eingegebenes Kommando ab. + + Nun fahre mit Lektion 1.2 fort. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.1: LÖSCHKOMMANDOS + + + ** Tippe dw , um ein Wort zu löschen. ** + + 1. Drücke , um sicherzustellen, dass Du im Normalmodus bist. + + 2. Bewege den Cursor zu der mit ---> markierten Zeile unten. + + 3. Bewege den Cursor zum Anfang eines Wortes, das gelöscht werden soll. + + 4. Tippe dw , um das Wort zu entfernen. + + Anmerkung: Der Buchstabe d erscheint auf der untersten Zeile des Schirms, + wenn Du ihn eingibst. Vim wartet darauf, dass Du w eingibst. Falls Du + ein anderes Zeichen als d siehst, hast Du etwas Falsches getippt; + drücke und beginne noch einmal. + +---> Einige Wörter lustig gehören nicht Papier in diesen Satz. + + 5. Wiederhole die Schritte 3 und 4, bis der Satz korrekt ist und gehe + zur Lektion 1.2.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.2: WEITERE LÖSCHKOMMANDOS + + + ** Tippe d$ , um bis zum Ende der Zeile zu löschen. ** + + 1. Drücke , um sicherzustellen, dass Du im Normalmodus bist. + + 2. Bewege den Cursor zu der mit ---> markierten Zeile unten. + + 3. Bewege den Cursor zum Ende der korrekten Zeile (NACH dem ersten . ). + + 4. Tippe d$ , um bis zum Zeilenende zu löschen. + +---> Jemand hat das Ende der Zeile doppelt eingegeben. doppelt eingegeben. + + + 5. Gehe weiter zur Lektion 1.2.3 , um zu verstehen, was hierbei vorgeht. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.3: ÜBER OPERATOREN UND BEWEGUNGSZÜGE + + + Viele Kommandos, die Text ändern, setzen sich aus einem Operator und einer + Bewegung zusammen. Das Format für ein Löschkommando mit dem Löschoperator d + lautet wie folgt: + + d Bewegung + + wobei: + d - der Löschoperator + Bewegung - worauf der Löschoperator angewandt wird (unten aufgeführt). + + Eine kleine Auflistung von Bewegungen: + w - bis zum Beginn des nächsten Wortes OHNE dessen erstes Zeichen. + e - zum Ende des aktuellen Wortes MIT dessen letztem Zeichen. + $ - zum Ende der Zeile MIT dem letzten Zeichen. + + Dementsprechend löscht die Eingabe von de vom Cursor an bis zum Wortende. + +Anmerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den + Cursor entsprechend. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.4: ANWENDUNG EINES ZÄHLERS FÜR EINEN BEWEGUNGSSCHRITT + + + ** Die Eingabe einer Zahl vor einem Bewegungsschritt wiederholt diesen. ** + + 1. Bewege den Cursor zum Beginn der mit ---> markierten Zeile unten. + + 2. Tippe 2w , um den Cursor zwei Wörter vorwärts zu bewegen. + + 3. Tippe 3e , um den Cursor zum Ende des dritten Wortes zu bewegen. + + 4. Tippe 0 (Null) , um zum Anfang der Zeile zu gelangen. + + 5. Wiederhole Schritte 2 und 3 mit verschiedenen Nummern. + + ---> Dies ist nur eine Zeile aus Wörtern, um sich darin herumzubewegen. + + 6. Gehe weiter zu Lektion 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.5: ANWENDUNG EINES ZÄHLERS FÜR MEHRERE LÖSCHVORGÄNGE + + + ** Die Eingabe einer Zahl mit einem Operator wiederholt diesen mehrfach. ** + + In der Kombination aus Löschoperator und Bewegungsschritt (siehe oben) + stellt man, um mehr zu löschen dem Schritt einen Zähler voran: + d Nummer Bewegungsschritt + + 1. Bewege den Cursor zum ersten Wort in GROSSBUCHSTABEN in der mit ---> + markieren Zeile. + + 2. Tippe d2w , um die zwei Wörter in GROSSBUCHSTABEN zu löschen. + + 3. Wiederhole Schritte 1 und 2 mit einem anderen Zähler, um die darauffol- + genden Wörter in GROSSBUCHSTABEN mit einem einzigen Kommando zu löschen. + +---> Diese ABC DE Zeile FGHI JK LMN OP mit Wörtern ist Q RS TUV bereinigt. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.6: ARBEITEN AUF ZEILEN + + + ** Tippe dd , um eine ganze Zeile zu löschen. ** + + Wegen der Häufigkeit, dass man ganze Zeilen löscht, kamen die Entwickler von + Vi darauf, dass es leichter wäre, einfach zwei d's einzugeben, um eine Zeile + zu löschen. + + 1. Bewege den Cursor zur zweiten Zeile in der unten stehenden Redewendung. + 2. Tippe dd , um die Zeile zu löschen. + 3. Nun bewege Dich zur vierten Zeile. + 4. Tippe 2dd , um zwei Zeilen zu löschen. + +---> 1) Rosen sind rot, +---> 2) Matsch ist lustig, +---> 3) Veilchen sind blau, +---> 4) Ich habe ein Auto, +---> 5) Die Uhr sagt die Zeit, +---> 6) Zucker ist süß, +---> 7) So wie Du auch. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.7: RÜCKGÄNGIG MACHEN (UNDO) + + + ** Tippe u , um die letzten Kommandos rückgängig zu machen ** + ** oder U , um eine ganze Zeile wiederherzustellen. ** + + 1. Bewege den Cursor zu der mit ---> markierten Zeile unten + und setze ihn auf den ersten Fehler. + 2. Tippe x , um das erste unerwünschte Zeichen zu löschen. + 3. Nun tippe u , um das soeben ausgeführte Kommando rückgängig zu machen. + 4. Jetzt behebe alle Fehler auf der Zeile mit Hilfe des x Kommandos. + 5. Nun tippe ein großes U , um die Zeile in ihren Ursprungszustand + wiederherzustellen. + 6. Nun tippe u einige Male, um das U und die vorhergehenden Kommandos + rückgängig zu machen. + 7. Nun tippe CTRL-R (halte CTRL gedrückt und drücke R) mehrere Male, um die + Kommandos wiederherzustellen (die Rückgängigmachungen rückgängig machen). + +---> Beehebe die Fehller diesser Zeile und sttelle sie mitt 'undo' wieder her. + + 8. Dies sind sehr nützliche Kommandos. Nun gehe weiter zur Zusammenfassung + von Lektion 1.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.2 + + + 1. Um vom Cursor bis zum nächsten Wort zu löschen, tippe: dw + 2. Um vom Cursor bis zum Ende einer Zeile zu löschen, tippe: d$ + 3. Um eine ganze Zeile zu löschen, tippe: dd + + 4. Um eine Bewegung zu wiederholen, stelle eine Nummer voran: 2w + 5. Das Format für ein Änderungskommando ist: + Operator [Anzahl] Bewegungsschritt + wobei: + Operator - gibt an, was getan werden soll, zum Beispiel d für delete + [Anzahl] - ein optionaler Zähler, um den Bewegungsschritt zu wiederholen + Bewegungsschritt - Bewegung über den zu ändernden Text, wie + w (Wort), $ (zum Ende der Zeile), etc. + + 6. Um Dich zum Anfang der Zeile zu begeben, benutze die Null: 0 + + 7. Um vorherige Aktionen rückgängig zu machen, tippe: u (kleines u) + Um alle Änderungen auf einer Zeile rückgängig zu machen: U (großes U) + Um die Rückgängigmachungen rückgängig zu machen, tippe: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.1: ANFÜGEN (PUT) + + + ** Tippe p , um vorher gelöschten Text nach dem Cursor anzufügen. ** + + 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile. + + 2. Tippe dd , um die Zeile zu löschen und sie in einem Vim-Register zu + speichern. + + 3. Bewege den Cursor zur Zeile c), ÜBER derjenigen, wo die gelöschte Zeile + platziert werden soll. + + 4. Tippe p , um die Zeile unterhalb des Cursors zu platzieren. + + 5. Wiederhole die Schritte 2 bis 4, um alle Zeilen in die richtige + Reihenfolge zu bringen. + +---> d) Kannst Du das auch? +---> b) Veilchen sind blau, +---> c) Intelligenz ist lernbar, +---> a) Rosen sind rot, +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.2: ERSETZEN (REPLACE) + + + ** Tippe rx , um das Zeichen unter dem Cursor durch x zu ersetzen. ** + + 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile. + + 2. Bewege den Cursor, bis er sich auf dem ersten Fehler befindet. + + 3. Tippe r und anschließend das Zeichen, welches dort stehen sollte. + + 4. Wiederhole Schritte 2 und 3, bis die erste Zeile gleich der zweiten ist. + +---> Alf diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt! +---> Als diese Zeile eingegeben wurde, wurden einige falsche Tasten getippt! + + 5. Nun fahre fort mit Lektion 1.3.3. + +Anmerkung: Erinnere Dich daran, dass Du durch Anwenden lernen solltest, nicht + durch Auswendiglernen. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.3: ÄNDERN (CHANGE) + + + ** Um eine Änderung bis zum Wortende durchzuführen, tippe ce . ** + + 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile. + + 2. Platziere den Cursor auf das s von Wstwr. + + 3. Tippe ce und die Wortkorrektur ein (in diesem Fall tippe örter ). + + 4. Drücke und bewege den Cursor zum nächsten zu ändernden Zeichen. + + 5. Wiederhole Schritte 3 und 4 bis der erste Satz gleich dem zweiten ist. + +---> Einige Wstwr dieser Zlaww lasdjlaf mit dem Ändern-Operator gaaauu werden. +---> Einige Wörter dieser Zeile sollen mit dem Ändern-Operator geändert werden. + +Beachte, dass ce das Wort löscht und Dich in den Eingabemodus versetzt. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.4: MEHR ÄNDERUNGEN MITTELS c + + + ** Das change-Kommando arbeitet mit denselben Bewegungen wie delete. ** + + 1. Der change Operator arbeitet in gleicher Weise wie delete. Das Format ist: + + c [Anzahl] Bewegungsschritt + + 2. Die Bewegungsschritte sind die gleichen , so wie w (Wort) und $ + (Zeilenende). + + 3. Bewege Dich zur ersten unten stehenden mit ---> markierten Zeile. + + 4. Bewege den Cursor zum ersten Fehler. + + 5. Tippe c$ , gib den Rest der Zeile wie in der zweiten ein, drücke . + +---> Das Ende dieser Zeile soll an die zweite Zeile angeglichen werden. +---> Das Ende dieser Zeile soll mit dem c$ Kommando korrigiert werden. + +Anmerkung: Du kannst die Rücktaste benutzen, um Tippfehler zu korrigieren. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.3 + + + 1. Um einen vorher gelöschten Text anzufügen, tippe p . Dies fügt den + gelöschten Text NACH dem Cursor an (wenn eine ganze Zeile gelöscht wurde, + wird diese in die Zeile unter dem Cursor eingefügt). + + 2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und danach das + an dieser Stelle gewollte Zeichen. + + 3. Der Änderungs- (change) Operator erlaubt, vom Cursor bis zum Ende des + Bewegungsschrittes zu ändern. Tippe ce , um eine Änderung vom Cursor bis + zum Ende des Wortes vorzunehmen; c$ bis zum Ende einer Zeile. + + 4. Das Format für change ist: + + c [Anzahl] Bewegungsschritt + + Nun fahre mit der nächsten Lektion fort. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.1: CURSORPOSITION UND DATEISTATUS + + ** Tippe CTRL-G , um deine Dateiposition sowie den Dateistatus anzuzeigen. ** + ** Tippe G , um Dich zu einer Zeile in der Datei zu begeben. ** + +Anmerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausführst!! + + 1. Halte die Ctrl Taste unten und drücke g . Dies nennen wir CTRL-G. + Eine Statusmeldung am Fuß der Seite erscheint mit dem Dateinamen und der + Position innerhalb der Datei. Merke Dir die Zeilennummer für Schritt 3. + +Anmerkung: Möglicherweise siehst Du die Cursorposition in der unteren rechten + Bildschirmecke. Dies ist Auswirkung der 'ruler' Option + (siehe :help 'ruler') + + 2. Drücke G , um Dich zum Ende der Datei zu begeben. + Tippe gg , um Dich zum Anfang der Datei zu begeben. + + 3. Gib die Nummer der Zeile ein, auf der Du vorher warst, gefolgt von G . + Dies bringt Dich zurück zu der Zeile, auf der Du gestanden hast, als Du + das erste Mal CTRL-G gedrückt hast. + + 4. Wenn Du Dich sicher genug fühlst, führe die Schritte 1 bis 3 aus. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.2: DAS SUCHEN - KOMMANDO + + + ** Tippe / gefolgt von einem Ausdruck, um nach dem Ausdruck zu suchen. ** + + 1. Im Normalmodus, tippe das / Zeichen. Beachte, dass das / und der + Cursor am Fuß des Schirms erscheinen, so wie beim : Kommando. + + 2. Nun tippe 'Fehhler' . Dies ist das Wort, nach dem Du suchen willst. + + 3. Um nach demselben Ausdruck weiterzusuchen, tippe einfach n (für next). + Um nach demselben Ausdruck in der Gegenrichtung zu suchen, tippe N . + + 4. Um nach einem Ausdruck rückwärts zu suchen , benutze ? statt / . + + 5. Um dahin zurückzukehren, von wo Du gekommen bist, drücke CTRL-O (Halte + Ctrl unten und drücke den Buchstaben o). Wiederhole dies, um noch weiter + zurückzugehen. CTRL-I geht vorwärts. + +---> Fehler schreibt sich nicht "Fehhler"; Fehhler ist ein Fehler +Anmerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang + fortgesetzt, es sei denn, die 'wrapscan' Option wurde abgeschaltet. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.3: PASSENDE KLAMMERN FINDEN + + + ** Tippe % , um eine gegenüberliegenden Klammer ),], oder } zu finden. ** + + 1. Platziere den Cursor auf irgendeinem der Zeichen (, [, oder { in der unten + stehenden Zeile, die mit ---> markiert ist. + + 2. Nun tippe das % Zeichen. + + 3. Der Cursor bewegt sich zur passenden gegenüberliegenden Klammer. + + 4. Tippe % , um den Cursor zur passenden anderen Klammer zu bewegen. + + 5. Setze den Cursor auf ein anderes (,),[,],{ oder } und probiere % aus. + +---> Dies ( ist eine Testzeile ( mit [ verschiedenen ] { Klammern } darin. )) + +Anmerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem + Programmtext, in dem passende Klammern fehlen! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.4: DAS ERSETZUNGSKOMMANDO (SUBSTITUTE) + + + ** Tippe :s/alt/neu/g , um 'alt' durch 'neu' zu ersetzen. ** + + 1. Bewege den Cursor zu der unten stehenden mit ---> markierten Zeile. + + 2. Tippe :s/diee/die . Beachte, dass der Befehl nur das erste + Vorkommen von "diee" ersetzt. + + 3. Nun tippe :s/diee/die/g . Das Zufügen des Flags g bedeutet, eine + globale Ersetzung über die Zeile durchzuführen, dies ersetzt alle + Vorkommen von "diee" auf der Zeile. + +---> diee schönste Zeit, um diee Blumen anzuschauen, ist diee Frühlingszeit. + + 4. Um alle Vorkommen einer Zeichenkette innerhalb zweier Zeilen zu ändern, + tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Bereiches sind, + in dem die Ersetzung durchgeführt werden soll. + Tippe :%s/alt/neu/g um alle Vorkommen in der gesamten Datei zu ändern. + Tippe :%s/alt/neu/gc um alle Vorkommen in der gesamten Datei zu finden + mit einem Fragedialog, ob ersetzt werden soll oder nicht. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.4 + + 1. CTRL-G zeigt die aktuelle Dateiposition sowie den Dateistatus. + G bringt Dich zum Ende der Datei. + Nummer G bringt Dich zur entsprechenden Zeilennummer. + gg bringt Dich zur ersten Zeile. + + 2. Die Eingabe von / plus einem Ausdruck sucht VORWÄRTS nach dem Ausdruck. + Die Eingabe von ? plus einem Ausdruck sucht RÜCKWÄRTS nach dem Ausdruck. + Tippe nach einer Suche n , um das nächste Vorkommen in der gleichen + Richtung zu finden; oder N , um in der Gegenrichtung zu suchen. + CTRL-O bringt Dich zurück zu älteren Positionen, CTRL-I zu neueren. + + 3. Die Eingabe von % , wenn der Cursor sich auf (,),[,],{, oder } + befindet, bringt Dich zur Gegenklammer. + + 4. Um das erste Vorkommen von "alt" in einer Zeile durch "neu" zu ersetzen, + tippe :s/alt/neu + Um alle Vorkommen von "alt" in der Zeile zu ersetzen, tippe :s/alt/neu/g + Um Ausdrücke innerhalb zweier Zeilen # zu ersetzen :#,#s/alt/neu/g + Um alle Vorkommen in der ganzen Datei zu ersetzen, tippe :%s/alt/neu/g + Für eine jedesmalige Bestätigung, addiere 'c' (confirm) :%s/alt/neu/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.1: AUSFÜHREN EINES EXTERNEN KOMMANDOS + + + ** Gib :! , gefolgt von einem externen Kommando ein, um es auszuführen. ** + + 1. Tippe das vertraute Kommando : , um den Cursor auf den Fuß des Schirms + zu setzen. Dies erlaubt Dir, ein Kommandozeilen-Kommando einzugeben. + + 2. Nun tippe ein ! (Ausrufezeichen). Dies ermöglicht Dir, ein beliebiges, + externes Shellkommando auszuführen. + + 3. Als Beispiel tippe ls nach dem ! und drücke . Dies liefert + eine Auflistung deines Verzeichnisses; genauso, als wenn Du in der + Eingabeaufforderung wärst. Oder verwende :!dir , falls ls nicht geht. + +Anmerkung: Mit dieser Methode kann jedes beliebige externe Kommando + ausgeführt werden, auch mit Argumenten. + +Anmerkung: Alle : Kommandos müssen durch Eingabe von + abgeschlossen werden. Von jetzt an erwähnen wir dies nicht jedesmal. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.2: MEHR ÜBER DAS SCHREIBEN VON DATEIEN + + +** Um am Text durchgeführte Änderungen zu speichern, tippe :w DATEINAME. ** + + 1. Tippe :!dir oder :!ls , um eine Auflistung deines Verzeichnisses zu + erhalten. Du weißt nun bereits, dass Du danach eingeben musst. + + 2. Wähle einen Dateinamen, der noch nicht existiert, z.B. TEST. + + 3. Nun tippe: :w TEST (wobei TEST der gewählte Dateiname ist). + + 4. Dies speichert die ganze Datei (den Vim Tutor) unter dem Namen TEST. + Um dies zu überprüfen, tippe nochmals :!ls bzw. !dir, um deinen + Verzeichnisinhalt zu sehen. + +Anmerkung: Würdest Du Vim jetzt beenden und danach wieder mit vim TEST + starten, dann wäre diese Datei eine exakte Kopie des Tutors zu dem + Zeitpunkt, als Du ihn gespeichert hast. + + 5. Nun entferne die Datei durch Eingabe von (MS-DOS): :!del TEST + oder (Unix): :!rm TEST +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.3: AUSWÄHLEN VON TEXT ZUM SCHREIBEN + +** Um einen Abschnitt der Datei zu speichern, tippe v Bewegung :w DATEI ** + + 1. Bewege den Cursor zu dieser Zeile. + + 2. Tippe v und bewege den Cursor zum fünften Auflistungspunkt unten. + Beachte, dass der Text hervorgehoben wird. + + 3. Drücke das Zeichen : . Am Fuß des Schirms erscheint :'<,'> . + + 4. Tippe w TEST , wobei TEST ein noch nicht vorhandener Dateiname ist. + Vergewissere Dich, dass Du :'<,'>w TEST siehst, bevor Du drückst. + + 5. Vim schreibt die ausgewählten Zeilen in die Datei TEST. Benutze :!dir + oder :!ls , um sie zu sehen. Lösche sie noch nicht! Wir werden sie in + der nächsten Lektion benutzen. + +Hinweis: Drücken von v startet die Visuelle Auswahl. Du kannst den Cursor + umherbewegen, um die Auswahl zu vergrößern oder zu verkleinern. Anschließend + lässt sich ein Operator anwenden, um mit dem Text etwas zu tun. Zum Beispiel + löscht d den Text. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.4: EINLESEN UND ZUSAMMENFÜHREN VON DATEIEN + + + ** Um den Inhalt einer Datei einzulesen, tippe :r DATEINAME ** + + 1. Platziere den Cursor direkt über dieser Zeile. + +BEACHTE: Nachdem Du Schritt 2 ausgeführt hast, wirst Du Text aus Lektion 1.5.3 + sehen. Dann bewege Dich wieder ABWÄRTS, Lektion 1.5.4 wiederzusehen. + + 2. Nun lies deine Datei TEST ein, indem Du das Kommando :r TEST ausführst, + wobei TEST der von Dir verwendete Dateiname ist. + Die eingelesene Datei wird unterhalb der Cursorzeile eingefügt. + + 3. Um zu überprüfen, dass die Datei eingelesen wurde, gehe zurück und + beachte, dass es jetzt zwei Kopien von Lektion 1.5.3 gibt, das Original und + die eingefügte Dateiversion. + +Anmerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum + Beispiel liest :r !ls die Ausgabe des Kommandos ls ein und platziert + sie unterhalb des Cursors. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.5 + + + 1. :!Kommando führt ein externes Kommando aus. + + Einige nützliche Beispiele sind + (MS-DOS) (Unix) + :!dir :!ls - zeigt eine Verzeichnisauflistung. + :!del DATEINAME :!rm DATEINAME - entfernt Datei DATEINAME. + + 2. :w DATEINAME speichert die aktuelle Vim-Datei unter dem Namen DATEINAME. + + 3. v Bewegung :w DATEINAME schreibt die Visuell ausgewählten Zeilen in + die Datei DATEINAME. + + 4. :r DATEINAME lädt die Datei DATEINAME und fügt sie unterhalb der + Cursorposition ein. + + 5. :r !dir liest die Ausgabe des Kommandos dir und fügt sie unterhalb der + Cursorposition ein. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.1: ZEILEN ÖFFNEN (OPEN) + + + ** Tippe o , um eine Zeile unterhalb des Cursors zu öffnen und Dich in ** + ** den Einfügemodus zu begeben. ** + + 1. Bewege den Cursor zu der ersten mit ---> markierten Zeile unten. + + 2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursors zu öffnen + und Dich in den Einfügemodus zu begeben. + + 3. Nun tippe etwas Text und drücke , um den Einfügemodus zu verlassen. + +---> Mit o wird der Cursor auf der offenen Zeile im Einfügemodus platziert. + + 4. Um eine Zeile ÜBERHALB des Cursors aufzumachen, gib einfach ein großes O + statt einem kleinen o ein. Versuche dies auf der unten stehenden Zeile. + +---> Öffne eine Zeile über dieser mit O , wenn der Cursor auf dieser Zeile ist. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.2: TEXT ANFÜGEN (APPEND) + + + ** Tippe a , um Text NACH dem Cursor einzufügen. ** + + 1. Bewege den Cursor zum Anfang der ersten Übungszeile mit ---> unten. + + 2. Drücke e , bis der Cursor am Ende von Zei steht. + + 3. Tippe ein kleines a , um Text NACH dem Cursor anzufügen. + + 4. Vervollständige das Wort so wie in der Zeile darunter. Drücke , + um den Einfügemodus zu verlassen. + + 5. Bewege Dich mit e zum nächsten unvollständigen Wort und wiederhole + Schritte 3 und 4. + +---> Diese Zei bietet Gelegen , Text in einer Zeile anzufü. +---> Diese Zeile bietet Gelegenheit, Text in einer Zeile anzufügen. + +Anmerkung: a, i und A gehen alle gleichermaßen in den Einfügemodus; der + einzige Unterschied ist, wo die Zeichen eingefügt werden. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.3: EINE ANDERE ART DES ERSETZENS (REPLACE) + + + ** Tippe ein großes R , um mehr als ein Zeichen zu ersetzen. ** + + 1. Bewege den Cursor zur ersten unten stehenden, mit ---> markierten Zeile. + Bewege den Cursor zum Anfang des ersten xxx . + + 2. Nun drücke R und tippe die Nummer, die darunter in der zweiten Zeile + steht, so dass diese das xxx ersetzt. + + 3. Drücke , um den Ersetzungsmodus zu verlassen. Beachte, dass der Rest + der Zeile unverändert bleibt. + + 4. Wiederhole die Schritte, um das verbliebene xxx zu ersetzen. + +---> Das Addieren von 123 zu xxx ergibt xxx. +---> Das Addieren von 123 zu 456 ergibt 579. + +Anmerkung: Der Ersetzungsmodus ist wie der Einfügemodus, aber jedes eingetippte + Zeichen löscht ein vorhandenes Zeichen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.4: TEXT KOPIEREN UND EINFÜGEN + + ** Benutze den y Operator, um Text zu kopieren; p , um ihn einzufügen ** + + 1. Gehe zu der mit ---> markierten Zeile unten; setze den Cursor hinter "a)". + + 2. Starte den Visuellen Modus mit v , bewege den Cursor genau vor "erste". + + 3. Tippe y , um den hervorgehoben Text zu kopieren. + + 4. Bewege den Cursor zum Ende der nächsten Zeile: j$ + + 5. Tippe p , um den Text einzufügen und anschließend: a zweite . + + 6. Benutze den Visuellen Modus, um " Eintrag." auszuwählen, kopiere mittels + y , bewege Dich zum Ende der nächsten Zeile mit j$ und füge den Text + dort mit p an. + +---> a) dies ist der erste Eintrag. + b) + +Anmerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.5: OPTIONEN SETZEN + + ** Setze eine Option so, dass eine Suche oder Ersetzung Groß- ** + ** und Kleinschreibung ignoriert ** + + 1. Suche nach 'ignoriere', indem Du /ignoriere eingibst. + Wiederhole die Suche einige Male, indem Du die n - Taste drückst. + + 2. Setze die 'ic' (Ignore case) - Option, indem Du :set ic eingibst. + + 3. Nun suche wieder nach 'ignoriere', indem Du n tippst. + Beachte, dass jetzt Ignoriere und auch IGNORIERE gefunden wird. + + 4. Setze die 'hlsearch' und 'incsearch' - Optionen: :set hls is + + 5. Wiederhole die Suche und beobachte, was passiert: /ignoriere + + 6. Um das Ignorieren von Groß/Kleinschreibung abzuschalten, tippe: :set noic + +Anmerkung: Um die Hervorhebung der Treffer zu entfernen, gib ein: :nohlsearch +Anmerkung: Um die Schreibweise für eine einzige Suche zu ignorieren, benutze \c + im Suchausdruck: /ignoriere\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.6 + + 1. Tippe o , um eine Zeile UNTER dem Cursor zu öffnen und den Einfügemodus + zu starten + Tippe O , um eine Zeile ÜBER dem Cursor zu öffnen. + + 2. Tippe a , um Text NACH dem Cursor anzufügen. + Tippe A , um Text nach dem Zeilenende anzufügen. + + 3. Das Kommando e bringt Dich zum Ende eines Wortes. + + 4. Der Operator y (yank) kopiert Text, p (put) fügt ihn ein. + + 5. Ein großes R geht in den Ersetzungsmodus bis zum Drücken von . + + 6. Die Eingabe von ":set xxx" setzt die Option "xxx". Einige Optionen sind: + 'ic' 'ignorecase' Ignoriere Groß/Kleinschreibung bei einer Suche + 'is' 'incsearch' Zeige Teilübereinstimmungen für einen Suchausdruck + 'hls' 'hlsearch' Hebe alle passenden Ausdrücke hervor + Der Optionsname kann in der Kurz- oder der Langform angegeben werden. + + 7. Stelle einer Option "no" voran, um sie abzuschalten: :set noic +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.1: AUFRUFEN VON HILFE + + + ** Nutze das eingebaute Hilfesystem ** + + Vim besitzt ein umfassendes eingebautes Hilfesystem. Für den Anfang probiere + eins der drei folgenden Dinge aus: + - Drücke die - Taste (falls Du eine besitzt) + - Drücke die Taste (falls Du eine besitzt) + - Tippe :help + + Lies den Text im Hilfefenster, um zu verstehen wie die Hilfe funktioniert. + Tippe CTRL-W CTRL-W , um von einem Fenster zum anderen zu springen. + Tippe :q , um das Hilfefenster zu schließen. + + Du kannst Hilfe zu praktisch jedem Thema finden, indem Du dem ":help"- + Kommando ein Argument gibst. Probiere folgendes ( nicht vergessen): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.2: ERSTELLE EIN START-SKRIPT + + + ** Aktiviere die Features von Vim ** + + Vim besitzt viele Funktionalitäten, die über Vi hinausgehen, aber die meisten + von ihnen sind standardmäßig deaktiviert. Um mehr Funktionalitäten zu nutzen, + musst Du eine "vimrc" - Datei erstellen. + + 1. Starte das Editieren der "vimrc"-Datei, abhängig von deinem System: + :e ~/.vimrc für Unix + :e ~/_vimrc für MS-Windows + + 2. Nun lies den Inhalt der Beispiel-"vimrc"-Datei ein: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Speichere die Datei mit: + :w + + Beim nächsten Start von Vim wird die Syntaxhervorhebung aktiviert sein. + Du kannst all deine bevorzugten Optionen zu dieser "vimrc"-Datei zufügen. + Für mehr Informationen tippe :help vimrc-intro +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7.3: VERVOLLSTÄNDIGEN + + + ** Kommandozeilenvervollständigung mit CTRL-D und ** + + 1. Stelle sicher, dass Vim nicht im Vi-Kompatibilitätsmodus ist: :set nocp + + 2. Siehe nach, welche Dateien im Verzeichnis existieren: :!ls oder :!dir + + 3. Tippe den Beginn eines Kommandos: :e + + 4. Drücke CTRL-D und Vim zeigt eine Liste mit "e" beginnender Kommandos. + + 5. Drücke und Vim vervollständigt den Kommandonamen zu ":edit". + + 6. Nun füge ein Leerzeichen und den Anfang einer existierenden Datei an: + :edit DAT + + 7. Drücke . Vim vervollständigt den Namen (falls er eindeutig ist). + +Anmerkung: Vervollständigung funktioniert für viele Kommandos. Probiere + einfach CTRL-D und . Dies ist insbesondere nützlich für :help . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZUSAMMENFASSUNG VON LEKTION 1.7 + + + 1. Tippe :help oder drücke oder , um ein Hilfefenster zu öffnen. + + 2. Tippe :help Kommando , um Hilfe über Kommando zu erhalten. + + 3. Tippe CTRL-W CTRL-W , um zum anderen Fenster zu springen. + + 4. Tippe :q , um das Hilfefenster zu schließen. + + 5. Erstelle ein vimrc - Startskript mit deinen bevorzugter Einstellungen. + + 6. Drücke CTRL-D nach dem Tippen eines : Kommandos, um mögliche + Vervollständigungen anzusehen. + Drücke , um eine Vervollständigung zu anzuwenden. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Damit ist der Vim Tutor beendet. Seine Intention war, einen kurzen und + bündigen Überblick über den Vim Editor zu geben; gerade genug, um relativ + leicht mit ihm umgehen zu können. Der Vim Tutor hat nicht den geringsten + Anspruch auf Vollständigkeit; Vim hat noch weitaus mehr Kommandos. Lies als + nächstes das User Manual: ":help user-manual". + + Für weiteres Lesen und Lernen ist folgendes Buch empfehlenswert : + Vim - Vi Improved - von Steve Oualline + Verlag: New Riders + Das erste Buch, welches durchgängig Vim gewidmet ist. Besonders nützlich + für Anfänger. Viele Beispiele und Bilder sind enthalten. + Siehe https://iccf-holland.org/click5.html + + Folgendes Buch ist älter und mehr über Vi als Vim, aber auch empfehlenswert: + Textbearbeitung mit dem Vi-Editor - von Linda Lamb und Arnold Robbins + Verlag O'Reilly - ISBN: 3897211262 + In diesem Buch kann man fast alles finden, was man mit Vi tun möchte. + Die sechste Ausgabe enthält auch Informationen über Vim. + + Als aktuelle Referenz für Version 6.2 und knappe Einführung dient das + folgende Buch: + vim ge-packt von Reinhard Wobst + mitp-Verlag, ISBN 3-8266-1425-9 + Trotz der kompakten Darstellung ist es durch viele nützliche Beispiele auch + für Einsteiger empfehlenswert. Probekapitel und die Beispielskripte sind + online erhältlich. Siehe https://iccf-holland.org/click5.html + + Dieses Tutorial wurde geschrieben von Michael C. Pierce und Robert K. Ware, + Colorado School of Mines. Es benutzt Ideen, die Charles Smith, Colorado State + University, zur Verfügung stellte. E-Mail: bware@mines.colorado.edu. + + Bearbeitet für Vim von Bram Moolenaar. + Deutsche Übersetzung von Joachim Hofmann 2015. E-Mail: Joachim.Hof@gmx.de + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.el b/git/usr/share/vim/vim92/tutor/tutor1.el new file mode 100644 index 0000000000000000000000000000000000000000..a2e1ee896b794ead24e4ef90cfa30ec1f3eef5df --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.el @@ -0,0 +1,815 @@ +=============================================================================== += Κ αλ ω σ ή ρ θ α τ ε σ τ ο V I M T u t o r - Έκδοση 1.5 = +=============================================================================== + + Ο Vim είναι ένας πανίσχυρος συντάκτης που έχει πολλές εντολές, πάρα + πολλές για να εξηγήσουμε σε μία περιήγηση όπως αυτή. Αυτή η περιήγηση + σχεδιάστηκε για να περιγράψει ικανοποιητικά τις εντολές που θα σας + κάνουν να χρησιμοποιείτε εύκολα τον Vim σαν έναν γενικής χρήσης συντάκτη. + + Ο κατά προσέγγιση χρόνος που απαιτείται για να ολοκληρώσετε την περιήγηση + είναι 25-30 λεπτά, εξαρτώντας από το πόσο χρόνο θα ξοδέψετε για + πειραματισμούς. + + Οι εντολές στα μαθήματα θα τροποποιήσουν το κείμενο. Δημιουργήστε ένα + αντίγραφο αυτού του αρχείου για να εξασκηθείτε (αν ξεκινήσατε το + "Vimtutor" αυτό είναι ήδη ένα αντίγραφο). + + Είναι σημαντικό να θυμάστε ότι αυτή η περιήγηση είναι οργανωμένη έτσι + ώστε να διδάσκει μέσω της χρήσης. Αυτό σημαίνει ότι χρειάζεται να + εκτελείτε τις εντολές για να τις μάθετε σωστά. Αν διαβάζετε μόνο το + κείμενο, θα τις ξεχάσετε! + + Τώρα, βεβαιωθείτε ότι το πλήκτρο Caps-Lock ΔΕΝ είναι πατημένο και + πατήστε το πλήκτρο j αρκετές φορές για να μετακινήσετε τον δρομέα έτσι + ώστε το Μάθημα 1.1.1 να γεμίσει πλήρως την οθόνη. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.1.1: ΜΕΤΑΚΙΝΟΝΤΑΣ ΤΟΝ ΔΡΟΜΕΑ + + ** Για να κινήσετε τον δρομέα, πατήστε τα πλήκτρα h,j,k,l όπως δείχνεται. ** + ^ + k Hint: Το πλήκτρο h είναι αριστερά και κινεί στ' αριστερά. + < h l > Το πλήκτρο l είναι δεξιά και κινεί στα δεξιά. + j Το πλήκτρο j μοιάζει με βελάκι προς τα κάτω. + v + + 1. Μετακινείστε τον δρομέα τριγύρω στην οθόνη μέχρι να νοιώθετε άνετα. + + 2. Κρατήστε πατημένο το κάτω πλήκτρο (j) μέχρι να επαναληφθεί. +---> Τώρα ξέρετε πώς να μετακινηθείτε στο επόμενο μάθημα. + + 3. Χρησιμοποιώντας το κάτω πλήκτρο, μετακινηθείτε στο Μάθημα 1.1.2. + +Σημείωση: Αν αμφιβάλλετε για κάτι που πατήσατε, πατήστε για να βρεθείτε + στην Κανονική Κατάσταση. Μετά πατήστε ξανά την εντολή που θέλατε. + +Σημείωση: Τα πλήκτρα του δρομέα θα πρέπει επίσης να δουλεύουν. Αλλά με τα hjkl + θα μπορείτε να κινηθείτε πολύ γρηγορότερα, μόλις τα συνηθίσετε. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.1.2: ΜΠΑΙΝΟΝΤΑΣ ΚΑΙ ΒΓΑΙΝΟΝΤΑΣ ΣΤΟΝ VIM + + !! ΣΗΜΕΙΩΣΗ: Πριν εκτελέσετε κάποιο από τα βήματα, διαβάστε όλο το μάθημα!! + + 1. Πατήστε το πλήκτρο (για να είστε σίγουρα στην Κανονική Κατάσταση). + + 2. Πληκτρολογήστε: :q! . + +---> Αυτό εξέρχεται από τον συντάκτη ΧΩΡΙΣ να σώσει όποιες αλλαγές έχετε κάνει. + Αν θέλετε να σώσετε τις αλλαγές και να εξέρθετε πληκτρολογήστε: + :wq + + 3. Όταν δείτε την προτροπή του φλοιού, πληκτρολογήστε την εντολή με την οποία + μπήκατε σε αυτήν την περιήγηση. Μπορεί να είναι: vimtutor + Κανονικά θα χρησιμοποιούσατε: vim tutor + +---> 'vim' σημαίνει εισαγωγή στον συντάκτη vim, 'tutor' είναι το αρχείο που + θέλουμε να διορθώσουμε. + + 4. Αν έχετε απομνημονεύσει αυτά τα βήματα και έχετε αυτοπεποίθηση, εκτελέστε + τα βήματα 1 έως 3 για να βγείτε και να μπείτε ξανά στον συντάκτη. Μετά + μετακινήστε τον δρομέα κάτω στο Μάθημα 1.1.3. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.1.3: ΔΙΟΡΘΩΣΗ ΚΕΙΜΕΝΟΥ - ΔΙΑΓΡΑΦΗ + + ** Όσο είστε στην Κανονική Κατάσταση πατήστε x για να διαγράψετε τον + χαρακτήρα κάτω από τον δρομέα. ** + + 1. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με --->. + + 2. Για να διορθώσετε τα λάθη, κινείστε τον δρομέα μέχρι να είναι πάνω από + τον χαρακτήρα που θα διαγραφεί. + + 3. Πατήστε το πλήκτρο x για να διαγράψετε τον ανεπιθύμητο χαρακτήρα. + + 4. Επαναλάβετε τα βήματα 2 μέχρι 4 μέχρι η πρόταση να είναι σωστή. + +---> The ccow jumpedd ovverr thhe mooon. + + 5. Τώρα που η γραμμή είναι σωστή, πηγαίντε στο Μάθημα 1.1.4. + +ΣΗΜΕΙΩΣΗ: Καθώς διατρέχετε αυτήν την περιήγηση, προσπαθήστε να μην + απομνημονεύετε, μαθαίνετε με τη χρήση. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.1.4: ΔΙΟΡΘΩΣΗ ΚΕΙΜΕΝΟΥ - ΠΑΡΕΜΒΟΛΗ + + ** Όσο είστε σε Κανονική Κατάσταση πατήστε i για να παρεμβάλλετε κείμενο. ** + + 1. Μετακινείστε τον δρομέα μέχρι την πρώτη γραμμή παρακάτω σημειωμένη με --->. + + 2. Για να κάνετε την πρώτη γραμμή ίδια με την δεύτερη, μετακινείστε τον + δρομέα πάνω στον πρώτο χαρακτήρα ΜΕΤΑ από όπου θα παρεμβληθεί το κείμενο. + + 3. Πατήστε το i και πληκτρολογήστε τις απαραίτητες προσθήκες. + + 4. Καθώς διορθώνετε κάθε λάθος πατήστε για να επιστρέψετε στην + Κανονική Κατάσταση. Επαναλάβετε τα βήματα 2 μέχρι 4 για να διορθώσετε + την πρόταση. + +---> There is text misng this . +---> There is some text missing from this line. + + 5. Όταν είστε άνετοι με την παρεμβολή κειμένου μετακινηθείτε στην + παρακάτω περίληψη. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.1 ΠΕΡΙΛΗΨΗ + + + 1. Ο δρομέας κινείται χρησιμοποιώντας είτε τα πλήκτρα δρομέα ή τα hjkl. + h (αριστέρα) j (κάτω) k (πάνω) l (δεξιά) + + 2. Για να μπείτε στον Vim (από την προτροπή %) γράψτε: vim ΑΡΧΕΙΟ + + 3. Για να βγείτε γράψτε: :q! για απόρριψη των αλλαγών. + Ή γράψτε: :wq για αποθήκευση των αλλαγών. + + 4. Για να διαγράψετε έναν χαρακτήρα κάτω από τον δρομέα σε + Κανονική Κατάσταση πατήστε: x + + 5. Για να εισάγετε κείμενο στον δρομέα όσο είστε σε Κανονική Κατάσταση γράψτε: + i πληκτρολογήστε το κείμενο + +ΣΗΜΕΙΩΣΗ: Πατώντας θα τοποθετηθείτε στην Κανονική Κατάσταση ή θα + ακυρώσετε μία ανεπιθύμητη και μερικώς ολοκληρωμένη εντολή. + +Τώρα συνεχίστε με το Μάθημα 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.2.1: ΕΝΤΟΛΕΣ ΔΙΑΓΡΑΦΗΣ + + ** Γράψτε dw για να διαγράψετε μέχρι το τέλος μίας λέξης. ** + + 1. Πατήστε για να βεβαιωθείτε ότι είστε στην Κανονική Κατάσταση. + + 2. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με --->. + + 3. Πηγαίνετε τον δρομέα στην αρχή της λέξης που πρέπει να διαγραφεί. + + 4. Γράψτε dw για να κάνετε την λέξη να εξαφανιστεί. + +ΣΗΜΕΙΩΣΗ: Τα γράμματα dw θα εμφανιστούν στην τελευταία γραμμή της οθόνης όσο + τα πληκτρολογείτε. Αν γράψατε κάτι λάθος, πατήστε και + ξεκινήστε από την αρχή. + +---> There are a some words fun that don't belong paper in this sentence. + + 5. Επαναλάβετε τα βήματα 3 και 4 μέχρι η πρόταση να είναι σωστή και + πηγαίνετε στο Μάθημα 1.2.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.2.2: ΠΕΡΙΣΣΟΤΕΡΕΣ ΕΝΤΟΛΕΣ ΔΙΑΓΡΑΦΗΣ + + ** Πληκτρολογήστε d$ για να διαγράψετε μέχρι το τέλος της γραμμής. ** + + 1. Πατήστε για να βεβαιωθείτε ότι είστε στην Κανονική Κατάσταση. + + 2. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με --->. + + 3. Μετακινείστε τον δρομέα στο τέλος της σωστής γραμμής (ΜΕΤΑ την πρώτη . ). + + 4. Πατήστε d$ για να διαγράψετε μέχρι το τέλος της γραμμής. + +---> Somebody typed the end of this line twice. end of this line twice. + + 5. Πηγαίνετε στο Μάθημα 1.2.3 για να καταλάβετε τι συμβαίνει. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.2.3: ΠΕΡΙ ΕΝΤΟΛΩΝ ΚΑΙ ΑΝΤΙΚΕΙΜΕΝΩΝ + + +Η μορφή της εντολής διαγραφής d είναι ως εξής: + + [αριθμός] d αντικείμενο Ή d [αριθμός] αντικείμενο + Όπου: + αριθμός - πόσες φορές θα εκτελεστεί η εντολή (προαιρετικό, εξ' ορισμού=1). + d - η εντολή της διαγραφής. + αντικείμενο - πάνω σε τι θα λειτουργήσει η εντολή (παρακάτω λίστα). + + Μία μικρή λίστα από αντικείμενα: + w - από τον δρομέα μέχρι το τέλος της λέξης, περιλαμβάνοντας το διάστημα. + e - από τον δρομέα μέχρι το τέλος της λέξης, ΧΩΡΙΣ το διάστημα. + $ - από τον δρομέα μέχρι το τέλος της γραμμής. + +ΣΗΜΕΙΩΣΗ: Για τους τύπους της περιπέτειας, πατώντας απλώς το αντικείμενο όσο + είστε στην Κανονική Κατάσταση χωρίς κάποια εντολή θα μετακινήσετε + τον δρομέα όπως καθορίζεται στην λίστα αντικειμένων. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.2.4: ΜΙΑ ΕΞΑΙΡΕΣΗ ΣΤΗΝ 'ΕΝΤΟΛΗ-ΑΝΤΙΚΕΙΜΕΝΟ' + + ** Πληκτρολογήστε dd για να διαγράψετε όλη τη γραμμή. ** + + Εξαιτίας της συχνότητας της διαγραφής ολόκληρης γραμμής, οι σχεδιαστές + του Vim αποφάσισαν ότι θα ήταν ευκολότερο να γράφετε απλώς δύο d στη + σειρά για να διαγράψετε μία γραμμή. + + 1. Μετακινείστε τον δρομέα στη δεύτερη γραμμή της παρακάτω φράσης. + 2. Γράψτε dd για να διαγράψετε τη γραμμή. + 3. Τώρα μετακινηθείτε στην τέταρτη γραμμή. + 4. Γράψτε 2dd (θυμηθείτε αριθμός-εντολή-αντικείμενο) για να + διαγράψετε δύο γραμμές. + + 1) Roses are red, + 2) Mud is fun, + 3) Violets are blue, + 4) I have a car, + 5) Clocks tell time, + 6) Sugar is sweet + 7) And so are you. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.2.5: Η ΕΝΤΟΛΗ ΑΝΑΙΡΕΣΗΣ + + ** Πατήστε u για να αναιρέσετε τις τελευταίες εντολές, + U για να διορθώσετε όλη τη γραμμή. ** + + 1. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με ---> και + τοποθετήστε τον πάνω στο πρώτο λάθος. + 2. Πατήστε x για να διαγράψετε τον πρώτο ανεπιθύμητο χαρακτήρα. + 3. Τώρα πατήστε u για να αναιρέσετε την τελευταία εκτελεσμένη εντολή. + 4. Αυτή τη φορά διορθώστε όλα τα λάθη στη γραμμή χρησιμοποιώντας την εντολή x. + 5. Τώρα πατήστε ένα κεφαλαίο U για να επιστρέψετε τη γραμμή στην αρχική + της κατάσταση. + 6. Τώρα πατήστε u μερικές φορές για να αναιρέσετε την U και + προηγούμενες εντολές. + 7. Τώρα πατήστε CTRL-R (κρατώντας πατημένο το πλήκτρο CTRL καθώς πατάτε το R) + μερικές φορές για να επαναφέρετε τις εντολές (αναίρεση των αναιρέσεων). + +---> Fiix the errors oon thhis line and reeplace them witth undo. + + 8. Αυτές είναι πολύ χρήσιμες εντολές. Τώρα πηγαίνετε στην + Περίληψη του Μαθήματος 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.2 ΠΕΡΙΛΗΨΗ + + + 1. Για να διαγράψετε από τον δρομέα μέχρι το τέλος λέξης γράψτε: dw + + 2. Για να διαγράψετε από τον δρομέα μέχρι το τέλος γραμμής γράψτε: d$ + + 3. Για να διαγράψετε ολόκληρη τη γραμμή γράψτε: dd + + 4. Η μορφή για μία εντολή στην Κανονική Κατάσταση είναι: + + [αριθμός] εντολή αντικείμενο Ή εντολή [αριθμός] αντικείμενο + όπου: + αριθμός - πόσες φορές να επαναληφθεί η εντολή + εντολή - τι να γίνει, όπως η d για διαγραφή + αντικείμενο - πάνω σε τι να ενεργήσει η εντολή, όπως w (λέξη), + $ (τέλος της γραμμής), κτλ. + + 5. Για να αναιρέσετε προηγούμενες ενέργειες, πατήστε: u (πεζό u) + Για να αναιρέσετε όλες τις αλλαγές στη γραμμή, πατήστε: U (κεφαλαίο U) + Για να αναιρέσετε τις αναιρέσεις, πατήστε: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.3.1: Η ΕΝΤΟΛΗ ΤΟΠΟΘΕΤΗΣΗΣ + + + ** Πατήστε p για να τοποθετήσετε την τελευταία διαγραφή μετά τον δρομέα. ** + + 1. Μετακινείστε τον δρομέα στην πρώτη γραμμή της παρακάτω ομάδας. + + 2. Πατήστε dd για να διαγράψετε τη γραμμή και να την αποθηκεύσετε σε + προσωρινή μνήμη του Vim. + + 3. Μετακινείστε τον δρομέα στη γραμμή ΠΑΝΩ από εκεί που θα πρέπει να πάει + η διαγραμμένη γραμμή. + + 4. Όσο είστε σε Κανονική Κατάσταση, πατήστε p για να βάλετε τη γραμμή. + + 5. Επαναλάβετε τα βήματα 2 έως 4 για να βάλετε όλες τις γραμμές στη + σωστή σειρά. + + d) Can you learn too? + b) Violets are blue, + c) Intelligence is learned, + a) Roses are red, + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.3.2: Η ΕΝΤΟΛΗ ΑΝΤΙΚΑΤΑΣΤΑΣΗΣ + + + ** Πατήστε r και χαρακτήρα για να αλλάξετε αυτόν που είναι + κάτω από τον δρομέα. ** + + 1. Μετακινείστε τον δρομέα στην πρώτη γραμμή παρακάτω σημειωμένη με --->. + + 2. Μετακινείστε τον δρομέα έτσι ώστε να είναι πάνω στο πρώτο λάθος. + + 3. Πατήστε r και μετά τον χαρακτήρα ο οποίος διορθώνει το λάθος. + + 4. Επαναλάβετε τα βήματα 2 και 3 μέχρι να είναι σωστή η πρώτη γραμμή. + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. Τώρα πηγαίνετε στο Μάθημα 1.3.2. + +ΣΗΜΕΙΩΣΗ: Να θυμάστε ότι πρέπει να μαθαίνετε με τη χρήση, και όχι με + την απομνημόνευση. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.3.3: Η ΕΝΤΟΛΗ ΑΛΛΑΓΗΣ + + ** Για να αλλάξετε τμήμα ή όλη τη λέξη, πατήστε cw . ** + + 1. Μετακινείστε τον δρομέα στην πρώτη γραμμή παρακάτω σημειωμένη με --->. + + 2. Τοποθετήστε τον δρομέα πάνω στο u της λέξης lubw. + + 3. Πατήστε cw και τη σωστή λέξη (στην περίπτωση αυτή, γράψτε 'ine'.) + + 4. Πατήστε και πηγαίνετε στο επόμενο λάθος (στον πρώτο + χαρακτήρα προς αλλαγή). + + 5. Επαναλάβετε τα βήματα 3 και 4 μέχρις ότου η πρώτη πρόταση να είναι + ίδια με τη δεύτερη. + +---> This lubw has a few wptfd that mrrf changing usf the change command. +---> This line has a few words that need changing using the change command. + +Παρατηρείστε ότι η cw όχι μόνο αντικαθιστάει τη λέξη, αλλά σας εισάγει +επίσης σε παρεμβολή. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.3.4: ΠΕΡΙΣΣΟΤΕΡΕΣ ΑΛΛΑΓΕΣ ΜΕ c + + + ** Η εντολή αλλαγής χρησιμοποιείται με τα ίδια αντικείμενα της διαγραφής. ** + + + 1. Η εντολή αλλαγής δουλεύει με τον ίδιο τρόπο όπως η διαγραφή. Η μορφή είναι: + + [αριθμός] c αντικείμενο Ή c [αριθμός] αντικείμενο + + 2. Τα αντικείμενα είναι πάλι τα ίδια, όπως w (λέξη), $ (τέλος γραμμής), κτλ. + + 3. Μετακινηθείτε στην πρώτη γραμμή παρακάτω σημειωμένη με --->. + + 4. Μετακινείστε τον δρομέα στο πρώτο λάθος. + + 5. Γράψτε c$ για να κάνετε το υπόλοιπο της γραμμής ίδιο με τη δεύτερη + και πατήστε . + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.3 ΠΕΡΙΛΗΨΗ + + + 1. Για να τοποθετήσετε κείμενο που μόλις έχει διαγραφεί, πατήστε p . + Αυτό τοποθετεί το διαγραμμένο κείμενο ΜΕΤΑ τον δρομέα (αν διαγράφτηκε + γραμμή θα πάει μετά στη γραμμή κάτω από τον δρομέα. + + 2. Για να αντικαταστήσετε τον χαρακτήρα κάτω από τον δρομέα, πατήστε r + και μετά τον χαρακτήρα που θα αντικαταστήσει τον αρχικό. + + 3. Η εντολή αλλαγής σας επιτρέπει να αλλάξετε το καθορισμένο αντικείμενο + από τον δρομέα μέχρι το τέλος του αντικείμενο. Π.χ. γράψτε cw για να + αλλάξετε από τον δρομέα μέχρι το τέλος της λέξης, c$ για να αλλάξετε + μέχρι το τέλος γραμμής. + + 4. Η μορφή για την αλλαγή είναι: + + [αριθμός] c αντικείμενο Ή c [αριθμός] αντικείμενο + +Τώρα συνεχίστε με το επόμενο μάθημα. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.4.1: ΘΕΣΗ ΚΑΙ ΚΑΤΑΣΤΑΣΗ ΑΡΧΕΙΟΥ + + + ** Πατήστε CTRL-g για να εμφανιστεί η θέση σας στο αρχείο και η κατάστασή του. + Πατήστε SHIFT-G για να πάτε σε μία γραμμή στο αρχείο. ** + + Σημείωση: Διαβάστε ολόκληρο το μάθημα πριν εκτελέσετε κάποιο από τα βήματα!! + + 1. Κρατήστε πατημένο το πλήκτρο Ctrl και πατήστε g . Μία γραμμή κατάστασης + θα εμφανιστεί στο κάτω μέρος της σελίδας με το όνομα αρχείου και τη + γραμμή που είστε. Θυμηθείτε τον αριθμό γραμμής για το Βήμα 3. + + 2. Πατήστε shift-G για να μετακινηθείτε στο τέλος του αρχείου. + + 3. Πατήστε τον αριθμό της γραμμής που ήσασταν και μετά shift-G. Αυτό θα + σας επιστρέψει στη γραμμή που ήσασταν πριν πατήσετε για πρώτη φορά Ctrl-g. + (Όταν πληκτρολογείτε τους αριθμούς, ΔΕΝ θα εμφανίζονται στην οθόνη). + + 4. Αν νοιώθετε σίγουρος για αυτό, εκτελέστε τα βήματα 1 έως 3. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.4.2: Η ΕΝΤΟΛΗ ΑΝΑΖΗΤΗΣΗΣ + + + ** Πατήστε / ακολουθούμενο από τη φράση που ψάχνετε. ** + + 1. Σε Κανονική Κατάσταση πατήστε τον χαρακτήρα / . Παρατηρήστε ότι αυτός και + ο δρομέας εμφανίζονται στο κάτω μέρος της οθόνης όπως με την εντολή : . + + 2. Τώρα γράψτε 'errroor' . Αυτή είναι η λέξη που θέλετε να ψάξετε. + + 3. Για να ψάξετε ξανά για την ίδια φράση, πατήστε απλώς n . + Για να ψάξετε την ίδια φράση στην αντίθετη κατεύθυνση, πατήστε Shift-N . + + 4. Αν θέλετε να ψάξετε για μία φράση προς τα πίσω, χρησιμοποιήστε την εντολή ? αντί της / . + +---> Όταν η αναζήτηση φτάσει στο τέλος του αρχείου θα συνεχίσει από την αρχή. + + "errroor" is not the way to spell error; errroor is an error. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.4.3: ΕΥΡΕΣΗ ΤΑΙΡΙΑΣΤΩΝ ΠΑΡΕΝΘΕΣΕΩΝ + + + ** Πατήστε % για να βρείτε την αντίστοιχη ), ], ή } . ** + + 1. Τοποθετήστε τον δρομέα σε κάποια (, [, ή { στην παρακάτω γραμμή + σημειωμένη με --->. + + 2. Τώρα πατήστε τον χαρακτήρα % . + + 3. Ο δρομέας θα πρέπει να είναι στην αντίστοιχη παρένθεση ή αγκύλη. + + 4. Πατήστε % για να μετακινήσετε τον δρομέα πίσω στην πρώτη αγκύλη + (του ζευγαριού). + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + +ΣΗΜΕΙΩΣΗ: Αυτό είναι πολύ χρήσιμο στην αποσφαλμάτωση ενός προγράμματος + με μη ταιριαστές παρενθέσεις! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.4.4: ΕΝΑΣ ΤΡΟΠΟΣ ΓΙΑ ΑΛΛΑΓΗ ΛΑΘΩΝ + + + ** Γράψτε :s/old/new/g για να αλλάξετε το 'new' με το 'old'. ** + + 1. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με --->. + + 2. Γράψτε :s/thee/the . Σημειώστε ότι αυτή η εντολή αλλάζει μόνο + την πρώτη εμφάνιση στη γραμμή. + + 3. Τώρα γράψτε :s/thee/the/g εννοώντας γενική αντικατάσταση στη + γραμμή. Αυτό αλλάζει όλες τις εμφανίσεις επί της γραμμής. + +---> thee best time to see thee flowers is in thee spring. + + 4. Για να αλλάξετε κάθε εμφάνιση μίας συμβολοσειράς μεταξύ δύο γραμμών, + γράψτε :#,#s/old/new/g όπου #,# οι αριθμοί των δύο γραμμών. + Γράψτε :%s/old/new/g για να αλλάξετε κάθε εμφάνιση σε όλο το αρχείο. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.4 ΠΕΡΙΛΗΨΗ + + + 1. Το Ctrl-g εμφανίζει τη θέση σας στο αρχείο και την κατάστασή του. + Το Shift-G πηγαίνει στο τέλος του αρχείου. Ένας αριθμός γραμμής + ακολουθούμενος από Shift-G πηγαίνει σε εκείνη τη γραμμή. + + 2. Γράφοντας / ακολουθούμενο από μία φράση ψάχνει προς τα ΜΠΡΟΣΤΑ για + τη φράση. Γράφοντας ? ακολουθούμενο από μία φράση ψάχνει προς τα ΠΙΣΩ + για τη φράση. Μετά από μία αναζήτηση πατήστε n για να βρείτε την + επόμενη εμφάνιση προς την ίδια κατεύθυνση ή Shift-N για να ψάξετε + προς την αντίθετη κατεύθυνση. + + 3. Πατώντας % όσο ο δρομέας είναι πάνω σε μία (,),[,],{, ή } εντοπίζει + το αντίστοιχο ταίρι του ζευγαριού. + + 4. Για αντικατάσταση με new του πρώτου old στη γραμμή γράψτε :s/old/new + Για αντικατάσταση με new όλων των 'old' στη γραμμή γράψτε :s/old/new/g + Για αντικατάσταση φράσεων μεταξύ δύο # γραμμών γράψτε :#,#s/old/new/g + Για αντικατάσταση όλων των εμφανίσεων στο αρχείο γράψτε :%s/old/new/g + Για ερώτηση επιβεβαίωσης κάθε φορά προσθέστε ένα 'c' "%s/old/new/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.5.1: ΠΩΣ ΕΚΤΕΛΩ ΜΙΑ ΕΞΩΤΕΡΙΚΗ ΕΝΤΟΛΗ + + +** Γράψτε :! ακολουθούμενο από μία εξωτερική εντολή για να την εκτελέσετε. ** + + 1. Πατήστε την οικεία εντολή : για να θέσετε τον δρομέα στο κάτω μέρος + της οθόνης. Αυτό σας επιτρέπει να δώσετε μία εντολή. + + 2. Τώρα πατήστε το ! (θαυμαστικό). Αυτό σας επιτρέπει να εκτελέσετε + οποιαδήποτε εξωτερική εντολή του φλοιού. + + 3. Σαν παράδειγμα γράψτε ls μετά από το ! και πατήστε . Αυτό θα + σας εμφανίσει μία λίστα του καταλόγου σας, ακριβώς σαν να ήσασταν στην + προτροπή του φλοιού. Ή χρησιμοποιήστε :!dir αν το ls δεν δουλεύει. + +---> Σημείωση: Είναι δυνατόν να εκτελέσετε οποιαδήποτε εξωτερική εντολή + με αυτόν τον τρόπο. + +---> Σημείωση: Όλες οι εντολές : πρέπει να τερματίζονται πατώντας το . + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.5.2: ΠΕΡΙΣΣΟΤΕΡΑ ΠΕΡΙ ΕΓΓΡΑΦΗΣ ΑΡΧΕΙΩΝ + + + ** Για να σώσετε τις αλλάγες που κάνατε στο αρχείο, γράψτε :w ΑΡΧΕΙΟ. ** + + 1. Γράψτε :!dir ή :!ls για να πάρετε μία λίστα του καταλόγου σας. + Ήδη ξέρετε ότι πρέπει να πατήσετε μετά από αυτό. + + 2. Διαλέξτε ένα όνομα αρχείου που δεν υπάρχει ακόμα, όπως το TEST. + + 3. Τώρα γράψτε: :w TEST (όπου TEST είναι το όνομα αρχείου που διαλέξατε). + + 4. Αυτό σώζει όλο το αρχείο (vim Tutor) με το όνομα TEST. Για να το + επαληθεύσετε, γράψτε ξανά :!dir για να δείτε τον κατάλογό σας. + +---> Σημειώστε ότι αν βγαίνατε από τον Vim και μπαίνατε ξανά με το όνομα + αρχείου TEST, το αρχείο θα ήταν ακριβές αντίγραφο του tutor όταν το σώσατε. + + 5. Τώρα διαγράψτε το αρχείο γράφοντας (MS-DOS): :!del TEST + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.5.3: ΕΠΙΛΕΚΤΙΚΗ ΕΝΤΟΛΗ ΕΓΓΡΑΦΗΣ + + + ** Για να σώσετε τμήμα του αρχείου, γράψτε :#,# w ΑΡΧΕΙΟ ** + + 1. Άλλη μια φορά, γράψτε :!dir ή :!ls για να πάρετε μία λίστα από τον + κατάλογό σας και διαλέξτε ένα κατάλληλο όνομα αρχείου όπως το TEST. + + 2. Μετακινείστε τον δρομέα στο πάνω μέρος αυτής της σελίδας και πατήστε + Ctrl-g για να βρείτε τον αριθμό αυτής της γραμμής. + ΝΑ ΘΥΜΑΣΤΕ ΑΥΤΟΝ ΤΟΝ ΑΡΙΘΜΟ! + + 3. Τώρα πηγαίνετε στο κάτω μέρος της σελίδας και πατήστε Ctrl-g ξανά. + ΝΑ ΘΥΜΑΣΤΕ ΚΑΙ ΑΥΤΟΝ ΤΟΝ ΑΡΙΘΜΟ! + + 4. Για να σώσετε ΜΟΝΟ ένα τμήμα σε αρχείο, γράψτε :#,# w TEST + όπου #,# οι δύο αριθμοί που απομνημονεύσατε (πάνω,κάτω) και TEST το + όνομα του αρχείου σας. + + 5. Ξανά, δείτε ότι το αρχείο είναι εκεί με την :!dir αλλά ΜΗΝ το διαγράψετε. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.5.4: ΑΝΑΚΤΩΝΤΑΣ ΚΑΙ ΕΝΩΝΟΝΤΑΣ ΑΡΧΕΙΑ + + + ** Για να εισάγετε τα περιεχόμενα ενός αρχείου, γράψτε :r ΑΡΧΕΙΟ ** + + 1. Γράψτε :!dir για να βεβαιωθείτε ότι το TEST υπάρχει από πριν. + + 2. Τοποθετήστε τον δρομέα στο πάνω μέρος της σελίδας. + +ΣΗΜΕΙΩΣΗ: Αφότου εκτελέσετε το Βήμα 3 θα δείτε το Μάθημα 1.5.3. + Μετά κινηθείτε ΚΑΤΩ ξανά προς το μάθημα αυτό. + + 3. Τώρα ανακτήστε το αρχείο σας TEST χρησιμοποιώντας την εντολή :r TEST + όπου TEST είναι το όνομα του αρχείου. + +ΣΗΜΕΙΩΣΗ: Το αρχείο που ανακτάτε τοποθετείται ξεκινώντας εκεί που βρίσκεται + ο δρομέας. + + 4. Για να επαληθεύσετε ότι το αρχείο ανακτήθηκε, πίσω τον δρομέα και + παρατηρήστε ότι υπάρχουν τώρα δύο αντίγραφα του Μαθήματος 1.5.3, το + αρχικό και η έκδοση του αρχείου. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.5 ΠΕΡΙΛΗΨΗ + + + 1. :!εντολή εκτελεί μία εξωτερική εντολή. + + Μερικά χρήσιμα παραδείγματα είναι (MS-DOS): + :!dir - εμφάνιση λίστας ενός καταλόγου. + :!del ΑΡΧΕΙΟ - διαγράφει το ΑΡΧΕΙΟ. + + 2. :w ΑΡΧΕΙΟ γράφει το τρέχων αρχείο του Vim στο δίσκο με όνομα ΑΡΧΕΙΟ. + + 3. :#,#w ΑΡΧΕΙΟ σώζει τις γραμμές από # μέχρι # στο ΑΡΧΕΙΟ. + + 4. :r ΑΡΧΕΙΟ ανακτεί το αρχείο δίσκου ΑΡΧΕΙΟ και το παρεμβάλλει μέσα + στο τρέχον αρχείο μετά από τη θέση του δρομέα. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.6.1: Η ΕΝΤΟΛΗ ΑΝΟΙΓΜΑΤΟΣ + + + ** Πατήστε o για να ανοίξετε μία γραμμή κάτω από τον δρομέα και να + βρεθείτε σε Κατάσταση Κειμένου. ** + + 1. Μετακινείστε τον δρομέα στην παρακάτω γραμμή σημειωμένη με --->. + + 2. Πατήστε o (πεζό) για να ανοίξετε μία γραμμή ΚΑΤΩ από τον δρομέα και να + βρεθείτε σε Κατάσταση Κειμένου. + + 3. Τώρα αντιγράψτε τη σημειωμένη με ---> γραμμή και πατήστε για να + βγείτε από την Κατάσταση Κειμένου. + +---> After typing o the cursor is placed on the open line in Insert mode. + + 4. Για να ανοίξετε μία γραμμή ΠΑΝΩ από τον δρομέα, πατήστε απλά ένα κεφαλαίο + O, αντί για ένα πεζό o. Δοκιμάστε το στην παρακάτω γραμμή. +Ανοίγετε γραμμή πάνω από αυτήν πατώντας Shift-O όσο ο δρομέας είναι στη γραμμή + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.6.2: Η ΕΝΤΟΛΗ ΠΡΟΣΘΗΚΗΣ + + ** Πατήστε a για να εισάγετε κείμενο ΜΕΤΑ τον δρομέα. ** + + 1. Μετακινείστε τον δρομέα στο τέλος της πρώτης γραμμής παρακάτω + σημειωμένη με ---> πατώντας $ στην Κανονική Κατάσταση. + + 2. Πατήστε ένα a (πεζό) για να προσθέσετε κείμενο ΜΕΤΑ από τον χαρακτήρα + που είναι κάτω από τον δρομέα. (Το κεφαλαίο A προσθέτει στο τέλος + της γραμμής). + +Σημείωση: Αυτό αποφεύγει το πάτημα του i , τον τελευταίο χαρακτήρα, το + κείμενο της εισαγωγής, , δρομέα-δεξιά, και τέλος, x, μόνο και + μόνο για να προσθέσετε στο τέλος της γραμμής! + + 3. Συμπληρώστε τώρα την πρώτη γραμμή. Σημειώστε επίσης ότι η προσθήκη είναι + ακριβώς ίδια στην Κατάσταση Κειμένου με την Κατάσταση Εισαγωγής, εκτός + από τη θέση που εισάγεται το κείμενο. + +---> This line will allow you to practice +---> This line will allow you to practice appending text to the end of a line. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.6.3: ΑΛΛΗ ΕΚΔΟΣΗ ΤΗΣ ΑΝΤΙΚΑΤΑΣΤΑΣΗΣ + + + ** Πατήστε κεφαλαίο R για να αλλάξετε περισσότερους από έναν χαρακτήρες. ** + + 1. Μετακινείστε τον δρομέα στην πρώτη γραμμή παρακάτω σημειωμένη με --->. + + 2. Τοποθετήστε τον δρομέα στην αρχή της πρώτης λέξης που είναι διαφορετική + από τη δεύτερη γραμμή σημειωμένη με ---> (η λέξη 'last'). + + 3. Πατήστε τώρα R και αλλάξτε το υπόλοιπο του κειμένου στην πρώτη γραμμή + γράφοντας πάνω από το παλιό κείμενο ώστε να κάνετε την πρώτη γραμμή ίδια + με τη δεύτερη. + +---> To make the first line the same as the last on this page use the keys. +---> To make the first line the same as the second, type R and the new text. + + 4. Σημειώστε ότι όταν πατάτε για να βγείτε, παραμένει οποιοδήποτε + αναλλοίωτο κείμενο. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Μάθημα 1.6.4: ΡΥΘΜΙΣΗ ΕΠΙΛΟΓΗΣ + + + ** Ρυθμίστε μία επιλογή έτσι ώστε η αναζήτηση ή η αντικατάσταση να αγνοεί + τη διαφορά πεζών-κεφαλαίων ** + + 1. Ψάξτε για 'ignore' εισάγοντας: + /ignore + Συνεχίστε αρκετές φορές πατώντας το πλήκτρο n. + + 2. Θέστε την επιλογή 'ic' (Ignore case) γράφοντας: + :set ic + + 3. Ψάξτε τώρα ξανά για 'ignore' πατώντας: n + Συνεχίστε την αναζήτηση μερικές ακόμα φορές πατώντας το πλήκτρο n + + 4. Θέστε τις επιλογές 'hlsearch' και 'incsearch': + :set hls is + + 5. Εισάγετε τώρα ξανά την εντολή αναζήτησης, και δείτε τι συμβαίνει + /ignore + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.6 ΠΕΡΙΛΗΨΗ + + + 1. Πατώντας o ανοίγει μία γραμμή ΚΑΤΩ από τον δρομέα και τοποθετεί τον + δρομέα στην ανοιχτή γραμμή σε Κατάσταση Κειμένου. + + 2. Πατήστε a για να εισάγετε κείμενο ΜΕΤΑ τον χαρακτήρα στον οποίο είναι + ο δρομέας. Πατώντας κεφαλαίο A αυτόματα προσθέτει κείμενο στο τέλος + της γραμμής. + + 3. Πατώντας κεφαλαίο R εισέρχεται στην Κατάσταη Αντικατάστασης μέχρι να + πατηθεί το και να εξέλθει. + + 4. Γράφοντας ":set xxx" ρυθμίζει την επιλογή "xxx". + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ΜΑΘΗΜΑ 1.7: ON-LINE ΕΝΤΟΛΕΣ ΒΟΗΘΕΙΑΣ + + + ** Χρησιμοποιήστε το on-line σύστημα βοήθειας ** + + Ο Vim έχει ένα περιεκτικό on-line σύστημα βοήθειας. Για να ξεκινήσει, + δοκιμάστε κάποιο από τα τρία: + - πατήστε το πλήκτρο (αν έχετε κάποιο) + - πατήστε το πλήκτρο (αν έχετε κάποιο) + - γράψτε :help + + Γράψτε :q για να κλείσετε το παράθυρο της βοήθειας. + + Μπορείτε να βρείτε βοήθεια πάνω σε κάθε αντικείμενο, δίνοντας μία παράμετρο + στην εντολή ":help". Δοκιμάστε αυτά (μην ξεχνάτε να πατάτε ): + + :help w + :help c_ La klavo l estas la plej dekstra kaj movas dekstren. + j La klavo j aspektas kiel malsuprena sago. + v + 1. Movu la kursoron sur la ekrano ĝis kiam vi sentas vin komforta. + + 2. Premu la klavon (j) ĝis kiam ĝi ripetas. + Vi nun scias, kiel moviĝi al la sekvanta leciono + + 3. Uzante la malsuprenan klavon, moviĝu al la leciono 1.2. + +RIMARKO: Se vi dubas pri tio, kion vi premis, premu por reiri al + la normala reĝimo. Tiam repremu la deziratan komandon. + +RIMARKO: La klavoj de la kursoro devus ankaŭ funkcii. Sed uzante hjkl, + vi kapablos moviĝi pli rapide post kiam vi kutimiĝos. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1.2: ELIRI EL VIM + + + !! RIMARKO: Antaŭ ol plenumi iujn subajn paŝojn ajn, legu la tutan lecionon!! + + 1. Premu la klavon (por certigi, ke vi estas en normala reĝimo). + + 2. Tajpu: :q! . + Tio eliras el la rekdaktilo, SEN konservi la ŝanĝojn, kiujn vi faris. + + 3. Kiam vi vidas la ŝelinviton, tajpu la komandon kiun vi uzis por eniri + en ĉi tiu instruilo. Tio estus: vimtutor + + 4. Se vi memoris tiujn paŝojn kaj sentas vin memfida, plenumu la paŝojn + 1 ĝis 3 por eliri kaj reeniri la redaktilon. + +RIMARKO: :q! eliras sen konservi la ŝanĝojn, kiujn vi faris. + Post kelkaj lecionoj, vi lernos kiel konservi la ŝanĝojn al dosiero. + + 5. Movu la kursoron suben ĝis la leciono 1.3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1.3: REDAKTO DE TEKSTO - FORVIŜO + + + ** Premu x por forviŝi la signon sub la kursoro. ** + + 1. Movu la kursoron al la suba linio markita per --->. + + 2. Por korekti la erarojn, movu la kursoron ĝis kiam ĝi estas sur la + forviŝenda signo. + + 3. Premu la klavon x por forviŝi la nedeziratan signon. + + 4. Ripetu paŝojn 2 ĝis 4 ĝis kiam la frazo estas ĝusta. + + +---> La boovinno saaltiss ssur laa luuno. + + 5. Post kiam la linio estas ĝusta, iru al la leciono 1.4 + +RIMARKO: Trairante la instruilon, ne provu memori, lernu per la uzo. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1.4: REDAKTO DE TEKSTO - ENMETO + + + ** Premu i por enmeti tekston. ** + + 1. Movu la kursoron al la unua suba linio markita per --->. + + 2. Por igi la unuan linion sama kiel la dua, movu la kursoron sur la unuan + signon antaŭ kie la teksto estas enmetenda. + + 3. Premu i kaj tajpu la bezonatajn aldonojn. + + 4. Premu kiam la eraroj estas korektitaj por reiri al la normala + reĝimo. Ripetu la paŝojn 2 ĝis 4 por korekti la frazon. + +---> Mank en ĉi linio. +---> Mankas teksto en ĉi tiu linio. + + 5. Kiam vi sentas vin komforta pri enmeto de teksto, moviĝu al la + leciono 1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1.5: REDAKTO DE TEKSTO - POSTALDONO + + + ** Premu A por postaldoni tekston. ** + + 1. Movu la kursoron al la unua suba linio markita per --->. + Ne gravas sur kiu signo estas la kursoro. + + 2. Premu majusklan A kaj tajpu la bezonatajn aldonojn. + + 3. Post kiam la teksto estas aldonita, premu por reiri al la normala + reĝimo. + + 4. Movu la kursoron al la dua linio markita per ---> kaj ripetu la + paŝojn 2 kaj 3 por korekti la frazon. + +---> Mankas teksto el ti + Mankas teksto el tiu linio. +---> Mankas ankaŭ teks + Mankas ankaŭ teksto ĉi tie. + + 5 Kiam vi sentas vin komforta pri postaldono de teksto, moviĝu al la + leciono 1.6 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1.6: REDAKTI DOSIERON + + ** Uzu :wq por konservi dosieron kaj eliri. ** + + !! RIMARKO: Antaŭ ol plenumi iun suban paŝon ajn, legu la tutan lecionon!! + + 1. Eliru el la instruilo kiel vi faris en la leciono 1.1.2: :q! + Aŭ, se vi havas atingon al alia terminalo, faru tion, kio sekvas tie. + + 2. Ĉe la ŝelinvito, tajpu ĉi tiun komandon: vim tutor + 'vim' estas la komando por lanĉi la redaktilon Vim, 'tutor' estas la + dosiernomo de la dosiero, kiun vi volas redakti. Uzu dosieron, kiu + ŝanĝeblas. + + 3. Enmetu kaj forviŝu tekston, kiel vi lernis en la antaŭaj lecionoj. + + 4. Konservu la dosieron kun ŝanĝoj kaj eliru el Vim per: :wq + + 5. Se vi eliris el la instruilo vimtutor en paŝo 1, restartigu la instruilon + vimtutor kaj moviĝu suben al la sekvanta resumo. + + 6. Post kiam vi legis la suprajn paŝojn, kaj komprenis ilin: faru ilin. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.1 RESUMO + + + 1. La kursoro moviĝas aŭ per la sagoklavoj, aŭ per la klavoj hjkl. + h (liven) j (suben) k (supren) l (dekstren) + + 2. Por lanĉi Vim el la ŝelinvito, tajpu: vim DOSIERNOMO + + 3. Por eliri el Vim, tajpu: :q! por rezigni la ŝanĝojn + + 4. Por forviŝi la signojn ĉe la pozicio de la kursoro, tajpu: x + + 5. Por enmeti aŭ postaldoni tekston, tajpu: + i tajpu enmetendan tekston + enmetas tekston antaŭ la kursoro + + A tajpu la postaldonendan tekston + postaldonas post la kursoro + +RIMARKO: Premo de iras al la normala reĝimo, aŭ rezignas la + nedeziratan aŭ parte plenumita komando. + +Nun daŭrigu al la leciono 2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.1: KOMANDOJ DE FORVIŜO + + + ** Tajpu dw por forviŝi vorton. ** + + 1. Premu por certigi, ke vi estas en normala reĝimo. + + 2. Movu la kursoron al la suba linio markita per --->. + + 3. Movu la kursoron al la komenco de vorto, kiu forviŝendas. + + 4. Tajpu dw por forviŝi la vorton. + + RIMARKO: La litero d aperos en la lasta linio sur la ekrano kiam vi + tajpas ĝin. Vim atendas ĝis kiam vi tajpas w . Se vi vidas + alian signon ol d vi tajpis ion mise; premu kaj + rekomencu. + +---> Estas iuj vortoj kiuj Zamenhof ne devus esti akuzativo en ĉi tiu frazo. + + 5. Ripetu paŝojn 3 kaj 4 ĝis kiam la frazo estas ĝusta kaj moviĝu al la + leciono 2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.2: PLIAJ KOMANDOJ DE FORVIŜO + + + ** Tajpu d$ por forviŝi la finon de la linio. ** + + 1. Premu por certigi, ke vi estas en normala reĝimo. + + 2. Movu la kursoron al la suba linio markita per --->. + + 3. Movu la kursoron ĉe la fino de la ĝusta linio (POST la unua . ). + + 4. Tajpu d$ por foriviŝi ĝis la fino de la linio. + +---> Iu tajpis la finon de ĉi tiu linio dufoje. fino de ĉi tiu linio dufoje. + + + 5. Moviĝu al la leciono 2.3 por kompreni kio okazas. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.3: PRI OPERATOROJ KAJ MOVOJ + + + Multaj komandoj, kiuj ŝanĝas la tekston, estas faritaj de operatoro kaj + movo. La formato de komando de forviŝo per la operatoro de forviŝo d + estas kiel sekvas: + + d movo + + Kie: + d - estas la operatoro de movo + movo - estas tio, pri kio la operatoro operacios (listigita sube) + + Mallonga listo de movoj: + w - ĝis la komenco de la sekvanta vorto, krom ĝia unua signo. + e - ĝis la fino de la nuna vorto, krom la lasta signo. + $ - ĝis la fino de la linio, krom la lasta signo. + + Do tajpo de 'de' forviŝos ekde la kursoro ĝis la fino de la vorto. + +RIMARKO: Premo de nur la movo en Normala reĝimo sen operatoro movos + la kursoron kiel specifite. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.4: UZI NOMBRON POR MOVO + + ** Tajpo de nombro antaŭ movo ripetas ĝin laŭfoje. ** + + 1. Movu la kursoron ĉe la komenco de la suba linio markita per --->. + + 2. Tajpu 2w por movi la kursoron je du vortoj antaŭen. + + 3. Tajpu 3e por movi la kursoron ĉe la fino de la tria vorto antaŭen. + + 4. Tajpu 0 (nul) por moviĝi ĉe la komenco de la linio. + + + 5. Ripetu paŝojn 2 ĝis 3 kun malsamaj nombroj. + +---> Tio estas nur linio kun vortoj, kie vi povas moviĝi. + + 6. Moviĝu al la leciono 2.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.5: UZI NOMBRON POR FORVIŜI PLI + + + ** Tajpo de nombro kun operatoro ripetas ĝin laŭfoje. ** + + En la kombinaĵo de la operatoro de forviŝo, kaj movo kiel menciita + ĉi-supre, eblas aldoni nombron antaŭ la movo por pli forviŝi: + d nombro movo + + 1. Movu la kursoron ĉe la unua MAJUSKLA vorto en la linio markita per --->. + + 2. Tajpu d2w por forviŝi la du MAJUSKLAJN vortojn. + + 3. Ripetu paŝojn 1 ĝis 2 per malsama nombro por forviŝi la sinsekvajn + MAJUSKLAJN vortojn per unu komando. + +---> Tiu AB CDE linio FGHI JK LMN OP de vortoj estas Q RS TUV purigita. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.6: OPERACII SUR LINIOJ + + + ** Tajpu dd por forviŝi tutan linion. ** + + Pro la ofteco de forviŝo de tuta linio, la verkisto de Vi decidis, ke + estus pli facile simple tajpi du d-ojn por forviŝi linion. + + 1. Movu la kursoron sur la duan linion en la suba frazo. + 2. Tajpu dd por forviŝi la linion. + 3. Nun moviĝu al la kvara linio. + 4. Tajpu 2dd por forviŝi du liniojn. + +---> 1) Rozoj estas ruĝaj, +---> 2) Ŝlimo estas amuza, +---> 3) Violoj estas bluaj, +---> 4) Mi havas aŭton, +---> 5) Horloĝoj diras kioma horo estas, +---> 6) Sukero estas dolĉa, +---> 7) Kaj tiel vi estas. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2.7: LA KOMANDO DE MALFARO + + + ** Premu u por malfari la lastajn komandojn, U por ripari la tutan linion. ** + + 1. Movu la kursoron ĉe la suba linio markita per ---> kaj metu ĝin sur + la unuan eraron. + 2. Tajpu x por forviŝi la unuan nedeziratan signon. + 3. Nun tajpu u por malfari la lastan plenumitan komandon. + 4. Ĉi-foje, riparu ĉiujn erarojn en la linio kaj ĝia originala stato. + 5. Nun tajpu majusklan U por igi la linion al ĝia antaŭa stato. + 6. Nun tajpu u kelkfoje por malfari la U kaj antaŭajn komandojn. + 7. Nun tajpu CTRL-R (premante la CTRL klavon dum vi premas R) kelkfoje + por refari la komandojn (malfari la malfarojn). + +---> Koorektii la erarojn sur tiuu ĉi liniio kaj remettu illlin per malfaro. + + 8. Tiuj estas tre utilaj komandoj. Nun moviĝu al la leciono 1.2 RESUMO. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.2 RESUMO + + + 1. Por forviŝi ekde la kursoro ĝis la sekvanta vorto, tajpu: dw + 2. Por forviŝi ekde la kursoro ĝis la fino de la linio, tajpu: d$ + 3. Por forviŝi tutan linion, tajpu: dd + + 4. Por ripeti movon, antaŭmetu nombron: 2w + 5. La formato de ŝanĝa komando estas: + operatoro [nombro] movo + + kie: + operatoro - estas tio, kio farendas, kiel d por forviŝi + [nombro] - estas opcia nombro por ripeti la movon + movo - movas sur la teksto por operacii, kiel ekzemple w (vorto), + $ (ĝis fino de linio), ktp. + + 6. Por moviĝi al la komenco de la linio, uzu nul: 0 + + 7. Por malfari antaŭajn agojn, tajpu: u (minuskla u) + Por malfari ĉiujn ŝanĝojn sur la linio, tajpu: U (majuskla U) + Por refari la malfarojn, tajpu: CTRL-R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 3.1 LA KOMANDO DE METO + + + ** Tajpu p por meti tekston forviŝitan antaŭe post la kursoro. ** + + 1. Movu la kursoron ĉe la unua suba linio markita per --->. + + 2. Tajpu dd por forviŝi la linion kaj konservi ĝin ene de reĝistro de Vim. + + 3. Movu la kursoron ĉe la linio c), SUPER kie la forviŝita linio devus esti. + + 4. Tajpu p por meti la linion sub la kursoron. + + 5. Ripetu la paŝojn 2 ĝis 4 por meti ĉiujn liniojn en la ĝusta ordo. + +---> d) Ĉu ankaŭ vi povas lerni? +---> b) Violoj estas bluaj, +---> c) Inteligenteco lerneblas, +---> a) Rozoj estas ruĝaj, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 3.2 LA KOMANDO DE ANSTATAŬIGO + + + ** Tajpu rx por anstataŭigi la signon ĉe la kursoro per x . ** + + + 1. Movu la kursoron ĉe la unua suba linio markita per --->. + + 2. Movu la kursoron ĝis la unua eraro. + + 3. Tajpu r kaj la signon, kiu devus esti tie. + + 4. Ripetu paŝojn 2 kaj 3 ĝis kiam la unua linio egalas la duan. + +---> Kiem tiu lanio estis tajpita, iu pramis la naĝuftajn klovojn! +---> Kiam tiu linio estis tajpita, iu premis la neĝustajn klavojn! + + 5. Nun moviĝu al la leciono 3.3. + +RIMARKO: Memoru, ke vi devus lerni per uzo, kaj ne per memorado. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 3.3 LA OPERATORO DE ŜANĜO + + + ** Por ŝanĝi ĝis la fino de la vorto, tajpu ce . ** + + 1. Movu la kursoron ĉe la unua suba linio markita per --->. + + 2. Metu la kursoron sur la d en lduzw + + 3. Tajpu ce kaj la ĝustan vorton (en tiu ĉi kazo, tajpu inio ). + + 4. Premu kaj moviĝu al la sekvanta signo, kiu bezonas ŝanĝon. + + 5. Ripetu la paŝojn 3 kaj 4 ĝis kiam la unua frazo egalas la duan. + +---> Tiu lduzw havas kelkajn vortojn, kiii bezas ŝanĝon per la ŝanĝooto. +---> Tiu linio havas kelkajn vortojn, kiuj bezonas ŝanĝon per la ŝanĝoperatoro. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 3.4 PLIAJ ŜANĜOJ PER c + + + ** La operatoro de ŝanĝo uzeblas kun la sama movo kiel forviŝo. ** + + 1. La operatoro de ŝanĝo funkcias sammaniere kiel forviŝo. La formato estas: + + c [nombro] movo + + 2. La movoj estas samaj, kiel ekzemple w (vorto) kaj $ (fino de linio). + + 3. Moviĝu ĉe la unua suba linio markita per --->. + + 4. Movu la kursoron al la unua eraro. + + 5. Tajpu c$ kaj tajpu la reston de la linio kiel la dua kaj premu . + +---> La fino de ĉi tiu linio bezonas helpon por igi ĝin same kiel la dua. +---> La fino de ĉi tiu linio bezonas korektojn per uzo de la komando c$ + +RIMARKO: Vi povas uzi la klavon Retropaŝo por korekti erarojn dum vi tajpas. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.3 RESUMO + + + 1. Por remeti tekston, kiun vi ĵus forviŝis, tajpu p. Tio metas la + forviŝitan tekston POST la kursoro (se linio estis forviŝita, ĝi + iros en la linion sub la kursoro). + + 2. Por anstataŭigi la signon sub la kursoro, tajpu r kaj tiam la signon + kion vi deziras havi tie. + + 3. La operatoro de ŝanĝo ebligas al vi ŝanĝi ekde la kursoro, ĝis kie + la movo iras. Ekz. tajpu ce por ŝanĝi ekde la kursoro ĝis la fino + de la vorto, c$ por ŝanĝi ĝis la fino de la linio. + + 4. La formato de ŝanĝo estas: + + c [nombro] movo + +Nun daŭrigu al la sekvanta leciono. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.4.1: POZICIO DE KURSORO KAJ STATO DE DOSIERO + + + ** Tajpu CTRL-G por montri vian pozicion en la dosiero kaj la dosierstaton. + Tajpu G por moviĝi al linio en la dosiero. ** + + RIMARKO: Legu la tutan lecionon antaŭ ol plenumi iun paŝon ajn!! + + 1. Premu la klavon Ctrl kaj premu g . Oni nomas tion CTRL-G. + Mesaĝo aperos ĉe la suba parto de la paĝo kun la dosiernomo kaj la + pozicio en la dosiero. Memoru la numeron de la linio por paŝo 3. + + RIMARKO: Vi eble vidas la pozicion de la kursoro ĉe la suba dekstra + angulo de la ekrano. Tio okazas kiam la agordo 'ruler' estas + ŝaltita (vidu :help 'ruler') + + 2. Premu G por moviĝi ĉe la subo de la dosiero. + Tajpu gg por moviĝi ĉe la komenco de la dosiero. + + 3. Tajpu la numeron de la linio kie vi estis kaj poste G . Tio removos + vin al la linio, kie vi estis kiam vi unue premis CTRL-G. + + 4. Se vi sentas vin komforta, plenumu paŝojn 1 ĝis 3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.4.2: LA KOMANDO DE SERĈO + + + ** Tajpu / kaj poste frazon por serĉi la frazon. ** + + 1. En normala reĝimo, tajpu la / signon. Rimarku, ke ĝi kaj la kursoro + aperas ĉe la suba parto de la ekrano kiel por la : komando. + + 2. Nun tajpu 'errarro' . + Tio estas la vorto, kion vi volas serĉi. + + 3. Por serĉi la saman frazon denove, simple tajpu n . + Por serĉi la saman frazon denove en la retrodirekto, tajpu N . + + 4. Por serĉi frazon en la retrodirekto, uzu ? anstataŭ / . + + 5. Por reiri tien, el kie vi venis, premu CTRL-O (Premu Ctrl kaj o + literon o). Ripetu por pli retroiri. CTRL-I iras antaŭen. + +---> "errarro" ne estas maniero por literumi eraro; errarro estas eraro. + +RIMARKO: Kiam la serĉo atingas la finon de la dosiero, ĝi daŭras ĉe la + komenco, krom se la agordo 'wrapscan' estas malŝaltita. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.4.3: SERĈO DE KONGRUAJ KRAMPOJ + + + ** Tajpu % por trovi kongruan ), ] aŭ } ** + + 1. Poziciu la kursoron sur iun (, [ aŭ { en la linio markita per --->. + + 2. Nun tajpu la % signon. + + 3. La kursoro moviĝas al la kongrua krampo. + + 4. Tajpu % por movi la kursoron al la alia kongrua krampo. + + 5. Movu la kursoron al la alia (, ), [, ], {, } kaj observu tion, + kion % faras. + +---> Ĉi tiu ( estas testa linio kun (-oj, [-oj, ]-oj kaj {-oj, }-oj en ĝi. )) + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.4.4: LA KOMANDO DE ANSTATAŭIGO + + + ** Tajpu :s/malnova/nova/g por anstataŭigi 'nova' per 'malnova'. ** + + 1. Movu la kursoron al la suba linio markita per --->. + + 2. Tajpu :s/laa/la . Rimarku, ke la komando ŝanĝas nur la + unuan okazaĵon de "laa" en la linio. + + 3. Nun tajpu :s/laa/la/g . Aldono de g opcio signifas mallokan + anstataŭigon en la linio. Ĝi ŝanĝas ĉiujn okazaĵojn de "laa" en la + linio. + +---> laa plej bona tempo por vidi florojn estas en laa printempo. + + 4. Por ŝanĝi ĉiujn okazaĵojn de iu ĉena signo inter du linioj, + tajpu :#,#s/malnova/nova/g kie #,# estas la numeroj de linioj de la + intervalo de la linioj kie la anstataŭigo + okazos. + Tajpu :%s/malnova/nova/g por ŝanĝi ĉiujn okazaĵojn en la tuta + dosiero. + Tajpu :s/malnova/nova/gc por trovi ĉiujn okazaĵojn en la tuta + dosiero, kun invitilo ĉu anstataŭigi + aŭ ne. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.4 RESUMO + + 1. CTRL-G vidigas vian pozicion en la dosiero kaj la staton de la dosiero. + G movas la kursoron al la fino de la dosiero. + numero G movas la kursoron al numero de tiu linio. + gg movas la kursoron al la unua linio. + + 2. Tajpo de / kaj frazon serĉas la frazon antaŭen. + Tajpo de ? kaj frazon serĉas la frazon malantaŭen. + Post serĉo, tajpu n por trovi la sekvantan okazaĵon en la sama direkto aŭ + N por serĉi en la mala direkto. + CTRL-O movas vin al la antaŭaj pozicioj, CTRL-I al la novaj pozicioj. + + 3. Tajpo de % kiam la kursoro estas sur (,),[,],{ aŭ } moviĝas al ĝia + kongruo. + + 4. Por anstataŭigi 'nova' en la unua 'malnova' en linio :s/malnova/nova + Por anstataŭigi 'nova' en ĉiuj 'malnova'-oj en linio :s/malnova/nova/g + Por anstataŭigi frazon inter du #-aj linioj :#,#s/malnova/nova/g + Por anstataŭigi ĉiujn okazaĵojn en la dosiero :%s/malnova/nova/g + Por demandi konfirmon ĉiu-foje, aldonu 'c' :%s/malnova/nova/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.5.1: KIEL PLENUMI EKSTERAN KOMANDON + + + ** Tajpu :! sekvata de ekstera komando por plenumi la komandon. ** + + 1. Tajpu la konatan komandon : por pozicii la kursoron ĉe la suba parto + de la ekrano. Tio ebligas tajpadon de komando en komanda linio. + + 2. Nun tajpu la ! (krisigno) signon. Tio ebligas al vi plenumi iun + eksteran ŝelan komandon ajn. + + 3. Ekzemple, tajpu ls post ! kaj tajpu . Tio listigos la + enhavon de la dosierujo, same kiel se vi estis en ŝela invito. + Aŭ uzu :!dir se ls ne funkcias. + +RIMARKO: Eblas plenumi iun eksteran komandon ajn tiamaniere, ankaŭ kun + argumentoj. + +RIMARKO: Ĉiuj : komandoj devas finiĝi per tajpo de + Ekde nun, ni ne plu mencios tion. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.5.2: PLI PRI KONSERVO DE DOSIERO + + + ** Por konservi la faritajn ŝanĝojn en la teksto, tajpu :w DOSIERNOMO. ** + + 1. Tajpu !dir aŭ !ls por akiri liston de via dosierujo. + Vi jam scias, ke vi devas tajpi post tio. + + 2. Elektu dosieron, kiu ankoraŭ ne ekzistas, kiel ekzemple TESTO. + + 3. Nun tajpu: :w TESTO (kie TESTO estas la elektita dosiernomo) + + 4. Tio konservas la tutan dosieron (instruilon de Vim) kun la nomo TESTO. + Por kontroli tion, tajpu :!dir aŭ :!ls denove por vidigi vian + dosierujon. + +RIMARKO: Se vi volus eliri el Vim kaj restartigi ĝin denove per vim TESTO, + la dosiero estus precize same kiel kopio de la instruilo kiam vi + konservis ĝin. + + 5. Nun forviŝu la dosieron tajpante (VINDOZO): :!del TESTO + aŭ (UNIKSO): :!rm TESTO + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.5.3: APARTIGI KONSERVENDAN TESTON + + + ** Por konservi parton de la dosiero, tajpu v movo :w DOSIERNOMO ** + + 1. Movu la kursoron al tiu linio. + + 2. Premu v kaj movu la kursoron al la kvina suba ero. Rimarku, ke la + teksto emfaziĝas. + + 3. Premu la : signon. Ĉe la fino de la ekrano :'<,'> aperos. + + 4. Tajpu w TESTO , kie TESTO estas dosiernomo, kiu ankoraŭ ne ekzistas. + Kontrolu, ke vi vidas :'<,'>w TESTO antaŭ ol premi . + + 5. Vim konservos la apartigitajn liniojn al la dosiero TESTO. Uzu :dir + aŭ :!ls por vidigi ĝin. Ne forviŝu ĝin. Ni uzos ĝin en la sekvanta + leciono. + +RIMARKO: Premo de v komencas Viduman apartigon. Vi povas movi la kursoron + por pligrandigi aŭ malpligrandigi la apartigon. Tiam vi povas uzi + operatoron por plenumi ion kun la teksto. Ekzemple, d forviŝas + la tekston. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.5.4: AKIRI KAJ KUNFANDI DOSIEROJN + + + ** Por enmeti la enhavon de dosiero, tajpu :r DOSIERNOMON ** + + 1. Movu la kursoron tuj super ĉi tiu linio. + +RIMARKO: Post plenumo de paŝo 2, vi vidos tekston el la leciono 5.3. Tiam + moviĝu SUBEN por vidi tiun lecionon denove. + + 2. Nun akiru vian dosieron TESTO uzante la komandon :r TESTO kie TESTO + estas la nomo de la dosiero, kiun vi uzis. + La dosiero, kion vi akiras, estas metita sub la linio de la kursoro. + + 3. Por kontroli, ĉu la dosiero akiriĝis, retromovu la kursoron kaj rimarku, + ke estas nun du kopioj de la leciono 5.3, la originala kaj la versio mem + de la dosiero. + +RIMARKO: Vi nun povas legi la eliron de ekstera komando. Ekzemple, + :r !ls legas la eliron de la komando ls kaj metas ĝin sub la + kursoron. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.5 RESUMO + + + 1. :!komando plenumas eksteran komandon. + + Iuj utilaj ekzemploj estas: + (VINDOZO) (UNIKSO) + :!dir :!ls - listigas dosierujon + :!del DOSIERNOMO :!rm DOSIERNOMO - forviŝas la dosieron DOSIERNOMO + + 2. :w DOSIERNOMO konservas la nunan dosieron de Vim al disko kun la + nomo DOSIERNOMO. + + 3. v movo :w DOSIERNOMO konservas la Viduman apartigon de linioj en + dosiero DOSIERNOMO. + + 4. :r DOSIERNOMO akiras la dosieron DOSIERNOMO el la disko kaj metas + ĝin sub la pozicion de la kursoro. + + 5. :r !dir legas la eligon de la komando dir kaj metas ĝin sub la + pozicion de la kursoro. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6.1: LA KOMANDO DE MALFERMO + + + ** Tajpu o por malfermi linion sub la kursoro kaj eniri Enmetan reĝimon. ** + + 1. Movu la kursoron al la suba linio markita per --->. + + 2. Tajpu la minusklan literon o por malfermi linion SUB la kursoro kaj + eniri la Enmetan reĝimon. + + 3. Nun tajpu tekston kaj premu por eliri el la Enmeta reĝimo. + +---> Post tajpo de o la kursoro moviĝas al la malfermata linio en + Enmeta reĝimo. + + 4. Por malfermi linion SUPER la kursoro, nur tajpu majusklan O , + anstataŭ minusklan o. Provu tion per la suba linio. + +---> Malfermu linion SUPER tiu tajpante O dum la kursoro estas sur tiu linio. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6.2: LA KOMANDO DE POSTALDONO + + + ** Tajpu a por enmeti POST la kursoro. ** + + 1. Movu la kursoron ĉe la komenco de la linio markita per --->. + + 2. Premu e ĝis kiam la kursoro estas ĉe la fino de li. + + 3. Tajpu a (minuskle) por aldoni tekston POST la kursoro. + + 4. Kompletigu la vorton same kiel la linio sub ĝi. Premu por + eliri el la Enmeta reĝimo. + + 5. Uzu e por moviĝi al la sekvanta nekompleta vorto kaj ripetu + paŝojn 3 kaj 4. + +---> Ĉi tiu lin ebligos vin ekz vin postal tekston al linio. +---> Ĉi tiu linio ebligos vin ekzerci vin postaldoni tekston al linio. + +RIMARKO: Ĉiu a, i kaj A iras al la sama Enmeta reĝimo, la nura malsamo + estas tie, kie la signoj estas enmetitaj. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6.3: ALIA MANIERO POR ANSTATAŬIGI + + + ** Tajpu majusklan R por anstataŭigi pli ol unu signo. ** + + 1. Movu la kursoron al la unua suba linio markita per --->. Movu la + kursoron al la komenco de la unua xxx . + + 2. Nun premu R kaj tajpu la nombron sub ĝi en la dua linio, por ke ĝi + anstataŭigu la xxx . + + 3. Premu por foriri el la Anstataŭiga reĝimo. Rimarku, ke la cetera + parto de la linio restas neŝanĝata. + + 4. Ripetu la paŝojn por anstataŭigi la restantajn xxx. + +---> Aldono de 123 al xxx donas al vi xxx. +---> Aldono de 123 al 456 donas al vi 579. + +RIMARKO: Anstataŭiga reĝimo estas same kiel Enmeta reĝimo, sed ĉiu signo + tajpita forviŝas ekzistan signon. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6.4: KOPII KAJ ALGLUI TEKSTON + + + ** Uzu la y operatoron por kopii tekston, kaj p por alglui ĝin ** + + + 1. Iru al la suba linio markita per ---> kaj poziciu la kursoron post "a)". + + 2. Komencu la Viduman reĝimon per v kaj movu la kursoron tuj antaŭ "unua". + + 3. Tajpu y por kopii la emfazitan tekston. + + 4. Movu la kursoron ĉe la fino de la linio: j$ + + 5. Tajpu p por alglui la tekston. Tiam tajpu: a dua . + + 6. Uzu Viduman reĝimon por apartigi " ero.", kopiu ĝin per y , moviĝu + ĉe la fino de la sekvanta linio per j$ kaj algluu la tekston tie + per p . + +---> a) tio estas la unua ero. + b) + +RIMARKO: vi povas ankaŭ uzi y kiel operatoro; yw kopias unu vorton. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6.5: AGORDI OPCION + + + ** Agordu opcion por ke serĉo aŭ anstataŭigo ignoru usklecon ** + + 1. Serĉu 'ignori' per tajpo de /ignori + Ripetu plurfoje premante n . + + 2. Ŝaltu la opcion 'ic' (ignori usklecon) per: :set ic + + 3. Nun serĉu 'ignori' denove premante n + Rimarku, ke Ignori kaj IGNORI estas nun troveblas. + + 4. Ŝaltu la opciojn 'hlsearch' kaj 'incsearch': :set hls is + + 5. Nun retajpu la serĉan komandon kaj vidu kio okazas: /ignore + + 6. Por malŝalti ignoron de uskleco: :set noic + +RIMARKO: Por forigi emfazon de kongruo, tajpu: :nohlsearch +RIMARKO: Se vi deziras ignori usklecon por nur unu serĉa komando, uzu \c + en la frazo: /ignore\c + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.6 RESUMO + + 1. Tajpu o por malfermi linion SUB la kursoro kaj eki en Enmeta reĝimo. + 1. Tajpu O por malfermi linion SUPER la kursoro. + + 2. Tajpu a por enmeti tekston POST la kursoro. + Tajpu A por enmeti tekston post la fino de la linio. + + 3. La e komando movas la kursoron al la fino de vorto. + + 4. la y operatoro kopias tekston, p algluas ĝin. + + 5. Tajpo de majuskla R eniras la Anstataŭigan reĝimon ĝis kiam + estas premita. + + 6. Tajpo de ":set xxx" ŝaltas la opcion "xxx". Iuj opcioj estas: + 'ic' 'ignorecase' ignori usklecon dum serĉo + 'is' 'incsearch' montru partan kongruon dum serĉo + 'hls' 'hlsearch' emfazas ĉiujn kongruajn frazojn + Vi povas uzi aŭ la longan, aŭ la mallongan nomon de opcio. + + 7. Antaŭaldonu "no" por malŝalti la opcion: :set noic + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.7.1: AKIRI HELPON + + + ** Uzu la helpan sistemon ** + + Vim havas ampleksan helpan sistemon. Por komenciĝi, provu unu el la tiuj + tri: + - premu la klavon (se vi havas ĝin) + - premu la klavon (se vi havas ĝin) + - tajpu :help + + Legu la tekston en la helpfenestro por trovi kiel helpo funkcias. + Tajpu CTRL-W CTRL-W por salti de unu fenestro al la alia. + Tajpu :q por fermi la helpan fenestron. + + Vi povas trovi helpon pri io ajn aldonante argumenton al la komando + ":help". Provu tiujn (ne forgesu premi ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.7.2: KREI STARTAN SKRIPTON + + + ** Ebligu kapablojn de Vim ** + + Vim havas multe pli da kapabloj ol Vi, sed la plej multaj estas defaŭlte + malŝaltitaj. Por ekuzi la kapablojn, vi devas krei dosieron "vimrc". + + 1. Ekredaktu la dosieron "vimrc". Tio dependas de via sistemo: + :e ~/.vimrc por Unikso + :e ~/_vimrc por Vindozo + + 2. Nun legu la enhavon de la ekzempla "vimrc" + :r $VIMRUNTIME/vimrc_example.vim + + 3. Konservu la dosieron per: + :w + + La sekvantan fojon, kiam vi lanĉas Vim, ĝi uzos sintaksan emfazon. + Vi povas aldoni ĉiujn viajn preferatajn agordojn al tiu dosiero "vimrc". + Por pli da informoj, tajpu :help vimrc-intro + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.7.3: KOMPLETIGO + + + ** Kompletigo de komanda linio per CTRL-D kaj ** + + 1. Certigu ke Vim estas en kongrua reĝimo: :set nocp + + 2. Rigardu tiujn dosierojn, kiuj ekzistas en la dosierujo: :!ls aŭ :!dir + + 3. Tajpu la komencon de komando: :e + + 4. Premu CTRL-D kaj Vim montros liston de komandoj, kiuj komencas per "e". + + 5. Premu d kaj Vim kompletigos la nomon de la komando al ":edit". + + 6. Nun aldonu spaceton kaj la komencon de ekzistanta nomo: :edit DOSI + + 7. Premu d. Vim kompletigos la nomon (se ĝi estas unika) + +RIMARKO: Kompletigo funkcias por multaj komandoj. Nur provu premi CTRL-D kaj + . Estas aparte utila por :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leciono 1.7 RESUMO + + + 1. Tajpu :help aŭ premu por malfermi helpan fenestron. + + 2. Tajpu :help kmd por trovi helpon pri kmd. + + 3. Tajpu CTRL-W CTRL-W por salti al alia fenestro. + + 4. Tajpu :q to fermi la helpan fenestron. + + 5. Kreu komencan skripton vimrc por konservi viajn agordojn. + + 6. Kiam vi tajpas : komandon, premu CTRL-D por vidi ĉiujn kompleteblojn. + Premu por uzi unu kompletigon. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Tio konkludas la instruilon de Vim. Ĝi celis doni mallongan superrigardon + de la redaktilo Vim, nur tion kio sufiĉas por ebligi al vi facilan uzon de + la redaktilo. Estas nepre nekompleta, ĉar Vim havas multajn multajn pliajn + komandojn. Legu la manlibron: ":help user-manual". + + Tiu instruilo estis verkita de Michael C. Pierce kaj Robert K. Ware, + el la Koloradia Lernejo de Minejoj (Colorado School of Mines) uzante + ideojn provizitajn de Charles Smith el la Stata Universitato de Koloradio + (Colorado State University) + + Retpoŝto: bware@mines.colorado.edu. + + Modifita por Vim de Bram Moolenaar. + + Esperantigita fare de Dominique Pellé, 2008-04-01 + Retpoŝto: dominique.pelle@gmail.com + Lasta ŝanĝo: 2020-07-19 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.es b/git/usr/share/vim/vim92/tutor/tutor1.es new file mode 100644 index 0000000000000000000000000000000000000000..f21e5a65ad632d371061f41f622a673d689929fe --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.es @@ -0,0 +1,1036 @@ +=============================================================================== += B i e n v e n i d o a l t u t o r d e V I M - Versión 1.7 = +=============================================================================== += CAPÍTULO UNO = +=============================================================================== + + Vim es un editor muy potente que dispone de muchos comandos, demasiados + para ser explicados en un tutor como éste. Este tutor está diseñado + para describir suficientes comandos para que usted sea capaz de + aprender fácilmente a usar Vim como un editor de propósito general. + + El tiempo necesario para completar el tutor es aproximadamente de 30 + minutos, dependiendo de cuánto tiempo se dedique a la experimentación. + + Los comandos de estas lecciones modificarán el texto. Haga una copia de + este fichero para practicar (con «vimtutor» esto ya es una copia). + + Es importante recordar que este tutor está pensado para enseñar con + la práctica. Esto significa que es necesario ejecutar los comandos + para aprenderlos adecuadamente. Si únicamente lee el texto, ¡se le + olvidarán los comandos. + + Ahora, asegúrese de que la tecla de bloqueo de mayúsculas NO está + activada y pulse la tecla j lo suficiente para mover el cursor + de forma que la Lección 1.1.1 ocupe completamente la pantalla. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.1: MOVER EL CURSOR + + ** Para mover el cursor, pulse las teclas h,j,k,l de la forma indicada. ** + ^ + k Indicación: La tecla h está a la izquierda y lo mueve a la izquierda. + < h l > La tecla l está a la derecha y lo mueve a la derecha. + j La tecla j parece una flecha que apunta hacia abajo. + v + + 1. Mueva el cursor por la pantalla hasta que se sienta cómodo con ello. + + 2. Mantenga pulsada la tecla (j) hasta que se repita «automágicamente». + Ahora ya sabe como llegar a la lección siguiente. + + 3. Utilizando la tecla abajo, vaya a la lección 1.1.2. + +NOTA: Si alguna vez no está seguro sobre algo que ha tecleado, pulse + para situarse en modo Normal. Luego vuelva a teclear la orden que deseaba. + +NOTA: Las teclas de movimiento del cursor también funcionan. Pero usando + hjkl podrá moverse mucho más rápido una vez que se acostumbre a ello. + ¡De verdad! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.2: SALIR DE VIM + + ¡¡ NOTA: Antes de ejecutar alguno de los siguientes pasos lea primero + la lección entera!! + + 1. Pulse la tecla (para asegurarse de que está en modo Normal). + + 2. Escriba: :q! + Esto provoca la salida del editor DESCARTANDO cualquier cambio que haya hecho. + + 3. Regrese aquí ejecutando el comando que le trajo a este tutor. + Éste puede haber sido: vimtutor + + 4. Si ha memorizado estos pasos y se siente con confianza, ejecute los + pasos 1 a 3 para salir y volver a entrar al editor. + +NOTA: :q! descarta cualquier cambio que haya realizado. + En próximas lecciones aprenderá cómo guardar los cambios en un archivo. + + 5. Mueva el cursor hasta la Lección 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.3: EDITAR TEXTO - BORRAR + + ** Pulse x para eliminar el carácter bajo el cursor. ** + + 1. Mueva el cursor a la línea de abajo señalada con --->. + + 2. Para corregir los errores, mueva el cursor hasta que esté sobre el + carácter que va a ser borrado. + + 3. Pulse la tecla x para eliminar el carácter no deseado. + + 4. Repita los pasos 2 a 4 hasta que la frase sea la correcta. + +---> La vvaca saltóó soobree laa luuuuna. + + 5. Ahora que la línea esta correcta, continúe con la Lección 1.1.4. + +NOTA: A medida que vaya avanzando en este tutor no intente memorizar, + aprenda practicando. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.4: EDITAR TEXTO - INSERTAR + + ** Pulse i para insertar texto. ** + + 1. Mueva el cursor a la primera línea de abajo señalada con --->. + + 2. Para hacer que la primera línea sea igual que la segunda, mueva el + cursor hasta que esté sobre el carácter ANTES del cual el texto va a ser + insertado. + + 3. Pulse i y escriba los caracteres a añadir. + + 4. A medida que sea corregido cada error pulse para volver al modo + Normal. Repita los pasos 2 a 4 para corregir la frase. + +---> Flta texto en esta . +---> Falta algo de texto en esta línea. + + 5. Cuando se sienta cómodo insertando texto pase vaya a la lección 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.5: EDITAR TEXTO - AÑADIR + + + ** Pulse A para añadir texto. ** + + 1. Mueva el cursor a la primera línea inferior marcada con --->. + No importa sobre qué carácter está el cursor en esta línea. + + 2. Pulse A y escriba el texto necesario. + + 3. Cuando el texto haya sido añadido pulse para volver al modo Normal. + + 4. Mueva el cursor a la segunda línea marcada con ---> y repita los + pasos 2 y 3 para corregir esta frase. + +---> Falta algún texto en es + Falta algún texto en esta línea. +---> También falta alg + También falta algún texto aquí. + + 5. Cuando se sienta cómodo añadiendo texto pase a la lección 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.1.6: EDITAR UN ARCHIVO + + ** Use :wq para guardar un archivo y salir ** + + !! NOTA: Antes de ejecutar los siguientes pasos, lea la lección entera!! + + 1. Si tiene acceso a otra terminal, haga lo siguiente en ella. + Si no es así, salga de este tutor como hizo en la lección 1.1.2: :q! + + 2. En el símbolo del sistema escriba este comando: vim archivo.txt + 'vim' es el comando para arrancar el editor Vim, 'archivo.txt' + es el nombre del archivo que quiere editar + Utilice el nombre de un archivo que pueda cambiar. + + 3. Inserte y elimine texto como ya aprendió en las lecciones anteriores. + + 4. Guarde el archivo con los cambios y salga de Vim con: :wq + + 5. Si ha salido de vimtutor en el paso 1 reinicie vimtutor y baje hasta + el siguiente sumario. + + 6. Después de leer los pasos anteriores y haberlos entendido: hágalos. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.1 + + + 1. El cursor se mueve utilizando las teclas de las flechas o las teclas hjkl. + h (izquierda) j (abajo) k (arriba) l (derecha) + + 2. Para acceder a Vim desde el símbolo del sistema escriba: + vim NOMBREARCHIVO + + 3. Para salir de Vim escriba: :q! para eliminar todos + los cambios. + O escriba: :wq para guardar los cambios. + + 4. Para borrar un carácter bajo el cursor en modo Normal pulse: x + + 5. Para insertar o añadir texto escriba: + i escriba el texto a insertar inserta el texto antes del cursor + A escriba el texto a añadir añade texto al final de la línea + +NOTA: Pulsando se vuelve al modo Normal o cancela una orden no deseada + o incompleta. + +Ahora continúe con la Lección 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.1: COMANDOS PARA BORRAR + + + ** Escriba dw para borrar una palabra ** + + + 1. Pulse para asegurarse de que está en el modo Normal. + + 2. Mueva el cursor a la línea inferior señalada con --->. + + 3. Mueva el cursor al comienzo de una palabra que desee borrar. + + 4. Pulse dw para hacer que la palabra desaparezca. + + NOTA: La letra d aparecerá en la última línea inferior derecha + de la pantalla mientras la escribe. Vim está esperando que escriba w . + Si ve otro carácter que no sea d escribió algo mal, pulse y + comience de nuevo. + +---> Hay algunas palabras pásalo bien que no pertenecen papel a esta frase. + + 5. Repita los pasos 3 y 4 hasta que la frase sea correcta y pase a la + lección 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.2: MÁS COMANDOS PARA BORRAR + + + ** Escriba d$ para borrar hasta el final de la línea. ** + + 1. Pulse para asegurarse de que está en el modo Normal. + + 2. Mueva el cursor a la línea inferior señalada con --->. + + 3. Mueva el cursor al final de la línea correcta (DESPUÉS del primer . ). + + 4. Escriba d$ para borrar hasta el final de la línea. + +---> Alguien ha escrito el final de esta línea dos veces. esta línea dos veces. + + 5. Pase a la lección 1.2.3 para entender qué está pasando. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.3: SOBRE OPERADORES Y MOVIMIENTOS + + + Muchos comandos que cambian texto están compuestos por un operador y un + movimiento. + El formato para comando eliminar con el operador de borrado d es el + siguiente: + + d movimiento + + Donde: + d - es el operador para borrar. + movimiento - es sobre lo que el comando va a operar (lista inferior). + + Una lista resumida de movimientos: + w - hasta el comienzo de la siguiente palabra, EXCLUYENDO su primer + carácter. + e - hasta el final de la palabra actual, INCLUYENDO el último carácter. + $ - hasta el final de la línea, INCLUYENDO el último carácter. + + Por tanto, al escribir de borrará desde la posición del cursor, hasta + el final de la palabra. + +NOTA: Pulsando únicamente el movimiento estando en el modo Normal sin un + operador, moverá el cursor como se especifica en la lista anterior. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.4: UTILIZAR UN CONTADOR PARA UN MOVIMIENTO + + + ** Al escribir un número antes de un movimiento, lo repite esas veces. ** + + 1. Mueva el cursor al comienzo de la línea marcada con --->. + + 2. Escriba 2w para mover el cursor dos palabras hacia adelante. + + 3. Escriba 3e para mover el cursor al final de la tercera palabra hacia + adelante. + + 4. Escriba 0 (cero) para colocar el cursor al inicio de la línea. + + 5. Repita el paso 2 y 3 con diferentes números. + +---> Esto es solo una línea con palabras donde poder moverse. + + 6. Pase a la lección 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.5: UTILIZAR UN CONTADOR PARA BORRAR MAS + + + ** Al escribir un número con un operador lo repite esas veces. ** + + En combinación con el operador de borrado y el movimiento mencionado + anteriormente, añada un contador antes del movimiento para eliminar más: + d número movimiento + + 1. Mueva el cursor al inicio de la primera palabra en MAYÚSCULAS en la + línea marcada con --->. + + 2. Escriba d2w para eliminar las dos palabras en MAYÚSCULAS. + + 3. Repita los pasos 1 y 2 con diferentes contadores para eliminar + las siguientes palabras en MAYÚSCULAS con un comando. + +---> Esta ABC DE serie FGHI JK LMN OP de palabras ha sido Q RS TUV limpiada. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.6: OPERACIÓN EN LÍNEAS + + + ** Escriba dd para eliminar una línea completa. ** + + Debido a la frecuencia con que se elimina una línea completa, los + diseñadores de Vi, decidieron que sería más sencillo simplemente escribir + dos letras d para eliminar una línea. + + 1. Mueva el cursor a la segunda línea del párrafo inferior. + 2. Escriba dd para eliminar la línea. + 3. Ahora muévase a la cuarta línea. + 4. Escriba 2dd para eliminar dos líneas a la vez. + +---> 1) Las rosas son rojas, +---> 2) El barro es divertido, +---> 3) La violeta es azul, +---> 4) Tengo un coche, +---> 5) Los relojes dan la hora, +---> 6) El azúcar es dulce +---> 7) Y también lo eres tú. + +La duplicación para borrar líneas también funcionan con los operadores +mencionados anteriormente. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.2.7: EL MANDATO DESHACER + + + ** Pulse u para deshacer los últimos comandos, + U para deshacer una línea entera. ** + + 1. Mueva el cursor a la línea inferior señalada con ---> y sitúelo bajo el + primer error. + 2. Pulse x para borrar el primer carácter no deseado. + 3. Pulse ahora u para deshacer el último comando ejecutado. + 4. Ahora corrija todos los errores de la línea usando el comando x. + 5. Pulse ahora U mayúscula para devolver la línea a su estado original. + 6. Pulse ahora u unas pocas veces para deshacer lo hecho por U y los + comandos previos. + 7. Ahora pulse CTRL-R (mantenga pulsada la tecla CTRL y pulse R) unas + cuantas veces para volver a ejecutar los comandos (deshacer lo deshecho). + +---> Corrrija los errores dee esttta línea y vuuelva a ponerlos coon deshacer. + + 8. Estos son unos comandos muy útiles. Ahora vayamos al resumen de la + lección 1.2. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.2 + + 1. Para borrar desde el cursor hasta siguiente palabra pulse: dw + 2. Para borrar desde el cursor hasta el final de la palabra pulse: de + 3. Para borrar desde el cursor hasta el final de una línea pulse: d$ + 4. Para borrar una línea entera pulse: dd + + 5. Para repetir un movimiento anteponga un número: 2w + 6. El formato para un comando de cambio es: + operador [número] movimiento + donde: + comando - es lo que hay que hacer, por ejemplo, d para borrar + [número] - es un número opcional para repetir el movimiento + movimiento - se mueve sobre el texto sobre el que operar, como + w (palabra), $ (hasta el final de la línea), etc. + 7. Para moverse al inicio de la línea utilice un cero: 0 + + 8. Para deshacer acciones previas pulse: u (u minúscula) + Para deshacer todos los cambios de una línea pulse: U (U mayúscula) + Para deshacer lo deshecho pulse: CTRL-R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.3.1: EL COMANDO «PUT» (poner) + +** Pulse p para poner (pegar) después del cursor lo último que ha borrado. ** + + 1. Mueva el cursor a la primera línea inferior marcada con --->. + + 2. Escriba dd para borrar la línea y almacenarla en un registro de Vim. + + 3. Mueva el cursor a la línea c) por ENCIMA de donde debería estar + la línea eliminada. + + 4. Pulse p para pegar la línea borrada por debajo del cursor. + + 5. Repita los pasos 2 a 4 para poner todas las líneas en el orden correcto. + +---> d) ¿Puedes aprenderla tú? +---> b) La violeta es azul, +---> c) La inteligencia se aprende, +---> a) Las rosas son rojas, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.3.2: EL COMANDO REEMPLAZAR + + + ** Pulse rx para reemplazar el carácter bajo el cursor con x . ** + + 1. Mueva el cursor a la primera línea inferior marcada con --->. + + 2. Mueva el cursor para situarlo sobre el primer error. + + 3. Pulse r y después el carácter que debería ir ahí. + + 4. Repita los pasos 2 y 3 hasta que la primera sea igual a la segunda. + +---> ¡Cuendo esta línea fue rscrita alguien pulso algunas teclas equibocadas! +---> ¡Cuando esta línea fue escrita alguien pulsó algunas teclas equivocadas! + + 5. Ahora pase a la lección 1.3.3. + +NOTA: Recuerde que debería aprender practicando. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.3.3: EL COMANDO CAMBIAR + + + ** Para cambiar hasta el final de una palabra, escriba ce . ** + + 1. Mueva el cursor a la primera línea inferior marcada con --->. + + 2. Sitúe el cursor en la u de lubrs. + + 3. Escriba ce y corrija la palabra (en este caso, escriba 'ínea'). + + 4. Pulse y mueva el cursor al siguiente error que debe ser cambiado. + + 5. Repita los pasos 3 y 4 hasta que la primera frase sea igual a la segunda. + +---> Esta lubrs tiene unas pocas pskavtad que corregir usem el comando change. +---> Esta línea tiene unas pocas palabras que corregir usando el comando change. + +Tenga en cuenta que ce elimina la palabra y entra en el modo Insertar. + cc hace lo mismo para toda la línea. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.3.4: MÁS CAMBIOS USANDO c + + ** El operador change se utiliza con los mismos movimientos que delete. ** + + 1. El operador change funciona de la misma forma que delete. El formato es: + + c [número] movimiento + + 2. Los movimientos son también los mismos, tales como w (palabra) o + $ (fin de la línea). + + 3. Mueva el cursor a la primera línea inferior señalada con --->. + + 4. Mueva el cursor al primer error. + + 5. Pulse c$ y escriba el resto de la línea para que sea como la segunda + y pulse . + +---> El final de esta línea necesita alguna ayuda para que sea como la segunda. +---> El final de esta línea necesita ser corregido usando el comando c$. + +NOTA: Puede utilizar el retorno de carro para corregir errores mientras escribe. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.3 + + + 1. Para volver a poner o pegar el texto que acaba de ser borrado, + escriba p . Esto pega el texto después del cursor (si se borró una + línea, al pegarla, esta se situará en la línea debajo del cursor). + + 2. Para reemplazar el carácter bajo el cursor, pulse r y luego el + carácter que quiere que esté en ese lugar. + + 3. El operador change le permite cambiar desde la posición del cursor + hasta donde el movimiento indicado le lleve. Por ejemplo, pulse ce + para cambiar desde el cursor hasta el final de la palabra, o c$ + para cambiar hasta el final de la línea. + + 4. El formato para change es: + + c [número] movimiento + + Pase ahora a la lección siguiente. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.4.1: UBICACIÓN DEL CURSOR Y ESTADO DEL ARCHIVO + + ** Pulse CTRL-G para mostrar su situación en el fichero y su estado. + Pulse G para moverse a una determinada línea del fichero. ** + +NOTA: ¡¡Lea esta lección entera antes de ejecutar cualquiera de los pasos!! + + 1. Mantenga pulsada la tecla Ctrl y pulse g . Le llamamos a esto CTRL-G. + Aparecerá un mensaje en la parte inferior de la página con el nombre + del archivo y la posición en este. Recuerde el número de línea + para el paso 3. + +NOTA: Quizás pueda ver la posición del cursor en la esquina inferior derecha + de la pantalla. Esto ocurre cuando la opción 'ruler' (regla) está + habilitada (consulte :help 'ruler' ) + + 2. Pulse G para mover el cursor hasta la parte inferior del archivo. + Pulse gg para mover el cursor al inicio del archivo. + + 3. Escriba el número de la línea en la que estaba y después G . Esto + le volverá a la línea en la que estaba cuando pulsó CTRL-G. + + 4. Si se siente seguro en poder hacer esto ejecute los pasos 1 a 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.4.2: EL COMANDO «SEARCH» (buscar) + + ** Escriba / seguido de una frase para buscar la frase. ** + + 1. En modo Normal pulse el carácter / . Fíjese que tanto el carácter / + como el cursor aparecen en la última línea de la pantalla, lo mismo + que el comando : . + + 2. Escriba ahora errroor . Esta es la palabra que quiere buscar. + + 3. Para repetir la búsqueda de la misma frase otra vez, simplemente pulse n . + Para buscar la misma frase en la dirección opuesta, pulse N . + + 4. Si quiere buscar una frase en la dirección opuesta (hacia arriba), + utilice el comando ? en lugar de / . + + 5. Para regresar al lugar de donde procedía pulse CTRL-O (Mantenga pulsado + Ctrl mientras pulsa la letra o). Repita el proceso para regresar más atrás. + CTRL-I va hacia adelante. + +---> "errroor" no es la forma correcta de escribir error, errroor es un error. + +NOTA: Cuando la búsqueda llega al final del archivo, continuará desde el + comienzo, a menos que la opción 'wrapscan' haya sido desactivada. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.4.3: BÚSQUEDA PARA COMPROBAR PARÉNTESIS + + ** Pulse % para encontrar el paréntesis correspondiente a ),] o } . ** + + 1. Sitúe el cursor en cualquiera de los caracteres (, [ o { en la línea + inferior señalada con --->. + + 2. Pulse ahora el carácter % . + + 3. El cursor se moverá a la pareja de cierre del paréntesis, corchete + o llave correspondiente. + + 4. Pulse % para mover el cursor a la otra pareja del carácter. + + 5. Mueva el cursor a otro (,),[,],{ o } y vea lo que hace % . + +---> Esto ( es una línea de prueba con (, [, ], {, y } en ella. )) + +NOTA: ¡Esto es muy útil en la detección de errores en un programa con + paréntesis, corchetes o llaves sin pareja. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.4.4: EL COMANDO SUSTITUIR + + + ** Escriba :s/viejo/nuevo/g para sustituir 'viejo' por 'nuevo'. ** + + 1. Mueva el cursor a la línea inferior señalada con --->. + + 2. Escriba :s/laas/las/ . Tenga en cuenta que este mandato cambia + sólo la primera aparición en la línea de la expresión a cambiar. + + 3. Ahora escriba :s/laas/la/g . Al añadir la opción g esto significa + que hará la sustitución global en la línea, cambiando todas las + ocurrencias del término "laas" en la línea. + +---> Laas mejores épocas para ver laas flores son laas primaveras. + + 4. Para cambiar cada ocurrencia de la cadena de caracteres entre dos líneas, + Escriba :#,#s/viejo/nuevo/g donde #,# son los números de línea del rango + de líneas donde se realizará la sustitución. + Escriba :%s/old/new/g para cambiar cada ocurrencia en todo el + archivo. + Escriba :%s/old/new/gc para encontrar cada ocurrencia en todo el + archivo, pidiendo confirmación para + realizar la sustitución o no. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.4 + + + 1. CTRL-G muestra la posición del cursor en el fichero y su estado. + G mueve el cursor al final del archivo. + número G mueve el cursor a ese número de línea. + gg mueve el cursor a la primera línea del archivo. + + 2. Escribiendo / seguido de una frase busca la frase hacia ADELANTE. + Escribiendo ? seguido de una frase busca la frase hacia ATRÁS. + Después de una búsqueda pulse n para encontrar la aparición + siguiente en la misma dirección o N para buscar en dirección opuesta. + + 3. Pulsando % cuando el cursor esta sobre (,), [,], { o } localiza + la pareja correspondiente. + + 4. Para cambiar viejo en el primer nuevo en una línea escriba :s/viejo/nuevo + Para cambiar todos los viejo por nuevo en una línea escriba :s/viejo/nuevo/g + Para cambiar frases entre dos números de líneas escriba :#,#s/viejo/nuevo/g + Para cambiar viejo por nuevo en todo el fichero escriba :%s/viejo/nuevo/g + Para pedir confirmación en cada caso añada 'c' :%s/viejo/nuevo/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.5.1: CÓMO EJECUTAR UN MANDATO EXTERNO + + + ** Escriba :! seguido de un comando externo para ejecutar ese comando. ** + + 1. Escriba el conocido comando : para situar el cursor al final de la + pantalla. Esto le permitirá introducir un comando. + + 2. Ahora escriba el carácter ! (signo de admiración). Esto le permitirá + ejecutar cualquier mandato del sistema. + + 3. Como ejemplo escriba ls después del ! y luego pulse . Esto + le mostrará una lista de su directorio, igual que si estuviera en el + símbolo del sistema. Si ls no funciona utilice :!dir . + +NOTA: De esta manera es posible ejecutar cualquier comando externo, + también incluyendo argumentos. + +NOTA: Todos los comando : deben finalizarse pulsando . + De ahora en adelante no siempre se mencionará. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.5.2: MÁS SOBRE GUARDAR FICHEROS + + + ** Para guardar los cambios hechos en un fichero, + escriba :w NOMBRE_DE_FICHERO ** + + 1. Escriba :!dir o :!ls para ver una lista de los archivos + de su directorio. + Ya sabe que debe pulsar después de ello. + + 2. Elija un nombre de fichero que todavía no exista, como TEST. + + 3. Ahora escriba :w TEST (donde TEST es el nombre de fichero elegido). + + 4. Esta acción guarda todo el fichero (Vim Tutor) bajo el nombre TEST. + Para comprobarlo escriba :!dir o :!ls de nuevo y vea su directorio. + +NOTA: Si saliera de Vim y volviera a entrar de nuevo con vim TEST , el + archivo sería una copia exacta del tutorial cuando lo guardó. + + 5. Ahora elimine el archivo escribiendo (Windows): :!del TEST + o (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.5.3: SELECCIONAR TEXTO PARA GUARDAR + + + ** Para guardar parte del archivo, escriba v movimiento :w ARCHIVO ** + + 1. Mueva el cursor a esta línea. + + 2. Pulse v y mueva el cursor hasta el quinto elemento inferior. Vea que + el texto es resaltado. + + 3. Pulse el carácter : en la parte inferior de la pantalla aparecerá + :'<,'> + + 4. Pulse w TEST , donde TEST es un nombre de archivo que aún no existe. + Verifique que ve :'<,'>w TEST antes de pulsar . + + 5. Vim escribirá las líneas seleccionadas en el archivo TEST. Utilice + :!dir o :!ls para verlo. ¡No lo elimine todavía! Lo utilizaremos + en la siguiente lección. + +NOTA: Al pulsar v inicia la selección visual. Puede mover el cursor para + hacer la selección más grande o pequeña. Después puede utilizar un + operador para hacer algo con el texto. Por ejemplo, d eliminará + el texto seleccionado. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.5.4: RECUPERANDO Y MEZCLANDO FICHEROS + + + ** Para insertar el contenido de un fichero escriba :r NOMBRE_DEL_FICHERO ** + + 1. Sitúe el cursor justo por encima de esta línea. + +NOTA: Después de ejecutar el paso 2 verá texto de la lección 1.5.3. Después + DESCIENDA hasta ver de nuevo esta lección. + + 2. Ahora recupere el archivo TEST utilizando el comando :r TEST donde + TEST es el nombre que ha utilizado. + El archivo que ha recuperado se colocará debajo de la línea donde + se encuentra el cursor. + + 3. Para verificar que se ha recuperado el archivo, suba el cursor y + compruebe que ahora hay dos copias de la lección 1.5.3, la original y + la versión del archivo. + +NOTA: También puede leer la salida de un comando externo. Por ejemplo, + :r !ls lee la salida del comando ls y lo pega debajo de la línea + donde se encuentra el cursor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.5 + + + 1. :!comando ejecuta un comando externo. + + Algunos ejemplos útiles son: + (Windows) (Unix) + :!dir :!ls - muestra el contenido de un directorio. + :!del ARCHIVO :!rm ARCHIVO - borra el fichero ARCHIVO. + + 2. :w ARCHIVO escribe el archivo actual de Vim en el disco con el + nombre de ARCHIVO. + + 3. v movimiento :w ARCHIVO guarda las líneas seleccionadas visualmente + en el archivo ARCHIVO. + + 4. :r ARCHIVO recupera del disco el archivo ARCHIVO y lo pega debajo + de la posición del cursor. + + 5. :r !dir lee la salida del comando dir y lo pega debajo de la + posición del cursor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.6.1: EL COMANDO OPEN + + + ** Pulse o para abrir una línea debajo del cursor + y situarle en modo Insertar ** + + 1. Mueva el cursor a la línea inferior señalada con --->. + + 2. Pulse la letra minúscula o para abrir una línea por DEBAJO del cursor + y situarle en modo Insertar. + + 3. Ahora escriba algún texto y después pulse para salir del modo + insertar. + +---> Después de pulsar o el cursor se sitúa en la línea abierta en modo Insertar. + + 4. Para abrir una línea por ENCIMA del cursor, simplemente pulse una O + mayúscula, en lugar de una o minúscula. Pruebe esto en la línea siguiente. + +---> Abra una línea sobre esta pulsando O cuando el cursor está en esta línea. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.6.2: EL COMANDO APPEND (añadir) + + + ** Pulse a para insertar texto DESPUÉS del cursor. ** + + 1. Mueva el cursor al inicio de la primera línea inferior señalada con --->. + + 2. Escriba e hasta que el cursor esté al final de lín . + + 3. Escriba una a (minúscula) para añadir texto DESPUÉS del cursor. + + 4. Complete la palabra como en la línea inferior. Pulse para salir + del modo insertar. + + 5. Utilice e para moverse hasta la siguiente palabra incompleta y + repita los pasos 3 y 4. + +---> Esta lín le permit prati cómo añad texto a una línea. +---> Esta línea le permitirá practicar cómo añadir texto a una línea. + +NOTA: a, i y A todos entran en el modo Insertar, la única diferencia es + dónde ubican los caracteres insertados. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.6.3: OTRA VERSIÓN DE REPLACE (remplazar) + + + ** Pulse una R mayúscula para sustituir más de un carácter. ** + + 1. Mueva el cursor a la primera línea inferior señalada con --->. Mueva + el cursor al inicio de la primera xxx . + + 2. Ahora pulse R y escriba el número que aparece en la línea inferior, + esto reemplazará el texto xxx . + + 3. Pulse para abandonar el modo Reemplazar. Observe que el resto de + la línea permanece sin modificaciones. + + 4. Repita los pasos para reemplazar el texto xxx que queda. + +---> Sumar 123 a xxx da un resultado de xxx. +---> Sumar 123 a 456 da un resultado de 579. + +NOTA: El modo Reemplazar es como el modo Insertar, pero cada carácter escrito + elimina un carácter ya existente. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.6.4: COPIAR Y PEGAR TEXTO + + + + ** Utilice el operador y para copiar texto y p para pegarlo. ** + + 1. Mueva el cursor a la línea inferior marcada con ---> y posicione el + cursor después de "a)". + + 2. Inicie el modo Visual con v y mueva el cursor justo antes de "primer". + + 3. Pulse y para copiar ("yank") el texto resaltado. + + 4. Mueva el cursor al final de la siguiente línea mediante: j$ + + 5. Pulse p para poner (pegar) el texto. Después escriba: el segundo . + + 6. Utilice el modo visual para seleccionar " elemento.", y cópielo con y + mueva el cursor al final de la siguiente línea con j$ y pegue el texto + recién copiado con p . + +---> a) este es el primer elemento. + b) + +NOTA: También puede utilizar y como un operador: yw copia una palabra, + yy copia la línea completa donde está el cursor, después p pegará + esa línea. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.6.5: ACTIVAR (SET) UNA OPCIÓN + + + ** Active una opción para buscar o sustituir ignorando si está + en mayúsculas o minúsculas el texto. ** + + 1. Busque la cadena de texto 'ignorar' escribiendo: /ignorar + Repita la búsqueda varias veces pulsando n . + + 2. Active la opción 'ic' (Ignore case o ignorar mayúsculas y minúsculas) + mediante: :set ic + + 3. Ahora busque de nuevo 'ignorar' pulsando n + Observe que ahora también se encuentran Ignorar e IGNORAR. + + 4. Active las opciones 'hlsearch' y 'incsearch' escribiendo: :set hls is + + 5. Ahora escriba de nuevo el comando de búsqueda y vea qué ocurre: /ignore + + 6. Para inhabilitar el ignorar la distinción de mayúsculas y minúsculas + escriba: :set noic + +NOTA: Para eliminar el resaltado de las coincidencias escriba: :nohlsearch +NOTA: Si quiere ignorar las mayúsculas y minúsculas, solo para un comando + de búsqueda, utilice \c en la frase: /ignorar\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.6 + + + 1. Escriba o para abrir una línea por DEBAJO de la posición del cursor y + entrar en modo Insertar. + Escriba O para abrir una línea por ENCIMA de la posición del cursor y + entrar en modo Insertar + + 2. Escriba a para insertar texto DESPUÉS del cursor. + Escriba A para insertar texto al final de la línea. + + 3. El comando e mueve el cursor al final de una palabra. + + 4. El operador y copia (yank) texto, p lo pega (pone). + + 5. Al escribir una R mayúscula entra en el modo Reemplazar hasta que + se pulsa . + + 6. Al escribir ":set xxx" activa la opción "xxx". Algunas opciones son: + 'ic' 'ignorecase' ignorar mayúsculas/minúsculas al buscar + 'is' 'incsearch' mostrar las coincidencias parciales para la búsqueda + de una frase + 'hls' 'hlsearch' resalta todas las coincidencias de la frases + Puedes utilizar tanto los nombre largos o cortos de las opciones. + + 7. Añada "no" para inhabilitar una opción: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.7.1: OBTENER AYUDA + + + ** Utilice el sistema de ayuda en línea ** + + Vim dispone de un sistema de ayuda en línea. Para comenzar, pruebe una + de estas tres formas: + - pulse la tecla (si dispone de ella) + - pulse la tecla (si dispone de ella) + - escriba :help + + Lea el texto en la ventana de ayuda para descubrir cómo funciona la ayuda. + Escriba CTRL-W CTRL-W para saltar de una ventana a otra. + Escriba :q para cerrar la ventana de ayuda. + + Puede encontrar ayuda en casi cualquier tema añadiendo un argumento al + comando «:help». Pruebe éstos (no olvide pulsar ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.7.2: CREAR UN SCRIPT DE INICIO + + + ** Habilitar funcionalidades en Vim ** + + Vim tiene muchas más funcionalidades que Vi, pero algunas están + inhabilitadas de manera predeterminada. + Para empezar a utilizar más funcionalidades debería crear un archivo + llamado "vimrc". + + 1. Comience a editar el archivo "vimrc". Esto depende de su sistema: + :e ~/.vimrc para Unix + :e ~/_vimrc para Windows + + 2. Ahora lea el contenido del archivo "vimrc" de ejemplo: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Guarde el archivo mediante: + :w + + La próxima vez que inicie Vim, este usará el resaltado de sintaxis. + Puede añadir todos sus ajustes preferidos a este archivo "vimrc". + Para más información escriba :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 1.7.3: COMPLETADO + + + ** Completado de la línea de comandos con CTRL-D o ** + + 1. Asegúrese de que Vim no está en el modo compatible: :set nocp + + 2. Vea qué archivos existen en el directorio con: :!ls o :!dir + + 3. Escriba el inicio de un comando: :e + + 4. Pulse CTRL-D y Vim mostrará una lista de comandos que empiezan con "e". + + 5. Añada d y Vim completará el nombre del comando a ":edit". + + 6. Ahora añada un espacio y el inicio del nombre de un archivo: :edit FIL + + 7. Pulse . Vim completará el nombre (si solo hay uno). + +NOTA: El completado funciona con muchos comandos. Solo pulse CTRL-D o + . Es especialmente útil para :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMEN DE LA LECCIÓN 1.7 + + + 1. Escriba :help o pulse o para abrir la ventana de ayuda. + + 2. Escriba :help cmd para encontrar ayuda sobre cmd . + + 3. Escriba CTRL-W CTRL-W para saltar a otra ventana. + + 4. Escriba :q para cerrar la ventana de ayuda. + + 5. Cree un fichero vimrc de inicio para guardar sus ajustes preferidos. + + 6. Cuando escriba un comando : pulse CTRL-D para ver posibles opciones. + Pulse para utilizar una de las opciones de completado. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Aquí concluye el tutor de Vim. Considere continuar con Capítulo 2, que trata + sobre registros, marcas y el uso de objetos de texto. + + Para acceder al Capítulo 2 salga de este y ejecute en una terminal: + vimtutor -c 2 + + Está pensado para dar una visión breve del + editor Vim, lo suficiente para permitirle usar el editor de forma bastante + sencilla. Está muy lejos de estar completo pues Vim tiene muchísimos más + comandos. + + Lea el siguiente manual de usuario: ":help user-manual". + + Para lecturas y estudios posteriores se recomienda el libro: + Vim - Vi Improved - de Steve Oualline + Editado por: New Riders + El primer libro dedicado completamente a Vim. Especialmente útil para + recién principiantes. + Tiene muchos ejemplos e imágenes. + Vea https://iccf-holland.org/click5.html + + Este tutorial ha sido escrito por Michael C. Pierce y Robert K. Ware, + Colorado School of Mines utilizando ideas suministradas por Charles Smith, + Colorado State University. + E-mail: bware@mines.colorado.edu. + + Modificado para Vim por Bram Moolenaar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Traducido del inglés por: + + * Eduardo F. Amatria + Correo electrónico: eferna1@platea.pntic.mec.es + * Victorhck + Correo electrónico: victorhck@opensuse.org + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.fr b/git/usr/share/vim/vim92/tutor/tutor1.fr new file mode 100644 index 0000000000000000000000000000000000000000..217d63fba098ba72cd73eb20198c079f510c7ca1 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.fr @@ -0,0 +1,1041 @@ +=============================================================================== += B i e n v e n u e dans l e T u t o r i e l de V I M - Version 1.7 = +=============================================================================== + + Vim est un éditeur très puissant qui a trop de commandes pour pouvoir + toutes les expliquer dans un cours comme celui-ci, qui est conçu pour en + décrire suffisamment afin de vous permettre d'utiliser simplement Vim. + + Le temps requis pour suivre ce cours est d'environ 25 à 30 minutes, selon + le temps que vous passerez à expérimenter. + + ATTENTION : + Les commandes utilisées dans les leçons modifieront le texte. Faites une + copie de ce fichier afin de vous entraîner dessus (si vous avez lancé + "vimtutor" ceci est déjà une copie). + + Il est important de garder en tête que ce cours est conçu pour apprendre + par la pratique. Cela signifie que vous devez exécuter les commandes + pour les apprendre correctement. Si vous vous contentez de lire le texte, + vous oublierez les commandes ! + + Maintenant, vérifiez que votre clavier n'est PAS verrouillé en + majuscules, et appuyez la touche j le nombre de fois suffisant pour + que la Leçon 1.1.1 remplisse complètement l'écran. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.1 : DÉPLACEMENT DU CURSEUR + + + ** Pour déplacer le curseur, appuyez les touches h,j,k,l comme indiqué. ** + ^ + k Astuce : La touche h est à gauche et déplace à gauche. + < h l > La touche l est à droite et déplace à droite. + j La touche j ressemble à une flèche vers le bas. + v + 1. Déplacez le curseur sur l'écran jusqu'à vous sentir à l'aise. + + 2. Maintenez la touche Bas (j) enfoncée jusqu'à ce qu'elle se répète. + Maintenant vous êtes capable de vous déplacer jusqu'à la leçon suivante. + + 3. En utilisant la touche Bas, allez à la Leçon 1.1.2. + +NOTE : Si jamais vous doutez de ce que vous venez de taper, appuyez <Échap> + pour revenir en mode Normal. Puis retapez la commande que vous vouliez. + +NOTE : Les touches fléchées devraient également fonctionner. Mais en utilisant + hjkl vous pourrez vous déplacer beaucoup plus rapidement, une fois que + vous aurez pris l'habitude. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.2 : SORTIR DE VIM + + + !! NOTE : Avant d'effectuer les étapes ci-dessous, lisez toute cette leçon !! + + 1. Appuyez la touche <Échap> (pour être sûr d'être en mode Normal). + + 2. Tapez : :q! + Ceci quitte l'éditeur SANS enregistrer les changements que vous avez + faits. + + 3. Revenez ici en tapant la commande qui vous a mené à ce tutoriel. + Cela pourrait être : vimtutor + + 4. Si vous avez mémorisé ces étapes et êtes confiant, effectuez les étapes + 1 à 3 pour sortir puis rentrer dans l'éditeur. + +NOTE : :q! annule tous les changements que vous avez faits. Dans + quelques leçons, vous apprendrez à enregistrer les changements. + + 5. Déplacez le curseur à la Leçon 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.3 : ÉDITION DE TEXTE - EFFACEMENT + + + ** Appuyez x pour effacer le caractère sous le curseur. ** + + 1. Déplacez le curseur sur la ligne marquée ---> ci-dessous. + + 2. Pour corriger les erreurs, déplacez le curseur jusqu'à ce qu'il soit + sur un caractère à effacer. + + 3. Appuyez la touche x pour effacer le caractère redondant. + + 4. Répétez les étapes 2 à 4 jusqu'à ce que la phrase soit correcte. + +---> La vvache a sautéé au-ddessus dde la luune. + + 5. Maintenant que la ligne est correcte, passez à la Leçon 1.1.4. + +NOTE : En avançant dans ce cours, n'essayez pas de mémoriser, apprenez par + la pratique. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.4 : ÉDITION DE TEXTE - INSERTION + + + ** Appuyez i pour insérer du texte. ** + + 1. Déplacez le curseur sur la première ligne marquée ---> ci-dessous. + + 2. Pour rendre la première ligne identique à la seconde, mettez le curseur + sur le premier caractère APRÈS l'endroit où insérer le texte. + + 3. Appuyez i et tapez les caractères qui manquent. + + 4. Une fois qu'une erreur est corrigée, appuyez <Échap> pour revenir en mode + Normal. Répétez les étapes 2 à 4 pour corriger la phrase. + +---> Il mnqe caractères cette . +---> Il manque des caractères dans cette ligne. + + 5. Une fois que vous êtes à l'aise avec l'insertion de texte, allez à la + Leçon 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.5 : ÉDITION DE TEXTE - AJOUTER + + + ** Appuyez A pour ajouter du texte. ** + + 1. Déplacez le curseur sur la première ligne ci-dessous marquée --->. + Peu importe sur quel caractère se trouve le curseur sur cette ligne. + + 2. Appuyez A et tapez les ajouts nécessaires. + + 3. Quand le texte a été ajouté, appuyez <Échap> pour revenir en mode + Normal. + + 4. Déplacez le curseur sur la seconde ligne marquée ---> et répétez les + étapes 2 et 3 pour corriger la phrase. + +---> Il manque du texte à partir de cet + Il manque du texte à partir de cette ligne. +---> Il manque aussi du te + Il manque aussi du texte ici. + + 5. Quand vous vous sentez suffisamment à l'aise pour ajouter du texte, + allez à la Leçon 1.1.6. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.1.6 : ÉDITER UN FICHIER + + + ** Utilisez :wq pour enregistrer un fichier et sortir. ** + +!! NOTE : Lisez toute la leçon avant d'exécuter les instructions ci-dessous !! + + 1. Sortez de ce tutoriel comme vous l'avez fait dans la Leçon 1.1.2 : :q! + Ou, si vous avez accès à un autre terminal, exécutez-y les actions + qui suivent. + + 2. À l'invite du shell, tapez cette commande : vim tutor + 'vim' est la commande pour démarrer l'éditeur Vim, 'tutor' est le + nom du fichier que vous souhaitez éditer. Utilisez un fichier qui peut + être modifié. + + 3. Insérez et effacez du texte comme vous l'avez appris dans les leçons + précédentes. + + 4. Enregistrez le fichier avec les changements et sortez de Vim avec : + :wq + + 5. Si vous avez quitté vimtutor à l'étape 1, recommencez vimtutor et + déplacez-vous en bas vers le résumé suivant. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.1 + + + 1. Le curseur se déplace avec les touches fléchées ou les touches hjkl. + h (gauche) j (bas) k (haut) l (droite) + + 2. Pour démarrer Vim à l'invite du shell tapez : vim FICHIER + + 3. Pour quitter Vim tapez : <Échap> :q! pour perdre tous les + changements. + OU tapez : <Échap> :wq pour enregistrer les + changements. + + 4. Pour effacer un caractère sous le curseur tapez : x + + 5. Pour insérer ou ajouter du texte tapez : + i tapez le texte à insérer avant le curseur <Échap> + A tapez le texte à ajouter en fin de ligne <Échap> + +NOTE : Appuyer <Échap> vous place en mode Normal ou annule une commande + partiellement tapée dont vous ne voulez plus. + +Passez maintenant à la leçon 2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.1 : COMMANDES D'EFFACEMENT + + + ** Tapez dw pour effacer un mot. ** + + 1. Appuyez <Échap> pour être sûr d'être en mode Normal. + + 2. Déplacez le curseur sur la ligne marquée ---> ci-dessous. + + 3. Placez le curseur sur le début d'un mot qui a besoin d'être effacé. + + 4. Tapez dw pour faire disparaître ce mot. + +NOTE : La lettre d apparaîtra sur la dernière ligne de l'écran lors de + votre frappe. Vim attend que vous tapiez w . Si vous voyez un autre + caractère que d vous avez tapé autre chose ; appuyez <Échap> et + recommencez. + +---> Il y a quelques drôle mots qui n'ont rien à faire papier sur cette ligne. + + 5. Répétez les étapes 3 et 4 jusqu'à ce que la phrase soit correcte et allez + à la Leçon 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.2 : PLUS DE COMMANDES D'EFFACEMENTS + + + ** Tapez d$ pour effacer jusqu'à la fin de la ligne. ** + + 1. Appuyez <Échap> pour être sûr d'être en mode Normal. + + 2. Déplacez le curseur sur la ligne marquée ---> ci-dessous. + + 3. Déplacez le curseur jusqu'à la fin de la ligne correcte (APRÈS le + premier . ). + + 4. Tapez d$ pour effacer jusqu'à la fin de la ligne. + +---> Quelqu'un a tapé la fin de cette ligne deux fois. cette ligne deux fois. + + 5. Allez à la Leçon 1.2.3 pour comprendre ce qui se passe. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.3 : À PROPOS DES OPÉRATEURS ET DES MOUVEMENTS + + + Plusieurs commandes qui changent le texte sont constituées d'un opérateur + et d'un mouvement. Le format pour une commande d'effacement avec l'opérateur + d d'effacement est le suivant : + + d mouvement + + Où : + d - est l'opérateur d'effacement + mouvement - est le mouvement sur lequel agit l'opérateur (listés + ci-dessous) + + Une courte liste de mouvements : + w - jusqu'au début du prochain mot, en EXCLUANT son premier caractère. + e - jusqu'à la fin du mot courant, en EXCLUANT son dernier caractère. + $ - jusqu'à la fin de la ligne, en INCLUANT son dernier caractère. + + Ainsi, taper de va effacer depuis le curseur jusqu'à la fin du mot. + +NOTE : Le seul appui d'un mouvement en mode Normal, sans commande, déplace le + curseur comme indiqué. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.4 : UTILISER UN QUANTIFICATEUR AVEC UN MOUVEMENT + + + ** Taper un nombre avant un mouvement le répète autant de fois. ** + + 1. Déplacez le curseur au début de la ligne marquée ---> ci-dessous. + + 2. Tapez 2w pour déplacer le curseur de 2 mots vers l'avant. + + 3. Tapez 3e pour déplacer le curseur à la fin du troisième mot vers + l'avant. + + 4. Tapez 0 (zéro) pour déplacer au début de la ligne. + + 5. Répétez les étapes 2 et 3 avec des quantificateurs différents. + +---> Ceci est juste une ligne avec des mots où vous pouvez vous déplacer. + + 6. Déplacez-vous à la Leçon 1.2.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.5 : UTILISER UN QUANTIFICATEUR POUR EFFACER PLUS + + + ** Taper un nombre avec un opérateur le répète autant de fois. ** + + Outre la combinaison de l'opérateur d'effacement avec un déplacement + mentionné ci-dessus, vous pouvez insérer un nombre (quantificateur) + pour effacer encore plus : + d nombre déplacement + + 1. Déplacez le curseur vers le premier mot en MAJUSCULES dans la ligne + marquée --->. + + 2. Tapez d2w pour effacer les deux mots en MAJUSCULES. + + 3. Répétez les étapes 1 et 2 avec des quantificateurs différents pour + effacer les mots suivants en MAJUSCULES à l'aide d'une commande. + +---> Cette ABC DE ligne FGHI JK LMN OP de mots est Q RS TUV nettoyée. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.6 : OPÉREZ SUR DES LIGNES + + + ** Tapez dd pour effacer une ligne complète. ** + + Vu le nombre de fois où l'on efface des lignes complètes, les concepteurs + de Vi ont décidé qu'il serait plus facile de taper simplement deux d + pour effacer une ligne. + + 1. Placez le curseur sur la seconde ligne de la phrase ci-dessous. + 2. Tapez dd pour effacer la ligne. + 3. Maintenant allez à la quatrième ligne. + 4. Tapez 2dd pour effacer deux lignes. + +---> 1) Les roses sont rouges, +---> 2) La boue c'est drôle, +---> 3) Les violettes sont bleues, +---> 4) J'ai une voiture, +---> 5) Les horloges donnent l'heure, +---> 6) Le sucre est doux +---> 7) Tout comme vous. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.2.7 : L'ANNULATION + + + ** Tapez u pour annuler les dernières commandes. ** + ** Tapez U pour récupérer toute une ligne. ** + + 1. Déplacez le curseur sur la ligne marquée ---> ci-dessous et placez-le sur + la première erreur. + 2. Tapez x pour effacer le premier caractère redondant. + 3. Puis tapez u pour annuler la dernière commande exécutée. + 4. Cette fois, corrigez toutes les erreurs de la ligne avec la commande x . + 5. Puis tapez un U majuscule pour remettre la ligne dans son état initial. + 6. Puis tapez u deux-trois fois pour annuler le U et les commandes + précédentes. + 7. Maintenant tapez CTRL-R (maintenez la touche CTRL enfoncée pendant que + vous appuyez R) deux-trois fois pour refaire les commandes (annuler + les annulations). + +---> Coorrigez les erreurs suur ccette ligne et reemettez-les avvec 'annuler'. + + 8. Ce sont des commandes très utiles. Maintenant, allez au résumé de la + Leçon 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.2 + + + 1. Pour effacer du curseur jusqu'au mot suivant tapez : dw + + 2. Pour effacer du curseur jusqu'à la fin d'une ligne tapez : d$ + + 3. Pour effacer toute une ligne tapez : dd + + 4. Pour répéter un déplacement ajoutez un quantificateur : 2w + + 5. Le format d'une commande de changement est : + + opérateur [nombre] déplacement + + Où : + opérateur - est ce qu'il faut faire, comme d pour effacer. + [nombre] - un quantificateur optionnel pour répéter le déplacement. + déplacement - déplace le long du texte à opérer, tel que w (mot), + $ (jusqu'à la fin de ligne), etc. + + 6. Pour se déplacer au début de ligne, utilisez un zéro : 0 + + 5. Pour annuler des actions précédentes, tapez : u (u minuscule) + Pour annuler tous les changements sur une ligne tapez : U (U majuscule) + Pour annuler l'annulation tapez : CTRL-R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.3.1 : LE COLLAGE + + + ** Tapez p pour placer après le curseur ce qui vient d'être effacé. ** + + 1. Placez le curseur sur la première ligne ci-dessous marquée --->. + + 2. Tapez dd pour effacer la ligne et la placer dans un registre de Vim. + + 3. Déplacez le curseur sur la ligne c) au-dessus où vous voulez remettre la + ligne effacée. + + 4. En mode Normal, tapez p pour remettre la ligne en dessous du curseur. + + 5. Répétez les étapes 2 à 4 pour mettre toutes les lignes dans le bon ordre. + +---> d) Et vous, qu'apprenez-vous ? +---> b) Les violettes sont bleues, +---> c) L'intelligence s'apprend, +---> a) Les roses sont rouges, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.3.2 : LA COMMANDE DE REMPLACEMENT + + + ** Tapez rx pour remplacer un caractère sous le curseur par x . ** + + 1. Déplacez le curseur sur la première ligne marquée ---> ci-dessous. + + 2. Placez le curseur de manière à ce qu'il surplombe la première erreur. + + 3. Tapez r suivi du caractère qui doit corriger l'erreur. + + 4. Répétez les étapes 2 et 3 jusqu'à ce que la première ligne soit égale + à la seconde. + +---> Quand cette ligne a été sauvie, quelqu'un a lait des faunes de frappe ! +---> Quand cette ligne a été saisie, quelqu'un a fait des fautes de frappe ! + + 5. Maintenant, allez à la Leçon 1.3.3. + +NOTE : N'oubliez pas que vous devriez apprendre par la pratique, pas par + mémorisation. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.3.3 : L'OPÉRATEUR DE CHANGEMENT + + + ** Pour changer jusqu'à la fin d'un mot, tapez ce .** + + 1. Déplacez le curseur sur la première ligne marquée ---> ci-dessous. + + 2. Placez le curseur sur le u de luhko. + + 3. Tapez ce et corrigez le mot (dans notre cas, tapez 'igne'.) + + 4. Appuyez <Échap> et placez-vous sur le prochain caractère qui doit + être changé. + + 5. Répétez les étapes 3 et 4 jusqu'à ce que la première phrase soit + identique à la seconde. + +---> Cette luhko contient quelques myqa qui ont ricne d'être chantufip. +---> Cette ligne contient quelques mots qui ont besoin d'être changés. + +Notez que ce efface le mot et vous place ensuite en mode Insertion. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.3.4 : PLUS DE CHANGEMENTS AVEC c + + + ** L'opérateur de changement fonctionne avec les mêmes déplacements + que l'effacement. ** + + 1. L'opérateur de changement fonctionne de la même manière que + l'effacement. Le format est : + + c [nombre] déplacement + + 2. Les déplacements sont identiques : w (mot) et $ (fin de ligne). + + 3. Déplacez-vous sur la première ligne marquée ---> ci-dessous. + + 4. Placez le curseur sur la première erreur. + + 5. Tapez c$ et tapez le reste de la ligne afin qu'elle soit identique + à la seconde ligne, puis tapez <Échap>. + +---> La fin de cette ligne doit être rendue identique à la seconde. +---> La fin de cette ligne doit être corrigée avec la commande c$ . + +NOTE : Vous pouvez utiliser la touche Retour Arrière pour corriger les + erreurs lorsque vous tapez. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.3 + + + 1. Pour remettre le texte qui a déjà été effacé, tapez p . Cela Place le + texte effacé APRÈS le curseur (si une ligne complète a été effacée, elle + sera placée sous la ligne du curseur). + + 2. Pour remplacer le caractère sous le curseur, tapez r suivi du caractère + qui remplacera l'original. + + 3. L'opérateur de changement vous permet de changer depuis la position du + curseur jusqu'où le déplacement vous amène. Par exemple, tapez ce + pour changer du curseur jusqu'à la fin du mot, c$ pour changer jusqu'à + la fin d'une ligne. + + 4. Le format pour le changement est : + + c [nombre] déplacement + +Passez maintenant à la leçon suivante. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.4.1 : POSITION DU CURSEUR ET ÉTAT DU FICHIER + + + ** Tapez CTRL-G pour afficher votre position dans le fichier et son état. + Tapez G pour vous rendre à une ligne donnée du fichier. ** + +NOTE : Lisez toute cette leçon avant d'effectuer l'une des étapes !! + + 1. Maintenez enfoncée la touche CTRL et appuyez sur g . On appelle cela + CTRL-G. Une ligne d'état va apparaître en bas de l'écran avec le nom + du fichier et le numéro de la ligne où vous êtes. Notez ce numéro, il + servira lors de l'étape 3. + +NOTE : Vous pouvez peut-être voir le curseur en bas à droite de l'écran. + Ceci arrive quand l'option 'ruler' est activée (voir :help 'ruler') + + 2. Tapez G pour vous déplacer à la fin du fichier. + Tapez gg pour vous déplacer au début du fichier. + + 3. Tapez le numéro de la ligne où vous étiez suivi de G . Cela vous + ramènera à la ligne où vous étiez au départ quand vous aviez appuyé + CTRL-G. + + 4. Si vous vous sentez prêt à faire ceci, effectuez les étapes 1 à 3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.4.2 : LA RECHERCHE + + + ** Tapez / suivi d'un texte pour rechercher ce texte. ** + + 1. Tapez le caractère / en mode Normal. Notez que celui-ci et le curseur + apparaissent en bas de l'écran, comme lorsque l'on utilise : . + + 2. Puis tapez 'errreuur' . C'est le mot que vous voulez rechercher. + + 3. Pour rechercher à nouveau le même texte, tapez simplement n . + Pour rechercher le même texte dans la direction opposée, tapez N . + + 4. Pour rechercher une phrase dans la direction opposée, utilisez ? + au lieu de / . + +---> erreur ne s'écrit pas "errreuur" ; errreuur est une erreur. + +NOTE : Quand la recherche atteint la fin du fichier, elle reprend au début + sauf si l'option 'wrapscan' est désactivée. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.4.3 : RECHERCHE DES PARENTHÈSES CORRESPONDANTES + + + ** Tapez % pour trouver des ), ] ou } correspondants. ** + + 1. Placez le curseur sur l'un des (, [ ou { de la ligne marquée ---> + ci-dessous. + + 2. Puis tapez le caractère % . + + 3. Le curseur se déplacera sur la parenthèse ou crochet correspondant. + + 4. Tapez % pour replacer le curseur sur la parenthèse ou crochet + correspondant. + + 5. Déplacez le curseur sur un autre (,),[,],{ ou } et regardez ce que + fait % . + +---> Voici ( une ligne de test contenant des (, des [ ] et des { } )). + +NOTE : Cette fonctionnalité est très utile lors du débogage d'un programme qui + contient des parenthèses déséquilibrées ! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.4.4 : LA COMMANDE DE SUBSTITUTION + + + ** Tapez :s/ancien/nouveau/g pour remplacer 'ancien' par 'nouveau'. ** + + 1. Déplacez le curseur sur la ligne marquée ---> ci-dessous. + + 2. Tapez :s/lee/le . Notez que cette commande change seulement la + première occurrence de "lee" dans la ligne. + + 3. Puis tapez :s/lee/le/g . L'ajout du drapeau g ordonne de faire une + substitution globale sur la ligne, et change toutes les occurrences de + "lee" sur la ligne. + +---> lee meilleur moment pour regarder lees fleurs est pendant lee printemps. + + 4. Pour changer toutes les occurrences d'un texte, entre deux lignes, + tapez :#,#s/ancien/nouveau/g où #,# sont les numéros de lignes de la + plage où la substitution doit être faite. + Tapez :%s/ancien/nouveau/g pour changer toutes les occurrences dans + tout le fichier. + Tapez :%s/ancien/nouveau/gc pour trouver toutes les occurrences dans + tout le fichier avec une invite pour + confirmer ou infirmer chaque substitution. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.4 + + + 1. CTRL-G affiche la position dans le fichier et l'état de celui-ci. + G déplace à la fin du fichier. + nombre G déplace au numéro de ligne. + gg déplace à la première ligne. + + 2. Taper / suivi d'un texte recherche ce texte vers l'AVANT. + Taper ? suivi d'un texte recherche ce texte vers l'ARRIÈRE. + Après une recherche tapez n pour trouver l'occurrence suivante dans la + même direction ou Maj-N pour rechercher dans la direction opposée. + + 3. Taper % lorsque le curseur est sur (, ), [, ], { ou } déplace + celui-ci sur le caractère correspondant. + + 4. Pour remplacer le premier aa par bb sur une ligne tapez :s/aa/bb + Pour remplacer tous les aa par bb sur une ligne tapez :s/aa/bb/g + Pour remplacer du texte entre deux numéros de ligne tapez :#,#s/aa/bb/g + Pour remplacer toutes les occurrences dans le fichier tapez :%s/aa/bb/g + Pour demander une confirmation à chaque fois ajoutez 'c' :%s/aa/bb/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.5.1 : COMMENT EXÉCUTER UNE COMMANDE EXTERNE + + + ** Tapez :! suivi d'une commande externe pour exécuter cette commande. ** + + 1. Tapez le : familier pour mettre le curseur en bas de l'écran. Cela vous + permet de saisir une commande. + + 2. Puis tapez un ! (point d'exclamation). Cela vous permet d'exécuter + n'importe quelle commande valide pour votre interpréteur (shell). + + 3. Par exemple, tapez ls après le ! et appuyez . Ceci affichera + la liste des fichiers du répertoire courant, comme si vous aviez tapé la + commande à l'invite du shell. Utilisez :!dir si :!ls ne marche pas. + +NOTE : Il est possible d'exécuter n'importe quelle commande externe de cette + manière, avec ou sans argument. + +NOTE : Toutes les commandes : doivent finir par la frappe de . + À partir de maintenant, nous ne le mentionnerons plus. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.5.2 : PLUS DE DÉTAILS SUR L'ENREGISTREMENT DE FICHIERS + + + ** Pour enregistrer les changements faits au texte, tapez :w FICHIER . ** + + 1. Tapez :!dir ou :!ls pour avoir la liste des fichiers dans le + répertoire courant. Vous savez déjà qu'il faut appuyer après + cela. + + 2. Choisissez un nom de fichier qui n'existe pas encore, par exemple TEST. + + 3. Puis tapez :w TEST (où TEST est le nom que vous avez choisi). + + 4. Cela enregistre tout le fichier (Tutoriel Vim) sous le nom TEST. + Pour le vérifier, tapez :!dir ou :!ls de nouveau pour revisualiser + votre répertoire. + +NOTE : Si vous quittez Vim et le redémarrez de nouveau avec le fichier TEST, + celui-ci sera une copie exacte de ce cours au moment où vous l'avez + enregistré. + + 5. Maintenant, effacez le fichier en tapant (Windows) : :!del TEST + ou (Unix) : :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.5.3 : SÉLECTION DU TEXTE À ENREGISTRER + + + ** Pour enregistrer une portion du fichier, + tapez : v déplacement :w FICHIER ** + + 1. Déplacez le curseur sur cette ligne. + + 2. Appuyez v et déplacez le curseur vers la cinquième ligne plus bas. + Remarquez que le texte est en surbrillance. + + 3. Appuyez : . En bas de l'écran :'<,'> va apparaître. + + 4. Tapez w TEST , où TEST est un nom de fichier qui n'existe pas. + Vérifiez que vous voyez :'<,'>w TEST avant d'appuyer sur . + + 5. Vim va enregistrer les lignes sélectionnées dans le fichier TEST. + Utilisez :!dir ou :!ls pour le voir. Ne l'effacez pas encore ! + Nous allons l'utiliser dans la leçon suivante. + +NOTE : L'appui de v démarre la sélection Visuelle. Vous pouvez déplacer le + curseur pour agrandir ou rétrécir la sélection. Puis vous pouvez + utiliser un opérateur pour faire quelque chose sur le texte. Par + exemple, d efface le texte. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.5.4 : RÉCUPÉRATION ET FUSION DE FICHIERS + + + ** Pour insérer le contenu d'un fichier, tapez :r FICHIER ** + + 1. Placez le curseur juste au-dessus de cette ligne. + +NOTE : Après avoir exécuté l'étape 2 vous verrez du texte de la Leçon 1.5.3. + Puis déplacez-vous vers le bas pour voir cette leçon à nouveau. + + 2. Maintenant récupérez votre fichier TEST en utilisant la commande :r TEST + où TEST est le nom de votre fichier. + Le fichier que vous récupérez est placé au-dessous de la ligne du curseur. + + 3. Pour vérifier que le fichier a bien été inséré, remontez et vérifiez + qu'il y a maintenant deux copies de la Leçon 1.5.3, l'originale et celle + contenue dans le fichier. + +NOTE : Vous pouvez aussi lire la sortie d'une commande externe. Par exemple, + :r !ls lit la sortie de la commande ls et la place sous la ligne du + curseur. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.5 + + + 1. :!commande exécute une commande externe. + + Quelques exemples pratiques : + (Windows) (Unix) + :!dir :!ls affiche le contenu du répertoire courant. + :!del FICHIER :!rm FICHIER efface FICHIER. + + 2. :w FICHIER enregistre le fichier Vim courant sur le disque avec pour + nom FICHIER. + + 3. v déplacement :w FICHIER sauvegarde les lignes de la sélection Visuelle + dans le fichier FICHIER. + + 4. :r FICHIER récupère le contenu du fichier FICHIER et l'insère sous la + position du curseur. + + 5. :r !dir lit la sortie de la commande dir et l'insère sous la position + du curseur. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.6.1 : LA COMMANDE D'OUVERTURE + + +** Tapez o pour ouvrir une ligne sous le curseur et y aller en Insertion. ** + + 1. Déplacez le curseur sur la ligne marquée ---> ci-dessous. + + 2. Tapez la lettre o minuscule pour ouvrir une ligne SOUS le curseur et + vous y placer en mode Insertion. + + 3. Puis tapez du texte et appuyez <Échap> pour sortir du mode Insertion. + +---> En tapant o le curseur se met sur la ligne ouverte, en mode Insertion. + + 4. Pour ouvrir une ligne au-DESSUS du curseur, tapez simplement un O + majuscule, plutôt qu'un o minuscule. Faites un essai sur la ligne + ci-dessous. + +---> Ouvrez une ligne ci-dessus en tapant O lorsque le curseur est ici. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.6.2 : LA COMMANDE D'AJOUT + + + ** Tapez a pour insérer du texte APRÈS le curseur. ** + + 1. Placez le curseur au début de la ligne marquée ---> ci-dessous. + + 2. Appuyez e jusqu'à ce que le curseur soit sur la fin de li . + + 3. Appuyez a (minuscule) pour ajouter du texte APRÈS le curseur. + + 4. Complétez le mot comme dans la ligne dessous. Appuyez <Échap> pour + sortir du mode Insertion. + + 5. Utilisez e pour vous déplacer vers le mot incomplet suivant et + répétez les étapes 3 et 4. + +---> Cette li vous perm de pratiq l'ajout de t dans une ligne. +---> Cette ligne vous permet de pratiquer l'ajout de texte dans une ligne. + +NOTE : a, i, A vont tous dans le même mode Insertion, la seule différence + est l'endroit où les caractères sont insérés. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.6.3 : UNE AUTRE MANIÈRE DE REMPLACER + + + ** Tapez un R majuscule pour remplacer plus d'un caractère. ** + + 1. Déplacez le curseur sur la première ligne marquée ---> ci-dessous. + Déplacez le curseur sur le début du premier xxx . + + 2. Appuyez maintenant R et tapez le nombre dessous dans la deuxième ligne, + de manière à remplacer le xxx . + + 3. Appuyez <Échap> pour quitter le mode Remplacement. Notez que le reste de + la ligne demeure inchangé. + + 4. Répétez les étapes pour remplacer les xxx restants. + + +---> L'ajout de 123 à xxx donne xxx. +---> L'ajout de 123 à 456 donne 579. + +NOTE : Le mode Remplacement est comme le mode Insertion, mais tous les + caractères tapés effacent un caractère existant. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.6.4 : COPIER ET COLLER DU TEXTE + + + ** Utilisez l'opérateur y pour copier du texte et p pour le coller ** + + 1. Allez à la ligne marquée ---> ci-dessous et placez le curseur après "a)". + + 2. Démarrez le mode Visuel avec v et déplacez le curseur juste devant + "premier". + + 3. Tapez y pour copier le texte en surbrillance. + + 4. Déplacez le curseur à la fin de la ligne suivante : j$ + + 5. Tapez p pour coller le texte. Puis tapez : un second <Échap> . + + 6. Utilisez le mode Visuel pour sélectionner "élément", copiez-le avec y , + déplacez-vous à la fin de la ligne suivante avec j$ et collez le texte + à cet endroit avec p . + +---> a) ceci est le premier élément. + b) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.6.5 : RÉGLAGE DES OPTIONS + + + ** Réglons une option afin que la recherche et la substitution ignorent la + casse des caractères. ** + + 1. Recherchez 'ignore' en tapant : /ignore + Répétez ceci plusieurs fois en utilisant la touche n . + + 2. Activez l'option 'ic' (ignorer casse) en tapant :set ic . + + 3. Puis cherchez 'ignore' de nouveau en utilisant n . + Remarquez que Ignore et IGNORE sont maintenant aussi trouvés. + + 4. Activez les options 'hlsearch' et 'incsearch' avec :set hls is . + + 5. Puis recommencez une recherche, et faites bien attention à ce qui se + produit : /ignore + + 6. Pour désactiver 'ignorer casse', entrez : :set noic + +NOTE : Pour enlever la surbrillance des résultats, entrez : :nohlsearch + +NOTE : Si vous voulez ignorer la casse uniquement pour une recherche, utilisez + \c dans la phrase : /ignore\c + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.6 + + + 1. Taper o ouvre une ligne SOUS le curseur et démarre le mode Insertion. + Taper O ouvre une ligne au-DESSUS du curseur. + + 2. Taper a pour insérer du texte APRÈS le curseur. + Taper A pour insérer du texte après la fin de ligne. + + 3. Taper e déplace à la fin du mot. + + 4. Taper y copie du texte, p le colle. + + 5. Taper R majuscule active le mode Remplacement jusqu'à ce qu' <Échap> + soit appuyé. + + 6. Taper ":set xxx" active l'option "xxx". Quelques options sont : + 'ic' 'ignorecase' pour ignorer la casse lors des recherches. + 'is' 'incsearch' pour montrer les appariements partiels. + 'hls' 'hlsearch' pour mettre en surbrillance les appariements. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 1.7.1 : OBTENIR DE L'AIDE + + + ** Utiliser le système d'aide en ligne. ** + + Vim a un système complet d'aide en ligne. Pour y accéder, essayez l'une de + ces trois méthodes : + - appuyez la touche (si vous en avez une) + - appuyez la touche (si vous en avez une) + - tapez :help + + + Lisez le texte dans la fenêtre d'aide pour savoir comment fonctionne l'aide. + Tapez CTRL-W CTRL-W pour sauter d'une fenêtre à l'autre. + Tapez :q pour fermer la fenêtre d'aide. + + Vous pouvez accéder à l'aide sur à peu près n'importe quel sujet en donnant + des arguments à la commande :help . Essayez par exemple (n'oubliez pas + d'appuyer sur ) : + + :help w + :help c_CTRL-D + :help c_ ** + + 1. Mettez Vim soit en mode non compatible : set nocp + + 2. Regardez quels fichiers existent dans le répertoire : !ls ou !dir + + 3. Tapez le début d'une commande : :e + + 4. Appuyez CTRL-D et Vim affichera une liste de commandes qui commencent + par "e". + + 5. Appuyez d et Vim complétera le nom de la commande : ":edit" + + 6. Ajoutez maintenant un espace et le début d'un fichier existant : + :edit FIC + + 7 Appuyez . Vim va compléter le nom (s'il est unique). + +NOTE : Le complètement fonctionne pour de nombreuses commandes. Essayez + d'appuyer CTRL-D et . C'est utile en particulier pour :help . + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RÉSUMÉ DE LA LEÇON 1.7 + + + 1. Tapez :help ou appuyez ou pour ouvrir la fenêtre d'aide. + + 2. Tapez :help cmd pour trouver l'aide sur cmd . + + 3. Tapez CTRL-W CTRL-W pour sauter à une autre fenêtre. + + 4. Tapez :q pour fermer la fenêtre d'aide. + + 5. Créez un script de démarrage vimrc pour conserver vos réglages préférés. + + 6. Quand vous tapez une commande : appuyez CTRL-D pour voir les + complètements possibles. Appuyez pour utiliser un complètement. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Voilà, c'est la fin du chapitre 1 de ce tutoriel. Vous pouvez maintenant + passer au chapitre 2. + + Le but était de vous donner un bref aperçu de l'éditeur Vim, juste assez pour + vous permettre d'utiliser l'éditeur relativement facilement. + Il est loin d'être complet, vu que Vim a beaucoup plus de commandes. + Un Manuel de l'utilisateur est disponible en anglais : + :help user-manual + + Pour continuer à découvrir et à apprendre Vim, il existe un livre traduit en + français. Il parle plus de Vi que de Vim, mais pourra vous être utile. + L'éditeur Vi - Collection Précis et concis - par Arnold Robbins + Éditeur : O'Reilly France + ISBN : 2-84177-102-4 + + Deux livres en anglais sont également mentionnés dans la version originale + de ce tutoriel, dont un qui traite spécifiquement de Vim. Merci de vous y + référer si vous êtes intéressés. + + Ce tutoriel a été écrit par Michael C. Pierce et Robert K. Ware de l'École + des Mines du Colorado et reprend des idées fournies par Charles Smith, + Université d'État du Colorado. E-mail : bware@mines.colorado.edu. + + Modifié pour Vim par Bram Moolenaar. + Traduit en français par Adrien Beau, en avril 2001. + Dernières mises à jour par Dominique Pellé. + + E-mail : dominique.pelle@gmail.com + Last Change : 2018 Dec 2 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.gl b/git/usr/share/vim/vim92/tutor/tutor1.gl new file mode 100644 index 0000000000000000000000000000000000000000..1828289e51a7d5a9f3a2443d5be7bb1fe95d39f7 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.gl @@ -0,0 +1,1049 @@ + +=============================================================================== += B e n v i d o a o t u t o r d o V I M - Versión 1.7 = +=============================================================================== + + + Vim é un editor moi potente que dispón de moitos comandos, demasiados + para ser explicados nun tutor coma este. Este tutor está deseñado + para describir comandos dabondo para que vostede sexa capaz de + aprender fácilmente a usa-lo Vim como un editor de propósito xeral. + + O tempo necesario para completa-lo tutor é aproximadamente de 30 + minutos, dependendo de canto tempo se adique á experimentación. + + Os comandos destas leccións modificarán o texto. Faga unha copia deste + ficheiro para practicar (con «vimtutor», isto xa é unha copia). + + É importante lembrar que este tutor está pensado para ensinar coa + práctica. Isto significa que cómpre executa-los comandos para + aprendelos axeitadamente. Se únicamente le o texto, esqueceránselle + os comandos! + + Agora, asegúrese de que a tecla de bloqueo de maiúsculas NON está + activada e prema a tecla j para move-lo cursor, de xeito que o texto + da Lección 1.1.1 abranga completamente a pantalla. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.1: MOVE-LO CURSOR + + + ** Para move-lo cursor, prema as teclas h,j,k,l do xeito indicado. ** + ^ + k Indicación: A tecla h está á esquerda, e móveo á esquerda. + < h l > A tecla l está á dereita, e móveo á dereita. + j A tecla j semella unha frecha e apunta + v cara a embaixo. + + 1. Mova o cursor pola pantalla ata que sinta comodidade facendo a acción. + + 2. Manteña premida a tecla j ata que se repita automáticamente. + Agora xa sabe como chegar á lección seguinte. + + 3. Utilizando a tecla abaixo, vaia á lección 1.1.2. + +NOTA: Se alguna vez non está seguro sobre algo que tecleara, prema + para situarse no modo Normal. Logo, volva a teclear a orde que desexaba. + +NOTA: As teclas de movemento do cursor tamén funcionan. Pero usando hjkl + poderá moverse moito máis rápido unha vez que se acostume. + De verdade! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.2: SAÍR DO VIM + + +NOTA: Antes de executar algún dos seguintes pasos, lea primeiro a lección + enteira!! + + 1. Prema a tecla (para asegurarse de que está no modo Normal). + + 2. Escriba: :q! + Isto provoca a saída do editor REXEITANDO calquer cambio que fora feito. + + 3. Regrese eiquí executando o comando que o trouxo a este tutor. + Este puido ser: vimtutor + + 4. Se memorizou estes pasos, e se sinte con confianza, execute os + pasos do 1 ao 3 para saír e volver a entrar ao editor. + +NOTA: :q! descarta cualquer cambio que realizara. + En próximas leccións, aprenderá como garda-los cambios nun arquivo. + + 5. Mova o cursor ata a Lección 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.3: EDITAR TEXTO - BORRAR + + + ** Prema x para elimina-lo carácter baixo o cursor. ** + + 1. Mova o cursor á liña de embaixo sinalada con --->. + + 2. Para corrixi-los erros, mova o cursor ata que estea sobre o + carácter que vai ser borrado. + + 3. Prema a tecla x para elimina-lo carácter non desexado. + + 4. Repita os pasos 2 a 4 ata que a frase sexa a correcta. + +---> A vvaca saltooooou soobree aa lúúúúúúúa. + + 5. Agora que a liña está correcta, continúe coa Lección 1.1.4. + +NOTA: A medida que vaia avanzando neste tutor, non tente memorizar, + aprenda practicando. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.4: EDITAR TEXTO - INSERIR + + + ** Prema i para inserir texto. ** + + 1. Mova o cursor á primeira liña de embaixo sinalada con --->. + + 2. Para facer que a primeira liña sexa igual ca segunda, mova o cursor + ata que estea sobre o carácter ANTES do texto que vai ser inserido. + + 3. Prema i e escriba os carácteres a engadir. + + 4. A medida que sexa corrixido cada erro, prema para volver ao modo + Normal. Repita os pasos 2 a 4 para corrixi-la frase. + +---> Flta texto nesta . +---> Falta algo de texto nesta liña. + + 5. Cuando se sinta con comodidade inserindo texto, pase á lección 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.5: EDITAR TEXTO - ENGADIR + + + ** Prema A para engadir texto. ** + + 1. Mova o cursor á primeira liña inferior marcada con --->. + Non importa sobre qué carácter estea o cursor nesta liña. + + 2. Prema A e escriba o texto necesario. + + 3. Cuando o texto estea engadido, prema para volver ao modo Normal. + + 4. Mova o cursor á segunda liña marcada con ---> e repita os pasos 2 e 3 + para corrixir esta frase. + +---> Falta algún texto nes + Falta algún texto nesta liña. +---> Tamén falta alg + Tamén falta algún texto eiquí. + + 5. Cuando se sinta con comodidade engadindo texto, pase á lección 1.1.6. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.1.6: EDITAR UN ARQUIVO + + + ** Use :wq para gardar un arquivo e saír ** + +NOTA: Antes de executar os seguintes pasos, lea a lección enteira!! + + 1. Se ten acceso a outra terminal, faga os seguintes puntos nela. + Se non é así, saia deste tutor como fixo na lección 1.1.2: :q! + + 2. No símbolo do sistema escriba este comando: vim arquivo.txt + 'vim' é o comando para arrincar o editor Vim, + 'arquivo.txt' é o nome do arquivo que quere editar. + Utilice o nome dun arquivo que poida cambiar. + + 3. Insira e elimine texto como xa aprendeu nas leccións anteriores. + + 4. Garde o arquivo cos cambios e saia do Vim con: :wq + + 5. Se xa saiu do vimtutor no paso 1, reinicie vimtutor e baixe ata + o seguinte resumo. + + 6. Despois de le-los pasos anteriores e telos entendido: fágaos. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.1 + + + 1. O cursor móvese utilizando as teclas das frechas ou as teclas hjkl. + h (esquerda) j (abaixo) k (arriba) l (dereita) + + 2. Para acceder ao Vim dende o símbolo do sistema escriba: + vim nome_arquivo + + 3. Para saír do Vim escriba: :q! para eliminar tódolos + cambios. + Ou escriba: :wq para garda-los cambios. + + 4. Para borrar un carácter baixo o cursor en modo Normal prema: x . + + 5. Para inserir ou engadir texto escriba: + i escriba o texto a inserir insire o texto antes do cursor + A escriba o texto a engadir engade o texto ao final da liña + +NOTA: Premendo tórnase ao modo Normal ou cancélase unha orde non + desexada ou incompleta. + + Agora continúe coa Lección 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.1: COMANDOS PARA BORRAR + + + ** Escriba dw para borrar unha palabra ** + + 1. Prema para asegurarse de que está no modo Normal. + + 2. Mova o cursor á liña inferior sinalada con --->. + + 3. Mova o cursor ao comezo dunha palabra que desexe borrar. + + 4. Prema dw para facer que a palabra desapareza. + +NOTA: A letra d aparecerá na última liña inferior dereita da pantalla + namentres a escribe. O Vim está esperando que escriba w . + Se ve outro carácter que non sexa d , é que escribiu algo mal. Prema + e comece de novo. + +---> Hai algunhas palabras pásao ben que non pertencen papel a esta frase. + + 5. Repita os pasos 3 e 4 ata que a frase sexa correcta e pase á + lección 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.2: MÁIS COMANDOS PARA BORRAR + + + ** Escriba d$ para borrar ata o final da liña. ** + + 1. Prema para asegurarse de que está no modo Normal. + + 2. Mova o cursor á liña inferior sinalada con --->. + + 3. Mova o cursor ao final da liña correcta (DESPOIS do primeiro . ). + + 4. Escriba d$ para borrar ata o final da liña. + +---> Alguén escribiu o final desta liña dúas veces. esta liña dúas veces. + + Pase á lección 1.2.3 para entender qué está pasando. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.3: SOBRE OPERADORES E MOVEMENTOS + + + Moitos comandos que cambian texto están compostos por un operador e máis + un movemento. + O formato para o comando 'eliminar' co operador de borrado d é o + seguinte: + + d movemento + + Onde: + d - é o operador para borrar. + movemento - é o texto sobre o que o comando vai operar (lista inferior). + + Eiquí, unha lista resumida de movementos: + w - ata o comezo da seguinte palabra, EXCLUÍNDO o seu primero carácter. + e - ata o final da palabra actual, INCLUÍNDO o último carácter. + $ - ata o final da liña, INCLUÍNDO o último carácter. + + Polo tanto, ao escribir de borraráse dende a posición do cursor ata o + final da palabra. + +NOTA: Premendo únicamente o movemento, estando no modo Normal sen un + operador, moveráse o cursor como se especifica na lista anterior. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.4: UTILIZAR UN CONTADOR PARA UN MOVEMENTO + + + ** Ao escribir un número denantes dun movemento, repítise o movemento + o número de veces. ** + + 1. Mova o cursor ao comezo da liña marcada con --->. + + 2. Escriba 2w para mover o cursor dúas palabras cara a adiante. + + 3. Escriba 3e para mover o cursor ao final da terceira palabra cara a + adiante. + + 4. Escriba 0 (cero) para coloca-lo cursor ao inicio da liña. + + 5. Repita os pasos 2 e 3 con diferentes números. + +---> Isto é só unha liña con palabras onde poder moverse. + + Pase á lección 1.2.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.5: UTILIZAR UN CONTADOR PARA BORRAR MÁIS + + + ** Ao escribir un número cun operador, repítese ese número de veces. ** + + En combinación co operador de borrado e o movemento mencionado + anteriormente, engada un contador antes do movemento para eliminar máis: + d número movemento + + 1. Mova o cursor ao inicio da primeira palabra en MAIÚSCULAS na liña + marcada con --->. + + 2. Escriba d2w para elimina-las dúas palabras en MAIÚSCULAS. + + 3. Repita os pasos 1 e 2 con diferentes contadores para elimina-las + seguintes palabras en MAIÚSCULAS cun comando. + +---> Esta ABC DE cadea FGHI JK LMN OP de palabras foi Q RS TUV limpada. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.6: OPERACIÓN EN LIÑAS + + + ** Escriba dd para eliminar unha liña completa. ** + + Debido á frecuencia coa que se elimina unha liña completa, os deseñadores + do Vim decidiron que sería máis sinxelo simplemente escribir dúas letras + d para eliminar unha liña. + + 1. Mova o cursor á segunda liña do párrafo inferior. + + 2. Escriba dd para elimina-la liña. + + 3. Agora, móvase á cuarta liña. + + 4. Escriba 2dd para eliminar dúas liñas á vez. + +---> 1) As rosas son vermellas, +---> 2) o barro é divertido, +---> 3) a violeta é azul, +---> 4) teño un coche, +---> 5) os reloxos dan a hora, +---> 6) o azucere é dóce +---> 7) e ti tamén o es. + + A duplicación para borrar liñas tamén funcionan cos operadores + mencionados anteriormente. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.2.7: O COMANDO DESFACER + + + ** Prema u para desfacer os últimos comandos, + U para desfacer unha liña enteira. ** + + 1. Mova o cursor á liña inferior sinalada con ---> e sitúeo baixo o + primeiro erro. + + 2. Prema x para borra-lo primeiro carácter non desexado. + + 3. Prema agora u para desface-lo último comando executado. + + 4. Agora, corrixa tódolos erros da liña usando o comando x. + + 5. Prema agora U maiúsculo para devolver a liña ao seu estado orixinal. + + 6. Prema agora u unhas poucas veces máis para desface-lo feito por U e + mailos comandos previos. + + 7. Agora, prema CTRL-R (manteña pulsada a tecla CTRL e prema R) unhas + cantas veces para volver a executar os comandos (desface-lo desfeito). + +---> Corrrixa os erros dee esttta liña e vooolva ponelos coon desfacer. + + Estes son uns comandos moi útiles. Agora, vaiamos ao resumo da lección 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.2 + + + 1. Para borrar dende o cursor ata a seguinte palabra prema: dw + 2. Para borrar dende o cursor ata o final da palabra prema: de + 3. Para borrar dende o cursor ata o final dunha liña prema: d$ + 4. Para borrar unha liña enteira prema: dd + 5. Para repetir un movemento, antepoña un número: 2w + 6. O formato para un comando de cambio é: + operador [número] movemento + onde: + comando - é o que hai que facer, por exemplo, d para borrar + [número] - é un número opcional para repetir o movemento + movemento - móvese sobre o texto no que operar, como w (palabra), + $ (ata o final da liña), etc. + + 7. Para moverse ao inicio da liña utilice un cero: 0 + 8. Para desfacer acciones previas prema: u (u minúsculo) + Para desfacer tódolos cambios dunha liña prema: U (U mAIÚSCULO) + Para desface-lo desfeito prema: CTRL-R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.3.1: O COMANDO «PUT» (PÓR) + + + ** Prema p para pór (pegar) despois do cursor o último que borrou. ** + + 1. Mova o cursor á primeira liña inferior marcada con --->. + + 2. Escriba dd para borra-la liña e almacenala nun rexistro do Vim. + + 3. Mova o cursor á liña c) por RIBA de onde debería esta-la liña + eliminada. + + 4. Prema p para pega-la liña borrada por BAIXO do cursor. + + 5. Repita os pasos 2 a 4 para por tódalas liñas na orde correcta. + +---> d) Podes aprendela ti? +---> b) A violeta é azul, +---> c) a intelixencia apréndese, +---> a) as rosas son vermellas. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.3.2: O COMANDO «REPLACE» (TROCAR) + + + ** Prema rx para troca-lo carácter baixo o cursor con x . ** + + 1. Mova o cursor á primeira liña inferior marcada con --->. + + 2. Mova o cursor para situalo sobre o primeiro erro. + + 3. Prema r e despois o carácter que debería ir aí. + + 4. Repita os pasos 2 e 3 ata que a primeira liña sexa igual á segunda. + +---> Cande esti lita fui escrita alguér premeu alginhas teclas equibocadas! +---> Cando esta liña foi escrita alguén premeu algunhas teclas equivocadas! + + 5. Agora pase á lección 1.3.3. + +NOTA: Lembre que debería aprender practicando. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.3.3: O COMANDO CAMBIAR + + + ** Para cambiar ata o final dunha palabra, escriba ce . ** + + 1. Mova o cursor á primeria liña inferior marcada con --->. + + 2. Sitúe o cursor no u de lubrs. + + 3. Escriba ce e corrixa a palabra (neste caso, escriba 'iña'). + + 4. Prema e mova o cursor ao seguinte erro a cambiar. + + 5. Repita os pasos 3 e 4 ata que a primeira frase sexa igual á segunda. + +---> Esta lubrs ten unhas poucas pskavtad que corrixir co comando change. +---> Esta liña ten unhas poucas palabras que corrixir co comando cambiar. + + Teña en conta que ce elimina a palabra e entra no modo Inserir. + cc fai o mesmo para toda a liña. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.3.4: MÁIS CAMBIOS USANDO c + + + ** O operador cambio utilízase cos mesmos movementos que borrar. ** + + 1. O operador cambio funciona do mesmo xeito que borrar. O formato é: + + c [número] movemento + + 2. Os movementos son tamén os mesmos, como w (palabra) ou + $ (fin da liña). + + 3. Mova o cursor á primeira liña inferior sinalada con --->. + + 4. Mova o cursor ao primeiro erro. + + 5. Prema c$ e escriba o resto da liña para que sexa como a segunda, + e prema . + +---> O final desta liña necesita algunha axuda para que sexa como a segunda. +---> O final desta liña necesita ser corrixido usando o comando c$. + +NOTA: Pode utiliza-lo retorno de carro para corrixir erros mentres escribe. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.3 + + + 1. Para volver a pór ou pega-lo texto que acaba de borrarse, + escriba p . Isto pega o texto despois do cursor (se borrou unha + liña, ao pegala, esta situaráse na liña baixo do cursor). + + 2. Para troca-lo carácter baixo do cursor, prema r e logo o + carácter que quere que estea no seu lugar. + + 3. O operador cambio permítelle cambiar dende a posición do cursor + ata onde leve o movemento indicado. Por exemplo, prema ce + para cambiar dende o cursor ata o final da palabra, ou c$ + para cambiar ata o final da liña. + + 4. O formato para cambio é: + + c [número] movemento + + Pase agora á lección seguinte. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.4.1: UBICACIÓN DO CURSOR E ESTADO DO ARQUIVO + + + ** Prema CTRL-G para mostra-la súa situación no ficheiro e mailo estado. + Prema G para moverse a unha determinada liña do fichero. ** + +NOTA: Lea esta lección enteira antes de executar calquera dos pasos!! + + 1. Manteña premida a tecla Ctrl e prema g . Chamamos a isto CTRL-G. + Aparecerá unha mensaxe na parte inferior da páxina co nome do arquivo + e a posición do cursor no arquivo. + Lembre o número de liña para o paso 3. + +NOTA: Seica poida ve-la posición do cursor no recanto inferior da dereita + da pantalla. Isto acontece cando a opción 'ruler' (regra) está + habilitada (consulte :help 'ruler' ) + + 2. Prema G para move-lo cursor ata a parte inferior do arquivo. + Prema gg para move-lo cursor ao inicio do arquivo. + + 3. Escriba o número da liña na que estaba e despois G . Isto + tornaráo á liña na que estaba cuando pulsou CTRL-G. + + 4. Se se atopa con seguridade para poder facer isto, + execute os pasos 1 a 3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.4.2: O COMANDO «SEARCH» (BUSCAR) + + + ** Escriba / seguido dun texto para busca-lo texto. ** + + 1. En modo Normal, prema o carácter / . Fíxese que tanto o carácter / + como o cursor aparecen na derradeira liña da pantalla, o mesmo que + o comando : . + + 2. Escriba agora errroor . Esta é a palabra que quere buscar. + + 3. Para repeti-la busca do mesmo texto outra vez, simplemente prema n . + Para busca-lo mesmo texto na dirección oposta, prema N . + + 4. Se quere buscar un texto na dirección oposta (cara a enriba), + utilice o comando ? en troques de / . + + 5. Para regresar ao lugar de onde procedía, prema CTRL-O (manteña pulsado + Ctrl mentres pulsa a tecla o). Repita o proceso para voltar máis atrás. + CTRL-I vai cara a adiante. + +---> "errroor" non é o xeito correcto de escribir erro; errroor é un erro. + +NOTA: Cando a busca chega ao final do arquivo, continuará dende o comezo, + agás que a opción 'wrapscan' estea desactivada. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.4.3: BUSCA PARA COMPROBAR PARÉNTESES + + + ** Prema % para atopa-la paréntese correspondente a ),] ou } . ** + + 1. Sitúe o cursor en cualquera dos carácteres (, [ o { na liña inferior + sinalada con --->. + + 2. Prema agora o carácter % . + + 3. O cursor moveráse á parella de peche da paréntese, corchete + ou chave correspondente. + + 4. Prema % para move-lo cursor ata a outra parella do carácter. + + 5. Mova o cursor a outra (,),[,],{ o } e vexa o que fai % . + +---> Isto ( é unha liña de proba con (, [, ], {, e } nela. )) + +NOTA: Isto é moi útil na detección de erros nun programa con parénteses, + corchetes ou chaves sen parella. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.4.4: O COMANDO SUBSTITUÍR + + + ** Escriba :s/vello/novo/g para substituír 'vello' por 'novo'. ** + + 1. Mova o cursor á liña inferior sinalada con --->. + + 2. Escriba :s/aas/as/ . Teña en conta que este comando cambia + só o primeiro achado -na liña- da expresión que quere cambiar. + + 3. Agora escriba :s/aas/a/g . Ao engadir a opción g , o Vim fará + a substitución global na liña, cambiando tódo-los achados + do termo "aas" na liña. + +---> Coido que aas mellores épocas para aas frores son aas primaveras. + + 4. Para cambiar cada achado da cadea de carácteres entre dúas liñas: + Escriba :#,#s/vello/novo/g onde #,# son os números de liña do rango + de liñas onde se realizará a substitución. + Escriba :%s/vello/novo/g para cambiar cada achado en todo o arquivo. + Escriba :%s/vello/novo/gc para atopar cada achado en todo o arquivo, + pedindo confirmación para face-la + substitución ou non. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.4 + + + 1. CTRL-G mostra a posición do cursor no ficheiro e mailo seu estado. + G move o cursor ao final do arquivo. + número G move o cursor a ese número de liña. + gg move o cursor á primeira liña do arquivo. + + 2. Escribindo / seguido dun texto busca o texto cara a ADIANTE. + Escribindo ? seguido dun texto busca o texto cara a ATRÁS. + Despois dunha busca, prema n para atopar o achado. + + 3. Premendo % cando o cursor está sobre (,), [,], { o } localiza + a parella correspondente. + + 4. Para cambiar vello por novo no primeiro achado dunha liña escriba + :s/vello/novo + Para cambiar tódo-los vello por novo nunha liña escriba + :s/vello/novo/g + Para cambiar texto entre dous números de liña escriba + :#,#s/vello/novo/g + Para cambiar vello por novo en todo o fichero escriba + :%s/vello/novo/g + Para pedir confirmación en cada caso engada 'c' + :%s/vello/novo/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.5.1: CÓMO EXECUTAR UN COMANDO EXTERNO + + + ** Escriba :! seguido dun comando externo para executar ese comando. ** + + 1. Escriba o conocido comando : para situar o cursor ao final da + pantalla. Isto permitirálle introducir un comando. + + 2. Agora escriba o carácter ! (signo de admiración). Isto permitirálle + executar calquer mandato do sistema. + + 3. Como exemplo escriba ls despois do ! e logo prema . Isto + mostrarálle unha lista do seu directorio, igual que se estiviese no + símbolo do sistema. Se ls non funciona, utilice :!dir . + +NOTA: Deste xeito é posible executar cualquer comando externo, + tamén incluíndo argumentos. + +NOTA: Tódolos comandos : deben finalizarse premendo . + De agora en diante, non sempre se mencionará. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.5.2: MÁIS SOBRE GARDAR FICHEIROS + + + ** Para garda-los cambios feitos nun ficheiro, + escriba :w NOME_DE_FICHEIRO ** + + 1. Escriba :!dir ou :!ls para ver unha lista dos arquivos + do seu directorio. + Xa sabe que debe pulsar despois. + + 2. Elixa un nome de ficheiro que todavía non exista, como TEST. + + 3. Agora escriba :w TEST (onde TEST é o nome de ficheiro elixido). + + 4. Esta acción garda todo o ficheiro (Vim Tutor) baixo o nome TEST. + Para comprobalo, escriba :!dir ou :!ls de novo e vexa + o seu directorio. + +NOTA: Se saíra do Vim e volvera a entrar de novo con vim TEST , o + arquivo sería unha copia exacta do tutorial cuando o guardou. + + 5. Agora, elimine o arquivo escribindo (Windows): :!del TEST + ou (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.5.3: SELECCIONAR TEXTO PARA GARDAR + + + ** Para gardar parte do arquivo, escriba v movemento :w arquivo ** + + 1. Mova o cursor a esta liña. + + 2. Prema v e mova o cursor ata o quinto elemento inferior. Vexa que + o texto é salientado. + + 3. Prema o carácter : Na parte inferior da pantalla aparecerá + :'<,'> + + 4. Prema w TEST , onde TEST é un nome de arquivo que aínda non existe. + Verifique que ve :'<,'>w TEST antes de premer . + + 5. Vim escribirá as liñas seleccionadas no arquivo TEST. Utilice + :!dir o :!ls para velo. Non o elimine todavía! Utilizarémolo + na seguinte lección. + +NOTA: Ao pulsar v iniciá a selección visual. Pode move-lo cursor para + face-la selección máis grande ou pequena. Despois, pode utilizar un + operador para facer algo co texto. Por exemplo, d eliminará + o texto seleccionado. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.5.4: RECUPERANDO E MESTURANDO FICHEIROS + + + ** Para inseri-lo contido dun ficheiro escriba :r NOME_DO_FICHEIRO ** + + 1. Sitúe o cursor xusto por riba desta liña. + +NOTA: Despois de executar o paso 2 verá o texto da lección 1.5.3. Despois + DESCENDA ata ver de novo esta lección. + + 2. Agora recupere o arquivo TEST utilizando o comando :r TEST , onde + TEST é o nome que ven de utilizar. + O arquivo que recuperou colocaráse embaixo da liña onde se atope + o cursor. + + 3. Para verificar que se recuperou o arquivo, suba o cursor e + comprobe que agora hai dúas copias da lección 1.5.3, a orixinal e + maila versión do arquivo. + +NOTA: Tamén pode le-la saída dun comando externo. Por exemplo, + :r !ls le a saída do comando ls e pégao baixo da liña + onde se atopa o cursor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.5 + + + 1. :!comando executa un comando externo. + Alguns exemplos útiles son: + (Windows) (Unix) + :!dir :!ls - mostra o contido dun directorio. + :!del arquivo :!rm arquivo - borra o ficheiro arquivo. + + 2. :w arquivo escribe o arquivo actual no disco co nome de arquivo. + + 3. v movemento :w arquivo guarda as liñas seleccionadas visualmente + no arquivo arquivo. + + 4. :r arquivo recupera do disco o arquivo arquivo e pégao embaixo + da posición do cursor. + + 5. :r !dir le a saída do comando dir e pégao embaixo da + posición do cursor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.6.1: O COMANDO «OPEN» (ABRIR) + + + ** Prema o para abrir unha liña embaixo do cursor + e situarse no modo inserir ** + + 1. Mova o cursor á liña inferior sinalada con --->. + + 2. Prema a letra minúscula o para abrir unha liña por EMBAIXO do cursor + e situarse en modo Inserir. + + 3. Agora, escriba algún texto, e despois prema para saír do modo + Inserir. + +---> Despois de pulsar o , o cursor sitúase na liña aberta en modo Inserir. + + 4. Para abrir unha liña por RIBA do cursor, simplemente prema un O + MAIÚSCULO, en troques dun o minúsculo. Probe isto na liña seguinte. + +---> Abra unha liña sobre esta, pulsando O cuando o cursor estea nesta liña. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.6.2: O COMANDO «APPEND» (ENGADIR) + + + ** Prema a para inserir texto despois do cursor. ** + + 1. Mova o cursor ao inicio da primeira liña inferior sinalada con --->. + + 2. Escriba e ata que o cursor estea ao final de li . + + 3. Escriba un a (minúsculo) para engadir texto despois do cursor. + + 4. Complete a palabra coma na liña inferior. Prema para saír + do modo Inserir. + + 5. Utilice e para moverse ata a seguinte palabra incompleta e + repita os pasos 3 e 4. + +---> Esta li permit practi cómo enga texto a unha +---> Esta liña permitirálle practicar cómo engadir texto a unha liña. + +NOTA: a, i e A entran no modo Inserir; a única diferencia é + onde se colocan os carácteres inseridos. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.6.3: OUTRA VERSIÓN DE «REPLACE» (SUBSTITUÍR) + + + ** Prema un R MAIÚSCULO para substituír máis dun carácter. ** + + 1. Mova o cursor á primeira liña inferior sinalada con --->. + Mova o cursor ao inicio da primeira xxx . + + 2. Agora prema R e escriba o número que aparece na liña inferior. + Isto substituirá o texto xxx . + + 3. Prema para abandoa-lo modo Substituír. + Observe que o resto da liña fica sen modificacions. + + 4. Repita os pasos para substituí-lo texto xxx que queda. + +---> Sumar 123 a xxx da un resultado de xxx. +---> Sumar 123 a 456 da un resultado de 579. + +NOTA: O modo Substituír é como o modo Inserir, pero cada carácter escrito + elimina un carácter xa existente. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.6.4: COPIAR E PEGAR TEXTO + + + ** Utilice o operador e para copiar texto e p para pegalo. ** + + 1. Mova o cursor á liña inferior marcada con ---> e posicione o + cursor despois de "a)". + + 2. Inicie o modo Visual con v + e mova o cursor xusto antes de "primeiro". + + 3. Prema e para copiar («yank») o texto salientado. + + 4. Mova o cursor ao final da seguinte liña mediante: j$ + + 5. Prema p para pór (pegar) o texto. Despois escriba: o segundo . + + 6. Utilice o modo visual para seleccionar " elemento.", e cópieo con y. + Mova o cursor ao final da seguinte liña con j$ e pegue o texto + xusto acabado de copiar con p . + +---> a) este é o primeiro elemento. + b) + +NOTA: Tamén pode utilizar e como un operador: yw copia unha palabra, + yy copia a liña completa onde está o cursor; despois p pegará + esa liña. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.6.5: ACTIVAR («SET») UNHA OPCIÓN + + + ** Active unha opción para buscar ou substituír ignorando + se o texto está en MAIÚSCULAS ou minúsculas ** + + 1. Busque a cadea de texto 'ignorar' escribindo: /ignorar + Repita a busca varias veces pulsando n . + + 2. Active a opción 'ic' ("Ignore case" ou ignorar maiúsculas e minúsculas) + mediante: :set ic + + 3. Agora, busque de novo 'ignorar' pulsando n . + Observe que agora tamén se acha Ignorar e IGNORAR. + + 4. Active as opcions 'hlsearch' e 'incsearch' escribindo: :set hls is + + 5. Agora escriba de novo o comando de busca + e vexa qué acontece: /ignore + + 6. Para inhabilitar ou ignorar a distinción entre MAIÚSCULAS e minúsculas + escriba: :set noic + +NOTA: Para elimina-lo salientado das coincidencias escriba: :nohlsearch +NOTA: Se quere ignora-las MAIÚSCULAS e minúsculas, só para un comando + de busca, utilice \c na frase: /ignorar\c + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.6 + + + 1. Escriba o para abrir unha liña por BAIXO da posición do cursor e + entrar en modo Inserir. + Escriba O para abrir unha liña por RIBA da posición do cursor e + entrar en modo Inserir + + 2. Escriba a para inserir texto despois do cursor. + Escriba A para inserir texto ao final da liña. + + 3. O comando e move o cursor ao final dunha palabra. + + 4. O operador e copia («yank») texto; p pégao (pon). + + 5. Ao escribir un R MAIÚSCULO, entra no modo Substituír ata que + se preme . + + 6. Ao escribir :set xxx , actívase a opción 'xxx'. + Algunas opcións son: + 'ic' 'ignorecase' ignorar maiúsculas/minúsculas ao buscar + 'is' 'incsearch' amosa-las coincidencias parciais para + a busca dunha frase + 'hls' 'hlsearch' salienta tódalas coincidencias da frases + + Pode utilizar tanto os nomes longos coma os curtos das opcions. + + 7. Engada "no" para inhabilitar unha opción: :set noic + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 7: OBTER AXUDA + + + ** Utilice o sistema de axuda en liña ** + + O Vim dispón dun sistema de axuda en liña. Para comezar, probe unha + destas tres formas: + - prema a tecla (se dispón dela) + - prema a tecla (se dispón dela) + - escriba :help + + Lea o texto na xanela de axuda para descubrir cómo funciona a axuda. + Escriba CTRL-W CTRL-W para chimpar dunha xanela a outra. + Escriba :q para pechar a xanela de axuda. + + Pode atopar axuda en case calquer tema engadindo un argumento ao + comando :help . Probe estes (non esqueza premer ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manua + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.7.2: CREAR UN SCRIPT DE INICIO + + + ** Habilitar funcionalidades no Vim ** + + O Vim ten moitas máis funcionalidades que o Vi, pero algunhas están + inhabilitadas de xeito predeterminado. + Para empezar a utilizar máis funcionalidades debería crear un arquivo + chamado "vimrc". + + 1. Comece a edita-lo arquivo "vimrc". Isto depende do seu sistema: + :e ~/.vimrc para Unix + :e ~/_vimrc para Windows + + 2. Agora lea o contenido do arquivo "vimrc" de exemplo: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Garde o arquivo mediante: + :w + + A próxima vez que inicie o Vim, este usará o salientado de sintaxe. + Pode engadir tódolos seus axustes preferidos a este arquivo "vimrc". + Para máis información escriba :help vimrc-intro + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LECCIÓN 1.7.3: COMPLETADO + + + ** Completado da liña de comandos con CTRL-D ou . ** + + 1. Asegúrese de que o Vim non está no modo compatible: :set nocp + + 2. Vexa qué arquivos existen no directorio con: :!ls ou :!dir + + 3. Escriba o inicio dun comando: :e + + 4. Prema CTRL-D e o Vim mostrará a lista de comandos que empezan con "e". + + 5. Engada d e o Vim completará o nome do comando a ":edit". + + 6. Agora engada un espacio e o inicio do nome dun arquivo: :edit FIL + + 7. Prema . Vim completará o nome (se só hai un). + +NOTA: O completado funciona con moitos comandos. Só prema CTRL-D ou + . É especialmente útil para :help . + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RESUMO DA LECCIÓN 1.7 + + + 1. Escriba :help ou prema ou para abri-la xanela de axuda. + + 2. Escriba :help cmd para atopar axuda sobre cmd . + + 3. Escriba CTRL-W CTRL-W para chimpar a outra xanela. + + 4. Escriba :q para pecha-la xanela de axuda. + + 5. Cree un ficheiro vimrc de inicio para garda-los sus axustes preferidos. + + 6. Cuando escriba un comando : prema CTRL-D para ver posibles opcións. + Prema para utilizar unha das opcións de completado. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Aquí conclúe o tutor do Vim. Está pensado para dar unha visión breve do + editor Vim, suficiente para permitirlle usa-lo editor de forma bastante + sinxela. Está moi lonxe de estar completo pois o Vim ten moitísimos máis + comandos. Lea o seguinte manual de usuario: ":help user-manual". + + Para lecturas e estudos posteriores, recoméndase o libro: + Vim - Vi Improved - de Steve Oualline + Editado por: New Riders + o primeiro libro adicado completamente ao Vim. Especialmente útil para + principiantes. Ten moitos exemplos e imaxes. + Vexa https://iccf-holland.org/click5.html + + Este tutorial foi escrito por Michael C. Pierce e Robert K. Ware, + Colorado School of Mines utilizando ideas subministradas por Charles Smith, + Colorado State University. + E-mail: bware@mines.colorado.edu. + + Modificado para Vim por Bram Moolenaar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Traducido do inglés ao galego por Fernando Vilariño. + Correo electrónico: fernando@cvc.uab.es. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.hr b/git/usr/share/vim/vim92/tutor/tutor1.hr new file mode 100644 index 0000000000000000000000000000000000000000..cf3323a94e793448cb9e829a27aefad7cb248062 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.hr @@ -0,0 +1,972 @@ +=============================================================================== += D o b r o d o š l i u VIM p r i r u č n i k - Verzija 1.7 = +=============================================================================== + + Vim je vrlo moćan editor koji ima mnogo naredbi, previše da bi ih + se svih ovdje spomenulo. Namjena priručnika je objasniti dovoljno + naredbi kako bi početnici znatno lakše koristili ovaj svestran editor. + + Približno vrijeme potrebno za uspješan završetak priručnika je oko + 30 minuta a ovisi o tome koliko će te vremena odvojiti za vježbanje. + + UPOZORENJE: + Naredbe u ovom priručniku će promijeniti ovaj tekst. + Napravite kopiju ove datoteke kako bi ste na istoj vježbali + (ako ste pokrenuli "vimtutor" ovo je već kopija). + + Vrlo je važno primijetiti da je ovaj priručnik namijenjen za vježbanje. + Preciznije, morate izvršiti naredbe u Vim-u kako bi ste iste naučili + pravilno koristiti. Ako samo čitate tekst, zaboraviti će te naredbe! + + Ako je CapsLock uključen ISKLJUČITE ga. Pritiskajte tipku j kako + bi pomakli kursor sve dok Lekcija 1.1.1 ne ispuni ekran. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.1: POMICANJE KURSORA + + + ** Za pomicanje kursora, pritisnite h,j,k,l tipke kako je prikazano ** + ^ + k Savjet: h tipka je lijevo i pomiče kursor lijevo. + < h l > l tipka je desno i pomiče kursor desno. + j j izgleda kao strelica usmjerena dolje. + v + 1. Pomičite kursor po ekranu dok se ne naviknete na korištenje. + + 2. Držite tipku (j) pritisnutom. + Sada znate kako doći do sljedeće lekcije. + + 3. Koristeći tipku j prijeđite na sljedeću lekciju 1.1.2. + +NAPOMENA: Ako niste sigurni što ste zapravo pritisnuli uvijek koristite + tipku kako bi prešli u Normal mod i onda pokušajte ponovno. + +NAPOMENA: Kursorske tipke rade isto. Korištenje hjkl tipaka je znatno + brže, nakon što se jednom naviknete na njihovo korištenje. Stvarno! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.2: IZLAZ IZ VIM-a + + + !! UPOZORENJE: Prije izvođenja bilo kojeg koraka, + pročitajte cijelu lekciju!! + + 1. Pritisnite tipku (Vim je sada u Normal modu). + + 2. Otipkajte: :q! . + Izlaz iz editora, GUBE se sve napravljene promjene. + + 3. Kada se pojavi ljuska, utipkajte naredbu koja je pokrenula + ovaj priručnik: vimtutor + + 4. Ako ste upamtili ove korake, izvršite ih redom od 1 do 3 + kako bi ponovno pokrenuli editor. + +NAPOMENA: :q! poništava sve promjene koje ste napravili. + U sljedećim lekcijama naučit će te kako promjene sačuvati. + + 5. Pomaknite kursor na Lekciju 1.1.3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.3: PROMJENA TEKSTA - BRISANJE + + + ** Pritisnite x za brisanje znaka pod kursorom. ** + + 1. Pomaknite kursor na liniju označenu s --->. + + 2. Kako bi ste ispravili pogreške, pomičite kursor dok se + ne bude nalazio na slovu kojeg trebate izbrisati. + + 3. Pritisnite tipku x kako bi uklonili neželjeno slovo. + + 4. Ponovite korake od 2 do 4 dok ne ispravite sve pogreške. + +---> KKKravaa jee presskočila mmjeseccc. + + 5. Nakon što ispravite liniju, prijeđite na lekciju 1.1.4. + +NAPOMENA: Koristeći ovaj priručnik ne pokušavajte pamtiti + već učite primjenom. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.4: PROMJENA TEKSTA - UBACIVANJE + + + ** Pritisnite i za ubacivanje teksta ispred kursora. ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + + 2. Kako bi napravili prvu liniju istovjetnoj drugoj, pomaknite + kursor na prvi znak POSLIJE kojeg će te utipkati potreban tekst. + + 3. Pritisnite i te utipkajte potrebne nadopune. + + 4. Nakon što ispravite pogrešku pritisnite kako bi vratili Vim + u Normal mod. Ponovite korake od 2 do 4 kako bi ispravili sve pogreške. + +---> Nedje no teka od v lin. +---> Nedostaje nešto teksta od ove linije. + + 5. Prijeđite na sljedeću lekciju. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.5: PROMJENA TEKSTA - DODAVANJE + + + ** Pritisnite A za dodavanje teksta. ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + Nije važno na kojem se slovu nalazi kursor na toj liniji. + + 2. Pritisnite A i napravite potrebne promjene. + + 3. Nakon što ste dodali tekst, pritisnite + za povratak u Normal mod. + + 4. Pomaknite kursor na drugu liniju označenu s ---> + i ponovite korake 2 i 3 dok ne popravite tekst. + +---> Ima nešto teksta koji nedostaje n + Ima nešto teksta koji nedostaje na ovoj liniji. +---> Ima nešto teksta koji ne + Ima nešto teksta koji nedostaje baš ovdje. + + 5. Prijeđite na lekciju 1.1.6. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.6: PROMJENA DATOTEKE + + + ** Koristite :wq za spremanje teksta i napuštanje Vim-a. ** + + !! UPOZORENJE: Prije izvršavanja bilo kojeg koraka, pročitajte lekciju!! + + 1. Izađite iz programa kao sto ste napravili u lekciji 1.1.2: :q! + + 2. Iz ljuske utipkajte sljedeću naredbu: vim tutor + 'vim' je naredba pokretanja Vim editora, 'tutor' je ime datoteke koju + želite uređivati. Koristite datoteku koju imate ovlasti mijenjati. + + 3. Ubacite i izbrišite tekst kao što ste to napravili u lekcijama prije. + + 4. Sačuvajte promjenjeni tekst i izađite iz Vim-a: :wq + + 5. Ponovno pokrenite vimtutor i nastavite čitati sažetak koji sljedi. + + 6. Nakon sto pročitate gornje korake i u potpunosti ih razumijete: + izvršite ih. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1 SAŽETAK + + + 1. Kursor se pomiče strelicama ili pomoću hjkl tipaka. + h (lijevo) j (dolje) k (gore) l (desno) + + 2. Pokretanje Vim-a iz ljuske: vim IME_DATOTEKE + + 3. Izlaz: :q! sve promjene su izgubljene. + ILI: :wq promjene su sačuvane. + + 4. Brisanje znaka na kojem se nalazi kursor: x + + 5. Ubacivanja ili dodavanje teksta: + i utipkajte tekst unos ispred kursora + A utipkajte tekst dodavanje na kraju linije + +NAPOMENA: Tipkanjem tipke prebacuje Vim u Normal mod i + prekida neželjenu ili djelomično završenu naredbu. + +Nastavite čitati Lekciju 2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.1: NAREDBE BRISANJA + + + ** Tipkajte dw za brisanje riječi. ** + + 1. Pritisnite kako bi bili sigurni da je Vim u Normal modu. + + 2. Pomaknite kursor na liniju označenu s --->. + + 3. Pomaknite kursor na početak riječi koju treba izbrisati. + + 4. Otipkajte dw kako bi uklonili riječ. + +NAPOMENA: Vim će prikazati slovo d na zadnjoj liniji kad ga otipkate. + Vim čeka da otipkate w . Ako je prikazano neko drugo slovo, + krivo ste otipkali; pritisnite i pokušajte ponovno. + +---> Neke riječi smiješno ne pripadaju na papir ovoj rečenici. + + 5. Ponovite korake 3 i 4 dok ne ispravite rečenicu; + prijeđite na Lekciju 1.2.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.2: JOŠ BRISANJA + + + ** Otipkajte d$ za brisanje znakova do kraja linije. ** + + 1. Pritisnite kako bi bili + sigurni da je Vim u Normal modu. + + 2. Pomaknite kursor na liniju označenu s --->. + + 3. Pomaknite kursor do kraja ispravne rečenice + (POSLJE prve . ). + + 4. Otipkajte d$ + kako bi izbrisali sve znakove do kraja linije. + +---> Netko je utipkao kraj ove linije dvaput. kraj ove linije dvaput. + + 5. Prijeđite na Lekciju 1.2.3 za bolje objašnjenje. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.3: UKRATKO O OPERATORIMA I POKRETIMA + + + Mnogo naredbi koje mijenjaju tekst se sastoje od operatora i pokreta. + Oblik naredbe brisanja sa d operatorom je sljedeći: + + d pokret + + Pri čemu je: + d - operator brisanja. + pokret - ono na čemu će se operacija izvršavati (navedeno u nastavku). + + Kratka lista pokreta: + w - sve do početka sljedeće riječi, NE UKLJUČUJUĆI prvo slovo. + e - sve do kraja trenutačne riječi, UKLJUČUJUĆI zadnje slovo. + $ - sve do kraje linije, UKLJUČUJUĆI zadnje slovo. + + Tipkanjem de će se brisati od kursora do kraja riječi. + +NAPOMENA: Pritiskajući samo pokrete dok ste u Normal modu bez operatora će + pomicati kursor kao što je navedeno. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.4: KORIŠTENJE BROJANJA ZA POKRETE + + + ** Tipkanjem nekog broja prije pokreta, pokret se izvršava toliko puta. ** + + 1. Pomaknite kursor na liniju označenu s --->. + + 2. Otipkajte 2w da pomaknete kursor dvije riječi naprijed. + + 3. Otipkajte 3e da pomaknete kursor na kraj treće riječi naprijed. + + 4. Otipkajte 0 (nulu) da pomaknete kursor na početak linije. + + 5. Ponovite korake 2 i 3 s nekim drugim brojevima. + +---> Rečenica sa riječima po kojoj možete pomicati kursor. + + 6. Prijeđite na Lekciju 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.5: KORIŠTENJE BROJANJA ZA VEĆE BRISANJE + + + ** Tipkanje broja N s operatorom ponavlja ga N-puta. ** + + U kombinaciji operatora brisanja i pokreta spomenutih iznad + ubacujete broj prije pokreta kako bi izbrisali više znakova: + + d broj pokret + + 1. Pomaknite kursor na prvo slovo u riječi sa VELIKIM SLOVIMA + označenu s --->. + + 2. Otipkajte 2dw da izbrišete dvije riječi sa VELIKIM SLOVIMA + + 3. Ponovite korake 1 i 2 sa različitim brojevima da izbrišete + uzastopne riječi sa VELIKIM SLOVIMA sa samo jednom naredbom. + +---> ova ABCČĆ DĐE linija FGHI JK LMN OP riječi je RSŠ TUVZŽ popravljena. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.6: OPERIRANJE NAD LINIJAMA + + + ** Otipkajte dd za brisanje cijele linije. ** + + Zbog učestalosti brisanja cijelih linija, dizajneri Vi-a su odlučili da + je lakše brisati linije tipkanjem d dvaput. + + 1. Pomaknite kursor na drugu liniju u donjoj kitici. + 2. Otipkajte dd kako bi izbrisali liniju. + 3. Pomaknite kursor na četvrtu liniju. + 4. Otipkajte 2dd kako bi izbrisali dvije linije. + +---> 1) Ruže su crvene, +---> 2) Plaža je super, +---> 3) Ljubice su plave, +---> 4) Imam auto, +---> 5) Satovi ukazuju vrijeme, +---> 6) Šećer je sladak +---> 7) Kao i ti. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.7: NAREDBA PONIŠTENJA + + + ** Pritisnite u za poništenje zadnje naredbe, U za cijelu liniju. ** + + 1. Pomaknite kursor na liniju označenu s ---> i postavite kursor na prvu + pogrešku. + 2. Otipkajte x kako bi izbrisali prvi neželjeni znak. + 3. Otipkajte u kako bi poništili zadnju izvršenu naredbu. + 4. Ovaj put ispravite sve pogreške na liniji koristeći x naredbu. + 5. Sada utipkajte veliko U kako bi poništili sve promjene + na liniji, vraćajući je u prijašnje stanje. + 6. Sada utipkajte u nekoliko puta kako bi poništili U + i prijašnje naredbe. + 7. Sada utipkajte CTRL-R (držeći CTRL tipku pritisnutom dok + ne pritisnete R) nekoliko puta kako bi vratili promjene + (poništili poništenja). + +---> Poopravite pogreške nna ovvoj liniji ii pooništiteee ih. + + 8. Vrlo korisne naredbe. Prijeđite na sažetak Lekcije 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2 SAŽETAK + + + 1. Brisanje od kursora do sljedeće riječi: dw + 2. Brisanje od kursora do kraja linije: d$ + 3. Brisanje cijele linije: dd + + 4. Za ponavljanje pokreta prethodite mu broj: 2w + 5. Oblik naredbe mijenjanja: + operator [broj] pokret + gdje je: + operator - što napraviti, npr. d za brisanje + [broj] - neobavezan broj ponavljanja pokreta + pokret - kretanje po tekstu po kojem se operira, + kao što je: w (riječ), $ (kraj linije), itd. + + 6. Postavljanje kursora na početak linije: 0 + + 7. Za poništenje prethodnih promjena, pritisnite: u (malo u) + Za poništenje svih promjena na liniji, pritisnite: U (veliko U) + Za vraćanja promjena, utipkajte: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.1: NAREDBA POSTAVI + + + ** p za unos prethodno izbrisanog teksta iza kursora. ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + + 2. Otipkajte dd kako bi izbrisali liniju i spremili je u Vim registar. + + 3. Pomaknite kursor na liniju c), IZNAD linije koju trebate unijeti. + + 4. Otipkajte p kako bi postavili liniju ispod kursora. + + 5. Ponovite korake 2 do 4 kako bi postavili sve linije u pravilnom + rasporedu. + +---> d) Možeš li i ti naučiti? +---> b) Ljubice su plave, +---> c) Inteligencija je naučena, +---> a) Ruže su crvene, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.2: NAREDBA PROMJENE + + + ** Otipkajte rx za zamjenu slova ispod kursora sa slovom x . ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + + 2. Pomaknite kursor tako da se nalazi na prvoj pogrešci. + + 3. Otipkajte r i nakon toga ispravan znak na tom mjestu. + + 4. Ponovite korake 2 i 3 sve dok prva + linije ne bude istovjetna drugoj. + +---> Kede ju ovu limija tupjana, natko je protuskao kruve tupke! +---> Kada je ova linija tipkana, netko je pritiskao krive tipke! + + 5. Prijeđite na Lekciju 1.3.2. + +NAPOMENA: Prisjetite da trebate učiti vježbanjem, ne pamćenjem. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.3: OPERATOR MIJENJANJA + + + ** Za mijenjanje do kraja riječi, istipkajte ce . ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + + 2. Postavite kursor na a u lackmb. + + 3. Otipkajte ce i ispravite riječ (u ovom slučaju otipkajte inija ). + + 4. Pritisnite i pomaknite kursor na sljedeći znak + kojeg je potrebno ispraviti. + + 5. Ponovite korake 3 i 4 sve dok prva rečenica ne postane istovjetna + drugoj. + +---> Ova lackmb ima nekoliko rjlcah koje trfcb mijdmlfsz. +---> Ova linija ima nekoliko riječi koje treba mijenjati. + +Primijetite da ce briše riječ i postavlja Vim u Insert mod. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.4: JOŠ MIJENJANJA KORIŠTENJEM c + + + ** Naredba mijenjanja se koristi sa istim pokretima kao i brisanje. ** + + 1. Operator mijenjanja se koristi na isti način kao i operator brisanja: + + c [broj] pokret + + 2. Pokreti su isti, npr: w (riječ) i $ (kraj linije). + + 3. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + + 4. Pomaknite kursor na prvu pogrešku. + + 5. Otipkajte c$ i utipkajte ostatak linije tako da bude istovjetna + drugoj te pritisnite . + +---> Kraj ove linije treba pomoć tako da izgleda kao linija ispod. +---> Kraj ove linije treba ispraviti korištenjem c$ naredbe. + +NAPOMENA: Možete koristiti Backspace za ispravljanje grešaka. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3 SAŽETAK + + + 1. Za postavljanje teksta koji je upravo izbrisan, pritisnite p . Ovo + postavlja tekst IZA kursora (ako je pak linija izbrisana tekst se + postavlja na liniju ispod kursora). + + 2. Za promjenu znaka na kojem se nalazi kursor, pritisnite r i nakon toga + željeni znak. + + 3. Operator mijenjanja dozvoljava promjenu teksta od kursora do pozicije do + koje dovede pokret. tj. Otipkajte ce za mijenjanje od kursora do kraja + riječi, c$ za mijenjanje od kursora do kraja linije. + + 4. Oblik naredbe mijenjanja: + + c [broj] pokret + +Prijeđite na sljedeću lekciju. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.1: POZICIJA KURSORA I STATUS DATOTEKE + + ** CTRL-G za prikaz pozicije kursora u datoteci i status datoteke. + Pritisnite G za pomicanje kursora na neku liniju u datoteci. ** + +NAPOMENA: Pročitajte cijelu lekciju prije izvršenja bilo kojeg koraka!! + + 1. Držite Ctrl tipku pritisnutom i pritisnite g . Ukratko: CTRL-G. + Vim će ispisati poruku na dnu ekrana sa imenom datoteke i pozicijom + kursora u datoteci. Zapamtite broj linije za 3. korak. + +NAPOMENA: Možete vidjeti poziciju kursora u donjem desnom kutu ako + je postavka 'ruler' aktivirana (objašnjeno u 6. lekciji). + + 2. Pritisnite G za pomicanje kursora na kraj datoteke. + Otipkajte gg za pomicanje kursora na početak datoteke. + + 3. Otipkajte broj linije na kojoj ste bili maloprije i zatim G . Kursor + će se vratiti na liniju na kojoj se nalazio kada ste otipkali CTRL-G. + + 4. Ako ste spremni, izvršite korake od 1 do 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.2: NAREDBE TRAŽENJA + + ** Otipkajte / i nakon toga izraz kojeg želite tražiti. ** + + 1. U Normal modu otipkajte / znak. Primijetite da se znak + pojavio zajedno sa kursorom na dnu ekrana kao kod : naredbe. + + 2. Sada otipkajte 'grrrreška' . To je riječ koju zapravo tražite. + + 3. Za ponovno traženje istog izraza, otipkajte n . + Za traženje istog izraza ali u suprotnom smjeru, otipkajte N . + + 4. Za traženje izraza unatrag, koristite ? umjesto / . + + 5. Za povratak na prethodnu poziciju koristite CTRL-O (držite Ctrl + pritisnutim dok ne pritisnete tipku o). Ponavljajte sve dok se ne + vratite na početak. CTRL-I slično kao CTRL-O ali u suprotnom smjeru. + +---> "pogrrrreška" je pogrešno; umjesto pogrrrreška treba stajati pogreška. + +NAPOMENA: Ako se traženjem dođe do kraja datoteke nastavit će se od njenog + početka osim ako je postavka 'wrapscan' deaktivirana. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.3: TRAŽENJE PRIPADAJUĆE ZAGRADE + + + ** Otipkajte % za pronalazak pripadajuće ), ] ili } . ** + + 1. Postavite kursor na bilo koju od ( , [ ili { + otvorenih zagrada u liniji označenoj s --->. + + 2. Otipkajte znak % . + + 3. Kursor će se pomaknuti na pripadajuću zatvorenu zagradu. + + 4. Otipkajte % kako bi pomakli kursor na drugu pripadajuću zagradu. + + 5. Pomaknite kursor na neku od (,),[,],{ ili } i ponovite % naredbu. + +---> Linija ( testiranja običnih ( [ uglatih ] i { vitičastih } zagrada.)) + + +NAPOMENA: Vrlo korisno u ispravljanju koda sa nepripadajućim zagradama! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.4: NAREDBE ZAMIJENE + + + ** Otipkajte :s/staro/novo/g da zamijenite 'staro' za 'novo'. ** + + 1. Pomaknite kursor na liniju označenu s --->. + + 2. Otipkajte :s/cvrćč/cvrč . Primjetite da ova naredba zamjenjuje + samo prvi "cvrćč" u liniji. + + 3. Otipkajte :s/cvrćč/cvrč/g . Dodavanje g stavke znači da će se naredba + izvršiti na cijeloj liniji, zamjenjivanjem svih "cvrćč" u liniji. + +---> i cvrćči cvrćči cvrćčak na čvoru crne smrče. + + 4. Za zamjenu svih izraza u rasponu dviju linija, + otipkajte :#,#s/staro/novo/g #,# su brojevi linije datoteke na kojima + te između njih će se izvršiti zamjena. + Otipkajte :%s/staro/novo/g za zamjenu svih izraza u cijeloj datoteci. + Otipkajte :%s/staro/novo/gc za pronalazak svakog izraza u datoteci i + potvrdu zamjene. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4 SAŽETAK + + + 1. CTRL-G prikazuje poziciju kursora u datoteci i status datoteke. + G postavlja kursor na zadnju liniju datoteke. + broj G postavlja kursor na broj liniju. + gg postavlja kursor na prvu liniju. + + 2. Tipkanje / sa izrazom traži UNAPRIJED taj izraz. + Tipkanje ? sa izrazom traži UNATRAG taj izraz. + Nakon naredbe traženja koristite n za pronalazak izraza u istom + smjeru, i N za pronalazak istog izraza ali u suprotnom smjeru. + CTRL-O vraća kursor na prethodnu poziciju, CTRL-I na sljedeću poziciju. + + 3. Tipkanje % dok je kursor na zagradi pomiče ga na pripadajuću zagradu. + + 4. Za zamjenu prvog izraza staro za izraz novo :s/staro/novo + Za zamjenu svih izraza staro na cijeloj liniji :s/staro/novo/g + Za zamjenu svih izraza staro u rasponu linija #,# :#,#s/staro/novo/g + Za zamjenu u cijeloj datoteci :%s/staro/novo/g + Za potvrdu svake zamjene dodajte 'c' :%s/staro/novo/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.1: IZVRŠAVANJE VANJSKIH NAREDBI + + + ** Otipkajte :! sa vanjskom naredbom koju želite izvršiti. ** + + 1. Otipkajte poznatu naredbu : kako bi kursor premjestili na dno + ekrana. Time omogućavate unos naredbe u naredbenoj liniji. + + 2. Otipkajte znak ! (uskličnik). Tako omogućavate + izvršavanje naredbe vanjske ljuske. + + 3. Kao primjer otipkajte ls nakon ! te pritisnite . + Ovo će prikazati sadržaj direktorija, kao da ste u ljusci. + Koristite :!dir ako :!ls ne radi. + +NAPOMENA: Moguće je izvršavati bilo koju vanjsku naredbu na ovaj način, + zajedno sa njenim argumentima. + +NAPOMENA: Sve : naredbe se izvršavaju nakon što pritisnete + U daljnjem tekstu to neće uvijek biti napomenuto. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.2: VIŠE O SPREMANJU DATOTEKA + + ** Za spremanje promjena, otipkajte :w IME_DATOTEKE. ** + + 1. Otipkajte :!dir ili :!ls za pregled direktorija. + Već znate da morate pritisnuti na kraju tipkanja. + + 2. Izaberite ime datoteke koja još ne postoji, npr. TEST. + + 3. Otipkajte: :w TEST (gdje je TEST ime koje ste prethodno odabrali.) + + 4. Time će te spremiti cijelu datoteku (Vim Tutor) pod imenom TEST. + Za provjeru, otipkajte ponovno :!dir ili :!ls + za pregled direktorija. + +NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST , + datoteka bi bila potpuna kopija ove datoteke u trenutku + kada ste je spremili. + + 5. Izbrišite datoteku tako da otipkate (MS-DOS): :!del TEST + ili (Unix): :!rm TEST + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.3: SPREMANJE OZNAČENOG TEKSTA + + + ** Kako bi spremili dio datoteke, otipkajte v pokret :w IME_DATOTEKE ** + + 1. Pomaknite kursor na ovu liniju. + + 2. Pritisnite v i pomaknite kursor pet linija ispod ove. + Primijetite promjenu, označeni tekst se razlikuje od običnog. + + 3. Pritisnite : znak. Na dnu ekrana pojavit će se :'<,'> . + + 4. Otipkajte w TEST , pritom je TEST ime datoteke koja još ne postoji. + Provjerite da zaista piše :'<,'>w TEST + prije nego što pritisnite . + + 5. Vim će spremiti označeni tekst u TEST. Provjerite sa :!dir ili :!ls . + Nemojte je još brisati! Koristiti će te je u sljedećoj lekciji. + +NAPOMENA: Tipka v započinje Vizualno označavanje. Možete pomicati kursor + unaokolo kako bi mijenjali veličinu označenog teksta. Možete + koristiti i operatore. Npr, d će izbrisati označeni tekst. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.4: UČITAVANJE DATOTEKA + + + ** Za ubacivanje sadržaja datoteke, otipkajte :r IME_DATOTEKE ** + + 1. Postavite kursor iznad ove linije. + +NAPOMENA: Nakon što izvršite 2. korak vidjeti će te tekst iz Lekcije 1.5.3. + Stoga pomaknite kursor DOLJE kako bi ponovno vidjeli ovu lekciju. + + 2. Učitajte vašu TEST datoteku koristeći naredbu :r TEST + gdje je TEST ime datoteke koju ste koristili u prethodnoj lekciji. + Sadržaj učitane datoteke je ubačen liniju ispod kursora. + + 3. Kako bi provjerili da je datoteka učitana, vratite kursor unatrag i + primijetite dvije kopije Lekcije 1.5.3, originalnu i onu iz datoteke. + +NAPOMENA: Možete također učitati ispis vanjske naredbe. Npr, :r !ls + će učitati ispis ls naredbe i postaviti ispis liniju ispod + kursora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5 SAŽETAK + + + 1. :!naredba izvršava vanjsku naredbu. + + Korisni primjeri: + (MS-DOS) (Unix) + :!dir :!ls - pregled direktorija. + :!del DATOTEKA :!rm DATOTEKA - briše datoteku DATOTEKA. + + 2. :w DATOTEKA zapisuje trenutačnu datoteku na disk sa imenom DATOTEKA. + + 3. v pokret :w IME_DATOTEKE sprema vizualno označene linije u + datoteku IME_DATOTEKE. + + 4. :r IME_DATOTEKE učitava datoteku IME_DATOTEKE sa diska i stavlja + njen sadržaj liniju ispod kursora. + + 5. :r !dir učitava ispis naredbe dir i postavlja sadržaj ispisa liniju + ispod kursora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.1: NAREDBA OTVORI + + + ** Pritisnite o kako bi otvorili liniju ispod kursora + i prešli u Insert mod. ** + + 1. Pomaknite kursor na sljedeću liniju označenu s --->. + + 2. Otipkajte malo o kako bi otvorili novu liniju ISPOD kursora + i prešli u Insert mod. + + 3. Otipkajte nešto teksta i nakon toga pritisnite + kako bi napustili Insert mod. + +---> Nakon što pritisnete o kursor će preći u novu liniju u Insert mod. + + 4. Za otvaranje linije IZNAD kursora, otipkajte umjesto malog o veliko O , + Pokušajte na donjoj liniji označenoj s --->. + +---> Otvorite liniju iznad ove - otipkajte O dok je kursor na ovoj liniji. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.2: NAREDBA DODAJ + + + ** Otipkajte a za dodavanje teksta IZA kursora. ** + + 1. Pomaknite kursor na početak sljedeće linije označene s --->. + + 2. Tipkajte e dok se kursor ne nalazi na kraju li . + + 3. Otipkajte a (malo) kako bi dodali tekst IZA kursora. + + 4. Dopunite riječ kao što je na liniji ispod. + Pritisnite za izlaz iz Insert moda. + + 5. Sa e prijeđite na sljedeću nepotpunu riječ i ponovite korake 3 i 4. + +---> Ova li omogućava vje dodav teksta nekoj liniji. +---> Ova linija omogućava vježbanje dodavanja teksta nekoj liniji. + +NAPOMENA: Sa i, a, i A prelazite u isti Insert mod, jedina + razlika je u poziciji od koje će se tekst ubacivati. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.3: DRUGI NAČIN MIJENJANJA + + + ** Otipkajte veliko R kako bi zamijelili više od jednog znaka. ** + + 1. Pomaknite kursor na prvu sljedeću liniju označenu s --->. + Pomaknite kursor na početak prvog xxx . + + 2. Pritisnite R i otipkajte broj koji je liniju ispod, + tako da zamijeni xxx . + + 3. Pritisnite za izlaz iz Replace moda. + Primijetite da je ostatak linije ostao nepromjenjen. + + 5. Ponovite korake kako bi zamijenili preostali xxx. + +---> Zbrajanje: 123 plus xxx je xxx. +---> Zbrajanje: 123 plus 456 je 579. + +NAPOMENA: Replace mod je kao Insert mod, ali sa bitnom razlikom, + svaki otipkani znak briše već postojeći. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.4: KOPIRANJE I LIJEPLJENJE TEKSTA + + + ** Koristite y operator za kopiranje a p za lijepljenje teksta. ** + + 1. Pomaknite kursor na liniju s ---> i postavite kursor nakon "a)". + + 2. Pokrenite Visual mod sa v i pomaknite kursor sve do ispred "prva". + + 3. Pritisnite y kako bi kopirali označeni tekst. + + 4. Pomaknite kursor do kraja sljedeće linije: j$ + + 5. Pritisnite p kako bi zalijepili tekst. Onda utipkajte: druga . + + 6. Koristite Visual mod kako bi označili " linija.", kopirajte: y , kursor + postavite na kraj sljedeće linije: j$ i ondje zalijepite tekst: p . + +---> a) ovo je prva linija. + b) + +NAPOMENA: možete koristiti y kao operator; yw kopira jednu riječ. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.5: MIJENJANJE POSTAVKI + + + ** Postavka: naredbe traženja i zamijene ne razlikuju VELIKA i mala slova ** + + 1. Potražite 'razlika' tipkanjem: /razlika + Nekoliko puta ponovite pritiskanjem n . + + 2. Aktivirajte 'ic' (Ignore case) postavku: :set ic + + 3. Ponovno potražite 'razlika' tipkanjem n + Primijetite da su sada i RAZLIKA i Razlika pronađeni. + + 4. Aktivirajte 'hlsearch' i 'incsearch' postavke: :set hls is + + 5. Otipkajte naredbu traženja i primijetite razlike: /razlika + + 6. Za deaktiviranje ic postavke koristite: :set noic + +NAPOMENA: Za neoznačavanje pronađenih izraza otipkajte: :nohlsearch +NAPOMENA: Bez razlikovanja velikih i malih slova u samo jednoj naredbi + koristite \c u izrazu: /razlika\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6 SAŽETAK + + 1. Pritisnite o za otvaranje linije ISPOD kursora i prelazak u Insert mod. + Pritisnite O za otvaranje linije IZNAD kursora. + + 2. Pritisnite a za unos teksta IZA kursora. + Pritisnite A za unos teksta na kraju linije. + + 3. Naredba e pomiče kursor na kraj riječi. + + 4. Operator y kopira tekst, p ga lijepi. + + 5. Tipkanjem velikog R Vim prelazi u Replace mod dok ne pritisnete . + + 6. Tipkanjem ":set xxx" aktivira postavku "xxx". Neke postavke su: + 'ic' 'ignorecase' ne razlikuje velika/mala slova pri traženju + 'is' 'incsearch' traži nedovršene izraze + 'hls' 'hlsearch' označi sve pronađene izraze + Možete koristite dugo ili kratko ime postavke. + + 7. Prethodite "no" imenu postavke za deaktiviranje iste: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.1: DOBIVANJE POMOĆI + + + ** Koristite on-line sustav pomoći ** + + Vim ima detaljan on-line sustav pomoći. + Za početak, pokušajte jedno od sljedećeg: + - pritisnite tipku (ako je vaša tipkovnica ima) + - pritisnite tipku (ako je vaša tipkovnica ima) + - utipkajte :help + + Pročitajte tekst u prozoru pomoći kako bi ste se znali služiti istom. + Tipkanjem CTRL-W CTRL-W prelazite iz jednog prozora u drugi. + Otipkajte :q kako bi zatvorili prozor pomoći. + + Pronaći će te pomoć o bilo kojoj temi, tako da dodate upit samoj + ":help" naredbi. Pokušajte (ne zaboravite pritisnuti ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.2: PRAVLJENJE SKRIPTE + + + ** Aktivirajte Vim mogućnosti ** + + Vim ima mnogo više alata od Vi-ja, ali većina njih nije aktivirana. + Kako bi mogli koristiti više mogućnosti napravite "vimrc" datoteku. + + 1. Uredite "vimrc" datoteku. Ovo ovisi o vašem sistemu: + :e ~/.vimrc za Unix + :e ~/_vimrc za MS-Windows + + 2. Sada učitajte primjer sadržaja "vimrc" datoteke: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Sačuvajte datoteku sa: + :w + + Sljedećeg puta kada pokrenete Vim, bojanje sintakse teksta biti će + aktivirano. Sve vaše postavke možete dodati u "vimrc" datoteku. + Za više informacija otipkajte :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.3: AUTOMATSKO DOVRŠAVANJE + + + ** Dovršavanje iz naredbene linije pomoću CTRL-D i ** + + 1. Provjerite da Vim nije u Vi modu: :set nocp + + 2. Pogledajte koje datoteke postoje u direktoriju: :!ls or :!dir + + 3. Otipkajte početak naredbe: :e + + 4. Tipkajte CTRL-D i prikazati će se lista naredbi koje započinju sa "e". + + 5. Pritisnite i Vim će dopuniti unos u naredbu ":edit". + + 6. Dodajte razmak i početak datoteke: :edit FIL + + 7. Pritisnite . Vim će nadopuniti ime datoteke (ako je jedinstveno). + +NAPOMENA: Moguće je dopuniti mnoge naredbe. Koristite CTRL-D i . + Naročito je korisno za :help naredbe. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7 SAŽETAK + + + 1. Otipkajte :help ili pritisnite ili za pomoć. + + 2. Otipkajte :help naredba kako bi dobili pomoć za naredba . + + 3. Otipkajte CTRL-W CTRL-W za prelazak u drugi prozor + + 4. Otipkajte :q kako bi zatvorili prozor pomoći + + 5. Napravite vimrc skriptu za podizanje kako bi u nju spremali + vaše omiljene postavke. + + 6. Kada tipkate naredbu koja započinje sa : + pritisnite CTRL-D kako bi vidjeli moguće valjane vrijednosti. + Pritisnite kako bi odabrali jednu od njih. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Kraj. Cilj priručnika je da pokaže kratak pregled Vim editora, tek toliko + da omogući njegovo korištenje. Priručnik nije potpun jer Vim ima mnogo više + naredbi. Za više informacija: ":help user-manual". + + Za čitanje i korištenje, preporučamo: + Vim - Vi Improved - by Steve Oualline + Izdavač: New Riders + Prva knjiga potpuno posvećena Vim-u. Vrlo korisna za početnike. + Sa mnogo primjera i slika. + Posjetite https://iccf-holland.org/click5.html + + Sljedeća knjiga je nešto starija i više o Vi-u nego o Vim-u, preporučamo: + Learning the Vi Editor - by Linda Lamb + Izdavač: O'Reilly & Associates Inc. + Solidna knjiga, možete saznati skoro sve što možete napraviti + u Vi-u. Šesto izdanje ima nešto informacija i o Vim-u. + + Ovaj priručnik su napisali: Michael C. Pierce i Robert K. Ware, + Colorado School of Mines koristeći ideje Charles Smith, + Colorado State University. E-pošta: bware@mines.colorado.edu. + + Naknadne promjene napravio je Bram Moolenaar. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Preveo na hrvatski: Paul B. Mahol + Preinaka 1.42, Lipanj 2008 + + diff --git a/git/usr/share/vim/vim92/tutor/tutor1.hu b/git/usr/share/vim/vim92/tutor/tutor1.hu new file mode 100644 index 0000000000000000000000000000000000000000..f9482e40c633c9098ff1b4138d264131cea61283 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.hu @@ -0,0 +1,830 @@ +=============================================================================== +== Ü d v ö z ö l j ü k a V I M - o k t a t ó b a n - 1.5-ös verzió == +=============================================================================== + + A Vim egy nagyon hatékony szerkesztő, amelynek rengeteg utasítása + van, túl sok, hogy egy ilyen oktatóban (tutorban), mint az itteni + mindet elmagyarázzuk. Ez az oktató arra törekszik, hogy annyit + elmagyarázzon, amennyi elég, hogy könnyedén használjuk a Vim-et, az + általános célú szövegszerkesztőt. + + A feladatok megoldásához 25-30 perc szükséges attól függően, + mennyit töltünk a kísérletezéssel. + + A leckében szereplő utasítások módosítani fogják a szöveget. + Készítsen másolatot erről a fájlról, ha gyakorolni akar. + (Ha "vimtutor"-ral indította, akkor ez már egy másolat.) + + Fontos megérteni, hogy ez az oktató cselekedve taníttat. + Ez azt jelenti, hogy Önnek ajánlott végrehajtania az utasításokat, + hogy megfelelően megtanulja azokat. Ha csak olvassa, elfelejti! + + Most bizonyosodjon, meg, hogy a Caps-Lock gombja NINCS lenyomva, és + Nyomja meg megfelelő számúszor a j gombot, hogy az 1.1.1-es + lecke teljesen a képernyőn legyen! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.1. lecke: A KURZOR MOZGATÁSA + + + ** A kurzor mozgatásához nyomja meg a h,j,k,l gombokat az alábbi szerint. ** + ^ + k Tipp: A h billentyű van balra, és balra mozgat + < h l > A l billentyű van jobbra, és jobbra mozgat + j A j billentyű olyan, mint egy lefele nyíl + v + 1. Mozgassa a kurzort körbe az ablakban, amíg hozzá nem szokik! + + 2. Tartsa lenyomva a lefelét (j), akkor ismétlődik! +---> Most tudja, hogyan mehet a következő leckére. + + 3. A lefelé gomb használatával menjen a 1.1.2. leckére! + +Megj: Ha nem biztos benne, mit nyomott meg, nyomja meg az -et, hogy + normál módba kerüljön, és ismételje meg a parancsot! + +Megj: A kurzor gomboknak is működniük kell, de a hjkl használatával + sokkal gyorsabban tud, mozogni, ha hozzászokik. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.2. lecke: BE ÉS KILÉPÉS A VIMBŐL + + + !! MEGJ: Mielőtt végrehajtja az alábbi lépéseket, olvassa végig a leckét !! + + 1. Nyomja meg az gombot (hogy biztosan normál módban legyen). + + 2. Írja: :q! . + +---> Ezzel kilép a szerkesztőből a változások MENTÉSE NÉLKÜL. + Ha menteni szeretné a változásokat és kilépni, írja: + :wq + + 3. Amikor a shell promptot látja, írja be a parancsot, amely ebbe az + oktatóba hozza: + Ez valószínűleg: vimtutor + Normális esetben ezt írná: vim tutor.hu + +---> 'vim' jelenti a vimbe belépést, 'tutor.hu' a fájl, amit szerkeszteni kíván. + + 4. Ha megjegyezte a lépéseket és biztos magában, hajtsa végre a lépéseket + 1-től 3-ig, hogy kilépjen és visszatérjen a szerkesztőbe. Azután + menjen az 1.1.3. leckére. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.3. lecke: SZÖVEG SZERKESZTÉSE - TÖRLÉS + + +** Normál módban nyomjon x-et, hogy a kurzor alatti karaktert törölje. ** + + 1. Mozgassa a kurzort a ---> kezdetű sorra! + + 2. A hibák kijavításához mozgassa a kurzort amíg a törlendő karakter + fölé nem ér. + + 3. Nyomja meg az x gombot, hogy törölje a nem kívánt karaktert. + + 4. Ismételje a 2, 3, 4-es lépéseket, hogy kijavítsa a mondatot. + +---> ŐŐszi éjjjell izziik aa galaggonya rruuhája. + + 5. Ha a sor helyes, ugorjon a 1.1.4. leckére. + +MEGJ: A tanulás során ne memorizálni próbáljon, hanem használat során tanuljon. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.4. lecke: SZÖVEG SZERKESZTÉSE - BESZÚRÁS + + + ** Normál módban i megnyomásával lehet beilleszteni. ** + + 1. Az alábbi első ---> kezdetű sorra menjen. + + 2. Ahhoz, hogy az elsőt azonossá tegye a másodikkal, mozgassa a kurzort + az első karakterre, amely UTÁN szöveget kell beszúrni. + + 3. Nyomjon i-t és írja be a megfelelő szöveget. + + 4. Amikor mindent beírt, nyomjon -et, hogy Normál módba visszatérjen. + Ismételje a 2 és 4 közötti lépéseket, hogy kijavítsa a mondatot. + +---> Az átható soól hizik pár ész. +---> Az itt látható sorból hiányzik pár rész. + + 5. Ha már begyakorolta a beszúrást, menjen az alábbi összefoglalóra. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1. LECKE ÖSSZEFOGLALÓJA + + + 1. A kurzort vagy a nyilakkal vagy a hjkl gombokkal mozgathatja. + h (balra) j (le) k (fel) l (jobbra) + + 2. A Vimbe (a $ prompttól) így léphet be: vim FILENAME + + 3. A Vimből így léphet ki: :q! a változtatások eldobásával. + vagy így: :wq a változások mentésével. + + 4. A kurzor alatti karakter törlése normál módban: x + + 5. Szöveg beszúrása a kurzor után normál módban: + i gépelje be a szöveget + +MEGJ: Az megnyomása normál módba viszi, vagy megszakít egy nem befejezett + részben befejezett parancsot. + +Most folytassuk a 1.2. leckével! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.1. lecke: TÖRLŐ UTASÍTÁSOK + + + ** dw töröl a szó végéig. ** + + 1. Nyomjon -et, hogy megbizonyosodjon, hogy normál módban van! + + 2. Mozgassa a kurzort a ---> kezdetű sorra! + + 3. Mozgassa a kurzort arra annak a szónak az elejére, amit törölni szeretne. + Törölje az állatokat a mondatból. + + 4. A szó törléséhez írja: dw + + MEGJ: Ha rosszul kezdte az utasítást csak nyomjon gombot + a megszakításához. + +---> Pár szó kutya nem uhu illik pingvin a mondatba tehén. + + 5. Ismételje a 3 és 4 közötti utasításokat amíg kell és ugorjon a 1.2.2 leckére! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.2. lecke: MÉG TÖBB TÖRLŐ UTASÍTÁS + + + ** d$ beírásával a sor végéig törölhet. ** + + 1. Nyomjon -et, hogy megbizonyosodjon, hogy normál módban van! + + 2. Mozgassa a kurzort a ---> kezdetű sorra! + + 3. Mozgassa a kurzort a helyes sor végére (az első . UTÁN)! + + 4. d$ begépelésével törölje a sor végét! + +---> Valaki a sor végét kétszer gépelte be. kétszer gépelte be. + + + 5. Menjen a 1.2.3. leckére, hogy megértse mi történt! + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.3. lecke: UTASÍTÁSOKRÓL ÉS MOZGÁSOKRÓL + + + A d (delete=törlés) utasítás formája a következő: + + [szám] d mozgás VAGY d [szám] mozgás + Ahol: + szám - hányszor hajtódjon végre a parancs (elhagyható, alapérték=1). + d - a törlés (delete) utasítás. + mozgás - amin a parancsnak teljesülnie kell (alább listázva). + + Mozgások rövid listája: + w - a kurzortól a szó végéig, beleértve a szóközt. + e - a kurzortól a szó végéig, NEM beleértve a szóközt. + $ - a kurzortól a sor végéig. + +MEGJ: Csupán a mozgás begépelésével (parancs nélkül) + a kurzor mozgás által megadott helyre kerül. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.4. lecke: EGÉSZ SOROK FELDOLGOZÁSA + + + ** dd beírásával törölheti az egész sort. ** + + A teljes sor törlésének gyakorisága miatt a Vi tervezői elhatározták, + hogy könnyebb lenne csupán a d-t kétszer megnyomni, hogy egy sort töröljünk. + + 1. Mozgassa a kurzort az alábbi kifejezések második sorára! + 2. dd begépelésével törölje a sort! + 3. Menjen a 3. (eredetileg 4.) sorra! + 4. 2dd (ugyebár szám-utasítás-mozgás) begépelésével töröljön két sort! + + 1) Alvó szegek a jéghideg homokban, + 2) - kezdi a költő - + 3) Plakátmagányban ázó éjjelek. + 4) Pingvinek ne féljetek, + 5) Távolról egy vaku villant, + 6) Égve hagytad a folyosón a villanyt. + 7) Ma ontják véremet. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.5. lecke: A VISSZAVONÁS (UNDO) PARANCS + + +** u gépelésével visszavonható az utolsó parancs, U az egész sort helyreállítja. ** + + 1. Menjünk az alábbi ---> kezdetű sor első hibájára! + 2. x lenyomásával törölje az első felesleges karaktert! + 3. u megnyomásával vonja vissza az utolsónak végrehajtott utasítást! + 4. Másodjára javítson ki minden hibát a sorban az x utasítással! + 5. Most nagy U -val állítsa vissza a sor eredeti állapotát! + 6. Nyomja meg az u gombot párszor, hogy az U és az azt megelőző utasításokat + visszaállítsa! + 7. CTRL-R (CTRL gomb lenyomása mellett üssön R-t) párszor csinálja újra a + visszavont parancsokat (redo)! + +---> Javíítsa a hhibákaat ebbben a sooorban majd állítsa visszaaa az eredetit. + + 8. Ezek nagyon hasznos parancsok. Most ugorjon a 1.2. lecke összefoglalójára. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2. LECKE ÖSSZEFOGLALÓJA + + + 1. Törlés a kurzortól a szó végéig: dw + + 2. Törlés a kurzortól a sor végéig: d$ + + 3. Egész sor törlése: dd + + 4. Egy utasítás alakja normál módban: + + [szám] utasítás mozgás VAGY utasítás [szám] mozgás + ahol: + szám - hányszor ismételjük a parancsot + utasítás - mit tegyünk, pl. d a törléskor + mozgás - mire hasson az utasítás, például w (szó=word), + $ (a sor végéig), stb. + + 5. Az előző tett visszavonása (undo): u (kis u) + A sor összes változásának visszavonása: U (nagy U) + Visszavonások visszavonása: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.1. lecke: A BEILLESZTÉS (PUT) PARANCS + + + ** p leütésével az utolsónak töröltet a kurzor után illeszthetjük. ** + + 1. Mozgassuk a kurzort az alábbi sorok első sorára. + + 2. dd leütésével töröljük a sort és eltárolódik a Vim pufferében. + + 3. Mozgassuk a kurzort azelőtt a sor ELŐTTI sorba, ahová mozgatni + szeretnénk a törölt sort. + + 4. Normál módban írjunk p betűt a törölt sor beillesztéséhez. + + 5. Folytassuk a 2-4. utasításokkal hogy a helyes sorrendet kapjuk. + + d) Can you learn too? + b) Violets are blue, + c) Intelligence is learned, + a) Roses are red, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.2. lecke: AZ ÁTÍRÁS (REPLACE) PARANCS + + +** r és a karakterek leütésével a kurzor alatti karaktert megváltoztatjuk. ** + + 1. Mozgassuk a kurzort az első ---> kezdetű sorra! + + 2. Mozgassuk a kurzort az első hiba fölé! + + 3. r majd a kívánt karakter leütésével változtassuk meg a hibásat! + + 4. A 2. és 3. lépésekkel javítsuk az összes hibát! + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. Menjünk a 1.3.2. leckére! + +MEGJ: Emlékezzen, hogy nem memorizálással, hanem gyakorlással tanuljon. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.3. lecke: A CSERE (CHANGE) PARANCS + + + ** A szó egy részének megváltoztatásához írjuk: cw . ** + + 1. Mozgassuk a kurzort az első ---> kezdetű sorra! + + 2. Vigye a kurzort a Ezen szó z betűje fölé! + + 3. cw és a helyes szórész (itt 'bben') beírásával javítsa a szót! + + 4. lenyomása után a következő hibára ugorjon (az első cserélendő + karakterre)! + + 5. A 3. és 4. lépések ismétlésével az első mondatot tegye a másodikkal + azonossá! + +---> Ezen a sorrrrr pár szóra meg kell változzanak a change utaskíréső. +---> Ebben a sorban pár szót meg kell változtatni a change utasítással. + +Vegyük észre, hogy a cw nem csak a szót írja át, hanem beszúró +(insert) módba vált. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.4. lecke: TÖBBFÉLE VÁLTOZTATÁS c-VEL + + + ** A c utasítás használható ugyanazokkal az mozgásokkal mint a törlés ** + + 1. A change utasítás a törléssel azonosan viselkedik. A forma: + + [szám] c mozgás OR c [szám] mozgás + + 2. A mozgások is azonosak, pl. w (szó), $ (sorvég), stb. + + 3. Mozgassuk a kurzort az első ---> kezdetű sorra! + + 4. Menjünk az első hibára! + + 5. c$ begépelésével a sorvégeket tegyük azonossá és nyomjunk -et! + +---> Ennek a sornak a vége kiigazításra szorul, hogy megegyezzen a másodikkal. +---> Ennek a sornak a vége a c$ paranccsal változtatható meg. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3. LECKE ÖSSZEFOGLALÓJA + + + 1. A már törölt sort beillesztéséhez nyomjunk p-t. Ez a törölt szöveget + a kurzor UTÁN helyezi (ha sor került törlésre, a kurzor alatti sorba). + + 2. A kurzor alatti karakter átírásához az r-et és azt a karaktert + nyomjuk, amellyel az eredetit felül szeretnénk írni. + + 3. A változtatás (c) utasítás a karaktertől az mozgás végéig + változtatja meg az mozgást. Például a cw a kurzortól a szó végéig, + a c$ a sor végéig. + + 4. A változtatás formátuma: + + [szám] c mozgás VAGY c [szám] mozgás + +Ugorjunk a következő leckére! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.1. lecke: HELY ÉS FÁJLÁLLAPOT + + + ** CTRL-g megnyomásával megnézhetjük a helyünket a fájlban és a fájl állapotát. + SHIFT-G leütésével a fájl adott sorára ugorhatunk. ** + + Megj: Olvassuk el az egész leckét a lépések végrehajtása előtt!! + + 1. Tartsuk nyomva a Ctrl gombot és nyomjunk g-t. Az állapotsor + megjelenik a lap alján a fájlnévvel és az aktuális sor sorszámával. + Jegyezzük meg a sorszámot a 3. lépéshez! + + 2. Nyomjunk Shift-G-t a lap aljára ugráshoz! + + 3. Üssük be az eredeti sor számát, majd üssünk shift-G-t! Ezzel + visszajutunk az eredeti sorra ahol Ctrl-g-t nyomtunk. + (A beírt szám NEM fog megjelenni a képernyőn.) + + 4. Ha megjegyezte a feladatot, hajtsa végre az 1-3. lépéseket! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.2. lecke: A KERESÉS (SEARCH) PARANCS + + + ** / majd a kívánt kifejezés beírásával kereshetjük meg a kifejezést. ** + + 1. Normál módban üssünk / karaktert! Ez és a kurzor megjelenik + a képernyő alján, ahogy a : utasítás is. + + 2. Írjuk be: 'hiibaa' ! Ez az a szó amit keresünk. + + 3. A kifejezés újabb kereséséhez üssük le egyszerűen: n . + A kifejezés ellenkező irányban történő kereséséhez ezt üssük be: Shift-N . + + 4. Ha visszafelé szeretne keresni, akkor ? kell a / helyett. + +---> "hiibaa" nem a helyes módja a hiba leírásának; a hiibaa egy hiba. + +Megj: Ha a keresés eléri a fájl végét, akkor az elején kezdi. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.3. lecke: ZÁRÓJELEK PÁRJÁNAK KERESÉSE + + + ** % leütésével megtaláljuk a ),], vagy } párját. ** + + 1. Helyezze a kurzort valamelyik (, [, vagy { zárójelre a ---> kezdetű + sorban! + + 2. Üssön % karaktert! + + 3. A kurzor a zárójel párjára fog ugrani. + + 4. % leütésével visszaugrik az eredeti zárójelre. + +---> Ez ( egy tesztsor (-ekkel, [-ekkel ] és {-ekkel } a sorban. )) + +Megj: Ez nagyon hasznos, ha olyan programot debugolunk, amelyben a + zárójelek nem párosak! + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.4. lecke: A HIBÁK KIJAVÍTÁSÁNAK EGY MÓDJA + + + ** :s/régi/új/g begépelésével az 'új'-ra cseréljük a 'régi'-t. ** + + 1. Menjünk a ---> kezdetű sorra! + + 2. Írjuk be: :s/eggy/egy . Ekkor csak az első változik meg a + sorban. + + 3. Most ezt írjuk: :s/eggy/egg/g amely globálisan helyettesít + a sorban, azaz minden előfordulást. + Ez a sorban minden előfordulást helyettesít. + +---> eggy heggy meggy, szembe jön eggy másik heggy. + + 4. Két sor között a karaktersor minden előfordulásának helyettesítése: + :#,#s/régi/új/g ahol #,# a két sor sorszáma. + :%s/régi/új/g a fájlbeli összes előfordulás helyettesítése. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4. LECKE ÖSSZEFOGLALÓJA + + + 1. Ctrl-g kiírja az kurzor helyét a fájlban és a fájl állapotát. + Shift-G a fájl végére megy, gg az elejére. Egy szám után + Shift-G az adott számú sorra ugrik. + + 2. / után egy kifejezés ELŐREFELE keresi a kifejezést. + 2. ? után egy kifejezés VISSZAFELE keresi a kifejezést. + Egy keresés után az n a következő előfordulást keresi azonos irányban + Shift-N az ellenkező irányban keres. + + 3. % begépelésével, ha (,),[,],{, vagy } karakteren vagyunk a zárójel + párjára ugrik. + + 4. az első régi helyettesítése újjal a sorban :s/régi/új + az összes régi helyettesítése újjal a sorban :s/régi/új/g + két sor közötti kifejezésekre :#,#s/régi/új/g + # helyén az aktuális sor (.) és az utolsó ($) is állhat :.,$/régi/új/g + A fájlbeli összes előfordulás helyettesítése :%s/régi/új/g + Mindenkori megerősítésre vár 'c' hatására :%s/régi/új/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.1. lecke: KÜLSŐ PARANCS VÉGREHAJTÁSA + + + ** :! után külső parancsot írva végrehajtódik a parancs. ** + + 1. Írjuk be az ismerős : parancsot, hogy a kurzort a képernyő aljára + helyezzük. Ez lehetővé teszi egy parancs beírását. + + 2. ! (felkiáltójel) beírásával tegyük lehetővé külső héj (shell)-parancs + végrehajtását. + + 3. Írjunk például ls parancsot a ! után majd üssünk -t. Ez ki + fogja listázni a könyvtárunkat ugyanúgy, mintha a shell promptnál + lennénk. Vagy írja ezt :!dir ha az ls nem működik. + +Megj: Ilymódon bármely külső utasítás végrehajtható. + +Megj: Minden : parancs után -t kell ütni. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.2. lecke: BŐVEBBEN A FÁJLOK ÍRÁSÁRÓL + + + ** A fájlok változásait így írhatjuk ki :w FÁJLNÉV. ** + + 1. :!dir vagy :!ls beírásával listázzuk a könyvtárunkat! + Ön már tudja, hogy -t kell ütnie utána. + + 2. Válasszon egy fájlnevet, amely még nem létezik pl. TESZT! + + 3. Írja: :w TESZT (ahol TESZT a választott fájlnév)! + + 4. Ez elmenti a teljes fájlt (a Vim oktatóját) TESZT néven. + Ellenőrzésképp írjuk ismét :!dir hogy lássuk a könyvtárat! + (Felfelé gombbal : után az előző utasítások visszahozhatóak.) + +Megj: Ha Ön kilépne a Vimből és és visszatérne a TESZT fájlnévvel, akkor a + fájl az oktató mentéskori pontos másolata lenne. + + 5. Távolítsa el a fájlt (MS-DOS): :!del TESZT + vagy (Unix): :!rm TESZT + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.3. lecke: EGY KIVÁLASZTOTT RÉSZ KIÍRÁSA + + + ** A fájl egy részének kiírásához írja :#,# w FÁJLNÉV ** + + 1. :!dir vagy :!ls beírásával listázza a könyvtárat, és válasszon egy + megfelelő fájlnevet, pl. TESZT. + + 2. Mozgassa a kurzort ennek az oldalnak a tetejére, és nyomjon + Ctrl-g-t, hogy megtudja a sorszámot. JEGYEZZE MEG A SZÁMOT! + + 3. Most menjen a lap aljára, és üsse be ismét: Ctrl-g. EZT A SZÁMOT + IS JEGYEZZE MEG! + + 4. Ha csak ezt a részét szeretné menteni a fájlnak, írja :#,# w TESZT + ahol #,# a két sorszám, amit megjegyzett, TESZT az Ön fájlneve. + + 5. Ismét nézze meg, hogy a fájl ott van (:!dir) de NE törölje. + + 6. Vimben létezik egy másik lehetőség: nyomja meg a Shift-V gombpárt + az első menteni kívánt soron, majd menjen le az utolsóra, ezután + írja :w TESZT2 Ekkor a TESZT2 fájlba kerül a kijelölt rész. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.4. lecke: FÁJLOK VISSZAÁLLÍTÁSA ÉS ÖSSZEFŰZÉSE + + + ** Egy fájl tartalmának beillesztéséhez írja :r FÁJLNÉV ** + + 1. :!dir beírásával nézze meg, hogy az Ön TESZT fájlja létezik még. + + 2. Helyezze a kurzort ennek az oldalnak a tetejére. + +MEGJ: A 3. lépés után az 1.5.3. leckét fogja látni. Azután LEFELÉ indulva + keresse meg ismét ezt a leckét. + + 3. Most szúrja be a TESZT nevű fájlt a :r TESZT paranccsal, ahol + TESZT az Ön fájljának a neve. + +MEGJ: A fájl, amit beillesztett a kurzora alatt helyezkedik el. + + 4. Hogy ellenőrizzük, hogy a fájlt tényleg beillesztettük, menjen + vissza, és nézze meg, hogy kétszer szerepel az 1.5.3. lecke! Az eredeti + mellett a fájlból bemásolt is ott van. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5. LECKE ÖSSZEFOGLALÓJA + + + 1. :!parancs végrehajt egy külső utasítást. + + Pár hasznos példa: + (MS-DOS) (Unix) + :!dir :!ls - könyvtárlista kiírása. + :!del FÁJLNÉV :!rm FÁJLNÉV - FÁJLNÉV nevű fájl törlése. + + 2. :w FÁJLNÉV kiírja a jelenlegi Vim-fájlt a lemezre FÁJNÉV néven. + + 3. :#,#w FÁJLNÉV kiírja a két sorszám (#) közötti sorokat FÁJLNÉV-be + Másik lehetőség, hogy a kezdősornál Shift-v-t nyom lemegy az utolsó + sorra, majd ezt üti be :w FÁJLNÉV + + 4. :r FÁJLNÉV beolvassa a FÁJLNÉV fájlt és behelyezi a jelenlegi fájlba + a kurzorpozíció utáni sorba. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.1. lecke: A MEGNYITÁS (OPEN) PARANCS + + +** o beírásával nyit egy új sort a kurzor alatt és beszúró módba vált ** + + 1. Mozgassuk a kurzort a ---> kezdetű sorra. + + 2. o (kicsi) beírásával nyisson egy sort a kurzor ALATT! Ekkor + automatikusan beszúró (insert) módba kerül. + + 3. Másolja le a ---> jelű sort és megnyomásával lépjen ki + a beszúró módból. + +---> Az o lenyomása után a kurzor a következő sor elején áll beszúró módban. + + 4. A kurzor FELETTI sor megnyitásához egyszerűen nagy O betűt írjon +kicsi helyett. Próbálja ki a következő soron! +Nyisson egy új sort efelett Shift-O megnyomásával, mialatt a kurzor +ezen a soron áll. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.2. lecke: AZ APPEND PARANCS + + + ** a lenyomásával a kurzor UTÁN szúrhatunk szöveget. ** + + 1. Mozgassuk a kurzort a következő ---> kezdetű sor végére úgy, + hogy normál módban $-t ír be. + + 2. Kis "a" leütésével szöveget szúrhat be AMÖGÉ a karakter mögé, + amelyen a kurzor áll. + (A nagy "A" az egész sor végére írja a szöveget.) + +Megj: A Vimben a sor legvégére is lehet állni, azonban ez elődjében + a Vi-ban nem lehetséges, ezért abban az a nélkül elég körülményes + a sor végéhez szöveget írni. + + 3. Egészítse ki az első sort. Vegye észre, hogy az a utasítás (append) + teljesen egyezik az i-vel (insert) csupán a beszúrt szöveg helye + különbözik. + +---> Ez a sor lehetővé teszi Önnek, hogy gyakorolja +---> Ez a sor lehetővé teszi Önnek, hogy gyakorolja a sor végére beillesztést. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.3. lecke: AZ ÁTÍRÁS MÁSIK VÁLTOZATA + + + ** Nagy R beírásával írhat felül több mint egy karaktert. ** + + 1. Mozgassuk a kurzort az első ---> kezdetű sorra! + + 2. Helyezze a kurzort az első szó elejére amely eltér a második + ---> kezdetű sor tartalmától (a 'az utolsóval' résztől). + + 3. Nyomjon R karaktert és írja át a szöveg maradékát az első sorban + úgy, hogy a két sor egyező legyen. + +---> Az első sort tegye azonossá az utolsóval: használja a gombokat. +---> Az első sort tegye azonossá a másodikkal: írjon R-t és az új szöveget. + + 4. Jegyezzük meg, ha -et nyomok, akkor a változatlanul hagyott + szövegek változatlanok maradnak. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.4. lecke: BEÁLLÍTÁSOK + +** Állítsuk be, hogy a keresés és a helyettesítés ne függjön kis/NAGYbetűktől ** + + 1. Keressük meg az 'ignore'-t az beírva: + /ignore + Ezt ismételjük többször az n billentyűvel + + 2. Állítsuk be az 'ic' (Ignore case) lehetőséget így: + :set ic + + 3. Most keressünk ismét az 'ignore'-ra n-nel + Ismételjük meg többször a keresést: n + + 4. Állítsuk be a 'hlsearch' és 'incsearch' lehetőségeket: + :set hls is + + 5. Most ismét írjuk be a keresőparancsot, és lássuk mi történik: + /ignore + + 6. A kiemelést szüntessük meg alábbi utasítások egyikével: + :set nohls vagy :nohlsearch +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6. LECKE ÖSSZEFOGLALÓJA + + + 1. o beírásával új sort nyitunk meg a sor ALATT és a kurzor az új + sorban lesz beszúrás-módban. + Nagy O a sor FELETT nyit új sort, és oda kerül a kurzor. + + 2. a beírásával az aktuális karaktertől UTÁN (jobbra) szúrhatunk be szöveget. + Nagy A automatikusan a sor legvégéhez adja hozzá a szöveget. + + 3. A nagy R beütésével átíró (replace) módba kerülünk lenyomásáig. + + 4. ":set xxx" beírásával az "xxx" opció állítható be. + + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7. lecke: AZ ON-LINE SÚGÓ PARANCSAI + + + ** Az online súgórendszer használata ** + + A Vim részletes súgóval rendelkezik. Induláshoz a következők egyikét + tegye: + - nyomja meg a gombot (ha van ilyen) + - nyomja meg az gombot (ha van ilyen) + - írja be: :help + + :q beírásával zárhatja be a súgóablakot. + + Majdnem minden témakörről találhat súgót, argumentum megadásával + ":help" utasítás . Próbálja az alábbiakat ki (-t ne felejtsük): + + :help w + :help c_, 2006-2012 + diff --git a/git/usr/share/vim/vim92/tutor/tutor1.it b/git/usr/share/vim/vim92/tutor/tutor1.it new file mode 100644 index 0000000000000000000000000000000000000000..235a1920d38299786182f7d88bff17f5dbf50b08 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.it @@ -0,0 +1,967 @@ +=============================================================================== += Benvenuto alla G u i d a all'Editor V I M - Versione 1.7 = +=============================================================================== + + Vim è un Editor molto potente ed ha parecchi comandi, troppi per + spiegarli tutti in una guida come questa. Questa guida serve a + descrivere quei comandi che ti permettono di usare facilmente + Vim come Editor di uso generale. + + Il tempo necessario per completare la guida è circa 25-30 minuti, + a seconda di quanto tempo dedichi alla sperimentazione. + + ATTENZIONE! + I comandi nelle lezioni modificano questo testo. Fai una copia di questo + file per esercitarti (se hai usato "vimtutor", stai già usando una copia). + + È importante non scordare che questa guida vuole insegnare tramite + l'uso. Questo vuol dire che devi eseguire i comandi per impararli + davvero. Se leggi il testo e basta, dimenticherai presto i comandi! + + Adesso, assicurati che il tasto BLOCCA-MAIUSCOLO non sia schiacciato + e premi il tasto j tanto da muovere il cursore fino a che la + Lezione 1.1.1 riempia completamente lo schermo. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.1: MOVIMENTI DEL CURSORE + + + ** Per muovere il cursore, premi i tasti h,j,k,l come indicato. ** + ^ + k NOTA: Il tasto h è a sinistra e muove a sinistra. + < h l > Il tasto l è a destra e muove a destra. + j Il tasto j ricorda una freccia in giù. + v + 1. Muovi il cursore sullo schermo finché non ti senti a tuo agio. + + 2. Tieni schiacciato il tasto "giù" (j) finché non si ripete il movimento. + Adesso sai come arrivare fino alla lezione seguente. + + 3. Usando il tasto "giù" spostati alla Lezione 1.1.2. + +NOTA: Quando non sei sicuro del tasto che hai premuto, premi per andare + in Modalità Normale [Normal Mode]. Poi ri-immetti il comando che volevi. + +NOTA: I tasti con le frecce fanno lo stesso servizio. Ma usando hjkl riesci + a muoverti molto più rapidamente, dopo che ci si abitua. Davvero! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.2: USCIRE DA VIM + + + !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!! + + 1. Premi il tasto (per assicurarti di essere in Modalità Normale). + + 2. Batti: :q! . + Così esci dall'Editor SCARTANDO qualsiasi modifica fatta. + + 3. Quando vedi il PROMPT della Shell, batti il comando con cui sei arrivato + qui. Sarebbe: vimtutor + + 4. Se hai memorizzato questi comandi e ti senti pronto, esegui i passi + da 1 a 3 per uscire e rientrare nell'Editor. + +NOTA: :q! SCARTA qualsiasi modifica fatta. In una delle prossime + lezioni imparerai come salvare un file che hai modificato. + + 5. Muovi in giù il cursore per passare alla lezione 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.3: MODIFICA DI TESTI - CANCELLAZIONE + + + ** Premere x per cancellare il carattere sotto al cursore ** + + 1. Muovi il cursore alla linea più sotto, indicata da --->. + + 2. Per correggere errori, muovi il cursore fino a posizionarlo sopra il + carattere da cancellare. + + 3. Premi il tasto x per cancellare il carattere sbagliato. + + 4. Ripeti i passi da 2 a 4 finché la frase è corretta. + +---> La mmucca saltòò finnoo allaa lunnna. + + 5. Ora che la linea è corretta, vai alla Lezione 1.1.4 + +NOTA: Mentre segui questa guida, non cercare di imparare a memoria, + ma impara facendo pratica. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.4: MODIFICA DI TESTI - INSERIMENTO + + + ** Premere i per inserire testo. ** + + 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. + + 2. Per rendere la prima linea uguale alla seconda, muovi il cursore sopra + il primo carattere DOPO la posizione in cui il testo va inserito. + + 3. Premi i e batti le aggiunte opportune. + + 4. Quando un errore è corretto, premi per tornare in Modalità Normale. + Ripeti i passi da 2 a 4 fino a completare la correzione della frase. + +---> C'era del tsto mncnt questa . +---> C'era del testo mancante da questa linea. + + 5. Quando sei a tuo agio nell'inserimento di testo vai alla lezione 1.1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.5: MODIFICA DI TESTI - AGGIUNTA + + + ** Premere A per aggiungere testo a fine linea. ** + + 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. + Non importa dove è posizionato il cursore sulla linea stessa. + + 2. Batti A e inserisci le necessarie aggiunte. + + 3. Alla fine della aggiunta premi per tornare in modalità Normale. + + 4. Muovi il cursore alla seconda linea indicata ---> e ripeti + i passi 2 e 3 per correggere questa frase. + +---> C'è del testo che manca da qu + C'è del testo che manca da questa linea. +---> C'è anche del testo che ma + C'è anche del testo che manca qui. + + 5. Quando sei a tuo agio nell'aggiunta di testo vai alla lezione 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1.6: MODIFICARE UN FILE + + + ** Usare :wq per salvare un file e uscire. ** + + !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!! + + 1. Esci da Vim come hai fatto nella lezione 1.1.2: :q! + + 2. Quando vedi il PROMPT della Shell, batti il comando: vim tutor + 'vim' è il comando per richiamare Vim, 'tutor' è il nome del file che + desideri modificare. Usa un file che possa essere modificato. + + 3. Inserisci e cancella testo come hai imparato nelle lezioni precedenti. + + 4. Salva il file ed esci da Vim con: :wq + + 5. Rientra in vimtutor e scendi al sommario che segue. + + 6. Dopo aver letto i passi qui sopra ed averli compresi: eseguili. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.1 SOMMARIO + + + 1. Il cursore si muove usando i tasti con le frecce o i tasti hjkl. + h (sinistra) j (giù) k (su) l (destra) + + 2. Per eseguire Vim dal PROMPT della Shell batti: vim NOMEFILE + + 3. Per uscire da Vim batti: :q! per uscire senza salvare. + oppure batti: :wq per uscire salvando modifiche. + + 4. Per cancellare il carattere sotto al cursore batti: x + + 5. Per inserire testo subito prima del cursore batti: + i batti testo inserito inserisci prima del cursore + A batti testo aggiunto aggiungi a fine linea + +NOTA: premendo ritornerai in Modalità Normale o annullerai + un comando errato che puoi aver inserito in parte. + +Ora continua con la Lezione 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.1: COMANDI DI CANCELLAZIONE + + + ** Batti dw per cancellare una parola. ** + + 1. Premi per accertarti di essere in Modalità Normale. + + 2. Muovi il cursore fino alla linea qui sotto, indicata da --->. + + 3. Muovi il cursore all'inizio di una parola che vuoi cancellare. + + 4. Batti dw per cancellare la parola. + +NOTA: La lettera d sarà visibile sull'ultima linea dello schermo mentre la + batti. Vim attende che tu batta w . Se vedi una lettera diversa + da d hai battuto qualcosa di sbagliato; premi e ricomincia. + +---> Ci sono le alcune parole gioia che non c'entrano carta in questa frase. + + 5. Ripeti i passi 3 e 4 finché la frase è corretta, poi vai alla Lezione 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.2: ALTRI COMANDI DI CANCELLAZIONE + + + ** Batti d$ per cancellare fino a fine linea. ** + + 1. Premi per accertarti di essere in Modalità Normale. + + 2. Muovi il cursore fino alla linea qui sotto, indicata da --->. + + 3. Muovi il cursore alla fine della linea corretta (DOPO il primo . ). + + 4. Batti d$ per cancellare fino a fine linea. + +---> Qualcuno ha battuto la fine di questa linea due volte. linea due volte. + + + 5. Vai alla Lezione 1.2.3 per capire il funzionamento di questo comando. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.3: OPERATORI E MOVIMENTI + + + Molti comandi di modifica testi consistono in un operatore e un movimento. + Il formato del comando di cancellazione con l'operatore d è il seguente: + + d movimento + + Dove: + d - è l'operatore di cancellazione + movimento - indica dove l'operatore va applicato (lista qui sotto). + + Breve lista di movimenti: + w - fino a inizio della parola seguente, ESCLUSO il suo primo carattere. + e - alla fine della parola corrente, COMPRESO il suo ultimo carattere. + $ - dal cursore fino a fine linea, COMPRESO l'ultimo carattere della linea. + + Quindi se batti de cancelli dal cursore fino a fine parola. + +NOTA: Se batti solo il movimento mentre sei in Modalità Normale, senza + nessun operatore, il cursore si muoverà come specificato. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.4: USO DI UN CONTATORE PER UN MOVIMENTO + + + ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. ** + + 1. Muovi il cursore fino all'inizio della linea qui sotto, indicata da --->. + + 2. Batti 2w per spostare il cursore due parole più avanti. + + 3. Batti 3e per spostare il cursore alla fine della terza parola seguente. + + 4. Batti 0 (zero) per posizionarti all'inizio della linea. + + 5. Ripeti i passi 2 e 3 usando numeri differenti. + +---> Questa è solo una linea con parole all'interno della quale puoi muoverti. + + 6. Vai alla Lezione 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.5: USO DI UN CONTATORE PER CANCELLARE DI PIU' + + + ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. ** + + Nella combinazione dell'operatore cancella e di un movimento, descritto prima, + inserite un contatore prima del movimento per cancellare di più: + d numero movimento + + 1. Muovi il cursore alla prima parola MAIUSCOLA nella riga indicata da --->. + + 2. Batti d2w per cancellare le due parole MAIUSCOLE + + 3. Ripeti i passi 1 e 2 con un contatore diverso per cancellare le parole + MAIUSCOLE consecutive con un solo comando + +---> questa ABC DE linea FGHI JK LMN OP di parole è Q RS TUV ora ripulita. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.6: LAVORARE SU LINEE INTERE + + ** Batti dd per cancellare un'intera linea. ** + + Per la frequenza con cui capita di cancellare linee intere, chi ha + disegnato Vi ha deciso che sarebbe stato più semplice battere + due d consecutive per cancellare una linea. + + 1. Muovi il cursore alla linea 2) nella frase qui sotto. + 2. Batti dd per cancellare la linea. + 3. Ora spostati alla linea 4). + 4. Batti 2dd per cancellare due linee. + +---> 1) Le rose sono rosse, +---> 2) Il fango è divertente, +---> 3) Le viole sono blu, +---> 4) Io ho un'automobile, +---> 5) Gli orologi segnano il tempo, +---> 6) Lo zucchero è dolce, +---> 7) E così sei anche tu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2.7: IL COMANDO UNDO [ANNULLA] + + ** Premi u per annullare gli ultimi comandi eseguiti. ** + ** Premi U per annullare le modifiche all'ultima linea. ** + + 1. Muovi il cursore fino alla linea qui sotto, indicata da --->. + e posizionati sul primo errore. + 2. Batti x per cancellare il primo carattere sbagliato. + 3. Adesso batti u per annullare l'ultimo comando eseguito. + 4. Ora invece, correggi tutti gli errori sulla linea usando il comando x . + 5. Adesso batti una U Maiuscola per riportare la linea al suo stato originale. + 6. Adesso batti u più volte per annullare la U e i comandi precedenti. + 7. Adesso batti più volte CTRL-r (tieni il tasto CTRL schiacciato + mentre batti r) per rieseguire i comandi (annullare l'annullamento). + +---> Correeggi gli errori ssu quuesta linea e riimpiazzali coon "undo". + + 8. Questi comandi sono molto utili. Ora spostati al Sommario della Lezione 1.2. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.2 SOMMARIO + + + 1. Per cancellare dal cursore fino alla parola seguente batti: dw + 2. Per cancellare dal cursore fino alla fine della linea batti: d$ + 3. Per cancellare un'intera linea batti: dd + 4. Per eseguire più volte un movimento, mettici davanti un numero: 2w + 5. Il formato per un comando di modifica è: + + operatore [numero] movimento + dove: + operatore - indica il da farsi, ad es. d per [delete] cancellare + [numero] - contatore facoltativo di ripetizione del movimento + movimento - spostamento nel testo su cui operare, ad es. + w [word] parola, $ (fino a fine linea), etc. + + 6. Per andare a inizio linea usate uno zero: 0 + 7. Per annullare i comandi precedenti, batti: u (u minuscola) + Per annullare tutte le modifiche a una linea batti: U (U maiuscola) + Per annullare l'annullamento ["redo"] batti: CTRL-r + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.3.1: IL COMANDO PUT [METTI, PONI] + + + ** Batti p per porre [put] testo (cancellato prima) dopo il cursore. ** + + 1. Muovi il cursore alla prima linea indicata con ---> qui in basso. + + 2. Batti dd per cancellare la linea e depositarla in un registro di Vim. + + 3. Muovi il cursore fino alla linea c) SOPRA quella dove andrebbe messa + la linea appena cancellata. + + 4. Batti p per mettere la linea sotto il cursore. + + 5. Ripeti i passi da 2 a 4 per mettere tutte le linee nel giusto ordine. + +---> d) Puoi impararla tu? +---> b) Le viole sono blu, +---> c) La saggezza si impara, +---> a) Le rose sono rosse, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.3.2: IL COMANDO REPLACE [RIMPIAZZARE] + + + ** Batti rx per rimpiazzare il carattere sotto al cursore con x . ** + + 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. + + 2. Muovi il cursore fino a posizionarlo sopra il primo errore. + + 3. Batti r e poi il carattere che dovrebbe stare qui. + + 4. Ripeti i passi 2 e 3 finché la prima linea è uguale alla seconda. + +---> Ammattendo quetta lince, qualcuno ho predato alcuni tosti sballiati! +---> Immettendo questa linea, qualcuno ha premuto alcuni tasti sbagliati! + + 5. Ora passa alla Lezione 1.3.3. + +NOTA: Ricordati che dovresti imparare con la pratica, non solo leggendo. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.3.3: L'OPERATORE CHANGE [CAMBIA] + + + ** Per cambiare fino alla fine di una parola, batti ce . ** + + 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. + + 2. Posiziona il cursore alla u in lubw. + + 3. Batti ce e la parola corretta (in questo caso, batti inea ). + + 4. Premi e vai sul prossimo carattere da modificare. + + 5. Ripeti i passi 3 e 4 finché la prima frase è uguale alla seconda. + +---> Questa lubw ha alcune pptfd da asdert usgfk l'operatore CHANGE. +---> Questa linea ha alcune parole da cambiare usando l'operatore CHANGE. + +Nota che ce cancella la parola, e ti mette anche in Modalità Inserimento + [Insert Mode] + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.3.4: ALTRI CAMBIAMENTI USANDO c + +** L'operatore c [CHANGE] agisce sugli stessi movimenti di d [DELETE] ** + + 1. L'operatore CHANGE si comporta come DELETE. Il formato è: + + c [numero] movimento + + 2. I movimenti sono gli stessi, + ad es. w (word, parola), $ (fine linea), etc. + + 3. Muovi il cursore alla prima linea qui sotto, indicata da --->. + + 4. Posiziona il cursore al primo errore. + + 5. Batti c$ e inserisci resto della linea utilizzando come modello la + linea seguente, e quando hai finito premi + +---> La fine di questa linea deve essere aiutata a divenire come la seguente. +---> La fine di questa linea deve essere corretta usando il comando c$ . + +NOTA: Puoi usare il tasto Backspace se devi correggere errori di battitura. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.3 SOMMARIO + + + 1. Per reinserire del testo appena cancellato, batti p . Questo + inserisce [pone] il testo cancellato DOPO il cursore (se era stata tolta + una linea intera, questa verrà messa nella linea SOTTO il cursore). + + 2. Per rimpiazzare il carattere sotto il cursore, batti r e poi il + carattere che vuoi sostituire. + + 3. L'operatore change ti permette di cambiare dal cursore fino a dove + arriva il movimento. Ad es. Batti ce per cambiare dal cursore + fino alla fine della parola, c$ per cambiare fino a fine linea. + + 4. Il formato di change è: + + c [numero] movimento + +Ora vai alla prossima Lezione. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.4.1: POSIZIONAMENTO E SITUAZIONE FILE + + ** Batti CTRL-G per vedere a che punto sei nel file e la situazione ** + ** del file. Batti G per raggiungere una linea nel file. ** + + NOTA: Leggi l'intera Lezione prima di eseguire un qualsiasi passo!! + + 1. Tieni premuto il tasto CTRL e batti g . Ossia batti CTRL-G. + Un messaggio apparirà in fondo alla pagina con il NOME FILE e la + posizione nel file. Ricordati il numero della linea per il Passo 3. + +NOTA: La posizione del cursore si vede nell'angolo in basso a destra dello + schermo, se è impostata l'opzione 'ruler' (righello, vedi :help ruler). + + 2. Premi G [G Maiuscolo] per posizionarti in fondo al file. + Batti gg per posizionarti in cima al file. + + 3. Batti il numero della linea in cui ti trovavi e poi G . Questo ti + riporterà fino alla linea in cui ti trovavi quando avevi battuto CTRL-g. + + 4. Se ti senti sicuro nel farlo, esegui i passi da 1 a 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.4.2: IL COMANDO SEARCH [RICERCA] + + ** Batti / seguito da una frase per ricercare quella frase. ** + + 1. in Modalità Normale batti il carattere / . Nota che la "/" e il cursore + sono visibili in fondo dello schermo come quando si usa il comando : . + + 2. Adesso batti 'errroore' . Questa è la parola che vuoi ricercare. + + 3. Per ricercare ancora la stessa frase, batti soltanto n . + Per ricercare la stessa frase in direzione opposta, batti N . + + 4. Per ricercare una frase nella direzione opposta, usa ? al posto di / . + + 5. Per tornare dove eri prima nel file premi CTRL-O (tieni il tasto CTRL + schiacciato mentre premi la lettera o). Ripeti CTRL-O per andare ancora + indietro. Puoi usare CTRL-I per tornare in avanti. + +---> "errroore" non è il modo giusto di digitare errore; errroore è un errore. +NOTA: Quando la ricerca arriva a fine file, ricomincia dall'inizio del file, + a meno che l'opzione 'wrapscan' sia stata disattivata. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.4.3: RICERCA DI PARENTESI CORRISPONDENTI + + + ** Batti % per trovare una ),], o } corrispondente. ** + + 1. Posiziona il cursore su una (, [, o { nella linea sotto, indicata da --->. + + 2. Adesso batti il carattere % . + + 3. Il cursore si sposterà sulla parentesi corrispondente. + + 4. Batti % per muovere il cursore all'altra parentesi corrispondente. + +---> Questa ( è una linea di test con (, [ ] e { } al suo interno. )) + + +NOTA: Questo è molto utile nel "debug" di un programma con parentesi errate! + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.4.4: L'OPERATORE SOSTITUZIONE (SUBSTITUTE) + + ** Batti :s/vecchio/nuovo/g per sostituire 'nuovo' a 'vecchio'. ** + + 1. Muovi il cursore fino alla linea qui sotto, indicata da --->. + + 2. Batti :s/lla/la . Nota che questo comando cambia solo + LA PRIMA occorrenza di "lla" sulla linea. + + 3. Adesso batti :s/lla/la/g . Aggiungendo la flag g si chiede di + sostituire "globalmente" sulla linea, ossia tutte le occorrenze + di "lla" sulla linea. + +---> lla stagione migliore per lla fioritura è lla primavera. + + 4. Per cambiare ogni ricorrenza di una stringa di caratteri tra due linee, + batti :#,#s/vecchio/nuovo/g dove #,# sono i numeri che delimitano + il gruppo di linee in cui si vuole sostituire. + Batti :%s/vecchio/nuovo/g per cambiare ogni occorrenza nell'intero file. + Batti :%s/vecchio/nuovo/gc per trovare ogni occorrenza nell'intero file + ricevendo per ognuna una richiesta se + effettuare o meno la sostituzione. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.4 SOMMARIO + + +1. CTRL-G visualizza a che punto sei nel file e la situazione del file. + G [G Maiuscolo] ti porta all'ultima linea del file. + numero G ti porta alla linea con quel numero. + gg ti porta alla prima linea del file. + +2. Battendo / seguito da una frase ricerca IN AVANTI quella frase. + Battendo ? seguito da una frase ricerca ALL'INDIETRO quella frase. + DOPO una ricerca batti n per trovare la prossima occorrenza nella + stessa direzione, oppure N per cercare in direzione opposta. + CTRL-O ti porta alla posizione precedente, CTRL-I a quella più nuova. + +3. Battendo % mentre il cursore si trova su (,),[,],{, oppure } + ti posizioni sulla corrispondente parentesi. + +4. Per sostituire "nuovo" al primo "vecchio" in 1 linea batti :s/vecchio/nuovo + Per sostituire "nuovo" ad ogni "vecchio" in 1 linea batti :s/vecchio/nuovo/g + Per sostituire frasi tra 2 numeri di linea [#] batti :#,#s/vecchio/nuovo/g + Per sostituire tutte le occorrenze nel file batti :%s/vecchio/nuovo/g + Per chiedere conferma ogni volta aggiungi 'c' :%s/vecchio/nuovo/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.5.1: COME ESEGUIRE UN COMANDO ESTERNO + + + ** Batti :! seguito da un comando esterno per eseguire quel comando. ** + + 1. Batti il comando : per posizionare il cursore in fondo allo schermo. + Ciò ti permette di immettere un comando dalla linea comandi. + + 2. Adesso batti il carattere ! (punto esclamativo). Ciò ti permette di + eseguire qualsiasi comando esterno si possa eseguire nella "shell". + + 3. Ad esempio batti ls dopo il ! e poi premi . Questo + visualizza una lista della tua directory, proprio come se fossi in una + "shell". Usa :!dir se ls non funziona. [Unix: ls MS-DOS: dir] + +NOTA: E' possibile in questo modo eseguire un comando a piacere, specificando + anche dei parametri per i comandi stessi. + +NOTA: Tutti i comandi : devono essere terminati premendo + Da qui in avanti non lo ripeteremo ogni volta. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.5.2: ANCORA SULLA SCRITTURA DEI FILE + + + ** Per salvare le modifiche apportate a un testo batti :w NOMEFILE. ** + + 1. Batti :!dir or :!ls per procurarti una lista della tua directory. + Già sai che devi premere dopo aver scritto il comando. + + 2. Scegli un NOMEFILE che ancora non esista, ad es. TEST . + + 3. Adesso batti: :w TEST (dove TEST è il NOMEFILE che hai scelto). + + 4. Questo salva l'intero file ("tutor.it") con il nome di TEST. + Per verifica batti ancora :!dir o :!ls per listare la tua directory. + +NOTA: Se esci da Vim e riesegui Vim battendo vim TEST , il file aperto + sarà una copia esatta di "tutor.it" al momento del salvataggio. + + 5. Ora cancella il file battendo (MS-DOS): :!del TEST + o (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.5.3: SELEZIONARE IL TESTO DA SCRIVERE + + ** Per salvare una porzione di file, batti v movimento :w NOMEFILE ** + + 1. Muovi il cursore su questa linea. + + 2. Premi v e muovi il cursore fino alla linea numerata 5., qui sotto. + Nota che il testo viene evidenziato. + + 3. Batti il carattere : . In fondo allo schermo apparirà :'<,'> . + + 4. Batti w TEST , dove TEST è il nome di un file non ancora esistente. + Verifica che si veda :'<,'>w TEST prima di dare . + + 5. Vim scriverà nel file TEST le linee che hai selezionato. Usa :!dir + o :!ls per controllare che esiste. Non cancellarlo ora! Ti servirà + nella prossima lezione. + +NOTA: Battere v inizia una selezione visuale. Puoi muovere il cursore + come vuoi, e rendere la selezione più piccola o più grande. Poi + puoi usare un operatore per agire sul testo selezionato. + Ad es., d cancella il testo. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.5.4: INSERIRE E RIUNIRE FILE + + + ** Per inserire il contenuto di un file, batti :r NOMEFILE ** + + 1. Posiziona il cursore appena sopra questa riga. + +NOTA: Dopo aver eseguito il Passo 2 vedrai il testo della Lezione 1.5.3. + Quindi spostati IN GIU' per tornare ancora a questa Lezione. + + 2. Ora inserisci il tuo file TEST con il comando :r TEST dove TEST è + il nome che hai usato per creare il file. + Il file richiesto è inserito sotto la linea in cui si trova il cursore. + + 3. Per verificare che un file è stato inserito, torna indietro col cursore + e nota che ci sono ora 2 copie della Lezione 1.5.3, quella originale e + quella che viene dal file. + +NOTA: Puoi anche leggere l'output prodotto da un comando esterno. Ad es. + :r !ls legge l'output del comando ls e lo inserisce sotto la linea + in cui si trova il cursore. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.5 SOMMARIO + + + 1. :!comando esegue un comando esterno. + + Alcuni esempi utili sono [in MSDOS]: + :!dir - visualizza lista directory + :!del NOMEFILE - cancella file NOMEFILE. + + 2. :w NOMEFILE scrive su disco il file che stai editando con nome NOMEFILE. + + 3. v movimento :w NOMEFILE salva le linee selezionate in maniera + visuale nel file NOMEFILE. + + 4. :r NOMEFILE legge il file NOMEFILE da disco e lo inserisce nel file + che stai modificando, dopo la linea in cui è posizionato il cursore. + + 5. :r !dir legge l'output del comando dir e lo inserisce dopo la + linea in cui è posizionato il cursore. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6.1: IL COMANDO OPEN [APRIRE] + + + ** Batti o per aprire una linea sotto il cursore ** + ** e passare in Modalità Inserimento. ** + + 1. Muovi il cursore fino alla linea qui sotto, indicata da --->. + + 2. Batti la lettera minuscola o per aprire una linea sotto il cursore e + passare in Modalità Inserimento. + + 3. Poi inserisci del testo e premi per uscire dalla + Modalità Inserimento. + +---> Dopo battuto o il cursore è sulla linea aperta (in Modalità Inserimento). + + 4. Per aprire una linea SOPRA il cursore, batti una O maiuscola, invece + che una o minuscola. Prova sulla linea qui sotto. +---> Apri una linea SOPRA questa battendo O mentre il cursore è su questa linea. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6.2: IL COMANDO APPEND [AGGIUNGERE] + + ** Batti a per inserire testo DOPO il cursore. ** + + 1. Muovi il cursore all'inizio della linea qui sotto, indicata da --->. + + 2. Batti e finché il cursore arriva alla fine di li . + + 3. Batti una a (minuscola) per aggiungere testo DOPO il cursore. + + 4. Completa la parola come mostrato nella linea successiva. Premi + per uscire dalla Modalità Inserimento. + + 5. Usa e per passare alla successiva parola incompleta e ripeti i passi + 3 e 4. + +---> Questa li ti permetterà di esercit ad aggiungere testo a una linea. +---> Questa linea ti permetterà di esercitarti ad aggiungere testo a una linea. + +NOTA: a, i ed A entrano sempre in Modalità Inserimento, la sola differenza + è dove verranno inseriti i caratteri. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6.3: UN ALTRO MODO DI RIMPIAZZARE [REPLACE] + + + ** Batti una R maiuscola per rimpiazzare più di un carattere. ** + + 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. Muovi il + cursore all'inizio del primo xxx . + + 2. Ora batti R e batti il numero che vedi nella linea seguente, in modo + che rimpiazzi l' xxx . + + 3. Premi per uscire dalla Modalità Replace. Nota che il resto della + linea resta invariato. + + 4. Ripeti i passi in modo da rimpiazzare l'altro xxx . + +---> Aggiungendo 123 a xxx si ottiene xxx. +---> Aggiungendo 123 a 456 si ottiene 579. + +NOTA: La Modalità Replace è come la Modalità Inserimento, ma ogni carattere + che viene battuto ricopre un carattere esistente. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6.4: COPIA E INCOLLA DEL TESTO + + + ** usa l'operatore y per copiare del testo e p per incollarlo ** + + 1. Vai alla linea indicata da ---> qui sotto, e metti il cursore dopo "a)". + + 2. Entra in Modalità Visuale con v e metti il cursore davanti a "primo". + + 3. Batti y per copiare [yank] il testo evidenziato. + + 4. Muovi il cursore alla fine della linea successiva: j$ + + 5. Batti p per incollare [paste] il testo. Poi batti: a secondo . + + 6. Usa la Modalità Visuale per selezionare " elemento.", copialo con y , + Vai alla fine della linea successiva con j$ e incolla il testo con p . + +---> a) questo è il primo elemento. + b) + +NOTA: Puoi usare y come operatore; yw copia una parola [word]. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6.5: SET [IMPOSTA] UN'OPZIONE + + ** Imposta un'opzione per ignorare maiuscole/minuscole ** + ** durante la ricerca/sostituzione ** + + 1. Ricerca 'nota' battendo: /nota + Ripeti la ricerca più volte usando il tasto n + + 2. Imposta l'opzione 'ic' (Ignore Case, [Ignora maiuscolo/minuscolo]) + battendo: :set ic + + 3. Ora ricerca ancora 'nota' premendo il tasto n + Troverai adesso anche Nota e NOTA . + + 4. Imposta le opzioni 'hlsearch' e 'incsearch' :set hls is + + 5. Ora batti ancora il comando di ricerca, e guarda cosa succede: /nota + + 6. Per disabilitare il riconoscimento di maiuscole/minuscole batti: :set noic +NOTA: Per non evidenziare le occorrenze trovate batti: :nohlsearch +NOTA: Per ignorare maiuscole/minuscole solo per una ricerca, usa \c + nel comando di ricerca: /nota\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.6 SOMMARIO + + 1. Batti o per aggiungere una linea SOTTO il cursore ed entrare in + Modalità Inserimento. + Batti O per aggiungere una linea SOPRA il cursore. + + 2. Batti a per inserire testo DOPO il cursore. + Batti A per inserire testo alla fine della linea. + + 3. Il comando e sposta il cursore alla fine di una parola. + + 4. L'operatore y copia del testo, p incolla del testo. + + 5. Batti R per entrare in Modalità Replace, e ne esci premendo . + + 6. Batti ":set xxx" per impostare l'opzione "xxx". Alcun opzioni sono: + 'ic' 'ignorecase' ignorare maiuscole/minuscole nella ricerca + 'is' 'incsearch' mostra occorrenze parziali durante una ricerca + 'hls' 'hlsearch' evidenzia tutte le occorrenze di una ricerca + Puoi usare sia il nome completo di un'opzione che quello abbreviato. + + 7. Usa il prefisso "no" per annullare una opzione: :set noic +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.7.1: OTTENERE AIUTO + + ** Usa il sistema di aiuto on-line ** + + Vim ha un esauriente sistema di aiuto on-line. Per cominciare, prova una di + queste alternative: + - premi il tasto (se ce n'è uno) + - premi il tasto (se ce n'è uno) + - batti :help OPPURE :h + + Leggi il testo nella finestra di aiuto per vedere come funziona l'aiuto. + Batti CTRL-W CTRL-W per passare da una finestra all'altra. + Batti :q per chiudere la finestra di aiuto. + + Puoi trovare aiuto su quasi tutto, dando un argomento al comando ":help" + Prova questi (non dimenticare di premere ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.7.2: PREPARARE UNO SCRIPT INIZIALE + + ** Attiva le opzioni Vim ** + + Vim ha molte più opzioni di Vi, ma molte di esse sono predefinite inattive. + Per cominciare a usare più opzioni, devi creare un file "vimrc". + + 1. Comincia a editare il file "vimrc". Questo dipende dal tuo sistema: + :e ~/.vimrc per Unix + :e ~/_vimrc per MS-Windows + + 2. Ora leggi i contenuti del file "vimrc" distribuito come esempio: + + :r $VIMRUNTIME/vimrc_example.vim + + 3. Scrivi il file con: + :w + + La prossima volta che apri Vim, sarà abilitata la colorazione sintattica. + Puoi aggiungere a questo file "vimrc" tutte le tue impostazioni preferite. + Per maggiori informazioni batti: :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.7.3: COMPLETAMENTO + + + ** Completamento linea comandi con CTRL-D e ** + + 1. Imposta Vim in modalità compatibile: :set nocp + + 2. Guarda i file esistenti nella directory: :!ls o :!dir + + 3. Batti l'inizio di un comando: :e + + 4. Premi CTRL-D e Vim ti mostra una lista di comandi che iniziano per "e". + + 5. Premi e Vim completa per te il nome comando come ":edit". + + 6. Ora batti uno spazio e l'inizio del nome di un file esistente: :edit FIL + + 7. Premi . Vim completerà il nome del file (se è il solo possibile). + +NOTA: Il completamento è disponibile per molti comandi. Prova a battere + CTRL-D e . Particolarmente utile per :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 1.7 Sommario + + + 1. Batti :help o premi o per aprire una finestra di aiuto. + + 2. Batti :help comando per avere aiuto su comando . + + 3. Batti CTRL-W CTRL-W per saltare alla prossima finestra. + + 4. Batti :q per chiudere la finestra di aiuto. + + 5. Crea uno script iniziale vimrc contenente le tue impostazioni preferite. + + 6. Mentre batti un comando : , premi CTRL-D per vedere i possibili + completamenti. Premi per usare il completamento desiderato. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Qui finisce la Guida a Vim. Il suo intento è di fornire una breve panoramica + dell'Editor Vim, che ti consenta di usare l'Editor abbastanza facilmente. + Questa guida è largamente incompleta poiché Vim ha moltissimi altri comandi. + Puoi anche leggere il manuale utente (anche in italiano): ":help user-manual". + + Per ulteriore lettura e studio, raccomandiamo: + Vim - Vi Improved - di Steve Oualline Editore: New Riders + Il primo libro completamente dedicato a Vim. Utile specie per principianti. + Contiene molti esempi e figure. + Vedi https://iccf-holland.org/click5.html + + Quest'altro libro è più su Vi che su Vim, ma è pure consigliato: + Learning the Vi Editor - di Linda Lamb e Arnold Robbins + Editore: O'Reilly & Associates Inc. + È un buon libro per imparare quasi tutto ciò che puoi voler fare con Vi. + Ne esiste una traduzione italiana, basata su una vecchia edizione. + + Questa guida è stata scritta da Michael C. Pierce e Robert K. Ware, + Colorado School of Mines, usando idee fornite da Charles Smith, + Colorado State University - E-mail: bware@mines.colorado.edu + Modificato per Vim da Bram Moolenaar. + Segnalare refusi ad Antonio Colombo - E-mail: azc100@gmail.com +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.ja b/git/usr/share/vim/vim92/tutor/tutor1.ja new file mode 100644 index 0000000000000000000000000000000000000000..15efdfb0362a57180edb106d77ff185138c5209a --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.ja @@ -0,0 +1,979 @@ +=============================================================================== += V I M 教 本 (チュートリアル) へ よ う こ そ - Version 1.7 = +=============================================================================== += 第 1 章 = +=============================================================================== + + Vim は、このチュートリアルで説明するには多すぎる程のコマンドを備えた非常 + に強力なエディターです。このチュートリアルは、あなたが Vim を万能エディ + ターとして使いこなせるようになるのに十分なコマンドについて説明をするよう + になっています。 + チュートリアルを完了するのに必要な時間は、覚えたコマンドを試すのにどれだ + け時間を使うのかにもよりますが、およそ30分です。 + + ATTENTION: + 以下の練習用コマンドにはこの文章を変更するものもあります。練習を始める前 + にコピーを作成しましょう("vimtutor"したならば、既にコピーされています)。 + + このチュートリアルが、使うことで覚えられる仕組みになっていることを、心し + ておかなければなりません。正しく学習するにはコマンドを実際に試さなければ + ならないのです。文章を読んだだけならば、きっと忘れてしまいます! + さぁ、Capsロックキーが押されていないことを確認した後、画面にレッスン + 1.1.1 が全部表示されるところまで、j キーを押してカーソルを移動しましょう。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.1: カーソルの移動 + + + ** カーソルを移動するには、示される様に h,j,k,l を押します。 ** + ^ + k ヒント: h キーは左方向に移動します。 + < h l > l キーは右方向に移動します。 + j j キーは下矢印キーのようなキーです。 + v + 1. 移動に慣れるまで、スクリーンでカーソル移動させましょう。 + + 2. 下へのキー(j)を押しつづけると、連続して移動できます。 + これで次のレッスンに移動する方法がわかりましたね。 + + 3. 下へのキーを使って、レッスン 1.1.2 に移動しましょう。 + +NOTE: 何をタイプしているか判らなくなったら、を押してノーマルモードにし + ます。それから入力しようとしていたコマンドを再入力しましょう。 + +NOTE: カーソルキーでも移動できます。しかし hjkl に一度慣れてしまえば、はるか + に速く移動することができるでしょう。いやマジで! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.2: VIM の起動と終了 + + + !! NOTE: 以下のあらゆるステップを行う前に、このレッスンを読みましょう!! + + 1. キーを押しましょう。(確実にノーマルモードにするため) + + 2. 次のようにタイプ: :q! + これにより編集した内容を保存せずにエディタが終了します。 + + 3. このチュートリアルを始める為のコマンドを実行すると、ここに戻れます。 + そのコマンドは: vimtutor + + 4. これまでのステップを覚え自信がついたならば、ステップ 1 から 3 までを実 + 際に試して、Vim を1度終了してから再び起動しましょう。 + +NOTE: :q! は全ての変更を破棄します。レッスンにて変更をファイルに保 + 存する方法についても勉強していきましょう。 + + 5. レッスン 1.1.3 までカーソルを移動させましょう。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.3: テキスト編集 - 削除 + + + ** ノーマルモードにてカーソルの下の文字を削除するには x を押します。 ** + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. 間違いを修正するために、削除する最初の文字までカーソルを移動します。 + + 3. 不必要な文字を x を押して削除しましょう。 + + 4. 文が正しくなるまで ステップ 2 から 4 を繰り返しましょう。 + +---> その ううさぎ は つつきき を こええてて とびはねたた + + 5. 行が正しくなったら、レッスン 1.1.4 へ進みましょう。 + +NOTE: 全てのレッスンを通じて、覚えようとするのではなく実際にやってみましょう。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.4: テキスト編集 - 挿入 + + + ** ノーマルモードにてテキストを挿入するには i を押します。 ** + + 1. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + + 2. 1行目を2行目と同じ様にするために、テキストを挿入しなければならない位置 + の次の文字にカーソルを移動します。 + + 3. i キーを押してから、追加が必要な文字をタイプしましょう。 + + 4. 間違いを修正したら を押してコマンドモードに戻り、正しい文になる様 + にステップ 2 から 4 を繰り返しましょう。 + +---> この には 足りない テキスト ある。 +---> この 行 には 幾つか 足りない テキスト が ある。 + + 5. 挿入の方法がわかったらレッスン 1.1.5 へ進みましょう。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.5: テキスト編集 - 追加 + + + ** テキストを追加するには A を押しましょう。 ** + + 1. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + カーソルがその行のどの文字上にあってもかまいません。 + + 2. 追加が必要な場所で A をタイプしましょう。 + + 3. テキストを追加し終えたら、 を押してノーマルモードに戻りましょう。 + + 4. 2行目の ---> と示された場所へ移動し、ステップ 2 から 3 を繰り返して文法 + を修正しましょう。 + +---> ここには間違ったテキストがあり + ここには間違ったテキストがあります。 +---> ここにも間違ったテキス + ここにも間違ったテキストがあります。 + + 5. テキストの追加が軽快になってきたらレッスン 1.1.6 へ進みましょう。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1.6: ファイルの編集 + + ** ファイルを保存して終了するには :wq とタイプします。 ** + + !! NOTE: 以下のステップを実行する前に、まず全体を読んでください!! + + 1. 別の端末がある場合はそこで以下の内容を行ってください。そうでなければ、 + レッスン 1.1.2 でやったように :q! をタイプして、このチュートリアルを終了 + します。 + + 2. シェルプロンプトでこのコマンドをタイプします: vim file.txt + 'vim' が Vim エディタを起動するコマンド、'file.txt' は編集したいファイル + の名前です。変更できるファイルの名前を使いましょう。 + + 3. 前のレッスンで学んだように、テキストを挿入、削除します。 + + 4. 変更をファイルに保存します: :wq + + 5. ステップ 1 で vimtutor を終了した場合は vimtutor を再度起動し、以下の + 要約へ進みましょう。 + + 6. 以上のステップを読んで理解した上でこれを実行しましょう。 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.1 要約 + + + 1. カーソルは矢印キーもしくは hjkl キーで移動します。 + h (左) j (下) k (上) l (右) + + 2. Vim を起動するにはプロンプトから vim ファイル名 とタイプします。 + + 3. Vim を終了するには :q! とタイプします(変更を破棄)。 + もしくは :wq とタイプします(変更を保存)。 + + 4. カーソルの下の文字を削除するには、ノーマルモードで x とタイプします。 + + 5. カーソルの位置に文字を挿入するには、ノーマルモードで i とタイプします。 + i テキストのタイプ カーソル位置に追加 + A テキストの追加 行末に追加 + +NOTE: キーを押すとノーマルモードに移行します。その際、間違ったり入力途 + 中のコマンドを取り消すことができます。 + +さて、続けてレッスン 1.2 を始めましょう。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.1: 削除コマンド + + + ** 単語の末尾までを削除するには dw とタイプしましょう。 ** + + 1. 確実にノーマルモードにするため を押しましょう。 + + 2. 以下の ---> と示された行にカーソルを移動しましょう。 + + 3. 消したい単語の先頭にカーソルを移動しましょう。 + + 4. 単語を削除するために dw とタイプしましょう。 + + NOTE: d をタイプすると、その文字がスクリーンの最下行に現われます。Vim は + あなたが w をタイプするのを待っています。もし d 以外の文字が表示された + 時は何か間違っています。 を押してやり直しましょう。 + +---> この 文 紙 には いくつかの たのしい 必要のない 単語 が 含まれて います。 + + 5. 3 から 4 までを文が正しくなるまで繰り返し、レッスン 1.2.2 へ進みましょう。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.2: その他の削除コマンド + + + ** 行の末尾までを削除するには d$ とタイプしましょう。 ** + + 1. 確実にノーマルモードにするため を押しましょう。 + + 2. 以下の ---> と示された行にカーソルを移動しましょう。 + + 3. 正しい文の末尾へカーソルを移動しましょう(最初の 。 の後です)。 + + 4. 行末まで削除するのに d$ とタイプしましょう。 + +---> 誰かがこの行の最後を2度タイプしました。 2度タイプしました。 + + + 5. どういうことか理解するために、レッスン 1.2.3 へ進みましょう。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.3: オペレータとモーション + + + テキストに変更を加える多くのコマンドはオペレータとモーションからなります。 + 削除コマンド d のオペレータは次の様になっています: + + d モーション + + それぞれ: + d - 削除コマンド。 + モーション - 何に対して働きかけるか(以下に挙げます)。 + + モーション一覧の一部: + w - カーソル位置から空白を含む単語の末尾まで。 + e - カーソル位置から空白を含まない単語の末尾まで。 + $ - カーソル位置から行末まで。 + + つまり de とタイプすると、カーソル位置から単語の終わりまでを削除します。 + +NOTE: 冒険したい人は、ノーマルモードにてオペレータなしにモーションを押して + みましょう。カーソルが目的語一覧で示される位置に移動するはずです。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.4: モーションにカウントを使用する + + + ** 何回も行いたい繰り返しのモーションの前に数値をタイプします。 ** + + 1. 以下の ---> と示された行の先頭にカーソルを移動します。 + + 2. 2w をタイプして単語2つ分先に移動します。 + + 3. 3e をタイプして3つ目の単語の終端に移動します。 + + 4. 0 (ゼロ)をタイプして行頭に移動します。 + + 5. ステップ 2 と 3 を違う数値を使って繰り返します。 + +---> This is just a line with words you can move around in. + + 6. レッスン 1.2.5 に進みましょう。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.5: より多くを削除するためにカウントを使用する + + + ** オペレータとカウントをタイプすると、その操作が複数回繰り返されます。 ** + + 既述の削除のオペレータとモーションの組み合わせにカウントを追加することで、 + より多くの削除が行えます: + d 数値 モーション + + 1. ---> と示された行の最初の大文字の単語にカーソルを移動しましょう。 + + 2. 大文字の単語2つを d2w とタイプして削除します。 + + 3. 連続した大文字の単語を、異なるカウントを指定した1つのコマンドで削除し、 + ステップ 1 と 2 を繰り返します。 + +---> このABC DE行のFGHI JK LMN OP単語はQ RS TUV綺麗になった。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.6: 行の操作 + + + ** 行全体を削除するには dd とタイプします。 ** + + 行全体を削除する頻度が多いので、Viのデザイナーは行の削除を d の2回タイプと + いう簡単なものに決めました。 + + 1. 以下の句の2行目にカーソルを移動します。 + 2. dd とタイプして行を削除します。 + 3. さらに4行目に移動します。 + 4. 2dd とタイプして2行を削除します。 + +---> 1) バラは赤い、 +---> 2) つまらないものは楽しい、 +---> 3) スミレは青い、 +---> 4) 私は車をもっている、 +---> 5) 時計が時刻を告げる、 +---> 6) 砂糖は甘い +---> 7) オマエモナー + +2回タイプで1行に対して作用させる方法は以下で述べるオペレータでも動作します。 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2.7: やり直しコマンド + + + ** 最後のコマンドを取り消すには u を押します。U は行全体の取り消しです。 ** + + 1. 以下の ---> と示された行にカーソルを移動し、最初の間違いにカーソル + を移動しましょう。 + 2. x をタイプして最初のいらない文字を削除しましょう。 + 3. さぁ、u をタイプして最後に実行したコマンドを取り消しましょう。 + 4. 今度は、x を使用して行内の誤りを全て修正しましょう。 + 5. 大文字の U をタイプして、行を元の状態に戻しましょう。 + 6. u をタイプして直前の U コマンドを取り消しましょう。 + 7. ではコマンドを再実行するのに CTRL-R (CTRL を押したまま R を打つ)を数回 + タイプしてみましょう(取り消しの取り消し)。 + +---> このの行のの間違いを修正々し、後でそれらの修正をを取り消しまますす。 + + 8. これはとても便利なコマンドです。さぁレッスン 1.2 要約へ進みましょう。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.2 要約 + + + 1. カーソル位置から次の単語までを削除するには dw とタイプします。 + 2. カーソル位置から単語の末尾までを削除するには de とタイプします。 + 3. カーソル位置から行の末尾までを削除するには d$ とタイプします。 + 4. 行全体を削除するには dd とタイプします。 + + 5. モーションを繰り返すには数値を付与します: 2w + 6. 変更に用いるコマンドの形式は + オペレータ [数値] モーション + それぞれ: + オペレータ - 削除 d の類で何をするか。 + [数値] - そのコマンドを何回繰り返すか。 + モーション - w (単語)や e (単語末尾)、$ (行末)などの類で、テキストの + 何に対して働きかけるか。 + + 7. 行の先頭に移動するにはゼロを使用します: 0 + + 8. 前回の動作を取り消す: u (小文字 u) + 行全体の変更を取り消す: U (大文字 U) + 取り消しの取り消し: CTRL-R +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.3.1: 貼り付けコマンド + + + ** 最後に削除された行をカーソルの後に貼り付けるには p をタイプします。 ** + + 1. ---> と示された以下の最初の行にカーソルを移動しましょう。 + + 2. dd とタイプして行を削除し、Vim のレジスタに格納しましょう。 + + 3. 削除した行が本来あるべき位置の上の行である c) 行まで、カーソルを移動させ + ましょう。 + + 4. ノーマルモードで p をタイプして格納した行をカーソルの下に戻します。 + + 5. 順番が正しくなる様にステップ 2 から 4 を繰り返しましょう。 + +---> d) 貴方も学ぶことができる? +---> b) スミレは青い、 +---> c) 知恵とは学ぶもの、 +---> a) バラは赤い、 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.3.2: 置き換えコマンド + + + ** カーソルの下の文字を x に置き換えるには rx をタイプします。 ** + + 1. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + + 2. 最初の間違いの先頭にカーソルを移動しましょう。 + + 3. r とタイプし、間違っている文字を置き換える、正しい文字をタイプしましょう。 + + 4. 最初の行が正しくなるまでステップ 2 から 3 を繰り返しましょう。 + +---> この合を人力した時ね、その人は幾つか問違ったキーを押しもした! +---> この行を入力した時に、その人は幾つか間違ったキーを押しました! + + 5. さぁ、レッスン 1.3.3 へ進みましょう。 + +NOTE: 実際に試しましょう。決して覚えるだけにはしないこと。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.3.3: 変更コマンド + + + ** 単語の末尾までを変更するには ce とタイプします。 ** + + 1. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + + 2. lubw の u の位置にカーソルを移動しましょう。 + + 3. ce とタイプし、正しい単語をタイプしましょう(この場合 'ine' とタイプ)。 + + 4. をタイプしてから次の間違い(変更すべき文字の先頭)に移動します。 + + 5. 最初の行が次の行の様になるまでステップ 3 と 4 を繰り返します。 + +---> This lubw has a few wptfd that mrrf changing usf the change operator. +---> This line has a few words that need changing using the change operator. + +ce は単語を削除した後、挿入モードに入ることに注意しましょう。 +cc は同じことを行全体に対して行います。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.3.4: c を使用したその他の変更 + + + ** 変更オペレータは、削除と同じ様にモーションを使用します。 ** + + 1. 変更オペレータは、削除と同じような動作をします。その形式は + + c [数値] モーション + + 2. モーションも同じで、w は単語、 $ は行末などといったものです。 + + 3. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + + 4. 最初の間違いへカーソルを移動しましょう。 + + 5. c$ とタイプして行の残りを2行目の様にし、 を押しましょう。 + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + +NOTE: タイプ中の間違いはバックスペースキーを使って直すこともできます。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.3 要約 + + + 1. 既に削除されたテキストを再配置するには、p をタイプします。これは削除さ + れたテキストをカーソルの後に挿入します(行単位で削除されたのならば、カー + ソルのある次の行に挿入されます)。 + + 2. カーソルの下の文字を置き換えるには、r をタイプした後、それを置き換える + 文字をタイプします。 + + 3. 変更コマンドではカーソル位置から特定のモーションで指定される終端までを変 + 更することが可能です。例えば ce ならばカーソル位置から単語の終わりまで、 + c$ ならば行の終わりまでを変更します。 + + 4. 変更コマンドの形式は + + c [数値] モーション + +さぁ、次のレッスンへ進みましょう。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.4.1: 位置とファイルの情報 + + ** ファイル内での位置とファイルの状態を表示するには CTRL-G をタイプします。 + ファイル内のある行に移動するには G をタイプします。 ** + + NOTE: ステップを実行する前に、このレッスン全てに目を通しましょう!! + + 1. CTRL を押したまま g を押しましょう。この操作を CTRL-G と呼んでいます。 + ページの一番下にファイル名と行番号が表示されるはずです。 ステップ 3のため + に行番号を覚えておきましょう。 + +NOTE: 画面の右下隅にカーソルの位置が表示されているかもしれません。これは + 'ruler' オプション(:help 'ruler' を参照)を設定することで表示されます。 + + 2. ファイルの最下行に移動するために G をタイプしましょう。 + ファイルの先頭に移動するには gg とタイプしましょう。 + + 3. 先ほどの行の番号をタイプし G をタイプしましょう。最初に CTRL-G を押した行 + に戻って来るはずです。 + + 4. 自信が持てたらステップ 1 から 3 を実行しましょう。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.4.2: 検索コマンド + + + ** 語句を検索するには / と、前方検索する語句をタイプします。 ** + + 1. ノーマルモードで / という文字をタイプします。画面一番下に : コマンドと + 同じ様に / が現れることに気づくでしょう。 + + 2. では、'errroor' とタイプしましょう。これが検索したい単語です。 + + 3. 同じ語句をもう一度検索するときは 単に n をタイプします。 + 逆方向に語句を検索するときは N をタイプします。 + + 4. 逆方向に語句を検索する場合は、/ の代わりに ? コマンドを使用します。 + + 5. 元の場所に戻るには CTRL-O (Ctrl を押し続けながら文字 o をタイプ)をタイプし + ます。さらに戻るにはこれを繰り返します。CTRL-I は前方向です。 + +---> "errroor" は error とスペルが違います; errroor はいわゆる error です。 +NOTE: 検索がファイルの終わりに達すると、オプション 'wrapscan' が設定されている + 場合は、ファイルの先頭から検索を続行します。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.4.3: 対応する括弧を検索 + + + ** 対応する ),] や } を検索するには % をタイプします。 ** + + 1. 下の ---> で示された行で (,[ か { のどれかにカーソルを移動しましょう。 + + 2. そこで % とタイプしましょう。 + + 3. カーソルは対応する括弧に移動するはずです。 + + 4. 最初の括弧に移動するには % とタイプしましょう。 + + 5. 他の (,),[,],{ や } でカーソルを移動し、% が何をしているか確認しましょう。 + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + + +NOTE: この機能は括弧が一致していないプログラムをデバッグするのにとても役立ち + ます。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.4.4: 間違いを変更する方法 + + + ** 'old' を 'new' に置換するには :s/old/new/g とタイプします。 ** + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. :s/thee/the とタイプしましょう。このコマンドはその行で最初に見つ + かったものにだけ行われることに気をつけましょう。 + + 3. では :s/thee/the/g とタイプしましょう。追加した g フラグは行全体を置換す + ることを意味します。この変更はその行で見つかった全ての箇所に対して行われ + ます。 + +---> thee best time to see thee flowers is in thee spring. + + 4. 複数行から見つかる文字の全ての箇所を変更するには + :#,#s/old/new/g #,# には置き換える範囲の開始と終了の行番号を指定する。 + :%s/old/new/g ファイル全体で見つかるものに対して変更する。 + :%s/old/new/gc ファイル全体で見つかるものに対して、1つ1つ確認をとりな + がら変更する。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.4 要約 + + + 1. CTRL-G はファイルでの位置とファイルの詳細を表示します。 + G はファイルの最下行に移動します。 + 数値 G はその行に移動します。 + gg は先頭行に移動します。 + + 2. / の後に語句をタイプすると前方に語句を検索します。 + ? の後に語句をタイプすると後方に語句を検索します。 + 検索の後の n は同じ方向の次の検索を、N は逆方向の検索をします。 + CTRL-O は場所を前に移し、CTRL-I は場所を次に移動します。 + + 3. (,),[,],{, もしくは } 上にカーソルがある状態で % をタイプすると対になる文 + 字へ移動します。 + + 4. 現在行の最初の old を new に置換する。 :s/old/new + 現在行の全ての old を new に置換する。 :s/old/new/g + 2つの # 行の間で語句を置換する。 :#,#s/old/new/g + ファイルの中の全ての検索語句を置換する。 :%s/old/new/g + 'c' を加えると置換の度に確認を求める。 :%s/old/new/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.5.1: 外部コマンドを実行する方法 + + + ** :! の後に実行する外部コマンドをタイプします。 ** + + 1. 画面の最下部にカーソルが移動するよう、慣れ親しんだ : をタイプしましょう。 + これでコマンドライン命令がタイプできる様になります。 + + 2. ここで ! という文字(感嘆符)をタイプしましょう。 + これで外部シェルコマンドが実行できる様になります。 + + 3. 例として ! に続けて ls とタイプし を押しましょう。 + シェルプロンプトのようにディレクトリの一覧が表示されるはずです。 + もしくは ls が動かないならば :!dir を使用しましょう。 + +NOTE: この方法によってあらゆるコマンドが実行することができます。もちろん引数 + も与えられます。 + +NOTE: 全ての : コマンドは を押して終了しなければなりません。 + 以降ではこのことに言及しません。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.5.2: その他のファイルへ書き込み + + + ** ファイルへ変更を保存するには :w ファイル名 とタイプします。 ** + + 1. ディレクトリの一覧を得るために :!dir もしくは :!ls とタイプしましょう。 + このあと を押すのは既にご存知ですね。 + + 2. TEST のように、そのディレクトリに無いファイル名を一つ選びます。 + + 3. では :w TEST とタイプしましょう (TEST は、選んだファイル名です)。 + + 4. これによりファイル全体が TEST という名前で保存されます。 + もう一度 :!dir もしくは :!ls とタイプしてディレクトリを確認してみましょう。 + +NOTE: ここで Vim を終了し、ファイル名 TEST と共に起動すると、保存した時の + チュートリアルの複製ができ上がるはずです。 + + 5. さらに、次のようにタイプしてファイルを消しましょう(Windows): :!del TEST + もしくは(Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.5.3: 選択した書き込み + + +** ファイルの一部を保存するには、v モーションと :w FILENAME をタイプします。 ** + + 1. この行にカーソルを移動します。 + + 2. v を押し、以下の第5項目にカーソルを移動します。テキストが強調表示されるの + に注目して下さい。 + + 3. 文字 : を押すと、画面の最下部に :'<,'> が現れます。 + + 4. w TEST (TEST は存在しないファイル名)をタイプします。 + を押す前に :'<,'>w TEST となっていることを確認して下さい。 + + 5. Vim は TEST というファイルに選択された行を書き込むでしょう。 + :!dir もしくは :!ls でそれを確認します。 + それは削除しないでおいて下さい。次のレッスンで使用します。 + +NOTE: v を押すと、Visual 選択が始まります。カーソルを動かすことで、選択範囲を + 大きくも小さくもできます。さらに、その選択範囲に対してオペレータを適用 + できます。例えば d はテキストを削除します。 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.5.4: ファイルの取込と合併 + + + ** ファイルの中身を挿入するには :r ファイル名 とタイプします。 ** + + 1. カーソルをこの行のすぐ上に合わせます。 + +NOTE: ステップ 2 の実行後、レッスン 1.5.3 のテキストが現れます。下に下がって + このレッスンに移動しましょう。 + + 2. では TEST というファイルを :r TEST というコマンドで読み込みましょう。 + ここでいう TEST は使うファイルの名前のことです。 + 読み込まれたファイルは、カーソル行の下にあります。 + + 3. 取り込んだファイルを確認してみましょう。カーソルを戻すと、レッスン 1.5.3 + のオリジナルとファイルによるものの2つがあることがわかります。 + +NOTE: 外部コマンドの出力を読み込むこともできます。例えば、 + :r !ls は ls コマンドの出力をカーソル以下に読み込みます。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.5 要約 + + + 1. :!command によって 外部コマンドを実行する。 + + よく使う例: + (Windows) (Unix) + :!dir :!ls - ディレクトリ内の一覧を見る。 + :!del FILENAME :!rm FILENAME - ファイルを削除する。 + + 2. :w ファイル名 によってファイル名というファイルがディスクに書き込まれる。 + + 3. v モーションで :w FILENAME とすると、ビジュアル選択行がファイルに保存さ + れる。 + + 4. :r ファイル名 によりファイル名というファイルがディスクより取り込まれ、 + カーソル位置の下に挿入される。 + + 5. :r !dir は dir コマンドの出力をカーソル位置以下に読み込む。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6.1: オープンコマンド + + + ** o をタイプすると、カーソルの下の行が開き、挿入モードに入ります。 ** + + 1. 以下の ---> と示された最初の行にカーソルを移動しましょう。 + + 2. o (小文字) をタイプして、カーソルの下の行を開き、挿入モードに入ります。 + + 3. いくつか文字をタイプしてから、挿入モードを終了する為に を + タイプします。 + +---> o をタイプするとカーソルは開いた行へ移動し挿入モードに入ります。 + + 4. カーソルの上の行に挿入するには、小文字の o ではなく、単純に大文字の O + をタイプします。次の行で試してみましょう。 + +---> この行の上へ挿入するには、この行へカーソルを置いて O をタイプします。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6.2: 追加コマンド + + + ** カーソルの次の位置からテキストを追加するには a とタイプします。 ** + + 1. カーソルを ---> で示された最初の行へ移動しましょう。 + + 2. e を押して li の終端部までカーソルを移動します。 + + 3. カーソルの後ろにテキストを追加するために a (小文字) をタイプします。 + + 4. その下の行のような単語に完成させます。挿入モードを抜ける為に を押 + します。 + + 5. e を使って次の不完全な単語へ移動し、ステップ 3 と 4 を繰り返します。 + +---> This li will allow you to pract appendi text to a line. +---> This line will allow you to practice appending text to a line. + +NOTE: a, i と A は同じ挿入モードへ移りますが、文字が挿入される位置だけが異なり + ます。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6.3: その他の置換方法 + + + ** 1文字以上を置き換えるには大文字の R とタイプしましょう。 ** + + 1. 以下の ---> と示された行にカーソルを移動します。最初の xxx の先頭に移動し + ます。 + + 2. R を押して、2行目の数値をタイプすることで、xxx が置換されます。 + + 3. 置換モードを抜けるには を押します。行の残りが変更されていないままに + なることに注意してください。 + + 4. 残った xxx をステップを繰り返して置換しましょう。 + +---> Adding 123 to xxx gives you xxx. +---> Adding 123 to 456 gives you 579. + +NOTE: 置換モードは挿入モードに似ていますが、全てのタイプされた文字は既存の文字 + を削除します。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6.4: テキストのコピーとペースト + + ** テキストのコピーにはオペレータ y を、ペーストには p を使います。 ** + + 1. ---> と示された行へ移動し、カーソルを "a)" の後に置いておきます。 + + 2. v でビジュアルモードを開始し、"first" の手前までカーソルを移動します。 + + 3. y をタイプして強調表示されたテキストを yank (コピー)します。 + + 4. 次の行の行末までカーソルを移動します: j$ + + 5. p を押して貼り付け(put)てから、次をタイプします: a second + + 6. ビジュアルモードで " item." を選択し、y でヤンク、次の行の行末まで j$ で + 移動し、 p でテキストをそこに put します。 + +---> a) this is the first item. + b) + + NOTE: y をオペレータとして使うこともできます。yw は単語を1つ yank します。 + yy は行を1つ yank し、p でその行を put します。 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6.5: オプションの設定 + + + ** 検索や置換の際に大文字/小文字を無視するには、オプションを設定します。 ** + + 1. 次の様に入力して 'ignore' を検索しましょう: /ignore + n を押して何度か検索を繰り返します。 + + 2. 次の様に入力して 'ic' (Ignore Case の略) オプションを設定します: :set ic + + 3. では n によってもう1度 'ignore' を検索します。 + n を押してさらに数回検索を繰り返しましょう。 + + 4. 'hlsearch' と 'incsearch' オプションを設定しましょう: :set hls is + + 5. 検索コマンドを再入力して、何が起こるか見てみましょう: /ignore + + 6. 大文字小文字の区別を無効にするには次の様に入力します: :set noic + +NOTE: マッチの強調表示をやめるには次の様に入力します: :nohlsearch +NOTE: 1つの検索コマンドだけ大文字小文字の区別をやめたいならば、語句内で \c + を使用します: /ignore\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.6 要約 + + 1. o をタイプするとカーソルの下の行を開けて、そこで挿入モードになる。 + O (大文字) をタイプするとカーソルの上の行で挿入モードになる。 + + 2. カーソル上の文字の次からテキストを追加するには a とタイプする。 + 行末にテキストを挿入するには大文字 A をタイプする。 + + 3. e コマンドは単語の終端にカーソルを移動する。 + + 4. y オペレータはテキストを yank (コピー)し、p はそれを put (ペースト)する。 + + 5. 大文字の R をタイプすると置換モードに入り、 を押すと抜ける。 + + 6. ":set xxx" とタイプするとオプション "xxx" が設定される。 + 'ic' 'ignorecase' 検索時に大文字小文字の区別しない + 'is' 'incsearch' 検索フレーズに部分マッチしている部分を表示する + 'hls' 'hlsearch' マッチするすべてを強調表示する + 長い方、短い方、どちらのオプション名でも使用できます。 + + 7. オプションを無効にするには "no" を付与する: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.7.1: オンラインヘルプコマンド + + + ** オンラインヘルプを使用しましょう ** + + Vim には広範にわたるオンラインヘルプシステムがあります。 + ヘルプを開始するには、これら3つのどれか1つを試してみましょう: + - ヘルプキー を押す(もしあるならば)。 + - キーを押す(もしあるならば)。 + - :help とタイプする。 + + ヘルプウィンドウのテキストを読むと、ヘルプの動作が理解できます。 + CTRL-W CTRL-W とタイプすると ヘルプウィンドウへジャンプします。 + :q とタイプすると ヘルプウィンドウが閉じられます。 + + ":help" コマンドに引数を与えることにより、あらゆる題名のヘルプを見つけること + ができます。これらを試してみましょう( をタイプし忘れないように): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.7.2: 起動スクリプトの作成 + + ** Vim の特徴を発揮する ** + + Vim には Vi よりも多くの特徴を踏まえていますが、そのほとんどは初期状態にて + 使用不可となっています。より多くの特徴を使いはじめるには "vimrc" ファイル + を作成します。 + + 1. "vimrc" ファイルの編集を開始します。これはシステムに依存します。 + :e ~/.vimrc UNIX 向け + :e ~/_vimrc Windows 向け + + 2. ここでサンプルの "vimrc" を読み込みます。 + :r $VIMRUNTIME/vimrc_example.vim + + 3. 以下のようにファイルへ書き込みます。 + :w + + 次回 Vim を起動すると、色づけ構文が使えるようになるでしょう。 + この "vimrc" ファイルへ、お好みの設定を追加することができます。 + より多くの情報を得るには :help vimrc-intro とタイプします。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.7.3: 補完 + + + ** CTRL-D と でコマンドラインを補完する ** + + 1. 互換モードでないことを確認します: :set nocp + + 2. 現在のディレクトリに在るファイルを :!ls か :!dir で確認します。 + + 3. コマンドの先頭をタイプします: :e + + 4. CTRL-D を押すと Vim は "e" から始まるコマンドの一覧を表示します。 + + 5. d とタイプすると Vim は ":edit" というコマンド名を補完します。 + + 6. さらに空白と、既存のファイル名の始まりを加えます: :edit FIL + + 7. を押すと Vim は名前を補完します。(もし一つしか無かった場合) + +NOTE: 補完は多くのコマンドで動作します。そして CTRL-D と 押してみてくだ + さい。特に :help の際に役立ちます。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + レッスン 1.7 要約 + + + 1. ヘルプウィンドウを開くには :help とするか もしくは を押す。 + + 2. コマンド(cmd)のヘルプを検索するには :help cmd とタイプする。 + + 3. 別のウィンドウへジャンプするには CTRL-W CTRL-W とタイプする。 + + 4. ヘルプウィンドウを閉じるには :q とタイプする。 + + 5. お好みの設定を保つには vimrc 起動スクリプトを作成する。 + + 6. : command で可能な補完を見るには CTRL-D をタイプする。 + 補完を使用するには を押す。 + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + これにて Vim のチュートリアルの第 1 章を終わります。レジスタ、マーク、テキス + トオブジェクトについて解説している第 2 章に進むことを考慮してください。 + + エディタを簡単に、しかも充分に使うことができるようにと、Vim の持つ概念の要点 + のみを伝えようとしました。Vim にはさらに多くのコマンドがあり、ここで全てを説 + 明することはできません。 + + 以降はユーザーマニュアルを参照ください: ":help user-manual" + + これ以後の学習のために、次の本を推薦します。 + Vim - Vi Improved - by Steve Oualline + 出版社: New Riders + 最初の本は完全に Vim のために書かれました。とりわけ初心者にはお奨めです。 + 多くの例題や図版が掲載されています。 + 次のURLを参照して下さい https://iccf-holland.org/click5.html + + 次は Vim よりも Vi について書かれた古い本ですが推薦します: + Learning the Vi Editor - by Linda Lamb + 出版社: O'Reilly & Associates Inc. + Vi でやりたいと思うことほぼ全てを知ることができる良書です。 + 第6版では、Vim についての情報も含まれています。 + + このチュートリアルは Colorado State University の Charles Smith のアイデア + を基に、Colorado School of Mines の Michael C. Pierce と Robert K. Ware の + 両名によって書かれました。 E-mail: bware@mines.colorado.edu. + + Modified for Vim by Bram Moolenaar. + + 日本語訳 松本 泰弘 + vim-jpチーム + 監修 村岡 太郎 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + vi:set ts=8 sts=4 sw=4 tw=78: diff --git a/git/usr/share/vim/vim92/tutor/tutor1.ko b/git/usr/share/vim/vim92/tutor/tutor1.ko new file mode 100644 index 0000000000000000000000000000000000000000..60f1f488dca96e437ac1777abeac8172f46e3bd7 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.ko @@ -0,0 +1,968 @@ +=============================================================================== += 빔 길잡이 (VIM Tutor) 에 오신 것을 환영합니다 - Version 1.7 = +=============================================================================== + + 빔(Vim)은 이 길잡이에서 다 설명할 수 없을 만큼 많은 명령을 가진 + 매우 강력한 편집기입니다. 이 길잡이는 빔을 쉽게 전천후 편집기로 사용할 + 수 있도록 충분한 명령에 대해 설명하고 있습니다. + + 이 길잡이를 떼는 데에는 실습하는 데에 얼마나 시간을 쓰는 가에 따라서 + 25-30 분 정도가 걸립니다. + + 이 연습에 포함된 명령은 내용을 고칩니다. 이 파일의 복사본을 만들어서 + 연습하세요. (vimtutor 를 통해 시작했다면, 이미 복사본을 사용하는 + 중입니다.) + + 중요한 것은, 이 길잡이가 직접 써보면서 배우도록 고려되어 있다는 것입니다. + 명령을 제대로 익히려면, 직접 실행해보는 것이 필요합니다. 내용을 읽는 + 것만으로는, 명령을 잊어버리게 될 것입니다. + + 자 이제, Caps Lock(Shift-Lock) 키가 눌려있지 않은지 확인해보시고, j 키를 + 충분히 눌러서 Lesson 1.1.1이 화면에 가득 차도록 움직여봅시다. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.1: 커서 움직이기 + + ** 커서를 움직이려면, 표시된 대로 h,j,k,l 키를 누르십시오. ** + ^ + k 힌트: h 키는 왼쪽에 있으며, 왼쪽으로 움직입니다. + < h l > l 키는 오른쪽에 있으며, 오른쪽으로 + j 움직입니다. + v j 키는 아래방향 화살표처럼 생겼습니다. + + 1. 익숙해질 때까지 커서를 스크린 상에서 움직여 보십시오. + + 2. 아래 방향키 (j)를 반복입력이 될 때까지 누르고 계십시오. + 이제 다음 lesson으로 가는 방법을 알게 되었습니다. + + 3. 아래 방향키를 이용하여, Lesson 1.1.2 로 가십시오. + +참고: 원하지 않는 무언가가 입력이 되었다면, 를 눌러서, 명령 모드로 + 돌아가십시오. 그 후에 원하는 명령을 다시 입력하십시오. + +참고: 커서키 또한 작동할 것입니다. 하지만 hjkl에 익숙해지면, 커서키보다 + 훨씬 빠르게 이동할 수 있을 것입니다. 정말요! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.2: 빔을 시작하고 끝내기 + + + !! 주의: 아래 있는 단계를 실행하기 전에, 이 lesson 전체를 읽으십시오!! + + 1. 키를 눌러서 확실하게 명령 모드로 빠져 나옵니다. + + 2. 다음과 같이 입력합니다: :q! + 이렇게 하면, 바뀐 내용을 *저장하지 않고* 편집기를 빠져나갑니다. + + 3. 쉘 프롬프트가 보인다면, 다시 길잡이로 돌아오기 위해 다음과 같이 + 입력합니다. + vimtutor + 또는 다음과 같을 수도 있습니다. + vim tutor.ko + +---> 'vim' 은 빔 편집기로 들어가는 것을 뜻하며, 'tutor.ko'는 편집하려는 + 파일을 뜻합니다. + + 4. 위에서 이야기한 단계를 기억하였으며, 확신이 서면, 1에서 3까지를 + 수행하여 편집기를 나갔다가 다시 들어와 보십시오. + +주의: :q! 는 바뀐 내용을 저장하지 않습니다. 이 후 lesson에서 + 어떻게 편집 내용을 저장하는지 배울 수 있습니다. + + 5. 그 후 커서를 아래로 움직여 Lesson 1.1.3 으로 가십시오. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.3: 텍스트 편집 - 지우기 + + +** 명령 모드에서 x 를 누르면 커서가 위치한 곳의 글자를 지울 수 있습니다. ** + + 1. ----> 로 표시된 곳으로 커서를 옮겨보십시오. + + 2. 오타를 수정하기 위해, 커서를 지울 글자 위로 움직여 보십시오. + + 3. x 키를 눌러서 지워야할 글자를 지우십시오. + + 4. 2에서 4까지를 반복하여 문장이 올바르게 되도록 하여 보십시오. + +---> The ccow jumpedd ovverr thhe mooon. + + 5. 문장이 정확해졌다면, Lesson 1.1.4로 가십시오. + +주의: 이 길잡이를 보면서 외우려고 하지말고, 직접 사용해보면서 익히길 + 바랍니다. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.4: 텍스트 편집 - 삽입 (INSERTION) + + + ** 명령 모드에서 i 를 누르면 텍스트를 입력할 수 있습니다. ** + + 1. 커서를 첫번째 ---> 로 표시된 줄로 움직입니다. + + 2. 첫번째 줄을 두번째 줄과 똑같이 만들것입니다. 텍스트가 들어가야할 + 곳 다음부터 첫번째 글자 위에 커서를 옮겨 놓습니다. + + 3. i 키를 누른 후, 필요한 내용을 입력합니다. + + 4. 수정한 후에는 를 눌러서 명령 모드로 돌아갑니다. + 문장을 올바르게 만들기 위해 2에서 4의 과정을 반복합니다. + +---> There is text misng this . +---> There is some text missing from this line. + + 5. 텍스트를 삽입하는 데에 익숙해졌다면, Lesson 1.1.5로 가십시오. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.5: 택스트 편집 - 추가 (APPENDING) + + + ** A 를 입력해 텍스트를 추가할 수 있습니다. ** + + 1. 커서를 첫번째 ---> 로 표시된 줄로 움직입니다. + 커서가 문장 내 어디에 있던 상관없습니다. + + 2. A 키를 눌러 필요한 내용을 입력합니다. + + 3. 내용을 모두 입력한 후 를 눌러 명령 모드로 돌아갑니다. + + 4. 커서를 두번째 ---> 로 표시된 줄로 움직입니다. + 문장을 올바르게 만들기 위해 2에서 3의 과정을 반복합니다. + +---> There is some text missing from th + There is some text missing from this line. +---> There is also some text miss + There is also some text missing here. + + 5. 텍스트를 추가하는 데 익숙해졌다면, Lesson 1.1.6으로 가십시오. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.1.6: 파일 편집 + + ** :wq 를 이용하여 파일을 저장하고 빠져나갈 수 있습니다. ** + + !! 주의: 아래 있는 단계를 실행하기 전에, 이 lesson 전체를 읽으십시오!! + + 1. lesson 1.1.2에서 배웠던 것처럼 :q!로 편집기를 나갈 수 있습니다. + 만약, 다른 터미널에 접근 가능하다면, 아래의 단계를 다른 터미널에서 해봅니다. + + 2. 쉘 프롬프트에 다음과 같이 입력합니다: vim tutor + 'vim' 은 빔 에디터 시작을 위한 명령어, 'tutor'는 수정하고자 하는 + 파일의 이름 입니다. + + 3. 앞에서 배웠던 것처럼 텍스트를 삽입하고 지워보세요. + + 4. 다음 명령어를 이용해 파일 수정 부분을 저장하고 빠져나갑니다: :wq + + 5. 만약 1에서 vimtutor를 빠져나갔다가 다시 들어왔다면, 아래로 움직여 요약으로 넘어가도록 합시다. + + 6. 위 모든 단계를 다 읽고 이해한 후에 직접 해보세요. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.1 요약 + + + 1. 커서를 움직일 때에는 화살표 키나 hjkl 키를 이용합니다. + h (왼쪽) j (아래) k (위) l (오른쪽) + + 2. 쉘 프롬프트에서 빔을 시작하려면 vim FILENAME + + 3. 수정한 내용을 무시한 채로 빔에서 빠져나가려면 :q! + 저장한 후 빔에서 빠져나가려면 :wq + + 4. 명령 모드에서 커서가 위치한 곳의 글자를 지우려면 x 를 입력합니다. + + 5. 명령 모드에서 커서가 위치한 곳에 텍스트를 삽입하려면 + i 를 누른 후 텍스트를 입력하고 커서 앞에 삽입합니다. + A 를 누른 후 텍스트를 입력하고 문장 뒤에 추가 합니다. + +참고: 는 명령 모드로 돌아가는 데 쓰며, 원치 않는 명령이나 완전히 입력되지 + 않은 명령을 취소하는 데에도 씁니다. + +그럼 Lesson 1.2를 시작합시다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.1: 삭제(DELETION) 명령 + + + ** 한 단어를 끝까지 지우려면 dw 라고 치면 됩니다. ** + + 1. 키를 눌러서 확실하게 명령 모드로 빠져 나옵니다. + + 2. 아래에 ---> 로 표시된 줄 까지 커서를 옮깁니다. + + 3. 지워야할 단어의 처음으로 커서를 옮깁니다. + + 4. dw 라고 쳐서 그 단어를 지웁니다. + + 주의: 위에서 말한대로 하면 화면의 마지막 줄에 dw 라는 글자가 표시됩니다. + 잘못 쳤다면, 를 눌러서 다시 시작하십시오. + +---> There are a some words fun that don't belong paper in this sentence. + + 5. 3, 4번 과정을 다시 하여 문장을 정확하게 만든 뒤 Lesson 1.2.2로 가십시오. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.2: 다른 삭제 명령 + + ** d$ 라고 치면 그 줄 끝까지 지워집니다. ** + + 1. 키를 눌러서 확실하게 명령 모드로 빠져 나옵니다. + + 2. 아래에 ---> 로 표시된 줄 까지 커서를 옮깁니다. + + 3. 올바른 줄의 끝으로 커서를 옮깁니다. (첫번째로 나오는 . 다음입니다.) + + 4. d$ 라고 쳐서 줄 끝까지 지웁니다. + +---> Somebody typed the end of this line twice. end of this line twice. + + + 5. 어떤 일이 일어났는지 이해하기 위해 Lesson 1.2.3 으로 가십시오. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.3: 명령과 적용 대상에 대해 + + + 삭제 명령 d의 형식은 다음과 같습니다. + + d 대상 + + 여기서: + d - 지우는 명령 + 대상 - 아래에 제시된 대상에 대해 명령을 수행 + + 적용 가능한 대상의 종류: + w - 커서에서 그 단어의 끝까지 (공백 포함.) + e - 커서에서 그 단어의 끝까지 (공백을 포함하지 않음.) + $ - 커서에서 그 줄의 끝까지 + + 예를 들어, de 는 커서의 위치부터 해당 단어의 끝까지 지웁니다. + +참고: 호기심이 있다면, 명령 모드에서 명령 없이 대상을 입력해보십시오. + 위에서 이야기한 대상의 목록에 따라 커서가 움직이게 됩니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.4: 대상에 반복 적용하기 + + + ** 대상 이전에 숫자를 넣어주면 그 만큼 반복 됩니다. ** + + 1. 아래에 ---> 로 표시된 줄 까지 커서를 옮깁니다. + + 2. 2w 입력하여 커서를 단어 두 개 뒤로 옮깁니다. + + 3. 3e 입력하여 커서를 뒤로 세 번째 단어의 끝으로 옮깁니다. + + 4. 0 (zero) 를 입력하여 문장의 시작부분으로 움직입니다. + + 5. 2에서 3까지를 다른 숫자로 반복해 봅니다. + +---> This is just a line with words you can move around in. + + 6. Lesson 1.2.5로 가십시오. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.5: 삭제에 반복 적용하기 + + + ** 명령과 숫자를 함께 사용하면 그만큼 반복 수행 됩니다. ** + + 위에서 삭제 명령과 대상의 조합과 같이, 대상 이전에 횟수를 넣어 더 많이 삭제 할 수 있습니다: + d 횟수 대상 + + 1. 아래 ---> 표시된 줄에서 커서를 첫번째 대문자 단어로 옮깁니다. + + 2. d2w를 입력하여 두 대문자 단어를 지웁니다. + + 3. 이어지는 대문자 단어들을 1에서 2까지의 단계를 이용해 횟수를 바꾸어 삭제해 봅니다. + +---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.6: 줄 전체 조작하기 + + + + ** dd 라고 치면 줄 전체를 지웁니다. ** + + 줄 전체를 지우는 일이 잦기 때문에, Vi를 디자인 한 사람들은, 간단히 d를 + 두번 연달아 치면 한 줄을 지울 수 있도록 하였습니다. + + 1. 커서를 아래 나온 단락의 두번째 줄로 가져가십시오. + 2. dd 를 입력하여 그 줄을 지우십시오. + 3. 그런 다음 네번째 줄로 가십시오. + 4. 2dd 라고 입력하여 두줄을 지웁니다. ( 횟수-명령-대상을 기억하세요. ) + +---> 1) Roses are red, +---> 2) Mud is fun, +---> 3) Violets are blue, +---> 4) I have a car, +---> 5) Clocks tell time, +---> 6) Sugar is sweet +---> 7) And so are you. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.2.7: 취소(UNDO) 명령 + + + ** u 를 누르면 마지막 명령이 취소되며, U 는 줄 전체를 수정합니다. ** + + 1. 커서를 ---> 로 표시된 줄로 이동한 후 첫번째 잘못된 부분 위로 옮깁니다. + 2. x 를 입력하여 첫번째 잘못된 글자를 지웁니다. + 3. 그럼 이제 u 를 입력하여 마지막으로 수행된 명령을 취소합니다. + 4. 이번에는 x 명령을 이용하여 그 줄의 모든 에러를 수정해봅시다. + 5. 대문자 U 를 눌러서 그 줄을 원래 상태로 돌려놓아 보십시오. + 6. 이번에는 u 를 몇 번 눌러서 U 와 이전 명령을 취소해봅시다. + 7. CTRL-R (CTRL 키를 누른 상태에서 R을 누르는 것) 을 몇 번 눌러서 + 명령을 다시 실행해봅시다. (취소한 것을 취소함.) + +---> Fiix the errors oon thhis line and reeplace them witth undo. + + 8. 이 명령은 매우 유용합니다. 그럼 Lesson 1.2 요약으로 넘어가도록 합시다. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.2 요약 + + + 1. 커서가 위치한 곳부터 단어의 끝까지 지우려면: dw + 2. 커서가 위치한 곳부터 줄 끝까지 지우려면: d$ + 3. 줄 전체를 지우려면: dd + + 4. 횟수와 함께 대상을 반복 시키려면: 2w + 5. 명령 모드에서 내리는 명령의 형식은 다음과 같습니다: + + [횟수] 명령 대상 또는 명령 [횟수] 대상 + + 여기서: + 횟수 - 그 명령을 몇 번 반복할 것인가 + 명령 - 어떤 명령을 내릴 것인가 ( 예를 들어, 삭제인 경우는 d ) + 대상 - 명령이 동작할 대상, 예를 들어 w (단어), $ (줄의 끝) 등. + + 6. 커서를 문장 맨 앞으로 옮기려면: 0 + + 7. 이전 행동을 취소하려면: u (소문자 u) + 한 줄에서 수정한 것을 모두 취소하려면: U (대문자 U) + 취소한 것을 다시 실행하려면: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.1: 붙이기(PUT) 명령 + + + ** p 를 입력하여 마지막으로 지운 내용을 커서 뒤에 붙입니다. ** + + 1. 아래에 있는 문단의 첫 줄로 커서를 움직이십시오. + + 2. dd 를 입력하여 그 줄을 지워서 빔의 버퍼에 저장합니다. + + 3. 아까 지운 줄이 가야할 위치의 *윗줄로* 커서를 옮깁니다. + + 4. 명령 모드에서, p 를 입력하여 그 줄을 제대로 된 자리로 옮깁니다. + + 5. 2에서 4를 반복하여 모든 줄의 순서를 바로 잡으십시오. + + d) Can you learn too? + b) Violets are blue, + c) Intelligence is learned, + a) Roses are red, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.2: 치환(REPLACE) 명령 + + + ** 커서 아래의 글자 하나를 바꾸려면, r 을 누른 후 바꿀 글자를 입력합니다. ** + + 1. 커서를 ---> 로 표시된 첫 줄로 옮깁니다. + + 2. 커서를 잘못된 첫 부분으로 옮깁니다. + + 3. r 을 누른 후, 잘못된 부분을 고쳐 쓸 글자를 입력합니다. + + 4. 2에서 3의 과정을 반복하여, 첫 줄의 오류를 수정하십시오. + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. Lesson 1.3.2 로 이동합시다. + +주의: 외우지 말고, 직접 해보면서 익혀야 한다는 것을 잊지 마십시오. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.3: 변환(CHANGE) 명령 + + + ** 한 단어의 전체를 바꾸려면, ce 를 치십시오. ** + + 1. 커서를 ---> 로 표시된 첫줄로 옮깁니다. + + 2. 커서를 lubw 에서 u 위에 올려놓습니다. + + 3. ce 라고 명령한 후 단어를 정확하게 수정합니다. (이 경우, 'ine' 를 칩니다.) + + 4. 를 누른 후 다음 에러로 갑니다 (수정되어야할 첫 글자로 갑니다.) + + 5. 3에서 4의 과정을 반복하여 첫번째 문장을 두번째 문장과 같도록 만듭니다. + +---> This lubw has a few wptfd that mrrf changing usf the change command. +---> This line has a few words that need changing using the change command. + +ce 는 단어를 치환하는 것 뿐만 아니라, 내용을 삽입할 수 있도록 한다는 것에 +유의합시다. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.3.4: c 를 이용한 다른 변환 명령 + + + ** 변환 명령은 삭제할 때 이용한 대상에 대해 적용할 수 있습니다. ** + + 1. 변환 명령은 삭제와 동일한 방식으로 동작합니다. 형식은 다음과 같습니다: + + [횟수] c 대상 또는 c [횟수] 대상 + + 2. 적용 가능한 대상 역시 같습니다. w (단어), $ (줄의 끝) 등이 있습니다. + + 3. ---> 로 표시된 첫줄로 이동합니다. + + 4. 첫 에러 위로 커서를 옮깁니다. + + 5. c$ 를 입력하여, 그 줄의 나머지가 두번째 줄처럼 되도록 수정한 후 를 + 누르십시오. + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + +참고: 입력하는 동안은 백스페이스를 이용할 수 있습니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.3 요약 + + + 1. 이미 지운 내용을 되돌리려면, p 를 누르십시오. 이 명령은 커서 *다음에* + 지워진 내용을 붙입니다(PUT). (한 줄을 지운 경우에는 커서 다음 줄에 + 지워진 내용이 붙습니다.) + + 2. 커서 아래의 글자를 치환하려면(REPLACE), r 을 누른 후 원래 글자 대신 + 바꾸어 넣을 글자를 입력합니다. + + 3. 변환 명령(CHANGE)은 커서에서 부터 지정한 대상의 끝까지 바꿀 수 있는 + 명령입니다. 예를 들어, 커서 위치에서 단어의 끝까지 바꾸려면 ce 를 + 입력하면 되며, c$ 는 줄 끝까지 바꾸는 데 쓰입니다. + + 4. 변환 명령의 형식은 다음과 같습니다: + + [횟수] c 대상 또는 c [횟수] 대상 + +계속해서 다음 Lesson 을 진행합시다. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.1: 위치와 파일의 상태 + + + ** CTRL-G 를 누르면 파일 내에서의 현재 위치와 파일의 상태를 볼 수 있습니다. + G 를 누르면 파일 내의 마지막 줄로 이동합니다. ** + + 주의: 아래의 단계를 따라하기 전에, 이 Lesson 전체를 먼저 읽으십시오. + + 1. CTRL 키를 누른 상태에서 g 를 누릅니다. 파일 이름과 현재 위치한 줄이 + 표시된 상태줄이 화면 아래에 표시될 것입니다. 3번째 단계를 위해 그 + 줄 번호를 기억하고 계십시오. + +참고: 커서가 화면 오른쪽 하단으로 옮겨진 것을 보인다면, + 이는 'ruler' 옵션을 세팅된 경우 입니다. (:help 'ruler' 를 참고 하세요.) + + 2. G 를 누르면 파일의 마지막으로 이동합니다. + gg 를 누르면 파일의 시작 부분으로 이동합니다. + + 3. 아까 기억했던 줄 번호를 입력한 후 G 를 누르십시오. 이렇게 하면 + 처음에 CTRL-G 를 눌렀던 장소로 되돌아가게 될 것입니다. + (번호를 입력할 때, 이것은 화면에 표시되지 않습니다.) + + 4. 자신이 생겼다면, 1에서 3까지를 실행해보십시오. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.2: 찾기 명령 + + + ** / 를 누른 후 검색할 문구를 입력하십시오. ** + + 1. 명령 모드에서 / 를 입력하십시오. : 명령에서와 마찬가지로, 화면 아래에 + / 와 커서가 표시될 것입니다. + + 2. 'errroor' 라고 친 후 를 치십시오. 이 단어를 찾으려고 합니다. + + 3. 같은 문구를 다시 찾으려면, 간단히 n 을 입력하십시오. + 같은 문구를 반대 방향으로 찾으려면, Shift-N 을 입력하십시오. + + 4. 문구를 역방향으로 찾으려면, / 대신 ? 를 이용하면 됩니다. + + 5. 원래 있던 곳으로 돌아가기 위해서는 CTRL-O 를 이용하면 됩니다. 반복하면 더 이전으로도 + 갈 수 있습니다. CTRL-I 로 다시 뒤로 갈 수도 있습니다. + +---> "errroor" is not the way to spell error; errroor is an error. + +참고: 찾는 중에 파일의 끝에 다다르게 되면, 파일의 처음부터 다시 찾게 됩니다. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.3: 괄호의 짝 찾기 + + + ** % 를 눌러서 ), ], } 의 짝을 찾습니다. ** + + 1. 커서를 ---> 로 표시된 줄의 (, [, { 중 하나에 가져다 놓습니다. + + 2. % 를 입력해 봅시다. + + 3. 커서가 짝이 맞는 괄호로 이동할 것입니다. + + 4. % 를 입력하여, 이전 괄호로 되돌아 옵시다. + + 5. 커서를 다른 (,),[,],{ 혹은 } 로 움직여 % 를 입력해 봅니다. + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + +참고: 짝이 맞지 않는 괄호가 있는 프로그램을 디버깅할 때에 매우 유용합니다! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.4.4: 치환(SUBTITUTE) 명령 + + + ** :s/old/new/g 하면 'old' 를 'new' 로 치환(SUBTITUTE)합니다. ** + + 1. 커서를 ---> 로 표시된 줄에 가져다 놓습니다. + + 2. :s/thee/the 를 입력한 후 를 칩니다. 이 명령은 그 줄에서 + 처음으로 발견된 것만 바꾼다는 것에 주의하십시오. + + 3. 이번에는 :s/thee/the/g 를 입력합니다. 이는 그 줄 전체(globally)를 + 치환한다는 것을 의미합니다. + +---> thee best time to see thee flowers is in thee spring. + + 4. 두 줄 사이의 모든 문자열에 대해 치환하려면 다음과 같이 합니다, + :#,#s/old/new/g #,# 는 두 줄의 줄번호를 뜻합니다. + :%s/old/new/g 파일 전체에서 발견된 모든 것을 치환하는 경우입니다. + :%s/old/new/gc 파일 전체에서 발견된 모든 것을 찾고, 치환할지 안 + 할지 프롬프트로 명령합니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.4 요약 + + 1. CTRL-G 파일의 상태와 파일 내에서의 현재 위치를 표시합니다. + G 파일의 끝으로 이동합니다. + 숫자 G 해당 줄로 이동합니다. + gg 첫 번째 라인으로 이동합니다. + + 2. / 를 입력한 후 문구를 입력하면 그 문구를 아랫방향으로 찾습니다. + ? 를 입력한 후 문구를 입력하면 윗방향으로 찾습니다. + 검색 후, n 을 입력하면 같은 방향으로 다음 문구를 찾으며, + Shift-N 을 입력하면 반대 방향으로 찾습니다. + CTRL-O 는 과거의 위치로, CTRL-I는 새로운 위치로 옮겨줍니다. + + 3. 커서가 (,),[,],{,} 위에 있을 때에 % 를 입력하면 상응하는 짝을 + 찾아갑니다. + + 4. 어떤 줄에 처음 등장하는 old를 new로 바꾸려면 :s/old/new + 한 줄에 등장하는 모든 old를 new로 바꾸려면 :s/old/new/g + 두 줄 #,# 사이에서 치환을 하려면 :#,#s/old/new/g + 파일 내의 모든 문구를 치환하려면 :%s/old/new/g + 바꿀 때마다 확인을 거치려면 'c'를 붙여서 :%s/old/new/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.1: 외부 명령 실행하는 방법 + + + ** :! 을 입력한 후 실행하려는 명령을 입력하십시오. ** + + 1. 친숙한 명령인 : 를 입력하면 커서가 화면 아래로 이동합니다. 명령을 + 입력할 수 있게 됩니다. + + 2. 이제 ! (느낌표) 를 입력하십시오. 이렇게 하면 외부 쉘 명령을 실행할 + 수 있습니다. + + 3. 시험삼아 ! 다음에 ls 를 입력한 후 를 쳐보십시오. 쉘 프롬프트 + 에서처럼 디렉토리의 목록이 출력될 것입니다. ls 가 동작하지 않는다면 + :!dir 을 시도해 보십시오. + +참고: 어떤 외부 명령도 이 방법으로 실행할 수 있습니다. + +참고: 모든 : 명령은 를 쳐야 마무리 됩니다. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.2: 보다 자세한 파일 저장 + + + ** 수정된 내용을 파일로 저장하려면, :w FILENAME 하십시오. ** + + 1. :!dir 또는 :!ls 를 입력하여 디렉토리의 리스트를 얻어옵니다. + 위의 명령 후 를 쳐야한다는 것은 이미 알고 있을 것입니다. + + 2. TEST 처럼 존재하지 않는 파일 이름을 하나 고르십시오. + + 3. 이제 :w TEST 라고 입력하십시오. (TEST는 당신이 선택한 파일 이름입니다.) + + 4. 이렇게 하면 빔 길잡이 파일 전체를 TEST라는 이름으로 저장합니다. + 확인하려면, :!dir 을 다시 입력하여, 디렉토리를 살펴보십시오. + +참고: 빔을 종료한 후, 빔을 다시 실행하여 TEST라는 파일을 열면, 그 파일은 + 저장했을 때와 완벽히 같은 복사본일 것입니다. + + 5. 이제 그 파일을 지웁시다. + (MS-DOS에서): !del TEST + (Unix에서): !rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.3: 선택적으로 저장하는 명령 + + ** 파일의 일부를 저장하려면, v 대상 :w FILENAME 을 입력합니다. ** + + 1. 이 줄로 커서를 가져옵니다. + + 2. v 를 누르고 커서를 아래 다섯번째로 옮깁니다. 이 때, 문자열들이 하이라이트 됨을 주목합니다. + + 3. : 를 누릅니다. 화면 하단에 :'<,'> 가 나타납니다. + + 4. w TEST 를 입력합니다. 여기서 TEST는 파일 이름이며 아직 생성되어 있지 않습니다. 를 + 누르기 전, :'<,'>w TEST 로 입력되었는지 확인 합니다. + + 5. 빔은 선택된 문장들을 TEST 파일에 입력합니다. :!dir 혹은 :!ls를 이용하여 파일이 만들어졌는지 + 확인하십시오. 아직 삭제하지 마십시오! 다음 레슨에서 이 파일을 사용합니다. + +참고 : v 를 눌러 비주얼(Visual) 선택을 시작합니다. 커서를 주변으로 움직여 선택 부분을 조절할 수 + 있습니다. 그리고 명령어를 이용해 해당 문자열을 조작할 수 있습니다. 예를 들어, d 를 이용해 + 삭제할 수도 있습니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.4: 파일 읽어들이기, 합치기 + + + ** 어떤 파일의 내용을 삽입하려면, :r FILENAME 하십시오 ** + + 1. 커서를 이 라인 바로 위로 옮기십시오. + +주의: 3번째 단계를 실행하면, Lesson 1.5.3 을 보게 될 것입니다. 그렇게 되면 + 이 lesson으로 다시 내려오십시오. + + 2. 이제 TEST 파일을 읽어들입시다. :r TEST 명령을 사용하십시오. TEST 는 + 파일의 이름입니다. 읽어들인 파일은 커서가 위치한 문장 아래부터 놓이게 됩니다. + + 3. 파일이 읽어들여진 것을 확인하기 위해, 뒤로 이동해서 기존 버전과 파일에서 + 읽어들인 버전, 이렇게 Lesson 1.5.3 이 두번 반복되었음을 확인하십시오. + +참고: 외부 명령어의 결과값도 읽을 수 있습니다. 예를 들어, :r !ls 는 ls 명령어에 대한 결과값을 + 읽어 커서 바로 아래에 합칩니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.5 요약 + + + 1. :!command 를 이용하여 외부 명령을 실행합니다. + + 유용한 예: + (MS-DOS) (Unix) + :!dir :!ls - 디렉토리의 목록을 보여준다. + :!del FILENAME :!rm FILENAME - FILENAME이라는 파일을 지운다. + + 2. :w FILENAME 하면 현재 빔에서 사용하는 파일을 FILENAME이라는 이름으로 + 디스크에 저장합니다. + + 3. v 명령 :w FILENAME 은 비주얼 모드에서 선택된 문장들을 파일 FILENAME에 저장합니다. + + 4. :r FILENAME 은 디스크에서 FILENAME이라는 파일을 불러들여서 커서 위치 + 뒤에 현재 파일을 집어넣습니다. + + 5. :r !dir 는 dir 명령어의 결과값을 현재 커서의 위치 아래에 붙힙니다. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.1: 새 줄 열기(OPEN) 명령 + + + ** o 를 누르면 커서 아래에 줄을 만들고 편집 모드가 됩니다. ** + + 1. 아래에 ---> 로 표시된 줄로 커서를 옮기십시오. + + 2. o (소문자)를 쳐서 커서 *아래에* 줄을 하나 여십시오. 편집 모드가 됩니다. + + 3. ---> 로 표시된 줄을 복사한 후 를 눌러서 편집 모드에서 나오십시오. + +---> After typing o the cursor is placed on the open line in Insert mode. + + 4. 커서 *위에* 줄을 하나 만드려면, 소문자 o 대신 대문자 O 를 치면 됩니다. + 아래 있는 줄에 대해 이 명령을 내려보십시오. + +---> Open up a line above this by typing O while the cursor is on this line. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.2: 추가(APPEND) 명령 + + + ** a 를 누르면 커서 *다음에* 글을 입력할 수 있습니다. ** + + 1. 커서를 ---> 로 표시된 첫번째 줄의 끝으로 옮깁니다. + + 2. e 를 눌러 li 의 끝으로 커서를 옮깁니다. + + 3. 소문자 a 를 커서 아래 글자 *다음*에 글을 추가할 수 있습니다. + + 4. 아랫줄과 같이 문장을 완성해 봅니다. 를 이용해 편집(Insert) 모드를 나갑니다. + + 5. e 를 이용해 다음 고칠 단어로 움직여 3에서 4까지를 반복합니다. + +참고: 그렇게 하시면 고작 줄의 끝에 추가를 하기 위해 i를 누르고, 커서 아래에 + 있던 글자를 반복하고, 글을 끼워넣고, 를 눌러 명령 모드로 돌아와서, + 커서를 오른쪽으로 옮기고 마지막으로 x까지 눌러야 하는 번거로움을 피하실 + 수 있습니다. + + 3. 이제 첫 줄을 완성하십시오. 추가 명령은 텍스트가 입력되는 위치 외에는 + 편집 모드와 완전히 같다는 것을 유념하십시오. + +---> This li will allow you to pract appendi text to a line. +---> This line will allow you to practice appending text to a line. + +참고: a, i 그리고 A 는 텍스트가 입력되는 위치 외에는 편집 모드와 완전히 같다는 것을 유념하십시오. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.3: 치환(REPLACE) 의 다른 버전 + + + ** 대문자 R 을 입력하면 하나 이상의 글자를 바꿀 수 있습니다. ** + + 1. ---> 로 표시된 첫번째 줄로 움직여 커서를 xxx의 앞으로 옮깁니다. + + 2. R 을 입력한 후, 두번째 줄과 같은 숫자를 입력해 xxx를 치환합니다. + + 3. 를 눌러 치환 모드를 빠져나갑니다. 나머지 문장은 그대로 남아 있는지 확인합니다. + + 4. 위 단계들 반복하여 남은 모든 xxx를 치환합니다. + +---> Adding 123 to xxx gives you xxx. +---> Adding 123 to 456 gives you 579. + +주의: 치환 모드는 편집 모드와 비슷합니다. 하지만 입력된 문자들이 원래 문자들을 삭제하는 점이 다릅니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.4: 문자 복사 붙여넣기(COPY AND PASTE) + + + ** y 를 이용해 복사하고 p 로 붙여 넣습니다. ** + + 1. ---> 로 표시된 줄로 움직여 커서를 "a)" 뒤로 옮깁니다. + + 2. v 를 눌러 비주얼 모드를 시작하고 "first" 바로 앞까지 커서를 움직입니다. + + 3. y 를 눌러 하이라이트 된 부분을 복사(yank (copy))합니다. + + 4. 커서를 다음 문장의 끝으로 옮깁니다: j$ + + 5. p 를 눌러 문자열을 붙여 넣습니다.(paste) 그리고 second 를 입력합니다. + + 6. 비주얼 모드를 이용해 " item."을 선택, y 로 복사, j$ 으로 다음 문장 끝으로 움직여 + p 로 단어를 붙여 넣습니다. + +---> a) this is the first item. + b) + + 참고: y 역시 명령어로 사용 가능합니다. 예를 들어, yw 는 한 단어를 복사합니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.6.5: 옵션 설정(SET) + + ** 찾기나 바꾸기에서 대소문자 구분을 없애기 위해 옵션을 설정합니다 ** + + 1. 다음을 입력하여 'ignore' 를 찾으십시오: /ignore + n 키를 이용하여 여러번 반복하십시오. + + 2. 'ic' (대소문자 구별 안함, Ignore case) 옵션을 설정하십시오: + :set ic + + 3. n 키를 눌러서 'ignore' 를 다시 찾아보십시오. + 이제 ignore과 IGNORE 모두 검색되는 점을 주목합니다. + + 4. 'hlsearch' 와 'incsearch' 옵션을 설정합시다. + :set hls is + + 5. 찾기 명령을 다시 입력하여, 어떤 일이 일어나는지 확인해 보십시오: + /ignore + + 6. 대소문자 구별을 끄기 위해서는, 다음과 같이 입력합니다: + :set noic + +참고: 찾은 내용이 강조(HIGHLIGHT)된 것을 없애려면: :nohlsearch +참고: 만약, 검색 한번에 대해서만 대소문자 구별 세팅을 끄고 싶다면 \c 를 이용할 수 있습니다. + : /ignore\c + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.6 요약 + + + 1. o 를 입력하면 커서 *아래에* 한 줄이 열리며, 커서는 편집 모드로 + 열린 줄 위에 위치하게 됩니다. + 대문자 O 를 입력하면 커서가 있는 줄의 *위로* 새 줄을 열게 됩니다. + + 2. a 를 입력하면 커서 *다음에* 글을 입력할 수 있습니다. + 대문자 A 를 입력하면 자동으로 그 줄의 끝에 글자를 추가하게 됩니다. + + 3. e 를 입력하면 단어의 끝으로 움직입니다. + + 4. y 를 입력하면 복사(yank (copy))를, p 를 입력하면 붙여 넣기가 됩니다. + + 5. 대문자 R 을 입력하면 를 눌러서 나가기 전까지 바꾸기 모드가 됩니다. + + 6. ":set xxx" 를 하면 "xxx" 옵션이 설정됩니다.: + 'ic' 'ignorecase' 검색시 대소문자 구별을 하지 않습니다. + 'is' 'incsearch' 검색어에서 부분 검색 결과를 보여줍니다. + 'hls' 'hlsearch' 검색 결과값을 하이라이트해줍니다. + 옵션은 전체 이름 혹은 줄인 이름 모두 사용 가능합니다. + + 7. 앞에 "no"를 붙여 옵션을 끌 수 있습니다: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.7.1: 온라인 도움말 명령 + + + ** 온라인 도움말 시스템 사용하기 ** + + 빔은 폭 넓은 온라인 도움말 시스템을 제공합니다. 도움말을 보려면, + 다음 세가지 중 하나를 시도해보십시오: + - 키를 누른다. (키가 있는 경우) + - 키를 누른다. (키가 있는 경우) + - :help 라고 입력한다. + + 도움말 창을 닫으려면 :q 라고 입력하십시오. + CTRL-W CTRL-W 다른쪽 윈도우로 넘어갑니다. + :q 도움말 윈도우를 닫습니다. + + ":help" 라는 명령에 인자를 주면 어떤 주제에 관한 도움말을 찾을 수 있습니다. + 다음 명령을 내려 보십시오. ( 키를 누르는 것을 잊지 마십시오.) + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LESSON 1.7.2: 시작 스크립트 만들기 + + ** 빔의 기능 켜기 ** + + 빔은 Vi 보다 훨씬 많은 기능을 가지고 있지만, 대부분은 기본적으로 작동하지 + 않습니다. 더 많은 기능을 써보려면, "vimrc" 라는 파일을 만들어야 합니다. + + 1. "vimrc" 파일을 수정합시다. 이 파일은 사용하는 시스템에 따라 다릅니다: + :e ~/.vimrc Unix의 경우 + :e ~/_vimrc MS-Windows의 경우 + + 2. 이제 "vimrc"의 예제를 읽어들입니다: + :r $VIMRUNTIME/vimrc_example.vim + + 3. 다음과 같이 하여 파일을 저장합니다: + :w + + 다음 번에 빔을 시작하면, 구문 강조(syntax highlighting)이 사용될 것입니다. + 모든 원하는 설정을 이 "vimrc" 파일에 넣어둘 수 있습니다. + 더 자세한 내용은 :help vimrc-intro를 참고 하세요. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7.3: 명령어 완성하기 + + + ** CTRL-D 와 이용하여 명령어를 완성할 수 있습니다.** + + 1. 먼저 vim이 호환 모드가 아닌지를 확인합니다: :set nocp + + 2. 디렉토리에 파일이 존재하는지 먼저 확인 합니다.: :!ls 혹은 :!dir + + 3. 다음과 같이 명령어를 입력합니다: :e + + 4. CTRL-D 를 누르면 "e"로 시작하는 모든 명령어들을 볼 수 있습니다. + + 5. 을 눌러 ":edit" 명령어를 완성해 봅니다. + + 6. 이제 빈칸 하나를 추가한 뒤, 존재하는 파일 이름의 앞 부분을 입력합니다: :edit FIL + + 7. 을 눌러 파일 이름을 완성 시킵니다. + +참고: 완성하기는 많은 명령어에서 사용할 수 있습니다. CTRL-D와 만 누르세요! + 특히, :help 에서 유용할 것입니다. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.7 요약 + + + 1. 도움말을 열기 위해 :help 혹은 혹은 를 누릅니다. + + 2. cmd 에 대한 도움말을 보기 위해서는 :help cmd 를 입력합니다. + + 3. CTRL-W CTRL-W 를 이용해 다른 윈도우로 넘어갑니다. + + 4. :q 로 도움말 윈도우를 빠져나옵니다. + + 5. vimrc 시작 스크립트를 이용해 선호하는 세팅을 유지할 수 있습니다. + + 6. : 명령어를 입력할때, CTRL-D 를 눌러 가능한 명령어들을 볼수 있습니다. + 을 눌러 완성 가능합니다. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 이것으로 빔 길잡이를 마칩니다. 이 길잡이는 빔 편집기에 대한 간략한 개요를 + 보여주기 위한 의도로 제작되었으며, 이 편집기를 정말 간단히 사용하기에 + 충분할 뿐입니다. 빔에는 이 길잡이와는 비교할 수 없을 만큼 훨씬 많은 명령이 + 있습니다. 다음 사용자 매뉴얼을 읽으십시오: ":help user-manual" + + 보다 자세히 읽고 공부하려면, 다음 책을 추천해 드립니다: + Vim - Vi Improved - by Steve Oualline + 출판사: New Riders + 이 책은 완전히 빔에 대해서만 다루고 있습니다. 특히 초보자들에게 유용합니다. + 많은 예제와 그림이 있습니다. + 다음을 참고하십시오: https://iccf-holland.org/click5.html + + 다음 책은 좀 오래된 책으로 빔보다는 Vi에 대해 다루고 있지만, 역시 추천할 만 + 합니다: + Learning the Vi Editor - by Linda Lamb + 출판사: O'Reilly & Associates Inc. + Vi로 하고 싶은 거의 모든 것에 대해 알 수 있는 좋은 책입니다. + 여섯번째 개정판은 빔에 관한 내용을 포함하고 있습니다. + + 이 길잡이는 Colorado School of Mines의 Michael C. Pierce 와 + Robert K. Ware 가 Colorado State University의 Charles Smith 의 아이디어에 + 착안하여 썼습니다. + . E-mail: bware@mines.colorado.edu. + + Modified for Vim by Bram Moolenaar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.lt b/git/usr/share/vim/vim92/tutor/tutor1.lt new file mode 100644 index 0000000000000000000000000000000000000000..0e1c29663fb6935c10b4869d77b63becde24273a --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.lt @@ -0,0 +1,1061 @@ +=============================================================================== += V I M p r a d ž i a m o k s l i s – 1.7 versija = +=============================================================================== + + „Vim“ yra galingas tekstų redaktorius, turintis daug komandų – tiek daug, + kad tokiame pradžiamokslyje kaip šis jų visų aprašyti neįmanoma. Šio + pradžiamokslio tikslas – aprašyti tas komandas, kurių pagalba lengvai + išmoksite naudotis „Vim“ kaip visaverčiu tekstų redaktoriumi. + + Vidutiniškai šiam pradžiamoksliui praeiti užtrunkama apie 30 minučių, + priklausomai nuo to, kiek laiko skiriama eksperimentams. + + SVARBU: + Pamokėlių metu šis tekstas bus keičiamas, tad mokymuisi pasidarykite šio + failo kopiją (jei paleidote „vimtutor“ komandą, tai jau skaitote failo + kopiją). + + Neužmirškite, kad šis pradžiamokslis yra praktinis. Tai reiškia, kad + reikia pačiam įvykdyti nurodytas komandas, jei norite jas tinkamai + išmokti. Jeigu tiktai skaitysite šį tekstą, komandas tiesiog užmiršite! + + VERTĖJO PASTABOS: + „Vim“ komandas dažnai sudaro raidės. Turėkite omenyje, jog šių raidžių + registras (tai, ar jos didžiosios, ar mažosios) yra svarbus. Kai tekste + matysite instrukciją, panašią į „spustelėkite klavišą x“, tai reikš, jog + turėsite įvesti būtent mažąją raidę. Analogiškai, jei matysite + instrukciją, panašią į „spustelėkite klavišą X“, tai reikš, jog kalbama + būtent apie didžiąją raidę. + + Šiame vertime naudojami angliški funkcinių klavišų pavadinimai. Jei jūs + naudojatės lietuviška klaviatūra, joje klavišas žymimas užrašu , + klavišas – užrašu , o klavišas – užrašu <ĮVESTI>. + + Dabar įsitikinkite, kad yra išjungta didžiųjų raidžių veiksena + („Caps Lock“) ir spauskite klavišą j tol, kol 1.1.1 pamokos tekstas + visiškai užpildys ekraną. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.1 pamoka: ŽYMEKLIO VALDYMAS + + + ** Žymeklis valdomas klavišų h,j,k,l pagalba, kaip pavaizduota. ** + ^ + k Pastabos: klavišas h yra kairėje ir perkelia kairėn. + < h l > Klavišas l yra dešinėje ir perkelia dešinėn. + j Raidė „j“ kažkiek primena rodyklę žemyn. + v + 1. Judinkite žymeklį ekrane, kol apsiprasite. + + 2. Nuspauskite klavišą žemyn (j), kol jo veiksmas ims kartotis. + Dabar žinote, kaip nukeliauti iki kitos pamokos. + + 3. Naudodami klavišą žemyn, keliaukite iki 1.1.2 pamokos. + +PASTABA: Jei kada nebūtumėte tikri, kad nuspaudėte reikiamą klavišą, + spustelėkite klavišą – taip sugrįšite į „Normaliąją“ veikseną. + Tada pakartokite norimą komandą. + +PASTABA: Žymeklį paprastai galima valdyti ir rodyklių klavišais, tačiau, įpratę + naudoti hjkl, judėsite greičiau. Pažadame! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.2 pamoka: DARBO SU „VIM“ PABAIGA + + + !! SVARBU: prieš bandydami toliau nurodytas komandas, !! + !! perskaitykite šią pamoką iki galo! !! + + 1. Spustelėkite klavišą + (taip užtikrinsite, jog esate „Normaliojoje“ veiksenoje). + + 2. Surinkite: :q! + Šitaip užbaigsite redaktoriaus darbą NEĮRAŠYDAMI jokių atvertame faile + atliktų pakeitimų. + + 3. Sugrįžkite atgal į šį pradžiamokslį, pakartodami ankstesnę jį + iškvietusią komandą. Pavyzdžiui: vimtutor . + + 4. Jei šiuos žingsnius įsiminėte, įvykdykite punktus nuo 1 iki 3, kad + užbaigtumėte redaktoriaus darbą ir vėl jį atvertumėte. + +PASTABA: komanda :q! užbaigia redaktoriaus darbą, atmesdama bet kokius + juo atliktus, bet dar neįrašytus failo pakeitimus. Kaip pakeitimus + įrašyti, sužinosite paskesnėje pamokoje. + + 5. Perkelkite žymeklį žemyn į 1.1.3 pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.3 pamoka: TEKSTO REDAGAVIMAS - ŠALINIMAS + + + ** Pašalinti ties žymekliu esantį rašmenį galite spustelėdami x klavišą. ** + + 1. Perkelkite žymeklį į žemiau esančią eilutę, pažymėtą --->. + + 2. Norėdami ištaisyti klaidas, perkelkite žymeklį ant rašmens, kurį + norite pašalinti. + + 3. Spustelėkite klavišą x , kad pašalintumėte nereikalingą rašmenį. + + 4. Kartokite punktus nuo 2 iki 4, kol ištaisysite visas klaidas sakinyje. + +---> KKarvė peršooko pperr mmmėnullį. + + 5. Ištaisę klaidas sakinyje, eikite į 1.1.4 pamoką. + +PASTABA: šiame pradžiamokslyje komandas stenkitės įsiminti ne tik skaitydami + jų aprašymus, bet ir išbandydami jas praktiškai. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.4 pamoka: TEKSTO REDAGAVIMAS – ĮTERPIMAS + + + ** Įterpti tekstą galite, prieš tai spustelėję i raidę. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Norėdami pirmą eilutę papildyti iki antrosios, perkelkite žymeklį ant + rašmens, PRIEŠ kurį norite įterpti tekstą. + + 3. Spustelėkite klavišą i ir surinkite reikiamą tekstą. + + 4. Ištaisę klaidą, spustelėkite , kad sugrįžtumėte į „Normaliąją“ + veikseną. Kartokite 2–4 žingsnius tol, kol sakinys bus ištaisytas. + +---> Šioje eiluje trūksta tiek . +---> Šioje eilutėje trūksta šiek tiek teksto. + + 5. Išmokę įterpti tekstą, keliaukite toliau į 1.1.5 pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.5 pamoka: TEKSTO REDAGAVIMAS – PRIDĖJIMAS EILUTĖS GALE + + + ** Pridėti teksto eilutės gale galite, prieš tai spustelėję A raidę. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + Visiškai nesvarbu, ties kuriuo rašmeniu toje eilutėje bus žymeklis. + + 2. Spustelėkite klavišą A ir įveskite pridedamą tekstą. + + 3. Pridėję tekstą, spustelėkite klavišą , kad sugrįžtumėte + į „Normaliąją“ veikseną. + + 4. Perkelkite žymeklį į antrąją eilutę, pažymėtą ---> ir pataisykite sakinį + joje, pakartodami 2 ir 3 žingsnius. + +---> Šioje eilutėje trūksta ši + Šioje eilutėje trūksta šiek tiek teksto. +---> Čia taip pat trūks + Čia taip pat trūksta šiek tiek teksto. + + 5. Išmokę pridėti teksto eilutės gale, keliaukite toliau į 1.1.6 pamoką. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.6 pamoka: FAILO REDAGAVIMAS + + + ** Komanda :wq įrašo atvertą failą ir užbaigia redaktoriaus darbą. ** + + !! SVARBU: prieš bandydami toliau nurodytas komandas, !! + !! perskaitykite šią pamoką iki galo !! + + 1. Jei galite naudotis kitu terminalu, tolesnius veiksmus atlikite jame. + Kitu atveju užverkite šį pradžiamokslį kaip ir 1.1.2 pamokoje: :q! + + 2. Komandų eilutėje įveskite komandą: vim failas.txt + Čia „vim“ – komanda „Vim“ redaktoriui paleisti, o „failas.txt“ – norimo + redaguoti failo vardas. Naudokite failo, kurį galėsite keisti, vardą. + + 3. Pridėkite ir/ar pašalinkite tekstą, kaip išmokote ankstesnėse pamokose. + + 4. Įrašykite pakeistą failą ir užbaikite „Vim“ darbą: :wq + + 5. Jei pirmajame žingsnyje užvėrėte pradžiamokslį, dabar jį vėl atverkite + komandos „vimtutor“ pagalba, tada keliaukite į pirmosios santrauką žemiau. + + 6. Perskaitę ir įsiminę visus aukščiau aprašytus žingsnius, atlikite juos. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1 pamokos SANTRAUKA + + + 1. Žymeklis valdomas rodyklių arba hjkl klavišais. + h (kairėn) j (žemyn) k (aukštyn) l (dešinėn) + + 2. Iš komandinės eilutės „Vim“ paleidžiamas taip: vim FAILO_VARDAS + + 3. Darbo su „Vim“ pabaiga: :q! – neįrašant jokių pakeitimų. + arba: :wq – įrašant pakeitimus. + + 4. Rašmens po žymekliu pašalinimas, esant „Normaliojoje“ veiksenoje: x + + 5. Teksto įterpimas ar pridėjimas: + i įterpiamas tekstas – įterpti tekstą prieš žymeklį + A pridedamas tekstas – pridėti tekstą eilutės gale + +PASTABA: paspaudimas grąžina į „Normaliąją“ veikseną arba nutraukia + nereikalingos komandos įvedimą. + +Dabar keliaukite į 1.2 pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.1 pamoka: ŠALINIMO KOMANDOS + + + ** Komanda dw šalina žodį. ** + + 1. Spustelėkite , kad sugrįžtumėte į „Normaliąją“ veikseną. + + 2. Perkelkite žymeklį į eilutę žemiau, pažymėtą --->. + + 3. Perkelkite žymeklį į norimo pašalinti žodžio pradžią. + + 4. Spustelėkite dw žodžio pašalinimui. + +PASTABA: Raidė d pasirodys apatinėje terminalo eilutėje, spustelėjus jos + klavišą. „Vim“ lauks, kol surinksite raidę w . Jei terminalo apačioje + matote kitą raidę ar suklydote ją rinkdami – spustelėkite ir + rinkite komandą iš naujo. + +---> Yra mėlynas žodžių, kurie skėtis nepriklauso juokiasi šiam sakiniui. + + 5. Kartokite 3 ir 4 punktus tol, kol sakinys bus ištaisytas. Tuomet + keliaukite į 1.2.2 pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.2 pamoka: DAUGIAU ŠALINIMO KOMANDŲ + + + ** Komanda d$ pašalinta tekstą iki eilutės pabaigos. ** + + 1. Spustelėkite , kad sugrįžtumėte į „Normaliąją“ veikseną. + + 2. Perkelkite žymeklį į eilutę žemiau, pažymėtą --->. + + 3. Perkelkite žymeklį į pageidautiną eilutės pabaigą (PO pirmojo taško). + + 4. Surinkite d$ nereikalingam tekstui iki eilutės pabaigos pašalinti. + +---> Kažkas šios eilutės pabaigą įvedė dukart. pabaigą įvedė dukart. + + + 5. Keliaukite į 1.2.3 pamoką. Ten sužinosite daugiau kaip vyksta šalinimas. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.3 pamoka: OPERATORIAI IR VEKTORIAI + + + Daugelį teksto redagavimo komandų sudaro operatorius ir vektorius. + Pavyzdžiui, šalinimo komandos su operatoriumi d formatas yra toks: + + d vektorius + Kur: + d – šalinimo operatorius; + vektorius – nurodo, kuo komanda operuoja (išvardyta žemiau). + + Trumpas vektorių sąrašas: + w – iki artimiausios žodžio pradžios, NEĮTRAUKIANT pirmojo jo rašmens; + e – iki artimiausios žodžio pabaigos, ĮTRAUKIANT paskutinį jo rašmenį; + $ – iki einamosios eilutės pabaigos, ĮTRAUKIANT paskutinį jos rašmenį. + + Taigi, įvedę komandą de , pašalinsite tekstą nuo žymeklio pozicijos iki + atitinkamo žodžio pabaigos. + +PASTABA: „Normaliojoje“ veiksenoje spustelėjus tik vektoriaus klavišą, bet + nenurodžius operatoriaus, į atitinkamą poziciją bus perkeltas teksto + žymeklis. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.4 pamoka: VEKTORIAUS NAUDOJIMAS SU SKAITIKLIU + + + ** Prieš vektoriaus ženklą parašius skaičių, jis pakartojamas atitinkamą + skaičių kartų. ** + + 1. Perkelkite žymeklį į eilutės žemiau, pažymėtos --->, pradžią. + + 2. Įveskite 2w , kad perkeltumėte žymeklį per du žodžius pirmyn (į žodžio + pradžią). + + 3. Įveskite 3e , kad perkeltumėte žymeklį iki trečiosios žodžio pabaigos + nuo einamosios jo vietos. + + 4. Įveskite 0 (nulį), kad perkeltumėte žymeklį į eilutės pradžią. + + 5. Pakartokite žingsnius 2 ir 3 su kitais skaičiais. + +---> Šioje eilutėje yra žodžių, po kuriuos galite pakilnoti žymeklį. + + 6. Keliaukite toliau į 1.2.5 pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.5 pamoka: SKAITIKLIO NAUDOJIMAS ŠALINANT TEKSTĄ + + + ** Kai skaičius naudojamas su operatoriumi, komanda pakartojama atitinkamą + skaičių kartų. ** + + Į aukščiau minėtą teksto šalinimo operatoriaus ir vektoriaus kombinaciją + įterpę skaičių, galite pašalinti daugiau teksto: + d skaičius vektorius + + 1. Perkelkite žymeklį ties pirmuoju DIDŽIOSIOMIS RAIDĖMIS parašytu žodžiu + eilutėje žemiau, pažymėtoje --->. + + 2. Įveskite d2w , kad pašalintumėte du DIDŽIOSIOMIS RAIDĖMIS parašytus + žodžius. + + 3. Kartokite žingsnius 1 ir 2 su kitais skaičiais, kad pašalintumėte kitus + vienas po kito einančius žodžius DIDŽIOSIOMIS RAIDĖMIS vienos komandos + pagalba. + +---> Šis ABC DE sakinys FGHI JK LMN OP dabar išvalytas R STU VZŽ nuo šlamšto. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.6 pamoka: OPERAVIMAS VISOMIS EILUTĖMIS + + + ** Spustelėkite dd visai eilutei pašalinti. ** + + Kadangi visos eilutės šalinimas – gan dažna operacija, „Vi“ autoriai nutarė, + jog bus patogiau dukart spustelėti d visos eilutės pašalinimui. + + 1. Perkelkite žymeklį į antrąją eilutę žemiau, pažymėtą --->. + 2. Surinkite dd visai eilutei pašalinti. + 3. Tada pereikite į ketvirtąją eilutę. + 4. Surinkite 2dd pašalinti iškart dviems eilutėms. + +---> 1) Apšerkšniję mūsų žiemos – +---> 2) Sniegas maišos su purvu, +---> 3) Balta, balta – kur dairais – +---> 4) Dienos trumpos ir niūrios, +---> 5) Gatvės ir keliai slidūs, +---> 6) Ilgas pasakas mažiemus +---> 7) Seka pirkioj vakarais. + +Operatoriaus dubliavimas, norint atlikti komandą su visa eilute, veikia ir su +kitais žemiau paminėtais operatoriais. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.7 pamoka: ATŠAUKIMO KOMANDA + + + ** Spustelėkite u atšaukti paskutinės komandos pakeitimams, + arba U atšaukti visiems pakeitimams eilutėje. ** + + 1. Perkelkite žymeklį ties pirmąja klaida eilutėje žemiau, pažymėtoje --->. + 2. Spustelėkite x – taip pašalinsite nereikalingą simbolį. + 3. Dabar spustelėkite u paskutinės komandos atliktiems pakeitimams + atšaukti. + 4. Šįkart ištaisykite visas eilutėje esančias klaidas x komandos pagalba. + 5. Spustelėkite didžiąją U – taip atstatysite eilutę į pirminę būseną. + 6. Dabar keletą kartų spustelėkite u – taip atitaisysite U bei ankstesnių + komandų pakeitimus. + 7. Keletą kartų spustelėkite CTRL+R – taip pakartosite atšauktus veiksmus. + +---> Ištaisyykite klaidas šiioje eilutėje iir atšaukite paakeitimus. + + 8. Šios komandos labai naudingos. Keliaukite į 1.2 pamokos santrauką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2 pamokos SANTRAUKA + + + 1. Tekstui pašalinti nuo žymeklio iki kito žodžio pradžios rinkite: dw + 2. Tekstui pašalinti nuo žymeklio iki einamojo žodžio pabaigos rinkite: de + 3. Tekstui pašalinti nuo žymeklio iki eilutės pabaigos rinkite: d$ + 4. Visai eilutei pašalinti rinkite: dd + + 5. Vektoriui pakartoti prieš jį parašykite skaičių: 2w + 6. Pakeitimo komandos formatas yra toks: + komanda [skaičius] vektorius + kur: + komanda – atliktinas veiksmas, pavyzdžiui d – šalinimas + [skaičius] – skaitiklis, nurodantis, kiek kartų pakartoti veiksmą + (neprivalomas) + vektorius – nurodo apimtį teksto, kuriuo norima operuoti, pavyzdžiui: + w (iki žodžio pradžios), e (iki žodžio pabaigos), + $ (iki eilutės pabaigos) ir pan. + + 7. Žymekliui perkelti į eilutės pradžią surinkite nulį: 0 + + 8. Atšaukti pastariesiems pakeitimams rinkite: u (mažoji u) + Atšaukti visiems pakeitimams esamojoje eilutėje rinkite: U (didžioji U) + Pakartoti atšauktiems veiksmams spustelėkite: CTRL+R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.1 pamoka: PATALPINIMO KOMANDA + + + ** Komanda p už žymeklio patalpina paskiausiai pašalintą tekstą. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Spustelėkite dd – taip pašalinsite einamąją eilutę ir patalpinsite jos + turinį į „Vim“ iškarpinę. + + 3. Perkelkite žymeklį į c) eilutę, VIRŠ tos vietos, kurioje turėtų atsidurti + pašalintoji eilutė. + + 4. Spustelėkite p – taip pašalintą eilutę patalpinsite į reikiamą vietą. + + 5. Kartokite 2-4 žingsnius ir perkelkite visas eilutes į savo vietas. + +---> d) Seka pirkioj vakarais. +---> b) Balta, balta – kur dairais – +---> c) Ilgas pasakas mažiemus +---> a) Apšerkšniję mūsų žiemos – + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.2 pamoka: PAKEITIMO KOMANDA + + + ** Rašmenį, esantį ties žymekliu, galite pakeisti, spustelėdami r ir + naująjį rašmenį. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Tada perkelkite žymeklį ties pirmuoju klaidingu rašmeniu. + + 3. Spustelėkite r ir simbolį, kuriuo norite pakeisti klaidingą. + + 4. Kartokite 2 ir 3 punktą kol eilutė bus ištaisyta. + +---> Kežkus, rinjdamss šį tekštą, pridėrė dauk kleidų! +---> Kažkas, rinkdamas šį tekstą, pridarė daug klaidų! + + 5. Tuomet keliaukite į 1.3.3 pamoką. + +PASTABA: Mokykitės ne tik skaitydami, bet ir darydami. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.3 pamoka: KEITIMO KOMANDA + + + ** Kai norite pakeisti viską iki žodžio pabaigos, spustelėkite ce . ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Patalpinkite žymeklį ties raide „h“ žodyje „eilhhhja“. + + 3. Spustelėkite ce ir ištaisykite žodį (šiuo atveju, surinkite „utėje“). + + 4. Spustelėkite ir perkelkite žymeklį ties kita klaida (pirmuoju + rašmeniu, kurį reikia pakeisti). + + 5. Kartokite 3 ir 4 punktus, kol ištaisysite visą sakinį. + +---> Šioje eilhhhja yra keklasf žodžių, kowkshs reikia ištaisyti. +---> Šioje eilutėje yra keletas žodžių, kuriuos reikia ištaisyti. + +PASTABA: komanda ce pašalina žodį ir įjungia įterpimo veikseną, o + komanda cc analogišką veiksmą atlieka su visa eilute. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.4 pamoka: KITI KEITIMAI NAUDOJANT c OPERATORIŲ + + + ** Keitimo komanda gali būti naudojama su tais pačiais vektoriais, + kaip ir šalinimo. ** + + 1. Keitimo operatorius veikia labai panašiai kaip šalinimo. + Komandos formatas yra toks: + + c [skaičius] vektorius + + 2. Vektoriai yra tokie pat, kaip ir šalinimo komandoje: + w (žodis), $ (iki eilutės pabaigos) ir pan. + + 3. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 4. Tuomet perkelkite žymeklį ties pirma klaida. + + 5. Spustelėkite c$ ir surinkite teisingą eilutės pabaigą, + tada spustelėkite . + +---> Šios eilutės pabaigą reikia perrašyti, kad ji būtų tokia pat, kaip kita. +---> Šios eilutės pabaigą reikia pataisyti c$ komandos pagalba. + +PASTABA: rinkdami tekstą, klaidas pataisyti galite ir naudodamiesi įprastu + šalinimo kairėn klavišu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3 pamokos SANTRAUKA + + + 1. Norėdami patalpinti paskiausiai pašalintą tekstą, spustelėkite p – taip + jį patalpinsite iškart PO žymeklio. Jei buvo pašalinta visa eilutė, tuomet + ji bus patalpinta kaip nauja eilutė po einamosios. + + 2. Vienas rašmuo pakeičiamas spustelint r ir rašmenį, kuriuo norime + pakeisti esamąjį. + + 3. Keitimo operatorius keičia nurodytą teksto dalį nuo žymeklio. Pavyzdžiui, + spustelėdami ce , galite pakeisti tekstą nuo žymeklio iki žodžio + pabaigos, o c$ – iki eilutės pabaigos. + + 4. Keitimo komandos formatas yra toks: + + c [skaičius] vektorius + +Dabar keliaukite į kitą pamoką. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.1 pamoka: ŽYMEKLIO VIETA IR FAILO BŪSENA + + + ** Spustelėję CTRL+G, sužinosite žymeklio vietą faile ir failo būseną. + Spustelėję G , žymeklį perkelsite į nurodytą eilutę. ** + + PASTABA: perskaitykite visą šią pamoką prieš pradėdami vykdyti nurodymus!! + + 1. Spustelėkite CTRL+G klavišų kombinaciją. Redaktoriaus apačioje atsiras + pranešimas su failo vardu ir žymeklio vieta jame. Įsidėmėkite, kurioje + eilutėje yra žymeklis, to reikės 3 punkte. + +PASTABA: žymeklio poziciją faile apatiniame dešiniajame redaktoriaus kampe + galima matyti ir nuolatos – tam galima įjungti parinktį „ruler“ + (liniuotė) (žr. :help 'ruler' ). + + 2. Spustelėkite G tam, kad nukeliautumėte į failo pabaigą. + Spustelėkite gg tam, kad nukeliautumėte į failo pradžią. + + 3. Surinkite eilutės numerį, kurioje buvote pradžioje, tada + spustelėkite G – taip sugrįšite į nurodytą eilutę (jos numerį turėjote + pamatyti ir įsiminti pirmajame šios pamokos žingsnyje). + + 4. Jei supratote, kaip tai daroma – įvykdykite punktus nuo 1 iki 3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.2 pamoka: PAIEŠKOS KOMANDA + + + ** Paieška vykdoma, spustelint / , tada surenkant ieškomą frazę. ** + + 1. Būdami „Normaliojoje“ veiksenoje, spustelėkite / klavišą. Šis ženklas ir + žymeklis atsiras „Vim“ sąsajos apačioje, lygiai kaip ir : komandos + atveju. + + 2. Surinkite žodį „kllaidda“ (kabučių nereikia) ir spustelėkite . + Tai – žodis, kurio ieškosime. + + 3. Norėdami surasti kitą tokią pat frazę, spustelėkite n . + Jei kitos frazės norite ieškoti priešinga kryptimi, spustelėkite N. + + 4. Jei norite frazės iškart ieškoti ne pirmyn, bet atgal, vietoj / komandos + naudokite ? . + + 5. Grįžti į ankstesnę vietą galite klavišų kombinacijos CTRL+O pagalba + (laikydami nuspaustą klavišą CTRL, spustelėkite raidę O). Kartodami šią + kombinaciją, grįšite dar anksčiau. Grįžti į vėlesnę lankytą vietą galite + klavišų kombinacijos CTRL+I pagalba. + +---> „kllaidda“ yra žodis su klaida; „kllaidda“ yra klaida. + +PASTABA: paieškai pasiekus failo pabaigą, ji bus pratęsta nuo pradžios, nebent + būtų pakeista parinkties „wrapscan“ reikšmė. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.3 pamoka: PORINIŲ SKLIAUSTŲ PAIEŠKA + + + ** Spauskite % , jei norite surasti porinį ), ] ar } skliaustą. ** + + 1. Perkelkite žymeklį ties bet kuriuo (, [ ar { skliaustu, esančiu + eilutėje, pažymėtoje --->. + + 2. Dabar spustelėkite % simbolį. + + 3. Žymeklis peršoks ties poriniu dešiniuoju skliaustu. + + 4. Dar kartą spustelėkite % – sugrįšite atgal ties atitinkamu + kairiuoju skliaustu. + +---> Teksto ( eilutė su ( visų, [ tipų ] ir { skliaustų } poromis. )) + +PASTABA: Ši komanda pravers derinant programas su skliaustų maišalyne. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.4 pamoka: PAKAITOS KOMANDA + + + ** Pakeisti vieną frazę kita padės komanda :s/viena/kita/g . ** + + 1. Perkelkite žymeklį į eilutę žemiau, pažymėtą --->. + + 2. Surinkite :s/išgalvuojau/išgalvojau . Taip pakeisite pirmąjį + eilutėje esantį žodį „išgalvuojau“ į „išgalvojau“. + + 3. Dabar surinkite :s/išgalvuojau/išgalvojau/g . Pridėta gairė „g“ + nurodo pakaitos komandą vykdyti globaliai visoje eilutėje, todėl dabar + į „išgalvojau“ bus pakeisti visi eilutėje likę žodžiai „išgalvuojau“. + +---> išgalvuojau lietų, išgalvuojau giedrą, išgalvuojau jūrą ir kai ką daugiau + + 4. Jeigu norite atlikti tokią pakaitą rėžyje tarp dviejų eilučių, + surinkite :#,#s/viena/kita/g , kur #,# yra dviejų rėžį apibrėžiančių + eilučių numeriai (pvz., 12,14). + Surinkite :%s/viena/kita/g , jei norite pakaitą atlikti visame faile. + Surinkite :%s/viena/kita/gc , kad būtų surastos visos keistinos vietos + faile ir atskirai atsiklausta dėl + kiekvienos iš jų pakeitimo. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4 pamokos SANTRAUKA + + + 1. CTRl+G parodo padėtį faile ir failo būseną. + G perkelia žymeklį į failo pabaigą. + numeris G perkelia žymeklį į atitinkamą eilutę. + gg perkelia žymeklį į failo pradžią. + + 2. Įvedę / ir frazę, atliksite šios frazės paiešką PIRMYN. + Įvedę ? ir frazę, atliksite šios frazės paiešką ATGAL. + Pastarąją paiešką galima pakartoti, spustelint n (ta pačia kryptimi, + kaip ir vykusi paieška) arba N (priešinga kryptimi). + CTRL+O kombinacija padės grįžti į ankstesnę žymeklio vietą, o + CTRL+I – į paskesnę. + + 3. Paspaudus % , kai žymeklis yra ties (,),[,],{, arba }, jis perkeliamas + ties atitinkančiu poriniu skliaustu. + + 4. Pirmą „sena“ eilutėje pakeisti į „nauja“ galite, įvedę: + :s/sena/nauja + Visus „sena“ eilutėje pakeisti į „nauja“ galite, įvedę: + :s/sena/nauja/g + Visus frazės pasikartojimus tarp dviejų eilučių galite pakeisti, įvedę: + :#,#s/sena/nauja/g + Pakeisti visus „sena“ pasikartojimus faile į „nauja“ galite, įvedę: + :%s/sena/nauja/g + Jei norite, kad prieš kiekvieną pakeitimą būtų prašoma patvirtinimo: + :%s/sena/nauja/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.1 pamoka: KAIP ĮVYKDYTI IŠORINĘ KOMANDĄ + + + ** Surinkite :! ir norimą įvykdyti išorinę komandą – ir ji bus įvykdyta. ** + + 1. Įveskite jau pažįstamą komandą : , kad žymeklis atsidurtų redaktoriaus + apačioje. + + 2. Dabar įveskite ! (šauktuką). Tai leis įvykdyti norimą išorinę komandą. + + 3. Pavyzdžiui, po šauktuko surinkite ls ir spustelėkite . Tai + parodys jūsų esamo aplanko turinį – tarsi komandą būtumėte paleidę + tiesiogiai terminale. Jei ls neveikia – pabandykite komandą dir . + +PASTABA: Tokiu būdu galima įvykdyti bet kokią išorinę programą, taip pat ir su + argumentais. + +Pastaba: Visos : komandos pradedamos vykdyti paspaudus + Tolesnėse pamokose ne visada tai priminsime. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.2 pamoka: DAR APIE FAILŲ RAŠYMĄ + + + ** Jeigu norite įrašyti savo pakeitimus į failą, surinkite :w FAILO_VARDAS ** + + 1. Surinkite :!dir ar :!ls , kad pamatytumėte aplanko turinį. + Neužmirškite po to spustelėti . + + 2. Sugalvokite failo vardą, kurio aplanke dar nėra, pavyzdžiui, TESTAS. + + 3. Dabar surinkite :w TESTAS (čia TESTAS – jūsų pasirinktas failo vardas). + + 4. Taip įrašysite visą failą (šį pradžiamokslį) vardu TESTAS. + Patikrinkite tai, pakartodami :!dir ar :!ls komandą. + +PASTABA: jei po šio žingsnio baigtumėte „Vim“ darbą, o tada vėl paleistumėte + redaktorių komandos vim TESTAS pagalba, atvertas failas būtų + tiksli jūsų įrašyto pradžiamokslio kopija. + + 5. Dabar pašalinkite failą, surinkdami tokią komandą: + :!del TESTAS – jei naudojatės „Windows“, + arba :!rm TESTAS – jei naudojatės „Unix“ + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.3 pamoka: ĮRAŠYTINO TEKSTO PAŽYMĖJIMAS + + + ** Norėdami įrašyti dalį failo, įveskite v vektorius :w FAILO_VARDAS ** + + 1. Perkelkite žymeklį į šią eilutę. + + 2. Spustelėkite v , tada perkelkite žymeklį į penktąjį punktą žemiau. + Atkreipkite dėmesį, jog tekstas pažymimas. + + 3. Spustelėkite : – ekrano apačioje pamatysite raginimą :'<,'> . + + 4. Įveskite w TESTAS , kur TESTAS – tai dar neegzistuojančio failo vardas. + Prieš spustelėdami , įsitikinkite, jog redaktoriaus apačioje + matote eilutę :'<,'>w TESTAS . + + 5. Spustelėjus , „Vim“ įrašys pasirinktą tekstą į failą TESTAS. + Įsitikinti, jog failas sukurtas, galite, įvykdę komandą :!dir ar :!ls . + Kol kas nepašalinkite šio failo, nes jį naudosime kitoje pamokoje. + +PASTABA: Spustelėjus v , pradedamas Vizualusis pažymėjimas. Pažymėto teksto + apimtį galite keisti žymeklio valdymo klavišais. Pasirinkę norimą + teksto fragmentą, galite panaudoti operatorių, kad kažką su tuo tekstu + atliktumėte. Pavyzdžiui, operatorius d pažymėtą tekstą pašalins. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.4 pamoka: FAILO ĮTERPIMAS + + +** Jei norite į tekstą įterpti kito failo turinį, surinkite :r FAILO_VARDAS ** + + 1. Perkelkite žymeklį virš šios eilutės. + +PASTABA: Įvykdę 2 žingsnį, pamatysite 1.5.3 pamokos turinį. Tuomet grįžkite atgal + į šią pamoką. + + 2. Dabar įterpkite failo TESTAS turinį į tekstą, pasinaudodami komanda + :r TESTAS , kur TESTAS – tai norimo įterpti failo vardas (šį failą + turėjote sukurti 1.5.3 pamokoje). Failo turinys bus įterptas iškart + po eilute, kurioje yra žymeklis. + + 3. Kad įsitikintumėte, jog komanda buvo įvykdyta, šiek tiek sugrįžkite + aukštyn. Turėtumėte matyti dvi 1.5.3 pamokos kopijas. + +PASTABA: Panašiai galite įterpti ir išorinės komandos išvestą tekstą. + Pavyzdžiui, įvedę :r !ls , įterpsite ls komandos išvestį po eilute, + kurioje yra žymeklis. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5 pamokos SANTRAUKA + + + 1. :!komanda įvykdo išorinę komandą. + + Keletas naudingų pavyzdžių: + (Windows) (Unix) + :!dir :!ls – parodo aplanko turinį. + :!del FAILO_VARDAS :!rm FAILO_VARDAS – pašalina failą FAILO_VARDAS. + + 2. :w FAILO_VARDAS įrašo redaguojamą tekstą į failą vardu FAILO_VARDAS. + + 3. v vektorius :w FAILO_VARDAS įrašo vizualiai pažymėtą tekstą į failą + vardu FAILO_VARDAS. + + 4. :r FAILO_VARDAS įterpia failo vardu FAILO_VARDAS turinį į redaguojamą + tekstą po eilute, kurioje yra žymeklis. + + 5. :r !dir įterpia komandos dir išvestį į redaguojamą tekstą po eilute, + kurioje yra žymeklis. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.1 pamoka: NAUJOS EILUTĖS ĮTERPIMO IR REDAGAVIMO KOMANDA („OPEN“) + + + ** Spustelėjus o , po žymekliu bus įterpta tuščia eilutė ir persijungta + į Įterpimo joje veikseną. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Spustelėkite o – taip įterpsite tuščią eilutę PO žymekliu, be to, bus + įjungta Įterpimo veiksena. + + 3. Įveskite keletą žodžių ir spustelėkite , kad grįžtumėte į + „Normaliąją“ veikseną + +---> Spustelėjus o , rašymo žymeklis bus perkeltas į naujai įterptą eilutę. + + 4. Jei norite įterpti tuščią eilutę VIRŠ žymeklio, spustelėkite didžiąją O , + o ne mažąją. Išbandykite tai su žemiau esančia eilute. + +---> Įterpkite naują eilutę virš šios, įvesdami O , kai žymeklis yra šioje. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.2 pamoka: TEKSTO ĮTERPIMO UŽ ŽYMEKLIO KOMANDA („APPEND“) + + + ** Kai norite rašyti tekstą už žymeklio, spustelėkite a . ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. + + 2. Spauskite e , kol žymeklis atsidurs žodžio „eilutė“ gale. + + 3. Spustelėkite a (mažąją) tekstui įterpti už žymeklio. + + 4. Užbaikite žodį, kad būtų toks pat, kaip eilutėje žemiau. Tada spustelėkite + , kad išeitumėte iš Įterpimo veiksenos. + + 5. Spauskite e , kad pereitumėte prie kito neužbaigto žodžio ir pakartokite + 3–5 žingsnius. + +---> Šioje eilutė pasimokykite įterp teks už žymeklio. +---> Šioje eilutėje pasimokykite įterpti tekstą už žymeklio. + +PASTABA: komandos a, i ir A visos įjungia Įterpimo veikseną. Skiriasi tik + vieta, ties kuria tekstas bus pradėtas įterpti. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.3 pamoka: KITAS KEITIMO BŪDAS + + + ** Spustelėkite R , jeigu norite pakeisti daugiau nei vieną rašmenį. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->. Perkelkite + žymeklį į pirmojo fragmento „xxx“ joje pradžią. + + 3. Spustelėkite R ir perrašykite skaičių iš kitos eilutės, kad jis pakeistų + fragmentą. + + 4. Pakartokite žingsnius ir analogiškai perrašykite antrąjį „xxx“ fragmentą. + +---> Prie 123 pridėję xxx gausime xxx. +---> Prie 123 pridėję 456 gausime 579. + +PASTABA: Perrašymo veiksena yra analogiška Įterpimo veiksenai, tačiau + kiekvienas joje įvedamas rašmuo perrašo esamą rašmenį. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.4 pamoka: TEKSTO KOPIJAVIMAS IR ĮKLIJAVIMAS + + + ** Tekstas kopijuojamas y operatoriumi, o įterpiamas p operatoriumi. ** + + 1. Perkelkite žymeklį į pirmąją eilutę žemiau, pažymėtą --->, tada + perkelkite jį už „a)“. + + 2. Įjunkite Vizualiojo žymėjimo veikseną (komanda v ) ir perkelkite žymeklį + iki pozicijos prieš pat žodį „pirmas“. + + 3. Spustelėkite y pažymėtam tekstui nukopijuoti į „Vim“ iškarpinę. + + 4. Perkelkite žymeklį į kitos eilutės pabaigą: j$ + + 5. Spustelėkite p tekstui įterpti. Tada įveskite: antras . + + 6. Grįžkite į ankstesnę eilutę, Vizualiojo žymėjimo veiksenoje pažymėkite + tekstą „ elementas.“, nukopijuokite jį, spustelėdami y , tada vėl + pereikite į kitos eilutės pabaigą ( j$ ) ir įterpkite nukopijuotą tekstą, + spustelėdami p . + +---> a) tai yra pirmas elementas. + b) + + PASTABA: y galite naudoti ir kaip operatorių: yw nukopijuos vieną žodį, + yy – visą eilutę, o vėliau p šią eilutę įterps. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.5 pamoka: PARINKČIŲ NUSTATYMAS + + + ** Kad ieškant teksto nebūtų paisoma didžiųjų ir mažųjų raidžių skirtumo, + galima pakeisti atitinkamą parinktį. ** + + 1. Paieškokite žodžio „nepaisyti“: /nepaisyti + Pakartokite paiešką keletą kartų, spustelėdami n klavišą. + + 2. Nustatykite 'ic' („ignore case“ / nepaisyti raidžių registro) parinktį: + :set ic + + 3. Pratęskite žodžio „nepaisyti“ paiešką, spustelėdami n . Atkreipkite + dėmesį, jog dabar bus randami ir žodžiai „Nepaisyti“ bei „NEPAISYTI“. + + 4. Nustatykite 'hlsearch' ir 'incsearch' parinktis: :set hls is + + 5. Dar kartą įvykdykite paiešką ir pasižiūrėkite kas bus: /nepaisyti + + 6. Kad ieškant raidžių registro vėl būtų paisoma, įveskite: :set noic + +PASTABA: Jei norite išjungti radinių paryškinimą, įveskite: :nohlsearch +PASTABA: Jei norite raidžių registro nepaisyti tik vienos paieškos metu, frazę + papildykite \c sufiksu: /nepaisyti\c + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6 pamokos SANTRAUKA + + + 1. Spustelėjus o , įterpiama nauja eilutė ŽEMIAU žymeklio, žymeklis + perkeliamas į ją ir įjungiama Įterpimo veiksena. + Spustelėjus O , eilutė bus įterpta VIRŠ žymeklio. + + 2. Spustelėjus a , bus įjungta Įterpimo veiksena UŽ žymeklio. + Spustelėjus A , bus įjungta Įterpimo veiksena eilutės pabaigoje. + + 3. Spustelėjus e , žymeklis perkeliamas į žodžio pabaigą. + + 4. Spustelėjus y , pažymėtas tekstas nukopijuojamas į „Vim“ iškarpinę. + Spustelėjus p , „Vim“ iškarpinėje esantis tekstas įterpiamas. + + 5. Spustelėjus R , įjungiama Perrašymo („Replace“) veiksena, iš kurios + išeinama spustelint . + + 6. Įvedus komandą „:set xxx“, yra įjungiama "xxx" parinktis. Keletas jų: + 'ic' arba 'ignorecase' – nepaisyti raidžių registro ieškant + 'is' arba 'incsearch' – rodyti dalinius ieškomos frazės atitikmenis + 'hls' arba 'hlsearch' – paryškinti visus radinius + Galima naudoti tiek trumpąjį, tiek ilgąjį parinkties vardus. + + 7. Parinktį išjungti galite, prieš jos vardą pridėdami priešdėlį „no“, pvz.: + :set noic + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.1 pamoka: VIM ŽINYNO KOMANDOS + + + ** Naudokitės „Vim“ žinyno sistema. ** + + „Vim“ turi išsamų žinyną. Pirmai pažinčiai su juo, išbandykite vieną iš šių + būdų: + - spustelėkite klavišą (jei turite klaviatūroje) + - spustelėkite klavišą (jei turite klaviatūroje) + - surinkite :help + + Perskaitykite tekstą žinyno lange, kad sužinotumėte, kaip jis veikia. + Nuspaudę CTRL+W CTRL+W , galite peršokti iš vieno lango į kitą. + Įveskite :q žinyno langui užverti. + + Informacijos galima rasti įvairiausiomis temomis, perduodant „:help“ + komandai raktinį žodį kaip argumentą. Pabandykite: + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.2 pamoka: PALEISTIES SCENARIJAUS KŪRIMAS + + + ** Išnaudokite „Vim“ privalumus ** + + „Vim“ turi platesnį funkcionalumą nei „Vi“, tačiau dauguma šių galimybių + numatytuoju atveju išjungtos. Jei norite pradėti naudotis papildomomis + galimybėmis, pirmiausia susikurkite „vimrc“ failą. + + 1. Pradėkite redaguoti „vimrc“ failą. Komanda priklauso nuo jūsų naudojamos + platformos: + :e ~/.vimrc – „Unix“ sistemose + :e ~/_vimrc – „Windows“ sistemose + + 2. Įterpkite pavyzdinio „vimrc“ failo turinį: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Įrašykite redaguojamą failą: + :w + + Kitąkart paleidę „Vim“, jau galėsite mėgautis sintaksės paryškinimu. + Visas pageidaujamas parinktis galite pridėti į šį „vimrc“ failą. + Išsamesnė informacija apie paleisties scenarijų – :help vimrc-intro . + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.3 pamoka: AUTOMATINIS UŽBAIGIMAS + + + ** Komandų užbaigimas naudojant CTRL+D ir ** + + 1. Įsitikinkite, jog „Vim“ nėra suderinamumo veiksenoje: :set nocp + + 2. Peržiūrėkite failų sąrašą aplanke: :!ls arba :!dir + + 3. Pradėkite vesti komandos pavadinimą: :e + + 4. Nuspauskite CTRL+D – pamatysite komandų, prasidedančių raide „e“ sąrašą. + + 5. Įveskite d , kad „Vim“ užbaigtų komandos pavadinimą iki „:edit“. + + 6. Įveskite tarpą ir pradėkite vesti failo vardą: :edit FAIL + + 7. Spustelėkite . „Vim“ užbaigs failo vardą (jei failas taip + prasidedančiu vardu egzistuoja ir yra vienintelis). + +PASTABA: Automatinis užbaigimas veikia su daugeliu komandų. Jį išbandyti galite + klavišų kombinacijos CTRL+D ir klavišo pagalba. Jis ypač + naudingas su komanda :help . + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7 pamokos SANTRAUKA + + + 1. Įveskite :help , arba spustelėkite arba žinynui atverti. + + 2. Įveskite :help KOMANDA žinynui apie komandą „KOMANDA“ atverti. + + 3. Nuspauskite CTRL+W CTRL+W , jeigu norite peršokti į kitą langą. + + 4. Įveskite :q žinyno langui užverti. + + 5. Susikurkite „vimrc“ paleisties scenarijaus failą norimoms išlaikyti + parinktims įrašyti. + + 6. Rinkdami : prasidedančią komandą, nuspauskite CTRL+D galimiems užbaigimo + variantams pamatyti, arba užbaigimui atlikti. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Sveikiname, jūs pasiekėte „Vim“ pradžiamokslio pabaigą! Jo tikslas – pateikti + glaustą „Vim“ redaktoriaus apžvalgą, kurios pakaktų įgyti „Vim“ redaktoriaus + pagrindams. Tačiau tai toli gražu ne visos galimybės, kuriomis „Vim“ + pasižymi. Toliau patariame perskaityti naudotojo vadovą: + :help user-manual + + Dar nuodugnesniam mokymuisi rekomenduojame knygą: + Steve Oualline. Vim - Vi Improved + Leidėjas: New Riders + Tai – pirmoji knyga, skirta vien tik „Vim“ redaktoriui. Ypatingai naudinga + pradedantiesiems. Knygoje nemažai pavyzdžių ir iliustracijų. + Išsamiau – https://iccf-holland.org/click5.html + + Taip pat galime rekomenduoti šią senesnę knygą, nors ji ir skirta labiau + „Vi“, o ne „Vim“ redaktoriui: + Linda Lamb. "Learning the Vi Editor" + Leidėjas: O'Reilly & Associates Inc. + Tai – gera knyga, kurioje išnagrinėtos beveik visos „Vi“ redaktoriaus + galimybės. Šeštame leidime pateikiama informacija ir apie „Vim“. + + Šį pradžiamokslį parašė Michael C. Pierce ir Robert K. Ware, Colorado School + of Mines, pasinaudodami Charles Smith, Colorado State University, idėjomis. + El. paštas: bware@mines.colorado.edu. + + „Vim“ redaktoriui pritaikė Bram Moolenaar. + + Į lietuvių kalbą išvertė Laurynas Stančikas (1.4 versiją) + ir Rimas Kudelis (1.7 versiją). + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.lv b/git/usr/share/vim/vim92/tutor/tutor1.lv new file mode 100644 index 0000000000000000000000000000000000000000..0cbeaae8c4830a2df1a4e2a0a92f23fd99811a78 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.lv @@ -0,0 +1,1009 @@ +=============================================================================== += Ī s a p a m ā c ī b a V I M - Versija 1.7 = +=============================================================================== + + Vim ir jaudīgs teksta redaktors ar pārāk daudzām komandām, lai to + aprakstītu tik īsā aprakstā kā šis. Šī pamācība ir paredzēta, lai + spētu iemācīties tik daudz, cik nepieciešams, lietojot Vim, kā plaša + pielietojuma teksta redaktoru. + + Atkarībā no tā, cik daudz laika veltīsiet eksperimentiem, + šīs pamācības aptuvenais izpildīšanas laiks ir 25 — 30 minūtes. + + UZMANĪBU: + Darbojoties ar komandām, jūs izmainīsiet šo tekstu, tāpēc izveidojiet šī + faila kopiju (ja jūs palaidāt "vimtutor" komandu, šī jau ir kopija). + + Svarīgi atcerēties, ka šo pamācību ir paredzēts izpildīt praktiski! + Ja jūs tikai lasīsiet šo tekstu, jūs komandas aizmirsīsiet! + + Tagad pārliecinieties, ka tastatūrai nav nospiesti SHIFT vai + CAPS-LOCK taustiņi un spiediet j taustiņu, līdz pilnībā redzat + + 1.1.1 nodarbības saturu +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.1 nodarbība: KURSORA PĀRVIETOŠANA + + ** Lai pārvietotu kursoru, spiediet taustiņus h, j, k, l ** + + Lai atcerētos, + izmantojiet vārdus: k "Kaugšup" + ^ + pa "Heisi" h < > l pa "Labi" + v + j "Jejup" + + 1. Pārvietojiet kursoru pa ekrānu tik ilgi, kamēr pierodat. + + 2. Turiet j taustiņu tik ilgi, kamēr ieslēdzas tā auto-atkārtošana. + Un dodieties uz nākamo nodarbību. + +PIEZĪME: Ja neesat pārliecināts par nospiesto taustiņu, spiediet , + lai atgrieztos normālajā režīmā, un spiediet vajadzīgo taustiņu atkal. + +PIEZĪME: Kursora vadībai var izmantot arī bultiņu taustiņus, bet ticiet — + iemācīties vadīt ar j, k, l, h taustiņiem ir daudz parocīgāk! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.2 nodarbība: IZIEŠANA NO VIM + + !! PIEZĪME: Pirms izpildīt šīs nodarbības soļus, izlasiet visu instrukciju! + + 1. Lai būtu drošs, ka esat normālajā režīmā, nospiediet taustiņu. + + 2. Ievadiet komandu: :q! . + Ievadot šo komandu, jūs iziesiet no redaktora nesaglabājot izmaiņas. + + 3. Ja palaidāt vim komandrindā, tad pēc tam atkal to izsauciet, ievadot + vimtutor + + 4. Kad esat iegaumējis 1. — 3. soli, izpildiet tos, lai atgrieztos + redaktorā. + +PIEZĪME: :q! komanda atceļ visas failā radītās izmaiņas. Pēc dažām + nodarbībām jūs uzzināsiet, kā izmaiņas varat saglabāt. + + 5. Pārvietojiet kursoru, uz 1.1.3 nodarbību. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.3 nodarbība: TEKSTA REDIĢĒŠANA – DZĒŠANA + + ** Lai izdzēstu zem kursora atrodošos burtu, spiediet x ** + + 1. Pārvietojiet kursoru uz līniju ar atzīmi --->. + + 2. Lai izlabotu kļūdas, pārvietojiet kursoru uz vajadzīgo burtu. + + 3. Spiediet x taustiņu, lai izdzēstu nevajadzīgo burtu. + + 4. Atkārtojiet 2. līdz 4. soļus, līdz teksts ir pareizs. + +---> Hiiipijiiii čččauuukstiiina celllofānu. + + 5. Kad augstāk parādītā rinda ir izlabota, dodieties uz 1.1.4. nodarbību. + +PIEZĪME: Izpildot šo pamācību, centieties mācīties nevis domājot, + bet gan praktiski trenējot kustību atmiņu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.4 nodarbība: TEKSTA REDIĢĒŠANA — IEVIETOŠANA + + ** Lai ievietotu tekstu, spiediet i ** + + 1. Pārvietojiet kursoru uz pirmo līniju ar atzīmi --->. + + 2. Lai ierakstītu tekstu augšējā rindā tieši tādu pašu kā apakšējā, + novietojiet kursoru tieši PĒC ievietojamā teksta. + + 3. Spiediet i un ievadiet visu nepieciešamo tekstu. + + 4. Pēc katra papildinājuma, spiediet lai atgrieztos normālajā režīmā. + Atkārtojiet 2. līdz 4. soļus, līdz teksts ir pareizs. + +---> Šaā lnij no tksta rūkt dai buti. + Šajā līnijā no teksta trūkst daži burti. + + 5. Kad esat apguvis šīs darbības, dodieties uz 1.1.5. nodarbību. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.5 nodarbība: TEKSTA REDIĢĒŠANA — PIEVIENOŠANA + + ** Lai pievienotu tekstu, spiediet A ** + + 1. Pārvietojiet kursoru uz pirmo līniju ar atzīmi --->. + Nav svarīgi, uz kura šīs rindas burta atrodas kursors. + + 2. Spiediet A un pievienojiet iztrūkstošo tekstu. + + 3. Kad nepieciešamais teksts ir pievienots, spiediet , + lai atgrieztos normālajā režīmā. + + 4. Pārvietojiet kursoru uz otro līniju ar atzīmi ---> + un atkārtojiet 2. un 3. soļus. + +---> Šajā līnijā tekstam + Šajā līnijā tekstam pietrūkst beigas. +---> Šajā līnijā t + Šajā līnijā tekstam pietrūkst beigas. + + 5. Kad esat apguvis šīs darbības, dodieties uz 1.1.6. nodarbību. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1.6 nodarbība: FAILA SAGLABĀŠANA + + ** Lai saglabātu failu un izietu no redaktora, spiediet :wq ** + + !! PIEZĪME: Pirms izpildīt šo nodarbību, izlasiet visus tās soļus! + + 1. Pārliecinieties, ka esat pareizi izpildījis visas iepriekšējās nodarbības. + + 2. Ja neesat pārliecināts, izejiet no redaktora, kā 1.1.2. nodarbībā ar komandu: + :q! + + 3. Tad atkal palaidiet pamācību, un, ja nepieciešams, veiciet failā izmaiņas. + + 4. Saglabājiet faila izmaiņas, redaktorā ievadot :w tutor + Izejiet no redaktora, ievadot komandu :wq + + 5. Palaidiet atkal šo pamācību, terminālī ievadot komandu: vim tutor + Šajā komandā vārds "vim" izsauc teksta redaktoru, bet + vārds "tutor" ir faila nosaukums, kurā ir saglabāta izmainītā pamācība. + + 5. Kad esat sapratis veicamās darbības, izpildiet tās. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.1. nodarbības APKOPOJUMS + + + 1. Kursoru pārvieto ar bultiņu vai arī h,j,k,l taustiņiem: + h (pa kreisi) j (lejup) k (augšup) l (pa labi) + + 2. Lai ar Vim rediģētu noteiktu failu, ievadiet komandu: vim fails + + 3. Lai izietu no Vim ievadiet: + :q! lai pazaudētu izmaiņas. + :wq lai saglabātu izmaiņas. + + 4. Lai izdzēstu burtu zem kursora, spiediet x + + 5. Lai ievietotu vai pievienotu tekstu, spiediet: + i ievadāmais teksts lai ievietotu pirms kursora + A pievienojamais teksts lai pievienotu rindas beigās + +PIEZĪME: spiešana atgriezīs jūs normālajā režīmā, vai arī atcels + nepareizu vai daļēji ievadītu komandu. + +Tagad dodieties uz 1.2. nodarbību. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.1 nodarbība: DZĒŠANAS KOMANDAS + + + ** Lai izdzēstu vārdu, spiediet dw ** + + 1. Nospiediet lai pārliecinātos, ka esat normālajā režīmā. + + 2. Pārvietojiet kursoru uz rindu ar atzīmi --->. + + 3. Pārvietojiet kursoru uz izdzēšamā vārda sākumu. + + 4. Ievadiet dw lai izdzēstu nepieciešamo vārdu. + +PIEZĪME: Nospiežot d, ekrāna labajā apakšējā stūrī parādīsies d burts. + Tas ir tāpēc, ka Vim gaida nākamo komandu (burtu w). + Ja jūs redzat citu burtu, vai neredzat neko, esat kaut ko izdarījis + nepareizi. Tad spiediet un sāciet no sākuma. + +---> Šajā kuku teikumā ir tata daži lala vārdi, kuri mumu nav vajadzīgi. + + 5. Izpildiet 3. — 4. soļus, līdz teksts ir pareizs un dodieties uz 1.2.2. nodarbību. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.2 nodarbība: CITAS DZĒŠANAS KOMANDAS + + + ** Lai izdzēstu līdz rindas beigām, spiediet d$ ** + + 1. Nospiediet lai pārliecinātos, ka esat normālajā režīmā. + + 2. Pārvietojiet kursoru uz rindu ar atzīmi --->. + + 3. Pārvietojiet kursoru līdz pirmā teikuma beigām (PĒC pirmā punkta). + + 4. Ievadiet d$ lai izdzēstu tekstu no kursora līdz rindas beigām. + +---> Kāds ir ievadījis teikuma beigas divreiz. ievadījis teikuma beigas divreiz. + + + 5. Dodieties uz 1.2.3 nodarbību, lai labāk izprastu, kā tas notiek. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.3 nodarbība: OPERATORI UN KOMANDAS + + + Daudzas tekstu mainošās komandas sastāv no operatora un kustības. + Dzēšanas komanda, kuru izsauc ar d operatoru vispārīgā gadījumā ir sekojoša: + + d kustība + + Kur: + d - ir dzēšanas operators. + kustība - ir operators, kas nosaka dzēšanas veidu. + + Biežāk izplatītās kustības ir: + w - līdz nākamā vārda sākumam, NEIESKAITOT tā pirmo burtu. + e - līdz tekošā vārda beigām, IESKAITOT pēdējo burtu. + $ - līdz rindas beigām, IESKAITOT tās pēdējo burtu. + + Piemēram, ievadot de tiks izdzēsts teksts no kursora līdz rindas beigām. + +PIEZĪME: Ievadot kustības komandu normālajā režīmā, tā pārvietos kursoru uz + norādīto vietu. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.4 nodarbība: KUSTĪBAS SKAITA IZMANTOŠANA + + + ** Pirms kustības ievadot skaitli, tā tiks atkārtota norādās reizes. ** + + 1. Pārvietojiet kursoru uz līniju ar atzīmi --->. + + 2. Ievadiet 2w lai pārvietotu kursoru par 2 vārdiem uz priekšu. + + 3. Ievadiet 3e lai pārvietotu kursoru par 3 vārdiem atpakaļ. + + 4. Ievadiet 0 (nulli), lai pārvietotu kursoru uz rindas sākumu. + + 5. Atkārtojiet 2. — 3. soļus ar dažādiem skaitļiem. + +---> Šī ir rinda ar vārdiem, kurā jūs varat pārvietoties. + + 6. Dodieties uz nodarbību 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.5 nodarbība: SKAITĻA IZMANTOŠANA DZĒŠANAI + + + ** Ievadot skaitli pirms operatora, tas tiks atkārtots norādītās reizes. ** + + Pirms augšminētajām dzēšanas un pārvietošanās darbībām + var ievadīt skaitli, lai norādītu cik reizes to izpildīt, formā: + d skaitlis kustība + + 1. Pārvietojiet kursoru uz pirmo vārdu ar LIELAJIEM BURTIEM rindā ar atzīmi --->. + + 2. Ievadiet komandu d2w lai izdzēstu divus vārdus ar LIELAJIEM BURTIEM + + 3. Atkārtojiet pirmo soli, dzēšanas komandai norādot dažādus skaitļus, + lai izdzēstu visus vārdus ar LIELAJIEM BURTIEM + +---> šajā ABC DE rindā FGHI JK LMN OP ir jāizdzēš liekie Q RS TUV vārdi + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.6 nodarbība: DARBĪBAS AR RINDĀM + + + ** Ievadiet dd lai izdzēstu visu teksta rindu. ** + + Tā kā veselas rindas izdzēšana ir izplatīta darbība, Vi dizaineri nolēma + tās dzēšanu realizēt ar dubultu d ievadīšanu. + + 1. Pārvietojiet kursoru uz otro rindu ar atzīmi ---> + 2. Ievadiet dd lai izdzēstu rindu. + 3. Pārvietojiet kursoru uz ceturto rindu. + 4. Ievadiet 2dd lai izdzēstu divas rindas. + +---> 1) Astoņi kustoņi, +---> 2) astoņi kustoņi, +---> 3) kas tos astoņus kustoņus pirks? +---> 4) Zirgs. +---> 5) Astoņi kustoņi, +---> 6) astoņi kustoņi, +---> 7) kas tos astoņus kustoņus pirks? +---> 8) Cirks. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2.7 nodarbība: ATCELŠANAS KOMANDA + + + ** Lai atceltu darbību, spiediet u ** + ** Lai atceltu visas darbības tekošajā rindā, spiediet U ** + + 1. Pārvietojiet kursoru uz rindu ar atzīmi ---> un novietojiet to uz + pirmās kļūdas. + 2. Pārvietojiet kursoru un ievadiet x lai izdzēstu visus liekos burtus. + 3. Ievadiet u lai atceltu iepriekšējo komandu. + 4. Šī darbība atcels iepriekšējo darbību, kuru veicāt, ievadot x + 5. Ievadiet U lai atgrieztos sākuma stāvoklī. + 6. Ievadiet u vairākas reizes, lai atceltu U un iepriekšējās komandas. + 7. Ievadiet CTRL-R t.i.: + nospiediet CTRL un, to neatlaižot, Shift un to neatlaižot un r + vairākas reizes, lai atceltu atcelšanas darbības. + +---> Iizlabojiet kļūudas šaajā riindā, aatceliet tās un aatceliet aatcelšanu. + + 8. Šīs ir svarīgas un noderīgas iespējas. + Tagad pārejiet uz 1.2. nodarbības apkopojumu. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.2. nodarbības APKOPOJUMS + + + 1. Lai izdzēstu vārdu, uz kura atrodas kursors, ievada: dw + 2. Lai izdzēstu rindu no kursora līdz tās beigām, ievada: d$ + 3. Lai izdzēstu visu rindu, ievada: dd + 4. Lai atkārtotu kustības darbību, pirms tās ievada skaitli, piemēram: + 2w + + 5. Lai atkārtotu izmaiņu darbību, komandu formāts ir sekojošs: + operators [skaitlis] kustība + kur: + operators - ir veicamā darbība, piemēram, d lai dzēstu + [skaitlis] - ir neobligāts darbības atkārtojumu skaits + kustība - pārvieto kursoru tik tālu, cik ir veicama darbība, piem: + w lai pārvietotos par vienu vārdu, + $ lai pārvietotos līdz rindas beigām u.tml. + + 6. Lai pārvietotos uz rindas sākumu, ievada: 0 (nulli) + + 7. Lai atceltu iepriekšējo darbību, ievada: u (mazo u) + Lai atceltu visas rindā veiktās izmaiņas, ievada: U (Shift+U) + Lai atceltu atcelšanas darbības, ievada: CTRL-R (Ctrl+Shift+r) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.1 nodarbība: IEVIETOŠANAS DARBĪBA + + + ** Lai pēc kursora ievietotu iepriekš izdzēstu tekstu, spiediet p ** + + 1. Pārvietojiet kursoru uz pirmo rindu ar atzīmi ---> + + 2. Ievadiet dd lai izdzēstu visu rindu un saglabātu to reģistrā. + + 3. Pārvietojiet kursoru uz c) rindu (virs vietas, kur būtu jāievieto + dzēstā rinda). + + 4. Spiediet p lai ievietotu reģistrā saglabāto rindu. + + 5. Atkārtojiet soļus 2 līdz 4 līdz rindas ir pareizajā secībā. + +---> d) Zirgs. +---> c) kas tos astoņus kustoņus pirks? +---> b) astoņi kustoņi, +---> a) Astoņi kustoņi, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.2 nodarbība: AIZVIETOŠANAS KOMANDA + + + ** Lai aizvietotu burtu ar citu, ievadiet r un nepieciešamo burtu. ** + + 1. Pārvietojiet kursoru uz pirmo rindu ar atzīmi ---> + + 2. Pārvietojiet kursoru, lai iezīmētu pirmo nepareizo burtu. + + 3. Ievadiet r un tad burtu, uz kuru iezīmēto ir nepieciešams nomainīt. + + 4. Atkārtojiet soļus 2 un 3 līdz ir pirmā rinda atbilst otrajai rindai. + +---> Iavadut šo rixdu, kuds ar nuspeedis napariizus teusteņus! +---> Ievadot šo rindu, kāds ir nospiedis nepareizus taustiņus! + + 5. Tagad dodieties uz 1.3.3. nodarbību. + +PIEZĪME: Atcerieties, ka jums ir jāmācās darbojoties, + nevis vienkārši mēģinot atcerēties! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.3 nodarbība: IZMAIŅU DARBĪBA + + + ** Lai izmainītu tekstu līdz vārda beigām, spiediet ce ** + + 1. Pārvietojiet kursoru uz pirmo rindu ar atzīmi ---> + + 2. Novietojiet kursoru virs pirmā Š vārdā Šma. + + 3. Ievadiet ce un izlabojiet vārdu uz pareizu (šajā gad. "Šīs"). + + 4. Spiediet un pārvietojiet kursoru uz nākamo maināmo vārdu. + + 5. Atkārtojiet soļus 3 un 4 līdz pirmā un otrā rinda ir vienādas. + +---> Šma rindas vamula nepieciešams šimahaļ, lietojot šašābiļabita darbību. +---> Šīs rindas vārdus nepieciešams izlabot, lietojot izmainīšanas darbību. + +Ievērojiet, ka pēc ce un vārda ievades jūs paliekat ievietošanas režīmā. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3.4 nodarbība: CITAS MAINĪŠANAS DARBĪBAS AR c + + + ** Izmaiņu kustības operatoru lieto tieši tāpat kā dzēšanai. ** + + 1. Izmaiņu kustības operators darbojas tāpat kā dzēšanai. Formāts ir: + + c [skaitlis] kustība + + 2. Var lietot tos pašus kustības operatorus w (vārds) un $ (rindas beigas). + + 3. Pārvietojiet kursoru uz pirmo rindu ar atzīmi --->. + + 4. Pārvietojiet kursoru uz pirmo kļūdu. + + 5. Ievadiet c$ rakstiet nomaināmo tekstu līdz rindas beigām un spiediet . + +---> Šī teksta beigas nepieciešams izlabot, lietojot c$ komandu. +---> Šī teksta beigas nepieciešams izlabot, lietojot c$ šari-vari-traļi-muļi. + +PIEZĪME: Lai labotu nepareizi ievadītu tekstu, spiediet taustiņu. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.3. NODARBĪBAS APKOPOJUMS + + + 1. Lai ievietotu izdzēsto tekstu, spiediet p taustiņu. Ar to ievietosiet + dzēsto tekstu PĒC kursora. (Ja bija izdzēsta vesela rinda, tā tiks + ievietota rindā VIRS kursora.) + + 2. Lai izmainītu burtu zem kursora, spiediet r un pēc tam + jums nepieciešamo rakstzīmi. + + 3. Izmaiņu operators ļauj jums nomainīt tekstu no kursora līdz + kustības operatora norādītajai vietai. Piemēram, + ievadot ce jūs izmaināt tekstu no kursora līdz VĀRDA beigām, bet + ievadot c$ jūs nomaināt tekstu no kursora līdz RINDAS beigām. + + 4. Izmaiņu komandas formāts ir: + + c [skaitlis] kustība + +Tagad dodieties uz nākamo nodarbību. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.1 nodarbība: KURSORA VIETA FAILĀ UN FAILA STATUSS + + ** Lai noteiktu kursora atrašanās vietu failā un faila statusu, spiediet CTRL-g + Lai pārvietotu kursoru uz noteiktu faila rindu, spiediet G ** + + PIEZĪME: Pirms pildīt šo uzdevumu, izlasiet visas tā darbības līdz beigām! + + 1. Spiediet Ctrl taustiņu, un neatlaižot to, spiediet g saīsināti CTRL-g. + Redaktora ekrāna apakšā parādīsies statusa rinda, ar faila statusu + un rindu kurā atrodas kursors, kā arī citu informāciju. + Atcerieties šo vietu, lai izpildītu 3. darbību. + +PIEZĪME: Jūs varat redzēt kursora atrašanās vietu failā vienmēr ekrāna + labajā apakšējā stūrī, ja redaktoram ir ieslēgta ruler opcija. + (Skatiet palīdzību par šo komandu, ievadot :help 'ruler') + + 2. Lai pārvietotu kursoru uz faila beigām, ievadiet G + Lai pārvietotu kursoru uz faila sākumu, ievadiet gg + + 3. Ievadiet iepriekš iegaumētās rindas numuru un tad ievadiet G + Ar šo jūs pārvietosiet kursoru atpakaļ rindā, kurā jūs sākāt + šo nodarbību. + + 4. Atkārtojiet darbības 1. — 3. tik ilgi, kamēr droši atceraties šīs komandas. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.2 nodarbība: MEKLĒŠANAS KOMANDA + + + ** Lai meklētu tekstā, spiediet / un ievadiet meklējamo frāzi. ** + + 1. Normālajā režīmā spiediet / taustiņu. Ievērojiet, ka kursors pārvietojas + uz redaktora apakšējo rindu, līdzīgi, kā nospiežot taustiņu : + lai ievadītu dažādas komandas. + + 2. Tad ievadiet vārdu kļūūūda un spiediet . + Ar šo jūs izgaismosiet atrasto meklējamo redaktorā. + + 3. Lai atrastu nākošo vārdu, spiediet n taustiņu. + Lai pārvietotu kursoru uz nākamo atrasto vietu tekstā uz augšu, + ievadiet N + + 4. Lai meklētu frāzi augšupejošā virzienā / vietā lietojiet ? + + 5. Lai atgrieztos uz vietu, kurā sākāt meklēšanu, spiediet CTRL-O + (spiediet Ctrl, tad, to neatlaižot spiediet arī o). To var turpināt, + lai dotos tālāk atpakaļ, vai arī spiest CTRL-i, lai dotos uz priekšu. + +---> "kļūūūda" nav pareizs vārds; kļūda ir vienkārši kļūda. + +PIEZĪME: Ja ir atrasta pēdējā meklējamā frāze faila beigās vai sākumā, + pēc nākamā meklējuma tiks atrasta pirmā/pēdējā faila sākumā/beigās, + ja vien nav atslēgta wrapscan opcija. + +PIEZĪME: Ja vairs nevēlaties izgaismot meklējamo tekstu, spiediet / + un ievadiet nesakarīgu/neatrodamu frāzi. (VIM speciālisti parasti + piekārto savu taustiņu kombināciju šai darbībai.) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.3 nodarbība: SAISTĪTO IEKAVU MEKLĒŠANA + + + ** Lai atrastu saistīto ),], vai } iekavu, ievadiet % ** + + 1. Novietojiet kursoru uz iekavām (, [, { rindā ar atzīmi --->. + + 2. Ievadiet % simbolu. + + 3. Kursors pārvietosies uz izvēlētajai iekavai atbilstošo pretējo iekavu. + + 4. Ievadiet % lai pārvietotos atpakaļ uz atbilstošo pretējo iekavu. + + 5. Pārvietojiet kursoru uz cita veida iekavu (,),[,],{ or } un pārbaudiet, + kas notiek atkārtoti ievadot % + +---> Šī ir (testa rinda ar dažādām (-veida, [-veida] un {-veida} iekavām.)) + + +PIEZĪME: Šī iespēja ir ļoti noderīga, lai pārbaudītu nelīdzsvarotas iekavas + programmas kodā + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.4 nodarbība: AIZVIETOŠANAS KOMANDA + + + ** Ievadiet :s/vecais/jaunais/g lai aizvietotu 'vecais' ar 'jaunais'. ** + + 1. Novietojiet kursoru rindā ar atzīmi --->. + + 2. Ievadiet :s/ss/s + Ievērojiet, ka šī komanda nomaina tikai pirmo atrasto frāzi. + + 3. Tagad ievadiet :s/ss/s/g + Ievērojiet, ka slēdzis g liek aizvietot frāzi visās atrastajās vietās. + +---> visslabākaiss laikss vērot ziedus ir pavassariss. + + 4. Aizvietošanas komandai var norādīt darbības diapazonu: + + ievadiet :#,#s/vecais/jaunais/g kur #,# ir diapazona sākuma un beigu rinda + ievadiet :%s/vecais/jaunais/g lai aizvietotu frāzi visā failā + ievadiet :%s/vecais/jaunais/gc lai aizvietotu visā failā ar uzaicinājumu + apstiprināt katru aizvietošanu + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4.5 nodarbība: DARBĪBAS ATKĀRTOŠANA + + ** Lai atkārtotu iepriekšējo darbību, spiediet . ** + + Atšķirībā no citiem teksta redaktoriem, Vim par vienu darbību uzskata + vairāku ievadīto komandu virkni ārpus normālā režīma (t.i. ievietošanas, + aizstāšanas u.tml.). Tas ļauj viegli atkārtot sarežģītas darbības, spiežot + . taustiņu. + + 1. Pārliecinieties, ka esat normālajā režīmā, spiežot . + + 2. Sameklējiet pirmo skaitli rindā ar --->, ievadot: /11 + + 3. Ievadiet komandu 2sll un atgriezieties normālajā režīmā. + + 4. Lai sameklētu nākamo skaitli un atkārtotu iepriekšējo aizstāšanas darbību, + spiediet: n. + +---> ba11e ce11e ha11e le11e ka11a mu11a nu11e ra11ijs šte11e ti11s ze11is +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.4. nodarbības APKOPOJUMS + + 1. CTRL-G statusa rindā parāda faila nosaukumu, statusu un kursora atrašanās + vietu + G pārvieto kursoru uz faila beigām. + skaitlis G pārvieto kursoru uz norādīto rindu. + gg pārvieto kursoru uz faila sākumu. + + 2. Ievadot / un frāzi, to meklē failā uz priekšu + Ievadot ? un frāzi, to meklē failā atpakaļ + Pēc pirmās atrastās frāzes, spiežot n sameklē nākamo frāzi tajā pašā virzienā + vai arī, spiežot N, sameklē nākamo frāzi pretējā virzienā. + CTRL-o pārvieto kursoru uz iepriekšējo izmaiņu vietu, CTRL-i uz nākamo vietu. + . atkārto iepriekšējo darbību, ko var apvienot ar meklēšanu: n. vai N. + + 3. Ja kursors atrodas uz (,),[,],{, vai }, ievadot % kursors pārvietojas uz + pretējo iekavu. + + 4. Lai aizvietotu frāzi tekošajā rindā vienreiz, ievadiet: :s/vecais/jaunais + Lai aizvietotu visas frāzes tekošajā rindā, ievadiet: :s/vecais/jaunais/g + Lai aizvietotu visas frāzes starp norādītajām rindām: :#,#s/vecais/jaunais/g + Lai aizvietotu visas frāzes failā, ievadiet: :%s/vecais/jaunais/g + Lai aizvietotu visas frāzes failā ar apstiprinājumu: :%s/vecais/jaunais/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.1 nodarbība: KĀ IZPILDĪT ĀRĒJU KOMANDU + + + ** Ievadiet :! un pēc tam sekojošo ārējo komandu. ** + + 1. Nospiediet ierasto : lai parādītu uzaicinājumu statusa rindā + + 2. Šajā rindā ievadiet ! (izsaukuma zīmi). Tā norāda VIM, ka būs jāizpilda + ārēja (komandrindas čaulas) komanda + + 3. Pēc tam ievadiet, piemēram ls un spiediet + Šī komanda ekrāna apakšējā daļā parādīs failu sarakstu. + Ja lietojat Windows, ls komandas vietā ievadiet dir + +PIEZĪME: Izsaucamās komandas izpilda nospiežot taustiņu, kopš šī brīža + mēs to vairs īpaši neuzsvērsim. Lai aizvērtu komandas izvadīto saturu, + arī jāspiež taustiņš. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.2 nodarbība: VAIRĀK PAR FAILU SAGLABĀŠANU + + ** Lai saglabātu failu ar noteiktu nosaukumu, ievadiet :w NOSAUKUMS ** + + 1. Ievadiet :!ls (vai :!dir), lai apskatītu failu sarakstu. + Atcerieties, ka pēc komandu nosaukuma ievades jānospiež ! + + 2. Izdomājiet jaunu faila nosaukumu, piemēram, test + + 3. Tagad ievadiet: :w test1 (kur test ir jūsu izvēlētais faila nosaukums) + + 4. Šī komanda saglabās vim pamācību failā test + Lai pārbaudītu, ievadiet :!ls vai :!dir un sameklējiet failu sarakstā + +PIEZĪME: Ja jūs iziesiet no vim un palaidīsiet to ar komandu vim test + vim atvērs jūsu saglabāto test failu. + + 5. Tagad izdzēsiet šo failu, ievadot komandu: :!rm test + Vai, ja lietojat Windows, komandu: :!del test + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.3 nodarbība: TEKSTA DAĻĒJA SAGLABĀŠANA + + ** Lai saglabātu tikai daļu no faila, ievadiet: v kustība :w fails ** + + 1. Pārvietojiet kursoru uz šo rindu + + 2. Spiediet v un pārvietojiet kursoru līdz piektajam punktam. + + 3. Spiediet : simbolu. Statusa rindā parādīsies :'<,'> + + 4. Ievadiet w test kur test ir izvēlētais faila nosaukums. + Pirms spiest , pārliecinieties, ka redzat :'<,'>w test + + 5. Vim saglabās iezīmēto tekstu failā test. + Neizdzēsiet šo failu, mēs to izmantosim nākošajā nodarbībā! + +PIEZĪME: Spiežot v VIM pārslēdzas vizuālā iezīmēšanas režīmā. Jūs varat izmantot + kursora pārvietošanas komandas, lai iezīmētu nepieciešamo tekstu. + Pēc teksta iezīmēšanas, jūs varat izmantot dažādus operatorus, lai + kaut ko darītu ar iezīmēto tekstu. Piemēram, spiežot d jūs izdzēsīsit + iezīmēto tekstu. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5.4 nodarbība: FAILU SATURA IEGŪŠANA UN APVIENOŠANA + + ** Lai ievietotu faila saturu, ievadiet :r fails ** + + 1. Novietojiet kursoru tieši virs šīs rindas. + +PIEZĪME: Pēc 2. soļa izpildes, jūs redzēsiet tekstu no 1.5.3 nodarbības. + Pēc tam pārvietojiet kursoru uz leju, lai lasītu tālāk šīs + nodarbības saturu. + + 2. Iegūstiet test faila saturu, ievadot komandas :r test + kur test ir jūsu iepriekšējā nodarbībā saglabātais fails. + Ielasītā faila saturs tiek ievietots zem kursora. + + 3. Lai pārbaudītu, ka darbība ir izdevusies, pārliecinieties, ka 1.5.4 + nodarbības aprakstā ir saturs no 1.5.3 nodarbības. + +PIEZĪME: Jūs varat ievadīt saturu failā, izpildot ārēju komandu. + Piemēram, ar komandu :r !ls + jūs ievietosiet failā tekošās mapes failu sarakstu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.5. nodarbības APKOPOJUMS + + 1. :!komanda izpilda ārēju komandu + + Daži noderīgi piemēri: + (MS-DOS) (Unix) + :!dir :!ls - parāda mapes saturu + :!del fails :!rm fails - izdzēš norādīto failu + + 2. :w fails saglabā tekošo failu failā ar norādīto nosaukumu. + + 3. v kustība :w fails saglabā vizuāli iezīmēto tekstu norādītajā failā. + + 4. :r fails ielasa faila saturu tekošajā failā zem kursora. + + 5. :r !ls ielasa izpildītās komandas atgriezto saturu failā zem kursora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.1 nodarbība: ATVĒRŠANAS KOMANDA + + ** Ievadiet o lai ievadītu jaunu rindu virs kursora un pārietu ievades režīmā. ** + + 1. Pārvietojiet kursoru uz rindu ar atzīmi --->. + + 2. Ievadiet mazo o lai ievadītu jaunu rindu virs kursora un pārslēgtos + ievades režīmā. + + 3. Ievadiet kādu tekstu un spiediet , lai izietu no ievades režīma. + +---> Ievadot o izveidosiet rindu virs šīs un pāriesiet ievades režīmā. + + 4. Lai izveidotu rindu ZEM kursora, ievadiet lielo O. + +---> Ievadot O izveidosiet rindu zem šīs un pāriesiet ievades režīmā. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.2 nodarbība: PIEVIENOŠANAS KOMANDA + + ** Ievadiet a lai ievietotu jaunu tekstu PĒC kursora. ** + + 1. Pārvietojiet kursoru uz pirmo rindu ar atzīmi --->. + + 2. Spiediet e līdz kursors ir pirmā nepabeigtā vārda beigās. + + 3. Ievadiet a (mazo a), lai pievienotu tekstu pēc kursora. + + 4. Ievadiet tekstu, lai abas rindas ar atzīmi ---> sakrīt. + Spiediet , lai pārietu normālajā režīmā. + + 5. Ievadiet e, lai novietotu kursoru nākamā nepabiegtā vārda beigās, + un atkārtojiet soļus 3 un 4. + +---> Šī rin ju palīd praktiz tekst pievienoš vārd bei +---> Šī rinda jums palīdzēs praktizēties teksta pievienošanā vārdu beigās. + +PIEZĪME: No normālā režīma pāriet uz ievades režīmu ievadot a, i, A un I. + Atšķirība ir tikai tā, kur tiek uzsākta teksta ievade: a – pēc kursora, + i — pirms kursora, A — rindas beigās, I — rindas sākumā. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.3 nodarbība: VĒL VIENS AIZVIETOŠANAS VEIDS + + ** Lai aizvietotu vairāk kā vienu rakstzīmi, spiediet R ** + + 1. Pārvietojiet kursoru uz rindu ar atzīmi --->. + + 2. Pārvietojiet kursoru uz pirmo no xxx + + 3. Spiediet R un ievadiet skaitli, kas norādīts apakšējā rindā tā, + lai ievadītie cipari pārraksta xxx. + + 4. Lai izietu no aizvietošanas režīma, spiediet . + Pārliecinieties, ka pārējais rindas saturs nav izmainīts. + + 5. Atkārtojiet 2. — 4. soļa darbības, lai līdzīgi aizvietotu pārējos xxx. + +---> Saskaitot xxx ar xxx iegūstam xxx. +---> Saskaitot 123 ar 456 iegūstam 579. + +PIEZĪME: Aizvietošanas režīms darbojas līdzīgi ievietošanas režīmam, ar + tikai ievadītās rakstzīmes aizvieto esošās. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.4 nodarbība: TEKSTA KOPĒŠANA UN IEVIETOŠANA + + ** Lai kopētu tekstu, izmantojiet y, bet lai ievietotu — p ** + + 1. Pārvietojiet kursoru uz rindu ar atzīmi ---> un novietojiet kursoru + pēc "a)" + + 2. Ieslēdziet vizuālo režīmu, spiežot v un pārvietojiet kursoru līdz + "pirmais" (to neskaitot) + + 3. Spiediet y lai iekopētu izcelto tekstu + + 4. Pārvietojiet kursoru uz nākamās rindas beigām, spiežot j$ + + 5. Spiediet p lai ievietotu nokopēto tekstu. Pēc tam spiediet + + 6. Ierakstiet otrās rindas beigās vārdu "otrais" + + 7. Līdzīgi, lietojot v y un p, nokopējiet vārdu "simtdivdesmitpiecgadnieks", + lai iegūtu rindu: šis ir otrais simtdivdesmitpiecgadnieks. + +---> a) šis ir pirmais simtdivdesmitpiecgadnieks. + b) + + PIEZĪME: y var lietot kopā ar pārvietošanās operatoru, piemēram, + spiežot yw var nokopēt izvēlēto vārdu. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6.5 nodarbība: IESTATĪJUMU MAIŅA + + ** Iestatiet meklēšana un aizstāšana, neievērojot lielos/mazos burtus ** + + 1. Sameklējiet vārdu 'neievērot', ievadot: /neievērot + Atkārtojiet meklēšanu, spiežot n + + 2. Iestatiet 'ic' (Neievērot lielos/mazos burtus) iestatījumu, ievadot: :set ic + + 3. Tagad sameklējiet 'neievērot' atkārtoti, spiežot n + Ievērojiet, ka tiek atrasti vārdi Neievērot un NEIEVĒROT. + + 4. Iestatiet 'hlsearch' un 'incsearch' opcijas, ievadot: :set hls is + + 5. Ievadiet atkal sekojošo komandu, un skatieties, kas notiek: /neievērot + + 6. Lai atceltu lielo/mazo burtu neievērošanu, ievadiet: :set noic + +PIEZĪME: Lai atceltu atrasto vietu izcelšanu, ievadiet: :nohlsearch +PIEZĪME: Ja vēlaties meklēt gan lielos, gan mazos burtus vienā meklējumā, + ievadiet papildu komandu \c + Piemēram: /neievērot\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.6. nodarbības APKOPOJUMS + + Lai pārietu uz ievietošanas režīmu un: + + 1. lai ievietotu jaunu rindu zem tekošās, ievadiet o + lai ievietotu jaunu rindu virs tekošās, ievadiet O + + 2. Lai ievietotu tekstu pēc kursora, ievadiet a + Lai ievietotu tekstu rindas beigās, ievadiet A + + Normālajā režīmā: + + 3. e komanda pārvieto kursoru uz vārda beigām. + + 4. y komanda nokopē tekstu, bet p komanda ievieto to. + + 5. R ieslēdz aizvietošanas režīmu, līdz tiek nospiests . + + 6. Ievadot ":set xxx" iestata "xxx" opciju. Dažas no tām ir sekojošas: + 'ic' 'ignorecase' meklējot neievēro lielos/mazos burtus. + 'is' 'incsearch' uzreiz meklē daļēji ievadīto frāzi. + 'hls' 'hlsearch' izgaismo atrastās frāzes. + Var norādīt gan īso, gan garo opcijas nosaukumu. + + 7. Lai opciju izslēgtu, pievieno priedēkli "no". Piemēram, :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.1 nodarbība: PALĪDZĪBAS IEGŪŠANA + + + ** Iebūvētās palīdzības izmantošana ** + + Vim ir plaša iebūvētā palīdzības sistēma. Lai sāktu to lietot, ievadiet vieno + no sekojošām komandām: + - spiediet taustiņu (ja jūsu tastatūrā tāds pastāv) + - spiediet taustiņu (ja jūsu tastatūrai ir tāds) + - ievadiet :help + + Izlasiet palīdzības aprakstu, lai saprastu, kā tas darbojas. + Ievadiet CTRL-W CTRL-W lai pārslēgtos uz citu logu. + Ievadiet :q lai aizvērtu palīdzības logu. + + Jūs varat atrast konkrētu palīdzību par jebkuru komandu, ievadot: + ":help" komanda. Piemēram (neaizmirstiet komandas beigās nospiest ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.2 nodarbība: IZVEIDOJIET SĀKŠANAS SKRIPTU + + ** Ieslēdziet Vim iespējas ** + + Vim ir daudz plašākas iespējas, nekā Vi, bet vairums no tām, + pēc noklusēšanas, nav ieslēgtas. Lai tās ieslēgtu, izveidojiet "vimrc" failu. + + 1. Atkarībā no lietotās operētājsistēmas, atveriet "vimrc" failu sekojoši: + :e ~/.vimrc Unix-veidīgā (t.sk. MacOS un Linux) + :e ~/_vimrc VMS-veidīgā (t.sk. MS-Windows) + + 2. Ielasiet "vimrc" šablona faila saturu, ievadot: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Saglabājiet šablona saturu savā iestatījumu failā: + :w + + Kad nākamo reizi atvērsiet Vim, tajā tiks izmantota sintakses izgaismošana. + Jūs varat ievietot arī citas iestatījumu iespējas savā "vimrc" failā. + Papildu informācijai ievadiet :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7.3 nodarbība: AUTOMĀTISKĀ PABEIGŠANA + + ** Automātisko pabeigšanu komandrindā izsauc ar CTRL-D un ** + + 1. Pārliecinieties, ka Vim ir ar Vi nesavietojamā režīmā: :set nocp + + 2. Apskatiet tekošās mapes saturu Vim, ievadot: :!ls vai :!dir + + 3. Ievadiet komandas sākumu ar: :e + + 4. Spiediet CTRL-D un Vim parādīs visas komandas, kuras sākas ar "e". + + 5. Spiediet un Vim automātiski pabeigs komandu uz ":edit". + + 6. Spiediet atstarpes taustiņu un sāciet ievadīt faila nosaukumu, + piemēram: :edit FIL + + 7. Spiediet un Vim pabeigs faila nosaukumu, + ja norādītais sākums ir unikāls. + +PIEZĪME: Pabeigšana strādā dažādām komandām. + Vienkārši mēģiniet spiest CTRL-D un . + Šī iespēja var būt īpaši noderīga, ievadot :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1.7. nodarbības APKOPOJUMS + + + 1. Lai atvērtu palīdzības logu, ievadiet :help vai spiediet vai + + 2. Lai atvērtu palīdzību par "komanda", ievadiet :help komanda + + 3. Lai pārslēgtos uz citu logu, spiediet: CTRL-W CTRL-W + + 4. Lai aizvērtu tekošo logu, ievadiet: :q + + 5. Izveidojiet savu "vimrc" sākšanas skriptu ar saviem iestatījumiem. + + 6. Ievadot : komanda spiediet CTRL-D, lai apskatītu iespējamos pabeigšanas + veidus. Lai pabeigtu komandu, spiediet . + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Ar šo Vim ievads ir pabeigts. Tajā tika sniegts īss Vim redaktora apraksts, + ar kuru pietiek, lai Vim lietotu vienkāršām darbībām. + Vim iespējas ir daudz plašākas, un tajā ir daudz vairāk komandu. Lai apskatītu + tās, ievadiet: ":help user-manual". + + Tālākai apmācībai tiek rekomendētas sekojošas grāmatas: + + Vim - Vi Improved, Steve Oualline, New Riders + + Šī grāmata ir tieši par Vim, un ir ļoti ieteicama iesācējiem. + Daudzi piemēri un attēli no tās pieejami: https://iccf-holland.org/click5.html + + Otra, vecāka grāmata ir par Vi, nevis Vim, bet arī ir ļoti noderīga: + + Learning the Vi Editor, Linda Lamb, O'Reilly & Associates Inc. + + Tajā ir visplašākais Vi iespēju apraksts, grāmatas sestajā laidienā ir + aprakstītas arī Vim iespējas. + + Šīs pamācības variantu angļu valodā izveidoja: + + * Michael C. Pierce, + * Robert K. Ware, + * Charles Smith, + * Bram Moolenaar. + + Pamācību latviešu valodā tulkoja: + + * Valdis Vītoliņš + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.nb b/git/usr/share/vim/vim92/tutor/tutor1.nb new file mode 100644 index 0000000000000000000000000000000000000000..4459f17b6659dc19b25acd84bae0f7ee38b92db1 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.nb @@ -0,0 +1,973 @@ +=============================================================================== += V e l k o m m e n t i l i n n f ø r i n g e n i V i m -- Ver. 1.7 = +=============================================================================== + + Vim er en meget kraftig editor med mange kommandoer, alt for mange til å + kunne gå gjennom alle i en innføring som denne. Den er beregnet på å + sette deg inn i bruken av nok kommandoer så du vil være i stand til lett + å kunne bruke Vim som en editor til alle formål. + + Tiden som kreves for å gå gjennom denne innføringen tar ca. 25-30 + minutter, avhengig av hvor mye tid du bruker til eksperimentering. + + MERK: + Kommandoene i leksjonene vil modifisere teksten. Lag en kopi av denne + filen som du kan øve deg på (hvis du kjørte «vimtutor»-kommandoen, er + dette allerede en kopi). + + Det er viktig å huske at denne innføringen er beregnet på læring gjennom + bruk. Det betyr at du må utføre kommandoene for å lære dem skikkelig. + Hvis du bare leser teksten, vil du glemme kommandoene! + + Først av alt, sjekk at «Caps Lock» IKKE er aktiv og trykk «j»-tasten for + å flytte markøren helt til leksjon 1.1.1 fyller skjermen. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.1: FLYTTING AV MARKØREN + + + ** For å flytte markøren, trykk tastene h, j, k, l som vist. ** + ^ + k Tips: h-tasten er til venstre og flytter til venstre. + < h l > l-tasten er til høyre og flytter til høyre. + j j-tasten ser ut som en pil som peker nedover. + v + 1. Flytt markøren rundt på skjermen til du har fått det inn i fingrene. + + 2. Hold inne nedovertasten (j) til den repeterer. + Nå vet du hvordan du beveger deg til neste leksjon. + + 3. Gå til leksjon 1.1.2 ved hjelp av nedovertasten. + +Merk: Hvis du blir usikker på noe du har skrevet, trykk for å gå til + normalmodus. Skriv deretter kommandoen du ønsket på nytt. + +Merk: Piltastene skal også virke. Men ved å bruke hjkl vil du være i stand til + å bevege markøren mye raskere når du er blitt vant til det. Helt sant! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.2: AVSLUTTE VIM + + + !! MERK: Før du utfører noen av punktene nedenfor, les hele leksjonen!! + + 1. Trykk -tasten (for å forsikre deg om at du er i normalmodus). + + 2. Skriv: :q! . + Dette avslutter editoren og FORKASTER alle forandringer som du har gjort. + + 3. Når du ser kommandolinjen i skallet, skriv kommandoen som startet denne + innføringen. Den er: vimtutor + + 4. Hvis du er sikker på at du husker dette, utfør punktene 1 til 3 for å + avslutte og starte editoren på nytt. + +MERK: :q! forkaster alle forandringer som du gjorde. I løpet av noen + få leksjoner vil du lære hvordan du lagrer forandringene til en fil. + + 5. Flytt markøren ned til leksjon 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.3: REDIGERING AV TEKST -- SLETTING + + + ** Trykk x for å slette tegnet under markøren. ** + + 1. Flytt markøren til den første linjen merket med --->. + + 2. For å ordne feilene på linjen, flytt markøren til den er oppå tegnet som + skal slettes. + + 3. Trykk tasten x for å slette det uønskede tegnet. + + 4. Repeter punkt 2 til 4 til setningen er lik den som er under. + +---> Hessstennnn brrråsnudddde ii gaaata. +---> Hesten bråsnudde i gata. + + 5. Nå som linjen er korrekt, gå til leksjon 1.1.4. + +MERK: Når du går gjennom innføringen, ikke bare prøv å huske kommandoene, men + bruk dem helt til de sitter. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.4: REDIGERING AV TEKST -- INNSETTING + + + ** Trykk i for å sette inn tekst. ** + + 1. Flytt markøren til den første linjen som er merket med --->. + + 2. For å gjøre den første linjen lik den andre, flytt markøren til den står + på tegnet ETTER posisjonen der teksten skal settes inn. + + 3. Trykk i og skriv inn teksten som mangler. + + 4. Etterhvert som hver feil er fikset, trykk for å returnere til + normalmodus. Repeter punkt 2 til 4 til setningen er korrekt. + +---> Det er tkst som mnglr . +---> Det er ganske mye tekst som mangler her. + + 5. Når du føler deg komfortabel med å sette inn tekst, gå til oppsummeringen + nedenfor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.5: REDIGERING AV TEKST -- LEGGE TIL + + + ** Trykk A for å legge til tekst. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. + Det har ikke noe å si hvor markøren er plassert på den linjen. + + 2. Trykk A og skriv inn det som skal legges til. + + 3. Når teksten er lagt til, trykk for å returnere til normalmodusen. + + 4. Flytt markøren til den andre linjen markert med ---> og repeter steg 2 og + 3 for å reparere denne setningen. + +---> Det mangler noe tekst p + Det mangler noe tekst på denne linjen. +---> Det mangler også litt tek + Det mangler også litt tekst på denne linjen. + + 5. Når du føler at du behersker å legge til tekst, gå til leksjon 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.6: REDIGERE EN FIL + + + ** Bruk :wq for å lagre en fil og avslutte. ** + + !! MERK: Før du utfører noen av stegene nedenfor, les hele denne leksjonen!! + + 1. Avslutt denne innføringen som du gjorde i leksjon 1.1.2: :q! + + 2. Skriv denne kommandoen på kommandolinja: vim tutor + «vim» er kommandoen for å starte Vim-editoren, «tutor» er navnet på fila + som du vil redigere. Bruk en fil som kan forandres. + + 3. Sett inn og slett tekst som du lærte i de foregående leksjonene. + + 4. Lagre filen med forandringene og avslutt Vim med: :wq + + 5. Start innføringen på nytt og flytt ned til oppsummeringen som følger. + + 6. Etter å ha lest og forstått stegene ovenfor: Sett i gang. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.1 + + + 1. Markøren beveges ved hjelp av piltastene eller hjkl-tastene. + h (venstre) j (ned) k (opp) l (høyre) + + 2. For å starte Vim fra skall-kommandolinjen, skriv: vim FILNAVN + + 3. For å avslutte Vim, skriv: :q! for å forkaste endringer. + ELLER skriv: :wq for å lagre forandringene. + + 4. For å slette tegnet under markøren, trykk: x + + 5. For å sette inn eller legge til tekst, trykk: + i skriv innsatt tekst sett inn før markøren + A skriv tillagt tekst legg til på slutten av linjen + +MERK: Når du trykker går du til normalmodus eller du avbryter en uønsket + og delvis fullført kommando. + + Nå kan du gå videre til leksjon 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.1: SLETTEKOMMANDOER + + + ** Trykk dw for å slette et ord. ** + + 1. Trykk for å være sikker på at du er i normalmodus. + + 2. Flytt markøren til den første linjen nedenfor merket --->. + + 3. Flytt markøren til begynnelsen av ordet som skal slettes. + + 4. Trykk dw og ordet vil forsvinne. + +MERK: Bokstaven d vil komme til syne på den nederste linjen på skjermen når + du skriver den. Vim venter på at du skal skrive w . Hvis du ser et annet + tegn enn d har du skrevet noe feil; trykk og start på nytt. + +---> Det er agurk tre ord eple som ikke hører pære hjemme i denne setningen. +---> Det er tre ord som ikke hører hjemme i denne setningen. + + 5. Repeter punkt 3 og 4 til den første setningen er lik den andre. Gå + deretter til leksjon 1.2.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.2: FLERE SLETTEKOMMANDOER + + + ** Trykk d$ for å slette til slutten av linjen. ** + + 1. Trykk for å være sikker på at du er i normalmodus. + + 2. Flytt markøren til linjen nedenfor merket --->. + + 3. Flytt markøren til punktet der linjen skal kuttes (ETTER første punktum). + + 4. Trykk d$ for å slette alt til slutten av linjen. + +---> Noen skrev slutten på linjen en gang for mye. linjen en gang for mye. + + 5. Gå til leksjon 1.2.3 for å forstå hva som skjer. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.3: OM OPERATORER OG BEVEGELSER + + + Mange kommandoer som forandrer teksten er laget ut i fra en operator og en + bevegelse. Formatet for en slettekommando med sletteoperatoren d er: + + d bevegelse + + Der: + d - er sletteoperatoren. + bevegelse - er hva operatoren vil opere på (listet nedenfor). + + En kort liste med bevegelser: + w - til starten av det neste ordet, UNNTATT det første tegnet. + e - til slutten av det nåværende ordet, INKLUDERT det siste tegnet. + $ - til slutten av linjen, INKLUDERT det siste tegnet. + + Ved å skrive de vil altså alt fra markøren til slutten av ordet bli + slettet. + +MERK: Ved å skrive kun bevegelsen i normalmodusen uten en operator vil + markøren flyttes som spesifisert. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKSJON 1.2.4: BRUK AV TELLER FOR EN BEVEGELSE + + + ** Ved å skrive et tall foran en bevegelse repeterer den så mange ganger. ** + + 1. Flytt markøren til starten av linjen markert ---> nedenfor. + + 2. Skriv 2w for å flytte markøren to ord framover. + + 3. Skriv 3e for å flytte markøren framover til slutten av det tredje + ordet. + + 4. Skriv 0 (null) for å flytte til starten av linjen. + + 5. Repeter steg 2 og 3 med forskjellige tall. + +---> Dette er en linje med noen ord som du kan bevege deg rundt på. + + 6. Gå videre til leksjon 1.2.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.5: BRUK AV ANTALL FOR Å SLETTE MER + + + ** Et tall sammen med en operator repeterer den så mange ganger. ** + + I kombinasjonen med sletteoperatoren og en bevegelse nevnt ovenfor setter du + inn antall før bevegelsen for å slette mer: + d nummer bevegelse + + 1. Flytt markøren til det første ordet med STORE BOKSTAVER på linjen markert + med --->. + + 2. Skriv 2dw for å slette de to ordene med store bokstaver. + + 3. Repeter steg 1 og 2 med forskjelling antall for å slette de etterfølgende + ordene som har store bokstaver. + +---> Denne ABC DE linjen FGHI JK LMN OP er nå Q RS TUV litt mer lesbar. + +MERK: Et antall mellom operatoren d og bevegelsen virker på samme måte som å + bruke bevegelsen uten en operator. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.6: OPERERE PÅ LINJER + + + ** Trykk dd for å slette en hel linje. ** + + På grunn av at sletting av linjer er mye brukt, fant utviklerne av Vi ut at + det vil være lettere å rett og slett trykke to d-er for å slette en linje. + + 1. Flytt markøren til den andre linjen i verset nedenfor. + 2. Trykk dd å slette linjen. + 3. Flytt deretter til den fjerde linjen. + 4. Trykk 2dd for å slette to linjer. + +---> 1) Roser er røde, +---> 2) Gjørme er gøy, +---> 3) Fioler er blå, +---> 4) Jeg har en bil, +---> 5) Klokker viser tiden, +---> 6) Druer er søte +---> 7) Og du er likeså. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.7: ANGRE-KOMMANDOEN + + + ** Trykk u for å angre siste kommando, U for å fikse en hel linje. ** + + 1. Flytt markøren til linjen nedenfor merket ---> og plasser den på den + første feilen. + 2. Trykk x for å slette det første uønskede tegnet. + 3. Trykk så u for å angre den siste utførte kommandoen. + 4. Deretter ordner du alle feilene på linjene ved å bruke kommandoen x . + 5. Trykk nå en stor U for å sette linjen tilbake til det den var + originalt. + 6. Trykk u noen ganger for å angre U og foregående kommandoer. + 7. Deretter trykker du CTRL-R (hold CTRL nede mens du trykker R) noen + ganger for å gjenopprette kommandoene (omgjøre angrekommandoene). + +---> RReparer feiilene påå denne linnnjen oog erssstatt dem meed angre. + + 8. Dette er meget nyttige kommandoer. Nå kan du gå til oppsummeringen av + leksjon 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.2 + + + 1. For å slette fra markøren fram til det neste ordet, trykk: dw + 2. For å slette fra markøren til slutten av en linje, trykk: d$ + 3. For å slette en hel linje, trykk: dd + + 4. For å repetere en bevegelse, sett et nummer foran: 2w + 5. Formatet for en forandringskommando er: + operator [nummer] bevegelse + der: + operator - hva som skal gjøres, f.eks. d for å slette + [nummer] - et valgfritt antall for å repetere bevegelsen + bevegelse - hva kommandoen skal operere på, eksempelvis w (ord), + $ (til slutten av linjen) og så videre. + + 6. For å gå til starten av en linje, bruk en null: 0 + + 7. For å angre tidligere endringer, skriv: u (liten u) + For å angre alle forandringer på en linje, skriv: U (stor U) + For å omgjøre angringen, trykk: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.1: «LIM INN»-KOMMANDOEN + + + ** Trykk p for å lime inn tidligere slettet tekst etter markøren ** + + 1. Flytt markøren til den første linjen med ---> nedenfor. + + 2. Trykk dd for å slette linjen og lagre den i et Vim-register. + + 3. Flytt markøren til c)-linjen, OVER posisjonen linjen skal settes inn. + + 4. Trykk p for å legge linjen under markøren. + + 5. Repeter punkt 2 til 4 helt til linjene er i riktig rekkefølge. + +---> d) Kan du også lære? +---> b) Fioler er blå, +---> c) Intelligens må læres, +---> a) Roser er røde, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.2: «ERSTATT»-KOMMANDOEN + + + ** Trykk rx for å erstatte tegnet under markøren med x. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. + + 2. Flytt markøren så den står oppå den første feilen. + + 3. Trykk r og deretter tegnet som skal være der. + + 4. Repeter punkt 2 og 3 til den første linjen er lik den andre. + +---> Da dfnne lynjxn ble zkrevet, var det nøen som tjykket feite taster! +---> Da denne linjen ble skrevet, var det noen som trykket feile taster! + + 5. Gå videre til leksjon 1.3.2. + +MERK: Husk at du bør lære ved å BRUKE, ikke pugge. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.3: «FORANDRE»-OPERATOREN + + + ** For å forandre til slutten av et ord, trykk ce . ** + + 1. Flytt markøren til den første linjen nedenfor som er merket --->. + + 2. Plasser markøren på u i «lubjwr». + + 3. Trykk ce og det korrekte ordet (i dette tilfellet, skriv «injen»). + + 4. Trykk og gå til det neste tegnet som skal forandres. + + 5. Repeter punkt 3 og 4 helt til den første setningen er lik den andre. + +---> Denne lubjwr har noen wgh som må forkwåp med «forækzryas»-kommandoen. +---> Denne linjen har noen ord som må forandres med «forandre»-kommandoen. + +Vær oppmerksom på at ce sletter ordet og går inn i innsettingsmodus. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.4: FLERE FORANDRINGER VED BRUK AV c + + + ** Forandringskommandoen blir brukt med de samme bevegelser som «slett». ** + + 1. Forandringsoperatoren fungerer på samme måte som «slett». Formatet er: + + c [nummer] bevegelse + + 2. Bevegelsene er de samme, som for eksempel w (ord) og $ (slutten av en + linje). + + 3. Gå til den første linjen nedenfor som er merket --->. + + 4. Flytt markøren til den første feilen. + + 5. Skriv c$ og skriv resten av linjen lik den andre og trykk . + +---> Slutten på denne linjen trenger litt hjelp for å gjøre den lik den neste. +---> Slutten på denne linjen trenger å bli rettet ved bruk av c$-kommandoen. + +MERK: Du kan bruke slettetasten for å rette feil mens du skriver. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.3 + + + 1. For å legge tilbake tekst som nettopp er blitt slettet, trykk p . Dette + limer inn den slettede teksten ETTER markøren (hvis en linje ble slettet + vil den bli limt inn på linjen under markøren). + + 2. For å erstatte et tegn under markøren, trykk r og deretter tegnet som + du vil ha der. + + 3. Forandringsoperatoren lar deg forandre fra markøren til dit bevegelsen + tar deg. Det vil si, skriv ce for å forandre fra markøren til slutten + av ordet, c$ for å forandre til slutten av linjen. + + 4. Formatet for «forandre» er: + + c [nummer] bevegelse + +Nå kan du gå til neste leksjon. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.1: POSISJONERING AV MARKØREN OG FILSTATUS + + ** Trykk CTRL-G for å vise posisjonen i filen og filstatusen. + Trykk G for å gå til en spesifikk linje i filen. ** + + Merk: Les hele leksjonen før du utfører noen av punktene! + + 1. Hold nede Ctrl-tasten og trykk g . Vi kaller dette CTRL-G. En melding + vil komme til syne på bunnen av skjermen med filnavnet og posisjonen i + filen. Husk linjenummeret for bruk i steg 3. + +Merk: Du kan se markørposisjonen i nederste høyre hjørne av skjermen. Dette + skjer når «ruler»-valget er satt (forklart i leksjon 6). + + 2. Trykk G for å gå til bunnen av filen. + Skriv gg for å gå til begynnelsen av filen. + + 3. Skriv inn linjenummeret du var på og deretter G . Dette vil føre deg + tilbake til linjen du var på da du først trykket CTRL-G. + + 4. Utfør steg 1 til 3 hvis du føler deg sikker på prosedyren. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.2: SØKEKOMMANDOEN + + ** Skriv / etterfulgt av en søkestreng som du vil lete etter. ** + + 1. Trykk / når du er i normalmodusen. Legg merke til at skråstreken og + markøren kommer til syne på bunnen av skjermen i likhet med + «:»-kommandoene. + + 2. Skriv «feeeiil» og trykk . Dette er teksten du vil lete etter. + + 3. For å finne neste forekomst av søkestrengen, trykk n . + For å lete etter samme søketeksten i motsatt retning, trykk N . + + 4. For å lete etter en tekst bakover i filen, bruk ? istedenfor / . + + 5. For å gå tilbake til der du kom fra, trykk CTRL-O (Hold Ctrl nede mens + du trykker bokstaven o ). Repeter for å gå enda lengre tilbake. CTRL-I + går framover. + +---> «feeeiil» er ikke måten å skrive «feil» på, feeeiil er helt feil. +Merk: Når søkingen når slutten av filen, vil den fortsette fra starten unntatt + hvis «wrapscan»-valget er resatt. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.3: FINN SAMSVARENDE PARENTESER + + + ** Trykk % for å finne en samsvarende ), ] eller } . ** + + 1. Plasser markøren på en (, [ eller { på linjen nedenfor merket --->. + + 2. Trykk % . + + 3. Markøren vil gå til den samsvarende parentesen eller hakeparentesen. + + 4. Trykk % for å flytte markøren til den andre samsvarende parentesen. + + 5. Flytt markøren til en annen (, ), [, ], { eller } og se hva % gjør. + +---> Dette ( er en testlinje med (, [ ] og { } i den )). + +Merk: Dette er veldig nyttig til feilsøking i programmer som har ubalansert + antall parenteser! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.4: ERSTATT-KOMMANDOEN + + + ** Skriv :s/gammel/ny/g for å erstatte «gammel» med «ny». ** + + 1. Flytt markøren til linjen nedenfor som er merket med --->. + + 2. Skriv :s/deen/den/ . Legg merke til at denne kommandoen bare + forandrer den første forekomsten av «deen» på linjen. + + 3. Skriv :s/deen/den/g . Når g-flagget legges til, betyr dette global + erstatning på linjen og erstatter alle forekomster av «deen» på linjen. + +---> deen som kan kaste deen tyngste steinen lengst er deen beste + + 4. For å erstatte alle forekomster av en tekststreng mellom to linjer, + skriv :#,#s/gammel/ny/g der #,# er linjenumrene på de to linjene for + linjeområdet erstatningen skal gjøres. + Skriv :%s/gammel/ny/g for å erstatte tekst i hele filen. + Skriv :%s/gammel/ny/gc for å finne alle forekomster i hele filen, og + deretter spørre om teksten skal erstattes eller + ikke. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.4 + + + 1. Ctrl-G viser nåværende posisjon i filen og filstatusen. + G går til slutten av filen. + nummer G går til det linjenummeret. + gg går til den første linjen. + + 2. Skriv / etterfulgt av en søketekst for å lete FRAMOVER etter teksten. + Skriv ? etterfulgt av en søketekst for å lete BAKOVER etter teksten. + Etter et søk kan du trykke n for å finne neste forekomst i den samme + retningen eller N for å lete i motsatt retning. + CTRL-O tar deg tilbake til gamle posisjoner, CTRL-I til nyere posisjoner. + + 3. Skriv % når markøren står på en (, ), [, ], { eller } for å finne den + som samsvarer. + + 4. Erstatte «gammel» med første «ny» på en linje: :s/gammel/ny + Erstatte alle «gammel» med «ny» på en linje: :s/gammel/ny/g + Erstatte tekst mellom to linjenumre: :#,#s/gammel/ny/g + Erstatte alle forekomster i en fil: :%s/gammel/ny/g + For å godkjenne hver erstatning, legg til «c»: :%s/gammel/ny/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.1: HVORDAN UTFØRE EN EKSTERN KOMMANDO + + + ** Skriv :! etterfulgt av en ekstern kommando for å utføre denne. ** + + 1. Skriv den velkjente kommandoen : for å plassere markøren på bunnen av + skjermen. Dette lar deg skrive en kommandolinjekommando. + + 2. Nå kan du skrive tegnet ! . Dette lar deg utføre en hvilken som helst + ekstern kommando. + + 3. Som et eksempel, skriv ls etter utropstegnet og trykk . Du vil + nå få en liste over filene i katalogen, akkurat som om du hadde kjørt + kommandoen direkte fra kommandolinjen i skallet. Eller bruk :!dir hvis + «ls» ikke virker. + +MERK: Det er mulig å kjøre alle eksterne kommandoer på denne måten, også med + parametere. + +MERK: Alle «:»-kommandoer må avsluttes med . Fra dette punktet er det + ikke alltid vi nevner det. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.2: MER OM LAGRING AV FILER + + + ** For å lagre endringene gjort i en tekst, skriv :w FILNAVN. ** + + 1. Skriv :!dir eller :!ls for å få en liste over filene i katalogen. Du + vet allerede at du må trykke etter dette. + + 2. Velg et filnavn på en fil som ikke finnes, som for eksempel TEST . + + 3. Skriv :w TEST (der TEST er filnavnet du velger). + + 4. Dette lagrer hele filen (denne innføringen) under navnet TEST . For å + sjekke dette, skriv :!dir eller :!ls igjen for å se innholdet av + katalogen. + +Merk: Hvis du nå hadde avsluttet Vim og startet på nytt igjen med «vim TEST», + ville filen vært en eksakt kopi av innføringen da du lagret den. + + 5. Fjern filen ved å skrive :!rm TEST hvis du er på et Unix-lignende + operativsystem, eller :!del TEST hvis du bruker MS-DOS. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.3: VELGE TEKST SOM SKAL LAGRES + + + ** For å lagre en del av en fil, skriv v bevegelse :w FILNAVN ** + + 1. Flytt markøren til denne linjen. + + 2. Trykk v og flytt markøren til det femte elementet nedenfor. Legg merke + til at teksten blir markert. + + 3. Trykk : (kolon). På bunnen av skjermen vil :'<,'> komme til syne. + + 4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller + at du ser :'<,'>w TEST før du trykker Enter. + + 5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls + for å se den. Ikke slett den enda! Vi vil bruke den i neste leksjon. + +MERK: Ved å trykke v startes visuelt valg. Du kan flytte markøren rundt for + å gjøre det valgte området større eller mindre. Deretter kan du bruke en + operator for å gjøre noe med teksten. For eksempel sletter d teksten. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.4: HENTING OG SAMMENSLÅING AV FILER + + + ** For å lese inn en annen fil inn i nåværende buffer, skriv :r FILNAVN ** + + 1. Plasser markøren like over denne linjen. + +MERK: Etter å ha utført steg 2 vil du se teksten fra leksjon 1.5.3. Gå deretter + NED for å se denne leksjonen igjen. + + 2. Hent TEST-filen ved å bruke kommandoen :r TEST der TEST er navnet på + filen du brukte. Filen du henter blir plassert nedenfor markørlinjen. + + 3. For å sjekke at filen ble hentet, gå tilbake og se at det er to kopier av + leksjon 1.5.3, originalen og denne versjonen. + +MERK: Du kan også lese utdataene av en ekstern kommando. For eksempel, :r !ls + leser utdataene av ls-kommandoen og legger dem nedenfor markøren. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.5 + + + 1. :!kommando utfører en ekstern kommandio. + + Noen nyttige eksempler er: + (MS-DOS) (Unix) + :!dir :!ls - List filene i katalogen. + :!del FILNAVN :!rm FILNAVN - Slett filen FILNAVN. + + 2. :w FILNAVN skriver den nåværende Vim-filen disken med navnet FILNAVN . + + 3. v bevegelse :w FILNAVN lagrer de visuelt valgte linjene til filen + FILNAVN. + + 4. :r FILNAVN henter filen FILNAVN og legger den inn nedenfor markøren. + + 5. :r !dir leser utdataene fra «dir»-kommandoen og legger dem nedenfor + markørposisjonen. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.1: «ÅPNE LINJE»-KOMMANDOEN + + + ** Skriv o for å «åpne opp» for en ny linje etter markøren og gå til + innsettingsmodus ** + + 1. Flytt markøren til linjen nedenfor merket --->. + + 2. Skriv o (liten o) for å åpne opp en linje NEDENFOR markøren og gå inn i + innsettingsmodus. + + 3. Skriv litt tekst og trykk for å gå ut av innsettingsmodusen. + +---> Etter at o er skrevet blir markøren plassert på den tomme linjen. + + 4. For å åpne en ny linje OVER markøren, trykk rett og slett en stor O + istedenfor en liten o . Prøv dette på linjen nedenfor. + +---> Lag ny linje over denne ved å trykke O mens markøren er på denne linjen. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.2: «LEGG TIL»-KOMMANDOEN + + + ** Skriv a for å legge til tekst ETTER markøren. ** + + 1. Flytt markøren til starten av linjen merket ---> nedenfor. + + 2. Trykk e til markøren er på slutten av «li». + + 3. Trykk a (liten a) for å legge til tekst ETTER markøren. + + 4. Fullfør ordet sånn som på linjen nedenfor. Trykk for å gå ut av + innsettingsmodusen. + + 5. Bruk e for å gå til det neste ufullstendige ordet og repeter steg 3 og + 4. + +---> Denne li lar deg øve på å leg til tek på en linje. +---> Denne linjen lar deg øve på å legge til tekst på en linje. + +Merk: a, i og A går alle til den samme innsettingsmodusen, den eneste + forskjellen er hvor tegnene blir satt inn. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.3: EN ANNEN MÅTE Å ERSTATTE PÅ + + + ** Skriv en stor R for å erstatte mer enn ett tegn. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. Flytt markøren + til begynnelsen av den første «xxx»-en. + + 2. Trykk R og skriv inn tallet som står nedenfor på den andre linjen så + det erstatter xxx. + + 3. Trykk for å gå ut av erstatningsmodusen. Legg merke til at resten + av linjen forblir uforandret. + + 4. Repeter stegene for å erstatte den gjenværende xxx. + +---> Ved å legge 123 til xxx får vi xxx. +---> Ved å legge 123 til 456 får vi 579. + +MERK: Erstatningsmodus er lik insettingsmodus, men hvert tegn som skrives + erstatter et eksisterende tegn. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.4: KOPIERE OG LIME INN TEKST + + + ** Bruk y-operatoren for å kopiere tekst og p for å lime den inn ** + + 1. Gå til linjen merket ---> nedenfor og plasser markøren etter «a)». + + 2. Gå inn i visuell modus med v og flytt markøren til like før «første». + + 3. Trykk y for å kopiere (engelsk: «yank») den uthevede teksten. + + 4. Flytt markøren til slutten av den neste linjen: j$ + + 5. Trykk p for å lime inn teksten. Trykk deretter: a andre . + + 6. Bruk visuell modus for å velge « valget.», kopier det med y , gå til + slutten av den neste linjen med j$ og legg inn teksten der med p . + +---> a) Dette er det første valget. + b) + +Merk: Du kan også bruke y som en operator; yw kopierer ett ord. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.5: SETT VALG + + + ** Sett et valg så søk eller erstatning ignorerer store/små bokstaver. ** + + 1. Let etter «ignore» ved å skrive: /ignore + Repeter flere ganger ved å trykke n . + + 2. Sett «ic»-valget (Ignore Case) ved å skrive: :set ic + + 3. Søk etter «ignore» igjen ved å trykke n . + Legg merke til at både «Ignore» og «IGNORE» blir funnet. + + 4. Sett «hlsearch»- og «incsearch»-valgene: :set hls is + + 5. Skriv søkekommandoen igjen og se hva som skjer: /ignore + + 6. For å slå av ignorering av store/små bokstaver, skriv: :set noic + +Merk: For å fjerne uthevingen av treff, skriv: :nohlsearch +Merk: Hvis du vil ignorere store/små bokstaver for kun en søkekommando, bruk + \c i uttrykket: /ignore\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.6 + + 1. Trykk o for å legge til en linje NEDENFOR markøren og gå inn i + innsettingsmodus. + Trykk O for å åpne en linje OVER markøren. + + 2. Skriv a for å sette inn tekst ETTER markøren. + Skriv A for å sette inn tekst etter slutten av linjen. + + 3. Kommandoen e går til slutten av et ord. + + 4. Operatoren y («yank») kopierer tekst, p («paste») limer den inn. + + 5. Ved å trykke R går du inn i erstatningsmodus helt til trykkes. + + 6. Skriv «:set xxx» for å sette valget «xxx». Noen valg er: + «ic» «ignorecase» ignorer store/små bokstaver under søk + «is» «incsearch» vis delvise treff for en søketekst + «hls» «hlsearch» uthev alle søketreff + + 7. Legg til «no» foran valget for å slå det av: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.1: FÅ HJELP + + + ** Bruk det innebygde hjelpesystemet. ** + + Vim har et omfattende innebygget hjelpesystem. For å starte det, prøv en av + disse måtene: + - Trykk Hjelp-tasten (hvis du har en) + - Trykk F1-tasten (hvis du har en) + - Skriv :help + + Les teksten i hjelpevinduet for å finne ut hvordan hjelpen virker. + Skriv CTRL-W CTRL-W for å hoppe fra et vindu til et annet + Skriv :q for å lukke hjelpevinduet. + + Du kan få hjelp for omtrent alle temaer om Vim ved å skrive et parameter til + «:help»-kommandoen. Prøv disse (ikke glem å trykke ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.2: LAG ET OPPSTARTSSKRIPT + + + ** Slå på funksjoner i Vim ** + + Vim har mange flere funksjoner enn Vi, men flesteparten av dem er slått av + som standard. For å begynne å bruke flere funksjoner må du lage en + «vimrc»-fil. + + 1. Start redigeringen av «vimrc»-filen. Dette avhenger av systemet ditt: + :e ~/.vimrc for Unix + :e ~/_vimrc for MS Windows + + 2. Les inn eksempelfilen for «vimrc»: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Lagre filen med: + :w + + Neste gang du starter Vim vil den bruke syntaks-utheving. Du kan legge til + alle dine foretrukne oppsett i denne «vimrc»-filen. + For mer informasjon, skriv :help vimrc-intro +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.3: FULLFØRING + + + ** Kommandolinjefullføring med CTRL-D og ** + + 1. Vær sikker på at Vim ikke er i Vi-kompatibel modus: :set nocp + + 2. Se hvilke filer som er i katalogen: :!ls eller :!dir + + 3. Skriv starten på en kommando: :e + + 4. Trykk CTRL-D og Vim vil vise en liste over kommandoer som starter med + «e». + + 5. Trykk og Vim vil fullføre kommandonavnet til «:edit». + + 6. Legg til et mellomrom og starten på et eksisterende filnavn: :edit FIL + + 7. Trykk . Vim vil fullføre navnet (hvis det er unikt). + +MERK: Fullføring fungerer for mange kommandoer. Prøv ved å trykke CTRL-D og + . Det er spesielt nyttig for bruk sammen med :help . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.7 + + + 1. Skriv :help eller trykk eller for å åpne et hjelpevindu. + + 2. Skriv :help kommando for å få hjelp om kommando . + + 3. Trykk CTRL-W CTRL-W for å hoppe til et annet vindu. + + 4. Trykk :q for å lukke hjelpevinduet. + + 5. Opprett et vimrc-oppstartsskript for å lagre favorittvalgene dine. + + 6. Når du skriver en «:»-kommando, trykk CTRL-D for å se mulige + fullføringer. Trykk for å bruke en fullføring. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Her slutter innføringen i Vim. Den var ment som en rask oversikt over + editoren, akkurat nok til å la deg sette i gang med enkel bruk. Den er på + langt nær komplett, da Vim har mange flere kommandoer. Les bruksanvisningen + ved å skrive :help user-manual . + + For videre lesing og studier, kan denne boken anbefales: + «Vim - Vi Improved» av Steve Oualline + Utgiver: New Riders + Den første boken som er fullt og helt dedisert til Vim. Spesielt nyttig for + nybegynnere. Inneholder mange eksempler og illustrasjoner. + Se https://iccf-holland.org/click5.html + + Denne boken er eldre og handler mer om Vi enn Vim, men anbefales også: + «Learning the Vi Editor» av Linda Lamb + Utgiver: O'Reilly & Associates Inc. + Det er en god bok for å få vite omtrent hva som helst om Vi. + Den sjette utgaven inneholder også informasjon om Vim. + + Denne innføringen er skrevet av Michael C. Pierce og Robert K. Ware, + Colorado School of Mines med idéer av Charles Smith, Colorado State + University. E-mail: bware@mines.colorado.edu . + + Modifisert for Vim av Bram Moolenaar. + Oversatt av Øyvind A. Holm. E-mail: vimtutor _AT_ sunbase.org + Id: tutor.no 406 2007-03-18 22:48:36Z sunny + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +vim: set ts=8 : diff --git a/git/usr/share/vim/vim92/tutor/tutor1.nl b/git/usr/share/vim/vim92/tutor/tutor1.nl new file mode 100644 index 0000000000000000000000000000000000000000..a5893241e79221c2b3fa747faf02182ff3a35342 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.nl @@ -0,0 +1,950 @@ + ========================================================================== + = W e l k o m b i j d e V I M l e s s e n - Versie 1.7 = + ========================================================================== + + Vim is een krachtige editor met veel commando's, te veel om uit te leggen + in lessen zoals deze. Deze lessen zijn bedoeld om voldoende commando's te + behandelen om je in staat te stellen met Vim te werken als een editor voor + algemeen gebruik. + + Deze lessen zullen 25 tot 30 minuten in beslag nemen, afhankelijk van de + tijd die wordt besteed aan het uitproberen van de commando's. + + LET OP: + Door de commando's in deze lessen verandert de tekst. Maak een kopie van + dit bestand om mee te oefenen (als je "vimtutor" uitvoerde, is dit al een + kopie). + + Deze lessen zijn bedoeld om al doende te leren. Dat betekent dat je de + commando's moet uitvoeren om ze goed te leren kennen. Als je de tekst + alleen maar doorleest, zal je de commando's niet leren! + + Zorg ervoor dat de toets NIET is ingedrukt en druk vaak genoeg + op de j-toets om de cursor zo te bewegen dat les 1.1.1 volledig op het + scherm staat. + + LET OP: In deze lessen worden omwille van de duidelijkheid vaak spaties + gebruikt binnen een commando (bv. "40 G" of "operator [getal] beweging"). + Tik deze spaties echter NIET. Ze verstoren de werking. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.1: VERPLAATS DE CURSOR + + ** De cursor wordt verplaatst met de toetsen h, j, k, l zoals aangegeven. ** + ^ + k Hint: De h is de meest linkse en beweegt naar links. + < h l > De l is de meest rechtse en beweegt naar rechts. + j De j lijkt op een pijl naar beneden. + v + + 1. Beweeg de cursor over het scherm om er vertrouwd mee te raken. + + 2. Druk de omlaag-toets (j) tot hij repeteert. + Nu weet je hoe je de volgende les bereikt. + + 3. Gebruik de omlaag-toets om naar les 1.1.2 te gaan. + + OPMERKING: Als je twijfelt aan wat je tikte, druk om in de opdracht- + modus te komen. Tik daarna het commando dat bedoeld wordt. + + OPMERKING: Pijltjes-toetsen werken ook. Met de hjkl-toetsen kan je sneller + rondbewegen, als je er eenmaal aan gewend bent. Echt waar! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.2: VIM AFSLUITEN + + !! LET OP: Lees deze les goed door voordat je iets uitvoert!! + + 1. Druk de toets (om zeker in de opdrachtmodus te zitten). + + 2. Tik :q! + Hiermee wordt de editor afgesloten. Alle veranderingen gaan VERLOREN. + + 3. Nu zie je de shell-prompt. Tik het commando waarmee je deze lessen + hebt opgeroepen. Dat is normaal gesproken: vimtutor + + 4. Als je deze stappen goed hebt doorgelezen, voer dan de stappen 1 tot 3 + uit om de editor te verlaten en weer op te starten. + + LET OP: :q! verwerpt alle veranderingen die je aanbracht. Een paar + lessen verder zal je leren hoe veranderingen worden opgeslagen in + een bestand. + + 5. Beweeg de cursor omlaag naar les 1.1.3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.3: TEKST BEWERKEN - WISSEN + + ** Tik x om het teken onder de cursor te wissen. ** + + 1. Ga met de cursor naar de regel verderop met --->. + + 2. Zet de cursor op een teken dat moet worden gewist om een fout te + herstellen. + + 3. Tik x om het ongewenste teken te wissen. + + 4. Herhaal deze stappen tot de regel goed is. + + ---> Vi kkent eenn opdracccchtmodus en een invooegmmmmodus. + + 5. Nu de regel gecorrigeerd is kan je naar les 1.1.4 gaan. + + LET OP: Probeer de lessen niet uit je hoofd te leren. Leer al doende. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.4: TEKST BEWERKEN - INVOEGEN + + ** Tik i ('insert') om tekst in te voegen. ** + + 1. Ga met de cursor naar de eerste regel verderop met --->. + + 2. Maak de eerste regel gelijk aan de tweede. Zet daarvoor de cursor op + het karakter waarvoor tekst moet worden ingevoegd. + + 3. Tik i en daarna de nodige aanvullingen. + + 4. Tik na elke herstelde fout om terug te keren in de opdrachtmodus. + Herhaal de stappen 2 tot 4 om de zin te verbeteren. + + ---> Aan regel ontekt wat . + ---> Aan deze regel ontbreekt wat tekst. + + 5. Ga naar les 1.1.5 als je gewend bent aan het invoegen van tekst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.5: TEKST BEWERKEN - TOEVOEGEN + + ** Tik A ('append') om tekst toe te voegen. ** + + 1. Ga met de cursor naar de eerste regel verderop met --->. + Het maakt niet uit waar de cursor in deze regel staat. + + 2. Tik hoofdletter A en tik de nodige aanvullingen. + + 3. Tik nadat de tekst is aangevuld. Zo keer je terug in de + opdrachtmodus. + + 4. Ga naar de tweede regel verderop met ---> en herhaal stap 2 en 3 + om deze zin te corrigeren. + + ---> Er ontbreekt wat tekst aan de + Er ontbreekt wat tekst aan deze regel. + ---> Hier ontbreekt ook w + Hier ontbreekt ook wat tekst. + + 5. Ga naar les 1.1.6 als je vertrouwd bent geraakt aan het toevoegen + van tekst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.1.6: EEN BESTAND EDITTEN + + ** Gebruik :wq om een bestand op te slaan en de editor te verlaten. ** + + !! LET OP: Lees deze les helemaal door voordat je een van de volgende + stappen uitvoert!! + + 1. Verlaat deze les zoals je in les 1.1.2 deed: :q! + Of gebruik een andere terminal als je daar de beschikking over hebt. Doe + daar het volgende. + + 2. Tik het volgende commando na de shell-prompt: vim les + 'vim' (vaak ook 'vi') is het commando om de Vim-editor te starten, + 'les' is de naam van het bestand, dat je gaat bewerken. Kies een andere + naam als er al een bestand 'les' bestaat, dat niet veranderd mag worden. + + 3. Voeg naar eigen keus tekst toe, zoals je geleerd hebt in eerdere lessen. + + 4. Sla het bestand met de wijzigingen op en verlaat Vim met :wq + + 5. Herstart vimtutor als je deze bij stap 1 hebt verlaten en ga verder met + de volgende samenvatting. + + 6. Voer deze stappen uit nadat je ze hebt gelezen en begrepen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.1 + + 1. De cursor wordt bewogen met de pijltjestoetsen of de hjkl-toetsen. + h (links) j (omlaag) k (omhoog) l (rechts) + + 2. Start Vim van de shell-prompt. Tik: vim BESTANDSNAAM + + 3. Sluit Vim af met :q! om de veranderingen weg te gooien. + OF tik :wq om de veranderingen te bewaren. + + 4. Wis het teken onder de cursor met: x + + 5. Invoegen of toevoegen van tekst, tik: + i en daarna de in te voegen tekst voeg in vanaf de cursor + A en daarna de toe te voegen tekst voeg toe achter de regel + + OPMERKING: Met kom je terug in opdrachtmodus en wordt een ongewenst + of gedeeltelijk uitgevoerd commando afgebroken. + + Ga nu verder met les 1.2.1. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.1: WIS-COMMANDO'S + + ** Tik dw ('delete word') om een woord te wissen. ** + + 1. Druk op om zeker in de opdrachtmodus te zijn. + + 2. Ga naar de regel hieronder, die met ---> begint. + + 3. Ga met de cursor naar het begin van een woord dat moet worden gewist. + + 4. Met het tikken van dw verdwijnt het woord. + + OPMERKING: De letter d verschijnt op de laatste regel van het scherm + zodra je hem tikt. Vim is aan het wachten tot je de w tikt. + Als je een ander teken dan d ziet, heb je iets verkeerds + getikt. Druk op en begin opnieuw. + + NOG EEN OPMERKING: Dit werkt alleen als de optie 'showcmd' is ingeschakeld. + Dat gebeurt met :set showcmd + + ---> Er zijn een het paar ggg woorden, die niet in deze len zin thuishoren. + + 5. Herhaal de stappen 3 en 4 tot de zin goed is en ga naar les 1.2.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.2: MEER WIS-COMMANDO'S + + ** Tik d$ om te wissen tot het einde van de regel. ** + + 1. Druk op om zeker in de opdrachtmodus te zijn. + + 2. Ga naar de regel hieronder, die met ---> begint. + + 3. Ga met de cursor naar het einde van de correcte regel (NA de eerste . ). + + 4. Tik d$ om te wissen tot het einde van de regel. + + ---> Iemand heeft het einde van deze regel dubbel getikt. dubbel getikt. + + 5. Ga naar les 1.2.3 voor uitleg. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.3: OVER OPERATOREN EN BEWEGINGEN + + Veel commando's die de tekst veranderen, bestaan uit een operator en een + beweging. De samenstelling van een wis-commando met de operator d is: + d beweging + + Daarbij is: + d - de wis-operator + beweging - het bereik waarop de operator werkt (zie het lijstje hieronder) + + Een korte lijst van bewegingen vanaf de cursor: + w - tot het begin van het volgende woord, ZONDER het eerste teken daarvan. + e - tot het einde van het huidige woord, INCLUSIEF het laatste teken. + $ - tot het einde van de regel, INCLUSIEF het laatste teken. + + Het tikken van de wist tekst vanaf de cursor tot het eind van het woord. + + OPMERKING: Het intikken van alleen maar de beweging, zonder een operator, + in de opdrachtmodus beweegt de cursor (respectievelijk naar het + volgende woord, naar het eind van het huidige woord en naar het + eind van de regel). + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.4: GEBRUIK VAN EEN TELLER BIJ EEN BEWEGING + + ** Een getal voor een beweging herhaalt het zoveel keer. ** + + 1. Ga naar de regel hieronder, die met ---> begint. + + 2. Tik 2w zodat de cursor twee woorden vooruit gaat. + + 3. Tik 3e zodat de cursor naar het einde van het derde woord gaat. + + 4. Tik 0 (nul) om naar het begin van de regel te gaan. + + 5. Herhaal de stappen 2 en 3 met andere getallen. + + ---> Dit is een regel met woorden waarin je heen en weer kan bewegen. + + 6. Ga verder met les 1.2.5. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.5: GEBRUIK EEN TELLER OM MEER TE WISSEN + + ** Een getal met een operator zorgt dat deze zoveel keer wordt herhaald. ** + + Bij de combinatie van wis-operator en beweging kan je voor de beweging een + teller zetten om meer te wissen: + d [teller] beweging + + 1. Ga naar het eerste woord in HOOFDLETTERS in de regel na --->. + + 2. Met d2w worden twee woorden (in dit voorbeeld in hoofdletters) gewist. + + 3. Herhaal de stappen 1 en 2 met verschillende tellers om de verschillende + woorden in hoofdletters met één commando te wissen. + + ---> deze ABC DE regel FGHI JK LMN OP is QZ RS ontdaan van rommel. + + OPMERKING: De teller kan ook aan het begin staan: d2w en 2dw werken allebei. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.6: BEWERKING VAN HELE REGELS + + ** Tik dd om een hele regel te wissen. ** + + Omdat het wissen van een hele regel vaak voorkomt, besloten de ontwerpers + van Vi dat met het tikken van dd simpelweg een hele regel gewist wordt. + + 1. Ga met de cursor naar de tweede regel van de zinnetjes hieronder. + + 2. Tik dd om de regel te wissen. + + 3. Ga nu naar de vierde regel. + + 4. Tik 2dd om twee regels te wissen. + + ---> 1) Rozen zijn rood. + ---> 2) Modder is leuk. + ---> 3) Viooltjes zijn blauw. + ---> 4) Ik heb een auto. + ---> 5) De klok slaat de tijd. + ---> 6) Suiker is zoet. + ---> 7) En dat ben jij ook. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.2.7: HET COMMANDO HERSTEL + + ** u maakt het laatste commando ongedaan, U herstelt een hele regel. ** + + 1. Ga met de cursor naar de regel hieronder met ---> en zet hem + op de eerste fout. + + 2. Tik x om het eerste ongewenste teken te wissen. + + 3. Tik nu u en maak daarmee het vorige commando ongedaan. + + 4. Herstel nu alle fouten in de regel met het x commando. + + 5. Tik een hoofdletter U om de regel in z'n oorspronkelijke staat terug + te brengen. + + 6. Tik nu een paar keer u en herstel daarmee de U en eerdere commando's. + + 7. Tik nu een paar keer CTRL-R (Ctrl-toets ingedrukt houden en R tikken) en + voer daarmee de commando's opnieuw uit: 'redo' oftewel 'undo de undo's'. + + ---> Heerstel de fouten inn deeze regel en brenng ze weer terugg met undo. + + 8. Dit zijn heel nuttige commando's. Ga verder met samenvatting van les 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.2 + + 1. Wis van de cursor tot het volgende woord met dw + + 2. Wis van de cursor tot het eind van de regel met d$ + + 3. Wis de hele regel met dd + + 4. Herhaal een beweging door er een getal voor te zetten: 2w + + 5. De opbouw van een wijzigingscommando is: + operator [getal] beweging + daarbij is: + operator - wat er moet gebeuren, bijvoorbeeld d om te wissen + [getal] - een (niet-verplichte) teller om 'beweging' te herhalen + beweging - een beweging door de te wijzigen tekst zoals w (woord) + of $ (tot het einde van de regel) enz. + + 6. Ga naar het begin van de regel met nul: 0 + + 7. Undo de voorgaande actie met u (kleine letter) + Undo alle veranderingen in een regel met U (hoofdletter) + Undo de undo's met CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.3.1: HET COMMANDO PLAK + + ** Tik p ('put') en plak daarmee zojuist gewiste tekst na de cursor. ** + + 1. Ga met de cursor naar de eerste regel met ---> hierna. + + 2. Wis de regel met dd en bewaar hem zodoende in een Vim-register. + + 3. Ga naar de c-regel, waar de gewiste regel ONDER moet komen. + + 4. Tik p om de regel terug te zetten onder de regel met de cursor. + + 5. Herhaal de stappen 2 tot 4 om de regels in de goede volgorde te zetten. + +---> d) Krijg je het ook onder de knie? +---> b) Viooltjes zijn blauw, +---> c) Begrip is te leren, +---> a) Rozen zijn rood, + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.3.2: HET COMMANDO VERVANG + + ** Tik rx ('replace') om het teken onder de cursor te vervangen door x. ** + + 1. Ga naar de eerste regel hieronder met --->. + + 2. Zet de cursor op de eerste fout. + + 3. Tik r en dan het teken dat er hoort te staan. + + 4. Herhaal de stappen 2 en 3 tot de eerste regel gelijk is aan de tweede. + + ---> Bij het tokken van dezf hegel heeft iemamd verklerde letters getikt. + ---> Bij het tikken van deze regel heeft iemand verkeerde letters getikt. + + 5. Ga nu naar les 1.3.3. + + LET OP: Door het te doen, leer je beter dan door het uit je hoofd te leren. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.3.3: HET COMMANDO VERANDER + + ** Tik ce om te veranderen tot het einde van een woord. ** + + 1. Ga met de cursor naar de eerste regel hieronder met --->. + + 2. Zet de cursor op de u van ruch. + + 3. Tik ce en de juiste letters (in dit geval "egel"). + + 4. Druk en ga naar het volgende teken dat moet worden veranderd. + + 5. Herhaal de stappen 3 en 4 tot de eerste regel gelijk is aan de tweede. + + ---> In deze ruch staan een paar weedrim die veranderd moud worden. + ---> In deze regel staan een paar woorden die veranderd moeten worden. + + LET OP: Met ce wordt (het laatste deel van) een woord gewist en kom je + in de invoegmodus. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.3.4: MEER VERANDERINGEN MET c + + 1. Het commando verander ('change') werkt op dezelfde manier als wis. De + opbouw is: + c [teller] beweging + + 2. De bewegingen zijn hetzelfde, zoals w (woord) en $ (einde regel). + + 3. Ga naar de eerste regel hieronder met --->. + + 4. Zet de cursor op de eerste fout. + + 5. Tik c$ en tik de rest van de regel zodat hij gelijk wordt aan de + tweede en sluit af met . + + ---> Het einde van deze regel moet precies zo worden als de tweede regel. + ---> Het einde van deze regel moet gecorrigeerd worden met het commando c$. + + OPMERKING: Je kan de toets gebruiken om tikfouten te herstellen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.3 + + 1. Tik p om tekst terug te plakken, die zojuist is gewist. Dit zet de + gewiste tekst ACHTER de cursor (als een hele regel is gewist komt deze + op de regel ONDER de cursor. + + 2. Het teken waarop de cursor staat wordt vervangen met r gevolgd door + het teken dat je daar wilt hebben. + + 3. Het commando 'verander' stelt je in staat om tekst te veranderen vanaf + de cursor tot waar de 'beweging' je brengt. Dat wil zeggen: tik ce om + te veranderen vanaf de cursor tot het einde van het woord, c$ om te + veranderen tot het einde van de regel. + + 4. De opbouw van het commando verander is: + c [teller] beweging + + Ga nu naar de volgende les. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.4.1: PLAATS VAN DE CURSOR EN STATUS VAN HET BESTAND + + ** CTRL-G laat zien waar (regelnummer) je je bevindt en wat de status van + het bestand is. Met [nummer] G ga je naar een bepaalde regel. ** + + LET OP: Lees de hele les voordat je een stap uitvoert!! + + 1. Hou de Ctrl-toets ingedrukt en tik g . Dit noemen we CTRL-G. + Onderaan de pagina verschijnt een boodschap met de bestandsnaam en de + positie in het bestand. Onthou het regelnummer voor stap 3. + + OPMERKING: Als de optie 'ruler' aan staat, wordt de positie van de cursor + (regelnummer, kolom) steeds in de rechter-onderhoek van het + scherm vermeld. In dit geval vermeldt CTRL-G geen regelnummer. + CTRL-G geeft ook de status aan, namelijk of de tekst veranderd + is ('modified') sinds het de laatste keer is opgeslagen. + + 2. Tik hoofdletter G om naar het einde van het bestand te gaan. + Tik gg om naar het begin van het bestand te gaan. + + 3. Tik het regelnummer waar je bij stap 1 was en daarna G . Dit brengt je + terug naar de regel waar je was toen je de eerste keer CTRL-G tikte. + + 4. Voer de stappen 1 tot 3 uit als je dit goed hebt gelezen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.4.2: HET COMMANDO ZOEKEN + + ** Met /ZOEK wordt naar de zoekterm (één of meer woorden) gezocht. ** + + 1. Tik in de opdrachtmodus het teken / . Je ziet dat het met de cursor + aan de onderkant van het scherm verschijnt, zoals bij het :-commando. + + 2. Tik nu 'ffouut' . Dit is het woord waarnaar gezocht wordt. + + 3. Tik n om verder te zoeken met dezelfde zoekterm. + Zoek met N met dezelfde zoekterm in de tegenovergestelde richting. + + 4. Zoek in achterwaartse richting met ?zoekterm in plaats van / . + + 5. Keer terug naar de vorige hit met CTRL-O (hou Ctrl-toets ingedrukt en + tik letter o). Herhaal om verder terug te gaan. CTRL-I gaat vooruit. + + ---> "ffouut" is niet de juiste spelling van fout, ffouut is een fout. + + OPMERKING: Als zoeken het einde van het bestand bereikt, wordt vanaf het + begin doorgezocht, tenzij de optie 'wrapscan' is uitgeschakeld. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.4.3: GA NAAR CORRESPONDERENDE HAAKJES + + ** Tik % om naar corresponderende ), ] of } te gaan. ** + + 1. Zet de cursor op een (, [ of { in de regel hieronder met --->. + + 2. Tik dan het teken % . + + 3. De cursor gaan naar het overeenkomstige haakje. + + 4. Met opnieuw % gaat de cursor terug naar het eerste haakje. + + 5. Plaats de cursor op een ander haakje en bekijk wat % doet. + + ---> Dit ( is een testregel met ('s, ['s ] en {'s } erin. )) + + OPMERKING: Dit is nuttig bij het debuggen van een programma waarin haakjes + niet corresponderen. Met de optie 'showmatch' wordt ook + aangegeven of haakjes corresponderen, maar de cursor wordt niet + (blijvend) verplaatst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.4.4: HET VERVANG COMMANDO + + ** Tik :s/oud/nieuw/g om 'oud' door 'nieuw' te vervangen. ** + + 1. Ga met de cursor naar de regel hieronder met --->. + + 2. Tik :s/dee/de . Zoals je ziet, vervangt ('substitute') dit + commando alleen de eerste "dee" in de regel. + + 3. Tik nu :s/dee/de/g . Met de g-vlag ('global') wordt elke "dee" in de + regel vervangen. + + ---> dee beste tijd om dee bloemen te zien is in dee lente. + + 4. Om in (een deel van) een tekst elk 'oud' te vervangen door 'nieuw': + tik :#,#s/oud/nieuw/g waar #,# de regelnummers zijn die het gebied + begrenzen waarin wordt vervangen. + tik :%s/oud/nieuw/g om alles te vervangen in het hele bestand. + tik :%s/oud/nieuw/gc om elke 'oud' in het hele bestand te vinden + en te vragen of er vervangen moet worden. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.4 + + 1. CTRL-G laat positie in het bestand zien en de status van het bestand. + G verplaatst je naar het einde van het bestand. + nummer G verplaatst je naar regelnummer. + gg verplaatst je naar de eerste regel. + + 2. Met / en een zoekterm wordt VOORWAARTS gezocht naar de term. + Met ? en een zoekterm wordt ACHTERWAARTS gezocht naar de term. + Tik n na een zoekopdracht om de volgende hit te vinden, + of tik N om in de andere richting te zoeken. + CTRL-O brengt je naar eerdere hit, CTRL-I naar nieuwere. + + 3. Tik % terwijl de cursor op een haakje ([{}]) staat, om naar het + corresponderende haakje te gaan. + + 4. :s/oud/nieuw vervangt het eerste 'oud' in een regel door 'nieuw'. + :s/oud/nieuw/g vervangt elk 'oud' in een regel door 'nieuw'. + :#,#s/oud/nieuw/g vervangt elk 'oud' door 'nieuw' tussen de regelnummers. + :%s/oud/nieuw/g vervangt elk 'oud' door 'nieuw' in het hele bestand. + Voeg c toe (:%s/oud/nieuw/gc) om elke keer om bevestiging + ('confirmation') te vragen. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.5.1: HOE EEN EXTERN COMMANDO WORDT UITGEVOERD + + ** Tik :! gevolgd door een extern commando om dat uit te voeren. ** + + 1. Tik het commando : waarmee de cursor op de onderste regel van het + scherm komt te staan. Nu kan je een opdracht geven via de commando-regel. + + 2. Tik een ! (uitroepteken). Dit stelt je in staat om elk shell-commando + uit te voeren. + + 3. Tik bijvoorbeeld ls na het uitroepteken en daarna . Hiermee + krijg je de inhoud van je map te zien, net alsof je de opdracht gaf + vanaf de shell-prompt. Probeer :!dir als het niet werkt. + + OPMERKING: Elk extern commando kan op deze manier uitgevoerd worden, ook + met argumenten. + + OPMERKING: Alle commando's na : moeten worden afgesloten met . + Vanaf nu zullen we dat niet meer altijd vermelden. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.5.2: MEER OVER HET OPSLAAN VAN BESTANDEN + + ** Tik :w BESTANDSNAAM om de tekst mèt veranderingen op te slaan. ** + + 1. Tik :!dir of :!ls om de inhoud van je map te tonen. Je weet + inmiddels dat je daarna een moet tikken. + + 2. Kies een bestandsnaam die nog niet bestaat, bijvoorbeeld TEST. + + 3. Tik nu: :w TEST (als je de naam TEST hebt gekozen). + + 4. Hierdoor wordt het hele bestand (de VIM lessen) opgeslagen onder de + naam TEST. Tik weer :!dir of :!ls om dit te controleren. + + OPMERKING: Als je Vim zou verlaten en opnieuw zou starten met vim TEST is + het bestand een exacte kopie van de lessen, zoals je ze opsloeg. + + 5. Wis het bestand nu met de opdracht (MS-DOS) :!del TEST + of (Unix) :!rm TEST + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.5.3: EEN DEEL VAN DE TEKST OPSLAAN + + ** Sla een deel van het bestand op met v beweging :w BESTANDSNAAM ** + + 1. Ga naar deze regel. + + 2. Tik v en ga met de cursor naar stap 5 hieronder. Je ziet dat de + tekst oplicht. + + 3. Tik : . Onderaan het scherm zal :'<,'> verschijnen. + + 4. Tik w TEST , waar TEST een bestandsnaam is, die nog niet bestaat. + Controleer dat je :'<,'>w TEST ziet staan voordat je tikt. + + 5. Vim slaat nu de geselecteerde regels op in het bestand TEST. Met + :!dir of !ls kan je dat zien. Wis het nog niet! We zullen het in + de volgende les gebruiken. + + OPMERKING: Het tikken van v zet zichtbare modus ('visual selection') aan. + Je kan de cursor rondbewegen om de selectie groter of kleiner + te maken. Vervolgens kan je een commando gebruiken om iets met + de tekst te doen. Met d bijvoorbeeld wis je de tekst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.5.4: OPHALEN EN SAMENVOEGEN VAN BESTANDEN + + ** Tik :r BESTANDSNAAM om de inhoud van een bestand in te voegen. ** + + 1. Zet de cursor precies boven deze regel. + + OPMERKING: Na het uitvoeren van stap 2 zie je tekst van les 1.5.3. Scrol + daarna naar beneden om deze les weer te zien. + + 2. Haal nu het bestand TEST op met het commando :r TEST . + Het bestand dat je ophaalt komt onder de regel waarin de cursor staat. + + 3. Controleer dat er een bestand is opgehaald. Ga met de cursor omhoog. + Dan zie je de tekst van les 1.5.3 dubbel, het origineel en de versie uit + het bestand. + + OPMERKING: Je kan ook de uitvoer van een extern commando inlezen. Om een + voorbeeld te geven: :r !ls leest de uitvoer van het commando + ls en zet dat onder de regel waarin de cursor staat. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.5 + + 1. :!COMMANDO voert een extern commando uit. + Enkele bruikbare voorbeelden zijn: + (MS-DOS) (Unix) + :!dir :!ls - laat de inhoud van een map zien + :!del BESTAND :!rm BESTAND - wist bestand BESTAND + + 2. :w BESTANDSNAAM schrijft het huidige Vim-bestand naar disk met de + naam BESTANDSNAAM. + + 3. v beweging :w BESTANDSNAAM laat je in zichtbare modus een fragment + selecteren, dat wordt opgeslagen in het bestand BESTANDSNAAM. + + 4. :r BESTANDSNAAM haalt het bestand BESTANDSNAAM op en voegt het onder + de cursor-positie in de tekst in. + + 5. :r !dir leest de uitvoer van het externe commando dir en zet het onder + de cursor-positie. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.6.1: HET COMMANDO OPEN + + ** Tik o om een regel onder de cursor te openen in invoegmodus. ** + + 1. Ga naar de eerste regel beneden met --->. + + 2. Tik de kleine letter o en open daarmee een regel ONDER de cursor en + ga naar de invoegmodus. + + 3. Tik wat tekst in en sluit af met om de invoegmodus te verlaten. + + ---> Als je o tikt, komt de cursor in een nieuwe regel in invoegmodus. + + 4. Om een regel BOVEN de cursor te openen, moet je gewoon een hoofdletter + O tikken in plaats van een kleine letter. Probeer dat vanaf de volgende + regel. + + ---> Open een regel hierboven. Tik een O terwijl de cursor hier staat. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.6.2: HET COMMANDO TOEVOEGEN + + ** Tik a om tekst toe te voegen ACHTER de cursor. ** + + 1. Ga naar het begin van de regel beneden met --->. + + 2. Tik e tot de cursor op het einde van "ste" staat. + + 3. Tik een (kleine letter) a ('append') om toe te voegen ACHTER de cursor. + + 4. Vul het woord aan zoals in de volgende regel. Druk om de + invoegmodus te verlaten. + + 5. Ga met e naar het einde van het volgende onvolledige woord en herhaal + de stappen 3 en 4. + + ---> Deze regel ste je in staat om te oef in het toevo van tekst. + Deze regel stelt je in staat om te oefenen in het toevoegen van tekst. + + OPMERKING: a, i en A openen allemaal dezelfde invoegmodus, het enige + verschil is waar tekens worden ingevoegd. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.6.3: VERVANGEN OP EEN ANDERE MANIER + + ** Tik een hoofdletter R om meer dan één teken te vervangen. ** + + 1. Ga naar de eerste regel beneden met --->. Ga met de cursor naar het + begin van de eerste "xxx" . + + 2. Tik nu R en daarna het getal eronder in de tweede regel, zodat xxx + wordt vervangen. + + 3. Druk om de vervangmodus te verlaten. Je ziet dat de rest van de + regel ongewijzigd blijft. + + 4. Herhaal de stappen om de overgebleven xxx te vervangen. + + ---> Optellen van 123 en xxx geeft je xxx. + ---> Optellen van 123 en 456 geeft je 579. + + OPMERKING: Vervangmodus lijkt op invoegmodus, maar elk teken dat je tikt, + vervangt een bestaand teken. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.6.4: TEKST KOPIËREN EN PLAKKEN + + ** Gebruik y om tekst te kopiëren en p om te plakken. ** + + 1. Ga naar de regel beneden met ---> en zet de cursor achter "a)". + + 2. Zet zichtbare modus aan met v en zet de cursor juist voor "eerste". + + 3. Tik y ('yank') om de opgelichte tekst ("dit is het") te kopiëren. + + 4. Ga met j$ met de cursor naar het einde van de volgende regel. + + 5. Plak de gekopieerde tekst met p en tik a tweede . + + 6. Selecteer in zichtbare modus "onderdeel", kopieer het met y en + ga met j$ naar het einde van de tweede regel. Plak de tekst daar + met p . + + ---> a) dit is het eerste onderdeel + b) + + OPMERKING: Je kan y ook als operator gebruiken; yw kopieert een woord, + yy een hele regel. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.6.5: OPTIES GEBRUIKEN + + ** Gebruik een optie voor al dan niet hoofdlettergevoelig zoeken. ** + + 1. Zoek naar 'hoofdlettergevoelig' met /hoofdlettergevoelig + Herhaal het zoeken enkele keren door n te tikken. + + 2. Schakel de optie 'ic' ('ignore case', niet-hoofdlettergevoelig) in + met :set ic + + 3. Zoek met n opnieuw naar 'hoofdlettergevoelig'. Je ziet dat + Hoofdlettergevoelig en HOOFDLETTERGEVOELIG nu ook gevonden worden. + + 4. Schakel de opties 'hlsearch' (treffers oplichten) en 'incsearch' (toon + gedeeltelijke treffers bij intikken) in met :set hls is + + 5. Tik weer /hoofdlettergevoelig en kijk wat er gebeurt. + + 6. Schakel 'hoofdlettergevoelig' weer in met :set noic + + OPMERKING: Schakel het oplichten van treffers uit met :nohlsearch + + OPMERKING: Om bij een enkel zoek-commando de hoofdlettergevoeligheid om + te draaien kan \c worden gebruikt na de zoekterm: + /hoofdlettergevoelig\c . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.6 + + 1. Tik o om een regel te openen ONDER de cursor en invoegmodus te starten. + Tik O om een regel te openen BOVEN de cursor. + + 2. Tik a om tekst toe te voegen NA de cursor. + Tik A om tekst toe te voegen aan het einde van de regel. + + 3. Het commando e beweegt de cursor naar het einde van een woord. + + 4. De operator y yankt (kopieert) tekst, p zet het terug (plakt). + + 5. Met hoofdletter R wordt de vervangmodus geopend, met afgesloten. + + 6. Met :set xxx wordt optie 'xxx' ingeschakeld. Opties zijn bijvoorbeeld: + ic ignorecase geen verschil hoofdletters/kleine letters bij zoeken + is incsearch toon gedeeltelijke treffers tijdens intikken zoekterm + hls hlsearch laat alle treffers oplichten + Je kan zowel de lange als de korte naam van een optie gebruiken. + + 7. Zet 'no' voor de naam om een optie uit te schakelen: :set noic + schakelt 'ic' uit. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.7.1: HULP INROEPEN + + ** Het gebruik van ingebouwde hulp. ** + + Vim heeft een uitgebreid ingebouwd hulpsysteem. Probeer, om te beginnen, + één van deze drie: + - druk de toets (als je die hebt) + - druk de toets (als je die hebt) + - tik :help + + Lees de tekst in het help-venster om te leren hoe 'help' werkt. + Tik CTRL-W CTRL-W om van het ene venster naar het andere te gaan. + Met :q wordt het help-venster gesloten. + + Je kan hulp vinden over nagenoeg elk onderwerp door een argument aan het + commando :help toe te voegen. Probeer deze (en vergeet niet): + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.7.2: SCHRIJF EEN CONFIGURATIEBESTAND + + ** Mogelijkheden van Vim uitbreiden. ** + + Vim kent veel meer mogelijkheden dan Vi, maar de meeste zijn standaard + uitgeschakeld. Om meer functies te gebruiken moet je een 'vimrc'-bestand + schrijven. + + 1. Bewerk het bestand 'vimrc'. Hoe dat moet hangt af van je systeem: + :e ~/.vimrc voor Unix + :e ~/_vimrc voor MS-Windows + + 2. Lees de inhoud van het voorbeeld-bestand: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Sla het bestand op met :w + + De volgende keer dat je Vim start wordt 'syntaxiskleuring' gebruiken. + Je kan al je voorkeursinstellingen toevoegen aan dit 'vimrc'-bestand. + Tik :help vimrc-intro voor meer informatie. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Les 1.7.3: AANVULLEN + + ** Aanvullen van de 'command line' met CTRL-D en . ** + + 1. Zorg dat Vim niet in 'compatible mode' is met :set nocp + + 2. Kijk welke bestanden zich in de map bevinden met :!ls of :!dir + + 3. Tik het begin van een commando: :e + + 4. Met CTRL-D toont Vim een lijst commando's, die met "e" beginnen. + + 5. Druk enkele keren . Vim laat aanvullingen zien, zoals ":edit", + dat we hier gebruiken. + + 6. Voeg een spatie toe en de eerste letter(s) van een bestaande + bestandsnaam: :edit BESTAND + + 7. Druk . Vim vult de naam aan (als hij uniek is). + + OPMERKING: Aanvullen werkt bij tal van commando's. Probeer gewoon CTRL-D + en . Het is bijzonder nuttig bij :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + SAMENVATTING Les 1.7 + + 1. Tik :help of druk of om een help-venster te openen. + + 2. Tik :help CMD voor hulp over CMD . + + 3. Tik CTRL-W CTRL-W om naar een ander venster te gaan. + + 4. Tik :q om het help-venster te sluiten. + + 5. Maak een bestand met de naam 'vimrc' voor je voorkeursinstellingen. + + 6. Druk CTRL-D tijdens het intikken van een :-commando om mogelijke + aanvullingen te zien. Druk om aanvullen te gebruiken. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Hiermee komen de Vim-lessen tot een einde. Ze waren bedoeld om een kort + overzicht te geven van de Vim-editor, juist voldoende om de editor + redelijk makkelijk te gebruiken. Deze lessen zijn verre van volledig. Vim + kent veel meer commando's. Lees hierna de handleiding voor gebruikers: + ":help user-manual". + + Voor verdere studie wordt aanbevolen: + Vim - Vi Improved - door Steve Oualline + Uitgever: New Riders + Dit is het eerste boek dat geheel aan Vim is gewijd. Speciaal geschikt + voor beginners. Met veel voorbeelden en afbeeldingen. + Zie https://iccf-holland.org/click5.html + + Het volgende boek is ouder en gaat meer over Vi dan Vim, maar het wordt + toch aanbevolen: + Learning the Vi Editor - door Linda Lamb + Uitgever: O'Reilly & Associates Inc. + Het is een goed boek om nagenoeg alles te weten te komen dat je met Vi + zou willen doen. De zesde en vooral de nieuwe zevende druk (onder de + titel Learning the Vi and Vim Editors door Arnold Robbins, Elbert Hannah + & Linda Lamb) bevat ook informatie over Vim. + + Deze lessen zijn geschreven door Michael C. Pierce en Robert K. Ware, + Colorado School of Mines met gebruikmaking van ideeën van Charles Smith + van de Colorado State University. E-mail: bware@mines.colorado.edu. + + Aangepast voor Vim door Bram Moolenaar. + + Nederlandse vertaling door Rob Bishoff, april 2012 + e-mail: rob.bishoff@hccnet.nl) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.no b/git/usr/share/vim/vim92/tutor/tutor1.no new file mode 100644 index 0000000000000000000000000000000000000000..4459f17b6659dc19b25acd84bae0f7ee38b92db1 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.no @@ -0,0 +1,973 @@ +=============================================================================== += V e l k o m m e n t i l i n n f ø r i n g e n i V i m -- Ver. 1.7 = +=============================================================================== + + Vim er en meget kraftig editor med mange kommandoer, alt for mange til å + kunne gå gjennom alle i en innføring som denne. Den er beregnet på å + sette deg inn i bruken av nok kommandoer så du vil være i stand til lett + å kunne bruke Vim som en editor til alle formål. + + Tiden som kreves for å gå gjennom denne innføringen tar ca. 25-30 + minutter, avhengig av hvor mye tid du bruker til eksperimentering. + + MERK: + Kommandoene i leksjonene vil modifisere teksten. Lag en kopi av denne + filen som du kan øve deg på (hvis du kjørte «vimtutor»-kommandoen, er + dette allerede en kopi). + + Det er viktig å huske at denne innføringen er beregnet på læring gjennom + bruk. Det betyr at du må utføre kommandoene for å lære dem skikkelig. + Hvis du bare leser teksten, vil du glemme kommandoene! + + Først av alt, sjekk at «Caps Lock» IKKE er aktiv og trykk «j»-tasten for + å flytte markøren helt til leksjon 1.1.1 fyller skjermen. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.1: FLYTTING AV MARKØREN + + + ** For å flytte markøren, trykk tastene h, j, k, l som vist. ** + ^ + k Tips: h-tasten er til venstre og flytter til venstre. + < h l > l-tasten er til høyre og flytter til høyre. + j j-tasten ser ut som en pil som peker nedover. + v + 1. Flytt markøren rundt på skjermen til du har fått det inn i fingrene. + + 2. Hold inne nedovertasten (j) til den repeterer. + Nå vet du hvordan du beveger deg til neste leksjon. + + 3. Gå til leksjon 1.1.2 ved hjelp av nedovertasten. + +Merk: Hvis du blir usikker på noe du har skrevet, trykk for å gå til + normalmodus. Skriv deretter kommandoen du ønsket på nytt. + +Merk: Piltastene skal også virke. Men ved å bruke hjkl vil du være i stand til + å bevege markøren mye raskere når du er blitt vant til det. Helt sant! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.2: AVSLUTTE VIM + + + !! MERK: Før du utfører noen av punktene nedenfor, les hele leksjonen!! + + 1. Trykk -tasten (for å forsikre deg om at du er i normalmodus). + + 2. Skriv: :q! . + Dette avslutter editoren og FORKASTER alle forandringer som du har gjort. + + 3. Når du ser kommandolinjen i skallet, skriv kommandoen som startet denne + innføringen. Den er: vimtutor + + 4. Hvis du er sikker på at du husker dette, utfør punktene 1 til 3 for å + avslutte og starte editoren på nytt. + +MERK: :q! forkaster alle forandringer som du gjorde. I løpet av noen + få leksjoner vil du lære hvordan du lagrer forandringene til en fil. + + 5. Flytt markøren ned til leksjon 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.3: REDIGERING AV TEKST -- SLETTING + + + ** Trykk x for å slette tegnet under markøren. ** + + 1. Flytt markøren til den første linjen merket med --->. + + 2. For å ordne feilene på linjen, flytt markøren til den er oppå tegnet som + skal slettes. + + 3. Trykk tasten x for å slette det uønskede tegnet. + + 4. Repeter punkt 2 til 4 til setningen er lik den som er under. + +---> Hessstennnn brrråsnudddde ii gaaata. +---> Hesten bråsnudde i gata. + + 5. Nå som linjen er korrekt, gå til leksjon 1.1.4. + +MERK: Når du går gjennom innføringen, ikke bare prøv å huske kommandoene, men + bruk dem helt til de sitter. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.4: REDIGERING AV TEKST -- INNSETTING + + + ** Trykk i for å sette inn tekst. ** + + 1. Flytt markøren til den første linjen som er merket med --->. + + 2. For å gjøre den første linjen lik den andre, flytt markøren til den står + på tegnet ETTER posisjonen der teksten skal settes inn. + + 3. Trykk i og skriv inn teksten som mangler. + + 4. Etterhvert som hver feil er fikset, trykk for å returnere til + normalmodus. Repeter punkt 2 til 4 til setningen er korrekt. + +---> Det er tkst som mnglr . +---> Det er ganske mye tekst som mangler her. + + 5. Når du føler deg komfortabel med å sette inn tekst, gå til oppsummeringen + nedenfor. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.5: REDIGERING AV TEKST -- LEGGE TIL + + + ** Trykk A for å legge til tekst. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. + Det har ikke noe å si hvor markøren er plassert på den linjen. + + 2. Trykk A og skriv inn det som skal legges til. + + 3. Når teksten er lagt til, trykk for å returnere til normalmodusen. + + 4. Flytt markøren til den andre linjen markert med ---> og repeter steg 2 og + 3 for å reparere denne setningen. + +---> Det mangler noe tekst p + Det mangler noe tekst på denne linjen. +---> Det mangler også litt tek + Det mangler også litt tekst på denne linjen. + + 5. Når du føler at du behersker å legge til tekst, gå til leksjon 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.1.6: REDIGERE EN FIL + + + ** Bruk :wq for å lagre en fil og avslutte. ** + + !! MERK: Før du utfører noen av stegene nedenfor, les hele denne leksjonen!! + + 1. Avslutt denne innføringen som du gjorde i leksjon 1.1.2: :q! + + 2. Skriv denne kommandoen på kommandolinja: vim tutor + «vim» er kommandoen for å starte Vim-editoren, «tutor» er navnet på fila + som du vil redigere. Bruk en fil som kan forandres. + + 3. Sett inn og slett tekst som du lærte i de foregående leksjonene. + + 4. Lagre filen med forandringene og avslutt Vim med: :wq + + 5. Start innføringen på nytt og flytt ned til oppsummeringen som følger. + + 6. Etter å ha lest og forstått stegene ovenfor: Sett i gang. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.1 + + + 1. Markøren beveges ved hjelp av piltastene eller hjkl-tastene. + h (venstre) j (ned) k (opp) l (høyre) + + 2. For å starte Vim fra skall-kommandolinjen, skriv: vim FILNAVN + + 3. For å avslutte Vim, skriv: :q! for å forkaste endringer. + ELLER skriv: :wq for å lagre forandringene. + + 4. For å slette tegnet under markøren, trykk: x + + 5. For å sette inn eller legge til tekst, trykk: + i skriv innsatt tekst sett inn før markøren + A skriv tillagt tekst legg til på slutten av linjen + +MERK: Når du trykker går du til normalmodus eller du avbryter en uønsket + og delvis fullført kommando. + + Nå kan du gå videre til leksjon 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.1: SLETTEKOMMANDOER + + + ** Trykk dw for å slette et ord. ** + + 1. Trykk for å være sikker på at du er i normalmodus. + + 2. Flytt markøren til den første linjen nedenfor merket --->. + + 3. Flytt markøren til begynnelsen av ordet som skal slettes. + + 4. Trykk dw og ordet vil forsvinne. + +MERK: Bokstaven d vil komme til syne på den nederste linjen på skjermen når + du skriver den. Vim venter på at du skal skrive w . Hvis du ser et annet + tegn enn d har du skrevet noe feil; trykk og start på nytt. + +---> Det er agurk tre ord eple som ikke hører pære hjemme i denne setningen. +---> Det er tre ord som ikke hører hjemme i denne setningen. + + 5. Repeter punkt 3 og 4 til den første setningen er lik den andre. Gå + deretter til leksjon 1.2.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.2: FLERE SLETTEKOMMANDOER + + + ** Trykk d$ for å slette til slutten av linjen. ** + + 1. Trykk for å være sikker på at du er i normalmodus. + + 2. Flytt markøren til linjen nedenfor merket --->. + + 3. Flytt markøren til punktet der linjen skal kuttes (ETTER første punktum). + + 4. Trykk d$ for å slette alt til slutten av linjen. + +---> Noen skrev slutten på linjen en gang for mye. linjen en gang for mye. + + 5. Gå til leksjon 1.2.3 for å forstå hva som skjer. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.3: OM OPERATORER OG BEVEGELSER + + + Mange kommandoer som forandrer teksten er laget ut i fra en operator og en + bevegelse. Formatet for en slettekommando med sletteoperatoren d er: + + d bevegelse + + Der: + d - er sletteoperatoren. + bevegelse - er hva operatoren vil opere på (listet nedenfor). + + En kort liste med bevegelser: + w - til starten av det neste ordet, UNNTATT det første tegnet. + e - til slutten av det nåværende ordet, INKLUDERT det siste tegnet. + $ - til slutten av linjen, INKLUDERT det siste tegnet. + + Ved å skrive de vil altså alt fra markøren til slutten av ordet bli + slettet. + +MERK: Ved å skrive kun bevegelsen i normalmodusen uten en operator vil + markøren flyttes som spesifisert. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKSJON 1.2.4: BRUK AV TELLER FOR EN BEVEGELSE + + + ** Ved å skrive et tall foran en bevegelse repeterer den så mange ganger. ** + + 1. Flytt markøren til starten av linjen markert ---> nedenfor. + + 2. Skriv 2w for å flytte markøren to ord framover. + + 3. Skriv 3e for å flytte markøren framover til slutten av det tredje + ordet. + + 4. Skriv 0 (null) for å flytte til starten av linjen. + + 5. Repeter steg 2 og 3 med forskjellige tall. + +---> Dette er en linje med noen ord som du kan bevege deg rundt på. + + 6. Gå videre til leksjon 1.2.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.5: BRUK AV ANTALL FOR Å SLETTE MER + + + ** Et tall sammen med en operator repeterer den så mange ganger. ** + + I kombinasjonen med sletteoperatoren og en bevegelse nevnt ovenfor setter du + inn antall før bevegelsen for å slette mer: + d nummer bevegelse + + 1. Flytt markøren til det første ordet med STORE BOKSTAVER på linjen markert + med --->. + + 2. Skriv 2dw for å slette de to ordene med store bokstaver. + + 3. Repeter steg 1 og 2 med forskjelling antall for å slette de etterfølgende + ordene som har store bokstaver. + +---> Denne ABC DE linjen FGHI JK LMN OP er nå Q RS TUV litt mer lesbar. + +MERK: Et antall mellom operatoren d og bevegelsen virker på samme måte som å + bruke bevegelsen uten en operator. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.6: OPERERE PÅ LINJER + + + ** Trykk dd for å slette en hel linje. ** + + På grunn av at sletting av linjer er mye brukt, fant utviklerne av Vi ut at + det vil være lettere å rett og slett trykke to d-er for å slette en linje. + + 1. Flytt markøren til den andre linjen i verset nedenfor. + 2. Trykk dd å slette linjen. + 3. Flytt deretter til den fjerde linjen. + 4. Trykk 2dd for å slette to linjer. + +---> 1) Roser er røde, +---> 2) Gjørme er gøy, +---> 3) Fioler er blå, +---> 4) Jeg har en bil, +---> 5) Klokker viser tiden, +---> 6) Druer er søte +---> 7) Og du er likeså. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.2.7: ANGRE-KOMMANDOEN + + + ** Trykk u for å angre siste kommando, U for å fikse en hel linje. ** + + 1. Flytt markøren til linjen nedenfor merket ---> og plasser den på den + første feilen. + 2. Trykk x for å slette det første uønskede tegnet. + 3. Trykk så u for å angre den siste utførte kommandoen. + 4. Deretter ordner du alle feilene på linjene ved å bruke kommandoen x . + 5. Trykk nå en stor U for å sette linjen tilbake til det den var + originalt. + 6. Trykk u noen ganger for å angre U og foregående kommandoer. + 7. Deretter trykker du CTRL-R (hold CTRL nede mens du trykker R) noen + ganger for å gjenopprette kommandoene (omgjøre angrekommandoene). + +---> RReparer feiilene påå denne linnnjen oog erssstatt dem meed angre. + + 8. Dette er meget nyttige kommandoer. Nå kan du gå til oppsummeringen av + leksjon 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.2 + + + 1. For å slette fra markøren fram til det neste ordet, trykk: dw + 2. For å slette fra markøren til slutten av en linje, trykk: d$ + 3. For å slette en hel linje, trykk: dd + + 4. For å repetere en bevegelse, sett et nummer foran: 2w + 5. Formatet for en forandringskommando er: + operator [nummer] bevegelse + der: + operator - hva som skal gjøres, f.eks. d for å slette + [nummer] - et valgfritt antall for å repetere bevegelsen + bevegelse - hva kommandoen skal operere på, eksempelvis w (ord), + $ (til slutten av linjen) og så videre. + + 6. For å gå til starten av en linje, bruk en null: 0 + + 7. For å angre tidligere endringer, skriv: u (liten u) + For å angre alle forandringer på en linje, skriv: U (stor U) + For å omgjøre angringen, trykk: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.1: «LIM INN»-KOMMANDOEN + + + ** Trykk p for å lime inn tidligere slettet tekst etter markøren ** + + 1. Flytt markøren til den første linjen med ---> nedenfor. + + 2. Trykk dd for å slette linjen og lagre den i et Vim-register. + + 3. Flytt markøren til c)-linjen, OVER posisjonen linjen skal settes inn. + + 4. Trykk p for å legge linjen under markøren. + + 5. Repeter punkt 2 til 4 helt til linjene er i riktig rekkefølge. + +---> d) Kan du også lære? +---> b) Fioler er blå, +---> c) Intelligens må læres, +---> a) Roser er røde, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.2: «ERSTATT»-KOMMANDOEN + + + ** Trykk rx for å erstatte tegnet under markøren med x. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. + + 2. Flytt markøren så den står oppå den første feilen. + + 3. Trykk r og deretter tegnet som skal være der. + + 4. Repeter punkt 2 og 3 til den første linjen er lik den andre. + +---> Da dfnne lynjxn ble zkrevet, var det nøen som tjykket feite taster! +---> Da denne linjen ble skrevet, var det noen som trykket feile taster! + + 5. Gå videre til leksjon 1.3.2. + +MERK: Husk at du bør lære ved å BRUKE, ikke pugge. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.3: «FORANDRE»-OPERATOREN + + + ** For å forandre til slutten av et ord, trykk ce . ** + + 1. Flytt markøren til den første linjen nedenfor som er merket --->. + + 2. Plasser markøren på u i «lubjwr». + + 3. Trykk ce og det korrekte ordet (i dette tilfellet, skriv «injen»). + + 4. Trykk og gå til det neste tegnet som skal forandres. + + 5. Repeter punkt 3 og 4 helt til den første setningen er lik den andre. + +---> Denne lubjwr har noen wgh som må forkwåp med «forækzryas»-kommandoen. +---> Denne linjen har noen ord som må forandres med «forandre»-kommandoen. + +Vær oppmerksom på at ce sletter ordet og går inn i innsettingsmodus. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.3.4: FLERE FORANDRINGER VED BRUK AV c + + + ** Forandringskommandoen blir brukt med de samme bevegelser som «slett». ** + + 1. Forandringsoperatoren fungerer på samme måte som «slett». Formatet er: + + c [nummer] bevegelse + + 2. Bevegelsene er de samme, som for eksempel w (ord) og $ (slutten av en + linje). + + 3. Gå til den første linjen nedenfor som er merket --->. + + 4. Flytt markøren til den første feilen. + + 5. Skriv c$ og skriv resten av linjen lik den andre og trykk . + +---> Slutten på denne linjen trenger litt hjelp for å gjøre den lik den neste. +---> Slutten på denne linjen trenger å bli rettet ved bruk av c$-kommandoen. + +MERK: Du kan bruke slettetasten for å rette feil mens du skriver. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.3 + + + 1. For å legge tilbake tekst som nettopp er blitt slettet, trykk p . Dette + limer inn den slettede teksten ETTER markøren (hvis en linje ble slettet + vil den bli limt inn på linjen under markøren). + + 2. For å erstatte et tegn under markøren, trykk r og deretter tegnet som + du vil ha der. + + 3. Forandringsoperatoren lar deg forandre fra markøren til dit bevegelsen + tar deg. Det vil si, skriv ce for å forandre fra markøren til slutten + av ordet, c$ for å forandre til slutten av linjen. + + 4. Formatet for «forandre» er: + + c [nummer] bevegelse + +Nå kan du gå til neste leksjon. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.1: POSISJONERING AV MARKØREN OG FILSTATUS + + ** Trykk CTRL-G for å vise posisjonen i filen og filstatusen. + Trykk G for å gå til en spesifikk linje i filen. ** + + Merk: Les hele leksjonen før du utfører noen av punktene! + + 1. Hold nede Ctrl-tasten og trykk g . Vi kaller dette CTRL-G. En melding + vil komme til syne på bunnen av skjermen med filnavnet og posisjonen i + filen. Husk linjenummeret for bruk i steg 3. + +Merk: Du kan se markørposisjonen i nederste høyre hjørne av skjermen. Dette + skjer når «ruler»-valget er satt (forklart i leksjon 6). + + 2. Trykk G for å gå til bunnen av filen. + Skriv gg for å gå til begynnelsen av filen. + + 3. Skriv inn linjenummeret du var på og deretter G . Dette vil føre deg + tilbake til linjen du var på da du først trykket CTRL-G. + + 4. Utfør steg 1 til 3 hvis du føler deg sikker på prosedyren. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.2: SØKEKOMMANDOEN + + ** Skriv / etterfulgt av en søkestreng som du vil lete etter. ** + + 1. Trykk / når du er i normalmodusen. Legg merke til at skråstreken og + markøren kommer til syne på bunnen av skjermen i likhet med + «:»-kommandoene. + + 2. Skriv «feeeiil» og trykk . Dette er teksten du vil lete etter. + + 3. For å finne neste forekomst av søkestrengen, trykk n . + For å lete etter samme søketeksten i motsatt retning, trykk N . + + 4. For å lete etter en tekst bakover i filen, bruk ? istedenfor / . + + 5. For å gå tilbake til der du kom fra, trykk CTRL-O (Hold Ctrl nede mens + du trykker bokstaven o ). Repeter for å gå enda lengre tilbake. CTRL-I + går framover. + +---> «feeeiil» er ikke måten å skrive «feil» på, feeeiil er helt feil. +Merk: Når søkingen når slutten av filen, vil den fortsette fra starten unntatt + hvis «wrapscan»-valget er resatt. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.3: FINN SAMSVARENDE PARENTESER + + + ** Trykk % for å finne en samsvarende ), ] eller } . ** + + 1. Plasser markøren på en (, [ eller { på linjen nedenfor merket --->. + + 2. Trykk % . + + 3. Markøren vil gå til den samsvarende parentesen eller hakeparentesen. + + 4. Trykk % for å flytte markøren til den andre samsvarende parentesen. + + 5. Flytt markøren til en annen (, ), [, ], { eller } og se hva % gjør. + +---> Dette ( er en testlinje med (, [ ] og { } i den )). + +Merk: Dette er veldig nyttig til feilsøking i programmer som har ubalansert + antall parenteser! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.4.4: ERSTATT-KOMMANDOEN + + + ** Skriv :s/gammel/ny/g for å erstatte «gammel» med «ny». ** + + 1. Flytt markøren til linjen nedenfor som er merket med --->. + + 2. Skriv :s/deen/den/ . Legg merke til at denne kommandoen bare + forandrer den første forekomsten av «deen» på linjen. + + 3. Skriv :s/deen/den/g . Når g-flagget legges til, betyr dette global + erstatning på linjen og erstatter alle forekomster av «deen» på linjen. + +---> deen som kan kaste deen tyngste steinen lengst er deen beste + + 4. For å erstatte alle forekomster av en tekststreng mellom to linjer, + skriv :#,#s/gammel/ny/g der #,# er linjenumrene på de to linjene for + linjeområdet erstatningen skal gjøres. + Skriv :%s/gammel/ny/g for å erstatte tekst i hele filen. + Skriv :%s/gammel/ny/gc for å finne alle forekomster i hele filen, og + deretter spørre om teksten skal erstattes eller + ikke. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.4 + + + 1. Ctrl-G viser nåværende posisjon i filen og filstatusen. + G går til slutten av filen. + nummer G går til det linjenummeret. + gg går til den første linjen. + + 2. Skriv / etterfulgt av en søketekst for å lete FRAMOVER etter teksten. + Skriv ? etterfulgt av en søketekst for å lete BAKOVER etter teksten. + Etter et søk kan du trykke n for å finne neste forekomst i den samme + retningen eller N for å lete i motsatt retning. + CTRL-O tar deg tilbake til gamle posisjoner, CTRL-I til nyere posisjoner. + + 3. Skriv % når markøren står på en (, ), [, ], { eller } for å finne den + som samsvarer. + + 4. Erstatte «gammel» med første «ny» på en linje: :s/gammel/ny + Erstatte alle «gammel» med «ny» på en linje: :s/gammel/ny/g + Erstatte tekst mellom to linjenumre: :#,#s/gammel/ny/g + Erstatte alle forekomster i en fil: :%s/gammel/ny/g + For å godkjenne hver erstatning, legg til «c»: :%s/gammel/ny/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.1: HVORDAN UTFØRE EN EKSTERN KOMMANDO + + + ** Skriv :! etterfulgt av en ekstern kommando for å utføre denne. ** + + 1. Skriv den velkjente kommandoen : for å plassere markøren på bunnen av + skjermen. Dette lar deg skrive en kommandolinjekommando. + + 2. Nå kan du skrive tegnet ! . Dette lar deg utføre en hvilken som helst + ekstern kommando. + + 3. Som et eksempel, skriv ls etter utropstegnet og trykk . Du vil + nå få en liste over filene i katalogen, akkurat som om du hadde kjørt + kommandoen direkte fra kommandolinjen i skallet. Eller bruk :!dir hvis + «ls» ikke virker. + +MERK: Det er mulig å kjøre alle eksterne kommandoer på denne måten, også med + parametere. + +MERK: Alle «:»-kommandoer må avsluttes med . Fra dette punktet er det + ikke alltid vi nevner det. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.2: MER OM LAGRING AV FILER + + + ** For å lagre endringene gjort i en tekst, skriv :w FILNAVN. ** + + 1. Skriv :!dir eller :!ls for å få en liste over filene i katalogen. Du + vet allerede at du må trykke etter dette. + + 2. Velg et filnavn på en fil som ikke finnes, som for eksempel TEST . + + 3. Skriv :w TEST (der TEST er filnavnet du velger). + + 4. Dette lagrer hele filen (denne innføringen) under navnet TEST . For å + sjekke dette, skriv :!dir eller :!ls igjen for å se innholdet av + katalogen. + +Merk: Hvis du nå hadde avsluttet Vim og startet på nytt igjen med «vim TEST», + ville filen vært en eksakt kopi av innføringen da du lagret den. + + 5. Fjern filen ved å skrive :!rm TEST hvis du er på et Unix-lignende + operativsystem, eller :!del TEST hvis du bruker MS-DOS. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.3: VELGE TEKST SOM SKAL LAGRES + + + ** For å lagre en del av en fil, skriv v bevegelse :w FILNAVN ** + + 1. Flytt markøren til denne linjen. + + 2. Trykk v og flytt markøren til det femte elementet nedenfor. Legg merke + til at teksten blir markert. + + 3. Trykk : (kolon). På bunnen av skjermen vil :'<,'> komme til syne. + + 4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller + at du ser :'<,'>w TEST før du trykker Enter. + + 5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls + for å se den. Ikke slett den enda! Vi vil bruke den i neste leksjon. + +MERK: Ved å trykke v startes visuelt valg. Du kan flytte markøren rundt for + å gjøre det valgte området større eller mindre. Deretter kan du bruke en + operator for å gjøre noe med teksten. For eksempel sletter d teksten. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.5.4: HENTING OG SAMMENSLÅING AV FILER + + + ** For å lese inn en annen fil inn i nåværende buffer, skriv :r FILNAVN ** + + 1. Plasser markøren like over denne linjen. + +MERK: Etter å ha utført steg 2 vil du se teksten fra leksjon 1.5.3. Gå deretter + NED for å se denne leksjonen igjen. + + 2. Hent TEST-filen ved å bruke kommandoen :r TEST der TEST er navnet på + filen du brukte. Filen du henter blir plassert nedenfor markørlinjen. + + 3. For å sjekke at filen ble hentet, gå tilbake og se at det er to kopier av + leksjon 1.5.3, originalen og denne versjonen. + +MERK: Du kan også lese utdataene av en ekstern kommando. For eksempel, :r !ls + leser utdataene av ls-kommandoen og legger dem nedenfor markøren. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.5 + + + 1. :!kommando utfører en ekstern kommandio. + + Noen nyttige eksempler er: + (MS-DOS) (Unix) + :!dir :!ls - List filene i katalogen. + :!del FILNAVN :!rm FILNAVN - Slett filen FILNAVN. + + 2. :w FILNAVN skriver den nåværende Vim-filen disken med navnet FILNAVN . + + 3. v bevegelse :w FILNAVN lagrer de visuelt valgte linjene til filen + FILNAVN. + + 4. :r FILNAVN henter filen FILNAVN og legger den inn nedenfor markøren. + + 5. :r !dir leser utdataene fra «dir»-kommandoen og legger dem nedenfor + markørposisjonen. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.1: «ÅPNE LINJE»-KOMMANDOEN + + + ** Skriv o for å «åpne opp» for en ny linje etter markøren og gå til + innsettingsmodus ** + + 1. Flytt markøren til linjen nedenfor merket --->. + + 2. Skriv o (liten o) for å åpne opp en linje NEDENFOR markøren og gå inn i + innsettingsmodus. + + 3. Skriv litt tekst og trykk for å gå ut av innsettingsmodusen. + +---> Etter at o er skrevet blir markøren plassert på den tomme linjen. + + 4. For å åpne en ny linje OVER markøren, trykk rett og slett en stor O + istedenfor en liten o . Prøv dette på linjen nedenfor. + +---> Lag ny linje over denne ved å trykke O mens markøren er på denne linjen. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.2: «LEGG TIL»-KOMMANDOEN + + + ** Skriv a for å legge til tekst ETTER markøren. ** + + 1. Flytt markøren til starten av linjen merket ---> nedenfor. + + 2. Trykk e til markøren er på slutten av «li». + + 3. Trykk a (liten a) for å legge til tekst ETTER markøren. + + 4. Fullfør ordet sånn som på linjen nedenfor. Trykk for å gå ut av + innsettingsmodusen. + + 5. Bruk e for å gå til det neste ufullstendige ordet og repeter steg 3 og + 4. + +---> Denne li lar deg øve på å leg til tek på en linje. +---> Denne linjen lar deg øve på å legge til tekst på en linje. + +Merk: a, i og A går alle til den samme innsettingsmodusen, den eneste + forskjellen er hvor tegnene blir satt inn. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.3: EN ANNEN MÅTE Å ERSTATTE PÅ + + + ** Skriv en stor R for å erstatte mer enn ett tegn. ** + + 1. Flytt markøren til den første linjen nedenfor merket --->. Flytt markøren + til begynnelsen av den første «xxx»-en. + + 2. Trykk R og skriv inn tallet som står nedenfor på den andre linjen så + det erstatter xxx. + + 3. Trykk for å gå ut av erstatningsmodusen. Legg merke til at resten + av linjen forblir uforandret. + + 4. Repeter stegene for å erstatte den gjenværende xxx. + +---> Ved å legge 123 til xxx får vi xxx. +---> Ved å legge 123 til 456 får vi 579. + +MERK: Erstatningsmodus er lik insettingsmodus, men hvert tegn som skrives + erstatter et eksisterende tegn. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.4: KOPIERE OG LIME INN TEKST + + + ** Bruk y-operatoren for å kopiere tekst og p for å lime den inn ** + + 1. Gå til linjen merket ---> nedenfor og plasser markøren etter «a)». + + 2. Gå inn i visuell modus med v og flytt markøren til like før «første». + + 3. Trykk y for å kopiere (engelsk: «yank») den uthevede teksten. + + 4. Flytt markøren til slutten av den neste linjen: j$ + + 5. Trykk p for å lime inn teksten. Trykk deretter: a andre . + + 6. Bruk visuell modus for å velge « valget.», kopier det med y , gå til + slutten av den neste linjen med j$ og legg inn teksten der med p . + +---> a) Dette er det første valget. + b) + +Merk: Du kan også bruke y som en operator; yw kopierer ett ord. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.6.5: SETT VALG + + + ** Sett et valg så søk eller erstatning ignorerer store/små bokstaver. ** + + 1. Let etter «ignore» ved å skrive: /ignore + Repeter flere ganger ved å trykke n . + + 2. Sett «ic»-valget (Ignore Case) ved å skrive: :set ic + + 3. Søk etter «ignore» igjen ved å trykke n . + Legg merke til at både «Ignore» og «IGNORE» blir funnet. + + 4. Sett «hlsearch»- og «incsearch»-valgene: :set hls is + + 5. Skriv søkekommandoen igjen og se hva som skjer: /ignore + + 6. For å slå av ignorering av store/små bokstaver, skriv: :set noic + +Merk: For å fjerne uthevingen av treff, skriv: :nohlsearch +Merk: Hvis du vil ignorere store/små bokstaver for kun en søkekommando, bruk + \c i uttrykket: /ignore\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.6 + + 1. Trykk o for å legge til en linje NEDENFOR markøren og gå inn i + innsettingsmodus. + Trykk O for å åpne en linje OVER markøren. + + 2. Skriv a for å sette inn tekst ETTER markøren. + Skriv A for å sette inn tekst etter slutten av linjen. + + 3. Kommandoen e går til slutten av et ord. + + 4. Operatoren y («yank») kopierer tekst, p («paste») limer den inn. + + 5. Ved å trykke R går du inn i erstatningsmodus helt til trykkes. + + 6. Skriv «:set xxx» for å sette valget «xxx». Noen valg er: + «ic» «ignorecase» ignorer store/små bokstaver under søk + «is» «incsearch» vis delvise treff for en søketekst + «hls» «hlsearch» uthev alle søketreff + + 7. Legg til «no» foran valget for å slå det av: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.1: FÅ HJELP + + + ** Bruk det innebygde hjelpesystemet. ** + + Vim har et omfattende innebygget hjelpesystem. For å starte det, prøv en av + disse måtene: + - Trykk Hjelp-tasten (hvis du har en) + - Trykk F1-tasten (hvis du har en) + - Skriv :help + + Les teksten i hjelpevinduet for å finne ut hvordan hjelpen virker. + Skriv CTRL-W CTRL-W for å hoppe fra et vindu til et annet + Skriv :q for å lukke hjelpevinduet. + + Du kan få hjelp for omtrent alle temaer om Vim ved å skrive et parameter til + «:help»-kommandoen. Prøv disse (ikke glem å trykke ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.2: LAG ET OPPSTARTSSKRIPT + + + ** Slå på funksjoner i Vim ** + + Vim har mange flere funksjoner enn Vi, men flesteparten av dem er slått av + som standard. For å begynne å bruke flere funksjoner må du lage en + «vimrc»-fil. + + 1. Start redigeringen av «vimrc»-filen. Dette avhenger av systemet ditt: + :e ~/.vimrc for Unix + :e ~/_vimrc for MS Windows + + 2. Les inn eksempelfilen for «vimrc»: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Lagre filen med: + :w + + Neste gang du starter Vim vil den bruke syntaks-utheving. Du kan legge til + alle dine foretrukne oppsett i denne «vimrc»-filen. + For mer informasjon, skriv :help vimrc-intro +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leksjon 1.7.3: FULLFØRING + + + ** Kommandolinjefullføring med CTRL-D og ** + + 1. Vær sikker på at Vim ikke er i Vi-kompatibel modus: :set nocp + + 2. Se hvilke filer som er i katalogen: :!ls eller :!dir + + 3. Skriv starten på en kommando: :e + + 4. Trykk CTRL-D og Vim vil vise en liste over kommandoer som starter med + «e». + + 5. Trykk og Vim vil fullføre kommandonavnet til «:edit». + + 6. Legg til et mellomrom og starten på et eksisterende filnavn: :edit FIL + + 7. Trykk . Vim vil fullføre navnet (hvis det er unikt). + +MERK: Fullføring fungerer for mange kommandoer. Prøv ved å trykke CTRL-D og + . Det er spesielt nyttig for bruk sammen med :help . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + OPPSUMMERING AV LEKSJON 1.7 + + + 1. Skriv :help eller trykk eller for å åpne et hjelpevindu. + + 2. Skriv :help kommando for å få hjelp om kommando . + + 3. Trykk CTRL-W CTRL-W for å hoppe til et annet vindu. + + 4. Trykk :q for å lukke hjelpevinduet. + + 5. Opprett et vimrc-oppstartsskript for å lagre favorittvalgene dine. + + 6. Når du skriver en «:»-kommando, trykk CTRL-D for å se mulige + fullføringer. Trykk for å bruke en fullføring. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Her slutter innføringen i Vim. Den var ment som en rask oversikt over + editoren, akkurat nok til å la deg sette i gang med enkel bruk. Den er på + langt nær komplett, da Vim har mange flere kommandoer. Les bruksanvisningen + ved å skrive :help user-manual . + + For videre lesing og studier, kan denne boken anbefales: + «Vim - Vi Improved» av Steve Oualline + Utgiver: New Riders + Den første boken som er fullt og helt dedisert til Vim. Spesielt nyttig for + nybegynnere. Inneholder mange eksempler og illustrasjoner. + Se https://iccf-holland.org/click5.html + + Denne boken er eldre og handler mer om Vi enn Vim, men anbefales også: + «Learning the Vi Editor» av Linda Lamb + Utgiver: O'Reilly & Associates Inc. + Det er en god bok for å få vite omtrent hva som helst om Vi. + Den sjette utgaven inneholder også informasjon om Vim. + + Denne innføringen er skrevet av Michael C. Pierce og Robert K. Ware, + Colorado School of Mines med idéer av Charles Smith, Colorado State + University. E-mail: bware@mines.colorado.edu . + + Modifisert for Vim av Bram Moolenaar. + Oversatt av Øyvind A. Holm. E-mail: vimtutor _AT_ sunbase.org + Id: tutor.no 406 2007-03-18 22:48:36Z sunny + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +vim: set ts=8 : diff --git a/git/usr/share/vim/vim92/tutor/tutor1.pl b/git/usr/share/vim/vim92/tutor/tutor1.pl new file mode 100644 index 0000000000000000000000000000000000000000..cd3d5bd354119836457aef6961dd4bf40dbaab2c --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.pl @@ -0,0 +1,995 @@ +=============================================================================== += W i t a j w t u t o r i a l u V I M - a - Wersja 1.7. = +=============================================================================== + + Vim to potężny edytor, który posiada wiele poleceń, zbyt dużo, by + wyjaśnić je wszystkie w tym tutorialu. Ten przewodnik ma nauczyć + Cię posługiwać się wystarczająco wieloma komendami, byś mógł łatwo + używać Vima jako edytora ogólnego przeznaczenia. + + Czas potrzebny na ukończenie tutoriala to 25 do 30 minut i zależy + od tego jak wiele czasu spędzisz na eksperymentowaniu. + + UWAGA: + Polecenia wykonywane w czasie lekcji zmodyfikują tekst. Zrób + wcześniej kopię tego pliku do ćwiczeń (jeśli zacząłeś komendą + "vimtutor", to już pracujesz na kopii). + + Pamiętaj, że przewodnik ten został zaprojektowany do nauki poprzez + ćwiczenia. Oznacza to, że musisz wykonywać polecenia, by nauczyć się ich + prawidłowo. Jeśli będziesz jedynie czytał tekst, szybko zapomnisz wiele + poleceń! + + Teraz upewnij się, że nie masz wciśniętego Caps Locka i wciskaj j + tak długo dopóki Lekcja 1.1.1. nie wypełni całkowicie ekranu. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.1.: PORUSZANIE SIĘ KURSOREM + + ** By wykonać ruch kursorem, wciśnij h, j, k, l jak pokazano. ** + + ^ + k Wskazówka: h jest po lewej + < h l > l jest po prawej + j j wygląda jak strzałka w dół + v + 1. Poruszaj kursorem dopóki nie będziesz pewien, że pamiętasz polecenia. + + 2. Trzymaj j tak długo aż będzie się powtarzał. + Teraz wiesz jak dojść do następnej lekcji. + + 3. Używając strzałki w dół przejdź do następnej lekcji. + +Uwaga: Jeśli nie jesteś pewien czegoś co wpisałeś, wciśnij , by wrócić do + trybu Normal. Wtedy powtórz polecenie. + +Uwaga: Klawisze kursora także powinny działać, ale używając hjkl będziesz + w stanie poruszać się o wiele szybciej, jak się tylko przyzwyczaisz. + Naprawdę! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.2.: WYCHODZENIE Z VIM-a + + !! UWAGA: Przed wykonaniem jakiegokolwiek polecenia przeczytaj całą lekcję !! + + 1. Wciśnij (aby upewnić się, że jesteś w trybie Normal). + 2. Wpisz: :q!. + To spowoduje wyjście z edytora PORZUCAJĄC wszelkie zmiany, jakie + zdążyłeś zrobić. Jeśli chcesz zapamiętać zmiany i wyjść, + wpisz: :wq + + 3. Kiedy widzisz znak zachęty powłoki wpisz komendę, żeby wrócić + do tutoriala. Czyli: vimtutor + + 4. Jeśli chcesz zapamiętać polecenia, wykonaj kroki 1. do 3., aby + wyjść i wrócić do edytora. + +UWAGA: :q! porzuca wszelkie zmiany jakie zrobiłeś. W następnych + lekcjach dowiesz się jak je zapamiętywać. + + 5. Przenieś kursor do lekcji 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.3.: EDYCJA TEKSTU - KASOWANIE + + ** Wciśnij x aby usunąć znak pod kursorem. ** + + 1. Przenieś kursor do linii poniżej oznaczonej --->. + + 2. By poprawić błędy, naprowadź kursor na znak do usunięcia. + + 3. Wciśnij x aby usunąć niechciany znak. + + 4. Powtarzaj kroki 2. do 4. dopóki zdanie nie jest poprawne. + +---> Kkrowa prrzeskoczyła prrzez ksiiężycc. + + 5. Teraz, kiedy zdanie jest poprawione, przejdź do Lekcji 1.1.4. + +UWAGA: Ucz się przez ćwiczenie, nie wkuwanie. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie) + + + ** Wciśnij i aby wstawić tekst. ** + + 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. + + 2. Aby poprawić pierwszy wiersz, ustaw kursor na pierwszym znaku PO tym, + gdzie tekst ma być wstawiony. + + 3. Wciśnij i a następnie wpisz konieczne poprawki. + + 4. Po poprawieniu błędu wciśnij , by wrócić do trybu Normal. + Powtarzaj kroki 2. do 4., aby poprawić całe zdanie. + +---> W tej brkje trochę . +---> W tej linii brakuje trochę tekstu. + + 5. Kiedy czujesz się swobodnie wstawiając tekst, przejdź do + podsumowania poniżej. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.5.: EDYCJA TEKSTU - APPENDING (dodawanie) + + + ** Wciśnij A by dodać tekst. ** + + 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. + Nie ma znaczenia, który to będzie znak. + + 2. Wciśnij A i wpisz odpowiednie dodatki. + + 3. Kiedy tekst został dodany, wciśnij i wróć do trybu Normalnego. + + 4. Przenieś kursor do drugiej linii oznaczonej ---> i powtórz kroki 2. i 3., + aby poprawić zdanie. + +---> Brakuje tu tro + Brakuje tu trochę tekstu. +---> Tu też trochę bra + Tu też trochę brakuje. + + 5. Kiedy już utrwaliłeś ćwiczenie, przejdź do lekcji 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.1.6.: EDYCJA PLIKU + + ** Użyj :wq aby zapisać plik i wyjść. ** + + !! UWAGA: zanim wykonasz jakiekolwiek polecenia przeczytaj całą lekcję !! + + 1. Zakończ tutorial tak jak w lekcji 1.1.2.: :q! + lub, jeśli masz dostęp do innego terminala, wykonaj kolejne kroki tam. + + 2. W powłoce wydaj polecenie: vim tutor + "vim" jest poleceniem uruchamiającym edytor Vim. 'tutor' to nazwa pliku, + jaki chcesz edytować. Użyj pliku, który może zostać zmieniony. + + 3. Dodaj i usuń tekst tak, jak się nauczyłeś w poprzednich lekcjach. + + 4. Zapisz plik ze zmianami i opuść Vima: :wq + + 5. Jeśli zakończyłeś vimtutor w kroku 1., uruchom go ponownie i przejdź + do podsumowania poniżej. + + 6. Po przeczytaniu wszystkich kroków i ich zrozumieniu: wykonaj je. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.1. PODSUMOWANIE + + 1. Poruszasz kursorem używając "strzałek" i klawiszy hjkl . + h (w lewo) j (w dół) k (do góry) l (w prawo) + + 2. By wejść do Vima, (z powłoki) wpisz: + vim NAZWA_PLIKU + + 3. By wyjść z Vima, wpisz: + :q! by usunąć wszystkie zmiany. + LUB: :wq by zmiany zachować. + + 4. By usunąć znak pod kursorem, wciśnij: x + + 5. By wstawić tekst przed kursorem lub dodać: + i wpisz tekst wstawi przed kursorem + A wpisz tekst doda na końcu linii + +UWAGA: Wciśnięcie przeniesie Cię z powrotem do trybu Normal + lub odwoła niechciane lub częściowo wprowadzone polecenia. + +Teraz możemy kontynuować i przejść do Lekcji 1.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.1.: POLECENIE DELETE (usuwanie) + + + ** Wpisz dw by usunąć wyraz. ** + + 1. Wciśnij , by upewnić się, że jesteś w trybie Normal. + + 2. Przenieś kursor do linii poniżej oznaczonej --->. + + 3. Przesuń kursor na początek wyrazu, który chcesz usunąć. + + 4. Wpisz dw by usunąć wyraz. + + UWAGA: Litera d pojawi się na dole ekranu. Vim czeka na wpisanie w . + Jeśli zobaczysz inny znak, oznacza to, że wpisałeś coś źle; wciśnij + i zacznij od początku. + +---> Jest tu parę papier wyrazów, które kamień nie należą do nożyce tego zdania. + + 5. Powtarzaj kroki 3. i 4. dopóki zdanie nie będzie poprawne, potem + przejdź do Lekcji 1.2.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.2.: WIĘCEJ POLECEŃ USUWAJĄCYCH + + + ** Wpisz d$ aby usunąć tekst do końca linii. ** + + 1. Wciśnij aby się upewnić, że jesteś w trybie Normal. + + 2. Przenieś kursor do linii poniżej oznaczonej --->. + + 3. Przenieś kursor do końca poprawnego zdania (PO pierwszej . ). + + 4. Wpisz d$ aby usunąć resztę linii. + +---> Ktoś wpisał koniec tego zdania dwukrotnie. zdania dwukrotnie. + + + 5. Przejdź do Lekcji 1.2.3., by zrozumieć co się stało. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.3.: O OPERATORACH I RUCHACH + + + Wiele poleceń zmieniających tekst jest złożonych z operatora i ruchu. + Format dla polecenia usuwającego z operatorem d jest następujący: + + d ruch + + gdzie: + d - operator usuwania. + ruch - na czym polecenie będzie wykonywane (lista poniżej). + + Krótka lista ruchów: + w - do początku następnego wyrazu WYŁĄCZAJĄC pierwszy znak. + e - do końca bieżącego wyrazu, WŁĄCZAJĄC ostatni znak. + $ - do końca linii, WŁĄCZAJĄC ostatni znak. + +W ten sposób wpisanie de usunie znaki od kursora do końca wyrazu. + +UWAGA: Wpisanie tylko ruchu w trybie Normal bez operatora przeniesie kursor + tak, jak to określono. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.4.: UŻYCIE MNOŻNIKA DLA RUCHU + + + ** Wpisanie liczby przed ruchem powtarza ruch odpowiednią ilość razy. ** + + 1. Przenieś kursor na początek linii poniżej zaznaczonej --->. + + 2. Wpisz 2w aby przenieść kursor o dwa wyrazy do przodu. + + 3. Wpisz 3e aby przenieść kursor do końca trzeciego wyrazu w przód. + + 4. Wpisz 0 (zero), aby przenieść kursor na początek linii. + + 5. Powtórz kroki 2. i 3. z innymi liczbami. + + + ---> To jest zwykły wiersz z wyrazami, po których możesz się poruszać. + + 6. Przejdź do lekcji 1.2.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.5.: UŻYCIE MNOŻNIKA, BY WIĘCEJ USUNĄĆ + + + ** Wpisanie liczby z operatorem powtarza go odpowiednią ilość razy. ** + + W wyżej wspomnianej kombinacji operatora usuwania i ruchu podaj mnożnik + przed ruchem, by więcej usunąć: + d liczba ruch + + 1. Przenieś kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->. + + 2. Wpisz 2dw aby usunąć dwa wyrazy KAPITALIKAMI. + + 3. Powtarzaj kroki 1. i 2. z innymi mnożnikami, aby usunąć kolejne wyrazy + KAPITALIKAMI jednym poleceniem + +---> ta ASD WE linia QWE ASDF ZXCV FG wyrazów została ERT FGH CF oczyszczona. + +UWAGA: Mnożnik pomiędzy operatorem d i ruchem działa podobnie do ruchu bez + operatora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.6.: OPEROWANIE NA LINIACH + + + ** Wpisz dd aby usunąć całą linię. ** + + Z powodu częstości usuwania całych linii, projektanci Vi zdecydowali, że + będzie łatwiej wpisać dwa razy d aby usunąć linię. + + 1. Przenieś kursor do drugiego zdania z wierszyka poniżej. + 2. Wpisz dd aby usunąć wiersz. + 3. Teraz przenieś się do czwartego wiersza. + 4. Wpisz 2dd aby usunąć dwa wiersze. + +---> 1) Róże są czerwone, +---> 2) Błoto jest fajne, +---> 3) Fiołki są niebieskie, +---> 4) Mam samochód, +---> 5) Zegar podaje czas, +---> 6) Cukier jest słodki, +---> 7) I ty też. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.2.7.: POLECENIE UNDO (cofnij) + + + ** Wciśnij u aby cofnąć skutki ostatniego polecenia. + U zaś, by cofnąć skutki dla całej linii. ** + + 1. Przenieś kursor do zdania poniżej oznaczonego ---> i umieść go na + pierwszym błędzie. + 2. Wpisz x aby usunąć pierwszy niechciany znak. + 3. Teraz wciśnij u aby cofnąć skutki ostatniego polecenia. + 4. Tym razem popraw wszystkie błędy w linii używając polecenia x . + 5. Teraz wciśnij wielkie U aby przywrócić linię do oryginalnego stanu. + 6. Teraz wciśnij u kilka razy, by cofnąć U i poprzednie polecenia. + 7. Teraz wpisz CTRL-R (trzymaj równocześnie wciśnięte klawisze CTRL i R) + kilka razy, by cofnąć cofnięcia. + +---> Poopraw błędyyy w teej liniii i zaamiień je prrzez coofnij. + + 8. To są bardzo pożyteczne polecenia. + + Przejdź teraz do podsumowania Lekcji 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.2. PODSUMOWANIE + + + 1. By usunąć znaki od kursora do następnego wyrazu, wpisz: dw + 2. By usunąć znaki od kursora do końca linii, wpisz: d$ + 3. By usunąć całą linię: dd + 4. By powtórzyć ruch, poprzedź go liczbą: 2w + 5. Format polecenia zmiany to: + operator [liczba] ruch + gdzie: + operator - to, co trzeba zrobić (np. d dla usuwania) + [liczba] - opcjonalne, ile razy powtórzyć ruch + ruch - przenosi nad tekstem do operowania, takim jak w (wyraz), + $ (do końca linii) etc. + + 6. By przejść do początku linii, użyj zera: 0 + 7. By cofnąć poprzednie polecenie, wpisz: u (małe u) + By cofnąć wszystkie zmiany w linii, wpisz: U (wielkie U) + By cofnąć cofnięcie, wpisz: CTRL-R + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.3.1.: POLECENIE PUT (wstaw) + + + ** Wpisz p by wstawić ostatnie usunięcia za kursorem. ** + + 1. Przenieś kursor do pierwszej linii ---> poniżej. + + 2. Wpisz dd aby usunąć linię i przechować ją w rejestrze Vima. + + 3. Przenieś kursor do linii c), POWYŻEJ tej, gdzie usunięta linia powinna + się znajdować. + + 4. Wciśnij p by wstawić linię poniżej kursora. + + 5. Powtarzaj kroki 2. do 4. aż znajdą się w odpowiednim porządku. + +---> d) Jak dwa aniołki. +---> b) Na dole fiołki, +---> c) A my się kochamy, +---> a) Na górze róże, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.3.2.: POLECENIE REPLACE (zastąp) + + + ** Wpisz rx aby zastąpić znak pod kursorem na x . ** + + 1. Przenieś kursor do pierwszej linii poniżej oznaczonej ---> + + 2. Ustaw kursor na pierwszym błędzie. + + 3. Wpisz r a potem znak jaki powinien go zastąpić. + + 4. Powtarzaj kroki 2. i 3. dopóki pierwsza linia nie będzie taka, jak druga. + +---> Kjedy ten wiersz bił wstókiwany, ktoś wciznął perę złych klawirzy! +---> Kiedy ten wiersz był wstukiwany, ktoś wcisnął parę złych klawiszy! + + 5. Teraz czas na Lekcję 1.3.3. + + +UWAGA: Pamiętaj, by uczyć się ćwicząc, a nie pamięciowo. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.3.3.: OPERATOR CHANGE (zmień) + + ** By zmienić do końca wyrazu, wpisz ce . ** + + 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. + + 2. Umieść kursor na u w lunos. + + 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ). + + 4. Wciśnij i przejdź do następnej planowanej zmiany. + + 5. Powtarzaj kroki 3. i 4. dopóki pierwsze zdanie nie będzie takie same, + jak drugie. + +---> Ta lunos ma pire słów, które tżina zbnic użifajonc pcmazu zmień. +---> Ta linia ma parę słów, które trzeba zmienić używając polecenia zmień. + + Zauważ, że ce nie tylko zamienia wyraz, ale także zmienia tryb na + Insert (wprowadzanie). + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.3.4.: WIĘCEJ ZMIAN UŻYWAJĄC c + + + ** Polecenie change używa takich samych ruchów, jak delete. ** + + 1. Operator change działa tak samo, jak delete. Format wygląda tak: + + c [liczba] ruch + + 2. Ruchy są także takie same, np.: w (wyraz), $ (koniec linii) etc. + + 3. Przenieś się do pierwszej linii poniżej oznaczonej ---> + + 4. Ustaw kursor na pierwszym błędzie. + + 5. Wpisz c$ , popraw koniec wiersza i wciśnij . + +---> Koniec tego wiersza musi być poprawiony, aby wyglądał tak, jak drugi. +---> Koniec tego wiersza musi być poprawiony używając polecenia c$ . + +UWAGA: Możesz używać aby poprawiać błędy w czasie pisania. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.3. PODSUMOWANIE + + + 1. Aby wstawić tekst, który został wcześniej usunięty wciśnij p . To + polecenie wstawia skasowany tekst PO kursorze (jeśli cała linia + została usunięta, zostanie ona umieszczona w linii poniżej kursora). + + 2. By zamienić znak pod kursorem, wciśnij r a potem znak, który ma zastąpić + oryginalny. + + 3. Operator change pozwala Ci na zastąpienie od kursora do miejsca, gdzie + zabrałby Cię ruch. Np. wpisz ce aby zamienić tekst od kursora do końca + wyrazu, c$ aby zmienić tekst do końca linii. + + 4. Format do polecenia change (zmień): + + c [liczba] obiekt + + Teraz przejdź do następnej lekcji. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.4.1.: POŁOŻENIE KURSORA ORAZ STATUS PLIKU + + ** Naciśnij CTRL-G aby zobaczyć swoje położenie w pliku i status + pliku. Naciśnij G aby przejść do linii w pliku. ** + + UWAGA: Przeczytaj całą lekcję zanim wykonasz jakieś polecenia!!! + + 1. Przytrzymaj klawisz CTRL i wciśnij g . Używamy notacji CTRL-G. + Na dole strony pojawi się pasek statusu z nazwą pliku i pozycją w pliku. + Zapamiętaj numer linii dla potrzeb kroku 3. + +UWAGA: Możesz też zobaczyć pozycję kursora w prawym, dolnym rogu ekranu. + Dzieje się tak kiedy ustawiona jest opcja 'ruler' (więcej w lekcji 6.). + + 2. Wciśnij G aby przejść na koniec pliku. + Wciśnij gg aby przejść do początku pliku. + + 3. Wpisz numer linii, w której byłeś a potem G . To przeniesie Cię + z powrotem do linii, w której byłeś kiedy wcisnąłeś CTRL-G. + + 4. Jeśli czujesz się wystarczająco pewnie, wykonaj kroki 1-3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.4.2.: POLECENIE SZUKAJ + + + ** Wpisz / a następnie wyrażenie, aby je znaleźć. ** + + 1. W trybie Normal wpisz / . Zauważ, że znak ten oraz kursor pojawią + się na dole ekranu tak samo, jak polecenie : . + + 2. Teraz wpisz błond . To jest słowo, którego chcesz szukać. + + 3. By szukać tej samej frazy ponownie, po prostu wciśnij n . + Aby szukać tej frazy w przeciwnym, kierunku wciśnij N . + + 4. Jeśli chcesz szukać frazy do tyłu, użyj polecenia ? zamiast / . + + 5. Aby wrócić gdzie byłeś, wciśnij CTRL-O. Powtarzaj, by wrócić dalej. CTRL-I + idzie do przodu. + +Uwaga: 'błond' to nie jest metoda, by przeliterować błąd; 'błond' to błąd. +Uwaga: Kiedy szukanie osiągnie koniec pliku, będzie kontynuowane od początku + o ile opcja 'wrapscan' nie została przestawiona. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.4.3.: W POSZUKIWANIU PARUJĄCYCH NAWIASÓW + + + ** Wpisz % by znaleźć parujący ), ], lub } . ** + + 1. Umieść kursor na którymś z (, [, lub { w linii poniżej oznaczonej --->. + + 2. Teraz wpisz znak % . + + 3. Kursor powinien się znaleźć na parującym nawiasie. + + 4. Wciśnij % aby przenieść kursor z powrotem do parującego nawiasu. + + 5. Przenieś kursor do innego (,),[,],{ lub } i zobacz co robi % . + +---> To ( jest linia testowa z (, [, ] i {, } . )) + +Uwaga: Ta funkcja jest bardzo użyteczna w debuggowaniu programu + z niesparowanymi nawiasami! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.4.4.: POLECENIE SUBSTITUTE (zamiana) + + + ** Wpisz :s/stary/nowy/g aby zamienić 'stary' na 'nowy'. ** + + 1. Przenieś kursor do linii poniżej oznaczonej --->. + + 2. Wpisz :s/czaas/czas . Zauważ, że to polecenie zmienia + tylko pierwsze wystąpienie 'czaas' w linii. + + 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamianę (substytucję) + globalnie w całej linii. Zmienia wszystkie wystąpienia 'czaas' w linii. + +---> Najlepszy czaas na zobaczenie najładniejszych kwiatów to czaas wiosny. + + 4. Aby zmienić wszystkie wystąpienia łańcucha znaków pomiędzy dwoma liniami, + wpisz: :#,#s/stare/nowe/g gdzie #,# są numerami linii ograniczających + region, gdzie ma nastąpić zamiana. + wpisz :%s/stare/nowe/g by zmienić wszystkie wystąpienia w całym pliku. + wpisz :%s/stare/nowe/gc by zmienić wszystkie wystąpienia w całym + pliku, prosząc o potwierdzenie za każdym razem. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.4. PODSUMOWANIE + + 1. CTRL-G pokaże Twoją pozycję w pliku i status pliku. SHIFT-G przenosi + Cię do końca pliku. + G przenosi do końca pliku. + liczba G przenosi do linii [liczba]. + gg przenosi do pierwszej linii. + + 2. Wpisanie / a następnie łańcucha znaków szuka łańcucha DO PRZODU. + Wpisanie ? a następnie łańcucha znaków szuka łańcucha DO TYŁU. + Po wyszukiwaniu wciśnij n by znaleźć następne wystąpienie szukanej + frazy w tym samym kierunku lub N by szukać w kierunku przeciwnym. + CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych. + + 3. Wpisanie % gdy kursor znajduje się na (,),[,],{, lub } lokalizuje + parujący znak. + + 4. By zamienić pierwszy stary na nowy w linii, wpisz :s/stary/nowy + By zamienić wszystkie stary na nowy w linii, wpisz :s/stary/nowy/g + By zamienić frazy pomiędzy dwoma liniami # wpisz :#,#s/stary/nowy/g + By zamienić wszystkie wystąpienia w pliku, wpisz :%s/stary/nowy/g + By Vim prosił Cię o potwierdzenie, dodaj 'c' :%s/stary/nowy/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.5.1.: JAK WYKONAĆ POLECENIA ZEWNĘTRZNE? + + + ** Wpisz :! a następnie zewnętrzne polecenie, by je wykonać. ** + + 1. Wpisz znajome polecenie : by ustawić kursor na dole ekranu. To pozwala + na wprowadzenie komendy linii poleceń. + + 2. Teraz wstaw ! (wykrzyknik). To umożliwi Ci wykonanie dowolnego + zewnętrznego polecenia powłoki. + + 3. Jako przykład wpisz ls za ! a następnie wciśnij . To polecenie + pokaże spis plików w Twoim katalogu, tak jakbyś był przy znaku zachęty + powłoki. Możesz też użyć :!dir jeśli ls nie działa. + +Uwaga: W ten sposób można wykonać wszystkie polecenia powłoki. +Uwaga: Wszystkie polecenia : muszą być zakończone . + Od tego momentu nie zawsze będziemy o tym wspominać. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.5.2.: WIĘCEJ O ZAPISYWANIU PLIKÓW + + + ** By zachować zmiany w tekście, wpisz :w NAZWA_PLIKU . ** + + 1. Wpisz :!dir lub :!ls by zobaczyć spis plików w katalogu. + Już wiesz, że musisz po tym wcisnąć . + + 2. Wybierz nazwę pliku, jaka jeszcze nie istnieje, np. TEST. + + 3. Teraz wpisz: :w TEST (gdzie TEST jest nazwą pliku jaką wybrałeś.) + + 4. To polecenie zapamięta cały plik (Vim Tutor) pod nazwą TEST. + By to sprawdzić, wpisz :!dir lub :!ls żeby znowu zobaczyć listę plików. + +Uwaga: Zauważ, że gdybyś teraz wyszedł z Vima, a następnie wszedł ponownie + poleceniem vim TEST , plik byłby dokładną kopią tutoriala, kiedy go + zapisywałeś. + + 5. Teraz usuń plik wpisując (MS-DOS): :!del TEST + lub (Unix): :!rm TEST + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.5.3.: WYBRANIE TEKSTU DO ZAPISU + + + ** By zachować część pliku, wpisz v ruch :w NAZWA_PLIKU ** + + 1. Przenieś kursor do tego wiersza. + + 2. Wciśnij v i przenieś kursor do punktu 5. Zauważ, że tekst został + podświetlony. + + 3. Wciśnij znak : . Na dole ekranu pojawi się :'<,'> . + + 4. Wpisz w TEST , gdzie TEST to nazwa pliku, który jeszcze nie istnieje. + Upewnij się, że widzisz :'<,'>w TEST zanim wciśniesz Enter. + + 5. Vim zapisze wybrane linie do pliku TEST. Użyj :!dir lub :!ls , żeby to + zobaczyć. Jeszcze go nie usuwaj! Użyjemy go w następnej lekcji. + +UWAGA: Wciśnięcie v zaczyna tryb Wizualny. Możesz poruszać kursorem, by + zmienić rozmiary zaznaczenia. Możesz też użyć operatora, by zrobić coś + z tekstem. Na przykład d usuwa tekst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.5.4.: WSTAWIANIE I ŁĄCZENIE PLIKÓW + + + ** By wstawić zawartość pliku, wpisz :r NAZWA_PLIKU ** + + 1. Umieść kursor tuż powyżej tej linii. + +UWAGA: Po wykonaniu kroku 2. zobaczysz tekst z Lekcji 1.5.3. Potem przejdź + do DOŁU, by zobaczyć ponownie tę lekcję. + + 2. Teraz wczytaj plik TEST używając polecenia :r TEST , gdzie TEST + jest nazwą pliku. + Wczytany plik jest umieszczony poniżej linii z kursorem. + + 3. By sprawdzić czy plik został wczytany, cofnij kursor i zobacz, że + teraz są dwie kopie Lekcji 1.5.3., oryginał i kopia z pliku. + +UWAGA: Możesz też wczytać wyjście zewnętrznego polecenia. Na przykład + :r !ls wczytuje wyjście polecenia ls i umieszcza je pod poniżej + kursora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.5. PODSUMOWANIE + + + 1. :!polecenie wykonuje polecenie zewnętrzne. + + Użytecznymi przykładami są: + + :!dir - pokazuje spis plików w katalogu. + + :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU. + + 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazwą NAZWA_PLIKU. + + 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU. + + 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do + bieżącego pliku poniżej kursora. + + 5. :r !dir wczytuje wyjście polecenia dir i umieszcza je poniżej kursora. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.6.1.: POLECENIE OPEN (otwórz) + + + ** Wpisz o by otworzyć linię poniżej kursora i przenieść się do + trybu Insert (wprowadzanie). ** + + 1. Przenieś kursor do linii poniżej oznaczonej --->. + + 2. Wpisz o (małe), by otworzyć linię PONIŻEJ kursora i przenieść się + do trybu Insert (wprowadzanie). + + 3. Wpisz trochę tekstu i wciśnij by wyjść z trybu Insert (wprowadzanie). + +---> Po wciśnięciu o kursor znajdzie się w otwartej linii w trybie Insert. + + 4. By otworzyć linię POWYŻEJ kursora, wciśnij wielkie O zamiast małego + o . Wypróbuj to na linii poniżej. + +---> Otwórz linię powyżej wciskając SHIFT-O gdy kursor będzie na tej linii. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.6.2.: POLECENIE APPEND (dodaj) + + + ** Wpisz a by dodać tekst ZA kursorem. ** + + 1. Przenieś kursor do początku pierwszej linii poniżej oznaczonej ---> + + 2. Wciskaj e dopóki kursor nie będzie na końcu li . + + 3. Wpisz a (małe), aby dodać tekst ZA znakiem pod kursorem. + + 4. Dokończ wyraz tak, jak w linii poniżej. Wciśnij aby opuścić tryb + Insert. + + 5. Użyj e by przejść do kolejnego niedokończonego wyrazu i powtarzaj kroki + 3. i 4. + +---> Ta li poz Ci ćwi dodaw teks do koń lin +---> Ta linia pozwoli Ci ćwiczyć dodawanie tekstu do końca linii. + +Uwaga: a , i oraz A prowadzą do trybu Insert, jedyną różnicą jest miejsce, + gdzie nowe znaki będą dodawane. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.6.3.: INNA WERSJA REPLACE (zamiana) + + + ** Wpisz wielkie R by zamienić więcej niż jeden znak. ** + + 1. Przenieś kursor do pierwszej linii poniżej oznaczonej --->. Przenieś + kursor do pierwszego xxx . + + 2. Wciśnij R i wpisz numer poniżej w drugiej linii, tak, że zastąpi on + xxx. + + 3. Wciśnij by opuścić tryb Replace. Zauważ, że reszta linii pozostaje + niezmieniona. + + 5. Powtarzaj kroki by wymienić wszystkie xxx. + +---> Dodanie 123 do xxx daje xxx. +---> Dodanie 123 do 456 daje 579. + +UWAGA: Tryb Replace jest jak tryb Insert, ale każdy znak usuwa istniejący + znak. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.6.4.: KOPIOWANIE I WKLEJANIE TEKSTU + + + ** użyj operatora y aby skopiować tekst i p aby go wkleić ** + + 1. Przejdź do linii oznaczonej ---> i umieść kursor za "a)". + + 2. Wejdź w tryb Wizualny v i przenieś kursor na początek "pierwszy". + + 3. Wciśnij y aby kopiować (yankować) podświetlony tekst. + + 4. Przenieś kursor do końca następnej linii: j$ + + 5. Wciśnij p aby wkleić (wpakować) tekst. Dodaj: a drugi . + + 6. Użyj trybu Wizualnego, aby wybrać " element.", yankuj go y , przejdź do + końca następnej linii j$ i upakuj tam tekst z p . + +---> a) to jest pierwszy element. + b) +Uwaga: możesz użyć y jako operatora; yw kopiuje jeden wyraz. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.6.5.: USTAWIANIE OPCJI + + +** Ustawianie opcji tak, by szukaj lub substytucja ignorowały wielkość liter ** + + 1. Szukaj 'ignore' wpisując: /ignore + Powtórz szukanie kilka razy naciskając klawisz n . + + 2. Ustaw opcję 'ic' (Ignore case -- ignoruj wielkość liter) poprzez + wpisanie: :set ic + + 3. Teraz szukaj 'ignore' ponownie wciskając: n + Zauważ, że Ignore i IGNORE także są teraz znalezione. + + 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is + + 5. Teraz wprowadź polecenie szukaj ponownie i zobacz co się zdarzy: + /ignore + + 6. Aby wyłączyć ignorowanie wielkości liter: :set noic + +Uwaga: Aby usunąć podświetlanie dopasowań, wpisz: :nohlsearch +Uwaga: Aby ignorować wielkość liter dla jednego wyszukiwania: /ignore\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.6. PODSUMOWANIE + + + 1. Wpisanie o otwiera linię PONIŻEJ kursora. + Wpisanie O otwiera linię POWYŻEJ kursora. + + 2. Wpisanie a wstawia tekst ZA znakiem, na którym jest kursor. + Wpisanie A dodaje tekst na końcu linii. + + 3. Polecenie e przenosi do końca wyrazu. + 4. Operator y yankuje (kopiuje) tekst, p pakuje (wkleja) go. + 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dopóki + nie zostanie wciśnięty . + 6. Wpisanie ":set xxx" ustawia opcję "xxx". Niektóre opcje: + 'ic' 'ignorecase' ignoruj wielkość znaków + 'is' 'incsearch' pokaż częściowe dopasowania + 'hls' 'hlsearch' podświetl wszystkie dopasowania + Możesz użyć zarówno długiej, jak i krótkiej formy. + 7. Dodaj "no", aby wyłączyć opcję: :set noic + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.7.1.: JAK UZYSKAĆ POMOC? + + ** Użycie systemu pomocy on-line ** + + Vim posiada bardzo dobry system pomocy on-line. By zacząć, spróbuj jednej + z trzech możliwości: + - wciśnij klawisz (jeśli taki masz) + - wciśnij klawisz (jeśli taki masz) + - wpisz :help + + Przeczytaj tekst w oknie pomocy, aby dowiedzieć się jak działa pomoc. + wpisz CTRL-W CTRL-W aby przeskoczyć z jednego okna do innego + wpisz :q aby zamknąć okno pomocy. + + Możesz też znaleźć pomoc na każdy temat podając argument polecenia ":help". + Spróbuj tych (nie zapomnij wcisnąć ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCJA 1.7.2.: TWORZENIE SKRYPTU STARTOWEGO + + ** Włącz możliwości Vima ** + + Vim ma o wiele więcej możliwości niż Vi, ale większość z nich jest domyślnie + wyłączona. Jeśli chcesz włączyć te możliwości na starcie musisz utworzyć + plik "vimrc". + + 1. Początek edycji pliku "vimrc" zależy od Twojego systemu: + :edit ~/.vimrc dla Uniksa + :edit ~/_vimrc dla MS-Windows + 2. Teraz wczytaj przykładowy plik "vimrc": + :read $VIMRUNTIME/vimrc_example.vim + 3. Zapisz plik: + :w + + Następnym razem, gdy zaczniesz pracę w Vimie będzie on używać podświetlania + składni. Możesz dodać wszystkie swoje ulubione ustawienia do tego pliku + "vimrc". + Aby uzyskać więcej informacji, wpisz :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.7.3.: UZUPEŁNIANIE + + + ** Uzupełnianie linii poleceń z CTRL-D i ** + + 1. Upewnij się, że Vim nie jest w trybie kompatybilności: :set nocp + + 2. Zerknij, jakie pliki są w bieżącym katalogu: :!ls lub :!dir + + 3. Wpisz początek polecenia: :e + + 4. Wciśnij CTRL-D i Vim pokaże listę poleceń, jakie zaczynają się na "e". + + 5. Wciśnij i Vim uzupełni polecenie do ":edit". + + 6. Dodaj spację i zacznij wpisywać nazwę istniejącego pliku: :edit FIL + + 7. Wciśnij . Vim uzupełni nazwę (jeśli jest niepowtarzalna). + +UWAGA: Uzupełnianie działa dla wielu poleceń. Spróbuj wcisnąć CTRL-D i . + Użyteczne zwłaszcza przy :help . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcja 1.7. PODSUMOWANIE + + + 1. Wpisz :help albo wciśnij lub aby otworzyć okno pomocy. + + 2. Wpisz :help cmd aby uzyskać pomoc o cmd . + + 3. Wpisz CTRL-W CTRL-W aby przeskoczyć do innego okna. + + 4. Wpisz :q aby zamknąć okno pomocy. + + 5. Utwórz plik startowy vimrc aby zachować wybrane ustawienia. + + 6. Po poleceniu : , wciśnij CTRL-D aby zobaczyć możliwe uzupełnienia. + Wciśnij aby użyć jednego z nich. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Tutaj się kończy tutorial Vima. Został on pomyślany tak, aby dać krótki + przegląd jego możliwości, wystarczający byś mógł go używać. Jest on + daleki od kompletności, ponieważ Vim ma o wiele, wiele więcej poleceń. + + Dla dalszej nauki rekomendujemy książkę: + Vim - Vi Improved - autor Steve Oualline + Wydawca: New Riders + Pierwsza książka całkowicie poświęcona Vimowi. Użyteczna zwłaszcza dla + początkujących. Zawiera wiele przykładów i ilustracji. + Zobacz https://iccf-holland.org./click5.html + + Starsza pozycja i bardziej o Vi niż o Vimie, ale także warta + polecenia: + Learning the Vi Editor - autor Linda Lamb + Wydawca: O'Reilly & Associates Inc. + To dobra książka, by dowiedzieć się niemal wszystkiego, co chciałbyś zrobić + z Vi. Szósta edycja zawiera też informacje o Vimie. + + Po polsku wydano: + Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins + Wydawca: Helion 2001 (O'Reilly). + ISBN: 83-7197-472-8 + http://helion.pl/ksiazki/vilek.htm + Jest to książeczka zawierająca spis poleceń vi i jego najważniejszych + klonów (między innymi Vima). + + Edytor vi - autorzy Linda Lamb i Arnold Robbins + Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania + ISBN: 83-7197-539-2 + http://helion.pl/ksiazki/viedyt.htm + Rozszerzona wersja Learning the Vi Editor w polskim tłumaczeniu. + + Ten tutorial został napisany przez Michaela C. Pierce'a i Roberta K. Ware'a, + Colorado School of Mines korzystając z pomocy Charlesa Smitha, + Colorado State University. + E-mail: bware@mines.colorado.edu. + + Zmodyfikowane dla Vima przez Brama Moolenaara. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Przetłumaczone przez Mikołaja Machowskiego, + Sierpień 2001, + rev. Marzec 2002 + 2nd rev. Wrzesień 2004 + 3rd rev. Marzec 2006 + 4th rev. Grudzień 2008 + Wszelkie uwagi proszę kierować na: mikmach@wp.pl diff --git a/git/usr/share/vim/vim92/tutor/tutor1.ru b/git/usr/share/vim/vim92/tutor/tutor1.ru new file mode 100644 index 0000000000000000000000000000000000000000..9d4cab334660f83dc80877d914db7d5e5ee59aa4 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.ru @@ -0,0 +1,1019 @@ +=============================================================================== +версия 1.7 = ДОБРО ПОЖАЛОВАТЬ НА ЗАНЯТИЯ ПО РЕДАКТОРУ Vim = +=============================================================================== += ГЛАВА ПЕРВАЯ = +=============================================================================== + + Программа Vim -- это очень мощный текстовый редактор, имеющий множество + команд, и все их просто невозможно описать в рамках этого учебника. + Данный же учебник призван объяснить те команды, которые позволят вам с + лёгкостью использовать программу Vim в качестве редактора общего назначения. + На освоение материалов этого учебника потребуется около 30 минут, но это + зависит от того, сколько времени вы посвятите практическим занятиям. + + Внимание! Выполняя задания уроков, вы будете изменять текст в этом файле, + поэтому прежде чем продолжить, создайте копию файла. Тогда можно будет + практиковаться столько, сколько это потребуется. Если вы воспользовались + командой "vimtutor" для открытия этого учебника, значит, копия уже создана. + + Важно помнить, что этот учебник предназначен для практического обучения. + Это означает, что вы должны применять команды для того, чтобы как следует + их изучить. Если вы просто прочитаете этот текст, то не запомните команды! + Теперь, убедившись, что не включена клавиша , нажмите клавишу j + несколько раз, так, чтобы урок 1.1.1 полностью поместился на экране. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.1. ПЕРЕМЕЩЕНИЕ КАРЕТКИ + +** Чтобы перемещать каретку в указанных направлениях, нажмите клавиши h,j,k,l ** + ^ Подсказка. + k Клавиша h слева и удобна для перемещения влево. + < h l > Клавиша l справа и удобна для перемещения вправо. + j Клавиша j похожа на стрелку "вниз". + v + 1. Перемещайте каретку в разных направлениях, пока не ощутите уверенность. + + 2. Удерживайте нажатой клавишу "вниз" (j) для беспрерывного перемещения + каретки. Теперь вы знаете, как перейти к следующему уроку. + + 3. Используя клавишу "вниз", то есть j , перейдите к уроку 1.1.2. + +Совет. + Если вы не уверены в правильности набранного текста, нажмите клавишу , + чтобы переключить редактор в режим команд. После этого повторите набор. + +Примечание. + Клавиши управления курсором (стрелки) также должны работать. Но учтите, что + выполнять перемещение каретки клавишами h j k l намного быстрее, стоит + только немного потренироваться. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.2. ЗАВЕРШЕНИЕ РАБОТЫ ПРОГРАММЫ + + ВНИМАНИЕ! Перед выполнением описанных ниже действий, прочтите урок полностью! + + 1. Нажмите клавишу (чтобы быть уверенным, что программа находится в + режиме команд). + + 2. Наберите :q! + Это означает, что надо набрать три символа :q! и нажать клавишу <ВВОД> + Исполнение этой команды вызовет завершение работы редактора + БЕЗ СОХРАНЕНИЯ любых сделанных изменений. + + 3. В приглашении командной оболочки наберите команду, которой вы открывали + этот учебник. Это может быть vimtutor + + 4. Если уверены в том, что поняли смысл вышесказанного, выполните шаги + с 1 до 3, чтобы завершить работу и снова запустить редактор. + +Примечание. + По команде :q! будут сброшены любые сделанные изменения. Через + несколько уроков вы узнаете, как сохранять изменения в файл. + + 5. Переместите каретку вниз к уроку 1.1.3. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.3. РЕДАКТИРОВАНИЕ - УДАЛЕНИЕ ТЕКСТА + + ** Чтобы удалить символ под кареткой, нажмите клавишу x ** + + 1. Переместите каретку к строке помеченной --->. + + 2. Чтобы исправить ошибки, перемещайте каретку, пока она не окажется над + удаляемым символом. + + 3. Нажмите клавишу x для удаления требуемого символа. + + 4. Повторите шаги со 2 по 4, пока строка не будет исправлена. + + +---> От тттопота копытт пппыль ппо ппполю леттитт. + + 5. Теперь, когда строка исправлена, переходите к уроку 1.1.4. + +Примечание. + В ходе этих занятий не пытайтесь сразу всё запоминать, учитесь в процессе + работы. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.4. РЕДАКТИРОВАНИЕ - ВСТАВКА ТЕКСТА + + ** Чтобы вставить текст, нажмите клавишу i ** + + 1. Переместите каретку к первой строке помеченной --->. + + 2. Чтобы сделать первую строку идентичной второй, установите каретку на тот + символ, ПЕРЕД которым следует вставить текст. + + 3. Нажмите клавишу i и наберите текст, который требуется вставить. + + 4. После исправления каждого ошибочного слова, нажмите клавишу + для переключения в режим команд. + Повторите шаги со 2 по 4, пока предложение не будет исправлено полностью. + + +---> Часть текта в строке бесследно . +---> Часть текста в этой строке бесследно пропало. + + + 5. Когда освоите вставку текста, переходите к уроку 1.1.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.5. РЕДАКТИРОВАНИЕ - ДОБАВЛЕНИЕ ТЕКСТА + + ** Чтобы добавить текст, нажмите клавишу A ** + + 1. Переместите каретку к первой строке помеченной --->. + Сейчас неважно, на каком символе расположена каретка в этой строке. + + 2. Нажмите клавишу A и наберите текст, который требуется добавить. + + 3. После добавления текста нажмите клавишу для возврата в режим команд. + + 4. Переместите каретку на следующую строку, помеченную ---> + и повторите шаги со 2 по 3 для исправления этой строки. + +---> Часть текста в этой строке бессле + Часть текста в этой строке бесследно пропало. +---> Здесь также недостаёт час + Здесь также недостаёт части текста. + + 5. Когда освоите добавление текста, переходите к уроку 1.1.6. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.1.6. РЕДАКТИРОВАНИЕ И ЗАПИСЬ ФАЙЛА + + ** Чтобы сохранить файл и закрыть редактор, используйте команды :wq ** + + ВНИМАНИЕ! Перед выполнением описанных ниже действий, прочтите урок полностью! + + 1. Завершите работу редактора Vim, как указано в уроке 1.1.2 - :q! + Если есть доступ к другому терминалу, то там можете сделать следующее: + + 2. В приглашении командной оболочки введите команду vim tutor + где vim - команда для запуска редактора Vim, а tutor - наименование + файла для редактирования. Укажите такой файл, который можно изменять. + + 3. Вставляйте и удаляйте текст, как описано в предыдущих уроках. + + 4. Сохраните этот изменённый файл и завершите работу программы Vim, + набрав команду :wq + + 5. Если вы вышли из vimtutor на шаге 1, перезапустите vimtutor и переходите + далее к резюме. + + 6. После того как вы прочли и поняли вышесказанное, выполните описанные шаги. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.1 + + 1. Каретку можно перемещать либо клавишами со стрелками, либо клавишами hjkl. + h (влево) j (вниз) k (вверх) l (вправо) + + 2. Чтобы запустить редактор Vim из приглашения командной оболочки, наберите + vim ФАЙЛ + + 3. Чтобы завершить работу редактора Vim, выполните одно из следующих: + :q! по этой команде не будут сохранены изменения; + или + :wq по этой команде будут сохранены изменения. + + 4. Чтобы удалить символ под кареткой, нажмите клавишу x в режиме команд. + + 5. Чтобы вставить текст перед кареткой - i наберите вставляемый текст + Чтобы добавить текст в конце строки - A наберите добавляемый текст + +Примечание. + По нажатию клавиши будет выполнено переключение редактора в режим + команд с прерыванием обработки любой ранее набранной команды. + +Теперь переходите к уроку 1.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.1. КОМАНДЫ УДАЛЕНИЯ + + ** Чтобы удалить слово под кареткой, используйте команду dw ** + + 1. Переключите редактор в режим команд, нажав клавишу . + + 2. Переместите каретку к строке помеченной --->. + + 3. Установите каретку на начало слова, которое следует удалить. + + 4. Наберите dw для удаления этого слова. + +Примечание. + При наборе буквы d она отобразится справа в самой нижней строке, и + программа будет ожидать ввода следующей команды, в данном случае - w + Если что-то не получается, нажмите клавишу и начните сначала. + +---> Несколько слов рафинад в этом предложении автокран излишни. + + 5. Повторите шаги 3 и 4, пока не исправите все ошибки, и переходите к + уроку 1.2.2 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.2. ЕЩЁ ОДНА КОМАНДА УДАЛЕНИЯ + + + ** Чтобы удалить текст до конца строки, используйте команду d$ ** + + 1. Переключите редактор в режим команд, нажав клавишу . + + 2. Переместите каретку к строке помеченной --->. + + 3. Установите каретку в конце корректного предложения (ПОСЛЕ первой точки). + + 4. Наберите d$ для удаления остатка строки. + + +---> Кто-то набрал окончание этой строки дважды. окончание этой строки дважды. + + + 5. Чтобы лучше разобраться в том как это происходит, обратитесь к уроку 1.2.3. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.3. ОПЕРАТОРЫ И ОБЪЕКТЫ + + Многие команды, изменяющие текст, являются составными и формируются из + оператора и объекта, к которому применяется этот оператор. + Так, например, формат команды удаления с оператором d следующий: + + d объект + где + d - оператор удаления; + объект - область текста (указаны ниже), к которой будет применён оператор. + + Краткий перечень объектов: + w - от позиции каретки до конца слова, включая последующий пробел; + e - от позиции каретки до конца слова, исключая последующий пробел; + $ - от позиции каретки до конца строки, включая последний символ. + + Таким образом, ввод команды de вызовет удаление текста от позиции каретки + до конца слова. + +Примечание. + Если в режиме команд, без ввода оператор, нажать клавишу с символом, + с которым ассоциирован объект, то каретка будет перемещена так, как + указано в перечне объектов. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.4. ПРИМЕНЕНИЕ СЧЁТЧИКА СОВМЕСТНО С ОБЪЕКТАМИ + + ** Чтобы перемещение каретка выполнялось необходимое количество раз, + укажите перед объектом требуемое число ** + + + 1. Установите каретку на начало строки помеченной --->. + + 2. Наберите 2w для перемещения каретки вперёд к началу второго слова. + + 3. Наберите 3e для перемещения каретки вперёд к концу третьего слова. + + 4. Наберите 0 (ноль) для перемещения каретки к началу строки. + + 5. Повторите шаги 2 и 3 с различными значениями чисел. + + +---> Обычная строка из слов, чтобы вы на ней потренировались перемещать каретку. + + + 6. Когда освоите это, переходите к уроку 1.2.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.5. ПРИМЕНЕНИЕ СЧЁТЧИКА ДЛЯ МНОЖЕСТВЕННОГО УДАЛЕНИЯ + + ** Чтобы применить оператор несколько раз, укажите число требуемых повторов ** + + Используя приведённые ранее составные команды удаления и перемещения, укажите + перед объектом число повторов выполнения операции удаления. + + d число объект + + 1. Установите каретку на первом слове из прописных букв в строке со ---> + + 2. Наберите d2w для удаления двух идущих друг за другом слов из прописных + букв. + + 3. Повторите шаги 1 и 2 с указанием других числовых значений, чтобы удалить + группы слов из прописных букв одной командой. + + +---> эта АБВ ГД строка ЕЖЗИ КЛ МНО очищена от П РС ТУФ лишних слов. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.6. ОПЕРАЦИИ СО СТРОКАМИ + + ** Чтобы удалить строку целиком, используйте команду dd ** + + Так как часто требуется выполнять удаление всей строки целиком, создатели + редактора решили облегчить этот процесс, и предложили для этого просто + дважды нажать на клавишу с буквой d. + + 1. Переместите каретку к строке номер два, помеченной --->. + 2. Наберите dd для удаления строки. + 3. Теперь переместите каретку к строке номер четыре, помеченной --->. + 4. Наберите 2dd для удаления двух строк подряд. + +---> 1) Летом я хожу на стадион, +---> 2) О, как внезапно кончился диван! +---> 3) Я болею за "Зенит", "Зенит" - чемпион! +---> 4) Печально я гляжу на наше поколенье! +---> 5) Его грядущее - иль пусто, иль темно... +---> 6) Я сижу на скамейке в ложе "Б" +---> 7) И играю на большой жестяной трубе. + +Дублирование оператора для обработки целой строки применяется и с другими + операторами, о которых говорится далее. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.7. КОМАНДА ОТМЕНЫ + + ** Чтобы отменить результат действия предыдущей команды, нажмите клавишу u + Чтобы отменить правки для всей строки, нажмите клавишу U ** + + 1. Установите каретку на первой ошибке, в строке помеченной ---> + 2. Нажмите клавишу x для удаления первого ошибочного символа. + 3. Теперь нажмите клавишу u для отмены последней выполненной команды. + 4. Исправьте все ошибки в строке, используя команду x . + 5. Теперь нажмите клавишу U , чтобы вернуть всю строку в исходное состояние. + 6. Нажмите клавишу u несколько раз для отмены команды U + и предыдущих команд. + 7. Теперь нажмите клавиши CTRL-R (т. е. удерживая нажатой клавишу CTRL, + нажмите клавишу r) несколько раз для возврата действий команд. + + +---> Испрравьте оошибки в этойй строке и вернитте их сс помощьью "отмены". + + + 8. Это очень нужные и полезные команды. + +Далее переходите к резюме урока 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.2 + + 1. Чтобы удалить слово, установите каретку в его начало и наберите dw + 2. Чтобы удалить текст от позиции каретки до конца слова, наберите de + 3. Чтобы удалить текст от позиции каретки до конца строки, наберите d$ + 4. Чтобы удалить всю строку целиком, наберите dd + + 5. Чтобы переместить каретку за один раз на некоторое количество объектов, + укажите их число, например, 2w + 6. Формат команд изменения: + оператор [число] объект + где + оператор - необходимые действия, например, d для удаления; + [число] - количество подпадающих под действие оператора объектов, + если не указано, то один объект; + объект - на что воздействует оператор, например, w (слово), + $ (всё, что есть до конца строки) и т. п. + + 7. Чтобы переместить каретку к началу строки, нажмите клавишу 0 (ноль) + + 8. Чтобы отменить предшествующие действия, нажмите u (строчная буква u) + Чтобы отменить все изменения в строке, нажмите U (прописная буква U) + Чтобы вернуть отменённые изменения, нажмите CTRL-R +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.1. КОМАНДА ВСТАВКИ + + ** Чтобы вставить последний удалённый текст, наберите команду p ** + + 1. Переместите каретку к первой строке помеченной --->. + + 2. Наберите dd , чтобы удалить строку, при этом она будет автоматически + помещена в специальный регистр редактора Vim. + + 3. Установите каретку на строку ВЫШЕ той, в которой следует вставить + удалённую строку. + + 4. Убедитесь, что программа в режиме команд и нажмите клавишу p для вставки + строки ниже позиции каретки. + + 5. Повторите шаги со 2 по 4, пока не расставите все строки в нужном порядке. + +---> г) И лучше выдумать не мог. +---> б) Когда не в шутку занемог, +---> в) Он уважать себя заставил +---> а) Мой дядя самых честных правил + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.2. КОМАНДА ЗАМЕНЫ + + ** Чтобы заменить символ под кареткой, наберите r и заменяющий символ ** + + 1. Переместите каретку к первой строке помеченной --->. + + 2. Установите каретку так, чтобы она находилась над первым ошибочным символом. + + 3. Нажмите клавишу r и затем наберите символ, исправляющий ошибку. + + 4. Повторите шаги 2 и 3, пока первая строка не будет соответствовать второй. + + +---> В момегт набтра этой чтроки кое0кто с трудом попвдал по клваишам! +---> В момент набора этой строки кое-кто с трудом попадал по клавишам! + + + 5. Теперь переходите к уроку 1.3.3. + +Примечание. + Помните, что вы должны учиться в процессе работы, а не просто зубрить. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.3. ОПЕРАТОР ИЗМЕНЕНИЯ + + ** Чтобы изменить окончание слова, наберите команду ce ** + + 1. Переместите каретку к первой строке помеченной --->. + + 2. Установите каретку над буквой o в слове "сола". + + 3. Наберите команду ce и исправьте слово (в данном случае, наберите "лов"). + + 4. Нажмите клавишу и переместите каретку к следующей ошибке (к первому + символу, начиная с которого надо изменить окончание слова). + + 5. Повторите шаги 3 и 4 пока первая строка не будет соответствовать второй. + +---> Несколько сола в эьгц строке тпгшцбь редалзкуюиесвх. +---> Несколько слов в этой строке требуют редактирования. + +Примечание. + Обратите внимание, что по команде ce не только удаляется часть слова, + но и происходит переключение редактора в режим вставки. + По команде cc будет выполнятся то же самое, но для целой строки. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.3.4. ЕЩЁ НЕСКОЛЬКО СПОСОБОВ РАБОТЫ С ОПЕРАТОРОМ ИЗМЕНЕНИЯ c + +** К оператору изменения применимы те же объекты, что и к оператору удаления ** + + 1. Оператор изменения работает аналогично оператору удаления. Формат команды: + + c [число] объект + + 2. Объекты - это то же самое, что и ранее: w (слово), $ (конец строки) и т. п. + + 3. Переместите каретку к первой строке помеченной --->. + + 4. Установите каретку на первой ошибке. + + 5. Наберите c$ и отредактируйте первую строку так, чтобы она совпадала со + второй, после чего нажмите клавишу . + +---> Окончание этой строки нужно сделать похожим как во второй строке. +---> Окончание этой строки нужно исправить командой c$ . + +Примечание. + Клавиша может использоваться для исправления при наборе текста. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.3 + + 1. Чтобы вставить текст, который был только что удалён, наберите команду p . + Текст будет вставлен ПОСЛЕ позиции каретки (если была удалена строка, + то она будет помещена в строке ниже строки с кареткой). + + 2. Чтобы заменить символ под кареткой, наберите команду r и затем + заменяющий символ. + + 3. Операторы изменения изменяют указанный объект текста от позиции каретки + до конечной точки перемещения. + Например, по команде ce можно изменить текст от позиции каретки до конца + слова, а по команде c$ - до конца строки. + + 4. Формат команд изменения: + + c [число] объект + + где c - оператор изменения; + [число] - количество изменяемых объектов (необязательная часть); + объект - объект текста, который будет изменён. + +Теперь переходите к следующему уроку. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.4.1. ИНФОРМАЦИЯ О ФАЙЛЕ И ПОЗИЦИЯ КАРЕТКИ + + ** Чтобы получить информацию о файле и позиции каретки, нажмите CTRL-g . + Чтобы переместить каретку к заданной строке в файле, нажмите SHIFT-G ** + + ВНИМАНИЕ! Прочитайте весь урок, прежде чем выполнять любые действия! + + 1. Удерживая клавишу CTRL , нажмите клавишу g . Внизу экрана появится + сообщение с наименованием файла и номером строки, в которой находится + каретка. Запомните этот номер строки, он потребуется на шаге 3. + + Примечание. + Позиция каретки может отображаться в правом нижнем углу окна программы, + если установлен параметр 'ruler' (см. :help 'ruler'). + + 2. Нажмите клавиши SHIFT-G для перемещения каретки на последнюю строку файла. + Теперь наберите gg для перемещения каретки на первую строку файла. + + 3. Наберите номер строки, которой был получен на шаге 1, и нажмите клавиши + SHIFT-G. Каретка будет перемещена в ту строку, где она находилась, + когда в первый раз были нажаты клавиши CTRL-g. + + 4. Если вы запомнили всё вышесказанное, выполните шаги с 1 по 3. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.2. КОМАНДЫ ПОИСКА + + ** Чтобы что-то найти, наберите команду / и затем введите искомую фразу ** + + 1. В режиме команд наберите символ / . Обратите внимание, что этот символ + будет отображаться внизу экрана. Так же, как и при наборе команды : + + 2. Теперь наберите ошшшибка . Это то слово, которое требуется найти. + + 3. Чтобы повторить поиск искомого слова, просто нажмите клавишу n . + Чтобы искать это слово в обратном направлении, нажмите клавиши SHIFT-N . + + 4. Если требуется сразу выполнить поиск в обратном направлении, используйте + команду ? вместо команды / . + + 5. Чтобы вернуться туда, откуда был начат поиск, нажмите несколько раз + клавиши CTRL-O . Для перехода вперёд, используйте команду CTRL-I . + +---> "ошшшибка" это не способ написания слова "ошибка"; ошшшибка это ошибка. + +Примечание. + Если будет достигнут конец файла, то поиск будет продолжен от начала файла. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.3. ПОИСК ПАРНЫХ СКОБОК + + ** Чтобы найти парную скобку для (, [ или {, наберите команду % ** + + 1. Поместите каретку на любой из скобок (, [ или { в строке помеченной --->. + + 2. Теперь нажмите на клавиатуре клавишу с символом % . + + 3. Каретка будет перемещена на парную скобку для той скобки, на которой + установлена каретка. + + 4. Наберите % для возврата каретки назад к первой парной скобке. + + +---> В этой ( строке есть такие (, такие [ ] и { такие } скобки. )) + + +Примечание. + Это очень удобно при отладке программ, когда в коде пропущены скобки! + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.4. СПОСОБ ЗАМЕНЫ СЛОВ + + ** Чтобы "что-то" заменить "чем-то", наберите команду :s/что/чем/g ** + + 1. Переместите каретку к строке помеченной --->. + + 2. Наберите :s/уводю/увожу . Обратите внимание на то, что по этой + команде будет замена только первого найденного вхождение в строке. + + 3. Теперь наберите :s/уводю/увожу/g , добавленный флаг 'g' означает + замена во всей строке. Будет выполнена замена всех найденных в строке + совпадений. + +---> Я уводю к отверженным селеньям, я уводю сквозь вековечный стон, я уводю + к забытым поколеньям. + + 4. Чтобы заменить все вхождения искомого слова в каком-то диапазоне строк, + наберите :#,#s/что/чем/g где #,# - номер начальной и конечной строки + диапазона, в котором будет выполнена замена. + Наберите :%s/что/чем/g чтобы заменить все вхождения во всём файле. + Наберите :%s/что/чем/gc чтобы выдавался запрос подтверждения + перед каждой заменой. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.4 + + 1. По приведённым ниже командам будет выполнено: + CTRL-g - вывод информации о файле и текущей позиции каретки в этом файле + SHIFT-G - переход на последнюю строку файла + номер и SHIFT-G - переход к строке с указанным номером + gg - переход на первую строку файла + 2. При вводе символа / с последующим набором слова, будет выполнен поиск + этого слова ВПЕРЁД по тексту. + При вводе символа ? с последующим набором слова, будет выполнен поиск + этого слова НАЗАД по тексту. + После показа первого совпадения, нажмите n для перехода к следующему + слову в том же направлении поиска или SHIFT-N для поиска в + противоположном направлении. + При нажатии клавиш CTRL-O будет возврат к предыдущему слову, а при + нажатии клавиш CTRL-I будет переход к ранее найденному слову. + 3. При нажатии % , когда каретка на одной из скобок ( ), [ ] или { }, + будет найдена её парная скобка. + 4. Чтобы заменить первое найденное слово в строке, наберите :s/что/чем + Чтобы заменить все найденные слова в строке, наберите :s/что/чем/g + Чтобы заменить в указанными интервале строк, наберите :#,#s/что/чем/g + Чтобы заменить все найденные слова в файле, наберите :%s/что/чем/g + Чтобы запрашивалось подтверждение, добавьте флаг 'c' :%s/что/чем/gc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.1. КАК ВЫЗВАТЬ ИЗ РЕДАКТОРА ВНЕШНЮЮ КОМАНДУ + +** Чтобы была выполнена команда командной оболочки, наберите в редакторе :! ** + + 1. Наберите уже знакомую команду : , чтобы установить каретку в командной + строке редактора и ввести необходимую команду. + + 2. Теперь наберите символ ! (восклицательный знак). По этой команде будет + вызвана указанная следующей внешняя команда командной оболочки. + + 3. Например, наберите ls сразу после ! и нажмите . Будет выведен + перечень файлов в текущем каталоге. То есть будет выполнено точно то же + самое, как если бы ввести команду ls в приглашении командной оболочки. + Если в системе не поддерживается команда ls, то наберите команду :!dir + +Примечание. + Таким способом можно выполнить любую внешнюю команду, в том числе и с + указанием необходимых аргументов этой команды. + +Важно. + После ввода команды, начинающейся с : , должна быть нажата клавиша + В дальнейшем это может не указываться отдельно, но подразумеваться. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.2. КАК ЗАПИСАТЬ ФАЙЛ + + ** Чтобы сохранить файл со всеми изменениями в тексте, наберите :w ФАЙЛ ** + + 1. Наберите :!dir или :!ls для получения перечня файлов в текущем + каталоге. Как вы помните, после набора команды нажмите клавишу + + 2. Придумайте название для файла, которое ещё не существует, например, TEST. + + 3. Теперь наберите :w TEST (здесь TEST - это придуманное название файла). + + 4. По этой команде будет полностью сохранён текущий файл ("tutor") под новым + название "TEST". Чтобы проверить это, снова наберите команду :!dir или + :!ls и просмотрите содержимое каталога. + +Примечание. + Если завершить работу редактора Vim и затем запустить его снова с файлом + TEST (т. е. набрать команду vim TEST ), этот файл будет точной копией + учебника в тот момент, когда он был сохранён. + + 5. Теперь удалите этот файл, набрав в редакторе команду :!del TEST + (для ОС Windows) или :!rm TEST (для UNIX-подобных ОС) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.3. ВЫБОРОЧНАЯ ЗАПИСЬ СТРОК + + ** Чтобы сохранить часть файла, нажмите клавишу v , выделите строки + и наберите команду :w ФАЙЛ ** + + 1. Переместите каретку на эту строку. + + 2. Нажмите клавишу v и переместите каретку ниже к строке с пятым пунктом. + Обратите внимание, что текст подсвечен. + + 3. Нажмите клавишу с символом : и внизу экрана появится :'<,'> . + + 4. Наберите команду w TEST (здесь TEST - файл, который ещё не существует). + В командной строке должно быть :'<,'>w TEST и нажмите клавишу + + 5. По этой команде выбранные строки будут записаны в файл TEST. Убедитесь в + наличии этого файла, воспользовавшись командой :!dir или :!ls . + Не удаляйте этот файл, он потребуется на следующем уроке. +Примечание. + По нажатию клавиши v выполняется переключение в визуальный режим. Чтобы + изменить размер выбранной области, нужно переместить каретку. + К выделенному фрагменту можно применить любой оператор, например, d + для его удаления. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.4. СЧИТЫВАНИЕ И ОБЪЕДИНЕНИЕ ФАЙЛОВ + + ** Чтобы вставить содержащийся в файле текст, наберите :r ФАЙЛ ** + + 1. Установите каретку над этой строкой. + +Внимание! + После выполнения описанного в пункте 2 вы увидите текст из урока 1.5.3. + Переместите каретку вниз по тексту до текущего урока. + + 2. Теперь считайте содержимое файла TEST, используя команду :r TEST , здесь + TEST - это наименование файла. + + 3. Для проверки, что содержимое файла было вставлено, переместите каретку + вверх по тексту и удостоверьтесь, что теперь здесь два урока 1.5.3. - + исходный и из файла TEST. + +Примечание. + Вставить можно и результат внешней команды. Например, по команде :r !ls + будет получен вывод команды ls и вставлен ниже позиции каретки. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.5 + + 1. По команде :!command будет исполнена указанная внешняя команда. + + Некоторые полезные примеры: + (Windows) (UNIX) + :!dir :!ls - вывести перечень файлов в каталоге; + :!del ФАЙЛ :!rm ФАЙЛ - удалить файл с указанным наименованием. + + 2. По команде :w ФАЙЛ , текущий редактируемый файл будет записан + с указанным наименованием. + + 3. Используя команды v , перемещение каретки и :w ФАЙЛ можно сохранить + визуально выделенные строки в файл с указанным наименованием. + + 4. По команде :r ФАЙЛ будет прочитан файл с указанным наименованием + и его содержимое помещено ниже позиции каретки. + + 5. По команде :r !dir будет получен вывод команды dir и помещён ниже + позиции каретки. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.6.1. КОМАНДЫ ДЛЯ СОЗДАНИЯ СТРОК + + ** Чтобы открыть новую строку с переключением в режим вставки, наберите o ** + + 1. Переместите каретку вниз, к первой строке помеченной --->. + + 2. Нажмите клавишу o для того, чтобы создать пустую строку НИЖЕ позиции + каретки и переключить редактор в режим вставки. + + 3. Теперь наберите какой-нибудь текст и нажмите клавишу для выхода из + режима вставки. + +---> После нажатия o ниже будет открыта новая пустая строка в режиме вставки. + + + 4. Для создания строки ВЫШЕ позиции каретки, наберите прописную букву O , + вместо строчной буквы o . Попробуйте это сделать для строки ниже. + + +---> Создайте новую строку над этой, поместив сюда каретку и нажав SHIFT-O. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.6.2. КОМАНДА ДЛЯ ДОБАВЛЕНИЯ ТЕКСТА + + ** Чтобы вставить текст после позиции каретки, наберите a ** + + 1. Переместите каретку вниз, в начало первой строки помеченной --->. + 2. Нажмите клавишу e , пока каретка не окажется на последнем символе слова + "стро". + + 3. Нажмите клавишу a для добавления текста ПОСЛЕ символа, находящегося под + кареткой. + + 4. Допишите слово как в строке ниже. Нажмите клавишу для выхода из + режима вставки. + + 5. Используйте клавишу e для перехода к следующему незавершённому слову + и повторите действия, описанные в пунктах 3 и 4. + +---> На этой стро вы можете попрактиков в добавле текста. +---> На этой строке вы можете попрактиковаться в добавлении текста. + +Примечание. + По команде a , i и A будет выполнено переключение в один и тот же режим + вставки, различие только в том, где вставляются символы. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.3. ЕЩЁ ОДИН СПОСОБ ЗАМЕНЫ + + ** Чтобы заменить несколько символов в строке, наберите R ** + + 1. Переместите каретку в начало первого слова xxx в строке помеченной ---> + + 2. Теперь нажмите SHIFT-R и введите число, указанное ниже во второй строке, + чтобы заменить символы xxx. + + 3. Нажмите клавишу для выхода из режима замены. Заметьте, что остаток + строки не был изменён. + + 4. Повторите эти шаги для замены оставшихся слов xxx. + +---> При сложении числа 123 с числом xxx сумма будет xxx. +---> При сложении числа 123 с числом 456 сумма будет 579. + + +Примечание. + Режим замены похож на режим вставки, но каждый введённый символ удаляет + существующий символ в строке. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.4. КОПИРОВАНИЕ И ВСТАВКА ТЕКСТА + +** Чтобы копировать, используйте оператор y , чтобы вставить - команду p ** + + 1. Установите каретку после символов "а)" в строке, помеченной --->. + 2. Переключите редактор в визуальный режим командой v и переместите каретку + вперёд до слова "первый". + 3. Нажмите клавишу y для копирования подсвеченного текста. + 4. Переместите каретку в конец следующей строки, набрав команду j$ . + 5. Нажмите клавишу p для вставки текста. Затем наберите команду a , + напечатайте слово "второй" и нажмите клавишу . + 6. Повторите шаги с 1 по 4, только установите каретку после слова "первый", + выделите, скопируйте и вставьте слово " пункт.". + +---> а) Это первый пункт. + б) + +Примечание. + Можно воспользоваться командой yw (оператор y и объект w) для + копирования одного слова. + По команде yy будет скопирована целая строка, а по команде p вставлена. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.5. УСТАНОВКА ПАРАМЕТРОВ + + ** Чтобы при поиске или замене не учитывался регистр символов, + задайте соответствующие настройки ** + + 1. Найдите слово "игнорировать", набрав команду /игнорировать . + Повторите поиск несколько раз, нажимая клавишу n . + + 2. Установите параметр 'ic' (игнорировать регистр), набрав команду :set ic + + 3. Ещё несколько раз повторите поиск слова "игнорировать", нажимая клавишу n + Заметьте, что теперь будут найдены слова "Игнорировать" и "ИГНОРИРОВАТЬ". + + 4. Установите параметры 'hlsearch' и 'incsearch' командой :set hls is + + 5. Повторно введите команду поиска и посмотрите, что получится /игнорировать + + 6. Для возврата учёта регистра при поиске, введите команду :set noic +Примечание. + Для отключения подсветки совпадений, наберите команду :nohlsearch +Примечание. + Если требуется не учитывать регистр символов только единоразово, используйте + ключ \c в команде поиска, например, /игнорировать\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.6 + + 1. По команде o будет создана пустая строка ниже строки с кареткой + и редактор будет переключен в режим вставки + По команде O будет создана пустая строка выше строки с кареткой + и редактор будет переключен в режим вставки + 2. По команде a выполняется вставки текста ПОСЛЕ позиции каретки. + По команде A выполняется вставки текста в конце строки. + + 3. По команде e выполняется установка каретки в конце слова. + 4. Оператор y используется для копирования текста, а по команде p + происходит вставка скопированного текста. + + 5. При нажатии клавиш SHIFT-R выполняется переключение в режим замены, + а отключение - нажатием клавиши . + + 6. Наберите :set xxx для установки параметра 'xxx'. + Вот некоторые параметры (можно указывать полные или сокращённые наименования): + 'ic' 'ignorecase' игнорирование регистра символов при поиске + 'is' 'incsearch' отображение частичных совпадений при поиске + 'hls' 'hlsearch' подсветка всех совпадений при поиске + + 7. Для сброса параметра, добавьте приставку "no" к его названию :set noic +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.7.1. ВСТРОЕННАЯ СПРАВОЧНАЯ СИСТЕМА + + ** Используйте встроенную справочную систему ** + + В редакторе Vim имеется мощная встроенная справочная система, и чтобы начать + ей пользоваться, воспользуйтесь одним из трёх вариантов: + - нажмите клавишу (если она есть на клавиатуре) + - нажмите клавишу (если она есть на клавиатуре) + - наберите :help + + Ознакомьтесь с информацией в окне справочной системы, чтобы получить + представление о том, как работать с документацией. + + Нажмите CTRL-w CTRL-w для перемещения каретки из одного окна в другое окно. + Наберите :q , чтобы закрыть окно справочной системы (когда каретка + находится в этом окне). + + Можно найти описание для любого понятия или команды, задав соответствующий + аргумент команде :help. Попробуйте следующее (не забудьте нажать ): + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.2. СОЗДАНИЕ СТАРТОВОГО КОМАНДНОГО ФАЙЛА + + ** Включим все возможности Vim ** + + Редактор Vim более функционален по сравнению с редактором Vi, но большинство + из этих возможностей отключены при запуске программы. Чтобы активировать + весь потенциала редактора, необходимо создать файл "vimrc". + + 1. Создайте новый файл "vimrc". Его расположение зависит от используемой + системы: + :e ~/.vimrc для UNIX + :e $VIM/_vimrc для MS Windows + + 2. Теперь добавьте в этот файл содержимое шаблонного файла "vimrc" + :r $VIMRUNTIME/vimrc_example.vim + + 3. Запишите созданный вами файл "vimrc" + :w + + Теперь при следующем запуске редактора Vim будет включена подсветка + синтаксиса. Все необходимые вам настройки могут быть добавлены в файл + "vimrc". + Чтобы получить подробную информацию, наберите :help vimrc-intro +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + УРОК 1.7.3. ПОДСТАНОВКА КОМАНД + +** Подстановка в командной строке выполняется нажатием клавиш CTRL-D и ** + + 1. Отключите совместимость с редактором Vi + :set nocp + 2. Посмотрите, какие файлы есть в каталоге, набрав команду + :!ls или :!dir + 3. Наберите начало команды для открытия файла на редактирование :e + 4. Нажмите клавиши CTRL-D , и будет показан перечень команд редактора Vim + начинающихся с буквы "e". + 5. Нажмите клавиши d , и будет подставлено полное название команды + "edit". + 6. Теперь напечатайте пробел и начало наименования существующего файла + :edit TE + 7. Нажмите клавишу и будет подставлено наименование файла, если оно + уникальное. + +Примечание. + Подстановка работает для множества команд. Просто попробуйте нажать клавиши + CTRL-D и для любой из команд редактора. Это особенно полезно + для команды :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + РЕЗЮМЕ УРОКА 1.7 + + + 1. Чтобы открыть окно встроенной справочной системы редактора, наберите + команду :help или нажмите клавишу , или клавишу . + + 2. Чтобы найти справочную информацию о какой-либо команде, + наберите :help cmd (вместо "cmd" укажите наименование команды). + + 3. Чтобы переместить каретку в другое окно, нажмите клавиши CTRL-w CTRL-w . + + 4. Чтобы закрыть окна справочной системы (если оно активно), наберите :q . + + 5. Чтобы при запуске всегда применялись необходимые вам настройки, создайте + стартовый командный файл vimrc. + + 6. При наборе команды, начинающейся с символа : , нажмите клавиши CTRL-D, + чтобы просмотреть возможные варианты подстановки. Нажмите клавишу + для подстановки необходимого варианта. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + На этом можно завершить первую часть занятий посвящённых редактору Vim. + Далее вы можете ознакомиться со второй частью занятий, в которой + рассматриваются такие понятия как регистры, закладки и работа с текстовыми + объектами. + + Целью данного курса было дать краткий обзор редактора Vim, достаточный для + того, чтобы не возникало сложностей при его использовании. Это далеко не + полный обзор, поскольку в редакторе Vim есть ещё много-много команд. + + Чтобы расширить свои познания, ознакомьтесь с руководством пользователя, + набрав команду :help user-manual. + + Для дальнейшего чтения рекомендуется книга + "Vim - Vi Improved", автор Steve Oualline, издательство New Riders. + Она полностью посвящена редактору Vim и будет особенно полезна новичкам. + В книге имеется множество примеров и иллюстраций. + См. https://iccf-holland.org/click5.html + + Ещё одна книга более почтенного возраста и посвящена больше редактору Vi, + чем редактору Vim, однако также рекомендуется к прочтению + "Learning the Vi Editor", автор Linda Lamb, + издательство O'Reilly & Associates Inc. + Это хорошая книга, чтобы узнать всё, что только можно сделать в редакторе Vi. + Шестое издание этой книги включает информацию о редакторе Vim. + + Эти уроки были составлены Michael C. Pierce и Robert K. Ware из Colorado + School of Mines с учётом идей, предложенных Charles Smith из Colorado State + University. E-mail: bware@mines.colorado.edu (теперь недоступен). + + Для использования в редакторе Vim уроки были доработаны Bram Moolenaar + + Андрей Киселёв, перевод на русский язык, 2002, + Сергей Алёшин, перевод на русский язык, 2014, + Restorer, редактура, 2022, +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.sk b/git/usr/share/vim/vim92/tutor/tutor1.sk new file mode 100644 index 0000000000000000000000000000000000000000..523a300a01b87d5e6a77218bc2edb95fe3e99cd3 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.sk @@ -0,0 +1,1008 @@ +=============================================================================== += V i t a j t e v o V I M T u t o r i a l i - Verzia 1.7 = +=============================================================================== + + Vim je veľmi výkonný editor, ktorý má príliž veľa príkazov na to aby + mohli byt všetky popísané vo výuke akou je táto. Táto výuka + popisuje dostatočné množstvo príkazov nato aby bolo možné používať + Vim ako viacúčelový editor. + + Približný čas potrebný na prebratie tejto výuky je 25-30 minút, + závisí na tom, koľko je stráveného času s preskúšavaním. + + UPOZORNENIE: + Príkazy v lekciách modifikujú text. Vytvor kópiu tohto súboru aby + sa mohlo precvičovať na ňom (pri štarte "vimtutor" je toto kópia). + + Je dôležité zapamätať si, že táto výuka je vytvorená pre výuku + používaním. To znamená, že je potrebné si príkazy vyskúšať, aby bolo + učenie správne. Ak len čitas text, príkazy zabudneš! + + Presvedč sa, že Caps-Lock NIEJE stlačený a stlačt klávesu + j niekoľko krát, aby sa kurzor posunul natoľko, že lekcia 1.1.1 + celkom zaplní obrazovku. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.1.1: POHYB KURZOROM + + + ** Pre pohyb kurzorum stlač klávesy h,j,k,l ako je znázornené. ** + ^ + k Funkcia: Klávesa h je naľavo a vykoná pohyb doľava. + < h l > Klávesa l je napravo a vykoná pohyb doprava. + j Klávesa j vyzerá ako šípka dole + v + 1. Pohybuj kurzorom po obrazovke, kým si na to nezvykneš. + + 2. Drž stlačenú klávesu pre pohyb dole (j), kým sa jej funkcia nezopakuje. +---> Teraz sa už vieš pohybovať na nasledujúcu lekciu. + + 3. Použitím klávesy pre pohyb dole prejdi na Lekciu 1.1.2. + +Poznámka: Ak si niesi istý tým čo si napísal, stlač + na prechod do normálneho módu. + +Poznámka: Kurzorové klávesy sú tiež funkčné. Ale používaním hjkl sa budeš + schopný pohybovať rýchlejšie, keď si zvykneš ich používať. Naozaj! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.1.2: ZATVÁRANIE VIMU + + + !! POZNÁMKA: Pred vykonaním týchto krokov si prečítaj celú túto lekciu !! + + 1. Stlač klávesu (aby si sa učite nachádzal v normálnom móde) + + 2. Napíš: :q! . + Tým ukončíš prácu s editorom BEZ uloženia zmien, ktoré si vykonal. + + 3. Keď sa dostaneš na príkazový riadok, napíš príkaz, ktorým sa dostaneš + speť do tejto výuky. To môže byť: vimtutor + + 4. Ak si si tieto kroky spoľahlivo zapamätal, vykonaj kroky 1 až 3, pre + ukončenie a znovu spustenie editora. + +POZNÁMKA: :q! neuloží zmeny, ktoré si vykonal. O niekoľko lekcií + sa naučíš ako uložiť zmeny do súboru + + 5. presuň kurzor dole na lekciu 1.1.3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.1.3: EDITÁCIA TEXTU - MAZANIE + + +** Stlačenie klávesy x v normálnom móde zmaže znak na mieste kurzora. ** + + 1. Presuň kurzor nižšie na riadok označený značkou --->. + + 2. Aby si mohol odstrániť chyby, pohybuj kurzorom kým neprejde na znak, + ktorý chceš zmazať. + + 3. Stlač klávesu x aby sa zmazal nechcený znak. + + 4. Zopakuj kroky 2 až 4 až kým veta nieje správna. + +---> Kraava skoočilla ccezz mesiiac. + + 5. Ak je veta správna, prejdi na lekciu 1.1.4. + +POZNÁMKA: Neskúšaj si zapamätať obsah tejto výuky, ale sa uč používaním. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.1.4: EDITÁCIA TEXTU - VKLADANIE + + + ** Stlačenie klávesy i umožňuje vkladanie textu. ** + + 1. Presuň kurzor nižšie na prvý riadok za značku --->. + + 2. Pre upravenie prvého riadku do rovnakého tvaru ako je druhý riadok, + presuň kurzor na prvý znak za misto, kde má byť text vložený. + + 3. Stlač klávesu i a napíš potrebný text. + + 4. Po opravení každej chyby, stlač pre návrat do normálneho módu. + Zopakuj kroky 2 až 4 kým nieje veta správna. + +---> Tu je text chýbajúci tejto. +---> Tu je nejaký text chýbajúci od tejto čiary. + + 5. Keď sa dostatočne naučíš vkladať text, prejdi na nasledujúce zhrnutie. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.1.5: EDITÁCIA TEXTU - PRIDÁVANIE + + + ** Stlačenie klávesy A umožňuje pridávať text. ** + + 1. Presuň kurozr nižšie na prvý riadok za značkou --->. + Nezáleží na tom, na ktorom znaku sa kurzor v tom riadku nachádza. + + 2. Stlač klávesu A a napíš potrebný text. + + 3. Po pridaní textu stlač klávesu pre návrat do Normálneho módu. + + 4. Presuň kurozr na druhý riadok označený ---> a zopakuj + kroky 2 a 3 kým nieje veta správna. + +---> Tu je nejaký text chýbajúci o + Tu je nejaký text chýbajúci od tiaľto. +---> Tu tiež chýba nej + Tu tiež chýba nejaký text. + + 5. Keď sa dostatočne naučíš pridávať text, prejdi na lekciu 1.1.6. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.1.6: EDITÁCIA SÚBORU + + + ** Napísaním :wq sa súbor uloží a zavrie ** + +!! POZNÁMKA: Pred vykonaním týchto krokov si prečítaj celú lekciu!! + +1. Opusti túto výuku, ako si to urobil v lekcii 1.1.2: :q! + +2. Do príkazového riadku napíš príkaz: vim tutor + 'vim' je príkaz, ktorý spustí editor Vim, 'tutor' je meno súboru, + ktorý chceš editovať. Použi taký súbor, ktorý môžeš meniť. + +3. Vlož a zmaž text tak, ako si sa naučil v predošlých lekciach. + +4. Ulož súbor so zmenami a opusti Vim príkazom: :wq + +5. Reštartuj vimtutor a presuň sa dole na nasledujúce zhrnutie. + +6. Urob tak po prečítaní predošlých krokov a porozumeniu im. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ZHRNUTIE LEKCIE 1.1 + + + 1. Kurzor sa pohybuje použitím kláves so šípkami alebo klávesmi hjkl. + h (do lava) j (dole) k (hore) l (doprava) + + 2. Pre spustenie Vimu (z príkazového riadku) napíš: vim FILENAME + + 3. Na ukončenie Vimu napíš: :q! pre zrušenie všetkých zmien + alebo napíš: :wq pre uloženie zmien. + + 4. Na zmazanie znaku na mieste kurzora napíš: x + + 5. Pre vloženie textu na mieste kurzora v normálnom móde napíš: + i napíš vkladaný text vkladanie pred kurzor + A napíš pridávaný text vkladanie za riadok + +POZNÁMKA: Stlačenie ťa premiestní do normálneho módu alebo zruší + nejaký nechcený a čiastočne dokončený príkaz. + +Teraz pokračuj lekciou 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.1: Mazacie príkazy + + + ** Napísanie príkazu dw zmaže znaky do konca slova. ** + +1. Stlač aby si bol bezpečne v normálnom móde. + +2. Presuň kurzor nižšie na riadok označený značkou --->. + +3. Presuň kurzor na začiatok slova, ktoré je potrebné zmazať. + +4. Napíš dw aby slovo zmizlo. + +POZNÁMKA: Písmeno d sa zobrazí na poslednom riadku obrazovky keď ho + napíšeš. Vim na teba počká, aby si mohol napísať + písmeno w. Ak vidíš niečo iné ako d , tak si napísal + nesprávny znak; stlač a začni znova. + +---> Tu je niekoľko slov zábava, ktoré nie patria list do tejto vety. + +5. Zopakuj kroky 3 až 4 kým veta nieje správna a prejdi na lekciu 1.2.2. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.2: VIAC MAZACÍCH PRÍKAZOV + + + ** Napísanie príkazu d$ zmaže znaky do konca riadku ** + +1. Stlač aby si bol bezpečne v normálnom móde. + +2. Presuň kurzor nižšie na riadok označený značkou --->. + +3. Presuň kurzor na koniec správnej vety (ZA prvú bodku). + +4. Napíš d$ aby sa zmazali znaky do konca riadku. + +---> Niekto napísal koniec tohto riadku dvakrát. koniec tohot riadku dvakrát. + + +5. Prejdi na lekciu 1.2.3 pre pochopenie toho čo sa stalo. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.3: OPERÁTORY A POHYBY + + Veľa príkazov, ktoré menia text sú odvodené od operátorov a pohybov. + Formát pre príkaz mazania klávesou d je nasledovný: + + d pohyb + + kde: + d - je mazací operátor + pohyb - je to čo operátor vykonáva (vypísané nižšie) + + Krátky list pohybov: + w - do začiatku ďalšieho slova, okrem jeho prvého písmena. + e - do konca terajšieho slova, vrátane posledného znaku. + $ - do konca riadku, vrátane posledného znaku + + Takže napísaním de sa zmaže všetko od kurzora do konca slova. + +POZNÁMKA: Stlačením iba pohybu v normálnom móde bez operátora + sa presunie kurzor tak ako je to špecivikované. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.4: Použitie viacnásobného pohybu + + + ** Napísaním čísla pred pohyb ho zopakuje zadný počet krát ** + + 1. Presuň kurozr nižšie na začiatok riadku označeného --->. + + 2. Napíš 2w a kurozr sa presunie o dve slová vpred. + + 3. Napíš 3e a kurozr sa presunie vpred na koniec tretieho slova. + + 4. Napíš 0 (nula) a kurozr sa presunie na začiatok riadku. + + 5. Zopakuj kroky 2 a 3 s rôznymi číslami. + +---> Toto je riadok so slovami po kotrých sa môžete pohybovať. + + 6. Prejdi na lekciu 1.2.5. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.5: POUŽITIE VIACNÁSOBNÉHO MAZANIA PRE HROMADNÉ MAZANIE + + + ** Napísanie čísla spolu s operátorom ho zopakuje zadaný počet krát ** + + V kombinácii operátorov mazania a pohybu spomínaného vyššie vlož počet + pred pohyb pre docielenie hromadného mazania: + d číslo pohyb + + 1. Presuň kurzor na prvé slovo písané VEĽKÝMI PÍSMENAMI + v riadku označenom --->. + + 2. Napíš 2dw a zmažeš dve slová písané VEĽKÝMI PÍSMENAMI + + 3. Zopakuj kroky 1 a 2 s použitím rôzneho čísla tak aby si zmazal slová + písané veľkými písmenami jedným príkazom. + +---> Tento ABC DE riadok FGHI JK LMN OP so slovamI je Q RS TUV vycisteny. + +POZNÁMKA: Číslo medzi operátorom d a pohybom funguje podobne ako pri + použití s pohybom bez operátora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.6: OPERÁCIE S RIADKAMI + + + ** Napísanie príkazu dd zmaže celý riadok. ** + +Vzhľadom na frekvenciu mazania celého riadku, sa autori Vimu rozhodli, +že bude jednoduchšie mazať celý riadok napísaním dvoch písmen d. + +1. Presuň kurzor na druhý riadok v texte na spodu. +2. Napíš dd aby si zmazal riadok. +3. Prejdi na štvrtý riadok. +4. Napíš 2dd aby si zmazal dva riadky. + + 1) Ruže sú červené, + 2) Blato je zábavné, + 3) Fialky sú modré, + 4) Mám auto, + 5) Hodinky ukazujú čas, + 6) Cukor je sladký, + 7) A to si ty. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.2.7: PRÍKAZ UNDO + + +** Stlač u pre vrátenie posledného príkazu, U pre úpravu celého riadku. ** + +1. Presuň kurzor nižšie na riadok označený značkou ---> a premiestni ho na + prvú chybu. +2. Napíš x pre zmazanie prvého nechceného riadku. +3. Teraz napíš u čím vrátíš späť posledne vykonaný príkaz. +4. Teraz oprav všetky chyby na riadku použitím príkazu x . +5. Teraz napíš veľké U čím vrátíš riadok do pôvodného stavu. +6. Teraz napíš u niekoľko krát, čím vrátíš späť príkaz U. +7. Teraz napíš CTRL-R (drž klávesu CTRL stlačenú kým stláčaš R) niekoľko + krát, čím vrátíš späť predtým vrátené príkazy (undo z undo). + +---> Opprav chybby nna toomto riadku a zmeeň ich pommocou undo. + + 8. Tieto príkazy sú často používané. Teraz prejdi na zhrnutie lekcie 1.2. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.2 ZHRNUTIE + + + 1. Pre zmazanie znakov od kurzora do konca slova napíš: dw + + 2. Pre zmazanie znakov od kurzora do konca riadku napíš: d$ + + 3. Pre zmazanie celého riadku napíš: dd + + 4. Pre zopakovanie pohybu, napíš pred neho číslo: 2w + + 5. Formát pre píkaz: + + operátor [číslo] pohyb + kde: + operátor - čo treba robiť, napríklad d pre zmazanie + [číslo] - je voliteľný počet pre opakovanie pohybu + pohyb - pohyb po texte vzhľadom na operátor, napríklad w (slovo), + $ (do konca riadku), atď. + + 6. Pre pohyb na začiatok riadku použi nulu: 0 + + 7. Pre vrátenie späť predošlej operácie napíš: u (malé u) + Pre vrátenie všetkých úprav na riadku napíš: U (veľké U) + Pre vrátenie vrátených úprav napíš: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.3.1: PRÍKAZ VLOŽIŤ + + + ** Napísanie príkazu p vloží psledný výmaz za kurzor. ** + + 1. Presuň kurzor nižšie na prvý riadok textu. + + 2. Napíš dd čím zmažeš riadok a uložíš ho do buffera editora Vim. + + 3. Presuň kurzor vyššie tam, kam zmazaný riadok patrí. + + 4. Ak napíšeš v normálnom móde p zmazaný riadk sa vloží. + + 5. Zopakuj kroky 2 až 4, kým riadky niesú v správnom poradí. + +---> d) Tiež sa dokážeš vzdelávať? +---> b) Fialky sú modré, +---> c) Inteligencia sa vzdeláva, +---> a) Ruže sú červené, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.3.2: PRÍKAZ NAHRADENIA + + + ** Napísaním rx sa nahradí znak na mieste kurzora znakom x . ** + + 1. Presuň kurzor nižšie na prví riadok textu označeného značkou --->. + + 2. Presuň kurzor na začiatok prvej chyby. + + 3. napíš r a potom znak, ktorý tam má byť. + + 4. Zopakuj kroky 2 a 3, kým prvý riadok nieje zhodný s druhým. + +---> Kaď bol tento riasok píaaný, niekro stlašil nesprábne klávesy! +---> Keď bol tento riadok písaný, niekto stlačil nesprávne klávesy! + + 5. Teraz prejdi na lekciu 1.3.2. + +POZNÁMKA: Pamätaj si, že naučiť sa môžeš len používanim, nie pamätaním. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.3.3: PRÍKAZ ÚPRAVY + + + ** Ak chceš zmeniť časť slova do konca slova, napíš ce . ** + + 1. Presuň kurzor nižšie na prvý riadok označený značkou --->. + + 2. Umiestni kurzor na písmeno o v slove rosfpl. + + 3. Napíš ce a oprav slovo (v tomto prípade napíš 'iadok'.) + + 4. Stlač a prejdi na ďalší znak, ktorý treba zmeniť. + + 5. Zopakuj kroky 3 a 4, kým prvá veta nieje rovnaká ako druhá. + +---> Tento rosfpl má niekoľko skic, ktoré je pirewvbí zmeniť piyťučán príkazu. +---> Tento riadok má niekoľko slov, ktoré je potrebné zmeniť použitím príkazu. + +Poznámka, že ce zmaže slovo a nastaví vkladací mód. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.3.4: VIAC ZMIEN POUŽITÍM c + + + ** Príkaz pre úpravy sa používa s rovnakými pohybmi ako pre mazanie ** + + 1. Príkaz pre úpravy pracuje rovnako ako pre mazanie. Formát je: + + c [číslo] pohyb + + 2. Pohyby sú rovnaké, ako napríklad w (slovo) a $ (koniec riadku). + + 3. Presuň kurzor nižšie na prvý riadok označený značkou --->. + + 4. Presuň kurzor na prvú chybu. + + 5. napíš c$ aby si mohol upraviť zvyšok riadku podľa druhého + a stlač . + +---> Koniec tohto riadku potrebuje pomoc, aby bol ako druhy. +---> Koniec tohto riadku potrebuje opraviť použitím príkazu c$ . + +POZNÁMKA: Môžeš použiť klávesu backspace na úpravu zmien počas písania. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.3 ZHRNUTIE + + + 1. Na vloženie textu, ktorý už bol zmazaný, napíš p . To vloží zmazaný + text ZA kurzor (ak bol riadok zmazaný prejde na riadok pod kurzorom). + + 2. Pre naradenie znaku na mieste kurzora, napíš r a potom znak, ktorý + nahradí pôvodný znak. + + 3. Príkaz na upravenie umožňuje zmeniť od kurzora až po miesto, ktoré + určuje pohyb. napr. Napíš ce čím zmníš text od pozície + kurzora do konca slova, c$ zmení text do konca riadku. + + 4. Formát pre nahradenie je: + + c [číslo] pohyb + + +Teraz prejdi na nalsedujúcu lekciu. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.4.1: POZÍCIA A STATUS SÚBORU + + + ** Stlač CTRL-g pre zobrazenie svojej pozície v súbore a statusu súboru. + Napíš G pre presun na riadok v súbore. ** + + Poznámka: Prečítaj si celú túto lekciu skôr ako začneš vykonávať kroky!! + + 1. Drž stlačenú klávesu Ctrl a stlač g . Toto nazývame CTRL-G. + Na spodu obrazovky sa zobrazí správa s názvom súboru a pozíciou + v súbore. Zapamätajsi si číslo riadku pre použitie v kroku 3. + + 2. Stlač G čím sa dostaneš na spodok súboru. + Napíš gg čím sa dostaneš na začiatok súboru. + + 3. Napíš číslo riadku na ktorom si sa nachádzal a stlač G. To ťa + vráti na riadok, na ktorom si prvý krát stlačil CTRL-G. + + 4. Ak sa cítíš schopný vykonať teto kroky, vykonaj kroky 1 až 3. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.4.2: PRÍKAZ VYHĽADÁVANIA + + + ** Napíš / nasledované reťazcom pre vyhľadanie príslušného reťazca. ** + + 1. Napíš znak / v normálnom móde. Poznámka, že tento znak sa spolu + s kurzorom zobrazí v dolnej časti obrazovky s : príkazom. + + 2. Teraz napíš 'errroor' . To je slovo, ktoré chceš vyhľadať. + + 3. Pre vyhľadanie ďalšieho výskytu rovnakého reťazca, stlač jednoducho n. + Pre vyhľadanie ďalšieho výskytu rovnakého reťazca opačným smerom, + N. + + 4. Ak chceš vyhľadať reťazec v spätnom smere, použí príkaz ? miesto + príkazu /. + + 5. Pre návrat na miesto z ktorého si prišiel stlač CTRL-O (drž stlačenú + klávesu Ctrl počas stlačenia klávesy o). Zopakuj pre ďalší návrat + späť. CTRL-I ide vpred. + +POZNÁMKA: "errroor" nieje spôsob hláskovania error; errroor je error. +POZNÁMKA: Keď vyhľadávanie dosiahne koniec tohto súboru, bude pokračovať na + začiatku, dokiaľ nieje resetované nastavenie 'wrapscan' . + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.4.3: VYHĽADÁVANIE ZODPOVEDAJÚCICH ZÁTAVORIEK + + + ** Napíš % pre vyhľadanie príslušného znaku ),], alebo } . ** + + 1. Premiestni kurzor na hocaký zo znakov (, [, alebo { v riadku nižšie + označeného značkou --->. + + 2. Teraz napíš znak % . + + 3. Kurzor sa premiestni na zodpovedajúcu zátvorku. + + 4. Napíš % pre presun kurzoru späť na otvárajúcu zátvorku. + + 5. Presuň kurzor na iný zo znakov (,),[,],{ alebo } a všimni si + čo % vykonáva. + +---> Toto ( je testovací riadok s ('s, ['s ] a {'s } v riadku. )) + +Poznámka: Toto je veľmi výhodné použíť pri ladení programu s chýbajúcimi + uzatvárajúcimi zátvorkami! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.4.4: PRÍKAZ NAHRADENIA + + + ** Napíš :s/starý/nový/g pre nahradenie slova 'starý' za slovo 'nový'. ** + + 1. Presuň kurzor nižšie na riadok označený značkou --->. + + 2. Napíš :s/thee/the . Poznamka, že tento príkaz zmení len prvý + výskyt "thee" v riadku. + + 3. Teraz napíš :s/thee/the/g čo znamená celkové nahradenie v riadku. + Toto nahradí všetky výskyty v riadku. + +---> Thee best time to see thee flowers in thee spring. + + 4. Pre zmenu všetkých výskytov daného reťazca medzi dvomi ridakami, + napíš :#,#s/starý/nový/g kde #,# sú čísla dvoch riadkov, v rozsahu + ktorých sa nahradenie vykoná. + napíš :%s/starý/nový/g pre zmenu všetkých výskytov v celom riadku + napíš :%s/starý/nový/gc nájde všetky výskyty v celom súbore, + s otázkou či nahradiť alebo nie + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.4 ZHRNUTIE + + + 1. CTRL-g vypíše tvoju pozíciu v súbore a status súboru. + G ťa premiestni na koniec riadku. + číslo G ťa premiestni na riadok s číslom. + gg ťa presunie na prvý riadok + + 2. Napísanie / nasledované reťazcom vyhľadá reťazec smerom DOPREDU. + Napísanie ? nasledované reťazcom vyhľada reťazec smerom DOZADU. + Napísanie n po vyhľadávaní, vyhľadá nasledujúci výskyt reťazca + v rovnakom smere, pričom N vyhľadá v opačnom smere. + CTRL-O ťa vráti späť na staršiu pozíciu, CTRL-I na novšiu pozíciu. + + 3. Napísanie % keď kurzor je na (,),[,],{, alebo } nájde zodpovdajúcu + párnu zátvorku. + + 4. Pre nahradenie nového za prvý starý v riadku napíš :s/starý/nový + Pre nahradenie nového za všetky staré v riadku napíš :s/starý/nový/g + Pre nahradenie reťazcov medzi dvoma riadkami 3 napíš :#,#/starý/nový/g + Pre nahradenie všetkých výskytov v súbore napíš :%s/starý/nový/g + Pre potvrdenie každého nahradenia pridaj 'c' :%s/starý/nový/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.5.1: AKO SPUSTIŤ VONKAJŠÍ PRÍKAZ + + + ** Napíš príkaz :! nasledovaný vonkajším príkazom pre spustenie príkazu ** + + 1. Napíš obvyklý píkaz : ktorý nastaví kurzor na spodok obrazovky. + To umožní napísať príkaz. + + 2. Teraz napíš ! (výkričník). To umožní spustiť hociaký vonkajší príkaz + z príkazového riadku. + + 3. Ako príklad napíš ls za ! a stlač . Tento príkaz + zobrazí obsah tvojho adresára rovnako ako na príkazovom riadku. + Alebo použi :!dir ak ls nefunguje. + +Poznámka: Takto je možné spustiť hociaký vonkajší príkaz s argumentami. +Poznámka: Všetky príkazy : musia byť dokončené stlačením + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.5.2: VIAC O UKLADANÍ SÚBOROV + + + ** Pre uloženie zmien v súbore, napíš :w FILENAME. ** + + 1. Napíš :!dir alebo :!ls pre výpis aktuálneho adresára. + Už vieš, že musíš za týmto stlačiť . + + 2. Vyber názov súboru, ktorý ešte neexistuje, ako napr. TEST. + + 3. Teraz napíš: :w TEST (kde TEST je názov vybratého súboru.) + + 4. To uloží celý súbor (Vim Tutor) pod názovm TEST. + Pre overenie napíš :!dir , čím zobrazíš obsah adresára. + +Poznámka: že ak ukončíš prácu s editorom Vim a znovu ho spustíš príkazom + vim TEST, súbor bude kópia výuky, keď si ho uložil. + + 5. Teraz odstráň súbor napísaním (MS-DOS): :!del TEST + alebo (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.5.3: VÝBER TEXTU PRE ULOŽENIE + + + ** Pre uloženie časti súboru, napíš v pohyb :w FILENAME ** + + 1. Presuň kurozr na tento riadok. + + 2. Stlač v a presuň kurozr na piatu položku dole. Poznámka, že + tento text je vyznačený (highlighted). + + 3. Stlač klávesu : . V spodnej časti okna sa objaví :'<,'>. + + 4. Napíš w TEST , kde TEST je meno súboru, ktorý zatial neexistuje. + Skontroluj, e vidíš :'<,'>w TEST predtým než stlačíš Enter. + + 5. Vim zapíše označené riadky do súboru TEST. Použi :!dir alebo :!ls + pre overenie. Zatial ho ešte nemaž! Použijeme ho v ďalšej lekcii. + +POZNÁMKA: Stlačením klávesy v sa spustí vizuálne označovanie. + Môžeš pohybovať kurzorom pre upresnenie vyznačeného textu. + Potom môžeš použiť operátor pre vykonanie nejakej akcie + s textom. Napríklad d zmaže vyznačený text. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.5.4: VÝBER A ZLUČOVANIE SÚBOROV + + + ** Pre vloženie obsahu súboru, napíš :r FILENAME ** + + 1. Premiestni kurzor nad tento riadok. + +POZNÁMKA: Po vykonaní kroku 2 uvidíš text z lekcie 1.5.3. Potom sa presuň + dole, aby si videl túto lekciu. + + 3. Teraz vlož súbor TEST použitím príkazu :r TEST kde TEST je názov + súboru. Súbor, ktorý si použil je umiestnený pod riadkom s kurzorom. + +POZNÁMKA: Môžeš tiež načítať výstup vonkajšieho príkazu. Napríklad :r !ls + načíta výstup príkazu ls a umiestni ho za pozíciu kurzora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.5 ZHRNUTIE + + + 1. :!príkaz spustí vonkajší príkaz. + + Niektoré využiteľné príklady sú: + (MS_DOS) (UNIX) + :!dir :!ls - zobrazí obsah adresára + :!del FILENAME :!rm FILENAME - odstráni súbor FILENAME + + 2. :w FILENAME uloží aktuálny súbor na disk pod menom FILENAME. + + 3. v pohyb :w FILENAME uloží vizuálne označené riadky do + súboru FILENAME. + + 4. :r FILENAME vyberie z disku súbor FILENAME a vloží ho do aktuálneho + súboru za pozíciou kurzora. + + 5. :r !dir načíta výstup z príkazu dir a vloží ho za pozíciu kurzora. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.6.1: PRÍKAZ OTVORIŤ + + +** Napíš o pre vloženie riadku pod kurzor a prepnutie do vkladacieho módu ** + + 1. Presuň kurzor nižšie na riadok označený značkou --->. + + 2. Napíš o (malé písmeno) pre vloženie čistého riadku pod kurzorm + a prepnutie do vkladacieho módu. + + 3. Teraz skopíruj riadok označený ---> a stlač pre ukončenie + vkladacieho módu. + +---> Po napísaní o sa kurzor premiestní na vložený riadok do vkladacieho + módu. + + 4. Pre otvorenie riadku nad kurzorom, jednotucho napíš veľké O , + namiesto malého o. Vyskúšaj si to na riadku dole. + +---> Vlož riadok nad týmto napísaním O, keď kurzor je na tomto riadku. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.6.2: PRÍKAZ PRIDAŤ + + + ** Napíš a pre vloženie textu ZA kurzor. ** + + 1. Presuň kurzor nižšie na koniec prvého riadku označeného značkou ---> + + 2. Stlač klávesu e dokiaľ kurozr nieje na konci riadku. + + 3. Napíš a (malé písmeno) pre pridanie textu ZA kurzorom. + + 4. Dokončí slovo tak ako je to v druhom riadku. Stlaš pre + opustenie vkladacieho módu. + + 5. Použi e na presun na ďalšie nedokončené slovo a zopakuj kroky 3 a 4. + +---> Tento ri ti dovoľuje nácv priávan testu na koniec riadku. +---> Tento riadok ti dovoľuje nácvik pridávania textu na koniec riadku. + +POZNÁMKA: a, i, A štartujú rovnaký vkladací mód, jediný rozidel je, kde + sa znaky vkladajú. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.6.3: INÝ SPOSOB NAHRADZOVANIA + + + ** Napíš veľké R pre nahradenie viac ako jedného znaku. ** + + 1. Presuň kurzor nižšie na prvý riadok označený značkou --->. Premiestni + kurzor na začiatok prvého výskytu xxx. + + 2. Teraz napíš R a napíš číslo uvedené v druhom riadku, takže + sa ním nahradí pôvodné xxx. + + 3. Stlač pre opustenie nahradzovacieho módu. Poznámka, že zvyšok + riadku zostane nezmenený. + + 4. Zopakuj tieto kroky pre nahradenie zvyšných xxx. + +---> Pridaním 123 ku xxx dostaneš xxx. +---> Pridaním 123 ku 456 dostaneš 579. + +POZNÁMKA: Nahradzovací mód je ako vkladací mód, ale každý napísaný znak + zmaže existujúci znak. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lekcia 1.6.4: Copy Paste textu + + ** použí operátor y pre copy textku a p pre jeho paste ** + + 1. Choď nižšie na riadok označený ---> a umiestni kurozr za "a)". + + 2. Naštartuj vizuálny mód použitím v a presuň kurozr pred "first". + + 3. Napíš y pre vystrihnutie (copy) označeného textu. + + 4. Presuň kurozr na koniec ďalšieho riadku: j$ + + 5. Napíš p pre vložnie (paste) textu. Potom napíš: a druha . + + 6. Použi vizuálny mód pre označenie "položka.", vystrihni to + použitím y, presuň sa na koniec nasledujúceho riadku použitím j$ + a vlož sem text použitím p. + +---> a) toto je prvá položka +---> b) + +POZNÁMKA: Môžeš použiť tiež y ako operátor; yw vystrihne jedno slovo. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcia 1.6.5: NASTAVENIE MOŽNOSTÍ + + +** Nastav možnosti, takže vyhľadávanie alebo nahradzovanie ignoruje + rozlišovanie ** + + + 1. Vyhľadaj reťazec 'ignore' napísaním: + /ignore + Zopakuj vyhľadávanie niekoľko krát stlačením klávesy n . + + 2. Nastav možnosť 'ic' (Ignore case) napísaním príkazu: + :set ic + + 3. Teraz vyhľadaj reťazec 'ingore' znova stlačením klávesy n + Poznámka, že teraz sú vyhľadané aj Ignore a IGNORE. + + 4. Nastav možnosťi 'hlsearch' a 'incsearch': + :set hls is + + 5. Teraz spusti vyhľadávací príkaz znovu, a pozri čo sa stalo: + /ignore + + 6. Pre opetovné zapnutie rozlyšovania veľkých a malých písmen + napíš: :set noic + +POZNÁMKA: Na odstránenie zvýraznenia výrazov napíš: :nohlsearch +POZNÁMKA: Ak chceš nerozlyšovať veľkosť písmen len pre jedno + použitie vyhľadávacieho príkazu, použi \c: /ignore\c + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.6 ZHRNUTIE + + + 1. Napíš o pre otvorenie riadku pod kurzorom a štart vkladacieho módu. + Napíš O pre otvorenie riadku nad kurzorom. + + 2. Napíš a pre vkladanie textu ZA kurzor. + Napíš A pre vkladanie textu za koncom riadku. + + 3. Príkaz e presunie kurozr na koniec slova + + 4. Operátor y vystrihne (skopíruje) text, p ho vloží. + + 5. Napísanie veľkého R prepne do nahradzovacieho módu, kým nieje + stlačené . + + 6. Napísanie ":set xxx" nastaví možnosť "xxx". Niektoré nastavenia sú: + 'ic' 'ignorecase' ignoruje veľké a malé písmená počas vyhľadávania. + 'is' 'incsearch' zobrazuje čiastočné reťazce vyhľadávaného reťazca. + 'hls' 'hlsearch' vyznačí všetky vyhľadávané reťazce. + Môžeš použiť hociktorý z dlhých a krátkych názvov možností. + + 7. Vlož "no" pred nastavenie pre jeho vypnutie: :set noic + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.7.1: ZÍSKANIE NÁPOVEDY + + + ** Používaj on-line systém nápovedy ** + + Vim má obsiahly on-line systém nápovedy. Pre odštartovanie, vyskúšaj jeden + z týchto troch: + - stlač klávesu (ak nejakú máš) + - stlač klávesu (ak nejakú máš) + - napíš :help + + Čítaj text v okne nápovedy pre získanie predstavy ako nápoveda funguje. + Napíš CTRL-W CTRL-W pre skok z jedného okna do druhého. + Napíš :q čím zatvoríš okno nápovedy. + + Môžeš nájsť help ku hociakej téme pridaním argumentu ku príkazu ":help". + Vyskúšaj tieto (nezabudni stlačiť ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + LEKCIA 1.7.2: VYTVORENIE ŠTARTOVACIEHO SKRIPTU + + ** Zapni funkcie editora Vim ** + + Vim má omnoho viac funkcii než Vi, ale večšina z nich je implicitne + vypnutá. Pre používanie viac Vim funkcii vytvor "vimrc" súbor. + + 1. Začni editovať "vimrc" súbor, to závisí na použitom systéme: + :e ~/.vimrc pre Unix + :e ~/_vimrc pre MS-Windows + + 2. Teraz si prečítaj text príkladu "vimrc" súboru: + + :r $VIMRUNTIME/vimrc_example.vim + + 3. Ulož súbor: + :w + + Pri nasledujúcom štarte editora Vim sa použije zvýrazňovanie syntaxe. + Do "vimrc" súboru môžeš pridať všetky svoje uprednostňované nastavenia. + Pre viac informácii napíš :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + LEKCIA 1.7.3: DOKONČENIE + + ** Dokonči príkaz na príkazovom riadku použitím CTRL-D a ** + + 1. Uisti sa, že Vim nieje v kompatibilnom móde: :set nocp + + 2. Pozri sa aké súbory sa nachádzajú v adresári: :!ls alebo :!dir + + 3. Napíš začiatok príkazu: :e + + 4. Stlač CTRL-D a Vim zobrazí zoznam príkazov začínajúcich "e". + + 5. Stlač a Vim dokončí meno príkazu na ":edit". + + 6. Teraz pridaj medzerník a začiatok mena existujúceho súboru: + :edit FIL + + 7. Stlač . Vim dokončí meno (ak je jedinečné). + +POZNÁMKA: Dokončovanie funguje pre veľa príkazov. Vyskúšaj stlačenie + CTRL-D a . Špeciálne je to užitočné pre príkaz :help. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + LEKCIA 1.7 ZHRNUTIE + + 1. Napíš :help alebo stlač alebo pre otvorenie okna nápovedy. + + 2. Napíš :help príkaz pre vyhľadanie nápovedy ku príkazu príkaz. + + 3. Napíš CTRL-W CTRL-W na preskočenie do iného okna. + + 4. Napíš :q pre zatvorenie okna nápovedy + + 5. Vytvor štartovací skript vimrc pre udržanie uprednostňovaných nastavení. + + 6. Počas písania príkazu : stlač CTRL-D pre zobrazenie dokončení. + Stlač pre použitie jedného z dokončení. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + + + Toto vymedzuje výuku Vimu. Toto je určené pre strucný prehľad o editore + Vim, úplne postačujúce pre ľahké a obstojné používanie tohto editora. + Táto výuka je ďaleko od kompletnosti, pretože Vim má omnoho viacej príkazov. + Ako ďalšie si prečítaj užívatľský manuál: ":help user-manual". + + Pre ďalšie čítanie a štúdium je odporúčaná kniha: + Vim - Vi Improved - od Steve Oualline + Vydavateľ: New Riders + Prvá kniha určená pre Vim. Špeciálne vhodná pre začiatočníkov. + Obsahuje množstvo príkladov a obrázkov. + Pozri na https://iccf-holland.org/click5.html + + Táto kniha je staršia a je viac o Vi ako o Vim, ale je tiež odporúčaná: + Learning the Vi Editor - od Linda Lamb + Vydavateľ: O'Reilly & Associates Inc. + Je to dobrá kniha pre získanie vedomostí o práci s editorom Vi. + Šieste vydanie obsahuje tiež informácie o editore Vim. + + Táto výuka bola napísaná autormi Michael C. Pierce a Robert K. Ware, + Colorado School of Mines s použitím myšlienok dodanými od Charles Smith, + Colorado State University. E-mail: bware@mines.colorado.edu. + + Modifikované pre Vim od Bram Moolenaar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Preklad do Slovenčiny: Ľuboš Čelko + e-mail: celbos@inmail.sk + Last Change: 2006 Apr 18 + encoding: iso8859-2 diff --git a/git/usr/share/vim/vim92/tutor/tutor1.sr b/git/usr/share/vim/vim92/tutor/tutor1.sr new file mode 100644 index 0000000000000000000000000000000000000000..b84e67847ec9e976a1a27bfdce767493a6f402b1 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.sr @@ -0,0 +1,971 @@ +=============================================================================== += D o b r o d o š l i u VIM p r i r u č n i k - Verzija 1.7 = +=============================================================================== + + Vim je moćan editor sa mnogo komandi, suviše da bismo ih ovde sve + opisali. Priručnik je zamišljen da opiše dovoljno komandi da biste + mogli lagodno da koristite Vim kao editor opšte namene. + + Približno vreme potrebno za uspešan završetak priručnika je između + 25 i 30 minuta, u zavisnosti od vremena potrošenog na vežbu. + + UPOZORENJE: + Komande u lekcijama će menjati tekst. Iskopirajte ovaj fajl i + vežbajte na kopiji (ako ste pokrenuli "vimtutor" ovo je već kopija). + + Važno je upamtiti da je ovaj priručnik zamišljen za aktivnu vežbu. + To znači da morate upotrebljavati komande o kojima čitate da biste + ih naučili. Ako samo čitate tekst, zaboravićete komande! + + Ako je Caps Lock uključen ISKLJUČITE ga. Pritisnite taster j dovoljno + puta da lekcija 1.1.1 cela stane na ekran. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.1: POMERANJE KURSORA + + + ** Za pomeranje kursora, pritiskajte tastere h,j,k,l kako je prikazano ** + ^ + k Savet: h je s leve strane i pomera kursor u levo. + < h l > l je s desne strane i pomera kursor u desno. + j j izgleda kao strelica naniže. + v + 1. Pomerajte kursor po ekranu dok se ne naviknete na komande. + + 2. Pritisnite taster (j) dok ne počne da se ponavlja. + Sada znate kako da dođete do naredne lekcije. + + 3. Koristeći taster j pređite na lekciju 1.1.2. + +NAPOMENA: Ako niste sigurni šta ste zapravo pritisnuli, pritisnite + za prelazak u Normal mod i pokušajte ponovo. + +NAPOMENA: Strelice takođe pomeraju kursor, ali korišćenje tastera hjkl je + znatno brže, kad se jednom naviknete na njih. Zaista! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.2: IZLAZAK IZ VIM-a + + + !! UPOZORENJE: Pre izvođenja bilo kog koraka, pročitajte celu lekciju!! + + 1. Pritisnite (editor je sada u Normal modu). + + 2. Otkucajte: :q! . + Ovime se izlazi iz editora, sa GUBITKOM svih izmena. + + 3. Kada se pojavi komandni prompt, unesite komandu koja je pokrenula + ovaj priručnik: vimtutor + + 4. Ako ste upamtili ove korake, izvršite ih redom od 1 do 3 da biste + izašli iz editora i ponovo ga pokrenuli. + +NAPOMENA: :q! poništava sve izmene koje ste napravili. + U narednim lekcijama naučićete kako da sačuvate izmene. + + 5. Pomerite kursor na lekciju 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.3: IZMENA TEKSTA - BRISANJE + + + ** Pritisnite x za brisanje znaka pod kursorom. ** + + 1. Pomerite kursor na red označen sa --->. + + 2. Da biste ispravili greške, pomerajte kursor dok se + ne nađe na slovu koje treba izbrisati. + + 3. Pritisnite taster x da izbrišete neželjeno slovo. + + 4. Ponavljajte korake od 2 do 4 dok ne ispravite sve greške. + +---> RRRibaa riibi grizzze rrreepp. + + 5. Kad ispravite red, pređite na lekciju 1.1.4. + +NAPOMENA: Dok koristite priručnik, nemojte učiti komande napamet, + već vežbajte njihovu primenu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.4: IZMENA TEKSTA - UBACIVANJE + + + ** Pritisnite i za ubacivanje teksta ispred kursora. ** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + + 2. Da biste tekst prvog reda izjednačili s tekstom drugog, namestite + kursor na prvi znak POSLE kog ćete ubaciti potreban tekst. + + 3. Pritisnite i pa unesite potrebne dopune. + + 4. Po ispravci svake greške pritisnite da se vratite u Normal mod. + Ponovite korake od 2 do 4 da biste ispravili celu rečenicu. + +---> Do teka neoje v red. +---> Deo teksta nedostaje iz ovog reda. + + 5. Pređite na sledeću lekciju. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.5: IZMENA TEKSTA - DODAVANJE + + + ** Pritisnite A za dodavanje teksta. ** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + Nije važno gde se nalazi kursor u tom redu. + + 2. Pritisnite A i unesite dodatni tekst. + + 3. Pošto ste dodali tekst, pritisnite za povratak u + Normal mod. + + 4. Pomerite kursor na drugi red označen sa ---> i ponavljajte + korake 2 i 3 dok ne ispravite tekst. + +---> Deo teksta nedostaje u + Deo teksta nedostaje u ovom redu. +---> Deo teksta nedostaje + Deo teksta nedostaje i ovde. + + 5. Pređite na lekciju 1.1.6. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.1.6: IZMENA FAJLA + + + ** Upotrebite :wq za snimanje teksta i izlazak iz editora. ** + + !! UPOZORENJE: Pre izvođenja bilo kog koraka, pročitajte celu lekciju!! + + 1. Izađite iz editora kao u lekciji 1.1.2: :q! + + 2. Na komandnom promptu unesite sledeću komandu: vim tutor + 'vim' je komanda za pokretanja Vim editora, 'tutor' je ime fajla koji + želite da menjate. Koristite fajl koji imate pravo da menjate. + + 3. Ubacujte i brišite tekst kao u prethodnim lekcijama. + + 4. Snimite izmenjeni tekst i izađite iz Vim-a: :wq + + 5. Ponovo pokrenite vimtutor i pročitajte rezime koji sledi. + + 6. Pošto pročitate korake iznad i u potpunosti ih razumete: + izvršite ih. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.1 + + + 1. Kursor se pomera strelicama ili pomoću tastera hjkl . + h (levo) j (dole) k (gore) l (desno) + + 2. Za pokretanje Vim-a iz shell-a: vim IME_FAJLA + + 3. Izlaz: :q! sve promene su izgubljene. + ILI: :wq promene su sačuvane. + + 4. Brisanje znaka na kome se nalazi kursor: x + + 5. Ubacivanja ili dodavanje teksta: + i unesite tekst unos ispred kursora + A unesite tekst dodavanje na kraju reda + +NAPOMENA: Pritiskom na prebacujete Vim u Normal mod i + prekidate neželjenu ili delimično izvršenu komandu. + +Nastavite sa lekcijom 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.1: NAREDBE BRISANJA + + + ** Otkucajte dw za brisanje reči. ** + + 1. Pritisnite da biste bili sigurni da ste u Normal modu. + + 2. Pomerite kursor na red označen sa --->. + + 3. Pomerite kursor na početak reči koju treba izbrisati. + + 4. Otkucajte dw da biste uklonili reč. + +NAPOMENA: Slovo d će se pojaviti na dnu ekrana kad ga otkucate. Vim čeka + da otkucate w . Ako je prikazano neko drugo slovo, pogrešili ste u + kucanju; pritisnite i pokušajte ponovo. (Ako se ne pojavi + ništa, možda je isključena opcija 'showcmd': vidi lekciju 1.6.5.) + +---> Neke reči smešno ne pripadaju na papir ovoj rečenici. + + 5. Ponavljajte korake 3 i 4 dok ne ispravite rečenicu, pa + pređite na lekciju 1.2.2. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.2: JOŠ BRISANJA + + + ** Otkucajte d$ za brisanje znakova do kraja reda. ** + + 1. Pritisnite da biste bili sigurni da ste u Normal modu. + + 2. Pomerite kursor na red označen sa --->. + + 3. Pomerite kursor do kraja ispravnog dela rečenice + (POSLE prve . ). + + 4. Otkucajte d$ za brisanje ostatka reda. + +---> Neko je uneo kraj ovog reda dvaput. kraj ovog reda dvaput. + + 5. Pređite na lekciju 1.2.3 za podrobnije objašnjenje. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.3: O OPERATORIMA I POKRETIMA + + + Mnoge komande za izmenu teksta sastoje se od operatora i pokreta. + Oblik komande brisanja sa d operatorom je sledeći: + + d pokret + + Pri čemu je: + d - operator brisanja. + pokret - ono na čemu će se operacija izvršavati (opisano u nastavku). + + Kratak spisak pokreta: + w - sve do početka sledeće reči, NE UKLJUČUJUĆI prvo slovo. + e - sve do kraja tekuće reči, UKLJUČUJUĆI poslednje slovo. + $ - sve do kraje reda, UKLJUČUJUĆI poslednje slovo. + + Kucanjem de brisaće se tekst od kursora do kraja reči. + +NAPOMENA: Pritiskom samo na taster pokreta dok ste u Normal modu, bez + operatora, kursor se pomera kao što je opisano. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.4: KORIŠĆENJE BROJANJA ZA POKRETE + + + ** Unošenjem nekog broja pre pokreta, pokret se izvršava taj broj puta. ** + + 1. Pomerite kursor na red označen sa --->. + + 2. Otkucajte 2w da pomerite kursor dve reči napred. + + 3. Otkucajte 3e da pomerite kursor na kraj treće reči napred. + + 4. Otkucajte 0 (nulu) da pomerite kursor na početak reda. + + 5. Ponovite korake 2 i 3 s nekim drugim brojevima. + +---> Rečenica sa rečima po kojoj možete pomerati kursor. + + 6. Pređite na lekciju 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.5: KORIŠĆENJE BROJANJA ZA VEĆE BRISANJE + + + ** Unošenje nekog broja s operatorom ponavlja operator taj broj puta. ** + + U kombinaciji operatora brisanja s pokretima spomenutim iznad + možete uneti broj pre pokreta da biste izbrisali više znakova: + + d broj pokret + + 1. Pomerite kursor na prvo slovo u reči s VELIKIM SLOVIMA u redu + označenom sa --->. + + 2. Otkucajte d2w da izbrišete dve reči sa VELIKIM SLOVIMA + + 3. Ponovite korake 1 i 2 sa različitim brojevima da izbrišete + uzastopne reči sa VELIKIM SLOVIMA korišćenjem samo jedne komande. + +---> ovaj ABCČĆ DĐE red FGHI JK LMN OP s rečima je RSŠ TUVZŽ ispravljen. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.6: OPERACIJE NAD REDOVIMA + + + ** Otkucajte dd za brisanje celog reda. ** + + Zbog učestalosti brisanja celih redova, autori Vi-ja odlučili su da + je lakše brisati redove ako se otkuca d dvaput. + + 1. Pomerite kursor na drugi red u donjoj strofi. + 2. Otkucajte dd da ga izbrišete. + 3. Pomerite kursor na četvrti red. + 4. Otkucajte 2dd da biste izbrisali dva reda. + +---> 1) Sedlo mi je od marame, +---> 2) blato na sve strane, +---> 3) uzda od kanapa, +---> 4) auto mi je ovde, +---> 5) satovi pokazuju vreme, +---> 6) a bič mi je od očina +---> 7) prebijena štapa. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.2.7: PONIŠTAVANJE PROMENA + + + ** Pritisnite u za poništavanje poslednje komande, U za ceo red. ** + + 1. Pomerite kursor na red označen sa ---> i postavite ga na mesto + prve greške. + 2. Otkucajte x da izbrišete prvi neželjeni znak. + 3. Otkucajte u da poništite poslednju izvršenu komandu. + 4. Sad ispravite sve greške u redu koristeći komandu x . + 5. Otkucajte veliko U da biste vratili sadržaj reda u prvobitno + stanje. + 6. Onda otkucajte u nekoliko puta da biste poništili U + i prethodne komande. + 7. Sad otkucajte CTRL-R (držeći CTRL dok pritiskate R) + nekoliko puta da biste vratili izmene (poništili poništavanja). + +---> Iiisspravite greške uu ovvom redu ii pooništiteee ih. + + 8. Ovo su veoma korisne komande. Pređite na rezime lekcije 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.2 + + + 1. Brisanje od kursora do sledeće reči: dw + 2. Brisanje od kursora do kraja reda: d$ + 3. Brisanje celog reda: dd + + 4. Za ponavljanje pokreta prethodno unesite broj: 2w + 5. Oblik komande za izmenu: + operator [broj] pokret + gde je: + operator - šta uraditi, recimo d za brisanje + [broj] - neobavezan broj ponavljanja pokreta + pokret - kretanje po tekstu na kome se radi, + kao što je: w (reč), $ (kraj reda), itd. + + 6. Pomeranje kursora na početak reda: 0 + + 7. Za poništavanje prethodnih izmena, pritisnite: u (malo u) + Za poništavanje svih promena u redu, pritisnite: U (veliko U) + Za vraćanja promena, otkucajte: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.1: KOMANDA POSTAVLJANJA + + + ** Otkucajte p da postavite prethodno izbrisan tekst iza kursora. ** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + + 2. Otkucajte dd da izbrišete red i smestite ga u Vim registar. + + 3. Pomerite kursor na red c), IZNAD mesta gde treba postaviti izbrisan red. + + 4. Otkucajte p da postavite red ispod kursora. + + 5. Ponavljajte korake 2 do 4 da biste postavili sve linije u pravilnom + redosledu. + +---> d) prebijena štapa. +---> b) uzda od kanapa, +---> c) a bič mi je od očina +---> a) Sedlo mi je od marame, + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.2: KOMANDA ZAMENE + + + ** Otkucajte rx da zamenite znak ispod kursora slovom x . ** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + + 2. Pomerite kursor tako da se nalazi na prvoj grešci. + + 3. Otkucajte r i onda znak koji treba da tu stoji. + + 4. Ponavljajte korake 2 i 3 sve dok prvi red ne bude + isti kao drugi. + +---> Kedi ju ovej red ugašen, nako je protresao pustašne testere! +---> Kada je ovaj red unošen, neko je pritiskao pogrešne tastere! + + 5. Pređite na lekciju 1.3.3. + +NAPOMENA: Setite se da treba da učite vežbanjem, ne pamćenjem. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.3: OPERATOR IZMENE + + + ** Za izmenu teksta do kraja reči, otkucajte ce .** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + + 2. Postavite kursor na a u rakdur. + + 3. Otkucajte ce i ispravite reč (u ovom slučaju otkucajte ed ). + + 4. Pritisnite i pomerite kursor na sledeći znak koji + treba ispraviti. + + 5. Ponavljajte korake 3 i 4 sve dok prva rečenica ne bude ista + kao druga. + +---> Ovaj rakdur ima nekoliko rejga koje treflja isprpikati operagrom izmene. +---> Ovaj red ima nekoliko reči koje treba ispraviti operatorom izmene. + +Uočite da ce briše reč i postavlja editor u Insert mod. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.3.4: DALJE IZMENE UPOTREBOM c + + + ** Komanda izmene se koristi sa istim pokretima kao i brisanje. ** + + 1. Operator izmene se koristi na isti način kao i operator brisanja: + + c [broj] pokret + + 2. Pokreti su isti, recimo: w (reč) i $ (kraj reda). + + 3. Pomerite kursor na prvi sledeći red označen sa --->. + + 4. Pomerite kursor na prvu grešku. + + 5. Otkucajte c$ i unesite ostatak reda tako da bude isti kao + drugi red, pa pritisnite . + +---> Kraj ovog reda treba izmeniti tako da izgleda kao red ispod. +---> Kraj ovog reda treba ispraviti korišćenjem c$ komande. + +NAPOMENA: Za ispravljanje grešaka možete koristiti Backspace . +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.3 + + + 1. Za postavljanje teksta koji ste upravo izbrisali, pritisnite p . Ovo + postavlja tekst IZA kursora (ako je bio izbrisan jedan ili više redova + sadržaj će doći na red ispod kursora). + + 2. Za zamenu znaka na kome se nalazi kursor, pritisnite r i onda + željeni znak. + + 3. Operator izmene dozvoljava promenu teksta od kursora do pozicije gde + se završava pokret. Primera radi, kucajte ce za izmenu od kursora do + kraja reči, ili c$ za izmenu od kursora do kraja reda. + + 4. Oblik operacije izmene je: + + c [broj] pokret + +Pređite na narednu lekciju. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.1: POZICIJA KURSORA I STATUS FAJLA + + ** Pritisnite CTRL-G za prikaz pozicije kursora u tekstu i status fajla. + Pritisnite G za pomeranje kursora na neki red u tekstu. ** + +NAPOMENA: Pročitajte celu lekciju pre izvođenja bilo kog koraka!! + + 1. Držite taster CTRL i pritisnite g . Ovo zovemo CTRL-G. + Editor će na dnu ekrana ispisati poruku sa imenom fajla i pozicijom + kursora u tekstu. Zapamtite broj reda za 3. korak. + +NAPOMENA: U donjem desnom uglu može se videti poziciju kursora ako je + uključena opcija 'ruler' (vidi :help ruler ili lekciju 1.6.5.) + + 2. Pritisnite G za pomeranje kursora na kraj teksta. + Pritisnite 1G ili gg za pomranje kursora na početak teksta. + + 3. Otkucajte broj reda na kome ste malopre bili i onda G . Kursor + će se vratiti na red na kome je bio kad ste otkucali CTRL-G. + + 4. Ako ste spremni, izvršite korake od 1 do 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.2: KOMANDE PRETRAŽIVANJA + + ** Otkucajte / i onda izraz koji želite da potražite. ** + + 1. U Normal modu otkucajte znak / . Primietite da se znak pojavio + zajedno sa kursorom na dnu ekrana kao i kod komande : . + + 2. Sada otkucajte 'grrreška' . (Bez razmaka i navodnika.) + To je reč koju tražite. + + 3. Za ponovno traženje istog izraza, otkucajte n . + Za traženje istog izraza u suprotnom smeru, otkucajte N . + + 4. Za traženje izraza unatrag, koristite ? umesto / . + + 5. Za povratak na prethodnu poziciju otkucajte CTRL-O (držite CTRL dok + pritiskate O ). Ponavljajte za ranije pozicije. CTRL-I ide napred. + +---> "grrreška" je pogrešno; umesto grrreška treba da stoji greška. + +NAPOMENA: Ako pretraga dođe do kraja teksta traženje će se nastaviti od + njegovog početka osim ako je opcija 'wrapscan' isključena. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.3: TRAŽENJE PARA ZAGRADE + + + ** Otkucajte % za nalaženje para ), ] ili } . ** + + 1. Postavite kursor na bilo koju od ( , [ ili { + otvorenih zagrada u redu označenom sa --->. + + 2. Otkucajte znak % . + + 3. Kursor će se pomeriti na odgovarajuću zatvorenu zagradu. + + 4. Otkucajte % da pomerite kursor na prvu zagradu u paru. + + 5. Pomerite kursor na neku od (,),[,],{ ili } i ponovite komandu % . + +---> Red ( testiranja običnih ( [ uglastih ] i { vitičastih } zagrada.)) + + +NAPOMENA: Vrlo korisno u ispravljanju koda sa rasparenim zagradama! + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.4.4: KOMANDA ZAMENE + + + ** Otkucajte :s/staro/novo/g da zamenite 'staro' za 'novo'. ** + + 1. Pomerite kursor na red označen sa --->. + + 2. Otkucajte :s/rdi/ri/ . Primetite da ova komanda zamenjuje + samo prvo "rdi" u redu. + + 3. Otkucajte :s/rdi/ri/g . Dodavanje opcije g znači da će se komanda + izvršiti u celom redu, zamenom svih pojava niza "rdi". + +---> rdiba rdibi grdize rep. + + 4. Za zamenu svih izraza između neka dva reda, + otkucajte :#,#s/staro/novo/g gde su #,# krajnji brojevi redova u opsegu + u kome će se obaviti zamena. + Otkucajte :%s/staro/novo/g za zamenu svih izraza u celom tekstu. + Otkucajte :%s/staro/novo/gc za nalaženje svih izraza u tekstu i + potvrdu zamene. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.4 + + + 1. CTRL-G prikazuje poziciju kursora u tekstu i status fajla. + G pomera kursor na kraj teksta. + broj G pomera kursor na navedeni red. + gg pomera kursor na prvi red teksta. + + 2. Kucanjem / sa izrazom taj izraz se traži UNAPRED. + Kucanjem ? sa izrazom taj izraz se traži UNAZAD. + Posle komande traženja koristite n za nalaženje izraza u istom + smeru, a N za nalaženje u suprotnom smeru. + CTRL-O vraća kursor na prethodnu poziciju, a CTRL-I na narednu. + + 3. Kucanjem % kad je kursor na zagradi on se pomera na njen par. + + 4. Za zamenu prvog izraza staro za izraz novo :s/staro/novo/ + Za zamenu svih izraza u celom redu :s/staro/novo/g + Za zamenu svih izraza u opsegu linija #,# :#,#s/staro/novo/g + Za zamenu u celom tekstu :%s/staro/novo/g + Za potvrdu svake zamene dodajte 'c' :%s/staro/novo/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.1: IZVRŠAVANJE SPOLJAŠNJIH KOMANDI + + + ** Otkucajte :! pa spoljašnju komandu koju želite da izvršite. ** + + 1. Otkucajte poznatu komandu : da biste namestili kursor na dno + ekrana. Time omogućavate unos komande u komandnoj liniji editora. + + 2. Otkucajte znak ! (uzvičnik). Ovime omogućavate + izvršavanje bilo koje spoljašnje komande. + + 3. Kao primer otkucajte ls posle ! i pritisnite . Ovo će + prikazati sadržaj direktorijuma, kao da ste na komandnom promptu. + Otkucajte :!dir ako :!ls ne radi. + +NAPOMENA: Na ovaj način moguće je izvršiti bilo koju spoljašnju komandu, + zajedno sa njenim argumentima. + +NAPOMENA: Sve : komande se izvršavaju pošto pritisnete . + U daljem tekstu to nećemo uvek napominjati. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.2: VIŠE O SNIMANJU FAJLOVA + + ** Za snimanje promena, otkucajte :w IME_FAJLA . ** + + 1. Otkucajte :!dir ili :!ls za pregled sadržaja direktorijuma. + Već znate da morate pritisnuti posle toga. + + 2. Izaberite ime fajla koji još ne postoji, npr. TEST. + + 3. Otkucajte: :w TEST (gde je TEST ime koje ste izabrali.) + + 4. Time ćete snimiti ceo fajl (Vim Tutor) pod imenom TEST. + Za proveru, otkucajte opet :!dir ili :!ls za pregled + sadržaja direktorijuma. + +NAPOMENA: Ako biste napustili Vim i ponovo ga pokrenuli sa vim TEST , + tekst bi bio tačna kopija ovog fajla u trenutku kad ste + ga snimili. + + 5. Izbrišite fajl tako što ćete otkucati (MS-DOS): :!del TEST + ili (Unix): :!rm TEST + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.3: SNIMANJE OZNAČENOG TEKSTA + + + ** Da biste snimili deo teksta, otkucajte v pokret :w IME_FAJLA ** + + 1. Pomerite kursor na ovu liniju. + + 2. Pritisnite v i pomerite kursor pet redova ispod. Primetite da je + tekst označen inverzno. + + 3. Pritisnite : . Na dnu ekrana pojaviće se :'<,'> . + + 4. Otkucajte w TEST , gde je TEST ime fajla koji još ne postoji. + Proverite da zaista piše :'<,'>w TEST pre nego što pritisnete . + + 5. Vim će snimiti označeni tekst u TEST. Proverite sa :!dir ili !ls . + Nemojte još brisati fajl! Koristićemo ga u narednoj lekciji. + +NAPOMENA: Komanda v započinje vizuelno označavanje. Možete pomerati kursor + i tako menjati veličinu označenog teksta. Onda možete upotrebiti + operatore nad tekstom. Na primer, d će izbrisati označeni tekst. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.5.4: UČITAVANJE FAJLA U TEKST + + + ** Za ubacivanje sadržaja fajla, otkucajte :r IME_FAJLA ** + + 1. Postavite kursor iznad ove linije. + +NAPOMENA: Pošto izvršite 2. korak videćete tekst iz lekcije 1.5.3. Tada + pomerite kursor DOLE da biste ponovo videli ovu lekciju. + + 2. Učitajte fajl TEST koristeći komandu :r TEST gde je TEST ime fajla + koje ste koristili u prethodnoj lekciji. Sadržaj učitanog fajla je + ubačen ispod kursora. + + 3. Da biste proverili da je fajl učitan, vratite kursor unazad i + primetite dve kopije lekcije 1.5.3, originalnu i onu iz fajla. + +NAPOMENA: Takođe možete učitati izlaz spoljašnje komande. Na primer, + :r !ls će učitati izlaz komande ls i postaviti ga ispod + kursora. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.5 + + + 1. :!komanda izvršava spoljašnju komandu. + + Korisni primeri: + (MS-DOS) (Unix) + :!dir :!ls - pregled sadržaja direktorijuma. + :!del FAJL :!rm FAJL - briše fajl FAJL. + + 2. :w FAJL zapisuje trenutni tekst na disk pod imenom FAJL. + + 3. v pokret :w IME_FAJLA snima vizuelno označene redove u fajl + IME_FAJLA. + + 4. :r IME_FAJLA učitava fajl IME_FAJLA sa diska i stavlja + njegov sadržaj ispod kursora. + + 5. :r !dir učitava izlaz komande dir i postavlja ga ispod kursora. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.1: KOMANDA OTVORI + + + ** Pritisnite o da biste otvorili red ispod kursora + i prešli u Insert mod. ** + + 1. Pomerite kursor na sledeći red označen sa --->. + + 2. Otkucajte malo o da biste otvorili novi red ISPOD kursora + i prešli u Insert mod. + + 3. Otkucajte neki tekst i onda pritisnite da biste izašli + iz Insert moda. + +---> Kad pritisnete o kursor prelazi u novootvoreni red u Insert modu. + + 4. Za otvaranje reda IZNAD kursora, umesto malog otkucajte veliko O . + Isprobajte na donjem redu označenom sa --->. + +---> Otvorite red iznad ovog kucanjem velikog O dok je kursor u ovom redu. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.2: KOMANDA DODAJ + + + ** Otkucajte a za dodavanje teksta IZA kursora. ** + + 1. Pomerite kursor na početak sledećeg reda označenog sa --->. + + 2. Kucajte e dok kursor ne dođe na kraj reči re . + + 3. Otkucajte a (malo) da biste dodali tekst IZA kursora. + + 4. Dopunite reč kao što je u redu ispod. Pritisnite za izlazak + iz Insert moda. + + 5. Sa e pređite na narednu nepotpunu reč i ponovite korake 3 i 4. + +---> Ovaj re omogućava ve dodav teksta u nekom redu. +---> Ovaj red omogućava vežbanje dodavanja teksta u nekom redu. + +NAPOMENA: Komande a, i, i A aktiviraju isti Insert mod, jedina + razlika je u poziciji od koje će se tekst ubacivati. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.3: DRUGI NAČIN ZAMENE + + + ** Otkucajte veliko R da biste zamenili više od jednog znaka. ** + + 1. Pomerite kursor na prvi sledeći red označen sa --->. + Pomerite kursor na početak prvog xxx . + + 2. Pritisnite R i otkucajte broj koji je red ispod, + tako da zameni xxx . + + 3. Pritisnite za izlazak iz Replace moda. + Primetite da je ostatak reda ostao nepromenjen. + + 4. Ponovite korake da biste zamenili drugo xxx. + +---> Dodavanje 123 na xxx daje xxx. +---> Dodavanje 123 na 456 daje 579. + +NAPOMENA: Replace mod je kao Insert mod, s tom razlikom što svaki + uneti znak briše već postojeći. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.4: KOPIRANJE I LEPLJENJE TEKSTA + + + ** Koristite operator y za kopiranje a p za lepljenje teksta. ** + + 1. Pomerite kursor na red sa ---> i postavite kursor posle "a)". + + 2. Aktivirajte Visual mod sa v i pomerite kursor sve do ispred "prvi". + + 3. Pritisnite y da biste kopirali označeni tekst u interni bafer. + + 4. Pomerite kursor do kraja sledećeg reda: j$ + + 5. Pritisnite p da biste zalepili tekst. Onda otkucajte: a drugi . + + 6. Upotrebite Visual mod da označite " red.", kopirajte sa y , kursor + pomerite na kraj sledećeg reda sa j$ i tamo zalepite tekst sa p . + +---> a) ovo je prvi red. + b) + +NAPOMENA: takođe možete koristiti y kao operator; yw kopira jednu reč. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.6.5: POSTAVLJANJE OPCIJA + + + ** Postavite opciju tako da traženje i zamena ignorišu veličinu slova ** + + 1. Potražite reč 'razlika': /razlika + Ponovite nekoliko puta pritiskom na n . + + 2. Aktivirajte opciju 'ic' (Ignore case): :set ic + + 3. Ponovo potražite reč 'razlika' pritiskom na n + Primetite da su sada pronađeni i RAZLIKA i Razlika. + + 4. Aktivirajte opcije 'hlsearch' i 'incsearch': :set hls is + + 5. Ponovo otkucajte komandu traženja i uočite razlike: /razlika + + 6. Za deaktiviranje opcije ic kucajte: :set noic + +NAPOMENA: Za neoznačavanje pronađenih izraza otkucajte: :nohlsearch +NAPOMENA: Ako želite da ne razlikujete veličinu slova u samo jednoj komandi + traženja, dodajte \c u izraz: /razlika\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.6 + + 1. Pritisnite o za otvaranje reda ISPOD kursora i prelazak u Insert mod. + Pritisnite O za otvaranje reda IZNAD kursora. + + 2. Pritisnite a za unos teksta IZA kursora. + Pritisnite A za unos teksta na kraju reda. + + 3. Komanda e pomera kursor na kraj reči. + + 4. Operator y kopira tekst, p ga lepi. + + 5. Kucanje velikog R aktivira Replace mod dok ne pritisnete . + + 6. Kucanje ":set xxx" aktivira opciju "xxx". Neke opcije su: + 'ic' 'ignorecase' ne razlikuje velika/mala slova pri traženju + 'is' 'incsearch' prikazuje pronađen tekst dok kucate izraz + 'hls' 'hlsearch' označava inverzno sve pronađene izraze + Možete koristite dugo ili kratko ime opcije. + + 7. Ispred imena opcije stavite "no" da je deaktivirate: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.1: DOBIJANJE POMOĆI + + + ** Koristite on-line sistem za pomoć ** + + Vim ima detaljan on-line sistem za pomoć. Za početak, pokušajte nešto + od sledećeg: + - pritisnite taster (ako ga imate na tastaturi) + - pritisnite taster (ako ga imate na tastaturi) + - otkucajte :help + + Pročitajte tekst u prozoru pomoći da biste naučili pomoć radi. + Kucanjem CTRL-W CTRL-W prelazite iz jednog prozora u drugi. + Otkucajte :q da zatvorite prozor pomoći. + + Pomoć o praktično bilo kojoj temi možete dobiti dodavanjem argumenta + komandi ":help". Pokušajte ovo (ne zaboravite na kraju): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.2: PRAVLJENJE STARTNOG SKRIPTA + + + ** Aktivirajte mogućnosti editora ** + + Vim ima mnogo više mogućnosti nego Vi, ali većina nije automatski + aktivirana. Za dodatne mogućnosti napravite "vimrc" fajl. + + 1. Otvorite "vimrc" fajl. Ovo zavisi od vašeg sistema: + :e ~/.vimrc za Unix + :e ~/_vimrc za MS-Windows + + 2. Onda učitajte primer sadržaja "vimrc" fajla: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Snimite fajl sa: + :w + + Sledeći put kada pokrenete Vim, bojenje sintakse teksta biće + aktivirano. Sva svoja podešavanja možete dodati u "vimrc" fajl. + Za više informacija otkucajte :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 1.7.3: AUTOMATSKO DOVRŠAVANJE + + + ** Dovršavanje komandne linije sa CTRL-D i ** + + 1. Podesite Vim da ne bude u Vi-kompatibilnom modu: :set nocp + + 2. Pogledajte koji fajlovi postoje u direktorijumu: :!ls ili :!dir + + 3. Otkucajte početak komande: :e + + 4. Otkucajte CTRL-D i Vim će prikazati spisak komandi koje počinju sa "e". + + 5. Pritisnite i Vim će dopuniti ime komande u ":edit". + + 6. Dodajte razmak i početak imena postojećeg fajla: :edit FA + + 7. Pritisnite . Vim će dopuniti ime fajla (ako je jedinstveno). + +NAPOMENA: Moguće je dopuniti mnoge komande. Samo probajte CTRL-D i . + Naročito je korisno za :help komande. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 1.7 + + + 1. Otkucajte :help ili pritisnite ili za pomoć. + + 2. Otkucajte :help komanda biste dobili pomoć za tu komandu. + + 3. Otkucajte CTRL-W CTRL-W za prelazak u drugi prozor. + + 4. Otkucajte :q da zatvorite prozor pomoći. + + 5. Napravite vimrc startni skript za aktiviranje podešavanja koja + vam odgovaraju. + + 6. Dok kucate neku od : komandi, pritisnite CTRL-D da biste videli moguće + vrednosti. Pritisnite da odaberete jednu od njih. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ovim je priručnik završen. Njegov cilj je bio kratak pregled Vim editora, + koliko da omogući njegovo relativno jednostavno korišćenje. Priručnik nije + potpun, jer Vim ima mnogo više komandi. Kao sledeće, pročitajte priručnik: + ":help user-manual". + + Za dalje čitanje i učenje, preporučujemo knjigu: + Vim - Vi Improved - by Steve Oualline + Izdavač: New Riders + Prva knjiga potpuno posvećena Vim-u. Naročito korisna za početnike. + Ima mnoštvo primera i slika. + Vidite https://iccf-holland.org/click5.html + + Sledeća knjiga je starija i više govori o Vi-u nego o Vim-u, ali je takođe + preporučujemo: + Learning the Vi Editor - by Linda Lamb + Izdavač: O'Reilly & Associates Inc. + Dobra knjiga iz koje možete saznati skoro sve što možete raditi u Vi-ju. + Šesto izdanje ima i informacija o Vim-u. + + Ovaj priručnik su napisali: Michael C. Pierce i Robert K. Ware, + Colorado School of Mines koristeći ideje Charlesa Smitha, + Colorado State University. E-mail: bware@mines.colorado.edu. + + Prilagođavanje za Vim uradio je Bram Moolenaar. + + Prevod na srpski: Ivan Nejgebauer + Verzija 1.0, maj/juni 2014. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.sv b/git/usr/share/vim/vim92/tutor/tutor1.sv new file mode 100644 index 0000000000000000000000000000000000000000..9bd88aaa64b5c5e828bd8c7e9c50f870ac844a78 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.sv @@ -0,0 +1,939 @@ +=============================================================================== += V ä l k o m m e n t i l l V I M - h a n d l e d n i n g e n - Ver. 1.7 = +=============================================================================== += K A P I T E L E T T = +=============================================================================== + + Vim är en väldigt kraftfull redigerare som har många kommandon, alltför + många att förklara i en handledning som denna. Den här handledningen är + gjord för att beskriva tillräckligt många kommandon så att du enkelt ska + kunna använda Vim som en redigerare för alla ändamål. + Den beräknade tiden för att slutföra denna handledning är 30 minuter, + beroende på hur mycket tid som läggs ned på experimentering. + + OBSERVERA: + Kommandona i lektionerna kommer att modifiera texten. Gör en kopia av den + här filen att öva på (om du startade "vimtutor" är det här redan en kopia). + + Det är viktigt att komma ihåg att den här handledningen är konstruerad + att lära vid användning. Det betyder att du måste köra kommandona för att + lära dig dem ordentligt. Om du bara läser texten så kommer du att glömma + kommandona! + Försäkra dig nu om att din Caps-Lock-tangent INTE är aktiv och tryck på + j-tangenten tillräckligt många gånger för att förflytta markören så att + Lektion 1.1.1 fyller skärmen helt. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.1: FLYTTA MARKÖREN + + + ** För att flytta markören, tryck på tangenterna h,j,k,l som indikerat. ** + ^ + k Tips: h-tangenten är till vänster och flyttar vänster. + < h l > l-tangenten är till höger och flyttar höger. + j j-tangenten ser ut som en pil ned. + v + 1. Flytta runt markören på skärmen tills du känner dig bekväm. + + 2. Håll ned tangenten (j) tills den repeterar. + Nu vet du hur du tar dig till nästa lektion. + + 3. Flytta till Lektion 1.1.2, med hjälp av ned-tangenten. + +NOTERA: Om du är osäker på någonting du skrev, tryck för att placera + dig i Normalläge. Skriv sedan om kommandot du ville använda. + +NOTERA: Piltangenterna borde också fungera. Men om du använder hjkl så kommer + du att kunna flytta runt mycket snabbare, när du väl vant dig vid det. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.2: AVSLUTA VIM + + + !! NOTERA: Innan du utför någon av punkterna nedan, läs hela lektionen!! + + 1. Tryck -tangenten (för att se till att du är i Normalläge). + + 2. Skriv: :q! . + Detta avslutar redigeraren UTAN att spara några ändringar. + + 3. Kom tillbaka hit genom att köra kommandot som tog dig till den här + handledningen. Det kan vara: vimtutor + + 4. Om du har memorerat dessa steg och känner dig säker, kör steg 1 till 3 + för att avsluta och starta om redigeraren. + +NOTERA: :q! kastar alla ändringar du gjort. Om några lektioner lär + du dig hur du sparar ändringar till en fil. + + 5. Flytta ned markören till Lektion 1.1.3. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.3: TEXTREDIGERING - BORTTAGNING + + + ** Tryck x för att ta bort tecknet under markören. ** + + 1. Flytta markören till raden nedan markerad med --->. + + 2. För att rätta felen, flytta markören tills den står på tecknet som ska + tas bort. + + 3. Tryck på x-tangenten för att ta bort det oönskade tecknet. + + 4. Upprepa steg 2 till 4 tills meningen är korrekt. + +---> Kkon hoppadee övverr måånen. + + 5. Nu när raden är korrekt, gå till Lektion 1.1.4. + +NOTERA: När du går igenom den här handledningen, försök inte memorera, lär + genom användning. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.4: TEXTREDIGERING - INFOGNING + + + ** Tryck i för att infoga text. ** + + 1. Flytta markören till första raden nedan markerad med --->. + + 2. För att göra första raden likadan som den andra, flytta markören till + tecknet FÖRE vilket texten ska infogas. + + 3. Tryck i och skriv in de nödvändiga tilläggen. + + 4. När varje fel är rättat, tryck för att återgå till Normalläge. + Upprepa steg 2 till 4 för att rätta meningen. + +---> Det saknas lit från den här . +---> Det saknas lite text från den här raden. + + 5. När du känner dig bekväm med att infoga text, gå till Lektion 1.1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.5: TEXTREDIGERING - LÄGGA TILL + + + ** Tryck A för att lägga till text. ** + + 1. Flytta markören till första raden nedan markerad med --->. + Det spelar ingen roll på vilket tecken markören är på den raden. + + 2. Tryck A och skriv in de nödvändiga tilläggen. + + 3. När texten har lagts till, tryck för att återgå till Normalläge. + + 4. Flytta markören till den andra raden markerad ---> och upprepa + steg 2 och 3 för att rätta denna mening. + +---> Det saknas lite text från de + Det saknas lite text från den här raden. +---> Det saknas också lite tex + Det saknas också lite text här. + + 5. När du känner dig bekväm med att lägga till text, gå till Lektion 1.1.6. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1.6: REDIGERA EN FIL + + + ** Använd :wq för att spara en fil och avsluta. ** + + !! NOTERA: Innan du utför någon av punkterna nedan, läs hela lektionen!! + + 1. Om du har tillgång till en annan terminal, gör följande där. + Annars, avsluta denna handledning som i Lektion 1.1.2: :q! + + 2. Vid skalprompten, skriv detta kommando: vim fil.txt + 'vim' är kommandot för att starta Vim-redigeraren, 'fil.txt' är namnet på + filen du vill redigera. Använd ett namn på en fil som du kan ändra. + + 3. Infoga och ta bort text som du lärt dig i tidigare lektioner. + + 4. Spara filen med ändringar och avsluta Vim med: :wq + + 5. Om du avslutade vimtutor i steg 1, starta om vimtutor och flytta ned till + följande sammanfattning. + + 6. Efter att ha läst stegen ovan och förstått dem: gör det. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.1 SAMMANFATTNING + + + 1. Markören flyttas med antingen piltangenterna eller hjkl-tangenterna. + h (vänster) j (ned) k (upp) l (höger) + + 2. För att starta Vim från skalprompten, skriv: vim FILNAMN + + 3. För att avsluta Vim, skriv: :q! för att kasta ändringar. + ELLER skriv: :wq för att spara ändringar. + + 4. För att ta bort tecknet vid markören, skriv: x + + 5. För att infoga eller lägga till text, skriv: + i skriv infogad text infoga före markören + A skriv tillagd text lägg till efter raden + +NOTERA: Att trycka placerar dig i Normalläge eller avbryter ett + oönskat och delvis slutfört kommando. + +Fortsätt nu med Lektion 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.1: BORTTAGNINGSKOMMANDON + + + ** Skriv dw för att ta bort ett ord. ** + + 1. Tryck för att se till att du är i Normalläge. + + 2. Flytta markören till raden nedan markerad med --->. + + 3. Flytta markören till början av ett ord som behöver tas bort. + + 4. Skriv dw för att få ordet att försvinna. + +NOTERA: Bokstaven d kommer att synas på sista raden på skärmen när du + skriver den. Vim väntar på att du ska skriva w . Om du ser ett annat + tecken än d skrev du fel; tryck och börja om. + +---> Det finns a några ord kul som inte hör hemma papper i den här meningen. + + 5. Upprepa steg 3 och 4 tills meningen är korrekt och gå till Lektion 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.2: FLER BORTTAGNINGSKOMMANDON + + + ** Skriv d$ för att ta bort till slutet av raden. ** + + 1. Tryck för att se till att du är i Normalläge. + + 2. Flytta markören till raden nedan markerad med --->. + + 3. Flytta markören till slutet av den korrekta raden (EFTER den första . ). + + 4. Skriv d$ för att ta bort till slutet av raden. + +---> Någon skrev slutet av denna rad två gånger. slutet av denna rad två gånger. + + + 5. Gå vidare till Lektion 1.2.3 för att förstå vad som händer. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.3: OM OPERATORER OCH RÖRELSER + + + Många kommandon som ändrar text är gjorda av en operator och en rörelse. + Formatet för ett borttagningskommando med d borttagningsoperatorn är: + + d rörelse + + Där: + d - är borttagningsoperatorn. + rörelse - är vad operatorn ska operera på (listad nedan). + + En kort lista med rörelser: + w - till början av nästa ord, EXKLUSIVE dess första tecken. + e - till slutet av nuvarande ord, INKLUSIVE det sista tecknet. + $ - till slutet av raden, INKLUSIVE det sista tecknet. + + Alltså kommer de att ta bort från markören till slutet av ordet. + +NOTERA: Att bara trycka rörelsen i Normalläge utan operator kommer att flytta + markören som specificerat. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.4: ANVÄNDA ANTAL FÖR EN RÖRELSE + + + ** Att skriva ett nummer före en rörelse repeterar den så många gånger. ** + + 1. Flytta markören till början av raden nedan markerad med --->. + + 2. Skriv 2w för att flytta markören två ord framåt. + + 3. Skriv 3e för att flytta markören till slutet av det tredje ordet framåt. + + 4. Skriv 0 (noll) för att flytta till början av raden. + + 5. Upprepa steg 2 och 3 med olika nummer. + +---> Detta är bara en rad med ord som du kan flytta runt i. + + 6. Gå vidare till Lektion 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.5: ANVÄNDA ANTAL FÖR ATT TA BORT MER + + + ** Att skriva ett nummer med en operator repeterar den så många gånger. ** + + I kombinationen av borttagningsoperatorn och en rörelse nämnd ovan kan du + infoga ett antal före rörelsen för att ta bort mer: + d antal rörelse + + 1. Flytta markören till det första VERSALA ordet på raden markerad med --->. + + 2. Skriv d2w för att ta bort de två VERSALA orden. + + 3. Upprepa steg 1 och 2 med olika antal för att ta bort de efterföljande + VERSALA orden med ett kommando. + +---> denna ABC DE rad FGHI JK LMN OP av ord är Q RS TUV städad. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.6: OPERERA PÅ RADER + + + ** Skriv dd för att ta bort en hel rad. ** + + På grund av hur vanligt det är att ta bort hela rader, beslutade Vis + konstruktörer att det skulle vara enklare att bara skriva två d för att + ta bort en rad. + + 1. Flytta markören till den andra raden i frasen nedan. + 2. Skriv dd för att ta bort raden. + 3. Flytta nu till den fjärde raden. + 4. Skriv 2dd för att ta bort två rader. + +---> 1) Rosor är röda, +---> 2) Lera är kul, +---> 3) Violer är blå, +---> 4) Jag har en bil, +---> 5) Klockor visar tid, +---> 6) Socker är sött +---> 7) Och det är du med. + +Att dubbla för att operera på en rad fungerar också för operatorer nämnda nedan. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2.7: ÅNGRA-KOMMANDOT + + + ** Tryck u för att ångra senaste kommandot, U för att fixa en hel rad. ** + + 1. Flytta markören till raden nedan markerad ---> och placera den på det + första felet. + 2. Skriv x för att ta bort det första oönskade tecknet. + 3. Skriv nu u för att ångra det senast körda kommandot. + 4. Denna gång, rätta alla fel på raden med x kommandot. + 5. Skriv nu ett stort U för att återställa raden till dess ursprungliga tillstånd. + 6. Skriv nu u några gånger för att ångra U och föregående kommandon. + 7. Tryck nu CTRL-R (håll CTRL nedtryckt medan du trycker R) några gånger + för att göra om kommandona (ångra ångringarna). + +---> Rätta feelen på dennna rad ochh ersätt dem meed ångra. + + 8. Dessa är mycket användbara kommandon. Gå nu vidare till Lektion 1.2 Sammanfattning. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.2 SAMMANFATTNING + + 1. För att ta bort från markören till nästa ord, skriv: dw + 2. För att ta bort från markören till slutet av ordet, skriv: de + 3. För att ta bort från markören till slutet av raden, skriv: d$ + 4. För att ta bort en hel rad, skriv: dd + + 5. För att repetera en rörelse, sätt ett nummer före den: 2w + 6. Formatet för ett ändringskommando är: + operator [antal] rörelse + där: + operator - är vad som ska göras, såsom d för ta bort + [antal] - är ett valfritt antal för att repetera rörelsen + rörelse - rör sig över texten att operera på, såsom w (ord), + e (slut på ord), $ (slut på rad), osv. + + 7. För att flytta till början av raden, använd noll: 0 + + 8. För att ångra tidigare handlingar, skriv: u (litet u) + För att ångra alla ändringar på en rad, skriv: U (stort U) + För att ångra ångringarna, skriv: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.1: KLISTRA IN-KOMMANDOT + + + ** Skriv p för att klistra in tidigare borttagen text efter markören. ** + + 1. Flytta markören till den första raden nedan markerad med --->. + + 2. Skriv dd för att ta bort raden och lagra den i ett Vim-register. + + 3. Flytta markören till rad c), OVANFÖR där den borttagna raden ska vara. + + 4. Skriv p för att lägga raden under markören. + + 5. Upprepa steg 2 till 4 för att lägga alla rader i korrekt ordning. + +---> d) Kan du också lära dig? +---> b) Violer är blå, +---> c) Intelligens är lärt, +---> a) Rosor är röda, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.2: ERSÄTT-KOMMANDOT + + + ** Skriv rx för att ersätta tecknet vid markören med x . ** + + 1. Flytta markören till den första raden nedan markerad med --->. + + 2. Flytta markören så att den är ovanpå det första felet. + + 3. Skriv r och sedan tecknet som borde vara där. + + 4. Upprepa steg 2 och 3 tills den första raden är lika som den andra. + +---> Näe danne rad skrevs in, tryckte någpn några felaktiga tangenter! +---> När denna rad skrevs in, tryckte någon några felaktiga tangenter! + + 5. Gå nu vidare till Lektion 1.3.3. + +NOTERA: Kom ihåg att du bör lära dig genom att göra, inte genom att memorera. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.3: ÄNDRA-OPERATORN + + + ** För att ändra till slutet av ett ord, skriv ce . ** + + 1. Flytta markören till den första raden nedan markerad med --->. + + 2. Placera markören på u i kubw. + + 3. Skriv ce och det korrekta ordet (i detta fall, skriv ine ). + + 4. Tryck och flytta till nästa tecken som behöver ändras. + + 5. Upprepa steg 3 och 4 tills den första meningen är likadan som den andra. + +---> Denna kubw har några otf som mfpr ändras anef ändra-operatorn. +---> Denna rad har några ord som behöver ändras med ändra-operatorn. + +Observera att ce tar bort ordet och placerar dig i Infogningsläge. + cc gör samma sak för hela raden. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3.4: FLER ÄNDRINGAR MED c + + + ** Ändra-operatorn används med samma rörelser som borttagning. ** + + 1. Ändra-operatorn fungerar på samma sätt som borttagning. Formatet är: + + c [antal] rörelse + + 2. Rörelserna är desamma, såsom w (ord) och $ (slutet av raden). + + 3. Flytta markören till den första raden nedan markerad med --->. + + 4. Flytta markören till det första felet. + + 5. Skriv c$ och skriv resten av raden som den andra och tryck . + +---> Slutet av denna rad behöver hjälp för att bli som den andra. +---> Slutet av denna rad behöver rättas med c$ kommandot. + +NOTERA: Du kan använda Backsteg-tangenten för att rätta misstag när du skriver. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.3 SAMMANFATTNING + + + 1. För att klistra tillbaka text som just tagits bort, skriv p . Detta + lägger den borttagna texten EFTER markören (om en rad togs bort hamnar + den på raden under markören). + + 2. För att ersätta tecknet under markören, skriv r och sedan tecknet + du vill ha där. + + 3. Ändra-operatorn låter dig ändra från markören till dit rörelsen tar dig. + T.ex. Skriv ce för att ändra från markören till slutet av ordet, + c$ för att ändra till slutet av raden. + + 4. Formatet för ändra är: + + c [antal] rörelse + +Gå nu vidare till nästa lektion. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.1: MARKÖRPOSITION OCH FILSTATUS + + ** Skriv CTRL-G för att visa din position i filen och filstatus. + Skriv G för att flytta till en rad i filen. ** + + NOTERA: Läs hela denna lektion innan du utför något av stegen!! + + 1. Håll ned Ctrl-tangenten och tryck g . Vi kallar detta CTRL-G. + Ett meddelande kommer att visas längst ned på sidan med filnamnet och + positionen i filen. Kom ihåg radnumret för Steg 3. + +NOTERA: Du kanske ser markörpositionen i nedre högra hörnet av skärmen. + Detta händer när 'ruler'-alternativet är satt (se :help 'ruler' ) + + 2. Tryck G för att flytta dig till botten av filen. + Skriv gg för att flytta dig till början av filen. + + 3. Skriv numret på raden du var på och sedan G . Detta tar dig tillbaka + till raden du var på när du först tryckte CTRL-G. + + 4. Om du känner dig säker på detta, utför steg 1 till 3. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.2: SÖK-KOMMANDOT + + + ** Skriv / följt av en fras för att söka efter frasen. ** + + 1. I Normalläge, skriv / tecknet. Lägg märke till att det och markören + visas längst ned på skärmen som med : kommandot. + + 2. Skriv nu 'feeeel' . Detta är ordet du vill söka efter. + + 3. För att söka efter samma fras igen, skriv helt enkelt n . + För att söka efter samma fras i motsatt riktning, skriv N . + + 4. För att söka efter en fras baklänges, använd ? istället för / . + + 5. För att gå tillbaka dit du kom ifrån, tryck CTRL-O (håll Ctrl nedtryckt + medan du trycker bokstaven o). Upprepa för att gå längre tillbaka. CTRL-I + går framåt. + +---> "feeeel" är inte hur man stavar feel; feeeel är ett fel. + +NOTERA: När sökningen når slutet av filen fortsätter den från början, såvida + inte 'wrapscan'-alternativet har återställts. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.3: SÖKA MATCHANDE PARENTESER + + + ** Skriv % för att hitta en matchande ), ] eller }. ** + + 1. Placera markören på någon (, [ eller { på raden nedan markerad med --->. + + 2. Skriv nu % tecknet. + + 3. Markören kommer att flytta till den matchande parentesen eller hakparentesen. + + 4. Skriv % för att flytta markören till den andra matchande parentesen. + + 5. Flytta markören till en annan (, ), [, ], { eller } och se vad % gör. + +---> Detta ( är en testrad med (, [ ] och { } i den. )) + + +NOTERA: Detta är väldigt användbart vid felsökning av ett program med + omatchade parenteser! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4.4: ERSÄTT-KOMMANDOT + + + ** Skriv :s/gammalt/nytt/g för att ersätta 'gammalt' med 'nytt'. ** + + 1. Flytta markören till raden nedan markerad med --->. + + 2. Skriv :s/denn/den/ . Notera att detta kommando bara ändrar den + första förekomsten av "denn" på raden. + + 3. Skriv nu :s/denn/den/g . Att lägga till g flaggan betyder att ersätta + globalt på raden, och ändrar alla förekomster av "denn" på raden. + +---> denn bästa tiden att se denn blomman är under denn sommarn. + + 4. För att ändra varje förekomst av en teckensträng mellan två rader, + skriv :#,#s/gammalt/nytt/g där #,# är radnumren på de två raderna för + intervallet där ersättningen ska göras. + Skriv :%s/gammalt/nytt/g för att ändra varje förekomst i hela filen. + Skriv :%s/gammalt/nytt/gc för att hitta varje förekomst i hela filen, + med en prompt om du vill ersätta eller inte. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.4 SAMMANFATTNING + + + 1. CTRL-G visar din position i filen och filstatus. + G flyttar till slutet av filen. + antal G flyttar till det radnumret. + gg flyttar till första raden. + + 2. Att skriva / följt av en fras söker FRAMÅT efter frasen. + Att skriva ? följt av en fras söker BAKÅT efter frasen. + Efter en sökning, skriv n för att hitta nästa förekomst i samma + riktning eller N för att söka i motsatt riktning. + CTRL-O tar dig tillbaka till äldre positioner, CTRL-I till nyare positioner. + + 3. Att skriva % medan markören är på en (, ), [, ], { eller } hittar dess + matchande par. + + 4. För att ersätta ny för den första gammalt på en rad, skriv :s/gammalt/nytt + För att ersätta ny för alla gammalt på en rad, skriv :s/gammalt/nytt/g + För att ersätta fraser mellan två radnummer, skriv :#,#s/gammalt/nytt/g + För att ersätta alla förekomster i filen, skriv :%s/gammalt/nytt/g + För att få fråga om bekräftelse varje gång, lägg till 'c' :%s/gammalt/nytt/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.1: HUR MAN KÖR ETT EXTERNT KOMMANDO + + + ** Skriv :! följt av ett externt kommando för att köra det kommandot. ** + + 1. Skriv det välbekanta kommandot : för att placera markören längst ned + på skärmen. Detta låter dig skriva ett kommandorads-kommando. + + 2. Skriv nu ! (utropstecken). Detta låter dig köra vilket externt + skalkommando som helst. + + 3. Som ett exempel, skriv ls efter ! och tryck sedan . Detta + kommer att visa dig en lista över din katalog, precis som om du var vid + en skalprompt. Eller använd :!dir om ls inte fungerar. + +NOTERA: Det är möjligt att köra vilket externt kommando som helst på detta sätt, + också med argument. + +NOTERA: Alla : kommandon måste avslutas genom att trycka + Från och med nu nämner vi inte alltid det. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.2: MER OM ATT SPARA FILER + + + ** För att spara ändringarna i filen, skriv :w FILNAMN . ** + + 1. Skriv :!ls eller :!dir för att få en lista över din katalog. + Du vet redan att du måste trycka efter detta. + + 2. Välj ett filnamn som inte finns ännu, såsom TEST. + + 3. Skriv nu: :w TEST (där TEST är filnamnet du valde.) + + 4. Detta sparar hela filen (Vim Tutor) under namnet TEST. + För att verifiera detta, skriv :!ls eller :!dir igen för att se + din katalog. + +NOTERA: Om du skulle avsluta Vim och starta igen med vim TEST , skulle filen + vara en exakt kopia av handledningen när du sparade den. + + 5. Ta nu bort filen genom att skriva (MS-DOS): :!del TEST + eller (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.3: VÄLJA TEXT ATT SPARA + + + ** För att spara del av filen, skriv v rörelse :w FILNAMN ** + + 1. Flytta markören till denna rad. + + 2. Tryck v och flytta markören till det femte objektet nedan. Lägg märke + till att texten markeras. + + 3. Tryck : tecknet. Längst ned på skärmen visas :'<,'> . + + 4. Skriv w TEST , där TEST är ett filnamn som inte finns ännu. Verifiera + att du ser :'<,'>w TEST innan du trycker . + + 5. Vim kommer att skriva de markerade raderna till filen TEST. Använd :!ls + eller :!dir för att se den. Ta inte bort den ännu! Vi kommer att + använda den i nästa lektion. + +NOTERA: Att trycka v startar Visuell markering. Du kan flytta markören runt + för att göra markeringen större eller mindre. Sedan kan du använda en + operator för att göra något med texten. Till exempel, d tar bort texten. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5.4: HÄMTA OCH SAMMANFOGA FILER + + + ** För att infoga innehållet av en fil, skriv :r FILNAMN ** + + 1. Placera markören precis ovanför denna rad. + +NOTERA: Efter att ha kört Steg 2 kommer du att se text från Lektion 1.5.3. + Flytta sedan NED för att se denna lektion igen. + + 2. Hämta nu din TEST-fil med kommandot :r TEST där TEST är namnet på + filen du använde. + Filen du hämtar placeras under markörens rad. + + 3. För att verifiera att en fil hämtades, flytta markören tillbaka och lägg + märke till att det nu finns två kopior av Lektion 1.5.3, originalet och + filversionen. + +NOTERA: Du kan också läsa utdata från ett externt kommando. Till exempel, + :r !ls läser utdata från ls kommandot och lägger det under markören. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.5 SAMMANFATTNING + + + 1. :!kommando kör ett externt kommando. + + Några användbara exempel är: + (MS-DOS) (Unix) + :!dir :!ls - visar en kataloglista. + :!del FILNAMN :!rm FILNAMN - tar bort filen FILNAMN. + + 2. :w FILNAMN sparar nuvarande Vim-fil till disk med namnet FILNAMN. + + 3. v rörelse :w FILNAMN sparar de Visuellt markerade raderna i filen + FILNAMN. + + 4. :r FILNAMN hämtar diskfilen FILNAMN och lägger den under markörens + position. + + 5. :r !ls läser utdata från ls kommandot och lägger det under markörens + position. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.1: ÖPPNA-KOMMANDOT + + + ** Skriv o för att öppna en rad under markören + och placera dig i Infogningsläge. ** + + 1. Flytta markören till raden nedan markerad med --->. + + 2. Skriv det lilla o för att öppna en rad UNDER markören och placera dig + i Infogningsläge. + + 3. Kopiera nu raden markerad ---> och tryck för att avsluta + Infogningsläge. + +---> När du har tryckt o placeras markören på den öppna raden i Infogningsläge. + + 4. För att öppna en rad OVANFÖR markören, skriv helt enkelt ett stort O , + istället för ett litet o . Prova detta på raden nedan. + +---> Öppna en rad ovanför denna genom att skriva O medan markören är på denna rad. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.2: LÄGG TILL-KOMMANDOT + + + ** Skriv a för att infoga text EFTER markören. ** + + 1. Flytta markören till början av raden nedan markerad med --->. + + 2. Tryck e tills markören är på slutet av ra . + + 3. Skriv ett a (litet) för att lägga till text EFTER markören. + + 4. Slutför ordet som på raden under det. Tryck för att avsluta + Infogningsläge. + + 5. Använd e för att flytta till nästa ofullständiga ord och upprepa + steg 3 och 4. + +---> Denna ra låter dig öv på att läg till te i en rad. +---> Denna rad låter dig öva på att lägga till text i en rad. + +NOTERA: a, i och A går alla till samma Infogningsläge, den enda skillnaden är + var tecknen infogas. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.3: ETT ANNAT SÄTT ATT ERSÄTTA + + + ** Skriv ett stort R för att ersätta fler än ett tecken. ** + + 1. Flytta markören till den första raden nedan markerad med --->. Flytta + markören till början av det första xxx . + + 2. Tryck nu R och skriv numret nedan det på den andra raden, så att det + ersätter xxx . + + 3. Tryck för att lämna Ersättningsläge. Lägg märke till att resten + av raden förblir oförändrad. + + 4. Upprepa stegen för att ersätta det återstående xxx . + +---> Att lägga 123 till xxx ger dig xxx. +---> Att lägga 123 till 456 ger dig 579. + +NOTERA: Ersättningsläge är som Infogningsläge, men varje skrivet tecken tar + bort ett existerande tecken. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.4: KOPIERA OCH KLISTRA IN TEXT + + + ** Använd y operatorn för att kopiera text och p för att klistra in den ** + + 1. Gå till raden nedan markerad med ---> och placera markören efter "a)". + + 2. Starta Visuellt läge med v och flytta markören till precis före "första". + + 3. Skriv y för att kopiera (yank) den markerade texten. + + 4. Flytta markören till slutet av nästa rad: j$ + + 5. Skriv p för att klistra in texten. Skriv sedan: ett andra . + + 6. Använd Visuellt läge för att markera " objekt.", kopiera det med y , + flytta till slutet av nästa rad med j$ och klistra in texten där med p . + +---> a) detta är det första objektet. + b) + +NOTERA: du kan också använda y som en operator; yw kopierar ett ord. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6.5: STÄLLA IN ALTERNATIV + + + ** Ställ in ett alternativ så sökningar och ersättningar ignorerar skiftläge ** + + 1. Sök efter 'ignorera' genom att skriva: /ignorera + Upprepa flera gånger genom att trycka n tangenten. + + 2. Ställ in 'ic' (Ignorera skiftläge) alternativet genom att skriva: :set ic + + 3. Sök nu efter 'ignorera' igen genom att trycka n + Lägg märke till att Ignorera och IGNORERA nu också hittas. + + 4. Ställ in 'hlsearch' och 'incsearch' alternativen: :set hls is + + 5. Skriv nu in sökkommandot igen och se vad som händer: /ignorera + + 6. För att inaktivera skiftlägeskänslighet, skriv: :set noic + +NOTERA: För att ta bort markeringen av träffar, skriv: :nohlsearch +NOTERA: Om du vill ignorera skiftläge för bara en sökning, använd \c + i frasen: /ignorera\c +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.6 SAMMANFATTNING + + 1. Skriv o för att öppna en rad UNDER markören och starta Infogningsläge. + Skriv O för att öppna en rad OVANFÖR markören. + + 2. Skriv a för att infoga text EFTER markören. + Skriv A för att infoga text efter slutet av raden. + + 3. Det stora e kommandot flyttar till slutet av ett ord. + + 4. Operatorn y kopierar text, p klistrar in den. + + 5. Att skriva ett stort R startar Ersättningsläge tills trycks. + + 6. Att skriva ":set xxx" ställer in alternativet "xxx". Några alternativ är: + 'ic' 'ignorecase' ignorera versaler/gemener vid sökning + 'is' 'incsearch' visa delmatchningar för en sökfras + 'hls' 'hlsearch' markera alla matchande fraser + Du kan använda antingen det långa eller korta alternativnamnet. + + 7. Sätt "no" före ett alternativnamn för att stänga av det: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.7: ONLINE-HJÄLP + + + ** Använd online-hjälpsystemet ** + + Vim har ett omfattande online-hjälpsystem. För att komma igång, prova en + av dessa tre: + - tryck -tangenten (om du har en) + - tryck -tangenten (om du har en) + - skriv :help + + Läs texten i hjälpfönstret för att ta reda på hur hjälpen fungerar. + Skriv CTRL-W CTRL-W för att hoppa från ett fönster till ett annat. + Skriv :q för att stänga hjälpfönstret. + + Du kan hitta hjälp om nästan allt genom att ge ett argument till + ":help"-kommandot. Prova dessa (glöm inte att trycka ): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.8: SKAPA ETT STARTSKRIPT + + ** Aktivera Vim-funktioner ** + + Vim har många fler funktioner än Vi, men de flesta är inaktiverade som + standard. För att börja använda fler funktioner behöver du skapa en + "vimrc"-fil. + + 1. Börja redigera "vimrc"-filen. Detta beror på ditt system: + :e ~/.vimrc för Unix + :e ~/_vimrc för MS-Windows + + 2. Läs nu in exempel-"vimrc"-filens innehåll: + :r $VIMRUNTIME/vimrc_example.vim + + 3. Skriv filen med: + :w + + Nästa gång du startar Vim kommer den att använda syntaxmarkering. + Du kan lägga till alla dina föredragna inställningar i denna "vimrc"-fil. + För mer information, skriv :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lektion 1.9: SLUTSATS + + Detta var tänkt att ge en kort översikt av Vim-redigeraren, precis tillräckligt + för att du ska kunna använda redigeraren ganska enkelt. Det är långt ifrån + komplett eftersom Vim har många många fler kommandon. Läs användarhandboken + härnäst: ":help user-manual". + + För vidare läsning och studier rekommenderas denna bok: + Vim - Vi Improved - av Steve Oualline + Förläggare: New Riders + Den första boken helt tillägnad Vim. Särskilt användbar för nybörjare. + Det finns många exempel och bilder. + Se https://iccf-holland.org/click5.html + + Denna äldre bok handlar mer om Vi än Vim, men rekommenderas också: + Learning the Vi Editor - av Linda Lamb + Förläggare: O'Reilly & Associates Inc. + Det är en bra bok för att lära sig nästan allt du vill göra med Vi. + Den sjätte upplagan inkluderar också information om Vim. + + Denna handledning skrevs av Michael C. Pierce och Robert K. Ware, + Colorado School of Mines med idéer av Charles Smith, + Colorado State University. E-post: bware@mines.colorado.edu. + + Modifierad för Vim av Bram Moolenaar. + Svensk översättning av Johan Svedberg och Daniel Nylander. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.tr b/git/usr/share/vim/vim92/tutor/tutor1.tr new file mode 100644 index 0000000000000000000000000000000000000000..df0cea09d62a833cd1d011d284ec39a9c0f33ec1 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.tr @@ -0,0 +1,987 @@ +================================================================================ += V I M T u t o r ' a h o ş g e l d i n i z ! -- Sürüm 1.7 = +================================================================================ + + Vim, böyle bir eğitmen ile açıklanması gereken çok fazla komut barındıran, + oldukça kuvvetli bir metin düzenleyicidir. Bu eğitmen Vim'i çok amaçlı bir + düzenleyici olarak kolaylıkla kullanabileceğiniz yeterli sayıda komutu + açıklamak için tasarlanmıştır. + + Eğitmeni tamamlama süresi yapacağınız denemelere bağlı olarak 25-30 + dakikadır. + + DİKKAT: + Derslerdeki komutlar bu metni değiştirecektir. Üzerinde çalışmak için + bu dosyanın bir kopyasını alın (eğer "vimtutor" uygulamasını + çalıştırdıysanız zaten bir kopyasını almış oldunuz). + + Bu eğitmenin kullanarak öğretmek için tasarlandığını unutmamak önemlidir. + Bu şu anlama gelir; komutları öğrenmek için doğru bir şekilde çalıştırma- + nız gerekir. Eğer sadece yazılanları okursanız komutları unutursunuz. + + Şimdi Caps Lock düğmenizin basılı olmadığına emin olun ve Ders 1.1.1'in + ekranı tamamen doldurması için j düğmesine yeterli miktarda basın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.1: İMLECİ HAREKET ETTİRMEK + + +Çevirmen Notu: Tüm derslerde gördüğünüzde bu düğmeye basın. + + ** İmleci hareket ettirmek için h,j,k,l düğmelerine basın. ** + ^ + k İpucu: h düğmesi soldadır ve sola doğru hareket eder. + < h l > l düğmesi sağdadır ve sağa doğru hareket eder. + j j düğmesi aşağı doğru bir oka benzer. + v + + 1. İmleci kendinizi rahat hissedinceye dek ekranda dolaştırın. + + 2. j düğmesine basın ve ekranın aşağıya kaydığını görün. + + 3. Aşağı düğmesini kullanarak, Ders 1.1.2'ye geçin. + + NOT: Eğer yazdığınız bir şeyden emin değilseniz Normal kipe geçmek için + düğmesine basın. Daha sonra istediğiniz komutu yeniden yazın. + + NOT: Ok düğmeleri de aynı işe yarar. Ancak hjkl düğmelerini kullanarak çok + daha hızlı hareket edebilirsiniz. Gerçekten. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.2: VİM'DEN ÇIKIŞ + + + !! NOT: Aşağıdaki adımları yapmadan önce, bu dersi tamamen okuyun. + + 1. Normal kipte olduğunuzdan emin olmak için düğmesine basın. + + 2. :q! yazın ve 'a basın'. + Bu düzenleyiciden çıkar ve yaptığınız değişiklikleri KAYDETMEZ. + + 3. vimtutor yazarak yeniden bu belgeyi açın. + + 4. Eğer bu adımları ezberlediyseniz ve kendinizden eminseniz, 1'den 3'e + kadar olan adımları yeniden uygulayın. + + NOT: :q! , yaptığınız tüm değişiklikleri atar. Birkaç ders sonra, + değişiklikleri dosyaya kaydetmeyi öğreneceksiniz. + + 5. İmleci Ders 1.1.3'e taşıyın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.3: METİN DÜZENLEME - METİN SİLME + + + ** Normal kipteyken imlecin altındaki karakteri silmek için x'e basın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 2. Düzeltmeler için imleci silinmesi gereken karakterin üzerine getirin. + + 3. İstenmeyen karakteri silmek için x düğmesine basın. + + 4. Tümce düzelene kadar 2'den 4'e kadar olan adımları tekrar edin. + +---> İinek ayyın üzzerinden attladı. + + 5. Şimdi satır düzeldi; Ders 1.1.4'e geçin. + + NOT: Bu eğitmende ilerledikçe ezberlemeye çalışmayın, deneyerek öğrenin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.4: METİN DÜZENLEME - METİN GİRME + + + ** Normal kipteyken metin eklemek için i'ye basın. ** + + 1. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. + + 2. İlk satırı ikincisinin aynısı gibi yapmak için, imleci eklenmesi + gereken metinden sonraki ilk karakterin üzerine götürün. + + 3. i'ye basın ve gerekli eklemeleri yapın. + + 4. Düzeltilen her hatadan sonra düğmesine basarak Normal kipe dönün. + Tümceyi düzeltmek için 2'den 4'e kadar olan adımları tekrar edin. + +---> Bu metinde eksk. +---> Bu metinde bir şey eksik. + + 5. Artık yapabildiğinizi düşünüyorsanız bir sonraki bölüme geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.5: METİN DÜZENLEME - METİN EKLEME + + + ** Metin eklemek için A düğmesine basın. ** + + 1. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. İmlecin hangi + karakterin üzerinde olduğu önemli değildir. + + 2. A'ya basın ve gerekli eklemeleri yapın. + + 3. Metin eklemeyi bitirdiğinizde 'ye basın ve Normal kipe dönün. + + 4. İmleci aşağıda ---> ile imlenmiş İKİNCİ satıra götürün ve ikinci ve + üçüncü adımları tekrarlayarak tümceyi düzeltin. + +---> Bu satırda bazı met + Bu satırda bazı metinler eksik. +---> Bu satırda da bazı metinl + Bu satırda da bazı metinler eksik gibi görünüyor. + + 5. Artık rahatça metin ekleyebildiğinizi düşünüyorsanız Ders 1.1.6'ya geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1.6: DOSYA DÜZENLEME + + + ** :wq yazmak açık olan dosyayı kaydeder ve Vim'den çıkar. + + !! NOT: Aşağıdaki adımları uygulamadan önce tüm bu bölümü iyice okuyun! + + 1. Bu eğitmeni Ders 1.1.2'de yaptığınız gibi :q! yazarak kapatın. Veya başka + bir uçbirime erişiminiz varsa orada yapın. + + 2. Komut istemi ekranında şu komutu girin: vim tutor . 'vim', Vim + düzenleyicisini açmak için kullanacağınız komut olup 'tutor' da + düzenlemek istediğiniz dosyanın adıdır. Değiştirilebilen bir dosya + kullanın. + + 3. Daha önceki derslerde öğrendiğiniz gibi metin girip/ekleyip silin. + + 4. :wq yazarak değişiklikleri kaydedin ve Vim'den çıkın. + + 5. Eğer vimtutor'dan birinci adımda çıktıysanız yeniden açın ve aşağıdaki + özet bölüme gelin. + + 6. Yukarıdaki adımları okuduktan ve anladıktan sonra YAPIN. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.1: ÖZET + + + 1. İmleç ok düğmeleri veya hjkl düğmeleri kullanılarak hareket ettirilir. + + h (sol) / j (aşağı) / k (yukarı) / l (sağ) + + 2. Vim'i komut isteminden başlatmak için: + + vim + veya + vim DOSYA_ADI kullanın. + + 3. Vim'den çıkmak için önce 'ye basıp sonra: + + :q! (değişiklikleri kaydetmeden çıkar) + :wq (değişiklikleri kaydedip çıkar) komutlarını kullanın. + + 4. İmlecin üzerinde olduğu karakteri silmek için x düğmesine basın. + + 5. Metin girmek veya eklemek için: + + i metin girin imleçten önce girer + A metin girin satırdan sonra ekler + + NOT: düğmesine basmak sizi Normal kipe geri döndürür veya istenmeyen + veya yarım yazılmış bir komutu iptal eder. + + Şimdi Ders 1.2 ile bu eğitmeni sürdürün. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.1: SİLME KOMUTLARI + + + ** Bir sözcüğü silmek için dw yazın. ** + + 1. Normal kipte olduğunuzdan emin olmak için düğmesine basın. + + 2. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 3. İmleci silinmesi gereken sözcüğün başına götürün. + + 4. Sözcüğü silmek için dw yazın. + + NOT: d harfi siz yazdıkça ekranın son satırında görülecektir. Vim sizin w + yazmanızı bekleyecektir. Eğer d'den başka bir şey görürseniz yanlış + yazmışsınız demektir, düğmesine basın ve baştan başlayın. + +---> Bu satırda çerez tümceye ait olmayan leblebi sözcükler var. + + 5. Tümce düzelene kadar adım 3 ve 4'ü tekrar edin ve Ders 1.2.2'ye geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.2: DAHA FAZLA SİLME KOMUTLARI + + + ** Satırı sonuna kadar silmek için d$ yazın. ** + + 1. Normal kipte olduğunuzdan emin olmak için düğmesine basın. + + 2. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 3. İmleci doğru olan satırın sonuna götürün. (Birinci noktadan SONRAKİ) + + 4. Satırı en sona kadar silmek için d$ yazın. $ imini yazmak için: + + Türkçe Q klavyede 4, + Türkçe F klavyede 4 ikililerini kullanın. + +---> Birileri bu satırın sonunu iki defa yazmış. satırın sonunu iki + defa yazmış. + + 5. Neler olduğunu anlamak için Ders 1.2.3'e gidin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.3: İŞLEÇLER VE HAREKETLER + + + Metin değiştiren birçok komut işleçler ve eklerden oluşur. Bir d işleci + içeren silme komutu için kullanılan biçim aşağıdaki gibidir: + + d hareket + + Burada: + + d - silme işlecidir. + hareket - işlecin neyi işleteceğidir (aşağıda listelenmiştir). + + Hareketlerin kısa bir listesi için: + + w - bir sonraki sözcüğün başlangıcına kadar, ilk karakteri DAHİL OLMADAN + e - şu anki sözcüğün sonuna kadar, son karakteri DAHİL OLARAK + $ - satırın sonuna kadar, son karakteri DAHİL OLARAK + + Demeli ki, de komutunu girmek imleçten sözcüğün sonuna kadar siler. + + NOT: Normal kipte hiçbir hareket olmadan yalnızca işleci girmek imleci + yukarıda belirtildiği gibi hareket ettirir. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.4: BİR HAREKET İLE BİRLİKTE SAYIM KULLANMAK + + + ** Bir hareketten önce sayı kullanmak o hareketi sayıca tekrarlatır. ** + + 1. İmleci aşağıda ---> ile imlenmiş satırın BAŞINA götürün. + + 2. 2w yazarak imleci iki sözcük ileriye taşıyın. + + 3. 3e yazarak imleci üç sözcük ilerideki sözcüğün sonuna taşıyın. + + 4. 0 yazarak imleci satırın başına taşıyın. + + 5. İkinci ve üçüncü adımları değişik sayılar kullanarak tekrarlayın. + +---> Bu üzerinde hoplayıp zıplayabileceğiniz naçizane bir satır. + + 6. Ders 1.2.5'e geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.5: BİR SAYIM KULLANARAK DAHA FAZLA SİLME İŞLEMİ + + + ** Bir işleç ile birlikte sayı kullanmak işleci o kadar tekrarlatır. ** + + Yukarıda sözü edilen silme işleci ve hareketinin arasına sayı ekleyerek + yapılan işlemi o sayı kadar tekrarlatabilirsiniz. + + d [sayı] hareket + + 1. İmleci aşağıda ---> ile imlenen satırdaki ilk BÜYÜK HARFTEN oluşan + sözcüğün başına getirin. + + 2. d2w yazarak iki BÜYÜK HARFLİ sözcüğü silin. + + 3. Birinci ve ikinci adımları başka bir sayı kullanarak BÜYÜK + HARFLİ sözcükleri tek bir komutta silmek için yeniden uygulayın. + +---> Bu ABC ÇDE satırdaki FGĞ HIİ JKLM NOÖ PRSŞT sözcükler UÜ VY temizlenmiştir. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.6: SATIRLARDA İŞLEM YAPMA + + + ** Bütün bir satırı silmek için dd yazın. ** + + Bütün bir satır silme işlemi çok sık kullanıldığından dolayı, Vi + tasarımcıları bir satırı tamamen silmek için iki d yazmanın daha kolay + olduğuna karar vermişler. + + 1. İmleci aşağıdaki tümceciğin ikinci satırına götürün. + + 2. Satırı silmek için dd yazın. + + 3. Şimdi de dördüncü satıra gidin. + + 4. İki satırı birden silmek için 2dd yazın. + +---> 1) Güller kırmızıdır, +---> 2) Çamur eğlenceli, +---> 3) Menekşeler mavi, +---> 4) Bir arabam var, +---> 5) Saat zamanı söyler, +---> 6) Şeker tatlıdır +---> 7) Ve sen de öylesin + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2.7: GERİ AL KOMUTU + + + ** Komutu geri almak için u, bütün bir satırı düzeltmek için U yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satırda ve ilk hatanın üzerine koyun. + + 2. İlk istenmeyen karakteri silmek için x yazın. + + 3. Şimdi son çalıştırılan komutu geri almak için u yazın. + + 4. Bu sefer x komutunu kullanarak satırdaki tüm hataları düzeltin. + + 5. Şimdi satırı ilk haline çevirmek için büyük U yazın. + + 6. Şimdi U ve daha önceki komutları geri almak için birkaç defa u yazın. + + 7. Birkaç defa R ('yi basılı tutarken R ye basın) yazarak + geri almaları da geri alın. + +---> Buu satıırdaki hataları düüzeltinn ve sonra koomutu geri alllın. + + 8. Bunlar son derece kullanışlı komutlardır. Şimdi Ders 1.2 Özete geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.2: ÖZET + + + 1. İmleçten itibaren bir sözcüğü silmek için dw yazın. + + 2. İmleçten itibaren bir sözcüğün sonuna kadar silmek için de yazın. + + 3. İmleçten itibaren bir satırı silmek için d$ yazın. + + 4. Bütün bir satırı silmek için dd yazın. + + 5. Bir hareketi yenilemek için önüne sayı takısı getirin, 2w gibi. + + 6. Normal kipte bir komut biçimi şöyledir: + + işleç [sayı] hareket + + burada: + işleç - ne yapılacağı, silmek için d örneğinde olduğu gibi + [sayı] - komutun kaç kere tekrar edeceğini gösteren isteğe bağlı sayı + hareket - işlecin nice davranacağı; w (sözcük), e (sözcük sonu), + $ (satır sonu) gibi + + 7. Bir satırın başına gelmek için sıfır (0) kullanın. + + 8. Önceki hareketleri geri almak için u (küçük u) yazın. + Bir satırdaki tüm değişiklikleri geri almak için U (büyük U) yazın. + Geri almaları geri almak için R kullanın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.3.1: KOY KOMUTU + + + ** Son yaptığınız silmeyi imleçten sonraya yerleştirmek için p yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş tümceciğe götürün. + + 2. Satırı silip Vim'in arabelleğine yerleştirmek için dd yazın. + + 3. İmleci, silinmiş satırı nereye yerleştirmek istiyorsanız, o satırın + ÜZERİNE götürün. + + 4. Normal kipteyken satırı yerleştirmek için p yazın. + + 5. Tüm satırları doğru sıraya koymak için 2'den 4'e kadar olan adımları + tekrar edin. + +---> d) Sen de öğrendin mi? +---> b) Menekşeler mavidir, +---> c) Akıl öğrenilir, +---> a) Güller kırmızıdır, + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.3.2: DEĞİŞTİR KOMUTU + + + ** İmlecin altındaki karakteri başkası ile değiştirmek için rx yapın. ** + + 1. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. + + 2. İmleci satırdaki ilk hatanın üzerine götürün. + + 3. Hatayı düzeltmek için önce r ardından da doğru karakteri yazın. + + 4. İlk satır düzelene kadar adım 2 ve 3'ü tekrar edin. + +---> Bu satıv yazılıvken, bivileri yamlış düğmetere basmış. +---> Bu satır yazılırken, birileri yanlış düğmelere basmış. + + 5. Ders 1.3.3'ye geçin. + + NOT: Unutmayın, ezberleyerek değil deneyerek öğrenin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.3.3: DEĞİŞTİR İŞLECİ + + + ** Bir sözcüğü imleçten sözcük sonuna kadar değiştirmek için ce yapın. ** + + 1. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. + + 2. İmleci "sutar" daki u'nun üzerine yerleştirin. + + 3. Önce ce ardından doğru harfleri girin (bu durumda 'atır'). + + 4. düğmesine basın ve değişmesi gereken bir sonraki karaktere gidin. + + 5. İlk cümle ikincisiyle aynı olana kadar adım 3 ve 4'ü tekrar edin. + +---> Bu sutar değiştir komutu ile değişneli gereken birkaç mözgüç içeriyor. +---> Bu satır değiştir komutu ile değişmesi gereken birkaç sözcük içeriyor. + + ce'nin sadece sözcüğü değiştirmediğini, aynı zamanda sizi EKLE kipine + aldığına da dikkat edin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.3.4: c'Yİ KULLANARAK DAHA FAZLA DEĞİŞTİRME + + + ** Değiştir işleci sil komutu ile aynı hareketlerle kullanılır. ** + + 1. Değiştir işleci sil ile aynı yolla çalışır. Biçim şöyledir: + + c [sayı] hareket + + 2. Hareketler de aynıdır. Örneğin w (sözcük), $ (satır sonu) gibi. + + 3. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. + + 4. İmleci ilk hataya götürün. + + 5. Satırın geri kalan kısmını ikincisi gibi yapmak için c$ yazın ve daha + sonra düğmesine basın. + +---> Bu satırın sonu düzeltilmek için biraz yardıma ihtiyaç duyuyor. +---> Bu satırın sonu düzeltilmek için c$ komutu kullanılarak yardıma ihtiyaç + duyuyor. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.3: ÖZET + + + 1. Silinmiş olan bir metni geri yerleştirmek için p yazın. Bu silinmiş + metni imleçten hemen SONRA geri yerleştirir (eğer bir satır silinmişse + hemen imlecin altındaki satıra yerleştirilecektir). + + 2. İmlecin altındaki karakteri değiştirmek için önce r ardından da + yazmak istediğiniz karakteri yazın. + + 3. Değiştir işleci belirlenen nesneyi, imleçten hareketin sonuna kadar + değiştirme imkanı verir. Örneğin, bir sözcüğü imleçten sözcük sonuna + kadar değiştirmek için cw, bir satırın tamamını değiştirmek içinse c$ + yazın. + + 4. Değiştir için biçim şöyledir: + + c [sayı] hareket + + Şimdi bir sonraki derse geçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.4.1: İMLEÇ KONUMU VE DOSYA DURUMU + + +** G dosya içerisindeki konumunuzu ve dosya durumunu gösterir. Dosya + içerisindeki bir satıra gitmek için G yazın. ** + + NOT: Adımlardan herhangi birini yapmadan önce dersin tamamını okuyun! + + 1. düğmesini basılı tutun ve g'ye basın. Biz buna G diyoruz. + Dosyanın sonunda dosya adını ve bulunduğunuz konumu gösteren bir durum + satırı görünecektir. Adım 3 için satır numarasını unutmayın. + + NOT: İmleç konumunu ekranın sağ alt köşesinde görebilirsiniz. Bu 'ruler' + seçeneği etkin olduğunda görülür (bilgi için :help 'ruler' yazın). + + 2. Dosyanın sonuna gitmek için G'ye basın. Dosyanın başına gitmek için + gg komutunu kullanın. + + 3. Daha önce bulunduğunuz satır numarasını yazın ve daha sonra G'ye + basın. Bu sizi ilk g'ye bastığınız satıra geri götürecektir. + + 4. Yapabileceğinizi düşündüğünüzde, adım 1'den 3'e kadar yapın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.4.2: ARAMA KOMUTU + + + ** Bir sözcük öbeğini aramak için / ve aranacak öbeği girin. ** + + 1. Normal kipteyken / yazın. / karakterinin ve imlecin ekranın sonunda + göründüğüne dikkat edin. + + 2. 'hatttaa' yazıp 'a basın. Bu sizin aramak istediğiniz sözcüktür. + + 3. Aynı sözcük öbeğini tekrar aramak için n yazın. + Aynı sözcük öbeğini zıt yönde aramak için N yazın. + + 4. Eğer zıt yöne doğru bir arama yapmak istiyorsanız / komutu yerine ? + komutunu kullanın. + +---> "hatttaa" hatayı yazmanın doğru yolu değil; hatttaa bir hata. + +Not: Arama dosyanın sonuna ulaştığında dosyanın başından sürecektir. Bunu + devre dışı bırakmak için 'wrapscan' seçeneğini sıfırlayın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.4.3: UYAN AYRAÇLAR ARAMASI + + + ** Uyan bir (, [ veya { bulmak için % yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satırda bir (, [ veya { imine götürün. + + 2. Şimdi % karakterini yazın. + + 3. İmleç uyan ayracın üzerine gider. + + 4. Uyan ilk parantezin üzerine geri dönmek için yine % yazın. + + 5. İmleci başka bir (), [] veya {} üzerine götürün ve % işlecinin neler + yaptığını gözlemleyin. + +---> Bu içerisinde ( )'ler, ['ler ] ve {'ler } bulunan bir satırdır. + + NOT: Bu içerisinde eşi olmayan ayraçlar bulunan bir programın hatalarını + ayıklamak için son derece yararlıdır. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.4.4: BUL/DEĞİŞTİR KOMUTU + + + ** 'eski' yerine 'yeni' yerleştirmek için :s/eski/yeni/g yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 2. :s/buu/bu yazıp 'a basın. Bu komutun sadece satırdaki ilk + uyan karşılaşmayı düzelttiğine dikkat edin. + + 3. Şimdi satırdaki tüm değişiklikleri bir anda yapmak için :s/buu/bu/g + yazarak tüm "buu" oluşumlarını değiştirin. + +---> Buu birinci, buu ikinci, buu üçüncü bölüm. + + 4. İki satır arasındaki tüm karakter katarı oluşumlarını değiştirmek için: + + :#,#s/eski/yeni/g yazın. #,# burada değişikliğin yapılacağı aralığın + satır numaralarıdır. + :%s/eski/yeni/g yazın. Bu tüm dosyadaki her oluşumu değiştirir. + :%s/eski/yeni/gc yazın. Bu tüm dosyadaki her oluşumu değiştirir ancak + her birini değiştirmeden önce bize sorar. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.4: ÖZET + + + 1. G sizin dosyadaki konumunuzu ve dosya durumunu gösterir. + G dosyanın sonuna gider. + [sayı] G belirtilen satır numarasına gider. + gg ilk satıra gider. + + 2. Sözcük öbeğinden önce / yazmak, İLERİ yönde o öbeği aratır. + Sözcük öbeğinden önce ? yazmak, GERİ yönde o öbeği aratır. + Aramadan sonra, aynı yöndeki bir sonraki karşılaşmayı bulmak için n, + veya zıt yöndekini bulmak için N yazın. + O sizi eski konumlara, I daha yeni konumlara götürür. + + 3. İmleç bir (), [], {} ayracı üzerindeyken % yazmak, uyan diğer eş + ayracı bulur. + + 4. Satırdaki ilk 'eski'yi 'yeni' ile değiştirmek için :s/eski/yeni, + Satırdaki tüm 'eski'leri 'yeni' ile değiştirmek için :s/eski/yeni/g, + İki satır arasındaki öbekleri değiştirmek için :#,#s/eski/yeni/g, + Dosyadaki tüm karşılaşmaları değiştirmek için :%s/eski/yeni/g yazın. + Her seferinde onay sorması için :%s/eski/yeni/gc kullanın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.5.1: BIR DIŞ KOMUT ÇALIŞTIRMAK + + + ** Bir dış komutu çalıştırmak için :! ve ardından dış komutu yazın. ** + + 1. İmleci ekranın altına götürmek için : komutunu yazın. Bu size bir komut + yazma imkanı verir. + + 2. Şimdi ! (ünlem) karakterini yazın. Bu size bir dış komut çalıştırma + olanağı verir. + + 3. Örnek olarak ! karakterini takiben ls yazın ve 'a basın. Bu size + o anda bulunduğunuz dizindeki dosyaları gösterecektir. Veya ls + çalışmazsa :!dir komutunu kullanın. + + NOT: Herhangi bir dış komutu bu yolla çalıştırmak mümkündür. + + NOT: Tüm : komutlarından sonra düğmesine basılmalıdır. Bundan + sonra bunu her zaman anımsatmayacağız. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.5.2: DOSYA YAZMAYA DEVAM + + + ** Dosyaya yapılan değişikliği kaydetmek için :w DOSYA_ADI yazın. ** + + 1. Bulunduğunuz dizini listelemek için :!dir veya :!ls yazın. + Komuttan sonra düğmesine basacağınızı zaten biliyorsunuz. + + 2. Mevcut olmayan bir dosya adı seçin, örneğin DENEME. + + 3. Şimdi :w DENEME yazın (DENEME sizin seçtiğiniz dosya adıdır). + + 4. Bu tüm dosyayı (Vim Tutor) DENEME isminde başka bir dosyaya yazar. + Bunu doğrulamak için, :!ls veya :!dir yazın ve yeniden bulunduğunuz + dizini listeleyin. + + NOT: Eğer Vim'den çıkıp kaydettiğiniz DENEME dosyasını açarsanız, bunun + kaydettiğiniz vimtutor'un gerçek bir kopyası olduğunu görürsünüz. + + 5. Şimdi dosyayı şu komutları vererek silin: + Windows: :!del DENEME + Unix (macOS, Linux, Haiku): :!rm DENEME + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.5.3: YAZMA İÇİN METİN SEÇME + + + ** Dosyanın bir bölümünü kaydetmek için, v hareket :w DOSYA_ADI yazın. ** + + 1. İmleci bu satırın üzerine getirin. + + 2. v düğmesine basarak imleci aşağıdaki beşinci adıma taşıyın. Metnin + seçildiğine dikkat edin. + + 3. : karakterini yazın. Ekranın alt kısmında :'<'> çıkacaktır. + + 4. w DENEME yazın; DENEME burada henüz var olmayan bir dosyadır. + düğmesine basmadan önce :'<'>w DENEME gördüğünüzden emin olun. + + 5. Vim seçilen satırları DENEME dosyasına yazacaktır. :!ls veya :!dir ile + bakarak dosyayı görün. Henüz silmeyin; bir sonraki derste kullanacağız. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.5.4: DOSYALARI BİRLEŞTİRME VE BÖLÜM EKLEME + + + ** Bir dosyanın içeriğini eklemek için :r DOSYA_ADI yazın. ** + + 1. İmleci bu satırın hemen bir üstüne koyun. + + NOT: İkinci adımdan sonra Ders 1.5.3'ün metnini göreceksiniz. + Sonrasında AŞAĞI düğmesi ile bu derse geri gelin. + + 2. Şimdi :r DENEME komutunu kullanarak DENEME dosyasını bu dosyanın içine + getirin. Getirdiğiniz dosya imlecin hemen altına yerleştirilir. + + 3. Dosyanın getirildiğini doğrulamak için YUKARI düğmesini kullanarak + Ders 1.5.3'ün iki adet kopyası olduğunu görün, özgün sürümü ve kopyası. + + NOT: Bu komutu kullanarak bir dış komutun çıktısını da dosyanın içine + koyabilirsiniz. Örneğin :r !ls yazmak ls komutunun vereceği çıktıyı + dosyanın içinde hemen imlecin altındaki satıra koyar. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.5: ÖZET + + + 1. :!komut bir dış komut çalıştırır. + Bazı yararlı örnekler: + (MS-DOS) (Unix) + :!dir :!ls - bir dizini listeler. + :!del DOSYA :!rm DOSYA - DOSYA'yı siler. + + 2. :w DOSYA_ADI o anki Vim dosyasını diske DOSYA_ADI ile kaydeder. + + 3. v hareket :w DOSYA_ADI seçilmiş satır aralığını DOSYA_ADI ile kaydeder. + + 4. :r DOSYA_ADI imlecin altından başlayarak DOSYA_ADI isimli dosyanın + içeriğini ekler. + + 5. :r !dir veya !ls bu iki komutun (dosyaları listeleme) içeriklerini + okur ve dosyanın içine yerleştirir. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.6.1: AÇ KOMUTU + + + ** İmlecin aşağısına satır açmak ve EKLE kipine geçmek için o yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 2. İmlecin aşağısına bir satır açmak ve EKLE kipine geçmek için o + (küçük harfle) yazın. + + 3. Şimdi herhangi bir metin girin ve EKLE kipinden çıkmak için + düğmesine basın. + +---> o yazdıktan sonra imleç EKLE kipinde açılan satırın üzerine gider. + + 4. İmlecin üzerinde bir satır açmak için, yalnızca büyük O yazın. Bunu + aşağıdaki satırda deneyin. + +---> Bu satırın üzerine bir satır açmak için imleç bu satırdayken O yazın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.6.2: EKLE KOMUTU + + + ** İmleçten sonra metin eklemek için a yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satıra götürün. + + 2. İmleç satırın sonuna gelinceye dek e düğmesine basın. + + 3. İmleçten SONRA metin eklemek için a yazın. + + 4. Şimdi ilk satırı ikincisi gibi tamamlayın. EKLE kipinden çıkmak için + düğmesine basın. + + 5. e düğmesini kullanarak bir sonraki yarım sözcüğe gidin ve adım 3 ve 4'ü + tekrarlayın. + +---> Bu satı çalışabilirsiniz. Çalı met ekl +---> Bu satırda çalışabilirsiniz. Çalışırken metin eklemeyi kullanın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.6.3: BİR BAŞKA DEĞİŞTİR KOMUTU + + + ** Birden fazla karakter değiştirmek için büyük R yazın. ** + + 1. İmleci aşağıda ---> ile imlenmiş İLK satıra götürün. İmleci ilk xxx'in + başına getirin. + + 2. Şimdi R düğmesine basın ve ikinci satırdaki sayıyı ilk satırdaki xxx'in + yerine yazın. + + 3. düğmesine basarak DEĞİŞTİR kipinden çıkın. Satırın geri kalanının + değişmediğini gözlemleyin. + + 4. Kalan xxx'i de değiştirmek için adımları tekrarlayın. + +---> 123 sayısına xxx eklemek size yyy toplamını verir. +---> 123 sayısına 456 eklemek size 579 toplamını verir. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.6.4: METİN KOPYALA VE YAPIŞTIR + + + ** y işlecini kullanarak metin kopyalayın ve p kullanarak yapıştırın. ** + + 1. İmleci aşağıda ---> ile imlenmiş satıra getirin, "a)"nın ardına koyun. + + 2. v ile GÖRSEL kipe geçin ve imleci "ilk" sözcüğünün öncesine getirin. + + 3. y düğmesine basarak seçili metni kopyalayın. + + 4. İmleci bir sonraki satırın sonuna j$ ile getirin. + + 5. p düğmesine basarak metni yapıştırın. Akabinde düğmesine basın. + + 6. GÖRSEL kipe geçerek "öge" sözcüğünü seçin, y ile kopyalayın, j$ ile + ikinci satırın sonuna gidin ve p ile sözcüğü yapıştırın. + +---> a) Bu ilk öge +---> b) + + NOT: y komutunu bir işleç olarak da kullanabilirsiniz; yw komutu yalnızca + bir sözcüğü kopyalar. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.6.5: SET KOMUTU + + + ** Arama veya değiştirme işlemlerinin büyük/küçük harf durumunu görmezden + gelmesi için SET komutunu kullanın. + + 1. 'yoksay' sözcüğünü aramak için /ignore yazın. Bunu n düğmesine basarak + birkaç kez yenileyin. + + 2. :set ic yazarak 'ic' (BÜYÜK/küçük harf yoksay) ayarını seçin. + + 3. Yeniden n düğmesine basarak 'yoksay' sözcüğünü aramayı sürdürün. Artık + YOKSAY ve yoksay örneklerinin de bulunduğunu gözlemleyin. + + 4. :set hls is yazarak 'hlsearch' ve 'incsearch' ayarlarını seçin. + + 5. /ignore yazarak arama komutunu tekrar verin ve ne olacağını görün. + + 6. BÜYÜK/küçük harf ayrımsız arama ayarını kapatmak için :set noic yazın. + + NOT: Sonuçların ekranda vurgulanmasını istemiyorsanız :nohlsearch yazın. + NOT: Eğer yalnızca bir arama işlemi için BÜYÜK/küçük harf ayrımsız arama + yapmak istiyorsanız /ignore\c komutunu kullanın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + DERS 1.6 ÖZET + + + 1. o komutu imlecin altında bir satır açar ve imleci bu açılmış satıra + EKLE kipinde yerleştirir. + O komutu imlecin üzerinde bir satır açar. + + 2. a komutu imleçten sonra metin girişine olanak verir. + A komutu geçerli satırın sonuna giderek metin girişine olanak verir. + + 3. e komutu imleci bir sözcüğün sonuna taşır. + + 4. y işleci metni kopyalar, p işleci yapıştırır. + + 5. R komutu DEĞİŞTİR kipine girer ve 'ye basılana kadar kalır. + + 6. ":set xxx" yazmak "xxx" seçeneğini ayarlar. Bazı seçenekler: + 'ic' 'ignorecase' BÜYÜK/küçük harf ayrımını arama yaparken kapatır. + 'is' 'incsearch' Bir arama metninin tüm uyan kısımlarını gösterir. + 'hls' 'hlsearch' Uyan sonuçların üzerini vurgular. + Ayarlama yaparken ister kısa ister uzun sürümleri kullanabilirsiniz. + + 7. Bir ayarı kapatmak için "no" ekleyin, örneğin :set noic. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.7.1: YARDIM KAYNAKLARI + + + ** Çevrimiçi yardım sistemini kullanın ** + + Vim geniş bir çevrimiçi yardım sistemine sahiptir. Başlamak için şu üçünü + deneyebilirsiniz: + + - (eğer varsa) düğmesine basın + - (eğer varsa) düğmesine basın + - :help yazın ve düğmesine basın + + Yardım penceresindeki metinleri okuyarak yardım sisteminin nasıl + çalıştığını öğrenin. + Bir pencereden diğerine geçmek için W ikilisini kullanın. + Yardım penceresini kapatmak için :q yazıp düğmesine basın. + + ":help" komutuna değişken (argüman) vererek herhangi bir konu hakkında + yardım alabilirsiniz. Şunları deneyin: + + :help w + :help c_ D + :help insert-index + :help user-manual + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.7.2: BİR BAŞLANGIÇ BETİĞİ OLUŞTURUN + + + ** Vim'in özelliklerine bakın ** + + Vim Vi'dan çok daha fazla özelliğe sahiptir fakat birçoğu öntanımlı olarak + kapalıdır. Daha fazla özellik kullanabilmek için bir "vimrc" dosyası + oluşturmalısınız. + + 1. "vimrc" dosyasını düzenlemeye başlayın. İşletim sistemlerine göre: + + :e ~/.vimrc Unix için + :e ~/_vimrc Windows için + + 2. Şimdi örnek "vimrc" dosyası içeriğini okuyun: + + :r $VIMRUNTIME/vimrc_example.vim + + 3. Dosyayı :w ile kaydedin. + + Vim'i bir sonraki çalıştırılmasında sözdizim vurgulaması kullanacaktır. + Tüm tercih ettiğiniz ayarları bu "vimrc" dosyasına ekleyebilirsiniz. + Daha fazla bilgi için :help vimrc-intro yazın. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.7.3: TAMAMLAMA + + + ** D ve ile komut istemi ekranında tamamlama ** + + 1. :set nocp komutunu kullanarak Vim'in uyumlu kipte olmadığından + emin olun. + + 2. Bulunduğunuz dizindeki dosyalara :!ls veya :!dir ile bakın. + + 3. Bir komutun baş kısmını yazın, örneğin :e. + + 4. D'ye bastığınızda Vim size e ile başlayan komutları + gösterecektir. + + 5. d kullandığınızda Vim komutu kendinden :edit olarak + tamamlayacaktır. + + 6. Şimdi bir boşluk ekleyin ve var olan bir dosyanın baş harflerini yazın. + Örneğin :edit DOS. + + 7. düğmesine basın. Eğer yalnızca bu dosyadan bir tane varsa Vim + sizin için dosya adının geri kalanını tamamlayacaktır. + + NOT: Tamamlama birçok komut için çalışır. Yalnızca D ve + ikililerini deneyin. Özellikle :help için çok yararlıdır. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Ders 1.7: ÖZET + + + 1. :help yazmak veya veya düğmelerine basmak yardım + penceresini açar. + + 2. :help cmd yazarak cmd hakkında bilgi sahibi olabilirsiniz. + + 3. W kullanarak başka pencerelere geçebilirsiniz. + + 4. :q kullanarak yardım penceresini kapatabilirsiniz. + + 5. Bir vimrc başlangıç betiği oluşturarak yeğlenen ayarlarınızı + saklayabilirsiniz. + + 6. Bir : komutu girerken D'ye basarak olanaklı tamamlama + seçeneklerini görebilirsiniz. 'a basarak tamamlamayı seçin. + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Böylece Vim Eğitmeni tamamlanmış oldu. Eğitmendeki amaç Vim düzenleyicisi + hakkında kısa bir bilgi vermek ve onu kolayca kullanmanızı sağlamaktı. + Vim'in tamamını öğretmek çok zordur zira Vim birçok komuta sahiptir. + Bundan sonra ":help user-manual" komutu ile kullanıcı kılavuzunu + okumalısınız. + + Daha fazla okuma ve çalışma için şu kitabı öneriyoruz: + + Vim - Vi Improved - by Steve Oualline + Publisher: New Riders + + Tümüyle Vim için hazırlanmış ilk kitaptır. Özellikle ilk kullanıcılar için + çok uygundur. + Kitapta birçok örnek ve resim bulunmaktadır. + https://iccf-holland.org/click5.html adresine bakabilirsiniz. + + Bu kitap daha eskidir ve Vim'den daha çok Vi içindir ancak tavsiye edilir: + + Learning the Vi Editor - by Linda Lamb + Publisher: O'Reilly & Associates Inc. + + Vi hakkında bilmek isteyeceğiniz neredeyse her şeyin bulunduğu bir kitap. + 6. Basım aynı zamanda Vim hakkında da bilgi içermektedir. + + Bu eğitmen Michael C. Pierce ve Robert K. Ware tarafından yazıldı, + Charles Smith tarafından sağlanan fikirlerle Colorado School Of Mines, + Colorado State University. E-posta: bware@mines.colorado.edu + + Vim için değiştiren: Bram Moolenaar + + Türkçe çeviri: + Serkan "heartsmagic" Çalış (2005), adresimeyaz (at) yahoo (dot) com + + 2019 güncellemesi: + Emir SARI, bitigchi (at) me (dot) com + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.uk b/git/usr/share/vim/vim92/tutor/tutor1.uk new file mode 100644 index 0000000000000000000000000000000000000000..c91d25aa3fc468d86cc6dd5741b042f2171e57d2 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.uk @@ -0,0 +1,976 @@ +=============================================================================== += Ласкаво просимо в уроки VIM = +=============================================================================== + + Vim дуже потужний редактор, що має багато команд. Всі команди неможливо + помістити в підручнику на зразок цього, але цих уроків достатньо, щоб + ви навчились з легкістю користуватись Vim як універсальним редактором. + + УВАГА: + Уроки цього підручника вимагають зміни тексту. Зробіть копію файлу, щоб + практикуватись на ньому. + + Важливо пам'ятати, що цей підручник має на меті навчання на практиці. + Це означає що ви маєте застосовувати команди щоб вивчити їх. Просто + прочитавши текст, ви забудете команди. + + Кнопки на клавіатурі, будемо позначати квадратними дужками: [кнопка]. + + А зараз переконайтесь, що включена англійська розкладка і не затиснутий + Caps Lock, і натисніть кнопку j щоб переміститись до першого уроку. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.1: ПЕРЕМІЩЕННЯ КУРСОРА + + + ** Щоб переміщати курсор використовуйте кнопки [h],[j],[k],[l], + як вказано на схемі: + ^ + [k] + <[h] [l]> + [j] + v + + Таке розміщення спочатку може видатись трохи дивним. Як наприклад те, що + кнопка [l] переміщує курсор вправо. Але клавіші розміщені так, щоб + мінімізувати кількість рухів. Найчастіша дія яку користувач робить з + текстовим файлом - це читає його. А при читанні прокручують текст вниз. + Тому вниз прокручує [j] - вона знаходиться якраз під вказівним пальцем + правої руки. + + Курсор можна переміщувати і класичним способом (курсорними клавішами), але + зручніше буде, якщо ви опануєте спосіб Vim. (Особливо якщо ви вже вмієте + набирати всліпу). + + 1. Попереміщуйте курсор по екрану, поки не призвичаїтесь. + + 2. Перемістіться до наступного уроку. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.2: Вихід з Vim + + +Увага! Перед тим як виконувати цей урок прочитайте його повністю. + + 1. Натисніть [ESC] (щоб впевнитись що ви в звичайному режимі). + + 2. Наберіть: :q! [ENTER]. + Це завершує роботу, відкидаючи всі зміни які ви здійснили. + + 3. Коли ви побачите привітання терміналу введіть команду яку ви використали + щоб відкрити цей підручник. Скоріш за все це було: vim tutor.txt [ENTER] + + 4. Якщо ви запам'ятали кроки з 1 по 3, виконайте їх, і переходьте до + наступного уроку. + +Зауваження: Команда :q! [ENTER] завершує роботу і відкидає всі зміни. Через + кілька уроків ви навчитесь зберігати зміни в файл. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.3:РЕДАГУВАННЯ ТЕКСТУ. ВИДАЛЕННЯ. + + + ** Натисніть [x] щоб видалити символ під курсором. ** + + 1. Перемістіть курсор до лінії нижче, яка позначена так: --->. + + 2. Щоб виправити помилки перемістіть курсор так, щоб він став над + символом який треба видалити. + + 3. Натисніть [x] щоб видалити непотрібний символ. + + 4. Повторіть кроки з другого по четвертий, поки речення не стане правильним. + +---> Ккоровва перрестрибнуууууула ччерезз мііісяццць. + + 5. Тепер, коли речення правильне, можна перейти до уроку 1.1.4. + +Зауваження: Протягом навчання не старайтесь запам'ятати все. + Вчіться практикою. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.4: РЕДАГУВАННЯ ТЕКСТУ. ВСТАВКА + + + ** Натисніть [i] щоб вставити текст. ** + + 1. Перемістіть курсор на перший рядок позначений: --->. + + 2. Перемістіть курсор на символ, ПІСЛЯ якого потрібно вставити текст. + + 3. Натисніть [i] і наберіть необхідні вставки. + + 4. Коли всі помилки виправлені натисніть [ESC] щоб повернутись в звичайний + режим. + +---> З прав текст. +---> З цього рядка пропав деякий текст. + + 5. Коли призвичаїтесь вставляти текст - переходьте до уроку 1.1.5. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.5: РЕДАГУВАННЯ ТЕКСТУ. ДОДАВАННЯ. + + + ** Натисніть [A] щоб додати текст. ** + +Увага! Тут і далі, коли мають наувазі клавішу з буквою в верхньому + регістрі, то це означає що її натискають з затиснутою [SHIFT]. + + 1. Перемістіть курсор до першої лінії внизу позначеної --->. + Не має значення над яким символом знаходиться курсор. + + 2. Натисніть [A] і введіть необхідне доповнення. + + 3. Коли додавання завершене натисніть [ESC] щоб повернутись в + звичайний режим. + + 4. Перемістіть курсор до другої лінії позначеної ---> і повторіть + кроки 2 і 3 щоб виправити речення. + +---> З цього рядка пропущ + З цього рядка пропущений текст. +---> З цього рядка також + З цього рядка також пропущений текст. + + 5. Після виконання вправ, переходьте до наступного уроку. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.1.6: РЕДАГУВАННЯ ФАЙЛУ + + ** Використайте :wq щоб зберегти файл і вийти.** + +Увага! Перед виконанням уроку прочитайте його повністю. + + 1. Вийдіть з цього підручника як ви робили в уроці 1.1.2: :q![ENTER] + Або якщо ви маєте доступ до іншого терміналу виконуйте наступні + дії в ньому. + + 2. В терміналі наберіть команду: vim НазваФайлу [ENTER] + 'vim' - команда для запуску редактора, НазваФайлу - файл який будемо + редагувати. Якщо ввести неіснуючий файл, то він створиться + + 3. Відредагуйте текст, як навчились у попередніх уроках. + + 4. Щоб зберегти зміни у файлі, і вийти з Vim наберіть: :wq [ENTER] + + 5. Якщо ви вийшли з підручника на першому кроці, то зайдіть в нього + знову і переходьте до підсумку. + + 6. Після прочитання і засвоєння попередніх кроків виконайте їх. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.1 + + + 1. Курсор керується курсорними клавішами, або клавішами [h][j][k][l] + [h] (вліво) [j] (вниз) [k] (вверх) [l] (вправо) + + 2. Щоб запустити Vim з терміналу наберіть: vim Назва файлу [ENTER] + + 3. Щоб вийти з Vim наберіть: [ESC] :q! [ENTER] щоб відкинути всі зміни. + або наберіть: [ESC] :wq [ENTER] щоб зберегти всі зміни. + + 4. Щоб видалити символ під курсором натисніть [x]. + + 5. Щоб вставити, чи доповнити текст наберіть: + [i] текст що вставляєтсья [ESC] вставиться перед курсором + [A] текст до додається [ESC] додасть текст до рядка + +Зауваження: Натискання [ESC] перенесе вас в звичайний режим, чи відмінить + не до кінця введену команду. + +Тепер переходьте до уроку 1.2. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.1: КОМАНДИ ВИДАЛЕННЯ + + + ** Введіть dw щоб видалити слово. ** + + 1. Натисніть [ESC], щоб переконатись що ви в звичайному режимі. + + 2. Перемістіть курсор до лінії нижче позначеної --->. + + 3. Перемістіть курсор до початку слова що має бути видалене. + + 4. Введіть dw щоб слово пропало. + + Зауваження: Буква d з'явиться в останньому рядку екрану, якщо ви її натиснули. + Vim чекає введення наступного символа. Якщо з'явилось щось інше + значить ви щось не так ввели. Натисніть [ESC] і почніть спочатку. + +---> Є деякі слова весело, які не потрібні папір в цьому реченні. + + 5. Повторюйте кроки 3 і 4 поки речення не стане правильне, а тоді переходьте + до уроку 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.2: БІЛЬШЕ КОМАНД ВИДАЛЕННЯ + + + ** Наберіть d$ щоб видалити символи від курсора до кінця рядка. ** + + 1. Натисніть [ESC] щоб переконатись що ви в звичайному режимі. + + 2. Перемістіть курсор до лінії нижче, що позначена --->. + + 3. Перемістіть курсор до кінця правильного рядка (ПІСЛЯ першої крапки). + + 4. Введіть d$ щоб видалити все до кінця рядка. + +---> Хтось надрукував кінець цього рядка двічі. кінець цього рядка двічі. + + + 5. Перейдіть до уроку 1.2.3 щоб розібратись в цьому детальніше. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.3:ОПЕРАТОРИ І ПЕРЕМІЩЕННЯ + + + Багато команд що змінюють текст утворені з оператора і переміщення. + Формат команди видалення з оператором d подано нижче: + + d переміщення + + Де: + d - оператор видалення. + переміщення - з чим працює оператор (описано нижче). + + Короткий список переміщень: + w - до початку наступного слова, НЕ ВКЛЮЧАЮЧИ його перший символ. + e - до кінця поточного слова, ВКЛЮЧАЮЧИ останній символ. + $ - до кінця рядка, ВКЛЮЧАЮЧИ останній символ. + + Тому введення de видалить символи від курсора, до кінця слова. + +Зауваження: Натискання тільки переміщення в звичайному режимі відповідно + переміщує курсор. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.4: ВИКОРИСТАННЯ ЛІЧИЛЬНИКА ДЛЯ ПЕРЕМІЩЕННЯ + + + ** Введення числа перед переміщенням повторює його стільки раз. ** + + 1. Перемістіть курсор до початку рядка позначеного ---> + + 2. Введіть 2w щоб перемістити курсор на два слова вперед. + + 3. Введіть 3e щоб перемістити курсор в кінець третього слова. + + 4. Введіть 0 (нуль) щоб переміститись на початок рядка. + + 5. Повторіть кроки 2 і 3 з різними числами. + +---> А це просто рядок зі словами, серед яких можна рухати курсором. + + 6. Переходьте до уроку 1.2.5. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.5: БАГАТОРАЗОВЕ ВИДАЛЕННЯ + + + ** Введення числа з оператором повторює його стільки ж разів. ** + + В комбінації з оператором видалення, і переміщення з лічильника можна + видаляти потрібне число елементів. + Для цього введіть + d число переміщення + + 1. Перемістіться до першого слова в ВЕРХНЬОМУ РЕГІСТРІ в рядку + позначеному --->. + + 2. Введіть d2w щоб видалити два слова. + + 3. Повторіть кроки 1 і 2 з різними числами, щоб видалити все зайве. + +---> цей ABC DE рядок FGHI JK LMN OP слів Q RS TUV почищений. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.6: ОПЕРАЦІЇ З РЯДКАМИ + + + ** Введіть dd щоб видалити весь рядок. ** + + Через те, що видалення всього рядка є доволі частою дією розробники Vi + вирішили що для цієї операції потрібна проста команда, як dd. + + 1. Перемістіть курсор до другого рядка в вірші нижче. + 2. Введіть dd щоб видалити рядок. + 3. Потім перемістіться до четвертого рядка. + 4. Введіть 2dd щоб видалити два рядки. + +---> 1) Троянди червоні, +---> 2) Багнюка весела, +---> 3) Волошки голубі, +---> 4) В мене є машина, +---> 5) Годинник каже час, +---> 6) Цукерки солодкі, +---> 7) Дарую тобі. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.2.7: ВІДКИНУТИ ЗМІНИ + + + ** Натисніть u щоб скасувати останні команди, U щоб виправити ввесь рядок. ** + + 1. Перемістіть курсор до рядка нижче позначеного ---> на місце першої помилки. + 2. Натисніть x щоб видалити непотрібний символ. + 3. Потім натисніть u щоб відмінити виправлення. + 4. Цього разу виправте всі помилки в рядку використовуючи команду x . + 5. Після цього введіть U, і відкиньте всі зміни в цілому рядку. + 6. Натисніть u кілька разів, щоб відмінити U і попередні команди. + 7. Тепер натисніть CTRL-R кілька разів, щоб повторити відмінені команди + (відмінити відміну). + +---> Вииправте помилки наа цьоому рядку і вііідмініть їх. + + 8. Тепер можна переходити до підсумків другого уроку. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.2 + + + 1. Щоб видалити все від курсора аж до початку наступного слова введіть: dw + 2. Щоб видалити від курсора до кінця рядка: d$ + 3. Щоб видалити увесь рядок: dd + + 4. Щоб повторити переміщення, поставте перед ним число повторів: 2w + 5. Формат команди зміни: + оператор [число] переміщення + де: + оператор - що робити, як наприклад d для видалення + [число] - кількість повторів + переміщення - куди переміститись перед виконанням оператора, як + як наприклад w (слово), $ (кінець рядка), і т.і. + + 6. Щоб переміститись до початку рядка використовуйте нуль: 0 + + 7. Щоб відмінити попередню дію введіть: u (u в нижньому регістрі) + Щоб відмінити всі зміни рядка введіть: U (U в верхньому регістрі) + Щоб скасувати відміну натисніть: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.1: КОМАНДА PUT + + + ** Введіть p щоб вставити перед тим видалений текст після курсору. ** + + 1. Перемістіть курсор до першої ---> лінії внизу. + + 2. Введіть dd щоб видалити рядок і зберегти його в регістрі Vim. + + 3. Перемістіть курсор до рядка в), НАД тим місцем де має бути видалений рядок. + + 4. Натисніть p щоб вставити рядок під курсором. + + 5. Повторіть кроки від 2 до 4 щоб вставити всі рядки в правильному порядку. + +---> г) всіх до кузні іззива. +---> б) а в коваля серце тепле, +---> в) а він клепче та й співа, +---> а) А в тій кузні коваль клепле, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.2: Команда заміни + + + ** Наберіть rx щоб замінити символ під курсором на x . ** + + 1. Перемістіть курсор до першого рядка нижче, позначеного --->. + + 2. Помістіть курсор над першою помилкою. + + 3. Наберіть r а потім символ який має стояти там. + + 4. Повторіть кроки з 2 по 3 поки перший рядок не стане еквівалентним другому. + +---> Коли ця лігія набираламт. хтось наьтснкв геправмльні унопкм! +---> Коли ця лінія набиралась, хтось натиснув неправильні кнопки! + + 5. Зараз переходьте до уроку 1.3.3. + +Примітка: Ви маєте вчитись діями, а не простим заучуванням, пам'ятаєте? + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.3: ОПЕРАТОР ЗАМІНИ + + + ** Щоб зробити заміну до кінця слова введіть ce . ** + + 1. Перемістіть курсор до першого рядка позначеного --->. + + 2. Помістіть курсор над у в слові рукра. + + 3. Введіть ce і правильне закінчення слова (ядок в цьому випадку). + + 4. Натисніть [ESC] і переходьте до наступного символа, який потрібно замінити. + + 5. Повторюйте кроки 3 і 4 поки перше речення не стане таким самим як і друге. + +---> Цей рукра має кілька слів що потретамув заміни за допоцкщшг оператора. +---> Цей рядок має кілька слів що потребують заміни за допомогою оператора. + +Зауважте що ce видаляє слово, і поміщає вас в режим вставки. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.3.4: БІЛЬШЕ ЗМІН З c + + + ** Оператор заміни використовується з тими ж переміщеннями що і видалення. ** + + 1. Оператор заміни працює в такий же спосіб що і видалення. Формат: + + c [число] переміщення + + 2. Переміщення ті ж самі, такі як w (слово) і $ (кінець рядка). + + 3. Перемістіться до першого рядка позначеного --->. + + 4. Перемістіть курсор до першої помилки. + + 5. Наберіть c$ і решту рядка, щоб він став таким як другий і натисніть [ESC]. + +---> Кінець цього рядка потребує якихось дій щоб стати таким як кінець другого. +---> Кінець цього рядка можна виправити за допомогою команди c$. + +Примітка: Можна використовувати кнопку Backspace щоб виправляти опечатки при + наборі. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.3 + + + 1. Щоб вставити текст який був видалений наберіть p . Це вставляє + видалений текст ПІСЛЯ курсора (якщо був видалений рядок, вставка + продовжиться з рядка під курсором). + + 2. Щоб замінити символ під курсором наберіть r і необхідний символ. + + 3. Оператор заміни дозволяє робити заміну тексту від курсору, до потрібного + переміщення. Наприклад щоб замінити все від курсора до кінця слова + вводять ce . Щоб замінити закінчення рядка тиснуть c$ . + + 4. Формат заміни: + + c [число] переміщення + +Почнемо наступний урок. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.1: ПОЗИЦІЯ КУРСОРА І СТАТУС ФАЙЛУ + + ** Введіть CTRL-G щоб побачити вашу позицію в файлі, і його статус. + Введіть G щоб переміститись на потрібний рядок файлу. ** + + ПРИМІТКА: Прочитайте увесь урок перед виконанням будь-яких кроків!! + + 1. Затисніть кнопку Ctrl і натисніть g . Це називається CTRL-G. + Внизу з'явиться повідомлення з назвою файлу, і позицією в файлі. + Запам'ятайте номер рядка для кроку 3. + +ПРИМІТКА: Ви бачите позицію курсора в нижньому правому кутку екрану. + Це трапляється коли включена опція 'ruler' (читайте :help 'ruler' ) + + 2. Натисніть G щоб переміститись до кінця файлу. + Наберіть gg щоб переміститись до початку файлу. + + 3. Наберіть номер рядка де ви були а потім G. Це перенесе вас до потрібного + рядка. + + 4. Якщо ви запам'ятали три попередні кроки, то виконуйте. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.2: КОМАНДА ПОШУКУ + + + ** Введіть / (слеш) і фразу, щоб шукати її в тексті. ** + + 1. В звичайному режимі введіть символ / . Зауважте що він і курсор + з'являються в низу екрану, як і з командою : . + + 2. Тепер введіть 'очепятка' . Це буде словом яке ви шукатимете. + + 3. Щоб здійснити пошук цієї фрази ще раз введіть n . + Щоб шукати в протилежному напрямку введіть N . + + 4. Щоб шукати фразу в зворотньому напрямку використайте ? замість / . + + 5. Щоб переміститись назад до того місця звідки прийшли натисніть CTRL-O. + Повторіть щоб повернутись ще далі. (Це як кнопка назад в браузері) + CTRL-I переміщує вперед. + +---> "очепятка" не є способом написати опечатка; очепятка це опечатка. +Примітка: Коли пошук досягає кінця файлу він продовжує з початку, хіба що + опція 'wrapscan' була виключена. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.3: ПОШУК ПАРНИХ ДУЖОК + + + ** Введіть % щоб знайти парну ),], чи } . ** + + 1. Помістіть курсор над будь-якою (, [, чи { в рядку нижче позначеному --->. + + 2. Тепер введіть символ % . + + 3. Курсор переміститься до відповідної дужки. + + 4. Введіть % щоб перемістити курсор до іншої парної дужки. + + 5. Спробуйте з іншими дужками, і подивіться що вийде. + +---> Це ( тестовий рядок ( з такими [ такими ] і такими { дужками } в ньому. )) + + +Примітка: Це корисно при відлагоджуванні програми з неправильними дужками. + І взагалі в кожному тексті дужки мають стояти правильно! + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.4.4: КОМАНДА ЗАМІНИ + + + ** Наберіть :s/старе/нове/g щоб замінити 'старе' на 'нове'. ** + + 1. Перемістіть курсор до лінії нижче позначеної --->. + + 2. Введіть :s/(біп)/блять [ENTER] . Зауважте що ця команда змінює тільки перше + входження (біп) в рядку. + + 3. Потім наберіть :s/(біп)/блять/g . Додавання g вказує що заміни + робляться у всьому рядку глобально. + +---> люди не лю(біп), коли в слові "лю(біп)" "(біп)" заміняють на "(бiп)". + + 4. Щоб замінити кожне входження послідовності символів між двома рядками + наберіть :#,#s/старе/нове/g де #,# діапазон рядків в яких робиться + заміна. + Введіть :%s/старе/нове/g щоб змінити кожне входження у цілому файлі. + Введіть :%s/старе/нове/gc щоб замінити, кожне входження у файлі з + підтвердженням кожної заміни. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.4 + + + 1. CTRL-G виводить вашу позицію в файлі і назву файлу. + G переміщує в кінець файлу. + число G переміщує до рядка з вказаним номером. + gg переміщує до першого рядка. + + 2. Ввід / і послідовності символів шукає послідовність ПІСЛЯ курсора. + Ввід ? і послідовності символів шукає послідовність ПЕРЕД курсором. + + Після пошуку введіть n щоб знайти наступне входження в тому ж напрямку + або N щоб шукати в протилежному напрямку. + CTRL-O відносить вас до старішої позиції, CTRL-I до новішої позиції. + + 3. Ввід % коли курсор знаходиться над дужкою (,),[,],{, чи } переносить + курсор до протилежної дужки. + + 4. Щоб замінити перше входження старого слова на нове :s/старе/нове + Щоб замінити всі старі слова рядка на нові :s/старе/нове/g + Щоб замінити фрази між двома рядками :#,#s/старе/нове/g + Щоб замінити всі входження в файлі :%s/старе/нове/g + Щоб щоразу підтверджувати заміну додайте 'c' :%s/старе/нове/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.1: ЯК ВИКОНАТИ ЗОВНІШНЮ КОМАНДУ + + + ** Введіть :! і зовнішню команду, щоб виконати ту команду. ** + + 1. Введіть відому команду : щоб встановити курсор в низу екрану. + Це дозволяє вводити команди командного рядка. + + 2. Тепер введіть ! (символ знаку оклику) . Це дозволить вам виконати + будь-яку зовнішню команду. + + 3. Як приклад введіть :!ls [ENTER]. Це покаже список файлів каталогу, так + так ніби ви знаходитесь в оболонці терміналу. Або використайте :!dir + якщо ви раптом знаходитесь в Windows. + +Примітка: Можна запускати будь-яку зовнішню команду таким способом, навіть з + аргументами. + +Примітка: Всі команди що починаються з : мають закінчуватись натисканням + [ENTER]. Більше на цьому не наголошуватиметься. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.2: ЩЕ ПРО ЗАПИС ФАЙЛІВ + + + ** Щоб зберегти змінений текст, введіть :w НАЗВА_ФАЙЛУ ** + + 1. Введіть :!dir чи :!ls щоб переглянути вміст вашої директорії. + Вам вже казали що після цього тиснуть [ENTER]. + + 2. Виберіть ім'я файлу яке ще не використовується, наприклад TEST. + (Взагалі то це не обов'язково, якщо вміст обраного файлу не + є цінним) + + 3. Тепер введіть: :w TEST (де TEST це назва яку ви обрали.) + + 4. Це зберігає увесь файл (підручник Vim ) під ім'ям TEST. + Щоб перевірити знову наберіть :!ls щоб побачити зміни в каталозі. + +Примітка: Якщо ви вийдете з Vim і запустите його знову командою vim TEST, + файл що ви відкриєте буде точною копією цього, коли ви його зберегли. + + 5. Зараз видаліть файл ввівши (Unix): :!rm TEST + чи (MS-DOS): :!del TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.3: ВИБІР ТЕКСТУ ДЛЯ ЗАПИСУ + + + ** Щоб зберегти частину файлу, наберіть v переміщення :w НАЗВА_ФАЙЛУ ** + + 1. Перемістіть курсор до цього рядка. + + 2. Натисніть v і перемістіть курсор на п'ять пунктів нижче. Зауважте, що + текст виділяється. + + 3. Натисніть символ : . Внизу екрану з'являються символи :'<,'> . + + 4. Введіть w TEST , де TEST назва файлу що ще не використовується. + Переконайтесь що ви бачите :'<,'>w TEST перед тим як натиснути [ENTER]. + + 5. Vim запише вибрані рядки в файл TEST. Використайте :!dir чи !ls + щоб побачити це. Поки що не видаляйте його! Ми використаємо TEST в + наступному уроці. + +Зауваження: Натискання v починає режим візуального виділення. Ви можете + переміщувати курсор щоб змінити розмір вибраної частини. + Потім можна використати оператор щоб зробити щось з текстом. + Наприклад d видалить текст. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.5.4: ОТРИМАННЯ І ЗЛИТТЯ ФАЙЛІВ + + + ** Щоб вставити вміст файлу введіть :r НАЗВА_ФАЙЛУ ** + + 1. Помістіть курсор десь над цим рядком. + +Зауваження: Після виконання кроку 2 ви побачите текст з уроку 1.5.3. Тоді + перемістіться вниз, щоб побачити вміст цього уроку знову. + + 2. Тоді отримайте вміст вашого файлу TEST використавши команду :r TEST , + де TEST назва файлу що ви використали. + Файл що ви отримуєте поміщується під рядком курсора. + + 3. Щоб перевірити що файл вставлено, прокрутіть текст назад, і переконаєтесь + що тепер є дві копії урок 1.5.3, the original and the file version. + +Примітка: Також ви можете вставляти вивід зовнішньої програми. Наприклад + :r !ls читає вивід команди ls і вставляє його під курсором. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Підсумок 1.5 уроку + + + 1. :!команда виконує зовнішню команду. + + 2. :w НАЗВА_ФАЙЛУ записує поточний файл на диск під назвою НАЗВА_ФАЙЛУ. + + 3. v переміщення :w НАЗВА_ФАЙЛУ зберігає візуально виділену частину тексту + в файл НАЗВА_ФАЙЛУ. + + 4. :r НАЗВА_ФАЙЛУ отримує з диску файл НАЗВА_ФАЙЛУ і вставляє його під + курсором. + + 5. :r !ls читає вивід команди ls і вставляє її під поточною позицією курсора + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.1: КОМАНДА ВСТАВКИ + + + ** Введіть o щоб вставити новий рядок під курсором. ** + + 1. Перемістіть курсор на рядок нижче, позначений --->. + + 2. Натисніть o щоб вставити новий рядок ПІД курсором та перейти в + режим вставки. + + 3. Тепер введіть текст і натисніть [ESC] щоб вийти з режиму вставки. + +---> Після натискання o курсор ставиться на наступний рядок в режимі вставки. + + 4. Щоб вставити рядок НАД ABOVE курсором пишуть O в верхньому регістрі, + замість o. Спробуйте на рядку нижче. + +---> Щоб вставити рядок над цим введіть O . + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.2: КОМАНДА ДОПИСУВАННЯ + + + ** Натисніть a щоб вставити текст після курсору. ** + + 1. Перемістіть курсор до початку рядка внизу позначеного --->. + + 2. Тисніть e поки курсор не буде в кінці ря . + + 3. Натисніть a (маленьке) щоб додати текст ПІСЛЯ курсору. + + 4. Допишіть слова як рядок внизу. Натисніть [ESC] щоб вийти з режиму + вставки. + + 5. Використайте e щоб переміститись до наступного неповного слова та + to move to the next incomplete word and repeat steps 3 and 4. + +---> Цей ря дозволить вам попрактикува в дописува тексту до рядка. +---> Цей рядок дозволить вам попрактикуватись в дописуванні тексту до рядка. + +Примітка: a, i і A переходять в один і той же режим вставки, єдиною різницею + є тільки те, де вставляються символи. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.3: ІНШИЙ СПОСІБ ЗАМІНИ + + + ** Введіть велику R щоб замінити більш ніж один символ. ** + + 1. Перемістіть курсор до першого рядка внизу позначеного --->. + Перемістіть курсор до першого xxx . + + 2. Тепер натисніть R і введіть номер під ним з другого рядка, так що він + замінює xxx . + + 3. Натисніть [ESC] щоб покинути режим заміни. Зауважте, що решта рядка + залишається незмінною. + + 4. Повторіть кроки від 1 до 3 щоб замінити всі xxx на числа з другого рядка. + +---> Додавання 123 до xxx дає xxx. +---> Додавання 123 до 456 дає 579. + +Зауваження: Режим заміни подібний до режиму вставки, тільки кожен введений + символ видаляє символ який стояв на його місці. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.4: КОПІЮВАННЯ І ВСТАВКА + + + ** Використайте оператор y щоб копіювати текст і p щоб його вставити ** + + 1. Перейдіть до рядка нижче позначеного ---> і покладіть курсор після "а)". + + 2. Перейдіть в візуальний режим за допомогою клавіші v і перемістіть курсор + якраз перед словом "один". + + 3. Введіть y щоб копіювати (yank) виділений текст. + + 4. Перемістіть курсор до кінця наступного рядка: j$ + + 5. Натисніть p щоб вставити (put) текст. Тоді введіть : два [ESC] . + + 6. так само додайте третій рядочок. + +---> а) це рядок номер один + б) + + Зауваження: також можна використовувати y як оператор; + yw копіює одне слово. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.6.5: ВСТАНОВЛЕННЯ ОПЦІЙ + + + ** Встановити опцію так що пошук чи заміна буде ігнорувати регістр ** + + 1. Знайдіть слово 'ігнорувати' ввівши : /ігнорувати + Повторіть кілька разів натискаючи n . + + 2. Встановіть опцію ігнорування регістру 'ic' (Ignore case) ввівши: :set ic + + 3. Тепер пошукайте 'ігнорувати' знову ввівши n + Зауважте що Ігнорувати та ІГНОРУВАТИ тепер також знаходяться. + + 4. Ввімкніть 'hlsearch' (підсвітку пошуку) і 'incsearch' (інтерактивність) + командою :set hls is . + + 5. Тепер пошукайте щось знову і зауважте зміни: /ігнорувати [ENTER] + + 6. Щоб вимкнути ігнорування регістру напишіть: :set noic + +Примітка: Щоб вимкнути підсвітку співпадінь введіть: :nohlsearch +Примітка: Якщо ви хочете не брати до уваги регістр тільки під час одного пошуку + використайте ключ \c. Наприклад: /ігнорувати\c [ENTER] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.6 + + 1. Введіть о щоб додати рядок ПІД курсором і почати режим вставки. + Введіть O щоб додати рядок НАД курсором. + + 2. Введіть a щоб вставити текст ПІСЛЯ курсора. + Введіть A щоб додати текст до рядка. + + 3. Переміщення e переміщує нас до кінця слова. + + 4. Оператор y копіює текст, p вставляє його. + + 5. Введення R переносить нас в режим заміни до натискання [ESC]. + + 6. Набір ":set xxx" встановлює опцію "xxx". Деякі опції: + 'ic' 'ignorecase' ігнорувати верхній/нижній регістр при пошуку + 'is' 'incsearch' показувати співпадіння пошуку під час введення + фрази + 'hls' 'hlsearch' пісвічувати всі співпадіння + Можна одночасно використовувати і коротку і довгу форму запису опції. + + 7. Використайте префікс "no" щоб вимкнути опцію: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.1: ОТРИМАННЯ ДОПОМОГИ + + + ** Використання вбудованої довідкової системи ** + + Vim має всеосяжну систему довідки. Щоб ознайомитись з нею спробуйте один з + таких способів: + - натисніть кнопку [HELP] (якщо така є) + - натисніть [F1] + - наберіть :help + + Прочитайте текст в вікні допомоги, щоб вияснити як вона працює. + Натисніть CTRL-W двічі щоб змінити вікно + Наберіть :q щоб закрити вікно довідки. + + Можна знайти довідку майже на будь-яку тему додаючи аргумент після команди + ":help" . Спробуйте одну з наступних (не забувайте натискати [ENTER]): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.2: СТВОРЕННЯ СКРИПТА АВТОЗАПУСКУ + + + ** Ввімкнення додаткових функцій Vim ** + + Vim має набагато більше функцій ніж Vi, але більшість з них відключені за + замовчуванням. Щоб почати використання додаткових функцій потрібно створити + файл "vimrc". + + 1. Почніть редагування файлу "vimrc" . Це залежить від вашої системи: + :e ~/.vimrc для Unix + :e ~/_vimrc для MS-Windows + + 2. Тепер прочитайте приклад вмісту "vimrc" : + :r $VIMRUNTIME/vimrc_example.vim + + 3. Збережіть файл: + :w + + Наступного разу коли ви запустите Vim він буде використовувати підсвітку + синтаксису. Можна додати всі ваші улюблені налаштування в цей файл. Для більш + детальної інформації введіть :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Урок 1.7.3: АВТОДОПОВНЕННЯ + + + ** Автодоповнення за допомогою CTRL-D і [TAB] ** + + 1. Переконайтесь що в Vim не включена зворотня сумісність: :set nocp + + 2. Подивіться що за файли існують в каталозі: :!ls чи :!dir + + 3. Введіть початок команди: :e + + 4. Натисніть CTRL-D і Vim покаже список команд що починаються з "e". + + 5. Натисніть [TAB] і Vim доповнить команду до ":edit". + + 6. Тепер додайте пропуск і початок існуючого імені файлу: :edit FIL + + 7. Натисніть [TAB]. Vim доповнить ім'я (якщо воно унікальне). + +Зауваження: Доповнення працює для багатьох команд. Просто натискайте CTRL-D і + [TAB]. Це особливо корисно для команди :help . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ПІДСУМОК УРОКУ 1.7 + + + 1. Введіть :help або натисніть [F1] щоб відкрити вікно довідки. + + 2. Введіть :help тема щоб знайти довідку про тему . + + 3. Введіть CTRL-W CTRL-W щоб змінити вікно. + + 4. Наберіть :q щоб закрити вікно + + 5. Створіть скрипт vimrc щоб змінювати ваші налаштування при запуску. + + 6. При наборі команди що починається з двокрапки : натисніть CTRL-D + щоб побачити можливі доповнення. Натисніть [TAB] щоб побачити одне з + доповнень. + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Це завершує уроки Vim . Вони були націлені щоб дати вам короткий вступ в + редактор Vim, достатній для того щоб використовувати редактор комфортно. + Ці уроки зовсім далеко від повних, бо Vim має набагато більше команд. Можна + прочитати інструкцію користувача : ":help user-manual". + + Для подальшого читання і вивчення рекомендується така книжка: + Vim - Vi Improved - by Steve Oualline + Publisher: New Riders + Особливо корисна для початківців. + Там багато прикладів і ілюстрацій. + Дивіться https://iccf-holland.org/click5.html + + Ці уроки були написані Майклом С. Пірсом та Робертом Уаром. + + Модифіковано для Vim Бремом Муленаром. + + + Переклад на українську Буник Т. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.vi b/git/usr/share/vim/vim92/tutor/tutor1.vi new file mode 100644 index 0000000000000000000000000000000000000000..a48a248eebc5f4b9cb15bc13f937aa7e9fa35214 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.vi @@ -0,0 +1,812 @@ +=============================================================================== += Xin chào mừng bạn đến với Hướng dẫn dùng Vim - Phiên bản 1.5 = +=============================================================================== + Vim là một trình soạn thảo rất mạnh. Vim có rất nhiều câu lệnh, + chính vì thế không thể trình bày hết được trong cuốn hướng dẫn này. + Cuốn hướng dẫn chỉ đưa ra những câu lệnh để giúp bạn sử dụng Vim + được dễ dàng hơn. Đây cũng chính là mục đich của sách + + Cần khoảng 25-30 phút để hoàn thành bài học, phụ thuộc vào thời + gian thực hành. + + Các câu lệnh trong bài học sẽ thay đổi văn bản này. Vì thế hãy tạo + một bản sao của tập tin này để thực hành (nếu bạn dùng "vimtutor" + thì đây đã là bản sao). + + Hãy nhớ rằng hướng dẫn này viết với nguyên tắc "học đi đôi với hành". + Có nghĩa là bạn cần chạy các câu lệnh để học chúng. Nếu chỉ đọc, bạn + sẽ quên các câu lệnh! + + Bây giờ, cần chắc chắn là phím Shift KHÔNG bị nhấn và hãy nhấn phím + j đủ số lần cần thiết (di chuyển con trỏ) để Bài 1.1.1 hiện ra đầy đủ + trên màn hình. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.1.1: DI CHUYỂN CON TRỎ + + + ** Để di chuyển con trỏ, nhấn các phím h,j,k,l như đã chỉ ra. ** + ^ + k Gợi ý: phím h ở phía trái và di chuyển sang trái. + < h l > phím l ở bên phải và di chuyển sang phải. + j phím j trong như một mũi tên chỉ xuống + v + 1. Di chuyển con trỏ quanh màn hình cho đến khi bạn quen dùng. + + 2. Nhấn và giữ phím (j) cho đến khi nó lặp lại. +---> Bây giờ bạn biết cách chuyển tới bài học thứ hai. + + 3. Sử dụng phím di chuyển xuống bài 1.1.2. + +Chú ý: Nếu bạn không chắc chắn về những gì đã gõ, hãy nhấn để chuyển vào + chế độ Câu lệnh, rồi gõ lại những câu lệnh mình muốn. + +Chú ý: Các phím mũi tên cũng làm việc. Nhưng một khi sử dụng thành thạo hjkl, + bạn sẽ di chuyển con trỏ nhanh hơn so với các phím mũi tên. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.1.2: VÀO VÀ THOÁT VIM + + + !! CHÚ Ý: Trước khi thực hiện bất kỳ lệnh nào, xin hãy đọc cả bài học này!! + + 1. Nhấn phím (để chắc chắn là bạn đang ở chế độ Câu lệnh). + + 2. Gõ: :q! . + +---> Lệnh này sẽ thoát trình soạn thảo mà KHÔNG ghi nhớ bất kỳ thay đổi nào mà bạn đã làm. + Nếu bạn muốn ghi nhớ những thay đổi đó và thoát thì hãy gõ: + :wq + + 3. Khi thấy dấu nhắc shell, hãy gõ câu lệnh đã đưa bạn tới hướng dẫn này. Có + thể là lệnh: vimtutor vi + Thông thường bạn dùng: vim tutor.vi + +---> 'vim' là trình soạn thảo vim, 'tutor.vi' là tập tin bạn muốn soạn thảo. + + 4. Nếu bạn đã nhớ và nắm chắc những câu lệnh trên, hãy thực hiện các bước từ + 1 tới 3 để thoát và quay vào trình soạn thảo. Sau đó di chuyển con trỏ + tới Bài 1.1.3. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.1.3: SOẠN THẢO VĂN BẢN - XÓA + + +** Trong chế độ Câu lệnh nhấn x để xóa ký tự nằm dưới con trỏ. ** + + 1. Di chuyển con trỏ tới dòng có dấu --->. + + 2. Để sửa lỗi, di chuyển con trỏ để nó nằm trên ký tự sẽ bị + xóa. + + 3. Nhấn phím x để xóa ký tự không mong muốn. + + 4. Lặp lại các bước từ 2 tới 4 để sửa lại câu. + +---> Emm xiinh em đứnng chỗ nào cũnkg xinh. + + 5. Câu trên đã sửa xong, hãy chuyển tới Bài 1.1.4. + +Chú ý: Khi học theo cuốn hướng dẫn này đừng cố nhớ, mà học từ thực hành. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.1.4: SOẠN THẢO VĂN BẢN - CHÈN + + + ** Trong chế độ Câu lệnh nhấn i để chèn văn bản. ** + + 1. Di chuyển con trỏ tới dòng có dấu ---> đầu tiên. + + 2. Để dòng thứ nhất giống hệt với dòng thứ hai, di chuyển con trỏ lên ký tự + đầu tiên NGAY SAU chỗ muốn chèn văn bản. + + 3. Nhấn i và gõ văn bản cần thêm. + + 4. Sau mỗi lần chèn từ còn thiếu nhấn để trở lại chế dộ Câu lệnh. + Lặp lại các bước từ 2 tới 4 để sửa câu này. + +---> Mot lam chang nen , ba cay chum lai hon cao. +---> Mot cay lam chang nen non, ba cay chum lai nen hon nui cao. + + 5. Sau khi thấy quen với việc chèn văn bản hãy chuyển tới phần tổng kết + ở dưới. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.1 + + + 1. Con trỏ được di chuyển bởi các phím mũi tên hoặc các phím hjkl. + h (trái) j (xuống) k (lên) l (phải) + + 2. Để vào Vim (từ dấu nhắc %) gõ: vim TÊNTẬPTIN + + 3. Muốn thoát Vim gõ: :q! để vứt bỏ mọi thay đổi. + HOẶC gõ: :wq để ghi nhớ thay đổi. + + 4. Để xóa bỏ ký tự nằm dưới con trỏ trong chế độ Câu lệnh gõ: x + + 5. Để chèn văn bản tại vị trí con trỏ trong chế độ Câu lệnh gõ: + i văn bản sẽ nhập + +CHÚ Ý: Nhấn sẽ đưa bạn vào chế độ Câu lệnh hoặc sẽ hủy bỏ một câu lệnh + hay đoạn câu lệnh không mong muốn. + +Bây giờ chúng ta tiếp tục với Bài 1.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.2.1: CÁC LỆNH XÓA + + + ** Gõ dw để xóa tới cuối một từ. ** + + 1. Nhấn để chắc chắn là bạn đang trong chế độ Câu lệnh. + + 2. Di chuyển con trỏ tới dòng có dấu --->. + + 3. Di chuyển con trỏ tới ký tự đầu của từ cần xóa. + + 4. Gõ dw để làm từ đó biến mất. + + CHÚ Ý: các ký tự dw sẽ xuất hiện trên dòng cuối cùng của màn hình khi bạn gõ + chúng. Nếu bạn gõ nhầm, hãy nhấn và làm lại từ đầu. + +---> Khi trái tỉm tìm tim ai như mùa đông giá lạnh lanh + Anh đâu thành cánh én nhỏ trùng khơi. + + 5. Lặp lại các bước cho đến khi sửa xong câu thơ rồi chuyển tới Bài 1.2.2. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.2.2: CÁC CÂU LỆNH XÓA KHÁC + + + ** gõ d$ để xóa tới cuối một dòng. ** + + 1. Nhấn để chắc chắn là bạn đang trong chế độ Câu lệnh. + + 2. Di chuyển con trỏ tới dòng có dấu --->. + + 3. Di chuyển con trỏ tới cuối câu đúng (SAU dấu . đầu tiên). + + 4. Gõ d$ để xóa tới cuối dòng. + +---> Đã qua đi những tháng năm khờ dại. thừa thãi. + + + 5. Chuyển tới Bài 1.2.3 để hiểu cái gì đang xảy ra. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.2.3: CÂU LỆNH VÀ ĐỐI TƯỢNG + + + Câu lệnh xóa d có dạng như sau: + + [số] d đối_tượng HOẶC d [số] đối_tượng + Trong đó: + số - là số lần thực hiện câu lệnh (không bắt buộc, mặc định=1). + d - là câu lệnh xóa. + đối_tượng - câu lệnh sẽ thực hiện trên chúng (liệt kê phía dưới). + + Danh sách ngắn của đối tượng: + w - từ con trỏ tới cuối một từ, bao gồm cả khoảng trắng. + e - từ con trỏ tới cuối một từ, KHÔNG bao gồm khoảng trắng. + $ - từ con trỏ tới cuối một dòng. + +CHÚ Ý: Dành cho những người ham tìm hiểu, chỉ nhấn đối tượng trong chế độ Câu + lệnh mà không có câu lệnh sẽ di chuyển con trỏ như trong danh sách trên. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.2.4: TRƯỜNG HỢP NGOẠI LỆ CỦA QUY LUẬT 'CÂU LỆNH-ĐỐI TƯỢNG' + + + ** Gõ dd để xóa cả một dòng. ** + + Người dùng thường xuyên xóa cả một dòng, vì thế các nhà phát triển Vi đã + quyết định dùng hai chữ d để đơn giản hóa thao tác này. + + 1. Di chuyển con trỏ tới dòng thứ hai trong cụm phía dưới. + 2. Gõ dd để xóa dòng này. + 3. Bây giờ di chuyển tới dòng thứ tư. + 4. Gõ 2dd (hãy nhớ lại bộ ba số-câu lệnh-đối tượng) để xóa hai dòng. + + 1) Trong tim em khắc sâu bao kỉ niệm + 2) Tình yêu chân thành em dành cả cho anh + 3) Dẫu cuộc đời như bể dâu thay đổi + 4) Anh mãi là ngọn lửa ấm trong đêm + 5) Đã qua đi những tháng năm khờ dại + 7) Hãy để tự em lau nước mắt của mình + 8) Lặng lẽ sống những đêm dài bất tận + 9) Bao khổ đau chờ tia nắng bình minh + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.2.5: CÂU LỆNH "HỦY THAO TÁC" + + + ** Nhấn u để hủy bỏ những câu lệnh cuối cùng, U để sửa cả một dòng. ** + + 1. Di chuyển con trỏ tới dòng có dấu ---> và đặt con trỏ trên từ có lỗi + đầu tiên + 2. Gõ x để xóa chữ cái gây ra lỗi đầu tiên. + 3. Bây giờ gõ u để hủy bỏ câu lệnh vừa thự hiện (xóa chữ cái). + 4. Dùng câu lệnh x để sửa lỗi cả dòng này. + 5. Bây giờ gõ chữ U hoa để phục hồi trạng thái ban đầu của dòng. + 6. Bây giờ gõ u vài lần để hủy bỏ câu lệnh U và các câu lệnh trước. + 7. Bây giờ gõ CTRL-R (giữ phím CTRL và gõ R) và lầu để thực hiện + lại các câu lệnh (hủy bỏ các câu lệnh hủy bỏ). + +---> Câyy ccó cộii, nuước csó nguuồn. + + 8. Đây là những câu lệnh rất hữu ích. Bây giờ chuyển tới Tổng kết Bài 1.2. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.2 + + + 1. Để xóa từ con trỏ tới cuối một từ gõ: dw + + 2. Để xóa từ con trỏ tới cuối một dòng gõ: d$ + + 3. Để xóa cả một dòng gõ: dd + + 4. Một câu lệnh trong chế độ Câu lệnh có dạng: + + [số] câu_lệnh đối_tượng HOẶC câu_lệnh [số] đối_tượng + trong đó: + số - là số lần thực hiện câu lệnh (không bắt buộc, mặc định=1). + câu_lệnh - là những gì thực hiện, ví dụ d dùng để xóa. + đối_tượng - câu lệnh sẽ thực hiện trên chúng, ví dụ w (từ), + $ (tới cuối một dòng), v.v... + + 5. Để hủy bỏ thao tác trước, gõ: u (chữ u thường) + Để hủy bỏ tất cả các thao tác trên một dòng, gõ: U (chữ U hoa) + Để hủy bỏ các câu lệnh hủy bỏ, gõ: CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.3.1: CÂU LỆNH DÁN + + + ** Gõ p để dán những gì vừa xóa tới sau con trỏ. ** + + 1. Di chuyển con trỏ tới dòng đầu tiên trong cụm ở dưới. + + 2. Gõ dd để xóa và ghi lại một dòng trong bộ nhớ đệm của Vim. + + 3. Di chuyển con trỏ tới dòng Ở TRÊN chỗ cần dán. + + 4. Trong chế độ Câu lệnh, gõ p để thay thế dòng. + + 5. Lặp lại các bước từ 2 tới 4 để đặt các dòng theo đúng thứ tự của chúng. + + d) Niềm vui như gió xưa bay nhè nhẹ + b) Em vẫn mong anh sẽ đến với em + c) Đừng để em mất đi niềm hy vọng đó + a) Ai sẽ giúp em vượt qua sóng gió + e) Dễ ra đi khó giữ lại bên mình + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.3.2: CÂU LỆNH THAY THẾ + + + ** Gõ r và một ký tự để thay thế ký tự nằm dưới con trỏ. ** + + 1. Di chuyển con trỏ tới dòng có dấu --->. + + 2. Di chuyển con trỏ tới ký tự gõ sai đầu tiên. + + 3. Gõ r và ký tự đúng. + + 4. Lặp lại các bước từ 2 đến 4 để sửa cả dòng. + +---> "Trên đời nài làm gì có đườmg, người to đi mãi rồi thànk đường là tHôi" +---> "Trên đời này làm gì có đường, người ta đi mãi rồi thành đường mà thôi" + + 5. Bây giờ chuyển sang Bài 1.3.3. + +CHÚ Ý: Hãy nhớ rằng bạn cần thực hành, không nên "học vẹt". + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.3.3: CÂU LỆNH THAY ĐỔI + + + ** Để thay đổi một phần hay cả một từ, gõ cw . ** + + 1. Di chuyển con trỏ tới dòng có dấu --->. + + 2. Đặt con trỏ trên chữ trong. + + 3. Gõ cw và sửa lại từ (trong trường hợp này, gõ 'ine'.) + + 4. Gõ và chuyển tới lỗi tiếp theo (chữ cái đầu tiên trong số cần thay.) + + 5. Lặp lại các bước 3 và 4 cho tới khi thu được dòng như dòng thứ hai. + +---> Trên dùgn này có một dầy từ cần tyays đổi, sử dunk câu lệnh thay đổi. +---> Trên dong này có một vai từ cần thay đổi, sử dung câu lệnh thay đổi. + +Chú ý rằng cw không chỉ thay đổi từ, nhưng còn đưa bạn vào chế độ chèn. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.3.4: TIẾP TỤC THAY ĐỔI VỚI c + + + ** Câu lệnh thay đổi được sử dụng với cùng đối tượng như câu lệnh xóa. ** + + 1. Câu lệnh thay đổi làm việc tương tự như câu lệnh xóa. Định dạng như sau: + + [số] c đối_tượng HOẶC c [số] đối_tượng + + 2. Đối tượng cũng giống như ở trên, ví dụ w (từ), $ (cuối dòng), v.v... + + 3. Di chuyển con trỏ tới dòng có dấu --->. + + 4. Di chuyển con trỏ tới dòng có lỗi đầu tiên. + + 5. Gõ c$ để sửa cho giống với dòng thứ hai và gõ . + +---> Doan cuoi dong nay can sua de cho giong voi dong thu hai. +---> Doan cuoi dong nay can su dung cau lenh c$ de sua. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.3 + + + 1. Để dán đoạn văn bản vừa xóa, gõ p. Câu lệnh này sẽ đặt đoạn văn bản này + PHÍA SAU con trỏ (nếu một dòng vừa bị xóa, dòng này sẽ được đặt vào dòng + nằm dưới con trỏ). + + 2. Để thay thế ký tự dưới con trỏ, gõ r và sau đó gõ + ký tự muốn thay vào. + + 3. Câu lệnh thay đổi cho phép bạn thay đổi đối tượng chỉ ra từ con + trỏ tới cuối đối tượng. vd. Gõ cw để thay đổi từ + con trỏ tới cuối một từ, c$ để thay đổi tới cuối một dòng. + + 4. Định dạng để thay đổi: + + [số] c đối_tượng HOẶC c [số] đối_tượng + +Bây giờ chúng ta tiếp tục bài học mới. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.4.1: THÔNG TIN VỀ TẬP TIN VÀ VỊ TRÍ TRONG TẬP TIN + + + ** Gõ CTRL-g để hiển thị vị trí của bạn trong tập tin và thông tin về tập tin. + Gõ SHIFT-G để chuyển tới một dòng trong tập tin. ** + + Chú ý: Đọc toàn bộ bài học này trước khi thực hiện bất kỳ bước nào!! + + 1. Giữ phím Ctrl và nhấn g . Một dòng thông tin xuất hiện tại cuối trang + với tên tập tin và dòng mà bạn đang nằm trên. Hãy nhớ số dòng này + Cho bước số 3. + + 2. Nhấn shift-G để chuyển tới cuối tập tin. + + 3. Gõ số dòng mà bạn đã nằm trên và sau đó shift-G. Thao tác này sẽ đưa bạn + trở lại dòng mà con trỏ đã ở trước khi nhấn tổ hợp Ctrl-g. + (Khi bạn gõ số, chúng sẽ KHÔNG hiển thị trên màn hình.) + + 4. Nếu bạn cảm thấy đã hiểu rõ, hãy thực hiện các bước từ 1 tới 3. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.4.2: CÂU LỆNH TÌM KIẾM + + + ** Gõ / và theo sau là cụm từ muốn tìm kiếm. ** + + 1. Trong chế độ Câu lệnh gõ ký tự / .Chú ý rằng ký tự này và con trỏ sẽ + xuất hiện tại cuối màn hình giống như câu lệnh : . + + 2. Bây giờ gõ 'loiiiii' . Đây là từ bạn muốn tìm. + + 3. Để tìm kiếm cụm từ đó lần nữa, đơn giản gõ n . + Để tìm kiếm cụm từ theo hướng ngược lại, gõ Shift-N . + + 4. Nếu bạn muối tìm kiếm cụm từ theo hướng ngược lại đầu tập tin, sử dụng + câu lệnh ? thay cho /. + +---> "loiiiii" là những gì không đúng lắm; loiiiii thường xuyên xảy ra. + +Chú ý: Khi tìm kiếm đến cuối tập tin, việc tìm kiếm sẽ tiếp tục từ đầu + tập tin này. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.4.3: TÌM KIẾM CÁC DẤU NGOẶC SÁNH ĐÔI + + + ** Gõ % để tìm kiếm ),], hay } . ** + + 1. Đặt con trỏ trên bất kỳ một (, [, hay { nào trong dòng có dấu --->. + + 2. Bây giờ gõ ký tự % . + + 3. Con trỏ sẽ di chuyển đến dấu ngoặc tạo cặp (dấu đóng ngoặc). + + 4. Gõ % để chuyển con trỏ trở lại dấu ngoặc đầu tiên (dấu mở ngoặc). + +---> Đây là ( một dòng thử nghiệm với các dấu ngoặc (, [ ] và { } . )) + +Chú ý: Rất có ích khi sửa lỗi chương trình, khi có các lỗi thừa thiếu dấu ngoặc! + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.4.4: MỘT CÁCH SỬA LỖI + + + ** Gõ :s/cũ/mới/g để thay thế 'mới' vào 'cũ'. ** + + 1. Di chuyển con trỏ tới dòng có dấu --->. + + 2. Gõ :s/duou/ruou . Chú ý rằng câu lệnh này chỉ thay đổi từ tìm + thấy đầu tiên trên dòng (từ 'duou' đầu dòng). + + 3. Bây giờ gõ :s/duou/ruou/g để thực hiện thay thế trên toàn bộ dòng. + Lệnh này sẽ thay thế tất cả những từ ('duou') tìm thấy trên dòng. + +---> duou ngon phai co ban hie. Khong duou cung khong hoa. + + 4. Để thay thế thực hiện trong đoạn văn bản giữa hai dòng, + gõ :#,#s/cũ/mới/g trong đó #,# là số thứ tự của hai dòng. + Gõ :%s/cũ/mới/g để thực hiện thay thế trong toàn bộ tập tin. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.4 + + + 1. Ctrl-g vị trí của con trỏ trong tập tin và thông tin về tập tin. + Shift-G di chuyển con trỏ tới cuối tập tin. Số dòng và theo sau + là Shift-G di chuyển con trỏ tới dòng đó. + + 2. Gõ / và cụm từ theo sau để tìm kiếm cụm từ VỀ PHÍA TRƯỚC. + Gõ ? và cụm từ theo sau để tìm kiếm cụm từ NGƯỢC TRỞ LẠI. + Sau một lần tìm kiếm gõ n để tìm kiếm cụm từ lại một lần nữa theo hướng + đã tìm hoặc Shift-N để tìm kiếm theo hướng ngược lại. + + 3. Gõ % khi con trỏ nằm trên một (,),[,],{, hay } sẽ chỉ ra vị trí của + dấu ngoặc còn lại trong cặp. + + 4. Để thay thế 'mới' cho 'cũ' đầu tiên trên dòng, gõ :s/cũ/mới + Để thay thế 'mới' cho tất cả 'cũ' trên dòng, gõ :s/cũ/mới/g + Để thay thế giữa hai dòng, gõ :#,#s/cũ/mới/g + Để thay thế trong toàn bộ tập tin, gõ :%s/cũ/mới/g + Để chương trình hỏi lại trước khi thay thế, thêm 'c' :%s/cũ/mới/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lesson 1.5.1: CÁCH THỰC HIỆN MỘT CÂU LỆNH NGOẠI TRÚ + + + ** Gõ :! theo sau là một câu lệnh ngoại trú để thực hiện câu lệnh đó. ** + + 1. Gõ câu lệnh quen thuộc : để đặt con trỏ tại cuối màn hình. + Thao tác này cho phép bạn nhập một câu lệnh. + + 2. Bây giờ gõ ký tự ! (chấm than). Ký tự này cho phép bạn + thực hiện bất kỳ một câu lệnh shell nào. + + 3. Ví dụ gõ ls theo sau dấu ! và gõ . Lệnh này + sẽ hiển thị nội dung của thư mục hiện thời, hoặc sử dụng + lệnh :!dir nếu ls không làm việc. + +Chú ý: Có thể thực hiện bất kỳ câu lệnh ngoại trú nào theo cách này. + +Chú ý: Tất cả các câu lệnh : cần kết thúc bởi phím + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.5.2: GHI LẠI CÁC TẬP TIN + + + ** Để ghi lại các thay đổi, gõ :w TÊNTỆPTIN. ** + + 1. Gõ :!dir hoặc :!ls để lấy bảng liệt kê thư mục hiện thời. + Như bạn đã biết, bạn cần gõ để thực hiện. + + 2. Chọn một tên tập tin chưa có, ví dụ TEST. + + 3. Bây giờ gõ: :w TEST (trong đó TEST là tên tập tin bạn đã chọn.) + + 4. Thao tác này ghi toàn bộ tập tin (Hướng dẫn dùng Vim) dưới tên TEST. + Để kiểm tra lại, gõ :!dir một lần nữa để liệt kê thư mục. + +Chú ý: Nếu bạn thoát khỏi Vim và quay trở lại với tên tập tin TEST, thì tập + tin sẽ là bản sao của hướng dẫn tại thời điểm bạn ghi lại. + + 5. Bây giờ xóa bỏ tập tin (MS-DOS): :!del TEST + hay (Unix): :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.5.3: CÂU LỆNH GHI CHỌN LỌC + + + ** Để ghi một phần của tập tin, gõ :#,# w TÊNTẬPTIN ** + + 1. Gõ lại một lần nữa :!dir hoặc :!ls để liệt kê nội dung thư mục + rồi chọn một tên tập tin thích hợp, ví dụ TEST. + + 2. Di chuyển con trỏ tới đầu trang này, rồi gõ Ctrl-g để tìm ra số thứ + tự của dòng đó. HÃY NHỚ SỐ THỨ TỰ NÀY! + + 3. Bây giờ di chuyển con trỏ tới dòng cuối trang và gõ lại Ctrl-g lần nữa. + HÃY NHỚ CẢ SỐ THỨ TỰ NÀY! + + 4. Để CHỈ ghi lại một phần vào một tập tin, gõ :#,# w TEST trong đó #,# + là hai số thứ tự bạn đã nhớ (đầu,cuối) và TEST là tên tập tin. + + 5. Nhắc lại, xem tập tin của bạn có ở đó không với :!dir nhưng ĐỪNG xóa. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.5.4: ĐỌC VÀ KẾT HỢP CÁC TẬP TIN + + + ** Để chèn nội dung của một tập tin, gõ :r TÊNTẬPTIN ** + + 1. Gõ :!dir để chắc chắn là có tệp tin TEST. + + 2. Đặt con trỏ tại đầu trang này. + +CHÚ Ý: Sau khi thực hiện Bước 3 bạn sẽ thấy Bài 1.5.3. Sau đó cần di chuyển + XUỐNG bài học này lần nữa. + + 3. Bây giờ dùng câu lệnh :r TEST để đọc tập tin TEST, trong đó TEST là + tên của tập tin. + +CHÚ Ý: Tập tin được đọc sẽ đặt bắt đầu từ vị trí của con trỏ. + + 4. Để kiểm tra lại, di chuyển con trỏ ngược trở lại và thấy rằng bây giờ + có hai Bài 1.5.3, bản gốc và bản vừa chèn. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.5 + + + 1. :!câulệnh thực hiện một câu lệnh ngoại trú + + Một vài ví dụ hữu ích: + (MS-DOS) (Unix) + :!dir :!ls - liệt kê nội dung một thư mục. + :!del TÊNTẬPTIN :!rm TÊNTẬPTIN - xóa bỏ tập tin TÊNTẬPTIN. + + 2. :w TÊNTẬPTIN ghi tập tin hiện thời của Vim lên đĩa với tên TÊNTẬPTIN. + + 3. :#,#w TÊNTẬPTIN ghi các dòng từ # tới # vào tập tin TÊNTẬPTIN. + + 4. :r TÊNTẬPTIN đọc tập tin trên đĩa TÊNTẬPTIN và chèn nội dung của nó vào + tập tin hiện thời sau vị trí của con trỏ. + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.6.1: CÂU LỆNH TẠO DÒNG + + + ** Gõ o để mở một dòng phía dưới con trỏ và chuyển vào chế độ Soạn thảo. ** + + 1. Di chuyển con trỏ tới dòng có dấu --->. + + 2. Gõ o (chữ thường) để mở một dòng BÊN DƯỚI con trỏ và chuyển vào chế độ + Soạn thảo. + + 3. Bây giờ sao chép dòng có dấu ---> và nhấn để thoát khỏi chế độ Soạn + thảo. + +---> Sau khi gõ o con trỏ sẽ đặt trên dòng vừa mở trong chế độ Soạn thảo. + + 4. Để mở một dòng Ở TRÊN con trỏ, đơn giản gõ một chữ O hoa, thay cho + chữ o thường. Hãy thử thực hiện trên dòng dưới đây. +Di chuyển con trỏ tới dòng này, rồi gõ Shift-O sẽ mở một dòng trên nó. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.6.2: CÂU LỆNH THÊM VÀO + + + ** Gõ a để chèn văn bản vào SAU con trỏ. ** + + 1. Di chuyển con trỏ tới cuối dòng đầu tiên có ký hiệu ---> + bằng cách gõ $ trong chế độ câu lệnh. + + 2. Gõ a (chữ thường) để thêm văn bản vào SAU ký tự dưới con trỏ. + (Chữ A hoa thêm văn bản vào cuối một dòng.) + +Chú ý: Lệnh này thay cho việc gõ i , ký tự cuối cùng, văn bản muốn chèn, + , mũi tên sang phải, và cuối cùng, x , chỉ để thêm vào cuối dòng! + + 3. Bây giờ thêm cho đủ dòng thứ nhất. Chú ý rằng việc thêm giống hệt với + việc chèn, trừ vị trí chèn văn bản. + +---> Dong nay cho phep ban thuc hanh +---> Dong nay cho phep ban thuc hanh viec them van ban vao cuoi dong. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.6.3: MỘT CÁCH THAY THẾ KHÁC + + + ** Gõ chữ cái R hoa để thay thế nhiều ký tự. ** + + 1. Di chuyển con trỏ tới cuối dòng đầu tiên có ký hiệu --->. + + 2. Đặt con trỏ tại chữ cái đầu của từ đầu tiên khác với dòng có dấu + ---> tiếp theo (từ 'tren'). + + 3. Bây giờ gõ R và thay thế phần còn lại của dòng thứ nhất bằng cách gõ + đè lên văn bản cũ để cho hai dòng giống nhau. + +---> De cho dong thu nhat giong voi dong thu hai tren trang nay. +---> De cho dong thu nhat giong voi dong thu hai, go R va van ban moi. + + 4. Chú ý rằng khi bạn nhấn để thoát, đoạn văn bản không sửa đổi sẽ + được giữ nguyên. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.6.4: THIẾT LẬP CÁC THAM SỐ + + ** Thiết lập một tùy chọn để việc tìm kiếm hay thay thế lờ đi kiểu chữ ** + + 1. Tìm kiếm từ 'lodi' bằng cách gõ: + /lodi + Lặp lại vài lần bằng phím n. + + 2. Đặt tham số 'ic' (Lodi - ignore case) bằng cách gõ: + :set ic + + 3. Bây giờ thử lại tìm kiếm 'lodi' bằng cách gõ: n + Lặp lại vài lần bằng phím n. + + 4. Đặt các tham số 'hlsearch' và 'incsearch': + :set hls is + + 5. Bây giờ nhập lại câu lệnh tìm kiếm một lần nữa và xem cái gì xảy ra: + /lodi + + 6. Để xóa bỏ việc hiện sáng từ tìm thấy, gõ: + :nohlsearch +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + TỔNG KẾT BÀI 1.6 + + + 1. Gõ o mở một dòng phía DƯỚI con trỏ và đặt con trỏ trên dòng vừa mở + trong chế độ Soạn thảo. + Gõ một chữ O hoa để mở dòng phía TRÊN dòng của con trỏ. + + 2. Gõ a để chèn văn bản vào SAU ký tự nằm dưới con trỏ. + Gõ một chữ A hoa tự động thêm văn bản vào cuối một dòng. + + 3. Gõ một chữ R hoa chuyển vào chế độ Thay thế cho đến khi nhấn . + + 4. Gõ ":set xxx" sẽ đặt tham số "xxx" + + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bài 1.7: CÂU LỆNH TRỢ GIÚP + + + ** Sử dụng hệ thống trợ giúp có sẵn ** + + Vim có một hệ thống trợ giúp đầy đủ. Để bắt đầu, thử một trong ba + lệnh sau: + - nhấn phím (nếu bàn phím có) + - nhấn phím (nếu bàn phím có) + - gõ :help + + Gõ :q để đóng cửa sổ trợ giúp. + + Bạn có thể tìm thấy trợ giúp theo một đề tài, bằng cách đưa tham số tới + câu lệnh ":help". Hãy thử (đừng quên gõ ): + + :help w + :help c_, 2005 + Translator: Phan Vinh Thịnh , 2005 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.zh_cn b/git/usr/share/vim/vim92/tutor/tutor1.zh_cn new file mode 100644 index 0000000000000000000000000000000000000000..34879a4a2e4db098a757b88978eb8fd51bd376dd --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.zh_cn @@ -0,0 +1,996 @@ +=============================================================================== += 欢 迎 阅 读 《 V I M 教 程 》 —— 版本 1.7 = +=============================================================================== + + Vim 是一个具有很多命令的功能非常强大的编辑器。限于篇幅,在本教程当中 + 就不详细介绍了。本教程的设计目标是讲述一些必要的基本命令,而掌握好这 + 些命令,您就能够很容易地将 Vim 当作一个通用编辑器来使用了。 + + 完成本教程的内容大约需要25-30分钟,取决于您训练的时间。 + + 注意: + 每一节的命令操作将会更改本文。推荐您复制本文的一个副本,然后在副本上 + 进行训练(如果您是通过"vimtutor"来启动教程的,那么本文就已经是副本了)。 + + 切记一点:本教程的设计思路是在使用中进行学习的。也就是说,您需要通过 + 执行命令来学习它们本身的正确用法。如果您只是阅读而不操作,那么您可能 + 会很快遗忘这些命令的! + + 好了,现在请确定您的Shift-Lock(大小写锁定键)还没有按下,然后按键盘上 + 的字母键 j 足够多次来移动光标,直到第一节的内容能够完全充满屏幕。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第一节:移动光标 + + + ** 要移动光标,请依照说明分别按下 h、j、k、l 键。 ** + + ^ + k 提示: h 的键位于左边,每次按下就会向左移动。 + < h l > l 的键位于右边,每次按下就会向右移动。 + j j 键看起来很象一支尖端方向朝下的箭头。 + v + + 1. 请随意在屏幕内移动光标,直至您觉得舒服为止。 + + 2. 按下下行键(j),直到出现光标重复下行。 + +---> 现在您应该已经学会如何移动到下一讲吧。 + + 3. 现在请使用下行键,将光标移动到第一讲第二节。 + +提示:如果您不敢确定您所按下的字母,请按下键回到正常(Normal)模式。 + 然后再次从键盘输入您想要的命令。 + +提示:光标键应当也能正常工作的。但是使用hjkl键,在习惯之后您就能够更快 + 地在屏幕内四处移动光标。真的是这样! + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第二节:VIM的进入和退出 + + + !! 特别提示:敬请阅读本一节的完整内容,然后再执行以下所讲解的命令。 + + 1. 按键(这是为了确保您处在正常模式)。 + + 2. 然后输入: :q! <回车> + 这种方式的退出编辑器会丢弃您进入编辑器以来所做的改动。 + + 3. 如果您看到了命令行提示符,请输入能够带您回到本教程的命令,那就是: + vimtutor <回车> + + 4. 如果您自信已经牢牢记住了这些步骤的话,请从步骤1执行到步骤3退出,然 + 后再次进入编辑器。 + +提示: :q! <回车> 会丢弃您所做的任何改动。几讲之后您将学会如何保存改动到文件。 + + 5. 将光标下移到第一讲第三节。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第三节:文本编辑之删除 + + + ** 在正常(Normal)模式下,可以按下 x 键来删除光标所在位置的字符。** + + 1. 请将光标移动到本节中下面标记有 ---> 的那一行。 + + 2. 为了修正输入错误,请将光标移至准备删除的字符的位置处。 + + 3. 然后按下 x 键将错误字符删除掉。 + + 4. 重复步骤2到步骤4,直到句子修正为止。 + +---> The ccow jumpedd ovverr thhe mooon. + + 5. 好了,该行已经修正了,下面是第一讲第四节。 + +特别提示:在浏览本教程时,不要强行记忆。记住一点:在使用中学习。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第四节:文本编辑之插入 + + + ** 在正常模式下,可以按下 i 键来插入文本。** + + 1. 请将光标移动到本节中下面标记有 ---> 的第一行。 + + 2. 为了使得第一行内容雷同于第二行,请将光标移至文本第一个准备插入字符 + 的位置。 + + 3. 然后按下 i 键,接着输入必要的文本字符。 + + 4. 每个错误修正完毕后,请按下 键返回正常模式。 + 重复步骤2至步骤4以便修正句子。 + +---> There is text misng this . +---> There is some text missing from this line. + + 5. 如果您对文本插入操作已经很满意,请接着阅读下面的第一讲第五节。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第五节:文本编辑之添加 + + + ** 按 A 键以添加文本。 ** + + 1. 移动光标到下面第一个标记有 ---> 的一行。 + 光标放在那一行的哪个字符上并不重要。 + + 2. 按 A 键输入必要的添加内容。 + + 3. 文本添加完毕后,按 键回到正常模式。 + + 4. 移动光标到下面第二个标记有 ---> 的一行。重复步骤2和步骤3以改正这个句子。 + +---> There is some text missing from th + There is some text missing from this line. +---> There is also some text miss + There is also some text missing here. + + 5. 当您对添加文本操作感到满意时,请继续学习第一讲第六节。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲第六节:编辑文件 + + ** 使用 :wq 以保存文件并退出。 ** + + 特别提示:在执行以下步骤之前,请先读完整个小节! + + 1. 如您在第一讲第二节中所做的那样退出本教程: :q! + 或者,如果您可以访问另一个终端,请在那里执行以下操作。 + + 2. 在 shell 的提示符下输入命令: vim tutor <回车> + 'vim'是启动 Vim 编辑器的命令,'tutor'是您希望编辑的文件的名字。 + 请使用一个可以改动的文件。 + + 3. 使用您在前面的教程中学到的命令插入删除文本。 + + 4. 保存改动过的文件并退出 Vim,按这些键: :wq <回车> + + 5. 如果您在步骤1中已经退出 vimtutor,请重启 vimtutor 移动到下面的小结一节。 + + 6. 阅读完以上步骤,弄懂它们的意义,然后在实践中进行练习。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一讲小结 + + + 1. 光标在屏幕文本中的移动既可以用箭头键,也可以使用 hjkl 字母键。 + h (左移) j (下行) k (上行) l (右移) + + 2. 欲进入 Vim 编辑器(从命令行提示符),请输入:vim 文件名 <回车> + + 3. 欲退出 Vim 编辑器,请输入 :q! <回车> 放弃所有改动。 + 或者输入 :wq <回车> 保存改动。 + + 4. 在正常模式下删除光标所在位置的字符,请按: x + + 5. 欲插入或添加文本,请输入: + + i 输入欲插入文本 在光标前插入文本 + A 输入欲添加文本 在一行后添加文本 + +特别提示:按下 键会带您回到正常模式或者撤消一个不想输入或部分完整 +的命令。 + +好了,第一讲到此结束。下面接下来继续第二讲的内容。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第一节:删除类命令 + + + ** 输入 dw 可以从光标处删除至一个单词的末尾。** + + 1. 请按下 键确保您处于正常模式。 + + 2. 请将光标移动到本节中下面标记有 ---> 的那一行。 + + 3. 请将光标移至准备要删除的单词的起始处。 + + 4. 接着输入 dw 删除掉该单词。 + + 特别提示:当您输入时,字母 d 会同时出现在屏幕的最后一行。Vim 在等待您输入 + 字母 w。如果您看到的是除 d 外的其他字符,那表明您按错了;请按下 键, + 然后重新再来。 + +---> There are a some words fun that don't belong paper in this sentence. + + 5. 重复步骤3和步骤4,直至句子修正完毕。接着继续第二讲第二节内容。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第二节:更多删除类命令 + + + ** 输入 d$ 从当前光标删除到行末。** + + 1. 请按下 键确保您处于正常模式。 + + 2. 请将光标移动到本节中下面标记有 ---> 的那一行。 + + 3. 请将光标移动到该行的尾部(也就是在第一个点号‘.’后面)。 + + 4. 然后输入 d$ 从光标处删至当前行尾部。 + +---> Somebody typed the end of this line twice. end of this line twice. + + + 5. 请继续学习第二讲第三节就知道是怎么回事了。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第三节:关于命令和对象 + + + 许多改变文本的命令都由一个操作符和一个动作构成。 + 使用删除操作符 d 的删除命令的格式如下: + + d motion + + 其中: + d - 删除操作符。 + motion - 操作符的操作对象(在下面列出)。 + + 一个简短的动作列表: + w - 从当前光标当前位置直到下一个单词起始处,不包括它的第一个字符。 + e - 从当前光标当前位置直到单词末尾,包括最后一个字符。 + $ - 从当前光标当前位置直到当前行末。 + + 因此输入 de 会从当前光标位置删除到单词末尾。 + +特别提示: + 对于勇于探索者,请在正常模式下面仅按代表相应动作的键而不使用操作符,您 + 将看到光标的移动正如上面的对象列表所代表的一样。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第四节:使用计数指定动作 + + + ** 在动作前输入数字会使它重复那么多次。 ** + + 1. 移动光标到下面标记有 ---> 的一行的开始。 + + 2. 输入 2w 使光标向前移动两个单词。 + + 3. 输入 3e 使光标向前移动到第三个单词的末尾。 + + 4. 输入 0 (数字零) 移动光标到行首。 + + 5. 重复步骤2和步骤3,尝试不同的数字。 + +---> This is just a line with words you can move around in. + + 6. 请继续学习第二讲第五节。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第五节:使用计数以删除更多 + + + ** 使用操作符时输入数字可以使它重复那么多次。 ** + + 上面已经提到过删除操作符和动作的组合,您可以在组合中动作之前插入一个数字以 + 删除更多: + d number(数字) motion + + 1. 移动光标到下面标记有 ---> 的一行中第一个大写字母单词上。 + + 2. 输入 d2w 以删除两个大写字母单词。 + + 3. 重复步骤1和步骤2,使用不同的数字使得用一个命令就能删除全部相邻的大写字母 + 单词 + +---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第六节:操作整行 + + + ** 输入 dd 可以删除整一个当前行。 ** + + 鉴于整行删除的高频度,Vi 的设计者决定要简化整行删除操作,您仅需要在同一行上 + 击打两次 d 就可以删除掉光标所在的整行了。 + + 1. 请将光标移动到本节中下面的短句段落中的第二行。 + 2. 输入 dd 删除该行。 + 3. 然后移动到第四行。 + 4. 接着输入 2dd 删除两行。 + +---> 1) Roses are red, +---> 2) Mud is fun, +---> 3) Violets are blue, +---> 4) I have a car, +---> 5) Clocks tell time, +---> 6) Sugar is sweet +---> 7) And so are you. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲第七节:撤消类命令 + + + ** 输入 u 来撤消最后执行的命令,输入 U 来撤消对整行的修改。 ** + + 1. 请将光标移动到本节中下面标记有 ---> 的那一行,并将其置于第一个错误 + 处。 + 2. 输入 x 删除第一个不想保留的字母。 + 3. 然后输入 u 撤消最后执行的(一次)命令。 + 4. 这次要使用 x 修正本行的所有错误。 + 5. 现在输入一个大写的 U ,恢复到该行的原始状态。 + 6. 接着多次输入 u 以撤消 U 以及更前的命令。 + 7. 然后多次输入 CTRL-R (先按下 CTRL 键不放开,接着按 R 键),这样就 + 可以重做被撤消的命令,也就是撤消掉撤消命令。 + +---> Fiix the errors oon thhis line and reeplace them witth undo. + + 8. 这些都是非常有用的命令。下面是第二讲的小结了。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二讲小结 + + + 1. 欲从当前光标删除至下一个单词,请输入:dw + 2. 欲从当前光标删除至当前行末尾,请输入:d$ + 3. 欲删除整行,请输入:dd + + 4. 欲重复一个动作,请在它前面加上一个数字:2w + 5. 在正常模式下修改命令的格式是: + operator [number] motion + 其中: + operator - 操作符,代表要做的事情,比如 d 代表删除 + [number] - 可以附加的数字,代表动作重复的次数 + motion - 动作,代表在所操作的文本上的移动,例如 w 代表单词(word), + $ 代表行末等等。 + + 6. 欲移动光标到行首,请按数字0键:0 + + 7. 欲撤消以前的操作,请输入:u (小写的u) + 欲撤消在一行中所做的改动,请输入:U (大写的U) + 欲撤消以前的撤消命令,恢复以前的操作结果,请输入:CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三讲第一节:置入类命令 + + + ** 输入 p 将最后一次删除的内容置入光标之后。 ** + + 1. 请将光标移动到本节中下面第一个标记有 ---> 的一行。 + + 2. 输入 dd 将该行删除,这样会将该行保存到 Vim 的一个寄存器中。 + + 3. 接着将光标移动到 c) 一行,即准备置入的位置的上方。记住:是上方哦。 + + 4. 然后在正常模式下(键进入)输入 p 将该行粘贴置入。 + + 5. 重复步骤2至步骤4,将所有的行依序放置到正确的位置上。 + +---> d) Can you learn too? +---> b) Violets are blue, +---> c) Intelligence is learned, +---> a) Roses are red, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三讲第二节:替换类命令 + + + ** 输入 r 和一个字符替换光标所在位置的字符。** + + 1. 请将光标移动到本节中下面标记有 ---> 的第一行。 + + 2. 请移动光标到第一个出错的位置。 + + 3. 接着输入 r 和要替换成的字符,这样就能将错误替换掉了。 + + 4. 重复步骤2和步骤3,直到第一行已经修改完毕。 + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. 然后我们继续学习第三讲第三节。 + +特别提示:切记您要在使用中学习,而不是在记忆中学习。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三讲第三节:更改类命令 + + + ** 要改变文本直到一个单词的末尾,请输入 ce ** + + 1. 请将光标移动到本节中下面标记有 ---> 的第一行。 + + 2. 接着把光标放在单词 lubw 的字母 u 的位置那里。 + + 3. 然后输入 ce 以及正确的单词(在本例中是输入 ine )。 + + 4. 最后按 键,然后光标定位到下一个错误第一个准备更改的字母处。 + + 5. 重复步骤3和步骤4,直到第一个句子完全雷同第二个句子。 + +---> This lubw has a few wptfd that mrrf changing usf the change operator. +---> This line has a few words that need changing using the change operator. + +提示:请注意 ce 命令不仅仅是删除了一个单词,它也让您进入插入模式了。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三讲第四节:使用c更改更多 + + + ** 更改类操作符可以与删除中使用的同样的动作配合使用。 ** + + 1. 更改类操作符的工作方式跟删除类是一致的。操作格式是: + + c [number] motion + + 2. 动作参数(motion)也是一样的,比如 w 代表单词,$代表行末等等。 + + 3. 请将光标移动到本节中下面标记有 ---> 的第一行。 + + 4. 接着将光标移动到第一个错误处。 + + 5. 然后输入 c$ 使得该行剩下的部分更正得同第二行一样。最后按 键。 + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三讲小结 + + + 1. 要重新置入已经删除的文本内容,请按小写字母 p 键。该操作可以将已删除 + 的文本内容置于光标之后。如果最后一次删除的是一个整行,那么该行将置 + 于当前光标所在行的下一行。 + + 2. 要替换光标所在位置的字符,请输入小写的 r 和要替换掉原位置字符的新字 + 符即可。 + + 3. 更改类命令允许您改变从当前光标所在位置直到动作指示的位置中间的文本。 + 比如输入 ce 可以替换当前光标到单词的末尾的内容;输入 c$ 可以替换当 + 前光标到行末的内容。 + + 4. 更改类命令的格式是: + + c [number] motion + +现在我们继续学习下一讲。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四讲第一节:定位及文件状态 + + ** 输入 CTRL-G 显示当前编辑文件中当前光标所在行位置以及文件状态信息。 + 输入大写 G 则直接跳转到文件中的某一指定行。** + + 提示:切记要先通读本节内容,之后才可以执行以下步骤!!! + + 1. 按下 CTRL 键不放开然后按 g 键。我们称这个键组合为 CTRL-G。 + 您会看到页面最底部出现一个状态信息行,显示的内容是当前编辑的文件名 + 和文件中光标位置。请记住行号,它会在步骤3中用到。 + +提示:您也许会在屏幕的右下角看到光标位置,这会在 'ruler' 选项设置时发生 + (参见 :help 'ruler') + + 2. 输入大写 G 可以使得当前光标直接跳转到文件最后一行。 + 输入 gg 可以使得当前光标直接跳转到文件第一行。 + + 3. 输入您曾停留的行号,然后输入大写 G。这样就可以返回到您第一次按下 + CTRL-G 时所在的行了。 + + 4. 如果您觉得没问题的话,请执行步骤1至步骤3的操作进行练习。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四讲第二节:搜索类命令 + + + ** 输入 / 加上一个字符串可以用以在当前文件中查找该字符串。** + + 1. 在正常模式下输入 / 字符。您此时会注意到该字符和光标都会出现在屏幕底 + 部,这跟 : 命令是一样的。 + + 2. 接着输入 errroor <回车>。那个errroor就是您要查找的字符串。 + + 3. 要查找同上一次的字符串,只需要按 n 键。要向相反方向查找同上一次的字 + 符串,请输入大写 N 即可。 + + 4. 如果您想逆向查找字符串,请使用 ? 代替 / 进行。 + + 5. 要回到您之前的位置按 CTRL-O (按住 Ctrl 键不放同时按下字母 o)。重复按可以 + 回退更多步。CTRL-I 会跳转到较新的位置。 + +---> "errroor" is not the way to spell error; errroor is an error. +提示:如果查找已经到达文件末尾,查找会自动从文件头部继续查找,除非 + 'wrapscan' 选项被复位。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四讲第三节:配对括号的查找 + + + ** 输入 % 可以查找配对的括号 )、]、}。** + + 1. 把光标放在本节下面标记有 --> 那一行中的任何一个 (、[ 或 { 处。 + + 2. 接着按 % 字符。 + + 3. 此时光标的位置应当是在配对的括号处。 + + 4. 再次按 % 就可以跳回配对的第一个括号处。 + + 5. 移动光标到另一个 (、)、[、]、{ 或 } 处,按 % 查看其所作所为。 + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + + +提示:在程序调试时,这个功能用来查找不配对的括号是很有用的。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四讲第四节:替换命令 + + + ** 输入 :s/old/new/g 可以替换 old 为 new。** + + 1. 请将光标移动到本节中下面标记有 ---> 的那一行。 + + 2. 输入 :s/thee/the <回车> 。请注意该命令只改变光标所在行的第一个匹配 + 串。 + + 3. 输入 :s/thee/the/g 则是替换全行的匹配串,该行中所有的 "thee" 都会被 + 改变。 + +---> thee best time to see thee flowers is in thee spring. + + 4. 要替换两行之间出现的每个匹配串,请 + 输入 :#,#s/old/new/g 其中 #,# 代表的是替换操作的若干行中 + 首尾两行的行号。 + 输入 :%s/old/new/g 则是替换整个文件中的每个匹配串。 + 输入 :%s/old/new/gc 会找到整个文件中的每个匹配串,并且对每个匹配串 + 提示是否进行替换。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四讲小结 + + + 1. CTRL-G 用于显示当前光标所在位置和文件状态信息。 + G 用于将光标跳转至文件最后一行。 + 先敲入一个行号然后输入大写 G 则是将光标移动至该行号代表的行。 + gg 用于将光标跳转至文件第一行。 + + 2. 输入 / 然后紧随一个字符串是在当前所编辑的文档中正向查找该字符串。 + 输入 ? 然后紧随一个字符串则是在当前所编辑的文档中反向查找该字符串。 + 完成一次查找之后按 n 键是重复上一次的命令,可在同一方向上查 + 找下一个匹配字符串所在;或者按大写 N 向相反方向查找下一匹配字符串所在。 + CTRL-O 带您跳转回较旧的位置,CTRL-I 则带您到较新的位置。 + + 3. 如果光标当前位置是括号(、)、[、]、{、},按 % 会将光标移动到配对的括号上。 + + 4. 在一行内替换头一个字符串 old 为新的字符串 new,请输入 :s/old/new + 在一行内替换所有的字符串 old 为新的字符串 new,请输入 :s/old/new/g + 在两行内替换所有的字符串 old 为新的字符串 new,请输入 :#,#s/old/new/g + 在文件内替换所有的字符串 old 为新的字符串 new,请输入 :%s/old/new/g + 进行全文替换时询问用户确认每个替换需添加 c 标志 :%s/old/new/gc + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五讲第一节:在 VIM 内执行外部命令的方法 + + + ** 输入 :! 然后紧接着输入一个外部命令可以执行该外部命令。** + + 1. 按下我们所熟悉的 : 命令使光标移动到屏幕底部。这样您就可以输入一行命令了。 + + 2. 接着输入感叹号 ! 这个字符,这样就允许您执行外部的 shell 命令了。 + + 3. 我们以 ls 命令为例。输入 !ls <回车> 。该命令就会列举出您当前目录的 + 内容,就如同您在命令行提示符下输入 ls 命令的结果一样。如果 !ls 没起 + 作用,您可以试试 :!dir 看看。 + +提示:所有的外部命令都可以以这种方式执行,包括带命令行参数的那些。 + +提示:所有的 : 命令都必须以敲 <回车> 键结束。从今以后我们就不会总是提到这一点 + 了。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五讲第二节:关于保存文件的更多信息 + + + ** 要将对文件的改动保存到文件中,请输入 :w FILENAME 。** + + 1. 输入 :!dir 或者 :!ls 获知当前目录的内容。您应当已知道最后还得敲 + <回车> 吧。 + + 2. 选择一个未被用到的文件名,比如 TEST。 + + 3. 接着输入 :w TEST (此处 TEST 是您所选择的文件名。) + + 4. 该命令会以 TEST 为文件名保存整个文件 (Vim 教程)。为了验证这一点, + 请再次输入 :!dir 或 :!ls 查看您的目录列表内容。 + +请注意:如果您退出 Vim 然后在以命令 vim TEST 再次启动 Vim,那么该文件内 + 容应该同您保存时的文件内容是完全一样的。 + + 5. 现在您可以删除 TEST 文件了。在 MS-DOS 下,请输入: :!del TEST + 在 Unix 下,请输入: :!rm TEST + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五讲第三节:一个具有选择性的保存命令 + + + ** 要保存文件的部分内容,请输入 v motion :w FILENAME ** + + 1. 移动光标到本行。 + + 2. 接着按 v 键,将光标移动至下面第五个条目上。您会注意到之间的文本被高亮了。 + + 3. 然后按 : 字符。您将看到屏幕底部会出现 :'<,'> 。 + + 4. 现在请输入 w TEST,其中 TEST 是一个未被使用的文件名。确认您看到了 + :'<,'>w TEST 之后按 <回车> 键。 + + 5. 这时 Vim 会把选中的行写入到以 TEST 命名的文件中去。使用 :!dir 或 :!ls + 确认文件被正确保存。这次先别删除它!我们在下一讲中会用到它。 + +提示:按 v 键使 Vim 进入可视模式进行选取。您可以四处移动光标使选取区域变大或 + 变小。接着您可以使用一个操作符对选中文本进行操作。例如,按 d 键会删除 + 选中的文本内容。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五讲第四节:提取和合并文件 + + + ** 要向当前文件中插入另外的文件的内容,请输入 :r FILENAME ** + + 1. 请把光标移动到本行上面一行。 + +特别提示:执行步骤2之后您将看到第五讲第三节的文字,请届时往下移动 + 以再次看到本讲内容。 + + 2. 接着通过命令 :r TEST 将前面创建的名为 TEST 的文件提取进来。 + 您所提取进来的文件将从光标所在位置处开始置入。 + + 3. 为了确认文件已经提取成功,移动光标回到原来的位置就可以注意有两份第 + 五讲第三节的内容,一份是原始内容,另外一份是来自文件的副本。 + +提示:您还可以读取外部命令的输出。例如, :r !ls 可以读取 ls 命令的输出,并 + 把它放置在光标下面。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五讲小结 + + + 1. :!command 用于执行一个外部命令 command。 + + 请看一些实际例子: + (MS-DOS) (Unix) + :!dir :!ls - 用于显示当前目录的内容。 + :!del FILENAME :!rm FILENAME - 用于删除名为 FILENAME 的文件。 + + 2. :w FILENAME 可将当前 VIM 中正在编辑的文件保存到名为 FILENAME 的文 + 件中。 + + 3. v motion :w FILENAME 可将当前编辑文件中可视模式下选中的内容保存到文件 + FILENAME 中。 + + 4. :r FILENAME 可提取磁盘文件 FILENAME 并将其插入到当前文件的光标位置 + 后面。 + + 5. :r !dir 可以读取 dir 命令的输出并将其放置到当前文件的光标位置后面。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲第一节:打开类命令 + + + ** 输入 o 将在光标的下方打开新的一行并进入插入模式。** + + 1. 请将光标移动到本节中下面标记有 ---> 的那一行。 + + 2. 接着输入小写的 o 在光标 *下方* 打开新的一行,这个命令会使您 + 进入插入模式。 + + 3. 然后输入一些文字,之后按 键退出插入模式而进入正常模式。 + +---> After typing o the cursor is placed on the open line in Insert mode. + + 4. 为了在光标 *上方* 打开新的一行,只需要输入大写的 O 而不是小写的 o + 就可以了。请在下行测试一下吧。 + +---> Open up a line above this by typing O while the cursor is on this line. + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲第二节:附加类命令 + + + ** 输入 a 将可在光标之后插入文本。 ** + + 1. 请在正常模式下将光标移动到本节中下面标记有 ---> 的第一行的行首。 + + 2. 接着输入 e 直到光标位于 li 的末尾。 + + 3. 输入小写的 a 则可在光标之后插入文本了。 + + 4. 将单词补充完整,就像下一行中的那样。之后按 键退出插入模式回到 + 正常模式。 + + 5. 使用 e 移动光标到下一步不完整的单词,重复步骤3和步骤4。 + +---> This li will allow you to pract appendi text to a line. +---> This line will allow you to practice appending text to a line. + +提示:a、i 和 A 都会带您进入插入模式,惟一的区别在于字符插入的位置。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲第三节:另外一个置换类命令的版本 + + + ** 输入大写的 R 可连续替换多个字符。** + + 1. 请将光标移动到本节中下面标记有 ---> 的第一行。移动光标到第一个 xxx 的 + 起始位置。 + + 2. 然后输入大写的 R 开始把第一行中的不同于第二行的剩余字符逐一输入,就 + 可以全部替换掉原有的字符而使得第一行完全雷同第二行了。 + + 3. 接着按 键退出替换模式回到正常模式。您可以注意到尚未替换的文本 + 仍然保持原状。 + + 4. 重复以上步骤,将剩余的 xxx 也替换掉。 + +---> Adding 123 to xxx gives you xxx. +---> Adding 123 to 456 gives you 579. + +提示:替换模式与插入模式相似,不过每个输入的字符都会删除一个已有的字符。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲第四节:复制粘贴文本 + + + ** 使用操作符 y 复制文本,使用 p 粘贴文本 ** + + 1. 定位到下面标记有 ---> 的一行,将光标移动到 "a)" 之后。 + + 2. 接着使用 v 进入可视模式,移动光标到 "first" 的前面。 + + 3. 现在输入 y 以抽出(复制)高亮的文本。 + + 4. 然后移动光标到下一行的末尾:j$ + + 5. 接着输入 p 以放置(粘贴)复制了的文本。然后输入:a second 。 + + 6. 使用可视模式选中 " item.",用 y 复制,再用 j$ 将光标移动到下一行末尾, + 用 p 将文本粘贴到那里。 + +---> a) this is the first item. + b) + + 提示:您还可以把 y 当作操作符来使用;例如 yw 可以用来复制一个单词。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲第五节:设置类命令的选项 + + + ** 设置可使查找或者替换可忽略大小写的选项 ** + + 1. 要查找单词 ignore 可在正常模式下输入 /ignore <回车>。 + 要重复查找该词,可以重复按 n 键。 + + 2. 然后设置 ic 选项(Ignore Case,忽略大小写),请输入: :set ic + + 3. 现在可以通过键入 n 键再次查找单词 ignore。注意到 Ignore 和 IGNORE 现在 + 也被找到了。 + + 4. 然后设置 hlsearch 和 incsearch 这两个选项,请输入: :set hls is + + 5. 现在可以再次输入查找命令,看看会有什么效果: /ignore <回车> + + 6. 要禁用忽略大小写,请输入: :set noic + +提示:要移除匹配项的高亮显示,请输入: :nohlsearch +提示:如果您想要仅在一次查找时忽略字母大小写,您可以使用 \c: + /ignore\c <回车> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六讲小结 + + 1. 输入小写的 o 可以在光标下方打开新的一行并进入插入模式。 + 输入大写的 O 可以在光标上方打开新的一行。 + + 2. 输入小写的 a 可以在光标所在位置之后插入文本。 + 输入大写的 A 可以在光标所在行的行末之后插入文本。 + + 3. e 命令可以使光标移动到单词末尾。 + + 4. 操作符 y 复制文本,p 粘贴先前复制的文本。 + + 5. 输入大写的 R 将进入替换模式,直至按 键回到正常模式。 + + 6. 输入 :set xxx 可以设置 xxx 选项。一些有用的选项如下: + 'ic' 'ignorecase' 查找时忽略字母大小写 + 'is' 'incsearch' 查找短语时显示部分匹配 + 'hls' 'hlsearch' 高亮显示所有的匹配短语 + 选项名可以用完整版本,也可以用缩略版本。 + + 7. 在选项前加上 no 可以关闭选项: :set noic + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第七讲第一节:获取帮助信息 + + + ** 使用在线帮助系统 ** + + Vim 拥有一个细致全面的在线帮助系统。要启动该帮助系统,请选择如下三种方 + 法之一: + - 按下 键 (如果键盘上有的话) + - 按下 键 (如果键盘上有的话) + - 输入 :help <回车> + + 请阅读帮助窗口中的文字以了解帮助是如何工作的。 + 输入 CTRL-W CTRL-W 可以使您在窗口之间跳转。 + 输入 :q <回车> 可以关闭帮助窗口。 + + 提供一个正确的参数给":help"命令,您可以找到关于该主题的帮助。请试验以 + 下参数(可别忘了按回车键哦): + + :help w + :help c_CTRL-D + :help insert-index + :help user-manual +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第七讲第二节:创建启动脚本 + + + ** 启用 Vim 的特性 ** + + Vim 的功能特性要比 Vi 多得多,但其中大部分都没有缺省启用。为了使用更多的 + 特性,您得创建一个 vimrc 文件。 + + 1. 开始编辑 vimrc 文件,具体命令取决于您所使用的操作系统: + :edit ~/.vimrc 这是 Unix 系统所使用的命令 + :edit ~/_vimrc 这是 MS-Windows 系统所使用的命令 + + 2. 接着读取 vimrc 示例文件的内容: + :r $VIMRUNTIME/vimrc_example.vim + + 3. 保存文件,命令为: + :write + + 下次您启动 Vim 时,编辑器就会有了语法高亮的功能。 + 您可以把您喜欢的各种设置添加到这个 vimrc 文件中。 + 要了解更多信息请输入 :help vimrc-intro + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第七讲第三节:补全功能 + + + ** 使用 CTRL-D 和 可以进行命令行补全 ** + + 1. 请确保 Vim 不是在以兼容模式运行: :set nocp + + 2. 查看一下当前目录下已经存在哪些文件,输入: :!ls 或者 :!dir + + 3. 现在输入一个命令的起始部分,例如输入: :e + + 4. 接着按 CTRL-D 键,Vim 会显示以 e 开始的命令的列表。 + + 5. 然后按 键,Vim 会补全命令为 :edit 。 + + 6. 现在添加一个空格,以及一个已有文件的文件名的起始部分,例如: :edit FIL + + 7. 接着按 键,Vim 会补全文件名(如果它是惟一匹配的)。 + +提示:补全对于许多命令都有效。您只需尝试按 CTRL-D 和 。 + 它对于 :help 命令非常有用。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第七讲小结 + + + 1. 输入 :help 或者按 键或 键可以打开帮助窗口。 + + 2. 输入 :help cmd 可以找到关于 cmd 命令的帮助。 + + 3. 输入 CTRL-W CTRL-W 可以使您在窗口之间跳转。 + + 4. 输入 :q 以关闭帮助窗口 + + 5. 您可以创建一个 vimrc 启动脚本文件用来保存您偏好的设置。 + + 6. 当输入 : 命令时,按 CTRL-D 可以查看可能的补全结果。 + 按 可以使用一个补全。 + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + vim 教程到此就结束了。本教程只是为了简明地介绍一下 Vim 编辑器,但已足以让您 + 很容易使用这个编辑器了。毋庸质疑,vim还有很多很多的命令,本教程所介 + 绍的距离完整的差得很远。所以您要精通的话,还望继续努力哦。下一步您可以阅读 + Vim 的用户手册,使用的命令是: :help user-manual + + 下面这本书值得推荐用于更进一步的阅读和学习: + Vim - Vi Improved - 作者:Steve Oualline + 出版社:New Riders + 这是第一本完全讲解 Vim 的书籍。它对于初学者特别有用。其中包含有大量实例 + 和图示。 + 欲知详情,请访问 https://iccf-holland.org/click5.html + + 以下这本书比较老了而且内容更多是关于 Vi 而非 Vim,但是也值得推荐: + Learning the Vi Editor - 作者:Linda Lamb + 出版社:O'Reilly & Associates Inc. + 这是一本不错的书,通过它您几乎能够了解到任何您想要使用 Vi 做的事情。 + 此书的第六个版本也包含了一些关于 Vim 的信息。 + + 本教程是由来自 Calorado School of Mines 的 Michael C. Pierce 和 + Robert K. Ware 所编写的,其中很多创意由来自 Colorado State University 的 + Charles Smith 提供。编者的电子邮箱是:bware@mines.colorado.edu + + 本教程已由 Bram Moolenaar 专为 Vim 进行修订。 + + 译制者附言: + =========== + 简体中文教程翻译版之译制者为梁昌泰 ,还有 + 另外一个联系地址:linuxrat@gnuchina.org。 + + 繁体中文教程是从简体中文教程翻译版使用 Debian GNU/Linux 中文项目小 + 组的于广辉先生编写的中文汉字转码器 autoconvert 转换而成的,并对转 + 换的结果做了一些细节的改动。 + + 变更记录: + ========= + 2012年10月01日 赵涛 + 将 vimtutor 中译版从 1.5 升级到 1.7。 + + 2002年08月30日 梁昌泰 + 感谢 RMS@SMTH 的指正,将多处错误修正。 + + 2002年04月22日 梁昌泰 + 感谢 xuandong@sh163.net 的指正,将两处错别字修正。 + + 2002年03月18日 梁昌泰 + 根据Bram Moolenaar先生在2002年03月16日的来信要求,将vimtutor1.4中译 + 版升级到vimtutor1.5。 + + 2001年11月15日 梁昌泰 + 将vimtutor1.4中译版提交给Bram Moolenaar和Sven Guckes。 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor1.zh_tw b/git/usr/share/vim/vim92/tutor/tutor1.zh_tw new file mode 100644 index 0000000000000000000000000000000000000000..fc35259837955534823ee38e308b839ae35f010e --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor1.zh_tw @@ -0,0 +1,852 @@ +=============================================================================== += 歡 迎 閱 讀 《 V I M 教 程 》 ── 版本 1.5 = +=============================================================================== + vim 是一個具有很多命令的功能非常強大的編輯器。限于篇幅,在本教程當中 + 不就詳細介紹了。本教程的設計目標是講述一些必要的基本命令,而掌握好這 + 些命令,您就能夠很容易將vim當作一個通用的萬能編輯器來使用了。 + + 完成本教程的內容大約需要25-30分鐘,取決于您訓練的時間。 + + 每一節的命令操作將會更改本文。推薦您復制本文的一個副本,然後在副本上 + 進行訓練(如果您是通過"vimtutor"來啟動教程的,那麼本文就已經是副本了)。 + + 切記一點︰本教程的設計思路是在使用中進行學習的。也就是說,您需要通過 + 執行命令來學習它們本身的正確用法。如果您只是閱讀而不操作,那麼您可能 + 會很快遺忘這些命令的! + + 好了,現在請確定您的Shift-Lock(大小寫鎖定鍵)還沒有按下,然後按鍵盤上 + 的字母鍵 j 足夠多的次數來移動光標,直到第一節的內容能夠完全充滿屏幕。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一講第一節︰移動光標 + + + ※※ 要移動光標,請依照說明分別按下 h、j、k、l 鍵。 ※※ + + ^ + k 提示︰ h 的鍵位于左邊,每次按下就會向左移動。 + < h l > l 的鍵位于右邊,每次按下就會向右移動。 + j j 鍵看起來很象一支尖端方向朝下的箭頭。 + v + + 1. 請隨意在屏幕內移動光標,直至您覺得舒服為止。 + + 2. 按下下行鍵(j),直到出現光標重復下行。 + +---> 現在您應該已經學會如何移動到下一講吧。 + + 3. 現在請使用下行鍵,將光標移動到第一講第二節。 + +提示︰如果您不敢確定您所按下的字母,請按下鍵回到正常(Normal)模式。 + 然後再次從鍵盤輸入您想要的命令。 + +提示︰光標鍵應當也能正常工作的。但是使用hjkl鍵,在習慣之後您就能夠快速 + 地在屏幕內四處移動光標了。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一講第二節︰VIM的進入和退出 + + + !! 特別提示︰敬請閱讀完整本一節的內容,然後才能執行以下所講解的命令。 + + 1. 請按鍵(這是為了確保您處在正常模式)。 + + 2. 然後輸入︰ :q! <回車> + +---> 這種方式的退出編輯器絕不會保存您進入編輯器以來所做的改動。 + 如果您想保存更改再退出,請輸入︰ + :wq <回車> + + 3. 如果您看到了命令行提示符,請輸入能夠帶您回到本教程的命令,那就是︰ + + vimtutor <回車> + + 通常情況下您也可以用這種方式︰ + + vim tutor <回車> + +---> 這裡的 'vim' 表示進入vim編輯器,而 'tutor'則是您準備要編輯的文件。 + + 4. 如果您自信已經牢牢記住了這些步驟的話,請從步驟1執行到步驟3退出,然 + 後再次進入編輯器。接著將光標移動到第一講第三節來繼續我們的教程講解。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一講第三節︰文本編輯之刪除 + + + ** 在正常(Normal)模式下,可以按下 x 鍵來刪除光標所在位置的字符。** + + 1. 請將光標移動到本節中下面標記有 ---> 的那一行。 + + 2. 為了修正輸入錯誤,請將光標移至準備刪除的字符的位置處。 + + 3. 然後按下 x 鍵將錯誤字符刪除掉。 + + 4. 重復步驟2到步驟4,直到句子修正為止。 + +---> The ccow jumpedd ovverr thhe mooon. + + 5. 好了,該行已經修正了,下一節內容是第一講第四節。 + +特別提示︰在您瀏覽本教程時,不要強行記憶。記住一點︰在使用中學習。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一講第四節︰文本編輯之插入 + + + ** 在正常模式下,可以按下 i 鍵來插入文本。** + + 1. 請將光標移動到本節中下面標記有 ---> 的第一行。 + + 2. 為了使得第一行內容雷同于第二行,請將光標移至文本第一個字符準備插入 + 的位置。 + + 3. 然後按下 i 鍵,接著輸入必要的文本字符。 + + 4. 所有文本都修正完畢,請按下 鍵返回正常模式。 + 重復步驟2至步驟4以便修正句子。 + +---> There is text misng this . +---> There is some text missing from this line. + + 5. 如果您對文本插入操作已經很滿意,請接著閱讀下面的小結。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第一講小結 + + + 1. 光標在屏幕文本中的移動既可以用箭頭鍵,也可以使用 hjkl 字母鍵。 + h (左移) j (下行) k (上行) l (右移) + + 2. 欲進入vim編輯器(從命令行提示符),請輸入︰vim 文件名 <回車> + + 3. 欲退出vim編輯器,請輸入以下命令放棄所有修改︰ + + :q! <回車> + + 或者輸入以下命令保存所有修改︰ + + :wq <回車> + + 4. 在正常模式下刪除光標所在位置的字符,請按︰ x + + 5. 在正常模式下要在光標所在位置開始插入文本,請按︰ + + i 輸入必要文本 + +特別提示︰按下 鍵會帶您回到正常模式或者取消一個不期望或者部分完成 +的命令。 + +好了,第一講到此結束。下面接下來繼續第二講的內容。 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講第一節︰刪除類命令 + + + ** 輸入 dw 可以從光標處刪除至一個單字/單詞的末尾。** + + 1. 請按下 鍵確保您處于正常模式。 + + 2. 請將光標移動到本節中下面標記有 ---> 的那一行。 + + 3. 請將光標移至準備要刪除的單詞的開始。 + + 4. 接著輸入 dw 刪除掉該單詞。 + + 特別提示︰您所輸入的 dw 會在您輸入的同時出現在屏幕的最後一行。如果您輸 + 入有誤,請按下 鍵取消,然後重新再來。 + +---> There are a some words fun that don't belong paper in this sentence. + + 5. 重復步驟3至步驟4,直至句子修正完畢。接著繼續第二講第二節內容。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講第二節︰其他刪除類命令 + + + ** 輸入 d$ 從當前光標刪除到行末。** + + 1. 請按下 鍵確保您處于正常模式。 + + 2. 請將光標移動到本節中下面標記有 ---> 的那一行。 + + 3. 請將光標移動到該行的尾部(也就是在第一個點號‘.’後面)。 + + 4. 然後輸入 d$ 從光標處刪至當前行尾部。 + +---> Somebody typed the end of this line twice. end of this line twice. + + + 5. 請繼續學習第二講第三節就知道是怎麼回事了。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講第三節︰關于命令和對象 + + + 刪除命令 d 的格式如下︰ + + [number] d object 或者 d [number] object + + 其意如下︰ + number - 代表執行命令的次數(可選項,缺省設置為 1 )。 + d - 代表刪除。 + object - 代表命令所要操作的對象(下面有相關介紹)。 + + 一個簡短的對象列表︰ + w - 從當前光標當前位置直到單字/單詞末尾,包括空格。 + e - 從當前光標當前位置直到單字/單詞末尾,但是 *不* 包括空格。 + $ - 從當前光標當前位置直到當前行末。 + +特別提示︰ + 對于勇于探索者,請在正常模式下面僅按代表相應對象的鍵而不使用命令,則 + 將看到光標的移動正如上面的對象列表所代表的一樣。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講第四節︰對象命令的特殊情況 + + + ** 輸入 dd 可以刪除整一個當前行。 ** + + 鑒于整行刪除的高頻度,VIM 的設計者決定要簡化整行刪除,僅需要在同一行上 + 擊打兩次 d 就可以刪除掉光標所在的整行了。 + + 1. 請將光標移動到本節中下面的短句段落中的第二行。 + 2. 輸入 dd 刪除該行。 + 3. 然後移動到第四行。 + 4. 接著輸入 2dd (還記得前面講過的 number-command-object 嗎?) 刪除兩行。 + + 1) Roses are red, + 2) Mud is fun, + 3) Violets are blue, + 4) I have a car, + 5) Clocks tell time, + 6) Sugar is sweet + 7) And so are you. + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講第五節︰撤消類命令 + + + ** 輸入 u 來撤消最後執行的命令,輸入 U 來修正整行。** + + 1. 請將光標移動到本節中下面標記有 ---> 的那一行,並將其置于第一個錯誤 + 處。 + 2. 輸入 x 刪除第一個不想保留的字母。 + 3. 然後輸入 u 撤消最後執行的(一次)命令。 + 4. 這次要使用 x 修正本行的所有錯誤。 + 5. 現在輸入一個大寫的 U ,恢復到該行的原始狀態。 + 6. 接著多次輸入 u 以撤消 U 以及更前的命令。 + 7. 然後多次輸入 CTRL-R (先按下 CTRL 鍵不放開,接著輸入 R 鍵) ,這樣就 + 可以執行恢復命令,也就是撤消掉撤消命令。 + +---> Fiix the errors oon thhis line and reeplace them witth undo. + + 8. 這些都是非常有用的命令。下面是第二講的小結了。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第二講小結 + + + 1. 欲從當前光標刪除至單字/單詞末尾,請輸入︰dw + + 2. 欲從當前光標刪除至當前行末尾,請輸入︰d$ + + 3. 欲刪除整行,請輸入︰dd + + 4. 在正常模式下一個命令的格式是︰ + + [number] command object 或者 command [number] object + 其意是︰ + number - 代表的是命令執行的次數 + command - 代表要做的事情,比如 d 代表刪除 + object - 代表要操作的對象,比如 w 代表單字/單詞,$ 代表到行末等等。 + $ (to the end of line), etc. + + 5. 欲撤消以前的操作,請輸入︰u (小寫的u) + 欲撤消在一行中所做的改動,請輸入︰U (大寫的U) + 欲撤消以前的撤消命令,恢復以前的操作結果,請輸入︰CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三講第一節︰置入類命令 + + + ** 輸入 p 將最後一次刪除的內容置入光標之後 ** + + 1. 請將光標移動到本節中下面示范段落的首行。 + + 2. 輸入 dd 將該行刪除,這樣會將該行保存到vim的緩沖區中。 + + 3. 接著將光標移動到準備置入的位置的上方。記住︰是上方哦。 + + 4. 然後在正常模式下(鍵進入),輸入 p 將該行粘貼置入。 + + 5. 重復步驟2至步驟4,將所有的行依序放置到正確的位置上。 + + d) Can you learn too? + b) Violets are blue, + c) Intelligence is learned, + a) Roses are red, + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三講第二節︰替換類命令 + + + ** 輸入 r 和一個字符替換光標所在位置的字符。** + + 1. 請將光標移動到本節中下面標記有 ---> 的第一行。 + + 2. 請移動光標到第一個錯誤的適當位置。 + + 3. 接著輸入 r ,這樣就能將錯誤替換掉了。 + + 4. 重復步驟2和步驟3,直到第一行已經修改完畢。 + +---> Whan this lime was tuoed in, someone presswd some wrojg keys! +---> When this line was typed in, someone pressed some wrong keys! + + 5. 然後我們繼續學校第三講第三節。 + +特別提示︰切記您要在使用中學習,而不是在記憶中學習。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三講第三節︰更改類命令 + + + ** 要改變一個單字/單詞的部分或者全部,請輸入 cw ** + + 1. 請將光標移動到本節中下面標記有 ---> 的第一行。 + + 2. 接著把光標放在單詞 lubw 的字母 u 的位置那裡。 + + 3. 然後輸入 cw 就可以修正該單詞了(在本例這裡是輸入 ine 。) + + 4. 最後按 鍵,然後光標定位到下一個錯誤第一個準備更改的字母處。 + + 5. 重復步驟3和步驟4,直到第一個句子完全雷同第二個句子。 + +---> This lubw has a few wptfd that mrrf changing usf the change command. +---> This line has a few words that need changing using the change command. + +提示︰請注意 cw 命令不僅僅是替換了一個單詞,也讓您進入文本插入狀態了。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三講第四節︰使用c指令的其他更改類命令 + + + ** 更改類指令可以使用同刪除類命令所使用的對象參數。** + + 1. 更改類指令的工作方式跟刪除類命令是一致的。操作格式是︰ + + [number] c object 或者 c [number] object + + 2. 對象參數也是一樣的,比如 w 代表單字/單詞,$代表行末等等。 + + 3. 請將光標移動到本節中下面標記有 ---> 的第一行。 + + 4. 接著將光標移動到第一個錯誤處。 + + 5. 然後輸入 c$ 使得該行剩下的部分更正得同第二行一樣。最後按 鍵。 + +---> The end of this line needs some help to make it like the second. +---> The end of this line needs to be corrected using the c$ command. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第三講小結 + + + 1. 要重新置入已經刪除的文本內容,請輸入小寫字母 p。該操作可以將已刪除 + 的文本內容置于光標之後。如果最後一次刪除的是一個整行,那麼該行將置 + 于當前光標所在行的下一行。 + + 2. 要替換光標所在位置的字符,請輸入小寫的 r 和要替換掉原位置字符的新字 + 符即可。 + + 3. 更改類命令允許您改變指定的對象,從當前光標所在位置直到對象的末尾。 + 比如輸入 cw 可以替換當前光標到單詞的末尾的內容;輸入 c$ 可以替換當 + 前光標到行末的內容。 + + 4. 更改類命令的格式是︰ + + [number] c object 或者 c [number] object + +下面我們繼續學習下一講。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四講第一節︰定位及文件狀態 + + + ** 輸入 CTRL-g 顯示當前編輯文件中當前光標所在行位置以及文件狀態信息。 + 輸入 SHIFT-G 則直接跳轉到文件中的某一指定行。** + + 提示︰切記要先通讀本節內容,之後才可以執行以下步驟!!! + + 1. 按下 CTRL 鍵不放開然後按 g 鍵。然後就會看到頁面最底部出現一個狀態信 + 息行,顯示的內容是當前編輯的文件名和文件的總行數。請記住步驟3的行號。 + + 2. 按下 SHIFT-G 鍵可以使得當前光標直接跳轉到文件最後一行。 + + 3. 輸入您曾停留的行號,然後按下 SHIFT-G。這樣就可以返回到您第一次按下 + CTRL-g 時所在的行好了。注意︰輸入行號時,行號是不會在屏幕上顯示出來 + 的。 + + 4. 如果願意,您可以繼續執行步驟1至步驟三。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四講第二節︰搜索類命令 + + + ** 輸入 / 以及尾隨的字符串可以用以在當前文件中查找該字符串。** + + 1. 在正常模式下輸入 / 字符。您此時會注意到該字符和光標都會出現在屏幕底 + 部,這跟 : 命令是一樣的。 + + 2. 接著輸入 errroor <回車>。那個errroor就是您要查找的字符串。 + + 3. 要查找同上一次的字符串,只需要按 n 鍵。要向相反方向查找同上一次的字 + 符串,請輸入 Shift-N 即可。 + + 4. 如果您想逆向查找字符串,請使用 ? 代替 / 進行。 + +---> When the search reaches the end of the file it will continue at the start. + + "errroor" is not the way to spell error; errroor is an error. + + 提示︰如果查找已經到達文件末尾,查找會自動從文件頭部繼續查找。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四講第三節︰配對括號的查找 + + + ** 按 % 可以查找配對的括號 )、]、}。** + + 1. 把光標放在本節下面標記有 --> 那一行中的任何一個 (、[ 或 { 處。 + + 2. 接著按 % 字符。 + + 3. 此時光標的位置應當是在配對的括號處。 + + 4. 再次按 % 就可以跳回配對的第一個括號處。 + +---> This ( is a test line with ('s, ['s ] and {'s } in it. )) + +提示︰在程序調試時,這個功能用來查找不配對的括號是很有用的。 + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四講第四節︰修正錯誤的方法之一 + + + ** 輸入 :s/old/new/g 可以替換 old 為 new。** + + 1. 請將光標移動到本節中下面標記有 ---> 的那一行。 + + 2. 輸入 :s/thee/the <回車> 。請注意該命令只改變光標所在行的第一個匹配 + 串。 + + 3. 輸入 :s/thee/the/g 則是替換全行的匹配串。 + +---> the best time to see thee flowers is in thee spring. + + 4. 要替換兩行之間出現的每個匹配串,請輸入 :#,#s/old/new/g (#,#代表的是 + 兩行的行號)。輸入 :%s/old/new/g 則是替換整個文件中的每個匹配串。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第四講小結 + + + 1. Ctrl-g 用于顯示當前光標所在位置和文件狀態信息。Shift-G 用于將光標跳 + 轉至文件最後一行。先敲入一個行號然後按 Shift-G 則是將光標移動至該行 + 號代表的行。 + + 2. 輸入 / 然後緊隨一個字符串是則是在當前所編輯的文檔中向後查找該字符串。 + 輸入問號 ? 然後緊隨一個字符串是則是在當前所編輯的文檔中向前查找該字 + 符串。完成一次查找之後按 n 鍵則是重復上一次的命令,可在同一方向上查 + 找下一個字符串所在;或者按 Shift-N 向相反方向查找下該字符串所在。 + + 3. 如果光標當前位置是括號(、)、[、]、{、},按 % 可以將光標移動到配對的 + 括號上。 + + 4. 在一行內替換頭一個字符串 old 為新的字符串 new,請輸入 :s/old/new + 在一行內替換所有的字符串 old 為新的字符串 new,請輸入 :s/old/new/g + 在兩行內替換所有的字符串 old 為新的字符串 new,請輸入 :#,#s/old/new/g + 在文件內替換所有的字符串 old 為新的字符串 new,請輸入 :%s/old/new/g + 進行全文替換時詢問用戶確認每個替換需添加 c 選項,請輸入 :%s/old/new/gc + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五講第一節︰在 VIM 內執行外部命令的方法 + + + ** 輸入 :! 然後緊隨著輸入一個外部命令可以執行該外部命令。** + + 1. 按下我們所熟悉的 : 命令設置光標到屏幕底部。這樣就可以讓您輸入命令了。 + + 2. 接著輸入感嘆號 ! 這個字符,這樣就允許您執行外部的 shell 命令了。 + + 3. 我們以 ls 命令為例。輸入 !ls <回車> 。該命令就會列舉出您當前目錄的 + 內容,就如同您在命令行提示符下輸入 ls 命令的結果一樣。如果 !ls 沒起 + 作用,您可以試試 :!dir 看看。 + +---> 提示︰ 所有的外部命令都可以以這種方式執行。 + +---> 提示︰ 所有的 : 命令都必須以 <回車> 告終。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五講第二節︰關于保存文件的更多信息 + + + ** 要將對文件的改動保存到文件中,請輸入 :w FILENAME ** + + 1. 輸入 :!dir 或者 :!ls 獲知當前目錄的內容。您應當已知道最後還得敲 + <回車> 吧。 + + 2. 選擇一個尚未存在文件名,比如 TEST 。 + + 3. 接著輸入 :w TEST (此處 TEST 是您所選擇的文件名。) + + 4. 該命令會以 TEST 為文件名保存整個文件 (VIM 教程)。為了確保正確保存, + 請再次輸入 :!dir 查看您的目錄列表內容。 + +---> 請注意︰如果您退出 VIM 然後在以文件名 TEST 為參數進入,那麼該文件內 + 容應該同您保存時的文件內容是完全一樣的。 + + 5. 現在您可以通過輸入 :!rm TEST 來刪除 TEST 文件了。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五講第三節︰一個具有選擇性的保存命令 + + + ** 要保存文件的部分內容,請輸入 :#,# w FILENAME ** + + 1. 再來執行一次 :!dir 或者 :!ls 獲知當前目錄的內容,然後選擇一個合適的 + 不重名的文件名,比如 TEST 。 + + 2. 接著將光標移動至本頁的最頂端,然後按 CTRL-g 找到該行的行號。別忘了 + 行號哦。 + + 3. 接著把光標移動至本頁的最底端,再按一次 CTRL-g 。也別忘了這個行號哦。 + + 4. 為了只保存文章的某個部分,請輸入 :#,# w TEST 。這裡的 #,# 就是上面 + 要求您記住的行號(頂端行號,底端行號),而 TEST 就是選定的文件名。 + + 5. 最後,用 :!dir 確認文件是否正確保存。但是這次先別刪除掉。 + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五講第四節︰提取和合並文件 + + + ** 要向當前文件中插入另外的文件的內容,請輸入 :r FILENAME ** + + 1. 請鍵入 :!dir 確認您前面創建的 TEST 文件還在。 + + 2. 然後將光標移動至當前頁面的頂端。 + +特別提示︰ 執行步驟3之後您將看到第五講第三節,請屆時再往下移動回到這裡來。 + + 3. 接著通過 :r TEST 將前面創建的名為 TEST 的文件提取進來。 + +特別提示︰您所提取進來的文件將從光標所在位置處開始置入。 + + 4. 為了確認文件已經提取成功,移動光標回到原來的位置就可以注意有兩份第 + 五講第三節,一份是原本,另外一份是來自文件的副本。 + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第五講小結 + + + 1. :!command 用于執行一個外部命令 command。 + + 請看一些實際例子︰ + :!dir - 用于顯示當前目錄的內容。 + :!rm FILENAME - 用于刪除名為 FILENAME 的文件。 + + 2. :w FILENAME 可將當前 VIM 中正在編輯的文件保存到名為 FILENAME + 的文件中。 + + 3. :#,#w FILENAME 可將當前編輯文件第 # 行至第 # 行的內容保存到文件 + FILENAME 中。 + + 4. :r FILENAME 可提取磁盤文件 FILENAME 並將其插入到當前文件的光標位置 + 後面。 + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六講第一節︰打開類命令 + + + ** 輸入 o 將在光標的下方打開新的一行並進入插入模式。** + + 1. 請將光標移動到本節中下面標記有 ---> 的那一行。 + + 2. 接著輸入小寫的 o 在光標 *下方* 打開新的一行並進入插入模式。 + + 3. 然後復制標記有 ---> 的行並按 鍵退出插入模式而進入正常模式。 + +---> After typing o the cursor is placed on the open line in Insert mode. + + 4. 為了在光標 *上方* 打開新的一行,只需要輸入大寫的 O 而不是小寫的 o + 就可以了。請在下行測試一下吧。當光標處在在該行上時,按 Shift-O可以 + 在該行上方新開一行。 + +Open up a line above this by typing Shift-O while the cursor is on this line. + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六講第二節︰光標後插入類命令 + + + ** 輸入 a 將可在光標之後插入文本。 ** + + 1. 請在正常模式下通過輸入 $ 將光標移動到本節中下面標記有 ---> 的第一行 + 的末尾。 + + 2. 接著輸入小寫的 a 則可在光標之後插入文本了。大寫的 A 則可以直接在行 + 末插入文本。 + +提示︰輸入大寫 A 的操作方法可以在行末插入文本,避免了輸入 i,光標定位到 + 最後一個字符,輸入的文本, 回復正常模式,箭頭右鍵移動光標以及 + x 刪除當前光標所在位置字符等等諸多繁雜的操作。 + + 3. 操作之後第一行就可以補充完整了。請注意光標後插入文本與插入模式是基 + 本完全一致的,只是文本插入的位置定位稍有不同罷了。 + +---> This line will allow you to practice +---> This line will allow you to practice appending text to the end of a line. + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六講第三節︰另外一個置換類命令的版本 + + + ** 輸入大寫的 R 可連續替換多個字符。** + + 1. 請將光標移動到本節中下面標記有 ---> 的第一行。 + + 2. 移動光標到第一行中不同于標有 ---> 的第二行的第一個單詞的開始,即單 + 詞 last 處。 + + 3. 然後輸入大寫的 R 開始把第一行中的不同于第二行的剩余字符逐一輸入,就 + 可以全部替換掉原有的字符而使得第一行完全雷同第二行了。 + +---> To make the first line the same as the last on this page use the keys. +---> To make the first line the same as the second, type R and the new text. + + 4. 請注意︰如果您按 退出置換模式回復正常模式,尚未替換的文本將仍 + 然保持原狀。 + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六講第四節︰設置類命令的選項 + + + ** 設置可使查找或者替換可忽略大小寫的選項 ** + + + 1. 要查找單詞 ignore 可在正常模式下輸入 /ignore 。要重復查找該詞,可以 + 重復按 n 鍵。 + + 2. 然後設置 ic 選項(ic就是英文忽略大小寫Ignore Case的首字母縮寫詞),即 + 輸入︰ + :set ic + + 3. 現在可以通過鍵入 n 鍵再次查找單詞 ignore。重復查找可以重復鍵入 n 鍵。 + + 4. 然後設置 hlsearch 和 incsearch 這兩個選項,輸入以下內容︰ + :set hls is + + 5. 現在可以再次輸入查找命令,看看會有什麼效果︰ + /ignore + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第六講小結 + + + 1. 輸入小寫的 o 可以在光標下方打開新的一行並將光標置于新開的行首,進入 + 插入模式。 + 輸入大寫的 O 可以在光標上方打開新的一行並將光標置于新開的行首,進入 + 插入模式。 + + 2. 輸入小寫的 a 可以在光標所在位置之後插入文本。 + 輸入大寫的 A 可以在光標所在行的行末之後插入文本。 + + 3. 輸入大寫的 R 將進入替換模式,直至按 鍵退出替換模式而進入正常 + 模式。 + + 4. 輸入 :set xxx 可以設置 xxx 選項。 + + + + + + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第七講︰在線幫助命令 + + ** 使用在線幫助系統 ** + + Vim 擁有一個細致全面的在線幫助系統。要啟動該幫助系統,請選擇如下三種方 + 法之一︰ + - 按下 鍵 (如果鍵盤上有的話) + - 按下 鍵 (如果鍵盤上有的話) + - 輸入 :help <回車> + + 輸入 :q <回車> 可以關閉幫助窗口。 + + 提供一個正確的參數給":help"命令,您可以找到關于該主題的幫助。請試驗以 + 下參數(可別忘了按回車鍵哦。:)︰ + + :help w <回車> + :help c_ + :help insert-index <回車> + :help user-manual <回車> + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 第八講︰創建一個啟動腳本 + + ** 啟用vim的功能 ** + + Vim的功能特性要比vi多得多,但大部分功能都沒有缺省激活。為了啟動更多的 + 功能,您得創建一個vimrc文件。 + + 1. 開始編輯vimrc文件,這取決于您所使用的操作系統︰ + + :edit ~/.vimrc 這是Unix系統所使用的命令 + :edit ~/_vimrc 這是Windows系統所使用的命令 + + 2. 接著導入vimrc范例文件︰ + + :read $VIMRUNTIME/vimrc_example.vim + + 3. 保存文件,命令為︰ + + :write + + 在下次您啟動vim的時候,編輯器就會有了語法高亮的功能。您可以繼續把您喜 + 歡的其它功能設置添加到這個vimrc文件中。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + vim 教程到此結束。本教程只是為了簡明地介紹一下vim編輯器,但已足以讓您 + 很容易學會使用本編輯器了。毋庸質疑,vim還有很多很多的命令,本教程所介 + 紹的還差得遠著呢。所以您要精通的話,還望繼續努力哦。下一步您可以閱讀 + vim手冊,使用的命令是︰ + :help user-manual + + 為了更進一步的參考和學習,以下這本書值得推薦︰ + + Vim - Vi Improved - 作者︰Steve Oualline + 出版社︰New Riders + + 這是第一本完全講解vim的書籍。對于初學者特別有用。其中還包含有大量實例 + 和圖示。欲知詳情,請訪問 https://iccf-holland.org/click5.html + + 以下這本書比較老了而且內容主要是vi而不是vim,但是也值得推薦︰ + + Learning the Vi Editor - 作者︰Linda Lamb + 出版社︰O'Reilly & Associates Inc. + + 這是一本不錯的書,通過它您幾乎能夠了解到全部vi能夠做到的事情。此書的第 + 六個版本也包含了一些關于vim的信息。 + + 本教程是由來自Calorado School of Minese的Michael C. Pierce、Robert K. + Ware 所編寫的,其中來自Colorado State University的Charles Smith提供了 + 很多創意。編者通信地址是︰ + + bware@mines.colorado.edu + + 本教程已由Bram Moolenaar專為vim進行修訂。 + + + + 譯制者附言︰ + =========== + 簡體中文教程翻譯版之譯制者為梁昌泰 ,還有 + 另外一個聯系地址︰linuxrat@gnuchina.org。 + + 繁體中文教程是從簡體中文教程翻譯版使用 Debian GNU/Linux 中文項目小 + 組的于廣輝先生編寫的中文漢字轉碼器 autoconvert 轉換而成的,並對轉 + 換的結果做了一些細節的改動。 + + 變更記錄︰ + ========= + 2002年08月30日 梁昌泰 + 感謝 RMS@SMTH 的指正,將多處錯誤修正。 + + 2002年04月22日 梁昌泰 + 感謝 xuandong@sh163.net 的指正,將兩處錯別字修正。 + + 2002年03月18日 梁昌泰 + 根據Bram Moolenaar先生在2002年03月16日的來信要求,將vimtutor1.4中譯 + 版升級到vimtutor1.5。 + + 2001年11月15日 梁昌泰 + 將vimtutor1.4中譯版提交給Bram Moolenaar和Sven Guckes。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2 b/git/usr/share/vim/vim92/tutor/tutor2 new file mode 100644 index 0000000000000000000000000000000000000000..f35cb3c563e456d9499466daabb1a19351923599 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2 @@ -0,0 +1,292 @@ +=============================================================================== += W e l c o m e t o t h e V I M T u t o r - Version 1.7 = +=============================================================================== += C H A P T E R TWO = +=============================================================================== + + Hic Sunt Dracones: if this is your first exposure to vim and you + intended to avail yourself of the introductory chapter, kindly type + :q! and run vimtutor for Chapter 1 instead. + + The approximate time required to complete this chapter is 8-10 minutes, + depending upon how much time is spent with experimentation. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.1: MASTERING TEXT OBJECTS + + ** Operate on logical text blocks with precision using text objects ** + + 1. Practice word operations: + - Place cursor on any word in the line below + - Type diw to delete INNER word (word without surrounding space) + - Type daw to delete A WORD (including trailing whitespace) + - Try with other operators: ciw (change), yiw (yank), gqiw (format) + +---> Practice on: "Vim's", (text_object), and 'powerful' words here. + + 2. Work with bracketed content: + - Put cursor inside any () {} [] <> pair below + - Type di( or dib (delete inner bracket) + - Type da( or dab (delete around brackets) + - Try same with i"/a" for quotes, it/at for HTML/XML tags + +---> Test cases: {curly}, [square], , and "quoted" items. + + 3. Paragraph and sentence manipulation: + - Use dip to delete inner paragraph (cursor anywhere in paragraph) + - Use vap to visually select entire paragraph + - Try das to delete a sentence (works between .!? punctuation) + + 4. Advanced combinations: + - ciwnew - Change current word to "new" + - ciw"-" - Wrap current word in quotes + - gUit - Uppercase inner HTML tag content + - va"p - Select quoted text and paste over it + +---> Final exercise: (Modify "this" text) by [applying {various} operations]< + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.2: THE NAMED REGISTERS + + + ** Store two yanked words concurrently and then paste them ** + + 1. Move the cursor to the line below marked ---> + + 2. Navigate to any point on the word 'Edward' and type "ayiw + +MNEMONIC: into register(") named (a) (y)ank (i)nner (w)ord + + 3. Navigate forward to the word 'cookie' (fk or 3fc or $2b or /co) + and type "byiw + + 4. Navigate to any point on the word 'Vince' and type ciwa + +MNEMONIC: (c)hange (i)nner (w)ord with named (a) + + 5. Navigate to any point on the word 'cake' and type ciwb + +---> a) Edward will henceforth be in charge of the cookie rations + b) In this capacity, Vince will have sole cake discretionary powers + +NOTE: Delete also works into registers, i.e. "sdiw will delete the word under + the cursor into register s. + +REFERENCE: Registers :h registers + Named Registers :h quotea + Motion :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.3: THE EXPRESSION REGISTER + + + ** Insert the results of calculations on the fly ** + + 1. Move the cursor to the line below marked ---> + + 2. Navigate to any point on the supplied number + + 3. Type ciw followed by =60*60*24 + + 4. On the next line, enter insert mode and add today's date with + followed by =system('date') + +NOTE: All calls to system are OS dependent, e.g. on Windows use + system('date /t') or :r!date /t + +---> I have forgotten the exact number of seconds in a day, is it 84600? + Today's date is: + +NOTE: the same can be achieved with :pu=system('date') + or, with fewer keystrokes :r!date + +REFERENCE: Expression Register :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.4: THE NUMBERED REGISTERS + + + ** Press yy and dd to witness their effect on the registers ** + + 1. Move the cursor to the line below marked ---> + + 2. Yank the zeroth line, then inspect registers with :reg + + 3. Delete line 0. with "cdd, then inspect registers + (Where do you expect line 0 to be?) + + 4. Continue deleting each successive line, inspecting :reg as you go + +NOTE: You should notice that old full-line deletions move down the list + as new full-line deletions are added + + 5. Now (p)aste the following registers in order; c, 7, 4, 8, 2. i.e. "7p + +---> 0. This + 9. wobble + 8. secret + 7. is + 6. on + 5. axis + 4. a + 3. war + 2. message + 1. tribute + +NOTE: Whole line deletions (dd) are much longer lived in the numbered registers + than whole line yanks, or deletions involving smaller movements + +REFERENCE: Numbered Registers :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.5: SPECIAL REGISTERS + + ** Use system clipboard and blackhole registers for advanced editing ** + + Note: Clipboard use requires X11/Wayland libraries on Linux systems AND + a Vim built with "+clipboard" (usually a Huge build). Check with + ":version" and ":echo has('clipboard_working')" + + 1. Clipboard registers + and * : + - "+y - Yank to system clipboard (e.g. "+yy for current line) + - "+p - Paste from system clipboard + - "* is primary selection on X11 (middle-click), "+ is clipboard + +---> Try: "+yy then paste into another application with Ctrl-V or Cmd+V + + 2. Blackhole register _ discards text: + - "_daw - Delete word without saving to any register + - Useful when you don't want to overwrite your default " register + - Note this is using the "a Word" text object, introduced in a previous + lession + - "_dd - Delete line without saving + - "_dap - Delete paragraph without saving + - Combine with counts: 3"_dw + +---> Practice: "_diw on any word to delete it without affecting yank history + + 3. Combine with visual selections: + - Select text with V then "+y + - To paste from clipboard in insert mode: + + - Try opening another application and paste from clipboard + + 4. Remember: + - Clipboard registers work across different Vim instances + - Clipboard register is not always working + - Blackhole prevents accidental register overwrites + - Default " register is still available for normal yank/paste + - Named registers (a-z) remain private to each Vim session + + 5. Clipboard troubleshooting: + - Check support with :echo has('clipboard_working') + - 1 means available, 0 means not compiled in + - On Linux, may need vim-gtk or vim-x11 package + (check :version output) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.6: THE BEAUTY OF MARKS + + ** Code monkey arithmetic avoidance ** + +NOTE: a common conundrum when coding is moving around large chunks of code. + The following technique helps avoid number line calculations associated + with operations like "a147d or :945,1091d a or even worse using + i followed by =1091-945 first + + 1. Move the cursor to the line below marked ---> + + 2. Go to the first line of the function and mark it with ma + +NOTE: exact position on line is NOT important! + + 3. Navigate to the end of the line and then the end of the code block + with $% + + 4. Delete the block into register a with "ad'a + +MNEMONIC: into register(") named (a) put the (d)eletion from the cursor to the + LINE containing mark(') (a) + + 5. Paste the block between BBB and CCC "ap + +NOTE: practice this operation multiple times to become fluent ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // the taxonomy of our function has changed and it + // no longer makes alphabetical sense in its current position + + // imagine hundreds of lines of code + + // naively you could navigate to the start and end and record or + // remember each line number + } + BBB + CCC + +NOTE: marks and registers do not share a namespace, therefore register a is + completely independent of mark a. This is not true of registers and + macros. + +REFERENCE: Marks :h marks + Mark Motions :h mark-motions (difference between ' and `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1 SUMMARY + + 1. Text objects provide precision editing: + - iw/aw - inner/around word + - i[/a[ - inner/around bracket + - i"/a" - inner/around quotes + - it/at - inner/around tag + - ip/ap - inner/around paragraph + - is/as - inner/around sentence + + 2. To store (yank, delete) text into, and retrieve (paste) from, a total of + 26 registers (a-z) + 3. Yank a whole word from anywhere within a word: yiw + 4. Change a whole word from anywhere within a word: ciw + 5. Insert text directly from registers in insert mode: a + + 6. Insert the results of simple arithmetic operations: followed by + =60*60 + in insert mode + 7. Insert the results of system calls: followed by + =system('ls -1') + in insert mode + + 8. Inspect registers with :reg + 9. Learn the final destination of whole line deletions: dd in the numbered + registers, i.e. descending from register 1 - 9. Appreciate that whole + line deletions are preserved in the numbered registers longer than any + other operation + 10. Learn the final destination of all yanks in the numbered registers and + how ephemeral they are + + 11. Place marks from command mode m[a-zA-Z0-9] + 12. Move line-wise to a mark with ' + + 13. Special registers: + - "+/"* - System clipboard (OS dependent) + - "_ - Blackhole (discard deleted/yanked text) + - "= - Expression register + - "- - Small delete register + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + This concludes chapter two of the Vim Tutor. It is a work in progress. + + This chapter was written by Paul D. Parker and Christian Brabandt. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.es b/git/usr/share/vim/vim92/tutor/tutor2.es new file mode 100644 index 0000000000000000000000000000000000000000..34c7d399e43aa3aed1c4d21e0cc41fdc201e2166 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.es @@ -0,0 +1,321 @@ +=============================================================================== += B i e n v e n i d o a l t u t o r d e V I M - Versión 1.7 = +=============================================================================== += CAPÍTULO DOS = +=============================================================================== + + Hic Sunt Dracones: si esta es tu primera vez usando Vim y tienes la + intención de aprovechar el capítulo de introducción, simplemente escribe + :q! y ejecuta vimtutor para empezar por el Capítulo 1. + + El tiempo aproximado para completar este capítulo es de 8-10 minutos, + dependiendo de cuanto tiempo dediques a experimentar. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.1: DOMINAR LOS OBJETOS DE TEXTO + +** Operar en bloques de texto lógicos con precisión usando objetos de texto. ** + + 1. Practica las operaciones con palabras: + - Situa el cursor en cualquier palabra de la línea inferior + - Escribe diw para eliminar la palabra DENTRO donde está el cursor + (la palabra sin el espacio circundante) + - Escribe daw para eliminar UNA PALABRA + (incluyendo espacios en blanco al final) + - Prueba con otras operaciones: ciw (cambiar), yiw (copiar), + gqiw (formato) + +---> Practica aquí: "Vim's", (text_object), y aquí palabras 'poderosas'. + + 2. Trabaja con contenido entre paréntesis, corchetes o llaves: + - Situa el cursor dentro de cualquier par de los símbolos () {} [] <> + - Escribe di( o dib (eliminar dentro de los paréntesis) + - Escribe da( o dab (eliminar alrededor de los paréntesis) + - Prueba lo mismo con i" o con a" para las comillas + - Prueba con it o con at para etiquetas HTML/XML + +---> Ejemplos de prueba: con {llaves}, [corchetes], <ángulos> y "comillas". + + 3. Manipulación de párrafos y frases: + - Utiliza dip para eliminar el párrafo donde se encuentra el cursor + - Utiliza vap para seleccionar visualmente el párrafo entero + - Prueba das para eliminar una frase + (funciona entre símbolos de puntuación .!?) + + 4. Combinaciones avanzadas: + - ciwnuevo - Cambiar la palabra actual por "nuevo" + - ciw"-" - Encierra la palabra actual entre comillas + - gUit - Convertir a mayúsculas el contenido de la + etiqueta HTML donde esté el cursor + - va"p - Seleccionar el texto entre comillas y pegarlo sobre él + +---> Ejercicio final: (Modificar "el" texto) al [aplicar {varias} operaciones]< + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.2: LOS REGISTROS NOMINALES + + + ** Almacenar dos palabras copiadas de manera consecutiva y después pegarlas ** + + 1. Mueve el cursor a la línea inferior marcada con ---> + + 2. Situa el cursor en cualquier parte de la palabra 'Edward' y escribe "ayiw + +REGLA NEMOTÉCNICA: dentro del registo (") llamado (a) (y)copia + (i)entera la (w)palabra + + 3. Mueve el cursor a la palabra 'galletas' (ft o 2fg o $1b o /lle) + y escribe "byiw + + 4. Situa el cursos en cualquier parte de la palabra 'Vince' + y escribe ciwa + +REGLA NEMOTÉCNICA: (c)ambia el (i)interior de la (w)palabra + por el llamado (a) + + 5. Navega hasta cualquier punto de la palabra 'tarta' + y escribe ciwb + +---> a) Edward se encargará de las raciones de galletas + b) En esta función, Vince solo tentrá poderes sobre la tarta + +NOTA: Eliminar también funciona dentro de los registros, por ejemplo: + "sdiw eliminará la palabra bajo el cursor en el registro s. + +REFERENCIAS: Registros :h registers + Registros nominales :h quotea + Movimiento :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.3: EL REGISTRO DE EXPRESIÓN + + + ** Insertar los resultados de los cálculos sobre la marcha ** + + 1. Situa el cursor sobre la línea inferior marcada con ---> + + 2. Navega hasta cualquier parte del número que se muestra + + 3. Escribe ciw seguido por =60*60*24 + + 4. En la línea siguiente, entra en modo insertar y añade la fecha actual con + seguido por =system('date') + +NOTA: Todas las llamadas al sistema dependen del sistema operativo utilizado. + Por ejemplo en Windows hay que usar system('date /t') o :r!date /t + +---> He olvidado el número exacto de segundos en un días ¿son 84600? + La fecha actual es: + +NOTA: se puede obtener el mismo resultado con :pu=system('date') + o, usando menos pulsaciones de teclas :r!date + +REFERENCIA: Registro de expresión :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.4: LOS REGISTROS NUMERADOS + + + ** Pulsa yy y dd para ser testigo de sus efectos en los registros ** + + 1. Situa el cursor sobre la línea inferior marcada con ---> + + 2. Copia la línea marcada con 0, + después revisa los registros mediante :reg + + 3. Elimina la línea 0 mediante "cdd, después revisa los registros + (¿Dónde esperas que esté la línea 0?) + + 4. Continúa eliminado cada línea sucesivamente, + inspencciona :reg mientras lo haces + +NOTA: Deberías comprobar cómo las líneas completas eliminadas + van bajando en la lista, cada vez que nuevas líneas eliminadas se añaden + + 5. Ahora (p)ega los siguiente registros en orden; 0, 7, 4, 2, 8. Así: "7p + +---> 0. Este + 9. tambaleante + 8. secreto + 7. es + 6. en + 5. eje + 4. un + 3. guerra + 2. mensaje + 1. tributo + +NOTA: La eliminación completa de líneas (dd) persisten más en los registros + numerados que las copias completas de lína o las eliminaciones que + implican pequeños movimientos + +REFERENCIA: Registros numerados :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.5: REGISTROS ESPECIALES + + ** Utilizar el portapappeles del sistema y los registros de agujero negro ** + ** para una edición avanzada ** + + Nota: El uso del portapapeles del sistema requiere de bibliotecas X11/Wayland + en sistemas Linux Y una compilación de Vim con la opción "+clipboard" + (normalmente una compilación enorme). Se puede comprobar mediante + ":version" o ":echo has('clipboard_working')" + + 1. Registros del portapapeles + and * : + - "+y - Copiar al portapapeles del sistema + (Por ejemplo: "+yy para copiar en el portapapeles la línea actual) + - "+p - Pegar del portapapeles del sistema + - "* es la selección principal de X11 (el botón central), + "+ es el portapapeles + +---> Prueba: "+yy después pega la línea en otra aplicación + mediante Ctrl-V o Cmd+V + + 2. El registro de agujero negro _ para texto descartado: + - "_daw - Elimina una palabra sin guardarla en ningún registro + - Útil cuando no quieres sobreescribir el registro predeterminado " + - Ten en cuenta que utiliza el objeto de texto "una Palabra" visto + en la lección anterior + lession + - "_dd - Elimina una línea sin guardarla + - "_dap - Elimina un párrafo sin almacenarlo + - Combinado con un conteo: 3"_dw + +---> Practica: Utiliza "_diw en cualquier palabra para eliminarla sin afectar + al historial de copiado + + 3. Combinado con unas selecciones visuales: + - Selecciona un texto con V y después pulsa "+y + - Para pegarlo desde el portapapeles en el modo insertar pulsa: + + - Intenta abrir otra aplicación y péga el texto desde el portapapeles + + 4. Recuerda: + - Los registros del portapapeles funcionan a través de diferentes + instancias de Vim + - El registro del portapapelesno siempre está funcional + - El agujero negro previene el sobreescribir accidentalmente un registro + - El registro predeterminado " todavía está disponible para una acción + normal de copado/pegado + - Los registros nominales (a-z) permanecen privados para cada sesión de Vim + + 5. Problemas con el portapapeles: + - Comprueba que tu Vim lo admite mediante :echo has('clipboard_working') + - Si el comando anterior devuelve un 1 significa que está disponible, + Si devuelve un 0, significa que esa compilación de Vim no lo admite. + - En Linux, se puede necesitar el paquete vim-gtk o vim-x11 package + (comprueba :version output) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1.6: LA BELLEZA DE LAS MARCAS + + ** El programador que rehuye de la aritmética ** + +NOTA: Un dilema común cuando se está creando código es mover grandes porciones + de código. + La siguiente técnica ayuda a evitar los cálculos asociados a los números + de línea con operaciones como "a147d o :945,1091d a o o incluso peor + i seguido por =1091-945 + + 1. Mueve el cursor hasta la línea inferior marcada con ---> + + 2. Ve a la primera línea de la función marcada con ma + +NOTA: ¡La posición exacta dentro de la línea NO es importante! + + 3. Navega hasta el final de la línea y después hasta el final del + bloque del código mediante $% + + 4. Elimina el bloque y guárdalo dentro del registro a mediante "ad'a + +REGLA NEMOTÉCNICA: dentro del registro(") llamado (a) coloca lo que he + (d)eliminado desde el cursor hasta la LÍNEA que + contiene la marca(') (a) + + 5. Pega el contenido del bloque entre BBB y CCC mediante "ap + +NOTA: practica esta operación varias veces hasta que tengas soltura ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // La taxonomía de nuestra función ha cambiado y + // Ya no tiene sentido alfabético en su posición actual + + // imagina que aquí hay cientos de líneas de código + + // de manera ingenua podrías navegar hasta el comienzo y hasta el final y + // apuntar o recordar cada número de la línea + } + BBB + CCC + +NOTA: Las marcas y los registros no comparten sus nombres. Así pues el + registro a es completamente independiente de la marca a. + Esto no se cumple con los registros y las macros. + +REFERENCIA: Marcas :h marks + Movimientos con las marcas :h mark-motions + (diferencia entre ' y `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lección 2.1 RESUMEN + + 1. Los objetos de texto ofrecen precisión a la hora de editar: + - iw/aw - dentro/alrededor de una palabra + - i[/a[ - dentro/alrededor de un paréntesis, corchete, etc + - i"/a" - dentro/alrededor de unas comillas quotes + - it/at - dentro/alrededor de una etiqueta + - ip/ap - dentro/alrededor de un párrafo + - is/as - dentro/alrededor de una frase + + 2. Para almacenar (copiar o eliminar) un texto dentro y volverlo a utilizar + (pegarlo), existen un total de 26 registros nominales (a-z) + 3. Copiar una palabra complete con el cursor situado en cualquierparte + dentro de esa palabra mediante: yiw + 4. Cambiar una palabra completa con el cursor en cualquier parte de esa + palabra mediante: ciw + 5. Insertar texto directamente desde los registros en el modo insertar + mediante el comando: a + + 6. Insertar los resultado de una simple operación aritmética + en el modo insertar mediante: seguido por =60*60 + 7. Insertar los resultado de una llamada del sistema en el modo insertar + mediante: seguido por =system('ls -1') + + 8. Inspeccionar el contenido de los registros con :reg + 9. Aprender el destino final al que va a parar la eliminación de + una línea complete: dd en los registros numerados. + Por ejemplo: descendiendo desde el registro 1 al 9. i.e. descending from register 1 - 9. + Ten en cuenta cómo las eliminaciones completas de las líneas son preservadas en + los registros numerado y permanecen más que cualquier otra operación realizada + 10. Aprender cual es el destino final de todos los objetos que copiamos + en los registros numerados y cómo son de efímeros + + 11. Ubicar marcas desde el modo de comandos m[a-zA-Z0-9] + 12. Mover de manera inteligente una línea a una marca con ' + + 13. Registros especiales: + - "+/"* - Portapapeles del sistema (depende el sistema operativo utilizado) + - "_ - El agujero negro (descarta texto eliminado/copiado) + - "= - Registro de expresión + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Con esto concluye el capítulo dos del Tutor de Vim. + Este es un trabajo en progreso. + + Este capítulo fue escrito por Paul D. Parker y Christian Brabandt. + Traducido por Victorhck. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.fr b/git/usr/share/vim/vim92/tutor/tutor2.fr new file mode 100644 index 0000000000000000000000000000000000000000..42114b67ebb9347a1a665cdb241419f95ddf71ee --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.fr @@ -0,0 +1,213 @@ +=============================================================================== += B i e n v e n u e dans l e T u t o r i e l de VIM – Version 1.7 = +=============================================================================== += C H A P I T R E DEUX = +=============================================================================== + + Hic sunt dracones : si cʼest la première fois que vous utilisez Vim + et que vous souhaitez accéder au tutoriel dʼintroduction, tapez + les trois touches :q! puis la touche et recommencez. + + Il vous faudra entre 8 et 10 minutes pour terminer ce chapitre, selon + que vous passiez plus ou moins de temps à expérimenter. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Leçon 2.1.1 : REGISTRES NOMMÉS + + + ** Conserver deux mots copiés en parallèle, puis les coller ** + + 1. Déplacez le curseur sur la ligne ci-dessous commençant par : ---> + + 2. Placez-vous nʼimporte où dans le mot 'Édouard' et tapez "ayiw + +AIDE MNÉMOTECHNIQUE : dans le registre(") nommé (a) (y)ank la portion + (i)nterne du (w)ord sous-jacent + + 3. Avancez jusquʼau mot 'chouquettes' (fq ou 2fc ou $ ou /ch) + et tapez "byiw + + 4. Rendez-vous sur le mot 'Vincent' et tapez ciwa<ÉCHAP> + +AIDE MNÉMOTECHNIQUE : é(c)hange la partie (i)nterne du (w)ord sous-jacent + avec le nommé (a) + + 5. Rendez-vous sur le mot 'croissant' et tapez ciwb<ÉCHAP> + +---> a) Édouard aura toute autorité sur le contingentement des chouquettes + b) À ce titre, Vincent exercera seul le pouvoir discrétionnaire sur + lʼattribution des croissants. + +NOTE : On peut aussi utiliser les registres avec la commande de suppression. + Taper "sdiw supprimera le mot sous-jacent et en conservera une copie + dans le registre (s). + +RÉFÉRENCES: Registres :h registers + Registres nommés :h quotea + Mouvements :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Leçon 2.1.2 : LE REGISTRE DʼEXPRESSIONS + + + ** Insérer à la volée le résultat dʼun calcul ** + + 1. Déplacez le curseur sur la ligne ci-dessous commençant par : ---> + + 2. Placez-vous sur le nombre + + 3. Tapez ciw suivi de =60*60*24 + + 4. Sur la ligne suivante, en mode Insertion, ajoutez la date du jour avec + suivi de =system('date') + +NOTE : Tous les appels système dépendent de votre système dʼexploitation. Par + exemple sur MS-Windows, utilisez plutôt + system('date /t') ou :r!date /t + +---> Dans une journée, il y a 100 secondes. + Aujourdʼhui, nous sommes : + +NOTE: on arrive au même résultat avec :pu=system('date') + ou, plus court :r!date + +RÉFÉRENCE : Registre dʼexpressions :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Leçon 2.1.3 : LES REGISTRES NUMÉROTÉS + + + ** Tapez yy et dd afin de contempler leur effet sur les registres ** + + 1. Déplacez le curseur sur la ligne ci-dessous commençant par : ---> + + 2. Copiez (yy) la ligne 0, puis inspectez les registres avec :reg + + 3. Supprimez la ligne 0 avec "cdd, puis inspectez les registres + (Où pensez-vous retrouver la ligne 0 ?) + + 4. Continuez à supprimer chaque ligne successivement (avec dd), tout en + regardant le résultat au passage avec :reg. + +NOTE : Vous devriez remarquer que les anciennes lignes supprimées descendent + dans la liste des registres au fur et à mesure que vous supprimez de + nouvelles lignes. + + 5. Maintenant collez le contenu des registres suivant, dans cet ordre : + c, 7, 4, 2, 8. i.e collez avec "cp puis "7p puis etc. + +---> 0. Ceci + 9. zigzag + 8. secret + 7. est + 6. on + 5. axe + 4. un + 3. guerre + 2. message + 1. hommage + +NOTE : Les lignes entièrement supprimées (via dd) restent beaucoup plus + longtemps dans les registres numérotés que les lignes copiées (via yy) + ou les suppressions impliquant des mouvements plus courts. + +RÉFÉRENCE : Registres numérotés :h quote0 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Leçon 2.1.4 : LʼÉLÉGANCE DES MARQUES + + + ** Lʼart dʼéviter les calculs pour le codeur décérébré ** + +NOTE : En programmation, déplacer de gros blocs de code est souvent une vraie + corvée. Le souci nʼest pas la difficulté de lʼopération, mais la + gymnastique mentale quʼimposent les calculs de numéros de ligne — une + tâche fastidieuse et source dʼerreurs. + La technique qui suit vous épargne justement ce tracas pour des + opérations comme "a147d ou :945,1091d a ou pire encore + i suivi de =1091-945 + + 1. Déplacez le curseur sur la ligne ci-dessous commençant par : ---> + + 2. Placez-vous sur la première ligne de la fonction et placez une marque (a) + avec ma + +NOTE : peu importe la position exacte sur la ligne. + + 3. Allez à la fin de la ligne, puis à la fin du bloc de code avec $% + + 4. Supprimez le bloc et conservez-le dans le registre (a) avec "ad'a + +AIDE MNÉMOTECHNIQUE : demande au registre(") nommé (a) de conserver la + (d)élétion effectuée depuis le curseur jusquʼà la LIGNE contenant la + marque(') (a) + + 5. Collez le bloc entre BBB et CCC avec "ap + +NOTE : exercez-vous plusieurs fois pour que ça devienne naturel ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // the taxonomy of our function has changed and it + // no longer makes alphabetical sense in its current position + + // imagine hundreds of lines of code + + // naively you could navigate to the start and end and record or + // remember each line number + } + BBB + CCC + +NOTE : les marques et les registres ne partagent pas leur espace de noms, + le registre (a) est complètement indépendant de la marque (a). + On ne peut pas en dire autant des registres et des macros. + +RÉFÉRENCES : Marques :h marks + :h mark-motions (différence entre ' et ` ) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Leçon 2.1 RÉSUMÉ + + + 1. Utiliser lʼun des 26 registres nommés (a-z) pour conserver + (copier/supprimer) et coller du texte. + 2. Copier un mot entier en plaçant le curseur sur le mot : yiw + 3. Changer un mot entier en plaçant le curseur sur le mot : ciw + 4. Insérer du texte directement depuis un registre, en mode Insertion : + a + + 5. Insérer le résultat dʼune opération arithmétique simple : + suivi de =60*60 en mode Insertion + 6. Insérer le résultat dʼun appel système : suivi de + =system('ls -1') + en mode Insertion + + 7. Inspecter les registres avec :reg + 8. Apprendre pourquoi les suppressions de lignes entières (dd) sont + préservées plus longtemps : elles bénéficient des registres 1 à 9 et sont + préservées plus longtemps que toute autre opération + 9. Apprendre la destination finale de toutes les copies dans les registres + numérotés et à quel point elles sont éphémères + + 10. Placer des marques depuis le mode Normal m[a-zA-Z0-9] + 11. Se déplacer ligne par ligne jusquʼà une marque avec ' + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Voilà, vous êtes arrivé à la fin du chapitre deux du tutoriel de Vim. Il est + encore en chantier. + + Ce chapitre a été écrit par Paul D. Parker, + il a été traduit en français par Damien Lejay. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.gl b/git/usr/share/vim/vim92/tutor/tutor2.gl new file mode 100644 index 0000000000000000000000000000000000000000..8c90b8fda3487d7c19756bc69675d8bdf42486fe --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.gl @@ -0,0 +1,215 @@ +=============================================================================== += B e n v i d o a o t u t o r d o V I M - Versión 1.7 = +=============================================================================== += C A P Í T U L O D O U S = +=============================================================================== + + Hic Sunt Dracones: se este é o súa primeira exposición ao vim, e + prefire iniciarse no capítulo introducturio, pode saír premendo + :q . + + O tempo aproximado requerido para completar este capítulo é de + 8-10 minutos, dependendo de canto tempo use na experimentación. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 2.1.1: OS REXISTROS CON NOME + + + ** Almacene dúas palabras copiadas de xeito consecutivo, e logo pégueas. ** + + 1. Mova o cursor ata a liña inferior sinalada con --->. + + 2. Navegue ata calquera carácter da palabra 'Xoán' e escriba "ayiw . + +NEMÓNICO: + dentro do rexistro(") + chamado (a) + pega (y)ank + o interior (i)nner + da palabra (w)ord + + 3. Navegue cara a adiante ata a palabra 'galetas' + ( fl ou 4fe ou $b ou /gal ) e teclee "byiw . + + 4. Navegue ata calquera carácter da palabra 'Uxío' e teclee + ciw a + +NEMÓNICO: + cambia (c)hange + o interior (i)nner + da palabra (w)ord + co + chamado (a) + + 5. Navegue ata calquera punto da palabra 'tartas' e teclee + ciwb + +---> a) De eiquí en adiante, Xoán ficará encarregado das racións de galetas. + b) Xa que logo, Uxío somentes terá poderes no que respecta ás tartas. + +NOTA: O borrado tamén funciona nos rexistros, é dicir: + "sdiw borrará a palabra baixo o cursor e ficaráa no rexistro s. + +REFERENCIAS: Rexistros :h registers + Rexistros con come: :h quotea + Movemento :h motion.txt /inner + CTRL-R :h insert /CTRL-R + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 2.1.2: O REXISTRO DE EXPRESIÓN + + + ** Insira o resultado dos cáculos sobre a marcha. ** + + 1. Mova o cursor ata a liña sinalada con --->. + + 2. Navegue ata calquera carácter do número que aparece na liña. + + 3. Teclee ciw=60*60*24 . + + 4. Na seguinte liña, entre no modo Inserir e engada a data de hoxe con: + =system('date') + +NOTA: Tódalas chamadas a sistema son dependentes do sistema operativo. + Por exemplo, en Windows pode usar: + system('date /t') ou :r!date /t + +---> Esquecín o número exacto de segundos que ten un día; son 84600? +---> A data de hoxe é: + +NOTA: O mesmo pódese obter con :pu=system('date') + ou, premendo menos teclas, con :r!date . + +REFERENCIAS: Rexistro de experesión :h quote= + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 2.1.3: OS REXISTROS NUMERADOS + + + ** Prema yy e mais dd para ve-lo seu efecto nos rexistros. ** + + 1. Mova o cursor ata a liña sinalada con --->. + + 2. Copie a liña 0, e logo inspeccione os rexitros con :reg . + + 3. Borre a liña 0 con "cdd, e logo inspeccione os rexistros. + (Onde espera que estea o contido da liña 0?) + + 4. Continúe borrando cada liña sucesivamente, inspeccionando os rexistros + sobre a marcha. + +NOTA: Debería decatarse de que as liñas borradas máis antigas móvense cara a + embaixo na lista, consonte se engaden as novas liñas borradas. + + 5. Agora, poña (p) os seguintes rexistros en orde: c, 7, 4, 8, 2. + Por exemplo, usando "7p . + +---> 0. Esta + 9. cambalear + 8. mensaxe + 7. é + 6. en + 5. eixo + 4. unha + 3. guerra + 2. secreta. + 1. tributo + +NOTA: O borrado de liñas enteiras (dd) permanece máis tempo nos rexistros + numerados có copiado de liñas enteiras ou de texto máis pequeno. + +REFERENCIAS: Rexistros numerados :h quote00 + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 2.1.4: A BELEZA DAS MARCAS + + + ** Evitando conta-las liñas de código ** + +NOTA: Un problema frecuente que acontece cando se programa é o desprazamento + entre pedazos de código. A seguinte técnica axuda a evita-lo cálculo + de números de liña asociados a operacions coma "a147d ou + :945,1091d a ou, incluso peor, usando primeiro + =1091-945 . + + 1. Mova o cursor ata a liña sinalada con --->. + + 2. Vaia á primeira liña da función e márquea con ma . + +NOTA: A posición exacta na liña NON é importante! + + 3. Navegue ata a fin da liña, e deseguido ata a fin do bloque de código + con $% . + + 4. Borre o bloque e póñao no rexistro 'a' con "ad'a . + +NEMÓNICO: + Dentro do rexistro(") + con nome de rexistro (a) + pon o borrado (d)eletion + dende o cursor ata a liña que contén a marca(') + de nome de marca (a) + + 5. Pegue o bloque entre BBB e CCC con "ap . + +NOTA: Practique esta operación múltiples veces, + ata chegar a facelo fluidamente: ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // the taxonomy of our function has changed and it + // no longer makes alphabetical sense in its current position + + // imagine hundreds of lines of code + + // naively you could navigate to the start and end and record or + // remember each line number + } + BBB + CCC + +NOTA: As marcas e mailos rexistros non comparten un espazo común de nomes, + de xeito que un rexistro 'a' é completamente independente dunha + marca 'a'. En troques, isto non acontece entre os rexistros + e mailas macros. + +REFERENCIAS: Marcas :h marks + Movemento de marcas :h mark-motions (diferencia entre ' e `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lección 2.1 RESUMO + + 1. Gardar texto (por medio de copiar ou borrar), e recuperalo (pegar) dende + un total de 26 rexistros (a-z). + 2. Pegar unha palbra enteira dende calquer sitio dentro dunha palara: yiw + 3. Cambiar unha palabra enteira dende calquer punto de palabra: ciw + 4. Inserir texto directamente dende os rexistros en modo Inserir: (C-r)a + 5. Inseri-lo resultado de operacións aritméticas simples no modo + Inserir: (C-r)=60*60 + 6. Inseri-los resultados de chamadas ao sistema no modo Inserir: + (C-r)=system('ls -1') + 7. Inspecciona-los rexistros con :reg . + 8. Aprende-lo destino final do borrado de liñas enteiras (dd) nos + rexistros numerados, é dicir, descendendo dende o reistro 1 ao 9. + Decatarse de que o borrado de liñas enteiras presérvase nos rexistros + numerados máis tempo que calquera outra operación. + 9. Aprende-lo destino final de tódalas copias feitas nos rexistros + numerados e cómo son de efímeros. + 10. Situar marcas dende o modo de comandos m[a-zA-Z0-9] . + 11. Moverse a una liña cunha marca con ' . + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Isto conclúe o capítulo dows do Vim Tutor. Este é traballo en progreso. + Este capítulo foi escrito por Paul D. Parker. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Traducido do inglés ao galego por Fernando Vilariño. + Correo electrónico: fernando@cvc.uab.es. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.it b/git/usr/share/vim/vim92/tutor/tutor2.it new file mode 100644 index 0000000000000000000000000000000000000000..a337acd1c78b7ada42c81dbf2e77fb03c1a2f7ee --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.it @@ -0,0 +1,197 @@ +=============================================================================== += Benvenuto alla G u i d a all'Editor V I M - Versione 1.7 = +=============================================================================== += C A P I T O L O DUE = +=============================================================================== + + Hic Sunt Dracones: Se questa è la prima volta che vi accostate a vim + e preferite iniziare dal capitolo introduttivo, gentilmente immettete + :q e poi iniziate da quello. + + Il tempo necessario per completare questo capitolo è di circa 8-10 + minuti, a seconda del tempo utilizzato per fare delle prove. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lezione 2.1.1: I REGISTRI CON NOME + + + ** Copiare due parole in registri diversi e poi incollarle ** + + 1. Spostate il cursore alla riga qui sotto marcata con ---> + + 2. Andate su una lettera qualsiasi di 'Edward' e battete "ayiw + +MNEMONICO: nel registro(") di nome (a) (y)copia (i)interna (w)parola + + 3. Spostatevi alla parola 'biscotti' (fc o 2fb o $b o /bis) + e battete "byiw + + 4. Andate su una lettera qualsiasi di 'Vince' e battete ciwa + +MNEMONICO: (c)cambia (i)interna (w)parola con di nome (a) + + 5. Andate su una lettera qualsiasi di 'dolci' e battete ciwb + +---> a) Edward sarà d'ora in poi responsabile della razione di biscotti + b) Come compito, Vince sarà il solo a decidere riguardo ai dolci + +NOTA: Anche una parola cancellata può essere inviata ad un registro, p.es., + "sdiw cancellerà (d) la parola sotto il cursore (iw) e la metterà + nel registro (s) +RIFERIMENTI: Registri :h registers + Registri con nome :h quotea + Movimento :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lezione 2.1.2: IL REGISTRO DELLE ESPRESSIONI + + + ** Inserire al volo risultati di un calcolo ** + + 1. Spostate il cursore alla riga qui sotto marcata con ---> + + 2. Andate su un punto qualsiasi del numero fornito + + 3. Battete ciw=60*60*24 + + 4. Sulla riga seguente, entrate in modo Insert e aggiungete + la data di oggi con =system('date') + +NOTA: Tutte le chiamate a sistema dipendono dal S.O., p.es., in ambiente + Windows si usa system('date /t') o :r!date /t + +---> Non ricordo il numero esatto di secondi in un giorno, è 84600? + La data di oggi è: + +NOTA: Lo stesso risultato si può ottenere con :pu=system('date') + o, ancora più brevemente, con :r!date + +RIFERIMENTI: Registro espressioni :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lezione 2.1.3: I REGISTRI NUMERATI + + + ** Battere yy e dd per vedere l'effetto sui registri ** + + 1. Spostate il cursore alla riga qui sotto marcata con ---> + + 2. Copiate (yy) la riga stessa e controllate i registri con :reg + + 3. Cancellate la riga che inizia con "0." con "cdd, poi controllate i + registri (Dove vi aspettate sia finita la riga cancellata?) + + 4. Continuate a cancellare ogni riga seguente, controllando ogni volta + con :reg il risultato +NOTA: Dovreste notare che le righe cancellate per prime scendono nella + lista, man mano che vengono aggiunte nuove righe cancellate + 5. Poi incollate (p) i seguenti registri nell'ordine; c, 7, 4, 8, 2.+ + ossia "cp "7p ... + +---> 0. Questo + 9. dondolante + 8. messaggio + 7. è + 6. in + 5. asse + 4. un + 3. guerresco + 2. segreto + 1. tributo + +NOTA: Le cancellazioni di righe intere (dd) sopravvivono nei registri numerati + molto più a lungo delle copie di righe intere (yy), o delle + cancellazioni che implicano movimenti minori + +RIFERIMENTI: Registri numerati :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lezione 2.1.4: IL FASCINO DELLE MARCATURE + + + ** Evitare di contare le righe di codice ** + +NOTA: Un problema frequente quando si scrivono programmi è spostare numerose + righe di codice. Il metodo seguente evita di dover calcolare numeri di + riga con operazioni tipo "a147d o :945,1091d a o, ancor peggio, + usando prima i=1091-945 + + 1. Spostate il cursore alla riga qui sotto marcata con ---> + + 2. Andate alla prima riga della funzione e marcatela con ma + +NOTA: La posizione sulla riga NON è importante! + + 3. Spostatevi a fine riga e da qui alla fine del blocco di codice + con $% + + 4. Cancellate il blocco salvandolo nel registro a con "ad'a + +MNEMONICO: nel registro(") di nome (a) mettere la cancellazione (d) dal + cursore fino alla RIGA che contiene il marcatore (') (a) + + 5. Incollare il blocco the le righe BBB e CCC "ap + +NOTA: Provare più volte quest'operazione, per impratichirsi ma$%"ad'a + +---> AAA + function cresciutaTroppoinFretta() { + if ( condizioneVera ) { + faiQualcosa() + } + // La classificazione della nostra funzione è cambiata + // non ha senso mantenerla nella posizione attuale + + // ...immaginate centinaia di righe di codice + + // Ingenuamente si potrebbe andare dall'inizio alla fine + // e annotare da qualche parte il numero di righe + } + BBB + CCC + +NOTA: marcature e registri non hanno niente in comune, quindi il registro + a è completamente indipendente dalla marcatura a. Questo non vale + per i nomi dei registri e quelli delle macro di Vim. + +RIFERIMENTI: Marcature :h marks + Movimenti marcature :h mark-motions (differenza fra ' e `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lezione 2.1 SOMMARIO + + + 1. Per inserire (copiando, cancellando) testo, e per incollarlo (incolla)) + sono disponibili 26 registri (a-z) + 2. Copiare una parola da una posizione qualsiasi al suo interno: yiw + 3. Cambiare una parola da una posizione qualsiasi al suo interno: ciw + 4. Inserire testo direttamente da registri in modo Insert: (C-r)a + + 5. Inserire il risultato di semplici operazioni aritmetiche in modo + Insert: (C-r)=60*60 + 6. Inserire il risultato di chiamate a sistema in modo Insert: + (C-r)=system('ls -1') + + 7. Controllare contenuto registri con :reg + 8. Vedere dove vanno a finire le cancellazioni di intere righe: dd + nei registri numerati, ossia discendendo dal registro 1 al 9. + Osservare che le righe intere cancellate sono disponibili nei registri + numerati più a lungo di qualsiasi altra modifica + 9. Vedere la destinazione finale delle operazioni di copia nei registri + numerati e controllare quanto si può aspettare che durino + + 10. Inserire marcature in modo Normale m[a-zA-Z0-9] + 11. Spostarsi a una riga marcata con il comando ' + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Qui finisce il capitolo due della guida Vim. Ci sono lavori in corso. + + Questo capitolo è stato scritto da Paul D. Parker + e tradotto da Antonio Colombo +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.ja b/git/usr/share/vim/vim92/tutor/tutor2.ja new file mode 100644 index 0000000000000000000000000000000000000000..6ebfd5ec067fc1785c2dbaebc1ae0647b13f0abf --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.ja @@ -0,0 +1,299 @@ +=============================================================================== += V I M 教 本 (チュートリアル) へ よ う こ そ - Version 1.7 = +=============================================================================== += 第 2 章 = +=============================================================================== + + Hic Sunt Dracones (危険な領域): もしこれがあなたにとって vim に初めて + 触れる機会であり、入門の章を利用したいのであれば、どうか :q! を + タイプして終了し、第 1 章のために vimtutor を実行してください。 + + この章を完了するのに必要な時間は、覚えたコマンドを試すのにどれだけ時間を + 使うのかにもよりますが、およそ 8-10 分です。 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.1: テキストオブジェクトの習得 + + ** テキストオブジェクトを使って論理テキストブロックを正確に操作します ** + + 1. 単語の操作を練習しましょう: + - カーソルを下の(---> と示された)行の何れかの単語の上に乗せましょう + - diw とタイプして単語を囲むスペースを含まずに消しましょう (INNER) + - daw とタイプして単語に続くスペースを合わせて消しましょう (A WORD) + - 他のオペレータも試しましょう: ciw (変更), yiw (ヤンク), + gqiw (フォーマット) + +---> 練習用テキスト: "Vim's", (text_object), and 'powerful' words here. + + 2. 括弧で囲まれた内容を操作してみましょう: + - カーソルを下の(---> と示された)行の、いずれかの () {} [] <> のペアの + 内側に合わせましょう + - di( または dib をタイプしましょう (ブラケットの内側が消えます) + - da( または dab をタイプしましょう (ブラケットごと消えます) + - クォートには i"/a" で、HTML/XMLのタグには it/at で同じことを試してみ + ましょう + +---> テストケース: {curly}, [square], , and "quoted" items. + + 3. 段落と文を操作してみましょう: + - 段落の内側を消すには dip を使います (カーソルは段落のどこでもOK) + - 段落全体を選択するには vap を使います + - 文を消す das を試してみましょう + (ここで言う文とは .!? という区切り文字の間のことです) + + 4. 高度に組み合わせてみましょう: + - ciwnew - 現在の単語を "new" に変更します + - ciw"-" - 現在の単語をクォートで囲みます + - gUit - HTMLタグの内容を大文字に書き換えます + - va"p - クォートされたテキストを選択し、上書きペーストします + +---> 最後の訓練: (Modify "this" text) by [applying {various} operations]< + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.2: 名前付きレジスタ + + + ** ヤンク(コピー)した 2 つの単語を同時に保存し、それらをペーストします ** + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. 単語 'Edward' 内のどこかに移動し "ayiw とタイプしましょう。 + +覚え方: into register(") named (a) (y)ank (i)nner (w)ord + {訳: レジスタ(")へ (a)という名前の (y)ヤンク (i)内部 (w)単語} + + 3. 単語 'cookie' に進んで (fk や 3fc や $2b や /co)、 "byiw + とタイプしましょう。 + + 4. 単語 'Vince' 内のどこかに移動し ciwa とタイプしましょう。 + +覚え方: (c)hange (i)nner (w)ord with named (a) + {訳: (c)変更する (i)内部 (w)単語 <(r)レジスタの内容>で (a)という名前の} + + 5. 単語 'cake' 内のどこかに移動し ciwb とタイプしましょう。 + +---> a) Edward will henceforth be in charge of the cookie rations + b) In this capacity, Vince will have sole cake discretionary powers + +NOTE: レジスタへの削除も動作します。すなわち "sdiw はカーソル位置の単語を削除 + し、レジスタ s に格納します。 + +REFERENCE: レジスタ :h registers + 名前付きレジスタ :h quotea + カーソル移動 :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.3: EXPRESSION レジスタ + + + ** 計算の結果をその場で挿入します ** + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. 行内の数字のどこかにカーソルを移動しましょう。 + + 3. 次のようにタイプしましょう。 ciw=60*60*24 + + 4. 次の行で挿入モードに入り、次の操作で今日の日付を挿入しましょう。 + =system('date') + +NOTE: すべてのシステムへの呼び出しは OS 依存です。例えば Windows では + system('date /t') または :r!date /t を使います。 + +---> 1 日の正確な秒数を忘れてしまいました。 84600 でしょうか? + 今日の日付は: + +NOTE: 同じことは :pu=system('date') あるいは、より少ないキーストロークで + :r!date でも達成できます。 + +REFERENCE: Expression レジスタ :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.4: 番号付きレジスタ + + + ** yy と dd を押してレジスタに対する効果を目撃します ** + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. 0 番目の行をヤンクし、それから :reg でレジスタを検査しましょう。 + + 3. "cdd で行 0 を削除し、それからレジスタを検査しましょう。 + (行 0 はどこにあると思いますか?) + + 4. 残りの行もそれぞれ続けて削除して、都度 :reg で検査しましょう。 + +NOTE: 新しい行全体削除が追加されると、古い行全体削除はリストの下に移動すること + に気づいたでしょう。 + + 5. 次に以下のレジスタを順にペースト(p)しましょう: c, 7, 4, 8, 2。例 "7p + +---> 0. This + 9. wobble + 8. secret + 7. is + 6. on + 5. axis + 4. a + 3. war + 2. message + 1. tribute + +NOTE: 行全体削除(dd)は、行全体ヤンクや小さな移動による削除に比べると長い期間 + 番号付きレジスタに残ります。 + +REFERENCE: 番号付きレジスタ :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.5: 特殊レジスタ + + ** 高度な編集にはシステムクリップボードとブラックホールレジスタを使います ** + + Note: クリップボードを使用するには、Linux システムでは X11/Wayland ライブラリ + と、 "+clipboard" でビルドされた Vim (通常は Huge ビルド) が必要です。 + ":version" と "echo has('clipboard_working')" で確認してください。 + + 1. クリップボードレジスタ + 及び * : + - "+y - システムクリップボードにヤンクします (例: "+yy は現在行) + - "+p - システムクリップボードからペーストします + - "* は X11 のプライマリセレクション(中クリック)で、 "+ はクリップボードで + す。 + +---> 試そう: "+yy し他のアプリケーションで Ctrl-V または Cmd+V でペーストしま + しょう + + 2. テキストを捨てるブラックホールレジスタ _ : + - "_daw - レジスタに保存せずに単語を消します + - デフォルトの " レジスタを上書きしたくない時に便利です + - これは前のレッスンで紹介した "a Word" テキストオブジェクトを使っているこ + とに注意してください + - "_dd - 保存せずに行を削除します + - "_dap - 保存せずに段落を削除します + - カウントと組み合わせることができます: 3"_dw + +---> 練習: 何かの単語の上で "_diw でヤンク履歴に影響を与えずに消しましょう + + 3. ビジュアル選択と組み合わせることができます: + - V でテキストを選択してから "+y でヤンクします + - 挿入モードでクリップボードからペーストするには: + + - 他のアプリケーションを開いて、クリップボードからペーストしてみましょう + + 4. 覚えてください: + - クリップボードレジスタは異なるVimインスタンスを越えて働きます + - クリップボードレジスタは常に働くとは限りません + - ブラックホールレジスタは不意にレジスタを上書きすることを防ぎます + - デフォルトの " レジスタは通常のヤンク/ペーストに利用できます + - 名前付きレジスタ (a-z) は個々のVimセッション毎に独立して使えます + + 5. クリップボードのトラブルシューティング: + - :echo has('clipboard_working') で Vim がクリップボードをサポートしている + かを確認できます + - 1 は利用可能を、0 はコンパイルされていないことを意味しています + - Linuxでは vim-gtk や vim-x11 パッケージが必要になるかもしれません + (:version の出力をチェックしてみてください) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1.6: マークの美しさ + + + ** コードモンキーの算術の回避 ** + +NOTE: コーディングの際の共通の難問は大きなコードの塊を動かすことです。 + 以下の技術は、操作に関連付けられた行数の計算、例えば "a147d や + :945,1091d a や、さらに悪いことにまず i=1091-945 を + 使うようなことを避けることを助けます。 + + 1. 以下の ---> と示された行にカーソルを移動しましょう。 + + 2. 関数の最初の行に移動し ma でマークしましょう。 + +NOTE: 行内の正確な位置は重要ではありません! + + 3. 行の最後に移動しそれからコードブロックの末尾に移動しましょう。 $% + + 4. ブロックをレジスタ a に削除しましょう。 "ad'a + +覚え方: into register(") named (a) put the (d)eletion from the cursor to the + LINE containing mark(') (a) + {訳: レジスタ(")へ格納 (a)という名前の (d)削除を カーソルからマーク(')(a) + を含む行まで} + + 5. ブロックを BBB と CCC の間にペーストしましょう。 "ap + +NOTE: 慣れるまで何度もこの操作を練習しましょう。 ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // 私たちの関数の分類法が変更され、現在の位置では + // アルファベットの意味がなくなりました + + // 何百行ものコードを想像してください + + // 素朴に、最初と最後に移動して、各行番号を記録または記憶する + // こともできます + } + BBB + CCC + +NOTE: マークとレジスタは名前空間を共有しません。そのため、レジスタ a は完全に + マーク a とは独立しています。これはレジスタとマクロについては当てはまり + ません。 + +REFERENCE: マーク :h marks + マークによる移動 :h mark-motions (' と ` の違いについて) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lesson 2.1 要約 + + 1. テキストオブジェクトは精密な編集を提供します: + - iw/aw - inner/around word {訳: 単語の内側/周囲} + - i[/a[ - inner/around bracket {訳: 角カッコ内側/周囲} + - i"/a" - inner/around quotes {訳: クォートの内側/周囲} + - it/at - inner/around tag {訳: タグの内側/周囲} + - ip/ap - inner/around paragraph {訳: 段落の内側/周囲} + - is/as - inner/around sentence {訳: 文の内側/周囲} + + 2. テキストを格納 (ヤンク、削除) したり、取得 (ペースト) するレジスタが + 全部で 26 個 (a-z) あります。 + 3. 単語全体をヤンクするには単語内のどこかで: yiw + 4. 単語全体を変更するには単語内のどこかで: ciw + 5. 挿入モードで直接レジスタからテキストを挿入するには: a + + 6. 単純な算術演算の結果を挿入するには: 挿入モードで =60*60 + 7. システムコールの結果を挿入するには: 挿入モードで =system('ls -1') + + 8. レジスタを検査するには :reg + 9. 行全体削除の最終宛先を学びました。dd は番号付きレジスタへ、すなわち + レジスタ 1 - 9 に降順になります。行全体削除は他の操作より長く番号付き + レジスタに保持されることを理解しました + 10. 番号付きレジスタにおけるすべてのヤンクの最終宛先と、それらはどれほど儚い + ものなのかを学びました + + 11. コマンドモードでマークを設定するには m[a-zA-Z0-9] + 12. マークへ行単位で移動するには ' + + 13. 特殊レジスタ: + - "+/"* - システムのクリップボード (OS依存) + - "_ - ブラックホール (消したりヤンクしたりしたテキストを捨てる) + - "= - 式レジスタ + - "- - 小さい削除レジスタ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + これにて Vim のチュートリアルの第 2 章を終わります。これは作業中です。 + + この章は Paul D. Parker と Christian Brabandt によって書かれました。 + + 日本語訳 vim-jpチーム +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.ru b/git/usr/share/vim/vim92/tutor/tutor2.ru new file mode 100644 index 0000000000000000000000000000000000000000..1436bba2a1ce10f7faf7a271613f5cb8dc995b1c --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.ru @@ -0,0 +1,338 @@ +=============================================================================== +версия 1.7 = ДОБРО ПОЖАЛОВАТЬ НА ЗАНЯТИЯ ПО РЕДАКТОРУ Vim = +=============================================================================== += ГЛАВА ВТОРАЯ = +=============================================================================== + + Что‐то неожиданное и непонятное? + Если это ваше первое знакомство с редактором Vim и вы планировали начать + с вводной главы учебника, не расстраивайтесь и сделайте вот что. + Наберите на клавиатуре команду :q! , нажмите клавишу , и попробуйте + ещё раз, набрав в командной оболочке такую команду + vimtutor --chapter 1 ru + + Приблизительное время, необходимое для изучения второй главы учебника, + составляет около 8–10 минут, и зависит от того, сколько времени вы посвятите + выполнению заданий. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.1. ОСВОЕНИЕ ТЕКСТОВЫХ ОБЪЕКТОВ + +** Точечные операции с логическими частями текста используя текстовые объекты ** + + 1. Попрактикуйтесь в аккуратной работе со словами: + - Поместите каретку на любое слово в строке помеченной ---> + - Наберите diw , чтобы удалить ТОЛЬКО слово (слово без окружающих пробелов) + - Наберите daw , чтобы удалить СЛОВО (включая конечные пробелы) + - Попробуйте другие операторы: ciw (изменить), yiw (копировать), + gqiw (форматировать) + +---> Потренируйтесь здесь на словах: «Vim'овский», (text_object) и 'мощный'. + + 2. Работа с содержимым скобок: + - Поместите каретку внутри любой пары () {} [] <> в строке помеченной ---> + - Наберите di( или dib (удалить всё, что внутри круглых скобок) + - Наберите da( или dab (удалить внутри круглых скобок и сами скобки) + - Попробуйте то же самое с i" и a" для машинописных кавычек или + it и at для тегов HTML и XML. + +---> Примеры: {фигурные}, [прямоугольные], <угловые>, (круглые) и "quoted". + + 3. Операции с абзацами и предложениями: + - Наберите dip для удаления ТОЛЬКО абзаца + (каретка может быть в любом месте абзаца) + - Наберите vap для визуального выделения всего абзаца + - Попробуйте das для удаления предложения + (работает при наличии знаков препинания .!? ) + + 4. Расширенные комбинации: + - ciwnew — изменить текущее слово на «new» + - ciw"-" — обернуть всю строку в кавычки + - gUit — преобразовать внутреннее содержимое HTML-тега в верхний + регистр + - va"p — выделить текст в кавычках и вставить поверх него + +---> Итоговое задание: (Измените "этот" текст) [применив {различные} операции]< + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.2. ИМЕНОВАННЫЕ РЕГИСТРЫ В РЕДАКТОРЕ Vim + +** Копирование с сохранением двух разных слов и последующая их вставка в текст ** + + 1. Переместите каретку к строке помеченной ---> + + 2. Установите каретку на любом символе слова «Эдуард» и наберите команду + "ayiw + +Эта команда означает следующее: + в регистр(") с названием(a) скопировать(y) только(i) слово(w) + + 3. Сдвиньте каретку вперёд на слово «печенье» (это можно сделать одним из + следующих способов: fп или 3fч, или $, или /пе ) и наберите команду + "byiw + + 4. Переместите каретку на любой символ слова «Виктор» и наберите на клавиатуре + ciwa + +Эта команда означает следующее: + изменить(c) только(i) слово(w) на <содержимое регистра(r)> с названием(a) + + 5. Установите каретку на любой символ слова «тортов» и наберите + ciwb + +---> а) Отныне Эдуард будет отвечать за раздачу печенья + б) Таким образом Виктор имеет единоличные права по распределению тортов + +Примечание. + Регистры можно использовать также и для вырезания текста, например, + по команде "sdiw будет выполнено удаление слова под кареткой в регистр + с названием «s». + +Разделы документации: + регистры :h registers + именованные регистры :h quote_alpha + перемещение :h text-objects + CTRL-R :h i_CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.3. РЕГИСТР РЕЗУЛЬТАТА ВЫЧИСЛЕНИЙ + + ** Вставка результатов вычислений напрямую в текст ** + + 1. Переместите каретку к строке помеченной ---> + + 2. Установите каретку на любой цифре приведённого числа + + 3. Наберите на клавиатуре ciw=60*60*24 + + 4. Переместите каретку в конец следующей строки, переключите редактор в режим + вставки, и добавьте сегодняшнюю дату с помощью следующей команды + =system('date') + +Примечание. + Результат вызова функции system() зависит от текущей операционной системы, + например, в ОС Windows необходимо использовать такую команду + system('date /t') или :r!date /t + +---> Правильно ли я помню, что в сутках 84600 секунд? + Сегодняшняя дата + +Примечание. + Тот же результат можно получить с помощью такой команды :pu=system('date') + или более короткой команды :r!date + +Разделы документации: + регистр результата вычислений :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.4. НУМЕРОВАННЫЕ РЕГИСТРЫ В РЕДАКТОРЕ Vim + + ** Как команды yy и dd влияют на содержимое регистров ** + + 1. Переместите каретку к строке помеченной ---> + + 2. Скопируйте эту строку и проверьте состояние регистров с помощью команды + :reg + + 3. Удалите строку, начинающуюся с цифры 0, с помощью команды "cdd и ещё раз + проверьте состояние регистров (где будет строка, начинающаяся с цифры 0?) + + 4. Продолжайте удалять все последующие нумерованные строки, проверяя состояние + регистров после каждой операции. + +Примечание. + В ходе этих действий вы заметите, что ранее удалённые строки смещаются вниз + по мере того, как новые удалённые строки добавляются в перечень регистров. + + 5. Теперь вставьте содержимое регистров в следующем порядке: c, 7, 4, 8, 2. + То есть наберите команды "cp , "7p и так далее. + +---> 0. Здесь + 9. шататься + 8. секретное + 7. будет + 6. на + 5. шесте + 4. это + 3. войны + 2. послание + 1. наградой + +Примечание. + Целые строки, удалённые по команде dd , дольше сохраняются в нумерованных + регистрах, чем строки, которые были скопированы или когда с оператором + удаления указывается объект текста для перемещения каретки. + +Разделы документации: + нумерованные регистры :h quote_number + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.5. СПЕЦИАЛЬНЫЕ РЕГИСТРЫ + +** Применение регистров буфера обмена и «чёрная дыра» для расширенной правки ** + + Примечание. + Для использования системного буфера обмена в системе Linux требуются + библиотеки X11 или Wayland, и сам редактор Vim должен быть скомпилирован + с включённым компонентом «+clipboard» (обычно это максимальная версия). + Это можно проверить с помощью следующих команд редактора Vim: + :version + и + :echo has('clipboard_working') + + 1. Регистры буфера обмена + и * : + - "+y — копирование в системный буфер обмена + (например, по команде "+yy будет скопирована текущая строка) + - "+p — вставка из системного буфера обмена + - "* — основной выбор в X11 (средняя кнопка «мыши»), а "+ — буфер обмена + +---> "+yy в этой строке, затем вставьте в другое приложение по Ctrl+V или Cmd+V + + 2. Регистр «чёрная дыра» _ стирает текст: + - "_daw — сотрёт слово без сохранения в регистре + - Полезно, когда вы не хотите перезаписывать регистр по умолчанию " + - Обратите внимание, что здесь используется текстовый объект «a Word», + описанный в предыдущем уроке + - "_dd — сотрёт строку без сохранения + - "_dap — сотрёт абзац без сохранения + - Комбинируйте со счётчиками: 3"_dw + +---> "_diw на любом слове, чтобы удалить его, не затрагивая историю копирования + + 3. Совместите с визуальным выделением: + - Выделите текст с помощью , a затем "+y + - Чтобы вставить из буфера обмена в режиме вставки — + + - Попробуйте открыть другое приложение и вставить из системного буфера обмена + + 4. Запомните: + - Регистры буфера обмена доступны между разными экземплярами редактора Vim + - Регистр буфера обмена не всегда работает + - Регистр «чёрная дыра» предотвращает случайную перезапись других регистров + - Регистр по умолчанию " по-прежнему доступен для копирования и вставки + - Именованные регистры (a-z) остаются частными для каждой сессии Vim + + 5. Устранение неполадок с буфером обмена: + - Проверьте доступность с помощью команды :echo has('clipboard_working') + - При выводе 1 — означает доступно, 0 — означает, что компонент не включен + - В системе Linux может потребоваться пакет vim-gtk или vim-x11 + (посмотрите вывод команды :version) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Урок 2.1.6. ИЗЯЩЕСТВО ЗАКЛАДОК + + ** Избегайте действий, свойственных для дятлокодеров ** + +Примечание. + При написании программ часто возникает необходимость перемещения больших + фрагментов кода. Приём, приведённый далее, поможет избежать подсчёта номеров + строк, требуемых для операций вроде "a147d или :945,1091d a , или даже + хуже — i=1091-935 , как первое действие. + + 1. Переместите каретку к строке помеченной ---> + + 2. Установите каретку на следующую строку, где начинается описание функции, + и поставьте закладку, воспользовавшись командой ma + +Примечание. + Неважно где будет находиться каретка в этой строке. + + 3. С помощью следующей команды $% установите каретку на последний символ + в этой строке с последующим перемещением на окончание блока кода + + 4. Удалите весь это блок кода в регистр с названием «a» с помощью команды + "ad'a + +Эта команда означает следующее: + в регистр(") с названием (a) поместить удалённые строки от позиции каретки + до строки, в которой установлена закладка(') с названием (a) + + 5. Вставьте удалённый блок между символами BBB и CCC с помощь команды + "ap + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // таксономия нашей функции изменилась, и её текущее положение больше + // не имеет привязки к алфавитному порядку + + // а теперь представьте, что здесь сотни строк кода + + // было бы глупо искать начальную и конечную строку этого блока кода, + // чтобы записывать или запоминать номер строки для каждой из них + } + BBB + CCC + +Примечание. + Пространство именования закладок и регистров не пересекаются между собой, + поэтому регистр «a» полностью независим от закладки с таким же названием «a». + Это правило не распространяется на регистры и макросы. + +Разделы документации: + закладки :h marks + перемещение к закладкам :h mark-motions (различие между ` и ') + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Резюме урока 2.1 + + 1. Текстовые объекты обеспечивают точное редактирование: + - iw или aw — только или включая слово + - i[ или a[ — внутри или включая скобки + - i" или a" — внутри или включая кавычки + - it или at — внутри или включая теги + - ip или ap — только или включая абзаца + - is или as — только или включая предложения + + 2. Чтобы сохранить (при удалении или копировании) текст для последующей + вставки, используйте имеющиеся 26 именованных регистра (a-z). + 3. Чтобы скопировать целое слово при нахождении каретки на любом символе + в этом слове, воспользуйтесь командой yiw + 4. Чтобы изменить целое слово при нахождении каретки на любом символе в этом + слове, воспользуйтесь командой ciw + 5. Чтобы в режиме вставки вставить текст непосредственно из регистра, + воспользуйтесь командой a + + 6. Чтобы в режиме вставки вставить результат вычисления простых математических + операций, воспользуйтесь командой =60*60 + 7. Чтобы в режиме вставки вставить результат выполнения команд системы, + воспользуйтесь командой =system('ls -l') + + 8. Чтобы просмотреть содержимое регистров, воспользуйтесь командой :reg + 9. Учитывайте распределение удалённых целиком строк по команде dd — это + нумерованные регистры в порядке убывания, т. е. от 1 до 9. + Помните, что в нумерованных регистрах дольше хранятся те строки, которые + были удалены целиком, в отличие от любых других операций + 10. Учитывайте, что в нумерованных регистрах кратковременно сохраняется всё + что скопировано. + + 11. Чтобы установить закладку в режиме команд, воспользуйтесь командой + m[a-zA-Z0-9] + 12. Чтобы переместить каретку на строку в которой установлена закладка, + воспользуйтесь командой ' + + 13. Специальные регистры: + - "+ и "* — системный буфер обмена (зависит от ОС) + - "_ — «чёрная дыра» (стирание удалённого или скопированного текста) + - "= — регистр результата вычислений + - "- — регистр малых удалений + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + На этом пока заканчивается вторая глава учебника по редактору Vim. + Работа над этой главой будет продолжена. + + Вторая глава учебника была написана Полом Д. Паркером (Paul D. Parker) + и Кристианом Брабандт (Christian Brabandt). + + Restorer, перевод на русский язык, 2025, restorer@mail2k.ru + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.sr b/git/usr/share/vim/vim92/tutor/tutor2.sr new file mode 100644 index 0000000000000000000000000000000000000000..420da0b5677a7c9d3c49fd4376fb79fedf587c83 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.sr @@ -0,0 +1,196 @@ +=============================================================================== += D o b r o d o š l i u VIM p r i r u č n i k - Verzija 1.7 = +=============================================================================== += DRUGO P O G L A V LJ E = +=============================================================================== + + Evo zmajeva: ako je ovo vaš prvi dodir sa programom vim i nameravali + ste da uronite u uvodno poglavlje, molimo vas da otkucate :q i + pokušate ponovo. + + Približno vreme potrebno za uspešan završetak ovog poglavlja je + između 8 i 10 minuta, u zavisnosti od vremena potrošenog na + eksperimentisanje. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 2.1.1: IMENOVANI REGISTRI + + + ** Sačuvajte istovremeno dve trgnute reči, pa ih nalepite ** + + 1. Pomerite kursor na liniju ispod obeleženu sa ---> + + 2. Postavite se na bilo koje slovo reči ’Pera’ i otkucajte "ayiw + +PAMĆENJE: u registar(") (a) (y)ank [trgni] (i)nner [unutrašnju] (w)ord [reč] + + 3. Postavite se unapred na reč ’kolačića’ (fk ili $B ili /ko) i + otkucajte "byiw + + 4. Postavite se na bilo koje slovo reči ’Žika’ i otkucajte ciwa + +PAMĆENJE: (c)hange [izmeni] (i)nner [unutrašnju] (w)ord [reč] sa + (a) + + 5. Postavite se na bilo koje slovo reči ’torte’ i otkucajte ciwb + +---> a) Od sada će Pera biti zadužen za sledovanja kolačića + b) U tom smislu, Žika će samostalno odlučivati o sudbini torte + +NAPOMENA: U registre može i da se briše, npr. "sdiw će obrisati reč pod + kursorom u registar s. + +REFERENCE: Registri :h registers + Imenovani registri :h quotea + Pokreti :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 2.1.2: REGISTAR IZRAZA + + ** Umećite rezultate izračunavanja „u letu” ** + + 1. Pomerite kursor na liniju ispod obeleženu sa ---> + + 2. Postavite se na bilo koju cifru broja u njoj + + 3. Otkucajte ciw=60*60*24 + + 4. U narednoj liniji, pređite u režim umetanje i dodajte današnji datum + pomoću =system('date') + +NAPOMENA: Svi pozivi operativnom sistemu zavise od sistema na kojem se + izvršavaju, npr. na Windows upotrebite system('date /t') ili + :r!date /t + +---> Zaboravio sam koliko sekundi ima u danu, 84600 je l’ da? + Danas je: + +NAPOMENA: isto može da se postigne sa :pu=system('date') + ili sa manje pritisaka na tastere: :r!date + +REFERENCA: Registar izraza :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 2.1.3: BROJČANI REGISTRI + + ** Pritiskajte yy i dd i uočite efekat koji imaju na registre ** + + 1. Pomerite kursor na liniju ispod obeleženu sa ---> + + 2. trgnite nultu liniju, pa zatim pogledajte sadržaje registara sa + :reg + + 3. obrišite liniju 0. sa "cdd, pa zatim pogledajte sadržaje registara + (gde očekujete da vidite liniju 0?) + + 4. nastavite da brišete svaku narednu liniju, posmatrajući usput registre + sa :reg + +NAPOMENA: trebalo bi da primetite kako se brisanja celih linija pomeraju niz + listu nakon dodavanja novih obrisanih linija + 5. Sada (p)aste [nalepite] sledeće registre u redosledu: + c, 7, 4, 8, 2. tj. sa "7p + +---> 0. Ovo + 9. lelujavo + 8. tajna + 7. je + 6. na + 5. osi + 4. jedna + 3. ratna + 2. poruka + 1. poštovanja + +NAPOMENA: brisanja kompletnih linija (dd) mnogo duže ostaju u brojčanim + registrima u odnosu na trganja celih linija ili brisanja koja + koriste manje pokrete + +REFERENCE: Brojčani registri :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Lekcija 2.1.4: LEPOTA MARKERA + + ** Izbegavanje aritmetike kod neiskusnih programera ** + +NAPOMENA: uobičajen problem prilikom pisanja koda je premeštanje velikih + delova koda. Sledeća tehnika pomaže da se spreči potreba za + izračunavanjima broja linije koji je potreban u operacijama kao što + su "a147d ili :945,1091d a ili još gore, prvobitnom upotrebom + i=1091-945 + + 1. Pomerite kursor na liniju ispod obeleženu sa ---> + + 2. Pređite na prvu liniju funkcije i markirajte je sa ma + +NAPOMENA: tačna pozicija unutar linije NIJE bitna! + + 3. Pomerite se na kraj linije i onda na kraj bloka koda sa $% + + 4. Obrišite blok u registar sa "ad'a + +PAMĆENJE: u registar(") (a) postavi (d)eletion [brisanje] od kursora do + LINIJE koja sadrži marker(') (a) + + 5. Nalepite blok između BBB i CCC sa "ap + +NAPOMENA: vežbajte više puta ovu operaciju da bi vam postala prirodna + ma$%"ad'a + +---> AAA + function itGotRealBigRealFast() { + if ( somethingIsTrue ) { + doIt() + } + // taksonomija naše funkcije se izmenila pa više nema + // azbučnog smisla na svojoj trenutnoj poziciji + + // zamislite stotine linija koda + + // naivno biste se pomerili na početak i kraj i zapisali ili + // zapamtili oba broja linije + } + BBB + CCC + +NOTE: markeri i registri ne dele prostor imena, tako da je registar a + potpuno nezavisan od markera a. Ovo nije slučaj sa registrima i + makroima. + +REFERENCE: Markeri :h marks + Pokreti markera :h mark-motions (razlika između ' i `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + REZIME lekcije 2.1 + + 1. Da sačuvate (trgnete, obrišete) tekst u, i vratite (nalepite) iz, ukupno + 26 registara (a-z) + 2. Trgnite celu reč sa bilo koje pozicije unutar reči: yiw + 3. Izmenite celu reč sa bilo koje pozicije unutar reči: ciw + 4. Umetnite tekst direktno iz registra u režimu umetanje: (C-r)a + + 5. Umetnite rezultate prostih aritmetičkih operacija: (C-r)=60*60 u + režimu umetanja + 6. Umetnite rezultate sistemskih poziva: (C-r)=system('ls -1') u režimu + umetanja + + 7. Pogledajte sadržaj registara sa :reg + 8. Naučite krajnje odredište brisanja kompletnih linija: dd u brojčane + registre, tj. opadajući od 1 - 9. Imajte na umu da se brisanja celih + linija održavaju u registrima duže od bilo koje druge operacije + 9. Naučite krajnja odredišta svih trganja u brojčane registre i koliko se + tamo zadržavaju + + 10. Postavljajte markere iz komandnog režima m[a-zA-Z0-9] + 11. Premeštajte po linijama na marker sa ' + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Ovim se završava drugo poglavlje Vim priručnika. Još uvek se radi na njemu. + + Ovo poglavlje je napisao Pol D. Parker. + + Preveo na srpski Ivan Pešić. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/git/usr/share/vim/vim92/tutor/tutor2.sv b/git/usr/share/vim/vim92/tutor/tutor2.sv new file mode 100644 index 0000000000000000000000000000000000000000..580008836d434e7aa436d2efe6f46b978cebee40 --- /dev/null +++ b/git/usr/share/vim/vim92/tutor/tutor2.sv @@ -0,0 +1,294 @@ +=============================================================================== += V ä l k o m m e n t i l l V I M - h a n d l e d n i n g e n = += - Version 1.7 = +=============================================================================== += K A P I T E L T V Å = +=============================================================================== + + Hic Sunt Dracones: om detta är din första kontakt med Vim och du + avsåg att börja med introduktionskapitlet, skriv vänligen + :q! och kör vimtutor för kapitel 1 istället. + + Den ungefärliga tiden för att slutföra detta kapitel är 8-10 minuter, + beroende på hur mycket tid som läggs på experimentering. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.1: BEMÄSTRA TEXTOBJEKT + + ** Arbeta på logiska textblock med precision med hjälp av textobjekt ** + + 1. Öva på ordoperationer: + - Placera markören på valfritt ord i raden nedan + - Skriv diw för att radera INRE ord (ord utan omgivande mellanslag) + - Skriv daw för att radera ETT ORD (inklusive efterföljande mellanslag) + - Prova med andra operatorer: ciw (ändra), yiw (kopiera), gqiw (formatera) + +---> Öva på: "Vims", (text_objekt), och 'kraftfulla' ord här. + + 2. Arbeta med innehåll inom parenteser: + - Placera markören inuti något () {} [] <> par nedan + - Skriv di( eller dib (radera inuti parentes) + - Skriv da( eller dab (radera runt parenteser) + - Prova samma med i"/a" för citattecken, it/at för HTML/XML-taggar + +---> Testfall: {klamrar}, [hakparenteser], , och "citerade" objekt. + + 3. Stycke- och meningsmanipulering: + - Använd dip för att radera inre stycke (markören var som helst i stycket) + - Använd vap för att visuellt markera hela stycket + - Prova das för att radera en mening (fungerar mellan .!? skiljetecken) + + 4. Avancerade kombinationer: + - ciwnew - Ändra nuvarande ord till "new" + - ciw"-" - Omslut nuvarande ord med citattecken + - gUit - Gör HTML-tagginnehåll till versaler + - va"p - Markera citerad text och klistra över den + +---> Slutövning: (Ändra "denna" text) genom att [tillämpa {olika} operationer]< + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.2: NAMNGIVNA REGISTER + + + ** Lagra två kopierade ord samtidigt och klistra sedan in dem ** + + 1. Flytta markören till raden nedan markerad ---> + + 2. Navigera till valfri punkt på ordet 'Edward' och skriv "ayiw + +MINNESREGEL: till register(") namngivet (a) (y)ank (kopiera) (i)nre (w)ord (ord) + + 3. Navigera framåt till ordet 'kaka' (fk eller 3fc eller $2b eller /ka) + och skriv "byiw + + 4. Navigera till valfri punkt på ordet 'Vince' och skriv ciwa + +MINNESREGEL: (c)hange (ändra) (i)nre (w)ord (ord) med namngivet (a) + + 5. Navigera till valfri punkt på ordet 'tårta' och skriv ciwb + +---> a) Edward kommer hädanefter att ansvara för kaka-ransonerna + b) I denna egenskap kommer Vince ha ensam tårta-beslutanderätt + +OBS: Radering fungerar också till register, dvs. "sdiw raderar ordet under + markören till register s. + +REFERENS: Register :h registers + Namngivna register :h quotea + Förflyttning :h motion.txt /inner + CTRL-R :h insert /CTRL-R + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.3: UTTRYCKSREGISTRET + + + ** Infoga resultat av beräkningar direkt ** + + 1. Flytta markören till raden nedan markerad ---> + + 2. Navigera till valfri punkt på det angivna numret + + 3. Skriv ciw följt av =60*60*24 + + 4. På nästa rad, gå in i infogningsläge och lägg till dagens datum med + följt av =system('date') + +OBS: Alla anrop till system är OS-beroende, t.ex. på Windows använd + system('date /t') eller :r!date /t + +---> Jag har glömt det exakta antalet sekunder på en dag, är det 84600? + Dagens datum är: + +OBS: samma sak kan uppnås med :pu=system('date') + eller, med färre tangenttryckningar :r!date + +REFERENS: Uttrycksregister :h quote= + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.4: NUMRERADE REGISTER + + + ** Tryck yy och dd för att se deras effekt på registren ** + + 1. Flytta markören till raden nedan markerad ---> + + 2. Kopiera noll-raden, sedan inspektera register med :reg + + 3. Radera rad 0. med "cdd, sedan inspektera register + (Var förväntar du dig att rad 0 ska vara?) + + 4. Fortsätt radera varje efterföljande rad, inspektera :reg medan du gör det + +OBS: Du bör märka att gamla helradsraderingar flyttas nedåt i listan + när nya helradsraderingar läggs till + + 5. Nu (p)asta följande register i ordning; c, 7, 4, 8, 2. dvs. "7p + +---> 0. Detta + 9. vinglar + 8. hemliga + 7. är + 6. på + 5. axel + 4. ett + 3. krig + 2. meddelande + 1. hyllning + +OBS: Helradsraderingar (dd) lever mycket längre i de numrerade registren + än helradskopieringar, eller raderingar med mindre förflyttningar + +REFERENS: Numrerade register :h quote0 + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.5: SPECIALREGISTER + + ** Använd systemets urklipp och svarta hålet för avancerad redigering ** + + Obs: Urklippsanvändning kräver X11/Wayland-bibliotek på Linux-system OCH + en Vim byggd med "+clipboard" (vanligtvis en Huge-byggning). Kontrollera med + ":version" och ":echo has('clipboard_working')" + + 1. Urklippsregister + och * : + - "+y - Kopiera till systemets urklipp (t.ex. "+yy för nuvarande rad) + - "+p - Klistra in från systemets urklipp + - "* är primärmarkering på X11 (mittenklick), "+ är urklipp + +---> Prova: "+yy sedan klistra in i ett annat program med Ctrl-V eller Cmd+V + + 2. Svarta hålet-register _ kastar text: + - "_daw - Radera ord utan att spara till något register + - Användbart när du inte vill skriva över ditt standard " register + - Observera att detta använder "ett Ord" textobjekt, introducerat i en + tidigare lektion + - "_dd - Radera rad utan att spara + - "_dap - Radera stycke utan att spara + - Kombinera med antal: 3"_dw + +---> Öva: "_diw på valfritt ord för att radera det utan att påverka kopieringshistorik + + 3. Kombinera med visuella markeringar: + - Markera text med V sedan "+y + - För att klistra in från urklipp i infogningsläge: + + - Prova att öppna ett annat program och klistra in från urklipp + + 4. Kom ihåg: + - Urklippsregister fungerar mellan olika Vim-instanser + - Urklippsregister fungerar inte alltid + - Svarta hålet förhindrar oavsiktlig registerskrivning + - Standard " register är fortfarande tillgängligt för normal kopiering/inklistring + - Namngivna register (a-z) förblir privata för varje Vim-session + + 5. Urklippsfelsökning: + - Kontrollera stöd med :echo has('clipboard_working') + - 1 betyder tillgängligt, 0 betyder inte inkompilerat + - På Linux kan vim-gtk eller vim-x11 paket behövas + (kontrollera :version utdata) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1.6: SKÖNHETEN MED MARKERINGAR + + ** Kodapans aritmetik-undvikande ** + +OBS: ett vanligt problem vid kodning är att flytta runt stora kodblock. + Följande teknik hjälper till att undvika radnummerberäkningar associerade + med operationer som "a147d eller :945,1091d a eller ännu värre att använda + i följt av =1091-945 först + + 1. Flytta markören till raden nedan markerad ---> + + 2. Gå till första raden av funktionen och markera den med ma + +OBS: exakt position på raden är INTE viktigt! + + 3. Navigera till slutet av raden och sedan slutet av kodblocket + med $% + + 4. Radera blocket till register a med "ad'a + +MINNESREGEL: till register(") namngivet (a) lägg (d)eletionen (raderingen) från markören till + RADEN som innehåller markering(') (a) + + 5. Klistra in blocket mellan BBB och CCC "ap + +OBS: öva denna operation flera gånger för att bli flytande ma$%"ad'a + +---> AAA + function detBlevStortSnabbt() { + if ( nagotArSant ) { + gorDet() + } + // vår funktions taxonomi har ändrats och den + // är inte längre alfabetiskt logisk på sin nuvarande plats + + // tänk dig hundratals rader kod + + // naivt kunde du navigera till början och slutet och spela in eller + // komma ihåg varje radnummer + } + BBB + CCC + +OBS: markeringar och register delar inte namnrymd, därför är register a + helt oberoende av markering a. Detta gäller inte register och + makron. + +REFERENS: Markeringar :h marks + Markeringsförflyttningar :h mark-motions (skillnad mellan ' och `) + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Lektion 2.1 SAMMANFATTNING + + 1. Textobjekt ger precisionsredigering: + - iw/aw - inre/runt ord + - i[/a[ - inre/runt hakparentes + - i"/a" - inre/runt citattecken + - it/at - inre/runt tagg + - ip/ap - inre/runt stycke + - is/as - inre/runt mening + + 2. För att lagra (kopiera, radera) text till, och hämta (klistra in) från, totalt + 26 register (a-z) + 3. Kopiera ett helt ord från var som helst inom ett ord: yiw + 4. Ändra ett helt ord från var som helst inom ett ord: ciw + 5. Infoga text direkt från register i infogningsläge: a + + 6. Infoga resultat av enkla aritmetiska operationer: följt av + =60*60 + i infogningsläge + 7. Infoga resultat av systemanrop: följt av + =system('ls -1') + i infogningsläge + + 8. Inspektera register med :reg + 9. Lär dig slutdestinationen för helradsraderingar: dd i de numrerade + registren, dvs. fallande från register 1 - 9. Uppskatta att hel- + radsraderingar bevaras längre i de numrerade registren än någon + annan operation + 10. Lär dig slutdestinationen för alla kopieringar i de numrerade registren och + hur flyktiga de är + + 11. Placera markeringar från kommandoläge m[a-zA-Z0-9] + 12. Flytta radvis till en markering med ' + + 13. Specialregister: + - "+/"* - Systemets urklipp (OS-beroende) + - "_ - Svarta hålet (kasta raderad/kopierad text) + - "= - Uttrycksregister + - "- - Register för små raderingar + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Detta avslutar kapitel två av Vim-handledningen. Det är ett pågående arbete. + + Detta kapitel skrevs av Paul D. Parker och Christian Brabandt. + Svensk översättning av Daniel Nylander. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~