From ab4fb73f7c1dd2e2360caf6d88af410474dbea86 Mon Sep 17 00:00:00 2001 From: Nuri Jung Date: Sat, 4 Jul 2020 01:26:08 +0900 Subject: [PATCH] Correct wrong descriptions Corrects the root cause of the platform dependency. --- docs/highlighters/regexp.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/highlighters/regexp.md b/docs/highlighters/regexp.md index 667057b..ba71b8a 100644 --- a/docs/highlighters/regexp.md +++ b/docs/highlighters/regexp.md @@ -12,25 +12,25 @@ To use this highlighter, associate regular expressions with styles in the ```zsh typeset -A ZSH_HIGHLIGHT_REGEXP -ZSH_HIGHLIGHT_REGEXP+=('^rm .*' fg="red",bold) +ZSH_HIGHLIGHT_REGEXP+=('^rm .*' fg=red,bold) ``` This will highlight the whole line starting with `rm` command (for all operating systems, in contrast to the below example). Some regular expressions are [subject to the host platform][MAN_ZSH_REGEX], -especially the kernel. To highlight `sudo` only as a complete word, i.e., +especially the `libc` module. To highlight `sudo` only as a complete word, i.e., `sudo cmd`, but not `sudoedit`, the respective regular expressions for the host systems would be: -* GNU-Linux +* Platform with GNU libc (e.g., many GNU/Linux) ```zsh typeset -A ZSH_HIGHLIGHT_REGEXP ZSH_HIGHLIGHT_REGEXP+=('\' fg=123,bold) ``` -* BSD-based platforms +* BSD-based platforms (e.g., macOS) ```zsh typeset -A ZSH_HIGHLIGHT_REGEXP