mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
The TagbarKind syntax match pattern has a zero-width look-behind atom with unlimited length. This can slow down syntax highlighting. Since in this case there can only be 1 or 2 characters that get matched, we can set a limit for the match, thus speeding up the matching. Since the limit unfortunately works with bytes instead of characters, use 3 instead of 2 to account for double-width folding characters.