Commit 55ca5c6
committed
Permissive int and float syntax highlighting
- Clean up the regex used to syntax highlight integers, booleans, and
floats
- Permit integers beginning with one or multiple `0`s
- `<<` is syntax highlighted as an operator instead of having no scope (this means it changes in some themes, such as Monokai)
Signed-off-by: David Thompson <davthomp@redhat.com>1 parent a85cbe4 commit 55ca5c6
1 file changed
+4
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 451 | + | |
458 | 452 | | |
459 | 453 | | |
460 | | - | |
| 454 | + | |
461 | 455 | | |
462 | 456 | | |
463 | 457 | | |
| |||
490 | 484 | | |
491 | 485 | | |
492 | 486 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
| 487 | + | |
500 | 488 | | |
501 | 489 | | |
502 | | - | |
| 490 | + | |
503 | 491 | | |
504 | 492 | | |
505 | 493 | | |
| |||
0 commit comments