-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some number literals forms introduced in Go 1.13 do not highlight correctly #3430
Comments
The problems here are with a few specific and odd scenarios for number literals that were released in Go 1.13
Here's a useful code block to demonstrate the highlighting:
|
bhcleek
changed the title
Incorrect highlighting of number literals
some number literals forms introduced in Go 1.13 do not highlight correctly
Jul 14, 2022
bhcleek
added a commit
to bhcleek/vim-go
that referenced
this issue
Aug 8, 2022
* Add tests for float and imaginary matches. * Match floats that start with or end with a decimal point with no digits preceding or following, respectively. * Match hexadecimal floats. * Match imaginary binary, octal, and hexadecimal numbers. Fixes fatih#3430
bhcleek
added a commit
to bhcleek/vim-go
that referenced
this issue
Aug 8, 2022
* Add tests for float and imaginary matches. * Match floats that start with or end with a decimal point with no digits preceding or following, respectively. * Match hexadecimal floats. * Match imaginary binary, octal, and hexadecimal numbers. Fixes fatih#3430
bhcleek
added a commit
to bhcleek/vim-go
that referenced
this issue
Aug 8, 2022
* Add tests for float and imaginary matches. * Match floats that start with or end with a decimal point with no digits preceding or following, respectively. * Match hexadecimal floats. * Match imaginary binary, octal, and hexadecimal numbers. Fixes fatih#3430
bhcleek
added a commit
to bhcleek/vim-go
that referenced
this issue
Aug 8, 2022
* Add tests for float and imaginary matches. * Match floats that start with or end with a decimal point with no digits preceding or following, respectively. * Match hexadecimal floats. * Match imaginary binary, octal, and hexadecimal numbers. Fixes fatih#3430
mjolk
pushed a commit
to mjolk/vim-go
that referenced
this issue
Oct 4, 2022
* Add tests for float and imaginary matches. * Match floats that start with or end with a decimal point with no digits preceding or following, respectively. * Match hexadecimal floats. * Match imaginary binary, octal, and hexadecimal numbers. Fixes fatih#3430
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you expect to happen?
That the plugin will highlight all number literals.
The full list of literals is taken from here.
What happened instead?
The plugin does not highlight some valid number literals in Go.
All listed numbers below should be highlighted:
Configuration:
vim-go
version: v1.26vimrc
you used to reproduce:Vim
version (first three lines from:version
):Go
version (go version
):Go
environmentgo env
Output:gopls
versiongopls version
Output:The text was updated successfully, but these errors were encountered: