Commit 27915a0
authored
Don't highlight vars with colons as keywords (#670)
Changes syntax highlighting regexp for keywords to match a colon/double-colon
only at the beginning of a word, not in the middle. This allows local vars like
`foo:bar` to be highlighted correctly instead of like an unknown symbol for the
part before the colon and a keyword for the rest.
Fixes #6531 parent 6bccf8c commit 27915a0
1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
265 | 272 | | |
266 | 273 | | |
267 | 274 | | |
| |||
715 | 722 | | |
716 | 723 | | |
717 | 724 | | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
718 | 738 | | |
719 | 739 | | |
720 | 740 | | |
| |||
824 | 844 | | |
825 | 845 | | |
826 | 846 | | |
827 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
828 | 851 | | |
829 | 852 | | |
830 | 853 | | |
| |||
0 commit comments