Skip to content
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

Improve highlighting for numbers #752

Merged
merged 1 commit into from
Mar 13, 2016
Merged

Improve highlighting for numbers #752

merged 1 commit into from
Mar 13, 2016

Conversation

ypomortsev
Copy link
Contributor

Before/after:

vim-go-number-highlight

  • Bad octals as errors (0709, 081)
  • Hexadecimal integers starting with OX (0XdeadBEEF)
  • Imaginary numbers with exponents (1E6i, 0.5e3i)
  • Negative numbers of all types

Periods at the beginning/end of floats seem to not be highlighted -- this is consistent with a bunch of other syntax scripts, but if anyone is a highlighting wizard and knows why, please let me know!

* Bad octals as errors (`0709`, `081`)
* Hexadecimal integers starting with `OX` (`0XdeadBEEF`)
* Imaginary numbers with exponents (`1E6i`, `0.5e3i`)
* Negative numbers of all types
fatih added a commit that referenced this pull request Mar 13, 2016
@fatih fatih merged commit dd063fa into fatih:master Mar 13, 2016
@fatih
Copy link
Owner

fatih commented Mar 13, 2016

This looks great. Thanks @illicium for the contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants