Skip to content

Commit

Permalink
enh(bash) add "until" and "select" as keywords (#3756)
Browse files Browse the repository at this point in the history
* Add "until" and "select" as Bash keywords

* Add CHANGES.md entry
  • Loading branch information
verhovsky authored Apr 19, 2023
1 parent 48b5ced commit fc2a3e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Grammars:
- enh(dart) Add `base`, `interface`, `sealed`, and `when` keywords [Sam Rawlins][]
- enh(php) detect newer more flexible NOWdoc syntax (#3679) [Timur Kamaev][]
- enh(python) improve autodetection of code with type hinting any function's return type (making the `->` operator legal) [Keyacom][]
- enh(bash) add `select` and `until` as keywords

Parser:

Expand All @@ -45,6 +46,7 @@ Parser:
[CrystalSplitter]: https://github.com/CrystalSplitter
[Sam Rawlins]: https://github.com/srawlins
[Keyacom]: https://github.com/Keyacom
[Boris Verkhovskiy]: https://github.com/verhovsky


## Version 11.7.0
Expand Down
4 changes: 3 additions & 1 deletion src/languages/bash.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ export default function(hljs) {
"fi",
"for",
"while",
"until",
"in",
"do",
"done",
"case",
"esac",
"function"
"function",
"select"
];

const LITERALS = [
Expand Down

0 comments on commit fc2a3e1

Please sign in to comment.