Skip to content

Commit 20fcac1

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 210045b + b2b47bd commit 20fcac1

18 files changed

Lines changed: 409 additions & 59 deletions

‎.github/pull_request_template.md‎

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,65 +3,60 @@ Thanks for contributing to Vim!
33
44
Please read CONTRIBUTING.md if you have not already. The comments below
55
are not shown in the pull request; delete any section that does not apply.
6-
-->
76
8-
### What does this change do?
7+
Write the commit message in this form:
98
10-
<!--
11-
In one or two sentences, please clearly write what problem this PR fixes.
12-
For visual changes, a before/after screenshot is helpful.
13-
-->
9+
Short description of the problem
1410
15-
### Commit message
11+
Problem: One sentence: what is wrong, from the user's point of view.
12+
Solution: One sentence: what this change does about it (Your Name).
1613
17-
<!--
18-
Changes to the C core are merged with a message in this form.
14+
Anything longer (mechanism, benchmark numbers, why an alternative
15+
was rejected) goes here.
1916
20-
Problem: <one short sentence: what is wrong, from the user's point of view>
21-
Solution: <one short sentence: what this does about it> (Your Name).
17+
fixes: #number
18+
related: #number
2219
23-
Anything longer (mechanism, benchmark numbers, why an alternative was
24-
rejected) goes in the body below the Solution line.
20+
For a pull request with a single commit, GitHub uses the first line as
21+
the title and the rest as the start of this description.
2522
26-
Align the Problem and Solution lines.
23+
For changes to runtime files the first line starts with one of:
2724
28-
Changes to runtime files use the following form:
25+
runtime(doc): for a documentation update
26+
translation(isocode): translations into language
27+
runtime(lang): runtime file changes for language lang
28+
filetype: for changes to filetype detection
2929
30-
runtime(doc): for a documentation update
31-
translation(isocode): translations into language
32-
runtime(lang): runtime file changes for language lang
33-
filetype: for changes to filetype detection
30+
Add "fixes: #number" when this fixes a reported issue, and
31+
"related: #number" when it references another issue or pull request.
32+
"closes: #number" is added when merging.
3433
-->
3534

36-
Problem: Problem line
37-
Solution: Solution line (Your Name).
38-
39-
<!--
40-
If this PR references a previously merged one, add a related: #number
41-
If this PR fixes a reported issue, add a fixes: #number
42-
Keep the closes: header; it is filled in when the PR is merged
43-
44-
Align the # columns
45-
-->
46-
related: #number
47-
fixes: #number
48-
closes: #number
49-
5035
### AI assistance
5136

5237
<!--
5338
Please disclose AI involvement by adding the trailer
5439
"Assisted-by: AI tool".
5540
-->
5641

57-
- [ ] AI involvement is disclosed in the commit message, or no AI was used
42+
- [ ] AI involvement is disclosed in the commit message
43+
- [ ] No AI was used
5844

5945
### Checklist
6046

6147
- [ ] The commit message follows the Problem/Solution form above
6248
- [ ] `Signed-off-by:` trailer is present (`git commit -s`), recommended but not required
63-
- [ ] Tests were added, existing tests cover the change, or the change cannot be tested (say why)
64-
- [ ] Documentation under `runtime/doc/` was updated, or no update is needed
49+
50+
#### Tests
51+
52+
- [ ] Tests were added
53+
- [ ] Existing tests cover the change
54+
- [ ] The change cannot be tested (explain below)
55+
56+
#### Documentation
57+
58+
- [ ] Documentation under `runtime/doc/` was updated
59+
- [ ] No documentation update is needed
6560

6661
### Anything reviewers should know
6762

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Before submitting any patch, at minimum:
7474
Vim uses a strict commit message format. The subject line is a
7575
one-sentence **problem statement**, not a description of the fix:
7676

77-
patch 9.2.NNNN: short description of the problem
77+
short description of the problem
7878

7979
Problem: Restatement of the problem as a full sentence, possibly
8080
with a reporter attribution in parentheses.

‎runtime/syntax/algol68.vim‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,27 @@
33
" Version: 0.4
44
" Maintainer: Janis Papanagnou
55
" Previous Maintainer: NevilleD.ALGOL_68@sgr-a.net
6-
" Last Change: 2026 Aug 12
6+
" Last Change: 2026 Sep 14
77

88
if exists("b:current_syntax")
99
finish
1010
endif
1111

12-
" Algol68 Final Report, unrevised
12+
" Algol 68 Final Report, unrevised
1313
syn keyword algol68PreProc PRIORITY
1414
syn keyword algol68Operator BTB CTB CONJ QUOTE CT CTAB EITHER SIGN
1515

1616

17-
" Algol68 Revised Report
17+
" Algol 68 Revised Report
1818
syn keyword algol68Boolean TRUE FALSE
1919
syn keyword algol68Conditional IF THEN ELSE ELIF FI
2020
syn keyword algol68Conditional CASE IN OUT OUSE ESAC
2121
syn keyword algol68Constant NIL SKIP EMPTY
2222
syn keyword algol68Statement MODE PROC
2323
syn keyword algol68Statement OP PRIO skipwhite nextgroup=algol68DefiningOperator
24-
syn keyword algol68Label GOTO
24+
" Genie
25+
syn keyword algol68Statement ASSERT
26+
syn keyword algol68Label GOTO
2527
syn match algol68Label "\<GO TO\>"
2628
syn keyword algol68Operator ABS REPR ROUND ENTIER ARG BIN LENG SHORTEN ODD
2729
syn keyword algol68Operator SHL SHR ROL ROR UP DOWN LEVEL LWB UPB I RE IM
@@ -37,13 +39,13 @@ syn keyword algol68Operator IS ISNT OF AT
3739
syn keyword algol68Operator SORT ELEMS
3840
syn keyword algol68Repeat FOR FROM BY UPTO DOWNTO TO WHILE DO UNTIL OD
3941
syn keyword algol68Statement PAR BEGIN END EXIT
40-
syn keyword algol68Struct STRUCT
41-
syn keyword algol68PreProc VECTOR
4242
syn match algol68Type "\<\%(LONG\|SHORT\)\>"
4343
syn keyword algol68Type FLEX HEAP LOC REF
44+
" Genie
45+
syn keyword algol68Type NEW
4446
syn keyword algol68Type VOID BOOL INT REAL COMPL CHAR STRING COMPLEX
4547
syn keyword algol68Type BITS BYTES FILE CHANNEL PIPE SEMA SOUND
46-
syn keyword algol68Type FORMAT STRUCT UNION
48+
syn keyword algol68Type FORMAT STRUCT UNION
4749
" Genie extensions in addition to ROUND and ENTIER
4850
syn keyword algol68Operator FLOOR CEIL NINT TRUNC FRAC FIX
4951

@@ -139,14 +141,14 @@ syn region algol68Comment start="\<CO\>" end="\<CO\>" contains=algol68Todo,algo
139141
syn region algol68Comment start="\<COMMENT\>" end="\<COMMENT\>" contains=algol68Todo,algol68SpaceError
140142
syn region algol68PreProc start="\<PR\>" end="\<PR\>" contains=algol68Todo,algol68SpaceError
141143
syn region algol68PreProc start="\<PRAGMAT\>" end="\<PRAGMAT\>" contains=algol68Todo,algol68SpaceError
142-
" algol68r
144+
" Algol 68 RS
143145
syn region algol68Comment start="{" end="}" contains=algol68Todo,algol68SpaceError
144146
syn region algol68Comment start="{{{" end="}}}" contains=algol68Todo,algol68SpaceError
145-
146-
" ALGOL 68r
147147
syn keyword algol68PreProc DECS CONTEXT configinfo A68CONFIG KEEP FINISH USE SYSPROCS IOSTATE FORALL
148-
" ALGOL 68c
149-
syn keyword algol68PreProc USING ENVIRON FOREACH ASSERT
148+
syn keyword algol68Type VECTOR
149+
150+
" Algol 68C
151+
syn keyword algol68PreProc USING ENVIRON FOREACH
150152

151153
if !exists("algol68_no_preludes")
152154

@@ -182,7 +184,7 @@ if !exists("algol68_no_preludes")
182184
" I/O on Files (Standard)
183185
syn match algol68Function "\%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<!\<\%(get\|put\|print\|read\|write\)\%(f\|\s*bin\)\?\>\%(\s*[a-z0-9]\)\@!"
184186

185-
" I/O on Files (Algol68C)
187+
" I/O on Files (Algol 68C)
186188
syn match algol68Function "\%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<!\<\%(print\|read\)\s*\%(\%(long\s*\)\?long\s*\)\?\%(int\|real\|complex\|bits\)\>\%(\s*[a-z0-9]\)\@!"
187189
syn match algol68Function "\%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<!\<\%(print\|read\)\s*\%(bool\|char\|string\)\>\%(\s*[a-z0-9]\)\@!"
188190
syn match algol68Function "\%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<!\<read\s*line\>\%(\s*[a-z0-9]\)\@!"

