Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time and coproc reserved keywords to Bash #4113

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Core Grammars:
- enh(erlang) OTP25/27 maybe statement [nixxquality][]
- enh(dart) Support digit-separators in number literals [Sam Rawlins][]
- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `record`, `required` and `scoped` [Alvin Joy][]
- enh(bash) add reserved keywords `time` and `coproc` [Álvaro Mondéjar][]
mondeja marked this conversation as resolved.
Show resolved Hide resolved
- fix(c) - Fixed hex numbers with decimals [Dxuian]
- fix(ruby) - fix `|=` operator false positives (as block arguments) [Aboobacker MK]

Expand Down Expand Up @@ -47,6 +48,7 @@ CONTRIBUTORS
[Aboobacker MK]: https://github.com/tachyons
[Imken]: https://github.com/immccn123
[Osmocom]: https://github.com/osmocom
[Álvaro Mondéjar]: https://github.com/mondeja


## Version 11.10.0
Expand Down
2 changes: 2 additions & 0 deletions src/languages/bash.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default function(hljs) {
"else",
"elif",
"fi",
"time",
"for",
"while",
"until",
Expand All @@ -131,6 +132,7 @@ export default function(hljs) {
"done",
"case",
"esac",
"coproc",
"function",
"select"
];
Expand Down