octohint icon indicating copy to clipboard operation
octohint copied to clipboard

token with tab indent file cannot be matched properly

Open deluxghost opened this issue 6 years ago • 5 comments

i'm talking about golang that use tab officially

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

deluxghost avatar Mar 04 '19 09:03 deluxghost

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

deluxghost avatar Mar 06 '19 03:03 deluxghost

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

pd4d10 avatar Mar 06 '19 03:03 pd4d10

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 avatar Mar 08 '19 06:03 deluxghost

image

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

deluxghost avatar Mar 12 '19 02:03 deluxghost

屏幕快照 2019-05-10 下午3 31 57

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

And this

linonetwo avatar May 10 '19 07:05 linonetwo