zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.39k stars 1.16k forks source link

Add, move commands in shell syntax file #3270

Closed niten94 closed 1 month ago

niten94 commented 2 months ago

The commands below are added in this pull request:

The commands below are highlighted using a different color group in this pull request:

The commands that are added and moved except getopt are usually builtin commands in sh implementations so they can be looked up in reference pages of those implementations.

niten94 commented 2 months ago

eval was highlighted as a keyword because commands like exit can be run using it, but such commands are not usually run using eval so I have moved it to "Shell commands". I was also thinking about the same with command so the note about command in the pull request description has been removed.

The pull request description has also been edited so that it would be a bit more clear why some commands were added in "Conditionals and control flow".

dmaluka commented 1 month ago

LGTM. @JoeKar WDYT?