enh(bash) add "until" and "select" as keywords (#3756)

* Add "until" and "select" as Bash keywords

* Add CHANGES.md entry
This commit is contained in:
Boris Verkhovskiy 2023-04-19 08:06:06 +01:00 committed by GitHub
parent 48b5cedf68
commit fc2a3e1e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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:
@ -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

View File

@ -112,12 +112,14 @@ export default function(hljs) {
"fi",
"for",
"while",
"until",
"in",
"do",
"done",
"case",
"esac",
"function"
"function",
"select"
];
const LITERALS = [