Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add language support for Go workspaces #6433

Merged
merged 4 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2434,8 +2434,11 @@ Go Checksums:
aliases:
- go.sum
- go sum
- go.work.sum
- go work sum
filenames:
- go.sum
- go.work.sum
tm_scope: go.sum
ace_mode: text
language_id: 1054391671
Expand All @@ -2450,6 +2453,17 @@ Go Module:
tm_scope: go.mod
ace_mode: text
language_id: 947461016
Go Workspace:
type: data
color: "#00ADD8"
aliases:
- go.work
- go work
filenames:
- go.work
tm_scope: go.mod
ace_mode: text
language_id: 934546256
Godot Resource:
type: data
color: "#355570"
Expand Down
2 changes: 2 additions & 0 deletions samples/Go Checksums/filenames/go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
8 changes: 8 additions & 0 deletions samples/Go Workspace/filenames/go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go 1.19

use (
./api
./pkg/featureflags
./pkg/libhelm
./third_party/digest
)
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Go:** [tree-sitter/tree-sitter-go](https://github.com/tree-sitter/tree-sitter-go) 🐌
- **Go Checksums:** [golang/vscode-go](https://github.com/golang/vscode-go)
- **Go Module:** [golang/vscode-go](https://github.com/golang/vscode-go)
- **Go Workspace:** [golang/vscode-go](https://github.com/golang/vscode-go)
- **Godot Resource:** [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin)
- **Golo:** [TypeUnsafe/sublime-golo](https://github.com/TypeUnsafe/sublime-golo)
- **Gosu:** [jpcamara/Textmate-Gosu-Bundle](https://github.com/jpcamara/Textmate-Gosu-Bundle)
Expand Down