pd4d10 / octohint

The missing IntelliSense hint for GitHub and GitLab
https://chrome.google.com/webstore/detail/octohint/hbkpjkfdheainjkkebeoofkpgddnnbpk
MIT License
962 stars 35 forks source link

token with tab indent file cannot be matched properly #27

Open deluxghost opened 5 years ago

deluxghost commented 5 years ago

i'm talking about golang that use tab officially

an example: https://github.com/go-playground/validator/blob/v9/_examples/simple/main.go

deluxghost commented 5 years ago

screenshot for https://github.com/go-playground/validator/blob/v9/benchmarks_test.go

match "testing": 2019-03-06 11 20 05

match "1" (not sure): 2019-03-06 11 23 01

screenshot for https://github.com/go-playground/validator/blob/v9/_examples/simple/main.go

match "required": 2019-03-06 11 23 34

match "validate": 2019-03-06 11 23 59

i can't always reproduce the bug either. when i open these pages first, it seems everything is ok, but after several refreshing and randomly token clicking, something like the screenshots happened

pd4d10 commented 5 years ago

Thanks for your screenshots! I'll take a look at it ASAP

deluxghost commented 5 years ago

2019-03-08 2 36 11

another screenie, but it's vue with tab indentation

https://github.com/JustArchiNET/ASF-ui/blob/master/src/views/modals/BotConfiguration.vue

deluxghost commented 5 years ago

image

but also with any wide characters? i doubt RTL languages will work

linonetwo commented 5 years ago
屏幕快照 2019-05-10 下午3 31 57

https://github.com/mrdoob/three.js/blob/93e72ba7b24958ddb0652bd33171edd14ed2d693/examples/webgl_geometry_hierarchy.html#L101-L119

And this