mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Fix highlighting of comments followed by non-comments (on a subsequent line).
Merge remote-tracking branch 'upstream/pr/385' * upstream/pr/385: 'main': Add regression test for previous commit. 'main': Fix bug: no start_pos=$end_pos in comment short path Fixes #385.
This commit is contained in:
commit
9396ad5c5f
2 changed files with 40 additions and 0 deletions
|
|
@ -418,6 +418,7 @@ _zsh_highlight_highlighter_main_paint()
|
|||
fi
|
||||
_zsh_highlight_main_add_region_highlight $start_pos $end_pos $style
|
||||
already_added=1
|
||||
start_pos=$end_pos
|
||||
continue
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue