PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.34k stars 1.29k forks source link

Bash: add support for hyphenated param names #3748

Open reidmv opened 1 year ago

reidmv commented 1 year ago

Previously, a parameter (flag) such as curl --upload-file would not be properly recognized, because of the hyphen in the parameter name. This commit causes --upload-file to be properly recognized as a parameter.

fixes #3569, fixes #3696

github-actions[bot] commented 1 year ago

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +5 B (+0.2%).

| file | master | pull | size diff | % diff | | --- | --- | --- | --- | --- | | components/prism-bash.min.js | 2.95 KB | 2.96 KB | +5 B | +0.2% |

Generated by :no_entry_sign: dangerJS against ac9bba3e075446401c072cdebc50455f99a16a57

Nantris commented 3 months ago

Friendly bump.