Fix highlighting of base 10 numbers#35
Conversation
This was incorrectly highlighting the following: ```yaml ref: 3.8.3 # should be a string, highlighted as a number ```
|
@infininight this patch is small and subtle, would you be able to review? |
|
Weirdly the dot in the regex is ... official? https://yaml.org/type/float.html
This allows even weird things like |
|
I suspect it's a mistake in the spec there -- it's not implemented that way in libyaml |
|
In fact, it's highly questionable, since one of the examples doesn't even match the regex (and has a typo): exponentioal: 685.230_15e+03 |
|
I don't know whether those "type" pages should be "official" or not ... they're "drafts" and from a previous version of the spec. |
|
Oh. I suspect the repeatable |
This was incorrectly highlighting the following: