Repository navigation
Commit 12ad51b
committed
git-review-rebase: fix coloring of different token on the left side.
The original code had a workaround to avoid highlighting all the spaces
from the last character on the left side, but it was a bit too eager
depending on the lexer used, for example with the Make lexer we wouldn't
get two tokens, one for spaces and one for the newline.
Instead, stop on the previous but last token only if it's only
spaces/newlines.
This doesn't change the highlighting for C source code but allows the
highlighting on the left side of a Make diff.
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@vates.tech>1 parent cfa8f59 commit 12ad51b
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments