Christian Brabandt
3159b6494e
runtime(sh): fix typo in Last Change header
...
related: #16394
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-01-06 18:50:15 +01:00
Jon Parise
cf1f55548d
runtime(sh): add PS0 to bashSpecialVariables in syntax script
...
PS0 is also a special prompt variable. (It is expanded and displayed
after it reads a command but before executing it.)
References:
https://www.gnu.org/software/bash/manual/html_node/Interactive-Shell-Behavior.html
closes : #16394
Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-01-06 18:27:38 +01:00
Aliaksei Budavei
48fa3198b7
syntax(sh): Improve the recognition of bracket expressions
...
- Define a general non-"contained" "shBracketExpr" group,
and replace with it the "contained" bracket variant of
"shOperator", adjusting the patterns for the competing
conditional commands "[" and "[[".
- Accommodate some unbalanced brackets (e.g. "[!][!]").
- Make the leading "!" (or "^") stand out in NON-matching
bracket expressions.
- Support literal newlines in parametric patterns (along
with pathname globbings and "case" patterns).
- Also match bracket expressions in:
* parametric patterns (e.g. "${1#[ab]_}");
* pathname globbings (e.g. "[ab]*.txt");
* arguments for the "[[", "echo", and "print" commands.
- Recognise collating symbols (e.g. "[.a.]") and equivalence
classes (e.g. "[=a=]").
- Recognise end patterns for a pattern substitution form of
parameter expansion and match bracket expressions in such
patterns (e.g. "${1/%[.!]/;}").
fixes #15799
closes : #15941
References:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_03_05
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_14
https://git.savannah.gnu.org/gitweb/?p=bash.git;a=blob_plain;f=doc/bash.html;hb=37b7e91d64ad10b1a1815d12128c9475636df670
http://www.mirbsd.org/htman/i386/man1/mksh.htm
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-30 10:23:50 +01:00
dkearns
1bdc9435c1
runtime(sh): Update syntax file, fix issue #962 ( #14138 )
...
Allow the opening parenthesis of a multiline array assignment, within an
if statement, to appear at EOL.
Fixes issue #962 .
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-04 19:14:08 +01:00
Christian Brabandt
f9ca139e3a
runtime(misc): announce adoption of various runtime files
...
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-19 20:46:49 +01:00
Johnothan King
add31baeda
runtime(sh): Add handling for ksh93 shared-state comsubs and mksh valsubs ( #13884 )
...
This commit adds support for ksh93 shared-state command
substitutions (syntax: ${ command; }) and mksh's value
substitutions (syntax: ${|command;}) in the sh syntax script.
Also add a syntax test for ksh subshares with dumps included
to make sure it doesn't regress.
fixes : #9514
Signed-off-by: Johnothan King <johnothanking@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-22 20:19:54 +01:00
Lucien Grondin
b16fc98055
runtime(sh): Update sh syntax and add local keyword for bash ( #13806 )
...
add `local` in shStatement
Signed-off-by: Lucien Grondin <grondilu@yahoo.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-01 19:00:41 +01:00
Lucien Grondin
ce3b0136c6
runtime(sh): Update sh syntax and add shDerefOffset to shDerefVarArray for bash ( #13480 )
...
Add shDerefOffset to shDerefVarArray.
Example code:
```bash
declare -a a=({a..z})
echo "${a[@]:1:3}"
```
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-04 09:41:37 +01:00
Lucien Grondin
1858e2b22a
runtime(sh) Update sh syntax and add shDblParen to shCaseList ( #13469 )
...
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02 20:33:56 +01:00
Lucien Grondin
a390e984db
runtime(sh): add shDblParen to shLoopList for bash ( #13445 )
...
add shDblParen to shLoopList to correctly highlight
arithmetic expressions for Bash and Ksh
This should allow code such as:
```bash
declare -i i j
for i in foo bar
do ((j = 1 << j))
done
```
Signed-off-by: Lucien Grondin <grondilu@yahoo.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-28 21:40:48 +02:00
Bram Moolenaar
71badf9547
Update runtime files
2023-04-22 22:40:14 +01:00
Bram Moolenaar
dd60c365cd
Update runtime files
2023-02-27 15:49:53 +00:00
Bram Moolenaar
be4e01637e
Update runtime files.
2023-02-02 13:59:48 +00:00
Bram Moolenaar
86b4816766
Update runtime files
2022-12-06 18:20:10 +00:00
Bram Moolenaar
0daafaa7d9
Update runtime files
2022-09-04 17:45:43 +01:00
Bram Moolenaar
5ed11535e0
Update runtime files
2022-07-06 13:18:11 +01:00
Bram Moolenaar
6ba83ba9ee
Update runtime files.
2022-06-12 22:15:57 +01:00
Bram Moolenaar
113cb513f7
Update runtime files
2021-11-07 20:27:04 +00:00
Bram Moolenaar
d2ea7cf10a
Update runtime files
2021-05-30 20:54:13 +02:00
Bram Moolenaar
23515b4ef7
Update runtime files
2020-11-29 14:36:24 +01:00
Bram Moolenaar
d58a3bf7da
Update runtime files.
2020-09-28 21:48:16 +02:00
Bram Moolenaar
47e13953ff
Update runtime files
2020-05-12 22:49:12 +02:00
Bram Moolenaar
1d9215b9aa
Update runtime files.
2020-01-25 13:27:42 +01:00
Bram Moolenaar
6c1e1570b1
Update runtime files
2019-06-22 02:13:00 +02:00
Bram Moolenaar
723dd946f9
Update runtime files.
2019-04-04 13:11:03 +02:00
Bram Moolenaar
b730f0c7ba
Update runtime files
2018-11-25 03:56:26 +01:00
Bram Moolenaar
93a1df2c20
Update runtime files.
2018-09-10 11:51:50 +02:00
Bram Moolenaar
d2855f5454
Update runtime files.
2018-07-31 22:23:58 +02:00
Bram Moolenaar
51ad4eaa22
Update runtime files
2018-04-06 11:14:11 +02:00
Bram Moolenaar
b0d45e7f53
Update runtime files.
2017-11-05 18:19:24 +01:00
Bram Moolenaar
3df0173fa6
Updated runtime files.
2017-02-17 22:47:16 +01:00
Bram Moolenaar
690afe1fef
Update runtime files.
2017-01-28 18:34:47 +01:00
Bram Moolenaar
6d5ad4c411
Updated runtime files.
2016-10-27 17:00:16 +02:00
Bram Moolenaar
3e496b0ea3
Updated runtime files.
2016-09-25 22:11:48 +02:00
Bram Moolenaar
f37506f60f
Updated runtime files. Remove HiLink commands.
2016-08-31 22:22:10 +02:00
Bram Moolenaar
89bcfda683
Updated runtime files. Remove version checks for Vim older than 6.0.
2016-08-30 23:26:57 +02:00
Bram Moolenaar
818078ddfb
Updated runtime files and translations.
2016-08-27 21:58:42 +02:00
Bram Moolenaar
e4a3bcf28d
Updated runtime files. Add Scala files.
2016-08-26 19:52:37 +02:00
Bram Moolenaar
bc8801c931
Updated runtime files.
2016-08-02 21:04:33 +02:00
Bram Moolenaar
802a0d902f
Updated runtime files.
2016-06-26 16:17:58 +02:00
Bram Moolenaar
91c4937be1
Updated runtime files.
2016-05-08 09:50:29 +02:00
Bram Moolenaar
03413f4416
Updated runtime files.
2016-04-12 21:07:15 +02:00
Bram Moolenaar
7db8f6f4f8
Updated runtime files.
2016-03-29 23:12:46 +02:00
Bram Moolenaar
f391327adb
Updated runtime files.
2016-02-25 00:00:01 +01:00
Bram Moolenaar
e0fa3742ea
Updated runtime files.
2016-02-20 15:47:01 +01:00
Bram Moolenaar
acb4f221c7
Updated runtime files.
2016-01-10 15:59:26 +01:00
Bram Moolenaar
e392eb41f8
Update runtime files.
2015-11-19 20:38:09 +01:00
Bram Moolenaar
b4ff518d95
Updated runtime files.
2015-11-10 21:15:48 +01:00
Bram Moolenaar
60cce2fb73
Update runtime files.
2015-10-13 23:21:27 +02:00
Bram Moolenaar
541f92d6cf
Updated runtime files.
2015-06-19 13:27:23 +02:00