]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1039: Vim9: comments are outdated v9.1.1039
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sun, 19 Jan 2025 21:20:34 +0000 (22:20 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Jan 2025 21:20:34 +0000 (22:20 +0100)
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>
runtime/doc/vim9.txt
src/eval.c
src/version.c

index 05b451cac3f6115e772dcb06eb6307fc77c08fca..694ec7c7957d37f06f96b663e9a102e54b37b782 100644 (file)
@@ -1,4 +1,4 @@
-*vim9.txt*     For Vim version 9.1.  Last change: 2025 Jan 14
+*vim9.txt*     For Vim version 9.1.  Last change: 2025 Jan 19
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1938,9 +1938,10 @@ Exporting an item can be written as: >
        export def MyFunc() ...
        export class MyClass ...
        export interface MyClass ...
+       export enum MyEnum ...
 <                                                      *E1043* *E1044*
-As this suggests, only constants, variables, `:def` functions and classes can
-be exported.
+As this suggests, only constants, variables, `:def` functions, classes,
+interfaces and enums can be exported.
 
                                                        *E1042*
 `:export` can only be used in Vim9 script, at the script level.
index 306cfe7f426491125766236630a3aa20153a2f57..387f61d8766c373903f63cabd8eb80ae336aba1a 100644 (file)
@@ -3994,7 +3994,7 @@ eval_shift_number(typval_T *tv1, typval_T *tv2, int shift_type)
 }
 
 /*
- * Handle the bitwise left/right shift operator expression:
+ * Handle fourth level expression (bitwise left/right shift operators):
  *     var1 << var2
  *     var1 >> var2
  *
@@ -4512,7 +4512,8 @@ eval7(
 }
 
 /*
- * Handle a type cast before a base level expression.
+ * Handle seventh level expression:
+ *     a type cast before a base level expression.
  * "arg" must point to the first non-white of the expression.
  * "arg" is advanced to just after the recognized expression.
  * Return OK or FAIL.
@@ -4883,7 +4884,7 @@ eval9_var_func_name(
 }
 
 /*
- * Handle sixth level expression:
+ * Handle eighth level expression:
  *  number             number constant
  *  0zFFFFFFFF         Blob constant
  *  "string"           string constant
index fa824628197da0b9aff92be1f24a4dc1808386c0..3a3ee56949ca961e455c4718a95bb467c6089609 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1039,
 /**/
     1038,
 /**/