Skip to content

Commit 343812b

Browse files
committed
Change color of commands in shell syntax file
Move `local`, `read`, `shift` and `time` to "Shell commands" in shell syntax file.
1 parent 1479438 commit 343812b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/syntax/sh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ rules:
3030
# Numbers
3131
- constant.number: "\\b[0-9]+\\b"
3232
# Conditionals and control flow
33-
- statement: "\\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\\b"
33+
- statement: "\\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|return|select|then|until|while)\\b"
3434
- special: "[`$<>!=&~^\\{\\}\\(\\)\\;\\]\\[]+"
3535
# Shell commands
36-
- type: "\\b(cd|echo|export|let|set|umask|unset)\\b"
36+
- type: "\\b(cd|echo|export|let|local|read|set|shift|time|umask|unset)\\b"
3737
# Common linux commands
3838
- type: "\\b((g|ig)?awk|bash|dash|find|\\w{0,4}grep|kill|killall|\\w{0,4}less|make|pkill|sed|sh|tar)\\b"
3939
# Coreutils commands

0 commit comments

Comments
 (0)