fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix '-' inside substrings.

+7 -6
+6 -6
parse.go
··· 150 150 for len(b) > 0 { 151 151 c := b[0] 152 152 153 - if c == '-' && !negate { 154 - negate = true 155 - b = b[1:] 156 - continue 157 - } 158 - 159 153 if !inWord { 154 + if c == '-' && !negate { 155 + negate = true 156 + b = b[1:] 157 + continue 158 + } 159 + 160 160 if q, n, ok, err := tryConsumeCase(b); err != nil { 161 161 return nil, err 162 162 } else if ok {
+1
parse_test.go
··· 27 27 } 28 28 29 29 for _, c := range []testcase{ 30 + {"sub-pixel", &SubstringQuery{Pattern: "sub-pixel"}, false}, 30 31 {"abc", &SubstringQuery{Pattern: "abc"}, false}, 31 32 {"\"abc bcd\"", &SubstringQuery{Pattern: "abc bcd"}, false}, 32 33 {"abc bcd", &AndQuery{[]Query{