Skip to content

Commit 97f1fc3

Browse files
committed
'main': Don't process $_.
See zsh-users#619.
1 parent 6323686 commit 97f1fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlighters/main/main-highlighter.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ _zsh_highlight_main_highlighter_highlight_list()
434434
# seen_alias is a map of aliases already seen to avoid loops like alias a=b b=a
435435
local -A seen_alias
436436
# Pattern for parameter names
437-
readonly parameter_name_pattern='([A-Za-z_][A-Za-z0-9_]*|[0-9]+)'
437+
readonly parameter_name_pattern='([A-Za-z][A-Za-z0-9_]*|_[A-Za-z0-9_]+|[0-9]+)'
438438
list_highlights=()
439439

440440
# "R" for round

0 commit comments

Comments
 (0)