components/prism-bash.js


Log

Author Commit Date CI Message
James Pearce 4b19b502 2022-01-06T07:48:50 Bash: Added `node` to known commands (#3291)
Silver Zachara b351bc69 2021-12-25T11:36:39 Bash: Added vcpkg command (#3282)
AmebaBrain 8c5ed251 2021-11-29T02:19:07 Bash: Added `docker` and `podman` commands (#3237)
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt f471d2d7 2021-06-17T22:27:40 Fixed problems reported by `regexp/no-dupe-disjunctions` (#2952)
Michael Schmidt 18a00828 2021-06-13T19:53:03 ESLint: Added regexp plugin (#2924)
Michael Schmidt fd20dbe4 2021-05-01T14:53:38 ESLint: Added spacing rules (#2862)
Michael Schmidt 158011e4 2021-04-18T15:55:05 ESLint: Added wrap-iife rule (#2867)
Michael Schmidt 9cae4461 2021-04-17T22:26:40 ESLint: Added quotes rule (#2835)
Harry Marr e4ad22ad 2021-03-26T08:35:23 Bash: Accept hyphens in function names (#2832)
Michael Schmidt e5cfdb4a 2021-03-17T11:21:02 Bash: Fixed single-quoted strings (#2792)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt c2f6a644 2020-10-25T23:42:25 Fixed multiple cases of vulnerable regexes (#2584)
Michael Schmidt 6c921801 2020-08-27T19:14:20 Shell session & bash: Highlight all commands after the start of any Heredoc string (#2509)
Ayesh Karunaratne 044dd271 2020-04-09T19:15:51 Bash: Added `composer` command (#2298) This adds PHP's dependency manager `composer` to the list of commands.
Michael Schmidt 328d0e0e 2020-03-21T17:02:30 Bash: Added support for escaped quotes (#2256) Single and double quotes can be escaped via backslashes. Prism now supports these escapes.
Michael Schmidt 81e1c3dd 2020-01-18T17:23:39 Tests: Added new pattern check for octal escapes (#2189) This adds a new pattern check to disallow octal character escapes (e.g. `\12`).
RunDevelopment 0b48301e 2019-06-12T15:46:07 Resolved conflicts
Alice M 363281b3 2019-06-10T13:29:03 Bash improvements (#1443) A bunch for improvements for Bash.
RunDevelopment 96044979 2019-05-15T21:06:59 Added shell session language
ExE Boss fccfb98d 2019-02-14T01:25:25 Added `pnpm` function to Bash (#1734) This adds `pnpm` to the list of supported functions in Bash.
Frankie Wittevrongel 3a32cb75 2019-02-13T22:33:38 Added `yarn add` to bash functions (#1731) Adds `yarn add` to bash functions.
Andre Hotzler a2230c38 2018-11-28T14:26:31 Add additional commands to bash (#1577) Includes "apt", "apt-cache" or "parted" and others.
Aaron Fay b94f01f1 2018-04-17T13:17:09 Change reserved keyword reference (#1396) * change boolean keyword accessor in bash.min * change boolean keyword accessor in bash
Golmote 1bfc0848 2018-04-08T11:44:07 Bash: Add curl to the list of common functions. Close #1160
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote 63fc2152 2018-03-03T22:45:25 Bash: Add support for quoted command substitution. Fix #1287
paladox 67e16a22 2018-03-01T22:25:47 Add Prism.languages.shell to bash file as an alias (#1321) * Add Prism.languages.shell to bash file as an alias Fixes #1320
Golmote d28d178b 2017-10-22T14:17:29 Bash: Regexp optimisation and simplification
Valtteri Laitinen 8aa2cc4a 2017-05-08T13:56:50 Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) * Replace [\w\W] with [^] and [0-9] with \d in regexes * Replace [\s\S] with [^] * Replace [^] with [\s\S]
Adam Eivy babdf740 2016-06-08T22:29:12 adding `npm` to common function list
Andreas Rohner 964450e1 2016-04-30T13:35:01 Apply the new greedy flag to a few languages This patch applies the new greedy flag to a few languages and adds the corresponding test cases.
Andreas Rohner ab65be27 2016-02-12T21:32:19 Fix catastrophic backtracking regex issues
Andreas Rohner c628ce24 2015-10-06T17:35:08 Support for command substitution for the Bash language Command substitution is a very important part of the Bash language. Every non trivial script uses it in one way or another. This patch adds support for it.
Andreas Rohner e83dcff6 2015-10-06T17:18:16 Add support for arithmetic environments for the Bash language Currently arithmetic operators are wrongly matched all over the place. For example the dash in `ls -la` is highlighted as a minus operator, but for Bash it is only a string. Another example would be a simple path like this `cat 801-file.txt`. Here `801` is wrongly highlighted as a number and `-` is highlighted as an operator. Bash only supports numbers and arithmetic operators inside of a so called arithemtic environment `$((3 + 4))`. By supporting this and limiting numbers and arithmetic operators to arithemtic environments, a lot of wrongly highlighted stuff can be avoided.
Andreas Rohner 0eeaff3e 2015-10-06T13:59:20 Fix built-in commands and functions for the Bash language Keywords and functions should not start with a boundary character, because this leads to lots of false matches. Bash actually only allows a few boundary characters for commands and functions. This patch replaces the \b with an explicit list of allowed characters. This improves the highlighting of pathnames enourmously. Some examples of invalid highlighting this patch fixes: cat /etc/passwd cat ./if/else/something-file.txt This patch also adds the built-in commands ":" and ".". : NOOP-command . Source command
Andreas Rohner 256c3e12 2015-10-05T23:00:25 Fix regression in Bash strings In a recent patch the regex for single-quoted and double-quoted strings of the Bash language was split into two separate regexes to prevent the highlighting of variables inside of single-quoted strings. This causes a bug whenever a double-quoted string apears inside a single-quoted string, because the double-quoted string is matched first. '"foo"' The same problem exists with the newly introduced Here-Documents. This patch fixes the problem by matching Here-Documents first and merging the regexes for single-quoted and double-quoted strings again. This patch also adds testcases for this, to prevent future regressions.
Andreas Rohner 9acaaa15 2015-10-02T14:54:17 Remove Clike dependency from Bash The Bash language is actually very different from Clike. Only 'boolean', 'operator' and 'punctuation' are shared between them. 'operator' and 'punctuation' should be changed in the future, because Bash actually has slightly different operators. Since they share almost nothing, it makes sense to remove the dependency. This patch copies 'boolean', 'operator' and 'punctuation' from Clike, but doesn't change them. This patch also fixes a typo and adds the missing built-in keyword `let`. `let` is not in the POSIX-standard, but Bash and some other shells support it.
Andreas Rohner 89b1f857 2015-10-01T12:21:46 Use a proper alias for the Bash-Shebang This patch introduces a proper alias for the Bash-Shebang. Additionally the variables are changed from the class "property" to "variable". The tests also need to be updated.
Andreas Rohner 71bf8e9a 2015-10-01T13:22:42 Add support for Here-Documents for the Bash language This patch adds support for Here-Documents for the Bash language. A Here-Document should be highlighted as a multiline string and looks like this: cat << EOF foo bar EOF
Andreas Rohner 5d74562e 2015-10-01T12:03:28 Move the Bash language into a function environment Moving the Bash language definition into a function environment allows for local variables, which are necessary for future changes.
Golmote 903b8a42 2015-07-12T08:11:33 Bash: removed duplicates in keywords + removed unneeded parentheses
Golmote 27009818 2015-07-12T07:59:33 Bash: simplify comment regex
Golmote 551cebc4 2015-03-13T07:57:30 Bash: add a bunch of well-known functions to highlight
Golmote aa2beab7 2015-03-13T07:36:59 Bash: prevent highlighting of numbers inside filenames. Fix #547
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Andreas Rohner ab3aea56 2013-03-16T18:36:27 Add Bash shell script highlighting support