mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-27 11:59:56 -04:00
Detect go based on header
This commit is contained in:
1 parent
9e20d6efc7
commit
ae80bdd9b7
2 files changed
+2
-1
No files matched your search
@@ -24,7 +24,7 @@ Below is a recap of the main changes made since:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ go get github.com/jessp01/gohighlight
|
$ go get github.com/jessp01/gohighlight
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ filetype: go
|
|||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.go$"
|
filename: "\\.go$"
|
||||||
|
header: "^package\\s.*"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Conditionals and control flow
|
# Conditionals and control flow
|
||||||
|
|||||||
Reference in new issue
Block a user