zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.06k stars 76 forks source link

[bug]: incorrect highlighting for ssh port forwardings #33

Open frankli0324 opened 2 years ago

frankli0324 commented 2 years ago

Describe the bug

The port in ssh forwarding options (-LRD) can't be highlighted correctly

Steps to reproduce

ssh -L 1234:0.0.0.0:1234 ssh -L 1234:domain:1234 ssh -L domain/ip:1234:domain:1234

Expected behavior

correctly highlight the components

Screenshots and recordings

image

Operating System & Version

darwin21.3.0 | apple | x86_64 | x86_64 | x86_64 i386

Zsh version

zsh 5.9 (x86_64-apple-darwin21.3.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

No response

Additional context

No response

vladdoster commented 2 years ago

Thank you @frankli0324! Looking into this now