Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
worlpaker committed Feb 19, 2023
0 parents commit f8663f0
Show file tree
Hide file tree
Showing 16 changed files with 7,160 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/**
3 changes: 3 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/**
.vscode-test/**
.gitignore
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log

All notable changes to the "go-syntax" extension will be documented in this file.

## [0.1.0]

- First version of Go Syntax
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Go Syntax

Rich Syntax Highlighting for [Go](https://go.dev/) language

With this extension, your favorite theme can color your code better.

## Comparisons (Before - After)

### Before (Dark+ Theme)

![dark+_before](examples/dark+_before.png)

### After (Dark+ Theme)

![dark+_after](examples/dark+_after.png)

### Before (Dracula Theme)

![dracula_before](examples/dracula_before.png)

### After (Dracula Theme)

![dracula_after](examples/dracula_after.png)

### Before (Ayu Dark Theme)

![ayudark_before](examples/ayudark_before.png)

### After (Ayu Dark Theme)

![ayudark_after](examples/ayudark_after.png)

## Contributing

Yes, please! Feel free to contribute.

## Credits

This extension added new features to the original [vscode-go-syntax](https://github.com/microsoft/vscode/blob/main/extensions/go/syntaxes/go.tmLanguage.json) which is forked from [better-go-syntax](https://github.com/jeff-hykin/better-go-syntax).

Go syntax semantic tokens tested thanks to the [vscode-tmgrammar-test](https://github.com/PanAeon/vscode-tmgrammar-test).

## License

[MIT](https://github.com/worlpaker/go-syntax/blob/master/LICENSE)
Binary file added examples/ayudark_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/ayudark_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/dark+_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/dark+_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/dracula_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/dracula_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
54 changes: 54 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "go-syntax",
"displayName": "Go Syntax",
"description": "Rich Syntax Highlighting for Go language",
"version": "0.1.0",
"author": "Furkan Ozalp <[email protected]>",
"publisher": "furkanozalp",
"license": "MIT",
"icon": "icon/icon.png",
"repository": {
"types": "git",
"url": "https://github.com/worlpaker/go-syntax.git"
},
"bugs": {
"url": "https://github.com/worlpaker/go-syntax/issues"
},
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"go",
"golang",
"syntax",
"textmate",
"highlighting",
"coloring",
"color"
],
"contributes": {
"languages": [
{
"id": "go",
"aliases": [
"Go",
"go"
],
"extensions": [
".go"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "go",
"scopeName": "source.go",
"path": "./syntaxes/go.tmLanguage.json"
}
]
}
}
Loading

0 comments on commit f8663f0

Please sign in to comment.