Commit 619d427
committed
Don't syntax highlight
Modify the TextMate grammar so that it doesn't count `1.4.0` as a floating point number.
The current regular expression was taken from the YAML 1.1 spec,
but the regular expression contradicts the examples and explanation and
was likely an error.
The new regular expression was taken from the YAML 1.2.2 spec.
Notably, I believe that `1.4.0` is treated as a string in 1.1 and 1.2 YAML deserializers.
It doesn't seem like we'll be able to upstream this change into TextMate,
given there's an existing upstream PR to make this change that hasn't been
merged.
Fixes #901
Signed-off-by: David Thompson <davthomp@redhat.com>1.4.0 as a float1 parent 2a4d165 commit 619d427
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
0 commit comments