Skip to content

Commit 2c6b27d

Browse files
WIP
1 parent efcbc62 commit 2c6b27d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bindings/go/scip/symbol.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ func (z *zeroAllocSymbolParser) acceptIdentifier(what parseCtx) (string, error)
642642
z.advanceRune()
643643
}
644644
if start == z.byteIndex {
645+
fmt.Printf("z.currentRune = %q, z.byteIndex = %d, z.symbolString = %q\n", z.currentRune, z.byteIndex, z.SymbolString)
645646
return "", z.error(errorCaseEmptyIdent, what)
646647
}
647648
return z.SymbolString[start:z.byteIndex], nil

bindings/go/scip/symbol_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,13 @@ func TestParseV2(t *testing.T) {
241241
}
242242
})
243243
}
244+
245+
func TestParseX(t *testing.T) {
246+
s := "cxx . todo-pkg todo-version gfx/Rect#x(455f465bc33b4cdf)."
247+
var sym Symbol
248+
require.NotPanics(t, func() {
249+
err := parsePartialSymbolV2(s, true, &sym)
250+
require.NoError(t, err)
251+
require.Len(t, sym.Descriptors, 3)
252+
})
253+
}

0 commit comments

Comments
 (0)