summaryrefslogtreecommitdiffstats
path: root/src/pattern.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-02-28 18:28:21 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-02-28 18:28:21 +0900
commitbb0502ff4429580e363be708ff301c35479144e3 (patch)
treed2ec8db2becfdfa09d8d622786ddcfed0e0b2d2a /src/pattern.go
parentc256442245836d959f329c10c4b2476a7f438ced (diff)
Check gofmt in `make test`
Diffstat (limited to 'src/pattern.go')
-rw-r--r--src/pattern.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern.go b/src/pattern.go
index 56dc830f..4a7a87a6 100644
--- a/src/pattern.go
+++ b/src/pattern.go
@@ -337,7 +337,7 @@ func (p *Pattern) MatchItem(item *Item, withPos bool, slab *util.Slab) (*Result,
func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset, int, *[]int) {
var input []Token
if len(p.nth) == 0 {
- input = []Token{Token{text: &item.text, prefixLength: 0}}
+ input = []Token{{text: &item.text, prefixLength: 0}}
} else {
input = p.transformInput(item)
}
@@ -350,7 +350,7 @@ func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset,
func (p *Pattern) extendedMatch(item *Item, withPos bool, slab *util.Slab) ([]Offset, int, *[]int) {
var input []Token
if len(p.nth) == 0 {
- input = []Token{Token{text: &item.text, prefixLength: 0}}
+ input = []Token{{text: &item.text, prefixLength: 0}}
} else {
input = p.transformInput(item)
}