‎runtime/syntax/shared/typescriptcommon.vim‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
" Language: TypeScript and TypeScriptReact
33
" Maintainer: Herrington Darkholme
44
" Last Change: 2024 May 24
5-
" 2025 Aug 05 support for new TypeScript syntaxes
6-
" 2026 Sep 30 fix exponential backtracking in typescriptArrowFuncDef
5+
" 2025 Aug 05 by Vim Project: support for new TypeScript syntaxes #17911
6+
" 2026 Sep 30 by Vim Project: fix exponential backtracking in typescriptArrowFuncDef #21400
7+
" 2026 Sep 30 by Vim Project: fix memory usage of typescriptArrowFuncDef patterns #21423
78
" Based On: Herrington Darkholme's yats.vim
89
" Changes: See https://github.com/HerringtonDarkholme/yats.vim
910
" Credits: See yats.vim on github
@@ -1949,12 +1950,12 @@ syntax match typescriptArrowFuncDef contained /\K\k*\s*=>/
19491950
\ nextgroup=@typescriptExpression,typescriptBlock
19501951
\ skipwhite skipempty
19511952

1952-
syntax match typescriptArrowFuncDef contained /(\%(\_[^()]\|(\_[^()]*)\)*)\_s*=>/
1953+
syntax match typescriptArrowFuncDef contained /(\_[^()]*\%((\_[^()]*)\_[^()]*\)*)\_s*=>/
19531954
\ contains=typescriptArrowFuncArg,typescriptArrowFunc,@typescriptCallSignature
19541955
\ nextgroup=@typescriptExpression,typescriptBlock
19551956
\ skipwhite skipempty
19561957

1957-
syntax region typescriptArrowFuncDef contained start=/(\%(\_[^()]\|(\_[^()]*)\)*):/ matchgroup=typescriptArrowFunc end=/=>/
1958+
syntax region typescriptArrowFuncDef contained start=/(\_[^()]*\%((\_[^()]*)\_[^()]*\)*):/ matchgroup=typescriptArrowFunc end=/=>/
19581959
\ contains=typescriptArrowFuncArg,typescriptTypeAnnotation,@typescriptCallSignature
19591960
\ nextgroup=@typescriptExpression,typescriptBlock
19601961
\ skipwhite skipempty keepend

‎runtime/syntax/testdir/dumps/typescript_00.dump‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎runtime/syntax/testdir/dumps/typescript_01.dump‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// VIM_TEST_SETUP set regexpengine=1 maxmempattern=1
2+
3+
// Issue #17247: Opening a simple .tsx (typescript) file with :syntax on
4+
// crashes vim in macOS
5+
6+
let fn0 = (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => arg0
7+
8+
let fn1 = () => ({
9+
key0: value0,
10+
key1: value1,
11+
key2: value2,
12+
key3: value3,
13+
key4: value4,
14+
key5: value5,
15+
key6: value6,
16+
key7: value7,
17+
key8: value8,
18+
key9: value9,
19+
});
20+

‎src/feature.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,8 @@
11311131
# define FEAT_IMAGE_KITTY
11321132
#endif
11331133

1134-
#if defined(ALLOW_IMAGE) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MSWIN))
1134+
#if defined(ALLOW_IMAGE) && ((defined(FEAT_GUI_GTK) \
1135+
&& (defined(USE_GTK4) || defined(USE_GTK3))) || defined(FEAT_GUI_MSWIN))
11351136
# define FEAT_IMAGE_GUI
11361137
#endif
11371138

‎src/filepath.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ f_getfsize(typval_T *argvars, typval_T *rettv)
12301230
fname = tv_get_string(&argvars[0]);
12311231
if (mch_stat((char *)fname, &st) >= 0)
12321232
{
1233-
if (mch_isdir(fname))
1233+
if (S_ISDIR(st.st_mode))
12341234
rettv->vval.v_number = 0;
12351235
else
12361236
{

‎src/gui.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ typedef struct Gui
439439
# ifdef GDK_WINDOWING_WAYLAND
440440
bool is_wayland; // active gdk backend in gtk is wayland
441441
# endif
442-
# if defined(FEAT_IMAGE) && GTK_CHECK_VERSION(3,0,0)
442+
# if defined(FEAT_IMAGE) && defined(FEAT_GUI_GTK)
443443
double scale; // Current scaling (may be fractional)
444444
# endif
445445
#endif // FEAT_GUI_GTK

0 commit comments

Comments
 (0)