You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesfatih#2595
**Changes**
- Removed ":" from goOctalError matching subgroup. It must not apply on
correct slice slicing e.g. slice[0:1].
- Created test for slice slicing highlight.
- Renamed TestZeroAsIndexElement => Test_zero_as_index_element.
- Renamed TestZeroAsSliceIndex => Test_zero_as_slice_index.
- Fix cursor position in tests Test_zero_as_slice_index and
Test_zero_as_index_element.
k33nice
added a commit
to k33nice/vim-go
that referenced
this issue
Nov 18, 2019
Fixesfatih#2595
**Changes**
- Removed ":" from goOctalError matching subgroup. It must not apply on
correct slice slicing e.g. slice[0:1].
- Created test for slice slicing highlight.
- Renamed TestZeroAsIndexElement => Test_zero_as_index_element.
- Renamed TestZeroAsSliceIndex => Test_zero_as_slice_index.
- Fix cursor position in tests Test_zero_as_slice_index and
Test_zero_as_index_element.
What did you do? (required: The issue will be closed when not provided)
vim-go wrongly highlight v[0:10] as goOctalError, mininal example:
What did you expect to happen?
No highlight for "0:10"
What happened instead?
vim-go wrongly highlight v[0:10] as goOctalError, like this:

vim-go version:
master@de681fd117
The text was updated successfully, but these errors were encountered: