summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
AgeCommit message (Collapse)Author
2020-10-03patch 8.2.1788: Vim9: still allows :let for declarationsv8.2.1788Bram Moolenaar
Problem: Vim9: still allows :let for declarations. Solution: Make the default for v:disallow_let one. It can still be set to zero to allow for using :let.
2020-09-27patch 8.2.1756: Vim9: :let will soon be disallowedv8.2.1756Bram Moolenaar
Problem: Vim9: :let will soon be disallowed. Solution: Add v:disallow_let temporarily. Fix tests.
2020-09-27patch 8.2.1755: Vim9: crash when using invalid heredoc markerv8.2.1755Bram Moolenaar
Problem: Vim9: crash when using invalid heredoc marker. (Dhiraj Mishra) Solution: Check for NULL list. (closes #7027) Fix comment character.
2020-09-27patch 8.2.1753: Vim9: crash when using import at script levelv8.2.1753Bram Moolenaar
Problem: Vim9: crash when using import at script level. Solution: Give a "not implemented yet" error. (closes #7026)
2020-09-26patch 8.2.1744: Vim9: using ":const!" is weirdv8.2.1744Bram Moolenaar
Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
2020-09-16patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9v8.2.1698Bram Moolenaar
Problem: Cannot lock a variable in legacy Vim script like in Vim9. Solution: Make ":lockvar 0" work.
2020-09-14patch 8.2.1685: Vim9: cannot declare a constant valuev8.2.1685Bram Moolenaar
Problem: Vim9: cannot declare a constant value. Solution: Introduce ":const!".
2020-09-14patch 8.2.1682: Vim9: const works in an unexpected wayv8.2.1682Bram Moolenaar
Problem: Vim9: const works in an unexpected way. Solution: ":const" only disallows changing the variable, not the value. Make "list[0] = 9" work at the script level.
2020-09-12patch 8.2.1669: Vim9: memory leak when storing a value failsv8.2.1669Bram Moolenaar
Problem: Vim9: memory leak when storing a value fails. Solution: Free the value when not storing it.
2020-09-09patch 8.2.1650: Vim9: result of && and || expression is not bool in scriptv8.2.1650Bram Moolenaar
Problem: Vim9: result of && and || expression cannot be assigned to a bool at the script level. Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
2020-09-01patch 8.2.1563: Vim9: error when using '%" with setbufvar() r getbufvar()v8.2.1563Bram Moolenaar
Problem: Vim9: error when using '%" with setbufvar() or getbufvar(). Solution: Use tv_get_buf_from_arg(). (closes #6816)
2020-08-29patch 8.2.1539: using invalid script ID causes a crashv8.2.1539Bram Moolenaar
Problem: Using invalid script ID causes a crash. Solution: Check the script ID to be valid. (closes #6804)
2020-08-27patch 8.2.1527: Vim9: cannot use a function name at script levelv8.2.1527Bram Moolenaar
Problem: Vim9: cannot use a function name as a function reference at script level. Solution: Check if a name is a function name. (closes #6789)
2020-08-21patch 8.2.1504: Vim9: white space checks are only done for a :def functionv8.2.1504Bram Moolenaar
Problem: Vim9: white space checks are only done for a :def function. Solution: Also do checks at the script level. Adjust the name of a few error messages.
2020-08-21patch 8.2.1502: Vim9: can use += with a :let command at script levelv8.2.1502Bram Moolenaar
Problem: Vim9: can use += with a :let command at script level. Solution: Give an error.
2020-08-19patch 8.2.1489: Vim9: error when setting an option with setbufvar()v8.2.1489Bram Moolenaar
Problem: Vim9: error when setting an option with setbufvar(). Solution: Do not get a number from a string value. (closes #6740)
2020-08-17patch 8.2.1473: items in a list given to :const can still be modifiedv8.2.1473Bram Moolenaar
Problem: Items in a list given to :const can still be modified. Solution: Work like ":lockvar! name" but don't lock referenced items. Make locking a blob work.
2020-08-16patch 8.2.1471: :const only locks the variable, not the valuev8.2.1471Bram Moolenaar
Problem: :const only locks the variable, not the value. Solution: Lock the value as ":lockvar 1 var" would do. (closes #6719)
2020-08-16patch 8.2.1469: Vim9: cannot assign string to string optionv8.2.1469Bram Moolenaar
Problem: Vim9: cannot assign string to string option. Solution: Change checks for option value. (closes #6720)
2020-08-15patch 8.2.1460: error messages are spread outv8.2.1460Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more messages into errors.h.
2020-08-15patch 8.2.1459: Vim9: declaring script var in script does not infer the typev8.2.1459Bram Moolenaar
Problem: Vim9: declaring ascript variable at the script level does not infer the type. Solution: Get the type from the value. (closes #6716)
2020-08-13patch 8.2.1444: error messages are spread out and names can be confusingv8.2.1444Bram Moolenaar
Problem: Error messages are spread out and names can be confusing. Solution: Start moving error messages to a separate file and use clear names.
2020-08-08patch 8.2.1395: Vim9: no error if declaring a funcref with lower case letterv8.2.1395Bram Moolenaar
Problem: Vim9: no error if declaring a funcref with a lower case letter. Solution: Check the name after the type is inferred. Fix confusing name.
2020-08-05patch 8.2.1365: Vim9: no error for missing white space around operatorv8.2.1365Bram Moolenaar
Problem: Vim9: no error for missing white space around operator. Solution: Check for white space. (closes #6618)
2020-08-02patch 8.2.1355: Vim9: no error using :let for options and registersv8.2.1355Bram Moolenaar
Problem: Vim9: no error using :let for options and registers. Solution: Give an error. (closes #6568)
2020-07-29patch 8.2.1324: Vim9: line break after "=" does not workv8.2.1324Bram Moolenaar
Problem: Vim9: line break after "=" does not work. Solution: Also allow for NUL after "=". (closes #6549)
2020-07-26patch 8.2.1300: Vim9: optional argument type not parsed properlyv8.2.1300Bram Moolenaar
Problem: Vim9: optional argument type not parsed properly. Solution: Skip over the "?". (issue #6507)
2020-07-23patch 8.2.1281: the "trailing characters" error can be hard to understandv8.2.1281Bram Moolenaar
Problem: The "trailing characters" error can be hard to understand. Solution: Add the trailing characters to the message.
2020-07-23patch 8.2.1274: Vim9: no error for missing white space at script levelv8.2.1274Bram Moolenaar
Problem: Vim9: no error for missing white space in assignment at script level. Solution: Check for white space. (closes #6495)
2020-07-20patch 8.2.1255: cannot use a lambda with quickfix functionsv8.2.1255Bram Moolenaar
Problem: Cannot use a lambda with quickfix functions. Solution: Add support for lambda. (Yegappan Lakshmanan, closes #6499)
2020-07-12patch 8.2.1190: Vim9: checking for Vim9 syntax is spread outv8.2.1190Bram Moolenaar
Problem: Vim9: checking for Vim9 syntax is spread out. Solution: Use in_vim9script().
2020-07-11patch 8.2.1184: some tests failv8.2.1184Bram Moolenaar
Problem: Some tests fail. Solution: Adjust tests for different assert_fails() behavior. Remove unused variable.
2020-07-11patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar
Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
2020-07-08patch 8.2.1154: Vim9: crash when using imported functionv8.2.1154Bram Moolenaar
Problem: Vim9: crash when using imported function. Solution: Check for a function type. Set the script context when calling a function. (closes #6412)
2020-07-04patch 8.2.1126: Vim9: using :copen causes an errorv8.2.1126Bram Moolenaar
Problem: Vim9: using :copen causes an error. Solution: Add flag LET_NO_COMMAND in set_var().
2020-07-01patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()v8.2.1111Bram Moolenaar
Problem: Inconsistent naming of get_list_tv() and eval_dict(). Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(), eval_string(), eval_lit_string() and a few others.
2020-06-28patch 8.2.1079: Vim9: no line break allowed in a while loopv8.2.1079Bram Moolenaar
Problem: Vim9: no line break allowed in a while loop. Solution: Update stored loop lines when finding line breaks.
2020-06-27patch 8.2.1076: Vim9: no line break allowed in :if expressionv8.2.1076Bram Moolenaar
Problem: Vim9: no line break allowed in :if expression. Solution: Skip linebreak.
2020-06-27patch 8.2.1071: Vim9: no line break allowed inside a lambdav8.2.1071Bram Moolenaar
Problem: Vim9: no line break allowed inside a lambda. Solution: Handle line break inside a lambda in Vim9 script.
2020-06-27patch 8.2.1067: expression "!expr->func()" does not workv8.2.1067Bram Moolenaar
Problem: Expression "!expr->func()" does not work. Solution: Apply plus and minus earlier. (closes #6348)
2020-06-24patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049Bram Moolenaar
Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command.
2020-06-24patch 8.2.1047: Vim9: script cannot use line continuation like :def functionv8.2.1047Bram Moolenaar
Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
2020-06-21patch 8.2.1028: Vim9: no error for declaring buffer, window, etc. variablev8.2.1028Bram Moolenaar
Problem: Vim9: no error for declaring buffer, window, etc. variable. Solution: Give an error. Unify the error messages.
2020-06-20patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024Bram Moolenaar
Problem: Vim9: no error for using "let g:var = val". Solution: Add an error.
2020-06-20patch 8.2.1023: Vim9: redefining a function uses a new index every timev8.2.1023Bram Moolenaar
Problem: Vim9: redefining a function uses a new index every time. Solution: When redefining a function clear the contents and re-use the index.
2020-06-19patch 8.2.1011: Vim9: some code not testedv8.2.1011Bram Moolenaar
Problem: Vim9: some code not tested. Solution: Add a few more test cases. Reorder checks for clearer error. Remove unreachable code.
2020-06-16patch 8.2.0988: getting directory contents is always case sortedv8.2.0988Bram Moolenaar
Problem: Getting directory contents is always case sorted. Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229)
2020-06-14patch 8.2.0981: Vim9: cannot compile "[var, var] = list"v8.2.0981Bram Moolenaar
Problem: Vim9: cannot compile "[var, var] = list". Solution: Implement list assignment.
2020-06-13patch 8.2.0973: Vim9: type is not checked when assigning to a script variablev8.2.0973Bram Moolenaar
Problem: Vim9: type is not checked when assigning to a script variable. Solution: Check the type.
2020-06-13patch 8.2.0972: Vim9 script variable declarations need a typev8.2.0972Bram Moolenaar
Problem: Vim9 script variable declarations need a type. Solution: Make "let var: type" declare a script-local variable.