Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
varungandhi-src committed Sep 18, 2024
1 parent efcbc62 commit 2c6b27d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/go/scip/symbol.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ func (z *zeroAllocSymbolParser) acceptIdentifier(what parseCtx) (string, error)
z.advanceRune()
}
if start == z.byteIndex {
fmt.Printf("z.currentRune = %q, z.byteIndex = %d, z.symbolString = %q\n", z.currentRune, z.byteIndex, z.SymbolString)
return "", z.error(errorCaseEmptyIdent, what)
}
return z.SymbolString[start:z.byteIndex], nil
Expand Down
10 changes: 10 additions & 0 deletions bindings/go/scip/symbol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,13 @@ func TestParseV2(t *testing.T) {
}
})
}

func TestParseX(t *testing.T) {
s := "cxx . todo-pkg todo-version gfx/Rect#x(455f465bc33b4cdf)."
var sym Symbol
require.NotPanics(t, func() {
err := parsePartialSymbolV2(s, true, &sym)
require.NoError(t, err)
require.Len(t, sym.Descriptors, 3)
})
}

0 comments on commit 2c6b27d

Please sign in to comment.