mirror of
https://github.com/sharkdp/bat.git
synced 2025-10-04 19:03:53 +01:00
Merge pull request #3424 from DarkMatter-999/feat/add-gomod-support
Add go.mod and go.sum Syntax Support
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -278,3 +278,6 @@
|
||||
[submodule "assets/syntaxes/02_Extra/hosts"]
|
||||
path = assets/syntaxes/02_Extra/hosts
|
||||
url = https://github.com/tijn/hosts.tmLanguage
|
||||
[submodule "assets/syntaxes/02_Extra/Gomod"]
|
||||
path = assets/syntaxes/02_Extra/Gomod
|
||||
url = https://github.com/mitranim/sublime-gomod
|
||||
|
@@ -57,6 +57,7 @@
|
||||
- Map `.flatpakref` and `.flatpakrepo` files to INI syntax #3353 (@Ferenc-)
|
||||
- Update hosts syntax #3368 (@keith-hall)
|
||||
- Map `.kshrc` files to Bash syntax #3364 (@ritoban23)
|
||||
- Add syntax definition and test file for Go modules(`go.mod` and `go.sum`) highlighting, see #3424 (@DarkMatter-999)
|
||||
|
||||
## Themes
|
||||
|
||||
|
1
assets/syntaxes/02_Extra/Gomod
vendored
Submodule
1
assets/syntaxes/02_Extra/Gomod
vendored
Submodule
Submodule assets/syntaxes/02_Extra/Gomod added at e0200f024a
5
tests/syntax-tests/highlighted/Go/go.mod
vendored
Normal file
5
tests/syntax-tests/highlighted/Go/go.mod
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[38;2;249;38;114mmodule[0m[38;2;248;248;242m [0m[38;2;248;248;242mhugeparam[0m
|
||||
|
||||
[38;2;249;38;114mgo[0m[38;2;248;248;242m [0m[38;2;248;248;242m1.25.1[0m
|
||||
|
||||
[38;2;249;38;114mrequire[0m[38;2;248;248;242m [0m[38;2;248;248;242mgolang.org/x/tools[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.37.0[0m
|
6
tests/syntax-tests/highlighted/Go/go.sum
vendored
Normal file
6
tests/syntax-tests/highlighted/Go/go.sum
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[38;2;248;248;242mgolang.org/x/mod[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.28.0[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255mgQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=[0m
|
||||
[38;2;248;248;242mgolang.org/x/mod[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.28.0[0m[38;2;248;248;242m/[0m[38;2;248;248;242mgo.mod[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255myfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=[0m
|
||||
[38;2;248;248;242mgolang.org/x/sync[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.17.0[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255ml60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=[0m
|
||||
[38;2;248;248;242mgolang.org/x/sync[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.17.0[0m[38;2;248;248;242m/[0m[38;2;248;248;242mgo.mod[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255m9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=[0m
|
||||
[38;2;248;248;242mgolang.org/x/tools[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.37.0[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255mDVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=[0m
|
||||
[38;2;248;248;242mgolang.org/x/tools[0m[38;2;248;248;242m [0m[38;2;230;219;116mv0.37.0[0m[38;2;248;248;242m/[0m[38;2;248;248;242mgo.mod[0m[38;2;248;248;242m [0m[38;2;166;226;46mh1[0m[38;2;248;248;242m:[0m[38;2;190;132;255mMBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=[0m
|
5
tests/syntax-tests/source/Go/go.mod
vendored
Normal file
5
tests/syntax-tests/source/Go/go.mod
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
module hugeparam
|
||||
|
||||
go 1.25.1
|
||||
|
||||
require golang.org/x/tools v0.37.0
|
6
tests/syntax-tests/source/Go/go.sum
vendored
Normal file
6
tests/syntax-tests/source/Go/go.sum
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
golang.org/x/mod v0.28.0 h1:gQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=
|
||||
golang.org/x/mod v0.28.0/go.mod h1:yfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=
|
||||
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
|
||||
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/tools v0.37.0 h1:DVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=
|
||||
golang.org/x/tools v0.37.0/go.mod h1:MBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=
|
Reference in New Issue
Block a user