vendor
github.com
alecthomas
chroma
v2
lexers
embedded
abap.xml abnf.xml actionscript.xml actionscript_3.xml ada.xml al.xml angular2.xml antlr.xml apacheconf.xml apl.xml applescript.xml arduino.xml armasm.xml awk.xml ballerina.xml bash.xml batchfile.xml bibtex.xml bicep.xml blitzbasic.xml bnf.xml brainfuck.xml c++.xml c.xml cap_n_proto.xml ceylon.xml cfengine3.xml cfstatement.xml chaiscript.xml clojure.xml cmake.xml cobol.xml coffeescript.xml common_lisp.xml coq.xml crystal.xml csharp.xml css.xml cython.xml d.xml dart.xml diff.xml django_jinja.xml dtd.xml dylan.xml ebnf.xml elixir.xml elm.xml emacslisp.xml erlang.xml factor.xml fennel.xml fish.xml forth.xml fortran.xml fsharp.xml gas.xml gdscript.xml gherkin.xml glsl.xml gnuplot.xml go_template.xml graphql.xml groff.xml groovy.xml handlebars.xml haskell.xml hcl.xml hexdump.xml hlb.xml hy.xml idris.xml igor.xml ini.xml io.xml j.xml java.xml javascript.xml json.xml julia.xml jungle.xml kotlin.xml lighttpd.xml llvm.xml lua.xml mathematica.xml matlab.xml mcfunction.xml meson.xml metal.xml minizinc.xml mlir.xml modula-2.xml monkeyc.xml morrowindscript.xml mysql.xml nasm.xml newspeak.xml nginx.xml nim.xml nix.xml objective-c.xml ocaml.xml octave.xml onesenterprise.xml openscad.xml pacmanconf.xml perl.xml php.xml pig.xml pkgconfig.xml pl_pgsql.xml plutus_core.xml pony.xml postscript.xml povray.xml powerquery.xml powershell.xml prolog.xml promql.xml protobuf.xml puppet.xml python.xml python_2.xml qbasic.xml qml.xml r.xml racket.xml ragel.xml react.xml reasonml.xml reg.xml rexx.xml ruby.xml rust.xml sas.xml sass.xml scala.xml scheme.xml scilab.xml scss.xml sieve.xml smalltalk.xml snobol.xml solidity.xml sparql.xml sql.xml squidconf.xml standard_ml.xml stylus.xml swift.xml systemd.xml systemverilog.xml tablegen.xml tasm.xml tcl.xml tcsh.xml termcap.xml terminfo.xml terraform.xml tex.xml thrift.xml toml.xml tradingview.xml transact-sql.xml turing.xml turtle.xml twig.xml typescript.xml typoscriptcssdata.xml typoscripthtmldata.xml vb_net.xml verilog.xml vhdl.xml vue.xml wdte.xml whiley.xml xml.xml xorg.xml yaml.xml yang.xml zed.xml zig.xmlstyles
abap.go algol.go algol_nu.go api.go arduino.go autumn.go average.go base16-snazzy.go borland.go bw.go colorful.go doom-one.go doom-one2.go dracula.go emacs.go friendly.go fruity.go github.go gruvbox.go hr_dark.go hr_high_contrast.go igor.go lovelace.go manni.go monokai.go monokailight.go murphy.go native.go nord.go onesenterprise.go paraiso-dark.go paraiso-light.go pastie.go perldoc.go pygments.go rainbow_dash.go rrt.go solarized-dark.go solarized-dark256.go solarized-light.go swapoff.go tango.go trac.go vim.go vs.go vulcan.go witchhazel.go xcode-dark.go xcode.gootiai10
copy
.gitignore LICENSE README.md copy.go copy_namedpipes.go copy_namedpipes_x.go fileinfo_go1.15.go fileinfo_go1.16.go options.go permission_control.go preserve_ltimes.go preserve_ltimes_x.go preserve_owner.go preserve_owner_x.go preserve_times.go stat_times.go stat_times_darwin.go stat_times_freebsd.go stat_times_js.go stat_times_windows.go stat_times_x.go test_setup.go test_setup_x.gotdewolff
yuin
goldmark
extension
cjk.go definition_list.go footnote.go gfm.go linkify.go strikethrough.go table.go tasklist.go typographer.goparser
attribute.go atx_heading.go auto_link.go blockquote.go code_block.go code_span.go delimiter.go emphasis.go fcode_block.go html_block.go link.go link_ref.go list.go list_item.go paragraph.go parser.go raw_html.go setext_headings.go thematic_break.gogolang.org
x
net
LICENSE PATENTSsys
unix
.gitignore README.md affinity_linux.go aliases.go asm_aix_ppc64.s asm_bsd_386.s asm_bsd_amd64.s asm_bsd_arm.s asm_bsd_arm64.s asm_bsd_ppc64.s asm_bsd_riscv64.s asm_linux_386.s asm_linux_amd64.s asm_linux_arm.s asm_linux_arm64.s asm_linux_loong64.s asm_linux_mips64x.s asm_linux_mipsx.s asm_linux_ppc64x.s asm_linux_riscv64.s asm_linux_s390x.s asm_openbsd_mips64.s asm_solaris_amd64.s asm_zos_s390x.s bluetooth_linux.go cap_freebsd.go constants.go dev_aix_ppc.go dev_aix_ppc64.go dev_darwin.go dev_dragonfly.go dev_freebsd.go dev_linux.go dev_netbsd.go dev_openbsd.go dev_zos.go dirent.go endian_big.go endian_little.go env_unix.go epoll_zos.go fcntl.go fcntl_darwin.go fcntl_linux_32bit.go fdset.go fstatfs_zos.go gccgo.go gccgo_c.c gccgo_linux_amd64.go ifreq_linux.go ioctl_linux.go ioctl_signed.go ioctl_unsigned.go ioctl_zos.go mkall.sh mkerrors.sh pagesize_unix.go pledge_openbsd.go ptrace_darwin.go ptrace_ios.go race.go race0.go readdirent_getdents.go readdirent_getdirentries.go sockcmsg_dragonfly.go sockcmsg_linux.go sockcmsg_unix.go sockcmsg_unix_other.go syscall.go syscall_aix.go syscall_aix_ppc.go syscall_aix_ppc64.go syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go syscall_darwin_arm64.go syscall_darwin_libSystem.go syscall_dragonfly.go syscall_dragonfly_amd64.go syscall_freebsd.go syscall_freebsd_386.go syscall_freebsd_amd64.go syscall_freebsd_arm.go syscall_freebsd_arm64.go syscall_freebsd_riscv64.go syscall_hurd.go syscall_hurd_386.go syscall_illumos.go syscall_linux.go syscall_linux_386.go syscall_linux_alarm.go syscall_linux_amd64.go syscall_linux_amd64_gc.go syscall_linux_arm.go syscall_linux_arm64.go syscall_linux_gc.go syscall_linux_gc_386.go syscall_linux_gc_arm.go syscall_linux_gccgo_386.go syscall_linux_gccgo_arm.go syscall_linux_loong64.go syscall_linux_mips64x.go syscall_linux_mipsx.go syscall_linux_ppc.go syscall_linux_ppc64x.go syscall_linux_riscv64.go syscall_linux_s390x.go syscall_linux_sparc64.go syscall_netbsd.go syscall_netbsd_386.go syscall_netbsd_amd64.go syscall_netbsd_arm.go syscall_netbsd_arm64.go syscall_openbsd.go syscall_openbsd_386.go syscall_openbsd_amd64.go syscall_openbsd_arm.go syscall_openbsd_arm64.go syscall_openbsd_libc.go syscall_openbsd_mips64.go syscall_openbsd_ppc64.go syscall_openbsd_riscv64.go syscall_solaris.go syscall_solaris_amd64.go syscall_unix.go syscall_unix_gc.go syscall_unix_gc_ppc64x.go syscall_zos_s390x.go sysvshm_linux.go sysvshm_unix.go sysvshm_unix_other.go timestruct.go unveil_openbsd.go xattr_bsd.go zerrors_aix_ppc.go zerrors_aix_ppc64.go zerrors_darwin_amd64.go zerrors_darwin_arm64.go zerrors_dragonfly_amd64.go zerrors_freebsd_386.go zerrors_freebsd_amd64.go zerrors_freebsd_arm.go zerrors_freebsd_arm64.go zerrors_freebsd_riscv64.go zerrors_linux.go zerrors_linux_386.go zerrors_linux_amd64.go zerrors_linux_arm.go zerrors_linux_arm64.go zerrors_linux_loong64.go zerrors_linux_mips.go zerrors_linux_mips64.go zerrors_linux_mips64le.go zerrors_linux_mipsle.go zerrors_linux_ppc.go zerrors_linux_ppc64.go zerrors_linux_ppc64le.go zerrors_linux_riscv64.go zerrors_linux_s390x.go zerrors_linux_sparc64.go zerrors_netbsd_386.go zerrors_netbsd_amd64.go zerrors_netbsd_arm.go zerrors_netbsd_arm64.go zerrors_openbsd_386.go zerrors_openbsd_amd64.go zerrors_openbsd_arm.go zerrors_openbsd_arm64.go zerrors_openbsd_mips64.go zerrors_openbsd_ppc64.go zerrors_openbsd_riscv64.go zerrors_solaris_amd64.go zerrors_zos_s390x.go zptrace_armnn_linux.go zptrace_linux_arm64.go zptrace_mipsnn_linux.go zptrace_mipsnnle_linux.go zptrace_x86_linux.go zsyscall_aix_ppc.go zsyscall_aix_ppc64.go zsyscall_aix_ppc64_gc.go zsyscall_aix_ppc64_gccgo.go zsyscall_darwin_amd64.go zsyscall_darwin_amd64.s zsyscall_darwin_arm64.go zsyscall_darwin_arm64.s zsyscall_dragonfly_amd64.go zsyscall_freebsd_386.go zsyscall_freebsd_amd64.go zsyscall_freebsd_arm.go zsyscall_freebsd_arm64.go zsyscall_freebsd_riscv64.go zsyscall_illumos_amd64.go zsyscall_linux.go zsyscall_linux_386.go zsyscall_linux_amd64.go zsyscall_linux_arm.go zsyscall_linux_arm64.go zsyscall_linux_loong64.go zsyscall_linux_mips.go zsyscall_linux_mips64.go zsyscall_linux_mips64le.go zsyscall_linux_mipsle.go zsyscall_linux_ppc.go zsyscall_linux_ppc64.go zsyscall_linux_ppc64le.go zsyscall_linux_riscv64.go zsyscall_linux_s390x.go zsyscall_linux_sparc64.go zsyscall_netbsd_386.go zsyscall_netbsd_amd64.go zsyscall_netbsd_arm.go zsyscall_netbsd_arm64.go zsyscall_openbsd_386.go zsyscall_openbsd_386.s zsyscall_openbsd_amd64.go zsyscall_openbsd_amd64.s zsyscall_openbsd_arm.go zsyscall_openbsd_arm.s zsyscall_openbsd_arm64.go zsyscall_openbsd_arm64.s zsyscall_openbsd_mips64.go zsyscall_openbsd_mips64.s zsyscall_openbsd_ppc64.go zsyscall_openbsd_ppc64.s zsyscall_openbsd_riscv64.go zsyscall_openbsd_riscv64.s zsyscall_solaris_amd64.go zsyscall_zos_s390x.go zsysctl_openbsd_386.go zsysctl_openbsd_amd64.go zsysctl_openbsd_arm.go zsysctl_openbsd_arm64.go zsysctl_openbsd_mips64.go zsysctl_openbsd_ppc64.go zsysctl_openbsd_riscv64.go zsysnum_darwin_amd64.go zsysnum_darwin_arm64.go zsysnum_dragonfly_amd64.go zsysnum_freebsd_386.go zsysnum_freebsd_amd64.go zsysnum_freebsd_arm.go zsysnum_freebsd_arm64.go zsysnum_freebsd_riscv64.go zsysnum_linux_386.go zsysnum_linux_amd64.go zsysnum_linux_arm.go zsysnum_linux_arm64.go zsysnum_linux_loong64.go zsysnum_linux_mips.go zsysnum_linux_mips64.go zsysnum_linux_mips64le.go zsysnum_linux_mipsle.go zsysnum_linux_ppc.go zsysnum_linux_ppc64.go zsysnum_linux_ppc64le.go zsysnum_linux_riscv64.go zsysnum_linux_s390x.go zsysnum_linux_sparc64.go zsysnum_netbsd_386.go zsysnum_netbsd_amd64.go zsysnum_netbsd_arm.go zsysnum_netbsd_arm64.go zsysnum_openbsd_386.go zsysnum_openbsd_amd64.go zsysnum_openbsd_arm.go zsysnum_openbsd_arm64.go zsysnum_openbsd_mips64.go zsysnum_openbsd_ppc64.go zsysnum_openbsd_riscv64.go zsysnum_zos_s390x.go ztypes_aix_ppc.go ztypes_aix_ppc64.go ztypes_darwin_amd64.go ztypes_darwin_arm64.go ztypes_dragonfly_amd64.go ztypes_freebsd_386.go ztypes_freebsd_amd64.go ztypes_freebsd_arm.go ztypes_freebsd_arm64.go ztypes_freebsd_riscv64.go ztypes_linux.go ztypes_linux_386.go ztypes_linux_amd64.go ztypes_linux_arm.go ztypes_linux_arm64.go ztypes_linux_loong64.go ztypes_linux_mips.go ztypes_linux_mips64.go ztypes_linux_mips64le.go ztypes_linux_mipsle.go ztypes_linux_ppc.go ztypes_linux_ppc64.go ztypes_linux_ppc64le.go ztypes_linux_riscv64.go ztypes_linux_s390x.go ztypes_linux_sparc64.go ztypes_netbsd_386.go ztypes_netbsd_amd64.go ztypes_netbsd_arm.go ztypes_netbsd_arm64.go ztypes_openbsd_386.go ztypes_openbsd_amd64.go ztypes_openbsd_arm.go ztypes_openbsd_arm64.go ztypes_openbsd_mips64.go ztypes_openbsd_ppc64.go ztypes_openbsd_riscv64.go ztypes_solaris_amd64.go ztypes_zos_s390x.gogopkg.in
vendor/github.com/dlclark/regexp2/ATTRIB
raw
1============
2These pieces of code were ported from dotnet/corefx:
3
4syntax/charclass.go (from RegexCharClass.cs): ported to use the built-in Go unicode classes. Canonicalize is
5 a direct port, but most of the other code required large changes because the C# implementation
6 used a string to represent the CharSet data structure and I cleaned that up in my implementation.
7
8syntax/code.go (from RegexCode.cs): ported literally with various cleanups and layout to make it more Go-ish.
9
10syntax/escape.go (from RegexParser.cs): ported Escape method and added some optimizations. Unescape is inspired by
11 the C# implementation but couldn't be directly ported because of the lack of do-while syntax in Go.
12
13syntax/parser.go (from RegexpParser.cs and RegexOptions.cs): ported parser struct and associated methods as
14 literally as possible. Several language differences required changes. E.g. lack pre/post-fix increments as
15 expressions, lack of do-while loops, lack of overloads, etc.
16
17syntax/prefix.go (from RegexFCD.cs and RegexBoyerMoore.cs): ported as literally as possible and added support
18 for unicode chars that are longer than the 16-bit char in C# for the 32-bit rune in Go.
19
20syntax/replacerdata.go (from RegexReplacement.cs): conceptually ported and re-organized to handle differences
21 in charclass implementation, and fix odd code layout between RegexParser.cs, Regex.cs, and RegexReplacement.cs.
22
23syntax/tree.go (from RegexTree.cs and RegexNode.cs): ported literally as possible.
24
25syntax/writer.go (from RegexWriter.cs): ported literally with minor changes to make it more Go-ish.
26
27match.go (from RegexMatch.cs): ported, simplified, and changed to handle Go's lack of inheritence.
28
29regexp.go (from Regex.cs and RegexOptions.cs): conceptually serves the same "starting point", but is simplified
30 and changed to handle differences in C# strings and Go strings/runes.
31
32replace.go (from RegexReplacement.cs): ported closely and then cleaned up to combine the MatchEvaluator and
33 simple string replace implementations.
34
35runner.go (from RegexRunner.cs): ported literally as possible.
36
37regexp_test.go (from CaptureTests.cs and GroupNamesAndNumbers.cs): conceptually ported, but the code was
38 manually structured like Go tests.
39
40replace_test.go (from RegexReplaceStringTest0.cs): conceptually ported
41
42rtl_test.go (from RightToLeft.cs): conceptually ported
43---
44dotnet/corefx was released under this license:
45
46The MIT License (MIT)
47
48Copyright (c) Microsoft Corporation
49
50Permission is hereby granted, free of charge, to any person obtaining a copy
51of this software and associated documentation files (the "Software"), to deal
52in the Software without restriction, including without limitation the rights
53to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54copies of the Software, and to permit persons to whom the Software is
55furnished to do so, subject to the following conditions:
56
57The above copyright notice and this permission notice shall be included in all
58copies or substantial portions of the Software.
59
60THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66SOFTWARE.
67
68============
69These pieces of code are copied from the Go framework:
70
71- The overall directory structure of regexp2 was inspired by the Go runtime regexp package.
72- The optimization in the escape method of syntax/escape.go is from the Go runtime QuoteMeta() func in regexp/regexp.go
73- The method signatures in regexp.go are designed to match the Go framework regexp methods closely
74- func regexp2.MustCompile and func quote are almost identifical to the regexp package versions
75- BenchmarkMatch* and TestProgramTooLong* funcs in regexp_performance_test.go were copied from the framework
76 regexp/exec_test.go
77---
78The Go framework was released under this license:
79
80Copyright (c) 2012 The Go Authors. All rights reserved.
81
82Redistribution and use in source and binary forms, with or without
83modification, are permitted provided that the following conditions are
84met:
85
86 * Redistributions of source code must retain the above copyright
87notice, this list of conditions and the following disclaimer.
88 * Redistributions in binary form must reproduce the above
89copyright notice, this list of conditions and the following disclaimer
90in the documentation and/or other materials provided with the
91distribution.
92 * Neither the name of Google Inc. nor the names of its
93contributors may be used to endorse or promote products derived from
94this software without specific prior written permission.
95
96THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
97"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
98LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
99A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
100OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
101SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
102LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
103DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
104THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
105(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
106OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107
108============
109Some test data were gathered from the Mono project.
110
111regexp_mono_test.go: ported from https://github.com/mono/mono/blob/master/mcs/class/System/Test/System.Text.RegularExpressions/PerlTrials.cs
112---
113Mono tests released under this license:
114
115Permission is hereby granted, free of charge, to any person obtaining
116a copy of this software and associated documentation files (the
117"Software"), to deal in the Software without restriction, including
118without limitation the rights to use, copy, modify, merge, publish,
119distribute, sublicense, and/or sell copies of the Software, and to
120permit persons to whom the Software is furnished to do so, subject to
121the following conditions:
122
123The above copyright notice and this permission notice shall be
124included in all copies or substantial portions of the Software.
125
126THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
128MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
129NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
130LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
131OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
132WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
133