Skip to content

Commit 2238caa

Browse files
committed
package.json: reuse go.mod tmGrammar for go.work syntax highlight
This handles syntax highlighting in VS Code Go when users don't opt in for semantic tokens to be implemented in golang/go#50930. The go.mod and go.work syntaxes are currently identical except the keywords. Change-Id: I9395588c9291f88ed2690e939bf486f626e12a4c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/390594 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Peter Weinberger <[email protected]>
1 parent c783d6f commit 2238caa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@
179179
"scopeName": "go.mod",
180180
"path": "./syntaxes/go.mod.tmGrammar.json"
181181
},
182+
{
183+
"language": "go.work",
184+
"scopeName": "go.mod",
185+
"path": "./syntaxes/go.mod.tmGrammar.json"
186+
},
182187
{
183188
"language": "go.sum",
184189
"scopeName": "go.sum",

0 commit comments

Comments
 (0)