diff --git a/docs/formats.md b/docs/formats.md index e833598..ae4770a 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -16,14 +16,15 @@ ```html
-package main
+package main
import "fmt"
diff --git a/docs/languages.md b/docs/languages.md
index 4592c8c..06888b5 100644
--- a/docs/languages.md
+++ b/docs/languages.md
@@ -24,70 +24,30 @@
| `Bicep` | `bicep` |
| `BlitzBasic` | `blitzbasic`, `b3d`, `bplus` |
| `BNF` | `bnf` |
+| `BQN` | `bqn` |
| `Brainfuck` | `brainfuck`, `bf` |
-| `PacmanConf` | `pacmanconf` |
-| `Perl` | `perl`, `pl` |
-| `Pig` | `pig` |
-| `PkgConfig` | `pkgconfig` |
-| `plaintext` | `text`, `plain`, `no-highlight` |
-| `PL/pgSQL` | `plpgsql` |
-| `Plutus Core` | `plutus-core`, `plc` |
-| `Pony` | `pony` |
-| `PostgreSQL SQL dialect` | `postgresql`, `postgres` |
-| `PostScript` | `postscript`, `postscr` |
-| `POVRay` | `pov` |
-| `PowerQuery` | `powerquery`, `pq` |
-| `PowerShell` | `powershell`, `posh`, `ps1`, `psm1`, `psd1` |
-| `Prolog` | `prolog` |
-| `PromQL` | `promql` |
-| `Protocol Buffer` | `protobuf`, `proto` |
-| `Puppet` | `puppet` |
-| `Python` | `python`, `py`, `sage`, `python3`, `py3` |
-| `Python 2` | `python2`, `py2` |
+| `C++` | `cpp`, `c++` |
| `C` | `c` |
-| `Caddyfile` | `caddyfile`, `caddy` |
-| `Caddyfile Directives` | `caddyfile-directives`, `caddyfile-d`, `caddy-d` |
| `Cap'n Proto` | `capnp` |
| `Ceylon` | `ceylon` |
| `CFEngine3` | `cfengine3`, `cf3` |
+| `cfstatement` | `cfs` |
| `ChaiScript` | `chai`, `chaiscript` |
-| `Cheetah` | `cheetah`, `spitfire` |
-| `Common Lisp` | `common-lisp`, `cl`, `lisp` |
| `Clojure` | `clojure`, `clj` |
| `CMake` | `cmake` |
| `COBOL` | `cobol` |
| `CoffeeScript` | `coffee-script`, `coffeescript`, `coffee` |
-| `cfstatement` | `cfs` |
+| `Common Lisp` | `common-lisp`, `cl`, `lisp` |
| `Coq` | `coq` |
-| `C++` | `cpp`, `c++` |
-| `Cassandra CQL` | `cassandra`, `cql` |
| `Crystal` | `cr`, `crystal` |
| `C#` | `csharp`, `c#` |
| `CSS` | `css` |
| `Cython` | `cython`, `pyx`, `pyrex` |
-| `J` | `j` |
-| `Java` | `java` |
-| `JavaScript` | `js`, `javascript` |
-| `JSON` | `json` |
-| `react` | `jsx`, `react` |
-| `Julia` | `julia`, `jl` |
-| `Jungle` | `jungle` |
-| `Handlebars` | `handlebars`, `hbs` |
-| `Haskell` | `haskell`, `hs` |
-| `Haxe` | `hx`, `haxe`, `hxsl` |
-| `HCL` | `hcl` |
-| `Hexdump` | `hexdump` |
-| `HLB` | `hlb` |
-| `HTML` | `html` |
-| `HTTP` | `http` |
-| `Hy` | `hylang` |
-| `PHP` | `php`, `php3`, `php4`, `php5` |
-| `PHTML` | `phtml` |
| `D` | `d` |
| `Dart` | `dart` |
| `Diff` | `diff`, `udiff` |
| `Django/Jinja` | `django`, `jinja` |
-| `Docker` | `docker`, `dockerfile` |
+| `dns` | `zone`, `bind` |
| `DTD` | `dtd` |
| `Dylan` | `dylan` |
| `EBNF` | `ebnf` |
@@ -99,35 +59,38 @@
| `Fennel` | `fennel`, `fnl` |
| `Fish` | `fish`, `fishshell` |
| `Forth` | `forth` |
-| `Fortran` | `fortran` |
-| `FortranFixed` | `fortranfixed` |
+| `Fortran` | `fortran`, `f90` |
| `FSharp` | `fsharp` |
| `GAS` | `gas`, `asm` |
| `GDScript` | `gdscript`, `gd` |
-| `Genshi Text` | `genshitext` |
-| `Genshi HTML` | `html+genshi`, `html+kid` |
-| `Genshi` | `genshi`, `kid`, `xml+genshi`, `xml+kid` |
| `Gherkin` | `cucumber`, `Cucumber`, `gherkin`, `Gherkin` |
| `GLSL` | `glsl` |
| `Gnuplot` | `gnuplot` |
| `Go HTML Template` | `go-html-template` |
-| `Go Text Template` | `go-text-template` |
-| `Go` | `go`, `golang` |
| `GraphQL` | `graphql`, `graphqls`, `gql` |
| `Groff` | `groff`, `nroff`, `man` |
| `Groovy` | `groovy` |
+| `Handlebars` | `handlebars`, `hbs` |
+| `Haskell` | `haskell`, `hs` |
+| `HCL` | `hcl` |
+| `Hexdump` | `hexdump` |
+| `HLB` | `hlb` |
+| `HLSL` | `hlsl` |
+| `Hy` | `hylang` |
| `Idris` | `idris`, `idr` |
| `Igor` | `igor`, `igorpro` |
| `INI` | `ini`, `cfg`, `dosini` |
| `Io` | `io` |
+| `J` | `j` |
+| `Java` | `java` |
+| `JavaScript` | `js`, `javascript` |
+| `JSON` | `json` |
+| `Julia` | `julia`, `jl` |
+| `Jungle` | `jungle` |
| `Kotlin` | `kotlin` |
| `Lighttpd configuration file` | `lighty`, `lighttpd` |
| `LLVM` | `llvm` |
| `Lua` | `lua` |
-| `Base Makefile` | `make`, `makefile`, `mf`, `bsdmake` |
-| `Mako` | `mako` |
-| `markdown` | `md`, `mkd` |
-| `Mason` | `mason` |
| `Mathematica` | `mathematica`, `mma`, `nb` |
| `Matlab` | `matlab` |
| `mcfunction` | `mcfunction` |
@@ -138,8 +101,7 @@
| `Modula-2` | `modula2`, `m2` |
| `MonkeyC` | `monkeyc` |
| `MorrowindScript` | `morrowind`, `mwscript` |
-| `Myghty` | `myghty` |
-| `MySQL` | `mysql` |
+| `MySQL` | `mysql`, `mariadb` |
| `NASM` | `nasm` |
| `Newspeak` | `newspeak` |
| `Nginx configuration file` | `nginx` |
@@ -149,21 +111,58 @@
| `OCaml` | `ocaml` |
| `Octave` | `octave` |
| `OnesEnterprise` | `ones`, `onesenterprise`, `1S`, `1S:Enterprise` |
-| `OpenEdge ABL` | `openedge`, `abl`, `progress`, `openedgeabl` |
| `OpenSCAD` | `openscad` |
-| `Org Mode` | `org`, `orgmode` |
+| `PacmanConf` | `pacmanconf` |
+| `Perl` | `perl`, `pl` |
+| `PHP` | `php`, `php3`, `php4`, `php5` |
+| `Pig` | `pig` |
+| `PkgConfig` | `pkgconfig` |
+| `PL/pgSQL` | `plpgsql` |
+| `Plutus Core` | `plutus-core`, `plc` |
+| `Pony` | `pony` |
+| `PostScript` | `postscript`, `postscr` |
+| `POVRay` | `pov` |
+| `PowerQuery` | `powerquery`, `pq` |
+| `PowerShell` | `powershell`, `posh`, `ps1`, `psm1`, `psd1`, `pwsh` |
+| `Prolog` | `prolog` |
+| `PromQL` | `promql` |
+| `properties` | `java-properties` |
+| `Protocol Buffer` | `protobuf`, `proto` |
+| `PSL` | `psl` |
+| `Puppet` | `puppet` |
+| `Python` | `python`, `py`, `sage`, `python3`, `py3` |
+| `Python 2` | `python2`, `py2` |
| `QBasic` | `qbasic`, `basic` |
| `QML` | `qml`, `qbs` |
| `R` | `splus`, `s`, `r` |
| `Racket` | `racket`, `rkt` |
| `Ragel` | `ragel` |
-| `Raku` | `perl6`, `pl6`, `raku` |
+| `react` | `jsx`, `react` |
| `ReasonML` | `reason`, `reasonml` |
| `reg` | `registry` |
| `Rexx` | `rexx`, `arexx` |
-| `reStructuredText` | `rst`, `rest`, `restructuredtext` |
| `Ruby` | `rb`, `ruby`, `duby` |
| `Rust` | `rust`, `rs` |
+| `SAS` | `sas` |
+| `Sass` | `sass` |
+| `Scala` | `scala` |
+| `Scheme` | `scheme`, `scm` |
+| `Scilab` | `scilab` |
+| `SCSS` | `scss` |
+| `Sed` | `sed`, `gsed`, `ssed` |
+| `Sieve` | `sieve` |
+| `Smalltalk` | `smalltalk`, `squeak`, `st` |
+| `Snobol` | `snobol` |
+| `Solidity` | `sol`, `solidity` |
+| `SPARQL` | `sparql` |
+| `SQL` | `sql` |
+| `SquidConf` | `squidconf`, `squid.conf`, `squid` |
+| `Standard ML` | `sml` |
+| `stas` | |
+| `Stylus` | `stylus` |
+| `Swift` | `swift` |
+| `SYSTEMD` | `systemd` |
+| `systemverilog` | `systemverilog`, `sv` |
| `TableGen` | `tablegen` |
| `TASM` | `tasm` |
| `Tcl` | `tcl` |
@@ -182,36 +181,53 @@
| `TypeScript` | `ts`, `tsx`, `typescript` |
| `TypoScriptCssData` | `typoscriptcssdata` |
| `TypoScriptHtmlData` | `typoscripthtmldata` |
-| `TypoScript` | `typoscript` |
-| `SAS` | `sas` |
-| `Sass` | `sass` |
-| `Scala` | `scala` |
-| `Scheme` | `scheme`, `scm` |
-| `Scilab` | `scilab` |
-| `SCSS` | `scss` |
-| `Sieve` | `sieve` |
-| `Smalltalk` | `smalltalk`, `squeak`, `st` |
-| `Smarty` | `smarty` |
-| `Standard ML` | `sml` |
-| `Snobol` | `snobol` |
-| `Solidity` | `sol`, `solidity` |
-| `SPARQL` | `sparql` |
-| `SQL` | `sql` |
-| `SquidConf` | `squidconf`, `squid.conf`, `squid` |
-| `Stylus` | `stylus` |
-| `Svelte` | `svelte` |
-| `Swift` | `swift` |
-| `SYSTEMD` | `systemd` |
-| `systemverilog` | `systemverilog`, `sv` |
+| `Vala` | `vala`, `vapi` |
| `VB.net` | `vb.net`, `vbnet` |
| `verilog` | `verilog`, `v` |
| `VHDL` | `vhdl` |
-| `VimL` | `vim` |
+| `VHS` | `vhs`, `tape`, `cassette` |
| `vue` | `vue`, `vuejs` |
| `WDTE` | |
+| `Whiley` | `whiley` |
| `XML` | `xml` |
| `Xorg` | `xorg.conf` |
| `YAML` | `yaml` |
| `YANG` | `yang` |
| `Zed` | `zed` |
| `Zig` | `zig` |
+| `Caddyfile` | `caddyfile`, `caddy` |
+| `Caddyfile Directives` | `caddyfile-directives`, `caddyfile-d`, `caddy-d` |
+| `Chapel` | `chapel`, `chpl` |
+| `Cheetah` | `cheetah`, `spitfire` |
+| `Common Lisp` | `common-lisp`, `cl`, `lisp` |
+| `Cassandra CQL` | `cassandra`, `cql` |
+| `Docker` | `docker`, `dockerfile` |
+| `EmacsLisp` | `emacs`, `elisp`, `emacs-lisp` |
+| `FortranFixed` | `fortranfixed` |
+| `Genshi Text` | `genshitext` |
+| `Genshi HTML` | `html+genshi`, `html+kid` |
+| `Genshi` | `genshi`, `kid`, `xml+genshi`, `xml+kid` |
+| `Go Text Template` | `go-text-template` |
+| `Go` | `go`, `golang` |
+| `HTML` | `html` |
+| `Go HTML Template` | `go-html-template` |
+| `Haxe` | `hx`, `haxe`, `hxsl` |
+| `HTTP` | `http` |
+| `Makefile` | `make`, `makefile`, `mf`, `bsdmake` |
+| `Mako` | `mako` |
+| `markdown` | `md`, `mkd` |
+| `Mason` | `mason` |
+| `Myghty` | `myghty` |
+| `OpenEdge ABL` | `openedge`, `abl`, `progress`, `openedgeabl` |
+| `Org Mode` | `org`, `orgmode` |
+| `PHTML` | `phtml` |
+| `plaintext` | `text`, `plain`, `no-highlight` |
+| `PostgreSQL SQL dialect` | `postgresql`, `postgres` |
+| `Raku` | `perl6`, `pl6`, `raku` |
+| `reStructuredText` | `rst`, `rest`, `restructuredtext` |
+| `Smarty` | `smarty` |
+| `Svelte` | `svelte` |
+| `TypoScript` | `typoscript` |
+| `V` | `v`, `vlang` |
+| `V shell` | `vsh`, `vshell` |
+| `VimL` | `vim` |
diff --git a/docs/themes.md b/docs/themes.md
index 69e61ab..3acf30e 100644
--- a/docs/themes.md
+++ b/docs/themes.md
@@ -5,9 +5,14 @@
- [`algol_nu`](#algol_nu)
- [`arduino`](#arduino)
- [`autumn`](#autumn)
+- [`average`](#average)
- [`base16-snazzy`](#base16-snazzy)
- [`borland`](#borland)
- [`bw`](#bw)
+- [`catppuccin-frappe`](#catppuccin-frappe)
+- [`catppuccin-latte`](#catppuccin-latte)
+- [`catppuccin-macchiato`](#catppuccin-macchiato)
+- [`catppuccin-mocha`](#catppuccin-mocha)
- [`colorful`](#colorful)
- [`doom-one`](#doom-one)
- [`doom-one2`](#doom-one2)
@@ -16,16 +21,22 @@
- [`friendly`](#friendly)
- [`fruity`](#fruity)
- [`github`](#github)
+- [`github-dark`](#github-dark)
+- [`gruvbox`](#gruvbox)
+- [`gruvbox-light`](#gruvbox-light)
- [`hr_high_contrast`](#hr_high_contrast)
- [`hrdark`](#hrdark)
- [`igor`](#igor)
- [`lovelace`](#lovelace)
- [`manni`](#manni)
+- [`modus-operandi`](#modus-operandi)
+- [`modus-vivendi`](#modus-vivendi)
- [`monokai`](#monokai)
- [`monokailight`](#monokailight)
- [`murphy`](#murphy)
- [`native`](#native)
- [`nord`](#nord)
+- [`onedark`](#onedark)
- [`onesenterprise`](#onesenterprise)
- [`paraiso-dark`](#paraiso-dark)
- [`paraiso-light`](#paraiso-light)
@@ -33,6 +44,9 @@
- [`perldoc`](#perldoc)
- [`pygments`](#pygments)
- [`rainbow_dash`](#rainbow_dash)
+- [`rose-pine`](#rose-pine)
+- [`rose-pine-dawn`](#rose-pine-dawn)
+- [`rose-pine-moon`](#rose-pine-moon)
- [`rrt`](#rrt)
- [`solarized-dark`](#solarized-dark)
- [`solarized-dark256`](#solarized-dark256)
@@ -67,6 +81,10 @@

+## `average`
+
+
+
## `base16-snazzy`

@@ -79,6 +97,22 @@

+## `catppuccin-frappe`
+
+
+
+## `catppuccin-latte`
+
+
+
+## `catppuccin-macchiato`
+
+
+
+## `catppuccin-mocha`
+
+
+
## `colorful`

@@ -111,6 +145,18 @@

+## `github-dark`
+
+
+
+## `gruvbox`
+
+
+
+## `gruvbox-light`
+
+
+
## `hr_high_contrast`

@@ -131,6 +177,14 @@

+## `modus-operandi`
+
+
+
+## `modus-vivendi`
+
+
+
## `monokai`

@@ -151,6 +205,10 @@

+## `onedark`
+
+
+
## `onesenterprise`

@@ -179,6 +237,18 @@

+## `rose-pine`
+
+
+
+## `rose-pine-dawn`
+
+
+
+## `rose-pine-moon`
+
+
+
## `rrt`

diff --git a/docs/themes/average.svg b/docs/themes/average.svg
new file mode 100644
index 0000000..46ed731
--- /dev/null
+++ b/docs/themes/average.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/catppuccin-frappe.svg b/docs/themes/catppuccin-frappe.svg
new file mode 100644
index 0000000..435f483
--- /dev/null
+++ b/docs/themes/catppuccin-frappe.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/catppuccin-latte.svg b/docs/themes/catppuccin-latte.svg
new file mode 100644
index 0000000..f2d1a25
--- /dev/null
+++ b/docs/themes/catppuccin-latte.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/catppuccin-macchiato.svg b/docs/themes/catppuccin-macchiato.svg
new file mode 100644
index 0000000..ea879f8
--- /dev/null
+++ b/docs/themes/catppuccin-macchiato.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/catppuccin-mocha.svg b/docs/themes/catppuccin-mocha.svg
new file mode 100644
index 0000000..32b819d
--- /dev/null
+++ b/docs/themes/catppuccin-mocha.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/github-dark.svg b/docs/themes/github-dark.svg
new file mode 100644
index 0000000..3aaa10d
--- /dev/null
+++ b/docs/themes/github-dark.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/gruvbox-light.svg b/docs/themes/gruvbox-light.svg
new file mode 100644
index 0000000..28ba6d0
--- /dev/null
+++ b/docs/themes/gruvbox-light.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/gruvbox.svg b/docs/themes/gruvbox.svg
new file mode 100644
index 0000000..16c89d2
--- /dev/null
+++ b/docs/themes/gruvbox.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/modus-operandi.svg b/docs/themes/modus-operandi.svg
new file mode 100644
index 0000000..9473def
--- /dev/null
+++ b/docs/themes/modus-operandi.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/modus-vivendi.svg b/docs/themes/modus-vivendi.svg
new file mode 100644
index 0000000..3b4028c
--- /dev/null
+++ b/docs/themes/modus-vivendi.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/onedark.svg b/docs/themes/onedark.svg
new file mode 100644
index 0000000..1230365
--- /dev/null
+++ b/docs/themes/onedark.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/rose-pine-dawn.svg b/docs/themes/rose-pine-dawn.svg
new file mode 100644
index 0000000..da6c204
--- /dev/null
+++ b/docs/themes/rose-pine-dawn.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/rose-pine-moon.svg b/docs/themes/rose-pine-moon.svg
new file mode 100644
index 0000000..d1d27ce
--- /dev/null
+++ b/docs/themes/rose-pine-moon.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/themes/rose-pine.svg b/docs/themes/rose-pine.svg
new file mode 100644
index 0000000..055d197
--- /dev/null
+++ b/docs/themes/rose-pine.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/docs/update.go b/docs/update.go
index b0acd67..cbeab11 100644
--- a/docs/update.go
+++ b/docs/update.go
@@ -6,9 +6,9 @@ import (
"os"
"strings"
- "github.com/alecthomas/chroma/formatters"
- "github.com/alecthomas/chroma/lexers"
- "github.com/alecthomas/chroma/styles"
+ "github.com/alecthomas/chroma/v2/formatters"
+ "github.com/alecthomas/chroma/v2/lexers"
+ "github.com/alecthomas/chroma/v2/styles"
"github.com/koki-develop/gat/pkg/printer"
)
@@ -62,7 +62,7 @@ func updateLanguages() {
f.WriteString("| Language | Aliases |\n")
f.WriteString("| --- | --- |\n")
- for _, l := range lexers.Registry.Lexers {
+ for _, l := range lexers.GlobalLexerRegistry.Lexers {
cfg := l.Config()
f.WriteString(fmt.Sprintf("| `%s` ", cfg.Name))
diff --git a/go.mod b/go.mod
index 413cec9..ce6dd88 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/koki-develop/gat
go 1.20
require (
- github.com/alecthomas/chroma v0.10.0
+ github.com/alecthomas/chroma/v2 v2.5.0
github.com/spf13/cobra v1.6.1
)
diff --git a/go.sum b/go.sum
index 657c0b2..0722083 100644
--- a/go.sum
+++ b/go.sum
@@ -1,24 +1,17 @@
-github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek=
-github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s=
+github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2K2ink=
+github.com/alecthomas/chroma/v2 v2.5.0 h1:CQCdj1BiBV17sD4Bd32b/Bzuiq/EqoNTrnIhyQAZ+Rk=
+github.com/alecthomas/chroma/v2 v2.5.0/go.mod h1:yrkMI9807G1ROx13fhe1v6PN2DDeaR73L3d+1nmYQtw=
+github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
-github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
-github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.4.0 h1:F1rxgk7p4uKjwIQxBs9oAXe5CqrXlCduYEJvrF4u93E=
github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
+github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
-github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
-github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
-github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
-github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/pkg/printer/printer.go b/pkg/printer/printer.go
index 2dc91f3..57dee1b 100644
--- a/pkg/printer/printer.go
+++ b/pkg/printer/printer.go
@@ -5,10 +5,10 @@ import (
"io"
"os"
- "github.com/alecthomas/chroma"
- "github.com/alecthomas/chroma/formatters"
- "github.com/alecthomas/chroma/lexers"
- "github.com/alecthomas/chroma/styles"
+ "github.com/alecthomas/chroma/v2"
+ "github.com/alecthomas/chroma/v2/formatters"
+ "github.com/alecthomas/chroma/v2/lexers"
+ "github.com/alecthomas/chroma/v2/styles"
)
var (