Skip to content

Commit a81cf8b

Browse files
yegappanchrisbra
authored andcommitted
patch 9.1.1039: Vim9: comments are outdated
Problem: Vim9: comments are outdated Solution: Update comments, and include an enum example in the help (Yegappan Lakshmanan) closes: #16485 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 2a5312e commit a81cf8b

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

runtime/doc/vim9.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 9.1. Last change: 2025 Jan 14
1+
*vim9.txt* For Vim version 9.1. Last change: 2025 Jan 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1938,9 +1938,10 @@ Exporting an item can be written as: >
19381938
export def MyFunc() ...
19391939
export class MyClass ...
19401940
export interface MyClass ...
1941+
export enum MyEnum ...
19411942
< *E1043* *E1044*
1942-
As this suggests, only constants, variables, `:def` functions and classes can
1943-
be exported.
1943+
As this suggests, only constants, variables, `:def` functions, classes,
1944+
interfaces and enums can be exported.
19441945

19451946
*E1042*
19461947
`:export` can only be used in Vim9 script, at the script level.

src/eval.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3994,7 +3994,7 @@ eval_shift_number(typval_T *tv1, typval_T *tv2, int shift_type)
39943994
}
39953995

39963996
/*
3997-
* Handle the bitwise left/right shift operator expression:
3997+
* Handle fourth level expression (bitwise left/right shift operators):
39983998
* var1 << var2
39993999
* var1 >> var2
40004000
*
@@ -4512,7 +4512,8 @@ eval7(
45124512
}
45134513

45144514
/*
4515-
* Handle a type cast before a base level expression.
4515+
* Handle seventh level expression:
4516+
* a type cast before a base level expression.
45164517
* "arg" must point to the first non-white of the expression.
45174518
* "arg" is advanced to just after the recognized expression.
45184519
* Return OK or FAIL.
@@ -4883,7 +4884,7 @@ eval9_var_func_name(
48834884
}
48844885

48854886
/*
4886-
* Handle sixth level expression:
4887+
* Handle eighth level expression:
48874888
* number number constant
48884889
* 0zFFFFFFFF Blob constant
48894890
* "string" string constant

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1039,
707709
/**/
708710
1038,
709711
/**/

0 commit comments

Comments
 (0)